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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. app-rn-runtime/actions/login-action.js +4 -0
  2. app-rn-runtime/actions/login-action.js.map +1 -1
  3. app-rn-runtime/actions/logout-action.js +4 -0
  4. app-rn-runtime/actions/logout-action.js.map +1 -1
  5. app-rn-runtime/actions/notification-action.js.map +1 -1
  6. app-rn-runtime/components/advanced/carousel/carousel.component.js +123 -32
  7. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  8. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  9. app-rn-runtime/components/advanced/carousel/carousel.styles.js +7 -3
  10. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  11. app-rn-runtime/components/advanced/login/login.component.js +3 -2
  12. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  13. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js +17 -16
  14. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  15. app-rn-runtime/components/advanced/webview/webview.component.js +28 -11
  16. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  17. app-rn-runtime/components/advanced/webview/webview.props.js +0 -1
  18. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  19. app-rn-runtime/components/basic/anchor/anchor.component.js +7 -5
  20. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  21. app-rn-runtime/components/basic/animatedview.component.js +50 -0
  22. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  23. app-rn-runtime/components/basic/audio/audio.component.js +5 -0
  24. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -1
  25. app-rn-runtime/components/basic/button/button.component.js +20 -7
  26. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  27. app-rn-runtime/components/basic/button/button.styles.js +15 -5
  28. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  29. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js +11 -5
  30. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  31. app-rn-runtime/components/basic/icon/icon.component.js +9 -6
  32. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  33. app-rn-runtime/components/basic/icon/icon.props.js +1 -0
  34. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  35. app-rn-runtime/components/basic/icon/icon.styles.js +2 -1
  36. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  37. app-rn-runtime/components/basic/label/label.component.js +79 -11
  38. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  39. app-rn-runtime/components/basic/label/label.props.js +1 -0
  40. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  41. app-rn-runtime/components/basic/label/label.styles.js +5 -0
  42. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  43. app-rn-runtime/components/basic/message/message.component.js +6 -3
  44. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  45. app-rn-runtime/components/basic/picture/picture.component.js +7 -5
  46. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  47. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +4 -3
  48. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  49. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js +1 -1
  50. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  51. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +3 -2
  52. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  53. app-rn-runtime/components/basic/search/search.component.js +9 -5
  54. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  55. app-rn-runtime/components/basic/search/search.styles.js +11 -10
  56. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  57. app-rn-runtime/components/basic/spinner/spinner.component.js +6 -2
  58. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  59. app-rn-runtime/components/basic/spinner/spinner.styles.js +3 -2
  60. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  61. app-rn-runtime/components/basic/video/video.component.js +2 -1
  62. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  63. app-rn-runtime/components/chart/area-chart/area-chart.component.js +42 -14
  64. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  65. app-rn-runtime/components/chart/area-chart/area-chart.props.js +10 -1
  66. app-rn-runtime/components/chart/area-chart/area-chart.props.js.map +1 -1
  67. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js +42 -4
  68. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  69. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js +1 -2
  70. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  71. app-rn-runtime/components/chart/basechart.component.js +140 -39
  72. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  73. app-rn-runtime/components/chart/basechart.props.js +18 -4
  74. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  75. app-rn-runtime/components/chart/basechart.styles.js +44 -2
  76. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  77. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js +25 -3
  78. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  79. app-rn-runtime/components/chart/bubble-chart/bubble-chart.props.js +9 -1
  80. app-rn-runtime/components/chart/bubble-chart/bubble-chart.props.js.map +1 -1
  81. app-rn-runtime/components/chart/line-chart/line-chart.component.js +28 -6
  82. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  83. app-rn-runtime/components/chart/line-chart/line-chart.props.js +1 -0
  84. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  85. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +25 -3
  86. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  87. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js +1 -0
  88. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  89. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js +81 -19
  90. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js.map +1 -1
  91. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js +2 -0
  92. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js.map +1 -1
  93. app-rn-runtime/components/container/accordion/accordion.component.js +16 -13
  94. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  95. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +3 -22
  96. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  97. app-rn-runtime/components/container/container.component.js +14 -4
  98. app-rn-runtime/components/container/container.component.js.map +1 -1
  99. app-rn-runtime/components/container/container.props.js +1 -0
  100. app-rn-runtime/components/container/container.props.js.map +1 -1
  101. app-rn-runtime/components/container/panel/collapsible-pane.component.js +26 -0
  102. app-rn-runtime/components/container/panel/collapsible-pane.component.js.map +1 -0
  103. app-rn-runtime/components/container/panel/panel.component.js +43 -61
  104. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  105. app-rn-runtime/components/container/panel/panel.styles.js +9 -2
  106. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  107. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +29 -15
  108. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  109. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +15 -10
  110. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  111. app-rn-runtime/components/container/tabs/tabs.component.js +18 -10
  112. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  113. app-rn-runtime/components/container/tabs/tabs.styles.js +1 -0
  114. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  115. app-rn-runtime/components/container/tile/tile.component.js +3 -2
  116. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  117. app-rn-runtime/components/container/wizard/wizard.component.js +137 -20
  118. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  119. app-rn-runtime/components/container/wizard/wizard.props.js +4 -0
  120. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  121. app-rn-runtime/components/container/wizard/wizard.styles.js +114 -5
  122. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  123. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +22 -3
  124. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  125. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js +4 -0
  126. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  127. app-rn-runtime/components/data/card/card.component.js +3 -2
  128. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  129. app-rn-runtime/components/data/form/form-action/form-action.component.js +1 -0
  130. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  131. app-rn-runtime/components/data/form/form-field/form-field.component.js +9 -7
  132. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  133. app-rn-runtime/components/data/form/form.component.js +12 -6
  134. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  135. app-rn-runtime/components/data/list/list-template/list-template.styles.js +5 -1
  136. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  137. app-rn-runtime/components/data/list/list.component.js +65 -8
  138. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  139. app-rn-runtime/components/data/list/list.props.js +1 -0
  140. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  141. app-rn-runtime/components/data/list/list.styles.js +12 -5
  142. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  143. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +1 -0
  144. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  145. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js +2 -1
  146. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js.map +1 -1
  147. app-rn-runtime/components/device/camera/camera.component.js +1 -0
  148. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  149. app-rn-runtime/components/device/camera/camera.styles.js +2 -1
  150. app-rn-runtime/components/device/camera/camera.styles.js.map +1 -1
  151. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js +4 -1
  152. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  153. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js +9 -3
  154. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -1
  155. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js +6 -2
  156. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  157. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js +10 -10
  158. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  159. app-rn-runtime/components/dialogs/dialog/dialog.component.js +2 -0
  160. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  161. app-rn-runtime/components/dialogs/dialog/dialog.styles.js +25 -8
  162. app-rn-runtime/components/dialogs/dialog/dialog.styles.js.map +1 -1
  163. app-rn-runtime/components/input/baseinput/baseinput.component.js +6 -2
  164. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  165. app-rn-runtime/components/input/basenumber/basenumber.component.js +45 -6
  166. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  167. app-rn-runtime/components/input/basenumber/basenumber.props.js +1 -0
  168. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  169. app-rn-runtime/components/input/calendar/calendar.component.js +4 -0
  170. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  171. app-rn-runtime/components/input/calendar/calendar.styles.js +22 -11
  172. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  173. app-rn-runtime/components/input/calendar/views/month-view.js +4 -0
  174. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  175. app-rn-runtime/components/input/checkbox/checkbox.component.js +6 -6
  176. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  177. app-rn-runtime/components/input/checkboxset/checkboxset.component.js +14 -7
  178. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  179. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js +2 -1
  180. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +1 -1
  181. app-rn-runtime/components/input/chips/chips.component.js +15 -4
  182. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  183. app-rn-runtime/components/input/chips/chips.styles.js +20 -12
  184. app-rn-runtime/components/input/chips/chips.styles.js.map +1 -1
  185. app-rn-runtime/components/input/composite/composite.component.js +1 -1
  186. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  187. app-rn-runtime/components/input/composite/composite.props.js +1 -1
  188. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  189. app-rn-runtime/components/input/currency/currency.component.js +21 -3
  190. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  191. app-rn-runtime/components/input/currency/currency.props.js +1 -0
  192. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  193. app-rn-runtime/components/input/currency/currency.styles.js +31 -5
  194. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  195. app-rn-runtime/components/input/epoch/base-datetime.component.js +32 -9
  196. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  197. app-rn-runtime/components/input/epoch/date/date.component.js +8 -0
  198. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  199. app-rn-runtime/components/input/epoch/date/date.styles.js +16 -0
  200. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  201. app-rn-runtime/components/input/epoch/datetime/datetime.component.js +8 -0
  202. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  203. app-rn-runtime/components/input/epoch/datetime/datetime.props.js +1 -0
  204. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  205. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +21 -1
  206. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  207. app-rn-runtime/components/input/epoch/time/time.component.js +8 -0
  208. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  209. app-rn-runtime/components/input/epoch/time/time.styles.js +16 -0
  210. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  211. app-rn-runtime/components/input/fileupload/fileupload.component.js +1 -0
  212. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  213. app-rn-runtime/components/input/number/number.component.js +16 -2
  214. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  215. app-rn-runtime/components/input/number/number.props.js +1 -0
  216. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  217. app-rn-runtime/components/input/number/number.styles.js +23 -2
  218. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  219. app-rn-runtime/components/input/radioset/radioset.component.js +7 -4
  220. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  221. app-rn-runtime/components/input/radioset/radioset.styles.js +2 -1
  222. app-rn-runtime/components/input/radioset/radioset.styles.js.map +1 -1
  223. app-rn-runtime/components/input/rating/rating.component.js +2 -0
  224. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  225. app-rn-runtime/components/input/select/select.component.js +17 -13
  226. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  227. app-rn-runtime/components/input/select/select.styles.js +6 -3
  228. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  229. app-rn-runtime/components/input/slider/slider.component.js +99 -23
  230. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  231. app-rn-runtime/components/input/slider/slider.styles.js +30 -3
  232. app-rn-runtime/components/input/slider/slider.styles.js.map +1 -1
  233. app-rn-runtime/components/input/switch/switch.component.js +11 -5
  234. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  235. app-rn-runtime/components/input/switch/switch.styles.js +13 -8
  236. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  237. app-rn-runtime/components/input/text/text.component.js +12 -1
  238. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  239. app-rn-runtime/components/input/text/text.props.js +1 -0
  240. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  241. app-rn-runtime/components/input/text/text.styles.js +22 -1
  242. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  243. app-rn-runtime/components/input/textarea/textarea.component.js +12 -1
  244. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  245. app-rn-runtime/components/input/textarea/textarea.props.js +1 -0
  246. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  247. app-rn-runtime/components/input/textarea/textarea.styles.js +17 -0
  248. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  249. app-rn-runtime/components/input/toggle/toggle.component.js +44 -5
  250. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  251. app-rn-runtime/components/input/toggle/toggle.styles.js +16 -11
  252. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  253. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +16 -3
  254. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  255. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js +1 -1
  256. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  257. app-rn-runtime/components/navigation/menu/menu.component.js +5 -3
  258. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  259. app-rn-runtime/components/navigation/menu/menu.styles.js +10 -6
  260. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  261. app-rn-runtime/components/navigation/navbar/navbar.component.js +7 -4
  262. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  263. app-rn-runtime/components/navigation/navitem/navitem.component.js +5 -2
  264. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  265. app-rn-runtime/components/navigation/navitem/navitem.styles.js +14 -10
  266. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  267. app-rn-runtime/components/navigation/popover/popover.component.js +7 -4
  268. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  269. app-rn-runtime/components/navigation/popover/popover.styles.js +8 -2
  270. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  271. app-rn-runtime/components/page/left-panel/left-panel.component.js +1 -1
  272. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  273. app-rn-runtime/components/page/left-panel/left-panel.styles.js +6 -1
  274. app-rn-runtime/components/page/left-panel/left-panel.styles.js.map +1 -1
  275. app-rn-runtime/components/page/page-content/page-content.component.js +11 -3
  276. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  277. app-rn-runtime/components/page/tabbar/curve.js +84 -0
  278. app-rn-runtime/components/page/tabbar/curve.js.map +1 -0
  279. app-rn-runtime/components/page/tabbar/tabbar.component.js +47 -12
  280. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  281. app-rn-runtime/components/page/tabbar/tabbar.props.js +1 -0
  282. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  283. app-rn-runtime/components/page/tabbar/tabbar.styles.js +54 -1
  284. app-rn-runtime/components/page/tabbar/tabbar.styles.js.map +1 -1
  285. app-rn-runtime/core/base.component.js +84 -37
  286. app-rn-runtime/core/base.component.js.map +1 -1
  287. app-rn-runtime/core/components/floatinglabel.component.js +45 -0
  288. app-rn-runtime/core/components/floatinglabel.component.js.map +1 -0
  289. app-rn-runtime/core/components/textinput.component.js +25 -2
  290. app-rn-runtime/core/components/textinput.component.js.map +1 -1
  291. app-rn-runtime/core/constant.service.js +22 -0
  292. app-rn-runtime/core/constant.service.js.map +1 -0
  293. app-rn-runtime/core/formatters.js +9 -2
  294. app-rn-runtime/core/formatters.js.map +1 -1
  295. app-rn-runtime/core/tappable.component.js +49 -12
  296. app-rn-runtime/core/tappable.component.js.map +1 -1
  297. app-rn-runtime/core/testid.provider.js +5 -0
  298. app-rn-runtime/core/testid.provider.js.map +1 -0
  299. app-rn-runtime/core/utils.js +16 -0
  300. app-rn-runtime/core/utils.js.map +1 -1
  301. app-rn-runtime/gestures/swipe.animation.js +56 -5
  302. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  303. app-rn-runtime/package.json +6 -3
  304. app-rn-runtime/runtime/App.js +51 -21
  305. app-rn-runtime/runtime/App.js.map +1 -1
  306. app-rn-runtime/runtime/base-fragment.component.js +27 -6
  307. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  308. app-rn-runtime/runtime/base-page.component.js +8 -2
  309. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  310. app-rn-runtime/runtime/services/app-i18n.service.js +7 -0
  311. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  312. app-rn-runtime/runtime/services/app-modal.service.js +1 -1
  313. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  314. app-rn-runtime/runtime/services/device/camera-service.js +26 -9
  315. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  316. app-rn-runtime/runtime/services/device/scan-service.js +16 -2
  317. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  318. app-rn-runtime/runtime/services/webprocess.service.js +0 -1
  319. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  320. app-rn-runtime/styles/theme.js +36 -0
  321. app-rn-runtime/styles/theme.js.map +1 -1
  322. app-rn-runtime/styles/theme.variables.js +24 -3
  323. app-rn-runtime/styles/theme.variables.js.map +1 -1
  324. app-rn-runtime/variables/model-variable.js +2 -1
  325. app-rn-runtime/variables/model-variable.js.map +1 -1
@@ -303,7 +303,8 @@ export default class WmSearch extends BaseDatasetComponent {
303
303
  // @ts-ignore
304
304
  ref.selectionStart = ref.selectionEnd = this.cursor;
305
305
  }
306
- },
306
+ }
307
+ }, this.getTestPropsForInput(), {
307
308
  placeholderTextColor: this.styles.placeholderText.color,
308
309
  placeholder: props.placeholder || 'Search',
309
310
  autoFocus: props.autofocus,
@@ -317,10 +318,12 @@ export default class WmSearch extends BaseDatasetComponent {
317
318
  onBlur: this.onBlur.bind(this)
318
319
  }, opts)), props.showclear && this.state.props.query ? /*#__PURE__*/React.createElement(WmButton, {
319
320
  onTap: this.clearSearch.bind(this),
321
+ id: this.getTestId('clear'),
320
322
  styles: this.styles.clearButton,
321
323
  iconclass: 'wi wi-clear'
322
324
  }) : null), props.showSearchIcon && props.type === 'search' ? /*#__PURE__*/React.createElement(WmButton, {
323
325
  styles: this.styles.searchButton,
326
+ id: this.getTestId('search'),
324
327
  iconclass: 'wm-sl-l sl-search',
325
328
  onTap: this.searchIconPress.bind(this)
326
329
  }) : null)
@@ -343,17 +346,18 @@ export default class WmSearch extends BaseDatasetComponent {
343
346
  width: props.imagewidth
344
347
  }
345
348
  };
346
- return /*#__PURE__*/React.createElement(Tappable, {
349
+ return /*#__PURE__*/React.createElement(Tappable, _extends({
347
350
  onTap: this.onItemSelect.bind(this, item)
348
- }, /*#__PURE__*/React.createElement(View, {
351
+ }, this.getTestProps(`action${index}`)), /*#__PURE__*/React.createElement(View, {
349
352
  style: this.styles.searchItem
350
353
  }, /*#__PURE__*/React.createElement(WmPicture, {
354
+ id: this.getTestId(`picture${index}`),
351
355
  styles: imageStyles,
352
356
  name: props.name + '_image',
353
357
  picturesource: item.imgSrc
354
- }), /*#__PURE__*/React.createElement(Text, {
358
+ }), /*#__PURE__*/React.createElement(Text, _extends({}, this.getTestPropsForLabel(index + ''), {
355
359
  style: this.styles.searchItemText
356
- }, item.displayexp || item.displayfield)));
360
+ }), item.displayexp || item.displayfield)));
357
361
  }
358
362
  updateDefaultQueryModel() {
359
363
  if (this.state.dataItems && this.state.dataItems.length && this.isDefaultQuery) {
@@ -1 +1 @@
1
- {"version":3,"names":["React","Keyboard","Platform","ScrollView","Text","TextInput","View","find","isNull","WmSearchProps","DEFAULT_CLASS","ModalConsumer","DataProvider","BaseDatasetComponent","BaseDatasetState","WmAnchor","WmPicture","Tappable","WmButton","get","isArray","isEmpty","isObject","AssetProvider","WmSearchState","constructor","arguments","_defineProperty","top","left","WmSearch","props","_this","this","Promise","resolve","position","view","measure","x","length","undefined","y","width","height","px","py","updateState","computePosition","then","isOpened","dataProvider","datavalue","query","clearSearch","invokeEventCallback","hide","dataItems","state","map","item","selected","type","updateFilteredData","_filteredData","queryText","filterOptions","entries","filteredData","minchars","_this$dataProvider","searchkey","updateRequired","init","invokeVariable","response","dataSet","setDataItems","filter","result","dataObject","data","isFocused","showPopover","focus","_this$widgetRef","widgetRef","onChange","value","isDefaultQuery","prevQuery","searchon","validate","invokeEvent","proxy","invokeChange","e","OS","cursor","target","selectionStart","onFocus","disabled","_this$state$props$que","onBlur","setTimeout","triggerValidation","prepareModalOptions","content","styles","modalService","o","modalOptions","modalContentSTyles","searchInputWidth","modalContent","borderWidth","modalStyle","modal","contentStyle","isModal","onClose","dismiss","setState","hideModal","searchIconPress","onItemSelect","displayexp","displayfield","datafield","updateDatavalue","prevDatavalue","queryModel","renderSearchBar","_this$state$dataItems","opts","valueExpr","createElement","style","root","ref","onLayout","searchInputWrapper","_extends","text","isValid","invalid","focusedText","selectionEnd","placeholderTextColor","placeholderText","color","placeholder","autoFocus","autofocus","editable","readonly","onChangeText","bind","nativeEvent","layout","showclear","onTap","clearButton","iconclass","showSearchIcon","searchButton","reset","renderSearchItem","index","imageStyles","imagewidth","searchItem","name","picturesource","imgSrc","searchItemText","updateDefaultQueryModel","selectedItem","onDataItemsUpdate","componentDidMount","onPropertyChange","$new","$old","dataset","renderWidget","showModal","maxHeight","contentContainerStyle","dropDownContent","loadAsset","key","limit","caption","datacompletemsg","dataCompleteItem"],"sources":["search.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Keyboard, Platform, ScrollView, Text, TextInput, View } from 'react-native';\nimport { find, isNull } from 'lodash';\n\nimport WmSearchProps from './search.props';\nimport { DEFAULT_CLASS, WmSearchStyles } from './search.styles';\nimport { ModalConsumer, ModalOptions, ModalService} from \"@wavemaker/app-rn-runtime/core/modal.service\";\nimport { DataProvider } from '@wavemaker/app-rn-runtime/components/basic/search/local-data-provider';\n\nimport {\n BaseDatasetComponent,\n BaseDatasetState\n} from '@wavemaker/app-rn-runtime/components/input/basedataset/basedataset.component';\nimport WmAnchor from '@wavemaker/app-rn-runtime/components/basic/anchor/anchor.component';\nimport WmPicture from '@wavemaker/app-rn-runtime/components/basic/picture/picture.component';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\nimport { get, isArray, isEmpty, isObject } from \"lodash-es\";\nimport { AssetProvider } from '@wavemaker/app-rn-runtime/core/asset.provider';\n\nexport class WmSearchState extends BaseDatasetState<WmSearchProps> {\n isOpened: boolean = false;\n modalOptions = {} as ModalOptions;\n position = {\n top: 0,\n left: 0\n } as DropdownPosition;\n data: any = [];\n}\n\nexport interface DropdownPosition {\n top?: number;\n bottom?: number;\n left?: number;\n right?: number;\n}\n\nexport default class WmSearch extends BaseDatasetComponent<WmSearchProps, WmSearchState, WmSearchStyles> {\n view: View = null as any;\n private prevDatavalue: any;\n private queryModel: any;\n private searchInputWidth: any;\n private isDefaultQuery: boolean = true;\n private dataProvider: DataProvider;\n public widgetRef: TextInput | null = null;\n private cursor: any = 0;\n private isFocused: boolean = false;\n private updateRequired: any;\n\n constructor(props: WmSearchProps) {\n super(props, DEFAULT_CLASS, new WmSearchProps(), new WmSearchState());\n this.dataProvider = new DataProvider();\n if (this.props.datavalue) {\n this.updateState({\n props: {\n query: this.props.datavalue\n }\n } as WmSearchState);\n }\n }\n\n computePosition = () => {\n return new Promise<void>((resolve) => {\n const position = {} as DropdownPosition;\n this.view.measure((x = 0, y = 0, width = 0, height = 0, px = 0, py = 0) => {\n position.left = px;\n position.top = py + height;\n this.updateState({ position: position } as WmSearchState, resolve);\n });\n });\n }\n\n clearSearch() {\n this.invokeEventCallback('onClear', [null, this]);\n this.hide();\n this.updateState({\n props: {\n query: ''\n },\n dataItems: this.state.dataItems ? this.state.dataItems.map((item: any) => {\n item.selected = false;\n return item;\n }) : []\n } as WmSearchState, () => {\n if (this.state.props.type === 'autocomplete') {\n this.updateFilteredData('');\n }\n });\n }\n\n updateFilteredData(queryText: string = '') {\n const props = this.state.props;\n const filterOptions = {\n query: queryText,\n props: props,\n entries: this.state.dataItems\n };\n let filteredData: Array<any> = [];\n if (props.minchars && queryText.length < props.minchars) {\n filteredData = [];\n } else if (props.type === 'search' && !queryText) {\n filteredData = [];\n } else {\n if (this.props.searchkey && this.updateRequired === undefined) {\n this.updateRequired = this.dataProvider.init(this);\n }\n // for service variables invoke the variable with params.\n if (this.props.searchkey && this.updateRequired && this.state.props.query !== queryText) {\n this.dataProvider.invokeVariable(this, queryText).then((response: any) => {\n if (response) {\n response = response.dataSet;\n if (isEmpty(response)) {\n filteredData = [];\n } else {\n if (isObject(response) && !isArray(response)) {\n response = [response];\n }\n this.setDataItems(response);\n }\n }\n }, () => {});\n return;\n }\n filteredData = this.dataProvider?.filter(filterOptions);\n }\n this.updateState({\n props: { result: filteredData?.map( (item: any) => item.dataObject), query: queryText },\n data: filteredData,\n } as WmSearchState);\n if (!this.state.isOpened && this.isFocused) {\n this.showPopover && this.showPopover();\n }\n }\n\n focus() {\n this?.widgetRef?.focus();\n }\n\n onChange(value: any) {\n this.isDefaultQuery = false;\n const prevQuery = this.state.props.query;\n if (this.state.props.searchon === 'onsearchiconclick') {\n this.updateState({\n props: {result: [], query: value},\n data: []\n } as WmSearchState);\n } else {\n this.updateFilteredData(value);\n }\n if (value === '') {\n this.validate(value);\n this.updateState({\n props: {\n datavalue: '',\n },\n } as WmSearchState);\n if (value === prevQuery) {\n return;\n }\n }\n if (this.props.invokeEvent) {\n this.props.invokeEvent('onChange', [undefined, this.proxy, value, prevQuery]);\n }\n this.invokeEventCallback('onChange', [ undefined, this.proxy, value, prevQuery ]);\n }\n\n invokeChange(e: any) {\n if (Platform.OS === 'web') {\n this.cursor = e.target.selectionStart;\n this.updateState({ props: { query: e.target.value } } as WmSearchState);\n }\n }\n\n onFocus() {\n this.isFocused = true;\n if (!this.state.props.disabled && this.state.props.type === 'autocomplete') {\n this.cursor = this.state.props.query?.length || 0;\n this.updateFilteredData(this.state.props.query || '');\n }\n this.invokeEventCallback('onFocus', [null, this]);\n }\n\n onBlur() {\n this.isFocused = false;\n this.validate(this.state.props.datavalue);\n if (!this.state.props.datavalue) {\n setTimeout(() => {\n this.props.triggerValidation && this.props.triggerValidation();\n })\n }\n this.invokeEventCallback('onBlur', [null, this]);\n }\n\n public showPopover = () => {\n this.computePosition().then(() => {\n this.updateState({ isOpened: true } as WmSearchState);\n });\n };\n\n public hide = () => {};\n\n prepareModalOptions(content: React.ReactNode, styles: WmSearchStyles, modalService: ModalService) {\n const o = this.state.modalOptions;\n const modalContentSTyles = {\n width: this.searchInputWidth - 2 * (styles.modalContent.borderWidth || 0),\n left: (this.state.position.left || 0) + 2 * (styles.modalContent.borderWidth || 0) };\n o.modalStyle = {...styles.modal};\n o.contentStyle = {...styles.modalContent, ...this.state.position, ...modalContentSTyles};\n o.content = content;\n o.isModal = true;\n o.onClose = () => {\n this.hide = () => {};\n Keyboard.dismiss();\n if (this.state.isOpened) {\n this.setState({isOpened: false, modalOptions: {} as ModalOptions} as WmSearchState);\n }\n };\n this.hide = () => {\n modalService.hideModal(this.state.modalOptions);\n if (this.state.isOpened) {\n this.setState({ isOpened: false, modalOptions: {} as ModalOptions } as WmSearchState);\n }\n }\n return o;\n }\n\n searchIconPress() {\n this.isFocused = false;\n if (this.state.props.searchon === 'onsearchiconclick') {\n this.updateFilteredData(this.state.props.query);\n } else {\n this.onItemSelect(this.state.data[0]);\n }\n }\n\n onItemSelect(item: any) {\n this.isFocused = false;\n this.updateState({ props: {\n query: item.displayexp || item.displayfield\n }\n } as WmSearchState);\n this.validate(item.datafield);\n this.updateDatavalue(item.datafield);\n this.prevDatavalue = item.datafield;\n this.queryModel = item;\n if (get(this.props, 'formfield')) {\n // @ts-ignore\n this.props.invokeEvent('onSelect', [null, this, item.datafield]);\n // @ts-ignore\n this.props.invokeEvent('onSubmit', [null, this]);\n } else {\n this.invokeEventCallback('onSelect', [null, this, item.datafield]);\n this.invokeEventCallback('onSubmit', [null, this]);\n }\n this.hide();\n }\n\n renderSearchBar() {\n const props = this.state.props;\n let opts: any = {};\n const valueExpr = Platform.OS === 'web' ? 'value' : 'defaultValue';\n opts[valueExpr] = this.state.props.query || '';\n return(\n /*\n * onLayout function is required.\n * https://github.com/naoufal/react-native-accordion/pull/19/files\n */\n <View style={this.styles.root} ref={ref => {this.view = ref as View}} onLayout={() => {}}>\n <View style={this.styles.searchInputWrapper}>\n <TextInput style={[this.styles.text, this.state.isValid ? {} : this.styles.invalid, this.state.isOpened && this.state.dataItems?.length > 0? this.styles.focusedText : null]}\n ref={ref => {this.widgetRef = ref;\n // @ts-ignore\n if (ref && !isNull(ref.selectionStart) && !isNull(ref.selectionEnd)) {\n // @ts-ignore\n ref.selectionStart = ref.selectionEnd = this.cursor;\n }}}\n placeholderTextColor={this.styles.placeholderText.color as any}\n placeholder={props.placeholder || 'Search'}\n autoFocus={props.autofocus}\n editable={props.disabled || props.readonly ? false : true}\n onChangeText={this.onChange.bind(this)}\n onChange={this.invokeChange.bind(this)}\n onFocus={this.onFocus.bind(this)}\n onLayout={e => {this.searchInputWidth = e.nativeEvent.layout.width}}\n onBlur={this.onBlur.bind(this)}\n {...opts}>\n </TextInput>\n {props.showclear && this.state.props.query ? <WmButton onTap={this.clearSearch.bind(this)}\n styles={this.styles.clearButton} iconclass={'wi wi-clear'}></WmButton> : null}\n </View>\n {props.showSearchIcon && props.type === 'search' ? <WmButton styles={this.styles.searchButton}\n iconclass={'wm-sl-l sl-search'} onTap={this.searchIconPress.bind(this)}></WmButton> : null}\n </View>\n );\n }\n\n reset() {\n if (this.state.props.query) {\n this.updateState({\n props: {\n query: ''\n }\n } as WmSearchState);\n }\n }\n\n renderSearchItem(item: any, index: number) {\n const props = this.state.props;\n const imageStyles = { root: {height:props.imagewidth, width:props.imagewidth}}\n return (\n <Tappable onTap={this.onItemSelect.bind(this, item)}>\n <View style={this.styles.searchItem}>\n <WmPicture styles={imageStyles} name={props.name + '_image'} picturesource={item.imgSrc}></WmPicture>\n <Text style={this.styles.searchItemText}>{item.displayexp || item.displayfield}</Text>\n </View>\n </Tappable>\n );\n }\n\n updateDefaultQueryModel() {\n if (this.state.dataItems && this.state.dataItems.length && this.isDefaultQuery) {\n const selectedItem = find(this.state.dataItems, (item) => item.selected);\n this.updateState({ props: {\n query: selectedItem ? (selectedItem.displayexp || selectedItem.displayfield) : ''\n }\n } as WmSearchState);\n }\n }\n\n onDataItemsUpdate() {\n super.onDataItemsUpdate();\n this.isFocused && this.state.dataItems.length && this.updateFilteredData(this.state.props.query);\n this.updateDefaultQueryModel();\n }\n\n componentDidMount(): void {\n super.componentDidMount();\n this.updateDefaultQueryModel();\n }\n\n onPropertyChange(name: string, $new: any, $old: any) {\n switch (name) {\n case 'dataset':\n if (!isEmpty($new) && isObject($new) && !isArray($new)) {\n $new = [$new];\n this.updateState({\n props: {\n dataset: $new\n }\n } as WmSearchState);\n }\n break;\n }\n super.onPropertyChange(name, $new, $old);\n }\n\n renderWidget(props: WmSearchProps) {\n const result = this.state.data;\n return (\n <View>\n {this.renderSearchBar()}\n {this.state.isOpened ? (\n <ModalConsumer>\n {(modalService: ModalService) => {\n modalService.showModal(this.prepareModalOptions((\n <ScrollView style={{width: '100%', maxHeight: 200}} contentContainerStyle={this.styles.dropDownContent}>\n <AssetProvider value={this.loadAsset}>\n {result && result.map((item: any, index: any) => (\n <View key={item.key}>\n {\n (!props.limit) || (props.limit && index+1 <= props.limit) ?\n this.renderSearchItem(item, index)\n : null\n }\n {\n index === result.length - 1 ?\n <WmAnchor caption={props.datacompletemsg} styles={this.styles.dataCompleteItem}></WmAnchor> : null\n }\n </View>\n ))}\n </AssetProvider>\n </ScrollView>\n ), this.styles, modalService));\n return null;\n }}\n </ModalConsumer>) : null}\n </View>\n\n );\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,EAAEC,SAAS,EAAEC,IAAI,QAAQ,cAAc;AACpF,SAASC,IAAI,EAAEC,MAAM,QAAQ,QAAQ;AAErC,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,SAASC,aAAa,QAAmC,8CAA8C;AACvG,SAASC,YAAY,QAAQ,uEAAuE;AAEpG,SACEC,oBAAoB,EACpBC,gBAAgB,QACX,8EAA8E;AACrF,OAAOC,QAAQ,MAAM,oEAAoE;AACzF,OAAOC,SAAS,MAAM,sEAAsE;AAC5F,SAASC,QAAQ,QAAQ,mDAAmD;AAC5E,OAAOC,QAAQ,MAAM,oEAAoE;AACzF,SAASC,GAAG,EAAEC,OAAO,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,WAAW;AAC3D,SAASC,aAAa,QAAQ,+CAA+C;AAE7E,OAAO,MAAMC,aAAa,SAASV,gBAAgB,CAAgB;EAAAW,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,mBAC7C,KAAK;IAAAA,eAAA,uBACV,CAAC,CAAC;IAAAA,eAAA,mBACN;MACTC,GAAG,EAAE,CAAC;MACNC,IAAI,EAAE;IACR,CAAC;IAAAF,eAAA,eACW,EAAE;EAAA;AAChB;AASA,eAAe,MAAMG,QAAQ,SAASjB,oBAAoB,CAA+C;EAYvGY,WAAWA,CAACM,KAAoB,EAAE;IAAA,IAAAC,KAAA;IAChC,KAAK,CAACD,KAAK,EAAErB,aAAa,EAAE,IA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IAAI,CAAC/E,mBAAmB,eAC7C3G,KAAA,CAAAyI,aAAA,CAACtI,UAAU;QAACuI,KAAK,EAAE;UAAC/F,KAAK,EAAE,MAAM;UAAEgJ,SAAS,EAAE;QAAG,CAAE;QAACC,qBAAqB,EAAE,IAAI,CAAC/E,MAAM,CAACgF;MAAgB,gBACnG7L,KAAA,CAAAyI,aAAA,CAAClH,aAAa;QAACiE,KAAK,EAAE,IAAI,CAACsG;MAAU,GACpC/G,MAAM,IAAIA,MAAM,CAACpB,GAAG,CAAC,CAACC,IAAS,EAAE6G,KAAU,kBAC1CzK,KAAA,CAAAyI,aAAA,CAACnI,IAAI;QAACyL,GAAG,EAAEnI,IAAI,CAACmI;MAAI,GAEf,CAAChK,KAAK,CAACiK,KAAK,IAAMjK,KAAK,CAACiK,KAAK,IAAIvB,KAAK,GAAC,CAAC,IAAI1I,KAAK,CAACiK,KAAM,GACvD,IAAI,CAACxB,gBAAgB,CAAC5G,IAAI,EAAE6G,KAAK,CAAC,GAChC,IAAI,EAGRA,KAAK,KAAK1F,MAAM,CAACvC,MAAM,GAAG,CAAC,gBAC3BxC,KAAA,CAAAyI,aAAA,CAAC1H,QAAQ;QAACkL,OAAO,EAAElK,KAAK,CAACmK,eAAgB;QAACrF,MAAM,EAAE,IAAI,CAACA,MAAM,CAACsF;MAAiB,CAAW,CAAC,GAAG,IAE5F,CACP,CACc,CACP,CAAC,EACZ,IAAI,CAACtF,MAAM,EAAEC,YAAY,CAAC,CAAC;MAC9B,OAAO,IAAI;IACb,CACa,CAAC,GAAI,IAClB,CAAC;EAGX;AACF"}
1
+ {"version":3,"names":["React","Keyboard","Platform","ScrollView","Text","TextInput","View","find","isNull","WmSearchProps","DEFAULT_CLASS","ModalConsumer","DataProvider","BaseDatasetComponent","BaseDatasetState","WmAnchor","WmPicture","Tappable","WmButton","get","isArray","isEmpty","isObject","AssetProvider","WmSearchState","constructor","arguments","_defineProperty","top","left","WmSearch","props","_this","this","Promise","resolve","position","view","measure","x","length","undefined","y","width","height","px","py","updateState","computePosition","then","isOpened","dataProvider","datavalue","query","clearSearch","invokeEventCallback","hide","dataItems","state","map","item","selected","type","updateFilteredData","_filteredData","queryText","filterOptions","entries","filteredData","minchars","_this$dataProvider","searchkey","updateRequired","init","invokeVariable","response","dataSet","setDataItems","filter","result","dataObject","data","isFocused","showPopover","focus","_this$widgetRef","widgetRef","onChange","value","isDefaultQuery","prevQuery","searchon","validate","invokeEvent","proxy","invokeChange","e","OS","cursor","target","selectionStart","onFocus","disabled","_this$state$props$que","onBlur","setTimeout","triggerValidation","prepareModalOptions","content","styles","modalService","o","modalOptions","modalContentSTyles","searchInputWidth","modalContent","borderWidth","modalStyle","modal","contentStyle","isModal","onClose","dismiss","setState","hideModal","searchIconPress","onItemSelect","displayexp","displayfield","datafield","updateDatavalue","prevDatavalue","queryModel","renderSearchBar","_this$state$dataItems","opts","valueExpr","createElement","style","root","ref","onLayout","searchInputWrapper","_extends","text","isValid","invalid","focusedText","selectionEnd","getTestPropsForInput","placeholderTextColor","placeholderText","color","placeholder","autoFocus","autofocus","editable","readonly","onChangeText","bind","nativeEvent","layout","showclear","onTap","id","getTestId","clearButton","iconclass","showSearchIcon","searchButton","reset","renderSearchItem","index","imageStyles","imagewidth","getTestProps","searchItem","name","picturesource","imgSrc","getTestPropsForLabel","searchItemText","updateDefaultQueryModel","selectedItem","onDataItemsUpdate","componentDidMount","onPropertyChange","$new","$old","dataset","renderWidget","showModal","maxHeight","contentContainerStyle","dropDownContent","loadAsset","key","limit","caption","datacompletemsg","dataCompleteItem"],"sources":["search.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Keyboard, Platform, ScrollView, Text, TextInput, View } from 'react-native';\nimport { find, isNull } from 'lodash';\n\nimport WmSearchProps from './search.props';\nimport { DEFAULT_CLASS, WmSearchStyles } from './search.styles';\nimport { ModalConsumer, ModalOptions, ModalService} from \"@wavemaker/app-rn-runtime/core/modal.service\";\nimport { DataProvider } from '@wavemaker/app-rn-runtime/components/basic/search/local-data-provider';\n\nimport {\n BaseDatasetComponent,\n BaseDatasetState\n} from '@wavemaker/app-rn-runtime/components/input/basedataset/basedataset.component';\nimport WmAnchor from '@wavemaker/app-rn-runtime/components/basic/anchor/anchor.component';\nimport WmPicture from '@wavemaker/app-rn-runtime/components/basic/picture/picture.component';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\nimport { get, isArray, isEmpty, isObject } from \"lodash-es\";\nimport { AssetProvider } from '@wavemaker/app-rn-runtime/core/asset.provider';\n\nexport class WmSearchState extends BaseDatasetState<WmSearchProps> {\n isOpened: boolean = false;\n modalOptions = {} as ModalOptions;\n position = {\n top: 0,\n left: 0\n } as DropdownPosition;\n data: any = [];\n}\n\nexport interface DropdownPosition {\n top?: number;\n bottom?: number;\n left?: number;\n right?: number;\n}\n\nexport default class WmSearch extends BaseDatasetComponent<WmSearchProps, WmSearchState, WmSearchStyles> {\n view: View = null as any;\n private prevDatavalue: any;\n private queryModel: any;\n private searchInputWidth: any;\n private isDefaultQuery: boolean = true;\n private dataProvider: DataProvider;\n public widgetRef: TextInput | null = null;\n private cursor: any = 0;\n private isFocused: boolean = false;\n private updateRequired: any;\n\n constructor(props: WmSearchProps) {\n super(props, DEFAULT_CLASS, new WmSearchProps(), new WmSearchState());\n this.dataProvider = new DataProvider();\n if (this.props.datavalue) {\n this.updateState({\n props: {\n query: this.props.datavalue\n }\n } as WmSearchState);\n }\n }\n\n computePosition = () => {\n return new Promise<void>((resolve) => {\n const position = {} as DropdownPosition;\n this.view.measure((x = 0, y = 0, width = 0, height = 0, px = 0, py = 0) => {\n position.left = px;\n position.top = py + height;\n this.updateState({ position: position } as WmSearchState, resolve);\n });\n });\n }\n\n clearSearch() {\n this.invokeEventCallback('onClear', [null, this]);\n this.hide();\n this.updateState({\n props: {\n query: ''\n },\n dataItems: this.state.dataItems ? this.state.dataItems.map((item: any) => {\n item.selected = false;\n return item;\n }) : []\n } as WmSearchState, () => {\n if (this.state.props.type === 'autocomplete') {\n this.updateFilteredData('');\n }\n });\n }\n\n updateFilteredData(queryText: string = '') {\n const props = this.state.props;\n const filterOptions = {\n query: queryText,\n props: props,\n entries: this.state.dataItems\n };\n let filteredData: Array<any> = [];\n if (props.minchars && queryText.length < props.minchars) {\n filteredData = [];\n } else if (props.type === 'search' && !queryText) {\n filteredData = [];\n } else {\n if (this.props.searchkey && this.updateRequired === undefined) {\n this.updateRequired = this.dataProvider.init(this);\n }\n // for service variables invoke the variable with params.\n if (this.props.searchkey && this.updateRequired && this.state.props.query !== queryText) {\n this.dataProvider.invokeVariable(this, queryText).then((response: any) => {\n if (response) {\n response = response.dataSet;\n if (isEmpty(response)) {\n filteredData = [];\n } else {\n if (isObject(response) && !isArray(response)) {\n response = [response];\n }\n this.setDataItems(response);\n }\n }\n }, () => {});\n return;\n }\n filteredData = this.dataProvider?.filter(filterOptions);\n }\n this.updateState({\n props: { result: filteredData?.map( (item: any) => item.dataObject), query: queryText },\n data: filteredData,\n } as WmSearchState);\n if (!this.state.isOpened && this.isFocused) {\n this.showPopover && this.showPopover();\n }\n }\n\n focus() {\n this?.widgetRef?.focus();\n }\n\n onChange(value: any) {\n this.isDefaultQuery = false;\n const prevQuery = this.state.props.query;\n if (this.state.props.searchon === 'onsearchiconclick') {\n this.updateState({\n props: {result: [], query: value},\n data: []\n } as WmSearchState);\n } else {\n this.updateFilteredData(value);\n }\n if (value === '') {\n this.validate(value);\n this.updateState({\n props: {\n datavalue: '',\n },\n } as WmSearchState);\n if (value === prevQuery) {\n return;\n }\n }\n if (this.props.invokeEvent) {\n this.props.invokeEvent('onChange', [undefined, this.proxy, value, prevQuery]);\n }\n this.invokeEventCallback('onChange', [ undefined, this.proxy, value, prevQuery ]);\n }\n\n invokeChange(e: any) {\n if (Platform.OS === 'web') {\n this.cursor = e.target.selectionStart;\n this.updateState({ props: { query: e.target.value } } as WmSearchState);\n }\n }\n\n onFocus() {\n this.isFocused = true;\n if (!this.state.props.disabled && this.state.props.type === 'autocomplete') {\n this.cursor = this.state.props.query?.length || 0;\n this.updateFilteredData(this.state.props.query || '');\n }\n this.invokeEventCallback('onFocus', [null, this]);\n }\n\n onBlur() {\n this.isFocused = false;\n this.validate(this.state.props.datavalue);\n if (!this.state.props.datavalue) {\n setTimeout(() => {\n this.props.triggerValidation && this.props.triggerValidation();\n })\n }\n this.invokeEventCallback('onBlur', [null, this]);\n }\n\n public showPopover = () => {\n this.computePosition().then(() => {\n this.updateState({ isOpened: true } as WmSearchState);\n });\n };\n\n public hide = () => {};\n\n prepareModalOptions(content: React.ReactNode, styles: WmSearchStyles, modalService: ModalService) {\n const o = this.state.modalOptions;\n const modalContentSTyles = {\n width: this.searchInputWidth - 2 * (styles.modalContent.borderWidth || 0),\n left: (this.state.position.left || 0) + 2 * (styles.modalContent.borderWidth || 0) };\n o.modalStyle = {...styles.modal};\n o.contentStyle = {...styles.modalContent, ...this.state.position, ...modalContentSTyles};\n o.content = content;\n o.isModal = true;\n o.onClose = () => {\n this.hide = () => {};\n Keyboard.dismiss();\n if (this.state.isOpened) {\n this.setState({isOpened: false, modalOptions: {} as ModalOptions} as WmSearchState);\n }\n };\n this.hide = () => {\n modalService.hideModal(this.state.modalOptions);\n if (this.state.isOpened) {\n this.setState({ isOpened: false, modalOptions: {} as ModalOptions } as WmSearchState);\n }\n }\n return o;\n }\n\n searchIconPress() {\n this.isFocused = false;\n if (this.state.props.searchon === 'onsearchiconclick') {\n this.updateFilteredData(this.state.props.query);\n } else {\n this.onItemSelect(this.state.data[0]);\n }\n }\n\n onItemSelect(item: any) {\n this.isFocused = false;\n this.updateState({ props: {\n query: item.displayexp || item.displayfield\n }\n } as WmSearchState);\n this.validate(item.datafield);\n this.updateDatavalue(item.datafield);\n this.prevDatavalue = item.datafield;\n this.queryModel = item;\n if (get(this.props, 'formfield')) {\n // @ts-ignore\n this.props.invokeEvent('onSelect', [null, this, item.datafield]);\n // @ts-ignore\n this.props.invokeEvent('onSubmit', [null, this]);\n } else {\n this.invokeEventCallback('onSelect', [null, this, item.datafield]);\n this.invokeEventCallback('onSubmit', [null, this]);\n }\n this.hide();\n }\n\n renderSearchBar() {\n const props = this.state.props;\n let opts: any = {};\n const valueExpr = Platform.OS === 'web' ? 'value' : 'defaultValue';\n opts[valueExpr] = this.state.props.query || '';\n return(\n /*\n * onLayout function is required.\n * https://github.com/naoufal/react-native-accordion/pull/19/files\n */\n <View style={this.styles.root} ref={ref => {this.view = ref as View}} onLayout={() => {}}>\n <View style={this.styles.searchInputWrapper}>\n <TextInput style={[this.styles.text, this.state.isValid ? {} : this.styles.invalid, this.state.isOpened && this.state.dataItems?.length > 0? this.styles.focusedText : null]}\n ref={ref => {this.widgetRef = ref;\n // @ts-ignore\n if (ref && !isNull(ref.selectionStart) && !isNull(ref.selectionEnd)) {\n // @ts-ignore\n ref.selectionStart = ref.selectionEnd = this.cursor;\n }}}\n {...this.getTestPropsForInput()}\n placeholderTextColor={this.styles.placeholderText.color as any}\n placeholder={props.placeholder || 'Search'}\n autoFocus={props.autofocus}\n editable={props.disabled || props.readonly ? false : true}\n onChangeText={this.onChange.bind(this)}\n onChange={this.invokeChange.bind(this)}\n onFocus={this.onFocus.bind(this)}\n onLayout={e => {this.searchInputWidth = e.nativeEvent.layout.width}}\n onBlur={this.onBlur.bind(this)}\n {...opts}>\n </TextInput>\n {props.showclear && this.state.props.query ? <WmButton onTap={this.clearSearch.bind(this)}\n id={this.getTestId('clear')}\n styles={this.styles.clearButton} iconclass={'wi wi-clear'}></WmButton> : null}\n </View>\n {props.showSearchIcon && props.type === 'search' ? <WmButton styles={this.styles.searchButton}\n id={this.getTestId('search')}\n iconclass={'wm-sl-l sl-search'} onTap={this.searchIconPress.bind(this)}></WmButton> : null}\n </View>\n );\n }\n\n reset() {\n if (this.state.props.query) {\n this.updateState({\n props: {\n query: ''\n }\n } as WmSearchState);\n }\n }\n\n renderSearchItem(item: any, index: number) {\n const props = this.state.props;\n const imageStyles = { root: {height:props.imagewidth, width:props.imagewidth}}\n return (\n <Tappable onTap={this.onItemSelect.bind(this, item)} {...this.getTestProps(`action${index}`)}>\n <View style={this.styles.searchItem}>\n <WmPicture id={this.getTestId(`picture${index}`)} styles={imageStyles} name={props.name + '_image'} picturesource={item.imgSrc}></WmPicture>\n <Text {...this.getTestPropsForLabel(index + '')} style={this.styles.searchItemText}>{item.displayexp || item.displayfield}</Text>\n </View>\n </Tappable>\n );\n }\n\n updateDefaultQueryModel() {\n if (this.state.dataItems && this.state.dataItems.length && this.isDefaultQuery) {\n const selectedItem = find(this.state.dataItems, (item) => item.selected);\n this.updateState({ props: {\n query: selectedItem ? (selectedItem.displayexp || selectedItem.displayfield) : ''\n }\n } as WmSearchState);\n }\n }\n\n onDataItemsUpdate() {\n super.onDataItemsUpdate();\n this.isFocused && this.state.dataItems.length && this.updateFilteredData(this.state.props.query);\n this.updateDefaultQueryModel();\n }\n\n componentDidMount(): void {\n super.componentDidMount();\n this.updateDefaultQueryModel();\n }\n\n onPropertyChange(name: string, $new: any, $old: any) {\n switch (name) {\n case 'dataset':\n if (!isEmpty($new) && isObject($new) && !isArray($new)) {\n $new = [$new];\n this.updateState({\n props: {\n dataset: $new\n }\n } as WmSearchState);\n }\n break;\n }\n super.onPropertyChange(name, $new, $old);\n }\n\n renderWidget(props: WmSearchProps) {\n const result = this.state.data;\n return (\n <View>\n {this.renderSearchBar()}\n {this.state.isOpened ? (\n <ModalConsumer>\n {(modalService: ModalService) => {\n modalService.showModal(this.prepareModalOptions((\n <ScrollView style={{width: '100%', maxHeight: 200}} contentContainerStyle={this.styles.dropDownContent}>\n <AssetProvider value={this.loadAsset}>\n {result && result.map((item: any, index: any) => (\n <View key={item.key}>\n {\n (!props.limit) || (props.limit && index+1 <= props.limit) ?\n this.renderSearchItem(item, index)\n : null\n }\n {\n index === result.length - 1 ?\n <WmAnchor caption={props.datacompletemsg} styles={this.styles.dataCompleteItem}></WmAnchor> : null\n }\n </View>\n ))}\n </A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}
@@ -8,16 +8,16 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
8
8
  flexDirection: 'row'
9
9
  },
10
10
  text: {
11
- height: 48,
11
+ minHeight: 56,
12
12
  paddingTop: 8,
13
13
  paddingBottom: 8,
14
- paddingLeft: 12,
15
- paddingRight: 12,
14
+ paddingLeft: 24,
15
+ paddingRight: 14,
16
16
  width: '100%',
17
17
  borderWidth: 1,
18
18
  borderRightWidth: 0,
19
- borderTopLeftRadius: 6,
20
- borderBottomLeftRadius: 6,
19
+ borderTopLeftRadius: 28,
20
+ borderBottomLeftRadius: 28,
21
21
  borderColor: themeVariables.searchBorderColor,
22
22
  backgroundColor: themeVariables.searchDropdownBackgroundColor
23
23
  },
@@ -25,7 +25,7 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
25
25
  borderBottomColor: themeVariables.inputInvalidBorderColor
26
26
  },
27
27
  focusedText: {
28
- borderBottomLeftRadius: 0
28
+ borderBottomLeftRadius: 28
29
29
  },
30
30
  modal: {
31
31
  backgroundColor: themeVariables.transparent,
@@ -65,15 +65,16 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
65
65
  alignItems: 'center',
66
66
  justifyContent: 'center',
67
67
  borderRadius: 0,
68
- borderTopRightRadius: 4,
69
- borderBottomRightRadius: 4,
68
+ borderTopRightRadius: 28,
69
+ borderBottomRightRadius: 28,
70
70
  backgroundColor: themeVariables.searchButtonColor,
71
- height: 48
71
+ height: 56
72
72
  },
73
73
  icon: {
74
74
  icon: {
75
75
  fontSize: 24,
76
- color: themeVariables.searchButtonTextColor
76
+ color: themeVariables.searchButtonTextColor,
77
+ marginRight: 4
77
78
  }
78
79
  }
79
80
  },
@@ -1 +1 @@
1
- {"version":3,"names":["Platform","BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","text","height","paddingTop","paddingBottom","paddingLeft","paddingRight","width","borderWidth","borderRightWidth","borderTopLeftRadius","borderBottomLeftRadius","borderColor","searchBorderColor","backgroundColor","searchDropdownBackgroundColor","invalid","borderBottomColor","inputInvalidBorderColor","focusedText","modal","transparent","modalContent","borderRadius","position","borderStyle","dropDownContent","searchInputWrapper","alignItems","justifyContent","flex","clearButton","marginLeft","padding","alignSelf","searchButton","borderTopRightRadius","borderBottomRightRadius","searchButtonColor","icon","fontSize","color","searchButtonTextColor","searchItem","marginBottom","paddingHorizontal","paddingVertical","searchItemBorderColor","searchItemTextColor","searchItemText","fontFamily","baseFont","dataCompleteItem","searchDataCompleteItemBgColor","textDecorationLine","placeholderText","inputPlaceholderColor","inputDisabledBgColor","OS","textAlign","borderLeftWidth","left"],"sources":["search.styles.ts"],"sourcesContent":["import { Platform, TextStyle } from 'react-native';\nimport BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmButtonStyles } from '@wavemaker/app-rn-runtime/components/basic/button/button.styles';\n\nexport type WmSearchStyles = BaseStyles & {\n focusedText: TextStyle,\n modal: AllStyle;\n modalContent: AllStyle;\n searchItem: AllStyle;\n dropDownContent: AllStyle;\n searchItemText: AllStyle;\n clearButton: WmButtonStyles;\n searchButton: WmButtonStyles;\n searchInputWrapper: AllStyle;\n placeholderText: AllStyle;\n invalid: AllStyle;\n};\n\nexport const DEFAULT_CLASS = 'app-search';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmSearchStyles = defineStyles({\n root: {\n flexDirection: 'row'\n },\n text: {\n height: 48,\n paddingTop: 8,\n paddingBottom: 8,\n paddingLeft: 12,\n paddingRight: 12,\n width: '100%',\n borderWidth: 1,\n borderRightWidth: 0,\n borderTopLeftRadius: 6,\n borderBottomLeftRadius: 6,\n borderColor: themeVariables.searchBorderColor,\n backgroundColor: themeVariables.searchDropdownBackgroundColor,\n },\n invalid: {\n borderBottomColor: themeVariables.inputInvalidBorderColor\n },\n focusedText : {\n borderBottomLeftRadius: 0,\n },\n modal: {\n backgroundColor: themeVariables.transparent,\n height: '100%'\n },\n modalContent: {\n backgroundColor: themeVariables.searchDropdownBackgroundColor,\n borderRadius: 6,\n position: 'absolute',\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.searchBorderColor,\n width: '90%'\n },\n dropDownContent: {\n width: '100%'\n },\n searchInputWrapper: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n flex: 1\n },\n clearButton: {\n root: {\n marginLeft: -40,\n padding: 0,\n width: 36,\n alignItems: 'center',\n alignSelf: 'center',\n justifyContent: 'center',\n backgroundColor: 'transparent'\n }\n } as WmButtonStyles,\n searchButton: {\n root: {\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: 0,\n borderTopRightRadius: 4,\n borderBottomRightRadius: 4,\n backgroundColor: themeVariables.searchButtonColor,\n height: 48\n },\n icon: {\n icon: {\n fontSize: 24,\n color: themeVariables.searchButtonTextColor,\n }\n }\n } as WmButtonStyles,\n searchItem: {\n width: '100%',\n marginBottom: 4,\n paddingHorizontal: 16,\n paddingVertical: 8,\n borderBottomColor: themeVariables.searchItemBorderColor,\n flexDirection: 'row',\n alignItems: 'center',\n color: themeVariables.searchItemTextColor\n },\n searchItemText: {\n fontSize: 16,\n paddingLeft: 8,\n fontFamily: themeVariables.baseFont\n },\n dataCompleteItem: {\n root: {\n backgroundColor: themeVariables.searchDataCompleteItemBgColor,\n justifyContent: 'center',\n padding: 8\n },\n text: {\n fontSize: 12,\n textDecorationLine: 'none',\n color: themeVariables.searchItemTextColor\n }\n },\n placeholderText: {\n color: themeVariables.inputPlaceholderColor\n }\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n text : {\n backgroundColor: themeVariables.inputDisabledBgColor\n }\n });\n\n addStyle(DEFAULT_CLASS + '-rtl', '', Platform.OS=='android'?{\n text : {\n textAlign: 'right',\n borderWidth: 1,\n borderLeftWidth: 0,\n borderRightWidth: 1,\n borderTopRightRadius: 6,\n borderBottomRightRadius: 6,\n },\n searchButton: {\n root: {\n borderTopRightRadius: 4,\n borderBottomRightRadius: 4,\n },\n }\n }:Platform.OS=='web'?{\n text : {\n textAlign: 'right',\n borderWidth: 1,\n borderRightWidth: 1,\n borderLeftWidth: 0,\n borderTopLeftRadius: 0,\n borderBottomLeftRadius: 0,\n borderTopRightRadius: 6,\n borderBottomRightRadius: 6,\n },\n searchButton: {\n root: {\n borderTopRightRadius: 0,\n borderBottomRightRadius: 0,\n borderTopLeftRadius: 4,\n borderBottomLeftRadius: 4,\n },\n },\n clearButton: {\n root: {\n left: 0,\n position: 'absolute',\n marginLeft: 0\n }\n } as WmButtonStyles,\n }:{\n text : {\n textAlign: 'right',\n }\n });\n\n addStyle('app-autocomplete', '', {\n text: {\n borderRightWidth: 1,\n borderTopRightRadius: 4,\n borderBottomRightRadius: 4,\n }\n } as WmSearchStyles);\n});\n"],"mappings":"AAAA,SAASA,QAAQ,QAAmB,cAAc;AAClD,OAAOC,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAiBxF,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,aAAa,EAAE;IACjB,CAAC;IACDC,IAAI,EAAE;MACJC,MAAM,EAAE,EAAE;MACVC,UAAU,EAAE,CAAC;MACbC,aAAa,EAAE,CAAC;MAChBC,WAAW,EAAE,EAAE;MACfC,YAAY,EAAE,EAAE;MAChBC,KAAK,EAAE,MAAM;MACbC,WAAW,EAAE,CAAC;MACdC,gBAAgB,EAAE,CAAC;MACnBC,mBAAmB,EAAE,CAAC;MACtBC,sBAAsB,EAAE,CAAC;MACzBC,WAAW,EAAEhB,cAAc,CAACiB,iBAAiB;MAC7CC,eAAe,EAAElB,cAAc,CAACm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YAAY,EAAE;MACZpC,IAAI,EAAE;QACJqC,oBAAoB,EAAE,CAAC;QACvBC,uBAAuB,EAAE;MAC3B;IACF;EACF,CAAC,GAAC9C,QAAQ,CAACmE,EAAE,IAAE,KAAK,GAAC;IACnBzD,IAAI,EAAG;MACL0D,SAAS,EAAE,OAAO;MAClBnD,WAAW,EAAE,CAAC;MACdC,gBAAgB,EAAE,CAAC;MACnBmD,eAAe,EAAE,CAAC;MAClBlD,mBAAmB,EAAE,CAAC;MACtBC,sBAAsB,EAAE,CAAC;MACzByB,oBAAoB,EAAE,CAAC;MACvBC,uBAAuB,EAAE;IAC3B,CAAC;IACDF,YAAY,EAAE;MACZpC,IAAI,EAAE;QACJqC,oBAAoB,EAAE,CAAC;QACvBC,uBAAuB,EAAE,CAAC;QAC1B3B,mBAAmB,EAAE,CAAC;QACtBC,sBAAsB,EAAE;MAC1B;IACF,CAAC;IACDoB,WAAW,EAAE;MACXhC,IAAI,EAAE;QACJ8D,IAAI,EAAE,CAAC;QACPrC,QAAQ,EAAE,UAAU;QACpBQ,UAAU,EAAE;MACd;IACF;EACF,CAAC,GAAC;IACA/B,IAAI,EAAG;MACL0D,SAAS,EAAE;IACb;EACF,CAAC,CAAC;EAEF9D,QAAQ,CAAC,kBAAkB,EAAE,EAAE,EAAE;IAC/BI,IAAI,EAAE;MACJQ,gBAAgB,EAAE,CAAC;MACnB2B,oBAAoB,EAAE,CAAC;MACvBC,uBAAuB,EAAE;IAC3B;EACF,CAAmB,CAAC;AACtB,CAAC,CAAC"}
1
+ {"version":3,"names":["Platform","BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","text","minHeight","paddingTop","paddingBottom","paddingLeft","paddingRight","width","borderWidth","borderRightWidth","borderTopLeftRadius","borderBottomLeftRadius","borderColor","searchBorderColor","backgroundColor","searchDropdownBackgroundColor","invalid","borderBottomColor","inputInvalidBorderColor","focusedText","modal","transparent","height","modalContent","borderRadius","position","borderStyle","dropDownContent","searchInputWrapper","alignItems","justifyContent","flex","clearButton","marginLeft","padding","alignSelf","searchButton","borderTopRightRadius","borderBottomRightRadius","searchButtonColor","icon","fontSize","color","searchButtonTextColor","marginRight","searchItem","marginBottom","paddingHorizontal","paddingVertical","searchItemBorderColor","searchItemTextColor","searchItemText","fontFamily","baseFont","dataCompleteItem","searchDataCompleteItemBgColor","textDecorationLine","placeholderText","inputPlaceholderColor","inputDisabledBgColor","OS","textAlign","borderLeftWidth","left"],"sources":["search.styles.ts"],"sourcesContent":["import { Platform, TextStyle } from 'react-native';\nimport BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmButtonStyles } from '@wavemaker/app-rn-runtime/components/basic/button/button.styles';\n\nexport type WmSearchStyles = BaseStyles & {\n focusedText: TextStyle,\n modal: AllStyle;\n modalContent: AllStyle;\n searchItem: AllStyle;\n dropDownContent: AllStyle;\n searchItemText: AllStyle;\n clearButton: WmButtonStyles;\n searchButton: WmButtonStyles;\n searchInputWrapper: AllStyle;\n placeholderText: AllStyle;\n invalid: AllStyle;\n};\n\nexport const DEFAULT_CLASS = 'app-search';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmSearchStyles = defineStyles({\n root: {\n flexDirection: 'row'\n },\n text: {\n minHeight: 56,\n paddingTop: 8,\n paddingBottom: 8,\n paddingLeft: 24,\n paddingRight: 14,\n width: '100%',\n borderWidth: 1,\n borderRightWidth: 0,\n borderTopLeftRadius: 28,\n borderBottomLeftRadius: 28,\n borderColor: themeVariables.searchBorderColor,\n backgroundColor: themeVariables.searchDropdownBackgroundColor,\n },\n invalid: {\n borderBottomColor: themeVariables.inputInvalidBorderColor\n },\n focusedText : {\n borderBottomLeftRadius: 28,\n },\n modal: {\n backgroundColor: themeVariables.transparent,\n height: '100%'\n },\n modalContent: {\n backgroundColor: themeVariables.searchDropdownBackgroundColor,\n borderRadius: 6,\n position: 'absolute',\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.searchBorderColor,\n width: '90%'\n },\n dropDownContent: {\n width: '100%'\n },\n searchInputWrapper: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n flex: 1\n },\n clearButton: {\n root: {\n marginLeft: -40,\n padding: 0,\n width: 36,\n alignItems: 'center',\n alignSelf: 'center',\n justifyContent: 'center',\n backgroundColor: 'transparent'\n }\n } as WmButtonStyles,\n searchButton: {\n root: {\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: 0,\n borderTopRightRadius: 28,\n borderBottomRightRadius: 28,\n backgroundColor: themeVariables.searchButtonColor,\n height: 56\n },\n icon: {\n icon: {\n fontSize: 24,\n color: themeVariables.searchButtonTextColor,\n marginRight: 4\n }\n }\n } as WmButtonStyles,\n searchItem: {\n width: '100%',\n marginBottom: 4,\n paddingHorizontal: 16,\n paddingVertical: 8,\n borderBottomColor: themeVariables.searchItemBorderColor,\n flexDirection: 'row',\n alignItems: 'center',\n color: themeVariables.searchItemTextColor\n },\n searchItemText: {\n fontSize: 16,\n paddingLeft: 8,\n fontFamily: themeVariables.baseFont\n },\n dataCompleteItem: {\n root: {\n backgroundColor: themeVariables.searchDataCompleteItemBgColor,\n justifyContent: 'center',\n padding: 8\n },\n text: {\n fontSize: 12,\n textDecorationLine: 'none',\n color: themeVariables.searchItemTextColor\n }\n },\n placeholderText: {\n color: themeVariables.inputPlaceholderColor\n }\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n text : {\n backgroundColor: themeVariables.inputDisabledBgColor\n }\n });\n\n addStyle(DEFAULT_CLASS + '-rtl', '', Platform.OS=='android'?{\n text : {\n textAlign: 'right',\n borderWidth: 1,\n borderLeftWidth: 0,\n borderRightWidth: 1,\n borderTopRightRadius: 6,\n borderBottomRightRadius: 6,\n },\n searchButton: {\n root: {\n borderTopRightRadius: 4,\n borderBottomRightRadius: 4,\n },\n }\n }:Platform.OS=='web'?{\n text : {\n textAlign: 'right',\n borderWidth: 1,\n borderRightWidth: 1,\n borderLeftWidth: 0,\n borderTopLeftRadius: 0,\n borderBottomLeftRadius: 0,\n borderTopRightRadius: 6,\n borderBottomRightRadius: 6,\n },\n searchButton: {\n root: {\n borderTopRightRadius: 0,\n borderBottomRightRadius: 0,\n borderTopLeftRadius: 4,\n borderBottomLeftRadius: 4,\n },\n },\n clearButton: {\n root: {\n left: 0,\n position: 'absolute',\n marginLeft: 0\n }\n } as WmButtonStyles,\n }:{\n text : {\n textAlign: 'right',\n }\n });\n\n addStyle('app-autocomplete', '', {\n text: {\n borderRightWidth: 1,\n borderTopRightRadius: 4,\n borderBottomRightRadius: 4,\n }\n } as WmSearchStyles);\n});\n"],"mappings":"AAAA,SAASA,QAAQ,QAAmB,cAAc;AAClD,OAAOC,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAiBxF,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,aAAa,EAAE;IACjB,CAAC;IACDC,IAAI,EAAE;MACJC,SAAS,EAAE,EAAE;MACbC,UAAU,EAAE,CAAC;MACbC,aAAa,EAAE,CAAC;MAChBC,WAAW,EAAE,EAAE;MACfC,YAAY,EAAE,EAAE;MAChBC,KAAK,EAAE,MAAM;MACbC,WAAW,EAAE,CAAC;MACdC,gBAAgB,EAAE,CAAC;MACnBC,mBAAmB,EAAE,EAAE;MACvBC,sBAAsB,EAAE,EAAE;MAC1BC,WAAW,EAAEhB,cAAc,CAACiB,iBAAiB;MAC7CC,eAAe,EAAElB,cAAc,CAACmB;IAClC,CAAC;IACHC,OAAO,EAAE;MACPC,iBAAiB,EAAErB,cAAc,CAACsB;IACpC,CAAC;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AC;QACvBC,uBAAuB,EAAE;MAC3B;IACF;EACF,CAAC,GAAC/C,QAAQ,CAACqE,EAAE,IAAE,KAAK,GAAC;IACnB3D,IAAI,EAAG;MACL4D,SAAS,EAAE,OAAO;MAClBrD,WAAW,EAAE,CAAC;MACdC,gBAAgB,EAAE,CAAC;MACnBqD,eAAe,EAAE,CAAC;MAClBpD,mBAAmB,EAAE,CAAC;MACtBC,sBAAsB,EAAE,CAAC;MACzB0B,oBAAoB,EAAE,CAAC;MACvBC,uBAAuB,EAAE;IAC3B,CAAC;IACDF,YAAY,EAAE;MACZrC,IAAI,EAAE;QACJsC,oBAAoB,EAAE,CAAC;QACvBC,uBAAuB,EAAE,CAAC;QAC1B5B,mBAAmB,EAAE,CAAC;QACtBC,sBAAsB,EAAE;MAC1B;IACF,CAAC;IACDqB,WAAW,EAAE;MACXjC,IAAI,EAAE;QACJgE,IAAI,EAAE,CAAC;QACPtC,QAAQ,EAAE,UAAU;QACpBQ,UAAU,EAAE;MACd;IACF;EACF,CAAC,GAAC;IACAhC,IAAI,EAAG;MACL4D,SAAS,EAAE;IACb;EACF,CAAC,CAAC;EAEFhE,QAAQ,CAAC,kBAAkB,EAAE,EAAE,EAAE;IAC/BI,IAAI,EAAE;MACJQ,gBAAgB,EAAE,CAAC;MACnB4B,oBAAoB,EAAE,CAAC;MACvBC,uBAAuB,EAAE;IAC3B;EACF,CAAmB,CAAC;AACtB,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
2
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
3
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
4
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
@@ -40,6 +41,7 @@ export default class WmSpinner extends BaseComponent {
40
41
  }
41
42
  prepareIcon(props) {
42
43
  return /*#__PURE__*/React.createElement(WmIcon, {
44
+ id: this.getTestId('icon'),
43
45
  styles: this.styles.icon,
44
46
  iconclass: props.iconclass + ' fa-spin',
45
47
  iconsize: props.iconsize
@@ -47,6 +49,7 @@ export default class WmSpinner extends BaseComponent {
47
49
  }
48
50
  prepareImage(props) {
49
51
  return /*#__PURE__*/React.createElement(WmPicture, {
52
+ id: this.getTestId('picture'),
50
53
  styles: this.styles.image,
51
54
  picturesource: props.image
52
55
  });
@@ -69,6 +72,7 @@ export default class WmSpinner extends BaseComponent {
69
72
  play: true,
70
73
  style: this.styles.lottie
71
74
  }) : /*#__PURE__*/React.createElement(LottieView, {
75
+ testID: this.getTestId('lottie'),
72
76
  source: this.addClasstoLottie(props.lottie),
73
77
  resizeMode: "contain",
74
78
  autoPlay: true,
@@ -79,9 +83,9 @@ export default class WmSpinner extends BaseComponent {
79
83
  renderWidget(props) {
80
84
  return /*#__PURE__*/React.createElement(View, {
81
85
  style: this.styles.root
82
- }, this._background, props.lottie ? this.prepareLottie(props) : props.image ? this.prepareImage(props) : this.prepareIcon(props), props.caption ? /*#__PURE__*/React.createElement(Text, {
86
+ }, this._background, props.lottie ? this.prepareLottie(props) : props.image ? this.prepareImage(props) : this.prepareIcon(props), props.caption ? /*#__PURE__*/React.createElement(Text, _extends({}, this.getTestPropsForLabel(), {
83
87
  style: this.styles.text
84
- }, props.caption) : null);
88
+ }), props.caption) : null);
85
89
  }
86
90
  }
87
91
  //# sourceMappingURL=spinner.component.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","View","Platform","Color","BaseComponent","BaseComponentState","WmSpinnerProps","DEFAULT_CLASS","WmIcon","WmPicture","LottieView","ThemeVariables","WmSpinnerState","WmSpinner","constructor","props","_defineProperty","obj","colors","Object","keys","forEach","key","value","ind","Math","floor","random","length","toLowerCase","includes","shape","recursiveSearch","prepareIcon","createElement","styles","icon","iconclass","iconsize","prepareImage","image","picturesource","toRgbArray","color","red","green","blue","addClasstoLottie","lottiePath","primaryColor","INSTANCE","darken","json","loader","prepareLottie","_Lottie","Lottie","OS","require","default","animationData","lottie","loop","play","style","source","resizeMode","autoPlay","renderWidget","root","_background","caption","text"],"sources":["spinner.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View, Platform } from 'react-native';\nimport Color from \"color\";\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmSpinnerProps from './spinner.props';\nimport { DEFAULT_CLASS, WmSpinnerStyles } from './spinner.styles';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport WmPicture from '@wavemaker/app-rn-runtime/components/basic/picture/picture.component';\nimport LottieView from 'lottie-react-native';\nimport ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';\n\nexport class WmSpinnerState extends BaseComponentState<WmSpinnerProps> {\n\n}\n\nexport default class WmSpinner extends BaseComponent<WmSpinnerProps, WmSpinnerState, WmSpinnerStyles> {\n\n constructor(props: WmSpinnerProps) {\n super(props, DEFAULT_CLASS, new WmSpinnerProps());\n }\n\n private prepareIcon(props: any) {\n return (<WmIcon\n styles={this.styles.icon}\n iconclass={props.iconclass + ' fa-spin'} iconsize={props.iconsize}></WmIcon>);\n }\n\n private prepareImage(props: any) {\n return (<WmPicture\n styles={this.styles.image}\n picturesource={props.image}></WmPicture>);\n }\n\n private recursiveSearch = (obj: any, colors: any) => {\n obj && Object.keys(obj).forEach(key => {\n let value = obj[key];\n let ind = Math.floor(Math.random() * (0 - colors.length ) + colors.length);\n if (key == \"nm\" && (value.toLowerCase().includes('fill ') || value.toLowerCase().includes('stroke '))) {\n if (obj[\"c\"] && obj[\"c\"][\"k\"] \n && (obj[\"c\"][\"k\"].length == 4\n || (obj[\"c\"][\"k\"].length ==3 \n && typeof obj[\"c\"][\"k\"][0] == 'number'))) {\n obj[\"c\"][\"k\"] = colors[ind];\n }\n else {\n if (obj[\"c\"] && obj[\"c\"][\"k\"]){\n for (let shape in obj[\"c\"][\"k\"]) {\n if(obj[\"c\"][\"k\"][shape] && obj[\"c\"][\"k\"][shape][\"s\"]){\n obj[\"c\"][\"k\"][shape][\"s\"] = colors[ind];\n }\n }\n }\n }\n } else if (typeof value === 'object') {\n this.recursiveSearch(value, colors);\n }\n });\n return obj;\n };\n\n private toRgbArray(color: Color) {\n return [\n color.red()/255,\n color.green()/255,\n color.blue()/255,\n 1\n ]\n }\n\n private addClasstoLottie(lottiePath: any) {\n let primaryColor = Color(ThemeVariables.INSTANCE.primaryColor);\n let colors = [this.toRgbArray(primaryColor), \n this.toRgbArray(primaryColor.darken(0.2)), \n this.toRgbArray(primaryColor.darken(0.4)), \n this.toRgbArray(primaryColor.darken(0.6)), \n this.toRgbArray(primaryColor.darken(0.8))];\n return this.recursiveSearch(lottiePath.json, lottiePath.loader == 'circleSpinner' ? [colors[0]] : colors);\n }\n\n private prepareLottie(props: any) {\n let Lottie = Platform.OS == 'web' ? require('react-lottie-player') : null;\n Lottie = Lottie?.default || Lottie;\n return (\n Platform.OS == 'web' ? <Lottie animationData={this.addClasstoLottie(props.lottie)} loop={true} play={true} style={this.styles.lottie} /> : <LottieView\n source={this.addClasstoLottie(props.lottie)}\n resizeMode='contain'\n autoPlay={true}\n loop={true}\n style={this.styles.lottie}\n />\n )\n }\n\n renderWidget(props: WmSpinnerProps) {\n return (\n <View style={this.styles.root}>\n {this._background}\n {props.lottie ? this.prepareLottie(props) : props.image ? this.prepareImage(props) : this.prepareIcon(props)}\n {props.caption ? <Text style={this.styles.text}>{props.caption}</Text> : null}\n </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AG,EAAAD,OAAA,GAAAC,MAAM,cAAAD,OAAA,uBAANA,OAAA,CAAQI,OAAO,KAAIH,MAAM;IAClC,OACEtD,QAAQ,CAACuD,EAAE,IAAI,KAAK,gBAAG1D,KAAA,CAAAmC,aAAA,CAACsB,MAAM;MAACI,aAAa,EAAE,IAAI,CAACb,gBAAgB,CAAChC,KAAK,CAAC8C,MAAM,CAAE;MAACC,IAAI,EAAE,IAAK;MAACC,IAAI,EAAE,IAAK;MAACC,KAAK,EAAE,IAAI,CAAC7B,MAAM,CAAC0B;IAAO,CAAE,CAAC,gBAAG9D,KAAA,CAAAmC,aAAA,CAACxB,UAAU;MACpJuD,MAAM,EAAE,IAAI,CAAClB,gBAAgB,CAAChC,KAAK,CAAC8C,MAAM,CAAE;MAC5CK,UAAU,EAAC,SAAS;MACpBC,QAAQ,EAAE,IAAK;MACfL,IAAI,EAAE,IAAK;MACXE,KAAK,EAAE,IAAI,CAAC7B,MAAM,CAAC0B;IAAO,CAC3B,CAAC;EAEN;EAEAO,YAAYA,CAACrD,KAAqB,EAAE;IAClC,oBACEhB,KAAA,CAAAmC,aAAA,CAACjC,IAAI;MAAC+D,KAAK,EAAE,IAAI,CAAC7B,MAAM,CAACkC;IAAK,GAC3B,IAAI,CAACC,WAAW,EAChBvD,KAAK,CAAC8C,MAAM,GAAG,IAAI,CAACP,aAAa,CAACvC,KAAK,CAAC,GAAGA,KAAK,CAACyB,KAAK,GAAG,IAAI,CAACD,YAAY,CAACxB,KAAK,CAAC,GAAG,IAAI,CAACkB,WAAW,CAAClB,KAAK,CAAC,EAC3GA,KAAK,CAACwD,OAAO,gBAAGxE,KAAA,CAAAmC,aAAA,CAAClC,IAAI;MAACgE,KAAK,EAAE,IAAI,CAAC7B,MAAM,CAACqC;IAAK,GAAEzD,KAAK,CAACwD,OAAc,CAAC,GAAG,IACrE,CAAC;EAEX;AACF"}
1
+ {"version":3,"names":["React","Text","View","Platform","Color","BaseComponent","BaseComponentState","WmSpinnerProps","DEFAULT_CLASS","WmIcon","WmPicture","LottieView","ThemeVariables","WmSpinnerState","WmSpinner","constructor","props","_defineProperty","obj","colors","Object","keys","forEach","key","value","ind","Math","floor","random","length","toLowerCase","includes","shape","recursiveSearch","prepareIcon","createElement","id","getTestId","styles","icon","iconclass","iconsize","prepareImage","image","picturesource","toRgbArray","color","red","green","blue","addClasstoLottie","lottiePath","primaryColor","INSTANCE","darken","json","loader","prepareLottie","_Lottie","Lottie","OS","require","default","animationData","lottie","loop","play","style","testID","source","resizeMode","autoPlay","renderWidget","root","_background","caption","_extends","getTestPropsForLabel","text"],"sources":["spinner.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View, Platform } from 'react-native';\nimport Color from \"color\";\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmSpinnerProps from './spinner.props';\nimport { DEFAULT_CLASS, WmSpinnerStyles } from './spinner.styles';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport WmPicture from '@wavemaker/app-rn-runtime/components/basic/picture/picture.component';\nimport LottieView from 'lottie-react-native';\nimport ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';\n\nexport class WmSpinnerState extends BaseComponentState<WmSpinnerProps> {\n\n}\n\nexport default class WmSpinner extends BaseComponent<WmSpinnerProps, WmSpinnerState, WmSpinnerStyles> {\n\n constructor(props: WmSpinnerProps) {\n super(props, DEFAULT_CLASS, new WmSpinnerProps());\n }\n\n private prepareIcon(props: any) {\n return (<WmIcon\n id={this.getTestId('icon')}\n styles={this.styles.icon}\n iconclass={props.iconclass + ' fa-spin'} iconsize={props.iconsize}></WmIcon>);\n }\n\n private prepareImage(props: any) {\n return (<WmPicture\n id={this.getTestId('picture')}\n styles={this.styles.image}\n picturesource={props.image}></WmPicture>);\n }\n\n private recursiveSearch = (obj: any, colors: any) => {\n obj && Object.keys(obj).forEach(key => {\n let value = obj[key];\n let ind = Math.floor(Math.random() * (0 - colors.length ) + colors.length);\n if (key == \"nm\" && (value.toLowerCase().includes('fill ') || value.toLowerCase().includes('stroke '))) {\n if (obj[\"c\"] && obj[\"c\"][\"k\"] \n && (obj[\"c\"][\"k\"].length == 4\n || (obj[\"c\"][\"k\"].length ==3 \n && typeof obj[\"c\"][\"k\"][0] == 'number'))) {\n obj[\"c\"][\"k\"] = colors[ind];\n }\n else {\n if (obj[\"c\"] && obj[\"c\"][\"k\"]){\n for (let shape in obj[\"c\"][\"k\"]) {\n if(obj[\"c\"][\"k\"][shape] && obj[\"c\"][\"k\"][shape][\"s\"]){\n obj[\"c\"][\"k\"][shape][\"s\"] = colors[ind];\n }\n }\n }\n }\n } else if (typeof value === 'object') {\n this.recursiveSearch(value, colors);\n }\n });\n return obj;\n };\n\n private toRgbArray(color: Color) {\n return [\n color.red()/255,\n color.green()/255,\n color.blue()/255,\n 1\n ]\n }\n\n private addClasstoLottie(lottiePath: any) {\n let primaryColor = Color(ThemeVariables.INSTANCE.primaryColor);\n let colors = [this.toRgbArray(primaryColor), \n this.toRgbArray(primaryColor.darken(0.2)), \n this.toRgbArray(primaryColor.darken(0.4)), \n this.toRgbArray(primaryColor.darken(0.6)), \n this.toRgbArray(primaryColor.darken(0.8))];\n return this.recursiveSearch(lottiePath.json, lottiePath.loader == 'circleSpinner' ? [colors[0]] : colors);\n }\n\n private prepareLottie(props: any) {\n let Lottie = Platform.OS == 'web' ? require('react-lottie-player') : null;\n Lottie = Lottie?.default || Lottie;\n return (\n Platform.OS == 'web' ? <Lottie animationData={this.addClasstoLottie(props.lottie)} loop={true} play={true} style={this.styles.lottie} /> : <LottieView\n testID={this.getTestId('lottie')}\n source={this.addClasstoLottie(props.lottie)}\n resizeMode='contain'\n autoPlay={true}\n loop={true}\n style={this.styles.lottie}\n />\n )\n }\n\n renderWidget(props: WmSpinnerProps) {\n return (\n <View style={this.styles.root}>\n {this._background}\n {props.lottie ? this.prepareLottie(props) : props.image ? this.prepareImage(props) : this.prepareIcon(props)}\n {props.caption ? <Text {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AG3E,KAAA,CAAAmC,aAAA,CAAClC,IAAI,EAAA2E,QAAA,KAAK,IAAI,CAACC,oBAAoB,CAAC,CAAC;MAAEV,KAAK,EAAE,IAAI,CAAC7B,MAAM,CAACwC;IAAK,IAAE9D,KAAK,CAAC2D,OAAc,CAAC,GAAG,IACtG,CAAC;EAEX;AACF"}
@@ -9,12 +9,13 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
9
9
  alignItems: 'center'
10
10
  },
11
11
  text: {
12
- fontSize: 14,
12
+ fontSize: 16,
13
13
  paddingLeft: 8
14
14
  },
15
15
  icon: {
16
16
  text: {
17
- fontSize: 24,
17
+ fontSize: 48,
18
+ width: 4,
18
19
  color: themeVariables.spinnerIconColor
19
20
  }
20
21
  },
@@ -1 +1 @@
1
- {"version":3,"names":["defineStyles","BASE_THEME","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","justifyContent","alignItems","text","fontSize","paddingLeft","icon","color","spinnerIconColor","image","lottie","width","height","alignSelf","textAlign","paddingRight"],"sources":["spinner.styles.ts"],"sourcesContent":["import { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport BASE_THEME, { NamedStyles, AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport { WmPictureStyles } from '@wavemaker/app-rn-runtime/components/basic/picture/picture.styles';\n\nexport type WmSpinnerStyles = BaseStyles & {\n icon: WmIconStyles\n image: WmPictureStyles\n lottie: AllStyle\n};\n\nexport const DEFAULT_CLASS = 'app-spinner';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmSpinnerStyles = defineStyles({\n root: {\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center'\n },\n text: {\n fontSize: 14,\n paddingLeft: 8\n },\n icon: {\n text: {\n fontSize: 24,\n color: themeVariables.spinnerIconColor\n }\n } as WmIconStyles,\n image: {} as WmPictureStyles,\n lottie: {\n width: 100,\n height: 100,\n alignSelf: 'center',\n justifyContent: 'center'\n }\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', {\n root : {\n textAlign: 'right'\n },\n text: {\n paddingRight: 8\n }\n });\n});\n"],"mappings":"AAAA,SAAqBA,YAAY,QAAQ,+CAA+C;AACxF,OAAOC,UAAU,MAAiC,wCAAwC;AAU1F,OAAO,MAAMC,aAAa,GAAG,aAAa;AAC1CD,UAAU,CAACE,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA8B,GAAGN,YAAY,CAAC;IAClDO,IAAI,EAAE;MACJC,aAAa,EAAE,KAAK;MACpBC,cAAc,EAAE,QAAQ;MACxBC,UAAU,EAAE;IACd,CAAC;IACDC,IAAI,EAAE;MACJC,QAAQ,EAAE,EAAE;MACZC,WAAW,EAAE;IACf,CAAC;IACDC,IAAI,EAAE;MACJH,IAAI,EAAE;QACJC,QAAQ,EAAE,EAAE;QACZG,KAAK,EAAEX,cAAc,CAACY;MACxB;IACF,CAAiB;IACjBC,KAAK,EAAE,CAAC,CAAoB;IAC5BC,MAAM,EAAE;MACNC,KAAK,EAAE,GAAG;MACVC,MAAM,EAAE,GAAG;MACXC,SAAS,EAAE,QAAQ;MACnBZ,cAAc,EAAE;IAClB;EACF,CAAC,CAAC;EAEFJ,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAC1CD,QAAQ,CAACH,aAAa,GAAG,MAAM,EAAE,EAAE,EAAE;IACnCK,IAAI,EAAG;MACLe,SAAS,EAAE;IACb,CAAC;IACDX,IAAI,EAAE;MACJY,YAAY,EAAE;IAChB;EACF,CAAC,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"names":["defineStyles","BASE_THEME","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","justifyContent","alignItems","text","fontSize","paddingLeft","icon","width","color","spinnerIconColor","image","lottie","height","alignSelf","textAlign","paddingRight"],"sources":["spinner.styles.ts"],"sourcesContent":["import { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport BASE_THEME, { NamedStyles, AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport { WmPictureStyles } from '@wavemaker/app-rn-runtime/components/basic/picture/picture.styles';\n\nexport type WmSpinnerStyles = BaseStyles & {\n icon: WmIconStyles\n image: WmPictureStyles\n lottie: AllStyle\n};\n\nexport const DEFAULT_CLASS = 'app-spinner';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmSpinnerStyles = defineStyles({\n root: {\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center'\n },\n text: {\n fontSize: 16,\n paddingLeft: 8\n },\n icon: {\n text: {\n fontSize: 48,\n width: 4,\n color: themeVariables.spinnerIconColor\n }\n } as WmIconStyles,\n image: {} as WmPictureStyles,\n lottie: {\n width: 100,\n height: 100,\n alignSelf: 'center',\n justifyContent: 'center'\n }\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', {\n root : {\n textAlign: 'right'\n },\n text: {\n paddingRight: 8\n }\n });\n});\n"],"mappings":"AAAA,SAAqBA,YAAY,QAAQ,+CAA+C;AACxF,OAAOC,UAAU,MAAiC,wCAAwC;AAU1F,OAAO,MAAMC,aAAa,GAAG,aAAa;AAC1CD,UAAU,CAACE,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA8B,GAAGN,YAAY,CAAC;IAClDO,IAAI,EAAE;MACJC,aAAa,EAAE,KAAK;MACpBC,cAAc,EAAE,QAAQ;MACxBC,UAAU,EAAE;IACd,CAAC;IACDC,IAAI,EAAE;MACJC,QAAQ,EAAE,EAAE;MACZC,WAAW,EAAE;IACf,CAAC;IACDC,IAAI,EAAE;MACJH,IAAI,EAAE;QACJC,QAAQ,EAAE,EAAE;QACZG,KAAK,EAAE,CAAC;QACRC,KAAK,EAAEZ,cAAc,CAACa;MACxB;IACF,CAAiB;IACjBC,KAAK,EAAE,CAAC,CAAoB;IAC5BC,MAAM,EAAE;MACNJ,KAAK,EAAE,GAAG;MACVK,MAAM,EAAE,GAAG;MACXC,SAAS,EAAE,QAAQ;MACnBZ,cAAc,EAAE;IAClB;EACF,CAAC,CAAC;EAEFJ,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAC1CD,QAAQ,CAACH,aAAa,GAAG,MAAM,EAAE,EAAE,EAAE;IACnCK,IAAI,EAAG;MACLe,SAAS,EAAE;IACb,CAAC;IACDX,IAAI,EAAE;MACJY,YAAY,EAAE;IAChB;EACF,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -49,7 +49,8 @@ export default class WmVideo extends BaseComponent {
49
49
  useNativeControls: props.controls,
50
50
  resizeMode: ResizeMode.CONTAIN,
51
51
  isLooping: props.loop,
52
- isMuted: props.muted
52
+ isMuted: props.muted,
53
+ testID: this.getTestId('video')
53
54
  }));
54
55
  }
55
56
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","ResizeMode","Video","BaseComponent","BaseComponentState","WmVideoProps","DEFAULT_CLASS","isFullPathUrl","WmVideoState","WmVideo","constructor","props","_defineProperty","getSource","path","resource","loadAsset","uri","componentDidMount","state","autoplay","_this$video","video","playAsync","renderWidget","createElement","style","styles","root","_background","ref","width","height","flex","source","mp4format","webmformat","posterSource","videoposter","useNativeControls","controls","resizeMode","CONTAIN","isLooping","loop","isMuted","muted"],"sources":["video.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { ResizeMode, Video } from 'expo-av';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmVideoProps from './video.props';\nimport { DEFAULT_CLASS, WmVideoStyles } from './video.styles';\nimport { isString } from 'lodash-es';\nimport { isFullPathUrl } from '@wavemaker/app-rn-runtime/core/utils';\n\nexport class WmVideoState extends BaseComponentState<WmVideoProps> {}\n\nexport default class WmVideo extends BaseComponent<WmVideoProps, WmVideoState, WmVideoStyles> {\n\n private video: Video | null = null as any;\n\n constructor(props: WmVideoProps) {\n super(props, DEFAULT_CLASS, new WmVideoProps(), new WmVideoState());\n }\n\n getSource(path: string) {\n if (!path) {\n return null;\n }\n const resource = this.loadAsset(path);\n if (isFullPathUrl(resource as string)) {\n return {\n uri: resource\n };\n }\n return resource;\n }\n\n componentDidMount(): void {\n if (this.state.props.autoplay) {\n this.video?.playAsync();\n }\n }\n\n renderWidget(props: WmVideoProps) {\n return (\n <View style={this.styles.root}>\n {this._background}\n <Video\n ref={(video) => { this.video = video; }}\n style={{ width: '100%', height: '100%', flex: 1 }}\n source={this.getSource(\n props.mp4format\n || props.webmformat) as any}\n posterSource={ this.getSource(props.videoposter) as any }\n useNativeControls={props.controls}\n resizeMode={ResizeMode.CONTAIN}\n isLooping={props.loop}\n isMuted={props.muted}\n />\n </View>); \n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAeC,IAAI,QAAQ,cAAc;AACzC,SAASC,UAAU,EAAEC,KAAK,QAAQ,SAAS;AAC3C,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,YAAY,MAAM,eAAe;AACxC,SAASC,aAAa,QAAuB,gBAAgB;AAE7D,SAASC,aAAa,QAAQ,sCAAsC;AAEpE,OAAO,MAAMC,YAAY,SAASJ,kBAAkB,CAAe;AAEnE,eAAe,MAAMK,OAAO,SAASN,aAAa,CAA4C;EAI5FO,WAAWA,CAACC,KAAmB,EAAE;IAC/B,KAAK,CAACA,KAAK,EAAEL,aAAa,EAAE,IAAID,YAAY,CAAC,CAAC,EAAE,IAAIG,YAAY,CAAC,CAAC,CAAC;IAACI,eAAA,gBAHxC,IAAI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1
+ {"version":3,"names":["React","View","ResizeMode","Video","BaseComponent","BaseComponentState","WmVideoProps","DEFAULT_CLASS","isFullPathUrl","WmVideoState","WmVideo","constructor","props","_defineProperty","getSource","path","resource","loadAsset","uri","componentDidMount","state","autoplay","_this$video","video","playAsync","renderWidget","createElement","style","styles","root","_background","ref","width","height","flex","source","mp4format","webmformat","posterSource","videoposter","useNativeControls","controls","resizeMode","CONTAIN","isLooping","loop","isMuted","muted","testID","getTestId"],"sources":["video.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { ResizeMode, Video } from 'expo-av';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmVideoProps from './video.props';\nimport { DEFAULT_CLASS, WmVideoStyles } from './video.styles';\nimport { isString } from 'lodash-es';\nimport { isFullPathUrl } from '@wavemaker/app-rn-runtime/core/utils';\n\nexport class WmVideoState extends BaseComponentState<WmVideoProps> {}\n\nexport default class WmVideo extends BaseComponent<WmVideoProps, WmVideoState, WmVideoStyles> {\n\n private video: Video | null = null as any;\n\n constructor(props: WmVideoProps) {\n super(props, DEFAULT_CLASS, new WmVideoProps(), new WmVideoState());\n }\n\n getSource(path: string) {\n if (!path) {\n return null;\n }\n const resource = this.loadAsset(path);\n if (isFullPathUrl(resource as string)) {\n return {\n uri: resource\n };\n }\n return resource;\n }\n\n componentDidMount(): void {\n if (this.state.props.autoplay) {\n this.video?.playAsync();\n }\n }\n\n renderWidget(props: WmVideoProps) {\n return (\n <View style={this.styles.root}>\n {this._background}\n <Video\n ref={(video) => { this.video = video; }}\n style={{ width: '100%', height: '100%', flex: 1 }}\n source={this.getSource(\n props.mp4format\n || props.webmformat) as any}\n posterSource={ this.getSource(props.videoposter) as any }\n useNativeControls={props.controls}\n resizeMode={ResizeMode.CONTAIN}\n isLooping={props.loop}\n isMuted={props.muted}\n testID={this.getTestId('video')}\n />\n </View>); \n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,M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,KAAK,GAAGA,KAAK;MAAE,CAAE;MACxCI,KAAK,EAAE;QAAEK,KAAK,EAAE,MAAM;QAAEC,MAAM,EAAE,MAAM;QAAEC,IAAI,EAAE;MAAE,CAAE;MAClDC,MAAM,EAAE,IAAI,CAACrB,SAAS,CACpBF,KAAK,CAACwB,SAAS,IACZxB,KAAK,CAACyB,UAAU,CAAS;MAC9BC,YAAY,EAAG,IAAI,CAACxB,SAAS,CAACF,KAAK,CAAC2B,WAAW,CAAU;MACzDC,iBAAiB,EAAE5B,KAAK,CAAC6B,QAAS;MAClCC,UAAU,EAAExC,UAAU,CAACyC,OAAQ;MAC/BC,SAAS,EAAEhC,KAAK,CAACiC,IAAK;MACtBC,OAAO,EAAElC,KAAK,CAACmC,KAAM;MACrBC,MAAM,EAAE,IAAI,CAACC,SAAS,CAAC,OAAO;IAAE,CACjC,CACG,CAAC;EACX;AACF"}
@@ -2,12 +2,14 @@ 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';
5
+ import Color from "color";
6
+ import { View, Platform } from 'react-native';
6
7
  import { Defs, LinearGradient, Stop, Svg } from 'react-native-svg';
7
8
  import { VictoryArea, VictoryChart, VictoryLegend, VictoryStack, VictoryScatter, VictoryGroup } from "victory-native";
8
9
  import WmAreaChartProps from './area-chart.props';
9
10
  import { DEFAULT_CLASS } from './area-chart.styles';
10
11
  import { BaseChartComponent, BaseChartComponentState } from "@wavemaker/app-rn-runtime/components/chart/basechart.component";
12
+ import { isNumber } from 'lodash-es';
11
13
  export class WmAreaChartState extends BaseChartComponentState {
12
14
  constructor() {
13
15
  super(...arguments);
@@ -24,16 +26,33 @@ export default class WmAreaChart extends BaseChartComponent {
24
26
  });
25
27
  });
26
28
  }
29
+ onSelect(event, data) {
30
+ let value = data.data[data.index].y;
31
+ let label = this.state.xaxisDatakeyArr[data.datum.x];
32
+ let selectedItem = this.props.dataset[data.index];
33
+ let selectedChartItem = [{
34
+ series: 0,
35
+ x: data.index,
36
+ y: value,
37
+ _dataObj: selectedItem
38
+ }, data.index];
39
+ this.invokeEventCallback('onSelect', [event.nativeEvent, this.proxy, selectedItem, selectedChartItem]);
40
+ }
27
41
  renderWidget(props) {
28
42
  var _this$state$data;
43
+ this.invokeEventCallback('onBeforerender', [this.proxy, null]);
29
44
  if (!((_this$state$data = this.state.data) !== null && _this$state$data !== void 0 && _this$state$data.length)) {
30
45
  return null;
31
46
  }
32
47
  let mindomain = {
33
- x: this.props.xdomain === 'Min' ? this.state.chartMinX : undefined,
34
- y: this.props.ydomain === 'Min' ? this.state.chartMinY : undefined
48
+ x: props.xdomain === 'Min' ? this.state.chartMinX : undefined,
49
+ y: props.ydomain === 'Min' ? this.state.chartMinY : undefined
35
50
  };
36
51
  const chartName = this.props.name ?? 'nonameAreachart';
52
+ let gradientStop = '100%';
53
+ if (isNumber(this.state.chartMaxY) && isNumber(this.state.chartMinY) && this.state.chartMaxY > 0) {
54
+ gradientStop = (this.state.chartMaxY - this.state.chartMinY) * 100 / this.state.chartMaxY + '%';
55
+ }
37
56
  return /*#__PURE__*/React.createElement(View, {
38
57
  style: this.styles.root,
39
58
  onLayout: this.onViewLayoutChange.bind(this)
@@ -45,9 +64,10 @@ export default class WmAreaChart extends BaseChartComponent {
45
64
  top: 70,
46
65
  bottom: 50,
47
66
  left: 50,
48
- right: 50
67
+ right: 30
49
68
  },
50
- minDomain: mindomain
69
+ minDomain: mindomain,
70
+ containerComponent: this.getTooltip(props)
51
71
  }, /*#__PURE__*/React.createElement(VictoryLegend, {
52
72
  name: 'legend',
53
73
  containerComponent: /*#__PURE__*/React.createElement(Svg, null),
@@ -67,31 +87,39 @@ export default class WmAreaChart extends BaseChartComponent {
67
87
  y2: "100%"
68
88
  }, /*#__PURE__*/React.createElement(Stop, {
69
89
  offset: "0%",
70
- stopColor: this.state.colors[i]
90
+ stopColor: Color(this.state.colors[i]).lighten(0.2).rgb().toString()
71
91
  }), /*#__PURE__*/React.createElement(Stop, {
72
- offset: "100%",
73
- stopColor: '#ffffff00',
74
- stopOpacity: "0"
92
+ offset: gradientStop,
93
+ stopColor: Color(this.state.colors[i]).lighten(0.6).rgb().toString()
75
94
  }))), /*#__PURE__*/React.createElement(VictoryArea, {
76
95
  interpolation: props.interpolation,
77
96
  key: props.name + '_' + i,
97
+ name: props.name + '_' + i,
78
98
  style: {
79
99
  data: {
80
100
  fill: `url(#${chartName}Gradient${i})`,
81
- stroke: this.state.colors[i]
101
+ stroke: this.state.colors[i],
102
+ strokeWidth: props.linethickness
82
103
  }
83
104
  },
84
- data: d
105
+ data: this.isRTL ? d.toReversed() : d
85
106
  }), props.highlightpoints ? /*#__PURE__*/React.createElement(VictoryScatter, {
86
107
  size: 5,
87
108
  key: props.name + '_scatter' + i,
88
109
  style: {
89
110
  data: {
90
- fill: this.state.colors[i],
91
- opacity: 0.8
111
+ fill: Color(this.state.colors[i]).darken(0.2).rgb().toString()
92
112
  }
93
113
  },
94
- data: d
114
+ data: this.isRTL ? d.toReversed() : d,
115
+ events: [{
116
+ target: 'data',
117
+ eventHandlers: Platform.OS == "web" ? {
118
+ onClick: this.onSelect.bind(this)
119
+ } : {
120
+ onPress: this.onSelect.bind(this)
121
+ }
122
+ }]
95
123
  }) : null);
96
124
  }))) : null);
97
125
  }