@para-ui/core 2.2.6 → 2.2.7-beta

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.
Files changed (348) hide show
  1. package/AutoBox/index.d.ts +34 -34
  2. package/AutoBox/index.js +203 -15
  3. package/AutoTips/index.d.ts +27 -27
  4. package/AutoTips/index.js +84 -15
  5. package/Breadcrumbs/index.d.ts +39 -39
  6. package/Breadcrumbs/index.js +227 -15
  7. package/Button/SplitButton.d.ts +62 -61
  8. package/Button/index.d.ts +71 -56
  9. package/Button/index.js +348 -14
  10. package/Button/lang/en_US.d.ts +4 -4
  11. package/Button/lang/index.d.ts +9 -9
  12. package/Button/lang/zh_CN.d.ts +4 -4
  13. package/ButtonGroup/index.d.ts +33 -33
  14. package/ButtonGroup/index.js +128 -14
  15. package/Carousel/index.d.ts +30 -30
  16. package/Carousel/index.js +74 -15
  17. package/Cascader/index.d.ts +52 -52
  18. package/Cascader/index.js +166 -15
  19. package/Cascader/lang/en_US.d.ts +4 -4
  20. package/Cascader/lang/index.d.ts +9 -9
  21. package/Cascader/lang/zh_CN.d.ts +4 -4
  22. package/Checkbox/index.d.ts +40 -40
  23. package/Checkbox/index.js +105 -14
  24. package/CheckboxGroup/index.d.ts +46 -46
  25. package/CheckboxGroup/index.js +138 -14
  26. package/Collapse/collapsePanel.d.ts +30 -30
  27. package/Collapse/index.d.ts +57 -57
  28. package/Collapse/index.js +171 -15
  29. package/Collapse/motion.d.ts +5 -5
  30. package/Collapse/util.d.ts +11 -11
  31. package/CollapseBox/index.d.ts +27 -27
  32. package/CollapseBox/index.js +164 -15
  33. package/CollapseBox/util.d.ts +5 -5
  34. package/ColorPicker/index.d.ts +4 -4
  35. package/ColorPicker/index.js +4 -1
  36. package/ComboSelect/WithTabsCombo/index.d.ts +11 -11
  37. package/ComboSelect/WithTabsCombo/interface.d.ts +141 -141
  38. package/ComboSelect/index.d.ts +11 -11
  39. package/ComboSelect/index.js +1803 -14
  40. package/ComboSelect/interface.d.ts +140 -143
  41. package/ComboSelect/lang/en_US.d.ts +8 -8
  42. package/ComboSelect/lang/index.d.ts +17 -17
  43. package/ComboSelect/lang/zh_CN.d.ts +8 -8
  44. package/ComboSelect/utils.d.ts +12 -12
  45. package/Container/index.d.ts +77 -77
  46. package/Container/index.js +239 -15
  47. package/DatePicker/PickerButton.d.ts +3 -3
  48. package/DatePicker/PickerTag.d.ts +3 -3
  49. package/DatePicker/generatePicker/generateRangePicker.d.ts +4 -4
  50. package/DatePicker/generatePicker/generateSinglePicker.d.ts +11 -11
  51. package/DatePicker/generatePicker/index.d.ts +77 -77
  52. package/DatePicker/index.d.ts +18 -18
  53. package/DatePicker/index.js +733 -14
  54. package/DatePicker/lang/en_US.d.ts +3 -3
  55. package/DatePicker/lang/index.d.ts +7 -7
  56. package/DatePicker/lang/zh_CN.d.ts +3 -3
  57. package/DatePicker/util.d.ts +20 -20
  58. package/Desktop/index.d.ts +57 -55
  59. package/Desktop/index.js +853 -14
  60. package/Drawer/index.d.ts +11 -11
  61. package/Drawer/index.js +186 -14
  62. package/Drawer/interface.d.ts +83 -83
  63. package/Drawer/lang/en_US.d.ts +5 -5
  64. package/Drawer/lang/index.d.ts +11 -11
  65. package/Drawer/lang/zh_CN.d.ts +5 -5
  66. package/Dropdown/index.d.ts +25 -0
  67. package/Dropdown/index.js +67 -0
  68. package/Empty/images/index.d.ts +3 -2
  69. package/Empty/index.d.ts +30 -30
  70. package/Empty/index.js +644 -14
  71. package/Empty/lang/en_US.d.ts +6 -6
  72. package/Empty/lang/index.d.ts +13 -13
  73. package/Empty/lang/zh_CN.d.ts +6 -6
  74. package/Form/index.d.ts +181 -181
  75. package/Form/index.js +384 -14
  76. package/FormItem/compoments/defaultCompoments/index.d.ts +19 -19
  77. package/FormItem/compoments/formCheckboxGroup/index.d.ts +8 -8
  78. package/FormItem/compoments/formFile/index.d.ts +38 -38
  79. package/FormItem/compoments/formRadioGroup/index.d.ts +8 -8
  80. package/FormItem/compoments/formSelect/index.d.ts +18 -18
  81. package/FormItem/errorTips.d.ts +12 -12
  82. package/FormItem/index.d.ts +152 -152
  83. package/FormItem/index.js +81 -14
  84. package/FormItem/itemType.d.ts +42 -42
  85. package/FormItem/validateFunction.d.ts +15 -15
  86. package/FunctionModal/dialog.d.ts +58 -58
  87. package/FunctionModal/index.d.ts +8 -8
  88. package/FunctionModal/index.js +39 -14
  89. package/FunctionModal/modalContext.d.ts +15 -14
  90. package/GlobalContext/componentsProps.d.ts +19 -19
  91. package/GlobalContext/confirmLocale.d.ts +7 -7
  92. package/GlobalContext/index.d.ts +28 -28
  93. package/GlobalContext/index.js +41 -16
  94. package/GlobalContext/intl.d.ts +34 -34
  95. package/GlobalContext/useFormatMessage.d.ts +3 -3
  96. package/Help/index.d.ts +18 -20
  97. package/Help/index.js +39 -15
  98. package/HelperText/index.d.ts +19 -19
  99. package/HelperText/index.js +29 -15
  100. package/Hooks/useGlobalProps.d.ts +1 -1
  101. package/InputLang/index.d.ts +49 -49
  102. package/InputLang/index.js +270 -14
  103. package/InputNumber/index.d.ts +74 -74
  104. package/InputNumber/index.js +308 -14
  105. package/Label/index.d.ts +35 -35
  106. package/Label/index.js +81 -14
  107. package/Loading/index.d.ts +17 -17
  108. package/Loading/index.js +47 -15
  109. package/Menu/footerExpansion.d.ts +9 -9
  110. package/Menu/index.d.ts +10 -10
  111. package/Menu/index.js +1232 -14
  112. package/Menu/interface.d.ts +139 -139
  113. package/Menu/logo.d.ts +9 -9
  114. package/Menu/verticalMenuList.d.ts +14 -14
  115. package/Message/index.d.ts +73 -73
  116. package/Message/index.js +222 -15
  117. package/Modal/Confirm/index.d.ts +65 -66
  118. package/Modal/index.d.ts +90 -61
  119. package/Modal/index.js +443 -14
  120. package/Modal/lang/en_US.d.ts +5 -5
  121. package/Modal/lang/index.d.ts +11 -11
  122. package/Modal/lang/zh_CN.d.ts +5 -5
  123. package/MultiBox/index.d.ts +54 -54
  124. package/MultiBox/index.js +231 -14
  125. package/Notification/index.d.ts +52 -52
  126. package/Notification/index.js +266 -15
  127. package/OperateBtn/index.d.ts +59 -59
  128. package/OperateBtn/index.js +260 -14
  129. package/OperateBtn/lang/en_US.d.ts +4 -4
  130. package/OperateBtn/lang/index.d.ts +9 -9
  131. package/OperateBtn/lang/zh_CN.d.ts +4 -4
  132. package/PageHeader/horizontalMeun.d.ts +9 -9
  133. package/PageHeader/horizontalMeunRight.d.ts +9 -9
  134. package/PageHeader/index.d.ts +10 -10
  135. package/PageHeader/index.js +1171 -14
  136. package/PageHeader/interface.d.ts +167 -167
  137. package/Pagination/index.d.ts +33 -33
  138. package/Pagination/index.js +469 -14
  139. package/Pagination/lang/en_US.d.ts +8 -8
  140. package/Pagination/lang/index.d.ts +17 -17
  141. package/Pagination/lang/zh_CN.d.ts +8 -8
  142. package/ParauiProvider/index.d.ts +8 -12
  143. package/ParauiProvider/index.js +53 -15
  144. package/PopConfirm/index.d.ts +58 -56
  145. package/PopConfirm/index.js +189 -14
  146. package/PopConfirm/lang/en_US.d.ts +5 -5
  147. package/PopConfirm/lang/index.d.ts +11 -11
  148. package/PopConfirm/lang/zh_CN.d.ts +5 -5
  149. package/Popover/index.d.ts +14 -14
  150. package/Popover/index.js +66 -15
  151. package/Progress/Line.d.ts +47 -47
  152. package/Progress/Steps.d.ts +17 -17
  153. package/Progress/index.d.ts +81 -81
  154. package/Progress/index.js +358 -20
  155. package/Progress/utils.d.ts +6 -6
  156. package/Querying/images/index.d.ts +3 -2
  157. package/Querying/index.d.ts +26 -26
  158. package/Querying/index.js +762 -14
  159. package/Querying/lang/en_US.d.ts +4 -4
  160. package/Querying/lang/index.d.ts +9 -9
  161. package/Querying/lang/zh_CN.d.ts +4 -4
  162. package/Radio/index.d.ts +38 -38
  163. package/Radio/index.js +94 -14
  164. package/RadioGroup/index.d.ts +47 -47
  165. package/RadioGroup/index.js +128 -14
  166. package/Search/index.d.ts +56 -56
  167. package/Search/index.js +220 -14
  168. package/Select/index.d.ts +86 -86
  169. package/Select/index.js +1288 -14
  170. package/Select/lang/en_US.d.ts +5 -5
  171. package/Select/lang/index.d.ts +11 -11
  172. package/Select/lang/zh_CN.d.ts +5 -5
  173. package/SelectInput/index.d.ts +11 -11
  174. package/SelectInput/index.js +51 -14
  175. package/SingleBox/index.d.ts +42 -42
  176. package/SingleBox/index.js +194 -14
  177. package/Slider/index.d.ts +14 -14
  178. package/Slider/index.js +125 -15
  179. package/Slider/interface.d.ts +102 -102
  180. package/Split/index.d.ts +7 -7
  181. package/Split/index.js +134 -15
  182. package/Stepper/icons.d.ts +5 -5
  183. package/Stepper/index.d.ts +49 -39
  184. package/Stepper/index.js +99 -15
  185. package/Switch/index.d.ts +78 -78
  186. package/Switch/index.js +73 -14
  187. package/Table/index.d.ts +10 -10
  188. package/Table/index.js +2725 -14
  189. package/Table/interface.d.ts +202 -202
  190. package/Table/lang/en_US.d.ts +6 -6
  191. package/Table/lang/index.d.ts +13 -13
  192. package/Table/lang/zh_CN.d.ts +6 -6
  193. package/Table/tableBody.d.ts +9 -9
  194. package/Table/tableBodyElement/index.d.ts +15 -15
  195. package/Table/tableBodyInterface.d.ts +67 -67
  196. package/Table/tableContainer/index.d.ts +16 -16
  197. package/Table/tableElement/index.d.ts +17 -17
  198. package/Table/tableHead.d.ts +9 -9
  199. package/Table/tableHeadElement/index.d.ts +15 -15
  200. package/Table/tableHeadInterface.d.ts +26 -30
  201. package/Table/tablePagination.d.ts +9 -9
  202. package/Table/tablePaginationInterFace.d.ts +24 -24
  203. package/Table/tdElement/index.d.ts +15 -15
  204. package/Table/thElement/index.d.ts +15 -15
  205. package/Table/trElement/index.d.ts +15 -15
  206. package/Table/util.d.ts +16 -16
  207. package/Tabs/index.d.ts +69 -48
  208. package/Tabs/index.js +218 -14
  209. package/Tabs/lang/en_US.d.ts +4 -0
  210. package/Tabs/lang/index.d.ts +9 -0
  211. package/Tabs/lang/zh_CN.d.ts +4 -0
  212. package/Tag/TagGroup.d.ts +66 -66
  213. package/Tag/index.d.ts +34 -34
  214. package/Tag/index.js +286 -14
  215. package/Test/index.d.ts +3 -2
  216. package/Test/index.js +9 -16
  217. package/TextField/index.d.ts +93 -93
  218. package/TextField/index.js +686 -14
  219. package/TimePicker/index.d.ts +22 -22
  220. package/TimePicker/index.js +77 -14
  221. package/TimePicker/locale/en_US.d.ts +3 -3
  222. package/TimePicker/locale/zh_CN.d.ts +3 -3
  223. package/TimePicker/style/index.d.ts +1 -1
  224. package/Timeline/TimelineItem.d.ts +23 -0
  225. package/Timeline/index.d.ts +31 -22
  226. package/Timeline/index.js +150 -15
  227. package/ToggleButton/ToggleButtonGroup.d.ts +49 -49
  228. package/ToggleButton/index.d.ts +49 -49
  229. package/ToggleButton/index.js +200 -14
  230. package/Tooltip/index.d.ts +11 -14
  231. package/Tooltip/index.js +335 -15
  232. package/Tooltip/interface.d.ts +21 -0
  233. package/Tooltip/utils.d.ts +22 -0
  234. package/Transfer/index.d.ts +18 -17
  235. package/Transfer/index.js +343 -14
  236. package/Transfer/lang/en_US.d.ts +6 -6
  237. package/Transfer/lang/index.d.ts +13 -13
  238. package/Transfer/lang/zh_CN.d.ts +6 -6
  239. package/Tree/OperateBar/index.d.ts +13 -13
  240. package/Tree/Tree.d.ts +4 -4
  241. package/Tree/index.d.ts +5 -5
  242. package/Tree/index.js +35 -14
  243. package/Tree/interface.d.ts +209 -207
  244. package/Tree/lang/en_US.d.ts +8 -8
  245. package/Tree/lang/index.d.ts +17 -17
  246. package/Tree/lang/zh_CN.d.ts +8 -8
  247. package/Tree/utils/tools.d.ts +26 -26
  248. package/Tree/utils/treeUtil.d.ts +15 -15
  249. package/Upload/Dragger/index.d.ts +10 -10
  250. package/Upload/ErroTip/index.d.ts +13 -13
  251. package/Upload/ImageUpload/index.d.ts +14 -14
  252. package/Upload/ImgCrop/EasyCrop.d.ts +17 -17
  253. package/Upload/ImgCrop/constants.d.ts +7 -7
  254. package/Upload/ImgCrop/index.d.ts +6 -6
  255. package/Upload/ImgCrop/interface.d.ts +24 -24
  256. package/Upload/UploadList/index.d.ts +5 -5
  257. package/Upload/index.d.ts +15 -15
  258. package/Upload/index.js +1542 -14
  259. package/Upload/interface.d.ts +134 -134
  260. package/Upload/lang/en_US.d.ts +12 -12
  261. package/Upload/lang/index.d.ts +25 -25
  262. package/Upload/lang/zh_CN.d.ts +12 -12
  263. package/_verture/defineProperty-0590dc61.js +16 -0
  264. package/_verture/index-2c0ecd8d.js +778 -0
  265. package/_verture/index-342379c6.js +391 -0
  266. package/_verture/index-a369ca3f.js +4 -0
  267. package/_verture/index-e2881a53.js +16 -0
  268. package/_verture/index-ee85b1cd.js +1555 -0
  269. package/_verture/intl-336570e4.js +65 -0
  270. package/_verture/modalContext-e7cc8067.js +228 -0
  271. package/_verture/slicedToArray-d7722f4b.js +62 -0
  272. package/_verture/style-inject.es-300983ab.js +28 -0
  273. package/_verture/toConsumableArray-f8047a75.js +19 -0
  274. package/_verture/tslib.es6-55ed4bd2.js +38 -0
  275. package/_verture/typeof-498dd2b1.js +11 -0
  276. package/_verture/useFormatMessage-ac9d6acf.js +20 -0
  277. package/_verture/useGlobalProps-af9a2af6.js +12 -0
  278. package/index.d.ts +128 -128
  279. package/index.js +160 -19
  280. package/package.json +54 -21
  281. package/Popper/index.d.ts +0 -13
  282. package/Popper/index.js +0 -16
  283. package/README.md +0 -501
  284. package/cdn/AutoBox/index.js +0 -29
  285. package/cdn/AutoTips/index.js +0 -40
  286. package/cdn/Breadcrumbs/index.js +0 -53
  287. package/cdn/Button/index.js +0 -79
  288. package/cdn/ButtonGroup/index.js +0 -79
  289. package/cdn/Carousel/index.js +0 -6
  290. package/cdn/Cascader/index.js +0 -42
  291. package/cdn/Checkbox/index.js +0 -53
  292. package/cdn/CheckboxGroup/index.js +0 -53
  293. package/cdn/Collapse/index.js +0 -27
  294. package/cdn/CollapseBox/index.js +0 -1
  295. package/cdn/ColorPicker/index.js +0 -1
  296. package/cdn/ComboSelect/index.js +0 -438
  297. package/cdn/Container/index.js +0 -1
  298. package/cdn/DatePicker/index.js +0 -185
  299. package/cdn/Desktop/index.js +0 -24
  300. package/cdn/Drawer/index.js +0 -84
  301. package/cdn/Empty/index.js +0 -1
  302. package/cdn/Form/index.js +0 -477
  303. package/cdn/FormItem/index.js +0 -477
  304. package/cdn/FunctionModal/index.js +0 -144
  305. package/cdn/GlobalContext/index.js +0 -1
  306. package/cdn/Help/index.js +0 -53
  307. package/cdn/HelperText/index.js +0 -1
  308. package/cdn/InputLang/index.js +0 -144
  309. package/cdn/InputNumber/index.js +0 -118
  310. package/cdn/Label/index.js +0 -53
  311. package/cdn/Loading/index.js +0 -14
  312. package/cdn/Menu/index.js +0 -40
  313. package/cdn/Message/index.js +0 -53
  314. package/cdn/Modal/index.js +0 -144
  315. package/cdn/MultiBox/index.js +0 -131
  316. package/cdn/Notification/index.js +0 -66
  317. package/cdn/OperateBtn/index.js +0 -92
  318. package/cdn/PageHeader/index.js +0 -92
  319. package/cdn/Pagination/index.js +0 -214
  320. package/cdn/ParauiProvider/index.js +0 -9
  321. package/cdn/PopConfirm/index.js +0 -131
  322. package/cdn/Popover/index.js +0 -16
  323. package/cdn/Popper/index.js +0 -26
  324. package/cdn/Progress/index.js +0 -58
  325. package/cdn/Querying/index.js +0 -1
  326. package/cdn/Radio/index.js +0 -53
  327. package/cdn/RadioGroup/index.js +0 -53
  328. package/cdn/Search/index.js +0 -144
  329. package/cdn/Select/index.js +0 -131
  330. package/cdn/SelectInput/index.js +0 -131
  331. package/cdn/SingleBox/index.js +0 -131
  332. package/cdn/Slider/index.js +0 -16
  333. package/cdn/Split/index.js +0 -1
  334. package/cdn/Stepper/index.js +0 -154
  335. package/cdn/Switch/index.js +0 -71
  336. package/cdn/Table/index.js +0 -292
  337. package/cdn/Tabs/index.js +0 -165
  338. package/cdn/Tag/index.js +0 -27
  339. package/cdn/Test/index.js +0 -1
  340. package/cdn/TextField/index.js +0 -105
  341. package/cdn/TimePicker/index.js +0 -185
  342. package/cdn/Timeline/index.js +0 -16
  343. package/cdn/ToggleButton/index.js +0 -79
  344. package/cdn/Tooltip/index.js +0 -40
  345. package/cdn/Transfer/index.js +0 -170
  346. package/cdn/Tree/index.js +0 -170
  347. package/cdn/Upload/index.js +0 -252
  348. package/style.css +0 -72
@@ -1,54 +1,54 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/23 14:20
4
- * @description 多值框
5
- */
6
- import React, { FunctionComponent, ReactNode } from 'react';
7
- import { LabelTooltipProps } from "../Label";
8
- import './index.scss';
9
- interface ReplaceFieldsProps {
10
- /** key索引 */
11
- key?: string;
12
- /** value索引 */
13
- value?: string;
14
- }
15
- export interface MultiBoxProps {
16
- /** 样式class */
17
- className?: string;
18
- /** style */
19
- style?: React.CSSProperties;
20
- /** 大小 */
21
- size?: 'small' | 'medium' | 'large';
22
- /** 标题 */
23
- label?: ReactNode;
24
- /** 帮组提示信息 */
25
- labelTooltip?: LabelTooltipProps;
26
- /** 标题提示 */
27
- labelSign?: ReactNode;
28
- /** 提示语key */
29
- placeholderKey?: ReactNode;
30
- /** 提示语value */
31
- placeholderValue?: ReactNode;
32
- /** 是否禁用 */
33
- disabled?: boolean;
34
- /** 是否必填 */
35
- required?: boolean;
36
- /** 是否错误模式 */
37
- error?: boolean;
38
- /** 错误文本 */
39
- helperText?: ReactNode;
40
- /** 默认值 不受控 */
41
- defaultValue?: any[];
42
- /** 选中值 多选时为数组 单选单值 */
43
- value?: any[];
44
- /** 替换字段 */
45
- replaceFields?: ReplaceFieldsProps;
46
- /** 改变值 */
47
- onChange?: (val: any[]) => void;
48
- /** 键值索引匹配 */
49
- fetchSuggestionsKey?: (val: string, cb: (data: any[]) => void) => void;
50
- /** 值索引匹配 */
51
- fetchSuggestionsValue?: (val: string, cb: (data: any[]) => void) => void;
52
- }
53
- export declare const MultiBox: FunctionComponent<MultiBoxProps>;
54
- export default MultiBox;
1
+ /**
2
+ * @author linhd
3
+ * @date 2021/8/23 14:20
4
+ * @description 多值框
5
+ */
6
+ import React, { FunctionComponent, ReactNode } from 'react';
7
+ import { LabelTooltipProps } from "../Label";
8
+ import './index.scss';
9
+ interface ReplaceFieldsProps {
10
+ /** key索引 */
11
+ key?: string;
12
+ /** value索引 */
13
+ value?: string;
14
+ }
15
+ export interface MultiBoxProps {
16
+ /** 样式class */
17
+ className?: string;
18
+ /** style */
19
+ style?: React.CSSProperties;
20
+ /** 大小 */
21
+ size?: 'small' | 'medium' | 'large';
22
+ /** 标题 */
23
+ label?: ReactNode;
24
+ /** 帮组提示信息 */
25
+ labelTooltip?: LabelTooltipProps;
26
+ /** 标题提示 */
27
+ labelSign?: ReactNode;
28
+ /** 提示语key */
29
+ placeholderKey?: ReactNode;
30
+ /** 提示语value */
31
+ placeholderValue?: ReactNode;
32
+ /** 是否禁用 */
33
+ disabled?: boolean;
34
+ /** 是否必填 */
35
+ required?: boolean;
36
+ /** 是否错误模式 */
37
+ error?: boolean;
38
+ /** 错误文本 */
39
+ helperText?: ReactNode;
40
+ /** 默认值 不受控 */
41
+ defaultValue?: any[];
42
+ /** 选中值 多选时为数组 单选单值 */
43
+ value?: any[];
44
+ /** 替换字段 */
45
+ replaceFields?: ReplaceFieldsProps;
46
+ /** 改变值 */
47
+ onChange?: (val: any[]) => void;
48
+ /** 键值索引匹配 */
49
+ fetchSuggestionsKey?: (val: string, cb: (data: any[]) => void) => void;
50
+ /** 值索引匹配 */
51
+ fetchSuggestionsValue?: (val: string, cb: (data: any[]) => void) => void;
52
+ }
53
+ export declare const MultiBox: FunctionComponent<MultiBoxProps>;
54
+ export default MultiBox;
package/MultiBox/index.js CHANGED
@@ -1,14 +1,231 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@material-ui/core"),require("clsx"),require("@para-ui/icons/Help"),require("@paraview/lib"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/CloseCircle"),require("@para-ui/icons/LoadingF"),require("@para-ui/core/GlobalContext"),require("@para-ui/icons/Plus"),require("@para-ui/icons/Delete")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","clsx","@para-ui/icons/Help","@paraview/lib","@para-ui/icons/PreviewClose","@para-ui/icons/PreviewOpen","@para-ui/icons/CloseCircle","@para-ui/icons/LoadingF","@para-ui/core/GlobalContext","@para-ui/icons/Plus","@para-ui/icons/Delete"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("@material-ui/core"),require("clsx"),require("@para-ui/icons/Help"),require("@paraview/lib"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/CloseCircle"),require("@para-ui/icons/LoadingF"),require("@para-ui/core/GlobalContext"),require("@para-ui/icons/Plus"),require("@para-ui/icons/Delete")):e.ParaUI=t(e.react,e["@material-ui/core"],e.clsx,e["@para-ui/icons/Help"],e["@paraview/lib"],e["@para-ui/icons/PreviewClose"],e["@para-ui/icons/PreviewOpen"],e["@para-ui/icons/CloseCircle"],e["@para-ui/icons/LoadingF"],e["@para-ui/core/GlobalContext"],e["@para-ui/icons/Plus"],e["@para-ui/icons/Delete"])}(self,(function(e,t,i,n,o,r,l,a,c,u,d,s){return function(){var f={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}.paraui-auto-tips-tooltip>div{max-height:calc(100vh - 25px);overflow:auto}",""]),e.exports=t},7381:function(e,t,i){(t=i(3645)(!1)).push([e.id,".paraui-help{display:inline-block;font-size:16px;color:rgba(46,55,67,.7)}.paraui-help:hover{color:#3666d6}.paraui-help .paraui-icon{font-size:inherit;color:inherit}",""]),e.exports=t},9916:function(e,t,i){(t=i(3645)(!1)).push([e.id,".paraui-helper-text{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:400;padding-left:12px;line-height:20px;color:rgba(46,55,67,.7)}.paraui-helper-text.paraui-helper-text-error{color:#eb6054}",""]),e.exports=t},4928:function(e,t,i){(t=i(3645)(!1)).push([e.id,".paraui-label{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;color:rgba(46,55,67,.7);margin-bottom:8px;display:inline-block;line-height:1.43;word-break:break-all}.paraui-label>.paraui-label-required{margin-left:2px;color:#eb6054}.paraui-label>.paraui-help{vertical-align:top;margin-left:4px}.paraui-label>.paraui-help svg{color:rgba(46,55,67,.4);vertical-align:top;position:relative;top:2px}.paraui-label.paraui-label-line.paraui-label-tooltip{border-bottom:1px dashed rgba(46,55,67,.4);padding-bottom:2px}",""]),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:#fff;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}",""]),e.exports=t},7843:function(e,t,i){(t=i(3645)(!1)).push([e.id,".paraui-multi-box{display:inline-block;width:100%;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400}.paraui-multi-box>.multi-box-content{line-height:0}.paraui-multi-box>.multi-box-content>.multi-box-content-item{padding-bottom:15px;display:flex}.paraui-multi-box>.multi-box-content>.multi-box-content-item>.multi-box-content-item-input{width:calc(100% - 30px);display:flex}.paraui-multi-box>.multi-box-content>.multi-box-content-item>.multi-box-content-item-input>.text-field{width:calc(50% - 10px)}.paraui-multi-box>.multi-box-content>.multi-box-content-item>.multi-box-content-item-input>.text-field>.paraui-helper-text{display:none}.paraui-multi-box>.multi-box-content>.multi-box-content-item>.multi-box-content-item-input>span{display:flex;align-items:center;justify-content:center;width:20px}.paraui-multi-box>.multi-box-content>.multi-box-content-item>.single-box-content-item-svg{display:flex;align-items:center;justify-content:center;width:30px;cursor:pointer}.paraui-multi-box>.multi-box-add{text-align:center;border:1px dashed;border-color:rgba(171,176,185,.4);display:flex;align-items:center;justify-content:center;border-radius:4px;cursor:pointer;background-color:#fff}.paraui-multi-box>.multi-box-add>svg{font-size:24px}.paraui-multi-box>.multi-box-add:hover{border-color:#3666d6;color:#3666d6}.paraui-multi-box.multi-box-small>.multi-box-add{height:28px}.paraui-multi-box.multi-box-medium>.multi-box-add{height:32px}.paraui-multi-box.multi-box-large>.multi-box-add{height:36px}.paraui-multi-box.multi-box-disabled>.multi-box-content>.multi-box-content-item>.single-box-content-item-svg{cursor:not-allowed}.paraui-multi-box.multi-box-disabled>.multi-box-content>.multi-box-content-item>.single-box-content-item-svg>svg{color:rgba(46,55,67,.7)}.paraui-multi-box.multi-box-disabled>.multi-box-add{border-color:rgba(171,176,185,.4);cursor:not-allowed;background-color:rgba(171,176,185,.12);color:rgba(46,55,67,.7)}.paraui-multi-box.multi-box-disabled>.multi-box-add>svg{color:rgba(46,55,67,.7)}.paraui-multi-box.multi-box-disabled>.multi-box-add:hover{border-color:rgba(171,176,185,.4);color:rgba(46,55,67,.7)}",""]),e.exports=t},3637:function(e,t,i){(t=i(3645)(!1)).push([e.id,".paraui-text-field{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;display:inline-block;width:100%}.paraui-text-field>.text-field-content{border:1px solid;border-radius:4px;border-color:rgba(171,176,185,.4);display:flex;width:100%;position:relative;background-color:#fff}.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,.4);background-color:rgba(171,176,185,.12);border-bottom-left-radius:4px;border-top-left-radius:4px;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;display:flex;flex-grow:1}.paraui-text-field>.text-field-content>.text-field-content-within>.clean-up-icon{display:flex;height:100%;align-items:center;margin-right:12px;cursor:pointer}.paraui-text-field>.text-field-content>.text-field-content-within>.clean-up-icon svg{color:rgba(46,55,67,.7);font-size:16px}.paraui-text-field>.text-field-content>.text-field-content-within>.clean-up-icon:hover svg{color:rgba(54,102,214,.8)}.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,.7);position:relative;z-index:1}.paraui-text-field>.text-field-content>.text-field-content-within>.right-icon.right-icon-password:hover svg{color:rgba(54,102,214,.8)}.paraui-text-field>.text-field-content>.text-field-content-within>.right-icon svg{color:rgba(46,55,67,.7);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,.7)}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input{width:100%;line-height:0;position:relative}.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;resize:none}.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:4px;background:rgba(0,0,0,0)}.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:rgba(0,0,0,0)}.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,.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,.4);background-color:rgba(171,176,185,.12);border-bottom-right-radius:4px;border-top-right-radius:4px;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-multiline>.text-field-content .text-field-content-within>.clean-up-icon{display:none}.paraui-text-field.text-field-multiline>.text-field-content .text-field-content-within>.length-limit{position:absolute;height:22px;bottom:0;border-radius:4px;width:calc(100% - 12px);background:#fff;justify-content:flex-end;padding-bottom:8px;margin-right:0}.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% - 24px)}.paraui-text-field.text-field-disabled>.text-field-content{background-color:rgba(171,176,185,.12)}.paraui-text-field.text-field-disabled>.text-field-content:hover{border-color:rgba(171,176,185,.4)}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-before{background-color:rgba(0,0,0,0)}.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:rgba(0,0,0,0)}.paraui-text-field.text-field-disabled.text-field-multiline>.text-field-content .text-field-content-within>.length-limit{background-color:rgba(0,0,0,0)}.paraui-text-field.text-field-error>.text-field-content{border-color:#eb6054 !important}.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-limit-length>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{padding-bottom:25px}.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.text-field-resize>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{resize:both}.paraui-text-field-select.paraui-tooltip>div{max-width:none;padding:0;background-color:#fff;box-shadow:0px 2px 8px 0px rgba(171,176,185,.4);border-radius:4px;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400}.paraui-text-field-select.paraui-tooltip>div>span{color:#fff}.paraui-text-field-select.paraui-tooltip>div .text-field-select-content{max-height:300px;overflow:auto}.paraui-text-field-select.paraui-tooltip>div .text-field-select-content>.text-field-select-content-item{display:flex;cursor:pointer;color:#2e3743;padding:0 12px}.paraui-text-field-select.paraui-tooltip>div .text-field-select-content>.text-field-select-content-item:hover{background-color:rgba(171,176,185,.12);color:#3666d6}.paraui-text-field-select.paraui-tooltip>div .text-field-select-content>.text-field-select-content-item.text-field-select-content-item-keydown{background-color:rgba(171,176,185,.12);color:#3666d6}.paraui-text-field-select.paraui-tooltip>div .text-field-select-content.text-field-select-content-loading{height:100px;position:relative;overflow:hidden}.paraui-text-field-select.paraui-tooltip.paraui-text-field-select-small>div .text-field-select-content>.text-field-select-content-item{line-height:28px}.paraui-text-field-select.paraui-tooltip.paraui-text-field-select-medium>div .text-field-select-content>.text-field-select-content-item{line-height:32px}.paraui-text-field-select.paraui-tooltip.paraui-text-field-select-large>div .text-field-select-content>.text-field-select-content-item{line-height:36px}.paraui-text-field-select.paraui-text-field-select-data.paraui-tooltip{padding:8px 0}",""]),e.exports=t},9929:function(e,t,i){(t=i(3645)(!1)).push([e.id,".paraui-tooltip>div{padding-left:12px;padding-right:12px;font-size:14px;font-weight:400;color:#fff;background-color:rgba(46,55,67,.7)}.paraui-tooltip-left-right>div{margin:0 8px}.paraui-tooltip-top-bottom>div{margin:8px 0}",""]),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)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(c," */")),r=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[i].concat(r).concat([o]).join("\n")}var l,a,c;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 c=[].concat(e[a]);n&&o[c[0]]||(i&&(c[2]?c[2]="".concat(i," and ").concat(c[2]):c[2]=i),t.push(c))}},t}},7418:function(e){"use strict";
2
- /*
3
- object-assign
4
- (c) Sindre Sorhus
5
- @license MIT
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,c=o(e),u=1;u<arguments.length;u++){for(var d in l=Object(arguments[u]))i.call(l,d)&&(c[d]=l[d]);if(t){a=t(l);for(var s=0;s<a.length;s++)n.call(l,a[s])&&(c[a[s]]=l[a[s]])}}return c}},5251:function(e,t,i){"use strict";
7
- /** @license React v17.0.2
8
- * react-jsx-runtime.production.min.js
9
- *
10
- * Copyright (c) Facebook, Inc. and its affiliates.
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- */i(7418);var n=i(8156),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,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,i){var n,r={},u=null,d=null;for(n in void 0!==i&&(u=""+i),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,n)&&!c.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:u,ref:d,props:r,_owner:l.current}}t.jsx=u,t.jsxs=u},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||{}},2113:function(e,t,i){var n=i(3379),o=i(7381);"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||{}},3936:function(e,t,i){var n=i(3379),o=i(9916);"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||{}},9663:function(e,t,i){var n=i(3379),o=i(4928);"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||{}},5415:function(e,t,i){var n=i(3379),o=i(7843);"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 c(e,t){for(var i={},n=[],o=0;o<e.length;o++){var r=e[o],c=t.base?r[0]+t.base:r[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var s=a(d),f={css:r[1],media:r[2],sourceMap:r[3]};-1!==s?(l[s].references++,l[s].updater(f)):l.push({identifier:d,updater:b(f,t),references:1}),n.push(d)}return n}function u(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 d,s=(d=[],function(e,t){return d[e]=t,d.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=s(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,h=0;function b(e,t){var i,n,o;if(t.singleton){var r=h++;i=x||(x=u(t)),n=f.bind(null,i,r,!1),o=f.bind(null,i,r,!0)}else i=u(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=c(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=c(e,t),u=0;u<i.length;u++){var d=a(i[u]);0===l[d].references&&(l[d].updater(),l.splice(d,1))}i=r}}}},7839:function(e,t,i){"use strict";var n=i(5893),o=i(8156),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.arrow,a=void 0!==i&&i,c=e.placement,u=void 0===c?"bottom-start":c,d=e.tips,s=void 0===d?"":d,f=e.className,p=void 0===f?"":f,x=e.beyondText,h=void 0===x||x,b=e.interactive,m=void 0===b||b,g=e.style,v=(0,o.useRef)(),y=(0,o.useState)(""),w=y[0],j=y[1];(0,o.useEffect)((function(){j(s)}),[s]);var S;return(0,n.jsx)("div",l({ref:v,className:(S="paraui-auto-tips",p&&(S+=" "+p),S),onMouseOver:function(){var e="";v.current&&v.current.scrollWidth>v.current.offsetWidth&&(e=s||(h?v.current.innerText:t)),j(e)},style:g},{children:(0,n.jsx)(r.default,l({arrow:a,title:w,placement:u,interactive:m,boundariesElement:"viewport",className:"paraui-auto-tips-tooltip"},{children:(0,n.jsx)("div",l({className:"auto-tips-content"},{children:t}))}))}))}},3566:function(e,t,i){"use strict";var n=i(5893),o=i(7371),r=i(8076),l=i.n(r),a=i(5744),c=i.n(a),u=(i(2113),function(){return u=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},u.apply(this,arguments)}),d=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.title,i=void 0===t?"":t,r=e.children,a=e.arrow,s=void 0===a||a,f=e.interactive,p=void 0===f||f,x=e.className,h=e.placement,b=void 0===h?"top-start":h,m=d(e,["title","children","arrow","interactive","className","placement"]);return(0,n.jsx)(o.default,u({title:i,arrow:s,interactive:p,placement:b},m,{children:(0,n.jsx)("span",u({className:c()("paraui-help",x)},{children:r||(0,n.jsx)(l(),{})}))}))}},4254:function(e,t,i){"use strict";var n=i(5893),o=(i(3936),function(){return o=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},o.apply(this,arguments)});t.default=function(e){var t,i=e.className,r=e.style,l=e.error,a=void 0!==l&&l,c=e.helperText;return(0,n.jsx)("p",o({className:(t="paraui-helper-text",i&&(t+=" "+i),a&&(t+=" paraui-helper-text-error"),t),style:r},{children:c}))}},6010:function(e,t,i){"use strict";i.d(t,{Z:function(){return c}});var n=i(8156),o=i.n(n),r=i(5395),l=i.n(r),a=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)};function c(e,t){var i=o().useContext(l()).componentsProps,n=i&&i[t];return a(a({},n),e)}},8767:function(e,t,i){"use strict";var n=i(5893),o=i(3566),r=(i(9663),function(){return r=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},r.apply(this,arguments)});t.default=function(e){var t=e.className,i=e.style,l=e.label,a=e.labelSign,c=e.required,u=void 0!==c&&c,d=e.tooltip,s=e.tooltipType,f=void 0===s?"icon":s,p=e.placement,x=e.arrow,h=e.tooltipIcon,b=function(){var e="paraui-label";return f&&(e+=" paraui-label-"+f),d&&(e+=" paraui-label-tooltip"),t&&(e+=" "+t),e};return(0,n.jsxs)(n.Fragment,{children:["icon"===f&&(0,n.jsxs)("label",r({className:b(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:l}),u&&(0,n.jsx)("span",r({className:"paraui-label-required"},{children:"*"})),a&&(0,n.jsx)("span",{children:a}),d&&(0,n.jsx)(o.default,r({title:d,placement:p,arrow:x},{children:h}))]})),"line"===f&&(0,n.jsx)(o.default,r({title:d||"",placement:p,arrow:x},{children:(0,n.jsxs)("label",r({className:b(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:l}),u&&(0,n.jsx)("span",r({className:"paraui-label-required"},{children:"*"})),a&&(0,n.jsx)("span",{children:a})]}))}))]})}},7502:function(e,t,i){"use strict";var n=i(5893),o=i(8156),r=i(2788),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,c=void 0===r?.7:r,u=(0,o.useRef)(null);(0,o.useEffect)((function(){u&&u.current&&u.current.parentNode&&(u.current.parentNode.style.position||(u.current.parentNode.style.position="relative"))}),[]);var d;return(0,n.jsxs)("div",a({className:(d="paraui-loading",t&&(d+=" "+t),d),style:i,ref:u},{children:[(0,n.jsx)("div",a({className:"paraui-loading-box"},{children:(0,n.jsx)(l(),{})})),(0,n.jsx)("div",{className:"paraui-loading-mask",style:{opacity:c}})]}))}},7320:function(e,t,i){"use strict";var n=i(5893),o=i(8156),r=i(8767),l=i(8543),a=i(5428),c=i.n(a),u=i(9979),d=i.n(u),s=i(6788),f=i.n(s),p=i(7839),x=i(7502),h=i(7371),b=i(4254),m=i(6010),g=(i(6202),function(){return g=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},g.apply(this,arguments)}),v=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},y=function(e){return"number"==typeof e&&!isNaN(e)};t.default=function(e){var t=(0,m.Z)(e,"TextField"),i=t.className,a=t.style,u=t.size,s=void 0===u?"large":u,w=t.labelMode,j=void 0===w?"outside":w,S=t.placeholder,O=void 0===S?"":S,C=t.label,N=void 0===C?"":C,k=t.labelTooltip,P=t.disabled,M=void 0!==P&&P,q=t.multiline,E=void 0!==q&&q,_=t.required,F=void 0!==_&&_,T=t.labelSign,z=t.rows,L=void 0===z?2:z,H=t.error,I=void 0!==H&&H,B=t.helperText,D=void 0===B?"":B,R=t.addonBefore,A=void 0===R?"":R,K=t.addonAfter,U=void 0===K?"":K,Y=(t.defaultValue,t.value),J=t.autoFocus,W=void 0!==J&&J,V=t.type,Q=void 0===V?"text":V,G=t.onClickIcon,Z=t.rightIcon,$=t.showRightIcon,X=void 0===$||$,ee=t.allowClear,te=void 0!==ee&&ee,ie=t.limitLength,ne=t.fetchSuggestions,oe=t.selectPopoverClass,re=t.renderSelectItem,le=t.showSelectName,ae=void 0===le?"value":le,ce=t.resize,ue=void 0===ce||ce,de=t.onBlur,se=t.onFocus,fe=t.onChange,pe=t.onKeydown,xe=t.onKeyUp,he=t.onEnter,be=t.onClickAddonBefore,me=t.onClickAddonAfter,ge=t.onSelect,ve=t.onClear,ye=v(t,["className","style","size","labelMode","placeholder","label","labelTooltip","disabled","multiline","required","labelSign","rows","error","helperText","addonBefore","addonAfter","defaultValue","value","autoFocus","type","onClickIcon","rightIcon","showRightIcon","allowClear","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","resize","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect","onClear"]),we=(0,o.useState)("text-field-select-content-"+(0,l.UUID)())[0],je=(0,o.useState)(!0),Se=je[0],Oe=je[1],Ce=(0,o.useState)(""),Ne=Ce[0],ke=Ce[1],Pe=(0,o.useState)(!1),Me=Pe[0],qe=Pe[1],Ee=(0,o.useState)("text"),_e=Ee[0],Fe=Ee[1],Te=(0,o.useState)(!1),ze=Te[0],Le=Te[1],He=(0,o.useState)(!1),Ie=He[0],Be=He[1],De=(0,o.useState)([]),Re=De[0],Ae=De[1],Ke=(0,o.useRef)(null),Ue=(0,o.useRef)(null);(0,o.useEffect)((function(){void 0!==e.defaultValue&&ke(e.defaultValue)}),[]),(0,o.useEffect)((function(){Q!==_e&&Fe(Q)}),[Q]),(0,o.useEffect)((function(){void 0!==Y&&ke(Y)}),[Y]),(0,o.useEffect)((function(){Oe(""===Ne||void 0===Ne)}),[Ne]),(0,o.useEffect)((function(){ne&&Le(Me)}),[Me,ne]),(0,o.useEffect)((function(){return ze?window.addEventListener("keydown",Ge):window.removeEventListener("keydown",Ge),function(){window.removeEventListener("keydown",Ge)}}),[ze]),(0,o.useEffect)((function(){if(!Me&&Ne){var t=Je(Ne);if(t!==Ne){var i={};i.target=Ke.current,i.target.value=t,void 0===e.value&&ke(t),e.onChange&&e.onChange(i)}}}),[Ne,Me]);var Ye,Je=function(t){var i=t;return y(e.limitLength)&&t.toString().length>Number(e.limitLength)&&(i=i.toString().substr(0,e.limitLength)),i},We=function(){M||(Oe(!1),(Ke&&Ke.current).focus())},Ve=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"),Qe(n,t))},Qe=function(e,t){var i=t.clientHeight,n=e.offsetTop+e.clientHeight-i;t.scrollTop=n>0?n:0},Ge=function(e){var t=document.querySelector("."+we),i=null,n=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&n){var o=n.dataset.val;lt(JSON.parse(o))(e),(Ke&&Ke.current).blur()}n&&(i=n,n.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Ve({selectDom:t,keyCode:e.keyCode,currentDom:i}),38===e.keyCode&&Ve({selectDom:t,keyCode:e.keyCode,currentDom:i})},Ze=function(e){qe(!1),""===e.target.value&&Oe(!0),de&&de(e)},$e=function(e){ne&&(Be(!0),ne(e,(function(e){Ae(e||[]),Be(!1)})))},Xe=function(e){qe(!0),se&&se(e),$e(e.target.value)},et=function(t){var i=t.target.value;i&&Oe(!1),void 0===e.value&&ke(i),fe&&fe(t),$e(t.target.value)},tt=function(e){13===e.keyCode&&he&&he(e),pe&&pe(e)},it=function(e){xe&&xe(e)},nt=function(e){"password"===Q&&("text"===_e&&Fe("password"),"password"===_e&&Fe("text")),G&&G(e)},ot=function(){return void 0===e.value?Ne:Y},rt=function(){Le(!1)},lt=function(e){return function(t){ge&&ge(e)}},at=(0,o.useMemo)((function(){return(0,n.jsx)(n.Fragment,{children:y(ie)&&(0,n.jsx)("span",g({className:"length-limit"},{children:(Ne?Ne.toString().length:0)+"/"+ie}))})}),[ie,Ne]),ct=(0,o.useMemo)((function(){var e=Z||("password"===Q?"password"===_e?(0,n.jsx)(c(),{}):(0,n.jsx)(d(),{}):null);return(0,n.jsx)(n.Fragment,{children:X&&e&&(0,n.jsx)("span",g({className:"password"===Q?"right-icon right-icon-password":"right-icon",onClick:nt},{children:e}))})}),[X,Z,Q,_e,G]),ut=function(){var t=Ke.current;t.value="",void 0===e.value&&ke(""),fe&&fe({target:t}),$e(""),ve&&ve()},dt=function(){if(ot()&&!M&&te)return(0,n.jsx)("span",g({className:"clean-up-icon",onClick:ut},{children:(0,n.jsx)(f(),{})}))},st=(0,o.useMemo)((function(){return(0,n.jsxs)("div",g({className:"text-field-content-within",ref:Ue},{children:[(0,n.jsxs)("div",g({className:"text-field-content-within-input"},{children:[E?(0,n.jsx)("textarea",g({ref:Ke,rows:L,value:ot(),onBlur:Ze,onFocus:Xe,onChange:et,onKeyDown:tt,onKeyUp:it,disabled:M},ye)):(0,n.jsx)("input",g({ref:Ke,type:_e,value:ot(),onBlur:Ze,onFocus:Xe,onChange:et,onKeyDown:tt,onKeyUp:it,disabled:M},ye)),Se&&!Me&&(0,n.jsx)("span",g({className:"text-field-label-placeholder",onClick:We},{children:"outside"===j?O:(0,n.jsxs)(n.Fragment,{children:[N||O,F&&(0,n.jsx)("span",g({className:"text-field-required"},{children:"*"})),T&&(0,n.jsx)("span",{children:T})]})}))]})),dt(),at,ct]}))}),[Se,Me,W,_e,Ne,at,ct,j,O,N,M,E,L,ye,fe,ne,G,te,ve]),ft=(0,o.useMemo)((function(){var e,t=function(e){return"object"==typeof e&&null!==e?e[ae]:e};return(0,n.jsxs)("div",g({className:(e="text-field-select-content",Ie&&(e+=" text-field-select-content-loading"),we&&(e+=" "+we),e),style:{width:(Ue&&Ue.current?Ue.current.offsetWidth:0)+"px"}},{children:[Re&&Re.map((function(e,i){return(0,n.jsx)("div",g({className:"text-field-select-content-item",onMouseDown:lt(e),"data-val":JSON.stringify(e)},{children:re?re(e):(0,n.jsx)(p.default,{children:t(e)})}),i)})),Ie&&(0,n.jsx)(x.default,{})]}))}),[Ue,ze,Re,re,ae,ge,Ie,we]),pt=(0,o.useMemo)((function(){return(0,n.jsx)(h.default,g({open:ze,title:ft,onClose:rt,arrow:!1,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,placement:"bottom-start",classes:{popper:(e="paraui-text-field-select paraui-scrollbar-small",s&&(e+=" paraui-text-field-select-"+s),oe&&(e+=" "+oe),Re.length>0&&(e+=" paraui-text-field-select-data"),e)}},{children:st}));var e}),[Se,Me,W,_e,Ne,at,ct,j,O,N,M,E,L,ye,fe,ne,ge,Ue,ze,oe,s,G,Re,te,ve]),xt=(0,o.useMemo)((function(){var e,t=Boolean(F||T||N);if("outside"===j&&t){return(0,n.jsx)(r.default,g({label:N,required:F,labelSign:T},k,{className:(e="text-field-label",k&&k.className&&(e+=" "+k.className),e)}))}return null}),[j,N,T,F,k]);return(0,n.jsxs)("div",g({className:(Ye="paraui-text-field",Ye+=" text-field",s&&!E&&(Ye+=" text-field-"+s),i&&(Ye+=" "+i),I&&(Ye+=" text-field-error"),Me&&(Ye+=" text-field-focus"),M&&(Ye+=" text-field-disabled"),E&&(Ye+=" text-field-multiline"),y(e.limitLength)&&(Ye+=" text-field-limit-length"),y(e.limitLength)&&Ne&&Ne.toString().length>Number(e.limitLength)&&(Ye+=" text-field-limit"),ue&&(Ye+=" text-field-resize"),ot()&&(Ye+=" text-field-value"),te&&(Ye+=" text-field-allow-clear"),Ye),style:a},{children:[xt,(0,n.jsxs)("div",g({className:"text-field-content"},{children:[A&&(0,n.jsx)("div",g({className:"text-field-content-before",onClick:function(e){be&&be(e)}},{children:A})),ne?pt:st,U&&(0,n.jsx)("div",g({className:"text-field-content-after",onClick:function(e){me&&me(e)}},{children:U}))]})),(0,n.jsx)(b.default,{className:"text-field-error-text",error:I,helperText:D})]}))}},7371:function(e,t,i){"use strict";var n=i(5893),o=i(670),r=i(5744),l=i.n(r),a=(i(2310),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)}),c=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,i=e.placement,r=void 0===i?"top-start":i,u=e.className,d=e.arrow,s=void 0===d||d,f=e.PopperProps,p=e.boundariesElement,x=void 0===p?"scrollParent":p,h=c(e,["placement","className","arrow","PopperProps","boundariesElement"]),b=a(a({},e.classes),{popper:l()("paraui-tooltip",u,null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==r?void 0:r.includes("left"))||(null==r?void 0:r.includes("right")),"paraui-tooltip-top-bottom":(null==r?void 0:r.includes("top"))||(null==r?void 0:r.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,a({},h,{enterTouchDelay:0,arrow:s,placement:r,classes:b,PopperProps:a(a({},f),{modifiers:{preventOverflow:{boundariesElement:x}}})}))}},670:function(e){"use strict";e.exports=t},5395:function(e){"use strict";e.exports=u},6788:function(e){"use strict";e.exports=a},4104:function(e){"use strict";e.exports=s},8076:function(e){"use strict";e.exports=n},2788:function(e){"use strict";e.exports=c},1632:function(e){"use strict";e.exports=d},5428:function(e){"use strict";e.exports=r},9979:function(e){"use strict";e.exports=l},8543:function(e){"use strict";e.exports=o},5744:function(e){"use strict";e.exports=i},8156:function(t){"use strict";t.exports=e}},p={};function x(e){var t=p[e];if(void 0!==t)return t.exports;var i=p[e]={id:e,exports:{}};return f[e](i,i.exports,x),i.exports}x.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return x.d(t,{a:t}),t},x.d=function(e,t){for(var i in t)x.o(t,i)&&!x.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},x.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},x.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},x.nc=void 0;var h={};return function(){"use strict";x.r(h),x.d(h,{MultiBox:function(){return s}});var e=x(5893),t=x(8156),i=x(7320),n=x(8767),o=x(4254),r=x(1632),l=x.n(r),a=x(4104),c=x.n(a),u=(x(5415),function(){return u=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},u.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))},s=function(r){var a=r.className,s=r.style,f=r.size,p=void 0===f?"large":f,x=r.placeholderKey,h=void 0===x?"":x,b=r.placeholderValue,m=void 0===b?"":b,g=r.label,v=void 0===g?"":g,y=r.labelTooltip,w=r.labelSign,j=r.disabled,S=void 0!==j&&j,O=r.required,C=void 0!==O&&O,N=r.error,k=void 0!==N&&N,P=r.helperText,M=void 0===P?"":P,q=r.value,E=r.replaceFields,_=r.onChange,F=r.fetchSuggestionsKey,T=r.fetchSuggestionsValue,z=(0,t.useState)([]),L=z[0],H=z[1],I=(0,t.useState)({key:"label",value:"value"}),B=I[0],D=I[1];(0,t.useEffect)((function(){void 0!==r.defaultValue&&H(d([],r.defaultValue,!0))}),[]),(0,t.useEffect)((function(){void 0!==q&&H(d([],q,!0))}),[q]),(0,t.useEffect)((function(){if(E){var e=u(u({},B),E);D(e)}}),[E]);var R,A=function(e){return function(){S||(L.splice(e,1),void 0===r.value&&H(d([],L,!0)),_&&_(L))}},K=function(e,t){return function(i){L[t][e]=i.target.value,void 0===r.value&&H(d([],L,!0)),_&&_(L)}},U=function(e){return function(t,i){"key"===e?F&&F(t,i):T&&T(t,i)}},Y=function(e,t){return function(i){L[t][e]=i,"object"==typeof i&&null!==i&&(L[t][e]=i.value),void 0===r.value&&H(d([],L,!0)),_&&_(L)}};return(0,e.jsxs)("div",u({className:(R="paraui-multi-box multi-box",a&&(R+=" "+a),p&&(R+=" multi-box-"+p),k&&(R+=" multi-box-error"),S&&(R+=" multi-box-disabled"),R),style:s},{children:[function(){if(!v&&!w)return null;var t;return(0,e.jsx)(n.default,u({label:v,required:C,labelSign:w},y,{className:(t="multi-box-label",y&&y.className&&(t+=" "+y.className),t)}))}(),(0,e.jsx)("div",u({className:"multi-box-content"},{children:L.map((function(t,n){return(0,e.jsxs)("div",u({className:"multi-box-content-item"},{children:[(0,e.jsxs)("div",u({className:"multi-box-content-item-input"},{children:[(0,e.jsx)(i.default,{size:p,disabled:S,placeholder:h,value:t[B.key||""],onChange:K(B.key||"",n),fetchSuggestions:F?U("key"):void 0,onSelect:Y(B.key||"",n)}),(0,e.jsx)("span",{children:":"}),(0,e.jsx)(i.default,{size:p,disabled:S,placeholder:m,value:t[B.value||""],onChange:K(B.value||"",n),fetchSuggestions:T?U("value"):void 0,onSelect:Y(B.value||"",n)})]})),(0,e.jsx)("span",u({className:"single-box-content-item-svg"},{children:(0,e.jsx)(c(),{onClick:A(n)})}))]}),n)}))})),(0,e.jsx)("div",u({className:"multi-box-add",onClick:function(){S||(L.push({}),void 0===r.value&&H(d([],L,!0)),_&&_(L))}},{children:(0,e.jsx)(l(),{})})),(0,e.jsx)(o.default,{className:"multi-box-error-text",error:k,helperText:M})]}))};h.default=s}(),h}()}));
1
+ import { _ as _typeof } from '../_verture/typeof-498dd2b1.js';
2
+ import { _ as _toConsumableArray } from '../_verture/toConsumableArray-f8047a75.js';
3
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-d7722f4b.js';
4
+ import { jsxs, jsx } from 'react/jsx-runtime';
5
+ import { useState, useEffect } from 'react';
6
+ import { TextField } from '../TextField/index.js';
7
+ import Label from '../Label/index.js';
8
+ import HelperText from '../HelperText/index.js';
9
+ import Plus from '@para-ui/icons/Plus';
10
+ import Delete from '@para-ui/icons/Delete';
11
+ import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
12
+ import '../_verture/tslib.es6-55ed4bd2.js';
13
+ import '@paraview/lib';
14
+ import '@para-ui/icons/PreviewClose';
15
+ import '@para-ui/icons/PreviewOpen';
16
+ import '@para-ui/icons/CloseCircle';
17
+ import '../AutoTips/index.js';
18
+ import '../Tooltip/index.js';
19
+ import 'rc-tooltip';
20
+ import 'rc-tooltip/lib/placements';
21
+ import 'clsx';
22
+ import '../Loading/index.js';
23
+ import '@para-ui/icons/LoadingF';
24
+ import '../_verture/useGlobalProps-af9a2af6.js';
25
+ import '@para-ui/core/GlobalContext';
26
+ import '../Dropdown/index.js';
27
+ import 'rc-dropdown';
28
+ import '../Help/index.js';
29
+ import '@para-ui/icons/Help';
30
+
31
+ var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-multi-box {\n display: inline-block;\n width: 100%;\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n}\n.paraui-multi-box > .multi-box-content {\n line-height: 0;\n}\n.paraui-multi-box > .multi-box-content > .multi-box-content-item {\n padding-bottom: 15px;\n display: flex;\n}\n.paraui-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input {\n width: calc(100% - 30px);\n display: flex;\n}\n.paraui-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .text-field {\n width: calc(50% - 10px);\n}\n.paraui-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .text-field > .paraui-helper-text {\n display: none;\n}\n.paraui-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > span {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 20px;\n}\n.paraui-multi-box > .multi-box-content > .multi-box-content-item > .single-box-content-item-svg {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 30px;\n cursor: pointer;\n}\n.paraui-multi-box > .multi-box-add {\n text-align: center;\n border: 1px dashed;\n border-color: rgba(171, 176, 185, 0.4);\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 4px;\n cursor: pointer;\n background-color: rgb(255, 255, 255);\n}\n.paraui-multi-box > .multi-box-add > svg {\n font-size: 24px;\n}\n.paraui-multi-box > .multi-box-add:hover {\n border-color: rgb(54, 102, 214);\n color: rgb(54, 102, 214);\n}\n.paraui-multi-box.multi-box-small > .multi-box-add {\n height: 28px;\n}\n.paraui-multi-box.multi-box-medium > .multi-box-add {\n height: 32px;\n}\n.paraui-multi-box.multi-box-large > .multi-box-add {\n height: 36px;\n}\n.paraui-multi-box.multi-box-disabled > .multi-box-content > .multi-box-content-item > .single-box-content-item-svg {\n cursor: not-allowed;\n}\n.paraui-multi-box.multi-box-disabled > .multi-box-content > .multi-box-content-item > .single-box-content-item-svg > svg {\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-multi-box.multi-box-disabled > .multi-box-add {\n border-color: rgba(171, 176, 185, 0.4);\n cursor: not-allowed;\n background-color: rgba(171, 176, 185, 0.12);\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-multi-box.multi-box-disabled > .multi-box-add > svg {\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-multi-box.multi-box-disabled > .multi-box-add:hover {\n border-color: rgba(171, 176, 185, 0.4);\n color: rgba(46, 55, 67, 0.7);\n}";
32
+ styleInject(css_248z);
33
+
34
+ var MultiBox = function MultiBox(props) {
35
+ var className = props.className,
36
+ style = props.style,
37
+ _props$size = props.size,
38
+ size = _props$size === void 0 ? 'large' : _props$size,
39
+ _props$placeholderKey = props.placeholderKey,
40
+ placeholderKey = _props$placeholderKey === void 0 ? '' : _props$placeholderKey,
41
+ _props$placeholderVal = props.placeholderValue,
42
+ placeholderValue = _props$placeholderVal === void 0 ? '' : _props$placeholderVal,
43
+ _props$label = props.label,
44
+ label = _props$label === void 0 ? '' : _props$label,
45
+ labelTooltip = props.labelTooltip,
46
+ labelSign = props.labelSign,
47
+ _props$disabled = props.disabled,
48
+ disabled = _props$disabled === void 0 ? false : _props$disabled,
49
+ _props$required = props.required,
50
+ required = _props$required === void 0 ? false : _props$required,
51
+ _props$error = props.error,
52
+ error = _props$error === void 0 ? false : _props$error,
53
+ _props$helperText = props.helperText,
54
+ helperText = _props$helperText === void 0 ? '' : _props$helperText,
55
+ value = props.value,
56
+ replaceFields = props.replaceFields,
57
+ onChange = props.onChange,
58
+ fetchSuggestionsKey = props.fetchSuggestionsKey,
59
+ fetchSuggestionsValue = props.fetchSuggestionsValue;
60
+
61
+ var _useState = useState([]),
62
+ _useState2 = _slicedToArray(_useState, 2),
63
+ valueCom = _useState2[0],
64
+ setValueCom = _useState2[1];
65
+
66
+ var _useState3 = useState({
67
+ key: 'label',
68
+ value: 'value'
69
+ }),
70
+ _useState4 = _slicedToArray(_useState3, 2),
71
+ replaceFieldsCom = _useState4[0],
72
+ setReplaceFieldsCom = _useState4[1];
73
+
74
+ useEffect(function () {
75
+ if (props.defaultValue !== undefined) setValueCom(_toConsumableArray(props.defaultValue));
76
+ }, []);
77
+ useEffect(function () {
78
+ if (value !== undefined) setValueCom(_toConsumableArray(value));
79
+ }, [value]);
80
+ useEffect(function () {
81
+ if (replaceFields) {
82
+ var json = Object.assign(Object.assign({}, replaceFieldsCom), replaceFields);
83
+ setReplaceFieldsCom(json);
84
+ }
85
+ }, [replaceFields]);
86
+ /** 增加 */
87
+
88
+ var add = function add() {
89
+ if (disabled) return;
90
+ valueCom.push({});
91
+ if (props.value === undefined) setValueCom(_toConsumableArray(valueCom));
92
+ onChange && onChange(valueCom);
93
+ };
94
+ /** 删除 */
95
+
96
+
97
+ var del = function del(index) {
98
+ return function () {
99
+ if (disabled) return;
100
+ valueCom.splice(index, 1);
101
+ if (props.value === undefined) setValueCom(_toConsumableArray(valueCom));
102
+ onChange && onChange(valueCom);
103
+ };
104
+ };
105
+ /** 改变值 */
106
+
107
+
108
+ var changeValue = function changeValue(key, index) {
109
+ return function (event) {
110
+ valueCom[index][key] = event.target.value;
111
+ if (props.value === undefined) setValueCom(_toConsumableArray(valueCom));
112
+ onChange && onChange(valueCom);
113
+ };
114
+ };
115
+ /**
116
+ * 处理label
117
+ * */
118
+
119
+
120
+ var handLabel = function handLabel() {
121
+ if (!label && !labelSign) return null;
122
+
123
+ var handLabelClass = function handLabelClass() {
124
+ var str = 'multi-box-label';
125
+
126
+ if (labelTooltip && labelTooltip.className) {
127
+ str += ' ' + labelTooltip.className;
128
+ }
129
+
130
+ return str;
131
+ };
132
+
133
+ return jsx(Label, Object.assign({
134
+ label: label,
135
+ required: required,
136
+ labelSign: labelSign
137
+ }, labelTooltip, {
138
+ className: handLabelClass()
139
+ }));
140
+ };
141
+ /** 模糊匹配 */
142
+
143
+
144
+ var fetchSuggestions = function fetchSuggestions(key) {
145
+ return function (val, cb) {
146
+ if (key === 'key') fetchSuggestionsKey && fetchSuggestionsKey(val, cb);else fetchSuggestionsValue && fetchSuggestionsValue(val, cb);
147
+ };
148
+ };
149
+ /** 选择值 */
150
+
151
+
152
+ var selectValue = function selectValue(key, index) {
153
+ return function (item) {
154
+ valueCom[index][key] = item;
155
+
156
+ if (_typeof(item) === 'object' && item !== null) {
157
+ valueCom[index][key] = item.value;
158
+ }
159
+
160
+ if (props.value === undefined) setValueCom(_toConsumableArray(valueCom));
161
+ onChange && onChange(valueCom);
162
+ };
163
+ };
164
+ /** 处理class */
165
+
166
+
167
+ var handClass = function handClass() {
168
+ var str = 'paraui-multi-box multi-box';
169
+ if (className) str += ' ' + className;
170
+ if (size) str += ' multi-box-' + size;
171
+ if (error) str += ' multi-box-error';
172
+ if (disabled) str += ' multi-box-disabled';
173
+ return str;
174
+ };
175
+
176
+ return jsxs("div", Object.assign({
177
+ className: handClass(),
178
+ style: style
179
+ }, {
180
+ children: [handLabel(), jsx("div", Object.assign({
181
+ className: "multi-box-content"
182
+ }, {
183
+ children: valueCom.map(function (item, index) {
184
+ return jsxs("div", Object.assign({
185
+ className: "multi-box-content-item"
186
+ }, {
187
+ children: [jsxs("div", Object.assign({
188
+ className: "multi-box-content-item-input"
189
+ }, {
190
+ children: [jsx(TextField, {
191
+ size: size,
192
+ disabled: disabled,
193
+ placeholder: placeholderKey,
194
+ value: item[replaceFieldsCom.key || ''],
195
+ onChange: changeValue(replaceFieldsCom.key || '', index),
196
+ fetchSuggestions: fetchSuggestionsKey ? fetchSuggestions('key') : undefined,
197
+ onSelect: selectValue(replaceFieldsCom.key || '', index)
198
+ }), jsx("span", {
199
+ children: ":"
200
+ }), jsx(TextField, {
201
+ size: size,
202
+ disabled: disabled,
203
+ placeholder: placeholderValue,
204
+ value: item[replaceFieldsCom.value || ''],
205
+ onChange: changeValue(replaceFieldsCom.value || '', index),
206
+ fetchSuggestions: fetchSuggestionsValue ? fetchSuggestions('value') : undefined,
207
+ onSelect: selectValue(replaceFieldsCom.value || '', index)
208
+ })]
209
+ })), jsx("span", Object.assign({
210
+ className: "single-box-content-item-svg"
211
+ }, {
212
+ children: jsx(Delete, {
213
+ onClick: del(index)
214
+ })
215
+ }))]
216
+ }), index);
217
+ })
218
+ })), jsx("div", Object.assign({
219
+ className: "multi-box-add",
220
+ onClick: add
221
+ }, {
222
+ children: jsx(Plus, {})
223
+ })), jsx(HelperText, {
224
+ className: "multi-box-error-text",
225
+ error: error,
226
+ helperText: helperText
227
+ })]
228
+ }));
229
+ };
230
+
231
+ export { MultiBox, MultiBox as default };
@@ -1,52 +1,52 @@
1
- /**
2
- * @author Hanz
3
- * @date 2022/1/13 上午10:30
4
- * @description 通知提醒框
5
- */
6
- import React from 'react';
7
- import './index.scss';
8
- export declare type NotificationPlacement = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
9
- export declare type IconType = 'success' | 'info' | 'error' | 'warning';
10
- export interface ConfigProps {
11
- top?: number;
12
- bottom?: number;
13
- duration?: number;
14
- placement?: NotificationPlacement;
15
- getContainer?: () => HTMLElement;
16
- closeIcon?: React.ReactNode;
17
- maxCount?: number;
18
- }
19
- export interface ArgsProps {
20
- message: React.ReactNode;
21
- description?: React.ReactNode;
22
- btn?: React.ReactNode;
23
- key?: string;
24
- onClose?: () => void;
25
- duration?: number | null;
26
- icon?: React.ReactNode;
27
- placement?: NotificationPlacement;
28
- style?: React.CSSProperties;
29
- prefixCls?: string;
30
- className?: string;
31
- readonly type?: IconType;
32
- onClick?: () => void;
33
- top?: number;
34
- bottom?: number;
35
- getContainer?: () => HTMLElement;
36
- closeIcon?: React.ReactNode;
37
- }
38
- export interface NotificationInstance {
39
- success(args: ArgsProps): void;
40
- error(args: ArgsProps): void;
41
- info(args: ArgsProps): void;
42
- warning(args: ArgsProps): void;
43
- open(args: ArgsProps): void;
44
- }
45
- export interface NotificationApi extends NotificationInstance {
46
- warn(args: ArgsProps): void;
47
- close(key: string): void;
48
- config(options: ConfigProps): void;
49
- destroy(): void;
50
- }
51
- declare const _default: NotificationApi;
52
- export default _default;
1
+ /**
2
+ * @author Hanz
3
+ * @date 2022/1/13 上午10:30
4
+ * @description 通知提醒框
5
+ */
6
+ import React from 'react';
7
+ import './index.scss';
8
+ export declare type NotificationPlacement = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
9
+ export declare type IconType = 'success' | 'info' | 'error' | 'warning';
10
+ export interface ConfigProps {
11
+ top?: number;
12
+ bottom?: number;
13
+ duration?: number;
14
+ placement?: NotificationPlacement;
15
+ getContainer?: () => HTMLElement;
16
+ closeIcon?: React.ReactNode;
17
+ maxCount?: number;
18
+ }
19
+ export interface ArgsProps {
20
+ message: React.ReactNode;
21
+ description?: React.ReactNode;
22
+ btn?: React.ReactNode;
23
+ key?: string;
24
+ onClose?: () => void;
25
+ duration?: number | null;
26
+ icon?: React.ReactNode;
27
+ placement?: NotificationPlacement;
28
+ style?: React.CSSProperties;
29
+ prefixCls?: string;
30
+ className?: string;
31
+ readonly type?: IconType;
32
+ onClick?: () => void;
33
+ top?: number;
34
+ bottom?: number;
35
+ getContainer?: () => HTMLElement;
36
+ closeIcon?: React.ReactNode;
37
+ }
38
+ export interface NotificationInstance {
39
+ success(args: ArgsProps): void;
40
+ error(args: ArgsProps): void;
41
+ info(args: ArgsProps): void;
42
+ warning(args: ArgsProps): void;
43
+ open(args: ArgsProps): void;
44
+ }
45
+ export interface NotificationApi extends NotificationInstance {
46
+ warn(args: ArgsProps): void;
47
+ close(key: string): void;
48
+ config(options: ConfigProps): void;
49
+ destroy(): void;
50
+ }
51
+ declare const _default: NotificationApi;
52
+ export default _default;