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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. app-rn-runtime/components/advanced/carousel/carousel.component.js +14 -9
  2. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  3. app-rn-runtime/components/advanced/carousel/carousel.styles.js +6 -3
  4. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  5. app-rn-runtime/components/advanced/webview/webview.component.js +33 -14
  6. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  7. app-rn-runtime/components/advanced/webview/webview.props.js +3 -1
  8. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  9. app-rn-runtime/components/basic/anchor/anchor.component.js +23 -7
  10. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  11. app-rn-runtime/components/basic/anchor/anchor.props.js +8 -0
  12. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  13. app-rn-runtime/components/basic/anchor/anchor.styles.js +3 -1
  14. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  15. app-rn-runtime/components/basic/animatedview.component.js +5 -3
  16. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  17. app-rn-runtime/components/basic/button/button.component.js +41 -8
  18. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  19. app-rn-runtime/components/basic/button/button.props.js +7 -0
  20. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  21. app-rn-runtime/components/basic/button/button.styles.js +9 -10
  22. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  23. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js +13 -5
  24. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  25. app-rn-runtime/components/basic/icon/icon.component.js +64 -12
  26. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  27. app-rn-runtime/components/basic/icon/icon.props.js +7 -0
  28. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  29. app-rn-runtime/components/basic/icon/icon.styles.js +2 -1
  30. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  31. app-rn-runtime/components/basic/label/label.component.js +44 -27
  32. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  33. app-rn-runtime/components/basic/label/label.props.js +4 -0
  34. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  35. app-rn-runtime/components/basic/label/label.styles.js +4 -5
  36. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  37. app-rn-runtime/components/basic/message/message.component.js +3 -2
  38. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  39. app-rn-runtime/components/basic/message/message.props.js +3 -0
  40. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  41. app-rn-runtime/components/basic/message/message.styles.js +3 -1
  42. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  43. app-rn-runtime/components/basic/picture/picture.component.js +4 -2
  44. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  45. app-rn-runtime/components/basic/picture/picture.props.js +3 -0
  46. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  47. app-rn-runtime/components/basic/picture/picture.styles.js +3 -1
  48. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  49. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +3 -3
  50. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  51. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js +2 -0
  52. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  53. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +3 -2
  54. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  55. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js +2 -0
  56. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  57. app-rn-runtime/components/basic/search/search.component.js +10 -3
  58. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  59. app-rn-runtime/components/basic/search/search.props.js +4 -0
  60. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  61. app-rn-runtime/components/basic/search/search.styles.js +6 -5
  62. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  63. app-rn-runtime/components/basic/skeleton/skeleton.component.js +0 -1
  64. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  65. app-rn-runtime/components/basic/video/video.component.js +4 -2
  66. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  67. app-rn-runtime/components/basic/video/video.props.js +3 -0
  68. app-rn-runtime/components/basic/video/video.props.js.map +1 -1
  69. app-rn-runtime/components/chart/area-chart/area-chart.component.js +34 -24
  70. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  71. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js +29 -16
  72. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  73. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js +0 -2
  74. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  75. app-rn-runtime/components/chart/basechart.component.js +34 -7
  76. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  77. app-rn-runtime/components/chart/basechart.props.js +7 -2
  78. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  79. app-rn-runtime/components/chart/basechart.styles.js +9 -2
  80. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  81. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js +4 -2
  82. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  83. app-rn-runtime/components/chart/line-chart/line-chart.component.js +27 -20
  84. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  85. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  86. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +7 -4
  87. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  88. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js +48 -18
  89. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js.map +1 -1
  90. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js +1 -0
  91. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js.map +1 -1
  92. app-rn-runtime/components/chart/staticdata.js +215 -0
  93. app-rn-runtime/components/chart/staticdata.js.map +1 -0
  94. app-rn-runtime/components/container/container.component.js +1 -1
  95. app-rn-runtime/components/container/container.component.js.map +1 -1
  96. app-rn-runtime/components/container/panel/panel.component.js +6 -2
  97. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  98. app-rn-runtime/components/container/panel/panel.props.js +4 -0
  99. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  100. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +1 -1
  101. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  102. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +1 -1
  103. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  104. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js +14 -1
  105. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  106. app-rn-runtime/components/container/tabs/tabs.component.js +3 -0
  107. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  108. app-rn-runtime/components/container/wizard/wizard.component.js +17 -14
  109. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  110. app-rn-runtime/components/container/wizard/wizard.styles.js +19 -3
  111. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  112. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +27 -2
  113. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  114. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js +6 -0
  115. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  116. app-rn-runtime/components/data/card/card.component.js +7 -3
  117. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  118. app-rn-runtime/components/data/card/card.props.js +4 -0
  119. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  120. app-rn-runtime/components/data/form/form-action/form-action.component.js +1 -0
  121. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  122. app-rn-runtime/components/data/form/form-action/form-action.props.js +1 -0
  123. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  124. app-rn-runtime/components/data/form/form-action/form-action.styles.js +2 -1
  125. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  126. app-rn-runtime/components/data/form/form-field/form-field.component.js +16 -1
  127. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  128. app-rn-runtime/components/data/form/form-field/form-field.props.js +3 -0
  129. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  130. app-rn-runtime/components/data/form/form.component.js +26 -4
  131. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  132. app-rn-runtime/components/data/form/form.props.js +3 -0
  133. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  134. app-rn-runtime/components/data/list/list.component.js +143 -28
  135. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  136. app-rn-runtime/components/data/list/list.props.js +6 -1
  137. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  138. app-rn-runtime/components/data/list/list.styles.js +13 -0
  139. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  140. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +4 -1
  141. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  142. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js +3 -0
  143. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  144. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js +13 -6
  145. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js.map +1 -1
  146. app-rn-runtime/components/device/camera/camera.component.js +4 -1
  147. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  148. app-rn-runtime/components/device/camera/camera.props.js +3 -0
  149. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  150. app-rn-runtime/components/device/camera/camera.styles.js +12 -4
  151. app-rn-runtime/components/device/camera/camera.styles.js.map +1 -1
  152. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js +4 -0
  153. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  154. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js +4 -0
  155. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  156. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js +2 -1
  157. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -1
  158. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js +4 -0
  159. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  160. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js +4 -0
  161. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  162. app-rn-runtime/components/dialogs/dialog/dialog.component.js +7 -3
  163. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  164. app-rn-runtime/components/dialogs/dialog/dialog.props.js +4 -0
  165. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  166. app-rn-runtime/components/dialogs/dialog/dialog.styles.js +11 -2
  167. app-rn-runtime/components/dialogs/dialog/dialog.styles.js.map +1 -1
  168. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js +4 -0
  169. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  170. app-rn-runtime/components/input/basedataset/basedataset.props.js +4 -0
  171. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  172. app-rn-runtime/components/input/baseinput/baseinput.component.js +3 -3
  173. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  174. app-rn-runtime/components/input/baseinput/baseinput.props.js +6 -0
  175. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  176. app-rn-runtime/components/input/basenumber/basenumber.component.js +16 -10
  177. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  178. app-rn-runtime/components/input/basenumber/basenumber.props.js +4 -0
  179. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  180. app-rn-runtime/components/input/checkbox/checkbox.component.js +12 -5
  181. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  182. app-rn-runtime/components/input/checkbox/checkbox.styles.js +35 -5
  183. app-rn-runtime/components/input/checkbox/checkbox.styles.js.map +1 -1
  184. app-rn-runtime/components/input/checkboxset/checkboxset.component.js +26 -10
  185. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  186. app-rn-runtime/components/input/checkboxset/checkboxset.props.js +1 -0
  187. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  188. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js +39 -10
  189. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +1 -1
  190. app-rn-runtime/components/input/chips/chips.component.js +5 -1
  191. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  192. app-rn-runtime/components/input/composite/composite.component.js +1 -1
  193. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  194. app-rn-runtime/components/input/composite/composite.props.js +1 -1
  195. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  196. app-rn-runtime/components/input/currency/currency.component.js +18 -3
  197. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  198. app-rn-runtime/components/input/currency/currency.props.js +1 -0
  199. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  200. app-rn-runtime/components/input/currency/currency.styles.js +19 -1
  201. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  202. app-rn-runtime/components/input/epoch/base-datetime.component.js +76 -10
  203. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  204. app-rn-runtime/components/input/epoch/date/date.component.js +8 -0
  205. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  206. app-rn-runtime/components/input/epoch/date/date.styles.js +16 -0
  207. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  208. app-rn-runtime/components/input/epoch/datetime/datetime.component.js +8 -0
  209. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  210. app-rn-runtime/components/input/epoch/datetime/datetime.props.js +5 -0
  211. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  212. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +49 -1
  213. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  214. app-rn-runtime/components/input/epoch/time/time.component.js +8 -0
  215. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  216. app-rn-runtime/components/input/epoch/time/time.styles.js +16 -0
  217. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  218. app-rn-runtime/components/input/fileupload/fileupload.component.js +2 -0
  219. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  220. app-rn-runtime/components/input/fileupload/fileupload.props.js +2 -0
  221. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  222. app-rn-runtime/components/input/fileupload/fileupload.styles.js +1 -1
  223. app-rn-runtime/components/input/fileupload/fileupload.styles.js.map +1 -1
  224. app-rn-runtime/components/input/number/number.component.js +13 -2
  225. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  226. app-rn-runtime/components/input/number/number.props.js +1 -0
  227. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  228. app-rn-runtime/components/input/number/number.styles.js +17 -0
  229. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  230. app-rn-runtime/components/input/radioset/radioset.component.js +52 -21
  231. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  232. app-rn-runtime/components/input/radioset/radioset.props.js +1 -0
  233. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  234. app-rn-runtime/components/input/radioset/radioset.styles.js +35 -2
  235. app-rn-runtime/components/input/radioset/radioset.styles.js.map +1 -1
  236. app-rn-runtime/components/input/select/select.component.js +7 -3
  237. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  238. app-rn-runtime/components/input/select/select.styles.js +5 -1
  239. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  240. app-rn-runtime/components/input/slider/slider.component.js +3 -2
  241. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  242. app-rn-runtime/components/input/slider/slider.styles.js +3 -3
  243. app-rn-runtime/components/input/slider/slider.styles.js.map +1 -1
  244. app-rn-runtime/components/input/switch/switch.component.js +8 -1
  245. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  246. app-rn-runtime/components/input/switch/switch.styles.js +10 -5
  247. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  248. app-rn-runtime/components/input/text/text.component.js +17 -3
  249. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  250. app-rn-runtime/components/input/text/text.props.js +1 -0
  251. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  252. app-rn-runtime/components/input/text/text.styles.js +17 -0
  253. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  254. app-rn-runtime/components/input/textarea/textarea.component.js +13 -1
  255. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  256. app-rn-runtime/components/input/textarea/textarea.props.js +1 -0
  257. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  258. app-rn-runtime/components/input/textarea/textarea.styles.js +17 -0
  259. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  260. app-rn-runtime/components/input/toggle/toggle.component.js +51 -7
  261. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  262. app-rn-runtime/components/input/toggle/toggle.props.js +4 -0
  263. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  264. app-rn-runtime/components/input/toggle/toggle.styles.js +5 -12
  265. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  266. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +6 -1
  267. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  268. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js +1 -0
  269. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  270. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js +11 -2
  271. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  272. app-rn-runtime/components/navigation/basenav/basenav.component.js +1 -2
  273. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  274. app-rn-runtime/components/navigation/menu/menu.styles.js +8 -5
  275. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  276. app-rn-runtime/components/navigation/navitem/navitem.component.js +8 -5
  277. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  278. app-rn-runtime/components/navigation/navitem/navitem.props.js +3 -0
  279. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  280. app-rn-runtime/components/navigation/popover/popover.component.js +14 -3
  281. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  282. app-rn-runtime/components/navigation/popover/popover.props.js +7 -0
  283. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  284. app-rn-runtime/components/navigation/popover/popover.styles.js +8 -2
  285. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  286. app-rn-runtime/components/page/left-panel/left-panel.component.js +4 -0
  287. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  288. app-rn-runtime/components/page/page-content/page-content.component.js +7 -1
  289. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  290. app-rn-runtime/components/page/tabbar/curve.js +84 -0
  291. app-rn-runtime/components/page/tabbar/curve.js.map +1 -0
  292. app-rn-runtime/components/page/tabbar/tabbar.component.js +44 -10
  293. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  294. app-rn-runtime/components/page/tabbar/tabbar.styles.js +82 -15
  295. app-rn-runtime/components/page/tabbar/tabbar.styles.js.map +1 -1
  296. app-rn-runtime/core/accessibility.js +149 -0
  297. app-rn-runtime/core/accessibility.js.map +1 -0
  298. app-rn-runtime/core/base.component.js +33 -6
  299. app-rn-runtime/core/base.component.js.map +1 -1
  300. app-rn-runtime/core/components/floatinglabel.component.js +45 -0
  301. app-rn-runtime/core/components/floatinglabel.component.js.map +1 -0
  302. app-rn-runtime/core/components/textinput.component.js +165 -9
  303. app-rn-runtime/core/components/textinput.component.js.map +1 -1
  304. app-rn-runtime/core/event-notifier.js +37 -2
  305. app-rn-runtime/core/event-notifier.js.map +1 -1
  306. app-rn-runtime/core/formatters.js +14 -1
  307. app-rn-runtime/core/formatters.js.map +1 -1
  308. app-rn-runtime/core/tappable.component.js +37 -10
  309. app-rn-runtime/core/tappable.component.js.map +1 -1
  310. app-rn-runtime/core/utils.js +11 -0
  311. app-rn-runtime/core/utils.js.map +1 -1
  312. app-rn-runtime/gestures/swipe.animation.js +34 -1
  313. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  314. app-rn-runtime/package.json +6 -3
  315. app-rn-runtime/runtime/App.js +17 -10
  316. app-rn-runtime/runtime/App.js.map +1 -1
  317. app-rn-runtime/runtime/base-fragment.component.js +5 -1
  318. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  319. app-rn-runtime/runtime/base-page.component.js +1 -1
  320. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  321. app-rn-runtime/runtime/services/app-security.service.js +2 -1
  322. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  323. app-rn-runtime/runtime/services/webprocess.service.js +0 -1
  324. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  325. app-rn-runtime/styles/background.component.js +16 -5
  326. app-rn-runtime/styles/background.component.js.map +1 -1
  327. app-rn-runtime/styles/theme.js +43 -0
  328. app-rn-runtime/styles/theme.js.map +1 -1
  329. app-rn-runtime/styles/theme.variables.js +30 -6
  330. app-rn-runtime/styles/theme.variables.js.map +1 -1
  331. app-rn-runtime/variables/model-variable.js +2 -1
  332. app-rn-runtime/variables/model-variable.js.map +1 -1
  333. app-rn-runtime/variables/service-variable.js +14 -6
  334. app-rn-runtime/variables/service-variable.js.map +1 -1
@@ -7,21 +7,28 @@ 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,
10
16
  borderWidth: 1,
11
- borderColor: themeVariables.barcodeScannerBorderColor,
17
+ borderColor: themeVariables.defaultColor2,
12
18
  borderStyle: 'solid',
13
- backgroundColor: themeVariables.barcodeScannerBgColor,
14
- borderRadius: 4
19
+ backgroundColor: themeVariables.primaryColor,
20
+ borderRadius: 20
15
21
  },
16
22
  text: {
17
- color: themeVariables.barcodeScannerTextColor
23
+ color: themeVariables.barcodeScannerTextColor,
24
+ paddingRight: 0
18
25
  },
19
26
  icon: {
20
27
  text: {
21
- color: themeVariables.barcodeScannerTextColor
28
+ color: themeVariables.defaultColorF
22
29
  },
23
30
  icon: {
24
- fontSize: 24
31
+ fontSize: 21
25
32
  }
26
33
  }
27
34
  }
@@ -1 +1 @@
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"}
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"}
@@ -57,7 +57,10 @@ 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)
60
+ onTap: this.onCameraTap.bind(this),
61
+ accessibilitylabel: props.accessibilitylabel,
62
+ hint: props.hint,
63
+ accessibilityrole: props.accessibilityrole
61
64
  }));
62
65
  });
63
66
  }
@@ -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"],"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,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,CAAC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AE5C,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"}
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,WAAW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,EAAEL;MACjB;IACF,CAAC,EAAmB,IAAI,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,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"}
@@ -15,6 +15,9 @@ 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");
18
21
  }
19
22
  }
20
23
  //# sourceMappingURL=camera.props.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmCameraProps","constructor","arguments","_defineProperty"],"sources":["camera.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmCameraProps extends BaseProps {\n allowedit: boolean = false;\n capturetype: string = 'IMAGE';\n iconclass: string = 'wm-sl-l sl-camera';\n iconsize: number = 16;\n imagequality: number = 80;\n imageencodingtype: string = 'JPEG';\n imagetargetwidth: number = null as any;\n imagetargetheight: number = null as any;\n datavalue: any;\n localFilePath: string = '';\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBAC9B,KAAK;IAAAA,eAAA,sBACJ,OAAO;IAAAA,eAAA,oBACT,mBAAmB;IAAAA,eAAA,mBACpB,EAAE;IAAAA,eAAA,uBACE,EAAE;IAAAA,eAAA,4BACG,MAAM;IAAAA,eAAA,2BACP,IAAI;IAAAA,eAAA,4BACH,IAAI;IAAAA,eAAA;IAAAA,eAAA,wBAER,EAAE;EAAA;AAC5B"}
1
+ {"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"}
@@ -7,18 +7,26 @@ 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,
10
16
  borderWidth: 1,
11
- borderColor: themeVariables.cameraBorderColor,
17
+ borderColor: themeVariables.defaultColor2,
12
18
  borderStyle: 'solid',
13
- backgroundColor: themeVariables.cameraBgColor,
14
- borderRadius: 4
19
+ backgroundColor: themeVariables.primaryColor,
20
+ borderRadius: 20,
21
+ rippleColor: themeVariables.rippleColor
15
22
  },
16
23
  text: {
17
24
  color: themeVariables.cameraTextColor
18
25
  },
19
26
  icon: {
20
27
  text: {
21
- color: themeVariables.cameraTextColor
28
+ color: themeVariables.defaultColorF,
29
+ paddingRight: 0
22
30
  },
23
31
  icon: {
24
32
  fontSize: 24
@@ -1 +1 @@
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"}
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"}
@@ -36,6 +36,10 @@ 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,
39
43
  animation: props.animation,
40
44
  closable: props.closable,
41
45
  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","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>\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;Q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,eAClB7C,KAAA,CAAA8B,aAAA,CAACvB,eAAe;MAAC8B,MAAM,EAAE,IAAI,CAACA,MAAM,CAACS;IAAc,gBACjD9C,KAAA,CAAA8B,aAAA,CAAC3B,QAAQ;MACP4B,EAAE,EAAE,IAAI,CAACC,SAAS,CAAC,OAAO,CAAE;MAC5BY,OAAO,EAAE7B,KAAK,CAACgC,MAAO;MACtBV,MAAM,EAAE,IAAI,CAACX,KAAK,CAACsB,UAAU,CAAC,CAAC,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"}
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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AAA,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"}
@@ -14,6 +14,10 @@ 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);
17
21
  }
18
22
  }
19
23
  //# 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}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,kBAAkB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBACpC,IAAI;IAAAA,eAAA,gBACf,OAAO;IAAAA,eAAA,oBACH,eAAe;IAAAA,eAAA,oBACf,OAAO;IAAAA,eAAA,iBACV,IAAI;IAAAA,eAAA,kBACH,oBAAoB;IAAAA,eAAA,gBACtB,KAAK;IAAAA,eAAA,mBACF,IAAI;IAAAA,eAAA,mBACM,IAAI;EAAA;AAC5B"}
1
+ {"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"}
@@ -16,7 +16,8 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
16
16
  marginLeft: 4
17
17
  },
18
18
  text: {
19
- fontsize: 16
19
+ textTransform: 'capitalize',
20
+ fontSize: 16
20
21
  }
21
22
  },
22
23
  message: {
@@ -1 +1 @@
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"}
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"}
@@ -34,6 +34,10 @@ 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,
37
41
  animation: props.animation,
38
42
  closable: props.closable,
39
43
  modal: props.modal,
@@ -1 +1 @@
1
- {"version":3,"names":["React","BaseComponent","BaseComponentState","WmButton","WmLabel","WmDialog","WmDialogcontent","WmDialogactions","WmConfirmdialogProps","DEFAULT_CLASS","WmConfirmdialogState","WmConfirmdialog","constructor","props","_defineProperty","onComponentInit","c","dialogRef","open","close","getMessageStyle","type","renderWidget","createElement","id","getTestId","iconclass","animation","closable","modal","styles","dialog","title","listener","onOpened","invokeEventCallback","dialogContent","caption","message","dialogActions","canceltext","theme","mergeStyle","getStyle","cancelButton","onTap","oktext","okButton"],"sources":["confirmdialog.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BaseComponent, BaseComponentState, LifecycleListener } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\nimport WmLabel from '@wavemaker/app-rn-runtime/components/basic/label/label.component';\n\nimport WmDialog from '../dialog/dialog.component';\nimport WmDialogcontent from '../dialogcontent/dialogcontent.component';\nimport WmDialogactions from '../dialogactions/dialogactions.component';\n\nimport WmConfirmdialogProps from './confirmdialog.props';\nimport { DEFAULT_CLASS, WmConfirmdialogStyles } from './confirmdialog.styles';\nimport { merge } from 'lodash-es';\n\nexport class WmConfirmdialogState extends BaseComponentState<WmConfirmdialogProps> {}\n\nexport default class WmConfirmdialog extends BaseComponent<WmConfirmdialogProps, WmConfirmdialogState, WmConfirmdialogStyles> {\n\n private dialogRef: WmDialog = null as any;\n\n private listener: LifecycleListener = {\n onComponentInit: (c) => {\n if (c instanceof WmDialog) {\n this.dialogRef = c;\n }\n }\n };\n\n constructor(props: WmConfirmdialogProps) {\n super(props, DEFAULT_CLASS, new WmConfirmdialogProps());\n }\n\n open() {\n this.dialogRef.open();\n }\n\n close() {\n this.dialogRef.close();\n }\n\n getMessageStyle(type: string) {\n\n }\n\n renderWidget(props: WmConfirmdialogProps) {\n return (\n <WmDialog\n 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('cancelbtn')}\n caption={props.canceltext}\n styles={this.theme.mergeStyle({}, this.theme.getStyle('btn-onlyLabel'), this.styles.cancelButton)}\n onTap={() => {\n this.dialogRef.close();\n this.invokeEventCallback('onCancel', [null, this]);\n }}></WmButton>\n <WmButton\n id={this.getTestId('okbtn')}\n caption={props.oktext}\n styles={this.theme.mergeStyle({}, this.theme.getStyle('btn-only-label'), this.styles.okButton)}\n onTap={() => {\n this.dialogRef.close();\n this.invokeEventCallback('onOk', [null, this]);\n }}></WmButton>\n </WmDialogactions>\n </WmDialog>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,kBAAkB,QAA2B,+CAA+C;AAEpH,OAAOC,QAAQ,MAAM,oEAAoE;AACzF,OAAOC,OAAO,MAAM,kEAAkE;AAEtF,OAAOC,QAAQ,MAAM,4BAA4B;AACjD,OAAOC,e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,QAAQ,CAAE;MAC/FF,KAAK,EAAEA,CAAA,KAAM;QACX,IAAI,CAAC5B,SAAS,CAACE,KAAK,CAAC,CAAC;QACtB,IAAI,CAACgB,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","WmConfirmdialogProps","DEFAULT_CLASS","WmConfirmdialogState","WmConfirmdialog","constructor","props","_defineProperty","onComponentInit","c","dialogRef","open","close","getMessageStyle","type","renderWidget","createElement","id","getTestId","iconclass","iconurl","iconheight","iconmargin","iconwidth","animation","closable","modal","styles","dialog","title","listener","onOpened","invokeEventCallback","dialogContent","caption","message","dialogActions","canceltext","theme","mergeStyle","getStyle","cancelButton","onTap","oktext","okButton"],"sources":["confirmdialog.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BaseComponent, BaseComponentState, LifecycleListener } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\nimport WmLabel from '@wavemaker/app-rn-runtime/components/basic/label/label.component';\n\nimport WmDialog from '../dialog/dialog.component';\nimport WmDialogcontent from '../dialogcontent/dialogcontent.component';\nimport WmDialogactions from '../dialogactions/dialogactions.component';\n\nimport WmConfirmdialogProps from './confirmdialog.props';\nimport { DEFAULT_CLASS, WmConfirmdialogStyles } from './confirmdialog.styles';\nimport { merge } from 'lodash-es';\n\nexport class WmConfirmdialogState extends BaseComponentState<WmConfirmdialogProps> {}\n\nexport default class WmConfirmdialog extends BaseComponent<WmConfirmdialogProps, WmConfirmdialogState, WmConfirmdialogStyles> {\n\n private dialogRef: WmDialog = null as any;\n\n private listener: LifecycleListener = {\n onComponentInit: (c) => {\n if (c instanceof WmDialog) {\n this.dialogRef = c;\n }\n }\n };\n\n constructor(props: WmConfirmdialogProps) {\n super(props, DEFAULT_CLASS, new WmConfirmdialogProps());\n }\n\n open() {\n this.dialogRef.open();\n }\n\n close() {\n this.dialogRef.close();\n }\n\n getMessageStyle(type: string) {\n\n }\n\n renderWidget(props: WmConfirmdialogProps) {\n return (\n <WmDialog\n 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('cancelbtn')}\n caption={props.canceltext}\n styles={this.theme.mergeStyle({}, this.theme.getStyle('btn-onlyLabel'), this.styles.cancelButton)}\n onTap={() => {\n this.dialogRef.close();\n this.invokeEventCallback('onCancel', [null, this]);\n }}></WmButton>\n <WmButton\n id={this.getTestId('okbtn')}\n caption={props.oktext}\n styles={this.theme.mergeStyle({}, this.theme.getStyle('btn-only-label'), this.styles.okButton)}\n onTap={() => {\n this.dialogRef.close();\n this.invokeEventCallback('onOk', [null, this]);\n }}></WmButton>\n </WmDialogactions>\n </WmDialog>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,kBAAkB,QAA2B,+CAA+C;AAEpH,OAAOC,QAAQ,MAAM,oEAAoE;AACzF,OAAOC,OAAO,MAAM,kEAAkE;AAEtF,OAAOC,QAAQ,MAAM,4BAA4B;AACjD,OAAOC,eAAe,MAAM,0CAA0C;AACtE,OAAOC,eAAe,MAAM,0CAA0C;AAEtE,OAAOC,oBAAoB,MAAM,uBAAuB;AACxD,SAASC,aAAa,Q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AK,CAACE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,IAAI,CAACb,MAAM,CAACiB,QAAQ,CAAE;MAC/FF,KAAK,EAAEA,CAAA,KAAM;QACX,IAAI,CAAChC,SAAS,CAACE,KAAK,CAAC,CAAC;QACtB,IAAI,CAACoB,mBAAmB,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;MAChD;IAAE,CAAW,CACA,CACT,CAAC;EAEf;AACF"}
@@ -14,6 +14,10 @@ export default class WmConfirmdialogProps 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);
17
21
  }
18
22
  }
19
23
  //# sourceMappingURL=confirmdialog.props.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmConfirmdialogProps","constructor","arguments","_defineProperty"],"sources":["confirmdialog.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmConfirmdialogProps extends BaseProps {\n animation: string = null as any;\n title? = 'Confirm';\n iconclass? = 'wm-sl-l sl-check';\n oktext? = 'Ok';\n canceltext? = 'CANCEL';\n message? = 'I am confirm box!';\n modal? = false;\n closable? = true;\n onOpened?: Function = null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,oBAAoB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBACpC,IAAI;IAAAA,eAAA,gBACf,SAAS;IAAAA,eAAA,oBACL,kBAAkB;IAAAA,eAAA,iBACrB,IAAI;IAAAA,eAAA,qBACA,QAAQ;IAAAA,eAAA,kBACX,mBAAmB;IAAAA,eAAA,gBACrB,KAAK;IAAAA,eAAA,mBACF,IAAI;IAAAA,eAAA,mBACM,IAAI;EAAA;AAC9B"}
1
+ {"version":3,"names":["BaseProps","WmConfirmdialogProps","constructor","arguments","_defineProperty"],"sources":["confirmdialog.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmConfirmdialogProps extends BaseProps {\n animation: string = null as any;\n title? = 'Confirm';\n iconclass? = 'wm-sl-l sl-check';\n oktext? = 'Ok';\n canceltext? = 'CANCEL';\n message? = 'I am confirm box!';\n modal? = false;\n closable? = true;\n onOpened?: Function = null as any;\n 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,oBAAoB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBACpC,IAAI;IAAAA,eAAA,gBACf,SAAS;IAAAA,eAAA,oBACL,kBAAkB;IAAAA,eAAA,iBACrB,IAAI;IAAAA,eAAA,qBACA,QAAQ;IAAAA,eAAA,kBACX,mBAAmB;IAAAA,eAAA,gBACrB,KAAK;IAAAA,eAAA,mBACF,IAAI;IAAAA,eAAA,mBACM,IAAI;IAAAA,eAAA,kBACP,IAAI;IAAAA,eAAA,qBACD,IAAI;IAAAA,eAAA,oBACL,IAAI;IAAAA,eAAA,qBACH,IAAI;EAAA;AAC9B"}
@@ -75,12 +75,16 @@ export default class WmDialog extends BaseComponent {
75
75
  style: this.styles.header
76
76
  }, /*#__PURE__*/React.createElement(View, {
77
77
  style: this.styles.headerLabel
78
- }, /*#__PURE__*/React.createElement(WmIcon, {
78
+ }, props.iconclass || props.iconurl ? /*#__PURE__*/React.createElement(WmIcon, {
79
79
  id: this.getTestId('icon'),
80
80
  caption: props.title,
81
81
  iconclass: props.iconclass,
82
- styles: this.styles.icon
83
- })), props.closable && /*#__PURE__*/React.createElement(WmButton, {
82
+ styles: this.styles.icon,
83
+ iconurl: props.iconurl,
84
+ iconheight: props.iconheight,
85
+ iconmargin: props.iconmargin,
86
+ iconwidth: props.iconwidth
87
+ }) : null), props.closable && /*#__PURE__*/React.createElement(WmButton, {
84
88
  id: this.getTestId('closebtn'),
85
89
  show: props.closable,
86
90
  iconclass: "wm-sl-l sl-close",
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","ModalConsumer","AssetProvider","HideMode","ThemeProvider","BaseComponent","BaseComponentState","WmIcon","WmButton","WmDialogProps","DEFAULT_CLASS","WmDialogState","constructor","arguments","_defineProperty","WmDialog","props","hideMode","DONOT_ADD_TO_DOM","state","modalOptions","onClose","Promise","res","updateState","show","invokeEventCallback","onOpen","open","close","_close","prepareModalOptions","content","modalService","o","name","modalStyle","styles","modal","contentStyle","isModal","centered","animation","hideModal","renderWidget","createElement","showModal","value","loadAsset","theme","style","root","_background","showheader","header","headerLabel","id","getTestId","caption","title","iconclass","icon","closable","onTap","closeBtn","children"],"sources":["dialog.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\n\nimport { ModalConsumer, ModalOptions, ModalService } from '@wavemaker/app-rn-runtime/core/modal.service';\nimport { AssetProvider } from '@wavemaker/app-rn-runtime/core/asset.provider';\nimport { HideMode } from '@wavemaker/app-rn-runtime/core/if.component';\nimport { ThemeProvider } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\n\nimport WmDialogProps from './dialog.props';\nimport { DEFAULT_CLASS, WmDialogStyles } from './dialog.styles';\n\nexport class WmDialogState extends BaseComponentState<WmDialogProps> {\n modalOptions = {} as ModalOptions;\n}\n\nexport default class WmDialog extends BaseComponent<WmDialogProps, WmDialogState, WmDialogStyles> {\n\n private _close: Function = () => {};\n\n constructor(props: WmDialogProps) {\n super(props, DEFAULT_CLASS, new WmDialogProps(), new WmDialogState());\n this.hideMode = HideMode.DONOT_ADD_TO_DOM;\n this.state.modalOptions.onClose = () => {\n return new Promise<void>((res) => {\n this.updateState({\n props: {show: false}\n } as WmDialogState, () => {\n this.invokeEventCallback('onClose', [null, this]);\n res();\n });\n });\n };\n this.state.modalOptions.onOpen = () => {\n this.invokeEventCallback('onOpened', [null, this]);\n };\n }\n\n open() {\n if (!this.state.props.show) {\n this.updateState({\n props:{show: true}\n } as WmDialogState);\n }\n }\n\n close() {\n this._close();\n }\n\n prepareModalOptions(content: React.ReactNode, modalService: ModalService) {\n const o = this.state.modalOptions;\n o.name = this.state.props.name;\n o.modalStyle = this.styles.modal;\n o.content = content;\n o.contentStyle = this.styles.content;\n o.isModal = !!this.state.props.modal;\n o.centered = true;\n o.animation = this.state.props.animation;\n this._close = () => modalService.hideModal(this.state.modalOptions);\n return o;\n }\n\n renderWidget(props: WmDialogProps) {\n return (<ModalConsumer>\n {(modalService: ModalService) => {\n modalService.showModal(this.prepareModalOptions((\n <AssetProvider value={this.loadAsset}>\n <ThemeProvider value={this.theme}>\n <View style={this.styles.root}>\n {this._background}\n {props.showheader ? (<View style={this.styles.header}>\n <View style={this.styles.headerLabel}>\n <WmIcon id={this.getTestId('icon')} caption={props.title} iconclass={props.iconclass} styles={this.styles.icon}></WmIcon>\n </View>\n {props.closable && <WmButton id={this.getTestId('closebtn')} show={props.closable} iconclass=\"wm-sl-l sl-close\" onTap={() => this.close()} styles={this.styles.closeBtn}></WmButton>}\n </View>) : null}\n {props.children}\n </View>\n </ThemeProvider>\n </AssetProvider>\n ), modalService));\n return null;\n }}\n </ModalConsumer>);\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAeC,IAAI,QAAQ,cAAc;AAEzC,SAASC,aAAa,QAAoC,8CAA8C;AACxG,SAASC,aAAa,QAAQ,+CAA+C;AAC7E,SAASC,QAAQ,QAAQ,6CAA6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AE,IAAI,CAACb,MAAM,CAACc;MAAK,GAC7B,IAAI,CAACC,WAAW,EACdpC,KAAK,CAACqC,UAAU,gBAAItD,KAAA,CAAA8C,aAAA,CAAC7C,IAAI;QAACkD,KAAK,EAAE,IAAI,CAACb,MAAM,CAACiB;MAAO,gBACnDvD,KAAA,CAAA8C,aAAA,CAAC7C,IAAI;QAACkD,KAAK,EAAE,IAAI,CAACb,MAAM,CAACkB;MAAY,gBACnCxD,KAAA,CAAA8C,aAAA,CAACtC,MAAM;QAACiD,EAAE,EAAE,IAAI,CAACC,SAAS,CAAC,MAAM,CAAE;QAACC,OAAO,EAAE1C,KAAK,CAAC2C,KAAM;QAACC,SAAS,EAAE5C,KAAK,CAAC4C,SAAU;QAACvB,MAAM,EAAE,IAAI,CAACA,MAAM,CAACwB;MAAK,CAAS,CACpH,CAAC,EACN7C,KAAK,CAAC8C,QAAQ,iBAAI/D,KAAA,CAAA8C,aAAA,CAACrC,QAAQ;QAACgD,EAAE,EAAE,IAAI,CAACC,SAAS,CAAC,UAAU,CAAE;QAAChC,IAAI,EAAET,KAAK,CAAC8C,QAAS;QAACF,SAAS,EAAC,kBAAkB;QAACG,KAAK,EAAEA,CAAA,KAAM,IAAI,CAAClC,KAAK,CAAC,CAAE;QAACQ,MAAM,EAAE,IAAI,CAACA,MAAM,CAAC2B;MAAS,CAAW,CAC/K,CAAC,GAAI,IAAI,EACdhD,KAAK,CAACiD,QACH,CACO,CACF,CAAC,EACfhC,YAAY,CAAC,CAAC;MACjB,OAAO,IAAI;IACb,CACa,CAAC;EAClB;AACF"}
1
+ {"version":3,"names":["React","View","ModalConsumer","AssetProvider","HideMode","ThemeProvider","BaseComponent","BaseComponentState","WmIcon","WmButton","WmDialogProps","DEFAULT_CLASS","WmDialogState","constructor","arguments","_defineProperty","WmDialog","props","hideMode","DONOT_ADD_TO_DOM","state","modalOptions","onClose","Promise","res","updateState","show","invokeEventCallback","onOpen","open","close","_close","prepareModalOptions","content","modalService","o","name","modalStyle","styles","modal","contentStyle","isModal","centered","animation","hideModal","renderWidget","createElement","showModal","value","loadAsset","theme","style","root","_background","showheader","header","headerLabel","iconclass","iconurl","id","getTestId","caption","title","icon","iconheight","iconmargin","iconwidth","closable","onTap","closeBtn","children"],"sources":["dialog.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\n\nimport { ModalConsumer, ModalOptions, ModalService } from '@wavemaker/app-rn-runtime/core/modal.service';\nimport { AssetProvider } from '@wavemaker/app-rn-runtime/core/asset.provider';\nimport { HideMode } from '@wavemaker/app-rn-runtime/core/if.component';\nimport { ThemeProvider } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\n\nimport WmDialogProps from './dialog.props';\nimport { DEFAULT_CLASS, WmDialogStyles } from './dialog.styles';\n\nexport class WmDialogState extends BaseComponentState<WmDialogProps> {\n modalOptions = {} as ModalOptions;\n}\n\nexport default class WmDialog extends BaseComponent<WmDialogProps, WmDialogState, WmDialogStyles> {\n\n private _close: Function = () => {};\n\n constructor(props: WmDialogProps) {\n super(props, DEFAULT_CLASS, new WmDialogProps(), new WmDialogState());\n this.hideMode = HideMode.DONOT_ADD_TO_DOM;\n this.state.modalOptions.onClose = () => {\n return new Promise<void>((res) => {\n this.updateState({\n props: {show: false}\n } as WmDialogState, () => {\n this.invokeEventCallback('onClose', [null, this]);\n res();\n });\n });\n };\n this.state.modalOptions.onOpen = () => {\n this.invokeEventCallback('onOpened', [null, this]);\n };\n }\n\n open() {\n if (!this.state.props.show) {\n this.updateState({\n props:{show: true}\n } as WmDialogState);\n }\n }\n\n close() {\n this._close();\n }\n\n prepareModalOptions(content: React.ReactNode, modalService: ModalService) {\n const o = this.state.modalOptions;\n o.name = this.state.props.name;\n o.modalStyle = this.styles.modal;\n o.content = content;\n o.contentStyle = this.styles.content;\n o.isModal = !!this.state.props.modal;\n o.centered = true;\n o.animation = this.state.props.animation;\n this._close = () => modalService.hideModal(this.state.modalOptions);\n return o;\n }\n\n renderWidget(props: WmDialogProps) {\n return (<ModalConsumer>\n {(modalService: ModalService) => {\n modalService.showModal(this.prepareModalOptions((\n <AssetProvider value={this.loadAsset}>\n <ThemeProvider value={this.theme}>\n <View style={this.styles.root}>\n {this._background}\n {props.showheader ? (<View style={this.styles.header}>\n <View style={this.styles.headerLabel}>\n {props.iconclass || props.iconurl ? \n <WmIcon id={this.getTestId('icon')}\n caption={props.title}\n iconclass={props.iconclass}\n styles={this.styles.icon}\n iconurl={props.iconurl}\n iconheight={props.iconheight}\n iconmargin={props.iconmargin}\n iconwidth={props.iconwidth}\n /> : null}\n </View>\n {props.closable && <WmButton id={this.getTestId('closebtn')} show={props.closable} iconclass=\"wm-sl-l sl-close\" onTap={() => this.close()} styles={this.styles.closeBtn}></WmButton>}\n </View>) : null}\n {props.children}\n </View>\n </ThemeProvider>\n </AssetProvider>\n ), modalService));\n return null;\n }}\n </ModalConsumer>);\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAeC,IAAI,QAAQ,cAAc;AAEzC,SAASC,aAAa,QAAoC,8CAA8C;AACxG,SAASC,aAAa,QAAQ,+CAA+C;AAC7E,SAASC,QAAQ,QAAQ,6CAA6C;AACtE,SAASC,aAAa,QAAQ,wCAAwC;AACtE,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,OAAOC,MAAM,MAAM,gEAAgE;AACnF,OAAOC,QAAQ,MAAM,oEAAoE;AAEzF,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAE/D,OAAO,MAAMC,aAAa,SAASL,kBAAkB,CAAgB;EAAAM,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,uBACpD,CAAC,CAAC;EAAA;AACnB;AAEA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,aAAA,CAACtC,MAAM;QAACmD,EAAE,EAAE,IAAI,CAACC,SAAS,CAAC,MAAM,CAAE;QAClCC,OAAO,EAAE5C,KAAK,CAAC6C,KAAM;QACrBL,SAAS,EAAExC,KAAK,CAACwC,SAAU;QAC3BnB,MAAM,EAAE,IAAI,CAACA,MAAM,CAACyB,IAAK;QACzBL,OAAO,EAAEzC,KAAK,CAACyC,OAAQ;QACvBM,UAAU,EAAE/C,KAAK,CAAC+C,UAAW;QAC7BC,UAAU,EAAEhD,KAAK,CAACgD,UAAW;QAC7BC,SAAS,EAAEjD,KAAK,CAACiD;MAAU,CAC1B,CAAC,GAAG,IACF,CAAC,EACNjD,KAAK,CAACkD,QAAQ,iBAAInE,KAAA,CAAA8C,aAAA,CAACrC,QAAQ;QAACkD,EAAE,EAAE,IAAI,CAACC,SAAS,CAAC,UAAU,CAAE;QAAClC,IAAI,EAAET,KAAK,CAACkD,QAAS;QAACV,SAAS,EAAC,kBAAkB;QAACW,KAAK,EAAEA,CAAA,KAAM,IAAI,CAACtC,KAAK,CAAC,CAAE;QAACQ,MAAM,EAAE,IAAI,CAACA,MAAM,CAAC+B;MAAS,CAAW,CAC/K,CAAC,GAAI,IAAI,EACdpD,KAAK,CAACqD,QACH,CACO,CACF,CAAC,EACfpC,YAAY,CAAC,CAAC;MACjB,OAAO,IAAI;IACb,CACa,CAAC;EAClB;AACF"}
@@ -15,6 +15,10 @@ export default class WmDialogProps extends BaseProps {
15
15
  _defineProperty(this, "showheader", true);
16
16
  _defineProperty(this, "title", '');
17
17
  _defineProperty(this, "onOpened", null);
18
+ _defineProperty(this, "iconurl", null);
19
+ _defineProperty(this, "iconheight", null);
20
+ _defineProperty(this, "iconwidth", null);
21
+ _defineProperty(this, "iconmargin", null);
18
22
  }
19
23
  }
20
24
  //# sourceMappingURL=dialog.props.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmDialogProps","constructor","arguments","_defineProperty"],"sources":["dialog.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmDialogProps extends BaseProps {\n animation: string = null as any;\n show? = false;\n children = null as any;\n closable?= true;\n dialogtype?='design-dialog';\n iconclass? = '';\n modal? = true;\n showheader? = true;\n title? = '';\n onOpened?: Function = null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBAC/B,IAAI;IAAAA,eAAA,eAChB,KAAK;IAAAA,eAAA,mBACF,IAAI;IAAAA,eAAA,mBACJ,IAAI;IAAAA,eAAA,qBACH,eAAe;IAAAA,eAAA,oBACd,EAAE;IAAAA,eAAA,gBACN,IAAI;IAAAA,eAAA,qBACC,IAAI;IAAAA,eAAA,gBACT,EAAE;IAAAA,eAAA,mBACW,IAAI;EAAA;AAC5B"}
1
+ {"version":3,"names":["BaseProps","WmDialogProps","constructor","arguments","_defineProperty"],"sources":["dialog.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmDialogProps extends BaseProps {\n animation: string = null as any;\n show? = false;\n children = null as any;\n closable?= true;\n dialogtype?='design-dialog';\n iconclass? = '';\n modal? = true;\n showheader? = true;\n title? = '';\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,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBAC/B,IAAI;IAAAA,eAAA,eAChB,KAAK;IAAAA,eAAA,mBACF,IAAI;IAAAA,eAAA,mBACJ,IAAI;IAAAA,eAAA,qBACH,eAAe;IAAAA,eAAA,oBACd,EAAE;IAAAA,eAAA,gBACN,IAAI;IAAAA,eAAA,qBACC,IAAI;IAAAA,eAAA,gBACT,EAAE;IAAAA,eAAA,mBACW,IAAI;IAAAA,eAAA,kBACP,IAAI;IAAAA,eAAA,qBACD,IAAI;IAAAA,eAAA,oBACL,IAAI;IAAAA,eAAA,qBACH,IAAI;EAAA;AAC5B"}
@@ -51,13 +51,22 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
51
51
  root: {
52
52
  alignSelf: 'flex-end',
53
53
  backgroundColor: 'transparent',
54
- paddingRight: 0,
55
- paddingTop: 0
54
+ borderRadius: 8,
55
+ paddingRight: 8,
56
+ paddingTop: 8,
57
+ paddingBottom: 8,
58
+ paddingLeft: 8,
59
+ minHeight: 0,
60
+ marginBottom: 22,
61
+ rippleColor: themeVariables.transparent
56
62
  },
57
63
  icon: {
58
64
  root: {
59
65
  alignItems: 'center'
60
66
  },
67
+ icon: {
68
+ paddingRight: 0
69
+ },
61
70
  text: {
62
71
  color: themeVariables.dialogCloseIconColor,
63
72
  fontSize: 14
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","minWidth","paddingTop","paddingBottom","paddingLeft","paddingRight","elevation","width","maxHeight","maxModalHeight","backgroundColor","dialogBackgroundColor","borderRadius","text","modal","modalContent","undefined","icon","alignSelf","fontFamily","baseFont","fontSize","fontWeight","color","dialogLabelColor","dialogIconColor","header","flexDirection","borderStyle","borderColor","dialogBorderColor","headerLabel","flex","justifyContent","alignItems","closeBtn","dialogCloseIconColor"],"sources":["dialog.styles.ts"],"sourcesContent":["import { ViewStyle } from 'react-native';\nimport BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport { WmButtonStyles } from '../../basic/button/button.styles';\n\nexport type WmDialogStyles = BaseStyles & {\n modal: ViewStyle,\n modalContent: ViewStyle,\n icon: WmIconStyles,\n closeBtn: WmButtonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-dialog';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmDialogStyles = defineStyles<WmDialogStyles>({\n root: {\n minWidth: 320,\n paddingTop: 24,\n paddingBottom: 24,\n paddingLeft: 24,\n paddingRight: 24,\n elevation: 6,\n width: '90%',\n maxHeight: themeVariables.maxModalHeight,\n backgroundColor: themeVariables.dialogBackgroundColor,\n borderRadius: 28\n },\n text: {},\n modal: {},\n modalContent: {\n width: undefined\n },\n icon: {\n root: {\n alignSelf: 'center',\n },\n text: {\n fontFamily: themeVariables.baseFont,\n fontSize: 24,\n fontWeight: '400',\n color : themeVariables.dialogLabelColor,\n },\n icon: {\n fontSize: 24,\n color: themeVariables.dialogIconColor\n }\n } as WmIconStyles,\n header: {\n flexDirection: 'row',\n borderStyle: 'solid',\n borderColor: themeVariables.dialogBorderColor\n },\n headerLabel: {\n flex: 1,\n flexDirection: 'row',\n justifyContent: 'flex-start',\n alignItems: 'center',\n paddingBottom: 16,\n },\n closeBtn: {\n root: {\n alignSelf: 'flex-end',\n backgroundColor: 'transparent',\n paddingRight: 0,\n paddingTop: 0\n },\n icon : {\n root: {\n alignItems: 'center'\n },\n text: {\n color: themeVariables.dialogCloseIconColor,\n fontSize: 14\n }\n }\n } as WmButtonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});"],"mappings":"AACA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAWxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACzCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAA6B,GAAGL,YAAY,CAAiB;IAC/DM,IAAI,EAAE;MACFC,QAAQ,EAAE,GAAG;MACbC,UAAU,EAAE,EAAE;MACdC,aAAa,EAAE,EAAE;MACjBC,W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;EAEFvB,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","minWidth","paddingTop","paddingBottom","paddingLeft","paddingRight","elevation","width","maxHeight","maxModalHeight","backgroundColor","dialogBackgroundColor","borderRadius","text","modal","modalContent","undefined","icon","alignSelf","fontFamily","baseFont","fontSize","fontWeight","color","dialogLabelColor","dialogIconColor","header","flexDirection","borderStyle","borderColor","dialogBorderColor","headerLabel","flex","justifyContent","alignItems","closeBtn","minHeight","marginBottom","rippleColor","transparent","dialogCloseIconColor"],"sources":["dialog.styles.ts"],"sourcesContent":["import { ViewStyle } from 'react-native';\nimport BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport { WmButtonStyles } from '../../basic/button/button.styles';\n\nexport type WmDialogStyles = BaseStyles & {\n modal: ViewStyle,\n modalContent: ViewStyle,\n icon: WmIconStyles,\n closeBtn: WmButtonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-dialog';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmDialogStyles = defineStyles<WmDialogStyles>({\n root: {\n minWidth: 320,\n paddingTop: 24,\n paddingBottom: 24,\n paddingLeft: 24,\n paddingRight: 24,\n elevation: 6,\n width: '90%',\n maxHeight: themeVariables.maxModalHeight,\n backgroundColor: themeVariables.dialogBackgroundColor,\n borderRadius: 28,\n },\n text: {},\n modal: {},\n modalContent: {\n width: undefined\n },\n icon: {\n root: {\n alignSelf: 'center',\n },\n text: {\n fontFamily: themeVariables.baseFont,\n fontSize: 24,\n fontWeight: '400',\n color : themeVariables.dialogLabelColor,\n },\n icon: {\n fontSize: 24,\n color: themeVariables.dialogIconColor\n }\n } as WmIconStyles,\n header: {\n flexDirection: 'row',\n borderStyle: 'solid',\n borderColor: themeVariables.dialogBorderColor\n },\n headerLabel: {\n flex: 1,\n flexDirection: 'row',\n justifyContent: 'flex-start',\n alignItems: 'center',\n paddingBottom: 16,\n },\n closeBtn: {\n root: {\n alignSelf: 'flex-end',\n backgroundColor: 'transparent',\n borderRadius: 8,\n paddingRight: 8,\n paddingTop: 8,\n paddingBottom: 8,\n paddingLeft: 8,\n minHeight: 0,\n marginBottom: 22,\n rippleColor: themeVariables.transparent\n },\n icon : {\n root: {\n alignItems: 'center',\n },\n icon: {\n paddingRight: 0\n },\n text: {\n color: themeVariables.dialogCloseIconColor,\n fontSize: 14\n }\n }\n } as WmButtonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});"],"mappings":"AACA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAWxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACzCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAA6B,GAAGL,YAAY,CAAiB;IAC/DM,IAAI,EAAE;MACFC,QAAQ,EAAE,GAAG;MACbC,UAAU,EAAE,EAAE;MACdC,aAAa,EAAE,EAAE;MACjBC,WAAW,EAAE,EAAE;MACfC,YAAY,EAAE,EAAE;MAChBC,SAAS,EAAE,CAAC;MACZC,KAAK,EAAE,KAAK;MACZC,SAAS,EAAEX,cAAc,CAACY,cAAc;MACxCC,eAAe,EAAEb,cAAc,CAACc,qBAAqB;MACrDC,YAAY,EAAE;IAClB,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,KAAK,EAAE,CAAC,CAAC;IACTC,YAAY,EAAE;MACVR,KAAK,EAAES;IACX,CAAC;IACDC,IAAI,EAAE;MACFjB,IAAI,EAAE;QACFkB,SAAS,EAAE;MACf,CAAC;MACDL,IAAI,EAAE;QACFM,UAAU,EAAEtB,cAAc,CAACuB,QAAQ;QACnCC,QAAQ,EAAE,EAAE;QACZC,UAAU,EAAE,KAAK;QACjBC,KAAK,EAAG1B,cAAc,CAAC2B;MAC3B,CAAC;MACDP,IAAI,EAAE;QACFI,QAAQ,EAAE,EAAE;QACZE,KAAK,EAAE1B,cAAc,CAAC4B;MAC1B;IACJ,CAAiB;IACjBC,MAAM,EAAE;MACJC,aAAa,EAAE,KAAK;MACpBC,WAAW,EAAE,OAAO;MACpBC,WAAW,EAAEhC,cAAc,CAACiC;IAChC,CAAC;IACDC,WAAW,EAAE;MACTC,IAAI,EAAE,CAAC;MACPL,aAAa,EAAE,KAAK;MACpBM,cAAc,EAAE,YAAY;MAC5BC,UAAU,EAAE,QAAQ;MACpB/B,aAAa,EAAE;IACnB,CAAC;IACDgC,QAAQ,EAAE;MACNnC,IAAI,EAAE;QACFkB,SAAS,EAAE,UAAU;QACrBR,eAAe,EAAE,aAAa;QAC9BE,YAAY,EAAE,CAAC;QACfP,YAAY,EAAE,CAAC;QACfH,UAAU,EAAE,CAAC;QACbC,aAAa,EAAE,CAAC;QAChBC,WAAW,EAAE,CAAC;QACdgC,SAAS,EAAE,CAAC;QACZC,YAAY,EAAE,EAAE;QAChBC,WAAW,EAAEzC,cAAc,CAAC0C;MAChC,CAAC;MACDtB,IAAI,EAAG;QACHjB,IAAI,EAAE;UACFkC,UAAU,EAAE;QAChB,CAAC;QACDjB,IAAI,EAAE;UACFZ,YAAY,EAAE;QAClB,CAAC;QACDQ,IAAI,EAAE;UACFU,KAAK,EAAE1B,cAAc,CAAC2C,oBAAoB;UAC1CnB,QAAQ,EAAE;QACd;MACJ;IACJ;EACJ,CAAC,CAAC;EAEFvB,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC9C,CAAC,CAAC"}
@@ -13,6 +13,10 @@ export default class WmDialogcontent extends BaseComponent {
13
13
  contentContainerStyle: [this.styles.root, {
14
14
  maxHeight: undefined
15
15
  }],
16
+ onScroll: event => {
17
+ this.notify('scroll', [event]);
18
+ },
19
+ scrollEventThrottle: 48,
16
20
  style: {
17
21
  maxHeight: this.styles.root.maxHeight
18
22
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","ScrollView","BaseComponent","BaseComponentState","WmDialogcontentProps","DEFAULT_CLASS","WmDialogcontentState","WmDialogcontent","constructor","props","renderWidget","createElement","contentContainerStyle","styles","root","maxHeight","undefined","style","_background","children"],"sources":["dialogcontent.component.tsx"],"sourcesContent":["import React from 'react';\nimport { ScrollView } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmDialogcontentProps from './dialogcontent.props';\nimport { DEFAULT_CLASS, WmDialogcontentStyles } from './dialogcontent.styles';\n\nexport class WmDialogcontentState extends BaseComponentState<WmDialogcontentProps> {}\n\nexport default class WmDialogcontent extends BaseComponent<WmDialogcontentProps, WmDialogcontentState, WmDialogcontentStyles> {\n\n constructor(props: WmDialogcontentProps) {\n super(props, DEFAULT_CLASS, new WmDialogcontentProps());\n }\n\n renderWidget(props: WmDialogcontentProps) {\n return (<ScrollView\n contentContainerStyle={[this.styles.root, {maxHeight: undefined}]}\n style={{maxHeight: this.styles.root.maxHeight}}>\n {this._background}\n {props.children}\n </ScrollView>);\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,oBAAoB,MAAM,uBAAuB;AACxD,SAASC,aAAa,QAA+B,wBAAwB;AAE7E,OAAO,MAAMC,oBAAoB,SAASH,kBAAkB,CAAuB;AAEnF,eAAe,MAAMI,eAAe,SAASL,aAAa,CAAoE;EAE5HM,WAAWA,CAACC,KAA2B,EAAE;IACvC,KAAK,CAACA,KAAK,EAAEJ,aAAa,EAAE,IAAID,oBAAoB,CAAC,CAAC,CAAC;EACzD;EAEAM,YAAYA,CAACD,KAA2B,EAAE;IACxC,oBAAQT,KAAA,CAAAW,aAAA,CAACV,UAAU;MACjBW,qBAAqB,EAAE,CAAC,IAAI,CAACC,MAAM,CAACC,IAAI,EAAE;QAACC,SAAS,EAAEC;MAAS,CAAC,CAAE;MAClEC,KAAK,EAAE;QAACF,SAAS,EAAE,IAAI,CAACF,MAAM,CAACC,IAAI,CAACC;MAAS;IAAE,GAC5C,IAAI,CAACG,WAAW,EAChBT,KAAK,CAACU,QACC,CAAC;EACf;AACF"}
1
+ {"version":3,"names":["React","ScrollView","BaseComponent","BaseComponentState","WmDialogcontentProps","DEFAULT_CLASS","WmDialogcontentState","WmDialogcontent","constructor","props","renderWidget","createElement","contentContainerStyle","styles","root","maxHeight","undefined","onScroll","event","notify","scrollEventThrottle","style","_background","children"],"sources":["dialogcontent.component.tsx"],"sourcesContent":["import React from 'react';\nimport { ScrollView } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmDialogcontentProps from './dialogcontent.props';\nimport { DEFAULT_CLASS, WmDialogcontentStyles } from './dialogcontent.styles';\n\nexport class WmDialogcontentState extends BaseComponentState<WmDialogcontentProps> {}\n\nexport default class WmDialogcontent extends BaseComponent<WmDialogcontentProps, WmDialogcontentState, WmDialogcontentStyles> {\n\n constructor(props: WmDialogcontentProps) {\n super(props, DEFAULT_CLASS, new WmDialogcontentProps());\n }\n\n renderWidget(props: WmDialogcontentProps) {\n return (<ScrollView\n contentContainerStyle={[this.styles.root, {maxHeight: undefined}]}\n onScroll={(event) => {this.notify('scroll', [event])}}\n scrollEventThrottle={48}\n style={{maxHeight: this.styles.root.maxHeight}}>\n {this._background}\n {props.children}\n </ScrollView>);\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,oBAAoB,MAAM,uBAAuB;AACxD,SAASC,aAAa,QAA+B,wBAAwB;AAE7E,OAAO,MAAMC,oBAAoB,SAASH,kBAAkB,CAAuB;AAEnF,eAAe,MAAMI,eAAe,SAASL,aAAa,CAAoE;EAE5HM,WAAWA,CAACC,KAA2B,EAAE;IACvC,KAAK,CAACA,KAAK,EAAEJ,aAAa,EAAE,IAAID,oBAAoB,CAAC,CAAC,CAAC;EACzD;EAEAM,YAAYA,CAACD,KAA2B,EAAE;IACxC,oBAAQT,KAAA,CAAAW,aAAA,CAACV,UAAU;MACjBW,qBAAqB,EAAE,CAAC,IAAI,CAACC,MAAM,CAACC,IAAI,EAAE;QAACC,SAAS,EAAEC;MAAS,CAAC,CAAE;MAClEC,QAAQ,EAAGC,KAAK,IAAK;QAAC,IAAI,CAACC,MAAM,CAAC,QAAQ,EAAE,CAACD,KAAK,CAAC,CAAC;MAAA,CAAE;MACtDE,mBAAmB,EAAE,EAAG;MACxBC,KAAK,EAAE;QAACN,SAAS,EAAE,IAAI,CAACF,MAAM,CAACC,IAAI,CAACC;MAAS;IAAE,GAC5C,IAAI,CAACO,WAAW,EAChBb,KAAK,CAACc,QACC,CAAC;EACf;AACF"}
@@ -22,6 +22,10 @@ export default class BaseDatasetProps extends BaseProps {
22
22
  _defineProperty(this, "displayimagesrc", void 0);
23
23
  _defineProperty(this, "iconclass", void 0);
24
24
  _defineProperty(this, "triggerValidation", void 0);
25
+ _defineProperty(this, "accessibilitylabel", undefined);
26
+ _defineProperty(this, "hint", undefined);
27
+ _defineProperty(this, "accessibilityrole", "none");
28
+ _defineProperty(this, "accessibilitylabelledby", undefined);
25
29
  }
26
30
  }
27
31
  //# sourceMappingURL=basedataset.props.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","BaseDatasetProps","constructor","arguments","_defineProperty"],"sources":["basedataset.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class BaseDatasetProps extends BaseProps {\n dataset: any;\n datavalue?: any;\n displayfield: any;\n datafield: any;\n displayexpression: any;\n getDisplayExpression: any;\n groupby?: any;\n match?: any;\n orderby?: any;\n readonly: boolean = null as any;\n dateformat?: any;\n onFieldChange?: any;\n displaylabel?: any;\n displayValue?: any;\n displayimagesrc: any;\n iconclass?: any;\n triggerValidation?: any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,gBAAgB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA,mBAUlC,IAAI;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;EAAA;AAQ1B"}
1
+ {"version":3,"names":["BaseProps","BaseDatasetProps","constructor","arguments","_defineProperty","undefined"],"sources":["basedataset.props.ts"],"sourcesContent":["import {AccessibilityRole} from \"react-native\";\nimport { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class BaseDatasetProps extends BaseProps {\n dataset: any;\n datavalue?: any;\n displayfield: any;\n datafield: any;\n displayexpression: any;\n getDisplayExpression: any;\n groupby?: any;\n match?: any;\n orderby?: any;\n readonly: boolean = null as any;\n dateformat?: any;\n onFieldChange?: any;\n displaylabel?: any;\n displayValue?: any;\n displayimagesrc: any;\n iconclass?: any;\n triggerValidation?: any;\n accessibilitylabel?: string = undefined;\n hint?: string = undefined;\n accessibilityrole?: AccessibilityRole = \"none\";\n accessibilitylabelledby?: string = undefined;\n}\n"],"mappings":";;;AACA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,gBAAgB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA,mBAUlC,IAAI;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA,6BAQMC,SAAS;IAAAD,eAAA,eACvBC,SAAS;IAAAD,eAAA,4BACe,MAAM;IAAAA,eAAA,kCACXC,SAAS;EAAA;AAC9C"}
@@ -113,13 +113,13 @@ export class BaseInputComponent extends BaseComponent {
113
113
  onBlur(event) {
114
114
  Injector.FOCUSED_ELEMENT.remove();
115
115
  this.isTouched = true;
116
- let newVal = event.target.value || this.state.textValue;
116
+ let newVal = this.state.textValue;
117
117
  let oldVal = this.state.props.datavalue || '';
118
118
  this.validate(newVal);
119
- if (newVal === '') {
119
+ if (newVal === '' || newVal == undefined) {
120
120
  setTimeout(() => {
121
121
  this.props.triggerValidation && this.props.triggerValidation();
122
- });
122
+ }, 10);
123
123
  }
124
124
  if (this.state.props.updateon === 'blur') {
125
125
  if (oldVal !== newVal) {