@para-ui/core 2.0.17 → 2.0.21
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.js +3 -4
- package/AutoTips/index.js +3 -4
- package/Breadcrumbs/index.js +3 -4
- package/Button/index.d.ts +4 -2
- package/Button/index.js +3 -5
- package/ButtonGroup/index.js +3 -5
- package/Cascader/index.js +3 -4
- package/Checkbox/index.js +3 -4
- package/CheckboxGroup/index.js +3 -4
- package/ColorPicker/index.js +1 -1
- package/ComboSelect/index.js +3 -5
- package/Container/index.js +3 -4
- package/DatePicker/index.js +3 -3
- package/Desktop/index.js +3 -5
- package/Drawer/index.js +3 -4
- package/Form/index.js +3 -5
- package/FormItem/index.js +3 -5
- package/FunctionModal/index.js +3 -5
- package/GlobalContext/index.d.ts +6 -0
- package/GlobalContext/index.js +1 -0
- package/Help/index.js +3 -4
- package/IconList/index.js +3 -4
- package/InputLang/index.js +3 -5
- package/InputNumber/index.js +3 -5
- package/Loading/index.js +3 -4
- package/Menu/index.js +3 -5
- package/Message/index.d.ts +13 -0
- package/Message/index.js +3 -4
- package/Modal/index.js +3 -5
- package/MultiBox/index.js +3 -5
- package/Notification/index.d.ts +52 -0
- package/Notification/index.js +15 -0
- package/PageHeader/index.js +3 -5
- package/Pagination/index.js +3 -5
- package/ParauiProvider/index.d.ts +1 -0
- package/ParauiProvider/index.js +3 -4
- package/PopConfirm/index.js +3 -5
- package/Popover/index.js +2 -2
- package/Popper/index.js +2 -2
- package/Radio/index.js +3 -4
- package/RadioGroup/index.js +3 -4
- package/Search/index.js +3 -5
- package/Select/index.d.ts +12 -4
- package/Select/index.js +3 -5
- package/SingleBox/index.js +3 -5
- package/Slider/index.js +3 -4
- package/Split/index.js +3 -4
- package/Stepper/index.js +3 -4
- package/Switch/index.js +3 -4
- package/Table/index.js +3 -5
- package/Tabs/index.js +3 -4
- package/Tag/TagGroup.d.ts +57 -0
- package/Tag/index.d.ts +34 -0
- package/Tag/index.js +14 -0
- package/TextField/index.js +3 -5
- package/TimePicker/index.js +3 -3
- package/Timeline/index.js +3 -4
- package/ToggleButton/index.js +3 -5
- package/Tooltip/index.js +3 -4
- package/Transfer/index.js +3 -5
- package/Tree/index.js +3 -5
- package/Upload/index.js +3 -5
- package/cdn/Accordion/index.js +25 -0
- package/cdn/AutoBox/index.js +16 -0
- package/cdn/AutoTips/index.js +40 -0
- package/cdn/Breadcrumbs/index.js +16 -0
- package/cdn/Button/index.js +40 -0
- package/cdn/ButtonGroup/index.js +40 -0
- package/cdn/Cascader/index.js +14 -0
- package/cdn/Checkbox/index.js +1 -0
- package/cdn/CheckboxGroup/index.js +1 -0
- package/cdn/ColorPicker/index.js +1 -0
- package/cdn/ComboSelect/index.js +61 -0
- package/cdn/Container/index.js +1 -0
- package/cdn/DatePicker/index.js +53 -0
- package/cdn/Desktop/index.js +24 -0
- package/cdn/Drawer/index.js +6 -0
- package/cdn/Form/index.js +45 -0
- package/cdn/FormItem/index.js +45 -0
- package/cdn/FunctionModal/index.js +40 -0
- package/cdn/GlobalContext/index.js +1 -0
- package/cdn/Help/index.js +40 -0
- package/cdn/IconList/index.js +16 -0
- package/cdn/InputLang/index.js +40 -0
- package/cdn/InputNumber/index.js +40 -0
- package/cdn/Loading/index.js +1 -0
- package/cdn/Menu/index.js +16 -0
- package/cdn/Message/index.js +1 -0
- package/cdn/Modal/index.js +40 -0
- package/cdn/MultiBox/index.js +40 -0
- package/cdn/Notification/index.js +14 -0
- package/cdn/PageHeader/index.js +40 -0
- package/cdn/Pagination/index.js +45 -0
- package/cdn/ParauiProvider/index.js +9 -0
- package/cdn/PopConfirm/index.js +40 -0
- package/cdn/Popover/index.js +17 -0
- package/cdn/Popper/index.js +26 -0
- package/cdn/Radio/index.js +1 -0
- package/cdn/RadioGroup/index.js +1 -0
- package/cdn/Search/index.js +40 -0
- package/cdn/Select/index.js +40 -0
- package/cdn/SingleBox/index.js +40 -0
- package/cdn/Slider/index.js +14 -0
- package/cdn/Split/index.js +1 -0
- package/cdn/Stepper/index.js +24 -0
- package/cdn/Styles/fonts/SourceHanSansCN-Light.css +8 -0
- package/cdn/Styles/fonts/SourceHanSansCN-Light.otf +0 -0
- package/cdn/Styles/fonts/SourceHanSansCN-Medium.css +8 -0
- package/cdn/Styles/fonts/SourceHanSansCN-Medium.otf +0 -0
- package/cdn/Styles/fonts/SourceHanSansCN-Regular.css +8 -0
- package/cdn/Styles/fonts/SourceHanSansCN-Regular.otf +0 -0
- package/cdn/Styles/index.scss +63 -0
- package/cdn/Styles/index.ts +1 -0
- package/cdn/Styles/normalize.scss +348 -0
- package/cdn/Styles/theme.scss +57 -0
- package/cdn/Switch/index.js +6 -0
- package/cdn/Table/index.js +45 -0
- package/cdn/Tabs/index.js +48 -0
- package/cdn/Tag/index.js +1 -0
- package/cdn/TextField/index.js +40 -0
- package/cdn/TimePicker/index.js +53 -0
- package/cdn/Timeline/index.js +16 -0
- package/cdn/ToggleButton/index.js +40 -0
- package/cdn/Tooltip/index.js +40 -0
- package/cdn/Transfer/index.js +40 -0
- package/cdn/Tree/index.js +53 -0
- package/cdn/Upload/index.js +45 -0
- package/index.d.ts +3 -0
- package/index.js +3 -3
- package/package.json +7 -3
- package/style.css +8 -4
- package/AutoBox/index.css +0 -2
- package/AutoTips/index.css +0 -4
- package/Breadcrumbs/index.css +0 -2
- package/Button/index.css +0 -4
- package/ButtonGroup/index.css +0 -6
- package/Cascader/index.css +0 -2
- package/Checkbox/index.css +0 -2
- package/CheckboxGroup/index.css +0 -4
- package/ColorPicker/index.css +0 -2
- package/ComboSelect/index.css +0 -28
- package/Container/index.css +0 -2
- package/DatePicker/index.css +0 -6
- package/Desktop/index.css +0 -2
- package/Drawer/index.css +0 -2
- package/Form/index.css +0 -26
- package/FormItem/index.css +0 -26
- package/FunctionModal/index.css +0 -12
- package/Help/index.css +0 -4
- package/IconList/index.css +0 -2
- package/InputLang/index.css +0 -12
- package/InputNumber/index.css +0 -10
- package/Loading/index.css +0 -2
- package/Menu/index.css +0 -2
- package/Message/index.css +0 -2
- package/Modal/index.css +0 -10
- package/MultiBox/index.css +0 -10
- package/PageHeader/index.css +0 -6
- package/Pagination/index.css +0 -12
- package/ParauiProvider/index.css +0 -2
- package/PopConfirm/index.css +0 -6
- package/Radio/index.css +0 -2
- package/RadioGroup/index.css +0 -4
- package/Search/index.css +0 -12
- package/Select/index.css +0 -6
- package/SingleBox/index.css +0 -10
- package/Slider/index.css +0 -2
- package/Split/index.css +0 -2
- package/Stepper/index.css +0 -2
- package/Switch/index.css +0 -2
- package/Table/index.css +0 -20
- package/Tabs/index.css +0 -4
- package/TextField/index.css +0 -8
- package/TimePicker/index.css +0 -6
- package/Timeline/index.css +0 -2
- package/ToggleButton/index.css +0 -6
- package/Tooltip/index.css +0 -2
- package/Transfer/index.css +0 -16
- package/Tree/index.css +0 -8
- package/Upload/index.css +0 -12
package/Select/index.d.ts
CHANGED
|
@@ -8,12 +8,18 @@ import './index.scss';
|
|
|
8
8
|
export interface SelectProps {
|
|
9
9
|
/** 样式class */
|
|
10
10
|
className?: string;
|
|
11
|
+
/** 是否显示下拉 */
|
|
12
|
+
showSelect?: boolean;
|
|
13
|
+
/** 可输入回车 */
|
|
14
|
+
input?: boolean;
|
|
11
15
|
/** 大小 */
|
|
12
16
|
size?: 'small' | 'medium' | 'large';
|
|
13
17
|
/** 标题模式 outside外,inside内 */
|
|
14
18
|
labelMode?: 'outside' | 'inside';
|
|
15
19
|
/** 标题 */
|
|
16
20
|
label?: ReactNode;
|
|
21
|
+
/** 标题提示 */
|
|
22
|
+
labelSign?: ReactNode;
|
|
17
23
|
/** 提示语 */
|
|
18
24
|
placeholder?: string;
|
|
19
25
|
/** 搜索提示语 */
|
|
@@ -28,9 +34,7 @@ export interface SelectProps {
|
|
|
28
34
|
error?: boolean;
|
|
29
35
|
/** 错误文本 */
|
|
30
36
|
helperText?: ReactNode;
|
|
31
|
-
/**
|
|
32
|
-
labelSign?: ReactNode;
|
|
33
|
-
/** 下拉选项 */
|
|
37
|
+
/** 下拉选项 {label: ReactNode, value: any}*/
|
|
34
38
|
list: any[];
|
|
35
39
|
/** 显示名字段 */
|
|
36
40
|
showName?: string;
|
|
@@ -52,10 +56,14 @@ export interface SelectProps {
|
|
|
52
56
|
selectPopoverClassName?: string;
|
|
53
57
|
/** 更多className */
|
|
54
58
|
morePopoverClassName?: string;
|
|
59
|
+
/** 返回输入建议的方法,仅当你的输入建议数据 resolve 时,通过调用 callback(data:[]) 来返回它 */
|
|
60
|
+
fetchSuggestions?: (val: string, cb: (data: any[]) => void) => void;
|
|
55
61
|
/** 改变值 */
|
|
56
62
|
onChange?: (val: any, e: any) => void;
|
|
57
|
-
/**
|
|
63
|
+
/** 全局回车事件 */
|
|
58
64
|
onEnter?: (val: any) => void;
|
|
65
|
+
/** 搜索框输入框回车事件 */
|
|
66
|
+
onEnterInput?: (val: string) => void;
|
|
59
67
|
[name: string]: any;
|
|
60
68
|
}
|
|
61
69
|
export declare const Select: FunctionComponent<SelectProps>;
|
package/Select/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@material-ui/core"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/Down"),require("@para-ui/icons/Search"),require("para-lib"),require("react")):"function"==typeof define&&define.amd?define(["@material-ui/core","@para-ui/icons/Check","@para-ui/icons/Close","@para-ui/icons/Down","@para-ui/icons/Search","para-lib","react"],t):"object"==typeof exports?exports.ParaUI=t(require("@material-ui/core"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/Down"),require("@para-ui/icons/Search"),require("para-lib"),require("react")):e.ParaUI=t(e["@material-ui/core"],e["@para-ui/icons/Check"],e["@para-ui/icons/Close"],e["@para-ui/icons/Down"],e["@para-ui/icons/Search"],e["para-lib"],e.react)}(self,(function(e,t,o,r,n,i,s){return function(){"use strict";var l={6010:function(e,t,o){function r(e){var t,o,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=r(e[t]))&&(n&&(n+=" "),n+=o);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function n(){for(var e,t,o=0,n="";o<arguments.length;)(e=arguments[o++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}o.d(t,{Z:function(){return n}})},7418:function(e){
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@material-ui/core"),require("@para-ui/icons/Down"),require("@para-ui/icons/Search"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/LoadingF"),require("para-lib")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","@para-ui/icons/Down","@para-ui/icons/Search","@para-ui/icons/Check","@para-ui/icons/Close","@para-ui/icons/LoadingF","para-lib"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("@material-ui/core"),require("@para-ui/icons/Down"),require("@para-ui/icons/Search"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/LoadingF"),require("para-lib")):e.ParaUI=t(e.react,e["@material-ui/core"],e["@para-ui/icons/Down"],e["@para-ui/icons/Search"],e["@para-ui/icons/Check"],e["@para-ui/icons/Close"],e["@para-ui/icons/LoadingF"],e["para-lib"])}(self,(function(e,t,o,r,i,n,c,l){return function(){var s={6010:function(e,t,o){"use strict";function r(e){var t,o,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=r(e[t]))&&(i&&(i+=" "),i+=o);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function i(){for(var e,t,o=0,i="";o<arguments.length;)(e=arguments[o++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}o.d(t,{Z:function(){return i}})},2565:function(e,t,o){(t=o(3645)(!1)).push([e.id,".paraui-auto-tips{max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paraui-auto-tips>.auto-tips-content{display:inline;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n",""]),e.exports=t},5714:function(e,t,o){(t=o(3645)(!1)).push([e.id,"@keyframes rotateLoading{0%{transformOrigin:50% 50%}100%{transform:rotate(360deg)}}.paraui-loading{position:absolute;left:0;top:0;width:100%;height:100%}.paraui-loading .paraui-loading-mask{position:absolute;width:100%;height:100%;background-color:white;z-index:1}.paraui-loading .paraui-loading-box{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:2}.paraui-loading .paraui-loading-box>svg{transition:all .3s ease-in-out;animation:rotateLoading 1s infinite linear;font-size:20px}\n",""]),e.exports=t},7544:function(e,t,o){(t=o(3645)(!1)).push([e.id,".paraui-select{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;padding-bottom:20px;display:inline-block;vertical-align:top;width:100%}.paraui-select>.select-label{display:inline-block;margin-bottom:8px;color:rgba(46,55,67,0.701961)}.paraui-select>.select-label>.select-required{margin-left:2px;color:#eb6054}.paraui-select>.select-content{line-height:0;border:1px solid;border-radius:8px;border-color:rgba(171,176,185,0.4);padding-right:12px;position:relative;cursor:pointer}.paraui-select>.select-content:hover{border-color:#3666d6}.paraui-select>.select-content:hover>.select-svg>svg{color:#3666d6}.paraui-select>.select-content>.select-label-placeholder{width:100%;height:100%;padding:0 12px;color:rgba(46,55,67,0.4);display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:absolute;left:0;top:0;z-index:1}.paraui-select>.select-content>.select-label-placeholder>.select-required{margin-left:2px;color:#eb6054}.paraui-select>.select-content>.select-svg{position:absolute;right:12px;top:0;z-index:2}.paraui-select>.select-content>.select-svg>svg{font-size:20px;transition:all .3s;color:rgba(46,55,67,0.701961)}.paraui-select>.select-content>.radio-select-content{padding-left:12px;font-size:14px;line-height:16px}.paraui-select>.select-content>.radio-search-outside{position:absolute;top:0;left:0;width:100%;height:100%;padding:0 30px 0 10px;font-size:14px;cursor:pointer;color:#2e3743;border:0;border-radius:8px;background:transparent}.paraui-select>.select-content>.check-select-content{padding-left:12px;height:100%;overflow:hidden}.paraui-select>.select-content>.check-select-content>.check-select-content-item{display:inline-block;background-color:rgba(171,176,185,0.2);border-radius:4px;padding:0 12px 0 12px;color:#2e3743;margin-right:8px;vertical-align:top;max-width:100%;white-space:nowrap}.paraui-select>.select-content>.check-select-content>.check-select-content-item.check-select-content-item-more{cursor:pointer;color:#2e3743}.paraui-select>.select-content>.check-select-content>.check-select-content-item.check-select-content-item-more>span{max-width:none}.paraui-select>.select-content>.check-select-content>.check-select-content-item>span{display:inline-block;height:100%;vertical-align:top;max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis}.paraui-select>.select-content>.check-select-content>.check-select-content-item>svg{cursor:pointer;margin-left:8px;color:#2e3743;font-size:16px;position:relative}.paraui-select>.select-content>.check-select-content>.check-select-content-item>svg:hover{color:#3666d6}.paraui-select>.select-content>.check-select-content>.check-select-content-item.check-select-content-item-noclose>span{max-width:none}.paraui-select>.select-content>.check-select-content>.check-search-outside{width:10px;max-width:100% !important;display:none;border:0;color:#2e3743;font-size:14px;cursor:pointer}.paraui-select>.select-error-text{margin:8px 0 0 0;padding-left:12px;line-height:1}.paraui-select.select-disabled>.select-content{background-color:rgba(171,176,185,0.121569);cursor:not-allowed}.paraui-select.select-disabled>.select-content:hover{border-color:rgba(171,176,185,0.4)}.paraui-select.select-disabled>.select-content:hover>.select-svg>svg{color:rgba(46,55,67,0.701961)}.paraui-select.select-disabled>.select-content>.check-select-content>.check-select-content-item>span{max-width:100%}.paraui-select.select-error>.select-content{border-color:#eb6054 !important}.paraui-select.select-error>.select-error-text{color:#eb6054}.paraui-select.select-open>.select-content{border-color:#3666d6}.paraui-select.select-open>.select-content>.select-svg>svg{transform:rotate(180deg);color:#3666d6}.paraui-select.select-open>.select-content>.check-select-content>.check-search-outside{display:inline-block}.paraui-select.select-small>.select-content{height:28px}.paraui-select.select-small>.select-content>.select-label-placeholder{line-height:26px}.paraui-select.select-small>.select-content>.select-svg{top:3px}.paraui-select.select-small>.select-content>.radio-select-content{padding-bottom:5px;padding-top:5px}.paraui-select.select-small>.select-content>.check-select-content{padding-bottom:3px}.paraui-select.select-small>.select-content>.check-select-content>.check-select-content-item{margin-top:3px;height:20px;line-height:20px}.paraui-select.select-small>.select-content>.check-select-content>.check-select-content-item>svg{top:2px}.paraui-select.select-small>.select-content>.check-select-content>.check-search-outside{margin-top:3px;height:20px}.paraui-select.select-medium>.select-content{height:32px}.paraui-select.select-medium>.select-content>.select-label-placeholder{line-height:30px}.paraui-select.select-medium>.select-content>.select-svg{top:6px}.paraui-select.select-medium>.select-content>.radio-select-content{padding-bottom:7px;padding-top:7px}.paraui-select.select-medium>.select-content>.check-select-content{padding-bottom:4px}.paraui-select.select-medium>.select-content>.check-select-content>.check-select-content-item{margin-top:4px;height:22px;line-height:22px}.paraui-select.select-medium>.select-content>.check-select-content>.check-select-content-item>svg{top:3px}.paraui-select.select-medium>.select-content>.check-select-content>.check-search-outside{margin-top:4px;height:22px}.paraui-select.select-large>.select-content{height:36px}.paraui-select.select-large>.select-content>.select-label-placeholder{line-height:34px}.paraui-select.select-large>.select-content>.select-svg{top:8px}.paraui-select.select-large>.select-content>.radio-select-content{padding-bottom:9px;padding-top:9px}.paraui-select.select-large>.select-content>.check-select-content{padding-bottom:5px}.paraui-select.select-large>.select-content>.check-select-content>.check-select-content-item{margin-top:5px;height:24px;line-height:24px}.paraui-select.select-large>.select-content>.check-select-content>.check-select-content-item>svg{top:3px}.paraui-select.select-large>.select-content>.check-select-content>.check-search-outside{margin-top:5px;height:24px}.paraui-select.select-over-line.select-small>.select-content{height:inherit;min-height:28px}.paraui-select.select-over-line.select-medium>.select-content{height:inherit;min-height:32px}.paraui-select.select-over-line.select-large>.select-content{height:inherit;min-height:36px}.paraui-select.select-show-select>.select-content{padding-right:40px}.paraui-select-popover>div{max-width:none;padding:0;background-color:white;box-shadow:0px 2px 8px 0px rgba(171,176,185,0.4);border-radius:8px}.paraui-select-popover>div>span{color:white}.paraui-select-popover>div .select-popover-content>.select-popover-search{display:flex;align-items:center;padding:0 12px;border-bottom:1px solid;border-color:rgba(171,176,185,0.2)}.paraui-select-popover>div .select-popover-content>.select-popover-search>input{border:0;outline:none;font-size:14px;color:#2e3743;width:100%}.paraui-select-popover>div .select-popover-content>.select-popover-search>input::placeholder{font-size:14px;opacity:1;color:rgba(46,55,67,0.4)}.paraui-select-popover>div .select-popover-content>.select-popover-search>svg{color:rgba(46,55,67,0.4);font-size:20px;cursor:pointer}.paraui-select-popover>div .select-popover-content>.select-popover-list{max-height:300px;overflow:auto}.paraui-select-popover>div .select-popover-content>.select-popover-list.select-popover-list-loading{height:100px}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item{display:flex;cursor:pointer;padding:0 12px;align-items:center}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item>.select-popover-list-item-label{width:calc(100% - 25px);color:#2e3743;font-size:14px}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item>.select-popover-list-item-svg{line-height:0;display:none}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item>.select-popover-list-item-svg>svg{font-size:20px;color:#3666d6}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-select>.select-popover-list-item-label{color:#3666d6}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-select>.select-popover-list-item-svg{display:inline-block}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-hover{background-color:rgba(171,176,185,0.121569)}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-hover>.select-popover-list-item-label{color:#3666d6}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-keydown{background-color:rgba(171,176,185,0.121569)}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-keydown>.select-popover-list-item-label{color:#3666d6}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-disabled{background-color:rgba(171,176,185,0.121569) !important;cursor:not-allowed}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-disabled>.select-popover-list-item-label{color:#2e3743 !important}.paraui-select-popover>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-group-label{display:inline-block;width:100%;padding:0 12px;color:rgba(46,55,67,0.4);font-size:14px}.paraui-select-popover>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-item{padding-left:20px}.paraui-select-popover>div .select-popover-content>.select-popover-list>.select-nodata{text-align:center;font-size:14px;color:#2e3743;padding:10px}.paraui-select-popover.paraui-select-popover-radio>div .select-popover-content>.select-popover-list .select-popover-list-item>.select-popover-list-item-label{width:100%}.paraui-select-popover.paraui-select-popover-small>div .select-popover-content>.select-popover-search{height:28px}.paraui-select-popover.paraui-select-popover-small>div .select-popover-content>.select-popover-list .select-popover-list-item{line-height:28px}.paraui-select-popover.paraui-select-popover-small>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-group-label{line-height:28px}.paraui-select-popover.paraui-select-popover-medium>div .select-popover-content>.select-popover-search{height:32px}.paraui-select-popover.paraui-select-popover-medium>div .select-popover-content>.select-popover-list .select-popover-list-item{line-height:32px}.paraui-select-popover.paraui-select-popover-medium>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-group-label{line-height:32px}.paraui-select-popover.paraui-select-popover-large>div .select-popover-content>.select-popover-search{height:36px}.paraui-select-popover.paraui-select-popover-large>div .select-popover-content>.select-popover-list .select-popover-list-item{line-height:36px}.paraui-select-popover.paraui-select-popover-large>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-group-label{line-height:36px}.paraui-select-more-popover>div:nth-of-type(3),.paraui-select-more-popover>div:nth-of-type(2){margin-left:20px}.paraui-select-more-popover .select-more{width:300px}.paraui-select-more-popover .select-more>.select-more-title{font-size:14px;padding:0 12px;color:rgba(46,55,67,0.701961)}.paraui-select-more-popover .select-more>.select-more-content{max-height:300px;overflow:auto}.paraui-select-more-popover .select-more>.select-more-content>.select-more-content-item{padding:0 12px;display:flex;justify-content:space-around;align-items:center}.paraui-select-more-popover .select-more>.select-more-content>.select-more-content-item>span{width:calc(100% - 25px);display:inline-block;font-size:14px}.paraui-select-more-popover .select-more>.select-more-content>.select-more-content-item>svg{font-size:20px;position:relative;cursor:pointer;color:#2e3743}.paraui-select-more-popover .select-more>.select-more-content>.select-more-content-item>svg:hover{color:#3666d6}.paraui-select-more-popover.paraui-select-more-popover-small .select-more>.select-more-title{line-height:28px}.paraui-select-more-popover.paraui-select-more-popover-small .select-more>.select-more-content>.select-more-content-item{line-height:28px}.paraui-select-more-popover.paraui-select-more-popover-medium .select-more>.select-more-title{line-height:32px}.paraui-select-more-popover.paraui-select-more-popover-medium .select-more>.select-more-content>.select-more-content-item{line-height:32px}.paraui-select-more-popover.paraui-select-more-popover-large .select-more>.select-more-title{line-height:36px}.paraui-select-more-popover.paraui-select-more-popover-large .select-more>.select-more-content>.select-more-content-item{line-height:36px}\n",""]),e.exports=t},9929:function(e,t,o){(t=o(3645)(!1)).push([e.id,".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}\n",""]),e.exports=t},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o=function(e,t){var o=e[1]||"",r=e[3];if(!r)return o;if(t&&"function"==typeof btoa){var i=(c=r,l=btoa(unescape(encodeURIComponent(JSON.stringify(c)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(s," */")),n=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[o].concat(n).concat([i]).join("\n")}var c,l,s;return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(o,"}"):o})).join("")},t.i=function(e,o,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var n=0;n<this.length;n++){var c=this[n][0];null!=c&&(i[c]=!0)}for(var l=0;l<e.length;l++){var s=[].concat(e[l]);r&&i[s[0]]||(o&&(s[2]?s[2]="".concat(o," and ").concat(s[2]):s[2]=o),t.push(s))}},t}},7418:function(e){"use strict";
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
|
-
*/
|
|
7
|
-
var t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(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={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;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,i){for(var s,l,c=n(e),a=1;a<arguments.length;a++){for(var u in s=Object(arguments[a]))o.call(s,u)&&(c[u]=s[u]);if(t){l=t(s);for(var d=0;d<l.length;d++)r.call(s,l[d])&&(c[l[d]]=s[l[d]])}}return c}},5251:function(e,t,o){
|
|
6
|
+
*/var t=Object.getOwnPropertySymbols,o=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={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;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,n){for(var c,l,s=i(e),a=1;a<arguments.length;a++){for(var p in c=Object(arguments[a]))o.call(c,p)&&(s[p]=c[p]);if(t){l=t(c);for(var u=0;u<l.length;u++)r.call(c,l[u])&&(s[l[u]]=c[l[u]])}}return s}},5251:function(e,t,o){"use strict";
|
|
8
7
|
/** @license React v17.0.2
|
|
9
8
|
* react-jsx-runtime.production.min.js
|
|
10
9
|
*
|
|
@@ -12,5 +11,4 @@ var t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
12
11
|
*
|
|
13
12
|
* This source code is licensed under the MIT license found in the
|
|
14
13
|
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/
|
|
16
|
-
o(7418);var r=o(9297),n=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;n=i("react.element"),t.Fragment=i("react.fragment")}var s=r.__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 a(e,t,o){var r,i={},a=null,u=null;for(r in void 0!==o&&(a=""+o),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(u=t.ref),t)l.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:n,type:e,key:a,ref:u,props:i,_owner:s.current}}t.jsx=a,t.jsxs=a},5893:function(e,t,o){e.exports=o(5251)},7839:function(e,t,o){var r=o(5893),n=o(9297),i=o(7371),s=function(){return s=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)};t.default=function(e){var t=e.children,o=e.placement,l=void 0===o?"bottom-start":o,c=e.tips,a=void 0===c?"":c,u=e.className,d=void 0===u?"":u,p=(0,n.useRef)(),v=(0,n.useState)(""),f=v[0],m=v[1];(0,n.useEffect)((function(){m(a)}),[a]);var h;return(0,r.jsx)("div",s({ref:p,className:(h="paraui-auto-tips",d&&(h+=" "+d),h),onMouseOver:function(e){p.current&&p.current.scrollWidth>p.current.offsetWidth?m(a||p.current.innerText):m("")}},{children:(0,r.jsx)(i.default,s({title:f,placement:l},{children:(0,r.jsx)("div",s({className:"auto-tips-content"},{children:t}),void 0)}),void 0)}),void 0)}},7371:function(e,t,o){var r=o(5893),n=o(1731),i=o(6010),s=function(){return s=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)};t.default=function(e){var t,o=e.placement,l=void 0===o?"bottom":o,c=s(s({},e.classes),{popper:(0,i.Z)("paraui-tooltip",null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==l?void 0:l.includes("left"))||(null==l?void 0:l.includes("right")),"paraui-tooltip-top-bottom":(null==l?void 0:l.includes("top"))||(null==l?void 0:l.includes("bottom"))})});return(0,r.jsx)(n.Tooltip,s({},e,{classes:c}),void 0)}},1731:function(t){t.exports=e},6110:function(e){e.exports=t},19:function(e){e.exports=o},6028:function(e){e.exports=r},4115:function(e){e.exports=n},3475:function(e){e.exports=i},9297:function(e){e.exports=s}},c={};function a(e){var t=c[e];if(void 0!==t)return t.exports;var o=c[e]={exports:{}};return l[e](o,o.exports,a),o.exports}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 o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},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})};var u={};return function(){a.r(u),a.d(u,{Select:function(){return y}});var e=a(5893),t=a(9297),o=a(1731),r=a(6028),n=a.n(r),i=a(4115),s=a.n(i),l=a(6110),c=a.n(l),d=a(19),p=a.n(d),v=a(7839),f=a(3475),m=function(){return m=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},m.apply(this,arguments)},h=function(e,t,o){if(o||2===arguments.length)for(var r,n=0,i=t.length;n<i;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))},y=function(r){var i=r.className,l=r.size,a=void 0===l?"large":l,u=r.labelMode,d=void 0===u?"outside":u,y=r.placeholder,x=void 0===y?"":y,g=r.searchPlaceholder,j=void 0===g?"请输入搜索名":g,b=r.label,w=void 0===b?"":b,S=r.disabled,N=void 0!==S&&S,O=r.multiple,k=void 0!==O&&O,C=r.required,E=void 0!==C&&C,q=r.labelSign,T=r.error,L=void 0!==T&&T,P=r.helperText,M=void 0===P?"":P,_=r.list,D=r.showName,F=void 0===D?"label":D,I=r.showValue,z=void 0===I?"value":I,R=r.childrenName,U=void 0===R?"children":R,H=r.value,A=r.onChange,V=r.overLine,W=void 0!==V&&V,B=r.search,K=void 0!==B&&B,Z=r.searchModel,$=void 0===Z?"inside":Z,Y=r.selectPopoverClassName,G=r.morePopoverClassName,J=r.onEnter,Q=(0,t.useRef)(null),X=(0,t.useState)("select-"+(0,f.UUID)())[0],ee=(0,t.useState)("select-popover-"+(0,f.UUID)())[0],te=(0,t.useState)(!1),oe=te[0],re=te[1],ne=(0,t.useState)(!1),ie=ne[0],se=ne[1],le=(0,t.useState)([]),ce=le[0],ae=le[1],ue=(0,t.useState)([]),de=ue[0],pe=ue[1],ve=(0,t.useState)({}),fe=ve[0],me=ve[1],he=(0,t.useState)(null),ye=he[0],xe=he[1],ge=(0,t.useState)({})[0],je=(0,t.useState)(!1),be=je[0],we=je[1],Se=(0,t.useState)(""),Ne=Se[0],Oe=Se[1],ke=(0,t.useState)(!1),Ce=ke[0],Ee=ke[1],qe=(0,t.useRef)(null);(0,t.useEffect)((function(){void 0!==r.defaultValue&&(r.multiple?ae((0,f.DeepClone)(r.defaultValue||[])):ae(""===r.defaultValue?[]:[r.defaultValue]))}),[]),(0,t.useEffect)((function(){void 0!==H&&ae(k?(0,f.DeepClone)(H||[]):""===H?[]:[H])}),[H,k]),(0,t.useEffect)((function(){if(K&&"outside"===$)return Ee(!!k);Ee(W)}),[W,K,$,k]),(0,t.useEffect)((function(){for(var e={},t=0,o=_.length;t<o;t++){var r=_[t];if(r[U]&&r[U].length>0)for(var n=r[U],i=0,s=n.length;i<s;i++){var l=n[i];e[l[z]]=l}else e[r[z]]=r}me(e)}),[_]),(0,t.useEffect)((function(){k&&(Ce||xe(ce.length))}),[Ce,k,ce]),(0,t.useEffect)((function(){return Ce?xe(ce.length):(setTimeout((function(){De(ce.length)})),window.addEventListener("resize",Fe)),function(){window.removeEventListener("resize",Fe)}}),[ce,Ce]),(0,t.useEffect)((function(){ce&&ce.length>0?se(!0):(se(!1),K&&"outside"===$&&se(""!==Ne))}),[K,Ne,$,ce]),(0,t.useEffect)((function(){clearTimeout(ge.searchTimer),K&&""!==Ne.trim()?ge.searchTimer=setTimeout((function(){for(var e=[],t=(0,f.DeepClone)(_),o=0,r=t.length;o<r;o++){var n=t[o];if(n[U]&&n[U].length>0){for(var i=n[U],s=[],l=0,c=i.length;l<c;l++){var a=i[l];_e(a)&&s.push(a)}s.length>0&&(n[U]=s,e.push(n))}else{_e(n)&&e.push(n)}}pe(e)}),100):pe((0,f.DeepClone)(_))}),[K,Ne,_]),(0,t.useEffect)((function(){return oe?setTimeout((function(){Le(),window.addEventListener("click",Me),window.addEventListener("keydown",Ze)})):(Oe(""),window.removeEventListener("click",Me),window.removeEventListener("keydown",Ze)),function(){window.removeEventListener("click",Me),window.removeEventListener("keydown",Ze)}}),[oe]),(0,t.useEffect)((function(){Ne&&re(!0)}),[Ne]),(0,t.useEffect)((function(){k&&"outside"===$&&!0!==N&&We(Ne)}),[Ne,k,N,$]);var Te,Le=function(){var e=qe&&qe.current;e&&e.focus()},Pe=function(e,t){for(var o=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;e&&!o.call(e,t);)e=e.parentElement;return e},Me=function(e){Pe(e.target,"."+ee)||re(!1)},_e=function(e){var t=!0,o=e[F];return o&&"string"==typeof o&&-1===o.indexOf(Ne)&&(t=!1),t},De=function(e){if(null!==e&&0!==e){void 0===e&&(e=ce.length);var t=document.querySelector("."+X+" > .select-content > .check-select-content");if(t)if(t.scrollHeight>t.clientHeight){var o=Number(e)-1;xe(o),De(o)}else ce.length<=e&&Ue()}},Fe=function(){clearTimeout(ge.timer),ge.timer=setTimeout((function(){xe(ce.length),De()}),100)},Ie=function(){!0!==N&&re(!0)},ze=function(){re(!1)},Re=function(e){we(!0),re(!1),e.stopPropagation()},Ue=function(){we(!1)},He=function(e,t){return function(o){var n=e[z];if("object"!=typeof N||-1===N.indexOf(n))if(k){var i=ce.indexOf(n);-1!==i?ce.splice(i,1):ce.push(n),void 0===r.value&&ae(h([],ce,!0)),A&&A(h([],ce,!0),o),t&&J&&J(h([],ce,!0)),Le()}else void 0===r.value&&ae([n]),A&&A(n,o),t&&J&&J(n),ze(),Oe("")}},Ae=function(e,t){return function(o){var r;e||((r={})[z]=t,e=r),He(e)(o),o.stopPropagation()}},Ve=function(e){Oe(e.target.value)},We=function(e){var t=qe&&qe.current;if(!t)return null;var o=window.getComputedStyle(t),r=o.fontFamily,n=function(e,t,o){var r=document.createElement("span");r.id="referenceSpan";var n={};n.width=r.offsetWidth,n.height=r.offsetHeight,r.style.visibility="hidden",r.style.fontSize=e,r.style.fontFamily=t,r.style.display="inline-block";var i=document.getElementById("referenceSpan");return i&&document.body.removeChild(i),document.body.appendChild(r),void 0!==r.textContent?r.textContent=o:r.innerText=o,n.width=parseFloat(window.getComputedStyle(r).width)-n.width,n.height=parseFloat(window.getComputedStyle(r).height)-n.height,document.body.removeChild(r),n}(o.fontSize,r,e),i=n.width;i<10&&(i=10),t.style.width=i+"px"},Be=function(e){var t=e.selectDom,o=e.keyCode,r=e.currentKeydownDom,n=null,i="nextSibling",s=".select-popover-list > div",l=".select-popover-list-item";if(38===o&&(i="previousSibling",s=".select-popover-list > div:last-child",l=".select-popover-list-item:last-child"),r)if(n=r[i])-1!==n.className.indexOf("select-popover-list-group-label")&&((n=(n=r.parentNode)[i])||(n=t.querySelector(s)));else{var c=r.parentNode;c&&c.className&&-1!==c.className.indexOf("select-popover-list-group")&&(n=(n=r.parentNode)[i])||(n=t.querySelector(s))}else n=t.querySelector(s);if(n)if(-1!==n.className.indexOf("select-popover-list-group")){var a=n.querySelector(l);a&&(a.classList.add("select-popover-list-item-keydown"),Ke(a,t))}else n.classList.add("select-popover-list-item-keydown"),Ke(n,t)},Ke=function(e,t){clearTimeout(ge.scrollTimer);var o=t.clientHeight,r=e.offsetTop+e.clientHeight-o;ge.scroll=!0,t.scrollTop=r>0?r:0,ge.scrollTimer=setTimeout((function(){ge.scroll=!1}),100)},Ze=function(e){var t=document.querySelector("."+ee+" .select-popover-list");if(t){var o=t.querySelector(".select-popover-list-item-select"),r=t.querySelector(".select-popover-list-item-hover"),n=t.querySelector(".select-popover-list-item-keydown"),i=o;if(r&&(i=r),13===e.keyCode){var s=n||r;if(s){var l=s.dataset.val;He(fe[l],!0)({target:n})}else J&&J(H)}n&&(i=n,n.classList.remove("select-popover-list-item-keydown")),40===e.keyCode&&Be({selectDom:t,keyCode:e.keyCode,currentKeydownDom:i}),38===e.keyCode&&Be({selectDom:t,keyCode:e.keyCode,currentKeydownDom:i})}},$e=function(e){if(!ge.scroll){var t=Pe(e.target,".select-popover-list-item");if(t){t.classList.add("select-popover-list-item-hover");var o=document.querySelector("."+ee).querySelector(".select-popover-list-item-keydown");o&&o.classList.remove("select-popover-list-item-keydown")}}},Ye=function(e){var t=Pe(e.target,".select-popover-list-item");t&&t.classList.remove("select-popover-list-item-hover")},Ge=(0,t.useMemo)((function(){var t=Boolean(w||E||q);return(0,e.jsx)(e.Fragment,{children:"outside"===d&&t&&(0,e.jsxs)("label",m({className:"select-label"},{children:[w,E&&(0,e.jsx)("span",m({className:"select-required"},{children:"*"}),void 0),q&&(0,e.jsx)("span",{children:q},void 0)]}),void 0)},void 0)}),[d,w,q,E]),Je=(0,t.useMemo)((function(){return(0,e.jsx)(e.Fragment,{children:!ie&&(0,e.jsx)("span",m({className:"select-label-placeholder"},{children:"outside"===d?x:(0,e.jsxs)(e.Fragment,{children:[w||x,E&&(0,e.jsx)("span",m({className:"select-required"},{children:"*"}),void 0),q&&(0,e.jsx)("span",{children:q},void 0)]},void 0)}),void 0)},void 0)}),[ie,d,x,w,q,E]),Qe=(0,t.useMemo)((function(){return(0,e.jsx)(e.Fragment,{children:!k&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",m({className:"radio-select-content"},{children:function(){if(""!==Ne&&"outside"===$)return null;var t=fe[ce[0]]&&fe[ce[0]][F]||ce[0];return Ce?t:(0,e.jsx)(v.default,{children:t},void 0)}()}),void 0),K&&"outside"===$&&!0!==N&&(0,e.jsx)("input",{className:"radio-search-outside",value:Ne,onChange:Ve,ref:qe},void 0)]},void 0)},void 0)}),[k,ie,Ce,fe,ce,F,K,$,Ne,N]),Xe=(0,t.useMemo)((function(){var t=function(e){return fe[ce[e]]&&fe[ce[e]][F]||ce[e]};return(0,e.jsx)(e.Fragment,{children:k&&(0,e.jsxs)("div",m({className:"check-select-content"},{children:[ce&&ce.map((function(o,r){if(null!==ye&&ye<=r)return null;var n=!0;return(!0===N||"object"==typeof N&&-1!==N.indexOf(ce[r]))&&(n=!1),(0,e.jsxs)("div",m({className:n?"check-select-content-item":"check-select-content-item check-select-content-item-noclose"},{children:[(0,e.jsx)("span",{children:t(r)},void 0),n&&(0,e.jsx)(p(),{onClick:Ae(fe[ce[r]],ce[r])},void 0)]}),r)})),function(){if(null!==ye&&ce.length>ye)return(0,e.jsx)("div",m({className:"check-select-content-item check-select-content-item-more",onClick:Re},{children:(0,e.jsxs)("span",{children:["+",ce.length-ye]},void 0)}),void 0)}(),K&&"outside"===$&&!0!==N&&(0,e.jsx)("input",{className:"check-search-outside",value:Ne,onChange:Ve,ref:qe},void 0)]}),void 0)},void 0)}),[k,ie,ce,ye,fe,N,A,Ne,K,$]),et=(0,t.useMemo)((function(){return(0,e.jsxs)("div",m({className:"select-content",onClick:Ie,ref:Q},{children:[Je,(0,e.jsx)("span",m({className:"select-svg"},{children:(0,e.jsx)(n(),{},void 0)}),void 0),Qe,Xe]}),void 0)}),[Q,ie,d,x,w,q,E,Ce,fe,ce,F,k,ye,N,A,Ne,$]),tt=(0,t.useMemo)((function(){return(0,e.jsx)("div",m({className:"select-popover-list"},{children:de&&de.length>0?(0,e.jsx)(e.Fragment,{children:de.map((function(t,o){if(t[U]&&t[U].length>0){var r=t[U];return(0,e.jsxs)("div",m({className:"select-popover-list-group"},{children:[(0,e.jsx)("span",m({className:"select-popover-list-group-label"},{children:t[F]||t[z]}),void 0),r.map((function(t,o){var r=t[z],n="select-popover-list-item";return-1!==ce.indexOf(r)&&(n+=" select-popover-list-item-select"),"object"==typeof N&&-1!==N.indexOf(r)&&(n+=" select-popover-list-item-disabled"),(0,e.jsxs)("div",m({onClick:He(t),className:n,onMouseEnter:$e,onMouseLeave:Ye,"data-val":r},{children:[(0,e.jsx)("span",m({className:"select-popover-list-item-label"},{children:(0,e.jsx)(v.default,{children:t[F]||t[z]},void 0)}),void 0),k&&(0,e.jsx)("span",m({className:"select-popover-list-item-svg"},{children:(0,e.jsx)(c(),{},void 0)}),void 0)]}),o)}))]}),o)}var n=t[z],i="select-popover-list-item";return-1!==ce.indexOf(n)&&(i+=" select-popover-list-item-select"),"object"==typeof N&&-1!==N.indexOf(n)&&(i+=" select-popover-list-item-disabled"),(0,e.jsxs)("div",m({onClick:He(t),className:i,onMouseEnter:$e,onMouseLeave:Ye,"data-val":n},{children:[(0,e.jsx)("span",m({className:"select-popover-list-item-label"},{children:(0,e.jsx)(v.default,{children:t[F]||t[z]},void 0)}),void 0),k&&(0,e.jsx)("span",m({className:"select-popover-list-item-svg"},{children:(0,e.jsx)(c(),{},void 0)}),void 0)]}),o)}))},void 0):(0,e.jsx)("div",m({className:"select-nodata"},{children:"暂无选项"}),void 0)}),void 0)}),[de,F,z,ce,A,k]),ot=(0,t.useMemo)((function(){return(0,e.jsxs)("div",m({style:{width:(Q&&Q.current?Q.current.offsetWidth:0)+"px"},className:"select-popover-content "+ee},{children:[K&&"inside"===$&&(0,e.jsxs)("div",m({className:"select-popover-search"},{children:[(0,e.jsx)("input",{placeholder:j,value:Ne,onChange:Ve,ref:qe},void 0),(0,e.jsx)(s(),{},void 0)]}),void 0),tt]}),void 0)}),[oe,Q,de,U,z,F,ce,Ne,K,ee,$,k,j]),rt=(0,t.useMemo)((function(){var t,r=function(e){return fe[ce[e]]&&fe[ce[e]][F]||ce[e]};return(0,e.jsx)(o.Popover,m({open:be,anchorEl:Q&&Q.current,onClose:Ue,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},className:(t="paraui-select-more-popover",a&&(t+=" paraui-select-more-popover-"+a),G&&(t+=" "+G),t)},{children:(0,e.jsxs)("div",m({className:"select-more"},{children:[(0,e.jsxs)("div",m({className:"select-more-title"},{children:[(0,e.jsx)("span",{children:"已选中"},void 0),(0,e.jsxs)("span",{children:["(",ce.length-Number(ye),")"]},void 0)]}),void 0),(0,e.jsx)("div",m({className:"select-more-content"},{children:ce&&ce.map((function(t,o){if(null!==ye&&ye>o)return null;var n=!0;return(!0===N||"object"==typeof N&&-1!==N.indexOf(ce[o]))&&(n=!1),(0,e.jsxs)("div",m({className:"select-more-content-item"},{children:[(0,e.jsx)("span",{children:(0,e.jsx)(v.default,{children:r(o)},void 0)},void 0),n&&(0,e.jsx)(p(),{onClick:Ae(fe[ce[o]],ce[o])},void 0)]}),o)}))}),void 0)]}),void 0)}),void 0)}),[be,ce,ye,fe,N,F,G,a]);return(0,e.jsxs)("div",m({className:(Te="paraui-select select",k&&!Ce&&(Te+=" "+X),i&&(Te+=" "+i),a&&(Te+=" select-"+a),L&&(Te+=" select-error"),!0===N&&(Te+=" select-disabled"),oe&&(Te+=" select-open"),k&&(Te+=" select-multiple"),Ce&&(Te+=" select-over-line"),Te)},{children:[Ge,(0,e.jsx)(o.Tooltip,m({open:oe,title:ot,onClose:ze,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:function(){var e="paraui-select-popover";return a&&(e+=" paraui-select-popover-"+a),e+=k?" paraui-select-popover-multiple":" paraui-select-popover-radio",Y&&(e+=" "+Y),e}()},placement:"bottom-start"},{children:et}),void 0),M&&(0,e.jsx)("p",m({className:"select-error-text"},{children:M}),void 0),rt]}),void 0)};u.default=y}(),u}()}));
|
|
14
|
+
*/o(7418);var r=o(9297),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;i=n("react.element"),t.Fragment=n("react.fragment")}var c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function a(e,t,o){var r,n={},a=null,p=null;for(r in void 0!==o&&(a=""+o),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(p=t.ref),t)l.call(t,r)&&!s.hasOwnProperty(r)&&(n[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===n[r]&&(n[r]=t[r]);return{$$typeof:i,type:e,key:a,ref:p,props:n,_owner:c.current}}t.jsx=a,t.jsxs=a},5893:function(e,t,o){"use strict";e.exports=o(5251)},9271:function(e,t,o){var r=o(3379),i=o(2565);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var n={insert:("body","body"),singleton:!1};r(i,n);e.exports=i.locals||{}},3492:function(e,t,o){var r=o(3379),i=o(5714);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var n={insert:("body","body"),singleton:!1};r(i,n);e.exports=i.locals||{}},5622:function(e,t,o){var r=o(3379),i=o(7544);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var n={insert:("body","body"),singleton:!1};r(i,n);e.exports=i.locals||{}},2310:function(e,t,o){var r=o(3379),i=o(9929);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var n={insert:("body","body"),singleton:!1};r(i,n);e.exports=i.locals||{}},3379:function(e,t,o){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},n=function(){var e={};return function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}e[t]=o}return e[t]}}(),c=[];function l(e){for(var t=-1,o=0;o<c.length;o++)if(c[o].identifier===e){t=o;break}return t}function s(e,t){for(var o={},r=[],i=0;i<e.length;i++){var n=e[i],s=t.base?n[0]+t.base:n[0],a=o[s]||0,p="".concat(s," ").concat(a);o[s]=a+1;var u=l(p),d={css:n[1],media:n[2],sourceMap:n[3]};-1!==u?(c[u].references++,c[u].updater(d)):c.push({identifier:p,updater:m(d,t),references:1}),r.push(p)}return r}function a(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=o.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var c=n(e.insert||"head");if(!c)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");c.appendChild(t)}return t}var p,u=(p=[],function(e,t){return p[e]=t,p.filter(Boolean).join("\n")});function d(e,t,o,r){var i=o?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=u(t,i);else{var n=document.createTextNode(i),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(n,c[t]):e.appendChild(n)}}function v(e,t,o){var r=o.css,i=o.media,n=o.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var f=null,h=0;function m(e,t){var o,r,i;if(t.singleton){var n=h++;o=f||(f=a(t)),r=d.bind(null,o,n,!1),i=d.bind(null,o,n,!0)}else o=a(t),r=v.bind(null,o,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(o)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var o=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<o.length;r++){var i=l(o[r]);c[i].references--}for(var n=s(e,t),a=0;a<o.length;a++){var p=l(o[a]);0===c[p].references&&(c[p].updater(),c.splice(p,1))}o=n}}}},7839:function(e,t,o){"use strict";var r=o(5893),i=o(9297),n=o(7371),c=(o(9271),function(){return c=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c.apply(this,arguments)});t.default=function(e){var t=e.children,o=e.placement,l=void 0===o?"bottom-start":o,s=e.tips,a=void 0===s?"":s,p=e.className,u=void 0===p?"":p,d=(0,i.useRef)(),v=(0,i.useState)(""),f=v[0],h=v[1];(0,i.useEffect)((function(){h(a)}),[a]);var m;return(0,r.jsx)("div",c({ref:d,className:(m="paraui-auto-tips",u&&(m+=" "+u),m),onMouseOver:function(e){d.current&&d.current.scrollWidth>d.current.offsetWidth?h(a||d.current.innerText):h("")}},{children:(0,r.jsx)(n.default,c({title:f,placement:l},{children:(0,r.jsx)("div",c({className:"auto-tips-content"},{children:t}),void 0)}),void 0)}),void 0)}},7502:function(e,t,o){"use strict";var r=o(5893),i=o(9297),n=o(1102),c=o.n(n),l=(o(3492),function(){return l=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},l.apply(this,arguments)});t.default=function(e){var t=e.className,o=e.style,n=e.opacity,s=void 0===n?.7:n,a=(0,i.useRef)(null);(0,i.useEffect)((function(){a&&a.current&&a.current.parentNode&&((getComputedStyle(a.current.parentNode)||{}).position||(a.current.parentNode.style.position="relative"))}),[]);var p;return(0,r.jsxs)("div",l({className:(p="paraui-loading",t&&(p+=" "+t),p),style:o,ref:a},{children:[(0,r.jsx)("div",l({className:"paraui-loading-box"},{children:(0,r.jsx)(c(),{},void 0)}),void 0),(0,r.jsx)("div",{className:"paraui-loading-mask",style:{opacity:s}},void 0)]}),void 0)}},7371:function(e,t,o){"use strict";var r=o(5893),i=o(1731),n=o(6010),c=(o(2310),function(){return c=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c.apply(this,arguments)});t.default=function(e){var t,o=e.placement,l=void 0===o?"bottom":o,s=c(c({},e.classes),{popper:(0,n.Z)("paraui-tooltip",null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==l?void 0:l.includes("left"))||(null==l?void 0:l.includes("right")),"paraui-tooltip-top-bottom":(null==l?void 0:l.includes("top"))||(null==l?void 0:l.includes("bottom"))})});return(0,r.jsx)(i.Tooltip,c({},e,{classes:s}),void 0)}},1731:function(e){"use strict";e.exports=t},6110:function(e){"use strict";e.exports=i},19:function(e){"use strict";e.exports=n},6028:function(e){"use strict";e.exports=o},1102:function(e){"use strict";e.exports=c},4115:function(e){"use strict";e.exports=r},3475:function(e){"use strict";e.exports=l},9297:function(t){"use strict";t.exports=e}},a={};function p(e){var t=a[e];if(void 0!==t)return t.exports;var o=a[e]={id:e,exports:{}};return s[e](o,o.exports,p),o.exports}p.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(t,{a:t}),t},p.d=function(e,t){for(var o in t)p.o(t,o)&&!p.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return function(){"use strict";p.r(u),p.d(u,{Select:function(){return x}});var e=p(5893),t=p(9297),o=p(1731),r=p(6028),i=p.n(r),n=p(4115),c=p.n(n),l=p(6110),s=p.n(l),a=p(19),d=p.n(a),v=p(7839),f=p(7502),h=p(3475),m=(p(5622),function(){return m=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},m.apply(this,arguments)}),g=function(e,t,o){if(o||2===arguments.length)for(var r,i=0,n=t.length;i<n;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))},x=function(r){var n=r.className,l=r.showSelect,a=void 0===l||l,p=r.size,u=void 0===p?"large":p,x=r.labelMode,b=void 0===x?"outside":x,y=r.placeholder,w=void 0===y?"":y,k=r.searchPlaceholder,j=void 0===k?"请输入搜索名":k,S=r.label,N=void 0===S?"":S,O=r.input,C=void 0!==O&&O,E=r.disabled,q=void 0!==E&&E,L=r.multiple,M=void 0!==L&&L,T=r.required,z=void 0!==T&&T,_=r.labelSign,P=r.error,F=void 0!==P&&P,D=r.helperText,R=void 0===D?"":D,I=r.list,U=r.showName,H=void 0===U?"label":U,A=r.showValue,B=void 0===A?"value":A,K=r.childrenName,V=void 0===K?"children":K,W=r.value,J=r.onChange,Z=r.overLine,$=void 0!==Z&&Z,Y=r.search,G=void 0!==Y&&Y,Q=r.searchModel,X=void 0===Q?"inside":Q,ee=r.selectPopoverClassName,te=r.morePopoverClassName,oe=(r.fetchSuggestions,r.onEnter),re=r.onEnterInput,ie=(0,t.useRef)(null),ne=(0,t.useState)("select-"+(0,h.UUID)())[0],ce=(0,t.useState)("select-popover-"+(0,h.UUID)())[0],le=(0,t.useState)(!1),se=le[0],ae=le[1],pe=(0,t.useState)(!1),ue=pe[0],de=pe[1],ve=(0,t.useState)([]),fe=ve[0],he=ve[1],me=(0,t.useState)([]),ge=me[0],xe=me[1],be=(0,t.useState)({}),ye=be[0],we=be[1],ke=(0,t.useState)(null),je=ke[0],Se=ke[1],Ne=(0,t.useState)({})[0],Oe=(0,t.useState)(!1),Ce=Oe[0],Ee=Oe[1],qe=(0,t.useState)(""),Le=qe[0],Me=qe[1],Te=(0,t.useState)(!1),ze=Te[0],_e=Te[1],Pe=(0,t.useState)(!1),Fe=Pe[0],De=Pe[1],Re=(0,t.useRef)(null);(0,t.useEffect)((function(){void 0!==r.defaultValue&&(r.multiple?he((0,h.DeepClone)(r.defaultValue||[])):he(""===r.defaultValue?[]:[r.defaultValue]))}),[]),(0,t.useEffect)((function(){void 0!==W&&he(M?(0,h.DeepClone)(W||[]):""===W?[]:[W])}),[W,M]),(0,t.useEffect)((function(){if(G&&"outside"===X||C)return _e(!!M);_e($)}),[$,G,X,M,C]),(0,t.useEffect)((function(){for(var e={},t=0,o=I.length;t<o;t++){var r=I[t];if(r[V]&&r[V].length>0)for(var i=r[V],n=0,c=i.length;n<c;n++){var l=i[n];e[l[B]]=l}else e[r[B]]=r}we(e)}),[I]),(0,t.useEffect)((function(){M&&(ze||Se(fe.length))}),[ze,M,fe]),(0,t.useEffect)((function(){return ze?Se(fe.length):(setTimeout((function(){Ve(fe.length)})),window.addEventListener("resize",We)),function(){window.removeEventListener("resize",We)}}),[fe,ze]),(0,t.useEffect)((function(){fe&&fe.length>0?de(!0):(de(!1),(G&&"outside"===X||C)&&de(""!==Le))}),[G,Le,X,fe,C]),(0,t.useEffect)((function(){clearTimeout(Ne.searchTimer),Ne.searchTimer=setTimeout((function(){De(!0),r.fetchSuggestions?r.fetchSuggestions&&r.fetchSuggestions(Le,(function(e){Ue(e)})):Ue(I)}),100)}),[G,Le,I]),(0,t.useEffect)((function(){return se?setTimeout((function(){He(),window.addEventListener("click",Be),window.addEventListener("keydown",it)})):(Me(""),window.removeEventListener("click",Be),window.removeEventListener("keydown",it)),function(){window.removeEventListener("click",Be),window.removeEventListener("keydown",it)}}),[se]),(0,t.useEffect)((function(){Le&&ae(!0)}),[Le]),(0,t.useEffect)((function(){!0!==q&&M&&("outside"===X||C)&&tt(Le)}),[Le,M,q,X,C]);var Ie,Ue=function(e){for(var t=[],o=(0,h.DeepClone)(e),r=0,i=o.length;r<i;r++){var n=o[r];if(n[V]&&n[V].length>0){for(var c=n[V],l=[],s=0,a=c.length;s<a;s++){var p=c[s];Ke(p)&&l.push(p)}l.length>0&&(n[V]=l,t.push(n))}else{Ke(n)&&t.push(n)}}xe(t),De(!1)},He=function(){var e=Re&&Re.current;e&&e.focus()},Ae=function(e,t){for(var o=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;e&&!o.call(e,t);)e=e.parentElement;return e},Be=function(e){Ae(e.target,"."+ce)||ae(!1)},Ke=function(e){var t=!0,o=e[H];return o&&"string"==typeof o&&-1===o.indexOf(Le)&&(t=!1),t},Ve=function(e){if(null!==e&&0!==e){void 0===e&&(e=fe.length);var t=document.querySelector("."+ne+" > .select-content > .check-select-content");if(t)if(t.scrollHeight>t.clientHeight){var o=Number(e)-1;Se(o),Ve(o)}else fe.length<=e&&Ye()}},We=function(){clearTimeout(Ne.timer),Ne.timer=setTimeout((function(){Se(fe.length),Ve()}),100)},Je=function(){!0!==q&&ae(!0)},Ze=function(){ae(!1)},$e=function(e){Ee(!0),ae(!1),e.stopPropagation()},Ye=function(){Ee(!1)},Ge=function(e,t){return function(o){var i=e[B];if("object"!=typeof q||-1===q.indexOf(i))if(M){var n=fe.indexOf(i);-1!==n?fe.splice(n,1):fe.push(i),void 0===r.value&&he(g([],fe,!0)),J&&J(g([],fe,!0),o),t&&oe&&oe(g([],fe,!0)),He()}else void 0===r.value&&he([i]),J&&J(i,o),t&&oe&&oe(i),Ze(),Me("")}},Qe=function(e,t){return function(o){var r;e||((r={})[B]=t,e=r),Ge(e)(o),o.stopPropagation()}},Xe=function(e){Me(e.target.value)},et=function(e){if(13===e.keyCode){re&&re(Le);var t=document.querySelector("."+ce+" .select-popover-list");if(t){var o=t.querySelector(".select-popover-list-item-hover");if(t.querySelector(".select-popover-list-item-keydown")||o)return}if(r.input&&""!==Le.trim()){var i="";i=M?g(g([],fe,!0),[Le],!1):Le,void 0===r.value&&he(i),J&&J(i,e),Me("")}}},tt=function(e){var t=Re&&Re.current;if(!t)return null;var o=window.getComputedStyle(t),r=o.fontFamily,i=function(e,t,o){var r=document.createElement("span");r.id="referenceSpan";var i={};i.width=r.offsetWidth,i.height=r.offsetHeight,r.style.visibility="hidden",r.style.fontSize=e,r.style.fontFamily=t,r.style.display="inline-block";var n=document.getElementById("referenceSpan");return n&&document.body.removeChild(n),document.body.appendChild(r),void 0!==r.textContent?r.textContent=o:r.innerText=o,i.width=parseFloat(window.getComputedStyle(r).width)-i.width,i.height=parseFloat(window.getComputedStyle(r).height)-i.height,document.body.removeChild(r),i}(o.fontSize,r,e),n=i.width;n<10&&(n=10),t.style.width=n+"px"},ot=function(e){var t=e.selectDom,o=e.keyCode,r=e.currentKeydownDom,i=null,n="nextSibling",c=".select-popover-list > div",l=".select-popover-list-item";if(38===o&&(n="previousSibling",c=".select-popover-list > div:last-child",l=".select-popover-list-item:last-child"),r)if(i=r[n])-1!==i.className.indexOf("select-popover-list-group-label")&&((i=(i=r.parentNode)[n])||(i=t.querySelector(c)));else{var s=r.parentNode;s&&s.className&&-1!==s.className.indexOf("select-popover-list-group")&&(i=(i=r.parentNode)[n])||(i=t.querySelector(c))}else i=t.querySelector(c);if(i)if(-1!==i.className.indexOf("select-popover-list-group")){var a=i.querySelector(l);a&&(a.classList.add("select-popover-list-item-keydown"),rt(a,t))}else i.classList.add("select-popover-list-item-keydown"),rt(i,t)},rt=function(e,t){clearTimeout(Ne.scrollTimer);var o=t.clientHeight,r=e.offsetTop+e.clientHeight-o;Ne.scroll=!0,t.scrollTop=r>0?r:0,Ne.scrollTimer=setTimeout((function(){Ne.scroll=!1}),100)},it=function(e){var t=document.querySelector("."+ce+" .select-popover-list");if(t){var o=t.querySelector(".select-popover-list-item-select"),r=t.querySelector(".select-popover-list-item-hover"),i=t.querySelector(".select-popover-list-item-keydown"),n=o;if(r&&(n=r),13===e.keyCode){var c=i||r;if(c){var l=c.dataset.val;Ge(ye[l],!0)({target:i})}else oe&&oe(W)}i&&(n=i,i.classList.remove("select-popover-list-item-keydown")),40===e.keyCode&&ot({selectDom:t,keyCode:e.keyCode,currentKeydownDom:n}),38===e.keyCode&&ot({selectDom:t,keyCode:e.keyCode,currentKeydownDom:n})}},nt=function(e){if(!Ne.scroll){var t=Ae(e.target,".select-popover-list-item");if(t){t.classList.add("select-popover-list-item-hover");var o=document.querySelector("."+ce).querySelector(".select-popover-list-item-keydown");o&&o.classList.remove("select-popover-list-item-keydown")}}},ct=function(e){var t=Ae(e.target,".select-popover-list-item");t&&t.classList.remove("select-popover-list-item-hover")},lt=(0,t.useMemo)((function(){var t=Boolean(N||z||_);return(0,e.jsx)(e.Fragment,{children:"outside"===b&&t&&(0,e.jsxs)("label",m({className:"select-label"},{children:[N,z&&(0,e.jsx)("span",m({className:"select-required"},{children:"*"}),void 0),_&&(0,e.jsx)("span",{children:_},void 0)]}),void 0)},void 0)}),[b,N,_,z]),st=(0,t.useMemo)((function(){return(0,e.jsx)(e.Fragment,{children:!ue&&(0,e.jsx)("span",m({className:"select-label-placeholder"},{children:"outside"===b?w:(0,e.jsxs)(e.Fragment,{children:[N||w,z&&(0,e.jsx)("span",m({className:"select-required"},{children:"*"}),void 0),_&&(0,e.jsx)("span",{children:_},void 0)]},void 0)}),void 0)},void 0)}),[ue,b,w,N,_,z]),at=function(t){if(!0===q)return null;var o="".concat(t,"-search-outside");return G&&"outside"===X||C?(0,e.jsx)("input",{className:o,value:Le,onChange:Xe,onKeyDown:et,ref:Re},void 0):null},pt=(0,t.useMemo)((function(){return(0,e.jsx)(e.Fragment,{children:!M&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",m({className:"radio-select-content"},{children:function(){if(""!==Le&&("outside"===X||C))return null;var t=ye[fe[0]]&&ye[fe[0]][H]||fe[0];return ze?t:(0,e.jsx)(v.default,{children:t},void 0)}()}),void 0),at("radio")]},void 0)},void 0)}),[M,ue,ze,ye,fe,H,G,X,Le,q,C]),ut=(0,t.useMemo)((function(){var t=function(e){return ye[fe[e]]&&ye[fe[e]][H]||fe[e]};return(0,e.jsx)(e.Fragment,{children:M&&(0,e.jsxs)("div",m({className:"check-select-content"},{children:[fe&&fe.map((function(o,r){if(null!==je&&je<=r)return null;var i=!0;return(!0===q||"object"==typeof q&&-1!==q.indexOf(fe[r]))&&(i=!1),(0,e.jsxs)("div",m({className:i?"check-select-content-item":"check-select-content-item check-select-content-item-noclose"},{children:[(0,e.jsx)("span",{children:t(r)},void 0),i&&(0,e.jsx)(d(),{onClick:Qe(ye[fe[r]],fe[r])},void 0)]}),r)})),function(){if(null!==je&&fe.length>je)return(0,e.jsx)("div",m({className:"check-select-content-item check-select-content-item-more",onClick:$e},{children:(0,e.jsxs)("span",{children:["+",fe.length-je]},void 0)}),void 0)}(),at("check")]}),void 0)},void 0)}),[M,ue,fe,je,ye,q,J,Le,G,X,C]),dt=(0,t.useMemo)((function(){return(0,e.jsxs)("div",m({className:"select-content",onClick:Je,ref:ie},{children:[st,a&&(0,e.jsx)("span",m({className:"select-svg"},{children:(0,e.jsx)(i(),{},void 0)}),void 0),pt,ut]}),void 0)}),[ie,ue,b,w,N,_,z,ze,ye,fe,H,M,je,q,J,Le,X,C,a]),vt=(0,t.useMemo)((function(){var t;return(0,e.jsxs)("div",m({className:(t="select-popover-list",Fe&&(t+=" select-popover-list-loading"),t)},{children:[ge&&ge.length>0?(0,e.jsx)(e.Fragment,{children:ge.map((function(t,o){if(t[V]&&t[V].length>0){var r=t[V];return(0,e.jsxs)("div",m({className:"select-popover-list-group"},{children:[(0,e.jsx)("span",m({className:"select-popover-list-group-label"},{children:t[H]||t[B]}),void 0),r.map((function(t,o){var r=t[B],i="select-popover-list-item";return-1!==fe.indexOf(r)&&(i+=" select-popover-list-item-select"),"object"==typeof q&&-1!==q.indexOf(r)&&(i+=" select-popover-list-item-disabled"),(0,e.jsxs)("div",m({onClick:Ge(t),className:i,onMouseEnter:nt,onMouseLeave:ct,"data-val":r},{children:[(0,e.jsx)("span",m({className:"select-popover-list-item-label"},{children:(0,e.jsx)(v.default,{children:t[H]||t[B]},void 0)}),void 0),M&&(0,e.jsx)("span",m({className:"select-popover-list-item-svg"},{children:(0,e.jsx)(s(),{},void 0)}),void 0)]}),o)}))]}),o)}var i=t[B],n="select-popover-list-item";return-1!==fe.indexOf(i)&&(n+=" select-popover-list-item-select"),"object"==typeof q&&-1!==q.indexOf(i)&&(n+=" select-popover-list-item-disabled"),(0,e.jsxs)("div",m({onClick:Ge(t),className:n,onMouseEnter:nt,onMouseLeave:ct,"data-val":i},{children:[(0,e.jsx)("span",m({className:"select-popover-list-item-label"},{children:(0,e.jsx)(v.default,{children:t[H]||t[B]},void 0)}),void 0),M&&(0,e.jsx)("span",m({className:"select-popover-list-item-svg"},{children:(0,e.jsx)(s(),{},void 0)}),void 0)]}),o)}))},void 0):!Fe&&(0,e.jsx)("div",m({className:"select-nodata"},{children:"暂无选项"}),void 0),Fe&&(0,e.jsx)(f.default,{},void 0)]}),void 0)}),[ge,H,B,fe,J,M,Fe]),ft=(0,t.useMemo)((function(){if(!a)return"";return(0,e.jsxs)("div",m({style:{width:(ie&&ie.current?ie.current.offsetWidth:0)+"px"},className:"select-popover-content "+ce},{children:[G&&"inside"===X&&(0,e.jsxs)("div",m({className:"select-popover-search"},{children:[(0,e.jsx)("input",{placeholder:j,value:Le,onChange:Xe,onKeyDown:et,ref:Re},void 0),(0,e.jsx)(c(),{},void 0)]}),void 0),vt]}),void 0)}),[se,ie,ge,V,B,H,fe,Le,G,ce,X,M,j,a,Fe]),ht=(0,t.useMemo)((function(){var t,r=function(e){return ye[fe[e]]&&ye[fe[e]][H]||fe[e]};return(0,e.jsx)(o.Popover,m({open:Ce,anchorEl:ie&&ie.current,onClose:Ye,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},className:(t="paraui-select-more-popover",u&&(t+=" paraui-select-more-popover-"+u),te&&(t+=" "+te),t)},{children:(0,e.jsxs)("div",m({className:"select-more"},{children:[(0,e.jsxs)("div",m({className:"select-more-title"},{children:[(0,e.jsx)("span",{children:"已选中"},void 0),(0,e.jsxs)("span",{children:["(",fe.length-Number(je),")"]},void 0)]}),void 0),(0,e.jsx)("div",m({className:"select-more-content"},{children:fe&&fe.map((function(t,o){if(null!==je&&je>o)return null;var i=!0;return(!0===q||"object"==typeof q&&-1!==q.indexOf(fe[o]))&&(i=!1),(0,e.jsxs)("div",m({className:"select-more-content-item"},{children:[(0,e.jsx)("span",{children:(0,e.jsx)(v.default,{children:r(o)},void 0)},void 0),i&&(0,e.jsx)(d(),{onClick:Qe(ye[fe[o]],fe[o])},void 0)]}),o)}))}),void 0)]}),void 0)}),void 0)}),[Ce,fe,je,ye,q,H,te,u]);return(0,e.jsxs)("div",m({className:(Ie="paraui-select select",M&&!ze&&(Ie+=" "+ne),n&&(Ie+=" "+n),u&&(Ie+=" select-"+u),F&&(Ie+=" select-error"),!0===q&&(Ie+=" select-disabled"),se&&(Ie+=" select-open"),M&&(Ie+=" select-multiple"),(ze||C)&&(Ie+=" select-over-line"),a&&(Ie+=" select-show-select"),Ie)},{children:[lt,(0,e.jsx)(o.Tooltip,m({open:se,title:ft,onClose:Ze,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:function(){var e="paraui-select-popover";return u&&(e+=" paraui-select-popover-"+u),e+=M?" paraui-select-popover-multiple":" paraui-select-popover-radio",ee&&(e+=" "+ee),e}()},placement:"bottom-start"},{children:dt}),void 0),R&&(0,e.jsx)("p",m({className:"select-error-text"},{children:R}),void 0),ht]}),void 0)};u.default=x}(),u}()}));
|
package/SingleBox/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@material-ui/core"),require("@para-ui/icons/Delete"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/Plus"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/PreviewOpen"),require("para-lib"),require("react")):"function"==typeof define&&define.amd?define(["@material-ui/core","@para-ui/icons/Delete","@para-ui/icons/LoadingF","@para-ui/icons/Plus","@para-ui/icons/PreviewClose","@para-ui/icons/PreviewOpen","para-lib","react"],t):"object"==typeof exports?exports.ParaUI=t(require("@material-ui/core"),require("@para-ui/icons/Delete"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/Plus"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/PreviewOpen"),require("para-lib"),require("react")):e.ParaUI=t(e["@material-ui/core"],e["@para-ui/icons/Delete"],e["@para-ui/icons/LoadingF"],e["@para-ui/icons/Plus"],e["@para-ui/icons/PreviewClose"],e["@para-ui/icons/PreviewOpen"],e["para-lib"],e.react)}(self,(function(e,t,n,o,r,i,a,l){return function(){"use strict";var s={6010:function(e,t,n){function o(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=o(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function r(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=o(e))&&(r&&(r+=" "),r+=t);return r}n.d(t,{Z:function(){return r}})},7418:function(e){
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@material-ui/core"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/PreviewClose"),require("para-lib"),require("@para-ui/icons/Plus"),require("@para-ui/icons/Delete")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","@para-ui/icons/LoadingF","@para-ui/icons/PreviewOpen","@para-ui/icons/PreviewClose","para-lib","@para-ui/icons/Plus","@para-ui/icons/Delete"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("@material-ui/core"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/PreviewClose"),require("para-lib"),require("@para-ui/icons/Plus"),require("@para-ui/icons/Delete")):e.ParaUI=t(e.react,e["@material-ui/core"],e["@para-ui/icons/LoadingF"],e["@para-ui/icons/PreviewOpen"],e["@para-ui/icons/PreviewClose"],e["para-lib"],e["@para-ui/icons/Plus"],e["@para-ui/icons/Delete"])}(self,(function(e,t,i,n,o,r,l,a){return function(){var d={6010:function(e,t,i){"use strict";function n(e){var t,i,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(i=n(e[t]))&&(o&&(o+=" "),o+=i);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,i=0,o="";i<arguments.length;)(e=arguments[i++])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}i.d(t,{Z:function(){return o}})},2565:function(e,t,i){(t=i(3645)(!1)).push([e.id,".paraui-auto-tips{max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paraui-auto-tips>.auto-tips-content{display:inline;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n",""]),e.exports=t},5714:function(e,t,i){(t=i(3645)(!1)).push([e.id,"@keyframes rotateLoading{0%{transformOrigin:50% 50%}100%{transform:rotate(360deg)}}.paraui-loading{position:absolute;left:0;top:0;width:100%;height:100%}.paraui-loading .paraui-loading-mask{position:absolute;width:100%;height:100%;background-color:white;z-index:1}.paraui-loading .paraui-loading-box{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:2}.paraui-loading .paraui-loading-box>svg{transition:all .3s ease-in-out;animation:rotateLoading 1s infinite linear;font-size:20px}\n",""]),e.exports=t},2645:function(e,t,i){(t=i(3645)(!1)).push([e.id,".paraui-single-box{display:inline-block;width:100%;font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;padding-bottom:20px}.paraui-single-box>.single-box-label{color:rgba(46,55,67,0.701961);margin-bottom:8px;display:inline-block}.paraui-single-box>.single-box-label>.single-box-label-required{margin-left:2px;color:#eb6054}.paraui-single-box>.single-box-content{line-height:0}.paraui-single-box>.single-box-content>.single-box-content-item{padding-bottom:15px;display:flex}.paraui-single-box>.single-box-content>.single-box-content-item>.text-field{padding-bottom:0;width:calc(100% - 30px)}.paraui-single-box>.single-box-content>.single-box-content-item>.single-box-content-item-svg{display:flex;align-items:center;justify-content:center;width:30px;cursor:pointer}.paraui-single-box>.single-box-add{text-align:center;border:1px dashed;border-color:rgba(171,176,185,0.4);display:flex;align-items:center;justify-content:center;border-radius:8px;cursor:pointer}.paraui-single-box>.single-box-add>svg{font-size:24px}.paraui-single-box>.single-box-add:hover{border-color:#3666d6;color:#3666d6}.paraui-single-box>.single-box-error{margin:8px 0 0 0;padding-left:12px;line-height:1}.paraui-single-box.single-box-small>.single-box-add{height:28px}.paraui-single-box.single-box-medium>.single-box-add{height:32px}.paraui-single-box.single-box-large>.single-box-add{height:36px}.paraui-single-box.single-box-error>.single-box-error{color:#eb6054}.paraui-single-box.single-box-disabled>.single-box-content>.single-box-content-item>.single-box-content-item-svg{cursor:not-allowed}.paraui-single-box.single-box-disabled>.single-box-content>.single-box-content-item>.single-box-content-item-svg>svg{color:rgba(46,55,67,0.701961)}.paraui-single-box.single-box-disabled>.single-box-add{border-color:rgba(171,176,185,0.4);cursor:not-allowed;background-color:rgba(171,176,185,0.121569);color:rgba(46,55,67,0.701961)}.paraui-single-box.single-box-disabled>.single-box-add>svg{color:rgba(46,55,67,0.701961)}.paraui-single-box.single-box-disabled>.single-box-add:hover{border-color:rgba(171,176,185,0.4);color:rgba(46,55,67,0.701961)}\n",""]),e.exports=t},3637:function(e,t,i){(t=i(3645)(!1)).push([e.id,'.paraui-text-field{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;display:inline-block;width:100%;padding-bottom:20px}.paraui-text-field>.text-field-label{color:rgba(46,55,67,0.701961);margin-bottom:8px;display:inline-block}.paraui-text-field>.text-field-label>.text-field-required{margin-left:2px;color:#eb6054}.paraui-text-field>.text-field-content{border:1px solid;border-radius:8px;border-color:rgba(171,176,185,0.4);display:flex;width:100%;position:relative}.paraui-text-field>.text-field-content:hover{border-color:#3666d6}.paraui-text-field>.text-field-content>.text-field-content-before{color:#2e3743;padding:0 12px;border-right:1px solid rgba(171,176,185,0.4);background-color:rgba(171,176,185,0.121569);border-bottom-left-radius:8px;border-top-left-radius:8px;white-space:nowrap;display:flex;align-items:center}.paraui-text-field>.text-field-content>.text-field-content-before svg{font-size:20px}.paraui-text-field>.text-field-content>.text-field-content-within{position:relative;width:100%;display:flex}.paraui-text-field>.text-field-content>.text-field-content-within>.right-icon{display:flex;height:100%;align-items:center;margin-right:12px;cursor:pointer;color:rgba(46,55,67,0.701961);position:relative;z-index:1}.paraui-text-field>.text-field-content>.text-field-content-within>.right-icon svg{color:rgba(46,55,67,0.701961);font-size:20px}.paraui-text-field>.text-field-content>.text-field-content-within>.length-limit{display:flex;height:100%;align-items:center;margin-right:12px;color:rgba(46,55,67,0.701961)}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input{width:100%;line-height:0}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input input::-webkit-outer-spin-button,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input input::-webkit-inner-spin-button{-webkit-appearance:none}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input input[type="number"]{-moz-appearance:textfield}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{width:100%;height:100%}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{width:100% !important;padding:12px}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{font-size:14px;color:#2e3743;border:0;border-radius:8px;background:transparent}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input::-ms-clear,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea::-ms-clear{display:none}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input::-ms-reveal,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea::-ms-reveal{display:none}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input:disabled,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea:disabled{background-color:transparent}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{width:100%;position:absolute;left:0;top:0;height:100%;padding:0 12px;color:rgba(46,55,67,0.4);cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder>.text-field-required{margin-left:2px;color:#eb6054}.paraui-text-field>.text-field-content>.text-field-content-after{color:#2e3743;padding:0 12px;border-left:1px solid rgba(171,176,185,0.4);background-color:rgba(171,176,185,0.121569);border-bottom-right-radius:8px;border-top-right-radius:8px;white-space:nowrap;display:flex;align-items:center}.paraui-text-field>.text-field-content>.text-field-content-after svg{font-size:20px}.paraui-text-field>.text-field-error-text{margin:8px 0 0 0;padding-left:12px;line-height:1}.paraui-text-field.text-field-multiline>.text-field-content .text-field-content-within>.length-limit{height:14px;position:absolute;right:0;bottom:8px}.paraui-text-field.text-field-multiline>.text-field-content .text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{padding-top:12px;line-height:1;height:calc(100% - 14px)}.paraui-text-field.text-field-disabled>.text-field-content{background-color:rgba(171,176,185,0.121569)}.paraui-text-field.text-field-disabled>.text-field-content:hover{border-color:rgba(171,176,185,0.4)}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-before{background-color:transparent}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{cursor:not-allowed}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-within>.text-field-content-within-input>input,.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{cursor:not-allowed}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-after{background-color:transparent}.paraui-text-field.text-field-error>.text-field-error-text{color:#eb6054}.paraui-text-field.text-field-error>.text-field-content{border-color:#eb6054}.paraui-text-field.text-field-error>.text-field-content:hover{border-color:#eb6054}.paraui-text-field.text-field-limit>.text-field-content{border-color:#eb6054 !important}.paraui-text-field.text-field-limit>.text-field-content:hover{border-color:#eb6054 !important}.paraui-text-field.text-field-focus>.text-field-content{border-color:#3666d6}.paraui-text-field.text-field-small>.text-field-content{height:28px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-before{line-height:26px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-within>.text-field-content-within-input{height:26px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{padding:6px 12px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{line-height:26px}.paraui-text-field.text-field-small>.text-field-content .text-field-content-after{line-height:26px}.paraui-text-field.text-field-medium>.text-field-content{height:32px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-before{line-height:30px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-within>.text-field-content-within-input{height:30px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{padding:8px 12px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{line-height:30px}.paraui-text-field.text-field-medium>.text-field-content .text-field-content-after{line-height:30px}.paraui-text-field.text-field-large>.text-field-content{height:36px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-before{line-height:34px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-within>.text-field-content-within-input{height:34px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{padding:10px 12px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{line-height:34px}.paraui-text-field.text-field-large>.text-field-content .text-field-content-after{line-height:34px}.paraui-text-field-select>div{max-width:none;padding:0;background-color:white;box-shadow:0px 2px 8px 0px rgba(171,176,185,0.4);border-radius:8px;font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400}.paraui-text-field-select>div>span{color:white}.paraui-text-field-select>div .text-field-select-content{max-height:300px;overflow:auto}.paraui-text-field-select>div .text-field-select-content>.text-field-select-content-item{display:flex;cursor:pointer;color:#2e3743;padding:0 12px}.paraui-text-field-select>div .text-field-select-content>.text-field-select-content-item:hover{background-color:rgba(171,176,185,0.121569);color:#3666d6}.paraui-text-field-select>div .text-field-select-content>.text-field-select-content-item.text-field-select-content-item-keydown{background-color:rgba(171,176,185,0.121569);color:#3666d6}.paraui-text-field-select>div .text-field-select-content.text-field-select-content-loading{height:100px;position:relative;overflow:hidden}.paraui-text-field-select.paraui-text-field-select-small>div .text-field-select-content>.text-field-select-content-item{line-height:28px}.paraui-text-field-select.paraui-text-field-select-medium>div .text-field-select-content>.text-field-select-content-item{line-height:32px}.paraui-text-field-select.paraui-text-field-select-large>div .text-field-select-content>.text-field-select-content-item{line-height:36px}\n',""]),e.exports=t},9929:function(e,t,i){(t=i(3645)(!1)).push([e.id,".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}\n",""]),e.exports=t},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=function(e,t){var i=e[1]||"",n=e[3];if(!n)return i;if(t&&"function"==typeof btoa){var o=(l=n,a=btoa(unescape(encodeURIComponent(JSON.stringify(l)))),d="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(d," */")),r=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[i].concat(r).concat([o]).join("\n")}var l,a,d;return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var r=0;r<this.length;r++){var l=this[r][0];null!=l&&(o[l]=!0)}for(var a=0;a<e.length;a++){var d=[].concat(e[a]);n&&o[d[0]]||(i&&(d[2]?d[2]="".concat(i," and ").concat(d[2]):d[2]=i),t.push(d))}},t}},7418:function(e){"use strict";
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
|
-
*/
|
|
7
|
-
var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function r(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var 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 o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,l,s=r(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))n.call(a,u)&&(s[u]=a[u]);if(t){l=t(a);for(var d=0;d<l.length;d++)o.call(a,l[d])&&(s[l[d]]=a[l[d]])}}return s}},5251:function(e,t,n){
|
|
6
|
+
*/var t=Object.getOwnPropertySymbols,i=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 t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[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,r){for(var l,a,d=o(e),c=1;c<arguments.length;c++){for(var s in l=Object(arguments[c]))i.call(l,s)&&(d[s]=l[s]);if(t){a=t(l);for(var u=0;u<a.length;u++)n.call(l,a[u])&&(d[a[u]]=l[a[u]])}}return d}},5251:function(e,t,i){"use strict";
|
|
8
7
|
/** @license React v17.0.2
|
|
9
8
|
* react-jsx-runtime.production.min.js
|
|
10
9
|
*
|
|
@@ -12,5 +11,4 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.pr
|
|
|
12
11
|
*
|
|
13
12
|
* This source code is licensed under the MIT license found in the
|
|
14
13
|
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/
|
|
16
|
-
n(7418);var o=n(9297),r=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;r=i("react.element"),t.Fragment=i("react.fragment")}var a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var o,i={},c=null,u=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)l.call(t,o)&&!s.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:r,type:e,key:c,ref:u,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},5893:function(e,t,n){e.exports=n(5251)},7839:function(e,t,n){var o=n(5893),r=n(9297),i=n(7371),a=function(){return a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)};t.default=function(e){var t=e.children,n=e.placement,l=void 0===n?"bottom-start":n,s=e.tips,c=void 0===s?"":s,u=e.className,d=void 0===u?"":u,f=(0,r.useRef)(),v=(0,r.useState)(""),p=v[0],x=v[1];(0,r.useEffect)((function(){x(c)}),[c]);var h;return(0,o.jsx)("div",a({ref:f,className:(h="paraui-auto-tips",d&&(h+=" "+d),h),onMouseOver:function(e){f.current&&f.current.scrollWidth>f.current.offsetWidth?x(c||f.current.innerText):x("")}},{children:(0,o.jsx)(i.default,a({title:p,placement:l},{children:(0,o.jsx)("div",a({className:"auto-tips-content"},{children:t}),void 0)}),void 0)}),void 0)}},7502:function(e,t,n){var o=n(5893),r=n(9297),i=n(1102),a=n.n(i),l=function(){return l=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},l.apply(this,arguments)};t.default=function(e){var t=e.className,n=e.style,i=e.opacity,s=void 0===i?.7:i,c=(0,r.useRef)(null);(0,r.useEffect)((function(){c&&c.current&&c.current.parentNode&&((getComputedStyle(c.current.parentNode)||{}).position||(c.current.parentNode.style.position="relative"))}),[]);var u;return(0,o.jsxs)("div",l({className:(u="paraui-loading",t&&(u+=" "+t),u),style:n,ref:c},{children:[(0,o.jsx)("div",l({className:"paraui-loading-box"},{children:(0,o.jsx)(a(),{},void 0)}),void 0),(0,o.jsx)("div",{className:"paraui-loading-mask",style:{opacity:s}},void 0)]}),void 0)}},7320:function(e,t,n){var o=n(5893),r=n(9297),i=n(1731),a=n(7839),l=n(7502),s=n(8528),c=n.n(s),u=n(6570),d=n.n(u),f=n(3475),v=function(){return v=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},v.apply(this,arguments)},p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};t.default=function(e){var t=e.className,n=e.size,s=void 0===n?"large":n,u=e.labelMode,x=void 0===u?"outside":u,h=e.placeholder,m=void 0===h?"":h,g=e.label,y=void 0===g?"":g,b=e.disabled,j=void 0!==b&&b,w=e.multiline,O=void 0!==w&&w,S=e.required,N=void 0!==S&&S,C=e.labelSign,P=e.rows,k=void 0===P?2:P,q=e.error,E=void 0!==q&&q,L=e.helperText,_=void 0===L?"":L,F=e.addonBefore,D=void 0===F?"":F,I=e.addonAfter,T=void 0===I?"":I,A=(e.defaultValue,e.value),M=e.autoFocus,B=void 0!==M&&M,R=e.type,U=void 0===R?"text":R,K=e.onClickIcon,V=e.rightIcon,z=e.showRightIcon,W=void 0===z||z,H=e.limitLength,J=e.fetchSuggestions,Z=e.selectPopoverClass,$=e.renderSelectItem,Y=e.showSelectName,G=void 0===Y?"value":Y,Q=e.onBlur,X=e.onFocus,ee=e.onChange,te=e.onKeydown,ne=e.onKeyUp,oe=e.onEnter,re=e.onClickAddonBefore,ie=e.onClickAddonAfter,ae=e.onSelect,le=p(e,["className","size","labelMode","placeholder","label","disabled","multiline","required","labelSign","rows","error","helperText","addonBefore","addonAfter","defaultValue","value","autoFocus","type","onClickIcon","rightIcon","showRightIcon","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect"]),se=(0,r.useState)("text-field-select-content-"+(0,f.UUID)())[0],ce=(0,r.useState)(!0),ue=ce[0],de=ce[1],fe=(0,r.useState)(""),ve=fe[0],pe=fe[1],xe=(0,r.useState)(!1),he=xe[0],me=xe[1],ge=(0,r.useState)("text"),ye=ge[0],be=ge[1],je=(0,r.useState)(!1),we=je[0],Oe=je[1],Se=(0,r.useState)(!1),Ne=Se[0],Ce=Se[1],Pe=(0,r.useState)([]),ke=Pe[0],qe=Pe[1],Ee=((0,r.useState)({isCompositions:!0})[0],(0,r.useRef)(null)),Le=(0,r.useRef)(null);(0,r.useEffect)((function(){void 0!==e.defaultValue&&(pe(e.defaultValue),De(e.defaultValue))}),[]),(0,r.useEffect)((function(){U!==ye&&be(U)}),[U]),(0,r.useEffect)((function(){void 0!==A&&(pe(A),De(A))}),[A]),(0,r.useEffect)((function(){de(""===ve||void 0===ve)}),[ve]),(0,r.useEffect)((function(){J&&Oe(he)}),[he,J]),(0,r.useEffect)((function(){return we?window.addEventListener("keydown",Me):window.removeEventListener("keydown",Me),function(){window.removeEventListener("keydown",Me)}}),[we]),(0,r.useEffect)((function(){if(!he&&ve){var t=Fe(ve);if(t!==ve){var n={};n.target=Ee.current,n.target.value=t,e.onChange&&e.onChange(n)}}}),[ve,he]);var _e,Fe=function(t){var n=t;return e.limitLength&&t.toString().length>e.limitLength&&(n=n.toString().substr(0,e.limitLength)),n},De=function(e){Ee&&Ee.current&&(Ee.current.value=e,Ee.current.setAttribute("value",e))},Ie=function(){j||(de(!1),(Ee&&Ee.current).focus())},Te=function(e){var t=e.selectDom,n=e.keyCode,o=e.currentDom,r="nextSibling",i=".text-field-select-content-item";38===n&&(r="previousSibling",i=".text-field-select-content-item:last-child"),o?(o=o[r])||(o=t.querySelector(i)):o=t.querySelector(".text-field-select-content-item"),o&&(o.classList.add("text-field-select-content-item-keydown"),Ae(o,t))},Ae=function(e,t){var n=t.clientHeight,o=e.offsetTop+e.clientHeight-n;t.scrollTop=o>0?o:0},Me=function(e){var t=document.querySelector("."+se),n=null,o=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&o){var r=o.dataset.val;Je(JSON.parse(r))(e),(Ee&&Ee.current).blur()}o&&(n=o,o.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Te({selectDom:t,keyCode:e.keyCode,currentDom:n}),38===e.keyCode&&Te({selectDom:t,keyCode:e.keyCode,currentDom:n})},Be=function(e){me(!1),""===e.target.value&&de(!0),Q&&Q(e)},Re=function(e){Ce(!0),J&&J(e,(function(e){qe(e||[]),Ce(!1)}))},Ue=function(e){me(!0),X&&X(e),Re(e.target.value)},Ke=function(t){var n=t.target.value;n&&de(!1),void 0===e.value&&(pe(n),De(n)),ee&&ee(t),Re(t.target.value)},Ve=function(e){13===e.keyCode&&oe&&oe(e),te&&te(e)},ze=function(e){ne&&ne(e)},We=function(e){"password"===U&&("text"===ye&&be("password"),"password"===ye&&be("text")),K&&K(e)},He=function(){Oe(!1)},Je=function(e){return function(t){ae&&ae(e)}},Ze=(0,r.useMemo)((function(){return(0,o.jsx)(o.Fragment,{children:void 0!==H&&(0,o.jsx)("span",v({className:"length-limit"},{children:(ve?ve.toString().length:0)+"/"+H}),void 0)},void 0)}),[H,ve]),$e=(0,r.useMemo)((function(){var e=V||("password"===U?"password"===ye?(0,o.jsx)(d(),{},void 0):(0,o.jsx)(c(),{},void 0):null);return(0,o.jsx)(o.Fragment,{children:W&&e&&(0,o.jsx)("span",v({className:"right-icon",onClick:We},{children:e}),void 0)},void 0)}),[W,V,U,ye]),Ye=(0,r.useMemo)((function(){return(0,o.jsxs)("div",v({className:"text-field-content-within",ref:Le},{children:[(0,o.jsxs)("div",v({className:"text-field-content-within-input"},{children:[O?(0,o.jsx)("textarea",v({ref:Ee,rows:k,onBlur:Be,onFocus:Ue,onChange:Ke,onKeyDown:Ve,onKeyUp:ze,disabled:j},le),void 0):(0,o.jsx)("input",v({ref:Ee,type:ye,onBlur:Be,onFocus:Ue,onChange:Ke,onKeyDown:Ve,onKeyUp:ze,disabled:j},le),void 0),ue&&!he&&(0,o.jsx)("span",v({className:"text-field-label-placeholder",onClick:Ie},{children:"outside"===x?m:(0,o.jsxs)(o.Fragment,{children:[y||m,N&&(0,o.jsx)("span",v({className:"text-field-required"},{children:"*"}),void 0),C&&(0,o.jsx)("span",{children:C},void 0)]},void 0)}),void 0)]}),void 0),Ze,$e]}),void 0)}),[ue,he,B,ye,ve,Ze,$e,x,m,y,j,O,k,le,ee,J]),Ge=(0,r.useMemo)((function(){var e;return(0,o.jsxs)("div",v({className:(e="text-field-select-content",Ne&&(e+=" text-field-select-content-loading"),se&&(e+=" "+se),e),style:{width:(Le&&Le.current?Le.current.offsetWidth:0)+"px"}},{children:[ke&&ke.map((function(e,t){return(0,o.jsx)("div",v({className:"text-field-select-content-item",onMouseDown:Je(e),"data-val":JSON.stringify(e)},{children:$?$(e):(0,o.jsx)(a.default,{children:e[G]},void 0)}),t)})),Ne&&(0,o.jsx)(l.default,{},void 0)]}),void 0)}),[Le,we,ke,$,G,ae,Ne,se]),Qe=(0,r.useMemo)((function(){return(0,o.jsx)(i.Tooltip,v({open:we,title:Ge,onClose:He,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:(e="paraui-text-field-select",s&&(e+=" paraui-text-field-select-"+s),Z&&(e+=" "+Z),e)}},{children:Ye}),void 0);var e}),[ue,he,B,ye,ve,Ze,$e,x,m,y,j,O,k,le,ee,J,ae,Le,we,Z,s]),Xe=(0,r.useMemo)((function(){var e=Boolean(N||C||y);return(0,o.jsx)(o.Fragment,{children:"outside"===x&&e&&(0,o.jsxs)("label",v({className:"text-field-label"},{children:[y,N&&(0,o.jsx)("span",v({className:"text-field-required"},{children:"*"}),void 0),C&&(0,o.jsx)("span",{children:C},void 0)]}),void 0)},void 0)}),[x,y,C,N]);return(0,o.jsxs)("div",v({className:(_e="paraui-text-field",_e+=" text-field",s&&!O&&(_e+=" text-field-"+s),t&&(_e+=" "+t),E&&(_e+=" text-field-error"),he&&(_e+=" text-field-focus"),j&&(_e+=" text-field-disabled"),O&&(_e+=" text-field-multiline"),e.limitLength&&ve&&ve.toString().length>e.limitLength&&(_e+=" text-field-limit"),_e)},{children:[Xe,(0,o.jsxs)("div",v({className:"text-field-content"},{children:[D&&(0,o.jsx)("div",v({className:"text-field-content-before",onClick:function(e){re&&re(e)}},{children:D}),void 0),J?Qe:Ye,T&&(0,o.jsx)("div",v({className:"text-field-content-after",onClick:function(e){ie&&ie(e)}},{children:T}),void 0)]}),void 0),_&&(0,o.jsx)("p",v({className:"text-field-error-text"},{children:_}),void 0)]}),void 0)}},7371:function(e,t,n){var o=n(5893),r=n(1731),i=n(6010),a=function(){return a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)};t.default=function(e){var t,n=e.placement,l=void 0===n?"bottom":n,s=a(a({},e.classes),{popper:(0,i.Z)("paraui-tooltip",null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==l?void 0:l.includes("left"))||(null==l?void 0:l.includes("right")),"paraui-tooltip-top-bottom":(null==l?void 0:l.includes("top"))||(null==l?void 0:l.includes("bottom"))})});return(0,o.jsx)(r.Tooltip,a({},e,{classes:s}),void 0)}},1731:function(t){t.exports=e},6243:function(e){e.exports=t},1102:function(e){e.exports=n},5191:function(e){e.exports=o},6570:function(e){e.exports=r},8528:function(e){e.exports=i},3475:function(e){e.exports=a},9297:function(e){e.exports=l}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={exports:{}};return s[e](n,n.exports,u),n.exports}u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var d={};return function(){u.r(d),u.d(d,{SingleBox:function(){return c}});var e=u(5893),t=u(9297),n=u(7320),o=u(5191),r=u.n(o),i=u(6243),a=u.n(i),l=function(){return l=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},l.apply(this,arguments)},s=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},c=function(o){var i=o.className,c=o.size,u=void 0===c?"large":c,d=o.placeholder,f=void 0===d?"":d,v=o.label,p=void 0===v?"":v,x=o.labelSign,h=o.disabled,m=void 0!==h&&h,g=o.required,y=void 0!==g&&g,b=o.error,j=void 0!==b&&b,w=o.helperText,O=void 0===w?"":w,S=o.value,N=o.onChange,C=(0,t.useState)([]),P=C[0],k=C[1];(0,t.useEffect)((function(){void 0!==o.defaultValue&&k(s([],o.defaultValue,!0))}),[]),(0,t.useEffect)((function(){void 0!==S&&k(s([],S,!0))}),[S]);var q,E=function(e){return function(){m||(P.splice(e,1),void 0===o.value&&k(s([],P,!0)),N&&N(P))}},L=function(e){return function(t){P[e]=t.target.value,void 0===o.value&&k(s([],P,!0)),N&&N(P)}};return(0,e.jsxs)("div",l({className:(q="paraui-single-box single-box",i&&(q+=" "+i),u&&(q+=" single-box-"+u),j&&(q+=" single-box-error"),m&&(q+=" single-box-disabled"),q)},{children:[p?(0,e.jsxs)("label",l({className:"single-box-label"},{children:[p,y&&(0,e.jsx)("span",l({className:"single-box-label-required"},{children:"*"}),void 0),x&&(0,e.jsx)("span",{children:x},void 0)]}),void 0):null,(0,e.jsx)("div",l({className:"single-box-content"},{children:P.map((function(t,o){return(0,e.jsxs)("div",l({className:"single-box-content-item"},{children:[(0,e.jsx)(n.default,{disabled:m,value:t,placeholder:f,size:u,onChange:L(o)},void 0),(0,e.jsx)("span",l({className:"single-box-content-item-svg"},{children:(0,e.jsx)(a(),{onClick:E(o)},void 0)}),void 0)]}),o)}))}),void 0),(0,e.jsx)("div",l({className:"single-box-add",onClick:function(){m||(P.push(""),void 0===o.value&&k(s([],P,!0)),N&&N(P))}},{children:(0,e.jsx)(r(),{},void 0)}),void 0),O&&(0,e.jsx)("p",l({className:"single-box-error"},{children:O}),void 0)]}),void 0)};d.default=c}(),d}()}));
|
|
14
|
+
*/i(7418);var n=i(9297),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var r=Symbol.for;o=r("react.element"),t.Fragment=r("react.fragment")}var l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,d={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,i){var n,r={},c=null,s=null;for(n in void 0!==i&&(c=""+i),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(s=t.ref),t)a.call(t,n)&&!d.hasOwnProperty(n)&&(r[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===r[n]&&(r[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:s,props:r,_owner:l.current}}t.jsx=c,t.jsxs=c},5893:function(e,t,i){"use strict";e.exports=i(5251)},9271:function(e,t,i){var n=i(3379),o=i(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},3492:function(e,t,i){var n=i(3379),o=i(5714);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},6894:function(e,t,i){var n=i(3379),o=i(2645);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},6202:function(e,t,i){var n=i(3379),o=i(3637);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},2310:function(e,t,i){var n=i(3379),o=i(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},3379:function(e,t,i){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),l=[];function a(e){for(var t=-1,i=0;i<l.length;i++)if(l[i].identifier===e){t=i;break}return t}function d(e,t){for(var i={},n=[],o=0;o<e.length;o++){var r=e[o],d=t.base?r[0]+t.base:r[0],c=i[d]||0,s="".concat(d," ").concat(c);i[d]=c+1;var u=a(s),f={css:r[1],media:r[2],sourceMap:r[3]};-1!==u?(l[u].references++,l[u].updater(f)):l.push({identifier:s,updater:h(f,t),references:1}),n.push(s)}return n}function c(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=i.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var l=r(e.insert||"head");if(!l)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");l.appendChild(t)}return t}var s,u=(s=[],function(e,t){return s[e]=t,s.filter(Boolean).join("\n")});function f(e,t,i,n){var o=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=u(t,o);else{var r=document.createTextNode(o),l=e.childNodes;l[t]&&e.removeChild(l[t]),l.length?e.insertBefore(r,l[t]):e.appendChild(r)}}function p(e,t,i){var n=i.css,o=i.media,r=i.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var x=null,g=0;function h(e,t){var i,n,o;if(t.singleton){var r=g++;i=x||(x=c(t)),n=f.bind(null,i,r,!1),o=f.bind(null,i,r,!0)}else i=c(t),n=p.bind(null,i,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var i=d(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var o=a(i[n]);l[o].references--}for(var r=d(e,t),c=0;c<i.length;c++){var s=a(i[c]);0===l[s].references&&(l[s].updater(),l.splice(s,1))}i=r}}}},7839:function(e,t,i){"use strict";var n=i(5893),o=i(9297),r=i(7371),l=(i(9271),function(){return l=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)});t.default=function(e){var t=e.children,i=e.placement,a=void 0===i?"bottom-start":i,d=e.tips,c=void 0===d?"":d,s=e.className,u=void 0===s?"":s,f=(0,o.useRef)(),p=(0,o.useState)(""),x=p[0],g=p[1];(0,o.useEffect)((function(){g(c)}),[c]);var h;return(0,n.jsx)("div",l({ref:f,className:(h="paraui-auto-tips",u&&(h+=" "+u),h),onMouseOver:function(e){f.current&&f.current.scrollWidth>f.current.offsetWidth?g(c||f.current.innerText):g("")}},{children:(0,n.jsx)(r.default,l({title:x,placement:a},{children:(0,n.jsx)("div",l({className:"auto-tips-content"},{children:t}),void 0)}),void 0)}),void 0)}},7502:function(e,t,i){"use strict";var n=i(5893),o=i(9297),r=i(1102),l=i.n(r),a=(i(3492),function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)});t.default=function(e){var t=e.className,i=e.style,r=e.opacity,d=void 0===r?.7:r,c=(0,o.useRef)(null);(0,o.useEffect)((function(){c&&c.current&&c.current.parentNode&&((getComputedStyle(c.current.parentNode)||{}).position||(c.current.parentNode.style.position="relative"))}),[]);var s;return(0,n.jsxs)("div",a({className:(s="paraui-loading",t&&(s+=" "+t),s),style:i,ref:c},{children:[(0,n.jsx)("div",a({className:"paraui-loading-box"},{children:(0,n.jsx)(l(),{},void 0)}),void 0),(0,n.jsx)("div",{className:"paraui-loading-mask",style:{opacity:d}},void 0)]}),void 0)}},7320:function(e,t,i){"use strict";var n=i(5893),o=i(9297),r=i(1731),l=i(7839),a=i(7502),d=i(8528),c=i.n(d),s=i(6570),u=i.n(s),f=i(3475),p=(i(6202),function(){return p=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},p.apply(this,arguments)}),x=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i};t.default=function(e){var t=e.className,i=e.size,d=void 0===i?"large":i,s=e.labelMode,g=void 0===s?"outside":s,h=e.placeholder,b=void 0===h?"":h,v=e.label,m=void 0===v?"":v,w=e.disabled,y=void 0!==w&&w,j=e.multiline,S=void 0!==j&&j,O=e.required,k=void 0!==O&&O,C=e.labelSign,N=e.rows,P=void 0===N?2:N,q=e.error,E=void 0!==q&&q,_=e.helperText,L=void 0===_?"":_,M=e.addonBefore,T=void 0===M?"":M,F=e.addonAfter,I=void 0===F?"":F,R=(e.defaultValue,e.value),z=e.autoFocus,A=void 0!==z&&z,D=e.type,U=void 0===D?"text":D,B=e.onClickIcon,H=e.rightIcon,K=e.showRightIcon,V=void 0===K||K,J=e.limitLength,W=e.fetchSuggestions,Z=e.selectPopoverClass,$=e.renderSelectItem,Y=e.showSelectName,G=void 0===Y?"value":Y,Q=e.onBlur,X=e.onFocus,ee=e.onChange,te=e.onKeydown,ie=e.onKeyUp,ne=e.onEnter,oe=e.onClickAddonBefore,re=e.onClickAddonAfter,le=e.onSelect,ae=x(e,["className","size","labelMode","placeholder","label","disabled","multiline","required","labelSign","rows","error","helperText","addonBefore","addonAfter","defaultValue","value","autoFocus","type","onClickIcon","rightIcon","showRightIcon","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect"]),de=(0,o.useState)("text-field-select-content-"+(0,f.UUID)())[0],ce=(0,o.useState)(!0),se=ce[0],ue=ce[1],fe=(0,o.useState)(""),pe=fe[0],xe=fe[1],ge=(0,o.useState)(!1),he=ge[0],be=ge[1],ve=(0,o.useState)("text"),me=ve[0],we=ve[1],ye=(0,o.useState)(!1),je=ye[0],Se=ye[1],Oe=(0,o.useState)(!1),ke=Oe[0],Ce=Oe[1],Ne=(0,o.useState)([]),Pe=Ne[0],qe=Ne[1],Ee=((0,o.useState)({isCompositions:!0})[0],(0,o.useRef)(null)),_e=(0,o.useRef)(null);(0,o.useEffect)((function(){void 0!==e.defaultValue&&(xe(e.defaultValue),Te(e.defaultValue))}),[]),(0,o.useEffect)((function(){U!==me&&we(U)}),[U]),(0,o.useEffect)((function(){void 0!==R&&(xe(R),Te(R))}),[R]),(0,o.useEffect)((function(){ue(""===pe||void 0===pe)}),[pe]),(0,o.useEffect)((function(){W&&Se(he)}),[he,W]),(0,o.useEffect)((function(){return je?window.addEventListener("keydown",ze):window.removeEventListener("keydown",ze),function(){window.removeEventListener("keydown",ze)}}),[je]),(0,o.useEffect)((function(){if(!he&&pe){var t=Me(pe);if(t!==pe){var i={};i.target=Ee.current,i.target.value=t,e.onChange&&e.onChange(i)}}}),[pe,he]);var Le,Me=function(t){var i=t;return e.limitLength&&t.toString().length>e.limitLength&&(i=i.toString().substr(0,e.limitLength)),i},Te=function(e){Ee&&Ee.current&&(Ee.current.value=e,Ee.current.setAttribute("value",e))},Fe=function(){y||(ue(!1),(Ee&&Ee.current).focus())},Ie=function(e){var t=e.selectDom,i=e.keyCode,n=e.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=t.querySelector(r)):n=t.querySelector(".text-field-select-content-item"),n&&(n.classList.add("text-field-select-content-item-keydown"),Re(n,t))},Re=function(e,t){var i=t.clientHeight,n=e.offsetTop+e.clientHeight-i;t.scrollTop=n>0?n:0},ze=function(e){var t=document.querySelector("."+de),i=null,n=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&n){var o=n.dataset.val;We(JSON.parse(o))(e),(Ee&&Ee.current).blur()}n&&(i=n,n.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Ie({selectDom:t,keyCode:e.keyCode,currentDom:i}),38===e.keyCode&&Ie({selectDom:t,keyCode:e.keyCode,currentDom:i})},Ae=function(e){be(!1),""===e.target.value&&ue(!0),Q&&Q(e)},De=function(e){Ce(!0),W&&W(e,(function(e){qe(e||[]),Ce(!1)}))},Ue=function(e){be(!0),X&&X(e),De(e.target.value)},Be=function(t){var i=t.target.value;i&&ue(!1),void 0===e.value&&(xe(i),Te(i)),ee&&ee(t),De(t.target.value)},He=function(e){13===e.keyCode&&ne&&ne(e),te&&te(e)},Ke=function(e){ie&&ie(e)},Ve=function(e){"password"===U&&("text"===me&&we("password"),"password"===me&&we("text")),B&&B(e)},Je=function(){Se(!1)},We=function(e){return function(t){le&&le(e)}},Ze=(0,o.useMemo)((function(){return(0,n.jsx)(n.Fragment,{children:void 0!==J&&(0,n.jsx)("span",p({className:"length-limit"},{children:(pe?pe.toString().length:0)+"/"+J}),void 0)},void 0)}),[J,pe]),$e=(0,o.useMemo)((function(){var e=H||("password"===U?"password"===me?(0,n.jsx)(u(),{},void 0):(0,n.jsx)(c(),{},void 0):null);return(0,n.jsx)(n.Fragment,{children:V&&e&&(0,n.jsx)("span",p({className:"right-icon",onClick:Ve},{children:e}),void 0)},void 0)}),[V,H,U,me]),Ye=(0,o.useMemo)((function(){return(0,n.jsxs)("div",p({className:"text-field-content-within",ref:_e},{children:[(0,n.jsxs)("div",p({className:"text-field-content-within-input"},{children:[S?(0,n.jsx)("textarea",p({ref:Ee,rows:P,onBlur:Ae,onFocus:Ue,onChange:Be,onKeyDown:He,onKeyUp:Ke,disabled:y},ae),void 0):(0,n.jsx)("input",p({ref:Ee,type:me,onBlur:Ae,onFocus:Ue,onChange:Be,onKeyDown:He,onKeyUp:Ke,disabled:y},ae),void 0),se&&!he&&(0,n.jsx)("span",p({className:"text-field-label-placeholder",onClick:Fe},{children:"outside"===g?b:(0,n.jsxs)(n.Fragment,{children:[m||b,k&&(0,n.jsx)("span",p({className:"text-field-required"},{children:"*"}),void 0),C&&(0,n.jsx)("span",{children:C},void 0)]},void 0)}),void 0)]}),void 0),Ze,$e]}),void 0)}),[se,he,A,me,pe,Ze,$e,g,b,m,y,S,P,ae,ee,W]),Ge=(0,o.useMemo)((function(){var e;return(0,n.jsxs)("div",p({className:(e="text-field-select-content",ke&&(e+=" text-field-select-content-loading"),de&&(e+=" "+de),e),style:{width:(_e&&_e.current?_e.current.offsetWidth:0)+"px"}},{children:[Pe&&Pe.map((function(e,t){return(0,n.jsx)("div",p({className:"text-field-select-content-item",onMouseDown:We(e),"data-val":JSON.stringify(e)},{children:$?$(e):(0,n.jsx)(l.default,{children:e[G]},void 0)}),t)})),ke&&(0,n.jsx)(a.default,{},void 0)]}),void 0)}),[_e,je,Pe,$,G,le,ke,de]),Qe=(0,o.useMemo)((function(){return(0,n.jsx)(r.Tooltip,p({open:je,title:Ge,onClose:Je,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:(e="paraui-text-field-select",d&&(e+=" paraui-text-field-select-"+d),Z&&(e+=" "+Z),e)}},{children:Ye}),void 0);var e}),[se,he,A,me,pe,Ze,$e,g,b,m,y,S,P,ae,ee,W,le,_e,je,Z,d]),Xe=(0,o.useMemo)((function(){var e=Boolean(k||C||m);return(0,n.jsx)(n.Fragment,{children:"outside"===g&&e&&(0,n.jsxs)("label",p({className:"text-field-label"},{children:[m,k&&(0,n.jsx)("span",p({className:"text-field-required"},{children:"*"}),void 0),C&&(0,n.jsx)("span",{children:C},void 0)]}),void 0)},void 0)}),[g,m,C,k]);return(0,n.jsxs)("div",p({className:(Le="paraui-text-field",Le+=" text-field",d&&!S&&(Le+=" text-field-"+d),t&&(Le+=" "+t),E&&(Le+=" text-field-error"),he&&(Le+=" text-field-focus"),y&&(Le+=" text-field-disabled"),S&&(Le+=" text-field-multiline"),e.limitLength&&pe&&pe.toString().length>e.limitLength&&(Le+=" text-field-limit"),Le)},{children:[Xe,(0,n.jsxs)("div",p({className:"text-field-content"},{children:[T&&(0,n.jsx)("div",p({className:"text-field-content-before",onClick:function(e){oe&&oe(e)}},{children:T}),void 0),W?Qe:Ye,I&&(0,n.jsx)("div",p({className:"text-field-content-after",onClick:function(e){re&&re(e)}},{children:I}),void 0)]}),void 0),L&&(0,n.jsx)("p",p({className:"text-field-error-text"},{children:L}),void 0)]}),void 0)}},7371:function(e,t,i){"use strict";var n=i(5893),o=i(1731),r=i(6010),l=(i(2310),function(){return l=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)});t.default=function(e){var t,i=e.placement,a=void 0===i?"bottom":i,d=l(l({},e.classes),{popper:(0,r.Z)("paraui-tooltip",null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==a?void 0:a.includes("left"))||(null==a?void 0:a.includes("right")),"paraui-tooltip-top-bottom":(null==a?void 0:a.includes("top"))||(null==a?void 0:a.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,l({},e,{classes:d}),void 0)}},1731:function(e){"use strict";e.exports=t},6243:function(e){"use strict";e.exports=a},1102:function(e){"use strict";e.exports=i},5191:function(e){"use strict";e.exports=l},6570:function(e){"use strict";e.exports=o},8528:function(e){"use strict";e.exports=n},3475:function(e){"use strict";e.exports=r},9297:function(t){"use strict";t.exports=e}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var i=c[e]={id:e,exports:{}};return d[e](i,i.exports,s),i.exports}s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return function(){"use strict";s.r(u),s.d(u,{SingleBox:function(){return c}});var e=s(5893),t=s(9297),i=s(7320),n=s(5191),o=s.n(n),r=s(6243),l=s.n(r),a=(s(6894),function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)}),d=function(e,t,i){if(i||2===arguments.length)for(var n,o=0,r=t.length;o<r;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},c=function(n){var r=n.className,c=n.size,s=void 0===c?"large":c,u=n.placeholder,f=void 0===u?"":u,p=n.label,x=void 0===p?"":p,g=n.labelSign,h=n.disabled,b=void 0!==h&&h,v=n.required,m=void 0!==v&&v,w=n.error,y=void 0!==w&&w,j=n.helperText,S=void 0===j?"":j,O=n.value,k=n.onChange,C=(0,t.useState)([]),N=C[0],P=C[1];(0,t.useEffect)((function(){void 0!==n.defaultValue&&P(d([],n.defaultValue,!0))}),[]),(0,t.useEffect)((function(){void 0!==O&&P(d([],O,!0))}),[O]);var q,E=function(e){return function(){b||(N.splice(e,1),void 0===n.value&&P(d([],N,!0)),k&&k(N))}},_=function(e){return function(t){N[e]=t.target.value,void 0===n.value&&P(d([],N,!0)),k&&k(N)}};return(0,e.jsxs)("div",a({className:(q="paraui-single-box single-box",r&&(q+=" "+r),s&&(q+=" single-box-"+s),y&&(q+=" single-box-error"),b&&(q+=" single-box-disabled"),q)},{children:[x?(0,e.jsxs)("label",a({className:"single-box-label"},{children:[x,m&&(0,e.jsx)("span",a({className:"single-box-label-required"},{children:"*"}),void 0),g&&(0,e.jsx)("span",{children:g},void 0)]}),void 0):null,(0,e.jsx)("div",a({className:"single-box-content"},{children:N.map((function(t,n){return(0,e.jsxs)("div",a({className:"single-box-content-item"},{children:[(0,e.jsx)(i.default,{disabled:b,value:t,placeholder:f,size:s,onChange:_(n)},void 0),(0,e.jsx)("span",a({className:"single-box-content-item-svg"},{children:(0,e.jsx)(l(),{onClick:E(n)},void 0)}),void 0)]}),n)}))}),void 0),(0,e.jsx)("div",a({className:"single-box-add",onClick:function(){b||(N.push(""),void 0===n.value&&P(d([],N,!0)),k&&k(N))}},{children:(0,e.jsx)(o(),{},void 0)}),void 0),S&&(0,e.jsx)("p",a({className:"single-box-error"},{children:S}),void 0)]}),void 0)};u.default=c}(),u}()}));
|
package/Slider/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
!function(e
|
|
1
|
+
!function(r,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("rc-slider")):"function"==typeof define&&define.amd?define(["react","rc-slider"],e):"object"==typeof exports?exports.ParaUI=e(require("react"),require("rc-slider")):r.ParaUI=e(r.react,r["rc-slider"])}(self,(function(r,e){return function(){var t={8872:function(r,e,t){(e=t(3645)(!1)).push([r.id,".paraui-slider{position:relative;height:8px;padding:0;width:100%;border-radius:4px;touch-action:none;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.paraui-slider *{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.paraui-slider-rail{position:absolute;width:100%;background-color:rgba(171,176,185,0.2);height:8px;border-radius:4px}.paraui-slider-track{position:absolute;left:0;height:8px;border-radius:4px;background-color:#3666d6}.paraui-slider-handle{position:absolute;width:16px;height:16px;cursor:pointer;margin-top:-4px;border-radius:50%;border:solid 2px #3666d6;background-color:#fff;touch-action:pan-x}.paraui-slider-handle-dragging{border-color:#3666d6;box-shadow:0 0 5px rgba(54,102,214,0.2);outline:2px solid rgba(54,102,214,0.2)}.paraui-slider-handle:focus{outline:none}.paraui-slider-handle-click-focused:focus{border-color:#3666d6;box-shadow:unset}.paraui-slider-handle:hover{border-color:#3666d6}.paraui-slider-handle:active{border-color:#3666d6;box-shadow:0 0 5px rgba(54,102,214,0.2);outline:2px solid rgba(54,102,214,0.2);cursor:grabbing}.paraui-slider-mark{position:absolute;top:18px;left:0;width:100%;font-size:12px}.paraui-slider-mark-text{position:absolute;display:inline-block;vertical-align:middle;text-align:center;cursor:pointer;color:#999}.paraui-slider-mark-text-active{color:#666}.paraui-slider-step{position:absolute;width:100%;height:8px;background:transparent}.paraui-slider-dot{position:absolute;bottom:-2px;margin-left:-4px;width:12px;height:12px;border:solid 2px rgba(171,176,185,0.4);background-color:#fff;cursor:pointer;border-radius:50%;vertical-align:middle}.paraui-slider-dot-active{border-color:#3666d6}.paraui-slider-dot-reverse{margin-right:-4px}.paraui-slider-disabled{background-color:#e9e9e9}.paraui-slider-disabled .paraui-slider-track{background-color:#ccc}.paraui-slider-disabled .paraui-slider-handle,.paraui-slider-disabled .paraui-slider-dot{border-color:#ccc;box-shadow:none;background-color:#fff;cursor:not-allowed}.paraui-slider-disabled .paraui-slider-mark-text,.paraui-slider-disabled .paraui-slider-dot{cursor:not-allowed !important}.paraui-slider-vertical{width:14px;height:100%;padding:0 5px}.paraui-slider-vertical .paraui-slider-rail{height:100%;width:4px}.paraui-slider-vertical .paraui-slider-track{left:5px;bottom:0;width:4px}.paraui-slider-vertical .paraui-slider-handle{margin-left:-5px;touch-action:pan-y}.paraui-slider-vertical .paraui-slider-mark{top:0;left:18px;height:100%}.paraui-slider-vertical .paraui-slider-step{height:100%;width:4px}.paraui-slider-vertical .paraui-slider-dot{left:2px;margin-bottom:-4px}.paraui-slider-vertical .paraui-slider-dot:first-child{margin-bottom:-4px}.paraui-slider-vertical .paraui-slider-dot:last-child{margin-bottom:-4px}.paraui-slider-tooltip-zoom-down-enter,.paraui-slider-tooltip-zoom-down-appear{animation-duration:0.3s;animation-fill-mode:both;display:block !important;animation-play-state:paused}.paraui-slider-tooltip-zoom-down-leave{animation-duration:0.3s;animation-fill-mode:both;display:block !important;animation-play-state:paused}.paraui-slider-tooltip-zoom-down-enter.paraui-slider-tooltip-zoom-down-enter-active,.paraui-slider-tooltip-zoom-down-appear.paraui-slider-tooltip-zoom-down-appear-active{animation-name:rcSliderTooltipZoomDownIn;animation-play-state:running}.paraui-slider-tooltip-zoom-down-leave.paraui-slider-tooltip-zoom-down-leave-active{animation-name:rcSliderTooltipZoomDownOut;animation-play-state:running}.paraui-slider-tooltip-zoom-down-enter,.paraui-slider-tooltip-zoom-down-appear{transform:scale(0, 0);animation-timing-function:cubic-bezier(0.23, 1, 0.32, 1)}.paraui-slider-tooltip-zoom-down-leave{animation-timing-function:cubic-bezier(0.755, 0.05, 0.855, 0.06)}@keyframes rcSliderTooltipZoomDownIn{0%{opacity:0;transform-origin:50% 100%;transform:scale(0, 0)}100%{transform-origin:50% 100%;transform:scale(1, 1)}}@keyframes rcSliderTooltipZoomDownOut{0%{transform-origin:50% 100%;transform:scale(1, 1)}100%{opacity:0;transform-origin:50% 100%;transform:scale(0, 0)}}.paraui-slider-tooltip{position:absolute;display:block;left:-9999px;top:-9999px;max-width:250px;z-index:1500;visibility:visible;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.paraui-slider-tooltip *{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.paraui-slider-tooltip-hidden{display:none}.paraui-slider-tooltip-placement-top{padding:4px 0 8px 0}.paraui-slider-tooltip-inner{min-width:24px;font-size:14px;line-height:1;color:rgba(46,55,67,0.701961);text-align:center;text-decoration:none;background-color:transparent;border-radius:6px;white-space:nowrap;box-shadow:none}.paraui-slider-tooltip-arrow{display:none;position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.paraui-slider-tooltip-placement-top .paraui-slider-tooltip-arrow{bottom:4px;left:50%;margin-left:-4px;border-width:4px 4px 0;border-top-color:#6c6c6c}\n",""]),r.exports=e},3645:function(r){"use strict";r.exports=function(r){var e=[];return e.toString=function(){return this.map((function(e){var t=function(r,e){var t=r[1]||"",o=r[3];if(!o)return t;if(e&&"function"==typeof btoa){var i=(a=o,l=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(s," */")),n=o.sources.map((function(r){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(r," */")}));return[t].concat(n).concat([i]).join("\n")}var a,l,s;return[t].join("\n")}(e,r);return e[2]?"@media ".concat(e[2]," {").concat(t,"}"):t})).join("")},e.i=function(r,t,o){"string"==typeof r&&(r=[[null,r,""]]);var i={};if(o)for(var n=0;n<this.length;n++){var a=this[n][0];null!=a&&(i[a]=!0)}for(var l=0;l<r.length;l++){var s=[].concat(r[l]);o&&i[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),e.push(s))}},e}},7418:function(r){"use strict";
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
|
-
*/
|
|
7
|
-
var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,u,f=o(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))t.call(a,l)&&(f[l]=a[l]);if(r){u=r(a);for(var p=0;p<u.length;p++)n.call(a,u[p])&&(f[u[p]]=a[u[p]])}}return f}},5251:function(e,r,t){
|
|
6
|
+
*/var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(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 o={};return"abcdefghijklmnopqrst".split("").forEach((function(r){o[r]=r})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(r){return!1}}()?Object.assign:function(r,n){for(var a,l,s=i(r),p=1;p<arguments.length;p++){for(var d in a=Object(arguments[p]))t.call(a,d)&&(s[d]=a[d]);if(e){l=e(a);for(var c=0;c<l.length;c++)o.call(a,l[c])&&(s[l[c]]=a[l[c]])}}return s}},5251:function(r,e,t){"use strict";
|
|
8
7
|
/** @license React v17.0.2
|
|
9
8
|
* react-jsx-runtime.production.min.js
|
|
10
9
|
*
|
|
@@ -13,4 +12,4 @@ var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
13
12
|
* This source code is licensed under the MIT license found in the
|
|
14
13
|
* LICENSE file in the root directory of this source tree.
|
|
15
14
|
*/
|
|
16
|
-
t(7418);var
|
|
15
|
+
t(7418);var o=t(9297),i=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;i=n("react.element"),n("react.fragment")}var a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function p(r,e,t){var o,n={},p=null,d=null;for(o in void 0!==t&&(p=""+t),void 0!==e.key&&(p=""+e.key),void 0!==e.ref&&(d=e.ref),e)l.call(e,o)&&!s.hasOwnProperty(o)&&(n[o]=e[o]);if(r&&r.defaultProps)for(o in e=r.defaultProps)void 0===n[o]&&(n[o]=e[o]);return{$$typeof:i,type:r,key:p,ref:d,props:n,_owner:a.current}}e.jsx=p},5893:function(r,e,t){"use strict";r.exports=t(5251)},8677:function(r,e,t){var o=t(3379),i=t(8872);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[r.id,i,""]]);var n={insert:("body","body"),singleton:!1};o(i,n);r.exports=i.locals||{}},3379:function(r,e,t){"use strict";var o,i=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},n=function(){var r={};return function(e){if(void 0===r[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(r){t=null}r[e]=t}return r[e]}}(),a=[];function l(r){for(var e=-1,t=0;t<a.length;t++)if(a[t].identifier===r){e=t;break}return e}function s(r,e){for(var t={},o=[],i=0;i<r.length;i++){var n=r[i],s=e.base?n[0]+e.base:n[0],p=t[s]||0,d="".concat(s," ").concat(p);t[s]=p+1;var c=l(d),u={css:n[1],media:n[2],sourceMap:n[3]};-1!==c?(a[c].references++,a[c].updater(u)):a.push({identifier:d,updater:h(u,e),references:1}),o.push(d)}return o}function p(r){var e=document.createElement("style"),o=r.attributes||{};if(void 0===o.nonce){var i=t.nc;i&&(o.nonce=i)}if(Object.keys(o).forEach((function(r){e.setAttribute(r,o[r])})),"function"==typeof r.insert)r.insert(e);else{var a=n(r.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 d,c=(d=[],function(r,e){return d[r]=e,d.filter(Boolean).join("\n")});function u(r,e,t,o){var i=t?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(r.styleSheet)r.styleSheet.cssText=c(e,i);else{var n=document.createTextNode(i),a=r.childNodes;a[e]&&r.removeChild(a[e]),a.length?r.insertBefore(n,a[e]):r.appendChild(n)}}function f(r,e,t){var o=t.css,i=t.media,n=t.sourceMap;if(i?r.setAttribute("media",i):r.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),r.styleSheet)r.styleSheet.cssText=o;else{for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(document.createTextNode(o))}}var b=null,g=0;function h(r,e){var t,o,i;if(e.singleton){var n=g++;t=b||(b=p(e)),o=u.bind(null,t,n,!1),i=u.bind(null,t,n,!0)}else t=p(e),o=f.bind(null,t,e),i=function(){!function(r){if(null===r.parentNode)return!1;r.parentNode.removeChild(r)}(t)};return o(r),function(e){if(e){if(e.css===r.css&&e.media===r.media&&e.sourceMap===r.sourceMap)return;o(r=e)}else i()}}r.exports=function(r,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var t=s(r=r||[],e);return function(r){if(r=r||[],"[object Array]"===Object.prototype.toString.call(r)){for(var o=0;o<t.length;o++){var i=l(t[o]);a[i].references--}for(var n=s(r,e),p=0;p<t.length;p++){var d=l(t[p]);0===a[d].references&&(a[d].updater(),a.splice(d,1))}t=n}}}},4500:function(r){"use strict";r.exports=e},9297:function(e){"use strict";e.exports=r}},o={};function i(r){var e=o[r];if(void 0!==e)return e.exports;var n=o[r]={id:r,exports:{}};return t[r](n,n.exports,i),n.exports}i.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return i.d(e,{a:e}),e},i.d=function(r,e){for(var t in e)i.o(e,t)&&!i.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})},i.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},i.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var n={};return function(){"use strict";i.r(n),i.d(n,{Slider:function(){return p}});var r=i(5893),e=i(9297),t=i.n(e),o=i(4500),a=i.n(o),l=(i(8677),function(){return l=Object.assign||function(r){for(var e,t=1,o=arguments.length;t<o;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r},l.apply(this,arguments)}),s=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(r);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(r,o[i])&&(t[o[i]]=r[o[i]])}return t},p=function(e){var i,n=e.range,p=e.step,d=s(e,["range","step"]),c="paraui-slider",u="paraui-slider-tooltip";"object"==typeof n&&(i=n.draggableTrack);var f=t().useState({}),b=f[0],g=f[1],h=function(r,e){g((function(t){var o;return l(l({},t),((o={})[r]=e,o))}))},m=function(r,e){return r||(e?"right":"top")},v=function(r){return"number"==typeof r?r.toString():""},x=function(t){var i=t.tooltipPrefixCls,n=t.info,a=n.value,p=n.index,d=n.dragging,c=s(n,["value","index","dragging"]),u=e.tipFormatter,f=void 0===u?v:u,g=e.tooltipVisible,x=e.tooltipPlacement,y=e.getTooltipPopupContainer,w=void 0===y?function(r){return r}:y,O=e.vertical,j=!!f&&(b[p]||d),k=g||void 0===g&&j;return(0,r.jsx)(o.SliderTooltip,l({prefixCls:i,overlay:f?f(a):"",visible:k,placement:m(x,O),getTooltipContainer:w,destroyTooltipOnHide:!0},{children:(0,r.jsx)(o.Handle,l({},c,{value:a,onMouseEnter:function(){return h(p,!0)},onMouseLeave:function(){return h(p,!1)}}),void 0)}),p)};return n?(0,r.jsx)(o.Range,l({},d,{step:p,pushable:d.pushable,draggableTrack:i,handle:function(r){return x({tooltipPrefixCls:u,info:r})},prefixCls:c}),void 0):(0,r.jsx)(a(),l({},d,{step:p,handle:function(r){return x({tooltipPrefixCls:u,info:r})},prefixCls:c}),void 0)};n.default=p}(),n}()}));
|
package/Split/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ParaUI=t(require("react")):e.ParaUI=t(e.react)}(self,(function(e){return function(){"use strict";var t={7418:function(e){
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ParaUI=t(require("react")):e.ParaUI=t(e.react)}(self,(function(e){return function(){var t={4941:function(e,t,n){(t=n(3645)(!1)).push([e.id,".para-split{display:flex;min-height:200px;-webkit-user-select:none;user-select:none}.para-split-left{background-color:#ffffff;position:relative;min-width:201px}.para-split-left .para-split-separator{display:flex;justify-content:center;align-items:center;position:absolute;top:0;right:0;width:6px;height:100%;background-color:white;box-shadow:0 0 2px rgba(0,0,0,0.35);cursor:col-resize}.para-split-left .para-split-separator i{display:inline-block;height:14px;width:1px;background-color:#e9e9e9;margin:0 1px}.para-split-left-content{padding:20px 34px 20px 20px}.para-split .para-split-right{background-color:#ffffff;flex:1}.para-split .para-split-right-content{padding:20px}\n",""]),e.exports=t},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(s," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,c,s;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);r&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},7418:function(e){"use strict";
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
|
-
*/
|
|
7
|
-
var t=Object.getOwnPropertySymbols,r=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 t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var c,u,a=o(e),l=1;l<arguments.length;l++){for(var f in c=Object(arguments[l]))r.call(c,f)&&(a[f]=c[f]);if(t){u=t(c);for(var s=0;s<u.length;s++)n.call(c,u[s])&&(a[u[s]]=c[u[s]])}}return a}},5251:function(e,t,r){
|
|
6
|
+
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var 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,i){for(var a,c,s=o(e),u=1;u<arguments.length;u++){for(var l in a=Object(arguments[u]))n.call(a,l)&&(s[l]=a[l]);if(t){c=t(a);for(var f=0;f<c.length;f++)r.call(a,c[f])&&(s[c[f]]=a[c[f]])}}return s}},5251:function(e,t,n){"use strict";
|
|
8
7
|
/** @license React v17.0.2
|
|
9
8
|
* react-jsx-runtime.production.min.js
|
|
10
9
|
*
|
|
@@ -13,4 +12,4 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
13
12
|
* This source code is licensed under the MIT license found in the
|
|
14
13
|
* LICENSE file in the root directory of this source tree.
|
|
15
14
|
*/
|
|
16
|
-
|
|
15
|
+
n(7418);var r=n(9297),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=r.__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 u(e,t,n){var r,i={},u=null,l=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)c.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}t.jsx=u,t.jsxs=u},5893:function(e,t,n){"use strict";e.exports=n(5251)},6333:function(e,t,n){var r=n(3379),o=n(4941);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};r(o,i);e.exports=o.locals||{}},3379:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],s=t.base?i[0]+t.base:i[0],u=n[s]||0,l="".concat(s," ").concat(u);n[s]=u+1;var f=c(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:m(p,t),references:1}),r.push(l)}return r}function u(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.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(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function p(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var v=null,h=0;function m(e,t){var n,r,o;if(t.singleton){var i=h++;n=v||(v=u(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=u(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=c(n[r]);a[o].references--}for(var i=s(e,t),u=0;u<n.length;u++){var l=c(n[u]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},9297:function(t){"use strict";t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,exports:{}};return t[e](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";r.r(o);var e=r(5893),t=r(9297),n=r.n(t),i=(r(6333),function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)});o.default=function(t){var r,o,a,c=t.minWidth,s=void 0===c?200:c,u=t.children,l=n().useRef(null),f=n().useRef(null),p=n().useRef(null),d=n().useState({left:null,right:null}),v=d[0],h=d[1],m=function(e){r=e.clientX,a=g(p.current),o=g(f.current),document.documentElement.addEventListener("mousemove",b),document.documentElement.addEventListener("mouseup",y)},b=function(e){var t=o+e.clientX-r;a-t<=s||t<=s||(f.current.style.width=t+"px")},y=function(e){document.documentElement.removeEventListener("mousemove",b),document.documentElement.removeEventListener("mouseup",y)},g=function(e){return parseInt(e.getBoundingClientRect().width,10)};return n().useEffect((function(){var e;l.current&&(null===(e=l.current)||void 0===e||e.addEventListener("mousedown",m))}),[l]),n().useEffect((function(){if(u&&"object"==typeof u&&h({left:u,right:null}),u&&Array.isArray(u)){var e=u.slice(0,Math.floor(u.length/2)),t=u.slice(Math.floor(u.length/2),u.length);h({left:e,right:t})}}),[u]),(0,e.jsxs)("div",i({className:"para-split",ref:p},{children:[(0,e.jsxs)("div",i({className:"para-split-left"},{children:[(0,e.jsx)("div",i({className:"para-split-left-content",ref:f},{children:v.left}),void 0),(0,e.jsxs)("div",i({className:"para-split-separator",ref:l},{children:[(0,e.jsx)("i",{},void 0),(0,e.jsx)("i",{},void 0)]}),void 0)]}),void 0),(0,e.jsx)("div",i({className:"para-split-right"},{children:(0,e.jsx)("div",i({className:"para-split-right-content"},{children:v.right}),void 0)}),void 0)]}),void 0)}}(),o}()}));
|
package/Stepper/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@material-ui/core"),require("@para-ui/icons/
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@material-ui/core"),require("@para-ui/icons/One"),require("@para-ui/icons/Two"),require("@para-ui/icons/Three"),require("@para-ui/icons/Four"),require("@para-ui/icons/Five"),require("@para-ui/icons/Six"),require("@para-ui/icons/Seven"),require("@para-ui/icons/Eight"),require("@para-ui/icons/Nine"),require("@para-ui/icons/Check")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","@para-ui/icons/One","@para-ui/icons/Two","@para-ui/icons/Three","@para-ui/icons/Four","@para-ui/icons/Five","@para-ui/icons/Six","@para-ui/icons/Seven","@para-ui/icons/Eight","@para-ui/icons/Nine","@para-ui/icons/Check"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@material-ui/core"),require("@para-ui/icons/One"),require("@para-ui/icons/Two"),require("@para-ui/icons/Three"),require("@para-ui/icons/Four"),require("@para-ui/icons/Five"),require("@para-ui/icons/Six"),require("@para-ui/icons/Seven"),require("@para-ui/icons/Eight"),require("@para-ui/icons/Nine"),require("@para-ui/icons/Check")):e.ParaUI=r(e.react,e["@material-ui/core"],e["@para-ui/icons/One"],e["@para-ui/icons/Two"],e["@para-ui/icons/Three"],e["@para-ui/icons/Four"],e["@para-ui/icons/Five"],e["@para-ui/icons/Six"],e["@para-ui/icons/Seven"],e["@para-ui/icons/Eight"],e["@para-ui/icons/Nine"],e["@para-ui/icons/Check"])}(self,(function(e,r,t,n,i,o,a,c,p,s,u,l){return function(){var f={6010:function(e,r,t){"use strict";function n(e){var r,t,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=n(e[r]))&&(i&&(i+=" "),i+=t);else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function i(){for(var e,r,t=0,i="";t<arguments.length;)(e=arguments[t++])&&(r=n(e))&&(i&&(i+=" "),i+=r);return i}t.d(r,{Z:function(){return i}})},8310:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-stepper-step+div .paraui-stepper-connector>span{border:0;height:1px;background:linear-gradient(90deg, #3d66f8, #7793f9 74%, #d8dffa)}.paraui-stepper .paraui-stepper-step-label{margin-top:8px;color:rgba(46,55,67,0.701961);font-size:14px}.paraui-stepper .paraui-stepper-step-label--active{color:#3666d6}.paraui-stepper .paraui-stepper-step-label--completed{color:#2e3743}.paraui-stepper-step-icon{display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center;background-color:rgba(171,176,185,0.121569);border-radius:50%}.paraui-stepper-step-icon>svg{color:rgba(46,55,67,0.701961)}.paraui-stepper-step-icon--active{background-color:#3666d6}.paraui-stepper-step-icon--active>svg{color:#fff}.paraui-stepper-step-icon--completed{background-color:rgba(54,102,214,0.8)}.paraui-stepper-step-icon--completed>svg{color:#fff}.paraui-stepper-step-icon--one>svg{margin-left:-2px}.paraui-stepper .paraui-stepper-connector{top:15px;left:calc(-50% + 25px);right:calc(50% + 25px)}.paraui-stepper .paraui-stepper-connector>span{border-top:1px dashed rgba(171,176,185,0.4)}.paraui-stepper .paraui-stepper-connector--active>span,.paraui-stepper .paraui-stepper-connector--completed>span{border-top:1px solid rgba(171,176,185,0.4)}\n",""]),e.exports=r},3645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var t=function(e,r){var t=e[1]||"",n=e[3];if(!n)return t;if(r&&"function"==typeof btoa){var i=(a=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),p="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(p," */")),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(o).concat([i]).join("\n")}var a,c,p;return[t].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(n)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var c=0;c<e.length;c++){var p=[].concat(e[c]);n&&i[p[0]]||(t&&(p[2]?p[2]="".concat(t," and ").concat(p[2]):p[2]=t),r.push(p))}},r}},7418:function(e){"use strict";
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
|
-
*/
|
|
7
|
-
var r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},n=0;n<10;n++)r["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var a,c,u=o(e),p=1;p<arguments.length;p++){for(var s in a=Object(arguments[p]))n.call(a,s)&&(u[s]=a[s]);if(r){c=r(a);for(var f=0;f<c.length;f++)i.call(a,c[f])&&(u[c[f]]=a[c[f]])}}return u}},5251:function(e,r,n){
|
|
6
|
+
*/var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=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 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,o){for(var a,c,p=i(e),s=1;s<arguments.length;s++){for(var u in a=Object(arguments[s]))t.call(a,u)&&(p[u]=a[u]);if(r){c=r(a);for(var l=0;l<c.length;l++)n.call(a,c[l])&&(p[c[l]]=a[c[l]])}}return p}},5251:function(e,r,t){"use strict";
|
|
8
7
|
/** @license React v17.0.2
|
|
9
8
|
* react-jsx-runtime.production.min.js
|
|
10
9
|
*
|
|
@@ -13,4 +12,4 @@ var r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.pr
|
|
|
13
12
|
* This source code is licensed under the MIT license found in the
|
|
14
13
|
* LICENSE file in the root directory of this source tree.
|
|
15
14
|
*/
|
|
16
|
-
|
|
15
|
+
t(7418);var n=t(9297),i=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),o("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,p={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,t){var n,o={},s=null,u=null;for(n in void 0!==t&&(s=""+t),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(u=r.ref),r)c.call(r,n)&&!p.hasOwnProperty(n)&&(o[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===o[n]&&(o[n]=r[n]);return{$$typeof:i,type:e,key:s,ref:u,props:o,_owner:a.current}}r.jsx=s},5893:function(e,r,t){"use strict";e.exports=t(5251)},4661:function(e,r,t){var n=t(3379),i=t(8310);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:("body","body"),singleton:!1};n(i,o);e.exports=i.locals||{}},3379:function(e,r,t){"use strict";var n,i=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var e={};return function(r){if(void 0===e[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[r]=t}return e[r]}}(),a=[];function c(e){for(var r=-1,t=0;t<a.length;t++)if(a[t].identifier===e){r=t;break}return r}function p(e,r){for(var t={},n=[],i=0;i<e.length;i++){var o=e[i],p=r.base?o[0]+r.base:o[0],s=t[p]||0,u="".concat(p," ").concat(s);t[p]=s+1;var l=c(u),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==l?(a[l].references++,a[l].updater(f)):a.push({identifier:u,updater:m(f,r),references:1}),n.push(u)}return n}function s(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var i=t.nc;i&&(n.nonce=i)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var a=o(e.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(r)}return r}var u,l=(u=[],function(e,r){return u[e]=r,u.filter(Boolean).join("\n")});function f(e,r,t,n){var i=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=l(r,i);else{var o=document.createTextNode(i),a=e.childNodes;a[r]&&e.removeChild(a[r]),a.length?e.insertBefore(o,a[r]):e.appendChild(o)}}function d(e,r,t){var n=t.css,i=t.media,o=t.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,b=0;function m(e,r){var t,n,i;if(r.singleton){var o=b++;t=v||(v=s(r)),n=f.bind(null,t,o,!1),i=f.bind(null,t,o,!0)}else t=s(r),n=d.bind(null,t,r),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;n(e=r)}else i()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=i());var t=p(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var i=c(t[n]);a[i].references--}for(var o=p(e,r),s=0;s<t.length;s++){var u=c(t[s]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}t=o}}}},1731:function(e){"use strict";e.exports=r},6110:function(e){"use strict";e.exports=l},1861:function(e){"use strict";e.exports=s},2873:function(e){"use strict";e.exports=a},8764:function(e){"use strict";e.exports=o},1709:function(e){"use strict";e.exports=u},5283:function(e){"use strict";e.exports=t},1341:function(e){"use strict";e.exports=p},763:function(e){"use strict";e.exports=c},7214:function(e){"use strict";e.exports=i},7139:function(e){"use strict";e.exports=n},9297:function(r){"use strict";r.exports=e}},d={};function v(e){var r=d[e];if(void 0!==r)return r.exports;var t=d[e]={id:e,exports:{}};return f[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 b={};return function(){"use strict";v.r(b),v.d(b,{Stepper:function(){return P},default:function(){return k}});var e=v(5893),r=v(9297),t=v.n(r),n=v(1731),i=v(6010),o=v(5283),a=v.n(o),c=v(7139),p=v.n(c),s=v(7214),u=v.n(s),l=v(8764),f=v.n(l),d=v(2873),m=v.n(d),h=v(763),y=v.n(h),g=v(1341),x=v.n(g),j=v(1861),O=v.n(j),S=v(1709),w=v.n(S),q=v(6110),C=v.n(q),_={1:(0,e.jsx)(a(),{},void 0),2:(0,e.jsx)(p(),{},void 0),3:(0,e.jsx)(u(),{},void 0),4:(0,e.jsx)(f(),{},void 0),5:(0,e.jsx)(m(),{},void 0),6:(0,e.jsx)(y(),{},void 0),7:(0,e.jsx)(x(),{},void 0),8:(0,e.jsx)(O(),{},void 0),9:(0,e.jsx)(w(),{},void 0),done:(0,e.jsx)(C(),{},void 0)},N=(v(4661),function(){return N=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);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 i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]])}return t};function E(r){var t=r.active,n=r.completed,o=r.mode,a=r.icon,c=r.iconComp,p=r.index;return(0,e.jsx)("div",N({className:(0,i.Z)("paraui-stepper-step-icon",{"paraui-stepper-step-icon--active":t,"paraui-stepper-step-icon--completed":n,"paraui-stepper-step-icon--one":"number"===o&&0===p&&t})},{children:n?_.done:"number"===o?_[String(a)]:"icon"===o?c||_.done:void 0}),void 0)}var P=function(r){var o=r.activeStep,a=void 0===o?0:o,c=r.mode,p=void 0===c?"number":c,s=r.steps,u=void 0===s?[]:s,l=r.alternativeLabel,f=void 0===l||l,d=r.orientation,v=void 0===d?"horizontal":d,b=r.className,m=T(r,["activeStep","mode","steps","alternativeLabel","orientation","className"]),h=function(r,n){return t().forwardRef((function(t,i){return(0,e.jsx)(E,N({mode:p,iconComp:r.icon,index:n},t,{ref:i}),void 0)}))};return(0,e.jsx)(n.Stepper,N({className:(0,i.Z)("paraui-stepper",b),activeStep:a,alternativeLabel:f,orientation:v},m,{connector:(0,e.jsx)(n.StepConnector,{classes:{root:"paraui-stepper-connector",active:"paraui-stepper-connector--active",completed:"paraui-stepper-connector--completed"}},void 0)},{children:(null==u?void 0:u.length)?u.map((function(r,t){var o="",c={};return"number"===p?(o=r,c.label=o):"object"==typeof r&&(o=r.label||"",c=N({},r)),(0,e.jsx)(n.Step,N({className:(0,i.Z)(a===t&&"paraui-stepper-step")},{children:(0,e.jsx)(n.StepLabel,N({StepIconComponent:h(c,t),classes:{label:"paraui-stepper-step-label",active:"paraui-stepper-step-label--active",completed:"paraui-stepper-step-label--completed"}},{children:o}),void 0)}),t)})):null}),void 0)},k=P}(),b}()}));
|