@wavemaker/app-rn-runtime 11.5.0-next.40003 → 11.5.0-next.NULL

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 (325) hide show
  1. app-rn-runtime/actions/login-action.js +4 -0
  2. app-rn-runtime/actions/login-action.js.map +1 -1
  3. app-rn-runtime/actions/logout-action.js +4 -0
  4. app-rn-runtime/actions/logout-action.js.map +1 -1
  5. app-rn-runtime/actions/notification-action.js.map +1 -1
  6. app-rn-runtime/components/advanced/carousel/carousel.component.js +123 -32
  7. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  8. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  9. app-rn-runtime/components/advanced/carousel/carousel.styles.js +7 -3
  10. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  11. app-rn-runtime/components/advanced/login/login.component.js +3 -2
  12. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  13. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js +17 -16
  14. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  15. app-rn-runtime/components/advanced/webview/webview.component.js +28 -11
  16. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  17. app-rn-runtime/components/advanced/webview/webview.props.js +0 -1
  18. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  19. app-rn-runtime/components/basic/anchor/anchor.component.js +7 -5
  20. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  21. app-rn-runtime/components/basic/animatedview.component.js +50 -0
  22. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  23. app-rn-runtime/components/basic/audio/audio.component.js +5 -0
  24. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -1
  25. app-rn-runtime/components/basic/button/button.component.js +20 -7
  26. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  27. app-rn-runtime/components/basic/button/button.styles.js +15 -5
  28. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  29. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js +11 -5
  30. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  31. app-rn-runtime/components/basic/icon/icon.component.js +9 -6
  32. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  33. app-rn-runtime/components/basic/icon/icon.props.js +1 -0
  34. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  35. app-rn-runtime/components/basic/icon/icon.styles.js +2 -1
  36. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  37. app-rn-runtime/components/basic/label/label.component.js +79 -11
  38. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  39. app-rn-runtime/components/basic/label/label.props.js +1 -0
  40. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  41. app-rn-runtime/components/basic/label/label.styles.js +5 -0
  42. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  43. app-rn-runtime/components/basic/message/message.component.js +6 -3
  44. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  45. app-rn-runtime/components/basic/picture/picture.component.js +7 -5
  46. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  47. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +4 -3
  48. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  49. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js +1 -1
  50. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  51. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +3 -2
  52. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  53. app-rn-runtime/components/basic/search/search.component.js +9 -5
  54. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  55. app-rn-runtime/components/basic/search/search.styles.js +11 -10
  56. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  57. app-rn-runtime/components/basic/spinner/spinner.component.js +6 -2
  58. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  59. app-rn-runtime/components/basic/spinner/spinner.styles.js +3 -2
  60. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  61. app-rn-runtime/components/basic/video/video.component.js +2 -1
  62. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  63. app-rn-runtime/components/chart/area-chart/area-chart.component.js +42 -14
  64. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  65. app-rn-runtime/components/chart/area-chart/area-chart.props.js +10 -1
  66. app-rn-runtime/components/chart/area-chart/area-chart.props.js.map +1 -1
  67. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js +42 -4
  68. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  69. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js +1 -2
  70. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  71. app-rn-runtime/components/chart/basechart.component.js +140 -39
  72. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  73. app-rn-runtime/components/chart/basechart.props.js +18 -4
  74. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  75. app-rn-runtime/components/chart/basechart.styles.js +44 -2
  76. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  77. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js +25 -3
  78. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  79. app-rn-runtime/components/chart/bubble-chart/bubble-chart.props.js +9 -1
  80. app-rn-runtime/components/chart/bubble-chart/bubble-chart.props.js.map +1 -1
  81. app-rn-runtime/components/chart/line-chart/line-chart.component.js +28 -6
  82. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  83. app-rn-runtime/components/chart/line-chart/line-chart.props.js +1 -0
  84. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  85. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +25 -3
  86. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  87. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js +1 -0
  88. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  89. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js +81 -19
  90. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js.map +1 -1
  91. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js +2 -0
  92. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js.map +1 -1
  93. app-rn-runtime/components/container/accordion/accordion.component.js +16 -13
  94. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  95. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +3 -22
  96. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  97. app-rn-runtime/components/container/container.component.js +14 -4
  98. app-rn-runtime/components/container/container.component.js.map +1 -1
  99. app-rn-runtime/components/container/container.props.js +1 -0
  100. app-rn-runtime/components/container/container.props.js.map +1 -1
  101. app-rn-runtime/components/container/panel/collapsible-pane.component.js +26 -0
  102. app-rn-runtime/components/container/panel/collapsible-pane.component.js.map +1 -0
  103. app-rn-runtime/components/container/panel/panel.component.js +43 -61
  104. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  105. app-rn-runtime/components/container/panel/panel.styles.js +9 -2
  106. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  107. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +29 -15
  108. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  109. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +15 -10
  110. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  111. app-rn-runtime/components/container/tabs/tabs.component.js +18 -10
  112. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  113. app-rn-runtime/components/container/tabs/tabs.styles.js +1 -0
  114. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  115. app-rn-runtime/components/container/tile/tile.component.js +3 -2
  116. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  117. app-rn-runtime/components/container/wizard/wizard.component.js +137 -20
  118. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  119. app-rn-runtime/components/container/wizard/wizard.props.js +4 -0
  120. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  121. app-rn-runtime/components/container/wizard/wizard.styles.js +114 -5
  122. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  123. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +22 -3
  124. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  125. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js +4 -0
  126. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  127. app-rn-runtime/components/data/card/card.component.js +3 -2
  128. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  129. app-rn-runtime/components/data/form/form-action/form-action.component.js +1 -0
  130. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  131. app-rn-runtime/components/data/form/form-field/form-field.component.js +9 -7
  132. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  133. app-rn-runtime/components/data/form/form.component.js +12 -6
  134. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  135. app-rn-runtime/components/data/list/list-template/list-template.styles.js +5 -1
  136. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  137. app-rn-runtime/components/data/list/list.component.js +65 -8
  138. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  139. app-rn-runtime/components/data/list/list.props.js +1 -0
  140. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  141. app-rn-runtime/components/data/list/list.styles.js +12 -5
  142. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  143. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +1 -0
  144. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  145. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js +2 -1
  146. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js.map +1 -1
  147. app-rn-runtime/components/device/camera/camera.component.js +1 -0
  148. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  149. app-rn-runtime/components/device/camera/camera.styles.js +2 -1
  150. app-rn-runtime/components/device/camera/camera.styles.js.map +1 -1
  151. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js +4 -1
  152. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  153. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js +9 -3
  154. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -1
  155. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js +6 -2
  156. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  157. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js +10 -10
  158. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  159. app-rn-runtime/components/dialogs/dialog/dialog.component.js +2 -0
  160. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  161. app-rn-runtime/components/dialogs/dialog/dialog.styles.js +25 -8
  162. app-rn-runtime/components/dialogs/dialog/dialog.styles.js.map +1 -1
  163. app-rn-runtime/components/input/baseinput/baseinput.component.js +6 -2
  164. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  165. app-rn-runtime/components/input/basenumber/basenumber.component.js +45 -6
  166. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  167. app-rn-runtime/components/input/basenumber/basenumber.props.js +1 -0
  168. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  169. app-rn-runtime/components/input/calendar/calendar.component.js +4 -0
  170. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  171. app-rn-runtime/components/input/calendar/calendar.styles.js +22 -11
  172. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  173. app-rn-runtime/components/input/calendar/views/month-view.js +4 -0
  174. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  175. app-rn-runtime/components/input/checkbox/checkbox.component.js +6 -6
  176. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  177. app-rn-runtime/components/input/checkboxset/checkboxset.component.js +14 -7
  178. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  179. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js +2 -1
  180. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +1 -1
  181. app-rn-runtime/components/input/chips/chips.component.js +15 -4
  182. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  183. app-rn-runtime/components/input/chips/chips.styles.js +20 -12
  184. app-rn-runtime/components/input/chips/chips.styles.js.map +1 -1
  185. app-rn-runtime/components/input/composite/composite.component.js +1 -1
  186. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  187. app-rn-runtime/components/input/composite/composite.props.js +1 -1
  188. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  189. app-rn-runtime/components/input/currency/currency.component.js +21 -3
  190. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  191. app-rn-runtime/components/input/currency/currency.props.js +1 -0
  192. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  193. app-rn-runtime/components/input/currency/currency.styles.js +31 -5
  194. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  195. app-rn-runtime/components/input/epoch/base-datetime.component.js +32 -9
  196. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  197. app-rn-runtime/components/input/epoch/date/date.component.js +8 -0
  198. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  199. app-rn-runtime/components/input/epoch/date/date.styles.js +16 -0
  200. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  201. app-rn-runtime/components/input/epoch/datetime/datetime.component.js +8 -0
  202. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  203. app-rn-runtime/components/input/epoch/datetime/datetime.props.js +1 -0
  204. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  205. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +21 -1
  206. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  207. app-rn-runtime/components/input/epoch/time/time.component.js +8 -0
  208. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  209. app-rn-runtime/components/input/epoch/time/time.styles.js +16 -0
  210. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  211. app-rn-runtime/components/input/fileupload/fileupload.component.js +1 -0
  212. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  213. app-rn-runtime/components/input/number/number.component.js +16 -2
  214. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  215. app-rn-runtime/components/input/number/number.props.js +1 -0
  216. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  217. app-rn-runtime/components/input/number/number.styles.js +23 -2
  218. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  219. app-rn-runtime/components/input/radioset/radioset.component.js +7 -4
  220. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  221. app-rn-runtime/components/input/radioset/radioset.styles.js +2 -1
  222. app-rn-runtime/components/input/radioset/radioset.styles.js.map +1 -1
  223. app-rn-runtime/components/input/rating/rating.component.js +2 -0
  224. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  225. app-rn-runtime/components/input/select/select.component.js +17 -13
  226. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  227. app-rn-runtime/components/input/select/select.styles.js +6 -3
  228. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  229. app-rn-runtime/components/input/slider/slider.component.js +99 -23
  230. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  231. app-rn-runtime/components/input/slider/slider.styles.js +30 -3
  232. app-rn-runtime/components/input/slider/slider.styles.js.map +1 -1
  233. app-rn-runtime/components/input/switch/switch.component.js +11 -5
  234. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  235. app-rn-runtime/components/input/switch/switch.styles.js +13 -8
  236. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  237. app-rn-runtime/components/input/text/text.component.js +12 -1
  238. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  239. app-rn-runtime/components/input/text/text.props.js +1 -0
  240. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  241. app-rn-runtime/components/input/text/text.styles.js +22 -1
  242. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  243. app-rn-runtime/components/input/textarea/textarea.component.js +12 -1
  244. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  245. app-rn-runtime/components/input/textarea/textarea.props.js +1 -0
  246. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  247. app-rn-runtime/components/input/textarea/textarea.styles.js +17 -0
  248. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  249. app-rn-runtime/components/input/toggle/toggle.component.js +44 -5
  250. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  251. app-rn-runtime/components/input/toggle/toggle.styles.js +16 -11
  252. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  253. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +16 -3
  254. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  255. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js +1 -1
  256. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  257. app-rn-runtime/components/navigation/menu/menu.component.js +5 -3
  258. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  259. app-rn-runtime/components/navigation/menu/menu.styles.js +10 -6
  260. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  261. app-rn-runtime/components/navigation/navbar/navbar.component.js +7 -4
  262. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  263. app-rn-runtime/components/navigation/navitem/navitem.component.js +5 -2
  264. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  265. app-rn-runtime/components/navigation/navitem/navitem.styles.js +14 -10
  266. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  267. app-rn-runtime/components/navigation/popover/popover.component.js +7 -4
  268. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  269. app-rn-runtime/components/navigation/popover/popover.styles.js +8 -2
  270. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  271. app-rn-runtime/components/page/left-panel/left-panel.component.js +1 -1
  272. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  273. app-rn-runtime/components/page/left-panel/left-panel.styles.js +6 -1
  274. app-rn-runtime/components/page/left-panel/left-panel.styles.js.map +1 -1
  275. app-rn-runtime/components/page/page-content/page-content.component.js +11 -3
  276. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  277. app-rn-runtime/components/page/tabbar/curve.js +84 -0
  278. app-rn-runtime/components/page/tabbar/curve.js.map +1 -0
  279. app-rn-runtime/components/page/tabbar/tabbar.component.js +47 -12
  280. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  281. app-rn-runtime/components/page/tabbar/tabbar.props.js +1 -0
  282. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  283. app-rn-runtime/components/page/tabbar/tabbar.styles.js +54 -1
  284. app-rn-runtime/components/page/tabbar/tabbar.styles.js.map +1 -1
  285. app-rn-runtime/core/base.component.js +84 -37
  286. app-rn-runtime/core/base.component.js.map +1 -1
  287. app-rn-runtime/core/components/floatinglabel.component.js +45 -0
  288. app-rn-runtime/core/components/floatinglabel.component.js.map +1 -0
  289. app-rn-runtime/core/components/textinput.component.js +25 -2
  290. app-rn-runtime/core/components/textinput.component.js.map +1 -1
  291. app-rn-runtime/core/constant.service.js +22 -0
  292. app-rn-runtime/core/constant.service.js.map +1 -0
  293. app-rn-runtime/core/formatters.js +9 -2
  294. app-rn-runtime/core/formatters.js.map +1 -1
  295. app-rn-runtime/core/tappable.component.js +49 -12
  296. app-rn-runtime/core/tappable.component.js.map +1 -1
  297. app-rn-runtime/core/testid.provider.js +5 -0
  298. app-rn-runtime/core/testid.provider.js.map +1 -0
  299. app-rn-runtime/core/utils.js +16 -0
  300. app-rn-runtime/core/utils.js.map +1 -1
  301. app-rn-runtime/gestures/swipe.animation.js +56 -5
  302. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  303. app-rn-runtime/package.json +6 -3
  304. app-rn-runtime/runtime/App.js +51 -21
  305. app-rn-runtime/runtime/App.js.map +1 -1
  306. app-rn-runtime/runtime/base-fragment.component.js +27 -6
  307. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  308. app-rn-runtime/runtime/base-page.component.js +8 -2
  309. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  310. app-rn-runtime/runtime/services/app-i18n.service.js +7 -0
  311. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  312. app-rn-runtime/runtime/services/app-modal.service.js +1 -1
  313. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  314. app-rn-runtime/runtime/services/device/camera-service.js +26 -9
  315. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  316. app-rn-runtime/runtime/services/device/scan-service.js +16 -2
  317. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  318. app-rn-runtime/runtime/services/webprocess.service.js +0 -1
  319. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  320. app-rn-runtime/styles/theme.js +36 -0
  321. app-rn-runtime/styles/theme.js.map +1 -1
  322. app-rn-runtime/styles/theme.variables.js +24 -3
  323. app-rn-runtime/styles/theme.variables.js.map +1 -1
  324. app-rn-runtime/variables/model-variable.js +2 -1
  325. app-rn-runtime/variables/model-variable.js.map +1 -1
@@ -1,4 +1,5 @@
1
1
  import { BaseAction } from "./base-action";
2
+ import { VariableEvents } from '../variables/base-variable';
2
3
  import { get } from 'lodash';
3
4
  export class LoginAction extends BaseAction {
4
5
  constructor(config) {
@@ -9,6 +10,7 @@ export class LoginAction extends BaseAction {
9
10
  if (!get(options, 'formData')) {
10
11
  params = this.config.paramProvider();
11
12
  }
13
+ this.notify(VariableEvents.BEFORE_INVOKE, [this, params]);
12
14
  return this.config.securityService().appLogin({
13
15
  baseURL: this.config.baseURL,
14
16
  formData: get(options, 'formData') || params,
@@ -16,12 +18,14 @@ export class LoginAction extends BaseAction {
16
18
  }).then(data => {
17
19
  this.config.onSuccess && this.config.onSuccess(this, get(data, 'userInfo'));
18
20
  successcb && successcb(data);
21
+ this.notify(VariableEvents.AFTER_INVOKE, [this, data]);
19
22
  if (this.config.useDefaultSuccessHandler) {
20
23
  this.config.securityService().navigateToLandingPage(data);
21
24
  }
22
25
  }).catch(error => {
23
26
  this.config.onError && this.config.onError(this, error);
24
27
  errorcb && errorcb(error);
28
+ this.notify(VariableEvents.AFTER_INVOKE, [this, error]);
25
29
  });
26
30
  }
27
31
  }
@@ -1 +1 @@
1
- {"version":3,"names":["BaseAction","get","LoginAction","constructor","config","invoke","options","successcb","errorcb","params","paramProvider","securityService","appLogin","baseURL","formData","useDefaultSuccessHandler","then","data","onSuccess","navigateToLandingPage","catch","error","onError"],"sources":["login-action.ts"],"sourcesContent":["import { ActionConfig, BaseAction } from \"./base-action\";\nimport { SecurityService } from \"@wavemaker/app-rn-runtime/core/security.service\";\nimport { get } from 'lodash';\nexport interface LoginActionConfig extends ActionConfig {\n securityService: () => SecurityService;\n baseURL: String;\n useDefaultSuccessHandler: boolean;\n}\nexport class LoginAction extends BaseAction<LoginActionConfig> {\n constructor(config: LoginActionConfig) {\n super(config);\n }\n\n invoke(options: any, successcb?: Function, errorcb?: Function) {\n let params;\n if (!get(options, 'formData')) {\n params = this.config.paramProvider();\n }\n return this.config.securityService().appLogin(\n {\n baseURL: this.config.baseURL,\n formData: get(options, 'formData') || params,\n useDefaultSuccessHandler: this.config.useDefaultSuccessHandler\n })\n .then((data: any) => {\n this.config.onSuccess && this.config.onSuccess(this, get(data, 'userInfo'));\n successcb && successcb(data);\n if (this.config.useDefaultSuccessHandler) {\n this.config.securityService().navigateToLandingPage(data);\n }\n })\n .catch((error: any) => {\n this.config.onError && this.config.onError(this, error);\n errorcb && errorcb(error);\n });\n }\n}\n"],"mappings":"AAAA,SAAuBA,UAAU,QAAQ,eAAe;AAExD,SAASC,GAAG,QAAQ,QAAQ;AAM5B,OAAO,MAAMC,WAAW,SAASF,UAAU,CAAoB;EAC3DG,WAAWA,CAACC,MAAyB,EAAE;IACnC,KAAK,CAACA,MAAM,CAAC;EACjB;EAEAC,MAAMA,CAACC,OAAY,EAAEC,SAAoB,EAAEC,OAAkB,EAAE;IAC7D,IAAIC,MAAM;IACV,IAAI,CAACR,GAAG,CAACK,OAAO,EAAE,UAAU,CAAC,EAAE;MAC7BG,MAAM,GAAG,IAAI,CAACL,MAAM,CAACM,aAAa,CAAC,CAAC;IACtC;IACA,OAAO,IAAI,CAACN,MAAM,CAACO,eAAe,CAAC,CAAC,CAACC,QAAQ,CAC3C;MACEC,OAAO,EAAE,IAAI,CAACT,MAAM,CAACS,OAAO;MAC5BC,QAAQ,EAAEb,GAAG,CAACK,OAAO,EAAE,UAAU,CAAC,IAAIG,MAAM;MAC5CM,wBAAwB,EAAE,IAAI,CAACX,MAAM,CAACW;IAC1C,CAAC,CAAC,CACCC,IAAI,CAAEC,IAAS,IAAK;MACjB,IAAI,CAACb,MAAM,CAACc,SAAS,IAAI,IAAI,CAACd,MAAM,CAACc,SAAS,CAAC,IAAI,EAAEjB,GAAG,CAACgB,IAAI,EAAE,UAAU,CAAC,CAAC;MAC3EV,SAAS,IAAIA,SAAS,CAACU,IAAI,CAAC;MAC5B,IAAI,IAAI,CAACb,MAAM,CAACW,wBAAwB,EAAE;QACxC,IAAI,CAACX,MAAM,CAACO,eAAe,CAAC,CAAC,CAACQ,qBAAqB,CAACF,IAAI,CAAC;MAC3D;IACJ,CAAC,CAAC,CACDG,KAAK,CAAEC,KAAU,IAAK;MACnB,IAAI,CAACjB,MAAM,CAACkB,OAAO,IAAI,IAAI,CAAClB,MAAM,CAACkB,OAAO,CAAC,IAAI,EAAED,KAAK,CAAC;MACvDb,OAAO,IAAIA,OAAO,CAACa,KAAK,CAAC;IAC7B,CAAC,CAAC;EACN;AACJ"}
1
+ {"version":3,"names":["BaseAction","VariableEvents","get","LoginAction","constructor","config","invoke","options","successcb","errorcb","params","paramProvider","notify","BEFORE_INVOKE","securityService","appLogin","baseURL","formData","useDefaultSuccessHandler","then","data","onSuccess","AFTER_INVOKE","navigateToLandingPage","catch","error","onError"],"sources":["login-action.ts"],"sourcesContent":["import { ActionConfig, BaseAction } from \"./base-action\";\nimport { VariableEvents } from '../variables/base-variable';\nimport { SecurityService } from \"@wavemaker/app-rn-runtime/core/security.service\";\nimport { get } from 'lodash';\nexport interface LoginActionConfig extends ActionConfig {\n securityService: () => SecurityService;\n baseURL: String;\n useDefaultSuccessHandler: boolean;\n}\nexport class LoginAction extends BaseAction<LoginActionConfig> {\n constructor(config: LoginActionConfig) {\n super(config);\n }\n\n invoke(options: any, successcb?: Function, errorcb?: Function) {\n let params;\n if (!get(options, 'formData')) {\n params = this.config.paramProvider();\n }\n this.notify(VariableEvents.BEFORE_INVOKE, [this, params]);\n return this.config.securityService().appLogin(\n {\n baseURL: this.config.baseURL,\n formData: get(options, 'formData') || params,\n useDefaultSuccessHandler: this.config.useDefaultSuccessHandler\n })\n .then((data: any) => {\n this.config.onSuccess && this.config.onSuccess(this, get(data, 'userInfo'));\n successcb && successcb(data);\n this.notify(VariableEvents.AFTER_INVOKE, [this, data]);\n if (this.config.useDefaultSuccessHandler) {\n this.config.securityService().navigateToLandingPage(data);\n }\n })\n .catch((error: any) => {\n this.config.onError && this.config.onError(this, error);\n errorcb && errorcb(error);\n this.notify(VariableEvents.AFTER_INVOKE, [this, error]);\n });\n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,CAAC;MAC3D;IACJ,CAAC,CAAC,CACDI,KAAK,CAAEC,KAAU,IAAK;MACnB,IAAI,CAACpB,MAAM,CAACqB,OAAO,IAAI,IAAI,CAACrB,MAAM,CAACqB,OAAO,CAAC,IAAI,EAAED,KAAK,CAAC;MACvDhB,OAAO,IAAIA,OAAO,CAACgB,KAAK,CAAC;MACzB,IAAI,CAACb,MAAM,CAACX,cAAc,CAACqB,YAAY,EAAE,CAAC,IAAI,EAAEG,KAAK,CAAC,CAAC;IAC3D,CAAC,CAAC;EACN;AACJ"}
@@ -1,17 +1,21 @@
1
1
  import { BaseAction } from "./base-action";
2
+ import { VariableEvents } from '../variables/base-variable';
2
3
  export class LogoutAction extends BaseAction {
3
4
  constructor(config) {
4
5
  super(config);
5
6
  }
6
7
  invoke(options, successcb, errorcb) {
8
+ this.notify(VariableEvents.BEFORE_INVOKE, [this]);
7
9
  return this.config.securityService().appLogout({
8
10
  baseURL: this.config.baseURL
9
11
  }).then(data => {
12
+ this.notify(VariableEvents.AFTER_INVOKE, [this, data]);
10
13
  this.config.onSuccess && this.config.onSuccess(this, data);
11
14
  successcb && successcb(data);
12
15
  }).catch(error => {
13
16
  this.config.onError && this.config.onError(this, error);
14
17
  errorcb && errorcb(error);
18
+ this.notify(VariableEvents.AFTER_INVOKE, [this, error]);
15
19
  });
16
20
  }
17
21
  }
@@ -1 +1 @@
1
- {"version":3,"names":["BaseAction","LogoutAction","constructor","config","invoke","options","successcb","errorcb","securityService","appLogout","baseURL","then","data","onSuccess","catch","error","onError"],"sources":["logout-action.ts"],"sourcesContent":["import { ActionConfig, BaseAction } from \"./base-action\";\nimport { SecurityService } from \"@wavemaker/app-rn-runtime/core/security.service\";\nexport interface LogoutActionConfig extends ActionConfig {\n securityService: () => SecurityService;\n baseURL: String;\n}\nexport class LogoutAction extends BaseAction<LogoutActionConfig> {\n constructor(config: LogoutActionConfig) {\n super(config);\n }\n\n invoke(options: any, successcb?: Function, errorcb?: Function) {\n return this.config.securityService().appLogout({baseURL: this.config.baseURL})\n .then((data: any) => {\n this.config.onSuccess && this.config.onSuccess(this, data);\n successcb && successcb(data);\n })\n .catch((error: any) => {\n this.config.onError && this.config.onError(this, error);\n errorcb && errorcb(error);\n });\n }\n}"],"mappings":"AAAA,SAAuBA,UAAU,QAAQ,eAAe;AAMxD,OAAO,MAAMC,YAAY,SAASD,UAAU,CAAqB;EAC7DE,WAAWA,CAACC,MAA0B,EAAE;IACpC,KAAK,CAACA,MAAM,CAAC;EACjB;EAEAC,MAAMA,CAACC,OAAY,EAAEC,SAAoB,EAAEC,OAAkB,EAAE;IAC3D,OAAO,IAAI,CAACJ,MAAM,CAACK,eAAe,CAAC,CAAC,CAACC,SAAS,CAAC;MAACC,OAAO,EAAE,IAAI,CAACP,MAAM,CAACO;IAAO,CAAC,CAAC,CAC7EC,IAAI,CAAEC,IAAS,IAAK;MACjB,IAAI,CAACT,MAAM,CAACU,SAAS,IAAI,IAAI,CAACV,MAAM,CAACU,SAAS,CAAC,IAAI,EAAED,IAAI,CAAC;MAC1DN,SAAS,IAAIA,SAAS,CAACM,IAAI,CAAC;IAChC,CAAC,CAAC,CACDE,KAAK,CAAEC,KAAU,IAAK;MACnB,IAAI,CAACZ,MAAM,CAACa,OAAO,IAAI,IAAI,CAACb,MAAM,CAACa,OAAO,CAAC,IAAI,EAAED,KAAK,CAAC;MACvDR,OAAO,IAAIA,OAAO,CAACQ,KAAK,CAAC;IAC7B,CAAC,CAAC;EACN;AACJ"}
1
+ {"version":3,"names":["BaseAction","VariableEvents","LogoutAction","constructor","config","invoke","options","successcb","errorcb","notify","BEFORE_INVOKE","securityService","appLogout","baseURL","then","data","AFTER_INVOKE","onSuccess","catch","error","onError"],"sources":["logout-action.ts"],"sourcesContent":["import { ActionConfig, BaseAction } from \"./base-action\";\nimport { SecurityService } from \"@wavemaker/app-rn-runtime/core/security.service\";\nimport { VariableEvents } from '../variables/base-variable';\nexport interface LogoutActionConfig extends ActionConfig {\n securityService: () => SecurityService;\n baseURL: String;\n}\nexport class LogoutAction extends BaseAction<LogoutActionConfig> {\n constructor(config: LogoutActionConfig) {\n super(config);\n }\n\n invoke(options: any, successcb?: Function, errorcb?: Function) {\n this.notify(VariableEvents.BEFORE_INVOKE, [this]);\n return this.config.securityService().appLogout({baseURL: this.config.baseURL})\n .then((data: any) => {\n this.notify(VariableEvents.AFTER_INVOKE, [this, data]);\n this.config.onSuccess && this.config.onSuccess(this, data);\n successcb && successcb(data); \n })\n .catch((error: any) => {\n this.config.onError && this.config.onError(this, error);\n errorcb && errorcb(error);\n this.notify(VariableEvents.AFTER_INVOKE, [this, error]);\n });\n }\n}"],"mappings":"AAAA,SAAuBA,UAAU,QAAQ,eAAe;AAExD,SAASC,cAAc,QAAQ,4BAA4B;AAK3D,OAAO,MAAMC,YAAY,SAASF,UAAU,CAAqB;EAC7DG,WAAWA,CAACC,MAA0B,EAAE;IACpC,KAAK,CAACA,MAAM,CAAC;EACjB;EAEAC,MAAMA,CAACC,OAAY,EAAEC,SAAoB,EAAEC,OAAkB,EAAE;IAC3D,IAAI,CAACC,MAAM,CAACR,cAAc,CAACS,aAAa,EAAE,CAAC,IAAI,CAAC,CAAC;IACjD,OAAO,IAAI,CAACN,MAAM,CAACO,eAAe,CAAC,CAAC,CAACC,SAAS,CAAC;MAACC,OAAO,EAAE,IAAI,CAACT,MAAM,CAACS;IAAO,CAAC,CAAC,CAC7EC,IAAI,CAAEC,IAAS,IAAK;MACjB,IAAI,CAACN,MAAM,CAACR,cAAc,CAACe,YAAY,EAAE,CAAC,IAAI,EAAED,IAAI,CAAC,CAAC;MACtD,IAAI,CAACX,MAAM,CAACa,SAAS,IAAI,IAAI,CAACb,MAAM,CAACa,SAAS,CAAC,IAAI,EAAEF,IAAI,CAAC;MAC1DR,SAAS,IAAIA,SAAS,CAACQ,IAAI,CAAC;IAChC,CAAC,CAAC,CACDG,KAAK,CAAEC,KAAU,IAAK;MACnB,IAAI,CAACf,MAAM,CAACgB,OAAO,IAAI,IAAI,CAAChB,MAAM,CAACgB,OAAO,CAAC,IAAI,EAAED,KAAK,CAAC;MACvDX,OAAO,IAAIA,OAAO,CAACW,KAAK,CAAC;MACzB,IAAI,CAACV,MAAM,CAACR,cAAc,CAACe,YAAY,EAAE,CAAC,IAAI,EAAEG,KAAK,CAAC,CAAC;IAC3D,CAAC,CAAC;EACN;AACJ"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseAction","DEFAULT_DURATION","NotificationAction","constructor","config","_defineProperty","showDialog","prepareToastOptions","_options$class","_params$class","options","arguments","length","undefined","params","paramProvider","o","text","message","type","class","toLowerCase","onClose","onClick","onOk","content","partialContent","hideOnClick","toasterPosition","position","placement","split","styles","top","bottom","duration","parseInt","name","getMessage","invoke","success","error","operation","toasterService","showToast","onCancel"],"sources":["notification-action.ts"],"sourcesContent":["import { ActionConfig, BaseAction } from \"./base-action\";\nimport { ToastOptions, ToastService } from '@wavemaker/app-rn-runtime/core/toast.service';\nimport React from 'react';\nexport interface NotificationActionConfig extends ActionConfig {\n showDialog: Function;\n onOk: any;\n onCancel: any;\n onClose: any;\n operation: string;\n partialContent: React.ReactNode;\n toasterService: () => ToastService;\n}\nconst DEFAULT_DURATION = 3000;\nexport class NotificationAction extends BaseAction<NotificationActionConfig> {\n showDialog: Function;\n constructor(config: NotificationActionConfig) {\n super(config);\n this.showDialog = config.showDialog;\n }\n\n prepareToastOptions(options: any = {}) {\n const params = this.config.paramProvider();\n const o = {} as ToastOptions;\n o.text = options.message || params.text;\n o.type = options.class?.toLowerCase() || params.class?.toLowerCase();\n o.onClose = () => {\n this.config.onClose && this.config.onClose(this);\n },\n o.onClick = () => {\n this.config.onOk && this.config.onOk(this);\n },\n o.content = this.config.partialContent;\n o.hideOnClick = options.hideOnClick || true;\n const toasterPosition = options.position || params.toasterPosition || 'bottom right';\n const placement = toasterPosition.split(' ')[0];\n switch(placement) {\n case 'top':\n o.styles = {top: 0};\n break;\n case 'bottom':\n o.styles = {bottom: 0};\n break;\n case 'center':\n o.styles = {top: '50%'};\n break;\n }\n if (this.config.partialContent) {\n if (!o.styles) {\n o.styles = {};\n }\n }\n if (!params.duration) {\n params.duration = (params.duration !== 0 && o.type === 'success') ? DEFAULT_DURATION : 0;\n }\n o.duration = parseInt(options.duration || params.duration);\n o.name = this.name;\n return o;\n }\n\n getMessage() {\n return this.config.paramProvider().text;\n }\n\n invoke(options: any, success: any, error: any) {\n super.invoke(options, success, error);\n if (this.config.operation === 'toast') {\n const toasterService = this.config.toasterService();\n return toasterService.showToast(this.prepareToastOptions(options));\n } else {\n return this.showDialog && this.showDialog({...this.params, onOk: this.config.onOk, onCancel: this.config.onCancel, onClose: this.config.onClose});\n }\n }\n}\n"],"mappings":";;;AAAA,SAAuBA,UAAU,QAAQ,eAAe;AAYxD,MAAMC,gBAAgB,GAAG,IAAI;AAC7B,OAAO,MAAMC,kBAAkB,SAASF,UAAU,CAA2B;EAEzEG,WAAWA,CAACC,MAAgC,EAAE;IAC1C,KAAK,CAACA,MAAM,CAAC;IAACC,eAAA;IACd,IAAI,CAACC,UAAU,GAAGF,MAAM,CAACE,UAAU;EACvC;EAEAC,mBAAmBA,CAAA,EAAoB;IAAA,IAAAC,cAAA,EAAAC,aAAA;IAAA,IAAnBC,OAAY,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;IACjC,MAAMG,MAAM,GAAG,IAAI,CAACV,MAAM,CAACW,aAAa,CAAC,CAAC;IAC1C,MAAMC,CAAC,GAAG,CAAC,CAAiB;IAC5BA,CAAC,CAACC,IAAI,GAAGP,OAAO,CAACQ,OAAO,IAAIJ,MAAM,CAACG,IAAI;IACvCD,CAAC,CAACG,IAAI,GAAG,EAAAX,cAAA,GAAAE,OAAO,CAACU,KAAK,cAAAZ,cAAA,uBAAbA,cAAA,CAAea,WAAW,CAAC,CAAC,OAAAZ,aAAA,GAAIK,MAAM,CAACM,KAAK,cAAAX,aAAA,uBAAZA,aAAA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IACAe,CAAC,CAACmB,QAAQ,GAAGC,QAAQ,CAAC1B,OAAO,CAACyB,QAAQ,IAAIrB,MAAM,CAACqB,QAAQ,CAAC;IAC1DnB,CAAC,CAACqB,IAAI,GAAG,IAAI,CAACA,IAAI;IAClB,OAAOrB,CAAC;EACV;EAEJsB,UAAUA,CAAA,EAAG;IACX,OAAO,IAAI,CAAClC,MAAM,CAACW,aAAa,CAAC,CAAC,CAACE,IAAI;EACzC;EAEEsB,MAAMA,CAAC7B,OAAY,EAAE8B,OAAY,EAAEC,KAAU,EAAE;IAC3C,KAAK,CAACF,MAAM,CAAC7B,OAAO,EAAE8B,OAAO,EAAEC,KAAK,CAAC;IACrC,IAAI,IAAI,CAACrC,MAAM,CAACsC,SAAS,KAAK,OAAO,EAAE;MACnC,MAAMC,cAAc,GAAG,IAAI,CAACvC,MAAM,CAACuC,cAAc,CAAC,CAAC;MACnD,OAAOA,cAAc,CAACC,SAAS,CAAC,IAAI,CAACrC,mBAAmB,CAACG,OAAO,CAAC,CAAC;IACtE,CAAC,MAAM;MACH,OAAO,IAAI,CAACJ,UAAU,IAAI,IAAI,CAACA,UAAU,CAAC;QAAC,GAAG,IAAI,CAACQ,MAAM;QAAEU,IAAI,EAAE,IAAI,CAACpB,MAAM,CAACoB,IAAI;QAAEqB,QAAQ,EAAE,IAAI,CAACzC,MAAM,CAACyC,QAAQ;QAAEvB,OAAO,EAAE,IAAI,CAAClB,MAAM,CAACkB;MAAO,CAAC,CAAC;IACrJ;EACJ;AACJ"}
1
+ {"version":3,"names":["BaseAction","DEFAULT_DURATION","NotificationAction","constructor","config","_defineProperty","showDialog","prepareToastOptions","_options$class","_params$class","options","arguments","length","undefined","params","paramProvider","o","text","message","type","class","toLowerCase","onClose","onClick","onOk","content","partialContent","hideOnClick","toasterPosition","position","placement","split","styles","top","bottom","duration","parseInt","name","getMessage","invoke","success","error","operation","toasterService","showToast","onCancel"],"sources":["notification-action.ts"],"sourcesContent":["import { ActionConfig, BaseAction } from \"./base-action\";\nimport { ToastOptions, ToastService } from '@wavemaker/app-rn-runtime/core/toast.service';\nimport React from 'react';\nexport interface NotificationActionConfig extends ActionConfig {\n showDialog: Function;\n onOk: any;\n onCancel: any;\n onClose: any;\n operation: string;\n partialContent: React.ReactNode;\n toasterService: () => ToastService;\n}\nconst DEFAULT_DURATION = 3000;\nexport class NotificationAction extends BaseAction<NotificationActionConfig> {\n showDialog: Function;\n constructor(config: NotificationActionConfig) {\n super(config);\n this.showDialog = config.showDialog;\n }\n\n prepareToastOptions(options: any = {}) {\n const params = this.config.paramProvider();\n const o = {} as ToastOptions;\n o.text = options.message || params.text;\n o.type = options.class?.toLowerCase() || params.class?.toLowerCase();\n o.onClose = () => {\n this.config.onClose && this.config.onClose(this);\n },\n o.onClick = () => {\n this.config.onOk && this.config.onOk(this);\n },\n o.content = this.config.partialContent;\n o.hideOnClick = options.hideOnClick || true;\n const toasterPosition = options.position || params.toasterPosition || 'bottom right';\n const placement = toasterPosition.split(' ')[0];\n switch(placement) {\n case 'top':\n o.styles = {top: 0};\n break;\n case 'bottom':\n o.styles = {bottom: 0};\n break;\n case 'center':\n o.styles = {top: '50%'};\n break;\n }\n if (this.config.partialContent) {\n if (!o.styles) {\n o.styles = {};\n }\n }\n if (!params.duration) {\n params.duration = (params.duration !== 0 && o.type === 'success') ? DEFAULT_DURATION : 0;\n }\n o.duration = parseInt(options.duration || params.duration);\n o.name = this.name;\n return o;\n }\n\n getMessage() {\n return this.config.paramProvider().text;\n }\n\n invoke(options: any, success: any, error: any) {\n super.invoke(options, success, error);\n if (this.config.operation === 'toast') {\n const toasterService = this.config.toasterService();\n return toasterService.showToast(this.prepareToastOptions(options));\n } else {\n return this.showDialog && this.showDialog({...this.params, onOk: this.config.onOk, onCancel: this.config.onCancel, onClose: this.config.onClose});\n }\n }\n}\n"],"mappings":";;;AAAA,SAAuBA,UAAU,QAAQ,eAAe;AAYxD,MAAMC,gBAAgB,GAAG,IAAI;AAC7B,OAAO,MAAMC,kBA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C,cAAc,CAAC,CAAC;MACnD,OAAOA,cAAc,CAACC,SAAS,CAAC,IAAI,CAACrC,mBAAmB,CAACG,OAAO,CAAC,CAAC;IACtE,CAAC,MAAM;MACH,OAAO,IAAI,CAACJ,UAAU,IAAI,IAAI,CAACA,UAAU,CAAC;QAAC,GAAG,IAAI,CAACQ,MAAM;QAAEU,IAAI,EAAE,IAAI,CAACpB,MAAM,CAACoB,IAAI;QAAEqB,QAAQ,EAAE,IAAI,CAACzC,MAAM,CAACyC,QAAQ;QAAEvB,OAAO,EAAE,IAAI,CAAClB,MAAM,CAACkB;MAAO,CAAC,CAAC;IACrJ;EACJ;AACJ"}
@@ -2,12 +2,13 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
2
2
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
3
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
4
  import React from 'react';
5
- import { isArray } from 'lodash-es';
6
- import { Animated, View } from 'react-native';
5
+ import { isArray, isUndefined } from 'lodash-es';
6
+ import { Animated, Easing, View } from 'react-native';
7
7
  import { DefaultKeyExtractor } from '@wavemaker/app-rn-runtime/core/key.extractor';
8
8
  import WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';
9
9
  import { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';
10
10
  import * as SwipeAnimation from '@wavemaker/app-rn-runtime/gestures/swipe.animation';
11
+ import { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';
11
12
  import WmCarouselProps from './carousel.props';
12
13
  import { DEFAULT_CLASS } from './carousel.styles';
13
14
  export class WmCarouselState extends BaseComponentState {
@@ -20,25 +21,32 @@ export default class WmCarousel extends BaseComponent {
20
21
  constructor(_props) {
21
22
  super(_props, DEFAULT_CLASS, new WmCarouselProps(), new WmCarouselState());
22
23
  _defineProperty(this, "noOfSlides", 0);
23
- _defineProperty(this, "slideLayout", null);
24
+ _defineProperty(this, "slidesLayout", []);
24
25
  _defineProperty(this, "keyExtractor", new DefaultKeyExtractor());
25
26
  _defineProperty(this, "stopPlay", null);
27
+ _defineProperty(this, "dotScale", new Animated.Value(0));
28
+ _defineProperty(this, "dotPosition", new Animated.Value(0));
26
29
  _defineProperty(this, "animationView", null);
27
30
  _defineProperty(this, "animationHandlers", {
28
31
  bounds: e => {
29
- var _this$slideLayout;
30
- const activeTabIndex = this.state.activeIndex - 1,
31
- w = ((_this$slideLayout = this.slideLayout) === null || _this$slideLayout === void 0 ? void 0 : _this$slideLayout.width) || 0,
32
- noOfTabs = this.state.props.dataset.length;
32
+ var _this$slidesLayout, _this$slidesLayout$ac;
33
+ const activeTabIndex = this.state.activeIndex - 1;
34
+ let lower = 0;
35
+ if (activeTabIndex > 0) {
36
+ lower = this.slidesLayout.filter((l, i) => i < activeTabIndex - 1).reduce((s, l) => s + l.width, 0);
37
+ }
38
+ let center = lower + (((_this$slidesLayout = this.slidesLayout[activeTabIndex - 1]) === null || _this$slidesLayout === void 0 ? void 0 : _this$slidesLayout.width) || 0);
39
+ let upper = center + (((_this$slidesLayout$ac = this.slidesLayout[activeTabIndex]) === null || _this$slidesLayout$ac === void 0 ? void 0 : _this$slidesLayout$ac.width) || 0);
33
40
  return {
34
- lower: -1 * (activeTabIndex - (activeTabIndex === 0 ? 0 : 1)) * w,
35
- center: -1 * activeTabIndex * w,
36
- upper: -1 * (activeTabIndex + (activeTabIndex === noOfTabs - 1 ? 0 : 1)) * w
41
+ lower: -1 * lower,
42
+ center: -1 * center,
43
+ upper: -1 * upper
37
44
  };
38
45
  },
39
46
  computePhase: value => {
40
- var _this$slideLayout2;
41
- const w = ((_this$slideLayout2 = this.slideLayout) === null || _this$slideLayout2 === void 0 ? void 0 : _this$slideLayout2.width) || 0;
47
+ var _this$slidesLayout$ac2;
48
+ const activeTabIndex = this.state.activeIndex - 1;
49
+ const w = ((_this$slidesLayout$ac2 = this.slidesLayout[activeTabIndex]) === null || _this$slidesLayout$ac2 === void 0 ? void 0 : _this$slidesLayout$ac2.width) || 0;
42
50
  return w && Math.abs(value / w);
43
51
  },
44
52
  onLower: e => {
@@ -53,16 +61,19 @@ export default class WmCarousel extends BaseComponent {
53
61
  this.updateState({
54
62
  activeIndex: index
55
63
  }, () => this.invokeEventCallback('onChange', [this, index, prevIndex]));
64
+ this.animatePagination(index);
56
65
  });
57
66
  _defineProperty(this, "renderItem", (item, index) => {
58
67
  const props = this.state.props;
59
68
  if (props.type === 'dynamic') {
60
- return props.renderSlide ? props.renderSlide(item, index) : null;
69
+ return props.renderSlide ? props.renderSlide(item, index, this) : null;
61
70
  }
62
71
  return props.children[index];
63
72
  });
64
73
  _defineProperty(this, "next", () => {
65
- if (this.state.activeIndex >= this.state.props.dataset.length) {
74
+ const props = this.state.props;
75
+ const data = props.type === 'dynamic' ? props.dataset : props.children;
76
+ if (this.state.activeIndex >= (data === null || data === void 0 ? void 0 : data.length) || 0) {
66
77
  var _this$animationView;
67
78
  this.onSlideChange(1);
68
79
  (_this$animationView = this.animationView) === null || _this$animationView === void 0 ? void 0 : _this$animationView.setPosition(0);
@@ -79,16 +90,18 @@ export default class WmCarousel extends BaseComponent {
79
90
  this.stopPlay && this.stopPlay();
80
91
  });
81
92
  }
93
+ addSlideLayout(index, nativeEvent) {
94
+ this.slidesLayout[index] = nativeEvent.nativeEvent.layout;
95
+ if (index === this.state.activeIndex) {
96
+ this.forceUpdate();
97
+ }
98
+ }
82
99
  generateItemKey(item, index, props) {
83
100
  if (props.itemkey && item && !this._showSkeleton) {
84
101
  return props.itemkey(item, index);
85
102
  }
86
103
  return 'list_item_' + this.keyExtractor.getKey(item, true);
87
104
  }
88
- setSlideLayout(event) {
89
- this.slideLayout = event.nativeEvent.layout;
90
- this.forceUpdate();
91
- }
92
105
  autoPlay() {
93
106
  const props = this.state.props;
94
107
  this.stopPlay && this.stopPlay();
@@ -113,7 +126,7 @@ export default class WmCarousel extends BaseComponent {
113
126
  var _this$keyExtractor;
114
127
  (_this$keyExtractor = this.keyExtractor) === null || _this$keyExtractor === void 0 ? void 0 : _this$keyExtractor.clear();
115
128
  this.updateState({
116
- activeIndex: Math.min(this.state.activeIndex, ($new === null || $new === void 0 ? void 0 : $new.length) || 0)
129
+ activeIndex: Math.min(this.state.activeIndex, ($new === null || $new === void 0 ? void 0 : $new.length) || 1)
117
130
  });
118
131
  break;
119
132
  }
@@ -124,6 +137,43 @@ export default class WmCarousel extends BaseComponent {
124
137
  }
125
138
  }
126
139
  }
140
+ animatePagination(index) {
141
+ var _this$styles$dotStyle, _this$styles$dotStyle2, _this$styles$dotStyle3;
142
+ const prevIndex = this.state.activeIndex;
143
+ const margin = (((_this$styles$dotStyle = this.styles.dotStyle) === null || _this$styles$dotStyle === void 0 ? void 0 : _this$styles$dotStyle.marginLeft) || 0) + (((_this$styles$dotStyle2 = this.styles.dotStyle) === null || _this$styles$dotStyle2 === void 0 ? void 0 : _this$styles$dotStyle2.marginRight) || 0);
144
+ const width = ((_this$styles$dotStyle3 = this.styles.dotStyle) === null || _this$styles$dotStyle3 === void 0 ? void 0 : _this$styles$dotStyle3.width) || 2;
145
+ const size = margin + width;
146
+ const position = Math.max(index - 1, 0) * size;
147
+ const scale = Math.abs(index - prevIndex) * size;
148
+ const options = {
149
+ useNativeDriver: true,
150
+ duration: 200,
151
+ easing: Easing.out(Easing.linear)
152
+ };
153
+ if (prevIndex < index) {
154
+ Animated.sequence([Animated.timing(this.dotScale, {
155
+ toValue: scale,
156
+ ...options
157
+ }), Animated.parallel([Animated.timing(this.dotScale, {
158
+ toValue: 0,
159
+ ...options
160
+ }), Animated.timing(this.dotPosition, {
161
+ toValue: (this.isRTL ? -1 : 1) * position,
162
+ ...options
163
+ })])]).start();
164
+ } else if (prevIndex > index) {
165
+ Animated.sequence([Animated.parallel([Animated.timing(this.dotScale, {
166
+ toValue: scale,
167
+ ...options
168
+ }), Animated.timing(this.dotPosition, {
169
+ toValue: (this.isRTL ? -1 : 1) * position,
170
+ ...options
171
+ })]), Animated.timing(this.dotScale, {
172
+ toValue: 0,
173
+ ...options
174
+ })]).start();
175
+ }
176
+ }
127
177
  renderPagination(data) {
128
178
  const maxNoOfDots = this.state.props.maxnoofdots;
129
179
  let minIndex = Math.max(this.state.activeIndex - maxNoOfDots + 1, 0);
@@ -133,43 +183,72 @@ export default class WmCarousel extends BaseComponent {
133
183
  }
134
184
  return /*#__PURE__*/React.createElement(View, {
135
185
  style: this.styles.dotsWrapperStyle
186
+ }, /*#__PURE__*/React.createElement(View, {
187
+ style: {
188
+ flexDirection: this.isRTL ? 'row-reverse' : 'row'
189
+ }
136
190
  }, data.map((item, index) => {
137
191
  return index >= minIndex && index <= maxIndex ? /*#__PURE__*/React.createElement(View, {
138
192
  key: 'dots_' + this.generateItemKey(item, index, this.state.props),
139
- style: [this.styles.dotStyle, index === this.state.activeIndex - 1 ? this.styles.activeDotStyle : null]
193
+ style: [this.styles.dotStyle]
140
194
  }) : null;
141
- }));
195
+ }), /*#__PURE__*/React.createElement(Animated.View, {
196
+ style: [this.styles.dotStyle, this.styles.activeDotStyle, {
197
+ width: undefined,
198
+ height: undefined,
199
+ transform: [{
200
+ translateX: this.dotPosition
201
+ }]
202
+ }, this.isRTL ? {
203
+ right: 0
204
+ } : {
205
+ left: 0
206
+ }]
207
+ }, /*#__PURE__*/React.createElement(Animated.View, {
208
+ style: [{
209
+ width: 1,
210
+ height: 1
211
+ }, {
212
+ // This is failing in Android
213
+ // minWidth: this.dotScale
214
+ }]
215
+ }))));
142
216
  }
143
217
  renderWidget(props) {
144
- var _data;
218
+ var _data, _this$styles$slide;
145
219
  const hasNavs = props.controls === 'both' || props.controls === 'navs';
146
220
  const hasDots = props.controls === 'both' || props.controls === 'indicators';
147
221
  let styles = this.styles;
148
222
  let data = props.type === 'dynamic' ? props.dataset : props.children;
149
223
  data = isArray(data) ? data : [];
150
224
  this.noOfSlides = ((_data = data) === null || _data === void 0 ? void 0 : _data.length) || 0;
225
+ let slideScale = undefined;
226
+ let slideTranslateX = undefined;
227
+ if (isArray((_this$styles$slide = this.styles.slide) === null || _this$styles$slide === void 0 ? void 0 : _this$styles$slide.transform)) {
228
+ var _this$styles$slide2, _this$styles$slide3;
229
+ slideScale = (_this$styles$slide2 = this.styles.slide) === null || _this$styles$slide2 === void 0 || (_this$styles$slide2 = _this$styles$slide2.transform) === null || _this$styles$slide2 === void 0 || (_this$styles$slide2 = _this$styles$slide2.find(o => !isUndefined(o.scale))) === null || _this$styles$slide2 === void 0 ? void 0 : _this$styles$slide2.scale;
230
+ slideTranslateX = (_this$styles$slide3 = this.styles.slide) === null || _this$styles$slide3 === void 0 || (_this$styles$slide3 = _this$styles$slide3.transform) === null || _this$styles$slide3 === void 0 || (_this$styles$slide3 = _this$styles$slide3.find(o => !isUndefined(o.translateX))) === null || _this$styles$slide3 === void 0 ? void 0 : _this$styles$slide3.translateX;
231
+ }
151
232
  // TODO: loop prop on Carousel is not working Refer: https://github.com/meliorence/react-native-snap-carousel/issues/608
152
233
  return /*#__PURE__*/React.createElement(View, {
153
- style: styles.root,
154
- onLayout: this.setSlideLayout.bind(this)
234
+ style: styles.root
155
235
  }, this._background, /*#__PURE__*/React.createElement(SwipeAnimation.View, {
156
236
  enableGestures: props.enablegestures,
157
237
  style: {
158
- flexDirection: 'row',
159
- flexWrap: 'nowrap',
160
- alignItems: 'center'
238
+ height: props.type === 'dynamic' ? undefined : '100%'
161
239
  },
162
240
  direction: "horizontal",
163
241
  ref: r => {
164
242
  this.animationView = r;
165
243
  },
166
- handlers: this.animationHandlers
244
+ handlers: this.animationHandlers,
245
+ slideMinWidth: this.styles.slide.width
167
246
  }, data.map((item, index) => {
168
247
  var _this$animationView5, _this$animationView6;
169
248
  const isActive = index === this.state.activeIndex - 1;
170
249
  let scale = (_this$animationView5 = this.animationView) === null || _this$animationView5 === void 0 ? void 0 : _this$animationView5.animationPhase.interpolate({
171
250
  inputRange: [-2000, index - 1, index, index + 1, 2000],
172
- outputRange: [0.8, 0.8, 1, 0.8, 0.8]
251
+ outputRange: [slideScale, slideScale, 1, slideScale, slideScale]
173
252
  });
174
253
  let translateX = (_this$animationView6 = this.animationView) === null || _this$animationView6 === void 0 ? void 0 : _this$animationView6.animationPhase.interpolate({
175
254
  inputRange: [-2000, index - 1, index, index + 1, 2000],
@@ -177,21 +256,33 @@ export default class WmCarousel extends BaseComponent {
177
256
  });
178
257
  return /*#__PURE__*/React.createElement(Animated.View, {
179
258
  key: this.generateItemKey(item, index, props),
180
- style: [this.styles.slide, index === 0 ? this.styles.firstSlide : null, index === data.length - 1 ? this.styles.lastSlide : null, isActive ? this.styles.activeSlide : null, translateX && scale ? {
259
+ onLayout: this.addSlideLayout.bind(this, index),
260
+ style: [{
261
+ height: props.type === 'dynamic' ? undefined : '100%'
262
+ }, this.styles.slide, index === 0 ? this.styles.firstSlide : null, index === data.length - 1 ? this.styles.lastSlide : null, isActive ? this.styles.activeSlide : null, translateX && scale ? {
181
263
  transform: [{
182
- translateX: translateX
264
+ translateX: !isUndefined(slideTranslateX) ? slideTranslateX : translateX
183
265
  }, {
184
266
  scale: scale
185
267
  }]
186
268
  } : null]
187
- }, this.renderItem(item, index));
269
+ }, /*#__PURE__*/React.createElement(Tappable, {
270
+ onTap: () => {
271
+ var _this$animationView7;
272
+ this.onSlideChange(index + 1);
273
+ const position = this.slidesLayout.filter((l, i) => i < index).reduce((s, l) => s + l.width, 0);
274
+ (_this$animationView7 = this.animationView) === null || _this$animationView7 === void 0 ? void 0 : _this$animationView7.setPosition(-1 * position);
275
+ }
276
+ }, this.renderItem(item, index)));
188
277
  })), hasNavs ? /*#__PURE__*/React.createElement(View, {
189
278
  style: styles.btnPanel
190
279
  }, /*#__PURE__*/React.createElement(WmIcon, {
280
+ id: this.getTestId('prev_icon'),
191
281
  iconclass: "wi wi-chevron-left fa-2x",
192
282
  styles: styles.prevBtn,
193
283
  onTap: this.prev
194
284
  }), /*#__PURE__*/React.createElement(WmIcon, {
285
+ id: this.getTestId('next_icon'),
195
286
  iconclass: "wi wi-chevron-right fa-2x",
196
287
  styles: styles.nextBtn,
197
288
  onTap: this.next
@@ -1 +1 @@
1
- {"version":3,"names":["React","isArray","Animated","View","DefaultKeyExtractor","WmIcon","BaseComponent","BaseComponentState","SwipeAnimation","WmCarouselProps","DEFAULT_CLASS","WmCarouselState","constructor","arguments","_defineProperty","WmCarousel","props","bounds","e","_this$slideLayout","activeTabIndex","state","activeIndex","w","slideLayout","width","noOfTabs","dataset","length","lower","center","upper","computePhase","value","_this$slideLayout2","Math","abs","onLower","onSlideChange","onUpper","index","prevIndex","updateState","invokeEventCallback","item","type","renderSlide","children","_this$animationView","animationView","setPosition","_this$animationView2","goToUpper","_this$animationView3","goToLower","cleanup","push","stopPlay","generateItemKey","itemkey","_showSkeleton","keyExtractor","getKey","setSlideLayout","event","nativeEvent","layout","forceUpdate","autoPlay","animation","animationinterval","intervalId","setInterval","next","clearInterval","setTimeout","_this$animationView4","onPropertyChange","name","$new","$old","_this$keyExtractor","clear","min","renderPagination","data","maxNoOfDots","maxnoofdots","minIndex","max","maxIndex","createElement","style","styles","dotsWrapperStyle","map","key","dotStyle","activeDotStyle","renderWidget","_data","hasNavs","controls","hasDots","noOfSlides","root","onLayout","bind","_background","enableGestures","enablegestures","flexDirection","flexWrap","alignItems","direction","ref","r","handlers","animationHandlers","_this$animationView5","_this$animationView6","isActive","scale","animationPhase","interpolate","inputRange","outputRange","translateX","slide","firstSlide","lastSlide","activeSlide","transform","renderItem","btnPanel","iconclass","prevBtn","onTap","prev","nextBtn"],"sources":["carousel.component.tsx"],"sourcesContent":["import React from 'react';\nimport { isArray } from 'lodash-es';\nimport { Animated, View, Text, LayoutChangeEvent, LayoutRectangle } from 'react-native';\nimport { DefaultKeyExtractor } from '@wavemaker/app-rn-runtime/core/key.extractor';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport * as SwipeAnimation from '@wavemaker/app-rn-runtime/gestures/swipe.animation';\n\nimport WmCarouselProps from './carousel.props';\nimport { DEFAULT_CLASS, WmCarouselStyles } from './carousel.styles';\n\nexport class WmCarouselState extends BaseComponentState<WmCarouselProps> {\n activeIndex = 1;\n}\n\nexport default class WmCarousel extends BaseComponent<WmCarouselProps, WmCarouselState, WmCarouselStyles> {\n\n noOfSlides: number = 0;\n private slideLayout: LayoutRectangle = null as any;\n private keyExtractor = new DefaultKeyExtractor();\n stopPlay: Function = null as any;\n private animationView: SwipeAnimation.View | null = null as any;\n private animationHandlers = {\n bounds: (e) => {\n const activeTabIndex = this.state.activeIndex - 1,\n w = this.slideLayout?.width || 0,\n noOfTabs = this.state.props.dataset.length;\n return {\n lower: -1 * (activeTabIndex - (activeTabIndex === 0 ? 0 : 1)) * w,\n center: -1 * activeTabIndex * w,\n upper: -1 * (activeTabIndex + (activeTabIndex === noOfTabs - 1 ? 0 : 1)) * w\n };\n },\n computePhase: (value) => {\n const w = this.slideLayout?.width || 0;\n return w && Math.abs(value / w);\n },\n onLower: (e) => {\n this.onSlideChange(this.state.activeIndex - 1);\n },\n onUpper: (e) => {\n this.onSlideChange(this.state.activeIndex + 1);\n }\n } as SwipeAnimation.Handlers;\n\n constructor(props: WmCarouselProps) {\n super(props, DEFAULT_CLASS, new WmCarouselProps(), new WmCarouselState());\n this.cleanup.push(() => {\n this.stopPlay && this.stopPlay();\n })\n }\n\n private generateItemKey(item: any, index: number, props: WmCarouselProps) {\n if (props.itemkey && item && !this._showSkeleton) {\n return props.itemkey(item, index);\n }\n return 'list_item_' + this.keyExtractor.getKey(item, true);\n }\n\n setSlideLayout(event: LayoutChangeEvent) {\n this.slideLayout = event.nativeEvent.layout;\n this.forceUpdate();\n }\n\n autoPlay() {\n const props = this.state.props;\n this.stopPlay && this.stopPlay();\n if (props.animation === 'auto' && props.animationinterval) {\n const intervalId = setInterval(() => {\n this.next();\n }, props.animationinterval * 1000);\n this.stopPlay = () => clearInterval(intervalId);\n } else {\n setTimeout(() => {\n this.onSlideChange(1);\n this.animationView?.setPosition(0);\n }, 1000);\n }\n }\n\n onPropertyChange(name: string, $new: any, $old: any): void {\n super.onPropertyChange(name, $new, $old);\n switch (name) {\n case 'dataset': {\n this.keyExtractor?.clear();\n this.updateState({\n activeIndex: Math.min(this.state.activeIndex, $new?.length || 0)\n } as WmCarouselState);\n break;\n }\n case 'animation':\n case 'animationinterval' : {\n this.autoPlay();\n }\n }\n }\n\n onSlideChange = (index: number) => {\n const prevIndex = this.state.activeIndex;\n this.updateState({\n activeIndex: index\n } as WmCarouselState,\n () => this.invokeEventCallback('onChange', [this, index, prevIndex]));\n }\n\n renderItem = (item: any, index: number) => {\n const props = this.state.props;\n if (props.type === 'dynamic') {\n return props.renderSlide ? props.renderSlide(item, index) : null;\n }\n return props.children[index];\n }\n\n next = () => {\n if (this.state.activeIndex >= this.state.props.dataset.length) {\n this.onSlideChange(1);\n this.animationView?.setPosition(0);\n } else {\n this.animationView?.goToUpper();\n }\n }\n\n prev = () => {\n this.animationView?.goToLower();\n }\n\n renderPagination(data: any) {\n const maxNoOfDots = this.state.props.maxnoofdots;\n let minIndex = Math.max(this.state.activeIndex - maxNoOfDots + 1, 0);\n let maxIndex = Math.min(minIndex + maxNoOfDots - 1, data.length);\n if (maxIndex === data.length) {\n minIndex = maxIndex - maxNoOfDots;\n }\n return (<View style={this.styles.dotsWrapperStyle}>\n {\n data.map((item: any, index: number) => {\n return index >= minIndex && index <= maxIndex ? (\n <View key={'dots_' + this.generateItemKey(item, index, this.state.props)} \n style={[\n this.styles.dotStyle,\n index === this.state.activeIndex - 1 ? this.styles.activeDotStyle: null]}>\n </View>) : null;\n })\n }\n </View>);\n }\n\n renderWidget(props: WmCarouselProps) {\n const hasNavs = props.controls === 'both' || props.controls ==='navs';\n const hasDots = props.controls === 'both' || props.controls ==='indicators';\n let styles = this.styles;\n let data = props.type === 'dynamic' ? props.dataset : props.children;\n data = isArray(data) ? data : [];\n this.noOfSlides = data?.length || 0;\n // TODO: loop prop on Carousel is not working Refer: https://github.com/meliorence/react-native-snap-carousel/issues/608\n return (\n <View style={styles.root} onLayout={this.setSlideLayout.bind(this)}>\n {this._background}\n <SwipeAnimation.View \n enableGestures={props.enablegestures}\n style={{\n flexDirection: 'row',\n flexWrap: 'nowrap',\n alignItems: 'center'\n }}\n direction='horizontal'\n ref={(r) => {this.animationView = r}}\n handlers = {this.animationHandlers}\n >\n {data.map((item: any, index: number) => {\n const isActive = index === this.state.activeIndex - 1;\n let scale = this.animationView?.animationPhase.interpolate({\n inputRange: [-2000, index - 1, index, index + 1, 2000],\n outputRange: [0.8, 0.8, 1, 0.8, 0.8]\n });\n let translateX = this.animationView?.animationPhase.interpolate({\n inputRange: [-2000, index - 1, index, index + 1, 2000],\n outputRange: [-56, -56, 0, 56, 56]\n });\n return (\n <Animated.View key={this.generateItemKey(item, index, props)}\n style={[this.styles.slide,\n index === 0 ? this.styles.firstSlide : null,\n index === data.length - 1 ? this.styles.lastSlide: null,\n isActive ? this.styles.activeSlide: null,\n translateX && scale ? {\n transform: [\n {\n translateX: translateX\n },\n {\n scale: scale\n }\n ]\n } : null]}>\n {this.renderItem(item, index)}\n </Animated.View>\n );\n })}\n </SwipeAnimation.View>\n {hasNavs ? (\n <View style={styles.btnPanel}>\n <WmIcon\n iconclass=\"wi wi-chevron-left fa-2x\"\n styles={styles.prevBtn}\n onTap={this.prev}/>\n <WmIcon\n iconclass=\"wi wi-chevron-right fa-2x\"\n styles={styles.nextBtn}\n onTap={this.next}/>\n </View>): null}\n {hasDots && data ? this.renderPagination(data) : null}\n </View>);\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,QAAQ,WAAW;AACnC,SAASC,QAAQ,EAAEC,IAAI,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AU,EAAEA;UACd,CAAC,EACD;YACEL,KAAK,EAAEA;UACT,CAAC;QAEL,CAAC,GAAG,IAAI;MAAE,GACX,IAAI,CAACW,UAAU,CAACzF,IAAI,EAAEJ,KAAK,CACf,CAAC;IAEpB,CAAC,CACkB,CAAC,EACrB6D,OAAO,gBACNrG,KAAA,CAAA2F,aAAA,CAACxF,IAAI;MAACyF,KAAK,EAAEC,MAAM,CAACyC;IAAS,gBAC3BtI,KAAA,CAAA2F,aAAA,CAACtF,MAAM;MACLkI,SAAS,EAAC,0BAA0B;MACpC1C,MAAM,EAAEA,MAAM,CAAC2C,OAAQ;MACvBC,KAAK,EAAE,IAAI,CAACC;IAAK,CAAC,CAAC,eACrB1I,KAAA,CAAA2F,aAAA,CAACtF,MAAM;MACLkI,SAAS,EAAC,2BAA2B;MACrC1C,MAAM,EAAEA,MAAM,CAAC8C,OAAQ;MACvBF,KAAK,EAAE,IAAI,CAAChE;IAAK,CAAC,CAChB,CAAC,GAAG,IAAI,EACb8B,OAAO,IAAIlB,IAAI,GAAG,IAAI,CAACD,gBAAgB,CAACC,IAAI,CAAC,GAAG,IAC/C,CAAC;EACX;AACF"}
1
+ {"version":3,"names":["React","isArray","isUndefined","Animated","Easing","View","DefaultKeyExtractor","WmIcon","BaseComponent","BaseComponentState","SwipeAnimation","Tappable","WmCarouselProps","DEFAULT_CLASS","WmCarouselState","constructor","arguments","_defineProperty","WmCarousel","props","Value","bounds","e","_this$slidesLayout","_this$slidesLayout$ac","activeTabIndex","state","activeIndex","lower","slidesLayout","filter","l","i","reduce","s","width","center","upper","computePhase","value","_this$slidesLayout$ac2","w","Math","abs","onLower","onSlideChange","onUpper","index","prevIndex","updateState","invokeEventCallback","animatePagination","item","type","renderSlide","children","data","dataset","length","_this$animationView","animationView","setPosition","_this$animationView2","goToUpper","_this$animationView3","goToLower","cleanup","push","stopPlay","addSlideLayout","nativeEvent","layout","forceUpdate","generateItemKey","itemkey","_showSkeleton","keyExtractor","getKey","autoPlay","animation","animationinterval","intervalId","setInterval","next","clearInterval","setTimeout","_this$animationView4","onPropertyChange","name","$new","$old","_this$keyExtractor","clear","min","_this$styles$dotStyle","_this$styles$dotStyle2","_this$styles$dotStyle3","margin","styles","dotStyle","marginLeft","marginRight","size","position","max","scale","options","useNativeDriver","duration","easing","out","linear","sequence","timing","dotScale","toValue","parallel","dotPosition","isRTL","start","renderPagination","maxNoOfDots","maxnoofdots","minIndex","maxIndex","createElement","style","dotsWrapperStyle","flexDirection","map","key","activeDotStyle","undefined","height","transform","translateX","right","left","renderWidget","_data","_this$styles$slide","hasNavs","controls","hasDots","noOfSlides","slideScale","slideTranslateX","slide","_this$styles$slide2","_this$styles$slide3","find","o","root","_background","enableGestures","enablegestures","direction","ref","r","handlers","animationHandlers","slideMinWidth","_this$animationView5","_this$animationView6","isActive","animationPhase","interpolate","inputRange","outputRange","onLayout","bind","firstSlide","lastSlide","activeSlide","onTap","_this$animationView7","renderItem","btnPanel","id","getTestId","iconclass","prevBtn","prev","nextBtn"],"sources":["carousel.component.tsx"],"sourcesContent":["import React from 'react';\nimport { isArray, isUndefined } from 'lodash-es';\nimport { Animated, Easing, View, LayoutChangeEvent, LayoutRectangle } from 'react-native';\nimport { DefaultKeyExtractor } from '@wavemaker/app-rn-runtime/core/key.extractor';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport * as SwipeAnimation from '@wavemaker/app-rn-runtime/gestures/swipe.animation';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\n\nimport WmCarouselProps from './carousel.props';\nimport { DEFAULT_CLASS, WmCarouselStyles } from './carousel.styles';\n\nexport class WmCarouselState extends BaseComponentState<WmCarouselProps> {\n activeIndex = 1;\n}\n\nexport default class WmCarousel extends BaseComponent<WmCarouselProps, WmCarouselState, WmCarouselStyles> {\n\n noOfSlides: number = 0;\n private slidesLayout: LayoutRectangle[] = [];\n private keyExtractor = new DefaultKeyExtractor();\n stopPlay: Function = null as any;\n private dotScale = new Animated.Value(0);\n private dotPosition = new Animated.Value(0);\n private animationView: SwipeAnimation.View | null = null as any;\n private animationHandlers = {\n bounds: (e) => {\n const activeTabIndex = this.state.activeIndex - 1;\n let lower = 0;\n if (activeTabIndex > 0) {\n lower = this.slidesLayout\n .filter((l , i) => i < activeTabIndex - 1)\n .reduce((s, l) => s + l.width, 0);\n }\n let center = lower + (this.slidesLayout[activeTabIndex - 1]?.width || 0);\n let upper = center + (this.slidesLayout[activeTabIndex]?.width || 0);\n return {\n lower: -1 * lower,\n center: -1 * center,\n upper: -1 * upper\n };\n },\n computePhase: (value) => {\n const activeTabIndex = this.state.activeIndex - 1;\n const w = this.slidesLayout[activeTabIndex]?.width || 0;\n return w && Math.abs(value / w);\n },\n onLower: (e) => {\n this.onSlideChange(this.state.activeIndex - 1);\n },\n onUpper: (e) => {\n this.onSlideChange(this.state.activeIndex + 1);\n }\n } as SwipeAnimation.Handlers;\n\n constructor(props: WmCarouselProps) {\n super(props, DEFAULT_CLASS, new WmCarouselProps(), new WmCarouselState());\n this.cleanup.push(() => {\n this.stopPlay && this.stopPlay();\n })\n }\n\n addSlideLayout(index: number, nativeEvent: LayoutChangeEvent) {\n this.slidesLayout[index] = nativeEvent.nativeEvent.layout;\n if (index === this.state.activeIndex) {\n this.forceUpdate();\n }\n }\n\n private generateItemKey(item: any, index: number, props: WmCarouselProps) {\n if (props.itemkey && item && !this._showSkeleton) {\n return props.itemkey(item, index);\n }\n return 'list_item_' + this.keyExtractor.getKey(item, true);\n }\n\n autoPlay() {\n const props = this.state.props;\n this.stopPlay && this.stopPlay();\n if (props.animation === 'auto' && props.animationinterval) {\n const intervalId = setInterval(() => {\n this.next();\n }, props.animationinterval * 1000);\n this.stopPlay = () => clearInterval(intervalId);\n } else {\n setTimeout(() => {\n this.onSlideChange(1);\n this.animationView?.setPosition(0);\n }, 1000);\n }\n }\n\n onPropertyChange(name: string, $new: any, $old: any): void {\n super.onPropertyChange(name, $new, $old);\n switch (name) {\n case 'dataset': {\n this.keyExtractor?.clear();\n this.updateState({\n activeIndex: Math.min(this.state.activeIndex, $new?.length || 1)\n } as WmCarouselState);\n break;\n }\n case 'animation':\n case 'animationinterval' : {\n this.autoPlay();\n }\n }\n }\n\n animatePagination(index: number) {\n const prevIndex = this.state.activeIndex;\n const margin = ((this.styles.dotStyle?.marginLeft as number)|| 0) + \n ((this.styles.dotStyle?.marginRight as number)|| 0)\n const width = (this.styles.dotStyle?.width as number)|| 2;\n const size = margin + width;\n const position = Math.max(index - 1, 0) * size;\n const scale = Math.abs(index - prevIndex) * size;\n const options = {\n useNativeDriver: true,\n duration: 200,\n easing: Easing.out(Easing.linear)\n };\n if (prevIndex < index) {\n Animated.sequence([\n Animated.timing(this.dotScale, {\n toValue: scale,\n ...options\n }),\n Animated.parallel([\n Animated.timing(this.dotScale, {\n toValue: 0,\n ...options\n }),\n Animated.timing(this.dotPosition, {\n toValue: (this.isRTL ? -1: 1) * position,\n ...options\n })\n ])\n ]).start();\n } else if (prevIndex > index) {\n Animated.sequence([\n Animated.parallel([\n Animated.timing(this.dotScale, {\n toValue: scale,\n ...options\n }),\n Animated.timing(this.dotPosition, {\n toValue: (this.isRTL ? -1: 1) * position,\n ...options\n })\n ]),\n Animated.timing(this.dotScale, {\n toValue: 0,\n ...options\n }),\n ]).start();\n } \n }\n\n onSlideChange = (index: number) => {\n const prevIndex = this.state.activeIndex;\n this.updateState({\n activeIndex: index\n } as WmCarouselState,\n () => this.invokeEventCallback('onChange', [this, index, prevIndex]));\n this.animatePagination(index);\n }\n\n renderItem = (item: any, index: number) => {\n const props = this.state.props;\n if (props.type === 'dynamic') {\n return props.renderSlide ? props.renderSlide(item, index, this) : null;\n }\n return props.children[index];\n }\n\n next = () => {\n const props = this.state.props;\n const data = props.type === 'dynamic' ? props.dataset : props.children;\n if (this.state.activeIndex >= data?.length || 0) {\n this.onSlideChange(1);\n this.animationView?.setPosition(0);\n } else {\n this.animationView?.goToUpper();\n }\n }\n\n prev = () => {\n this.animationView?.goToLower();\n }\n\n renderPagination(data: any) {\n const maxNoOfDots = this.state.props.maxnoofdots;\n let minIndex = Math.max(this.state.activeIndex - maxNoOfDots + 1, 0);\n let maxIndex = Math.min(minIndex + maxNoOfDots - 1, data.length);\n if (maxIndex === data.length) {\n minIndex = maxIndex - maxNoOfDots;\n }\n return (<View style={this.styles.dotsWrapperStyle}>\n <View style={{flexDirection: this.isRTL ? 'row-reverse' : 'row'}}>\n {\n data.map((item: any, index: number) => {\n return index >= minIndex && index <= maxIndex ? (\n <View key={'dots_' + this.generateItemKey(item, index, this.state.props)} \n style={[this.styles.dotStyle]}>\n </View>) : null;\n })\n }\n <Animated.View style={[\n this.styles.dotStyle,\n this.styles.activeDotStyle, {\n width: undefined,\n height: undefined,\n transform: [{\n translateX: this.dotPosition\n }]\n }, this.isRTL ? { right: 0 } : { left: 0}]}>\n <Animated.View style={[{\n width: 1,\n height: 1\n }, {\n // This is failing in Android\n // minWidth: this.dotScale\n }]}>\n </Animated.View>\n </Animated.View>\n </View>\n </View>);\n }\n\n renderWidget(props: WmCarouselProps) {\n const hasNavs = props.controls === 'both' || props.controls ==='navs';\n const hasDots = props.controls === 'both' || props.controls ==='indicators';\n let styles = this.styles;\n let data = props.type === 'dynamic' ? props.dataset : props.children;\n data = isArray(data) ? data : [];\n this.noOfSlides = data?.length || 0;\n let slideScale = undefined as any;\n let slideTranslateX = undefined as any;\n if (isArray(this.styles.slide?.transform)) {\n slideScale = (this.styles.slide?.transform?.find(o => !isUndefined((o as any).scale)) as any)?.scale;\n slideTranslateX = (this.styles.slide?.transform?.find(o => !isUndefined((o as any).translateX)) as any)?.translateX;\n }\n // TODO: loop prop on Carousel is not working Refer: https://github.com/meliorence/react-native-snap-carousel/issues/608\n return (\n <View style={styles.root}>\n {this._background}\n <SwipeAnimation.View \n enableGestures={props.enablegestures}\n style={{\n height: props.type === 'dynamic' ? undefined : '100%',\n }}\n direction='horizontal'\n ref={(r) => {this.animationView = r}}\n handlers = {this.animationHandlers}\n slideMinWidth={this.styles.slide.width}\n >\n {data.map((item: any, index: number) => {\n const isActive = index === this.state.activeIndex - 1;\n let scale = this.animationView?.animationPhase.interpolate({\n inputRange: [-2000, index - 1, index, index + 1, 2000],\n outputRange: [slideScale, slideScale, 1, slideScale, slideScale]\n });\n let translateX = this.animationView?.animationPhase.interpolate({\n inputRange: [-2000, index - 1, index, index + 1, 2000],\n outputRange: [-56, -56, 0, 56, 56]\n });\n return (\n <Animated.View key={this.generateItemKey(item, index, props)}\n onLayout={this.addSlideLayout.bind(this, index)}\n style={[\n {height: props.type === 'dynamic' ? undefined : '100%'},\n this.styles.slide,\n index === 0 ? this.styles.firstSlide : null,\n index === data.length - 1 ? this.styles.lastSlide: null,\n isActive ? this.styles.activeSlide: null,\n translateX && scale ? {\n transform: [\n {\n translateX: !isUndefined(slideTranslateX) ? slideTranslateX : translateX\n }, {\n scale: scale\n }\n ]\n } : null]}>\n <Tappable onTap={() => {\n this.onSlideChange(index + 1);\n const position = this.slidesLayout\n .filter((l , i) => i < index)\n .reduce((s, l) => s + l.width, 0);\n this.animationView?.setPosition(-1 * position);\n }}>\n {this.renderItem(item, index)}\n </Tappable>\n </Animated.View>\n );\n })}\n </SwipeAnimation.View>\n {hasNavs ? (\n <View style={styles.btnPanel}>\n <WmIcon\n id={this.getTestId('prev_icon')}\n iconclass=\"wi wi-chevron-left fa-2x\"\n styles={styles.prevBtn}\n onTap={this.prev}/>\n <WmIcon\n id={this.getTestId('next_icon')}\n iconclass=\"wi wi-chevron-right fa-2x\"\n styles={styles.nextBtn}\n onTap={this.next}/>\n </View>): null}\n {hasDots && data ? this.renderPagination(data) : null}\n </View>);\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,EAAEC,WAAW,QAAQ,WAAW;AAChD,SAASC,QAAQ,EAAEC,MAAM,EAAEC,IAAI,QAA4C,cAAc;A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K,GAAG,CAAC,CAAC;UAC7B,MAAMwD,QAAQ,GAAG,IAAI,CAAC1E,YAAY,CAC/BC,MAAM,CAAC,CAACC,CAAC,EAAGC,CAAC,KAAKA,CAAC,GAAGe,KAAK,CAAC,CAC5Bd,MAAM,CAAC,CAACC,CAAC,EAAEH,CAAC,KAAKG,CAAC,GAAGH,CAAC,CAACI,KAAK,EAAE,CAAC,CAAC;UACnC,CAAA4I,oBAAA,OAAI,CAACnH,aAAa,cAAAmH,oBAAA,uBAAlBA,oBAAA,CAAoBlH,WAAW,CAAC,CAAC,CAAC,GAAG0C,QAAQ,CAAC;QAChD;MAAE,GACC,IAAI,CAACyE,UAAU,CAAC5H,IAAI,EAAEL,KAAK,CACpB,CACG,CAAC;IAEpB,CAAC,CACkB,CAAC,EACrB8F,OAAO,gBACN7I,KAAA,CAAA6H,aAAA,CAACxH,IAAI;MAACyH,KAAK,EAAE5B,MAAM,CAAC+E;IAAS,gBAC3BjL,KAAA,CAAA6H,aAAA,CAACtH,MAAM;MACL2K,EAAE,EAAE,IAAI,CAACC,SAAS,CAAC,WAAW,CAAE;MAChCC,SAAS,EAAC,0BAA0B;MACpClF,MAAM,EAAEA,MAAM,CAACmF,OAAQ;MACvBP,KAAK,EAAE,IAAI,CAACQ;IAAK,CAAC,CAAC,eACrBtL,KAAA,CAAA6H,aAAA,CAACtH,MAAM;MACL2K,EAAE,EAAE,IAAI,CAACC,SAAS,CAAC,WAAW,CAAE;MAChCC,SAAS,EAAC,2BAA2B;MACrClF,MAAM,EAAEA,MAAM,CAACqF,OAAQ;MACvBT,KAAK,EAAE,IAAI,CAAC3F;IAAK,CAAC,CAChB,CAAC,GAAG,IAAI,EACb4D,OAAO,IAAIvF,IAAI,GAAG,IAAI,CAACgE,gBAAgB,CAAChE,IAAI,CAAC,GAAG,IAC/C,CAAC;EACX;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmCarouselProps","constructor","arguments","_defineProperty"],"sources":["carousel.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\nimport React from 'react';\n\nexport default class WmCarouselProps extends BaseProps {\n dataset: any = null;\n type?: 'static' | 'dynamic' = 'static';\n animation?: 'auto' | 'none' = 'auto';\n animationinterval?: number = 3;\n controls?: 'both' | 'none' | 'navs' | 'indicators' = 'both';\n children? = null as any;\n itemkey?: ($item: any, $index: any) => any = null as any;\n renderSlide?: ($item: any, $index: number) => React.ReactNode;\n enablegestures = true;\n maxnoofdots = 20;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAGzE,eAAe,MAAMC,eAAe,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,kBACtC,IAAI;IAAAA,eAAA,eACW,QAAQ;IAAAA,eAAA,oBACR,MAAM;IAAAA,eAAA,4BACP,CAAC;IAAAA,eAAA,mBACuB,MAAM;IAAAA,eAAA,mBAC/C,IAAI;IAAAA,eAAA,kBAC6B,IAAI;IAAAA,eAAA;IAAAA,eAAA,yBAE/B,IAAI;IAAAA,eAAA,sBACR,EAAE;EAAA;AAClB"}
1
+ {"version":3,"names":["BaseProps","WmCarouselProps","constructor","arguments","_defineProperty"],"sources":["carousel.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\nimport React from 'react';\n\nexport default class WmCarouselProps extends BaseProps {\n dataset: any = null;\n type?: 'static' | 'dynamic' = 'static';\n animation?: 'auto' | 'none' = 'auto';\n animationinterval?: number = 3;\n controls?: 'both' | 'none' | 'navs' | 'indicators' = 'both';\n children? = null as any;\n itemkey?: ($item: any, $index: any) => any = null as any;\n renderSlide?: ($item: any, $index: number, carousel: any) => React.ReactNode;\n enablegestures = true;\n maxnoofdots = 20;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAGzE,eAAe,MAAMC,eAAe,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,kBACtC,IAAI;IAAAA,eAAA,eACW,QAAQ;IAAAA,eAAA,oBACR,MAAM;IAAAA,eAAA,4BACP,CAAC;IAAAA,eAAA,mBACuB,MAAM;IAAAA,eAAA,mBAC/C,IAAI;IAAAA,eAAA,kBAC6B,IAAI;IAAAA,eAAA;IAAAA,eAAA,yBAE/B,IAAI;IAAAA,eAAA,sBACR,EAAE;EAAA;AAClB"}
@@ -17,9 +17,10 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
17
17
  text: {},
18
18
  slide: {
19
19
  width: '100%',
20
+ overflow: 'hidden',
20
21
  paddingHorizontal: 16,
21
22
  transform: [{
22
- translateX: 0
23
+ scale: 0.8
23
24
  }]
24
25
  },
25
26
  firstSlide: {},
@@ -71,15 +72,18 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
71
72
  paddingBottom: 4
72
73
  },
73
74
  activeDotStyle: {
75
+ position: 'absolute',
74
76
  backgroundColor: themeVariables.carouselActiveDotColor,
75
- opacity: 1
77
+ opacity: 1,
78
+ padding: 4
76
79
  },
77
80
  dotStyle: {
78
81
  width: 8,
79
82
  height: 8,
80
83
  borderRadius: 10,
81
84
  opacity: 0.2,
82
- marginHorizontal: 2,
85
+ marginLeft: 2,
86
+ marginRight: 2,
83
87
  backgroundColor: themeVariables.carouselDotColor
84
88
  }
85
89
  });
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","btn","height","width","borderRadius","borderColor","transparent","borderWidth","justifyContent","defaultStyles","root","position","text","slide","paddingHorizontal","transform","translateX","firstSlide","lastSlide","activeSlide","btnPanel","top","marginTop","flexDirection","alignItems","prevBtn","marginLeft","backgroundColor","carouselPrevBgColor","fontSize","icon","color","carouselPrevBtnColor","nextBtn","marginRight","carouselNextBtnColor","dotsWrapperStyle","opacity","carouselDotWrapperBgColor","paddingTop","paddingBottom","activeDotStyle","carouselActiveDotColor","dotStyle","marginHorizontal","carouselDotColor","rotateY","defaultColorF","right","padding","alignSelf","primaryColor"],"sources":["carousel.styles.ts"],"sourcesContent":["import { ViewStyle } from 'react-native';\nimport BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\n\nexport type WmCarouselStyles = BaseStyles & {\n btnPanel: AllStyle,\n prevBtn: WmIconStyles,\n slide: AllStyle,\n firstSlide: AllStyle,\n lastSlide: AllStyle,\n activeSlide: AllStyle,\n nextBtn: WmIconStyles,\n dotsWrapperStyle: AllStyle,\n dotStyle: AllStyle,\n activeDotStyle: AllStyle\n};\nexport const DEFAULT_CLASS = 'app-carousel';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const btn: ViewStyle = {\n height: 48,\n width: 48,\n borderRadius: 48,\n borderColor: themeVariables.transparent,\n borderWidth: 1,\n justifyContent: 'center'\n };\n const defaultStyles: WmCarouselStyles = defineStyles({\n root: {\n position: 'relative'\n },\n text: {},\n slide: {\n width: '100%',\n paddingHorizontal: 16,\n transform: [\n {\n translateX: 0\n }\n ]\n },\n firstSlide: {},\n lastSlide: {},\n activeSlide: {},\n btnPanel: {\n position: 'absolute',\n top: '50%',\n marginTop: -64,\n height: 64,\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n width: '100%'\n },\n prevBtn : {\n root: {\n marginLeft: 12,\n ...btn,\n backgroundColor: themeVariables.carouselPrevBgColor\n },\n text: {\n fontSize: 32\n },\n icon : {\n color: themeVariables.carouselPrevBtnColor\n }\n } as WmIconStyles,\n nextBtn : {\n root: {\n marginRight: 12,\n ...btn,\n backgroundColor: themeVariables.carouselPrevBgColor\n },\n text: {\n fontSize: 32\n },\n icon : {\n color: themeVariables.carouselNextBtnColor\n }\n } as WmIconStyles,\n dotsWrapperStyle:{\n opacity: 1,\n backgroundColor: themeVariables.carouselDotWrapperBgColor,\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center',\n paddingTop: 4,\n paddingBottom: 4\n },\n activeDotStyle: {\n backgroundColor: themeVariables.carouselActiveDotColor,\n opacity: 1\n },\n dotStyle: {\n width: 8,\n height: 8,\n borderRadius: 10,\n opacity: 0.2,\n marginHorizontal: 2,\n backgroundColor: themeVariables.carouselDotColor\n }\n } as WmCarouselStyles);\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', {\n prevBtn : {\n root:{\n transform: [{rotateY: '180deg'}]\n }\n },\n nextBtn : {\n root:{\n transform: [{rotateY: '180deg'}]\n }\n }\n });\n\n addStyle('app-carousel-1', '', {\n btnPanel: {\n top: '100%'\n },\n prevBtn: {\n root: {\n borderRadius: 6\n }\n },\n nextBtn: {\n root: {\n borderRadius: 6\n }\n }\n } as any as WmCarouselStyles);\n\n addStyle('app-carousel-2', '', {\n btnPanel: {\n backgroundColor: themeVariables.defaultColorF,\n width: '100%',\n top: '100%',\n right: 0,\n padding: 8,\n justifyContent: 'flex-end'\n },\n dotsWrapperStyle:{\n alignSelf: 'flex-start',\n justifyContent: 'flex-start'\n },\n activeDotStyle: {\n backgroundColor: themeVariables.primaryColor,\n },\n dotStyle: {\n backgroundColor: themeVariables.primaryColor,\n },\n prevBtn: {\n root: {\n backgroundColor: 'rgba(255, 255, 255, 0.1)',\n borderColor: themeVariables.primaryColor,\n },\n icon : {\n color: themeVariables.primaryColor\n }\n },\n nextBtn: {\n root: {\n marginLeft: 8,\n backgroundColor: 'rgba(255, 255, 255, 0.1)',\n borderColor: themeVariables.primaryColor,\n },\n icon : {\n color: themeVariables.primaryColor\n }\n }\n } as any as WmCarouselStyles);\n});"],"mappings":"AACA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAexF,OAAO,MAAMC,aAAa,GAAG,cAAc;AAC3CF,UAAU,CAACG,aAAa,CAAC,C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AAC,gBAAgB,EAAE,EAAE,EAAE;IAC3BoB,QAAQ,EAAE;MACNO,eAAe,EAAE5B,cAAc,CAACgD,aAAa;MAC7C5C,KAAK,EAAE,MAAM;MACbkB,GAAG,EAAE,MAAM;MACX2B,KAAK,EAAE,CAAC;MACRC,OAAO,EAAE,CAAC;MACVzC,cAAc,EAAE;IACpB,CAAC;IACD4B,gBAAgB,EAAC;MACbc,SAAS,EAAE,YAAY;MACvB1C,cAAc,EAAE;IACpB,CAAC;IACDiC,cAAc,EAAE;MACZd,eAAe,EAAE5B,cAAc,CAACoD;IACpC,CAAC;IACDR,QAAQ,EAAE;MACNhB,eAAe,EAAE5B,cAAc,CAACoD;IACpC,CAAC;IACD1B,OAAO,EAAE;MACLf,IAAI,EAAE;QACFiB,eAAe,EAAE,0BAA0B;QAC3CtB,WAAW,EAAEN,cAAc,CAACoD;MAChC,CAAC;MACDrB,IAAI,EAAG;QACHC,KAAK,EAAEhC,cAAc,CAACoD;MAC1B;IACJ,CAAC;IACDlB,OAAO,EAAE;MACLvB,IAAI,EAAE;QACFgB,UAAU,EAAE,CAAC;QACbC,eAAe,EAAE,0BAA0B;QAC3CtB,WAAW,EAAEN,cAAc,CAACoD;MAChC,CAAC;MACDrB,IAAI,EAAG;QACHC,KAAK,EAAEhC,cAAc,CAACoD;MAC1B;IACJ;EACJ,CAA4B,CAAC;AACjC,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","btn","height","width","borderRadius","borderColor","transparent","borderWidth","justifyContent","defaultStyles","root","position","text","slide","overflow","paddingHorizontal","transform","scale","firstSlide","lastSlide","activeSlide","btnPanel","top","marginTop","flexDirection","alignItems","prevBtn","marginLeft","backgroundColor","carouselPrevBgColor","fontSize","icon","color","carouselPrevBtnColor","nextBtn","marginRight","carouselNextBtnColor","dotsWrapperStyle","opacity","carouselDotWrapperBgColor","paddingTop","paddingBottom","activeDotStyle","carouselActiveDotColor","padding","dotStyle","carouselDotColor","rotateY","defaultColorF","right","alignSelf","primaryColor"],"sources":["carousel.styles.ts"],"sourcesContent":["import { ViewStyle } from 'react-native';\nimport BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\n\nexport type WmCarouselStyles = BaseStyles & {\n btnPanel: AllStyle,\n prevBtn: WmIconStyles,\n slide: AllStyle,\n firstSlide: AllStyle,\n lastSlide: AllStyle,\n activeSlide: AllStyle,\n nextBtn: WmIconStyles,\n dotsWrapperStyle: AllStyle,\n dotStyle: AllStyle,\n activeDotStyle: AllStyle\n};\nexport const DEFAULT_CLASS = 'app-carousel';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const btn: ViewStyle = {\n height: 48,\n width: 48,\n borderRadius: 48,\n borderColor: themeVariables.transparent,\n borderWidth: 1,\n justifyContent: 'center'\n };\n const defaultStyles: WmCarouselStyles = defineStyles({\n root: {\n position: 'relative'\n },\n text: {},\n slide: {\n width: '100%',\n overflow: 'hidden',\n paddingHorizontal: 16,\n transform: [\n {\n scale: 0.8\n }\n ]\n },\n firstSlide: {},\n lastSlide: {},\n activeSlide: {},\n btnPanel: {\n position: 'absolute',\n top: '50%',\n marginTop: -64,\n height: 64,\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n width: '100%'\n },\n prevBtn : {\n root: {\n marginLeft: 12,\n ...btn,\n backgroundColor: themeVariables.carouselPrevBgColor\n },\n text: {\n fontSize: 32\n },\n icon : {\n color: themeVariables.carouselPrevBtnColor\n }\n } as WmIconStyles,\n nextBtn : {\n root: {\n marginRight: 12,\n ...btn,\n backgroundColor: themeVariables.carouselPrevBgColor\n },\n text: {\n fontSize: 32\n },\n icon : {\n color: themeVariables.carouselNextBtnColor\n }\n } as WmIconStyles,\n dotsWrapperStyle:{\n opacity: 1,\n backgroundColor: themeVariables.carouselDotWrapperBgColor,\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center',\n paddingTop: 4,\n paddingBottom: 4\n },\n activeDotStyle: {\n position: 'absolute',\n backgroundColor: themeVariables.carouselActiveDotColor,\n opacity: 1,\n padding: 4\n },\n dotStyle: {\n width: 8,\n height: 8,\n borderRadius: 10,\n opacity: 0.2,\n marginLeft: 2,\n marginRight: 2,\n backgroundColor: themeVariables.carouselDotColor\n }\n } as WmCarouselStyles);\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', {\n prevBtn : {\n root:{\n transform: [{rotateY: '180deg'}]\n }\n },\n nextBtn : {\n root:{\n transform: [{rotateY: '180deg'}]\n }\n }\n });\n\n addStyle('app-carousel-1', '', {\n btnPanel: {\n top: '100%'\n },\n prevBtn: {\n root: {\n borderRadius: 6\n }\n },\n nextBtn: {\n root: {\n borderRadius: 6\n }\n }\n } as any as WmCarouselStyles);\n\n addStyle('app-carousel-2', '', {\n btnPanel: {\n backgroundColor: themeVariables.defaultColorF,\n width: '100%',\n top: '100%',\n right: 0,\n padding: 8,\n justifyContent: 'flex-end'\n },\n dotsWrapperStyle:{\n alignSelf: 'flex-start',\n justifyContent: 'flex-start'\n },\n activeDotStyle: {\n backgroundColor: themeVariables.primaryColor,\n },\n dotStyle: {\n backgroundColor: themeVariables.primaryColor,\n },\n prevBtn: {\n root: {\n backgroundColor: 'rgba(255, 255, 255, 0.1)',\n borderColor: themeVariables.primaryColor,\n },\n icon : {\n color: themeVariables.primaryColor\n }\n },\n nextBtn: {\n root: {\n marginLeft: 8,\n backgroundColor: 'rgba(255, 255, 255, 0.1)',\n borderColor: themeVariables.primaryColor,\n },\n icon : {\n color: themeVariables.primaryColor\n }\n }\n } as any as WmCarouselStyles);\n});"],"mappings":"AACA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAexF,OAAO,MAAM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