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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. app-rn-runtime/actions/login-action.js +4 -0
  2. app-rn-runtime/actions/login-action.js.map +1 -1
  3. app-rn-runtime/actions/logout-action.js +4 -0
  4. app-rn-runtime/actions/logout-action.js.map +1 -1
  5. app-rn-runtime/actions/notification-action.js.map +1 -1
  6. app-rn-runtime/components/advanced/carousel/carousel.component.js +123 -32
  7. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  8. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  9. app-rn-runtime/components/advanced/carousel/carousel.styles.js +7 -3
  10. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  11. app-rn-runtime/components/advanced/login/login.component.js +3 -2
  12. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  13. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js +17 -16
  14. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  15. app-rn-runtime/components/advanced/webview/webview.component.js +28 -11
  16. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  17. app-rn-runtime/components/advanced/webview/webview.props.js +0 -1
  18. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  19. app-rn-runtime/components/basic/anchor/anchor.component.js +7 -5
  20. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  21. app-rn-runtime/components/basic/animatedview.component.js +50 -0
  22. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  23. app-rn-runtime/components/basic/audio/audio.component.js +5 -0
  24. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -1
  25. app-rn-runtime/components/basic/button/button.component.js +20 -7
  26. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  27. app-rn-runtime/components/basic/button/button.styles.js +15 -5
  28. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  29. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js +11 -5
  30. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  31. app-rn-runtime/components/basic/icon/icon.component.js +9 -6
  32. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  33. app-rn-runtime/components/basic/icon/icon.props.js +1 -0
  34. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  35. app-rn-runtime/components/basic/icon/icon.styles.js +2 -1
  36. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  37. app-rn-runtime/components/basic/label/label.component.js +79 -11
  38. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  39. app-rn-runtime/components/basic/label/label.props.js +1 -0
  40. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  41. app-rn-runtime/components/basic/label/label.styles.js +5 -0
  42. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  43. app-rn-runtime/components/basic/message/message.component.js +6 -3
  44. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  45. app-rn-runtime/components/basic/picture/picture.component.js +7 -5
  46. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  47. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +4 -3
  48. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  49. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js +1 -1
  50. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  51. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +3 -2
  52. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  53. app-rn-runtime/components/basic/search/search.component.js +9 -5
  54. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  55. app-rn-runtime/components/basic/search/search.styles.js +11 -10
  56. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  57. app-rn-runtime/components/basic/spinner/spinner.component.js +6 -2
  58. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  59. app-rn-runtime/components/basic/spinner/spinner.styles.js +3 -2
  60. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  61. app-rn-runtime/components/basic/video/video.component.js +2 -1
  62. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  63. app-rn-runtime/components/chart/area-chart/area-chart.component.js +42 -14
  64. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  65. app-rn-runtime/components/chart/area-chart/area-chart.props.js +10 -1
  66. app-rn-runtime/components/chart/area-chart/area-chart.props.js.map +1 -1
  67. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js +42 -4
  68. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  69. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js +1 -2
  70. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  71. app-rn-runtime/components/chart/basechart.component.js +140 -39
  72. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  73. app-rn-runtime/components/chart/basechart.props.js +18 -4
  74. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  75. app-rn-runtime/components/chart/basechart.styles.js +44 -2
  76. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  77. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js +25 -3
  78. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  79. app-rn-runtime/components/chart/bubble-chart/bubble-chart.props.js +9 -1
  80. app-rn-runtime/components/chart/bubble-chart/bubble-chart.props.js.map +1 -1
  81. app-rn-runtime/components/chart/line-chart/line-chart.component.js +28 -6
  82. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  83. app-rn-runtime/components/chart/line-chart/line-chart.props.js +1 -0
  84. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  85. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +25 -3
  86. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  87. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js +1 -0
  88. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  89. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js +81 -19
  90. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js.map +1 -1
  91. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js +2 -0
  92. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js.map +1 -1
  93. app-rn-runtime/components/container/accordion/accordion.component.js +16 -13
  94. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  95. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +3 -22
  96. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  97. app-rn-runtime/components/container/container.component.js +14 -4
  98. app-rn-runtime/components/container/container.component.js.map +1 -1
  99. app-rn-runtime/components/container/container.props.js +1 -0
  100. app-rn-runtime/components/container/container.props.js.map +1 -1
  101. app-rn-runtime/components/container/panel/collapsible-pane.component.js +26 -0
  102. app-rn-runtime/components/container/panel/collapsible-pane.component.js.map +1 -0
  103. app-rn-runtime/components/container/panel/panel.component.js +43 -61
  104. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  105. app-rn-runtime/components/container/panel/panel.styles.js +9 -2
  106. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  107. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +29 -15
  108. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  109. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +15 -10
  110. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  111. app-rn-runtime/components/container/tabs/tabs.component.js +18 -10
  112. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  113. app-rn-runtime/components/container/tabs/tabs.styles.js +1 -0
  114. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  115. app-rn-runtime/components/container/tile/tile.component.js +3 -2
  116. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  117. app-rn-runtime/components/container/wizard/wizard.component.js +137 -20
  118. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  119. app-rn-runtime/components/container/wizard/wizard.props.js +4 -0
  120. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  121. app-rn-runtime/components/container/wizard/wizard.styles.js +114 -5
  122. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  123. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +22 -3
  124. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  125. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js +4 -0
  126. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  127. app-rn-runtime/components/data/card/card.component.js +3 -2
  128. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  129. app-rn-runtime/components/data/form/form-action/form-action.component.js +1 -0
  130. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  131. app-rn-runtime/components/data/form/form-field/form-field.component.js +9 -7
  132. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  133. app-rn-runtime/components/data/form/form.component.js +12 -6
  134. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  135. app-rn-runtime/components/data/list/list-template/list-template.styles.js +5 -1
  136. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  137. app-rn-runtime/components/data/list/list.component.js +65 -8
  138. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  139. app-rn-runtime/components/data/list/list.props.js +1 -0
  140. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  141. app-rn-runtime/components/data/list/list.styles.js +12 -5
  142. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  143. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +1 -0
  144. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  145. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js +2 -1
  146. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js.map +1 -1
  147. app-rn-runtime/components/device/camera/camera.component.js +1 -0
  148. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  149. app-rn-runtime/components/device/camera/camera.styles.js +2 -1
  150. app-rn-runtime/components/device/camera/camera.styles.js.map +1 -1
  151. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js +4 -1
  152. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  153. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js +9 -3
  154. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -1
  155. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js +6 -2
  156. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  157. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js +10 -10
  158. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  159. app-rn-runtime/components/dialogs/dialog/dialog.component.js +2 -0
  160. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  161. app-rn-runtime/components/dialogs/dialog/dialog.styles.js +25 -8
  162. app-rn-runtime/components/dialogs/dialog/dialog.styles.js.map +1 -1
  163. app-rn-runtime/components/input/baseinput/baseinput.component.js +6 -2
  164. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  165. app-rn-runtime/components/input/basenumber/basenumber.component.js +45 -6
  166. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  167. app-rn-runtime/components/input/basenumber/basenumber.props.js +1 -0
  168. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  169. app-rn-runtime/components/input/calendar/calendar.component.js +4 -0
  170. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  171. app-rn-runtime/components/input/calendar/calendar.styles.js +22 -11
  172. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  173. app-rn-runtime/components/input/calendar/views/month-view.js +4 -0
  174. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  175. app-rn-runtime/components/input/checkbox/checkbox.component.js +6 -6
  176. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  177. app-rn-runtime/components/input/checkboxset/checkboxset.component.js +14 -7
  178. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  179. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js +2 -1
  180. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +1 -1
  181. app-rn-runtime/components/input/chips/chips.component.js +15 -4
  182. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  183. app-rn-runtime/components/input/chips/chips.styles.js +20 -12
  184. app-rn-runtime/components/input/chips/chips.styles.js.map +1 -1
  185. app-rn-runtime/components/input/composite/composite.component.js +1 -1
  186. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  187. app-rn-runtime/components/input/composite/composite.props.js +1 -1
  188. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  189. app-rn-runtime/components/input/currency/currency.component.js +21 -3
  190. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  191. app-rn-runtime/components/input/currency/currency.props.js +1 -0
  192. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  193. app-rn-runtime/components/input/currency/currency.styles.js +31 -5
  194. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  195. app-rn-runtime/components/input/epoch/base-datetime.component.js +32 -9
  196. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  197. app-rn-runtime/components/input/epoch/date/date.component.js +8 -0
  198. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  199. app-rn-runtime/components/input/epoch/date/date.styles.js +16 -0
  200. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  201. app-rn-runtime/components/input/epoch/datetime/datetime.component.js +8 -0
  202. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  203. app-rn-runtime/components/input/epoch/datetime/datetime.props.js +1 -0
  204. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  205. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +21 -1
  206. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  207. app-rn-runtime/components/input/epoch/time/time.component.js +8 -0
  208. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  209. app-rn-runtime/components/input/epoch/time/time.styles.js +16 -0
  210. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  211. app-rn-runtime/components/input/fileupload/fileupload.component.js +1 -0
  212. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  213. app-rn-runtime/components/input/number/number.component.js +16 -2
  214. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  215. app-rn-runtime/components/input/number/number.props.js +1 -0
  216. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  217. app-rn-runtime/components/input/number/number.styles.js +23 -2
  218. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  219. app-rn-runtime/components/input/radioset/radioset.component.js +7 -4
  220. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  221. app-rn-runtime/components/input/radioset/radioset.styles.js +2 -1
  222. app-rn-runtime/components/input/radioset/radioset.styles.js.map +1 -1
  223. app-rn-runtime/components/input/rating/rating.component.js +2 -0
  224. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  225. app-rn-runtime/components/input/select/select.component.js +17 -13
  226. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  227. app-rn-runtime/components/input/select/select.styles.js +6 -3
  228. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  229. app-rn-runtime/components/input/slider/slider.component.js +99 -23
  230. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  231. app-rn-runtime/components/input/slider/slider.styles.js +30 -3
  232. app-rn-runtime/components/input/slider/slider.styles.js.map +1 -1
  233. app-rn-runtime/components/input/switch/switch.component.js +11 -5
  234. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  235. app-rn-runtime/components/input/switch/switch.styles.js +13 -8
  236. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  237. app-rn-runtime/components/input/text/text.component.js +12 -1
  238. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  239. app-rn-runtime/components/input/text/text.props.js +1 -0
  240. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  241. app-rn-runtime/components/input/text/text.styles.js +22 -1
  242. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  243. app-rn-runtime/components/input/textarea/textarea.component.js +12 -1
  244. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  245. app-rn-runtime/components/input/textarea/textarea.props.js +1 -0
  246. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  247. app-rn-runtime/components/input/textarea/textarea.styles.js +17 -0
  248. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  249. app-rn-runtime/components/input/toggle/toggle.component.js +44 -5
  250. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  251. app-rn-runtime/components/input/toggle/toggle.styles.js +16 -11
  252. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  253. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +16 -3
  254. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  255. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js +1 -1
  256. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  257. app-rn-runtime/components/navigation/menu/menu.component.js +5 -3
  258. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  259. app-rn-runtime/components/navigation/menu/menu.styles.js +10 -6
  260. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  261. app-rn-runtime/components/navigation/navbar/navbar.component.js +7 -4
  262. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  263. app-rn-runtime/components/navigation/navitem/navitem.component.js +5 -2
  264. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  265. app-rn-runtime/components/navigation/navitem/navitem.styles.js +14 -10
  266. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  267. app-rn-runtime/components/navigation/popover/popover.component.js +7 -4
  268. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  269. app-rn-runtime/components/navigation/popover/popover.styles.js +8 -2
  270. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  271. app-rn-runtime/components/page/left-panel/left-panel.component.js +1 -1
  272. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  273. app-rn-runtime/components/page/left-panel/left-panel.styles.js +6 -1
  274. app-rn-runtime/components/page/left-panel/left-panel.styles.js.map +1 -1
  275. app-rn-runtime/components/page/page-content/page-content.component.js +11 -3
  276. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  277. app-rn-runtime/components/page/tabbar/curve.js +84 -0
  278. app-rn-runtime/components/page/tabbar/curve.js.map +1 -0
  279. app-rn-runtime/components/page/tabbar/tabbar.component.js +47 -12
  280. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  281. app-rn-runtime/components/page/tabbar/tabbar.props.js +1 -0
  282. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  283. app-rn-runtime/components/page/tabbar/tabbar.styles.js +54 -1
  284. app-rn-runtime/components/page/tabbar/tabbar.styles.js.map +1 -1
  285. app-rn-runtime/core/base.component.js +84 -37
  286. app-rn-runtime/core/base.component.js.map +1 -1
  287. app-rn-runtime/core/components/floatinglabel.component.js +45 -0
  288. app-rn-runtime/core/components/floatinglabel.component.js.map +1 -0
  289. app-rn-runtime/core/components/textinput.component.js +25 -2
  290. app-rn-runtime/core/components/textinput.component.js.map +1 -1
  291. app-rn-runtime/core/constant.service.js +22 -0
  292. app-rn-runtime/core/constant.service.js.map +1 -0
  293. app-rn-runtime/core/formatters.js +9 -2
  294. app-rn-runtime/core/formatters.js.map +1 -1
  295. app-rn-runtime/core/tappable.component.js +49 -12
  296. app-rn-runtime/core/tappable.component.js.map +1 -1
  297. app-rn-runtime/core/testid.provider.js +5 -0
  298. app-rn-runtime/core/testid.provider.js.map +1 -0
  299. app-rn-runtime/core/utils.js +16 -0
  300. app-rn-runtime/core/utils.js.map +1 -1
  301. app-rn-runtime/gestures/swipe.animation.js +56 -5
  302. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  303. app-rn-runtime/package.json +6 -3
  304. app-rn-runtime/runtime/App.js +51 -21
  305. app-rn-runtime/runtime/App.js.map +1 -1
  306. app-rn-runtime/runtime/base-fragment.component.js +27 -6
  307. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  308. app-rn-runtime/runtime/base-page.component.js +8 -2
  309. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  310. app-rn-runtime/runtime/services/app-i18n.service.js +7 -0
  311. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  312. app-rn-runtime/runtime/services/app-modal.service.js +1 -1
  313. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  314. app-rn-runtime/runtime/services/device/camera-service.js +26 -9
  315. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  316. app-rn-runtime/runtime/services/device/scan-service.js +16 -2
  317. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  318. app-rn-runtime/runtime/services/webprocess.service.js +0 -1
  319. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  320. app-rn-runtime/styles/theme.js +36 -0
  321. app-rn-runtime/styles/theme.js.map +1 -1
  322. app-rn-runtime/styles/theme.variables.js +24 -3
  323. app-rn-runtime/styles/theme.variables.js.map +1 -1
  324. app-rn-runtime/variables/model-variable.js +2 -1
  325. app-rn-runtime/variables/model-variable.js.map +1 -1
@@ -1,13 +1,13 @@
1
1
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
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
- import React, { useState } from 'react';
4
+ import React from 'react';
5
5
  import { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';
6
6
  import WmAccordionpaneProps from './accordionpane.props';
7
7
  import { DEFAULT_CLASS } from './accordionpane.styles';
8
8
  import { View } from 'react-native';
9
9
  import { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';
10
- const Animated = isWebPreviewMode() ? {} : require('react-native-reanimated');
10
+ import { CollapsiblePane } from '../../panel/collapsible-pane.component';
11
11
  export class WmAccordionpaneState extends BaseComponentState {
12
12
  constructor() {
13
13
  super(...arguments);
@@ -15,25 +15,6 @@ export class WmAccordionpaneState extends BaseComponentState {
15
15
  _defineProperty(this, "collapsed", true);
16
16
  }
17
17
  }
18
- const AnimatedView = props => {
19
- const [height, setHeight] = useState(0);
20
- const offset = Animated.useSharedValue(0);
21
- offset.value = props.close ? 0 : 1;
22
- const onLayoutChange = e => {
23
- var _e$nativeEvent;
24
- setHeight((((_e$nativeEvent = e.nativeEvent) === null || _e$nativeEvent === void 0 || (_e$nativeEvent = _e$nativeEvent.layout) === null || _e$nativeEvent === void 0 ? void 0 : _e$nativeEvent.height) || height || 100000000) + 1000);
25
- };
26
- const animatedStyles = Animated.useAnimatedStyle(() => {
27
- return {
28
- maxHeight: Animated.withTiming(offset.value * height)
29
- };
30
- });
31
- return /*#__PURE__*/React.createElement(Animated.default.View, {
32
- style: [animatedStyles]
33
- }, /*#__PURE__*/React.createElement(View, {
34
- onLayout: onLayoutChange
35
- }, props.children));
36
- };
37
18
  export default class WmAccordionpane extends BaseComponent {
38
19
  constructor(props) {
39
20
  super(props, DEFAULT_CLASS, new WmAccordionpaneProps(), new WmAccordionpaneState());
@@ -86,7 +67,7 @@ export default class WmAccordionpane extends BaseComponent {
86
67
  maxHeight: 0,
87
68
  overflow: 'hidden'
88
69
  } : {}
89
- }, this._background, this.renderContent(props)) : /*#__PURE__*/React.createElement(AnimatedView, {
70
+ }, this._background, this.renderContent(props)) : /*#__PURE__*/React.createElement(CollapsiblePane, {
90
71
  close: this.state.collapsed
91
72
  }, this._background, this.renderContent(props));
92
73
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","useState","BaseComponent","BaseComponentState","WmAccordionpaneProps","DEFAULT_CLASS","View","isWebPreviewMode","Animated","require","WmAccordionpaneState","constructor","arguments","_defineProperty","AnimatedView","props","height","setHeight","offset","useSharedValue","value","close","onLayoutChange","e","_e$nativeEvent","nativeEvent","layout","animatedStyles","useAnimatedStyle","maxHeight","withTiming","createElement","default","style","onLayout","children","WmAccordionpane","isCollapsed","state","collapsed","show","updateState","invokeEventCallback","proxy","hide","expand","parent","name","collapse","componentDidMount","accordion","addAccordionPane","onPartialLoad","renderContent","renderPartial","isPartialLoaded","setTimeout","bind","renderWidget","overflow","_background"],"sources":["accordionpane.component.tsx"],"sourcesContent":["import React, { useCallback, useMemo, useState } from 'react';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmAccordionpaneProps from './accordionpane.props';\nimport { DEFAULT_CLASS, WmAccordionpaneStyles } from './accordionpane.styles';\nimport WmAccordion from '../accordion.component';\nimport { LayoutChangeEvent, View } from 'react-native';\nimport { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\n\nconst Animated: any = isWebPreviewMode() ? {} : require('react-native-reanimated');\n\nexport class WmAccordionpaneState extends BaseComponentState<WmAccordionpaneProps> {\n isPartialLoaded = false;\n collapsed = true;\n}\n\nconst AnimatedView = (props: {\n close: boolean,\n children: any\n}) => {\n const [height, setHeight] = useState(0);\n const offset = Animated.useSharedValue(0);\n offset.value = props.close ? 0 : 1;\n const onLayoutChange = (e: LayoutChangeEvent) => {\n setHeight((e.nativeEvent?.layout?.height || height || 100000000) + 1000);\n };\n const animatedStyles = Animated.useAnimatedStyle(() => {\n return {\n maxHeight: Animated.withTiming(offset.value * height)\n };\n });\n return (\n <Animated.default.View style={[animatedStyles]}>\n <View onLayout={onLayoutChange}>\n {props.children}\n </View>\n </Animated.default.View>\n );\n};\n\nexport default class WmAccordionpane extends BaseComponent<WmAccordionpaneProps, WmAccordionpaneState, WmAccordionpaneStyles> {\n\n constructor(props: WmAccordionpaneProps) {\n super(props, DEFAULT_CLASS, new WmAccordionpaneProps(), new WmAccordionpaneState());\n }\n\n isCollapsed() {\n return this.state.collapsed;\n }\n \n show() {\n this.updateState({\n collapsed: false\n } as WmAccordionpaneState);\n this.invokeEventCallback('onExpand', [null, this.proxy]);\n }\n\n hide() {\n this.updateState({\n collapsed: true\n } as WmAccordionpaneState);\n this.invokeEventCallback('onCollapse', [null, this.proxy]);\n }\n\n expand() {\n (this.parent as WmAccordion).expand(this.props.name || '');\n }\n\n collapse() {\n (this.parent as WmAccordion).expand(this.props.name || '');\n }\n\n componentDidMount() {\n const accordion = (this.parent) as WmAccordion;\n accordion.addAccordionPane(this);\n super.componentDidMount();\n }\n\n onPartialLoad() {\n this.invokeEventCallback('onLoad', [this]);\n }\n\n renderContent(props: WmAccordionpaneProps) {\n if (props.renderPartial) {\n if (!this.state.isPartialLoaded) {\n setTimeout(() => {\n this.updateState({\n isPartialLoaded: true\n } as WmAccordionpaneState);\n });\n }\n return props.renderPartial(props, this.onPartialLoad.bind(this));\n }\n return props.children;\n }\n renderWidget(props: WmAccordionpaneProps) {\n return isWebPreviewMode() ? \n (<View style={this.state.collapsed ? {maxHeight: 0, overflow: 'hidden'} : {}}>\n {this._background}\n {this.renderContent(props)}\n </View>) :\n (<AnimatedView close={this.state.collapsed}>\n {this._background}\n {this.renderContent(props)}\n </AnimatedView>);\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAA0BC,QAAQ,QAAQ,OAAO;AAC7D,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,oBAAoB,MAAM,uBAAuB;AACxD,SAASC,aAAa,QAA+B,wBAAwB;AAE7E,SAA4BC,IAAI,QAAQ,cAAc;AACtD,SAASC,gBAAgB,QAAQ,sCAAsC;AAEvE,MAAMC,QAAa,GAAGD,gBAAgB,CAAC,CAAC,GAAG,CAAC,CAAC,GAAGE,OAAO,CAAC,yBAAyB,CAAC;AAElF,OAAO,MAAMC,oBAAoB,SAASP,kBAAkB,CAAuB;EAAAQ,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,0BAC/D,KAAK;IAAAA,eAAA,oBACX,IAAI;EAAA;AAClB;AAEA,MAAMC,YAAY,GAAIC,KAGrB,IAAK;EACJ,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGhB,QAAQ,CAAC,CAAC,CAAC;EACvC,MAAMiB,MAAM,GAAGV,QAAQ,CAACW,cAAc,CAAC,CAAC,CAAC;EACzCD,MAAM,CAACE,KAAK,GAAGL,KAAK,CAACM,KAAK,GAAG,CAAC,GAAG,CAAC;EAClC,MAAMC,cAAc,GAAIC,CAAoB,IAAK;IAAA,IAAAC,cAAA;IAC/CP,SAAS,CAAC,CAAC,EAAAO,cAAA,GAAAD,CAAC,CAACE,WAAW,cAAAD,cAAA,gBAAAA,cAAA,GAAbA,cAAA,CAAeE,MAAM,cAAAF,cAAA,uBAArBA,cAAA,CAAuBR,MAAM,KAAIA,MAAM,IAAI,SAAS,IAAI,IAAI,CAAC;EAC1E,CAAC;EACD,MAAMW,cAAc,GAAGnB,QAAQ,CAACoB,gBAAgB,CAAC,MAAM;IACrD,OAAO;MACLC,SAAS,EAAErB,Q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AULT_CLASS","View","isWebPreviewMode","CollapsiblePane","WmAccordionpaneState","constructor","arguments","_defineProperty","WmAccordionpane","props","isCollapsed","state","collapsed","show","updateState","invokeEventCallback","proxy","hide","expand","parent","name","collapse","componentDidMount","accordion","addAccordionPane","onPartialLoad","renderContent","renderPartial","isPartialLoaded","setTimeout","bind","children","renderWidget","createElement","style","maxHeight","overflow","_background","close"],"sources":["accordionpane.component.tsx"],"sourcesContent":["import React, { useCallback, useMemo, useState } from 'react';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmAccordionpaneProps from './accordionpane.props';\nimport { DEFAULT_CLASS, WmAccordionpaneStyles } from './accordionpane.styles';\nimport WmAccordion from '../accordion.component';\nimport { View } from 'react-native';\nimport { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\nimport { CollapsiblePane } from '../../panel/collapsible-pane.component';\n\nexport class WmAccordionpaneState extends BaseComponentState<WmAccordionpaneProps> {\n isPartialLoaded = false;\n collapsed = true;\n}\n\nexport default class WmAccordionpane extends BaseComponent<WmAccordionpaneProps, WmAccordionpaneState, WmAccordionpaneStyles> {\n\n constructor(props: WmAccordionpaneProps) {\n super(props, DEFAULT_CLASS, new WmAccordionpaneProps(), new WmAccordionpaneState());\n }\n\n isCollapsed() {\n return this.state.collapsed;\n }\n \n show() {\n this.updateState({\n collapsed: false\n } as WmAccordionpaneState);\n this.invokeEventCallback('onExpand', [null, this.proxy]);\n }\n\n hide() {\n this.updateState({\n collapsed: true\n } as WmAccordionpaneState);\n this.invokeEventCallback('onCollapse', [null, this.proxy]);\n }\n\n expand() {\n (this.parent as WmAccordion).expand(this.props.name || '');\n }\n\n collapse() {\n (this.parent as WmAccordion).expand(this.props.name || '');\n }\n\n componentDidMount() {\n const accordion = (this.parent) as WmAccordion;\n accordion.addAccordionPane(this);\n super.componentDidMount();\n }\n\n onPartialLoad() {\n this.invokeEventCallback('onLoad', [this]);\n }\n\n renderContent(props: WmAccordionpaneProps) {\n if (props.renderPartial) {\n if (!this.state.isPartialLoaded) {\n setTimeout(() => {\n this.updateState({\n isPartialLoaded: true\n } as WmAccordionpaneState);\n });\n }\n return props.renderPartial(props, this.onPartialLoad.bind(this));\n }\n return props.children;\n }\n renderWidget(props: WmAccordionpaneProps) {\n return isWebPreviewMode() ? \n (<View style={this.state.collapsed ? {maxHeight: 0, overflow: 'hidden'} : {}}>\n {this._background}\n {this.renderContent(props)}\n </View>) :\n (<CollapsiblePane close={this.state.collapsed}>\n {this._background}\n {this.renderContent(props)}\n </CollapsiblePane>);\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAA0C,OAAO;AAC7D,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,oBAAoB,MAAM,uBAAuB;AACxD,SAASC,aAAa,QAA+B,wBAAwB;AAE7E,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,gBAAgB,QAAQ,sCAAsC;AACvE,SAASC,eAAe,QAAQ,wCAAwC;AAExE,OAAO,MAAMC,oBAAoB,SAASN,kBAAkB,CAAuB;EAAAO,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,0BAC/D,KAAK;IAAAA,eAAA,oBACX,IAAI;EAAA;AAClB;AAEA,eAAe,MAAMC,eAAe,SAASX,aAAa,CAAoE;EAE5HQ,WAAWA,CAACI,KAA2B,EAAE;IACvC,KAAK,CAACA,KAAK,EAAET,aAAa,EAAE,IAAID,oBAAoB,CAAC,CAAC,EAAE,IAAIK,oBAAoB,CAAC,CAAC,CAAC;EACrF;EAEAM,WAAWA,CAAA,EAAG;IACZ,OAAO,IAAI,CAACC,KAAK,CAACC,SAAS;EAC7B;EAEAC,IAAIA,CAAA,EAAG;IACL,IAAI,CAACC,WAAW,CAAC;MACfF,SAAS,EAAE;IACb,CAAyB,CAAC;IAC1B,IAAI,CAACG,mBAAmB,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,CAACC,KAAK,CAAC,CAA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MAACiC,KAAK,EAAE,IAAI,CAACvB,KAAK,CAACC,SAAS,GAAG;QAACuB,SAAS,EAAE,CAAC;QAAEC,QAAQ,EAAE;MAAQ,CAAC,GAAG,CAAC;IAAE,GAC1E,IAAI,CAACC,WAAW,EAChB,IAAI,CAACX,aAAa,CAACjB,KAAK,CACrB,CAAC,gBACNb,KAAA,CAAAqC,aAAA,CAAC9B,eAAe;MAACmC,KAAK,EAAE,IAAI,CAAC3B,KAAK,CAACC;IAAU,GAC3C,IAAI,CAACyB,WAAW,EAChB,IAAI,CAACX,aAAa,CAACjB,KAAK,CACV,CAAE;EACrB;AACF"}
@@ -1,3 +1,4 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
2
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
3
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
4
  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); }
@@ -12,24 +13,33 @@ export class WmContainerState extends PartialHostState {
12
13
  constructor() {
13
14
  super(...arguments);
14
15
  _defineProperty(this, "isPartialLoaded", false);
16
+ _defineProperty(this, "showContent", false);
15
17
  }
16
18
  }
17
19
  export default class WmContainer extends PartialHost {
18
20
  constructor(props) {
19
- super(props, DEFAULT_CLASS, new WmContainerProps());
21
+ super(props, DEFAULT_CLASS, new WmContainerProps(), new WmContainerState());
22
+ this.updateState({
23
+ showContent: !this.state.props.deferload
24
+ });
20
25
  }
21
26
  renderWidget(props) {
27
+ if (!this.state.showContent && this.isVisible()) {
28
+ this.updateState({
29
+ showContent: true
30
+ });
31
+ }
22
32
  const dimensions = {
23
33
  width: this.styles.root.width ? '100%' : undefined,
24
34
  height: this.styles.root.height ? '100%' : undefined
25
35
  };
26
- return /*#__PURE__*/React.createElement(Animatedview, {
36
+ return this.state.showContent && /*#__PURE__*/React.createElement(Animatedview, {
27
37
  entryanimation: props.animation,
28
38
  style: this.styles.root
29
- }, this._background, /*#__PURE__*/React.createElement(Tappable, {
39
+ }, this._background, /*#__PURE__*/React.createElement(Tappable, _extends({}, this.getTestPropsForAction(), {
30
40
  target: this,
31
41
  styles: dimensions
32
- }, /*#__PURE__*/React.createElement(View, {
42
+ }), /*#__PURE__*/React.createElement(View, {
33
43
  style: [dimensions, this.styles.content]
34
44
  }, this.renderContent(props))));
35
45
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","WmContainerProps","DEFAULT_CLASS","Tappable","Animatedview","PartialHost","PartialHostState","WmContainerState","constructor","arguments","_defineProperty","WmContainer","props","renderWidget","dimensions","width","styles","root","undefined","height","createElement","entryanimation","animation","style","_background","target","content","renderContent"],"sources":["container.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View, ViewStyle } from 'react-native';\n\nimport WmContainerProps from './container.props';\nimport { DEFAULT_CLASS, WmContainerStyles } from './container.styles';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\nimport { PartialHost, PartialHostState } from './partial-host.component';\n\nexport class WmContainerState extends PartialHostState<WmContainerProps> {\n isPartialLoaded = false;\n}\n\nexport default class WmContainer extends PartialHost<WmContainerProps, WmContainerState, WmContainerStyles> {\n constructor(props: WmContainerProps) {\n super(props, DEFAULT_CLASS, new WmContainerProps());\n }\n\n renderWidget(props: WmContainerProps) {\n const dimensions = {\n width: this.styles.root.width ? '100%' : undefined,\n height: this.styles.root.height ? '100%' : undefined\n };\n return (\n <Animatedview entryanimation={props.animation} style={this.styles.root}>\n {this._background}\n <Tappable target={this} styles={dimensions}>\n <View style={[dimensions as ViewStyle, this.styles.content]}>{this.renderContent(props)}</View>\n </Tappable>\n </Animatedview>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAmB,cAAc;AAE9C,OAAOC,gBAAgB,MAAM,mBAAmB;AAChD,SAASC,aAAa,QAA2B,oBAAoB;AACrE,SAASC,QAAQ,QAAQ,mDAAmD;AAC5E,SAASC,YAAY,QAAQ,mEAAmE;AAChG,SAASC,WAAW,EAAEC,gBAAgB,QAAQ,0BAA0B;AAExE,OAAO,MAAMC,gBAAgB,SAASD,gBAAgB,CAAmB;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,0BACrD,KAAK;EAAA;AACzB;AAEA,eAAe,MAAMC,WAAW,SAASN,WAAW,CAAwD;EAC1GG,WAAWA,CAACI,KAAuB,EAAE;IACnC,KAAK,CAACA,KAAK,EAAEV,aAAa,EAAE,IAAID,gBAAgB,CAAC,CAAC,CAAC;EACrD;EAEAY,YAAYA,CAACD,KAAuB,EAAE;IACpC,MAAME,UAAU,GAAG;MACjBC,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC,IAAI,CAACF,KAAK,GAAG,MAAM,GAAGG,SAAS;MAClDC,MAAM,EAAE,IAAI,CAACH,MAAM,CAACC,IAAI,CAACE,MAAM,GAAG,MAAM,GAAGD;IAC7C,CAAC;IACD,oBACEnB,KAAA,CAAAqB,aAAA,CAAChB,YAAY;MAACiB,cAAc,EAAET,KAAK,CAACU,SAAU;MAACC,KAAK,EAAE,IAAI,CAACP,MAAM,CAACC;IAAK,GACpE,IAAI,CAACO,WAAW,eACjBzB,KAAA,CAAAqB,aAAA,CAACjB,QAAQ;MAACsB,MAAM,EAAE,IAAK;MAACT,MAAM,EAAEF;IAAW,gBACvCf,KAAA,CAAAqB,aAAA,CAACpB,IAAI;MAACuB,KAAK,EAAE,CAACT,UAAU,EAAgB,IAAI,CAACE,MAAM,CAACU,OAAO;IAAE,GAAE,IAAI,CAACC,aAAa,CAACf,KAAK,CAAQ,CACzF,CACE,CAAC;EAEnB;AACF"}
1
+ {"version":3,"names":["React","View","WmContainerProps","DEFAULT_CLASS","Tappable","Animatedview","PartialHost","PartialHostState","WmContainerState","constructor","arguments","_defineProperty","WmContainer","props","updateState","showContent","state","deferload","renderWidget","isVisible","dimensions","width","styles","root","undefined","height","createElement","entryanimation","animation","style","_background","_extends","getTestPropsForAction","target","content","renderContent"],"sources":["container.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View, ViewStyle } from 'react-native';\n\nimport WmContainerProps from './container.props';\nimport { DEFAULT_CLASS, WmContainerStyles } from './container.styles';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\nimport { PartialHost, PartialHostState } from './partial-host.component';\n\nexport class WmContainerState extends PartialHostState<WmContainerProps> {\n isPartialLoaded = false;\n showContent: boolean = false;\n}\n\nexport default class WmContainer extends PartialHost<WmContainerProps, WmContainerState, WmContainerStyles> {\n constructor(props: WmContainerProps) {\n super(props, DEFAULT_CLASS, new WmContainerProps(), new WmContainerState());\n this.updateState({showContent: !this.state.props.deferload} as WmContainerState);\n }\n\n renderWidget(props: WmContainerProps) {\n if(!this.state.showContent && this.isVisible()){\n this.updateState({showContent: true} as WmContainerState);\n }\n const dimensions = {\n width: this.styles.root.width ? '100%' : undefined,\n height: this.styles.root.height ? '100%' : undefined\n };\n return this.state.showContent && (\n <Animatedview entryanimation={props.animation} style={this.styles.root}>\n {this._background}\n <Tappable {...this.getTestPropsForAction()} target={this} styles={dimensions}>\n <View style={[dimensions as ViewStyle, this.styles.content]}>{this.renderContent(props)}</View>\n </Tappable>\n </Animatedview>\n );\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK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,IAAI,CAACP,MAAM,CAACC;IAAK,GACpE,IAAI,CAACO,WAAW,eACjB9B,KAAA,CAAA0B,aAAA,CAACtB,QAAQ,EAAA2B,QAAA,KAAK,IAAI,CAACC,qBAAqB,CAAC,CAAC;MAAEC,MAAM,EAAE,IAAK;MAACX,MAAM,EAAEF;IAAW,iBACzEpB,KAAA,CAAA0B,aAAA,CAACzB,IAAI;MAAC4B,KAAK,EAAE,CAACT,UAAU,EAAgB,IAAI,CAACE,MAAM,CAACY,OAAO;IAAE,GAAE,IAAI,CAACC,aAAa,CAACtB,KAAK,CAAQ,CACzF,CACE,CACf;EACH;AACF"}
@@ -7,6 +7,7 @@ export default class WmContainerProps extends PartialHostProps {
7
7
  super(...arguments);
8
8
  _defineProperty(this, "animation", null);
9
9
  _defineProperty(this, "onLoad", void 0);
10
+ _defineProperty(this, "deferload", false);
10
11
  }
11
12
  }
12
13
  //# sourceMappingURL=container.props.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["PartialHostProps","WmContainerProps","constructor","arguments","_defineProperty"],"sources":["container.props.ts"],"sourcesContent":["import { PartialHostProps } from './partial-host.component';\n\nexport default class WmContainerProps extends PartialHostProps {\n animation?: string = null as any;\n onLoad?: Function;\n}\n"],"mappings":";;;AAAA,SAASA,gBAAgB,QAAQ,0BAA0B;AAE3D,eAAe,MAAMC,gBAAgB,SAASD,gBAAgB,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBACxC,IAAI;IAAAA,eAAA;EAAA;AAE3B"}
1
+ {"version":3,"names":["PartialHostProps","WmContainerProps","constructor","arguments","_defineProperty"],"sources":["container.props.ts"],"sourcesContent":["import { PartialHostProps } from './partial-host.component';\n\nexport default class WmContainerProps extends PartialHostProps {\n animation?: string = null as any;\n onLoad?: Function;\n deferload?: boolean = false;\n}\n"],"mappings":";;;AAAA,SAASA,gBAAgB,QAAQ,0BAA0B;AAE3D,eAAe,MAAMC,gBAAgB,SAASD,gBAAgB,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBACxC,IAAI;IAAAA,eAAA;IAAAA,eAAA,oBAEH,KAAK;EAAA;AAC7B"}
@@ -0,0 +1,26 @@
1
+ import React, { useState } from 'react';
2
+ import { View } from 'react-native';
3
+ import { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';
4
+ const Animated = isWebPreviewMode() ? {} : require('react-native-reanimated');
5
+ export const CollapsiblePane = props => {
6
+ const [height, setHeight] = useState(0);
7
+ const offset = Animated.useSharedValue(0);
8
+ offset.value = props.close ? 0 : 1;
9
+ const onLayoutChange = e => {
10
+ var _e$nativeEvent;
11
+ setHeight((((_e$nativeEvent = e.nativeEvent) === null || _e$nativeEvent === void 0 || (_e$nativeEvent = _e$nativeEvent.layout) === null || _e$nativeEvent === void 0 ? void 0 : _e$nativeEvent.height) || height || 100000000) + 1000);
12
+ };
13
+ const animatedStyles = Animated.useAnimatedStyle(() => {
14
+ return {
15
+ maxHeight: Animated.withTiming(offset.value * height)
16
+ };
17
+ });
18
+ return /*#__PURE__*/React.createElement(Animated.default.View, {
19
+ style: [{
20
+ overflow: 'hidden'
21
+ }, animatedStyles]
22
+ }, /*#__PURE__*/React.createElement(View, {
23
+ onLayout: onLayoutChange
24
+ }, props.children));
25
+ };
26
+ //# sourceMappingURL=collapsible-pane.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useState","View","isWebPreviewMode","Animated","require","CollapsiblePane","props","height","setHeight","offset","useSharedValue","value","close","onLayoutChange","e","_e$nativeEvent","nativeEvent","layout","animatedStyles","useAnimatedStyle","maxHeight","withTiming","createElement","default","style","overflow","onLayout","children"],"sources":["collapsible-pane.component.tsx"],"sourcesContent":["import React, { useCallback, useMemo, useState } from 'react';\nimport { LayoutChangeEvent, View } from 'react-native';\nimport { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\n\nconst Animated: any = isWebPreviewMode() ? {} : require('react-native-reanimated');\n\nexport const CollapsiblePane = (props: {\n close: boolean,\n children: any\n }) => {\n const [height, setHeight] = useState(0);\n const offset = Animated.useSharedValue(0);\n offset.value = props.close ? 0 : 1;\n const onLayoutChange = (e: LayoutChangeEvent) => {\n setHeight((e.nativeEvent?.layout?.height || height || 100000000) + 1000);\n };\n const animatedStyles = Animated.useAnimatedStyle(() => {\n return {\n maxHeight: Animated.withTiming(offset.value * height)\n };\n });\n return (\n <Animated.default.View style={[{overflow: 'hidden'}, animatedStyles]}>\n <View onLayout={onLayoutChange}>\n {props.children}\n </View>\n </Animated.default.View>\n );\n };"],"mappings":"AAAA,OAAOA,KAAK,IAA0BC,QAAQ,QAAQ,OAAO;AAC7D,SAA4BC,IAAI,QAAQ,cAAc;AACtD,SAASC,gBAAgB,QAAQ,sCAAsC;AAEvE,MAAMC,QAAa,GAAGD,gBAAgB,CAAC,CAAC,GAAG,CAAC,CAAC,GAAGE,OAAO,CAAC,yBAAyB,CAAC;AAElF,OAAO,MAAMC,eAAe,GAAIC,KAG7B,IAAK;EACJ,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGR,QAAQ,CAAC,CAAC,CAAC;EACvC,MAAMS,MAAM,GAAGN,QAAQ,CAACO,cAAc,CAAC,CAAC,CAAC;EACzCD,MAAM,CAACE,KAAK,GAAGL,KAAK,CAACM,KAAK,GAAG,CAAC,GAAG,CAAC;EAClC,MAAMC,cAAc,GAAIC,CAAoB,IAAK;IAAA,IAAAC,cAAA;IAC/CP,SAAS,CAAC,CAAC,EAAAO,cAAA,GAAAD,CAAC,CAACE,WAAW,cAAAD,cAAA,gBAAAA,cAAA,GAAbA,cAAA,CAAeE,MAAM,cAAAF,cAAA,uBAArBA,cAAA,CAAuBR,MAAM,KAAIA,MAAM,IAAI,SAAS,IAAI,IAAI,CAAC;EAC1E,CAAC;EACD,MAAMW,cAAc,GAAGf,QAAQ,CAACgB,gBAAgB,CAAC,MAAM;IACrD,OAAO;MACLC,SAAS,EAAEjB,QAAQ,CAACkB,UAAU,CAACZ,MAAM,CAACE,KAAK,GAAGJ,MAAM;IACtD,CAAC;EACH,CAAC,CAAC;EACF,oBACIR,KAAA,CAAAuB,aAAA,CAACnB,QAAQ,CAACoB,OAAO,CAACtB,IAAI;IAACuB,KAAK,EAAE,CAAC;MAACC,QAAQ,EAAE;IAAQ,CAAC,EAAEP,cAAc;EAAE,gBACnEnB,KAAA,CAAAuB,aAAA,CAACrB,IAAI;IAACyB,QAAQ,EAAEb;EAAe,GAC5BP,KAAK,CAACqB,QACH,CACe,CAAC;AAE9B,CAAC"}
@@ -1,28 +1,26 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
2
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
3
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
4
  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
5
  import React from 'react';
5
- import { View } from 'react-native';
6
- import { Badge, List } from 'react-native-paper';
6
+ import { Text, View, TouchableOpacity } from 'react-native';
7
+ import { isUndefined } from 'lodash';
8
+ import { Badge } from 'react-native-paper';
7
9
  import { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';
8
10
  import WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';
9
11
  import WmPanelProps from './panel.props';
10
12
  import { DEFAULT_CLASS } from './panel.styles';
11
- import { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';
13
+ import { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';
14
+ import { CollapsiblePane } from './collapsible-pane.component';
12
15
  export class WmPanelState extends BaseComponentState {
13
16
  constructor() {
14
17
  super(...arguments);
15
- _defineProperty(this, "expandedId", void 0);
16
18
  _defineProperty(this, "isPartialLoaded", false);
17
19
  }
18
20
  }
19
21
  export default class WmPanel extends BaseComponent {
20
22
  constructor(props) {
21
23
  super(props, DEFAULT_CLASS, new WmPanelProps());
22
- _defineProperty(this, "animatedRef", void 0);
23
- this.updateState({
24
- expandedId: this.state.props.expanded ? 1 : -1
25
- });
26
24
  }
27
25
  onPartialLoad() {
28
26
  this.invokeEventCallback('onLoad', [this]);
@@ -39,31 +37,16 @@ export default class WmPanel extends BaseComponent {
39
37
  return props.renderPartial(props, this.onPartialLoad.bind(this));
40
38
  }
41
39
  }
42
- onPanelPress(expandedId) {
40
+ onPanelPress() {
43
41
  if (!this.state.props.collapsible) {
44
42
  return;
45
43
  }
46
- const paneId = expandedId === this.state.expandedId ? -1 : 1;
47
- const eventName = paneId === 1 ? 'onExpand' : 'onCollapse';
48
- if (eventName === 'onCollapse') {
49
- this.animatedRef.triggerExit().then(res => {
50
- if (res) {
51
- this.updateState({
52
- expandedId: paneId,
53
- props: {
54
- expanded: false
55
- }
56
- });
57
- }
58
- });
59
- } else {
60
- this.updateState({
61
- expandedId: paneId,
62
- props: {
63
- expanded: true
64
- }
65
- });
66
- }
44
+ const eventName = this.state.props.expanded ? 'onCollapse' : 'onExpand';
45
+ this.updateState({
46
+ props: {
47
+ expanded: !this.state.props.expanded
48
+ }
49
+ });
67
50
  this.invokeEventCallback(eventName, [null, this.proxy]);
68
51
  }
69
52
  expandCollapseIcon(isExpanded) {
@@ -80,48 +63,47 @@ export default class WmPanel extends BaseComponent {
80
63
  }) : null;
81
64
  return /*#__PURE__*/React.createElement(View, {
82
65
  style: {
83
- flexDirection: 'row'
66
+ flexDirection: 'row',
67
+ alignItems: 'center'
84
68
  }
85
69
  }, badge, expandCollapseIcon);
86
70
  }
87
- renderPanel(props) {
88
- const icon = /*#__PURE__*/React.createElement(WmIcon, {
71
+ renderHeader() {
72
+ const props = this.state.props;
73
+ return /*#__PURE__*/React.createElement(TouchableOpacity, _extends({}, this.getTestPropsForAction(`header`), {
74
+ style: [this.styles.header],
75
+ onPress: this.onPanelPress.bind(this)
76
+ }), props.iconclass ? /*#__PURE__*/React.createElement(WmIcon, {
89
77
  styles: this.styles.icon,
90
78
  name: props.name + '_icon',
91
79
  iconclass: props.iconclass
92
- });
93
- return /*#__PURE__*/React.createElement(List.Accordion, {
94
- title: props.title,
95
- style: this.styles.header,
96
- id: 1,
97
- titleStyle: this.styles.text,
98
- descriptionStyle: this.styles.subheading,
99
- description: props.subheading,
100
- expanded: props.expanded,
101
- right: _ref => {
102
- let {
103
- isExpanded
104
- } = _ref;
105
- return this.expandCollapseIcon(isExpanded);
106
- },
107
- left: props => icon
108
- }, /*#__PURE__*/React.createElement(Animatedview, {
80
+ }) : null, /*#__PURE__*/React.createElement(View, {
109
81
  style: {
110
- marginLeft: -64
111
- },
112
- ref: ref => this.animatedRef = ref,
113
- entryanimation: 'fadeInDown'
114
- }, /*#__PURE__*/React.createElement(View, null, this.renderContent(props)), /*#__PURE__*/React.createElement(View, null, props.children)));
82
+ flexDirection: 'column',
83
+ flex: 1,
84
+ justifyContent: 'center'
85
+ }
86
+ }, /*#__PURE__*/React.createElement(Text, _extends({
87
+ style: [this.styles.text, this.styles.heading]
88
+ }, this.getTestPropsForAction(`header_title`)), isUndefined(props.title) ? 'Title' : props.title), props.subheading ? /*#__PURE__*/React.createElement(Text, _extends({
89
+ style: this.styles.subheading
90
+ }, this.getTestPropsForAction(`subheader`)), props.subheading) : null), this.expandCollapseIcon(props.expanded));
91
+ }
92
+ renderPane(content) {
93
+ const expanded = this.state.props.expanded;
94
+ return isWebPreviewMode() ? /*#__PURE__*/React.createElement(View, {
95
+ style: expanded ? {} : {
96
+ maxHeight: 0,
97
+ overflow: 'hidden'
98
+ }
99
+ }, content) : /*#__PURE__*/React.createElement(CollapsiblePane, {
100
+ close: !expanded
101
+ }, content);
115
102
  }
116
103
  renderWidget(props) {
117
104
  return /*#__PURE__*/React.createElement(View, {
118
105
  style: this.styles.root
119
- }, this._background, /*#__PURE__*/React.createElement(List.AccordionGroup, {
120
- expandedId: this.state.expandedId,
121
- onAccordionPress: this.onPanelPress.bind(this)
122
- }, /*#__PURE__*/React.createElement(Animatedview, {
123
- entryanimation: props.animation
124
- }, this.renderPanel(props))));
106
+ }, this._background, this.renderHeader(), this.renderPane( /*#__PURE__*/React.createElement(React.Fragment, null, this.renderContent(props), /*#__PURE__*/React.createElement(View, null, props.children))));
125
107
  }
126
108
  }
127
109
  //# sourceMappingURL=panel.component.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","Badge","List","BaseComponent","BaseComponentState","WmIcon","WmPanelProps","DEFAULT_CLASS","Animatedview","WmPanelState","constructor","arguments","_defineProperty","WmPanel","props","updateState","expandedId","state","expanded","onPartialLoad","invokeEventCallback","renderContent","renderPartial","isPartialLoaded","setTimeout","bind","onPanelPress","collapsible","paneId","eventName","animatedRef","triggerExit","then","res","proxy","expandCollapseIcon","isExpanded","widgetProps","badge","badgevalue","undefined","createElement","style","styles","badgetype","iconclass","name","toggleIcon","flexDirection","renderPanel","icon","Accordion","title","header","id","titleStyle","text","descriptionStyle","subheading","description","right","_ref","left","marginLeft","ref","entryanimation","children","renderWidget","root","_background","AccordionGroup","onAccordionPress","animation"],"sources":["panel.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { Badge, List } from 'react-native-paper';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\n\nimport WmPanelProps from './panel.props';\nimport { DEFAULT_CLASS, WmPanelStyles } from './panel.styles';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\n\nexport class WmPanelState extends BaseComponentState<WmPanelProps> {\n expandedId: any;\n isPartialLoaded = false;\n}\n\nexport default class WmPanel extends BaseComponent<WmPanelProps, WmPanelState, WmPanelStyles> {\n private animatedRef: any;\n constructor(props: WmPanelProps) {\n super(props, DEFAULT_CLASS, new WmPanelProps());\n this.updateState({\n expandedId: this.state.props.expanded ? 1 : -1,\n } as WmPanelState);\n }\n\n onPartialLoad() {\n this.invokeEventCallback('onLoad', [this]);\n }\n\n renderContent(props: WmPanelProps) {\n if (props.renderPartial) {\n if (!this.state.isPartialLoaded) {\n setTimeout(() => {\n this.updateState({\n isPartialLoaded: true\n } as WmPanelState);\n });\n }\n return props.renderPartial(props, this.onPartialLoad.bind(this));\n }\n }\n\n onPanelPress(expandedId: any) {\n if (!this.state.props.collapsible) {\n return;\n }\n const paneId = expandedId === this.state.expandedId ? -1 : 1;\n const eventName = paneId === 1 ? 'onExpand' : 'onCollapse';\n\n if (eventName === 'onCollapse') {\n this.animatedRef.triggerExit().then((res: any) => {\n if (res) {\n this.updateState({\n expandedId: paneId,\n props: {\n expanded: false\n }\n } as WmPanelState);\n }\n })\n } else {\n this.updateState({\n expandedId: paneId,\n props: {\n expanded: true\n }\n } as WmPanelState);\n }\n\n this.invokeEventCallback(eventName, [null, this.proxy]);\n }\n\n expandCollapseIcon(isExpanded: boolean) {\n const widgetProps = this.state.props;\n //@ts-ignore\n const badge = widgetProps.badgevalue != undefined ? (<Badge style={[this.styles.badge, this.styles[widgetProps.badgetype || 'default']]}>{widgetProps.badgevalue}</Badge>): null;\n const iconclass = isExpanded ? 'wi wi-chevron-up' : 'wi wi-chevron-down';\n const expandCollapseIcon = widgetProps.collapsible ? (<WmIcon name={'expand_collapse_icon'} styles={this.styles.toggleIcon} iconclass={iconclass}></WmIcon>) : null;\n return (<View style={{flexDirection: 'row'}}>{badge}{expandCollapseIcon}</View>);\n }\n\n renderPanel(props: WmPanelProps) {\n const icon = (<WmIcon styles={this.styles.icon} name={props.name + '_icon'} iconclass={props.iconclass}></WmIcon>);\n return (\n <List.Accordion title={props.title} style={this.styles.header} id={1}\n titleStyle={this.styles.text} descriptionStyle={this.styles.subheading}\n description={props.subheading}\n expanded={props.expanded} \n right={({isExpanded}) => this.expandCollapseIcon(isExpanded)} left={props => icon}>\n <Animatedview style={{marginLeft: -64}} ref={ref => this.animatedRef = ref} entryanimation={'fadeInDown'}>\n <View>{this.renderContent(props)}</View>\n <View>{props.children}</View>\n </Animatedview>\n </List.Accordion>\n );\n }\n\n renderWidget(props: WmPanelProps) {\n return (<View style={this.styles.root}>\n {this._background}\n <List.AccordionGroup expandedId={this.state.expandedId} onAccordionPress={this.onPanelPress.bind(this)}>\n <Animatedview entryanimation={props.animation}>\n {this.renderPanel(props)}\n </Animatedview>\n </List.AccordionGroup>\n </View>);\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAeC,IAAI,QAAQ,cAAc;AACzC,SAASC,KAAK,EAAEC,IAAI,QAAQ,oBAAoB;AAChD,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,OAAOC,MAAM,MAAM,gEAAgE;AAEnF,OAAOC,YAAY,MAAM,eAAe;AACxC,SAASC,aAAa,QAAuB,gBAAgB;AAC7D,SAASC,YAAY,QAAQ,mEAAmE;AAEhG,OAAO,MAAMC,YAAY,SAASL,kBAAkB,CAAe;EAAAM,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA,0BAE/C,KAAK;EAAA;AACzB;AAEA,eAAe,MAAMC,OAAO,SAASV,aAAa,CAA4C;EAE5FO,WAAWA,CAACI,KAAmB,EAAE;IAC/B,KAAK,CAACA,KAAK,EAAEP,aAAa,EAAE,IAAID,YAAY,CAAC,CAAC,CAAC;IAACM,eAAA;IAChD,IAAI,CAACG,WAAW,CAAC;MACfC,UAAU,EAAE,IAAI,CAACC,KAAK,CAACH,KAAK,CAACI,QAAQ,GAAG,CAAC,GAA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AACvB,WAAW,CAACnC,KAAK,CACX,CACG,CACrB,CAAC;EACjB;AACF"}
1
+ {"version":3,"names":["React","Text","View","TouchableOpacity","isUndefined","Badge","BaseComponent","BaseComponentState","WmIcon","WmPanelProps","DEFAULT_CLASS","isWebPreviewMode","CollapsiblePane","WmPanelState","constructor","arguments","_defineProperty","WmPanel","props","onPartialLoad","invokeEventCallback","renderContent","renderPartial","state","isPartialLoaded","setTimeout","updateState","bind","onPanelPress","collapsible","eventName","expanded","proxy","expandCollapseIcon","isExpanded","widgetProps","badge","badgevalue","undefined","createElement","style","styles","badgetype","iconclass","name","toggleIcon","flexDirection","alignItems","renderHeader","_extends","getTestPropsForAction","header","onPress","icon","flex","justifyContent","text","heading","title","subheading","renderPane","content","maxHeight","overflow","close","renderWidget","root","_background","Fragment","children"],"sources":["panel.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View, TouchableOpacity } from 'react-native';\nimport { isUndefined } from 'lodash';\nimport { Badge } from 'react-native-paper';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\n\nimport WmPanelProps from './panel.props';\nimport { DEFAULT_CLASS, WmPanelStyles } from './panel.styles';\nimport { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\nimport { CollapsiblePane } from './collapsible-pane.component';\n\nexport class WmPanelState extends BaseComponentState<WmPanelProps> {\n isPartialLoaded = false;\n}\n\nexport default class WmPanel extends BaseComponent<WmPanelProps, WmPanelState, WmPanelStyles> {\n constructor(props: WmPanelProps) {\n super(props, DEFAULT_CLASS, new WmPanelProps());\n }\n\n onPartialLoad() {\n this.invokeEventCallback('onLoad', [this]);\n }\n\n renderContent(props: WmPanelProps) {\n if (props.renderPartial) {\n if (!this.state.isPartialLoaded) {\n setTimeout(() => {\n this.updateState({\n isPartialLoaded: true\n } as WmPanelState);\n });\n }\n return props.renderPartial(props, this.onPartialLoad.bind(this));\n }\n }\n\n onPanelPress() {\n if (!this.state.props.collapsible) {\n return;\n }\n const eventName = this.state.props.expanded ? 'onCollapse' : 'onExpand';\n this.updateState({\n props: {\n expanded: !this.state.props.expanded\n }\n } as WmPanelState);\n\n this.invokeEventCallback(eventName, [null, this.proxy]);\n }\n\n expandCollapseIcon(isExpanded: boolean) {\n const widgetProps = this.state.props;\n //@ts-ignore\n const badge = widgetProps.badgevalue != undefined ? (<Badge style={[this.styles.badge, this.styles[widgetProps.badgetype || 'default']]}>{widgetProps.badgevalue}</Badge>): null;\n const iconclass = isExpanded ? 'wi wi-chevron-up' : 'wi wi-chevron-down';\n const expandCollapseIcon = widgetProps.collapsible ? (<WmIcon name={'expand_collapse_icon'} styles={this.styles.toggleIcon} iconclass={iconclass}></WmIcon>) : null;\n return (<View style={{flexDirection: 'row', alignItems: 'center'}}>{badge}{expandCollapseIcon}</View>);\n }\n\n renderHeader() {\n const props = this.state.props;\n return (\n <TouchableOpacity\n {...this.getTestPropsForAction(`header`)}\n style={[this.styles.header]}\n onPress={this.onPanelPress.bind(this)}>\n {props.iconclass ? <WmIcon styles={this.styles.icon} name={props.name + '_icon'} iconclass={props.iconclass}></WmIcon>: null}\n <View style={{flexDirection: 'column', flex: 1, justifyContent: 'center'}}>\n <Text style={[\n this.styles.text,\n this.styles.heading]}\n {...this.getTestPropsForAction(`header_title`)}>\n {isUndefined(props.title) ? 'Title' : props.title}\n </Text>\n {props.subheading ? \n (<Text style={this.styles.subheading}\n {...this.getTestPropsForAction(`subheader`)}>{props.subheading}</Text>) : null }\n </View>\n {this.expandCollapseIcon(props.expanded)}\n </TouchableOpacity>\n );\n }\n\n renderPane(content: React.ReactNode) {\n const expanded = this.state.props.expanded;\n return isWebPreviewMode() ? \n (<View style={expanded ? {} : {maxHeight: 0, overflow: 'hidden'}}>\n {content}\n </View>) :\n (<CollapsiblePane close={!expanded}>\n {content}\n </CollapsiblePane>);\n }\n\n renderWidget(props: WmPanelProps) {\n return (<View style={this.styles.root}>\n {this._background}\n {this.renderHeader()}\n {this.renderPane((\n <>\n {this.renderContent(props)}\n <View>{props.children}</View>\n </>\n ))}\n </View>);\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,QAAQ,cAAc;AAC3D,SAASC,WAAW,QAAQ,QAAQ;AACpC,SAASC,KAAK,QAAQ,oBAAoB;AAC1C,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,OAAOC,MAAM,MAAM,gEAAgE;AAEnF,OAAOC,YAAY,MAAM,eAAe;AACxC,SAASC,aAAa,QAAuB,gBAAgB;AAC7D,SAASC,gBAAgB,QAAQ,sCAAsC;AACvE,SAASC,eAAe,QAAQ,8BAA8B;AAE9D,OAAO,MAAMC,YAAY,SAASN,kBAAkB,CAAe;EAAAO,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,0BAC/C,KAAK;EAAA;AACzB;AAEA,eAAe,MAAMC,OAAO,SAASX,aAAa,CAA4C;EAC5FQ,WAAWA,CAACI,KAAmB,EAAE;IAC/B,KAAK,CAACA,KAAK,EAAER,aAAa,EAAE,IAAID,YAAY,CAAC,CAAC,CAAC;EACjD;EAEAU,aAAaA,CAAA,EAAG;IACd,IAAI,CAACC,mBAAmB,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC;EAC5C;EAEAC,aAAaA,CAACH,KAAmB,EAAE;IACjC,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,CAAiB,CAAC;QACpB,CAAC,CAAC;MACJ;MACA,OAAON,KAAK,CAACI,aAAa,CAACJ,KAAK,EAAE,IAAI,CAACC,aAAa,CAACQ,IAAI,CAAC,IAAI,CAAC,CAAC;IAClE;EACF;EAE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,CAAC,EACN,IAAI,CAAC1B,kBAAkB,CAACf,KAAK,CAACa,QAAQ,CACvB,CAAC;EAEvB;EAEA6B,UAAUA,CAACC,OAAwB,EAAE;IACnC,MAAM9B,QAAQ,GAAG,IAAI,CAACR,KAAK,CAACL,KAAK,CAACa,QAAQ;IAC1C,OAAOpB,gBAAgB,CAAC,CAAC,gBACtBX,KAAA,CAAAuC,aAAA,CAACrC,IAAI;MAACsC,KAAK,EAAET,QAAQ,GAAG,CAAC,CAAC,GAAG;QAAC+B,SAAS,EAAE,CAAC;QAAEC,QAAQ,EAAE;MAAQ;IAAE,GAC9DF,OACG,CAAC,gBACN7D,KAAA,CAAAuC,aAAA,CAAC3B,eAAe;MAACoD,KAAK,EAAE,CAACjC;IAAS,GAChC8B,OACc,CAAE;EACvB;EAEAI,YAAYA,CAAC/C,KAAmB,EAAE;IAChC,oBAAQlB,KAAA,CAAAuC,aAAA,CAACrC,IAAI;MAACsC,KAAK,EAAE,IAAI,CAACC,MAAM,CAACyB;IAAK,GACnC,IAAI,CAACC,WAAW,EAChB,IAAI,CAACnB,YAAY,CAAC,CAAC,EACnB,IAAI,CAACY,UAAU,eACd5D,KAAA,CAAAuC,aAAA,CAAAvC,KAAA,CAAAoE,QAAA,QACC,IAAI,CAAC/C,aAAa,CAACH,KAAK,CAAC,eAC1BlB,KAAA,CAAAuC,aAAA,CAACrC,IAAI,QAAEgB,KAAK,CAACmD,QAAe,CAC1B,CACH,CACG,CAAC;EACT;AACF"}
@@ -17,6 +17,7 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
17
17
  fontWeight: 'bold'
18
18
  },
19
19
  header: {
20
+ flexDirection: 'row',
20
21
  backgroundColor: themeVariables.panelHeaderBgColor,
21
22
  paddingHorizontal: 8,
22
23
  paddingVertical: 4,
@@ -26,7 +27,12 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
26
27
  borderTopLeftRadius: 6,
27
28
  borderTopRightRadius: 6
28
29
  },
29
- subheading: {},
30
+ heading: {
31
+ paddingHorizontal: 16
32
+ },
33
+ subheading: {
34
+ paddingHorizontal: 16
35
+ },
30
36
  icon: {
31
37
  root: {
32
38
  alignSelf: 'auto',
@@ -40,7 +46,8 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
40
46
  },
41
47
  badge: {
42
48
  color: themeVariables.badgeTextColor,
43
- marginRight: 8
49
+ marginRight: 8,
50
+ alignSelf: 'center'
44
51
  },
45
52
  default: {
46
53
  backgroundColor: themeVariables.labelDefaultColor
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","Platform","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","backgroundColor","panelBgColor","borderStyle","borderWidth","padding","borderRadius","text","color","panelHeaderTextColor","fontSize","fontWeight","header","panelHeaderBgColor","paddingHorizontal","paddingVertical","borderColor","borderTopLeftRadius","borderTopRightRadius","subheading","icon","alignSelf","toggleIcon","badge","badgeTextColor","marginRight","default","labelDefaultColor","success","labelSuccessColor","danger","labelDangerColor","warning","labelWarningColor","info","labelInfoColor","primary","labelPrimaryColor","OS","textAlign","getPanelBgStyles","panelTextColor","panelDangerColor","panelDefaultColor","panelInfoColor","panelPrimaryColor","panelSuccessColor","panelWarningColor"],"sources":["panel.styles.ts"],"sourcesContent":["import BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport { Platform } from 'react-native';\n\nexport type WmPanelStyles = BaseStyles & {\n icon: WmIconStyles,\n badge: AllStyle,\n header: AllStyle,\n subheading: AllStyle\n};\n\nexport const DEFAULT_CLASS = 'app-panel';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmPanelStyles = defineStyles({\n root: {\n backgroundColor: themeVariables.panelBgColor,\n borderStyle: 'solid',\n borderWidth: 0,\n padding: 12,\n borderRadius: 6\n },\n text: {\n color: themeVariables.panelHeaderTextColor,\n fontSize: 16,\n fontWeight: 'bold'\n },\n header: {\n backgroundColor: themeVariables.panelHeaderBgColor,\n paddingHorizontal: 8,\n paddingVertical: 4,\n borderStyle: 'solid',\n borderWidth: 0,\n borderColor: themeVariables.panelHeaderBgColor,\n borderTopLeftRadius: 6,\n borderTopRightRadius: 6\n },\n subheading: {},\n icon: {\n root: {\n alignSelf: 'auto',\n fontSize: 32,\n },\n } as WmIconStyles,\n toggleIcon: {\n root: {\n fontSize: 16,\n },\n } as WmIconStyles,\n badge: {\n color: themeVariables.badgeTextColor,\n marginRight: 8\n },\n default: {\n backgroundColor: themeVariables.labelDefaultColor\n },\n success: {\n backgroundColor: themeVariables.labelSuccessColor\n },\n danger: {\n backgroundColor: themeVariables.labelDangerColor\n },\n warning: {\n backgroundColor: themeVariables.labelWarningColor\n },\n info: {\n backgroundColor: themeVariables.labelInfoColor\n },\n primary: {\n backgroundColor: themeVariables.labelPrimaryColor\n }\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', Platform.OS==\"web\"?{\n text:{\n textAlign:'right',\n } ,\n subheading:{\n textAlign:'right',\n }\n }:{});\n const getPanelBgStyles = (color: string) => {\n return {\n header: {\n backgroundColor: color\n },\n text: {\n color: themeVariables.panelTextColor\n },\n subheading: {\n color: themeVariables.panelTextColor\n },\n icon: {\n text: {\n color: themeVariables.panelTextColor\n }\n } as WmIconStyles\n } as WmPanelStyles;\n };\n\n addStyle('panel-danger', '', getPanelBgStyles(themeVariables.panelDangerColor));\n addStyle('panel-default', '', getPanelBgStyles(themeVariables.panelDefaultColor));\n addStyle('panel-info', '', getPanelBgStyles(themeVariables.panelInfoColor));\n addStyle('panel-primary', '', getPanelBgStyles(themeVariables.panelPrimaryColor));\n addStyle('panel-success', '', getPanelBgStyles(themeVariables.panelSuccessColor));\n addStyle('panel-warning', '', getPanelBgStyles(themeVariables.panelWarningColor));\n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EAAE0C,gBAAgB,CAAC3C,cAAc,CAACgD,iBAAiB,CAAC,CAAC;EACjF/C,QAAQ,CAAC,eAAe,EAAE,EAAE,EAAE0C,gBAAgB,CAAC3C,cAAc,CAACiD,iBAAiB,CAAC,CAAC;EACjFhD,QAAQ,CAAC,eAAe,EAAE,EAAE,EAAE0C,gBAAgB,CAAC3C,cAAc,CAACkD,iBAAiB,CAAC,CAAC;AACnF,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","Platform","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","backgroundColor","panelBgColor","borderStyle","borderWidth","padding","borderRadius","text","color","panelHeaderTextColor","fontSize","fontWeight","header","flexDirection","panelHeaderBgColor","paddingHorizontal","paddingVertical","borderColor","borderTopLeftRadius","borderTopRightRadius","heading","subheading","icon","alignSelf","toggleIcon","badge","badgeTextColor","marginRight","default","labelDefaultColor","success","labelSuccessColor","danger","labelDangerColor","warning","labelWarningColor","info","labelInfoColor","primary","labelPrimaryColor","OS","textAlign","getPanelBgStyles","panelTextColor","panelDangerColor","panelDefaultColor","panelInfoColor","panelPrimaryColor","panelSuccessColor","panelWarningColor"],"sources":["panel.styles.ts"],"sourcesContent":["import BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport { Platform } from 'react-native';\n\nexport type WmPanelStyles = BaseStyles & {\n icon: WmIconStyles,\n badge: AllStyle,\n header: AllStyle,\n subheading: AllStyle\n};\n\nexport const DEFAULT_CLASS = 'app-panel';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmPanelStyles = defineStyles({\n root: {\n backgroundColor: themeVariables.panelBgColor,\n borderStyle: 'solid',\n borderWidth: 0,\n padding: 12,\n borderRadius: 6\n },\n text: {\n color: themeVariables.panelHeaderTextColor,\n fontSize: 16,\n fontWeight: 'bold'\n },\n header: {\n flexDirection: 'row',\n backgroundColor: themeVariables.panelHeaderBgColor,\n paddingHorizontal: 8,\n paddingVertical: 4,\n borderStyle: 'solid',\n borderWidth: 0,\n borderColor: themeVariables.panelHeaderBgColor,\n borderTopLeftRadius: 6,\n borderTopRightRadius: 6\n },\n heading: {\n paddingHorizontal: 16\n },\n subheading: {\n paddingHorizontal: 16\n },\n icon: {\n root: {\n alignSelf: 'auto',\n fontSize: 32,\n },\n } as WmIconStyles,\n toggleIcon: {\n root: {\n fontSize: 16,\n },\n } as WmIconStyles,\n badge: {\n color: themeVariables.badgeTextColor,\n marginRight: 8,\n alignSelf: 'center'\n },\n default: {\n backgroundColor: themeVariables.labelDefaultColor\n },\n success: {\n backgroundColor: themeVariables.labelSuccessColor\n },\n danger: {\n backgroundColor: themeVariables.labelDangerColor\n },\n warning: {\n backgroundColor: themeVariables.labelWarningColor\n },\n info: {\n backgroundColor: themeVariables.labelInfoColor\n },\n primary: {\n backgroundColor: themeVariables.labelPrimaryColor\n }\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', Platform.OS==\"web\"?{\n text:{\n textAlign:'right',\n } ,\n subheading:{\n textAlign:'right',\n }\n }:{});\n const getPanelBgStyles = (color: string) => {\n return {\n header: {\n backgroundColor: color\n },\n text: {\n color: themeVariables.panelTextColor\n },\n subheading: {\n color: themeVariables.panelTextColor\n },\n icon: {\n text: {\n color: themeVariables.panelTextColor\n }\n } as WmIconStyles\n } as WmPanelStyles;\n };\n\n addStyle('panel-danger', '', getPanelBgStyles(themeVariables.panelDangerColor));\n addStyle('panel-default', '', getPanelBgStyles(themeVariables.panelDefaultColor));\n addStyle('panel-info', '', getPanelBgStyles(themeVariables.panelInfoColor));\n addStyle('panel-primary', '', getPanelBgStyles(themeVariables.panelPrimaryColor));\n addStyle('panel-success', '', getPanelBgStyles(themeVariables.panelSuccessColor));\n addStyle('panel-warning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AiB,CAAC,CAAC;EACjF/C,QAAQ,CAAC,YAAY,EAAE,EAAE,EAAE4C,gBAAgB,CAAC7C,cAAc,CAACiD,cAAc,CAAC,CAAC;EAC3EhD,QAAQ,CAAC,eAAe,EAAE,EAAE,EAAE4C,gBAAgB,CAAC7C,cAAc,CAACkD,iBAAiB,CAAC,CAAC;EACjFjD,QAAQ,CAAC,eAAe,EAAE,EAAE,EAAE4C,gBAAgB,CAAC7C,cAAc,CAACmD,iBAAiB,CAAC,CAAC;EACjFlD,QAAQ,CAAC,eAAe,EAAE,EAAE,EAAE4C,gBAAgB,CAAC7C,cAAc,CAACoD,iBAAiB,CAAC,CAAC;AACnF,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
2
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
3
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
4
  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); }
@@ -18,6 +19,7 @@ export default class WmTabheader extends BaseComponent {
18
19
  _defineProperty(this, "headerScrollPosition", new Animated.Value(0));
19
20
  _defineProperty(this, "headerScrollPositionValue", 0);
20
21
  _defineProperty(this, "indicatorPosition", new Animated.Value(0));
22
+ _defineProperty(this, "reverseIndicatorWidth", new Animated.Value(0));
21
23
  _defineProperty(this, "indicatorWidth", new Animated.Value(0));
22
24
  this.headerScrollPosition.addListener(_ref => {
23
25
  let {
@@ -28,6 +30,7 @@ export default class WmTabheader extends BaseComponent {
28
30
  }
29
31
  setHeaderPanelPositon(nativeEvent) {
30
32
  this.headerPanelLayout = nativeEvent.nativeEvent.layout;
33
+ this.forceUpdate();
31
34
  }
32
35
  setHeaderPositon(index, nativeEvent) {
33
36
  this.headersLayout[index] = nativeEvent.nativeEvent.layout;
@@ -73,6 +76,11 @@ export default class WmTabheader extends BaseComponent {
73
76
  toValue: toIndicatorWidth / 100,
74
77
  duration: 200,
75
78
  easing: Easing.linear
79
+ }), Animated.timing(this.reverseIndicatorWidth, {
80
+ useNativeDriver: true,
81
+ toValue: toIndicatorWidth ? 100 / toIndicatorWidth : 0,
82
+ duration: 200,
83
+ easing: Easing.linear
76
84
  }), Animated.timing(this.indicatorPosition, {
77
85
  useNativeDriver: true,
78
86
  toValue: position,
@@ -123,10 +131,11 @@ export default class WmTabheader extends BaseComponent {
123
131
  }
124
132
  renderWidget(props) {
125
133
  this.setPosition();
126
- const activeIndicator = this.styles.activeIndicator;
134
+ const arrowIndicator = this.styles.arrowIndicator;
127
135
  return /*#__PURE__*/React.createElement(View, {
128
136
  style: {
129
- overflow: 'hidden'
137
+ overflow: 'hidden',
138
+ zIndex: 16
130
139
  }
131
140
  }, /*#__PURE__*/React.createElement(Animated.View, {
132
141
  style: {
@@ -139,22 +148,23 @@ export default class WmTabheader extends BaseComponent {
139
148
  style: this.styles.root
140
149
  }, this._background, props.data.map((header, i) => {
141
150
  const isSelected = i === props.selectedTabIndex;
142
- return /*#__PURE__*/React.createElement(Tappable, {
143
- onTap: this.onTabSelection.bind(this, i),
151
+ return /*#__PURE__*/React.createElement(Tappable, _extends({
152
+ onTap: this.onTabSelection.bind(this, i)
153
+ }, this.getTestPropsForAction(i + ''), {
144
154
  key: header.key,
145
155
  styles: this.styles.header.flexGrow ? {
146
156
  flexGrow: this.styles.header.flexGrow
147
157
  } : null
148
- }, /*#__PURE__*/React.createElement(View, {
158
+ }), /*#__PURE__*/React.createElement(View, {
149
159
  onLayout: this.setHeaderPositon.bind(this, i)
150
160
  }, /*#__PURE__*/React.createElement(View, {
151
161
  style: [this.styles.header, {
152
162
  flexGrow: undefined
153
163
  }, isSelected ? this.styles.activeHeader : null]
154
- }, /*#__PURE__*/React.createElement(Text, {
164
+ }, /*#__PURE__*/React.createElement(Text, _extends({
155
165
  numberOfLines: 1,
156
166
  style: [this.styles.headerText, isSelected ? this.styles.activeHeaderText : null]
157
- }, header.title))));
167
+ }, this.getTestPropsForLabel(i + '_title')), header.title))));
158
168
  })), /*#__PURE__*/React.createElement(Animated.View, {
159
169
  style: [this.styles.activeIndicator, {
160
170
  transform: [{
@@ -163,18 +173,22 @@ export default class WmTabheader extends BaseComponent {
163
173
  scaleX: this.indicatorWidth
164
174
  }]
165
175
  }]
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,
176
+ }, /*#__PURE__*/React.createElement(Animated.View, {
177
+ style: [{
178
+ transform: [{
179
+ scaleX: this.reverseIndicatorWidth
180
+ }]
181
+ }, this.styles.arrowIndicator]
182
+ }, arrowIndicator.backgroundImage ? /*#__PURE__*/React.createElement(BackgroundComponent, {
183
+ image: arrowIndicator.backgroundImage,
184
+ position: arrowIndicator.backgroundPosition,
185
+ size: arrowIndicator.backgroundSize,
186
+ repeat: arrowIndicator.backgroundRepeat,
187
+ resizeMode: arrowIndicator.backgroundResizeMode,
172
188
  style: {
173
189
  borderRadius: this.styles.root.borderRadius
174
190
  }
175
191
  }) : null, /*#__PURE__*/React.createElement(View, {
176
- style: this.styles.arrowIndicator
177
- }, /*#__PURE__*/React.createElement(View, {
178
192
  style: this.styles.arrowIndicatorDot
179
193
  })))));
180
194
  }