@wavemaker/app-rn-runtime 11.5.2-next.141063 → 11.5.2-next.141066

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 (334) hide show
  1. app-rn-runtime/components/advanced/carousel/carousel.component.js +14 -9
  2. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  3. app-rn-runtime/components/advanced/carousel/carousel.styles.js +6 -3
  4. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  5. app-rn-runtime/components/advanced/webview/webview.component.js +33 -14
  6. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  7. app-rn-runtime/components/advanced/webview/webview.props.js +3 -1
  8. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  9. app-rn-runtime/components/basic/anchor/anchor.component.js +23 -7
  10. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  11. app-rn-runtime/components/basic/anchor/anchor.props.js +8 -0
  12. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  13. app-rn-runtime/components/basic/anchor/anchor.styles.js +3 -1
  14. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  15. app-rn-runtime/components/basic/animatedview.component.js +5 -3
  16. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  17. app-rn-runtime/components/basic/button/button.component.js +41 -8
  18. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  19. app-rn-runtime/components/basic/button/button.props.js +7 -0
  20. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  21. app-rn-runtime/components/basic/button/button.styles.js +9 -10
  22. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  23. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js +13 -5
  24. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  25. app-rn-runtime/components/basic/icon/icon.component.js +64 -12
  26. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  27. app-rn-runtime/components/basic/icon/icon.props.js +7 -0
  28. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  29. app-rn-runtime/components/basic/icon/icon.styles.js +2 -1
  30. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  31. app-rn-runtime/components/basic/label/label.component.js +44 -27
  32. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  33. app-rn-runtime/components/basic/label/label.props.js +4 -0
  34. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  35. app-rn-runtime/components/basic/label/label.styles.js +4 -5
  36. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  37. app-rn-runtime/components/basic/message/message.component.js +3 -2
  38. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  39. app-rn-runtime/components/basic/message/message.props.js +3 -0
  40. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  41. app-rn-runtime/components/basic/message/message.styles.js +3 -1
  42. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  43. app-rn-runtime/components/basic/picture/picture.component.js +4 -2
  44. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  45. app-rn-runtime/components/basic/picture/picture.props.js +3 -0
  46. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  47. app-rn-runtime/components/basic/picture/picture.styles.js +3 -1
  48. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  49. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +3 -3
  50. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  51. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js +2 -0
  52. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  53. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +3 -2
  54. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  55. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js +2 -0
  56. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  57. app-rn-runtime/components/basic/search/search.component.js +10 -3
  58. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  59. app-rn-runtime/components/basic/search/search.props.js +4 -0
  60. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  61. app-rn-runtime/components/basic/search/search.styles.js +6 -5
  62. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  63. app-rn-runtime/components/basic/skeleton/skeleton.component.js +0 -1
  64. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  65. app-rn-runtime/components/basic/video/video.component.js +4 -2
  66. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  67. app-rn-runtime/components/basic/video/video.props.js +3 -0
  68. app-rn-runtime/components/basic/video/video.props.js.map +1 -1
  69. app-rn-runtime/components/chart/area-chart/area-chart.component.js +34 -24
  70. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  71. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js +29 -16
  72. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  73. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js +0 -2
  74. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  75. app-rn-runtime/components/chart/basechart.component.js +34 -7
  76. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  77. app-rn-runtime/components/chart/basechart.props.js +7 -2
  78. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  79. app-rn-runtime/components/chart/basechart.styles.js +9 -2
  80. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  81. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js +4 -2
  82. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  83. app-rn-runtime/components/chart/line-chart/line-chart.component.js +27 -20
  84. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  85. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  86. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +7 -4
  87. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  88. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js +48 -18
  89. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js.map +1 -1
  90. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js +1 -0
  91. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js.map +1 -1
  92. app-rn-runtime/components/chart/staticdata.js +215 -0
  93. app-rn-runtime/components/chart/staticdata.js.map +1 -0
  94. app-rn-runtime/components/container/container.component.js +1 -1
  95. app-rn-runtime/components/container/container.component.js.map +1 -1
  96. app-rn-runtime/components/container/panel/panel.component.js +6 -2
  97. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  98. app-rn-runtime/components/container/panel/panel.props.js +4 -0
  99. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  100. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +1 -1
  101. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  102. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +1 -1
  103. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  104. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js +14 -1
  105. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  106. app-rn-runtime/components/container/tabs/tabs.component.js +3 -0
  107. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  108. app-rn-runtime/components/container/wizard/wizard.component.js +17 -14
  109. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  110. app-rn-runtime/components/container/wizard/wizard.styles.js +19 -3
  111. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  112. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +27 -2
  113. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  114. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js +6 -0
  115. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  116. app-rn-runtime/components/data/card/card.component.js +7 -3
  117. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  118. app-rn-runtime/components/data/card/card.props.js +4 -0
  119. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  120. app-rn-runtime/components/data/form/form-action/form-action.component.js +1 -0
  121. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  122. app-rn-runtime/components/data/form/form-action/form-action.props.js +1 -0
  123. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  124. app-rn-runtime/components/data/form/form-action/form-action.styles.js +2 -1
  125. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  126. app-rn-runtime/components/data/form/form-field/form-field.component.js +16 -1
  127. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  128. app-rn-runtime/components/data/form/form-field/form-field.props.js +3 -0
  129. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  130. app-rn-runtime/components/data/form/form.component.js +26 -4
  131. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  132. app-rn-runtime/components/data/form/form.props.js +3 -0
  133. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  134. app-rn-runtime/components/data/list/list.component.js +143 -28
  135. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  136. app-rn-runtime/components/data/list/list.props.js +6 -1
  137. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  138. app-rn-runtime/components/data/list/list.styles.js +13 -0
  139. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  140. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +4 -1
  141. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  142. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js +3 -0
  143. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  144. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js +13 -6
  145. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js.map +1 -1
  146. app-rn-runtime/components/device/camera/camera.component.js +4 -1
  147. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  148. app-rn-runtime/components/device/camera/camera.props.js +3 -0
  149. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  150. app-rn-runtime/components/device/camera/camera.styles.js +12 -4
  151. app-rn-runtime/components/device/camera/camera.styles.js.map +1 -1
  152. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js +4 -0
  153. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  154. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js +4 -0
  155. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  156. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js +2 -1
  157. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -1
  158. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js +4 -0
  159. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  160. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js +4 -0
  161. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  162. app-rn-runtime/components/dialogs/dialog/dialog.component.js +7 -3
  163. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  164. app-rn-runtime/components/dialogs/dialog/dialog.props.js +4 -0
  165. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  166. app-rn-runtime/components/dialogs/dialog/dialog.styles.js +11 -2
  167. app-rn-runtime/components/dialogs/dialog/dialog.styles.js.map +1 -1
  168. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js +4 -0
  169. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  170. app-rn-runtime/components/input/basedataset/basedataset.props.js +4 -0
  171. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  172. app-rn-runtime/components/input/baseinput/baseinput.component.js +3 -3
  173. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  174. app-rn-runtime/components/input/baseinput/baseinput.props.js +6 -0
  175. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  176. app-rn-runtime/components/input/basenumber/basenumber.component.js +16 -10
  177. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  178. app-rn-runtime/components/input/basenumber/basenumber.props.js +4 -0
  179. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  180. app-rn-runtime/components/input/checkbox/checkbox.component.js +12 -5
  181. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  182. app-rn-runtime/components/input/checkbox/checkbox.styles.js +35 -5
  183. app-rn-runtime/components/input/checkbox/checkbox.styles.js.map +1 -1
  184. app-rn-runtime/components/input/checkboxset/checkboxset.component.js +26 -10
  185. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  186. app-rn-runtime/components/input/checkboxset/checkboxset.props.js +1 -0
  187. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  188. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js +39 -10
  189. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +1 -1
  190. app-rn-runtime/components/input/chips/chips.component.js +5 -1
  191. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  192. app-rn-runtime/components/input/composite/composite.component.js +1 -1
  193. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  194. app-rn-runtime/components/input/composite/composite.props.js +1 -1
  195. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  196. app-rn-runtime/components/input/currency/currency.component.js +18 -3
  197. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  198. app-rn-runtime/components/input/currency/currency.props.js +1 -0
  199. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  200. app-rn-runtime/components/input/currency/currency.styles.js +19 -1
  201. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  202. app-rn-runtime/components/input/epoch/base-datetime.component.js +76 -10
  203. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  204. app-rn-runtime/components/input/epoch/date/date.component.js +8 -0
  205. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  206. app-rn-runtime/components/input/epoch/date/date.styles.js +16 -0
  207. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  208. app-rn-runtime/components/input/epoch/datetime/datetime.component.js +8 -0
  209. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  210. app-rn-runtime/components/input/epoch/datetime/datetime.props.js +5 -0
  211. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  212. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +49 -1
  213. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  214. app-rn-runtime/components/input/epoch/time/time.component.js +8 -0
  215. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  216. app-rn-runtime/components/input/epoch/time/time.styles.js +16 -0
  217. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  218. app-rn-runtime/components/input/fileupload/fileupload.component.js +2 -0
  219. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  220. app-rn-runtime/components/input/fileupload/fileupload.props.js +2 -0
  221. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  222. app-rn-runtime/components/input/fileupload/fileupload.styles.js +1 -1
  223. app-rn-runtime/components/input/fileupload/fileupload.styles.js.map +1 -1
  224. app-rn-runtime/components/input/number/number.component.js +13 -2
  225. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  226. app-rn-runtime/components/input/number/number.props.js +1 -0
  227. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  228. app-rn-runtime/components/input/number/number.styles.js +17 -0
  229. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  230. app-rn-runtime/components/input/radioset/radioset.component.js +52 -21
  231. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  232. app-rn-runtime/components/input/radioset/radioset.props.js +1 -0
  233. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  234. app-rn-runtime/components/input/radioset/radioset.styles.js +35 -2
  235. app-rn-runtime/components/input/radioset/radioset.styles.js.map +1 -1
  236. app-rn-runtime/components/input/select/select.component.js +7 -3
  237. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  238. app-rn-runtime/components/input/select/select.styles.js +5 -1
  239. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  240. app-rn-runtime/components/input/slider/slider.component.js +3 -2
  241. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  242. app-rn-runtime/components/input/slider/slider.styles.js +3 -3
  243. app-rn-runtime/components/input/slider/slider.styles.js.map +1 -1
  244. app-rn-runtime/components/input/switch/switch.component.js +8 -1
  245. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  246. app-rn-runtime/components/input/switch/switch.styles.js +10 -5
  247. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  248. app-rn-runtime/components/input/text/text.component.js +17 -3
  249. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  250. app-rn-runtime/components/input/text/text.props.js +1 -0
  251. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  252. app-rn-runtime/components/input/text/text.styles.js +17 -0
  253. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  254. app-rn-runtime/components/input/textarea/textarea.component.js +13 -1
  255. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  256. app-rn-runtime/components/input/textarea/textarea.props.js +1 -0
  257. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  258. app-rn-runtime/components/input/textarea/textarea.styles.js +17 -0
  259. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  260. app-rn-runtime/components/input/toggle/toggle.component.js +51 -7
  261. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  262. app-rn-runtime/components/input/toggle/toggle.props.js +4 -0
  263. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  264. app-rn-runtime/components/input/toggle/toggle.styles.js +5 -12
  265. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  266. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +6 -1
  267. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  268. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js +1 -0
  269. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  270. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js +11 -2
  271. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  272. app-rn-runtime/components/navigation/basenav/basenav.component.js +1 -2
  273. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  274. app-rn-runtime/components/navigation/menu/menu.styles.js +8 -5
  275. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  276. app-rn-runtime/components/navigation/navitem/navitem.component.js +8 -5
  277. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  278. app-rn-runtime/components/navigation/navitem/navitem.props.js +3 -0
  279. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  280. app-rn-runtime/components/navigation/popover/popover.component.js +14 -3
  281. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  282. app-rn-runtime/components/navigation/popover/popover.props.js +7 -0
  283. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  284. app-rn-runtime/components/navigation/popover/popover.styles.js +8 -2
  285. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  286. app-rn-runtime/components/page/left-panel/left-panel.component.js +4 -0
  287. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  288. app-rn-runtime/components/page/page-content/page-content.component.js +7 -1
  289. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  290. app-rn-runtime/components/page/tabbar/curve.js +84 -0
  291. app-rn-runtime/components/page/tabbar/curve.js.map +1 -0
  292. app-rn-runtime/components/page/tabbar/tabbar.component.js +44 -10
  293. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  294. app-rn-runtime/components/page/tabbar/tabbar.styles.js +82 -15
  295. app-rn-runtime/components/page/tabbar/tabbar.styles.js.map +1 -1
  296. app-rn-runtime/core/accessibility.js +149 -0
  297. app-rn-runtime/core/accessibility.js.map +1 -0
  298. app-rn-runtime/core/base.component.js +33 -6
  299. app-rn-runtime/core/base.component.js.map +1 -1
  300. app-rn-runtime/core/components/floatinglabel.component.js +45 -0
  301. app-rn-runtime/core/components/floatinglabel.component.js.map +1 -0
  302. app-rn-runtime/core/components/textinput.component.js +165 -9
  303. app-rn-runtime/core/components/textinput.component.js.map +1 -1
  304. app-rn-runtime/core/event-notifier.js +37 -2
  305. app-rn-runtime/core/event-notifier.js.map +1 -1
  306. app-rn-runtime/core/formatters.js +14 -1
  307. app-rn-runtime/core/formatters.js.map +1 -1
  308. app-rn-runtime/core/tappable.component.js +37 -10
  309. app-rn-runtime/core/tappable.component.js.map +1 -1
  310. app-rn-runtime/core/utils.js +11 -0
  311. app-rn-runtime/core/utils.js.map +1 -1
  312. app-rn-runtime/gestures/swipe.animation.js +34 -1
  313. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  314. app-rn-runtime/package.json +6 -3
  315. app-rn-runtime/runtime/App.js +17 -10
  316. app-rn-runtime/runtime/App.js.map +1 -1
  317. app-rn-runtime/runtime/base-fragment.component.js +5 -1
  318. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  319. app-rn-runtime/runtime/base-page.component.js +1 -1
  320. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  321. app-rn-runtime/runtime/services/app-security.service.js +2 -1
  322. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  323. app-rn-runtime/runtime/services/webprocess.service.js +0 -1
  324. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  325. app-rn-runtime/styles/background.component.js +16 -5
  326. app-rn-runtime/styles/background.component.js.map +1 -1
  327. app-rn-runtime/styles/theme.js +43 -0
  328. app-rn-runtime/styles/theme.js.map +1 -1
  329. app-rn-runtime/styles/theme.variables.js +30 -6
  330. app-rn-runtime/styles/theme.variables.js.map +1 -1
  331. app-rn-runtime/variables/model-variable.js +2 -1
  332. app-rn-runtime/variables/model-variable.js.map +1 -1
  333. app-rn-runtime/variables/service-variable.js +14 -6
  334. app-rn-runtime/variables/service-variable.js.map +1 -1
@@ -3,8 +3,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
3
3
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
4
4
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
5
5
  import React from 'react';
6
- import { SectionList, Text, View, FlatList } from 'react-native';
7
- import { isArray, isEmpty, isNil, round } from 'lodash-es';
6
+ import { ActivityIndicator, SectionList, Text, View, FlatList } from 'react-native';
7
+ import { isArray, isEmpty, isNil, isNumber } from 'lodash-es';
8
8
  import { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';
9
9
  import { getGroupedData, isDefined } from "@wavemaker/app-rn-runtime/core/utils";
10
10
  import { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';
@@ -19,6 +19,7 @@ export class WmListState extends BaseComponentState {
19
19
  _defineProperty(this, "selectedindex", void 0);
20
20
  _defineProperty(this, "groupedData", []);
21
21
  _defineProperty(this, "currentPage", 1);
22
+ _defineProperty(this, "maxRecordsToShow", 20);
22
23
  }
23
24
  }
24
25
  export default class WmList extends BaseComponent {
@@ -27,6 +28,12 @@ export default class WmList extends BaseComponent {
27
28
  _defineProperty(this, "itemWidgets", []);
28
29
  _defineProperty(this, "selectedItemWidgets", {});
29
30
  _defineProperty(this, "keyExtractor", new DefaultKeyExtractor());
31
+ _defineProperty(this, "endThreshold", -1);
32
+ _defineProperty(this, "loadingData", false);
33
+ _defineProperty(this, "hasMoreData", true);
34
+ this.updateState({
35
+ maxRecordsToShow: this.state.props.pagesize
36
+ });
30
37
  }
31
38
  isSelected($item) {
32
39
  const selectedItem = this.state.props.selecteditem;
@@ -71,6 +78,42 @@ export default class WmList extends BaseComponent {
71
78
  });
72
79
  }
73
80
  }
81
+ get loadDataOnDemand() {
82
+ const navigation = this.state.props.navigation;
83
+ return navigation === 'Scroll' || navigation === 'On-Demand';
84
+ }
85
+ loadData() {
86
+ if (this.loadingData) {
87
+ return;
88
+ }
89
+ if (isArray(this.state.props.dataset) && this.state.props.dataset.length > this.state.maxRecordsToShow) {
90
+ this.updateState({
91
+ maxRecordsToShow: this.state.maxRecordsToShow + this.state.props.pagesize
92
+ });
93
+ } else if (this.loadDataOnDemand) {
94
+ const $list = this.proxy;
95
+ $list.loadingdata = true;
96
+ this.loadingData = true;
97
+ this.props.getNextPageData && this.props.getNextPageData(null, this.proxy, this.state.currentPage + 1).then(data => {
98
+ if (isArray(data) && data.length > 0 && isArray(this.state.props.dataset)) {
99
+ $list.dataset = [...this.state.props.dataset, ...data];
100
+ this.updateState({
101
+ currentPage: this.state.currentPage + 1,
102
+ maxRecordsToShow: this.state.maxRecordsToShow + this.state.props.pagesize
103
+ });
104
+ this.hasMoreData = true;
105
+ } else {
106
+ this.hasMoreData = false;
107
+ }
108
+ }).catch(err => {
109
+ console.error(err);
110
+ }).then(() => {
111
+ setTimeout(() => {
112
+ $list.loadingdata = false;
113
+ }, 1000);
114
+ });
115
+ }
116
+ }
74
117
  selectFirstItem() {
75
118
  const props = this.state.props;
76
119
  if (this.initialized && props.dataset && props.dataset.length) {
@@ -78,6 +121,52 @@ export default class WmList extends BaseComponent {
78
121
  this.onSelect(props.dataset[0], index);
79
122
  }
80
123
  }
124
+ clear() {
125
+ this.updateState({
126
+ groupedData: {}
127
+ });
128
+ }
129
+ selectItem(item) {
130
+ const dataset = this.state.props.dataset;
131
+ if (isNumber(item)) {
132
+ this.onSelect(dataset[item], item);
133
+ } else {
134
+ let index = dataset.indexOf(item);
135
+ this.onSelect(dataset[index], index);
136
+ }
137
+ }
138
+ getItem(index) {
139
+ const props = this.state.props;
140
+ return this.props.dataset[index];
141
+ }
142
+ deselect(item) {
143
+ const props = this.state.props;
144
+ let selectedItem = null;
145
+ let index = isNumber(item) ? item : props.dataset.indexOf(item);
146
+ if (props.multiselect && index >= 0) {
147
+ selectedItem = [...(props.selecteditem || [])];
148
+ let selectedItemIndex = selectedItem.indexOf(props.dataset[index]);
149
+ if (selectedItemIndex >= 0) {
150
+ selectedItem.splice(selectedItemIndex, 1);
151
+ }
152
+ } else {
153
+ if (props.selecteditem === props.dataset[index]) {
154
+ selectedItem = null;
155
+ }
156
+ }
157
+ this.updateState({
158
+ props: {
159
+ selecteditem: selectedItem
160
+ }
161
+ });
162
+ }
163
+ getWidgets(widgetname, index) {
164
+ if (index >= 0 && index < this.itemWidgets.length) {
165
+ return this.itemWidgets[index][widgetname];
166
+ } else {
167
+ return this.itemWidgets.map(item => item[widgetname]).filter(widget => widget !== undefined);
168
+ }
169
+ }
81
170
  deselectAll() {
82
171
  this.updateState({
83
172
  props: {
@@ -112,10 +201,17 @@ export default class WmList extends BaseComponent {
112
201
  if (this.state.props.groupby) {
113
202
  this.setGroupData($new);
114
203
  } else {
204
+ if (!($old && $old.length) && $new && $new.length && this.loadDataOnDemand) {
205
+ this.updateState({
206
+ props: {
207
+ dataset: [...$new]
208
+ }
209
+ });
210
+ }
115
211
  const data = isArray($new) ? $new : !isEmpty($new) && isDefined($new) ? [$new] : [];
116
212
  this.updateState({
117
213
  groupedData: data[0] || props.direction === 'horizontal' ? [{
118
- key: '',
214
+ key: 'key',
119
215
  data: data
120
216
  }] : []
121
217
  }, () => {
@@ -142,6 +238,15 @@ export default class WmList extends BaseComponent {
142
238
  } else if (isArray(this.state.props.selecteditem)) {
143
239
  this.state.props.selecteditem = this.state.props.selecteditem.pop();
144
240
  }
241
+ break;
242
+ case 'loadingdata':
243
+ this.loadingData = $new && this.loadingData;
244
+ break;
245
+ case 'selecteditem':
246
+ if ($new != $old && isNumber($new)) {
247
+ this.selectItem(this.state.props.dataset[$new]);
248
+ }
249
+ break;
145
250
  }
146
251
  }
147
252
  componentDidMount() {
@@ -152,6 +257,12 @@ export default class WmList extends BaseComponent {
152
257
  this.onSelect(props.dataset[0], 0);
153
258
  });
154
259
  }
260
+ this.subscribe('scroll', event => {
261
+ const scrollPosition = event.nativeEvent.contentOffset.y + event.nativeEvent.layoutMeasurement.height;
262
+ if (scrollPosition > this.endThreshold && this.state.props.direction === 'vertical') {
263
+ this.loadData();
264
+ }
265
+ });
155
266
  super.componentDidMount();
156
267
  }
157
268
  componentDidUpdate(prevProps, prevState, snapshot) {
@@ -174,22 +285,22 @@ export default class WmList extends BaseComponent {
174
285
  renderItem(item, index, props) {
175
286
  const cols = this.getNoOfColumns();
176
287
  const isHorizontal = props.direction === 'horizontal';
177
- return /*#__PURE__*/React.createElement(Tappable, _extends({}, this.getTestPropsForAction(`item${index}`), {
288
+ return index < this.state.maxRecordsToShow || isHorizontal ? /*#__PURE__*/React.createElement(View, {
289
+ style: [this.styles.item, props.itemclass ? this.theme.getStyle(props.itemclass(item, index)) : null, this.isSelected(item) ? this.styles.selectedItem : {}]
290
+ }, /*#__PURE__*/React.createElement(Tappable, _extends({}, this.getTestPropsForAction(`item${index}`), {
178
291
  onTap: () => this.onSelect(item, index, true),
179
292
  onLongTap: () => this.invokeEventCallback('onLongtap', [null, this.proxy]),
180
293
  onDoubleTap: () => this.invokeEventCallback('onDoubletap', [null, this.proxy]),
181
294
  styles: [cols ? {
182
- width: round(100 / cols, 2) + '%'
295
+ width: '100%'
183
296
  } : null, cols || isHorizontal ? {
184
297
  paddingRight: (isNil(this.styles.item.marginRight) ? this.styles.item.margin : this.styles.item.marginRight) || 4
185
298
  } : null]
186
- }), /*#__PURE__*/React.createElement(View, {
187
- style: [this.styles.item, props.itemclass ? this.theme.getStyle(props.itemclass(item, index)) : null, this.isSelected(item) ? this.styles.selectedItem : {}]
188
- }, props.renderItem(item, index, this), this.isSelected(item) ? /*#__PURE__*/React.createElement(WmIcon, {
299
+ }), props.renderItem(item, index, this), this.isSelected(item) ? /*#__PURE__*/React.createElement(WmIcon, {
189
300
  id: this.getTestId('icon' + index),
190
301
  iconclass: "wi wi-check-circle",
191
302
  styles: this.styles.selectedIcon
192
- }) : null));
303
+ }) : null)) : null;
193
304
  }
194
305
  renderHeader(props, title) {
195
306
  return props.groupby ? /*#__PURE__*/React.createElement(Text, {
@@ -223,11 +334,13 @@ export default class WmList extends BaseComponent {
223
334
  });
224
335
  }
225
336
  renderLoadingIcon(props) {
226
- return /*#__PURE__*/React.createElement(WmIcon, {
337
+ return props.loadingicon ? /*#__PURE__*/React.createElement(WmIcon, {
227
338
  id: this.getTestId('loadingicon'),
228
339
  styles: this.styles.loadingIcon,
229
340
  iconclass: props.loadingicon,
230
341
  caption: props.loadingdatamsg
342
+ }) : /*#__PURE__*/React.createElement(ActivityIndicator, {
343
+ color: this.styles.loadingIcon.text.color
231
344
  });
232
345
  }
233
346
  getNoOfColumns() {
@@ -237,25 +350,37 @@ export default class WmList extends BaseComponent {
237
350
  }
238
351
  return 0;
239
352
  }
353
+ onLayoutChange(e) {
354
+ const l = e.nativeEvent.layout;
355
+ this.endThreshold = l.height + l.y - 100;
356
+ if (!this.endThreshold) {
357
+ this.endThreshold = -1;
358
+ }
359
+ }
240
360
  renderWithFlatList(props) {
241
361
  let isHorizontal = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
242
362
  return /*#__PURE__*/React.createElement(View, {
243
- style: this.styles.root
363
+ style: this.styles.root,
364
+ onLayout: e => this.onLayoutChange(e)
244
365
  }, !isEmpty(this.state.groupedData) ? this.state.groupedData.map((v, i) => /*#__PURE__*/React.createElement(View, {
245
- style: {
246
- marginBottom: 16
247
- },
366
+ style: this.styles.group,
248
367
  key: v.key || this.keyExtractor.getKey(v, true)
249
368
  }, this.renderHeader(props, v.key), /*#__PURE__*/React.createElement(FlatList, _extends({
250
369
  key: props.name + '_' + (isHorizontal ? 'H' : 'V') + props.itemsperrow.xs,
251
370
  keyExtractor: (item, i) => this.generateItemKey(item, i, props),
371
+ scrollEnabled: isHorizontal,
252
372
  horizontal: isHorizontal,
253
- data: v.data || [],
373
+ data: isEmpty(v.data[0]) ? [] : v.data,
254
374
  ListEmptyComponent: itemInfo => this.renderEmptyMessage(isHorizontal, itemInfo.item, itemInfo.index, props),
255
375
  renderItem: itemInfo => this.renderItem(itemInfo.item, itemInfo.index, props)
256
376
  }, isHorizontal ? {} : {
257
377
  numColumns: this.getNoOfColumns()
258
- })))) : this.renderEmptyMessage(isHorizontal, null, null, props));
378
+ })), this.loadDataOnDemand || v.data.length > this.state.maxRecordsToShow ? this.loadingData ? this.renderLoadingIcon(props) : /*#__PURE__*/React.createElement(WmLabel, {
379
+ id: this.getTestId('ondemandmessage'),
380
+ styles: this.styles.onDemandMessage,
381
+ caption: this.hasMoreData && !isHorizontal ? props.ondemandmessage : props.nodatamessage,
382
+ onTap: () => this.loadData()
383
+ }) : null)) : this.renderEmptyMessage(isHorizontal, null, null, props));
259
384
  }
260
385
  getSectionListData() {
261
386
  if (this._showSkeleton) {
@@ -273,25 +398,15 @@ export default class WmList extends BaseComponent {
273
398
  return /*#__PURE__*/React.createElement(SectionList, {
274
399
  keyExtractor: (item, i) => this.generateItemKey(item, i, props),
275
400
  horizontal: isHorizontal,
276
- onEndReached: _ref => {
277
- let {
278
- distanceFromEnd
279
- } = _ref;
280
- this.setState({
281
- currentPage: this.state.currentPage + 1
282
- });
283
- this.invokeEventCallback('onEndReached', [null, this]);
284
- },
285
401
  contentContainerStyle: this.styles.root,
286
- onEndReachedThreshold: 0.3,
287
402
  sections: this.getSectionListData(),
288
- renderSectionHeader: _ref2 => {
403
+ renderSectionHeader: _ref => {
289
404
  let {
290
405
  section: {
291
406
  key,
292
407
  data
293
408
  }
294
- } = _ref2;
409
+ } = _ref;
295
410
  return this.renderHeader(props, key);
296
411
  },
297
412
  renderSectionFooter: () => props.loadingdata ? this.renderLoadingIcon(props) : null,
@@ -1 +1 @@
1
- {"version":3,"names":["React","SectionList","Text","View","FlatList","isArray","isEmpty","isNil","round","BaseComponent","BaseComponentState","getGroupedData","isDefined","Tappable","DefaultKeyExtractor","WmLabel","WmIcon","WmListProps","DEFAULT_CLASS","WmListState","constructor","arguments","_defineProperty","WmList","props","isSelected","$item","selectedItem","state","selecteditem","indexOf","onSelect","$index","triggerTapEvent","length","undefined","disableitem","multiselect","index","selectionlimit","push","invokeEventCallback","splice","selectedItemWidgets","itemWidgets","updateState","selectedindex","proxy","selectFirstItem","initialized","dataset","groupby","deselectAll","setGroupData","items","dataItems","groupedData","match","orderby","dateformat","_this$keyExtractor","keyExtractor","clear","onPropertyChange","name","$new","$old","data","direction","key","_this$keyExtractor2","selectfirstitem","pop","componentDidMount","_props$dataset","setTimeout","componentDidUpdate","prevProps","prevState","snapshot","getDefaultStyles","isHorizontal","theme","getStyle","defaultClass","getIndex","item","generateItemKey","itemkey","_showSkeleton","getKey","renderItem","cols","getNoOfColumns","createElement","_extends","getTestPropsForAction","onTap","onLongTap","onDoubleTap","styles","width","paddingRight","marginRight","margin","style","itemclass","id","getTestId","iconclass","selectedIcon","renderHeader","title","groupHeading","subheading","heading","flex","flexDirection","listIcon","caption","renderEmptyMessage","emptyMessage","nodatamessage","renderLoadingIcon","loadingIcon","loadingicon","loadingdatamsg","itemsperrow","xs","renderWithFlatList","root","map","v","i","marginBottom","horizontal","ListEmptyComponent","itemInfo","numColumns","getSectionListData","renderWithSectionList","onEndReached","_ref","distanceFromEnd","setState","currentPage","contentContainerStyle","onEndReachedThreshold","sections","renderSectionHeader","_ref2","section","renderSectionFooter","loadingdata","renderWidget","_background"],"sources":["list.component.tsx"],"sourcesContent":["import React from 'react';\nimport { SectionList, Text, View, TouchableWithoutFeedback, FlatList } from 'react-native';\nimport { isArray, isEmpty, isNil, round } from 'lodash-es';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport {getGroupedData, isDefined} from \"@wavemaker/app-rn-runtime/core/utils\";\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport { DefaultKeyExtractor } from '@wavemaker/app-rn-runtime/core/key.extractor';\nimport WmLabel from '@wavemaker/app-rn-runtime/components/basic/label/label.component';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\n\nimport WmListProps from './list.props';\nimport { DEFAULT_CLASS, WmListStyles } from './list.styles';\n\n\nexport class WmListState extends BaseComponentState<WmListProps> {\n public selectedindex: any;\n groupedData: Array<any> = [];\n currentPage: number = 1;\n}\n\nexport default class WmList extends BaseComponent<WmListProps, WmListState, WmListStyles> {\n\n private itemWidgets = [] as any[];\n private selectedItemWidgets = {} as any;\n private keyExtractor = new DefaultKeyExtractor();\n \n constructor(props: WmListProps) {\n super(props, DEFAULT_CLASS, new WmListProps(), new WmListState());\n }\n\n private isSelected($item: any) {\n const selectedItem = this.state.props.selecteditem;\n if (isArray(selectedItem)) {\n return selectedItem.indexOf($item) >= 0;\n }\n return selectedItem === $item;\n }\n\n private onSelect($item: any, $index: number | string, triggerTapEvent = false) {\n const props = this.state.props;\n let selectedItem = null as any;\n if (props.disableitem !== true \n && (typeof props.disableitem !== 'function' || !props.disableitem($item, $index))) {\n if (props.multiselect) {\n selectedItem = [...(props.selecteditem || [])];\n const index = selectedItem.indexOf($item);\n if (index < 0) {\n if ((!props.selectionlimit)\n || props.selectionlimit < 0\n || selectedItem.length < props.selectionlimit) {\n selectedItem.push($item);\n } else {\n this.invokeEventCallback('onSelectionlimitexceed', [null, this]);\n }\n } else {\n selectedItem.splice(index, 1);\n }\n } else {\n if (props.selecteditem === $item) {\n selectedItem = null;\n } else {\n selectedItem = $item;\n }\n }\n this.selectedItemWidgets = this.itemWidgets[$index as number];\n this.updateState({\n props: { selecteditem: selectedItem },\n selectedindex: $index\n } as WmListState, () => {\n this.invokeEventCallback('onSelect', [this.proxy, $item]);\n triggerTapEvent && this.invokeEventCallback('onTap', [null, this.proxy]);\n });\n }\n }\n\n private selectFirstItem() {\n const props = this.state.props;\n if (this.initialized\n && props.dataset\n && props.dataset.length) {\n const index = props.groupby ? '00': 0;\n this.onSelect(props.dataset[0], index);\n }\n }\n\n private deselectAll() {\n this.updateState({\n props: { selecteditem: null },\n selectedindex: -1\n } as WmListState);\n }\n\n setGroupData(items: any) {\n const dataItems = items;\n const props = this.state.props;\n if (props.groupby) {\n const groupedData = dataItems && getGroupedData(dataItems, props.groupby, props.match, props.orderby, props.dateformat, this);\n this.updateState({\n groupedData: groupedData\n } as WmListState, () => {\n this.keyExtractor?.clear();\n });\n }\n }\n\n public onPropertyChange(name: string, $new: any, $old: any) {\n super.onPropertyChange(name, $new, $old);\n const props = this.state.props;\n switch(name) {\n case 'selectfirstitem':\n if ($new) {\n this.selectFirstItem();\n }\n break;\n case 'dataset':\n if (this.state.props.groupby) {\n this.setGroupData($new);\n } else {\n const data = isArray($new) ? $new : (!isEmpty($new) && isDefined($new) ? [$new] : []);\n this.updateState({\n groupedData: (data[0] || props.direction === 'horizontal' ? [{\n key: '',\n data: data\n }] : [])\n } as WmListState, () => {\n this.keyExtractor?.clear();\n });\n }\n this.itemWidgets = [];\n if (props.selectfirstitem) {\n this.selectFirstItem();\n } else {\n this.deselectAll();\n }\n break;\n case 'groupby':\n case 'match':\n this.setGroupData(this.state.props.dataset);\n break;\n case 'multiselect':\n if ($new) {\n if (!isArray(this.state.props.selecteditem)) {\n this.state.props.selecteditem = this.state.props.selecteditem ? \n [this.state.props.selecteditem] : [];\n }\n } else if (isArray(this.state.props.selecteditem)) {\n this.state.props.selecteditem = this.state.props.selecteditem.pop();\n }\n }\n }\n\n componentDidMount() {\n const props = this.state.props;\n if (this.state.props.selectfirstitem && props.dataset?.length) {\n setTimeout(() => {\n this.onSelect(props.dataset[0], 0);\n });\n }\n super.componentDidMount();\n }\n\n componentDidUpdate(prevProps: WmListProps, prevState: WmListState, snapshot?: any) {\n super.componentDidUpdate && super.componentDidUpdate(prevProps, prevState, snapshot);\n this.invokeEventCallback('onRender', [this, this.state.props.dataset]);\n }\n\n getDefaultStyles() {\n const isHorizontal = this.state.props.direction === 'horizontal';\n return this.theme.getStyle(`${this.defaultClass} ${isHorizontal ? 'app-horizontal-list' : 'app-vertical-list'}`);\n }\n\n getIndex(item: any) {\n return this.state.props.dataset.indexOf(item);\n }\n\n private generateItemKey(item: any, index: number, props: WmListProps) {\n if (props.itemkey && item && !this._showSkeleton) {\n return props.itemkey(item, index);\n }\n return 'list_item_' + this.keyExtractor.getKey(item, true);\n }\n\n private renderItem(item: any, index: number, props: WmListProps) {\n const cols = this. getNoOfColumns();\n const isHorizontal = (props.direction === 'horizontal');\n return ( \n <Tappable\n {...this.getTestPropsForAction(`item${index}`)}\n onTap={() => this.onSelect(item, index, true)}\n onLongTap={() => this.invokeEventCallback('onLongtap', [null, this.proxy])}\n onDoubleTap={() => this.invokeEventCallback('onDoubletap', [null, this.proxy])}\n styles={\n [\n cols ? {\n width: round(100/cols, 2) + '%'\n } : null,\n cols || isHorizontal? {\n paddingRight: (isNil(this.styles.item.marginRight) \n ? this.styles.item.margin : this.styles.item.marginRight) || 4\n }: null\n ]\n }>\n <View style={[\n this.styles.item,\n props.itemclass ? this.theme.getStyle(props.itemclass(item, index)) : null,\n this.isSelected(item) ? this.styles.selectedItem : {}]}>\n { props.renderItem(item, index, this)}\n { this.isSelected(item) ? (\n <WmIcon id={this.getTestId('icon' + index)}iconclass='wi wi-check-circle' styles={this.styles.selectedIcon} />\n ) : null}\n </View>\n </Tappable>\n );\n }\n\n private renderHeader(props: WmListProps, title: string) {\n return props.groupby ? (\n <Text style={this.styles.groupHeading}>{title}</Text>\n ) : (props.iconclass || props.title || props.subheading) ? (\n <View style={this.styles.heading}>\n <View style={{flex: 1, flexDirection: 'row'}}>\n <WmIcon id={this.getTestId('icon')} styles={this.styles.listIcon} iconclass={props.iconclass}></WmIcon>\n <View>\n <WmLabel id={this.getTestId('title')} styles={this.styles.title} caption={props.title}></WmLabel>\n <WmLabel id={this.getTestId('subheading')} styles={this.styles.subheading} caption={props.subheading}></WmLabel>\n </View>\n </View>\n </View>) : null;\n }\n\n private renderEmptyMessage(isHorizontal: boolean, item: any, index: any, props: WmListProps) {\n return (<WmLabel id={this.getTestId('emptymsg')} styles={this.styles.emptyMessage} caption={props.nodatamessage}></WmLabel>);\n }\n\n private renderLoadingIcon(props: WmListProps) {\n return (<WmIcon\n id={this.getTestId('loadingicon')}\n styles={this.styles.loadingIcon}\n iconclass={props.loadingicon}\n caption={props.loadingdatamsg}></WmIcon>)\n }\n\n public getNoOfColumns() {\n const props = this.state.props;\n if(props.direction === 'vertical') {\n return props.itemsperrow.xs;\n }\n return 0;\n }\n\n private renderWithFlatList(props: WmListProps, isHorizontal = false) {\n return (\n <View style={this.styles.root}>\n {!isEmpty(this.state.groupedData) ? this.state.groupedData.map((v: any, i) => ((\n <View style={{marginBottom: 16}} key={v.key || this.keyExtractor.getKey(v, true)}>\n {this.renderHeader(props, v.key)}\n <FlatList\n key={props.name + '_' + (isHorizontal ? 'H' : 'V') + props.itemsperrow.xs}\n keyExtractor={(item, i) => this.generateItemKey(item, i, props)}\n horizontal = {isHorizontal}\n data={v.data || []}\n ListEmptyComponent = {(itemInfo) => this.renderEmptyMessage(isHorizontal, itemInfo.item, itemInfo.index, props)}\n renderItem={(itemInfo) => this.renderItem(itemInfo.item, itemInfo.index, props)} \n {...(isHorizontal ? {} : {numColumns : this.getNoOfColumns()})}> \n </FlatList>\n </View>\n ))) : this.renderEmptyMessage(isHorizontal, null, null,props)\n }\n </View>);\n }\n\n private getSectionListData() {\n if (this._showSkeleton) {\n return [{\n key: '',\n data: [{}, {}, {}]\n }];\n } else if (this.state.groupedData \n && this.state.groupedData[0] \n && this.state.groupedData[0]['data'].length) {\n return this.state.groupedData;\n }\n return [];\n }\n\n private renderWithSectionList(props: WmListProps, isHorizontal = false) { \n return (\n <SectionList\n keyExtractor={(item, i) => this.generateItemKey(item, i, props)}\n horizontal = {isHorizontal}\n onEndReached={({distanceFromEnd}) => {\n this.setState({ currentPage: this.state.currentPage + 1 } as WmListState);\n this.invokeEventCallback('onEndReached', [null, this]);\n }}\n contentContainerStyle={this.styles.root}\n onEndReachedThreshold={0.3}\n sections={this.getSectionListData()}\n renderSectionHeader={({ section: {key, data}}) => {\n return this.renderHeader(props, key);\n }}\n renderSectionFooter={() => props.loadingdata ? this.renderLoadingIcon(props) : null}\n ListEmptyComponent = {(itemInfo) => this.renderEmptyMessage(isHorizontal, itemInfo.item, itemInfo.index, props)}\n renderItem={(itemInfo) => this.renderItem(itemInfo.item, itemInfo.index, props)}>\n </SectionList>\n );\n }\n\n renderWidget(props: WmListProps) {\n this.invokeEventCallback('onBeforedatarender', [this, this.state.props.dataset]);\n const isHorizontal = (props.direction === 'horizontal');\n return (\n <View style={isHorizontal ? null : { width: '100%' }}>\n {this._background}\n {(isHorizontal || !props.groupby) ?\n this.renderWithFlatList(props, isHorizontal)\n : this.renderWithSectionList(props, isHorizontal)}\n </View>);\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,EAAEC,IAAI,EAAEC,IAAI,EAA4BC,QAAQ,QAAQ,cAAc;AAC1F,SAASC,OAAO,EAAEC,OAAO,EAAEC,KAAK,EAAEC,KAAK,QAAQ,WAAW;AAC1D,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAAQC,cAAc,EAAEC,SAAS,QAAO,sCAAsC;AAC9E,SAASC,QAAQ,QAAQ,mDAAmD;AAC5E,SAASC,mBAAmB,QAAQ,8CAA8C;AAClF,OAAOC,OAAO,MAAM,kEAAkE;A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AAiB,CAACnG,KAAK,CAAC,GAAG,IAAK;MACpFgH,kBAAkB,EAAKC,QAAQ,IAAK,IAAI,CAACjB,kBAAkB,CAACvC,YAAY,EAAEwD,QAAQ,CAACnD,IAAI,EAAEmD,QAAQ,CAACnG,KAAK,EAAEd,KAAK,CAAE;MAChHmE,UAAU,EAAG8C,QAAQ,IAAK,IAAI,CAAC9C,UAAU,CAAC8C,QAAQ,CAACnD,IAAI,EAAEmD,QAAQ,CAACnG,KAAK,EAAEd,KAAK;IAAE,CACrE,CAAC;EAElB;EAEAkI,YAAYA,CAAClI,KAAkB,EAAE;IAC/B,IAAI,CAACiB,mBAAmB,CAAC,oBAAoB,EAAE,CAAC,IAAI,EAAE,IAAI,CAACb,KAAK,CAACJ,KAAK,CAAC0B,OAAO,CAAC,CAAC;IAChF,MAAM+B,YAAY,GAAIzD,KAAK,CAAC4C,SAAS,KAAK,YAAa;IACvD,oBACIpE,KAAA,CAAA8F,aAAA,CAAC3F,IAAI;MAACsG,KAAK,EAAExB,YAAY,GAAG,IAAI,GAAG;QAAEoB,KAAK,EAAE;MAAO;IAAE,GAClD,IAAI,CAACsD,WAAW,EACf1E,YAAY,IAAI,CAACzD,KAAK,CAAC2B,OAAO,GAC9B,IAAI,CAAC8E,kBAAkB,CAACzG,KAAK,EAAEyD,YAAY,CAAC,GAC5C,IAAI,CAAC2D,qBAAqB,CAACpH,KAAK,EAAEyD,YAAY,CAC9C,CAAC;EACX;AACF"}
1
+ {"version":3,"names":["React","ActivityIndicator","SectionList","Text","View","FlatList","isArray","isEmpty","isNil","isNumber","BaseComponent","BaseComponentState","getGroupedData","isDefined","Tappable","DefaultKeyExtractor","WmLabel","WmIcon","WmListProps","DEFAULT_CLASS","WmListState","constructor","arguments","_defineProperty","WmList","props","updateState","maxRecordsToShow","state","pagesize","isSelected","$item","selectedItem","selecteditem","indexOf","onSelect","$index","triggerTapEvent","length","undefined","disableitem","multiselect","index","selectionlimit","push","invokeEventCallback","splice","selectedItemWidgets","itemWidgets","selectedindex","proxy","loadDataOnDemand","navigation","loadData","loadingData","dataset","$list","loadingdata","getNextPageData","currentPage","then","data","hasMoreData","catch","err","console","error","setTimeout","selectFirstItem","initialized","groupby","clear","groupedData","selectItem","item","getItem","deselect","selectedItemIndex","getWidgets","widgetname","map","filter","widget","deselectAll","setGroupData","items","dataItems","match","orderby","dateformat","_this$keyExtractor","keyExtractor","onPropertyChange","name","$new","$old","direction","key","_this$keyExtractor2","selectfirstitem","pop","componentDidMount","_props$dataset","subscribe","event","scrollPosition","nativeEvent","contentOffset","y","layoutMeasurement","height","endThreshold","componentDidUpdate","prevProps","prevState","snapshot","getDefaultStyles","isHorizontal","theme","getStyle","defaultClass","getIndex","generateItemKey","itemkey","_showSkeleton","getKey","renderItem","cols","getNoOfColumns","createElement","style","styles","itemclass","_extends","getTestPropsForAction","onTap","onLongTap","onDoubleTap","width","paddingRight","marginRight","margin","id","getTestId","iconclass","selectedIcon","renderHeader","title","groupHeading","subheading","heading","flex","flexDirection","listIcon","caption","renderEmptyMessage","emptyMessage","nodatamessage","renderLoadingIcon","loadingicon","loadingIcon","loadingdatamsg","color","text","itemsperrow","xs","onLayoutChange","e","l","layout","renderWithFlatList","root","onLayout","v","i","group","scrollEnabled","horizontal","ListEmptyComponent","itemInfo","numColumns","onDemandMessage","ondemandmessage","getSectionListData","renderWithSectionList","contentContainerStyle","sections","renderSectionHeader","_ref","section","renderSectionFooter","renderWidget","_background"],"sources":["list.component.tsx"],"sourcesContent":["import React from 'react';\nimport { ActivityIndicator, SectionList, Text, View, FlatList, LayoutChangeEvent } from 'react-native';\nimport { isArray, isEmpty, isNil, isNumber, round } from 'lodash-es';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport {getGroupedData, isDefined} from \"@wavemaker/app-rn-runtime/core/utils\";\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport { DefaultKeyExtractor } from '@wavemaker/app-rn-runtime/core/key.extractor';\nimport WmLabel from '@wavemaker/app-rn-runtime/components/basic/label/label.component';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';\n\nimport WmListProps from './list.props';\nimport { DEFAULT_CLASS, WmListStyles } from './list.styles';\n\n\nexport class WmListState extends BaseComponentState<WmListProps> {\n public selectedindex: any;\n groupedData: Array<any> = [];\n currentPage = 1;\n maxRecordsToShow = 20;\n}\n\nexport default class WmList extends BaseComponent<WmListProps, WmListState, WmListStyles> {\n\n private itemWidgets = [] as any[];\n private selectedItemWidgets = {} as any;\n private keyExtractor = new DefaultKeyExtractor();\n private endThreshold = -1;\n private loadingData = false;\n private hasMoreData = true;\n \n constructor(props: WmListProps) {\n super(props, DEFAULT_CLASS, new WmListProps(), new WmListState());\n this.updateState({\n maxRecordsToShow: this.state.props.pagesize\n } as WmListState);\n }\n\n private isSelected($item: any) {\n const selectedItem = this.state.props.selecteditem;\n if (isArray(selectedItem)) {\n return selectedItem.indexOf($item) >= 0;\n }\n return selectedItem === $item;\n }\n\n private onSelect($item: any, $index: number | string, triggerTapEvent = false) {\n const props = this.state.props;\n let selectedItem = null as any;\n if (props.disableitem !== true \n && (typeof props.disableitem !== 'function' || !props.disableitem($item, $index))) {\n if (props.multiselect) {\n selectedItem = [...(props.selecteditem || [])];\n const index = selectedItem.indexOf($item);\n if (index < 0) {\n if ((!props.selectionlimit)\n || props.selectionlimit < 0\n || selectedItem.length < props.selectionlimit) {\n selectedItem.push($item);\n } else {\n this.invokeEventCallback('onSelectionlimitexceed', [null, this]);\n }\n } else {\n selectedItem.splice(index, 1);\n }\n } else {\n if (props.selecteditem === $item) {\n selectedItem = null;\n } else {\n selectedItem = $item;\n }\n }\n this.selectedItemWidgets = this.itemWidgets[$index as number];\n this.updateState({\n props: { selecteditem: selectedItem },\n selectedindex: $index\n } as WmListState, () => {\n this.invokeEventCallback('onSelect', [this.proxy, $item]);\n triggerTapEvent && this.invokeEventCallback('onTap', [null, this.proxy]);\n });\n }\n }\n\n private get loadDataOnDemand() {\n const navigation = this.state.props.navigation;\n return navigation === 'Scroll' || navigation === 'On-Demand';\n }\n\n private loadData() {\n if (this.loadingData) {\n return;\n }\n if (isArray(this.state.props.dataset) \n && this.state.props.dataset.length > this.state.maxRecordsToShow) {\n this.updateState({\n maxRecordsToShow: this.state.maxRecordsToShow + this.state.props.pagesize\n } as WmListState);\n } else if (this.loadDataOnDemand) {\n const $list = this.proxy as any;\n $list.loadingdata = true;\n this.loadingData = true;\n this.props.getNextPageData && this.props.getNextPageData(null, this.proxy, this.state.currentPage + 1).then((data) => {\n if (isArray(data) && data.length > 0\n && isArray(this.state.props.dataset)) {\n $list.dataset = [...this.state.props.dataset, ...data];\n this.updateState({\n currentPage : this.state.currentPage + 1,\n maxRecordsToShow: this.state.maxRecordsToShow + this.state.props.pagesize\n } as WmListState);\n this.hasMoreData = true;\n } else {\n this.hasMoreData = false;\n }\n }).catch((err) => {\n console.error(err);\n }).then(() => {\n setTimeout(() => {\n $list.loadingdata = false;\n }, 1000);\n });\n }\n }\n\n private selectFirstItem() {\n const props = this.state.props;\n if (this.initialized\n && props.dataset\n && props.dataset.length) {\n const index = props.groupby ? '00': 0;\n this.onSelect(props.dataset[0], index);\n }\n }\n \n clear(){\n this.updateState({\n groupedData: {},\n } as WmListState);\n }\n\n selectItem(item: any){\n const dataset = this.state.props.dataset;\n if(isNumber(item)){\n this.onSelect(dataset[item], item);\n }\n else{\n let index = dataset.indexOf(item);\n this.onSelect(dataset[index], index);\n }\n }\n\n getItem(index: number){\n const props = this.state.props;\n return this.props.dataset[index]\n }\n\n deselect(item: any){\n const props = this.state.props;\n let selectedItem = null as any;\n let index = isNumber(item)?item:props.dataset.indexOf(item);\n if(props.multiselect && index >= 0){\n selectedItem = [...(props.selecteditem || [])];\n let selectedItemIndex = selectedItem.indexOf(props.dataset[index])\n if(selectedItemIndex >= 0){\n selectedItem.splice(selectedItemIndex, 1);\n }\n }\n else{\n if (props.selecteditem === props.dataset[index]) {\n selectedItem = null;\n }\n }\n this.updateState({\n props: { selecteditem: selectedItem },\n \n } as WmListState);\n }\n \n getWidgets(widgetname: string, index: number){\n if(index >= 0 && index < this.itemWidgets.length){\n return this.itemWidgets[index][widgetname]\n }\n else{\n return this.itemWidgets.map(item => item[widgetname]).filter(widget => widget !== undefined);\n }\n }\n\n private deselectAll() {\n this.updateState({\n props: { selecteditem: null },\n selectedindex: -1\n } as WmListState);\n }\n\n setGroupData(items: any) {\n const dataItems = items;\n const props = this.state.props;\n if (props.groupby) {\n const groupedData = dataItems && getGroupedData(dataItems, props.groupby, props.match, props.orderby, props.dateformat, this);\n this.updateState({\n groupedData: groupedData\n } as WmListState, () => {\n this.keyExtractor?.clear();\n });\n }\n }\n\n public onPropertyChange(name: string, $new: any, $old: any) {\n super.onPropertyChange(name, $new, $old);\n const props = this.state.props;\n switch(name) {\n case 'selectfirstitem':\n if ($new) {\n this.selectFirstItem();\n }\n break;\n case 'dataset':\n if (this.state.props.groupby) {\n this.setGroupData($new);\n } else {\n if (!($old && $old.length)\n && $new && $new.length\n && this.loadDataOnDemand) {\n this.updateState({\n props: {\n dataset: [...$new]\n }\n } as WmListState);\n }\n const data = isArray($new) ? $new : (!isEmpty($new) && isDefined($new) ? [$new] : []);\n this.updateState({\n groupedData: (data[0] || props.direction === 'horizontal' ? [{\n key: 'key',\n data: data\n }] : [])\n } as WmListState, () => {\n this.keyExtractor?.clear();\n });\n }\n this.itemWidgets = [];\n if (props.selectfirstitem) {\n this.selectFirstItem();\n } else {\n this.deselectAll();\n }\n break;\n case 'groupby':\n case 'match':\n this.setGroupData(this.state.props.dataset);\n break;\n case 'multiselect':\n if ($new) {\n if (!isArray(this.state.props.selecteditem)) {\n this.state.props.selecteditem = this.state.props.selecteditem ? \n [this.state.props.selecteditem] : [];\n }\n } else if (isArray(this.state.props.selecteditem)) {\n this.state.props.selecteditem = this.state.props.selecteditem.pop();\n }\n break;\n case 'loadingdata': \n this.loadingData = $new && this.loadingData;\n break;\n case 'selecteditem':\n if($new != $old && isNumber($new)) {\n this.selectItem(this.state.props.dataset[$new])\n }\n break;\n }\n }\n\n componentDidMount() {\n const props = this.state.props;\n if (this.state.props.selectfirstitem && props.dataset?.length) {\n setTimeout(() => {\n this.onSelect(props.dataset[0], 0);\n });\n }\n this.subscribe('scroll', (event: any) => {\n const scrollPosition = event.nativeEvent.contentOffset.y + event.nativeEvent.layoutMeasurement.height;\n if (scrollPosition > this.endThreshold && this.state.props.direction === 'vertical') {\n this.loadData();\n }\n });\n super.componentDidMount();\n }\n\n componentDidUpdate(prevProps: WmListProps, prevState: WmListState, snapshot?: any) {\n super.componentDidUpdate && super.componentDidUpdate(prevProps, prevState, snapshot);\n this.invokeEventCallback('onRender', [this, this.state.props.dataset]);\n }\n\n getDefaultStyles() {\n const isHorizontal = this.state.props.direction === 'horizontal';\n return this.theme.getStyle(`${this.defaultClass} ${isHorizontal ? 'app-horizontal-list' : 'app-vertical-list'}`);\n }\n\n getIndex(item: any) {\n return this.state.props.dataset.indexOf(item);\n }\n\n private generateItemKey(item: any, index: number, props: WmListProps) {\n if (props.itemkey && item && !this._showSkeleton) {\n return props.itemkey(item, index);\n }\n return 'list_item_' + this.keyExtractor.getKey(item, true);\n }\n\n private renderItem(item: any, index: number, props: WmListProps) {\n const cols = this. getNoOfColumns();\n const isHorizontal = (props.direction === 'horizontal');\n return (index < this.state.maxRecordsToShow || isHorizontal) ? ( \n <View style={[\n this.styles.item,\n props.itemclass ? this.theme.getStyle(props.itemclass(item, index)) : null,\n this.isSelected(item) ? this.styles.selectedItem : {}]}>\n <Tappable\n {...this.getTestPropsForAction(`item${index}`)}\n onTap={() => this.onSelect(item, index, true)}\n onLongTap={() => this.invokeEventCallback('onLongtap', [null, this.proxy])}\n onDoubleTap={() => this.invokeEventCallback('onDoubletap', [null, this.proxy])}\n styles={\n [\n cols ? {\n width: '100%'\n } : null,\n cols || isHorizontal ? {\n paddingRight: (isNil(this.styles.item.marginRight)\n ? this.styles.item.margin : this.styles.item.marginRight) || 4\n } : null\n ]\n }>\n {props.renderItem(item, index, this)}\n {this.isSelected(item) ? (\n <WmIcon id={this.getTestId('icon' + index)} iconclass='wi wi-check-circle' styles={this.styles.selectedIcon} />\n ) : null}\n </Tappable>\n </View>\n ) : null;\n }\n\n private renderHeader(props: WmListProps, title: string) {\n return props.groupby ? (\n <Text style={this.styles.groupHeading}>{title}</Text>\n ) : (props.iconclass || props.title || props.subheading) ? (\n <View style={this.styles.heading}>\n <View style={{flex: 1, flexDirection: 'row'}}>\n <WmIcon id={this.getTestId('icon')} styles={this.styles.listIcon} iconclass={props.iconclass}></WmIcon>\n <View>\n <WmLabel id={this.getTestId('title')} styles={this.styles.title} caption={props.title}></WmLabel>\n <WmLabel id={this.getTestId('subheading')} styles={this.styles.subheading} caption={props.subheading}></WmLabel>\n </View>\n </View>\n </View>) : null;\n }\n\n private renderEmptyMessage(isHorizontal: boolean, item: any, index: any, props: WmListProps) {\n return (<WmLabel id={this.getTestId('emptymsg')} styles={this.styles.emptyMessage} caption={props.nodatamessage}></WmLabel>);\n }\n\n private renderLoadingIcon(props: WmListProps) {\n return props.loadingicon ? (<WmIcon\n id={this.getTestId('loadingicon')}\n styles={this.styles.loadingIcon}\n iconclass={props.loadingicon}\n caption={props.loadingdatamsg}></WmIcon>)\n : (\n <ActivityIndicator color={this.styles.loadingIcon.text.color}></ActivityIndicator>\n );\n }\n\n public getNoOfColumns() {\n const props = this.state.props;\n if(props.direction === 'vertical') {\n return props.itemsperrow.xs;\n }\n return 0;\n }\n\n private onLayoutChange(e: LayoutChangeEvent) {\n const l = e.nativeEvent.layout;\n this.endThreshold = l.height + l.y - 100;\n if (!this.endThreshold) {\n this.endThreshold = -1;\n }\n }\n\n private renderWithFlatList(props: WmListProps, isHorizontal = false) {\n return (\n <View style={this.styles.root} onLayout={e => this.onLayoutChange(e)}>\n {!isEmpty(this.state.groupedData) ? this.state.groupedData.map((v: any, i) => ((\n <View style={this.styles.group} key={v.key || this.keyExtractor.getKey(v, true)}>\n {this.renderHeader(props, v.key)}\n <FlatList\n key={props.name + '_' + (isHorizontal ? 'H' : 'V') + props.itemsperrow.xs}\n keyExtractor={(item, i) => this.generateItemKey(item, i, props)}\n scrollEnabled={isHorizontal}\n horizontal = {isHorizontal}\n data={isEmpty(v.data[0]) ? []: v.data}\n ListEmptyComponent = {(itemInfo) => this.renderEmptyMessage(isHorizontal, itemInfo.item, itemInfo.index, props)}\n renderItem={(itemInfo) => this.renderItem(itemInfo.item, itemInfo.index, props)} \n {...(isHorizontal ? {} : {numColumns : this.getNoOfColumns()})}> \n </FlatList>\n {this.loadDataOnDemand || (v.data.length > this.state.maxRecordsToShow) ? \n (this.loadingData ? \n this.renderLoadingIcon(props) :\n (<WmLabel id={this.getTestId('ondemandmessage')}\n styles={this.styles.onDemandMessage}\n caption={this.hasMoreData && !isHorizontal ? props.ondemandmessage : props.nodatamessage}\n onTap={() => this.loadData()}></WmLabel>))\n : null}\n </View>\n ))) : this.renderEmptyMessage(isHorizontal, null, null,props)\n }\n </View>);\n }\n\n private getSectionListData() {\n if (this._showSkeleton) {\n return [{\n key: '',\n data: [{}, {}, {}]\n }];\n } else if (this.state.groupedData \n && this.state.groupedData[0] \n && this.state.groupedData[0]['data'].length) {\n return this.state.groupedData;\n }\n return [];\n }\n\n private renderWithSectionList(props: WmListProps, isHorizontal = false) { \n return (\n <SectionList\n keyExtractor={(item, i) => this.generateItemKey(item, i, props)}\n horizontal = {isHorizontal}\n contentContainerStyle={this.styles.root}\n sections={this.getSectionListData()}\n renderSectionHeader={({ section: {key, data}}) => {\n return this.renderHeader(props, key);\n }}\n renderSectionFooter={() => props.loadingdata ? this.renderLoadingIcon(props) : null}\n ListEmptyComponent = {(itemInfo) => this.renderEmptyMessage(isHorizontal, itemInfo.item, itemInfo.index, props)}\n renderItem={(itemInfo) => this.renderItem(itemInfo.item, itemInfo.index, props)}>\n </SectionList>\n );\n }\n\n renderWidget(props: WmListProps) {\n this.invokeEventCallback('onBeforedatarender', [this, this.state.props.dataset]);\n const isHorizontal = (props.direction === 'horizontal');\n return (\n <View style={isHorizontal ? null : { width: '100%' }}>\n {this._background}\n {(isHorizontal || !props.groupby) ?\n this.renderWithFlatList(props, isHorizontal)\n : this.renderWithSectionList(props, isHorizontal)}\n </View>);\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,iBAAiB,EAAEC,WAAW,EAAEC,IAAI,EAAEC,IAAI,EAAEC,QAAQ,QAA2B,cAAc;AACtG,SAASC,OAAO,EAAEC,OAAO,EAAEC,KAAK,EAAEC,QAAQ,QAAe,WAAW;AACpE,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAAQC,cAAc,EAAEC,SAAS,QAAO,sCAAsC;AAC9E,SAASC,QAAQ,QAAQ,mDAAmD;AAC5E,SAASC,mBAAmB,QAAQ,8CAA8C;AAClF,OAAOC,OAAO,MAAM,kEAAkE;AACtF,OAAOC,MAAM,MAAM,gEAAgE;AAGnF,OAAOC,WAAW,MAAM,cAAc;AACtC,SAASC,aAAa,QAAsB,eAAe;AAG3D,OAAO,MAAMC,WAAW,SAAST,kBAAkB,CAAc;EAAAU,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA,sBAErC,EAAE;IAAAA,eAAA,sBACd,CAAC;IAAAA,eAAA,2BACI,EAAE;EAAA;AACvB;AAEA,eAAe,MAAMC,MAAM,SAASd,aAAa,CAAyC;EASxFW,WAAWA,CAACI,KAAkB,EAAE;IAC9B,KAAK,CAACA,KAAK,EAAEN,aAAa,EAAE,IAAID,WAAW,CAAC,CAAC,EAAE,IAAIE,WAAW,CAAC,CAAC,CAAC;IAACG,eAAA,sBAR9C,EAAE;IAAAA,eAAA,8BACM,CAAC,CAAC;IAAAA,eAAA,uBACT,IAAIR,mBAAmB,CAAC,CAAC;IAAAQ,eAAA,uBACzB,CAAC,CAAC;IA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5B;UAAEC,OAAO,EAAE;YAAC5F,GAAG;YAAEpC;UAAI;QAAC,CAAC,GAAA+H,IAAA;QAC3C,OAAO,IAAI,CAAC1C,YAAY,CAACzH,KAAK,EAAEwE,GAAG,CAAC;MACtC,CAAE;MACF6F,mBAAmB,EAAEA,CAAA,KAAMrK,KAAK,CAACgC,WAAW,GAAG,IAAI,CAACqG,iBAAiB,CAACrI,KAAK,CAAC,GAAG,IAAK;MACpFyJ,kBAAkB,EAAKC,QAAQ,IAAK,IAAI,CAACxB,kBAAkB,CAACtC,YAAY,EAAE8D,QAAQ,CAACzG,IAAI,EAAEyG,QAAQ,CAACzI,KAAK,EAAEjB,KAAK,CAAE;MAChHqG,UAAU,EAAGqD,QAAQ,IAAK,IAAI,CAACrD,UAAU,CAACqD,QAAQ,CAACzG,IAAI,EAAEyG,QAAQ,CAACzI,KAAK,EAAEjB,KAAK;IAAE,CACrE,CAAC;EAElB;EAEAsK,YAAYA,CAACtK,KAAkB,EAAE;IAC/B,IAAI,CAACoB,mBAAmB,CAAC,oBAAoB,EAAE,CAAC,IAAI,EAAE,IAAI,CAACjB,KAAK,CAACH,KAAK,CAAC8B,OAAO,CAAC,CAAC;IAChF,MAAM8D,YAAY,GAAI5F,KAAK,CAACuE,SAAS,KAAK,YAAa;IACvD,oBACIhG,KAAA,CAAAiI,aAAA,CAAC7H,IAAI;MAAC8H,KAAK,EAAEb,YAAY,GAAG,IAAI,GAAG;QAAEqB,KAAK,EAAE;MAAO;IAAE,GAClD,IAAI,CAACsD,WAAW,EACf3E,YAAY,IAAI,CAAC5F,KAAK,CAAC6C,OAAO,GAC9B,IAAI,CAACoG,kBAAkB,CAACjJ,KAAK,EAAE4F,YAAY,CAAC,GAC5C,IAAI,CAACmE,qBAAqB,CAAC/J,KAAK,EAAE4F,YAAY,CAC9C,CAAC;EACX;AACF"}
@@ -9,12 +9,14 @@ export default class WmListProps extends BaseProps {
9
9
  super(...arguments);
10
10
  _defineProperty(this, "formRef", void 0);
11
11
  _defineProperty(this, "iconclass", null);
12
+ _defineProperty(this, "deferload", false);
13
+ _defineProperty(this, "ondemandmessage", 'Load More');
12
14
  _defineProperty(this, "title", null);
13
15
  _defineProperty(this, "subheading", null);
14
16
  _defineProperty(this, "dataset", []);
15
17
  _defineProperty(this, "maxnumberofitems", 50);
16
18
  _defineProperty(this, "renderItem", () => /*#__PURE__*/React.createElement(View, null));
17
- _defineProperty(this, "loadingicon", 'fa fa-circle-o-notch fa-pulse');
19
+ _defineProperty(this, "loadingicon", null);
18
20
  _defineProperty(this, "loadingdatamsg", 'Loading...');
19
21
  _defineProperty(this, "multiselect", false);
20
22
  _defineProperty(this, "nodatamessage", 'No data found');
@@ -29,7 +31,10 @@ export default class WmListProps extends BaseProps {
29
31
  _defineProperty(this, "orderby", null);
30
32
  _defineProperty(this, "dateformat", null);
31
33
  _defineProperty(this, "selecteditem", null);
34
+ _defineProperty(this, "navigation", 'None');
32
35
  _defineProperty(this, "itemclass", null);
36
+ _defineProperty(this, "getNextPageData", null);
37
+ _defineProperty(this, "pagesize", 20);
33
38
  _defineProperty(this, "itemsperrow", {
34
39
  xs: 1,
35
40
  sm: 1,
@@ -1 +1 @@
1
- {"version":3,"names":["React","BaseProps","View","WmListProps","constructor","arguments","_defineProperty","createElement","$item","$index","xs","sm","md","lg"],"sources":["list.props.tsx"],"sourcesContent":["import React from 'react';\nimport { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { View } from 'react-native';\n\nexport default class WmListProps extends BaseProps {\n formRef: any;\n iconclass: string = null as any;\n title: string = null as any;\n subheading: string = null as any;\n dataset = [] as any;\n maxnumberofitems = 50;\n renderItem: any = () => (<View/>);\n loadingicon='fa fa-circle-o-notch fa-pulse';\n loadingdatamsg = 'Loading...';\n multiselect = false;\n nodatamessage = 'No data found';\n loadingdata = false;\n selectfirstitem = false;\n selectionlimit = -1;\n disableitem: Function | boolean = ($item: any, $index: any) => false;\n itemkey?: ($item: any, $index: any) => any = null as any;\n direction: 'horizontal' | 'vertical' = 'vertical';\n groupby: string = null as any;\n match: string = null as any;\n orderby: string = null as any;\n dateformat: string = null as any;\n selecteditem = null as any;\n itemclass: ($item: any, $index: any) => string = null as any;\n itemsperrow = {\n xs: 1,\n sm: 1,\n md: 1,\n lg: 1,\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,QAAQ,+CAA+C;AACzE,SAASC,IAAI,QAAQ,cAAc;AAEnC,eAAe,MAAMC,WAAW,SAASF,SAAS,CAAC;EAAAG,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA,oBAE3B,IAAI;IAAAA,eAAA,gBACR,IAAI;IAAAA,eAAA,qBACC,IAAI;IAAAA,eAAA,kBACf,EAAE;IAAAA,eAAA,2BACO,EAAE;IAAAA,eAAA,qBACH,mBAAON,KAAA,CAAAO,aAAA,CAACL,IAAI,MAAC,CAAE;IAAAI,eAAA,sBACrB,+BAA+B;IAAAA,eAAA,yBAC1B,YAAY;IAAAA,eAAA,sBACf,KAAK;IAAAA,eAAA,wBACH,eAAe;IAAAA,eAAA,sBACjB,KAAK;IAAAA,eAAA,0BACD,KAAK;IAAAA,eAAA,yBACN,CAAC,CAAC;IAAAA,eAAA,sBACe,CAACE,KAAU,EAAEC,MAAW,KAAK,KAAK;IAAAH,eAAA,kBACvB,IAAI;IAAAA,eAAA,oBACV,UAAU;IAAAA,eAAA,kBAC/B,IAAI;IAAAA,eAAA,gBACN,IAAI;IAAAA,eAAA,kBACF,IAAI;IAAAA,eAAA,qBACD,IAAI;IAAAA,eAAA,uBACV,IAAI;IAAAA,eAAA,oBAC8B,IAAI;IAAAA,eAAA,sBACtC;MACZI,EAAE,EAAE,CAAC;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAE;IACP,CAAC;EAAA;AACL"}
1
+ {"version":3,"names":["React","BaseProps","View","WmListProps","constructor","arguments","_defineProperty","createElement","$item","$index","xs","sm","md","lg"],"sources":["list.props.tsx"],"sourcesContent":["import React from 'react';\nimport { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { View } from 'react-native';\n\nexport default class WmListProps extends BaseProps {\n formRef: any;\n iconclass: string = null as any;\n deferload = false;\n ondemandmessage = 'Load More';\n title: string = null as any;\n subheading: string = null as any;\n dataset = [] as any;\n maxnumberofitems = 50;\n renderItem: any = () => (<View/>);\n loadingicon: string = null as any;\n loadingdatamsg = 'Loading...';\n multiselect = false;\n nodatamessage = 'No data found';\n loadingdata = false;\n selectfirstitem = false;\n selectionlimit = -1;\n disableitem: Function | boolean = ($item: any, $index: any) => false;\n itemkey?: ($item: any, $index: any) => any = null as any;\n direction: 'horizontal' | 'vertical' = 'vertical';\n groupby: string = null as any;\n match: string = null as any;\n orderby: string = null as any;\n dateformat: string = null as any;\n selecteditem = null as any;\n navigation : 'Scroll' | 'On-Demand' | 'None' = 'None';\n itemclass: ($item: any, $index: any) => string = null as any;\n getNextPageData: ($event: any, $list: any, page: number) => Promise<any> = null as any;\n pagesize = 20;\n itemsperrow = {\n xs: 1,\n sm: 1,\n md: 1,\n lg: 1,\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,QAAQ,+CAA+C;AACzE,SAASC,IAAI,QAAQ,cAAc;AAEnC,eAAe,MAAMC,WAAW,SAASF,SAAS,CAAC;EAAAG,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA,oBAE3B,IAAI;IAAAA,eAAA,oBACZ,KAAK;IAAAA,eAAA,0BACC,WAAW;IAAAA,eAAA,gBACb,IAAI;IAAAA,eAAA,qBACC,IAAI;IAAAA,eAAA,kBACf,EAAE;IAAAA,eAAA,2BACO,EAAE;IAAAA,eAAA,qBACH,mBAAON,KAAA,CAAAO,aAAA,CAACL,IAAI,MAAC,CAAE;IAAAI,eAAA,sBACX,IAAI;IAAAA,eAAA,yBACT,YAAY;IAAAA,eAAA,sBACf,KAAK;IAAAA,eAAA,wBACH,eAAe;IAAAA,eAAA,sBACjB,KAAK;IAAAA,eAAA,0BACD,KAAK;IAAAA,eAAA,yBACN,CAAC,CAAC;IAAAA,eAAA,sBACe,CAACE,KAAU,EAAEC,MAAW,KAAK,KAAK;IAAAH,eAAA,kBACvB,IAAI;IAAAA,eAAA,oBACV,UAAU;IAAAA,eAAA,kBAC/B,IAAI;IAAAA,eAAA,gBACN,IAAI;IAAAA,eAAA,kBACF,IAAI;IAAAA,eAAA,qBACD,IAAI;IAAAA,eAAA,uBACV,IAAI;IAAAA,eAAA,qBAC4B,MAAM;IAAAA,eAAA,oBACJ,IAAI;IAAAA,eAAA,0BACsB,IAAI;IAAAA,eAAA,mBACpE,EAAE;IAAAA,eAAA,sBACE;MACZI,EAAE,EAAE,CAAC;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAE;IACP,CAAC;EAAA;AACL"}
@@ -62,6 +62,19 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
62
62
  color: themeVariables.listSubTitleColor
63
63
  }
64
64
  },
65
+ onDemandMessage: {
66
+ root: {
67
+ paddingVertical: 8,
68
+ width: '100%'
69
+ },
70
+ text: {
71
+ textAlign: 'center',
72
+ color: themeVariables.listSubTitleColor
73
+ }
74
+ },
75
+ group: {
76
+ marginBottom: 16
77
+ },
65
78
  item: {
66
79
  ...BASE_THEME.getStyle('elevate1').root,
67
80
  shadowColor: 'rgba(0, 0, 0, 0.3)',
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","listIcon","marginTop","marginRight","groupHeading","backgroundColor","groupHeadingBgColor","fontSize","paddingLeft","paddingRight","lineHeight","fontFamily","baseFont","loadingIcon","flex","alignSelf","justifyContent","color","listSubTitleColor","heading","padding","marginBottom","listHeaderBgColor","title","listTitleColor","fontWeight","subheading","emptyMessage","item","getStyle","shadowColor","flexDirection","paddingTop","paddingBottom","minHeight","itemBgColor","borderColor","selectedItemBorderColor","borderRadius","borderStyle","selectedItem","selectedIcon","position","right","top","primaryColor","minWidth","width","borderBottomWidth","borderBottomColor","listDividerColor","borderRightWidth","borderRightColor"],"sources":["list.styles.ts"],"sourcesContent":["import { TextStyle, ViewStyle } 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 { WmLabelStyles } from '@wavemaker/app-rn-runtime/components/basic/label/label.styles';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\n\nexport type WmListStyles = BaseStyles & {\n heading: AllStyle,\n groupHeading: TextStyle,\n listIcon: WmIconStyles,\n loadingIcon: WmIconStyles,\n title: WmLabelStyles,\n subheading: WmLabelStyles,\n emptyMessage: WmLabelStyles,\n item: AllStyle,\n selectedItem: AllStyle,\n selectedIcon: WmIconStyles\n};\n\nexport const DEFAULT_CLASS = 'app-list';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmListStyles = defineStyles({\n root: {},\n text: {},\n listIcon: {\n root: {\n marginTop: 10,\n marginRight: 8\n }\n } as WmIconStyles,\n groupHeading: {\n backgroundColor: themeVariables.groupHeadingBgColor,\n fontSize: 16,\n paddingLeft: 8,\n paddingRight: 8,\n lineHeight: 40,\n fontFamily: themeVariables.baseFont\n },\n loadingIcon: {\n root: {\n flex: 1,\n alignSelf: 'center',\n justifyContent: 'center',\n fontSize: 16\n },\n text: {\n color: themeVariables.listSubTitleColor\n }\n } as WmIconStyles,\n heading : {\n padding: 8,\n marginBottom: 6,\n backgroundColor: themeVariables.listHeaderBgColor\n },\n title: {\n text: {\n color: themeVariables.listTitleColor,\n fontSize: 16,\n fontFamily: themeVariables.baseFont,\n lineHeight: 24,\n fontWeight: '400' \n }\n } as WmLabelStyles,\n subheading: {\n text: {\n fontSize: 14,\n lineHeight: 20,\n fontFamily: themeVariables.baseFont,\n fontWeight: '400',\n color: themeVariables.listSubTitleColor\n }\n } as WmLabelStyles,\n emptyMessage: {\n root: {\n flex: 1,\n alignSelf: 'center',\n fontSize: 16,\n lineHeight: 18,\n color: themeVariables.listSubTitleColor\n }\n } as WmLabelStyles,\n item: {\n ...BASE_THEME.getStyle('elevate1').root,\n shadowColor: 'rgba(0, 0, 0, 0.3)',\n flexDirection: 'row',\n flex: 1,\n paddingLeft: 4,\n paddingRight: 4,\n paddingTop: 4,\n paddingBottom: 4,\n minHeight: 56,\n backgroundColor: themeVariables.itemBgColor,\n borderColor: themeVariables.selectedItemBorderColor,\n borderRadius: 6,\n borderStyle: 'solid',\n },\n selectedItem : {} as AllStyle,\n selectedIcon : {\n root: {\n position: 'absolute',\n right: 0,\n top: 0\n },\n text: {\n color: themeVariables.primaryColor,\n fontSize: 16\n }\n } as WmIconStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n\n addStyle('app-horizontal-list', '', {\n groupHeading: {\n minWidth: 120,\n backgroundColor: themeVariables.groupHeadingBgColor,\n },\n item: {\n marginRight: 6,\n borderColor: themeVariables.selectedItemBorderColor,\n }\n } as WmListStyles);\n\n addStyle('app-vertical-list', '', {\n item: {\n marginBottom: 6,\n width: '100%',\n borderBottomWidth: 0,\n borderBottomColor: themeVariables.listDividerColor,\n }\n } as any as WmListStyles);\n\n addStyle('app-horizontal-list-dense', '', {\n item: {\n marginRight: 0,\n borderRadius: 0,\n borderRightWidth: 1,\n borderRightColor: 'rgba(0,0,0,0.05)'\n } as ViewStyle\n } as WmListStyles);\n\n addStyle('app-list-dense', '', {\n item: {\n marginBottom: 0,\n borderRadius: 0,\n borderBottomWidth: 1,\n borderBottomColor: 'rgba(0,0,0,0.05)'\n } as ViewStyle\n } as WmListStyles);\n});\n"],"mappings":"AACA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAi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AAE;IAC9B+B,IAAI,EAAE;MACFP,YAAY,EAAE,CAAC;MACf0B,KAAK,EAAE,MAAM;MACbC,iBAAiB,EAAE,CAAC;MACpBC,iBAAiB,EAAErD,cAAc,CAACsD;IACtC;EACJ,CAAwB,CAAC;EAEzBrD,QAAQ,CAAC,2BAA2B,EAAE,EAAE,EAAE;IACtC+B,IAAI,EAAE;MACFzB,WAAW,EAAE,CAAC;MACdmC,YAAY,EAAE,CAAC;MACfa,gBAAgB,EAAE,CAAC;MACnBC,gBAAgB,EAAE;IACtB;EACJ,CAAiB,CAAC;EAElBvD,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE;IAC3B+B,IAAI,EAAE;MACFP,YAAY,EAAE,CAAC;MACfiB,YAAY,EAAE,CAAC;MACfU,iBAAiB,EAAE,CAAC;MACpBC,iBAAiB,EAAE;IACvB;EACJ,CAAiB,CAAC;AACtB,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","listIcon","marginTop","marginRight","groupHeading","backgroundColor","groupHeadingBgColor","fontSize","paddingLeft","paddingRight","lineHeight","fontFamily","baseFont","loadingIcon","flex","alignSelf","justifyContent","color","listSubTitleColor","heading","padding","marginBottom","listHeaderBgColor","title","listTitleColor","fontWeight","subheading","emptyMessage","onDemandMessage","paddingVertical","width","textAlign","group","item","getStyle","shadowColor","flexDirection","paddingTop","paddingBottom","minHeight","itemBgColor","borderColor","selectedItemBorderColor","borderRadius","borderStyle","selectedItem","selectedIcon","position","right","top","primaryColor","minWidth","borderBottomWidth","borderBottomColor","listDividerColor","borderRightWidth","borderRightColor"],"sources":["list.styles.ts"],"sourcesContent":["import { TextStyle, ViewStyle } 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 { WmLabelStyles } from '@wavemaker/app-rn-runtime/components/basic/label/label.styles';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\n\nexport type WmListStyles = BaseStyles & {\n heading: AllStyle,\n groupHeading: TextStyle,\n listIcon: WmIconStyles,\n loadingIcon: WmIconStyles,\n title: WmLabelStyles,\n subheading: WmLabelStyles,\n emptyMessage: WmLabelStyles,\n onDemandMessage: WmLabelStyles,\n item: AllStyle,\n selectedItem: AllStyle,\n selectedIcon: WmIconStyles,\n group: AllStyle,\n};\n\nexport const DEFAULT_CLASS = 'app-list';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmListStyles = defineStyles({\n root: {},\n text: {},\n listIcon: {\n root: {\n marginTop: 10,\n marginRight: 8\n }\n } as WmIconStyles,\n groupHeading: {\n backgroundColor: themeVariables.groupHeadingBgColor,\n fontSize: 16,\n paddingLeft: 8,\n paddingRight: 8,\n lineHeight: 40,\n fontFamily: themeVariables.baseFont\n },\n loadingIcon: {\n root: {\n flex: 1,\n alignSelf: 'center',\n justifyContent: 'center',\n fontSize: 16\n },\n text: {\n color: themeVariables.listSubTitleColor\n }\n } as WmIconStyles,\n heading : {\n padding: 8,\n marginBottom: 6,\n backgroundColor: themeVariables.listHeaderBgColor\n },\n title: {\n text: {\n color: themeVariables.listTitleColor,\n fontSize: 16,\n fontFamily: themeVariables.baseFont,\n lineHeight: 24,\n fontWeight: '400' \n }\n } as WmLabelStyles,\n subheading: {\n text: {\n fontSize: 14,\n lineHeight: 20,\n fontFamily: themeVariables.baseFont,\n fontWeight: '400',\n color: themeVariables.listSubTitleColor\n }\n } as WmLabelStyles,\n emptyMessage: {\n root: {\n flex: 1,\n alignSelf: 'center',\n fontSize: 16,\n lineHeight: 18,\n color: themeVariables.listSubTitleColor\n }\n } as WmLabelStyles,\n onDemandMessage: {\n root: {\n paddingVertical: 8,\n width: '100%'\n } as ViewStyle,\n text: {\n textAlign: 'center',\n color: themeVariables.listSubTitleColor\n }\n } as WmLabelStyles,\n group: {\n marginBottom: 16,\n },\n item: {\n ...BASE_THEME.getStyle('elevate1').root,\n shadowColor: 'rgba(0, 0, 0, 0.3)',\n flexDirection: 'row',\n flex: 1,\n paddingLeft: 4,\n paddingRight: 4,\n paddingTop: 4,\n paddingBottom: 4,\n minHeight: 56,\n backgroundColor: themeVariables.itemBgColor,\n borderColor: themeVariables.selectedItemBorderColor,\n borderRadius: 6,\n borderStyle: 'solid',\n },\n selectedItem : {} as AllStyle,\n selectedIcon : {\n root: {\n position: 'absolute',\n right: 0,\n top: 0\n },\n text: {\n color: themeVariables.primaryColor,\n fontSize: 16\n }\n } as WmIconStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n\n addStyle('app-horizontal-list', '', {\n groupHeading: {\n minWidth: 120,\n backgroundColor: themeVariables.groupHeadingBgColor,\n },\n item: {\n marginRight: 6,\n borderColor: themeVariables.selectedItemBorderColor,\n }\n } as WmListStyles);\n\n addStyle('app-vertical-list', '', {\n item: {\n marginBottom: 6,\n width: '100%',\n borderBottomWidth: 0,\n borderBottomColor: themeVariables.listDividerColor,\n }\n } as any as WmListStyles);\n\n addStyle('app-horizontal-list-dense', '', {\n item: {\n marginRight: 0,\n borderRadius: 0,\n borderRightWidth: 1,\n borderRightColor: 'rgba(0,0,0,0.05)'\n } as ViewStyle\n } as WmListStyles);\n\n addStyle('app-list-dense', '', {\n item: {\n marginBottom: 0,\n borderRadius: 0,\n borderBottomWidth: 1,\n borderBottomColor: 'rgba(0,0,0,0.05)'\n } as ViewStyle\n } as WmListStyles);\n});\n"],"mappings":"AACA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAmBxF,OAAO,MAAMC,aAAa,GAAG,UAAU;AACvCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAA2B,GAAGL,YAAY,CAAC;IAC7CM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE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,CAAiB,CAAC;EAElB7C,QAAQ,CAAC,mBAAmB,EAAE,EAAE,EAAE;IAC9BoC,IAAI,EAAE;MACFZ,YAAY,EAAE,CAAC;MACfS,KAAK,EAAE,MAAM;MACbsB,iBAAiB,EAAE,CAAC;MACpBC,iBAAiB,EAAEzD,cAAc,CAAC0D;IACtC;EACJ,CAAwB,CAAC;EAEzBzD,QAAQ,CAAC,2BAA2B,EAAE,EAAE,EAAE;IACtCoC,IAAI,EAAE;MACF9B,WAAW,EAAE,CAAC;MACdwC,YAAY,EAAE,CAAC;MACfY,gBAAgB,EAAE,CAAC;MACnBC,gBAAgB,EAAE;IACtB;EACJ,CAAiB,CAAC;EAElB3D,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE;IAC3BoC,IAAI,EAAE;MACFZ,YAAY,EAAE,CAAC;MACfsB,YAAY,EAAE,CAAC;MACfS,iBAAiB,EAAE,CAAC;MACpBC,iBAAiB,EAAE;IACvB;EACJ,CAAiB,CAAC;AACtB,CAAC,CAAC"}
@@ -39,7 +39,10 @@ export default class WmBarcodescanner extends BaseComponent {
39
39
  styles: this.styles.button,
40
40
  onTap: this.onScanTap.bind(this),
41
41
  caption: props.caption,
42
- iconsize: props.iconsize
42
+ iconsize: props.iconsize,
43
+ accessibilitylabel: props.accessibilitylabel,
44
+ hint: props.hint,
45
+ accessibilityrole: props.accessibilityrole
43
46
  }));
44
47
  });
45
48
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","BaseComponent","BaseComponentState","ScanConsumer","WmBarcodescannerProps","DEFAULT_CLASS","WmButton","WmBarcodescannerState","WmBarcodescanner","constructor","props","_defineProperty","onScanTap","params","barcodeFormat","state","barcodeformat","scanner","scanBarcode","then","res","updateState","datavalue","text","invokeEventCallback","proxy","renderWidget","createElement","scanService","style","styles","root","_background","id","getTestId","iconclass","button","onTap","bind","caption","iconsize"],"sources":["barcodescanner.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { ScanInput, ScanOutput } from '@wavemaker/app-rn-runtime/variables/device/scan/scan.operation';\nimport { ScanConsumer, ScanService } from '@wavemaker/app-rn-runtime/core/device/scan-service';\n\nimport WmBarcodescannerProps from './barcodescanner.props';\nimport { DEFAULT_CLASS, WmBarcodescannerStyles } from './barcodescanner.styles';\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\n\nexport class WmBarcodescannerState extends BaseComponentState<WmBarcodescannerProps> {}\n\nexport default class WmBarcodescanner extends BaseComponent<WmBarcodescannerProps, WmBarcodescannerState, WmBarcodescannerStyles> {\n private scanner: ScanService = null as any;\n constructor(props: WmBarcodescannerProps) {\n super(props, DEFAULT_CLASS, new WmBarcodescannerProps());\n }\n\n onScanTap() {\n const params: ScanInput = {\n barcodeFormat: this.state.props.barcodeformat\n };\n this.scanner.scanBarcode(params).then((res: ScanOutput) => {\n this.updateState({\n props: {\n datavalue: res.text\n }\n } as WmBarcodescannerState, () => {\n this.invokeEventCallback('onSuccess', [null, this.proxy]);\n });\n })\n }\n\n renderWidget(props: WmBarcodescannerProps) {\n return (\n <ScanConsumer>\n {(scanService: ScanService) => {\n this.scanner = scanService;\n return <View style={this.styles.root}>\n {this._background}\n <WmButton id={this.getTestId('button')} iconclass={props.iconclass} styles={this.styles.button} onTap={this.onScanTap.bind(this)} caption={props.caption} iconsize={props.iconsize}></WmButton>\n </View>\n }}\n </ScanConsumer>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,SAASC,YAAY,QAAqB,oDAAoD;AAE9F,OAAOC,qBAAqB,MAAM,wBAAwB;AAC1D,SAASC,aAAa,QAAgC,yBAAyB;AAC/E,OAAOC,QAAQ,MAAM,oEAAoE;AAEzF,OAAO,MAAMC,qBAAqB,SAAS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QAAQ,EAAE9B,KAAK,CAAC8B;MAAS,CAAW,CAC1L,CAAC;IACT,CACY,CAAC;EAEnB;AACF"}
1
+ {"version":3,"names":["React","View","BaseComponent","BaseComponentState","ScanConsumer","WmBarcodescannerProps","DEFAULT_CLASS","WmButton","WmBarcodescannerState","WmBarcodescanner","constructor","props","_defineProperty","onScanTap","params","barcodeFormat","state","barcodeformat","scanner","scanBarcode","then","res","updateState","datavalue","text","invokeEventCallback","proxy","renderWidget","createElement","scanService","style","styles","root","_background","id","getTestId","iconclass","button","onTap","bind","caption","iconsize","accessibilitylabel","hint","accessibilityrole"],"sources":["barcodescanner.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { ScanInput, ScanOutput } from '@wavemaker/app-rn-runtime/variables/device/scan/scan.operation';\nimport { ScanConsumer, ScanService } from '@wavemaker/app-rn-runtime/core/device/scan-service';\n\nimport WmBarcodescannerProps from './barcodescanner.props';\nimport { DEFAULT_CLASS, WmBarcodescannerStyles } from './barcodescanner.styles';\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\n\nexport class WmBarcodescannerState extends BaseComponentState<WmBarcodescannerProps> {}\n\nexport default class WmBarcodescanner extends BaseComponent<WmBarcodescannerProps, WmBarcodescannerState, WmBarcodescannerStyles> {\n private scanner: ScanService = null as any;\n constructor(props: WmBarcodescannerProps) {\n super(props, DEFAULT_CLASS, new WmBarcodescannerProps());\n }\n\n onScanTap() {\n const params: ScanInput = {\n barcodeFormat: this.state.props.barcodeformat\n };\n this.scanner.scanBarcode(params).then((res: ScanOutput) => {\n this.updateState({\n props: {\n datavalue: res.text\n }\n } as WmBarcodescannerState, () => {\n this.invokeEventCallback('onSuccess', [null, this.proxy]);\n });\n })\n }\n\n renderWidget(props: WmBarcodescannerProps) {\n return (\n <ScanConsumer>\n {(scanService: ScanService) => {\n this.scanner = scanService;\n return <View style={this.styles.root}>\n {this._background}\n <WmButton id={this.getTestId('button')} iconclass={props.iconclass} styles={this.styles.button} onTap={this.onScanTap.bind(this)} caption={props.caption} iconsize={props.iconsize} accessibilitylabel={props.accessibilitylabel} hint={props.hint} accessibilityrole={props.accessibilityrole}></WmButton>\n </View>\n }}\n </ScanConsumer>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,SAASC,YAAY,QAAqB,oDAAoD;AAE9F,OAAOC,qBAAqB,MAAM,wBAAwB;AAC1D,SAASC,aAAa,QAAgC,yBAAyB;AAC/E,OAAOC,QAAQ,MAAM,oEAAoE;AAEzF,OAAO,MAAMC,qBAAqB,SAASL,kBAAkB,CAAwB;AAErF,eAAe,MAAMM,gBAAgB,SAASP,aAAa,CAAuE;EAEhIQ,WAAWA,CAACC,KAA4B,EAAE;IACxC,KAAK,CAACA,KAAK,EAAEL,aAAa,EAAE,IAAID,qBAAqB,CAAC,CAAC,CAAC;IAACO,eAAA,kBAF5B,IAAI;EAGnC;EAEAC,SAASA,CAAA,EAAG;IACV,MAAMC,MAAiB,GAAG;MACxBC,aAAa,EAAE,IAAI,CAACC,KAAK,CAACL,KAAK,CAACM;IAClC,CAAC;IACD,IAAI,CAACC,OAAO,CAACC,WAAW,CAACL,MAAM,CAAC,CAACM,IAAI,CAAEC,GAAe,IAAK;MACzD,IAAI,CAACC,WAAW,CAAC;QACfX,KAAK,EAAE;UACLY,SAAS,EAAEF,GAAG,CAACG;QACjB;MACF,CAAC,EAA2B,MAAM;QAChC,IAAI,CAACC,mBAAmB,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,CAACC,KAAK,CAAC,CAAC;MAC3D,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ;EAEAC,YAAYA,CAAChB,KAA4B,EAAE;IACzC,oBACEX,KAAA,CAAA4B,aAAA,CAACxB,YAAY,QACTyB,WAAwB,IAAK;MAC7B,IAAI,CAACX,OAAO,GAAGW,WAAW;MAC1B,oBAAO7B,KAAA,CAAA4B,aAAA,CAAC3B,IAAI;QAAC6B,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC;MAAK,GAClC,IAAI,CAACC,WAAW,eACjBjC,KAAA,CAAA4B,aAAA,CAACrB,QAAQ;QAAC2B,EAAE,EAAE,IAAI,CAACC,SAAS,CAAC,QAAQ,CAAE;QAACC,SAAS,EAAEzB,KAAK,CAACyB,SAAU;QAACL,MAAM,EAAE,IAAI,CAACA,MAAM,CAACM,MAAO;QAACC,KAAK,EAAE,IAAI,CAACzB,SAAS,CAAC0B,IAAI,CAAC,IAAI,CAAE;QAACC,OAAO,EAAE7B,KAAK,CAAC6B,OAAQ;QAACC,QAAQ,EAAE9B,KAAK,CAAC8B,QAAS;QAACC,kBAAkB,EAAE/B,KAAK,CAAC+B,kBAAmB;QAACC,IAAI,EAAEhC,KAAK,CAACgC,IAAK;QAACC,iBAAiB,EAAEjC,KAAK,CAACiC;MAAkB,CAAW,CACtS,CAAC;IACT,CACY,CAAC;EAEnB;AACF"}
@@ -10,6 +10,9 @@ export default class WmBarcodescannerProps extends BaseProps {
10
10
  _defineProperty(this, "datavalue", void 0);
11
11
  _defineProperty(this, "iconclass", 'fa fa-barcode');
12
12
  _defineProperty(this, "iconsize", 16);
13
+ _defineProperty(this, "accessibilitylabel", undefined);
14
+ _defineProperty(this, "hint", undefined);
15
+ _defineProperty(this, "accessibilityrole", "imagebutton");
13
16
  }
14
17
  }
15
18
  //# sourceMappingURL=barcodescanner.props.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmBarcodescannerProps","constructor","arguments","_defineProperty"],"sources":["barcodescanner.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmBarcodescannerProps extends BaseProps {\n barcodeformat: string = 'ALL';\n caption: string = null as any;\n datavalue: any;\n iconclass: string = 'fa fa-barcode';\n iconsize: number = 16;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,qBAAqB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,wBACnC,KAAK;IAAAA,eAAA,kBACX,IAAI;IAAAA,eAAA;IAAAA,eAAA,oBAEF,eAAe;IAAAA,eAAA,mBAChB,EAAE;EAAA;AACvB"}
1
+ {"version":3,"names":["BaseProps","WmBarcodescannerProps","constructor","arguments","_defineProperty","undefined"],"sources":["barcodescanner.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { AccessibilityRole } from 'react-native';\n\nexport default class WmBarcodescannerProps extends BaseProps {\n barcodeformat: string = 'ALL';\n caption: string = null as any;\n datavalue: any;\n iconclass: string = 'fa fa-barcode';\n iconsize: number = 16;\n accessibilitylabel?: string = undefined;\n hint?: string = undefined;\n accessibilityrole?: AccessibilityRole = \"imagebutton\";\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAGzE,eAAe,MAAMC,qBAAqB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,wBACnC,KAAK;IAAAA,eAAA,kBACX,IAAI;IAAAA,eAAA;IAAAA,eAAA,oBAEF,eAAe;IAAAA,eAAA,mBAChB,EAAE;IAAAA,eAAA,6BACSC,SAAS;IAAAD,eAAA,eACvBC,SAAS;IAAAD,eAAA,4BACe,aAAa;EAAA;AACvD"}