@wavemaker/app-rn-runtime 11.5.2-next.141000 → 11.5.2-next.141006

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 (245) hide show
  1. app-rn-runtime/actions/notification-action.js +0 -1
  2. app-rn-runtime/actions/notification-action.js.map +1 -1
  3. app-rn-runtime/components/advanced/carousel/carousel.component.js +11 -9
  4. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  5. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  6. app-rn-runtime/components/advanced/webview/webview.component.js +27 -11
  7. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  8. app-rn-runtime/components/advanced/webview/webview.props.js +0 -1
  9. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  10. app-rn-runtime/components/basic/anchor/anchor.component.js +19 -6
  11. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  12. app-rn-runtime/components/basic/anchor/anchor.props.js +4 -0
  13. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  14. app-rn-runtime/components/basic/anchor/anchor.styles.js +1 -0
  15. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  16. app-rn-runtime/components/basic/button/button.component.js +31 -6
  17. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  18. app-rn-runtime/components/basic/button/button.props.js +4 -0
  19. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  20. app-rn-runtime/components/basic/button/button.styles.js +4 -5
  21. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  22. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js +13 -5
  23. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  24. app-rn-runtime/components/basic/icon/icon.component.js +61 -11
  25. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  26. app-rn-runtime/components/basic/icon/icon.props.js +4 -0
  27. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  28. app-rn-runtime/components/basic/icon/icon.styles.js +2 -1
  29. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  30. app-rn-runtime/components/basic/label/label.component.js +38 -26
  31. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  32. app-rn-runtime/components/basic/label/label.props.js +1 -0
  33. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  34. app-rn-runtime/components/basic/label/label.styles.js +8 -2
  35. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  36. app-rn-runtime/components/basic/message/message.styles.js +3 -1
  37. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  38. app-rn-runtime/components/basic/search/search.styles.js +4 -4
  39. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  40. app-rn-runtime/components/chart/area-chart/area-chart.component.js +44 -16
  41. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  42. app-rn-runtime/components/chart/area-chart/area-chart.props.js +1 -0
  43. app-rn-runtime/components/chart/area-chart/area-chart.props.js.map +1 -1
  44. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js +60 -17
  45. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  46. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js +1 -2
  47. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  48. app-rn-runtime/components/chart/basechart.component.js +79 -8
  49. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  50. app-rn-runtime/components/chart/basechart.props.js +11 -2
  51. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  52. app-rn-runtime/components/chart/basechart.styles.js +21 -2
  53. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  54. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js +25 -3
  55. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  56. app-rn-runtime/components/chart/bubble-chart/bubble-chart.props.js +9 -1
  57. app-rn-runtime/components/chart/bubble-chart/bubble-chart.props.js.map +1 -1
  58. app-rn-runtime/components/chart/line-chart/line-chart.component.js +44 -19
  59. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  60. app-rn-runtime/components/chart/line-chart/line-chart.props.js +1 -0
  61. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  62. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +2 -1
  63. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  64. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js +53 -10
  65. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js.map +1 -1
  66. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js +2 -0
  67. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js.map +1 -1
  68. app-rn-runtime/components/chart/staticdata.js +215 -0
  69. app-rn-runtime/components/chart/staticdata.js.map +1 -0
  70. app-rn-runtime/components/container/container.component.js +11 -2
  71. app-rn-runtime/components/container/container.component.js.map +1 -1
  72. app-rn-runtime/components/container/container.props.js +1 -0
  73. app-rn-runtime/components/container/container.props.js.map +1 -1
  74. app-rn-runtime/components/container/panel/panel.component.js +6 -2
  75. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  76. app-rn-runtime/components/container/panel/panel.props.js +4 -0
  77. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  78. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +1 -1
  79. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  80. app-rn-runtime/components/container/tabs/tabs.component.js +3 -2
  81. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  82. app-rn-runtime/components/container/wizard/wizard.component.js +37 -17
  83. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  84. app-rn-runtime/components/container/wizard/wizard.styles.js +19 -3
  85. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  86. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +27 -2
  87. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  88. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js +3 -0
  89. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  90. app-rn-runtime/components/data/card/card.component.js +7 -3
  91. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  92. app-rn-runtime/components/data/card/card.props.js +4 -0
  93. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  94. app-rn-runtime/components/data/form/form-field/form-field.component.js +6 -5
  95. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  96. app-rn-runtime/components/data/list/list.component.js +58 -6
  97. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  98. app-rn-runtime/components/data/list/list.props.js +1 -0
  99. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  100. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js +13 -6
  101. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js.map +1 -1
  102. app-rn-runtime/components/device/camera/camera.styles.js +11 -4
  103. app-rn-runtime/components/device/camera/camera.styles.js.map +1 -1
  104. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js +4 -0
  105. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  106. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js +4 -0
  107. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  108. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js +2 -1
  109. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -1
  110. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js +4 -0
  111. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  112. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js +4 -0
  113. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  114. app-rn-runtime/components/dialogs/dialog/dialog.component.js +7 -3
  115. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  116. app-rn-runtime/components/dialogs/dialog/dialog.props.js +4 -0
  117. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  118. app-rn-runtime/components/dialogs/dialog/dialog.styles.js +10 -2
  119. app-rn-runtime/components/dialogs/dialog/dialog.styles.js.map +1 -1
  120. app-rn-runtime/components/input/baseinput/baseinput.component.js +6 -2
  121. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  122. app-rn-runtime/components/input/basenumber/basenumber.component.js +12 -6
  123. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  124. app-rn-runtime/components/input/checkbox/checkbox.component.js +5 -5
  125. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  126. app-rn-runtime/components/input/checkbox/checkbox.styles.js +35 -5
  127. app-rn-runtime/components/input/checkbox/checkbox.styles.js.map +1 -1
  128. app-rn-runtime/components/input/checkboxset/checkboxset.component.js +6 -6
  129. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  130. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js +40 -10
  131. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +1 -1
  132. app-rn-runtime/components/input/composite/composite.component.js +1 -1
  133. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  134. app-rn-runtime/components/input/composite/composite.props.js +1 -1
  135. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  136. app-rn-runtime/components/input/currency/currency.component.js +17 -2
  137. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  138. app-rn-runtime/components/input/currency/currency.props.js +1 -0
  139. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  140. app-rn-runtime/components/input/currency/currency.styles.js +19 -1
  141. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  142. app-rn-runtime/components/input/epoch/base-datetime.component.js +83 -8
  143. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  144. app-rn-runtime/components/input/epoch/date/date.component.js +8 -0
  145. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  146. app-rn-runtime/components/input/epoch/date/date.styles.js +16 -0
  147. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  148. app-rn-runtime/components/input/epoch/datetime/datetime.component.js +8 -0
  149. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  150. app-rn-runtime/components/input/epoch/datetime/datetime.props.js +1 -0
  151. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  152. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +49 -1
  153. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  154. app-rn-runtime/components/input/epoch/time/time.component.js +8 -0
  155. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  156. app-rn-runtime/components/input/epoch/time/time.styles.js +16 -0
  157. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  158. app-rn-runtime/components/input/fileupload/fileupload.styles.js +1 -1
  159. app-rn-runtime/components/input/fileupload/fileupload.styles.js.map +1 -1
  160. app-rn-runtime/components/input/number/number.component.js +11 -0
  161. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  162. app-rn-runtime/components/input/number/number.props.js +1 -0
  163. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  164. app-rn-runtime/components/input/number/number.styles.js +17 -0
  165. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  166. app-rn-runtime/components/input/radioset/radioset.component.js +4 -2
  167. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  168. app-rn-runtime/components/input/radioset/radioset.styles.js +2 -1
  169. app-rn-runtime/components/input/radioset/radioset.styles.js.map +1 -1
  170. app-rn-runtime/components/input/select/select.styles.js +5 -1
  171. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  172. app-rn-runtime/components/input/slider/slider.styles.js +3 -3
  173. app-rn-runtime/components/input/slider/slider.styles.js.map +1 -1
  174. app-rn-runtime/components/input/switch/switch.component.js +3 -0
  175. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  176. app-rn-runtime/components/input/switch/switch.styles.js +10 -5
  177. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  178. app-rn-runtime/components/input/text/text.component.js +11 -0
  179. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  180. app-rn-runtime/components/input/text/text.props.js +1 -0
  181. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  182. app-rn-runtime/components/input/text/text.styles.js +17 -0
  183. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  184. app-rn-runtime/components/input/textarea/textarea.component.js +11 -0
  185. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  186. app-rn-runtime/components/input/textarea/textarea.props.js +1 -0
  187. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  188. app-rn-runtime/components/input/textarea/textarea.styles.js +17 -0
  189. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  190. app-rn-runtime/components/input/toggle/toggle.component.js +43 -5
  191. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  192. app-rn-runtime/components/input/toggle/toggle.styles.js +5 -12
  193. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  194. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +6 -1
  195. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  196. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js +1 -0
  197. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  198. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js +6 -0
  199. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  200. app-rn-runtime/components/navigation/basenav/basenav.component.js +1 -2
  201. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  202. app-rn-runtime/components/navigation/menu/menu.styles.js +8 -5
  203. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  204. app-rn-runtime/components/navigation/popover/popover.component.js +4 -0
  205. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  206. app-rn-runtime/components/navigation/popover/popover.props.js +4 -0
  207. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  208. app-rn-runtime/components/navigation/popover/popover.styles.js +8 -2
  209. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  210. app-rn-runtime/components/page/page-content/page-content.component.js +11 -3
  211. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  212. app-rn-runtime/components/page/tabbar/curve.js +84 -0
  213. app-rn-runtime/components/page/tabbar/curve.js.map +1 -0
  214. app-rn-runtime/components/page/tabbar/tabbar.component.js +42 -8
  215. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  216. app-rn-runtime/components/page/tabbar/tabbar.styles.js +82 -16
  217. app-rn-runtime/components/page/tabbar/tabbar.styles.js.map +1 -1
  218. app-rn-runtime/core/base.component.js +5 -1
  219. app-rn-runtime/core/base.component.js.map +1 -1
  220. app-rn-runtime/core/components/floatinglabel.component.js +45 -0
  221. app-rn-runtime/core/components/floatinglabel.component.js.map +1 -0
  222. app-rn-runtime/core/components/textinput.component.js +25 -2
  223. app-rn-runtime/core/components/textinput.component.js.map +1 -1
  224. app-rn-runtime/core/tappable.component.js +37 -9
  225. app-rn-runtime/core/tappable.component.js.map +1 -1
  226. app-rn-runtime/core/toast.service.js.map +1 -1
  227. app-rn-runtime/gestures/swipe.animation.js +5 -2
  228. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  229. app-rn-runtime/package.json +5 -3
  230. app-rn-runtime/runtime/App.js +8 -4
  231. app-rn-runtime/runtime/App.js.map +1 -1
  232. app-rn-runtime/runtime/base-fragment.component.js +14 -3
  233. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  234. app-rn-runtime/runtime/services/app-i18n.service.js +7 -0
  235. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  236. app-rn-runtime/runtime/services/webprocess.service.js +0 -1
  237. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  238. app-rn-runtime/styles/theme.js +36 -0
  239. app-rn-runtime/styles/theme.js.map +1 -1
  240. app-rn-runtime/styles/theme.variables.js +29 -3
  241. app-rn-runtime/styles/theme.variables.js.map +1 -1
  242. app-rn-runtime/variables/model-variable.js +2 -1
  243. app-rn-runtime/variables/model-variable.js.map +1 -1
  244. app-rn-runtime/variables/service-variable.js +1 -0
  245. app-rn-runtime/variables/service-variable.js.map +1 -1
@@ -5,10 +5,10 @@ function _toPrimitive(input, hint) { if (typeof input !== "object" || input ===
5
5
  import React from 'react';
6
6
  import { Text, View, TouchableOpacity } from 'react-native';
7
7
  import { find, forEach, isEqual } from 'lodash';
8
- import { Checkbox } from 'react-native-paper';
9
8
  import WmCheckboxsetProps from './checkboxset.props';
10
9
  import { DEFAULT_CLASS } from './checkboxset.styles';
11
10
  import { BaseDatasetComponent, BaseDatasetState } from '@wavemaker/app-rn-runtime/components/input/basedataset/basedataset.component';
11
+ import WmIcon from '../../basic/icon/icon.component';
12
12
  export class WmCheckboxsetState extends BaseDatasetState {
13
13
  constructor() {
14
14
  super(...arguments);
@@ -48,15 +48,15 @@ export default class WmCheckboxset extends BaseDatasetComponent {
48
48
  const props = this.state.props;
49
49
  const displayText = item.displayexp || item.displayfield;
50
50
  return /*#__PURE__*/React.createElement(TouchableOpacity, _extends({}, this.getTestPropsForAction(index + ''), {
51
- style: this.styles.checkboxHead,
51
+ style: this.styles.item,
52
52
  onPress: this.onPress.bind(this, item),
53
53
  key: item.key
54
- }), /*#__PURE__*/React.createElement(Checkbox.Android, {
55
- status: item.selected ? 'checked' : 'unchecked',
56
- color: this.styles.text.color,
54
+ }), /*#__PURE__*/React.createElement(WmIcon, {
55
+ iconclass: "wi wi-check",
56
+ styles: item.selected ? this.styles.checkicon : this.styles.uncheckicon,
57
57
  disabled: props.readonly || props.disabled
58
58
  }), /*#__PURE__*/React.createElement(Text, _extends({}, this.getTestPropsForLabel(index + ''), {
59
- style: this.styles.checkboxLabel
59
+ style: this.styles.text
60
60
  }), displayText));
61
61
  }
62
62
  computeDisplayValue() {
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","View","TouchableOpacity","find","forEach","isEqual","Checkbox","WmCheckboxsetProps","DEFAULT_CLASS","BaseDatasetComponent","BaseDatasetState","WmCheckboxsetState","constructor","arguments","_defineProperty","WmCheckboxset","props","onPress","item","invokeEventCallback","proxy","state","disabled","readonly","selected","selectedValue","selectedItem","dataItems","d","key","oldValue","datavalue","push","datafield","validate","updateState","computeDisplayValue","undefined","renderChild","index","displayText","displayexp","displayfield","createElement","_extends","getTestPropsForAction","style","styles","checkboxHead","bind","Android","status","color","text","getTestPropsForLabel","checkboxLabel","displayValue","filter","map","updateDatavalue","value","Promise","resolve","renderGroupby","groupedData","length","groupObj","groupHeaderTitle","renderCheckboxses","data","items","renderWidget","root","groupby"],"sources":["checkboxset.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View, TouchableOpacity } from 'react-native';\nimport { find, forEach, isEqual } from 'lodash';\nimport { Checkbox } from 'react-native-paper';\n\nimport WmCheckboxsetProps from './checkboxset.props';\nimport {\n DEFAULT_CLASS,\n \n WmCheckboxsetStyles,\n} from './checkboxset.styles';\nimport {\n BaseDatasetComponent,\n BaseDatasetState,\n} from '@wavemaker/app-rn-runtime/components/input/basedataset/basedataset.component';\nimport WmSkeleton, { createSkeleton } from '../../basic/skeleton/skeleton.component';\n\nexport class WmCheckboxsetState extends BaseDatasetState<WmCheckboxsetProps> {\n isValid: boolean = true;\n}\n\nexport default class WmCheckboxset extends BaseDatasetComponent<WmCheckboxsetProps, WmCheckboxsetState, WmCheckboxsetStyles> {\n constructor(props: WmCheckboxsetProps) {\n super(props, DEFAULT_CLASS, new WmCheckboxsetProps());\n }\n\n onPress(item: any) {\n this.invokeEventCallback('onTap', [null, this.proxy]);\n if (this.state.props.disabled || this.state.props.readonly) {\n return;\n }\n item.selected = !item.selected;\n const selectedValue: any = [];\n const selectedItem = find(this.state.dataItems, d => isEqual(d.key, item.key));\n const oldValue = this.state.props.datavalue;\n selectedItem.selected = item.selected;\n forEach(this.state.dataItems, (item) => {\n if (item.selected) {\n selectedValue.push(item.datafield);\n }\n });\n this.validate(selectedValue);\n this.updateState({ props: { datavalue: selectedValue }} as WmCheckboxsetState,\n () => {\n this.computeDisplayValue();\n this.invokeEventCallback('onChange', [ undefined, this.proxy, selectedValue, oldValue ]);\n });\n }\n\n renderChild(item: any, index: any) {\n const props = this.state.props;\n const displayText = item.displayexp || item.displayfield;\n return (\n <TouchableOpacity {...this.getTestPropsForAction(index + '')} style={this.styles.checkboxHead} onPress={this.onPress.bind(this, item)} key={item.key}>\n <Checkbox.Android status={item.selected ? 'checked' : 'unchecked'} color={this.styles.text.color as string} disabled={props.readonly || props.disabled}/>\n <Text {...this.getTestPropsForLabel(index + '')} style={this.styles.checkboxLabel}>{displayText}</Text>\n </TouchableOpacity>)\n }\n\n computeDisplayValue() {\n this.updateState({\n props: {\n displayValue: ((this.state.dataItems || [] as any)\n .filter((item: any) => item.selected)\n .map((item: any) => item.displayexp || item.displayfield)) || ''\n }\n } as WmCheckboxsetState);\n }\n\n updateDatavalue(value: any) {\n this.updateState({ props: { datavalue: value }} as WmCheckboxsetState);\n return Promise.resolve();\n }\n\n renderGroupby() {\n const groupedData = this.state.groupedData;\n return (\n <View>\n {groupedData && groupedData.length\n ? groupedData.map((groupObj: any, index: any) => {\n return(\n <View key={groupObj.key}>\n <Text style={this.styles.groupHeaderTitle}>{groupObj.key}</Text>\n {this.renderCheckboxses(groupObj.data)}\n </View>)\n })\n : null}\n </View>\n );\n }\n\n renderCheckboxses(items: any) {\n const props = this.state.props;\n return(<View>\n {items && items.length\n ? items.map((item: any, index: any) => this.renderChild(item, index))\n : null}\n </View>)\n }\n renderWidget(props: WmCheckboxsetProps) {\n const items = this.state.dataItems;\n return (\n <View style={this.styles.root}>\n {props.groupby && this.renderGroupby()}\n {!props.groupby && this.renderCheckboxses(items)}\n </View>\n );\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,QAAQ,cAAc;AAC3D,SAASC,IAAI,EAAEC,OAAO,EAAEC,OAAO,QAAQ,QAAQ;AAC/C,SAASC,QAAQ,QAAQ,oBAAoB;AAE7C,OAAOC,kBAAkB,MAAM,qBAAqB;AACpD,SACEC,aAAa,QAGR,sBAAsB;AAC7B,SACEC,oBAAoB,EACpBC,gBAAgB,QACX,8EAA8E;AAGrF,OAAO,MAAMC,kBAAkB,SAASD,gBAAgB,CAAqB;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,kBACxD,IAAI;EAAA;AACzB;AAEA,eAAe,MAAMC,aAAa,SAASN,oBAAoB,CAA8D;EAC3HG,WAAWA,CAACI,KAAyB,EAAE;IACrC,KAAK,CAACA,KAAK,EAAER,aAAa,EAAE,IAAID,kBAAkB,CAAC,CAAC,CAAC;EACvD;EAEAU,OAAOA,CAACC,IAAS,EAAE;IACjB,IAAI,CAACC,mBAAmB,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,CAACC,KAAK,CAAC,CAAC;IACrD,IAAI,IAAI,CAACC,KAAK,CAACL,KAAK,CAACM,QAAQ,IAAI,IAAI,CAACD,KAAK,CAACL,KAAK,CAACO,QAAQ,EAAE;MAC1D;IACF;IACAL,IAAI,CAACM,QAAQ,GAAG,CAACN,IAAI,CAACM,QAAQ;IAC9B,MAAMC,aAAkB,GAAG,EAAE;IAC7B,MAAMC,YAAY,GAAGvB,IAAI,CAAC,IAAI,CAACkB,KAAK,CAACM,SAAS,EAAEC,CAAC,IAAIvB,OAAO,CAACuB,CAAC,CAACC,GAAG,EAAEX,IAAI,CAACW,GAAG,CAAC,CAAC;IAC9E,MAAMC,QA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AI;QAAC8C,KAAK,EAAE,IAAI,CAACC,MAAM,CAACoB;MAAiB,GAAED,QAAQ,CAACrC,GAAU,CAAC,EAC/D,IAAI,CAACuC,iBAAiB,CAACF,QAAQ,CAACG,IAAI,CACjC,CAAC;IACX,CAAC,CAAC,GACA,IACA,CAAC;EAEX;EAEAD,iBAAiBA,CAACE,KAAU,EAAE;IAC5B,MAAMtD,KAAK,GAAG,IAAI,CAACK,KAAK,CAACL,KAAK;IAC9B,oBAAOjB,KAAA,CAAA4C,aAAA,CAAC1C,IAAI,QACTqE,KAAK,IAAIA,KAAK,CAACL,MAAM,GAClBK,KAAK,CAACZ,GAAG,CAAC,CAACxC,IAAS,EAAEqB,KAAU,KAAK,IAAI,CAACD,WAAW,CAACpB,IAAI,EAAEqB,KAAK,CAAC,CAAC,GACnE,IACA,CAAC;EACT;EACAgC,YAAYA,CAACvD,KAAyB,EAAE;IACtC,MAAMsD,KAAK,GAAG,IAAI,CAACjD,KAAK,CAACM,SAAS;IAClC,oBACE5B,KAAA,CAAA4C,aAAA,CAAC1C,IAAI;MAAC6C,KAAK,EAAE,IAAI,CAACC,MAAM,CAACyB;IAAK,GAC3BxD,KAAK,CAACyD,OAAO,IAAI,IAAI,CAACV,aAAa,CAAC,CAAC,EACrC,CAAC/C,KAAK,CAACyD,OAAO,IAAI,IAAI,CAACL,iBAAiB,CAACE,KAAK,CAC3C,CAAC;EAEX;AACF"}
1
+ {"version":3,"names":["React","Text","View","TouchableOpacity","find","forEach","isEqual","WmCheckboxsetProps","DEFAULT_CLASS","BaseDatasetComponent","BaseDatasetState","WmIcon","WmCheckboxsetState","constructor","arguments","_defineProperty","WmCheckboxset","props","onPress","item","invokeEventCallback","proxy","state","disabled","readonly","selected","selectedValue","selectedItem","dataItems","d","key","oldValue","datavalue","push","datafield","validate","updateState","computeDisplayValue","undefined","renderChild","index","displayText","displayexp","displayfield","createElement","_extends","getTestPropsForAction","style","styles","bind","iconclass","checkicon","uncheckicon","getTestPropsForLabel","text","displayValue","filter","map","updateDatavalue","value","Promise","resolve","renderGroupby","groupedData","length","groupObj","groupHeaderTitle","renderCheckboxses","data","items","renderWidget","root","groupby"],"sources":["checkboxset.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View, TouchableOpacity } from 'react-native';\nimport { find, forEach, isEqual } from 'lodash';\nimport { Checkbox } from 'react-native-paper';\n\nimport WmCheckboxsetProps from './checkboxset.props';\nimport {\n DEFAULT_CLASS,\n \n WmCheckboxsetStyles,\n} from './checkboxset.styles';\nimport {\n BaseDatasetComponent,\n BaseDatasetState,\n} from '@wavemaker/app-rn-runtime/components/input/basedataset/basedataset.component';\nimport WmSkeleton, { createSkeleton } from '../../basic/skeleton/skeleton.component';\nimport WmIcon from '../../basic/icon/icon.component';\n\nexport class WmCheckboxsetState extends BaseDatasetState<WmCheckboxsetProps> {\n isValid: boolean = true;\n}\n\nexport default class WmCheckboxset extends BaseDatasetComponent<WmCheckboxsetProps, WmCheckboxsetState, WmCheckboxsetStyles> {\n constructor(props: WmCheckboxsetProps) {\n super(props, DEFAULT_CLASS, new WmCheckboxsetProps());\n }\n\n onPress(item: any) {\n this.invokeEventCallback('onTap', [null, this.proxy]);\n if (this.state.props.disabled || this.state.props.readonly) {\n return;\n }\n item.selected = !item.selected;\n const selectedValue: any = [];\n const selectedItem = find(this.state.dataItems, d => isEqual(d.key, item.key));\n const oldValue = this.state.props.datavalue;\n selectedItem.selected = item.selected;\n forEach(this.state.dataItems, (item) => {\n if (item.selected) {\n selectedValue.push(item.datafield);\n }\n });\n this.validate(selectedValue);\n this.updateState({ props: { datavalue: selectedValue }} as WmCheckboxsetState,\n () => {\n this.computeDisplayValue();\n this.invokeEventCallback('onChange', [ undefined, this.proxy, selectedValue, oldValue ]);\n });\n }\n\n renderChild(item: any, index: any) {\n const props = this.state.props;\n const displayText = item.displayexp || item.displayfield;\n return (\n <TouchableOpacity {...this.getTestPropsForAction(index + '')}\n style={this.styles.item}\n onPress={this.onPress.bind(this, item)} key={item.key}>\n <WmIcon iconclass=\"wi wi-check\" styles={item.selected? this.styles.checkicon : this.styles.uncheckicon} disabled={props.readonly || props.disabled}/>\n <Text {...this.getTestPropsForLabel(index + '')} style={this.styles.text}>{displayText}</Text>\n </TouchableOpacity>)\n }\n\n computeDisplayValue() {\n this.updateState({\n props: {\n displayValue: ((this.state.dataItems || [] as any)\n .filter((item: any) => item.selected)\n .map((item: any) => item.displayexp || item.displayfield)) || ''\n }\n } as WmCheckboxsetState);\n }\n\n updateDatavalue(value: any) {\n this.updateState({ props: { datavalue: value }} as WmCheckboxsetState);\n return Promise.resolve();\n }\n\n renderGroupby() {\n const groupedData = this.state.groupedData;\n return (\n <View>\n {groupedData && groupedData.length\n ? groupedData.map((groupObj: any, index: any) => {\n return(\n <View key={groupObj.key}>\n <Text style={this.styles.groupHeaderTitle}>{groupObj.key}</Text>\n {this.renderCheckboxses(groupObj.data)}\n </View>)\n })\n : null}\n </View>\n );\n }\n\n renderCheckboxses(items: any) {\n const props = this.state.props;\n return(<View>\n {items && items.length\n ? items.map((item: any, index: any) => this.renderChild(item, index))\n : null}\n </View>)\n }\n renderWidget(props: WmCheckboxsetProps) {\n const items = this.state.dataItems;\n return (\n <View style={this.styles.root}>\n {props.groupby && this.renderGroupby()}\n {!props.groupby && this.renderCheckboxses(items)}\n </View>\n );\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,QAAQ,cAAc;AAC3D,SAASC,IAAI,EAAEC,OAAO,EAAEC,OAAO,QAAQ,QAAQ;AAG/C,OAAOC,kBAAkB,MAAM,qBAAqB;AACpD,SACEC,aAAa,QAGR,sBAAsB;AAC7B,SACEC,oBAAoB,EACpBC,gBAAgB,QACX,8EAA8E;AAErF,OAAOC,MAAM,MAAM,iCAAiC;AAEpD,OAAO,MAAMC,kBAAkB,SAASF,gBAAgB,CAAqB;EAAAG,YAAA;IAAA,SAAAC,SAAA;I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;EACA8B,YAAYA,CAACrD,KAAyB,EAAE;IACtC,MAAMoD,KAAK,GAAG,IAAI,CAAC/C,KAAK,CAACM,SAAS;IAClC,oBACE5B,KAAA,CAAA4C,aAAA,CAAC1C,IAAI;MAAC6C,KAAK,EAAE,IAAI,CAACC,MAAM,CAACuB;IAAK,GAC3BtD,KAAK,CAACuD,OAAO,IAAI,IAAI,CAACV,aAAa,CAAC,CAAC,EACrC,CAAC7C,KAAK,CAACuD,OAAO,IAAI,IAAI,CAACL,iBAAiB,CAACE,KAAK,CAC3C,CAAC;EAEX;AACF"}
@@ -5,7 +5,11 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
5
5
  const defaultStyles = defineStyles({
6
6
  root: {},
7
7
  text: {
8
- color: themeVariables.checkedColor
8
+ alignSelf: 'center',
9
+ fontFamily: themeVariables.baseFont,
10
+ fontSize: 16,
11
+ color: themeVariables.labelDefaultColor,
12
+ marginLeft: 8
9
13
  },
10
14
  groupHeaderTitle: {
11
15
  backgroundColor: themeVariables.groupHeadingBgColor,
@@ -15,28 +19,54 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
15
19
  lineHeight: 40,
16
20
  fontFamily: themeVariables.baseFont
17
21
  },
18
- checkboxHead: {
22
+ item: {
19
23
  flexDirection: 'row',
20
- alignContent: 'center'
21
- },
22
- checkboxLabel: {
23
- alignSelf: 'center',
24
- fontFamily: themeVariables.baseFont,
25
- fontSize: 16,
26
- color: themeVariables.labelDefaultColor
24
+ alignContent: 'center',
25
+ marginTop: 8
27
26
  },
28
27
  skeleton: {
29
28
  root: {
30
29
  width: '100%',
31
30
  height: 16
32
31
  }
32
+ },
33
+ checkicon: {
34
+ root: {
35
+ width: 20,
36
+ height: 20,
37
+ borderRadius: 4,
38
+ backgroundColor: themeVariables.primaryColor,
39
+ justifyContent: 'center',
40
+ alignItems: 'center',
41
+ borderColor: themeVariables.checkedBorderColor
42
+ },
43
+ text: {
44
+ fontSize: 18
45
+ },
46
+ icon: {
47
+ color: themeVariables.checkedIconColor,
48
+ padding: 0
49
+ }
50
+ },
51
+ uncheckicon: {
52
+ root: {
53
+ width: 20,
54
+ height: 20,
55
+ borderWidth: 2,
56
+ borderRadius: 4,
57
+ borderColor: themeVariables.uncheckedBorderColor
58
+ },
59
+ text: {},
60
+ icon: {
61
+ color: 'transparent'
62
+ }
33
63
  }
34
64
  });
35
65
  addStyle(DEFAULT_CLASS + '-disabled', '', {
36
66
  root: {
37
67
  opacity: 0.8
38
68
  },
39
- checkboxLabel: {
69
+ text: {
40
70
  color: themeVariables.checkedDisabledColor
41
71
  }
42
72
  });
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","color","checkedColor","groupHeaderTitle","backgroundColor","groupHeadingBgColor","fontSize","paddingLeft","paddingRight","lineHeight","fontFamily","baseFont","checkboxHead","flexDirection","alignContent","checkboxLabel","alignSelf","labelDefaultColor","skeleton","width","height","opacity","checkedDisabledColor"],"sources":["checkboxset.styles.ts"],"sourcesContent":["import BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmSkeletonStyles } from '../../basic/skeleton/skeleton.styles';\n\nexport type WmCheckboxsetStyles = BaseStyles & {\n groupHeaderTitle: AllStyle;\n checkboxHead: AllStyle;\n checkboxLabel: AllStyle;\n skeleton: WmSkeletonStyles;\n};\n\nexport const DEFAULT_CLASS = 'app-checkboxset';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmCheckboxsetStyles = defineStyles({\n root: {},\n text: {\n color: themeVariables.checkedColor\n },\n groupHeaderTitle: {\n backgroundColor: themeVariables.groupHeadingBgColor,\n fontSize: 16,\n paddingLeft: 8,\n paddingRight: 8,\n lineHeight: 40,\n fontFamily: themeVariables.baseFont\n } as AllStyle,\n checkboxHead: {\n flexDirection: 'row',\n alignContent: 'center',\n } as AllStyle,\n checkboxLabel: {\n alignSelf: 'center',\n fontFamily: themeVariables.baseFont,\n fontSize: 16,\n color: themeVariables.labelDefaultColor\n } as AllStyle,\n skeleton: {\n root: {\n width: '100%',\n height: 16\n }\n } as any as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n root: {\n opacity: 0.8\n },\n checkboxLabel : {\n color: themeVariables.checkedDisabledColor\n }\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAUxF,OAAO,MAAMC,aAAa,GAAG,iBAAiB;AAC9CF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAAkC,GAAGL,YAAY,CAAC;IACpDM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE;MACJC,KAAK,EAAEL,cAAc,CAACM;IACxB,CAAC;IACHC,gBAAgB,EAAE;MAChBC,eAAe,EAAER,cAAc,CAACS,mBAAmB;MACnDC,QAAQ,EAAE,EAAE;MACZC,WAAW,EAAE,CAAC;MACdC,YAAY,EAAE,CAAC;MACfC,UAAU,EAAE,EAAE;MACdC,UAAU,EAAEd,cAAc,CAACe;IAC7B,CAAa;IACbC,YAAY,EAAE;MACZC,aAAa,EAAE,KAAK;MACpBC,YAAY,EAAE;IAChB,CAAa;IACbC,aAAa,EAAE;MACbC,SAAS,EAAE,QAAQ;MACnBN,UAAU,EAAEd,cAAc,CAACe,QAAQ;MACnCL,QAAQ,EAAE,EAAE;MACZL,KAAK,EAAEL,cAAc,CAACqB;IACxB,CAAa;IACbC,QAAQ,EAAE;MACRnB,IAAI,EAAE;QACJoB,KAAK,EAAE,MAAM;QACbC,MAAM,EAAE;MACV;IACF;EACF,CAAC,CAAC;EAEFvB,QAAQ,CAACH,aAAa,GAAG,WAAW,EAAE,EAAE,EAAE;IACxCK,IAAI,EAAE;MACJsB,OAAO,EAAE;IACX,CAAC;IACDN,aAAa,EAAG;MACdd,KAAK,EAAEL,cAAc,CAAC0B;IACxB;EACF,CAAC,CAAC;EAEFzB,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","alignSelf","fontFamily","baseFont","fontSize","color","labelDefaultColor","marginLeft","groupHeaderTitle","backgroundColor","groupHeadingBgColor","paddingLeft","paddingRight","lineHeight","item","flexDirection","alignContent","marginTop","skeleton","width","height","checkicon","borderRadius","primaryColor","justifyContent","alignItems","borderColor","checkedBorderColor","icon","checkedIconColor","padding","uncheckicon","borderWidth","uncheckedBorderColor","opacity","checkedDisabledColor"],"sources":["checkboxset.styles.ts"],"sourcesContent":["import BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmSkeletonStyles } from '../../basic/skeleton/skeleton.styles';\nimport { WmIconStyles } from '../../basic/icon/icon.styles';\n\nexport type WmCheckboxsetStyles = BaseStyles & {\n groupHeaderTitle: AllStyle;\n item: AllStyle;\n skeleton: WmSkeletonStyles;\n checkicon: WmIconStyles;\n uncheckicon: WmIconStyles;\n};\n\nexport const DEFAULT_CLASS = 'app-checkboxset';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmCheckboxsetStyles = defineStyles({\n root: {},\n text: {\n alignSelf: 'center',\n fontFamily: themeVariables.baseFont,\n fontSize: 16,\n color: themeVariables.labelDefaultColor,\n marginLeft: 8,\n },\n groupHeaderTitle: {\n backgroundColor: themeVariables.groupHeadingBgColor,\n fontSize: 16,\n paddingLeft: 8,\n paddingRight: 8,\n lineHeight: 40,\n fontFamily: themeVariables.baseFont\n } as AllStyle,\n item: {\n flexDirection: 'row',\n alignContent: 'center',\n marginTop: 8\n } as AllStyle,\n skeleton: {\n root: {\n width: '100%',\n height: 16\n }\n } as any as WmSkeletonStyles,\n checkicon : {\n root: {\n width: 20,\n height: 20,\n borderRadius: 4,\n backgroundColor: themeVariables.primaryColor,\n justifyContent: 'center',\n alignItems: 'center',\n borderColor: themeVariables.checkedBorderColor,\n },\n text: {\n fontSize: 18,\n },\n icon : {\n color: themeVariables.checkedIconColor,\n padding: 0\n }\n } as WmIconStyles,\n uncheckicon : {\n root: {\n width: 20,\n height: 20,\n borderWidth: 2,\n borderRadius: 4,\n borderColor: themeVariables.uncheckedBorderColor,\n },\n text: {},\n icon : {\n color: 'transparent',\n }\n } as WmIconStyles,\n });\n\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n root: {\n opacity: 0.8\n },\n text : {\n color: themeVariables.checkedDisabledColor\n }\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAYxF,OAAO,MAAMC,aAAa,GAAG,iBAAiB;AAC9CF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAAkC,GAAGL,YAAY,CAAC;IACpDM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE;MACJC,SAAS,EAAE,QAAQ;MACnBC,UAAU,EAAEN,cAAc,CAACO,QAAQ;MACnCC,QAAQ,EAAE,EAAE;MACZC,KAAK,EAAET,cAAc,CAACU,iBAAiB;MACvCC,UAAU,EAAE;IACd,CAAC;IACHC,gBAAgB,EAAE;MAChBC,eAAe,EAAEb,cAAc,CAACc,mBAAmB;MACnDN,QAAQ,EAAE,EAAE;MACZO,WAAW,EAAE,CAAC;MACdC,YAAY,EAAE,CAAC;MACfC,UAAU,EAAE,EAAE;MACdX,UAAU,EAAEN,cAAc,CAACO;IAC7B,CAAa;IACbW,IAAI,EAAE;MACJC,aAAa,EAAE,KAAK;MACpBC,YAAY,EAAE,QAAQ;MACtBC,SAAS,EAAE;IACb,CAAa;IACbC,QAAQ,EAAE;MACRnB,IAAI,EAAE;QACJoB,KAAK,EAAE,MAAM;QACbC,MAAM,EAAE;MACV;IACF,CAA4B;IAC5BC,SAAS,EAAG;MACVtB,IAAI,EAAE;QACJoB,KAAK,EAAE,EAAE;QACTC,MAAM,EAAE,EAAE;QACVE,YAAY,EAAE,CAAC;QACfb,eAAe,EAAEb,cAAc,CAAC2B,YAAY;QAC5CC,cAAc,EAAE,QAAQ;QACxBC,UAAU,EAAE,QAAQ;QACpBC,WAAW,EAAE9B,cAAc,CAAC+B;MAC9B,CAAC;MACD3B,IAAI,EAAE;QACJI,QAAQ,EAAE;MACZ,CAAC;MACDwB,IAAI,EAAG;QACLvB,KAAK,EAAET,cAAc,CAACiC,gBAAgB;QACtCC,OAAO,EAAE;MACX;IACJ,CAAiB;IACfC,WAAW,EAAG;MACZhC,IAAI,EAAE;QACJoB,KAAK,EAAE,EAAE;QACTC,MAAM,EAAE,EAAE;QACVY,WAAW,EAAE,CAAC;QACdV,YAAY,EAAE,CAAC;QACfI,WAAW,EAAE9B,cAAc,CAACqC;MAC9B,CAAC;MACDjC,IAAI,EAAE,CAAC,CAAC;MACR4B,IAAI,EAAG;QACLvB,KAAK,EAAE;MACT;IACJ;EACA,CAAC,CAAC;EAEFR,QAAQ,CAACH,aAAa,GAAG,WAAW,EAAE,EAAE,EAAE;IACxCK,IAAI,EAAE;MACJmC,OAAO,EAAE;IACX,CAAC;IACDlC,IAAI,EAAG;MACLK,KAAK,EAAET,cAAc,CAACuC;IACxB;EACF,CAAC,CAAC;EAEFtC,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC5C,CAAC,CAAC"}
@@ -15,7 +15,7 @@ export default class WmComposite extends BaseComponent {
15
15
  super(props, DEFAULT_CLASS, new WmCompositeProps());
16
16
  }
17
17
  renderWidget(props) {
18
- const styles = this.theme.mergeStyle({}, this.styles, this.theme.getStyle(POSITION_STYLES[props.captionposition]));
18
+ const styles = this.theme.mergeStyle({}, this.styles, props.captionposition ? this.theme.getStyle(POSITION_STYLES[props.captionposition]) : {});
19
19
  return /*#__PURE__*/React.createElement(View, {
20
20
  style: styles.root
21
21
  }, this._background, props.children);
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","BaseComponent","BaseComponentState","WmCompositeProps","DEFAULT_CLASS","WmCompositeState","POSITION_STYLES","WmComposite","constructor","props","renderWidget","styles","theme","mergeStyle","getStyle","captionposition","createElement","style","root","_background","children"],"sources":["composite.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 WmCompositeProps from './composite.props';\nimport { DEFAULT_CLASS, WmCompositeStyles } from './composite.styles';\n\nexport class WmCompositeState extends BaseComponentState<WmCompositeProps> {};\n\nconst POSITION_STYLES = {\n 'top': 'app-composite-top-caption',\n 'left': 'app-composite-left-caption',\n 'right': 'app-composite-right-caption'\n};\n\nexport default class WmComposite extends BaseComponent<WmCompositeProps, WmCompositeState, WmCompositeStyles> {\n\n constructor(props: WmCompositeProps) {\n super(props, DEFAULT_CLASS, new WmCompositeProps());\n }\n\n renderWidget(props: WmCompositeProps) {\n const styles = this.theme.mergeStyle({}, \n this.styles,\n this.theme.getStyle(POSITION_STYLES[props.captionposition]));\n return (<View style={styles.root}>{this._background}{props.children}</View>); \n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,gBAAgB,MAAM,mBAAmB;AAChD,SAASC,aAAa,QAA2B,oBAAoB;AAErE,OAAO,MAAMC,gBAAgB,SAASH,kBAAkB,CAAmB;AAAE;AAE7E,MAAMI,eAAe,GAAG;EACtB,KAAK,EAAE,2BAA2B;EAClC,MAAM,EAAE,4BAA4B;EACpC,OAAO,EAAE;AACX,CAAC;AAED,eAAe,MAAMC,WAAW,SAASN,aAAa,CAAwD;EAE5GO,WAAWA,CAACC,KAAuB,EAAE;IACnC,KAAK,CAACA,KAAK,EAAEL,aAAa,EAAE,IAAID,gBAAgB,CAAC,CAAC,CAAC;EACrD;EAEAO,YAAYA,CAACD,KAAuB,EAAE;IACpC,MAAME,MAAM,GAAG,IAAI,CAACC,KAAK,CAACC,UAAU,CAAC,CAAC,CAAC,EACrC,IAAI,CAACF,MAAM,EACX,IAAI,CAACC,KAAK,CAACE,QAAQ,CAACR,eAAe,CAACG,KAAK,CAACM,eAAe,CAAC,CAAC,CAAC;IAC9D,oBAAQhB,KAAA,CAAAiB,aAAA,CAAChB,IAAI;MAACiB,KAAK,EAAEN,MAAM,CAACO;IAAK,GAAE,IAAI,CAACC,WAAW,EAAEV,KAAK,CAACW,QAAe,CAAC;EAC7E;AACF"}
1
+ {"version":3,"names":["React","View","BaseComponent","BaseComponentState","WmCompositeProps","DEFAULT_CLASS","WmCompositeState","POSITION_STYLES","WmComposite","constructor","props","renderWidget","styles","theme","mergeStyle","captionposition","getStyle","createElement","style","root","_background","children"],"sources":["composite.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 WmCompositeProps from './composite.props';\nimport { DEFAULT_CLASS, WmCompositeStyles } from './composite.styles';\n\nexport class WmCompositeState extends BaseComponentState<WmCompositeProps> {};\n\nconst POSITION_STYLES = {\n 'top': 'app-composite-top-caption',\n 'left': 'app-composite-left-caption',\n 'right': 'app-composite-right-caption'\n};\n\nexport default class WmComposite extends BaseComponent<WmCompositeProps, WmCompositeState, WmCompositeStyles> {\n\n constructor(props: WmCompositeProps) {\n super(props, DEFAULT_CLASS, new WmCompositeProps());\n }\n\n renderWidget(props: WmCompositeProps) {\n const styles = this.theme.mergeStyle({}, \n this.styles,\n props.captionposition ? this.theme.getStyle(POSITION_STYLES[props.captionposition]) : {}\n );\n return (<View style={styles.root}>{this._background}{props.children}</View>); \n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,gBAAgB,MAAM,mBAAmB;AAChD,SAASC,aAAa,QAA2B,oBAAoB;AAErE,OAAO,MAAMC,gBAAgB,SAASH,kBAAkB,CAAmB;AAAE;AAE7E,MAAMI,eAAe,GAAG;EACtB,KAAK,EAAE,2BAA2B;EAClC,MAAM,EAAE,4BAA4B;EACpC,OAAO,EAAE;AACX,CAAC;AAED,eAAe,MAAMC,WAAW,SAASN,aAAa,CAAwD;EAE5GO,WAAWA,CAACC,KAAuB,EAAE;IACnC,KAAK,CAACA,KAAK,EAAEL,aAAa,EAAE,IAAID,gBAAgB,CAAC,CAAC,CAAC;EACrD;EAEAO,YAAYA,CAACD,KAAuB,EAAE;IACpC,MAAME,MAAM,GAAG,IAAI,CAACC,KAAK,CAACC,UAAU,CAAC,CAAC,CAAC,EACrC,IAAI,CAACF,MAAM,EACXF,KAAK,CAACK,eAAe,GAAG,IAAI,CAACF,KAAK,CAACG,QAAQ,CAACT,eAAe,CAACG,KAAK,CAACK,eAAe,CAAC,CAAC,GAAG,CAAC,CACzF,CAAC;IACD,oBAAQf,KAAA,CAAAiB,aAAA,CAAChB,IAAI;MAACiB,KAAK,EAAEN,MAAM,CAACO;IAAK,GAAE,IAAI,CAACC,WAAW,EAAEV,KAAK,CAACW,QAAe,CAAC;EAC7E;AACF"}
@@ -6,7 +6,7 @@ export default class WmCompositeProps extends BaseProps {
6
6
  constructor() {
7
7
  super(...arguments);
8
8
  _defineProperty(this, "children", void 0);
9
- _defineProperty(this, "captionposition", 'left');
9
+ _defineProperty(this, "captionposition", undefined);
10
10
  }
11
11
  }
12
12
  //# sourceMappingURL=composite.props.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmCompositeProps","constructor","arguments","_defineProperty"],"sources":["composite.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmCompositeProps extends BaseProps {\n children: any;\n captionposition: 'left' | 'right' | 'top' = 'left';\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,gBAAgB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA,0BAER,MAAM;EAAA;AACtD"}
1
+ {"version":3,"names":["BaseProps","WmCompositeProps","constructor","arguments","_defineProperty","undefined"],"sources":["composite.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmCompositeProps extends BaseProps {\n children: any;\n captionposition: 'left' | 'right' | 'top' | undefined = undefined;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,gBAAgB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA,0BAEIC,SAAS;EAAA;AACrE"}
@@ -32,6 +32,14 @@ export default class WmCurrency extends BaseNumberComponent {
32
32
  break;
33
33
  }
34
34
  }
35
+ getStyleClassName() {
36
+ const classes = [];
37
+ if (this.state.props.floatinglabel) {
38
+ classes.push('app-currency-with-label');
39
+ }
40
+ classes.push(super.getStyleClassName());
41
+ return classes.join(' ');
42
+ }
35
43
  renderWidget(props) {
36
44
  var _this$state$textValue;
37
45
  let opts = {};
@@ -43,7 +51,11 @@ export default class WmCurrency extends BaseNumberComponent {
43
51
  style: this.styles.labelWrapper
44
52
  }, /*#__PURE__*/React.createElement(Text, {
45
53
  style: this.styles.label
46
- }, this.state.currencySymbol)), /*#__PURE__*/React.createElement(WMTextInput, _extends({}, this.getTestPropsForInput(), {
54
+ }, this.state.currencySymbol)), /*#__PURE__*/React.createElement(View, {
55
+ style: {
56
+ flex: 1
57
+ }
58
+ }, /*#__PURE__*/React.createElement(WMTextInput, _extends({}, this.getTestPropsForInput(), {
47
59
  ref: ref => {
48
60
  this.widgetRef = ref;
49
61
  // @ts-ignore
@@ -56,6 +68,9 @@ export default class WmCurrency extends BaseNumberComponent {
56
68
  placeholderTextColor: this.styles.placeholderText.color,
57
69
  style: [this.styles.input, this.styles.text, this.state.isValid ? {} : this.styles.invalid]
58
70
  }, opts, {
71
+ floatingLabel: props.floatinglabel,
72
+ floatingLabelStyle: this.styles.floatingLabel,
73
+ activeFloatingLabelStyle: this.styles.activeFloatingLabel,
59
74
  editable: props.disabled || props.readonly ? false : true,
60
75
  placeholder: props.placeholder,
61
76
  value: this.state.textValue,
@@ -67,7 +82,7 @@ export default class WmCurrency extends BaseNumberComponent {
67
82
  },
68
83
  onChange: this.invokeChange.bind(this),
69
84
  allowContentSelection: this.styles.text.userSelect === 'text'
70
- })));
85
+ }))));
71
86
  }
72
87
  }
73
88
  //# sourceMappingURL=currency.component.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","Text","Platform","WmCurrencyProps","CURRENCY_INFO","WMTextInput","DEFAULT_CLASS","BaseNumberComponent","BaseNumberState","isNull","WmCurrencyState","constructor","arguments","_defineProperty","WmCurrency","props","onPropertyChange","name","$new","$old","updateState","currencySymbol","symbol","renderWidget","_this$state$textValue","opts","valueExpr","OS","state","textValue","toString","createElement","style","styles","root","labelWrapper","label","_extends","getTestPropsForInput","ref","widgetRef","selectionStart","selectionEnd","cursor","keyboardType","placeholderTextColor","placeholderText","color","input","text","isValid","invalid","editable","disabled","readonly","placeholder","value","onBlur","bind","onFocus","onKeyPress","validateInputEntry","onChangeText","onChange","invokeChange","allowContentSelection","userSelect"],"sources":["currency.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View, Text, Platform } from 'react-native';\n\nimport WmCurrencyProps from './currency.props';\nimport { CURRENCY_INFO } from '@wavemaker/app-rn-runtime/core/currency-constants';\nimport { WMTextInput } from '@wavemaker/app-rn-runtime/core/components/textinput.component';\nimport { DEFAULT_CLASS, WmCurrencyStyles } from './currency.styles';\nimport {\n BaseNumberComponent,\n BaseNumberState\n} from '@wavemaker/app-rn-runtime/components/input/basenumber/basenumber.component';\nimport { isNull } from \"lodash\";\nexport class WmCurrencyState extends BaseNumberState<WmCurrencyProps> {\n currencySymbol: any;\n}\n\nexport default class WmCurrency extends BaseNumberComponent<WmCurrencyProps, WmCurrencyState, WmCurrencyStyles> {\n\n constructor(props: WmCurrencyProps) {\n super(props, DEFAULT_CLASS, new WmCurrencyProps(), new WmCurrencyState());\n }\n\n onPropertyChange(name: string, $new: any, $old: any) {\n super.onPropertyChange(name, $new, $old);\n switch (name) {\n case 'currency':\n if ($new) {\n this.updateState({\n currencySymbol: CURRENCY_INFO[$new].symbol,\n } as WmCurrencyState);\n }\n break;\n\n }\n }\n\n renderWidget(props: WmCurrencyProps) {\n let opts: any = {};\n const valueExpr = Platform.OS === 'web' ? 'value' : 'defaultValue';\n opts[valueExpr] = this.state.textValue?.toString() || '';\n return (<View style={this.styles.root}>\n <View style={this.styles.labelWrapper}>\n <Text style={this.styles.label}>{this.state.currencySymbol}</Text></View>\n <WMTextInput\n {...this.getTestPropsForInput()}\n ref={(ref: any) => {\n this.widgetRef = ref;\n // @ts-ignore\n if (ref && !isNull(ref.selectionStart) && !isNull(ref.selectionEnd)) {\n // @ts-ignore\n ref.selectionStart = ref.selectionEnd = this.cursor;\n }\n }}\n keyboardType=\"numeric\"\n placeholderTextColor={this.styles.placeholderText.color as any}\n style={[this.styles.input, this.styles.text, this.state.isValid ? {} : this.styles.invalid]}\n {...opts}\n editable={props.disabled || props.readonly ? false : true}\n placeholder={props.placeholder}\n value={this.state.textValue}\n onBlur={this.onBlur.bind(this)}\n onFocus={this.onFocus.bind(this)}\n onKeyPress={this.validateInputEntry.bind(this)}\n onChangeText={(text) => {\n this.onChangeText.bind(this)(text, 'currency');\n }}\n onChange={this.invokeChange.bind(this)}\n allowContentSelection={this.styles.text.userSelect === 'text'}\n />\n </View>);\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,QAAQ,QAAQ,cAAc;AAEnD,OAAOC,eAAe,MAAM,kBAAkB;AAC9C,SAASC,aAAa,QAAQ,mDAAmD;AACjF,SAASC,WAAW,QAAQ,+DAA+D;AAC3F,SAASC,aAAa,QAA0B,mBAAmB;AACnE,SACEC,mBAAmB,EACnBC,eAAe,QACV,4EAA4E;AACnF,SAASC,MAAM,QAAQ,QAAQ;AAC/B,OAAO,MAAMC,eAAe,SAASF,eAAe,CAAkB;EAAAG,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;EAAA;AAEtE;AAEA,eAAe,MAAMC,UAAU,SAASP,mBAAmB,CAAqD;EAE9GI,WAAWA,CAACI,KAAsB,EAAE;IAClC,KAAK,CAACA,KAAK,EAAET,aAAa,EAAE,IAAIH,eAAe,CAAC,CAAC,EAAE,IAAIO,eAAe,CAAC,CAAC,CAAC;EAC3E;EAEAM,gBAAgBA,CAACC,IAAY,EAAEC,IAAS,EAAEC,IAAS,EAAE;IACnD,KAAK,CAACH,gBAAgB,CAACC,IAAI,EAAEC,IAAI,EAAEC,IAAI,CAAC;IACxC,QAAQF,IAAI;MACV,KAAK,UAAU;QACb,IAAIC,IAAI,EAAE;UACR,IAAI,CAACE,WAAW,CAAC;YACfC,cAAc,EAAEjB,aAAa,CAACc,IAAI,CAAC,CAACI;UACtC,CAAoB,CAAC;QACvB;QACA;IAEJ;EACF;EAEAC,YAAYA,CAACR,KAAsB,EAAE;IAAA,IAAAS,qBAAA;IACnC,IAAIC,IAAS,GAAG,CAAC,CAAC;IAClB,MAAMC,SAAS,GAAGxB,QAAQ,CAACyB,EAAE,KAAK,KAAK,GAAG,OAAO,GAAG,cAAc;IAClEF,IAAI,CAACC,SAA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Q,GAAG,KAAK,GAAG,IAAK;MAC1DC,WAAW,EAAExC,KAAK,CAACwC,WAAY;MAC/BC,KAAK,EAAE,IAAI,CAAC5B,KAAK,CAACC,SAAU;MAC5B4B,MAAM,EAAE,IAAI,CAACA,MAAM,CAACC,IAAI,CAAC,IAAI,CAAE;MAC/BC,OAAO,EAAE,IAAI,CAACA,OAAO,CAACD,IAAI,CAAC,IAAI,CAAE;MACjCE,UAAU,EAAE,IAAI,CAACC,kBAAkB,CAACH,IAAI,CAAC,IAAI,CAAE;MAC/CI,YAAY,EAAGb,IAAI,IAAK;QACtB,IAAI,CAACa,YAAY,CAACJ,IAAI,CAAC,IAAI,CAAC,CAACT,IAAI,EAAE,UAAU,CAAC;MAChD,CAAE;MACFc,QAAQ,EAAE,IAAI,CAACC,YAAY,CAACN,IAAI,CAAC,IAAI,CAAE;MACvCO,qBAAqB,EAAE,IAAI,CAAChC,MAAM,CAACgB,IAAI,CAACiB,UAAU,KAAK;IAAO,EAC/D,CACG,CAAC;EACT;AACF"}
1
+ {"version":3,"names":["React","View","Text","Platform","WmCurrencyProps","CURRENCY_INFO","WMTextInput","DEFAULT_CLASS","BaseNumberComponent","BaseNumberState","isNull","WmCurrencyState","constructor","arguments","_defineProperty","WmCurrency","props","onPropertyChange","name","$new","$old","updateState","currencySymbol","symbol","getStyleClassName","classes","state","floatinglabel","push","join","renderWidget","_this$state$textValue","opts","valueExpr","OS","textValue","toString","createElement","style","styles","root","labelWrapper","label","flex","_extends","getTestPropsForInput","ref","widgetRef","selectionStart","selectionEnd","cursor","keyboardType","placeholderTextColor","placeholderText","color","input","text","isValid","invalid","floatingLabel","floatingLabelStyle","activeFloatingLabelStyle","activeFloatingLabel","editable","disabled","readonly","placeholder","value","onBlur","bind","onFocus","onKeyPress","validateInputEntry","onChangeText","onChange","invokeChange","allowContentSelection","userSelect"],"sources":["currency.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View, Text, Platform } from 'react-native';\n\nimport WmCurrencyProps from './currency.props';\nimport { CURRENCY_INFO } from '@wavemaker/app-rn-runtime/core/currency-constants';\nimport { WMTextInput } from '@wavemaker/app-rn-runtime/core/components/textinput.component';\nimport { DEFAULT_CLASS, WmCurrencyStyles } from './currency.styles';\nimport {\n BaseNumberComponent,\n BaseNumberState\n} from '@wavemaker/app-rn-runtime/components/input/basenumber/basenumber.component';\nimport { isNull } from \"lodash\";\nexport class WmCurrencyState extends BaseNumberState<WmCurrencyProps> {\n currencySymbol: any;\n}\n\nexport default class WmCurrency extends BaseNumberComponent<WmCurrencyProps, WmCurrencyState, WmCurrencyStyles> {\n\n constructor(props: WmCurrencyProps) {\n super(props, DEFAULT_CLASS, new WmCurrencyProps(), new WmCurrencyState());\n }\n\n onPropertyChange(name: string, $new: any, $old: any) {\n super.onPropertyChange(name, $new, $old);\n switch (name) {\n case 'currency':\n if ($new) {\n this.updateState({\n currencySymbol: CURRENCY_INFO[$new].symbol,\n } as WmCurrencyState);\n }\n break;\n\n }\n }\n\n public getStyleClassName(): string | undefined {\n const classes = [];\n if (this.state.props.floatinglabel) {\n classes.push('app-currency-with-label'); \n }\n classes.push(super.getStyleClassName());\n return classes.join(' ');\n }\n\n renderWidget(props: WmCurrencyProps) {\n let opts: any = {};\n const valueExpr = Platform.OS === 'web' ? 'value' : 'defaultValue';\n opts[valueExpr] = this.state.textValue?.toString() || '';\n return (<View style={this.styles.root}>\n <View style={this.styles.labelWrapper}>\n <Text style={this.styles.label}>{this.state.currencySymbol}</Text>\n </View>\n <View style={{flex: 1}}>\n <WMTextInput\n {...this.getTestPropsForInput()}\n ref={(ref: any) => {\n this.widgetRef = ref;\n // @ts-ignore\n if (ref && !isNull(ref.selectionStart) && !isNull(ref.selectionEnd)) {\n // @ts-ignore\n ref.selectionStart = ref.selectionEnd = this.cursor;\n }\n }}\n keyboardType=\"numeric\"\n placeholderTextColor={this.styles.placeholderText.color as any}\n style={[this.styles.input, this.styles.text, this.state.isValid ? {} : this.styles.invalid]}\n {...opts}\n floatingLabel={props.floatinglabel}\n floatingLabelStyle={this.styles.floatingLabel}\n activeFloatingLabelStyle={this.styles.activeFloatingLabel}\n editable={props.disabled || props.readonly ? false : true}\n placeholder={props.placeholder}\n value={this.state.textValue}\n onBlur={this.onBlur.bind(this)}\n onFocus={this.onFocus.bind(this)}\n onKeyPress={this.validateInputEntry.bind(this)}\n onChangeText={(text) => {\n this.onChangeText.bind(this)(text, 'currency');\n }}\n onChange={this.invokeChange.bind(this)}\n allowContentSelection={this.styles.text.userSelect === 'text'}\n />\n </View>\n </View>);\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,QAAQ,QAAQ,cAAc;AAEnD,OAAOC,eAAe,MAAM,kBAAkB;AAC9C,SAASC,aAAa,QAAQ,mDAAmD;AACjF,SAASC,WAAW,QAAQ,+DAA+D;AAC3F,SAASC,aAAa,QAA0B,mBAAmB;AACnE,SACEC,mBAAmB,EACnBC,eAAe,QACV,4EAA4E;AACnF,SAASC,MAAM,QAAQ,QAAQ;AAC/B,OAAO,MAAMC,eAAe,SAASF,eAAe,CAAkB;EAAAG,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;EAAA;AAEtE;AAEA,eAAe,MAAMC,UAAU,SAASP,mBAAmB,CAAqD;EAE9GI,WAAWA,CAACI,KAAsB,EAAE;IAClC,KAAK,CAACA,KAAK,EAAET,aAAa,EAAE,IAAIH,eAAe,CAAC,CAAC,EAAE,IAAIO,eAAe,CAAC,CAAC,CAAC;EAC3E;EAEAM,gBAAgBA,CAACC,IAAY,EAAEC,IAAS,EAAEC,IAAS,EAAE;IACnD,KAAK,CAACH,gBAAgB,CAACC,IAAI,EAAEC,IAAI,EAAEC,IAAI,CAAC;IACxC,QAAQF,IAAI;MACV,KAAK,UAAU;QACb,IAAIC,IAAI,EAAE;UACR,IAAI,CAACE,WAAW,CAAC;YACfC,cAAc,EAAEjB,aAAa,CAACc,IAAI,CAAC,CA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AAU,CAAC;MAChD,CAAE;MACFkB,QAAQ,EAAE,IAAI,CAACC,YAAY,CAACN,IAAI,CAAC,IAAI,CAAE;MACvCO,qBAAqB,EAAE,IAAI,CAACrC,MAAM,CAACiB,IAAI,CAACqB,UAAU,KAAK;IAAO,EAC/D,CACK,CACF,CAAC;EACT;AACF"}
@@ -7,6 +7,7 @@ export default class WmCurrencyProps extends BaseNumberProps {
7
7
  super(...arguments);
8
8
  _defineProperty(this, "currency", void 0);
9
9
  _defineProperty(this, "placeholder", '');
10
+ _defineProperty(this, "floatinglabel", void 0);
10
11
  }
11
12
  }
12
13
  //# sourceMappingURL=currency.props.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BaseNumberProps","WmCurrencyProps","constructor","arguments","_defineProperty"],"sources":["currency.props.ts"],"sourcesContent":["import BaseNumberProps from '@wavemaker/app-rn-runtime/components/input/basenumber/basenumber.props';\n\nexport default class WmCurrencyProps extends BaseNumberProps {\n currency: any;\n placeholder: string = '';\n}\n"],"mappings":";;;AAAA,OAAOA,eAAe,MAAM,wEAAwE;AAEpG,eAAe,MAAMC,eAAe,SAASD,eAAe,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA,sBAErC,EAAE;EAAA;AAC1B"}
1
+ {"version":3,"names":["BaseNumberProps","WmCurrencyProps","constructor","arguments","_defineProperty"],"sources":["currency.props.ts"],"sourcesContent":["import BaseNumberProps from '@wavemaker/app-rn-runtime/components/input/basenumber/basenumber.props';\n\nexport default class WmCurrencyProps extends BaseNumberProps {\n currency: any;\n placeholder: string = '';\n floatinglabel?: string;\n}\n"],"mappings":";;;AAAA,OAAOA,eAAe,MAAM,wEAAwE;AAEpG,eAAe,MAAMC,eAAe,SAASD,eAAe,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA,sBAErC,EAAE;IAAAA,eAAA;EAAA;AAE1B"}
@@ -52,7 +52,9 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
52
52
  },
53
53
  placeholderText: {
54
54
  color: themeVariables.inputPlaceholderColor
55
- }
55
+ },
56
+ floatingLabel: {},
57
+ activeFloatingLabel: {}
56
58
  });
57
59
  addStyle(DEFAULT_CLASS, '', defaultStyles);
58
60
  addStyle(DEFAULT_CLASS + '-rtl', '', Platform.OS == "web" ? {
@@ -68,5 +70,21 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
68
70
  backgroundColor: themeVariables.inputDisabledBgColor
69
71
  }
70
72
  });
73
+ addStyle(DEFAULT_CLASS + '-with-label', '', {
74
+ root: {
75
+ minHeight: 48
76
+ },
77
+ floatingLabel: {
78
+ position: 'absolute',
79
+ top: 12,
80
+ left: 16,
81
+ fontSize: 14,
82
+ textAlign: 'left',
83
+ color: themeVariables.floatingLabelColor
84
+ },
85
+ activeFloatingLabel: {
86
+ color: themeVariables.activeFloatingLabelColor
87
+ }
88
+ });
71
89
  });
72
90
  //# sourceMappingURL=currency.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","Platform","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","minHeight","borderWidth","borderStyle","borderColor","inputBorderColor","backgroundColor","inputBackgroundColor","borderRadius","flexDirection","text","fontSize","input","paddingTop","paddingBottom","paddingLeft","paddingRight","flex","transparent","labelWrapper","primaryColor","borderTopLeftRadius","borderBottomLeftRadius","width","label","marginVertical","color","primaryContrastColor","textAlignVertical","textAlign","fontWeight","fontFamily","baseFont","invalid","borderBottomColor","inputInvalidBorderColor","placeholderText","inputPlaceholderColor","OS","borderTopRightRadius","borderBottomRightRadius","inputDisabledBgColor"],"sources":["currency.styles.ts"],"sourcesContent":["import BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { Platform } from 'react-native';\n\nexport type WmCurrencyStyles = BaseStyles & {\n label: AllStyle;\n invalid: AllStyle;\n placeholderText: AllStyle;\n};\n\nexport const DEFAULT_CLASS = 'app-currency';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmCurrencyStyles = defineStyles({\n root: {\n minHeight: 42,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.inputBorderColor,\n backgroundColor: themeVariables.inputBackgroundColor,\n borderRadius: 6,\n flexDirection: 'row'\n },\n text: {\n fontSize: 16\n },\n input : {\n minHeight: 42,\n paddingTop: 8,\n paddingBottom: 8,\n paddingLeft: 16,\n paddingRight: 16,\n flex: 1,\n borderWidth: 1,\n borderColor: themeVariables.transparent,\n borderStyle: 'solid'\n },\n labelWrapper: {\n minHeight: 42,\n backgroundColor: themeVariables.primaryColor,\n borderTopLeftRadius: 6,\n borderBottomLeftRadius: 6,\n width: 48,\n paddingTop: 8,\n paddingBottom: 8,\n paddingLeft: 16,\n paddingRight: 16\n },\n label: {\n marginVertical: 0.7,\n color: themeVariables.primaryContrastColor,\n textAlignVertical: 'center',\n textAlign: 'center',\n fontWeight: 'bold',\n fontFamily: themeVariables.baseFont,\n fontSize: 16\n },\n invalid: {\n borderBottomColor: themeVariables.inputInvalidBorderColor\n },\n placeholderText: {\n color: themeVariables.inputPlaceholderColor\n }\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', Platform.OS==\"web\"?{\n labelWrapper:{\n borderTopLeftRadius: 0,\n borderBottomLeftRadius: 0,\n borderTopRightRadius: 6,\n borderBottomRightRadius: 6,\n }\n }:{});\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n root : {\n backgroundColor: themeVariables.inputDisabledBgColor\n }\n });\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AACxF,SAASC,QAAQ,QAAQ,cAAc;AAQvC,OAAO,MAAMC,aAAa,GAAG,cAAc;AAC3CH,UAAU,CAACI,aAAa,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cAAc,CAACwC;IACxB;EACJ,CAAC,CAAC;EAEFvC,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAC1CD,QAAQ,CAACH,aAAa,GAAG,MAAM,EAAE,EAAE,EAAED,QAAQ,CAAC4C,EAAE,IAAE,KAAK,GAAC;IACtDnB,YAAY,EAAC;MACXE,mBAAmB,EAAE,CAAC;MACtBC,sBAAsB,EAAE,CAAC;MACzBiB,oBAAoB,EAAE,CAAC;MACvBC,uBAAuB,EAAE;IAC3B;EACF,CAAC,GAAC,CAAC,CAAC,CAAC;EACL1C,QAAQ,CAACH,aAAa,GAAG,WAAW,EAAE,EAAE,EAAE;IACtCK,IAAI,EAAG;MACLM,eAAe,EAAET,cAAc,CAAC4C;IAClC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","Platform","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","minHeight","borderWidth","borderStyle","borderColor","inputBorderColor","backgroundColor","inputBackgroundColor","borderRadius","flexDirection","text","fontSize","input","paddingTop","paddingBottom","paddingLeft","paddingRight","flex","transparent","labelWrapper","primaryColor","borderTopLeftRadius","borderBottomLeftRadius","width","label","marginVertical","color","primaryContrastColor","textAlignVertical","textAlign","fontWeight","fontFamily","baseFont","invalid","borderBottomColor","inputInvalidBorderColor","placeholderText","inputPlaceholderColor","floatingLabel","activeFloatingLabel","OS","borderTopRightRadius","borderBottomRightRadius","inputDisabledBgColor","position","top","left","floatingLabelColor","activeFloatingLabelColor"],"sources":["currency.styles.ts"],"sourcesContent":["import BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { Platform } from 'react-native';\n\nexport type WmCurrencyStyles = BaseStyles & {\n label: AllStyle;\n invalid: AllStyle;\n floatingLabel: AllStyle;\n activeFloatingLabel: AllStyle;\n placeholderText: AllStyle;\n};\n\nexport const DEFAULT_CLASS = 'app-currency';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmCurrencyStyles = defineStyles({\n root: {\n minHeight: 42,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.inputBorderColor,\n backgroundColor: themeVariables.inputBackgroundColor,\n borderRadius: 6,\n flexDirection: 'row'\n },\n text: {\n fontSize: 16\n },\n input : {\n minHeight: 42,\n paddingTop: 8,\n paddingBottom: 8,\n paddingLeft: 16,\n paddingRight: 16,\n flex: 1,\n borderWidth: 1,\n borderColor: themeVariables.transparent,\n borderStyle: 'solid'\n },\n labelWrapper: {\n minHeight: 42,\n backgroundColor: themeVariables.primaryColor,\n borderTopLeftRadius: 6,\n borderBottomLeftRadius: 6,\n width: 48,\n paddingTop: 8,\n paddingBottom: 8,\n paddingLeft: 16,\n paddingRight: 16\n },\n label: {\n marginVertical: 0.7,\n color: themeVariables.primaryContrastColor,\n textAlignVertical: 'center',\n textAlign: 'center',\n fontWeight: 'bold',\n fontFamily: themeVariables.baseFont,\n fontSize: 16\n },\n invalid: {\n borderBottomColor: themeVariables.inputInvalidBorderColor\n },\n placeholderText: {\n color: themeVariables.inputPlaceholderColor\n },\n floatingLabel: {},\n activeFloatingLabel: {}\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', Platform.OS==\"web\"?{\n labelWrapper:{\n borderTopLeftRadius: 0,\n borderBottomLeftRadius: 0,\n borderTopRightRadius: 6,\n borderBottomRightRadius: 6,\n }\n }:{});\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n root : {\n backgroundColor: themeVariables.inputDisabledBgColor\n }\n });\n addStyle(DEFAULT_CLASS + '-with-label', '', {\n root: {\n minHeight: 48\n },\n floatingLabel: {\n position: 'absolute',\n top: 12,\n left: 16,\n fontSize: 14,\n textAlign: 'left',\n color: themeVariables.floatingLabelColor\n },\n activeFloatingLabel: {\n color: themeVariables.activeFloat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UAAU,EAAE,MAAM;MAClBC,UAAU,EAAElC,cAAc,CAACmC,QAAQ;MACnCrB,QAAQ,EAAE;IACZ,CAAC;IACDsB,OAAO,EAAE;MACPC,iBAAiB,EAAErC,cAAc,CAACsC;IACpC,CAAC;IACDC,eAAe,EAAE;MACfV,KAAK,EAAE7B,cAAc,CAACwC;IACxB,CAAC;IACDC,aAAa,EAAE,CAAC,CAAC;IACjBC,mBAAmB,EAAE,CAAC;EAC1B,CAAC,CAAC;EAEFzC,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAC1CD,QAAQ,CAACH,aAAa,GAAG,MAAM,EAAE,EAAE,EAAED,QAAQ,CAAC8C,EAAE,IAAE,KAAK,GAAC;IACtDrB,YAAY,EAAC;MACXE,mBAAmB,EAAE,CAAC;MACtBC,sBAAsB,EAAE,CAAC;MACzBmB,oBAAoB,EAAE,CAAC;MACvBC,uBAAuB,EAAE;IAC3B;EACF,CAAC,GAAC,CAAC,CAAC,CAAC;EACL5C,QAAQ,CAACH,aAAa,GAAG,WAAW,EAAE,EAAE,EAAE;IACtCK,IAAI,EAAG;MACLM,eAAe,EAAET,cAAc,CAAC8C;IAClC;EACJ,CAAC,CAAC;EACF7C,QAAQ,CAACH,aAAa,GAAG,aAAa,EAAE,EAAE,EAAE;IAC1CK,IAAI,EAAE;MACJC,SAAS,EAAE;IACb,CAAC;IACDqC,aAAa,EAAE;MACbM,QAAQ,EAAE,UAAU;MACpBC,GAAG,EAAE,EAAE;MACPC,IAAI,EAAE,EAAE;MACRnC,QAAQ,EAAE,EAAE;MACZkB,SAAS,EAAE,MAAM;MACjBH,KAAK,EAAE7B,cAAc,CAACkD;IACxB,CAAC;IACDR,mBAAmB,EAAE;MACnBb,KAAK,EAAE7B,cAAc,CAACmD;IACxB;EACF,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -14,6 +14,9 @@ import WebDatePicker from './date-picker.component';
14
14
  import { isNumber, isString } from 'lodash-es';
15
15
  import { ModalConsumer } from '@wavemaker/app-rn-runtime/core/modal.service';
16
16
  import { validateField } from '@wavemaker/app-rn-runtime/core/utils';
17
+ import { FloatingLabel } from '@wavemaker/app-rn-runtime/core/components/floatinglabel.component';
18
+ import AppI18nService from '@wavemaker/app-rn-runtime/runtime/services/app-i18n.service';
19
+ import WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';
17
20
  export class BaseDatetimeState extends BaseComponentState {
18
21
  constructor() {
19
22
  super(...arguments);
@@ -73,6 +76,17 @@ export default class BaseDatetime extends BaseComponent {
73
76
  clearInterval(this.state.timerId);
74
77
  }
75
78
  }
79
+ convertTimezone(date) {
80
+ const timezone = AppI18nService.getTimezone();
81
+ if (timezone) {
82
+ const parsedDateString = new Date(date).toLocaleString(this.props.locale ? this.props.locale : 'en-us', {
83
+ timeZone: timezone
84
+ });
85
+ return moment(parsedDateString, 'M/D/YYYY, h:mm:ss A');
86
+ } else {
87
+ return null;
88
+ }
89
+ }
76
90
  onPropertyChange(name, $new, $old) {
77
91
  super.onPropertyChange(name, $new, $old);
78
92
  const props = this.state.props;
@@ -87,13 +101,15 @@ export default class BaseDatetime extends BaseComponent {
87
101
  case 'datepattern':
88
102
  case 'outputformat':
89
103
  if (props.datavalue && props.outputformat && props.datepattern) {
90
- if (props.datavalue === CURRENT_DATE || props.datavalue === CURRENT_TIME) {
91
- props.datavalue = this.format(new Date(), props.outputformat);
104
+ let datavalue = props.datavalue;
105
+ if (datavalue === CURRENT_DATE || datavalue === CURRENT_TIME) {
106
+ datavalue = new Date();
92
107
  }
93
- const date = isString(props.datavalue) ? this.parse(props.datavalue, props.outputformat) : props.datavalue;
108
+ const date = isString(datavalue) ? this.parse(datavalue, props.outputformat) : datavalue;
109
+ datavalue = this.convertTimezone(datavalue);
94
110
  this.updateState({
95
111
  dateValue: date,
96
- displayValue: this.format(date, props.datepattern)
112
+ displayValue: this.format(datavalue ? datavalue : date, props.datepattern)
97
113
  });
98
114
  } else {
99
115
  this.updateState({
@@ -195,7 +211,7 @@ export default class BaseDatetime extends BaseComponent {
195
211
  mode: this.modes[0],
196
212
  value: this.state.dateValue || new Date(),
197
213
  is24Hour: true,
198
- display: Platform.OS === 'ios' ? 'spinner' : 'default',
214
+ display: "default",
199
215
  onChange: (event, date) => {
200
216
  if (date && this.state.props.mode === 'datetime' && this.modes[0] === 'time') {
201
217
  const dateSelected = this.state.dateValue;
@@ -211,6 +227,58 @@ export default class BaseDatetime extends BaseComponent {
211
227
  maximumDate: props.maxdate
212
228
  });
213
229
  }
230
+ renderNativeIOSWidget(props, onDismiss) {
231
+ let date_change = undefined;
232
+ return /*#__PURE__*/React.createElement(View, {
233
+ style: this.styles.dialog
234
+ }, /*#__PURE__*/React.createElement(DateTimePicker, {
235
+ mode: this.modes[0],
236
+ value: this.state.dateValue || new Date(),
237
+ is24Hour: true,
238
+ display: "spinner",
239
+ onChange: (event, date) => {
240
+ if (date && this.state.props.mode === 'datetime' && this.modes[0] === 'time') {
241
+ const dateSelected = this.state.dateValue;
242
+ date = moment(date).set('month', dateSelected.getMonth()).set('year', dateSelected.getFullYear()).set('date', dateSelected.getDate()).toDate();
243
+ }
244
+ date_change = date;
245
+ },
246
+ minimumDate: props.mindate,
247
+ maximumDate: props.maxdate
248
+ }), /*#__PURE__*/React.createElement(View, {
249
+ style: this.styles.actionWrapper
250
+ }, /*#__PURE__*/React.createElement(WmButton, {
251
+ styles: this.styles.selectBtn,
252
+ caption: "Select",
253
+ onTap: () => {
254
+ this.onDateChange(null, date_change || this.state.dateValue || new Date());
255
+ if (this.modes.length <= 1) {
256
+ this.onBlur();
257
+ onDismiss && onDismiss();
258
+ }
259
+ }
260
+ }), /*#__PURE__*/React.createElement(WmButton, {
261
+ styles: this.styles.cancelBtn,
262
+ caption: "Cancel",
263
+ onTap: () => {
264
+ this.modes.shift();
265
+ this.onDateChange(null, this.state.dateValue || undefined);
266
+ this.onBlur();
267
+ onDismiss && onDismiss();
268
+ }
269
+ })));
270
+ }
271
+ renderNativeIOSWidgetWithModal(props) {
272
+ return /*#__PURE__*/React.createElement(ModalConsumer, null, modalService => {
273
+ this.nativeModalOptions.content = /*#__PURE__*/React.createElement(React.Fragment, null, this.renderNativeIOSWidget(props, () => modalService.hideModal(this.nativeModalOptions)));
274
+ this.nativeModalOptions.centered = true;
275
+ this.nativeModalOptions.onClose = () => {
276
+ this.onBlur();
277
+ };
278
+ modalService.showModal(this.nativeModalOptions);
279
+ return null;
280
+ });
281
+ }
214
282
  renderNativeWidgetWithModal(props) {
215
283
  return /*#__PURE__*/React.createElement(ModalConsumer, null, modalService => {
216
284
  this.nativeModalOptions.content = /*#__PURE__*/React.createElement(React.Fragment, null, this.renderNativeWidget(props, () => modalService.hideModal(this.nativeModalOptions)));
@@ -242,11 +310,18 @@ export default class BaseDatetime extends BaseComponent {
242
310
  renderWidget(props) {
243
311
  return this.addTouchableOpacity(props, /*#__PURE__*/React.createElement(View, {
244
312
  style: [this.styles.root, this.state.isValid ? {} : this.styles.invalid, this.state.isFocused ? this.styles.focused : null]
245
- }, this._background, /*#__PURE__*/React.createElement(View, {
313
+ }, this._background, props.floatinglabel ? /*#__PURE__*/React.createElement(FloatingLabel, {
314
+ moveUp: !!(props.datavalue || this.state.isFocused),
315
+ label: props.floatinglabel ?? props.placeholder,
316
+ style: {
317
+ ...(this.styles.floatingLabel || []),
318
+ ...(this.state.isFocused ? this.styles.activeFloatingLabel || {} : {})
319
+ }
320
+ }) : null, /*#__PURE__*/React.createElement(View, {
246
321
  style: this.styles.container
247
322
  }, this.addTouchableOpacity(props, /*#__PURE__*/React.createElement(Text, _extends({
248
323
  style: [this.styles.text, this.state.displayValue ? {} : this.styles.placeholderText]
249
- }, this.getTestPropsForLabel()), this.state.displayValue || this.state.props.placeholder), [{
324
+ }, this.getTestPropsForLabel()), this.state.displayValue || (props.floatinglabel ? '' : this.state.props.placeholder)), [{
250
325
  flex: 1
251
326
  }, this.isRTL ? {
252
327
  flexDirection: 'row',
@@ -268,7 +343,7 @@ export default class BaseDatetime extends BaseComponent {
268
343
  color: this.styles.text.color,
269
344
  ...this.styles.calendarIcon
270
345
  }
271
- }))), this.state.showDatePicker && (Platform.OS === 'web' && this.renderWebWidget(props) || Platform.OS === 'android' && this.renderNativeWidget(props) || Platform.OS === 'ios' && this.renderNativeWidget(props))));
346
+ }))), this.state.showDatePicker && (Platform.OS === 'web' && this.renderWebWidget(props) || Platform.OS === 'android' && this.renderNativeWidget(props) || Platform.OS === 'ios' && this.renderNativeIOSWidgetWithModal(props))));
272
347
  }
273
348
  }
274
349
  //# sourceMappingURL=base-datetime.component.js.map