@wavemaker/app-ng-runtime 11.4.1-next.141653 → 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 -66
  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 -12
  400. app-ng-runtime/components/page/default/fesm2015/index.mjs +26 -60
  401. app-ng-runtime/components/page/default/fesm2015/index.mjs.map +1 -1
  402. app-ng-runtime/components/page/default/fesm2020/index.mjs +26 -48
  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
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/advanced/carousel/src/carousel.props.ts","../../../../../projects/components/widgets/advanced/carousel/src/carousel.animator.ts","../../../../../projects/components/widgets/advanced/carousel/src/carousel.directive.ts","../../../../../projects/components/widgets/advanced/carousel/src/carousel-template/carousel-template.props.ts","../../../../../projects/components/widgets/advanced/carousel/src/carousel-template/carousel-template.directive.ts","../../../../../projects/components/widgets/advanced/carousel/src/carousel.module.ts","../../../../../projects/components/widgets/advanced/carousel/src/index.ts"],"sourcesContent":["import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-carousel',\n new Map(\n [\n ['animation', {value: 'auto', ... PROP_STRING}],\n ['animationinterval', {value: 3, ... PROP_NUMBER}],\n ['controls', {value: 'both', ... PROP_STRING}],\n ['dataset', PROP_ANY],\n ['name', PROP_STRING],\n ['nodatamessage', {value: 'No Data Found', ... PROP_STRING}],\n ['show', PROP_BOOLEAN]\n ]\n )\n );\n};\n","import { NgZone } from '@angular/core';\n\nimport { SwipeAnimation } from '@swipey';\n\nimport { CarouselDirective } from './carousel.directive';\n\ndeclare const $;\ndeclare const _;\n\nexport class CarouselAnimator extends SwipeAnimation {\n\n private _$el;\n private _activeIndex = 0;\n private _animationPaused = false;\n private _indicators;\n private _items;\n private _intervalId;\n private _pauseCaroselTill = 0;\n private _swiping;\n private _width;\n private _oldIndex = 0;\n\n public constructor(private carousel: CarouselDirective, private interval: number, private ngZone: NgZone) {\n super();\n const self = this;\n this._$el = $(this.carousel.getNativeElement()).find('>.carousel');\n this.init(this._$el.find('>.carousel-inner'));\n this._items = this._$el.find('>.carousel-inner >.carousel-item');\n this._indicators = this._$el.find('>.carousel-indicators');\n this._indicators.find('li').each(function (i) {\n $(this).on('click', () => {\n self._activeIndex = i;\n self.setActiveItem();\n // WMS-17583: Triggering onChange event\n self.carousel.onChangeCB(self._activeIndex, self._oldIndex);\n self._oldIndex = self._activeIndex;\n });\n });\n this._$el.find('>.left.carousel-control').on('click', () => {\n // WMS-22278, If a swipe is already in process do not process other events\n if (this._swiping) {\n return;\n }\n this._pauseCaroselTill = Date.now() + this.interval;\n this.goToUpper();\n });\n this._$el.find('>.right.carousel-control').on('click', () => {\n // WMS-22278, If a swipe is already in process do not process other events\n if (this._swiping) {\n return;\n }\n this._pauseCaroselTill = Date.now() + this.interval;\n this.goToLower();\n });\n this.setActiveItem();\n if (this.interval) {\n this.start();\n }\n this._$el.find('>.left.carousel-control').append('<span class=\"sr-only\">Previous</span>');\n }\n\n public bounds() {\n this._width = this._items.width();\n this._swiping = true;\n return {\n 'lower': -this._width,\n 'center': 0,\n 'upper': this._width\n };\n }\n\n public context() {\n return {\n 'w': this._width\n };\n }\n\n\n public animation() {\n return [{\n 'target': this.getTarget.bind(this),\n 'css': {\n 'transform': 'translate3d(${{ (($D + $d) / w) * 100 + \\'%\\'}}, 0, 0)',\n '-webkit-transform': 'translate3d(${{ (($D + $d) / w) * 100 + \\'%\\'}}, 0, 0)'\n }\n }];\n }\n\n public onUpper() {\n this.resetTransition();\n this._activeIndex -= 1;\n this.setActiveItem();\n this._swiping = false;\n }\n\n public onLower() {\n this.resetTransition();\n this._activeIndex += 1;\n this.setActiveItem();\n this._swiping = false;\n }\n\n public onAnimation() {\n const newIndex = (this._items.length + this._activeIndex) % this._items.length;\n this.carousel.onChangeCB(newIndex, this._oldIndex);\n this._oldIndex = newIndex;\n const activeElementIndex = _.findIndex(this._items, this._$el.find('>.carousel-inner >.carousel-item.active')[0]);\n this._$el.find('>.left.carousel-control').attr('aria-label', (activeElementIndex === 0 ? this._items.length : activeElementIndex) + ' of ' + this._items.length);\n this._$el.find('>.right.carousel-control').attr('aria-label', (activeElementIndex === this._items.length - 1 ? 1 : activeElementIndex + 2) + ' of ' + this._items.length);\n }\n\n public start() {\n this.ngZone.runOutsideAngular(() => {\n this._intervalId = setInterval(() => {\n if (!this._swiping && this._pauseCaroselTill < Date.now()) {\n this.goToLower(600);\n }\n }, this.interval);\n });\n }\n\n public pause() {\n this._animationPaused = true;\n if (!this._intervalId) {\n this.start();\n }\n }\n\n public resume() {\n this._animationPaused = false;\n }\n\n public stop() {\n if (this._intervalId) {\n clearInterval(this._intervalId);\n this._intervalId = 0;\n }\n }\n\n public threshold() {\n return 5;\n }\n\n // Returns multiple elements as single jQuery element.\n private getTarget() {\n const noOfItems = this._items.length,\n activeItem = this._items.eq((noOfItems + this._activeIndex) % noOfItems),\n leftItem = this._items.eq((noOfItems + this._activeIndex - 1) % noOfItems),\n rightItem = this._items.eq((noOfItems + this._activeIndex + 1) % noOfItems);\n return activeItem.add(rightItem).add(leftItem);\n }\n\n private resetTransition() {\n this.getTarget().css({\n '-webkit-transition': 'none',\n '-webkit-transform': '',\n 'transition': 'none',\n 'transform': ''\n });\n }\n\n // Sets active item, leftItem, rightItem by removing / adding respective classes.\n private setActiveItem() {\n const items = this._items,\n left = this._activeIndex - 1,\n right = this._activeIndex + 1;\n // if there is only one carousel-item then there won't be any right or left-item.\n if (items.length === 1) {\n items.eq(0).removeClass('left-item right-item');\n return;\n }\n\n this._indicators.find('>.active').removeClass('active');\n this._indicators.find('> li').eq((items.length + this._activeIndex) % items.length).addClass('active');\n\n\n items.filter('.active').removeClass('active');\n items.addClass('left-item');\n items.eq((items.length + left) % items.length).addClass('left-item').removeClass('right-item');\n items.eq((items.length + this._activeIndex) % items.length).removeClass('left-item right-item').addClass('active');\n items.eq((items.length + right) % items.length).addClass('right-item').removeClass('left-item');\n }\n}\n","import {\n AfterContentInit,\n ContentChildren,\n Directive,\n Injector,\n NgZone,\n OnDestroy,\n OnInit,\n Optional,\n QueryList\n} from '@angular/core';\n\nimport { CarouselComponent, SlideComponent } from 'ngx-bootstrap/carousel';\n\nimport { createArrayFrom, IWidgetConfig, StylableComponent, styler } from '@wm/components/base';\n\nimport { registerProps } from './carousel.props';\nimport { CarouselAnimator } from './carousel.animator';\nimport {UserDefinedExecutionContext} from '@wm/core';\n\ndeclare const _;\n\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-carousel'\n};\n\nconst navigationClassMap = {\n indicators: 'hide-navs',\n navs: 'hide-indicators',\n none: 'hide-both'\n};\n\n@Directive({\n selector: '[wmCarousel]',\n exportAs: 'wmCarousel'\n})\nexport class CarouselDirective extends StylableComponent implements AfterContentInit, OnDestroy, OnInit {\n static initializeProps = registerProps();\n\n private animator;\n private navigationClass;\n private fieldDefs;\n private interval;\n\n public animationinterval;\n public animation;\n public controls;\n public currentslide;\n public previousslide;\n\n @ContentChildren(SlideComponent) slides: QueryList<SlideComponent>;\n\n constructor(public component: CarouselComponent, inj: Injector, private ngZone: NgZone, @Optional() public _viewParent: UserDefinedExecutionContext) {\n super(inj, WIDGET_CONFIG, _viewParent);\n styler(this.nativeElement, this);\n }\n\n private onDataChange(newVal) {\n this.fieldDefs = createArrayFrom(newVal);\n }\n\n private stopAnimation() {\n if (this.animator) {\n this.animator.stop();\n }\n }\n\n private startAnimation() {\n if (this.animator) {\n this.animator.interval = this.animationinterval * 1000;\n this.animator.start();\n }\n }\n\n private onSlidesRender(slides) {\n // if dynamic carousel, initialize the 'currentslide' property as the first object\n if (this.fieldDefs && this.fieldDefs.length) {\n this.currentslide = this.fieldDefs[0];\n }\n if (slides.length) {\n setTimeout(() => {\n this.animator = new CarouselAnimator(this, this.interval, this.ngZone);\n }, 50);\n }\n }\n\n private setupHandlers() {\n this.slides.changes.subscribe( slides => {\n this.triggerAnimation(slides);\n });\n this.slides.setDirty();\n }\n\n public onChangeCB(newIndex, oldIndex) {\n // assign current and previous slides on widget. In case of static carousel, fieldDefs will be undefined, hence the check\n this.currentslide = this.fieldDefs && this.fieldDefs[newIndex];\n this.previousslide = this.fieldDefs && this.fieldDefs[oldIndex];\n this.invokeEventCallback('change', {newIndex: newIndex, oldIndex: oldIndex});\n }\n\n ngAfterContentInit() {\n this.triggerAnimation(this.slides);\n this.setupHandlers();\n }\n\n ngOnDestroy() {\n this.stopAnimation();\n super.ngOnDestroy();\n }\n\n // Calculating animation interval if animation is enabled\n setanimationinterval() {\n this.interval = this.animation === 'auto' ? this.animationinterval * 1000 : 0 ;\n }\n\n triggerAnimation(slides) {\n this.stopAnimation();\n this.onSlidesRender(slides);\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.setanimationinterval();\n // TODO transition is pending\n\n }\n\n // on property change handler\n onPropertyChange(key: string, nv: any, ov?: any) {\n if (key === 'dataset') {\n this.onDataChange(nv);\n } else if (key === 'controls') {\n // For showing controls\n this.navigationClass = navigationClassMap[this.controls];\n } else if (key === 'animation' || key === 'animationinterval') {\n if (key === 'animationinterval') {\n this.stopAnimation();\n this.setanimationinterval();\n }\n this.animation === 'none' ? this.stopAnimation() : this.startAnimation();\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n}\n","import { PROP_BOOLEAN, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-carousel-template',\n new Map(\n [\n ['show', PROP_BOOLEAN]\n ]\n )\n );\n};\n","import {Directive, Injector, Optional} from '@angular/core';\n\nimport { IWidgetConfig, StylableComponent, styler } from '@wm/components/base';\nimport { registerProps } from './carousel-template.props';\nimport {UserDefinedExecutionContext} from '@wm/core';\n\nconst DEFAULT_CLS = 'app-carousel-item';\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-carousel-template',\n hostClass: DEFAULT_CLS\n};\n\n@Directive({\n selector: '[wmCarouselTemplate]'\n})\nexport class CarouselTemplateDirective extends StylableComponent {\n static initializeProps = registerProps();\n\n constructor(inj: Injector, @Optional() public _viewParent: UserDefinedExecutionContext) {\n super(inj, WIDGET_CONFIG, _viewParent);\n styler(this.nativeElement, this);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { CarouselModule as ngxCarouselModule } from 'ngx-bootstrap/carousel';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { CarouselDirective } from './carousel.directive';\nimport { CarouselTemplateDirective } from './carousel-template/carousel-template.directive';\n\nconst components = [\n CarouselDirective,\n CarouselTemplateDirective\n];\n\n@NgModule({\n imports: [\n CommonModule,\n ngxCarouselModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class CarouselModule {\n}\n","/**\n * Generated bundle index. Do not edit.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AAyB,aAKrB,YAAY;QACZA,gBAAiB;AACjB,QAAA,kBAAkB,aARtB,iBAAiB;QACjB,yBAAyB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACZ7B;;AAEG;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/advanced/carousel/src/carousel.props.ts","../../../../../projects/components/widgets/advanced/carousel/src/carousel.animator.ts","../../../../../projects/components/widgets/advanced/carousel/src/carousel.directive.ts","../../../../../projects/components/widgets/advanced/carousel/src/carousel-template/carousel-template.props.ts","../../../../../projects/components/widgets/advanced/carousel/src/carousel-template/carousel-template.directive.ts","../../../../../projects/components/widgets/advanced/carousel/src/carousel.module.ts","../../../../../projects/components/widgets/advanced/carousel/src/index.ts"],"sourcesContent":["import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-carousel',\n new Map(\n [\n ['animation', {value: 'auto', ... PROP_STRING}],\n ['animationinterval', {value: 3, ... PROP_NUMBER}],\n ['controls', {value: 'both', ... PROP_STRING}],\n ['dataset', PROP_ANY],\n ['name', PROP_STRING],\n ['nodatamessage', {value: 'No Data Found', ... PROP_STRING}],\n ['show', PROP_BOOLEAN]\n ]\n )\n );\n};\n","import { NgZone } from '@angular/core';\n\nimport { SwipeAnimation } from '@swipey';\n\nimport { CarouselDirective } from './carousel.directive';\n\ndeclare const $;\ndeclare const _;\n\nexport class CarouselAnimator extends SwipeAnimation {\n\n private _$el;\n private _activeIndex = 0;\n private _animationPaused = false;\n private _indicators;\n private _items;\n private _intervalId;\n private _pauseCaroselTill = 0;\n private _swiping;\n private _width;\n private _oldIndex = 0;\n\n public constructor(private carousel: CarouselDirective, private interval: number, private ngZone: NgZone) {\n super();\n const self = this;\n this._$el = $(this.carousel.getNativeElement()).find('>.carousel');\n this.init(this._$el.find('>.carousel-inner'));\n this._items = this._$el.find('>.carousel-inner >.carousel-item');\n this._indicators = this._$el.find('>.carousel-indicators');\n this._indicators.find('li').each(function (i) {\n $(this).on('click', () => {\n self._activeIndex = i;\n self.setActiveItem();\n // WMS-17583: Triggering onChange event\n self.carousel.onChangeCB(self._activeIndex, self._oldIndex);\n self._oldIndex = self._activeIndex;\n });\n });\n this._$el.find('>.left.carousel-control').on('click', () => {\n // WMS-22278, If a swipe is already in process do not process other events\n if (this._swiping) {\n return;\n }\n this._pauseCaroselTill = Date.now() + this.interval;\n this.goToUpper();\n });\n this._$el.find('>.right.carousel-control').on('click', () => {\n // WMS-22278, If a swipe is already in process do not process other events\n if (this._swiping) {\n return;\n }\n this._pauseCaroselTill = Date.now() + this.interval;\n this.goToLower();\n });\n this.setActiveItem();\n if (this.interval) {\n this.start();\n }\n this._$el.find('>.left.carousel-control').append('<span class=\"sr-only\">Previous</span>');\n }\n\n public bounds() {\n this._width = this._items.width();\n this._swiping = true;\n return {\n 'lower': -this._width,\n 'center': 0,\n 'upper': this._width\n };\n }\n\n public context() {\n return {\n 'w': this._width\n };\n }\n\n\n public animation() {\n return [{\n 'target': this.getTarget.bind(this),\n 'css': {\n 'transform': 'translate3d(${{ (($D + $d) / w) * 100 + \\'%\\'}}, 0, 0)',\n '-webkit-transform': 'translate3d(${{ (($D + $d) / w) * 100 + \\'%\\'}}, 0, 0)'\n }\n }];\n }\n\n public onUpper() {\n this.resetTransition();\n this._activeIndex -= 1;\n this.setActiveItem();\n this._swiping = false;\n }\n\n public onLower() {\n this.resetTransition();\n this._activeIndex += 1;\n this.setActiveItem();\n this._swiping = false;\n }\n\n public onAnimation() {\n const newIndex = (this._items.length + this._activeIndex) % this._items.length;\n this.carousel.onChangeCB(newIndex, this._oldIndex);\n this._oldIndex = newIndex;\n const activeElementIndex = _.findIndex(this._items, this._$el.find('>.carousel-inner >.carousel-item.active')[0]);\n this._$el.find('>.left.carousel-control').attr('aria-label', (activeElementIndex === 0 ? this._items.length : activeElementIndex) + ' of ' + this._items.length);\n this._$el.find('>.right.carousel-control').attr('aria-label', (activeElementIndex === this._items.length - 1 ? 1 : activeElementIndex + 2) + ' of ' + this._items.length);\n }\n\n public start() {\n this.ngZone.runOutsideAngular(() => {\n this._intervalId = setInterval(() => {\n if (!this._swiping && this._pauseCaroselTill < Date.now()) {\n this.goToLower(600);\n }\n }, this.interval);\n });\n }\n\n public pause() {\n this._animationPaused = true;\n if (!this._intervalId) {\n this.start();\n }\n }\n\n public resume() {\n this._animationPaused = false;\n }\n\n public stop() {\n if (this._intervalId) {\n clearInterval(this._intervalId);\n this._intervalId = 0;\n }\n }\n\n public threshold() {\n return 5;\n }\n\n // Returns multiple elements as single jQuery element.\n private getTarget() {\n const noOfItems = this._items.length,\n activeItem = this._items.eq((noOfItems + this._activeIndex) % noOfItems),\n leftItem = this._items.eq((noOfItems + this._activeIndex - 1) % noOfItems),\n rightItem = this._items.eq((noOfItems + this._activeIndex + 1) % noOfItems);\n return activeItem.add(rightItem).add(leftItem);\n }\n\n private resetTransition() {\n this.getTarget().css({\n '-webkit-transition': 'none',\n '-webkit-transform': '',\n 'transition': 'none',\n 'transform': ''\n });\n }\n\n // Sets active item, leftItem, rightItem by removing / adding respective classes.\n private setActiveItem() {\n const items = this._items,\n left = this._activeIndex - 1,\n right = this._activeIndex + 1;\n // if there is only one carousel-item then there won't be any right or left-item.\n if (items.length === 1) {\n items.eq(0).removeClass('left-item right-item');\n return;\n }\n\n this._indicators.find('>.active').removeClass('active');\n this._indicators.find('> li').eq((items.length + this._activeIndex) % items.length).addClass('active');\n\n\n items.filter('.active').removeClass('active');\n items.addClass('left-item');\n items.eq((items.length + left) % items.length).addClass('left-item').removeClass('right-item');\n items.eq((items.length + this._activeIndex) % items.length).removeClass('left-item right-item').addClass('active');\n items.eq((items.length + right) % items.length).addClass('right-item').removeClass('left-item');\n }\n}\n","import {\n AfterContentInit,\n ContentChildren,\n Directive,\n Injector,\n NgZone,\n OnDestroy,\n OnInit,\n Optional,\n QueryList\n} from '@angular/core';\n\nimport { CarouselComponent, SlideComponent } from 'ngx-bootstrap/carousel';\n\nimport { createArrayFrom, IWidgetConfig, StylableComponent, styler } from '@wm/components/base';\n\nimport { registerProps } from './carousel.props';\nimport { CarouselAnimator } from './carousel.animator';\nimport {UserDefinedExecutionContext} from '@wm/core';\n\ndeclare const _;\n\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-carousel'\n};\n\nconst navigationClassMap = {\n indicators: 'hide-navs',\n navs: 'hide-indicators',\n none: 'hide-both'\n};\n\n@Directive({\n selector: '[wmCarousel]',\n exportAs: 'wmCarousel'\n})\nexport class CarouselDirective extends StylableComponent implements AfterContentInit, OnDestroy, OnInit {\n static initializeProps = registerProps();\n\n private animator;\n private navigationClass;\n private fieldDefs;\n private interval;\n\n public animationinterval;\n public animation;\n public controls;\n public currentslide;\n public previousslide;\n\n @ContentChildren(SlideComponent) slides: QueryList<SlideComponent>;\n\n constructor(public component: CarouselComponent, inj: Injector, private ngZone: NgZone) {\n super(inj, WIDGET_CONFIG);\n styler(this.nativeElement, this);\n }\n\n private onDataChange(newVal) {\n this.fieldDefs = createArrayFrom(newVal);\n }\n\n private stopAnimation() {\n if (this.animator) {\n this.animator.stop();\n }\n }\n\n private startAnimation() {\n if (this.animator) {\n this.animator.interval = this.animationinterval * 1000;\n this.animator.start();\n }\n }\n\n private onSlidesRender(slides) {\n // if dynamic carousel, initialize the 'currentslide' property as the first object\n if (this.fieldDefs && this.fieldDefs.length) {\n this.currentslide = this.fieldDefs[0];\n }\n if (slides.length) {\n setTimeout(() => {\n this.animator = new CarouselAnimator(this, this.interval, this.ngZone);\n }, 50);\n }\n }\n\n private setupHandlers() {\n this.slides.changes.subscribe( slides => {\n this.triggerAnimation(slides);\n });\n this.slides.setDirty();\n }\n\n public onChangeCB(newIndex, oldIndex) {\n // assign current and previous slides on widget. In case of static carousel, fieldDefs will be undefined, hence the check\n this.currentslide = this.fieldDefs && this.fieldDefs[newIndex];\n this.previousslide = this.fieldDefs && this.fieldDefs[oldIndex];\n this.invokeEventCallback('change', {newIndex: newIndex, oldIndex: oldIndex});\n }\n\n ngAfterContentInit() {\n this.triggerAnimation(this.slides);\n this.setupHandlers();\n }\n\n ngOnDestroy() {\n this.stopAnimation();\n super.ngOnDestroy();\n }\n\n // Calculating animation interval if animation is enabled\n setanimationinterval() {\n this.interval = this.animation === 'auto' ? this.animationinterval * 1000 : 0 ;\n }\n\n triggerAnimation(slides) {\n this.stopAnimation();\n this.onSlidesRender(slides);\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.setanimationinterval();\n // TODO transition is pending\n\n }\n\n // on property change handler\n onPropertyChange(key: string, nv: any, ov?: any) {\n if (key === 'dataset') {\n this.onDataChange(nv);\n } else if (key === 'controls') {\n // For showing controls\n this.navigationClass = navigationClassMap[this.controls];\n } else if (key === 'animation' || key === 'animationinterval') {\n if (key === 'animationinterval') {\n this.stopAnimation();\n this.setanimationinterval();\n }\n this.animation === 'none' ? this.stopAnimation() : this.startAnimation();\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n}\n","import { PROP_BOOLEAN, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-carousel-template',\n new Map(\n [\n ['show', PROP_BOOLEAN]\n ]\n )\n );\n};\n","import {Directive, Injector, Optional} from '@angular/core';\n\nimport { IWidgetConfig, StylableComponent, styler } from '@wm/components/base';\nimport { registerProps } from './carousel-template.props';\nimport {UserDefinedExecutionContext} from '@wm/core';\n\nconst DEFAULT_CLS = 'app-carousel-item';\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-carousel-template',\n hostClass: DEFAULT_CLS\n};\n\n@Directive({\n selector: '[wmCarouselTemplate]'\n})\nexport class CarouselTemplateDirective extends StylableComponent {\n static initializeProps = registerProps();\n\n constructor(inj: Injector) {\n super(inj, WIDGET_CONFIG);\n styler(this.nativeElement, this);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { CarouselModule as ngxCarouselModule } from 'ngx-bootstrap/carousel';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { CarouselDirective } from './carousel.directive';\nimport { CarouselTemplateDirective } from './carousel-template/carousel-template.directive';\n\nconst components = [\n CarouselDirective,\n CarouselTemplateDirective\n];\n\n@NgModule({\n imports: [\n CommonModule,\n ngxCarouselModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class CarouselModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["registerProps","WIDGET_CONFIG","ngxCarouselModule"],"mappings":";;;;;;;;AAEO,MAAMA,eAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,aAAa,EACb,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,MAAM,EAAE,GAAI,WAAW,EAAC,CAAC;QAC/C,CAAC,mBAAmB,EAAE,EAAC,KAAK,EAAE,CAAC,EAAE,GAAK,WAAW,EAAC,CAAC;QACnD,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,MAAM,EAAE,GAAI,WAAW,EAAC,CAAC;QAC9C,CAAC,SAAS,EAAE,QAAQ,CAAC;QACrB,CAAC,MAAM,EAAE,WAAW,CAAC;QACrB,CAAC,eAAe,EAAE,EAAC,KAAK,EAAE,eAAe,EAAE,GAAI,WAAW,EAAC,CAAC;QAC5D,CAAC,MAAM,EAAE,YAAY,CAAC;AACzB,KAAA,CACJ,CACJ,CAAC;AACN,CAAC;;ACRK,MAAO,gBAAiB,SAAQ,cAAc,CAAA;AAahD,IAAA,WAAA,CAA2B,QAA2B,EAAU,QAAgB,EAAU,MAAc,EAAA;AACpG,QAAA,KAAK,EAAE,CAAC;QADe,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAmB;QAAU,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAQ;QAAU,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QAVhG,IAAY,CAAA,YAAA,GAAG,CAAC,CAAC;QACjB,IAAgB,C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AAA,kBAAkB,aARtB,iBAAiB;QACjB,yBAAyB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACZ7B;;AAEG;;;;"}
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@wm/components/base'), require('@wm/components/data/form'), require('@wm/components/input'), require('@wm/core')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@wm/components/base', '@wm/components/data/form', '@wm/components/input', '@wm/core'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.advanced = global.wm.components.advanced || {}, global.wm.components.advanced.login = {}), global.ng.core, global.ng.common, global.wm.components.base, global.wm.components.data.form, global.wm.components.input, global.wm.core));
5
- })(this, (function (exports, i0, common, i2, form, input, i1) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@wm/components/base'), require('@wm/components/data/form'), require('@wm/components/input')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@wm/components/base', '@wm/components/data/form', '@wm/components/input'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.advanced = global.wm.components.advanced || {}, global.wm.components.advanced.login = {}), global.ng.core, global.ng.common, global.wm.components.base, global.wm.components.data.form, global.wm.components.input));
5
+ })(this, (function (exports, i0, common, i1, form, input) { 'use strict';
6
6
 
7
7
  function _interopNamespaceDefault(e) {
8
8
  var n = Object.create(null);
@@ -22,24 +22,22 @@
22
22
  }
23
23
 
24
24
  var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
25
- var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
26
25
  var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
27
26
 
28
27
  const registerProps = () => {
29
- i2.register('wm-login', new Map([
30
- ['errormessage', i2.PROP_STRING],
31
- ['eventsource', i2.PROP_ANY]
28
+ i1.register('wm-login', new Map([
29
+ ['errormessage', i1.PROP_STRING],
30
+ ['eventsource', i1.PROP_ANY]
32
31
  ]));
33
32
  };
34
33
 
35
34
  const _c0 = ["wmLogin", ""];
36
35
  const _c1 = ["*"];
37
36
  const WIDGET_INFO = { widgetType: 'wm-login', hostClass: 'app-login' };
38
- class LoginComponent extends i2.StylableComponent {
39
- constructor(inj, _viewParent) {
40
- super(inj, WIDGET_INFO, _viewParent);
41
- this._viewParent = _viewParent;
42
- i2.styler(this.nativeElement, this, i2.APPLY_STYLES_TYPE.CONTAINER);
37
+ class LoginComponent extends i1.StylableComponent {
38
+ constructor(inj) {
39
+ super(inj, WIDGET_INFO);
40
+ i1.styler(this.nativeElement, this, i1.APPLY_STYLES_TYPE.CONTAINER);
43
41
  }
44
42
  onSuccessCB() {
45
43
  this.invokeEventCallback('success');
@@ -89,7 +87,7 @@
89
87
  }
90
88
  }
91
89
  LoginComponent.initializeProps = registerProps();
92
- LoginComponent.ɵfac = function LoginComponent_Factory(t) { return new (t || LoginComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1__namespace.UserDefinedExecutionContext, 8)); };
90
+ LoginComponent.ɵfac = function LoginComponent_Factory(t) { return new (t || LoginComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
93
91
  LoginComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: LoginComponent, selectors: [["div", "wmLogin", ""]], contentQueries: function LoginComponent_ContentQueries(rf, ctx, dirIndex) {
94
92
  if (rf & 1) {
95
93
  i0__namespace.ɵɵcontentQuery(dirIndex, form.FormComponent, 5);
@@ -102,32 +100,28 @@
102
100
  }
103
101
  }, viewQuery: function LoginComponent_Query(rf, ctx) {
104
102
  if (rf & 1) {
105
- i0__namespace.ɵɵviewQuery(i2.MessageComponent, 7);
103
+ i0__namespace.ɵɵviewQuery(i1.MessageComponent, 7);
106
104
  }
107
105
  if (rf & 2) {
108
106
  let _t;
109
107
  i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.messageCmp = _t.first);
110
108
  }
111
109
  }, features: [i0__namespace.ɵɵProvidersFeature([
112
- i2.provideAsWidgetRef(LoginComponent)
110
+ i1.provideAsWidgetRef(LoginComponent)
113
111
  ]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0, ngContentSelectors: _c1, decls: 3, vars: 0, consts: [["wmMessage", "", "show.bind", "loginMessage.show", "caption.bind", "loginMessage.caption", "type.bind", "loginMessage.type", 1, "app-login-message"], ["message", ""]], template: function LoginComponent_Template(rf, ctx) {
114
112
  if (rf & 1) {
115
113
  i0__namespace.ɵɵprojectionDef();
116
114
  i0__namespace.ɵɵelement(0, "p", 0, 1);
117
115
  i0__namespace.ɵɵprojection(2);
118
116
  }
119
- }, dependencies: [i2__namespace.MessageComponent], encapsulation: 2 });
117
+ }, dependencies: [i1__namespace.MessageComponent], encapsulation: 2 });
120
118
  (function () {
121
119
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LoginComponent, [{
122
120
  type: i0.Component,
123
121
  args: [{ selector: 'div[wmLogin]', providers: [
124
- i2.provideAsWidgetRef(LoginComponent)
122
+ i1.provideAsWidgetRef(LoginComponent)
125
123
  ], template: "<p wmMessage class=\"app-login-message\" #message show.bind=\"loginMessage.show\" caption.bind=\"loginMessage.caption\" type.bind=\"loginMessage.type\"></p>\n<ng-content></ng-content>\n" }]
126
- }], function () {
127
- return [{ type: i0__namespace.Injector }, { type: i1__namespace.UserDefinedExecutionContext, decorators: [{
128
- type: i0.Optional
129
- }] }];
130
- }, { formCmp: [{
124
+ }], function () { return [{ type: i0__namespace.Injector }]; }, { formCmp: [{
131
125
  type: i0.ContentChild,
132
126
  args: [form.FormComponent]
133
127
  }], buttonComponents: [{
@@ -135,7 +129,7 @@
135
129
  args: [input.ButtonComponent, { descendants: true }]
136
130
  }], messageCmp: [{
137
131
  type: i0.ViewChild,
138
- args: [i2.MessageComponent, { static: true }]
132
+ args: [i1.MessageComponent, { static: true }]
139
133
  }] });
140
134
  })();
141
135
 
@@ -147,14 +141,14 @@
147
141
  LoginModule.ɵfac = function LoginModule_Factory(t) { return new (t || LoginModule)(); };
148
142
  LoginModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: LoginModule });
149
143
  LoginModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [common.CommonModule,
150
- i2.WmComponentsModule] });
144
+ i1.WmComponentsModule] });
151
145
  (function () {
152
146
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LoginModule, [{
153
147
  type: i0.NgModule,
154
148
  args: [{
155
149
  imports: [
156
150
  common.CommonModule,
157
- i2.WmComponentsModule
151
+ i1.WmComponentsModule
158
152
  ],
159
153
  declarations: [...components],
160
154
  exports: [...components]
@@ -163,7 +157,7 @@
163
157
  })();
164
158
  (function () {
165
159
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(LoginModule, { declarations: [LoginComponent], imports: [common.CommonModule,
166
- i2.WmComponentsModule], exports: [LoginComponent] });
160
+ i1.WmComponentsModule], exports: [LoginComponent] });
167
161
  })();
168
162
 
169
163
  exports.LoginComponent = LoginComponent;
@@ -1,19 +1,16 @@
1
- import { Component, ContentChild, ContentChildren, Injector, Optional, QueryList, ViewChild } from '@angular/core';
1
+ import { Component, ContentChild, ContentChildren, Injector, QueryList, ViewChild } from '@angular/core';
2
2
  import { APPLY_STYLES_TYPE, MessageComponent, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';
3
3
  import { FormComponent } from '@wm/components/data/form';
4
4
  import { ButtonComponent } from '@wm/components/input';
5
5
  import { registerProps } from './login.props';
6
- import { UserDefinedExecutionContext } from '@wm/core';
7
6
  import * as i0 from "@angular/core";
8
- import * as i1 from "@wm/core";
9
- import * as i2 from "@wm/components/base";
7
+ import * as i1 from "@wm/components/base";
10
8
  const _c0 = ["wmLogin", ""];
11
9
  const _c1 = ["*"];
12
10
  const WIDGET_INFO = { widgetType: 'wm-login', hostClass: 'app-login' };
13
11
  export class LoginComponent extends StylableComponent {
14
- constructor(inj, _viewParent) {
15
- super(inj, WIDGET_INFO, _viewParent);
16
- this._viewParent = _viewParent;
12
+ constructor(inj) {
13
+ super(inj, WIDGET_INFO);
17
14
  styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);
18
15
  }
19
16
  onSuccessCB() {
@@ -64,7 +61,7 @@ export class LoginComponent extends StylableComponent {
64
61
  }
65
62
  }
66
63
  LoginComponent.initializeProps = registerProps();
67
- LoginComponent.ɵfac = function LoginComponent_Factory(t) { return new (t || LoginComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1.UserDefinedExecutionContext, 8)); };
64
+ LoginComponent.ɵfac = function LoginComponent_Factory(t) { return new (t || LoginComponent)(i0.ɵɵdirectiveInject(i0.Injector)); };
68
65
  LoginComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LoginComponent, selectors: [["div", "wmLogin", ""]], contentQueries: function LoginComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
69
66
  i0.ɵɵcontentQuery(dirIndex, FormComponent, 5);
70
67
  i0.ɵɵcontentQuery(dirIndex, ButtonComponent, 5);
@@ -83,15 +80,13 @@ LoginComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LoginCompone
83
80
  i0.ɵɵprojectionDef();
84
81
  i0.ɵɵelement(0, "p", 0, 1);
85
82
  i0.ɵɵprojection(2);
86
- } }, dependencies: [i2.MessageComponent], encapsulation: 2 });
83
+ } }, dependencies: [i1.MessageComponent], encapsulation: 2 });
87
84
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoginComponent, [{
88
85
  type: Component,
89
86
  args: [{ selector: 'div[wmLogin]', providers: [
90
87
  provideAsWidgetRef(LoginComponent)
91
88
  ], template: "<p wmMessage class=\"app-login-message\" #message show.bind=\"loginMessage.show\" caption.bind=\"loginMessage.caption\" type.bind=\"loginMessage.type\"></p>\n<ng-content></ng-content>\n" }]
92
- }], function () { return [{ type: i0.Injector }, { type: i1.UserDefinedExecutionContext, decorators: [{
93
- type: Optional
94
- }] }]; }, { formCmp: [{
89
+ }], function () { return [{ type: i0.Injector }]; }, { formCmp: [{
95
90
  type: ContentChild,
96
91
  args: [FormComponent]
97
92
  }], buttonComponents: [{
@@ -101,4 +96,4 @@ LoginComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LoginCompone
101
96
  type: ViewChild,
102
97
  args: [MessageComponent, { static: true }]
103
98
  }] }); })();
104
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9naW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29tcG9uZW50cy93aWRnZXRzL2FkdmFuY2VkL2xvZ2luL3NyYy9sb2dpbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3dpZGdldHMvYWR2YW5jZWQvbG9naW4vc3JjL2xvZ2luLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFFSCxTQUFTLEVBQ1QsWUFBWSxFQUNaLGVBQWUsRUFDZixRQUFRLEVBQ1IsUUFBUSxFQUNSLFNBQVMsRUFDVCxTQUFTLEVBQ1osTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUFFLGlCQUFpQixFQUFFLGdCQUFnQixFQUFFLGtCQUFrQixF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AgdGhpcy5sb2dpbkJ0bkNtcCA9IGNtcDtcbiAgICAgICAgICAgICAgICB0aGlzLmluaXRMb2dpbkJ1dHRvbkFjdGlvbnMoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfVxufVxuIiwiPHAgd21NZXNzYWdlIGNsYXNzPVwiYXBwLWxvZ2luLW1lc3NhZ2VcIiAjbWVzc2FnZSBzaG93LmJpbmQ9XCJsb2dpbk1lc3NhZ2Uuc2hvd1wiIGNhcHRpb24uYmluZD1cImxvZ2luTWVzc2FnZS5jYXB0aW9uXCIgdHlwZS5iaW5kPVwibG9naW5NZXNzYWdlLnR5cGVcIj48L3A+XG48bmctY29udGVudD48L25nLWNvbnRlbnQ+XG4iXX0=
@@ -1,11 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Optional, ContentChild, ContentChildren, ViewChild, NgModule } from '@angular/core';
2
+ import { Component, ContentChild, ContentChildren, ViewChild, NgModule } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
- import * as i2 from '@wm/components/base';
4
+ import * as i1 from '@wm/components/base';
5
5
  import { register, PROP_STRING, PROP_ANY, StylableComponent, styler, APPLY_STYLES_TYPE, MessageComponent, provideAsWidgetRef, WmComponentsModule } from '@wm/components/base';
6
6
  import { FormComponent } from '@wm/components/data/form';
7
7
  import { ButtonComponent } from '@wm/components/input';
8
- import * as i1 from '@wm/core';
9
8
 
10
9
  const registerProps = () => {
11
10
  register('wm-login', new Map([
@@ -18,9 +17,8 @@ const _c0 = ["wmLogin", ""];
18
17
  const _c1 = ["*"];
19
18
  const WIDGET_INFO = { widgetType: 'wm-login', hostClass: 'app-login' };
20
19
  class LoginComponent extends StylableComponent {
21
- constructor(inj, _viewParent) {
22
- super(inj, WIDGET_INFO, _viewParent);
23
- this._viewParent = _viewParent;
20
+ constructor(inj) {
21
+ super(inj, WIDGET_INFO);
24
22
  styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);
25
23
  }
26
24
  onSuccessCB() {
@@ -71,7 +69,7 @@ class LoginComponent extends StylableComponent {
71
69
  }
72
70
  }
73
71
  LoginComponent.initializeProps = registerProps();
74
- LoginComponent.ɵfac = function LoginComponent_Factory(t) { return new (t || LoginComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1.UserDefinedExecutionContext, 8)); };
72
+ LoginComponent.ɵfac = function LoginComponent_Factory(t) { return new (t || LoginComponent)(i0.ɵɵdirectiveInject(i0.Injector)); };
75
73
  LoginComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LoginComponent, selectors: [["div", "wmLogin", ""]], contentQueries: function LoginComponent_ContentQueries(rf, ctx, dirIndex) {
76
74
  if (rf & 1) {
77
75
  i0.ɵɵcontentQuery(dirIndex, FormComponent, 5);
@@ -98,18 +96,14 @@ LoginComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LoginCompone
98
96
  i0.ɵɵelement(0, "p", 0, 1);
99
97
  i0.ɵɵprojection(2);
100
98
  }
101
- }, dependencies: [i2.MessageComponent], encapsulation: 2 });
99
+ }, dependencies: [i1.MessageComponent], encapsulation: 2 });
102
100
  (function () {
103
101
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoginComponent, [{
104
102
  type: Component,
105
103
  args: [{ selector: 'div[wmLogin]', providers: [
106
104
  provideAsWidgetRef(LoginComponent)
107
105
  ], template: "<p wmMessage class=\"app-login-message\" #message show.bind=\"loginMessage.show\" caption.bind=\"loginMessage.caption\" type.bind=\"loginMessage.type\"></p>\n<ng-content></ng-content>\n" }]
108
- }], function () {
109
- return [{ type: i0.Injector }, { type: i1.UserDefinedExecutionContext, decorators: [{
110
- type: Optional
111
- }] }];
112
- }, { formCmp: [{
106
+ }], function () { return [{ type: i0.Injector }]; }, { formCmp: [{
113
107
  type: ContentChild,
114
108
  args: [FormComponent]
115
109
  }], buttonComponents: [{
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/advanced/login/src/login.props.ts","../../../../../projects/components/widgets/advanced/login/src/login.component.ts","../../../../../projects/components/widgets/advanced/login/src/login.component.html","../../../../../projects/components/widgets/advanced/login/src/login.module.ts","../../../../../projects/components/widgets/advanced/login/src/index.ts"],"sourcesContent":["import {PROP_ANY, PROP_STRING, register} from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-login',\n new Map(\n [\n ['errormessage', PROP_STRING],\n ['eventsource', PROP_ANY]\n ]\n )\n );\n};\n","import {\n AfterViewInit,\n Component,\n ContentChild,\n ContentChildren,\n Injector,\n Optional,\n QueryList,\n ViewChild\n} from '@angular/core';\n\nimport { APPLY_STYLES_TYPE, MessageComponent, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport { FormComponent } from '@wm/components/data/form';\nimport { ButtonComponent } from '@wm/components/input';\n\nimport { registerProps } from './login.props';\nimport {UserDefinedExecutionContext} from '@wm/core';\n\nconst WIDGET_INFO = {widgetType: 'wm-login', hostClass: 'app-login'};\n\ndeclare const _;\n\n@Component({\n selector: 'div[wmLogin]',\n templateUrl: './login.component.html',\n providers: [\n provideAsWidgetRef(LoginComponent)\n ]\n})\nexport class LoginComponent extends StylableComponent implements AfterViewInit {\n static initializeProps = registerProps();\n loginBtnCmp: ButtonComponent;\n\n @ContentChild(FormComponent) formCmp: FormComponent;\n @ContentChildren(ButtonComponent, {descendants: true}) buttonComponents: QueryList<ButtonComponent>;\n @ViewChild(MessageComponent, { static: true }) messageCmp: MessageComponent;\n\n loginMessage: { type?: string; caption?: any; show?: boolean; };\n errormessage: any;\n eventsource;\n\n constructor(inj: Injector, @Optional() public _viewParent: UserDefinedExecutionContext) {\n super(inj, WIDGET_INFO, _viewParent);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);\n }\n\n onSuccessCB() {\n this.invokeEventCallback('success');\n }\n\n onErrorCB(error?) {\n this.loginMessage = {\n type: 'error',\n caption: this.errormessage || error || this.appLocale.LABEL_INVALID_USERNAME_OR_PASSWORD,\n show: true\n };\n this.messageCmp.showMessage(this.loginMessage.caption, this.loginMessage.type);\n this.invokeEventCallback('error');\n }\n\n getLoginDetails(): any {\n return this.formCmp.dataoutput;\n }\n\n doLogin() {\n if (this.eventsource) {\n this.formCmp.ngform.valid && this.eventsource.invoke({loginInfo: this.getLoginDetails()}, this.onSuccessCB.bind(this), this.onErrorCB.bind(this));\n } else {\n console.warn('Default action \"loginAction\" does not exist. Either create the Action or assign an event to onSubmit of the login widget');\n }\n }\n\n initLoginButtonActions() {\n this.loginBtnCmp.getNativeElement().addEventListener('click', event => {\n\n // if no event is attached to the onSubmit of login widget or loginButton inside it, invoke default login action\n if (!this.nativeElement.hasAttribute('submit.event') && !this.loginBtnCmp.getNativeElement().hasAttribute('click.event') && !this.loginBtnCmp.getNativeElement().hasAttribute('tap.event')) {\n this.doLogin();\n }\n });\n }\n\n ngAfterViewInit() {\n super.ngAfterViewInit();\n\n // suppresses the default form submission (in browsers like Firefox)\n this.formCmp.getNativeElement().addEventListener('submit', e => e.preventDefault());\n\n // get login button component\n this.buttonComponents.forEach(cmp => {\n if (cmp.getNativeElement().getAttribute('name') === 'loginButton' || _.includes(cmp.getNativeElement().classList, 'app-login-button')) {\n if (this.loginBtnCmp) {\n return;\n }\n this.loginBtnCmp = cmp;\n this.initLoginButtonActions();\n }\n });\n }\n}\n","<p wmMessage class=\"app-login-message\" #message show.bind=\"loginMessage.show\" caption.bind=\"loginMessage.caption\" type.bind=\"loginMessage.type\"></p>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { LoginComponent } from './login.component';\n\nconst components = [\n LoginComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class LoginModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './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c,CAAA,EAAA,CAAA,CAAA;AAAA,CAAA,GAAA;;ACRlB;;AAEG;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/advanced/login/src/login.props.ts","../../../../../projects/components/widgets/advanced/login/src/login.component.ts","../../../../../projects/components/widgets/advanced/login/src/login.component.html","../../../../../projects/components/widgets/advanced/login/src/login.module.ts","../../../../../projects/components/widgets/advanced/login/src/index.ts"],"sourcesContent":["import {PROP_ANY, PROP_STRING, register} from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-login',\n new Map(\n [\n ['errormessage', PROP_STRING],\n ['eventsource', PROP_ANY]\n ]\n )\n );\n};\n","import {\n AfterViewInit,\n Component,\n ContentChild,\n ContentChildren,\n Injector,\n Optional,\n QueryList,\n ViewChild\n} from '@angular/core';\n\nimport { APPLY_STYLES_TYPE, MessageComponent, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport { FormComponent } from '@wm/components/data/form';\nimport { ButtonComponent } from '@wm/components/input';\n\nimport { registerProps } from './login.props';\nimport {UserDefinedExecutionContext} from '@wm/core';\n\nconst WIDGET_INFO = {widgetType: 'wm-login', hostClass: 'app-login'};\n\ndeclare const _;\n\n@Component({\n selector: 'div[wmLogin]',\n templateUrl: './login.component.html',\n providers: [\n provideAsWidgetRef(LoginComponent)\n ]\n})\nexport class LoginComponent extends StylableComponent implements AfterViewInit {\n static initializeProps = registerProps();\n loginBtnCmp: ButtonComponent;\n\n @ContentChild(FormComponent) formCmp: FormComponent;\n @ContentChildren(ButtonComponent, {descendants: true}) buttonComponents: QueryList<ButtonComponent>;\n @ViewChild(MessageComponent, { static: true }) messageCmp: MessageComponent;\n\n loginMessage: { type?: string; caption?: any; show?: boolean; };\n errormessage: any;\n eventsource;\n\n constructor(inj: Injector) {\n super(inj, WIDGET_INFO);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);\n }\n\n onSuccessCB() {\n this.invokeEventCallback('success');\n }\n\n onErrorCB(error?) {\n this.loginMessage = {\n type: 'error',\n caption: this.errormessage || error || this.appLocale.LABEL_INVALID_USERNAME_OR_PASSWORD,\n show: true\n };\n this.messageCmp.showMessage(this.loginMessage.caption, this.loginMessage.type);\n this.invokeEventCallback('error');\n }\n\n getLoginDetails(): any {\n return this.formCmp.dataoutput;\n }\n\n doLogin() {\n if (this.eventsource) {\n this.formCmp.ngform.valid && this.eventsource.invoke({loginInfo: this.getLoginDetails()}, this.onSuccessCB.bind(this), this.onErrorCB.bind(this));\n } else {\n console.warn('Default action \"loginAction\" does not exist. Either create the Action or assign an event to onSubmit of the login widget');\n }\n }\n\n initLoginButtonActions() {\n this.loginBtnCmp.getNativeElement().addEventListener('click', event => {\n\n // if no event is attached to the onSubmit of login widget or loginButton inside it, invoke default login action\n if (!this.nativeElement.hasAttribute('submit.event') && !this.loginBtnCmp.getNativeElement().hasAttribute('click.event') && !this.loginBtnCmp.getNativeElement().hasAttribute('tap.event')) {\n this.doLogin();\n }\n });\n }\n\n ngAfterViewInit() {\n super.ngAfterViewInit();\n\n // suppresses the default form submission (in browsers like Firefox)\n this.formCmp.getNativeElement().addEventListener('submit', e => e.preventDefault());\n\n // get login button component\n this.buttonComponents.forEach(cmp => {\n if (cmp.getNativeElement().getAttribute('name') === 'loginButton' || _.includes(cmp.getNativeElement().classList, 'app-login-button')) {\n if (this.loginBtnCmp) {\n return;\n }\n this.loginBtnCmp = cmp;\n this.initLoginButtonActions();\n }\n });\n }\n}\n","<p wmMessage class=\"app-login-message\" #message show.bind=\"loginMessage.show\" caption.bind=\"loginMessage.caption\" type.bind=\"loginMessage.type\"></p>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { LoginComponent } from './login.component';\n\nconst components = [\n LoginComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class LoginModule {\n}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- import { Component, Optional, ContentChild, ContentChildren, ViewChild, NgModule } from '@angular/core';
2
+ import { Component, ContentChild, ContentChildren, ViewChild, NgModule } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
- import * as i2 from '@wm/components/base';
4
+ import * as i1 from '@wm/components/base';
5
5
  import { register, PROP_STRING, PROP_ANY, StylableComponent, styler, APPLY_STYLES_TYPE, MessageComponent, provideAsWidgetRef, WmComponentsModule } from '@wm/components/base';
6
6
  import { FormComponent } from '@wm/components/data/form';
7
7
  import { ButtonComponent } from '@wm/components/input';
8
- import * as i1 from '@wm/core';
9
8
 
10
9
  const registerProps = () => {
11
10
  register('wm-login', new Map([
@@ -18,9 +17,8 @@ const _c0 = ["wmLogin", ""];
18
17
  const _c1 = ["*"];
19
18
  const WIDGET_INFO = { widgetType: 'wm-login', hostClass: 'app-login' };
20
19
  class LoginComponent extends StylableComponent {
21
- constructor(inj, _viewParent) {
22
- super(inj, WIDGET_INFO, _viewParent);
23
- this._viewParent = _viewParent;
20
+ constructor(inj) {
21
+ super(inj, WIDGET_INFO);
24
22
  styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);
25
23
  }
26
24
  onSuccessCB() {
@@ -71,7 +69,7 @@ class LoginComponent extends StylableComponent {
71
69
  }
72
70
  }
73
71
  LoginComponent.initializeProps = registerProps();
74
- LoginComponent.ɵfac = function LoginComponent_Factory(t) { return new (t || LoginComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1.UserDefinedExecutionContext, 8)); };
72
+ LoginComponent.ɵfac = function LoginComponent_Factory(t) { return new (t || LoginComponent)(i0.ɵɵdirectiveInject(i0.Injector)); };
75
73
  LoginComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LoginComponent, selectors: [["div", "wmLogin", ""]], contentQueries: function LoginComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
76
74
  i0.ɵɵcontentQuery(dirIndex, FormComponent, 5);
77
75
  i0.ɵɵcontentQuery(dirIndex, ButtonComponent, 5);
@@ -90,15 +88,13 @@ LoginComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LoginCompone
90
88
  i0.ɵɵprojectionDef();
91
89
  i0.ɵɵelement(0, "p", 0, 1);
92
90
  i0.ɵɵprojection(2);
93
- } }, dependencies: [i2.MessageComponent], encapsulation: 2 });
91
+ } }, dependencies: [i1.MessageComponent], encapsulation: 2 });
94
92
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoginComponent, [{
95
93
  type: Component,
96
94
  args: [{ selector: 'div[wmLogin]', providers: [
97
95
  provideAsWidgetRef(LoginComponent)
98
96
  ], template: "<p wmMessage class=\"app-login-message\" #message show.bind=\"loginMessage.show\" caption.bind=\"loginMessage.caption\" type.bind=\"loginMessage.type\"></p>\n<ng-content></ng-content>\n" }]
99
- }], function () { return [{ type: i0.Injector }, { type: i1.UserDefinedExecutionContext, decorators: [{
100
- type: Optional
101
- }] }]; }, { formCmp: [{
97
+ }], function () { return [{ type: i0.Injector }]; }, { formCmp: [{
102
98
  type: ContentChild,
103
99
  args: [FormComponent]
104
100
  }], buttonComponents: [{
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/advanced/login/src/login.props.ts","../../../../../projects/components/widgets/advanced/login/src/login.component.ts","../../../../../projects/components/widgets/advanced/login/src/login.component.html","../../../../../projects/components/widgets/advanced/login/src/login.module.ts","../../../../../projects/components/widgets/advanced/login/src/index.ts"],"sourcesContent":["import {PROP_ANY, PROP_STRING, register} from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-login',\n new Map(\n [\n ['errormessage', PROP_STRING],\n ['eventsource', PROP_ANY]\n ]\n )\n );\n};\n","import {\n AfterViewInit,\n Component,\n ContentChild,\n ContentChildren,\n Injector,\n Optional,\n QueryList,\n ViewChild\n} from '@angular/core';\n\nimport { APPLY_STYLES_TYPE, MessageComponent, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport { FormComponent } from '@wm/components/data/form';\nimport { ButtonComponent } from '@wm/components/input';\n\nimport { registerProps } from './login.props';\nimport {UserDefinedExecutionContext} from '@wm/core';\n\nconst WIDGET_INFO = {widgetType: 'wm-login', hostClass: 'app-login'};\n\ndeclare const _;\n\n@Component({\n selector: 'div[wmLogin]',\n templateUrl: './login.component.html',\n providers: [\n provideAsWidgetRef(LoginComponent)\n ]\n})\nexport class LoginComponent extends StylableComponent implements AfterViewInit {\n static initializeProps = registerProps();\n loginBtnCmp: ButtonComponent;\n\n @ContentChild(FormComponent) formCmp: FormComponent;\n @ContentChildren(ButtonComponent, {descendants: true}) buttonComponents: QueryList<ButtonComponent>;\n @ViewChild(MessageComponent, { static: true }) messageCmp: MessageComponent;\n\n loginMessage: { type?: string; caption?: any; show?: boolean; };\n errormessage: any;\n eventsource;\n\n constructor(inj: Injector, @Optional() public _viewParent: UserDefinedExecutionContext) {\n super(inj, WIDGET_INFO, _viewParent);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);\n }\n\n onSuccessCB() {\n this.invokeEventCallback('success');\n }\n\n onErrorCB(error?) {\n this.loginMessage = {\n type: 'error',\n caption: this.errormessage || error || this.appLocale.LABEL_INVALID_USERNAME_OR_PASSWORD,\n show: true\n };\n this.messageCmp.showMessage(this.loginMessage.caption, this.loginMessage.type);\n this.invokeEventCallback('error');\n }\n\n getLoginDetails(): any {\n return this.formCmp.dataoutput;\n }\n\n doLogin() {\n if (this.eventsource) {\n this.formCmp.ngform.valid && this.eventsource.invoke({loginInfo: this.getLoginDetails()}, this.onSuccessCB.bind(this), this.onErrorCB.bind(this));\n } else {\n console.warn('Default action \"loginAction\" does not exist. Either create the Action or assign an event to onSubmit of the login widget');\n }\n }\n\n initLoginButtonActions() {\n this.loginBtnCmp.getNativeElement().addEventListener('click', event => {\n\n // if no event is attached to the onSubmit of login widget or loginButton inside it, invoke default login action\n if (!this.nativeElement.hasAttribute('submit.event') && !this.loginBtnCmp.getNativeElement().hasAttribute('click.event') && !this.loginBtnCmp.getNativeElement().hasAttribute('tap.event')) {\n this.doLogin();\n }\n });\n }\n\n ngAfterViewInit() {\n super.ngAfterViewInit();\n\n // suppresses the default form submission (in browsers like Firefox)\n this.formCmp.getNativeElement().addEventListener('submit', e => e.preventDefault());\n\n // get login button component\n this.buttonComponents.forEach(cmp => {\n if (cmp.getNativeElement().getAttribute('name') === 'loginButton' || _.includes(cmp.getNativeElement().classList, 'app-login-button')) {\n if (this.loginBtnCmp) {\n return;\n }\n this.loginBtnCmp = cmp;\n this.initLoginButtonActions();\n }\n });\n }\n}\n","<p wmMessage class=\"app-login-message\" #message show.bind=\"loginMessage.show\" caption.bind=\"loginMessage.caption\" type.bind=\"loginMessage.type\"></p>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { LoginComponent } from './login.component';\n\nconst components = [\n LoginComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class LoginModule {\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,UAAU,EACV,IAAI,GAAG,CACH;QACI,CAAC,cAAc,EAAE,WAAW,CAAC;QAC7B,CAAC,aAAa,EAAE,QAAQ,CAAC;AAC5B,KAAA,CACJ,CACJ,CAAC;AACN,CAAC;;;;ACMD,MAAM,WAAW,GAAG,EAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAC,CAAC;AAW/D,MAAO,cAAe,SAAQ,iBAAiB,CAAA;IAYjD,WAAY,CAAA,GAAa,EAAqB,WAAwC,EAAA;AAClF,QAAA,KAAK,CAAC,GAAG,EAAE,WAAW,EAAE,WAAW,CAAC,C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AAe;AAAC,YAAA,IAAA,EAAA,CAAA,eAAe,EAAE,EAAC,WAAW,EAAE,IAAI,EAAC,CAAA;YACN,UAAU,EAAA,CAAA;kBAAxD,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA,gBAAgB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;;;AE5BjD,MAAM,UAAU,GAAG;IACf,cAAc;CACjB,CAAC;MAUW,WAAW,CAAA;;sEAAX,WAAW,GAAA,CAAA,EAAA,CAAA;6DAAX,WAAW,EAAA,CAAA,CAAA;iEANhB,YAAY;QACZ,kBAAkB,CAAA,EAAA,CAAA,CAAA;uFAKb,WAAW,EAAA,CAAA;cARvB,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,WAAW,EAAA,EAAA,YAAA,EAAA,CAXpB,cAAc,CAAA,EAAA,OAAA,EAAA,CAKV,YAAY;AACZ,QAAA,kBAAkB,aANtB,cAAc,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACRlB;;AAEG;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/advanced/login/src/login.props.ts","../../../../../projects/components/widgets/advanced/login/src/login.component.ts","../../../../../projects/components/widgets/advanced/login/src/login.component.html","../../../../../projects/components/widgets/advanced/login/src/login.module.ts","../../../../../projects/components/widgets/advanced/login/src/index.ts"],"sourcesContent":["import {PROP_ANY, PROP_STRING, register} from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-login',\n new Map(\n [\n ['errormessage', PROP_STRING],\n ['eventsource', PROP_ANY]\n ]\n )\n );\n};\n","import {\n AfterViewInit,\n Component,\n ContentChild,\n ContentChildren,\n Injector,\n Optional,\n QueryList,\n ViewChild\n} from '@angular/core';\n\nimport { APPLY_STYLES_TYPE, MessageComponent, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport { FormComponent } from '@wm/components/data/form';\nimport { ButtonComponent } from '@wm/components/input';\n\nimport { registerProps } from './login.props';\nimport {UserDefinedExecutionContext} from '@wm/core';\n\nconst WIDGET_INFO = {widgetType: 'wm-login', hostClass: 'app-login'};\n\ndeclare const _;\n\n@Component({\n selector: 'div[wmLogin]',\n templateUrl: './login.component.html',\n providers: [\n provideAsWidgetRef(LoginComponent)\n ]\n})\nexport class LoginComponent extends StylableComponent implements AfterViewInit {\n static initializeProps = registerProps();\n loginBtnCmp: ButtonComponent;\n\n @ContentChild(FormComponent) formCmp: FormComponent;\n @ContentChildren(ButtonComponent, {descendants: true}) buttonComponents: QueryList<ButtonComponent>;\n @ViewChild(MessageComponent, { static: true }) messageCmp: MessageComponent;\n\n loginMessage: { type?: string; caption?: any; show?: boolean; };\n errormessage: any;\n eventsource;\n\n constructor(inj: Injector) {\n super(inj, WIDGET_INFO);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);\n }\n\n onSuccessCB() {\n this.invokeEventCallback('success');\n }\n\n onErrorCB(error?) {\n this.loginMessage = {\n type: 'error',\n caption: this.errormessage || error || this.appLocale.LABEL_INVALID_USERNAME_OR_PASSWORD,\n show: true\n };\n this.messageCmp.showMessage(this.loginMessage.caption, this.loginMessage.type);\n this.invokeEventCallback('error');\n }\n\n getLoginDetails(): any {\n return this.formCmp.dataoutput;\n }\n\n doLogin() {\n if (this.eventsource) {\n this.formCmp.ngform.valid && this.eventsource.invoke({loginInfo: this.getLoginDetails()}, this.onSuccessCB.bind(this), this.onErrorCB.bind(this));\n } else {\n console.warn('Default action \"loginAction\" does not exist. Either create the Action or assign an event to onSubmit of the login widget');\n }\n }\n\n initLoginButtonActions() {\n this.loginBtnCmp.getNativeElement().addEventListener('click', event => {\n\n // if no event is attached to the onSubmit of login widget or loginButton inside it, invoke default login action\n if (!this.nativeElement.hasAttribute('submit.event') && !this.loginBtnCmp.getNativeElement().hasAttribute('click.event') && !this.loginBtnCmp.getNativeElement().hasAttribute('tap.event')) {\n this.doLogin();\n }\n });\n }\n\n ngAfterViewInit() {\n super.ngAfterViewInit();\n\n // suppresses the default form submission (in browsers like Firefox)\n this.formCmp.getNativeElement().addEventListener('submit', e => e.preventDefault());\n\n // get login button component\n this.buttonComponents.forEach(cmp => {\n if (cmp.getNativeElement().getAttribute('name') === 'loginButton' || _.includes(cmp.getNativeElement().classList, 'app-login-button')) {\n if (this.loginBtnCmp) {\n return;\n }\n this.loginBtnCmp = cmp;\n this.initLoginButtonActions();\n }\n });\n }\n}\n","<p wmMessage class=\"app-login-message\" #message show.bind=\"loginMessage.show\" caption.bind=\"loginMessage.caption\" type.bind=\"loginMessage.type\"></p>\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { LoginComponent } from './login.component';\n\nconst components = [\n LoginComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class LoginModule {\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,UAAU,EACV,IAAI,GAAG,CACH;QACI,CAAC,cAAc,EAAE,WAAW,CAAC;QAC7B,CAAC,aAAa,EAAE,QAAQ,CAAC;AAC5B,KAAA,CACJ,CACJ,CAAC;AACN,CAAC;;;;ACMD,MAAM,WAAW,GAAG,EAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAC,CAAC;AAW/D,MAAO,cAAe,SAAQ,iBAAiB,CAAA;AAYjD,IAAA,WAAA,CAAY,GAAa,EAAA;AACrB,QAAA,KAAK,CAAC,GAAG,EAAE,WAA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AAS;AAAC,YAAA,IAAA,EAAA,CAAA,gBAAgB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;;;AE5BjD,MAAM,UAAU,GAAG;IACf,cAAc;CACjB,CAAC;MAUW,WAAW,CAAA;;sEAAX,WAAW,GAAA,CAAA,EAAA,CAAA;6DAAX,WAAW,EAAA,CAAA,CAAA;iEANhB,YAAY;QACZ,kBAAkB,CAAA,EAAA,CAAA,CAAA;uFAKb,WAAW,EAAA,CAAA;cARvB,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,WAAW,EAAA,EAAA,YAAA,EAAA,CAXpB,cAAc,CAAA,EAAA,OAAA,EAAA,CAKV,YAAY;AACZ,QAAA,kBAAkB,aANtB,cAAc,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACRlB;;AAEG;;;;"}
@@ -2,10 +2,8 @@ import { AfterViewInit, Injector, QueryList } from '@angular/core';
2
2
  import { MessageComponent, StylableComponent } from '@wm/components/base';
3
3
  import { FormComponent } from '@wm/components/data/form';
4
4
  import { ButtonComponent } from '@wm/components/input';
5
- import { UserDefinedExecutionContext } from '@wm/core';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class LoginComponent extends StylableComponent implements AfterViewInit {
8
- _viewParent: UserDefinedExecutionContext;
9
7
  static initializeProps: void;
10
8
  loginBtnCmp: ButtonComponent;
11
9
  formCmp: FormComponent;
@@ -18,13 +16,13 @@ export declare class LoginComponent extends StylableComponent implements AfterVi
18
16
  };
19
17
  errormessage: any;
20
18
  eventsource: any;
21
- constructor(inj: Injector, _viewParent: UserDefinedExecutionContext);
19
+ constructor(inj: Injector);
22
20
  onSuccessCB(): void;
23
21
  onErrorCB(error?: any): void;
24
22
  getLoginDetails(): any;
25
23
  doLogin(): void;
26
24
  initLoginButtonActions(): void;
27
25
  ngAfterViewInit(): void;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<LoginComponent, [null, { optional: true; }]>;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoginComponent, never>;
29
27
  static ɵcmp: i0.ɵɵComponentDeclaration<LoginComponent, "div[wmLogin]", never, {}, {}, ["formCmp", "buttonComponents"], ["*"], false, never>;
30
28
  }