@wavemaker/app-rn-runtime 11.4.0-next.24565 → 11.4.0-next.24569

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 (439) hide show
  1. app-rn-runtime/actions/base-action.js.map +1 -1
  2. app-rn-runtime/actions/login-action.js.map +1 -1
  3. app-rn-runtime/actions/logout-action.js.map +1 -1
  4. app-rn-runtime/actions/navigation-action.js +14 -2
  5. app-rn-runtime/actions/navigation-action.js.map +1 -1
  6. app-rn-runtime/actions/notification-action.js.map +1 -1
  7. app-rn-runtime/actions/timer-action.js.map +1 -1
  8. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -1
  9. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -1
  10. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -1
  11. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -1
  12. app-rn-runtime/components/advanced/carousel/carousel.component.js +1 -1
  13. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  14. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  15. app-rn-runtime/components/advanced/carousel/carousel.styles.js +16 -0
  16. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  17. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  18. app-rn-runtime/components/advanced/login/login.props.js.map +1 -1
  19. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  20. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -1
  21. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  22. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  23. app-rn-runtime/components/basic/anchor/anchor.component.js +1 -0
  24. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  25. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  26. app-rn-runtime/components/basic/anchor/anchor.styles.js +5 -0
  27. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  28. app-rn-runtime/components/basic/animatedview.component.js +1 -3
  29. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  30. app-rn-runtime/components/basic/audio/audio.component.js +232 -0
  31. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -0
  32. app-rn-runtime/components/basic/audio/audio.props.js +15 -0
  33. app-rn-runtime/components/basic/audio/audio.props.js.map +1 -0
  34. app-rn-runtime/components/basic/audio/audio.styles.js +61 -0
  35. app-rn-runtime/components/basic/audio/audio.styles.js.map +1 -0
  36. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  37. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  38. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  39. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js.map +1 -1
  40. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js.map +1 -1
  41. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  42. app-rn-runtime/components/basic/custom/custom.component.js.map +1 -1
  43. app-rn-runtime/components/basic/custom/custom.props.js.map +1 -1
  44. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  45. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  46. app-rn-runtime/components/basic/icon/icon.styles.js +5 -0
  47. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  48. app-rn-runtime/components/basic/label/label.component.js +2 -1
  49. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  50. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  51. app-rn-runtime/components/basic/label/label.styles.js +8 -0
  52. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  53. app-rn-runtime/components/basic/lottie/lottie.component.js.map +1 -1
  54. app-rn-runtime/components/basic/lottie/lottie.props.js.map +1 -1
  55. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  56. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  57. app-rn-runtime/components/basic/message/message.styles.js +22 -0
  58. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  59. app-rn-runtime/components/basic/modal/modal.component.js.map +1 -1
  60. app-rn-runtime/components/basic/modal/modal.props.js.map +1 -1
  61. app-rn-runtime/components/basic/modal/modal.styles.js.map +1 -1
  62. app-rn-runtime/components/basic/picture/picture.component.js +3 -3
  63. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  64. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  65. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  66. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  67. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  68. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  69. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  70. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  71. app-rn-runtime/components/basic/progress-circle/progress-circle.styles.js.map +1 -1
  72. app-rn-runtime/components/basic/search/local-data-provider.js.map +1 -1
  73. app-rn-runtime/components/basic/search/search.component.js +1 -1
  74. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  75. app-rn-runtime/components/basic/search/search.props.js +1 -0
  76. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  77. app-rn-runtime/components/basic/search/search.styles.js +47 -0
  78. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  79. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  80. app-rn-runtime/components/basic/spinner/spinner.component.js +3 -1
  81. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  82. app-rn-runtime/components/basic/spinner/spinner.props.js.map +1 -1
  83. app-rn-runtime/components/basic/spinner/spinner.styles.js +8 -0
  84. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  85. app-rn-runtime/components/basic/video/video.component.js +2 -2
  86. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  87. app-rn-runtime/components/basic/video/video.props.js.map +1 -1
  88. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  89. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  90. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  91. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  92. app-rn-runtime/components/chart/basechart.props.js +1 -0
  93. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  94. app-rn-runtime/components/chart/basechart.styles.js +17 -0
  95. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  96. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  97. app-rn-runtime/components/chart/column-chart/column-chart.component.js.map +1 -1
  98. app-rn-runtime/components/chart/donut-chart/donut-chart.component.js.map +1 -1
  99. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js +0 -1
  100. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js.map +1 -1
  101. app-rn-runtime/components/chart/legend/legend.component.js +36 -0
  102. app-rn-runtime/components/chart/legend/legend.component.js.map +1 -0
  103. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  104. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  105. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +119 -40
  106. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  107. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js +1 -2
  108. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  109. app-rn-runtime/components/chart/theme/chart.theme.js.map +1 -1
  110. app-rn-runtime/components/container/accordion/accordion.component.js +75 -119
  111. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  112. app-rn-runtime/components/container/accordion/accordion.props.js +1 -0
  113. app-rn-runtime/components/container/accordion/accordion.props.js.map +1 -1
  114. app-rn-runtime/components/container/accordion/accordion.styles.js +14 -4
  115. app-rn-runtime/components/container/accordion/accordion.styles.js.map +1 -1
  116. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +48 -7
  117. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  118. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -1
  119. app-rn-runtime/components/container/container.component.js.map +1 -1
  120. app-rn-runtime/components/container/container.props.js.map +1 -1
  121. app-rn-runtime/components/container/container.styles.js.map +1 -1
  122. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -1
  123. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -1
  124. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -1
  125. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -1
  126. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js.map +1 -1
  127. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js.map +1 -1
  128. app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js.map +1 -1
  129. app-rn-runtime/components/container/linearlayout/linearlayout.component.js.map +1 -1
  130. app-rn-runtime/components/container/linearlayout/linearlayout.props.js.map +1 -1
  131. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -1
  132. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -1
  133. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js.map +1 -1
  134. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js.map +1 -1
  135. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js.map +1 -1
  136. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js.map +1 -1
  137. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  138. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  139. app-rn-runtime/components/container/panel/panel.styles.js +9 -0
  140. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  141. app-rn-runtime/components/container/partial-host.component.js.map +1 -1
  142. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +30 -5
  143. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  144. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js.map +1 -1
  145. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +10 -1
  146. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  147. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  148. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +1 -1
  149. app-rn-runtime/components/container/tabs/tabs.component.js +5 -2
  150. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  151. app-rn-runtime/components/container/tabs/tabs.props.js.map +1 -1
  152. app-rn-runtime/components/container/tabs/tabs.styles.js +39 -0
  153. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  154. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  155. app-rn-runtime/components/container/tile/tile.props.js.map +1 -1
  156. app-rn-runtime/components/container/tile/tile.styles.js.map +1 -1
  157. app-rn-runtime/components/container/wizard/wizard.component.js +15 -6
  158. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  159. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  160. app-rn-runtime/components/container/wizard/wizard.styles.js +53 -1
  161. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  162. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  163. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  164. app-rn-runtime/components/data/card/card-content/card-content.component.js.map +1 -1
  165. app-rn-runtime/components/data/card/card-content/card-content.props.js.map +1 -1
  166. app-rn-runtime/components/data/card/card-footer/card-footer.component.js.map +1 -1
  167. app-rn-runtime/components/data/card/card-footer/card-footer.props.js.map +1 -1
  168. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  169. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  170. app-rn-runtime/components/data/form/form-action/form-action.component.js +1 -0
  171. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  172. app-rn-runtime/components/data/form/form-action/form-action.props.js +3 -1
  173. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  174. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  175. app-rn-runtime/components/data/form/form-body/form-body.component.js.map +1 -1
  176. app-rn-runtime/components/data/form/form-body/form-body.props.js.map +1 -1
  177. app-rn-runtime/components/data/form/form-field/form-field.component.js +9 -2
  178. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  179. app-rn-runtime/components/data/form/form-field/form-field.props.js +1 -0
  180. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  181. app-rn-runtime/components/data/form/form-field/form-field.styles.js.map +1 -1
  182. app-rn-runtime/components/data/form/form-footer/form-footer.component.js.map +1 -1
  183. app-rn-runtime/components/data/form/form-footer/form-footer.props.js.map +1 -1
  184. app-rn-runtime/components/data/form/form.component.js +51 -4
  185. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  186. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  187. app-rn-runtime/components/data/form/form.styles.js +6 -0
  188. app-rn-runtime/components/data/form/form.styles.js.map +1 -1
  189. app-rn-runtime/components/data/list/list-template/list-template.component.js.map +1 -1
  190. app-rn-runtime/components/data/list/list-template/list-template.props.js.map +1 -1
  191. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  192. app-rn-runtime/components/data/list/list.component.js +77 -16
  193. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  194. app-rn-runtime/components/data/list/list.props.js +2 -0
  195. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  196. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  197. app-rn-runtime/components/data/liveform/liveform.component.js +1 -1
  198. app-rn-runtime/components/data/liveform/liveform.component.js.map +1 -1
  199. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  200. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  201. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  202. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  203. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  204. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  205. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  206. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  207. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js +9 -0
  208. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  209. app-rn-runtime/components/dialogs/dialog/dialog.component.js +5 -2
  210. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  211. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  212. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js.map +1 -1
  213. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js.map +1 -1
  214. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  215. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -1
  216. app-rn-runtime/components/input/basedataset/basedataset.component.js.map +1 -1
  217. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  218. app-rn-runtime/components/input/baseinput/baseinput.component.js +2 -2
  219. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  220. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  221. app-rn-runtime/components/input/basenumber/basenumber.component.js +1 -1
  222. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  223. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  224. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  225. app-rn-runtime/components/input/calendar/calendar.props.js.map +1 -1
  226. app-rn-runtime/components/input/calendar/calendar.styles.js +22 -0
  227. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  228. app-rn-runtime/components/input/calendar/views/month-view.js +1 -0
  229. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  230. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  231. app-rn-runtime/components/input/checkbox/checkbox.props.js.map +1 -1
  232. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  233. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  234. app-rn-runtime/components/input/chips/chips.component.js +1 -0
  235. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  236. app-rn-runtime/components/input/chips/chips.props.js.map +1 -1
  237. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  238. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  239. app-rn-runtime/components/input/currency/currency.component.js +6 -4
  240. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  241. app-rn-runtime/components/input/currency/currency.props.js +1 -1
  242. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  243. app-rn-runtime/components/input/currency/currency.styles.js +9 -0
  244. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  245. app-rn-runtime/components/input/epoch/base-datetime.component.js +5 -2
  246. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  247. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  248. app-rn-runtime/components/input/epoch/date/date.props.js.map +1 -1
  249. app-rn-runtime/components/input/epoch/date/date.styles.js +9 -0
  250. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  251. app-rn-runtime/components/input/epoch/date-picker.component.js.map +1 -1
  252. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  253. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  254. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +9 -0
  255. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  256. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  257. app-rn-runtime/components/input/epoch/time/time.props.js.map +1 -1
  258. app-rn-runtime/components/input/epoch/time/time.styles.js +9 -0
  259. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  260. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  261. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  262. app-rn-runtime/components/input/number/number.component.js +6 -4
  263. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  264. app-rn-runtime/components/input/number/number.props.js +1 -1
  265. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  266. app-rn-runtime/components/input/number/number.styles.js +5 -0
  267. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  268. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  269. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  270. app-rn-runtime/components/input/rating/rating.component.js +1 -1
  271. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  272. app-rn-runtime/components/input/rating/rating.props.js.map +1 -1
  273. app-rn-runtime/components/input/select/select.component.js +1 -1
  274. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  275. app-rn-runtime/components/input/select/select.props.js.map +1 -1
  276. app-rn-runtime/components/input/select/select.styles.js +10 -0
  277. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  278. app-rn-runtime/components/input/slider/slider.component.js +2 -1
  279. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  280. app-rn-runtime/components/input/slider/slider.props.js.map +1 -1
  281. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  282. app-rn-runtime/components/input/switch/switch.props.js.map +1 -1
  283. app-rn-runtime/components/input/switch/switch.styles.js +36 -0
  284. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  285. app-rn-runtime/components/input/text/text.component.js +5 -3
  286. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  287. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  288. app-rn-runtime/components/input/text/text.styles.js +5 -0
  289. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  290. app-rn-runtime/components/input/textarea/textarea.component.js +5 -3
  291. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  292. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  293. app-rn-runtime/components/input/textarea/textarea.styles.js +5 -0
  294. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  295. app-rn-runtime/components/input/toggle/toggle.component.js +17 -11
  296. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  297. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  298. app-rn-runtime/components/input/toggle/toggle.styles.js +28 -3
  299. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  300. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  301. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  302. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  303. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  304. app-rn-runtime/components/navigation/basenav/basenav.props.js.map +1 -1
  305. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  306. app-rn-runtime/components/navigation/menu/menu.props.js.map +1 -1
  307. app-rn-runtime/components/navigation/menu/menu.styles.js +6 -0
  308. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  309. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  310. app-rn-runtime/components/navigation/navbar/navbar.props.js.map +1 -1
  311. app-rn-runtime/components/navigation/navbar/navbar.styles.js.map +1 -1
  312. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  313. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  314. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  315. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  316. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  317. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  318. app-rn-runtime/components/page/content/content.component.js.map +1 -1
  319. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  320. app-rn-runtime/components/page/left-panel/left-panel.props.js.map +1 -1
  321. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  322. app-rn-runtime/components/page/page-content/page-content.props.js.map +1 -1
  323. app-rn-runtime/components/page/page.component.js.map +1 -1
  324. app-rn-runtime/components/page/partial/partial.component.js.map +1 -1
  325. app-rn-runtime/components/page/partial-container/partial-container.component.js.map +1 -1
  326. app-rn-runtime/components/page/partial-container/partial-container.props.js.map +1 -1
  327. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  328. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  329. app-rn-runtime/components/prefab/prefab-container.component.js.map +1 -1
  330. app-rn-runtime/core/asset.provider.js.map +1 -1
  331. app-rn-runtime/core/base.component.js +19 -14
  332. app-rn-runtime/core/base.component.js.map +1 -1
  333. app-rn-runtime/core/components/textinput.component.js +37 -0
  334. app-rn-runtime/core/components/textinput.component.js.map +1 -0
  335. app-rn-runtime/core/device/camera-service.js.map +1 -1
  336. app-rn-runtime/core/device/scan-service.js.map +1 -1
  337. app-rn-runtime/core/display.manager.js.map +1 -1
  338. app-rn-runtime/core/event-notifier.js.map +1 -1
  339. app-rn-runtime/core/fixed-view.component.js.map +1 -1
  340. app-rn-runtime/core/formatters.js.map +1 -1
  341. app-rn-runtime/core/i18n.service.js +2 -0
  342. app-rn-runtime/core/i18n.service.js.map +1 -0
  343. app-rn-runtime/core/if.component.js +3 -3
  344. app-rn-runtime/core/if.component.js.map +1 -1
  345. app-rn-runtime/core/imageSizeEstimator.js.map +1 -1
  346. app-rn-runtime/core/injector.js +2 -1
  347. app-rn-runtime/core/injector.js.map +1 -1
  348. app-rn-runtime/core/logger.js +4 -1
  349. app-rn-runtime/core/logger.js.map +1 -1
  350. app-rn-runtime/core/modal.service.js.map +1 -1
  351. app-rn-runtime/core/navigation.service.js.map +1 -1
  352. app-rn-runtime/core/network.service.js +17 -15
  353. app-rn-runtime/core/network.service.js.map +1 -1
  354. app-rn-runtime/core/partial.service.js.map +1 -1
  355. app-rn-runtime/core/props.provider.js.map +1 -1
  356. app-rn-runtime/core/scroll-view.component.js.map +1 -1
  357. app-rn-runtime/core/security.service.js.map +1 -1
  358. app-rn-runtime/core/spinner.service.js.map +1 -1
  359. app-rn-runtime/core/storage.service.js.map +1 -1
  360. app-rn-runtime/core/tappable.component.js +11 -2
  361. app-rn-runtime/core/tappable.component.js.map +1 -1
  362. app-rn-runtime/core/toast.service.js.map +1 -1
  363. app-rn-runtime/core/utils.js +18 -0
  364. app-rn-runtime/core/utils.js.map +1 -1
  365. app-rn-runtime/core/viewport.js.map +1 -1
  366. app-rn-runtime/gestures/swipe.animation.js +9 -4
  367. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  368. app-rn-runtime/package.json +3 -3
  369. app-rn-runtime/runtime/App.js +14 -6
  370. app-rn-runtime/runtime/App.js.map +1 -1
  371. app-rn-runtime/runtime/App.navigator.js +11 -2
  372. app-rn-runtime/runtime/App.navigator.js.map +1 -1
  373. app-rn-runtime/runtime/base-fragment.component.js +19 -6
  374. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  375. app-rn-runtime/runtime/base-page.component.js +2 -0
  376. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  377. app-rn-runtime/runtime/base-partial.component.js.map +1 -1
  378. app-rn-runtime/runtime/base-prefab.component.js +1 -5
  379. app-rn-runtime/runtime/base-prefab.component.js.map +1 -1
  380. app-rn-runtime/runtime/lib-patch.js.map +1 -1
  381. app-rn-runtime/runtime/memo.component.js.map +1 -1
  382. app-rn-runtime/runtime/navigator/drawer.navigator.js.map +1 -1
  383. app-rn-runtime/runtime/navigator/stack.navigator.js.map +1 -1
  384. app-rn-runtime/runtime/services/app-display-manager.service.js.map +1 -1
  385. app-rn-runtime/runtime/services/app-i18n.service.js +20 -0
  386. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  387. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  388. app-rn-runtime/runtime/services/app-security.service.js +7 -7
  389. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  390. app-rn-runtime/runtime/services/app-spinner.service.js +3 -2
  391. app-rn-runtime/runtime/services/app-spinner.service.js.map +1 -1
  392. app-rn-runtime/runtime/services/app-toast.service.js.map +1 -1
  393. app-rn-runtime/runtime/services/device/calendar-service.js.map +1 -1
  394. app-rn-runtime/runtime/services/device/camera-service.js +2 -3
  395. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  396. app-rn-runtime/runtime/services/device/contacts-service.js.map +1 -1
  397. app-rn-runtime/runtime/services/device/location-service.js.map +1 -1
  398. app-rn-runtime/runtime/services/device/permissions.js.map +1 -1
  399. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  400. app-rn-runtime/runtime/services/partial.service.js.map +1 -1
  401. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  402. app-rn-runtime/runtime/watcher.js.map +1 -1
  403. app-rn-runtime/styles/MediaQueryList.js.map +1 -1
  404. app-rn-runtime/styles/background.component.js +51 -12
  405. app-rn-runtime/styles/background.component.js.map +1 -1
  406. app-rn-runtime/styles/style-prop.validator.js +4 -0
  407. app-rn-runtime/styles/style-prop.validator.js.map +1 -1
  408. app-rn-runtime/styles/style-props.js.map +1 -1
  409. app-rn-runtime/styles/theme.js +8 -3
  410. app-rn-runtime/styles/theme.js.map +1 -1
  411. app-rn-runtime/styles/theme.variables.js +55 -1
  412. app-rn-runtime/styles/theme.variables.js.map +1 -1
  413. app-rn-runtime/variables/base-variable.js +3 -3
  414. app-rn-runtime/variables/base-variable.js.map +1 -1
  415. app-rn-runtime/variables/device/calendar/create-event.operation.js.map +1 -1
  416. app-rn-runtime/variables/device/calendar/delete-event.operation.js.map +1 -1
  417. app-rn-runtime/variables/device/calendar/get-events.operation.js.map +1 -1
  418. app-rn-runtime/variables/device/camera/capture-image.operation.js.map +1 -1
  419. app-rn-runtime/variables/device/camera/capture-video.operation.js.map +1 -1
  420. app-rn-runtime/variables/device/contacts/get-contacts.operation.js.map +1 -1
  421. app-rn-runtime/variables/device/device/app-info.operation.js.map +1 -1
  422. app-rn-runtime/variables/device/device/current-geo-position.operation.js.map +1 -1
  423. app-rn-runtime/variables/device/device/device-info.operation.js.map +1 -1
  424. app-rn-runtime/variables/device/device/network-info.operation.js.map +1 -1
  425. app-rn-runtime/variables/device/device/vibrate.operation.js.map +1 -1
  426. app-rn-runtime/variables/device/file/upload-file.operation.js.map +1 -1
  427. app-rn-runtime/variables/device/operation.provider.js.map +1 -1
  428. app-rn-runtime/variables/device/scan/scan.operation.js.map +1 -1
  429. app-rn-runtime/variables/device-variable.js.map +1 -1
  430. app-rn-runtime/variables/http.service.js +1 -1
  431. app-rn-runtime/variables/http.service.js.map +1 -1
  432. app-rn-runtime/variables/live-variable.js +8 -6
  433. app-rn-runtime/variables/live-variable.js.map +1 -1
  434. app-rn-runtime/variables/model-variable.js.map +1 -1
  435. app-rn-runtime/variables/service-variable.js +14 -4
  436. app-rn-runtime/variables/service-variable.js.map +1 -1
  437. app-rn-runtime/variables/utils/dataset-util.js.map +1 -1
  438. app-rn-runtime/variables/utils/inflight-queue.js.map +1 -1
  439. app-rn-runtime/variables/utils/variable.utils.js.map +1 -1
@@ -37,5 +37,10 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
37
37
  backgroundColor: themeVariables.inputDisabledBgColor
38
38
  }
39
39
  });
40
+ addStyle(DEFAULT_CLASS + '-rtl', '', {
41
+ root: {
42
+ textAlign: 'right'
43
+ }
44
+ });
40
45
  });
41
46
  //# sourceMappingURL=textarea.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","padding","borderWidth","borderStyle","borderColor","inputBorderColor","backgroundColor","inputBackgroundColor","borderRadius","fontFamily","baseFont","minHeight","text","fontSize","textAlignVertical","invalid","borderBottomColor","placeholderText","color","inputPlaceholderColor","skeleton","width","height","inputDisabledBgColor"],"sources":["textarea.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 { WmSkeletonStyles } from '@wavemaker/app-rn-runtime/components/basic/skeleton/skeleton.styles';\n\nexport type WmTextareaStyles = BaseStyles & {\n invalid: AllStyle;\n placeholderText: AllStyle;\n skeleton: WmSkeletonStyles;\n};\n\nexport const DEFAULT_CLASS = 'app-textarea';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmTextareaStyles = defineStyles({\n root: {\n padding:12,\n borderWidth:1,\n borderStyle: 'solid',\n borderColor: themeVariables.inputBorderColor,\n backgroundColor: themeVariables.inputBackgroundColor,\n borderRadius: 6,\n fontFamily: themeVariables.baseFont,\n minHeight: 160,\n },\n text: {\n fontSize: 16,\n textAlignVertical: 'top'\n },\n invalid: {\n borderBottomColor: 'red'\n },\n placeholderText: {\n color: themeVariables.inputPlaceholderColor\n },\n skeleton: {\n root: {\n width: '100%',\n height: 84,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n root : {\n backgroundColor: themeVariables.inputDisabledBgColor\n }\n });\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AASxF,OAAO,MAAMC,aAAa,GAAG,cAAc;AAC3CF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA+B,GAAGL,YAAY,CAAC;IACjDM,IAAI,EAAE;MACJC,OAAO,EAAC,EAAE;MACVC,WAAW,EAAC,CAAC;MACbC,WAAW,EAAE,OAAO;MACpBC,WAAW,EAAEP,cAAc,CAACQ,gBAAgB;MAC5CC,eAAe,EAAET,cAAc,CAACU,oBAAoB;MACpDC,YAAY,EAAE,CAAC;MACfC,UAAU,EAAEZ,cAAc,CAACa,QAAQ;MACnCC,SAAS,EAAE;IACb,CAAC;IACDC,IAAI,EAAE;MACJC,QAAQ,EAAE,EAAE;MACZC,iBAAiB,EAAE;IACrB,CAAC;IACDC,OAAO,EAAE;MACPC,iBAAiB,EAAE;IACrB,CAAC;IACDC,eAAe,EAAE;MACfC,KAAK,EAAErB,cAAc,CAACsB;IACxB,CAAC;IACDC,QAAQ,EAAE;MACRpB,IAAI,EAAE;QACJqB,KAAK,EAAE,MAAM;QACbC,MAAM,EAAE,EAAE;QACVd,YAAY,EAAE;MAChB;IACF;EACJ,CAAC,CAAC;EAEFV,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAC1CD,QAAQ,CAACH,aAAa,GAAG,WAAW,EAAE,EAAE,EAAE;IACtCK,IAAI,EAAG;MACLM,eAAe,EAAET,cAAc,CAAC0B;IAClC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","padding","borderWidth","borderStyle","borderColor","inputBorderColor","backgroundColor","inputBackgroundColor","borderRadius","fontFamily","baseFont","minHeight","text","fontSize","textAlignVertical","invalid","borderBottomColor","placeholderText","color","inputPlaceholderColor","skeleton","width","height","inputDisabledBgColor","textAlign"],"sources":["textarea.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 { WmSkeletonStyles } from '@wavemaker/app-rn-runtime/components/basic/skeleton/skeleton.styles';\n\nexport type WmTextareaStyles = BaseStyles & {\n invalid: AllStyle;\n placeholderText: AllStyle;\n skeleton: WmSkeletonStyles;\n};\n\nexport const DEFAULT_CLASS = 'app-textarea';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmTextareaStyles = defineStyles({\n root: {\n padding:12,\n borderWidth:1,\n borderStyle: 'solid',\n borderColor: themeVariables.inputBorderColor,\n backgroundColor: themeVariables.inputBackgroundColor,\n borderRadius: 6,\n fontFamily: themeVariables.baseFont,\n minHeight: 160,\n },\n text: {\n fontSize: 16,\n textAlignVertical: 'top'\n },\n invalid: {\n borderBottomColor: 'red'\n },\n placeholderText: {\n color: themeVariables.inputPlaceholderColor\n },\n skeleton: {\n root: {\n width: '100%',\n height: 84,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n root : {\n backgroundColor: themeVariables.inputDisabledBgColor\n }\n });\n addStyle(DEFAULT_CLASS + '-rtl', '', {\n root:{\n textAlign: 'right'\n }\n })\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AASxF,OAAO,MAAMC,aAAa,GAAG,cAAc;AAC3CF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA+B,GAAGL,YAAY,CAAC;IACjDM,IAAI,EAAE;MACJC,OAAO,EAAC,EAAE;MACVC,WAAW,EAAC,CAAC;MACbC,WAAW,EAAE,OAAO;MACpBC,WAAW,EAAEP,cAAc,CAACQ,gBAAgB;MAC5CC,eAAe,EAAET,cAAc,CAACU,oBAAoB;MACpDC,YAAY,EAAE,CAAC;MACfC,UAAU,EAAEZ,cAAc,CAACa,QAAQ;MACnCC,SAAS,EAAE;IACb,CAAC;IACDC,IAAI,EAAE;MACJC,QAAQ,EAAE,EAAE;MACZC,iBAAiB,EAAE;IACrB,CAAC;IACDC,OAAO,EAAE;MACPC,iBAAiB,EAAE;IACrB,CAAC;IACDC,eAAe,EAAE;MACfC,KAAK,EAAErB,cAAc,CAACsB;IACxB,CAAC;IACDC,QAAQ,EAAE;MACRpB,IAAI,EAAE;QACJqB,KAAK,EAAE,MAAM;QACbC,MAAM,EAAE,EAAE;QACVd,YAAY,EAAE;MAChB;IACF;EACJ,CAAC,CAAC;EAEFV,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAC1CD,QAAQ,CAACH,aAAa,GAAG,WAAW,EAAE,EAAE,EAAE;IACtCK,IAAI,EAAG;MACLM,eAAe,EAAET,cAAc,CAAC0B;IAClC;EACJ,CAAC,CAAC;EACFzB,QAAQ,CAACH,aAAa,GAAG,MAAM,EAAE,EAAE,EAAE;IACnCK,IAAI,EAAC;MACHwB,SAAS,EAAE;IACb;EACF,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -2,8 +2,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
2
2
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
3
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
4
  import React from 'react';
5
- import { View } from 'react-native';
6
- import { Switch } from 'react-native-paper';
5
+ import { View, TouchableOpacity } from 'react-native';
6
+ import { BackgroundComponent } from '@wavemaker/app-rn-runtime/styles/background.component';
7
7
  import { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';
8
8
  import { unStringify, validateField } from '@wavemaker/app-rn-runtime/core/utils';
9
9
  import WmToggleProps from './toggle.props';
@@ -66,14 +66,13 @@ export default class WmToggle extends BaseComponent {
66
66
  });
67
67
  }
68
68
  renderWidget(props) {
69
- return /*#__PURE__*/React.createElement(View, {
70
- style: this.styles.root
71
- }, this._background, /*#__PURE__*/React.createElement(Switch, {
72
- value: this.state.isSwitchOn,
73
- color: this.styles.text.color,
74
- disabled: props.readonly || props.disabled,
75
- onValueChange: this.onToggleSwitch.bind(this),
76
- onTouchEndCapture: () => {
69
+ const styles = this.theme.mergeStyle(this.styles, this.theme.getStyle(this.state.isSwitchOn ? 'app-toggle-on' : 'app-toggle-off'));
70
+ return /*#__PURE__*/React.createElement(TouchableOpacity, {
71
+ style: styles.root,
72
+ onPress: () => {
73
+ if (this.props.disabled) {
74
+ return;
75
+ }
77
76
  // Added setTimeout to smooth animation
78
77
  setTimeout(() => {
79
78
  if (!props.readonly) {
@@ -81,8 +80,15 @@ export default class WmToggle extends BaseComponent {
81
80
  }
82
81
  this.invokeEventCallback('onTap', [null, this]);
83
82
  }, 500);
83
+ this.onToggleSwitch(!this.state.isSwitchOn);
84
84
  }
85
- }));
85
+ }, this._background, /*#__PURE__*/React.createElement(View, {
86
+ style: styles.handle
87
+ }, /*#__PURE__*/React.createElement(BackgroundComponent, {
88
+ size: styles.handle.backgroundSize,
89
+ position: styles.handle.backgroundPosition,
90
+ image: styles.handle.backgroundImage
91
+ })));
86
92
  }
87
93
  }
88
94
  //# sourceMappingURL=toggle.component.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","Switch","BaseComponent","BaseComponentState","unStringify","validateField","WmToggleProps","DEFAULT_CLASS","WmToggleState","WmToggle","constructor","props","onPropertyChange","name","$new","$old","value","state","checkedvalue","updateState","isSwitchOn","updateDatavalue","datavalue","validate","validationObj","isValid","errorType","onToggleSwitch","oldValue","dataValue","uncheckedvalue","onFieldChange","invokeEventCallback","proxy","renderWidget","styles","root","_background","text","color","readonly","disabled","bind","setTimeout"],"sources":["toggle.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { Switch } from 'react-native-paper';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport {unStringify, validateField} from '@wavemaker/app-rn-runtime/core/utils';\n\nimport WmToggleProps from './toggle.props';\nimport { DEFAULT_CLASS, WmToggleStyles } from './toggle.styles';\n\nexport class WmToggleState extends BaseComponentState<WmToggleProps> {\n isSwitchOn: boolean = false;\n isValid: boolean = true;\n errorType = '';\n}\n\nexport default class WmToggle extends BaseComponent<WmToggleProps, WmToggleState, WmToggleStyles> {\n\n constructor(props: WmToggleProps) {\n super(props, DEFAULT_CLASS, new WmToggleProps(), new WmToggleState());\n }\n\n onPropertyChange(name: string, $new: any, $old: any) {\n switch (name) {\n case 'datavalue':\n let value =\n unStringify($new) ===\n unStringify(this.state.props.checkedvalue, true);\n this.updateState({ isSwitchOn: value } as WmToggleState);\n break;\n }\n }\n\n updateDatavalue(value: any) {\n this.updateState({ props: { datavalue: value }} as WmToggleState);\n }\n\n validate(value: any) {\n const validationObj = validateField(this.state.props, value);\n this.updateState({\n isValid: validationObj.isValid,\n errorType: validationObj.errorType\n } as WmToggleState);\n }\n\n onToggleSwitch(value: any) {\n const oldValue = this.state.props.datavalue;\n this.validate(value);\n this.updateState({ isSwitchOn: value } as WmToggleState);\n const dataValue = value === true ? this.state.props.checkedvalue : this.state.props.uncheckedvalue;\n // @ts-ignore\n this.updateState({ props: { datavalue: dataValue } },\n ()=> {\n if (!this.props.onFieldChange) {\n this.invokeEventCallback('onChange', [null, this.proxy, dataValue, oldValue]);\n } else {\n this.props.onFieldChange && this.props.onFieldChange('datavalue', dataValue, oldValue);\n }\n this.invokeEventCallback('onBlur', [ null, this.proxy ]);\n });\n }\n\n renderWidget(props: WmToggleProps) {\n return (\n <View style={this.styles.root}>\n {this._background}\n <Switch value={this.state.isSwitchOn}\n color={this.styles.text.color as string}\n disabled={props.readonly || props.disabled}\n onValueChange={this.onToggleSwitch.bind(this)}\n onTouchEndCapture={() => {\n // Added setTimeout to smooth animation\n setTimeout(() => {\n if (!props.readonly) {\n this.invokeEventCallback('onFocus', [null, this]);\n }\n this.invokeEventCallback('onTap', [null, this]);\n }, 500);\n }}/>\n </View>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,MAAM,QAAQ,oBAAoB;AAC3C,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAAQC,WAAW,EAAEC,aAAa,QAAO,sCAAsC;AAE/E,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAE/D,OAAO,MAAMC,aAAa,SAASL,kBAAkB,CAAgB;EAAA;IAAA;IAAA,oCAC7C,KAAK;IAAA,iCACR,IAAI;IAAA,mCACX,EAAE;EAAA;AAChB;AAEA,eAAe,MAAMM,QAAQ,SAASP,aAAa,CAA+C;EAEhGQ,WAAW,CAACC,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAEJ,aAAa,EAAE,IAAID,aAAa,EAAE,EAAE,IAAIE,aAAa,EAAE,CAAC;EACvE;EAEAI,gBAAgB,CAACC,IAAY,EAAEC,IAAS,EAAEC,IAAS,EAAE;IACnD,QAAQF,IAAI;MACV,KAAK,WAAW;QACd,IAAIG,KAAK,GACPZ,WAAW,CAACU,IAAI,CAAC,KACjBV,WAAW,CAAC,IAAI,CAACa,KAAK,CAACN,KAAK,CAACO,YAAY,EAAE,IAAI,CAAC;QAClD,IAAI,CAACC,WAAW,CAAC;UAAEC,UAAU,EAAEJ;QAAM,CAAC,CAAkB;QACxD;IAAM;EAEZ;EAEAK,eAAe,CAACL,KAAU,EAAE;IAC1B,IAAI,CAACG,WAAW,CAAC;MAAER,KAAK,EAAE;QAAEW,SAAS,EAAEN;MAAM;IAAC,CAAC,CAAkB;EACnE;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,CAACwB,MAAM,CAACC;IAAK,GAC3B,IAAI,CAACC,WAAW,eACjB,oBAAC,MAAM;MAAC,KAAK,EAAE,IAAI,CAACpB,KAAK,CAACG,UAAW;MACjC,KAAK,EAAE,IAAI,CAACe,MAAM,CAACG,IAAI,CAACC,KAAgB;MACxC,QAAQ,EAAE5B,KAAK,CAAC6B,QAAQ,IAAI7B,KAAK,CAAC8B,QAAS;MAC3C,aAAa,EAAE,IAAI,CAACd,cAAc,CAACe,IAAI,CAAC,IAAI,CAAE;MAC9C,iBAAiB,EAAE,MAAM;QACvB;QACAC,UAAU,CAAC,MAAM;UACf,IAAI,CAAChC,KAAK,CAAC6B,QAAQ,EAAE;YACnB,IAAI,CAACR,mBAAmB,CAAC,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;UACnD;UACA,IAAI,CAACA,mBAAmB,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACjD,CAAC,EAAE,GAAG,CAAC;MACT;IAAE,EAAE,CACH;EAEX;AACF"}
1
+ {"version":3,"names":["React","View","TouchableOpacity","BackgroundComponent","BaseComponent","BaseComponentState","unStringify","validateField","WmToggleProps","DEFAULT_CLASS","WmToggleState","constructor","arguments","_defineProperty","WmToggle","props","onPropertyChange","name","$new","$old","value","state","checkedvalue","updateState","isSwitchOn","updateDatavalue","datavalue","validate","validationObj","isValid","errorType","onToggleSwitch","oldValue","dataValue","uncheckedvalue","onFieldChange","invokeEventCallback","proxy","renderWidget","styles","theme","mergeStyle","getStyle","createElement","style","root","onPress","disabled","setTimeout","readonly","_background","handle","size","backgroundSize","position","backgroundPosition","image","backgroundImage"],"sources":["toggle.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View, TouchableOpacity } from 'react-native';\n\nimport { BackgroundComponent } from '@wavemaker/app-rn-runtime/styles/background.component';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport {unStringify, validateField} from '@wavemaker/app-rn-runtime/core/utils';\n\nimport WmToggleProps from './toggle.props';\nimport { DEFAULT_CLASS, WmToggleStyles } from './toggle.styles';\n\nexport class WmToggleState extends BaseComponentState<WmToggleProps> {\n isSwitchOn: boolean = false;\n isValid: boolean = true;\n errorType = '';\n}\n\nexport default class WmToggle extends BaseComponent<WmToggleProps, WmToggleState, WmToggleStyles> {\n\n constructor(props: WmToggleProps) {\n super(props, DEFAULT_CLASS, new WmToggleProps(), new WmToggleState());\n }\n\n onPropertyChange(name: string, $new: any, $old: any) {\n switch (name) {\n case 'datavalue':\n let value =\n unStringify($new) ===\n unStringify(this.state.props.checkedvalue, true);\n this.updateState({ isSwitchOn: value } as WmToggleState);\n break;\n }\n }\n\n updateDatavalue(value: any) {\n this.updateState({ props: { datavalue: value }} as WmToggleState);\n }\n\n validate(value: any) {\n const validationObj = validateField(this.state.props, value);\n this.updateState({\n isValid: validationObj.isValid,\n errorType: validationObj.errorType\n } as WmToggleState);\n }\n\n onToggleSwitch(value: any) {\n const oldValue = this.state.props.datavalue;\n this.validate(value);\n this.updateState({ isSwitchOn: value } as WmToggleState);\n const dataValue = value === true ? this.state.props.checkedvalue : this.state.props.uncheckedvalue;\n // @ts-ignore\n this.updateState({ props: { datavalue: dataValue } },\n ()=> {\n if (!this.props.onFieldChange) {\n this.invokeEventCallback('onChange', [null, this.proxy, dataValue, oldValue]);\n } else {\n this.props.onFieldChange && this.props.onFieldChange('datavalue', dataValue, oldValue);\n }\n this.invokeEventCallback('onBlur', [ null, this.proxy ]);\n });\n }\n\n renderWidget(props: WmToggleProps) {\n const styles = this.theme.mergeStyle(this.styles, \n this.theme.getStyle(this.state.isSwitchOn ? 'app-toggle-on' : 'app-toggle-off'));\n return (\n <TouchableOpacity style={styles.root} onPress={() => {\n if (this.props.disabled) {\n return;\n }\n // Added setTimeout to smooth animation\n setTimeout(() => {\n if (!props.readonly) {\n this.invokeEventCallback('onFocus', [null, this]);\n }\n this.invokeEventCallback('onTap', [null, this]);\n }, 500);\n this.onToggleSwitch(!this.state.isSwitchOn);\n }}>\n {this._background}\n <View style={styles.handle}>\n <BackgroundComponent\n size={styles.handle.backgroundSize}\n position={styles.handle.backgroundPosition}\n image={styles.handle.backgroundImage}> \n </BackgroundComponent>\n </View>\n </TouchableOpacity>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,gBAAgB,QAAQ,cAAc;AAErD,SAASC,mBAAmB,QAAQ,uDAAuD;AAC3F,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAAQC,WAAW,EAAEC,aAAa,QAAO,sCAAsC;AAE/E,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAE/D,OAAO,MAAMC,aAAa,SAASL,kBAAkB,CAAgB;EAAAM,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,qBAC7C,KAAK;IAAAA,eAAA,kBACR,IAAI;IAAAA,eAAA,oBACX,EAAE;EAAA;AAChB;AAEA,eAAe,MAAMC,QAAQ,SAASV,aAAa,CAA+C;EAEhGO,WAAWA,CAACI,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAEN,aAAa,EAAE,IAAID,aAAa,CAAC,CAAC,EAAE,IAAIE,aAAa,CAAC,CAAC,CAAC;EACvE;EAEAM,gBAAgBA,CAACC,IAAY,EAAEC,IAAS,EAAEC,IAAS,EAAE;IACnD,QAAQF,IAAI;MACV,KAAK,WAAW;QACd,IAAIG,KAAK,GACPd,WAAW,CAACY,IAAI,CAAC,KACjBZ,WAAW,CAAC,IAAI,CAACe,KAAK,CAACN,KAAK,CAACO,YAAY,EAAE,IAAI,CAAC;QAClD,IAAI,CAACC,WAAW,CAAC;UAAEC,UAAU,EAAEJ;QAAM,CAAkB,CAAC;QACxD;IACJ;EACF;EAEAK,eAAeA,CAACL,KAAU,EAAE;IAC1B,IAAI,CAACG,WAAW,CAAC;MAAER,KAAK,EAAE;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EAAE;IACjC,MAAMwB,MAAM,GAAG,IAAI,CAACC,KAAK,CAACC,UAAU,CAAC,IAAI,CAACF,MAAM,EAC9C,IAAI,CAACC,KAAK,CAACE,QAAQ,CAAC,IAAI,CAACrB,KAAK,CAACG,UAAU,GAAG,eAAe,GAAG,gBAAgB,CAAC,CAAC;IAClF,oBACExB,KAAA,CAAA2C,aAAA,CAACzC,gBAAgB;MAAC0C,KAAK,EAAEL,MAAM,CAACM,IAAK;MAACC,OAAO,EAAEA,CAAA,KAAM;QACnD,IAAI,IAAI,CAAC/B,KAAK,CAACgC,QAAQ,EAAE;UACvB;QACF;QACA;QACAC,UAAU,CAAC,MAAM;UACf,IAAI,CAACjC,KAAK,CAACkC,QAAQ,EAAE;YACnB,IAAI,CAACb,mBAAmB,CAAC,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;UACnD;UACA,IAAI,CAACA,mBAAmB,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACjD,CAAC,EAAE,GAAG,CAAC;QACP,IAAI,CAACL,cAAc,CAAC,CAAC,IAAI,CAACV,KAAK,CAACG,UAAU,CAAC;MAC7C;IAAE,GACC,IAAI,CAAC0B,WAAW,eACjBlD,KAAA,CAAA2C,aAAA,CAAC1C,IAAI;MAAC2C,KAAK,EAAEL,MAAM,CAACY;IAAO,gBACzBnD,KAAA,CAAA2C,aAAA,CAACxC,mBAAmB;MAClBiD,IAAI,EAAEb,MAAM,CAACY,MAAM,CAACE,cAAe;MACnCC,QAAQ,EAAEf,MAAM,CAACY,MAAM,CAACI,kBAAmB;MAC3CC,KAAK,EAAEjB,MAAM,CAACY,MAAM,CAACM;IAAgB,CAClB,CACjB,CACU,CAAC;EAEvB;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmToggleProps"],"sources":["toggle.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmToggleProps extends BaseProps {\n checkedvalue: any = true;\n uncheckedvalue: any = false;\n datavalue: any;\n readonly? = false;\n onFieldChange: any;\n invokeEvent?: Function;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,sCAC/B,IAAI;IAAA,wCACF,KAAK;IAAA;IAAA,kCAEf,KAAK;IAAA;IAAA;EAAA;AAGnB"}
1
+ {"version":3,"names":["BaseProps","WmToggleProps","constructor","arguments","_defineProperty"],"sources":["toggle.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmToggleProps extends BaseProps {\n checkedvalue: any = true;\n uncheckedvalue: any = false;\n datavalue: any;\n readonly? = false;\n onFieldChange: any;\n invokeEvent?: Function;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,uBAC/B,IAAI;IAAAA,eAAA,yBACF,KAAK;IAAAA,eAAA;IAAAA,eAAA,mBAEf,KAAK;IAAAA,eAAA;IAAAA,eAAA;EAAA;AAGnB"}
@@ -4,13 +4,38 @@ export const DEFAULT_CLASS = 'app-toggle';
4
4
  BASE_THEME.registerStyle((themeVariables, addStyle) => {
5
5
  const defaultStyles = defineStyles({
6
6
  root: {
7
- width: 36
7
+ width: 36,
8
+ flexDirection: 'row',
9
+ justifyContent: 'flex-start',
10
+ alignItems: 'center',
11
+ borderRadius: 18,
12
+ borderWidth: 1
8
13
  },
9
- text: {
10
- color: themeVariables.toggleColor
14
+ text: {},
15
+ handle: {
16
+ width: 18,
17
+ height: 18,
18
+ borderRadius: 18,
19
+ backgroundColor: themeVariables.toggleHandleColor,
20
+ backgroundSize: '100% 100%',
21
+ backgroundPosition: 'center'
11
22
  }
12
23
  });
13
24
  addStyle(DEFAULT_CLASS, '', defaultStyles);
25
+ addStyle(DEFAULT_CLASS + '-on', '', {
26
+ root: {
27
+ backgroundColor: themeVariables.toggleOnColor,
28
+ justifyContent: 'flex-end',
29
+ borderColor: themeVariables.toggleOnColor
30
+ }
31
+ });
32
+ addStyle(DEFAULT_CLASS + '-off', '', {
33
+ root: {
34
+ backgroundColor: themeVariables.toggleOffColor,
35
+ borderColor: themeVariables.toggleOffColor
36
+ }
37
+ });
38
+ addStyle(DEFAULT_CLASS + '-rtl', '', {});
14
39
  addStyle(DEFAULT_CLASS + '-disabled', '', {
15
40
  root: {}
16
41
  });
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","width","text","color","toggleColor"],"sources":["toggle.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport type WmToggleStyles = BaseStyles & {};\n\nexport const DEFAULT_CLASS = 'app-toggle';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmToggleStyles = defineStyles({\n root: {\n width: 36\n },\n text: {\n color: themeVariables.toggleColor\n }\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n root : {}\n });\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAIxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACzCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA6B,GAAGL,YAAY,CAAC;IAC/CM,IAAI,EAAE;MACJC,KAAK,EAAE;IACT,CAAC;IACDC,IAAI,EAAE;MACJC,KAAK,EAAEN,cAAc,CAACO;IACxB;EACJ,CAAC,CAAC;EAEFN,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAC1CD,QAAQ,CAACH,aAAa,GAAG,WAAW,EAAE,EAAE,EAAE;IACtCK,IAAI,EAAG,CAAC;EACZ,CAAC,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","width","flexDirection","justifyContent","alignItems","borderRadius","borderWidth","text","handle","height","backgroundColor","toggleHandleColor","backgroundSize","backgroundPosition","toggleOnColor","borderColor","toggleOffColor"],"sources":["toggle.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { Platform, ViewStyle } from 'react-native';\nimport Color from 'color';\n\nexport type WmToggleStyles = BaseStyles & {\n handle: ViewStyle\n};\n\nexport const DEFAULT_CLASS = 'app-toggle';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmToggleStyles = defineStyles({\n root: {\n width: 36,\n flexDirection: 'row',\n justifyContent: 'flex-start',\n alignItems: 'center',\n borderRadius: 18,\n borderWidth: 1\n },\n text: {},\n handle: {\n width: 18,\n height: 18,\n borderRadius: 18,\n backgroundColor: themeVariables.toggleHandleColor,\n backgroundSize: '100% 100%',\n backgroundPosition: 'center'\n }\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-on', '', {\n root : {\n backgroundColor: themeVariables.toggleOnColor,\n justifyContent: 'flex-end',\n borderColor: themeVariables.toggleOnColor\n }\n } as WmToggleStyles);\n addStyle(DEFAULT_CLASS + '-off', '', {\n root : {\n backgroundColor: themeVariables.toggleOffColor,\n borderColor: themeVariables.toggleOffColor\n }\n } as WmToggleStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', {});\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n root : {}\n });\n});\n"],"mappings":"AAAA,OAAOA,UAAU,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AC"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","View","BaseComponent","BaseComponentState","WmIcon","WmPicture","WmAppNavbarProps","DEFAULT_CLASS","WmAppNavbarState","WmAppNavbar","constructor","props","onDrawerBtnPress","invokeEventCallback","bind","onBackBtnPress","onSearchBtnPress","renderWidget","styles","root","_background","leftSection","showDrawerButton","theme","mergeStyle","action","leftnavIcon","leftnavpaneliconclass","backbutton","backIcon","backbuttoniconclass","backbuttonlabel","middleSection","imgsrc","image","content","title","rightSection","searchbutton","searchbuttoniconclass","children"],"sources":["appnavbar.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport WmPicture from '@wavemaker/app-rn-runtime/components/basic/picture/picture.component';\n\nimport WmAppNavbarProps from './appnavbar.props';\nimport { DEFAULT_CLASS, WmAppNavbarStyles } from './appnavbar.styles';\n\nexport class WmAppNavbarState extends BaseComponentState<WmAppNavbarProps> {\n\n}\n\nexport default class WmAppNavbar extends BaseComponent<WmAppNavbarProps, WmAppNavbarState, WmAppNavbarStyles> {\n\n private onDrawerBtnPress: Function;\n private onBackBtnPress: Function;\n private onSearchBtnPress: Function;\n\n constructor(props: WmAppNavbarProps) {\n super(props, DEFAULT_CLASS, new WmAppNavbarProps());\n this.onDrawerBtnPress = (() => this.invokeEventCallback('onDrawerbuttonpress', [null, this])).bind(this);\n this.onBackBtnPress = (() => this.invokeEventCallback('onBackbtnclick', [null, this])).bind(this);\n this.onSearchBtnPress = (() => this.invokeEventCallback('onSearchbuttonpress', [null, this])).bind(this);\n }\n\n renderWidget(props: WmAppNavbarProps) {\n return (\n <View style={this.styles.root}>\n {this._background}\n <View style={this.styles.leftSection}>\n {props.showDrawerButton && (<WmIcon\n styles={this.theme.mergeStyle({}, this.styles.action, this.styles.leftnavIcon)}\n iconclass={props.leftnavpaneliconclass}\n onTap={this.onDrawerBtnPress}\n />)}\n {props.backbutton && (<WmIcon\n styles={this.theme.mergeStyle({}, this.styles.action, this.styles.backIcon)}\n iconclass={props.backbuttoniconclass}\n caption={props.backbuttonlabel}\n onTap={this.onBackBtnPress}/>)}\n </View>\n <View style={this.styles.middleSection}>\n {props.imgsrc && (\n <WmPicture\n styles={this.styles.image}\n picturesource={props.imgsrc} />)}\n <Text style={this.styles.content}>{props.title}</Text>\n </View>\n <View style={this.styles.rightSection}>\n {props.searchbutton && (<WmIcon\n styles={this.theme.mergeStyle({}, this.styles.action, this.styles.leftnavIcon)}\n iconclass={props.searchbuttoniconclass}\n onTap={this.onSearchBtnPress}\n />)}\n {props.children}\n </View>\n </View>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,OAAOC,MAAM,MAAM,gEAAgE;AACnF,OAAOC,SAAS,MAAM,sEAAsE;AAE5F,OAAOC,gBAAgB,MAAM,mBAAmB;AAChD,SAASC,aAAa,QAA2B,oBAAoB;AAErE,OAAO,MAAMC,gBAAgB,SAASL,kBAAkB,CAAmB;AAI3E,eAAe,MAAMM,WAAW,SAASP,aAAa,CAAwD;EAM5GQ,WAAW,CAACC,KAAuB,EAAE;IACnC,KAAK,CAACA,KAAK,EAAEJ,aAAa,EAAE,IAAID,gBAAgB,EAAE,CAAC;IAAC;IAAA;IAAA;IACpD,IAAI,CAACM,gBAAgB,GAAG,CAAC,MAAM,IAAI,CAACC,mBAAmB,CAAC,qBAAqB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,EAAEC,IAAI,CAAC,IAAI,CAAC;IACxG,IAAI,CAACC,cAAc,GAAG,CAAC,MAAM,IAAI,CAACF,mBAAmB,CAAC,gBAAgB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,EA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,EAAE,IAAI,CAACf,MAAM,CAACiB;IAAQ,GAAExB,KAAK,CAACyB,KAAK,CAAQ,CACjD,eACP,oBAAC,IAAI;MAAC,KAAK,EAAE,IAAI,CAAClB,MAAM,CAACmB;IAAa,GACnC1B,KAAK,CAAC2B,YAAY,iBAAK,oBAAC,MAAM;MAC7B,MAAM,EAAE,IAAI,CAACf,KAAK,CAACC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAACN,MAAM,CAACO,MAAM,EAAE,IAAI,CAACP,MAAM,CAACQ,WAAW,CAAE;MAC/E,SAAS,EAAEf,KAAK,CAAC4B,qBAAsB;MACvC,KAAK,EAAE,IAAI,CAACvB;IAAiB,EAC1B,EACJL,KAAK,CAAC6B,QAAQ,CACV,CACF;EAEX;AACF"}
1
+ {"version":3,"names":["React","Text","View","BaseComponent","BaseComponentState","WmIcon","WmPicture","WmAppNavbarProps","DEFAULT_CLASS","WmAppNavbarState","WmAppNavbar","constructor","props","_defineProperty","onDrawerBtnPress","invokeEventCallback","bind","onBackBtnPress","onSearchBtnPress","renderWidget","createElement","style","styles","root","_background","leftSection","showDrawerButton","theme","mergeStyle","action","leftnavIcon","iconclass","leftnavpaneliconclass","onTap","backbutton","backIcon","backbuttoniconclass","caption","backbuttonlabel","middleSection","imgsrc","image","picturesource","content","title","rightSection","searchbutton","searchbuttoniconclass","children"],"sources":["appnavbar.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport WmPicture from '@wavemaker/app-rn-runtime/components/basic/picture/picture.component';\n\nimport WmAppNavbarProps from './appnavbar.props';\nimport { DEFAULT_CLASS, WmAppNavbarStyles } from './appnavbar.styles';\n\nexport class WmAppNavbarState extends BaseComponentState<WmAppNavbarProps> {\n\n}\n\nexport default class WmAppNavbar extends BaseComponent<WmAppNavbarProps, WmAppNavbarState, WmAppNavbarStyles> {\n\n private onDrawerBtnPress: Function;\n private onBackBtnPress: Function;\n private onSearchBtnPress: Function;\n\n constructor(props: WmAppNavbarProps) {\n super(props, DEFAULT_CLASS, new WmAppNavbarProps());\n this.onDrawerBtnPress = (() => this.invokeEventCallback('onDrawerbuttonpress', [null, this])).bind(this);\n this.onBackBtnPress = (() => this.invokeEventCallback('onBackbtnclick', [null, this])).bind(this);\n this.onSearchBtnPress = (() => this.invokeEventCallback('onSearchbuttonpress', [null, this])).bind(this);\n }\n\n renderWidget(props: WmAppNavbarProps) {\n return (\n <View style={this.styles.root}>\n {this._background}\n <View style={this.styles.leftSection}>\n {props.showDrawerButton && (<WmIcon\n styles={this.theme.mergeStyle({}, this.styles.action, this.styles.leftnavIcon)}\n iconclass={props.leftnavpaneliconclass}\n onTap={this.onDrawerBtnPress}\n />)}\n {props.backbutton && (<WmIcon\n styles={this.theme.mergeStyle({}, this.styles.action, this.styles.backIcon)}\n iconclass={props.backbuttoniconclass}\n caption={props.backbuttonlabel}\n onTap={this.onBackBtnPress}/>)}\n </View>\n <View style={this.styles.middleSection}>\n {props.imgsrc && (\n <WmPicture\n styles={this.styles.image}\n picturesource={props.imgsrc} />)}\n <Text style={this.styles.content}>{props.title}</Text>\n </View>\n <View style={this.styles.rightSection}>\n {props.searchbutton && (<WmIcon\n styles={this.theme.mergeStyle({}, this.styles.action, this.styles.leftnavIcon)}\n iconclass={props.searchbuttoniconclass}\n onTap={this.onSearchBtnPress}\n />)}\n {props.children}\n </View>\n </View>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,OAAOC,MAAM,MAAM,gEAAgE;AACnF,OAAOC,SAAS,MAAM,sEAAsE;AAE5F,OAAOC,gBAAgB,MAAM,mBAAmB;AAChD,SAASC,aAAa,QAA2B,o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AACoC,QACH,CACF,CAAC;EAEX;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmAppNavbarProps"],"sources":["appnavbar.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmAppNavbarProps extends BaseProps {\n children?: any;\n title: string = '';\n backbutton = true;\n backbuttonlabel = '';\n showDrawerButton = false;\n leftnavpaneliconclass = 'wm-sl-l sl-hamburger-menu';\n backbuttoniconclass = 'wi wi-back';\n imgsrc = null as any;\n searchbutton = false;\n searchbuttoniconclass = 'wm-sl-l sl-search'\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,gBAAgB,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA;IAAA,+BAEpC,EAAE;IAAA,oCACL,IAAI;IAAA,yCACC,EAAE;IAAA,0CACD,KAAK;IAAA,+CACA,2BAA2B;IAAA,6CAC7B,YAAY;IAAA,gCACzB,IAAI;IAAA,sCACE,KAAK;IAAA,+CACI,mBAAmB;EAAA;AAC/C"}
1
+ {"version":3,"names":["BaseProps","WmAppNavbarProps","constructor","arguments","_defineProperty"],"sources":["appnavbar.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmAppNavbarProps extends BaseProps {\n children?: any;\n title: string = '';\n backbutton = true;\n backbuttonlabel = '';\n showDrawerButton = false;\n leftnavpaneliconclass = 'wm-sl-l sl-hamburger-menu';\n backbuttoniconclass = 'wi wi-back';\n imgsrc = null as any;\n searchbutton = false;\n searchbuttoniconclass = 'wm-sl-l sl-search'\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,gBAAgB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA,gBAEpC,EAAE;IAAAA,eAAA,qBACL,IAAI;IAAAA,eAAA,0BACC,EAAE;IAAAA,eAAA,2BACD,KAAK;IAAAA,eAAA,gCACA,2BAA2B;IAAAA,eAAA,8BAC7B,YAAY;IAAAA,eAAA,iBACzB,IAAI;IAAAA,eAAA,uBACE,KAAK;IAAAA,eAAA,gCACI,mBAAmB;EAAA;AAC/C"}
@@ -1 +1 @@
1
- {"version":3,"names":["Color","BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","backgroundColor","navbarBackgroundColor","height","padding","paddingHorizontal","alignItems","text","action","leftSection","flex","leftnavIcon","icon","fontSize","navbarIconSize","color","navbarTextColor","backIcon","navbarFontSize","image","width","navbarImageSize","picture","resizeMode","content","textTransform","fontFamily","baseFont","fontWeight","textAlign","middleSection","rightSection","justifyContent","paddingRight","textDecorationStyle","undefined","badge","fade","rgb","toString","transparent","alignSelf","link"],"sources":["appnavbar.styles.ts"],"sourcesContent":["import Color from 'color';\nimport BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { ViewStyle } from 'react-native';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport { WmMenuStyles } from '@wavemaker/app-rn-runtime/components/navigation/menu/menu.styles';\nimport { WmAnchorStyles } from '@wavemaker/app-rn-runtime/components/basic/anchor/anchor.styles';\nimport { WmPopoverStyles } from '@wavemaker/app-rn-runtime/components/navigation/popover/popover.styles';\nimport { WmPictureStyles } from '@wavemaker/app-rn-runtime/components/basic/picture/picture.styles';\n\nexport type WmAppNavbarStyles = BaseStyles & {\n action: WmIconStyles,\n image: WmPictureStyles,\n leftnavIcon: WmIconStyles,\n backIcon: WmIconStyles,\n leftSection: ViewStyle,\n middleSection: ViewStyle,\n rightSection: ViewStyle,\n content: ViewStyle\n};\n\nexport const DEFAULT_CLASS = 'app-appnavbar';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmAppNavbarStyles = defineStyles({\n root: {\n flexDirection: 'row',\n backgroundColor: themeVariables.navbarBackgroundColor,\n height: 80,\n padding: 12,\n paddingHorizontal: 12,\n alignItems: 'center'\n },\n text: {},\n action: {} as WmIconStyles,\n leftSection: {\n flex: 1,\n flexDirection: 'row'\n },\n leftnavIcon: {\n root: {\n alignItems: 'flex-start'\n },\n icon: {\n fontSize: themeVariables.navbarIconSize,\n color: themeVariables.navbarTextColor\n }\n } as WmIconStyles,\n backIcon: {\n root: {},\n text: {\n fontSize: themeVariables.navbarFontSize,\n color: themeVariables.navbarTextColor\n },\n icon: {\n fontSize: themeVariables.navbarIconSize,\n color: themeVariables.navbarTextColor\n }\n } as WmIconStyles,\n image: {\n root: {\n width: themeVariables.navbarImageSize,\n height: themeVariables.navbarImageSize,\n },\n picture: {\n resizeMode: 'contain'\n }\n } as WmPictureStyles,\n content: {\n textTransform: 'capitalize',\n color: themeVariables.navbarTextColor,\n fontSize: themeVariables.navbarFontSize,\n fontFamily: themeVariables.baseFont,\n fontWeight: '500',\n textAlign: 'center'\n },\n middleSection: {\n alignItems: 'center',\n flexDirection: 'row'\n },\n rightSection: {\n flex: 1,\n flexDirection: 'row',\n justifyContent: 'flex-end'\n },\n } as WmAppNavbarStyles);\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle('navbarAnchorItem', '', {\n root: {\n paddingRight: 8,\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center'\n },\n text: {\n color: themeVariables.navbarTextColor,\n fontSize: themeVariables.navbarFontSize,\n textDecorationStyle: undefined\n },\n badge: {\n backgroundColor: Color(themeVariables.navbarTextColor).fade(0.8).rgb().toString(),\n color: themeVariables.navbarTextColor,\n },\n icon: {\n text: {\n color: themeVariables.navbarTextColor,\n fontSize: themeVariables.navbarIconSize\n },\n icon : {\n color: themeVariables.navbarTextColor\n }\n }\n } as WmAnchorStyles);\n addStyle('navbarButton', '', {\n root: {\n backgroundColor: themeVariables.transparent,\n paddingRight: 8,\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center',\n alignSelf: 'center'\n },\n text: {\n color: themeVariables.navbarTextColor,\n fontSize: themeVariables.navbarFontSize\n },\n icon: {\n root: {\n color: themeVariables.navbarTextColor\n },\n text: {\n color: themeVariables.navbarTextColor,\n fontSize: themeVariables.navbarIconSize\n }\n }\n } as WmAnchorStyles);\n addStyle('navbarMenu', '', {\n root: {\n paddingRight: 8,\n height: '100%',\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center'\n },\n link: {\n icon: {\n root: {\n fontSize: themeVariables.navbarIconSize,\n color: themeVariables.navbarTextColor\n }\n },\n text: {\n color: themeVariables.navbarTextColor,\n fontSize: themeVariables.navbarFontSize\n }\n }\n } as WmMenuStyles);\n addStyle('navbarPopover', '', {\n root: {\n height: '100%',\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center'\n },\n link: {\n icon: {\n root: {\n fontSize: themeVariables.navbarIconSize,\n color: themeVariables.navbarTextColor\n }\n },\n text: {\n color: themeVariables.navbarTextColor,\n fontSize: themeVariables.navbarFontSize\n }\n }\n } as WmPopoverStyles);\n});"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAmBxF,OAAO,MAAMC,aAAa,GAAG,eAAe;AAC5CF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAAgC,GAAGL,YAAY,CAAC;IACpDM,IAAI,EAAE;MACJC,aAAa,EAAE,KAAK;MACpBC,eAAe,EAAEL,cAAc,CAACM,qBAAqB;MACrDC,MAAM,EAAE,EAAE;MACVC,OAAO,EAAE,EAAE;MACXC,iBAAiB,EAAE,EAAE;MACrBC,UAAU,EAAE;IACd,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,MAAM,EAAE,CAAC,CAAiB;IAC1BC,WAAW,EAAE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AAY,EAAE,EAAE,EAAE;IACzBE,IAAI,EAAE;MACJkC,YAAY,EAAE,CAAC;MACf9B,MAAM,EAAE,MAAM;MACdH,aAAa,EAAE,KAAK;MACpBgC,cAAc,EAAE,QAAQ;MACxB1B,UAAU,EAAE;IACd,CAAC;IACDoC,IAAI,EAAE;MACJ9B,IAAI,EAAE;QACJb,IAAI,EAAE;UACJc,QAAQ,EAAEjB,cAAc,CAACkB,cAAc;UACvCC,KAAK,EAAEnB,cAAc,CAACoB;QACxB;MACF,CAAC;MACDT,IAAI,EAAE;QACJQ,KAAK,EAAEnB,cAAc,CAACoB,eAAe;QACrCH,QAAQ,EAAEjB,cAAc,CAACsB;MAC3B;IACF;EACF,CAAC,CAAiB;EAClBrB,QAAQ,CAAC,eAAe,EAAE,EAAE,EAAE;IAC5BE,IAAI,EAAE;MACJI,MAAM,EAAE,MAAM;MACdH,aAAa,EAAE,KAAK;MACpBgC,cAAc,EAAE,QAAQ;MACxB1B,UAAU,EAAE;IACd,CAAC;IACDoC,IAAI,EAAE;MACJ9B,IAAI,EAAE;QACJb,IAAI,EAAE;UACJc,QAAQ,EAAEjB,cAAc,CAACkB,cAAc;UACvCC,KAAK,EAAEnB,cAAc,CAACoB;QACxB;MACF,CAAC;MACDT,IAAI,EAAE;QACJQ,KAAK,EAAEnB,cAAc,CAACoB,eAAe;QACrCH,QAAQ,EAAEjB,cAAc,CAACsB;MAC3B;IACF;EACF,CAAC,CAAoB;AACvB,CAAC,CAAC"}
1
+ {"version":3,"names":["Color","BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","backgroundColor","navbarBackgroundColor","height","padding","paddingHorizontal","alignItems","text","action","leftSection","flex","leftnavIcon","icon","fontSize","navbarIconSize","color","navbarTextColor","backIcon","navbarFontSize","image","width","navbarImageSize","picture","resizeMode","content","textTransform","fontFamily","baseFont","fontWeight","textAlign","middleSection","rightSection","justifyContent","paddingRight","textDecorationStyle","undefined","badge","fade","rgb","toString","transparent","alignSelf","link"],"sources":["appnavbar.styles.ts"],"sourcesContent":["import Color from 'color';\nimport BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { ViewStyle } from 'react-native';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport { WmMenuStyles } from '@wavemaker/app-rn-runtime/components/navigation/menu/menu.styles';\nimport { WmAnchorStyles } from '@wavemaker/app-rn-runtime/components/basic/anchor/anchor.styles';\nimport { WmPopoverStyles } from '@wavemaker/app-rn-runtime/components/navigation/popover/popover.styles';\nimport { WmPictureStyles } from '@wavemaker/app-rn-runtime/components/basic/picture/picture.styles';\n\nexport type WmAppNavbarStyles = BaseStyles & {\n action: WmIconStyles,\n image: WmPictureStyles,\n leftnavIcon: WmIconStyles,\n backIcon: WmIconStyles,\n leftSection: ViewStyle,\n middleSection: ViewStyle,\n rightSection: ViewStyle,\n content: ViewStyle\n};\n\nexport const DEFAULT_CLASS = 'app-appnavbar';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmAppNavbarStyles = defineStyles({\n root: {\n flexDirection: 'row',\n backgroundColor: themeVariables.navbarBackgroundColor,\n height: 80,\n padding: 12,\n paddingHorizontal: 12,\n alignItems: 'center'\n },\n text: {},\n action: {} as WmIconStyles,\n leftSection: {\n flex: 1,\n flexDirection: 'row'\n },\n leftnavIcon: {\n root: {\n alignItems: 'flex-start'\n },\n icon: {\n fontSize: themeVariables.navbarIconSize,\n color: themeVariables.navbarTextColor\n }\n } as WmIconStyles,\n backIcon: {\n root: {},\n text: {\n fontSize: themeVariables.navbarFontSize,\n color: themeVariables.navbarTextColor\n },\n icon: {\n fontSize: themeVariables.navbarIconSize,\n color: themeVariables.navbarTextColor\n }\n } as WmIconStyles,\n image: {\n root: {\n width: themeVariables.navbarImageSize,\n height: themeVariables.navbarImageSize,\n },\n picture: {\n resizeMode: 'contain'\n }\n } as WmPictureStyles,\n content: {\n textTransform: 'capitalize',\n color: themeVariables.navbarTextColor,\n fontSize: themeVariables.navbarFontSize,\n fontFamily: themeVariables.baseFont,\n fontWeight: '500',\n textAlign: 'center'\n },\n middleSection: {\n alignItems: 'center',\n flexDirection: 'row'\n },\n rightSection: {\n flex: 1,\n flexDirection: 'row',\n justifyContent: 'flex-end'\n },\n } as WmAppNavbarStyles);\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle('navbarAnchorItem', '', {\n root: {\n paddingRight: 8,\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center'\n },\n text: {\n color: themeVariables.navbarTextColor,\n fontSize: themeVariables.navbarFontSize,\n textDecorationStyle: undefined\n },\n badge: {\n backgroundColor: Color(themeVariables.navbarTextColor).fade(0.8).rgb().toString(),\n color: themeVariables.navbarTextColor,\n },\n icon: {\n text: {\n color: themeVariables.navbarTextColor,\n fontSize: themeVariables.navbarIconSize\n },\n icon : {\n color: themeVariables.navbarTextColor\n }\n }\n } as WmAnchorStyles);\n addStyle('navbarButton', '', {\n root: {\n backgroundColor: themeVariables.transparent,\n paddingRight: 8,\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center',\n alignSelf: 'center'\n },\n text: {\n color: themeVariables.navbarTextColor,\n fontSize: themeVariables.navbarFontSize\n },\n icon: {\n root: {\n color: themeVariables.navbarTextColor\n },\n text: {\n color: themeVariables.navbarTextColor,\n fontSize: themeVariables.navbarIconSize\n }\n }\n } as WmAnchorStyles);\n addStyle('navbarMenu', '', {\n root: {\n paddingRight: 8,\n height: '100%',\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center'\n },\n link: {\n icon: {\n root: {\n fontSize: themeVariables.navbarIconSize,\n color: themeVariables.navbarTextColor\n }\n },\n text: {\n color: themeVariables.navbarTextColor,\n fontSize: themeVariables.navbarFontSize\n }\n }\n } as WmMenuStyles);\n addStyle('navbarPopover', '', {\n root: {\n height: '100%',\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center'\n },\n link: {\n icon: {\n root: {\n fontSize: themeVariables.navbarIconSize,\n color: themeVariables.navbarTextColor\n }\n },\n text: {\n color: themeVariables.navbarTextColor,\n fontSize: themeVariables.navbarFontSize\n }\n }\n } as WmPopoverStyles);\n});"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAmBxF,OAAO,MAAMC,aAAa,GAAG,eAAe;AAC5CF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAAgC,GAAGL,YAAY,CAAC;IACpDM,IAAI,EAAE;MACJC,aAAa,EAAE,KAAK;MACpBC,eAAe,EAAEL,cAAc,CAACM,qBAAqB;MACrDC,MAAM,EAAE,EAAE;MACVC,OAAO,EAAE,EAAE;MACXC,iBAAiB,EAAE,EAAE;MACrBC,UAAU,EAAE;IACd,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,MAAM,EAAE,CAAC,CAAiB;IAC1BC,WAAW,EAAE;MACXC,IAAI,EAAE,CAAC;MACPV,aAAa,EAAE;IACjB,CAAC;IACDW,WAAW,EAAE;MACXZ,IAAI,EAAE;QACFO,UAAU,EAAE;MAChB,CAAC;MACDM,IAAI,EAAE;QACFC,QAAQ,EAAEjB,cAAc,CAACkB,cAAc;QACvCC,KAAK,EAAEnB,cAAc,CAACoB;MAC1B;IACF,CAAiB;IACjBC,QAAQ,EAAE;MACRlB,IAAI,EAAE,CAAC,CAAC;MACRQ,IAAI,EAAE;QACJM,QAAQ,EAAEjB,cAAc,CAACsB,cAAc;QACvCH,KAAK,EAAEnB,cAAc,CAACoB;MACxB,CAAC;MACDJ,IAAI,EAAE;QACFC,QAAQ,EAAEjB,cAAc,CAACkB,cAAc;QACvCC,KAAK,EAAEnB,cAAc,CAACoB;MAC1B;IACF,CAAiB;I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AC5BE,IAAI,EAAE;MACJI,MAAM,EAAE,MAAM;MACdH,aAAa,EAAE,KAAK;MACpBgC,cAAc,EAAE,QAAQ;MACxB1B,UAAU,EAAE;IACd,CAAC;IACDoC,IAAI,EAAE;MACJ9B,IAAI,EAAE;QACJb,IAAI,EAAE;UACJc,QAAQ,EAAEjB,cAAc,CAACkB,cAAc;UACvCC,KAAK,EAAEnB,cAAc,CAACoB;QACxB;MACF,CAAC;MACDT,IAAI,EAAE;QACJQ,KAAK,EAAEnB,cAAc,CAACoB,eAAe;QACrCH,QAAQ,EAAEjB,cAAc,CAACsB;MAC3B;IACF;EACF,CAAoB,CAAC;AACvB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseComponent","BaseComponentState","DEFAULT_CLASS","isArray","BaseNavState","BaseNavComponent","constructor","props","defaultClass","defaultProps","defaultState","getValue","item","val","setDataItems","dataset","state","name","dataItems","split","map","s","i","key","label","icon","d","itemlabel","itemicon","link","itemlink","badge","itembadge","isactive","childnavigation","itemchildren","updateState","onPropertyChange","$new","$old"],"sources":["basenav.component.ts"],"sourcesContent":["import { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { BaseNavProps } from './basenav.props';\nimport { DEFAULT_CLASS, BaseNavStyles } from './basenav.styles';\nimport { isArray } from 'lodash-es';\n\nexport interface NavigationDataItem {\n key: string;\n label: string;\n icon?: string;\n link?: string;\n badge?: string;\n isactive?: string;\n childnavigation?: any;\n}\n\nexport class BaseNavState <T extends BaseNavProps> extends BaseComponentState<T> {\n dataItems = [] as NavigationDataItem[];\n}\n\nexport abstract class BaseNavComponent< T extends BaseNavProps, S extends BaseNavState<T>, L extends BaseNavStyles> extends BaseComponent<T, S, L> {\n\n constructor(props: T, public defaultClass: string = DEFAULT_CLASS, defaultProps?: T, defaultState?: S) {\n super(props, defaultClass, defaultProps, defaultState);\n }\n\n getValue(item: any, val?: string | ((item: any) => string)) {\n if (typeof val === 'string') {\n return item[val];\n } else if (typeof val === 'function') {\n return val(item);\n }\n return null;\n }\n\n setDataItems(dataset: any = this.state.props.dataset) {\n const name = this.props.name;\n let dataItems = [] as NavigationDataItem[];\n if (typeof dataset === 'string') {\n dataItems = dataset.split(',').map((s, i) => {\n return {\n key: `${name}_item${i}`,\n label: s,\n icon: 'wi wi-' + s\n } as NavigationDataItem;\n });\n } else if (dataset) {\n if (!isArray(dataset)) {\n dataset = [dataset];\n }\n dataItems = (dataset as any[]).map((d, i) => {\n return {\n key: `${name}_item${i}`,\n label: this.getValue(d, this.state.props.itemlabel),\n icon: this.getValue(d, this.state.props.itemicon),\n link: this.getValue(d, this.state.props.itemlink),\n badge: this.getValue(d, this.state.props.itembadge),\n isactive: this.getValue(d, this.state.props.isactive),\n childnavigation: this.state.props.itemchildren ? d[this.state.props.itemchildren] : null\n } as NavigationDataItem;\n });\n }\n this.updateState({dataItems: dataItems} as S);\n }\n\n onPropertyChange(name: string, $new: any, $old: any) {\n switch (name) {\n case 'dataset':\n this.setDataItems($new);\n break;\n case 'itemlabel':\n case 'itemicon':\n case 'itemlink':\n case 'itemchildren':\n this.setDataItems();\n break;\n }\n }\n}\n"],"mappings":";;;AAAA,SAASA,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,SAASC,aAAa,QAAuB,kBAAkB;AAC/D,SAASC,OAAO,QAAQ,WAAW;AAYnC,OAAO,MAAMC,YAAY,SAAkCH,kBAAkB,CAAI;EAAA;IAAA;IAAA,mCACnE,EAAE;EAAA;AAChB;AAEA,OAAO,MAAeI,gBAAgB,SAAsFL,aAAa,CAAU;EAEjJM,WAAW,CAACC,KAAQ,EAAmF;IAAA,IAA1EC,YAAoB,uEAAGN,aAAa;IAAA,IAAEO,YAAgB;IAAA,IAAEC,YAAgB;IACnG,KAAK,CAACH,KAAK,EAAEC,YAAY,EAAEC,YAAY,EAAEC,YAAY,CAAC;IAAC,KAD5BF,YAAoB,GAApBA,YAAoB;EAEjD;EAEAG,QAAQ,CAACC,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QAAQ,CAACe,CAAC,EAAE,IAAI,CAACV,KAAK,CAACT,KAAK,CAACuB,QAAQ,CAAC;UACjDC,KAAK,EAAE,IAAI,CAACpB,QAAQ,CAACe,CAAC,EAAE,IAAI,CAACV,KAAK,CAACT,KAAK,CAACyB,SAAS,CAAC;UACnDC,QAAQ,EAAE,IAAI,CAACtB,QAAQ,CAACe,CAAC,EAAE,IAAI,CAACV,KAAK,CAACT,KAAK,CAAC0B,QAAQ,CAAC;UACrDC,eAAe,EAAE,IAAI,CAAClB,KAAK,CAACT,KAAK,CAAC4B,YAAY,GAAGT,CAAC,CAAC,IAAI,CAACV,KAAK,CAACT,KAAK,CAAC4B,YAAY,CAAC,GAAG;QACtF,CAAC;MACH,CAAC,CAAC;IACJ;IACA,IAAI,CAACC,WAAW,CAAC;MAAClB,SAAS,EAAEA;IAAS,CAAC,CAAM;EAC/C;EAEAmB,gBAAgB,CAACpB,IAAY,EAAEqB,IAAS,EAAEC,IAAS,EAAE;IACnD,QAAQtB,IAAI;MACV,KAAK,SAAS;QACZ,IAAI,CAACH,YAAY,CAACwB,IAAI,CAAC;QACvB;MACF,KAAK,WAAW;MAChB,KAAK,UAAU;MACf,KAAK,UAAU;MACf,KAAK,cAAc;QACjB,IAAI,CAACxB,YAAY,EAAE;QACnB;IAAM;EAEZ;AACF"}
1
+ {"version":3,"names":["BaseComponent","BaseComponentState","DEFAULT_CLASS","isArray","BaseNavState","constructor","arguments","_defineProperty","BaseNavComponent","props","defaultClass","length","undefined","defaultProps","defaultState","getValue","item","val","setDataItems","dataset","state","name","dataItems","split","map","s","i","key","label","icon","d","itemlabel","itemicon","link","itemlink","badge","itembadge","isactive","childnavigation","itemchildren","updateState","onPropertyChange","$new","$old"],"sources":["basenav.component.ts"],"sourcesContent":["import { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { BaseNavProps } from './basenav.props';\nimport { DEFAULT_CLASS, BaseNavStyles } from './basenav.styles';\nimport { isArray } from 'lodash-es';\n\nexport interface NavigationDataItem {\n key: string;\n label: string;\n icon?: string;\n link?: string;\n badge?: string;\n isactive?: string;\n childnavigation?: any;\n}\n\nexport class BaseNavState <T extends BaseNavProps> extends BaseComponentState<T> {\n dataItems = [] as NavigationDataItem[];\n}\n\nexport abstract class BaseNavComponent< T extends BaseNavProps, S extends BaseNavState<T>, L extends BaseNavStyles> extends BaseComponent<T, S, L> {\n\n constructor(props: T, public defaultClass: string = DEFAULT_CLASS, defaultProps?: T, defaultState?: S) {\n super(props, defaultClass, defaultProps, defaultState);\n }\n\n getValue(item: any, val?: string | ((item: any) => string)) {\n if (typeof val === 'string') {\n return item[val];\n } else if (typeof val === 'function') {\n return val(item);\n }\n return null;\n }\n\n setDataItems(dataset: any = this.state.props.dataset) {\n const name = this.props.name;\n let dataItems = [] as NavigationDataItem[];\n if (typeof dataset === 'string') {\n dataItems = dataset.split(',').map((s, i) => {\n return {\n key: `${name}_item${i}`,\n label: s,\n icon: 'wi wi-' + s\n } as NavigationDataItem;\n });\n } else if (dataset) {\n if (!isArray(dataset)) {\n dataset = [dataset];\n }\n dataItems = (dataset as any[]).map((d, i) => {\n return {\n key: `${name}_item${i}`,\n label: this.getValue(d, this.state.props.itemlabel),\n icon: this.getValue(d, this.state.props.itemicon),\n link: this.getValue(d, this.state.props.itemlink),\n badge: this.getValue(d, this.state.props.itembadge),\n isactive: this.getValue(d, this.state.props.isactive),\n childnavigation: this.state.props.itemchildren ? d[this.state.props.itemchildren] : null\n } as NavigationDataItem;\n });\n }\n this.updateState({dataItems: dataItems} as S);\n }\n\n onPropertyChange(name: string, $new: any, $old: any) {\n switch (name) {\n case 'dataset':\n this.setDataItems($new);\n break;\n case 'itemlabel':\n case 'itemicon':\n case 'itemlink':\n case 'itemchildren':\n this.setDataItems();\n break;\n }\n }\n}\n"],"mappings":";;;AAAA,SAASA,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,SAASC,aAAa,QAAuB,kBAAkB;AAC/D,SAASC,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mB,gBAAgBA,CAACpB,IAAY,EAAEqB,IAAS,EAAEC,IAAS,EAAE;IACnD,QAAQtB,IAAI;MACV,KAAK,SAAS;QACZ,IAAI,CAACH,YAAY,CAACwB,IAAI,CAAC;QACvB;MACF,KAAK,WAAW;MAChB,KAAK,UAAU;MACf,KAAK,UAAU;MACf,KAAK,cAAc;QACjB,IAAI,CAACxB,YAAY,CAAC,CAAC;QACnB;IACJ;EACF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","BaseNavProps","label"],"sources":["basenav.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport class BaseNavProps extends BaseProps {\n dataset?: any = null as any;\n itemlabel?: string | ((item: any) => string) = 'label' as any;\n itemlink?: string | ((item: any) => string) = 'link' as any;\n itemicon?: string | ((item: any) => string) = 'icon' as any;\n itembadge?: string | ((item: any) => string) = null as any;\n isactive?: string | ((item: any) => string) = null as any;\n itemchildren?: string = null as any;\n getDisplayExpression? = (label: string) => null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,OAAO,MAAMC,YAAY,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,iCAC1B,IAAI;IAAA,mCAC2B,OAAO;IAAA,kCACR,MAAM;IAAA,kCACN,MAAM;IAAA,mCACL,IAAI;IAAA,kCACL,IAAI;IAAA,sCAC1B,IAAI;IAAA,8CACHE,KAAa,IAAK,IAAW;EAAA;AACxD"}
1
+ {"version":3,"names":["BaseProps","BaseNavProps","constructor","arguments","_defineProperty","label"],"sources":["basenav.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport class BaseNavProps extends BaseProps {\n dataset?: any = null as any;\n itemlabel?: string | ((item: any) => string) = 'label' as any;\n itemlink?: string | ((item: any) => string) = 'link' as any;\n itemicon?: string | ((item: any) => string) = 'icon' as any;\n itembadge?: string | ((item: any) => string) = null as any;\n isactive?: string | ((item: any) => string) = null as any;\n itemchildren?: string = null as any;\n getDisplayExpression? = (label: string) => null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,OAAO,MAAMC,YAAY,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,kBAC1B,IAAI;IAAAA,eAAA,oBAC2B,OAAO;IAAAA,eAAA,mBACR,MAAM;IAAAA,eAAA,mBACN,MAAM;IAAAA,eAAA,oBACL,IAAI;IAAAA,eAAA,mBACL,IAAI;IAAAA,eAAA,uBAC1B,IAAI;IAAAA,eAAA,+BACHC,KAAa,IAAK,IAAW;EAAA;AACxD"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","WmAnchor","BaseNavComponent","BaseNavState","WmPopover","WmMenuProps","DEFAULT_CLASS","WmMenuState","animationMap","slide","fade","scale","WmMenu","constructor","props","onComponentInit","c","popOverRef","renderMenuItem","item","getDisplayLabel","getDisplayExpression","label","icon","link","styles","menuItem","invokeEventCallback","hide","renderWidget","menuItems","state","dataItems","animateitems","caption","iconclass","listener","menu","height","width","map","key"],"sources":["menu.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\n\nimport WmAnchor from '@wavemaker/app-rn-runtime/components/basic/anchor/anchor.component';\nimport { LifecycleListener } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport { BaseNavComponent, BaseNavState, NavigationDataItem } from '../basenav/basenav.component';\nimport WmPopover from '../popover/popover.component';\nimport WmMenuProps from './menu.props';\nimport { DEFAULT_CLASS, WmMenuStyles } from './menu.styles';\n\nexport class WmMenuState <T extends WmMenuProps> extends BaseNavState<T> {}\n\nconst animationMap: any = {\n slide: 'slideInDown',\n fade: 'fadeIn',\n scale: 'zoomIn'\n};\n\nexport default class WmMenu extends BaseNavComponent<WmMenuProps, WmMenuState<WmMenuProps>, WmMenuStyles> {\n\n private popOverRef: WmPopover = null as any;\n\n private listener: LifecycleListener = {\n onComponentInit: (c) => {\n if (c instanceof WmPopover) {\n this.popOverRef = c;\n }\n }\n };\n\n constructor(props: WmMenuProps) {\n super(props, DEFAULT_CLASS, new WmMenuProps(), new WmMenuState());\n }\n\n renderMenuItem(item: NavigationDataItem) {\n const getDisplayLabel = this.props.getDisplayExpression || ((label: string) => label);\n return (\n <WmAnchor\n iconclass={item.icon as string}\n caption={getDisplayLabel(item.label)}\n hyperlink={item.link}\n styles={this.styles.menuItem}\n onTap={() => {\n this.invokeEventCallback('onSelect', [null, this, item]);\n this.popOverRef.hide();\n }}></WmAnchor>\n );\n }\n\n renderWidget(props: WmMenuProps) {\n const menuItems = this.state.dataItems;\n return (\n <WmPopover styles={this.styles}\n contentanimation={animationMap[props.animateitems || 'scale']}\n caption={props.caption}\n iconclass={props.iconclass}\n listener={this.listener}\n popoverheight={this.styles.menu.height || null}\n popoverwidth={this.styles.menu.width || null}\n iconposition=\"right\"\n type='dropdown'>\n <View style={this.styles.menu}>\n {menuItems.map(item => (\n <View key={item.key}>\n {this.renderMenuItem(item)}\n </View>\n ))}\n </View>\n </WmPopover>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AAEnC,OAAOC,QAAQ,MAAM,oEAAoE;AAGzF,SAASC,gBAAgB,EAAEC,YAAY,QAA4B,8BAA8B;AACjG,OAAOC,SAAS,MAAM,8BAA8B;AACpD,OAAOC,WAAW,MAAM,cAAc;AACtC,SAASC,aAAa,QAAsB,eAAe;AAE3D,OAAO,MAAMC,WAAW,SAAiCJ,YAAY,CAAI;AAEzE,MAAMK,YAAiB,GAAG;EACxBC,KAAK,EAAE,aAAa;EACpBC,IAAI,EAAE,QAAQ;EACdC,KAAK,EAAE;AACT,CAAC;AAED,eAAe,MAAMC,MAAM,SAASV,gBAAgB,CAAsD;EAYxGW,WAAW,CAACC,KAAkB,EAAE;IAC9B,KAAK,CAACA,KAAK,EAAER,aAAa,EAAE,IAAID,WAAW,E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AO;MACpB,IAAI,EAAC;IAAU,gBACb,oBAAC,IAAI;MAAC,KAAK,EAAE,IAAI,CAACd,MAAM,CAACY;IAAK,GAC3BP,SAAS,CAACU,GAAG,CAACrB,IAAI,iBACjB,oBAAC,IAAI;MAAC,GAAG,EAAEA,IAAI,CAACsB;IAAI,GACjB,IAAI,CAACvB,cAAc,CAACC,IAAI,CAAC,CAE7B,CAAC,CACG,CACC;EAEhB;AACF"}
1
+ {"version":3,"names":["React","View","WmAnchor","BaseNavComponent","BaseNavState","WmPopover","WmMenuProps","DEFAULT_CLASS","WmMenuState","animationMap","slide","fade","scale","WmMenu","constructor","props","_defineProperty","onComponentInit","c","popOverRef","renderMenuItem","item","getDisplayLabel","getDisplayExpression","label","createElement","iconclass","icon","caption","hyperlink","link","styles","menuItem","onTap","invokeEventCallback","hide","renderWidget","menuItems","state","dataItems","contentanimation","animateitems","listener","popoverheight","menu","height","popoverwidth","width","iconposition","type","style","map","key"],"sources":["menu.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\n\nimport WmAnchor from '@wavemaker/app-rn-runtime/components/basic/anchor/anchor.component';\nimport { LifecycleListener } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport { BaseNavComponent, BaseNavState, NavigationDataItem } from '../basenav/basenav.component';\nimport WmPopover from '../popover/popover.component';\nimport WmMenuProps from './menu.props';\nimport { DEFAULT_CLASS, WmMenuStyles } from './menu.styles';\n\nexport class WmMenuState <T extends WmMenuProps> extends BaseNavState<T> {}\n\nconst animationMap: any = {\n slide: 'slideInDown',\n fade: 'fadeIn',\n scale: 'zoomIn'\n};\n\nexport default class WmMenu extends BaseNavComponent<WmMenuProps, WmMenuState<WmMenuProps>, WmMenuStyles> {\n\n private popOverRef: WmPopover = null as any;\n\n private listener: LifecycleListener = {\n onComponentInit: (c) => {\n if (c instanceof WmPopover) {\n this.popOverRef = c;\n }\n }\n };\n\n constructor(props: WmMenuProps) {\n super(props, DEFAULT_CLASS, new WmMenuProps(), new WmMenuState());\n }\n\n renderMenuItem(item: NavigationDataItem) {\n const getDisplayLabel = this.props.getDisplayExpression || ((label: string) => label);\n return (\n <WmAnchor\n iconclass={item.icon as string}\n caption={getDisplayLabel(item.label)}\n hyperlink={item.link}\n styles={this.styles.menuItem}\n onTap={() => {\n this.invokeEventCallback('onSelect', [null, this, item]);\n this.popOverRef.hide();\n }}></WmAnchor>\n );\n }\n\n renderWidget(props: WmMenuProps) {\n const menuItems = this.state.dataItems;\n return (\n <WmPopover styles={this.styles}\n contentanimation={animationMap[props.animateitems || 'scale']}\n caption={props.caption}\n iconclass={props.iconclass}\n listener={this.listener}\n popoverheight={this.styles.menu.height || null}\n popoverwidth={this.styles.menu.width || null}\n iconposition=\"right\"\n type='dropdown'>\n <View style={this.styles.menu}>\n {menuItems.map(item => (\n <View key={item.key}>\n {this.renderMenuItem(item)}\n </View>\n ))}\n </View>\n </WmPopover>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AAEnC,OAAOC,QAAQ,MAAM,oEAAoE;AAGzF,SAASC,gBAAgB,EAAEC,YAAY,QAA4B,8BAA8B;AACjG,OAAOC,SAAS,MAAM,8BAA8B;AACpD,OAAOC,WAAW,MAAM,cAAc;AACtC,SAASC,aAAa,QAAsB,eAAe;AAE3D,OAAO,MAAMC,WAAW,SAAiCJ,YAAY,CAAI;AAEzE,MAAMK,YAAiB,GAAG;EACxBC,KAAK,EAAE,aAAa;EACpBC,IAAI,EAAE,QAAQ;EACdC,KAAK,EAAE;AACT,CAAC;AAED,eAAe,MAAMC,MAAM,SAASV,gBAAgB,CAAsD;EAYxGW,WAAWA,CAACC,KAAkB,EAAE;IAC9B,KAAK,CAACA,KAAK,EAAER,aAAa,EAAE,IAAID,WAAW,CAAC,CAAC,EAAE,IAAIE,WAAW,CAAC,CAAC,CAAC;IAACQ,eAAA,qBAXpC,IAAI;IAAAA,eAAA,mBAEE;MACpCC,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AAC,OAAO;MACpBC,IAAI,EAAC;IAAU,gBACbjD,KAAA,CAAAyB,aAAA,CAACxB,IAAI;MAACiD,KAAK,EAAE,IAAI,CAACnB,MAAM,CAACa;IAAK,GAC3BP,SAAS,CAACc,GAAG,CAAC9B,IAAI,iBACjBrB,KAAA,CAAAyB,aAAA,CAACxB,IAAI;MAACmD,GAAG,EAAE/B,IAAI,CAAC+B;IAAI,GACjB,IAAI,CAAChC,cAAc,CAACC,IAAI,CACrB,CACP,CACG,CACC,CAAC;EAEhB;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseNavProps","WmMenuProps"],"sources":["menu.props.ts"],"sourcesContent":["import { BaseNavProps } from '@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.props';\n\nexport default class WmMenuProps extends BaseNavProps {\n animateitems?: string = 'slide';\n caption?: string = '' as any;\n dataset: any = 'Menu Item 1, Menu Item 2, Menu Item 3';\n iconclass? = 'fa fa-caret-down';\n}\n"],"mappings":";;;AAAA,SAASA,YAAY,QAAQ,uEAAuE;AAEpG,eAAe,MAAMC,WAAW,SAASD,YAAY,CAAC;EAAA;IAAA;IAAA,sCAC5B,OAAO;IAAA,iCACZ,EAAE;IAAA,iCACN,uCAAuC;IAAA,mCACzC,kBAAkB;EAAA;AACjC"}
1
+ {"version":3,"names":["BaseNavProps","WmMenuProps","constructor","arguments","_defineProperty"],"sources":["menu.props.ts"],"sourcesContent":["import { BaseNavProps } from '@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.props';\n\nexport default class WmMenuProps extends BaseNavProps {\n animateitems?: string = 'slide';\n caption?: string = '' as any;\n dataset: any = 'Menu Item 1, Menu Item 2, Menu Item 3';\n iconclass? = 'fa fa-caret-down';\n}\n"],"mappings":";;;AAAA,SAASA,YAAY,QAAQ,uEAAuE;AAEpG,eAAe,MAAMC,WAAW,SAASD,YAAY,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,uBAC5B,OAAO;IAAAA,eAAA,kBACZ,EAAE;IAAAA,eAAA,kBACN,uCAAuC;IAAAA,eAAA,oBACzC,kBAAkB;EAAA;AACjC"}
@@ -1,5 +1,6 @@
1
1
  import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';
2
2
  import { DEFAULT_CLASS as POPOVER_CLASS } from '../popover/popover.styles';
3
+ import { Platform } from 'react-native';
3
4
  export const DEFAULT_CLASS = 'app-menu';
4
5
  BASE_THEME.registerStyle((themeVariables, addStyle) => {
5
6
  const defaultStyles = {
@@ -57,5 +58,10 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
57
58
  }
58
59
  };
59
60
  addStyle(DEFAULT_CLASS, POPOVER_CLASS, defaultStyles);
61
+ addStyle(DEFAULT_CLASS + '-rtl', '', Platform.OS == "web" ? {} : {
62
+ root: {
63
+ width: '100%'
64
+ }
65
+ });
60
66
  });
61
67
  //# sourceMappingURL=menu.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","DEFAULT_CLASS","POPOVER_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","alignSelf","text","link","icon","color","menuIconColor","textDecorationLine","paddingRight","fontWeight","menuTextColor","popover","backgroundColor","transparent","popoverContent","flex","undefined","menu","width","padding","menuBackgroundColor","borderRadius","menuItem","borderBottomWidth","borderStyle","borderBottomColor","menuItemBorderColor","fontSize","menuItemIconColor","menuItemTextColor"],"sources":["menu.styles.ts"],"sourcesContent":["import BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { WmAnchorStyles } from '../../basic/anchor/anchor.styles';\nimport { WmPopoverStyles, DEFAULT_CLASS as POPOVER_CLASS } from '../popover/popover.styles';\nimport { deepCopy } from '@wavemaker/app-rn-runtime/core/utils';\nimport { defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport type WmMenuStyles = WmPopoverStyles & {\n menu: AllStyle,\n menuItem: WmAnchorStyles\n};\n\nexport const DEFAULT_CLASS = 'app-menu';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmMenuStyles = {\n root : {\n alignSelf: 'flex-start'\n },\n text: {},\n link: {\n icon: {\n root: {\n color: themeVariables.menuIconColor\n }\n },\n text: {\n textDecorationLine: 'none',\n paddingRight: 12,\n fontWeight: 'bold',\n color: themeVariables.menuTextColor\n }\n } as WmAnchorStyles,\n popover: {\n backgroundColor: themeVariables.transparent\n },\n popoverContent: {\n //@ts-ignore\n flex: undefined\n },\n menu: {\n width: 160,\n padding: 12,\n backgroundColor: themeVariables.menuBackgroundColor,\n borderRadius: 6\n },\n menuItem: {\n root : {\n width: '100%',\n padding: 8,\n borderBottomWidth: 0,\n borderStyle: 'solid',\n borderBottomColor: themeVariables.menuItemBorderColor\n },\n icon :{\n root : {\n fontSize: 16,\n },\n icon : {\n color: themeVariables.menuItemIconColor\n }\n },\n text: {\n fontSize: 16,\n textDecorationLine: 'none',\n color: themeVariables.menuItemTextColor\n }\n } as WmAnchorStyles\n };\n\n addStyle(DEFAULT_CLASS, POPOVER_CLASS, defaultStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAE7E,SAA0BC,aAAa,IAAIC,aAAa,QAAQ,2BAA2B;AAS3F,OAAO,MAAMD,aAAa,GAAG,UAAU;AACvCD,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAA2B,GAAG;IAChCC,IAAI,EAAG;MACHC,SAAS,EAAE;IACf,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE;MACFC,IAAI,EAAE;QACFJ,IAAI,EAAE;UACFK,KAAK,EAAER,cAAc,CAACS;QAC1B;MACJ,CAAC;MACDJ,IAAI,EAAE;QACFK,kBAAkB,EAAE,MAAM;QAC1BC,YAAY,EAAE,EAAE;QAChBC,UAAU,EAAE,MAAM;QAClBJ,KAAK,EAAER,cAAc,CAACa;MAC1B;IACJ,CAAmB;IACnBC,OAAO,EAAE;MACLC,eAAe,EAAEf,cAAc,CAACgB;IACpC,CAAC;IACDC,cAAc,EAAE;MACZ;MACAC,IAAI,EAAEC;IACV,CAAC;IACDC,IAAI,EAAE;MACFC,KAAK,EAAE,GAAG;MACVC,OAAO,EAAE,EAAE;MACXP,eAAe,EAAEf,cAAc,CAACuB,mBAAmB;MACnDC,YAAY,EAAE;IAClB,CAAC;IACDC,QAAQ,EAAE;MACNtB,IAAI,EAAG;QACHkB,KAAK,EAAE,MAAM;QACbC,OAAO,EAAE,CAAC;QACVI,iBAAiB,EAAE,CAAC;QACpBC,WAAW,EAAE,OAAO;QACpBC,iBAAiB,EAAE5B,cAAc,CAAC6B;MACtC,CAAC;MACDtB,IAAI,EAAE;QACFJ,IAAI,EAAG;UACH2B,QAAQ,EAAE;QACd,CAAC;QACDvB,IAAI,EAAG;UACHC,KAAK,EAAER,cAAc,CAAC+B;QAC1B;MACJ,CAAC;MACD1B,IAAI,EAAE;QACFyB,QAAQ,EAAE,EAAE;QACZpB,kBAAkB,EAAE,MAAM;QAC1BF,KAAK,EAAER,cAAc,CAACgC;MAC1B;IACJ;EACJ,CAAC;EAED/B,QAAQ,CAACJ,aAAa,EAAEC,aAAa,EAAEI,aAAa,CAAC;AACzD,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","DEFAULT_CLASS","POPOVER_CLASS","Platform","registerStyle","themeVariables","addStyle","defaultStyles","root","alignSelf","text","link","icon","color","menuIconColor","textDecorationLine","paddingRight","fontWeight","menuTextColor","popover","backgroundColor","transparent","popoverContent","flex","undefined","menu","width","padding","menuBackgroundColor","borderRadius","menuItem","borderBottomWidth","borderStyle","borderBottomColor","menuItemBorderColor","fontSize","menuItemIconColor","menuItemTextColor","OS"],"sources":["menu.styles.ts"],"sourcesContent":["import BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { WmAnchorStyles } from '../../basic/anchor/anchor.styles';\nimport { WmPopoverStyles, DEFAULT_CLASS as POPOVER_CLASS } from '../popover/popover.styles';\nimport { deepCopy } from '@wavemaker/app-rn-runtime/core/utils';\nimport { defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { Platform } from 'react-native';\n\nexport type WmMenuStyles = WmPopoverStyles & {\n menu: AllStyle,\n menuItem: WmAnchorStyles\n};\n\nexport const DEFAULT_CLASS = 'app-menu';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmMenuStyles = {\n root : {\n alignSelf: 'flex-start'\n },\n text: {},\n link: {\n icon: {\n root: {\n color: themeVariables.menuIconColor\n }\n },\n text: {\n textDecorationLine: 'none',\n paddingRight: 12,\n fontWeight: 'bold',\n color: themeVariables.menuTextColor\n }\n } as WmAnchorStyles,\n popover: {\n backgroundColor: themeVariables.transparent\n },\n popoverContent: {\n //@ts-ignore\n flex: undefined\n },\n menu: {\n width: 160,\n padding: 12,\n backgroundColor: themeVariables.menuBackgroundColor,\n borderRadius: 6\n },\n menuItem: {\n root : {\n width: '100%',\n padding: 8,\n borderBottomWidth: 0,\n borderStyle: 'solid',\n borderBottomColor: themeVariables.menuItemBorderColor\n },\n icon :{\n root : {\n fontSize: 16,\n },\n icon : {\n color: themeVariables.menuItemIconColor\n }\n },\n text: {\n fontSize: 16,\n textDecorationLine: 'none',\n color: themeVariables.menuItemTextColor\n }\n } as WmAnchorStyles\n };\n\n addStyle(DEFAULT_CLASS, POPOVER_CLASS, defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', Platform.OS==\"web\"?{}:{\n root: {\n width: '100%'\n }\n });\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAE7E,SAA0BC,aAAa,IAAIC,aAAa,QAAQ,2BAA2B;AAG3F,SAASC,QAAQ,QAAQ,cAAc;AAOvC,OAAO,MAAMF,aAAa,GAAG,UAAU;AACvCD,UAAU,CAACI,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAA2B,GAAG;IAChCC,IAAI,E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MACFkB,KAAK,EAAE;IACX;EACJ,CAAC,CAAC;AACN,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","WmNavItem","BaseNavComponent","BaseNavState","WmNavbarProps","DEFAULT_CLASS","WmNavbarState","WmNavbar","constructor","props","computeItemStyles","activeItemStyles","theme","getStyle","itemStyles","indentStyle","indent","navAnchorItem","root","paddingLeft","ischildnav","mergeStyle","renderNavItem","item","styles","childNav","navitem","key","onSelect","isactive","getDisplayExpression","childnavigation","type","layout","itemlabel","itembadge","itemicon","itemchildren","itemlink","renderWidget","navItems","state","dataItems","childElements","children","styleName","nav","length","map"],"sources":["navbar.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\n\nimport WmNavItem from '@wavemaker/app-rn-runtime/components/navigation/navitem/navitem.component';\nimport { BaseNavComponent, NavigationDataItem, BaseNavState } from '@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.component';\nimport { BaseNavProps } from '@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.props';\n\nimport WmNavbarProps from './navbar.props';\nimport { DEFAULT_CLASS, WmNavbarStyles } from './navbar.styles';\n\nclass WmNavbarState<T extends BaseNavProps> extends BaseNavState<T> {}\n\nexport default class WmNavbar extends BaseNavComponent<WmNavbarProps, WmNavbarState<WmNavbarProps>, WmNavbarStyles> {\n constructor(props: WmNavbarProps) {\n super(props, DEFAULT_CLASS, new WmNavbarProps(), new WmNavbarState());\n }\n\n computeItemStyles(props: WmNavbarProps) {\n let activeItemStyles = this.theme.getStyle('app-navitem-active');\n let itemStyles = this.theme.getStyle('app-navitem');\n const indentStyle = props.indent ? {\n navAnchorItem: {\n root: {\n paddingLeft: props.indent\n }\n }\n } : null;\n if (props.ischildnav) {\n itemStyles = this.theme.mergeStyle({}, itemStyles, this.theme.getStyle('app-navitem-child'));\n }\n activeItemStyles = this.theme.mergeStyle({}, activeItemStyles, indentStyle);\n itemStyles = this.theme.mergeStyle({}, itemStyles, indentStyle);\n return {activeItemStyles, itemStyles};\n }\n\n renderNavItem(item: NavigationDataItem, props: WmNavbarProps) {\n const indent = this.styles.childNav.paddingLeft as number || 0;\n const {activeItemStyles, itemStyles} = this.computeItemStyles(props);\n return (\n <View style={this.styles.navitem} key={item.key} >\n <WmNavItem item={item}\n onSelect={props.onSelect}\n styles={item.isactive ? activeItemStyles: itemStyles}\n getDisplayExpression={this.props.getDisplayExpression} \n view={item.childnavigation ? 'dropdown' : 'anchor'}>\n {item.childnavigation && (\n <WmNavbar\n dataset={item.childnavigation}\n type={props.type}\n styles={this.styles}\n layout={props.layout}\n itemlabel={props.itemlabel}\n itembadge={props.itembadge}\n itemicon={props.itemicon}\n itemchildren={props.itemchildren}\n itemlink={props.itemlink}\n isactive={props.isactive}\n indent={props.indent || indent + indent}\n getDisplayExpression={this.props.getDisplayExpression} \n ischildnav={true}>\n </WmNavbar>)}\n </WmNavItem>\n </View>\n );\n }\n\n renderWidget(props: WmNavbarProps) {\n const navItems = this.state.dataItems;\n let childElements = props.children;\n const styleName = props.layout + 'Nav';\n\n return (\n <View style={[this.theme.getStyle(styleName), this.styles.nav]}>\n { navItems && navItems.length ? navItems.map(item => {\n return this.renderNavItem(item, props);\n }) : childElements\n }\n </View>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AAEnC,OAAOC,SAAS,MAAM,2EAA2E;AACjG,SAASC,gBAAgB,EAAsBC,YAAY,QAAQ,2EAA2E;AAG9I,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAE/D,MAAMC,aAAa,SAAiCH,YAAY,CAAI;AAEpE,eAAe,MAAMI,QAAQ,SAASL,gBAAgB,CAA8D;EAClHM,WAAW,CAACC,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAEJ,aAAa,EAAE,IAAID,aAAa,EAAE,EAAE,IAAIE,aAAa,EAAE,CAAC;EACvE;EAEAI,iB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CAACC,IAAI,EAAEd,KAAK,CAAC;IACxC,CAAC,CAAC,GAAGkC,aAAa,CAEjB;EAEX;AACF"}
1
+ {"version":3,"names":["React","View","WmNavItem","BaseNavComponent","BaseNavState","WmNavbarProps","DEFAULT_CLASS","WmNavbarState","WmNavbar","constructor","props","computeItemStyles","activeItemStyles","theme","getStyle","itemStyles","indentStyle","indent","navAnchorItem","root","paddingLeft","ischildnav","mergeStyle","renderNavItem","item","styles","childNav","createElement","style","navitem","key","onSelect","isactive","getDisplayExpression","view","childnavigation","dataset","type","layout","itemlabel","itembadge","itemicon","itemchildren","itemlink","renderWidget","navItems","state","dataItems","childElements","children","styleName","nav","length","map"],"sources":["navbar.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\n\nimport WmNavItem from '@wavemaker/app-rn-runtime/components/navigation/navitem/navitem.component';\nimport { BaseNavComponent, NavigationDataItem, BaseNavState } from '@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.component';\nimport { BaseNavProps } from '@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.props';\n\nimport WmNavbarProps from './navbar.props';\nimport { DEFAULT_CLASS, WmNavbarStyles } from './navbar.styles';\n\nclass WmNavbarState<T extends BaseNavProps> extends BaseNavState<T> {}\n\nexport default class WmNavbar extends BaseNavComponent<WmNavbarProps, WmNavbarState<WmNavbarProps>, WmNavbarStyles> {\n constructor(props: WmNavbarProps) {\n super(props, DEFAULT_CLASS, new WmNavbarProps(), new WmNavbarState());\n }\n\n computeItemStyles(props: WmNavbarProps) {\n let activeItemStyles = this.theme.getStyle('app-navitem-active');\n let itemStyles = this.theme.getStyle('app-navitem');\n const indentStyle = props.indent ? {\n navAnchorItem: {\n root: {\n paddingLeft: props.indent\n }\n }\n } : null;\n if (props.ischildnav) {\n itemStyles = this.theme.mergeStyle({}, itemStyles, this.theme.getStyle('app-navitem-child'));\n }\n activeItemStyles = this.theme.mergeStyle({}, activeItemStyles, indentStyle);\n itemStyles = this.theme.mergeStyle({}, itemStyles, indentStyle);\n return {activeItemStyles, itemStyles};\n }\n\n renderNavItem(item: NavigationDataItem, props: WmNavbarProps) {\n const indent = this.styles.childNav.paddingLeft as number || 0;\n const {activeItemStyles, itemStyles} = this.computeItemStyles(props);\n return (\n <View style={this.styles.navitem} key={item.key} >\n <WmNavItem item={item}\n onSelect={props.onSelect}\n styles={item.isactive ? activeItemStyles: itemStyles}\n getDisplayExpression={this.props.getDisplayExpression} \n view={item.childnavigation ? 'dropdown' : 'anchor'}>\n {item.childnavigation && (\n <WmNavbar\n dataset={item.childnavigation}\n type={props.type}\n styles={this.styles}\n layout={props.layout}\n itemlabel={props.itemlabel}\n itembadge={props.itembadge}\n itemicon={props.itemicon}\n itemchildren={props.itemchildren}\n itemlink={props.itemlink}\n isactive={props.isactive}\n indent={props.indent || indent + indent}\n getDisplayExpression={this.props.getDisplayExpression} \n ischildnav={true}>\n </WmNavbar>)}\n </WmNavItem>\n </View>\n );\n }\n\n renderWidget(props: WmNavbarProps) {\n const navItems = this.state.dataItems;\n let childElements = props.children;\n const styleName = props.layout + 'Nav';\n\n return (\n <View style={[this.theme.getStyle(styleName), this.styles.nav]}>\n { navItems && navItems.length ? navItems.map(item => {\n return this.renderNavItem(item, props);\n }) : childElements\n }\n </View>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AAEnC,OAAOC,SAAS,MAAM,2EAA2E;AACjG,SAASC,gBAAgB,EAAsBC,YAAY,QAAQ,2EAA2E;AAG9I,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAE/D,MAAMC,aAAa,SAAiCH,YAAY,CAAI;AAEpE,eAAe,MAAMI,QAAQ,SAASL,gBAAgB,CAA8D;EAClHM,WAAWA,CAACC,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAEJ,aAAa,EAAE,IAAID,aAAa,CAAC,CAAC,EAAE,IAAIE,aA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AAS,CAAC,EAAE,IAAI,CAACzB,MAAM,CAAC0B,GAAG;IAAE,GACzDN,QAAQ,IAAIA,QAAQ,CAACO,MAAM,GAAGP,QAAQ,CAACQ,GAAG,CAAC7B,IAAI,IAAI;MACjD,OAAO,IAAI,CAACD,aAAa,CAACC,IAAI,EAAEd,KAAK,CAAC;IACxC,CAAC,CAAC,GAAGsC,aAEL,CAAC;EAEX;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseNavProps","WmNavbarProps","$event","target","$item"],"sources":["navbar.props.ts"],"sourcesContent":["import { BaseNavProps } from '@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.props';\nimport { TapEvent } from \"@wavemaker/app-rn-runtime/core/tappable.component\";\nimport {\n NavigationDataItem\n} from \"@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.component\";\n\nexport default class WmNavbarProps extends BaseNavProps {\n type: string = 'pills';\n layout: string = '';\n children?: any = [] as any;\n indent = 0;\n onSelect? = ($event: TapEvent, target: any, $item: NavigationDataItem) => {}; ischildnav? = false;\n}\n"],"mappings":";;;AAAA,SAASA,YAAY,QAAQ,uEAAuE;AAMpG,eAAe,MAAMC,aAAa,SAASD,YAAY,CAAC;EAAA;IAAA;IAAA,8BACvC,OAAO;IAAA,gCACL,EAAE;IAAA,kCACF,EAAE;IAAA,gCACV,CAAC;IAAA,kCACE,CAACE,MAAgB,EAAEC,MAAW,EAAEC,KAAyB,KAAK,CAAC,CAAC;IAAA,oCAAiB,KAAK;EAAA;AACpG"}
1
+ {"version":3,"names":["BaseNavProps","WmNavbarProps","constructor","arguments","_defineProperty","$event","target","$item"],"sources":["navbar.props.ts"],"sourcesContent":["import { BaseNavProps } from '@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.props';\nimport { TapEvent } from \"@wavemaker/app-rn-runtime/core/tappable.component\";\nimport {\n NavigationDataItem\n} from \"@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.component\";\n\nexport default class WmNavbarProps extends BaseNavProps {\n type: string = 'pills';\n layout: string = '';\n children?: any = [] as any;\n indent = 0;\n onSelect? = ($event: TapEvent, target: any, $item: NavigationDataItem) => {}; ischildnav? = false;\n}\n"],"mappings":";;;AAAA,SAASA,YAAY,QAAQ,uEAAuE;AAMpG,eAAe,MAAMC,aAAa,SAASD,YAAY,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,eACvC,OAAO;IAAAA,eAAA,iBACL,EAAE;IAAAA,eAAA,mBACF,EAAE;IAAAA,eAAA,iBACV,CAAC;IAAAA,eAAA,mBACE,CAACC,MAAgB,EAAEC,MAAW,EAAEC,KAAyB,KAAK,CAAC,CAAC;IAAAH,eAAA,qBAAiB,KAAK;EAAA;AACpG"}
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","nav","flexDirection","navitem","childNav","textDecorationLine","paddingLeft","justifyContent","alignItems"],"sources":["navbar.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 { ViewStyle } from 'react-native';\n\nexport type WmNavbarStyles = BaseStyles & {\n nav: AllStyle,\n navitem: AllStyle,\n childNav: ViewStyle\n};\n\nexport const DEFAULT_CLASS = 'app-navbar';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmNavbarStyles = defineStyles({\n root: {},\n text: {},\n nav: {\n flexDirection: 'row'\n },\n navitem: {},\n childNav: {}\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle('stackedNav', '', {\n root: {},\n nav: {\n flexDirection: 'column'\n },\n text: {\n textDecorationLine: 'none'\n },\n navitem: {},\n childNav: {\n paddingLeft: 12\n }\n } as WmNavbarStyles);\n addStyle('childNav', '', {\n navitem: {}\n } as WmNavbarStyles);\n addStyle('justifiedNav', '', {\n root: {},\n nav: {\n justifyContent: 'space-around',\n flexDirection: 'row',\n alignItems: 'center',\n },\n navitem: {}\n } as WmNavbarStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AASxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACzCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA6B,GAAGL,YAAY,CAAC;IAC/CM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE,CAAC,CAAC;IACRC,GAAG,EAAE;MACHC,aAAa,EAAE;IACjB,CAAC;IACDC,OAAO,EAAE,CAAC,CAAC;IACXC,QAAQ,EAAE,CAAC;EACf,CAAC,CAAC;EAEFP,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAC1CD,QAAQ,CAAC,YAAY,EAAE,EAAE,EAAE;IACzBE,IAAI,EAAE,CAAC,CAAC;IACRE,GAAG,EAAE;MACHC,aAAa,EAAE;IACjB,CAAC;IACDF,IAAI,EAAE;MACJK,kBAAkB,EAAE;IACtB,CAAC;IACDF,OAAO,EAAE,CAAC,CAAC;IACXC,QAAQ,EAAG;MACTE,WAAW,EAAE;IACf;EACF,CAAC,CAAmB;EACpBT,QAAQ,CAAC,UAAU,EAAE,EAAE,EAAE;IACvBM,OAAO,EAAE,CAAC;EACZ,CAAC,CAAmB;EACpBN,QAAQ,CAAC,cAAc,EAAE,EAAE,EAAE;IAC3BE,IAAI,EAAE,CAAC,CAAC;IACRE,GAAG,EAAE;MACHM,cAAc,EAAE,cAAc;MAC9BL,aAAa,EAAE,KAAK;MACpBM,UAAU,EAAE;IACd,CAAC;IACDL,OAAO,EAAE,CAAC;EACZ,CAAC,CAAmB;AACtB,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","nav","flexDirection","navitem","childNav","textDecorationLine","paddingLeft","justifyContent","alignItems"],"sources":["navbar.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 { ViewStyle } from 'react-native';\n\nexport type WmNavbarStyles = BaseStyles & {\n nav: AllStyle,\n navitem: AllStyle,\n childNav: ViewStyle\n};\n\nexport const DEFAULT_CLASS = 'app-navbar';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmNavbarStyles = defineStyles({\n root: {},\n text: {},\n nav: {\n flexDirection: 'row'\n },\n navitem: {},\n childNav: {}\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle('stackedNav', '', {\n root: {},\n nav: {\n flexDirection: 'column'\n },\n text: {\n textDecorationLine: 'none'\n },\n navitem: {},\n childNav: {\n paddingLeft: 12\n }\n } as WmNavbarStyles);\n addStyle('childNav', '', {\n navitem: {}\n } as WmNavbarStyles);\n addStyle('justifiedNav', '', {\n root: {},\n nav: {\n justifyContent: 'space-around',\n flexDirection: 'row',\n alignItems: 'center',\n },\n navitem: {}\n } as WmNavbarStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AASxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACzCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA6B,GAAGL,YAAY,CAAC;IAC/CM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE,CAAC,CAAC;IACRC,GAAG,EAAE;MACHC,aAAa,EAAE;IACjB,CAAC;IACDC,OAAO,EAAE,CAAC,CAAC;IACXC,QAAQ,EAAE,CAAC;EACf,CAAC,CAAC;EAEFP,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAC1CD,QAAQ,CAAC,YAAY,EAAE,EAAE,EAAE;IACzBE,IAAI,EAAE,CAAC,CAAC;IACRE,GAAG,EAAE;MACHC,aAAa,EAAE;IACjB,CAAC;IACDF,IAAI,EAAE;MACJK,kBAAkB,EAAE;IACtB,CAAC;IACDF,OAAO,EAAE,CAAC,CAAC;IACXC,QAAQ,EAAG;MACTE,WAAW,EAAE;IACf;EACF,CAAmB,CAAC;EACpBT,QAAQ,CAAC,UAAU,EAAE,EAAE,EAAE;IACvBM,OAAO,EAAE,CAAC;EACZ,CAAmB,CAAC;EACpBN,QAAQ,CAAC,cAAc,EAAE,EAAE,EAAE;IAC3BE,IAAI,EAAE,CAAC,CAAC;IACRE,GAAG,EAAE;MACHM,cAAc,EAAE,cAAc;MAC9BL,aAAa,EAAE,KAAK;MACpBM,UAAU,EAAE;IACd,CAAC;IACDL,OAAO,EAAE,CAAC;EACZ,CAAmB,CAAC;AACtB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","TouchableOpacity","BaseComponent","BaseComponentState","WmAnchor","WmIcon","WmNavItemProps","DEFAULT_CLASS","WmNavItemState","WmNavItem","constructor","props","onSelectItem","cb","$item","$event","renderWidget","getDisplayLabel","getDisplayExpression","label","child","children","view","styles","navAnchorItem","item","link","badge","icon","bind","onSelect","updateState","collapsed","state","dropdownNav","caretIcon","root","_background"],"sources":["navitem.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { TouchableOpacity } from 'react-native-gesture-handler';\n\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport WmAnchor from '@wavemaker/app-rn-runtime/components/basic/anchor/anchor.component';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\n\nimport WmNavItemProps from './navitem.props';\nimport { DEFAULT_CLASS, WmNavItemStyles } from './navitem.styles';\nimport { NavigationDataItem } from \"@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.component\";\nimport { TapEvent } from \"@wavemaker/app-rn-runtime/core/tappable.component\";\n\nexport class WmNavItemState extends BaseComponentState<WmNavItemProps> {\n collapsed = true;\n}\n\nexport default class WmNavItem extends BaseComponent<WmNavItemProps, WmNavItemState, WmNavItemStyles> {\n\n constructor(props: WmNavItemProps) {\n super(props, DEFAULT_CLASS, new WmNavItemProps(), new WmNavItemState());\n }\n\n onSelectItem(cb: any, $item: NavigationDataItem, $event: TapEvent) {\n cb && cb($event, this, $item);\n }\n\n renderWidget(props: WmNavItemProps) {\n const getDisplayLabel = this.props.getDisplayExpression || ((label: string) => label);\n let child = props.children;\n if (props.view === 'anchor') {\n child = <WmAnchor styles={this.styles.navAnchorItem} caption={getDisplayLabel(props.item.label)} hyperlink={props.item.link}\n badgevalue={props.item.badge} iconclass={props.item.icon} onTap={this.onSelectItem.bind(this, props.onSelect, props.item)}></WmAnchor>\n }\n if (props.view === 'dropdown') {\n child = (\n <>\n <TouchableOpacity onPress={() => {\n this.updateState({collapsed: !this.state.collapsed} as WmNavItemState);\n }}>\n <View style={this.styles.dropdownNav}>\n <WmAnchor styles={this.styles.navAnchorItem} caption={getDisplayLabel(props.item.label)} iconclass={props.item.icon} onTap={this.onSelectItem.bind(this, props.onSelect, props.item)}></WmAnchor>\n <WmIcon styles={this.styles.caretIcon} iconclass={this.state.collapsed ? 'fa fa-sort-down' : 'fa fa-sort-up'}></WmIcon>\n </View>\n </TouchableOpacity>\n {!this.state.collapsed && props.children}\n </>\n );\n }\n return (\n <View style={this.styles.root}>{this._background}{child}</View>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,gBAAgB,QAAQ,8BAA8B;AAE/D,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,OAAOC,QAAQ,MAAM,oEAAoE;AACzF,OAAOC,MAAM,MAAM,gEAAgE;AAEnF,OAAOC,cAAc,MAAM,iBAAiB;AAC5C,SAASC,aAA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AAS,EAAE,CAAC,IAAI,CAACC,KAAK,CAACD;UAAS,CAAC,CAAmB;QACxE;MAAE,gBACA,oBAAC,IAAI;QAAC,KAAK,EAAE,IAAI,CAACT,MAAM,CAACW;MAAY,gBACnC,oBAAC,QAAQ;QAAC,MAAM,EAAE,IAAI,CAACX,MAAM,CAACC,aAAc;QAAC,OAAO,EAAEP,eAAe,CAACN,KAAK,CAACc,IAAI,CAACN,KAAK,CAAE;QAAC,SAAS,EAAER,KAAK,CAACc,IAAI,CAACG,IAAK;QAAC,KAAK,EAAE,IAAI,CAAChB,YAAY,CAACiB,IAAI,CAAC,IAAI,EAAElB,KAAK,CAACmB,QAAQ,EAAEnB,KAAK,CAACc,IAAI;MAAE,EAAY,eACjM,oBAAC,MAAM;QAAC,MAAM,EAAE,IAAI,CAACF,MAAM,CAACY,SAAU;QAAC,SAAS,EAAE,IAAI,CAACF,KAAK,CAACD,SAAS,GAAG,iBAAiB,GAAG;MAAgB,EAAU,CAClH,CACU,EAClB,CAAC,IAAI,CAACC,KAAK,CAACD,SAAS,IAAIrB,KAAK,CAACU,QAAQ,CAEzC;IACH;IACA,oBACE,oBAAC,IAAI;MAAC,KAAK,EAAE,IAAI,CAACE,MAAM,CAACa;IAAK,GAAE,IAAI,CAACC,WAAW,EAAEjB,KAAK,CAAQ;EAEnE;AACF"}
1
+ {"version":3,"names":["React","View","TouchableOpacity","BaseComponent","BaseComponentState","WmAnchor","WmIcon","WmNavItemProps","DEFAULT_CLASS","WmNavItemState","constructor","arguments","_defineProperty","WmNavItem","props","onSelectItem","cb","$item","$event","renderWidget","getDisplayLabel","getDisplayExpression","label","child","children","view","createElement","styles","navAnchorItem","caption","item","hyperlink","link","badgevalue","badge","iconclass","icon","onTap","bind","onSelect","Fragment","onPress","updateState","collapsed","state","style","dropdownNav","caretIcon","root","_background"],"sources":["navitem.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { TouchableOpacity } from 'react-native-gesture-handler';\n\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport WmAnchor from '@wavemaker/app-rn-runtime/components/basic/anchor/anchor.component';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\n\nimport WmNavItemProps from './navitem.props';\nimport { DEFAULT_CLASS, WmNavItemStyles } from './navitem.styles';\nimport { NavigationDataItem } from \"@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.component\";\nimport { TapEvent } from \"@wavemaker/app-rn-runtime/core/tappable.component\";\n\nexport class WmNavItemState extends BaseComponentState<WmNavItemProps> {\n collapsed = true;\n}\n\nexport default class WmNavItem extends BaseComponent<WmNavItemProps, WmNavItemState, WmNavItemStyles> {\n\n constructor(props: WmNavItemProps) {\n super(props, DEFAULT_CLASS, new WmNavItemProps(), new WmNavItemState());\n }\n\n onSelectItem(cb: any, $item: NavigationDataItem, $event: TapEvent) {\n cb && cb($event, this, $item);\n }\n\n renderWidget(props: WmNavItemProps) {\n const getDisplayLabel = this.props.getDisplayExpression || ((label: string) => label);\n let child = props.children;\n if (props.view === 'anchor') {\n child = <WmAnchor styles={this.styles.navAnchorItem} caption={getDisplayLabel(props.item.label)} hyperlink={props.item.link}\n badgevalue={props.item.badge} iconclass={props.item.icon} onTap={this.onSelectItem.bind(this, props.onSelect, props.item)}></WmAnchor>\n }\n if (props.view === 'dropdown') {\n child = (\n <>\n <TouchableOpacity onPress={() => {\n this.updateState({collapsed: !this.state.collapsed} as WmNavItemState);\n }}>\n <View style={this.styles.dropdownNav}>\n <WmAnchor styles={this.styles.navAnchorItem} caption={getDisplayLabel(props.item.label)} iconclass={props.item.icon} onTap={this.onSelectItem.bind(this, props.onSelect, props.item)}></WmAnchor>\n <WmIcon styles={this.styles.caretIcon} iconclass={this.state.collapsed ? 'fa fa-sort-down' : 'fa fa-sort-up'}></WmIcon>\n </View>\n </TouchableOpacity>\n {!this.state.collapsed && props.children}\n </>\n );\n }\n return (\n <View style={this.styles.root}>{this._background}{child}</View>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C9B,CACH;IACH;IACA,oBACExB,KAAA,CAAA0B,aAAA,CAACzB,IAAI;MAAC4C,KAAK,EAAE,IAAI,CAAClB,MAAM,CAACqB;IAAK,GAAE,IAAI,CAACC,WAAW,EAAE1B,KAAY,CAAC;EAEnE;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmNavItemProps","$event","target","$item","label"],"sources":["navitem.props.ts"],"sourcesContent":["import {BaseComponent, BaseProps} from '@wavemaker/app-rn-runtime/core/base.component';\nimport {NavigationDataItem} from \"@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.component\";\nimport {TapEvent} from \"@wavemaker/app-rn-runtime/core/tappable.component\";\n\nexport default class WmNavItemProps extends BaseProps {\n children?: any;\n caption?: string;\n item: any = [];\n view: 'default' | 'dropdown' | 'anchor' = 'default';\n onSelect? = ($event: TapEvent, target: any, $item: NavigationDataItem) => {};\n getDisplayExpression? = (label: string) => null as any;\n}\n"],"mappings":";;;AAAA,SAAuBA,SAAS,QAAO,+CAA+C;AAItF,eAAe,MAAMC,cAAc,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA;IAAA;IAAA,8BAGxC,EAAE;IAAA,8BAC4B,SAAS;IAAA,kCACvC,CAACE,MAAgB,EAAEC,MAAW,EAAEC,KAAyB,KAAK,CAAC,CAAC;IAAA,8CACnDC,KAAa,IAAK,IAAW;EAAA;AACxD"}
1
+ {"version":3,"names":["BaseProps","WmNavItemProps","constructor","arguments","_defineProperty","$event","target","$item","label"],"sources":["navitem.props.ts"],"sourcesContent":["import {BaseComponent, BaseProps} from '@wavemaker/app-rn-runtime/core/base.component';\nimport {NavigationDataItem} from \"@wavemaker/app-rn-runtime/components/navigation/basenav/basenav.component\";\nimport {TapEvent} from \"@wavemaker/app-rn-runtime/core/tappable.component\";\n\nexport default class WmNavItemProps extends BaseProps {\n children?: any;\n caption?: string;\n item: any = [];\n view: 'default' | 'dropdown' | 'anchor' = 'default';\n onSelect? = ($event: TapEvent, target: any, $item: NavigationDataItem) => {};\n getDisplayExpression? = (label: string) => null as any;\n}\n"],"mappings":";;;AAAA,SAAuBA,SAAS,QAAO,+CAA+C;AAItF,eAAe,MAAMC,cAAc,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA,eAGxC,EAAE;IAAAA,eAAA,eAC4B,SAAS;IAAAA,eAAA,mBACvC,CAACC,MAAgB,EAAEC,MAAW,EAAEC,KAAyB,KAAK,CAAC,CAAC;IAAAH,eAAA,+BACnDI,KAAa,IAAK,IAAW;EAAA;AACxD"}
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","borderWidth","borderBottomWidth","borderStyle","borderColor","navbarBorderColor","text","dropdownNav","flex","flexDirection","justifyContent","alignItems","navAnchorItem","padding","color","navitemChildTextColor","textDecorationLine","icon","navitemChildIconColor","caretIcon","paddingRight","navbarCaretColor","backgroundColor","navitemActiveBackgroundColor","navitemActiveTextColor","navitemActiveIconColor","navitemChildBackgroundColor"],"sources":["navitem.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmAnchorStyles } from '@wavemaker/app-rn-runtime/components/basic/anchor/anchor.styles';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport { ViewStyle } from 'react-native';\n\nexport type WmNavItemStyles = BaseStyles & {\n navAnchorItem: WmAnchorStyles,\n dropdownNav: ViewStyle,\n caretIcon: WmIconStyles\n};\n\nexport const DEFAULT_CLASS = 'app-navitem';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmNavItemStyles = defineStyles({\n root: {\n borderWidth: 0,\n borderBottomWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.navbarBorderColor\n },\n text: {},\n dropdownNav: {\n flex: 1,\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center'\n },\n navAnchorItem: {\n root: {\n padding: 12\n },\n text: {\n color: themeVariables.navitemChildTextColor,\n textDecorationLine: 'underline'\n },\n icon: {\n text: {\n color: themeVariables.navitemChildIconColor\n }\n }\n } as WmAnchorStyles,\n caretIcon: {\n root : {\n paddingRight: 12\n },\n text: {\n color: themeVariables.navbarCaretColor\n }\n } as WmIconStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-active', DEFAULT_CLASS, {\n root : {\n backgroundColor: themeVariables.navitemActiveBackgroundColor\n },\n navAnchorItem: {\n text: {\n color: themeVariables.navitemActiveTextColor\n },\n icon: {\n text: {\n color: themeVariables.navitemActiveIconColor\n }\n }\n }\n } as WmNavItemStyles);\n\n addStyle(DEFAULT_CLASS + '-child', DEFAULT_CLASS, {\n root : {\n backgroundColor: themeVariables.navitemChildBackgroundColor\n },\n navAnchorItem: {\n text: {\n color: themeVariables.navitemChildTextColor,\n textDecorationLine: 'underline'\n },\n icon: {\n text: {\n color: themeVariables.navitemChildIconColor\n }\n }\n }\n } as WmNavItemStyles);\n addStyle('navAnchorItem', '', defaultStyles.navAnchorItem);\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAWxF,OAAO,MAAMC,aAAa,GAAG,aAAa;AAC1CF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA8B,GAAGL,YAAY,CAAC;IAChDM,IAAI,EAAE;MACJC,WAAW,EAAE,CAAC;MACdC,iBAAiB,EAAE,CAAC;MACpBC,WAAW,EAAE,OAAO;MACpBC,WAAW,EAAEP,cAAc,CAACQ;IAC9B,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,WAAW,EAAE;MACXC,IAAI,EAAE,CAAC;MACPC,aA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AE,EAAE,EAAGC,aAAa,CAACa,aAAa,CAAC;AAC7D,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","borderWidth","borderBottomWidth","borderStyle","borderColor","navbarBorderColor","text","dropdownNav","flex","flexDirection","justifyContent","alignItems","navAnchorItem","padding","color","navitemChildTextColor","textDecorationLine","icon","navitemChildIconColor","caretIcon","paddingRight","navbarCaretColor","backgroundColor","navitemActiveBackgroundColor","navitemActiveTextColor","navitemActiveIconColor","navitemChildBackgroundColor"],"sources":["navitem.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmAnchorStyles } from '@wavemaker/app-rn-runtime/components/basic/anchor/anchor.styles';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport { ViewStyle } from 'react-native';\n\nexport type WmNavItemStyles = BaseStyles & {\n navAnchorItem: WmAnchorStyles,\n dropdownNav: ViewStyle,\n caretIcon: WmIconStyles\n};\n\nexport const DEFAULT_CLASS = 'app-navitem';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmNavItemStyles = defineStyles({\n root: {\n borderWidth: 0,\n borderBottomWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.navbarBorderColor\n },\n text: {},\n dropdownNav: {\n flex: 1,\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center'\n },\n navAnchorItem: {\n root: {\n padding: 12\n },\n text: {\n color: themeVariables.navitemChildTextColor,\n textDecorationLine: 'underline'\n },\n icon: {\n text: {\n color: themeVariables.navitemChildIconColor\n }\n }\n } as WmAnchorStyles,\n caretIcon: {\n root : {\n paddingRight: 12\n },\n text: {\n color: themeVariables.navbarCaretColor\n }\n } as WmIconStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-active', DEFAULT_CLASS, {\n root : {\n backgroundColor: themeVariables.navitemActiveBackgroundColor\n },\n navAnchorItem: {\n text: {\n color: themeVariables.navitemActiveTextColor\n },\n icon: {\n text: {\n color: themeVariables.navitemActiveIconColor\n }\n }\n }\n } as WmNavItemStyles);\n\n addStyle(DEFAULT_CLASS + '-child', DEFAULT_CLASS, {\n root : {\n backgroundColor: themeVariables.navitemChildBackgroundColor\n },\n navAnchorItem: {\n text: {\n color: themeVariables.navitemChildTextColor,\n textDecorationLine: 'underline'\n },\n icon: {\n text: {\n color: themeVariables.navitemChildIconColor\n }\n }\n }\n } as WmNavItemStyles);\n addStyle('navAnchorItem', '', defaultStyles.navAnchorItem);\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAWxF,OAAO,MAAMC,aAAa,GAAG,aAAa;AAC1CF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA8B,GAAGL,YAAY,CAAC;IAChDM,IAAI,EAAE;MACJC,WAAW,EAAE,CAAC;MACdC,iBAAiB,EAAE,CAAC;MACpBC,WAAW,EAAE,OAAO;MACpBC,WAAW,EAAEP,cAAc,CAACQ;IAC9B,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,WAAW,EAAE;MACXC,IAAI,EAAE,CAAC;MACPC,aAAa,EAAE,KAAK;MACpBC,cAAc,EAAE,eAAe;MAC/BC,UAAU,EAAE;IACd,CAAC;IACDC,aAAa,EAAE;MACbZ,IAAI,EAAE;QACJa,OAAO,EAAE;MACX,CAAC;MACDP,IAAI,EAAE;QACJQ,KAAK,EAAEjB,cAAc,CAACkB,qBAAqB;QAC3CC,kBAAkB,EAAE;MACtB,CAAC;MACDC,IAAI,EAAE;QACJX,IAAI,EAAE;UACJQ,KAAK,EAAEjB,cAAc,CAACqB;QACxB;MACF;IACF,CAAmB;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