@wavemaker/app-ng-runtime 12.0.0-next.45503 → 12.0.0-next.46502

Sign up to get free protection for your applications and to get access to all the features.
Files changed (324) hide show
  1. app-ng-runtime/build-task/bundles/index.umd.js +53 -45
  2. app-ng-runtime/build-task/esm2022/basic/default/anchor/anchor.build.mjs +2 -2
  3. app-ng-runtime/build-task/esm2022/basic/default/html/html.build.mjs +2 -2
  4. app-ng-runtime/build-task/esm2022/basic/default/icon/icon.build.mjs +2 -2
  5. app-ng-runtime/build-task/esm2022/basic/default/label/label.build.mjs +2 -2
  6. app-ng-runtime/build-task/esm2022/basic/default/picture/picture.build.mjs +2 -2
  7. app-ng-runtime/build-task/esm2022/basic/default/spinner/spinner.build.mjs +2 -2
  8. app-ng-runtime/build-task/esm2022/basic/progress/progress-circle/progress-circle.build.mjs +7 -2
  9. app-ng-runtime/build-task/esm2022/basic/rich-text-editor/rich-text-editor.build.mjs +2 -2
  10. app-ng-runtime/build-task/esm2022/containers/accordion/accordion-pane/accordion-pane.build.mjs +2 -2
  11. app-ng-runtime/build-task/esm2022/containers/accordion/accordion.build.mjs +3 -3
  12. app-ng-runtime/build-task/esm2022/containers/tile/tile.build.mjs +2 -2
  13. app-ng-runtime/build-task/esm2022/containers/wizard/wizard.build.mjs +2 -2
  14. app-ng-runtime/build-task/esm2022/data/form/form-field/form-field.build.mjs +4 -4
  15. app-ng-runtime/build-task/esm2022/device/barcode-scanner/barcode-scanner.build.mjs +2 -2
  16. app-ng-runtime/build-task/esm2022/device/camera/camera.build.mjs +2 -2
  17. app-ng-runtime/build-task/esm2022/dialogs/alert-dialog/alert-dialog.build.mjs +2 -2
  18. app-ng-runtime/build-task/esm2022/input/calendar/calendar.build.mjs +2 -2
  19. app-ng-runtime/build-task/esm2022/input/chips/chips.build.mjs +2 -2
  20. app-ng-runtime/build-task/esm2022/input/color-picker/color-picker.build.mjs +3 -3
  21. app-ng-runtime/build-task/esm2022/input/currency/currency.build.mjs +3 -3
  22. app-ng-runtime/build-task/esm2022/input/default/button/button.build.mjs +2 -2
  23. app-ng-runtime/build-task/esm2022/input/default/button-group/button-group.build.mjs +2 -2
  24. app-ng-runtime/build-task/esm2022/input/default/switch/switch.build.mjs +2 -2
  25. app-ng-runtime/build-task/esm2022/input/file-upload/file-upload.build.mjs +6 -2
  26. app-ng-runtime/build-task/esm2022/page/footer/footer.build.mjs +2 -2
  27. app-ng-runtime/build-task/esm2022/page/header/header.build.mjs +2 -2
  28. app-ng-runtime/build-task/esm2022/page/layout.build.mjs +2 -2
  29. app-ng-runtime/build-task/esm2022/page/left-panel/left-panel.build.mjs +2 -2
  30. app-ng-runtime/build-task/esm2022/page/page.build.mjs +2 -2
  31. app-ng-runtime/build-task/esm2022/page/right-panel/right-panel.build.mjs +2 -2
  32. app-ng-runtime/build-task/esm2022/page/top-nav/top-nav.build.mjs +2 -2
  33. app-ng-runtime/build-task/fesm2022/index.mjs +53 -45
  34. app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
  35. app-ng-runtime/components/advanced/carousel/bundles/index.umd.js +1 -1
  36. app-ng-runtime/components/advanced/carousel/esm2022/carousel.animator.mjs +2 -2
  37. app-ng-runtime/components/advanced/carousel/fesm2022/index.mjs +1 -1
  38. app-ng-runtime/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
  39. app-ng-runtime/components/base/bundles/index.umd.js +8 -7
  40. app-ng-runtime/components/base/esm2022/pipes/custom-pipes.mjs +3 -3
  41. app-ng-runtime/components/base/esm2022/utils/live-utils.mjs +8 -2
  42. app-ng-runtime/components/base/esm2022/widgets/common/base/base.component.mjs +1 -6
  43. app-ng-runtime/components/base/fesm2022/index.mjs +8 -7
  44. app-ng-runtime/components/base/fesm2022/index.mjs.map +1 -1
  45. app-ng-runtime/components/base/pipes/custom-pipes.d.ts +1 -1
  46. app-ng-runtime/components/basic/default/anchor/anchor.component.d.ts +1 -0
  47. app-ng-runtime/components/basic/default/audio/audio.component.d.ts +3 -0
  48. app-ng-runtime/components/basic/default/bundles/index.umd.js +39 -19
  49. app-ng-runtime/components/basic/default/esm2022/anchor/anchor.component.mjs +4 -4
  50. app-ng-runtime/components/basic/default/esm2022/anchor/anchor.props.mjs +2 -1
  51. app-ng-runtime/components/basic/default/esm2022/audio/audio.component.mjs +14 -6
  52. app-ng-runtime/components/basic/default/esm2022/audio/audio.props.mjs +2 -1
  53. app-ng-runtime/components/basic/default/esm2022/html/html.props.mjs +2 -1
  54. app-ng-runtime/components/basic/default/esm2022/icon/icon.component.mjs +6 -7
  55. app-ng-runtime/components/basic/default/esm2022/icon/icon.props.mjs +2 -1
  56. app-ng-runtime/components/basic/default/esm2022/iframe/iframe.component.mjs +3 -3
  57. app-ng-runtime/components/basic/default/esm2022/iframe/iframe.props.mjs +3 -2
  58. app-ng-runtime/components/basic/default/esm2022/label/label.props.mjs +1 -1
  59. app-ng-runtime/components/basic/default/esm2022/picture/picture.directive.mjs +2 -2
  60. app-ng-runtime/components/basic/default/esm2022/picture/picture.props.mjs +3 -1
  61. app-ng-runtime/components/basic/default/esm2022/spinner/spinner.props.mjs +3 -2
  62. app-ng-runtime/components/basic/default/esm2022/video/video.component.mjs +8 -4
  63. app-ng-runtime/components/basic/default/esm2022/video/video.props.mjs +2 -1
  64. app-ng-runtime/components/basic/default/fesm2022/index.mjs +39 -19
  65. app-ng-runtime/components/basic/default/fesm2022/index.mjs.map +1 -1
  66. app-ng-runtime/components/basic/default/icon/icon.component.d.ts +1 -0
  67. app-ng-runtime/components/basic/default/iframe/iframe.component.d.ts +1 -0
  68. app-ng-runtime/components/basic/default/picture/picture.directive.d.ts +2 -1
  69. app-ng-runtime/components/basic/default/video/video.component.d.ts +2 -0
  70. app-ng-runtime/components/basic/progress/bundles/index.umd.js +17 -9
  71. app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +9 -5
  72. app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.props.mjs +2 -1
  73. app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.component.mjs +8 -6
  74. app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.props.mjs +2 -1
  75. app-ng-runtime/components/basic/progress/fesm2022/index.mjs +17 -9
  76. app-ng-runtime/components/basic/progress/fesm2022/index.mjs.map +1 -1
  77. app-ng-runtime/components/basic/progress/progress-bar/progress-bar.component.d.ts +2 -0
  78. app-ng-runtime/components/basic/progress/progress-circle/progress-circle.component.d.ts +3 -1
  79. app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +2 -0
  80. app-ng-runtime/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +2 -1
  81. app-ng-runtime/components/basic/rich-text-editor/esm2022/rich-text-editor.props.mjs +2 -1
  82. app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs +2 -0
  83. app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
  84. app-ng-runtime/components/basic/search/bundles/index.umd.js +16 -9
  85. app-ng-runtime/components/basic/search/esm2022/search.component.mjs +19 -13
  86. app-ng-runtime/components/basic/search/esm2022/search.props.mjs +2 -1
  87. app-ng-runtime/components/basic/search/fesm2022/index.mjs +16 -9
  88. app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
  89. app-ng-runtime/components/basic/search/search.component.d.ts +4 -2
  90. app-ng-runtime/components/chart/bundles/index.umd.js +1 -0
  91. app-ng-runtime/components/chart/esm2022/chart.utils.mjs +2 -1
  92. app-ng-runtime/components/chart/fesm2022/index.mjs +1 -0
  93. app-ng-runtime/components/chart/fesm2022/index.mjs.map +1 -1
  94. app-ng-runtime/components/containers/accordion/accordion-pane/accordion-pane.component.d.ts +1 -0
  95. app-ng-runtime/components/containers/accordion/bundles/index.umd.js +15 -9
  96. app-ng-runtime/components/containers/accordion/esm2022/accordion-pane/accordion-pane.component.mjs +13 -10
  97. app-ng-runtime/components/containers/accordion/esm2022/accordion.directive.mjs +4 -1
  98. app-ng-runtime/components/containers/accordion/fesm2022/index.mjs +15 -9
  99. app-ng-runtime/components/containers/accordion/fesm2022/index.mjs.map +1 -1
  100. app-ng-runtime/components/containers/panel/bundles/index.umd.js +14 -14
  101. app-ng-runtime/components/containers/panel/esm2022/panel.component.mjs +15 -15
  102. app-ng-runtime/components/containers/panel/fesm2022/index.mjs +14 -14
  103. app-ng-runtime/components/containers/panel/fesm2022/index.mjs.map +1 -1
  104. app-ng-runtime/components/containers/tabs/bundles/index.umd.js +2 -2
  105. app-ng-runtime/components/containers/tabs/esm2022/tabs.component.mjs +3 -3
  106. app-ng-runtime/components/containers/tabs/fesm2022/index.mjs +2 -2
  107. app-ng-runtime/components/containers/tabs/fesm2022/index.mjs.map +1 -1
  108. app-ng-runtime/components/containers/wizard/bundles/index.umd.js +6 -6
  109. app-ng-runtime/components/containers/wizard/esm2022/wizard.component.mjs +7 -7
  110. app-ng-runtime/components/containers/wizard/fesm2022/index.mjs +6 -6
  111. app-ng-runtime/components/containers/wizard/fesm2022/index.mjs.map +1 -1
  112. app-ng-runtime/components/data/form/bundles/index.umd.js +4 -0
  113. app-ng-runtime/components/data/form/esm2022/form-field/form-field.directive.mjs +5 -1
  114. app-ng-runtime/components/data/form/fesm2022/index.mjs +4 -0
  115. app-ng-runtime/components/data/form/fesm2022/index.mjs.map +1 -1
  116. app-ng-runtime/components/data/form/form-field/form-field.directive.d.ts +1 -0
  117. app-ng-runtime/components/data/list/bundles/index.umd.js +19 -11
  118. app-ng-runtime/components/data/list/esm2022/list-item.directive.mjs +10 -1
  119. app-ng-runtime/components/data/list/esm2022/list.component.mjs +12 -12
  120. app-ng-runtime/components/data/list/fesm2022/index.mjs +20 -12
  121. app-ng-runtime/components/data/list/fesm2022/index.mjs.map +1 -1
  122. app-ng-runtime/components/data/live-table/bundles/index.umd.js +2 -2
  123. app-ng-runtime/components/data/live-table/esm2022/live-table.component.mjs +3 -3
  124. app-ng-runtime/components/data/live-table/fesm2022/index.mjs +2 -2
  125. app-ng-runtime/components/data/live-table/fesm2022/index.mjs.map +1 -1
  126. app-ng-runtime/components/data/pagination/bundles/index.umd.js +2 -0
  127. app-ng-runtime/components/data/pagination/esm2022/pagination.component.mjs +3 -1
  128. app-ng-runtime/components/data/pagination/fesm2022/index.mjs +2 -0
  129. app-ng-runtime/components/data/pagination/fesm2022/index.mjs.map +1 -1
  130. app-ng-runtime/components/data/table/bundles/index.umd.js +44 -10
  131. app-ng-runtime/components/data/table/esm2022/table-column/table-column.directive.mjs +14 -5
  132. app-ng-runtime/components/data/table/esm2022/table.component.mjs +30 -7
  133. app-ng-runtime/components/data/table/esm2022/table.props.mjs +3 -1
  134. app-ng-runtime/components/data/table/fesm2022/index.mjs +45 -11
  135. app-ng-runtime/components/data/table/fesm2022/index.mjs.map +1 -1
  136. app-ng-runtime/components/data/table/table.component.d.ts +8 -1
  137. app-ng-runtime/components/dialogs/alert-dialog/bundles/index.umd.js +6 -4
  138. app-ng-runtime/components/dialogs/alert-dialog/esm2022/alert-dialog.component.mjs +7 -5
  139. app-ng-runtime/components/dialogs/alert-dialog/fesm2022/index.mjs +6 -4
  140. app-ng-runtime/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
  141. app-ng-runtime/components/dialogs/confirm-dialog/bundles/index.umd.js +8 -5
  142. app-ng-runtime/components/dialogs/confirm-dialog/esm2022/confirm-dialog.component.mjs +9 -6
  143. app-ng-runtime/components/dialogs/confirm-dialog/fesm2022/index.mjs +8 -5
  144. app-ng-runtime/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
  145. app-ng-runtime/components/dialogs/default/bundles/index.umd.js +9 -3
  146. app-ng-runtime/components/dialogs/default/dialog-header/dialog-header.component.d.ts +2 -1
  147. app-ng-runtime/components/dialogs/default/esm2022/base-dialog.mjs +2 -1
  148. app-ng-runtime/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +9 -4
  149. app-ng-runtime/components/dialogs/default/fesm2022/index.mjs +9 -3
  150. app-ng-runtime/components/dialogs/default/fesm2022/index.mjs.map +1 -1
  151. app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +4 -4
  152. app-ng-runtime/components/dialogs/design-dialog/esm2022/dialog.component.mjs +5 -5
  153. app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs +4 -4
  154. app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
  155. app-ng-runtime/components/dialogs/iframe-dialog/bundles/index.umd.js +9 -5
  156. app-ng-runtime/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +10 -6
  157. app-ng-runtime/components/dialogs/iframe-dialog/fesm2022/index.mjs +9 -5
  158. app-ng-runtime/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
  159. app-ng-runtime/components/dialogs/partial-dialog/bundles/index.umd.js +9 -5
  160. app-ng-runtime/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +10 -6
  161. app-ng-runtime/components/dialogs/partial-dialog/fesm2022/index.mjs +9 -5
  162. app-ng-runtime/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
  163. app-ng-runtime/components/input/calendar/bundles/index.umd.js +2 -4
  164. app-ng-runtime/components/input/calendar/esm2022/calendar.component.mjs +3 -5
  165. app-ng-runtime/components/input/calendar/fesm2022/index.mjs +2 -4
  166. app-ng-runtime/components/input/calendar/fesm2022/index.mjs.map +1 -1
  167. app-ng-runtime/components/input/chips/bundles/index.umd.js +25 -7
  168. app-ng-runtime/components/input/chips/esm2022/chips.component.mjs +25 -8
  169. app-ng-runtime/components/input/chips/esm2022/chips.props.mjs +2 -1
  170. app-ng-runtime/components/input/chips/fesm2022/index.mjs +25 -7
  171. app-ng-runtime/components/input/chips/fesm2022/index.mjs.map +1 -1
  172. app-ng-runtime/components/input/color-picker/bundles/index.umd.js +5 -3
  173. app-ng-runtime/components/input/color-picker/color-picker.component.d.ts +1 -0
  174. app-ng-runtime/components/input/color-picker/esm2022/color-picker.component.mjs +6 -5
  175. app-ng-runtime/components/input/color-picker/esm2022/color-picker.props.mjs +2 -1
  176. app-ng-runtime/components/input/color-picker/fesm2022/index.mjs +5 -3
  177. app-ng-runtime/components/input/color-picker/fesm2022/index.mjs.map +1 -1
  178. app-ng-runtime/components/input/currency/bundles/index.umd.js +4 -3
  179. app-ng-runtime/components/input/currency/currency.component.d.ts +1 -0
  180. app-ng-runtime/components/input/currency/esm2022/currency.component.mjs +6 -6
  181. app-ng-runtime/components/input/currency/esm2022/currency.props.mjs +2 -1
  182. app-ng-runtime/components/input/currency/fesm2022/index.mjs +4 -3
  183. app-ng-runtime/components/input/currency/fesm2022/index.mjs.map +1 -1
  184. app-ng-runtime/components/input/default/bundles/index.umd.js +184 -105
  185. app-ng-runtime/components/input/default/button/button.component.d.ts +1 -0
  186. app-ng-runtime/components/input/default/checkbox/checkbox.component.d.ts +1 -0
  187. app-ng-runtime/components/input/default/esm2022/base-form.component.mjs +3 -3
  188. app-ng-runtime/components/input/default/esm2022/button/button.component.mjs +1 -1
  189. app-ng-runtime/components/input/default/esm2022/button/button.props.mjs +2 -1
  190. app-ng-runtime/components/input/default/esm2022/caption-position.directive.mjs +8 -7
  191. app-ng-runtime/components/input/default/esm2022/checkbox/checkbox.component.mjs +7 -7
  192. app-ng-runtime/components/input/default/esm2022/checkbox/checkbox.props.mjs +2 -1
  193. app-ng-runtime/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +21 -16
  194. app-ng-runtime/components/input/default/esm2022/number/number.component.mjs +5 -5
  195. app-ng-runtime/components/input/default/esm2022/number/number.props.mjs +3 -1
  196. app-ng-runtime/components/input/default/esm2022/radioset/radioset.component.mjs +28 -23
  197. app-ng-runtime/components/input/default/esm2022/select/select.component.mjs +20 -18
  198. app-ng-runtime/components/input/default/esm2022/select/select.props.mjs +2 -1
  199. app-ng-runtime/components/input/default/esm2022/switch/switch.component.mjs +6 -5
  200. app-ng-runtime/components/input/default/esm2022/switch/switch.props.mjs +2 -1
  201. app-ng-runtime/components/input/default/esm2022/text/calendar/input-calendar.component.mjs +5 -5
  202. app-ng-runtime/components/input/default/esm2022/text/calendar/input-calendar.props.mjs +2 -1
  203. app-ng-runtime/components/input/default/esm2022/text/color/input-color.component.mjs +5 -5
  204. app-ng-runtime/components/input/default/esm2022/text/color/input-color.props.mjs +2 -1
  205. app-ng-runtime/components/input/default/esm2022/text/email/input-email.component.mjs +5 -5
  206. app-ng-runtime/components/input/default/esm2022/text/email/input-email.props.mjs +2 -1
  207. app-ng-runtime/components/input/default/esm2022/text/locale/number-locale.mjs +66 -13
  208. app-ng-runtime/components/input/default/esm2022/text/number/input-number.component.mjs +5 -5
  209. app-ng-runtime/components/input/default/esm2022/text/number/input-number.props.mjs +2 -1
  210. app-ng-runtime/components/input/default/esm2022/text/text/input-text.component.mjs +5 -5
  211. app-ng-runtime/components/input/default/esm2022/text/text/input-text.props.mjs +2 -1
  212. app-ng-runtime/components/input/default/esm2022/textarea/textarea.component.mjs +6 -6
  213. app-ng-runtime/components/input/default/esm2022/textarea/textarea.props.mjs +2 -1
  214. app-ng-runtime/components/input/default/fesm2022/index.mjs +184 -105
  215. app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
  216. app-ng-runtime/components/input/default/number/number.component.d.ts +1 -0
  217. app-ng-runtime/components/input/default/select/select.component.d.ts +2 -0
  218. app-ng-runtime/components/input/default/text/calendar/input-calendar.component.d.ts +1 -0
  219. app-ng-runtime/components/input/default/text/color/input-color.component.d.ts +1 -0
  220. app-ng-runtime/components/input/default/text/email/input-email.component.d.ts +1 -0
  221. app-ng-runtime/components/input/default/text/locale/number-locale.d.ts +1 -0
  222. app-ng-runtime/components/input/default/text/number/input-number.component.d.ts +1 -0
  223. app-ng-runtime/components/input/default/text/text/input-text.component.d.ts +1 -0
  224. app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +1 -0
  225. app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +2 -1
  226. app-ng-runtime/components/input/epoch/bundles/index.umd.js +28 -21
  227. app-ng-runtime/components/input/epoch/date/date.component.d.ts +1 -0
  228. app-ng-runtime/components/input/epoch/date-time/date-time.component.d.ts +2 -1
  229. app-ng-runtime/components/input/epoch/esm2022/base-date-time.component.mjs +10 -6
  230. app-ng-runtime/components/input/epoch/esm2022/date/date.component.mjs +8 -8
  231. app-ng-runtime/components/input/epoch/esm2022/date/date.props.mjs +2 -1
  232. app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.component.mjs +9 -9
  233. app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.props.mjs +2 -1
  234. app-ng-runtime/components/input/epoch/esm2022/time/time.component.mjs +7 -7
  235. app-ng-runtime/components/input/epoch/esm2022/time/time.props.mjs +2 -1
  236. app-ng-runtime/components/input/epoch/fesm2022/index.mjs +25 -18
  237. app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
  238. app-ng-runtime/components/input/epoch/time/time.component.d.ts +1 -0
  239. app-ng-runtime/components/input/file-upload/bundles/index.umd.js +224 -121
  240. app-ng-runtime/components/input/file-upload/esm2022/file-upload.component.mjs +220 -123
  241. app-ng-runtime/components/input/file-upload/esm2022/file-upload.props.mjs +7 -1
  242. app-ng-runtime/components/input/file-upload/fesm2022/index.mjs +225 -122
  243. app-ng-runtime/components/input/file-upload/fesm2022/index.mjs.map +1 -1
  244. app-ng-runtime/components/input/file-upload/file-upload.component.d.ts +18 -11
  245. app-ng-runtime/components/input/rating/bundles/index.umd.js +2 -2
  246. app-ng-runtime/components/input/rating/esm2022/rating.component.mjs +3 -3
  247. app-ng-runtime/components/input/rating/fesm2022/index.mjs +2 -2
  248. app-ng-runtime/components/input/rating/fesm2022/index.mjs.map +1 -1
  249. app-ng-runtime/components/input/slider/bundles/index.umd.js +5 -6
  250. app-ng-runtime/components/input/slider/esm2022/slider.component.mjs +6 -8
  251. app-ng-runtime/components/input/slider/esm2022/slider.props.mjs +2 -1
  252. app-ng-runtime/components/input/slider/fesm2022/index.mjs +5 -6
  253. app-ng-runtime/components/input/slider/fesm2022/index.mjs.map +1 -1
  254. app-ng-runtime/components/input/slider/slider.component.d.ts +1 -0
  255. app-ng-runtime/components/navigation/breadcrumb/bundles/index.umd.js +6 -6
  256. app-ng-runtime/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +7 -7
  257. app-ng-runtime/components/navigation/breadcrumb/fesm2022/index.mjs +6 -6
  258. app-ng-runtime/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
  259. app-ng-runtime/components/navigation/menu/bundles/index.umd.js +8 -6
  260. app-ng-runtime/components/navigation/menu/esm2022/menu.component.mjs +8 -7
  261. app-ng-runtime/components/navigation/menu/esm2022/menu.props.mjs +2 -1
  262. app-ng-runtime/components/navigation/menu/fesm2022/index.mjs +8 -6
  263. app-ng-runtime/components/navigation/menu/fesm2022/index.mjs.map +1 -1
  264. app-ng-runtime/components/navigation/menu/menu.component.d.ts +1 -0
  265. app-ng-runtime/components/navigation/popover/bundles/index.umd.js +121 -13
  266. app-ng-runtime/components/navigation/popover/esm2022/popover.component.mjs +122 -15
  267. app-ng-runtime/components/navigation/popover/esm2022/popover.props.mjs +2 -1
  268. app-ng-runtime/components/navigation/popover/fesm2022/index.mjs +121 -13
  269. app-ng-runtime/components/navigation/popover/fesm2022/index.mjs.map +1 -1
  270. app-ng-runtime/components/navigation/popover/popover.component.d.ts +15 -3
  271. app-ng-runtime/components/page/default/bundles/index.umd.js +2 -1
  272. app-ng-runtime/components/page/default/esm2022/page.props.mjs +4 -3
  273. app-ng-runtime/components/page/default/fesm2022/index.mjs +2 -1
  274. app-ng-runtime/components/page/default/fesm2022/index.mjs.map +1 -1
  275. app-ng-runtime/components/page/footer/bundles/index.umd.js +2 -1
  276. app-ng-runtime/components/page/footer/esm2022/footer.props.mjs +3 -2
  277. app-ng-runtime/components/page/footer/fesm2022/index.mjs +2 -1
  278. app-ng-runtime/components/page/footer/fesm2022/index.mjs.map +1 -1
  279. app-ng-runtime/components/page/header/bundles/index.umd.js +2 -1
  280. app-ng-runtime/components/page/header/esm2022/header.props.mjs +3 -2
  281. app-ng-runtime/components/page/header/fesm2022/index.mjs +2 -1
  282. app-ng-runtime/components/page/header/fesm2022/index.mjs.map +1 -1
  283. app-ng-runtime/components/page/left-panel/bundles/index.umd.js +2 -1
  284. app-ng-runtime/components/page/left-panel/esm2022/left-panel.props.mjs +3 -2
  285. app-ng-runtime/components/page/left-panel/fesm2022/index.mjs +2 -1
  286. app-ng-runtime/components/page/left-panel/fesm2022/index.mjs.map +1 -1
  287. app-ng-runtime/components/page/right-panel/bundles/index.umd.js +2 -1
  288. app-ng-runtime/components/page/right-panel/esm2022/right-panel.props.mjs +3 -2
  289. app-ng-runtime/components/page/right-panel/fesm2022/index.mjs +2 -1
  290. app-ng-runtime/components/page/right-panel/fesm2022/index.mjs.map +1 -1
  291. app-ng-runtime/components/page/top-nav/bundles/index.umd.js +2 -1
  292. app-ng-runtime/components/page/top-nav/esm2022/top-nav.props.mjs +3 -2
  293. app-ng-runtime/components/page/top-nav/fesm2022/index.mjs +2 -1
  294. app-ng-runtime/components/page/top-nav/fesm2022/index.mjs.map +1 -1
  295. app-ng-runtime/core/bundles/index.umd.js +15 -13
  296. app-ng-runtime/core/esm2022/public_api.mjs +2 -2
  297. app-ng-runtime/core/esm2022/utils/build-utils.mjs +7 -7
  298. app-ng-runtime/core/esm2022/utils/utils.mjs +4 -5
  299. app-ng-runtime/core/fesm2022/index.mjs +11 -11
  300. app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
  301. app-ng-runtime/core/public_api.d.ts +1 -1
  302. app-ng-runtime/core/utils/utils.d.ts +1 -1
  303. app-ng-runtime/mobile/components/device/barcode-scanner/bundles/index.umd.js +2 -1
  304. app-ng-runtime/mobile/components/device/barcode-scanner/esm2022/barcode-scanner.props.mjs +3 -2
  305. app-ng-runtime/mobile/components/device/barcode-scanner/fesm2022/index.mjs +2 -1
  306. app-ng-runtime/mobile/components/device/barcode-scanner/fesm2022/index.mjs.map +1 -1
  307. app-ng-runtime/mobile/components/device/camera/bundles/index.umd.js +2 -1
  308. app-ng-runtime/mobile/components/device/camera/esm2022/camera.props.mjs +3 -2
  309. app-ng-runtime/mobile/components/device/camera/fesm2022/index.mjs +2 -1
  310. app-ng-runtime/mobile/components/device/camera/fesm2022/index.mjs.map +1 -1
  311. app-ng-runtime/package.json +1 -1
  312. app-ng-runtime/runtime/base/bundles/index.umd.js +6 -4
  313. app-ng-runtime/runtime/base/components/app-component/app.component.d.ts +2 -3
  314. app-ng-runtime/runtime/base/esm2022/components/app-component/app.component.mjs +5 -5
  315. app-ng-runtime/runtime/base/esm2022/guards/can-deactivate-page.guard.mjs +5 -4
  316. app-ng-runtime/runtime/base/fesm2022/index.mjs +6 -4
  317. app-ng-runtime/runtime/base/fesm2022/index.mjs.map +1 -1
  318. app-ng-runtime/runtime/base/guards/can-deactivate-page.guard.d.ts +2 -1
  319. app-ng-runtime/scripts/datatable/datatable.js +33 -32
  320. app-ng-runtime/variables/bundles/index.umd.js +34 -16
  321. app-ng-runtime/variables/esm2022/manager/variable/web-socket-variable.manager.mjs +35 -17
  322. app-ng-runtime/variables/fesm2022/index.mjs +34 -16
  323. app-ng-runtime/variables/fesm2022/index.mjs.map +1 -1
  324. app-ng-runtime/variables/manager/variable/web-socket-variable.manager.d.ts +0 -4
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/data/list/src/list.props.ts","../../../../../projects/components/widgets/data/list/src/list-item.directive.ts","../../../../../projects/components/widgets/data/list/src/list.animator.ts","../../../../../projects/components/widgets/data/list/src/list.component.html","../../../../../projects/components/widgets/data/list/src/list.component.ts","../../../../../projects/components/widgets/data/list/src/list.module.ts","../../../../../projects/components/widgets/data/list/src/index.ts"],"sourcesContent":["import { isMobileApp } from '@wm/core';\n\nimport { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-list',\n new Map(\n [\n ['boundarylinks', {value: false, ...PROP_BOOLEAN}],\n ['class', PROP_STRING],\n ['collapsible', PROP_BOOLEAN],\n ['dateformat', PROP_STRING],\n ['dataset', PROP_ANY],\n ['datasource', PROP_ANY],\n ['direction', {value: 'vertical', ...PROP_STRING}],\n ['directionlinks', {value: true, ...PROP_BOOLEAN}],\n ['disableitem', PROP_BOOLEAN],\n ['enablereorder', PROP_BOOLEAN],\n ['forceellipses', {value: true, ...PROP_BOOLEAN}],\n ['groupby', PROP_STRING],\n ['iconclass', PROP_STRING],\n ['itemclass', {value: '', ...PROP_STRING}],\n ['itemsperrow', PROP_STRING],\n ['listclass', {value: 'list-group', ...PROP_STRING}],\n ['multiselect', PROP_BOOLEAN],\n ['loadingdatamsg', {value : 'Loading...', ...PROP_STRING}],\n ['loadingicon', {value : 'fa fa-circle-o-notch', ...PROP_STRING}],\n ['match', PROP_STRING],\n ['maxsize', {value: 5, ...PROP_NUMBER}],\n ['name', PROP_STRING],\n ['navigation', PROP_STRING],\n ['navigationalign', {value: 'left', ...PROP_STRING}],\n ['nodatamessage', {value : 'No data found', ...PROP_STRING}],\n ['ondemandmessage', {value : 'Load More', ...PROP_STRING}],\n ['orderby', PROP_STRING],\n ['paginationclass', PROP_STRING],\n ['pagesize', PROP_NUMBER],\n ['pulltorefresh', {value: isMobileApp(), ...PROP_BOOLEAN}],\n ['selectfirstitem', PROP_BOOLEAN],\n ['selectionlimit', PROP_NUMBER],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['showcount', PROP_BOOLEAN],\n ['showrecordcount', PROP_BOOLEAN],\n ['statehandler', {value: 'none', ...PROP_STRING}],\n ['subheading', PROP_STRING],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['title', PROP_STRING]\n ]\n )\n );\n};\n","import {\n AfterViewInit,\n Directive,\n ElementRef,\n HostBinding,\n HostListener,\n Injector,\n Input,\n OnInit,\n Optional,\n ViewContainerRef\n} from '@angular/core';\n\nimport {Observable, Subject} from 'rxjs';\n\nimport {$watch, App} from '@wm/core';\n\nimport {ListComponent} from './list.component';\nimport {widgetIdGenerator} from \"@wm/components/base\";\n\ndeclare const $;\n\n@Directive({\n selector: '[wmListItem]',\n exportAs: 'listItemRef'\n})\nexport class ListItemDirective implements OnInit, AfterViewInit {\n\n public item;\n public context;\n public destroy: Subject<any> = new Subject();\n public destroy$: Observable<any> = this.destroy.asObservable();\n public nativeElement: HTMLElement;\n public readonly listComponent: ListComponent;\n\n private itemClass = '';\n private _currentItemWidgets = {};\n private viewContainerRef: ViewContainerRef;\n /**\n * To avoid re-rendering of widget, passing unique id as contextKey to createCustomInjector\n */\n protected trackId = widgetIdGenerator.nextUid();\n\n @HostBinding('class.active') isActive = false;\n @HostBinding('class.disable-item') disableItem = false;\n\n @HostListener('focus')\n onFocus() {\n // maintains which element is focused/selected most recently.\n this.listComponent.lastSelectedItem = this;\n }\n\n get $index() {\n return this.context.index;\n }\n\n get $even() {\n return this.context.even;\n }\n\n get $odd() {\n return this.context.odd;\n }\n\n get $first() {\n return this.context.first;\n }\n\n get $last() {\n return this.context.last;\n }\n\n get currentItemWidgets () {\n const componentElements = Array.from(this.nativeElement.querySelectorAll('[widget-id]'));\n return Object.assign(this._currentItemWidgets, componentElements.reduce((result, comp: any) => {\n result[comp.widget.name] = comp.widget;\n return result;\n }, {}));\n }\n\n @Input() set wmListItem(val) {\n this.item = val;\n }\n\n constructor(private inj: Injector, elRef: ElementRef, private app: App, @Optional() public _viewParent: ListComponent) {\n this.viewContainerRef = inj.get(ViewContainerRef);\n this.nativeElement = elRef.nativeElement;\n this.listComponent = _viewParent;\n // this.context = (<NgForOfContext<ListItemDirective>>(<any>inj).view.context);\n this.context = (this.inj as any)._lView[8];\n //this.context = (this.viewContainerRef as any)._hostLView.find(t => t && !!t.$implicit);\n this.itemClassWatcher(this.listComponent);\n this.disableItemWatcher(this.listComponent);\n $(this.nativeElement).data('listItemContext', this);\n }\n\n private registerWatch(expression: string, callback: Function) {\n // Removing ngFor context as the same properties are availble on listitem scope.\n // passing viewparent context for accessing varibales and widgets.\n //[CSP]: expression will be generated in the component as e.g. 'item.className'\n this.destroy$.subscribe($watch(expression, (this.listComponent as any).viewParent, this, callback));\n }\n\n private itemClassWatcher(listComponent: ListComponent) {\n if (listComponent.binditemclass) {\n this.registerWatch(listComponent.binditemclass, nv => this.itemClass = nv || '');\n } else {\n this.itemClass = listComponent.itemclass;\n }\n }\n\n private disableItemWatcher($list: ListComponent) {\n if ($list.binddisableitem) {\n this.registerWatch($list.binddisableitem, nv => this.disableItem = nv || false);\n } else {\n this.disableItem = $list.disableitem || false;\n }\n }\n\n private setUpCUDHandlers() {\n const $editItem = this.nativeElement.querySelector('.edit-list-item');\n const $deleteItem = this.nativeElement.querySelector('.delete-list-item');\n\n if ($editItem) {\n // Triggered on click of edit action\n $editItem.addEventListener('click', evt => {\n this.listComponent.update();\n });\n }\n\n if ($deleteItem) {\n // Triggered on click of delete action\n $deleteItem.addEventListener('click', evt => {\n this.listComponent.delete();\n });\n }\n }\n ngOnInit() {\n if (this.listComponent.mouseEnterCB) {\n this.nativeElement.addEventListener('mouseenter', ($event) => {\n this.listComponent.invokeEventCallback('mouseenter', {widget: this, $event});\n });\n }\n if (this.listComponent.mouseLeaveCB) {\n this.nativeElement.addEventListener('mouseleave', ($event) => {\n this.listComponent.invokeEventCallback('mouseleave', {widget: this, $event});\n });\n }\n // adding item attribute on every list item\n $(this.nativeElement).attr('listitemindex', this.$index);\n }\n\n ngAfterViewInit() {\n this.setUpCUDHandlers();\n }\n}\n","import { QueryList } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { SwipeAnimation } from '@swipey';\nimport { ButtonComponent } from '@wm/components/input';\n\nimport { ListComponent } from './list.component';\nimport {map, reduce} from \"lodash-es\";\n\ndeclare const $;\n\nexport class ListAnimator extends SwipeAnimation {\n private $el: JQuery<HTMLElement>;\n private li: JQuery<HTMLElement>;\n private limit: number;\n private transitionProportions: any;\n private rightChildrenCount: number;\n private leftChildrenCount: number;\n private position: string;\n private actionPanel: JQuery<HTMLElement>;\n private actionItems: QueryList<ButtonComponent>;\n public $btnSubscription: Subscription;\n\n constructor(private list: ListComponent) {\n super();\n this.$el = $(this.list.getNativeElement()).find('ul.app-livelist-container').first();\n\n this.leftChildrenCount = this.$el.find('>.app-list-item-left-action-panel > button:visible').length;\n this.rightChildrenCount = this.$el.find('>.app-list-item-right-action-panel > button:visible').length;\n\n // when there are no children in both the templates then do not apply swipeAnimation;\n if (!this.leftChildrenCount && !this.rightChildrenCount) {\n return;\n }\n\n // initialise swipe animation on the list component.\n this.init(this.$el);\n\n // retrieves all the button components which are placed outside the listTemplate.\n this.$btnSubscription = this.list.btnComponents.changes.subscribe(items => this.actionItems = items);\n }\n\n // This method sets the css for left or right action panels based on the template. Appends the actionTemplate before li.\n private createActionPanel(li: JQuery<HTMLElement>, actionPanelTemplate: JQuery<HTMLElement>): JQuery<HTMLElement> {\n actionPanelTemplate.css({\n width: li.outerWidth() + 'px',\n height: li.outerHeight() + 'px',\n marginBottom: -1 * li.outerHeight() + 'px',\n float: 'left',\n padding: 0\n });\n\n return actionPanelTemplate.insertBefore(li);\n }\n\n // Returns the total width occupied by all the children inside the element\n private computeTotalChildrenWidth($ele: JQuery<HTMLElement>): number {\n return reduce($ele.children(), (totalWidth, el) => {\n return totalWidth + $(el).outerWidth();\n }, 0);\n }\n\n // Returns amount of transition to be applied on element when swiped left or right\n private computeTransitionProportions($ele: JQuery<HTMLElement>): number {\n const totalWidth = this.computeTotalChildrenWidth($ele);\n const reverse = this.position === 'right';\n let d = 0;\n // @ts-ignore\n return map($ele.children(), e => {\n const f = (totalWidth - d) / totalWidth;\n d += $(e).outerWidth();\n return reverse ? f : (d / totalWidth);\n });\n }\n\n // Resets the transform applied on the element.\n private resetElement(el: JQuery<HTMLElement>): void {\n if (el) {\n el.css({\n transform: 'none',\n transition: 'none'\n });\n }\n }\n\n private resetState(): void {\n this.resetElement(this.li);\n this.resetElement(this.actionPanel);\n if (this.actionPanel) {\n this.actionPanel = null;\n }\n }\n\n // Returns the target button (child element) inside the left and right actionPanels.\n private getChildActionElement(actionTemplate): JQuery<HTMLElement> {\n if (actionTemplate.children().length) {\n if (this.position === 'left') {\n return actionTemplate.children().first();\n }\n return actionTemplate.children().last();\n }\n }\n\n // create the actionPanels and set the background-color for remaining panel as that of first child element\n // calculates the children's width and its transition proportionates.\n private initActionPanel(actionTemplate: JQuery<HTMLElement>): void {\n this.actionPanel = this.createActionPanel(this.li, actionTemplate);\n this.actionPanel.css({\n backgroundColor: this.getChildActionElement(this.actionPanel).css('background-color')\n });\n this.limit = this.computeTotalChildrenWidth(this.actionPanel);\n this.transitionProportions = this.computeTransitionProportions(this.actionPanel);\n }\n\n public bounds(e?: any, $d?: number): any {\n const target = $(e.target).closest('li');\n // default bounds when action template markup is not available.\n let bounds: {} = {\n strictUpper: true,\n strictLower: true,\n lower: 0,\n center: 0,\n upper: 0\n };\n // apply swipe animation only on list items having \"app-list-item\" class.\n if (!target.hasClass('app-list-item')) {\n return bounds;\n }\n if (!this.li || this.li[0] !== target[0]) {\n let selector = $d > 0 ? '.app-list-item-left-action-panel' : '.app-list-item-right-action-panel';\n let actionTemplate = this.$el.find('>' + selector);\n\n // when groupby is set select the action panel from the list group items.\n if (!actionTemplate.length && this.list.groupby) {\n selector = 'li > ul.list-group >' + selector;\n actionTemplate = this.$el.find('>' + selector);\n }\n\n // check for children visiblity. If children are visible then initiate the action panel.\n if (!actionTemplate.length || !actionTemplate.find('button:visible').length) {\n return bounds;\n }\n\n this.resetState();\n this.li = target;\n\n this.position = actionTemplate.attr('position');\n this.initActionPanel(actionTemplate);\n\n if ($d > 0) {\n // bounds while swiping from right to left to open left action panel. It can be moved upto limit value (Upper bound).\n bounds = {\n strictUpper: false,\n lower: 0,\n center: 0,\n upper: this.limit\n };\n } else {\n // bounds while swiping from left to right to open right action panel. It can be moved in reverse direction with -limit value (lower bound).\n bounds = {\n strictLower: false,\n lower: -this.limit,\n center: 0,\n upper: 0\n };\n }\n } else if (this.position === 'left') {\n // when left action panel is visible (i.e. center at limit value) then this can be moved by distance (limit) in reverse direction to close the view.\n bounds = {\n strictUpper: false,\n lower: -this.limit,\n center: this.limit\n };\n } else if (this.position === 'right') {\n // when right action panel is visible (i.e. center at -limit value) then this can be moved by distance (limit) to close the view.\n bounds = {\n center: -this.limit,\n upper: this.limit,\n strictLower: false\n };\n }\n return bounds;\n }\n\n public context(): any {\n return {\n computeActionTransition: (index: number, $d: number): number => {\n const sign = $d > 0 ? 1 : -1;\n\n if (sign * $d > this.limit) {\n // once the distance swiped is beyond the limit, then calculate the proportionate distance moved after the limit value.\n return ($d - sign * this.limit) + (this.transitionProportions[index] * sign * this.limit);\n }\n return this.transitionProportions[index] * $d;\n }\n };\n }\n\n public animation(): any {\n return [{\n target: () => this.li,\n css: {\n transform: 'translate3d(${{$D + $d}}px, 0, 0)'\n }\n }, { // styles to be applied on the child elements of action panel\n target: () => (this.actionPanel && this.actionPanel.children()),\n css: {\n transform: 'translate3d(${{computeActionTransition($i, $D + $d)}}px, 0, 0)'\n }\n }];\n }\n\n // Triggers full swipe event on the target element.\n public invokeFullSwipeEvt($event: Event): void {\n let target, actions, index;\n // Check if button are visible or not, invoke the tap event of the last button which is visible.\n if (this.position === 'left') {\n actions = this.actionItems.filter(btn => {\n return btn.getAttr('swipe-position') === 'left' && btn.$element.is(':visible');\n });\n index = 0;\n } else {\n actions = this.actionItems.filter(btn => {\n return btn.getAttr('swipe-position') === 'right' && btn.$element.is(':visible');\n });\n index = actions.length - 1;\n }\n target = actions[index];\n if (target && target.hasEventCallback('tap')) {\n target.invokeEventCallback('tap', {$event});\n }\n this.resetState();\n this.li = null;\n }\n\n // Called when swipeEnd is triggered. d contains the total distance covered by the element until touchEnd.\n public onAnimation($event: Event, d: number): void {\n // set the selecteditem on the list component on swipe.\n this.list.triggerListItemSelection(this.li, $event);\n if (this.actionPanel && this.actionPanel.attr('enablefullswipe') === 'true') {\n const sign = d > 0 ? 1 : -1;\n const $el = this.getChildActionElement(this.actionPanel);\n if ($el) {\n const index = this.position === 'right' ? this.rightChildrenCount - 1 : 0;\n // proportionate amount of distance covered by the target element.\n const distPercentage = this.transitionProportions[index] * sign * d * 100 / (this.li.outerWidth() - this.limit + $el.width());\n\n // If distance travelled by the target button element is more than 50% of the list item width then invoke the fullswipe.\n if (distPercentage > 50) {\n // invoke fullswipe event\n this.invokeFullSwipeEvt($event);\n }\n }\n }\n }\n\n public onLower(): void {\n if (this.position === 'left') {\n this.resetState();\n this.li = null;\n }\n }\n\n public onUpper(): void {\n if (this.position === 'right') {\n this.resetState();\n this.li = null;\n }\n }\n\n public threshold(): number {\n return 10;\n }\n}\n","<div class=\"panel-heading\" *ngIf=\"title || subheading || iconclass\">\n <h3 class=\"panel-title\">\n <div class=\"pull-left\">\n <i class=\"app-icon panel-icon {{iconclass}}\" aria-hidden=\"true\" [hidden]=\"!iconclass\"></i>\n </div>\n <div class=\"pull-left\">\n <div class=\"heading\" [innerHTML]=\"title\"></div>\n <div class=\"description\" [innerHTML]=\"subheading\"></div>\n </div>\n </h3>\n</div>\n\n<div class=\"app-datanavigator\" [attr.aria-disabled]=\"dataNavigator.isDisablePrevious\" aria-label=\"Page navigation\" *ngIf=\"navigation === 'Inline' && !noDataFound\">\n <ul class=\"pager\">\n <li class=\"previous\" [ngClass]=\"{'disabled': (dataNavigator ? dataNavigator.isDisablePrevious : true)}\">\n <a href=\"javascript:void(0);\" (click)=\"dataNavigator.navigatePage('prev', $event)\"\n [attr.aria-disabled]=\"dataNavigator.isDisablePrevious\">\n <i class=\"wi wi-chevron-left\" aria-hidden=\"true\"></i>\n <span class=\"sr-only\">Go to Previous page {{dataNavigator.isDisablePrevious ? ', Disabled' : ''}}</span>\n </a>\n </li>\n </ul>\n</div>\n<div *ngIf=\"navigation === 'Inline' && !noDataFound\" aria-live=\"polite\" aria-atomic=\"true\" class=\"sr-only\"> {{'Page ' + dataNavigator.dn.currentPage + ' of ' + dataNavigator.pageCount }}</div>\n\n<div>\n <div id={{titleId}} class=\"sr-only\" *ngIf=\"enablereorder\">\n Press space bar to toggle drag drop mode, use arrow keys to move selected elements.\n </div>\n\n <div aria-live=\"assertive\" *ngIf=\"listItems && enablereorder && currentIndex\" class=\"sr-only\" >\n {{ariaText + currentIndex + ' of ' + listItems.length}}\n </div>\n</div>\n\n<ul [attr.tabindex]=\"tabindex\" class=\"app-livelist-container clearfix {{direction === 'horizontal' ? 'app-horizontal-list': ''}} {{listclass}}\" role=\"list\"\n (keydown.enter)=\"handleKeyDown($event, 'select')\"\n\n (keydown.space)=\"handleKeyDown($event, 'space')\"\n\n (keydown.arrowup)=\"handleKeyDown($event, 'focusPrev')\"\n (keydown.arrowdown)=\"handleKeyDown($event, 'focusNext')\"\n (keydown.arrowleft)=\"handleKeyDown($event, 'focusPrev')\"\n (keydown.arrowright)=\"handleKeyDown($event, 'focusNext')\"\n\n (keydown.shift.arrowup)=\"handleKeyDown($event, 'selectPrev')\"\n (keydown.shift.arrowdown)=\"handleKeyDown($event, 'selectNext')\"\n (keydown.shift.arrowleft)=\"handleKeyDown($event, 'selectPrev')\"\n (keydown.shift.arrowright)=\"handleKeyDown($event, 'selectNext')\"\n [hidden]=\"noDataFound && !variableInflight\"\n>\n <ng-template [ngIf]=\"!groupby\" [ngIfElse]=\"groupedListTemplate\">\n <li *ngFor=\"let item of fieldDefs; index as $index; first as $first; last as $last;\" class=\"app-list-item {{direction === 'horizontal' ? '' : itemsPerRowClass}}\" [ngClass]=\"listItemRef.itemClass\"\n [wmListItem]=\"item\"\n #listItemRef=\"listItemRef\"\n [attr.tabindex]=\"tabindex\"\n role=\"listitem\">\n <ng-container [ngTemplateOutlet]=\"listTemplate\"\n [ngTemplateOutletInjector]=\"createCustomInjector('falt_' + listItemRef.trackId, {item: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets})\"\n [ngTemplateOutletContext]=\"{item: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets}\"></ng-container>\n </li>\n </ng-template>\n <ng-container [ngTemplateOutlet]=\"listLeftActionTemplate\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"listRightActionTemplate\"></ng-container>\n</ul>\n\n<div class=\"no-data-msg\" *ngIf=\"noDataFound && !variableInflight\" [textContent]=\"nodatamessage\"></div>\n\n<div class=\"loading-data-msg\" *ngIf=\"variableInflight && !pulltorefresh\">\n <span>\n <i class=\"app-icon panel-icon fa-spin\" aria-hidden=\"true\" [ngClass]=\"loadingicon\"></i>\n <span class=\"sr-only\">Loading</span>\n <span class=\"loading-text\" [textContent]=\"loadingdatamsg\"></span>\n </span>\n</div>\n\n<div class=\"app-datanavigator\" [attr.aria-disabled]=\"dataNavigator.isDisableNext\" *ngIf=\"navigation === 'Inline' && !noDataFound\">\n <ul class=\"pager\">\n <li class=\"next\" [ngClass]=\"{'disabled': (dataNavigator ? dataNavigator.isDisableNext : true)}\">\n <a href=\"javascript:void(0);\" (click)=\"dataNavigator.navigatePage('next', $event)\"\n [attr.aria-disabled]=\"dataNavigator.isDisableNext\">\n <i class=\"wi wi-chevron-right\" aria-hidden=\"true\"></i>\n <span class=\"sr-only\">Go to Next page {{dataNavigator.isDisableNext ? ', Disabled' : ''}}</span>\n </a>\n </li>\n </ul>\n</div>\n\n<div class=\"panel-footer\" *ngIf=\"navigation !== 'None'\" [hidden]=\"!showNavigation || (onDemandLoad && dataNavigator.isDisableNext) || (dataNavigator.dataSize <= pagesize) || (!dataNavigator.dataSize && !dataNavigator.datasource?.pagination?.next)\">\n <nav wmPagination\n navigationalign.bind=\"navigationalign\"\n navigation.bind=\"navControls\"\n showrecordcount.bind=\"showrecordcount\"\n maxsize.bind=\"maxsize\"\n boundarylinks.bind=\"boundarylinks\"\n forceellipses.bind=\"forceellipses\"\n directionlinks.bind=\"directionlinks\"\n show.bind=\"!onDemandLoad\"\n paginationchange.event=\"beforePaginationChange($event, $index)\"\n ></nav>\n <a *ngIf=\"onDemandLoad\" href=\"javascript:void(0);\"\n (click)=\"dataNavigator.navigatePage('next', $event)\"\n class=\"app-button btn btn-block\"\n [ngClass]=\"paginationclass\"\n [textContent]=\"ondemandmessage\"\n ></a>\n</div>\n\n<!--This template will be displayed when groupby is specified-->\n<ng-template #groupedListTemplate>\n <li *ngFor=\"let groupObj of groupedData; let groupIndex = index;\" class=\"app-list-item-group clearfix\">\n <ul [attr.tabindex]=\"tabindex\" class=\"list-group item-group\" [ngClass]=\"listclass\">\n <li class=\"app-list-item-header list-item list-group-header\" (click)=\"handleHeaderClick($event)\" [ngClass]=\"{'collapsible-content': collapsible}\">\n <h4>{{groupObj.key}}\n <div class=\"header-action\">\n <i class=\"app-icon wi action wi-chevron-up\" *ngIf=\"collapsible\"></i>\n <span *ngIf=\"showcount\" class=\"label label-default\">{{groupObj.data.length}}</span>\n </div>\n </h4>\n </li>\n <ul class=\"list-group clearfix {{direction === 'horizontal' ? 'app-horizontal-list': ''}}\">\n <li *ngFor=\"let item of groupObj.data; index as $index; trackBy: trackByFn; first as $first; last as $last;\" [attr.tabindex]=\"tabindex\"\n class=\"app-list-item group-list-item {{itemsPerRowClass}}\"\n [ngClass]=\"listItemRef.itemClass\"\n [wmListItem]=\"item\" #listItemRef=\"listItemRef\">\n <ng-container [ngTemplateOutlet]=\"listTemplate\"\n [ngTemplateOutletInjector]=\"createCustomInjector('group_' + listItemRef.trackId, {item: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets})\"\n [ngTemplateOutletContext]=\"{item: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets}\"></ng-container>\n </li>\n </ul>\n </ul>\n </li>\n</ng-template>\n","import {\n AfterViewInit,\n Attribute,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ContentChildren,\n ElementRef, Inject,\n Injector,\n NgZone,\n OnDestroy,\n OnInit,\n Optional,\n QueryList,\n TemplateRef,\n ViewChild,\n ViewChildren\n} from '@angular/core';\n\nimport {Subscription} from 'rxjs';\n\nimport {\n $appDigest,\n $invokeWatchers,\n App,\n AppDefaults,\n DataSource,\n getClonedObject,\n isDataSourceEqual,\n isDefined,\n isMobile,\n isMobileApp,\n isObject,\n noop,\n switchClass,\n StatePersistence,\n PaginationService,\n setListClass,\n generateGUId\n} from '@wm/core';\nimport {\n APPLY_STYLES_TYPE,\n configureDnD,\n DEBOUNCE_TIMES,\n getOrderedDataset,\n groupData,\n handleHeaderClick,\n NAVIGATION_TYPE,\n unsupportedStatePersistenceTypes,\n provideAsWidgetRef,\n StylableComponent,\n styler,\n ToDatePipe,\n toggleAllHeaders,\n WidgetRef,\n extractDataSourceName\n} from '@wm/components/base';\nimport {PaginationComponent} from '@wm/components/data/pagination';\nimport {ButtonComponent} from '@wm/components/input';\n\nimport {registerProps} from './list.props';\nimport {ListItemDirective} from './list-item.directive';\nimport {ListAnimator} from './list.animator';\nimport {\n clone,\n cloneDeep,\n forEach,\n get, has,\n includes,\n isArray,\n isEmpty,\n isEqual,\n isNumber,\n isString,\n isUndefined,\n last, max, min, pullAllWith, pullAt, remove, some, toNumber\n} from \"lodash-es\";\n\ndeclare const $;\n\nconst DEFAULT_CLS = 'app-livelist app-panel';\nconst WIDGET_CONFIG = {widgetType: 'wm-list', hostClass: DEFAULT_CLS};\n\n@Component({\n selector: 'div[wmList]',\n templateUrl: './list.component.html',\n providers: [\n provideAsWidgetRef(ListComponent)\n ]\n})\nexport class ListComponent extends StylableComponent implements OnInit, AfterViewInit, OnDestroy {\n static initializeProps = registerProps();\n\n @ContentChild('listTemplate') listTemplate: TemplateRef<ElementRef>;\n\n @ContentChild('listLeftActionTemplate') listLeftActionTemplate: TemplateRef<ElementRef>;\n @ContentChild('listRightActionTemplate') listRightActionTemplate: TemplateRef<ElementRef>;\n @ContentChildren(ButtonComponent) btnComponents;\n\n @ViewChild(PaginationComponent) dataNavigator;\n @ViewChildren(ListItemDirective) listItems: QueryList<ListItemDirective>;\n public noDataFound: boolean;\n public lastSelectedItem: ListItemDirective;\n public fieldDefs: Array<any>;\n public disableitem;\n public navigation: string;\n public navigationalign: string;\n public pagesize: number;\n public dataset: any;\n public multiselect: boolean;\n public selectfirstitem: boolean;\n public orderby: string;\n public loadingicon: string;\n public paginationclass: string;\n public ondemandmessage: string;\n public loadingdatamsg: string;\n public selectionlimit: number;\n public infScroll: boolean;\n public enablereorder: boolean;\n public itemsperrow: string;\n public itemclass: string;\n public selectedItemWidgets: Array<WidgetRef> | WidgetRef;\n public variableInflight;\n public name;\n public currentPage;\n public direction;\n public tabindex;\n public handleHeaderClick: Function;\n public toggleAllHeaders: void;\n public groupby: string;\n public collapsible: string;\n public datePipe: ToDatePipe;\n public binditemclass: string;\n public binddisableitem: string;\n public binddataset: string;\n public mouseEnterCB: string;\n public mouseLeaveCB: string;\n public pulltorefresh: boolean;\n public title: string;\n public subheading: string;\n public iconclass: string;\n public listclass: any;\n public statehandler: any;\n public currentIndex: number;\n public titleId: string;\n _isDependent;\n private itemsPerRowClass: string;\n private firstSelectedItem: ListItemDirective;\n private navigatorMaxResultWatch: Subscription;\n private navigatorResultWatch: Subscription;\n private navControls: string;\n private onDemandLoad: boolean;\n private _items: Array<any>;\n private dataNavigatorWatched: boolean;\n private datasource: any;\n private showNavigation: boolean;\n private reorderProps: any;\n private app: any;\n private appDefaults: any;\n private ngZone: NgZone;\n private statePersistence: StatePersistence;\n private paginationService: PaginationService;\n private binddatasource: string;\n private match: string;\n private dateformat: string;\n private groupedData: any;\n private cdRef: ChangeDetectorRef;\n private promiseResolverFn: Function;\n private propsInitPromise: Promise<any>;\n private $ulEle: any;\n private _listAnimator: ListAnimator;\n private _listenerDestroyers: Array<any>;\n private debouncedFetchNextDatasetOnScroll: Function;\n private isDataChanged: boolean;\n private isListElementMovable: boolean;\n private ariaText: String;\n private _pageLoad;\n private _selectedItemsExist;\n\n private touching;\n private touched;\n\n constructor(\n inj: Injector,\n cdRef: ChangeDetectorRef,\n datePipe: ToDatePipe,\n app: App,\n appDefaults: AppDefaults,\n ngZone: NgZone,\n @Attribute('itemclass.bind') binditemclass: string,\n @Attribute('disableitem.bind') binddisableitem: string,\n @Attribute('dataset.bind') binddataset: string,\n @Attribute('datasource.bind') binddatasource: string,\n @Attribute('mouseenter.event') mouseEnterCB: string,\n @Attribute('mouseleave.event') mouseLeaveCB: string,\n statePersistence: StatePersistence,\n paginationService: PaginationService,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n let resolveFn: Function = noop;\n const propsInitPromise = new Promise(res => resolveFn = res);\n super(inj, WIDGET_CONFIG, explicitContext, propsInitPromise);\n this.propsInitPromise = propsInitPromise;\n this.promiseResolverFn = resolveFn;\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.SHELL);\n this.cdRef = cdRef;\n this.ngZone = ngZone;\n this.datePipe = datePipe;\n this.statePersistence = statePersistence;\n this.paginationService = paginationService;\n this._pageLoad = true;\n\n this.binditemclass = binditemclass;\n this.binddisableitem = binddisableitem;\n this.binddataset = binddataset;\n this.mouseEnterCB = mouseEnterCB;\n this.mouseLeaveCB = mouseLeaveCB;\n this.binddatasource = binddatasource;\n\n this.app = app;\n this.appDefaults = appDefaults;\n this.variableInflight = false;\n\n this.noDataFound = !binddataset;\n this.titleId = 'wmlist-' + generateGUId();\n\n // Updates pagination, filter, sort etc options for service and crud variables\n this._listenerDestroyers = [\n this.app.subscribe('check-state-persistence-options', options => {\n let dataSourceName = get(this.datasource, 'name');\n // in Prefabs, this.datasource is not resolved at the time of variable invocation, so additional check is required.\n if (!dataSourceName) {\n dataSourceName = extractDataSourceName(this.binddatasource);\n }\n if (get(options, 'variable.name') !== dataSourceName) {\n return;\n }\n this.handleStateParams(options);\n }),\n // Show loading status based on the variable life cycle\n this.app.subscribe('toggle-variable-state', this.handleLoading.bind(this)),\n this.app.subscribe('setup-cud-listener', param => {\n if (this.nativeElement.getAttribute('name') !== param) {\n return;\n }\n this._isDependent = true;\n })\n ];\n }\n\n public get selecteditem() {\n if (this.multiselect) {\n return getClonedObject(this._items);\n }\n if (isEmpty(this._items)) {\n return {};\n }\n return getClonedObject(this._items[0]);\n }\n\n public set selecteditem(items) {\n this._items.length = 0;\n this.deselectListItems();\n\n if (isArray(items)) {\n items.forEach(item => this.selectItem(item));\n } else {\n this.selectItem(items);\n }\n $appDigest();\n }\n\n /**\n * Returns list of widgets present on list item by considering name and index of the widget.\n * If we did'nt pass index, it returns array of all the widgets which are matching to widget name\n * @param widgteName: Name of the widget\n * @param index: Index of the widget\n */\n public getWidgets(widgteName: string, index?: number) {\n let $target;\n const retVal = [];\n\n if (!widgteName) {\n return;\n }\n\n if (!isDefined(index)) {\n forEach(this.listItems.toArray(), (el) => {\n $target = get(el.currentItemWidgets, widgteName);\n if ($target) {\n retVal.push($target);\n }\n });\n\n return retVal;\n }\n index = +index || 0;\n\n $target = get(this.listItems.toArray(), index);\n\n if ($target) {\n return [get($target.currentItemWidgets, widgteName)];\n }\n }\n\n // returns listitem reference by index value. This refers to the same method getListItemByIndex.\n public getItem(index: number) {\n return this.getListItemByIndex(index);\n }\n\n /**\n * Returns index of listItem(listItemDirective / listItemObject)\n * If item is a directive, index is fetched from listItems\n * If item is an object, index is fetched from fieldDefs\n */\n public getIndex(item: any) {\n if (item instanceof ListItemDirective) {\n return this.getListItemIndex(item);\n } else if (item) {\n return this.fieldDefs.findIndex((obj) => isEqual(obj, item));\n }\n }\n\n create() {\n if (this._isDependent) {\n this.triggerWMEvent('insert');\n }\n }\n\n editRow(item?) {\n if (this._isDependent) {\n let listItem;\n if (item) {\n listItem = this.getItemRefByIndexOrModel(item).item;\n }\n this.triggerWMEvent('update', listItem);\n }\n }\n\n update(item?) {\n this.editRow(item);\n }\n\n deleteRow(item?) {\n if (this._isDependent) {\n let listItem;\n if (item) {\n listItem = this.getItemRefByIndexOrModel(item).item;\n }\n this.triggerWMEvent('delete', listItem);\n }\n }\n\n delete(item?) {\n this.deleteRow(item);\n }\n\n handleLoading(data) {\n const dataSource = this.datasource;\n if (dataSource && dataSource.execute(DataSource.Operation.IS_API_AWARE) && isDataSourceEqual(data.variable, dataSource)) {\n this.ngZone.run(() => {\n this.handleStateParams(data);\n this.variableInflight = data.active;\n // Fix for [WMS-23772] Update nodatafound flag once the response is recieved from the server\n const totalEle = data.data?.pagination?.totalElements;\n if (!isUndefined(totalEle)) {\n this.noDataFound = totalEle === 0 ? true : false;\n } else { // totalelements is undefined\n this.noDataFound = isEmpty(data.data?.data);\n }\n });\n }\n }\n\n public triggerListItemSelection($el: JQuery<HTMLElement>, $event: Event) {\n if ($el && $el[0]) {\n const listItemContext = $el.data('listItemContext');\n // Trigger click event only if the list item is from the corresponding list.\n if (listItemContext.listComponent === this) {\n this.onItemClick($event, listItemContext);\n }\n }\n }\n\n // this method is called form other data widgets like table.\n public execute(operation, options) {\n if ([DataSource.Operation.IS_API_AWARE, DataSource.Operation.IS_PAGEABLE, DataSource.Operation.SUPPORTS_SERVER_FILTER].includes(operation)) {\n return false;\n }\n return this.datasource.execute(operation, options);\n }\n\n public handleKeyDown($event, action: string) {\n $event.stopPropagation();\n if ($event.keyCode !== 13 && $event.keyCode !== 9 && !(($event.target.classList.contains('form-control') || $event.target.classList.contains('note-editable')) && $event.keyCode === 32)) {\n $event.preventDefault();\n }\n\n const listItems: QueryList<ListItemDirective> = this.listItems;\n\n let presentIndex: number = this.getListItemIndex(this.lastSelectedItem);\n\n if (this.multiselect) {\n const firstIndex: number = this.getListItemIndex(this.firstSelectedItem);\n const selectCount: number = isArray(this.selecteditem) ? this.selecteditem.length : (isObject(this.selecteditem) ? 1 : 0);\n if (action === 'selectPrev') {\n if (presentIndex > 0) {\n if ((presentIndex <= firstIndex) && this.checkSelectionLimit(selectCount)) {\n this.lastSelectedItem = this.getListItemByIndex(presentIndex - 1);\n this.toggleListItemSelection(this.lastSelectedItem);\n } else if (presentIndex > firstIndex) {\n this.toggleListItemSelection(this.getListItemByIndex(presentIndex));\n this.lastSelectedItem = this.getListItemByIndex(presentIndex - 1);\n } else {\n this.invokeEventCallback('selectionlimitexceed', {$event});\n }\n }\n } else if (action === 'selectNext') {\n if (presentIndex < listItems.length - 1) {\n if ((presentIndex >= firstIndex) && this.checkSelectionLimit(selectCount)) {\n this.lastSelectedItem = this.getListItemByIndex(presentIndex + 1);\n this.toggleListItemSelection(this.lastSelectedItem);\n } else if (presentIndex < firstIndex) {\n this.toggleListItemSelection(this.getListItemByIndex(presentIndex));\n this.lastSelectedItem = this.getListItemByIndex(presentIndex + 1);\n } else {\n this.invokeEventCallback('selectionlimitexceed', {$event});\n }\n }\n }\n }\n if (action === 'focusPrev') {\n if (this.isListElementMovable) {\n presentIndex = presentIndex <= 0 ? 0 : (presentIndex);\n if (presentIndex === 0) {\n return;\n }\n\n this.lastSelectedItem = this.getListItemByIndex(presentIndex);\n const prevElt = this.getListItemByIndex(presentIndex - 1);\n prevElt.nativeElement.before(this.lastSelectedItem.nativeElement);\n this.lastSelectedItem.nativeElement.focus();\n this.statePersistence.removeWidgetState(this, 'selectedItem');\n const arr = this.listItems.toArray();\n [arr[presentIndex - 1], arr[presentIndex]] = [arr[presentIndex], arr[presentIndex - 1]];\n this.listItems.reset(arr);\n this.currentIndex = presentIndex;\n this.ariaText = \"selected \";\n } else {\n presentIndex = presentIndex <= 0 ? 0 : (presentIndex - 1);\n this.lastSelectedItem = this.getListItemByIndex(presentIndex);\n this.lastSelectedItem.nativeElement.focus();\n this.currentIndex = presentIndex + 1;\n this.ariaText = \"selected \";\n }\n } else if (action === 'focusNext') {\n if (this.isListElementMovable) {\n presentIndex = presentIndex < (listItems.length - 1) ? (presentIndex) : (listItems.length - 1);\n if (presentIndex === this.listItems.length - 1) {\n return;\n }\n\n this.lastSelectedItem = this.getListItemByIndex(presentIndex);\n const nextElt = this.getListItemByIndex(presentIndex + 1);\n nextElt.nativeElement.after(this.lastSelectedItem.nativeElement);\n this.lastSelectedItem.nativeElement.focus();\n this.statePersistence.removeWidgetState(this, 'selectedItem');\n const arr = this.listItems.toArray();\n [arr[presentIndex], arr[presentIndex + 1]] = [arr[presentIndex + 1], arr[presentIndex]];\n this.listItems.reset(arr);\n this.currentIndex = presentIndex + 2;\n this.ariaText = \"selected \";\n } else {\n presentIndex = presentIndex < (listItems.length - 1) ? (presentIndex + 1) : (listItems.length - 1);\n this.lastSelectedItem = this.getListItemByIndex(presentIndex);\n this.lastSelectedItem.nativeElement.focus();\n this.currentIndex = presentIndex + 1;\n this.ariaText = \"selected \";\n }\n } else if (action === 'select') {\n // if the enter click is pressed on the item which is not the last selected item, the find the item from which the event is originated.\n if (presentIndex === -1 || !$($event.target).closest(this.lastSelectedItem.nativeElement)) {\n const $li = $($event.target).closest('li.app-list-item');\n const $ul = $li.closest('ul.app-livelist-container');\n presentIndex = $ul.find('li.app-list-item').index($li);\n }\n this.onItemClick($event, this.getListItemByIndex(presentIndex));\n } else if (action === 'space') {\n if (!this.enablereorder) {\n return;\n }\n this.isListElementMovable = !this.isListElementMovable;\n this.onItemClick($event, this.getListItemByIndex(presentIndex));\n this.currentIndex = presentIndex + 1;\n if (this.isListElementMovable) {\n this.ariaText = `Item ${this.currentIndex} grabbed, current position `;\n this.$ulEle.data('oldIndex', presentIndex);\n } else {\n this.ariaText = `Item ${this.currentIndex} dropped, final position `;\n this.onUpdate($event, undefined, presentIndex);\n }\n }\n }\n\n onPropertyChange(key: string, nv: any, ov?: any) {\n if (key === 'dataset') {\n if (!nv && this.binddatasource && !this.datasource) {\n return;\n }\n this.onDataSetChange(nv);\n } else if (key === 'datasource') {\n if (this.dataset) {\n this.onDataSetChange(this.dataset);\n }\n } else if (key === 'navigation') {\n // Support for older projects where navigation type was advanced instead of classic\n if (nv === 'Advanced') {\n this.navigation = 'Classic';\n return;\n }\n switchClass(this.nativeElement, nv, ov);\n this.onNavigationTypeChange(nv);\n if (this.dataNavigator) {\n this.dataNavigator.navigationClass = this.paginationclass;\n }\n } else if (key === 'itemsperrow') {\n setListClass(this);\n } else if (key === 'tabindex') {\n return;\n } else if (key === 'pulltorefresh' && nv) {\n this.app.notify('pullToRefresh:enable');\n this.subscribeToPullToRefresh();\n } else if (key === 'paginationclass') {\n if (this.dataNavigator) {\n // Adding setTimeout because in pagination component updateNavSize method is overriding navigationclass\n setTimeout(() => this.dataNavigator.navigationClass = nv);\n }\n } else if (key === 'pagesize') {\n this.dataNavigator.options = {\n maxResults: nv\n };\n this.dataNavigator.widget.maxResults = nv;\n this.dataNavigator.maxResults = nv;\n } else if (key === 'enablereorder') {\n if (nv && this.$ulEle) {\n this.$ulEle.attr('aria-describedby', this.titleId);\n this.configureDnD();\n this.$ulEle.sortable('enable');\n } else if (this.$ulEle && !nv) {\n this.$ulEle.removeAttr('aria-describedby');\n this.$ulEle.sortable('disable');\n }\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n public onItemClick(evt: any, $listItem: ListItemDirective) {\n let selectCount: number;\n\n if (!$listItem.disableItem) {\n this.firstSelectedItem = this.firstSelectedItem || $listItem;\n // Setting selectCount value based number of items selected.\n selectCount = isArray(this.selecteditem) ? this.selecteditem.length : (isObject(this.selecteditem) ? 1 : 0);\n\n // Handling multiselect for mobile device\n if (this.multiselect && isMobile()) {\n if (this.checkSelectionLimit(selectCount) || $listItem.isActive) {\n this.toggleListItemSelection($listItem);\n } else {\n this.invokeEventCallback('selectionlimitexceed', {$event: evt});\n }\n } else if ((evt.ctrlKey || evt.metaKey) && this.multiselect) {\n if (this.checkSelectionLimit(selectCount) || $listItem.isActive) {\n this.firstSelectedItem = this.lastSelectedItem = $listItem;\n this.toggleListItemSelection($listItem);\n } else {\n this.invokeEventCallback('selectionlimitexceed', {$event: evt});\n }\n } else if (evt.shiftKey && this.multiselect) {\n let first = $listItem.context.index;\n let last = this.firstSelectedItem.context.index;\n\n // if first is greater than last, then swap values\n if (first > last) {\n last = [first, first = last][0];\n }\n if (this.checkSelectionLimit(last - first)) {\n this.clearSelectedItems();\n this.listItems.forEach(($liItem: ListItemDirective) => {\n const index = $liItem.context.index;\n if (index >= first && index <= last) {\n this.toggleListItemSelection($liItem);\n }\n });\n this.lastSelectedItem = $listItem;\n } else {\n this.invokeEventCallback('selectionlimitexceed', {$event: evt});\n }\n\n } else {\n if (!$listItem.isActive || selectCount > 1) {\n this.clearSelectedItems();\n this.toggleListItemSelection($listItem);\n this.firstSelectedItem = this.lastSelectedItem = $listItem;\n }\n }\n $appDigest();\n }\n }\n\n // Empty the list content on clear\n public clear() {\n this.updateFieldDefs([]);\n }\n\n /**\n * deselects item in the list.\n * @param val: index | model of the list item.\n */\n public deselectItem(val: any) {\n const listItem = this.getItemRefByIndexOrModel(val);\n if (listItem && listItem.isActive) {\n this.toggleListItemSelection(listItem);\n }\n }\n\n /**\n * selects item in the list.\n * @param val: index | model of the list item.\n */\n public selectItem(val, statePersistenceTriggered?) {\n const listItem = this.getItemRefByIndexOrModel(val);\n if (!listItem) {\n return;\n }\n if (!listItem.isActive) {\n this.toggleListItemSelection(listItem, statePersistenceTriggered);\n }\n // focus the element.\n listItem.nativeElement.focus();\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.handleHeaderClick = noop;\n setTimeout(() => {\n this.debouncedFetchNextDatasetOnScroll = this.paginationService.debouncedFetchNextDatasetOnScroll(this.dataNavigator, DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME, this);\n }, 0);\n this._items = [];\n this.fieldDefs = [];\n this.reorderProps = {\n minIndex: null,\n maxIndex: null\n };\n }\n\n ngAfterViewInit() {\n this.promiseResolverFn();\n this.propsInitPromise.then(() => {\n super.ngAfterViewInit();\n this.setUpCUDHandlers();\n this.selectedItemWidgets = this.multiselect ? [] : {};\n var ele = $(this.nativeElement).find('.app-livelist-container');\n\n if (this.enablereorder && !this.groupby) {\n if (ele) {\n ele.attr('aria-describedby', this.titleId);\n }\n this.configureDnD();\n }\n if (!this.enablereorder) {\n if (ele) {\n ele.removeAttr('aria-describedby');\n }\n }\n if (this.groupby && this.collapsible) {\n this.handleHeaderClick = handleHeaderClick;\n this.toggleAllHeaders = toggleAllHeaders.bind(undefined, this);\n }\n setListClass(this);\n });\n this.setupHandlers();\n const $ul = this.nativeElement.querySelector('ul.app-livelist-container');\n styler($ul as HTMLElement, this, APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);\n if (this.enablereorder) {\n if ($ul) {\n $ul.setAttribute('aria-describedby', this.titleId);\n }\n }\n if (!this.enablereorder) {\n if ($ul) {\n $ul.removeAttribute('aria-describedby');\n }\n }\n if (isMobileApp() && $ul.querySelector('.app-list-item-action-panel')) {\n this._listAnimator = new ListAnimator(this);\n }\n }\n\n ngOnDestroy() {\n if (this._listAnimator && this._listAnimator.$btnSubscription) {\n this._listAnimator.$btnSubscription.unsubscribe();\n }\n this._listenerDestroyers.forEach(d => d && d());\n super.ngOnDestroy();\n }\n\n ngOnDetach() {\n super.ngOnDetach();\n this._pageLoad = true;\n }\n\n protected handleEvent(node: HTMLElement, eventName: string, eventCallback: Function, locals: any) {\n // tap and doubleTap events are not getting propagated.So, using mouse events instead.\n const touchToMouse = {\n tap: 'click',\n doubletap: 'dblclick'\n };\n if (includes(['click', 'tap', 'dblclick', 'doubletap'], eventName)) {\n this.eventManager.addEventListener(\n this.nativeElement,\n touchToMouse[eventName] || eventName,\n (evt) => {\n const target = $(evt.target).closest('.app-list-item');\n if (target.length) {\n const listItemContext: ListItemDirective = target.data('listItemContext');\n if (!listItemContext.disableItem) {\n this.invokeEventCallback(eventName, {\n widget: listItemContext,\n $event: evt,\n item: listItemContext.item\n });\n }\n }\n }\n );\n }\n }\n\n private getConfiguredState() {\n const mode = this.statePersistence.computeMode(this.statehandler);\n return mode && mode.toLowerCase();\n }\n\n private handleStateParams(options) {\n if (this._pageLoad && this.getConfiguredState() !== 'none') {\n this._pageLoad = false;\n const widgetState = this.statePersistence.getWidgetState(this);\n if (get(widgetState, 'pagination')) {\n options.options = options.options || {};\n options.options.page = widgetState.pagination;\n }\n if (get(widgetState, 'selectedItem')) {\n this._selectedItemsExist = true;\n }\n }\n }\n\n private triggerWMEvent(eventName, item?) {\n $invokeWatchers(true);\n // If we have multiselect for the livelist(List with form template), in run mode deleting a record is getting failed. Becuase the selecteditem will be array of objects. So consider the last object.\n let row = this.multiselect ? last(this.selecteditem) : this.selecteditem;\n if (item) {\n row = item;\n }\n this.app.notify('wm-event', {eventName, widgetName: this.name, row: row});\n }\n\n private resetNavigation() {\n this.showNavigation = false;\n this.navControls = undefined;\n this.infScroll = false;\n this.onDemandLoad = false;\n }\n\n private enableBasicNavigation() {\n this.navControls = NAVIGATION_TYPE.BASIC;\n this.showNavigation = true;\n }\n\n private enableInlineNavigation() {\n this.navControls = NAVIGATION_TYPE.INLINE;\n }\n\n private enableClassicNavigation() {\n this.navControls = NAVIGATION_TYPE.CLASSIC;\n this.showNavigation = true;\n }\n\n private enablePagerNavigation() {\n this.navControls = NAVIGATION_TYPE.PAGER;\n this.showNavigation = true;\n }\n\n private setNavigationTypeNone() {\n this.navControls = NAVIGATION_TYPE.NONE;\n this.showNavigation = false;\n }\n\n private enableInfiniteScroll() {\n this.infScroll = true;\n }\n\n private enableOnDemandLoad() {\n this.onDemandLoad = true;\n this.showNavigation = true;\n }\n\n /**\n * Sets Navigation type for the list.\n * @param type\n */\n private onNavigationTypeChange(type) {\n this.resetNavigation();\n switch (type) {\n case NAVIGATION_TYPE.BASIC:\n this.enableBasicNavigation();\n break;\n case NAVIGATION_TYPE.INLINE:\n this.enableInlineNavigation();\n break;\n case NAVIGATION_TYPE.ADVANCED:\n case NAVIGATION_TYPE.CLASSIC:\n this.enableClassicNavigation();\n break;\n case NAVIGATION_TYPE.PAGER:\n this.enablePagerNavigation();\n break;\n case NAVIGATION_TYPE.NONE :\n this.setNavigationTypeNone();\n break;\n case NAVIGATION_TYPE.SCROLL:\n this.enableInfiniteScroll();\n break;\n case NAVIGATION_TYPE.ONDEMAND:\n this.enableOnDemandLoad();\n break;\n }\n }\n\n /**\n * Update fieldDefs property, fieldDefs is the model of the List Component.\n * fieldDefs is an Array type.\n * @param newVal\n */\n private updateFieldDefs(newVal: Array<any>) {\n if (this.infScroll || this.onDemandLoad) {\n [this.fieldDefs, this.currentPage] = this.paginationService.updateFieldsOnPagination(this, newVal);\n } else {\n this.fieldDefs = newVal;\n }\n\n if (this.orderby) {\n this.fieldDefs = getOrderedDataset(this.fieldDefs, this.orderby);\n }\n if (this.groupby) {\n this.groupedData = groupData(this, this.fieldDefs, this.groupby, this.match, this.orderby, this.dateformat, this.datePipe, undefined, this.appDefaults);\n }\n\n if (!this.fieldDefs.length) {\n this.noDataFound = true;\n this.selecteditem = undefined;\n }\n $appDigest();\n this.listItems.setDirty();\n }\n\n private onDataChange(newVal) {\n // Check for newVal is not empty\n if (!isEmpty(newVal)) {\n\n this.noDataFound = false;\n this.isDataChanged = true;\n\n if (this.datasource && this.datasource.execute(DataSource.Operation.IS_API_AWARE)) {\n // clone the the data in case of live and service variables to prevent the two-way binding for these variables.\n newVal = cloneDeep(newVal);\n }\n\n if (isObject(newVal) && !isArray(newVal)) {\n newVal = isEmpty(newVal) ? [] : [newVal];\n }\n\n if (isString(newVal)) {\n newVal = newVal.split(',');\n }\n\n // if the page number is greater than 1 on initial load then we render the first page.\n if (this.datasource && this.datasource.owner === 'App' && (this.infScroll || this.onDemandLoad) && !this.currentPage && this.datasource.execute(DataSource.Operation.GET_PAGING_OPTIONS).number > 0) {\n newVal = this.datasource.execute(DataSource.Operation.LIST_RECORDS, {\n 'page': 1\n });\n }\n\n if (isArray(newVal)) {\n if (newVal.length) {\n this.invokeEventCallback('beforedatarender', {$data: newVal});\n }\n this.updateFieldDefs(newVal);\n }\n } else {\n this.updateFieldDefs([]);\n }\n }\n\n // Updates the dataSource when pagination is enabled for the Component.\n private setupDataSource() {\n const dataNavigator = this.dataNavigator;\n\n dataNavigator.options = {\n maxResults: this.pagesize || 20\n };\n\n this.dataNavigatorWatched = true;\n\n if (this.navigatorResultWatch) {\n this.navigatorResultWatch.unsubscribe();\n }\n /*Register a watch on the \"result\" property of the \"dataNavigator\" so that the paginated data is displayed in the live-list.*/\n this.navigatorResultWatch = dataNavigator.resultEmitter.subscribe((newVal: any) => {\n this.onDataChange(newVal);\n }, true);\n /*De-register the watch if it is exists */\n if (this.navigatorMaxResultWatch) {\n this.navigatorMaxResultWatch.unsubscribe();\n }\n /*Register a watch on the \"maxResults\" property of the \"dataNavigator\" so that the \"pageSize\" is displayed in the live-list.*/\n this.navigatorMaxResultWatch = dataNavigator.maxResultsEmitter.subscribe((val) => {\n this.pagesize = val;\n });\n\n dataNavigator.maxResults = this.pagesize || 20;\n this.removePropertyBinding('dataset');\n // when list having \"datasetboundexpr\" attr indicates that list is bound to item context\n // when dataset is bound to \"item.FIELD\" then item context is passed as the datasource.\n const datasetBoundExpr = this.getAttr('datasetboundexpr');\n this.dataNavigator.setBindDataSet(\n this.binddataset,\n this.viewParent,\n datasetBoundExpr ? this.context : this.datasource,\n this.dataset,\n this.binddatasource,\n datasetBoundExpr,\n this.statehandler\n );\n }\n\n private onDataSetChange(newVal) {\n if (get(this.datasource, 'category') === 'wm.Variable' && this.getConfiguredState() !== 'none' && this._pageLoad) {\n const widgetState = this.statePersistence.getWidgetState(this);\n this._pageLoad = false;\n if (get(widgetState, 'pagination')) {\n this.dataNavigator.pageChanged({page: widgetState.pagination}, true);\n }\n if (get(widgetState, 'selectedItem')) {\n this._selectedItemsExist = true;\n }\n }\n if (!this.dataNavigatorWatched) {\n if (this.navigation && this.navigation !== NAVIGATION_TYPE.NONE) {\n this.setupDataSource();\n } else {\n this.onDataChange(newVal);\n }\n } else if (this.navigation && this.navigation !== NAVIGATION_TYPE.NONE) {\n // If navigation is already setup and datasource is changed, update the datasource on navigation\n this.dataNavigator.setDataSource(this.datasource);\n }\n }\n\n // All the ListItem's Active state is set to false.\n private deselectListItems() {\n this.listItems.forEach(item => item.isActive = false);\n }\n\n // Deselect all the ListItems and clear the selecteditem(InOutBound Property model)\n private clearSelectedItems() {\n this.deselectListItems();\n this._items.length = 0;\n $appDigest();\n }\n\n /**\n * return the ListItemDirective instance by checking the equality of the model.\n * @param listModel: model to be searched for\n * @returns ListItem if the model is matched else return null.\n */\n private getListItemByModel(listModel): ListItemDirective {\n return this.listItems.find((listItem) => {\n let itemObj = listItem.item;\n if (this.groupby && !has(listModel, '_groupIndex')) {\n // If groupby is enabled, item contains _groupIndex property which should be excluded while comparing model.\n itemObj = clone(itemObj);\n delete itemObj._groupIndex;\n }\n if (isEqual(itemObj, listModel)) {\n return true;\n }\n }) || null;\n }\n\n private updateSelectedItemsWidgets(statePersistenceTriggered?) {\n let obj = {}, widgetState;\n const pageNum = get(this.dataNavigator, 'dn.currentPage') || 1;\n if (this.getConfiguredState() !== 'none') {\n // remove previously configured selected items for current page and construct new ones later below.\n widgetState = this.statePersistence.getWidgetState(this) || {};\n if (get(widgetState, 'selectedItem')) {\n // when multiselect is on and an item is selected without pressing CTRL, previously selected items in state should be empty.\n if (this.multiselect && this.selecteditem.length === 1) {\n widgetState.selectedItem = [];\n } else {\n remove(widgetState.selectedItem, function (selectedItem: any) {\n return selectedItem.page === pageNum;\n });\n }\n }\n }\n if (this.multiselect) {\n (this.selectedItemWidgets as Array<WidgetRef>).length = 0;\n }\n this.listItems.forEach((item: ListItemDirective, index) => {\n if (item.isActive) {\n if (this.multiselect) {\n (this.selectedItemWidgets as Array<WidgetRef>).push(item.currentItemWidgets);\n } else {\n this.selectedItemWidgets = item.currentItemWidgets;\n }\n obj = {page: pageNum, index: index};\n if (get(widgetState, 'selectedItem') && this.multiselect) {\n if (!some(widgetState.selectedItem, obj)) {\n widgetState.selectedItem.push(obj);\n }\n } else {\n widgetState.selectedItem = [obj];\n }\n }\n });\n if (this.getConfiguredState() !== 'none' && !statePersistenceTriggered) {\n if (unsupportedStatePersistenceTypes.indexOf(this.navigation) < 0) {\n this.statePersistence.removeWidgetState(this, 'selectedItem');\n this.statePersistence.setWidgetState(this, {'selectedItem': widgetState.selectedItem});\n } else {\n console.warn('Retain State handling on Widget ' + this.name + ' is not supported for current pagination type.');\n }\n }\n }\n\n /**\n * Selects the listItem and updates selecteditem property.\n * If the listItem is already a selected item then deselects the item.\n * @param {ListItemDirective} $listItem: Item to be selected of deselected.\n */\n private toggleListItemSelection($listItem: ListItemDirective, statePersistenceTriggered?) {\n // item is not allowed to get selected if it is disabled.\n if ($listItem && !$listItem.disableItem) {\n let item = $listItem.item;\n if (this.groupby && has(item, '_groupIndex')) {\n // If groupby is enabled, item contains _groupIndex property which should be excluded from selecteditem.\n item = clone(item);\n delete item._groupIndex;\n }\n if ($listItem.isActive) {\n this._items = pullAllWith(this._items, [item], isEqual);\n $listItem.isActive = false;\n } else {\n // if multiselect is false, clear the selectItem list before adding an item to the selectItem list.\n if (!this.multiselect) {\n this.clearSelectedItems();\n }\n this._items.push(item);\n this.invokeEventCallback('select', {widget: $listItem, $data: item});\n $listItem.isActive = true;\n }\n this.updateSelectedItemsWidgets(statePersistenceTriggered);\n }\n }\n\n /**\n * Method is Invoked when the model for the List Widget is changed.\n * @param {QueryList<ListItemDirective>} listItems\n */\n private onListRender(listItems: QueryList<ListItemDirective>) {\n // Added render callback event. This method(onListRender) is calling multiple times so checking isDatachanged flag because this falg is changed whenever new data is rendered.\n if (this.isDataChanged) {\n // Whenever dataset is changed, trigger watchers to evaluate listitem bind expressions.\n $invokeWatchers(true);\n this.invokeEventCallback('render', {$data: this.fieldDefs});\n }\n if (this.isDataChanged && this.getConfiguredState() !== 'none' && listItems.length && this._selectedItemsExist) {\n const widgetState = this.statePersistence.getWidgetState(this);\n if (get(widgetState, 'selectedItem')) {\n this._selectedItemsExist = false;\n const selectedItemsLength = isArray(this.selecteditem) ? this.selecteditem.length : toNumber(!isEmpty(this.selecteditem));\n const currentPage = get(this.dataNavigator, 'dn.currentPage') || 1;\n widgetState.pagination = widgetState.pagination || 1;\n // to prevent item selection from being triggered more than once\n if (selectedItemsLength !== widgetState.selectedItem.length && widgetState.pagination === currentPage) {\n widgetState.selectedItem.forEach((item) => {\n if (item.page === currentPage) {\n this.selectItem(item.index, true);\n }\n });\n }\n }\n }\n const selectedItems = isArray(this.selecteditem) ? this.selecteditem : [this.selecteditem];\n\n this.firstSelectedItem = this.lastSelectedItem = null;\n\n // don't select first item if multi-select is enabled and at least item is already selected in the list.\n // don't select first item if state information has selected items\n if (listItems.length && this.selectfirstitem && !(this._items.length && this.multiselect) && this._selectedItemsExist !== false) {\n const $firstItem: ListItemDirective = listItems.first;\n\n if (\n !$firstItem.disableItem &&\n this.isDataChanged &&\n // \"infinite scroll\" or \"load on demand\" is enabled and at least one item is selected then dont alter the selected list items.\n !(\n (this.infScroll || this.onDemandLoad) &&\n this._items.length\n )\n ) {\n this.clearSelectedItems();\n this.firstSelectedItem = this.lastSelectedItem = $firstItem;\n // selecting the first record\n this.selectItem(0);\n }\n } else {\n this.deselectListItems();\n selectedItems.forEach(selecteditem => {\n const listItem: ListItemDirective = this.getListItemByModel(selecteditem);\n if (listItem) {\n listItem.isActive = true;\n this.lastSelectedItem = listItem;\n // focus the active element\n listItem.nativeElement.focus();\n }\n });\n }\n\n if (this.fieldDefs.length && this.infScroll) {\n const smoothScrollEl = this.$element.closest('[wmsmoothscroll]');\n // if smoothscroll is set to false, then native scroll has to be applied\n // otherwise smoothscroll events will be binded.\n if (isMobileApp() && smoothScrollEl.length && smoothScrollEl.attr('wmsmoothscroll') === 'true') {\n this.paginationService.bindIScrollEvt(this, DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME);\n } else {\n // In case of mobile app when modal exists, and list items height is greater than the modal content provide ccontainer a scrollable height\n const modalBody = this.$element.closest('.modal-body');\n const listHt = this.$element.find('ul').height();\n const modalHt = window.innerHeight - 140;\n if (isMobile() && modalBody.length && listHt > modalHt) {\n this.$element.css('height', modalHt + 'px');\n }\n this.paginationService.bindScrollEvt(this, '> ul', DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME);\n }\n }\n\n this.isDataChanged = false;\n }\n\n private setupHandlers() {\n this.listItems.changes.subscribe(listItems => {\n this.onListRender(listItems);\n this.cdRef.detectChanges();\n });\n // handle click event in capturing phase.\n this.nativeElement.querySelector('ul.app-livelist-container').addEventListener('click', ($event) => {\n let target = $($event.target).closest('.app-list-item');\n // Recursively find the current list item\n while (target.get(0) && (target.closest('ul.app-livelist-container').get(0) !== $event.currentTarget)) {\n target = target.parent().closest('.app-list-item');\n }\n this.triggerListItemSelection(target, $event);\n }, true);\n }\n\n // Triggers on drag start while reordering.\n private onReorderStart(evt, ui) {\n ui.placeholder.height(ui.item.height());\n this.$ulEle.data('oldIndex', ui.item.index());\n }\n\n // Triggers during sorting\n private onSort(evt, ui) {\n // In case of infinite scroll, when the element doesn't have scroll enabled\n // on dragging the element to last item's position manually trigger loading of next items\n if (this.infScroll) {\n const lastItemOffset = this.$ulEle.find(`[listitemindex=${this.fieldDefs.length - 1}]`).offset();\n if (lastItemOffset && lastItemOffset.top < ui.offset.top) {\n this.paginationService.bindScrollEvt(this, '> ul', DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME);\n this.debouncedFetchNextDatasetOnScroll();\n }\n }\n }\n\n // Triggers after the sorting.\n private onUpdate(evt, ui, presentIndex?) {\n const data = this.fieldDefs;\n // If ui is not present then it is called from drag and drop using keyboard\n const newIndex = ui === undefined ? presentIndex : ui.item.index();\n const oldIndex = this.$ulEle.data('oldIndex');\n\n const minIndex = min([newIndex, oldIndex]);\n const maxIndex = max([newIndex, oldIndex]);\n\n const draggedItem = pullAt(data, oldIndex)[0];\n // Modify the data list only if we find a draggedItem\n if (draggedItem) {\n if (this.getConfiguredState() !== 'none') {\n this.statePersistence.removeWidgetState(this, 'selectedItem');\n }\n\n this.reorderProps.minIndex = min([minIndex, this.reorderProps.minIndex]);\n this.reorderProps.maxIndex = max([maxIndex, this.reorderProps.maxIndex]);\n\n data.splice(newIndex, 0, draggedItem);\n\n this.cdRef.markForCheck();\n this.cdRef.detectChanges();\n const $changedItem = {\n oldIndex: oldIndex,\n newIndex: newIndex,\n item: data[newIndex]\n };\n this.invokeEventCallback('reorder', {$event: evt, $data: data, $changedItem});\n this.$ulEle.removeData('oldIndex');\n }\n }\n\n // configures reordering the list items.\n private configureDnD() {\n let appendTo;\n const modalEl = $(document).find('.modal');\n if (this.getAttr('height')) { // when height is applied to the list, append should be the ul's parent as scroll is applied to the parent\n appendTo = 'parent';\n } else if (modalEl.length) { // In case of dialog, appendTo should be the modal ele\n appendTo = modalEl[modalEl.length - 1];\n } else { // As default append to should be body\n appendTo = 'body';\n }\n\n const options = isMobileApp() ? {} : {\n appendTo: appendTo,\n };\n\n const $el = $(this.nativeElement);\n this.$ulEle = $el.find('.app-livelist-container');\n\n configureDnD(this.$ulEle, options, this.onReorderStart.bind(this), this.onUpdate.bind(this), this.onSort.bind(this));\n\n this.$ulEle.droppable({'accept': '.app-list-item'});\n\n if (isMobileApp()) {\n this.$ulEle.sortable('disable');\n this.$ulEle.on('touchstart', function (event) {\n let self = this;\n if (!self.touching) {\n if (self.touched) {\n clearTimeout(self.touched);\n }\n setTimeout(() => {\n //Prevent context menu on mobile (IOS/ANDROID)\n if (event.cancelable) {\n event.preventDefault();\n }\n }, 50);\n self.touched = setTimeout(() => {\n $(event.currentTarget).addClass('no-selection');\n //Enable draggable\n $(event.currentTarget).sortable('enable');\n\n //Set internal flag\n self.touching = true;\n\n //trigger touchstart again to enable draggable through touch punch\n $(self).trigger(event);\n\n //Choose preferred duration for taphold\n }, 350);\n }\n }).on('touchend', function (event) {\n this.touching = false;\n $(event.currentTarget).removeClass('no-selection');\n\n //Disable draggable to enable default behaviour\n $(event.currentTarget).sortable('disable');\n\n clearTimeout(this.touched);\n }).on('touchmove', function () {\n clearTimeout(this.touched);\n });\n }\n\n }\n\n // returns true if the selection limit is reached.\n private checkSelectionLimit(count: number) {\n return (!this.selectionlimit || count < this.selectionlimit);\n }\n\n // returns listitem reference by index value.\n private getListItemByIndex(index: number): ListItemDirective {\n return this.listItems.toArray()[index];\n }\n\n /**\n * return index of an (listItemDirective) in the listItem\n * @param {ListItemDirective} item\n * @returns {number}\n */\n private getListItemIndex(item: ListItemDirective) {\n return this.listItems.toArray().indexOf(item);\n }\n\n /**\n * Returns ListItem Reference based on the input provided.\n * @param val: index | model of the list item.\n * @returns {ListItemDirective}\n */\n private getItemRefByIndexOrModel(val: any): ListItemDirective {\n let listItem: ListItemDirective;\n if (isNumber(val)) {\n listItem = this.getListItemByIndex(val);\n } else {\n listItem = this.getListItemByModel(val);\n }\n return listItem;\n }\n\n private beforePaginationChange($event, $index) {\n this.invokeEventCallback('paginationchange', {$event, $index});\n }\n\n trackByFn($index: number) {\n return $index; // Return a unique identifier for each item\n }\n\n // Invoke the datasource variable by default when pulltorefresh event is not specified.\n private subscribeToPullToRefresh() {\n this._listenerDestroyers.push(this.app.subscribe('pulltorefresh', () => {\n if (this.datasource && this.datasource.listRecords) {\n this.datasource.listRecords();\n }\n }));\n }\n\n private setUpCUDHandlers() {\n const $addItem = document.getElementsByClassName(\"add-list-item\")[0];\n if ($addItem) {\n // Triggered on click of add action\n $addItem.addEventListener('click', evt => {\n this.create();\n });\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { PaginationModule } from '@wm/components/data/pagination';\n\nimport { ListComponent } from './list.component';\nimport { ListItemDirective } from './list-item.directive';\n\nconst components = [\n ListComponent,\n ListItemDirective\n];\n\n@NgModule({\n imports: [\n CommonModule,\n PaginationModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class ListModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i2.ListComponent"],"mappings":";;;;;;;;;;;;;;;AAIO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,SAAS,EACT,IAAI,GAAG,CACH;QACI,CAAC,eAAe,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,GAAG,YAAY,EAAC,CAAC;QAClD,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,aAAa,EAAE,YAAY,CAAC;QAC7B,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,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A,IAAA,SAAA,KAAA,EAAA,CAAA,kBAAA,CAAA,UAAU,mBAbnB,aAAa;AACb,QAAA,iBAAiB,aAKb,YAAY;QACZ,gBAAgB;AAChB,QAAA,kBAAkB,aARtB,aAAa;QACb,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA,CAAA;AADjB,EAAA,CAAA,mBAAA,CAAA,aAAa,oHACb,iBAAiB,CAAA,EAAA,EAAA,CAAA;;ACXrB;;AAEG;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/data/list/src/list.props.ts","../../../../../projects/components/widgets/data/list/src/list-item.directive.ts","../../../../../projects/components/widgets/data/list/src/list.animator.ts","../../../../../projects/components/widgets/data/list/src/list.component.html","../../../../../projects/components/widgets/data/list/src/list.component.ts","../../../../../projects/components/widgets/data/list/src/list.module.ts","../../../../../projects/components/widgets/data/list/src/index.ts"],"sourcesContent":["import { isMobileApp } from '@wm/core';\n\nimport { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-list',\n new Map(\n [\n ['boundarylinks', {value: false, ...PROP_BOOLEAN}],\n ['class', PROP_STRING],\n ['collapsible', PROP_BOOLEAN],\n ['dateformat', PROP_STRING],\n ['dataset', PROP_ANY],\n ['datasource', PROP_ANY],\n ['direction', {value: 'vertical', ...PROP_STRING}],\n ['directionlinks', {value: true, ...PROP_BOOLEAN}],\n ['disableitem', PROP_BOOLEAN],\n ['enablereorder', PROP_BOOLEAN],\n ['forceellipses', {value: true, ...PROP_BOOLEAN}],\n ['groupby', PROP_STRING],\n ['iconclass', PROP_STRING],\n ['itemclass', {value: '', ...PROP_STRING}],\n ['itemsperrow', PROP_STRING],\n ['listclass', {value: 'list-group', ...PROP_STRING}],\n ['multiselect', PROP_BOOLEAN],\n ['loadingdatamsg', {value : 'Loading...', ...PROP_STRING}],\n ['loadingicon', {value : 'fa fa-circle-o-notch', ...PROP_STRING}],\n ['match', PROP_STRING],\n ['maxsize', {value: 5, ...PROP_NUMBER}],\n ['name', PROP_STRING],\n ['navigation', PROP_STRING],\n ['navigationalign', {value: 'left', ...PROP_STRING}],\n ['nodatamessage', {value : 'No data found', ...PROP_STRING}],\n ['ondemandmessage', {value : 'Load More', ...PROP_STRING}],\n ['orderby', PROP_STRING],\n ['paginationclass', PROP_STRING],\n ['pagesize', PROP_NUMBER],\n ['pulltorefresh', {value: isMobileApp(), ...PROP_BOOLEAN}],\n ['selectfirstitem', PROP_BOOLEAN],\n ['selectionlimit', PROP_NUMBER],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['showcount', PROP_BOOLEAN],\n ['showrecordcount', PROP_BOOLEAN],\n ['statehandler', {value: 'none', ...PROP_STRING}],\n ['subheading', PROP_STRING],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['title', PROP_STRING]\n ]\n )\n );\n};\n","import {\n AfterViewInit,\n Directive,\n ElementRef,\n HostBinding,\n HostListener,\n Injector,\n Input,\n OnInit,\n Optional,\n ViewContainerRef\n} from '@angular/core';\n\nimport {Observable, Subject} from 'rxjs';\n\nimport {$watch, App} from '@wm/core';\n\nimport {ListComponent} from './list.component';\nimport {widgetIdGenerator} from \"@wm/components/base\";\nimport {BaseFormComponent} from \"@wm/components/input\";\n\ndeclare const $;\n\n@Directive({\n selector: '[wmListItem]',\n exportAs: 'listItemRef'\n})\nexport class ListItemDirective implements OnInit, AfterViewInit {\n\n public item;\n public context;\n public destroy: Subject<any> = new Subject();\n public destroy$: Observable<any> = this.destroy.asObservable();\n public nativeElement: HTMLElement;\n public readonly listComponent: ListComponent;\n\n private itemClass = '';\n private _currentItemWidgets = {};\n private viewContainerRef: ViewContainerRef;\n /**\n * To avoid re-rendering of widget, passing unique id as contextKey to createCustomInjector\n */\n protected trackId = widgetIdGenerator.nextUid();\n\n @HostBinding('class.active') isActive = false;\n @HostBinding('class.disable-item') disableItem = false;\n\n @HostListener('focus')\n onFocus() {\n // maintains which element is focused/selected most recently.\n this.listComponent.lastSelectedItem = this;\n }\n\n get $index() {\n return this.context.index;\n }\n\n get $even() {\n return this.context.even;\n }\n\n get $odd() {\n return this.context.odd;\n }\n\n get $first() {\n return this.context.first;\n }\n\n get $last() {\n return this.context.last;\n }\n\n get currentItemWidgets () {\n const componentElements = Array.from(this.nativeElement.querySelectorAll('[widget-id]'));\n return Object.assign(this._currentItemWidgets, componentElements.reduce((result, comp: any) => {\n result[comp.widget.name] = comp.widget;\n return result;\n }, {}));\n }\n\n @Input() set wmListItem(val) {\n this.item = val;\n }\n\n constructor(private inj: Injector, elRef: ElementRef, private app: App, @Optional() public _viewParent: ListComponent) {\n this.viewContainerRef = inj.get(ViewContainerRef);\n this.nativeElement = elRef.nativeElement;\n this.listComponent = _viewParent;\n // this.context = (<NgForOfContext<ListItemDirective>>(<any>inj).view.context);\n this.context = (this.inj as any)._lView[8];\n //this.context = (this.viewContainerRef as any)._hostLView.find(t => t && !!t.$implicit);\n this.itemClassWatcher(this.listComponent);\n this.disableItemWatcher(this.listComponent);\n $(this.nativeElement).data('listItemContext', this);\n }\n\n private registerWatch(expression: string, callback: Function) {\n // Removing ngFor context as the same properties are availble on listitem scope.\n // passing viewparent context for accessing varibales and widgets.\n //[CSP]: expression will be generated in the component as e.g. 'item.className'\n this.destroy$.subscribe($watch(expression, (this.listComponent as any).viewParent, this, callback));\n }\n\n private itemClassWatcher(listComponent: ListComponent) {\n if (listComponent.binditemclass) {\n this.registerWatch(listComponent.binditemclass, nv => this.itemClass = nv || '');\n } else {\n this.itemClass = listComponent.itemclass;\n }\n }\n\n private disableItemWatcher($list: ListComponent) {\n if ($list.binddisableitem) {\n this.registerWatch($list.binddisableitem, nv => this.disableItem = nv || false);\n } else {\n this.disableItem = $list.disableitem || false;\n }\n }\n\n private setUpCUDHandlers() {\n const $editItem = this.nativeElement.querySelector('.edit-list-item');\n const $deleteItem = this.nativeElement.querySelector('.delete-list-item');\n\n if ($editItem) {\n // Triggered on click of edit action\n $editItem.addEventListener('click', evt => {\n this.listComponent.update();\n });\n }\n\n if ($deleteItem) {\n // Triggered on click of delete action\n $deleteItem.addEventListener('click', evt => {\n this.listComponent.delete();\n });\n }\n }\n ngOnInit() {\n if (this.listComponent.mouseEnterCB) {\n this.nativeElement.addEventListener('mouseenter', ($event) => {\n this.listComponent.invokeEventCallback('mouseenter', {widget: this, $event});\n });\n }\n if (this.listComponent.mouseLeaveCB) {\n this.nativeElement.addEventListener('mouseleave', ($event) => {\n this.listComponent.invokeEventCallback('mouseleave', {widget: this, $event});\n });\n }\n // adding item attribute on every list item\n $(this.nativeElement).attr('listitemindex', this.$index);\n }\n\n ngAfterViewInit() {\n this.setUpCUDHandlers();\n const componentElements = Array.from(this.nativeElement.querySelectorAll('[widget-id]'));\n componentElements.forEach((component: any) => {\n if(component.widget instanceof BaseFormComponent) {\n if(!component.widget.$attrs.get('datavaluesource.bind')) {\n component.widget.datavaluesource = this.listComponent['datasource'];\n }\n }\n });\n }\n}\n","import { QueryList } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { SwipeAnimation } from '@swipey';\nimport { ButtonComponent } from '@wm/components/input';\n\nimport { ListComponent } from './list.component';\nimport {map, reduce} from \"lodash-es\";\n\ndeclare const $;\n\nexport class ListAnimator extends SwipeAnimation {\n private $el: JQuery<HTMLElement>;\n private li: JQuery<HTMLElement>;\n private limit: number;\n private transitionProportions: any;\n private rightChildrenCount: number;\n private leftChildrenCount: number;\n private position: string;\n private actionPanel: JQuery<HTMLElement>;\n private actionItems: QueryList<ButtonComponent>;\n public $btnSubscription: Subscription;\n\n constructor(private list: ListComponent) {\n super();\n this.$el = $(this.list.getNativeElement()).find('ul.app-livelist-container').first();\n\n this.leftChildrenCount = this.$el.find('>.app-list-item-left-action-panel > button:visible').length;\n this.rightChildrenCount = this.$el.find('>.app-list-item-right-action-panel > button:visible').length;\n\n // when there are no children in both the templates then do not apply swipeAnimation;\n if (!this.leftChildrenCount && !this.rightChildrenCount) {\n return;\n }\n\n // initialise swipe animation on the list component.\n this.init(this.$el);\n\n // retrieves all the button components which are placed outside the listTemplate.\n this.$btnSubscription = this.list.btnComponents.changes.subscribe(items => this.actionItems = items);\n }\n\n // This method sets the css for left or right action panels based on the template. Appends the actionTemplate before li.\n private createActionPanel(li: JQuery<HTMLElement>, actionPanelTemplate: JQuery<HTMLElement>): JQuery<HTMLElement> {\n actionPanelTemplate.css({\n width: li.outerWidth() + 'px',\n height: li.outerHeight() + 'px',\n marginBottom: -1 * li.outerHeight() + 'px',\n float: 'left',\n padding: 0\n });\n\n return actionPanelTemplate.insertBefore(li);\n }\n\n // Returns the total width occupied by all the children inside the element\n private computeTotalChildrenWidth($ele: JQuery<HTMLElement>): number {\n return reduce($ele.children(), (totalWidth, el) => {\n return totalWidth + $(el).outerWidth();\n }, 0);\n }\n\n // Returns amount of transition to be applied on element when swiped left or right\n private computeTransitionProportions($ele: JQuery<HTMLElement>): number {\n const totalWidth = this.computeTotalChildrenWidth($ele);\n const reverse = this.position === 'right';\n let d = 0;\n // @ts-ignore\n return map($ele.children(), e => {\n const f = (totalWidth - d) / totalWidth;\n d += $(e).outerWidth();\n return reverse ? f : (d / totalWidth);\n });\n }\n\n // Resets the transform applied on the element.\n private resetElement(el: JQuery<HTMLElement>): void {\n if (el) {\n el.css({\n transform: 'none',\n transition: 'none'\n });\n }\n }\n\n private resetState(): void {\n this.resetElement(this.li);\n this.resetElement(this.actionPanel);\n if (this.actionPanel) {\n this.actionPanel = null;\n }\n }\n\n // Returns the target button (child element) inside the left and right actionPanels.\n private getChildActionElement(actionTemplate): JQuery<HTMLElement> {\n if (actionTemplate.children().length) {\n if (this.position === 'left') {\n return actionTemplate.children().first();\n }\n return actionTemplate.children().last();\n }\n }\n\n // create the actionPanels and set the background-color for remaining panel as that of first child element\n // calculates the children's width and its transition proportionates.\n private initActionPanel(actionTemplate: JQuery<HTMLElement>): void {\n this.actionPanel = this.createActionPanel(this.li, actionTemplate);\n this.actionPanel.css({\n backgroundColor: this.getChildActionElement(this.actionPanel).css('background-color')\n });\n this.limit = this.computeTotalChildrenWidth(this.actionPanel);\n this.transitionProportions = this.computeTransitionProportions(this.actionPanel);\n }\n\n public bounds(e?: any, $d?: number): any {\n const target = $(e.target).closest('li');\n // default bounds when action template markup is not available.\n let bounds: {} = {\n strictUpper: true,\n strictLower: true,\n lower: 0,\n center: 0,\n upper: 0\n };\n // apply swipe animation only on list items having \"app-list-item\" class.\n if (!target.hasClass('app-list-item')) {\n return bounds;\n }\n if (!this.li || this.li[0] !== target[0]) {\n let selector = $d > 0 ? '.app-list-item-left-action-panel' : '.app-list-item-right-action-panel';\n let actionTemplate = this.$el.find('>' + selector);\n\n // when groupby is set select the action panel from the list group items.\n if (!actionTemplate.length && this.list.groupby) {\n selector = 'li > ul.list-group >' + selector;\n actionTemplate = this.$el.find('>' + selector);\n }\n\n // check for children visiblity. If children are visible then initiate the action panel.\n if (!actionTemplate.length || !actionTemplate.find('button:visible').length) {\n return bounds;\n }\n\n this.resetState();\n this.li = target;\n\n this.position = actionTemplate.attr('position');\n this.initActionPanel(actionTemplate);\n\n if ($d > 0) {\n // bounds while swiping from right to left to open left action panel. It can be moved upto limit value (Upper bound).\n bounds = {\n strictUpper: false,\n lower: 0,\n center: 0,\n upper: this.limit\n };\n } else {\n // bounds while swiping from left to right to open right action panel. It can be moved in reverse direction with -limit value (lower bound).\n bounds = {\n strictLower: false,\n lower: -this.limit,\n center: 0,\n upper: 0\n };\n }\n } else if (this.position === 'left') {\n // when left action panel is visible (i.e. center at limit value) then this can be moved by distance (limit) in reverse direction to close the view.\n bounds = {\n strictUpper: false,\n lower: -this.limit,\n center: this.limit\n };\n } else if (this.position === 'right') {\n // when right action panel is visible (i.e. center at -limit value) then this can be moved by distance (limit) to close the view.\n bounds = {\n center: -this.limit,\n upper: this.limit,\n strictLower: false\n };\n }\n return bounds;\n }\n\n public context(): any {\n return {\n computeActionTransition: (index: number, $d: number): number => {\n const sign = $d > 0 ? 1 : -1;\n\n if (sign * $d > this.limit) {\n // once the distance swiped is beyond the limit, then calculate the proportionate distance moved after the limit value.\n return ($d - sign * this.limit) + (this.transitionProportions[index] * sign * this.limit);\n }\n return this.transitionProportions[index] * $d;\n }\n };\n }\n\n public animation(): any {\n return [{\n target: () => this.li,\n css: {\n transform: 'translate3d(${{$D + $d}}px, 0, 0)'\n }\n }, { // styles to be applied on the child elements of action panel\n target: () => (this.actionPanel && this.actionPanel.children()),\n css: {\n transform: 'translate3d(${{computeActionTransition($i, $D + $d)}}px, 0, 0)'\n }\n }];\n }\n\n // Triggers full swipe event on the target element.\n public invokeFullSwipeEvt($event: Event): void {\n let target, actions, index;\n // Check if button are visible or not, invoke the tap event of the last button which is visible.\n if (this.position === 'left') {\n actions = this.actionItems.filter(btn => {\n return btn.getAttr('swipe-position') === 'left' && btn.$element.is(':visible');\n });\n index = 0;\n } else {\n actions = this.actionItems.filter(btn => {\n return btn.getAttr('swipe-position') === 'right' && btn.$element.is(':visible');\n });\n index = actions.length - 1;\n }\n target = actions[index];\n if (target && target.hasEventCallback('tap')) {\n target.invokeEventCallback('tap', {$event});\n }\n this.resetState();\n this.li = null;\n }\n\n // Called when swipeEnd is triggered. d contains the total distance covered by the element until touchEnd.\n public onAnimation($event: Event, d: number): void {\n // set the selecteditem on the list component on swipe.\n this.list.triggerListItemSelection(this.li, $event);\n if (this.actionPanel && this.actionPanel.attr('enablefullswipe') === 'true') {\n const sign = d > 0 ? 1 : -1;\n const $el = this.getChildActionElement(this.actionPanel);\n if ($el) {\n const index = this.position === 'right' ? this.rightChildrenCount - 1 : 0;\n // proportionate amount of distance covered by the target element.\n const distPercentage = this.transitionProportions[index] * sign * d * 100 / (this.li.outerWidth() - this.limit + $el.width());\n\n // If distance travelled by the target button element is more than 50% of the list item width then invoke the fullswipe.\n if (distPercentage > 50) {\n // invoke fullswipe event\n this.invokeFullSwipeEvt($event);\n }\n }\n }\n }\n\n public onLower(): void {\n if (this.position === 'left') {\n this.resetState();\n this.li = null;\n }\n }\n\n public onUpper(): void {\n if (this.position === 'right') {\n this.resetState();\n this.li = null;\n }\n }\n\n public threshold(): number {\n return 10;\n }\n}\n","<div class=\"panel-heading\" *ngIf=\"title || subheading || iconclass\">\n <h3 class=\"panel-title\">\n <div class=\"pull-left\">\n <i class=\"app-icon panel-icon {{iconclass}}\" aria-hidden=\"true\" [hidden]=\"!iconclass\"></i>\n </div>\n <div class=\"pull-left\">\n <div class=\"heading\" [innerHTML]=\"title\"></div>\n <div class=\"description\" [innerHTML]=\"subheading\"></div>\n </div>\n </h3>\n</div>\n\n<div class=\"app-datanavigator\" [attr.aria-disabled]=\"dataNavigator.isDisablePrevious\" aria-label=\"Page navigation\" *ngIf=\"navigation === 'Inline' && !noDataFound\">\n <ul class=\"pager\">\n <li class=\"previous\" [ngClass]=\"{'disabled': (dataNavigator ? dataNavigator.isDisablePrevious : true)}\">\n <a href=\"javascript:void(0);\" (click)=\"dataNavigator.navigatePage('prev', $event)\"\n [attr.aria-disabled]=\"dataNavigator.isDisablePrevious\">\n <i class=\"wi wi-chevron-left\" aria-hidden=\"true\"></i>\n <span class=\"sr-only\">Go to Previous page {{dataNavigator.isDisablePrevious ? ', Disabled' : ''}}</span>\n </a>\n </li>\n </ul>\n</div>\n<div *ngIf=\"navigation === 'Inline' && !noDataFound\" aria-live=\"polite\" aria-atomic=\"true\" class=\"sr-only\"> {{'Page ' + dataNavigator.dn.currentPage + ' of ' + dataNavigator.pageCount }}</div>\n\n<div>\n <div id={{titleId}} class=\"sr-only\" *ngIf=\"enablereorder\">\n Press space bar to toggle drag drop mode, use arrow keys to move selected elements.\n </div>\n\n <div aria-live=\"assertive\" *ngIf=\"listItems && enablereorder && currentIndex\" class=\"sr-only\" >\n {{ariaText + currentIndex + ' of ' + listItems.length}}\n </div>\n</div>\n\n<ul [attr.tabindex]=\"tabindex\" class=\"app-livelist-container clearfix {{direction === 'horizontal' ? 'app-horizontal-list': ''}} {{listclass}}\" role=\"list\"\n (keydown.enter)=\"handleKeyDown($event, 'select')\"\n\n (keydown.space)=\"handleKeyDown($event, 'space')\"\n\n (keydown.arrowup)=\"handleKeyDown($event, 'focusPrev')\"\n (keydown.arrowdown)=\"handleKeyDown($event, 'focusNext')\"\n (keydown.arrowleft)=\"handleKeyDown($event, 'focusPrev')\"\n (keydown.arrowright)=\"handleKeyDown($event, 'focusNext')\"\n\n (keydown.shift.arrowup)=\"handleKeyDown($event, 'selectPrev')\"\n (keydown.shift.arrowdown)=\"handleKeyDown($event, 'selectNext')\"\n (keydown.shift.arrowleft)=\"handleKeyDown($event, 'selectPrev')\"\n (keydown.shift.arrowright)=\"handleKeyDown($event, 'selectNext')\"\n [hidden]=\"noDataFound && !variableInflight\"\n>\n <ng-template [ngIf]=\"!groupby\" [ngIfElse]=\"groupedListTemplate\">\n <li *ngFor=\"let item of fieldDefs; index as $index; first as $first; last as $last;\" class=\"app-list-item {{direction === 'horizontal' ? '' : itemsPerRowClass}}\" [ngClass]=\"listItemRef.itemClass\"\n [wmListItem]=\"item\"\n #listItemRef=\"listItemRef\"\n [attr.tabindex]=\"tabindex\"\n role=\"listitem\">\n <ng-container [ngTemplateOutlet]=\"listTemplate\"\n [ngTemplateOutletInjector]=\"createCustomInjector('falt_' + listItemRef.trackId, {item: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets})\"\n [ngTemplateOutletContext]=\"{item: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets}\"></ng-container>\n </li>\n </ng-template>\n <ng-container [ngTemplateOutlet]=\"listLeftActionTemplate\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"listRightActionTemplate\"></ng-container>\n</ul>\n\n<div class=\"no-data-msg\" *ngIf=\"noDataFound && !variableInflight\" [textContent]=\"nodatamessage\"></div>\n\n<div class=\"loading-data-msg\" *ngIf=\"variableInflight && !pulltorefresh\">\n <span>\n <i class=\"app-icon panel-icon fa-spin\" aria-hidden=\"true\" [ngClass]=\"loadingicon\"></i>\n <span class=\"sr-only\">Loading</span>\n <span class=\"loading-text\" [textContent]=\"loadingdatamsg\"></span>\n </span>\n</div>\n\n<div class=\"app-datanavigator\" [attr.aria-disabled]=\"dataNavigator.isDisableNext\" *ngIf=\"navigation === 'Inline' && !noDataFound\">\n <ul class=\"pager\">\n <li class=\"next\" [ngClass]=\"{'disabled': (dataNavigator ? dataNavigator.isDisableNext : true)}\">\n <a href=\"javascript:void(0);\" (click)=\"dataNavigator.navigatePage('next', $event)\"\n [attr.aria-disabled]=\"dataNavigator.isDisableNext\">\n <i class=\"wi wi-chevron-right\" aria-hidden=\"true\"></i>\n <span class=\"sr-only\">Go to Next page {{dataNavigator.isDisableNext ? ', Disabled' : ''}}</span>\n </a>\n </li>\n </ul>\n</div>\n\n<div class=\"panel-footer\" *ngIf=\"navigation !== 'None'\" [hidden]=\"!showNavigation || (onDemandLoad && dataNavigator.isDisableNext) || (dataNavigator.dataSize <= pagesize) || (!dataNavigator.dataSize && !dataNavigator.datasource?.pagination?.next)\">\n <nav wmPagination\n navigationalign.bind=\"navigationalign\"\n navigation.bind=\"navControls\"\n showrecordcount.bind=\"showrecordcount\"\n maxsize.bind=\"maxsize\"\n boundarylinks.bind=\"boundarylinks\"\n forceellipses.bind=\"forceellipses\"\n directionlinks.bind=\"directionlinks\"\n show.bind=\"!onDemandLoad\"\n paginationchange.event=\"beforePaginationChange($event, $index)\"\n ></nav>\n <a *ngIf=\"onDemandLoad\" href=\"javascript:void(0);\"\n (click)=\"dataNavigator.navigatePage('next', $event)\"\n class=\"app-button btn btn-block\"\n [ngClass]=\"paginationclass\"\n [textContent]=\"ondemandmessage\"\n ></a>\n</div>\n\n<!--This template will be displayed when groupby is specified-->\n<ng-template #groupedListTemplate>\n <li *ngFor=\"let groupObj of groupedData; let groupIndex = index;\" class=\"app-list-item-group clearfix\">\n <ul [attr.tabindex]=\"tabindex\" class=\"list-group item-group\" [ngClass]=\"listclass\">\n <li class=\"app-list-item-header list-item list-group-header\" (click)=\"handleHeaderClick($event)\" [ngClass]=\"{'collapsible-content': collapsible}\">\n <h4>{{groupObj.key}}\n <div class=\"header-action\">\n <i class=\"app-icon wi action wi-chevron-up\" *ngIf=\"collapsible\"></i>\n <span *ngIf=\"showcount\" class=\"label label-default\">{{groupObj.data.length}}</span>\n </div>\n </h4>\n </li>\n <li class=\"list-group-container\">\n <ul class=\"list-group clearfix {{direction === 'horizontal' ? 'app-horizontal-list': ''}}\">\n <li *ngFor=\"let item of groupObj.data; index as $index; trackBy: trackByFn; first as $first; last as $last;\" [attr.tabindex]=\"tabindex\"\n class=\"app-list-item group-list-item {{itemsPerRowClass}}\"\n [ngClass]=\"listItemRef.itemClass\"\n [wmListItem]=\"item\" #listItemRef=\"listItemRef\">\n <ng-container [ngTemplateOutlet]=\"listTemplate\"\n [ngTemplateOutletInjector]=\"createCustomInjector('group_' + listItemRef.trackId, {item: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets})\"\n [ngTemplateOutletContext]=\"{item: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets}\"></ng-container>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n</ng-template>\n","import {\n AfterViewInit,\n Attribute,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ContentChildren,\n ElementRef, Inject,\n Injector,\n NgZone,\n OnDestroy,\n OnInit,\n Optional,\n QueryList,\n TemplateRef,\n ViewChild,\n ViewChildren\n} from '@angular/core';\n\nimport {Subscription} from 'rxjs';\n\nimport {\n $appDigest,\n $invokeWatchers,\n App,\n AppDefaults,\n DataSource,\n getClonedObject,\n isDataSourceEqual,\n isDefined,\n isMobile,\n isMobileApp,\n isObject,\n noop,\n switchClass,\n StatePersistence,\n PaginationService,\n setListClass,\n generateGUId\n} from '@wm/core';\nimport {\n APPLY_STYLES_TYPE,\n configureDnD,\n DEBOUNCE_TIMES,\n getOrderedDataset,\n groupData,\n handleHeaderClick,\n NAVIGATION_TYPE,\n unsupportedStatePersistenceTypes,\n provideAsWidgetRef,\n StylableComponent,\n styler,\n ToDatePipe,\n toggleAllHeaders,\n WidgetRef,\n extractDataSourceName\n} from '@wm/components/base';\nimport {PaginationComponent} from '@wm/components/data/pagination';\nimport {ButtonComponent} from '@wm/components/input';\n\nimport {registerProps} from './list.props';\nimport {ListItemDirective} from './list-item.directive';\nimport {ListAnimator} from './list.animator';\nimport {\n clone,\n cloneDeep,\n forEach,\n get, has,\n includes,\n isArray,\n isEmpty,\n isEqual,\n isNumber,\n isString,\n isUndefined,\n last, max, min, pullAllWith, pullAt, remove, some, toNumber\n} from \"lodash-es\";\n\ndeclare const $;\n\nconst DEFAULT_CLS = 'app-livelist app-panel';\nconst WIDGET_CONFIG = {widgetType: 'wm-list', hostClass: DEFAULT_CLS};\n\n@Component({\n selector: 'div[wmList]',\n templateUrl: './list.component.html',\n providers: [\n provideAsWidgetRef(ListComponent)\n ]\n})\nexport class ListComponent extends StylableComponent implements OnInit, AfterViewInit, OnDestroy {\n static initializeProps = registerProps();\n\n @ContentChild('listTemplate') listTemplate: TemplateRef<ElementRef>;\n\n @ContentChild('listLeftActionTemplate') listLeftActionTemplate: TemplateRef<ElementRef>;\n @ContentChild('listRightActionTemplate') listRightActionTemplate: TemplateRef<ElementRef>;\n @ContentChildren(ButtonComponent) btnComponents;\n\n @ViewChild(PaginationComponent) dataNavigator;\n @ViewChildren(ListItemDirective) listItems: QueryList<ListItemDirective>;\n public noDataFound: boolean;\n public lastSelectedItem: ListItemDirective;\n public fieldDefs: Array<any>;\n public disableitem;\n public navigation: string;\n public navigationalign: string;\n public pagesize: number;\n public dataset: any;\n public multiselect: boolean;\n public selectfirstitem: boolean;\n public orderby: string;\n public loadingicon: string;\n public paginationclass: string;\n public ondemandmessage: string;\n public loadingdatamsg: string;\n public selectionlimit: number;\n public infScroll: boolean;\n public enablereorder: boolean;\n public itemsperrow: string;\n public itemclass: string;\n public selectedItemWidgets: Array<WidgetRef> | WidgetRef;\n public variableInflight;\n public name;\n public currentPage;\n public direction;\n public tabindex;\n public handleHeaderClick: Function;\n public toggleAllHeaders: void;\n public groupby: string;\n public collapsible: string;\n public datePipe: ToDatePipe;\n public binditemclass: string;\n public binddisableitem: string;\n public binddataset: string;\n public mouseEnterCB: string;\n public mouseLeaveCB: string;\n public pulltorefresh: boolean;\n public title: string;\n public subheading: string;\n public iconclass: string;\n public listclass: any;\n public statehandler: any;\n public currentIndex: number;\n public titleId: string;\n _isDependent;\n private itemsPerRowClass: string;\n private firstSelectedItem: ListItemDirective;\n private navigatorMaxResultWatch: Subscription;\n private navigatorResultWatch: Subscription;\n private navControls: string;\n private onDemandLoad: boolean;\n private _items: Array<any>;\n private dataNavigatorWatched: boolean;\n private datasource: any;\n private showNavigation: boolean;\n private reorderProps: any;\n private app: any;\n private appDefaults: any;\n private ngZone: NgZone;\n private statePersistence: StatePersistence;\n private paginationService: PaginationService;\n private binddatasource: string;\n private match: string;\n private dateformat: string;\n private groupedData: any;\n private cdRef: ChangeDetectorRef;\n private promiseResolverFn: Function;\n private propsInitPromise: Promise<any>;\n private $ulEle: any;\n private _listAnimator: ListAnimator;\n private _listenerDestroyers: Array<any>;\n private debouncedFetchNextDatasetOnScroll: Function;\n private isDataChanged: boolean;\n private isListElementMovable: boolean;\n private ariaText: String;\n private _pageLoad;\n private _selectedItemsExist;\n\n private touching;\n private touched;\n\n constructor(\n inj: Injector,\n cdRef: ChangeDetectorRef,\n datePipe: ToDatePipe,\n app: App,\n appDefaults: AppDefaults,\n ngZone: NgZone,\n @Attribute('itemclass.bind') binditemclass: string,\n @Attribute('disableitem.bind') binddisableitem: string,\n @Attribute('dataset.bind') binddataset: string,\n @Attribute('datasource.bind') binddatasource: string,\n @Attribute('mouseenter.event') mouseEnterCB: string,\n @Attribute('mouseleave.event') mouseLeaveCB: string,\n statePersistence: StatePersistence,\n paginationService: PaginationService,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n let resolveFn: Function = noop;\n const propsInitPromise = new Promise(res => resolveFn = res);\n super(inj, WIDGET_CONFIG, explicitContext, propsInitPromise);\n this.propsInitPromise = propsInitPromise;\n this.promiseResolverFn = resolveFn;\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.SHELL);\n this.cdRef = cdRef;\n this.ngZone = ngZone;\n this.datePipe = datePipe;\n this.statePersistence = statePersistence;\n this.paginationService = paginationService;\n this._pageLoad = true;\n\n this.binditemclass = binditemclass;\n this.binddisableitem = binddisableitem;\n this.binddataset = binddataset;\n this.mouseEnterCB = mouseEnterCB;\n this.mouseLeaveCB = mouseLeaveCB;\n this.binddatasource = binddatasource;\n\n this.app = app;\n this.appDefaults = appDefaults;\n this.variableInflight = false;\n\n this.noDataFound = !binddataset;\n this.titleId = 'wmlist-' + generateGUId();\n\n // Updates pagination, filter, sort etc options for service and crud variables\n this._listenerDestroyers = [\n this.app.subscribe('check-state-persistence-options', options => {\n let dataSourceName = get(this.datasource, 'name');\n // in Prefabs, this.datasource is not resolved at the time of variable invocation, so additional check is required.\n if (!dataSourceName) {\n dataSourceName = extractDataSourceName(this.binddatasource);\n }\n if (get(options, 'variable.name') !== dataSourceName) {\n return;\n }\n this.handleStateParams(options);\n }),\n // Show loading status based on the variable life cycle\n this.app.subscribe('toggle-variable-state', this.handleLoading.bind(this)),\n this.app.subscribe('setup-cud-listener', param => {\n if (this.nativeElement.getAttribute('name') !== param) {\n return;\n }\n this._isDependent = true;\n })\n ];\n }\n\n public get selecteditem() {\n if (this.multiselect) {\n return getClonedObject(this._items);\n }\n if (isEmpty(this._items)) {\n return {};\n }\n return getClonedObject(this._items[0]);\n }\n\n public set selecteditem(items) {\n this._items.length = 0;\n this.deselectListItems();\n\n if (isArray(items)) {\n items.forEach(item => this.selectItem(item));\n } else {\n this.selectItem(items);\n }\n $appDigest();\n }\n\n /**\n * Returns list of widgets present on list item by considering name and index of the widget.\n * If we did'nt pass index, it returns array of all the widgets which are matching to widget name\n * @param widgteName: Name of the widget\n * @param index: Index of the widget\n */\n public getWidgets(widgteName: string, index?: number) {\n let $target;\n const retVal = [];\n\n if (!widgteName) {\n return;\n }\n\n if (!isDefined(index)) {\n forEach(this.listItems.toArray(), (el) => {\n $target = get(el.currentItemWidgets, widgteName);\n if ($target) {\n retVal.push($target);\n }\n });\n\n return retVal;\n }\n index = +index || 0;\n\n $target = get(this.listItems.toArray(), index);\n\n if ($target) {\n return [get($target.currentItemWidgets, widgteName)];\n }\n }\n\n // returns listitem reference by index value. This refers to the same method getListItemByIndex.\n public getItem(index: number) {\n return this.getListItemByIndex(index);\n }\n\n /**\n * Returns index of listItem(listItemDirective / listItemObject)\n * If item is a directive, index is fetched from listItems\n * If item is an object, index is fetched from fieldDefs\n */\n public getIndex(item: any) {\n if (item instanceof ListItemDirective) {\n return this.getListItemIndex(item);\n } else if (item) {\n return this.fieldDefs.findIndex((obj) => isEqual(obj, item));\n }\n }\n\n create() {\n if (this._isDependent) {\n this.triggerWMEvent('insert');\n }\n }\n\n editRow(item?) {\n if (this._isDependent) {\n let listItem;\n if (item) {\n listItem = this.getItemRefByIndexOrModel(item).item;\n }\n this.triggerWMEvent('update', listItem);\n }\n }\n\n update(item?) {\n this.editRow(item);\n }\n\n deleteRow(item?) {\n if (this._isDependent) {\n let listItem;\n if (item) {\n listItem = this.getItemRefByIndexOrModel(item).item;\n }\n this.triggerWMEvent('delete', listItem);\n }\n }\n\n delete(item?) {\n this.deleteRow(item);\n }\n\n handleLoading(data) {\n const dataSource = this.datasource;\n if (dataSource && dataSource.execute(DataSource.Operation.IS_API_AWARE) && isDataSourceEqual(data.variable, dataSource)) {\n this.ngZone.run(() => {\n this.handleStateParams(data);\n this.variableInflight = data.active;\n // Fix for [WMS-23772] Update nodatafound flag once the response is recieved from the server\n const totalEle = data.data?.pagination?.totalElements;\n if (!isUndefined(totalEle)) {\n this.noDataFound = totalEle === 0 ? true : false;\n } else { // totalelements is undefined\n this.noDataFound = isEmpty(data.data?.data);\n }\n });\n }\n }\n\n public triggerListItemSelection($el: JQuery<HTMLElement>, $event: Event) {\n if ($el && $el[0]) {\n const listItemContext = $el.data('listItemContext');\n // Trigger click event only if the list item is from the corresponding list.\n if (listItemContext.listComponent === this) {\n this.onItemClick($event, listItemContext);\n }\n }\n }\n\n // this method is called form other data widgets like table.\n public execute(operation, options) {\n if ([DataSource.Operation.IS_API_AWARE, DataSource.Operation.IS_PAGEABLE, DataSource.Operation.SUPPORTS_SERVER_FILTER].includes(operation)) {\n return false;\n }\n return this.datasource.execute(operation, options);\n }\n\n public handleKeyDown($event, action: string) {\n $event.stopPropagation();\n if ($event.keyCode !== 13 && $event.keyCode !== 9 && !(($event.target.classList.contains('form-control') || $event.target.classList.contains('note-editable')) && $event.keyCode === 32)) {\n $event.preventDefault();\n }\n\n const listItems: QueryList<ListItemDirective> = this.listItems;\n\n let presentIndex: number = this.getListItemIndex(this.lastSelectedItem);\n\n if (this.multiselect) {\n const firstIndex: number = this.getListItemIndex(this.firstSelectedItem);\n const selectCount: number = isArray(this.selecteditem) ? this.selecteditem.length : (isObject(this.selecteditem) ? 1 : 0);\n if (action === 'selectPrev') {\n if (presentIndex > 0) {\n if ((presentIndex <= firstIndex) && this.checkSelectionLimit(selectCount)) {\n this.lastSelectedItem = this.getListItemByIndex(presentIndex - 1);\n this.toggleListItemSelection(this.lastSelectedItem);\n } else if (presentIndex > firstIndex) {\n this.toggleListItemSelection(this.getListItemByIndex(presentIndex));\n this.lastSelectedItem = this.getListItemByIndex(presentIndex - 1);\n } else {\n this.invokeEventCallback('selectionlimitexceed', {$event});\n }\n }\n } else if (action === 'selectNext') {\n if (presentIndex < listItems.length - 1) {\n if ((presentIndex >= firstIndex) && this.checkSelectionLimit(selectCount)) {\n this.lastSelectedItem = this.getListItemByIndex(presentIndex + 1);\n this.toggleListItemSelection(this.lastSelectedItem);\n } else if (presentIndex < firstIndex) {\n this.toggleListItemSelection(this.getListItemByIndex(presentIndex));\n this.lastSelectedItem = this.getListItemByIndex(presentIndex + 1);\n } else {\n this.invokeEventCallback('selectionlimitexceed', {$event});\n }\n }\n }\n }\n if (action === 'focusPrev') {\n if (this.isListElementMovable) {\n presentIndex = presentIndex <= 0 ? 0 : (presentIndex);\n if (presentIndex === 0) {\n return;\n }\n\n this.lastSelectedItem = this.getListItemByIndex(presentIndex);\n const prevElt = this.getListItemByIndex(presentIndex - 1);\n prevElt.nativeElement.before(this.lastSelectedItem.nativeElement);\n this.lastSelectedItem.nativeElement.focus();\n this.statePersistence.removeWidgetState(this, 'selectedItem');\n const arr = this.listItems.toArray();\n [arr[presentIndex - 1], arr[presentIndex]] = [arr[presentIndex], arr[presentIndex - 1]];\n this.listItems.reset(arr);\n this.currentIndex = presentIndex;\n this.ariaText = \"selected \";\n } else {\n presentIndex = presentIndex <= 0 ? 0 : (presentIndex - 1);\n this.lastSelectedItem = this.getListItemByIndex(presentIndex);\n this.lastSelectedItem.nativeElement.focus();\n this.currentIndex = presentIndex + 1;\n this.ariaText = \"selected \";\n }\n } else if (action === 'focusNext') {\n if (this.isListElementMovable) {\n presentIndex = presentIndex < (listItems.length - 1) ? (presentIndex) : (listItems.length - 1);\n if (presentIndex === this.listItems.length - 1) {\n return;\n }\n\n this.lastSelectedItem = this.getListItemByIndex(presentIndex);\n const nextElt = this.getListItemByIndex(presentIndex + 1);\n nextElt.nativeElement.after(this.lastSelectedItem.nativeElement);\n this.lastSelectedItem.nativeElement.focus();\n this.statePersistence.removeWidgetState(this, 'selectedItem');\n const arr = this.listItems.toArray();\n [arr[presentIndex], arr[presentIndex + 1]] = [arr[presentIndex + 1], arr[presentIndex]];\n this.listItems.reset(arr);\n this.currentIndex = presentIndex + 2;\n this.ariaText = \"selected \";\n } else {\n presentIndex = presentIndex < (listItems.length - 1) ? (presentIndex + 1) : (listItems.length - 1);\n this.lastSelectedItem = this.getListItemByIndex(presentIndex);\n this.lastSelectedItem.nativeElement.focus();\n this.currentIndex = presentIndex + 1;\n this.ariaText = \"selected \";\n }\n } else if (action === 'select') {\n // if the enter click is pressed on the item which is not the last selected item, the find the item from which the event is originated.\n if (presentIndex === -1 || !$($event.target).closest(this.lastSelectedItem.nativeElement)) {\n const $li = $($event.target).closest('li.app-list-item');\n const $ul = $li.closest('ul.app-livelist-container');\n presentIndex = $ul.find('li.app-list-item').index($li);\n }\n this.onItemClick($event, this.getListItemByIndex(presentIndex));\n } else if (action === 'space') {\n if (!this.enablereorder) {\n return;\n }\n this.isListElementMovable = !this.isListElementMovable;\n this.onItemClick($event, this.getListItemByIndex(presentIndex));\n this.currentIndex = presentIndex + 1;\n if (this.isListElementMovable) {\n this.ariaText = `Item ${this.currentIndex} grabbed, current position `;\n this.$ulEle.data('oldIndex', presentIndex);\n } else {\n this.ariaText = `Item ${this.currentIndex} dropped, final position `;\n this.onUpdate($event, undefined, presentIndex);\n }\n }\n }\n\n onPropertyChange(key: string, nv: any, ov?: any) {\n if (key === 'dataset') {\n if (!nv && this.binddatasource && !this.datasource) {\n return;\n }\n this.onDataSetChange(nv);\n } else if (key === 'datasource') {\n if (this.dataset) {\n this.onDataSetChange(this.dataset);\n }\n } else if (key === 'navigation') {\n // Support for older projects where navigation type was advanced instead of classic\n if (nv === 'Advanced') {\n this.navigation = 'Classic';\n return;\n }\n switchClass(this.nativeElement, nv, ov);\n this.onNavigationTypeChange(nv);\n if (this.dataNavigator) {\n this.dataNavigator.navigationClass = this.paginationclass;\n }\n } else if (key === 'itemsperrow') {\n setListClass(this);\n } else if (key === 'tabindex') {\n return;\n } else if (key === 'pulltorefresh' && nv) {\n this.app.notify('pullToRefresh:enable');\n this.subscribeToPullToRefresh();\n } else if (key === 'paginationclass') {\n if (this.dataNavigator) {\n // Adding setTimeout because in pagination component updateNavSize method is overriding navigationclass\n setTimeout(() => this.dataNavigator.navigationClass = nv);\n }\n } else if (key === 'pagesize') {\n this.dataNavigator.options = {\n maxResults: nv\n };\n this.dataNavigator.widget.maxResults = nv;\n this.dataNavigator.maxResults = nv;\n } else if (key === 'enablereorder') {\n if (nv && this.$ulEle) {\n this.$ulEle.attr('aria-describedby', this.titleId);\n this.configureDnD();\n this.$ulEle.sortable('enable');\n } else if (this.$ulEle && !nv) {\n this.$ulEle.removeAttr('aria-describedby');\n this.$ulEle.sortable('disable');\n }\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n public onItemClick(evt: any, $listItem: ListItemDirective) {\n let selectCount: number;\n\n if (!$listItem.disableItem) {\n this.firstSelectedItem = this.firstSelectedItem || $listItem;\n // Setting selectCount value based number of items selected.\n selectCount = isArray(this.selecteditem) ? this.selecteditem.length : (isObject(this.selecteditem) ? 1 : 0);\n\n // Handling multiselect for mobile device\n if (this.multiselect && isMobile()) {\n if (this.checkSelectionLimit(selectCount) || $listItem.isActive) {\n this.toggleListItemSelection($listItem);\n } else {\n this.invokeEventCallback('selectionlimitexceed', {$event: evt});\n }\n } else if ((evt.ctrlKey || evt.metaKey) && this.multiselect) {\n if (this.checkSelectionLimit(selectCount) || $listItem.isActive) {\n this.firstSelectedItem = this.lastSelectedItem = $listItem;\n this.toggleListItemSelection($listItem);\n } else {\n this.invokeEventCallback('selectionlimitexceed', {$event: evt});\n }\n } else if (evt.shiftKey && this.multiselect) {\n let first = $listItem.context.index;\n let last = this.firstSelectedItem.context.index;\n\n // if first is greater than last, then swap values\n if (first > last) {\n last = [first, first = last][0];\n }\n if (this.checkSelectionLimit(last - first)) {\n this.clearSelectedItems();\n this.listItems.forEach(($liItem: ListItemDirective) => {\n const index = $liItem.context.index;\n if (index >= first && index <= last) {\n this.toggleListItemSelection($liItem);\n }\n });\n this.lastSelectedItem = $listItem;\n } else {\n this.invokeEventCallback('selectionlimitexceed', {$event: evt});\n }\n\n } else {\n if (!$listItem.isActive || selectCount > 1) {\n this.clearSelectedItems();\n this.toggleListItemSelection($listItem);\n this.firstSelectedItem = this.lastSelectedItem = $listItem;\n }\n }\n $appDigest();\n }\n }\n\n // Empty the list content on clear\n public clear() {\n this.updateFieldDefs([]);\n }\n\n /**\n * deselects item in the list.\n * @param val: index | model of the list item.\n */\n public deselectItem(val: any) {\n const listItem = this.getItemRefByIndexOrModel(val);\n if (listItem && listItem.isActive) {\n this.toggleListItemSelection(listItem);\n }\n }\n\n /**\n * selects item in the list.\n * @param val: index | model of the list item.\n */\n public selectItem(val, statePersistenceTriggered?) {\n const listItem = this.getItemRefByIndexOrModel(val);\n if (!listItem) {\n return;\n }\n if (!listItem.isActive) {\n this.toggleListItemSelection(listItem, statePersistenceTriggered);\n }\n // focus the element.\n listItem.nativeElement.focus();\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.handleHeaderClick = noop;\n setTimeout(() => {\n this.debouncedFetchNextDatasetOnScroll = this.paginationService.debouncedFetchNextDatasetOnScroll(this.dataNavigator, DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME, this);\n }, 0);\n this._items = [];\n this.fieldDefs = [];\n this.reorderProps = {\n minIndex: null,\n maxIndex: null\n };\n }\n\n ngAfterViewInit() {\n this.promiseResolverFn();\n this.propsInitPromise.then(() => {\n super.ngAfterViewInit();\n this.setUpCUDHandlers();\n this.selectedItemWidgets = this.multiselect ? [] : {};\n var ele = $(this.nativeElement).find('.app-livelist-container');\n\n if (this.enablereorder && !this.groupby) {\n if (ele) {\n ele.attr('aria-describedby', this.titleId);\n }\n this.configureDnD();\n }\n if (!this.enablereorder) {\n if (ele) {\n ele.removeAttr('aria-describedby');\n }\n }\n if (this.groupby && this.collapsible) {\n this.handleHeaderClick = handleHeaderClick;\n this.toggleAllHeaders = toggleAllHeaders.bind(undefined, this);\n }\n setListClass(this);\n });\n this.setupHandlers();\n const $ul = this.nativeElement.querySelector('ul.app-livelist-container');\n styler($ul as HTMLElement, this, APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);\n if (this.enablereorder) {\n if ($ul) {\n $ul.setAttribute('aria-describedby', this.titleId);\n }\n }\n if (!this.enablereorder) {\n if ($ul) {\n $ul.removeAttribute('aria-describedby');\n }\n }\n if (isMobileApp() && $ul.querySelector('.app-list-item-action-panel')) {\n this._listAnimator = new ListAnimator(this);\n }\n }\n\n ngOnDestroy() {\n if (this._listAnimator && this._listAnimator.$btnSubscription) {\n this._listAnimator.$btnSubscription.unsubscribe();\n }\n this._listenerDestroyers.forEach(d => d && d());\n super.ngOnDestroy();\n }\n\n ngOnDetach() {\n super.ngOnDetach();\n this._pageLoad = true;\n }\n\n protected handleEvent(node: HTMLElement, eventName: string, eventCallback: Function, locals: any) {\n // tap and doubleTap events are not getting propagated.So, using mouse events instead.\n const touchToMouse = {\n tap: 'click',\n doubletap: 'dblclick'\n };\n if (includes(['click', 'tap', 'dblclick', 'doubletap'], eventName)) {\n this.eventManager.addEventListener(\n this.nativeElement,\n touchToMouse[eventName] || eventName,\n (evt) => {\n const target = $(evt.target).closest('.app-list-item');\n if (target.length) {\n const listItemContext: ListItemDirective = target.data('listItemContext');\n if (!listItemContext.disableItem) {\n this.invokeEventCallback(eventName, {\n widget: listItemContext,\n $event: evt,\n item: listItemContext.item\n });\n }\n }\n }\n );\n }\n }\n\n private getConfiguredState() {\n const mode = this.statePersistence.computeMode(this.statehandler);\n return mode && mode.toLowerCase();\n }\n\n private handleStateParams(options) {\n if (this._pageLoad && this.getConfiguredState() !== 'none') {\n this._pageLoad = false;\n const widgetState = this.statePersistence.getWidgetState(this);\n if (get(widgetState, 'pagination')) {\n options.options = options.options || {};\n options.options.page = widgetState.pagination;\n }\n if (get(widgetState, 'selectedItem')) {\n this._selectedItemsExist = true;\n }\n }\n }\n\n private triggerWMEvent(eventName, item?) {\n $invokeWatchers(true);\n // If we have multiselect for the livelist(List with form template), in run mode deleting a record is getting failed. Becuase the selecteditem will be array of objects. So consider the last object.\n let row = this.multiselect ? last(this.selecteditem) : this.selecteditem;\n if (item) {\n row = item;\n }\n this.app.notify('wm-event', {eventName, widgetName: this.name, row: row});\n }\n\n private resetNavigation() {\n this.showNavigation = false;\n this.navControls = undefined;\n this.infScroll = false;\n this.onDemandLoad = false;\n }\n\n private enableBasicNavigation() {\n this.navControls = NAVIGATION_TYPE.BASIC;\n this.showNavigation = true;\n }\n\n private enableInlineNavigation() {\n this.navControls = NAVIGATION_TYPE.INLINE;\n }\n\n private enableClassicNavigation() {\n this.navControls = NAVIGATION_TYPE.CLASSIC;\n this.showNavigation = true;\n }\n\n private enablePagerNavigation() {\n this.navControls = NAVIGATION_TYPE.PAGER;\n this.showNavigation = true;\n }\n\n private setNavigationTypeNone() {\n this.navControls = NAVIGATION_TYPE.NONE;\n this.showNavigation = false;\n }\n\n private enableInfiniteScroll() {\n this.infScroll = true;\n }\n\n private enableOnDemandLoad() {\n this.onDemandLoad = true;\n this.showNavigation = true;\n }\n\n /**\n * Sets Navigation type for the list.\n * @param type\n */\n private onNavigationTypeChange(type) {\n this.resetNavigation();\n switch (type) {\n case NAVIGATION_TYPE.BASIC:\n this.enableBasicNavigation();\n break;\n case NAVIGATION_TYPE.INLINE:\n this.enableInlineNavigation();\n break;\n case NAVIGATION_TYPE.ADVANCED:\n case NAVIGATION_TYPE.CLASSIC:\n this.enableClassicNavigation();\n break;\n case NAVIGATION_TYPE.PAGER:\n this.enablePagerNavigation();\n break;\n case NAVIGATION_TYPE.NONE :\n this.setNavigationTypeNone();\n break;\n case NAVIGATION_TYPE.SCROLL:\n this.enableInfiniteScroll();\n break;\n case NAVIGATION_TYPE.ONDEMAND:\n this.enableOnDemandLoad();\n break;\n }\n }\n\n /**\n * Update fieldDefs property, fieldDefs is the model of the List Component.\n * fieldDefs is an Array type.\n * @param newVal\n */\n private updateFieldDefs(newVal: Array<any>) {\n if (this.infScroll || this.onDemandLoad) {\n [this.fieldDefs, this.currentPage] = this.paginationService.updateFieldsOnPagination(this, newVal);\n } else {\n this.fieldDefs = newVal;\n }\n\n if (this.orderby) {\n this.fieldDefs = getOrderedDataset(this.fieldDefs, this.orderby);\n }\n if (this.groupby) {\n this.groupedData = groupData(this, this.fieldDefs, this.groupby, this.match, this.orderby, this.dateformat, this.datePipe, undefined, this.appDefaults);\n }\n\n if (!this.fieldDefs.length) {\n this.noDataFound = true;\n this.selecteditem = undefined;\n }\n $appDigest();\n this.listItems.setDirty();\n }\n\n private onDataChange(newVal) {\n // Check for newVal is not empty\n if (!isEmpty(newVal)) {\n\n this.noDataFound = false;\n this.isDataChanged = true;\n\n if (this.datasource && this.datasource.execute(DataSource.Operation.IS_API_AWARE)) {\n // clone the the data in case of live and service variables to prevent the two-way binding for these variables.\n newVal = cloneDeep(newVal);\n }\n\n if (isObject(newVal) && !isArray(newVal)) {\n newVal = isEmpty(newVal) ? [] : [newVal];\n }\n\n if (isString(newVal)) {\n newVal = newVal.split(',');\n }\n\n // if the page number is greater than 1 on initial load then we render the first page.\n if (this.datasource && this.datasource.owner === 'App' && (this.infScroll || this.onDemandLoad) && !this.currentPage && this.datasource.execute(DataSource.Operation.GET_PAGING_OPTIONS).number > 0) {\n newVal = this.datasource.execute(DataSource.Operation.LIST_RECORDS, {\n 'page': 1\n });\n }\n\n if (isArray(newVal)) {\n if (newVal.length) {\n this.invokeEventCallback('beforedatarender', {$data: newVal});\n }\n this.updateFieldDefs(newVal);\n }\n } else {\n this.updateFieldDefs([]);\n }\n }\n\n // Updates the dataSource when pagination is enabled for the Component.\n private setupDataSource() {\n const dataNavigator = this.dataNavigator;\n\n dataNavigator.options = {\n maxResults: this.pagesize || 20\n };\n\n this.dataNavigatorWatched = true;\n\n if (this.navigatorResultWatch) {\n this.navigatorResultWatch.unsubscribe();\n }\n /*Register a watch on the \"result\" property of the \"dataNavigator\" so that the paginated data is displayed in the live-list.*/\n this.navigatorResultWatch = dataNavigator.resultEmitter.subscribe((newVal: any) => {\n this.onDataChange(newVal);\n }, true);\n /*De-register the watch if it is exists */\n if (this.navigatorMaxResultWatch) {\n this.navigatorMaxResultWatch.unsubscribe();\n }\n /*Register a watch on the \"maxResults\" property of the \"dataNavigator\" so that the \"pageSize\" is displayed in the live-list.*/\n this.navigatorMaxResultWatch = dataNavigator.maxResultsEmitter.subscribe((val) => {\n this.pagesize = val;\n });\n\n dataNavigator.maxResults = this.pagesize || 20;\n this.removePropertyBinding('dataset');\n // when list having \"datasetboundexpr\" attr indicates that list is bound to item context\n // when dataset is bound to \"item.FIELD\" then item context is passed as the datasource.\n const datasetBoundExpr = this.getAttr('datasetboundexpr');\n this.dataNavigator.setBindDataSet(\n this.binddataset,\n this.viewParent,\n datasetBoundExpr ? this.context : this.datasource,\n this.dataset,\n this.binddatasource,\n datasetBoundExpr,\n this.statehandler\n );\n }\n\n private onDataSetChange(newVal) {\n if (get(this.datasource, 'category') === 'wm.Variable' && this.getConfiguredState() !== 'none' && this._pageLoad) {\n const widgetState = this.statePersistence.getWidgetState(this);\n this._pageLoad = false;\n if (get(widgetState, 'pagination')) {\n this.dataNavigator.pageChanged({page: widgetState.pagination}, true);\n }\n if (get(widgetState, 'selectedItem')) {\n this._selectedItemsExist = true;\n }\n }\n if (!this.dataNavigatorWatched) {\n if (this.navigation && this.navigation !== NAVIGATION_TYPE.NONE) {\n this.setupDataSource();\n } else {\n this.onDataChange(newVal);\n }\n } else if (this.navigation && this.navigation !== NAVIGATION_TYPE.NONE) {\n // If navigation is already setup and datasource is changed, update the datasource on navigation\n this.dataNavigator.setDataSource(this.datasource);\n }\n }\n\n // All the ListItem's Active state is set to false.\n private deselectListItems() {\n this.listItems.forEach(item => item.isActive = false);\n }\n\n // Deselect all the ListItems and clear the selecteditem(InOutBound Property model)\n private clearSelectedItems() {\n this.deselectListItems();\n this._items.length = 0;\n $appDigest();\n }\n\n /**\n * return the ListItemDirective instance by checking the equality of the model.\n * @param listModel: model to be searched for\n * @returns ListItem if the model is matched else return null.\n */\n private getListItemByModel(listModel): ListItemDirective {\n return this.listItems.find((listItem) => {\n let itemObj = listItem.item;\n if (this.groupby && !has(listModel, '_groupIndex')) {\n // If groupby is enabled, item contains _groupIndex property which should be excluded while comparing model.\n itemObj = clone(itemObj);\n delete itemObj._groupIndex;\n }\n if (isEqual(itemObj, listModel)) {\n return true;\n }\n }) || null;\n }\n\n private updateSelectedItemsWidgets(statePersistenceTriggered?) {\n let obj = {}, widgetState;\n const pageNum = get(this.dataNavigator, 'dn.currentPage') || 1;\n if (this.getConfiguredState() !== 'none') {\n // remove previously configured selected items for current page and construct new ones later below.\n widgetState = this.statePersistence.getWidgetState(this) || {};\n if (get(widgetState, 'selectedItem')) {\n // when multiselect is on and an item is selected without pressing CTRL, previously selected items in state should be empty.\n if (this.multiselect && this.selecteditem.length === 1) {\n widgetState.selectedItem = [];\n } else {\n remove(widgetState.selectedItem, function (selectedItem: any) {\n return selectedItem.page === pageNum;\n });\n }\n }\n }\n if (this.multiselect) {\n (this.selectedItemWidgets as Array<WidgetRef>).length = 0;\n }\n this.listItems.forEach((item: ListItemDirective, index) => {\n if (item.isActive) {\n if (this.multiselect) {\n (this.selectedItemWidgets as Array<WidgetRef>).push(item.currentItemWidgets);\n } else {\n this.selectedItemWidgets = item.currentItemWidgets;\n }\n obj = {page: pageNum, index: index};\n if (get(widgetState, 'selectedItem') && this.multiselect) {\n if (!some(widgetState.selectedItem, obj)) {\n widgetState.selectedItem.push(obj);\n }\n } else {\n widgetState.selectedItem = [obj];\n }\n }\n });\n if (this.getConfiguredState() !== 'none' && !statePersistenceTriggered) {\n if (unsupportedStatePersistenceTypes.indexOf(this.navigation) < 0) {\n this.statePersistence.removeWidgetState(this, 'selectedItem');\n this.statePersistence.setWidgetState(this, {'selectedItem': widgetState.selectedItem});\n } else {\n console.warn('Retain State handling on Widget ' + this.name + ' is not supported for current pagination type.');\n }\n }\n }\n\n /**\n * Selects the listItem and updates selecteditem property.\n * If the listItem is already a selected item then deselects the item.\n * @param {ListItemDirective} $listItem: Item to be selected of deselected.\n */\n private toggleListItemSelection($listItem: ListItemDirective, statePersistenceTriggered?) {\n // item is not allowed to get selected if it is disabled.\n if ($listItem && !$listItem.disableItem) {\n let item = $listItem.item;\n if (this.groupby && has(item, '_groupIndex')) {\n // If groupby is enabled, item contains _groupIndex property which should be excluded from selecteditem.\n item = clone(item);\n delete item._groupIndex;\n }\n if ($listItem.isActive) {\n this._items = pullAllWith(this._items, [item], isEqual);\n $listItem.isActive = false;\n } else {\n // if multiselect is false, clear the selectItem list before adding an item to the selectItem list.\n if (!this.multiselect) {\n this.clearSelectedItems();\n }\n this._items.push(item);\n this.invokeEventCallback('select', {widget: $listItem, $data: item});\n $listItem.isActive = true;\n }\n this.updateSelectedItemsWidgets(statePersistenceTriggered);\n }\n }\n\n /**\n * Method is Invoked when the model for the List Widget is changed.\n * @param {QueryList<ListItemDirective>} listItems\n */\n private onListRender(listItems: QueryList<ListItemDirective>) {\n // Added render callback event. This method(onListRender) is calling multiple times so checking isDatachanged flag because this falg is changed whenever new data is rendered.\n if (this.isDataChanged) {\n // Whenever dataset is changed, trigger watchers to evaluate listitem bind expressions.\n $invokeWatchers(true);\n this.invokeEventCallback('render', {$data: this.fieldDefs});\n }\n if (this.isDataChanged && this.getConfiguredState() !== 'none' && listItems.length && this._selectedItemsExist) {\n const widgetState = this.statePersistence.getWidgetState(this);\n if (get(widgetState, 'selectedItem')) {\n this._selectedItemsExist = false;\n const selectedItemsLength = isArray(this.selecteditem) ? this.selecteditem.length : toNumber(!isEmpty(this.selecteditem));\n const currentPage = get(this.dataNavigator, 'dn.currentPage') || 1;\n widgetState.pagination = widgetState.pagination || 1;\n // to prevent item selection from being triggered more than once\n if (selectedItemsLength !== widgetState.selectedItem.length && widgetState.pagination === currentPage) {\n widgetState.selectedItem.forEach((item) => {\n if (item.page === currentPage) {\n this.selectItem(item.index, true);\n }\n });\n }\n }\n }\n const selectedItems = isArray(this.selecteditem) ? this.selecteditem : [this.selecteditem];\n\n this.firstSelectedItem = this.lastSelectedItem = null;\n\n // don't select first item if multi-select is enabled and at least item is already selected in the list.\n // don't select first item if state information has selected items\n if (listItems.length && this.selectfirstitem && !(this._items.length && this.multiselect) && this._selectedItemsExist !== false) {\n const $firstItem: ListItemDirective = listItems.first;\n\n if (\n !$firstItem.disableItem &&\n this.isDataChanged &&\n // \"infinite scroll\" or \"load on demand\" is enabled and at least one item is selected then dont alter the selected list items.\n !(\n (this.infScroll || this.onDemandLoad) &&\n this._items.length\n )\n ) {\n this.clearSelectedItems();\n this.firstSelectedItem = this.lastSelectedItem = $firstItem;\n // selecting the first record\n this.selectItem(0);\n }\n } else {\n this.deselectListItems();\n selectedItems.forEach(selecteditem => {\n const listItem: ListItemDirective = this.getListItemByModel(selecteditem);\n if (listItem) {\n listItem.isActive = true;\n this.lastSelectedItem = listItem;\n // focus the active element\n listItem.nativeElement.focus();\n }\n });\n }\n\n if (this.fieldDefs.length && this.infScroll) {\n const smoothScrollEl = this.$element.closest('[wmsmoothscroll]');\n // if smoothscroll is set to false, then native scroll has to be applied\n // otherwise smoothscroll events will be binded.\n if (isMobileApp() && smoothScrollEl.length && smoothScrollEl.attr('wmsmoothscroll') === 'true') {\n this.paginationService.bindIScrollEvt(this, DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME);\n } else {\n // In case of mobile app when modal exists, and list items height is greater than the modal content provide ccontainer a scrollable height\n const modalBody = this.$element.closest('.modal-body');\n const listHt = this.$element.find('ul').height();\n const modalHt = window.innerHeight - 140;\n if (isMobile() && modalBody.length && listHt > modalHt) {\n this.$element.css('height', modalHt + 'px');\n }\n this.paginationService.bindScrollEvt(this, '> ul', DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME);\n }\n }\n\n this.isDataChanged = false;\n }\n\n private setupHandlers() {\n this.listItems.changes.subscribe(listItems => {\n this.onListRender(listItems);\n this.cdRef.detectChanges();\n });\n // handle click event in capturing phase.\n this.nativeElement.querySelector('ul.app-livelist-container').addEventListener('click', ($event) => {\n let target = $($event.target).closest('.app-list-item');\n // Recursively find the current list item\n while (target.get(0) && (target.closest('ul.app-livelist-container').get(0) !== $event.currentTarget)) {\n target = target.parent().closest('.app-list-item');\n }\n this.triggerListItemSelection(target, $event);\n }, true);\n }\n\n // Triggers on drag start while reordering.\n private onReorderStart(evt, ui) {\n ui.placeholder.height(ui.item.height());\n this.$ulEle.data('oldIndex', ui.item.index());\n }\n\n // Triggers during sorting\n private onSort(evt, ui) {\n // In case of infinite scroll, when the element doesn't have scroll enabled\n // on dragging the element to last item's position manually trigger loading of next items\n if (this.infScroll) {\n const lastItemOffset = this.$ulEle.find(`[listitemindex=${this.fieldDefs.length - 1}]`).offset();\n if (lastItemOffset && lastItemOffset.top < ui.offset.top) {\n this.paginationService.bindScrollEvt(this, '> ul', DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME);\n this.debouncedFetchNextDatasetOnScroll();\n }\n }\n }\n\n // Triggers after the sorting.\n private onUpdate(evt, ui, presentIndex?) {\n const data = this.fieldDefs;\n // If ui is not present then it is called from drag and drop using keyboard\n const newIndex = ui === undefined ? presentIndex : ui.item.index();\n const oldIndex = this.$ulEle.data('oldIndex');\n\n const minIndex = min([newIndex, oldIndex]);\n const maxIndex = max([newIndex, oldIndex]);\n\n const draggedItem = pullAt(data, oldIndex)[0];\n // Modify the data list only if we find a draggedItem\n if (draggedItem) {\n if (this.getConfiguredState() !== 'none') {\n this.statePersistence.removeWidgetState(this, 'selectedItem');\n }\n\n this.reorderProps.minIndex = min([minIndex, this.reorderProps.minIndex]);\n this.reorderProps.maxIndex = max([maxIndex, this.reorderProps.maxIndex]);\n\n data.splice(newIndex, 0, draggedItem);\n\n this.cdRef.markForCheck();\n this.cdRef.detectChanges();\n const $changedItem = {\n oldIndex: oldIndex,\n newIndex: newIndex,\n item: data[newIndex]\n };\n this.invokeEventCallback('reorder', {$event: evt, $data: data, $changedItem});\n this.$ulEle.removeData('oldIndex');\n }\n }\n\n // configures reordering the list items.\n private configureDnD() {\n let appendTo;\n const modalEl = $(document).find('.modal');\n if (this.getAttr('height')) { // when height is applied to the list, append should be the ul's parent as scroll is applied to the parent\n appendTo = 'parent';\n } else if (modalEl.length) { // In case of dialog, appendTo should be the modal ele\n appendTo = modalEl[modalEl.length - 1];\n } else { // As default append to should be body\n appendTo = 'body';\n }\n\n const options = isMobileApp() ? {} : {\n appendTo: appendTo,\n };\n\n const $el = $(this.nativeElement);\n this.$ulEle = $el.find('.app-livelist-container');\n\n configureDnD(this.$ulEle, options, this.onReorderStart.bind(this), this.onUpdate.bind(this), this.onSort.bind(this));\n\n this.$ulEle.droppable({'accept': '.app-list-item'});\n\n if (isMobileApp()) {\n this.$ulEle.sortable('disable');\n this.$ulEle.on('touchstart', function (event) {\n let self = this;\n if (!self.touching) {\n if (self.touched) {\n clearTimeout(self.touched);\n }\n setTimeout(() => {\n //Prevent context menu on mobile (IOS/ANDROID)\n if (event.cancelable) {\n event.preventDefault();\n }\n }, 50);\n self.touched = setTimeout(() => {\n $(event.currentTarget).addClass('no-selection');\n //Enable draggable\n $(event.currentTarget).sortable('enable');\n\n //Set internal flag\n self.touching = true;\n\n //trigger touchstart again to enable draggable through touch punch\n $(self).trigger(event);\n\n //Choose preferred duration for taphold\n }, 350);\n }\n }).on('touchend', function (event) {\n this.touching = false;\n $(event.currentTarget).removeClass('no-selection');\n\n //Disable draggable to enable default behaviour\n $(event.currentTarget).sortable('disable');\n\n clearTimeout(this.touched);\n }).on('touchmove', function () {\n clearTimeout(this.touched);\n });\n }\n\n }\n\n // returns true if the selection limit is reached.\n private checkSelectionLimit(count: number) {\n return (!this.selectionlimit || count < this.selectionlimit);\n }\n\n // returns listitem reference by index value.\n private getListItemByIndex(index: number): ListItemDirective {\n return this.listItems.toArray()[index];\n }\n\n /**\n * return index of an (listItemDirective) in the listItem\n * @param {ListItemDirective} item\n * @returns {number}\n */\n private getListItemIndex(item: ListItemDirective) {\n return this.listItems.toArray().indexOf(item);\n }\n\n /**\n * Returns ListItem Reference based on the input provided.\n * @param val: index | model of the list item.\n * @returns {ListItemDirective}\n */\n private getItemRefByIndexOrModel(val: any): ListItemDirective {\n let listItem: ListItemDirective;\n if (isNumber(val)) {\n listItem = this.getListItemByIndex(val);\n } else {\n listItem = this.getListItemByModel(val);\n }\n return listItem;\n }\n\n private beforePaginationChange($event, $index) {\n this.invokeEventCallback('paginationchange', {$event, $index});\n }\n\n trackByFn($index: number) {\n return $index; // Return a unique identifier for each item\n }\n\n // Invoke the datasource variable by default when pulltorefresh event is not specified.\n private subscribeToPullToRefresh() {\n this._listenerDestroyers.push(this.app.subscribe('pulltorefresh', () => {\n if (this.datasource && this.datasource.listRecords) {\n this.datasource.listRecords();\n }\n }));\n }\n\n private setUpCUDHandlers() {\n const $addItem = document.getElementsByClassName(\"add-list-item\")[0];\n if ($addItem) {\n // Triggered on click of add action\n $addItem.addEventListener('click', evt => {\n this.create();\n });\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { PaginationModule } from '@wm/components/data/pagination';\n\nimport { ListComponent } from './list.component';\nimport { ListItemDirective } from './list-item.directive';\n\nconst components = [\n ListComponent,\n ListItemDirective\n];\n\n@NgModule({\n imports: [\n CommonModule,\n PaginationModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class ListModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i2.ListComponent"],"mappings":";;;;;;;;;;;;;;;AAIO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,SAAS,EACT,IAAI,GAAG,CACH;QACI,CAAC,eAAe,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,GAAG,YAAY,EAAC,CAAC;QAClD,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,aAAa,EAAE,YAAY,CAAC;QAC7B,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,SAAS,EAAE,QAAQ,CAAC;QACrB,CAAC,YAAY,EAAE,QAAQ,CAAC;QACxB,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,UAAU,EAAE,GAAG,WAAW,EAAC,CAAC;QAClD,CAAC,gBAAgB,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EA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