funda-ui 4.7.624 → 4.7.701

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 (613) hide show
  1. package/{publish/CascadingSelect → CascadingSelect}/index.js +2 -2
  2. package/{publish/CascadingSelectE2E → CascadingSelectE2E}/index.js +2 -2
  3. package/{publish/Chatbox → Chatbox}/index.js +3 -17
  4. package/{publish/lib/cjs/Checkbox → Checkbox}/index.js +3 -3
  5. package/{publish/lib/cjs/ColorPicker → ColorPicker}/index.js +3 -18
  6. package/{publish/lib/cjs/Date → Date}/index.js +3 -18
  7. package/{publish/lib/cjs/EventCalendarTimeline → EventCalendarTimeline}/index.d.ts +1 -1
  8. package/{publish/EventCalendarTimeline → EventCalendarTimeline}/index.js +11 -1
  9. package/{publish/File → File}/index.d.ts +9 -0
  10. package/{publish/lib/cjs/File → File}/index.js +245 -93
  11. package/{publish/lib/cjs/Input → Input}/index.js +3 -18
  12. package/{publish/lib/cjs/LiveSearch → LiveSearch}/index.js +3 -18
  13. package/{publish/NativeSelect → NativeSelect}/index.js +3 -3
  14. package/{publish/NumberInput → NumberInput}/index.js +3 -18
  15. package/{publish/lib/css/Tooltip → Popover}/index.css +69 -69
  16. package/Popover/index.d.ts +4 -0
  17. package/{publish/lib/cjs/Tooltip → Popover}/index.js +301 -271
  18. package/README.md +3 -116
  19. package/{publish/lib/cjs/Radio → Radio}/index.js +3 -3
  20. package/{publish/lib/cjs/RangeSlider → RangeSlider}/index.js +3 -18
  21. package/{publish/SearchBar → SearchBar}/index.js +3 -18
  22. package/{publish/Select → Select}/index.js +3 -2
  23. package/{publish/Switch → Switch}/index.js +3 -3
  24. package/TagInput/index.css +91 -0
  25. package/{publish/lib/cjs/TagInput → TagInput}/index.js +12 -23
  26. package/{publish/lib/cjs/Textarea → Textarea}/index.js +3 -17
  27. package/Utils/useSSE.d.ts +9 -0
  28. package/{publish/lib/cjs/Utils/useKeyPress.js → Utils/useSSE.js} +88 -77
  29. package/{publish/all.d.ts → all.d.ts} +1 -0
  30. package/{publish/all.js → all.js} +1 -0
  31. package/lib/cjs/CascadingSelect/index.js +2 -2
  32. package/lib/cjs/CascadingSelectE2E/index.js +2 -2
  33. package/lib/cjs/Chatbox/index.js +3 -17
  34. package/lib/cjs/Checkbox/index.js +3 -3
  35. package/lib/cjs/ColorPicker/index.js +3 -18
  36. package/lib/cjs/Date/index.js +3 -18
  37. package/lib/cjs/EventCalendarTimeline/index.d.ts +1 -1
  38. package/lib/cjs/EventCalendarTimeline/index.js +11 -1
  39. package/lib/cjs/File/index.d.ts +9 -0
  40. package/lib/cjs/File/index.js +245 -93
  41. package/lib/cjs/Input/index.js +3 -18
  42. package/lib/cjs/LiveSearch/index.js +3 -18
  43. package/lib/cjs/NativeSelect/index.js +3 -3
  44. package/lib/cjs/NumberInput/index.js +3 -18
  45. package/lib/cjs/Popover/index.d.ts +4 -0
  46. package/{publish/lib/cjs/DropdownMenu → lib/cjs/Popover}/index.js +553 -252
  47. package/lib/cjs/Radio/index.js +3 -3
  48. package/lib/cjs/RangeSlider/index.js +3 -18
  49. package/lib/cjs/SearchBar/index.js +3 -18
  50. package/lib/cjs/Select/index.js +3 -2
  51. package/lib/cjs/Switch/index.js +3 -3
  52. package/lib/cjs/TagInput/index.js +12 -23
  53. package/lib/cjs/Textarea/index.js +3 -17
  54. package/lib/cjs/Utils/useSSE.d.ts +9 -0
  55. package/{publish/lib/cjs/Utils/useAutosizeTextArea.js → lib/cjs/Utils/useSSE.js} +90 -110
  56. package/lib/cjs/index.d.ts +1 -0
  57. package/lib/cjs/index.js +1 -0
  58. package/lib/css/Popover/index.css +198 -0
  59. package/lib/css/TagInput/index.css +31 -31
  60. package/lib/esm/CascadingSelect/index.tsx +2 -2
  61. package/lib/esm/CascadingSelectE2E/index.tsx +2 -2
  62. package/lib/esm/Checkbox/index.tsx +3 -3
  63. package/lib/esm/ColorPicker/index.tsx +4 -15
  64. package/lib/esm/EventCalendarTimeline/index.tsx +11 -2
  65. package/lib/esm/File/index.tsx +148 -23
  66. package/lib/esm/Input/index.tsx +6 -17
  67. package/lib/esm/NativeSelect/index.tsx +3 -3
  68. package/lib/esm/NumberInput/index.tsx +7 -15
  69. package/lib/esm/Popover/Popover.tsx +251 -0
  70. package/lib/esm/Popover/PopoverClose.tsx +51 -0
  71. package/lib/esm/Popover/PopoverContent.tsx +72 -0
  72. package/lib/esm/Popover/PopoverTrigger.tsx +62 -0
  73. package/{publish/lib/esm/Tooltip → lib/esm/Popover}/index.scss +61 -61
  74. package/lib/esm/Popover/index.tsx +4 -0
  75. package/lib/esm/Radio/index.tsx +3 -3
  76. package/lib/esm/SearchBar/index.tsx +8 -12
  77. package/lib/esm/Select/index.tsx +2 -2
  78. package/lib/esm/Switch/index.tsx +3 -3
  79. package/lib/esm/TagInput/index.scss +24 -24
  80. package/lib/esm/TagInput/index.tsx +13 -20
  81. package/lib/esm/Textarea/index.tsx +6 -14
  82. package/lib/esm/Utils/hooks/useSSE.tsx +109 -0
  83. package/lib/esm/index.js +1 -0
  84. package/package.json +1 -591
  85. package/.gitattributes +0 -2
  86. package/README_PUBLISH.md +0 -328
  87. package/logo.png +0 -0
  88. package/preview.png +0 -0
  89. package/publish/Checkbox/index.js +0 -673
  90. package/publish/ColorPicker/index.js +0 -662
  91. package/publish/Date/index.js +0 -6368
  92. package/publish/EventCalendarTimeline/index.d.ts +0 -100
  93. package/publish/File/index.js +0 -1751
  94. package/publish/Input/index.js +0 -1486
  95. package/publish/LICENSE +0 -21
  96. package/publish/LiveSearch/index.js +0 -4180
  97. package/publish/README.md +0 -328
  98. package/publish/Radio/index.js +0 -1838
  99. package/publish/RangeSlider/index.js +0 -2696
  100. package/publish/TagInput/index.css +0 -91
  101. package/publish/TagInput/index.js +0 -1227
  102. package/publish/Textarea/index.js +0 -1795
  103. package/publish/lib/cjs/Accordion/index.d.ts +0 -2
  104. package/publish/lib/cjs/Accordion/index.js +0 -667
  105. package/publish/lib/cjs/BackToTop/index.d.ts +0 -17
  106. package/publish/lib/cjs/BackToTop/index.js +0 -904
  107. package/publish/lib/cjs/CascadingSelect/index.d.ts +0 -80
  108. package/publish/lib/cjs/CascadingSelect/index.js +0 -3383
  109. package/publish/lib/cjs/CascadingSelectE2E/index.d.ts +0 -91
  110. package/publish/lib/cjs/CascadingSelectE2E/index.js +0 -3988
  111. package/publish/lib/cjs/Chatbox/index.d.ts +0 -101
  112. package/publish/lib/cjs/Chatbox/index.js +0 -7037
  113. package/publish/lib/cjs/Checkbox/index.d.ts +0 -28
  114. package/publish/lib/cjs/ColorPicker/index.d.ts +0 -27
  115. package/publish/lib/cjs/Date/index.d.ts +0 -70
  116. package/publish/lib/cjs/DigitalClock/index.d.ts +0 -7
  117. package/publish/lib/cjs/DigitalClock/index.js +0 -402
  118. package/publish/lib/cjs/DragDropList/index.d.ts +0 -45
  119. package/publish/lib/cjs/DragDropList/index.js +0 -1586
  120. package/publish/lib/cjs/DropdownMenu/index.d.ts +0 -38
  121. package/publish/lib/cjs/DynamicFields/index.d.ts +0 -40
  122. package/publish/lib/cjs/DynamicFields/index.js +0 -818
  123. package/publish/lib/cjs/EventCalendar/index.d.ts +0 -61
  124. package/publish/lib/cjs/EventCalendar/index.js +0 -3789
  125. package/publish/lib/cjs/EventCalendarTimeline/index.js +0 -6141
  126. package/publish/lib/cjs/File/index.d.ts +0 -40
  127. package/publish/lib/cjs/HorizontalScrollContent/index.d.ts +0 -14
  128. package/publish/lib/cjs/HorizontalScrollContent/index.js +0 -426
  129. package/publish/lib/cjs/Input/index.d.ts +0 -59
  130. package/publish/lib/cjs/LiveSearch/index.d.ts +0 -70
  131. package/publish/lib/cjs/MasonryLayout/index.d.ts +0 -14
  132. package/publish/lib/cjs/MasonryLayout/index.js +0 -689
  133. package/publish/lib/cjs/ModalDialog/index.d.ts +0 -83
  134. package/publish/lib/cjs/ModalDialog/index.js +0 -1719
  135. package/publish/lib/cjs/ModeSwitch/index.d.ts +0 -17
  136. package/publish/lib/cjs/ModeSwitch/index.js +0 -202
  137. package/publish/lib/cjs/MultilevelDropdownMenu/index.d.ts +0 -20
  138. package/publish/lib/cjs/MultilevelDropdownMenu/index.js +0 -930
  139. package/publish/lib/cjs/MultipleCheckboxes/index.d.ts +0 -66
  140. package/publish/lib/cjs/MultipleCheckboxes/index.js +0 -2337
  141. package/publish/lib/cjs/MultipleSelect/index.d.ts +0 -65
  142. package/publish/lib/cjs/MultipleSelect/index.js +0 -4197
  143. package/publish/lib/cjs/NativeSelect/index.d.ts +0 -37
  144. package/publish/lib/cjs/NativeSelect/index.js +0 -2052
  145. package/publish/lib/cjs/NumberInput/index.d.ts +0 -40
  146. package/publish/lib/cjs/NumberInput/index.js +0 -1191
  147. package/publish/lib/cjs/Pagination/index.d.ts +0 -51
  148. package/publish/lib/cjs/Pagination/index.js +0 -612
  149. package/publish/lib/cjs/Radio/index.d.ts +0 -45
  150. package/publish/lib/cjs/RangeSlider/index.d.ts +0 -22
  151. package/publish/lib/cjs/Refresher/index.d.ts +0 -22
  152. package/publish/lib/cjs/Refresher/index.js +0 -564
  153. package/publish/lib/cjs/RootPortal/index.d.ts +0 -9
  154. package/publish/lib/cjs/RootPortal/index.js +0 -148
  155. package/publish/lib/cjs/ScrollReveal/index.d.ts +0 -21
  156. package/publish/lib/cjs/ScrollReveal/index.js +0 -401
  157. package/publish/lib/cjs/Scrollbar/index.d.ts +0 -17
  158. package/publish/lib/cjs/Scrollbar/index.js +0 -1107
  159. package/publish/lib/cjs/SearchBar/index.d.ts +0 -41
  160. package/publish/lib/cjs/SearchBar/index.js +0 -701
  161. package/publish/lib/cjs/Select/index.d.ts +0 -107
  162. package/publish/lib/cjs/Select/index.js +0 -6540
  163. package/publish/lib/cjs/ShowMoreLess/index.d.ts +0 -36
  164. package/publish/lib/cjs/ShowMoreLess/index.js +0 -387
  165. package/publish/lib/cjs/SplitterPanel/index.d.ts +0 -20
  166. package/publish/lib/cjs/SplitterPanel/index.js +0 -800
  167. package/publish/lib/cjs/Stepper/index.d.ts +0 -26
  168. package/publish/lib/cjs/Stepper/index.js +0 -568
  169. package/publish/lib/cjs/Switch/index.d.ts +0 -25
  170. package/publish/lib/cjs/Switch/index.js +0 -630
  171. package/publish/lib/cjs/Table/index.d.ts +0 -12
  172. package/publish/lib/cjs/Table/index.js +0 -2311
  173. package/publish/lib/cjs/Tabs/index.d.ts +0 -3
  174. package/publish/lib/cjs/Tabs/index.js +0 -771
  175. package/publish/lib/cjs/TagInput/index.d.ts +0 -37
  176. package/publish/lib/cjs/Textarea/index.d.ts +0 -50
  177. package/publish/lib/cjs/Toast/index.d.ts +0 -3
  178. package/publish/lib/cjs/Toast/index.js +0 -1345
  179. package/publish/lib/cjs/Tooltip/index.d.ts +0 -38
  180. package/publish/lib/cjs/Tree/index.d.ts +0 -78
  181. package/publish/lib/cjs/Tree/index.js +0 -2330
  182. package/publish/lib/cjs/Utils/anim.d.ts +0 -11
  183. package/publish/lib/cjs/Utils/anim.js +0 -846
  184. package/publish/lib/cjs/Utils/bodyScrollLock.d.ts +0 -8
  185. package/publish/lib/cjs/Utils/bodyScrollLock.js +0 -311
  186. package/publish/lib/cjs/Utils/buffer.d.ts +0 -67
  187. package/publish/lib/cjs/Utils/buffer.js +0 -343
  188. package/publish/lib/cjs/Utils/cls.d.ts +0 -15
  189. package/publish/lib/cjs/Utils/cls.js +0 -124
  190. package/publish/lib/cjs/Utils/convert.d.ts +0 -25
  191. package/publish/lib/cjs/Utils/convert.js +0 -109
  192. package/publish/lib/cjs/Utils/date.d.ts +0 -227
  193. package/publish/lib/cjs/Utils/date.js +0 -587
  194. package/publish/lib/cjs/Utils/dom.d.ts +0 -13
  195. package/publish/lib/cjs/Utils/dom.js +0 -215
  196. package/publish/lib/cjs/Utils/easing.d.ts +0 -29
  197. package/publish/lib/cjs/Utils/easing.js +0 -221
  198. package/publish/lib/cjs/Utils/extract.d.ts +0 -66
  199. package/publish/lib/cjs/Utils/extract.js +0 -195
  200. package/publish/lib/cjs/Utils/format-string.d.ts +0 -65
  201. package/publish/lib/cjs/Utils/format-string.js +0 -167
  202. package/publish/lib/cjs/Utils/formdata.d.ts +0 -13
  203. package/publish/lib/cjs/Utils/formdata.js +0 -131
  204. package/publish/lib/cjs/Utils/getElementProperty.d.ts +0 -52
  205. package/publish/lib/cjs/Utils/getElementProperty.js +0 -189
  206. package/publish/lib/cjs/Utils/guid.d.ts +0 -7
  207. package/publish/lib/cjs/Utils/guid.js +0 -67
  208. package/publish/lib/cjs/Utils/initDefaultOptions.d.ts +0 -10
  209. package/publish/lib/cjs/Utils/initDefaultOptions.js +0 -607
  210. package/publish/lib/cjs/Utils/inputsCalculation.d.ts +0 -28
  211. package/publish/lib/cjs/Utils/inputsCalculation.js +0 -188
  212. package/publish/lib/cjs/Utils/math.d.ts +0 -77
  213. package/publish/lib/cjs/Utils/math.js +0 -305
  214. package/publish/lib/cjs/Utils/object.d.ts +0 -18
  215. package/publish/lib/cjs/Utils/object.js +0 -120
  216. package/publish/lib/cjs/Utils/os.d.ts +0 -2
  217. package/publish/lib/cjs/Utils/os.js +0 -104
  218. package/publish/lib/cjs/Utils/performance.d.ts +0 -3
  219. package/publish/lib/cjs/Utils/performance.js +0 -94
  220. package/publish/lib/cjs/Utils/sanitize.d.ts +0 -14
  221. package/publish/lib/cjs/Utils/sanitize.js +0 -87
  222. package/publish/lib/cjs/Utils/time.d.ts +0 -40
  223. package/publish/lib/cjs/Utils/time.js +0 -177
  224. package/publish/lib/cjs/Utils/tree.d.ts +0 -40
  225. package/publish/lib/cjs/Utils/tree.js +0 -195
  226. package/publish/lib/cjs/Utils/useAutosizeTextArea.d.ts +0 -10
  227. package/publish/lib/cjs/Utils/useBoundedDrag.d.ts +0 -125
  228. package/publish/lib/cjs/Utils/useBoundedDrag.js +0 -380
  229. package/publish/lib/cjs/Utils/useClickOutside.d.ts +0 -33
  230. package/publish/lib/cjs/Utils/useClickOutside.js +0 -166
  231. package/publish/lib/cjs/Utils/useComId.d.ts +0 -6
  232. package/publish/lib/cjs/Utils/useComId.js +0 -114
  233. package/publish/lib/cjs/Utils/useDebounce.d.ts +0 -20
  234. package/publish/lib/cjs/Utils/useDebounce.js +0 -138
  235. package/publish/lib/cjs/Utils/useDragDropPosition.d.ts +0 -166
  236. package/publish/lib/cjs/Utils/useDragDropPosition.js +0 -453
  237. package/publish/lib/cjs/Utils/useDraggable.d.ts +0 -62
  238. package/publish/lib/cjs/Utils/useDraggable.js +0 -348
  239. package/publish/lib/cjs/Utils/useHistoryTracker.d.ts +0 -166
  240. package/publish/lib/cjs/Utils/useHistoryTracker.js +0 -649
  241. package/publish/lib/cjs/Utils/useInterval.d.ts +0 -5
  242. package/publish/lib/cjs/Utils/useInterval.js +0 -168
  243. package/publish/lib/cjs/Utils/useIsMobile.d.ts +0 -2
  244. package/publish/lib/cjs/Utils/useIsMobile.js +0 -232
  245. package/publish/lib/cjs/Utils/useKeyPress.d.ts +0 -44
  246. package/publish/lib/cjs/Utils/useSessionStorageListener.d.ts +0 -2
  247. package/publish/lib/cjs/Utils/useSessionStorageListener.js +0 -157
  248. package/publish/lib/cjs/Utils/useStreamController.d.ts +0 -71
  249. package/publish/lib/cjs/Utils/useStreamController.js +0 -494
  250. package/publish/lib/cjs/Utils/useThrottle.d.ts +0 -2
  251. package/publish/lib/cjs/Utils/useThrottle.js +0 -136
  252. package/publish/lib/cjs/Utils/useWindowScroll.d.ts +0 -12
  253. package/publish/lib/cjs/Utils/useWindowScroll.js +0 -217
  254. package/publish/lib/cjs/Utils/validate.d.ts +0 -53
  255. package/publish/lib/cjs/Utils/validate.js +0 -536
  256. package/publish/lib/cjs/Utils/viewport.d.ts +0 -7
  257. package/publish/lib/cjs/Utils/viewport.js +0 -64
  258. package/publish/lib/cjs/index.d.ts +0 -49
  259. package/publish/lib/cjs/index.js +0 -50
  260. package/publish/lib/css/BackToTop/index.css +0 -34
  261. package/publish/lib/css/CascadingSelect/index.css +0 -245
  262. package/publish/lib/css/CascadingSelectE2E/index.css +0 -245
  263. package/publish/lib/css/Chatbox/index.css +0 -774
  264. package/publish/lib/css/ColorPicker/index.css +0 -58
  265. package/publish/lib/css/Date/index.css +0 -434
  266. package/publish/lib/css/DragDropList/index.css +0 -188
  267. package/publish/lib/css/DropdownMenu/index.css +0 -151
  268. package/publish/lib/css/EventCalendar/index.css +0 -300
  269. package/publish/lib/css/EventCalendarTimeline/index.css +0 -694
  270. package/publish/lib/css/HorizontalScrollContent/index.css +0 -70
  271. package/publish/lib/css/LiveSearch/index.css +0 -88
  272. package/publish/lib/css/MultilevelDropdownMenu/index.css +0 -38
  273. package/publish/lib/css/MultipleSelect/index.css +0 -313
  274. package/publish/lib/css/RangeSlider/index.css +0 -150
  275. package/publish/lib/css/Scrollbar/index.css +0 -176
  276. package/publish/lib/css/Select/index.css +0 -434
  277. package/publish/lib/css/ShowMoreLess/index.css +0 -23
  278. package/publish/lib/css/SplitterPanel/index.css +0 -63
  279. package/publish/lib/css/Stepper/index.css +0 -250
  280. package/publish/lib/css/Table/index.css +0 -584
  281. package/publish/lib/css/TagInput/index.css +0 -91
  282. package/publish/lib/css/Toast/index.css +0 -149
  283. package/publish/lib/css/Tree/index.css +0 -237
  284. package/publish/lib/esm/Accordion/Accordion.tsx +0 -185
  285. package/publish/lib/esm/Accordion/AccordionItem.tsx +0 -248
  286. package/publish/lib/esm/Accordion/index.tsx +0 -2
  287. package/publish/lib/esm/BackToTop/index.scss +0 -47
  288. package/publish/lib/esm/BackToTop/index.tsx +0 -177
  289. package/publish/lib/esm/CascadingSelect/Group.tsx +0 -83
  290. package/publish/lib/esm/CascadingSelect/index.scss +0 -330
  291. package/publish/lib/esm/CascadingSelect/index.tsx +0 -1397
  292. package/publish/lib/esm/CascadingSelectE2E/Group.tsx +0 -87
  293. package/publish/lib/esm/CascadingSelectE2E/index.scss +0 -333
  294. package/publish/lib/esm/CascadingSelectE2E/index.tsx +0 -1684
  295. package/publish/lib/esm/Chatbox/PureLoader.tsx +0 -47
  296. package/publish/lib/esm/Chatbox/TypingEffect.tsx +0 -56
  297. package/publish/lib/esm/Chatbox/index.scss +0 -966
  298. package/publish/lib/esm/Chatbox/index.tsx +0 -1742
  299. package/publish/lib/esm/Chatbox/utils/func.ts +0 -180
  300. package/publish/lib/esm/Checkbox/index.tsx +0 -206
  301. package/publish/lib/esm/ColorPicker/index.scss +0 -91
  302. package/publish/lib/esm/ColorPicker/index.tsx +0 -204
  303. package/publish/lib/esm/Date/Calendar.tsx +0 -723
  304. package/publish/lib/esm/Date/index.scss +0 -567
  305. package/publish/lib/esm/Date/index.tsx +0 -1797
  306. package/publish/lib/esm/Date/localization/en_US.js +0 -13
  307. package/publish/lib/esm/Date/localization/zh_CN.js +0 -12
  308. package/publish/lib/esm/DigitalClock/index.tsx +0 -74
  309. package/publish/lib/esm/DragDropList/index.scss +0 -245
  310. package/publish/lib/esm/DragDropList/index.tsx +0 -504
  311. package/publish/lib/esm/DropdownMenu/Option.tsx +0 -55
  312. package/publish/lib/esm/DropdownMenu/index.scss +0 -205
  313. package/publish/lib/esm/DropdownMenu/index.tsx +0 -378
  314. package/publish/lib/esm/DynamicFields/index.tsx +0 -409
  315. package/publish/lib/esm/EventCalendar/index.scss +0 -407
  316. package/publish/lib/esm/EventCalendar/index.tsx +0 -1005
  317. package/publish/lib/esm/EventCalendarTimeline/index.scss +0 -926
  318. package/publish/lib/esm/EventCalendarTimeline/index.tsx +0 -2686
  319. package/publish/lib/esm/File/index.tsx +0 -477
  320. package/publish/lib/esm/HorizontalScrollContent/index.scss +0 -87
  321. package/publish/lib/esm/HorizontalScrollContent/index.tsx +0 -171
  322. package/publish/lib/esm/Input/index.tsx +0 -641
  323. package/publish/lib/esm/LiveSearch/index.scss +0 -129
  324. package/publish/lib/esm/LiveSearch/index.tsx +0 -1058
  325. package/publish/lib/esm/MasonryLayout/index.tsx +0 -326
  326. package/publish/lib/esm/ModalDialog/index.tsx +0 -572
  327. package/publish/lib/esm/ModeSwitch/index.tsx +0 -82
  328. package/publish/lib/esm/MultilevelDropdownMenu/ItemList.tsx +0 -265
  329. package/publish/lib/esm/MultilevelDropdownMenu/index.scss +0 -79
  330. package/publish/lib/esm/MultilevelDropdownMenu/index.tsx +0 -77
  331. package/publish/lib/esm/MultipleCheckboxes/index.tsx +0 -849
  332. package/publish/lib/esm/MultipleSelect/index.scss +0 -398
  333. package/publish/lib/esm/MultipleSelect/index.tsx +0 -769
  334. package/publish/lib/esm/MultipleSelect/utils/func.ts +0 -63
  335. package/publish/lib/esm/NativeSelect/index.tsx +0 -396
  336. package/publish/lib/esm/NativeSelect/utils/func.ts +0 -51
  337. package/publish/lib/esm/NumberInput/index.tsx +0 -425
  338. package/publish/lib/esm/Pagination/index.tsx +0 -286
  339. package/publish/lib/esm/Pagination/pagination-navigators.tsx +0 -60
  340. package/publish/lib/esm/Radio/index.tsx +0 -694
  341. package/publish/lib/esm/RangeSlider/index.scss +0 -186
  342. package/publish/lib/esm/RangeSlider/index.tsx +0 -241
  343. package/publish/lib/esm/Refresher/index.tsx +0 -121
  344. package/publish/lib/esm/RootPortal/index.tsx +0 -59
  345. package/publish/lib/esm/ScrollReveal/index.tsx +0 -148
  346. package/publish/lib/esm/Scrollbar/index.scss +0 -221
  347. package/publish/lib/esm/Scrollbar/index.tsx +0 -561
  348. package/publish/lib/esm/SearchBar/index.tsx +0 -252
  349. package/publish/lib/esm/Select/index.scss +0 -639
  350. package/publish/lib/esm/Select/index.tsx +0 -3104
  351. package/publish/lib/esm/Select/utils/func.ts +0 -98
  352. package/publish/lib/esm/ShowMoreLess/index.scss +0 -27
  353. package/publish/lib/esm/ShowMoreLess/index.tsx +0 -145
  354. package/publish/lib/esm/SplitterPanel/index.scss +0 -82
  355. package/publish/lib/esm/SplitterPanel/index.tsx +0 -174
  356. package/publish/lib/esm/Stepper/index.scss +0 -315
  357. package/publish/lib/esm/Stepper/index.tsx +0 -325
  358. package/publish/lib/esm/Switch/index.tsx +0 -149
  359. package/publish/lib/esm/Table/Table.tsx +0 -351
  360. package/publish/lib/esm/Table/TableBody.tsx +0 -41
  361. package/publish/lib/esm/Table/TableCaption.tsx +0 -34
  362. package/publish/lib/esm/Table/TableCell.tsx +0 -126
  363. package/publish/lib/esm/Table/TableColgroup.tsx +0 -38
  364. package/publish/lib/esm/Table/TableContext.tsx +0 -26
  365. package/publish/lib/esm/Table/TableFoot.tsx +0 -28
  366. package/publish/lib/esm/Table/TableHead.tsx +0 -28
  367. package/publish/lib/esm/Table/TableRow.tsx +0 -76
  368. package/publish/lib/esm/Table/index.scss +0 -418
  369. package/publish/lib/esm/Table/index.tsx +0 -14
  370. package/publish/lib/esm/Table/utils/DragHandleSprite.tsx +0 -46
  371. package/publish/lib/esm/Table/utils/SortSprite.tsx +0 -63
  372. package/publish/lib/esm/Table/utils/TableFilter.tsx +0 -56
  373. package/publish/lib/esm/Table/utils/ToggleSelection.tsx +0 -255
  374. package/publish/lib/esm/Table/utils/func.ts +0 -182
  375. package/publish/lib/esm/Table/utils/hooks/useTableDraggable.tsx +0 -342
  376. package/publish/lib/esm/Table/utils/hooks/useTableKeyPress.tsx +0 -255
  377. package/publish/lib/esm/Table/utils/hooks/useTableResponsive.tsx +0 -92
  378. package/publish/lib/esm/Table/utils/hooks/useTableSort.tsx +0 -187
  379. package/publish/lib/esm/Tabs/TabList.tsx +0 -50
  380. package/publish/lib/esm/Tabs/TabPanel.tsx +0 -44
  381. package/publish/lib/esm/Tabs/Tabs.tsx +0 -282
  382. package/publish/lib/esm/Tabs/index.tsx +0 -3
  383. package/publish/lib/esm/TagInput/index.scss +0 -126
  384. package/publish/lib/esm/TagInput/index.tsx +0 -379
  385. package/publish/lib/esm/Textarea/index.tsx +0 -621
  386. package/publish/lib/esm/Toast/Item.tsx +0 -165
  387. package/publish/lib/esm/Toast/Toast.tsx +0 -391
  388. package/publish/lib/esm/Toast/ToastContext.tsx +0 -104
  389. package/publish/lib/esm/Toast/__toast.vanilla.js +0 -422
  390. package/publish/lib/esm/Toast/index.scss +0 -197
  391. package/publish/lib/esm/Toast/index.tsx +0 -3
  392. package/publish/lib/esm/Toast/types.ts +0 -60
  393. package/publish/lib/esm/Toast/useToast.tsx +0 -72
  394. package/publish/lib/esm/Tooltip/index.tsx +0 -416
  395. package/publish/lib/esm/Tree/TreeList.tsx +0 -600
  396. package/publish/lib/esm/Tree/index.scss +0 -384
  397. package/publish/lib/esm/Tree/index.tsx +0 -661
  398. package/publish/lib/esm/Tree/init-height.tsx +0 -40
  399. package/publish/lib/esm/Tree/utils/func.ts +0 -15
  400. package/publish/lib/esm/Utils/hooks/useAutosizeTextArea.tsx +0 -131
  401. package/publish/lib/esm/Utils/hooks/useBoundedDrag.tsx +0 -301
  402. package/publish/lib/esm/Utils/hooks/useClickOutside.tsx +0 -69
  403. package/publish/lib/esm/Utils/hooks/useComId.tsx +0 -13
  404. package/publish/lib/esm/Utils/hooks/useDebounce.tsx +0 -40
  405. package/publish/lib/esm/Utils/hooks/useDragDropPosition.tsx +0 -417
  406. package/publish/lib/esm/Utils/hooks/useDraggable.tsx +0 -265
  407. package/publish/lib/esm/Utils/hooks/useHistoryTracker.tsx +0 -554
  408. package/publish/lib/esm/Utils/hooks/useInterval.tsx +0 -74
  409. package/publish/lib/esm/Utils/hooks/useIsMobile.tsx +0 -139
  410. package/publish/lib/esm/Utils/hooks/useKeyPress.tsx +0 -104
  411. package/publish/lib/esm/Utils/hooks/useSessionStorageListener.tsx +0 -45
  412. package/publish/lib/esm/Utils/hooks/useStreamController.tsx +0 -277
  413. package/publish/lib/esm/Utils/hooks/useThrottle.tsx +0 -39
  414. package/publish/lib/esm/Utils/hooks/useWindowScroll.tsx +0 -83
  415. package/publish/lib/esm/Utils/libs/anim.ts +0 -96
  416. package/publish/lib/esm/Utils/libs/buffer.ts +0 -262
  417. package/publish/lib/esm/Utils/libs/cls.ts +0 -64
  418. package/publish/lib/esm/Utils/libs/convert.ts +0 -59
  419. package/publish/lib/esm/Utils/libs/date.ts +0 -598
  420. package/publish/lib/esm/Utils/libs/dom.ts +0 -150
  421. package/publish/lib/esm/Utils/libs/easing.ts +0 -201
  422. package/publish/lib/esm/Utils/libs/extract.ts +0 -160
  423. package/publish/lib/esm/Utils/libs/format-string.ts +0 -116
  424. package/publish/lib/esm/Utils/libs/formdata.ts +0 -93
  425. package/publish/lib/esm/Utils/libs/getElementProperty.ts +0 -150
  426. package/publish/lib/esm/Utils/libs/guid.ts +0 -16
  427. package/publish/lib/esm/Utils/libs/initDefaultOptions.ts +0 -43
  428. package/publish/lib/esm/Utils/libs/inputsCalculation.ts +0 -160
  429. package/publish/lib/esm/Utils/libs/math.ts +0 -276
  430. package/publish/lib/esm/Utils/libs/object.ts +0 -68
  431. package/publish/lib/esm/Utils/libs/os.ts +0 -63
  432. package/publish/lib/esm/Utils/libs/performance.ts +0 -47
  433. package/publish/lib/esm/Utils/libs/sanitize.ts +0 -55
  434. package/publish/lib/esm/Utils/libs/time.ts +0 -139
  435. package/publish/lib/esm/Utils/libs/tree.ts +0 -119
  436. package/publish/lib/esm/Utils/libs/validate.ts +0 -434
  437. package/publish/lib/esm/Utils/libs/viewport.ts +0 -20
  438. package/publish/lib/esm/Utils/plugins/bodyScrollLock.ts +0 -286
  439. package/publish/lib/esm/index.js +0 -47
  440. package/publish/package.json +0 -1
  441. /package/{publish/Accordion → Accordion}/index.d.ts +0 -0
  442. /package/{publish/Accordion → Accordion}/index.js +0 -0
  443. /package/{publish/BackToTop → BackToTop}/index.css +0 -0
  444. /package/{publish/BackToTop → BackToTop}/index.d.ts +0 -0
  445. /package/{publish/BackToTop → BackToTop}/index.js +0 -0
  446. /package/{publish/CascadingSelect → CascadingSelect}/index.css +0 -0
  447. /package/{publish/CascadingSelect → CascadingSelect}/index.d.ts +0 -0
  448. /package/{publish/CascadingSelectE2E → CascadingSelectE2E}/index.css +0 -0
  449. /package/{publish/CascadingSelectE2E → CascadingSelectE2E}/index.d.ts +0 -0
  450. /package/{publish/Chatbox → Chatbox}/index.css +0 -0
  451. /package/{publish/Chatbox → Chatbox}/index.d.ts +0 -0
  452. /package/{publish/Checkbox → Checkbox}/index.d.ts +0 -0
  453. /package/{publish/ColorPicker → ColorPicker}/index.css +0 -0
  454. /package/{publish/ColorPicker → ColorPicker}/index.d.ts +0 -0
  455. /package/{publish/Date → Date}/index.css +0 -0
  456. /package/{publish/Date → Date}/index.d.ts +0 -0
  457. /package/{publish/DigitalClock → DigitalClock}/index.d.ts +0 -0
  458. /package/{publish/DigitalClock → DigitalClock}/index.js +0 -0
  459. /package/{publish/DragDropList → DragDropList}/index.css +0 -0
  460. /package/{publish/DragDropList → DragDropList}/index.d.ts +0 -0
  461. /package/{publish/DragDropList → DragDropList}/index.js +0 -0
  462. /package/{publish/DropdownMenu → DropdownMenu}/index.css +0 -0
  463. /package/{publish/DropdownMenu → DropdownMenu}/index.d.ts +0 -0
  464. /package/{publish/DropdownMenu → DropdownMenu}/index.js +0 -0
  465. /package/{publish/DynamicFields → DynamicFields}/index.d.ts +0 -0
  466. /package/{publish/DynamicFields → DynamicFields}/index.js +0 -0
  467. /package/{publish/EventCalendar → EventCalendar}/index.css +0 -0
  468. /package/{publish/EventCalendar → EventCalendar}/index.d.ts +0 -0
  469. /package/{publish/EventCalendar → EventCalendar}/index.js +0 -0
  470. /package/{publish/EventCalendarTimeline → EventCalendarTimeline}/index.css +0 -0
  471. /package/{publish/HorizontalScrollContent → HorizontalScrollContent}/index.css +0 -0
  472. /package/{publish/HorizontalScrollContent → HorizontalScrollContent}/index.d.ts +0 -0
  473. /package/{publish/HorizontalScrollContent → HorizontalScrollContent}/index.js +0 -0
  474. /package/{publish/Input → Input}/index.d.ts +0 -0
  475. /package/{publish/LiveSearch → LiveSearch}/index.css +0 -0
  476. /package/{publish/LiveSearch → LiveSearch}/index.d.ts +0 -0
  477. /package/{publish/MasonryLayout → MasonryLayout}/index.d.ts +0 -0
  478. /package/{publish/MasonryLayout → MasonryLayout}/index.js +0 -0
  479. /package/{publish/ModalDialog → ModalDialog}/index.d.ts +0 -0
  480. /package/{publish/ModalDialog → ModalDialog}/index.js +0 -0
  481. /package/{publish/ModeSwitch → ModeSwitch}/index.d.ts +0 -0
  482. /package/{publish/ModeSwitch → ModeSwitch}/index.js +0 -0
  483. /package/{publish/MultilevelDropdownMenu → MultilevelDropdownMenu}/index.css +0 -0
  484. /package/{publish/MultilevelDropdownMenu → MultilevelDropdownMenu}/index.d.ts +0 -0
  485. /package/{publish/MultilevelDropdownMenu → MultilevelDropdownMenu}/index.js +0 -0
  486. /package/{publish/MultipleCheckboxes → MultipleCheckboxes}/index.d.ts +0 -0
  487. /package/{publish/MultipleCheckboxes → MultipleCheckboxes}/index.js +0 -0
  488. /package/{publish/MultipleSelect → MultipleSelect}/index.css +0 -0
  489. /package/{publish/MultipleSelect → MultipleSelect}/index.d.ts +0 -0
  490. /package/{publish/MultipleSelect → MultipleSelect}/index.js +0 -0
  491. /package/{publish/NativeSelect → NativeSelect}/index.d.ts +0 -0
  492. /package/{publish/NumberInput → NumberInput}/index.d.ts +0 -0
  493. /package/{publish/Pagination → Pagination}/index.d.ts +0 -0
  494. /package/{publish/Pagination → Pagination}/index.js +0 -0
  495. /package/{publish/Radio → Radio}/index.d.ts +0 -0
  496. /package/{publish/RangeSlider → RangeSlider}/index.css +0 -0
  497. /package/{publish/RangeSlider → RangeSlider}/index.d.ts +0 -0
  498. /package/{publish/Refresher → Refresher}/index.d.ts +0 -0
  499. /package/{publish/Refresher → Refresher}/index.js +0 -0
  500. /package/{publish/RootPortal → RootPortal}/index.d.ts +0 -0
  501. /package/{publish/RootPortal → RootPortal}/index.js +0 -0
  502. /package/{publish/ScrollReveal → ScrollReveal}/index.d.ts +0 -0
  503. /package/{publish/ScrollReveal → ScrollReveal}/index.js +0 -0
  504. /package/{publish/Scrollbar → Scrollbar}/index.css +0 -0
  505. /package/{publish/Scrollbar → Scrollbar}/index.d.ts +0 -0
  506. /package/{publish/Scrollbar → Scrollbar}/index.js +0 -0
  507. /package/{publish/SearchBar → SearchBar}/index.d.ts +0 -0
  508. /package/{publish/Select → Select}/index.css +0 -0
  509. /package/{publish/Select → Select}/index.d.ts +0 -0
  510. /package/{publish/ShowMoreLess → ShowMoreLess}/index.css +0 -0
  511. /package/{publish/ShowMoreLess → ShowMoreLess}/index.d.ts +0 -0
  512. /package/{publish/ShowMoreLess → ShowMoreLess}/index.js +0 -0
  513. /package/{publish/SplitterPanel → SplitterPanel}/index.css +0 -0
  514. /package/{publish/SplitterPanel → SplitterPanel}/index.d.ts +0 -0
  515. /package/{publish/SplitterPanel → SplitterPanel}/index.js +0 -0
  516. /package/{publish/Stepper → Stepper}/index.css +0 -0
  517. /package/{publish/Stepper → Stepper}/index.d.ts +0 -0
  518. /package/{publish/Stepper → Stepper}/index.js +0 -0
  519. /package/{publish/Switch → Switch}/index.d.ts +0 -0
  520. /package/{publish/Table → Table}/index.css +0 -0
  521. /package/{publish/Table → Table}/index.d.ts +0 -0
  522. /package/{publish/Table → Table}/index.js +0 -0
  523. /package/{publish/Tabs → Tabs}/index.d.ts +0 -0
  524. /package/{publish/Tabs → Tabs}/index.js +0 -0
  525. /package/{publish/TagInput → TagInput}/index.d.ts +0 -0
  526. /package/{publish/Textarea → Textarea}/index.d.ts +0 -0
  527. /package/{publish/Toast → Toast}/index.css +0 -0
  528. /package/{publish/Toast → Toast}/index.d.ts +0 -0
  529. /package/{publish/Toast → Toast}/index.js +0 -0
  530. /package/{publish/Tooltip → Tooltip}/index.css +0 -0
  531. /package/{publish/Tooltip → Tooltip}/index.d.ts +0 -0
  532. /package/{publish/Tooltip → Tooltip}/index.js +0 -0
  533. /package/{publish/Tree → Tree}/index.css +0 -0
  534. /package/{publish/Tree → Tree}/index.d.ts +0 -0
  535. /package/{publish/Tree → Tree}/index.js +0 -0
  536. /package/{publish/Utils → Utils}/anim.d.ts +0 -0
  537. /package/{publish/Utils → Utils}/anim.js +0 -0
  538. /package/{publish/Utils → Utils}/bodyScrollLock.d.ts +0 -0
  539. /package/{publish/Utils → Utils}/bodyScrollLock.js +0 -0
  540. /package/{publish/Utils → Utils}/buffer.d.ts +0 -0
  541. /package/{publish/Utils → Utils}/buffer.js +0 -0
  542. /package/{publish/Utils → Utils}/cls.d.ts +0 -0
  543. /package/{publish/Utils → Utils}/cls.js +0 -0
  544. /package/{publish/Utils → Utils}/convert.d.ts +0 -0
  545. /package/{publish/Utils → Utils}/convert.js +0 -0
  546. /package/{publish/Utils → Utils}/date.d.ts +0 -0
  547. /package/{publish/Utils → Utils}/date.js +0 -0
  548. /package/{publish/Utils → Utils}/dom.d.ts +0 -0
  549. /package/{publish/Utils → Utils}/dom.js +0 -0
  550. /package/{publish/Utils → Utils}/easing.d.ts +0 -0
  551. /package/{publish/Utils → Utils}/easing.js +0 -0
  552. /package/{publish/Utils → Utils}/extract.d.ts +0 -0
  553. /package/{publish/Utils → Utils}/extract.js +0 -0
  554. /package/{publish/Utils → Utils}/format-string.d.ts +0 -0
  555. /package/{publish/Utils → Utils}/format-string.js +0 -0
  556. /package/{publish/Utils → Utils}/formdata.d.ts +0 -0
  557. /package/{publish/Utils → Utils}/formdata.js +0 -0
  558. /package/{publish/Utils → Utils}/getElementProperty.d.ts +0 -0
  559. /package/{publish/Utils → Utils}/getElementProperty.js +0 -0
  560. /package/{publish/Utils → Utils}/guid.d.ts +0 -0
  561. /package/{publish/Utils → Utils}/guid.js +0 -0
  562. /package/{publish/Utils → Utils}/initDefaultOptions.d.ts +0 -0
  563. /package/{publish/Utils → Utils}/initDefaultOptions.js +0 -0
  564. /package/{publish/Utils → Utils}/inputsCalculation.d.ts +0 -0
  565. /package/{publish/Utils → Utils}/inputsCalculation.js +0 -0
  566. /package/{publish/Utils → Utils}/math.d.ts +0 -0
  567. /package/{publish/Utils → Utils}/math.js +0 -0
  568. /package/{publish/Utils → Utils}/object.d.ts +0 -0
  569. /package/{publish/Utils → Utils}/object.js +0 -0
  570. /package/{publish/Utils → Utils}/os.d.ts +0 -0
  571. /package/{publish/Utils → Utils}/os.js +0 -0
  572. /package/{publish/Utils → Utils}/performance.d.ts +0 -0
  573. /package/{publish/Utils → Utils}/performance.js +0 -0
  574. /package/{publish/Utils → Utils}/sanitize.d.ts +0 -0
  575. /package/{publish/Utils → Utils}/sanitize.js +0 -0
  576. /package/{publish/Utils → Utils}/time.d.ts +0 -0
  577. /package/{publish/Utils → Utils}/time.js +0 -0
  578. /package/{publish/Utils → Utils}/tree.d.ts +0 -0
  579. /package/{publish/Utils → Utils}/tree.js +0 -0
  580. /package/{publish/Utils → Utils}/useAutosizeTextArea.d.ts +0 -0
  581. /package/{publish/Utils → Utils}/useAutosizeTextArea.js +0 -0
  582. /package/{publish/Utils → Utils}/useBoundedDrag.d.ts +0 -0
  583. /package/{publish/Utils → Utils}/useBoundedDrag.js +0 -0
  584. /package/{publish/Utils → Utils}/useClickOutside.d.ts +0 -0
  585. /package/{publish/Utils → Utils}/useClickOutside.js +0 -0
  586. /package/{publish/Utils → Utils}/useComId.d.ts +0 -0
  587. /package/{publish/Utils → Utils}/useComId.js +0 -0
  588. /package/{publish/Utils → Utils}/useDebounce.d.ts +0 -0
  589. /package/{publish/Utils → Utils}/useDebounce.js +0 -0
  590. /package/{publish/Utils → Utils}/useDragDropPosition.d.ts +0 -0
  591. /package/{publish/Utils → Utils}/useDragDropPosition.js +0 -0
  592. /package/{publish/Utils → Utils}/useDraggable.d.ts +0 -0
  593. /package/{publish/Utils → Utils}/useDraggable.js +0 -0
  594. /package/{publish/Utils → Utils}/useHistoryTracker.d.ts +0 -0
  595. /package/{publish/Utils → Utils}/useHistoryTracker.js +0 -0
  596. /package/{publish/Utils → Utils}/useInterval.d.ts +0 -0
  597. /package/{publish/Utils → Utils}/useInterval.js +0 -0
  598. /package/{publish/Utils → Utils}/useIsMobile.d.ts +0 -0
  599. /package/{publish/Utils → Utils}/useIsMobile.js +0 -0
  600. /package/{publish/Utils → Utils}/useKeyPress.d.ts +0 -0
  601. /package/{publish/Utils → Utils}/useKeyPress.js +0 -0
  602. /package/{publish/Utils → Utils}/useSessionStorageListener.d.ts +0 -0
  603. /package/{publish/Utils → Utils}/useSessionStorageListener.js +0 -0
  604. /package/{publish/Utils → Utils}/useStreamController.d.ts +0 -0
  605. /package/{publish/Utils → Utils}/useStreamController.js +0 -0
  606. /package/{publish/Utils → Utils}/useThrottle.d.ts +0 -0
  607. /package/{publish/Utils → Utils}/useThrottle.js +0 -0
  608. /package/{publish/Utils → Utils}/useWindowScroll.d.ts +0 -0
  609. /package/{publish/Utils → Utils}/useWindowScroll.js +0 -0
  610. /package/{publish/Utils → Utils}/validate.d.ts +0 -0
  611. /package/{publish/Utils → Utils}/validate.js +0 -0
  612. /package/{publish/Utils → Utils}/viewport.d.ts +0 -0
  613. /package/{publish/Utils → Utils}/viewport.js +0 -0
@@ -1,2696 +0,0 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("react"));
4
- else if(typeof define === 'function' && define.amd)
5
- define(["react"], factory);
6
- else if(typeof exports === 'object')
7
- exports["RPB"] = factory(require("react"));
8
- else
9
- root["RPB"] = factory(root["React"]);
10
- })(this, (__WEBPACK_EXTERNAL_MODULE__787__) => {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ var __webpack_modules__ = ({
13
-
14
- /***/ 390:
15
- /***/ (function(module, exports, __webpack_require__) {
16
-
17
- /* module decorator */ module = __webpack_require__.nmd(module);
18
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof3(obj) { "@babel/helpers - typeof"; return _typeof3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof3(obj); }
19
- (function webpackUniversalModuleDefinition(root, factory) {
20
- if (( false ? 0 : _typeof3(exports)) === 'object' && ( false ? 0 : _typeof3(module)) === 'object') module.exports = factory(__webpack_require__(787));else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(787)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
21
- __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
22
- (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
23
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
24
- })(this, function (__WEBPACK_EXTERNAL_MODULE__787__) {
25
- return (/******/function () {
26
- // webpackBootstrap
27
- /******/
28
- var __webpack_modules__ = {
29
- /***/188: /***/function _(module, exports, __nested_webpack_require_1080__) {
30
- /* module decorator */module = __nested_webpack_require_1080__.nmd(module);
31
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
32
- function _typeof2(obj) {
33
- "@babel/helpers - typeof";
34
-
35
- return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
36
- return typeof obj;
37
- } : function (obj) {
38
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
39
- }, _typeof2(obj);
40
- }
41
- (function webpackUniversalModuleDefinition(root, factory) {
42
- if (( false ? 0 : _typeof2(exports)) === 'object' && ( false ? 0 : _typeof2(module)) === 'object') module.exports = factory();else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
43
- })(this, function () {
44
- return (/******/function () {
45
- // webpackBootstrap
46
- /******/
47
- "use strict";
48
-
49
- /******/ // The require scope
50
- /******/
51
- var __nested_webpack_require_993__ = {};
52
- /******/
53
- /************************************************************************/
54
- /******/ /* webpack/runtime/define property getters */
55
- /******/
56
- (function () {
57
- /******/ // define getter functions for harmony exports
58
- /******/__nested_webpack_require_993__.d = function (exports, definition) {
59
- /******/for (var key in definition) {
60
- /******/if (__nested_webpack_require_993__.o(definition, key) && !__nested_webpack_require_993__.o(exports, key)) {
61
- /******/Object.defineProperty(exports, key, {
62
- enumerable: true,
63
- get: definition[key]
64
- });
65
- /******/
66
- }
67
- /******/
68
- }
69
- /******/
70
- };
71
- /******/
72
- })();
73
- /******/
74
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
75
- /******/
76
- (function () {
77
- /******/__nested_webpack_require_993__.o = function (obj, prop) {
78
- return Object.prototype.hasOwnProperty.call(obj, prop);
79
- };
80
- /******/
81
- })();
82
- /******/
83
- /******/ /* webpack/runtime/make namespace object */
84
- /******/
85
- (function () {
86
- /******/ // define __esModule on exports
87
- /******/__nested_webpack_require_993__.r = function (exports) {
88
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
89
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
90
- value: 'Module'
91
- });
92
- /******/
93
- }
94
- /******/
95
- Object.defineProperty(exports, '__esModule', {
96
- value: true
97
- });
98
- /******/
99
- };
100
- /******/
101
- })();
102
- /******/
103
- /************************************************************************/
104
- var __webpack_exports__ = {};
105
- __nested_webpack_require_993__.r(__webpack_exports__);
106
- /* harmony export */
107
- __nested_webpack_require_993__.d(__webpack_exports__, {
108
- /* harmony export */"clsWrite": function clsWrite() {
109
- return (/* binding */_clsWrite
110
- );
111
- },
112
- /* harmony export */"combinedCls": function combinedCls() {
113
- return (/* binding */_combinedCls
114
- );
115
- }
116
- /* harmony export */
117
- });
118
-
119
- function _slicedToArray(arr, i) {
120
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
121
- }
122
- function _nonIterableRest() {
123
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
124
- }
125
- function _unsupportedIterableToArray(o, minLen) {
126
- if (!o) return;
127
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
128
- var n = Object.prototype.toString.call(o).slice(8, -1);
129
- if (n === "Object" && o.constructor) n = o.constructor.name;
130
- if (n === "Map" || n === "Set") return Array.from(o);
131
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
132
- }
133
- function _arrayLikeToArray(arr, len) {
134
- if (len == null || len > arr.length) len = arr.length;
135
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
136
- return arr2;
137
- }
138
- function _iterableToArrayLimit(arr, i) {
139
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
140
- if (null != _i) {
141
- var _s,
142
- _e,
143
- _x,
144
- _r,
145
- _arr = [],
146
- _n = !0,
147
- _d = !1;
148
- try {
149
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
150
- if (Object(_i) !== _i) return;
151
- _n = !1;
152
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
153
- } catch (err) {
154
- _d = !0, _e = err;
155
- } finally {
156
- try {
157
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
158
- } finally {
159
- if (_d) throw _e;
160
- }
161
- }
162
- return _arr;
163
- }
164
- }
165
- function _arrayWithHoles(arr) {
166
- if (Array.isArray(arr)) return arr;
167
- }
168
- function _typeof(obj) {
169
- "@babel/helpers - typeof";
170
-
171
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
172
- return typeof obj;
173
- } : function (obj) {
174
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
175
- }, _typeof(obj);
176
- }
177
- /**
178
- * Output of class name
179
- * @param {*} s - Any
180
- * @param {String} defaultCls - Default string
181
- * @param {?*} targetCls - Any
182
- * @returns {*}
183
- */
184
- function _clsWrite(s, defaultCls) {
185
- var targetCls = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
186
- return s || s === '' ? typeof targetCls === 'undefined' ? s : targetCls : defaultCls;
187
- }
188
-
189
- /**
190
- * Combined classnames
191
- * @param {*} args
192
- * @returns {String|undefined}
193
- */
194
- /* Usage:
195
-
196
- console.log(combinedCls('a-1', 'a-2', 'a-3', {
197
- 'p-1': null,
198
- 'p-2': undefined,
199
- 'p-3': true,
200
- 'p-4': false,
201
- 'p-5': 'kkk',
202
- 'p-6': 0,
203
- 'p-7': 1,
204
- 'p-8': '',
205
- undefined
206
- })); // a-1 a-2 a-3 p-3 p-5 p-7
207
- */
208
- function _combinedCls() {
209
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
210
- args[_key] = arguments[_key];
211
- }
212
- if (args) {
213
- var classes = [];
214
- for (var i = 0; i < args.length; i++) {
215
- var className = args[i];
216
- if (!className) {
217
- continue;
218
- }
219
- var type = _typeof(className);
220
- if (type === 'string' || type === 'number') {
221
- classes.push(className);
222
- } else if (type === 'object') {
223
- var _classes = Array.isArray(className) ? className : Object.entries(className).map(function (_ref) {
224
- var _ref2 = _slicedToArray(_ref, 2),
225
- key = _ref2[0],
226
- value = _ref2[1];
227
- return value ? key : null;
228
- });
229
- classes = _classes.length ? classes.concat(_classes.filter(function (c) {
230
- return !!c;
231
- })) : classes;
232
- }
233
- }
234
- return classes.join(' ').trim();
235
- }
236
- return undefined;
237
- }
238
-
239
- /******/
240
- return __webpack_exports__;
241
- /******/
242
- }()
243
- );
244
- });
245
-
246
- /***/
247
- },
248
-
249
- /***/954: /***/function _(module, exports, __nested_webpack_require_11464__) {
250
- /* module decorator */module = __nested_webpack_require_11464__.nmd(module);
251
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
252
- function _typeof(obj) {
253
- "@babel/helpers - typeof";
254
-
255
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
256
- return typeof obj;
257
- } : function (obj) {
258
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
259
- }, _typeof(obj);
260
- }
261
- (function webpackUniversalModuleDefinition(root, factory) {
262
- if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory();else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
263
- })(this, function () {
264
- return (/******/function () {
265
- // webpackBootstrap
266
- /******/
267
- "use strict";
268
-
269
- /******/ // The require scope
270
- /******/
271
- var __nested_webpack_require_987__ = {};
272
- /******/
273
- /************************************************************************/
274
- /******/ /* webpack/runtime/define property getters */
275
- /******/
276
- (function () {
277
- /******/ // define getter functions for harmony exports
278
- /******/__nested_webpack_require_987__.d = function (exports, definition) {
279
- /******/for (var key in definition) {
280
- /******/if (__nested_webpack_require_987__.o(definition, key) && !__nested_webpack_require_987__.o(exports, key)) {
281
- /******/Object.defineProperty(exports, key, {
282
- enumerable: true,
283
- get: definition[key]
284
- });
285
- /******/
286
- }
287
- /******/
288
- }
289
- /******/
290
- };
291
- /******/
292
- })();
293
- /******/
294
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
295
- /******/
296
- (function () {
297
- /******/__nested_webpack_require_987__.o = function (obj, prop) {
298
- return Object.prototype.hasOwnProperty.call(obj, prop);
299
- };
300
- /******/
301
- })();
302
- /******/
303
- /******/ /* webpack/runtime/make namespace object */
304
- /******/
305
- (function () {
306
- /******/ // define __esModule on exports
307
- /******/__nested_webpack_require_987__.r = function (exports) {
308
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
309
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
310
- value: 'Module'
311
- });
312
- /******/
313
- }
314
- /******/
315
- Object.defineProperty(exports, '__esModule', {
316
- value: true
317
- });
318
- /******/
319
- };
320
- /******/
321
- })();
322
- /******/
323
- /************************************************************************/
324
- var __webpack_exports__ = {};
325
- __nested_webpack_require_987__.r(__webpack_exports__);
326
- /* harmony export */
327
- __nested_webpack_require_987__.d(__webpack_exports__, {
328
- /* harmony export */"actualPropertyValue": function actualPropertyValue() {
329
- return (/* binding */_actualPropertyValue
330
- );
331
- },
332
- /* harmony export */"getElCSS": function getElCSS() {
333
- return (/* binding */_getElCSS
334
- );
335
- },
336
- /* harmony export */"getTextTop": function getTextTop() {
337
- return (/* binding */_getTextTop
338
- );
339
- },
340
- /* harmony export */"getTextWidth": function getTextWidth() {
341
- return (/* binding */_getTextWidth
342
- );
343
- }
344
- /* harmony export */
345
- });
346
- /**
347
- * Gets the relative upside of the text
348
- * @param {Element} el - A DOM node containing one selector to match against.
349
- * @returns {Number} - Returns a pure number.
350
- */
351
- function _getTextTop(el) {
352
- var styles = window.getComputedStyle(el);
353
- var fontSize = parseFloat(styles.fontSize);
354
- var lineHeight = parseFloat(styles.lineHeight) || fontSize;
355
- var paddingTop = parseFloat(styles.paddingTop);
356
- var borderWidth = parseFloat(styles.borderWidth);
357
- var textTop = paddingTop + (lineHeight - fontSize) / 2 - borderWidth * 2;
358
- return textTop;
359
- }
360
-
361
- /**
362
- * Get the actual value with user specific methed
363
- * it can be 'width', 'height', 'outerWidth', 'outerHeight'
364
- * @private
365
- * @param {Element} el - A DOM node containing one selector to match against.
366
- * @param {String} prop - A string naming the property of style.
367
- * @param {?Json} config - Whether or not margin is included. The key `includeMargin`
368
- takes effect when set to true
369
- * @return {Number} - Returns a pure number.
370
- */
371
- function _actualPropertyValue(el, prop) {
372
- var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
373
- if (el === null) return 0;
374
- var style = window.getComputedStyle ? window.getComputedStyle(el) : el.currentStyle,
375
- display = style.display,
376
- position = style.position,
377
- visibility = style.visibility;
378
- var marginWidth = 0;
379
- var marginHeight = 0;
380
- var maxVal;
381
- var actualVal;
382
- if (config && config.includeMargin === true) {
383
- marginWidth = parseFloat(style.marginLeft) + parseFloat(style.marginRight);
384
- marginHeight = parseFloat(style.marginTop) + parseFloat(style.marginBottom);
385
- }
386
- if (prop === 'fontSize') {
387
- actualVal = parseFloat(style.fontSize);
388
- }
389
- if (prop === 'fontFamily') {
390
- actualVal = style.fontFamily;
391
- }
392
- if (prop === 'letterSpacing') {
393
- actualVal = style.letterSpacing;
394
- }
395
- if (prop === 'width') {
396
- maxVal = parseFloat(style.maxWidth);
397
-
398
- // if its not hidden we just return normal height
399
- if (display !== 'none' && maxVal !== 0) {
400
- return el.clientWidth;
401
- }
402
- }
403
- if (prop === 'height') {
404
- maxVal = parseFloat(style.maxHeight);
405
- if (display !== 'none' && maxVal !== 0) {
406
- return el.clientHeight;
407
- }
408
- }
409
- if (prop === 'outerWidth') {
410
- maxVal = parseFloat(style.maxWidth);
411
- if (display !== 'none' && maxVal !== 0) {
412
- return el.offsetWidth + marginWidth;
413
- }
414
- }
415
- if (prop === 'outerHeight') {
416
- maxVal = parseFloat(style.maxHeight);
417
- if (display !== 'none' && maxVal !== 0) {
418
- return el.offsetHeight + marginHeight;
419
- }
420
- }
421
-
422
- // the element is hidden so:
423
- // making the el block so we can meassure its height but still be hidden
424
- el.style.position = 'absolute';
425
- el.style.visibility = 'hidden';
426
- el.style.display = 'block';
427
- if (prop === 'width') actualVal = el.clientWidth;
428
- if (prop === 'height') actualVal = el.clientHeight;
429
- if (prop === 'outerWidth') actualVal = el.offsetWidth + marginWidth;
430
- if (prop === 'outerHeight') actualVal = el.offsetHeight + marginHeight;
431
-
432
- // reverting to the original values
433
- el.style.display = display;
434
- el.style.position = position;
435
- el.style.visibility = visibility;
436
- return actualVal;
437
- }
438
- function _getElCSS(input, prop, isNumber) {
439
- var _document$defaultView;
440
- var val = (_document$defaultView = document.defaultView) === null || _document$defaultView === void 0 ? void 0 : _document$defaultView.getComputedStyle(input, null).getPropertyValue(prop);
441
- return isNumber ? isNaN(parseFloat(val)) ? 0 : parseFloat(val) : val;
442
- }
443
-
444
- /**
445
- * Get cursor or text position in pixels for input element
446
- *
447
- * @param {HTMLInputElement} input Required HTMLElement with `value` attribute
448
- * @param {HTMLSpanElement} fauxContainer Container of faux.
449
- * @param {HTMLElement} rawTextContainer The raw text container for the comparison
450
- * @returns {Number}
451
- */
452
-
453
- function _getTextWidth(input, fauxContainer, rawTextContainer) {
454
- if (input === null || fauxContainer === null || rawTextContainer === null) return 0;
455
- var _off = input.selectionStart;
456
- var _faux = fauxContainer;
457
- var _fauxContainer = rawTextContainer;
458
- if (_faux && _fauxContainer) {
459
- // Styles to simulate a node in an input field
460
- // use pre-wrap instead of wrap for white-space to support wrapping in textareas
461
- var listOfModifiers = ['direction', 'font-family', 'font-size', 'font-size-adjust', 'font-variant', 'font-weight', 'font-style', 'letter-spacing', 'line-height', 'text-align', 'text-indent', 'text-transform', 'word-wrap', 'word-spacing'];
462
-
463
- // default styles
464
- _faux.style.setProperty('white-space', 'pre-wrap');
465
- _faux.style.setProperty('padding', '0');
466
- _faux.style.setProperty('margin', '0');
467
- _faux.style.setProperty('display', 'none');
468
- for (var i = 0; i < listOfModifiers.length; i++) {
469
- var propertyValue = _getElCSS(_fauxContainer, listOfModifiers[i], false);
470
- _faux.style.setProperty(listOfModifiers[i], propertyValue);
471
- }
472
- _faux.textContent = input.value.substring(0, _off).replace(/\s/g, "\xA0");
473
- return _actualPropertyValue(_faux, 'outerWidth');
474
- }
475
- }
476
-
477
- /******/
478
- return __webpack_exports__;
479
- /******/
480
- }()
481
- );
482
- });
483
-
484
- /***/
485
- },
486
-
487
- /***/85: /***/function _(module, exports, __nested_webpack_require_23663__) {
488
- /* module decorator */module = __nested_webpack_require_23663__.nmd(module);
489
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
490
- function _typeof(obj) {
491
- "@babel/helpers - typeof";
492
-
493
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
494
- return typeof obj;
495
- } : function (obj) {
496
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
497
- }, _typeof(obj);
498
- }
499
- (function webpackUniversalModuleDefinition(root, factory) {
500
- if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory(__nested_webpack_require_23663__(787));else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__nested_webpack_require_23663__(787)], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
501
- })(this, function (__WEBPACK_EXTERNAL_MODULE__787__) {
502
- return (/******/function () {
503
- // webpackBootstrap
504
- /******/
505
- "use strict";
506
-
507
- /******/
508
- var __webpack_modules__ = {
509
- /***/787: /***/function _(module) {
510
- module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
511
-
512
- /***/
513
- }
514
-
515
- /******/
516
- };
517
- /************************************************************************/
518
- /******/ // The module cache
519
- /******/
520
- var __webpack_module_cache__ = {};
521
- /******/
522
- /******/ // The require function
523
- /******/
524
- function __nested_webpack_require_1465__(moduleId) {
525
- /******/ // Check if module is in cache
526
- /******/var cachedModule = __webpack_module_cache__[moduleId];
527
- /******/
528
- if (cachedModule !== undefined) {
529
- /******/return cachedModule.exports;
530
- /******/
531
- }
532
- /******/ // Create a new module (and put it into the cache)
533
- /******/
534
- var module = __webpack_module_cache__[moduleId] = {
535
- /******/ // no module.id needed
536
- /******/ // no module.loaded needed
537
- /******/exports: {}
538
- /******/
539
- };
540
- /******/
541
- /******/ // Execute the module function
542
- /******/
543
- __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_1465__);
544
- /******/
545
- /******/ // Return the exports of the module
546
- /******/
547
- return module.exports;
548
- /******/
549
- }
550
- /******/
551
- /************************************************************************/
552
- /******/ /* webpack/runtime/compat get default export */
553
- /******/
554
- (function () {
555
- /******/ // getDefaultExport function for compatibility with non-harmony modules
556
- /******/__nested_webpack_require_1465__.n = function (module) {
557
- /******/var getter = module && module.__esModule ? /******/function () {
558
- return module['default'];
559
- } : /******/function () {
560
- return module;
561
- };
562
- /******/
563
- __nested_webpack_require_1465__.d(getter, {
564
- a: getter
565
- });
566
- /******/
567
- return getter;
568
- /******/
569
- };
570
- /******/
571
- })();
572
- /******/
573
- /******/ /* webpack/runtime/define property getters */
574
- /******/
575
- (function () {
576
- /******/ // define getter functions for harmony exports
577
- /******/__nested_webpack_require_1465__.d = function (exports, definition) {
578
- /******/for (var key in definition) {
579
- /******/if (__nested_webpack_require_1465__.o(definition, key) && !__nested_webpack_require_1465__.o(exports, key)) {
580
- /******/Object.defineProperty(exports, key, {
581
- enumerable: true,
582
- get: definition[key]
583
- });
584
- /******/
585
- }
586
- /******/
587
- }
588
- /******/
589
- };
590
- /******/
591
- })();
592
- /******/
593
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
594
- /******/
595
- (function () {
596
- /******/__nested_webpack_require_1465__.o = function (obj, prop) {
597
- return Object.prototype.hasOwnProperty.call(obj, prop);
598
- };
599
- /******/
600
- })();
601
- /******/
602
- /******/ /* webpack/runtime/make namespace object */
603
- /******/
604
- (function () {
605
- /******/ // define __esModule on exports
606
- /******/__nested_webpack_require_1465__.r = function (exports) {
607
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
608
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
609
- value: 'Module'
610
- });
611
- /******/
612
- }
613
- /******/
614
- Object.defineProperty(exports, '__esModule', {
615
- value: true
616
- });
617
- /******/
618
- };
619
- /******/
620
- })();
621
- /******/
622
- /************************************************************************/
623
- var __webpack_exports__ = {};
624
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
625
- (function () {
626
- __nested_webpack_require_1465__.r(__webpack_exports__);
627
- /* harmony export */
628
- __nested_webpack_require_1465__.d(__webpack_exports__, {
629
- /* harmony export */"default": function _default() {
630
- return __WEBPACK_DEFAULT_EXPORT__;
631
- }
632
- /* harmony export */
633
- });
634
- /* harmony import */
635
- var react__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_1465__(787);
636
- /* harmony import */
637
- var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nested_webpack_require_1465__.n(react__WEBPACK_IMPORTED_MODULE_0__);
638
- /**
639
- * Create an available ID
640
- *
641
- */
642
-
643
- var useComId = function useComId() {
644
- return "ID-".concat((0, react__WEBPACK_IMPORTED_MODULE_0__.useId)().replace(/\:/g, "-"));
645
- };
646
- /* harmony default export */
647
- var __WEBPACK_DEFAULT_EXPORT__ = useComId;
648
- })();
649
-
650
- /******/
651
- return __webpack_exports__;
652
- /******/
653
- }()
654
- );
655
- });
656
-
657
- /***/
658
- },
659
-
660
- /***/702: /***/function _(module, exports, __nested_webpack_require_31751__) {
661
- /* module decorator */module = __nested_webpack_require_31751__.nmd(module);
662
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
663
- function _typeof(obj) {
664
- "@babel/helpers - typeof";
665
-
666
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
667
- return typeof obj;
668
- } : function (obj) {
669
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
670
- }, _typeof(obj);
671
- }
672
- (function webpackUniversalModuleDefinition(root, factory) {
673
- if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory(__nested_webpack_require_31751__(787));else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__nested_webpack_require_31751__(787)], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
674
- })(this, function (__WEBPACK_EXTERNAL_MODULE__787__) {
675
- return (/******/function () {
676
- // webpackBootstrap
677
- /******/
678
- "use strict";
679
-
680
- /******/
681
- var __webpack_modules__ = {
682
- /***/787: /***/function _(module) {
683
- module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
684
-
685
- /***/
686
- }
687
-
688
- /******/
689
- };
690
- /************************************************************************/
691
- /******/ // The module cache
692
- /******/
693
- var __webpack_module_cache__ = {};
694
- /******/
695
- /******/ // The require function
696
- /******/
697
- function __nested_webpack_require_1465__(moduleId) {
698
- /******/ // Check if module is in cache
699
- /******/var cachedModule = __webpack_module_cache__[moduleId];
700
- /******/
701
- if (cachedModule !== undefined) {
702
- /******/return cachedModule.exports;
703
- /******/
704
- }
705
- /******/ // Create a new module (and put it into the cache)
706
- /******/
707
- var module = __webpack_module_cache__[moduleId] = {
708
- /******/ // no module.id needed
709
- /******/ // no module.loaded needed
710
- /******/exports: {}
711
- /******/
712
- };
713
- /******/
714
- /******/ // Execute the module function
715
- /******/
716
- __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_1465__);
717
- /******/
718
- /******/ // Return the exports of the module
719
- /******/
720
- return module.exports;
721
- /******/
722
- }
723
- /******/
724
- /************************************************************************/
725
- /******/ /* webpack/runtime/compat get default export */
726
- /******/
727
- (function () {
728
- /******/ // getDefaultExport function for compatibility with non-harmony modules
729
- /******/__nested_webpack_require_1465__.n = function (module) {
730
- /******/var getter = module && module.__esModule ? /******/function () {
731
- return module['default'];
732
- } : /******/function () {
733
- return module;
734
- };
735
- /******/
736
- __nested_webpack_require_1465__.d(getter, {
737
- a: getter
738
- });
739
- /******/
740
- return getter;
741
- /******/
742
- };
743
- /******/
744
- })();
745
- /******/
746
- /******/ /* webpack/runtime/define property getters */
747
- /******/
748
- (function () {
749
- /******/ // define getter functions for harmony exports
750
- /******/__nested_webpack_require_1465__.d = function (exports, definition) {
751
- /******/for (var key in definition) {
752
- /******/if (__nested_webpack_require_1465__.o(definition, key) && !__nested_webpack_require_1465__.o(exports, key)) {
753
- /******/Object.defineProperty(exports, key, {
754
- enumerable: true,
755
- get: definition[key]
756
- });
757
- /******/
758
- }
759
- /******/
760
- }
761
- /******/
762
- };
763
- /******/
764
- })();
765
- /******/
766
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
767
- /******/
768
- (function () {
769
- /******/__nested_webpack_require_1465__.o = function (obj, prop) {
770
- return Object.prototype.hasOwnProperty.call(obj, prop);
771
- };
772
- /******/
773
- })();
774
- /******/
775
- /******/ /* webpack/runtime/make namespace object */
776
- /******/
777
- (function () {
778
- /******/ // define __esModule on exports
779
- /******/__nested_webpack_require_1465__.r = function (exports) {
780
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
781
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
782
- value: 'Module'
783
- });
784
- /******/
785
- }
786
- /******/
787
- Object.defineProperty(exports, '__esModule', {
788
- value: true
789
- });
790
- /******/
791
- };
792
- /******/
793
- })();
794
- /******/
795
- /************************************************************************/
796
- var __webpack_exports__ = {};
797
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
798
- (function () {
799
- __nested_webpack_require_1465__.r(__webpack_exports__);
800
- /* harmony export */
801
- __nested_webpack_require_1465__.d(__webpack_exports__, {
802
- /* harmony export */"default": function _default() {
803
- return __WEBPACK_DEFAULT_EXPORT__;
804
- }
805
- /* harmony export */
806
- });
807
- /* harmony import */
808
- var react__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_1465__(787);
809
- /* harmony import */
810
- var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nested_webpack_require_1465__.n(react__WEBPACK_IMPORTED_MODULE_0__);
811
- /**
812
- * Delay the execution of function or state update
813
- *
814
- * @usage:
815
-
816
- const App = () => {
817
- const [count, setCount] = useState(0);
818
- const handleClick = useDebounce(() => setCount(count + 1), 500, [count]);
819
-
820
- return (
821
- <div className="app">
822
- <button onClick={handleClick}>click</button>
823
- <p>click {count} time</p>
824
- </div>
825
- );
826
- };
827
-
828
- */
829
-
830
- var useDebounce = function useDebounce(fn, delay, dependence) {
831
- var ref = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
832
- return (0, react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
833
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
834
- args[_key] = arguments[_key];
835
- }
836
- clearTimeout(ref.current);
837
- ref.current = null;
838
- ref.current = setTimeout(function () {
839
- fn.apply(void 0, args);
840
- }, delay);
841
- }, dependence);
842
- };
843
- /* harmony default export */
844
- var __WEBPACK_DEFAULT_EXPORT__ = useDebounce;
845
- })();
846
-
847
- /******/
848
- return __webpack_exports__;
849
- /******/
850
- }()
851
- );
852
- });
853
-
854
- /***/
855
- },
856
-
857
- /***/787: /***/function _(module) {
858
- "use strict";
859
-
860
- module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
861
-
862
- /***/
863
- }
864
-
865
- /******/
866
- };
867
- /************************************************************************/
868
- /******/ // The module cache
869
- /******/
870
- var __webpack_module_cache__ = {};
871
- /******/
872
- /******/ // The require function
873
- /******/
874
- function __nested_webpack_require_41372__(moduleId) {
875
- /******/ // Check if module is in cache
876
- /******/var cachedModule = __webpack_module_cache__[moduleId];
877
- /******/
878
- if (cachedModule !== undefined) {
879
- /******/return cachedModule.exports;
880
- /******/
881
- }
882
- /******/ // Create a new module (and put it into the cache)
883
- /******/
884
- var module = __webpack_module_cache__[moduleId] = {
885
- /******/id: moduleId,
886
- /******/loaded: false,
887
- /******/exports: {}
888
- /******/
889
- };
890
- /******/
891
- /******/ // Execute the module function
892
- /******/
893
- __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_41372__);
894
- /******/
895
- /******/ // Flag the module as loaded
896
- /******/
897
- module.loaded = true;
898
- /******/
899
- /******/ // Return the exports of the module
900
- /******/
901
- return module.exports;
902
- /******/
903
- }
904
- /******/
905
- /************************************************************************/
906
- /******/ /* webpack/runtime/compat get default export */
907
- /******/
908
- (function () {
909
- /******/ // getDefaultExport function for compatibility with non-harmony modules
910
- /******/__nested_webpack_require_41372__.n = function (module) {
911
- /******/var getter = module && module.__esModule ? /******/function () {
912
- return module['default'];
913
- } : /******/function () {
914
- return module;
915
- };
916
- /******/
917
- __nested_webpack_require_41372__.d(getter, {
918
- a: getter
919
- });
920
- /******/
921
- return getter;
922
- /******/
923
- };
924
- /******/
925
- })();
926
- /******/
927
- /******/ /* webpack/runtime/define property getters */
928
- /******/
929
- (function () {
930
- /******/ // define getter functions for harmony exports
931
- /******/__nested_webpack_require_41372__.d = function (exports, definition) {
932
- /******/for (var key in definition) {
933
- /******/if (__nested_webpack_require_41372__.o(definition, key) && !__nested_webpack_require_41372__.o(exports, key)) {
934
- /******/Object.defineProperty(exports, key, {
935
- enumerable: true,
936
- get: definition[key]
937
- });
938
- /******/
939
- }
940
- /******/
941
- }
942
- /******/
943
- };
944
- /******/
945
- })();
946
- /******/
947
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
948
- /******/
949
- (function () {
950
- /******/__nested_webpack_require_41372__.o = function (obj, prop) {
951
- return Object.prototype.hasOwnProperty.call(obj, prop);
952
- };
953
- /******/
954
- })();
955
- /******/
956
- /******/ /* webpack/runtime/make namespace object */
957
- /******/
958
- (function () {
959
- /******/ // define __esModule on exports
960
- /******/__nested_webpack_require_41372__.r = function (exports) {
961
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
962
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
963
- value: 'Module'
964
- });
965
- /******/
966
- }
967
- /******/
968
- Object.defineProperty(exports, '__esModule', {
969
- value: true
970
- });
971
- /******/
972
- };
973
- /******/
974
- })();
975
- /******/
976
- /******/ /* webpack/runtime/node module decorator */
977
- /******/
978
- (function () {
979
- /******/__nested_webpack_require_41372__.nmd = function (module) {
980
- /******/module.paths = [];
981
- /******/
982
- if (!module.children) module.children = [];
983
- /******/
984
- return module;
985
- /******/
986
- };
987
- /******/
988
- })();
989
- /******/
990
- /************************************************************************/
991
- var __webpack_exports__ = {};
992
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
993
- (function () {
994
- "use strict";
995
-
996
- __nested_webpack_require_41372__.r(__webpack_exports__);
997
- /* harmony export */
998
- __nested_webpack_require_41372__.d(__webpack_exports__, {
999
- /* harmony export */"default": function _default() {
1000
- return __WEBPACK_DEFAULT_EXPORT__;
1001
- }
1002
- /* harmony export */
1003
- });
1004
- /* harmony import */
1005
- var react__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_41372__(787);
1006
- /* harmony import */
1007
- var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nested_webpack_require_41372__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1008
- /* harmony import */
1009
- var funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_1__ = __nested_webpack_require_41372__(85);
1010
- /* harmony import */
1011
- var funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nested_webpack_require_41372__.n(funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_1__);
1012
- /* harmony import */
1013
- var funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__ = __nested_webpack_require_41372__(188);
1014
- /* harmony import */
1015
- var funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__nested_webpack_require_41372__.n(funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__);
1016
- /* harmony import */
1017
- var funda_utils_dist_cjs_inputsCalculation__WEBPACK_IMPORTED_MODULE_3__ = __nested_webpack_require_41372__(954);
1018
- /* harmony import */
1019
- var funda_utils_dist_cjs_inputsCalculation__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__nested_webpack_require_41372__.n(funda_utils_dist_cjs_inputsCalculation__WEBPACK_IMPORTED_MODULE_3__);
1020
- /* harmony import */
1021
- var funda_utils_dist_cjs_useDebounce__WEBPACK_IMPORTED_MODULE_4__ = __nested_webpack_require_41372__(702);
1022
- /* harmony import */
1023
- var funda_utils_dist_cjs_useDebounce__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__nested_webpack_require_41372__.n(funda_utils_dist_cjs_useDebounce__WEBPACK_IMPORTED_MODULE_4__);
1024
- var _excluded = ["contentRef", "wrapperClassName", "controlClassName", "controlExClassName", "controlGroupWrapperClassName", "controlGroupTextClassName", "type", "disabled", "required", "placeholder", "pattern", "readOnly", "defaultValue", "value", "requiredLabel", "label", "units", "name", "step", "min", "max", "src", "size", "minLength", "maxLength", "alt", "inputMode", "id", "appendControl", "aiPredict", "aiPredictRemainingTextRGB", "aiPredictConfirmKey", "aiPredictFetchFuncAsync", "aiPredictFetchFuncMethod", "aiPredictFetchFuncMethodParams", "aiPredictFetchCallback", "iconLeft", "iconRight", "autoComplete", "autoCapitalize", "spellCheck", "style", "tabIndex", "onChangeCallback", "onInputCallback", "onKeyPressedCallback", "onChange", "onBlur", "onFocus", "onPressEnter", "onKeyDown", "onKeyUp"];
1025
- function _regeneratorRuntime() {
1026
- "use strict";
1027
-
1028
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
1029
- _regeneratorRuntime = function _regeneratorRuntime() {
1030
- return exports;
1031
- };
1032
- var exports = {},
1033
- Op = Object.prototype,
1034
- hasOwn = Op.hasOwnProperty,
1035
- defineProperty = Object.defineProperty || function (obj, key, desc) {
1036
- obj[key] = desc.value;
1037
- },
1038
- $Symbol = "function" == typeof Symbol ? Symbol : {},
1039
- iteratorSymbol = $Symbol.iterator || "@@iterator",
1040
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
1041
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
1042
- function define(obj, key, value) {
1043
- return Object.defineProperty(obj, key, {
1044
- value: value,
1045
- enumerable: !0,
1046
- configurable: !0,
1047
- writable: !0
1048
- }), obj[key];
1049
- }
1050
- try {
1051
- define({}, "");
1052
- } catch (err) {
1053
- define = function define(obj, key, value) {
1054
- return obj[key] = value;
1055
- };
1056
- }
1057
- function wrap(innerFn, outerFn, self, tryLocsList) {
1058
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
1059
- generator = Object.create(protoGenerator.prototype),
1060
- context = new Context(tryLocsList || []);
1061
- return defineProperty(generator, "_invoke", {
1062
- value: makeInvokeMethod(innerFn, self, context)
1063
- }), generator;
1064
- }
1065
- function tryCatch(fn, obj, arg) {
1066
- try {
1067
- return {
1068
- type: "normal",
1069
- arg: fn.call(obj, arg)
1070
- };
1071
- } catch (err) {
1072
- return {
1073
- type: "throw",
1074
- arg: err
1075
- };
1076
- }
1077
- }
1078
- exports.wrap = wrap;
1079
- var ContinueSentinel = {};
1080
- function Generator() {}
1081
- function GeneratorFunction() {}
1082
- function GeneratorFunctionPrototype() {}
1083
- var IteratorPrototype = {};
1084
- define(IteratorPrototype, iteratorSymbol, function () {
1085
- return this;
1086
- });
1087
- var getProto = Object.getPrototypeOf,
1088
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
1089
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
1090
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
1091
- function defineIteratorMethods(prototype) {
1092
- ["next", "throw", "return"].forEach(function (method) {
1093
- define(prototype, method, function (arg) {
1094
- return this._invoke(method, arg);
1095
- });
1096
- });
1097
- }
1098
- function AsyncIterator(generator, PromiseImpl) {
1099
- function invoke(method, arg, resolve, reject) {
1100
- var record = tryCatch(generator[method], generator, arg);
1101
- if ("throw" !== record.type) {
1102
- var result = record.arg,
1103
- value = result.value;
1104
- return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
1105
- invoke("next", value, resolve, reject);
1106
- }, function (err) {
1107
- invoke("throw", err, resolve, reject);
1108
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
1109
- result.value = unwrapped, resolve(result);
1110
- }, function (error) {
1111
- return invoke("throw", error, resolve, reject);
1112
- });
1113
- }
1114
- reject(record.arg);
1115
- }
1116
- var previousPromise;
1117
- defineProperty(this, "_invoke", {
1118
- value: function value(method, arg) {
1119
- function callInvokeWithMethodAndArg() {
1120
- return new PromiseImpl(function (resolve, reject) {
1121
- invoke(method, arg, resolve, reject);
1122
- });
1123
- }
1124
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
1125
- }
1126
- });
1127
- }
1128
- function makeInvokeMethod(innerFn, self, context) {
1129
- var state = "suspendedStart";
1130
- return function (method, arg) {
1131
- if ("executing" === state) throw new Error("Generator is already running");
1132
- if ("completed" === state) {
1133
- if ("throw" === method) throw arg;
1134
- return doneResult();
1135
- }
1136
- for (context.method = method, context.arg = arg;;) {
1137
- var delegate = context.delegate;
1138
- if (delegate) {
1139
- var delegateResult = maybeInvokeDelegate(delegate, context);
1140
- if (delegateResult) {
1141
- if (delegateResult === ContinueSentinel) continue;
1142
- return delegateResult;
1143
- }
1144
- }
1145
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
1146
- if ("suspendedStart" === state) throw state = "completed", context.arg;
1147
- context.dispatchException(context.arg);
1148
- } else "return" === context.method && context.abrupt("return", context.arg);
1149
- state = "executing";
1150
- var record = tryCatch(innerFn, self, context);
1151
- if ("normal" === record.type) {
1152
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
1153
- return {
1154
- value: record.arg,
1155
- done: context.done
1156
- };
1157
- }
1158
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
1159
- }
1160
- };
1161
- }
1162
- function maybeInvokeDelegate(delegate, context) {
1163
- var methodName = context.method,
1164
- method = delegate.iterator[methodName];
1165
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
1166
- var record = tryCatch(method, delegate.iterator, context.arg);
1167
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
1168
- var info = record.arg;
1169
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
1170
- }
1171
- function pushTryEntry(locs) {
1172
- var entry = {
1173
- tryLoc: locs[0]
1174
- };
1175
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
1176
- }
1177
- function resetTryEntry(entry) {
1178
- var record = entry.completion || {};
1179
- record.type = "normal", delete record.arg, entry.completion = record;
1180
- }
1181
- function Context(tryLocsList) {
1182
- this.tryEntries = [{
1183
- tryLoc: "root"
1184
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
1185
- }
1186
- function values(iterable) {
1187
- if (iterable) {
1188
- var iteratorMethod = iterable[iteratorSymbol];
1189
- if (iteratorMethod) return iteratorMethod.call(iterable);
1190
- if ("function" == typeof iterable.next) return iterable;
1191
- if (!isNaN(iterable.length)) {
1192
- var i = -1,
1193
- next = function next() {
1194
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
1195
- return next.value = undefined, next.done = !0, next;
1196
- };
1197
- return next.next = next;
1198
- }
1199
- }
1200
- return {
1201
- next: doneResult
1202
- };
1203
- }
1204
- function doneResult() {
1205
- return {
1206
- value: undefined,
1207
- done: !0
1208
- };
1209
- }
1210
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
1211
- value: GeneratorFunctionPrototype,
1212
- configurable: !0
1213
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
1214
- value: GeneratorFunction,
1215
- configurable: !0
1216
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
1217
- var ctor = "function" == typeof genFun && genFun.constructor;
1218
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
1219
- }, exports.mark = function (genFun) {
1220
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
1221
- }, exports.awrap = function (arg) {
1222
- return {
1223
- __await: arg
1224
- };
1225
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
1226
- return this;
1227
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
1228
- void 0 === PromiseImpl && (PromiseImpl = Promise);
1229
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
1230
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
1231
- return result.done ? result.value : iter.next();
1232
- });
1233
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
1234
- return this;
1235
- }), define(Gp, "toString", function () {
1236
- return "[object Generator]";
1237
- }), exports.keys = function (val) {
1238
- var object = Object(val),
1239
- keys = [];
1240
- for (var key in object) keys.push(key);
1241
- return keys.reverse(), function next() {
1242
- for (; keys.length;) {
1243
- var key = keys.pop();
1244
- if (key in object) return next.value = key, next.done = !1, next;
1245
- }
1246
- return next.done = !0, next;
1247
- };
1248
- }, exports.values = values, Context.prototype = {
1249
- constructor: Context,
1250
- reset: function reset(skipTempReset) {
1251
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
1252
- },
1253
- stop: function stop() {
1254
- this.done = !0;
1255
- var rootRecord = this.tryEntries[0].completion;
1256
- if ("throw" === rootRecord.type) throw rootRecord.arg;
1257
- return this.rval;
1258
- },
1259
- dispatchException: function dispatchException(exception) {
1260
- if (this.done) throw exception;
1261
- var context = this;
1262
- function handle(loc, caught) {
1263
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
1264
- }
1265
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1266
- var entry = this.tryEntries[i],
1267
- record = entry.completion;
1268
- if ("root" === entry.tryLoc) return handle("end");
1269
- if (entry.tryLoc <= this.prev) {
1270
- var hasCatch = hasOwn.call(entry, "catchLoc"),
1271
- hasFinally = hasOwn.call(entry, "finallyLoc");
1272
- if (hasCatch && hasFinally) {
1273
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
1274
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
1275
- } else if (hasCatch) {
1276
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
1277
- } else {
1278
- if (!hasFinally) throw new Error("try statement without catch or finally");
1279
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
1280
- }
1281
- }
1282
- }
1283
- },
1284
- abrupt: function abrupt(type, arg) {
1285
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1286
- var entry = this.tryEntries[i];
1287
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
1288
- var finallyEntry = entry;
1289
- break;
1290
- }
1291
- }
1292
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
1293
- var record = finallyEntry ? finallyEntry.completion : {};
1294
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
1295
- },
1296
- complete: function complete(record, afterLoc) {
1297
- if ("throw" === record.type) throw record.arg;
1298
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
1299
- },
1300
- finish: function finish(finallyLoc) {
1301
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1302
- var entry = this.tryEntries[i];
1303
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
1304
- }
1305
- },
1306
- "catch": function _catch(tryLoc) {
1307
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1308
- var entry = this.tryEntries[i];
1309
- if (entry.tryLoc === tryLoc) {
1310
- var record = entry.completion;
1311
- if ("throw" === record.type) {
1312
- var thrown = record.arg;
1313
- resetTryEntry(entry);
1314
- }
1315
- return thrown;
1316
- }
1317
- }
1318
- throw new Error("illegal catch attempt");
1319
- },
1320
- delegateYield: function delegateYield(iterable, resultName, nextLoc) {
1321
- return this.delegate = {
1322
- iterator: values(iterable),
1323
- resultName: resultName,
1324
- nextLoc: nextLoc
1325
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
1326
- }
1327
- }, exports;
1328
- }
1329
- function _toConsumableArray(arr) {
1330
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
1331
- }
1332
- function _nonIterableSpread() {
1333
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1334
- }
1335
- function _iterableToArray(iter) {
1336
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1337
- }
1338
- function _arrayWithoutHoles(arr) {
1339
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
1340
- }
1341
- function _typeof(obj) {
1342
- "@babel/helpers - typeof";
1343
-
1344
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1345
- return typeof obj;
1346
- } : function (obj) {
1347
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1348
- }, _typeof(obj);
1349
- }
1350
- function _extends() {
1351
- _extends = Object.assign ? Object.assign.bind() : function (target) {
1352
- for (var i = 1; i < arguments.length; i++) {
1353
- var source = arguments[i];
1354
- for (var key in source) {
1355
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1356
- target[key] = source[key];
1357
- }
1358
- }
1359
- }
1360
- return target;
1361
- };
1362
- return _extends.apply(this, arguments);
1363
- }
1364
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
1365
- try {
1366
- var info = gen[key](arg);
1367
- var value = info.value;
1368
- } catch (error) {
1369
- reject(error);
1370
- return;
1371
- }
1372
- if (info.done) {
1373
- resolve(value);
1374
- } else {
1375
- Promise.resolve(value).then(_next, _throw);
1376
- }
1377
- }
1378
- function _asyncToGenerator(fn) {
1379
- return function () {
1380
- var self = this,
1381
- args = arguments;
1382
- return new Promise(function (resolve, reject) {
1383
- var gen = fn.apply(self, args);
1384
- function _next(value) {
1385
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
1386
- }
1387
- function _throw(err) {
1388
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
1389
- }
1390
- _next(undefined);
1391
- });
1392
- };
1393
- }
1394
- function _slicedToArray(arr, i) {
1395
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
1396
- }
1397
- function _nonIterableRest() {
1398
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1399
- }
1400
- function _unsupportedIterableToArray(o, minLen) {
1401
- if (!o) return;
1402
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1403
- var n = Object.prototype.toString.call(o).slice(8, -1);
1404
- if (n === "Object" && o.constructor) n = o.constructor.name;
1405
- if (n === "Map" || n === "Set") return Array.from(o);
1406
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1407
- }
1408
- function _arrayLikeToArray(arr, len) {
1409
- if (len == null || len > arr.length) len = arr.length;
1410
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1411
- return arr2;
1412
- }
1413
- function _iterableToArrayLimit(arr, i) {
1414
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
1415
- if (null != _i) {
1416
- var _s,
1417
- _e,
1418
- _x,
1419
- _r,
1420
- _arr = [],
1421
- _n = !0,
1422
- _d = !1;
1423
- try {
1424
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
1425
- if (Object(_i) !== _i) return;
1426
- _n = !1;
1427
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
1428
- } catch (err) {
1429
- _d = !0, _e = err;
1430
- } finally {
1431
- try {
1432
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
1433
- } finally {
1434
- if (_d) throw _e;
1435
- }
1436
- }
1437
- return _arr;
1438
- }
1439
- }
1440
- function _arrayWithHoles(arr) {
1441
- if (Array.isArray(arr)) return arr;
1442
- }
1443
- function _objectWithoutProperties(source, excluded) {
1444
- if (source == null) return {};
1445
- var target = _objectWithoutPropertiesLoose(source, excluded);
1446
- var key, i;
1447
- if (Object.getOwnPropertySymbols) {
1448
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
1449
- for (i = 0; i < sourceSymbolKeys.length; i++) {
1450
- key = sourceSymbolKeys[i];
1451
- if (excluded.indexOf(key) >= 0) continue;
1452
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
1453
- target[key] = source[key];
1454
- }
1455
- }
1456
- return target;
1457
- }
1458
- function _objectWithoutPropertiesLoose(source, excluded) {
1459
- if (source == null) return {};
1460
- var target = {};
1461
- var sourceKeys = Object.keys(source);
1462
- var key, i;
1463
- for (i = 0; i < sourceKeys.length; i++) {
1464
- key = sourceKeys[i];
1465
- if (excluded.indexOf(key) >= 0) continue;
1466
- target[key] = source[key];
1467
- }
1468
- return target;
1469
- }
1470
- var Input = /*#__PURE__*/(0, react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, externalRef) {
1471
- var contentRef = props.contentRef,
1472
- wrapperClassName = props.wrapperClassName,
1473
- controlClassName = props.controlClassName,
1474
- controlExClassName = props.controlExClassName,
1475
- controlGroupWrapperClassName = props.controlGroupWrapperClassName,
1476
- controlGroupTextClassName = props.controlGroupTextClassName,
1477
- type = props.type,
1478
- disabled = props.disabled,
1479
- required = props.required,
1480
- placeholder = props.placeholder,
1481
- pattern = props.pattern,
1482
- readOnly = props.readOnly,
1483
- defaultValue = props.defaultValue,
1484
- value = props.value,
1485
- requiredLabel = props.requiredLabel,
1486
- label = props.label,
1487
- units = props.units,
1488
- name = props.name,
1489
- step = props.step,
1490
- min = props.min,
1491
- max = props.max,
1492
- src = props.src,
1493
- size = props.size,
1494
- minLength = props.minLength,
1495
- maxLength = props.maxLength,
1496
- alt = props.alt,
1497
- inputMode = props.inputMode,
1498
- id = props.id,
1499
- appendControl = props.appendControl,
1500
- _props$aiPredict = props.aiPredict,
1501
- aiPredict = _props$aiPredict === void 0 ? false : _props$aiPredict,
1502
- _props$aiPredictRemai = props.aiPredictRemainingTextRGB,
1503
- aiPredictRemainingTextRGB = _props$aiPredictRemai === void 0 ? [153, 153, 153] : _props$aiPredictRemai,
1504
- _props$aiPredictConfi = props.aiPredictConfirmKey,
1505
- aiPredictConfirmKey = _props$aiPredictConfi === void 0 ? [['Enter', 'NumpadEnter'], ['Tab'], ['Shift', ' ']] : _props$aiPredictConfi,
1506
- aiPredictFetchFuncAsync = props.aiPredictFetchFuncAsync,
1507
- aiPredictFetchFuncMethod = props.aiPredictFetchFuncMethod,
1508
- aiPredictFetchFuncMethodParams = props.aiPredictFetchFuncMethodParams,
1509
- aiPredictFetchCallback = props.aiPredictFetchCallback,
1510
- iconLeft = props.iconLeft,
1511
- iconRight = props.iconRight,
1512
- autoComplete = props.autoComplete,
1513
- autoCapitalize = props.autoCapitalize,
1514
- spellCheck = props.spellCheck,
1515
- style = props.style,
1516
- tabIndex = props.tabIndex,
1517
- onChangeCallback = props.onChangeCallback,
1518
- onInputCallback = props.onInputCallback,
1519
- onKeyPressedCallback = props.onKeyPressedCallback,
1520
- onChange = props.onChange,
1521
- onBlur = props.onBlur,
1522
- onFocus = props.onFocus,
1523
- onPressEnter = props.onPressEnter,
1524
- onKeyDown = props.onKeyDown,
1525
- onKeyUp = props.onKeyUp,
1526
- attributes = _objectWithoutProperties(props, _excluded);
1527
- var uniqueID = funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_1___default()();
1528
- var idRes = id || uniqueID;
1529
- var rootRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
1530
- var valRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
1531
- var typeRes = typeof type === 'undefined' ? 'text' : type;
1532
- var _useState = (0, react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
1533
- _useState2 = _slicedToArray(_useState, 2),
1534
- onComposition = _useState2[0],
1535
- setOnComposition = _useState2[1];
1536
- var _useState3 = (0, react__WEBPACK_IMPORTED_MODULE_0__.useState)(value || ''),
1537
- _useState4 = _slicedToArray(_useState3, 2),
1538
- changedVal = _useState4[0],
1539
- setChangedVal = _useState4[1];
1540
-
1541
- //================================================================
1542
- // AI Predict
1543
- //================================================================
1544
- var _useState5 = (0, react__WEBPACK_IMPORTED_MODULE_0__.useState)(''),
1545
- _useState6 = _slicedToArray(_useState5, 2),
1546
- currentSuggestion = _useState6[0],
1547
- setCurrentSuggestion = _useState6[1];
1548
- var _useState7 = (0, react__WEBPACK_IMPORTED_MODULE_0__.useState)([]),
1549
- _useState8 = _slicedToArray(_useState7, 2),
1550
- tempMatchedSuggestion = _useState8[0],
1551
- setTempMatchedSuggestion = _useState8[1];
1552
- var _useState9 = (0, react__WEBPACK_IMPORTED_MODULE_0__.useState)(0),
1553
- _useState10 = _slicedToArray(_useState9, 2),
1554
- textWidth = _useState10[0],
1555
- setTextWidth = _useState10[1];
1556
- var aiInputRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
1557
- var originInputComputedStyle = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)({
1558
- fontSize: 16,
1559
- fontFamily: 'inherit',
1560
- letterSpacing: 'normal',
1561
- textTop: 10
1562
- });
1563
- var _useState11 = (0, react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
1564
- _useState12 = _slicedToArray(_useState11, 2),
1565
- hasErr = _useState12[0],
1566
- setHasErr = _useState12[1];
1567
- var _useState13 = (0, react__WEBPACK_IMPORTED_MODULE_0__.useState)(0),
1568
- _useState14 = _slicedToArray(_useState13, 2),
1569
- currentSuggestionIndex = _useState14[0],
1570
- setCurrentSuggestionIndex = _useState14[1];
1571
-
1572
- // A list of suggestions
1573
- //----------------
1574
- var _useState15 = (0, react__WEBPACK_IMPORTED_MODULE_0__.useState)([]),
1575
- _useState16 = _slicedToArray(_useState15, 2),
1576
- suggestions = _useState16[0],
1577
- setSuggestions = _useState16[1];
1578
-
1579
- //performance
1580
- var handleChangeSuggestionsFetchSafe = funda_utils_dist_cjs_useDebounce__WEBPACK_IMPORTED_MODULE_4___default()(function (e, curVal) {
1581
- var _oparams = aiPredictFetchFuncMethodParams || [];
1582
- var _params = _oparams.map(function (item) {
1583
- return item !== '$QUERY_STRING' ? item : curVal;
1584
- });
1585
- fetchSuggestionsData(_params.join(',')).then(function (resSuggestions) {
1586
- handleInputAiPredictChange(curVal, resSuggestions);
1587
- });
1588
- }, 350, []);
1589
- function fetchSuggestionsData(_x2) {
1590
- return _fetchSuggestionsData.apply(this, arguments);
1591
- } // Calculates the width of the input text
1592
- //----------------
1593
- function _fetchSuggestionsData() {
1594
- _fetchSuggestionsData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
1595
- var response, _ORGIN_DATA, suggestionsArray;
1596
- return _regeneratorRuntime().wrap(function _callee$(_context) {
1597
- while (1) switch (_context.prev = _context.next) {
1598
- case 0:
1599
- if (!(_typeof(aiPredictFetchFuncAsync) === 'object')) {
1600
- _context.next = 12;
1601
- break;
1602
- }
1603
- _context.next = 3;
1604
- return aiPredictFetchFuncAsync["".concat(aiPredictFetchFuncMethod)].apply(aiPredictFetchFuncAsync, _toConsumableArray(params.split(',')));
1605
- case 3:
1606
- response = _context.sent;
1607
- _ORGIN_DATA = response.data; // reset data structure
1608
- if (typeof aiPredictFetchCallback === 'function') {
1609
- _ORGIN_DATA = aiPredictFetchCallback(_ORGIN_DATA);
1610
- }
1611
-
1612
- // Determine whether the data structure matches
1613
- if (!Array.isArray(_ORGIN_DATA)) {
1614
- console.warn('The data structure does not match, please refer to the example in the component documentation.');
1615
- setHasErr(true);
1616
- _ORGIN_DATA = [];
1617
- }
1618
-
1619
- // Type assertion since we've verified it's an array
1620
- suggestionsArray = _ORGIN_DATA; //
1621
- setSuggestions(suggestionsArray);
1622
- return _context.abrupt("return", suggestionsArray);
1623
- case 12:
1624
- return _context.abrupt("return", []);
1625
- case 13:
1626
- case "end":
1627
- return _context.stop();
1628
- }
1629
- }, _callee);
1630
- }));
1631
- return _fetchSuggestionsData.apply(this, arguments);
1632
- }
1633
- var calculateTextWidth = function calculateTextWidth(text) {
1634
- if (valRef.current) {
1635
- var canvas = document.createElement('canvas');
1636
- var context = canvas.getContext('2d');
1637
- if (context) {
1638
- context.font = "".concat(originInputComputedStyle.current.fontSize, "px ").concat(originInputComputedStyle.current.fontFamily);
1639
- return context.measureText(text).width;
1640
- }
1641
- }
1642
- return 0;
1643
- };
1644
-
1645
- // Get the rest of the suggested text
1646
- //----------------
1647
- var getRemainingText = function getRemainingText(fullSuggestion) {
1648
- if (!changedVal || !fullSuggestion) return '';
1649
-
1650
- // Only the parts of the suggested text that were not entered are returned
1651
- var lastInputChar = changedVal[changedVal.length - 1];
1652
- var lastCharIndex = fullSuggestion.toLowerCase().lastIndexOf(lastInputChar.toLowerCase());
1653
- return fullSuggestion.slice(lastCharIndex + 1);
1654
- };
1655
-
1656
- // Match exactly from the start
1657
- //----------------
1658
- var preciseMatch = function preciseMatch(input, suggestions) {
1659
- if (!input) return '';
1660
- var filtered = suggestions.filter(function (s) {
1661
- return s.toLowerCase().startsWith(input.toLowerCase());
1662
- });
1663
- setTempMatchedSuggestion(filtered);
1664
- return filtered;
1665
- };
1666
-
1667
- // Fuzzy matching
1668
- //----------------
1669
- var fuzzyMatch = function fuzzyMatch(input, suggestions) {
1670
- if (!input) return '';
1671
-
1672
- // Convert input to a regular expression pattern with support for arbitrary position matching
1673
- var pattern = input.split('').map(function (_char) {
1674
- return _char.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
1675
- }).join('.*');
1676
- var regex = new RegExp(pattern, 'i');
1677
-
1678
- // Find the first matching suggestion (multiple matches)
1679
- var filtered = suggestions.filter(function (suggestion) {
1680
- return regex.test(suggestion);
1681
- });
1682
- setTempMatchedSuggestion(filtered);
1683
- return filtered;
1684
- };
1685
-
1686
- // Handle input variations
1687
- //----------------
1688
- var handleInputAiPredictChange = function handleInputAiPredictChange(newValue, curSuggestions) {
1689
- setTextWidth(calculateTextWidth(newValue));
1690
-
1691
- // Match results
1692
- var matchedSuggestion = fuzzyMatch(newValue, curSuggestions);
1693
- setCurrentSuggestion(matchedSuggestion[0] || '');
1694
- };
1695
-
1696
- // Calculate the color shade of the prompt text
1697
- //----------------
1698
- var calculateOpacity = function calculateOpacity() {
1699
- // Transparency is calculated based on the input length
1700
- var baseOpacity = 0.5;
1701
- var inputLength = changedVal.length;
1702
- return Math.max(0.2, baseOpacity - inputLength * 0.05);
1703
- };
1704
-
1705
- // Confirm
1706
- //----------------
1707
- var handleAiPredictKeyDown = function handleAiPredictKeyDown(e) {
1708
- // Prevents the default behavior of the enter key
1709
- e.preventDefault();
1710
- var remainingText = getRemainingText(currentSuggestion);
1711
- if (remainingText) {
1712
- // Only the second half of the text is added
1713
- handleChange(e, changedVal + remainingText);
1714
- setCurrentSuggestion('');
1715
- }
1716
- };
1717
-
1718
- //
1719
- var remainingText = getRemainingText(currentSuggestion);
1720
-
1721
- //================================================================
1722
- // General
1723
- //================================================================
1724
- // exposes the following methods
1725
- (0, react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle)(contentRef, function () {
1726
- return {
1727
- control: function control() {
1728
- return valRef.current;
1729
- },
1730
- getLatestVal: function getLatestVal() {
1731
- return changedVal || '';
1732
- },
1733
- clear: function clear(cb) {
1734
- setChangedVal('');
1735
- cb === null || cb === void 0 ? void 0 : cb();
1736
- if (valRef.current) {
1737
- onChange === null || onChange === void 0 ? void 0 : onChange(null, onComposition, valRef.current, '');
1738
- }
1739
- },
1740
- set: function set(value, cb) {
1741
- setChangedVal("".concat(value));
1742
- cb === null || cb === void 0 ? void 0 : cb();
1743
- if (valRef.current) {
1744
- onChange === null || onChange === void 0 ? void 0 : onChange(null, onComposition, valRef.current, "".concat(value));
1745
- }
1746
- },
1747
- aiPredictReset: function aiPredictReset() {
1748
- setTimeout(function () {
1749
- // Avoid conflicts with other asynchronous states, resulting in invalid clearing
1750
- setCurrentSuggestion('');
1751
- }, 0);
1752
- }
1753
- };
1754
- }, [contentRef, onComposition, changedVal]);
1755
- var propExist = function propExist(p) {
1756
- return typeof p !== 'undefined' && p !== null && p !== '';
1757
- };
1758
- function handleComposition(event) {
1759
- if (event.type === 'compositionstart') {
1760
- setOnComposition(true);
1761
- }
1762
- if (event.type === 'compositionend') {
1763
- setOnComposition(false);
1764
- }
1765
- }
1766
- function handleFocus(event) {
1767
- var _rootRef$current;
1768
- (_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.classList.add('focus');
1769
-
1770
- //
1771
- if (valRef.current) {
1772
- onFocus === null || onFocus === void 0 ? void 0 : onFocus(event, onComposition, valRef.current);
1773
- }
1774
- }
1775
- function handleChange(event, curVal) {
1776
- setChangedVal(curVal);
1777
-
1778
- //----
1779
- //remove focus style
1780
- if (curVal === '') {
1781
- var _rootRef$current2;
1782
- (_rootRef$current2 = rootRef.current) === null || _rootRef$current2 === void 0 ? void 0 : _rootRef$current2.classList.remove('focus');
1783
- }
1784
-
1785
- //
1786
- if (valRef.current) {
1787
- onChange === null || onChange === void 0 ? void 0 : onChange(event, onComposition, valRef.current, curVal);
1788
- }
1789
-
1790
- // It fires in real time as the user enters
1791
- if (typeof onInputCallback === 'function' && event && valRef.current) {
1792
- var newData = onInputCallback(event, valRef.current);
1793
- if (newData) setChangedVal(newData); // Avoid the error "react checkbox changing an uncontrolled input to be controlled"
1794
- }
1795
- }
1796
-
1797
- function handleBlur(event) {
1798
- var el = event.target;
1799
- var val = event.target.value;
1800
-
1801
- //----
1802
- //remove focus style
1803
- if (val === '') {
1804
- var _rootRef$current3;
1805
- (_rootRef$current3 = rootRef.current) === null || _rootRef$current3 === void 0 ? void 0 : _rootRef$current3.classList.remove('focus');
1806
- }
1807
-
1808
- //
1809
- if (valRef.current) {
1810
- onBlur === null || onBlur === void 0 ? void 0 : onBlur(event, onComposition, valRef.current);
1811
- }
1812
-
1813
- // It fires when focus is lost
1814
- if (typeof onChangeCallback === 'function' && valRef.current) {
1815
- var newData = onChangeCallback(event, valRef.current);
1816
- if (newData) setChangedVal(newData); // Avoid the error "react checkbox changing an uncontrolled input to be controlled"
1817
- }
1818
- }
1819
-
1820
- function handleKeyPressed(event) {
1821
- if (valRef.current) {
1822
- onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event, valRef.current);
1823
- }
1824
- if (typeof onKeyPressedCallback === 'function' && valRef.current) {
1825
- var newData = onKeyPressedCallback(event, valRef.current);
1826
- if (newData) setChangedVal(newData); // Avoid the error "react checkbox changing an uncontrolled input to be controlled"
1827
- }
1828
-
1829
- if (event.key === 'Enter' || event.key === 'NumpadEnter') {
1830
- // DO NOT USE "preventDefault()"
1831
- if (valRef.current) {
1832
- onPressEnter === null || onPressEnter === void 0 ? void 0 : onPressEnter(event, valRef.current);
1833
- }
1834
- }
1835
-
1836
- // AI Predict
1837
- //----
1838
- if (aiPredict && currentSuggestion !== '') {
1839
- var keyBindings = aiPredictConfirmKey;
1840
- // The parameter 'registerKeyEvents' is an array, and each element is an object
1841
- // eg. { keys: ["Control", "S"], action: () => { console.log("Ctrl+S"); } }
1842
- var registerKeyEvents = keyBindings.map(function (s) {
1843
- return {
1844
- keys: s,
1845
- action: function action() {
1846
- handleAiPredictKeyDown(event);
1847
- }
1848
- };
1849
- });
1850
- registerKeyEvents.forEach(function (binding) {
1851
- var keysPressed = binding.keys.every(function (key) {
1852
- return key === "Shift" ? event.shiftKey : key === "Control" ? event.ctrlKey : key === "Alt" ? event.altKey : key === "Meta" ? event.metaKey : event.key === key;
1853
- });
1854
- if (keysPressed) {
1855
- binding.action();
1856
- }
1857
- });
1858
-
1859
- // switch result of suggestions
1860
- if (event.code === 'ArrowUp') {
1861
- setCurrentSuggestionIndex(function (prev) {
1862
- return (prev - 1 + tempMatchedSuggestion.length) % tempMatchedSuggestion.length;
1863
- });
1864
- }
1865
- if (event.code === 'ArrowDown') {
1866
- setCurrentSuggestionIndex(function (prev) {
1867
- return (prev + 1) % tempMatchedSuggestion.length;
1868
- });
1869
- }
1870
- setCurrentSuggestion(tempMatchedSuggestion[currentSuggestionIndex] || '');
1871
- }
1872
- }
1873
- function handleKeyUp(event) {
1874
- if (valRef.current) {
1875
- onKeyUp === null || onKeyUp === void 0 ? void 0 : onKeyUp(event, valRef.current);
1876
- }
1877
- }
1878
- (0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
1879
- // update default value
1880
- //--------------
1881
- if (typeof value !== 'undefined') {
1882
- setChangedVal("".concat(value)); // Avoid displaying the number 0
1883
- }
1884
- }, [value]);
1885
- (0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
1886
- // update default value (It does not re-render the component because the incoming value changes.)
1887
- //--------------
1888
- if (typeof defaultValue !== 'undefined') {
1889
- //REQUIRED
1890
- setChangedVal("".concat(defaultValue)); // Avoid displaying the number 0
1891
- }
1892
-
1893
- // AI Predict initalization
1894
- //--------------
1895
- if (aiPredict && valRef.current !== null) {
1896
- originInputComputedStyle.current = {
1897
- fontSize: (0, funda_utils_dist_cjs_inputsCalculation__WEBPACK_IMPORTED_MODULE_3__.actualPropertyValue)(valRef.current, 'fontSize'),
1898
- fontFamily: (0, funda_utils_dist_cjs_inputsCalculation__WEBPACK_IMPORTED_MODULE_3__.actualPropertyValue)(valRef.current, 'fontFamily'),
1899
- letterSpacing: (0, funda_utils_dist_cjs_inputsCalculation__WEBPACK_IMPORTED_MODULE_3__.actualPropertyValue)(valRef.current, 'letterSpacing'),
1900
- textTop: (0, funda_utils_dist_cjs_inputsCalculation__WEBPACK_IMPORTED_MODULE_3__.getTextTop)(valRef.current)
1901
- };
1902
- }
1903
- }, []);
1904
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
1905
- className: (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(wrapperClassName, 'mb-3 position-relative'),
1906
- ref: rootRef
1907
- }, label ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, typeof label === 'string' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("label", {
1908
- htmlFor: idRes,
1909
- className: "form-label",
1910
- dangerouslySetInnerHTML: {
1911
- __html: "".concat(label)
1912
- }
1913
- }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("label", {
1914
- htmlFor: idRes,
1915
- className: "form-label"
1916
- }, label)) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
1917
- className: (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.combinedCls)('position-relative z-1', (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(controlGroupWrapperClassName, 'input-group'), {
1918
- 'has-left-content': propExist(iconLeft),
1919
- 'has-right-content': propExist(iconRight) || propExist(units)
1920
- })
1921
- }, propExist(iconLeft) ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
1922
- className: (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(controlGroupTextClassName, 'input-group-text')
1923
- }, iconLeft)) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
1924
- className: "input-group-control-container flex-fill position-relative"
1925
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("input", _extends({
1926
- ref: function ref(node) {
1927
- valRef.current = node;
1928
- if (typeof externalRef === 'function') {
1929
- externalRef(node);
1930
- } else if (externalRef) {
1931
- externalRef.current = node;
1932
- }
1933
- },
1934
- tabIndex: tabIndex || 0,
1935
- type: typeRes,
1936
- className: (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.combinedCls)((0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(controlClassName, 'form-control'), controlExClassName, {
1937
- 'rounded': !propExist(iconLeft) && !propExist(iconRight) && !propExist(units),
1938
- 'rounded-start-0': propExist(iconLeft),
1939
- 'rounded-end-0': propExist(iconRight) || propExist(units)
1940
- }),
1941
- id: idRes,
1942
- name: name,
1943
- step: step || undefined,
1944
- min: min || undefined,
1945
- max: max || undefined,
1946
- src: src || undefined,
1947
- size: typeof size === 'number' ? size : undefined,
1948
- alt: alt || undefined,
1949
- inputMode: inputMode || undefined,
1950
- pattern: pattern || undefined,
1951
- placeholder: placeholder || '',
1952
- value: changedVal,
1953
- minLength: typeof minLength === 'number' ? minLength : undefined,
1954
- maxLength: typeof maxLength === 'number' ? maxLength : undefined,
1955
- autoComplete: typeof autoComplete === 'undefined' ? 'on' : autoComplete,
1956
- autoCapitalize: typeof autoCapitalize === 'undefined' ? 'off' : autoCapitalize,
1957
- spellCheck: typeof spellCheck === 'undefined' ? false : spellCheck,
1958
- onFocus: handleFocus,
1959
- onBlur: handleBlur,
1960
- onChange: function onChange(e) {
1961
- handleChange(e, e.target.value);
1962
-
1963
- // AI Predict
1964
- if (aiPredict) {
1965
- handleChangeSuggestionsFetchSafe(e, e.target.value);
1966
- }
1967
- },
1968
- onKeyDown: handleKeyPressed,
1969
- onKeyUp: handleKeyUp,
1970
- onCompositionStart: handleComposition,
1971
- onCompositionUpdate: handleComposition,
1972
- onCompositionEnd: handleComposition,
1973
- disabled: disabled || undefined,
1974
- required: required || undefined,
1975
- readOnly: readOnly || undefined,
1976
- style: style
1977
- }, attributes)), appendControl || '', aiPredict && remainingText && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
1978
- ref: aiInputRef,
1979
- className: "position-absolute z-1",
1980
- "data-ai": "predict",
1981
- style: {
1982
- left: "".concat((typeof originInputComputedStyle.current.fontSize === 'number' ? originInputComputedStyle.current.fontSize : 16) + textWidth, "px"),
1983
- top: (typeof originInputComputedStyle.current.textTop === 'number' ? originInputComputedStyle.current.textTop : 10) + 'px',
1984
- color: "rgba(".concat(aiPredictRemainingTextRGB[0], ", ").concat(aiPredictRemainingTextRGB[1], ", ").concat(aiPredictRemainingTextRGB[2], ", ").concat(calculateOpacity(), ")"),
1985
- pointerEvents: 'none',
1986
- fontSize: (typeof originInputComputedStyle.current.fontSize === 'number' ? originInputComputedStyle.current.fontSize : 16) + 'px',
1987
- fontFamily: typeof originInputComputedStyle.current.fontFamily === 'string' ? originInputComputedStyle.current.fontFamily : 'inherit',
1988
- letterSpacing: typeof originInputComputedStyle.current.letterSpacing === 'string' ? originInputComputedStyle.current.letterSpacing : 'normal'
1989
- }
1990
- }, remainingText), required ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, requiredLabel || requiredLabel === '' ? requiredLabel : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
1991
- className: "position-absolute end-0 top-0 my-2 mx-2"
1992
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
1993
- className: "text-danger"
1994
- }, "*"))) : ''), propExist(units) ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
1995
- className: (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(controlGroupTextClassName, 'input-group-text')
1996
- }, units)) : null, propExist(iconRight) ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
1997
- className: (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(controlGroupTextClassName, 'input-group-text')
1998
- }, iconRight)) : null)));
1999
- });
2000
- /* harmony default export */
2001
- var __WEBPACK_DEFAULT_EXPORT__ = Input;
2002
- })();
2003
-
2004
- /******/
2005
- return __webpack_exports__;
2006
- /******/
2007
- }()
2008
- );
2009
- });
2010
-
2011
- /***/ }),
2012
-
2013
- /***/ 188:
2014
- /***/ (function(module, exports, __webpack_require__) {
2015
-
2016
- /* module decorator */ module = __webpack_require__.nmd(module);
2017
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof2(obj) { "@babel/helpers - typeof"; return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof2(obj); }
2018
- (function webpackUniversalModuleDefinition(root, factory) {
2019
- if (( false ? 0 : _typeof2(exports)) === 'object' && ( false ? 0 : _typeof2(module)) === 'object') module.exports = factory();else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
2020
- __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
2021
- (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
2022
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
2023
- })(this, function () {
2024
- return (/******/function () {
2025
- // webpackBootstrap
2026
- /******/
2027
- "use strict";
2028
-
2029
- /******/ // The require scope
2030
- /******/
2031
- var __nested_webpack_require_993__ = {};
2032
- /******/
2033
- /************************************************************************/
2034
- /******/ /* webpack/runtime/define property getters */
2035
- /******/
2036
- (function () {
2037
- /******/ // define getter functions for harmony exports
2038
- /******/__nested_webpack_require_993__.d = function (exports, definition) {
2039
- /******/for (var key in definition) {
2040
- /******/if (__nested_webpack_require_993__.o(definition, key) && !__nested_webpack_require_993__.o(exports, key)) {
2041
- /******/Object.defineProperty(exports, key, {
2042
- enumerable: true,
2043
- get: definition[key]
2044
- });
2045
- /******/
2046
- }
2047
- /******/
2048
- }
2049
- /******/
2050
- };
2051
- /******/
2052
- })();
2053
- /******/
2054
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
2055
- /******/
2056
- (function () {
2057
- /******/__nested_webpack_require_993__.o = function (obj, prop) {
2058
- return Object.prototype.hasOwnProperty.call(obj, prop);
2059
- };
2060
- /******/
2061
- })();
2062
- /******/
2063
- /******/ /* webpack/runtime/make namespace object */
2064
- /******/
2065
- (function () {
2066
- /******/ // define __esModule on exports
2067
- /******/__nested_webpack_require_993__.r = function (exports) {
2068
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
2069
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
2070
- value: 'Module'
2071
- });
2072
- /******/
2073
- }
2074
- /******/
2075
- Object.defineProperty(exports, '__esModule', {
2076
- value: true
2077
- });
2078
- /******/
2079
- };
2080
- /******/
2081
- })();
2082
- /******/
2083
- /************************************************************************/
2084
- var __webpack_exports__ = {};
2085
- __nested_webpack_require_993__.r(__webpack_exports__);
2086
- /* harmony export */
2087
- __nested_webpack_require_993__.d(__webpack_exports__, {
2088
- /* harmony export */"clsWrite": function clsWrite() {
2089
- return (/* binding */_clsWrite
2090
- );
2091
- },
2092
- /* harmony export */"combinedCls": function combinedCls() {
2093
- return (/* binding */_combinedCls
2094
- );
2095
- }
2096
- /* harmony export */
2097
- });
2098
- function _slicedToArray(arr, i) {
2099
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
2100
- }
2101
- function _nonIterableRest() {
2102
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2103
- }
2104
- function _unsupportedIterableToArray(o, minLen) {
2105
- if (!o) return;
2106
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
2107
- var n = Object.prototype.toString.call(o).slice(8, -1);
2108
- if (n === "Object" && o.constructor) n = o.constructor.name;
2109
- if (n === "Map" || n === "Set") return Array.from(o);
2110
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
2111
- }
2112
- function _arrayLikeToArray(arr, len) {
2113
- if (len == null || len > arr.length) len = arr.length;
2114
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
2115
- return arr2;
2116
- }
2117
- function _iterableToArrayLimit(arr, i) {
2118
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
2119
- if (null != _i) {
2120
- var _s,
2121
- _e,
2122
- _x,
2123
- _r,
2124
- _arr = [],
2125
- _n = !0,
2126
- _d = !1;
2127
- try {
2128
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
2129
- if (Object(_i) !== _i) return;
2130
- _n = !1;
2131
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
2132
- } catch (err) {
2133
- _d = !0, _e = err;
2134
- } finally {
2135
- try {
2136
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
2137
- } finally {
2138
- if (_d) throw _e;
2139
- }
2140
- }
2141
- return _arr;
2142
- }
2143
- }
2144
- function _arrayWithHoles(arr) {
2145
- if (Array.isArray(arr)) return arr;
2146
- }
2147
- function _typeof(obj) {
2148
- "@babel/helpers - typeof";
2149
-
2150
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
2151
- return typeof obj;
2152
- } : function (obj) {
2153
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2154
- }, _typeof(obj);
2155
- }
2156
- /**
2157
- * Output of class name
2158
- * @param {*} s - Any
2159
- * @param {String} defaultCls - Default string
2160
- * @param {?*} targetCls - Any
2161
- * @returns {*}
2162
- */
2163
- function _clsWrite(s, defaultCls) {
2164
- var targetCls = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
2165
- return s || s === '' ? typeof targetCls === 'undefined' ? s : targetCls : defaultCls;
2166
- }
2167
-
2168
- /**
2169
- * Combined classnames
2170
- * @param {*} args
2171
- * @returns {String|undefined}
2172
- */
2173
- /* Usage:
2174
-
2175
- console.log(combinedCls('a-1', 'a-2', 'a-3', {
2176
- 'p-1': null,
2177
- 'p-2': undefined,
2178
- 'p-3': true,
2179
- 'p-4': false,
2180
- 'p-5': 'kkk',
2181
- 'p-6': 0,
2182
- 'p-7': 1,
2183
- 'p-8': '',
2184
- undefined
2185
- })); // a-1 a-2 a-3 p-3 p-5 p-7
2186
- */
2187
- function _combinedCls() {
2188
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2189
- args[_key] = arguments[_key];
2190
- }
2191
- if (args) {
2192
- var classes = [];
2193
- for (var i = 0; i < args.length; i++) {
2194
- var className = args[i];
2195
- if (!className) {
2196
- continue;
2197
- }
2198
- var type = _typeof(className);
2199
- if (type === 'string' || type === 'number') {
2200
- classes.push(className);
2201
- } else if (type === 'object') {
2202
- var _classes = Array.isArray(className) ? className : Object.entries(className).map(function (_ref) {
2203
- var _ref2 = _slicedToArray(_ref, 2),
2204
- key = _ref2[0],
2205
- value = _ref2[1];
2206
- return value ? key : null;
2207
- });
2208
- classes = _classes.length ? classes.concat(_classes.filter(function (c) {
2209
- return !!c;
2210
- })) : classes;
2211
- }
2212
- }
2213
- return classes.join(' ').trim();
2214
- }
2215
- return undefined;
2216
- }
2217
-
2218
- /******/
2219
- return __webpack_exports__;
2220
- /******/
2221
- }()
2222
- );
2223
- });
2224
-
2225
- /***/ }),
2226
-
2227
- /***/ 85:
2228
- /***/ (function(module, exports, __webpack_require__) {
2229
-
2230
- /* module decorator */ module = __webpack_require__.nmd(module);
2231
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2232
- (function webpackUniversalModuleDefinition(root, factory) {
2233
- if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory(__webpack_require__(787));else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(787)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
2234
- __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
2235
- (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
2236
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
2237
- })(this, function (__WEBPACK_EXTERNAL_MODULE__787__) {
2238
- return (/******/function () {
2239
- // webpackBootstrap
2240
- /******/
2241
- "use strict";
2242
-
2243
- /******/
2244
- var __webpack_modules__ = {
2245
- /***/787: /***/function _(module) {
2246
- module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
2247
-
2248
- /***/
2249
- }
2250
-
2251
- /******/
2252
- };
2253
- /************************************************************************/
2254
- /******/ // The module cache
2255
- /******/
2256
- var __webpack_module_cache__ = {};
2257
- /******/
2258
- /******/ // The require function
2259
- /******/
2260
- function __nested_webpack_require_1465__(moduleId) {
2261
- /******/ // Check if module is in cache
2262
- /******/var cachedModule = __webpack_module_cache__[moduleId];
2263
- /******/
2264
- if (cachedModule !== undefined) {
2265
- /******/return cachedModule.exports;
2266
- /******/
2267
- }
2268
- /******/ // Create a new module (and put it into the cache)
2269
- /******/
2270
- var module = __webpack_module_cache__[moduleId] = {
2271
- /******/ // no module.id needed
2272
- /******/ // no module.loaded needed
2273
- /******/exports: {}
2274
- /******/
2275
- };
2276
- /******/
2277
- /******/ // Execute the module function
2278
- /******/
2279
- __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_1465__);
2280
- /******/
2281
- /******/ // Return the exports of the module
2282
- /******/
2283
- return module.exports;
2284
- /******/
2285
- }
2286
- /******/
2287
- /************************************************************************/
2288
- /******/ /* webpack/runtime/compat get default export */
2289
- /******/
2290
- (function () {
2291
- /******/ // getDefaultExport function for compatibility with non-harmony modules
2292
- /******/__nested_webpack_require_1465__.n = function (module) {
2293
- /******/var getter = module && module.__esModule ? /******/function () {
2294
- return module['default'];
2295
- } : /******/function () {
2296
- return module;
2297
- };
2298
- /******/
2299
- __nested_webpack_require_1465__.d(getter, {
2300
- a: getter
2301
- });
2302
- /******/
2303
- return getter;
2304
- /******/
2305
- };
2306
- /******/
2307
- })();
2308
- /******/
2309
- /******/ /* webpack/runtime/define property getters */
2310
- /******/
2311
- (function () {
2312
- /******/ // define getter functions for harmony exports
2313
- /******/__nested_webpack_require_1465__.d = function (exports, definition) {
2314
- /******/for (var key in definition) {
2315
- /******/if (__nested_webpack_require_1465__.o(definition, key) && !__nested_webpack_require_1465__.o(exports, key)) {
2316
- /******/Object.defineProperty(exports, key, {
2317
- enumerable: true,
2318
- get: definition[key]
2319
- });
2320
- /******/
2321
- }
2322
- /******/
2323
- }
2324
- /******/
2325
- };
2326
- /******/
2327
- })();
2328
- /******/
2329
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
2330
- /******/
2331
- (function () {
2332
- /******/__nested_webpack_require_1465__.o = function (obj, prop) {
2333
- return Object.prototype.hasOwnProperty.call(obj, prop);
2334
- };
2335
- /******/
2336
- })();
2337
- /******/
2338
- /******/ /* webpack/runtime/make namespace object */
2339
- /******/
2340
- (function () {
2341
- /******/ // define __esModule on exports
2342
- /******/__nested_webpack_require_1465__.r = function (exports) {
2343
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
2344
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
2345
- value: 'Module'
2346
- });
2347
- /******/
2348
- }
2349
- /******/
2350
- Object.defineProperty(exports, '__esModule', {
2351
- value: true
2352
- });
2353
- /******/
2354
- };
2355
- /******/
2356
- })();
2357
- /******/
2358
- /************************************************************************/
2359
- var __webpack_exports__ = {};
2360
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
2361
- (function () {
2362
- __nested_webpack_require_1465__.r(__webpack_exports__);
2363
- /* harmony export */
2364
- __nested_webpack_require_1465__.d(__webpack_exports__, {
2365
- /* harmony export */"default": function _default() {
2366
- return __WEBPACK_DEFAULT_EXPORT__;
2367
- }
2368
- /* harmony export */
2369
- });
2370
- /* harmony import */
2371
- var react__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_1465__(787);
2372
- /* harmony import */
2373
- var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nested_webpack_require_1465__.n(react__WEBPACK_IMPORTED_MODULE_0__);
2374
- /**
2375
- * Create an available ID
2376
- *
2377
- */
2378
-
2379
- var useComId = function useComId() {
2380
- return "ID-".concat((0, react__WEBPACK_IMPORTED_MODULE_0__.useId)().replace(/\:/g, "-"));
2381
- };
2382
- /* harmony default export */
2383
- var __WEBPACK_DEFAULT_EXPORT__ = useComId;
2384
- })();
2385
-
2386
- /******/
2387
- return __webpack_exports__;
2388
- /******/
2389
- }()
2390
- );
2391
- });
2392
-
2393
- /***/ }),
2394
-
2395
- /***/ 787:
2396
- /***/ ((module) => {
2397
-
2398
- "use strict";
2399
- module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
2400
-
2401
- /***/ })
2402
-
2403
- /******/ });
2404
- /************************************************************************/
2405
- /******/ // The module cache
2406
- /******/ var __webpack_module_cache__ = {};
2407
- /******/
2408
- /******/ // The require function
2409
- /******/ function __webpack_require__(moduleId) {
2410
- /******/ // Check if module is in cache
2411
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
2412
- /******/ if (cachedModule !== undefined) {
2413
- /******/ return cachedModule.exports;
2414
- /******/ }
2415
- /******/ // Create a new module (and put it into the cache)
2416
- /******/ var module = __webpack_module_cache__[moduleId] = {
2417
- /******/ id: moduleId,
2418
- /******/ loaded: false,
2419
- /******/ exports: {}
2420
- /******/ };
2421
- /******/
2422
- /******/ // Execute the module function
2423
- /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
2424
- /******/
2425
- /******/ // Flag the module as loaded
2426
- /******/ module.loaded = true;
2427
- /******/
2428
- /******/ // Return the exports of the module
2429
- /******/ return module.exports;
2430
- /******/ }
2431
- /******/
2432
- /************************************************************************/
2433
- /******/ /* webpack/runtime/compat get default export */
2434
- /******/ (() => {
2435
- /******/ // getDefaultExport function for compatibility with non-harmony modules
2436
- /******/ __webpack_require__.n = (module) => {
2437
- /******/ var getter = module && module.__esModule ?
2438
- /******/ () => (module['default']) :
2439
- /******/ () => (module);
2440
- /******/ __webpack_require__.d(getter, { a: getter });
2441
- /******/ return getter;
2442
- /******/ };
2443
- /******/ })();
2444
- /******/
2445
- /******/ /* webpack/runtime/define property getters */
2446
- /******/ (() => {
2447
- /******/ // define getter functions for harmony exports
2448
- /******/ __webpack_require__.d = (exports, definition) => {
2449
- /******/ for(var key in definition) {
2450
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
2451
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
2452
- /******/ }
2453
- /******/ }
2454
- /******/ };
2455
- /******/ })();
2456
- /******/
2457
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
2458
- /******/ (() => {
2459
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
2460
- /******/ })();
2461
- /******/
2462
- /******/ /* webpack/runtime/make namespace object */
2463
- /******/ (() => {
2464
- /******/ // define __esModule on exports
2465
- /******/ __webpack_require__.r = (exports) => {
2466
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
2467
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2468
- /******/ }
2469
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
2470
- /******/ };
2471
- /******/ })();
2472
- /******/
2473
- /******/ /* webpack/runtime/node module decorator */
2474
- /******/ (() => {
2475
- /******/ __webpack_require__.nmd = (module) => {
2476
- /******/ module.paths = [];
2477
- /******/ if (!module.children) module.children = [];
2478
- /******/ return module;
2479
- /******/ };
2480
- /******/ })();
2481
- /******/
2482
- /************************************************************************/
2483
- var __webpack_exports__ = {};
2484
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
2485
- (() => {
2486
- "use strict";
2487
- __webpack_require__.r(__webpack_exports__);
2488
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2489
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
2490
- /* harmony export */ });
2491
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(787);
2492
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
2493
- /* harmony import */ var funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85);
2494
- /* harmony import */ var funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_1__);
2495
- /* harmony import */ var funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(188);
2496
- /* harmony import */ var funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__);
2497
- /* harmony import */ var funda_input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(390);
2498
- /* harmony import */ var funda_input__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(funda_input__WEBPACK_IMPORTED_MODULE_3__);
2499
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2500
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
2501
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
2502
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
2503
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
2504
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
2505
-
2506
-
2507
-
2508
-
2509
- var RangeSlider = function RangeSlider(props) {
2510
- var wrapperClassName = props.wrapperClassName,
2511
- controlClassName = props.controlClassName,
2512
- controlExClassName = props.controlExClassName,
2513
- disabled = props.disabled,
2514
- required = props.required,
2515
- value = props.value,
2516
- label = props.label,
2517
- minName = props.minName,
2518
- maxName = props.maxName,
2519
- onlyOne = props.onlyOne,
2520
- step = props.step,
2521
- min = props.min,
2522
- max = props.max,
2523
- id = props.id,
2524
- tabIndex = props.tabIndex,
2525
- onChange = props.onChange;
2526
- var uniqueID = funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_1___default()();
2527
- var idRes = id || uniqueID;
2528
- var rootRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
2529
- var valMinRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
2530
- var valMaxRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
2531
- var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(value ? value.min : min),
2532
- _useState2 = _slicedToArray(_useState, 2),
2533
- minValue = _useState2[0],
2534
- setMinValue = _useState2[1];
2535
- var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(value ? value.max : max),
2536
- _useState4 = _slicedToArray(_useState3, 2),
2537
- maxValue = _useState4[0],
2538
- setMaxValue = _useState4[1];
2539
- var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
2540
- _useState6 = _slicedToArray(_useState5, 2),
2541
- minActive = _useState6[0],
2542
- setMinActive = _useState6[1];
2543
- var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
2544
- _useState8 = _slicedToArray(_useState7, 2),
2545
- maxActive = _useState8[0],
2546
- setMaxActive = _useState8[1];
2547
- var minPos = (minValue - min) / (max - min) * 100;
2548
- var maxPos = (maxValue - min) / (max - min) * 100;
2549
- function initDefaultValue(defaultValue) {
2550
- // change the value to trigger component rendering
2551
- if (typeof defaultValue === 'undefined' || defaultValue === '') {
2552
- setMinValue(min);
2553
- setMaxValue(max);
2554
- } else {
2555
- setMinValue(defaultValue.min);
2556
- setMaxValue(defaultValue.max);
2557
- }
2558
- }
2559
- function handleMinEnter(e) {
2560
- setMinActive(true);
2561
- }
2562
- function handleMinLeave(e) {
2563
- setMinActive(false);
2564
- }
2565
- function handleMaxEnter(e) {
2566
- setMaxActive(true);
2567
- }
2568
- function handleMaxLeave(e) {
2569
- setMaxActive(false);
2570
- }
2571
- function handleMinChange(e) {
2572
- e.preventDefault();
2573
- var newMinVal = Math.min(+e.target.value, onlyOne ? maxValue : maxValue - step);
2574
- setMinValue(newMinVal);
2575
- onChange === null || onChange === void 0 ? void 0 : onChange(e, {
2576
- min: newMinVal,
2577
- max: maxValue
2578
- });
2579
- }
2580
- function handleMaxChange(e) {
2581
- e.preventDefault();
2582
- var newMaxVal = Math.max(+e.target.value, minValue + step);
2583
- setMaxValue(newMaxVal);
2584
- onChange === null || onChange === void 0 ? void 0 : onChange(e, {
2585
- min: minValue,
2586
- max: newMaxVal
2587
- });
2588
- }
2589
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
2590
- // update default value
2591
- //--------------
2592
- if (value && (typeof value.min === 'undefined' || typeof value.max === 'undefined')) {
2593
- initDefaultValue({
2594
- min: min,
2595
- max: max
2596
- });
2597
- } else {
2598
- initDefaultValue(value);
2599
- }
2600
- }, [value]);
2601
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, label ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
2602
- className: "range-slider__label"
2603
- }, typeof label === 'string' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("label", {
2604
- htmlFor: "label-".concat(idRes),
2605
- className: "form-label",
2606
- dangerouslySetInnerHTML: {
2607
- __html: "".concat(label)
2608
- }
2609
- }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("label", {
2610
- htmlFor: "label-".concat(idRes),
2611
- className: "form-label"
2612
- }, label))) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
2613
- className: (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.combinedCls)('range-slider__wrapper', (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(wrapperClassName, 'mb-3 position-relative'), {
2614
- 'only-one': onlyOne
2615
- }),
2616
- ref: rootRef
2617
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((funda_input__WEBPACK_IMPORTED_MODULE_3___default()), {
2618
- ref: valMinRef,
2619
- wrapperClassName: (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(wrapperClassName, 'mb-3 position-relative'),
2620
- controlClassName: (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.combinedCls)((0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(controlClassName, 'form-control'), controlExClassName),
2621
- required: required || null,
2622
- type: "text",
2623
- id: idRes + '-min',
2624
- name: minName,
2625
- value: typeof minValue !== 'undefined' ? minValue.toString() : min // Convert to a string to ensure that 0 can also be filled
2626
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((funda_input__WEBPACK_IMPORTED_MODULE_3___default()), {
2627
- ref: valMaxRef,
2628
- wrapperClassName: (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(wrapperClassName, 'mb-3 position-relative'),
2629
- controlClassName: (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.combinedCls)((0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(controlClassName, 'form-control'), controlExClassName),
2630
- required: required || null,
2631
- type: "text",
2632
- id: idRes + '-max',
2633
- name: maxName,
2634
- value: typeof maxValue !== 'undefined' ? maxValue.toString() : max // Convert to a string to ensure that 0 can also be filled
2635
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
2636
- className: (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.combinedCls)('range-slider__control-wrapper', {
2637
- 'disabled': disabled
2638
- })
2639
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
2640
- className: "range-slider__input"
2641
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("input", {
2642
- type: "range",
2643
- value: minValue,
2644
- min: min,
2645
- max: max,
2646
- step: step,
2647
- tabIndex: tabIndex || 0,
2648
- disabled: disabled || null,
2649
- onMouseEnter: handleMinEnter,
2650
- onMouseLeave: handleMinLeave,
2651
- onChange: handleMinChange
2652
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("input", {
2653
- type: "range",
2654
- value: maxValue,
2655
- min: min,
2656
- max: max,
2657
- step: step,
2658
- tabIndex: tabIndex || 0,
2659
- disabled: onlyOne ? true : disabled || null,
2660
- onMouseEnter: handleMaxEnter,
2661
- onMouseLeave: handleMaxLeave,
2662
- onChange: handleMaxChange
2663
- })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
2664
- className: "range-slider__placeholder"
2665
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
2666
- className: (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.combinedCls)('range-slider__placeholder-grab', {
2667
- 'active': minActive
2668
- }),
2669
- style: {
2670
- left: "".concat(minPos, "%")
2671
- }
2672
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
2673
- className: "range-slider__placeholder-rail"
2674
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
2675
- className: "range-slider__placeholder-inner-rail",
2676
- style: {
2677
- left: "".concat(minPos, "%"),
2678
- right: "".concat(100 - maxPos, "%")
2679
- }
2680
- })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
2681
- className: (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.combinedCls)('range-slider__placeholder-grab', {
2682
- 'active': maxActive,
2683
- 'inactive': onlyOne
2684
- }),
2685
- style: {
2686
- left: "".concat(maxPos, "%")
2687
- }
2688
- })))));
2689
- };
2690
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RangeSlider);
2691
- })();
2692
-
2693
- /******/ return __webpack_exports__;
2694
- /******/ })()
2695
- ;
2696
- });