@wavemaker/app-rn-runtime 11.4.0-next.28151 → 11.4.0-next.28701

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 (423) hide show
  1. app-rn-runtime/actions/base-action.js.map +1 -1
  2. app-rn-runtime/actions/login-action.js.map +1 -1
  3. app-rn-runtime/actions/logout-action.js.map +1 -1
  4. app-rn-runtime/actions/navigation-action.js.map +1 -1
  5. app-rn-runtime/actions/notification-action.js.map +1 -1
  6. app-rn-runtime/actions/timer-action.js.map +1 -1
  7. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -1
  8. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -1
  9. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -1
  10. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -1
  11. app-rn-runtime/components/advanced/carousel/carousel.component.js +1 -1
  12. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  13. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  14. app-rn-runtime/components/advanced/carousel/carousel.styles.js +16 -0
  15. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  16. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  17. app-rn-runtime/components/advanced/login/login.props.js.map +1 -1
  18. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  19. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -1
  20. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  21. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  22. app-rn-runtime/components/basic/anchor/anchor.component.js +1 -0
  23. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  24. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  25. app-rn-runtime/components/basic/anchor/anchor.styles.js +5 -0
  26. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  27. app-rn-runtime/components/basic/animatedview.component.js +1 -3
  28. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  29. app-rn-runtime/components/basic/audio/audio.component.js +232 -0
  30. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -0
  31. app-rn-runtime/components/basic/audio/audio.props.js +15 -0
  32. app-rn-runtime/components/basic/audio/audio.props.js.map +1 -0
  33. app-rn-runtime/components/basic/audio/audio.styles.js +61 -0
  34. app-rn-runtime/components/basic/audio/audio.styles.js.map +1 -0
  35. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  36. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  37. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  38. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js.map +1 -1
  39. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js.map +1 -1
  40. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  41. app-rn-runtime/components/basic/custom/custom.component.js.map +1 -1
  42. app-rn-runtime/components/basic/custom/custom.props.js.map +1 -1
  43. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  44. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  45. app-rn-runtime/components/basic/icon/icon.styles.js +5 -0
  46. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  47. app-rn-runtime/components/basic/label/label.component.js +2 -1
  48. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  49. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  50. app-rn-runtime/components/basic/label/label.styles.js +8 -0
  51. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  52. app-rn-runtime/components/basic/lottie/lottie.component.js.map +1 -1
  53. app-rn-runtime/components/basic/lottie/lottie.props.js.map +1 -1
  54. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  55. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  56. app-rn-runtime/components/basic/message/message.styles.js +22 -0
  57. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  58. app-rn-runtime/components/basic/modal/modal.component.js.map +1 -1
  59. app-rn-runtime/components/basic/modal/modal.props.js.map +1 -1
  60. app-rn-runtime/components/basic/modal/modal.styles.js.map +1 -1
  61. app-rn-runtime/components/basic/picture/picture.component.js +3 -3
  62. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  63. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  64. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  65. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  66. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  67. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  68. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  69. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  70. app-rn-runtime/components/basic/progress-circle/progress-circle.styles.js.map +1 -1
  71. app-rn-runtime/components/basic/search/local-data-provider.js.map +1 -1
  72. app-rn-runtime/components/basic/search/search.component.js +1 -1
  73. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  74. app-rn-runtime/components/basic/search/search.props.js +1 -0
  75. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  76. app-rn-runtime/components/basic/search/search.styles.js +47 -0
  77. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  78. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  79. app-rn-runtime/components/basic/spinner/spinner.component.js +3 -1
  80. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  81. app-rn-runtime/components/basic/spinner/spinner.props.js.map +1 -1
  82. app-rn-runtime/components/basic/spinner/spinner.styles.js +8 -0
  83. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  84. app-rn-runtime/components/basic/video/video.component.js +2 -2
  85. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  86. app-rn-runtime/components/basic/video/video.props.js.map +1 -1
  87. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  88. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  89. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  90. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  91. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  92. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  93. app-rn-runtime/components/chart/column-chart/column-chart.component.js.map +1 -1
  94. app-rn-runtime/components/chart/donut-chart/donut-chart.component.js.map +1 -1
  95. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js.map +1 -1
  96. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  97. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  98. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +1 -1
  99. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  100. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  101. app-rn-runtime/components/chart/theme/chart.theme.js.map +1 -1
  102. app-rn-runtime/components/container/accordion/accordion.component.js +63 -119
  103. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  104. app-rn-runtime/components/container/accordion/accordion.props.js +1 -0
  105. app-rn-runtime/components/container/accordion/accordion.props.js.map +1 -1
  106. app-rn-runtime/components/container/accordion/accordion.styles.js +14 -4
  107. app-rn-runtime/components/container/accordion/accordion.styles.js.map +1 -1
  108. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +42 -7
  109. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  110. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -1
  111. app-rn-runtime/components/container/container.component.js.map +1 -1
  112. app-rn-runtime/components/container/container.props.js.map +1 -1
  113. app-rn-runtime/components/container/container.styles.js.map +1 -1
  114. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -1
  115. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -1
  116. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -1
  117. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -1
  118. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js.map +1 -1
  119. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js.map +1 -1
  120. app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js.map +1 -1
  121. app-rn-runtime/components/container/linearlayout/linearlayout.component.js.map +1 -1
  122. app-rn-runtime/components/container/linearlayout/linearlayout.props.js.map +1 -1
  123. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -1
  124. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -1
  125. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js.map +1 -1
  126. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js.map +1 -1
  127. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js.map +1 -1
  128. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js.map +1 -1
  129. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  130. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  131. app-rn-runtime/components/container/panel/panel.styles.js +9 -0
  132. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  133. app-rn-runtime/components/container/partial-host.component.js.map +1 -1
  134. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +30 -5
  135. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  136. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js.map +1 -1
  137. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +10 -1
  138. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  139. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  140. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +1 -1
  141. app-rn-runtime/components/container/tabs/tabs.component.js +5 -2
  142. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  143. app-rn-runtime/components/container/tabs/tabs.props.js.map +1 -1
  144. app-rn-runtime/components/container/tabs/tabs.styles.js +39 -0
  145. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  146. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  147. app-rn-runtime/components/container/tile/tile.props.js.map +1 -1
  148. app-rn-runtime/components/container/tile/tile.styles.js.map +1 -1
  149. app-rn-runtime/components/container/wizard/wizard.component.js +15 -6
  150. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  151. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  152. app-rn-runtime/components/container/wizard/wizard.styles.js +53 -1
  153. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  154. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  155. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  156. app-rn-runtime/components/data/card/card-content/card-content.component.js.map +1 -1
  157. app-rn-runtime/components/data/card/card-content/card-content.props.js.map +1 -1
  158. app-rn-runtime/components/data/card/card-footer/card-footer.component.js.map +1 -1
  159. app-rn-runtime/components/data/card/card-footer/card-footer.props.js.map +1 -1
  160. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  161. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  162. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  163. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  164. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  165. app-rn-runtime/components/data/form/form-body/form-body.component.js.map +1 -1
  166. app-rn-runtime/components/data/form/form-body/form-body.props.js.map +1 -1
  167. app-rn-runtime/components/data/form/form-field/form-field.component.js +2 -2
  168. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  169. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  170. app-rn-runtime/components/data/form/form-field/form-field.styles.js.map +1 -1
  171. app-rn-runtime/components/data/form/form-footer/form-footer.component.js.map +1 -1
  172. app-rn-runtime/components/data/form/form-footer/form-footer.props.js.map +1 -1
  173. app-rn-runtime/components/data/form/form.component.js +1 -2
  174. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  175. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  176. app-rn-runtime/components/data/form/form.styles.js.map +1 -1
  177. app-rn-runtime/components/data/list/list-template/list-template.component.js.map +1 -1
  178. app-rn-runtime/components/data/list/list-template/list-template.props.js.map +1 -1
  179. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  180. app-rn-runtime/components/data/list/list.component.js +77 -16
  181. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  182. app-rn-runtime/components/data/list/list.props.js +2 -0
  183. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  184. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  185. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  186. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  187. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  188. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  189. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  190. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  191. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  192. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  193. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js +9 -0
  194. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  195. app-rn-runtime/components/dialogs/dialog/dialog.component.js +5 -2
  196. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  197. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  198. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js.map +1 -1
  199. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js.map +1 -1
  200. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  201. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -1
  202. app-rn-runtime/components/input/basedataset/basedataset.component.js.map +1 -1
  203. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  204. app-rn-runtime/components/input/baseinput/baseinput.component.js +2 -2
  205. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  206. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  207. app-rn-runtime/components/input/basenumber/basenumber.component.js +1 -1
  208. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  209. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  210. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  211. app-rn-runtime/components/input/calendar/calendar.props.js.map +1 -1
  212. app-rn-runtime/components/input/calendar/calendar.styles.js +22 -0
  213. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  214. app-rn-runtime/components/input/calendar/views/month-view.js +1 -0
  215. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  216. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  217. app-rn-runtime/components/input/checkbox/checkbox.props.js.map +1 -1
  218. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  219. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  220. app-rn-runtime/components/input/chips/chips.component.js +1 -0
  221. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  222. app-rn-runtime/components/input/chips/chips.props.js.map +1 -1
  223. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  224. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  225. app-rn-runtime/components/input/currency/currency.component.js +6 -4
  226. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  227. app-rn-runtime/components/input/currency/currency.props.js +1 -1
  228. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  229. app-rn-runtime/components/input/currency/currency.styles.js +9 -0
  230. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  231. app-rn-runtime/components/input/epoch/base-datetime.component.js +5 -2
  232. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  233. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  234. app-rn-runtime/components/input/epoch/date/date.props.js.map +1 -1
  235. app-rn-runtime/components/input/epoch/date/date.styles.js +9 -0
  236. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  237. app-rn-runtime/components/input/epoch/date-picker.component.js.map +1 -1
  238. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  239. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  240. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +9 -0
  241. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  242. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  243. app-rn-runtime/components/input/epoch/time/time.props.js.map +1 -1
  244. app-rn-runtime/components/input/epoch/time/time.styles.js +9 -0
  245. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  246. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  247. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  248. app-rn-runtime/components/input/number/number.component.js +6 -4
  249. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  250. app-rn-runtime/components/input/number/number.props.js +1 -1
  251. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  252. app-rn-runtime/components/input/number/number.styles.js +5 -0
  253. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  254. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  255. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  256. app-rn-runtime/components/input/rating/rating.component.js +1 -1
  257. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  258. app-rn-runtime/components/input/rating/rating.props.js.map +1 -1
  259. app-rn-runtime/components/input/select/select.component.js +1 -1
  260. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  261. app-rn-runtime/components/input/select/select.props.js.map +1 -1
  262. app-rn-runtime/components/input/select/select.styles.js +10 -0
  263. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  264. app-rn-runtime/components/input/slider/slider.component.js +2 -1
  265. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  266. app-rn-runtime/components/input/slider/slider.props.js.map +1 -1
  267. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  268. app-rn-runtime/components/input/switch/switch.props.js.map +1 -1
  269. app-rn-runtime/components/input/switch/switch.styles.js +36 -0
  270. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  271. app-rn-runtime/components/input/text/text.component.js +5 -3
  272. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  273. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  274. app-rn-runtime/components/input/text/text.styles.js +5 -0
  275. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  276. app-rn-runtime/components/input/textarea/textarea.component.js +5 -3
  277. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  278. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  279. app-rn-runtime/components/input/textarea/textarea.styles.js +5 -0
  280. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  281. app-rn-runtime/components/input/toggle/toggle.component.js +17 -11
  282. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  283. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  284. app-rn-runtime/components/input/toggle/toggle.styles.js +28 -3
  285. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  286. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  287. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  288. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  289. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  290. app-rn-runtime/components/navigation/basenav/basenav.props.js.map +1 -1
  291. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  292. app-rn-runtime/components/navigation/menu/menu.props.js.map +1 -1
  293. app-rn-runtime/components/navigation/menu/menu.styles.js +6 -0
  294. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  295. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  296. app-rn-runtime/components/navigation/navbar/navbar.props.js.map +1 -1
  297. app-rn-runtime/components/navigation/navbar/navbar.styles.js.map +1 -1
  298. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  299. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  300. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  301. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  302. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  303. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  304. app-rn-runtime/components/page/content/content.component.js.map +1 -1
  305. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  306. app-rn-runtime/components/page/left-panel/left-panel.props.js.map +1 -1
  307. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  308. app-rn-runtime/components/page/page-content/page-content.props.js.map +1 -1
  309. app-rn-runtime/components/page/page.component.js.map +1 -1
  310. app-rn-runtime/components/page/partial/partial.component.js.map +1 -1
  311. app-rn-runtime/components/page/partial-container/partial-container.component.js.map +1 -1
  312. app-rn-runtime/components/page/partial-container/partial-container.props.js.map +1 -1
  313. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  314. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  315. app-rn-runtime/components/prefab/prefab-container.component.js.map +1 -1
  316. app-rn-runtime/core/asset.provider.js.map +1 -1
  317. app-rn-runtime/core/base.component.js +19 -14
  318. app-rn-runtime/core/base.component.js.map +1 -1
  319. app-rn-runtime/core/components/textinput.component.js +37 -0
  320. app-rn-runtime/core/components/textinput.component.js.map +1 -0
  321. app-rn-runtime/core/device/camera-service.js.map +1 -1
  322. app-rn-runtime/core/device/scan-service.js.map +1 -1
  323. app-rn-runtime/core/display.manager.js.map +1 -1
  324. app-rn-runtime/core/event-notifier.js.map +1 -1
  325. app-rn-runtime/core/fixed-view.component.js.map +1 -1
  326. app-rn-runtime/core/formatters.js.map +1 -1
  327. app-rn-runtime/core/i18n.service.js +2 -0
  328. app-rn-runtime/core/i18n.service.js.map +1 -0
  329. app-rn-runtime/core/if.component.js +3 -3
  330. app-rn-runtime/core/if.component.js.map +1 -1
  331. app-rn-runtime/core/imageSizeEstimator.js.map +1 -1
  332. app-rn-runtime/core/injector.js +2 -1
  333. app-rn-runtime/core/injector.js.map +1 -1
  334. app-rn-runtime/core/logger.js +4 -1
  335. app-rn-runtime/core/logger.js.map +1 -1
  336. app-rn-runtime/core/modal.service.js.map +1 -1
  337. app-rn-runtime/core/navigation.service.js.map +1 -1
  338. app-rn-runtime/core/network.service.js +17 -15
  339. app-rn-runtime/core/network.service.js.map +1 -1
  340. app-rn-runtime/core/partial.service.js.map +1 -1
  341. app-rn-runtime/core/props.provider.js.map +1 -1
  342. app-rn-runtime/core/scroll-view.component.js.map +1 -1
  343. app-rn-runtime/core/security.service.js.map +1 -1
  344. app-rn-runtime/core/spinner.service.js.map +1 -1
  345. app-rn-runtime/core/storage.service.js.map +1 -1
  346. app-rn-runtime/core/tappable.component.js +11 -2
  347. app-rn-runtime/core/tappable.component.js.map +1 -1
  348. app-rn-runtime/core/toast.service.js.map +1 -1
  349. app-rn-runtime/core/utils.js +3 -0
  350. app-rn-runtime/core/utils.js.map +1 -1
  351. app-rn-runtime/core/viewport.js.map +1 -1
  352. app-rn-runtime/gestures/swipe.animation.js +9 -4
  353. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  354. app-rn-runtime/package.json +30 -30
  355. app-rn-runtime/runtime/App.js +14 -6
  356. app-rn-runtime/runtime/App.js.map +1 -1
  357. app-rn-runtime/runtime/App.navigator.js +11 -2
  358. app-rn-runtime/runtime/App.navigator.js.map +1 -1
  359. app-rn-runtime/runtime/base-fragment.component.js +4 -4
  360. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  361. app-rn-runtime/runtime/base-page.component.js +2 -0
  362. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  363. app-rn-runtime/runtime/base-partial.component.js.map +1 -1
  364. app-rn-runtime/runtime/base-prefab.component.js +1 -5
  365. app-rn-runtime/runtime/base-prefab.component.js.map +1 -1
  366. app-rn-runtime/runtime/lib-patch.js.map +1 -1
  367. app-rn-runtime/runtime/memo.component.js.map +1 -1
  368. app-rn-runtime/runtime/navigator/drawer.navigator.js.map +1 -1
  369. app-rn-runtime/runtime/navigator/stack.navigator.js.map +1 -1
  370. app-rn-runtime/runtime/services/app-display-manager.service.js.map +1 -1
  371. app-rn-runtime/runtime/services/app-i18n.service.js +20 -0
  372. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  373. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  374. app-rn-runtime/runtime/services/app-security.service.js +7 -7
  375. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  376. app-rn-runtime/runtime/services/app-spinner.service.js +3 -2
  377. app-rn-runtime/runtime/services/app-spinner.service.js.map +1 -1
  378. app-rn-runtime/runtime/services/app-toast.service.js.map +1 -1
  379. app-rn-runtime/runtime/services/device/calendar-service.js.map +1 -1
  380. app-rn-runtime/runtime/services/device/camera-service.js +2 -3
  381. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  382. app-rn-runtime/runtime/services/device/contacts-service.js.map +1 -1
  383. app-rn-runtime/runtime/services/device/location-service.js.map +1 -1
  384. app-rn-runtime/runtime/services/device/permissions.js.map +1 -1
  385. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  386. app-rn-runtime/runtime/services/partial.service.js.map +1 -1
  387. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  388. app-rn-runtime/runtime/watcher.js.map +1 -1
  389. app-rn-runtime/styles/MediaQueryList.js.map +1 -1
  390. app-rn-runtime/styles/background.component.js +51 -12
  391. app-rn-runtime/styles/background.component.js.map +1 -1
  392. app-rn-runtime/styles/style-prop.validator.js +4 -0
  393. app-rn-runtime/styles/style-prop.validator.js.map +1 -1
  394. app-rn-runtime/styles/style-props.js.map +1 -1
  395. app-rn-runtime/styles/theme.js +8 -3
  396. app-rn-runtime/styles/theme.js.map +1 -1
  397. app-rn-runtime/styles/theme.variables.js +53 -1
  398. app-rn-runtime/styles/theme.variables.js.map +1 -1
  399. app-rn-runtime/variables/base-variable.js +3 -3
  400. app-rn-runtime/variables/base-variable.js.map +1 -1
  401. app-rn-runtime/variables/device/calendar/create-event.operation.js.map +1 -1
  402. app-rn-runtime/variables/device/calendar/delete-event.operation.js.map +1 -1
  403. app-rn-runtime/variables/device/calendar/get-events.operation.js.map +1 -1
  404. app-rn-runtime/variables/device/camera/capture-image.operation.js.map +1 -1
  405. app-rn-runtime/variables/device/camera/capture-video.operation.js.map +1 -1
  406. app-rn-runtime/variables/device/contacts/get-contacts.operation.js.map +1 -1
  407. app-rn-runtime/variables/device/device/app-info.operation.js.map +1 -1
  408. app-rn-runtime/variables/device/device/current-geo-position.operation.js.map +1 -1
  409. app-rn-runtime/variables/device/device/device-info.operation.js.map +1 -1
  410. app-rn-runtime/variables/device/device/network-info.operation.js.map +1 -1
  411. app-rn-runtime/variables/device/device/vibrate.operation.js.map +1 -1
  412. app-rn-runtime/variables/device/file/upload-file.operation.js.map +1 -1
  413. app-rn-runtime/variables/device/operation.provider.js.map +1 -1
  414. app-rn-runtime/variables/device/scan/scan.operation.js.map +1 -1
  415. app-rn-runtime/variables/device-variable.js.map +1 -1
  416. app-rn-runtime/variables/http.service.js +1 -1
  417. app-rn-runtime/variables/http.service.js.map +1 -1
  418. app-rn-runtime/variables/model-variable.js.map +1 -1
  419. app-rn-runtime/variables/service-variable.js +8 -3
  420. app-rn-runtime/variables/service-variable.js.map +1 -1
  421. app-rn-runtime/variables/utils/dataset-util.js.map +1 -1
  422. app-rn-runtime/variables/utils/inflight-queue.js.map +1 -1
  423. app-rn-runtime/variables/utils/variable.utils.js.map +1 -1
@@ -8,6 +8,7 @@ import WmTabheaderProps from './tabheader.props';
8
8
  import { DEFAULT_CLASS } from './tabheader.styles';
9
9
  import { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';
10
10
  import { createSkeleton } from '@wavemaker/app-rn-runtime/components/basic/skeleton/skeleton.component';
11
+ import { BackgroundComponent } from '@wavemaker/app-rn-runtime/styles/background.component';
11
12
  export class WmTabheaderState extends BaseComponentState {}
12
13
  export default class WmTabheader extends BaseComponent {
13
14
  constructor(props) {
@@ -46,6 +47,9 @@ export default class WmTabheader extends BaseComponent {
46
47
  let toIndicatorWidth = ((_this$headersLayout$s = this.headersLayout[selectedTabIndex]) === null || _this$headersLayout$s === void 0 ? void 0 : _this$headersLayout$s.width) || 0;
47
48
  let toHeaderScrollPosition = this.headerScrollPositionValue;
48
49
  let totalWidth = 0;
50
+ if (this.state.props.data.length !== this.headersLayout.length) {
51
+ return;
52
+ }
49
53
  this.headersLayout.forEach((p, i) => {
50
54
  if (i < selectedTabIndex) {
51
55
  toIndicatorPosition += p.width;
@@ -57,6 +61,8 @@ export default class WmTabheader extends BaseComponent {
57
61
  const maxScrollPosition = 0;
58
62
  toHeaderScrollPosition = Math.max(minScrollPosition, toHeaderScrollPosition);
59
63
  toHeaderScrollPosition = Math.min(maxScrollPosition, toHeaderScrollPosition);
64
+ let positionIndicator = toIndicatorPosition - (100 - toIndicatorWidth) / 2;
65
+ let position = this.isRTL ? -positionIndicator : positionIndicator;
60
66
  Animated.parallel([Animated.timing(this.headerScrollPosition, {
61
67
  useNativeDriver: true,
62
68
  toValue: toHeaderScrollPosition,
@@ -69,7 +75,7 @@ export default class WmTabheader extends BaseComponent {
69
75
  easing: Easing.linear
70
76
  }), Animated.timing(this.indicatorPosition, {
71
77
  useNativeDriver: true,
72
- toValue: toIndicatorPosition - (100 - toIndicatorWidth) / 2,
78
+ toValue: position,
73
79
  duration: 200,
74
80
  easing: Easing.linear
75
81
  })]).start();
@@ -117,7 +123,12 @@ export default class WmTabheader extends BaseComponent {
117
123
  }
118
124
  renderWidget(props) {
119
125
  this.setPosition();
120
- return /*#__PURE__*/React.createElement(Animated.View, {
126
+ const activeIndicator = this.styles.activeIndicator;
127
+ return /*#__PURE__*/React.createElement(View, {
128
+ style: {
129
+ overflow: 'hidden'
130
+ }
131
+ }, /*#__PURE__*/React.createElement(Animated.View, {
121
132
  style: {
122
133
  transform: [{
123
134
  translateX: this.headerScrollPosition
@@ -135,14 +146,15 @@ export default class WmTabheader extends BaseComponent {
135
146
  flexGrow: this.styles.header.flexGrow
136
147
  } : null
137
148
  }, /*#__PURE__*/React.createElement(View, {
138
- onLayout: this.setHeaderPositon.bind(this, i),
149
+ onLayout: this.setHeaderPositon.bind(this, i)
150
+ }, /*#__PURE__*/React.createElement(View, {
139
151
  style: [this.styles.header, {
140
152
  flexGrow: undefined
141
153
  }, isSelected ? this.styles.activeHeader : null]
142
154
  }, /*#__PURE__*/React.createElement(Text, {
143
155
  numberOfLines: 1,
144
156
  style: [this.styles.headerText, isSelected ? this.styles.activeHeaderText : null]
145
- }, header.title)));
157
+ }, header.title))));
146
158
  })), /*#__PURE__*/React.createElement(Animated.View, {
147
159
  style: [this.styles.activeIndicator, {
148
160
  transform: [{
@@ -151,7 +163,20 @@ export default class WmTabheader extends BaseComponent {
151
163
  scaleX: this.indicatorWidth
152
164
  }]
153
165
  }]
154
- }));
166
+ }, activeIndicator.backgroundImage ? /*#__PURE__*/React.createElement(BackgroundComponent, {
167
+ image: activeIndicator.backgroundImage,
168
+ position: activeIndicator.backgroundPosition,
169
+ size: activeIndicator.backgroundSize,
170
+ repeat: activeIndicator.backgroundRepeat,
171
+ resizeMode: activeIndicator.backgroundResizeMode,
172
+ style: {
173
+ borderRadius: this.styles.root.borderRadius
174
+ }
175
+ }) : null, /*#__PURE__*/React.createElement(View, {
176
+ style: this.styles.arrowIndicator
177
+ }, /*#__PURE__*/React.createElement(View, {
178
+ style: this.styles.arrowIndicatorDot
179
+ })))));
155
180
  }
156
181
  }
157
182
  //# sourceMappingURL=tabheader.component.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","Animated","Easing","Text","View","BaseComponent","BaseComponentState","WmTabheaderProps","DEFAULT_CLASS","Tappable","createSkeleton","WmTabheaderState","WmTabheader","constructor","props","Value","headerScrollPosition","addListener","value","headerScrollPositionValue","setHeaderPanelPositon","nativeEvent","headerPanelLayout","layout","setHeaderPositon","index","headersLayout","selectedTabIndex","forceUpdate","onTabSelection","state","onIndexChange","setPosition","toIndicatorPosition","toIndicatorWidth","width","toHeaderScrollPosition","totalWidth","forEach","p","i","minScrollPosition","maxScrollPosition","Math","max","min","parallel","timing","useNativeDriver","toValue","duration","easing","linear","indicatorWidth","indicatorPosition","start","renderSkeleton","transform","translateX","bind","styles","root","data","map","header","isSelected","key","flex","activeHeader","theme","borderRadius","height","activeHeaderText","fontSize","activeIndicator","scaleX","renderWidget","_background","flexGrow","undefined","headerText","title"],"sources":["tabheader.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Animated, Easing, LayoutChangeEvent, LayoutRectangle, Text, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmTabheaderProps from './tabheader.props';\nimport { DEFAULT_CLASS, WmTabheaderStyles } from './tabheader.styles';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport WmSkeleton, { createSkeleton } from '@wavemaker/app-rn-runtime/components/basic/skeleton/skeleton.component';\nimport { WmSkeletonStyles } from '@wavemaker/app-rn-runtime/components/basic/skeleton/skeleton.styles';\n\nexport class WmTabheaderState extends BaseComponentState<WmTabheaderProps> {\n}\n\nexport default class WmTabheader extends BaseComponent<WmTabheaderProps, WmTabheaderState, WmTabheaderStyles> {\n\n private headerPanelLayout: LayoutRectangle = null as any;\n private headersLayout: LayoutRectangle[] = [];\n private headerScrollPosition = new Animated.Value(0);\n private headerScrollPositionValue = 0;\n private indicatorPosition = new Animated.Value(0);\n private indicatorWidth = new Animated.Value(0);\n\n constructor(props: WmTabheaderProps) {\n super(props, DEFAULT_CLASS, new WmTabheaderProps(), new WmTabheaderState());\n this.headerScrollPosition.addListener(({value}) => this.headerScrollPositionValue = value);\n }\n\n setHeaderPanelPositon(nativeEvent: LayoutChangeEvent) {\n this.headerPanelLayout = nativeEvent.nativeEvent.layout;\n }\n\n setHeaderPositon(index: number, nativeEvent: LayoutChangeEvent) {\n this.headersLayout[index] = nativeEvent.nativeEvent.layout;\n if (index === this.props.selectedTabIndex) {\n this.forceUpdate();\n }\n }\n\n onTabSelection(index: number) {\n if (this.state.props.selectedTabIndex != index) {\n this.state.props.onIndexChange && this.state.props.onIndexChange(index);\n }\n }\n\n setPosition() {\n const selectedTabIndex = this.state.props.selectedTabIndex;\n let toIndicatorPosition = 0;\n let toIndicatorWidth = this.headersLayout[selectedTabIndex]?.width || 0;\n let toHeaderScrollPosition = this.headerScrollPositionValue;\n let totalWidth = 0;\n this.headersLayout.forEach((p, i) => {\n if (i < selectedTabIndex) {\n toIndicatorPosition += p.width;\n }\n totalWidth += p.width;\n });\n toHeaderScrollPosition = -1 * (toIndicatorPosition - (this.headerPanelLayout?.width || 0) / 2 + toIndicatorWidth/ 2) ;\n const minScrollPosition = -1 * (totalWidth - (this.headerPanelLayout?.width || 0));\n const maxScrollPosition = 0;\n toHeaderScrollPosition = Math.max(minScrollPosition, toHeaderScrollPosition);\n toHeaderScrollPosition = Math.min(maxScrollPosition, toHeaderScrollPosition);\n Animated.parallel([\n Animated.timing(this.headerScrollPosition, {\n useNativeDriver: true,\n toValue: toHeaderScrollPosition,\n duration: 200,\n easing: Easing.linear\n }),\n Animated.timing(this.indicatorWidth, {\n useNativeDriver: true,\n toValue: toIndicatorWidth / 100,\n duration: 200,\n easing: Easing.linear\n }),\n Animated.timing(this.indicatorPosition, {\n useNativeDriver: true,\n toValue: (toIndicatorPosition - (100 - toIndicatorWidth) / 2),\n duration: 200,\n easing: Easing.linear\n })\n ]).start();\n }\n\n public renderSkeleton(props: WmTabheaderProps){\n return(\n <Animated.View style={{\n transform: [{\n translateX: this.headerScrollPosition\n }]\n }}\n onLayout={this.setHeaderPanelPositon.bind(this)}>\n <View style={this.styles.root}>\n {this.props.data.map((header ,i) => {\n const isSelected = i === this.props.selectedTabIndex;\n return (\n <Tappable onTap={this.onTabSelection.bind(this, i)} key={header.key} styles={{flex: 1}}>\n <View onLayout={this.setHeaderPositon.bind(this, i)} style={[\n this.styles.header, \n isSelected ? this.styles.activeHeader : null]}>\n {\n createSkeleton(this.theme, { root: { borderRadius: 4 }} as WmSkeletonStyles, {\n ...this.styles.root,\n width: this.styles.root?.width || \"100%\",\n height: this.styles.root?.height || this.styles.activeHeaderText?.fontSize || 16\n })\n }\n </View>\n </Tappable>\n );\n })}\n </View>\n <Animated.View style={[this.styles.activeIndicator, {\n transform: [{\n translateX: this.indicatorPosition\n }, {\n scaleX: this.indicatorWidth\n }]\n }]}></Animated.View>\n </Animated.View>\n\n )\n }\n\n renderWidget(props: WmTabheaderProps) {\n this.setPosition();\n return (\n <Animated.View style={{\n transform: [{\n translateX: this.headerScrollPosition\n }]\n }}\n onLayout={this.setHeaderPanelPositon.bind(this)}>\n <View style={this.styles.root}>\n {this._background}\n {props.data.map((header ,i) => {\n const isSelected = i === props.selectedTabIndex ;\n return (\n <Tappable onTap={this.onTabSelection.bind(this, i)} key={header.key} \n styles={this.styles.header.flexGrow ? {flexGrow: this.styles.header.flexGrow} : null}>\n <View onLayout={this.setHeaderPositon.bind(this, i)} style={[\n this.styles.header,\n {flexGrow: undefined},\n isSelected ? this.styles.activeHeader : null]}>\n <Text numberOfLines={1} style={[\n this.styles.headerText, \n isSelected ? this.styles.activeHeaderText : null]}>{header.title}</Text>\n </View>\n </Tappable>\n );\n })}\n </View>\n <Animated.View style={[this.styles.activeIndicator, {\n transform: [{\n translateX: this.indicatorPosition\n }, {\n scaleX: this.indicatorWidth\n }]\n }]}></Animated.View>\n </Animated.View>\n ); \n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,MAAM,EAAsCC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAC/F,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,gBAAgB,MAAM,mBAAmB;AAChD,SAASC,aAAa,QAA2B,oBAAoB;AACrE,SAASC,QAAQ,QAAQ,mDAAmD;AAC5E,SAAqBC,cAAc,QAAQ,wEAAwE;AAGnH,OAAO,MAAMC,gBAAgB,SAASL,kBAAkB,CAAmB;AAG3E,eAAe,MAAMM,WAAW,SAASP,aAAa,CAAwD;EAS5GQ,WAAW,CAACC,KAAuB,EAAE;IACnC,KAAK,CAACA,KAAK,EAAEN,aAAa,EAAE,IAAID,gBAAgB,EAAE,EAAE,IAAII,gBAAgB,EAAE,CAAC;IAAC,2CARjC,IAAI;IAAA,uCACN,EAAE;IAAA,8CACd,IAAIV,QAAQ,CAACc,KAAK,CAAC,CAAC,CAAC;IAAA,mDAChB,CAAC;IAAA,2CACT,IAAId,QAAQ,CAACc,KAAK,CAAC,CAAC,CAAC;IAAA,wCACxB,IAAId,QAAQ,CAACc,KAAK,CAAC,CAAC,CAAC;IAI5C,IAAI,CAACC,oBAAoB,CAACC,WAAW,CAAC;MAAA,IAAC;QAACC;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C,KAAK,EAAE,CAC1D,IAAI,CAACoB,MAAM,CAACI,MAAM,EAClB;UAACc,QAAQ,EAAEC;QAAS,CAAC,EACrBd,UAAU,GAAG,IAAI,CAACL,MAAM,CAACQ,YAAY,GAAG,IAAI;MAAE,gBAC9C,oBAAC,IAAI;QAAC,aAAa,EAAE,CAAE;QAAC,KAAK,EAAE,CAC7B,IAAI,CAACR,MAAM,CAACoB,UAAU,EACtBf,UAAU,GAAG,IAAI,CAACL,MAAM,CAACY,gBAAgB,GAAG,IAAI;MAAE,GAAER,MAAM,CAACiB,KAAK,CAAQ,CACrE,CACE;IAEf,CAAC,CAAC,CACG,eACP,oBAAC,QAAQ,CAAC,IAAI;MAAC,KAAK,EAAE,CAAC,IAAI,CAACrB,MAAM,CAACc,eAAe,EAAE;QAClDjB,SAAS,EAAE,CAAC;UACVC,UAAU,EAAE,IAAI,CAACJ;QACnB,CAAC,EAAE;UACDqB,MAAM,EAAE,IAAI,CAACtB;QACf,CAAC;MACH,CAAC;IAAE,EAAiB,CACN;EAEpB;AACF"}
1
+ {"version":3,"names":["React","Animated","Easing","Text","View","BaseComponent","BaseComponentState","WmTabheaderProps","DEFAULT_CLASS","Tappable","createSkeleton","BackgroundComponent","WmTabheaderState","WmTabheader","constructor","props","_defineProperty","Value","headerScrollPosition","addListener","_ref","value","headerScrollPositionValue","setHeaderPanelPositon","nativeEvent","headerPanelLayout","layout","setHeaderPositon","index","headersLayout","selectedTabIndex","forceUpdate","onTabSelection","state","onIndexChange","setPosition","_this$headersLayout$s","_this$headerPanelLayo","_this$headerPanelLayo2","toIndicatorPosition","toIndicatorWidth","width","toHeaderScrollPosition","totalWidth","data","length","forEach","p","i","minScrollPosition","maxScrollPosition","Math","max","min","positionIndicator","position","isRTL","parallel","timing","useNativeDriver","toValue","duration","easing","linear","indicatorWidth","indicatorPosition","start","renderSkeleton","createElement","style","transform","translateX","onLayout","bind","styles","root","map","header","_this$styles$root","_this$styles$root2","_this$styles$activeHe","isSelected","onTap","key","flex","activeHeader","theme","borderRadius","height","activeHeaderText","fontSize","activeIndicator","scaleX","renderWidget","overflow","_background","flexGrow","undefined","numberOfLines","headerText","title","backgroundImage","image","backgroundPosition","size","backgroundSize","repeat","backgroundRepeat","resizeMode","backgroundResizeMode","arrowIndicator","arrowIndicatorDot"],"sources":["tabheader.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Animated, Easing, LayoutChangeEvent, LayoutRectangle, Text, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmTabheaderProps from './tabheader.props';\nimport { DEFAULT_CLASS, WmTabheaderStyles } from './tabheader.styles';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport WmSkeleton, { createSkeleton } from '@wavemaker/app-rn-runtime/components/basic/skeleton/skeleton.component';\nimport { WmSkeletonStyles } from '@wavemaker/app-rn-runtime/components/basic/skeleton/skeleton.styles';\nimport { BackgroundComponent } from '@wavemaker/app-rn-runtime/styles/background.component';\n\nexport class WmTabheaderState extends BaseComponentState<WmTabheaderProps> {\n}\n\nexport default class WmTabheader extends BaseComponent<WmTabheaderProps, WmTabheaderState, WmTabheaderStyles> {\n\n private headerPanelLayout: LayoutRectangle = null as any;\n private headersLayout: LayoutRectangle[] = [];\n private headerScrollPosition = new Animated.Value(0);\n private headerScrollPositionValue = 0;\n private indicatorPosition = new Animated.Value(0);\n private indicatorWidth = new Animated.Value(0);\n\n constructor(props: WmTabheaderProps) {\n super(props, DEFAULT_CLASS, new WmTabheaderProps(), new WmTabheaderState());\n this.headerScrollPosition.addListener(({value}) => this.headerScrollPositionValue = value);\n }\n\n setHeaderPanelPositon(nativeEvent: LayoutChangeEvent) {\n this.headerPanelLayout = nativeEvent.nativeEvent.layout;\n }\n\n setHeaderPositon(index: number, nativeEvent: LayoutChangeEvent) {\n this.headersLayout[index] = nativeEvent.nativeEvent.layout;\n if (index === this.props.selectedTabIndex) {\n this.forceUpdate();\n }\n }\n\n onTabSelection(index: number) {\n if (this.state.props.selectedTabIndex != index) {\n this.state.props.onIndexChange && this.state.props.onIndexChange(index);\n }\n }\n\n setPosition() {\n const selectedTabIndex = this.state.props.selectedTabIndex;\n let toIndicatorPosition = 0;\n let toIndicatorWidth = this.headersLayout[selectedTabIndex]?.width || 0;\n let toHeaderScrollPosition = this.headerScrollPositionValue;\n let totalWidth = 0;\n if (this.state.props.data.length !== this.headersLayout.length) {\n return;\n }\n this.headersLayout.forEach((p, i) => {\n if (i < selectedTabIndex) {\n toIndicatorPosition += p.width;\n }\n totalWidth += p.width;\n });\n toHeaderScrollPosition = -1 * (toIndicatorPosition - (this.headerPanelLayout?.width || 0) / 2 + toIndicatorWidth/ 2) ;\n const minScrollPosition = -1 * (totalWidth - (this.headerPanelLayout?.width || 0));\n const maxScrollPosition = 0;\n toHeaderScrollPosition = Math.max(minScrollPosition, toHeaderScrollPosition);\n toHeaderScrollPosition = Math.min(maxScrollPosition, toHeaderScrollPosition);\n let positionIndicator = (toIndicatorPosition - (100 - toIndicatorWidth) / 2);\n let position = this.isRTL?-positionIndicator:positionIndicator;\n Animated.parallel([\n Animated.timing(this.headerScrollPosition, {\n useNativeDriver: true,\n toValue: toHeaderScrollPosition,\n duration: 200,\n easing: Easing.linear\n }),\n Animated.timing(this.indicatorWidth, {\n useNativeDriver: true,\n toValue: toIndicatorWidth / 100,\n duration: 200,\n easing: Easing.linear\n }),\n Animated.timing(this.indicatorPosition, {\n useNativeDriver: true,\n toValue: position,\n duration: 200,\n easing: Easing.linear\n })\n ]).start();\n }\n\n public renderSkeleton(props: WmTabheaderProps){\n return(\n <Animated.View style={{\n transform: [{\n translateX: this.headerScrollPosition\n }]\n }}\n onLayout={this.setHeaderPanelPositon.bind(this)}>\n <View style={this.styles.root}>\n {this.props.data.map((header ,i) => {\n const isSelected = i === this.props.selectedTabIndex;\n return (\n <Tappable onTap={this.onTabSelection.bind(this, i)} key={header.key} styles={{flex: 1}}>\n <View onLayout={this.setHeaderPositon.bind(this, i)} style={[\n this.styles.header, \n isSelected ? this.styles.activeHeader : null]}>\n {\n createSkeleton(this.theme, { root: { borderRadius: 4 }} as WmSkeletonStyles, {\n ...this.styles.root,\n width: this.styles.root?.width || \"100%\",\n height: this.styles.root?.height || this.styles.activeHeaderText?.fontSize || 16\n })\n }\n </View>\n </Tappable>\n );\n })}\n </View>\n <Animated.View style={[this.styles.activeIndicator, {\n transform: [{\n translateX: this.indicatorPosition\n }, {\n scaleX: this.indicatorWidth\n }]\n }]}></Animated.View>\n </Animated.View>\n\n )\n }\n\n renderWidget(props: WmTabheaderProps) {\n this.setPosition();\n const activeIndicator = this.styles.activeIndicator as any;\n return (\n <View style={{overflow: 'hidden'}}>\n <Animated.View style={{\n transform: [{\n translateX: this.headerScrollPosition\n }]\n }}\n onLayout={this.setHeaderPanelPositon.bind(this)}>\n <View style={this.styles.root}>\n {this._background}\n {props.data.map((header ,i) => {\n const isSelected = i === props.selectedTabIndex ;\n return (\n <Tappable onTap={this.onTabSelection.bind(this, i)}\n key={header.key} \n styles={this.styles.header.flexGrow ? {flexGrow: this.styles.header.flexGrow} : null}>\n <View onLayout={this.setHeaderPositon.bind(this, i)}>\n <View style={[\n this.styles.header,\n {flexGrow: undefined},\n isSelected ? this.styles.activeHeader : null]}>\n <Text numberOfLines={1} style={[\n this.styles.headerText, \n isSelected ? this.styles.activeHeaderText : null]}>{header.title}</Text>\n </View>\n </View>\n </Tappable>\n );\n })}\n </View>\n <Animated.View style={[this.styles.activeIndicator, {\n transform: [{\n translateX: this.indicatorPosition\n }, {\n scaleX: this.indicatorWidth\n }]\n }]}>\n {activeIndicator.backgroundImage ? (<BackgroundComponent\n image={activeIndicator.backgroundImage}\n position={activeIndicator.backgroundPosition}\n size={activeIndicator.backgroundSize}\n repeat={activeIndicator.backgroundRepeat}\n resizeMode={activeIndicator.backgroundResizeMode}\n style={{borderRadius: this.styles.root.borderRadius}}\n ></BackgroundComponent>) : null }\n <View style={this.styles.arrowIndicator}>\n <View style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ACPpG,KAAA,CAAAoE,aAAA,CAACnE,QAAQ,CAACG,IAAI;MAACiE,KAAK,EAAE,CAAC,IAAI,CAACK,MAAM,CAACiB,eAAe,EAAE;QAClDrB,SAAS,EAAE,CAAC;UACVC,UAAU,EAAE,IAAI,CAACN;QACnB,CAAC,EAAE;UACD2B,MAAM,EAAE,IAAI,CAAC5B;QACf,CAAC;MACH,CAAC;IAAE,GACA2B,eAAe,CAACU,eAAe,gBAAIrG,KAAA,CAAAoE,aAAA,CAACzD,mBAAmB;MACtD2F,KAAK,EAAEX,eAAe,CAACU,eAAgB;MACvC9C,QAAQ,EAAEoC,eAAe,CAACY,kBAAmB;MAC7CC,IAAI,EAAEb,eAAe,CAACc,cAAe;MACrCC,MAAM,EAAEf,eAAe,CAACgB,gBAAiB;MACzCC,UAAU,EAAEjB,eAAe,CAACkB,oBAAqB;MACjDxC,KAAK,EAAE;QAACkB,YAAY,EAAE,IAAI,CAACb,MAAM,CAACC,IAAI,CAACY;MAAY;IAAE,CACjC,CAAC,GAAI,IAAI,eAC/BvF,KAAA,CAAAoE,aAAA,CAAChE,IAAI;MAACiE,KAAK,EAAE,IAAI,CAACK,MAAM,CAACoC;IAAe,gBACtC9G,KAAA,CAAAoE,aAAA,CAAChE,IAAI;MAACiE,KAAK,EAAE,IAAI,CAACK,MAAM,CAACqC;IAAkB,CAAO,CAC9C,CACO,CACF,CACT,CAAC;EAEX;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmTabheaderProps"],"sources":["tabheader.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmTabheaderProps extends BaseProps {\n data: {icon: string, key: string, title: string}[] = [] as any;\n selectedTabIndex = 0;\n onIndexChange?: (index: number) => any = null as any;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,gBAAgB,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,8BACD,EAAE;IAAA,0CACpC,CAAC;IAAA,uCACqB,IAAI;EAAA;AAC/C"}
1
+ {"version":3,"names":["BaseProps","WmTabheaderProps","constructor","arguments","_defineProperty"],"sources":["tabheader.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmTabheaderProps extends BaseProps {\n data: {icon: string, key: string, title: string}[] = [] as any;\n selectedTabIndex = 0;\n onIndexChange?: (index: number) => any = null as any;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,gBAAgB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,eACD,EAAE;IAAAA,eAAA,2BACpC,CAAC;IAAAA,eAAA,wBACqB,IAAI;EAAA;AAC/C"}
@@ -38,7 +38,10 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
38
38
  backgroundColor: themeVariables.tabActiveIndicatorBgColor,
39
39
  width: 100,
40
40
  height: 4,
41
- marginTop: -4
41
+ marginTop: -4,
42
+ backgroundPosition: '0px center',
43
+ backgroundSize: '48px 48px',
44
+ backgroundRepeat: 'no-repeat'
42
45
  },
43
46
  activeHeaderIcon: {
44
47
  text: {
@@ -48,6 +51,12 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
48
51
  activeHeaderText: {
49
52
  color: themeVariables.tabActiveHeaderTextColor
50
53
  },
54
+ arrowIndicator: {
55
+ display: 'none'
56
+ },
57
+ arrowIndicatorDot: {
58
+ display: 'none'
59
+ },
51
60
  skeleton: {}
52
61
  };
53
62
  addStyle(DEFAULT_CLASS, '', defaultStyles);
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","minWidth","overflow","backgroundColor","tabHeaderBgColor","text","header","paddingHorizontal","paddingVertical","justifyContent","flexGrow","headerIcon","color","tabHeaderIconColor","headerText","tabHeaderTextColor","fontFamily","baseFont","fontWeight","fontSize","textTransform","activeHeader","tabActiveHeaderBgColor","activeIndicator","tabActiveIndicatorBgColor","width","height","marginTop","activeHeaderIcon","tabActiveHeaderIconColor","activeHeaderText","tabActiveHeaderTextColor","skeleton"],"sources":["tabheader.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { TextStyle, ViewStyle } from 'react-native';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport { WmSkeletonStyles } from '@wavemaker/app-rn-runtime/components/basic/skeleton/skeleton.styles';\n\nexport type WmTabheaderStyles = BaseStyles & {\n activeIndicator: ViewStyle,\n header: ViewStyle,\n headerIcon: WmIconStyles,\n headerText: TextStyle,\n activeHeader: ViewStyle,\n activeHeaderIcon: WmIconStyles,\n activeHeaderText: TextStyle,\n skeleton: WmSkeletonStyles \n};\n\nexport const DEFAULT_CLASS = 'app-tabheader';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles = {\n root: {\n flexDirection: 'row',\n minWidth: '100%',\n overflow: 'visible',\n backgroundColor: themeVariables.tabHeaderBgColor,\n },\n text: {},\n header: {\n backgroundColor: themeVariables.tabHeaderBgColor,\n paddingHorizontal: 12,\n paddingVertical: 12,\n minWidth: 80,\n flexDirection: 'row',\n justifyContent: 'center',\n flexGrow: 1\n },\n headerIcon: {\n text: {\n color: themeVariables.tabHeaderIconColor\n }\n } as WmIconStyles,\n headerText: {\n color: themeVariables.tabHeaderTextColor,\n overflow: 'visible',\n fontFamily: themeVariables.baseFont,\n fontWeight: 'bold',\n fontSize: 16,\n textTransform: 'capitalize'\n },\n activeHeader: {\n backgroundColor: themeVariables.tabActiveHeaderBgColor\n },\n activeIndicator: {\n backgroundColor: themeVariables.tabActiveIndicatorBgColor,\n width: 100,\n height: 4,\n marginTop: -4\n },\n activeHeaderIcon: {\n text: {\n color: themeVariables.tabActiveHeaderIconColor\n }\n } as WmIconStyles,\n activeHeaderText: {\n color: themeVariables.tabActiveHeaderTextColor \n },\n skeleton: {} as WmSkeletonStyles\n } as WmTabheaderStyles;\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAiB/D,OAAO,MAAMC,aAAa,GAAG,eAAe;AAC5CD,UAAU,CAACE,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAAa,GAAG;IAClBC,IAAI,EAAE;MACFC,aAAa,EAAE,KAAK;MACpBC,QAAQ,EAAE,MAAM;MAChBC,QAAQ,EAAE,SAAS;MACnBC,eAAe,EAAEP,cAAc,CAACQ;IACpC,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,MAAM,EAAE;MACJH,eAAe,EAAEP,cAAc,CAACQ,gBAAgB;MAChDG,iBAAiB,EAAE,EAAE;MACrBC,eAAe,EAAE,EAAE;MACnBP,QAAQ,EAAE,EAAE;MACZD,aAAa,EAAE,KAAK;MACpBS,cAAc,EAAE,QAAQ;MACxBC,QAAQ,EAAE;IACd,CAAC;IACDC,UAAU,EAAE;MACRN,IAAI,EAAE;QACFO,KAAK,EAAEhB,cAAc,CAACiB;MAC1B;IACJ,CAAiB;IACjBC,UAAU,EAAE;MACRF,KAAK,EAAEhB,cAAc,CAACmB,kBAAkB;MACxCb,QAAQ,EAAE,SAAS;MACnBc,UAAU,EAAEpB,cAAc,CAACqB,QAAQ;MACnCC,UAAU,EAAE,MAAM;MAClBC,QAAQ,EAAE,EAAE;MACZC,aAAa,EAAE;IACnB,CAAC;IACDC,YAAY,EAAE;MACVlB,eAAe,EAAEP,cAAc,CAAC0B;IACpC,CAAC;IACDC,eAAe,EAAE;MACbpB,eAAe,EAAEP,cAAc,CAAC4B,yBAAyB;MACzDC,KAAK,EAAE,GAAG;MACVC,MAAM,EAAE,CAAC;MACTC,SAAS,EAAE,CAAC;IAChB,CAAC;IACDC,gBAAgB,EAAE;MACdvB,IAAI,EAAE;QACFO,KAAK,EAAEhB,cAAc,CAACiC;MAC1B;IACJ,CAAiB;IACjBC,gBAAgB,EAAE;MACdlB,KAAK,EAAEhB,cAAc,CAACmC;IAC1B,CAAC;IACDC,QAAQ,EAAE,CAAC;EACf,CAAsB;EACtBnC,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC9C,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","minWidth","overflow","backgroundColor","tabHeaderBgColor","text","header","paddingHorizontal","paddingVertical","justifyContent","flexGrow","headerIcon","color","tabHeaderIconColor","headerText","tabHeaderTextColor","fontFamily","baseFont","fontWeight","fontSize","textTransform","activeHeader","tabActiveHeaderBgColor","activeIndicator","tabActiveIndicatorBgColor","width","height","marginTop","backgroundPosition","backgroundSize","backgroundRepeat","activeHeaderIcon","tabActiveHeaderIconColor","activeHeaderText","tabActiveHeaderTextColor","arrowIndicator","display","arrowIndicatorDot","skeleton"],"sources":["tabheader.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { TextStyle, ViewStyle } from 'react-native';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport { WmSkeletonStyles } from '@wavemaker/app-rn-runtime/components/basic/skeleton/skeleton.styles';\n\nexport type WmTabheaderStyles = BaseStyles & {\n activeIndicator: ViewStyle,\n header: ViewStyle,\n headerIcon: WmIconStyles,\n headerText: TextStyle,\n arrowIndicator: ViewStyle,\n arrowIndicatorDot: ViewStyle,\n activeHeader: ViewStyle,\n activeHeaderIcon: WmIconStyles,\n activeHeaderText: TextStyle,\n skeleton: WmSkeletonStyles \n};\n\nexport const DEFAULT_CLASS = 'app-tabheader';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles = {\n root: {\n flexDirection: 'row',\n minWidth: '100%',\n overflow: 'visible',\n backgroundColor: themeVariables.tabHeaderBgColor,\n },\n text: {},\n header: {\n backgroundColor: themeVariables.tabHeaderBgColor,\n paddingHorizontal: 12,\n paddingVertical: 12,\n minWidth: 80,\n flexDirection: 'row',\n justifyContent: 'center',\n flexGrow: 1\n },\n headerIcon: {\n text: {\n color: themeVariables.tabHeaderIconColor\n }\n } as WmIconStyles,\n headerText: {\n color: themeVariables.tabHeaderTextColor,\n overflow: 'visible',\n fontFamily: themeVariables.baseFont,\n fontWeight: 'bold',\n fontSize: 16,\n textTransform: 'capitalize'\n },\n activeHeader: {\n backgroundColor: themeVariables.tabActiveHeaderBgColor\n },\n activeIndicator: {\n backgroundColor: themeVariables.tabActiveIndicatorBgColor,\n width: 100,\n height: 4,\n marginTop: -4,\n backgroundPosition: '0px center',\n backgroundSize: '48px 48px',\n backgroundRepeat: 'no-repeat'\n },\n activeHeaderIcon: {\n text: {\n color: themeVariables.tabActiveHeaderIconColor\n }\n } as WmIconStyles,\n activeHeaderText: {\n color: themeVariables.tabActiveHeaderTextColor \n },\n arrowIndicator: {\n display: 'none'\n },\n arrowIndicatorDot: {\n display: 'none'\n },\n skeleton: {} as WmSkeletonStyles\n } as WmTabheaderStyles;\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAmB/D,OAAO,MAAMC,aAAa,GAAG,eAAe;AAC5CD,UAAU,CAACE,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAAa,GAAG;IAClBC,IAAI,EAAE;MACFC,aAAa,EAAE,KAAK;MACpBC,QAAQ,EAAE,MAAM;MAChBC,QAAQ,EAAE,SAAS;MACnBC,eAAe,EAAEP,cAAc,CAACQ;IACpC,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,MAAM,EAAE;MACJH,eAAe,EAAEP,cAAc,C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paneState","WmTabpane","constructor","props","onPartialLoad","invokeEventCallback","renderContent","renderPartial","state","isPartialLoaded","setTimeout","updateState","bind","children","componentDidMount","tabs","parent","addTabPane","proxy","_onSelect","_onDeselect","select","selectTabPane","renderWidget","styles","root","_background"],"sources":["tabpane.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmTabpaneProps from './tabpane.props';\nimport { DEFAULT_CLASS, WmTabpaneStyles } from './tabpane.styles';\nimport WmTabs from '../tabs.component';\n\nexport class WmTabpaneState extends BaseComponentState<WmTabpaneProps> {\n isPartialLoaded = false;\n}\n\nexport default class WmTabpane extends BaseComponent<WmTabpaneProps, WmTabpaneState, WmTabpaneStyles> {\n\n constructor(props: WmTabpaneProps) {\n super(props, DEFAULT_CLASS, new WmTabpaneProps());\n }\n\n onPartialLoad() {\n this.invokeEventCallback('onLoad', [null, this]);\n }\n\n renderContent(props: WmTabpaneProps) {\n if (props.renderPartial) {\n if (!this.state.isPartialLoaded) {\n setTimeout(() => {\n this.updateState({\n isPartialLoaded: true\n } as WmTabpaneState);\n });\n }\n return props.renderPartial(this.onPartialLoad.bind(this));\n }\n return props.children;\n }\n\n componentDidMount() {\n const tabs = (this.parent) as WmTabs;\n tabs.addTabPane(this.proxy as WmTabpane);\n super.componentDidMount();\n }\n\n _onSelect() {\n this.invokeEventCallback('onSelect', [null, this.proxy]);\n }\n _onDeselect() {\n this.invokeEventCallback('onDeselect', [null, this.proxy]);\n }\n\n select() {\n (this.parent as WmTabs).selectTabPane(this);\n }\n\n renderWidget(props: WmTabpaneProps) {\n return (<View style={this.styles.root}>{this._background}{this.renderContent(props)}</View>);\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,cAAc,MAA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AAI,CAAC;EAC7C;EAEAC,YAAY,CAACpB,KAAqB,EAAE;IAClC,oBAAQ,oBAAC,IAAI;MAAC,KAAK,EAAE,IAAI,CAACqB,MAAM,CAACC;IAAK,GAAE,IAAI,CAACC,WAAW,EAAE,IAAI,CAACpB,aAAa,CAACH,KAAK,CAAC,CAAQ;EAC7F;AACF"}
1
+ {"version":3,"names":["React","View","BaseComponent","BaseComponentState","WmTabpaneProps","DEFAULT_CLASS","WmTabpaneState","constructor","arguments","_defineProperty","WmTabpane","props","onPartialLoad","invokeEventCallback","renderContent","renderPartial","state","isPartialLoaded","setTimeout","updateState","bind","children","componentDidMount","tabs","parent","addTabPane","proxy","_onSelect","_onDeselect","select","selectTabPane","renderWidget","createElement","style","styles","root","_background"],"sources":["tabpane.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmTabpaneProps from './tabpane.props';\nimport { DEFAULT_CLASS, WmTabpaneStyles } from './tabpane.styles';\nimport WmTabs from '../tabs.component';\n\nexport class WmTabpaneState extends BaseComponentState<WmTabpaneProps> {\n isPartialLoaded = false;\n}\n\nexport default class WmTabpane extends BaseComponent<WmTabpaneProps, WmTabpaneState, WmTabpaneStyles> {\n\n constructor(props: WmTabpaneProps) {\n super(props, DEFAULT_CLASS, new WmTabpaneProps());\n }\n\n onPartialLoad() {\n this.invokeEventCallback('onLoad', [null, this]);\n }\n\n renderContent(props: WmTabpaneProps) {\n if (props.renderPartial) {\n if (!this.state.isPartialLoaded) {\n setTimeout(() => {\n this.updateState({\n isPartialLoaded: true\n } as WmTabpaneState);\n });\n }\n return props.renderPartial(this.onPartialLoad.bind(this));\n }\n return props.children;\n }\n\n componentDidMount() {\n const tabs = (this.parent) as WmTabs;\n tabs.addTabPane(this.proxy as WmTabpane);\n super.componentDidMount();\n }\n\n _onSelect() {\n this.invokeEventCallback('onSelect', [null, this.proxy]);\n }\n _onDeselect() {\n this.invokeEventCallback('onDeselect', [null, this.proxy]);\n }\n\n select() {\n (this.parent as WmTabs).selectTabPane(this);\n }\n\n renderWidget(props: WmTabpaneProps) {\n return (<View style={this.styles.root}>{this._background}{this.renderContent(props)}</View>);\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,cAAc,MAAM,iBAAiB;AAC5C,SAASC,aAAa,QAAyB,kBAAkB;AAGjE,OAAO,MAAMC,cAAc,SAASH,kBAAkB,CAAiB;EAAAI,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,0BACnD,KAAK;EAAA;AACzB;AAEA,eAAe,MAAMC,SAAS,SAASR,aAAa,CAAkD;EAEpGK,WAAWA,CAACI,KAAqB,EAAE;IACjC,KAAK,CAACA,KAAK,EAAEN,aAAa,EAAE,IAAID,cAAc,CAAC,CAAC,CAAC;EACnD;EAEAQ,aAAaA,CAAA,EAAG;IACd,IAAI,CAACC,mBAAmB,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;EAClD;EAEAC,aAAaA,CAACH,KAAqB,EAAE;IACnC,IAAIA,KAAK,CAACI,aAAa,EAAE;MACvB,IAAI,CAAC,IAAI,CAACC,KAAK,CAACC,eAAe,EAAE;QAC/BC,UAAU,CAAC,MAAM;UACf,IAAI,CAACC,WAAW,CAAC;YACfF,eAAe,EAAE;UACnB,CAAmB,CAAC;QACtB,CAAC,CAAC;MACJ;MACA,OAAON,KAAK,CAACI,aAAa,CAAC,IAAI,CAACH,aAAa,CAACQ,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3D;IACA,OAAOT,KAAK,CAACU,QAAQ;EACvB;EAEAC,iBAAiBA,CAAA,EAAG;IAClB,MAAMC,IAAI,GAAI,IAAI,CAACC,MAAiB;IACpCD,IAAI,CAACE,UAAU,CAAC,IAAI,CAACC,KAAkB,CAAC;IACxC,KAAK,CAACJ,iBAAiB,CAAC,CAAC;EAC3B;EAEAK,SAASA,CAAA,EAAG;IACV,IAAI,CAACd,mBAAmB,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,CAACa,KAAK,CAAC,CAAC;EAC1D;EACAE,WAAWA,CAAA,EAAG;IACZ,IAAI,CAACf,mBAAmB,CAAC,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,CAACa,KAAK,CAAC,CAAC;EAC5D;EAEAG,MAAMA,CAAA,EAAG;IACN,IAAI,CAACL,MAAM,CAAYM,aAAa,CAAC,IAAI,CAAC;EAC7C;EAEAC,YAAYA,CAACpB,KAAqB,EAAE;IAClC,oBAAQX,KAAA,CAAAgC,aAAA,CAAC/B,IAAI;MAACgC,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC;IAAK,GAAE,IAAI,CAACC,WAAW,EAAE,IAAI,CAACtB,aAAa,CAACH,KAAK,CAAQ,CAAC;EAC7F;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmTabpaneProps"],"sources":["tabpane.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmTabpaneProps extends BaseProps {\n children: any;\n paneicon: string = null as any;\n title: string = 'Tab Title';\n renderPartial?: Function;\n isPartialLoaded = false;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,cAAc,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA;IAAA,kCAEjC,IAAI;IAAA,+BACP,WAAW;IAAA;IAAA,yCAET,KAAK;EAAA;AACzB"}
1
+ {"version":3,"names":["BaseProps","WmTabpaneProps","constructor","arguments","_defineProperty"],"sources":["tabpane.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmTabpaneProps extends BaseProps {\n children: any;\n paneicon: string = null as any;\n title: string = 'Tab Title';\n renderPartial?: Function;\n isPartialLoaded = false;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,cAAc,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA,mBAEjC,IAAI;IAAAA,eAAA,gBACP,WAAW;IAAAA,eAAA;IAAAA,eAAA,0BAET,KAAK;EAAA;AACzB"}
@@ -53,7 +53,9 @@ export default class WmTabs extends BaseComponent {
53
53
  }
54
54
  setTabLayout(event) {
55
55
  this.tabLayout = event.nativeEvent.layout;
56
- this.forceUpdate();
56
+ this.forceUpdate(() => {
57
+ this.goToTab();
58
+ });
57
59
  }
58
60
  setTabPaneHeights(index, nativeEvent) {
59
61
  var _nativeEvent$nativeEv;
@@ -86,8 +88,9 @@ export default class WmTabs extends BaseComponent {
86
88
  selectTabPane(tabPane) {
87
89
  this.goToTab(this.tabPanes.indexOf(tabPane));
88
90
  }
89
- goToTab(index) {
91
+ goToTab() {
90
92
  var _this$tabLayout2, _this$animationView;
93
+ let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.state.selectedTabIndex;
91
94
  const position = -1 * index * (((_this$tabLayout2 = this.tabLayout) === null || _this$tabLayout2 === void 0 ? void 0 : _this$tabLayout2.width) || 0);
92
95
  (_this$animationView = this.animationView) === null || _this$animationView === void 0 ? void 0 : _this$animationView.setPosition(position).then(() => this.onChange(index));
93
96
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","BaseComponent","BaseComponentState","SwipeAnimation","isWebPreviewMode","WmTabsProps","DEFAULT_CLASS","WmTabheader","WmTabsState","WmTabs","constructor","props","bounds","e","activeTabIndex","state","selectedTabIndex","w","tabLayout","width","noOfTabs","tabPanes","length","lower","center","upper","onLower","onChange","onUpper","selectedIndex","defaultpaneindex","tabsShown","updateState","setTabLayout","event","nativeEvent","layout","forceUpdate","setTabPaneHeights","index","tabPaneHeights","height","setTabShown","tabIndex","callback","setTimeout","addTabPane","tabPane","i","findIndex","t","name","newIndex","selectTabPane","goToTab","indexOf","position","animationView","setPosition","then","prev","goToLower","next","oldIndex","deselectedTab","_onDeselect","selectedTab","_onSelect","invokeEventCallback","proxy","renderSkeleton","Children","toArray","children","filter","item","show","headerData","map","p","title","icon","key","styles","root","borderBottomWidth","bind","tabHeader","showskeleton","overflow","flexDirection","flexWrap","alignSelf","renderWidget","_background","flex","maxHeight","enablegestures","r","animationHandlers","undefined"],"sources":["tabs.component.tsx"],"sourcesContent":["import React from 'react';\nimport { LayoutChangeEvent, LayoutRectangle, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport * as SwipeAnimation from '@wavemaker/app-rn-runtime/gestures/swipe.animation';\nimport { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\n\nimport WmTabsProps from './tabs.props';\nimport { DEFAULT_CLASS, WmTabsStyles } from './tabs.styles';\nimport WmTabpane from './tabpane/tabpane.component';\nimport WmTabheader from './tabheader/tabheader.component';\n\nexport class WmTabsState extends BaseComponentState<WmTabsProps> {\n tabsShown: boolean[] = [];\n selectedTabIndex: number = 0;\n}\n\nexport default class WmTabs extends BaseComponent<WmTabsProps, WmTabsState, WmTabsStyles> {\n public tabPanes = [] as WmTabpane[];\n private newIndex = 0;\n private tabLayout: LayoutRectangle = null as any;\n private tabPaneHeights: number[] = [];\n private animationView: SwipeAnimation.View | null = null as any;\n private animationHandlers = {\n bounds: (e) => {\n const activeTabIndex = this.state.selectedTabIndex,\n w = this.tabLayout?.width || 0,\n noOfTabs = this.tabPanes.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 onLower: (e) => {\n this.onChange(this.state.selectedTabIndex - 1);\n },\n onUpper: (e) => {\n this.onChange(this.state.selectedTabIndex + 1);\n }\n } as SwipeAnimation.Handlers;\n\n constructor(props: WmTabsProps) {\n super(props, DEFAULT_CLASS, new WmTabsProps(), new WmTabsState());\n const selectedIndex = props.defaultpaneindex || 0;\n const tabsShown: boolean[] = [];\n tabsShown[selectedIndex] = true;\n this.updateState({\n selectedTabIndex: selectedIndex,\n tabsShown: tabsShown\n }as WmTabsState);\n }\n\n setTabLayout(event: LayoutChangeEvent) {\n this.tabLayout = event.nativeEvent.layout;\n this.forceUpdate();\n }\n\n setTabPaneHeights(index: number, nativeEvent: LayoutChangeEvent) {\n this.tabPaneHeights[index] = nativeEvent.nativeEvent.layout?.height;\n if (index === this.state.selectedTabIndex) {\n this.forceUpdate();\n }\n }\n\n setTabShown(tabIndex: number, callback: () => any) {\n if (!this.state.tabsShown[tabIndex]) {\n const tabsShown = [...this.state.tabsShown];\n tabsShown[tabIndex] = true;\n setTimeout(() => {\n this.updateState({\n tabsShown: tabsShown\n } as WmTabsState, callback);\n }, 300);\n } else {\n callback && callback();\n }\n }\n\n addTabPane(tabPane: WmTabpane) {\n const i = this.tabPanes.findIndex(t => t.props.name === tabPane.props.name);\n if (i >= 0) {\n this.tabPanes[i] = tabPane;\n } else {\n this.tabPanes[this.newIndex++] = tabPane;\n }\n }\n\n selectTabPane(tabPane: WmTabpane) {\n this.goToTab(this.tabPanes.indexOf(tabPane));\n }\n\n goToTab(index: number) {\n const position = -1 * index * (this.tabLayout?.width || 0);\n this.animationView?.setPosition(position)\n .then(() => this.onChange(index));\n }\n\n prev() {\n this.animationView?.goToLower();\n }\n\n next() {\n this.animationView?.goToLower();\n }\n\n onChange(newIndex: number) {\n if (newIndex < 0 || newIndex >= this.tabPanes.length) {\n return;\n }\n const oldIndex = this.state.selectedTabIndex;\n const deselectedTab = this.tabPanes[this.state.selectedTabIndex];\n this.newIndex = newIndex;\n deselectedTab?._onDeselect();\n this.updateState({\n selectedTabIndex: newIndex\n } as WmTabsState, () => {\n this.setTabShown(newIndex, () => {\n const selectedTab = this.tabPanes[newIndex];\n selectedTab?._onSelect();\n this.invokeEventCallback('onChange', [{}, this.proxy, newIndex, oldIndex]);\n });\n });\n }\n\n public renderSkeleton(props: WmTabsProps){\n const tabPanes = React.Children.toArray(this.props.children)\n .filter((item: any, index: number) => item.props.show != false);\n const headerData = tabPanes.map((p: any, i: number) => \n ({title: p.props.title || 'Tab Title', icon: '', key: `tab-${p.props.title}-${i}`}));\n return(\n <View style={[this.styles.root, { borderBottomWidth: 0}]}>\n <View onLayout={this.setTabLayout.bind(this)} style={{width: '100%'}}></View>\n <WmTabheader\n styles={this.styles.tabHeader}\n data={headerData}\n showskeleton={this.props.showskeleton}\n selectedTabIndex={this.state.selectedTabIndex}\n ></WmTabheader>\n <View \n //{...this.panResponder.panHandlers}\n style={{\n width: '100%',\n //height: this.tabPaneHeights[this.state.selectedTabIndex],\n overflow: 'hidden'\n }} >\n <View style={{\n flexDirection: 'row',\n flexWrap: 'nowrap'\n }}>\n {tabPanes.map((p: any, i) => {\n return (\n <View\n key={`tab-${p.props.title}-${i}`}\n style={{width: '100%', alignSelf: 'flex-start'}}\n onLayout={this.setTabPaneHeights.bind(this, i)}>\n {/* {this.state.tabsShown[i] ? p : null} */}\n {p}\n </View>);\n })}\n </View>\n </View>\n </View>\n\n )\n }\n\n renderWidget(props: WmTabsProps) {\n const tabPanes = React.Children.toArray(props.children)\n .filter((item: any, index: number) => item.props.show != false);\n const headerData = tabPanes.map((p: any, i: number) => \n ({title: p.props.title || 'Tab Title', icon: '', key: `tab-${p.props.title}-${i}`}));\n return (\n <View style={this.styles.root}>\n {this._background}\n <View onLayout={this.setTabLayout.bind(this)} style={{width: '100%'}}></View>\n <WmTabheader\n styles={this.styles.tabHeader}\n data={headerData}\n selectedTabIndex={this.state.selectedTabIndex}\n onIndexChange={this.goToTab.bind(this)}\n ></WmTabheader>\n <View\n style={[{\n width: '100%',\n flex: 1\n }, this.styles.root.height ? \n (isWebPreviewMode() ? {'overflow-x': 'hidden','overflow-y': 'auto'} as any : {overflow: 'scroll'}) \n : {\n overflow: 'hidden',\n maxHeight: this.tabPaneHeights[this.state.selectedTabIndex],\n }]} >\n <SwipeAnimation.View \n enableGestures={props.enablegestures}\n style={{\n flexDirection: 'row',\n flexWrap: 'nowrap'\n }}\n direction='horizontal'\n ref={(r) => {this.animationView = r}}\n handlers = {this.animationHandlers}\n >\n {tabPanes.map((p: any, i) => {\n return (\n <View \n style={{\n width: '100%',\n height: this.styles.root.height ? undefined : 1000000,\n alignSelf: 'flex-start'}}>\n <View\n key={`tab-${p.props.title}-${i}`}\n style={{width: '100%', alignSelf: 'flex-start'}}\n onLayout={this.setTabPaneHeights.bind(this, i)}>\n {/* {this.state.tabsShown[i] ? p : null} */}\n {p}\n </View>\n </View>);\n })}\n </SwipeAnimation.View>\n </View>\n </View>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAA6CC,IAAI,QAAQ,cAAc;AACvE,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,OAAO,KAAKC,cAAc,MAAM,oDAAoD;AACpF,SAASC,gBAAgB,QAAQ,sCAAsC;AAEvE,OAAOC,WAAW,MAAM,cAAc;AACtC,SAASC,aAAa,QAAsB,eAAe;AAE3D,OAAOC,WAAW,MAAM,iCAAiC;AAEzD,OAAO,MAAMC,WAAW,SAASN,kBAAkB,CAAc;EAAA;IAAA;IAAA,mCACxC,EAAE;IAAA,0CACE,CAAC;EAAA;AAC9B;AAEA,eAAe,MAAMO,MAAM,SAASR,aAAa,CAAyC;EAyBxFS,WAAW,CAACC,KAAkB,EAAE;IAC9B,KAAK,CAACA,KAAK,EAAEL,aAAa,EAAE,IAAID,WAAW,EAAE,EAAE,IAAIG,WAAW,EAAE,CAAC;IAAC,kCAzBlD,EAAE;IAAA,kCACD,CAAC;IAAA,mCACiB,IAAI;IAAA,wCACN,EAAE;IAAA,uCACe,IAAI;IAAA,2CAC5B;MAC1BI,MAAM,EAAGC,CAAC,I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AAEyE,SAAS,EAAE;QAAY,CAAE;QAChD,QAAQ,EAAE,IAAI,CAACtD,iBAAiB,CAACgD,IAAI,CAAC,IAAI,EAAEtC,CAAC;MAAE,GAE9C+B,CAAC,CACG,CACF;IACT,CAAC,CAAC,CACkB,CACjB,CACF;EAEX;AACF"}
1
+ {"version":3,"names":["React","View","BaseComponent","BaseComponentState","SwipeAnimation","isWebPreviewMode","WmTabsProps","DEFAULT_CLASS","WmTabheader","WmTabsState","constructor","arguments","_defineProperty","WmTabs","props","bounds","e","_this$tabLayout","activeTabIndex","state","selectedTabIndex","w","tabLayout","width","noOfTabs","tabPanes","length","lower","center","upper","onLower","onChange","onUpper","selectedIndex","defaultpaneindex","tabsShown","updateState","setTabLayout","event","nativeEvent","layout","forceUpdate","goToTab","setTabPaneHeights","index","_nativeEvent$nativeEv","tabPaneHeights","height","setTabShown","tabIndex","callback","setTimeout","addTabPane","tabPane","i","findIndex","t","name","newIndex","selectTabPane","indexOf","_this$tabLayout2","_this$animationView","undefined","position","animationView","setPosition","then","prev","_this$animationView2","goToLower","next","_this$animationView3","oldIndex","deselectedTab","_onDeselect","selectedTab","_onSelect","invokeEventCallback","proxy","renderSkeleton","Children","toArray","children","filter","item","show","headerData","map","p","title","icon","key","createElement","style","styles","root","borderBottomWidth","onLayout","bind","tabHeader","data","showskeleton","overflow","flexDirection","flexWrap","alignSelf","renderWidget","_background","onIndexChange","flex","maxHeight","enableGestures","enablegestures","direction","ref","r","handlers","animationHandlers"],"sources":["tabs.component.tsx"],"sourcesContent":["import React from 'react';\nimport { LayoutChangeEvent, LayoutRectangle, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport * as SwipeAnimation from '@wavemaker/app-rn-runtime/gestures/swipe.animation';\nimport { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\n\nimport WmTabsProps from './tabs.props';\nimport { DEFAULT_CLASS, WmTabsStyles } from './tabs.styles';\nimport WmTabpane from './tabpane/tabpane.component';\nimport WmTabheader from './tabheader/tabheader.component';\n\nexport class WmTabsState extends BaseComponentState<WmTabsProps> {\n tabsShown: boolean[] = [];\n selectedTabIndex: number = 0;\n}\n\nexport default class WmTabs extends BaseComponent<WmTabsProps, WmTabsState, WmTabsStyles> {\n public tabPanes = [] as WmTabpane[];\n private newIndex = 0;\n private tabLayout: LayoutRectangle = null as any;\n private tabPaneHeights: number[] = [];\n private animationView: SwipeAnimation.View | null = null as any;\n private animationHandlers = {\n bounds: (e) => {\n const activeTabIndex = this.state.selectedTabIndex,\n w = this.tabLayout?.width || 0,\n noOfTabs = this.tabPanes.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 onLower: (e) => {\n this.onChange(this.state.selectedTabIndex - 1);\n },\n onUpper: (e) => {\n this.onChange(this.state.selectedTabIndex + 1);\n }\n } as SwipeAnimation.Handlers;\n\n constructor(props: WmTabsProps) {\n super(props, DEFAULT_CLASS, new WmTabsProps(), new WmTabsState());\n const selectedIndex = props.defaultpaneindex || 0;\n const tabsShown: boolean[] = [];\n tabsShown[selectedIndex] = true;\n this.updateState({\n selectedTabIndex: selectedIndex,\n tabsShown: tabsShown\n }as WmTabsState);\n }\n\n setTabLayout(event: LayoutChangeEvent) {\n this.tabLayout = event.nativeEvent.layout;\n this.forceUpdate(() => {\n this.goToTab();\n });\n }\n\n setTabPaneHeights(index: number, nativeEvent: LayoutChangeEvent) {\n this.tabPaneHeights[index] = nativeEvent.nativeEvent.layout?.height;\n if (index === this.state.selectedTabIndex) {\n this.forceUpdate();\n }\n }\n\n setTabShown(tabIndex: number, callback: () => any) {\n if (!this.state.tabsShown[tabIndex]) {\n const tabsShown = [...this.state.tabsShown];\n tabsShown[tabIndex] = true;\n setTimeout(() => {\n this.updateState({\n tabsShown: tabsShown\n } as WmTabsState, callback);\n }, 300);\n } else {\n callback && callback();\n }\n }\n\n addTabPane(tabPane: WmTabpane) {\n const i = this.tabPanes.findIndex(t => t.props.name === tabPane.props.name);\n if (i >= 0) {\n this.tabPanes[i] = tabPane;\n } else {\n this.tabPanes[this.newIndex++] = tabPane;\n }\n }\n\n selectTabPane(tabPane: WmTabpane) {\n this.goToTab(this.tabPanes.indexOf(tabPane));\n }\n\n goToTab(index = this.state.selectedTabIndex) {\n const position = -1 * index * (this.tabLayout?.width || 0);\n this.animationView?.setPosition(position)\n .then(() => this.onChange(index));\n }\n\n prev() {\n this.animationView?.goToLower();\n }\n\n next() {\n this.animationView?.goToLower();\n }\n\n onChange(newIndex: number) {\n if (newIndex < 0 || newIndex >= this.tabPanes.length) {\n return;\n }\n const oldIndex = this.state.selectedTabIndex;\n const deselectedTab = this.tabPanes[this.state.selectedTabIndex];\n this.newIndex = newIndex;\n deselectedTab?._onDeselect();\n this.updateState({\n selectedTabIndex: newIndex\n } as WmTabsState, () => {\n this.setTabShown(newIndex, () => {\n const selectedTab = this.tabPanes[newIndex];\n selectedTab?._onSelect();\n this.invokeEventCallback('onChange', [{}, this.proxy, newIndex, oldIndex]);\n });\n });\n }\n\n public renderSkeleton(props: WmTabsProps){\n const tabPanes = React.Children.toArray(this.props.children)\n .filter((item: any, index: number) => item.props.show != false);\n const headerData = tabPanes.map((p: any, i: number) => \n ({title: p.props.title || 'Tab Title', icon: '', key: `tab-${p.props.title}-${i}`}));\n return(\n <View style={[this.styles.root, { borderBottomWidth: 0}]}>\n <View onLayout={this.setTabLayout.bind(this)} style={{width: '100%'}}></View>\n <WmTabheader\n styles={this.styles.tabHeader}\n data={headerData}\n showskeleton={this.props.showskeleton}\n selectedTabIndex={this.state.selectedTabIndex}\n ></WmTabheader>\n <View \n //{...this.panResponder.panHandlers}\n style={{\n width: '100%',\n //height: this.tabPaneHeights[this.state.selectedTabIndex],\n overflow: 'hidden'\n }} >\n <View style={{\n flexDirection: 'row',\n flexWrap: 'nowrap'\n }}>\n {tabPanes.map((p: any, i) => {\n return (\n <View\n key={`tab-${p.props.title}-${i}`}\n style={{width: '100%', alignSelf: 'flex-start'}}\n onLayout={this.setTabPaneHeights.bind(this, i)}>\n {/* {this.state.tabsShown[i] ? p : null} */}\n {p}\n </View>);\n })}\n </View>\n </View>\n </View>\n\n )\n }\n\n renderWidget(props: WmTabsProps) {\n const tabPanes = React.Children.toArray(props.children)\n .filter((item: any, index: number) => item.props.show != false);\n const headerData = tabPanes.map((p: any, i: number) => \n ({title: p.props.title || 'Tab Title', icon: '', key: `tab-${p.props.title}-${i}`}));\n return (\n <View style={this.styles.root}>\n {this._background}\n <View onLayout={this.setTabLayout.bind(this)} style={{width: '100%'}}></View>\n <WmTabheader\n styles={this.styles.tabHeader}\n data={headerData}\n selectedTabIndex={this.state.selectedTabIndex}\n onIndexChange={this.goToTab.bind(this)}\n ></WmTabheader>\n <View\n style={[{\n width: '100%',\n flex: 1\n }, this.styles.root.height ? \n (isWebPreviewMode() ? {'overflow-x': 'hidden','overflow-y': 'auto'} as any : {overflow: 'scroll'}) \n : {\n overflow: 'hidden',\n maxHeight: this.tabPaneHeights[this.state.selectedTabIndex],\n }]} >\n <SwipeAnimation.View \n enableGestures={props.enablegestures}\n style={{\n flexDirection: 'row',\n flexWrap: 'nowrap'\n }}\n direction='horizontal'\n ref={(r) => {this.animationView = r}}\n handlers = {this.animationHandlers}\n >\n {tabPanes.map((p: any, i) => {\n return (\n <View \n style={{\n width: '100%',\n height: this.styles.root.height ? undefined : 1000000,\n alignSelf: 'flex-start'}}>\n <View\n key={`tab-${p.props.title}-${i}`}\n style={{width: '100%', alignSelf: 'flex-start'}}\n onLayout={this.setTabPaneHeights.bind(this, i)}>\n {/* {this.state.tabsShown[i] ? p : null} */}\n {p}\n </View>\n </View>);\n })}\n </SwipeAnimation.View>\n </View>\n </View>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAA6CC,IAAI,QAA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,CAAC+D,GAAG,CAAC,CAACC,CAAM,EAAEnC,CAAC,KAAK;MAC3B,oBACAtD,KAAA,CAAA6F,aAAA,CAAC5F,IAAI;QACH6F,KAAK,EAAE;UACLvE,KAAK,EAAE,MAAM;UACbwB,MAAM,EAAE,IAAI,CAACgD,MAAM,CAACC,IAAI,CAACjD,MAAM,GAAIgB,SAAS,GAAG,OAAO;UACtD2C,SAAS,EAAE;QAAY;MAAE,gBAC3B1G,KAAA,CAAA6F,aAAA,CAAC5F,IAAI;QACH2F,GAAG,EAAG,OAAMH,CAAC,CAAC3E,KAAK,CAAC4E,KAAM,IAAGpC,CAAE,EAAE;QACjCwC,KAAK,EAAE;UAACvE,KAAK,EAAE,MAAM;UAAEmF,SAAS,EAAE;QAAY,CAAE;QAChDR,QAAQ,EAAE,IAAI,CAACvD,iBAAiB,CAACwD,IAAI,CAAC,IAAI,EAAE7C,CAAC;MAAE,GAE9CmC,CACG,CACF,CAAC;IACT,CAAC,CACkB,CACjB,CACF,CAAC;EAEX;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmTabsProps"],"sources":["tabs.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmTabsProps extends BaseProps {\n children: any;\n defaultpaneindex: number = 0;\n enablegestures = true;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,WAAW,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA;IAAA,0CAEtB,CAAC;IAAA,wCACX,IAAI;EAAA;AACvB"}
1
+ {"version":3,"names":["BaseProps","WmTabsProps","constructor","arguments","_defineProperty"],"sources":["tabs.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmTabsProps extends BaseProps {\n children: any;\n defaultpaneindex: number = 0;\n enablegestures = true;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,WAAW,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA,2BAEtB,CAAC;IAAAA,eAAA,yBACX,IAAI;EAAA;AACvB"}
@@ -14,5 +14,44 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
14
14
  tabHeader: {}
15
15
  });
16
16
  addStyle(DEFAULT_CLASS, '', defaultStyles);
17
+ addStyle('tabs-with-arrow-indicator', '', {
18
+ tabHeader: {
19
+ root: {
20
+ backgroundColor: themeVariables.transparent
21
+ },
22
+ header: {
23
+ marginBottom: 16
24
+ },
25
+ activeIndicator: {
26
+ justifyContent: 'center',
27
+ alignItems: 'center',
28
+ marginTop: 2,
29
+ height: 0
30
+ },
31
+ arrowIndicator: {
32
+ display: 'flex',
33
+ backgroundColor: themeVariables.tabArrowIndicatorBgColor,
34
+ width: 24,
35
+ height: 24,
36
+ justifyContent: 'center',
37
+ alignItems: 'center',
38
+ transform: [{
39
+ rotateZ: '45deg'
40
+ }]
41
+ },
42
+ arrowIndicatorDot: {
43
+ display: 'flex',
44
+ backgroundColor: themeVariables.tabArrowIndicatorDotColor,
45
+ width: 4,
46
+ height: 4,
47
+ borderRadius: 8,
48
+ transform: [{
49
+ translateX: -2
50
+ }, {
51
+ translateY: -2
52
+ }]
53
+ }
54
+ }
55
+ });
17
56
  });
18
57
  //# sourceMappingURL=tabs.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","minHeight","elevation","borderBottomWidth","borderStyle","borderColor","tabBorderColor","text","tabHeader"],"sources":["tabs.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmTabheaderStyles } from './tabheader/tabheader.styles';\n\nexport type WmTabsStyles = BaseStyles & {\n tabHeader: WmTabheaderStyles\n};\n\nexport const DEFAULT_CLASS = 'app-tabs';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmTabsStyles = defineStyles({\n root: {\n minHeight: 240,\n elevation: 0,\n borderBottomWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.tabBorderColor\n },\n text: {},\n tabHeader: {} as WmTabheaderStyles\n });\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAOxF,OAAO,MAAMC,aAAa,GAAG,UAAU;AACvCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA2B,GAAGL,YAAY,CAAC;IAC7CM,IAAI,EAAE;MACJC,SAAS,EAAE,GAAG;MACdC,SAAS,EAAE,CAAC;MACZC,iBAAiB,EAAE,CAAC;MACpBC,WAAW,EAAE,OAAO;MACpBC,WAAW,EAAER,cAAc,CAACS;IAC9B,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,SAAS,EAAE,CAAC;EAChB,CAAC,CAAC;EACFV,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC5C,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","minHeight","elevation","borderBottomWidth","borderStyle","borderColor","tabBorderColor","text","tabHeader","backgroundColor","transparent","header","marginBottom","activeIndicator","justifyContent","alignItems","marginTop","height","arrowIndicator","display","tabArrowIndicatorBgColor","width","transform","rotateZ","arrowIndicatorDot","tabArrowIndicatorDotColor","borderRadius","translateX","translateY"],"sources":["tabs.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmTabheaderStyles } from './tabheader/tabheader.styles';\n\nexport type WmTabsStyles = BaseStyles & {\n tabHeader: WmTabheaderStyles\n};\n\nexport const DEFAULT_CLASS = 'app-tabs';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmTabsStyles = defineStyles({\n root: {\n minHeight: 240,\n elevation: 0,\n borderBottomWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.tabBorderColor\n },\n text: {},\n tabHeader: {} as WmTabheaderStyles\n });\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle('tabs-with-arrow-indicator', '', {\n tabHeader: {\n root: {\n backgroundColor: themeVariables.transparent\n },\n header: {\n marginBottom: 16\n },\n activeIndicator: {\n justifyContent: 'center',\n alignItems: 'center',\n marginTop: 2,\n height: 0\n },\n arrowIndicator: {\n display: 'flex',\n backgroundColor: themeVariables.tabArrowIndicatorBgColor,\n width: 24,\n height: 24,\n justifyContent: 'center',\n alignItems: 'center',\n transform: [{\n rotateZ: '45deg'\n }]\n },\n arrowIndicatorDot: {\n display: 'flex',\n backgroundColor: themeVariables.tabArrowIndicatorDotColor,\n width: 4,\n height: 4, \n borderRadius: 8,\n transform: [{\n translateX: -2\n }, {\n translateY: -2\n }]\n }\n } as WmTabheaderStyles\n });\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAOxF,OAAO,MAAMC,aAAa,GAAG,UAAU;AACvCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA2B,GAAGL,YAAY,CAAC;IAC7CM,IAAI,EAAE;MACJC,SAAS,EAAE,GAAG;MACdC,SAAS,EAAE,CAAC;MACZC,iBAAiB,EAAE,CAAC;MACpBC,WAAW,EAAE,OAAO;MACpBC,WAAW,EAAER,cAAc,CAACS;IAC9B,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,SAAS,EAAE,CAAC;EAChB,CAAC,CAAC;EACFV,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAC1CD,QAAQ,CAAC,2BAA2B,EAAE,EAAE,EAAE;IACxCU,SAAS,EAAE;MACTR,IAAI,EAAE;QACJS,eAAe,EAAEZ,cAAc,CAACa;MAClC,CAAC;MACDC,MAAM,EAAE;QACNC,YAAY,EAAE;MAChB,CAAC;MACDC,eAAe,EAAE;QACfC,cAAc,EAAE,QAAQ;QACxBC,UAAU,EAAE,QAAQ;QACpBC,SAAS,EAAE,CAAC;QACZC,MAAM,EAAE;MACV,CAAC;MACDC,cAAc,EAAE;QACdC,OAAO,EAAE,MAAM;QACfV,eAAe,EAAEZ,cAAc,CAACuB,wBAAwB;QACxDC,KAAK,EAAE,EAAE;QACTJ,MAAM,EAAE,EAAE;QACVH,cAAc,EAAE,QAAQ;QACxBC,UAAU,EAAE,QAAQ;QACpBO,SAAS,EAAE,CAAC;UACVC,OAAO,EAAE;QACX,CAAC;MACH,CAAC;MACDC,iBAAiB,EAAE;QACjBL,OAAO,EAAE,MAAM;QACfV,eAAe,EAAEZ,cAAc,CAAC4B,yBAAyB;QACzDJ,KAAK,EAAE,CAAC;QACRJ,MAAM,EAAE,CAAC;QACTS,YAAY,EAAE,CAAC;QACfJ,SAAS,EAAE,CAAC;UACVK,UAAU,EAAE,CAAC;QACf,CAAC,EAAE;UACDC,UAAU,EAAE,CAAC;QACf,CAAC;MACH;IACF;EACF,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","BaseComponent","BaseComponentState","WmTileProps","DEFAULT_CLASS","Tappable","Animatedview","WmTileState","WmTile","constructor","props","renderWidget","animation","styles","root","_background","children"],"sources":["tile.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmTileProps from './tile.props';\nimport { DEFAULT_CLASS, WmTileStyles } from './tile.styles';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\n\nexport class WmTileState extends BaseComponentState<WmTileProps> {}\n\nexport default class WmTile extends BaseComponent<WmTileProps, WmTileState, WmTileStyles> {\n\n constructor(props: WmTileProps) {\n super(props, DEFAULT_CLASS, new WmTileProps());\n }\n\n renderWidget(props: WmTileProps) {\n return (<Tappable target={this}>\n <Animatedview entryanimation={props.animation} style={this.styles.root}>{this._background}{props.children}</Animatedview>\n </Tappable>);\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,WAAW,MAAM,cAAc;AACtC,SAASC,aAAa,QAAsB,eAAe;AAC3D,SAASC,QAAQ,QAAQ,mDAAmD;AAC5E,SAASC,YAAY,QAAQ,mEAAmE;AAEhG,OAAO,MAAMC,WAAW,SAASL,kBAAkB,CAAc;AAEjE,eAAe,MAAMM,MAAM,SAASP,aAAa,CAAyC;EAExFQ,WAAW,CAACC,KAAkB,EAAE;IAC9B,KAAK,CAACA,KAAK,EAAEN,aAAa,EAAE,IAAID,WAAW,EAAE,CAAC;EAChD;EAEAQ,YAAY,CAACD,KAAkB,EAAE;IAC/B,oBAAQ,oBAAC,QAAQ;MAAC,MAAM,EAAE;IAAK,gBAC7B,oBAAC,YAAY;MAAC,cAAc,EAAEA,KAAK,CAACE,SAAU;MAAC,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC;IAAK,GAAE,IAAI,CAACC,WAAW,EAAEL,KAAK,CAACM,QAAQ,CAAgB,CAChH;EACb;AACF"}
1
+ {"version":3,"names":["React","BaseComponent","BaseComponentState","WmTileProps","DEFAULT_CLASS","Tappable","Animatedview","WmTileState","WmTile","constructor","props","renderWidget","createElement","target","entryanimation","animation","style","styles","root","_background","children"],"sources":["tile.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmTileProps from './tile.props';\nimport { DEFAULT_CLASS, WmTileStyles } from './tile.styles';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\n\nexport class WmTileState extends BaseComponentState<WmTileProps> {}\n\nexport default class WmTile extends BaseComponent<WmTileProps, WmTileState, WmTileStyles> {\n\n constructor(props: WmTileProps) {\n super(props, DEFAULT_CLASS, new WmTileProps());\n }\n\n renderWidget(props: WmTileProps) {\n return (<Tappable target={this}>\n <Animatedview entryanimation={props.animation} style={this.styles.root}>{this._background}{props.children}</Animatedview>\n </Tappable>);\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,WAAW,MAAM,cAAc;AACtC,SAASC,aAAa,QAAsB,eAAe;AAC3D,SAASC,QAAQ,QAAQ,mDAAmD;AAC5E,SAASC,YAAY,QAAQ,mEAAmE;AAEhG,OAAO,MAAMC,WAAW,SAASL,kBAAkB,CAAc;AAEjE,eAAe,MAAMM,MAAM,SAASP,aAAa,CAAyC;EAExFQ,WAAWA,CAACC,KAAkB,EAAE;IAC9B,KAAK,CAACA,KAAK,EAAEN,aAAa,EAAE,IAAID,WAAW,CAAC,CAAC,CAAC;EAChD;EAEAQ,YAAYA,CAACD,KAAkB,EAAE;IAC/B,oBAAQV,KAAA,CAAAY,aAAA,CAACP,QAAQ;MAACQ,MAAM,EAAE;IAAK,gBAC7Bb,KAAA,CAAAY,aAAA,CAACN,YAAY;MAACQ,cAAc,EAAEJ,KAAK,CAACK,SAAU;MAACC,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC;IAAK,GAAE,IAAI,CAACC,WAAW,EAAET,KAAK,CAACU,QAAuB,CAChH,CAAC;EACb;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmTileProps"],"sources":["tile.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmTileProps extends BaseProps {\n animation: string = null as any;\n children: any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,WAAW,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,mCAC7B,IAAI;IAAA;EAAA;AAE1B"}
1
+ {"version":3,"names":["BaseProps","WmTileProps","constructor","arguments","_defineProperty"],"sources":["tile.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmTileProps extends BaseProps {\n animation: string = null as any;\n children: any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,WAAW,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBAC7B,IAAI;IAAAA,eAAA;EAAA;AAE1B"}
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","borderRadius","borderWidth","borderStyle","borderColor","transparent","padding","text","color","tilePrimaryTextColor","marginBottom","backgroundColor","tileWellbgColor","tileWellBorderColor"],"sources":["tile.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport type WmTileStyles = BaseStyles & {};\n\nexport const DEFAULT_CLASS = 'app-tile';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmTileStyles = defineStyles({\n root: {\n borderRadius: 6,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.transparent,\n padding: 12\n },\n text: {}\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n\n addStyle('tile-template-text', '', {\n text: {\n color: themeVariables.tilePrimaryTextColor\n }\n } as any);\n\n addStyle('well', '', {\n root: {\n padding: 20,\n marginBottom: 20,\n borderWidth: 1,\n backgroundColor: themeVariables.tileWellbgColor,\n borderColor: themeVariables.tileWellBorderColor,\n borderStyle: 'solid',\n borderRadius: 2\n }\n });\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAIxF,OAAO,MAAMC,aAAa,GAAG,UAAU;AACvCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA2B,GAAGL,YAAY,CAAC;IAC7CM,IAAI,EAAE;MACJC,YAAY,EAAE,CAAC;MACfC,WAAW,EAAE,CAAC;MACdC,WAAW,EAAE,OAAO;MACpBC,WAAW,EAAEP,cAAc,CAACQ,WAAW;MACvCC,OAAO,EAAE;IACX,CAAC;IACDC,IAAI,EAAE,CAAC;EACX,CAAC,CAAC;EAEFT,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAE1CD,QAAQ,CAAC,oBAAoB,EAAE,EAAE,EAAE;IACjCS,IAAI,EAAE;MACJC,KAAK,EAAEX,cAAc,CAACY;IACxB;EACF,CAAC,CAAQ;EAETX,QAAQ,CAAC,MAAM,EAAE,EAAE,EAAE;IACnBE,IAAI,EAAE;MACJM,OAAO,EAAE,EAAE;MACXI,YAAY,EAAE,EAAE;MAChBR,WAAW,EAAE,CAAC;MACdS,eAAe,EAAEd,cAAc,CAACe,eAAe;MAC/CR,WAAW,EAAEP,cAAc,CAACgB,mBAAmB;MAC/CV,WAAW,EAAE,OAAO;MACpBF,YAAY,EAAE;IAChB;EACF,CAAC,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","borderRadius","borderWidth","borderStyle","borderColor","transparent","padding","text","color","tilePrimaryTextColor","marginBottom","backgroundColor","tileWellbgColor","tileWellBorderColor"],"sources":["tile.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport type WmTileStyles = BaseStyles & {};\n\nexport const DEFAULT_CLASS = 'app-tile';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmTileStyles = defineStyles({\n root: {\n borderRadius: 6,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.transparent,\n padding: 12\n },\n text: {}\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n\n addStyle('tile-template-text', '', {\n text: {\n color: themeVariables.tilePrimaryTextColor\n }\n } as any);\n\n addStyle('well', '', {\n root: {\n padding: 20,\n marginBottom: 20,\n borderWidth: 1,\n backgroundColor: themeVariables.tileWellbgColor,\n borderColor: themeVariables.tileWellBorderColor,\n borderStyle: 'solid',\n borderRadius: 2\n }\n });\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAIxF,OAAO,MAAMC,aAAa,GAAG,UAAU;AACvCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA2B,GAAGL,YAAY,CAAC;IAC7CM,IAAI,EAAE;MACJC,YAAY,EAAE,CAAC;MACfC,WAAW,EAAE,CAAC;MACdC,WAAW,EAAE,OAAO;MACpBC,WAAW,EAAEP,cAAc,CAACQ,WAAW;MACvCC,OAAO,EAAE;IACX,CAAC;IACDC,IAAI,EAAE,CAAC;EACX,CAAC,CAAC;EAEFT,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAE1CD,QAAQ,CAAC,oBAAoB,EAAE,EAAE,EAAE;IACjCS,IAAI,EAAE;MACJC,KAAK,EAAEX,cAAc,CAACY;IACxB;EACF,CAAQ,CAAC;EAETX,QAAQ,CAAC,MAAM,EAAE,EAAE,EAAE;IACnBE,IAAI,EAAE;MACJM,OAAO,EAAE,EAAE;MACXI,YAAY,EAAE,EAAE;MAChBR,WAAW,EAAE,CAAC;MACdS,eAAe,EAAEd,cAAc,CAACe,eAAe;MAC/CR,WAAW,EAAEP,cAAc,CAACgB,mBAAmB;MAC/CV,WAAW,EAAE,OAAO;MACpBF,YAAY,EAAE;IAChB;EACF,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -2,7 +2,7 @@ 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 { Text, View, TouchableOpacity } from 'react-native';
5
+ import { Text, View, TouchableOpacity, Platform } from 'react-native';
6
6
  import { isArray, merge } from 'lodash';
7
7
  import { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';
8
8
  import WmWizardProps from './wizard.props';
@@ -66,8 +66,13 @@ export default class WmWizard extends BaseComponent {
66
66
  renderWizardHeader(item, index) {
67
67
  const isLastStep = index === this.numberOfSteps - 1;
68
68
  const isFirstStep = index === 0;
69
+ const isActiveStep = index === this.state.currentStep;
70
+ const isNumberTextLayout = this.state.props.classname === 'number-text-inline';
69
71
  return item.props.show != false ? /*#__PURE__*/React.createElement(View, {
70
- style: this.styles.headerWrapper,
72
+ style: [this.styles.headerWrapper, isNumberTextLayout ? {
73
+ paddingRight: isActiveStep ? 0 : 5,
74
+ paddingLeft: index === this.state.currentStep + 1 ? 0 : 5
75
+ } : {}],
71
76
  key: index + 1
72
77
  }, /*#__PURE__*/React.createElement(TouchableOpacity, {
73
78
  style: this.styles.stepWrapper,
@@ -76,7 +81,7 @@ export default class WmWizard extends BaseComponent {
76
81
  }, /*#__PURE__*/React.createElement(View, {
77
82
  style: this.getStepStyle(index)
78
83
  }, index >= this.state.currentStep && !this.state.isDone && /*#__PURE__*/React.createElement(Text, {
79
- style: index === this.state.currentStep ? this.styles.activeStep : this.styles.stepCounter
84
+ style: isActiveStep ? this.styles.activeStep : this.styles.stepCounter
80
85
  }, index + 1), (index < this.state.currentStep || this.state.isDone) && /*#__PURE__*/React.createElement(WmIcon, {
81
86
  styles: merge({}, this.styles.stepIcon, {
82
87
  icon: {
@@ -84,12 +89,16 @@ export default class WmWizard extends BaseComponent {
84
89
  }
85
90
  }),
86
91
  iconclass: item.props.iconclass || 'wm-sl-l sl-check'
87
- })), /*#__PURE__*/React.createElement(Text, {
92
+ })), (isNumberTextLayout && isActiveStep || !isNumberTextLayout) && /*#__PURE__*/React.createElement(Text, {
88
93
  style: this.styles.stepTitle
89
- }, item.props.title || 'Step Title')), this.numberOfSteps > 1 && /*#__PURE__*/React.createElement(View, {
94
+ }, item.props.title || 'Step Title'), this.numberOfSteps > 1 && isActiveStep && /*#__PURE__*/React.createElement(View, {
95
+ style: [this.styles.numberTextStepConnector, {
96
+ width: isLastStep ? 0 : 50
97
+ }]
98
+ })), this.numberOfSteps > 1 && /*#__PURE__*/React.createElement(View, {
90
99
  style: [this.styles.stepConnector, {
91
100
  width: isFirstStep || isLastStep ? '50%' : '100%',
92
- left: isFirstStep ? '50%' : '0%'
101
+ left: Platform.OS == "web" ? !this.isRTL && isFirstStep || this.isRTL && isLastStep ? '50%' : '0%' : isFirstStep ? '50%' : '0%'
93
102
  }]
94
103
  })) : null;
95
104
  }