@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
|
@@ -40,6 +40,8 @@ export interface ComboSelectProps {
|
|
|
40
40
|
className?: string;
|
|
41
41
|
/**弹出层className*/
|
|
42
42
|
popoverClassName?: string;
|
|
43
|
+
/**容器最大高度*/
|
|
44
|
+
maxHeight?: number;
|
|
43
45
|
/**大小*/
|
|
44
46
|
size?: 'large' | 'medium' | 'small';
|
|
45
47
|
/**选择器footer actions*/
|
|
@@ -103,8 +105,6 @@ export interface ComboSelectProps {
|
|
|
103
105
|
fullPathKey?: string;
|
|
104
106
|
/** 自定义路径节点 */
|
|
105
107
|
fullPathRender?: (node: TreeNodeProps) => React.ReactNode;
|
|
106
|
-
/** 自动计算下拉框宽度 */
|
|
107
|
-
autoWidth?: boolean;
|
|
108
108
|
/** 禁用弹框模式 */
|
|
109
109
|
disablePopup?: boolean;
|
|
110
110
|
/** 自定义渲染tag */
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.para-container{width:100%;height:100%}.para-container .para-body{overflow:auto}.para-container.tlf .para-body{display:table}.para-container.tlf .para-body-right{display:table-cell;vertical-align:top}.para-container.tlf .para-container-left{display:table-cell;vertical-align:top}.para-container.tlrb .para-body{display:table}.para-container.tlrb .para-container-left{display:table-cell;vertical-align:top}.para-container.tlrb .para-container-right{display:table-cell;vertical-align:top}.para-container.ltrb{display:table}.para-container.ltrb .para-body{display:table-cell;vertical-align:top}.para-container.ltrb .para-container-left{display:table-cell;vertical-align:top}.para-container-right{overflow:auto}
|
|
2
|
+
|
package/Container/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ParaUI=e(require("react")):t.ParaUI=e(t.react)}(self,(function(t){return function(){"use strict";var e
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ParaUI=e(require("react")):t.ParaUI=e(t.react)}(self,(function(t){return function(){"use strict";var e={7418:function(t){
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
6
|
*/
|
|
7
|
-
var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function n(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(t){i[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(t){return!1}}()?Object.assign:function(t,o){for(var a,c,s=n(t),l=1;l<arguments.length;l++){for(var d in a=Object(arguments[l]))r.call(a,d)&&(s[d]=a[d]);if(e){c=e(a);for(var h=0;h<c.length;h++)i.call(a,c[h])&&(s[c[h]]=a[c[h]])}}return s}},
|
|
7
|
+
var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function n(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(t){i[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(t){return!1}}()?Object.assign:function(t,o){for(var a,c,s=n(t),l=1;l<arguments.length;l++){for(var d in a=Object(arguments[l]))r.call(a,d)&&(s[d]=a[d]);if(e){c=e(a);for(var h=0;h<c.length;h++)i.call(a,c[h])&&(s[c[h]]=a[c[h]])}}return s}},5251:function(t,e,r){
|
|
8
8
|
/** @license React v17.0.2
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
10
10
|
*
|
|
@@ -13,4 +13,4 @@ var e=Object.getOwnPropertySymbols,r=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
|
-
r(
|
|
16
|
+
r(7418);var i=r(9297),n=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;n=o("react.element"),o("react.fragment")}var a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function l(t,e,r){var i,o={},l=null,d=null;for(i in void 0!==r&&(l=""+r),void 0!==e.key&&(l=""+e.key),void 0!==e.ref&&(d=e.ref),e)c.call(e,i)&&!s.hasOwnProperty(i)&&(o[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps)void 0===o[i]&&(o[i]=e[i]);return{$$typeof:n,type:t,key:l,ref:d,props:o,_owner:a.current}}e.jsx=l,e.jsxs=l},5893:function(t,e,r){t.exports=r(5251)},9297:function(e){e.exports=t}},r={};function i(t){var n=r[t];if(void 0!==n)return n.exports;var o=r[t]={exports:{}};return e[t](o,o.exports,i),o.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return function(){i.r(n),i.d(n,{Container:function(){return a}});var t=i(5893),e=i(9297),r=i.n(e),o=function(){return o=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},o.apply(this,arguments)},a=function(e){void 0===e&&(e={});var i,n,a,c,s,l=e.className,d=void 0===l?"":l,h=e.top,p=e.topStyle,u=void 0===p?{}:p,f=e.left,v=e.leftStyle,y=void 0===v?{}:v,g=e.right,j=e.rightStyle,b=void 0===j?{}:j,m=e.bottom,x=e.bottomStyle,w=void 0===x?{}:x,O=e.type,N=void 0===O?"tlr":O;return r().useMemo((function(){switch(N){case"tlr":return i=o({height:h?"50px":"0",width:"100%"},u),n=o({height:"100%",width:"auto"},y),c=o({height:m?"20px":"0",width:"100%"},w),a=o({height:"calc(100% - ".concat(c.height,")"),width:"auto"},b),s={width:"100%",height:"calc(100% - ".concat(i.height,")")},(0,t.jsxs)("div",o({className:"para-container tlf "+d},{children:[(0,t.jsx)("div",o({className:"para-container-top",style:i},{children:h}),void 0),(0,t.jsxs)("div",o({className:"para-body",style:s},{children:[(0,t.jsx)("div",o({className:"para-container-left",style:n},{children:f}),void 0),(0,t.jsxs)("div",o({className:"para-body-right",style:{width:"auto",height:"100%"}},{children:[(0,t.jsx)("div",o({className:"para-container-right",style:a},{children:g}),void 0),(0,t.jsx)("div",o({className:"para-container-bottom",style:c},{children:m}),void 0)]}),void 0)]}),void 0)]}),void 0);case"tlrb":return i=o({height:h?"50px":"0",width:"100%"},u),n=o({height:"100%",width:"auto"},y),a=o({height:"100%",width:"auto"},b),c=o({height:m?"20px":"0px",width:"100%"},w),s={width:"100%",height:"calc(100% - ".concat(i.height," - ").concat(c.height,")")},(0,t.jsxs)("div",o({className:"para-container tlrb "+d},{children:[(0,t.jsx)("div",o({className:"para-container-top",style:i},{children:h}),void 0),(0,t.jsxs)("div",o({className:"para-body",style:s},{children:[(0,t.jsx)("div",o({className:"para-container-left",style:n},{children:f}),void 0),(0,t.jsx)("div",o({className:"para-container-right",style:a},{children:g}),void 0)]}),void 0),(0,t.jsx)("div",o({className:"para-container-bottom",style:c},{children:m}),void 0)]}),void 0);case"ltrb":return n=o({height:"100%",width:"auto"},y),i=o({height:h?"50px":"0",width:"100%"},u),c=o({height:m?"30px":"0px",width:"100%"},w),a=o({height:"calc(100% - ".concat(i.height,"px - ").concat(c.height,")"),width:"100%"},b),s={width:"auto",height:"100%"},(0,t.jsxs)("div",o({className:"para-container ltrb "+d},{children:[(0,t.jsx)("div",o({className:"para-container-left",style:n},{children:f}),void 0),(0,t.jsxs)("div",o({className:"para-body",style:s},{children:[(0,t.jsx)("div",o({className:"para-container-top",style:i},{children:h}),void 0),(0,t.jsx)("div",o({className:"para-container-right",style:a},{children:g}),void 0),(0,t.jsx)("div",o({className:"para-container-bottom",style:c},{children:m}),void 0)]}),void 0)]}),void 0);case"trb":return i=o({height:h?"50px":"0",width:"100%"},u),c=o({height:m?"30px":"0px",width:"100%"},w),a=o({height:"calc(100% - ".concat(i.height,"px - ").concat(c.height,")"),width:"100%"},b),(0,t.jsxs)("div",o({className:"para-container trb "+d},{children:[(0,t.jsx)("div",o({className:"para-container-top",style:i},{children:h}),void 0),(0,t.jsx)("div",o({className:"para-container-right",style:a},{children:g}),void 0),(0,t.jsx)("div",o({className:"para-container-bottom",style:c},{children:m}),void 0)]}),void 0)}return(0,t.jsx)("div",{children:"Error Position"},void 0)}),[N,d])};n.default=a}(),n}()}));
|
|
@@ -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
|
+
@keyframes paraSlideUpIn{0%{transform:scaleY(0.8);transform-origin:0% 0%;opacity:0}100%{transform:scaleY(1);transform-origin:0% 0%;opacity:1}}@keyframes paraSlideUpOut{0%{transform:scaleY(1);transform-origin:0% 0%;opacity:1}100%{transform:scaleY(0.8);transform-origin:0% 0%;opacity:0}}@keyframes paraSlideDownIn{0%{transform:scaleY(0.8);transform-origin:100% 100%;opacity:0}100%{transform:scaleY(1);transform-origin:100% 100%;opacity:1}}@keyframes paraSlideDownOut{0%{transform:scaleY(1);transform-origin:100% 100%;opacity:1}100%{transform:scaleY(0.8);transform-origin:100% 100%;opacity:0}}.paraui-picker{box-sizing:border-box;margin:0;padding:0;color:#2e3743;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:'tnum';padding:6px 11px 6px;position:relative;display:inline-flex;align-items:center;background:#fff;border:1px solid rgba(171,176,185,0.4);border-radius:8px;transition:border 0.3s, box-shadow 0.3s}.paraui-picker:hover{border-color:rgba(171,176,185,0.2);border-right-width:1px !important}.paraui-picker-focused{border-color:#3666d6;border-right-width:1px !important;outline:0}.paraui-picker-disabled{background:rgba(171,176,185,0.121569);border-color:rgba(171,176,185,0.4);cursor:not-allowed}.paraui-picker-disabled:hover{border-color:rgba(171,176,185,0.4)}.paraui-picker-disabled .paraui-picker-suffix{color:rgba(46,55,67,0.701961)}.paraui-picker-borderless{background-color:transparent !important;border-color:transparent !important;box-shadow:none !important}.paraui-picker-input{position:relative;display:inline-flex;align-items:center;width:100%}.paraui-picker-input>input{position:relative;display:inline-block;width:100%;min-width:0;padding:4px 11px;color:#2e3743;font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;transition:all 0.3s;flex:auto;min-width:1px;height:auto;padding:0;background:transparent;border:0}.paraui-picker-input>input::-moz-placeholder{opacity:1}.paraui-picker-input>input::placeholder{color:rgba(46,55,67,0.4);font-size:14px}.paraui-picker-input>input:placeholder-shown{text-overflow:ellipsis}.paraui-picker-input>input:hover{border-color:rgba(171,176,185,0.2);border-right-width:1px !important}.paraui-picker-input>input:focus,.paraui-picker-input>input-focused{border-color:#3666d6;border-right-width:1px !important;outline:0}.paraui-picker-input>input-disabled{color:#2e3743;background-color:rgba(171,176,185,0.121569);cursor:not-allowed;opacity:1}.paraui-picker-input>input-disabled:hover{border-color:rgba(171,176,185,0.4);border-right-width:1px !important}.paraui-picker-input>input[disabled]{color:#2e3743;background-color:rgba(171,176,185,0.121569);cursor:not-allowed;opacity:1}.paraui-picker-input>input[disabled]:hover{border-color:rgba(171,176,185,0.4);border-right-width:1px !important}.paraui-picker-input>input-borderless,.paraui-picker-input>input-borderless:hover,.paraui-picker-input>input-borderless:focus,.paraui-picker-input>input-borderless-focused,.paraui-picker-input>input-borderless-disabled,.paraui-picker-input>input-borderless[disabled]{background-color:transparent;border:none;box-shadow:none}.paraui-picker-input>inputtextarea{max-width:100%;height:auto;min-height:32px;line-height:1.5715;vertical-align:bottom;transition:all 0.3s, height 0s}.paraui-picker-input>input-lg{padding:6.5px 11px;font-size:16px}.paraui-picker-input>input-sm{padding:0px 7px}.paraui-picker-input>input:focus{box-shadow:none}.paraui-picker-input>input[disabled]{background:transparent}.paraui-picker-input:hover .paraui-picker-clear{opacity:1}.paraui-picker-input-placeholder>input{color:#bfbfbf}.paraui-picker-large{padding:6.5px 11px 6.5px}.paraui-picker-large .paraui-picker-input>input{font-size:16px}.paraui-picker-small{padding:0px 7px 0px}.paraui-picker-suffix{align-self:center;margin-left:4px;color:rgba(46,55,67,0.701961);line-height:1;pointer-events:none}.paraui-picker-suffix>*{vertical-align:top}.paraui-picker-suffix svg{color:inherit;font-size:16px}.paraui-picker-clear{position:absolute;top:50%;right:0;color:rgba(46,55,67,0.701961);line-height:1;background:#fff;transform:translateY(-50%);cursor:pointer;opacity:0;transition:opacity 0.3s, color 0.3s}.paraui-picker-clear svg{color:inherit;font-size:16px}.paraui-picker-clear>*{vertical-align:top}.paraui-picker-clear:hover{color:rgba(46,55,67,0.701961)}.paraui-picker-separator{position:relative;display:inline-block;width:1em;height:16px;color:rgba(46,55,67,0.701961);font-size:16px;vertical-align:top;cursor:default}.paraui-picker-separator svg{color:inherit;font-size:inherit}.paraui-picker-focused .paraui-picker-separator{color:rgba(46,55,67,0.701961)}.paraui-picker-focused .paraui-picker-separator svg{color:inherit}.paraui-picker-disabled .paraui-picker-range-separator .paraui-picker-separator{cursor:not-allowed}.paraui-picker-range{position:relative;display:inline-flex}.paraui-picker-range .paraui-picker-clear{right:11px}.paraui-picker-range:hover .paraui-picker-clear{opacity:1}.paraui-picker-range .paraui-picker-active-bar{bottom:-1px;height:2px;margin-left:11px;background:#3D66F8;opacity:0;transition:all 0.3s ease-out;pointer-events:none}.paraui-picker-range.paraui-picker-focused .paraui-picker-active-bar{opacity:1}.paraui-picker-range-separator{align-items:center;padding:0 8px;line-height:1}.paraui-picker-range.paraui-picker-small .paraui-picker-clear{right:7px}.paraui-picker-range.paraui-picker-small .paraui-picker-active-bar{margin-left:7px}.paraui-picker-dropdown{box-sizing:border-box;margin:0;padding:0;color:#2e3743;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:'tnum';position:absolute;z-index:1400}.paraui-picker-dropdown-hidden{display:none}.paraui-picker-dropdown-placement-bottomLeft .paraui-picker-range-arrow{display:none;top:1.66666667px;transform:rotate(-45deg)}.paraui-picker-dropdown-placement-topLeft .paraui-picker-range-arrow{display:none;bottom:1.66666667px;transform:rotate(135deg)}.paraui-picker-dropdown.slide-up-enter.slide-up-enter-active.paraui-picker-dropdown-placement-topLeft,.paraui-picker-dropdown.slide-up-enter.slide-up-enter-active.paraui-picker-dropdown-placement-topRight,.paraui-picker-dropdown.slide-up-appear.slide-up-appear-active.paraui-picker-dropdown-placement-topLeft,.paraui-picker-dropdown.slide-up-appear.slide-up-appear-active.paraui-picker-dropdown-placement-topRight{animation-name:paraSlideDownIn}.paraui-picker-dropdown.slide-up-enter.slide-up-enter-active.paraui-picker-dropdown-placement-bottomLeft,.paraui-picker-dropdown.slide-up-enter.slide-up-enter-active.paraui-picker-dropdown-placement-bottomRight,.paraui-picker-dropdown.slide-up-appear.slide-up-appear-active.paraui-picker-dropdown-placement-bottomLeft,.paraui-picker-dropdown.slide-up-appear.slide-up-appear-active.paraui-picker-dropdown-placement-bottomRight{animation-name:paraSlideUpIn}.paraui-picker-dropdown.slide-up-leave.slide-up-leave-active.paraui-picker-dropdown-placement-topLeft,.paraui-picker-dropdown.slide-up-leave.slide-up-leave-active.paraui-picker-dropdown-placement-topRight{animation-name:paraSlideDownOut}.paraui-picker-dropdown.slide-up-leave.slide-up-leave-active.paraui-picker-dropdown-placement-bottomLeft,.paraui-picker-dropdown.slide-up-leave.slide-up-leave-active.paraui-picker-dropdown-placement-bottomRight{animation-name:paraSlideUpOut}.paraui-picker-dropdown-range{padding:6.66666667px 0}.paraui-picker-dropdown-range-hidden{display:none}.paraui-picker-dropdown .paraui-picker-panel>.paraui-picker-time-panel{padding-top:4px}.paraui-picker-ranges{margin-bottom:0;padding:4px 12px;overflow:hidden;line-height:34px;text-align:left;list-style:none}.paraui-picker-ranges>li{display:inline-block}.paraui-picker-ranges .paraui-picker-ok{float:right;margin-left:8px}.paraui-picker-range-wrapper{display:flex}.paraui-picker-range-arrow{position:absolute;z-index:1;display:none;width:10px;height:10px;margin-left:16.5px;box-shadow:2px -2px 6px rgba(0,0,0,0.06);transition:left 0.3s ease-out}.paraui-picker-range-arrow::after{position:absolute;top:1px;right:1px;width:10px;height:10px;border:5px solid #f0f0f0;border-color:#fff #fff transparent transparent;content:''}.paraui-picker-panel-container{overflow:hidden;vertical-align:top;background:#fff;border-radius:2px;box-shadow:0px 2px 8px 0px rgba(171,176,185,0.4);transition:margin 0.3s}.paraui-picker-panel-container .paraui-picker-panels{display:inline-flex;flex-wrap:nowrap;direction:ltr}.paraui-picker-panel-container .paraui-picker-panel{vertical-align:top;background:transparent;border-width:0 0 1px 0;border-radius:0}.paraui-picker-panel-container .paraui-picker-panel-focused{border-color:#f0f0f0}.paraui-picker-panel{display:inline-flex;flex-direction:column;text-align:center;background:#fff;border:1px solid #f0f0f0;border-radius:2px;outline:none}.paraui-picker-panel-focused{border-color:#1890ff}.paraui-picker-decade-panel,.paraui-picker-year-panel,.paraui-picker-quarter-panel,.paraui-picker-month-panel,.paraui-picker-week-panel,.paraui-picker-date-panel,.paraui-picker-time-panel{display:flex;flex-direction:column;width:300px}.paraui-picker-header{display:flex;padding:0 10px;color:rgba(0,0,0,0.85);border-bottom:1px solid rgba(171,176,185,0.2)}.paraui-picker-header>*{flex:none}.paraui-picker-header button{padding:0;color:rgba(46,55,67,0.701961);line-height:40px;background:transparent;border:0;cursor:pointer;transition:color 0.3s}.paraui-picker-header>button{min-width:1.6em;font-size:16px;color:rgba(46,55,67,0.701961)}.paraui-picker-header>button:hover{color:rgba(46,55,67,0.701961)}.paraui-picker-header-view{flex:auto;font-weight:500;line-height:40px;font-size:14px}.paraui-picker-header-view button{color:rgba(46,55,67,0.701961);font-weight:400}.paraui-picker-header-view button:not(:first-child){margin-left:8px}.paraui-picker-header-view button:hover{color:#3666d6}.paraui-picker-prev-icon,.paraui-picker-next-icon,.paraui-picker-super-prev-icon,.paraui-picker-super-next-icon{position:relative;display:inline-block;width:7px;height:7px}.paraui-picker-prev-icon::before,.paraui-picker-next-icon::before,.paraui-picker-super-prev-icon::before,.paraui-picker-super-next-icon::before{position:absolute;top:0;left:0;display:inline-block;width:7px;height:7px;border:0 solid currentColor;border-width:1.5px 0 0 1.5px;content:''}.paraui-picker-super-prev-icon::after,.paraui-picker-super-next-icon::after{position:absolute;top:4px;left:4px;display:inline-block;width:7px;height:7px;border:0 solid currentColor;border-width:1.5px 0 0 1.5px;content:''}.paraui-picker-prev-icon,.paraui-picker-super-prev-icon{transform:rotate(-45deg)}.paraui-picker-next-icon,.paraui-picker-super-next-icon{transform:rotate(135deg)}.paraui-picker-content{width:100%;table-layout:fixed;border-collapse:collapse}.paraui-picker-content th,.paraui-picker-content td{position:relative;min-width:24px;font-weight:400}.paraui-picker-content th{height:30px;color:rgba(0,0,0,0.85);line-height:30px}.paraui-picker-cell{padding:3px 0;color:rgba(0,0,0,0.25);cursor:pointer}.paraui-picker-cell-in-view{color:#2e3743}.paraui-picker-cell-disabled{cursor:not-allowed}.paraui-picker-cell::before{position:absolute;top:50%;right:0;left:0;z-index:1;height:24px;transform:translateY(-50%);content:''}.paraui-picker-cell .paraui-picker-cell-inner{position:relative;z-index:2;display:inline-block;min-width:24px;height:24px;line-height:24px;border-radius:2px;transition:background 0.3s, border 0.3s}.paraui-picker-cell .paraui-picker-cell-inner:after{display:none}.paraui-picker-cell:hover:not(.paraui-picker-cell-in-view) .paraui-picker-cell-inner,.paraui-picker-cell:hover:not(.paraui-picker-cell-selected):not(.paraui-picker-cell-range-start):not(.paraui-picker-cell-range-end):not(.paraui-picker-cell-range-hover-start):not(.paraui-picker-cell-range-hover-end) .paraui-picker-cell-inner{background:#ededed;border-radius:4px}.paraui-picker-cell-in-view.paraui-picker-cell-today .paraui-picker-cell-inner::before{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;border:1px solid #3666d6;border-radius:4px;content:''}.paraui-picker-cell-in-view.paraui-picker-cell-in-range{position:relative;color:#3666d6}.paraui-picker-cell-in-view.paraui-picker-cell-in-range::before{background:rgba(54,102,214,0.0509804)}.paraui-picker-cell-in-view.paraui-picker-cell-selected .paraui-picker-cell-inner,.paraui-picker-cell-in-view.paraui-picker-cell-range-start .paraui-picker-cell-inner,.paraui-picker-cell-in-view.paraui-picker-cell-range-end .paraui-picker-cell-inner{color:#fff;background:#3666d6;border-radius:4px}.paraui-picker-cell-in-view.paraui-picker-cell-range-start:not(.paraui-picker-cell-range-start-single)::before,.paraui-picker-cell-in-view.paraui-picker-cell-range-end:not(.paraui-picker-cell-range-end-single)::before{background:rgba(54,102,214,0.0509804)}.paraui-picker-cell-in-view.paraui-picker-cell-range-start::before{left:50%}.paraui-picker-cell-in-view.paraui-picker-cell-range-end::before{right:50%}.paraui-picker-cell-in-view.paraui-picker-cell-range-hover-start:not(.paraui-picker-cell-in-range):not(.paraui-picker-cell-range-start):not(.paraui-picker-cell-range-end)::after,.paraui-picker-cell-in-view.paraui-picker-cell-range-hover-end:not(.paraui-picker-cell-in-range):not(.paraui-picker-cell-range-start):not(.paraui-picker-cell-range-end)::after,.paraui-picker-cell-in-view.paraui-picker-cell-range-hover-start.paraui-picker-cell-range-start-single::after,.paraui-picker-cell-in-view.paraui-picker-cell-range-hover-start.paraui-picker-cell-range-start.paraui-picker-cell-range-end.paraui-picker-cell-range-end-near-hover::after,.paraui-picker-cell-in-view.paraui-picker-cell-range-hover-end.paraui-picker-cell-range-start.paraui-picker-cell-range-end.paraui-picker-cell-range-start-near-hover::after,.paraui-picker-cell-in-view.paraui-picker-cell-range-hover-end.paraui-picker-cell-range-end-single::after,.paraui-picker-cell-in-view.paraui-picker-cell-range-hover:not(.paraui-picker-cell-in-range)::after{position:absolute;top:50%;z-index:0;height:24px;border-top:1px dashed rgba(54,102,214,0.8);border-bottom:1px dashed rgba(54,102,214,0.8);transform:translateY(-50%);content:''}.paraui-picker-cell-range-hover-start::after,.paraui-picker-cell-range-hover-end::after,.paraui-picker-cell-range-hover::after{right:0;left:2px}.paraui-picker-cell-in-view.paraui-picker-cell-rage-start:not(.paraui-picker-cell-range-start-single):not(.paraui-picker-cell-range-end) .paraui-picker-cell-inner{border-radius:4px}.paraui-picker-cell-in-view.paraui-picker-cell-range-end:not(.paraui-picker-cell-range-end-single):not(.paraui-picker-cell-range-start) .paraui-picker-cell-inner{border-radius:4px}.paraui-picker-date-panel .paraui-picker-cell-in-view.paraui-picker-cell-in-range.paraui-picker-cell-range-hover-start .paraui-picker-cell-inner::after,.paraui-picker-date-panel .paraui-picker-cell-in-view.paraui-picker-cell-in-range.paraui-picker-cell-range-hover-end .paraui-picker-cell-inner::after{position:absolute;top:0;bottom:0;z-index:-1;background:rgba(54,102,214,0.0509804);content:''}.paraui-picker-date-panel .paraui-picker-cell-in-view.paraui-picker-cell-in-range.paraui-picker-cell-range-hover-start .paraui-picker-cell-inner::after{right:-6px;left:0}.paraui-picker-date-panel .paraui-picker-cell-in-view.paraui-picker-cell-in-range.paraui-picker-cell-range-hover-end .paraui-picker-cell-inner::after{right:0;left:-6px}.paraui-picker-cell-range-hover.paraui-picker-cell-range-start::after{right:50%}.paraui-picker-cell-range-hover.paraui-picker-cell-range-end::after{left:50%}tr>.paraui-picker-cell-in-view.paraui-picker-cell-range-hover:first-child::after,tr>.paraui-picker-cell-in-view.paraui-picker-cell-range-hover-end:first-child::after,.paraui-picker-cell-in-view.paraui-picker-cell-start.paraui-picker-cell-range-hover-edge-start.paraui-picker-cell-range-hover-edge-start-near-range::after,.paraui-picker-cell-in-view.paraui-picker-cell-range-hover-edge-start:not(.paraui-picker-cell-range-hover-edge-start-near-range)::after,.paraui-picker-cell-in-view.paraui-picker-cell-range-hover-start::after{left:6px;border-left:1px dashed rgba(54,102,214,0.8);border-top-left-radius:4px;border-bottom-left-radius:4px}tr>.paraui-picker-cell-in-view.paraui-picker-cell-range-hover:last-child::after,tr>.paraui-picker-cell-in-view.paraui-picker-cell-range-hover-start:last-child::after,.paraui-picker-cell-in-view.paraui-picker-cell-end.paraui-picker-cell-range-hover-edge-end.paraui-picker-cell-range-hover-edge-end-near-range::after,.paraui-picker-cell-in-view.paraui-picker-cell-range-hover-edge-end:not(.paraui-picker-cell-range-hover-edge-end-near-range)::after,.paraui-picker-cell-in-view.paraui-picker-cell-range-hover-end::after{right:6px;border-right:1px dashed rgba(54,102,214,0.8);border-top-right-radius:4px;border-bottom-right-radius:4px}.paraui-picker-cell-disabled{pointer-events:none}.paraui-picker-cell-disabled .paraui-picker-cell-inner{color:#bbbecb;background:transparent}.paraui-picker-cell-disabled::before{background:#f8f8f8}.paraui-picker-cell-disabled.paraui-picker-cell-today .paraui-picker-cell-inner::before{border-color:rgba(0,0,0,0.25)}.paraui-picker-decade-panel .paraui-picker-content,.paraui-picker-year-panel .paraui-picker-content,.paraui-picker-quarter-panel .paraui-picker-content,.paraui-picker-month-panel .paraui-picker-content{height:264px}.paraui-picker-decade-panel .paraui-picker-cell-inner,.paraui-picker-year-panel .paraui-picker-cell-inner,.paraui-picker-quarter-panel .paraui-picker-cell-inner,.paraui-picker-month-panel .paraui-picker-cell-inner{padding:0 8px}.paraui-picker-decade-panel .paraui-picker-cell-disabled .paraui-picker-cell-inner,.paraui-picker-year-panel .paraui-picker-cell-disabled .paraui-picker-cell-inner,.paraui-picker-quarter-panel .paraui-picker-cell-disabled .paraui-picker-cell-inner,.paraui-picker-month-panel .paraui-picker-cell-disabled .paraui-picker-cell-inner{background:#f5f5f5}.paraui-picker-quarter-panel .paraui-picker-content{height:56px}.paraui-picker-footer{width:min-content;min-width:100%;line-height:42px;text-align:center}.paraui-picker-panel .paraui-picker-footer{border-top:1px solid rgba(171,176,185,0.2)}.paraui-picker-footer-extra{padding:0 12px;line-height:38px;text-align:left}.paraui-picker-footer-extra:not(:last-child){border-bottom:1px solid #f0f0f0}.paraui-picker-now{text-align:left}.paraui-picker-now-btn{color:#3666d6;font-size:12px;cursor:pointer}.paraui-picker-today-btn{color:#3666d6;cursor:pointer;font-size:14px}.paraui-picker-today-btn:hover{color:#3666d6}.paraui-picker-today-btn:active{color:#3666d6}.paraui-picker-today-btn-disabled-disabled{cursor:not-allowed;color:rgba(0,0,0,0.25);cursor:not-allowed}.paraui-picker-decade-panel .paraui-picker-cell-inner{padding:0 4px}.paraui-picker-decade-panel .paraui-picker-cell::before{display:none}.paraui-picker-year-panel .paraui-picker-body,.paraui-picker-quarter-panel .paraui-picker-body,.paraui-picker-month-panel .paraui-picker-body{padding:0 8px}.paraui-picker-year-panel .paraui-picker-cell-inner,.paraui-picker-quarter-panel .paraui-picker-cell-inner,.paraui-picker-month-panel .paraui-picker-cell-inner{width:60px}.paraui-picker-year-panel .paraui-picker-cell-range-hover-start::after,.paraui-picker-quarter-panel .paraui-picker-cell-range-hover-start::after,.paraui-picker-month-panel .paraui-picker-cell-range-hover-start::after{left:14px;border-left:1px dashed #7ec1ff;border-radius:2px 0 0 2px}.paraui-picker-panel-rtl .paraui-picker-year-panel .paraui-picker-cell-range-hover-start::after,.paraui-picker-panel-rtl .paraui-picker-quarter-panel .paraui-picker-cell-range-hover-start::after,.paraui-picker-panel-rtl .paraui-picker-month-panel .paraui-picker-cell-range-hover-start::after{right:14px;border-right:1px dashed #7ec1ff;border-radius:0 2px 2px 0}.paraui-picker-year-panel .paraui-picker-cell-range-hover-end::after,.paraui-picker-quarter-panel .paraui-picker-cell-range-hover-end::after,.paraui-picker-month-panel .paraui-picker-cell-range-hover-end::after{right:14px;border-right:1px dashed #7ec1ff;border-radius:0 2px 2px 0}.paraui-picker-panel-rtl .paraui-picker-year-panel .paraui-picker-cell-range-hover-end::after,.paraui-picker-panel-rtl .paraui-picker-quarter-panel .paraui-picker-cell-range-hover-end::after,.paraui-picker-panel-rtl .paraui-picker-month-panel .paraui-picker-cell-range-hover-end::after{left:14px;border-left:1px dashed #7ec1ff;border-radius:2px 0 0 2px}.paraui-picker-week-panel .paraui-picker-body{padding:8px 12px}.paraui-picker-week-panel .paraui-picker-cell:hover .paraui-picker-cell-inner,.paraui-picker-week-panel .paraui-picker-cell-selected .paraui-picker-cell-inner,.paraui-picker-week-panel .paraui-picker-cell .paraui-picker-cell-inner{background:transparent !important}.paraui-picker-week-panel-row td{transition:background 0.3s}.paraui-picker-week-panel-row:hover td{background:#ededed}.paraui-picker-week-panel-row:hover td:first-child{border-radius:4px 0 0 4px}.paraui-picker-week-panel-row:hover td:last-child{border-radius:0 4px 4px 0}.paraui-picker-week-panel-row-selected td,.paraui-picker-week-panel-row-selected:hover td{background:#3666d6}.paraui-picker-week-panel-row-selected td:first-child,.paraui-picker-week-panel-row-selected:hover td:first-child{border-radius:4px 0 0 4px}.paraui-picker-week-panel-row-selected td:last-child,.paraui-picker-week-panel-row-selected:hover td:last-child{border-radius:0 4px 4px 0}.paraui-picker-week-panel-row-selected td.paraui-picker-cell-week,.paraui-picker-week-panel-row-selected:hover td.paraui-picker-cell-week{color:rgba(255,255,255,0.5)}.paraui-picker-week-panel-row-selected td.paraui-picker-cell-today .paraui-picker-cell-inner::before,.paraui-picker-week-panel-row-selected:hover td.paraui-picker-cell-today .paraui-picker-cell-inner::before{border-color:#fff}.paraui-picker-week-panel-row-selected td .paraui-picker-cell-inner,.paraui-picker-week-panel-row-selected:hover td .paraui-picker-cell-inner{color:#fff}.paraui-picker-date-panel .paraui-picker-body{padding:8px 12px}.paraui-picker-date-panel .paraui-picker-content{width:272px}.paraui-picker-date-panel .paraui-picker-content th{width:36px}.paraui-picker-datetime-panel{display:flex}.paraui-picker-datetime-panel .paraui-picker-time-panel{border-left:1px solid #f0f0f0}.paraui-picker-datetime-panel .paraui-picker-date-panel,.paraui-picker-datetime-panel .paraui-picker-time-panel{transition:opacity 0.3s}.paraui-picker-datetime-panel-active .paraui-picker-date-panel,.paraui-picker-datetime-panel-active .paraui-picker-time-panel{opacity:0.3}.paraui-picker-datetime-panel-active .paraui-picker-date-panel-active,.paraui-picker-datetime-panel-active .paraui-picker-time-panel-active{opacity:1}.paraui-picker-time-panel{width:auto;min-width:auto}.paraui-picker-time-panel .paraui-picker-content{display:flex;flex:auto;height:224px}.paraui-picker-time-panel-column{flex:1 0 auto;width:72px;margin:0;padding:0;overflow-y:hidden;text-align:left;list-style:none;transition:background 0.3s}.paraui-picker-use12Hours .paraui-picker-time-panel-column:last-child{width:auto}.paraui-picker-use12Hours .paraui-picker-time-panel-column:last-child>li .paraui-picker-time-panel-cell-inner{padding:0 10px}.paraui-picker-time-panel-column::after{display:block;height:196px;content:''}.paraui-picker-datetime-panel .paraui-picker-time-panel-column::after{height:198px}.paraui-picker-time-panel-column:not(:first-child){border-left:1px solid #f0f0f0}.paraui-picker-time-panel-column-active{background:rgba(230,247,255,0.2)}.paraui-picker-time-panel-column:hover{overflow-y:auto}.paraui-picker-time-panel-column>li{margin:0;padding:0}.paraui-picker-time-panel-column>li.paraui-picker-time-panel-cell .paraui-picker-time-panel-cell-inner{display:block;width:100%;height:28px;margin:0;padding:0 0 0 28px;color:#6E7488;line-height:28px;border-radius:0;cursor:pointer;transition:background 0.3s}.paraui-picker-time-panel-column>li.paraui-picker-time-panel-cell .paraui-picker-time-panel-cell-inner:hover{background:#ededed}.paraui-picker-time-panel-column>li.paraui-picker-time-panel-cell-selected .paraui-picker-time-panel-cell-inner{background:rgba(54,102,214,0.0509804);color:#3666d6}.paraui-picker-time-panel-column>li.paraui-picker-time-panel-cell-disabled .paraui-picker-time-panel-cell-inner{color:#BBBECB;background:transparent;cursor:not-allowed}.paraui-picker-time-panel-column>li.paraui-picker-time-panel-cell-disabled .paraui-picker-time-panel-cell-inner:hover{background:transparent}_:-ms-fullscreen .paraui-picker-range-wrapper .paraui-picker-month-panel .paraui-picker-cell,_:-ms-fullscreen .paraui-picker-range-wrapper .paraui-picker-year-panel .paraui-picker-cell,:root .paraui-picker-range-wrapper .paraui-picker-month-panel .paraui-picker-cell,:root .paraui-picker-range-wrapper .paraui-picker-year-panel .paraui-picker-cell{padding:21px 0}paraui-picker-rtl{direction:rtl}.paraui-picker-rtl paraui-picker-suffix{margin-right:4px;margin-left:0}.paraui-picker-rtl paraui-picker-clear{right:auto;left:0}.paraui-picker-rtl paraui-picker-separator{transform:rotate(180deg)}.paraui-picker-panel-rtl paraui-picker-header-view button:not(:first-child){margin-right:8px;margin-left:0}paraui-picker-range .paraui-picker-clear .paraui-picker-rtl{right:auto;left:11px}paraui-picker-range .paraui-picker-active-bar .paraui-picker-rtl{margin-right:11px;margin-left:0}paraui-picker-range.paraui-picker-small .paraui-picker-active-bar .paraui-picker-rtl{margin-right:7px}paraui-picker-ranges .paraui-picker-dropdown-rtl{text-align:right}.paraui-picker-dropdown-rtl paraui-picker-ranges .paraui-picker-ok{float:left;margin-right:8px;margin-left:0}paraui-picker-panel-rtl{direction:rtl}.paraui-picker-panel-rtl paraui-picker-prev-icon,.paraui-picker-panel-rtl paraui-picker-super-prev-icon{transform:rotate(135deg)}.paraui-picker-panel-rtl paraui-picker-next-icon,.paraui-picker-panel-rtl paraui-picker-super-next-icon{transform:rotate(-45deg)}paraui-picker-cell .paraui-picker-cell-inner{position:relative;z-index:2;display:inline-block;min-width:24px;height:24px;line-height:24px;border-radius:2px;transition:background 0.3s, border 0.3s}.paraui-picker-panel-rtl paraui-picker-cell-in-viewparaui-picker-cell-range-start::before{right:50%;left:0}.paraui-picker-panel-rtl paraui-picker-cell-in-viewparaui-picker-cell-range-end::before{right:0;left:50%}.paraui-picker-panel-rtl paraui-picker-cell-in-viewparaui-picker-cell-range-startparaui-picker-cell-range-end::before{right:50%;left:50%}.paraui-picker-panel-rtl .paraui-picker-date-panel paraui-picker-cell-in-viewparaui-picker-cell-in-rangeparaui-picker-cell-range-hover-start .paraui-picker-cell-inner::after{right:0;left:-6px}.paraui-picker-date-panel paraui-picker-cell-in-viewparaui-picker-cell-in-rangparaui-picker-cellparaui-picker-cell-range-hover-end .paraui-picker-cell-inner::after .paraui-picker-panel-rtl{right:-6px;left:0}.paraui-picker-panel-rtl paraui-picker-cell-range-hoverparaui-picker-cell-range-start::after{right:0;left:50%}.paraui-picker-panel-rtl paraui-picker-cell-range-hoverparaui-picker-cell-range-end::after{right:50%;left:0}paraui-picker-cell-in-viewparaui-picker-cell-range-start:not(paraui-picker-cell-range-start-single):not(paraui-picker-cell-range-end) .paraui-picker-cell-inner .paraui-picker-panel-rtl{border-radius:0 2px 2px 0}paraui-picker-cell-in-viewparaui-picker-cell-range-end:not(paraui-picker-cell-range-end-single):not(paraui-picker-cell-range-start) .paraui-picker-cell-inner .paraui-picker-panel-rtl{border-radius:2px 0 0 2px}.paraui-picker-panel-rtl tr>paraui-picker-cell-in-viewparaui-picker-cell-range-hover:not(paraui-picker-cell-selected):first-child::after,.paraui-picker-panel-rtl paraui-picker-cell-in-viewparaui-picker-cell-startparaui-picker-cell-range-hover-edge-startparaui-picker-cell-range-hover-edge-start-near-range::after,.paraui-picker-panel-rtl paraui-picker-cell-in-viewparaui-picker-cell-range-hover-edge-start:not(paraui-picker-cell-range-hover-edge-start-near-range)::after,.paraui-picker-panel-rtl paraui-picker-cell-in-viewparaui-picker-cell-range-hover-start::after{right:6px;left:0;border-right:1px dashed #7ec1ff;border-left:none;border-top-left-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:0}.paraui-picker-panel-rtl tr>paraui-picker-cell-in-viewparaui-picker-cell-range-hover:not(paraui-picker-cell-selected):last-child::after,.paraui-picker-panel-rtl paraui-picker-cell-in-viewparaui-picker-cell-endparaui-picker-cell-range-hover-edge-endparaui-picker-cell-range-hover-edge-end-near-range::after,.paraui-picker-panel-rtl paraui-picker-cell-in-viewparaui-picker-cell-range-hover-edge-end:not(paraui-picker-cell-range-hover-edge-end-near-range)::after,.paraui-picker-panel-rtl paraui-picker-cell-in-viewparaui-picker-cell-range-hover-end::after{right:0;left:6px;border-right:none;border-left:1px dashed #7ec1ff;border-top-left-radius:2px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:2px}.paraui-picker-panel-rtl tr>paraui-picker-cell-in-viewparaui-picker-cell-range-hover-start:last-child::after,.paraui-picker-panel-rtl tr>paraui-picker-cell-in-viewparaui-picker-cell-range-hover-end:first-child::after,.paraui-picker-panel-rtl paraui-picker-cell-in-viewparaui-picker-cell-startparaui-picker-cell-range-hover-edge-start:not(paraui-picker-cell-range-hover)::after,.paraui-picker-panel-rtl paraui-picker-cell-in-viewparaui-picker-cell-startparaui-picker-cell-range-hover-endparaui-picker-cell-range-hover-edge-start:not(paraui-picker-cell-range-hover)::after,.paraui-picker-panel-rtl paraui-picker-cell-in-viewparaui-picker-cell-endparaui-picker-cell-range-hover-startparaui-picker-cell-range-hover-edge-end:not(paraui-picker-cell-range-hover)::after,.paraui-picker-panel-rtl tr>paraui-picker-cell-in-viewparaui-picker-cell-startparaui-picker-cell-range-hoverparaui-picker-cell-range-hover-edge-start:last-child::after,.paraui-picker-panel-rtl tr>paraui-picker-cell-in-viewparaui-picker-cell-endparaui-picker-cell-range-hoverparaui-picker-cell-range-hover-edge-end:first-child::after{right:6px;left:6px;border-right:1px dashed #7ec1ff;border-left:1px dashed #7ec1ff;border-radius:2px}.paraui-picker-dropdown-rtl paraui-picker-footer-extra{direction:rtl;text-align:right}.paraui-picker-panel-rtl paraui-picker-time-panel{direction:ltr}.paraui-picker-wrapper{position:relative}.paraui-picker-wrapper .paraui-picker-error{border-color:#eb6054}.paraui-picker-wrapper .paraui-picker-helperText{margin:5px 0 0 12px;color:#eb6054;font-size:14px}
|
|
6
|
+
|
package/DatePicker/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@material-ui/core"),require("@para-ui/icons/Calendar"),require("@para-ui/icons/CloseCircle"),require("@para-ui/icons/CloseCircleF"),require("@para-ui/icons/Down"),require("@para-ui/icons/Forbid"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/SortRight"),require("@para-ui/icons/Time"),require("moment"),require("rc-picker"),require("react")):"function"==typeof define&&define.amd?define(["@material-ui/core","@para-ui/icons/Calendar","@para-ui/icons/CloseCircle","@para-ui/icons/CloseCircleF","@para-ui/icons/Down","@para-ui/icons/Forbid","@para-ui/icons/LoadingF","@para-ui/icons/SortRight","@para-ui/icons/Time","moment","rc-picker","react"],r):"object"==typeof exports?exports.ParaUI=r(require("@material-ui/core"),require("@para-ui/icons/Calendar"),require("@para-ui/icons/CloseCircle"),require("@para-ui/icons/CloseCircleF"),require("@para-ui/icons/Down"),require("@para-ui/icons/Forbid"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/SortRight"),require("@para-ui/icons/Time"),require("moment"),require("rc-picker"),require("react")):e.ParaUI=r(e["@material-ui/core"],e["@para-ui/icons/Calendar"],e["@para-ui/icons/CloseCircle"],e["@para-ui/icons/CloseCircleF"],e["@para-ui/icons/Down"],e["@para-ui/icons/Forbid"],e["@para-ui/icons/LoadingF"],e["@para-ui/icons/SortRight"],e["@para-ui/icons/Time"],e.moment,e["rc-picker"],e.react)}(self,(function(e,r,t,n,o,a,i,c,l,u,s,p){return function(){var d
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@material-ui/core"),require("@para-ui/icons/Calendar"),require("@para-ui/icons/CloseCircle"),require("@para-ui/icons/CloseCircleF"),require("@para-ui/icons/Down"),require("@para-ui/icons/Forbid"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/SortRight"),require("@para-ui/icons/Time"),require("moment"),require("rc-picker"),require("react")):"function"==typeof define&&define.amd?define(["@material-ui/core","@para-ui/icons/Calendar","@para-ui/icons/CloseCircle","@para-ui/icons/CloseCircleF","@para-ui/icons/Down","@para-ui/icons/Forbid","@para-ui/icons/LoadingF","@para-ui/icons/SortRight","@para-ui/icons/Time","moment","rc-picker","react"],r):"object"==typeof exports?exports.ParaUI=r(require("@material-ui/core"),require("@para-ui/icons/Calendar"),require("@para-ui/icons/CloseCircle"),require("@para-ui/icons/CloseCircleF"),require("@para-ui/icons/Down"),require("@para-ui/icons/Forbid"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/SortRight"),require("@para-ui/icons/Time"),require("moment"),require("rc-picker"),require("react")):e.ParaUI=r(e["@material-ui/core"],e["@para-ui/icons/Calendar"],e["@para-ui/icons/CloseCircle"],e["@para-ui/icons/CloseCircleF"],e["@para-ui/icons/Down"],e["@para-ui/icons/Forbid"],e["@para-ui/icons/LoadingF"],e["@para-ui/icons/SortRight"],e["@para-ui/icons/Time"],e.moment,e["rc-picker"],e.react)}(self,(function(e,r,t,n,o,a,i,c,l,u,s,p){return function(){var d={2398:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},6010:function(e,r,t){"use strict";function n(e){var r,t,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=n(e[r]))&&(o&&(o+=" "),o+=t);else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function o(){for(var e,r,t=0,o="";t<arguments.length;)(e=arguments[t++])&&(r=n(e))&&(o&&(o+=" "),o+=r);return o}t.d(r,{Z:function(){return o}})},7418:function(e){"use strict";
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
|
-
*/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,a){for(var i,c,l=o(e),u=1;u<arguments.length;u++){for(var s in i=Object(arguments[u]))t.call(i,s)&&(l[s]=i[s]);if(r){c=r(i);for(var p=0;p<c.length;p++)n.call(i,c[p])&&(l[c[p]]=i[c[p]])}}return l}},
|
|
6
|
+
*/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,a){for(var i,c,l=o(e),u=1;u<arguments.length;u++){for(var s in i=Object(arguments[u]))t.call(i,s)&&(l[s]=i[s]);if(r){c=r(i);for(var p=0;p<c.length;p++)n.call(i,c[p])&&(l[c[p]]=i[c[p]])}}return l}},4993:function(e,r,t){"use strict";var n=t(2398);r.Z=void 0;var o=n(t(5295)),a=t(5520),i={getNow:function(){return(0,o.default)()},getFixedDate:function(e){return(0,o.default)(e,"YYYY-MM-DD")},getEndDate:function(e){return e.clone().endOf("month")},getWeekDay:function(e){var r=e.clone().locale("en_US");return r.weekday()+r.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},addYear:function(e,r){return e.clone().add(r,"year")},addMonth:function(e,r){return e.clone().add(r,"month")},addDate:function(e,r){return e.clone().add(r,"day")},setYear:function(e,r){return e.clone().year(r)},setMonth:function(e,r){return e.clone().month(r)},setDate:function(e,r){return e.clone().date(r)},setHour:function(e,r){return e.clone().hour(r)},setMinute:function(e,r){return e.clone().minute(r)},setSecond:function(e,r){return e.clone().second(r)},isAfter:function(e,r){return e.isAfter(r)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return(0,o.default)().locale(e).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,r){return r.clone().locale(e).weekday(0)},getWeek:function(e,r){return r.clone().locale(e).week()},getShortWeekDays:function(e){return(0,o.default)().locale(e).localeData().weekdaysMin()},getShortMonths:function(e){return(0,o.default)().locale(e).localeData().monthsShort()},format:function(e,r,t){return r.clone().locale(e).format(t)},parse:function(e,r,t){for(var n=[],i=0;i<t.length;i+=1){var c=t[i],l=r;if(c.includes("wo")||c.includes("Wo")){var u=(c=c.replace(/wo/g,"w").replace(/Wo/g,"W")).match(/[-YyMmDdHhSsWwGg]+/g),s=l.match(/[-\d]+/g);u&&s?(c=u.join(""),l=s.join("")):n.push(c.replace(/o/g,""))}var p=(0,o.default)(l,c,e,!0);if(p.isValid())return p}for(var d=0;d<n.length;d+=1){var f=(0,o.default)(r,n[d],e,!1);if(f.isValid())return(0,a.noteOnce)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),f}return null}}};r.Z=i},7590:function(e,r){"use strict";r.Z=void 0;var t={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};r.Z=t},5369:function(e,r){"use strict";r.Z=void 0;var t={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};r.Z=t},5520:function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.warning=n,r.note=o,r.resetWarned=function(){t={}},r.call=a,r.warningOnce=i,r.noteOnce=function(e,r){a(o,e,r)},r.default=void 0;var t={};function n(e,r){0}function o(e,r){0}function a(e,r,n){r||t[n]||(e(!1,n),t[n]=!0)}function i(e,r){a(n,e,r)}var c=i;r.default=c},5251:function(e,r,t){"use strict";
|
|
7
7
|
/** @license React v17.0.2
|
|
8
8
|
* react-jsx-runtime.production.min.js
|
|
9
9
|
*
|
|
@@ -11,4 +11,4 @@ object-assign
|
|
|
11
11
|
*
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/t(4126);var n=t(9297),o=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),r.Fragment=a("react.fragment")}var i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,t){var n,a={},u=null,s=null;for(n in void 0!==t&&(u=""+t),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(s=r.ref),r)c.call(r,n)&&!l.hasOwnProperty(n)&&(a[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===a[n]&&(a[n]=r[n]);return{$$typeof:o,type:e,key:u,ref:s,props:a,_owner:i.current}}r.jsx=u,r.jsxs=u},7712:function(e,r,t){"use strict";e.exports=t(9524)},2990:function(e,r,t){"use strict";t.d(r,{default:function(){return g}});var n=t(7712),o=t(9297),a=t(1731),i=t(4927),c=t(1102),l=t.n(c),u=t(2749),s=t.n(u),p=t(6885),d=t(6028),f=t.n(d),v=function(){return v=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},v.apply(this,arguments)};var h=function(){return h=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},h.apply(this,arguments)},m=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t},y=function(e){var r=e.variant,t=void 0===r?"contained":r,c=e.size,u=void 0===c?"large":c,d=e.className,f=e.disabled,v=void 0!==f&&f,y=e.children,g=e.startIcon,b=e.endIcon,x=e.loading,j=void 0!==x&&x,k=e.toolTipTitle,P=void 0===k?"":k,O=e.danger,w=void 0!==O&&O,S=m(e,["variant","size","className","disabled","children","startIcon","endIcon","loading","toolTipTitle","danger"]),C=(0,o.useState)(!1),N=C[0],T=C[1],_=function(e){if(!N)return"start"===e&&g?(0,n.jsx)("span",h({className:(0,i.Z)("btn-icon","start-icon")},{children:g}),void 0):"end"===e&&b?(0,n.jsx)("span",h({className:(0,i.Z)("btn-icon","end-icon")},{children:b}),void 0):null;if("object"==typeof j){var r=j.delay||0;setTimeout((function(){return T(!1)}),r)}return"start"===e?(0,n.jsx)("span",h({className:"btn-icon loading-icon"},{children:(0,n.jsx)(l(),{},void 0)}),void 0):null},Y=(0,n.jsx)(a.Button,h({},S,{color:"default",variant:"contained",disabled:v,disableRipple:!0,disableElevation:!0,className:(0,i.Z)("paraui-button",d,"paraui-button-".concat(t),"paraui-button-".concat(u),N&&"paraui-button-loading",w&&!v&&"paraui-button-dangerous"),startIcon:_("start"),endIcon:_("end")},{children:y}),void 0);return(0,o.useEffect)((function(){T(!!j)}),[j]),v&&P?(0,n.jsx)(p.default,h({title:function(){if(v&&P){return(0,n.jsxs)("span",{children:[(0,n.jsx)(s(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}},void 0),P]},void 0)}return P}()},{children:(0,n.jsx)("span",h({className:"paraui-button--disabled"},{children:Y}),void 0)}),void 0):Y};y.IconButton=function(e){var r=e.variant,t=void 0===r?"contained":r,c=e.size,u=void 0===c?"large":c,d=e.toolTipTitle,f=void 0===d?"":d,v=e.children,y=e.className,g=e.disabled,b=void 0!==g&&g,x=e.loading,j=void 0!==x&&x,k=e.TooltipProps,P=e.danger,O=void 0!==P&&P,w=m(e,["variant","size","toolTipTitle","children","className","disabled","loading","TooltipProps","danger"]),S=(0,o.useState)(!1),C=S[0],N=S[1],T=(0,n.jsx)(a.IconButton,h({},w,{disabled:b,disableRipple:!0,className:(0,i.Z)("paraui-icon-button",y,"paraui-icon-button-".concat(t),"paraui-icon-button-".concat(u),C&&"paraui-icon-button-loading",O&&!b&&"paraui-icon-button-dangerous")},{children:function(){if(!C)return v;if("object"==typeof j){var e=j.delay||0;setTimeout((function(){return N(!1)}),e)}return(0,n.jsx)("span",h({className:"loading-icon"},{children:(0,n.jsx)(l(),{},void 0)}),void 0)}()}),void 0);return(0,o.useEffect)((function(){N(!!j)}),[j]),f?(0,n.jsx)(p.default,h({},k,{title:function(){if(b&&f){return(0,n.jsxs)("span",{children:[(0,n.jsx)(s(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}},void 0),f]},void 0)}return f}()},{children:b?(0,n.jsx)("span",h({className:"paraui-button--disabled"},{children:T}),void 0):T}),void 0):T},y.SplitButton=function(e){var r=e.buttonText,t=e.options,c=void 0===t?[]:t,l=e.className,u=e.disabled,s=void 0!==u&&u,p=e.onClick,d=e.optionRender,h=(0,o.useState)(!1),m=h[0],y=h[1],b=(0,o.useRef)(null),x=(0,o.useRef)(),j=(0,o.useState)(0),k=j[0],P=j[1],O=function(e,r,t){var n;P(r),y(!1),null===(n=x.current)||void 0===n||n.classList.remove("paraui-button-split--active"),null==p||p(e,t)},w=function(e){var r,t;(null===(r=b.current)||void 0===r?void 0:r.contains(e.target))||(y(!1),null===(t=x.current)||void 0===t||t.classList.remove("paraui-button-split--active"))},S=function(){return(0,n.jsx)("div",v({className:"paraui-button-split-list"},{children:(0,n.jsx)("ul",{children:c.map((function(e,r){return Array.isArray(e)?function(e,r){return(0,n.jsx)("li",v({className:"split-li-group"},{children:e.map((function(e,t){var o="".concat(r,"-").concat(t);return(0,n.jsx)("div",v({className:(0,i.Z)("split-li",o===k&&"split-li--active"),onClick:function(r){return O(e,o,r)}},{children:(null==d?void 0:d(e))||e.label}),o)}))}),r)}(e,r):(0,n.jsx)("li",v({className:(0,i.Z)("split-li",r===k&&"split-li--active"),onClick:function(t){return O(e,r,t)}},{children:(null==d?void 0:d(e))||e.label}),r)}))},void 0)}),void 0)};return(0,n.jsxs)("div",v({className:(0,i.Z)("paraui-button-split",l),ref:b,onMouseLeave:function(e){var r;e.stopPropagation(),null===(r=e.currentTarget.firstElementChild)||void 0===r||r.classList.remove("paraui-button-split--active"),y(!1)}},{children:[(0,n.jsx)(g,v({variant:"outlined",onMouseEnter:function(e){e.stopPropagation();var r=e.currentTarget;x.current=r,r.classList.add("paraui-button-split--active"),y(!0)},startIcon:(0,n.jsx)(f(),{},void 0),disabled:s},{children:null!=r?r:"更多操作"}),void 0),(0,n.jsx)(a.Popper,v({open:m,anchorEl:b.current,transition:!0,placement:"bottom-end"},{children:function(e){var r=e.TransitionProps;e.placement;return(0,n.jsx)(a.Grow,v({},r,{children:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.ClickAwayListener,v({onClickAway:w},{children:S()}),void 0)},void 0)}),void 0)}}),void 0)]}),void 0)};var g=y},6779:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return V}});var n=t(4466),o=t(7712),a=t(2990),i=function(){return i=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},i.apply(this,arguments)};var c=t(1731),l=function(){return l=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},l.apply(this,arguments)};var u=t(9297),s=t.n(u),p=t(4927),d=t(4016),f=t.n(d),v=t(20),h=t.n(v),m=t(6088),y=t.n(m),g=t(8239),b=t.n(g),x=t(1545),j=t.n(x),k=function(){return k=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},k.apply(this,arguments)};function P(e,r,t){return void 0!==t?t:"year"===e&&r.lang.yearPlaceholder?r.lang.yearPlaceholder:"quarter"===e&&r.lang.quarterPlaceholder?r.lang.quarterPlaceholder:"month"===e&&r.lang.monthPlaceholder?r.lang.monthPlaceholder:"week"===e&&r.lang.weekPlaceholder?r.lang.weekPlaceholder:"time"===e&&r.timePickerLocale.placeholder?r.timePickerLocale.placeholder:r.lang.placeholder}function O(e,r,t){return void 0!==t?t:"year"===e&&r.lang.yearPlaceholder?r.lang.rangeYearPlaceholder:"month"===e&&r.lang.monthPlaceholder?r.lang.rangeMonthPlaceholder:"week"===e&&r.lang.weekPlaceholder?r.lang.rangeWeekPlaceholder:"time"===e&&r.timePickerLocale.placeholder?r.timePickerLocale.rangePlaceholder:r.lang.rangePlaceholder}function w(e,r){return r||(e?"paraui-".concat(e):"paraui")}function S(e){var r,t=e.format,n=e.picker,o=e.showHour,a=e.showMinute,i=e.showSecond,c=e.use12Hours,l=(r=t,r?Array.isArray(r)?r:[r]:[])[0],u=k({},e);return l&&"string"==typeof l&&(l.includes("s")||void 0!==i||(u.showSecond=!1),l.includes("m")||void 0!==a||(u.showMinute=!1),l.includes("H")||l.includes("h")||void 0!==o||(u.showHour=!1),(l.includes("a")||l.includes("A"))&&void 0===c&&(u.use12Hours=!0)),"time"===n?u:("function"==typeof l&&delete u.format,{showTime:u})}var C,N=(C=function(e,r){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])},C(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=e}C(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}),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)},_=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};var Y=t(2888),D=t.n(Y),M=function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])},e(r,t)};return function(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),q=function(){return q=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},q.apply(this,arguments)},I=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};var R=t(1482),F={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},E=function(){return E=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},E.apply(this,arguments)},Z={lang:E(E({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeWeekPlaceholder:["开始周","结束周"]},R.Z),{today:"选择今天",now:"当前时间",ok:"确 定"}),timePickerLocale:E({},F)},L=t(3877),W={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},z=function(){return z=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},z.apply(this,arguments)},H={lang:z({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},L.Z),timePickerLocale:z({},W)},A={button:function(e){return(0,o.jsx)(a.default,i({},e,{size:"small",variant:"contained"}),void 0)},rangeItem:function(e){return(0,o.jsx)(c.Chip,l({},e),void 0)}},U={zh:Z,en:H};var B=function(e){var r=function(e){function r(r,t){var n=function(t){function n(n){var a=t.call(this,n)||this;return a.pickerRef=s().createRef(),a.focus=function(){a.pickerRef.current&&a.pickerRef.current.focus()},a.blur=function(){a.pickerRef.current&&a.pickerRef.current.blur()},a.renderPicker=function(t){var n,i=a.props,c=i.prefixCls,l=i.className,u=(i.size,i.bordered),s=void 0===u||u,d=i.placeholder,v=i.error,m=void 0!==v&&v,g=i.helperText,x=_(i,["prefixCls","className","size","bordered","placeholder","error","helperText"]),k=a.props,O=k.format,C=k.showTime,N=k.use12Hours,Y=w("picker",c),D={};r&&(D.picker=r);var M=r||a.props.picker;return D=T(T(T({},D),C?S(T({format:O,picker:M},C)):{}),"time"===M?S(T(T({format:O},a.props),{picker:M})):{}),console.log(x),(0,o.jsxs)("div",T({className:(0,p.Z)("paraui-picker-wrapper")},{children:[(0,o.jsx)(f(),T({ref:a.pickerRef,placeholder:P(M,t,d),suffixIcon:"time"===M?(0,o.jsx)(j(),{},void 0):(0,o.jsx)(b(),{},void 0),clearIcon:"time"===M?(0,o.jsx)(y(),{},void 0):(0,o.jsx)(h(),{},void 0),allowClear:!0},{showToday:!0},x,D,{locale:t.lang,className:(0,p.Z)((n={},n["".concat(Y,"-borderless")]=!s,n["paraui-picker-error"]=m,n),l),prefixCls:Y,generateConfig:e,prevIcon:(0,o.jsx)("span",{className:"".concat(Y,"-prev-icon")},void 0),nextIcon:(0,o.jsx)("span",{className:"".concat(Y,"-next-icon")},void 0),superPrevIcon:(0,o.jsx)("span",{className:"".concat(Y,"-super-prev-icon")},void 0),superNextIcon:(0,o.jsx)("span",{className:"".concat(Y,"-super-next-icon")},void 0),components:A,direction:"ltr",dropdownClassName:(0,p.Z)(x.dropdownClassName,N&&"paraui-picker-use12Hours")}),void 0),g?(0,o.jsx)("p",T({className:"paraui-picker-helperText"},{children:g}),void 0):null]}),void 0)},a}return N(n,t),n.prototype.render=function(){var e=U[this.props.locale||"zh"];return(0,o.jsx)(o.Fragment,{children:this.renderPicker(e)},void 0)},n}(s().Component);return n}return{DatePicker:r(),WeekPicker:r("week"),MonthPicker:r("month"),YearPicker:r("year"),TimePicker:r("time"),QuarterPicker:r("quarter")}}(e),t=r.DatePicker,n=r.WeekPicker,a=r.MonthPicker,i=r.YearPicker,c=r.TimePicker,l=r.QuarterPicker,u=function(e){var r=function(r){function t(){var t=null!==r&&r.apply(this,arguments)||this;return t.pickerRef=s().createRef(),t.focus=function(){t.pickerRef.current&&t.pickerRef.current.focus()},t.blur=function(){t.pickerRef.current&&t.pickerRef.current.blur()},t.renderPicker=function(r){var n,a=t.props,i=a.prefixCls,c=a.className,l=(a.size,a.bordered),u=void 0===l||l,s=a.placeholder,f=a.error,v=void 0!==f&&f,m=a.helperText,g=I(a,["prefixCls","className","size","bordered","placeholder","error","helperText"]),x=t.props,k=x.format,P=x.showTime,C=x.picker,N=x.use12Hours,T=w("picker",i),_={};return _=q(q(q({},_),P?S(q({format:k,picker:C},P)):{}),"time"===C?S(q(q({format:k},t.props),{picker:C})):{}),(0,o.jsxs)("div",q({className:(0,p.Z)("paraui-picker-wrapper")},{children:[(0,o.jsx)(d.RangePicker,q({separator:(0,o.jsx)("span",q({"aria-label":"to",className:"".concat(T,"-separator")},{children:(0,o.jsx)(D(),{},void 0)}),void 0),ref:t.pickerRef,placeholder:O(C,r,s),suffixIcon:"time"===C?(0,o.jsx)(j(),{},void 0):(0,o.jsx)(b(),{className:"picker-icon"},void 0),clearIcon:"time"===C?(0,o.jsx)(y(),{},void 0):(0,o.jsx)(h(),{},void 0),allowClear:!0},g,_,{className:(0,p.Z)((n={},n["".concat(T,"-borderless")]=!u,n["paraui-picker-error"]=v,n),c),locale:r.lang,prefixCls:T,generateConfig:e,prevIcon:(0,o.jsx)("span",{className:"".concat(T,"-prev-icon")},void 0),nextIcon:(0,o.jsx)("span",{className:"".concat(T,"-next-icon")},void 0),superPrevIcon:(0,o.jsx)("span",{className:"".concat(T,"-super-prev-icon")},void 0),superNextIcon:(0,o.jsx)("span",{className:"".concat(T,"-super-next-icon")},void 0),components:A,direction:"ltr",dropdownClassName:(0,p.Z)(g.dropdownClassName,N&&"paraui-picker-use12Hours")}),void 0),m?(0,o.jsx)("p",q({className:"paraui-picker-helperText"},{children:m}),void 0):null]}),void 0)},t}return M(t,r),t.prototype.render=function(){var e=U[this.props.locale||"zh"];return(0,o.jsx)(o.Fragment,{children:this.renderPicker(e)},void 0)},t}(s().Component);return r}(e),v=t;return v.WeekPicker=n,v.MonthPicker=a,v.YearPicker=i,v.RangePicker=u,v.TimePicker=c,v.QuarterPicker=l,v},V=B(n.Z)},6885:function(e,r,t){"use strict";var n=t(7712),o=t(1731),a=t(4927),i=function(){return i=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},i.apply(this,arguments)};r.default=function(e){var r,t=e.placement,c=void 0===t?"bottom":t,l=i(i({},e.classes),{popper:(0,a.Z)("paraui-tooltip",null===(r=e.classes)||void 0===r?void 0:r.popper,{"paraui-tooltip-left-right":(null==c?void 0:c.includes("left"))||(null==c?void 0:c.includes("right")),"paraui-tooltip-top-bottom":(null==c?void 0:c.includes("top"))||(null==c?void 0:c.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,i({},e,{classes:l}),void 0)}},1731:function(r){"use strict";r.exports=e},8239:function(e){"use strict";e.exports=r},6088:function(e){"use strict";e.exports=t},20:function(e){"use strict";e.exports=n},6028:function(e){"use strict";e.exports=o},2749:function(e){"use strict";e.exports=a},1102:function(e){"use strict";e.exports=i},2888:function(e){"use strict";e.exports=c},1545:function(e){"use strict";e.exports=l},5295:function(e){"use strict";e.exports=u},4016:function(e){"use strict";e.exports=s},9297:function(e){"use strict";e.exports=p}},v={};function h(e){var r=v[e];if(void 0!==r)return r.exports;var t=v[e]={exports:{}};return f[e](t,t.exports,h),t.exports}h.m=f,d=[],h.O=function(e,r,t,n){if(!r){var o=1/0;for(c=0;c<d.length;c++){r=d[c][0],t=d[c][1],n=d[c][2];for(var a=!0,i=0;i<r.length;i++)(!1&n||o>=n)&&Object.keys(h.O).every((function(e){return h.O[e](r[i])}))?r.splice(i--,1):(a=!1,n<o&&(o=n));a&&(d.splice(c--,1),e=t())}return e}n=n||0;for(var c=d.length;c>0&&d[c-1][2]>n;c--)d[c]=d[c-1];d[c]=[r,t,n]},h.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return h.d(r,{a:r}),r},h.d=function(e,r){for(var t in r)h.o(r,t)&&!h.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},h.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},h.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e={5821:0,6615:0,2823:0,9296:0};h.O.j=function(r){return 0===e[r]};var r=function(r,t){var n,o,a=t[0],i=t[1],c=t[2],l=0;for(n in i)h.o(i,n)&&(h.m[n]=i[n]);if(c)var u=c(h);for(r&&r(t);l<a.length;l++)o=a[l],h.o(e,o)&&e[o]&&e[o][0](),e[a[l]]=0;return h.O(u)},t=self.webpackChunkParaUI=self.webpackChunkParaUI||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))}();var m=h.O(void 0,[9296],(function(){return h(6779)}));return m=h.O(m)}()}));
|
|
14
|
+
*/t(7418);var n=t(9297),o=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),r.Fragment=a("react.fragment")}var i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,t){var n,a={},u=null,s=null;for(n in void 0!==t&&(u=""+t),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(s=r.ref),r)c.call(r,n)&&!l.hasOwnProperty(n)&&(a[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===a[n]&&(a[n]=r[n]);return{$$typeof:o,type:e,key:u,ref:s,props:a,_owner:i.current}}r.jsx=u,r.jsxs=u},5893:function(e,r,t){"use strict";e.exports=t(5251)},8595:function(e,r,t){"use strict";t.d(r,{default:function(){return g}});var n=t(5893),o=t(9297),a=t(1731),i=t(6010),c=t(1102),l=t.n(c),u=t(2749),s=t.n(u),p=t(7371),d=t(6028),f=t.n(d),v=function(){return v=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},v.apply(this,arguments)};var h=function(){return h=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},h.apply(this,arguments)},m=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t},y=function(e){var r=e.variant,t=void 0===r?"contained":r,c=e.size,u=void 0===c?"large":c,d=e.className,f=e.disabled,v=void 0!==f&&f,y=e.children,g=e.startIcon,b=e.endIcon,x=e.loading,j=void 0!==x&&x,k=e.toolTipTitle,P=void 0===k?"":k,O=e.danger,w=void 0!==O&&O,S=m(e,["variant","size","className","disabled","children","startIcon","endIcon","loading","toolTipTitle","danger"]),C=(0,o.useState)(!1),N=C[0],T=C[1],_=function(e){if(!N)return"start"===e&&g?(0,n.jsx)("span",h({className:(0,i.Z)("btn-icon","start-icon")},{children:g}),void 0):"end"===e&&b?(0,n.jsx)("span",h({className:(0,i.Z)("btn-icon","end-icon")},{children:b}),void 0):null;if("object"==typeof j){var r=j.delay||0;setTimeout((function(){return T(!1)}),r)}return"start"===e?(0,n.jsx)("span",h({className:"btn-icon loading-icon"},{children:(0,n.jsx)(l(),{},void 0)}),void 0):null},Y=(0,n.jsx)(a.Button,h({},S,{color:"default",variant:"contained",disabled:v,disableRipple:!0,disableElevation:!0,className:(0,i.Z)("paraui-button",d,"paraui-button-".concat(t),"paraui-button-".concat(u),N&&"paraui-button-loading",w&&!v&&"paraui-button-dangerous"),startIcon:_("start"),endIcon:_("end")},{children:y}),void 0);return(0,o.useEffect)((function(){T(!!j)}),[j]),v&&P?(0,n.jsx)(p.default,h({title:function(){if(v&&P){return(0,n.jsxs)("span",{children:[(0,n.jsx)(s(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}},void 0),P]},void 0)}return P}()},{children:(0,n.jsx)("span",h({className:"paraui-button--disabled"},{children:Y}),void 0)}),void 0):Y};y.IconButton=function(e){var r=e.variant,t=void 0===r?"contained":r,c=e.size,u=void 0===c?"large":c,d=e.toolTipTitle,f=void 0===d?"":d,v=e.children,y=e.className,g=e.disabled,b=void 0!==g&&g,x=e.loading,j=void 0!==x&&x,k=e.TooltipProps,P=e.danger,O=void 0!==P&&P,w=m(e,["variant","size","toolTipTitle","children","className","disabled","loading","TooltipProps","danger"]),S=(0,o.useState)(!1),C=S[0],N=S[1],T=(0,n.jsx)(a.IconButton,h({},w,{disabled:b,disableRipple:!0,className:(0,i.Z)("paraui-icon-button",y,"paraui-icon-button-".concat(t),"paraui-icon-button-".concat(u),C&&"paraui-icon-button-loading",O&&!b&&"paraui-icon-button-dangerous")},{children:function(){if(!C)return v;if("object"==typeof j){var e=j.delay||0;setTimeout((function(){return N(!1)}),e)}return(0,n.jsx)("span",h({className:"loading-icon"},{children:(0,n.jsx)(l(),{},void 0)}),void 0)}()}),void 0);return(0,o.useEffect)((function(){N(!!j)}),[j]),f?(0,n.jsx)(p.default,h({},k,{title:function(){if(b&&f){return(0,n.jsxs)("span",{children:[(0,n.jsx)(s(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}},void 0),f]},void 0)}return f}()},{children:b?(0,n.jsx)("span",h({className:"paraui-button--disabled"},{children:T}),void 0):T}),void 0):T},y.SplitButton=function(e){var r=e.buttonText,t=e.options,c=void 0===t?[]:t,l=e.className,u=e.disabled,s=void 0!==u&&u,p=e.onClick,d=e.optionRender,h=(0,o.useState)(!1),m=h[0],y=h[1],b=(0,o.useRef)(null),x=(0,o.useRef)(),j=(0,o.useState)(0),k=j[0],P=j[1],O=function(e,r,t){var n;P(r),y(!1),null===(n=x.current)||void 0===n||n.classList.remove("paraui-button-split--active"),null==p||p(e,t)},w=function(e){var r,t;(null===(r=b.current)||void 0===r?void 0:r.contains(e.target))||(y(!1),null===(t=x.current)||void 0===t||t.classList.remove("paraui-button-split--active"))},S=function(){return(0,n.jsx)("div",v({className:"paraui-button-split-list"},{children:(0,n.jsx)("ul",{children:c.map((function(e,r){return Array.isArray(e)?function(e,r){return(0,n.jsx)("li",v({className:"split-li-group"},{children:e.map((function(e,t){var o="".concat(r,"-").concat(t);return(0,n.jsx)("div",v({className:(0,i.Z)("split-li",o===k&&"split-li--active"),onClick:function(r){return O(e,o,r)}},{children:(null==d?void 0:d(e))||e.label}),o)}))}),r)}(e,r):(0,n.jsx)("li",v({className:(0,i.Z)("split-li",r===k&&"split-li--active"),onClick:function(t){return O(e,r,t)}},{children:(null==d?void 0:d(e))||e.label}),r)}))},void 0)}),void 0)};return(0,n.jsxs)("div",v({className:(0,i.Z)("paraui-button-split",l),ref:b,onMouseLeave:function(e){var r;e.stopPropagation(),null===(r=e.currentTarget.firstElementChild)||void 0===r||r.classList.remove("paraui-button-split--active"),y(!1)}},{children:[(0,n.jsx)(g,v({variant:"outlined",onMouseEnter:function(e){e.stopPropagation();var r=e.currentTarget;x.current=r,r.classList.add("paraui-button-split--active"),y(!0)},startIcon:(0,n.jsx)(f(),{},void 0),disabled:s},{children:null!=r?r:"更多操作"}),void 0),(0,n.jsx)(a.Popper,v({open:m,anchorEl:b.current,transition:!0,placement:"bottom-end"},{children:function(e){var r=e.TransitionProps;e.placement;return(0,n.jsx)(a.Grow,v({},r,{children:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.ClickAwayListener,v({onClickAway:w},{children:S()}),void 0)},void 0)}),void 0)}}),void 0)]}),void 0)};var g=y},7371:function(e,r,t){"use strict";var n=t(5893),o=t(1731),a=t(6010),i=function(){return i=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},i.apply(this,arguments)};r.default=function(e){var r,t=e.placement,c=void 0===t?"bottom":t,l=i(i({},e.classes),{popper:(0,a.Z)("paraui-tooltip",null===(r=e.classes)||void 0===r?void 0:r.popper,{"paraui-tooltip-left-right":(null==c?void 0:c.includes("left"))||(null==c?void 0:c.includes("right")),"paraui-tooltip-top-bottom":(null==c?void 0:c.includes("top"))||(null==c?void 0:c.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,i({},e,{classes:l}),void 0)}},1731:function(r){"use strict";r.exports=e},8239:function(e){"use strict";e.exports=r},6088:function(e){"use strict";e.exports=t},20:function(e){"use strict";e.exports=n},6028:function(e){"use strict";e.exports=o},2749:function(e){"use strict";e.exports=a},1102:function(e){"use strict";e.exports=i},2888:function(e){"use strict";e.exports=c},1545:function(e){"use strict";e.exports=l},5295:function(e){"use strict";e.exports=u},4016:function(e){"use strict";e.exports=s},9297:function(e){"use strict";e.exports=p}},f={};function v(e){var r=f[e];if(void 0!==r)return r.exports;var t=f[e]={exports:{}};return d[e](t,t.exports,v),t.exports}v.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return v.d(r,{a:r}),r},v.d=function(e,r){for(var t in r)v.o(r,t)&&!v.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},v.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},v.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var h={};return function(){"use strict";v.r(h),v.d(h,{default:function(){return U}});var e=v(4993),r=v(5893),t=v(8595),n=function(){return n=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},n.apply(this,arguments)};var o=v(1731),a=function(){return a=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},a.apply(this,arguments)};var i=v(9297),c=v.n(i),l=v(6010),u=v(4016),s=v.n(u),p=v(20),d=v.n(p),f=v(6088),m=v.n(f),y=v(8239),g=v.n(y),b=v(1545),x=v.n(b),j=function(){return j=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},j.apply(this,arguments)};function k(e,r,t){return void 0!==t?t:"year"===e&&r.lang.yearPlaceholder?r.lang.yearPlaceholder:"quarter"===e&&r.lang.quarterPlaceholder?r.lang.quarterPlaceholder:"month"===e&&r.lang.monthPlaceholder?r.lang.monthPlaceholder:"week"===e&&r.lang.weekPlaceholder?r.lang.weekPlaceholder:"time"===e&&r.timePickerLocale.placeholder?r.timePickerLocale.placeholder:r.lang.placeholder}function P(e,r,t){return void 0!==t?t:"year"===e&&r.lang.yearPlaceholder?r.lang.rangeYearPlaceholder:"month"===e&&r.lang.monthPlaceholder?r.lang.rangeMonthPlaceholder:"week"===e&&r.lang.weekPlaceholder?r.lang.rangeWeekPlaceholder:"time"===e&&r.timePickerLocale.placeholder?r.timePickerLocale.rangePlaceholder:r.lang.rangePlaceholder}function O(e,r){return r||(e?"paraui-".concat(e):"paraui")}function w(e){var r,t=e.format,n=e.picker,o=e.showHour,a=e.showMinute,i=e.showSecond,c=e.use12Hours,l=(r=t,r?Array.isArray(r)?r:[r]:[])[0],u=j({},e);return l&&"string"==typeof l&&(l.includes("s")||void 0!==i||(u.showSecond=!1),l.includes("m")||void 0!==a||(u.showMinute=!1),l.includes("H")||l.includes("h")||void 0!==o||(u.showHour=!1),(l.includes("a")||l.includes("A"))&&void 0===c&&(u.use12Hours=!0)),"time"===n?u:("function"==typeof l&&delete u.format,{showTime:u})}var S,C=(S=function(e,r){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])},S(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=e}S(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}),N=function(){return N=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},N.apply(this,arguments)},T=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};var _=v(2888),Y=v.n(_),D=function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])},e(r,t)};return function(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),M=function(){return M=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},M.apply(this,arguments)},q=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};var R=v(5369),I={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},F=function(){return F=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},F.apply(this,arguments)},E={lang:F(F({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeWeekPlaceholder:["开始周","结束周"]},R.Z),{today:"选择今天",now:"当前时间",ok:"确 定"}),timePickerLocale:F({},I)},Z=v(7590),L={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},W=function(){return W=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},W.apply(this,arguments)},z={lang:W({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Z.Z),timePickerLocale:W({},L)},H={button:function(e){return(0,r.jsx)(t.default,n({},e,{size:"small",variant:"contained"}),void 0)},rangeItem:function(e){return(0,r.jsx)(o.Chip,a({},e),void 0)}},A={zh:E,en:z};var B=function(e){var t=function(e){function t(t,n){var o=function(n){function o(o){var a=n.call(this,o)||this;return a.pickerRef=c().createRef(),a.focus=function(){a.pickerRef.current&&a.pickerRef.current.focus()},a.blur=function(){a.pickerRef.current&&a.pickerRef.current.blur()},a.renderPicker=function(n){var o,i=a.props,c=i.prefixCls,u=i.className,p=(i.size,i.bordered),f=void 0===p||p,v=i.placeholder,h=i.error,y=void 0!==h&&h,b=i.helperText,j=T(i,["prefixCls","className","size","bordered","placeholder","error","helperText"]),P=a.props,S=P.format,C=P.showTime,_=P.use12Hours,Y=O("picker",c),D={};t&&(D.picker=t);var M=t||a.props.picker;return D=N(N(N({},D),C?w(N({format:S,picker:M},C)):{}),"time"===M?w(N(N({format:S},a.props),{picker:M})):{}),(0,r.jsxs)("div",N({className:(0,l.Z)("paraui-picker-wrapper")},{children:[(0,r.jsx)(s(),N({ref:a.pickerRef,placeholder:k(M,n,v),suffixIcon:"time"===M?(0,r.jsx)(x(),{},void 0):(0,r.jsx)(g(),{},void 0),clearIcon:"time"===M?(0,r.jsx)(m(),{},void 0):(0,r.jsx)(d(),{},void 0),allowClear:!0},{showToday:!0},j,D,{locale:n.lang,className:(0,l.Z)((o={},o["".concat(Y,"-borderless")]=!f,o["paraui-picker-error"]=y,o),u),prefixCls:Y,generateConfig:e,prevIcon:(0,r.jsx)("span",{className:"".concat(Y,"-prev-icon")},void 0),nextIcon:(0,r.jsx)("span",{className:"".concat(Y,"-next-icon")},void 0),superPrevIcon:(0,r.jsx)("span",{className:"".concat(Y,"-super-prev-icon")},void 0),superNextIcon:(0,r.jsx)("span",{className:"".concat(Y,"-super-next-icon")},void 0),components:H,direction:"ltr",dropdownClassName:(0,l.Z)(j.dropdownClassName,_&&"paraui-picker-use12Hours")}),void 0),b?(0,r.jsx)("p",N({className:"paraui-picker-helperText"},{children:b}),void 0):null]}),void 0)},a}return C(o,n),o.prototype.render=function(){var e=A[this.props.locale||"zh"];return(0,r.jsx)(r.Fragment,{children:this.renderPicker(e)},void 0)},o}(c().Component);return o}return{DatePicker:t(),WeekPicker:t("week"),MonthPicker:t("month"),YearPicker:t("year"),TimePicker:t("time"),QuarterPicker:t("quarter")}}(e),n=t.DatePicker,o=t.WeekPicker,a=t.MonthPicker,i=t.YearPicker,p=t.TimePicker,f=t.QuarterPicker,v=function(e){var t=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.pickerRef=c().createRef(),n.focus=function(){n.pickerRef.current&&n.pickerRef.current.focus()},n.blur=function(){n.pickerRef.current&&n.pickerRef.current.blur()},n.renderPicker=function(t){var o,a=n.props,i=a.prefixCls,c=a.className,s=(a.size,a.bordered),p=void 0===s||s,f=a.placeholder,v=a.error,h=void 0!==v&&v,y=a.helperText,b=q(a,["prefixCls","className","size","bordered","placeholder","error","helperText"]),j=n.props,k=j.format,S=j.showTime,C=j.picker,N=j.use12Hours,T=O("picker",i),_={};return _=M(M(M({},_),S?w(M({format:k,picker:C},S)):{}),"time"===C?w(M(M({format:k},n.props),{picker:C})):{}),(0,r.jsxs)("div",M({className:(0,l.Z)("paraui-picker-wrapper")},{children:[(0,r.jsx)(u.RangePicker,M({separator:(0,r.jsx)("span",M({"aria-label":"to",className:"".concat(T,"-separator")},{children:(0,r.jsx)(Y(),{},void 0)}),void 0),ref:n.pickerRef,placeholder:P(C,t,f),suffixIcon:"time"===C?(0,r.jsx)(x(),{},void 0):(0,r.jsx)(g(),{className:"picker-icon"},void 0),clearIcon:"time"===C?(0,r.jsx)(m(),{},void 0):(0,r.jsx)(d(),{},void 0),allowClear:!0},b,_,{className:(0,l.Z)((o={},o["".concat(T,"-borderless")]=!p,o["paraui-picker-error"]=h,o),c),locale:t.lang,prefixCls:T,generateConfig:e,prevIcon:(0,r.jsx)("span",{className:"".concat(T,"-prev-icon")},void 0),nextIcon:(0,r.jsx)("span",{className:"".concat(T,"-next-icon")},void 0),superPrevIcon:(0,r.jsx)("span",{className:"".concat(T,"-super-prev-icon")},void 0),superNextIcon:(0,r.jsx)("span",{className:"".concat(T,"-super-next-icon")},void 0),components:H,direction:"ltr",dropdownClassName:(0,l.Z)(b.dropdownClassName,N&&"paraui-picker-use12Hours")}),void 0),y?(0,r.jsx)("p",M({className:"paraui-picker-helperText"},{children:y}),void 0):null]}),void 0)},n}return D(n,t),n.prototype.render=function(){var e=A[this.props.locale||"zh"];return(0,r.jsx)(r.Fragment,{children:this.renderPicker(e)},void 0)},n}(c().Component);return t}(e),h=n;return h.WeekPicker=o,h.MonthPicker=a,h.YearPicker=i,h.RangePicker=v,h.TimePicker=p,h.QuarterPicker=f,h},U=B(e.Z)}(),h}()}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.para-desktop{width:100%;height:100%}.para-desktop .para-desktop-title{display:flex;height:40px;line-height:40px;font-size:17px;margin:15px 0}.para-desktop .para-desktop-title>.para-desktop-backlist{float:left;width:110px;margin:5px}.para-desktop .para-desktop-title>div{width:100%;text-align:center}.para-desktop .para-desktop-title>div>span{cursor:pointer;font-weight:bold}.para-desktop .para-desktop-box{position:relative;width:100%;height:calc(100% - 50px)}.para-desktop .para-desktop-box .desktop-item{position:absolute;top:0;left:0;background-color:#efefef;transition:top .5s, left .5s;user-select:none;box-shadow:4px 4px 6px #dcdde3, -4px -4px 6px #f0f0f0;border-radius:4px;cursor:pointer;color:#5b5b5b}.para-desktop .para-desktop-box .desktop-item .item-name{text-align:center;position:absolute;bottom:10px;width:100%;font-size:14px}.para-desktop .para-desktop-box .desktop-item .item-dir-name{overflow:hidden;font-size:17px;font-weight:bold;padding:25px 15px;word-break:break-word}.para-desktop .para-desktop-box .desktop-item .item-body{text-align:center}.para-desktop .para-desktop-box .desktop-item .item-body img{height:80px;margin-top:25px;pointer-events:none}.para-desktop .para-desktop-box .item-disable{box-shadow:none;background-color:#dbdbdb;cursor:not-allowed}.para-desktop .para-desktop-box .item-disable img{opacity:.3}.para-desktop .para-desktop-box [drag-item="true"]{z-index:2;transition:none}.para-desktop .para-desktop-box [impact="true"]{background-color:#E9EFFD}.para-desktop .para-desktop-box [in-dir="true"]{display:none !important}.para-desktop .para-desktop-box .img-box{display:inline-block;width:100%;text-align:center;margin-top:10px}.para-desktop .para-desktop-box .img-box>img{width:100px;height:100px;user-drag:none}.para-desktop .para-desktop-box .desktop-dir .img-box{display:inline-block}.para-desktop .para-desktop-box .desktop-dir .img-box>img{width:40px;height:40px;margin:5px 15px}.para-desktop .menu-list{position:absolute;box-shadow:4px 4px 6px #dcdde3;background-color:#ffffff;font-size:14px;border-radius:4px;z-index:10;display:none;transition:background-color .2s}.para-desktop .menu-list .menu-item{padding:5px 15px;cursor:pointer}.para-desktop .menu-list .menu-item:hover{background-color:#f6f6f6}
|
|
2
|
+
|
package/Desktop/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-lib"),require("react")):"function"==typeof define&&define.amd?define(["@material-ui/core","para-lib","react"],t):"object"==typeof exports?exports.ParaUI=t(require("@material-ui/core"),require("para-lib"),require("react")):e.ParaUI=t(e["@material-ui/core"],e["para-lib"],e.react)}(self,(function(e,t,n){return function(){"use strict";var r
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@material-ui/core"),require("para-lib"),require("react")):"function"==typeof define&&define.amd?define(["@material-ui/core","para-lib","react"],t):"object"==typeof exports?exports.ParaUI=t(require("@material-ui/core"),require("para-lib"),require("react")):e.ParaUI=t(e["@material-ui/core"],e["para-lib"],e.react)}(self,(function(e,t,n){return function(){"use strict";var r={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,r=Object.prototype.propertyIsEnumerable;function i(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 r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,u,l=i(e),d=1;d<arguments.length;d++){for(var c in a=Object(arguments[d]))n.call(a,c)&&(l[c]=a[c]);if(t){u=t(a);for(var p=0;p<u.length;p++)r.call(a,u[p])&&(l[u[p]]=a[u[p]])}}return l}},
|
|
7
|
+
var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(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 r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,u,l=i(e),d=1;d<arguments.length;d++){for(var c in a=Object(arguments[d]))n.call(a,c)&&(l[c]=a[c]);if(t){u=t(a);for(var p=0;p<u.length;p++)r.call(a,u[p])&&(l[u[p]]=a[u[p]])}}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,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
|
-
n(4126);var r=n(9297),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function d(e,t,n){var r,o={},d=null,c=null;for(r in void 0!==n&&(d=""+n),void 0!==t.key&&(d=""+t.key),void 0!==t.ref&&(c=t.ref),t)u.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:d,ref:c,props:o,_owner:a.current}}t.jsx=d,t.jsxs=d},7712:function(e,t,n){e.exports=n(9524)},5546:function(e,t,n){n.r(t),n.d(t,{Desktop:function(){return b}});var r,i,o,a,u=n(7712),l=n(9297),d=n.n(l),c=n(1731),p=n(3475),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)},f=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},v=200,y=150,m=20,k=20,h=[],S=!1,b=function(e){var t=(0,l.useRef)(),n=(0,l.useRef)(),b=e.sort,q=void 0===b?{}:b,g=(0,l.useState)(0),j=g[0],O=g[1],R=(0,l.useState)([]),G=R[0],Z=R[1],N=(0,l.useState)("_"),W=N[0],P=N[1],w=(0,l.useState)(!1),J=w[0],M=w[1],D=(0,l.useState)(""),U=D[0],T=D[1],E=q[W]||{};d().useEffect((function(){document.addEventListener("resize",(function(){clearTimeout(r),r=setTimeout((function(){O(F())}),200)})),window.addEventListener("mousedown",(function(e){e.target.closest(".menu-list")||n.current&&(n.current.style.display="none")}))}),[]),d().useEffect((function(){O(F()),Z(e.data)}),[e.data]);var X,F=function(){var e=t.current;return e?e.getBoundingClientRect().width/(v+m)|0:1},L=function(t){if(!S){var n=t.currentTarget.getAttribute("data-key"),r=te(n);if(r.disable)return!1;if("dir"!==r.type)return e.onClick&&e.onClick(r),!1;o=r,P(r.key)}},V=function(e){if("_"!==W&&(e.preventDefault(),!S)){var t=e.currentTarget.getAttribute("data-key");a=te(t),ie(n.current,e.pageX,e.pageY),n.current.style.display="block"}},z=function(){o=null,P("_")},H=function(e,t,n){h[t]=Y(e,t,n),e=h[t];var r={left:h[t].point.x+"px",top:h[t].point.y+"px",width:v,height:y};return(0,u.jsx)("div",s({className:"desktop-item".concat("dir"===e.type?" desktop-dir":"").concat(e.disable?" item-disable":""),onContextMenu:V,onClick:L,style:r,"data-key":e.key,"data-index":t},{children:"dir"===n?(0,u.jsx)("div",s({className:"item-dir-name"},{children:e.displayName}),void 0):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",s({className:"item-body"},{children:(0,u.jsx)("img",{src:e.icon||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJsAAACbCAYAAAB1YemMAAAgAElEQVR4nO2dB5jc1L32f9LMVtu7XveGAWNMgiEYQguEEmwMtjFggimB0Lmk3EAogfRiIEBukksJuUAI5KN3MNhgG0ILLXRi0ww24IYrrrve3RnpfI800syRRtJImrKzxu/zaFfl6Oico3f+7RQpbAXTaKwDRkrbMGAIMBRoAZqtradPa62XttXAcmAJsBj4CFgAfPJr2tJf5tb+0pFtGo2NwJ7AN4AxwG7AKCBR5kd3AO8D7wCvA68Y+7+mLVXm51YNtniyTaOxHtgPGGdte1SAWHlQENYpxfprHrcDLwJPK/BP4LVfsFmvdNkqhS2SbNNo7AMcARwNjAd6VOrZPqSSrnvvW2lXAo8Djxr/f0Z7RyXKXClsMWSzJNhk4GRgIpAs5/OKJFWYtBuA6QrcATx1Me3dXuJ1e7JNo3EX4AfASUBTqfPPEENxHdv77rRe93pfL3QviOw5JeNo3ArcfBEdiyNWoWrQLck2jcakpSJ/BBxYijyrhFSF0mrAQwpcewGdL3hWpIrRrcg2jcZa4BTgp8AOcfLoJqTKng9I+xJwGYhZPyYl6AboFmSbRmMNcLZFsm3C3LMFkcqVVnGX723g5+eSeiLvlipDVZNtGo1G+b4NXGEFXPPQNaQSjnPlIWAeqXzLYaV/XkFc8kPSr+TdVCWoWrJNo/HrwF+AfXGRKogk3sdbDqnUvJTu9OJ24Gc/QFvqk7TLUHVku5SGZlB+D3xPQTjatjpIFZ2AlIdU0rm8vFu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dQG6lglbzDIM/oHwUXE1r05s0WST8Qn0VOGMBExJwC5J6FMDald01GuQ1mG5gJd1uEvAowMqNKasK/GlIZsXVsC+KhydhN1rYIcEDFShUbW68YpVp3qGVBt1+FzARzq8IODh/rCgYpWsInypyeaHtdBTga8pMFrAUMVYXQJarIXJMT9skmm7TgGtImO4GysBGCGJBcI0HfmgX4nnXXZrAP8fU2SSHI+S6FwAAAAASUVORK5CYII="},void 0)}),void 0),(0,u.jsx)("div",s({className:"item-name"},{children:e.displayName}),void 0)]},void 0)}),W+e.key+t+j)},Y=function(e,t,n){return{index:t,data:e,key:e.key,icon:e.icon,disable:e.disable||!1,type:n||"item",displayName:e.displayName||e.name,point:I(t),children:e.children||[]}},I=function(e){return{x:e%j*(v+m),y:(e/j|0)*(y+k),width:v,height:y}},K=function(){var t={};return e.data.forEach((function(e){("_"===W||-1!==o.children.indexOf(e.key))&&(t[e.key]=e)})),t},C=d().useMemo((function(){if(0===j)return null;if(h=[],E.length>0){var t=K(),n=0,r=E.map((function(e){var r=e.key,i=e.type;if(t[r]||"dir"===i){var o,a=s({},t[r]);if(delete t[r],"dir"===i){var u=!0;if(e.children.forEach((function(e){t[e]&&(u=!1,delete t[e])})),u)return null;o=H(e,n,i)}else o=H(a,n);return n++,o}})),i=Object.keys(t);if(i.length>0){var a=i.map((function(e){var n=t[e];return H(n,h.length)}));r=f(f([],r,!0),a,!0)}return r}if("_"!==W&&o){var u=K(),l=0;return o.children.map((function(e){if(!u[e])return null;var t=H(u[e],l);return l++,t}))}return e.data.map((function(e,t){return H(e,t)}))}),[G,j,W]),B=function(e){if(!S){var t=e.target.closest(".desktop-item");if(t){var n=t.getAttribute("data-index");i=s(s({},h[n]),{target:t,start:{x:e.pageX,y:e.pageY}}),t.setAttribute("drag-item","true"),window.addEventListener("mousemove",A),window.addEventListener("mouseup",_)}}},A=function(e){Math.abs(i.start.x-e.pageX)>3&&(S=!0);var n=i.point.x+(e.pageX-i.start.x),r=i.point.y+(e.pageY-i.start.y)+t.current.scrollTop;ie(i.target,n,r);for(var o=n,a=r,u=(i.point.x,i.point.width,i.point.y,i.point.height,i.point.width),l=i.point.height,d={x:o+u/2,y:a+l/2},c=0,p=h.length;c<p;c++){var s=h[c];if(s&&String(s.key)!==String(i.key)&&(!s.parent||W===s.parent)){var f={x:s.point.x,y:s.point.y,w:s.point.x+s.point.width,h:s.point.y+s.point.height},v=.3;if(Q(d,f)){var y=x(s.key);if(!y)continue;re("impact"),y.setAttribute("impact","true"),i.impact={data:s,rect:f},i.impact={data:s,rect:f},"dir"!==i.data.type&&"_"===W||(v=.5);var m={x:o+u/2,y:a+l/2},k=s.point.width;m.x<f.x+k*v?(i.position="left",ie(y,f.x+50)):m.x>f.w-k*v?(i.position="right",ie(y,f.x-50)):(i.position="centre",ie(y,f.x));break}re("impact")}}},Q=function(e,t){if(e.x>t.x&&e.y>t.y&&e.x<t.w&&e.y<t.h)return e},_=function(e){if(window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",_),setTimeout((function(){S=!1}),100),i.impact){var t=s({},h[i.index]),n=i.impact.data,r=x(n.key);if(n.index-i.index==-1&&"right"===i.position||n.index-i.index==1&&"left"===i.position||"dir"===i.type&&"centre"===i.position)return ie(i.target,i.point.x,i.point.y),void re();var o=n.index,a=void 0,u=i.index,l=o;o>i.index?(a="R","left"===i.position&&(l--,ie(r,n.point.x,n.point.y),o--)):(a="L","right"===i.position&&(l++,ie(r,n.point.x,n.point.y),o++));s({},h[o]);var d=void 0;if("centre"===i.position){for(l=i.index,u=h.length-1;l<u;l++){var c=h[l+1];ne(c,l)}h.pop()}else{if(d=s({},h[u]),"R"===a)for(;u<l;u++){c=h[u+1];ne(c,u)}if("L"===a)for(;u>l;u--){c=h[u-1];ne(c,u)}ne(d,l)}return"centre"===i.position&&("dir"===n.type?ee(n,t):$(n,t,a)),void re("end")}ie(i.target,i.point.x,i.point.y),re()},$=function(e,t,n){"R"===n&&e.index--;var r="dir_"+e.key+(1e6*Math.random()|0);h[e.index]=s(s({},e),{key:r,point:I(e.index),type:"dir",displayName:"新建文件夹",children:[e.key,t.key]});var o=x(e.key);null==o||o.setAttribute("data-key",r),null==o||o.classList.add("desktop-dir"),o.innerHTML='<div class="item-dir-name">'.concat(h[e.index].displayName,"</div>");var a=x(i.key);null==a||a.setAttribute("in-dir","true")},ee=function(e,t){var n=te(e.key);if(n){n.children.push(t.key);var r=x(i.key);null==r||r.setAttribute("in-dir","true")}},te=function(e){if(!e)return null;for(var t=0,n=h.length;t<n;t++)if(h[t].key===e)return h[t];return null},ne=function(e,t,n){if(e){n||(n=I(t));var r=x(e.key);r&&(ie(r,null==n?void 0:n.x,null==n?void 0:n.y),h[t]=s({},e),h[t].index=t,h[t].point=n,null==r||r.setAttribute("data-index",t))}},re=function(e){var t,n,r;switch(e){case"impact":var o=document.querySelector('[impact="true"]');if(!o)return;i&&i.impact&&(ie(o,i.impact.rect.x,i.impact.rect.y),delete i.impact),null==o||o.removeAttribute("impact");break;case"end":i=null,null===(t=document.querySelector('[impact="true"]'))||void 0===t||t.removeAttribute("impact"),null===(n=document.querySelector('[drag-item="true"]'))||void 0===n||n.removeAttribute("drag-item"),clearTimeout(undefined),oe();break;default:re("impact"),i=null,null===(r=document.querySelector('[drag-item="true"]'))||void 0===r||r.removeAttribute("drag-item"),window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",_)}},ie=function(e,t,n){e&&(void 0===t&&null===t||(e.style.left=t+"px"),void 0===n&&null===n||(e.style.top=n+"px"))},oe=function(){if(e.onSort){var t=[],n=0;h.forEach((function(e){t[n]={key:e.key,type:e.type},void 0!==e.displayName&&(t[n].displayName=e.displayName),e.children.length>0&&(t[n].children=e.children),void 0!==e.parent&&(t[n].parent=e.parent),n++}));var r=(0,p.DeepClone)(q);t.length>0&&(r[W]=t),e.onSort&&e.onSort(r)}},ae=function(){M(!0),T(o.displayName||"文件夹")},ue=function(){o.displayName=U,M(!1),le(o.key).displayName=U,oe()},le=function(e){for(var t=q._||[],n=0,r=t.length;n<r;n++){var i=t[n];if(i.key===e)return i}},de=function(e){T(e.target.value)},ce=(0,l.useMemo)((function(){return"_"!==W&&(0,u.jsxs)("div",s({className:"para-desktop-title"},{children:[(0,u.jsx)(c.Button,s({className:"para-desktop-backlist",onClick:z},{children:"返回上级"}),void 0),(0,u.jsx)("div",{children:J?(0,u.jsx)(c.TextField,{value:U,autoFocus:!0,onChange:de,onBlur:ue},void 0):(0,u.jsx)("span",s({onClick:ae},{children:o.displayName}),void 0)},void 0)]}),void 0)}),[W,J,U]),pe=(0,l.useMemo)((function(){return(0,u.jsx)("div",s({ref:t,className:"para-desktop-box",onMouseDown:B},{children:C}),void 0)}),[j,G,W,q]);return(0,u.jsxs)("div",s({className:(X="para-desktop paraui-desktop",e.className&&(X+=" "+e.className),X)},{children:[ce,pe,(0,u.jsx)("div",s({ref:n,className:"menu-list"},{children:(0,u.jsx)("div",s({className:"menu-item",onClick:function(e){if("_"!==W){var t=le(o.key);if(t.children=t.children.filter((function(e){return e!==a.key})),oe(),t.children.length>0){var r=x(a.key);r&&(r.style.display="none");for(var i=a.index,u=h.length-1;i<u;i++){var l=h[i+1];ne(l,i)}h.pop()}else h.pop(),delete q[o.key],z();n.current.style.display="none"}}},{children:"移出文件夹"}),void 0)}),void 0)]}),void 0)},x=function(e){return document.querySelector('[data-key="'.concat(e,'"]'))};t.default=b},1731:function(t){t.exports=e},3475:function(e){e.exports=t},9297:function(e){e.exports=n}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e](n,n.exports,a),n.exports}a.m=i,r=[],a.O=function(e,t,n,i){if(!t){var o=1/0;for(d=0;d<r.length;d++){t=r[d][0],n=r[d][1],i=r[d][2];for(var u=!0,l=0;l<t.length;l++)(!1&i||o>=i)&&Object.keys(a.O).every((function(e){return a.O[e](t[l])}))?t.splice(l--,1):(u=!1,i<o&&(o=i));u&&(r.splice(d--,1),e=n())}return e}i=i||0;for(var d=r.length;d>0&&r[d-1][2]>i;d--)r[d]=r[d-1];r[d]=[t,n,i]},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e={9056:0,9296:0};a.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,i,o=n[0],u=n[1],l=n[2],d=0;for(r in u)a.o(u,r)&&(a.m[r]=u[r]);if(l)var c=l(a);for(t&&t(n);d<o.length;d++)i=o[d],a.o(e,i)&&e[i]&&e[i][0](),e[o[d]]=0;return a.O(c)},n=self.webpackChunkParaUI=self.webpackChunkParaUI||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var u=a.O(void 0,[9296],(function(){return a(5546)}));return u=a.O(u)}()}));
|
|
16
|
+
n(7418);var r=n(9297),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function d(e,t,n){var r,o={},d=null,c=null;for(r in void 0!==n&&(d=""+n),void 0!==t.key&&(d=""+t.key),void 0!==t.ref&&(c=t.ref),t)u.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:d,ref:c,props:o,_owner:a.current}}t.jsx=d,t.jsxs=d},5893:function(e,t,n){e.exports=n(5251)},1731:function(t){t.exports=e},3475:function(e){e.exports=t},9297:function(e){e.exports=n}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,o),n.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){o.r(a),o.d(a,{Desktop:function(){return S}});var e,t,n,r,i=o(5893),u=o(9297),l=o.n(u),d=o(1731),c=o(3475),p=function(){return p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},p.apply(this,arguments)},s=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},f=200,v=150,y=20,m=20,k=[],h=!1,S=function(o){var a=(0,u.useRef)(),S=(0,u.useRef)(),b=o.sort,q=void 0===b?{}:b,g=(0,u.useState)(0),j=g[0],R=g[1],O=(0,u.useState)([]),G=O[0],Z=O[1],N=(0,u.useState)("_"),W=N[0],J=N[1],P=(0,u.useState)(!1),w=P[0],M=P[1],D=(0,u.useState)(""),T=D[0],U=D[1],E=q[W]||{};l().useEffect((function(){document.addEventListener("resize",(function(){clearTimeout(e),e=setTimeout((function(){R(F())}),200)})),window.addEventListener("mousedown",(function(e){e.target.closest(".menu-list")||S.current&&(S.current.style.display="none")}))}),[]),l().useEffect((function(){R(F()),Z(o.data)}),[o.data]);var X,F=function(){var e=a.current;return e?e.getBoundingClientRect().width/(f+y)|0:1},L=function(e){if(!h){var t=e.currentTarget.getAttribute("data-key"),r=te(t);if(r.disable)return!1;if("dir"!==r.type)return o.onClick&&o.onClick(r),!1;n=r,J(r.key)}},V=function(e){if("_"!==W&&(e.preventDefault(),!h)){var t=e.currentTarget.getAttribute("data-key");r=te(t),ie(S.current,e.pageX,e.pageY),S.current.style.display="block"}},z=function(){n=null,J("_")},H=function(e,t,n){k[t]=Y(e,t,n),e=k[t];var r={left:k[t].point.x+"px",top:k[t].point.y+"px",width:f,height:v};return(0,i.jsx)("div",p({className:"desktop-item".concat("dir"===e.type?" desktop-dir":"").concat(e.disable?" item-disable":""),onContextMenu:V,onClick:L,style:r,"data-key":e.key,"data-index":t},{children:"dir"===n?(0,i.jsx)("div",p({className:"item-dir-name"},{children:e.displayName}),void 0):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",p({className:"item-body"},{children:(0,i.jsx)("img",{src:e.icon||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJsAAACbCAYAAAB1YemMAAAgAElEQVR4nO2dB5jc1L32f9LMVtu7XveGAWNMgiEYQguEEmwMtjFggimB0Lmk3EAogfRiIEBukksJuUAI5KN3MNhgG0ILLXRi0ww24IYrrrve3RnpfI800syRRtJImrKzxu/zaFfl6Oico3f+7RQpbAXTaKwDRkrbMGAIMBRoAZqtradPa62XttXAcmAJsBj4CFgAfPJr2tJf5tb+0pFtGo2NwJ7AN4AxwG7AKCBR5kd3AO8D7wCvA68Y+7+mLVXm51YNtniyTaOxHtgPGGdte1SAWHlQENYpxfprHrcDLwJPK/BP4LVfsFmvdNkqhS2SbNNo7AMcARwNjAd6VOrZPqSSrnvvW2lXAo8Djxr/f0Z7RyXKXClsMWSzJNhk4GRgIpAs5/OKJFWYtBuA6QrcATx1Me3dXuJ1e7JNo3EX4AfASUBTqfPPEENxHdv77rRe93pfL3QviOw5JeNo3ArcfBEdiyNWoWrQLck2jcakpSJ/BBxYijyrhFSF0mrAQwpcewGdL3hWpIrRrcg2jcZa4BTgp8AOcfLo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m+r1nqNSrpyhl788uvlKTWYaUOvx4EN+a3UPWi25FNxutwVgp+1mk5EkEz6v22anEWCuUhzI8O87qAnwyC5wq3TvWhW5PNxtvwFR2u1OFQHRoLeaZuB6KabTMdVutwvw6/HGR8KqobY4sgm4x3YbKASwTsqUJdUDdWtToLOqzX4RkdfjMQ/hO9FaoTWxzZZMyHsQqcq8I3FegT1J9aCmchKE3QdQG6lglbzDIM/oHwUXE1r05s0WST8Qn0VOGMBExJwC5J6FMDald01GuQ1mG5gJd1uEvAowMqNKasK/GlIZsXVsC+KhydhN1rYIcEDFShUbW68YpVp3qGVBt1+FzARzq8IODh/rCgYpWsInypyeaHtdBTga8pMFrAUMVYXQJarIXJMT9skmm7TgGtImO4GysBGCGJBcI0HfmgX4nnXXZrAP8fU2SSHI+S6FwAAAAASUVORK5CYII="},void 0)}),void 0),(0,i.jsx)("div",p({className:"item-name"},{children:e.displayName}),void 0)]},void 0)}),W+e.key+t+j)},Y=function(e,t,n){return{index:t,data:e,key:e.key,icon:e.icon,disable:e.disable||!1,type:n||"item",displayName:e.displayName||e.name,point:K(t),children:e.children||[]}},K=function(e){return{x:e%j*(f+y),y:(e/j|0)*(v+m),width:f,height:v}},B=function(){var e={};return o.data.forEach((function(t){("_"===W||-1!==n.children.indexOf(t.key))&&(e[t.key]=t)})),e},I=l().useMemo((function(){if(0===j)return null;if(k=[],E.length>0){var e=B(),t=0,r=E.map((function(n){var r=n.key,i=n.type;if(e[r]||"dir"===i){var o,a=p({},e[r]);if(delete e[r],"dir"===i){var u=!0;if(n.children.forEach((function(t){e[t]&&(u=!1,delete e[t])})),u)return null;o=H(n,t,i)}else o=H(a,t);return t++,o}})),i=Object.keys(e);if(i.length>0){var a=i.map((function(t){var n=e[t];return H(n,k.length)}));r=s(s([],r,!0),a,!0)}return r}if("_"!==W&&n){var u=B(),l=0;return n.children.map((function(e){if(!u[e])return null;var t=H(u[e],l);return l++,t}))}return o.data.map((function(e,t){return H(e,t)}))}),[G,j,W]),C=function(e){if(!h){var n=e.target.closest(".desktop-item");if(n){var r=n.getAttribute("data-index");t=p(p({},k[r]),{target:n,start:{x:e.pageX,y:e.pageY}}),n.setAttribute("drag-item","true"),window.addEventListener("mousemove",A),window.addEventListener("mouseup",_)}}},A=function(e){Math.abs(t.start.x-e.pageX)>3&&(h=!0);var n=t.point.x+(e.pageX-t.start.x),r=t.point.y+(e.pageY-t.start.y)+a.current.scrollTop;ie(t.target,n,r);for(var i=n,o=r,u=(t.point.x,t.point.width,t.point.y,t.point.height,t.point.width),l=t.point.height,d={x:i+u/2,y:o+l/2},c=0,p=k.length;c<p;c++){var s=k[c];if(s&&String(s.key)!==String(t.key)&&(!s.parent||W===s.parent)){var f={x:s.point.x,y:s.point.y,w:s.point.x+s.point.width,h:s.point.y+s.point.height},v=.3;if(Q(d,f)){var y=x(s.key);if(!y)continue;re("impact"),y.setAttribute("impact","true"),t.impact={data:s,rect:f},t.impact={data:s,rect:f},"dir"!==t.data.type&&"_"===W||(v=.5);var m={x:i+u/2,y:o+l/2},S=s.point.width;m.x<f.x+S*v?(t.position="left",ie(y,f.x+50)):m.x>f.w-S*v?(t.position="right",ie(y,f.x-50)):(t.position="centre",ie(y,f.x));break}re("impact")}}},Q=function(e,t){if(e.x>t.x&&e.y>t.y&&e.x<t.w&&e.y<t.h)return e},_=function(e){if(window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",_),setTimeout((function(){h=!1}),100),t.impact){var n=p({},k[t.index]),r=t.impact.data,i=x(r.key);if(r.index-t.index==-1&&"right"===t.position||r.index-t.index==1&&"left"===t.position||"dir"===t.type&&"centre"===t.position)return ie(t.target,t.point.x,t.point.y),void re();var o=r.index,a=void 0,u=t.index,l=o;o>t.index?(a="R","left"===t.position&&(l--,ie(i,r.point.x,r.point.y),o--)):(a="L","right"===t.position&&(l++,ie(i,r.point.x,r.point.y),o++));p({},k[o]);var d=void 0;if("centre"===t.position){for(l=t.index,u=k.length-1;l<u;l++){var c=k[l+1];ne(c,l)}k.pop()}else{if(d=p({},k[u]),"R"===a)for(;u<l;u++){c=k[u+1];ne(c,u)}if("L"===a)for(;u>l;u--){c=k[u-1];ne(c,u)}ne(d,l)}return"centre"===t.position&&("dir"===r.type?ee(r,n):$(r,n,a)),void re("end")}ie(t.target,t.point.x,t.point.y),re()},$=function(e,n,r){"R"===r&&e.index--;var i="dir_"+e.key+(1e6*Math.random()|0);k[e.index]=p(p({},e),{key:i,point:K(e.index),type:"dir",displayName:"新建文件夹",children:[e.key,n.key]});var o=x(e.key);null==o||o.setAttribute("data-key",i),null==o||o.classList.add("desktop-dir"),o.innerHTML='<div class="item-dir-name">'.concat(k[e.index].displayName,"</div>");var a=x(t.key);null==a||a.setAttribute("in-dir","true")},ee=function(e,n){var r=te(e.key);if(r){r.children.push(n.key);var i=x(t.key);null==i||i.setAttribute("in-dir","true")}},te=function(e){if(!e)return null;for(var t=0,n=k.length;t<n;t++)if(k[t].key===e)return k[t];return null},ne=function(e,t,n){if(e){n||(n=K(t));var r=x(e.key);r&&(ie(r,null==n?void 0:n.x,null==n?void 0:n.y),k[t]=p({},e),k[t].index=t,k[t].point=n,null==r||r.setAttribute("data-index",t))}},re=function(e){var n,r,i;switch(e){case"impact":var o=document.querySelector('[impact="true"]');if(!o)return;t&&t.impact&&(ie(o,t.impact.rect.x,t.impact.rect.y),delete t.impact),null==o||o.removeAttribute("impact");break;case"end":t=null,null===(n=document.querySelector('[impact="true"]'))||void 0===n||n.removeAttribute("impact"),null===(r=document.querySelector('[drag-item="true"]'))||void 0===r||r.removeAttribute("drag-item"),clearTimeout(undefined),oe();break;default:re("impact"),t=null,null===(i=document.querySelector('[drag-item="true"]'))||void 0===i||i.removeAttribute("drag-item"),window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",_)}},ie=function(e,t,n){e&&(void 0===t&&null===t||(e.style.left=t+"px"),void 0===n&&null===n||(e.style.top=n+"px"))},oe=function(){if(o.onSort){var e=[],t=0;k.forEach((function(n){e[t]={key:n.key,type:n.type},void 0!==n.displayName&&(e[t].displayName=n.displayName),n.children.length>0&&(e[t].children=n.children),void 0!==n.parent&&(e[t].parent=n.parent),t++}));var n=(0,c.DeepClone)(q);e.length>0&&(n[W]=e),o.onSort&&o.onSort(n)}},ae=function(){M(!0),U(n.displayName||"文件夹")},ue=function(){n.displayName=T,M(!1),le(n.key).displayName=T,oe()},le=function(e){for(var t=q._||[],n=0,r=t.length;n<r;n++){var i=t[n];if(i.key===e)return i}},de=function(e){U(e.target.value)},ce=(0,u.useMemo)((function(){return"_"!==W&&(0,i.jsxs)("div",p({className:"para-desktop-title"},{children:[(0,i.jsx)(d.Button,p({className:"para-desktop-backlist",onClick:z},{children:"返回上级"}),void 0),(0,i.jsx)("div",{children:w?(0,i.jsx)(d.TextField,{value:T,autoFocus:!0,onChange:de,onBlur:ue},void 0):(0,i.jsx)("span",p({onClick:ae},{children:n.displayName}),void 0)},void 0)]}),void 0)}),[W,w,T]),pe=(0,u.useMemo)((function(){return(0,i.jsx)("div",p({ref:a,className:"para-desktop-box",onMouseDown:C},{children:I}),void 0)}),[j,G,W,q]);return(0,i.jsxs)("div",p({className:(X="para-desktop paraui-desktop",o.className&&(X+=" "+o.className),X)},{children:[ce,pe,(0,i.jsx)("div",p({ref:S,className:"menu-list"},{children:(0,i.jsx)("div",p({className:"menu-item",onClick:function(e){if("_"!==W){var t=le(n.key);if(t.children=t.children.filter((function(e){return e!==r.key})),oe(),t.children.length>0){var i=x(r.key);i&&(i.style.display="none");for(var o=r.index,a=k.length-1;o<a;o++){var u=k[o+1];ne(u,o)}k.pop()}else k.pop(),delete q[n.key],z();S.current.style.display="none"}}},{children:"移出文件夹"}),void 0)}),void 0)]}),void 0)},x=function(e){return document.querySelector('[data-key="'.concat(e,'"]'))};a.default=S}(),a}()}));
|
package/Drawer/index.css
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.paraui-drawer{position:fixed;z-index:1000;transition:width 0s ease 0.3s,height 0s ease 0.3s,transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86)}.paraui-drawer>*{transition:transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86),opacity 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86),box-shadow 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86)}.paraui-drawer-open.paraui-drawer{transition:transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86)}.paraui-drawer .paraui-drawer-mask{background:#000;opacity:0;width:100%;height:0;position:absolute;top:0;left:0;transition:opacity 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86),height 0s ease 0.3s}.paraui-drawer-content-wrapper{position:absolute;background:#fff}.paraui-drawer-content{overflow:auto;z-index:1;position:relative}.paraui-drawer-handle{position:absolute;top:72px;width:41px;height:40px;cursor:pointer;z-index:0;text-align:center;line-height:40px;font-size:16px;display:flex;justify-content:center;align-items:center;background:#fff}.paraui-drawer-handle-icon{width:14px;height:2px;background:#333;position:relative;transition:background 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86)}.paraui-drawer-handle-icon:before,.paraui-drawer-handle-icon:after{content:'';display:block;position:absolute;background:#333;width:100%;height:2px;transition:transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86)}.paraui-drawer-handle-icon:before{top:-5px}.paraui-drawer-handle-icon:after{top:5px}.paraui-drawer-left,.paraui-drawer-right{width:0%;height:100%}.paraui-drawer-left .paraui-drawer-content-wrapper,.paraui-drawer-right .paraui-drawer-content-wrapper,.paraui-drawer-left .paraui-drawer-content,.paraui-drawer-right .paraui-drawer-content{height:100%}.paraui-drawer-left.paraui-drawer-open,.paraui-drawer-right.paraui-drawer-open{width:100%}.paraui-drawer-left.paraui-drawer-open.no-mask,.paraui-drawer-right.paraui-drawer-open.no-mask{width:0%}.paraui-drawer-left{top:0;left:0}.paraui-drawer-left .paraui-drawer-handle{right:-40px;box-shadow:2px 0 8px rgba(0,0,0,0.15);border-radius:0 4px 4px 0}.paraui-drawer-left.paraui-drawer-open .paraui-drawer-content-wrapper{box-shadow:2px 0 8px rgba(0,0,0,0.15)}.paraui-drawer-right{top:0;right:0}.paraui-drawer-right .paraui-drawer-content-wrapper{right:0}.paraui-drawer-right .paraui-drawer-handle{left:-40px;box-shadow:-2px 0 8px rgba(0,0,0,0.15);border-radius:4px 0 0 4px}.paraui-drawer-right.paraui-drawer-open .paraui-drawer-content-wrapper{box-shadow:-2px 0 8px rgba(0,0,0,0.15)}.paraui-drawer-right.paraui-drawer-open.no-mask{right:1px;transform:translateX(1px)}.paraui-drawer-top,.paraui-drawer-bottom{width:100%;height:0%}.paraui-drawer-top .paraui-drawer-content-wrapper,.paraui-drawer-bottom .paraui-drawer-content-wrapper,.paraui-drawer-top .paraui-drawer-content,.paraui-drawer-bottom .paraui-drawer-content{width:100%}.paraui-drawer-top .paraui-drawer-content,.paraui-drawer-bottom .paraui-drawer-content{height:100%}.paraui-drawer-top.paraui-drawer-open,.paraui-drawer-bottom.paraui-drawer-open{height:100%}.paraui-drawer-top.paraui-drawer-open.no-mask,.paraui-drawer-bottom.paraui-drawer-open.no-mask{height:0%}.paraui-drawer-top .paraui-drawer-handle,.paraui-drawer-bottom .paraui-drawer-handle{left:50%;margin-left:-20px}.paraui-drawer-top{top:0;left:0}.paraui-drawer-top .paraui-drawer-handle{top:auto;bottom:-40px;box-shadow:0 2px 8px rgba(0,0,0,0.15);border-radius:0 0 4px 4px}.paraui-drawer-top.paraui-drawer-open .paraui-drawer-content-wrapper{box-shadow:0 2px 8px rgba(0,0,0,0.15)}.paraui-drawer-bottom{bottom:0;left:0}.paraui-drawer-bottom .paraui-drawer-content-wrapper{bottom:0}.paraui-drawer-bottom .paraui-drawer-handle{top:-40px;box-shadow:0 -2px 8px rgba(0,0,0,0.15);border-radius:4px 4px 0 0}.paraui-drawer-bottom.paraui-drawer-open .paraui-drawer-content-wrapper{box-shadow:0 -2px 8px rgba(0,0,0,0.15)}.paraui-drawer-bottom.paraui-drawer-open.no-mask{bottom:1px;transform:translateY(1px)}.paraui-drawer-open.paraui-drawer .paraui-drawer-mask{opacity:0.3;height:100%;transition:opacity 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86)}.paraui-drawer.paraui-drawer-open .paraui-drawer-handle-icon{background:transparent}.paraui-drawer.paraui-drawer-open .paraui-drawer-handle-icon:before{transform:translateY(5px) rotate(45deg)}.paraui-drawer.paraui-drawer-open .paraui-drawer-handle-icon:after{transform:translateY(-5px) rotate(-45deg)}
|
|
2
|
+
|
package/Drawer/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
!function(r,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("para-lib"),require("rc-drawer"),require("react")):"function"==typeof define&&define.amd?define(["para-lib","rc-drawer","react"],e):"object"==typeof exports?exports.ParaUI=e(require("para-lib"),require("rc-drawer"),require("react")):r.ParaUI=e(r["para-lib"],r["rc-drawer"],r.react)}(self,(function(r,e,t){return function(){"use strict";var n
|
|
1
|
+
!function(r,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("para-lib"),require("rc-drawer"),require("react")):"function"==typeof define&&define.amd?define(["para-lib","rc-drawer","react"],e):"object"==typeof exports?exports.ParaUI=e(require("para-lib"),require("rc-drawer"),require("react")):r.ParaUI=e(r["para-lib"],r["rc-drawer"],r.react)}(self,(function(r,e,t){return function(){"use strict";var n={6010:function(r,e,t){function n(r){var e,t,o="";if("string"==typeof r||"number"==typeof r)o+=r;else if("object"==typeof r)if(Array.isArray(r))for(e=0;e<r.length;e++)r[e]&&(t=n(r[e]))&&(o&&(o+=" "),o+=t);else for(e in r)r[e]&&(o&&(o+=" "),o+=e);return o}function o(){for(var r,e,t=0,o="";t<arguments.length;)(r=arguments[t++])&&(e=n(r))&&(o&&(o+=" "),o+=e);return o}t.d(e,{Z:function(){return o}})},7418:function(r){
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
6
|
*/
|
|
7
|
-
var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(r){if(null==r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}r.exports=function(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var e={},t=0;t<10;t++)e["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(r){return e[r]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(r){n[r]=r})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(r){return!1}}()?Object.assign:function(r,a){for(var f,
|
|
7
|
+
var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(r){if(null==r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}r.exports=function(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var e={},t=0;t<10;t++)e["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(r){return e[r]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(r){n[r]=r})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(r){return!1}}()?Object.assign:function(r,a){for(var i,f,u=o(r),c=1;c<arguments.length;c++){for(var l in i=Object(arguments[c]))t.call(i,l)&&(u[l]=i[l]);if(e){f=e(i);for(var p=0;p<f.length;p++)n.call(i,f[p])&&(u[f[p]]=i[f[p]])}}return u}},5251:function(r,e,t){
|
|
8
8
|
/** @license React v17.0.2
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
10
10
|
*
|
|
@@ -13,4 +13,4 @@ var e=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 a=Symbol.for;o=a("react.element"),a("react.fragment")}var i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(r,e,t){var n,a={},c=null,l=null;for(n in void 0!==t&&(c=""+t),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(l=e.ref),e)f.call(e,n)&&!u.hasOwnProperty(n)&&(a[n]=e[n]);if(r&&r.defaultProps)for(n in e=r.defaultProps)void 0===a[n]&&(a[n]=e[n]);return{$$typeof:o,type:r,key:c,ref:l,props:a,_owner:i.current}}e.jsx=c},5893:function(r,e,t){r.exports=t(5251)},3475:function(e){e.exports=r},1346:function(r){r.exports=e},9297:function(r){r.exports=t}},o={};function a(r){var e=o[r];if(void 0!==e)return e.exports;var t=o[r]={exports:{}};return n[r](t,t.exports,a),t.exports}a.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return a.d(e,{a:e}),e},a.d=function(r,e){for(var t in e)a.o(e,t)&&!a.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})},a.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},a.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var i={};return function(){a.r(i),a.d(i,{Drawer:function(){return p}});var r=a(5893),e=a(9297),t=a.n(e),n=a(1346),o=a.n(n),f=a(6010),u=a(3475),c=function(){return c=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},c.apply(this,arguments)},l=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},p=function(e){e.className;var n=e.onClose,a=e.destroyOnClose,i=void 0!==a&&a,p=l(e,["className","onClose","destroyOnClose"]),s=t().useState((0,u.UUID)()),y=s[0],b=s[1];return(0,r.jsx)(o(),c({},p,{prefixCls:"paraui-drawer",className:(0,f.Z)("paraui-drawer",e.className),onClose:function(r){null==n||n(r),i&&b((0,u.UUID)())}}),y)};p.defaultProps={level:null,handler:!1},i.default=p}(),i}()}));
|