@wavemaker/app-rn-runtime 11.6.0-next.26303 → 11.6.0-next.26305

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 (292) hide show
  1. app-rn-runtime/components/advanced/carousel/carousel.component.js +9 -14
  2. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  3. app-rn-runtime/components/advanced/carousel/carousel.styles.js +3 -6
  4. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  5. app-rn-runtime/components/advanced/webview/webview.component.js +14 -33
  6. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  7. app-rn-runtime/components/advanced/webview/webview.props.js +1 -3
  8. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  9. app-rn-runtime/components/basic/anchor/anchor.component.js +8 -22
  10. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  11. app-rn-runtime/components/basic/anchor/anchor.props.js +0 -7
  12. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  13. app-rn-runtime/components/basic/anchor/anchor.styles.js +0 -1
  14. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  15. app-rn-runtime/components/basic/animatedview.component.js +3 -5
  16. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  17. app-rn-runtime/components/basic/button/button.component.js +7 -40
  18. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  19. app-rn-runtime/components/basic/button/button.props.js +0 -7
  20. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  21. app-rn-runtime/components/basic/button/button.styles.js +6 -6
  22. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  23. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js +5 -13
  24. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  25. app-rn-runtime/components/basic/icon/icon.component.js +12 -64
  26. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  27. app-rn-runtime/components/basic/icon/icon.props.js +0 -7
  28. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  29. app-rn-runtime/components/basic/icon/icon.styles.js +1 -2
  30. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  31. app-rn-runtime/components/basic/label/label.component.js +25 -34
  32. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  33. app-rn-runtime/components/basic/label/label.props.js +0 -3
  34. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  35. app-rn-runtime/components/basic/label/label.styles.js +5 -4
  36. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  37. app-rn-runtime/components/basic/message/message.component.js +2 -3
  38. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  39. app-rn-runtime/components/basic/message/message.props.js +0 -3
  40. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  41. app-rn-runtime/components/basic/message/message.styles.js +1 -3
  42. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  43. app-rn-runtime/components/basic/picture/picture.component.js +2 -4
  44. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  45. app-rn-runtime/components/basic/picture/picture.props.js +0 -3
  46. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  47. app-rn-runtime/components/basic/picture/picture.styles.js +1 -2
  48. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  49. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +3 -3
  50. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  51. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js +0 -2
  52. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  53. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +2 -3
  54. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  55. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js +0 -2
  56. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  57. app-rn-runtime/components/basic/search/search.component.js +1 -2
  58. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  59. app-rn-runtime/components/basic/search/search.props.js +0 -3
  60. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  61. app-rn-runtime/components/basic/search/search.styles.js +5 -6
  62. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  63. app-rn-runtime/components/basic/video/video.component.js +2 -4
  64. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  65. app-rn-runtime/components/basic/video/video.props.js +0 -3
  66. app-rn-runtime/components/basic/video/video.props.js.map +1 -1
  67. app-rn-runtime/components/chart/area-chart/area-chart.component.js +16 -23
  68. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  69. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js +16 -29
  70. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  71. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js +2 -0
  72. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  73. app-rn-runtime/components/chart/basechart.component.js +7 -33
  74. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  75. app-rn-runtime/components/chart/basechart.props.js +2 -7
  76. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  77. app-rn-runtime/components/chart/basechart.styles.js +2 -9
  78. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  79. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js +2 -4
  80. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  81. app-rn-runtime/components/chart/line-chart/line-chart.component.js +18 -23
  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.map +1 -1
  84. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +4 -7
  85. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  86. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js +10 -33
  87. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js.map +1 -1
  88. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js +0 -1
  89. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js.map +1 -1
  90. app-rn-runtime/components/container/container.component.js +2 -11
  91. app-rn-runtime/components/container/container.component.js.map +1 -1
  92. app-rn-runtime/components/container/container.props.js +0 -1
  93. app-rn-runtime/components/container/container.props.js.map +1 -1
  94. app-rn-runtime/components/container/panel/panel.component.js +2 -6
  95. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  96. app-rn-runtime/components/container/panel/panel.props.js +0 -4
  97. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  98. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +1 -1
  99. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  100. app-rn-runtime/components/container/wizard/wizard.component.js +14 -17
  101. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  102. app-rn-runtime/components/container/wizard/wizard.styles.js +3 -19
  103. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  104. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +2 -27
  105. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  106. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js +0 -6
  107. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  108. app-rn-runtime/components/data/card/card.component.js +3 -7
  109. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  110. app-rn-runtime/components/data/card/card.props.js +0 -4
  111. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  112. app-rn-runtime/components/data/form/form-action/form-action.styles.js +1 -2
  113. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  114. app-rn-runtime/components/data/form/form-field/form-field.component.js +1 -5
  115. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  116. app-rn-runtime/components/data/list/list.component.js +6 -58
  117. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  118. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +1 -4
  119. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  120. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js +0 -3
  121. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  122. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js +6 -13
  123. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js.map +1 -1
  124. app-rn-runtime/components/device/camera/camera.component.js +1 -4
  125. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  126. app-rn-runtime/components/device/camera/camera.props.js +0 -3
  127. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  128. app-rn-runtime/components/device/camera/camera.styles.js +4 -12
  129. app-rn-runtime/components/device/camera/camera.styles.js.map +1 -1
  130. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js +0 -4
  131. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  132. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js +0 -4
  133. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  134. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js +1 -2
  135. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -1
  136. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js +0 -4
  137. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  138. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js +0 -4
  139. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  140. app-rn-runtime/components/dialogs/dialog/dialog.component.js +3 -7
  141. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  142. app-rn-runtime/components/dialogs/dialog/dialog.props.js +0 -4
  143. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  144. app-rn-runtime/components/dialogs/dialog/dialog.styles.js +2 -11
  145. app-rn-runtime/components/dialogs/dialog/dialog.styles.js.map +1 -1
  146. app-rn-runtime/components/input/basedataset/basedataset.props.js +0 -4
  147. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  148. app-rn-runtime/components/input/baseinput/baseinput.component.js +2 -2
  149. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  150. app-rn-runtime/components/input/baseinput/baseinput.props.js +0 -4
  151. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  152. app-rn-runtime/components/input/basenumber/basenumber.component.js +10 -16
  153. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  154. app-rn-runtime/components/input/basenumber/basenumber.props.js +0 -4
  155. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  156. app-rn-runtime/components/input/checkbox/checkbox.component.js +5 -12
  157. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  158. app-rn-runtime/components/input/checkbox/checkbox.styles.js +5 -35
  159. app-rn-runtime/components/input/checkbox/checkbox.styles.js.map +1 -1
  160. app-rn-runtime/components/input/checkboxset/checkboxset.component.js +6 -13
  161. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  162. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js +10 -39
  163. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +1 -1
  164. app-rn-runtime/components/input/chips/chips.component.js +1 -5
  165. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  166. app-rn-runtime/components/input/composite/composite.component.js +1 -1
  167. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  168. app-rn-runtime/components/input/composite/composite.props.js +1 -1
  169. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  170. app-rn-runtime/components/input/currency/currency.component.js +2 -18
  171. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  172. app-rn-runtime/components/input/currency/currency.props.js +0 -1
  173. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  174. app-rn-runtime/components/input/currency/currency.styles.js +1 -19
  175. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  176. app-rn-runtime/components/input/epoch/base-datetime.component.js +10 -76
  177. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  178. app-rn-runtime/components/input/epoch/date/date.component.js +0 -8
  179. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  180. app-rn-runtime/components/input/epoch/date/date.styles.js +0 -16
  181. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  182. app-rn-runtime/components/input/epoch/datetime/datetime.component.js +0 -8
  183. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  184. app-rn-runtime/components/input/epoch/datetime/datetime.props.js +0 -5
  185. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  186. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +1 -49
  187. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  188. app-rn-runtime/components/input/epoch/time/time.component.js +0 -8
  189. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  190. app-rn-runtime/components/input/epoch/time/time.styles.js +0 -16
  191. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  192. app-rn-runtime/components/input/fileupload/fileupload.component.js +0 -2
  193. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  194. app-rn-runtime/components/input/fileupload/fileupload.props.js +0 -2
  195. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  196. app-rn-runtime/components/input/fileupload/fileupload.styles.js +1 -1
  197. app-rn-runtime/components/input/fileupload/fileupload.styles.js.map +1 -1
  198. app-rn-runtime/components/input/number/number.component.js +1 -13
  199. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  200. app-rn-runtime/components/input/number/number.props.js +0 -1
  201. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  202. app-rn-runtime/components/input/number/number.styles.js +0 -17
  203. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  204. app-rn-runtime/components/input/radioset/radioset.component.js +2 -7
  205. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  206. app-rn-runtime/components/input/select/select.component.js +3 -7
  207. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  208. app-rn-runtime/components/input/select/select.styles.js +1 -5
  209. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  210. app-rn-runtime/components/input/slider/slider.styles.js +3 -3
  211. app-rn-runtime/components/input/slider/slider.styles.js.map +1 -1
  212. app-rn-runtime/components/input/switch/switch.component.js +1 -8
  213. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  214. app-rn-runtime/components/input/switch/switch.styles.js +5 -10
  215. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  216. app-rn-runtime/components/input/text/text.component.js +1 -13
  217. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  218. app-rn-runtime/components/input/text/text.props.js +0 -1
  219. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  220. app-rn-runtime/components/input/text/text.styles.js +0 -17
  221. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  222. app-rn-runtime/components/input/textarea/textarea.component.js +1 -13
  223. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  224. app-rn-runtime/components/input/textarea/textarea.props.js +0 -1
  225. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  226. app-rn-runtime/components/input/textarea/textarea.styles.js +0 -17
  227. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  228. app-rn-runtime/components/input/toggle/toggle.component.js +5 -48
  229. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  230. app-rn-runtime/components/input/toggle/toggle.props.js +0 -4
  231. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  232. app-rn-runtime/components/input/toggle/toggle.styles.js +12 -5
  233. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  234. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +1 -6
  235. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  236. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js +0 -1
  237. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  238. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js +1 -9
  239. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  240. app-rn-runtime/components/navigation/basenav/basenav.component.js +2 -1
  241. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  242. app-rn-runtime/components/navigation/menu/menu.styles.js +5 -8
  243. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  244. app-rn-runtime/components/navigation/navitem/navitem.component.js +5 -8
  245. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  246. app-rn-runtime/components/navigation/navitem/navitem.props.js +0 -3
  247. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  248. app-rn-runtime/components/navigation/popover/popover.component.js +3 -10
  249. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  250. app-rn-runtime/components/navigation/popover/popover.props.js +0 -7
  251. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  252. app-rn-runtime/components/navigation/popover/popover.styles.js +2 -8
  253. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  254. app-rn-runtime/components/page/tabbar/tabbar.component.js +8 -42
  255. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  256. app-rn-runtime/components/page/tabbar/tabbar.styles.js +16 -82
  257. app-rn-runtime/components/page/tabbar/tabbar.styles.js.map +1 -1
  258. app-rn-runtime/core/base.component.js +2 -15
  259. app-rn-runtime/core/base.component.js.map +1 -1
  260. app-rn-runtime/core/components/textinput.component.js +2 -25
  261. app-rn-runtime/core/components/textinput.component.js.map +1 -1
  262. app-rn-runtime/core/tappable.component.js +10 -37
  263. app-rn-runtime/core/tappable.component.js.map +1 -1
  264. app-rn-runtime/core/utils.js +0 -11
  265. app-rn-runtime/core/utils.js.map +1 -1
  266. app-rn-runtime/gestures/swipe.animation.js +1 -34
  267. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  268. app-rn-runtime/package.json +3 -5
  269. app-rn-runtime/runtime/App.js +0 -4
  270. app-rn-runtime/runtime/App.js.map +1 -1
  271. app-rn-runtime/runtime/base-page.component.js +1 -1
  272. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  273. app-rn-runtime/runtime/services/app-security.service.js +1 -2
  274. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  275. app-rn-runtime/runtime/services/webprocess.service.js +1 -0
  276. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  277. app-rn-runtime/styles/theme.js +0 -36
  278. app-rn-runtime/styles/theme.js.map +1 -1
  279. app-rn-runtime/styles/theme.variables.js +3 -26
  280. app-rn-runtime/styles/theme.variables.js.map +1 -1
  281. app-rn-runtime/variables/model-variable.js +1 -2
  282. app-rn-runtime/variables/model-variable.js.map +1 -1
  283. app-rn-runtime/variables/service-variable.js +0 -1
  284. app-rn-runtime/variables/service-variable.js.map +1 -1
  285. app-rn-runtime/components/chart/staticdata.js +0 -215
  286. app-rn-runtime/components/chart/staticdata.js.map +0 -1
  287. app-rn-runtime/components/page/tabbar/curve.js +0 -84
  288. app-rn-runtime/components/page/tabbar/curve.js.map +0 -1
  289. app-rn-runtime/core/accessibility.js +0 -149
  290. app-rn-runtime/core/accessibility.js.map +0 -1
  291. app-rn-runtime/core/components/floatinglabel.component.js +0 -45
  292. app-rn-runtime/core/components/floatinglabel.component.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmPopoverProps","constructor","arguments","_defineProperty","undefined"],"sources":["popover.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\nimport React from 'react';\nimport { AccessibilityRole } from 'react-native';\n\nexport default class WmPopoverProps extends BaseProps {\n animation?: string = null as any;\n badgevalue? = null as any;\n caption? = 'Link';\n contentanimation?: string = null as any;\n iconclass? = null as any;\n iconposition? = 'left' as any;\n popoverwidth?: string | number | null = 240;\n popoverheight?: string | number | null = 360;\n autoclose?: 'outsideClick' | 'disabled' | 'always' = 'outsideClick';\n children? = [] as any;\n renderPartial?: Function = null as any;\n title?: string = null as any;\n type?: 'action-sheet' | 'dropdown' = 'action-sheet';\n iconurl?: string = null as any;\n iconheight?: number = null as any;\n iconwidth?: number = null as any;\n iconmargin?: number = null as any;\n accessibilitylabel?: string = undefined;\n hint?: string = undefined;\n accessibilityrole?: AccessibilityRole = \"none\";\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAIzE,eAAe,MAAMC,cAAc,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBAC/B,IAAI;IAAAA,eAAA,qBACX,IAAI;IAAAA,eAAA,kBACP,MAAM;IAAAA,eAAA,2BACW,IAAI;IAAAA,eAAA,oBACnB,IAAI;IAAAA,eAAA,uBACD,MAAM;IAAAA,eAAA,uBACkB,GAAG;IAAAA,eAAA,wBACF,GAAG;IAAAA,eAAA,oBACS,cAAc;IAAAA,eAAA,mBACvD,EAAE;IAAAA,eAAA,wBACa,IAAI;IAAAA,eAAA,gBACd,IAAI;IAAAA,eAAA,eACgB,cAAc;IAAAA,eAAA,kBAChC,IAAI;IAAAA,eAAA,qBACD,IAAI;IAAAA,eAAA,oBACL,IAAI;IAAAA,eAAA,qBACH,IAAI;IAAAA,eAAA,6BACIC,SAAS;IAAAD,eAAA,eACvBC,SAAS;IAAAD,eAAA,4BACe,MAAM;EAAA;AAChD"}
1
+ {"version":3,"names":["BaseProps","WmPopoverProps","constructor","arguments","_defineProperty"],"sources":["popover.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\nimport React from 'react';\n\nexport default class WmPopoverProps extends BaseProps {\n animation?: string = null as any;\n badgevalue? = null as any;\n caption? = 'Link';\n contentanimation?: string = null as any;\n iconclass? = null as any;\n iconposition? = 'left' as any;\n popoverwidth?: string | number | null = 240;\n popoverheight?: string | number | null = 360;\n autoclose?: 'outsideClick' | 'disabled' | 'always' = 'outsideClick';\n children? = [] as any;\n renderPartial?: Function = null as any;\n title?: string = null as any;\n type?: 'action-sheet' | 'dropdown' = 'action-sheet';\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAGzE,eAAe,MAAMC,cAAc,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBAC/B,IAAI;IAAAA,eAAA,qBACX,IAAI;IAAAA,eAAA,kBACP,MAAM;IAAAA,eAAA,2BACW,IAAI;IAAAA,eAAA,oBACnB,IAAI;IAAAA,eAAA,uBACD,MAAM;IAAAA,eAAA,uBACkB,GAAG;IAAAA,eAAA,wBACF,GAAG;IAAAA,eAAA,oBACS,cAAc;IAAAA,eAAA,mBACvD,EAAE;IAAAA,eAAA,wBACa,IAAI;IAAAA,eAAA,gBACd,IAAI;IAAAA,eAAA,eACgB,cAAc;EAAA;AACrD"}
@@ -5,8 +5,7 @@ export const DEFAULT_CLASS = 'app-popover';
5
5
  BASE_THEME.registerStyle((themeVariables, addStyle) => {
6
6
  const defaultStyles = defineStyles({
7
7
  root: {
8
- padding: 8,
9
- alignSelf: 'flex-start'
8
+ padding: 8
10
9
  },
11
10
  text: {},
12
11
  title: {
@@ -16,12 +15,7 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
16
15
  fontSize: 16,
17
16
  fontFamily: themeVariables.baseFont
18
17
  },
19
- link: {
20
- root: {},
21
- text: {
22
- paddingRight: 8
23
- }
24
- },
18
+ link: {},
25
19
  popover: {
26
20
  backgroundColor: themeVariables.popoverBackgroundColor,
27
21
  maxWidth: 640,
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","Dimensions","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","padding","alignSelf","text","title","backgroundColor","popoverTitleBackgroundColor","color","popoverTitleColor","fontSize","fontFamily","baseFont","link","paddingRight","popover","popoverBackgroundColor","maxWidth","borderTopLeftRadius","borderTopRightRadius","popoverContent","flex","modal","modalContent","width","minHeight","maxHeight","get","height","position","bottom","getStyle","shadowOffset","shadowOpacity","shadowRadius","justifyContent","transparent","borderRadius"],"sources":["popover.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 { WmAnchorStyles } from '@wavemaker/app-rn-runtime/components/basic/anchor/anchor.styles';\nimport { WmContainerStyles } from '@wavemaker/app-rn-runtime/components/container/container.styles';\nimport { Dimensions } from 'react-native';\n\nexport type WmPopoverStyles = BaseStyles & {\n link: WmAnchorStyles,\n popover: AllStyle,\n popoverContent : WmContainerStyles,\n modal: AllStyle,\n modalContent: AllStyle,\n title: AllStyle\n};\n\nexport const DEFAULT_CLASS = 'app-popover';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmPopoverStyles = defineStyles({\n root: {\n padding: 8,\n alignSelf: 'flex-start'\n },\n text: {},\n title: {\n backgroundColor: themeVariables.popoverTitleBackgroundColor,\n padding: 12,\n color: themeVariables.popoverTitleColor,\n fontSize: 16,\n fontFamily: themeVariables.baseFont\n },\n link: {\n root:{\n },\n text:{\n paddingRight: 8\n }\n } as WmAnchorStyles,\n popover: {\n backgroundColor: themeVariables.popoverBackgroundColor,\n maxWidth: 640,\n borderTopLeftRadius: 28,\n borderTopRightRadius: 28 \n },\n popoverContent : {\n root: {\n flex: 1\n }\n } as WmContainerStyles,\n modal: {},\n modalContent: {\n borderTopLeftRadius: 28,\n borderTopRightRadius: 28\n }\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle('popover-action-sheet', '', {\n modal: {\n backgroundColor: 'rgba(0, 0, 0, 0.3)',\n },\n popover: {\n width: '100%',\n minHeight: 240,\n maxHeight: Dimensions.get('window').height - 120,\n },\n modalContent: {\n position: 'absolute',\n bottom: 0,\n width: '100%',\n ...BASE_THEME.getStyle('elevate1').root,\n shadowOffset: {\n width: 0,\n height: 0\n },\n shadowOpacity: 0.6,\n shadowRadius: 10,\n justifyContent: 'flex-end'\n }\n } as any as WmPopoverStyles);\n addStyle('popover-dropdown', '', {\n modal: {\n backgroundColor: 'transparent',\n },\n popover: {\n backgroundColor: themeVariables.transparent\n },\n modalContent: {\n borderRadius: 6,\n position: 'absolute',\n ...BASE_THEME.getStyle('elevate4').root,\n shadowRadius: 8\n }\n } as WmPopoverStyles);\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAGxF,SAASC,UAAU,QAAQ,cAAc;AAWzC,OAAO,MAAMC,aAAa,GAAG,aAAa;AAC1CH,UAAU,CAACI,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAA8B,GAAGN,YAAY,CAAC;IAChDO,IAAI,EAAE;MACFC,OAAO,EAAE,CAAC;MACVC,SAAS,EAAE;IACf,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,KAAK,EAAE;MACHC,eAAe,EAAER,cAAc,CAACS,2BAA2B;MAC3DL,OAAO,EAAE,EAAE;MACXM,KAAK,EAAEV,cAAc,CAACW,iBAAiB;MACvCC,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAEb,cAAc,CAACc;IAC/B,CAAC;IACDC,IAAI,EAAE;MACFZ,IAAI,EAAC,CACL,CAAC;MACDG,IAAI,EAAC;QACDU,YAAY,EAAE;MAClB;IACJ,CAAmB;IACnBC,OAAO,EAAE;MACLT,eAAe,EAAER,cAAc,CAACkB,sBAAsB;MACtDC,QAAQ,EAA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;EACJ,CAAoB,CAAC;AACzB,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","Dimensions","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","padding","text","title","backgroundColor","popoverTitleBackgroundColor","color","popoverTitleColor","fontSize","fontFamily","baseFont","link","popover","popoverBackgroundColor","maxWidth","borderTopLeftRadius","borderTopRightRadius","popoverContent","flex","modal","modalContent","width","minHeight","maxHeight","get","height","position","bottom","getStyle","shadowOffset","shadowOpacity","shadowRadius","justifyContent","transparent","borderRadius"],"sources":["popover.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 { WmAnchorStyles } from '@wavemaker/app-rn-runtime/components/basic/anchor/anchor.styles';\nimport { WmContainerStyles } from '@wavemaker/app-rn-runtime/components/container/container.styles';\nimport { Dimensions } from 'react-native';\n\nexport type WmPopoverStyles = BaseStyles & {\n link: WmAnchorStyles,\n popover: AllStyle,\n popoverContent : WmContainerStyles,\n modal: AllStyle,\n modalContent: AllStyle,\n title: AllStyle\n};\n\nexport const DEFAULT_CLASS = 'app-popover';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmPopoverStyles = defineStyles({\n root: {\n padding: 8\n },\n text: {},\n title: {\n backgroundColor: themeVariables.popoverTitleBackgroundColor,\n padding: 12,\n color: themeVariables.popoverTitleColor,\n fontSize: 16,\n fontFamily: themeVariables.baseFont\n },\n link: {} as WmAnchorStyles,\n popover: {\n backgroundColor: themeVariables.popoverBackgroundColor,\n maxWidth: 640,\n borderTopLeftRadius: 28,\n borderTopRightRadius: 28 \n },\n popoverContent : {\n root: {\n flex: 1\n }\n } as WmContainerStyles,\n modal: {},\n modalContent: {\n borderTopLeftRadius: 28,\n borderTopRightRadius: 28\n }\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle('popover-action-sheet', '', {\n modal: {\n backgroundColor: 'rgba(0, 0, 0, 0.3)',\n },\n popover: {\n width: '100%',\n minHeight: 240,\n maxHeight: Dimensions.get('window').height - 120,\n },\n modalContent: {\n position: 'absolute',\n bottom: 0,\n width: '100%',\n ...BASE_THEME.getStyle('elevate1').root,\n shadowOffset: {\n width: 0,\n height: 0\n },\n shadowOpacity: 0.6,\n shadowRadius: 10,\n justifyContent: 'flex-end'\n }\n } as any as WmPopoverStyles);\n addStyle('popover-dropdown', '', {\n modal: {\n backgroundColor: 'transparent',\n },\n popover: {\n backgroundColor: themeVariables.transparent\n },\n modalContent: {\n borderRadius: 6,\n position: 'absolute',\n ...BASE_THEME.getStyle('elevate4').root,\n shadowRadius: 8\n }\n } as WmPopoverStyles);\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAGxF,SAASC,UAAU,QAAQ,cAAc;AAWzC,OAAO,MAAMC,aAAa,GAAG,aAAa;AAC1CH,UAAU,CAACI,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAA8B,GAAGN,YAAY,CAAC;IAChDO,IAAI,EAAE;MACFC,OAAO,EAAE;IACb,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,KAAK,EAAE;MACHC,eAAe,EAAEP,cAAc,CAACQ,2BAA2B;MAC3DJ,OAAO,EAAE,EAAE;MACXK,KAAK,EAAET,cAAc,CAACU,iBAAiB;MACvCC,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAEZ,cAAc,CAACa;IAC/B,CAAC;IACDC,IAAI,EAAE,CAAC,CAAmB;IAC1BC,OAAO,EAAE;MACLR,eAAe,EAAEP,cAAc,CAACgB,sBAAsB;MACtDC,QAAQ,EAAE,GAAG;MACbC,mBAAmB,EAAE,EAAE;MACvBC,oBAAoB,EAAE;IAC1B,CAAC;IACDC,cAAc,EAAG;MACbjB,IAAI,EAAE;QACFkB,I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ertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
4
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); }
5
5
  import React from 'react';
6
- import { Text, View, TouchableOpacity, Dimensions } from 'react-native';
6
+ import { Text, View, TouchableOpacity } from 'react-native';
7
7
  import { ThemeProvider } from '@wavemaker/app-rn-runtime/styles/theme';
8
8
  import { ModalConsumer } from '@wavemaker/app-rn-runtime/core/modal.service';
9
9
  import WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';
@@ -11,47 +11,32 @@ import { NavigationServiceConsumer } from '@wavemaker/app-rn-runtime/core/naviga
11
11
  import { BaseNavComponent, BaseNavState } from '@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.component';
12
12
  import WmTabbarProps from './tabbar.props';
13
13
  import { DEFAULT_CLASS } from './tabbar.styles';
14
- import Svg, { Path } from 'react-native-svg';
15
- import { getPathDown } from './curve';
16
- // import { scale } from 'react-native-size-scaling';
17
- import ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';
18
- const scale = n => n;
19
14
  class WmTabbarState extends BaseNavState {
20
15
  constructor() {
21
16
  super(...arguments);
22
17
  _defineProperty(this, "showMore", false);
23
18
  _defineProperty(this, "modalOptions", {});
24
- _defineProperty(this, "dataItems", []);
25
19
  }
26
20
  }
27
21
  export default class WmTabbar extends BaseNavComponent {
28
22
  constructor(props) {
29
23
  super(props, DEFAULT_CLASS, new WmTabbarProps(), new WmTabbarState());
30
24
  _defineProperty(this, "tabbarHeight", 0);
31
- _defineProperty(this, "maxWidth", Dimensions.get("window").width);
32
- _defineProperty(this, "returnpathDown", void 0);
33
25
  }
34
26
  renderTabItem(item, testId, props, onSelect) {
35
- let floating = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
36
27
  const isActive = props.isActive && props.isActive(item);
37
28
  const getDisplayLabel = this.props.getDisplayExpression || (label => label);
38
- let increasedGap = Number(testId) === (item === null || item === void 0 ? void 0 : item.indexBeforeMid) && this.state.dataItems.length % 2 != 0 && (props.classname || '').indexOf('clipped-tabbar') >= 0 ? [this.styles.tabItem, {
39
- paddingRight: 70
40
- }] : [this.styles.tabItem];
41
- return /*#__PURE__*/React.createElement(View, {
42
- style: [this.styles.tabItem],
43
- key: `${item.label}_${testId}`
44
- }, /*#__PURE__*/React.createElement(TouchableOpacity, _extends({}, this.getTestPropsForAction('item' + testId), {
29
+ return /*#__PURE__*/React.createElement(TouchableOpacity, _extends({}, this.getTestPropsForAction('item' + testId), {
45
30
  onPress: () => onSelect && onSelect(),
46
31
  key: item.key
47
32
  }), /*#__PURE__*/React.createElement(View, {
48
- style: [isActive ? this.styles.activeTabItem : {}]
33
+ style: [this.styles.tabItem, isActive ? this.styles.activeTabItem : {}]
49
34
  }, /*#__PURE__*/React.createElement(WmIcon, {
50
35
  styles: this.theme.mergeStyle({}, this.styles.tabIcon, isActive ? this.styles.activeTabIcon : {}),
51
36
  iconclass: item.icon
52
- }))), /*#__PURE__*/React.createElement(Text, {
37
+ }), /*#__PURE__*/React.createElement(Text, {
53
38
  style: [this.styles.tabLabel, isActive ? this.styles.activeTabLabel : {}]
54
- }, getDisplayLabel(item.label)));
39
+ }, getDisplayLabel(item.label))));
55
40
  }
56
41
  onItemSelect(item, navigationService) {
57
42
  item.link && navigationService.openUrl(item.link);
@@ -69,14 +54,6 @@ export default class WmTabbar extends BaseNavComponent {
69
54
  renderWidget(props) {
70
55
  let max = 5;
71
56
  const tabItems = this.state.dataItems;
72
- const tabItemsLength = tabItems.length;
73
- const isClippedTabbar = (props.classname || '').indexOf('clipped-tabbar') >= 0 && tabItemsLength % 2 !== 0;
74
- if (tabItemsLength % 2 !== 0) {
75
- const middleIndex = Math.floor(tabItemsLength / 2);
76
- tabItems[middleIndex]['floating'] = true;
77
- tabItems[middleIndex - 1]['indexBeforeMid'] = middleIndex - 1;
78
- }
79
- this.returnpathDown = getPathDown(this.maxWidth, 65, 60, this.styles.root.height);
80
57
  const moreItems = [];
81
58
  if (tabItems.length > max) {
82
59
  const moreItemsCount = Math.ceil((tabItems.length + 1 - max) / max) * max;
@@ -94,18 +71,7 @@ export default class WmTabbar extends BaseNavComponent {
94
71
  }
95
72
  return /*#__PURE__*/React.createElement(NavigationServiceConsumer, null, navigationService => /*#__PURE__*/React.createElement(View, {
96
73
  style: this.styles.root
97
- }, isClippedTabbar ? /*#__PURE__*/React.createElement(Svg, {
98
- width: this.maxWidth,
99
- height: scale(this.styles.root.height),
100
- style: {
101
- zIndex: -1,
102
- position: 'absolute',
103
- backgroundColor: ThemeVariables.INSTANCE.transparent
104
- }
105
- }, /*#__PURE__*/React.createElement(Path, {
106
- fill: ThemeVariables.INSTANCE.tabbarBackgroundColor,
107
- d: this.returnpathDown
108
- })) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(ModalConsumer, null, modalService => {
74
+ }, /*#__PURE__*/React.createElement(ModalConsumer, null, modalService => {
109
75
  if (this.state.showMore) {
110
76
  modalService.showModal(this.prepareModalOptions( /*#__PURE__*/React.createElement(ThemeProvider, {
111
77
  value: this.theme
@@ -114,7 +80,7 @@ export default class WmTabbar extends BaseNavComponent {
114
80
  }, moreItems.map((a, i) => /*#__PURE__*/React.createElement(View, {
115
81
  key: i,
116
82
  style: this.styles.moreMenuRow
117
- }, a.map((item, index) => this.renderTabItem(item, i + '', props, () => this.onItemSelect(item, navigationService)))))))));
83
+ }, a.map(item => this.renderTabItem(item, i + '', props, () => this.onItemSelect(item, navigationService)))))))));
118
84
  } else {
119
85
  modalService.hideModal(this.state.modalOptions);
120
86
  }
@@ -124,7 +90,7 @@ export default class WmTabbar extends BaseNavComponent {
124
90
  onLayout: e => {
125
91
  this.tabbarHeight = e.nativeEvent.layout.height;
126
92
  }
127
- }, tabItems.filter((item, i) => i < max).map((item, i) => this.renderTabItem(item, i + '', props, () => this.onItemSelect(item, navigationService), item.floating)), tabItems.length > max && this.renderTabItem({
93
+ }, tabItems.filter((item, i) => i < max).map((item, i) => this.renderTabItem(item, i + '', props, () => this.onItemSelect(item, navigationService))), tabItems.length > max && this.renderTabItem({
128
94
  label: props.morebuttonlabel,
129
95
  icon: props.morebuttoniconclass
130
96
  }, 6666 + '', props, () => {
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","View","TouchableOpacity","Dimensions","ThemeProvider","ModalConsumer","WmIcon","NavigationServiceConsumer","BaseNavComponent","BaseNavState","WmTabbarProps","DEFAULT_CLASS","Svg","Path","getPathDown","ThemeVariables","scale","n","WmTabbarState","constructor","arguments","_defineProperty","WmTabbar","props","get","width","renderTabItem","item","testId","onSelect","floating","length","undefined","isActive","getDisplayLabel","getDisplayExpression","label","increasedGap","Number","indexBeforeMid","state","dataItems","classname","indexOf","styles","tabItem","paddingRight","createElement","style","key","_extends","getTestPropsForAction","onPress","activeTabItem","theme","mergeStyle","tabIcon","activeTabIcon","iconclass","icon","tabLabel","activeTabLabel","onItemSelect","navigationService","link","openUrl","invokeEventCallback","proxy","prepareModalOptions","content","o","modalOptions","modalStyle","bottom","tabbarHeight","contentStyle","modalContent","renderWidget","max","tabItems","tabItemsLength","isClippedTabbar","middleIndex","Math","floor","returnpathDown","maxWidth","root","height","moreItems","moreItemsCount","ceil","j","i","row","push","zIndex","position","backgroundColor","INSTANCE","transparent","fill","tabbarBackgroundColor","d","Fragment","modalService","showMore","showModal","value","moreMenu","map","a","moreMenuRow","index","hideModal","menu","onLayout","e","nativeEvent","layout","filter","morebuttonlabel","morebuttoniconclass","updateState"],"sources":["tabbar.component.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport { Text, View, TouchableOpacity, Dimensions } from 'react-native';\n\nimport { ThemeProvider } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { ModalConsumer, ModalOptions, ModalService } from '@wavemaker/app-rn-runtime/core/modal.service';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport NavigationService, { NavigationServiceConsumer } from '@wavemaker/app-rn-runtime/core/navigation.service';\nimport { BaseNavProps } from '@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.props';\nimport { BaseNavComponent, BaseNavState, NavigationDataItem } from '@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.component';\n\nimport WmTabbarProps from './tabbar.props';\nimport { DEFAULT_CLASS, WmTabbarStyles } from './tabbar.styles';\nimport Svg, { Path } from 'react-native-svg';\nimport { getPathDown } from './curve';\n// import { scale } from 'react-native-size-scaling';\nimport ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';\n\ninterface TabDataItem extends NavigationDataItem {\n floating: boolean;\n indexBeforeMid: number;\n}\n\nconst scale = (n: number) => n;\n\nclass WmTabbarState<T extends BaseNavProps> extends BaseNavState<T> {\n showMore = false;\n modalOptions = {} as ModalOptions;\n dataItems: TabDataItem[] = [];\n}\n\nexport default class WmTabbar extends BaseNavComponent<WmTabbarProps, WmTabbarState<WmTabbarProps>, WmTabbarStyles> {\n\n private tabbarHeight = 0;\n\n constructor(props: WmTabbarProps) {\n super(props, DEFAULT_CLASS, new WmTabbarProps(), new WmTabbarState());\n }\n\n private maxWidth = Dimensions.get(\"window\").width; \n private returnpathDown: any;\n\n renderTabItem(item: TabDataItem, testId: string, props: WmTabbarProps, onSelect: Function, floating = false) {\n\n const isActive = props.isActive && props.isActive(item);\n const getDisplayLabel = this.props.getDisplayExpression || ((label: string) => label);\n let increasedGap = Number(testId) === item?.indexBeforeMid && (this.state.dataItems.length % 2!=0) && ((props.classname || '').indexOf('clipped-tabbar') >= 0)\n ? [this.styles.tabItem, { paddingRight: 70 }]\n : [this.styles.tabItem];\n \n return (\n <View style={[this.styles.tabItem]} key={`${item.label}_${testId}`}>\n <TouchableOpacity\n {...this.getTestPropsForAction('item' + testId)}\n onPress={() => onSelect && onSelect()}\n key={item.key}\n >\n <View style={[isActive ? this.styles.activeTabItem : {}]}>\n <WmIcon\n styles={this.theme.mergeStyle({}, this.styles.tabIcon, isActive ? this.styles.activeTabIcon : {})}\n iconclass={item.icon}\n ></WmIcon>\n </View>\n </TouchableOpacity>\n <Text style={[this.styles.tabLabel, isActive ? this.styles.activeTabLabel : {}]}>\n {getDisplayLabel(item.label)}\n </Text>\n </View>\n );\n }\n \n onItemSelect(item: NavigationDataItem, navigationService: NavigationService) {\n item.link && navigationService.openUrl(item.link);\n this.invokeEventCallback('onSelect', [null, this.proxy, item]);\n }\n\n prepareModalOptions(content: ReactNode) {\n const o = this.state.modalOptions;\n o.content = content;\n o.modalStyle = {\n bottom: this.tabbarHeight\n };\n o.contentStyle = this.styles.modalContent; \n return o;\n }\n\n renderWidget(props: WmTabbarProps) {\n let max = 5;\n const tabItems = this.state.dataItems;\n const tabItemsLength = tabItems.length;\n const isClippedTabbar = ((props.classname || '').indexOf('clipped-tabbar') >= 0) && (tabItemsLength % 2 !== 0);\n if (tabItemsLength % 2 !== 0) {\n const middleIndex = Math.floor(tabItemsLength / 2);\n tabItems[middleIndex]['floating'] = true;\n tabItems[middleIndex - 1]['indexBeforeMid'] = middleIndex-1;\n }\n this.returnpathDown = getPathDown(this.maxWidth, 65 ,60,this.styles.root.height as number);\n const moreItems = [] as any[][];\n if (tabItems.length > max) {\n const moreItemsCount = Math.ceil((tabItems.length + 1 - max)/ max) * max;\n let j = 0;\n for (let i = max-1; i < moreItemsCount;) {\n const row = [];\n for (let j = 0; j < max; j++) {\n row[j] = tabItems[i++] || {key: 'tabItem' + i} as TabDataItem;\n }\n moreItems.push(row);\n }\n max = max - 1;\n }\n return (\n <NavigationServiceConsumer>\n {(navigationService) =>\n (<View style={this.styles.root}>\n {isClippedTabbar ? (\n <Svg width={this.maxWidth} height={scale(this.styles.root.height as number)} style={{zIndex: -1,position: 'absolute',backgroundColor: ThemeVariables.INSTANCE.transparent}}>\n <Path fill={ThemeVariables.INSTANCE.tabbarBackgroundColor} {...{ d: this.returnpathDown }}/>\n </Svg>\n ): <></>} \n <ModalConsumer>\n {(modalService: ModalService) => {\n if (this.state.showMore) {\n modalService.showModal(this.prepareModalOptions((\n <ThemeProvider value={this.theme} >\n <View style={this.styles.moreMenu}>\n {moreItems.map((a, i) =>\n (<View key={i} style={this.styles.moreMenuRow}>\n {a.map((item, index) => this.renderTabItem(item, i + '', props, () => this.onItemSelect(item, navigationService)))}\n </View>)\n )}\n </View>\n </ThemeProvider>)));\n } else {\n modalService.hideModal(this.state.modalOptions);\n }\n return null;\n }}\n </ModalConsumer>\n <View style={this.styles.menu}\n onLayout={e => { this.tabbarHeight = e.nativeEvent.layout.height}}> \n {tabItems.filter((item, i) => i < max)\n .map((item, i) => this.renderTabItem(item, i + '', props, () => this.onItemSelect(item, navigationService), item.floating))}\n {tabItems.length > max && (\n this.renderTabItem({\n label: props.morebuttonlabel,\n icon: props.morebuttoniconclass\n } as TabDataItem, 6666 +'', props, () => {\n this.updateState({showMore: !this.state.showMore} as WmTabbarState<WmTabbarProps>);\n })\n )}\n </View>\n </View>)}\n </NavigationServiceConsumer>\n );\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAqB,OAAO;AACxC,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,cAAc;AAEvE,SAASC,aAAa,QAAQ,wCAAwC;AACtE,SAASC,aAAa,QAAoC,8CAA8C;AACxG,OAAOC,MAAM,MAAM,gEAAgE;AACnF,SAA4BC,yBAAyB,QAAQ,mDAAmD;AAEhH,SAASC,gBAAgB,EAAEC,YAAY,QAA4B,2EAA2E;AAE9I,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAC5C,SAASC,WAAW,QAAQ,SAAS;AACrC;AACA,OAAOC,cAAc,MAAM,kDAAkD;AAO7E,MAAMC,KAAK,GA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AAM;MAAA;IAAE,GACjET,QAAQ,CAACyC,MAAM,CAAC,CAAC7F,IAAI,EAAEkE,CAAC,KAAKA,CAAC,GAAGf,GAAG,CAAC,CACnCgC,GAAG,CAAC,CAACnF,IAAI,EAAEkE,CAAC,KAAK,IAAI,CAACnE,aAAa,CAACC,IAAI,EAAEkE,CAAC,GAAG,EAAE,EAAEtE,KAAK,EAAE,MAAM,IAAI,CAACuC,YAAY,CAACnC,IAAI,EAAEoC,iBAAiB,CAAC,EAAEpC,IAAI,CAACG,QAAQ,CAAC,CAAC,EAC5HiD,QAAQ,CAAChD,MAAM,GAAG+C,GAAG,IACpB,IAAI,CAACpD,aAAa,CAAC;MACjBU,KAAK,EAAEb,KAAK,CAACkG,eAAe;MAC5B9D,IAAI,EAAEpC,KAAK,CAACmG;IACd,CAAC,EAAiB,IAAI,GAAE,EAAE,EAAEnG,KAAK,EAAG,MAAM;MACxC,IAAI,CAACoG,WAAW,CAAC;QAACjB,QAAQ,EAAE,CAAC,IAAI,CAAClE,KAAK,CAACkE;MAAQ,CAAiC,CAAC;IACpF,CAAC,CAEC,CACF,CACmB,CAAC;EAEhC;AACF"}
1
+ {"version":3,"names":["React","Text","View","TouchableOpacity","ThemeProvider","ModalConsumer","WmIcon","NavigationServiceConsumer","BaseNavComponent","BaseNavState","WmTabbarProps","DEFAULT_CLASS","WmTabbarState","constructor","arguments","_defineProperty","WmTabbar","props","renderTabItem","item","testId","onSelect","isActive","getDisplayLabel","getDisplayExpression","label","createElement","_extends","getTestPropsForAction","onPress","key","style","styles","tabItem","activeTabItem","theme","mergeStyle","tabIcon","activeTabIcon","iconclass","icon","tabLabel","activeTabLabel","onItemSelect","navigationService","link","openUrl","invokeEventCallback","proxy","prepareModalOptions","content","o","state","modalOptions","modalStyle","bottom","tabbarHeight","contentStyle","modalContent","renderWidget","max","tabItems","dataItems","moreItems","length","moreItemsCount","Math","ceil","j","i","row","push","root","modalService","showMore","showModal","value","moreMenu","map","a","moreMenuRow","hideModal","menu","onLayout","e","nativeEvent","layout","height","filter","morebuttonlabel","morebuttoniconclass","updateState"],"sources":["tabbar.component.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport { Text, View, TouchableOpacity } from 'react-native';\n\nimport { ThemeProvider } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { ModalConsumer, ModalOptions, ModalService } from '@wavemaker/app-rn-runtime/core/modal.service';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport NavigationService, { NavigationServiceConsumer } from '@wavemaker/app-rn-runtime/core/navigation.service';\nimport { BaseNavProps } from '@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.props';\nimport { BaseNavComponent, BaseNavState, NavigationDataItem } from '@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.component';\n\nimport WmTabbarProps from './tabbar.props';\nimport { DEFAULT_CLASS, WmTabbarStyles } from './tabbar.styles';\n\nclass WmTabbarState<T extends BaseNavProps> extends BaseNavState<T>{\n showMore = false;\n modalOptions = {} as ModalOptions;\n}\n\nexport default class WmTabbar extends BaseNavComponent<WmTabbarProps, WmTabbarState<WmTabbarProps>, WmTabbarStyles> {\n\n private tabbarHeight = 0;\n\n constructor(props: WmTabbarProps) {\n super(props, DEFAULT_CLASS, new WmTabbarProps(), new WmTabbarState());\n }\n\n renderTabItem(item: NavigationDataItem, testId: string, props: WmTabbarProps, onSelect: Function) {\n const isActive = props.isActive && props.isActive(item);\n const getDisplayLabel = this.props.getDisplayExpression || ((label: string) => label);\n return (\n <TouchableOpacity {...this.getTestPropsForAction('item' + testId)} onPress={() => onSelect && onSelect()} key={item.key}>\n <View style={[this.styles.tabItem, isActive ? this.styles.activeTabItem: {}]}>\n <WmIcon styles={this.theme.mergeStyle({}, this.styles.tabIcon, isActive ? this.styles.activeTabIcon: {})} iconclass={item.icon}></WmIcon>\n <Text style={[this.styles.tabLabel, isActive ? this.styles.activeTabLabel: {}]}>{getDisplayLabel(item.label)}</Text>\n </View>\n </TouchableOpacity>\n );\n }\n\n onItemSelect(item: NavigationDataItem, navigationService: NavigationService) {\n item.link && navigationService.openUrl(item.link);\n this.invokeEventCallback('onSelect', [null, this.proxy, item]);\n }\n\n prepareModalOptions(content: ReactNode) {\n const o = this.state.modalOptions;\n o.content = content;\n o.modalStyle = {\n bottom: this.tabbarHeight\n };\n o.contentStyle = this.styles.modalContent; \n return o;\n }\n\n renderWidget(props: WmTabbarProps) {\n let max = 5;\n const tabItems = this.state.dataItems;\n const moreItems = [] as any[][];\n if (tabItems.length > max) {\n const moreItemsCount = Math.ceil((tabItems.length + 1 - max)/ max) * max;\n let j = 0;\n for (let i = max-1; i < moreItemsCount;) {\n const row = [];\n for (let j = 0; j < max; j++) {\n row[j] = tabItems[i++] || {key: 'tabItem' + i} as NavigationDataItem;\n }\n moreItems.push(row);\n }\n max = max - 1;\n }\n return (\n <NavigationServiceConsumer>\n {(navigationService) =>\n (<View style={this.styles.root}>\n <ModalConsumer>\n {(modalService: ModalService) => {\n if (this.state.showMore) {\n modalService.showModal(this.prepareModalOptions((\n <ThemeProvider value={this.theme} >\n <View style={this.styles.moreMenu}>\n {moreItems.map((a, i) =>\n (<View key={i} style={this.styles.moreMenuRow}>\n {a.map(item => this.renderTabItem(item, i + '', props, () => this.onItemSelect(item, navigationService)))}\n </View>)\n )}\n </View>\n </ThemeProvider>)));\n } else {\n modalService.hideModal(this.state.modalOptions);\n }\n return null;\n }}\n </ModalConsumer>\n <View style={this.styles.menu}\n onLayout={e => { this.tabbarHeight = e.nativeEvent.layout.height}}>\n {tabItems.filter((item, i) => i < max)\n .map((item, i) => this.renderTabItem(item, i + '', props, () => this.onItemSelect(item, navigationService)))}\n {tabItems.length > max && (\n this.renderTabItem({\n label: props.morebuttonlabel,\n icon: props.morebuttoniconclass\n } as NavigationDataItem, 6666 +'', props, () => {\n this.updateState({showMore: !this.state.showMore} as WmTabbarState<WmTabbarProps>);\n })\n )}\n </View>\n </View>)}\n </NavigationServiceConsumer>\n );\n }\n}\n"],"mapp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AK,CAACwE,eAAe;MAC5BjD,IAAI,EAAEvB,KAAK,CAACyE;IACd,CAAC,EAAwB,IAAI,GAAE,EAAE,EAAEzE,KAAK,EAAG,MAAM;MAC/C,IAAI,CAAC0E,WAAW,CAAC;QAACjB,QAAQ,EAAE,CAAC,IAAI,CAACtB,KAAK,CAACsB;MAAQ,CAAiC,CAAC;IACpF,CAAC,CAEC,CACF,CACmB,CAAC;EAEhC;AACF"}
@@ -4,9 +4,7 @@ export const DEFAULT_CLASS = 'app-tabbar';
4
4
  BASE_THEME.registerStyle((themeVariables, addStyle) => {
5
5
  const defaultStyles = defineStyles({
6
6
  root: {
7
- height: 80,
8
- elevation: 3,
9
- shadowColor: themeVariables.tabShadowColor
7
+ height: 88
10
8
  },
11
9
  text: {},
12
10
  menu: {
@@ -41,60 +39,41 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
41
39
  flexDirection: 'column',
42
40
  justifyContent: 'center',
43
41
  alignItems: 'center',
44
- minHeight: 32,
45
- minWidth: 64,
46
- opacity: 0.4,
47
- marginBottom: 16
42
+ minWidth: 60,
43
+ opacity: 0.4
48
44
  },
49
45
  activeTabItem: {
50
- opacity: 1,
51
- height: 32,
52
- width: 64,
53
- borderRadius: 50,
54
- marginBottom: 2,
55
- backgroundColor: themeVariables.tabActiveBackgroundColor
46
+ opacity: 1
56
47
  },
57
48
  tabIcon: {
58
49
  root: {
59
50
  alignSelf: 'center',
51
+ paddingBottom: 32,
60
52
  borderBottomColor: themeVariables.transparent,
61
- paddingBottom: 4
53
+ borderBottomWidth: 4
62
54
  },
63
55
  icon: {
64
- fontSize: 24,
65
- paddingRight: 0,
66
- color: themeVariables.tabShadowColor
56
+ fontSize: 36,
57
+ color: themeVariables.tabbarIconColor
67
58
  }
68
59
  },
69
60
  activeTabIcon: {
70
- root: {},
71
- icon: {
72
- color: themeVariables.tabActiveIconColor
61
+ root: {
62
+ borderBottomColor: themeVariables.tabbarIconColor
73
63
  }
74
64
  },
75
65
  tabLabel: {
76
- fontSize: 12,
66
+ fontSize: 14,
77
67
  fontWeight: '500',
68
+ color: themeVariables.tabbarIconColor,
69
+ textAlign: 'center',
78
70
  fontFamily: themeVariables.baseFont,
79
- color: themeVariables.tabLabelTextColor,
80
- textAlign: 'center'
81
- },
82
- activeTabLabel: {
83
- fontWeight: '700',
84
- fontSize: 12,
85
- fontFamily: themeVariables.baseFont,
86
- color: themeVariables.tabShadowColor
71
+ marginTop: -32,
72
+ paddingBottom: 14
87
73
  },
88
- centerHubItem: {},
89
- centerHubIcon: {},
90
- centerHubLabel: {}
74
+ activeTabLabel: {}
91
75
  });
92
76
  addStyle(DEFAULT_CLASS, '', defaultStyles);
93
- addStyle('tabbar-spacer', '', {
94
- root: {
95
- height: 96
96
- }
97
- });
98
77
  addStyle(DEFAULT_CLASS + '-1', '', {
99
78
  root: {
100
79
  height: undefined
@@ -117,50 +96,5 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
117
96
  marginTop: 0
118
97
  }
119
98
  });
120
- addStyle('clipped-tabbar', '', {
121
- root: {
122
- backgroundColor: themeVariables.transparent,
123
- marginTop: -88
124
- },
125
- menu: {
126
- backgroundColor: themeVariables.transparent
127
- },
128
- centerHubItem: {
129
- width: 70,
130
- height: 70,
131
- shadowColor: 'grey',
132
- shadowOpacity: 0.1,
133
- opacity: 1,
134
- shadowOffset: {
135
- width: 2,
136
- height: 0
137
- },
138
- shadowRadius: 2,
139
- borderRadius: 35,
140
- position: 'absolute',
141
- bottom: 53,
142
- alignItems: 'center',
143
- justifyContent: 'center',
144
- backgroundColor: themeVariables.centerHubItemColor,
145
- left: themeVariables.maxWidth / 2 - 35
146
- },
147
- centerHubIcon: {
148
- root: {
149
- alignSelf: 'center',
150
- paddingBottom: 0,
151
- borderBottomColor: themeVariables.transparent,
152
- borderBottomWidth: 0
153
- },
154
- icon: {
155
- fontSize: 24,
156
- color: themeVariables.centerHubIconColor
157
- }
158
- },
159
- centerHubLabel: {
160
- color: themeVariables.centerHubLabelColor,
161
- marginTop: 0,
162
- paddingBottom: 4
163
- }
164
- });
165
99
  });
166
100
  //# sourceMappingURL=tabbar.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","height","elevation","shadowColor","tabShadowColor","text","menu","flexDirection","backgroundColor","tabbarBackgroundColor","justifyContent","alignItems","modalContent","moreMenu","width","getStyle","shadowOffset","shadowOpacity","shadowRadius","moreMenuRow","paddingTop","paddingBottom","tabItem","minHeight","minWidth","opacity","marginBottom","activeTabItem","borderRadius","tabActiveBackgroundColor","tabIcon","alignSelf","borderBottomColor","transparent","icon","fontSize","paddingRight","color","activeTabIcon","tabActiveIconColor","tabLabel","fontWeight","fontFamily","baseFont","tabLabelTextColor","textAlign","activeTabLabel","centerHubItem","centerHubIcon","centerHubLabel","undefined","borderTopWidth","borderTopColor","tabbarIconColor","borderBottomWidth","marginTop","position","bottom","centerHubItemColor","left","maxWidth","centerHubIconColor","centerHubLabelColor"],"sources":["tabbar.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 '../../basic/icon/icon.styles';\n\nexport type WmTabbarStyles = BaseStyles & {\n menu: AllStyle,\n modalContent: AllStyle,\n moreMenu: AllStyle,\n moreMenuRow: AllStyle,\n tabItem: AllStyle,\n activeTabItem: AllStyle,\n tabIcon: WmIconStyles,\n activeTabIcon: WmIconStyles,\n tabLabel: AllStyle,\n activeTabLabel: AllStyle,\n centerHubItem: AllStyle,\n centerHubIcon: WmIconStyles,\n centerHubLabel: AllStyle\n};\n\nexport const DEFAULT_CLASS = 'app-tabbar';\n BASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmTabbarStyles = defineStyles<WmTabbarStyles>({\n root: {\n height: 80,\n elevation: 3,\n shadowColor : themeVariables.tabShadowColor\n },\n text: {},\n menu: {\n height: '100%',\n flexDirection: 'row',\n backgroundColor: themeVariables.tabbarBackgroundColor,\n justifyContent: 'space-around',\n alignItems: 'flex-end',\n },\n modalContent: {},\n moreMenu: {\n width: '100%',\n flexDirection: 'column-reverse',\n justifyContent: 'flex-end',\n backgroundColor: themeVariables.tabbarBackgroundColor,\n ...BASE_THEME.getStyle('elevate1').root,\n shadowOffset: {\n width: 0,\n height: -6\n },\n shadowOpacity: 0.3,\n shadowRadius: 6\n },\n moreMenuRow: {\n flexDirection: 'row-reverse',\n justifyContent: 'space-around',\n width: '100%',\n paddingTop: 4,\n paddingBottom: 4\n },\n tabItem: {\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center',\n minHeight: 32,\n minWidth: 64,\n opacity: 0.4,\n marginBottom: 16\n },\n activeTabItem: {\n opacity: 1,\n height: 32,\n width: 64,\n borderRadius: 50,\n marginBottom: 2,\n backgroundColor: themeVariables.tabActiveBackgroundColor\n },\n tabIcon: {\n root: {\n alignSelf: 'center',\n borderBottomColor: themeVariables.transparent,\n paddingBottom: 4\n },\n icon: {\n fontSize: 24,\n paddingRight: 0,\n color: themeVariables.tabShadowColor\n }\n } as WmIconStyles,\n activeTabIcon: {\n root: {\n },\n icon:{\n color: themeVariables.tabActiveIconColor,\n }\n } as WmIconStyles,\n tabLabel: {\n fontSize: 12,\n fontWeight: '500',\n fontFamily: themeVariables.baseFont,\n color: themeVariables.tabLabelTextColor,\n textAlign: 'center',\n },\n activeTabLabel: {\n fontWeight: '700',\n fontSize: 12,\n fontFamily: themeVariables.baseFont,\n color: themeVariables.tabShadowColor,\n },\n centerHubItem: {},\n centerHubIcon: {} as WmIconStyles, \n centerHubLabel:{}\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle('tabbar-spacer', '', {\n root: {\n height: 96\n }\n });\n addStyle(DEFAULT_CLASS+ '-1', '', {\n root: {\n height: undefined\n },\n tabItem: {\n justifyContent: 'space-between' \n },\n activeTabItem: {\n borderTopWidth: 4,\n borderTopColor: themeVariables.tabbarIconColor\n },\n tabIcon: {\n root: {\n paddingTop: 8,\n paddingBottom: 8,\n borderBottomWidth: 0\n }\n },\n tabLabel: {\n marginTop: 0\n }\n } as WmTabbarStyles);\n addStyle('clipped-tabbar', '', {\n root:{\n backgroundColor: themeVariables.transparent,\n marginTop: -88\n },\n menu: {\n backgroundColor: themeVariables.transparent\n },\n centerHubItem: {\n width: 70,\n height: 70,\n shadowColor: 'grey',\n shadowOpacity: 0.1,\n opacity: 1,\n shadowOffset: { width: 2, height: 0 },\n shadowRadius: 2,\n borderRadius: 35,\n position: 'absolute',\n bottom: 53,\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: themeVariables.centerHubItemColor,\n left: (themeVariables.maxWidth/2) - 35\n },\n centerHubIcon: {\n root: {\n alignSelf: 'center',\n paddingBottom: 0,\n borderBottomColor: themeVariables.transparent,\n borderBottomWidth: 0 \n },\n icon: {\n fontSize: 24,\n color: themeVariables.centerHubIconColor\n }\n } as WmIconStyles, \n centerHubLabel:{\n color: themeVariables.centerHubLabelColor,\n marginTop: 0,\n paddingBottom: 4\n }\n })\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAmBxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACrCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACvD,MAAMC,aAA6B,GAAGL,YAAY,CAAiB;IAC/DM,IAAI,EAAE;MACFC,MAAM,EAAE,EAAE;MACVC,SAAS,EAAE,CAAC;MACZC,WAAW,EAAGN,cAAc,CAACO;IACjC,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE;MACFL,MAAM,EAAE,MAAM;MACdM,aAAa,EAAE,KAAK;MACpBC,eAAe,EAAEX,cAAc,CAACY,qBAAqB;MACrDC,cAAc,EAAE,cAAc;MAC9B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EX,cAAc,CAACoC,WAAW;MAC3CsB,SAAS,EAAE,CAAC;IAChB,CAAC;IACDjD,IAAI,EAAE;MACFE,eAAe,EAAEX,cAAc,CAACoC;IACpC,CAAC;IACDc,aAAa,EAAE;MACXjC,KAAK,EAAE,EAAE;MACTb,MAAM,EAAE,EAAE;MACVE,WAAW,EAAE,MAAM;MACnBc,aAAa,EAAE,GAAG;MAClBQ,OAAO,EAAE,CAAC;MACVT,YAAY,EAAE;QAAEF,KAAK,EAAE,CAAC;QAAEb,MAAM,EAAE;MAAE,CAAC;MACrCiB,YAAY,EAAE,CAAC;MACfU,YAAY,EAAE,EAAE;MAChB4B,QAAQ,EAAE,UAAU;MACpBC,MAAM,EAAE,EAAE;MACV9C,UAAU,EAAE,QAAQ;MACpBD,cAAc,EAAE,QAAQ;MACxBF,eAAe,EAAEX,cAAc,CAAC6D,kBAAkB;MAClDC,IAAI,EAAG9D,cAAc,CAAC+D,QAAQ,GAAC,CAAC,GAAI;IACxC,CAAC;IACDZ,aAAa,EAAE;MACXhD,IAAI,EAAE;QACF+B,SAAS,EAAE,QAAQ;QACnBV,aAAa,EAAE,CAAC;QAChBW,iBAAiB,EAAEnC,cAAc,CAACoC,WAAW;QAC7CqB,iBAAiB,EAAE;MACvB,CAAC;MACDpB,IAAI,EAAE;QACFC,QAAQ,EAAE,EAAE;QACZE,KAAK,EAAGxC,cAAc,CAACgE;MAC3B;IACJ,CAAiB;IACjBZ,cAAc,EAAC;MACXZ,KAAK,EAAGxC,cAAc,CAACiE,mBAAmB;MAC1CP,SAAS,EAAE,CAAC;MACZlC,aAAa,EAAE;IACnB;EACJ,CAAC,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","height","text","menu","flexDirection","backgroundColor","tabbarBackgroundColor","justifyContent","alignItems","modalContent","moreMenu","width","getStyle","shadowOffset","shadowOpacity","shadowRadius","moreMenuRow","paddingTop","paddingBottom","tabItem","minWidth","opacity","activeTabItem","tabIcon","alignSelf","borderBottomColor","transparent","borderBottomWidth","icon","fontSize","color","tabbarIconColor","activeTabIcon","tabLabel","fontWeight","textAlign","fontFamily","baseFont","marginTop","activeTabLabel","undefined","borderTopWidth","borderTopColor"],"sources":["tabbar.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 '../../basic/icon/icon.styles';\n\nexport type WmTabbarStyles = BaseStyles & {\n menu: AllStyle,\n modalContent: AllStyle,\n moreMenu: AllStyle,\n moreMenuRow: AllStyle,\n tabItem: AllStyle,\n activeTabItem: AllStyle,\n tabIcon: WmIconStyles,\n activeTabIcon: WmIconStyles,\n tabLabel: AllStyle,\n activeTabLabel: AllStyle\n};\n\nexport const DEFAULT_CLASS = 'app-tabbar';\n BASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmTabbarStyles = defineStyles<WmTabbarStyles>({\n root: {\n height: 88\n },\n text: {},\n menu: {\n height: '100%',\n flexDirection: 'row',\n backgroundColor: themeVariables.tabbarBackgroundColor,\n justifyContent: 'space-around',\n alignItems: 'flex-end',\n },\n modalContent: {},\n moreMenu: {\n width: '100%',\n flexDirection: 'column-reverse',\n justifyContent: 'flex-end',\n backgroundColor: themeVariables.tabbarBackgroundColor,\n ...BASE_THEME.getStyle('elevate1').root,\n shadowOffset: {\n width: 0,\n height: -6\n },\n shadowOpacity: 0.3,\n shadowRadius: 6\n },\n moreMenuRow: {\n flexDirection: 'row-reverse',\n justifyContent: 'space-around',\n width: '100%',\n paddingTop: 4,\n paddingBottom: 4\n },\n tabItem: {\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center',\n minWidth: 60,\n opacity: 0.4\n },\n activeTabItem: {\n opacity: 1\n },\n tabIcon: {\n root: {\n alignSelf: 'center',\n paddingBottom: 32,\n borderBottomColor: themeVariables.transparent,\n borderBottomWidth: 4\n },\n icon: {\n fontSize: 36,\n color: themeVariables.tabbarIconColor\n }\n } as WmIconStyles,\n activeTabIcon: {\n root: {\n borderBottomColor: themeVariables.tabbarIconColor,\n }\n } as WmIconStyles,\n tabLabel: {\n fontSize: 14,\n fontWeight: '500',\n color: themeVariables.tabbarIconColor,\n textAlign: 'center',\n fontFamily: themeVariables.baseFont,\n marginTop: -32,\n paddingBottom: 14\n },\n activeTabLabel: {}\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS+ '-1', '', {\n root: {\n height: undefined\n },\n tabItem: {\n justifyContent: 'space-between' \n },\n activeTabItem: {\n borderTopWidth: 4,\n borderTopColor: themeVariables.tabbarIconColor\n },\n tabIcon: {\n root: {\n paddingTop: 8,\n paddingBottom: 8,\n borderBottomWidth: 0\n }\n },\n tabLabel: {\n marginTop: 0\n }\n } as WmTabbarStyles);\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAgBxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACrCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACvD,MAAMC,aAA6B,GAAGL,YAAY,CAAiB;IAC/DM,IAAI,EAAE;MACFC,MAAM,EAAE;IACZ,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE;MACFF,MAAM,EAAE,MAAM;MACdG,aAAa,EAAE,KAAK;MACpBC,eAAe,EAAER,cAAc,CAACS,qBAAqB;MACrDC,cAAc,EAAE,cAAc;MAC9BC,UAAU,EAAE;IAChB,CAAC;IACDC,YAAY,EAAE,CAAC,CAAC;IAChBC,QAAQ,EAAE;MACNC,KAAK,EAAE,MAAM;MACbP,aAAa,EAAE,gBAAgB;MAC/BG,cAAc,EAAE,UAAU;MAC1BF,eAAe,EAAER,cAAc,CAACS,qBAA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,EAAE,EAAEI,aAAa,CAAC;EAC1CD,QAAQ,CAACH,aAAa,GAAE,IAAI,EAAE,EAAE,EAAE;IAC9BK,IAAI,EAAE;MACFC,MAAM,EAAEuC;IACZ,CAAC;IACDrB,OAAO,EAAE;MACLZ,cAAc,EAAE;IACpB,CAAC;IACDe,aAAa,EAAE;MACXmB,cAAc,EAAE,CAAC;MACjBC,cAAc,EAAE7C,cAAc,CAACkC;IACnC,CAAC;IACDR,OAAO,EAAE;MACLvB,IAAI,EAAE;QACFiB,UAAU,EAAE,CAAC;QACbC,aAAa,EAAE,CAAC;QAChBS,iBAAiB,EAAE;MACvB;IACJ,CAAC;IACDM,QAAQ,EAAE;MACNK,SAAS,EAAE;IACf;EACJ,CAAmB,CAAC;AACxB,CAAC,CAAC"}
@@ -4,7 +4,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typ
4
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); }
5
5
  import { assign, isUndefined, isNil } from 'lodash';
6
6
  import React from 'react';
7
- import { AccessibilityInfo, Platform } from 'react-native';
7
+ import { Platform } from 'react-native';
8
8
  import * as Animatable from 'react-native-animatable';
9
9
  import ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';
10
10
  import { StyleProps, getStyleName } from '@wavemaker/app-rn-runtime/styles/style-props';
@@ -20,7 +20,6 @@ import { HideMode } from './if.component';
20
20
  import { AssetConsumer } from './asset.provider';
21
21
  import { FixedView } from './fixed-view.component';
22
22
  import { TextIdPrefixConsumer } from './testid.provider';
23
- import { isScreenReaderEnabled } from './accessibility';
24
23
  export const WIDGET_LOGGER = ROOT_LOGGER.extend('widget');
25
24
  export const ParentContext = /*#__PURE__*/React.createContext(null);
26
25
  export class BaseComponentState {
@@ -131,11 +130,6 @@ export class BaseComponent extends React.Component {
131
130
  this.cleanup.push(this.theme.subscribe(ThemeEvent.CHANGE, () => {
132
131
  this.forceUpdate();
133
132
  }));
134
- this.cleanup.push(AccessibilityInfo.addEventListener('screenReaderChanged', () => {
135
- setTimeout(() => {
136
- this.forceUpdate();
137
- }, 100);
138
- }).remove);
139
133
  this.cleanup.push(() => {
140
134
  this.destroyParentListeners();
141
135
  });
@@ -352,9 +346,6 @@ export class BaseComponent extends React.Component {
352
346
  }
353
347
  getTestProps(suffix) {
354
348
  let id = this.getTestId(suffix);
355
- if (isScreenReaderEnabled()) {
356
- return {};
357
- }
358
349
  if (Platform.OS === 'android' || Platform.OS === 'web') {
359
350
  return {
360
351
  accessibilityLabel: id,
@@ -366,9 +357,6 @@ export class BaseComponent extends React.Component {
366
357
  testID: id
367
358
  };
368
359
  }
369
- getStyleClassName() {
370
- return this.state.props.classname;
371
- }
372
360
  getTestPropsForInput(suffix) {
373
361
  return this.getTestProps(suffix || 'i');
374
362
  }
@@ -406,12 +394,11 @@ export class BaseComponent extends React.Component {
406
394
  const selectedLocale = this.i18nService.getSelectedLocale();
407
395
  return this.getDependenciesFromContext(() => {
408
396
  WIDGET_LOGGER.info(() => `${this.props.name || this.constructor.name} is rendering.`);
409
- const classname = this.getStyleClassName();
410
397
  this.styles = this.theme.mergeStyle(this.getDefaultStyles(), {
411
398
  text: this.theme.getStyle('app-' + selectedLocale)
412
399
  }, {
413
400
  text: this.theme.getStyle(this.defaultClass + '-' + selectedLocale)
414
- }, props.disabled ? this.theme.getStyle(this.defaultClass + '-disabled') : null, this.isRTL ? this.theme.getStyle(this.defaultClass + '-rtl') : null, classname && this.theme.getStyle(classname), props.showindevice && this.theme.getStyle('d-all-none ' + props.showindevice.map(d => `d-${d}-flex`).join(' ')), this.props.styles, {
401
+ }, props.disabled ? this.theme.getStyle(this.defaultClass + '-disabled') : null, this.isRTL ? this.theme.getStyle(this.defaultClass + '-rtl') : null, props.classname && this.theme.getStyle(props.classname), props.showindevice && this.theme.getStyle('d-all-none ' + props.showindevice.map(d => `d-${d}-flex`).join(' ')), this.props.styles, {
415
402
  root: this.styleOverrides,
416
403
  text: this.styleOverrides
417
404
  });