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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (438) hide show
  1. app-rn-runtime/actions/base-action.js.map +1 -1
  2. app-rn-runtime/actions/login-action.js.map +1 -1
  3. app-rn-runtime/actions/logout-action.js.map +1 -1
  4. app-rn-runtime/actions/navigation-action.js +14 -2
  5. app-rn-runtime/actions/navigation-action.js.map +1 -1
  6. app-rn-runtime/actions/notification-action.js.map +1 -1
  7. app-rn-runtime/actions/timer-action.js.map +1 -1
  8. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -1
  9. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -1
  10. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -1
  11. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -1
  12. app-rn-runtime/components/advanced/carousel/carousel.component.js +1 -1
  13. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  14. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  15. app-rn-runtime/components/advanced/carousel/carousel.styles.js +16 -0
  16. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  17. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  18. app-rn-runtime/components/advanced/login/login.props.js.map +1 -1
  19. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  20. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -1
  21. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  22. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  23. app-rn-runtime/components/basic/anchor/anchor.component.js +1 -0
  24. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  25. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  26. app-rn-runtime/components/basic/anchor/anchor.styles.js +5 -0
  27. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  28. app-rn-runtime/components/basic/animatedview.component.js +1 -3
  29. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  30. app-rn-runtime/components/basic/audio/audio.component.js +232 -0
  31. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -0
  32. app-rn-runtime/components/basic/audio/audio.props.js +15 -0
  33. app-rn-runtime/components/basic/audio/audio.props.js.map +1 -0
  34. app-rn-runtime/components/basic/audio/audio.styles.js +61 -0
  35. app-rn-runtime/components/basic/audio/audio.styles.js.map +1 -0
  36. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  37. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  38. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  39. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js.map +1 -1
  40. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js.map +1 -1
  41. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  42. app-rn-runtime/components/basic/custom/custom.component.js.map +1 -1
  43. app-rn-runtime/components/basic/custom/custom.props.js.map +1 -1
  44. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  45. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  46. app-rn-runtime/components/basic/icon/icon.styles.js +5 -0
  47. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  48. app-rn-runtime/components/basic/label/label.component.js +2 -1
  49. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  50. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  51. app-rn-runtime/components/basic/label/label.styles.js +8 -0
  52. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  53. app-rn-runtime/components/basic/lottie/lottie.component.js.map +1 -1
  54. app-rn-runtime/components/basic/lottie/lottie.props.js.map +1 -1
  55. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  56. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  57. app-rn-runtime/components/basic/message/message.styles.js +22 -0
  58. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  59. app-rn-runtime/components/basic/modal/modal.component.js.map +1 -1
  60. app-rn-runtime/components/basic/modal/modal.props.js.map +1 -1
  61. app-rn-runtime/components/basic/modal/modal.styles.js.map +1 -1
  62. app-rn-runtime/components/basic/picture/picture.component.js +3 -3
  63. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  64. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  65. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  66. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  67. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  68. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  69. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  70. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  71. app-rn-runtime/components/basic/progress-circle/progress-circle.styles.js.map +1 -1
  72. app-rn-runtime/components/basic/search/local-data-provider.js.map +1 -1
  73. app-rn-runtime/components/basic/search/search.component.js +1 -1
  74. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  75. app-rn-runtime/components/basic/search/search.props.js +1 -0
  76. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  77. app-rn-runtime/components/basic/search/search.styles.js +47 -0
  78. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  79. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  80. app-rn-runtime/components/basic/spinner/spinner.component.js +3 -1
  81. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  82. app-rn-runtime/components/basic/spinner/spinner.props.js.map +1 -1
  83. app-rn-runtime/components/basic/spinner/spinner.styles.js +8 -0
  84. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  85. app-rn-runtime/components/basic/video/video.component.js +2 -2
  86. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  87. app-rn-runtime/components/basic/video/video.props.js.map +1 -1
  88. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  89. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  90. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  91. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  92. app-rn-runtime/components/chart/basechart.props.js +1 -0
  93. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  94. app-rn-runtime/components/chart/basechart.styles.js +17 -0
  95. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  96. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  97. app-rn-runtime/components/chart/column-chart/column-chart.component.js.map +1 -1
  98. app-rn-runtime/components/chart/donut-chart/donut-chart.component.js.map +1 -1
  99. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js +0 -1
  100. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js.map +1 -1
  101. app-rn-runtime/components/chart/legend/legend.component.js +36 -0
  102. app-rn-runtime/components/chart/legend/legend.component.js.map +1 -0
  103. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  104. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  105. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +119 -40
  106. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  107. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js +1 -2
  108. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  109. app-rn-runtime/components/chart/theme/chart.theme.js.map +1 -1
  110. app-rn-runtime/components/container/accordion/accordion.component.js +75 -119
  111. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  112. app-rn-runtime/components/container/accordion/accordion.props.js +1 -0
  113. app-rn-runtime/components/container/accordion/accordion.props.js.map +1 -1
  114. app-rn-runtime/components/container/accordion/accordion.styles.js +14 -4
  115. app-rn-runtime/components/container/accordion/accordion.styles.js.map +1 -1
  116. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +48 -7
  117. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  118. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -1
  119. app-rn-runtime/components/container/container.component.js.map +1 -1
  120. app-rn-runtime/components/container/container.props.js.map +1 -1
  121. app-rn-runtime/components/container/container.styles.js.map +1 -1
  122. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -1
  123. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -1
  124. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -1
  125. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -1
  126. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js.map +1 -1
  127. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js.map +1 -1
  128. app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js.map +1 -1
  129. app-rn-runtime/components/container/linearlayout/linearlayout.component.js.map +1 -1
  130. app-rn-runtime/components/container/linearlayout/linearlayout.props.js.map +1 -1
  131. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -1
  132. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -1
  133. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js.map +1 -1
  134. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js.map +1 -1
  135. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js.map +1 -1
  136. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js.map +1 -1
  137. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  138. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  139. app-rn-runtime/components/container/panel/panel.styles.js +9 -0
  140. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  141. app-rn-runtime/components/container/partial-host.component.js.map +1 -1
  142. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +30 -5
  143. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  144. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js.map +1 -1
  145. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +10 -1
  146. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  147. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  148. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +1 -1
  149. app-rn-runtime/components/container/tabs/tabs.component.js +5 -2
  150. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  151. app-rn-runtime/components/container/tabs/tabs.props.js.map +1 -1
  152. app-rn-runtime/components/container/tabs/tabs.styles.js +39 -0
  153. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  154. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  155. app-rn-runtime/components/container/tile/tile.props.js.map +1 -1
  156. app-rn-runtime/components/container/tile/tile.styles.js.map +1 -1
  157. app-rn-runtime/components/container/wizard/wizard.component.js +15 -6
  158. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  159. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  160. app-rn-runtime/components/container/wizard/wizard.styles.js +53 -1
  161. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  162. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  163. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  164. app-rn-runtime/components/data/card/card-content/card-content.component.js.map +1 -1
  165. app-rn-runtime/components/data/card/card-content/card-content.props.js.map +1 -1
  166. app-rn-runtime/components/data/card/card-footer/card-footer.component.js.map +1 -1
  167. app-rn-runtime/components/data/card/card-footer/card-footer.props.js.map +1 -1
  168. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  169. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  170. app-rn-runtime/components/data/form/form-action/form-action.component.js +1 -0
  171. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  172. app-rn-runtime/components/data/form/form-action/form-action.props.js +3 -1
  173. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  174. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  175. app-rn-runtime/components/data/form/form-body/form-body.component.js.map +1 -1
  176. app-rn-runtime/components/data/form/form-body/form-body.props.js.map +1 -1
  177. app-rn-runtime/components/data/form/form-field/form-field.component.js +9 -2
  178. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  179. app-rn-runtime/components/data/form/form-field/form-field.props.js +1 -0
  180. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  181. app-rn-runtime/components/data/form/form-field/form-field.styles.js.map +1 -1
  182. app-rn-runtime/components/data/form/form-footer/form-footer.component.js.map +1 -1
  183. app-rn-runtime/components/data/form/form-footer/form-footer.props.js.map +1 -1
  184. app-rn-runtime/components/data/form/form.component.js +51 -4
  185. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  186. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  187. app-rn-runtime/components/data/form/form.styles.js +6 -0
  188. app-rn-runtime/components/data/form/form.styles.js.map +1 -1
  189. app-rn-runtime/components/data/list/list-template/list-template.component.js.map +1 -1
  190. app-rn-runtime/components/data/list/list-template/list-template.props.js.map +1 -1
  191. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  192. app-rn-runtime/components/data/list/list.component.js +77 -16
  193. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  194. app-rn-runtime/components/data/list/list.props.js +2 -0
  195. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  196. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  197. app-rn-runtime/components/data/liveform/liveform.component.js.map +1 -1
  198. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  199. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  200. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  201. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  202. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  203. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  204. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  205. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  206. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js +9 -0
  207. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  208. app-rn-runtime/components/dialogs/dialog/dialog.component.js +5 -2
  209. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  210. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  211. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js.map +1 -1
  212. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js.map +1 -1
  213. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  214. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -1
  215. app-rn-runtime/components/input/basedataset/basedataset.component.js.map +1 -1
  216. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  217. app-rn-runtime/components/input/baseinput/baseinput.component.js +2 -2
  218. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  219. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  220. app-rn-runtime/components/input/basenumber/basenumber.component.js +1 -1
  221. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  222. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  223. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  224. app-rn-runtime/components/input/calendar/calendar.props.js.map +1 -1
  225. app-rn-runtime/components/input/calendar/calendar.styles.js +22 -0
  226. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  227. app-rn-runtime/components/input/calendar/views/month-view.js +1 -0
  228. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  229. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  230. app-rn-runtime/components/input/checkbox/checkbox.props.js.map +1 -1
  231. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  232. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  233. app-rn-runtime/components/input/chips/chips.component.js +1 -0
  234. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  235. app-rn-runtime/components/input/chips/chips.props.js.map +1 -1
  236. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  237. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  238. app-rn-runtime/components/input/currency/currency.component.js +6 -4
  239. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  240. app-rn-runtime/components/input/currency/currency.props.js +1 -1
  241. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  242. app-rn-runtime/components/input/currency/currency.styles.js +9 -0
  243. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  244. app-rn-runtime/components/input/epoch/base-datetime.component.js +5 -2
  245. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  246. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  247. app-rn-runtime/components/input/epoch/date/date.props.js.map +1 -1
  248. app-rn-runtime/components/input/epoch/date/date.styles.js +9 -0
  249. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  250. app-rn-runtime/components/input/epoch/date-picker.component.js.map +1 -1
  251. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  252. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  253. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +9 -0
  254. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  255. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  256. app-rn-runtime/components/input/epoch/time/time.props.js.map +1 -1
  257. app-rn-runtime/components/input/epoch/time/time.styles.js +9 -0
  258. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  259. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  260. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  261. app-rn-runtime/components/input/number/number.component.js +6 -4
  262. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  263. app-rn-runtime/components/input/number/number.props.js +1 -1
  264. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  265. app-rn-runtime/components/input/number/number.styles.js +5 -0
  266. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  267. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  268. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  269. app-rn-runtime/components/input/rating/rating.component.js +1 -1
  270. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  271. app-rn-runtime/components/input/rating/rating.props.js.map +1 -1
  272. app-rn-runtime/components/input/select/select.component.js +1 -1
  273. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  274. app-rn-runtime/components/input/select/select.props.js.map +1 -1
  275. app-rn-runtime/components/input/select/select.styles.js +10 -0
  276. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  277. app-rn-runtime/components/input/slider/slider.component.js +2 -1
  278. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  279. app-rn-runtime/components/input/slider/slider.props.js.map +1 -1
  280. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  281. app-rn-runtime/components/input/switch/switch.props.js.map +1 -1
  282. app-rn-runtime/components/input/switch/switch.styles.js +36 -0
  283. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  284. app-rn-runtime/components/input/text/text.component.js +5 -3
  285. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  286. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  287. app-rn-runtime/components/input/text/text.styles.js +5 -0
  288. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  289. app-rn-runtime/components/input/textarea/textarea.component.js +5 -3
  290. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  291. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  292. app-rn-runtime/components/input/textarea/textarea.styles.js +5 -0
  293. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  294. app-rn-runtime/components/input/toggle/toggle.component.js +17 -11
  295. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  296. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  297. app-rn-runtime/components/input/toggle/toggle.styles.js +28 -3
  298. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  299. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  300. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  301. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  302. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  303. app-rn-runtime/components/navigation/basenav/basenav.props.js.map +1 -1
  304. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  305. app-rn-runtime/components/navigation/menu/menu.props.js.map +1 -1
  306. app-rn-runtime/components/navigation/menu/menu.styles.js +6 -0
  307. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  308. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  309. app-rn-runtime/components/navigation/navbar/navbar.props.js.map +1 -1
  310. app-rn-runtime/components/navigation/navbar/navbar.styles.js.map +1 -1
  311. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  312. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  313. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  314. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  315. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  316. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  317. app-rn-runtime/components/page/content/content.component.js.map +1 -1
  318. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  319. app-rn-runtime/components/page/left-panel/left-panel.props.js.map +1 -1
  320. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  321. app-rn-runtime/components/page/page-content/page-content.props.js.map +1 -1
  322. app-rn-runtime/components/page/page.component.js.map +1 -1
  323. app-rn-runtime/components/page/partial/partial.component.js.map +1 -1
  324. app-rn-runtime/components/page/partial-container/partial-container.component.js.map +1 -1
  325. app-rn-runtime/components/page/partial-container/partial-container.props.js.map +1 -1
  326. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  327. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  328. app-rn-runtime/components/prefab/prefab-container.component.js.map +1 -1
  329. app-rn-runtime/core/asset.provider.js.map +1 -1
  330. app-rn-runtime/core/base.component.js +19 -14
  331. app-rn-runtime/core/base.component.js.map +1 -1
  332. app-rn-runtime/core/components/textinput.component.js +37 -0
  333. app-rn-runtime/core/components/textinput.component.js.map +1 -0
  334. app-rn-runtime/core/device/camera-service.js.map +1 -1
  335. app-rn-runtime/core/device/scan-service.js.map +1 -1
  336. app-rn-runtime/core/display.manager.js.map +1 -1
  337. app-rn-runtime/core/event-notifier.js.map +1 -1
  338. app-rn-runtime/core/fixed-view.component.js.map +1 -1
  339. app-rn-runtime/core/formatters.js.map +1 -1
  340. app-rn-runtime/core/i18n.service.js +2 -0
  341. app-rn-runtime/core/i18n.service.js.map +1 -0
  342. app-rn-runtime/core/if.component.js +3 -3
  343. app-rn-runtime/core/if.component.js.map +1 -1
  344. app-rn-runtime/core/imageSizeEstimator.js.map +1 -1
  345. app-rn-runtime/core/injector.js +2 -1
  346. app-rn-runtime/core/injector.js.map +1 -1
  347. app-rn-runtime/core/logger.js +4 -1
  348. app-rn-runtime/core/logger.js.map +1 -1
  349. app-rn-runtime/core/modal.service.js.map +1 -1
  350. app-rn-runtime/core/navigation.service.js.map +1 -1
  351. app-rn-runtime/core/network.service.js +17 -15
  352. app-rn-runtime/core/network.service.js.map +1 -1
  353. app-rn-runtime/core/partial.service.js.map +1 -1
  354. app-rn-runtime/core/props.provider.js.map +1 -1
  355. app-rn-runtime/core/scroll-view.component.js.map +1 -1
  356. app-rn-runtime/core/security.service.js.map +1 -1
  357. app-rn-runtime/core/spinner.service.js.map +1 -1
  358. app-rn-runtime/core/storage.service.js.map +1 -1
  359. app-rn-runtime/core/tappable.component.js +11 -2
  360. app-rn-runtime/core/tappable.component.js.map +1 -1
  361. app-rn-runtime/core/toast.service.js.map +1 -1
  362. app-rn-runtime/core/utils.js +18 -0
  363. app-rn-runtime/core/utils.js.map +1 -1
  364. app-rn-runtime/core/viewport.js.map +1 -1
  365. app-rn-runtime/gestures/swipe.animation.js +9 -4
  366. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  367. app-rn-runtime/package.json +3 -3
  368. app-rn-runtime/runtime/App.js +14 -6
  369. app-rn-runtime/runtime/App.js.map +1 -1
  370. app-rn-runtime/runtime/App.navigator.js +11 -2
  371. app-rn-runtime/runtime/App.navigator.js.map +1 -1
  372. app-rn-runtime/runtime/base-fragment.component.js +19 -6
  373. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  374. app-rn-runtime/runtime/base-page.component.js +2 -0
  375. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  376. app-rn-runtime/runtime/base-partial.component.js.map +1 -1
  377. app-rn-runtime/runtime/base-prefab.component.js +1 -5
  378. app-rn-runtime/runtime/base-prefab.component.js.map +1 -1
  379. app-rn-runtime/runtime/lib-patch.js.map +1 -1
  380. app-rn-runtime/runtime/memo.component.js.map +1 -1
  381. app-rn-runtime/runtime/navigator/drawer.navigator.js.map +1 -1
  382. app-rn-runtime/runtime/navigator/stack.navigator.js.map +1 -1
  383. app-rn-runtime/runtime/services/app-display-manager.service.js.map +1 -1
  384. app-rn-runtime/runtime/services/app-i18n.service.js +20 -0
  385. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  386. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  387. app-rn-runtime/runtime/services/app-security.service.js +7 -7
  388. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  389. app-rn-runtime/runtime/services/app-spinner.service.js +3 -2
  390. app-rn-runtime/runtime/services/app-spinner.service.js.map +1 -1
  391. app-rn-runtime/runtime/services/app-toast.service.js.map +1 -1
  392. app-rn-runtime/runtime/services/device/calendar-service.js.map +1 -1
  393. app-rn-runtime/runtime/services/device/camera-service.js +2 -3
  394. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  395. app-rn-runtime/runtime/services/device/contacts-service.js.map +1 -1
  396. app-rn-runtime/runtime/services/device/location-service.js.map +1 -1
  397. app-rn-runtime/runtime/services/device/permissions.js.map +1 -1
  398. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  399. app-rn-runtime/runtime/services/partial.service.js.map +1 -1
  400. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  401. app-rn-runtime/runtime/watcher.js.map +1 -1
  402. app-rn-runtime/styles/MediaQueryList.js.map +1 -1
  403. app-rn-runtime/styles/background.component.js +51 -12
  404. app-rn-runtime/styles/background.component.js.map +1 -1
  405. app-rn-runtime/styles/style-prop.validator.js +4 -0
  406. app-rn-runtime/styles/style-prop.validator.js.map +1 -1
  407. app-rn-runtime/styles/style-props.js.map +1 -1
  408. app-rn-runtime/styles/theme.js +8 -3
  409. app-rn-runtime/styles/theme.js.map +1 -1
  410. app-rn-runtime/styles/theme.variables.js +55 -1
  411. app-rn-runtime/styles/theme.variables.js.map +1 -1
  412. app-rn-runtime/variables/base-variable.js +3 -3
  413. app-rn-runtime/variables/base-variable.js.map +1 -1
  414. app-rn-runtime/variables/device/calendar/create-event.operation.js.map +1 -1
  415. app-rn-runtime/variables/device/calendar/delete-event.operation.js.map +1 -1
  416. app-rn-runtime/variables/device/calendar/get-events.operation.js.map +1 -1
  417. app-rn-runtime/variables/device/camera/capture-image.operation.js.map +1 -1
  418. app-rn-runtime/variables/device/camera/capture-video.operation.js.map +1 -1
  419. app-rn-runtime/variables/device/contacts/get-contacts.operation.js.map +1 -1
  420. app-rn-runtime/variables/device/device/app-info.operation.js.map +1 -1
  421. app-rn-runtime/variables/device/device/current-geo-position.operation.js.map +1 -1
  422. app-rn-runtime/variables/device/device/device-info.operation.js.map +1 -1
  423. app-rn-runtime/variables/device/device/network-info.operation.js.map +1 -1
  424. app-rn-runtime/variables/device/device/vibrate.operation.js.map +1 -1
  425. app-rn-runtime/variables/device/file/upload-file.operation.js.map +1 -1
  426. app-rn-runtime/variables/device/operation.provider.js.map +1 -1
  427. app-rn-runtime/variables/device/scan/scan.operation.js.map +1 -1
  428. app-rn-runtime/variables/device-variable.js.map +1 -1
  429. app-rn-runtime/variables/http.service.js +1 -1
  430. app-rn-runtime/variables/http.service.js.map +1 -1
  431. app-rn-runtime/variables/live-variable.js +3 -3
  432. app-rn-runtime/variables/live-variable.js.map +1 -1
  433. app-rn-runtime/variables/model-variable.js.map +1 -1
  434. app-rn-runtime/variables/service-variable.js +11 -3
  435. app-rn-runtime/variables/service-variable.js.map +1 -1
  436. app-rn-runtime/variables/utils/dataset-util.js.map +1 -1
  437. app-rn-runtime/variables/utils/inflight-queue.js.map +1 -1
  438. app-rn-runtime/variables/utils/variable.utils.js.map +1 -1
@@ -2,11 +2,12 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
2
2
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
3
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
4
  import React from 'react';
5
- import { SectionList, Text, View, TouchableWithoutFeedback } from 'react-native';
5
+ import { SectionList, Text, View } from 'react-native';
6
6
  import { FlatList } from 'react-native-gesture-handler';
7
7
  import { isArray } 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
+ import { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';
10
11
  import WmLabel from '@wavemaker/app-rn-runtime/components/basic/label/label.component';
11
12
  import WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';
12
13
  import WmListProps from './list.props';
@@ -19,23 +20,71 @@ export class WmListState extends BaseComponentState {
19
20
  _defineProperty(this, "currentPage", 1);
20
21
  }
21
22
  }
23
+ class DefaultKeyExtractor {
24
+ constructor() {
25
+ _defineProperty(this, "store", new Map());
26
+ _defineProperty(this, "nextKey", 1);
27
+ }
28
+ getKey(o) {
29
+ let create = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
30
+ let k = this.store.get(o);
31
+ if (!k && create) {
32
+ k = `key:${Date.now()}:${this.nextKey++}`;
33
+ this.store.set(o, k);
34
+ }
35
+ return k;
36
+ }
37
+ clear() {
38
+ this.store = new Map();
39
+ }
40
+ }
22
41
  export default class WmList extends BaseComponent {
23
42
  constructor(props) {
24
43
  super(props, DEFAULT_CLASS, new WmListProps(), new WmListState());
25
44
  _defineProperty(this, "itemWidgets", []);
26
45
  _defineProperty(this, "selectedItemWidgets", {});
27
- _defineProperty(this, "key", 1);
46
+ _defineProperty(this, "keyExtractor", new DefaultKeyExtractor());
47
+ }
48
+ isSelected($item) {
49
+ const selectedItem = this.state.props.selecteditem;
50
+ if (isArray(selectedItem)) {
51
+ return selectedItem.indexOf($item) >= 0;
52
+ }
53
+ return selectedItem === $item;
28
54
  }
29
55
  onSelect($item, $index) {
30
- if (!this.state.props.disableitem($item, $index)) {
56
+ let triggerTapEvent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
57
+ const props = this.state.props;
58
+ let selectedItem = null;
59
+ if (!props.disableitem($item, $index)) {
60
+ if (props.multiselect) {
61
+ selectedItem = [...(props.selecteditem || [])];
62
+ const index = selectedItem.indexOf($item);
63
+ if (index < 0) {
64
+ if (!props.selectionlimit || props.selectionlimit < 0 || selectedItem.length < props.selectionlimit) {
65
+ selectedItem.push($item);
66
+ } else {
67
+ this.invokeEventCallback('onSelectionlimitexceed', [null, this]);
68
+ }
69
+ } else {
70
+ selectedItem.splice(index, 1);
71
+ }
72
+ } else {
73
+ if (props.selecteditem === $item) {
74
+ selectedItem = null;
75
+ } else {
76
+ selectedItem = $item;
77
+ }
78
+ }
31
79
  this.selectedItemWidgets = this.itemWidgets[$index];
32
80
  this.updateState({
33
81
  props: {
34
- selecteditem: $item
82
+ selecteditem: selectedItem
35
83
  },
36
84
  selectedindex: $index
37
85
  }, () => {
38
86
  this.invokeEventCallback('onSelect', [this.proxy, $item]);
87
+ triggerTapEvent && this.invokeEventCallback('onTap', [null, this.proxy]);
39
88
  });
40
89
  }
41
90
  }
@@ -46,7 +95,7 @@ export default class WmList extends BaseComponent {
46
95
  this.onSelect(props.dataset[0], index);
47
96
  }
48
97
  }
49
- deselect() {
98
+ deselectAll() {
50
99
  this.updateState({
51
100
  props: {
52
101
  selecteditem: null
@@ -62,7 +111,8 @@ export default class WmList extends BaseComponent {
62
111
  this.updateState({
63
112
  groupedData: groupedData
64
113
  }, () => {
65
- this.key += items && items.length || 0;
114
+ var _this$keyExtractor;
115
+ (_this$keyExtractor = this.keyExtractor) === null || _this$keyExtractor === void 0 ? void 0 : _this$keyExtractor.clear();
66
116
  });
67
117
  }
68
118
  }
@@ -86,20 +136,29 @@ export default class WmList extends BaseComponent {
86
136
  data: data
87
137
  }] : []
88
138
  }, () => {
89
- this.key += $new && $new.length || 0;
139
+ var _this$keyExtractor2;
140
+ (_this$keyExtractor2 = this.keyExtractor) === null || _this$keyExtractor2 === void 0 ? void 0 : _this$keyExtractor2.clear();
90
141
  });
91
142
  }
92
143
  this.itemWidgets = [];
93
144
  if (props.selectfirstitem) {
94
145
  this.selectFirstItem();
95
146
  } else {
96
- this.deselect();
147
+ this.deselectAll();
97
148
  }
98
149
  break;
99
150
  case 'groupby':
100
151
  case 'match':
101
152
  this.setGroupData(this.state.props.dataset);
102
153
  break;
154
+ case 'multiselect':
155
+ if ($new) {
156
+ if (!isArray(this.state.props.selecteditem)) {
157
+ this.state.props.selecteditem = this.state.props.selecteditem ? [this.state.props.selecteditem] : [];
158
+ }
159
+ } else if (isArray(this.state.props.selecteditem)) {
160
+ this.state.props.selecteditem = this.state.props.selecteditem.pop();
161
+ }
103
162
  }
104
163
  }
105
164
  componentDidMount() {
@@ -127,15 +186,16 @@ export default class WmList extends BaseComponent {
127
186
  if (props.itemkey && item && !this._showSkeleton) {
128
187
  return props.itemkey(item, index);
129
188
  }
130
- return 'list_item_' + (this.key + index);
189
+ return 'list_item_' + this.keyExtractor.getKey(item, true);
131
190
  }
132
191
  renderItem(item, index, props) {
133
- var _this$state$props$sel, _this$state$props$sel2;
134
- return /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
135
- onPress: () => this.onSelect(item, index)
192
+ return /*#__PURE__*/React.createElement(Tappable, {
193
+ onTap: () => this.onSelect(item, index, true),
194
+ onLongTap: () => this.invokeEventCallback('onLongtap', [null, this.proxy]),
195
+ onDoubleTap: () => this.invokeEventCallback('onDoubletap', [null, this.proxy])
136
196
  }, /*#__PURE__*/React.createElement(View, {
137
- style: [this.styles.item, props.itemclass ? this.theme.getStyle(props.itemclass(item, index)) : null, this.state.selectedindex === index && ((_this$state$props$sel = this.state.props.selecteditem) === null || _this$state$props$sel === void 0 ? void 0 : _this$state$props$sel._groupIndex) === item._groupIndex ? this.styles.selectedItem : {}]
138
- }, props.renderItem(item, index, this), this.state.selectedindex === index && ((_this$state$props$sel2 = this.state.props.selecteditem) === null || _this$state$props$sel2 === void 0 ? void 0 : _this$state$props$sel2._groupIndex) === item._groupIndex ? /*#__PURE__*/React.createElement(WmIcon, {
197
+ style: [this.styles.item, props.itemclass ? this.theme.getStyle(props.itemclass(item, index)) : null, this.isSelected(item) ? this.styles.selectedItem : {}]
198
+ }, props.renderItem(item, index, this), this.isSelected(item) ? /*#__PURE__*/React.createElement(WmIcon, {
139
199
  iconclass: "wi wi-check-circle",
140
200
  styles: this.styles.selectedIcon
141
201
  }) : null));
@@ -178,10 +238,11 @@ export default class WmList extends BaseComponent {
178
238
  let isHorizontal = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
179
239
  return /*#__PURE__*/React.createElement(View, {
180
240
  style: this.styles.root
181
- }, this.state.groupedData ? this.state.groupedData.map(v => /*#__PURE__*/React.createElement(View, {
241
+ }, this.state.groupedData ? this.state.groupedData.map((v, i) => /*#__PURE__*/React.createElement(View, {
182
242
  style: {
183
243
  marginBottom: 16
184
- }
244
+ },
245
+ key: v.key || this.keyExtractor.getKey(v, true)
185
246
  }, this.renderHeader(props, v.key), /*#__PURE__*/React.createElement(FlatList, {
186
247
  keyExtractor: (item, i) => this.generateItemKey(item, i, props),
187
248
  horizontal: isHorizontal,
@@ -1 +1 @@
1
- {"version":3,"names":["React","SectionList","Text","View","TouchableWithoutFeedback","FlatList","isArray","BaseComponent","BaseComponentState","getGroupedData","isDefined","WmLabel","WmIcon","WmListProps","DEFAULT_CLASS","WmListState","WmList","constructor","props","onSelect","$item","$index","state","disableitem","selectedItemWidgets","itemWidgets","updateState","selecteditem","selectedindex","invokeEventCallback","proxy","selectFirstItem","initialized","dataset","length","index","groupby","deselect","setGroupData","items","dataItems","groupedData","match","orderby","dateformat","key","onPropertyChange","name","$new","$old","data","direction","selectfirstitem","componentDidMount","setTimeout","componentDidUpdate","prevProps","prevState","snapshot","getDefaultStyles","isHorizontal","theme","getStyle","defaultClass","getIndex","item","indexOf","generateItemKey","itemkey","_showSkeleton","renderItem","styles","itemclass","_groupIndex","selectedItem","selectedIcon","renderHeader","title","groupHeading","iconclass","subheading","heading","flex","flexDirection","listIcon","renderEmptyMessage","emptyMessage","nodatamessage","renderLoadingIcon","loadingIcon","loadingicon","loadingdatamsg","renderWithFlatList","root","map","v","marginBottom","i","itemInfo","getSectionListData","renderWithSectionList","distanceFromEnd","setState","currentPage","section","loadingdata","renderWidget","_background"],"sources":["list.component.tsx"],"sourcesContent":["import React from 'react';\nimport { SectionList, Text, View, TouchableWithoutFeedback } from 'react-native';\nimport { FlatList } from 'react-native-gesture-handler';\nimport { isArray } 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 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 key = 1;\n\n constructor(props: WmListProps) {\n super(props, DEFAULT_CLASS, new WmListProps(), new WmListState());\n }\n\n private onSelect($item: any, $index: number | string) {\n if (!this.state.props.disableitem($item, $index)) {\n this.selectedItemWidgets = this.itemWidgets[$index as number];\n this.updateState({\n props: { selecteditem: $item },\n selectedindex: $index\n } as WmListState, () => {\n this.invokeEventCallback('onSelect', [this.proxy, $item]);\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 deselect() {\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.key += (items && items.length) || 0;\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 : (isDefined($new) ? [$new] : []);\n this.updateState({\n groupedData: (data[0] || props.direction === 'horizontal' ? [{\n key: '',\n data: data\n }] : [])\n } as WmListState, () => {\n this.key += ($new && $new.length) || 0;\n });\n }\n this.itemWidgets = [];\n if (props.selectfirstitem) {\n this.selectFirstItem();\n } else {\n this.deselect();\n }\n break;\n case 'groupby':\n case 'match':\n this.setGroupData(this.state.props.dataset);\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 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.key + index);\n }\n\n private renderItem(item: any, index: number, props: WmListProps) {\n return (\n <TouchableWithoutFeedback onPress={() => this.onSelect(item, index)}>\n <View style={[\n this.styles.item,\n props.itemclass ? this.theme.getStyle(props.itemclass(item, index)) : null,\n this.state.selectedindex === index && this.state.props.selecteditem?._groupIndex === item._groupIndex ? this.styles.selectedItem : {}]}>\n {props.renderItem(item, index, this)}\n { this.state.selectedindex === index && this.state.props.selecteditem?._groupIndex === item._groupIndex ? (\n <WmIcon iconclass='wi wi-check-circle' styles={this.styles.selectedIcon} />\n ) : null}\n </View>\n </TouchableWithoutFeedback>\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 styles={this.styles.listIcon} iconclass={props.iconclass}></WmIcon>\n <View>\n <WmLabel styles={this.styles.title} caption={props.title}></WmLabel>\n <WmLabel 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 styles={this.styles.emptyMessage} caption={props.nodatamessage}></WmLabel>);\n }\n\n private renderLoadingIcon(props: WmListProps) {\n return (<WmIcon\n styles={this.styles.loadingIcon}\n iconclass={props.loadingicon}\n caption={props.loadingdatamsg}></WmIcon>)\n }\n\n private renderWithFlatList(props: WmListProps, isHorizontal = false) {\n return (\n <View style={this.styles.root}>\n {this.state.groupedData ? this.state.groupedData.map((v: any) => ((\n <View style={{marginBottom: 16}}>\n {this.renderHeader(props, v.key)}\n <FlatList\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 </FlatList>\n </View>\n ))) : null\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[0] && 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>\n {this._background}\n {(isHorizontal) ?\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,EAAEC,wBAAwB,QAAQ,cAAc;AAChF,SAASC,QAAQ,QAAQ,8BAA8B;AACvD,SAASC,OAAO,QAAQ,WAAW;AACnC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAAQC,cAAc,EAAEC,SAAS,QAAO,sCAAsC;AAC9E,OAAOC,OAAO,MAAM,kEAAkE;AACtF,OA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E,IAAI,CAACM,kBAAkB,EAAG;MACpC,mBAAmB,EAAE,SAA6B;QAAA,IAA5B;UAAEK,OAAO,EAAE;YAAC3D,GAAG;YAAEK;UAAI;QAAC,CAAC;QAC3C,OAAO,IAAI,CAAC0B,YAAY,CAAC1D,KAAK,EAAE2B,GAAG,CAAC;MACtC,CAAE;MACF,mBAAmB,EAAE,MAAM3B,KAAK,CAACuF,WAAW,GAAG,IAAI,CAACjB,iBAAiB,CAACtE,KAAK,CAAC,GAAG,IAAK;MACpF,kBAAkB,EAAKgF,QAAQ,IAAK,IAAI,CAACb,kBAAkB,CAACzB,YAAY,EAAEsC,QAAQ,CAACjC,IAAI,EAAEiC,QAAQ,CAAC/D,KAAK,EAAEjB,KAAK,CAAE;MAChH,UAAU,EAAGgF,QAAQ,IAAK,IAAI,CAAC5B,UAAU,CAAC4B,QAAQ,CAACjC,IAAI,EAAEiC,QAAQ,CAAC/D,KAAK,EAAEjB,KAAK;IAAE,EACpE;EAElB;EAEAwF,YAAY,CAACxF,KAAkB,EAAE;IAC/B,IAAI,CAACW,mBAAmB,CAAC,oBAAoB,EAAE,CAAC,IAAI,EAAE,IAAI,CAACP,KAAK,CAACJ,KAAK,CAACe,OAAO,CAAC,CAAC;IAChF,MAAM2B,YAAY,GAAI1C,KAAK,CAACiC,SAAS,KAAK,YAAa;IACvD,oBACE,oBAAC,IAAI,QACF,IAAI,CAACwD,WAAW,EACf/C,YAAY,GACZ,IAAI,CAACgC,kBAAkB,CAAC1E,KAAK,EAAE0C,YAAY,CAAC,GAC5C,IAAI,CAACwC,qBAAqB,CAAClF,KAAK,EAAE0C,YAAY,CAAC,CAC5C;EACX;AACF"}
1
+ {"version":3,"names":["React","SectionList","Text","View","FlatList","isArray","BaseComponent","BaseComponentState","getGroupedData","isDefined","Tappable","WmLabel","WmIcon","WmListProps","DEFAULT_CLASS","WmListState","constructor","arguments","_defineProperty","DefaultKeyExtractor","Map","getKey","o","create","length","undefined","k","store","get","Date","now","nextKey","set","clear","WmList","props","isSelected","$item","selectedItem","state","selecteditem","indexOf","onSelect","$index","triggerTapEvent","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","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","renderItem","createElement","onTap","onLongTap","onDoubleTap","style","styles","itemclass","iconclass","selectedIcon","renderHeader","title","groupHeading","subheading","heading","flex","flexDirection","listIcon","caption","renderEmptyMessage","emptyMessage","nodatamessage","renderLoadingIcon","loadingIcon","loadingicon","loadingdatamsg","renderWithFlatList","root","map","v","i","marginBottom","horizontal","ListEmptyComponent","itemInfo","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 } from 'react-native';\nimport { FlatList } from 'react-native-gesture-handler';\nimport { isArray } 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 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\nclass DefaultKeyExtractor {\n store = new Map<any, string>();\n nextKey = 1;\n\n getKey(o : any, create = false) {\n let k = this.store.get(o);\n if (!k && create) {\n k = `key:${Date.now()}:${this.nextKey++}`;\n this.store.set(o, k)\n }\n return k;\n }\n\n clear() {\n this.store = new Map();\n }\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($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 : (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 return (\n <Tappable\n onTap={() => this.onSelect(item, index, true)}\n onLongTap={() => this.invokeEventCallback('onLongtap', [null, this.proxy])}\n onDoubleTap={() => this.invokeEventCallback('onDoubletap', [null, this.proxy])}>\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 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 styles={this.styles.listIcon} iconclass={props.iconclass}></WmIcon>\n <View>\n <WmLabel styles={this.styles.title} caption={props.title}></WmLabel>\n <WmLabel 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 styles={this.styles.emptyMessage} caption={props.nodatamessage}></WmLabel>);\n }\n\n private renderLoadingIcon(props: WmListProps) {\n return (<WmIcon\n styles={this.styles.loadingIcon}\n iconclass={props.loadingicon}\n caption={props.loadingdatamsg}></WmIcon>)\n }\n\n private renderWithFlatList(props: WmListProps, isHorizontal = false) {\n return (\n <View style={this.styles.root}>\n {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 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 </FlatList>\n </View>\n ))) : null\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[0] && 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>\n {this._background}\n {(isHorizontal) ?\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,QAAkC,cAAc;AAChF,SAASC,QAAQ,QAAQ,8BAA8B;AACvD,SAASC,OA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() => /*#__PURE__*/React.createElement(View, null));
16
16
  _defineProperty(this, "loadingicon", 'fa fa-circle-o-notch fa-pulse');
17
17
  _defineProperty(this, "loadingdatamsg", 'Loading...');
18
+ _defineProperty(this, "multiselect", false);
18
19
  _defineProperty(this, "nodatamessage", 'No data found');
19
20
  _defineProperty(this, "loadingdata", false);
20
21
  _defineProperty(this, "selectfirstitem", false);
22
+ _defineProperty(this, "selectionlimit", -1);
21
23
  _defineProperty(this, "disableitem", ($item, $index) => false);
22
24
  _defineProperty(this, "itemkey", null);
23
25
  _defineProperty(this, "direction", 'vertical');
@@ -1 +1 @@
1
- {"version":3,"names":["React","BaseProps","View","WmListProps","$item","$index"],"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 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 nodatamessage = 'No data found';\n loadingdata = false;\n selectfirstitem = false;\n disableitem = ($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}\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;EAAA;IAAA;IAAA,mCAC3B,IAAI;IAAA,+BACR,IAAI;IAAA,oCACC,IAAI;IAAA,iCACf,EAAE;IAAA,0CACO,EAAE;IAAA,oCACH,mBAAO,oBAAC,IAAI,OAAG;IAAA,qCACrB,+BAA+B;IAAA,wCAC1B,YAAY;IAAA,uCACb,eAAe;IAAA,qCACjB,KAAK;IAAA,yCACD,KAAK;IAAA,qCACT,CAACG,KAAU,EAAEC,MAAW,KAAK,KAAK;IAAA,iCACH,IAAI;IAAA,mCACV,UAAU;IAAA,iCAC/B,IAAI;IAAA,+BACN,IAAI;IAAA,iCACF,IAAI;IAAA,oCACD,IAAI;IAAA,sCACV,IAAI;IAAA,mCAC8B,IAAI;EAAA;AACzD"}
1
+ {"version":3,"names":["React","BaseProps","View","WmListProps","constructor","arguments","_defineProperty","createElement","$item","$index"],"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 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 = ($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}\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,oBAC3B,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,sBACL,CAACE,KAAU,EAAEC,MAAW,KAAK,KAAK;IAAAH,eAAA,kBACH,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;EAAA;AACzD"}
@@ -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","subheading","emptyMessage","item","getStyle","shadowColor","flexDirection","paddingTop","paddingBottom","itemBgColor","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: 4,\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 lineHeight: 24,\n }\n } as WmLabelStyles,\n subheading: {\n text: {\n fontSize: 12,\n lineHeight: 16,\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 backgroundColor: themeVariables.itemBgColor,\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 }\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 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;AAiBxF,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,CAAC,CAAC;IACRC,QAAQ,EAAE;MACNF,IAAI,EAAE;QACFG,SAAS,EAAE,CAAC;QACZC,WAAW,EAAE;MACjB;IACJ,CAAiB;IACjBC,YAAY,EAAE;MACVC,eAAe,EAAET,cAAc,CAACU,mBAAmB;MACnDC,QAAQ,EAAE,EAAE;MACZC,WAAW,EAAE,CAAC;MACdC,YAAY,EAAE,CAAC;MACfC,UAAU,EAAE,EAAE;MACdC,UAAU,EAAEf,cAAc,CAACgB;IAC/B,CAAC;IACDC,WAAW,EAAE;MACTd,IAAI,EAAE;QACFe,IAAI,EAAE,CAAC;QACPC,SAAS,EAAE,QAAQ;QACnBC,cAAc,EA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;QACFiB,KAAK,EAAErB,cAAc,CAAC6C,YAAY;QAClClC,QAAQ,EAAE;MACd;IACJ;EACJ,CAAC,CAAC;EAEFV,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAE1CD,QAAQ,CAAC,qBAAqB,EAAE,EAAE,EAAE;IAChCO,YAAY,EAAE;MACVsC,QAAQ,EAAE,GAAG;MACbrC,eAAe,EAAET,cAAc,CAACU;IACpC,CAAC;IACDqB,IAAI,EAAE;MACFxB,WAAW,EAAE;IACjB;EACJ,CAAC,CAAiB;EAElBN,QAAQ,CAAC,mBAAmB,EAAE,EAAE,EAAE;IAC9B8B,IAAI,EAAE;MACFN,YAAY,EAAE,CAAC;MACfsB,KAAK,EAAE,MAAM;MACbC,iBAAiB,EAAE,CAAC;MACpBC,iBAAiB,EAAEjD,cAAc,CAACkD;IACtC;EACJ,CAAC,CAAiB;EAElBjD,QAAQ,CAAC,2BAA2B,EAAE,EAAE,EAAE;IACtC8B,IAAI,EAAE;MACFxB,WAAW,EAAE,CAAC;MACd+B,YAAY,EAAE,CAAC;MACfa,gBAAgB,EAAE,CAAC;MACnBC,gBAAgB,EAAE;IACtB;EACJ,CAAC,CAAiB;EAElBnD,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE;IAC3B8B,IAAI,EAAE;MACFN,YAAY,EAAE,CAAC;MACfa,YAAY,EAAE,CAAC;MACfU,iBAAiB,EAAE,CAAC;MACpBC,iBAAiB,EAAE;IACvB;EACJ,CAAC,CAAiB;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","subheading","emptyMessage","item","getStyle","shadowColor","flexDirection","paddingTop","paddingBottom","itemBgColor","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: 4,\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 lineHeight: 24,\n }\n } as WmLabelStyles,\n subheading: {\n text: {\n fontSize: 12,\n lineHeight: 16,\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 backgroundColor: themeVariables.itemBgColor,\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 }\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 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;AAiBxF,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,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,IAAI,EAAE;MACFN,YAAY,EAAE,CAAC;MACfa,YAAY,EAAE,CAAC;MACfU,iBAAiB,EAAE,CAAC;MACpBC,iBAAiB,EAAE;IACvB;EACJ,CAAiB,CAAC;AACtB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseComponentState","forEach","isEmpty","some","get","WmForm","WmFormState","Live_Operations","INSERT","UPDATE","DELETE","READ","WmLiveForm","findOperationType","operation","isPrimary","primaryKey","state","props","formdata","length","value","handleSubmit","event","preventDefault","formData","dataoutput","formdataoutput","operationType","validateFieldsOnSubmit","onBeforesubmit","invokeEventCallback","proxy","formSubmit","inputFields","data","onResultCb","error","response","status","formSuccess","onSuccess","postmessage","toggleMessage","onError","errormessage"],"sources":["liveform.component.tsx"],"sourcesContent":["import { BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { forEach, isEmpty, some, get } from 'lodash';\n\nimport WmFormProps from '../form/form.props';\nimport WmForm from '@wavemaker/app-rn-runtime/components/data/form/form.component';\n\nexport class WmFormState extends BaseComponentState<WmFormProps> {\n isValid = false;\n type: 'success' | 'warning' | 'error' | 'info' | 'loading' | undefined = 'success';\n message: string = '';\n showInlineMsg: boolean = false;\n}\nconst Live_Operations = {\n INSERT : 'insert',\n UPDATE : 'update',\n DELETE : 'delete',\n READ : 'read'\n}\n\nexport default class WmLiveForm extends WmForm {\n\n findOperationType() {\n let operation;\n let isPrimary = false;\n // const sourceOperation = this.form.datasource && this.form.datasource.execute(DataSource.Operation.GET_OPERATION_TYPE);\n // if (sourceOperation && sourceOperation !== 'read') {\n // return sourceOperation;\n // }\n /*If OperationType is not set then based on the formdata object return the operation type,\n this case occurs only if the form is outside a livegrid*/\n /*If the formdata object has primary key value then return update else insert*/\n if (this.primaryKey && !isEmpty(this.state.props.formdata)) {\n /*If only one column is primary key*/\n if (this.primaryKey.length === 1) {\n if (this.state.props.formdata[this.primaryKey[0]]) {\n operation = Live_Operations.UPDATE;\n }\n /*If only no column is primary key*/\n } else if (this.primaryKey.length === 0) {\n forEach(this.state.props.formdata, (value) => {\n if (value) {\n isPrimary = true;\n }\n });\n if (isPrimary) {\n operation = Live_Operations.UPDATE;\n }\n /*If multiple columns are primary key*/\n } else {\n // @ts-ignore\n isPrimary = some(this.primaryKey, (primaryKey: any) => {\n if (this.state.props.formdata[primaryKey]) {\n return true;\n }\n });\n if (isPrimary) {\n operation = Live_Operations.UPDATE;\n }\n }\n }\n return operation || Live_Operations.INSERT;\n }\n\n // @ts-ignore\n handleSubmit(event?: any) {\n event?.preventDefault();\n const formData = this.state.props.dataoutput || this.formdataoutput;\n const operationType = this.findOperationType();\n\n if (!this.validateFieldsOnSubmit()) {\n return false;\n }\n if (this.props.onBeforesubmit) {\n this.invokeEventCallback('onBeforesubmit', [ null, this.proxy, formData ]);\n }\n if (this.props.formSubmit) {\n this.props.formSubmit({inputFields: formData}, operationType, ((data: any) => {\n this.invokeEventCallback('onSubmit', [ null, this.proxy, formData ]);\n this.onResultCb(get(data, 'params'), 'success');\n }), ((error: any) => {\n this.invokeEventCallback('onSubmit', [ null, this.proxy, formData ]);\n this.onResultCb(error, '');\n }));\n } else {\n this.invokeEventCallback('onSubmit', [ null, this.proxy, formData ]);\n }\n }\n\n onResultCb(response: any, status: string, event?: any) {\n this.invokeEventCallback('onResult', [ null, this.proxy, response ]);\n if (status) {\n this.invokeEventCallback('onSuccess', [ null, this.proxy, response ]);\n this.props.formSuccess && this.props.formSuccess();\n !this.props.onSuccess && this.state.props.postmessage && this.toggleMessage('success', this.state.props.postmessage);\n } else {\n this.invokeEventCallback('onError', [ null, this.proxy, response ]);\n !this.props.onError && this.toggleMessage('error', this.state.props.errormessage || get(response, 'message') || response);\n }\n }\n\n}\n"],"mappings":";;;AAAA,SAASA,kBAAkB,QAAQ,+CAA+C;AAClF,SAASC,OAAO,EAAEC,OAAO,EAAEC,IAAI,EAAEC,GAAG,QAAQ,QAAQ;AAGpD,OAAOC,MAAM,MAAM,+DAA+D;AAElF,OA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I,CAACN,mBAAmB,CAAC,UAAU,EAAE,CAAE,IAAI,EAAE,IAAI,CAACC,KAAK,EAAEP,QAAQ,CAAE,CAAC;IACtE;EACF;EAEAW,UAAU,CAACE,QAAa,EAAEC,MAAc,EAAEhB,KAAW,EAAE;IACrD,IAAI,CAACQ,mBAAmB,CAAC,UAAU,EAAE,CAAE,IAAI,EAAE,IAAI,CAACC,KAAK,EAAEM,QAAQ,CAAE,CAAC;IACpE,IAAIC,MAAM,EAAE;MACV,IAAI,CAACR,mBAAmB,CAAC,WAAW,EAAE,CAAE,IAAI,EAAE,IAAI,CAACC,KAAK,EAAEM,QAAQ,CAAE,CAAC;MACrE,IAAI,CAACpB,KAAK,CAACsB,WAAW,IAAI,IAAI,CAACtB,KAAK,CAACsB,WAAW,EAAE;MAClD,CAAC,IAAI,CAACtB,KAAK,CAACuB,SAAS,IAAI,IAAI,CAACxB,KAAK,CAACC,KAAK,CAACwB,WAAW,IAAI,IAAI,CAACC,aAAa,CAAC,SAAS,EAAE,IAAI,CAAC1B,KAAK,CAACC,KAAK,CAACwB,WAAW,CAAC;IACtH,CAAC,MAAM;MACL,IAAI,CAACX,mBAAmB,CAAC,SAAS,EAAE,CAAE,IAAI,EAAE,IAAI,CAACC,KAAK,EAAEM,QAAQ,CAAE,CAAC;MACnE,CAAC,IAAI,CAACpB,KAAK,CAAC0B,OAAO,IAAI,IAAI,CAACD,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC1B,KAAK,CAACC,KAAK,CAAC2B,YAAY,IAAIzC,GAAG,CAACkC,QAAQ,EAAE,SAAS,CAAC,IAAIA,QAAQ,CAAC;IAC3H;EACF;AAEF"}
1
+ {"version":3,"names":["BaseComponentState","forEach","isEmpty","some","get","WmForm","WmFormState","constructor","arguments","_defineProperty","Live_Operations","INSERT","UPDATE","DELETE","READ","WmLiveForm","findOperationType","operation","isPrimary","primaryKey","state","props","formdata","length","value","handleSubmit","event","preventDefault","formData","dataoutput","formdataoutput","operationType","validateFieldsOnSubmit","onBeforesubmit","invokeEventCallback","proxy","formSubmit","inputFields","data","onResultCb","error","response","status","formSuccess","onSuccess","postmessage","toggleMessage","onError","errormessage"],"sources":["liveform.component.tsx"],"sourcesContent":["import { BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { forEach, isEmpty, some, get } from 'lodash';\n\nimport WmFormProps from '../form/form.props';\nimport WmForm from '@wavemaker/app-rn-runtime/components/data/form/form.component';\n\nexport class WmFormState extends BaseComponentState<WmFormProps> {\n isValid = false;\n type: 'success' | 'warning' | 'error' | 'info' | 'loading' | undefined = 'success';\n message: string = '';\n showInlineMsg: boolean = false;\n}\nconst Live_Operations = {\n INSERT : 'insert',\n UPDATE : 'update',\n DELETE : 'delete',\n READ : 'read'\n}\n\nexport default class WmLiveForm extends WmForm {\n\n findOperationType() {\n let operation;\n let isPrimary = false;\n // const sourceOperation = this.form.datasource && this.form.datasource.execute(DataSource.Operation.GET_OPERATION_TYPE);\n // if (sourceOperation && sourceOperation !== 'read') {\n // return sourceOperation;\n // }\n /*If OperationType is not set then based on the formdata object return the operation type,\n this case occurs only if the form is outside a livegrid*/\n /*If the formdata object has primary key value then return update else insert*/\n if (this.primaryKey && !isEmpty(this.state.props.formdata)) {\n /*If only one column is primary key*/\n if (this.primaryKey.length === 1) {\n if (this.state.props.formdata[this.primaryKey[0]]) {\n operation = Live_Operations.UPDATE;\n }\n /*If only no column is primary key*/\n } else if (this.primaryKey.length === 0) {\n forEach(this.state.props.formdata, (value) => {\n if (value) {\n isPrimary = true;\n }\n });\n if (isPrimary) {\n operation = Live_Operations.UPDATE;\n }\n /*If multiple columns are primary key*/\n } else {\n // @ts-ignore\n isPrimary = some(this.primaryKey, (primaryKey: any) => {\n if (this.state.props.formdata[primaryKey]) {\n return true;\n }\n });\n if (isPrimary) {\n operation = Live_Operations.UPDATE;\n }\n }\n }\n return operation || Live_Operations.INSERT;\n }\n\n // @ts-ignore\n handleSubmit(event?: any) {\n event?.preventDefault();\n const formData = this.state.props.dataoutput || this.formdataoutput;\n const operationType = this.findOperationType();\n\n if (!this.validateFieldsOnSubmit()) {\n return false;\n }\n if (this.props.onBeforesubmit) {\n this.invokeEventCallback('onBeforesubmit', [ null, this.proxy, formData ]);\n }\n if (this.props.formSubmit) {\n this.props.formSubmit({inputFields: formData}, operationType, ((data: any) => {\n this.invokeEventCallback('onSubmit', [ null, this.proxy, formData ]);\n this.onResultCb(get(data, 'params'), 'success');\n }), ((error: any) => {\n this.invokeEventCallback('onSubmit', [ null, this.proxy, formData ]);\n this.onResultCb(error, '');\n }));\n } else {\n this.invokeEventCallback('onSubmit', [ null, this.proxy, formData ]);\n }\n }\n\n onResultCb(response: any, status: string, event?: any) {\n this.invokeEventCallback('onResult', [ null, this.proxy, response ]);\n if (status) {\n this.invokeEventCallback('onSuccess', [ null, this.proxy, response ]);\n this.props.formSuccess && this.props.formSuccess();\n !this.props.onSuccess && this.state.props.postmessage && this.toggleMessage('success', this.state.props.postmessage);\n } else {\n this.invokeEventCallback('onError', [ null, this.proxy, response ]);\n !this.props.onError && this.toggleMessage('error', this.state.props.errormessage || get(response, 'message') || response);\n }\n }\n\n}\n"],"mappings":";;;AAAA,SAASA,kBAAkB,QAAQ,+CAA+C;AAClF,SAASC,OAAO,EAAEC,OAAO,EAAEC,IAAI,EAAEC,GAAG,QAAQ,QAAQ;AAGpD,OAAOC,MAAM,MAAM,+DAA+D;AAElF,OAAO,MAAMC,WAAW,SAASN,kBAAkB,CAAc;EAAAO,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,kBACrD,KAAK;IAAAA,eAAA,eAC0D,SAAS;IAAAA,eAAA,kBAChE,EAAE;IAAAA,eAAA,wBACK,KAAK;EAAA;AAChC;AACA,MAAMC,eAAe,GAAG;EACtBC,MAAM,EAAG,QAAQ;EACjBC,MAAM,EAAG,QAAQ;EACjBC,MAAM,EAAG,QAAQ;EACjBC,IAAI,EAAG;AACT,CAAC;AAED,eAAe,MAAMC,UAAU,SAASV,MAAM,C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IAAIC,MAAM,EAAE;MACV,IAAI,CAACR,mBAAmB,CAAC,WAAW,EAAE,CAAE,IAAI,EAAE,IAAI,CAACC,KAAK,EAAEM,QAAQ,CAAE,CAAC;MACrE,IAAI,CAACpB,KAAK,CAACsB,WAAW,IAAI,IAAI,CAACtB,KAAK,CAACsB,WAAW,CAAC,CAAC;MAClD,CAAC,IAAI,CAACtB,KAAK,CAACuB,SAAS,IAAI,IAAI,CAACxB,KAAK,CAACC,KAAK,CAACwB,WAAW,IAAI,IAAI,CAACC,aAAa,CAAC,SAAS,EAAE,IAAI,CAAC1B,KAAK,CAACC,KAAK,CAACwB,WAAW,CAAC;IACtH,CAAC,MAAM;MACL,IAAI,CAACX,mBAAmB,CAAC,SAAS,EAAE,CAAE,IAAI,EAAE,IAAI,CAACC,KAAK,EAAEM,QAAQ,CAAE,CAAC;MACnE,CAAC,IAAI,CAACpB,KAAK,CAAC0B,OAAO,IAAI,IAAI,CAACD,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC1B,KAAK,CAACC,KAAK,CAAC2B,YAAY,IAAI5C,GAAG,CAACqC,QAAQ,EAAE,SAAS,CAAC,IAAIA,QAAQ,CAAC;IAC3H;EACF;AAEF"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","BaseComponent","BaseComponentState","ScanConsumer","WmBarcodescannerProps","DEFAULT_CLASS","WmButton","WmBarcodescannerState","WmBarcodescanner","constructor","props","onScanTap","params","barcodeFormat","state","barcodeformat","scanner","scanBarcode","then","res","updateState","datavalue","text","invokeEventCallback","proxy","renderWidget","scanService","styles","root","_background","iconclass","button","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 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,SAASL,kBAAkB,CAAwB;AAErF,eAAe,MAAMM,gBAAgB,SAASP,aAAa,CAAuE;EAEhIQ,WAAW,CAACC,KAA4B,EAAE;IACxC,KAAK,CAACA,KAAK,EAAEL,aAAa,EAAE,IAAID,qBAAqB,EAAE,CAAC;IAAC,iCAF5B,IAAI;EAGnC;EAEAO,SAAS,GAAG;IACV,MAAMC,MAAiB,GAAG;MACxBC,aAAa,EAAE,IAAI,CAACC,KAAK,CAACJ,KAAK,CAACK;IAClC,CAAC;IACD,IAAI,CAACC,OAAO,CAACC,WAAW,CAACL,MAAM,CAAC,CAACM,IAAI,CAAEC,GAAe,IAAK;MACzD,IAAI,CAACC,WAAW,CAAC;QACfV,KAAK,EAAE;UACLW,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,YAAY,CAACf,KAA4B,EAAE;IACzC,oBACE,oBAAC,YAAY,QACTgB,WAAwB,IAAK;MAC7B,IAAI,CAACV,OAAO,GAAGU,WAAW;MAC1B,oBAAO,oBAAC,IAAI;QAAC,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC;MAAK,GAClC,IAAI,CAACC,WAAW,eACjB,oBAAC,QAAQ;QAAC,SAAS,EAAEnB,KAAK,CAACoB,SAAU;QAAC,MAAM,EAAE,IAAI,CAACH,MAAM,CAACI,MAAO;QAAC,KAAK,EAAE,IAAI,CAACpB,SAAS,CAACqB,IAAI,CAAC,IAAI,CAAE;QAAC,OAAO,EAAEtB,KAAK,CAACuB,OAAQ;QAAC,QAAQ,EAAEvB,KAAK,CAACwB;MAAS,EAAY,CAC5J;IACT,CAAC,CACY;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","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 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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OAAQ;QAACC,QAAQ,EAAE5B,KAAK,CAAC4B;MAAS,CAAW,CAC5J,CAAC;IACT,CACY,CAAC;EAEnB;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmBarcodescannerProps"],"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;EAAA;IAAA;IAAA,uCACnC,KAAK;IAAA,iCACX,IAAI;IAAA;IAAA,mCAEF,eAAe;IAAA,kCAChB,EAAE;EAAA;AACvB"}
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 +1 @@
1
- {"version":3,"names":["React","View","BaseComponent","BaseComponentState","WmCameraProps","DEFAULT_CLASS","WmButton","CameraConsumer","WmCameraState","WmCamera","constructor","props","onCameraTap","state","capturetype","params","allowImageEdit","allowedit","imageQuality","imagequality","imageEncodingType","imageencodingtype","imageTargetWidth","imagetargetwidth","imageTargetHeight","imagetargetheight","camera","captureImage","then","res","updateModel","imagePath","content","captureVideo","videoPath","$event","value","startsWith","localFile","updateState","datavalue","localFilePath","invokeEventCallback","bind","proxy","renderWidget","cameraService","_background","styles","root","iconclass","button","iconsize"],"sources":["camera.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmCameraProps from './camera.props';\nimport { DEFAULT_CLASS, WmCameraStyles } from './camera.styles';\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\nimport { CaptureImageOutput } from '@wavemaker/app-rn-runtime/variables/device/camera/capture-image.operation';\nimport { CameraConsumer, CameraInput, CameraService } from \"@wavemaker/app-rn-runtime/core/device/camera-service\";\nimport { CaptureVideoOutput } from '@wavemaker/app-rn-runtime/variables/device/camera/capture-video.operation';\n\n\nexport class WmCameraState extends BaseComponentState<WmCameraProps> {}\n\nexport default class WmCamera extends BaseComponent<WmCameraProps, WmCameraState, WmCameraStyles> {\n private camera: CameraService = null as any;\n public localFile: string = '';\n constructor(props: WmCameraProps) {\n super(props, DEFAULT_CLASS, new WmCameraProps());\n }\n\n onCameraTap() {\n const props = this.state.props;\n if (props.capturetype === 'IMAGE') {\n const params: CameraInput = {\n allowImageEdit: props.allowedit,\n imageQuality: props.imagequality,\n imageEncodingType: props.imageencodingtype,\n imageTargetWidth: props.imagetargetwidth,\n imageTargetHeight: props.imagetargetheight\n };\n\n this.camera.captureImage(params).then((res: CaptureImageOutput) => {\n this.updateModel(null, res.imagePath, res.content);\n });\n } else {\n this.camera.captureVideo().then((res: CaptureVideoOutput) => {\n this.updateModel(null, res.videoPath, res.content);\n });\n }\n\n }\n\n private updateModel($event: any, value: any, content: string) {\n value = (value.startsWith('file://') ? '' : 'file://') + value;\n this.localFile = content;\n this.updateState({\n props: {\n datavalue: value,\n localFilePath: value\n }\n } as WmCameraState, this.invokeEventCallback.bind(this, 'onSuccess', [null, this.proxy, value, this.localFile]));\n }\n\n renderWidget(props: WmCameraProps) {\n return (\n <CameraConsumer>\n {(cameraService: CameraService) => {\n {this._background}\n this.camera = cameraService;\n return <View style={this.styles.root}>\n <WmButton iconclass={props.iconclass} styles={this.styles.button} iconsize={props.iconsize} onTap={this.onCameraTap.bind(this)}></WmButton>\n </View>\n }}\n </CameraConsumer>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,OAAOC,QAAQ,MAAM,oEAAoE;AAEzF,SAASC,cAAc,QAAoC,sDAAsD;AAIjH,OAAO,MAAMC,aAAa,SAASL,kBAAkB,CAAgB;AAErE,eAAe,MAAMM,QAAQ,SAASP,aAAa,CAA+C;EAGhGQ,WAAW,CAACC,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAEN,aAAa,EAAE,IAAID,aAAa,EAAE,CAAC;IAAC,gCAHnB,IAAI;IAAA,mCACT,EAAE;EAG7B;EAEAQ,WAAW,GAAG;IACZ,MAAMD,KAAK,GAAG,IAAI,CAACE,KAAK,CAACF,KAAK;IAC9B,IAAIA,KAAK,CAACG,WAAW,KAAK,OAAO,EAAE;MACjC,MAAMC,MAAmB,GAAG;QAC1BC,cAAc,EAAEL,KAAK,CAACM,SAAS;QAC/BC,YAAY,EAAEP,KAAK,CAACQ,YAAY;QAChCC,iBAAiB,EAAET,KAAK,CAACU,iBAAiB;QAC1CC,gBAAgB,EAAEX,KAAK,CAACY,gBAAgB;QACxCC,iBAAiB,EAAEb,KAAK,CAACc;MAC3B,CAAC;MAED,IAAI,CAACC,MAAM,CAACC,YAAY,CAACZ,MAAM,CAAC,CAACa,IAAI,CAAEC,GAAuB,IAAK;Q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AAC,IAAI;MAAE,EAAY,CACtI;IACT,CAAC,CACc;EAEzB;AACF"}
1
+ {"version":3,"names":["React","View","BaseComponent","BaseComponentState","WmCameraProps","DEFAULT_CLASS","WmButton","CameraConsumer","WmCameraState","WmCamera","constructor","props","_defineProperty","onCameraTap","state","capturetype","params","allowImageEdit","allowedit","imageQuality","imagequality","imageEncodingType","imageencodingtype","imageTargetWidth","imagetargetwidth","imageTargetHeight","imagetargetheight","camera","captureImage","then","res","updateModel","imagePath","content","captureVideo","videoPath","$event","value","startsWith","localFile","updateState","datavalue","localFilePath","invokeEventCallback","bind","proxy","renderWidget","createElement","cameraService","_background","style","styles","root","iconclass","button","iconsize","onTap"],"sources":["camera.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmCameraProps from './camera.props';\nimport { DEFAULT_CLASS, WmCameraStyles } from './camera.styles';\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\nimport { CaptureImageOutput } from '@wavemaker/app-rn-runtime/variables/device/camera/capture-image.operation';\nimport { CameraConsumer, CameraInput, CameraService } from \"@wavemaker/app-rn-runtime/core/device/camera-service\";\nimport { CaptureVideoOutput } from '@wavemaker/app-rn-runtime/variables/device/camera/capture-video.operation';\n\n\nexport class WmCameraState extends BaseComponentState<WmCameraProps> {}\n\nexport default class WmCamera extends BaseComponent<WmCameraProps, WmCameraState, WmCameraStyles> {\n private camera: CameraService = null as any;\n public localFile: string = '';\n constructor(props: WmCameraProps) {\n super(props, DEFAULT_CLASS, new WmCameraProps());\n }\n\n onCameraTap() {\n const props = this.state.props;\n if (props.capturetype === 'IMAGE') {\n const params: CameraInput = {\n allowImageEdit: props.allowedit,\n imageQuality: props.imagequality,\n imageEncodingType: props.imageencodingtype,\n imageTargetWidth: props.imagetargetwidth,\n imageTargetHeight: props.imagetargetheight\n };\n\n this.camera.captureImage(params).then((res: CaptureImageOutput) => {\n this.updateModel(null, res.imagePath, res.content);\n });\n } else {\n this.camera.captureVideo().then((res: CaptureVideoOutput) => {\n this.updateModel(null, res.videoPath, res.content);\n });\n }\n\n }\n\n private updateModel($event: any, value: any, content: string) {\n value = (value.startsWith('file://') ? '' : 'file://') + value;\n this.localFile = content;\n this.updateState({\n props: {\n datavalue: value,\n localFilePath: value\n }\n } as WmCameraState, this.invokeEventCallback.bind(this, 'onSuccess', [null, this.proxy, value, this.localFile]));\n }\n\n renderWidget(props: WmCameraProps) {\n return (\n <CameraConsumer>\n {(cameraService: CameraService) => {\n {this._background}\n this.camera = cameraService;\n return <View style={this.styles.root}>\n <WmButton iconclass={props.iconclass} styles={this.styles.button} iconsize={props.iconsize} onTap={this.onCameraTap.bind(this)}></WmButton>\n </View>\n }}\n </CameraConsumer>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,OAAOC,QAAQ,MAAM,oEAAoE;AAEzF,SAASC,cAAc,QAAoC,sDAAsD;AAIjH,OAAO,MAAMC,aAAa,SAASL,kBAAkB,CAAgB;AAErE,eAAe,MAAMM,QAAQ,SAASP,aAAa,CAA+C;EAGhGQ,WAAWA,CAACC,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAEN,aAAa,EAAE,IAAID,aAAa,CAAC,CAAC,CAAC;IAACQ,eAAA,iBAHnB,IAAI;IAAAA,eAAA,oBACT,EAAE;EAG7B;EAEAC,WAAWA,CAAA,EAAG;IACZ,MAAMF,KAAK,GAAG,IAAI,CAACG,KAAK,CAACH,KAAK;IAC9B,IAAIA,KAAK,CAACI,WAAW,KAAK,OAAO,EAAE;MACjC,MAAMC,MAAmB,GAAG;QAC1BC,cAAc,EAAEN,KAAK,CA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ACtB,MAAM,GAAGqB,aAAa;MAC3B,oBAAOhD,KAAA,CAAA+C,aAAA,CAAC9C,IAAI;QAACiD,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC;MAAK,gBACnCpD,KAAA,CAAA+C,aAAA,CAACzC,QAAQ;QAAC+C,SAAS,EAAE1C,KAAK,CAAC0C,SAAU;QAACF,MAAM,EAAE,IAAI,CAACA,MAAM,CAACG,MAAO;QAACC,QAAQ,EAAE5C,KAAK,CAAC4C,QAAS;QAACC,KAAK,EAAE,IAAI,CAAC3C,WAAW,CAAC+B,IAAI,CAAC,IAAI;MAAE,CAAW,CACtI,CAAC;IACT,CACc,CAAC;EAEzB;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmCameraProps"],"sources":["camera.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmCameraProps extends BaseProps {\n allowedit: boolean = false;\n capturetype: string = 'IMAGE';\n iconclass: string = 'wm-sl-l sl-camera';\n iconsize: number = 16;\n imagequality: number = 80;\n imageencodingtype: string = 'JPEG';\n imagetargetwidth: number = null as any;\n imagetargetheight: number = null as any;\n datavalue: any;\n localFilePath: string = '';\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,mCAC9B,KAAK;IAAA,qCACJ,OAAO;IAAA,mCACT,mBAAmB;IAAA,kCACpB,EAAE;IAAA,sCACE,EAAE;IAAA,2CACG,MAAM;IAAA,0CACP,IAAI;IAAA,2CACH,IAAI;IAAA;IAAA,uCAER,EAAE;EAAA;AAC5B"}
1
+ {"version":3,"names":["BaseProps","WmCameraProps","constructor","arguments","_defineProperty"],"sources":["camera.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmCameraProps extends BaseProps {\n allowedit: boolean = false;\n capturetype: string = 'IMAGE';\n iconclass: string = 'wm-sl-l sl-camera';\n iconsize: number = 16;\n imagequality: number = 80;\n imageencodingtype: string = 'JPEG';\n imagetargetwidth: number = null as any;\n imagetargetheight: number = null as any;\n datavalue: any;\n localFilePath: string = '';\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBAC9B,KAAK;IAAAA,eAAA,sBACJ,OAAO;IAAAA,eAAA,oBACT,mBAAmB;IAAAA,eAAA,mBACpB,EAAE;IAAAA,eAAA,uBACE,EAAE;IAAAA,eAAA,4BACG,MAAM;IAAAA,eAAA,2BACP,IAAI;IAAAA,eAAA,4BACH,IAAI;IAAAA,eAAA;IAAAA,eAAA,wBAER,EAAE;EAAA;AAC5B"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","BaseComponent","BaseComponentState","WmButton","WmLabel","WmDialog","WmDialogcontent","WmDialogactions","WmAlertdialogProps","DEFAULT_CLASS","WmAlertdialogState","MESSAGE_STYLES","Map","WmAlertdialog","constructor","props","onComponentInit","c","dialogRef","open","close","getMessageStyle","type","renderWidget","messageStyle","theme","getStyle","get","alerttype","iconclass","animation","closable","modal","styles","dialog","title","listener","invokeEventCallback","dialogContent","message","dialogActions","oktext","mergeStyle","okButton"],"sources":["alertdialog.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BaseComponent, BaseComponentState, LifecycleListener } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\nimport WmLabel from '@wavemaker/app-rn-runtime/components/basic/label/label.component';\n\nimport WmDialog from '../dialog/dialog.component';\nimport WmDialogcontent from '../dialogcontent/dialogcontent.component';\nimport WmDialogactions from '../dialogactions/dialogactions.component';\n\nimport WmAlertdialogProps from './alertdialog.props';\nimport { DEFAULT_CLASS, WmAlertdialogStyles } from './alertdialog.styles';\n\nexport class WmAlertdialogState extends BaseComponentState<WmAlertdialogProps> {}\n\nconst MESSAGE_STYLES = new Map<string, string>([\n ['error', 'text-danger'],\n ['information', 'text-info'],\n ['warning', 'text-warning'],\n ['success', 'text-success']\n]);\n\nexport default class WmAlertdialog extends BaseComponent<WmAlertdialogProps, WmAlertdialogState, WmAlertdialogStyles> {\n\n private dialogRef: WmDialog = null as any;\n\n private listener: LifecycleListener = {\n onComponentInit: (c) => {\n if (c instanceof WmDialog) {\n this.dialogRef = c;\n }\n }\n };\n\n constructor(props: WmAlertdialogProps) {\n super(props, DEFAULT_CLASS, new WmAlertdialogProps());\n }\n\n open() {\n this.dialogRef.open();\n }\n\n close() {\n this.dialogRef.close();\n }\n\n getMessageStyle(type: string) {\n\n }\n\n renderWidget(props: WmAlertdialogProps) {\n const messageStyle = this.theme.getStyle(MESSAGE_STYLES.get(props.alerttype || 'error') as string);\n return (\n <WmDialog\n iconclass={props.iconclass}\n animation={props.animation}\n closable={props.closable}\n modal={props.modal}\n styles={this.styles.dialog}\n title={props.title}\n listener={this.listener} onOpened={() => {\n this.invokeEventCallback('onOpened', [null, this]);\n }}>\n <WmDialogcontent styles={this.styles.dialogContent}>\n <WmLabel\n caption={props.message || ''}\n styles={this.styles.message}></WmLabel>\n </WmDialogcontent>\n <WmDialogactions styles={this.styles.dialogActions}>\n <WmButton\n caption={props.oktext}\n styles={this.theme.mergeStyle({}, this.theme.getStyle('btn-primary'), this.styles.okButton)}\n onTap={() => {\n this.dialogRef.close();\n this.invokeEventCallback('onOk', [null, this]);\n }}></WmButton>\n </WmDialogactions>\n </WmDialog>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,kBAAkB,QAA2B,+CAA+C;AAEpH,OAAOC,QAAQ,MAAM,oEAAoE;AACzF,OAAOC,OAAO,MAAM,kEAAkE;AAEtF,OAAOC,QAAQ,MAAM,4BAA4B;AACjD,OAAOC,eAAe,MAAM,0CAA0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,MAAM,CAACC,MAAO;MAC3B,KAAK,EAAEnB,KAAK,CAACoB,KAAM;MACnB,QAAQ,EAAE,IAAI,CAACC,QAAS;MAAC,QAAQ,EAAE,MAAM;QACzC,IAAI,CAACC,mBAAmB,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;MACpD;IAAE,gBACA,oBAAC,eAAe;MAAC,MAAM,EAAE,IAAI,CAACJ,MAAM,CAACK;IAAc,gBACjD,oBAAC,OAAO;MACN,OAAO,EAAEvB,KAAK,CAACwB,OAAO,IAAI,EAAG;MAC7B,MAAM,EAAE,IAAI,CAACN,MAAM,CAACM;IAAQ,EAAW,CACzB,eAClB,oBAAC,eAAe;MAAC,MAAM,EAAE,IAAI,CAACN,MAAM,CAACO;IAAc,gBACjD,oBAAC,QAAQ;MACP,OAAO,EAAEzB,KAAK,CAAC0B,MAAO;MACtB,MAAM,EAAE,IAAI,CAAChB,KAAK,CAACiB,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAACjB,KAAK,CAACC,QAAQ,CAAC,aAAa,CAAC,EAAE,IAAI,CAACO,MAAM,CAACU,QAAQ,CAAE;MAC5F,KAAK,EAAE,MAAM;QACX,IAAI,CAACzB,SAAS,CAACE,KAAK,EAAE;QACtB,IAAI,CAACiB,mBAAmB,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;MAChD;IAAE,EAAY,CACA,CACT;EAEf;AACF"}
1
+ {"version":3,"names":["React","BaseComponent","BaseComponentState","WmButton","WmLabel","WmDialog","WmDialogcontent","WmDialogactions","WmAlertdialogProps","DEFAULT_CLASS","WmAlertdialogState","MESSAGE_STYLES","Map","WmAlertdialog","constructor","props","_defineProperty","onComponentInit","c","dialogRef","open","close","getMessageStyle","type","renderWidget","messageStyle","theme","getStyle","get","alerttype","createElement","iconclass","animation","closable","modal","styles","dialog","title","listener","onOpened","invokeEventCallback","dialogContent","caption","message","dialogActions","oktext","mergeStyle","okButton","onTap"],"sources":["alertdialog.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BaseComponent, BaseComponentState, LifecycleListener } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\nimport WmLabel from '@wavemaker/app-rn-runtime/components/basic/label/label.component';\n\nimport WmDialog from '../dialog/dialog.component';\nimport WmDialogcontent from '../dialogcontent/dialogcontent.component';\nimport WmDialogactions from '../dialogactions/dialogactions.component';\n\nimport WmAlertdialogProps from './alertdialog.props';\nimport { DEFAULT_CLASS, WmAlertdialogStyles } from './alertdialog.styles';\n\nexport class WmAlertdialogState extends BaseComponentState<WmAlertdialogProps> {}\n\nconst MESSAGE_STYLES = new Map<string, string>([\n ['error', 'text-danger'],\n ['information', 'text-info'],\n ['warning', 'text-warning'],\n ['success', 'text-success']\n]);\n\nexport default class WmAlertdialog extends BaseComponent<WmAlertdialogProps, WmAlertdialogState, WmAlertdialogStyles> {\n\n private dialogRef: WmDialog = null as any;\n\n private listener: LifecycleListener = {\n onComponentInit: (c) => {\n if (c instanceof WmDialog) {\n this.dialogRef = c;\n }\n }\n };\n\n constructor(props: WmAlertdialogProps) {\n super(props, DEFAULT_CLASS, new WmAlertdialogProps());\n }\n\n open() {\n this.dialogRef.open();\n }\n\n close() {\n this.dialogRef.close();\n }\n\n getMessageStyle(type: string) {\n\n }\n\n renderWidget(props: WmAlertdialogProps) {\n const messageStyle = this.theme.getStyle(MESSAGE_STYLES.get(props.alerttype || 'error') as string);\n return (\n <WmDialog\n iconclass={props.iconclass}\n animation={props.animation}\n closable={props.closable}\n modal={props.modal}\n styles={this.styles.dialog}\n title={props.title}\n listener={this.listener} onOpened={() => {\n this.invokeEventCallback('onOpened', [null, this]);\n }}>\n <WmDialogcontent styles={this.styles.dialogContent}>\n <WmLabel\n caption={props.message || ''}\n styles={this.styles.message}></WmLabel>\n </WmDialogcontent>\n <WmDialogactions styles={this.styles.dialogActions}>\n <WmButton\n caption={props.oktext}\n styles={this.theme.mergeStyle({}, this.theme.getStyle('btn-primary'), this.styles.okButton)}\n onTap={() => {\n this.dialogRef.close();\n this.invokeEventCallback('onOk', [null, this]);\n }}></WmButton>\n </WmDialogactions>\n </WmDialog>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,kBAAkB,QAA2B,+CAA+C;AAEpH,OAAOC,QAAQ,MAAM,oEAAoE;AACzF,OAAOC,OAAO,MAAM,kEAAkE;AAEtF,OAAOC,QAAQ,MAAM,4BAA4B;AACjD,OAAOC,eAAe,MAAM,0CAA0C;AACtE,OAAOC,eAAe,MAAM,0CAA0C;AAEtE,OAAOC,kBAAkB,MAAM,qBAAqB;AACpD,SAASC,aAAa,QAA6B,sBAAsB;AAEzE,OAAO,MAAMC,kBAAkB,SAASR,kBAAkB,CAAqB;AAE/E,MAAMS,cAAc,GAAG,IAAIC,GAAG,CAAiB,CAC7C,CAAC,OAAO,EAAE,aAAa,CAAC,EACxB,CAAC,aAAa,EAAE,WAAW,CAAC,EAC5B,CAAC,SAAS,EAAE,cAAc,CAAC,EAC3B,CAAC,SAAS,EAAE,cAAc,CAAC,CAC5B,CAAC;AAEF,eAAe,MAAMC,aAAa,SAASZ,aAAa,CAA8D;EAYpHa,WAAWA,CAACC,KAAyB,EAAE;IACrC,KAAK,CAACA,KAAK,EAAEN,aAAa,EAAE,IAAID,kBAAkB,CAAC,CAAC,CAAC;IAACQ,eAAA,oBAX1B,IAAI;IAAAA,eAAA,mBAEI;MACpCC,eAAe,EAAGC,CAAC,IAAK;QACtB,IAAIA,CAAC,YAAYb,QAAQ,EAAE;UACzB,IAAI,CAACc,SAAS,GAAGD,CAAC;QACpB;MACF;IACF,CAAC;EAID;EAEAE,IAAIA,CAAA,EAAG;IACL,IAAI,CAACD,SAAS,CAACC,IAAI,CAAC,CAAC;EACvB;EAEAC,KAAKA,CAAA,EAAG;IACN,IAAI,CAACF,SAAS,CAACE,KAAK,C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C,QAAQ,CAAC,aAAa,CAAC,EAAE,IAAI,CAACQ,MAAM,CAACY,QAAQ,CAAE;MAC5FC,KAAK,EAAEA,CAAA,KAAM;QACX,IAAI,CAAC7B,SAAS,CAACE,KAAK,CAAC,CAAC;QACtB,IAAI,CAACmB,mBAAmB,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;MAChD;IAAE,CAAW,CACA,CACT,CAAC;EAEf;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmAlertdialogProps"],"sources":["alertdialog.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmAlertdialogProps extends BaseProps {\n animation: string = null as any;\n title? = 'Alert';\n iconclass? = 'wi wi-warning';\n alerttype? = 'error'\n oktext? = 'Ok';\n message? = 'I am an alert box!';\n modal? = false;\n closable? = true;\n onOpened?: Function = null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,kBAAkB,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,mCACpC,IAAI;IAAA,+BACf,OAAO;IAAA,mCACH,eAAe;IAAA,mCACf,OAAO;IAAA,gCACV,IAAI;IAAA,iCACH,oBAAoB;IAAA,+BACtB,KAAK;IAAA,kCACF,IAAI;IAAA,kCACM,IAAI;EAAA;AAC5B"}
1
+ {"version":3,"names":["BaseProps","WmAlertdialogProps","constructor","arguments","_defineProperty"],"sources":["alertdialog.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmAlertdialogProps extends BaseProps {\n animation: string = null as any;\n title? = 'Alert';\n iconclass? = 'wi wi-warning';\n alerttype? = 'error'\n oktext? = 'Ok';\n message? = 'I am an alert box!';\n modal? = false;\n closable? = true;\n onOpened?: Function = null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,kBAAkB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBACpC,IAAI;IAAAA,eAAA,gBACf,OAAO;IAAAA,eAAA,oBACH,eAAe;IAAAA,eAAA,oBACf,OAAO;IAAAA,eAAA,iBACV,IAAI;IAAAA,eAAA,kBACH,oBAAoB;IAAAA,eAAA,gBACtB,KAAK;IAAAA,eAAA,mBACF,IAAI;IAAAA,eAAA,mBACM,IAAI;EAAA;AAC5B"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","BaseComponent","BaseComponentState","WmButton","WmLabel","WmDialog","WmDialogcontent","WmDialogactions","WmConfirmdialogProps","DEFAULT_CLASS","WmConfirmdialogState","WmConfirmdialog","constructor","props","onComponentInit","c","dialogRef","open","close","getMessageStyle","type","renderWidget","iconclass","animation","closable","modal","styles","dialog","title","listener","invokeEventCallback","dialogContent","message","dialogActions","canceltext","theme","mergeStyle","getStyle","cancelButton","oktext","okButton"],"sources":["confirmdialog.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BaseComponent, BaseComponentState, LifecycleListener } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\nimport WmLabel from '@wavemaker/app-rn-runtime/components/basic/label/label.component';\n\nimport WmDialog from '../dialog/dialog.component';\nimport WmDialogcontent from '../dialogcontent/dialogcontent.component';\nimport WmDialogactions from '../dialogactions/dialogactions.component';\n\nimport WmConfirmdialogProps from './confirmdialog.props';\nimport { DEFAULT_CLASS, WmConfirmdialogStyles } from './confirmdialog.styles';\nimport { merge } from 'lodash-es';\n\nexport class WmConfirmdialogState extends BaseComponentState<WmConfirmdialogProps> {}\n\nexport default class WmConfirmdialog extends BaseComponent<WmConfirmdialogProps, WmConfirmdialogState, WmConfirmdialogStyles> {\n\n private dialogRef: WmDialog = null as any;\n\n private listener: LifecycleListener = {\n onComponentInit: (c) => {\n if (c instanceof WmDialog) {\n this.dialogRef = c;\n }\n }\n };\n\n constructor(props: WmConfirmdialogProps) {\n super(props, DEFAULT_CLASS, new WmConfirmdialogProps());\n }\n\n open() {\n this.dialogRef.open();\n }\n\n close() {\n this.dialogRef.close();\n }\n\n getMessageStyle(type: string) {\n\n }\n\n renderWidget(props: WmConfirmdialogProps) {\n return (\n <WmDialog\n iconclass={props.iconclass}\n animation={props.animation}\n closable={props.closable}\n modal={props.modal}\n styles={this.styles.dialog}\n title={props.title}\n listener={this.listener} onOpened={() => {\n this.invokeEventCallback('onOpened', [null, this]);\n }}>\n <WmDialogcontent styles={this.styles.dialogContent}>\n <WmLabel\n caption={props.message || ''}\n styles={this.styles.message}></WmLabel>\n </WmDialogcontent>\n <WmDialogactions styles={this.styles.dialogActions}>\n <WmButton\n caption={props.canceltext}\n styles={this.theme.mergeStyle({}, this.theme.getStyle('btn-secondary'), this.styles.cancelButton)}\n onTap={() => {\n this.dialogRef.close();\n this.invokeEventCallback('onCancel', [null, this]);\n }}></WmButton>\n <WmButton\n caption={props.oktext}\n styles={this.theme.mergeStyle({}, this.theme.getStyle('btn-primary'), this.styles.okButton)}\n onTap={() => {\n this.dialogRef.close();\n this.invokeEventCallback('onOk', [null, this]);\n }}></WmButton>\n </WmDialogactions>\n </WmDialog>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,kBAAkB,QAA2B,+CAA+C;AAEpH,OAAOC,QAAQ,MAAM,oEAAoE;AACzF,OAAOC,OAAO,MAAM,kEAAkE;AAEtF,OAAOC,QAAQ,MAAM,4BAA4B;AACjD,OAAOC,eAAe,MAAM,0CAA0C;AACtE,OAAOC,eAAe,MAAM,0CAA0C;AAEtE,OAAOC,oBAAoB,MAAM,uBAAuB;AACxD,SAASC,aAAa,QAA+B,wBAAwB;AAG7E,OAAO,MAAMC,oBAAoB,SAASR,kBAAkB,CAAuB;AAEnF,eAAe,MAAMS,eAAe,SAASV,aAAa,CAAoE;EAY5HW,WAAW,CAACC,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ACC,KAAK,CAACC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAACD,KAAK,CAACE,QAAQ,CAAC,eAAe,CAAC,EAAE,IAAI,CAACX,MAAM,CAACY,YAAY,CAAE;MAClG,KAAK,EAAE,MAAM;QACX,IAAI,CAACtB,SAAS,CAACE,KAAK,EAAE;QACtB,IAAI,CAACY,mBAAmB,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;MACpD;IAAE,EAAY,eAChB,oBAAC,QAAQ;MACP,OAAO,EAAEjB,KAAK,CAAC0B,MAAO;MACtB,MAAM,EAAE,IAAI,CAACJ,KAAK,CAACC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAACD,KAAK,CAACE,QAAQ,CAAC,aAAa,CAAC,EAAE,IAAI,CAACX,MAAM,CAACc,QAAQ,CAAE;MAC5F,KAAK,EAAE,MAAM;QACX,IAAI,CAACxB,SAAS,CAACE,KAAK,EAAE;QACtB,IAAI,CAACY,mBAAmB,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;MAChD;IAAE,EAAY,CACA,CACT;EAEf;AACF"}
1
+ {"version":3,"names":["React","BaseComponent","BaseComponentState","WmButton","WmLabel","WmDialog","WmDialogcontent","WmDialogactions","WmConfirmdialogProps","DEFAULT_CLASS","WmConfirmdialogState","WmConfirmdialog","constructor","props","_defineProperty","onComponentInit","c","dialogRef","open","close","getMessageStyle","type","renderWidget","createElement","iconclass","animation","closable","modal","styles","dialog","title","listener","onOpened","invokeEventCallback","dialogContent","caption","message","dialogActions","canceltext","theme","mergeStyle","getStyle","cancelButton","onTap","oktext","okButton"],"sources":["confirmdialog.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BaseComponent, BaseComponentState, LifecycleListener } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\nimport WmLabel from '@wavemaker/app-rn-runtime/components/basic/label/label.component';\n\nimport WmDialog from '../dialog/dialog.component';\nimport WmDialogcontent from '../dialogcontent/dialogcontent.component';\nimport WmDialogactions from '../dialogactions/dialogactions.component';\n\nimport WmConfirmdialogProps from './confirmdialog.props';\nimport { DEFAULT_CLASS, WmConfirmdialogStyles } from './confirmdialog.styles';\nimport { merge } from 'lodash-es';\n\nexport class WmConfirmdialogState extends BaseComponentState<WmConfirmdialogProps> {}\n\nexport default class WmConfirmdialog extends BaseComponent<WmConfirmdialogProps, WmConfirmdialogState, WmConfirmdialogStyles> {\n\n private dialogRef: WmDialog = null as any;\n\n private listener: LifecycleListener = {\n onComponentInit: (c) => {\n if (c instanceof WmDialog) {\n this.dialogRef = c;\n }\n }\n };\n\n constructor(props: WmConfirmdialogProps) {\n super(props, DEFAULT_CLASS, new WmConfirmdialogProps());\n }\n\n open() {\n this.dialogRef.open();\n }\n\n close() {\n this.dialogRef.close();\n }\n\n getMessageStyle(type: string) {\n\n }\n\n renderWidget(props: WmConfirmdialogProps) {\n return (\n <WmDialog\n iconclass={props.iconclass}\n animation={props.animation}\n closable={props.closable}\n modal={props.modal}\n styles={this.styles.dialog}\n title={props.title}\n listener={this.listener} onOpened={() => {\n this.invokeEventCallback('onOpened', [null, this]);\n }}>\n <WmDialogcontent styles={this.styles.dialogContent}>\n <WmLabel\n caption={props.message || ''}\n styles={this.styles.message}></WmLabel>\n </WmDialogcontent>\n <WmDialogactions styles={this.styles.dialogActions}>\n <WmButton\n caption={props.canceltext}\n styles={this.theme.mergeStyle({}, this.theme.getStyle('btn-secondary'), this.styles.cancelButton)}\n onTap={() => {\n this.dialogRef.close();\n this.invokeEventCallback('onCancel', [null, this]);\n }}></WmButton>\n <WmButton\n caption={props.oktext}\n styles={this.theme.mergeStyle({}, this.theme.getStyle('btn-primary'), this.styles.okButton)}\n onTap={() => {\n this.dialogRef.close();\n this.invokeEventCallback('onOk', [null, this]);\n }}></WmButton>\n </WmDialogactions>\n </WmDialog>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA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AA,KAAM;QACX,IAAI,CAAC1B,SAAS,CAACE,KAAK,CAAC,CAAC;QACtB,IAAI,CAACc,mBAAmB,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;MAChD;IAAE,CAAW,CACA,CACT,CAAC;EAEf;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmConfirmdialogProps"],"sources":["confirmdialog.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmConfirmdialogProps extends BaseProps {\n animation: string = null as any;\n title? = 'Confirm';\n iconclass? = 'wm-sl-l sl-check';\n oktext? = 'Ok';\n canceltext? = 'CANCEL';\n message? = 'I am confirm box!';\n modal? = false;\n closable? = true;\n onOpened?: Function = null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,oBAAoB,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,mCACpC,IAAI;IAAA,+BACf,SAAS;IAAA,mCACL,kBAAkB;IAAA,gCACrB,IAAI;IAAA,oCACA,QAAQ;IAAA,iCACX,mBAAmB;IAAA,+BACrB,KAAK;IAAA,kCACF,IAAI;IAAA,kCACM,IAAI;EAAA;AAC9B"}
1
+ {"version":3,"names":["BaseProps","WmConfirmdialogProps","constructor","arguments","_defineProperty"],"sources":["confirmdialog.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmConfirmdialogProps extends BaseProps {\n animation: string = null as any;\n title? = 'Confirm';\n iconclass? = 'wm-sl-l sl-check';\n oktext? = 'Ok';\n canceltext? = 'CANCEL';\n message? = 'I am confirm box!';\n modal? = false;\n closable? = true;\n onOpened?: Function = null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,oBAAoB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBACpC,IAAI;IAAAA,eAAA,gBACf,SAAS;IAAAA,eAAA,oBACL,kBAAkB;IAAAA,eAAA,iBACrB,IAAI;IAAAA,eAAA,qBACA,QAAQ;IAAAA,eAAA,kBACX,mBAAmB;IAAAA,eAAA,gBACrB,KAAK;IAAAA,eAAA,mBACF,IAAI;IAAAA,eAAA,mBACM,IAAI;EAAA;AAC9B"}
@@ -1,5 +1,6 @@
1
1
  import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';
2
2
  import { defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';
3
+ import { Platform } from 'react-native';
3
4
  export const DEFAULT_CLASS = 'app-confirmdialog';
4
5
  BASE_THEME.registerStyle((themeVariables, addStyle) => {
5
6
  const defaultStyles = defineStyles({
@@ -45,5 +46,13 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
45
46
  }
46
47
  });
47
48
  addStyle(DEFAULT_CLASS, '', defaultStyles);
49
+ addStyle(DEFAULT_CLASS + '-rtl', '', Platform.OS == "web" ? {
50
+ cancelButton: {
51
+ root: {
52
+ marginLeft: 8,
53
+ marginRight: 0
54
+ }
55
+ }
56
+ } : {});
48
57
  });
49
58
  //# sourceMappingURL=confirmdialog.styles.js.map