@wavemaker/app-ng-runtime 11.4.1-next.141652 → 11.4.1-next.141654

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 (504) hide show
  1. app-ng-runtime/components/advanced/carousel/bundles/index.umd.js +12 -23
  2. app-ng-runtime/components/advanced/carousel/carousel-template/carousel-template.directive.d.ts +2 -4
  3. app-ng-runtime/components/advanced/carousel/carousel.directive.d.ts +2 -4
  4. app-ng-runtime/components/advanced/carousel/esm2020/carousel-template/carousel-template.directive.mjs +6 -11
  5. app-ng-runtime/components/advanced/carousel/esm2020/carousel.directive.mjs +6 -11
  6. app-ng-runtime/components/advanced/carousel/fesm2015/index.mjs +9 -20
  7. app-ng-runtime/components/advanced/carousel/fesm2015/index.mjs.map +1 -1
  8. app-ng-runtime/components/advanced/carousel/fesm2020/index.mjs +9 -16
  9. app-ng-runtime/components/advanced/carousel/fesm2020/index.mjs.map +1 -1
  10. app-ng-runtime/components/advanced/login/bundles/index.umd.js +21 -27
  11. app-ng-runtime/components/advanced/login/esm2020/login.component.mjs +8 -13
  12. app-ng-runtime/components/advanced/login/fesm2015/index.mjs +7 -13
  13. app-ng-runtime/components/advanced/login/fesm2015/index.mjs.map +1 -1
  14. app-ng-runtime/components/advanced/login/fesm2020/index.mjs +7 -11
  15. app-ng-runtime/components/advanced/login/fesm2020/index.mjs.map +1 -1
  16. app-ng-runtime/components/advanced/login/login.component.d.ts +2 -4
  17. app-ng-runtime/components/advanced/marquee/bundles/index.umd.js +8 -14
  18. app-ng-runtime/components/advanced/marquee/esm2020/marquee.directive.mjs +6 -11
  19. app-ng-runtime/components/advanced/marquee/fesm2015/index.mjs +5 -11
  20. app-ng-runtime/components/advanced/marquee/fesm2015/index.mjs.map +1 -1
  21. app-ng-runtime/components/advanced/marquee/fesm2020/index.mjs +5 -9
  22. app-ng-runtime/components/advanced/marquee/fesm2020/index.mjs.map +1 -1
  23. app-ng-runtime/components/advanced/marquee/marquee.directive.d.ts +2 -4
  24. app-ng-runtime/components/base/bundles/index.umd.js +31 -61
  25. app-ng-runtime/components/base/esm2020/widgets/common/base/base-container.component.mjs +4 -6
  26. app-ng-runtime/components/base/esm2020/widgets/common/base/base.component.mjs +5 -6
  27. app-ng-runtime/components/base/esm2020/widgets/common/base/dataset-aware-nav.component.mjs +3 -3
  28. app-ng-runtime/components/base/esm2020/widgets/common/container/container.directive.mjs +7 -11
  29. app-ng-runtime/components/base/esm2020/widgets/common/item-template/item-template.directive.mjs +7 -10
  30. app-ng-runtime/components/base/esm2020/widgets/common/lazy-load/lazy-load.directive.mjs +6 -10
  31. app-ng-runtime/components/base/esm2020/widgets/common/message/message.component.mjs +7 -11
  32. app-ng-runtime/components/base/esm2020/widgets/common/partial/partial.directive.mjs +7 -10
  33. app-ng-runtime/components/base/esm2020/widgets/common/repeat-template/repeat-template.directive.mjs +6 -11
  34. app-ng-runtime/components/base/fesm2015/index.mjs +32 -62
  35. app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
  36. app-ng-runtime/components/base/fesm2020/index.mjs +32 -50
  37. app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
  38. app-ng-runtime/components/base/widgets/common/base/base-container.component.d.ts +1 -2
  39. app-ng-runtime/components/base/widgets/common/base/base.component.d.ts +2 -3
  40. app-ng-runtime/components/base/widgets/common/base/dataset-aware-nav.component.d.ts +1 -2
  41. app-ng-runtime/components/base/widgets/common/container/container.directive.d.ts +2 -4
  42. app-ng-runtime/components/base/widgets/common/item-template/item-template.directive.d.ts +3 -4
  43. app-ng-runtime/components/base/widgets/common/lazy-load/lazy-load.directive.d.ts +2 -4
  44. app-ng-runtime/components/base/widgets/common/message/message.component.d.ts +2 -4
  45. app-ng-runtime/components/base/widgets/common/partial/partial.directive.d.ts +3 -4
  46. app-ng-runtime/components/base/widgets/common/repeat-template/repeat-template.directive.d.ts +2 -4
  47. app-ng-runtime/components/basic/default/anchor/anchor.component.d.ts +3 -4
  48. app-ng-runtime/components/basic/default/audio/audio.component.d.ts +2 -4
  49. app-ng-runtime/components/basic/default/bundles/index.umd.js +247 -290
  50. app-ng-runtime/components/basic/default/esm2020/anchor/anchor.component.mjs +7 -10
  51. app-ng-runtime/components/basic/default/esm2020/audio/audio.component.mjs +8 -13
  52. app-ng-runtime/components/basic/default/esm2020/html/html.directive.mjs +7 -11
  53. app-ng-runtime/components/basic/default/esm2020/icon/icon.component.mjs +9 -14
  54. app-ng-runtime/components/basic/default/esm2020/iframe/iframe.component.mjs +9 -13
  55. app-ng-runtime/components/basic/default/esm2020/label/label.directive.mjs +7 -11
  56. app-ng-runtime/components/basic/default/esm2020/picture/picture.directive.mjs +7 -11
  57. app-ng-runtime/components/basic/default/esm2020/spinner/spinner.component.mjs +9 -13
  58. app-ng-runtime/components/basic/default/esm2020/video/video.component.mjs +9 -13
  59. app-ng-runtime/components/basic/default/fesm2015/index.mjs +46 -89
  60. app-ng-runtime/components/basic/default/fesm2015/index.mjs.map +1 -1
  61. app-ng-runtime/components/basic/default/fesm2020/index.mjs +46 -73
  62. app-ng-runtime/components/basic/default/fesm2020/index.mjs.map +1 -1
  63. app-ng-runtime/components/basic/default/html/html.directive.d.ts +2 -4
  64. app-ng-runtime/components/basic/default/icon/icon.component.d.ts +2 -4
  65. app-ng-runtime/components/basic/default/iframe/iframe.component.d.ts +2 -4
  66. app-ng-runtime/components/basic/default/label/label.directive.d.ts +2 -4
  67. app-ng-runtime/components/basic/default/picture/picture.directive.d.ts +2 -4
  68. app-ng-runtime/components/basic/default/spinner/spinner.component.d.ts +2 -4
  69. app-ng-runtime/components/basic/default/video/video.component.d.ts +2 -4
  70. app-ng-runtime/components/basic/progress/bundles/index.umd.js +23 -32
  71. app-ng-runtime/components/basic/progress/esm2020/progress-bar/progress-bar.component.mjs +8 -12
  72. app-ng-runtime/components/basic/progress/esm2020/progress-circle/progress-circle.component.mjs +8 -13
  73. app-ng-runtime/components/basic/progress/fesm2015/index.mjs +12 -21
  74. app-ng-runtime/components/basic/progress/fesm2015/index.mjs.map +1 -1
  75. app-ng-runtime/components/basic/progress/fesm2020/index.mjs +12 -19
  76. app-ng-runtime/components/basic/progress/fesm2020/index.mjs.map +1 -1
  77. app-ng-runtime/components/basic/progress/progress-bar/progress-bar.component.d.ts +2 -4
  78. app-ng-runtime/components/basic/progress/progress-circle/progress-circle.component.d.ts +2 -4
  79. app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +14 -20
  80. app-ng-runtime/components/basic/rich-text-editor/esm2020/rich-text-editor.component.mjs +9 -13
  81. app-ng-runtime/components/basic/rich-text-editor/fesm2015/index.mjs +7 -13
  82. app-ng-runtime/components/basic/rich-text-editor/fesm2015/index.mjs.map +1 -1
  83. app-ng-runtime/components/basic/rich-text-editor/fesm2020/index.mjs +7 -11
  84. app-ng-runtime/components/basic/rich-text-editor/fesm2020/index.mjs.map +1 -1
  85. app-ng-runtime/components/basic/rich-text-editor/rich-text-editor.component.d.ts +2 -4
  86. app-ng-runtime/components/basic/search/bundles/index.umd.js +3 -6
  87. app-ng-runtime/components/basic/search/esm2020/search.component.mjs +6 -9
  88. app-ng-runtime/components/basic/search/fesm2015/index.mjs +4 -7
  89. app-ng-runtime/components/basic/search/fesm2015/index.mjs.map +1 -1
  90. app-ng-runtime/components/basic/search/fesm2020/index.mjs +4 -7
  91. app-ng-runtime/components/basic/search/fesm2020/index.mjs.map +1 -1
  92. app-ng-runtime/components/basic/search/search.component.d.ts +3 -4
  93. app-ng-runtime/components/chart/bundles/index.umd.js +4 -9
  94. app-ng-runtime/components/chart/chart.component.d.ts +3 -4
  95. app-ng-runtime/components/chart/esm2020/chart.component.mjs +7 -10
  96. app-ng-runtime/components/chart/fesm2015/index.mjs +5 -10
  97. app-ng-runtime/components/chart/fesm2015/index.mjs.map +1 -1
  98. app-ng-runtime/components/chart/fesm2020/index.mjs +5 -8
  99. app-ng-runtime/components/chart/fesm2020/index.mjs.map +1 -1
  100. app-ng-runtime/components/containers/accordion/accordion-pane/accordion-pane.component.d.ts +2 -4
  101. app-ng-runtime/components/containers/accordion/accordion.directive.d.ts +3 -4
  102. app-ng-runtime/components/containers/accordion/bundles/index.umd.js +56 -66
  103. app-ng-runtime/components/containers/accordion/esm2020/accordion-pane/accordion-pane.component.mjs +10 -14
  104. app-ng-runtime/components/containers/accordion/esm2020/accordion.directive.mjs +7 -10
  105. app-ng-runtime/components/containers/accordion/fesm2015/index.mjs +12 -22
  106. app-ng-runtime/components/containers/accordion/fesm2015/index.mjs.map +1 -1
  107. app-ng-runtime/components/containers/accordion/fesm2020/index.mjs +12 -18
  108. app-ng-runtime/components/containers/accordion/fesm2020/index.mjs.map +1 -1
  109. app-ng-runtime/components/containers/layout-grid/bundles/index.umd.js +12 -25
  110. app-ng-runtime/components/containers/layout-grid/esm2020/layout-grid-column/layout-grid-column.directive.mjs +7 -10
  111. app-ng-runtime/components/containers/layout-grid/esm2020/layout-grid-row/layout-grid-row.directive.mjs +6 -11
  112. app-ng-runtime/components/containers/layout-grid/esm2020/layout-grid.directive.mjs +6 -11
  113. app-ng-runtime/components/containers/layout-grid/fesm2015/index.mjs +13 -26
  114. app-ng-runtime/components/containers/layout-grid/fesm2015/index.mjs.map +1 -1
  115. app-ng-runtime/components/containers/layout-grid/fesm2020/index.mjs +13 -22
  116. app-ng-runtime/components/containers/layout-grid/fesm2020/index.mjs.map +1 -1
  117. app-ng-runtime/components/containers/layout-grid/layout-grid-column/layout-grid-column.directive.d.ts +3 -4
  118. app-ng-runtime/components/containers/layout-grid/layout-grid-row/layout-grid-row.directive.d.ts +2 -4
  119. app-ng-runtime/components/containers/layout-grid/layout-grid.directive.d.ts +2 -4
  120. app-ng-runtime/components/containers/linear-layout/bundles/index.umd.js +12 -23
  121. app-ng-runtime/components/containers/linear-layout/esm2020/linear-layout-item/linear-layout-item.directive.mjs +6 -11
  122. app-ng-runtime/components/containers/linear-layout/esm2020/linear-layout.directive.mjs +6 -11
  123. app-ng-runtime/components/containers/linear-layout/fesm2015/index.mjs +9 -20
  124. app-ng-runtime/components/containers/linear-layout/fesm2015/index.mjs.map +1 -1
  125. app-ng-runtime/components/containers/linear-layout/fesm2020/index.mjs +9 -16
  126. app-ng-runtime/components/containers/linear-layout/fesm2020/index.mjs.map +1 -1
  127. app-ng-runtime/components/containers/linear-layout/linear-layout-item/linear-layout-item.directive.d.ts +2 -4
  128. app-ng-runtime/components/containers/linear-layout/linear-layout.directive.d.ts +2 -4
  129. app-ng-runtime/components/containers/panel/bundles/index.umd.js +65 -71
  130. app-ng-runtime/components/containers/panel/esm2020/panel.component.mjs +12 -16
  131. app-ng-runtime/components/containers/panel/fesm2015/index.mjs +10 -16
  132. app-ng-runtime/components/containers/panel/fesm2015/index.mjs.map +1 -1
  133. app-ng-runtime/components/containers/panel/fesm2020/index.mjs +10 -14
  134. app-ng-runtime/components/containers/panel/fesm2020/index.mjs.map +1 -1
  135. app-ng-runtime/components/containers/panel/panel.component.d.ts +2 -4
  136. app-ng-runtime/components/containers/tabs/bundles/index.umd.js +57 -63
  137. app-ng-runtime/components/containers/tabs/esm2020/tab-pane/tab-pane.component.mjs +8 -12
  138. app-ng-runtime/components/containers/tabs/esm2020/tabs.component.mjs +7 -10
  139. app-ng-runtime/components/containers/tabs/fesm2015/index.mjs +12 -18
  140. app-ng-runtime/components/containers/tabs/fesm2015/index.mjs.map +1 -1
  141. app-ng-runtime/components/containers/tabs/fesm2020/index.mjs +12 -18
  142. app-ng-runtime/components/containers/tabs/fesm2020/index.mjs.map +1 -1
  143. app-ng-runtime/components/containers/tabs/tab-pane/tab-pane.component.d.ts +2 -4
  144. app-ng-runtime/components/containers/tabs/tabs.component.d.ts +3 -4
  145. app-ng-runtime/components/containers/tile/bundles/index.umd.js +8 -14
  146. app-ng-runtime/components/containers/tile/esm2020/tile.directive.mjs +6 -11
  147. app-ng-runtime/components/containers/tile/fesm2015/index.mjs +5 -11
  148. app-ng-runtime/components/containers/tile/fesm2015/index.mjs.map +1 -1
  149. app-ng-runtime/components/containers/tile/fesm2020/index.mjs +5 -9
  150. app-ng-runtime/components/containers/tile/fesm2020/index.mjs.map +1 -1
  151. app-ng-runtime/components/containers/tile/tile.directive.d.ts +2 -4
  152. app-ng-runtime/components/containers/wizard/bundles/index.umd.js +48 -57
  153. app-ng-runtime/components/containers/wizard/esm2020/wizard-step/wizard-step.directive.mjs +5 -10
  154. app-ng-runtime/components/containers/wizard/esm2020/wizard.component.mjs +10 -14
  155. app-ng-runtime/components/containers/wizard/fesm2015/index.mjs +11 -20
  156. app-ng-runtime/components/containers/wizard/fesm2015/index.mjs.map +1 -1
  157. app-ng-runtime/components/containers/wizard/fesm2020/index.mjs +11 -18
  158. app-ng-runtime/components/containers/wizard/fesm2020/index.mjs.map +1 -1
  159. app-ng-runtime/components/containers/wizard/wizard-step/wizard-step.directive.d.ts +2 -4
  160. app-ng-runtime/components/containers/wizard/wizard.component.d.ts +2 -4
  161. app-ng-runtime/components/data/card/bundles/index.umd.js +83 -106
  162. app-ng-runtime/components/data/card/card-actions/card-actions.directive.d.ts +2 -4
  163. app-ng-runtime/components/data/card/card-content/card-content.component.d.ts +2 -4
  164. app-ng-runtime/components/data/card/card-footer/card-footer.directive.d.ts +2 -4
  165. app-ng-runtime/components/data/card/card.component.d.ts +2 -4
  166. app-ng-runtime/components/data/card/esm2020/card-actions/card-actions.directive.mjs +6 -11
  167. app-ng-runtime/components/data/card/esm2020/card-content/card-content.component.mjs +6 -11
  168. app-ng-runtime/components/data/card/esm2020/card-footer/card-footer.directive.mjs +6 -11
  169. app-ng-runtime/components/data/card/esm2020/card.component.mjs +12 -18
  170. app-ng-runtime/components/data/card/fesm2015/index.mjs +23 -46
  171. app-ng-runtime/components/data/card/fesm2015/index.mjs.map +1 -1
  172. app-ng-runtime/components/data/card/fesm2020/index.mjs +23 -38
  173. app-ng-runtime/components/data/card/fesm2020/index.mjs.map +1 -1
  174. app-ng-runtime/components/data/form/bundles/index.umd.js +128 -137
  175. app-ng-runtime/components/data/form/esm2020/form-action/form-action.directive.mjs +4 -9
  176. app-ng-runtime/components/data/form/esm2020/form-field/form-field.directive.mjs +5 -8
  177. app-ng-runtime/components/data/form/esm2020/form.component.mjs +5 -8
  178. app-ng-runtime/components/data/form/fesm2015/index.mjs +20 -29
  179. app-ng-runtime/components/data/form/fesm2015/index.mjs.map +1 -1
  180. app-ng-runtime/components/data/form/fesm2020/index.mjs +20 -29
  181. app-ng-runtime/components/data/form/fesm2020/index.mjs.map +1 -1
  182. app-ng-runtime/components/data/form/form-action/form-action.directive.d.ts +2 -4
  183. app-ng-runtime/components/data/form/form-field/form-field.directive.d.ts +3 -4
  184. app-ng-runtime/components/data/form/form.component.d.ts +3 -4
  185. app-ng-runtime/components/data/list/bundles/index.umd.js +4 -7
  186. app-ng-runtime/components/data/list/esm2020/list.component.mjs +7 -10
  187. app-ng-runtime/components/data/list/fesm2015/index.mjs +4 -7
  188. app-ng-runtime/components/data/list/fesm2015/index.mjs.map +1 -1
  189. app-ng-runtime/components/data/list/fesm2020/index.mjs +4 -7
  190. app-ng-runtime/components/data/list/fesm2020/index.mjs.map +1 -1
  191. app-ng-runtime/components/data/list/list.component.d.ts +3 -4
  192. app-ng-runtime/components/data/live-table/bundles/index.umd.js +3 -6
  193. app-ng-runtime/components/data/live-table/esm2020/live-table.component.mjs +6 -9
  194. app-ng-runtime/components/data/live-table/fesm2015/index.mjs +4 -7
  195. app-ng-runtime/components/data/live-table/fesm2015/index.mjs.map +1 -1
  196. app-ng-runtime/components/data/live-table/fesm2020/index.mjs +4 -7
  197. app-ng-runtime/components/data/live-table/fesm2020/index.mjs.map +1 -1
  198. app-ng-runtime/components/data/live-table/live-table.component.d.ts +3 -4
  199. app-ng-runtime/components/data/pagination/bundles/index.umd.js +30 -34
  200. app-ng-runtime/components/data/pagination/esm2020/pagination.component.mjs +10 -14
  201. app-ng-runtime/components/data/pagination/fesm2015/index.mjs +8 -12
  202. app-ng-runtime/components/data/pagination/fesm2015/index.mjs.map +1 -1
  203. app-ng-runtime/components/data/pagination/fesm2020/index.mjs +8 -12
  204. app-ng-runtime/components/data/pagination/fesm2020/index.mjs.map +1 -1
  205. app-ng-runtime/components/data/pagination/pagination.component.d.ts +2 -4
  206. app-ng-runtime/components/data/table/bundles/index.umd.js +19 -37
  207. app-ng-runtime/components/data/table/esm2020/table-action/table-action.directive.mjs +4 -9
  208. app-ng-runtime/components/data/table/esm2020/table-column/table-column.directive.mjs +5 -8
  209. app-ng-runtime/components/data/table/esm2020/table-column-group/table-column-group.directive.mjs +4 -9
  210. app-ng-runtime/components/data/table/esm2020/table-row/table-row.directive.mjs +4 -9
  211. app-ng-runtime/components/data/table/esm2020/table-row-action/table-row-action.directive.mjs +4 -9
  212. app-ng-runtime/components/data/table/esm2020/table.component.mjs +6 -9
  213. app-ng-runtime/components/data/table/fesm2015/index.mjs +19 -37
  214. app-ng-runtime/components/data/table/fesm2015/index.mjs.map +1 -1
  215. app-ng-runtime/components/data/table/fesm2020/index.mjs +19 -37
  216. app-ng-runtime/components/data/table/fesm2020/index.mjs.map +1 -1
  217. app-ng-runtime/components/data/table/table-action/table-action.directive.d.ts +2 -4
  218. app-ng-runtime/components/data/table/table-column/table-column.directive.d.ts +3 -4
  219. app-ng-runtime/components/data/table/table-column-group/table-column-group.directive.d.ts +2 -4
  220. app-ng-runtime/components/data/table/table-row/table-row.directive.d.ts +2 -4
  221. app-ng-runtime/components/data/table/table-row-action/table-row-action.directive.d.ts +2 -4
  222. app-ng-runtime/components/data/table/table.component.d.ts +3 -4
  223. app-ng-runtime/components/dialogs/alert-dialog/alert-dialog.component.d.ts +2 -4
  224. app-ng-runtime/components/dialogs/alert-dialog/bundles/index.umd.js +40 -46
  225. app-ng-runtime/components/dialogs/alert-dialog/esm2020/alert-dialog.component.mjs +9 -15
  226. app-ng-runtime/components/dialogs/alert-dialog/fesm2015/index.mjs +8 -14
  227. app-ng-runtime/components/dialogs/alert-dialog/fesm2015/index.mjs.map +1 -1
  228. app-ng-runtime/components/dialogs/alert-dialog/fesm2020/index.mjs +8 -14
  229. app-ng-runtime/components/dialogs/alert-dialog/fesm2020/index.mjs.map +1 -1
  230. app-ng-runtime/components/dialogs/confirm-dialog/bundles/index.umd.js +16 -22
  231. app-ng-runtime/components/dialogs/confirm-dialog/confirm-dialog.component.d.ts +2 -4
  232. app-ng-runtime/components/dialogs/confirm-dialog/esm2020/confirm-dialog.component.mjs +8 -14
  233. app-ng-runtime/components/dialogs/confirm-dialog/fesm2015/index.mjs +7 -13
  234. app-ng-runtime/components/dialogs/confirm-dialog/fesm2015/index.mjs.map +1 -1
  235. app-ng-runtime/components/dialogs/confirm-dialog/fesm2020/index.mjs +7 -13
  236. app-ng-runtime/components/dialogs/confirm-dialog/fesm2020/index.mjs.map +1 -1
  237. app-ng-runtime/components/dialogs/default/base-dialog.d.ts +1 -2
  238. app-ng-runtime/components/dialogs/default/bundles/index.umd.js +25 -31
  239. app-ng-runtime/components/dialogs/default/dialog-footer/dialog-footer.directive.d.ts +2 -4
  240. app-ng-runtime/components/dialogs/default/esm2020/base-dialog.mjs +7 -8
  241. app-ng-runtime/components/dialogs/default/esm2020/dialog-footer/dialog-footer.directive.mjs +6 -11
  242. app-ng-runtime/components/dialogs/default/fesm2015/index.mjs +11 -17
  243. app-ng-runtime/components/dialogs/default/fesm2015/index.mjs.map +1 -1
  244. app-ng-runtime/components/dialogs/default/fesm2020/index.mjs +11 -15
  245. app-ng-runtime/components/dialogs/default/fesm2020/index.mjs.map +1 -1
  246. app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +17 -23
  247. app-ng-runtime/components/dialogs/design-dialog/dialog.component.d.ts +2 -4
  248. app-ng-runtime/components/dialogs/design-dialog/esm2020/dialog.component.mjs +8 -14
  249. app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.mjs +7 -13
  250. app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.mjs.map +1 -1
  251. app-ng-runtime/components/dialogs/design-dialog/fesm2020/index.mjs +7 -13
  252. app-ng-runtime/components/dialogs/design-dialog/fesm2020/index.mjs.map +1 -1
  253. app-ng-runtime/components/dialogs/iframe-dialog/bundles/index.umd.js +24 -30
  254. app-ng-runtime/components/dialogs/iframe-dialog/esm2020/iframe-dialog.component.mjs +10 -16
  255. app-ng-runtime/components/dialogs/iframe-dialog/fesm2015/index.mjs +9 -15
  256. app-ng-runtime/components/dialogs/iframe-dialog/fesm2015/index.mjs.map +1 -1
  257. app-ng-runtime/components/dialogs/iframe-dialog/fesm2020/index.mjs +9 -15
  258. app-ng-runtime/components/dialogs/iframe-dialog/fesm2020/index.mjs.map +1 -1
  259. app-ng-runtime/components/dialogs/iframe-dialog/iframe-dialog.component.d.ts +2 -4
  260. app-ng-runtime/components/dialogs/partial-dialog/bundles/index.umd.js +3 -8
  261. app-ng-runtime/components/dialogs/partial-dialog/esm2020/partial-dialog.component.mjs +5 -10
  262. app-ng-runtime/components/dialogs/partial-dialog/fesm2015/index.mjs +4 -9
  263. app-ng-runtime/components/dialogs/partial-dialog/fesm2015/index.mjs.map +1 -1
  264. app-ng-runtime/components/dialogs/partial-dialog/fesm2020/index.mjs +4 -9
  265. app-ng-runtime/components/dialogs/partial-dialog/fesm2020/index.mjs.map +1 -1
  266. app-ng-runtime/components/dialogs/partial-dialog/partial-dialog.component.d.ts +3 -4
  267. app-ng-runtime/components/input/calendar/bundles/index.umd.js +5 -10
  268. app-ng-runtime/components/input/calendar/calendar.component.d.ts +3 -4
  269. app-ng-runtime/components/input/calendar/esm2020/calendar.component.mjs +8 -11
  270. app-ng-runtime/components/input/calendar/fesm2015/index.mjs +6 -11
  271. app-ng-runtime/components/input/calendar/fesm2015/index.mjs.map +1 -1
  272. app-ng-runtime/components/input/calendar/fesm2020/index.mjs +6 -9
  273. app-ng-runtime/components/input/calendar/fesm2020/index.mjs.map +1 -1
  274. app-ng-runtime/components/input/chips/bundles/index.umd.js +87 -93
  275. app-ng-runtime/components/input/chips/chips.component.d.ts +2 -4
  276. app-ng-runtime/components/input/chips/esm2020/chips.component.mjs +9 -15
  277. app-ng-runtime/components/input/chips/fesm2015/index.mjs +8 -14
  278. app-ng-runtime/components/input/chips/fesm2015/index.mjs.map +1 -1
  279. app-ng-runtime/components/input/chips/fesm2020/index.mjs +8 -14
  280. app-ng-runtime/components/input/chips/fesm2020/index.mjs.map +1 -1
  281. app-ng-runtime/components/input/color-picker/bundles/index.umd.js +22 -28
  282. app-ng-runtime/components/input/color-picker/color-picker.component.d.ts +2 -4
  283. app-ng-runtime/components/input/color-picker/esm2020/color-picker.component.mjs +10 -14
  284. app-ng-runtime/components/input/color-picker/fesm2015/index.mjs +8 -14
  285. app-ng-runtime/components/input/color-picker/fesm2015/index.mjs.map +1 -1
  286. app-ng-runtime/components/input/color-picker/fesm2020/index.mjs +8 -12
  287. app-ng-runtime/components/input/color-picker/fesm2020/index.mjs.map +1 -1
  288. app-ng-runtime/components/input/currency/bundles/index.umd.js +4 -9
  289. app-ng-runtime/components/input/currency/currency.component.d.ts +3 -4
  290. app-ng-runtime/components/input/currency/esm2020/currency.component.mjs +7 -10
  291. app-ng-runtime/components/input/currency/fesm2015/index.mjs +5 -10
  292. app-ng-runtime/components/input/currency/fesm2015/index.mjs.map +1 -1
  293. app-ng-runtime/components/input/currency/fesm2020/index.mjs +5 -8
  294. app-ng-runtime/components/input/currency/fesm2020/index.mjs.map +1 -1
  295. app-ng-runtime/components/input/default/base-form.component.d.ts +1 -2
  296. app-ng-runtime/components/input/default/bundles/index.umd.js +575 -648
  297. app-ng-runtime/components/input/default/button/button.component.d.ts +2 -4
  298. app-ng-runtime/components/input/default/button-group/button-group.directive.d.ts +2 -4
  299. app-ng-runtime/components/input/default/checkbox/checkbox.component.d.ts +2 -4
  300. app-ng-runtime/components/input/default/checkboxset/checkboxset.component.d.ts +2 -4
  301. app-ng-runtime/components/input/default/composite/composite.directive.d.ts +2 -4
  302. app-ng-runtime/components/input/default/dataset-aware-form.component.d.ts +2 -3
  303. app-ng-runtime/components/input/default/esm2020/base-form.component.mjs +6 -7
  304. app-ng-runtime/components/input/default/esm2020/button/button.component.mjs +9 -14
  305. app-ng-runtime/components/input/default/esm2020/button-group/button-group.directive.mjs +6 -11
  306. app-ng-runtime/components/input/default/esm2020/checkbox/checkbox.component.mjs +9 -13
  307. app-ng-runtime/components/input/default/esm2020/checkboxset/checkboxset.component.mjs +10 -14
  308. app-ng-runtime/components/input/default/esm2020/composite/composite.directive.mjs +7 -11
  309. app-ng-runtime/components/input/default/esm2020/dataset-aware-form.component.mjs +6 -7
  310. app-ng-runtime/components/input/default/esm2020/number/number.component.mjs +7 -10
  311. app-ng-runtime/components/input/default/esm2020/radioset/radioset.component.mjs +10 -14
  312. app-ng-runtime/components/input/default/esm2020/select/select.component.mjs +11 -15
  313. app-ng-runtime/components/input/default/esm2020/switch/switch.component.mjs +10 -14
  314. app-ng-runtime/components/input/default/esm2020/text/base/base-input.mjs +6 -7
  315. app-ng-runtime/components/input/default/esm2020/text/calendar/input-calendar.component.mjs +8 -13
  316. app-ng-runtime/components/input/default/esm2020/text/color/input-color.component.mjs +8 -13
  317. app-ng-runtime/components/input/default/esm2020/text/email/input-email.component.mjs +8 -13
  318. app-ng-runtime/components/input/default/esm2020/text/locale/number-locale.mjs +3 -3
  319. app-ng-runtime/components/input/default/esm2020/text/number/input-number.component.mjs +9 -14
  320. app-ng-runtime/components/input/default/esm2020/text/text/input-text.component.mjs +9 -14
  321. app-ng-runtime/components/input/default/esm2020/textarea/textarea.component.mjs +9 -14
  322. app-ng-runtime/components/input/default/fesm2015/index.mjs +94 -167
  323. app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
  324. app-ng-runtime/components/input/default/fesm2020/index.mjs +94 -139
  325. app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
  326. app-ng-runtime/components/input/default/number/number.component.d.ts +3 -4
  327. app-ng-runtime/components/input/default/radioset/radioset.component.d.ts +2 -4
  328. app-ng-runtime/components/input/default/select/select.component.d.ts +2 -4
  329. app-ng-runtime/components/input/default/switch/switch.component.d.ts +2 -4
  330. app-ng-runtime/components/input/default/text/base/base-input.d.ts +1 -2
  331. app-ng-runtime/components/input/default/text/calendar/input-calendar.component.d.ts +2 -4
  332. app-ng-runtime/components/input/default/text/color/input-color.component.d.ts +2 -4
  333. app-ng-runtime/components/input/default/text/email/input-email.component.d.ts +2 -4
  334. app-ng-runtime/components/input/default/text/locale/number-locale.d.ts +2 -2
  335. app-ng-runtime/components/input/default/text/number/input-number.component.d.ts +2 -4
  336. app-ng-runtime/components/input/default/text/text/input-text.component.d.ts +2 -4
  337. app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +2 -4
  338. app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +1 -2
  339. app-ng-runtime/components/input/epoch/bundles/index.umd.js +12 -21
  340. app-ng-runtime/components/input/epoch/date/date.component.d.ts +3 -4
  341. app-ng-runtime/components/input/epoch/date-time/date-time.component.d.ts +3 -4
  342. app-ng-runtime/components/input/epoch/esm2020/base-date-time.component.mjs +5 -6
  343. app-ng-runtime/components/input/epoch/esm2020/date/date.component.mjs +6 -9
  344. app-ng-runtime/components/input/epoch/esm2020/date-time/date-time.component.mjs +6 -9
  345. app-ng-runtime/components/input/epoch/esm2020/time/time.component.mjs +6 -9
  346. app-ng-runtime/components/input/epoch/fesm2015/index.mjs +13 -22
  347. app-ng-runtime/components/input/epoch/fesm2015/index.mjs.map +1 -1
  348. app-ng-runtime/components/input/epoch/fesm2020/index.mjs +13 -22
  349. app-ng-runtime/components/input/epoch/fesm2020/index.mjs.map +1 -1
  350. app-ng-runtime/components/input/epoch/time/time.component.d.ts +3 -4
  351. app-ng-runtime/components/input/file-upload/bundles/index.umd.js +3 -6
  352. app-ng-runtime/components/input/file-upload/esm2020/file-upload.component.mjs +6 -9
  353. app-ng-runtime/components/input/file-upload/fesm2015/index.mjs +4 -7
  354. app-ng-runtime/components/input/file-upload/fesm2015/index.mjs.map +1 -1
  355. app-ng-runtime/components/input/file-upload/fesm2020/index.mjs +4 -7
  356. app-ng-runtime/components/input/file-upload/fesm2020/index.mjs.map +1 -1
  357. app-ng-runtime/components/input/file-upload/file-upload.component.d.ts +3 -4
  358. app-ng-runtime/components/input/rating/bundles/index.umd.js +45 -51
  359. app-ng-runtime/components/input/rating/esm2020/rating.component.mjs +11 -15
  360. app-ng-runtime/components/input/rating/fesm2015/index.mjs +9 -15
  361. app-ng-runtime/components/input/rating/fesm2015/index.mjs.map +1 -1
  362. app-ng-runtime/components/input/rating/fesm2020/index.mjs +9 -13
  363. app-ng-runtime/components/input/rating/fesm2020/index.mjs.map +1 -1
  364. app-ng-runtime/components/input/rating/rating.component.d.ts +2 -4
  365. app-ng-runtime/components/input/slider/bundles/index.umd.js +37 -43
  366. app-ng-runtime/components/input/slider/esm2020/slider.component.mjs +10 -15
  367. app-ng-runtime/components/input/slider/fesm2015/index.mjs +9 -15
  368. app-ng-runtime/components/input/slider/fesm2015/index.mjs.map +1 -1
  369. app-ng-runtime/components/input/slider/fesm2020/index.mjs +9 -13
  370. app-ng-runtime/components/input/slider/fesm2020/index.mjs.map +1 -1
  371. app-ng-runtime/components/input/slider/slider.component.d.ts +2 -4
  372. app-ng-runtime/components/navigation/menu/bundles/index.umd.js +13 -25
  373. app-ng-runtime/components/navigation/menu/esm2020/menu-adapator.component.mjs +4 -6
  374. app-ng-runtime/components/navigation/menu/esm2020/menu.component.mjs +4 -7
  375. app-ng-runtime/components/navigation/menu/esm2020/nav/nav-item/nav-item.directive.mjs +7 -11
  376. app-ng-runtime/components/navigation/menu/esm2020/nav/nav.component.mjs +5 -9
  377. app-ng-runtime/components/navigation/menu/fesm2015/index.mjs +14 -26
  378. app-ng-runtime/components/navigation/menu/fesm2015/index.mjs.map +1 -1
  379. app-ng-runtime/components/navigation/menu/fesm2020/index.mjs +14 -24
  380. app-ng-runtime/components/navigation/menu/fesm2020/index.mjs.map +1 -1
  381. app-ng-runtime/components/navigation/menu/menu-adapator.component.d.ts +1 -2
  382. app-ng-runtime/components/navigation/menu/menu.component.d.ts +2 -3
  383. app-ng-runtime/components/navigation/menu/nav/nav-item/nav-item.directive.d.ts +2 -4
  384. app-ng-runtime/components/navigation/menu/nav/nav.component.d.ts +3 -3
  385. app-ng-runtime/components/navigation/navbar/bundles/index.umd.js +28 -34
  386. app-ng-runtime/components/navigation/navbar/esm2020/navbar.component.mjs +9 -14
  387. app-ng-runtime/components/navigation/navbar/fesm2015/index.mjs +8 -14
  388. app-ng-runtime/components/navigation/navbar/fesm2015/index.mjs.map +1 -1
  389. app-ng-runtime/components/navigation/navbar/fesm2020/index.mjs +8 -12
  390. app-ng-runtime/components/navigation/navbar/fesm2020/index.mjs.map +1 -1
  391. app-ng-runtime/components/navigation/navbar/navbar.component.d.ts +2 -4
  392. app-ng-runtime/components/page/default/bundles/index.umd.js +32 -64
  393. app-ng-runtime/components/page/default/content/content.component.d.ts +2 -4
  394. app-ng-runtime/components/page/default/esm2020/content/content.component.mjs +6 -11
  395. app-ng-runtime/components/page/default/esm2020/layout.directive.mjs +7 -11
  396. app-ng-runtime/components/page/default/esm2020/page-content/page-content.component.mjs +7 -10
  397. app-ng-runtime/components/page/default/esm2020/page.directive.mjs +7 -12
  398. app-ng-runtime/components/page/default/esm2020/router-outlet.directive.mjs +7 -11
  399. app-ng-runtime/components/page/default/esm2020/spa-page.directive.mjs +7 -10
  400. app-ng-runtime/components/page/default/fesm2015/index.mjs +26 -58
  401. app-ng-runtime/components/page/default/fesm2015/index.mjs.map +1 -1
  402. app-ng-runtime/components/page/default/fesm2020/index.mjs +26 -46
  403. app-ng-runtime/components/page/default/fesm2020/index.mjs.map +1 -1
  404. app-ng-runtime/components/page/default/layout.directive.d.ts +2 -4
  405. app-ng-runtime/components/page/default/page-content/page-content.component.d.ts +3 -4
  406. app-ng-runtime/components/page/default/page.directive.d.ts +3 -4
  407. app-ng-runtime/components/page/default/router-outlet.directive.d.ts +2 -4
  408. app-ng-runtime/components/page/default/spa-page.directive.d.ts +3 -4
  409. app-ng-runtime/components/page/footer/bundles/index.umd.js +8 -14
  410. app-ng-runtime/components/page/footer/esm2020/footer.directive.mjs +6 -11
  411. app-ng-runtime/components/page/footer/fesm2015/index.mjs +5 -11
  412. app-ng-runtime/components/page/footer/fesm2015/index.mjs.map +1 -1
  413. app-ng-runtime/components/page/footer/fesm2020/index.mjs +5 -9
  414. app-ng-runtime/components/page/footer/fesm2020/index.mjs.map +1 -1
  415. app-ng-runtime/components/page/footer/footer.directive.d.ts +2 -4
  416. app-ng-runtime/components/page/header/bundles/index.umd.js +8 -14
  417. app-ng-runtime/components/page/header/esm2020/header.component.mjs +6 -11
  418. app-ng-runtime/components/page/header/fesm2015/index.mjs +5 -11
  419. app-ng-runtime/components/page/header/fesm2015/index.mjs.map +1 -1
  420. app-ng-runtime/components/page/header/fesm2020/index.mjs +5 -9
  421. app-ng-runtime/components/page/header/fesm2020/index.mjs.map +1 -1
  422. app-ng-runtime/components/page/header/header.component.d.ts +2 -4
  423. app-ng-runtime/components/page/left-panel/bundles/index.umd.js +4 -7
  424. app-ng-runtime/components/page/left-panel/esm2020/left-panel.directive.mjs +6 -9
  425. app-ng-runtime/components/page/left-panel/fesm2015/index.mjs +4 -7
  426. app-ng-runtime/components/page/left-panel/fesm2015/index.mjs.map +1 -1
  427. app-ng-runtime/components/page/left-panel/fesm2020/index.mjs +4 -7
  428. app-ng-runtime/components/page/left-panel/fesm2020/index.mjs.map +1 -1
  429. app-ng-runtime/components/page/left-panel/left-panel.directive.d.ts +3 -4
  430. app-ng-runtime/components/page/right-panel/bundles/index.umd.js +6 -12
  431. app-ng-runtime/components/page/right-panel/esm2020/right-panel.directive.mjs +7 -11
  432. app-ng-runtime/components/page/right-panel/fesm2015/index.mjs +5 -11
  433. app-ng-runtime/components/page/right-panel/fesm2015/index.mjs.map +1 -1
  434. app-ng-runtime/components/page/right-panel/fesm2020/index.mjs +5 -9
  435. app-ng-runtime/components/page/right-panel/fesm2020/index.mjs.map +1 -1
  436. app-ng-runtime/components/page/right-panel/right-panel.directive.d.ts +2 -4
  437. app-ng-runtime/components/page/top-nav/bundles/index.umd.js +8 -14
  438. app-ng-runtime/components/page/top-nav/esm2020/top-nav.directive.mjs +6 -11
  439. app-ng-runtime/components/page/top-nav/fesm2015/index.mjs +5 -11
  440. app-ng-runtime/components/page/top-nav/fesm2015/index.mjs.map +1 -1
  441. app-ng-runtime/components/page/top-nav/fesm2020/index.mjs +5 -9
  442. app-ng-runtime/components/page/top-nav/fesm2020/index.mjs.map +1 -1
  443. app-ng-runtime/components/page/top-nav/top-nav.directive.d.ts +2 -4
  444. app-ng-runtime/components/prefab/bundles/index.umd.js +7 -15
  445. app-ng-runtime/components/prefab/esm2020/prefab-container/prefab-container.directive.mjs +7 -10
  446. app-ng-runtime/components/prefab/esm2020/prefab.directive.mjs +6 -10
  447. app-ng-runtime/components/prefab/fesm2015/index.mjs +8 -16
  448. app-ng-runtime/components/prefab/fesm2015/index.mjs.map +1 -1
  449. app-ng-runtime/components/prefab/fesm2020/index.mjs +8 -14
  450. app-ng-runtime/components/prefab/fesm2020/index.mjs.map +1 -1
  451. app-ng-runtime/components/prefab/prefab-container/prefab-container.directive.d.ts +3 -4
  452. app-ng-runtime/components/prefab/prefab.directive.d.ts +2 -4
  453. app-ng-runtime/mobile/components/basic/default/bundles/index.umd.js +32 -37
  454. app-ng-runtime/mobile/components/basic/default/esm2020/network-info-toaster/network-info-toaster.component.mjs +7 -10
  455. app-ng-runtime/mobile/components/basic/default/fesm2015/index.mjs +10 -15
  456. app-ng-runtime/mobile/components/basic/default/fesm2015/index.mjs.map +1 -1
  457. app-ng-runtime/mobile/components/basic/default/fesm2020/index.mjs +10 -13
  458. app-ng-runtime/mobile/components/basic/default/fesm2020/index.mjs.map +1 -1
  459. app-ng-runtime/mobile/components/basic/default/network-info-toaster/network-info-toaster.component.d.ts +3 -4
  460. app-ng-runtime/mobile/components/containers/segmented-control/bundles/index.umd.js +18 -29
  461. app-ng-runtime/mobile/components/containers/segmented-control/esm2020/segment-content/segment-content.component.mjs +8 -13
  462. app-ng-runtime/mobile/components/containers/segmented-control/esm2020/segmented-control.component.mjs +9 -13
  463. app-ng-runtime/mobile/components/containers/segmented-control/fesm2015/index.mjs +12 -23
  464. app-ng-runtime/mobile/components/containers/segmented-control/fesm2015/index.mjs.map +1 -1
  465. app-ng-runtime/mobile/components/containers/segmented-control/fesm2020/index.mjs +12 -19
  466. app-ng-runtime/mobile/components/containers/segmented-control/fesm2020/index.mjs.map +1 -1
  467. app-ng-runtime/mobile/components/containers/segmented-control/segment-content/segment-content.component.d.ts +2 -4
  468. app-ng-runtime/mobile/components/containers/segmented-control/segmented-control.component.d.ts +2 -4
  469. app-ng-runtime/mobile/components/data/media-list/bundles/index.umd.js +30 -36
  470. app-ng-runtime/mobile/components/data/media-list/esm2020/media-list.component.mjs +14 -18
  471. app-ng-runtime/mobile/components/data/media-list/fesm2015/index.mjs +11 -17
  472. app-ng-runtime/mobile/components/data/media-list/fesm2015/index.mjs.map +1 -1
  473. app-ng-runtime/mobile/components/data/media-list/fesm2020/index.mjs +11 -15
  474. app-ng-runtime/mobile/components/data/media-list/fesm2020/index.mjs.map +1 -1
  475. app-ng-runtime/mobile/components/data/media-list/media-list.component.d.ts +2 -4
  476. app-ng-runtime/mobile/components/device/barcode-scanner/barcode-scanner.component.d.ts +2 -4
  477. app-ng-runtime/mobile/components/device/barcode-scanner/bundles/index.umd.js +28 -34
  478. app-ng-runtime/mobile/components/device/barcode-scanner/esm2020/barcode-scanner.component.mjs +10 -14
  479. app-ng-runtime/mobile/components/device/barcode-scanner/fesm2015/index.mjs +8 -14
  480. app-ng-runtime/mobile/components/device/barcode-scanner/fesm2015/index.mjs.map +1 -1
  481. app-ng-runtime/mobile/components/device/barcode-scanner/fesm2020/index.mjs +8 -12
  482. app-ng-runtime/mobile/components/device/barcode-scanner/fesm2020/index.mjs.map +1 -1
  483. app-ng-runtime/mobile/components/device/camera/bundles/index.umd.js +12 -18
  484. app-ng-runtime/mobile/components/device/camera/camera.component.d.ts +2 -4
  485. app-ng-runtime/mobile/components/device/camera/esm2020/camera.component.mjs +9 -13
  486. app-ng-runtime/mobile/components/device/camera/fesm2015/index.mjs +7 -13
  487. app-ng-runtime/mobile/components/device/camera/fesm2015/index.mjs.map +1 -1
  488. app-ng-runtime/mobile/components/device/camera/fesm2020/index.mjs +7 -11
  489. app-ng-runtime/mobile/components/device/camera/fesm2020/index.mjs.map +1 -1
  490. app-ng-runtime/mobile/components/page/mobile-navbar/bundles/index.umd.js +3 -6
  491. app-ng-runtime/mobile/components/page/mobile-navbar/esm2020/mobile-navbar.component.mjs +6 -9
  492. app-ng-runtime/mobile/components/page/mobile-navbar/fesm2015/index.mjs +4 -7
  493. app-ng-runtime/mobile/components/page/mobile-navbar/fesm2015/index.mjs.map +1 -1
  494. app-ng-runtime/mobile/components/page/mobile-navbar/fesm2020/index.mjs +4 -7
  495. app-ng-runtime/mobile/components/page/mobile-navbar/fesm2020/index.mjs.map +1 -1
  496. app-ng-runtime/mobile/components/page/mobile-navbar/mobile-navbar.component.d.ts +3 -4
  497. app-ng-runtime/mobile/components/page/tab-bar/bundles/index.umd.js +32 -36
  498. app-ng-runtime/mobile/components/page/tab-bar/esm2020/tabbar.component.mjs +8 -13
  499. app-ng-runtime/mobile/components/page/tab-bar/fesm2015/index.mjs +7 -11
  500. app-ng-runtime/mobile/components/page/tab-bar/fesm2015/index.mjs.map +1 -1
  501. app-ng-runtime/mobile/components/page/tab-bar/fesm2020/index.mjs +7 -11
  502. app-ng-runtime/mobile/components/page/tab-bar/fesm2020/index.mjs.map +1 -1
  503. app-ng-runtime/mobile/components/page/tab-bar/tabbar.component.d.ts +2 -4
  504. app-ng-runtime/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@wm/components/base'), require('@wm/core'), require('@awesome-cordova-plugins/camera/ngx'), require('@awesome-cordova-plugins/media-capture/ngx'), require('@angular/common')) :
3
3
  typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@wm/components/base', '@wm/core', '@awesome-cordova-plugins/camera/ngx', '@awesome-cordova-plugins/media-capture/ngx', '@angular/common'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.mobile = global.wm.mobile || {}, global.wm.mobile.components = global.wm.mobile.components || {}, global.wm.mobile.components.device = global.wm.mobile.components.device || {}, global.wm.mobile.components.device.camera = {}), global.ng.core, global.wm.components.base, global.wm.core, global.awesomeCordova.plugins, global.awesomeCordova.plugins, global.ng.common));
5
- })(this, (function (exports, i0, base, i3, i1, i2, i4) { 'use strict';
5
+ })(this, (function (exports, i0, base, core, i1, i2, i3) { 'use strict';
6
6
 
7
7
  function _interopNamespaceDefault(e) {
8
8
  var n = Object.create(null);
@@ -22,10 +22,9 @@
22
22
  }
23
23
 
24
24
  var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
25
- var i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
26
25
  var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
27
26
  var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
28
- var i4__namespace = /*#__PURE__*/_interopNamespaceDefault(i4);
27
+ var i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
29
28
 
30
29
  const registerProps = () => {
31
30
  base.register('wm-camera', new Map([
@@ -65,15 +64,14 @@
65
64
  ENCODING_TYPE["PNG"] = "PNG";
66
65
  })(exports.ENCODING_TYPE || (exports.ENCODING_TYPE = {}));
67
66
  class CameraComponent extends base.StylableComponent {
68
- constructor(camera, mediaCapture, inj, elRef, cdr, _viewParent) {
69
- super(inj, WIDGET_CONFIG, _viewParent);
67
+ constructor(camera, mediaCapture, inj, elRef, cdr) {
68
+ super(inj, WIDGET_CONFIG);
70
69
  this.camera = camera;
71
70
  this.mediaCapture = mediaCapture;
72
- this._viewParent = _viewParent;
73
71
  base.styler(this.nativeElement, this, base.APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);
74
72
  }
75
73
  openCamera($event) {
76
- if (i3.hasCordova()) {
74
+ if (core.hasCordova()) {
77
75
  if (this.capturetype === exports.CAPTURE_TYPE.IMAGE) {
78
76
  this._cameraOptions = {
79
77
  quality: this.imagequality,
@@ -106,7 +104,7 @@
106
104
  updateModel($event, value) {
107
105
  value = (value.startsWith('file://') ? '' : 'file://') + value;
108
106
  this.localFilePath = this.datavalue = value;
109
- i3.convertToBlob(value)
107
+ core.convertToBlob(value)
110
108
  .then(result => {
111
109
  this.localFile = result.blob;
112
110
  this.invokeEventCallback('success', { $event, localFilePath: this.localFilePath, localFile: this.localFile });
@@ -116,7 +114,7 @@
116
114
  }
117
115
  }
118
116
  CameraComponent.initializeProps = registerProps();
119
- CameraComponent.ɵfac = function CameraComponent_Factory(t) { return new (t || CameraComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace.Camera), i0__namespace.ɵɵdirectiveInject(i2__namespace.MediaCapture), i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(i3__namespace.UserDefinedExecutionContext, 8)); };
117
+ CameraComponent.ɵfac = function CameraComponent_Factory(t) { return new (t || CameraComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace.Camera), i0__namespace.ɵɵdirectiveInject(i2__namespace.MediaCapture), i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
120
118
  CameraComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: CameraComponent, selectors: [["button", "wmCamera", ""]], hostBindings: function CameraComponent_HostBindings(rf, ctx) {
121
119
  if (rf & 1) {
122
120
  i0__namespace.ɵɵlistener("click", function CameraComponent_click_HostBindingHandler($event) { return ctx.openCamera($event); });
@@ -130,18 +128,14 @@
130
128
  if (rf & 2) {
131
129
  i0__namespace.ɵɵproperty("ngClass", ctx.iconclass)("ngStyle", i0__namespace.ɵɵpureFunction1(2, _c1, ctx.iconsize));
132
130
  }
133
- }, dependencies: [i4__namespace.NgClass, i4__namespace.NgStyle], encapsulation: 2 });
131
+ }, dependencies: [i3__namespace.NgClass, i3__namespace.NgStyle], encapsulation: 2 });
134
132
  (function () {
135
133
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CameraComponent, [{
136
134
  type: i0.Component,
137
135
  args: [{ selector: 'button[wmCamera]', providers: [
138
136
  base.provideAsWidgetRef(CameraComponent)
139
137
  ], exportAs: 'wmCamera', template: "<i [ngClass]=\"iconclass\" [ngStyle]=\"{'font-size': iconsize}\"></i>" }]
140
- }], function () {
141
- return [{ type: i1__namespace.Camera }, { type: i2__namespace.MediaCapture }, { type: i0__namespace.Injector }, { type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i3__namespace.UserDefinedExecutionContext, decorators: [{
142
- type: i0.Optional
143
- }] }];
144
- }, { openCamera: [{
138
+ }], function () { return [{ type: i1__namespace.Camera }, { type: i2__namespace.MediaCapture }, { type: i0__namespace.Injector }, { type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }]; }, { openCamera: [{
145
139
  type: i0.HostListener,
146
140
  args: ['click', ['$event']]
147
141
  }] });
@@ -154,14 +148,14 @@
154
148
  }
155
149
  CameraModule.ɵfac = function CameraModule_Factory(t) { return new (t || CameraModule)(); };
156
150
  CameraModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: CameraModule });
157
- CameraModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [i4.CommonModule,
151
+ CameraModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [i3.CommonModule,
158
152
  base.WmComponentsModule] });
159
153
  (function () {
160
154
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CameraModule, [{
161
155
  type: i0.NgModule,
162
156
  args: [{
163
157
  imports: [
164
- i4.CommonModule,
158
+ i3.CommonModule,
165
159
  base.WmComponentsModule
166
160
  ],
167
161
  declarations: [...components],
@@ -170,7 +164,7 @@
170
164
  }], null, null);
171
165
  })();
172
166
  (function () {
173
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CameraModule, { declarations: [CameraComponent], imports: [i4.CommonModule,
167
+ (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CameraModule, { declarations: [CameraComponent], imports: [i3.CommonModule,
174
168
  base.WmComponentsModule], exports: [CameraComponent] });
175
169
  })();
176
170
 
@@ -2,7 +2,6 @@ import { ChangeDetectorRef, ElementRef, Injector } from '@angular/core';
2
2
  import { Camera } from '@awesome-cordova-plugins/camera/ngx';
3
3
  import { MediaCapture } from '@awesome-cordova-plugins/media-capture/ngx';
4
4
  import { StylableComponent } from '@wm/components/base';
5
- import { UserDefinedExecutionContext } from '@wm/core';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare enum CAPTURE_TYPE {
8
7
  IMAGE = "IMAGE",
@@ -15,7 +14,6 @@ export declare enum ENCODING_TYPE {
15
14
  export declare class CameraComponent extends StylableComponent {
16
15
  private camera;
17
16
  private mediaCapture;
18
- _viewParent: UserDefinedExecutionContext;
19
17
  static initializeProps: void;
20
18
  allowedit: boolean;
21
19
  correctorientation: boolean;
@@ -31,9 +29,9 @@ export declare class CameraComponent extends StylableComponent {
31
29
  iconsize: any;
32
30
  iconclass: any;
33
31
  private _cameraOptions;
34
- constructor(camera: Camera, mediaCapture: MediaCapture, inj: Injector, elRef: ElementRef, cdr: ChangeDetectorRef, _viewParent: UserDefinedExecutionContext);
32
+ constructor(camera: Camera, mediaCapture: MediaCapture, inj: Injector, elRef: ElementRef, cdr: ChangeDetectorRef);
35
33
  openCamera($event: any): void;
36
34
  private updateModel;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<CameraComponent, [null, null, null, null, null, { optional: true; }]>;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<CameraComponent, never>;
38
36
  static ɵcmp: i0.ɵɵComponentDeclaration<CameraComponent, "button[wmCamera]", ["wmCamera"], {}, {}, never, never, false, never>;
39
37
  }
@@ -1,14 +1,13 @@
1
- import { ChangeDetectorRef, Component, ElementRef, HostListener, Injector, Optional } from '@angular/core';
1
+ import { ChangeDetectorRef, Component, ElementRef, HostListener, Injector } from '@angular/core';
2
2
  import { Camera } from '@awesome-cordova-plugins/camera/ngx';
3
3
  import { MediaCapture } from '@awesome-cordova-plugins/media-capture/ngx';
4
4
  import { APPLY_STYLES_TYPE, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';
5
- import { convertToBlob, hasCordova, UserDefinedExecutionContext } from '@wm/core';
5
+ import { convertToBlob, hasCordova } from '@wm/core';
6
6
  import { registerProps } from './camera.props';
7
7
  import * as i0 from "@angular/core";
8
8
  import * as i1 from "@awesome-cordova-plugins/camera/ngx";
9
9
  import * as i2 from "@awesome-cordova-plugins/media-capture/ngx";
10
- import * as i3 from "@wm/core";
11
- import * as i4 from "@angular/common";
10
+ import * as i3 from "@angular/common";
12
11
  const _c0 = ["wmCamera", ""];
13
12
  const _c1 = function (a0) { return { "font-size": a0 }; };
14
13
  const DEFAULT_CLS = 'btn app-camera';
@@ -24,11 +23,10 @@ export var ENCODING_TYPE;
24
23
  ENCODING_TYPE["PNG"] = "PNG";
25
24
  })(ENCODING_TYPE || (ENCODING_TYPE = {}));
26
25
  export class CameraComponent extends StylableComponent {
27
- constructor(camera, mediaCapture, inj, elRef, cdr, _viewParent) {
28
- super(inj, WIDGET_CONFIG, _viewParent);
26
+ constructor(camera, mediaCapture, inj, elRef, cdr) {
27
+ super(inj, WIDGET_CONFIG);
29
28
  this.camera = camera;
30
29
  this.mediaCapture = mediaCapture;
31
- this._viewParent = _viewParent;
32
30
  styler(this.nativeElement, this, APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);
33
31
  }
34
32
  openCamera($event) {
@@ -75,7 +73,7 @@ export class CameraComponent extends StylableComponent {
75
73
  }
76
74
  }
77
75
  CameraComponent.initializeProps = registerProps();
78
- CameraComponent.ɵfac = function CameraComponent_Factory(t) { return new (t || CameraComponent)(i0.ɵɵdirectiveInject(i1.Camera), i0.ɵɵdirectiveInject(i2.MediaCapture), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i3.UserDefinedExecutionContext, 8)); };
76
+ CameraComponent.ɵfac = function CameraComponent_Factory(t) { return new (t || CameraComponent)(i0.ɵɵdirectiveInject(i1.Camera), i0.ɵɵdirectiveInject(i2.MediaCapture), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
79
77
  CameraComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CameraComponent, selectors: [["button", "wmCamera", ""]], hostBindings: function CameraComponent_HostBindings(rf, ctx) { if (rf & 1) {
80
78
  i0.ɵɵlistener("click", function CameraComponent_click_HostBindingHandler($event) { return ctx.openCamera($event); });
81
79
  } }, exportAs: ["wmCamera"], features: [i0.ɵɵProvidersFeature([
@@ -84,16 +82,14 @@ CameraComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CameraCompo
84
82
  i0.ɵɵelement(0, "i", 0);
85
83
  } if (rf & 2) {
86
84
  i0.ɵɵproperty("ngClass", ctx.iconclass)("ngStyle", i0.ɵɵpureFunction1(2, _c1, ctx.iconsize));
87
- } }, dependencies: [i4.NgClass, i4.NgStyle], encapsulation: 2 });
85
+ } }, dependencies: [i3.NgClass, i3.NgStyle], encapsulation: 2 });
88
86
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CameraComponent, [{
89
87
  type: Component,
90
88
  args: [{ selector: 'button[wmCamera]', providers: [
91
89
  provideAsWidgetRef(CameraComponent)
92
90
  ], exportAs: 'wmCamera', template: "<i [ngClass]=\"iconclass\" [ngStyle]=\"{'font-size': iconsize}\"></i>" }]
93
- }], function () { return [{ type: i1.Camera }, { type: i2.MediaCapture }, { type: i0.Injector }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i3.UserDefinedExecutionContext, decorators: [{
94
- type: Optional
95
- }] }]; }, { openCamera: [{
91
+ }], function () { return [{ type: i1.Camera }, { type: i2.MediaCapture }, { type: i0.Injector }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, { openCamera: [{
96
92
  type: HostListener,
97
93
  args: ['click', ['$event']]
98
94
  }] }); })();
99
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FtZXJhLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21vYmlsZS9jb21wb25lbnRzL2RldmljZS9jYW1lcmEvc3JjL2NhbWVyYS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb2JpbGUvY29tcG9uZW50cy9kZXZpY2UvY2FtZXJhL3NyYy9jYW1lcmEuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLGlCQUFpQixFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLFFBQVEsRUFBRSxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFekcsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBQzdELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSw0Q0FBNEMsQ0FBQztBQUUx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iAgICAgICAgICAgICAgICAgICAgZGVzdGluYXRpb25UeXBlICAgOiAxLCAvLyAwLWRhdGEgdXJsLDEtIGZpbGUgdXJsXG4gICAgICAgICAgICAgICAgICAgIHNvdXJjZVR5cGUgICAgICAgIDogMSwgLy8gb25seSBjYW1lcmFcbiAgICAgICAgICAgICAgICAgICAgYWxsb3dFZGl0ICAgICAgICAgOiB0aGlzLmFsbG93ZWRpdCxcbiAgICAgICAgICAgICAgICAgICAgY29ycmVjdE9yaWVudGF0aW9uOiB0aGlzLmNvcnJlY3RvcmllbnRhdGlvbixcbiAgICAgICAgICAgICAgICAgICAgZW5jb2RpbmdUeXBlICAgICAgOiB0aGlzLmltYWdlZW5jb2Rpbmd0eXBlID09PSBFTkNPRElOR19UWVBFLkpQRUcgPyAwIDogMSxcbiAgICAgICAgICAgICAgICAgICAgc2F2ZVRvUGhvdG9BbGJ1bSAgOiB0aGlzLnNhdmV0b2dhbGxlcnksXG4gICAgICAgICAgICAgICAgICAgIHRhcmdldFdpZHRoICAgICAgIDogdGhpcy5pbWFnZXRhcmdldHdpZHRoLFxuICAgICAgICAgICAgICAgICAgICB0YXJnZXRIZWlnaHQgICAgICA6IHRoaXMuaW1hZ2V0YXJnZXRoZWlnaHRcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgIC8vIHN0YXJ0IGNhbWVyYVxuICAgICAgICAgICAgICAgIHRoaXMuY2FtZXJhLmdldFBpY3R1cmUodGhpcy5fY2FtZXJhT3B0aW9ucylcbiAgICAgICAgICAgICAgICAgICAgLnRoZW4ocGF0aCA9PiB0aGlzLnVwZGF0ZU1vZGVsKCRldmVudCwgcGF0aCkpO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLl9jYW1lcmFPcHRpb25zID0ge1xuICAgICAgICAgICAgICAgICAgICBsaW1pdDogMVxuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgLy8gc3RhcnQgdmlkZW8gY2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tcbiAgICAgICAgc3R5bGVyKHRoaXMubmF0aXZlRWxlbWVudCwgdGhpcywgQVBQTFlfU1RZTEVTX1RZUEUuU0NST0xMQUJMRV9DT05UQUlORVIpO1xuICAgIH1cblxuICAgIEBIb3N0TGlzdGVuZXIoJ2NsaWNrJywgWyckZXZlbnQnXSlcbiAgICBwdWJsaWMgb3BlbkNhbWVyYSgkZXZlbnQpIHtcbiAgICAgICAgaWYgKGhhc0NvcmRvdmEoKSkge1xuICAgICAgICAgICAgaWYgKHRoaXMuY2FwdHVyZXR5cGUgPT09IENBUFRVUkVfVFlQRS5JTUFHRSkge1xuICAgICAgICAgICAgICAgIHRoaXMuX2NhbWVyYU9wdGlvbnMgPSB7XG4gICAgICAgICAgICAgICAgICAgIHF1YWxpdHkgICAgICAgICAgIDogdGhpcy5pbWFnZXF1YWxpdHksXG4gICAgICAgICAgICAgICAgICAgIGRlc3RpbmF0aW9uVHlwZSAgIDogMSwgLy8gMC1kYXRhIHVybCwxLSBmaWxlIHVybFxuICAgICAgICAgICAgICAgICAgICBzb3VyY2VUeXBlICAgICAgICA6IDEsIC8vIG9ubHkgY2FtZXJhXG4gICAgICAgICAgICAgICAgICAgIGFsbG93RWRpdCAgICAgICAgIDogdGhpcy5hbGxvd2VkaXQsXG4gICAgICAgICAgICAgICAgICAgIGNvcnJlY3RPcmllbnRhdGlvbjogdGhpcy5jb3JyZWN0b3JpZW50YXRpb24sXG4gICAgICAgICAgICAgICAgICAgIGVuY29kaW5nVHlwZSAgICAgIDogdGhpcy5pbWFnZWVuY29kaW5ndHlwZSA9PT0gRU5DT0RJTkdfVFlQRS5KUEVHID8gMCA6IDEsXG4gICAgICAgICAgICAgICAgICAgIHNhdmVUb1Bob3RvQWxidW0gIDogdGhpcy5zYXZldG9nYWxsZXJ5LFxuICAgICAgICAgICAgICAgICAgICB0YXJnZXRXaWR0aCAgICAgICA6IHRoaXMuaW1hZ2V0YXJnZXR3aWR0aCxcbiAgICAgICAgICAgICAgICAgICAgd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XJ0VG9CbG9iKHZhbHVlKVxuICAgICAgICAgICAgLnRoZW4ocmVzdWx0ID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLmxvY2FsRmlsZSA9IHJlc3VsdC5ibG9iO1xuICAgICAgICAgICAgICAgIHRoaXMuaW52b2tlRXZlbnRDYWxsYmFjaygnc3VjY2VzcycsIHskZXZlbnQsIGxvY2FsRmlsZVBhdGg6IHRoaXMubG9jYWxGaWxlUGF0aCwgbG9jYWxGaWxlOiB0aGlzLmxvY2FsRmlsZX0pO1xuICAgICAgICAgICAgfSwgKCkgPT4ge1xuICAgICAgICAgICAgICAgIHRoaXMubG9jYWxGaWxlID0gdW5kZWZpbmVkO1xuICAgICAgICAgICAgfSk7XG4gICAgfVxufVxuIiwiPGkgW25nQ2xhc3NdPVwiaWNvbmNsYXNzXCIgW25nU3R5bGVdPVwieydmb250LXNpemUnOiBpY29uc2l6ZX1cIj48L2k+Il19
@@ -1,11 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Optional, HostListener, NgModule } from '@angular/core';
2
+ import { Component, HostListener, NgModule } from '@angular/core';
3
3
  import { register, PROP_BOOLEAN, PROP_STRING, PROP_NUMBER, StylableComponent, styler, APPLY_STYLES_TYPE, provideAsWidgetRef, WmComponentsModule } from '@wm/components/base';
4
- import * as i3 from '@wm/core';
5
4
  import { hasCordova, convertToBlob } from '@wm/core';
6
5
  import * as i1 from '@awesome-cordova-plugins/camera/ngx';
7
6
  import * as i2 from '@awesome-cordova-plugins/media-capture/ngx';
8
- import * as i4 from '@angular/common';
7
+ import * as i3 from '@angular/common';
9
8
  import { CommonModule } from '@angular/common';
10
9
 
11
10
  const registerProps = () => {
@@ -46,11 +45,10 @@ var ENCODING_TYPE;
46
45
  ENCODING_TYPE["PNG"] = "PNG";
47
46
  })(ENCODING_TYPE || (ENCODING_TYPE = {}));
48
47
  class CameraComponent extends StylableComponent {
49
- constructor(camera, mediaCapture, inj, elRef, cdr, _viewParent) {
50
- super(inj, WIDGET_CONFIG, _viewParent);
48
+ constructor(camera, mediaCapture, inj, elRef, cdr) {
49
+ super(inj, WIDGET_CONFIG);
51
50
  this.camera = camera;
52
51
  this.mediaCapture = mediaCapture;
53
- this._viewParent = _viewParent;
54
52
  styler(this.nativeElement, this, APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);
55
53
  }
56
54
  openCamera($event) {
@@ -97,7 +95,7 @@ class CameraComponent extends StylableComponent {
97
95
  }
98
96
  }
99
97
  CameraComponent.initializeProps = registerProps();
100
- CameraComponent.ɵfac = function CameraComponent_Factory(t) { return new (t || CameraComponent)(i0.ɵɵdirectiveInject(i1.Camera), i0.ɵɵdirectiveInject(i2.MediaCapture), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i3.UserDefinedExecutionContext, 8)); };
98
+ CameraComponent.ɵfac = function CameraComponent_Factory(t) { return new (t || CameraComponent)(i0.ɵɵdirectiveInject(i1.Camera), i0.ɵɵdirectiveInject(i2.MediaCapture), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
101
99
  CameraComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CameraComponent, selectors: [["button", "wmCamera", ""]], hostBindings: function CameraComponent_HostBindings(rf, ctx) {
102
100
  if (rf & 1) {
103
101
  i0.ɵɵlistener("click", function CameraComponent_click_HostBindingHandler($event) { return ctx.openCamera($event); });
@@ -111,18 +109,14 @@ CameraComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CameraCompo
111
109
  if (rf & 2) {
112
110
  i0.ɵɵproperty("ngClass", ctx.iconclass)("ngStyle", i0.ɵɵpureFunction1(2, _c1, ctx.iconsize));
113
111
  }
114
- }, dependencies: [i4.NgClass, i4.NgStyle], encapsulation: 2 });
112
+ }, dependencies: [i3.NgClass, i3.NgStyle], encapsulation: 2 });
115
113
  (function () {
116
114
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CameraComponent, [{
117
115
  type: Component,
118
116
  args: [{ selector: 'button[wmCamera]', providers: [
119
117
  provideAsWidgetRef(CameraComponent)
120
118
  ], exportAs: 'wmCamera', template: "<i [ngClass]=\"iconclass\" [ngStyle]=\"{'font-size': iconsize}\"></i>" }]
121
- }], function () {
122
- return [{ type: i1.Camera }, { type: i2.MediaCapture }, { type: i0.Injector }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i3.UserDefinedExecutionContext, decorators: [{
123
- type: Optional
124
- }] }];
125
- }, { openCamera: [{
119
+ }], function () { return [{ type: i1.Camera }, { type: i2.MediaCapture }, { type: i0.Injector }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, { openCamera: [{
126
120
  type: HostListener,
127
121
  args: ['click', ['$event']]
128
122
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../../projects/mobile/components/device/camera/src/camera.props.ts","../../../../../../projects/mobile/components/device/camera/src/camera.component.ts","../../../../../../projects/mobile/components/device/camera/src/camera.component.html","../../../../../../projects/mobile/components/device/camera/src/camera.module.ts","../../../../../../projects/mobile/components/device/camera/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-camera',\n new Map(\n [\n ['allowedit', {value: false, ...PROP_BOOLEAN}],\n ['capturetype', {value: 'IMAGE', ...PROP_STRING}],\n ['caption', {value: '', ...PROP_STRING}],\n ['class', PROP_STRING],\n ['correctorientation', {value: false, ...PROP_BOOLEAN}],\n ['datavalue', {value: '', ...PROP_STRING}],\n ['iconclass', {value: 'wm-sl-l sl-camera', ...PROP_STRING}],\n ['iconsize', {value: '2em', ...PROP_STRING}],\n ['imagequality', {value: 80, ...PROP_NUMBER}],\n ['imageencodingtype', {value: 'JPEG', ...PROP_STRING}],\n ['imagetargetwidth', PROP_NUMBER],\n ['imagetargetheight', PROP_NUMBER],\n ['localFile', {value: '', ...PROP_STRING}],\n ['localFilePath', {value: '', ...PROP_STRING}],\n ['name', PROP_STRING],\n ['savetogallery', {value: false, ...PROP_BOOLEAN}],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['hint', PROP_STRING]\n ]\n )\n );\n};\n","import {ChangeDetectorRef, Component, ElementRef, HostListener, Injector, Optional} from '@angular/core';\n\nimport { Camera } from '@awesome-cordova-plugins/camera/ngx';\nimport { MediaCapture } from '@awesome-cordova-plugins/media-capture/ngx';\n\nimport { APPLY_STYLES_TYPE, IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport {convertToBlob, hasCordova, UserDefinedExecutionContext} from '@wm/core';\n\nimport { registerProps } from './camera.props';\n\nconst DEFAULT_CLS = 'btn app-camera';\nconst WIDGET_CONFIG: IWidgetConfig = {widgetType: 'wm-camera', hostClass: DEFAULT_CLS};\n\nexport enum CAPTURE_TYPE {\n IMAGE = 'IMAGE',\n PNG = 'PNG'\n}\n\nexport enum ENCODING_TYPE {\n JPEG = 'JPEG',\n PNG = 'PNG'\n}\n\n@Component({\n selector: 'button[wmCamera]',\n templateUrl: './camera.component.html',\n providers: [\n provideAsWidgetRef(CameraComponent)\n ],\n exportAs: 'wmCamera'\n})\nexport class CameraComponent extends StylableComponent {\n static initializeProps = registerProps();\n public allowedit: boolean;\n public correctorientation: boolean;\n public capturetype: string;\n public datavalue: string;\n public imagequality: number;\n public imageencodingtype: string;\n public imagetargetwidth: number;\n public imagetargetheight: number;\n public localFile: any;\n public localFilePath: string;\n public savetogallery: boolean;\n public iconsize: any;\n public iconclass: any;\n\n private _cameraOptions: any;\n\n constructor(private camera: Camera, private mediaCapture: MediaCapture, inj: Injector, elRef: ElementRef, cdr: ChangeDetectorRef, @Optional() public _viewParent: UserDefinedExecutionContext) {\n super(inj, WIDGET_CONFIG, _viewParent);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);\n }\n\n @HostListener('click', ['$event'])\n public openCamera($event) {\n if (hasCordova()) {\n if (this.capturetype === CAPTURE_TYPE.IMAGE) {\n this._cameraOptions = {\n quality : this.imagequality,\n destinationType : 1, // 0-data url,1- file url\n sourceType : 1, // only camera\n allowEdit : this.allowedit,\n correctOrientation: this.correctorientation,\n encodingType : this.imageencodingtype === ENCODING_TYPE.JPEG ? 0 : 1,\n saveToPhotoAlbum : this.savetogallery,\n targetWidth : this.imagetargetwidth,\n targetHeight : this.imagetargetheight\n };\n // start camera\n this.camera.getPicture(this._cameraOptions)\n .then(path => this.updateModel($event, path));\n } else {\n this._cameraOptions = {\n limit: 1\n };\n // start video capture\n this.mediaCapture.captureVideo(this._cameraOptions)\n .then(mediaFiles => this.updateModel($event, mediaFiles[0].fullPath));\n }\n } else {\n this.invokeEventCallback('success', {$event});\n }\n }\n\n private updateModel($event, value) {\n value = (value.startsWith('file://') ? '' : 'file://') + value;\n this.localFilePath = this.datavalue = value;\n convertToBlob(value)\n .then(result => {\n this.localFile = result.blob;\n this.invokeEventCallback('success', {$event, localFilePath: this.localFilePath, localFile: this.localFile});\n }, () => {\n this.localFile = undefined;\n });\n }\n}\n","<i [ngClass]=\"iconclass\" [ngStyle]=\"{'font-size': iconsize}\"></i>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { CameraComponent } from './camera.component';\n\nconst components = [\n CameraComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class CameraModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,WAAW,EACX,IAAI,GAAG,CACH;AACI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,YAAY,CAAA;;wEAAZ,YAAY,GAAA,CAAA,EAAA,CAAA;8DAAZ,YAAY,EAAA,CAAA,CAAA;kEANjB,YAAY;QACZ,kBAAkB,CAAA,EAAA,CAAA,CAAA;;4EAKb,YAAY,EAAA,CAAA;kBARxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,kBAAkB;AACrB,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;iBAC3B,CAAA;;;;6EACY,YAAY,EAAA,EAAA,YAAA,EAAA,CAXrB,eAAe,CAAA,EAAA,OAAA,EAAA,CAKX,YAAY;YACZ,kBAAkB,aANtB,eAAe,CAAA,EAAA,CAAA,CAAA;AAAA,CAAA,GAAA;;ACRnB;;AAEG;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../projects/mobile/components/device/camera/src/camera.props.ts","../../../../../../projects/mobile/components/device/camera/src/camera.component.ts","../../../../../../projects/mobile/components/device/camera/src/camera.component.html","../../../../../../projects/mobile/components/device/camera/src/camera.module.ts","../../../../../../projects/mobile/components/device/camera/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-camera',\n new Map(\n [\n ['allowedit', {value: false, ...PROP_BOOLEAN}],\n ['capturetype', {value: 'IMAGE', ...PROP_STRING}],\n ['caption', {value: '', ...PROP_STRING}],\n ['class', PROP_STRING],\n ['correctorientation', {value: false, ...PROP_BOOLEAN}],\n ['datavalue', {value: '', ...PROP_STRING}],\n ['iconclass', {value: 'wm-sl-l sl-camera', ...PROP_STRING}],\n ['iconsize', {value: '2em', ...PROP_STRING}],\n ['imagequality', {value: 80, ...PROP_NUMBER}],\n ['imageencodingtype', {value: 'JPEG', ...PROP_STRING}],\n ['imagetargetwidth', PROP_NUMBER],\n ['imagetargetheight', PROP_NUMBER],\n ['localFile', {value: '', ...PROP_STRING}],\n ['localFilePath', {value: '', ...PROP_STRING}],\n ['name', PROP_STRING],\n ['savetogallery', {value: false, ...PROP_BOOLEAN}],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['hint', PROP_STRING]\n ]\n )\n );\n};\n","import {ChangeDetectorRef, Component, ElementRef, HostListener, Injector, Optional} from '@angular/core';\n\nimport { Camera } from '@awesome-cordova-plugins/camera/ngx';\nimport { MediaCapture } from '@awesome-cordova-plugins/media-capture/ngx';\n\nimport { APPLY_STYLES_TYPE, IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport {convertToBlob, hasCordova, UserDefinedExecutionContext} from '@wm/core';\n\nimport { registerProps } from './camera.props';\n\nconst DEFAULT_CLS = 'btn app-camera';\nconst WIDGET_CONFIG: IWidgetConfig = {widgetType: 'wm-camera', hostClass: DEFAULT_CLS};\n\nexport enum CAPTURE_TYPE {\n IMAGE = 'IMAGE',\n PNG = 'PNG'\n}\n\nexport enum ENCODING_TYPE {\n JPEG = 'JPEG',\n PNG = 'PNG'\n}\n\n@Component({\n selector: 'button[wmCamera]',\n templateUrl: './camera.component.html',\n providers: [\n provideAsWidgetRef(CameraComponent)\n ],\n exportAs: 'wmCamera'\n})\nexport class CameraComponent extends StylableComponent {\n static initializeProps = registerProps();\n public allowedit: boolean;\n public correctorientation: boolean;\n public capturetype: string;\n public datavalue: string;\n public imagequality: number;\n public imageencodingtype: string;\n public imagetargetwidth: number;\n public imagetargetheight: number;\n public localFile: any;\n public localFilePath: string;\n public savetogallery: boolean;\n public iconsize: any;\n public iconclass: any;\n\n private _cameraOptions: any;\n\n constructor(private camera: Camera, private mediaCapture: MediaCapture, inj: Injector, elRef: ElementRef, cdr: ChangeDetectorRef) {\n super(inj, WIDGET_CONFIG);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);\n }\n\n @HostListener('click', ['$event'])\n public openCamera($event) {\n if (hasCordova()) {\n if (this.capturetype === CAPTURE_TYPE.IMAGE) {\n this._cameraOptions = {\n quality : this.imagequality,\n destinationType : 1, // 0-data url,1- file url\n sourceType : 1, // only camera\n allowEdit : this.allowedit,\n correctOrientation: this.correctorientation,\n encodingType : this.imageencodingtype === ENCODING_TYPE.JPEG ? 0 : 1,\n saveToPhotoAlbum : this.savetogallery,\n targetWidth : this.imagetargetwidth,\n targetHeight : this.imagetargetheight\n };\n // start camera\n this.camera.getPicture(this._cameraOptions)\n .then(path => this.updateModel($event, path));\n } else {\n this._cameraOptions = {\n limit: 1\n };\n // start video capture\n this.mediaCapture.captureVideo(this._cameraOptions)\n .then(mediaFiles => this.updateModel($event, mediaFiles[0].fullPath));\n }\n } else {\n this.invokeEventCallback('success', {$event});\n }\n }\n\n private updateModel($event, value) {\n value = (value.startsWith('file://') ? '' : 'file://') + value;\n this.localFilePath = this.datavalue = value;\n convertToBlob(value)\n .then(result => {\n this.localFile = result.blob;\n this.invokeEventCallback('success', {$event, localFilePath: this.localFilePath, localFile: this.localFile});\n }, () => {\n this.localFile = undefined;\n });\n }\n}\n","<i [ngClass]=\"iconclass\" [ngStyle]=\"{'font-size': iconsize}\"></i>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { CameraComponent } from './camera.component';\n\nconst components = [\n CameraComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class CameraModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,WAAW,EACX,IAAI,GAAG,CACH;AACI,QAAA,CAAC,WAAW,EAAG,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,KAAK,EAAA,EAAK,YAAY,CA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;AACrB,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;iBAC3B,CAAA;;;;6EACY,YAAY,EAAA,EAAA,YAAA,EAAA,CAXrB,eAAe,CAAA,EAAA,OAAA,EAAA,CAKX,YAAY;YACZ,kBAAkB,aANtB,eAAe,CAAA,EAAA,CAAA,CAAA;AAAA,CAAA,GAAA;;ACRnB;;AAEG;;;;"}
@@ -1,11 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Optional, HostListener, NgModule } from '@angular/core';
2
+ import { Component, HostListener, NgModule } from '@angular/core';
3
3
  import * as i1 from '@awesome-cordova-plugins/camera/ngx';
4
4
  import * as i2 from '@awesome-cordova-plugins/media-capture/ngx';
5
5
  import { register, PROP_BOOLEAN, PROP_STRING, PROP_NUMBER, StylableComponent, styler, APPLY_STYLES_TYPE, provideAsWidgetRef, WmComponentsModule } from '@wm/components/base';
6
- import * as i3 from '@wm/core';
7
6
  import { hasCordova, convertToBlob } from '@wm/core';
8
- import * as i4 from '@angular/common';
7
+ import * as i3 from '@angular/common';
9
8
  import { CommonModule } from '@angular/common';
10
9
 
11
10
  const registerProps = () => {
@@ -46,11 +45,10 @@ var ENCODING_TYPE;
46
45
  ENCODING_TYPE["PNG"] = "PNG";
47
46
  })(ENCODING_TYPE || (ENCODING_TYPE = {}));
48
47
  class CameraComponent extends StylableComponent {
49
- constructor(camera, mediaCapture, inj, elRef, cdr, _viewParent) {
50
- super(inj, WIDGET_CONFIG, _viewParent);
48
+ constructor(camera, mediaCapture, inj, elRef, cdr) {
49
+ super(inj, WIDGET_CONFIG);
51
50
  this.camera = camera;
52
51
  this.mediaCapture = mediaCapture;
53
- this._viewParent = _viewParent;
54
52
  styler(this.nativeElement, this, APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);
55
53
  }
56
54
  openCamera($event) {
@@ -97,7 +95,7 @@ class CameraComponent extends StylableComponent {
97
95
  }
98
96
  }
99
97
  CameraComponent.initializeProps = registerProps();
100
- CameraComponent.ɵfac = function CameraComponent_Factory(t) { return new (t || CameraComponent)(i0.ɵɵdirectiveInject(i1.Camera), i0.ɵɵdirectiveInject(i2.MediaCapture), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i3.UserDefinedExecutionContext, 8)); };
98
+ CameraComponent.ɵfac = function CameraComponent_Factory(t) { return new (t || CameraComponent)(i0.ɵɵdirectiveInject(i1.Camera), i0.ɵɵdirectiveInject(i2.MediaCapture), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
101
99
  CameraComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CameraComponent, selectors: [["button", "wmCamera", ""]], hostBindings: function CameraComponent_HostBindings(rf, ctx) { if (rf & 1) {
102
100
  i0.ɵɵlistener("click", function CameraComponent_click_HostBindingHandler($event) { return ctx.openCamera($event); });
103
101
  } }, exportAs: ["wmCamera"], features: [i0.ɵɵProvidersFeature([
@@ -106,15 +104,13 @@ CameraComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CameraCompo
106
104
  i0.ɵɵelement(0, "i", 0);
107
105
  } if (rf & 2) {
108
106
  i0.ɵɵproperty("ngClass", ctx.iconclass)("ngStyle", i0.ɵɵpureFunction1(2, _c1, ctx.iconsize));
109
- } }, dependencies: [i4.NgClass, i4.NgStyle], encapsulation: 2 });
107
+ } }, dependencies: [i3.NgClass, i3.NgStyle], encapsulation: 2 });
110
108
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CameraComponent, [{
111
109
  type: Component,
112
110
  args: [{ selector: 'button[wmCamera]', providers: [
113
111
  provideAsWidgetRef(CameraComponent)
114
112
  ], exportAs: 'wmCamera', template: "<i [ngClass]=\"iconclass\" [ngStyle]=\"{'font-size': iconsize}\"></i>" }]
115
- }], function () { return [{ type: i1.Camera }, { type: i2.MediaCapture }, { type: i0.Injector }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i3.UserDefinedExecutionContext, decorators: [{
116
- type: Optional
117
- }] }]; }, { openCamera: [{
113
+ }], function () { return [{ type: i1.Camera }, { type: i2.MediaCapture }, { type: i0.Injector }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, { openCamera: [{
118
114
  type: HostListener,
119
115
  args: ['click', ['$event']]
120
116
  }] }); })();
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../../projects/mobile/components/device/camera/src/camera.props.ts","../../../../../../projects/mobile/components/device/camera/src/camera.component.ts","../../../../../../projects/mobile/components/device/camera/src/camera.component.html","../../../../../../projects/mobile/components/device/camera/src/camera.module.ts","../../../../../../projects/mobile/components/device/camera/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-camera',\n new Map(\n [\n ['allowedit', {value: false, ...PROP_BOOLEAN}],\n ['capturetype', {value: 'IMAGE', ...PROP_STRING}],\n ['caption', {value: '', ...PROP_STRING}],\n ['class', PROP_STRING],\n ['correctorientation', {value: false, ...PROP_BOOLEAN}],\n ['datavalue', {value: '', ...PROP_STRING}],\n ['iconclass', {value: 'wm-sl-l sl-camera', ...PROP_STRING}],\n ['iconsize', {value: '2em', ...PROP_STRING}],\n ['imagequality', {value: 80, ...PROP_NUMBER}],\n ['imageencodingtype', {value: 'JPEG', ...PROP_STRING}],\n ['imagetargetwidth', PROP_NUMBER],\n ['imagetargetheight', PROP_NUMBER],\n ['localFile', {value: '', ...PROP_STRING}],\n ['localFilePath', {value: '', ...PROP_STRING}],\n ['name', PROP_STRING],\n ['savetogallery', {value: false, ...PROP_BOOLEAN}],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['hint', PROP_STRING]\n ]\n )\n );\n};\n","import {ChangeDetectorRef, Component, ElementRef, HostListener, Injector, Optional} from '@angular/core';\n\nimport { Camera } from '@awesome-cordova-plugins/camera/ngx';\nimport { MediaCapture } from '@awesome-cordova-plugins/media-capture/ngx';\n\nimport { APPLY_STYLES_TYPE, IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport {convertToBlob, hasCordova, UserDefinedExecutionContext} from '@wm/core';\n\nimport { registerProps } from './camera.props';\n\nconst DEFAULT_CLS = 'btn app-camera';\nconst WIDGET_CONFIG: IWidgetConfig = {widgetType: 'wm-camera', hostClass: DEFAULT_CLS};\n\nexport enum CAPTURE_TYPE {\n IMAGE = 'IMAGE',\n PNG = 'PNG'\n}\n\nexport enum ENCODING_TYPE {\n JPEG = 'JPEG',\n PNG = 'PNG'\n}\n\n@Component({\n selector: 'button[wmCamera]',\n templateUrl: './camera.component.html',\n providers: [\n provideAsWidgetRef(CameraComponent)\n ],\n exportAs: 'wmCamera'\n})\nexport class CameraComponent extends StylableComponent {\n static initializeProps = registerProps();\n public allowedit: boolean;\n public correctorientation: boolean;\n public capturetype: string;\n public datavalue: string;\n public imagequality: number;\n public imageencodingtype: string;\n public imagetargetwidth: number;\n public imagetargetheight: number;\n public localFile: any;\n public localFilePath: string;\n public savetogallery: boolean;\n public iconsize: any;\n public iconclass: any;\n\n private _cameraOptions: any;\n\n constructor(private camera: Camera, private mediaCapture: MediaCapture, inj: Injector, elRef: ElementRef, cdr: ChangeDetectorRef, @Optional() public _viewParent: UserDefinedExecutionContext) {\n super(inj, WIDGET_CONFIG, _viewParent);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);\n }\n\n @HostListener('click', ['$event'])\n public openCamera($event) {\n if (hasCordova()) {\n if (this.capturetype === CAPTURE_TYPE.IMAGE) {\n this._cameraOptions = {\n quality : this.imagequality,\n destinationType : 1, // 0-data url,1- file url\n sourceType : 1, // only camera\n allowEdit : this.allowedit,\n correctOrientation: this.correctorientation,\n encodingType : this.imageencodingtype === ENCODING_TYPE.JPEG ? 0 : 1,\n saveToPhotoAlbum : this.savetogallery,\n targetWidth : this.imagetargetwidth,\n targetHeight : this.imagetargetheight\n };\n // start camera\n this.camera.getPicture(this._cameraOptions)\n .then(path => this.updateModel($event, path));\n } else {\n this._cameraOptions = {\n limit: 1\n };\n // start video capture\n this.mediaCapture.captureVideo(this._cameraOptions)\n .then(mediaFiles => this.updateModel($event, mediaFiles[0].fullPath));\n }\n } else {\n this.invokeEventCallback('success', {$event});\n }\n }\n\n private updateModel($event, value) {\n value = (value.startsWith('file://') ? '' : 'file://') + value;\n this.localFilePath = this.datavalue = value;\n convertToBlob(value)\n .then(result => {\n this.localFile = result.blob;\n this.invokeEventCallback('success', {$event, localFilePath: this.localFilePath, localFile: this.localFile});\n }, () => {\n this.localFile = undefined;\n });\n }\n}\n","<i [ngClass]=\"iconclass\" [ngStyle]=\"{'font-size': iconsize}\"></i>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { CameraComponent } from './camera.component';\n\nconst components = [\n CameraComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class CameraModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,WAAW,EACX,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,GAAG,YAAY,EAAC,CAAC;QAC9C,CAAC,aAAa,EAAE,EAAC,KAAK,EAAE,OAAO,EAAE,GAAG,WAAW,EAAC,CAAC;QACjD,CAAC,SAAS,EAAE,EAAC,KAAK,EAAE,EAAE,EAAE,GAAG,W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.props.ts","../../../../../../projects/mobile/components/device/camera/src/camera.component.ts","../../../../../../projects/mobile/components/device/camera/src/camera.component.html","../../../../../../projects/mobile/components/device/camera/src/camera.module.ts","../../../../../../projects/mobile/components/device/camera/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-camera',\n new Map(\n [\n ['allowedit', {value: false, ...PROP_BOOLEAN}],\n ['capturetype', {value: 'IMAGE', ...PROP_STRING}],\n ['caption', {value: '', ...PROP_STRING}],\n ['class', PROP_STRING],\n ['correctorientation', {value: false, ...PROP_BOOLEAN}],\n ['datavalue', {value: '', ...PROP_STRING}],\n ['iconclass', {value: 'wm-sl-l sl-camera', ...PROP_STRING}],\n ['iconsize', {value: '2em', ...PROP_STRING}],\n ['imagequality', {value: 80, ...PROP_NUMBER}],\n ['imageencodingtype', {value: 'JPEG', ...PROP_STRING}],\n ['imagetargetwidth', PROP_NUMBER],\n ['imagetargetheight', PROP_NUMBER],\n ['localFile', {value: '', ...PROP_STRING}],\n ['localFilePath', {value: '', ...PROP_STRING}],\n ['name', PROP_STRING],\n ['savetogallery', {value: false, ...PROP_BOOLEAN}],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['hint', PROP_STRING]\n ]\n )\n );\n};\n","import {ChangeDetectorRef, Component, ElementRef, HostListener, Injector, Optional} from '@angular/core';\n\nimport { Camera } from '@awesome-cordova-plugins/camera/ngx';\nimport { MediaCapture } from '@awesome-cordova-plugins/media-capture/ngx';\n\nimport { APPLY_STYLES_TYPE, IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport {convertToBlob, hasCordova, UserDefinedExecutionContext} from '@wm/core';\n\nimport { registerProps } from './camera.props';\n\nconst DEFAULT_CLS = 'btn app-camera';\nconst WIDGET_CONFIG: IWidgetConfig = {widgetType: 'wm-camera', hostClass: DEFAULT_CLS};\n\nexport enum CAPTURE_TYPE {\n IMAGE = 'IMAGE',\n PNG = 'PNG'\n}\n\nexport enum ENCODING_TYPE {\n JPEG = 'JPEG',\n PNG = 'PNG'\n}\n\n@Component({\n selector: 'button[wmCamera]',\n templateUrl: './camera.component.html',\n providers: [\n provideAsWidgetRef(CameraComponent)\n ],\n exportAs: 'wmCamera'\n})\nexport class CameraComponent extends StylableComponent {\n static initializeProps = registerProps();\n public allowedit: boolean;\n public correctorientation: boolean;\n public capturetype: string;\n public datavalue: string;\n public imagequality: number;\n public imageencodingtype: string;\n public imagetargetwidth: number;\n public imagetargetheight: number;\n public localFile: any;\n public localFilePath: string;\n public savetogallery: boolean;\n public iconsize: any;\n public iconclass: any;\n\n private _cameraOptions: any;\n\n constructor(private camera: Camera, private mediaCapture: MediaCapture, inj: Injector, elRef: ElementRef, cdr: ChangeDetectorRef) {\n super(inj, WIDGET_CONFIG);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);\n }\n\n @HostListener('click', ['$event'])\n public openCamera($event) {\n if (hasCordova()) {\n if (this.capturetype === CAPTURE_TYPE.IMAGE) {\n this._cameraOptions = {\n quality : this.imagequality,\n destinationType : 1, // 0-data url,1- file url\n sourceType : 1, // only camera\n allowEdit : this.allowedit,\n correctOrientation: this.correctorientation,\n encodingType : this.imageencodingtype === ENCODING_TYPE.JPEG ? 0 : 1,\n saveToPhotoAlbum : this.savetogallery,\n targetWidth : this.imagetargetwidth,\n targetHeight : this.imagetargetheight\n };\n // start camera\n this.camera.getPicture(this._cameraOptions)\n .then(path => this.updateModel($event, path));\n } else {\n this._cameraOptions = {\n limit: 1\n };\n // start video capture\n this.mediaCapture.captureVideo(this._cameraOptions)\n .then(mediaFiles => this.updateModel($event, mediaFiles[0].fullPath));\n }\n } else {\n this.invokeEventCallback('success', {$event});\n }\n }\n\n private updateModel($event, value) {\n value = (value.startsWith('file://') ? '' : 'file://') + value;\n this.localFilePath = this.datavalue = value;\n convertToBlob(value)\n .then(result => {\n this.localFile = result.blob;\n this.invokeEventCallback('success', {$event, localFilePath: this.localFilePath, localFile: this.localFile});\n }, () => {\n this.localFile = undefined;\n });\n }\n}\n","<i [ngClass]=\"iconclass\" [ngStyle]=\"{'font-size': iconsize}\"></i>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { CameraComponent } from './camera.component';\n\nconst components = [\n CameraComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class CameraModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,WAAW,EACX,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,GAAG,YAAY,EAAC,CAAC;QAC9C,CAAC,aAAa,EAAE,EAAC,KAAK,EAAE,OAAO,EAAE,GAAG,WAAW,EAAC,CAAC;QACjD,CAAC,SAAS,EAAE,EAAC,KAAK,EAAE,EAAE,EAAE,GAAG,WAAW,EAAC,CAAC;QACxC,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,oBAAoB,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,GAAG,YAAY,EAAC,CAAC;QACvD,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,EAAE,EAAE,GAAG,WAAW,EAAC,CAAC;QAC1C,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,mBAAmB,EAAE,GAAG,WAAW,EAAC,CAAC;QAC3D,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,GAAG,WAAW,EAAC,CAAC;QAC5C,CAAC,cAAc,EAAE,EAAC,KAAK,EAAE,EAAE,EAAE,GAAG,WAAW,EAAC,CAAC;QAC7C,CAAC,mBAAmB,EAAE,EAAC,KAAK,EAAE,MAAM,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DAAZ,YAAY,EAAA,CAAA,CAAA;kEANjB,YAAY;QACZ,kBAAkB,CAAA,EAAA,CAAA,CAAA;uFAKb,YAAY,EAAA,CAAA;cARxB,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,OAAO,EAAE;oBACL,YAAY;oBACZ,kBAAkB;AACrB,iBAAA;AACD,gBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,aAAA,CAAA;;wFACY,YAAY,EAAA,EAAA,YAAA,EAAA,CAXrB,eAAe,CAAA,EAAA,OAAA,EAAA,CAKX,YAAY;AACZ,QAAA,kBAAkB,aANtB,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACRnB;;AAEG;;;;"}
@@ -166,13 +166,12 @@
166
166
  this._datasource = nv;
167
167
  this.searchComponent.datasource = nv;
168
168
  }
169
- constructor(app, page, deviceService, navigationService, inj, backbtnClickEvt, _viewParent) {
170
- super(inj, WIDGET_CONFIG, _viewParent);
169
+ constructor(app, page, deviceService, navigationService, inj, backbtnClickEvt) {
170
+ super(inj, WIDGET_CONFIG);
171
171
  this.page = page;
172
172
  this.deviceService = deviceService;
173
173
  this.navigationService = navigationService;
174
174
  this.backbtnClickEvt = backbtnClickEvt;
175
- this._viewParent = _viewParent;
176
175
  this._isReady = false;
177
176
  page.subscribe('wmLeftPanel:ready', (leftNavPanel) => {
178
177
  if (this.showLeftnavbtn) {
@@ -269,7 +268,7 @@
269
268
  }
270
269
  }
271
270
  MobileNavbarComponent.initializeProps = registerProps();
272
- MobileNavbarComponent.ɵfac = function MobileNavbarComponent_Factory(t) { return new (t || MobileNavbarComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace.App), i0__namespace.ɵɵdirectiveInject(i2__namespace.PageDirective), i0__namespace.ɵɵdirectiveInject(i3__namespace.DeviceService), i0__namespace.ɵɵdirectiveInject(i1__namespace.AbstractNavigationService), i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵinjectAttribute('backbtnclick.event'), i0__namespace.ɵɵdirectiveInject(i1__namespace.UserDefinedExecutionContext, 8)); };
271
+ MobileNavbarComponent.ɵfac = function MobileNavbarComponent_Factory(t) { return new (t || MobileNavbarComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace.App), i0__namespace.ɵɵdirectiveInject(i2__namespace.PageDirective), i0__namespace.ɵɵdirectiveInject(i3__namespace.DeviceService), i0__namespace.ɵɵdirectiveInject(i1__namespace.AbstractNavigationService), i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵinjectAttribute('backbtnclick.event')); };
273
272
  MobileNavbarComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: MobileNavbarComponent, selectors: [["header", "wmMobileNavbar", ""]], viewQuery: function MobileNavbarComponent_Query(rf, ctx) {
274
273
  if (rf & 1) {
275
274
  i0__namespace.ɵɵviewQuery(i5.SearchComponent, 7);
@@ -314,8 +313,6 @@
314
313
  return [{ type: i1__namespace.App }, { type: i2__namespace.PageDirective }, { type: i3__namespace.DeviceService }, { type: i1__namespace.AbstractNavigationService }, { type: i0__namespace.Injector }, { type: undefined, decorators: [{
315
314
  type: i0.Attribute,
316
315
  args: ['backbtnclick.event']
317
- }] }, { type: i1__namespace.UserDefinedExecutionContext, decorators: [{
318
- type: i0.Optional
319
316
  }] }];
320
317
  }, { searchComponent: [{
321
318
  type: i0.ViewChild,