@para-ui/core 2.2.10 → 2.2.13
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/ComboSelect/index.js +2 -2
- package/ComboSelect/interface.d.ts +2 -0
- package/ComboSelect/lang/en_US.d.ts +1 -0
- package/ComboSelect/lang/index.d.ts +2 -0
- package/ComboSelect/lang/zh_CN.d.ts +1 -0
- package/Dropdown/index.d.ts +38 -0
- package/Dropdown/index.js +15 -0
- package/Form/index.js +2 -2
- package/FormItem/index.js +3 -3
- package/GlobalContext/componentsProps.d.ts +2 -0
- package/InputLang/index.js +1 -1
- package/MultiBox/index.js +1 -1
- package/Pagination/index.js +1 -1
- package/PopConfirm/index.js +1 -1
- package/PopoverNew/TooltipNew/index.d.ts +11 -0
- package/PopoverNew/TooltipNew/interface.d.ts +31 -0
- package/PopoverNew/TooltipNew/utils.d.ts +18 -0
- package/PopoverNew/index.d.ts +16 -0
- package/PopoverNew/index.js +14 -0
- package/README.md +23 -0
- package/Search/index.js +1 -1
- package/Selector/index.d.ts +11 -0
- package/Selector/index.js +14 -0
- package/Selector/interface.d.ts +355 -0
- package/Selector/lang/en_US.d.ts +8 -0
- package/Selector/lang/index.d.ts +17 -0
- package/Selector/lang/zh_CN.d.ts +8 -0
- package/Selector/selectorData/index.d.ts +10 -0
- package/Selector/selectorMain/index.d.ts +10 -0
- package/Selector/selectorNode/index.d.ts +10 -0
- package/Selector/util.d.ts +15 -0
- package/SelectorPicker/index.d.ts +49 -0
- package/SelectorPicker/index.js +14 -0
- package/SingleBox/index.js +1 -1
- package/Table/index.js +2 -2
- package/Table/interface.d.ts +40 -0
- package/Table/util.d.ts +12 -1
- package/Tabs/index.js +1 -1
- package/TextField/index.d.ts +2 -0
- package/TextField/index.js +1 -1
- package/Transfer/index.js +1 -1
- package/cdn/AutoBox/index.js +31 -16
- package/cdn/Breadcrumbs/index.js +31 -17
- package/cdn/Button/index.js +32 -43
- package/cdn/ButtonGroup/index.js +32 -43
- package/cdn/Cascader/index.js +27 -25
- package/cdn/Checkbox/index.js +31 -17
- package/cdn/CheckboxGroup/index.js +31 -17
- package/cdn/Collapse/index.js +29 -13
- package/cdn/ColorPicker/index.js +1 -1
- package/cdn/ComboSelect/index.js +34 -384
- package/cdn/DatePicker/index.js +34 -137
- package/cdn/Drawer/index.js +33 -44
- package/cdn/Dropdown/index.js +16 -0
- package/cdn/Form/index.js +34 -423
- package/cdn/FormItem/index.js +34 -423
- package/cdn/FunctionModal/index.js +31 -108
- package/cdn/Help/index.js +31 -17
- package/cdn/InputLang/index.js +31 -108
- package/cdn/InputNumber/index.js +33 -71
- package/cdn/Label/index.js +31 -17
- package/cdn/Loading/index.js +18 -3
- package/cdn/Menu/index.js +18 -29
- package/cdn/Message/index.js +19 -42
- package/cdn/Modal/index.js +31 -108
- package/cdn/MultiBox/index.js +31 -95
- package/cdn/Notification/index.js +27 -50
- package/cdn/OperateBtn/index.js +31 -56
- package/cdn/PageHeader/index.js +31 -56
- package/cdn/Pagination/index.js +32 -174
- package/cdn/PopConfirm/index.js +31 -95
- package/cdn/PopoverNew/index.js +16 -0
- package/cdn/Progress/index.js +24 -47
- package/cdn/Radio/index.js +31 -17
- package/cdn/RadioGroup/index.js +31 -17
- package/cdn/Search/index.js +31 -108
- package/cdn/Select/index.js +31 -95
- package/cdn/SelectInput/index.js +31 -95
- package/cdn/Selector/index.js +82 -0
- package/cdn/SelectorPicker/index.js +82 -0
- package/cdn/SingleBox/index.js +31 -95
- package/cdn/Slider/index.js +3 -3
- package/cdn/Stepper/index.js +25 -126
- package/cdn/Switch/index.js +32 -31
- package/cdn/Table/index.js +32 -252
- package/cdn/Tabs/index.js +32 -122
- package/cdn/Tag/index.js +18 -16
- package/cdn/TextField/index.js +31 -69
- package/cdn/TimePicker/index.js +34 -137
- package/cdn/ToggleButton/index.js +32 -43
- package/cdn/Transfer/index.js +31 -134
- package/cdn/Tree/index.js +33 -123
- package/cdn/Upload/index.js +36 -191
- package/index.d.ts +8 -0
- package/index.js +4 -4
- package/package.json +4 -2
- package/style.css +10 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
!function(t,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("react"),require("rc-tooltip"),require("clsx")):"function"==typeof define&&define.amd?define(["react","rc-tooltip","clsx"],o):"object"==typeof exports?exports.ParaUI=o(require("react"),require("rc-tooltip"),require("clsx")):t.ParaUI=o(t.react,t["rc-tooltip"],t.clsx)}(self,(function(t,o,e){return function(){var r={8524:function(t,o,e){(o=e(3645)(!1)).push([t.id,'.paraui-tooltip-new{color:#fff;font-size:14px;line-height:1.5715;position:absolute;z-index:1500;display:block;width:max-content;max-width:250px;visibility:visible}.paraui-tooltip-new-content{position:relative}.paraui-tooltip-new-hidden{display:none}.paraui-tooltip-new-hide-arrow .paraui-tooltip-new-arrow{display:none}.paraui-tooltip-new-inner{min-width:30px;min-height:32px;padding:5px 12px;color:#fff;text-align:left;text-decoration:none;word-wrap:break-word;background-color:rgba(46,55,67,.7);border-radius:4px;line-height:22px}.paraui-tooltip-new-arrow{position:absolute;z-index:2;display:block;width:22px;height:22px;overflow:hidden;background:rgba(0,0,0,0);pointer-events:none}.paraui-tooltip-new-arrow-content{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:11.3137085px;height:11.3137085px;margin:auto;background-color:rgba(0,0,0,0);content:"";border-radius:0 0 4px;pointer-events:none}.paraui-tooltip-new-arrow-content::before{position:absolute;top:-11.3137085px;left:-11.3137085px;width:33.9411255px;height:33.9411255px;background:rgba(46,55,67,.7) -10px -10px no-repeat;content:"";-webkit-clip-path:path("M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 23.091883092036785 9.849242404917499 L 9.849242404917499 23.091883092036785 Z")}.paraui-tooltip-new-placement-top .paraui-tooltip-new-arrow,.paraui-tooltip-new-placement-topLeft .paraui-tooltip-new-arrow,.paraui-tooltip-new-placement-topRight .paraui-tooltip-new-arrow{bottom:0;transform:translateY(100%)}.paraui-tooltip-new-placement-top .paraui-tooltip-new-arrow-content,.paraui-tooltip-new-placement-topLeft .paraui-tooltip-new-arrow-content,.paraui-tooltip-new-placement-topRight .paraui-tooltip-new-arrow-content{box-shadow:3px 3px 7px rgba(0,0,0,.07);transform:translateY(-11px) rotate(45deg)}.paraui-tooltip-new-placement-top .paraui-tooltip-new-arrow{left:50%;transform:translateY(100%) translateX(-50%)}.paraui-tooltip-new-placement-topLeft .paraui-tooltip-new-arrow{left:13px}.paraui-tooltip-new-placement-topRight .paraui-tooltip-new-arrow{right:13px}.paraui-tooltip-new-placement-right .paraui-tooltip-new-arrow,.paraui-tooltip-new-placement-rightTop .paraui-tooltip-new-arrow,.paraui-tooltip-new-placement-rightBottom .paraui-tooltip-new-arrow{left:0;transform:translateX(-100%)}.paraui-tooltip-new-placement-right .paraui-tooltip-new-arrow-content,.paraui-tooltip-new-placement-rightTop .paraui-tooltip-new-arrow-content,.paraui-tooltip-new-placement-rightBottom .paraui-tooltip-new-arrow-content{box-shadow:-3px 3px 7px rgba(0,0,0,.07);transform:translateX(11px) rotate(135deg)}.paraui-tooltip-new-placement-right .paraui-tooltip-new-arrow{top:50%;transform:translateX(-100%) translateY(-50%)}.paraui-tooltip-new-placement-rightTop .paraui-tooltip-new-arrow{top:5px}.paraui-tooltip-new-placement-rightBottom .paraui-tooltip-new-arrow{bottom:5px}.paraui-tooltip-new-placement-left .paraui-tooltip-new-arrow,.paraui-tooltip-new-placement-leftTop .paraui-tooltip-new-arrow,.paraui-tooltip-new-placement-leftBottom .paraui-tooltip-new-arrow{right:0;transform:translateX(100%)}.paraui-tooltip-new-placement-left .paraui-tooltip-new-arrow-content,.paraui-tooltip-new-placement-leftTop .paraui-tooltip-new-arrow-content,.paraui-tooltip-new-placement-leftBottom .paraui-tooltip-new-arrow-content{box-shadow:3px -3px 7px rgba(0,0,0,.07);transform:translateX(-11px) rotate(315deg)}.paraui-tooltip-new-placement-left .paraui-tooltip-new-arrow{top:50%;transform:translateX(100%) translateY(-50%)}.paraui-tooltip-new-placement-leftTop .paraui-tooltip-new-arrow{top:5px}.paraui-tooltip-new-placement-leftBottom .paraui-tooltip-new-arrow{bottom:5px}.paraui-tooltip-new-placement-bottom .paraui-tooltip-new-arrow,.paraui-tooltip-new-placement-bottomLeft .paraui-tooltip-new-arrow,.paraui-tooltip-new-placement-bottomRight .paraui-tooltip-new-arrow{top:0;transform:translateY(-100%)}.paraui-tooltip-new-placement-bottom .paraui-tooltip-new-arrow-content,.paraui-tooltip-new-placement-bottomLeft .paraui-tooltip-new-arrow-content,.paraui-tooltip-new-placement-bottomRight .paraui-tooltip-new-arrow-content{box-shadow:-3px -3px 7px rgba(0,0,0,.07);transform:translateY(11px) rotate(225deg)}.paraui-tooltip-new-placement-bottom .paraui-tooltip-new-arrow{left:50%;transform:translateY(-100%) translateX(-50%)}.paraui-tooltip-new-placement-bottomLeft .paraui-tooltip-new-arrow{left:13px}.paraui-tooltip-new-placement-bottomRight .paraui-tooltip-new-arrow{right:13px}.paraui-tooltip-new-zoom-big-fast-enter,.paraui-tooltip-new-zoom-big-fast-appear{animation-duration:.1s;animation-fill-mode:both;animation-play-state:paused}.paraui-tooltip-new-zoom-big-fast-leave{animation-duration:.1s;animation-fill-mode:both;animation-play-state:paused}.paraui-tooltip-new-zoom-big-fast-enter.paraui-tooltip-new-zoom-big-fast-enter-active,.paraui-tooltip-new-zoom-big-fast-appear.paraui-tooltip-new-zoom-big-fast-appear-active{animation-name:parauiTooltipZoomBigIn;animation-play-state:running}.paraui-tooltip-new-zoom-big-fast-leave.paraui-tooltip-new-zoom-big-fast-leave-active{animation-name:parauiTooltipZoomBigOut;animation-play-state:running;pointer-events:none}.paraui-tooltip-new-zoom-big-fast-enter,.paraui-tooltip-new-zoom-big-fast-appear{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(0.08, 0.82, 0.17, 1)}.paraui-tooltip-new-zoom-big-fast-enter-prepare,.paraui-tooltip-new-zoom-big-fast-appear-prepare{transform:none}.paraui-tooltip-new-zoom-big-fast-leave{animation-timing-function:cubic-bezier(0.78, 0.14, 0.15, 0.86)}@keyframes parauiTooltipZoomBigIn{0%{transform:scale(0.8);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes parauiTooltipZoomBigOut{0%{transform:scale(1)}100%{transform:scale(0.8);opacity:0}}',""]),t.exports=o},4246:function(t,o,e){(o=e(3645)(!1)).push([t.id,'.paraui-popover-new{color:#2e3743;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;top:0;left:0;z-index:1500;font-weight:400;white-space:normal;text-align:left;cursor:auto;user-select:text}.paraui-popover-new::after{position:absolute;background:rgba(255,255,255,.01);content:""}.paraui-popover-new-hidden{display:none}.paraui-popover-new-inner{background-color:#fff;background-clip:padding-box;border-radius:4px;box-shadow:0px 2px 8px 0px rgba(171,176,185,.4)}.paraui-popover-new-title{min-height:32px;margin:0;padding:4px 16px;color:#2e3743;font-weight:400;border-bottom:1px solid #f0f0f0}.paraui-popover-new-inner-content{color:#2e3743}.paraui-popover-new-buttons{margin-bottom:4px;text-align:right}.paraui-popover-new-buttons button{margin-left:8px}.paraui-popover-new-arrow{position:absolute;display:block;width:16px;height:16px;overflow:hidden;background:rgba(0,0,0,0);pointer-events:none}.paraui-popover-new-arrow-content{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:11.3137085px;height:11.3137085px;margin:auto;background-color:#fff;content:"";border-radius:0 0 4px;pointer-events:none}.paraui-popover-new-arrow-content::before{position:absolute;top:-11.3137085px;left:-11.3137085px;width:33.9411255px;height:33.9411255px;background:#fff -10px -10px no-repeat;content:"";-webkit-clip-path:path("M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 23.091883092036785 9.849242404917499 L 9.849242404917499 23.091883092036785 Z")}.paraui-popover-new-placement-top .paraui-popover-new-arrow,.paraui-popover-new-placement-topLeft .paraui-popover-new-arrow,.paraui-popover-new-placement-topRight .paraui-popover-new-arrow{bottom:-0.6862915px}.paraui-popover-new-placement-top .paraui-popover-new-arrow-content,.paraui-popover-new-placement-topLeft .paraui-popover-new-arrow-content,.paraui-popover-new-placement-topRight .paraui-popover-new-arrow-content{box-shadow:3px 3px 7px rgba(0,0,0,.07);transform:translateY(-1px) rotate(45deg)}.paraui-popover-new-placement-top .paraui-popover-new-arrow{left:50%;transform:translateX(-50%)}.paraui-popover-new-placement-topLeft .paraui-popover-new-arrow{left:16px}.paraui-popover-new-placement-topRight .paraui-popover-new-arrow{right:16px}.paraui-popover-new-placement-right .paraui-popover-new-arrow,.paraui-popover-new-placement-rightTop .paraui-popover-new-arrow,.paraui-popover-new-placement-rightBottom .paraui-popover-new-arrow{left:-0.6862915px}.paraui-popover-new-placement-right .paraui-popover-new-arrow-content,.paraui-popover-new-placement-rightTop .paraui-popover-new-arrow-content,.paraui-popover-new-placement-rightBottom .paraui-popover-new-arrow-content{box-shadow:3px 3px 7px rgba(0,0,0,.07);transform:translateX(1px) rotate(135deg)}.paraui-popover-new-placement-right .paraui-popover-new-arrow{top:50%;transform:translateY(-50%)}.paraui-popover-new-placement-rightTop .paraui-popover-new-arrow{top:12px}.paraui-popover-new-placement-rightBottom .paraui-popover-new-arrow{bottom:12px}.paraui-popover-new-placement-bottom .paraui-popover-new-arrow,.paraui-popover-new-placement-bottomLeft .paraui-popover-new-arrow,.paraui-popover-new-placement-bottomRight .paraui-popover-new-arrow{top:-0.6862915px}.paraui-popover-new-placement-bottom .paraui-popover-new-arrow-content,.paraui-popover-new-placement-bottomLeft .paraui-popover-new-arrow-content,.paraui-popover-new-placement-bottomRight .paraui-popover-new-arrow-content{box-shadow:2px 2px 5px rgba(0,0,0,.06);transform:translateY(1px) rotate(-135deg)}.paraui-popover-new-placement-bottom .paraui-popover-new-arrow{left:50%;transform:translateX(-50%)}.paraui-popover-new-placement-bottomLeft .paraui-popover-new-arrow{left:16px}.paraui-popover-new-placement-bottomRight .paraui-popover-new-arrow{right:16px}.paraui-popover-new-placement-left .paraui-popover-new-arrow,.paraui-popover-new-placement-leftTop .paraui-popover-new-arrow,.paraui-popover-new-placement-leftBottom .paraui-popover-new-arrow{right:-0.6862915px}.paraui-popover-new-placement-left .paraui-popover-new-arrow-content,.paraui-popover-new-placement-leftTop .paraui-popover-new-arrow-content,.paraui-popover-new-placement-leftBottom .paraui-popover-new-arrow-content{box-shadow:3px 3px 7px rgba(0,0,0,.07);transform:translateX(-1px) rotate(-45deg)}.paraui-popover-new-placement-left .paraui-popover-new-arrow{top:50%;transform:translateY(-50%)}.paraui-popover-new-placement-leftTop .paraui-popover-new-arrow{top:12px}.paraui-popover-new-placement-leftBottom .paraui-popover-new-arrow{bottom:12px}.paraui-popover-new-zoom-big-enter,.paraui-popover-new-zoom-big-appear{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.paraui-popover-new-zoom-big-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.paraui-popover-new-zoom-big-enter.paraui-popover-new-zoom-big-enter-active,.paraui-popover-new-zoom-big-appear.paraui-popover-new-zoom-big-appear-active{animation-name:parauiPopoverZoomBigIn;animation-play-state:running}.paraui-popover-new-zoom-big-leave.paraui-popover-new-zoom-big-leave-active{animation-name:parauiPopoverZoomBigOut;animation-play-state:running;pointer-events:none}.paraui-popover-new-zoom-big-enter,.paraui-popover-new-zoom-big-appear{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(0.08, 0.82, 0.17, 1)}.paraui-popover-new-zoom-big-enter-prepare,.paraui-popover-new-zoom-big-appear-prepare{transform:none}.paraui-popover-new-zoom-big-leave{animation-timing-function:cubic-bezier(0.78, 0.14, 0.15, 0.86)}@keyframes parauiPopoverZoomBigIn{0%{transform:scale(0.8);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes parauiPopoverZoomBigOut{0%{transform:scale(1)}100%{transform:scale(0.8);opacity:0}}',""]),t.exports=o},3645:function(t){"use strict";t.exports=function(t){var o=[];return o.toString=function(){return this.map((function(o){var e=function(t,o){var e=t[1]||"",r=t[3];if(!r)return e;if(o&&"function"==typeof btoa){var a=(p=r,i=btoa(unescape(encodeURIComponent(JSON.stringify(p)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(l," */")),n=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[e].concat(n).concat([a]).join("\n")}var p,i,l;return[e].join("\n")}(o,t);return o[2]?"@media ".concat(o[2]," {").concat(e,"}"):e})).join("")},o.i=function(t,e,r){"string"==typeof t&&(t=[[null,t,""]]);var a={};if(r)for(var n=0;n<this.length;n++){var p=this[n][0];null!=p&&(a[p]=!0)}for(var i=0;i<t.length;i++){var l=[].concat(t[i]);r&&a[l[0]]||(e&&(l[2]?l[2]="".concat(e," and ").concat(l[2]):l[2]=e),o.push(l))}},o}},7418:function(t){"use strict";
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/var o=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(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 o={},e=0;e<10;e++)o["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(o).map((function(t){return o[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,n){for(var p,i,l=a(t),u=1;u<arguments.length;u++){for(var f in p=Object(arguments[u]))e.call(p,f)&&(l[f]=p[f]);if(o){i=o(p);for(var s=0;s<i.length;s++)r.call(p,i[s])&&(l[i[s]]=p[i[s]])}}return l}},4375:function(t,o){"use strict";o.Ct=void 0;var e={adjustX:1,adjustY:1},r=[0,0],a={left:{points:["cr","cl"],overflow:e,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:e,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:e,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:e,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:e,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:e,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:e,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:e,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:e,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:e,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:e,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:e,offset:[-4,0],targetOffset:r}};o.Ct=a},5251:function(t,o,e){"use strict";
|
|
7
|
+
/** @license React v17.0.2
|
|
8
|
+
* react-jsx-runtime.production.min.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/e(7418);var r=e(8156),a=60103;if(o.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;a=n("react.element"),o.Fragment=n("react.fragment")}var p=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(t,o,e){var r,n={},u=null,f=null;for(r in void 0!==e&&(u=""+e),void 0!==o.key&&(u=""+o.key),void 0!==o.ref&&(f=o.ref),o)i.call(o,r)&&!l.hasOwnProperty(r)&&(n[r]=o[r]);if(t&&t.defaultProps)for(r in o=t.defaultProps)void 0===n[r]&&(n[r]=o[r]);return{$$typeof:a,type:t,key:u,ref:f,props:n,_owner:p.current}}o.jsx=u,o.jsxs=u},5893:function(t,o,e){"use strict";t.exports=e(5251)},8223:function(t,o,e){var r=e(3379),a=e(8524);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[t.id,a,""]]);var n={insert:("body","body"),singleton:!1};r(a,n);t.exports=a.locals||{}},8088:function(t,o,e){var r=e(3379),a=e(4246);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[t.id,a,""]]);var n={insert:("body","body"),singleton:!1};r(a,n);t.exports=a.locals||{}},3379:function(t,o,e){"use strict";var r,a=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},n=function(){var t={};return function(o){if(void 0===t[o]){var e=document.querySelector(o);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}t[o]=e}return t[o]}}(),p=[];function i(t){for(var o=-1,e=0;e<p.length;e++)if(p[e].identifier===t){o=e;break}return o}function l(t,o){for(var e={},r=[],a=0;a<t.length;a++){var n=t[a],l=o.base?n[0]+o.base:n[0],u=e[l]||0,f="".concat(l," ").concat(u);e[l]=u+1;var s=i(f),c={css:n[1],media:n[2],sourceMap:n[3]};-1!==s?(p[s].references++,p[s].updater(c)):p.push({identifier:f,updater:b(c,o),references:1}),r.push(f)}return r}function u(t){var o=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var a=e.nc;a&&(r.nonce=a)}if(Object.keys(r).forEach((function(t){o.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(o);else{var p=n(t.insert||"head");if(!p)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");p.appendChild(o)}return o}var f,s=(f=[],function(t,o){return f[t]=o,f.filter(Boolean).join("\n")});function c(t,o,e,r){var a=e?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=s(o,a);else{var n=document.createTextNode(a),p=t.childNodes;p[o]&&t.removeChild(p[o]),p.length?t.insertBefore(n,p[o]):t.appendChild(n)}}function w(t,o,e){var r=e.css,a=e.media,n=e.sourceMap;if(a?t.setAttribute("media",a):t.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var m=null,v=0;function b(t,o){var e,r,a;if(o.singleton){var n=v++;e=m||(m=u(o)),r=c.bind(null,e,n,!1),a=c.bind(null,e,n,!0)}else e=u(o),r=w.bind(null,e,o),a=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)};return r(t),function(o){if(o){if(o.css===t.css&&o.media===t.media&&o.sourceMap===t.sourceMap)return;r(t=o)}else a()}}t.exports=function(t,o){(o=o||{}).singleton||"boolean"==typeof o.singleton||(o.singleton=a());var e=l(t=t||[],o);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<e.length;r++){var a=i(e[r]);p[a].references--}for(var n=l(t,o),u=0;u<e.length;u++){var f=i(e[u]);0===p[f].references&&(p[f].updater(),p.splice(f,1))}e=n}}}},5744:function(t){"use strict";t.exports=e},6376:function(t){"use strict";t.exports=o},8156:function(o){"use strict";o.exports=t}},a={};function n(t){var o=a[t];if(void 0!==o)return o.exports;var e=a[t]={id:t,exports:{}};return r[t](e,e.exports,n),e.exports}n.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(o,{a:o}),o},n.d=function(t,o){for(var e in o)n.o(o,e)&&!n.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:o[e]})},n.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var p={};return function(){"use strict";n.r(p),n.d(p,{PopoverNew:function(){return j},default:function(){return P}});var t=n(5893),o=n(8156),e=n.n(o),r=n(6376),a=n.n(r),i=n(4375),l=n(5744),u=n.n(l),f=function(){return f=Object.assign||function(t){for(var o,e=1,r=arguments.length;e<r;e++)for(var a in o=arguments[e])Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a]);return t},f.apply(this,arguments)},s={adjustX:1,adjustY:1},c={adjustX:0,adjustY:0},w=[0,0];function m(t){return"boolean"==typeof t?t?s:c:f(f({},c),t)}function v(o){var r=e().isValidElement(o)?o:(0,t.jsx)("span",{children:o});if("button"===r.type&&r.props.disabled){var a=function(t,o){var e={},r=f({},t);return o.forEach((function(o){t&&o in t&&(e[o]=t[o],delete r[o])})),{picked:e,omitted:r}}(r.props.style,["position","left","right","top","bottom","float","display","zIndex"]),n=a.picked,p=a.omitted,i=f(f({display:"inline-block"},n),{cursor:"not-allowed",width:r.props.block?"100%":null}),l=f(f({},p),{pointerEvents:"none"}),s=e().cloneElement(r,{style:l,className:null});return(0,t.jsx)("span",f({style:i,className:u()(r.props.className,"paraui-tooltip-disabled-compatible-wrapper")},{children:s}))}return r}function b(t){return{"bottom-end":"bottomRight","bottom-start":"bottomLeft","left-end":"leftBottom","left-start":"leftTop","right-end":"rightBottom","right-start":"rightTop","top-end":"topRight","top-start":"topLeft"}[t]||t}n(8223);var d=function(){return d=Object.assign||function(t){for(var o,e=1,r=arguments.length;e<r;e++)for(var a in o=arguments[e])Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a]);return t},d.apply(this,arguments)},g=function(t,o){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&o.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)o.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(e[r[a]]=t[r[a]])}return e},h=e().forwardRef((function(o,r){var n,p=e().useState(o.defaultVisible),l=p[0],s=p[1];e().useEffect((function(){var t;("visible"in o||"open"in o)&&s(!!(null!==(t=o.visible)&&void 0!==t?t:o.open))}),[null!==(n=o.visible)&&void 0!==n?n:o.open]);var c=function(){var t=o.title;return!t&&0!==t},h=function(){var t=o.builtinPlacements,e=o.arrowPointAtCenter,r=o.autoAdjustOverflow;return t||function(t){var o=t.arrowWidth,e=void 0===o?4:o,r=t.horizontalArrowShift,a=void 0===r?16:r,n=t.verticalArrowShift,p=void 0===n?8:n,l=t.autoAdjustOverflow,u=t.arrowPointAtCenter,s={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tc"],offset:[-(a+e),-8]},leftTop:{points:["tr","cl"],offset:[-8,-(p+e)]},topRight:{points:["br","tc"],offset:[a+e,-8]},rightTop:{points:["tl","cr"],offset:[8,-(p+e)]},bottomRight:{points:["tr","bc"],offset:[a+e,8]},rightBottom:{points:["bl","cr"],offset:[8,p+e]},bottomLeft:{points:["tl","bc"],offset:[-(a+e),8]},leftBottom:{points:["br","cl"],offset:[-8,p+e]}};return Object.keys(s).forEach((function(t){var o,e;s[t]=u?f(f({},s[t]),{overflow:m(l),targetOffset:w}):f(f({},i.Ct[t]),{offset:(o=t,e=b(o),{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}}[e]).offset,overflow:m(l)}),s[t].ignoreShake=!0})),s}({arrowPointAtCenter:e,autoAdjustOverflow:r})},x=o.prefixCls,y=void 0===x?"paraui-tooltip-new":x,O=o.getTooltipContainer,j=o.getPopupContainer,P=o.overlayClassName,z=o.overlayInnerStyle,C=o.children,T=o.title,k=o.placement,L=g(o,["prefixCls","getTooltipContainer","getPopupContainer","overlayClassName","overlayInnerStyle","children","title","placement"]),R=l;return"visible"in o||"open"in o||!c()||(R=!1),(0,t.jsx)(a(),d({},L,{placement:b(k),prefixCls:y,overlayClassName:u()(P,!o.arrow&&"paraui-tooltip-new-hide-arrow"),getTooltipContainer:j||O,ref:r,builtinPlacements:h(),overlay:T,visible:R,onVisibleChange:function(t){var e;"visible"in o||"open"in o||s(!c()&&t),c()||null===(e=o.onVisibleChange)||void 0===e||e.call(o,t)},onPopupAlign:function(t,o){var e=h(),r=Object.keys(e).find((function(t){return e[t].points[0]===o.points[0]&&e[t].points[1]===o.points[1]}));if(r){var a=t.getBoundingClientRect(),n={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?n.top="".concat(a.height-o.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(n.top="".concat(-o.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?n.left="".concat(a.width-o.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(n.left="".concat(-o.offset[0],"px")),t.style.transformOrigin="".concat(n.left," ").concat(n.top)}},overlayInnerStyle:z,arrowContent:o.arrow?(0,t.jsx)("span",{className:"".concat(y,"-arrow-content")}):null,motion:{motionName:"paraui-tooltip-new-zoom-big-fast",motionDeadline:1e3}},{children:v(C)}))}));h.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,arrow:!0,defaultVisible:!1};var x=h,y=(n(8088),function(){return y=Object.assign||function(t){for(var o,e=1,r=arguments.length;e<r;e++)for(var a in o=arguments[e])Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a]);return t},y.apply(this,arguments)}),O=function(t,o){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&o.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)o.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(e[r[a]]=t[r[a]])}return e},j=e().forwardRef((function(o,e){var r=o.title,a=o.content,n=O(o,["title","content"]),p="paraui-popover-new";return(0,t.jsx)(x,y({},n,{prefixCls:p,ref:e,title:function(o){return r||a?(0,t.jsxs)(t.Fragment,{children:[r&&(0,t.jsx)("div",y({className:"".concat(o,"-title")},{children:r})),(0,t.jsx)("div",y({className:"".concat(o,"-inner-content")},{children:a}))]}):null}(p),transitionName:"paraui-popover-new-zoom-big",getPopupContainer:function(t){return o.getPopupContainer&&o.getPopupContainer(t)||document.body}}))}));j.defaultProps={placement:"bottom",trigger:"click",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrow:!1};var P=j}(),p}()}));
|
package/README.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
## 版本: 2.2.13
|
|
2
|
+
|
|
3
|
+
para-ui/core@2.2.13 发布
|
|
4
|
+
【PopConfirm】修复可控组件初始时仍显示问题
|
|
5
|
+
【ComboSelect】增加 maxTagTextLength 属性,限制文本长度
|
|
6
|
+
【ComboSelect】支持清空搜索值且重置接口
|
|
7
|
+
【Selectot】选择器修改自定义id,数据渲染失败
|
|
8
|
+
【Table】表格新增记住列
|
|
9
|
+
【Table】修改表格表头样式
|
|
10
|
+
【Table】允许全局统一改变参数
|
|
11
|
+
|
|
12
|
+
## 版本: 2.2.12
|
|
13
|
+
|
|
14
|
+
para-ui/core@2.2.12 发布
|
|
15
|
+
【TextField】输入框新增搜索暂无数据
|
|
16
|
+
|
|
17
|
+
## 版本: 2.2.11
|
|
18
|
+
|
|
19
|
+
para-ui/core@2.2.11 发布
|
|
20
|
+
【Selector】新增选择器
|
|
21
|
+
【SelectorPicker】新增下拉选择器
|
|
22
|
+
【ComboSelect】超出最大Tag显示数,超出部分弹出显示
|
|
23
|
+
|
|
1
24
|
## 版本: 2.2.10
|
|
2
25
|
|
|
3
26
|
para-ui/core@2.2.10 发布
|
package/Search/index.js
CHANGED
|
@@ -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
|
-
*/i(7418);var n=i(8156),o=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var r=Symbol.for;o=r("react.element"),e.Fragment=r("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(t,e,i){var n,r={},u=null,s=null;for(n in void 0!==i&&(u=""+i),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(s=e.ref),e)l.call(e,n)&&!c.hasOwnProperty(n)&&(r[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps)void 0===r[n]&&(r[n]=e[n]);return{$$typeof:o,type:t,key:u,ref:s,props:r,_owner:a.current}}e.jsx=u,e.jsxs=u},5893:function(t,e,i){"use strict";t.exports=i(5251)},9271:function(t,e,i){var n=i(3379),o=i(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);t.exports=o.locals||{}},5822:function(t,e,i){var n=i(3379),o=i(8313);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);t.exports=o.locals||{}},2113:function(t,e,i){var n=i(3379),o=i(7381);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);t.exports=o.locals||{}},3936:function(t,e,i){var n=i(3379),o=i(9916);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);t.exports=o.locals||{}},9663:function(t,e,i){var n=i(3379),o=i(4928);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);t.exports=o.locals||{}},3492:function(t,e,i){var n=i(3379),o=i(5714);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);t.exports=o.locals||{}},9750:function(t,e,i){var n=i(3379),o=i(4447);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);t.exports=o.locals||{}},6202:function(t,e,i){var n=i(3379),o=i(3637);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);t.exports=o.locals||{}},2310:function(t,e,i){var n=i(3379),o=i(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);t.exports=o.locals||{}},3379:function(t,e,i){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}(),a=[];function l(t){for(var e=-1,i=0;i<a.length;i++)if(a[i].identifier===t){e=i;break}return e}function c(t,e){for(var i={},n=[],o=0;o<t.length;o++){var r=t[o],c=e.base?r[0]+e.base:r[0],u=i[c]||0,s="".concat(c," ").concat(u);i[c]=u+1;var d=l(s),p={css:r[1],media:r[2],sourceMap:r[3]};-1!==d?(a[d].references++,a[d].updater(p)):a.push({identifier:s,updater:h(p,e),references:1}),n.push(s)}return n}function u(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var o=i.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var a=r(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var s,d=(s=[],function(t,e){return s[t]=e,s.filter(Boolean).join("\n")});function p(t,e,i,n){var o=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=d(e,o);else{var r=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function f(t,e,i){var n=i.css,o=i.media,r=i.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var x=null,b=0;function h(t,e){var i,n,o;if(e.singleton){var r=b++;i=x||(x=u(e)),n=p.bind(null,i,r,!1),o=p.bind(null,i,r,!0)}else i=u(e),n=f.bind(null,i,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(i)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var i=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<i.length;n++){var o=l(i[n]);a[o].references--}for(var r=c(t,e),u=0;u<i.length;u++){var s=l(i[u]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}i=r}}}},7839:function(t,e,i){"use strict";var n=i(5893),o=i(8156),r=i(7371),a=(i(9271),function(){return a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},a.apply(this,arguments)});e.default=function(t){var e=t.children,i=t.arrow,l=void 0!==i&&i,c=t.placement,u=void 0===c?"bottom-start":c,s=t.tips,d=void 0===s?"":s,p=t.className,f=void 0===p?"":p,x=t.beyondText,b=void 0===x||x,h=t.interactive,g=void 0===h||h,v=t.style,m=(0,o.useRef)(),w=(0,o.useState)(""),y=w[0],j=w[1];(0,o.useEffect)((function(){j(d)}),[d]);var S;return(0,n.jsx)("div",a({ref:m,className:(S="paraui-auto-tips",f&&(S+=" "+f),S),onMouseOver:function(){var t="";m.current&&m.current.scrollWidth>m.current.offsetWidth&&(t=d||(b?m.current.innerText:e)),j(t)},style:v},{children:(0,n.jsx)(r.default,a({arrow:l,title:y,placement:u,interactive:g,boundariesElement:"viewport",className:"paraui-auto-tips-tooltip"},{children:(0,n.jsx)("div",a({className:"auto-tips-content"},{children:e}))}))}))}},7896:function(t,e,i){"use strict";i.d(e,{default:function(){return y}});var n=i(5893),o=i(8156),r=i(670),a=i(5744),l=i.n(a),c=i(2788),u=i.n(c),s=i(3835),d=i.n(s),p=i(7371),f=i(2396),x=i.n(f),b=i(3054),h={zh:{moreActions:"更多操作"},en:{moreActions:"More actions"}},g=function(){return g=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},g.apply(this,arguments)};i(5822);var v=function(){return v=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},v.apply(this,arguments)},m=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i},w=function(t){var e=t.variant,i=void 0===e?"contained":e,a=t.size,c=void 0===a?"large":a,s=t.className,f=t.disabled,x=void 0!==f&&f,b=t.children,h=t.startIcon,g=t.endIcon,w=t.loading,y=void 0!==w&&w,j=t.toolTipTitle,S=void 0===j?"":j,k=t.TooltipProps,O=t.danger,C=void 0!==O&&O,N=m(t,["variant","size","className","disabled","children","startIcon","endIcon","loading","toolTipTitle","TooltipProps","danger"]),P=(0,o.useState)(!1),z=P[0],T=P[1],M=function(t){if(!z)return"start"===t&&h?(0,n.jsx)("span",v({className:l()("btn-icon","start-icon")},{children:h})):"end"===t&&g?(0,n.jsx)("span",v({className:l()("btn-icon","end-icon")},{children:g})):null;if("object"==typeof y){var e=y.delay||0;setTimeout((function(){return T(!1)}),e)}return"start"===t?(0,n.jsx)("span",v({className:"btn-icon loading-icon"},{children:(0,n.jsx)(u(),{})})):null},E=(0,n.jsx)(r.Button,v({},N,{color:"default",variant:"contained",disabled:x,disableRipple:!0,disableElevation:!0,className:l()("paraui-button",s,"paraui-button-".concat(i),"paraui-button-".concat(c),z&&"paraui-button-loading",C&&!x&&"paraui-button-dangerous"),classes:{label:"paraui-button-label"},startIcon:M("start"),endIcon:M("end")},{children:b}));return(0,o.useEffect)((function(){T(!!y)}),[y]),x&&S?(0,n.jsx)(p.default,v({},k,{title:function(){if(x&&S){return(0,n.jsxs)("span",{children:[(0,n.jsx)(d(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}}),S]})}return S}()},{children:(0,n.jsx)("span",v({className:"paraui-button--disabled"},{children:E}))})):E};w.IconButton=function(t){var e=t.variant,i=void 0===e?"contained":e,a=t.size,c=void 0===a?"large":a,s=t.toolTipTitle,f=void 0===s?"":s,x=t.children,b=t.className,h=t.disabled,g=void 0!==h&&h,w=t.loading,y=void 0!==w&&w,j=t.TooltipProps,S=t.danger,k=void 0!==S&&S,O=m(t,["variant","size","toolTipTitle","children","className","disabled","loading","TooltipProps","danger"]),C=(0,o.useState)(!1),N=C[0],P=C[1],z=(0,n.jsx)(r.IconButton,v({},O,{disabled:g,disableRipple:!0,className:l()("paraui-icon-button",b,"paraui-icon-button-".concat(i),"paraui-icon-button-".concat(c),N&&"paraui-icon-button-loading",k&&!g&&"paraui-icon-button-dangerous")},{children:function(){if(!N)return x;if("object"==typeof y){var t=y.delay||0;setTimeout((function(){return P(!1)}),t)}return(0,n.jsx)("span",v({className:"loading-icon"},{children:(0,n.jsx)(u(),{})}))}()}));return(0,o.useEffect)((function(){P(!!y)}),[y]),f?(0,n.jsx)(p.default,v({},j,{title:function(){if(g&&f){return(0,n.jsxs)("span",{children:[(0,n.jsx)(d(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}}),f]})}return f}()},{children:g?(0,n.jsx)("span",v({className:"paraui-button--disabled"},{children:z})):z}),+N):z},w.SplitButton=function(t){var e=t.buttonText,i=t.options,a=void 0===i?[]:i,c=t.className,u=t.popperClassName,s=t.style,d=t.popperStyle,p=t.disabled,f=void 0!==p&&p,v=t.onClick,m=t.optionRender,w=t.placement,j=void 0===w?"bottom-end":w,S=t.buttonProps,k=t.iconButton,O=void 0!==k&&k,C=(0,b.Z)("Button",h),N=(0,o.useState)(!1),P=N[0],z=N[1],T=(0,o.useRef)(null),M=(0,o.useRef)(),E=(0,o.useRef)(),I=(0,o.useState)(),q=I[0],F=I[1],_=function(t,e,i){var n;t.disabled?i.stopPropagation():(F(e),z(!1),null===(n=M.current)||void 0===n||n.classList.remove("paraui-button-split--active"),null==v||v(t,i))},L=function(t){t.stopPropagation(),B();var e=t.currentTarget;E.current=window.setTimeout((function(){M.current=e,e.classList.add("paraui-button-split--active"),z(!0)}),150)},B=function(){E.current&&(clearTimeout(E.current),E.current=null)},H=function(t){var e,i;(null===(e=T.current)||void 0===e?void 0:e.contains(t.target))||(z(!1),null===(i=M.current)||void 0===i||i.classList.remove("paraui-button-split--active"))},R=function(){return(0,n.jsx)("div",g({className:"paraui-button-split-list"},{children:(0,n.jsx)("ul",{children:a.map((function(t,e){return Array.isArray(t)?function(t,e){return(0,n.jsx)("li",g({className:"split-li-group"},{children:t.map((function(t,i){var o="".concat(e,"-").concat(i);return(0,n.jsx)("div",g({className:l()("split-li",o===q&&"split-li--active",t.disabled&&"split-li--disabled"),onClick:function(e){return _(t,o,e)}},{children:(null==m?void 0:m(t))||t.label}),o)}))}),e)}(t,e):(0,n.jsx)("li",g({className:l()("split-li",e===q&&"split-li--active",t.disabled&&"split-li--disabled"),onClick:function(i){return _(t,e,i)}},{children:(null==m?void 0:m(t))||t.label}),e)}))})}))};return(0,n.jsxs)("div",g({className:l()("paraui-button-split",c),ref:T,style:s,onMouseLeave:function(t){var e;t.stopPropagation(),B(),null===(e=t.currentTarget.firstElementChild)||void 0===e||e.classList.remove("paraui-button-split--active"),z(!1)}},{children:[O?(0,n.jsx)(y.IconButton,g({variant:"text",size:"small",disabled:f},S,{onMouseEnter:L},{children:null!=e?e:C({id:"moreActions"})})):(0,n.jsx)(y,g({variant:"outlined",size:"large",startIcon:(0,n.jsx)(x(),{}),disabled:f},S,{onMouseEnter:L},{children:null!=e?e:C({id:"moreActions"})})),(0,n.jsx)(r.Popper,g({open:P,anchorEl:T.current,transition:!0,placement:j,style:g({zIndex:1500},d),className:l()("paraui-button-split-popper",u)},{children:function(t){var e=t.TransitionProps;t.placement;return(0,n.jsx)(r.Grow,g({},e,{children:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(r.ClickAwayListener,g({onClickAway:H},{children:R()}))})}))}}))]}))};var y=w},3054:function(t,e,i){"use strict";var n=i(8156),o=i.n(n),r=i(5395),a=i.n(r);e.Z=function(t,e){var i=o().useContext(a()).intlFormat;return e.zh_CN=e.zh,e.en_US=e.en,i&&i(t,e)}},3566:function(t,e,i){"use strict";var n=i(5893),o=i(7371),r=i(8076),a=i.n(r),l=i(5744),c=i.n(l),u=(i(2113),function(){return u=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},u.apply(this,arguments)}),s=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i};e.default=function(t){var e=t.title,i=void 0===e?"":e,r=t.children,l=t.arrow,d=void 0===l||l,p=t.interactive,f=void 0===p||p,x=t.className,b=t.placement,h=void 0===b?"top-start":b,g=s(t,["title","children","arrow","interactive","className","placement"]);return(0,n.jsx)(o.default,u({title:i,arrow:d,interactive:f,placement:h},g,{children:(0,n.jsx)("span",u({className:c()("paraui-help",x)},{children:r||(0,n.jsx)(a(),{})}))}))}},4254:function(t,e,i){"use strict";var n=i(5893),o=(i(3936),function(){return o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},o.apply(this,arguments)});e.default=function(t){var e,i=t.className,r=t.style,a=t.error,l=void 0!==a&&a,c=t.helperText;return(0,n.jsx)("p",o({className:(e="paraui-helper-text",i&&(e+=" "+i),l&&(e+=" paraui-helper-text-error"),e),style:r},{children:c}))}},6010:function(t,e,i){"use strict";i.d(e,{Z:function(){return c}});var n=i(8156),o=i.n(n),r=i(5395),a=i.n(r),l=function(){return l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},l.apply(this,arguments)};function c(t,e){var i=o().useContext(a()).componentsProps,n=i&&i[e];return l(l({},n),t)}},8767:function(t,e,i){"use strict";var n=i(5893),o=i(3566),r=(i(9663),function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)});e.default=function(t){var e=t.className,i=t.style,a=t.label,l=t.labelSign,c=t.required,u=void 0!==c&&c,s=t.tooltip,d=t.tooltipType,p=void 0===d?"icon":d,f=t.placement,x=t.arrow,b=t.tooltipIcon,h=function(){var t="paraui-label";return p&&(t+=" paraui-label-"+p),s&&(t+=" paraui-label-tooltip"),e&&(t+=" "+e),t};return(0,n.jsxs)(n.Fragment,{children:["icon"===p&&(0,n.jsxs)("label",r({className:h(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:a}),u&&(0,n.jsx)("span",r({className:"paraui-label-required"},{children:"*"})),l&&(0,n.jsx)("span",{children:l}),s&&(0,n.jsx)(o.default,r({title:s,placement:f,arrow:x},{children:b}))]})),"line"===p&&(0,n.jsx)(o.default,r({title:s||"",placement:f,arrow:x},{children:(0,n.jsxs)("label",r({className:h(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:a}),u&&(0,n.jsx)("span",r({className:"paraui-label-required"},{children:"*"})),l&&(0,n.jsx)("span",{children:l})]}))}))]})}},7502:function(t,e,i){"use strict";var n=i(5893),o=i(8156),r=i(2788),a=i.n(r),l=(i(3492),function(){return l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},l.apply(this,arguments)});e.default=function(t){var e=t.className,i=t.style,r=t.opacity,c=void 0===r?.7:r,u=(0,o.useRef)(null);(0,o.useEffect)((function(){u&&u.current&&u.current.parentNode&&(u.current.parentNode.style.position||(u.current.parentNode.style.position="relative"))}),[]);var s;return(0,n.jsxs)("div",l({className:(s="paraui-loading",e&&(s+=" "+e),s),style:i,ref:u},{children:[(0,n.jsx)("div",l({className:"paraui-loading-box"},{children:(0,n.jsx)(a(),{})})),(0,n.jsx)("div",{className:"paraui-loading-mask",style:{opacity:c}})]}))}},7320:function(t,e,i){"use strict";var n=i(5893),o=i(8156),r=i(8767),a=i(8543),l=i(5428),c=i.n(l),u=i(9979),s=i.n(u),d=i(6788),p=i.n(d),f=i(7839),x=i(7502),b=i(7371),h=i(4254),g=i(6010),v=(i(6202),function(){return v=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},v.apply(this,arguments)}),m=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i},w=function(t){return"number"==typeof t&&!isNaN(t)};e.default=function(t){var e=(0,g.Z)(t,"TextField"),i=e.className,l=e.style,u=e.size,d=void 0===u?"large":u,y=e.labelMode,j=void 0===y?"outside":y,S=e.placeholder,k=void 0===S?"":S,O=e.label,C=void 0===O?"":O,N=e.labelTooltip,P=e.disabled,z=void 0!==P&&P,T=e.multiline,M=void 0!==T&&T,E=e.required,I=void 0!==E&&E,q=e.labelSign,F=e.rows,_=void 0===F?2:F,L=e.error,B=void 0!==L&&L,H=e.helperText,R=void 0===H?"":H,A=e.addonBefore,D=void 0===A?"":A,U=e.addonAfter,K=void 0===U?"":U,Y=(e.defaultValue,e.value),J=e.autoFocus,W=void 0!==J&&J,V=e.type,G=void 0===V?"text":V,Q=e.onClickIcon,Z=e.rightIcon,$=e.showRightIcon,X=void 0===$||$,tt=e.allowClear,et=void 0!==tt&&tt,it=e.limitLength,nt=e.fetchSuggestions,ot=e.selectPopoverClass,rt=e.renderSelectItem,at=e.showSelectName,lt=void 0===at?"value":at,ct=e.resize,ut=void 0===ct||ct,st=e.onBlur,dt=e.onFocus,pt=e.onChange,ft=e.onKeydown,xt=e.onKeyUp,bt=e.onEnter,ht=e.onClickAddonBefore,gt=e.onClickAddonAfter,vt=e.onSelect,mt=e.onClear,wt=m(e,["className","style","size","labelMode","placeholder","label","labelTooltip","disabled","multiline","required","labelSign","rows","error","helperText","addonBefore","addonAfter","defaultValue","value","autoFocus","type","onClickIcon","rightIcon","showRightIcon","allowClear","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","resize","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect","onClear"]),yt=(0,o.useState)("text-field-select-content-"+(0,a.UUID)())[0],jt=(0,o.useState)(!0),St=jt[0],kt=jt[1],Ot=(0,o.useState)(""),Ct=Ot[0],Nt=Ot[1],Pt=(0,o.useState)(!1),zt=Pt[0],Tt=Pt[1],Mt=(0,o.useState)("text"),Et=Mt[0],It=Mt[1],qt=(0,o.useState)(!1),Ft=qt[0],_t=qt[1],Lt=(0,o.useState)(!1),Bt=Lt[0],Ht=Lt[1],Rt=(0,o.useState)([]),At=Rt[0],Dt=Rt[1],Ut=(0,o.useRef)(null),Kt=(0,o.useRef)(null);(0,o.useEffect)((function(){void 0!==t.defaultValue&&Nt(t.defaultValue)}),[]),(0,o.useEffect)((function(){G!==Et&&It(G)}),[G]),(0,o.useEffect)((function(){void 0!==Y&&Nt(Y)}),[Y]),(0,o.useEffect)((function(){kt(""===Ct||void 0===Ct)}),[Ct]),(0,o.useEffect)((function(){nt&&_t(zt)}),[zt,nt]),(0,o.useEffect)((function(){return Ft?window.addEventListener("keydown",Qt):window.removeEventListener("keydown",Qt),function(){window.removeEventListener("keydown",Qt)}}),[Ft]),(0,o.useEffect)((function(){if(!zt&&Ct){var e=Jt(Ct);if(e!==Ct){var i={};i.target=Ut.current,i.target.value=e,void 0===t.value&&Nt(e),t.onChange&&t.onChange(i)}}}),[Ct,zt]);var Yt,Jt=function(e){var i=e;return w(t.limitLength)&&e.toString().length>Number(t.limitLength)&&(i=i.toString().substr(0,t.limitLength)),i},Wt=function(){z||(kt(!1),(Ut&&Ut.current).focus())},Vt=function(t){var e=t.selectDom,i=t.keyCode,n=t.currentDom,o="nextSibling",r=".text-field-select-content-item";38===i&&(o="previousSibling",r=".text-field-select-content-item:last-child"),n?(n=n[o])||(n=e.querySelector(r)):n=e.querySelector(".text-field-select-content-item"),n&&(n.classList.add("text-field-select-content-item-keydown"),Gt(n,e))},Gt=function(t,e){var i=e.clientHeight,n=t.offsetTop+t.clientHeight-i;e.scrollTop=n>0?n:0},Qt=function(t){var e=document.querySelector("."+yt),i=null,n=e.querySelector(".text-field-select-content-item-keydown");if(13===t.keyCode&&n){var o=n.dataset.val;ae(JSON.parse(o))(t),(Ut&&Ut.current).blur()}n&&(i=n,n.classList.remove("text-field-select-content-item-keydown")),40===t.keyCode&&Vt({selectDom:e,keyCode:t.keyCode,currentDom:i}),38===t.keyCode&&Vt({selectDom:e,keyCode:t.keyCode,currentDom:i})},Zt=function(t){Tt(!1),""===t.target.value&&kt(!0),st&&st(t)},$t=function(t){nt&&(Ht(!0),nt(t,(function(t){Dt(t||[]),Ht(!1)})))},Xt=function(t){Tt(!0),dt&&dt(t),$t(t.target.value)},te=function(e){var i=e.target.value;i&&kt(!1),void 0===t.value&&Nt(i),pt&&pt(e),$t(e.target.value)},ee=function(t){13===t.keyCode&&bt&&bt(t),ft&&ft(t)},ie=function(t){xt&&xt(t)},ne=function(t){"password"===G&&("text"===Et&&It("password"),"password"===Et&&It("text")),Q&&Q(t)},oe=function(){return void 0===t.value?Ct:Y},re=function(){_t(!1)},ae=function(t){return function(e){vt&&vt(t)}},le=(0,o.useMemo)((function(){return(0,n.jsx)(n.Fragment,{children:w(it)&&(0,n.jsx)("span",v({className:"length-limit"},{children:(Ct?Ct.toString().length:0)+"/"+it}))})}),[it,Ct]),ce=(0,o.useMemo)((function(){var t=Z||("password"===G?"password"===Et?(0,n.jsx)(c(),{}):(0,n.jsx)(s(),{}):null);return(0,n.jsx)(n.Fragment,{children:X&&t&&(0,n.jsx)("span",v({className:"password"===G?"right-icon right-icon-password":"right-icon",onClick:ne},{children:t}))})}),[X,Z,G,Et,Q]),ue=function(){var e=Ut.current;e.value="",void 0===t.value&&Nt(""),pt&&pt({target:e}),$t(""),mt&&mt()},se=function(){if(oe()&&!z&&et)return(0,n.jsx)("span",v({className:"clean-up-icon",onClick:ue},{children:(0,n.jsx)(p(),{})}))},de=(0,o.useMemo)((function(){return(0,n.jsxs)("div",v({className:"text-field-content-within",ref:Kt},{children:[(0,n.jsxs)("div",v({className:"text-field-content-within-input"},{children:[M?(0,n.jsx)("textarea",v({ref:Ut,rows:_,value:oe(),onBlur:Zt,onFocus:Xt,onChange:te,onKeyDown:ee,onKeyUp:ie,disabled:z},wt)):(0,n.jsx)("input",v({ref:Ut,type:Et,value:oe(),onBlur:Zt,onFocus:Xt,onChange:te,onKeyDown:ee,onKeyUp:ie,disabled:z},wt)),St&&!zt&&(0,n.jsx)("span",v({className:"text-field-label-placeholder",onClick:Wt},{children:"outside"===j?k:(0,n.jsxs)(n.Fragment,{children:[C||k,I&&(0,n.jsx)("span",v({className:"text-field-required"},{children:"*"})),q&&(0,n.jsx)("span",{children:q})]})}))]})),se(),le,ce]}))}),[St,zt,W,Et,Ct,le,ce,j,k,C,z,M,_,wt,pt,nt,Q,et,mt]),pe=(0,o.useMemo)((function(){var t,e=function(t){return"object"==typeof t&&null!==t?t[lt]:t};return(0,n.jsxs)("div",v({className:(t="text-field-select-content",Bt&&(t+=" text-field-select-content-loading"),yt&&(t+=" "+yt),t),style:{width:(Kt&&Kt.current?Kt.current.offsetWidth:0)+"px"}},{children:[At&&At.map((function(t,i){return(0,n.jsx)("div",v({className:"text-field-select-content-item",onMouseDown:ae(t),"data-val":JSON.stringify(t)},{children:rt?rt(t):(0,n.jsx)(f.default,{children:e(t)})}),i)})),Bt&&(0,n.jsx)(x.default,{})]}))}),[Kt,Ft,At,rt,lt,vt,Bt,yt]),fe=(0,o.useMemo)((function(){return(0,n.jsx)(b.default,v({open:Ft,title:pe,onClose:re,arrow:!1,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,placement:"bottom-start",classes:{popper:(t="paraui-text-field-select paraui-scrollbar-small",d&&(t+=" paraui-text-field-select-"+d),ot&&(t+=" "+ot),At.length>0&&(t+=" paraui-text-field-select-data"),t)}},{children:de}));var t}),[St,zt,W,Et,Ct,le,ce,j,k,C,z,M,_,wt,pt,nt,vt,Kt,Ft,ot,d,Q,At,et,mt]),xe=(0,o.useMemo)((function(){var t,e=Boolean(I||q||C);if("outside"===j&&e){return(0,n.jsx)(r.default,v({label:C,required:I,labelSign:q},N,{className:(t="text-field-label",N&&N.className&&(t+=" "+N.className),t)}))}return null}),[j,C,q,I,N]);return(0,n.jsxs)("div",v({className:(Yt="paraui-text-field",Yt+=" text-field",d&&!M&&(Yt+=" text-field-"+d),i&&(Yt+=" "+i),B&&(Yt+=" text-field-error"),zt&&(Yt+=" text-field-focus"),z&&(Yt+=" text-field-disabled"),M&&(Yt+=" text-field-multiline"),w(t.limitLength)&&(Yt+=" text-field-limit-length"),w(t.limitLength)&&Ct&&Ct.toString().length>Number(t.limitLength)&&(Yt+=" text-field-limit"),ut&&(Yt+=" text-field-resize"),oe()&&(Yt+=" text-field-value"),et&&(Yt+=" text-field-allow-clear"),Yt),style:l},{children:[xe,(0,n.jsxs)("div",v({className:"text-field-content"},{children:[D&&(0,n.jsx)("div",v({className:"text-field-content-before",onClick:function(t){ht&&ht(t)}},{children:D})),nt?fe:de,K&&(0,n.jsx)("div",v({className:"text-field-content-after",onClick:function(t){gt&>(t)}},{children:K}))]})),(0,n.jsx)(h.default,{className:"text-field-error-text",error:B,helperText:R})]}))}},7371:function(t,e,i){"use strict";var n=i(5893),o=i(670),r=i(5744),a=i.n(r),l=(i(2310),function(){return l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},l.apply(this,arguments)}),c=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i};e.default=function(t){var e,i=t.placement,r=void 0===i?"top-start":i,u=t.className,s=t.arrow,d=void 0===s||s,p=t.PopperProps,f=t.boundariesElement,x=void 0===f?"scrollParent":f,b=c(t,["placement","className","arrow","PopperProps","boundariesElement"]),h=l(l({},t.classes),{popper:a()("paraui-tooltip",u,null===(e=t.classes)||void 0===e?void 0:e.popper,{"paraui-tooltip-left-right":(null==r?void 0:r.includes("left"))||(null==r?void 0:r.includes("right")),"paraui-tooltip-top-bottom":(null==r?void 0:r.includes("top"))||(null==r?void 0:r.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,l({},b,{enterTouchDelay:0,arrow:d,placement:r,classes:h,PopperProps:l(l({},p),{modifiers:{preventOverflow:{boundariesElement:x}}})}))}},670:function(t){"use strict";t.exports=e},5395:function(t){"use strict";t.exports=u},6788:function(t){"use strict";t.exports=l},2396:function(t){"use strict";t.exports=d},3835:function(t){"use strict";t.exports=s},8076:function(t){"use strict";t.exports=n},2788:function(t){"use strict";t.exports=c},5428:function(t){"use strict";t.exports=r},9979:function(t){"use strict";t.exports=a},6839:function(t){"use strict";t.exports=p},8543:function(t){"use strict";t.exports=o},5744:function(t){"use strict";t.exports=i},8156:function(e){"use strict";e.exports=t}},x={};function b(t){var e=x[t];if(void 0!==e)return e.exports;var i=x[t]={id:t,exports:{}};return f[t](i,i.exports,b),i.exports}b.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return b.d(e,{a:e}),e},b.d=function(t,e){for(var i in e)b.o(e,i)&&!b.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},b.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},b.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},b.nc=void 0;var h={};return function(){"use strict";b.r(h),b.d(h,{Search:function(){return l}});var t=b(5893),e=b(8156),i=b(7320),n=b(7896),o=b(6839),r=b.n(o),a=(b(9750),function(){return a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},a.apply(this,arguments)}),l=function(o){var l=o.className,c=void 0===l?"":l,u=o.style,s=o.size,d=void 0===s?"large":s,p=o.btnType,f=void 0===p?"outside":p,x=o.showBtn,b=void 0===x||x,h=o.btnIcon,g=o.btnText,v=void 0===g?"":g,m=o.placeholder,w=void 0===m?"":m,y=(o.defaultValue,o.value),j=o.rightIcon,S=o.showRightIcon,k=void 0===S||S,O=o.allowClear,C=void 0===O||O,N=o.rightIconExist,P=void 0!==N&&N,z=o.onChange,T=o.onBlur,M=o.onFocus,E=o.onKeydown,I=o.onKeyUp,q=o.onClickBtn,F=o.onClickRightIcon,_=o.onEnter,L=o.onClear,B=(0,e.useState)(""),H=B[0],R=B[1];(0,e.useEffect)((function(){void 0!==o.defaultValue&&R(o.defaultValue)}),[]),(0,e.useEffect)((function(){void 0!==y&&R(y)}),[y]);var A,D=function(){return h||(0,t.jsx)(r(),{})},U=function(){q&&q(H)};return(0,t.jsxs)("div",a({className:(A="paraui-search",c&&(A+=" "+c),d&&(A+=" search-"+d),f&&(A+=" search-"+f),b&&(A+=" search-showbtn"),v&&(A+=" search-btntext"),H&&(A+=" paraui-search-value"),P&&(A+=" paraui-search-right-icon-exist"),A),style:u},{children:[(0,t.jsx)(i.default,{size:d,placeholder:w,value:void 0===o.value?H:y,rightIcon:k?j||void 0:"",onClickIcon:function(){var t=H;k&&!j&&void 0===o.value&&(t="",R("")),F&&F(t)},onChange:function(t){var e=t.target.value;void 0===o.value&&R(e),z&&z(e,t)},onBlur:T,onFocus:M,onKeydown:E,onKeyUp:I,onEnter:_,addonAfter:function(){if(b&&"inside"===f)return(0,t.jsx)(n.default,a({size:d,startIcon:D(),variant:"outlined",onClick:U},{children:v}))}(),allowClear:C,onClear:L}),b&&"outside"===f&&(0,t.jsx)(n.default,a({size:d,startIcon:D(),variant:"contained",onClick:U},{children:v}))]}))};h.default=l}(),h}()}));
|
|
14
|
+
*/i(7418);var n=i(8156),o=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var r=Symbol.for;o=r("react.element"),e.Fragment=r("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(t,e,i){var n,r={},u=null,s=null;for(n in void 0!==i&&(u=""+i),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(s=e.ref),e)l.call(e,n)&&!c.hasOwnProperty(n)&&(r[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps)void 0===r[n]&&(r[n]=e[n]);return{$$typeof:o,type:t,key:u,ref:s,props:r,_owner:a.current}}e.jsx=u,e.jsxs=u},5893:function(t,e,i){"use strict";t.exports=i(5251)},9271:function(t,e,i){var n=i(3379),o=i(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);t.exports=o.locals||{}},5822:function(t,e,i){var n=i(3379),o=i(8313);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);t.exports=o.locals||{}},2113:function(t,e,i){var n=i(3379),o=i(7381);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);t.exports=o.locals||{}},3936:function(t,e,i){var n=i(3379),o=i(9916);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);t.exports=o.locals||{}},9663:function(t,e,i){var n=i(3379),o=i(4928);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);t.exports=o.locals||{}},3492:function(t,e,i){var n=i(3379),o=i(5714);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);t.exports=o.locals||{}},9750:function(t,e,i){var n=i(3379),o=i(4447);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);t.exports=o.locals||{}},6202:function(t,e,i){var n=i(3379),o=i(3637);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);t.exports=o.locals||{}},2310:function(t,e,i){var n=i(3379),o=i(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);t.exports=o.locals||{}},3379:function(t,e,i){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}(),a=[];function l(t){for(var e=-1,i=0;i<a.length;i++)if(a[i].identifier===t){e=i;break}return e}function c(t,e){for(var i={},n=[],o=0;o<t.length;o++){var r=t[o],c=e.base?r[0]+e.base:r[0],u=i[c]||0,s="".concat(c," ").concat(u);i[c]=u+1;var d=l(s),p={css:r[1],media:r[2],sourceMap:r[3]};-1!==d?(a[d].references++,a[d].updater(p)):a.push({identifier:s,updater:h(p,e),references:1}),n.push(s)}return n}function u(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var o=i.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var a=r(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var s,d=(s=[],function(t,e){return s[t]=e,s.filter(Boolean).join("\n")});function p(t,e,i,n){var o=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=d(e,o);else{var r=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function f(t,e,i){var n=i.css,o=i.media,r=i.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var x=null,b=0;function h(t,e){var i,n,o;if(e.singleton){var r=b++;i=x||(x=u(e)),n=p.bind(null,i,r,!1),o=p.bind(null,i,r,!0)}else i=u(e),n=f.bind(null,i,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(i)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var i=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<i.length;n++){var o=l(i[n]);a[o].references--}for(var r=c(t,e),u=0;u<i.length;u++){var s=l(i[u]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}i=r}}}},7839:function(t,e,i){"use strict";var n=i(5893),o=i(8156),r=i(7371),a=(i(9271),function(){return a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},a.apply(this,arguments)});e.default=function(t){var e=t.children,i=t.arrow,l=void 0!==i&&i,c=t.placement,u=void 0===c?"bottom-start":c,s=t.tips,d=void 0===s?"":s,p=t.className,f=void 0===p?"":p,x=t.beyondText,b=void 0===x||x,h=t.interactive,g=void 0===h||h,v=t.style,m=(0,o.useRef)(),w=(0,o.useState)(""),y=w[0],j=w[1];(0,o.useEffect)((function(){j(d)}),[d]);var S;return(0,n.jsx)("div",a({ref:m,className:(S="paraui-auto-tips",f&&(S+=" "+f),S),onMouseOver:function(){var t="";m.current&&m.current.scrollWidth>m.current.offsetWidth&&(t=d||(b?m.current.innerText:e)),j(t)},style:v},{children:(0,n.jsx)(r.default,a({arrow:l,title:y,placement:u,interactive:g,boundariesElement:"viewport",className:"paraui-auto-tips-tooltip"},{children:(0,n.jsx)("div",a({className:"auto-tips-content"},{children:e}))}))}))}},7896:function(t,e,i){"use strict";i.d(e,{default:function(){return y}});var n=i(5893),o=i(8156),r=i(670),a=i(5744),l=i.n(a),c=i(2788),u=i.n(c),s=i(3835),d=i.n(s),p=i(7371),f=i(2396),x=i.n(f),b=i(3054),h={zh:{moreActions:"更多操作"},en:{moreActions:"More actions"}},g=function(){return g=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},g.apply(this,arguments)};i(5822);var v=function(){return v=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},v.apply(this,arguments)},m=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i},w=function(t){var e=t.variant,i=void 0===e?"contained":e,a=t.size,c=void 0===a?"large":a,s=t.className,f=t.disabled,x=void 0!==f&&f,b=t.children,h=t.startIcon,g=t.endIcon,w=t.loading,y=void 0!==w&&w,j=t.toolTipTitle,S=void 0===j?"":j,k=t.TooltipProps,O=t.danger,C=void 0!==O&&O,N=m(t,["variant","size","className","disabled","children","startIcon","endIcon","loading","toolTipTitle","TooltipProps","danger"]),P=(0,o.useState)(!1),z=P[0],E=P[1],T=function(t){if(!z)return"start"===t&&h?(0,n.jsx)("span",v({className:l()("btn-icon","start-icon")},{children:h})):"end"===t&&g?(0,n.jsx)("span",v({className:l()("btn-icon","end-icon")},{children:g})):null;if("object"==typeof y){var e=y.delay||0;setTimeout((function(){return E(!1)}),e)}return"start"===t?(0,n.jsx)("span",v({className:"btn-icon loading-icon"},{children:(0,n.jsx)(u(),{})})):null},M=(0,n.jsx)(r.Button,v({},N,{color:"default",variant:"contained",disabled:x,disableRipple:!0,disableElevation:!0,className:l()("paraui-button",s,"paraui-button-".concat(i),"paraui-button-".concat(c),z&&"paraui-button-loading",C&&!x&&"paraui-button-dangerous"),classes:{label:"paraui-button-label"},startIcon:T("start"),endIcon:T("end")},{children:b}));return(0,o.useEffect)((function(){E(!!y)}),[y]),x&&S?(0,n.jsx)(p.default,v({},k,{title:function(){if(x&&S){return(0,n.jsxs)("span",{children:[(0,n.jsx)(d(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}}),S]})}return S}()},{children:(0,n.jsx)("span",v({className:"paraui-button--disabled"},{children:M}))})):M};w.IconButton=function(t){var e=t.variant,i=void 0===e?"contained":e,a=t.size,c=void 0===a?"large":a,s=t.toolTipTitle,f=void 0===s?"":s,x=t.children,b=t.className,h=t.disabled,g=void 0!==h&&h,w=t.loading,y=void 0!==w&&w,j=t.TooltipProps,S=t.danger,k=void 0!==S&&S,O=m(t,["variant","size","toolTipTitle","children","className","disabled","loading","TooltipProps","danger"]),C=(0,o.useState)(!1),N=C[0],P=C[1],z=(0,n.jsx)(r.IconButton,v({},O,{disabled:g,disableRipple:!0,className:l()("paraui-icon-button",b,"paraui-icon-button-".concat(i),"paraui-icon-button-".concat(c),N&&"paraui-icon-button-loading",k&&!g&&"paraui-icon-button-dangerous")},{children:function(){if(!N)return x;if("object"==typeof y){var t=y.delay||0;setTimeout((function(){return P(!1)}),t)}return(0,n.jsx)("span",v({className:"loading-icon"},{children:(0,n.jsx)(u(),{})}))}()}));return(0,o.useEffect)((function(){P(!!y)}),[y]),f?(0,n.jsx)(p.default,v({},j,{title:function(){if(g&&f){return(0,n.jsxs)("span",{children:[(0,n.jsx)(d(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}}),f]})}return f}()},{children:g?(0,n.jsx)("span",v({className:"paraui-button--disabled"},{children:z})):z}),+N):z},w.SplitButton=function(t){var e=t.buttonText,i=t.options,a=void 0===i?[]:i,c=t.className,u=t.popperClassName,s=t.style,d=t.popperStyle,p=t.disabled,f=void 0!==p&&p,v=t.onClick,m=t.optionRender,w=t.placement,j=void 0===w?"bottom-end":w,S=t.buttonProps,k=t.iconButton,O=void 0!==k&&k,C=(0,b.Z)("Button",h),N=(0,o.useState)(!1),P=N[0],z=N[1],E=(0,o.useRef)(null),T=(0,o.useRef)(),M=(0,o.useRef)(),I=(0,o.useState)(),q=I[0],F=I[1],_=function(t,e,i){var n;t.disabled?i.stopPropagation():(F(e),z(!1),null===(n=T.current)||void 0===n||n.classList.remove("paraui-button-split--active"),null==v||v(t,i))},L=function(t){t.stopPropagation(),B();var e=t.currentTarget;M.current=window.setTimeout((function(){T.current=e,e.classList.add("paraui-button-split--active"),z(!0)}),150)},B=function(){M.current&&(clearTimeout(M.current),M.current=null)},H=function(t){var e,i;(null===(e=E.current)||void 0===e?void 0:e.contains(t.target))||(z(!1),null===(i=T.current)||void 0===i||i.classList.remove("paraui-button-split--active"))},R=function(){return(0,n.jsx)("div",g({className:"paraui-button-split-list"},{children:(0,n.jsx)("ul",{children:a.map((function(t,e){return Array.isArray(t)?function(t,e){return(0,n.jsx)("li",g({className:"split-li-group"},{children:t.map((function(t,i){var o="".concat(e,"-").concat(i);return(0,n.jsx)("div",g({className:l()("split-li",o===q&&"split-li--active",t.disabled&&"split-li--disabled"),onClick:function(e){return _(t,o,e)}},{children:(null==m?void 0:m(t))||t.label}),o)}))}),e)}(t,e):(0,n.jsx)("li",g({className:l()("split-li",e===q&&"split-li--active",t.disabled&&"split-li--disabled"),onClick:function(i){return _(t,e,i)}},{children:(null==m?void 0:m(t))||t.label}),e)}))})}))};return(0,n.jsxs)("div",g({className:l()("paraui-button-split",c),ref:E,style:s,onMouseLeave:function(t){var e;t.stopPropagation(),B(),null===(e=t.currentTarget.firstElementChild)||void 0===e||e.classList.remove("paraui-button-split--active"),z(!1)}},{children:[O?(0,n.jsx)(y.IconButton,g({variant:"text",size:"small",disabled:f},S,{onMouseEnter:L},{children:null!=e?e:C({id:"moreActions"})})):(0,n.jsx)(y,g({variant:"outlined",size:"large",startIcon:(0,n.jsx)(x(),{}),disabled:f},S,{onMouseEnter:L},{children:null!=e?e:C({id:"moreActions"})})),(0,n.jsx)(r.Popper,g({open:P,anchorEl:E.current,transition:!0,placement:j,style:g({zIndex:1500},d),className:l()("paraui-button-split-popper",u)},{children:function(t){var e=t.TransitionProps;t.placement;return(0,n.jsx)(r.Grow,g({},e,{children:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(r.ClickAwayListener,g({onClickAway:H},{children:R()}))})}))}}))]}))};var y=w},3054:function(t,e,i){"use strict";var n=i(8156),o=i.n(n),r=i(5395),a=i.n(r);e.Z=function(t,e){var i=o().useContext(a()).intlFormat;return e.zh_CN=e.zh,e.en_US=e.en,i&&i(t,e)}},3566:function(t,e,i){"use strict";var n=i(5893),o=i(7371),r=i(8076),a=i.n(r),l=i(5744),c=i.n(l),u=(i(2113),function(){return u=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},u.apply(this,arguments)}),s=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i};e.default=function(t){var e=t.title,i=void 0===e?"":e,r=t.children,l=t.arrow,d=void 0===l||l,p=t.interactive,f=void 0===p||p,x=t.className,b=t.placement,h=void 0===b?"top-start":b,g=s(t,["title","children","arrow","interactive","className","placement"]);return(0,n.jsx)(o.default,u({title:i,arrow:d,interactive:f,placement:h},g,{children:(0,n.jsx)("span",u({className:c()("paraui-help",x)},{children:r||(0,n.jsx)(a(),{})}))}))}},4254:function(t,e,i){"use strict";var n=i(5893),o=(i(3936),function(){return o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},o.apply(this,arguments)});e.default=function(t){var e,i=t.className,r=t.style,a=t.error,l=void 0!==a&&a,c=t.helperText;return(0,n.jsx)("p",o({className:(e="paraui-helper-text",i&&(e+=" "+i),l&&(e+=" paraui-helper-text-error"),e),style:r},{children:c}))}},6010:function(t,e,i){"use strict";i.d(e,{Z:function(){return c}});var n=i(8156),o=i.n(n),r=i(5395),a=i.n(r),l=function(){return l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},l.apply(this,arguments)};function c(t,e){var i=o().useContext(a()).componentsProps,n=i&&i[e];return l(l({},n),t)}},8767:function(t,e,i){"use strict";var n=i(5893),o=i(3566),r=(i(9663),function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)});e.default=function(t){var e=t.className,i=t.style,a=t.label,l=t.labelSign,c=t.required,u=void 0!==c&&c,s=t.tooltip,d=t.tooltipType,p=void 0===d?"icon":d,f=t.placement,x=t.arrow,b=t.tooltipIcon,h=function(){var t="paraui-label";return p&&(t+=" paraui-label-"+p),s&&(t+=" paraui-label-tooltip"),e&&(t+=" "+e),t};return(0,n.jsxs)(n.Fragment,{children:["icon"===p&&(0,n.jsxs)("label",r({className:h(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:a}),u&&(0,n.jsx)("span",r({className:"paraui-label-required"},{children:"*"})),l&&(0,n.jsx)("span",{children:l}),s&&(0,n.jsx)(o.default,r({title:s,placement:f,arrow:x},{children:b}))]})),"line"===p&&(0,n.jsx)(o.default,r({title:s||"",placement:f,arrow:x},{children:(0,n.jsxs)("label",r({className:h(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:a}),u&&(0,n.jsx)("span",r({className:"paraui-label-required"},{children:"*"})),l&&(0,n.jsx)("span",{children:l})]}))}))]})}},7502:function(t,e,i){"use strict";var n=i(5893),o=i(8156),r=i(2788),a=i.n(r),l=(i(3492),function(){return l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},l.apply(this,arguments)});e.default=function(t){var e=t.className,i=t.style,r=t.opacity,c=void 0===r?.7:r,u=(0,o.useRef)(null);(0,o.useEffect)((function(){u&&u.current&&u.current.parentNode&&(u.current.parentNode.style.position||(u.current.parentNode.style.position="relative"))}),[]);var s;return(0,n.jsxs)("div",l({className:(s="paraui-loading",e&&(s+=" "+e),s),style:i,ref:u},{children:[(0,n.jsx)("div",l({className:"paraui-loading-box"},{children:(0,n.jsx)(a(),{})})),(0,n.jsx)("div",{className:"paraui-loading-mask",style:{opacity:c}})]}))}},7320:function(t,e,i){"use strict";var n=i(5893),o=i(8156),r=i(8767),a=i(8543),l=i(5428),c=i.n(l),u=i(9979),s=i.n(u),d=i(6788),p=i.n(d),f=i(7839),x=i(7502),b=i(7371),h=i(4254),g=i(6010),v=(i(6202),function(){return v=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},v.apply(this,arguments)}),m=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i},w=function(t){return"number"==typeof t&&!isNaN(t)};e.default=function(t){var e=(0,g.Z)(t,"TextField"),i=e.className,l=e.style,u=e.size,d=void 0===u?"large":u,y=e.labelMode,j=void 0===y?"outside":y,S=e.placeholder,k=void 0===S?"":S,O=e.label,C=void 0===O?"":O,N=e.labelTooltip,P=e.disabled,z=void 0!==P&&P,E=e.multiline,T=void 0!==E&&E,M=e.required,I=void 0!==M&&M,q=e.labelSign,F=e.rows,_=void 0===F?2:F,L=e.error,B=void 0!==L&&L,H=e.helperText,R=void 0===H?"":H,A=e.addonBefore,D=void 0===A?"":A,U=e.addonAfter,K=void 0===U?"":U,Y=(e.defaultValue,e.value),J=e.autoFocus,W=void 0!==J&&J,V=e.type,G=void 0===V?"text":V,Q=e.onClickIcon,Z=e.rightIcon,$=e.showRightIcon,X=void 0===$||$,tt=e.allowClear,et=void 0!==tt&&tt,it=e.limitLength,nt=e.fetchSuggestions,ot=e.selectPopoverClass,rt=e.renderSelectItem,at=e.showSelectName,lt=void 0===at?"value":at,ct=e.resize,ut=void 0===ct||ct,st=e.searchEmpty,dt=e.onBlur,pt=e.onFocus,ft=e.onChange,xt=e.onKeydown,bt=e.onKeyUp,ht=e.onEnter,gt=e.onClickAddonBefore,vt=e.onClickAddonAfter,mt=e.onSelect,wt=e.onClear,yt=m(e,["className","style","size","labelMode","placeholder","label","labelTooltip","disabled","multiline","required","labelSign","rows","error","helperText","addonBefore","addonAfter","defaultValue","value","autoFocus","type","onClickIcon","rightIcon","showRightIcon","allowClear","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","resize","searchEmpty","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect","onClear"]),jt=(0,o.useState)("text-field-select-content-"+(0,a.UUID)())[0],St=(0,o.useState)(!0),kt=St[0],Ot=St[1],Ct=(0,o.useState)(""),Nt=Ct[0],Pt=Ct[1],zt=(0,o.useState)(!1),Et=zt[0],Tt=zt[1],Mt=(0,o.useState)("text"),It=Mt[0],qt=Mt[1],Ft=(0,o.useState)(!1),_t=Ft[0],Lt=Ft[1],Bt=(0,o.useState)(!1),Ht=Bt[0],Rt=Bt[1],At=(0,o.useState)([]),Dt=At[0],Ut=At[1],Kt=(0,o.useRef)(null),Yt=(0,o.useRef)(null);(0,o.useEffect)((function(){void 0!==t.defaultValue&&Pt(t.defaultValue)}),[]),(0,o.useEffect)((function(){G!==It&&qt(G)}),[G]),(0,o.useEffect)((function(){void 0!==Y&&Pt(Y)}),[Y]),(0,o.useEffect)((function(){Ot(""===Nt||void 0===Nt)}),[Nt]),(0,o.useEffect)((function(){nt&&Lt(Et)}),[Et,nt]),(0,o.useEffect)((function(){return _t?window.addEventListener("keydown",Zt):window.removeEventListener("keydown",Zt),function(){window.removeEventListener("keydown",Zt)}}),[_t]),(0,o.useEffect)((function(){if(!Et&&Nt){var e=Wt(Nt);if(e!==Nt){var i={};i.target=Kt.current,i.target.value=e,void 0===t.value&&Pt(e),t.onChange&&t.onChange(i)}}}),[Nt,Et]);var Jt,Wt=function(e){var i=e;return w(t.limitLength)&&e.toString().length>Number(t.limitLength)&&(i=i.toString().substr(0,t.limitLength)),i},Vt=function(){z||(Ot(!1),(Kt&&Kt.current).focus())},Gt=function(t){var e=t.selectDom,i=t.keyCode,n=t.currentDom,o="nextSibling",r=".text-field-select-content-item";38===i&&(o="previousSibling",r=".text-field-select-content-item:last-child"),n?(n=n[o])||(n=e.querySelector(r)):n=e.querySelector(".text-field-select-content-item"),n&&(n.classList.add("text-field-select-content-item-keydown"),Qt(n,e))},Qt=function(t,e){var i=e.clientHeight,n=t.offsetTop+t.clientHeight-i;e.scrollTop=n>0?n:0},Zt=function(t){var e=document.querySelector("."+jt),i=null,n=e.querySelector(".text-field-select-content-item-keydown");if(13===t.keyCode&&n){var o=n.dataset.val;le(JSON.parse(o))(t),(Kt&&Kt.current).blur()}n&&(i=n,n.classList.remove("text-field-select-content-item-keydown")),40===t.keyCode&&Gt({selectDom:e,keyCode:t.keyCode,currentDom:i}),38===t.keyCode&&Gt({selectDom:e,keyCode:t.keyCode,currentDom:i})},$t=function(t){Tt(!1),""===t.target.value&&Ot(!0),dt&&dt(t)},Xt=function(t){nt&&(Rt(!0),nt(t,(function(t){Ut(t||[]),Rt(!1)})))},te=function(t){Tt(!0),pt&&pt(t),Xt(t.target.value)},ee=function(e){var i=e.target.value;i&&Ot(!1),void 0===t.value&&Pt(i),ft&&ft(e),Xt(e.target.value)},ie=function(t){13===t.keyCode&&ht&&ht(t),xt&&xt(t)},ne=function(t){bt&&bt(t)},oe=function(t){"password"===G&&("text"===It&&qt("password"),"password"===It&&qt("text")),Q&&Q(t)},re=function(){return void 0===t.value?Nt:Y},ae=function(){Lt(!1)},le=function(t){return function(e){mt&&mt(t)}},ce=(0,o.useMemo)((function(){return(0,n.jsx)(n.Fragment,{children:w(it)&&(0,n.jsx)("span",v({className:"length-limit"},{children:(Nt?Nt.toString().length:0)+"/"+it}))})}),[it,Nt]),ue=(0,o.useMemo)((function(){var t=Z||("password"===G?"password"===It?(0,n.jsx)(c(),{}):(0,n.jsx)(s(),{}):null);return(0,n.jsx)(n.Fragment,{children:X&&t&&(0,n.jsx)("span",v({className:"password"===G?"right-icon right-icon-password":"right-icon",onClick:oe},{children:t}))})}),[X,Z,G,It,Q]),se=function(){var e=Kt.current;e.value="",void 0===t.value&&Pt(""),ft&&ft({target:e}),Xt(""),wt&&wt()},de=function(){if(re()&&!z&&et)return(0,n.jsx)("span",v({className:"clean-up-icon",onClick:se},{children:(0,n.jsx)(p(),{})}))},pe=(0,o.useMemo)((function(){return(0,n.jsxs)("div",v({className:"text-field-content-within",ref:Yt},{children:[(0,n.jsxs)("div",v({className:"text-field-content-within-input"},{children:[T?(0,n.jsx)("textarea",v({ref:Kt,rows:_,value:re(),onBlur:$t,onFocus:te,onChange:ee,onKeyDown:ie,onKeyUp:ne,disabled:z},yt)):(0,n.jsx)("input",v({ref:Kt,type:It,value:re(),onBlur:$t,onFocus:te,onChange:ee,onKeyDown:ie,onKeyUp:ne,disabled:z},yt)),kt&&!Et&&(0,n.jsx)("span",v({className:"text-field-label-placeholder",onClick:Vt},{children:"outside"===j?k:(0,n.jsxs)(n.Fragment,{children:[C||k,I&&(0,n.jsx)("span",v({className:"text-field-required"},{children:"*"})),q&&(0,n.jsx)("span",{children:q})]})}))]})),de(),ce,ue]}))}),[kt,Et,W,It,Nt,ce,ue,j,k,C,z,T,_,yt,ft,nt,Q,et,wt]),fe=(0,o.useMemo)((function(){var t,e=function(t){return"object"==typeof t&&null!==t?t[lt]:t};return(0,n.jsxs)("div",v({className:(t="text-field-select-content",Ht&&(t+=" text-field-select-content-loading"),jt&&(t+=" "+jt),t),style:{width:(Yt&&Yt.current?Yt.current.offsetWidth:0)+"px"}},{children:[Dt&&Dt.map((function(t,i){return(0,n.jsx)("div",v({className:"text-field-select-content-item",onMouseDown:le(t),"data-val":JSON.stringify(t)},{children:rt?rt(t):(0,n.jsx)(f.default,{children:e(t)})}),i)})),0===Dt.length&&st,Ht&&(0,n.jsx)(x.default,{})]}))}),[Yt,_t,Dt,rt,lt,mt,Ht,jt,st]),xe=(0,o.useMemo)((function(){return(0,n.jsx)(b.default,v({open:_t,title:fe,onClose:ae,arrow:!1,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,placement:"bottom-start",classes:{popper:(t="paraui-text-field-select paraui-scrollbar-small",d&&(t+=" paraui-text-field-select-"+d),ot&&(t+=" "+ot),Dt.length>0&&(t+=" paraui-text-field-select-data"),t)}},{children:pe}));var t}),[kt,Et,W,It,Nt,ce,ue,j,k,C,z,T,_,yt,ft,nt,mt,Yt,_t,ot,d,Q,Dt,et,wt,st]),be=(0,o.useMemo)((function(){var t,e=Boolean(I||q||C);if("outside"===j&&e){return(0,n.jsx)(r.default,v({label:C,required:I,labelSign:q},N,{className:(t="text-field-label",N&&N.className&&(t+=" "+N.className),t)}))}return null}),[j,C,q,I,N]);return(0,n.jsxs)("div",v({className:(Jt="paraui-text-field",Jt+=" text-field",d&&!T&&(Jt+=" text-field-"+d),i&&(Jt+=" "+i),B&&(Jt+=" text-field-error"),Et&&(Jt+=" text-field-focus"),z&&(Jt+=" text-field-disabled"),T&&(Jt+=" text-field-multiline"),w(t.limitLength)&&(Jt+=" text-field-limit-length"),w(t.limitLength)&&Nt&&Nt.toString().length>Number(t.limitLength)&&(Jt+=" text-field-limit"),ut&&(Jt+=" text-field-resize"),re()&&(Jt+=" text-field-value"),et&&(Jt+=" text-field-allow-clear"),Jt),style:l},{children:[be,(0,n.jsxs)("div",v({className:"text-field-content"},{children:[D&&(0,n.jsx)("div",v({className:"text-field-content-before",onClick:function(t){gt&>(t)}},{children:D})),nt?xe:pe,K&&(0,n.jsx)("div",v({className:"text-field-content-after",onClick:function(t){vt&&vt(t)}},{children:K}))]})),(0,n.jsx)(h.default,{className:"text-field-error-text",error:B,helperText:R})]}))}},7371:function(t,e,i){"use strict";var n=i(5893),o=i(670),r=i(5744),a=i.n(r),l=(i(2310),function(){return l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},l.apply(this,arguments)}),c=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i};e.default=function(t){var e,i=t.placement,r=void 0===i?"top-start":i,u=t.className,s=t.arrow,d=void 0===s||s,p=t.PopperProps,f=t.boundariesElement,x=void 0===f?"scrollParent":f,b=c(t,["placement","className","arrow","PopperProps","boundariesElement"]),h=l(l({},t.classes),{popper:a()("paraui-tooltip",u,null===(e=t.classes)||void 0===e?void 0:e.popper,{"paraui-tooltip-left-right":(null==r?void 0:r.includes("left"))||(null==r?void 0:r.includes("right")),"paraui-tooltip-top-bottom":(null==r?void 0:r.includes("top"))||(null==r?void 0:r.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,l({},b,{enterTouchDelay:0,arrow:d,placement:r,classes:h,PopperProps:l(l({},p),{modifiers:{preventOverflow:{boundariesElement:x}}})}))}},670:function(t){"use strict";t.exports=e},5395:function(t){"use strict";t.exports=u},6788:function(t){"use strict";t.exports=l},2396:function(t){"use strict";t.exports=d},3835:function(t){"use strict";t.exports=s},8076:function(t){"use strict";t.exports=n},2788:function(t){"use strict";t.exports=c},5428:function(t){"use strict";t.exports=r},9979:function(t){"use strict";t.exports=a},6839:function(t){"use strict";t.exports=p},8543:function(t){"use strict";t.exports=o},5744:function(t){"use strict";t.exports=i},8156:function(e){"use strict";e.exports=t}},x={};function b(t){var e=x[t];if(void 0!==e)return e.exports;var i=x[t]={id:t,exports:{}};return f[t](i,i.exports,b),i.exports}b.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return b.d(e,{a:e}),e},b.d=function(t,e){for(var i in e)b.o(e,i)&&!b.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},b.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},b.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},b.nc=void 0;var h={};return function(){"use strict";b.r(h),b.d(h,{Search:function(){return l}});var t=b(5893),e=b(8156),i=b(7320),n=b(7896),o=b(6839),r=b.n(o),a=(b(9750),function(){return a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},a.apply(this,arguments)}),l=function(o){var l=o.className,c=void 0===l?"":l,u=o.style,s=o.size,d=void 0===s?"large":s,p=o.btnType,f=void 0===p?"outside":p,x=o.showBtn,b=void 0===x||x,h=o.btnIcon,g=o.btnText,v=void 0===g?"":g,m=o.placeholder,w=void 0===m?"":m,y=(o.defaultValue,o.value),j=o.rightIcon,S=o.showRightIcon,k=void 0===S||S,O=o.allowClear,C=void 0===O||O,N=o.rightIconExist,P=void 0!==N&&N,z=o.onChange,E=o.onBlur,T=o.onFocus,M=o.onKeydown,I=o.onKeyUp,q=o.onClickBtn,F=o.onClickRightIcon,_=o.onEnter,L=o.onClear,B=(0,e.useState)(""),H=B[0],R=B[1];(0,e.useEffect)((function(){void 0!==o.defaultValue&&R(o.defaultValue)}),[]),(0,e.useEffect)((function(){void 0!==y&&R(y)}),[y]);var A,D=function(){return h||(0,t.jsx)(r(),{})},U=function(){q&&q(H)};return(0,t.jsxs)("div",a({className:(A="paraui-search",c&&(A+=" "+c),d&&(A+=" search-"+d),f&&(A+=" search-"+f),b&&(A+=" search-showbtn"),v&&(A+=" search-btntext"),H&&(A+=" paraui-search-value"),P&&(A+=" paraui-search-right-icon-exist"),A),style:u},{children:[(0,t.jsx)(i.default,{size:d,placeholder:w,value:void 0===o.value?H:y,rightIcon:k?j||void 0:"",onClickIcon:function(){var t=H;k&&!j&&void 0===o.value&&(t="",R("")),F&&F(t)},onChange:function(t){var e=t.target.value;void 0===o.value&&R(e),z&&z(e,t)},onBlur:E,onFocus:T,onKeydown:M,onKeyUp:I,onEnter:_,addonAfter:function(){if(b&&"inside"===f)return(0,t.jsx)(n.default,a({size:d,startIcon:D(),variant:"outlined",onClick:U},{children:v}))}(),allowClear:C,onClear:L}),b&&"outside"===f&&(0,t.jsx)(n.default,a({size:d,startIcon:D(),variant:"contained",onClick:U},{children:v}))]}))};h.default=l}(),h}()}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2022/7/20 11:22 AM
|
|
4
|
+
* @description 选择器
|
|
5
|
+
*/
|
|
6
|
+
import { FunctionComponent } from 'react';
|
|
7
|
+
import { SelectorFieldConfigProps, SelectorProps } from './interface';
|
|
8
|
+
import './index.scss';
|
|
9
|
+
export declare const handFieldConfig: (fieldConfig?: SelectorFieldConfigProps, rowKey?: string) => SelectorFieldConfigProps;
|
|
10
|
+
declare const Selector: FunctionComponent<SelectorProps>;
|
|
11
|
+
export default Selector;
|