@beppla/tapas-ui 1.0.72 → 1.0.74

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 (605) hide show
  1. package/commonjs/Alert/Alert.js +31 -78
  2. package/commonjs/Alert/Alert.js.map +1 -0
  3. package/commonjs/AnimatedNavItem/AnimatedNavItem.js +1 -0
  4. package/commonjs/AnimatedNavItem/AnimatedNavItem.js.map +1 -0
  5. package/commonjs/AnimatedNavItem/index.js +1 -0
  6. package/commonjs/AnimatedNavItem/index.js.map +1 -0
  7. package/commonjs/BarChart/BarChart.js +244 -130
  8. package/commonjs/BarChart/BarChart.js.map +1 -0
  9. package/commonjs/BarChart/index.js +1 -0
  10. package/commonjs/BarChart/index.js.map +1 -0
  11. package/commonjs/Button/Button.js +1 -48
  12. package/commonjs/Button/Button.js.map +1 -0
  13. package/commonjs/Button/ButtonGroup.js +112 -182
  14. package/commonjs/Button/ButtonGroup.js.map +1 -0
  15. package/commonjs/Button/react-native-hoverable.d.js +1 -0
  16. package/commonjs/Button/react-native-hoverable.d.js.map +1 -0
  17. package/commonjs/Calendar/Calendar.base.js +1 -90
  18. package/commonjs/Calendar/Calendar.base.js.map +1 -0
  19. package/commonjs/Calendar/Calendar.js +52 -122
  20. package/commonjs/Calendar/Calendar.js.map +1 -0
  21. package/commonjs/Calendar/ConcreteTimeSelector.js +1 -126
  22. package/commonjs/Calendar/ConcreteTimeSelector.js.map +1 -0
  23. package/commonjs/Calendar/CustomRange.js +204 -277
  24. package/commonjs/Calendar/CustomRange.js.map +1 -0
  25. package/commonjs/Calendar/DaySelector.js +56 -116
  26. package/commonjs/Calendar/DaySelector.js.map +1 -0
  27. package/commonjs/Calendar/MonthSelector.js +1 -64
  28. package/commonjs/Calendar/MonthSelector.js.map +1 -0
  29. package/commonjs/Calendar/TimeSelector.js +152 -224
  30. package/commonjs/Calendar/TimeSelector.js.map +1 -0
  31. package/commonjs/Calendar/WeekDaySelector.js +57 -118
  32. package/commonjs/Calendar/WeekDaySelector.js.map +1 -0
  33. package/commonjs/Calendar/helper.js +56 -86
  34. package/commonjs/Calendar/helper.js.map +1 -0
  35. package/commonjs/Calendar/local.js +1 -0
  36. package/commonjs/Calendar/local.js.map +1 -0
  37. package/commonjs/Calendar/types.js +1 -0
  38. package/commonjs/Calendar/types.js.map +1 -0
  39. package/commonjs/Card/Card.js +1 -0
  40. package/commonjs/Card/Card.js.map +1 -0
  41. package/commonjs/CheckBox/CheckBox.js +42 -101
  42. package/commonjs/CheckBox/CheckBox.js.map +1 -0
  43. package/commonjs/CheckBox/CheckBoxItem.js +1 -0
  44. package/commonjs/CheckBox/CheckBoxItem.js.map +1 -0
  45. package/commonjs/CheckBox/GroupCheckBox.js +1 -45
  46. package/commonjs/CheckBox/GroupCheckBox.js.map +1 -0
  47. package/commonjs/CircularProgress/CircularProgress.js +24 -25
  48. package/commonjs/CircularProgress/CircularProgress.js.map +1 -0
  49. package/commonjs/Collapsible/Collapsible.js +1 -32
  50. package/commonjs/Collapsible/Collapsible.js.map +1 -0
  51. package/commonjs/ComboChart/ComboChart.js +165 -0
  52. package/commonjs/ComboChart/ComboChart.js.map +1 -0
  53. package/commonjs/ComboChart/index.js +13 -0
  54. package/commonjs/ComboChart/index.js.map +1 -0
  55. package/commonjs/DashboardCard/DashboardCard.js +58 -111
  56. package/commonjs/DashboardCard/DashboardCard.js.map +1 -0
  57. package/commonjs/DataCell/DataCell.js +206 -259
  58. package/commonjs/DataCell/DataCell.js.map +1 -0
  59. package/commonjs/DataCell/index.js +10 -14
  60. package/commonjs/DataCell/index.js.map +1 -0
  61. package/commonjs/DataTable/DataTable.js +71 -144
  62. package/commonjs/DataTable/DataTable.js.map +1 -0
  63. package/commonjs/DataTable/index.js +3 -3
  64. package/commonjs/DataTable/index.js.map +1 -0
  65. package/commonjs/DeviceSelectionModal/DeviceSelectionModal.js +1 -54
  66. package/commonjs/DeviceSelectionModal/DeviceSelectionModal.js.map +1 -0
  67. package/commonjs/DraggableFlatList/DraggableFlatList.js +1 -0
  68. package/commonjs/DraggableFlatList/DraggableFlatList.js.map +1 -0
  69. package/commonjs/Drawer/Drawer.js +137 -153
  70. package/commonjs/Drawer/Drawer.js.map +1 -0
  71. package/commonjs/Dropdown/CustomDropdown.js +165 -207
  72. package/commonjs/Dropdown/CustomDropdown.js.map +1 -0
  73. package/commonjs/Dropdown/Dropdown.js +423 -500
  74. package/commonjs/Dropdown/Dropdown.js.map +1 -0
  75. package/commonjs/Dropdown/InputDropdown.js +1 -51
  76. package/commonjs/Dropdown/InputDropdown.js.map +1 -0
  77. package/commonjs/ExternalLink/ExternalLink.js +46 -193
  78. package/commonjs/ExternalLink/ExternalLink.js.map +1 -0
  79. package/commonjs/Gantt/Accessories.js +157 -171
  80. package/commonjs/Gantt/Accessories.js.map +1 -0
  81. package/commonjs/Gantt/Gantt.js +1 -71
  82. package/commonjs/Gantt/Gantt.js.map +1 -0
  83. package/commonjs/Gantt/GanttInnerElementType.js +1 -53
  84. package/commonjs/Gantt/GanttInnerElementType.js.map +1 -0
  85. package/commonjs/Gantt/helper.js +137 -130
  86. package/commonjs/Gantt/helper.js.map +1 -0
  87. package/commonjs/Gantt/types.js +1 -0
  88. package/commonjs/Gantt/types.js.map +1 -0
  89. package/commonjs/Grid/FixedSizeGrid.js +74 -82
  90. package/commonjs/Grid/FixedSizeGrid.js.map +1 -0
  91. package/commonjs/Grid/Grid.base.js +1 -81
  92. package/commonjs/Grid/Grid.base.js.map +1 -0
  93. package/commonjs/Grid/StaticFixedSizeGrid.js +217 -277
  94. package/commonjs/Grid/StaticFixedSizeGrid.js.map +1 -0
  95. package/commonjs/Grid/VariableSizeGrid.js +105 -119
  96. package/commonjs/Grid/VariableSizeGrid.js.map +1 -0
  97. package/commonjs/Grid/helper.js +1 -3
  98. package/commonjs/Grid/helper.js.map +1 -0
  99. package/commonjs/Grid/timer.js +5 -8
  100. package/commonjs/Grid/timer.js.map +1 -0
  101. package/commonjs/Header/Header.js +131 -195
  102. package/commonjs/Header/Header.js.map +1 -0
  103. package/commonjs/HelloWave/HelloWave.js +1 -30
  104. package/commonjs/HelloWave/HelloWave.js.map +1 -0
  105. package/commonjs/Hoverable/Hoverable.js +1 -58
  106. package/commonjs/Hoverable/Hoverable.js.map +1 -0
  107. package/commonjs/IconText/IconText.js +1 -46
  108. package/commonjs/IconText/IconText.js.map +1 -0
  109. package/commonjs/Icons/TapasIcon.js +1 -55
  110. package/commonjs/Icons/TapasIcon.js.map +1 -0
  111. package/commonjs/Icons/TapasIconExpo.js +1 -51
  112. package/commonjs/Icons/TapasIconExpo.js.map +1 -0
  113. package/commonjs/Icons/expoFontLoader.js +1 -148
  114. package/commonjs/Icons/expoFontLoader.js.map +1 -0
  115. package/commonjs/Icons/fontLoader.js +148 -318
  116. package/commonjs/Icons/fontLoader.js.map +1 -0
  117. package/commonjs/Icons/index.js +1 -11
  118. package/commonjs/Icons/index.js.map +1 -0
  119. package/commonjs/Icons/smartFontLoader.js +189 -376
  120. package/commonjs/Icons/smartFontLoader.js.map +1 -0
  121. package/commonjs/Image/Image.js +78 -138
  122. package/commonjs/Image/Image.js.map +1 -0
  123. package/commonjs/Image/PreviewImg.js +46 -98
  124. package/commonjs/Image/PreviewImg.js.map +1 -0
  125. package/commonjs/Input/Input.js +1 -37
  126. package/commonjs/Input/Input.js.map +1 -0
  127. package/commonjs/Layout/DrawerContext.js +1 -34
  128. package/commonjs/Layout/DrawerContext.js.map +1 -0
  129. package/commonjs/Layout/Layout.js +1 -27
  130. package/commonjs/Layout/Layout.js.map +1 -0
  131. package/commonjs/Layout/ToastContext.js +19 -67
  132. package/commonjs/Layout/ToastContext.js.map +1 -0
  133. package/commonjs/Layout/index.js +35 -37
  134. package/commonjs/Layout/index.js.map +1 -0
  135. package/commonjs/LineChart/LineChart.js +108 -132
  136. package/commonjs/LineChart/LineChart.js.map +1 -0
  137. package/commonjs/LineChart/index.js +1 -0
  138. package/commonjs/LineChart/index.js.map +1 -0
  139. package/commonjs/ListItem/ListItem.js +66 -132
  140. package/commonjs/ListItem/ListItem.js.map +1 -0
  141. package/commonjs/Loading/Loading.js +42 -83
  142. package/commonjs/Loading/Loading.js.map +1 -0
  143. package/commonjs/MessageBox/MessageBox.js +1 -50
  144. package/commonjs/MessageBox/MessageBox.js.map +1 -0
  145. package/commonjs/MultiSelector/MultiSelector.js +136 -226
  146. package/commonjs/MultiSelector/MultiSelector.js.map +1 -0
  147. package/commonjs/MultiSelector/index.js +1 -2
  148. package/commonjs/MultiSelector/index.js.map +1 -0
  149. package/commonjs/Navigation/Navigation.js +90 -157
  150. package/commonjs/Navigation/Navigation.js.map +1 -0
  151. package/commonjs/Notification/Notification.js +1 -0
  152. package/commonjs/Notification/Notification.js.map +1 -0
  153. package/commonjs/Notification/index.js +1 -2
  154. package/commonjs/Notification/index.js.map +1 -0
  155. package/commonjs/NumericInput/NumericInput.js +56 -92
  156. package/commonjs/NumericInput/NumericInput.js.map +1 -0
  157. package/commonjs/Overlay/Overlay.js +25 -45
  158. package/commonjs/Overlay/Overlay.js.map +1 -0
  159. package/commonjs/Pagination/Pagination.js +1 -0
  160. package/commonjs/Pagination/Pagination.js.map +1 -0
  161. package/commonjs/PieChart/PieChart.js +81 -48
  162. package/commonjs/PieChart/PieChart.js.map +1 -0
  163. package/commonjs/PieChart/index.js +1 -0
  164. package/commonjs/PieChart/index.js.map +1 -0
  165. package/commonjs/Popover/Popover.js +1 -45
  166. package/commonjs/Popover/Popover.js.map +1 -0
  167. package/commonjs/Progress/Progress.js +1 -0
  168. package/commonjs/Progress/Progress.js.map +1 -0
  169. package/commonjs/Quantity/Quantity.js +1 -69
  170. package/commonjs/Quantity/Quantity.js.map +1 -0
  171. package/commonjs/Quantity/index.js +4 -8
  172. package/commonjs/Quantity/index.js.map +1 -0
  173. package/commonjs/RadioButton/RadioButton.js +47 -94
  174. package/commonjs/RadioButton/RadioButton.js.map +1 -0
  175. package/commonjs/ReasonModal/ReasonModal.js +1 -69
  176. package/commonjs/ReasonModal/ReasonModal.js.map +1 -0
  177. package/commonjs/ReasonModal/index.js +10 -14
  178. package/commonjs/ReasonModal/index.js.map +1 -0
  179. package/commonjs/ScanButton/ScanButton.js +1 -27
  180. package/commonjs/ScanButton/ScanButton.js.map +1 -0
  181. package/commonjs/SearchInput/SearchInput.js +1 -60
  182. package/commonjs/SearchInput/SearchInput.js.map +1 -0
  183. package/commonjs/SearchInput/index.js +4 -8
  184. package/commonjs/SearchInput/index.js.map +1 -0
  185. package/commonjs/SheetTitle/SheetTitle.js +32 -34
  186. package/commonjs/SheetTitle/SheetTitle.js.map +1 -0
  187. package/commonjs/Shell/Shell.js +67 -120
  188. package/commonjs/Shell/Shell.js.map +1 -0
  189. package/commonjs/Shell/styles.js +3 -2
  190. package/commonjs/Shell/styles.js.map +1 -0
  191. package/commonjs/Shell/types.js +2 -1
  192. package/commonjs/Shell/types.js.map +1 -0
  193. package/commonjs/StatisticCard/StatisticCard.js +1 -12
  194. package/commonjs/StatisticCard/StatisticCard.js.map +1 -0
  195. package/commonjs/StatisticCard/index.js +1 -0
  196. package/commonjs/StatisticCard/index.js.map +1 -0
  197. package/commonjs/Status/Status.js +1 -16
  198. package/commonjs/Status/Status.js.map +1 -0
  199. package/commonjs/Steps/Steps.js +40 -43
  200. package/commonjs/Steps/Steps.js.map +1 -0
  201. package/commonjs/TabTitle/TabTitle.js +1 -33
  202. package/commonjs/TabTitle/TabTitle.js.map +1 -0
  203. package/commonjs/TabTitle/index.js +10 -14
  204. package/commonjs/TabTitle/index.js.map +1 -0
  205. package/commonjs/TableColumnHeader/TableColumnHeader.js +90 -154
  206. package/commonjs/TableColumnHeader/TableColumnHeader.js.map +1 -0
  207. package/commonjs/TableColumnHeader/index.js +10 -14
  208. package/commonjs/TableColumnHeader/index.js.map +1 -0
  209. package/commonjs/Tag/Tag.js +35 -88
  210. package/commonjs/Tag/Tag.js.map +1 -0
  211. package/commonjs/Task/Task.js +118 -124
  212. package/commonjs/Task/Task.js.map +1 -0
  213. package/commonjs/Task/type.js +1 -0
  214. package/commonjs/Task/type.js.map +1 -0
  215. package/commonjs/Text/Text.js +38 -103
  216. package/commonjs/Text/Text.js.map +1 -0
  217. package/commonjs/TextArea/TextArea.js +1 -81
  218. package/commonjs/TextArea/TextArea.js.map +1 -0
  219. package/commonjs/Theme/ThemeProvider.js +1 -0
  220. package/commonjs/Theme/ThemeProvider.js.map +1 -0
  221. package/commonjs/Theme/defaultTheme.js +1 -12
  222. package/commonjs/Theme/defaultTheme.js.map +1 -0
  223. package/commonjs/Theme/themed.d.js +1 -0
  224. package/commonjs/Theme/themed.d.js.map +1 -0
  225. package/commonjs/Timeline/Timeline.js +1 -0
  226. package/commonjs/Timeline/Timeline.js.map +1 -0
  227. package/commonjs/Toast/Toast.js +42 -94
  228. package/commonjs/Toast/Toast.js.map +1 -0
  229. package/commonjs/UserSwitcher/UserSwitcher.js +1 -76
  230. package/commonjs/UserSwitcher/UserSwitcher.js.map +1 -0
  231. package/commonjs/UserSwitcher/index.js +1 -0
  232. package/commonjs/UserSwitcher/index.js.map +1 -0
  233. package/commonjs/WordCloud/WordCloud.js +186 -0
  234. package/commonjs/WordCloud/WordCloud.js.map +1 -0
  235. package/commonjs/WordCloud/index.js +13 -0
  236. package/commonjs/WordCloud/index.js.map +1 -0
  237. package/commonjs/common.js +1 -0
  238. package/commonjs/common.js.map +1 -0
  239. package/commonjs/index.js +439 -331
  240. package/commonjs/index.js.map +1 -0
  241. package/module/Alert/Alert.js +1 -76
  242. package/module/Alert/Alert.js.map +1 -0
  243. package/module/AnimatedNavItem/AnimatedNavItem.js +78 -149
  244. package/module/AnimatedNavItem/AnimatedNavItem.js.map +1 -0
  245. package/module/AnimatedNavItem/index.js +1 -24
  246. package/module/AnimatedNavItem/index.js.map +1 -0
  247. package/module/BarChart/BarChart.js +171 -94
  248. package/module/BarChart/BarChart.js.map +1 -0
  249. package/module/BarChart/index.js +2 -13
  250. package/module/BarChart/index.js.map +1 -0
  251. package/module/Button/Button.js +1 -67
  252. package/module/Button/Button.js.map +1 -0
  253. package/module/Button/ButtonGroup.js +1 -88
  254. package/module/Button/ButtonGroup.js.map +1 -0
  255. package/module/Button/react-native-hoverable.d.js +1 -0
  256. package/module/Button/react-native-hoverable.d.js.map +1 -0
  257. package/module/Calendar/Calendar.base.js +1 -147
  258. package/module/Calendar/Calendar.base.js.map +1 -0
  259. package/module/Calendar/Calendar.js +47 -126
  260. package/module/Calendar/Calendar.js.map +1 -0
  261. package/module/Calendar/ConcreteTimeSelector.js +1 -172
  262. package/module/Calendar/ConcreteTimeSelector.js.map +1 -0
  263. package/module/Calendar/CustomRange.js +199 -281
  264. package/module/Calendar/CustomRange.js.map +1 -0
  265. package/module/Calendar/DaySelector.js +52 -121
  266. package/module/Calendar/DaySelector.js.map +1 -0
  267. package/module/Calendar/MonthSelector.js +1 -94
  268. package/module/Calendar/MonthSelector.js.map +1 -0
  269. package/module/Calendar/TimeSelector.js +1 -173
  270. package/module/Calendar/TimeSelector.js.map +1 -0
  271. package/module/Calendar/WeekDaySelector.js +53 -123
  272. package/module/Calendar/WeekDaySelector.js.map +1 -0
  273. package/module/Calendar/helper.js +1 -44
  274. package/module/Calendar/helper.js.map +1 -0
  275. package/module/Calendar/local.js +2 -7
  276. package/module/Calendar/local.js.map +1 -0
  277. package/module/Calendar/types.js +10 -15
  278. package/module/Calendar/types.js.map +1 -0
  279. package/module/Card/Card.js +155 -236
  280. package/module/Card/Card.js.map +1 -0
  281. package/module/CheckBox/CheckBox.js +38 -106
  282. package/module/CheckBox/CheckBox.js.map +1 -0
  283. package/module/CheckBox/CheckBoxItem.js +33 -91
  284. package/module/CheckBox/CheckBoxItem.js.map +1 -0
  285. package/module/CheckBox/GroupCheckBox.js +40 -107
  286. package/module/CheckBox/GroupCheckBox.js.map +1 -0
  287. package/module/CircularProgress/CircularProgress.js +1 -21
  288. package/module/CircularProgress/CircularProgress.js.map +1 -0
  289. package/module/Collapsible/Collapsible.js +52 -107
  290. package/module/Collapsible/Collapsible.js.map +1 -0
  291. package/module/ComboChart/ComboChart.js +158 -0
  292. package/module/ComboChart/ComboChart.js.map +1 -0
  293. package/module/ComboChart/index.js +2 -0
  294. package/module/ComboChart/index.js.map +1 -0
  295. package/module/DashboardCard/DashboardCard.js +54 -116
  296. package/module/DashboardCard/DashboardCard.js.map +1 -0
  297. package/module/DataCell/DataCell.js +1 -148
  298. package/module/DataCell/DataCell.js.map +1 -0
  299. package/module/DataCell/index.js +3 -31
  300. package/module/DataCell/index.js.map +1 -0
  301. package/module/DataTable/DataTable.js +1 -99
  302. package/module/DataTable/DataTable.js.map +1 -0
  303. package/module/DataTable/index.js +1 -9
  304. package/module/DataTable/index.js.map +1 -0
  305. package/module/DeviceSelectionModal/DeviceSelectionModal.js +241 -301
  306. package/module/DeviceSelectionModal/DeviceSelectionModal.js.map +1 -0
  307. package/module/DraggableFlatList/DraggableFlatList.js +1 -0
  308. package/module/DraggableFlatList/DraggableFlatList.js.map +1 -0
  309. package/module/Drawer/Drawer.js +1 -51
  310. package/module/Drawer/Drawer.js.map +1 -0
  311. package/module/Dropdown/CustomDropdown.js +1 -55
  312. package/module/Dropdown/CustomDropdown.js.map +1 -0
  313. package/module/Dropdown/Dropdown.js +408 -504
  314. package/module/Dropdown/Dropdown.js.map +1 -0
  315. package/module/Dropdown/InputDropdown.js +66 -146
  316. package/module/Dropdown/InputDropdown.js.map +1 -0
  317. package/module/ExternalLink/ExternalLink.js +1 -149
  318. package/module/ExternalLink/ExternalLink.js.map +1 -0
  319. package/module/Gantt/Accessories.js +1 -85
  320. package/module/Gantt/Accessories.js.map +1 -0
  321. package/module/Gantt/Gantt.js +119 -198
  322. package/module/Gantt/Gantt.js.map +1 -0
  323. package/module/Gantt/GanttInnerElementType.js +62 -133
  324. package/module/Gantt/GanttInnerElementType.js.map +1 -0
  325. package/module/Gantt/helper.js +1 -45
  326. package/module/Gantt/helper.js.map +1 -0
  327. package/module/Gantt/types.js +1 -1
  328. package/module/Gantt/types.js.map +1 -0
  329. package/module/Grid/FixedSizeGrid.js +1 -21
  330. package/module/Grid/FixedSizeGrid.js.map +1 -0
  331. package/module/Grid/Grid.base.js +1 -84
  332. package/module/Grid/Grid.base.js.map +1 -0
  333. package/module/Grid/StaticFixedSizeGrid.js +213 -282
  334. package/module/Grid/StaticFixedSizeGrid.js.map +1 -0
  335. package/module/Grid/VariableSizeGrid.js +1 -24
  336. package/module/Grid/VariableSizeGrid.js.map +1 -0
  337. package/module/Grid/helper.js +14 -19
  338. package/module/Grid/helper.js.map +1 -0
  339. package/module/Grid/timer.js +1 -8
  340. package/module/Grid/timer.js.map +1 -0
  341. package/module/Header/Header.js +127 -199
  342. package/module/Header/Header.js.map +1 -0
  343. package/module/HelloWave/HelloWave.js +1 -40
  344. package/module/HelloWave/HelloWave.js.map +1 -0
  345. package/module/Hoverable/Hoverable.js +27 -105
  346. package/module/Hoverable/Hoverable.js.map +1 -0
  347. package/module/IconText/IconText.js +43 -73
  348. package/module/IconText/IconText.js.map +1 -0
  349. package/module/Icons/TapasIcon.js +1 -85
  350. package/module/Icons/TapasIcon.js.map +1 -0
  351. package/module/Icons/TapasIconExpo.js +45 -112
  352. package/module/Icons/TapasIconExpo.js.map +1 -0
  353. package/module/Icons/expoFontLoader.js +1 -154
  354. package/module/Icons/expoFontLoader.js.map +1 -0
  355. package/module/Icons/fontLoader.js +1 -208
  356. package/module/Icons/fontLoader.js.map +1 -0
  357. package/module/Icons/index.js +1 -55
  358. package/module/Icons/index.js.map +1 -0
  359. package/module/Icons/smartFontLoader.js +189 -383
  360. package/module/Icons/smartFontLoader.js.map +1 -0
  361. package/module/Image/Image.js +1 -92
  362. package/module/Image/Image.js.map +1 -0
  363. package/module/Image/PreviewImg.js +42 -103
  364. package/module/Image/PreviewImg.js.map +1 -0
  365. package/module/Input/Input.js +1 -73
  366. package/module/Input/Input.js.map +1 -0
  367. package/module/Layout/DrawerContext.js +1 -68
  368. package/module/Layout/DrawerContext.js.map +1 -0
  369. package/module/Layout/Layout.js +80 -145
  370. package/module/Layout/Layout.js.map +1 -0
  371. package/module/Layout/ToastContext.js +1 -69
  372. package/module/Layout/ToastContext.js.map +1 -0
  373. package/module/Layout/index.js +15 -47
  374. package/module/Layout/index.js.map +1 -0
  375. package/module/LineChart/LineChart.js +107 -138
  376. package/module/LineChart/LineChart.js.map +1 -0
  377. package/module/LineChart/index.js +1 -9
  378. package/module/LineChart/index.js.map +1 -0
  379. package/module/ListItem/ListItem.js +1 -68
  380. package/module/ListItem/ListItem.js.map +1 -0
  381. package/module/Loading/Loading.js +1 -47
  382. package/module/Loading/Loading.js.map +1 -0
  383. package/module/MessageBox/MessageBox.js +1 -97
  384. package/module/MessageBox/MessageBox.js.map +1 -0
  385. package/module/MultiSelector/MultiSelector.js +131 -230
  386. package/module/MultiSelector/MultiSelector.js.map +1 -0
  387. package/module/MultiSelector/index.js +1 -15
  388. package/module/MultiSelector/index.js.map +1 -0
  389. package/module/Navigation/Navigation.js +1 -91
  390. package/module/Navigation/Navigation.js.map +1 -0
  391. package/module/Notification/Notification.js +64 -140
  392. package/module/Notification/Notification.js.map +1 -0
  393. package/module/Notification/index.js +1 -15
  394. package/module/Notification/index.js.map +1 -0
  395. package/module/NumericInput/NumericInput.js +1 -0
  396. package/module/NumericInput/NumericInput.js.map +1 -0
  397. package/module/Overlay/Overlay.js +1 -28
  398. package/module/Overlay/Overlay.js.map +1 -0
  399. package/module/Pagination/Pagination.js +1 -71
  400. package/module/Pagination/Pagination.js.map +1 -0
  401. package/module/PieChart/PieChart.js +132 -84
  402. package/module/PieChart/PieChart.js.map +1 -0
  403. package/module/PieChart/index.js +1 -9
  404. package/module/PieChart/index.js.map +1 -0
  405. package/module/Popover/Popover.js +1 -0
  406. package/module/Popover/Popover.js.map +1 -0
  407. package/module/Progress/Progress.js +48 -57
  408. package/module/Progress/Progress.js.map +1 -0
  409. package/module/Quantity/Quantity.js +49 -132
  410. package/module/Quantity/Quantity.js.map +1 -0
  411. package/module/Quantity/index.js +2 -18
  412. package/module/Quantity/index.js.map +1 -0
  413. package/module/RadioButton/RadioButton.js +1 -81
  414. package/module/RadioButton/RadioButton.js.map +1 -0
  415. package/module/ReasonModal/ReasonModal.js +117 -190
  416. package/module/ReasonModal/ReasonModal.js.map +1 -0
  417. package/module/ReasonModal/index.js +3 -31
  418. package/module/ReasonModal/index.js.map +1 -0
  419. package/module/ScanButton/ScanButton.js +1 -44
  420. package/module/ScanButton/ScanButton.js.map +1 -0
  421. package/module/SearchInput/SearchInput.js +75 -158
  422. package/module/SearchInput/SearchInput.js.map +1 -0
  423. package/module/SearchInput/index.js +2 -18
  424. package/module/SearchInput/index.js.map +1 -0
  425. package/module/SheetTitle/SheetTitle.js +1 -0
  426. package/module/SheetTitle/SheetTitle.js.map +1 -0
  427. package/module/Shell/Shell.js +1 -76
  428. package/module/Shell/Shell.js.map +1 -0
  429. package/module/Shell/styles.js +1 -5
  430. package/module/Shell/styles.js.map +1 -0
  431. package/module/Shell/types.js +2 -7
  432. package/module/Shell/types.js.map +1 -0
  433. package/module/StatisticCard/StatisticCard.js +34 -48
  434. package/module/StatisticCard/StatisticCard.js.map +1 -0
  435. package/module/StatisticCard/index.js +1 -7
  436. package/module/StatisticCard/index.js.map +1 -0
  437. package/module/Status/Status.js +1 -30
  438. package/module/Status/Status.js.map +1 -0
  439. package/module/Steps/Steps.js +38 -48
  440. package/module/Steps/Steps.js.map +1 -0
  441. package/module/TabTitle/TabTitle.js +1 -41
  442. package/module/TabTitle/TabTitle.js.map +1 -0
  443. package/module/TabTitle/index.js +1 -27
  444. package/module/TabTitle/index.js.map +1 -0
  445. package/module/TableColumnHeader/TableColumnHeader.js +88 -159
  446. package/module/TableColumnHeader/TableColumnHeader.js.map +1 -0
  447. package/module/TableColumnHeader/index.js +3 -31
  448. package/module/TableColumnHeader/index.js.map +1 -0
  449. package/module/Tag/Tag.js +31 -93
  450. package/module/Tag/Tag.js.map +1 -0
  451. package/module/Task/Task.js +1 -107
  452. package/module/Task/Task.js.map +1 -0
  453. package/module/Task/type.js +4 -9
  454. package/module/Task/type.js.map +1 -0
  455. package/module/Text/Text.js +1 -64
  456. package/module/Text/Text.js.map +1 -0
  457. package/module/TextArea/TextArea.js +1 -118
  458. package/module/TextArea/TextArea.js.map +1 -0
  459. package/module/Theme/ThemeProvider.js +1 -11
  460. package/module/Theme/ThemeProvider.js.map +1 -0
  461. package/module/Theme/defaultTheme.js +1 -19
  462. package/module/Theme/defaultTheme.js.map +1 -0
  463. package/module/Theme/themed.d.js +1 -0
  464. package/module/Theme/themed.d.js.map +1 -0
  465. package/module/Timeline/Timeline.js +1 -53
  466. package/module/Timeline/Timeline.js.map +1 -0
  467. package/module/Toast/Toast.js +38 -100
  468. package/module/Toast/Toast.js.map +1 -0
  469. package/module/UserSwitcher/UserSwitcher.js +119 -199
  470. package/module/UserSwitcher/UserSwitcher.js.map +1 -0
  471. package/module/UserSwitcher/index.js +1 -26
  472. package/module/UserSwitcher/index.js.map +1 -0
  473. package/module/WordCloud/WordCloud.js +179 -0
  474. package/module/WordCloud/WordCloud.js.map +1 -0
  475. package/module/WordCloud/index.js +2 -0
  476. package/module/WordCloud/index.js.map +1 -0
  477. package/module/common.js +4 -10
  478. package/module/common.js.map +1 -0
  479. package/module/index.js +3 -602
  480. package/module/index.js.map +1 -0
  481. package/package.json +1 -1
  482. package/typescript/Alert/Alert.d.ts.map +1 -0
  483. package/typescript/AnimatedNavItem/AnimatedNavItem.d.ts.map +1 -0
  484. package/typescript/AnimatedNavItem/index.d.ts.map +1 -0
  485. package/typescript/BarChart/BarChart.d.ts +11 -1
  486. package/typescript/BarChart/BarChart.d.ts.map +1 -0
  487. package/typescript/BarChart/index.d.ts.map +1 -0
  488. package/typescript/Button/Button.d.ts.map +1 -0
  489. package/typescript/Button/ButtonGroup.d.ts.map +1 -0
  490. package/typescript/Calendar/Calendar.base.d.ts.map +1 -0
  491. package/typescript/Calendar/Calendar.d.ts.map +1 -0
  492. package/typescript/Calendar/ConcreteTimeSelector.d.ts.map +1 -0
  493. package/typescript/Calendar/CustomRange.d.ts.map +1 -0
  494. package/typescript/Calendar/DaySelector.d.ts.map +1 -0
  495. package/typescript/Calendar/MonthSelector.d.ts.map +1 -0
  496. package/typescript/Calendar/TimeSelector.d.ts.map +1 -0
  497. package/typescript/Calendar/WeekDaySelector.d.ts.map +1 -0
  498. package/typescript/Calendar/helper.d.ts.map +1 -0
  499. package/typescript/Calendar/local.d.ts.map +1 -0
  500. package/typescript/Calendar/types.d.ts.map +1 -0
  501. package/typescript/Card/Card.d.ts.map +1 -0
  502. package/typescript/CheckBox/CheckBox.d.ts.map +1 -0
  503. package/typescript/CheckBox/CheckBoxItem.d.ts.map +1 -0
  504. package/typescript/CheckBox/GroupCheckBox.d.ts.map +1 -0
  505. package/typescript/CircularProgress/CircularProgress.d.ts.map +1 -0
  506. package/typescript/Collapsible/Collapsible.d.ts.map +1 -0
  507. package/typescript/ComboChart/ComboChart.d.ts +22 -0
  508. package/typescript/ComboChart/ComboChart.d.ts.map +1 -0
  509. package/typescript/ComboChart/index.d.ts +3 -0
  510. package/typescript/ComboChart/index.d.ts.map +1 -0
  511. package/typescript/DashboardCard/DashboardCard.d.ts.map +1 -0
  512. package/typescript/DataCell/DataCell.d.ts.map +1 -0
  513. package/typescript/DataCell/index.d.ts.map +1 -0
  514. package/typescript/DataTable/DataTable.d.ts.map +1 -0
  515. package/typescript/DataTable/index.d.ts.map +1 -0
  516. package/typescript/DeviceSelectionModal/DeviceSelectionModal.d.ts.map +1 -0
  517. package/typescript/DraggableFlatList/DraggableFlatList.d.ts.map +1 -0
  518. package/typescript/Drawer/Drawer.d.ts.map +1 -0
  519. package/typescript/Dropdown/CustomDropdown.d.ts.map +1 -0
  520. package/typescript/Dropdown/Dropdown.d.ts.map +1 -0
  521. package/typescript/Dropdown/InputDropdown.d.ts.map +1 -0
  522. package/typescript/ExternalLink/ExternalLink.d.ts.map +1 -0
  523. package/typescript/Gantt/Accessories.d.ts.map +1 -0
  524. package/typescript/Gantt/Gantt.d.ts.map +1 -0
  525. package/typescript/Gantt/GanttInnerElementType.d.ts.map +1 -0
  526. package/typescript/Gantt/helper.d.ts.map +1 -0
  527. package/typescript/Gantt/types.d.ts.map +1 -0
  528. package/typescript/Grid/FixedSizeGrid.d.ts.map +1 -0
  529. package/typescript/Grid/Grid.base.d.ts.map +1 -0
  530. package/typescript/Grid/StaticFixedSizeGrid.d.ts.map +1 -0
  531. package/typescript/Grid/VariableSizeGrid.d.ts.map +1 -0
  532. package/typescript/Grid/helper.d.ts.map +1 -0
  533. package/typescript/Grid/timer.d.ts.map +1 -0
  534. package/typescript/Header/Header.d.ts.map +1 -0
  535. package/typescript/HelloWave/HelloWave.d.ts.map +1 -0
  536. package/typescript/Hoverable/Hoverable.d.ts.map +1 -0
  537. package/typescript/IconText/IconText.d.ts.map +1 -0
  538. package/typescript/Icons/TapasIcon.d.ts.map +1 -0
  539. package/typescript/Icons/TapasIconExpo.d.ts.map +1 -0
  540. package/typescript/Icons/expoFontLoader.d.ts.map +1 -0
  541. package/typescript/Icons/fontLoader.d.ts.map +1 -0
  542. package/typescript/Icons/index.d.ts.map +1 -0
  543. package/typescript/Icons/smartFontLoader.d.ts.map +1 -0
  544. package/typescript/Image/Image.d.ts.map +1 -0
  545. package/typescript/Image/PreviewImg.d.ts.map +1 -0
  546. package/typescript/Input/Input.d.ts.map +1 -0
  547. package/typescript/Layout/DrawerContext.d.ts.map +1 -0
  548. package/typescript/Layout/Layout.d.ts.map +1 -0
  549. package/typescript/Layout/ToastContext.d.ts.map +1 -0
  550. package/typescript/Layout/index.d.ts.map +1 -0
  551. package/typescript/LineChart/LineChart.d.ts.map +1 -0
  552. package/typescript/LineChart/index.d.ts.map +1 -0
  553. package/typescript/ListItem/ListItem.d.ts.map +1 -0
  554. package/typescript/Loading/Loading.d.ts.map +1 -0
  555. package/typescript/MessageBox/MessageBox.d.ts.map +1 -0
  556. package/typescript/MultiSelector/MultiSelector.d.ts.map +1 -0
  557. package/typescript/MultiSelector/index.d.ts.map +1 -0
  558. package/typescript/Navigation/Navigation.d.ts.map +1 -0
  559. package/typescript/Notification/Notification.d.ts.map +1 -0
  560. package/typescript/Notification/index.d.ts.map +1 -0
  561. package/typescript/NumericInput/NumericInput.d.ts.map +1 -0
  562. package/typescript/Overlay/Overlay.d.ts.map +1 -0
  563. package/typescript/Pagination/Pagination.d.ts.map +1 -0
  564. package/typescript/PieChart/PieChart.d.ts.map +1 -0
  565. package/typescript/PieChart/index.d.ts.map +1 -0
  566. package/typescript/Popover/Popover.d.ts.map +1 -0
  567. package/typescript/Progress/Progress.d.ts.map +1 -0
  568. package/typescript/Quantity/Quantity.d.ts.map +1 -0
  569. package/typescript/Quantity/index.d.ts.map +1 -0
  570. package/typescript/RadioButton/RadioButton.d.ts.map +1 -0
  571. package/typescript/ReasonModal/ReasonModal.d.ts.map +1 -0
  572. package/typescript/ReasonModal/index.d.ts.map +1 -0
  573. package/typescript/ScanButton/ScanButton.d.ts.map +1 -0
  574. package/typescript/SearchInput/SearchInput.d.ts.map +1 -0
  575. package/typescript/SearchInput/index.d.ts.map +1 -0
  576. package/typescript/SheetTitle/SheetTitle.d.ts.map +1 -0
  577. package/typescript/Shell/Shell.d.ts.map +1 -0
  578. package/typescript/Shell/styles.d.ts.map +1 -0
  579. package/typescript/Shell/types.d.ts.map +1 -0
  580. package/typescript/StatisticCard/StatisticCard.d.ts.map +1 -0
  581. package/typescript/StatisticCard/index.d.ts.map +1 -0
  582. package/typescript/Status/Status.d.ts.map +1 -0
  583. package/typescript/Steps/Steps.d.ts.map +1 -0
  584. package/typescript/TabTitle/TabTitle.d.ts.map +1 -0
  585. package/typescript/TabTitle/index.d.ts.map +1 -0
  586. package/typescript/TableColumnHeader/TableColumnHeader.d.ts.map +1 -0
  587. package/typescript/TableColumnHeader/index.d.ts.map +1 -0
  588. package/typescript/Tag/Tag.d.ts.map +1 -0
  589. package/typescript/Task/Task.d.ts.map +1 -0
  590. package/typescript/Task/type.d.ts.map +1 -0
  591. package/typescript/Text/Text.d.ts.map +1 -0
  592. package/typescript/TextArea/TextArea.d.ts.map +1 -0
  593. package/typescript/Theme/ThemeProvider.d.ts.map +1 -0
  594. package/typescript/Theme/defaultTheme.d.ts.map +1 -0
  595. package/typescript/Timeline/Timeline.d.ts.map +1 -0
  596. package/typescript/Toast/Toast.d.ts.map +1 -0
  597. package/typescript/UserSwitcher/UserSwitcher.d.ts.map +1 -0
  598. package/typescript/UserSwitcher/index.d.ts.map +1 -0
  599. package/typescript/WordCloud/WordCloud.d.ts +21 -0
  600. package/typescript/WordCloud/WordCloud.d.ts.map +1 -0
  601. package/typescript/WordCloud/index.d.ts +3 -0
  602. package/typescript/WordCloud/index.d.ts.map +1 -0
  603. package/typescript/common.d.ts.map +1 -0
  604. package/typescript/index.d.ts +5 -0
  605. package/typescript/index.d.ts.map +1 -0
@@ -1,162 +1,76 @@
1
1
  "use strict";
2
2
 
3
- var __assign = void 0 && (void 0).__assign || function () {
4
- __assign = Object.assign || function (t) {
5
- for (var s, i = 1, n = arguments.length; i < n; i++) {
6
- s = arguments[i];
7
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __createBinding = void 0 && (void 0).__createBinding || (Object.create ? function (o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = {
18
- enumerable: true,
19
- get: function () {
20
- return m[k];
21
- }
22
- };
23
- }
24
- Object.defineProperty(o, k2, desc);
25
- } : function (o, m, k, k2) {
26
- if (k2 === undefined) k2 = k;
27
- o[k2] = m[k];
28
- });
29
- var __setModuleDefault = void 0 && (void 0).__setModuleDefault || (Object.create ? function (o, v) {
30
- Object.defineProperty(o, "default", {
31
- enumerable: true,
32
- value: v
33
- });
34
- } : function (o, v) {
35
- o["default"] = v;
36
- });
37
- var __importStar = void 0 && (void 0).__importStar || function () {
38
- var ownKeys = function (o) {
39
- ownKeys = Object.getOwnPropertyNames || function (o) {
40
- var ar = [];
41
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
42
- return ar;
43
- };
44
- return ownKeys(o);
45
- };
46
- return function (mod) {
47
- if (mod && mod.__esModule) return mod;
48
- var result = {};
49
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
50
- __setModuleDefault(result, mod);
51
- return result;
52
- };
53
- }();
54
- var __spreadArray = void 0 && (void 0).__spreadArray || function (to, from, pack) {
55
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
56
- if (ar || !(i in from)) {
57
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
58
- ar[i] = from[i];
59
- }
60
- }
61
- return to.concat(ar || Array.prototype.slice.call(from));
62
- };
63
- var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
64
- return mod && mod.__esModule ? mod : {
65
- "default": mod
66
- };
67
- };
68
3
  Object.defineProperty(exports, "__esModule", {
69
4
  value: true
70
5
  });
71
- var themed_1 = require("@rneui/themed");
72
- var react_1 = __importStar(require("react"));
73
- var react_native_1 = require("react-native");
74
- var Button_1 = __importDefault(require("../Button/Button"));
75
- var types_1 = require("./types");
76
- var TapasIcon_1 = __importDefault(require("../Icons/TapasIcon"));
77
- var local_1 = require("./local");
78
- var FixedSizeGrid_1 = __importDefault(require("../Grid/FixedSizeGrid"));
79
- var helper_1 = require("./helper");
80
- var curDate = new Date();
81
- var CustomRange = function (_a) {
82
- var _b, _c, _d, _e;
83
- var backFn = _a.backFn,
84
- theme = _a.theme,
85
- attachComplete = _a.attachComplete,
86
- rangeVal = _a.rangeVal,
87
- _f = _a.languageCode,
88
- languageCode = _f === void 0 ? types_1.SupportLanguage.en : _f;
89
- var _g = (0, react_1.useState)("start"),
90
- curEditDate = _g[0],
91
- setCurEditDate = _g[1];
92
- var _h = (0, react_1.useState)(rangeVal !== null && rangeVal !== void 0 ? rangeVal : []),
93
- range = _h[0],
94
- setRnage = _h[1];
95
- var _j = (0, react_1.useState)([]),
96
- rangeDetail = _j[0],
97
- setRangeDetail = _j[1];
98
- var _k = (0, react_1.useState)(52),
99
- rowHeight = _k[0],
100
- setRowHeight = _k[1];
101
- var years = (0, helper_1.getYears)(curDate, languageCode);
102
- var _l = (0, react_1.useState)([local_1.locales[languageCode].any]),
103
- days = _l[0],
104
- setDays = _l[1];
105
- var monthes = __spreadArray([local_1.locales[languageCode].any], (_b = local_1.locales[languageCode]) === null || _b === void 0 ? void 0 : _b.monthNamesShort, true);
106
- var _m = (0, react_1.useState)(2),
107
- mid = _m[0],
108
- setMid = _m[1];
109
- var _o = (0, react_1.useState)({
110
- left: years.length + mid * 2,
111
- center: monthes.length + mid * 2,
112
- right: days.length + mid * 2
113
- }),
114
- rowCount = _o[0],
115
- setRowCount = _o[1];
116
- var _p = (0, react_1.useState)(0),
117
- selectedYear = _p[0],
118
- setSelectedYear = _p[1];
119
- var _q = (0, react_1.useState)(0),
120
- selectedMonth = _q[0],
121
- setSelectedMonth = _q[1];
122
- var _r = (0, react_1.useState)(0),
123
- selectedDay = _r[0],
124
- setSelectedDay = _r[1];
125
- var _s = (0, react_1.useState)(0),
126
- innerConWidth = _s[0],
127
- setInnerConWidth = _s[1];
128
- var _t = (0, react_1.useState)(0),
129
- innerConHeight = _t[0],
130
- setInnerConHeight = _t[1];
131
- var yearGrid = (0, react_1.useRef)(null);
132
- var monthGrid = (0, react_1.useRef)(null);
133
- var dayGrid = (0, react_1.useRef)(null);
134
- (0, react_1.useEffect)(function () {
6
+ exports.default = void 0;
7
+ var _themed = require("@rneui/themed");
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _reactNative = require("react-native");
10
+ var _Button = _interopRequireDefault(require("../Button/Button"));
11
+ var _types = require("./types");
12
+ var _TapasIcon = _interopRequireDefault(require("../Icons/TapasIcon"));
13
+ var _local = require("./local");
14
+ var _FixedSizeGrid = _interopRequireDefault(require("../Grid/FixedSizeGrid"));
15
+ var _helper = require("./helper");
16
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
18
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
+ const curDate = new Date();
20
+ const CustomRange = ({
21
+ backFn,
22
+ theme,
23
+ attachComplete,
24
+ rangeVal,
25
+ languageCode = _types.SupportLanguage.en
26
+ }) => {
27
+ const [curEditDate, setCurEditDate] = (0, _react.useState)("start");
28
+ const [range, setRnage] = (0, _react.useState)(rangeVal ?? []);
29
+ const [rangeDetail, setRangeDetail] = (0, _react.useState)([]);
30
+ const [rowHeight, setRowHeight] = (0, _react.useState)(52);
31
+ const years = (0, _helper.getYears)(curDate, languageCode);
32
+ const [days, setDays] = (0, _react.useState)([_local.locales[languageCode].any]);
33
+ const monthes = [_local.locales[languageCode].any, ..._local.locales[languageCode]?.monthNamesShort];
34
+ const [mid, setMid] = (0, _react.useState)(2);
35
+ const [rowCount, setRowCount] = (0, _react.useState)({
36
+ left: years.length + mid * 2,
37
+ center: monthes.length + mid * 2,
38
+ right: days.length + mid * 2
39
+ });
40
+ const [selectedYear, setSelectedYear] = (0, _react.useState)(0);
41
+ const [selectedMonth, setSelectedMonth] = (0, _react.useState)(0);
42
+ const [selectedDay, setSelectedDay] = (0, _react.useState)(0);
43
+ const [innerConWidth, setInnerConWidth] = (0, _react.useState)(0);
44
+ const [innerConHeight, setInnerConHeight] = (0, _react.useState)(0);
45
+ const yearGrid = (0, _react.useRef)(null);
46
+ const monthGrid = (0, _react.useRef)(null);
47
+ const dayGrid = (0, _react.useRef)(null);
48
+ (0, _react.useEffect)(() => {
135
49
  if (selectedYear > 0 && selectedMonth > mid) {
136
- setDays((0, helper_1.getDays)(new Date("".concat(selectedYear - mid === years.length - 1 ? curDate.getFullYear() : years[selectedYear - mid], "-").concat(selectedMonth - mid < 0 ? 1 : selectedMonth - mid, "-01")), languageCode));
137
- setRowCount(__assign(__assign({}, rowCount), {
50
+ setDays((0, _helper.getDays)(new Date(`${selectedYear - mid === years.length - 1 ? curDate.getFullYear() : years[selectedYear - mid]}-${selectedMonth - mid < 0 ? 1 : selectedMonth - mid}-01`), languageCode));
51
+ setRowCount({
52
+ ...rowCount,
138
53
  right: days.length + mid * 2
139
- }));
54
+ });
140
55
  }
141
56
  }, [selectedMonth, selectedYear]);
142
- (0, react_1.useEffect)(function () {
143
- var _a, _b, _c, _d;
144
- var val = "";
145
- var obj = null;
57
+ (0, _react.useEffect)(() => {
58
+ let val = "";
59
+ let obj = null;
146
60
  if (selectedMonth > mid) {
147
- var month = selectedMonth - mid < 0 ? 1 : selectedMonth - mid;
61
+ const month = selectedMonth - mid < 0 ? 1 : selectedMonth - mid;
148
62
  if (month) {
149
63
  obj = {
150
- month: month
64
+ month
151
65
  };
152
- val += local_1.locales[languageCode].monthNamesShort[month - 1];
66
+ val += _local.locales[languageCode].monthNamesShort[month - 1];
153
67
  if (selectedDay > mid) {
154
- var day = selectedDay - mid < 0 ? 1 : selectedDay - mid;
68
+ const day = selectedDay - mid < 0 ? 1 : selectedDay - mid;
155
69
  if (day) {
156
70
  if (obj) {
157
71
  obj.day = day;
158
72
  }
159
- val += " ".concat(day.toString().padStart(2, "0"));
73
+ val += ` ${day.toString().padStart(2, "0")}`;
160
74
  }
161
75
  }
162
76
  }
@@ -165,66 +79,75 @@ var CustomRange = function (_a) {
165
79
  if (val) {
166
80
  val += ", ";
167
81
  }
168
- var year = years[selectedYear - mid];
82
+ const year = years[selectedYear - mid];
169
83
  if (year) {
170
84
  val += year;
171
- obj = __assign(__assign({}, obj !== null && obj !== void 0 ? obj : {}), {
85
+ obj = {
86
+ ...(obj ?? {}),
172
87
  year: parseInt(year)
173
- });
88
+ };
174
89
  }
175
90
  }
176
91
  if (curEditDate === "start") {
177
- setRangeDetail([obj, (_a = rangeDetail[1]) !== null && _a !== void 0 ? _a : null]);
178
- setRnage([val, (_b = range[1]) !== null && _b !== void 0 ? _b : ""]);
92
+ setRangeDetail([obj, rangeDetail[1] ?? null]);
93
+ setRnage([val, range[1] ?? ""]);
179
94
  } else {
180
- setRnage([(_c = range[0]) !== null && _c !== void 0 ? _c : "", val]);
181
- setRangeDetail([(_d = rangeDetail[0]) !== null && _d !== void 0 ? _d : null, obj]);
95
+ setRnage([range[0] ?? "", val]);
96
+ setRangeDetail([rangeDetail[0] ?? null, obj]);
182
97
  }
183
98
  }, [selectedMonth, selectedYear, selectedDay]);
184
- (0, react_1.useEffect)(function () {
185
- var _a;
186
- var _b = (_a = rangeDetail[curEditDate === "start" ? 0 : 1]) !== null && _a !== void 0 ? _a : {},
187
- year = _b.year,
188
- month = _b.month,
189
- day = _b.day;
190
- var newYearIndex = year ? years.indexOf("".concat(year)) : years.length + mid * 2 - 1;
99
+ (0, _react.useEffect)(() => {
100
+ const {
101
+ year,
102
+ month,
103
+ day
104
+ } = rangeDetail[curEditDate === "start" ? 0 : 1] ?? {};
105
+ const newYearIndex = year ? years.indexOf(`${year}`) : years.length + mid * 2 - 1;
191
106
  yearGrid.current.scrollToItem({
192
107
  columnIndex: 0,
193
108
  rowIndex: newYearIndex,
194
109
  align: "auto"
195
110
  });
196
- var newMonthIndex = month ? month + mid * 2 : 0;
111
+ const newMonthIndex = month ? month + mid * 2 : 0;
197
112
  monthGrid.current.scrollToItem({
198
113
  columnIndex: 0,
199
114
  rowIndex: newMonthIndex,
200
115
  align: "auto"
201
116
  });
202
- var newDayIndex = day ? day + mid * 2 : 0;
117
+ const newDayIndex = day ? day + mid * 2 : 0;
203
118
  dayGrid.current.scrollToItem({
204
119
  columnIndex: 0,
205
120
  rowIndex: newDayIndex,
206
121
  align: "auto"
207
122
  });
208
123
  }, [curEditDate, mid]);
124
+
209
125
  // Inner Container Layout Event to set grid width and height
210
- var handleInnerConWidthLayout = function (event) {
211
- var width = event.nativeEvent.layout.width;
126
+ const handleInnerConWidthLayout = event => {
127
+ const {
128
+ width
129
+ } = event.nativeEvent.layout;
212
130
  if (innerConWidth === 0) {
213
131
  setInnerConWidth(width);
214
132
  }
215
133
  };
134
+
216
135
  // Inner Container Layout Event to set grid width and height
217
- var handleInnerConHeightLayout = function (event) {
218
- var height = event.nativeEvent.layout.height;
136
+ const handleInnerConHeightLayout = event => {
137
+ const {
138
+ height
139
+ } = event.nativeEvent.layout;
219
140
  if (innerConHeight === 0) {
220
141
  setInnerConHeight(height);
142
+
221
143
  // 矫正行高,和总行数,确保显示行为奇数, 中间行为选中行
222
- var maxRowCount = Math.floor((height - 64) / rowHeight);
223
- var adjustedRowCount = maxRowCount % 2 === 0 ? maxRowCount - 1 : maxRowCount;
224
- var newRowHeight = (height - 64) / adjustedRowCount;
144
+ const maxRowCount = Math.floor((height - 64) / rowHeight);
145
+ const adjustedRowCount = maxRowCount % 2 === 0 ? maxRowCount - 1 : maxRowCount;
146
+ const newRowHeight = (height - 64) / adjustedRowCount;
225
147
  setRowHeight(newRowHeight);
148
+
226
149
  // 设置中间行索引以及各列的选中行索引
227
- var val = Math.floor((height - 64) / 2 / newRowHeight);
150
+ const val = Math.floor((height - 64) / 2 / newRowHeight);
228
151
  setMid(val);
229
152
  setRowCount({
230
153
  left: years.length + val * 2,
@@ -236,79 +159,74 @@ var CustomRange = function (_a) {
236
159
  setSelectedYear(years.length + val * 2 - 1);
237
160
  }
238
161
  };
239
- var renderRangeText = function (key) {
240
- var _a, _b;
241
- return react_1.default.createElement(react_native_1.View, {
242
- key: key,
243
- style: key === "start" ? styles.range1 : styles.range2
244
- }, react_1.default.createElement(Button_1.default, {
245
- type: "clear",
246
- titleStyle: __assign(__assign({}, styles.rangeText), {
247
- maxWidth: (innerConWidth - 102) / 2 - 8,
248
- whiteSpace: "nowrap",
249
- textOverflow: "ellipsis",
250
- color: curEditDate === key ? theme.colors.primary : theme.colors.secondary
251
- }),
252
- buttonStyle: styles.padding4,
253
- onPress: function () {
254
- return setCurEditDate(key);
255
- }
256
- }, key === "start" ? range[0] || ((_a = local_1.locales[languageCode]) === null || _a === void 0 ? void 0 : _a.anyStartDate) : range[1] || ((_b = local_1.locales[languageCode]) === null || _b === void 0 ? void 0 : _b.anyEndDate)));
257
- };
258
- var renderListHeader = function (title) {
259
- return react_1.default.createElement(react_native_1.Text, {
260
- key: title,
261
- style: __assign(__assign({}, styles.listHeadertext), {
262
- color: theme.colors.primary,
263
- width: (innerConWidth - 20) / 3
264
- })
265
- }, title);
266
- };
267
- var YearCell = function (_a) {
268
- var rowIndex = _a.rowIndex,
269
- style = _a.style;
270
- return react_1.default.createElement(react_native_1.View, {
271
- style: style
272
- }, react_1.default.createElement(react_native_1.Text, {
273
- style: __assign(__assign({}, styles.cell), {
274
- fontSize: rowIndex === selectedYear ? 16 : 14,
275
- fontWeight: rowIndex === selectedYear ? "700" : "400",
276
- color: rowIndex === selectedYear ? theme.colors.primary : theme.colors.secondary
277
- })
278
- }, years[rowIndex - mid]));
279
- };
280
- var MonthCell = function (_a) {
281
- var rowIndex = _a.rowIndex,
282
- style = _a.style;
283
- return react_1.default.createElement(react_native_1.View, {
284
- style: style
285
- }, react_1.default.createElement(react_native_1.Text, {
286
- style: __assign(__assign({}, styles.cell), {
287
- fontSize: rowIndex === selectedMonth ? 16 : 14,
288
- fontWeight: rowIndex === selectedMonth ? "700" : "400",
289
- color: rowIndex === selectedMonth ? theme.colors.primary : theme.colors.secondary
290
- })
291
- }, monthes[rowIndex - mid]));
292
- };
293
- var DayCell = function (_a) {
294
- var rowIndex = _a.rowIndex,
295
- style = _a.style;
296
- return react_1.default.createElement(react_native_1.View, {
297
- style: style
298
- }, react_1.default.createElement(react_native_1.Text, {
299
- style: __assign(__assign({}, styles.cell), {
300
- fontSize: rowIndex === selectedDay ? 16 : 14,
301
- fontWeight: rowIndex === selectedDay ? "700" : "400",
302
- color: rowIndex === selectedDay ? theme.colors.primary : theme.colors.secondary
303
- })
304
- }, days[rowIndex - mid]));
305
- };
306
- return react_1.default.createElement(react_native_1.View, {
162
+ const renderRangeText = key => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
163
+ key: key,
164
+ style: key === "start" ? styles.range1 : styles.range2
165
+ }, /*#__PURE__*/_react.default.createElement(_Button.default, {
166
+ type: "clear",
167
+ titleStyle: {
168
+ ...styles.rangeText,
169
+ maxWidth: (innerConWidth - 102) / 2 - 8,
170
+ whiteSpace: "nowrap",
171
+ textOverflow: "ellipsis",
172
+ color: curEditDate === key ? theme.colors.primary : theme.colors.secondary
173
+ },
174
+ buttonStyle: styles.padding4,
175
+ onPress: () => setCurEditDate(key)
176
+ }, key === "start" ? range[0] || _local.locales[languageCode]?.anyStartDate : range[1] || _local.locales[languageCode]?.anyEndDate));
177
+ const renderListHeader = title => /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
178
+ key: title,
179
+ style: {
180
+ ...styles.listHeadertext,
181
+ color: theme.colors.primary,
182
+ width: (innerConWidth - 20) / 3
183
+ }
184
+ }, title);
185
+ const YearCell = ({
186
+ rowIndex,
187
+ style
188
+ }) => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
189
+ style: style
190
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
191
+ style: {
192
+ ...styles.cell,
193
+ fontSize: rowIndex === selectedYear ? 16 : 14,
194
+ fontWeight: rowIndex === selectedYear ? "700" : "400",
195
+ color: rowIndex === selectedYear ? theme.colors.primary : theme.colors.secondary
196
+ }
197
+ }, years[rowIndex - mid]));
198
+ const MonthCell = ({
199
+ rowIndex,
200
+ style
201
+ }) => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
202
+ style: style
203
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
204
+ style: {
205
+ ...styles.cell,
206
+ fontSize: rowIndex === selectedMonth ? 16 : 14,
207
+ fontWeight: rowIndex === selectedMonth ? "700" : "400",
208
+ color: rowIndex === selectedMonth ? theme.colors.primary : theme.colors.secondary
209
+ }
210
+ }, monthes[rowIndex - mid]));
211
+ const DayCell = ({
212
+ rowIndex,
213
+ style
214
+ }) => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
215
+ style: style
216
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
217
+ style: {
218
+ ...styles.cell,
219
+ fontSize: rowIndex === selectedDay ? 16 : 14,
220
+ fontWeight: rowIndex === selectedDay ? "700" : "400",
221
+ color: rowIndex === selectedDay ? theme.colors.primary : theme.colors.secondary
222
+ }
223
+ }, days[rowIndex - mid]));
224
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
307
225
  style: styles.container
308
- }, react_1.default.createElement(react_native_1.View, {
226
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
309
227
  style: styles.header,
310
228
  onLayout: handleInnerConWidthLayout
311
- }, react_1.default.createElement(Button_1.default, {
229
+ }, /*#__PURE__*/_react.default.createElement(_Button.default, {
312
230
  containerStyle: styles.backBtn,
313
231
  buttonStyle: {
314
232
  paddingTop: 4.5,
@@ -316,37 +234,41 @@ var CustomRange = function (_a) {
316
234
  },
317
235
  onPress: backFn,
318
236
  type: "clear",
319
- icon: react_1.default.createElement(TapasIcon_1.default, {
237
+ icon: /*#__PURE__*/_react.default.createElement(_TapasIcon.default, {
320
238
  size: 24,
321
239
  color: theme.colors.primary,
322
240
  name: "back"
323
241
  })
324
- }), react_1.default.createElement(react_native_1.View, {
242
+ }), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
325
243
  style: styles.rangeTextCon
326
- }, renderRangeText("start"), react_1.default.createElement(react_native_1.Text, {
327
- style: __assign(__assign({}, styles.rangeText), {
244
+ }, renderRangeText("start"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
245
+ style: {
246
+ ...styles.rangeText,
328
247
  color: theme.colors.secondary
329
- })
330
- }, "-"), renderRangeText("end")), react_1.default.createElement(react_native_1.View, {
248
+ }
249
+ }, "-"), renderRangeText("end")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
331
250
  style: styles.backBtn
332
- })), react_1.default.createElement(react_native_1.View, {
251
+ })), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
333
252
  style: styles.main,
334
253
  onLayout: handleInnerConHeightLayout
335
- }, react_1.default.createElement(react_native_1.View, {
254
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
336
255
  style: styles.listHeader
337
- }, renderListHeader(local_1.locales[languageCode].year), renderListHeader(local_1.locales[languageCode].month), renderListHeader(local_1.locales[languageCode].day)), react_1.default.createElement(react_native_1.View, {
256
+ }, renderListHeader(_local.locales[languageCode].year), renderListHeader(_local.locales[languageCode].month), renderListHeader(_local.locales[languageCode].day)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
338
257
  style: styles.flatlistCon
339
- }, react_1.default.createElement(react_native_1.View, {
258
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
340
259
  key: "year-grid",
341
- style: __assign(__assign({}, styles.scrollCon), {
260
+ style: {
261
+ ...styles.scrollCon,
342
262
  backgroundColor: theme.colors.grey5,
343
263
  borderTopLeftRadius: 8,
344
264
  borderBottomLeftRadius: 8
345
- })
346
- }, react_1.default.createElement(FixedSizeGrid_1.default, {
347
- onScroll: function (event) {
348
- var scrollTop = event.scrollTop;
349
- var index = Math.floor((scrollTop + (innerConHeight - 64) / 2) / rowHeight);
265
+ }
266
+ }, /*#__PURE__*/_react.default.createElement(_FixedSizeGrid.default, {
267
+ onScroll: event => {
268
+ const {
269
+ scrollTop
270
+ } = event;
271
+ const index = Math.floor((scrollTop + (innerConHeight - 64) / 2) / rowHeight);
350
272
  setSelectedYear(index);
351
273
  },
352
274
  style: {
@@ -360,15 +282,18 @@ var CustomRange = function (_a) {
360
282
  rowCount: rowCount.left,
361
283
  rowHeight: rowHeight,
362
284
  ref: yearGrid
363
- }, YearCell)), react_1.default.createElement(react_native_1.View, {
285
+ }, YearCell)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
364
286
  key: "month-grid",
365
- style: __assign(__assign({}, styles.scrollCon), {
287
+ style: {
288
+ ...styles.scrollCon,
366
289
  backgroundColor: theme.colors.grey5
367
- })
368
- }, react_1.default.createElement(FixedSizeGrid_1.default, {
369
- onScroll: function (event) {
370
- var scrollTop = event.scrollTop;
371
- var index = Math.floor((scrollTop + (innerConHeight - 64) / 2) / rowHeight);
290
+ }
291
+ }, /*#__PURE__*/_react.default.createElement(_FixedSizeGrid.default, {
292
+ onScroll: event => {
293
+ const {
294
+ scrollTop
295
+ } = event;
296
+ const index = Math.floor((scrollTop + (innerConHeight - 64) / 2) / rowHeight);
372
297
  setSelectedMonth(index);
373
298
  },
374
299
  style: {
@@ -382,17 +307,20 @@ var CustomRange = function (_a) {
382
307
  rowCount: rowCount.center,
383
308
  rowHeight: rowHeight,
384
309
  ref: monthGrid
385
- }, MonthCell)), react_1.default.createElement(react_native_1.View, {
310
+ }, MonthCell)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
386
311
  key: "day-grid",
387
- style: __assign(__assign({}, styles.scrollCon), {
312
+ style: {
313
+ ...styles.scrollCon,
388
314
  backgroundColor: theme.colors.grey5,
389
315
  borderTopRightRadius: 8,
390
316
  borderBottomRightRadius: 8
391
- })
392
- }, react_1.default.createElement(FixedSizeGrid_1.default, {
393
- onScroll: function (event) {
394
- var scrollTop = event.scrollTop;
395
- var index = Math.floor((scrollTop + (innerConHeight - 64) / 2) / rowHeight);
317
+ }
318
+ }, /*#__PURE__*/_react.default.createElement(_FixedSizeGrid.default, {
319
+ onScroll: event => {
320
+ const {
321
+ scrollTop
322
+ } = event;
323
+ const index = Math.floor((scrollTop + (innerConHeight - 64) / 2) / rowHeight);
396
324
  setSelectedDay(index);
397
325
  },
398
326
  style: {
@@ -406,26 +334,24 @@ var CustomRange = function (_a) {
406
334
  rowCount: rowCount.right,
407
335
  rowHeight: rowHeight,
408
336
  ref: dayGrid
409
- }, DayCell)))), react_1.default.createElement(react_native_1.View, {
337
+ }, DayCell)))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
410
338
  style: styles.footer
411
- }, react_1.default.createElement(Button_1.default, {
339
+ }, /*#__PURE__*/_react.default.createElement(_Button.default, {
412
340
  type: "clear",
413
- onPress: function () {
341
+ onPress: () => {
414
342
  setRangeDetail([]);
415
343
  setRnage([]);
416
344
  // TODO reset sroll
417
345
  }
418
- }, (_c = local_1.locales[languageCode]) === null || _c === void 0 ? void 0 : _c.reset), curEditDate === "end" ? react_1.default.createElement(Button_1.default, {
419
- onPress: function () {
346
+ }, _local.locales[languageCode]?.reset), curEditDate === "end" ? /*#__PURE__*/_react.default.createElement(_Button.default, {
347
+ onPress: () => {
420
348
  attachComplete && attachComplete(rangeDetail);
421
349
  }
422
- }, (_d = local_1.locales[languageCode]) === null || _d === void 0 ? void 0 : _d.done) : react_1.default.createElement(Button_1.default, {
423
- onPress: function () {
424
- return setCurEditDate("end");
425
- }
426
- }, (_e = local_1.locales[languageCode]) === null || _e === void 0 ? void 0 : _e.next)));
350
+ }, _local.locales[languageCode]?.done) : /*#__PURE__*/_react.default.createElement(_Button.default, {
351
+ onPress: () => setCurEditDate("end")
352
+ }, _local.locales[languageCode]?.next)));
427
353
  };
428
- var styles = react_native_1.StyleSheet.create({
354
+ const styles = _reactNative.StyleSheet.create({
429
355
  container: {
430
356
  display: "flex",
431
357
  flexDirection: "column",
@@ -545,4 +471,5 @@ var styles = react_native_1.StyleSheet.create({
545
471
  textAlign: "center"
546
472
  }
547
473
  });
548
- exports.default = (0, themed_1.withTheme)(CustomRange);
474
+ var _default = exports.default = (0, _themed.withTheme)(CustomRange);
475
+ //# sourceMappingURL=CustomRange.js.map