@wavemaker/app-rn-runtime 11.5.2-next.141021 → 11.5.2-next.141025

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. app-rn-runtime/components/advanced/carousel/carousel.component.js +9 -14
  2. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  3. app-rn-runtime/components/advanced/carousel/carousel.styles.js +3 -6
  4. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  5. app-rn-runtime/components/advanced/webview/webview.component.js +14 -33
  6. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  7. app-rn-runtime/components/advanced/webview/webview.props.js +1 -3
  8. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  9. app-rn-runtime/components/basic/anchor/anchor.component.js +8 -22
  10. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  11. app-rn-runtime/components/basic/anchor/anchor.props.js +0 -7
  12. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  13. app-rn-runtime/components/basic/anchor/anchor.styles.js +0 -1
  14. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  15. app-rn-runtime/components/basic/animatedview.component.js +3 -5
  16. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  17. app-rn-runtime/components/basic/button/button.component.js +7 -40
  18. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  19. app-rn-runtime/components/basic/button/button.props.js +0 -7
  20. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  21. app-rn-runtime/components/basic/button/button.styles.js +6 -6
  22. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  23. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js +5 -13
  24. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  25. app-rn-runtime/components/basic/icon/icon.component.js +12 -64
  26. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  27. app-rn-runtime/components/basic/icon/icon.props.js +0 -7
  28. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  29. app-rn-runtime/components/basic/icon/icon.styles.js +1 -2
  30. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  31. app-rn-runtime/components/basic/label/label.component.js +25 -34
  32. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  33. app-rn-runtime/components/basic/label/label.props.js +0 -3
  34. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  35. app-rn-runtime/components/basic/label/label.styles.js +5 -4
  36. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  37. app-rn-runtime/components/basic/message/message.component.js +2 -3
  38. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  39. app-rn-runtime/components/basic/message/message.props.js +0 -3
  40. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  41. app-rn-runtime/components/basic/message/message.styles.js +1 -3
  42. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  43. app-rn-runtime/components/basic/picture/picture.component.js +2 -4
  44. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  45. app-rn-runtime/components/basic/picture/picture.props.js +0 -3
  46. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  47. app-rn-runtime/components/basic/picture/picture.styles.js +1 -2
  48. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  49. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +3 -3
  50. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  51. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js +0 -2
  52. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  53. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +2 -3
  54. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  55. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js +0 -2
  56. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  57. app-rn-runtime/components/basic/search/search.component.js +1 -2
  58. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  59. app-rn-runtime/components/basic/search/search.props.js +0 -3
  60. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  61. app-rn-runtime/components/basic/search/search.styles.js +5 -6
  62. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  63. app-rn-runtime/components/basic/video/video.component.js +2 -4
  64. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  65. app-rn-runtime/components/basic/video/video.props.js +0 -3
  66. app-rn-runtime/components/basic/video/video.props.js.map +1 -1
  67. app-rn-runtime/components/chart/area-chart/area-chart.component.js +16 -23
  68. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  69. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js +16 -29
  70. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  71. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js +2 -0
  72. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  73. app-rn-runtime/components/chart/basechart.component.js +7 -33
  74. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  75. app-rn-runtime/components/chart/basechart.props.js +2 -7
  76. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  77. app-rn-runtime/components/chart/basechart.styles.js +2 -9
  78. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  79. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js +2 -4
  80. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  81. app-rn-runtime/components/chart/line-chart/line-chart.component.js +18 -23
  82. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  83. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  84. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +4 -7
  85. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  86. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js +10 -33
  87. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js.map +1 -1
  88. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js +0 -1
  89. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js.map +1 -1
  90. app-rn-runtime/components/container/container.component.js +2 -11
  91. app-rn-runtime/components/container/container.component.js.map +1 -1
  92. app-rn-runtime/components/container/container.props.js +0 -1
  93. app-rn-runtime/components/container/container.props.js.map +1 -1
  94. app-rn-runtime/components/container/panel/panel.component.js +2 -6
  95. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  96. app-rn-runtime/components/container/panel/panel.props.js +0 -4
  97. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  98. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +1 -1
  99. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  100. app-rn-runtime/components/container/wizard/wizard.component.js +14 -17
  101. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  102. app-rn-runtime/components/container/wizard/wizard.styles.js +3 -19
  103. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  104. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +2 -27
  105. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  106. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js +0 -6
  107. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  108. app-rn-runtime/components/data/card/card.component.js +3 -7
  109. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  110. app-rn-runtime/components/data/card/card.props.js +0 -4
  111. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  112. app-rn-runtime/components/data/form/form-action/form-action.styles.js +1 -2
  113. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  114. app-rn-runtime/components/data/form/form-field/form-field.component.js +1 -5
  115. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  116. app-rn-runtime/components/data/list/list.component.js +6 -58
  117. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  118. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +1 -4
  119. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  120. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js +0 -3
  121. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  122. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js +6 -13
  123. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js.map +1 -1
  124. app-rn-runtime/components/device/camera/camera.component.js +1 -4
  125. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  126. app-rn-runtime/components/device/camera/camera.props.js +0 -3
  127. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  128. app-rn-runtime/components/device/camera/camera.styles.js +4 -12
  129. app-rn-runtime/components/device/camera/camera.styles.js.map +1 -1
  130. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js +0 -4
  131. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  132. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js +0 -4
  133. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  134. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js +1 -2
  135. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -1
  136. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js +0 -4
  137. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  138. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js +0 -4
  139. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  140. app-rn-runtime/components/dialogs/dialog/dialog.component.js +3 -7
  141. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  142. app-rn-runtime/components/dialogs/dialog/dialog.props.js +0 -4
  143. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  144. app-rn-runtime/components/dialogs/dialog/dialog.styles.js +2 -11
  145. app-rn-runtime/components/dialogs/dialog/dialog.styles.js.map +1 -1
  146. app-rn-runtime/components/input/basedataset/basedataset.props.js +0 -4
  147. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  148. app-rn-runtime/components/input/baseinput/baseinput.component.js +2 -2
  149. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  150. app-rn-runtime/components/input/baseinput/baseinput.props.js +0 -4
  151. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  152. app-rn-runtime/components/input/basenumber/basenumber.component.js +10 -16
  153. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  154. app-rn-runtime/components/input/basenumber/basenumber.props.js +0 -4
  155. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  156. app-rn-runtime/components/input/checkbox/checkbox.component.js +5 -12
  157. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  158. app-rn-runtime/components/input/checkbox/checkbox.styles.js +5 -35
  159. app-rn-runtime/components/input/checkbox/checkbox.styles.js.map +1 -1
  160. app-rn-runtime/components/input/checkboxset/checkboxset.component.js +6 -13
  161. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  162. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js +10 -39
  163. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +1 -1
  164. app-rn-runtime/components/input/chips/chips.component.js +1 -5
  165. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  166. app-rn-runtime/components/input/composite/composite.component.js +1 -1
  167. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  168. app-rn-runtime/components/input/composite/composite.props.js +1 -1
  169. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  170. app-rn-runtime/components/input/currency/currency.component.js +2 -18
  171. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  172. app-rn-runtime/components/input/currency/currency.props.js +0 -1
  173. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  174. app-rn-runtime/components/input/currency/currency.styles.js +1 -19
  175. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  176. app-rn-runtime/components/input/epoch/base-datetime.component.js +10 -76
  177. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  178. app-rn-runtime/components/input/epoch/date/date.component.js +0 -8
  179. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  180. app-rn-runtime/components/input/epoch/date/date.styles.js +0 -16
  181. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  182. app-rn-runtime/components/input/epoch/datetime/datetime.component.js +0 -8
  183. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  184. app-rn-runtime/components/input/epoch/datetime/datetime.props.js +0 -5
  185. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  186. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +1 -49
  187. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  188. app-rn-runtime/components/input/epoch/time/time.component.js +0 -8
  189. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  190. app-rn-runtime/components/input/epoch/time/time.styles.js +0 -16
  191. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  192. app-rn-runtime/components/input/fileupload/fileupload.component.js +0 -2
  193. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  194. app-rn-runtime/components/input/fileupload/fileupload.props.js +0 -2
  195. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  196. app-rn-runtime/components/input/fileupload/fileupload.styles.js +1 -1
  197. app-rn-runtime/components/input/fileupload/fileupload.styles.js.map +1 -1
  198. app-rn-runtime/components/input/number/number.component.js +1 -13
  199. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  200. app-rn-runtime/components/input/number/number.props.js +0 -1
  201. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  202. app-rn-runtime/components/input/number/number.styles.js +0 -17
  203. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  204. app-rn-runtime/components/input/radioset/radioset.component.js +2 -7
  205. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  206. app-rn-runtime/components/input/select/select.component.js +3 -7
  207. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  208. app-rn-runtime/components/input/select/select.styles.js +1 -5
  209. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  210. app-rn-runtime/components/input/slider/slider.styles.js +3 -3
  211. app-rn-runtime/components/input/slider/slider.styles.js.map +1 -1
  212. app-rn-runtime/components/input/switch/switch.component.js +1 -8
  213. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  214. app-rn-runtime/components/input/switch/switch.styles.js +5 -10
  215. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  216. app-rn-runtime/components/input/text/text.component.js +1 -13
  217. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  218. app-rn-runtime/components/input/text/text.props.js +0 -1
  219. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  220. app-rn-runtime/components/input/text/text.styles.js +0 -17
  221. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  222. app-rn-runtime/components/input/textarea/textarea.component.js +1 -13
  223. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  224. app-rn-runtime/components/input/textarea/textarea.props.js +0 -1
  225. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  226. app-rn-runtime/components/input/textarea/textarea.styles.js +0 -17
  227. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  228. app-rn-runtime/components/input/toggle/toggle.component.js +5 -48
  229. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  230. app-rn-runtime/components/input/toggle/toggle.props.js +0 -4
  231. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  232. app-rn-runtime/components/input/toggle/toggle.styles.js +12 -5
  233. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  234. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +1 -6
  235. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  236. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js +0 -1
  237. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  238. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js +1 -9
  239. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  240. app-rn-runtime/components/navigation/basenav/basenav.component.js +2 -1
  241. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  242. app-rn-runtime/components/navigation/menu/menu.styles.js +5 -8
  243. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  244. app-rn-runtime/components/navigation/navitem/navitem.component.js +5 -8
  245. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  246. app-rn-runtime/components/navigation/navitem/navitem.props.js +0 -3
  247. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  248. app-rn-runtime/components/navigation/popover/popover.component.js +3 -10
  249. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  250. app-rn-runtime/components/navigation/popover/popover.props.js +0 -7
  251. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  252. app-rn-runtime/components/navigation/popover/popover.styles.js +2 -8
  253. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  254. app-rn-runtime/components/page/tabbar/tabbar.component.js +8 -42
  255. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  256. app-rn-runtime/components/page/tabbar/tabbar.styles.js +16 -82
  257. app-rn-runtime/components/page/tabbar/tabbar.styles.js.map +1 -1
  258. app-rn-runtime/core/base.component.js +2 -15
  259. app-rn-runtime/core/base.component.js.map +1 -1
  260. app-rn-runtime/core/components/textinput.component.js +2 -25
  261. app-rn-runtime/core/components/textinput.component.js.map +1 -1
  262. app-rn-runtime/core/tappable.component.js +10 -37
  263. app-rn-runtime/core/tappable.component.js.map +1 -1
  264. app-rn-runtime/core/utils.js +0 -11
  265. app-rn-runtime/core/utils.js.map +1 -1
  266. app-rn-runtime/gestures/swipe.animation.js +1 -34
  267. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  268. app-rn-runtime/package.json +3 -5
  269. app-rn-runtime/runtime/App.js +0 -4
  270. app-rn-runtime/runtime/App.js.map +1 -1
  271. app-rn-runtime/runtime/base-page.component.js +1 -1
  272. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  273. app-rn-runtime/runtime/services/app-security.service.js +1 -2
  274. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  275. app-rn-runtime/runtime/services/webprocess.service.js +1 -0
  276. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  277. app-rn-runtime/styles/theme.js +0 -36
  278. app-rn-runtime/styles/theme.js.map +1 -1
  279. app-rn-runtime/styles/theme.variables.js +3 -26
  280. app-rn-runtime/styles/theme.variables.js.map +1 -1
  281. app-rn-runtime/variables/model-variable.js +1 -2
  282. app-rn-runtime/variables/model-variable.js.map +1 -1
  283. app-rn-runtime/variables/service-variable.js +0 -1
  284. app-rn-runtime/variables/service-variable.js.map +1 -1
  285. app-rn-runtime/components/chart/staticdata.js +0 -215
  286. app-rn-runtime/components/chart/staticdata.js.map +0 -1
  287. app-rn-runtime/components/page/tabbar/curve.js +0 -84
  288. app-rn-runtime/components/page/tabbar/curve.js.map +0 -1
  289. app-rn-runtime/core/accessibility.js +0 -149
  290. app-rn-runtime/core/accessibility.js.map +0 -1
  291. app-rn-runtime/core/components/floatinglabel.component.js +0 -45
  292. app-rn-runtime/core/components/floatinglabel.component.js.map +0 -1
@@ -4,7 +4,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typ
4
4
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
5
5
  import React from 'react';
6
6
  import { SectionList, Text, View, FlatList } from 'react-native';
7
- import { isArray, isEmpty, isNil, isNumber, round } from 'lodash-es';
7
+ import { isArray, isEmpty, isNil, round } from 'lodash-es';
8
8
  import { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';
9
9
  import { getGroupedData, isDefined } from "@wavemaker/app-rn-runtime/core/utils";
10
10
  import { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';
@@ -78,52 +78,6 @@ export default class WmList extends BaseComponent {
78
78
  this.onSelect(props.dataset[0], index);
79
79
  }
80
80
  }
81
- clear() {
82
- this.updateState({
83
- groupedData: {}
84
- });
85
- }
86
- selectItem(item) {
87
- const dataset = this.state.props.dataset;
88
- if (isNumber(item)) {
89
- this.onSelect(dataset[item], item);
90
- } else {
91
- let index = dataset.indexOf(item);
92
- this.onSelect(dataset[index], index);
93
- }
94
- }
95
- getItem(index) {
96
- const props = this.state.props;
97
- return this.props.dataset[index];
98
- }
99
- deselect(item) {
100
- const props = this.state.props;
101
- let selectedItem = null;
102
- let index = isNumber(item) ? item : props.dataset.indexOf(item);
103
- if (props.multiselect && index >= 0) {
104
- selectedItem = [...(props.selecteditem || [])];
105
- let selectedItemIndex = selectedItem.indexOf(props.dataset[index]);
106
- if (selectedItemIndex >= 0) {
107
- selectedItem.splice(selectedItemIndex, 1);
108
- }
109
- } else {
110
- if (props.selecteditem === props.dataset[index]) {
111
- selectedItem = null;
112
- }
113
- }
114
- this.updateState({
115
- props: {
116
- selecteditem: selectedItem
117
- }
118
- });
119
- }
120
- getWidgets(widgetname, index) {
121
- if (index >= 0 && index < this.itemWidgets.length) {
122
- return this.itemWidgets[index][widgetname];
123
- } else {
124
- return this.itemWidgets.map(item => item[widgetname]).filter(widget => widget !== undefined);
125
- }
126
- }
127
81
  deselectAll() {
128
82
  this.updateState({
129
83
  props: {
@@ -188,12 +142,6 @@ export default class WmList extends BaseComponent {
188
142
  } else if (isArray(this.state.props.selecteditem)) {
189
143
  this.state.props.selecteditem = this.state.props.selecteditem.pop();
190
144
  }
191
- break;
192
- case 'selecteditem':
193
- if ($new != $old && isNumber($new)) {
194
- this.selectItem(this.state.props.dataset[$new]);
195
- }
196
- break;
197
145
  }
198
146
  }
199
147
  componentDidMount() {
@@ -226,9 +174,7 @@ export default class WmList extends BaseComponent {
226
174
  renderItem(item, index, props) {
227
175
  const cols = this.getNoOfColumns();
228
176
  const isHorizontal = props.direction === 'horizontal';
229
- return /*#__PURE__*/React.createElement(View, {
230
- style: [this.styles.item, props.itemclass ? this.theme.getStyle(props.itemclass(item, index)) : null, this.isSelected(item) ? this.styles.selectedItem : {}]
231
- }, /*#__PURE__*/React.createElement(Tappable, _extends({}, this.getTestPropsForAction(`item${index}`), {
177
+ return /*#__PURE__*/React.createElement(Tappable, _extends({}, this.getTestPropsForAction(`item${index}`), {
232
178
  onTap: () => this.onSelect(item, index, true),
233
179
  onLongTap: () => this.invokeEventCallback('onLongtap', [null, this.proxy]),
234
180
  onDoubleTap: () => this.invokeEventCallback('onDoubletap', [null, this.proxy]),
@@ -237,7 +183,9 @@ export default class WmList extends BaseComponent {
237
183
  } : null, cols || isHorizontal ? {
238
184
  paddingRight: (isNil(this.styles.item.marginRight) ? this.styles.item.margin : this.styles.item.marginRight) || 4
239
185
  } : null]
240
- }), props.renderItem(item, index, this), this.isSelected(item) ? /*#__PURE__*/React.createElement(WmIcon, {
186
+ }), /*#__PURE__*/React.createElement(View, {
187
+ style: [this.styles.item, props.itemclass ? this.theme.getStyle(props.itemclass(item, index)) : null, this.isSelected(item) ? this.styles.selectedItem : {}]
188
+ }, props.renderItem(item, index, this), this.isSelected(item) ? /*#__PURE__*/React.createElement(WmIcon, {
241
189
  id: this.getTestId('icon' + index),
242
190
  iconclass: "wi wi-check-circle",
243
191
  styles: this.styles.selectedIcon
@@ -302,7 +250,7 @@ export default class WmList extends BaseComponent {
302
250
  key: props.name + '_' + (isHorizontal ? 'H' : 'V') + props.itemsperrow.xs,
303
251
  keyExtractor: (item, i) => this.generateItemKey(item, i, props),
304
252
  horizontal: isHorizontal,
305
- data: isEmpty(v.data[0]) ? [] : v.data,
253
+ data: v.data || [],
306
254
  ListEmptyComponent: itemInfo => this.renderEmptyMessage(isHorizontal, itemInfo.item, itemInfo.index, props),
307
255
  renderItem: itemInfo => this.renderItem(itemInfo.item, itemInfo.index, props)
308
256
  }, isHorizontal ? {} : {
@@ -1 +1 @@
1
- {"version":3,"names":["React","SectionList","Text","View","FlatList","isArray","isEmpty","isNil","isNumber","round","BaseComponent","BaseComponentState","getGroupedData","isDefined","Tappable","DefaultKeyExtractor","WmLabel","WmIcon","WmListProps","DEFAULT_CLASS","WmListState","constructor","arguments","_defineProperty","WmList","props","isSelected","$item","selectedItem","state","selecteditem","indexOf","onSelect","$index","triggerTapEvent","length","undefined","disableitem","multiselect","index","selectionlimit","push","invokeEventCallback","splice","selectedItemWidgets","itemWidgets","updateState","selectedindex","proxy","selectFirstItem","initialized","dataset","groupby","clear","groupedData","selectItem","item","getItem","deselect","selectedItemIndex","getWidgets","widgetname","map","filter","widget","deselectAll","setGroupData","items","dataItems","match","orderby","dateformat","_this$keyExtractor","keyExtractor","onPropertyChange","name","$new","$old","data","direction","key","_this$keyExtractor2","selectfirstitem","pop","componentDidMount","_props$dataset","setTimeout","componentDidUpdate","prevProps","prevState","snapshot","getDefaultStyles","isHorizontal","theme","getStyle","defaultClass","getIndex","generateItemKey","itemkey","_showSkeleton","getKey","renderItem","cols","getNoOfColumns","createElement","style","styles","itemclass","_extends","getTestPropsForAction","onTap","onLongTap","onDoubleTap","width","paddingRight","marginRight","margin","id","getTestId","iconclass","selectedIcon","renderHeader","title","groupHeading","subheading","heading","flex","flexDirection","listIcon","caption","renderEmptyMessage","emptyMessage","nodatamessage","renderLoadingIcon","loadingIcon","loadingicon","loadingdatamsg","itemsperrow","xs","renderWithFlatList","root","v","i","marginBottom","horizontal","ListEmptyComponent","itemInfo","numColumns","getSectionListData","renderWithSectionList","onEndReached","_ref","distanceFromEnd","setState","currentPage","contentContainerStyle","onEndReachedThreshold","sections","renderSectionHeader","_ref2","section","renderSectionFooter","loadingdata","renderWidget","_background"],"sources":["list.component.tsx"],"sourcesContent":["import React from 'react';\nimport { SectionList, Text, View, FlatList } from 'react-native';\nimport { isArray, isEmpty, isNil, isNumber, round } from 'lodash-es';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport {getGroupedData, isDefined} from \"@wavemaker/app-rn-runtime/core/utils\";\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport { DefaultKeyExtractor } from '@wavemaker/app-rn-runtime/core/key.extractor';\nimport WmLabel from '@wavemaker/app-rn-runtime/components/basic/label/label.component';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';\n\nimport WmListProps from './list.props';\nimport { DEFAULT_CLASS, WmListStyles } from './list.styles';\n\n\nexport class WmListState extends BaseComponentState<WmListProps> {\n public selectedindex: any;\n groupedData: Array<any> = [];\n currentPage: number = 1;\n}\n\nexport default class WmList extends BaseComponent<WmListProps, WmListState, WmListStyles> {\n\n private itemWidgets = [] as any[];\n private selectedItemWidgets = {} as any;\n private keyExtractor = new DefaultKeyExtractor();\n \n constructor(props: WmListProps) {\n super(props, DEFAULT_CLASS, new WmListProps(), new WmListState());\n }\n\n private isSelected($item: any) {\n const selectedItem = this.state.props.selecteditem;\n if (isArray(selectedItem)) {\n return selectedItem.indexOf($item) >= 0;\n }\n return selectedItem === $item;\n }\n\n private onSelect($item: any, $index: number | string, triggerTapEvent = false) {\n const props = this.state.props;\n let selectedItem = null as any;\n if (props.disableitem !== true \n && (typeof props.disableitem !== 'function' || !props.disableitem($item, $index))) {\n if (props.multiselect) {\n selectedItem = [...(props.selecteditem || [])];\n const index = selectedItem.indexOf($item);\n if (index < 0) {\n if ((!props.selectionlimit)\n || props.selectionlimit < 0\n || selectedItem.length < props.selectionlimit) {\n selectedItem.push($item);\n } else {\n this.invokeEventCallback('onSelectionlimitexceed', [null, this]);\n }\n } else {\n selectedItem.splice(index, 1);\n }\n } else {\n if (props.selecteditem === $item) {\n selectedItem = null;\n } else {\n selectedItem = $item;\n }\n }\n this.selectedItemWidgets = this.itemWidgets[$index as number];\n this.updateState({\n props: { selecteditem: selectedItem },\n selectedindex: $index\n } as WmListState, () => {\n this.invokeEventCallback('onSelect', [this.proxy, $item]);\n triggerTapEvent && this.invokeEventCallback('onTap', [null, this.proxy]);\n });\n }\n }\n\n private selectFirstItem() {\n const props = this.state.props;\n if (this.initialized\n && props.dataset\n && props.dataset.length) {\n const index = props.groupby ? '00': 0;\n this.onSelect(props.dataset[0], index);\n }\n }\n \n clear(){\n this.updateState({\n groupedData: {},\n } as WmListState);\n }\n\n selectItem(item: any){\n const dataset = this.state.props.dataset;\n if(isNumber(item)){\n this.onSelect(dataset[item], item);\n }\n else{\n let index = dataset.indexOf(item);\n this.onSelect(dataset[index], index);\n }\n }\n\n getItem(index: number){\n const props = this.state.props;\n return this.props.dataset[index]\n }\n\n deselect(item: any){\n const props = this.state.props;\n let selectedItem = null as any;\n let index = isNumber(item)?item:props.dataset.indexOf(item);\n if(props.multiselect && index >= 0){\n selectedItem = [...(props.selecteditem || [])];\n let selectedItemIndex = selectedItem.indexOf(props.dataset[index])\n if(selectedItemIndex >= 0){\n selectedItem.splice(selectedItemIndex, 1);\n }\n }\n else{\n if (props.selecteditem === props.dataset[index]) {\n selectedItem = null;\n }\n }\n this.updateState({\n props: { selecteditem: selectedItem },\n \n } as WmListState);\n }\n \n getWidgets(widgetname: string, index: number){\n if(index >= 0 && index < this.itemWidgets.length){\n return this.itemWidgets[index][widgetname]\n }\n else{\n return this.itemWidgets.map(item => item[widgetname]).filter(widget => widget !== undefined);\n }\n }\n\n private deselectAll() {\n this.updateState({\n props: { selecteditem: null },\n selectedindex: -1\n } as WmListState);\n }\n\n setGroupData(items: any) {\n const dataItems = items;\n const props = this.state.props;\n if (props.groupby) {\n const groupedData = dataItems && getGroupedData(dataItems, props.groupby, props.match, props.orderby, props.dateformat, this);\n this.updateState({\n groupedData: groupedData\n } as WmListState, () => {\n this.keyExtractor?.clear();\n });\n }\n }\n\n public onPropertyChange(name: string, $new: any, $old: any) {\n super.onPropertyChange(name, $new, $old);\n const props = this.state.props;\n switch(name) {\n case 'selectfirstitem':\n if ($new) {\n this.selectFirstItem();\n }\n break;\n case 'dataset':\n if (this.state.props.groupby) {\n this.setGroupData($new);\n } else {\n const data = isArray($new) ? $new : (!isEmpty($new) && isDefined($new) ? [$new] : []);\n this.updateState({\n groupedData: (data[0] || props.direction === 'horizontal' ? [{\n key: '',\n data: data\n }] : [])\n } as WmListState, () => {\n this.keyExtractor?.clear();\n });\n }\n this.itemWidgets = [];\n if (props.selectfirstitem) {\n this.selectFirstItem();\n } else {\n this.deselectAll();\n }\n break;\n case 'groupby':\n case 'match':\n this.setGroupData(this.state.props.dataset);\n break;\n case 'multiselect':\n if ($new) {\n if (!isArray(this.state.props.selecteditem)) {\n this.state.props.selecteditem = this.state.props.selecteditem ? \n [this.state.props.selecteditem] : [];\n }\n } else if (isArray(this.state.props.selecteditem)) {\n this.state.props.selecteditem = this.state.props.selecteditem.pop();\n }\n break;\n case 'selecteditem':\n if($new != $old && isNumber($new)) {\n this.selectItem(this.state.props.dataset[$new])\n }\n break;\n }\n }\n\n componentDidMount() {\n const props = this.state.props;\n if (this.state.props.selectfirstitem && props.dataset?.length) {\n setTimeout(() => {\n this.onSelect(props.dataset[0], 0);\n });\n }\n super.componentDidMount();\n }\n\n componentDidUpdate(prevProps: WmListProps, prevState: WmListState, snapshot?: any) {\n super.componentDidUpdate && super.componentDidUpdate(prevProps, prevState, snapshot);\n this.invokeEventCallback('onRender', [this, this.state.props.dataset]);\n }\n\n getDefaultStyles() {\n const isHorizontal = this.state.props.direction === 'horizontal';\n return this.theme.getStyle(`${this.defaultClass} ${isHorizontal ? 'app-horizontal-list' : 'app-vertical-list'}`);\n }\n\n getIndex(item: any) {\n return this.state.props.dataset.indexOf(item);\n }\n\n private generateItemKey(item: any, index: number, props: WmListProps) {\n if (props.itemkey && item && !this._showSkeleton) {\n return props.itemkey(item, index);\n }\n return 'list_item_' + this.keyExtractor.getKey(item, true);\n }\n\n private renderItem(item: any, index: number, props: WmListProps) {\n const cols = this. getNoOfColumns();\n const isHorizontal = (props.direction === 'horizontal');\n return ( \n <View style={[\n this.styles.item,\n props.itemclass ? this.theme.getStyle(props.itemclass(item, index)) : null,\n this.isSelected(item) ? this.styles.selectedItem : {}]}>\n <Tappable\n {...this.getTestPropsForAction(`item${index}`)}\n onTap={() => this.onSelect(item, index, true)}\n onLongTap={() => this.invokeEventCallback('onLongtap', [null, this.proxy])}\n onDoubleTap={() => this.invokeEventCallback('onDoubletap', [null, this.proxy])}\n styles={\n [\n cols ? {\n width: round(100 / cols, 2) + '%'\n } : null,\n cols || isHorizontal ? {\n paddingRight: (isNil(this.styles.item.marginRight)\n ? this.styles.item.margin : this.styles.item.marginRight) || 4\n } : null\n ]\n }>\n {props.renderItem(item, index, this)}\n {this.isSelected(item) ? (\n <WmIcon id={this.getTestId('icon' + index)} iconclass='wi wi-check-circle' styles={this.styles.selectedIcon} />\n ) : null}\n </Tappable>\n </View>\n );\n }\n\n private renderHeader(props: WmListProps, title: string) {\n return props.groupby ? (\n <Text style={this.styles.groupHeading}>{title}</Text>\n ) : (props.iconclass || props.title || props.subheading) ? (\n <View style={this.styles.heading}>\n <View style={{flex: 1, flexDirection: 'row'}}>\n <WmIcon id={this.getTestId('icon')} styles={this.styles.listIcon} iconclass={props.iconclass}></WmIcon>\n <View>\n <WmLabel id={this.getTestId('title')} styles={this.styles.title} caption={props.title}></WmLabel>\n <WmLabel id={this.getTestId('subheading')} styles={this.styles.subheading} caption={props.subheading}></WmLabel>\n </View>\n </View>\n </View>) : null;\n }\n\n private renderEmptyMessage(isHorizontal: boolean, item: any, index: any, props: WmListProps) {\n return (<WmLabel id={this.getTestId('emptymsg')} styles={this.styles.emptyMessage} caption={props.nodatamessage}></WmLabel>);\n }\n\n private renderLoadingIcon(props: WmListProps) {\n return (<WmIcon\n id={this.getTestId('loadingicon')}\n styles={this.styles.loadingIcon}\n iconclass={props.loadingicon}\n caption={props.loadingdatamsg}></WmIcon>)\n }\n\n public getNoOfColumns() {\n const props = this.state.props;\n if(props.direction === 'vertical') {\n return props.itemsperrow.xs;\n }\n return 0;\n }\n\n private renderWithFlatList(props: WmListProps, isHorizontal = false) {\n return (\n <View style={this.styles.root}>\n {!isEmpty(this.state.groupedData) ? this.state.groupedData.map((v: any, i) => ((\n <View style={{marginBottom: 16}} key={v.key || this.keyExtractor.getKey(v, true)}>\n {this.renderHeader(props, v.key)}\n <FlatList\n key={props.name + '_' + (isHorizontal ? 'H' : 'V') + props.itemsperrow.xs}\n keyExtractor={(item, i) => this.generateItemKey(item, i, props)}\n horizontal = {isHorizontal}\n data={isEmpty(v.data[0]) ? []: v.data}\n ListEmptyComponent = {(itemInfo) => this.renderEmptyMessage(isHorizontal, itemInfo.item, itemInfo.index, props)}\n renderItem={(itemInfo) => this.renderItem(itemInfo.item, itemInfo.index, props)} \n {...(isHorizontal ? {} : {numColumns : this.getNoOfColumns()})}> \n </FlatList>\n </View>\n ))) : this.renderEmptyMessage(isHorizontal, null, null,props)\n }\n </View>);\n }\n\n private getSectionListData() {\n if (this._showSkeleton) {\n return [{\n key: '',\n data: [{}, {}, {}]\n }];\n } else if (this.state.groupedData \n && this.state.groupedData[0] \n && this.state.groupedData[0]['data'].length) {\n return this.state.groupedData;\n }\n return [];\n }\n\n private renderWithSectionList(props: WmListProps, isHorizontal = false) { \n return (\n <SectionList\n keyExtractor={(item, i) => this.generateItemKey(item, i, props)}\n horizontal = {isHorizontal}\n onEndReached={({distanceFromEnd}) => {\n this.setState({ currentPage: this.state.currentPage + 1 } as WmListState);\n this.invokeEventCallback('onEndReached', [null, this]);\n }}\n contentContainerStyle={this.styles.root}\n onEndReachedThreshold={0.3}\n sections={this.getSectionListData()}\n renderSectionHeader={({ section: {key, data}}) => {\n return this.renderHeader(props, key);\n }}\n renderSectionFooter={() => props.loadingdata ? this.renderLoadingIcon(props) : null}\n ListEmptyComponent = {(itemInfo) => this.renderEmptyMessage(isHorizontal, itemInfo.item, itemInfo.index, props)}\n renderItem={(itemInfo) => this.renderItem(itemInfo.item, itemInfo.index, props)}>\n </SectionList>\n );\n }\n\n renderWidget(props: WmListProps) {\n this.invokeEventCallback('onBeforedatarender', [this, this.state.props.dataset]);\n const isHorizontal = (props.direction === 'horizontal');\n return (\n <View style={isHorizontal ? null : { width: '100%' }}>\n {this._background}\n {(isHorizontal || !props.groupby) ?\n this.renderWithFlatList(props, isHorizontal)\n : this.renderWithSectionList(props, isHorizontal)}\n </View>);\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,EAAEC,IAAI,EAAEC,IAAI,EAAEC,QAAQ,QAAQ,cAAc;AAChE,SAASC,OAAO,EAAEC,OAAO,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,KAAK,QAAQ,WAAW;AACpE,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAAQC,cAAc,EAAEC,SAAS,QAAO,sCAAsC;AAC9E,SAASC,QAAQ,QAAQ,mDAAmD;AAC5E,SAASC,mBAAmB,QAAQ,8CAA8C;AAClF,OAAOC,OAAO,MAAM,kEAAkE;AACtF,OAAOC,MAAM,MAAM,gEAAgE;AAGnF,OAAOC,WAAW,MAAM,cAAc;AACtC,SAASC,aAAa,QAAsB,eAAe;AAG3D,OAAO,MAAMC,WAAW,SAAST,kBAAkB,CAAc;EAAAU,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA,sBAErC,EAAE;IAAAA,eAAA,sBACN,CA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,CAAC;IAChF,MAAMyC,YAAY,GAAInE,KAAK,CAACsD,SAAS,KAAK,YAAa;IACvD,oBACI/E,KAAA,CAAAwG,aAAA,CAACrG,IAAI;MAACsG,KAAK,EAAEb,YAAY,GAAG,IAAI,GAAG;QAAEqB,KAAK,EAAE;MAAO;IAAE,GAClD,IAAI,CAACmD,WAAW,EACfxE,YAAY,IAAI,CAACnE,KAAK,CAAC2B,OAAO,GAC9B,IAAI,CAACuF,kBAAkB,CAAClH,KAAK,EAAEmE,YAAY,CAAC,GAC5C,IAAI,CAACyD,qBAAqB,CAAC5H,KAAK,EAAEmE,YAAY,CAC9C,CAAC;EACX;AACF"}
1
+ {"version":3,"names":["React","SectionList","Text","View","FlatList","isArray","isEmpty","isNil","round","BaseComponent","BaseComponentState","getGroupedData","isDefined","Tappable","DefaultKeyExtractor","WmLabel","WmIcon","WmListProps","DEFAULT_CLASS","WmListState","constructor","arguments","_defineProperty","WmList","props","isSelected","$item","selectedItem","state","selecteditem","indexOf","onSelect","$index","triggerTapEvent","length","undefined","disableitem","multiselect","index","selectionlimit","push","invokeEventCallback","splice","selectedItemWidgets","itemWidgets","updateState","selectedindex","proxy","selectFirstItem","initialized","dataset","groupby","deselectAll","setGroupData","items","dataItems","groupedData","match","orderby","dateformat","_this$keyExtractor","keyExtractor","clear","onPropertyChange","name","$new","$old","data","direction","key","_this$keyExtractor2","selectfirstitem","pop","componentDidMount","_props$dataset","setTimeout","componentDidUpdate","prevProps","prevState","snapshot","getDefaultStyles","isHorizontal","theme","getStyle","defaultClass","getIndex","item","generateItemKey","itemkey","_showSkeleton","getKey","renderItem","cols","getNoOfColumns","createElement","_extends","getTestPropsForAction","onTap","onLongTap","onDoubleTap","styles","width","paddingRight","marginRight","margin","style","itemclass","id","getTestId","iconclass","selectedIcon","renderHeader","title","groupHeading","subheading","heading","flex","flexDirection","listIcon","caption","renderEmptyMessage","emptyMessage","nodatamessage","renderLoadingIcon","loadingIcon","loadingicon","loadingdatamsg","itemsperrow","xs","renderWithFlatList","root","map","v","i","marginBottom","horizontal","ListEmptyComponent","itemInfo","numColumns","getSectionListData","renderWithSectionList","onEndReached","_ref","distanceFromEnd","setState","currentPage","contentContainerStyle","onEndReachedThreshold","sections","renderSectionHeader","_ref2","section","renderSectionFooter","loadingdata","renderWidget","_background"],"sources":["list.component.tsx"],"sourcesContent":["import React from 'react';\nimport { SectionList, Text, View, TouchableWithoutFeedback, FlatList } from 'react-native';\nimport { isArray, isEmpty, isNil, round } from 'lodash-es';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport {getGroupedData, isDefined} from \"@wavemaker/app-rn-runtime/core/utils\";\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport { DefaultKeyExtractor } from '@wavemaker/app-rn-runtime/core/key.extractor';\nimport WmLabel from '@wavemaker/app-rn-runtime/components/basic/label/label.component';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\n\nimport WmListProps from './list.props';\nimport { DEFAULT_CLASS, WmListStyles } from './list.styles';\n\n\nexport class WmListState extends BaseComponentState<WmListProps> {\n public selectedindex: any;\n groupedData: Array<any> = [];\n currentPage: number = 1;\n}\n\nexport default class WmList extends BaseComponent<WmListProps, WmListState, WmListStyles> {\n\n private itemWidgets = [] as any[];\n private selectedItemWidgets = {} as any;\n private keyExtractor = new DefaultKeyExtractor();\n \n constructor(props: WmListProps) {\n super(props, DEFAULT_CLASS, new WmListProps(), new WmListState());\n }\n\n private isSelected($item: any) {\n const selectedItem = this.state.props.selecteditem;\n if (isArray(selectedItem)) {\n return selectedItem.indexOf($item) >= 0;\n }\n return selectedItem === $item;\n }\n\n private onSelect($item: any, $index: number | string, triggerTapEvent = false) {\n const props = this.state.props;\n let selectedItem = null as any;\n if (props.disableitem !== true \n && (typeof props.disableitem !== 'function' || !props.disableitem($item, $index))) {\n if (props.multiselect) {\n selectedItem = [...(props.selecteditem || [])];\n const index = selectedItem.indexOf($item);\n if (index < 0) {\n if ((!props.selectionlimit)\n || props.selectionlimit < 0\n || selectedItem.length < props.selectionlimit) {\n selectedItem.push($item);\n } else {\n this.invokeEventCallback('onSelectionlimitexceed', [null, this]);\n }\n } else {\n selectedItem.splice(index, 1);\n }\n } else {\n if (props.selecteditem === $item) {\n selectedItem = null;\n } else {\n selectedItem = $item;\n }\n }\n this.selectedItemWidgets = this.itemWidgets[$index as number];\n this.updateState({\n props: { selecteditem: selectedItem },\n selectedindex: $index\n } as WmListState, () => {\n this.invokeEventCallback('onSelect', [this.proxy, $item]);\n triggerTapEvent && this.invokeEventCallback('onTap', [null, this.proxy]);\n });\n }\n }\n\n private selectFirstItem() {\n const props = this.state.props;\n if (this.initialized\n && props.dataset\n && props.dataset.length) {\n const index = props.groupby ? '00': 0;\n this.onSelect(props.dataset[0], index);\n }\n }\n\n private deselectAll() {\n this.updateState({\n props: { selecteditem: null },\n selectedindex: -1\n } as WmListState);\n }\n\n setGroupData(items: any) {\n const dataItems = items;\n const props = this.state.props;\n if (props.groupby) {\n const groupedData = dataItems && getGroupedData(dataItems, props.groupby, props.match, props.orderby, props.dateformat, this);\n this.updateState({\n groupedData: groupedData\n } as WmListState, () => {\n this.keyExtractor?.clear();\n });\n }\n }\n\n public onPropertyChange(name: string, $new: any, $old: any) {\n super.onPropertyChange(name, $new, $old);\n const props = this.state.props;\n switch(name) {\n case 'selectfirstitem':\n if ($new) {\n this.selectFirstItem();\n }\n break;\n case 'dataset':\n if (this.state.props.groupby) {\n this.setGroupData($new);\n } else {\n const data = isArray($new) ? $new : (!isEmpty($new) && isDefined($new) ? [$new] : []);\n this.updateState({\n groupedData: (data[0] || props.direction === 'horizontal' ? [{\n key: '',\n data: data\n }] : [])\n } as WmListState, () => {\n this.keyExtractor?.clear();\n });\n }\n this.itemWidgets = [];\n if (props.selectfirstitem) {\n this.selectFirstItem();\n } else {\n this.deselectAll();\n }\n break;\n case 'groupby':\n case 'match':\n this.setGroupData(this.state.props.dataset);\n break;\n case 'multiselect':\n if ($new) {\n if (!isArray(this.state.props.selecteditem)) {\n this.state.props.selecteditem = this.state.props.selecteditem ? \n [this.state.props.selecteditem] : [];\n }\n } else if (isArray(this.state.props.selecteditem)) {\n this.state.props.selecteditem = this.state.props.selecteditem.pop();\n }\n }\n }\n\n componentDidMount() {\n const props = this.state.props;\n if (this.state.props.selectfirstitem && props.dataset?.length) {\n setTimeout(() => {\n this.onSelect(props.dataset[0], 0);\n });\n }\n super.componentDidMount();\n }\n\n componentDidUpdate(prevProps: WmListProps, prevState: WmListState, snapshot?: any) {\n super.componentDidUpdate && super.componentDidUpdate(prevProps, prevState, snapshot);\n this.invokeEventCallback('onRender', [this, this.state.props.dataset]);\n }\n\n getDefaultStyles() {\n const isHorizontal = this.state.props.direction === 'horizontal';\n return this.theme.getStyle(`${this.defaultClass} ${isHorizontal ? 'app-horizontal-list' : 'app-vertical-list'}`);\n }\n\n getIndex(item: any) {\n return this.state.props.dataset.indexOf(item);\n }\n\n private generateItemKey(item: any, index: number, props: WmListProps) {\n if (props.itemkey && item && !this._showSkeleton) {\n return props.itemkey(item, index);\n }\n return 'list_item_' + this.keyExtractor.getKey(item, true);\n }\n\n private renderItem(item: any, index: number, props: WmListProps) {\n const cols = this. getNoOfColumns();\n const isHorizontal = (props.direction === 'horizontal');\n return ( \n <Tappable\n {...this.getTestPropsForAction(`item${index}`)}\n onTap={() => this.onSelect(item, index, true)}\n onLongTap={() => this.invokeEventCallback('onLongtap', [null, this.proxy])}\n onDoubleTap={() => this.invokeEventCallback('onDoubletap', [null, this.proxy])}\n styles={\n [\n cols ? {\n width: round(100/cols, 2) + '%'\n } : null,\n cols || isHorizontal? {\n paddingRight: (isNil(this.styles.item.marginRight) \n ? this.styles.item.margin : this.styles.item.marginRight) || 4\n }: null\n ]\n }>\n <View style={[\n this.styles.item,\n props.itemclass ? this.theme.getStyle(props.itemclass(item, index)) : null,\n this.isSelected(item) ? this.styles.selectedItem : {}]}>\n { props.renderItem(item, index, this)}\n { this.isSelected(item) ? (\n <WmIcon id={this.getTestId('icon' + index)}iconclass='wi wi-check-circle' styles={this.styles.selectedIcon} />\n ) : null}\n </View>\n </Tappable>\n );\n }\n\n private renderHeader(props: WmListProps, title: string) {\n return props.groupby ? (\n <Text style={this.styles.groupHeading}>{title}</Text>\n ) : (props.iconclass || props.title || props.subheading) ? (\n <View style={this.styles.heading}>\n <View style={{flex: 1, flexDirection: 'row'}}>\n <WmIcon id={this.getTestId('icon')} styles={this.styles.listIcon} iconclass={props.iconclass}></WmIcon>\n <View>\n <WmLabel id={this.getTestId('title')} styles={this.styles.title} caption={props.title}></WmLabel>\n <WmLabel id={this.getTestId('subheading')} styles={this.styles.subheading} caption={props.subheading}></WmLabel>\n </View>\n </View>\n </View>) : null;\n }\n\n private renderEmptyMessage(isHorizontal: boolean, item: any, index: any, props: WmListProps) {\n return (<WmLabel id={this.getTestId('emptymsg')} styles={this.styles.emptyMessage} caption={props.nodatamessage}></WmLabel>);\n }\n\n private renderLoadingIcon(props: WmListProps) {\n return (<WmIcon\n id={this.getTestId('loadingicon')}\n styles={this.styles.loadingIcon}\n iconclass={props.loadingicon}\n caption={props.loadingdatamsg}></WmIcon>)\n }\n\n public getNoOfColumns() {\n const props = this.state.props;\n if(props.direction === 'vertical') {\n return props.itemsperrow.xs;\n }\n return 0;\n }\n\n private renderWithFlatList(props: WmListProps, isHorizontal = false) {\n return (\n <View style={this.styles.root}>\n {!isEmpty(this.state.groupedData) ? this.state.groupedData.map((v: any, i) => ((\n <View style={{marginBottom: 16}} key={v.key || this.keyExtractor.getKey(v, true)}>\n {this.renderHeader(props, v.key)}\n <FlatList\n key={props.name + '_' + (isHorizontal ? 'H' : 'V') + props.itemsperrow.xs}\n keyExtractor={(item, i) => this.generateItemKey(item, i, props)}\n horizontal = {isHorizontal}\n data={v.data || []}\n ListEmptyComponent = {(itemInfo) => this.renderEmptyMessage(isHorizontal, itemInfo.item, itemInfo.index, props)}\n renderItem={(itemInfo) => this.renderItem(itemInfo.item, itemInfo.index, props)} \n {...(isHorizontal ? {} : {numColumns : this.getNoOfColumns()})}> \n </FlatList>\n </View>\n ))) : this.renderEmptyMessage(isHorizontal, null, null,props)\n }\n </View>);\n }\n\n private getSectionListData() {\n if (this._showSkeleton) {\n return [{\n key: '',\n data: [{}, {}, {}]\n }];\n } else if (this.state.groupedData \n && this.state.groupedData[0] \n && this.state.groupedData[0]['data'].length) {\n return this.state.groupedData;\n }\n return [];\n }\n\n private renderWithSectionList(props: WmListProps, isHorizontal = false) { \n return (\n <SectionList\n keyExtractor={(item, i) => this.generateItemKey(item, i, props)}\n horizontal = {isHorizontal}\n onEndReached={({distanceFromEnd}) => {\n this.setState({ currentPage: this.state.currentPage + 1 } as WmListState);\n this.invokeEventCallback('onEndReached', [null, this]);\n }}\n contentContainerStyle={this.styles.root}\n onEndReachedThreshold={0.3}\n sections={this.getSectionListData()}\n renderSectionHeader={({ section: {key, data}}) => {\n return this.renderHeader(props, key);\n }}\n renderSectionFooter={() => props.loadingdata ? this.renderLoadingIcon(props) : null}\n ListEmptyComponent = {(itemInfo) => this.renderEmptyMessage(isHorizontal, itemInfo.item, itemInfo.index, props)}\n renderItem={(itemInfo) => this.renderItem(itemInfo.item, itemInfo.index, props)}>\n </SectionList>\n );\n }\n\n renderWidget(props: WmListProps) {\n this.invokeEventCallback('onBeforedatarender', [this, this.state.props.dataset]);\n const isHorizontal = (props.direction === 'horizontal');\n return (\n <View style={isHorizontal ? null : { width: '100%' }}>\n {this._background}\n {(isHorizontal || !props.groupby) ?\n this.renderWithFlatList(props, isHorizontal)\n : this.renderWithSectionList(props, isHorizontal)}\n </View>);\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,EAAEC,IAAI,EAAEC,IAAI,EAA4BC,QAAQ,QAAQ,cAAc;AAC1F,SAASC,OAAO,EAAEC,OAAO,EAAEC,KAAK,EAAEC,KAAK,QAAQ,WAAW;AAC1D,SAASC,aAAa,EAAEC,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,CAAC,GAAAmF,KAAA;QAC3C,OAAO,IAAI,CAACvC,YAAY,CAACvF,KAAK,EAAE6C,GAAG,CAAC;MACtC,CAAE;MACFmF,mBAAmB,EAAEA,CAAA,KAAMhI,KAAK,CAACiI,WAAW,GAAG,IAAI,CAAC9B,iBAAiB,CAACnG,KAAK,CAAC,GAAG,IAAK;MACpFgH,kBAAkB,EAAKC,QAAQ,IAAK,IAAI,CAACjB,kBAAkB,CAACvC,YAAY,EAAEwD,QAAQ,CAACnD,IAAI,EAAEmD,QAAQ,CAACnG,KAAK,EAAEd,KAAK,CAAE;MAChHmE,UAAU,EAAG8C,QAAQ,IAAK,IAAI,CAAC9C,UAAU,CAAC8C,QAAQ,CAACnD,IAAI,EAAEmD,QAAQ,CAACnG,KAAK,EAAEd,KAAK;IAAE,CACrE,CAAC;EAElB;EAEAkI,YAAYA,CAAClI,KAAkB,EAAE;IAC/B,IAAI,CAACiB,mBAAmB,CAAC,oBAAoB,EAAE,CAAC,IAAI,EAAE,IAAI,CAACb,KAAK,CAACJ,KAAK,CAAC0B,OAAO,CAAC,CAAC;IAChF,MAAM+B,YAAY,GAAIzD,KAAK,CAAC4C,SAAS,KAAK,YAAa;IACvD,oBACIpE,KAAA,CAAA8F,aAAA,CAAC3F,IAAI;MAACsG,KAAK,EAAExB,YAAY,GAAG,IAAI,GAAG;QAAEoB,KAAK,EAAE;MAAO;IAAE,GAClD,IAAI,CAACsD,WAAW,EACf1E,YAAY,IAAI,CAACzD,KAAK,CAAC2B,OAAO,GAC9B,IAAI,CAAC8E,kBAAkB,CAACzG,KAAK,EAAEyD,YAAY,CAAC,GAC5C,IAAI,CAAC2D,qBAAqB,CAACpH,KAAK,EAAEyD,YAAY,CAC9C,CAAC;EACX;AACF"}
@@ -39,10 +39,7 @@ export default class WmBarcodescanner extends BaseComponent {
39
39
  styles: this.styles.button,
40
40
  onTap: this.onScanTap.bind(this),
41
41
  caption: props.caption,
42
- iconsize: props.iconsize,
43
- accessibilitylabel: props.accessibilitylabel,
44
- hint: props.hint,
45
- accessibilityrole: props.accessibilityrole
42
+ iconsize: props.iconsize
46
43
  }));
47
44
  });
48
45
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","BaseComponent","BaseComponentState","ScanConsumer","WmBarcodescannerProps","DEFAULT_CLASS","WmButton","WmBarcodescannerState","WmBarcodescanner","constructor","props","_defineProperty","onScanTap","params","barcodeFormat","state","barcodeformat","scanner","scanBarcode","then","res","updateState","datavalue","text","invokeEventCallback","proxy","renderWidget","createElement","scanService","style","styles","root","_background","id","getTestId","iconclass","button","onTap","bind","caption","iconsize","accessibilitylabel","hint","accessibilityrole"],"sources":["barcodescanner.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { ScanInput, ScanOutput } from '@wavemaker/app-rn-runtime/variables/device/scan/scan.operation';\nimport { ScanConsumer, ScanService } from '@wavemaker/app-rn-runtime/core/device/scan-service';\n\nimport WmBarcodescannerProps from './barcodescanner.props';\nimport { DEFAULT_CLASS, WmBarcodescannerStyles } from './barcodescanner.styles';\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\n\nexport class WmBarcodescannerState extends BaseComponentState<WmBarcodescannerProps> {}\n\nexport default class WmBarcodescanner extends BaseComponent<WmBarcodescannerProps, WmBarcodescannerState, WmBarcodescannerStyles> {\n private scanner: ScanService = null as any;\n constructor(props: WmBarcodescannerProps) {\n super(props, DEFAULT_CLASS, new WmBarcodescannerProps());\n }\n\n onScanTap() {\n const params: ScanInput = {\n barcodeFormat: this.state.props.barcodeformat\n };\n this.scanner.scanBarcode(params).then((res: ScanOutput) => {\n this.updateState({\n props: {\n datavalue: res.text\n }\n } as WmBarcodescannerState, () => {\n this.invokeEventCallback('onSuccess', [null, this.proxy]);\n });\n })\n }\n\n renderWidget(props: WmBarcodescannerProps) {\n return (\n <ScanConsumer>\n {(scanService: ScanService) => {\n this.scanner = scanService;\n return <View style={this.styles.root}>\n {this._background}\n <WmButton id={this.getTestId('button')} iconclass={props.iconclass} styles={this.styles.button} onTap={this.onScanTap.bind(this)} caption={props.caption} iconsize={props.iconsize} accessibilitylabel={props.accessibilitylabel} hint={props.hint} accessibilityrole={props.accessibilityrole}></WmButton>\n </View>\n }}\n </ScanConsumer>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,SAASC,YAAY,QAAqB,oDAAoD;AAE9F,OAAOC,qBAAqB,MAAM,wBAAwB;AAC1D,SAASC,aAAa,QAAgC,yBAAyB;AAC/E,OAAOC,QAAQ,MAAM,oEAAoE;AAEzF,OAAO,MAAMC,qBAAqB,SAASL,kBAAkB,CAAwB;AAErF,eAAe,MAAMM,gBAAgB,SAASP,aAAa,CAAuE;EAEhIQ,WAAWA,CAACC,KAA4B,EAAE;IACxC,KAAK,CAACA,KAAK,EAAEL,aAAa,EAAE,IAAID,qBAAqB,CAAC,CAAC,CAAC;IAACO,eAAA,kBAF5B,IAAI;EAGnC;EAEAC,SAASA,CAAA,EAAG;IACV,MAAMC,MAAiB,GAAG;MACxBC,aAAa,EAAE,IAAI,CAACC,KAAK,CAACL,KAAK,CAACM;IAClC,CAAC;IACD,IAAI,CAACC,OAAO,CAACC,WAAW,CAACL,MAAM,CAAC,CAACM,IAAI,CAAEC,GAAe,IAAK;MACzD,IAAI,CAACC,WAAW,CAAC;QACfX,KAAK,EAAE;UACLY,SAAS,EAAEF,GAAG,CAACG;QACjB;MACF,CAAC,EAA2B,MAAM;QAChC,IAAI,CAACC,mBAAmB,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,CAACC,KAAK,CAAC,CAAC;MAC3D,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ;EAEAC,YAAYA,CAAChB,KAA4B,EAAE;IACzC,oBACEX,KAAA,CAAA4B,aAAA,CAACxB,YAAY,QACTyB,WAAwB,IAAK;MAC7B,IAAI,CAACX,OAAO,GAAGW,WAAW;MAC1B,oBAAO7B,KAAA,CAAA4B,aAAA,CAAC3B,IAAI;QAAC6B,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC;MAAK,GAClC,IAAI,CAACC,WAAW,eACjBjC,KAAA,CAAA4B,aAAA,CAACrB,QAAQ;QAAC2B,EAAE,EAAE,IAAI,CAACC,SAAS,CAAC,QAAQ,CAAE;QAACC,SAAS,EAAEzB,KAAK,CAACyB,SAAU;QAACL,MAAM,EAAE,IAAI,CAACA,MAAM,CAACM,MAAO;QAACC,KAAK,EAAE,IAAI,CAACzB,SAAS,CAAC0B,IAAI,CAAC,IAAI,CAAE;QAACC,OAAO,EAAE7B,KAAK,CAAC6B,OAAQ;QAACC,QAAQ,EAAE9B,KAAK,CAAC8B,QAAS;QAACC,kBAAkB,EAAE/B,KAAK,CAAC+B,kBAAmB;QAACC,IAAI,EAAEhC,KAAK,CAACgC,IAAK;QAACC,iBAAiB,EAAEjC,KAAK,CAACiC;MAAkB,CAAW,CACtS,CAAC;IACT,CACY,CAAC;EAEnB;AACF"}
1
+ {"version":3,"names":["React","View","BaseComponent","BaseComponentState","ScanConsumer","WmBarcodescannerProps","DEFAULT_CLASS","WmButton","WmBarcodescannerState","WmBarcodescanner","constructor","props","_defineProperty","onScanTap","params","barcodeFormat","state","barcodeformat","scanner","scanBarcode","then","res","updateState","datavalue","text","invokeEventCallback","proxy","renderWidget","createElement","scanService","style","styles","root","_background","id","getTestId","iconclass","button","onTap","bind","caption","iconsize"],"sources":["barcodescanner.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { ScanInput, ScanOutput } from '@wavemaker/app-rn-runtime/variables/device/scan/scan.operation';\nimport { ScanConsumer, ScanService } from '@wavemaker/app-rn-runtime/core/device/scan-service';\n\nimport WmBarcodescannerProps from './barcodescanner.props';\nimport { DEFAULT_CLASS, WmBarcodescannerStyles } from './barcodescanner.styles';\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\n\nexport class WmBarcodescannerState extends BaseComponentState<WmBarcodescannerProps> {}\n\nexport default class WmBarcodescanner extends BaseComponent<WmBarcodescannerProps, WmBarcodescannerState, WmBarcodescannerStyles> {\n private scanner: ScanService = null as any;\n constructor(props: WmBarcodescannerProps) {\n super(props, DEFAULT_CLASS, new WmBarcodescannerProps());\n }\n\n onScanTap() {\n const params: ScanInput = {\n barcodeFormat: this.state.props.barcodeformat\n };\n this.scanner.scanBarcode(params).then((res: ScanOutput) => {\n this.updateState({\n props: {\n datavalue: res.text\n }\n } as WmBarcodescannerState, () => {\n this.invokeEventCallback('onSuccess', [null, this.proxy]);\n });\n })\n }\n\n renderWidget(props: WmBarcodescannerProps) {\n return (\n <ScanConsumer>\n {(scanService: ScanService) => {\n this.scanner = scanService;\n return <View style={this.styles.root}>\n {this._background}\n <WmButton id={this.getTestId('button')} iconclass={props.iconclass} styles={this.styles.button} onTap={this.onScanTap.bind(this)} caption={props.caption} iconsize={props.iconsize}></WmButton>\n </View>\n }}\n </ScanConsumer>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,SAASC,YAAY,QAAqB,oDAAoD;AAE9F,OAAOC,qBAAqB,MAAM,wBAAwB;AAC1D,SAASC,aAAa,QAAgC,yBAAyB;AAC/E,OAAOC,QAAQ,MAAM,oEAAoE;AAEzF,OAAO,MAAMC,qBAAqB,SAASL,kBAAkB,CAAwB;AAErF,eAAe,MAAMM,gBAAgB,SAASP,aAAa,CAAuE;EAEhIQ,WAAWA,CAACC,KAA4B,EAAE;IACxC,KAAK,CAACA,KAAK,EAAEL,aAAa,EAAE,IAAID,qBAAqB,CAAC,CAAC,CAAC;IAACO,eAAA,kBAF5B,IAAI;EAGnC;EAEAC,SAASA,CAAA,EAAG;IACV,MAAMC,MAAiB,GAAG;MACxBC,aAAa,EAAE,IAAI,CAACC,KAAK,CAACL,KAAK,CAACM;IAClC,CAAC;IACD,IAAI,CAACC,OAAO,CAACC,WAAW,CAACL,MAAM,CAAC,CAACM,IAAI,CAAEC,GAAe,IAAK;MACzD,IAAI,CAACC,WAAW,CAAC;QACfX,KAAK,EAAE;UACLY,SAAS,EAAEF,GAAG,CAACG;QACjB;MACF,CAAC,EAA2B,MAAM;QAChC,IAAI,CAACC,mBAAmB,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,CAACC,KAAK,CAAC,CAAC;MAC3D,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ;EAEAC,YAAYA,CAAChB,KAA4B,EAAE;IACzC,oBACEX,KAAA,CAAA4B,aAAA,CAACxB,YAAY,QACTyB,WAAwB,IAAK;MAC7B,IAAI,CAACX,OAAO,GAAGW,WAAW;MAC1B,oBAAO7B,KAAA,CAAA4B,aAAA,CAAC3B,IAAI;QAAC6B,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC;MAAK,GAClC,IAAI,CAACC,WAAW,eACjBjC,KAAA,CAAA4B,aAAA,CAACrB,QAAQ;QAAC2B,EAAE,EAAE,IAAI,CAACC,SAAS,CAAC,QAAQ,CAAE;QAACC,SAAS,EAAEzB,KAAK,CAACyB,SAAU;QAACL,MAAM,EAAE,IAAI,CAACA,MAAM,CAACM,MAAO;QAACC,KAAK,EAAE,IAAI,CAACzB,SAAS,CAAC0B,IAAI,CAAC,IAAI,CAAE;QAACC,OAAO,EAAE7B,KAAK,CAAC6B,OAAQ;QAACC,QAAQ,EAAE9B,KAAK,CAAC8B;MAAS,CAAW,CAC1L,CAAC;IACT,CACY,CAAC;EAEnB;AACF"}
@@ -10,9 +10,6 @@ export default class WmBarcodescannerProps extends BaseProps {
10
10
  _defineProperty(this, "datavalue", void 0);
11
11
  _defineProperty(this, "iconclass", 'fa fa-barcode');
12
12
  _defineProperty(this, "iconsize", 16);
13
- _defineProperty(this, "accessibilitylabel", undefined);
14
- _defineProperty(this, "hint", undefined);
15
- _defineProperty(this, "accessibilityrole", "imagebutton");
16
13
  }
17
14
  }
18
15
  //# sourceMappingURL=barcodescanner.props.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmBarcodescannerProps","constructor","arguments","_defineProperty","undefined"],"sources":["barcodescanner.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { AccessibilityRole } from 'react-native';\n\nexport default class WmBarcodescannerProps extends BaseProps {\n barcodeformat: string = 'ALL';\n caption: string = null as any;\n datavalue: any;\n iconclass: string = 'fa fa-barcode';\n iconsize: number = 16;\n accessibilitylabel?: string = undefined;\n hint?: string = undefined;\n accessibilityrole?: AccessibilityRole = \"imagebutton\";\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAGzE,eAAe,MAAMC,qBAAqB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,wBACnC,KAAK;IAAAA,eAAA,kBACX,IAAI;IAAAA,eAAA;IAAAA,eAAA,oBAEF,eAAe;IAAAA,eAAA,mBAChB,EAAE;IAAAA,eAAA,6BACSC,SAAS;IAAAD,eAAA,eACvBC,SAAS;IAAAD,eAAA,4BACe,aAAa;EAAA;AACvD"}
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"}
@@ -7,28 +7,21 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
7
7
  text: {},
8
8
  button: {
9
9
  root: {
10
- minHeight: 30,
11
- minWidth: 40,
12
- paddingRight: 0,
13
- paddingTop: 10,
14
- paddingLeft: 8,
15
- paddingBottom: 8,
16
10
  borderWidth: 1,
17
- borderColor: themeVariables.defaultColor2,
11
+ borderColor: themeVariables.barcodeScannerBorderColor,
18
12
  borderStyle: 'solid',
19
- backgroundColor: themeVariables.primaryColor,
20
- borderRadius: 20
13
+ backgroundColor: themeVariables.barcodeScannerBgColor,
14
+ borderRadius: 4
21
15
  },
22
16
  text: {
23
- color: themeVariables.barcodeScannerTextColor,
24
- paddingRight: 0
17
+ color: themeVariables.barcodeScannerTextColor
25
18
  },
26
19
  icon: {
27
20
  text: {
28
- color: themeVariables.defaultColorF
21
+ color: themeVariables.barcodeScannerTextColor
29
22
  },
30
23
  icon: {
31
- fontSize: 21
24
+ fontSize: 24
32
25
  }
33
26
  }
34
27
  }
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","button","minHeight","minWidth","paddingRight","paddingTop","paddingLeft","paddingBottom","borderWidth","borderColor","defaultColor2","borderStyle","backgroundColor","primaryColor","borderRadius","color","barcodeScannerTextColor","icon","defaultColorF","fontSize"],"sources":["barcodescanner.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmButtonStyles } from '@wavemaker/app-rn-runtime/components/basic/button/button.styles';\n\nexport type WmBarcodescannerStyles = BaseStyles & {\n button: WmButtonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-barcodescanner';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmBarcodescannerStyles = defineStyles({\n root: {},\n text: {},\n button: {\n root: {\n minHeight: 30,\n minWidth: 40,\n paddingRight: 0,\n paddingTop: 10,\n paddingLeft: 8,\n paddingBottom: 8,\n borderWidth: 1,\n borderColor: themeVariables.defaultColor2,\n borderStyle: 'solid',\n backgroundColor: themeVariables.primaryColor,\n borderRadius: 20,\n },\n text: {\n color: themeVariables.barcodeScannerTextColor,\n paddingRight: 0\n },\n icon: {\n text: {\n color: themeVariables.defaultColorF\n },\n icon: {\n fontSize: 21\n }\n }\n } as WmButtonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAOxF,OAAO,MAAMC,aAAa,GAAG,oBAAoB;AACjDF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAAqC,GAAGL,YAAY,CAAC;IACvDM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE,CAAC,CAAC;IACRC,MAAM,EAAE;MACNF,IAAI,EAAE;QACJG,SAAS,EAAE,EAAE;QACbC,QAAQ,EAAE,EAAE;QACZC,YAAY,EAAE,CAAC;QACfC,UAAU,EAAE,EAAE;QACdC,WAAW,EAAE,CAAC;QACdC,aAAa,EAAE,CAAC;QAChBC,WAAW,EAAE,CAAC;QACdC,WAAW,EAAEb,cAAc,CAACc,aAAa;QACzCC,WAAW,EAAE,OAAO;QACpBC,eAAe,EAAEhB,cAAc,CAACiB,YAAY;QAC5CC,YAAY,EAAE;MAChB,CAAC;MACDd,IAAI,EAAE;QACJe,KAAK,EAAEnB,cAAc,CAACoB,uBAAuB;QAC7CZ,YAAY,EAAE;MAChB,CAAC;MACDa,IAAI,EAAE;QACJjB,IAAI,EAAE;UACJe,KAAK,EAAEnB,cAAc,CAACsB;QACxB,CAAC;QACDD,IAAI,EAAE;UACJE,QAAQ,EAAE;QACZ;MACF;IACF;EACJ,CAAC,CAAC;EAEFtB,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC5C,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","button","borderWidth","borderColor","barcodeScannerBorderColor","borderStyle","backgroundColor","barcodeScannerBgColor","borderRadius","color","barcodeScannerTextColor","icon","fontSize"],"sources":["barcodescanner.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmButtonStyles } from '@wavemaker/app-rn-runtime/components/basic/button/button.styles';\n\nexport type WmBarcodescannerStyles = BaseStyles & {\n button: WmButtonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-barcodescanner';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmBarcodescannerStyles = defineStyles({\n root: {},\n text: {},\n button: {\n root: {\n borderWidth: 1,\n borderColor: themeVariables.barcodeScannerBorderColor,\n borderStyle: 'solid',\n backgroundColor: themeVariables.barcodeScannerBgColor,\n borderRadius: 4\n },\n text: {\n color: themeVariables.barcodeScannerTextColor\n },\n icon: {\n text: {\n color: themeVariables.barcodeScannerTextColor\n },\n icon: {\n fontSize: 24\n }\n }\n } as WmButtonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAOxF,OAAO,MAAMC,aAAa,GAAG,oBAAoB;AACjDF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAAqC,GAAGL,YAAY,CAAC;IACvDM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE,CAAC,CAAC;IACRC,MAAM,EAAE;MACNF,IAAI,EAAE;QACJG,WAAW,EAAE,CAAC;QACdC,WAAW,EAAEP,cAAc,CAACQ,yBAAyB;QACrDC,WAAW,EAAE,OAAO;QACpBC,eAAe,EAAEV,cAAc,CAACW,qBAAqB;QACrDC,YAAY,EAAE;MAChB,CAAC;MACDR,IAAI,EAAE;QACJS,KAAK,EAAEb,cAAc,CAACc;MACxB,CAAC;MACDC,IAAI,EAAE;QACJX,IAAI,EAAE;UACJS,KAAK,EAAEb,cAAc,CAACc;QACxB,CAAC;QACDC,IAAI,EAAE;UACJC,QAAQ,EAAE;QACZ;MACF;IACF;EACJ,CAAC,CAAC;EAEFf,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC5C,CAAC,CAAC"}
@@ -57,10 +57,7 @@ export default class WmCamera extends BaseComponent {
57
57
  iconclass: props.iconclass,
58
58
  styles: this.styles.button,
59
59
  iconsize: props.iconsize,
60
- onTap: this.onCameraTap.bind(this),
61
- accessibilitylabel: props.accessibilitylabel,
62
- hint: props.hint,
63
- accessibilityrole: props.accessibilityrole
60
+ onTap: this.onCameraTap.bind(this)
64
61
  }));
65
62
  });
66
63
  }
@@ -1 +1 @@
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","id","getTestId","iconclass","button","iconsize","onTap","accessibilitylabel","hint","accessibilityrole"],"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';\nimport { AccessibilityWidgetType, getAccessibilityProps } from '@wavemaker/app-rn-runtime/core/accessibility'; \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 id={this.getTestId('button')} iconclass={props.iconclass} styles={this.styles.button} iconsize={props.iconsize} onTap={this.onCameraTap.bind(this)} accessibilitylabel={props.accessibilitylabel} hint={props.hint} accessibilityrole={props.accessibilityrole}></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;AAKjH,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,CAACO,SAAS;QAC/BC,YAAY,EAAER,KAAK,CAACS,YAAY;QAChCC,iBAAiB,EAAEV,KAAK,CAACW,iBAAiB;QAC1CC,gBAAgB,EAAEZ,KAAK,CAACa,gBAAgB;QACxCC,iBAAiB,EAAEd,KAAK,CAACe;MAC3B,CAAC;MAED,IAAI,CAACC,MAAM,CAACC,YAAY,CAACZ,MAAM,CAAC,CAACa,IAAI,CAAEC,GA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C,SAAU;QAACJ,MAAM,EAAE,IAAI,CAACA,MAAM,CAACK,MAAO;QAACC,QAAQ,EAAE9C,KAAK,CAAC8C,QAAS;QAACC,KAAK,EAAE,IAAI,CAAC7C,WAAW,CAAC+B,IAAI,CAAC,IAAI,CAAE;QAACe,kBAAkB,EAAEhD,KAAK,CAACgD,kBAAmB;QAACC,IAAI,EAAEjD,KAAK,CAACiD,IAAK;QAACC,iBAAiB,EAAElD,KAAK,CAACkD;MAAkB,CAAW,CAChR,CAAC;IACT,CACc,CAAC;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","id","getTestId","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 id={this.getTestId('button')} 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,C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AI,CAACM,mBAAmB,CAACC,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,CAACC,KAAK,EAAER,KAAK,EAAE,IAAI,CAACE,SAAS,CAAC,CAAC,CAAC;EAClH;EAEAO,YAAYA,CAACnC,KAAoB,EAAE;IACjC,oBACMX,KAAA,CAAA+C,aAAA,CAACxC,cAAc,QACTyC,aAA4B,IAAK;MACnC;QAAC,IAAI,CAACC,WAAW;MAAA;MACjB,IAAI,CAACtB,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,EAAE,EAAE,IAAI,CAACC,SAAS,CAAC,QAAQ,CAAE;QAACC,SAAS,EAAE5C,KAAK,CAAC4C,SAAU;QAACJ,MAAM,EAAE,IAAI,CAACA,MAAM,CAACK,MAAO;QAACC,QAAQ,EAAE9C,KAAK,CAAC8C,QAAS;QAACC,KAAK,EAAE,IAAI,CAAC7C,WAAW,CAAC+B,IAAI,CAAC,IAAI;MAAE,CAAW,CACpK,CAAC;IACT,CACc,CAAC;EAEzB;AACF"}
@@ -15,9 +15,6 @@ export default class WmCameraProps extends BaseProps {
15
15
  _defineProperty(this, "imagetargetheight", null);
16
16
  _defineProperty(this, "datavalue", void 0);
17
17
  _defineProperty(this, "localFilePath", '');
18
- _defineProperty(this, "accessibilitylabel", undefined);
19
- _defineProperty(this, "hint", undefined);
20
- _defineProperty(this, "accessibilityrole", "imagebutton");
21
18
  }
22
19
  }
23
20
  //# sourceMappingURL=camera.props.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmCameraProps","constructor","arguments","_defineProperty","undefined"],"sources":["camera.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { AccessibilityRole } from 'react-native';\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 accessibilitylabel?: string = undefined;\n hint?: string = undefined;\n accessibilityrole?: AccessibilityRole = \"imagebutton\";\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAGzE,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;IAAAA,eAAA,6BACIC,SAAS;IAAAD,eAAA,eACvBC,SAAS;IAAAD,eAAA,4BACe,aAAa;EAAA;AACvD"}
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"}
@@ -7,26 +7,18 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
7
7
  text: {},
8
8
  button: {
9
9
  root: {
10
- minHeight: 30,
11
- minWidth: 40,
12
- paddingRight: 0,
13
- paddingLeft: 7,
14
- paddingBottom: 4,
15
- paddingTop: 4,
16
10
  borderWidth: 1,
17
- borderColor: themeVariables.defaultColor2,
11
+ borderColor: themeVariables.cameraBorderColor,
18
12
  borderStyle: 'solid',
19
- backgroundColor: themeVariables.primaryColor,
20
- borderRadius: 20,
21
- rippleColor: themeVariables.rippleColor
13
+ backgroundColor: themeVariables.cameraBgColor,
14
+ borderRadius: 4
22
15
  },
23
16
  text: {
24
17
  color: themeVariables.cameraTextColor
25
18
  },
26
19
  icon: {
27
20
  text: {
28
- color: themeVariables.defaultColorF,
29
- paddingRight: 0
21
+ color: themeVariables.cameraTextColor
30
22
  },
31
23
  icon: {
32
24
  fontSize: 24
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","button","minHeight","minWidth","paddingRight","paddingLeft","paddingBottom","paddingTop","borderWidth","borderColor","defaultColor2","borderStyle","backgroundColor","primaryColor","borderRadius","rippleColor","color","cameraTextColor","icon","defaultColorF","fontSize"],"sources":["camera.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmButtonStyles } from '@wavemaker/app-rn-runtime/components/basic/button/button.styles';\n\nexport type WmCameraStyles = BaseStyles & {\n button: WmButtonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-camera';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmCameraStyles = defineStyles({\n root: {},\n text: {},\n button: {\n root: {\n minHeight: 30,\n minWidth: 40,\n paddingRight: 0,\n paddingLeft: 7,\n paddingBottom: 4,\n paddingTop: 4,\n borderWidth: 1,\n borderColor: themeVariables.defaultColor2,\n borderStyle: 'solid',\n backgroundColor: themeVariables.primaryColor,\n borderRadius: 20,\n rippleColor : themeVariables.rippleColor\n },\n text: {\n color: themeVariables.cameraTextColor,\n },\n icon: {\n text: {\n color: themeVariables.defaultColorF,\n paddingRight: 0\n },\n icon: {\n fontSize: 24\n }\n }\n } as WmButtonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAOxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACzCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA6B,GAAGL,YAAY,CAAC;IAC/CM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE,CAAC,CAAC;IACRC,MAAM,EAAE;MACNF,IAAI,EAAE;QACJG,SAAS,EAAE,EAAE;QACbC,QAAQ,EAAE,EAAE;QACZC,YAAY,EAAE,CAAC;QACfC,WAAW,EAAE,CAAC;QACdC,aAAa,EAAE,CAAC;QAChBC,UAAU,EAAE,CAAC;QACbC,WAAW,EAAE,CAAC;QACdC,WAAW,EAAEb,cAAc,CAACc,aAAa;QACzCC,WAAW,EAAE,OAAO;QACpBC,eAAe,EAAEhB,cAAc,CAACiB,YAAY;QAC5CC,YAAY,EAAE,EAAE;QAChBC,WAAW,EAAGnB,cAAc,CAACmB;MAC/B,CAAC;MACDf,IAAI,EAAE;QACJgB,KAAK,EAAEpB,cAAc,CAACqB;MACxB,CAAC;MACDC,IAAI,EAAE;QACJlB,IAAI,EAAE;UACJgB,KAAK,EAAEpB,cAAc,CAACuB,aAAa;UACnCf,YAAY,EAAE;QAChB,CAAC;QACDc,IAAI,EAAE;UACJE,QAAQ,EAAE;QACZ;MACF;IACF;EACJ,CAAC,CAAC;EAEFvB,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC5C,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","button","borderWidth","borderColor","cameraBorderColor","borderStyle","backgroundColor","cameraBgColor","borderRadius","color","cameraTextColor","icon","fontSize"],"sources":["camera.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmButtonStyles } from '@wavemaker/app-rn-runtime/components/basic/button/button.styles';\n\nexport type WmCameraStyles = BaseStyles & {\n button: WmButtonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-camera';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmCameraStyles = defineStyles({\n root: {},\n text: {},\n button: {\n root: {\n borderWidth: 1,\n borderColor: themeVariables.cameraBorderColor,\n borderStyle: 'solid',\n backgroundColor: themeVariables.cameraBgColor,\n borderRadius: 4\n },\n text: {\n color: themeVariables.cameraTextColor\n },\n icon: {\n text: {\n color: themeVariables.cameraTextColor\n },\n icon: {\n fontSize: 24\n }\n }\n } as WmButtonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAOxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACzCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA6B,GAAGL,YAAY,CAAC;IAC/CM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE,CAAC,CAAC;IACRC,MAAM,EAAE;MACNF,IAAI,EAAE;QACJG,WAAW,EAAE,CAAC;QACdC,WAAW,EAAEP,cAAc,CAACQ,iBAAiB;QAC7CC,WAAW,EAAE,OAAO;QACpBC,eAAe,EAAEV,cAAc,CAACW,aAAa;QAC7CC,YAAY,EAAE;MAChB,CAAC;MACDR,IAAI,EAAE;QACJS,KAAK,EAAEb,cAAc,CAACc;MACxB,CAAC;MACDC,IAAI,EAAE;QACJX,IAAI,EAAE;UACJS,KAAK,EAAEb,cAAc,CAACc;QACxB,CAAC;QACDC,IAAI,EAAE;UACJC,QAAQ,EAAE;QACZ;MACF;IACF;EACJ,CAAC,CAAC;EAEFf,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC5C,CAAC,CAAC"}
@@ -36,10 +36,6 @@ export default class WmAlertdialog extends BaseComponent {
36
36
  return /*#__PURE__*/React.createElement(WmDialog, {
37
37
  id: this.getTestId('dialog'),
38
38
  iconclass: props.iconclass,
39
- iconurl: props.iconurl,
40
- iconheight: props.iconheight,
41
- iconmargin: props.iconmargin,
42
- iconwidth: props.iconwidth,
43
39
  animation: props.animation,
44
40
  closable: props.closable,
45
41
  modal: props.modal,
@@ -1 +1 @@
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","id","getTestId","iconclass","iconurl","iconheight","iconmargin","iconwidth","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 id={this.getTestId('dialog')}\n iconclass={props.iconclass}\n iconurl={props.iconurl}\n iconheight={props.iconheight}\n iconmargin={props.iconmargin}\n iconwidth={props.iconwidth}\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 id={this.getTestId('msg')}\n caption={props.message || ''}\n styles={this.styles.message}></WmLabel>\n </WmDialogcontent>\n <WmDialogactions styles={this.styles.dialogActions}>\n <WmButton\n id={this.getTestId('okbtn')}\n caption={props.oktext}\n styles={this.theme.mergeStyle({},this.styles.okButton,this.theme.getStyle('btn-only-label'))}\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,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OAAO,IAAI,EAAG;MAC7BR,MAAM,EAAE,IAAI,CAACA,MAAM,CAACQ;IAAQ,CAAU,CACzB,CAAC,eAClBjD,KAAA,CAAA8B,aAAA,CAACvB,eAAe;MAACkC,MAAM,EAAE,IAAI,CAACA,MAAM,CAACS;IAAc,gBACjDlD,KAAA,CAAA8B,aAAA,CAAC3B,QAAQ;MACP4B,EAAE,EAAE,IAAI,CAACC,SAAS,CAAC,OAAO,CAAE;MAC5BgB,OAAO,EAAEjC,KAAK,CAACoC,MAAO;MACtBV,MAAM,EAAE,IAAI,CAACf,KAAK,CAAC0B,UAAU,CAAC,CAAC,CAAC,EAAC,IAAI,CAACX,MAAM,CAACY,QAAQ,EAAC,IAAI,CAAC3B,KAAK,CAACC,QAAQ,CAAC,gBAAgB,CAAC,CAAE;MAC7F2B,KAAK,EAAEA,CAAA,KAAM;QACX,IAAI,CAACnC,SAAS,CAACE,KAAK,CAAC,CAAC;QACtB,IAAI,CAACyB,mBAAmB,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;MAChD;IAAE,CAAW,CACA,CACT,CAAC;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","id","getTestId","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 id={this.getTestId('dialog')}\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 id={this.getTestId('msg')}\n caption={props.message || ''}\n styles={this.styles.message}></WmLabel>\n </WmDialogcontent>\n <WmDialogactions styles={this.styles.dialogActions}>\n <WmButton\n id={this.getTestId('okbtn')}\n caption={props.oktext}\n styles={this.theme.mergeStyle({},this.styles.okButton,this.theme.getStyle('btn-only-label'))}\n onTap={() => {\n this.dialogRef.close();\n this.invokeEventCallback('onOk', [null, this]);\n }}></WmButton>\n </WmDialogactions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AC,CAAC,EAAC,IAAI,CAACX,MAAM,CAACY,QAAQ,EAAC,IAAI,CAACvB,KAAK,CAACC,QAAQ,CAAC,gBAAgB,CAAC,CAAE;MAC7FuB,KAAK,EAAEA,CAAA,KAAM;QACX,IAAI,CAAC/B,SAAS,CAACE,KAAK,CAAC,CAAC;QACtB,IAAI,CAACqB,mBAAmB,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;MAChD;IAAE,CAAW,CACA,CACT,CAAC;EAEf;AACF"}
@@ -14,10 +14,6 @@ export default class WmAlertdialogProps extends BaseProps {
14
14
  _defineProperty(this, "modal", false);
15
15
  _defineProperty(this, "closable", true);
16
16
  _defineProperty(this, "onOpened", null);
17
- _defineProperty(this, "iconurl", null);
18
- _defineProperty(this, "iconheight", null);
19
- _defineProperty(this, "iconwidth", null);
20
- _defineProperty(this, "iconmargin", null);
21
17
  }
22
18
  }
23
19
  //# sourceMappingURL=alertdialog.props.js.map
@@ -1 +1 @@
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 iconurl?: string = null as any;\n iconheight?: number = null as any;\n iconwidth?: number = null as any;\n iconmargin?: number = 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;IAAAA,eAAA,kBACP,IAAI;IAAAA,eAAA,qBACD,IAAI;IAAAA,eAAA,oBACL,IAAI;IAAAA,eAAA,qBACH,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"}
@@ -16,8 +16,7 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
16
16
  marginLeft: 4
17
17
  },
18
18
  text: {
19
- textTransform: 'capitalize',
20
- fontSize: 16
19
+ fontsize: 16
21
20
  }
22
21
  },
23
22
  message: {
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","dialog","dialogContent","dialogActions","okButton","border","marginLeft","textTransform","fontSize","message","fontFamily","baseFont","fontWeight","color","dialogSupportingTextColor"],"sources":["alertdialog.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmButtonStyles } from '@wavemaker/app-rn-runtime/components/basic/button/button.styles';\nimport { WmDialogStyles } from '../dialog/dialog.styles';\nimport { WmDialogcontentStyles } from '../dialogcontent/dialogcontent.styles';\nimport { WmDialogactionsStyles } from '../dialogactions/dialogactions.styles';\nimport { WmLabelStyles } from '../../basic/label/label.styles';\n\nexport type WmAlertdialogStyles = BaseStyles & {\n dialog: WmDialogStyles,\n dialogContent: WmDialogcontentStyles,\n dialogActions: WmDialogactionsStyles,\n okButton: WmButtonStyles,\n message: WmLabelStyles\n};\n\nexport const DEFAULT_CLASS = 'app-alertdialog';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmAlertdialogStyles = defineStyles({\n root: {},\n text: {},\n dialog: {} as WmDialogStyles,\n dialogContent: {\n root: {}\n } as WmDialogactionsStyles,\n dialogActions: {} as WmDialogcontentStyles,\n okButton: {\n root: {\n border: 'none',\n marginLeft: 4\n },\n text : {\n textTransform: 'capitalize',\n fontSize: 16\n }\n } as any as WmButtonStyles,\n message: {\n text: {\n fontFamily: themeVariables.baseFont,\n fontSize: 14,\n fontWeight: '400',\n color: themeVariables.dialogSupportingTextColor\n }\n } as WmLabelStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAexF,OAAO,MAAMC,aAAa,GAAG,iBAAiB;AAC9CF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAAkC,GAAGL,YAAY,CAAC;IACpDM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE,CAAC,CAAC;IACRC,MAAM,EAAE,CAAC,CAAmB;IAC5BC,aAAa,EAAE;MACXH,IAAI,EAAE,CAAC;IACX,CAA0B;IAC1BI,aAAa,EAAE,CAAC,CAA0B;IAC1CC,QAAQ,EAAE;MACNL,IAAI,EAAE;QACHM,MAAM,EAAE,MAAM;QACdC,UAAU,EAAE;MACf,CAAC;MACDN,IAAI,EAAG;QACHO,aAAa,EAAE,YAAY;QAC3BC,QAAQ,EAAE;MACd;IACJ,CAA0B;IAC1BC,OAAO,EAAE;MACLT,IAAI,EAAE;QACFU,UAAU,EAAEd,cAAc,CAACe,QAAQ;QACnCH,QAAQ,EAAE,EAAE;QACZI,UAAU,EAAE,KAAK;QACjBC,KAAK,EAAEjB,cAAc,CAACkB;MAC1B;IACJ;EACJ,CAAC,CAAC;EAEFjB,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC9C,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","dialog","dialogContent","dialogActions","okButton","border","marginLeft","fontsize","message","fontFamily","baseFont","fontSize","fontWeight","color","dialogSupportingTextColor"],"sources":["alertdialog.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmButtonStyles } from '@wavemaker/app-rn-runtime/components/basic/button/button.styles';\nimport { WmDialogStyles } from '../dialog/dialog.styles';\nimport { WmDialogcontentStyles } from '../dialogcontent/dialogcontent.styles';\nimport { WmDialogactionsStyles } from '../dialogactions/dialogactions.styles';\nimport { WmLabelStyles } from '../../basic/label/label.styles';\n\nexport type WmAlertdialogStyles = BaseStyles & {\n dialog: WmDialogStyles,\n dialogContent: WmDialogcontentStyles,\n dialogActions: WmDialogactionsStyles,\n okButton: WmButtonStyles,\n message: WmLabelStyles\n};\n\nexport const DEFAULT_CLASS = 'app-alertdialog';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmAlertdialogStyles = defineStyles({\n root: {},\n text: {},\n dialog: {} as WmDialogStyles,\n dialogContent: {\n root: {}\n } as WmDialogactionsStyles,\n dialogActions: {} as WmDialogcontentStyles,\n okButton: {\n root: {\n border: 'none',\n marginLeft: 4\n },\n text : {\n fontsize: 16\n }\n } as any as WmButtonStyles,\n message: {\n text: {\n fontFamily: themeVariables.baseFont,\n fontSize: 14,\n fontWeight: '400',\n color: themeVariables.dialogSupportingTextColor\n }\n } as WmLabelStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAexF,OAAO,MAAMC,aAAa,GAAG,iBAAiB;AAC9CF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAAkC,GAAGL,YAAY,CAAC;IACpDM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE,CAAC,CAAC;IACRC,MAAM,EAAE,CAAC,CAAmB;IAC5BC,aAAa,EAAE;MACXH,IAAI,EAAE,CAAC;IACX,CAA0B;IAC1BI,aAAa,EAAE,CAAC,CAA0B;IAC1CC,QAAQ,EAAE;MACNL,IAAI,EAAE;QACHM,MAAM,EAAE,MAAM;QACdC,UAAU,EAAE;MACf,CAAC;MACDN,IAAI,EAAG;QACLO,QAAQ,EAAE;MACZ;IACJ,CAA0B;IAC1BC,OAAO,EAAE;MACLR,IAAI,EAAE;QACFS,UAAU,EAAEb,cAAc,CAACc,QAAQ;QACnCC,QAAQ,EAAE,EAAE;QACZC,UAAU,EAAE,KAAK;QACjBC,KAAK,EAAEjB,cAAc,CAACkB;MAC1B;IACJ;EACJ,CAAC,CAAC;EAEFjB,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC9C,CAAC,CAAC"}
@@ -34,10 +34,6 @@ export default class WmConfirmdialog extends BaseComponent {
34
34
  return /*#__PURE__*/React.createElement(WmDialog, {
35
35
  id: this.getTestId('dialog'),
36
36
  iconclass: props.iconclass,
37
- iconurl: props.iconurl,
38
- iconheight: props.iconheight,
39
- iconmargin: props.iconmargin,
40
- iconwidth: props.iconwidth,
41
37
  animation: props.animation,
42
38
  closable: props.closable,
43
39
  modal: props.modal,