@pepperi-addons/ngx-lib 0.5.0-ng15.2 → 0.5.0-ng16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (754) hide show
  1. package/address/address.component.d.ts +1 -1
  2. package/attachment/attachment.component.d.ts +1 -1
  3. package/bread-crumbs/bread-crumbs.component.d.ts +1 -1
  4. package/button/button.component.d.ts +1 -1
  5. package/carousel/carousel-item.directive.d.ts +1 -1
  6. package/carousel/carousel.component.d.ts +1 -1
  7. package/checkbox/checkbox.component.d.ts +1 -1
  8. package/chips/chips.component.d.ts +1 -1
  9. package/color/color.component.d.ts +1 -1
  10. package/core/clipboard/clipboard.directive.d.ts +1 -1
  11. package/core/common/directives/auto-width.directive.d.ts +1 -1
  12. package/core/common/directives/button-loader.directive.d.ts +1 -1
  13. package/core/common/directives/data-qa.directive.d.ts +1 -1
  14. package/core/common/directives/div-loader.directive.d.ts +1 -1
  15. package/core/common/directives/prevent-multi-click.directive.d.ts +1 -1
  16. package/core/common/directives/print.directive.d.ts +1 -1
  17. package/core/portal/attach.directive.d.ts +1 -1
  18. package/core/portal/target.directive.d.ts +1 -1
  19. package/date/date.component.d.ts +1 -1
  20. package/dialog/dialog.component.d.ts +1 -1
  21. package/draggable-items/draggable-item/draggable-item.component.d.ts +1 -1
  22. package/draggable-items/draggable-items.component.d.ts +1 -1
  23. package/esm2022/address/address.component.mjs +112 -0
  24. package/{esm2020 → esm2022}/address/address.module.mjs +23 -23
  25. package/{esm2020 → esm2022}/attachment/attachment.component.mjs +65 -61
  26. package/{esm2020 → esm2022}/attachment/attachment.module.mjs +21 -21
  27. package/esm2022/bread-crumbs/bread-crumbs.component.mjs +87 -0
  28. package/esm2022/bread-crumbs/bread-crumbs.model.mjs +10 -0
  29. package/esm2022/bread-crumbs/bread-crumbs.module.mjs +51 -0
  30. package/{esm2020 → esm2022}/button/button.component.mjs +76 -53
  31. package/esm2022/button/button.model.mjs +13 -0
  32. package/{esm2020 → esm2022}/button/button.module.mjs +19 -19
  33. package/esm2022/carousel/carousel-item.directive.mjs +34 -0
  34. package/esm2022/carousel/carousel.component.mjs +765 -0
  35. package/{esm2020 → esm2022}/carousel/carousel.module.mjs +5 -5
  36. package/esm2022/checkbox/checkbox.component.mjs +182 -0
  37. package/esm2022/checkbox/checkbox.module.mjs +64 -0
  38. package/esm2022/chips/chips.component.mjs +187 -0
  39. package/esm2022/chips/chips.module.mjs +82 -0
  40. package/{esm2020 → esm2022}/chips/chips.service.mjs +5 -5
  41. package/esm2022/color/color-picker.component.mjs +229 -0
  42. package/esm2022/color/color.component.mjs +93 -0
  43. package/esm2022/color/color.module.mjs +93 -0
  44. package/{esm2020 → esm2022}/core/clipboard/clipboard.directive.mjs +4 -4
  45. package/{esm2020 → esm2022}/core/clipboard/clipboard.service.mjs +4 -4
  46. package/esm2022/core/common/directives/auto-width.directive.mjs +79 -0
  47. package/esm2022/core/common/directives/base-destroyer.directive.mjs +23 -0
  48. package/esm2022/core/common/directives/button-blur.directive.mjs +25 -0
  49. package/esm2022/core/common/directives/button-loader.directive.mjs +117 -0
  50. package/esm2022/core/common/directives/data-qa.directive.mjs +26 -0
  51. package/esm2022/core/common/directives/div-loader.directive.mjs +67 -0
  52. package/esm2022/core/common/directives/menu-blur.directive.mjs +33 -0
  53. package/esm2022/core/common/directives/prevent-multi-click.directive.mjs +25 -0
  54. package/esm2022/core/common/directives/print.directive.mjs +176 -0
  55. package/esm2022/core/common/model/wapi.model.mjs +247 -0
  56. package/esm2022/core/common/pipes/common-pipes.mjs +180 -0
  57. package/esm2022/core/common/pipes/date-ago.pipe.mjs +47 -0
  58. package/esm2022/core/common/services/addon.service.mjs +234 -0
  59. package/esm2022/core/common/services/color.service.mjs +383 -0
  60. package/esm2022/core/common/services/cookie.service.mjs +156 -0
  61. package/esm2022/core/common/services/data-convertor.service.mjs +139 -0
  62. package/esm2022/core/common/services/file.service.mjs +252 -0
  63. package/{esm2020 → esm2022}/core/common/services/jwt-helper.service.mjs +4 -4
  64. package/esm2022/core/common/services/session.service.mjs +73 -0
  65. package/esm2022/core/common/services/translate.service.mjs +47 -0
  66. package/esm2022/core/common/services/utilities.service.mjs +302 -0
  67. package/esm2022/core/common/services/validator.service.mjs +273 -0
  68. package/esm2022/core/common/services/window-scrolling.service.mjs +38 -0
  69. package/esm2022/core/customization/customization.model.mjs +377 -0
  70. package/esm2022/core/customization/customization.service.mjs +802 -0
  71. package/{esm2020 → esm2022}/core/http/interceptors/error.interceptor.mjs +4 -4
  72. package/esm2022/core/http/interceptors/loader.interceptor.mjs +33 -0
  73. package/{esm2020 → esm2022}/core/http/interceptors/profiler.interceptor.mjs +4 -4
  74. package/esm2022/core/http/services/http.service.mjs +158 -0
  75. package/{esm2020 → esm2022}/core/http/services/loader.service.mjs +6 -6
  76. package/esm2022/core/layout/layout.service.mjs +171 -0
  77. package/esm2022/core/layout/rtl.directive.mjs +50 -0
  78. package/esm2022/core/portal/attach.directive.mjs +30 -0
  79. package/esm2022/core/portal/portal.service.mjs +37 -0
  80. package/esm2022/core/portal/target.directive.mjs +27 -0
  81. package/{esm2020 → esm2022}/core/scroll-to/scroll-to.service.mjs +4 -4
  82. package/esm2022/date/date.component.mjs +345 -0
  83. package/{esm2020 → esm2022}/date/date.model.mjs +7 -7
  84. package/esm2022/date/date.module.mjs +89 -0
  85. package/esm2022/dialog/default-dialog.component.mjs +39 -0
  86. package/esm2022/dialog/dialog.component.mjs +37 -0
  87. package/esm2022/dialog/dialog.model.mjs +41 -0
  88. package/esm2022/dialog/dialog.module.mjs +59 -0
  89. package/esm2022/dialog/dialog.service.mjs +106 -0
  90. package/esm2022/draggable-items/draggable-item/draggable-item.component.mjs +68 -0
  91. package/esm2022/draggable-items/draggable-items.component.mjs +95 -0
  92. package/esm2022/draggable-items/draggable-items.module.mjs +65 -0
  93. package/esm2022/field-title/field-title.component.mjs +46 -0
  94. package/esm2022/field-title/field-title.module.mjs +48 -0
  95. package/{esm2020 → esm2022}/files-uploader/files-uploader.component.mjs +36 -27
  96. package/esm2022/files-uploader/files-uploader.module.mjs +80 -0
  97. package/esm2022/form/field-generator.component.mjs +152 -0
  98. package/esm2022/form/form.component.mjs +1258 -0
  99. package/esm2022/form/form.module.mjs +180 -0
  100. package/esm2022/form/indicators.component.mjs +23 -0
  101. package/esm2022/form/internal-button.component.mjs +188 -0
  102. package/esm2022/form/internal-carusel.component.mjs +126 -0
  103. package/esm2022/form/internal-carusel.service.mjs +34 -0
  104. package/esm2022/form/internal-field-generator.component.mjs +146 -0
  105. package/esm2022/form/internal-form.component.mjs +1236 -0
  106. package/esm2022/form/internal-list.component.mjs +524 -0
  107. package/esm2022/form/internal-menu.component.mjs +62 -0
  108. package/esm2022/form/internal-page.component.mjs +380 -0
  109. package/esm2022/form/internal-page.service.mjs +125 -0
  110. package/esm2022/group-buttons/group-buttons.component.mjs +73 -0
  111. package/esm2022/group-buttons/group-buttons.module.mjs +60 -0
  112. package/esm2022/icon/icon-registry.service.mjs +24 -0
  113. package/esm2022/icon/icon.component.mjs +95 -0
  114. package/{esm2020 → esm2022}/icon/icon.module.mjs +5 -5
  115. package/esm2022/icon/icon.service.mjs +34 -0
  116. package/{esm2020 → esm2022}/image/image.component.mjs +45 -39
  117. package/esm2022/image/image.module.mjs +74 -0
  118. package/esm2022/image/image.service.mjs +53 -0
  119. package/esm2022/images-filmstrip/images-filmstrip.component.mjs +360 -0
  120. package/esm2022/images-filmstrip/images-filmstrip.module.mjs +84 -0
  121. package/esm2022/link/link.component.mjs +324 -0
  122. package/esm2022/link/link.module.mjs +81 -0
  123. package/{esm2020 → esm2022}/link/link.pipes.mjs +4 -4
  124. package/esm2022/list/list-actions.component.mjs +42 -0
  125. package/esm2022/list/list-carousel.component.mjs +110 -0
  126. package/esm2022/list/list-chooser.component.mjs +64 -0
  127. package/esm2022/list/list-pager.component.mjs +126 -0
  128. package/{esm2020 → esm2022}/list/list-sorting.component.mjs +15 -13
  129. package/esm2022/list/list-total.component.mjs +31 -0
  130. package/esm2022/list/list-views.component.mjs +86 -0
  131. package/esm2022/list/list.component.mjs +1394 -0
  132. package/{esm2020 → esm2022}/list/list.model.mjs +4 -1
  133. package/esm2022/list/list.module.mjs +145 -0
  134. package/esm2022/list/list.pipes.mjs +45 -0
  135. package/esm2022/list/virtual-scroller.mjs +1124 -0
  136. package/esm2022/menu/menu-item.component.mjs +111 -0
  137. package/esm2022/menu/menu.component.mjs +218 -0
  138. package/esm2022/menu/menu.model.mjs +23 -0
  139. package/esm2022/menu/menu.module.mjs +60 -0
  140. package/{esm2020 → esm2022}/ngx-lib.module.mjs +65 -65
  141. package/esm2022/page-layout/page-layout.component.mjs +41 -0
  142. package/{esm2020 → esm2022}/page-layout/page-layout.module.mjs +13 -13
  143. package/esm2022/profile-data-views-list/profile-data-view/profile-data-view.component.mjs +48 -0
  144. package/esm2022/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.mjs +82 -0
  145. package/esm2022/profile-data-views-list/profile-data-views-list.component.mjs +131 -0
  146. package/esm2022/profile-data-views-list/profile-data-views-list.module.mjs +89 -0
  147. package/esm2022/quantity-selector/quantity-selector-validation.directive.mjs +53 -0
  148. package/{esm2020 → esm2022}/quantity-selector/quantity-selector.component.mjs +83 -73
  149. package/esm2022/quantity-selector/quantity-selector.module.mjs +83 -0
  150. package/{esm2020 → esm2022}/quantity-selector/quantity-selector.pipes.mjs +4 -4
  151. package/esm2022/query-builder/common/model/type-map.mjs +28 -0
  152. package/esm2022/query-builder/common/services/output-query.service.mjs +118 -0
  153. package/esm2022/query-builder/common/services/query-structure.service.mjs +263 -0
  154. package/esm2022/query-builder/common/services/type-convertor.service.mjs +42 -0
  155. package/esm2022/query-builder/query-builder-item/query-builder-item.component.mjs +134 -0
  156. package/esm2022/query-builder/query-builder-section/query-builder-section.component.mjs +76 -0
  157. package/esm2022/query-builder/query-builder.component.mjs +116 -0
  158. package/esm2022/query-builder/query-builder.module.mjs +71 -0
  159. package/{esm2020 → esm2022}/query-builder/query-builder.service.mjs +4 -4
  160. package/esm2022/remote-loader/addon-block-loader.component.mjs +115 -0
  161. package/esm2022/remote-loader/addon-block-loader.service.mjs +66 -0
  162. package/esm2022/remote-loader/remote-loader-element.component.mjs +179 -0
  163. package/esm2022/remote-loader/remote-loader.component.mjs +120 -0
  164. package/{esm2020 → esm2022}/remote-loader/remote-loader.module.mjs +26 -26
  165. package/esm2022/remote-loader/remote-loader.service.mjs +107 -0
  166. package/{esm2020 → esm2022}/rich-html-textarea/rich-html-textarea.component.mjs +38 -30
  167. package/esm2022/rich-html-textarea/rich-html-textarea.module.mjs +96 -0
  168. package/esm2022/search/search.component.mjs +322 -0
  169. package/esm2022/search/search.module.mjs +71 -0
  170. package/esm2022/select/select.component.mjs +341 -0
  171. package/esm2022/select/select.module.mjs +71 -0
  172. package/esm2022/select-panel/select-panel.component.mjs +161 -0
  173. package/{esm2020 → esm2022}/select-panel/select-panel.module.mjs +31 -31
  174. package/esm2022/separator/separator.component.mjs +65 -0
  175. package/{esm2020 → esm2022}/separator/separator.module.mjs +5 -5
  176. package/esm2022/side-bar/side-bar.component.mjs +141 -0
  177. package/esm2022/side-bar/side-bar.module.mjs +56 -0
  178. package/esm2022/signature/signature-dialog.component.mjs +82 -0
  179. package/{esm2020 → esm2022}/signature/signature.component.mjs +41 -31
  180. package/esm2022/signature/signature.module.mjs +92 -0
  181. package/esm2022/size-detector/size-detector.component.mjs +97 -0
  182. package/esm2022/size-detector/size-detector.module.mjs +35 -0
  183. package/esm2022/skeleton-loader/skeleton-loader.component.mjs +46 -0
  184. package/{esm2020 → esm2022}/skeleton-loader/skeleton-loader.module.mjs +7 -7
  185. package/esm2022/slider/slider.component.mjs +105 -0
  186. package/{esm2020 → esm2022}/slider/slider.module.mjs +17 -17
  187. package/esm2022/smart-filters/boolean-filter/boolean-filter.component.mjs +74 -0
  188. package/esm2022/smart-filters/common/filter-actions.component.mjs +28 -0
  189. package/esm2022/smart-filters/common/model/base-filter-component.mjs +307 -0
  190. package/esm2022/smart-filters/common/model/field.mjs +125 -0
  191. package/esm2022/smart-filters/common/model/operator.mjs +287 -0
  192. package/esm2022/smart-filters/date-filter/date-filter.component.mjs +181 -0
  193. package/esm2022/smart-filters/multi-select-filter/multi-select-filter.component.mjs +202 -0
  194. package/esm2022/smart-filters/number-filter/number-filter.component.mjs +133 -0
  195. package/esm2022/smart-filters/smart-filters.component.mjs +143 -0
  196. package/esm2022/smart-filters/smart-filters.module.mjs +159 -0
  197. package/esm2022/smart-filters/text-filter/text-filter.component.mjs +110 -0
  198. package/esm2022/snack-bar/default-snack-bar.component.mjs +31 -0
  199. package/esm2022/snack-bar/snack-bar.component.mjs +28 -0
  200. package/esm2022/snack-bar/snack-bar.model.mjs +9 -0
  201. package/esm2022/snack-bar/snack-bar.module.mjs +63 -0
  202. package/esm2022/snack-bar/snack-bar.service.mjs +62 -0
  203. package/{esm2020 → esm2022}/textarea/textarea.component.mjs +35 -27
  204. package/esm2022/textarea/textarea.module.mjs +83 -0
  205. package/esm2022/textbox/textbox-validation.directive.mjs +96 -0
  206. package/esm2022/textbox/textbox.component.mjs +646 -0
  207. package/esm2022/textbox/textbox.module.mjs +73 -0
  208. package/esm2022/textbox-icon/textbox-icon.component.mjs +50 -0
  209. package/esm2022/textbox-icon/textbox-icon.module.mjs +65 -0
  210. package/esm2022/top-bar/top-bar.component.mjs +127 -0
  211. package/esm2022/top-bar/top-bar.module.mjs +63 -0
  212. package/fesm2022/pepperi-addons-ngx-lib-address.mjs +173 -0
  213. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-address.mjs.map +1 -1
  214. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-attachment.mjs +84 -80
  215. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-attachment.mjs.map +1 -1
  216. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-bread-crumbs.mjs +34 -28
  217. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-bread-crumbs.mjs.map +1 -1
  218. package/fesm2022/pepperi-addons-ngx-lib-button.mjs +227 -0
  219. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-button.mjs.map +1 -1
  220. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-carousel.mjs +76 -55
  221. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-carousel.mjs.map +1 -1
  222. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-checkbox.mjs +54 -48
  223. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-checkbox.mjs.map +1 -1
  224. package/fesm2022/pepperi-addons-ngx-lib-chips.mjs +308 -0
  225. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-chips.mjs.map +1 -1
  226. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-color.mjs +92 -84
  227. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-color.mjs.map +1 -1
  228. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-date.mjs +116 -104
  229. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-date.mjs.map +1 -1
  230. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-dialog.mjs +50 -36
  231. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-dialog.mjs.map +1 -1
  232. package/fesm2022/pepperi-addons-ngx-lib-draggable-items.mjs +229 -0
  233. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-draggable-items.mjs.map +1 -1
  234. package/fesm2022/pepperi-addons-ngx-lib-field-title.mjs +101 -0
  235. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-field-title.mjs.map +1 -1
  236. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-files-uploader.mjs +66 -56
  237. package/fesm2022/pepperi-addons-ngx-lib-files-uploader.mjs.map +1 -0
  238. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-form.mjs +391 -310
  239. package/{fesm2015 → fesm2022}/pepperi-addons-ngx-lib-form.mjs.map +1 -1
  240. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-group-buttons.mjs +38 -35
  241. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-group-buttons.mjs.map +1 -1
  242. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-icon.mjs +23 -18
  243. package/{fesm2015 → fesm2022}/pepperi-addons-ngx-lib-icon.mjs.map +1 -1
  244. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-image.mjs +77 -68
  245. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-image.mjs.map +1 -1
  246. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-images-filmstrip.mjs +83 -60
  247. package/fesm2022/pepperi-addons-ngx-lib-images-filmstrip.mjs.map +1 -0
  248. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-link.mjs +113 -103
  249. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-link.mjs.map +1 -1
  250. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-list.mjs +339 -273
  251. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-list.mjs.map +1 -1
  252. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-menu.mjs +89 -87
  253. package/{fesm2015 → fesm2022}/pepperi-addons-ngx-lib-menu.mjs.map +1 -1
  254. package/{fesm2015 → fesm2022}/pepperi-addons-ngx-lib-page-layout.mjs +23 -17
  255. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-page-layout.mjs.map +1 -1
  256. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-profile-data-views-list.mjs +72 -63
  257. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-profile-data-views-list.mjs.map +1 -1
  258. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-quantity-selector.mjs +125 -110
  259. package/{fesm2015 → fesm2022}/pepperi-addons-ngx-lib-quantity-selector.mjs.map +1 -1
  260. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-query-builder.mjs +95 -68
  261. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-query-builder.mjs.map +1 -1
  262. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-remote-loader.mjs +84 -64
  263. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-remote-loader.mjs.map +1 -1
  264. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-rich-html-textarea.mjs +76 -67
  265. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-rich-html-textarea.mjs.map +1 -1
  266. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-search.mjs +85 -79
  267. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-search.mjs.map +1 -1
  268. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-select-panel.mjs +53 -49
  269. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-select-panel.mjs.map +1 -1
  270. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-select.mjs +74 -66
  271. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-select.mjs.map +1 -1
  272. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-separator.mjs +18 -16
  273. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-separator.mjs.map +1 -1
  274. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-side-bar.mjs +44 -38
  275. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-side-bar.mjs.map +1 -1
  276. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-signature.mjs +95 -81
  277. package/fesm2022/pepperi-addons-ngx-lib-signature.mjs.map +1 -0
  278. package/fesm2022/pepperi-addons-ngx-lib-size-detector.mjs +139 -0
  279. package/fesm2022/pepperi-addons-ngx-lib-size-detector.mjs.map +1 -0
  280. package/fesm2022/pepperi-addons-ngx-lib-skeleton-loader.mjs +78 -0
  281. package/{fesm2015 → fesm2022}/pepperi-addons-ngx-lib-skeleton-loader.mjs.map +1 -1
  282. package/fesm2022/pepperi-addons-ngx-lib-slider.mjs +154 -0
  283. package/fesm2022/pepperi-addons-ngx-lib-slider.mjs.map +1 -0
  284. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-smart-filters.mjs +189 -161
  285. package/{fesm2015 → fesm2022}/pepperi-addons-ngx-lib-smart-filters.mjs.map +1 -1
  286. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-snack-bar.mjs +42 -34
  287. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-snack-bar.mjs.map +1 -1
  288. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-textarea.mjs +67 -58
  289. package/{fesm2015 → fesm2022}/pepperi-addons-ngx-lib-textarea.mjs.map +1 -1
  290. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-textbox-icon.mjs +28 -25
  291. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-textbox-icon.mjs.map +1 -1
  292. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-textbox.mjs +156 -144
  293. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-textbox.mjs.map +1 -1
  294. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-top-bar.mjs +48 -32
  295. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-top-bar.mjs.map +1 -1
  296. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib.mjs +661 -449
  297. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib.mjs.map +1 -1
  298. package/field-title/field-title.component.d.ts +1 -1
  299. package/files-uploader/files-uploader.component.d.ts +1 -1
  300. package/form/field-generator.component.d.ts +1 -1
  301. package/form/form.component.d.ts +1 -1
  302. package/form/form.module.d.ts +2 -2
  303. package/form/indicators.component.d.ts +1 -1
  304. package/form/internal-button.component.d.ts +1 -1
  305. package/form/internal-carusel.component.d.ts +1 -1
  306. package/form/internal-field-generator.component.d.ts +1 -1
  307. package/form/internal-form.component.d.ts +1 -1
  308. package/form/internal-list.component.d.ts +1 -1
  309. package/form/internal-menu.component.d.ts +1 -1
  310. package/form/internal-page.component.d.ts +1 -1
  311. package/group-buttons/group-buttons.component.d.ts +1 -1
  312. package/icon/icon.component.d.ts +1 -1
  313. package/image/image.component.d.ts +1 -1
  314. package/images-filmstrip/images-filmstrip.component.d.ts +1 -1
  315. package/link/link.component.d.ts +1 -1
  316. package/list/list-actions.component.d.ts +1 -1
  317. package/list/list-carousel.component.d.ts +1 -1
  318. package/list/list-chooser.component.d.ts +1 -1
  319. package/list/list-pager.component.d.ts +1 -1
  320. package/list/list-sorting.component.d.ts +1 -1
  321. package/list/list-total.component.d.ts +1 -1
  322. package/list/list-views.component.d.ts +1 -1
  323. package/list/list.component.d.ts +1 -1
  324. package/list/virtual-scroller.d.ts +1 -1
  325. package/menu/menu-item.component.d.ts +1 -1
  326. package/menu/menu.component.d.ts +1 -1
  327. package/package.json +145 -235
  328. package/page-layout/page-layout.component.d.ts +1 -1
  329. package/profile-data-views-list/profile-data-view/profile-data-view.component.d.ts +1 -1
  330. package/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.d.ts +1 -1
  331. package/profile-data-views-list/profile-data-views-list.component.d.ts +1 -1
  332. package/quantity-selector/quantity-selector-validation.directive.d.ts +1 -1
  333. package/quantity-selector/quantity-selector.component.d.ts +1 -1
  334. package/query-builder/query-builder-item/query-builder-item.component.d.ts +1 -1
  335. package/query-builder/query-builder-section/query-builder-section.component.d.ts +1 -1
  336. package/query-builder/query-builder.component.d.ts +1 -1
  337. package/query-builder/query-builder.module.d.ts +1 -1
  338. package/remote-loader/addon-block-loader.component.d.ts +1 -1
  339. package/remote-loader/remote-loader-element.component.d.ts +1 -1
  340. package/remote-loader/remote-loader.component.d.ts +1 -1
  341. package/rich-html-textarea/rich-html-textarea.component.d.ts +1 -1
  342. package/search/search.component.d.ts +1 -1
  343. package/select/select.component.d.ts +1 -1
  344. package/select-panel/select-panel.component.d.ts +1 -1
  345. package/separator/separator.component.d.ts +1 -1
  346. package/side-bar/side-bar.component.d.ts +1 -1
  347. package/signature/signature-dialog.component.d.ts +2 -2
  348. package/signature/signature.component.d.ts +1 -1
  349. package/signature/signature.module.d.ts +2 -2
  350. package/size-detector/size-detector.component.d.ts +1 -1
  351. package/size-detector/size-detector.module.d.ts +1 -1
  352. package/skeleton-loader/skeleton-loader.component.d.ts +1 -1
  353. package/slider/slider.component.d.ts +1 -1
  354. package/slider/slider.component.theme.scss +13 -6
  355. package/smart-filters/boolean-filter/boolean-filter.component.d.ts +1 -1
  356. package/smart-filters/common/filter-actions.component.d.ts +1 -1
  357. package/smart-filters/common/model/base-filter-component.d.ts +1 -1
  358. package/smart-filters/smart-filters.component.d.ts +1 -1
  359. package/smart-filters/smart-filters.module.d.ts +1 -1
  360. package/snack-bar/snack-bar.component.d.ts +1 -1
  361. package/textarea/textarea.component.d.ts +1 -1
  362. package/textbox/textbox-validation.directive.d.ts +1 -1
  363. package/textbox/textbox.component.d.ts +1 -1
  364. package/textbox-icon/textbox-icon.component.d.ts +1 -1
  365. package/top-bar/top-bar.component.d.ts +1 -1
  366. package/esm2020/address/address.component.mjs +0 -109
  367. package/esm2020/bread-crumbs/bread-crumbs.component.mjs +0 -85
  368. package/esm2020/bread-crumbs/bread-crumbs.model.mjs +0 -7
  369. package/esm2020/bread-crumbs/bread-crumbs.module.mjs +0 -50
  370. package/esm2020/button/button.model.mjs +0 -6
  371. package/esm2020/carousel/carousel-item.directive.mjs +0 -33
  372. package/esm2020/carousel/carousel.component.mjs +0 -745
  373. package/esm2020/checkbox/checkbox.component.mjs +0 -177
  374. package/esm2020/checkbox/checkbox.module.mjs +0 -63
  375. package/esm2020/chips/chips.component.mjs +0 -185
  376. package/esm2020/chips/chips.module.mjs +0 -81
  377. package/esm2020/color/color-picker.component.mjs +0 -224
  378. package/esm2020/color/color.component.mjs +0 -90
  379. package/esm2020/color/color.module.mjs +0 -93
  380. package/esm2020/core/common/directives/auto-width.directive.mjs +0 -77
  381. package/esm2020/core/common/directives/base-destroyer.directive.mjs +0 -22
  382. package/esm2020/core/common/directives/button-blur.directive.mjs +0 -24
  383. package/esm2020/core/common/directives/button-loader.directive.mjs +0 -112
  384. package/esm2020/core/common/directives/data-qa.directive.mjs +0 -23
  385. package/esm2020/core/common/directives/div-loader.directive.mjs +0 -61
  386. package/esm2020/core/common/directives/menu-blur.directive.mjs +0 -32
  387. package/esm2020/core/common/directives/prevent-multi-click.directive.mjs +0 -27
  388. package/esm2020/core/common/directives/print.directive.mjs +0 -170
  389. package/esm2020/core/common/model/wapi.model.mjs +0 -157
  390. package/esm2020/core/common/pipes/common-pipes.mjs +0 -177
  391. package/esm2020/core/common/pipes/date-ago.pipe.mjs +0 -46
  392. package/esm2020/core/common/services/addon.service.mjs +0 -227
  393. package/esm2020/core/common/services/color.service.mjs +0 -385
  394. package/esm2020/core/common/services/cookie.service.mjs +0 -153
  395. package/esm2020/core/common/services/data-convertor.service.mjs +0 -122
  396. package/esm2020/core/common/services/file.service.mjs +0 -250
  397. package/esm2020/core/common/services/session.service.mjs +0 -72
  398. package/esm2020/core/common/services/translate.service.mjs +0 -46
  399. package/esm2020/core/common/services/utilities.service.mjs +0 -301
  400. package/esm2020/core/common/services/validator.service.mjs +0 -272
  401. package/esm2020/core/common/services/window-scrolling.service.mjs +0 -36
  402. package/esm2020/core/customization/customization.model.mjs +0 -338
  403. package/esm2020/core/customization/customization.service.mjs +0 -799
  404. package/esm2020/core/http/interceptors/loader.interceptor.mjs +0 -32
  405. package/esm2020/core/http/services/http.service.mjs +0 -155
  406. package/esm2020/core/layout/layout.service.mjs +0 -168
  407. package/esm2020/core/layout/rtl.directive.mjs +0 -44
  408. package/esm2020/core/portal/attach.directive.mjs +0 -27
  409. package/esm2020/core/portal/portal.service.mjs +0 -36
  410. package/esm2020/core/portal/target.directive.mjs +0 -24
  411. package/esm2020/date/date.component.mjs +0 -334
  412. package/esm2020/date/date.module.mjs +0 -88
  413. package/esm2020/dialog/default-dialog.component.mjs +0 -37
  414. package/esm2020/dialog/dialog.component.mjs +0 -36
  415. package/esm2020/dialog/dialog.model.mjs +0 -33
  416. package/esm2020/dialog/dialog.module.mjs +0 -59
  417. package/esm2020/dialog/dialog.service.mjs +0 -103
  418. package/esm2020/draggable-items/draggable-item/draggable-item.component.mjs +0 -67
  419. package/esm2020/draggable-items/draggable-items.component.mjs +0 -94
  420. package/esm2020/draggable-items/draggable-items.module.mjs +0 -64
  421. package/esm2020/field-title/field-title.component.mjs +0 -48
  422. package/esm2020/field-title/field-title.module.mjs +0 -47
  423. package/esm2020/files-uploader/files-uploader.module.mjs +0 -79
  424. package/esm2020/form/field-generator.component.mjs +0 -152
  425. package/esm2020/form/form.component.mjs +0 -1240
  426. package/esm2020/form/form.module.mjs +0 -179
  427. package/esm2020/form/indicators.component.mjs +0 -23
  428. package/esm2020/form/internal-button.component.mjs +0 -184
  429. package/esm2020/form/internal-carusel.component.mjs +0 -121
  430. package/esm2020/form/internal-carusel.service.mjs +0 -32
  431. package/esm2020/form/internal-field-generator.component.mjs +0 -146
  432. package/esm2020/form/internal-form.component.mjs +0 -1218
  433. package/esm2020/form/internal-list.component.mjs +0 -513
  434. package/esm2020/form/internal-menu.component.mjs +0 -64
  435. package/esm2020/form/internal-page.component.mjs +0 -361
  436. package/esm2020/form/internal-page.service.mjs +0 -120
  437. package/esm2020/group-buttons/group-buttons.component.mjs +0 -71
  438. package/esm2020/group-buttons/group-buttons.module.mjs +0 -59
  439. package/esm2020/icon/icon-registry.service.mjs +0 -26
  440. package/esm2020/icon/icon.component.mjs +0 -91
  441. package/esm2020/icon/icon.service.mjs +0 -31
  442. package/esm2020/image/image.module.mjs +0 -74
  443. package/esm2020/image/image.service.mjs +0 -50
  444. package/esm2020/images-filmstrip/images-filmstrip.component.mjs +0 -338
  445. package/esm2020/images-filmstrip/images-filmstrip.module.mjs +0 -83
  446. package/esm2020/link/link.component.mjs +0 -315
  447. package/esm2020/link/link.module.mjs +0 -80
  448. package/esm2020/list/list-actions.component.mjs +0 -44
  449. package/esm2020/list/list-carousel.component.mjs +0 -107
  450. package/esm2020/list/list-chooser.component.mjs +0 -64
  451. package/esm2020/list/list-pager.component.mjs +0 -120
  452. package/esm2020/list/list-total.component.mjs +0 -33
  453. package/esm2020/list/list-views.component.mjs +0 -85
  454. package/esm2020/list/list.component.mjs +0 -1382
  455. package/esm2020/list/list.module.mjs +0 -144
  456. package/esm2020/list/list.pipes.mjs +0 -47
  457. package/esm2020/list/virtual-scroller.mjs +0 -1080
  458. package/esm2020/menu/menu-item.component.mjs +0 -115
  459. package/esm2020/menu/menu.component.mjs +0 -216
  460. package/esm2020/menu/menu.model.mjs +0 -20
  461. package/esm2020/menu/menu.module.mjs +0 -59
  462. package/esm2020/page-layout/page-layout.component.mjs +0 -35
  463. package/esm2020/profile-data-views-list/profile-data-view/profile-data-view.component.mjs +0 -45
  464. package/esm2020/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.mjs +0 -81
  465. package/esm2020/profile-data-views-list/profile-data-views-list.component.mjs +0 -127
  466. package/esm2020/profile-data-views-list/profile-data-views-list.module.mjs +0 -88
  467. package/esm2020/quantity-selector/quantity-selector-validation.directive.mjs +0 -49
  468. package/esm2020/quantity-selector/quantity-selector.module.mjs +0 -82
  469. package/esm2020/query-builder/common/model/type-map.mjs +0 -27
  470. package/esm2020/query-builder/common/services/output-query.service.mjs +0 -116
  471. package/esm2020/query-builder/common/services/query-structure.service.mjs +0 -258
  472. package/esm2020/query-builder/common/services/type-convertor.service.mjs +0 -42
  473. package/esm2020/query-builder/query-builder-item/query-builder-item.component.mjs +0 -127
  474. package/esm2020/query-builder/query-builder-section/query-builder-section.component.mjs +0 -71
  475. package/esm2020/query-builder/query-builder.component.mjs +0 -110
  476. package/esm2020/query-builder/query-builder.module.mjs +0 -70
  477. package/esm2020/remote-loader/addon-block-loader.component.mjs +0 -112
  478. package/esm2020/remote-loader/addon-block-loader.service.mjs +0 -65
  479. package/esm2020/remote-loader/remote-loader-element.component.mjs +0 -171
  480. package/esm2020/remote-loader/remote-loader.component.mjs +0 -115
  481. package/esm2020/remote-loader/remote-loader.service.mjs +0 -104
  482. package/esm2020/rich-html-textarea/rich-html-textarea.module.mjs +0 -95
  483. package/esm2020/search/search.component.mjs +0 -317
  484. package/esm2020/search/search.module.mjs +0 -70
  485. package/esm2020/select/select.component.mjs +0 -334
  486. package/esm2020/select/select.module.mjs +0 -70
  487. package/esm2020/select-panel/select-panel.component.mjs +0 -157
  488. package/esm2020/separator/separator.component.mjs +0 -63
  489. package/esm2020/side-bar/side-bar.component.mjs +0 -136
  490. package/esm2020/side-bar/side-bar.module.mjs +0 -55
  491. package/esm2020/signature/signature-dialog.component.mjs +0 -79
  492. package/esm2020/signature/signature.module.mjs +0 -91
  493. package/esm2020/size-detector/size-detector.component.mjs +0 -94
  494. package/esm2020/size-detector/size-detector.module.mjs +0 -35
  495. package/esm2020/skeleton-loader/skeleton-loader.component.mjs +0 -44
  496. package/esm2020/slider/slider.component.mjs +0 -101
  497. package/esm2020/smart-filters/boolean-filter/boolean-filter.component.mjs +0 -75
  498. package/esm2020/smart-filters/common/filter-actions.component.mjs +0 -29
  499. package/esm2020/smart-filters/common/model/base-filter-component.mjs +0 -290
  500. package/esm2020/smart-filters/common/model/field.mjs +0 -117
  501. package/esm2020/smart-filters/common/model/operator.mjs +0 -280
  502. package/esm2020/smart-filters/date-filter/date-filter.component.mjs +0 -182
  503. package/esm2020/smart-filters/multi-select-filter/multi-select-filter.component.mjs +0 -200
  504. package/esm2020/smart-filters/number-filter/number-filter.component.mjs +0 -136
  505. package/esm2020/smart-filters/smart-filters.component.mjs +0 -141
  506. package/esm2020/smart-filters/smart-filters.module.mjs +0 -158
  507. package/esm2020/smart-filters/text-filter/text-filter.component.mjs +0 -113
  508. package/esm2020/snack-bar/default-snack-bar.component.mjs +0 -29
  509. package/esm2020/snack-bar/snack-bar.component.mjs +0 -26
  510. package/esm2020/snack-bar/snack-bar.model.mjs +0 -7
  511. package/esm2020/snack-bar/snack-bar.module.mjs +0 -63
  512. package/esm2020/snack-bar/snack-bar.service.mjs +0 -60
  513. package/esm2020/textarea/textarea.module.mjs +0 -82
  514. package/esm2020/textbox/textbox-validation.directive.mjs +0 -93
  515. package/esm2020/textbox/textbox.component.mjs +0 -638
  516. package/esm2020/textbox/textbox.module.mjs +0 -72
  517. package/esm2020/textbox-icon/textbox-icon.component.mjs +0 -48
  518. package/esm2020/textbox-icon/textbox-icon.module.mjs +0 -64
  519. package/esm2020/top-bar/top-bar.component.mjs +0 -112
  520. package/esm2020/top-bar/top-bar.module.mjs +0 -62
  521. package/fesm2015/pepperi-addons-ngx-lib-address.mjs +0 -170
  522. package/fesm2015/pepperi-addons-ngx-lib-address.mjs.map +0 -1
  523. package/fesm2015/pepperi-addons-ngx-lib-attachment.mjs +0 -306
  524. package/fesm2015/pepperi-addons-ngx-lib-attachment.mjs.map +0 -1
  525. package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.mjs +0 -147
  526. package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.mjs.map +0 -1
  527. package/fesm2015/pepperi-addons-ngx-lib-button.mjs +0 -197
  528. package/fesm2015/pepperi-addons-ngx-lib-button.mjs.map +0 -1
  529. package/fesm2015/pepperi-addons-ngx-lib-carousel.mjs +0 -804
  530. package/fesm2015/pepperi-addons-ngx-lib-carousel.mjs.map +0 -1
  531. package/fesm2015/pepperi-addons-ngx-lib-checkbox.mjs +0 -246
  532. package/fesm2015/pepperi-addons-ngx-lib-checkbox.mjs.map +0 -1
  533. package/fesm2015/pepperi-addons-ngx-lib-chips.mjs +0 -306
  534. package/fesm2015/pepperi-addons-ngx-lib-chips.mjs.map +0 -1
  535. package/fesm2015/pepperi-addons-ngx-lib-color.mjs +0 -404
  536. package/fesm2015/pepperi-addons-ngx-lib-color.mjs.map +0 -1
  537. package/fesm2015/pepperi-addons-ngx-lib-date.mjs +0 -481
  538. package/fesm2015/pepperi-addons-ngx-lib-date.mjs.map +0 -1
  539. package/fesm2015/pepperi-addons-ngx-lib-dialog.mjs +0 -263
  540. package/fesm2015/pepperi-addons-ngx-lib-dialog.mjs.map +0 -1
  541. package/fesm2015/pepperi-addons-ngx-lib-draggable-items.mjs +0 -227
  542. package/fesm2015/pepperi-addons-ngx-lib-draggable-items.mjs.map +0 -1
  543. package/fesm2015/pepperi-addons-ngx-lib-field-title.mjs +0 -102
  544. package/fesm2015/pepperi-addons-ngx-lib-field-title.mjs.map +0 -1
  545. package/fesm2015/pepperi-addons-ngx-lib-files-uploader.mjs +0 -331
  546. package/fesm2015/pepperi-addons-ngx-lib-files-uploader.mjs.map +0 -1
  547. package/fesm2015/pepperi-addons-ngx-lib-form.mjs +0 -4232
  548. package/fesm2015/pepperi-addons-ngx-lib-group-buttons.mjs +0 -136
  549. package/fesm2015/pepperi-addons-ngx-lib-group-buttons.mjs.map +0 -1
  550. package/fesm2015/pepperi-addons-ngx-lib-icon.mjs +0 -741
  551. package/fesm2015/pepperi-addons-ngx-lib-image.mjs +0 -397
  552. package/fesm2015/pepperi-addons-ngx-lib-image.mjs.map +0 -1
  553. package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.mjs +0 -426
  554. package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.mjs.map +0 -1
  555. package/fesm2015/pepperi-addons-ngx-lib-link.mjs +0 -414
  556. package/fesm2015/pepperi-addons-ngx-lib-link.mjs.map +0 -1
  557. package/fesm2015/pepperi-addons-ngx-lib-list.mjs +0 -3131
  558. package/fesm2015/pepperi-addons-ngx-lib-list.mjs.map +0 -1
  559. package/fesm2015/pepperi-addons-ngx-lib-menu.mjs +0 -403
  560. package/fesm2015/pepperi-addons-ngx-lib-page-layout.mjs.map +0 -1
  561. package/fesm2015/pepperi-addons-ngx-lib-profile-data-views-list.mjs +0 -337
  562. package/fesm2015/pepperi-addons-ngx-lib-profile-data-views-list.mjs.map +0 -1
  563. package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.mjs +0 -741
  564. package/fesm2015/pepperi-addons-ngx-lib-query-builder.mjs +0 -1226
  565. package/fesm2015/pepperi-addons-ngx-lib-query-builder.mjs.map +0 -1
  566. package/fesm2015/pepperi-addons-ngx-lib-remote-loader.mjs +0 -644
  567. package/fesm2015/pepperi-addons-ngx-lib-remote-loader.mjs.map +0 -1
  568. package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.mjs +0 -363
  569. package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.mjs.map +0 -1
  570. package/fesm2015/pepperi-addons-ngx-lib-search.mjs +0 -393
  571. package/fesm2015/pepperi-addons-ngx-lib-search.mjs.map +0 -1
  572. package/fesm2015/pepperi-addons-ngx-lib-select-panel.mjs +0 -235
  573. package/fesm2015/pepperi-addons-ngx-lib-select-panel.mjs.map +0 -1
  574. package/fesm2015/pepperi-addons-ngx-lib-select.mjs +0 -410
  575. package/fesm2015/pepperi-addons-ngx-lib-select.mjs.map +0 -1
  576. package/fesm2015/pepperi-addons-ngx-lib-separator.mjs +0 -89
  577. package/fesm2015/pepperi-addons-ngx-lib-separator.mjs.map +0 -1
  578. package/fesm2015/pepperi-addons-ngx-lib-side-bar.mjs +0 -196
  579. package/fesm2015/pepperi-addons-ngx-lib-side-bar.mjs.map +0 -1
  580. package/fesm2015/pepperi-addons-ngx-lib-signature.mjs +0 -464
  581. package/fesm2015/pepperi-addons-ngx-lib-signature.mjs.map +0 -1
  582. package/fesm2015/pepperi-addons-ngx-lib-size-detector.mjs +0 -136
  583. package/fesm2015/pepperi-addons-ngx-lib-size-detector.mjs.map +0 -1
  584. package/fesm2015/pepperi-addons-ngx-lib-skeleton-loader.mjs +0 -78
  585. package/fesm2015/pepperi-addons-ngx-lib-slider.mjs +0 -151
  586. package/fesm2015/pepperi-addons-ngx-lib-slider.mjs.map +0 -1
  587. package/fesm2015/pepperi-addons-ngx-lib-smart-filters.mjs +0 -1731
  588. package/fesm2015/pepperi-addons-ngx-lib-snack-bar.mjs +0 -183
  589. package/fesm2015/pepperi-addons-ngx-lib-snack-bar.mjs.map +0 -1
  590. package/fesm2015/pepperi-addons-ngx-lib-textarea.mjs +0 -286
  591. package/fesm2015/pepperi-addons-ngx-lib-textbox-icon.mjs +0 -118
  592. package/fesm2015/pepperi-addons-ngx-lib-textbox-icon.mjs.map +0 -1
  593. package/fesm2015/pepperi-addons-ngx-lib-textbox.mjs +0 -806
  594. package/fesm2015/pepperi-addons-ngx-lib-textbox.mjs.map +0 -1
  595. package/fesm2015/pepperi-addons-ngx-lib-top-bar.mjs +0 -180
  596. package/fesm2015/pepperi-addons-ngx-lib-top-bar.mjs.map +0 -1
  597. package/fesm2015/pepperi-addons-ngx-lib.mjs +0 -4995
  598. package/fesm2015/pepperi-addons-ngx-lib.mjs.map +0 -1
  599. package/fesm2020/pepperi-addons-ngx-lib-address.mjs +0 -170
  600. package/fesm2020/pepperi-addons-ngx-lib-button.mjs +0 -197
  601. package/fesm2020/pepperi-addons-ngx-lib-chips.mjs +0 -305
  602. package/fesm2020/pepperi-addons-ngx-lib-draggable-items.mjs +0 -226
  603. package/fesm2020/pepperi-addons-ngx-lib-field-title.mjs +0 -102
  604. package/fesm2020/pepperi-addons-ngx-lib-files-uploader.mjs.map +0 -1
  605. package/fesm2020/pepperi-addons-ngx-lib-form.mjs.map +0 -1
  606. package/fesm2020/pepperi-addons-ngx-lib-icon.mjs.map +0 -1
  607. package/fesm2020/pepperi-addons-ngx-lib-images-filmstrip.mjs.map +0 -1
  608. package/fesm2020/pepperi-addons-ngx-lib-menu.mjs.map +0 -1
  609. package/fesm2020/pepperi-addons-ngx-lib-page-layout.mjs +0 -77
  610. package/fesm2020/pepperi-addons-ngx-lib-quantity-selector.mjs.map +0 -1
  611. package/fesm2020/pepperi-addons-ngx-lib-signature.mjs.map +0 -1
  612. package/fesm2020/pepperi-addons-ngx-lib-size-detector.mjs +0 -136
  613. package/fesm2020/pepperi-addons-ngx-lib-size-detector.mjs.map +0 -1
  614. package/fesm2020/pepperi-addons-ngx-lib-skeleton-loader.mjs +0 -76
  615. package/fesm2020/pepperi-addons-ngx-lib-skeleton-loader.mjs.map +0 -1
  616. package/fesm2020/pepperi-addons-ngx-lib-slider.mjs +0 -150
  617. package/fesm2020/pepperi-addons-ngx-lib-slider.mjs.map +0 -1
  618. package/fesm2020/pepperi-addons-ngx-lib-smart-filters.mjs.map +0 -1
  619. package/fesm2020/pepperi-addons-ngx-lib-textarea.mjs.map +0 -1
  620. /package/{esm2020 → esm2022}/address/pepperi-addons-ngx-lib-address.mjs +0 -0
  621. /package/{esm2020 → esm2022}/address/public-api.mjs +0 -0
  622. /package/{esm2020 → esm2022}/attachment/pepperi-addons-ngx-lib-attachment.mjs +0 -0
  623. /package/{esm2020 → esm2022}/attachment/public-api.mjs +0 -0
  624. /package/{esm2020 → esm2022}/bread-crumbs/pepperi-addons-ngx-lib-bread-crumbs.mjs +0 -0
  625. /package/{esm2020 → esm2022}/bread-crumbs/public-api.mjs +0 -0
  626. /package/{esm2020 → esm2022}/button/pepperi-addons-ngx-lib-button.mjs +0 -0
  627. /package/{esm2020 → esm2022}/button/public-api.mjs +0 -0
  628. /package/{esm2020 → esm2022}/carousel/pepperi-addons-ngx-lib-carousel.mjs +0 -0
  629. /package/{esm2020 → esm2022}/carousel/public-api.mjs +0 -0
  630. /package/{esm2020 → esm2022}/checkbox/pepperi-addons-ngx-lib-checkbox.mjs +0 -0
  631. /package/{esm2020 → esm2022}/checkbox/public-api.mjs +0 -0
  632. /package/{esm2020 → esm2022}/chips/chips.model.mjs +0 -0
  633. /package/{esm2020 → esm2022}/chips/pepperi-addons-ngx-lib-chips.mjs +0 -0
  634. /package/{esm2020 → esm2022}/chips/public-api.mjs +0 -0
  635. /package/{esm2020 → esm2022}/color/color.model.mjs +0 -0
  636. /package/{esm2020 → esm2022}/color/pepperi-addons-ngx-lib-color.mjs +0 -0
  637. /package/{esm2020 → esm2022}/color/public-api.mjs +0 -0
  638. /package/{esm2020 → esm2022}/core/clipboard/index.mjs +0 -0
  639. /package/{esm2020 → esm2022}/core/clipboard/public-api.mjs +0 -0
  640. /package/{esm2020 → esm2022}/core/common/directives/index.mjs +0 -0
  641. /package/{esm2020 → esm2022}/core/common/directives/public-api.mjs +0 -0
  642. /package/{esm2020 → esm2022}/core/common/index.mjs +0 -0
  643. /package/{esm2020 → esm2022}/core/common/model/index.mjs +0 -0
  644. /package/{esm2020 → esm2022}/core/common/model/papi.model.mjs +0 -0
  645. /package/{esm2020 → esm2022}/core/common/model/public-api.mjs +0 -0
  646. /package/{esm2020 → esm2022}/core/common/model/utilities.model.mjs +0 -0
  647. /package/{esm2020 → esm2022}/core/common/pipes/index.mjs +0 -0
  648. /package/{esm2020 → esm2022}/core/common/pipes/public-api.mjs +0 -0
  649. /package/{esm2020 → esm2022}/core/common/public-api.mjs +0 -0
  650. /package/{esm2020 → esm2022}/core/common/services/index.mjs +0 -0
  651. /package/{esm2020 → esm2022}/core/common/services/public-api.mjs +0 -0
  652. /package/{esm2020 → esm2022}/core/customization/index.mjs +0 -0
  653. /package/{esm2020 → esm2022}/core/customization/public-api.mjs +0 -0
  654. /package/{esm2020 → esm2022}/core/http/index.mjs +0 -0
  655. /package/{esm2020 → esm2022}/core/http/interceptors/index.mjs +0 -0
  656. /package/{esm2020 → esm2022}/core/http/public-api.mjs +0 -0
  657. /package/{esm2020 → esm2022}/core/index.mjs +0 -0
  658. /package/{esm2020 → esm2022}/core/layout/index.mjs +0 -0
  659. /package/{esm2020 → esm2022}/core/layout/public-api.mjs +0 -0
  660. /package/{esm2020 → esm2022}/core/portal/index.mjs +0 -0
  661. /package/{esm2020 → esm2022}/core/portal/public-api.mjs +0 -0
  662. /package/{esm2020 → esm2022}/core/public-api.mjs +0 -0
  663. /package/{esm2020 → esm2022}/core/scroll-to/index.mjs +0 -0
  664. /package/{esm2020 → esm2022}/core/scroll-to/public-api.mjs +0 -0
  665. /package/{esm2020 → esm2022}/date/pepperi-addons-ngx-lib-date.mjs +0 -0
  666. /package/{esm2020 → esm2022}/date/public-api.mjs +0 -0
  667. /package/{esm2020 → esm2022}/dialog/pepperi-addons-ngx-lib-dialog.mjs +0 -0
  668. /package/{esm2020 → esm2022}/dialog/public-api.mjs +0 -0
  669. /package/{esm2020 → esm2022}/draggable-items/draggable-items.model.mjs +0 -0
  670. /package/{esm2020 → esm2022}/draggable-items/pepperi-addons-ngx-lib-draggable-items.mjs +0 -0
  671. /package/{esm2020 → esm2022}/draggable-items/public-api.mjs +0 -0
  672. /package/{esm2020 → esm2022}/field-title/pepperi-addons-ngx-lib-field-title.mjs +0 -0
  673. /package/{esm2020 → esm2022}/field-title/public-api.mjs +0 -0
  674. /package/{esm2020 → esm2022}/files-uploader/pepperi-addons-ngx-lib-files-uploader.mjs +0 -0
  675. /package/{esm2020 → esm2022}/files-uploader/public-api.mjs +0 -0
  676. /package/{esm2020 → esm2022}/form/form.model.mjs +0 -0
  677. /package/{esm2020 → esm2022}/form/pepperi-addons-ngx-lib-form.mjs +0 -0
  678. /package/{esm2020 → esm2022}/form/public-api.mjs +0 -0
  679. /package/{esm2020 → esm2022}/group-buttons/pepperi-addons-ngx-lib-group-buttons.mjs +0 -0
  680. /package/{esm2020 → esm2022}/group-buttons/public-api.mjs +0 -0
  681. /package/{esm2020 → esm2022}/icon/icon-generated-all.model.mjs +0 -0
  682. /package/{esm2020 → esm2022}/icon/icon-generated.model.mjs +0 -0
  683. /package/{esm2020 → esm2022}/icon/pepperi-addons-ngx-lib-icon.mjs +0 -0
  684. /package/{esm2020 → esm2022}/icon/public-api.mjs +0 -0
  685. /package/{esm2020 → esm2022}/image/pepperi-addons-ngx-lib-image.mjs +0 -0
  686. /package/{esm2020 → esm2022}/image/public-api.mjs +0 -0
  687. /package/{esm2020 → esm2022}/images-filmstrip/pepperi-addons-ngx-lib-images-filmstrip.mjs +0 -0
  688. /package/{esm2020 → esm2022}/images-filmstrip/public-api.mjs +0 -0
  689. /package/{esm2020 → esm2022}/link/pepperi-addons-ngx-lib-link.mjs +0 -0
  690. /package/{esm2020 → esm2022}/link/public-api.mjs +0 -0
  691. /package/{esm2020 → esm2022}/list/pepperi-addons-ngx-lib-list.mjs +0 -0
  692. /package/{esm2020 → esm2022}/list/public-api.mjs +0 -0
  693. /package/{esm2020 → esm2022}/menu/pepperi-addons-ngx-lib-menu.mjs +0 -0
  694. /package/{esm2020 → esm2022}/menu/public-api.mjs +0 -0
  695. /package/{esm2020 → esm2022}/page-layout/pepperi-addons-ngx-lib-page-layout.mjs +0 -0
  696. /package/{esm2020 → esm2022}/page-layout/public-api.mjs +0 -0
  697. /package/{esm2020 → esm2022}/pepperi-addons-ngx-lib.mjs +0 -0
  698. /package/{esm2020 → esm2022}/profile-data-views-list/pepperi-addons-ngx-lib-profile-data-views-list.mjs +0 -0
  699. /package/{esm2020 → esm2022}/profile-data-views-list/profile-data-views-list.model.mjs +0 -0
  700. /package/{esm2020 → esm2022}/profile-data-views-list/public-api.mjs +0 -0
  701. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  702. /package/{esm2020 → esm2022}/quantity-selector/pepperi-addons-ngx-lib-quantity-selector.mjs +0 -0
  703. /package/{esm2020 → esm2022}/quantity-selector/public-api.mjs +0 -0
  704. /package/{esm2020 → esm2022}/query-builder/common/model/field.mjs +0 -0
  705. /package/{esm2020 → esm2022}/query-builder/common/model/filter.mjs +0 -0
  706. /package/{esm2020 → esm2022}/query-builder/common/model/legacy.mjs +0 -0
  707. /package/{esm2020 → esm2022}/query-builder/common/model/operator-unit.mjs +0 -0
  708. /package/{esm2020 → esm2022}/query-builder/common/model/operator.mjs +0 -0
  709. /package/{esm2020 → esm2022}/query-builder/common/model/structure.mjs +0 -0
  710. /package/{esm2020 → esm2022}/query-builder/common/model/type.mjs +0 -0
  711. /package/{esm2020 → esm2022}/query-builder/pepperi-addons-ngx-lib-query-builder.mjs +0 -0
  712. /package/{esm2020 → esm2022}/query-builder/public-api.mjs +0 -0
  713. /package/{esm2020 → esm2022}/remote-loader/pepperi-addons-ngx-lib-remote-loader.mjs +0 -0
  714. /package/{esm2020 → esm2022}/remote-loader/public-api.mjs +0 -0
  715. /package/{esm2020 → esm2022}/remote-loader/remote-loader.model.mjs +0 -0
  716. /package/{esm2020 → esm2022}/rich-html-textarea/pepperi-addons-ngx-lib-rich-html-textarea.mjs +0 -0
  717. /package/{esm2020 → esm2022}/rich-html-textarea/public-api.mjs +0 -0
  718. /package/{esm2020 → esm2022}/search/pepperi-addons-ngx-lib-search.mjs +0 -0
  719. /package/{esm2020 → esm2022}/search/public-api.mjs +0 -0
  720. /package/{esm2020 → esm2022}/search/search.model.mjs +0 -0
  721. /package/{esm2020 → esm2022}/select/pepperi-addons-ngx-lib-select.mjs +0 -0
  722. /package/{esm2020 → esm2022}/select/public-api.mjs +0 -0
  723. /package/{esm2020 → esm2022}/select-panel/pepperi-addons-ngx-lib-select-panel.mjs +0 -0
  724. /package/{esm2020 → esm2022}/select-panel/public-api.mjs +0 -0
  725. /package/{esm2020 → esm2022}/select-panel/select-panel.model.mjs +0 -0
  726. /package/{esm2020 → esm2022}/separator/pepperi-addons-ngx-lib-separator.mjs +0 -0
  727. /package/{esm2020 → esm2022}/separator/public-api.mjs +0 -0
  728. /package/{esm2020 → esm2022}/side-bar/pepperi-addons-ngx-lib-side-bar.mjs +0 -0
  729. /package/{esm2020 → esm2022}/side-bar/public-api.mjs +0 -0
  730. /package/{esm2020 → esm2022}/side-bar/side-bar.model.mjs +0 -0
  731. /package/{esm2020 → esm2022}/signature/pepperi-addons-ngx-lib-signature.mjs +0 -0
  732. /package/{esm2020 → esm2022}/signature/public-api.mjs +0 -0
  733. /package/{esm2020 → esm2022}/size-detector/pepperi-addons-ngx-lib-size-detector.mjs +0 -0
  734. /package/{esm2020 → esm2022}/size-detector/public-api.mjs +0 -0
  735. /package/{esm2020 → esm2022}/skeleton-loader/pepperi-addons-ngx-lib-skeleton-loader.mjs +0 -0
  736. /package/{esm2020 → esm2022}/skeleton-loader/public-api.mjs +0 -0
  737. /package/{esm2020 → esm2022}/slider/pepperi-addons-ngx-lib-slider.mjs +0 -0
  738. /package/{esm2020 → esm2022}/slider/public-api.mjs +0 -0
  739. /package/{esm2020 → esm2022}/smart-filters/common/model/creator.mjs +0 -0
  740. /package/{esm2020 → esm2022}/smart-filters/common/model/filter.mjs +0 -0
  741. /package/{esm2020 → esm2022}/smart-filters/common/model/type.mjs +0 -0
  742. /package/{esm2020 → esm2022}/smart-filters/pepperi-addons-ngx-lib-smart-filters.mjs +0 -0
  743. /package/{esm2020 → esm2022}/smart-filters/public-api.mjs +0 -0
  744. /package/{esm2020 → esm2022}/snack-bar/pepperi-addons-ngx-lib-snack-bar.mjs +0 -0
  745. /package/{esm2020 → esm2022}/snack-bar/public-api.mjs +0 -0
  746. /package/{esm2020 → esm2022}/textarea/pepperi-addons-ngx-lib-textarea.mjs +0 -0
  747. /package/{esm2020 → esm2022}/textarea/public-api.mjs +0 -0
  748. /package/{esm2020 → esm2022}/textbox/pepperi-addons-ngx-lib-textbox.mjs +0 -0
  749. /package/{esm2020 → esm2022}/textbox/public-api.mjs +0 -0
  750. /package/{esm2020 → esm2022}/textbox-icon/pepperi-addons-ngx-lib-textbox-icon.mjs +0 -0
  751. /package/{esm2020 → esm2022}/textbox-icon/public-api.mjs +0 -0
  752. /package/{esm2020 → esm2022}/top-bar/pepperi-addons-ngx-lib-top-bar.mjs +0 -0
  753. /package/{esm2020 → esm2022}/top-bar/public-api.mjs +0 -0
  754. /package/{esm2020 → esm2022}/top-bar/top-bar.model.mjs +0 -0
@@ -1,3131 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, PLATFORM_ID, ElementRef, Component, Inject, Optional, Input, Output, ViewChild, ContentChild, NgModule, Injectable, Pipe } from '@angular/core';
3
- import * as i2 from '@angular/common';
4
- import { isPlatformServer, CommonModule } from '@angular/common';
5
- import { MatCommonModule } from '@angular/material/core';
6
- import * as i3 from '@angular/material/button';
7
- import { MatButtonModule } from '@angular/material/button';
8
- import * as i3$1 from '@angular/material/checkbox';
9
- import { MatCheckboxModule } from '@angular/material/checkbox';
10
- import * as i4$1 from '@angular/material/radio';
11
- import { MatRadioModule } from '@angular/material/radio';
12
- import * as i4 from '@angular/material/icon';
13
- import { MatIconModule } from '@angular/material/icon';
14
- import { MatMenuModule } from '@angular/material/menu';
15
- import * as i1 from '@pepperi-addons/ngx-lib';
16
- import { FIELD_TYPE, PepScreenSizeType, PepNgxLibModule } from '@pepperi-addons/ngx-lib';
17
- import * as i2$2 from '@pepperi-addons/ngx-lib/bread-crumbs';
18
- import { PepBreadCrumbItem, PepBreadCrumbsModule } from '@pepperi-addons/ngx-lib/bread-crumbs';
19
- import * as i3$2 from '@pepperi-addons/ngx-lib/button';
20
- import { PepButtonModule } from '@pepperi-addons/ngx-lib/button';
21
- import * as i4$2 from '@pepperi-addons/ngx-lib/carousel';
22
- import { PepCarouselComponent, PepCarouselModule } from '@pepperi-addons/ngx-lib/carousel';
23
- import * as i5 from '@pepperi-addons/ngx-lib/icon';
24
- import { pepIconArrowDown, pepIconArrowEither, pepIconArrowUp, pepIconSystemMust, pepIconArrowRight, pepIconArrowRightAlt, pepIconArrowLeft, pepIconArrowLeftAlt, PepIconModule } from '@pepperi-addons/ngx-lib/icon';
25
- import * as i7 from '@pepperi-addons/ngx-lib/form';
26
- import { PepFormModule } from '@pepperi-addons/ngx-lib/form';
27
- import * as i1$1 from '@pepperi-addons/ngx-lib/menu';
28
- import { PepMenuModule } from '@pepperi-addons/ngx-lib/menu';
29
- import * as i6 from '@pepperi-addons/ngx-lib/textbox';
30
- import { PepTextboxModule } from '@pepperi-addons/ngx-lib/textbox';
31
- import * as tween from '@tweenjs/tween.js';
32
- import { coerceNumberProperty } from '@angular/cdk/coercion';
33
- import * as i2$1 from '@ngx-translate/core';
34
-
35
- function VIRTUAL_SCROLLER_DEFAULT_OPTIONS_FACTORY() {
36
- return {
37
- checkResizeInterval: 1000,
38
- modifyOverflowStyleOfParentScroll: true,
39
- resizeBypassRefreshThreshold: 5,
40
- scrollAnimationTime: 750,
41
- scrollDebounceTime: 0,
42
- scrollThrottlingTime: 0,
43
- stripedTable: false
44
- };
45
- }
46
- class VirtualScrollerComponent {
47
- get viewPortInfo() {
48
- const pageInfo = this.previousViewPort || {};
49
- return {
50
- startIndex: pageInfo.startIndex || 0,
51
- endIndex: pageInfo.endIndex || 0,
52
- scrollStartPosition: pageInfo.scrollStartPosition || 0,
53
- scrollEndPosition: pageInfo.scrollEndPosition || 0,
54
- scrollDirection: pageInfo.scrollDirection || 'forward',
55
- maxScrollPosition: pageInfo.maxScrollPosition || 0,
56
- startIndexWithBuffer: pageInfo.startIndexWithBuffer || 0,
57
- endIndexWithBuffer: pageInfo.endIndexWithBuffer || 0,
58
- };
59
- }
60
- get disable() {
61
- return this._disable;
62
- }
63
- set disable(value) {
64
- if (this._disable === value) {
65
- return;
66
- }
67
- this._disable = value;
68
- if (this._disable) {
69
- this.removeScrollEventHandlers();
70
- }
71
- else {
72
- this.addScrollEventHandlers();
73
- }
74
- }
75
- get enableUnequalChildrenSizes() {
76
- return this._enableUnequalChildrenSizes;
77
- }
78
- set enableUnequalChildrenSizes(value) {
79
- if (this._enableUnequalChildrenSizes === value) {
80
- return;
81
- }
82
- this._enableUnequalChildrenSizes = value;
83
- this.minMeasuredChildWidth = undefined;
84
- this.minMeasuredChildHeight = undefined;
85
- }
86
- get bufferAmount() {
87
- if (typeof (this._bufferAmount) === 'number' && this._bufferAmount > 0) {
88
- return this._bufferAmount;
89
- }
90
- else {
91
- return this.enableUnequalChildrenSizes ? 5 : 0;
92
- }
93
- }
94
- set bufferAmount(value) {
95
- this._bufferAmount = value;
96
- }
97
- get scrollThrottlingTime() {
98
- return this._scrollThrottlingTime;
99
- }
100
- set scrollThrottlingTime(value) {
101
- this._scrollThrottlingTime = value;
102
- this.updateOnScrollFunction();
103
- }
104
- get scrollDebounceTime() {
105
- return this._scrollDebounceTime;
106
- }
107
- set scrollDebounceTime(value) {
108
- this._scrollDebounceTime = value;
109
- this.updateOnScrollFunction();
110
- }
111
- updateOnScrollFunction() {
112
- if (this.scrollDebounceTime) {
113
- this.onScroll = this.debounce(() => {
114
- this.refresh_internal(false);
115
- }, this.scrollDebounceTime);
116
- }
117
- else if (this.scrollThrottlingTime) {
118
- this.onScroll = this.throttleTrailing(() => {
119
- this.refresh_internal(false);
120
- }, this.scrollThrottlingTime);
121
- }
122
- else {
123
- this.onScroll = () => {
124
- this.refresh_internal(false);
125
- };
126
- }
127
- }
128
- get checkResizeInterval() {
129
- return this._checkResizeInterval;
130
- }
131
- set checkResizeInterval(value) {
132
- if (this._checkResizeInterval === value) {
133
- return;
134
- }
135
- this._checkResizeInterval = value;
136
- this.addScrollEventHandlers();
137
- }
138
- get items() {
139
- return this._items;
140
- }
141
- set items(value) {
142
- if (value === this._items) {
143
- return;
144
- }
145
- this._items = value || [];
146
- this.refresh_internal(true);
147
- }
148
- get horizontal() {
149
- return this._horizontal;
150
- }
151
- set horizontal(value) {
152
- this._horizontal = value;
153
- this.updateDirection();
154
- }
155
- revertParentOverscroll() {
156
- const scrollElement = this.getScrollElement();
157
- if (scrollElement && this.oldParentScrollOverflow) {
158
- scrollElement.style['overflow-y'] = this.oldParentScrollOverflow.y;
159
- scrollElement.style['overflow-x'] = this.oldParentScrollOverflow.x;
160
- }
161
- this.oldParentScrollOverflow = undefined;
162
- }
163
- get parentScroll() {
164
- return this._parentScroll;
165
- }
166
- set parentScroll(value) {
167
- if (this._parentScroll === value) {
168
- return;
169
- }
170
- this.revertParentOverscroll();
171
- this._parentScroll = value;
172
- this.addScrollEventHandlers();
173
- const scrollElement = this.getScrollElement();
174
- if (this.modifyOverflowStyleOfParentScroll && scrollElement !== this.element.nativeElement) {
175
- this.oldParentScrollOverflow = { x: scrollElement.style['overflow-x'], y: scrollElement.style['overflow-y'] };
176
- scrollElement.style['overflow-y'] = this.horizontal ? 'visible' : 'auto';
177
- scrollElement.style['overflow-x'] = this.horizontal ? 'auto' : 'visible';
178
- }
179
- }
180
- ngOnInit() {
181
- this.addScrollEventHandlers();
182
- }
183
- ngOnDestroy() {
184
- this.removeScrollEventHandlers();
185
- this.revertParentOverscroll();
186
- }
187
- ngOnChanges(changes) {
188
- const indexLengthChanged = this.cachedItemsLength !== this.items.length;
189
- this.cachedItemsLength = this.items.length;
190
- const firstRun = !changes.items || !changes.items.previousValue || changes.items.previousValue.length === 0;
191
- this.refresh_internal(indexLengthChanged || firstRun);
192
- }
193
- ngDoCheck() {
194
- if (this.cachedItemsLength !== this.items.length) {
195
- this.cachedItemsLength = this.items.length;
196
- this.refresh_internal(true);
197
- return;
198
- }
199
- if (this.previousViewPort && this.viewPortItems && this.viewPortItems.length > 0) {
200
- let itemsArrayChanged = false;
201
- for (let i = 0; i < this.viewPortItems.length; ++i) {
202
- if (!this.compareItems(this.items[this.previousViewPort.startIndexWithBuffer + i], this.viewPortItems[i])) {
203
- itemsArrayChanged = true;
204
- break;
205
- }
206
- }
207
- if (itemsArrayChanged) {
208
- this.refresh_internal(true);
209
- }
210
- }
211
- }
212
- refresh(refreshCompletedCallback = undefined) {
213
- this.refresh_internal(true, refreshCompletedCallback);
214
- }
215
- invalidateAllCachedMeasurements() {
216
- this.wrapGroupDimensions = {
217
- maxChildSizePerWrapGroup: [],
218
- numberOfKnownWrapGroupChildSizes: 0,
219
- sumOfKnownWrapGroupChildWidths: 0,
220
- sumOfKnownWrapGroupChildHeights: 0
221
- };
222
- this.minMeasuredChildWidth = undefined;
223
- this.minMeasuredChildHeight = undefined;
224
- this.refresh_internal(false);
225
- }
226
- invalidateCachedMeasurementForItem(item) {
227
- if (this.enableUnequalChildrenSizes) {
228
- const index = this.items && this.items.indexOf(item);
229
- if (index >= 0) {
230
- this.invalidateCachedMeasurementAtIndex(index);
231
- }
232
- }
233
- else {
234
- this.minMeasuredChildWidth = undefined;
235
- this.minMeasuredChildHeight = undefined;
236
- }
237
- this.refresh_internal(false);
238
- }
239
- invalidateCachedMeasurementAtIndex(index) {
240
- if (this.enableUnequalChildrenSizes) {
241
- const cachedMeasurement = this.wrapGroupDimensions.maxChildSizePerWrapGroup[index];
242
- if (cachedMeasurement) {
243
- this.wrapGroupDimensions.maxChildSizePerWrapGroup[index] = undefined;
244
- --this.wrapGroupDimensions.numberOfKnownWrapGroupChildSizes;
245
- this.wrapGroupDimensions.sumOfKnownWrapGroupChildWidths -= cachedMeasurement.childWidth || 0;
246
- this.wrapGroupDimensions.sumOfKnownWrapGroupChildHeights -= cachedMeasurement.childHeight || 0;
247
- }
248
- }
249
- else {
250
- this.minMeasuredChildWidth = undefined;
251
- this.minMeasuredChildHeight = undefined;
252
- }
253
- this.refresh_internal(false);
254
- }
255
- scrollInto(item, alignToBeginning = true, additionalOffset = 0, animationMilliseconds = undefined, animationCompletedCallback = undefined) {
256
- const index = this.items.indexOf(item);
257
- if (index === -1) {
258
- return;
259
- }
260
- this.scrollToIndex(index, alignToBeginning, additionalOffset, animationMilliseconds, animationCompletedCallback);
261
- }
262
- scrollToIndex(index, alignToBeginning = true, additionalOffset = 0, animationMilliseconds = undefined, animationCompletedCallback = undefined) {
263
- let maxRetries = 5;
264
- const retryIfNeeded = () => {
265
- --maxRetries;
266
- if (maxRetries <= 0) {
267
- if (animationCompletedCallback) {
268
- animationCompletedCallback();
269
- }
270
- return;
271
- }
272
- const dimensions = this.calculateDimensions();
273
- const desiredStartIndex = Math.min(Math.max(index, 0), dimensions.itemCount - 1);
274
- if (this.previousViewPort.startIndex === desiredStartIndex) {
275
- if (animationCompletedCallback) {
276
- animationCompletedCallback();
277
- }
278
- return;
279
- }
280
- this.scrollToIndex_internal(index, alignToBeginning, additionalOffset, 0, retryIfNeeded);
281
- };
282
- this.scrollToIndex_internal(index, alignToBeginning, additionalOffset, animationMilliseconds, retryIfNeeded);
283
- }
284
- scrollToIndex_internal(index, alignToBeginning = true, additionalOffset = 0, animationMilliseconds = undefined, animationCompletedCallback = undefined) {
285
- animationMilliseconds = animationMilliseconds === undefined ? this.scrollAnimationTime : animationMilliseconds;
286
- const dimensions = this.calculateDimensions();
287
- let scroll = this.calculatePadding(index, dimensions) + additionalOffset;
288
- if (!alignToBeginning) {
289
- scroll -= dimensions.wrapGroupsPerPage * dimensions[this._childScrollDim];
290
- }
291
- this.scrollToPosition(scroll, animationMilliseconds, animationCompletedCallback);
292
- }
293
- scrollToPosition(scrollPosition, animationMilliseconds = undefined, animationCompletedCallback = undefined) {
294
- scrollPosition += this.getElementsOffset();
295
- animationMilliseconds = animationMilliseconds === undefined ? this.scrollAnimationTime : animationMilliseconds;
296
- const scrollElement = this.getScrollElement();
297
- let animationRequest;
298
- if (this.currentTween) {
299
- this.currentTween.stop();
300
- this.currentTween = undefined;
301
- }
302
- if (!animationMilliseconds) {
303
- this.renderer.setProperty(scrollElement, this._scrollType, scrollPosition);
304
- this.refresh_internal(false, animationCompletedCallback);
305
- return;
306
- }
307
- const tweenConfigObj = { scrollPosition: scrollElement[this._scrollType] };
308
- const newTween = new tween.Tween(tweenConfigObj)
309
- .to({ scrollPosition }, animationMilliseconds)
310
- .easing(tween.Easing.Quadratic.Out)
311
- .onUpdate((data) => {
312
- if (isNaN(data.scrollPosition)) {
313
- return;
314
- }
315
- this.renderer.setProperty(scrollElement, this._scrollType, data.scrollPosition);
316
- this.refresh_internal(false);
317
- })
318
- .onStop(() => {
319
- cancelAnimationFrame(animationRequest);
320
- })
321
- .start();
322
- const animate = (time) => {
323
- if (!newTween["isPlaying"]()) {
324
- return;
325
- }
326
- newTween.update(time);
327
- if (tweenConfigObj.scrollPosition === scrollPosition) {
328
- this.refresh_internal(false, animationCompletedCallback);
329
- return;
330
- }
331
- this.zone.runOutsideAngular(() => {
332
- animationRequest = requestAnimationFrame(animate);
333
- });
334
- };
335
- animate();
336
- this.currentTween = newTween;
337
- }
338
- constructor(element, renderer, zone, changeDetectorRef, platformId, options) {
339
- this.element = element;
340
- this.renderer = renderer;
341
- this.zone = zone;
342
- this.changeDetectorRef = changeDetectorRef;
343
- this.window = window;
344
- this._disable = false;
345
- this.executeRefreshOutsideAngularZone = false;
346
- this._enableUnequalChildrenSizes = false;
347
- this.RTL = false;
348
- this.useMarginInsteadOfTranslate = false;
349
- this.ssrViewportWidth = 1920;
350
- this.ssrViewportHeight = 1080;
351
- this._items = [];
352
- this.compareItems = (item1, item2) => item1 === item2;
353
- // private _lastChildRect: DOMRect = null;
354
- this.vsChildRectChange = new EventEmitter();
355
- this.vsUpdate = new EventEmitter();
356
- this.vsChange = new EventEmitter();
357
- this.vsStart = new EventEmitter();
358
- this.vsEnd = new EventEmitter();
359
- this.calculatedScrollbarWidth = 0;
360
- this.calculatedScrollbarHeight = 0;
361
- this.padding = 0;
362
- this.previousViewPort = {};
363
- this.cachedPageSize = 0;
364
- this.previousScrollNumberElements = 0;
365
- this.isAngularUniversalSSR = isPlatformServer(platformId);
366
- const defaultOptions = VIRTUAL_SCROLLER_DEFAULT_OPTIONS_FACTORY();
367
- this.checkResizeInterval = (options === null || options === void 0 ? void 0 : options.checkResizeInterval) || defaultOptions.checkResizeInterval;
368
- this.modifyOverflowStyleOfParentScroll = (options === null || options === void 0 ? void 0 : options.modifyOverflowStyleOfParentScroll) || defaultOptions.modifyOverflowStyleOfParentScroll;
369
- this.resizeBypassRefreshThreshold = (options === null || options === void 0 ? void 0 : options.resizeBypassRefreshThreshold) || defaultOptions.resizeBypassRefreshThreshold;
370
- this.scrollAnimationTime = (options === null || options === void 0 ? void 0 : options.scrollAnimationTime) || defaultOptions.scrollAnimationTime;
371
- this.scrollDebounceTime = (options === null || options === void 0 ? void 0 : options.scrollDebounceTime) || defaultOptions.scrollDebounceTime;
372
- this.scrollThrottlingTime = (options === null || options === void 0 ? void 0 : options.scrollThrottlingTime) || defaultOptions.scrollThrottlingTime;
373
- this.scrollbarHeight = (options === null || options === void 0 ? void 0 : options.scrollbarHeight) || defaultOptions.scrollbarHeight;
374
- this.scrollbarWidth = (options === null || options === void 0 ? void 0 : options.scrollbarWidth) || defaultOptions.scrollbarWidth;
375
- this.stripedTable = (options === null || options === void 0 ? void 0 : options.stripedTable) || defaultOptions.stripedTable;
376
- this.horizontal = false;
377
- this.resetWrapGroupDimensions();
378
- }
379
- getElementSize(element) {
380
- const result = element.getBoundingClientRect();
381
- const styles = getComputedStyle(element);
382
- const marginTop = parseInt(styles['margin-top'], 10) || 0;
383
- const marginBottom = parseInt(styles['margin-bottom'], 10) || 0;
384
- const marginLeft = parseInt(styles['margin-left'], 10) || 0;
385
- const marginRight = parseInt(styles['margin-right'], 10) || 0;
386
- return {
387
- top: result.top + marginTop,
388
- bottom: result.bottom + marginBottom,
389
- left: result.left + marginLeft,
390
- right: result.right + marginRight,
391
- width: parseFloat((result.width + marginLeft + marginRight).toFixed(3)),
392
- height: parseFloat((result.height + marginTop + marginBottom).toFixed(3))
393
- };
394
- }
395
- getContent() {
396
- const content = (this.containerElementRef && this.containerElementRef.nativeElement) || this.contentElementRef.nativeElement;
397
- return content;
398
- }
399
- checkScrollElementResized() {
400
- const boundingRect = this.getElementSize(this.getScrollElement());
401
- let sizeChanged;
402
- if (!this.previousScrollBoundingRect) {
403
- sizeChanged = true;
404
- }
405
- else {
406
- const widthChange = Math.abs(boundingRect.width - this.previousScrollBoundingRect.width);
407
- const heightChange = Math.abs(boundingRect.height - this.previousScrollBoundingRect.height);
408
- sizeChanged = widthChange > this.resizeBypassRefreshThreshold || heightChange > this.resizeBypassRefreshThreshold;
409
- }
410
- if (sizeChanged) {
411
- this.previousScrollBoundingRect = boundingRect;
412
- if (boundingRect.width > 0 && boundingRect.height > 0) {
413
- this.refresh_internal(false);
414
- }
415
- }
416
- }
417
- updateDirection() {
418
- if (this.horizontal) {
419
- this._childScrollDim = 'childWidth';
420
- this._invisiblePaddingProperty = 'scaleX';
421
- this._marginDir = 'margin-left';
422
- this._offsetType = 'offsetLeft';
423
- this._pageOffsetType = 'pageXOffset';
424
- this._scrollType = 'scrollLeft';
425
- this._translateDir = 'translateX';
426
- }
427
- else {
428
- this._childScrollDim = 'childHeight';
429
- this._invisiblePaddingProperty = 'scaleY';
430
- this._marginDir = 'margin-top';
431
- this._offsetType = 'offsetTop';
432
- this._pageOffsetType = 'pageYOffset';
433
- this._scrollType = 'scrollTop';
434
- this._translateDir = 'translateY';
435
- }
436
- }
437
- debounce(func, wait, ...args) {
438
- const throttled = this.throttleTrailing(func, wait);
439
- const result = function () {
440
- throttled['cancel']();
441
- throttled.apply(this, args);
442
- };
443
- result['cancel'] = function () {
444
- throttled['cancel']();
445
- };
446
- return result;
447
- }
448
- throttleTrailing(func, wait, ...args) {
449
- let timeout = undefined;
450
- let _arguments = args;
451
- const result = function () {
452
- const _this = this;
453
- _arguments = args;
454
- if (timeout) {
455
- return;
456
- }
457
- if (wait <= 0) {
458
- func.apply(_this, _arguments);
459
- }
460
- else {
461
- timeout = setTimeout(function () {
462
- timeout = undefined;
463
- func.apply(_this, _arguments);
464
- }, wait);
465
- }
466
- };
467
- result['cancel'] = function () {
468
- if (timeout) {
469
- clearTimeout(timeout);
470
- timeout = undefined;
471
- }
472
- };
473
- return result;
474
- }
475
- refresh_internal(itemsArrayModified, refreshCompletedCallback = undefined, maxRunTimes = 2) {
476
- //note: maxRunTimes is to force it to keep recalculating if the previous iteration caused a re-render (different sliced items in viewport or scrollPosition changed).
477
- //The default of 2x max will probably be accurate enough without causing too large a performance bottleneck
478
- //The code would typically quit out on the 2nd iteration anyways. The main time it'd think more than 2 runs would be necessary would be for vastly different sized child items or if this is the 1st time the items array was initialized.
479
- //Without maxRunTimes, If the user is actively scrolling this code would become an infinite loop until they stopped scrolling. This would be okay, except each scroll event would start an additional infinte loop. We want to short-circuit it to prevent this.
480
- if (itemsArrayModified && this.previousViewPort && this.previousViewPort.scrollStartPosition > 0) {
481
- //if items were prepended, scroll forward to keep same items visible
482
- const oldViewPort = this.previousViewPort;
483
- const oldViewPortItems = this.viewPortItems;
484
- const oldRefreshCompletedCallback = refreshCompletedCallback;
485
- refreshCompletedCallback = () => {
486
- const scrollLengthDelta = this.previousViewPort.scrollLength - oldViewPort.scrollLength;
487
- if (scrollLengthDelta > 0 && this.viewPortItems) {
488
- const oldStartItem = oldViewPortItems[0];
489
- const oldStartItemIndex = this.items.findIndex(x => this.compareItems(oldStartItem, x));
490
- if (oldStartItemIndex > this.previousViewPort.startIndexWithBuffer) {
491
- let itemOrderChanged = false;
492
- for (let i = 1; i < this.viewPortItems.length; ++i) {
493
- if (!this.compareItems(this.items[oldStartItemIndex + i], oldViewPortItems[i])) {
494
- itemOrderChanged = true;
495
- break;
496
- }
497
- }
498
- if (!itemOrderChanged) {
499
- this.scrollToPosition(this.previousViewPort.scrollStartPosition + scrollLengthDelta, 0, oldRefreshCompletedCallback);
500
- return;
501
- }
502
- }
503
- }
504
- if (oldRefreshCompletedCallback) {
505
- oldRefreshCompletedCallback();
506
- }
507
- };
508
- }
509
- this.zone.runOutsideAngular(() => {
510
- requestAnimationFrame(() => {
511
- if (itemsArrayModified) {
512
- this.resetWrapGroupDimensions();
513
- }
514
- const viewport = this.calculateViewport();
515
- const startChanged = itemsArrayModified || viewport.startIndex !== this.previousViewPort.startIndex;
516
- const endChanged = itemsArrayModified || viewport.endIndex !== this.previousViewPort.endIndex;
517
- const scrollLengthChanged = viewport.scrollLength !== this.previousViewPort.scrollLength;
518
- const paddingChanged = viewport.padding !== this.previousViewPort.padding;
519
- const scrollPositionChanged = viewport.scrollStartPosition !== this.previousViewPort.scrollStartPosition || viewport.scrollEndPosition !== this.previousViewPort.scrollEndPosition || viewport.maxScrollPosition !== this.previousViewPort.maxScrollPosition;
520
- const scrollDirection = this.previousViewPort.endIndex <= viewport.endIndex ? 'forward' : 'backward';
521
- this.previousViewPort = viewport;
522
- if (scrollLengthChanged) {
523
- this.renderer.setStyle(this.invisiblePaddingElementRef.nativeElement, 'transform', `${this._invisiblePaddingProperty}(${viewport.scrollLength})`);
524
- this.renderer.setStyle(this.invisiblePaddingElementRef.nativeElement, 'webkitTransform', `${this._invisiblePaddingProperty}(${viewport.scrollLength})`);
525
- }
526
- if (paddingChanged) {
527
- if (this.useMarginInsteadOfTranslate) {
528
- this.renderer.setStyle(this.contentElementRef.nativeElement, this._marginDir, `${viewport.padding}px`);
529
- }
530
- else {
531
- this.renderer.setStyle(this.contentElementRef.nativeElement, 'transform', `${this._translateDir}(${viewport.padding}px)`);
532
- this.renderer.setStyle(this.contentElementRef.nativeElement, 'webkitTransform', `${this._translateDir}(${viewport.padding}px)`);
533
- }
534
- }
535
- if (this.headerElementRef) {
536
- const scrollPosition = this.getScrollElement()[this._scrollType];
537
- const containerOffset = this.getElementsOffset();
538
- const offset = Math.max(scrollPosition - viewport.padding - containerOffset + this.headerElementRef.nativeElement.clientHeight, 0);
539
- this.renderer.setStyle(this.headerElementRef.nativeElement, 'transform', `${this._translateDir}(${offset}px)`);
540
- this.renderer.setStyle(this.headerElementRef.nativeElement, 'webkitTransform', `${this._translateDir}(${offset}px)`);
541
- }
542
- const changeEventArg = (startChanged || endChanged) ? {
543
- startIndex: viewport.startIndex,
544
- endIndex: viewport.endIndex,
545
- scrollStartPosition: viewport.scrollStartPosition,
546
- scrollEndPosition: viewport.scrollEndPosition,
547
- scrollDirection: scrollDirection,
548
- startIndexWithBuffer: viewport.startIndexWithBuffer,
549
- endIndexWithBuffer: viewport.endIndexWithBuffer,
550
- maxScrollPosition: viewport.maxScrollPosition,
551
- } : undefined;
552
- if (startChanged || endChanged || scrollPositionChanged) {
553
- const handleChanged = () => {
554
- // update the scroll list to trigger re-render of components in viewport
555
- this.viewPortItems = viewport.startIndexWithBuffer >= 0 && viewport.endIndexWithBuffer >= 0 ? this.items.slice(viewport.startIndexWithBuffer, viewport.endIndexWithBuffer + 1) : [];
556
- this.vsUpdate.emit(this.viewPortItems);
557
- if (startChanged) {
558
- this.vsStart.emit(changeEventArg);
559
- }
560
- if (endChanged) {
561
- this.vsEnd.emit(changeEventArg);
562
- }
563
- if (startChanged || endChanged) {
564
- this.changeDetectorRef.markForCheck();
565
- this.vsChange.emit(changeEventArg);
566
- }
567
- if (maxRunTimes > 0) {
568
- this.refresh_internal(false, refreshCompletedCallback, maxRunTimes - 1);
569
- return;
570
- }
571
- if (refreshCompletedCallback) {
572
- refreshCompletedCallback();
573
- }
574
- };
575
- if (this.executeRefreshOutsideAngularZone) {
576
- handleChanged();
577
- }
578
- else {
579
- this.zone.run(handleChanged);
580
- }
581
- }
582
- else {
583
- if (maxRunTimes > 0 && (scrollLengthChanged || paddingChanged)) {
584
- this.refresh_internal(false, refreshCompletedCallback, maxRunTimes - 1);
585
- return;
586
- }
587
- if (refreshCompletedCallback) {
588
- refreshCompletedCallback();
589
- }
590
- }
591
- });
592
- });
593
- }
594
- getScrollElement() {
595
- return this.parentScroll instanceof Window ? document.scrollingElement || document.documentElement || document.body : this.parentScroll || this.element.nativeElement;
596
- }
597
- addScrollEventHandlers() {
598
- if (this.isAngularUniversalSSR) {
599
- return;
600
- }
601
- const scrollElement = this.getScrollElement();
602
- this.removeScrollEventHandlers();
603
- this.zone.runOutsideAngular(() => {
604
- if (this.parentScroll instanceof Window) {
605
- this.disposeScrollHandler = this.renderer.listen('window', 'scroll', this.onScroll);
606
- this.disposeResizeHandler = this.renderer.listen('window', 'resize', this.onScroll);
607
- }
608
- else {
609
- this.disposeScrollHandler = this.renderer.listen(scrollElement, 'scroll', this.onScroll);
610
- if (this._checkResizeInterval > 0) {
611
- this.checkScrollElementResizedTimer = setInterval(() => { this.checkScrollElementResized(); }, this._checkResizeInterval);
612
- }
613
- }
614
- });
615
- }
616
- removeScrollEventHandlers() {
617
- if (this.checkScrollElementResizedTimer) {
618
- clearInterval(this.checkScrollElementResizedTimer);
619
- }
620
- if (this.disposeScrollHandler) {
621
- this.disposeScrollHandler();
622
- this.disposeScrollHandler = undefined;
623
- }
624
- if (this.disposeResizeHandler) {
625
- this.disposeResizeHandler();
626
- this.disposeResizeHandler = undefined;
627
- }
628
- }
629
- getElementsOffset() {
630
- if (this.isAngularUniversalSSR) {
631
- return 0;
632
- }
633
- let offset = 0;
634
- if (this.containerElementRef && this.containerElementRef.nativeElement) {
635
- offset += this.containerElementRef.nativeElement[this._offsetType];
636
- }
637
- if (this.parentScroll) {
638
- const scrollElement = this.getScrollElement();
639
- const elementClientRect = this.getElementSize(this.element.nativeElement);
640
- const scrollClientRect = this.getElementSize(scrollElement);
641
- if (this.horizontal) {
642
- offset += elementClientRect.left - scrollClientRect.left;
643
- }
644
- else {
645
- offset += elementClientRect.top - scrollClientRect.top;
646
- }
647
- if (!(this.parentScroll instanceof Window)) {
648
- offset += scrollElement[this._scrollType];
649
- }
650
- }
651
- return offset;
652
- }
653
- countItemsPerWrapGroup() {
654
- if (this.isAngularUniversalSSR) {
655
- return Math.round(this.horizontal ? this.ssrViewportHeight / this.ssrChildHeight : this.ssrViewportWidth / this.ssrChildWidth);
656
- }
657
- const propertyName = this.horizontal ? 'offsetLeft' : 'offsetTop';
658
- const children = this.getContent().children;
659
- const childrenLength = children ? children.length : 0;
660
- if (childrenLength === 0) {
661
- return 1;
662
- }
663
- const firstOffset = children[0][propertyName];
664
- let result = 1;
665
- while (result < childrenLength && firstOffset === children[result][propertyName]) {
666
- ++result;
667
- }
668
- return result;
669
- }
670
- getScrollStartPosition() {
671
- let windowScrollValue = undefined;
672
- if (this.parentScroll instanceof Window) {
673
- windowScrollValue = window[this._pageOffsetType];
674
- }
675
- return windowScrollValue || this.getScrollElement()[this._scrollType] || 0;
676
- }
677
- resetWrapGroupDimensions() {
678
- const oldWrapGroupDimensions = this.wrapGroupDimensions;
679
- this.invalidateAllCachedMeasurements();
680
- if (!this.enableUnequalChildrenSizes || !oldWrapGroupDimensions || oldWrapGroupDimensions.numberOfKnownWrapGroupChildSizes === 0) {
681
- return;
682
- }
683
- const itemsPerWrapGroup = this.countItemsPerWrapGroup();
684
- for (let wrapGroupIndex = 0; wrapGroupIndex < oldWrapGroupDimensions.maxChildSizePerWrapGroup.length; ++wrapGroupIndex) {
685
- const oldWrapGroupDimension = oldWrapGroupDimensions.maxChildSizePerWrapGroup[wrapGroupIndex];
686
- if (!oldWrapGroupDimension || !oldWrapGroupDimension.items || !oldWrapGroupDimension.items.length) {
687
- continue;
688
- }
689
- if (oldWrapGroupDimension.items.length !== itemsPerWrapGroup) {
690
- return;
691
- }
692
- let itemsChanged = false;
693
- const arrayStartIndex = itemsPerWrapGroup * wrapGroupIndex;
694
- for (let i = 0; i < itemsPerWrapGroup; ++i) {
695
- if (!this.compareItems(oldWrapGroupDimension.items[i], this.items[arrayStartIndex + i])) {
696
- itemsChanged = true;
697
- break;
698
- }
699
- }
700
- if (!itemsChanged) {
701
- ++this.wrapGroupDimensions.numberOfKnownWrapGroupChildSizes;
702
- this.wrapGroupDimensions.sumOfKnownWrapGroupChildWidths += oldWrapGroupDimension.childWidth || 0;
703
- this.wrapGroupDimensions.sumOfKnownWrapGroupChildHeights += oldWrapGroupDimension.childHeight || 0;
704
- this.wrapGroupDimensions.maxChildSizePerWrapGroup[wrapGroupIndex] = oldWrapGroupDimension;
705
- }
706
- }
707
- }
708
- calculateDimensions() {
709
- const scrollElement = this.getScrollElement();
710
- const maxCalculatedScrollBarSize = 25; // Note: Formula to auto-calculate doesn't work for ParentScroll, so we default to this if not set by consuming application
711
- this.calculatedScrollbarHeight = Math.max(Math.min(scrollElement.offsetHeight - scrollElement.clientHeight, maxCalculatedScrollBarSize), this.calculatedScrollbarHeight);
712
- this.calculatedScrollbarWidth = Math.max(Math.min(scrollElement.offsetWidth - scrollElement.clientWidth, maxCalculatedScrollBarSize), this.calculatedScrollbarWidth);
713
- let viewportWidth = scrollElement.offsetWidth - (this.scrollbarWidth || this.calculatedScrollbarWidth || (this.horizontal ? 0 : maxCalculatedScrollBarSize));
714
- let viewportHeight = scrollElement.offsetHeight - (this.scrollbarHeight || this.calculatedScrollbarHeight || (this.horizontal ? maxCalculatedScrollBarSize : 0));
715
- const content = this.getContent();
716
- const itemsPerWrapGroup = this.countItemsPerWrapGroup();
717
- let wrapGroupsPerPage;
718
- let defaultChildWidth;
719
- let defaultChildHeight;
720
- if (this.isAngularUniversalSSR) {
721
- viewportWidth = this.ssrViewportWidth;
722
- viewportHeight = this.ssrViewportHeight;
723
- defaultChildWidth = this.ssrChildWidth;
724
- defaultChildHeight = this.ssrChildHeight;
725
- const itemsPerRow = Math.max(Math.ceil(viewportWidth / defaultChildWidth), 1);
726
- const itemsPerCol = Math.max(Math.ceil(viewportHeight / defaultChildHeight), 1);
727
- wrapGroupsPerPage = this.horizontal ? itemsPerRow : itemsPerCol;
728
- }
729
- else if (!this.enableUnequalChildrenSizes) {
730
- if (content.children.length > 0) {
731
- if (!this.childWidth || !this.childHeight) {
732
- if (!this.minMeasuredChildWidth && viewportWidth > 0) {
733
- this.minMeasuredChildWidth = viewportWidth;
734
- }
735
- if (!this.minMeasuredChildHeight && viewportHeight > 0) {
736
- this.minMeasuredChildHeight = viewportHeight;
737
- }
738
- }
739
- const child = content.children[0];
740
- const clientRect = this.getElementSize(child);
741
- this.minMeasuredChildWidth = Math.min(this.minMeasuredChildWidth, clientRect.width);
742
- this.minMeasuredChildHeight = Math.min(this.minMeasuredChildHeight, clientRect.height);
743
- // Added for getting the child height (for card view, return all the clientRect object).
744
- // if (this._lastChildRect === null ||
745
- // (clientRect?.height !== 0 && (
746
- // Math.round(this._lastChildRect?.height) !== Math.round(clientRect?.height) ||
747
- // Math.round(this._lastChildRect?.width) !== Math.round(clientRect?.width))
748
- // )) {
749
- // this._lastChildRect = clientRect;
750
- // this.vsChildRectChange.emit(clientRect);
751
- // }
752
- }
753
- defaultChildWidth = this.childWidth || this.minMeasuredChildWidth || viewportWidth;
754
- defaultChildHeight = this.childHeight || this.minMeasuredChildHeight || viewportHeight;
755
- const itemsPerRow = Math.max(Math.ceil(viewportWidth / defaultChildWidth), 1);
756
- const itemsPerCol = Math.max(Math.ceil(viewportHeight / defaultChildHeight), 1);
757
- wrapGroupsPerPage = this.horizontal ? itemsPerRow : itemsPerCol;
758
- }
759
- else {
760
- let scrollOffset = scrollElement[this._scrollType] - (this.previousViewPort ? this.previousViewPort.padding : 0);
761
- let arrayStartIndex = this.previousViewPort.startIndexWithBuffer || 0;
762
- let wrapGroupIndex = Math.ceil(arrayStartIndex / itemsPerWrapGroup);
763
- let maxWidthForWrapGroup = 0;
764
- let maxHeightForWrapGroup = 0;
765
- let sumOfVisibleMaxWidths = 0;
766
- let sumOfVisibleMaxHeights = 0;
767
- wrapGroupsPerPage = 0;
768
- for (let i = 0; i < content.children.length; ++i) {
769
- ++arrayStartIndex;
770
- const child = content.children[i];
771
- const clientRect = this.getElementSize(child);
772
- maxWidthForWrapGroup = Math.max(maxWidthForWrapGroup, clientRect.width);
773
- maxHeightForWrapGroup = Math.max(maxHeightForWrapGroup, clientRect.height);
774
- if (arrayStartIndex % itemsPerWrapGroup === 0) {
775
- const oldValue = this.wrapGroupDimensions.maxChildSizePerWrapGroup[wrapGroupIndex];
776
- if (oldValue) {
777
- --this.wrapGroupDimensions.numberOfKnownWrapGroupChildSizes;
778
- this.wrapGroupDimensions.sumOfKnownWrapGroupChildWidths -= oldValue.childWidth || 0;
779
- this.wrapGroupDimensions.sumOfKnownWrapGroupChildHeights -= oldValue.childHeight || 0;
780
- }
781
- ++this.wrapGroupDimensions.numberOfKnownWrapGroupChildSizes;
782
- const items = this.items.slice(arrayStartIndex - itemsPerWrapGroup, arrayStartIndex);
783
- this.wrapGroupDimensions.maxChildSizePerWrapGroup[wrapGroupIndex] = {
784
- childWidth: maxWidthForWrapGroup,
785
- childHeight: maxHeightForWrapGroup,
786
- items: items
787
- };
788
- this.wrapGroupDimensions.sumOfKnownWrapGroupChildWidths += maxWidthForWrapGroup;
789
- this.wrapGroupDimensions.sumOfKnownWrapGroupChildHeights += maxHeightForWrapGroup;
790
- if (this.horizontal) {
791
- let maxVisibleWidthForWrapGroup = Math.min(maxWidthForWrapGroup, Math.max(viewportWidth - sumOfVisibleMaxWidths, 0));
792
- if (scrollOffset > 0) {
793
- const scrollOffsetToRemove = Math.min(scrollOffset, maxVisibleWidthForWrapGroup);
794
- maxVisibleWidthForWrapGroup -= scrollOffsetToRemove;
795
- scrollOffset -= scrollOffsetToRemove;
796
- }
797
- sumOfVisibleMaxWidths += maxVisibleWidthForWrapGroup;
798
- if (maxVisibleWidthForWrapGroup > 0 && viewportWidth >= sumOfVisibleMaxWidths) {
799
- ++wrapGroupsPerPage;
800
- }
801
- }
802
- else {
803
- let maxVisibleHeightForWrapGroup = Math.min(maxHeightForWrapGroup, Math.max(viewportHeight - sumOfVisibleMaxHeights, 0));
804
- if (scrollOffset > 0) {
805
- const scrollOffsetToRemove = Math.min(scrollOffset, maxVisibleHeightForWrapGroup);
806
- maxVisibleHeightForWrapGroup -= scrollOffsetToRemove;
807
- scrollOffset -= scrollOffsetToRemove;
808
- }
809
- sumOfVisibleMaxHeights += maxVisibleHeightForWrapGroup;
810
- if (maxVisibleHeightForWrapGroup > 0 && viewportHeight >= sumOfVisibleMaxHeights) {
811
- ++wrapGroupsPerPage;
812
- }
813
- }
814
- ++wrapGroupIndex;
815
- maxWidthForWrapGroup = 0;
816
- maxHeightForWrapGroup = 0;
817
- }
818
- }
819
- const averageChildWidth = this.wrapGroupDimensions.sumOfKnownWrapGroupChildWidths / this.wrapGroupDimensions.numberOfKnownWrapGroupChildSizes;
820
- const averageChildHeight = this.wrapGroupDimensions.sumOfKnownWrapGroupChildHeights / this.wrapGroupDimensions.numberOfKnownWrapGroupChildSizes;
821
- defaultChildWidth = this.childWidth || averageChildWidth || viewportWidth;
822
- defaultChildHeight = this.childHeight || averageChildHeight || viewportHeight;
823
- if (this.horizontal) {
824
- if (viewportWidth > sumOfVisibleMaxWidths) {
825
- wrapGroupsPerPage += Math.ceil((viewportWidth - sumOfVisibleMaxWidths) / defaultChildWidth);
826
- }
827
- }
828
- else {
829
- if (viewportHeight > sumOfVisibleMaxHeights) {
830
- wrapGroupsPerPage += Math.ceil((viewportHeight - sumOfVisibleMaxHeights) / defaultChildHeight);
831
- }
832
- }
833
- }
834
- const itemCount = this.items.length;
835
- const itemsPerPage = itemsPerWrapGroup * wrapGroupsPerPage;
836
- const pageCount_fractional = itemCount / itemsPerPage;
837
- const numberOfWrapGroups = Math.ceil(itemCount / itemsPerWrapGroup);
838
- let scrollLength = 0;
839
- const defaultScrollLengthPerWrapGroup = this.horizontal ? defaultChildWidth : defaultChildHeight;
840
- if (this.enableUnequalChildrenSizes) {
841
- let numUnknownChildSizes = 0;
842
- for (let i = 0; i < numberOfWrapGroups; ++i) {
843
- const childSize = this.wrapGroupDimensions.maxChildSizePerWrapGroup[i] && this.wrapGroupDimensions.maxChildSizePerWrapGroup[i][this._childScrollDim];
844
- if (childSize) {
845
- scrollLength += childSize;
846
- }
847
- else {
848
- ++numUnknownChildSizes;
849
- }
850
- }
851
- scrollLength += Math.round(numUnknownChildSizes * defaultScrollLengthPerWrapGroup);
852
- }
853
- else {
854
- scrollLength = numberOfWrapGroups * defaultScrollLengthPerWrapGroup;
855
- }
856
- if (this.headerElementRef) {
857
- scrollLength += this.headerElementRef.nativeElement.clientHeight;
858
- }
859
- const viewportLength = this.horizontal ? viewportWidth : viewportHeight;
860
- const maxScrollPosition = Math.max(scrollLength - viewportLength, 0);
861
- return {
862
- childHeight: defaultChildHeight,
863
- childWidth: defaultChildWidth,
864
- itemCount: itemCount,
865
- itemsPerPage: itemsPerPage,
866
- itemsPerWrapGroup: itemsPerWrapGroup,
867
- maxScrollPosition: maxScrollPosition,
868
- pageCount_fractional: pageCount_fractional,
869
- scrollLength: scrollLength,
870
- viewportLength: viewportLength,
871
- wrapGroupsPerPage: wrapGroupsPerPage,
872
- };
873
- }
874
- calculatePadding(arrayStartIndexWithBuffer, dimensions) {
875
- if (dimensions.itemCount === 0) {
876
- return 0;
877
- }
878
- const defaultScrollLengthPerWrapGroup = dimensions[this._childScrollDim];
879
- const startingWrapGroupIndex = Math.floor(arrayStartIndexWithBuffer / dimensions.itemsPerWrapGroup) || 0;
880
- if (!this.enableUnequalChildrenSizes) {
881
- return defaultScrollLengthPerWrapGroup * startingWrapGroupIndex;
882
- }
883
- let numUnknownChildSizes = 0;
884
- let result = 0;
885
- for (let i = 0; i < startingWrapGroupIndex; ++i) {
886
- const childSize = this.wrapGroupDimensions.maxChildSizePerWrapGroup[i] && this.wrapGroupDimensions.maxChildSizePerWrapGroup[i][this._childScrollDim];
887
- if (childSize) {
888
- result += childSize;
889
- }
890
- else {
891
- ++numUnknownChildSizes;
892
- }
893
- }
894
- result += Math.round(numUnknownChildSizes * defaultScrollLengthPerWrapGroup);
895
- return result;
896
- }
897
- calculatePageInfo(scrollPosition, dimensions) {
898
- let scrollPercentage = 0;
899
- if (this.enableUnequalChildrenSizes) {
900
- const numberOfWrapGroups = Math.ceil(dimensions.itemCount / dimensions.itemsPerWrapGroup);
901
- let totalScrolledLength = 0;
902
- const defaultScrollLengthPerWrapGroup = dimensions[this._childScrollDim];
903
- for (let i = 0; i < numberOfWrapGroups; ++i) {
904
- const childSize = this.wrapGroupDimensions.maxChildSizePerWrapGroup[i] && this.wrapGroupDimensions.maxChildSizePerWrapGroup[i][this._childScrollDim];
905
- if (childSize) {
906
- totalScrolledLength += childSize;
907
- }
908
- else {
909
- totalScrolledLength += defaultScrollLengthPerWrapGroup;
910
- }
911
- if (scrollPosition < totalScrolledLength) {
912
- scrollPercentage = i / numberOfWrapGroups;
913
- break;
914
- }
915
- }
916
- }
917
- else {
918
- scrollPercentage = scrollPosition / dimensions.scrollLength;
919
- }
920
- const startingArrayIndex_fractional = Math.min(Math.max(scrollPercentage * dimensions.pageCount_fractional, 0), dimensions.pageCount_fractional) * dimensions.itemsPerPage;
921
- const maxStart = dimensions.itemCount - dimensions.itemsPerPage - 1;
922
- let arrayStartIndex = Math.min(Math.floor(startingArrayIndex_fractional), maxStart);
923
- arrayStartIndex -= arrayStartIndex % dimensions.itemsPerWrapGroup; // round down to start of wrapGroup
924
- if (this.stripedTable) {
925
- const bufferBoundary = 2 * dimensions.itemsPerWrapGroup;
926
- if (arrayStartIndex % bufferBoundary !== 0) {
927
- arrayStartIndex = Math.max(arrayStartIndex - arrayStartIndex % bufferBoundary, 0);
928
- }
929
- }
930
- let arrayEndIndex = Math.ceil(startingArrayIndex_fractional) + dimensions.itemsPerPage - 1;
931
- const endIndexWithinWrapGroup = (arrayEndIndex + 1) % dimensions.itemsPerWrapGroup;
932
- if (endIndexWithinWrapGroup > 0) {
933
- arrayEndIndex += dimensions.itemsPerWrapGroup - endIndexWithinWrapGroup; // round up to end of wrapGroup
934
- }
935
- if (isNaN(arrayStartIndex)) {
936
- arrayStartIndex = 0;
937
- }
938
- if (isNaN(arrayEndIndex)) {
939
- arrayEndIndex = 0;
940
- }
941
- arrayStartIndex = Math.min(Math.max(arrayStartIndex, 0), dimensions.itemCount - 1);
942
- arrayEndIndex = Math.min(Math.max(arrayEndIndex, 0), dimensions.itemCount - 1);
943
- const bufferSize = this.bufferAmount * dimensions.itemsPerWrapGroup;
944
- const startIndexWithBuffer = Math.min(Math.max(arrayStartIndex - bufferSize, 0), dimensions.itemCount - 1);
945
- const endIndexWithBuffer = Math.min(Math.max(arrayEndIndex + bufferSize, 0), dimensions.itemCount - 1);
946
- return {
947
- startIndex: arrayStartIndex,
948
- endIndex: arrayEndIndex,
949
- startIndexWithBuffer: startIndexWithBuffer,
950
- endIndexWithBuffer: endIndexWithBuffer,
951
- scrollStartPosition: scrollPosition,
952
- scrollEndPosition: scrollPosition + dimensions.viewportLength,
953
- maxScrollPosition: dimensions.maxScrollPosition
954
- };
955
- }
956
- calculateViewport() {
957
- const dimensions = this.calculateDimensions();
958
- const offset = this.getElementsOffset();
959
- let scrollStartPosition = this.getScrollStartPosition();
960
- if (scrollStartPosition > (dimensions.scrollLength + offset) && !(this.parentScroll instanceof Window)) {
961
- scrollStartPosition = dimensions.scrollLength;
962
- }
963
- else {
964
- scrollStartPosition -= offset;
965
- }
966
- scrollStartPosition = Math.max(0, scrollStartPosition);
967
- const pageInfo = this.calculatePageInfo(scrollStartPosition, dimensions);
968
- const newPadding = this.calculatePadding(pageInfo.startIndexWithBuffer, dimensions);
969
- const newScrollLength = dimensions.scrollLength;
970
- return {
971
- startIndex: pageInfo.startIndex,
972
- endIndex: pageInfo.endIndex,
973
- startIndexWithBuffer: pageInfo.startIndexWithBuffer,
974
- endIndexWithBuffer: pageInfo.endIndexWithBuffer,
975
- padding: Math.round(newPadding),
976
- scrollLength: Math.round(newScrollLength),
977
- scrollStartPosition: pageInfo.scrollStartPosition,
978
- scrollEndPosition: pageInfo.scrollEndPosition,
979
- maxScrollPosition: pageInfo.maxScrollPosition
980
- };
981
- }
982
- }
983
- VirtualScrollerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: VirtualScrollerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: PLATFORM_ID }, { token: 'virtual-scroller-default-options', optional: true }], target: i0.ɵɵFactoryTarget.Component });
984
- VirtualScrollerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: VirtualScrollerComponent, selector: "virtual-scroller,[virtualScroller]", inputs: { disable: "disable", executeRefreshOutsideAngularZone: "executeRefreshOutsideAngularZone", enableUnequalChildrenSizes: "enableUnequalChildrenSizes", RTL: "RTL", useMarginInsteadOfTranslate: "useMarginInsteadOfTranslate", modifyOverflowStyleOfParentScroll: "modifyOverflowStyleOfParentScroll", stripedTable: "stripedTable", scrollbarWidth: "scrollbarWidth", scrollbarHeight: "scrollbarHeight", childWidth: "childWidth", childHeight: "childHeight", ssrChildWidth: "ssrChildWidth", ssrChildHeight: "ssrChildHeight", ssrViewportWidth: "ssrViewportWidth", ssrViewportHeight: "ssrViewportHeight", bufferAmount: "bufferAmount", scrollAnimationTime: "scrollAnimationTime", resizeBypassRefreshThreshold: "resizeBypassRefreshThreshold", scrollThrottlingTime: "scrollThrottlingTime", scrollDebounceTime: "scrollDebounceTime", checkResizeInterval: "checkResizeInterval", items: "items", compareItems: "compareItems", horizontal: "horizontal", parentScroll: "parentScroll" }, outputs: { vsChildRectChange: "vsChildRectChange", vsUpdate: "vsUpdate", vsChange: "vsChange", vsStart: "vsStart", vsEnd: "vsEnd" }, host: { properties: { "class.horizontal": "horizontal", "class.vertical": "!horizontal", "class.selfScroll": "!parentScroll", "class.rtl": "RTL" } }, queries: [{ propertyName: "headerElementRef", first: true, predicate: ["header"], descendants: true, read: ElementRef }, { propertyName: "containerElementRef", first: true, predicate: ["container"], descendants: true, read: ElementRef }], viewQueries: [{ propertyName: "contentElementRef", first: true, predicate: ["content"], descendants: true, read: ElementRef, static: true }, { propertyName: "invisiblePaddingElementRef", first: true, predicate: ["invisiblePadding"], descendants: true, read: ElementRef, static: true }], exportAs: ["virtualScroller"], usesOnChanges: true, ngImport: i0, template: `
985
- <div class="total-padding" #invisiblePadding></div>
986
- <div class="scrollable-content" #content>
987
- <ng-content></ng-content>
988
- </div>
989
- `, isInline: true, styles: [":host{position:relative;display:block;-webkit-overflow-scrolling:touch}:host.horizontal.selfScroll{overflow-y:visible;overflow-x:auto}:host.horizontal.selfScroll.rtl{transform:scaleX(-1)}:host.vertical.selfScroll{overflow-y:auto;overflow-x:visible}.scrollable-content{top:0;left:0;width:100%;height:100%;max-width:100vw;max-height:100vh;position:absolute}.scrollable-content ::ng-deep>*{box-sizing:border-box}:host.horizontal{white-space:nowrap}:host.horizontal .scrollable-content{display:flex}:host.horizontal .scrollable-content ::ng-deep>*{flex-shrink:0;flex-grow:0;white-space:initial}:host.horizontal.rtl .scrollable-content ::ng-deep>*{transform:scaleX(-1)}.total-padding{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;opacity:0}:host.horizontal .total-padding{height:100%}\n"] });
990
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: VirtualScrollerComponent, decorators: [{
991
- type: Component,
992
- args: [{ selector: 'virtual-scroller,[virtualScroller]', exportAs: 'virtualScroller', template: `
993
- <div class="total-padding" #invisiblePadding></div>
994
- <div class="scrollable-content" #content>
995
- <ng-content></ng-content>
996
- </div>
997
- `, host: {
998
- '[class.horizontal]': "horizontal",
999
- '[class.vertical]': "!horizontal",
1000
- '[class.selfScroll]': "!parentScroll",
1001
- '[class.rtl]': "RTL"
1002
- }, styles: [":host{position:relative;display:block;-webkit-overflow-scrolling:touch}:host.horizontal.selfScroll{overflow-y:visible;overflow-x:auto}:host.horizontal.selfScroll.rtl{transform:scaleX(-1)}:host.vertical.selfScroll{overflow-y:auto;overflow-x:visible}.scrollable-content{top:0;left:0;width:100%;height:100%;max-width:100vw;max-height:100vh;position:absolute}.scrollable-content ::ng-deep>*{box-sizing:border-box}:host.horizontal{white-space:nowrap}:host.horizontal .scrollable-content{display:flex}:host.horizontal .scrollable-content ::ng-deep>*{flex-shrink:0;flex-grow:0;white-space:initial}:host.horizontal.rtl .scrollable-content ::ng-deep>*{transform:scaleX(-1)}.total-padding{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;opacity:0}:host.horizontal .total-padding{height:100%}\n"] }]
1003
- }], ctorParameters: function () {
1004
- return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
1005
- type: Inject,
1006
- args: [PLATFORM_ID]
1007
- }] }, { type: undefined, decorators: [{
1008
- type: Optional
1009
- }, {
1010
- type: Inject,
1011
- args: ['virtual-scroller-default-options']
1012
- }] }];
1013
- }, propDecorators: { disable: [{
1014
- type: Input
1015
- }], executeRefreshOutsideAngularZone: [{
1016
- type: Input
1017
- }], enableUnequalChildrenSizes: [{
1018
- type: Input
1019
- }], RTL: [{
1020
- type: Input
1021
- }], useMarginInsteadOfTranslate: [{
1022
- type: Input
1023
- }], modifyOverflowStyleOfParentScroll: [{
1024
- type: Input
1025
- }], stripedTable: [{
1026
- type: Input
1027
- }], scrollbarWidth: [{
1028
- type: Input
1029
- }], scrollbarHeight: [{
1030
- type: Input
1031
- }], childWidth: [{
1032
- type: Input
1033
- }], childHeight: [{
1034
- type: Input
1035
- }], ssrChildWidth: [{
1036
- type: Input
1037
- }], ssrChildHeight: [{
1038
- type: Input
1039
- }], ssrViewportWidth: [{
1040
- type: Input
1041
- }], ssrViewportHeight: [{
1042
- type: Input
1043
- }], bufferAmount: [{
1044
- type: Input
1045
- }], scrollAnimationTime: [{
1046
- type: Input
1047
- }], resizeBypassRefreshThreshold: [{
1048
- type: Input
1049
- }], scrollThrottlingTime: [{
1050
- type: Input
1051
- }], scrollDebounceTime: [{
1052
- type: Input
1053
- }], checkResizeInterval: [{
1054
- type: Input
1055
- }], items: [{
1056
- type: Input
1057
- }], compareItems: [{
1058
- type: Input
1059
- }], horizontal: [{
1060
- type: Input
1061
- }], parentScroll: [{
1062
- type: Input
1063
- }], vsChildRectChange: [{
1064
- type: Output
1065
- }], vsUpdate: [{
1066
- type: Output
1067
- }], vsChange: [{
1068
- type: Output
1069
- }], vsStart: [{
1070
- type: Output
1071
- }], vsEnd: [{
1072
- type: Output
1073
- }], contentElementRef: [{
1074
- type: ViewChild,
1075
- args: ['content', { read: ElementRef, static: true }]
1076
- }], invisiblePaddingElementRef: [{
1077
- type: ViewChild,
1078
- args: ['invisiblePadding', { read: ElementRef, static: true }]
1079
- }], headerElementRef: [{
1080
- type: ContentChild,
1081
- args: ['header', { read: ElementRef, static: false }]
1082
- }], containerElementRef: [{
1083
- type: ContentChild,
1084
- args: ['container', { read: ElementRef, static: false }]
1085
- }] } });
1086
- class VirtualScrollerModule {
1087
- }
1088
- VirtualScrollerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: VirtualScrollerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1089
- VirtualScrollerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: VirtualScrollerModule, declarations: [VirtualScrollerComponent], imports: [CommonModule], exports: [VirtualScrollerComponent] });
1090
- VirtualScrollerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: VirtualScrollerModule, providers: [
1091
- {
1092
- provide: 'virtual-scroller-default-options',
1093
- useFactory: VIRTUAL_SCROLLER_DEFAULT_OPTIONS_FACTORY
1094
- }
1095
- ], imports: [CommonModule] });
1096
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: VirtualScrollerModule, decorators: [{
1097
- type: NgModule,
1098
- args: [{
1099
- exports: [VirtualScrollerComponent],
1100
- declarations: [VirtualScrollerComponent],
1101
- imports: [CommonModule],
1102
- providers: [
1103
- {
1104
- provide: 'virtual-scroller-default-options',
1105
- useFactory: VIRTUAL_SCROLLER_DEFAULT_OPTIONS_FACTORY
1106
- }
1107
- ]
1108
- }]
1109
- }] });
1110
-
1111
- class PepSelectionData {
1112
- }
1113
- const DEFAULT_PAGE_SIZE = 50;
1114
-
1115
- class IPepListPagerChangeEvent {
1116
- }
1117
- class PepListPagerComponent {
1118
- set pageIndex(value) {
1119
- this.setPageIndex(value);
1120
- }
1121
- get pageIndex() {
1122
- return this._pageIndex;
1123
- }
1124
- constructor(_changeDetectorRef, layoutService) {
1125
- this._changeDetectorRef = _changeDetectorRef;
1126
- this.layoutService = layoutService;
1127
- this.disabled = false;
1128
- this._pageIndex = 0;
1129
- this.length = 0;
1130
- this.pageSize = DEFAULT_PAGE_SIZE;
1131
- this.pagerChange = new EventEmitter();
1132
- }
1133
- nextPage() {
1134
- if (!this.hasNextPage()) {
1135
- return;
1136
- }
1137
- this.setPageIndex(this.pageIndex + 1);
1138
- }
1139
- previousPage() {
1140
- if (!this.hasPreviousPage()) {
1141
- return;
1142
- }
1143
- this.setPageIndex(this.pageIndex - 1);
1144
- }
1145
- firstPage() {
1146
- if (!this.hasPreviousPage()) {
1147
- return;
1148
- }
1149
- this.setPageIndex(0);
1150
- }
1151
- lastPage() {
1152
- if (!this.hasNextPage()) {
1153
- return;
1154
- }
1155
- this.setPageIndex(this.getNumberOfPages() - 1);
1156
- }
1157
- hasPreviousPage() {
1158
- return this.pageIndex >= 1 && this.pageSize != 0;
1159
- }
1160
- hasNextPage() {
1161
- const maxPageIndex = this.getNumberOfPages() - 1;
1162
- return this.pageIndex < maxPageIndex && this.pageSize != 0;
1163
- }
1164
- getNumberOfPages() {
1165
- if (!this.pageSize) {
1166
- return 0;
1167
- }
1168
- return Math.ceil(this.length / this.pageSize);
1169
- }
1170
- /** Checks whether the buttons for going forwards should be disabled. */
1171
- _nextButtonsDisabled() {
1172
- return this.disabled || !this.hasNextPage();
1173
- }
1174
- /** Checks whether the buttons for going backwards should be disabled. */
1175
- _previousButtonsDisabled() {
1176
- return this.disabled || !this.hasPreviousPage();
1177
- }
1178
- onValueChange(value) {
1179
- const pageNumber = coerceNumberProperty(value);
1180
- this.setPageIndex(pageNumber - 1); // - 1 to convert number into index.
1181
- }
1182
- setPageIndex(newIndex) {
1183
- const previousPageIndex = this.pageIndex;
1184
- if (newIndex >= 0 && newIndex < this.getNumberOfPages()) {
1185
- this._pageIndex = newIndex;
1186
- }
1187
- else {
1188
- this._pageIndex = 0;
1189
- }
1190
- if (this.pageIndex !== previousPageIndex) {
1191
- this._emitChangeEvent(previousPageIndex);
1192
- }
1193
- }
1194
- /** Emits an event notifying that a change of the paginator's properties has been triggered. */
1195
- _emitChangeEvent(previousPageIndex) {
1196
- this.pagerChange.emit({
1197
- previousPageIndex,
1198
- pageIndex: this.pageIndex,
1199
- pageSize: this.pageSize,
1200
- length: this.length,
1201
- });
1202
- }
1203
- }
1204
- PepListPagerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListPagerComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.PepLayoutService }], target: i0.ɵɵFactoryTarget.Component });
1205
- PepListPagerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PepListPagerComponent, selector: "pep-list-pager", inputs: { disabled: "disabled", pageIndex: "pageIndex", length: "length", pageSize: "pageSize" }, outputs: { pagerChange: "pagerChange" }, ngImport: i0, template: "\uFEFF<div class=\"pager-container body-sm\">\n <span class=\"pep-spacing-element\">{{ 'LIST.PAGER_PAGE' | translate }}</span>\n <pep-textbox pepAutoWidth class=\"page-index pep-spacing-element\" [key]=\"'pageIndex'\" [type]=\"'int'\"\n [disabled]=\"disabled\" [xAlignment]=\"'center'\" [renderTitle]=\"false\" [renderError]=\"false\" [renderSymbol]=\"false\"\n [value]=\"pageIndex + 1\" [minValue]=\"1\" [maxValue]=\"this.getNumberOfPages()\"\n [maxFieldCharacters]=\"6\" [mandatory]=\"true\" (valueChange)=\"onValueChange($event)\">\n </pep-textbox>\n <span class=\"pep-spacing-element\">{{ 'LIST.PAGER_OUT_OF' | translate }}</span>\n <span class=\"pep-spacing-element\">{{ getNumberOfPages() }}</span>\n <button mat-button [disabled]=\"disabled || _previousButtonsDisabled()\"\n [ngClass]=\"{ disabled: disabled || _previousButtonsDisabled() }\"\n class=\"pep-button icon-button pep-spacing-element sm weak\" pepRtlDirection pepMenuBlur (click)=\"previousPage()\"\n [title]=\"('LIST.PAGER_PREVIOUS' | translate)\">\n <mat-icon>\n <pep-icon [name]=\"layoutService.isRtl() ? 'arrow_right' : 'arrow_left'\"></pep-icon>\n </mat-icon>\n </button>\n <button mat-button [disabled]=\"disabled || _nextButtonsDisabled()\"\n [ngClass]=\"{ disabled: disabled || _nextButtonsDisabled() }\"\n class=\"pep-button icon-button pep-spacing-element sm weak\" pepRtlDirection pepMenuBlur (click)=\"nextPage()\"\n [title]=\"('LIST.PAGER_NEXT' | translate)\">\n <mat-icon>\n <pep-icon [name]=\"layoutService.isRtl() ? 'arrow_left' : 'arrow_right'\"></pep-icon>\n </mat-icon>\n </button>\n</div>", styles: [".pager-container{display:flex;justify-content:center;align-items:center;height:calc(2rem + calc(var(--pep-spacing-sm, .5rem) * 2));padding:var(--pep-spacing-sm, .5rem)}.pager-container .page-index{min-height:unset;margin-bottom:0}.pager-container .page-index ::ng-deep .mat-form-field-flex,.pager-container .page-index ::ng-deep .mdc-form-field-flex{padding:0 .5rem;min-height:2rem}.pager-container .page-index ::ng-deep .mat-form-field-flex .mat-input-element,.pager-container .page-index ::ng-deep .mat-form-field-flex .mat-mdc-input-element,.pager-container .page-index ::ng-deep .mdc-form-field-flex .mat-input-element,.pager-container .page-index ::ng-deep .mdc-form-field-flex .mat-mdc-input-element{min-width:1.25rem}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i1.PepInputAutoWidthDirective, selector: "[pepAutoWidth]", inputs: ["includePadding"] }, { kind: "directive", type: i1.PepMenuBlurDirective, selector: "[pepMenuBlur]" }, { kind: "directive", type: i1.PepRtlDirectionDirective, selector: "[pepRtlDirection]" }, { kind: "component", type: i5.PepIconComponent, selector: "pep-icon", inputs: ["spin", "name", "fill"] }, { kind: "component", type: i6.PepTextboxComponent, selector: "pep-textbox", inputs: ["key", "value", "minFractionDigits", "maxFractionDigits", "accessory", "label", "placeholder", "type", "mandatory", "disabled", "readonly", "maxFieldCharacters", "hint", "textColor", "xAlignment", "rowSpan", "minValue", "maxValue", "visible", "form", "isActive", "showTitle", "renderTitle", "renderError", "renderSymbol", "layoutType", "parentFieldKey", "regex", "regexError", "isInFocus"], outputs: ["valueChange", "keyup", "validationChange"] }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }] });
1206
- PepListPagerComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListPagerComponent });
1207
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListPagerComponent, decorators: [{
1208
- type: Component,
1209
- args: [{ selector: 'pep-list-pager', template: "\uFEFF<div class=\"pager-container body-sm\">\n <span class=\"pep-spacing-element\">{{ 'LIST.PAGER_PAGE' | translate }}</span>\n <pep-textbox pepAutoWidth class=\"page-index pep-spacing-element\" [key]=\"'pageIndex'\" [type]=\"'int'\"\n [disabled]=\"disabled\" [xAlignment]=\"'center'\" [renderTitle]=\"false\" [renderError]=\"false\" [renderSymbol]=\"false\"\n [value]=\"pageIndex + 1\" [minValue]=\"1\" [maxValue]=\"this.getNumberOfPages()\"\n [maxFieldCharacters]=\"6\" [mandatory]=\"true\" (valueChange)=\"onValueChange($event)\">\n </pep-textbox>\n <span class=\"pep-spacing-element\">{{ 'LIST.PAGER_OUT_OF' | translate }}</span>\n <span class=\"pep-spacing-element\">{{ getNumberOfPages() }}</span>\n <button mat-button [disabled]=\"disabled || _previousButtonsDisabled()\"\n [ngClass]=\"{ disabled: disabled || _previousButtonsDisabled() }\"\n class=\"pep-button icon-button pep-spacing-element sm weak\" pepRtlDirection pepMenuBlur (click)=\"previousPage()\"\n [title]=\"('LIST.PAGER_PREVIOUS' | translate)\">\n <mat-icon>\n <pep-icon [name]=\"layoutService.isRtl() ? 'arrow_right' : 'arrow_left'\"></pep-icon>\n </mat-icon>\n </button>\n <button mat-button [disabled]=\"disabled || _nextButtonsDisabled()\"\n [ngClass]=\"{ disabled: disabled || _nextButtonsDisabled() }\"\n class=\"pep-button icon-button pep-spacing-element sm weak\" pepRtlDirection pepMenuBlur (click)=\"nextPage()\"\n [title]=\"('LIST.PAGER_NEXT' | translate)\">\n <mat-icon>\n <pep-icon [name]=\"layoutService.isRtl() ? 'arrow_left' : 'arrow_right'\"></pep-icon>\n </mat-icon>\n </button>\n</div>", styles: [".pager-container{display:flex;justify-content:center;align-items:center;height:calc(2rem + calc(var(--pep-spacing-sm, .5rem) * 2));padding:var(--pep-spacing-sm, .5rem)}.pager-container .page-index{min-height:unset;margin-bottom:0}.pager-container .page-index ::ng-deep .mat-form-field-flex,.pager-container .page-index ::ng-deep .mdc-form-field-flex{padding:0 .5rem;min-height:2rem}.pager-container .page-index ::ng-deep .mat-form-field-flex .mat-input-element,.pager-container .page-index ::ng-deep .mat-form-field-flex .mat-mdc-input-element,.pager-container .page-index ::ng-deep .mdc-form-field-flex .mat-input-element,.pager-container .page-index ::ng-deep .mdc-form-field-flex .mat-mdc-input-element{min-width:1.25rem}\n"] }]
1210
- }, {
1211
- type: Injectable
1212
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.PepLayoutService }]; }, propDecorators: { disabled: [{
1213
- type: Input
1214
- }], pageIndex: [{
1215
- type: Input
1216
- }], length: [{
1217
- type: Input
1218
- }], pageSize: [{
1219
- type: Input
1220
- }], pagerChange: [{
1221
- type: Output
1222
- }] } });
1223
-
1224
- class PepListComponent {
1225
- set sorting(value) {
1226
- this.sortBy = (value === null || value === void 0 ? void 0 : value.sortBy) || '';
1227
- this.isAsc = (value === null || value === void 0 ? void 0 : value.sortBy.length) > 0 ? value.isAsc : this.isAsc;
1228
- }
1229
- get sorting() {
1230
- return {
1231
- sortBy: this.sortBy,
1232
- isAsc: this.isAsc
1233
- };
1234
- }
1235
- set viewType(value) {
1236
- this._viewType = value;
1237
- this.isTable = value === 'table';
1238
- }
1239
- get viewType() {
1240
- return this._viewType;
1241
- }
1242
- set parentScroll(value) {
1243
- this._parentScroll = value;
1244
- }
1245
- get parentScroll() {
1246
- return this._parentScroll;
1247
- }
1248
- set lockEvents(value) {
1249
- this._lockEvents = value;
1250
- if (this._lockEvents) {
1251
- this.renderer.addClass(this.hostElement.nativeElement, 'lock-events');
1252
- }
1253
- else {
1254
- this.renderer.removeClass(this.hostElement.nativeElement, 'lock-events');
1255
- }
1256
- }
1257
- get lockEvents() {
1258
- return this._lockEvents;
1259
- }
1260
- set useAsWebComponent(value) {
1261
- this._useAsWebComponent = value;
1262
- if (value) {
1263
- this.exportFunctionsOnHostElement();
1264
- }
1265
- }
1266
- get useAsWebComponent() {
1267
- return this._useAsWebComponent;
1268
- }
1269
- get layout() {
1270
- return this._layout;
1271
- }
1272
- get items() {
1273
- return this._items;
1274
- }
1275
- get loadingItemsFromApi() {
1276
- return this._loadingItemsFromApi;
1277
- }
1278
- constructor(hostElement, layoutService, sessionService, cd, renderer, zone) {
1279
- this.hostElement = hostElement;
1280
- this.layoutService = layoutService;
1281
- this.sessionService = sessionService;
1282
- this.cd = cd;
1283
- this.renderer = renderer;
1284
- this.zone = zone;
1285
- this.cacheSize = -1;
1286
- this.noDataFoundMsg = null;
1287
- this.selectionTypeForActions = 'multi';
1288
- this.showCardSelection = false;
1289
- this.hideAllSelectionInMulti = false;
1290
- this.cardSize = 'md';
1291
- this.tableViewType = 'regular';
1292
- this._viewType = '';
1293
- this.firstFieldAsLink = false;
1294
- this.supportSorting = true;
1295
- this.supportSortingFields = undefined;
1296
- this.supportResizing = true;
1297
- this._parentScroll = null;
1298
- this.disabled = false;
1299
- this._lockEvents = false;
1300
- this.lockItemInnerEvents = false;
1301
- this.printMode = false;
1302
- this.isReport = false;
1303
- this.zebraStripes = false;
1304
- this.totalsRow = [];
1305
- this.pagerType = 'scroll';
1306
- this.pageSize = DEFAULT_PAGE_SIZE;
1307
- this.pageIndex = 0;
1308
- // @Input() startIndex = 0;
1309
- this.bufferAmount = 0;
1310
- this.scrollAnimationTime = 500;
1311
- this.scrollDebounceTime = 0;
1312
- this.scrollThrottlingTime = 0;
1313
- this.SEPARATOR = ',';
1314
- this._useAsWebComponent = false;
1315
- this.itemClick = new EventEmitter();
1316
- this.fieldClick = new EventEmitter();
1317
- this.valueChange = new EventEmitter();
1318
- this.sortingChange = new EventEmitter();
1319
- this.selectedItemsChange = new EventEmitter();
1320
- this.selectedItemChange = new EventEmitter();
1321
- this.selectAllClick = new EventEmitter();
1322
- // @Output()
1323
- // singleActionClick: EventEmitter<any> = new EventEmitter<any>();
1324
- this.listLoad = new EventEmitter();
1325
- this.loadItems = new EventEmitter();
1326
- this.loadPage = new EventEmitter();
1327
- this.startIndexChange = new EventEmitter();
1328
- this._layout = null;
1329
- this.totalRows = -1;
1330
- this.isTable = false;
1331
- this.hasColumnWidthOfTypePercentage = true;
1332
- this._items = null;
1333
- this.itemsCounter = 0;
1334
- this.isAllSelected = false;
1335
- this.selectedItems = new Map();
1336
- this.unSelectedItems = new Map();
1337
- this.selectedItemId = '';
1338
- this.hoveredItemId = '';
1339
- this.containerWidth = 0;
1340
- this.tableScrollWidth = 0;
1341
- this._loadingItemsFromApi = false;
1342
- this.deviceHasMouse = false;
1343
- // For resize
1344
- this.pressedColumn = '';
1345
- this.pressedColumnIndex = -1;
1346
- this.startX = 0;
1347
- this.startWidth = 0;
1348
- this.tableStartWidth = 0;
1349
- this.lastColumnsWidth = [];
1350
- // For sorting
1351
- this.isAsc = false;
1352
- this.sortBy = '';
1353
- this.isUserSelected = false;
1354
- this.checkForChanges = null;
1355
- this.calculatedObjectHeight = 'auto';
1356
- // this.nativeWindow = window;
1357
- this.layoutService.onResize$.subscribe((size) => {
1358
- this.screenSize = size;
1359
- });
1360
- this.layoutService.onMouseOver$.subscribe((deviceHasMouse) => {
1361
- this.deviceHasMouse = deviceHasMouse;
1362
- });
1363
- }
1364
- ngOnInit() {
1365
- this.containerWidth = 0;
1366
- this.deviceHasMouse = this.layoutService.getDeviceHasMouse();
1367
- }
1368
- ngOnChanges(changes) {
1369
- if (this.containerWidth <= 0) {
1370
- this.setContainerWidth();
1371
- }
1372
- }
1373
- ngOnDestroy() {
1374
- // if (this.valueChange) {
1375
- // this.valueChange.unsubscribe();
1376
- // }
1377
- // if (this.loadItems) {
1378
- // this.loadItems.unsubscribe();
1379
- // }
1380
- // if (this.loadPage) {
1381
- // this.loadPage.unsubscribe();
1382
- // }
1383
- // if (this.sortingChange) {
1384
- // this.sortingChange.unsubscribe();
1385
- // }
1386
- // if (this.fieldClick) {
1387
- // this.fieldClick.unsubscribe();
1388
- // }
1389
- // if (this.itemClick) {
1390
- // this.itemClick.unsubscribe();
1391
- // }
1392
- // if (this.listLoad) {
1393
- // this.listLoad.unsubscribe();
1394
- // }
1395
- this.saveSortingToSession();
1396
- }
1397
- getCachedItemsNumber() {
1398
- return this.cacheSize >= 0 ? this.cacheSize : PepListComponent.TOP_ITEMS_ARRAY;
1399
- }
1400
- getScrollingElement() {
1401
- var _a;
1402
- return this.parentScroll ? this.parentScroll : (_a = this.virtualScroller) === null || _a === void 0 ? void 0 : _a.contentElementRef.nativeElement.parentElement;
1403
- }
1404
- scrollToTop(animate = true) {
1405
- const scrollingElement = this.getScrollingElement();
1406
- if (scrollingElement) {
1407
- const scrollTop = 0;
1408
- // totally disable animate
1409
- if (!animate || this.scrollAnimationTime === 0) {
1410
- if (scrollingElement instanceof Window) {
1411
- window.scrollTo(0, scrollTop);
1412
- }
1413
- else {
1414
- scrollingElement.scrollTop = scrollTop;
1415
- }
1416
- }
1417
- else {
1418
- let animationRequest;
1419
- const isWindow = scrollingElement instanceof Window;
1420
- const currentScrollTop = scrollingElement instanceof Window
1421
- ? window.pageYOffset
1422
- : scrollingElement.scrollTop;
1423
- if (this.currentTween !== undefined) {
1424
- this.currentTween.stop();
1425
- }
1426
- this.currentTween = new tween.Tween({ scrollTop: currentScrollTop })
1427
- .to({ scrollTop }, this.scrollAnimationTime)
1428
- .easing(tween.Easing.Quadratic.Out)
1429
- .onUpdate((data) => {
1430
- if (isNaN(data.scrollTop)) {
1431
- return;
1432
- }
1433
- if (isWindow) {
1434
- window.scrollTo(0, data.scrollTop);
1435
- }
1436
- else {
1437
- this.renderer.setProperty(scrollingElement, 'scrollTop', data.scrollTop);
1438
- }
1439
- })
1440
- .onStop(() => {
1441
- cancelAnimationFrame(animationRequest);
1442
- })
1443
- .start();
1444
- const animate = (time) => {
1445
- this.currentTween.update(time);
1446
- if (this.currentTween._object.scrollTop !== scrollTop) {
1447
- this.zone.runOutsideAngular(() => {
1448
- animationRequest = requestAnimationFrame(animate);
1449
- });
1450
- }
1451
- };
1452
- animate();
1453
- }
1454
- }
1455
- }
1456
- getSelectionCheckBoxWidth() {
1457
- return this.selectionTypeForActions === 'multi' ? 44 : (this.selectionTypeForActions === 'single' ? 44 : 0);
1458
- }
1459
- setContainerWidth() {
1460
- if (!this.hostElement.nativeElement.parentElement) {
1461
- return;
1462
- }
1463
- const rowHeight = 40; // the table row height (2.5rem * 16font-size).
1464
- const style = getComputedStyle(this.hostElement.nativeElement.parentElement);
1465
- // The container-fluid class padding left + right + border
1466
- const containerFluidSpacing = parseInt(style.paddingLeft, 10) + parseInt(style.paddingRight, 10);
1467
- const parentContainer = this.hostElement.nativeElement.parentElement.parentElement > 0
1468
- ? this.hostElement.nativeElement.parentElement.parentElement
1469
- : this.hostElement.nativeElement.parentElement;
1470
- // Calculate if vertical scroll should appear, if so set the scroll width. (this.totalRows + 1) + 1 is for the header row.
1471
- this.tableScrollWidth = parentContainer.clientHeight < rowHeight * (this.totalRows + 1)
1472
- ? this.layoutService.getScrollbarWidth()
1473
- : 0;
1474
- // The selectionCheckBoxWidth width + containerFluidSpacing + this.tableScrollWidth.
1475
- const rowHeaderWidthToSub = containerFluidSpacing + this.getSelectionCheckBoxWidth() + this.tableScrollWidth;
1476
- this.containerWidth = parentContainer.offsetWidth - rowHeaderWidthToSub;
1477
- }
1478
- saveSortingToSession() {
1479
- this.sessionService.setObject(PepListComponent.SORT_BY_STATE_KEY, this.sortBy);
1480
- this.sessionService.setObject(PepListComponent.ASCENDING_STATE_KEY, this.isAsc);
1481
- }
1482
- getTopItems() {
1483
- return this.isTable
1484
- ? PepListComponent.TOP_ITEMS_TABLE
1485
- : PepListComponent.TOP_ITEMS_THUMBNAILS;
1486
- }
1487
- disableScroll(disable) {
1488
- if (disable) {
1489
- this.renderer.addClass(this.hostElement.nativeElement.parentElement, 'lock-events');
1490
- }
1491
- else {
1492
- this.renderer.removeClass(this.hostElement.nativeElement.parentElement, 'lock-events');
1493
- }
1494
- }
1495
- toggleLoadingItemsFropApi(loadingItemsFromApi) {
1496
- this._loadingItemsFromApi = loadingItemsFromApi;
1497
- // this.disableScroll(loadingItemsFromApi);
1498
- }
1499
- updateCurrentPageItems(startIndex, endIndex) {
1500
- this.currentPageItems = this.items.slice(startIndex, endIndex);
1501
- }
1502
- setSelectionItems(itemId, uniqItemId, isChecked) {
1503
- // Set selected item checkbox
1504
- if (this.isAllSelected) {
1505
- if (isChecked) {
1506
- this.unSelectedItems.delete(itemId);
1507
- this.selectedItems.set(itemId, uniqItemId);
1508
- }
1509
- else {
1510
- this.selectedItems.delete(itemId);
1511
- this.unSelectedItems.set(itemId, uniqItemId);
1512
- }
1513
- }
1514
- else {
1515
- if (isChecked) {
1516
- this.unSelectedItems.delete(itemId);
1517
- this.selectedItems.set(itemId, uniqItemId);
1518
- }
1519
- else {
1520
- this.selectedItems.delete(itemId);
1521
- this.unSelectedItems.set(itemId, uniqItemId);
1522
- }
1523
- }
1524
- }
1525
- getUniqItemId(itemId, itemType = '') {
1526
- return itemId + this.SEPARATOR + itemType;
1527
- }
1528
- setLayout() {
1529
- if (this.totalRows === 0 ||
1530
- !this._layout ||
1531
- !this._layout.ControlFields ||
1532
- this._layout.ControlFields.length === 0) {
1533
- return;
1534
- }
1535
- this._layout.ControlFields.forEach((cf) => {
1536
- if (cf.ColumnWidth === 0) {
1537
- cf.ColumnWidth = 10;
1538
- }
1539
- if (this.isTable &&
1540
- (cf.FieldType === FIELD_TYPE.Image ||
1541
- // cf.FieldType === FIELD_TYPE.Indicators || ???
1542
- cf.FieldType === FIELD_TYPE.Signature ||
1543
- cf.FieldType === FIELD_TYPE.NumberIntegerQuantitySelector ||
1544
- cf.FieldType === FIELD_TYPE.NumberRealQuantitySelector ||
1545
- cf.FieldType === FIELD_TYPE.NumberIntegerForMatrix ||
1546
- cf.FieldType === FIELD_TYPE.NumberRealForMatrix ||
1547
- cf.FieldType === FIELD_TYPE.Package ||
1548
- cf.ApiName === 'UnitsQuantity' ||
1549
- cf.ApiName === 'QuantitySelector')) {
1550
- cf.Layout.XAlignment = 3;
1551
- }
1552
- });
1553
- if (!this.cd['destroyed']) {
1554
- this.cd.detectChanges();
1555
- }
1556
- // Set the container width.
1557
- if (this.containerWidth <= 0) {
1558
- this.setContainerWidth();
1559
- }
1560
- const isLastColumnsWidthSet = this.setLastColumnsWidth();
1561
- // Set the layout only if the last columns width couldn't set.
1562
- if (!isLastColumnsWidthSet) {
1563
- this.calcColumnsWidth();
1564
- }
1565
- this.checkForChanges = new Date().getTime();
1566
- }
1567
- setLastColumnsWidth() {
1568
- let res = false;
1569
- let totalCalcColsWidth = 0;
1570
- let widthToSet = 'inherit';
1571
- if (this.lastColumnsWidth.length > 0) {
1572
- // Check if this is the same UI control for table.
1573
- if (this.lastColumnsWidth.length === this._layout.ControlFields.length) {
1574
- let uiControlsAreTheSame = true;
1575
- for (let index = 0; index < this._layout.ControlFields.length; index++) {
1576
- const uiControlField = this._layout.ControlFields[index];
1577
- if (uiControlField.ApiName !== this.lastColumnsWidth[index].columnAPIName) {
1578
- uiControlsAreTheSame = false;
1579
- break;
1580
- }
1581
- }
1582
- if (uiControlsAreTheSame) {
1583
- for (let index = 0; index < this._layout.ControlFields.length; index++) {
1584
- const uiControlField = this._layout.ControlFields[index];
1585
- uiControlField.calcColumnWidth = this.lastColumnsWidth[index].calcColumnWidth;
1586
- uiControlField.calcTitleColumnWidthString = this.lastColumnsWidth[index].calcTitleColumnWidthString;
1587
- uiControlField.calcColumnWidthString = this.lastColumnsWidth[index].calcColumnWidthString;
1588
- totalCalcColsWidth += this.lastColumnsWidth[index].calcColumnWidth;
1589
- }
1590
- widthToSet = (totalCalcColsWidth + this.getSelectionCheckBoxWidth()) + 'px';
1591
- console.log(`setLastColumnsWidth -> widthToSet: ${widthToSet} *** totalCalcColsWidth: ${totalCalcColsWidth}`);
1592
- this.setColumnsWidth(widthToSet);
1593
- res = true;
1594
- }
1595
- }
1596
- }
1597
- return res;
1598
- }
1599
- setVirtualScrollWidth(widthToSet) {
1600
- if (this.virtualScroller) {
1601
- this.renderer.setStyle(this.virtualScroller.contentElementRef.nativeElement, 'width', widthToSet === 'inherit' ? '100%' : widthToSet);
1602
- }
1603
- }
1604
- setColumnsWidth(widthToSet) {
1605
- // this.renderer.setStyle(
1606
- // this.hostElement.nativeElement,
1607
- // 'width',
1608
- // widthToSet
1609
- // );
1610
- this.renderer.setStyle(this.listContainerResizableElementRef.nativeElement, 'width', widthToSet);
1611
- if (this.isTable) {
1612
- this.setVirtualScrollWidth(widthToSet);
1613
- }
1614
- else {
1615
- // Do this only after UI is change cause the property isTable is Input and can refresh after this thread.
1616
- setTimeout(() => {
1617
- this.setVirtualScrollWidth(widthToSet);
1618
- }, 0);
1619
- }
1620
- }
1621
- calcColumnsWidth() {
1622
- const fixedMultiple = 3.78; // for converting em to pixel.
1623
- const length = this._layout.ControlFields.length;
1624
- // Is table AND there is at least one column of width type of percentage.
1625
- if (this.isTable) {
1626
- if (this._layout && this._layout.ControlFields) {
1627
- this.hasColumnWidthOfTypePercentage =
1628
- this._layout.ControlFields.filter((cf) => cf.ColumnWidthType === 1).length === 0;
1629
- }
1630
- }
1631
- // If the columns size is fixed and the total is small then the container change it to percentage.
1632
- if (!this.hasColumnWidthOfTypePercentage) {
1633
- const totalFixedColsWidth = this._layout.ControlFields.map((cf) => cf.ColumnWidth * fixedMultiple).reduce((sum, current) => sum + current);
1634
- if (window.innerWidth > totalFixedColsWidth) {
1635
- this.hasColumnWidthOfTypePercentage = true;
1636
- }
1637
- }
1638
- let totalCalcColsWidth = 0;
1639
- let widthToSet = 'inherit';
1640
- // Calc by percentage
1641
- if (this.hasColumnWidthOfTypePercentage) {
1642
- const totalColsWidth = this._layout.ControlFields.map((cf) => cf.ColumnWidth).reduce((sum, current) => sum + current);
1643
- for (let index = 0; index < length; index++) {
1644
- const uiControlField = this._layout.ControlFields[index];
1645
- const calcColumnWidthPercentage = (100 / totalColsWidth) * uiControlField.ColumnWidth;
1646
- uiControlField.calcColumnWidth = Math.floor((this.containerWidth * calcColumnWidthPercentage) / 100);
1647
- if (index === length - 1) {
1648
- uiControlField.calcTitleColumnWidthString = uiControlField.calcColumnWidthString = 'calc(100% - ' + totalCalcColsWidth + 'px)'; // For 100%
1649
- }
1650
- else {
1651
- uiControlField.calcTitleColumnWidthString = uiControlField.calcColumnWidthString = uiControlField.calcColumnWidth + 'px';
1652
- totalCalcColsWidth += uiControlField.calcColumnWidth;
1653
- }
1654
- }
1655
- }
1656
- else {
1657
- for (let index = 0; index < length; index++) {
1658
- const uiControlField = this._layout
1659
- .ControlFields[index];
1660
- const currentFixedWidth = Math.floor(uiControlField.ColumnWidth * fixedMultiple);
1661
- if (index === length - 1) {
1662
- uiControlField.calcTitleColumnWidthString = uiControlField.calcColumnWidthString = currentFixedWidth + 'px';
1663
- }
1664
- else {
1665
- uiControlField.calcTitleColumnWidthString = uiControlField.calcColumnWidthString = currentFixedWidth + 'px';
1666
- }
1667
- totalCalcColsWidth += currentFixedWidth;
1668
- }
1669
- widthToSet = (totalCalcColsWidth + this.getSelectionCheckBoxWidth()) + 'px';
1670
- }
1671
- console.log(`calcColumnsWidth -> widthToSet: ${widthToSet} *** totalCalcColsWidth: ${totalCalcColsWidth}`);
1672
- this.setColumnsWidth(widthToSet);
1673
- }
1674
- calcObjectHeight() {
1675
- setTimeout(() => {
1676
- if (this.virtualScroller) {
1677
- const content = this.virtualScroller.getContent();
1678
- console.log(`content.children.length: ${content.children.length}`);
1679
- if (content.children.length > 0) {
1680
- const rect = this.virtualScroller.getElementSize(content.children[0]);
1681
- this.calculatedObjectHeight = rect.height + 'px';
1682
- console.log(`this.calculatedObjectHeight: ${this.calculatedObjectHeight}`);
1683
- }
1684
- }
1685
- this.disableScroll(false);
1686
- }, 1000);
1687
- }
1688
- initResizeData() {
1689
- this.startX = 0;
1690
- this.startWidth = 0;
1691
- this.tableStartWidth = 0;
1692
- this.pressedColumn = '';
1693
- this.pressedColumnIndex = -1;
1694
- }
1695
- getParent(el, parentSelector) {
1696
- // If no parentSelector defined will bubble up all the way to *document*
1697
- if (parentSelector === undefined) {
1698
- parentSelector = document;
1699
- }
1700
- const parent = [];
1701
- let p = el.parentNode;
1702
- while (p &&
1703
- p.className !== '' &&
1704
- p.className.indexOf(parentSelector) === -1 &&
1705
- parentSelector !== document) {
1706
- const o = p;
1707
- p = o.parentNode;
1708
- }
1709
- if (p.className.indexOf(parentSelector) > -1) {
1710
- parent.push(p); // Push that parentSelector you wanted to stop at
1711
- }
1712
- return parent;
1713
- }
1714
- cleanItems() {
1715
- this.itemsCounter = 0;
1716
- this._items =
1717
- this.totalRows > 0 ? Array(this.totalRows) : [];
1718
- this.currentPageItems = [];
1719
- this.calculatedObjectHeight = 'auto';
1720
- }
1721
- initVariablesFromSession(items) {
1722
- const selectedItemsObject = this.sessionService.getObject(PepListComponent.SELECTED_ITEMS_STATE_KEY);
1723
- const selectedItemsFromMap = selectedItemsObject && selectedItemsObject.length > 0
1724
- ? new Map(selectedItemsObject)
1725
- : null;
1726
- if (selectedItemsFromMap != null &&
1727
- typeof selectedItemsFromMap.size !== 'undefined' &&
1728
- selectedItemsFromMap.size > 0) {
1729
- this.selectedItems = selectedItemsFromMap;
1730
- this.sessionService.removeObject(PepListComponent.SELECTED_ITEMS_STATE_KEY);
1731
- }
1732
- else {
1733
- this.selectedItems.clear();
1734
- }
1735
- const unSelectedItemsObject = this.sessionService.getObject(PepListComponent.UN_SELECTED_ITEMS_STATE_KEY);
1736
- const unSelectedItemsMap = unSelectedItemsObject && unSelectedItemsObject.length > 0
1737
- ? new Map(unSelectedItemsObject)
1738
- : null;
1739
- if (unSelectedItemsMap != null &&
1740
- typeof unSelectedItemsMap.size !== 'undefined' &&
1741
- unSelectedItemsMap.size > 0) {
1742
- this.unSelectedItems = unSelectedItemsMap;
1743
- this.sessionService.removeObject(PepListComponent.UN_SELECTED_ITEMS_STATE_KEY);
1744
- }
1745
- else {
1746
- this.unSelectedItems.clear();
1747
- }
1748
- const isAllSelected = this.sessionService.getObject(PepListComponent.ALL_SELECTED_STATE_KEY);
1749
- if (isAllSelected != null) {
1750
- // Comment this in version 0.4.2-beta.103, I don't know why we need this (&& this.getIsAllSelected(items))
1751
- // this.isAllSelected = isAllSelected && this.getIsAllSelected(items);
1752
- this.isAllSelected = isAllSelected;
1753
- this.sessionService.removeObject(PepListComponent.ALL_SELECTED_STATE_KEY);
1754
- }
1755
- else {
1756
- this.isAllSelected = false;
1757
- }
1758
- const sortBy = this.sessionService.getObject(PepListComponent.SORT_BY_STATE_KEY);
1759
- if (sortBy && sortBy !== '') {
1760
- this.sortBy = sortBy;
1761
- this.sessionService.removeObject(PepListComponent.SORT_BY_STATE_KEY);
1762
- }
1763
- else {
1764
- this.sortBy = '';
1765
- }
1766
- const isAsc = this.sessionService.getObject(PepListComponent.ASCENDING_STATE_KEY);
1767
- if (isAsc != null) {
1768
- this.isAsc = isAsc;
1769
- this.sessionService.removeObject(PepListComponent.ASCENDING_STATE_KEY);
1770
- }
1771
- else {
1772
- this.isAsc = true;
1773
- }
1774
- }
1775
- getIsAllSelected(items) {
1776
- var _a;
1777
- let result = true;
1778
- if (((_a = this.selectedItems) === null || _a === void 0 ? void 0 : _a.size) > 0 && (items === null || items === void 0 ? void 0 : items.length) > 0) {
1779
- for (const item of items) {
1780
- if (!(item && this.selectedItems.has(item === null || item === void 0 ? void 0 : item.UID.toString()))) {
1781
- result = false;
1782
- break;
1783
- }
1784
- }
1785
- }
1786
- else {
1787
- result = false;
1788
- }
1789
- return result;
1790
- }
1791
- getNumberOfStartItems() {
1792
- let numberOfStartItems = 20;
1793
- if (this.screenSize === PepScreenSizeType.XL ||
1794
- this.screenSize === PepScreenSizeType.LG) {
1795
- numberOfStartItems = this.isTable ? 50 : 40;
1796
- }
1797
- else if (this.screenSize === PepScreenSizeType.MD) {
1798
- numberOfStartItems = this.isTable ? 30 : 20;
1799
- }
1800
- else if (this.screenSize === PepScreenSizeType.SM) {
1801
- numberOfStartItems = this.isTable ? 20 : 10;
1802
- }
1803
- else if (this.screenSize === PepScreenSizeType.XS) {
1804
- numberOfStartItems = this.isTable ? 15 : 5;
1805
- }
1806
- return numberOfStartItems;
1807
- }
1808
- setItemClicked(itemId, isSelectableForActions, itemType, isChecked) {
1809
- const uniqItemId = this.getUniqItemId(itemId, itemType);
1810
- // select the selected item.
1811
- if (isChecked) {
1812
- // Set seleted item
1813
- this.selectedItemId = uniqItemId;
1814
- }
1815
- else {
1816
- if (this.selectedItemId === uniqItemId) {
1817
- this.selectedItemId = '';
1818
- }
1819
- }
1820
- if (this.selectionTypeForActions === 'single') {
1821
- this.selectedItemsChange.emit(this.selectedItemId.length === 0 ? 0 : 1);
1822
- }
1823
- else if (this.selectionTypeForActions === 'multi') {
1824
- if (isSelectableForActions) {
1825
- this.setSelectionItems(itemId, uniqItemId, isChecked);
1826
- const currentList = this.isAllSelected
1827
- ? this.unSelectedItems
1828
- : this.selectedItems;
1829
- const currentListCount = this.isAllSelected
1830
- ? this.totalRows - currentList.size
1831
- : currentList.size;
1832
- this.selectedItemsChange.emit(currentListCount);
1833
- }
1834
- }
1835
- // Raise selected item change event
1836
- if (this.selectionTypeForActions !== 'none') {
1837
- this.selectedItemChange.emit({
1838
- id: itemId,
1839
- selected: isChecked,
1840
- });
1841
- }
1842
- }
1843
- exportFunctionsOnHostElement() {
1844
- // This is for web component usage for use those functions.
1845
- this.hostElement.nativeElement.clear = this.clear.bind(this);
1846
- this.hostElement.nativeElement.initListData = this.initListData.bind(this);
1847
- this.hostElement.nativeElement.updateItems = this.updateItems.bind(this);
1848
- this.hostElement.nativeElement.updatePage = this.updatePage.bind(this);
1849
- this.hostElement.nativeElement.updateItem = this.updateItem.bind(this);
1850
- }
1851
- // For refresh the UI when change the is selectable for action on item.
1852
- getisItemDisabled(item) {
1853
- return this.printMode || this.lockItemInnerEvents || (item && !item.IsSelectableForActions);
1854
- }
1855
- getIsAllSelectedForActions() {
1856
- var _a;
1857
- let res = false;
1858
- if (this.isAllSelected) {
1859
- if (this.unSelectedItems.size === 0) {
1860
- res = true;
1861
- }
1862
- }
1863
- else {
1864
- if ((_a = this.virtualScroller) === null || _a === void 0 ? void 0 : _a.viewPortItems) {
1865
- if (this.selectedItems.size === this.totalRows) {
1866
- res = this.getIsAllSelected(this.virtualScroller.viewPortItems);
1867
- }
1868
- else if (this.selectedItems.size < this.totalRows) {
1869
- for (const item of this.virtualScroller.viewPortItems) {
1870
- res =
1871
- item && this.selectedItems.has(item === null || item === void 0 ? void 0 : item.UID.toString());
1872
- if (!res) {
1873
- break;
1874
- }
1875
- }
1876
- }
1877
- }
1878
- }
1879
- return res;
1880
- }
1881
- setIsAllSelected(isChecked) {
1882
- if (this.selectionTypeForActions === 'multi') {
1883
- this.selectAllCB.checked = isChecked;
1884
- this.isAllSelected = isChecked;
1885
- }
1886
- }
1887
- selectAllItemsForActions(e) {
1888
- // For material checkbox || radio.
1889
- const isChecked = e.source.checked;
1890
- // Indeterminate mode
1891
- let isIndeterminate = false;
1892
- const currentList = this.isAllSelected
1893
- ? this.unSelectedItems
1894
- : this.selectedItems;
1895
- if (currentList.size > 0) {
1896
- isIndeterminate = true;
1897
- this.isAllSelected = false;
1898
- this.selectedItemsChange.emit(0);
1899
- e.source.checked = false;
1900
- }
1901
- this.selectedItems.clear();
1902
- this.unSelectedItems.clear();
1903
- if (!isIndeterminate) {
1904
- this.isAllSelected = isChecked;
1905
- this.selectAllClick.emit(isChecked);
1906
- if (this.selectionTypeForActions === 'multi') {
1907
- if (!isChecked) {
1908
- this.selectedItemsChange.emit(0);
1909
- this.selectedItemId = '';
1910
- }
1911
- else {
1912
- const filteredItems = this.items.filter((item) => item && item.IsSelectableForActions);
1913
- this.selectedItemsChange.emit(filteredItems.length);
1914
- }
1915
- }
1916
- }
1917
- else {
1918
- // Remove all
1919
- if (this.selectionTypeForActions === 'multi') {
1920
- this.selectAllClick.emit(false);
1921
- }
1922
- }
1923
- }
1924
- raiseStartIndexChange(startIndex = 0) {
1925
- // this.startIndex = startIndex;
1926
- this.startIndexChange.emit({ startIndex });
1927
- }
1928
- getIsItemSelected(item) {
1929
- let isSelected = false;
1930
- if (item) {
1931
- if (this.selectionTypeForActions === 'single') {
1932
- isSelected = this.selectedItemId === this.getUniqItemId(item.UID, item.Type.toString());
1933
- }
1934
- else if (this.selectionTypeForActions === 'multi') {
1935
- if (item.IsSelectableForActions) {
1936
- isSelected = (this.isAllSelected && !this.unSelectedItems.has(item.UID)) || this.selectedItems.has(item.UID);
1937
- }
1938
- }
1939
- }
1940
- return isSelected;
1941
- }
1942
- selectItemForActions(e, itemId, isSelectableForActions, itemType = '') {
1943
- // For material checkbox || radio.
1944
- const isChecked = e.source.checked;
1945
- this.setItemClicked(itemId, isSelectableForActions, itemType, isChecked);
1946
- }
1947
- itemClicked(e, item) {
1948
- // Set seleted item
1949
- const itemId = item === null || item === void 0 ? void 0 : item.UID.toString();
1950
- const itemType = item === null || item === void 0 ? void 0 : item.Type.toString();
1951
- let isChecked = false;
1952
- if (item && item.IsSelectableForActions) {
1953
- this.selectedItemId = this.getUniqItemId(itemId, itemType);
1954
- isChecked = true;
1955
- }
1956
- // TODO - need to check what we want to do line view
1957
- if (this.isTable || this.viewType === 'cards') {
1958
- if (this.selectionTypeForActions === 'single') {
1959
- this.setItemClicked(itemId, item.IsSelectableForActions, itemType, isChecked);
1960
- }
1961
- else if (this.selectionTypeForActions === 'none') {
1962
- // Just mark the row as highlighted
1963
- this.setItemClicked(itemId, item.IsSelectableForActions, itemType, true);
1964
- }
1965
- }
1966
- else {
1967
- if (this.disabled) {
1968
- return;
1969
- }
1970
- }
1971
- this.itemClick.emit({ source: item, viewType: this.viewType });
1972
- }
1973
- onTableRowMouseEnter(event, itemId, itemType) {
1974
- if (!this.deviceHasMouse) {
1975
- return;
1976
- }
1977
- const uniqItemId = this.getUniqItemId(itemId, itemType);
1978
- this.hoveredItemId = uniqItemId;
1979
- }
1980
- onTableRowMouseLeave(event, itemId, itemType) {
1981
- this.hoveredItemId = '';
1982
- }
1983
- onTabKeydown(event, itemId, itemType) {
1984
- const keyboardEvent = event;
1985
- if (keyboardEvent.key === 'Tab') {
1986
- const jumpToNextRow = !keyboardEvent.shiftKey;
1987
- const eventTarget = event.target || event.srcElement;
1988
- const isLastColumn = this.isLastColunm(eventTarget, 'table-cell', jumpToNextRow);
1989
- // If the last column then go to the next row.
1990
- if (isLastColumn) {
1991
- const currentRowEL = this.getParentByClass(eventTarget, 'table-row');
1992
- const nextRow = jumpToNextRow ? currentRowEL === null || currentRowEL === void 0 ? void 0 : currentRowEL.nextElementSibling : currentRowEL === null || currentRowEL === void 0 ? void 0 : currentRowEL.previousElementSibling;
1993
- if (nextRow !== null) {
1994
- // Remove the highlight from the current row.
1995
- this.renderer.removeClass(nextRow, 'highlighted');
1996
- // Highlight the next row.
1997
- this.renderer.addClass(nextRow, 'highlighted');
1998
- // Click on the first cell of the next row.
1999
- const indexOfFocusCell = jumpToNextRow ? 0 : nextRow.querySelectorAll('.table-cell').length - 1;
2000
- nextRow.querySelectorAll('.table-cell')[indexOfFocusCell].click();
2001
- setTimeout(() => {
2002
- nextRow.querySelectorAll('.table-cell')[indexOfFocusCell].focus();
2003
- }, 100);
2004
- }
2005
- }
2006
- }
2007
- }
2008
- isLastColunm(el, parentSelector, isNext = true) {
2009
- const parent = this.getParentByClass(el, parentSelector);
2010
- // check if last column or if shifr pressed and it's the first column
2011
- return isNext ? (parent === null || parent === void 0 ? void 0 : parent.nextElementSibling) === null : ((parent === null || parent === void 0 ? void 0 : parent.previousElementSibling) === null);
2012
- }
2013
- getParentByClass(el, parentSelector /* optional */) {
2014
- var _a;
2015
- // If no parentSelector defined will bubble up all the way to *document*
2016
- if (parentSelector === undefined) {
2017
- parentSelector = document;
2018
- }
2019
- let p = el.parentNode;
2020
- while (p &&
2021
- !((_a = p === null || p === void 0 ? void 0 : p.classList) === null || _a === void 0 ? void 0 : _a.contains(parentSelector)) &&
2022
- parentSelector !== document) {
2023
- const o = p;
2024
- p = (o === null || o === void 0 ? void 0 : o.parentNode) || null;
2025
- }
2026
- return (p === null || p === void 0 ? void 0 : p.className.indexOf(parentSelector)) > -1 ? p : null;
2027
- }
2028
- onCardMouseEnter(event, itemId, itemType) {
2029
- if (!this.deviceHasMouse) {
2030
- return;
2031
- }
2032
- const uniqItemId = this.getUniqItemId(itemId, itemType);
2033
- this.hoveredItemId = uniqItemId;
2034
- }
2035
- onCardMouseLeave(event, itemId, itemType) {
2036
- this.hoveredItemId = '';
2037
- }
2038
- // trackByFunc(index: number, item: ObjectsDataRow): any {
2039
- // return item && item?.UID ? item?.UID : index;
2040
- // // let res: string = "";
2041
- // // if (item && item?.UID) {
2042
- // // res = item?.UID + "_" + this.listType + "_" + (this.isTable ? "Table" : "Thumbnails");
2043
- // // }
2044
- // // else {
2045
- // // res = index + "_" + this.listType + "_" + (this.isTable ? "Table" : "Thumbnails");
2046
- // // }
2047
- // // return res;
2048
- // }
2049
- clear() {
2050
- this.cleanItems();
2051
- this._layout = null;
2052
- }
2053
- setSelectedIds(selectedIds, items = null) {
2054
- var _a;
2055
- this.selectedItems.clear();
2056
- this.isAllSelected = false;
2057
- if (selectedIds) {
2058
- // for (let i = 0; i < selected.length; i++) {
2059
- for (const selectedId of selectedIds) {
2060
- const tmp = selectedId.split(this.SEPARATOR);
2061
- if (tmp && tmp.length > 0) {
2062
- const itemId = tmp[0];
2063
- const itemType = tmp.length > 1 ? tmp[1] : '';
2064
- this.selectedItems.set(itemId, this.getUniqItemId(itemId, itemType));
2065
- }
2066
- }
2067
- this.isAllSelected = this.getIsAllSelected(items ? items : (_a = this.virtualScroller) === null || _a === void 0 ? void 0 : _a.viewPortItems);
2068
- this.setSelectionDataInSession();
2069
- }
2070
- this.refresh();
2071
- }
2072
- setSelectionDataInSession() {
2073
- if (this.selectedItems.size > 0) {
2074
- this.sessionService.setObject(PepListComponent.SELECTED_ITEMS_STATE_KEY, JSON.stringify([...this.selectedItems]));
2075
- }
2076
- if (this.unSelectedItems.size > 0) {
2077
- this.sessionService.setObject(PepListComponent.UN_SELECTED_ITEMS_STATE_KEY, JSON.stringify([...this.unSelectedItems]));
2078
- }
2079
- this.sessionService.setObject(PepListComponent.ALL_SELECTED_STATE_KEY, this.isAllSelected);
2080
- }
2081
- initListData(layout, totalRows, items, selectionTypeForActions = undefined) {
2082
- this.initVariablesFromSession(items);
2083
- const selectedItemsList = this.isAllSelected
2084
- ? this.unSelectedItems
2085
- : this.selectedItems;
2086
- const currentListCount = this.isAllSelected
2087
- ? this.totalRows - selectedItemsList.size
2088
- : selectedItemsList.size;
2089
- this.selectedItemsChange.emit(currentListCount);
2090
- this._layout = layout;
2091
- this.selectedItemId = '';
2092
- this.totalRows = totalRows;
2093
- // Added to handle if the selectionTypeForActions is set in the html then the input this.selectedItemId will no set cause this function happens before.
2094
- if (selectionTypeForActions) {
2095
- this.selectionTypeForActions = selectionTypeForActions;
2096
- }
2097
- // If is all selected is false && the size of the selected items is 1 && selectionTypeForActions is 'single' then set it as the selected item id.
2098
- // We need this in setTimeout cause the selectionTypeForActions is input that can set after this function.
2099
- if (!this.isAllSelected && this.selectedItems.size === 1 && this.selectionTypeForActions === 'single') {
2100
- const [firstValue] = this.selectedItems.values();
2101
- this.selectedItemId = firstValue;
2102
- }
2103
- this.scrollToTop(false);
2104
- this.cleanItems();
2105
- this.disableScroll(true);
2106
- if (items) {
2107
- if (this.pagerType === 'pages') {
2108
- // If page index out of bounds - init to 0.
2109
- const numberOfPages = Math.ceil(totalRows / this.pageSize);
2110
- if (this.pageIndex >= numberOfPages) {
2111
- this.pageIndex = 0;
2112
- }
2113
- this.updatePage(items, {
2114
- pageIndex: this.pageIndex,
2115
- pageSize: this.pageSize,
2116
- });
2117
- this.disableScroll(false);
2118
- }
2119
- else {
2120
- const numberOfStartItems = this.getNumberOfStartItems();
2121
- const event = {
2122
- fromIndex: 0,
2123
- toIndex: numberOfStartItems,
2124
- };
2125
- this.updateItems(items, event);
2126
- if (this.virtualScroller) {
2127
- this.refresh(() => {
2128
- this.calcObjectHeight();
2129
- });
2130
- }
2131
- else {
2132
- this.calcObjectHeight();
2133
- }
2134
- }
2135
- }
2136
- if (!this.isTable) {
2137
- this.lastColumnsWidth = [];
2138
- }
2139
- this.setLayout();
2140
- // setTimeout(() => {
2141
- this.onListLoad();
2142
- // }, 0);
2143
- }
2144
- updateItems(items, event = null) {
2145
- var _a;
2146
- if (!event) {
2147
- return; // Event isn't supplied.
2148
- }
2149
- // Clean array
2150
- if (this.itemsCounter + items.length > this.getCachedItemsNumber()) {
2151
- this.cleanItems();
2152
- }
2153
- const startIndex = (_a = event.fromIndex) !== null && _a !== void 0 ? _a : 0;
2154
- for (let i = 0; i < items.length; i++) {
2155
- if (!this.items[i + startIndex]) {
2156
- this.items[i + startIndex] = items[i];
2157
- this.itemsCounter += 1;
2158
- }
2159
- }
2160
- this.toggleLoadingItemsFropApi(false);
2161
- }
2162
- updatePage(items, event) {
2163
- if (!event) {
2164
- return; // Event isn't supplied.
2165
- }
2166
- // Clean array
2167
- if (this.itemsCounter + items.length > this.getCachedItemsNumber()) {
2168
- this.cleanItems();
2169
- }
2170
- // const loadInChunks = this.itemsCounter === 0;
2171
- const startIndex = Math.min(event.pageIndex * event.pageSize, this.totalRows);
2172
- const endIndex = Math.min(startIndex + event.pageSize, this.totalRows);
2173
- for (let i = 0; i < items.length; i++) {
2174
- if (!this.items[i + startIndex]) {
2175
- this.items[i + startIndex] = items[i];
2176
- this.itemsCounter += 1;
2177
- }
2178
- }
2179
- this.updateCurrentPageItems(startIndex, endIndex);
2180
- this.toggleLoadingItemsFropApi(false);
2181
- }
2182
- updateItem(data) {
2183
- const index = this.items.findIndex((i) => i && (i === null || i === void 0 ? void 0 : i.UID) === (data === null || data === void 0 ? void 0 : data.UID));
2184
- if (index >= 0 && index < this.items.length) {
2185
- this.updateItemProperties(this.items[index], data);
2186
- }
2187
- }
2188
- scrollToIndex(index, alignToBeginning = true, additionalOffset = 0, animationMilliseconds = undefined, animationCompletedCallback = undefined) {
2189
- var _a;
2190
- (_a = this.virtualScroller) === null || _a === void 0 ? void 0 : _a.scrollToIndex(index, alignToBeginning, additionalOffset, animationMilliseconds, animationCompletedCallback);
2191
- }
2192
- updateItemProperties(itemToUpdate, data) {
2193
- Object.assign(itemToUpdate, data);
2194
- }
2195
- getSelectedItemsData(isForEdit = false) {
2196
- const res = new PepSelectionData();
2197
- let selectionType = 1;
2198
- const items = [];
2199
- const itemTypes = [];
2200
- if (this.selectionTypeForActions === 'single') {
2201
- if (this.selectedItemId.length > 0) {
2202
- const tmp = this.selectedItemId.split(this.SEPARATOR);
2203
- items.push(tmp[0]);
2204
- itemTypes.push(tmp[1]);
2205
- }
2206
- }
2207
- else if (this.selectionTypeForActions === 'multi') {
2208
- let currentList = [];
2209
- // For edit - only the selected items.
2210
- if (isForEdit) {
2211
- if (!this.isAllSelected) {
2212
- currentList = Array.from(this.selectedItems.values());
2213
- }
2214
- else {
2215
- // Get the id's of the items that not founded in unSelectedItems.
2216
- this.items.forEach((item) => {
2217
- if (item &&
2218
- !this.unSelectedItems.has(item === null || item === void 0 ? void 0 : item.UID.toString())) {
2219
- currentList.push(this.getUniqItemId(item === null || item === void 0 ? void 0 : item.UID.toString(), item === null || item === void 0 ? void 0 : item.Type.toString()));
2220
- }
2221
- });
2222
- }
2223
- }
2224
- else {
2225
- // For delete - can be the unselected with select_all functionality.
2226
- currentList = Array.from(this.isAllSelected
2227
- ? this.unSelectedItems.values()
2228
- : this.selectedItems.values());
2229
- selectionType = this.isAllSelected ? 0 : 1;
2230
- }
2231
- currentList.forEach((item) => {
2232
- const tmp = item.split(this.SEPARATOR);
2233
- if (tmp.length === 2) {
2234
- items.push(tmp[0]);
2235
- itemTypes.push(tmp[1]);
2236
- }
2237
- });
2238
- }
2239
- res.selectionType = selectionType;
2240
- res.rows = items;
2241
- res.rowTypes = itemTypes;
2242
- return res;
2243
- }
2244
- getIsItemEditable(uid) {
2245
- const item = this.items.filter((x) => (x === null || x === void 0 ? void 0 : x.UID.toString()) === uid);
2246
- if (item.length > 0) {
2247
- return item[0].IsEditable;
2248
- }
2249
- else {
2250
- return false;
2251
- }
2252
- }
2253
- getItemDataByID(uid) {
2254
- return this.items.find((item) => (item === null || item === void 0 ? void 0 : item.UID.toString()) === uid);
2255
- }
2256
- refresh(refreshCompletedCallback = undefined) {
2257
- var _a;
2258
- (_a = this.virtualScroller) === null || _a === void 0 ? void 0 : _a.refresh(refreshCompletedCallback);
2259
- }
2260
- // ---------------------------------------------------------------
2261
- // Events handlers.
2262
- // ---------------------------------------------------------------
2263
- onWinResize(e) {
2264
- this.refresh();
2265
- this.containerWidth = 0;
2266
- this.lastColumnsWidth = [];
2267
- this.setLayout();
2268
- }
2269
- onListResizeStart(event, columnKey, columnIndex) {
2270
- this.pressedColumn = columnKey;
2271
- this.pressedColumnIndex = columnIndex;
2272
- this.startX = event.x;
2273
- this.startWidth = event.target.closest('.header-column').offsetWidth;
2274
- // this.tableStartWidth = this.hostElement.nativeElement.offsetWidth; // this.virtualScroller?.contentElementRef.nativeElement.offsetWidth;
2275
- this.tableStartWidth = this.listContainerResizableElementRef.nativeElement.offsetWidth; // this.virtualScroller?.contentElementRef.nativeElement.offsetWidth;
2276
- console.log(`tableStartWidth - ${this.tableStartWidth}`);
2277
- }
2278
- onListResize(event) {
2279
- // if (this.pressedColumn.length > 0) {
2280
- if (this.pressedColumnIndex >= 0) {
2281
- let widthToAdd = this.layoutService.isRtl() ? this.startX - event.x : event.x - this.startX;
2282
- // Set the width of the column and the container of the whole columns.
2283
- if (this.startWidth + widthToAdd >= PepListComponent.MINIMUM_COLUMN_WIDTH || widthToAdd > 0) {
2284
- const length = this._layout.ControlFields.length;
2285
- let totalCalcColsWidth = 0;
2286
- for (let index = 0; index < length; index++) {
2287
- const uiControlField = this._layout
2288
- .ControlFields[index];
2289
- if (index === length - 1) {
2290
- // Calc the last column only in percentage type.
2291
- if (this.hasColumnWidthOfTypePercentage) {
2292
- const scrollWidth = this.layoutService.getScrollbarWidth();
2293
- widthToAdd += scrollWidth;
2294
- uiControlField.calcTitleColumnWidthString = uiControlField.calcColumnWidthString = 'calc(100% - ' + (totalCalcColsWidth + scrollWidth) + 'px)'; // For 100%
2295
- }
2296
- else {
2297
- // if (uiControlField.ApiName === this.pressedColumn) {
2298
- if (index === this.pressedColumnIndex) {
2299
- uiControlField.calcColumnWidth = this.startWidth + widthToAdd;
2300
- uiControlField.calcTitleColumnWidthString = uiControlField.calcColumnWidth + 'px';
2301
- uiControlField.calcColumnWidthString = uiControlField.calcColumnWidth + 'px';
2302
- }
2303
- }
2304
- // } else if (uiControlField.ApiName === this.pressedColumn) {
2305
- }
2306
- else if (index === this.pressedColumnIndex) {
2307
- uiControlField.calcColumnWidth = this.startWidth + widthToAdd;
2308
- uiControlField.calcTitleColumnWidthString = uiControlField.calcColumnWidthString = uiControlField.calcColumnWidth + 'px';
2309
- }
2310
- totalCalcColsWidth += uiControlField.calcColumnWidth;
2311
- }
2312
- const widthToSet = (this.tableStartWidth + widthToAdd) + 'px';
2313
- console.log(`onListResize -> widthToSet: ${widthToSet} *** widthToAdd: ${widthToAdd}`);
2314
- this.setColumnsWidth(widthToSet);
2315
- this.checkForChanges = new Date().getTime();
2316
- }
2317
- }
2318
- }
2319
- onListResizeEnd(event) {
2320
- // if (this.pressedColumn.length > 0) {
2321
- if (this.pressedColumnIndex >= 0) {
2322
- if (event &&
2323
- this.getParent(event.srcElement, 'resize-box').length > 0) {
2324
- this.initResizeData();
2325
- }
2326
- else {
2327
- // Set timeout 0 for onListSortingChange will have the pressedColumn.
2328
- setTimeout(() => {
2329
- this.initResizeData();
2330
- }, 0);
2331
- }
2332
- this.lastColumnsWidth = [];
2333
- // Set the last columns width
2334
- for (let index = 0; index < this._layout.ControlFields.length; index++) {
2335
- const uiControlField = this._layout.ControlFields[index];
2336
- this.lastColumnsWidth.push({
2337
- columnAPIName: uiControlField.ApiName,
2338
- calcColumnWidth: uiControlField.calcColumnWidth,
2339
- calcTitleColumnWidthString: uiControlField.calcTitleColumnWidthString,
2340
- calcColumnWidthString: uiControlField.calcColumnWidthString
2341
- });
2342
- }
2343
- event.stopPropagation();
2344
- }
2345
- }
2346
- onListSortingChange(sortBy, isAsc, event = null) {
2347
- if (
2348
- // this.pressedColumn.length > 0 ||
2349
- this.pressedColumnIndex >= 0 ||
2350
- (event && this.getParent(event.srcElement, 'resize-box').length > 0)) {
2351
- return;
2352
- }
2353
- if (this.sortBy !== sortBy || this.isAsc !== isAsc) {
2354
- this.sortBy = sortBy;
2355
- this.isAsc = isAsc;
2356
- this.saveSortingToSession();
2357
- this.sortingChange.emit({ sortBy, isAsc });
2358
- }
2359
- }
2360
- onListHeaderMouseEnter(event) {
2361
- // this.headerIsInFocus = true;
2362
- }
2363
- onListHeaderMouseLeave(event) {
2364
- // this.headerIsInFocus = false;
2365
- this.onListResizeEnd(event);
2366
- this.initResizeData();
2367
- }
2368
- onPagerChange(event) {
2369
- this.pageIndex = event.pageIndex;
2370
- // Scroll to top.
2371
- //this.scrollToTop();
2372
- const startIndex = event.pageIndex * event.pageSize;
2373
- const endIndex = Math.min(startIndex + event.pageSize, this.totalRows);
2374
- let shouldGetItemsFromApi = false;
2375
- let index = startIndex;
2376
- while (!shouldGetItemsFromApi && index < endIndex) {
2377
- if (!this.items[index]) {
2378
- shouldGetItemsFromApi = true;
2379
- }
2380
- index++;
2381
- }
2382
- // Get bulk from api.
2383
- if (shouldGetItemsFromApi) {
2384
- if (!this.loadingItemsFromApi) {
2385
- this.toggleLoadingItemsFropApi(true);
2386
- this.loadPage.emit({
2387
- pageIndex: event.pageIndex,
2388
- pageSize: event.pageSize,
2389
- });
2390
- this.scrollToTop();
2391
- }
2392
- }
2393
- else {
2394
- setTimeout(() => {
2395
- this.updateCurrentPageItems(startIndex, endIndex);
2396
- this.scrollToTop();
2397
- }, this.scrollAnimationTime);
2398
- }
2399
- }
2400
- onVirtualScrollerChange(event) {
2401
- this.raiseStartIndexChange(event.startIndex);
2402
- if (this.pagerType === 'scroll') {
2403
- // For other events do nothing.
2404
- if (typeof event.startIndex === 'undefined' || event.startIndex < 0 ||
2405
- typeof event.endIndex === 'undefined' || event.endIndex < 0) {
2406
- return;
2407
- }
2408
- const addAtStart = event.scrollDirection === 'backward';
2409
- let shouldGetItemsFromApi = false;
2410
- let indexOfMissingItem;
2411
- if (addAtStart) {
2412
- indexOfMissingItem = event.endIndex;
2413
- while (!shouldGetItemsFromApi && indexOfMissingItem >= event.startIndex) {
2414
- if (!this.items[indexOfMissingItem]) {
2415
- shouldGetItemsFromApi = true;
2416
- }
2417
- if (!shouldGetItemsFromApi) {
2418
- indexOfMissingItem--;
2419
- }
2420
- }
2421
- }
2422
- else {
2423
- indexOfMissingItem = event.startIndex;
2424
- while (!shouldGetItemsFromApi && indexOfMissingItem <= event.endIndex) {
2425
- if (!this.items[indexOfMissingItem]) {
2426
- shouldGetItemsFromApi = true;
2427
- }
2428
- if (!shouldGetItemsFromApi) {
2429
- indexOfMissingItem++;
2430
- }
2431
- }
2432
- }
2433
- // Get bulk from api.
2434
- if (shouldGetItemsFromApi) {
2435
- if (!this.loadingItemsFromApi) {
2436
- this.toggleLoadingItemsFropApi(true);
2437
- const top = this.getTopItems() - 1;
2438
- const fromIndex = addAtStart ? Math.max(indexOfMissingItem - top, 0) : indexOfMissingItem;
2439
- const toIndex = addAtStart ? indexOfMissingItem : Math.min(indexOfMissingItem + top, this.totalRows);
2440
- this.loadItems.emit({
2441
- fromIndex,
2442
- toIndex,
2443
- });
2444
- }
2445
- }
2446
- }
2447
- }
2448
- onListLoad() {
2449
- setTimeout(() => {
2450
- this.listLoad.emit();
2451
- }, 0);
2452
- }
2453
- // onChildRectChange(event: any) {
2454
- // // Set the calculatedObjectHeight only if he's not set (this case is only for the initialize when virtual scroll is undefined).
2455
- // // the other cases is handled in calcObjectHeight function.
2456
- // if (this.calculatedObjectHeight === 'auto') {
2457
- // this.calculatedObjectHeight = event?.height + 'px';
2458
- // }
2459
- // }
2460
- onValueChanged(valueChange) {
2461
- if (this.disabled) {
2462
- return;
2463
- }
2464
- this.valueChange.emit(valueChange);
2465
- }
2466
- onCustomizeFieldClick(customizeFieldClickedData) {
2467
- if (this.disabled) {
2468
- return;
2469
- }
2470
- this.fieldClick.emit(customizeFieldClickedData);
2471
- }
2472
- //added to handle sorting by specific columns----
2473
- isSortableColumn(apiName) {
2474
- var _a;
2475
- //case 1 - supportSorting = true and array exists
2476
- if (this.supportSorting) {
2477
- if ((_a = this.supportSortingFields) === null || _a === void 0 ? void 0 : _a.length) {
2478
- return this.supportSortingFields.includes(apiName);
2479
- //case 2 - supportSorting = true and array does not exist
2480
- }
2481
- else if (this.supportSortingFields === undefined) {
2482
- return true;
2483
- } // case 3 supportSorting = false
2484
- }
2485
- else
2486
- return false;
2487
- }
2488
- }
2489
- PepListComponent.TOP_ITEMS_DEFAULT = 100;
2490
- PepListComponent.TOP_ITEMS_TABLE = 100;
2491
- PepListComponent.TOP_ITEMS_THUMBNAILS = 100;
2492
- PepListComponent.TOP_ITEMS_ARRAY = 2500;
2493
- PepListComponent.SELECTED_ITEMS_STATE_KEY = 'SelectedItems';
2494
- PepListComponent.UN_SELECTED_ITEMS_STATE_KEY = 'UnSelectedItems';
2495
- PepListComponent.ALL_SELECTED_STATE_KEY = 'AllSelected';
2496
- PepListComponent.SORT_BY_STATE_KEY = 'SortBy';
2497
- PepListComponent.ASCENDING_STATE_KEY = 'IsAscending';
2498
- PepListComponent.MINIMUM_COLUMN_WIDTH = 72;
2499
- PepListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListComponent, deps: [{ token: i0.ElementRef }, { token: i1.PepLayoutService }, { token: i1.PepSessionService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
2500
- PepListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PepListComponent, selector: "pep-list", inputs: { sorting: "sorting", cacheSize: "cacheSize", noDataFoundMsg: "noDataFoundMsg", selectionTypeForActions: "selectionTypeForActions", showCardSelection: "showCardSelection", hideAllSelectionInMulti: "hideAllSelectionInMulti", cardSize: "cardSize", tableViewType: "tableViewType", viewType: "viewType", firstFieldAsLink: "firstFieldAsLink", supportSorting: "supportSorting", supportSortingFields: "supportSortingFields", supportResizing: "supportResizing", parentScroll: "parentScroll", disabled: "disabled", lockEvents: "lockEvents", lockItemInnerEvents: "lockItemInnerEvents", printMode: "printMode", isReport: "isReport", zebraStripes: "zebraStripes", totalsRow: "totalsRow", pagerType: "pagerType", pageSize: "pageSize", pageIndex: "pageIndex", bufferAmount: "bufferAmount", scrollAnimationTime: "scrollAnimationTime", scrollDebounceTime: "scrollDebounceTime", scrollThrottlingTime: "scrollThrottlingTime", SEPARATOR: "SEPARATOR", useAsWebComponent: "useAsWebComponent" }, outputs: { itemClick: "itemClick", fieldClick: "fieldClick", valueChange: "valueChange", sortingChange: "sortingChange", selectedItemsChange: "selectedItemsChange", selectedItemChange: "selectedItemChange", selectAllClick: "selectAllClick", listLoad: "listLoad", loadItems: "loadItems", loadPage: "loadPage", startIndexChange: "startIndexChange" }, host: { listeners: { "window:resize": "onWinResize($event)" } }, viewQueries: [{ propertyName: "listContainerResizableElementRef", first: true, predicate: ["listContainerResizable"], descendants: true, read: ElementRef }, { propertyName: "virtualScroller", first: true, predicate: VirtualScrollerComponent, descendants: true }, { propertyName: "selectAllCB", first: true, predicate: ["selectAllCB"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"totalRows == 0\">\n <ng-container *ngIf=\"noDataFoundMsg; then noDataMsgInputBlock; else noDataMsgDefaultBlock\"></ng-container>\n <ng-template #noDataMsgInputBlock>\n <div class=\"pep-border-bottom\">\n <p class=\"title-xl no-data\">\n {{ noDataFoundMsg }}\n </p>\n </div>\n </ng-template>\n <ng-template #noDataMsgDefaultBlock>\n <div class=\"pep-border-bottom\">\n <p class=\"title-xl no-data\">\n {{ 'LIST.NO_DATA_FOUND' | translate}}\n </p>\n </div>\n <div class=\"no-data-suggestions\">\n <p class=\"suggestions-title title-lg\">\n {{ 'LIST.NO_DATA_FOUND_SUGGESTIONS_TITLE' | translate}}\n </p>\n <ul class=\"suggestions-list body-lg\" [innerHtml]=\"'LIST.NO_DATA_FOUND_SUGGESTIONS_LIST' | translate\"></ul>\n </div>\n </ng-template>\n</ng-container>\n<ng-container *ngIf=\"totalRows > 0\">\n <div class=\"list-container\">\n <div #listContainerResizable class=\"list-container-resizable\">\n <ng-container *ngTemplateOutlet=\"tableHeader\"></ng-container>\n\n <!-- (vsChildRectChange)=\"onChildRectChange($event)\" -->\n <virtual-scroller #scroller [items]=\"pagerType === 'pages' ? currentPageItems : items\"\n [scrollDebounceTime]=\"scrollDebounceTime\" [scrollThrottlingTime]=\"scrollThrottlingTime\"\n [bufferAmount]=\"printMode ? totalRows : bufferAmount\" [parentScroll]=\"parentScroll\" [disable]=\"loadingItemsFromApi\"\n class=\"virtual-scroller\" [ngClass]=\"{ 'table-body': isTable, 'cards-body': !isTable }\"\n (vsChange)=\"onVirtualScrollerChange($event)\" >\n <ng-container *ngFor=\"let item of scroller.viewPortItems; let index = index; let isFirst = first;\">\n <ng-container *ngTemplateOutlet=\"listData; context: {item: item, index:index}\"></ng-container>\n </ng-container>\n </virtual-scroller>\n \n <ng-container *ngTemplateOutlet=\"tableTotal\"></ng-container>\n </div>\n </div>\n <pep-list-pager *ngIf=\"pagerType === 'pages'\" class=\" list-pager\" [disabled]=\"loadingItemsFromApi\"\n [length]=\"totalRows\" [pageSize]=\"pageSize\" [pageIndex]=\"pageIndex\" (pagerChange)=\"onPagerChange($event)\">\n </pep-list-pager>\n</ng-container>\n\n<ng-template #listData let-item=\"item\" let-index=\"index\">\n <ng-container *ngIf=\"isTable\">\n <!-- getIsItemSelected(item) -> item | isItemSelected: selectionTypeForActions : selectedItemId : isAllSelected : selectedItems : unSelectedItems -->\n <div class=\"table-row\" (mouseenter)=\"onTableRowMouseEnter($event, item?.UID, item?.Type)\" (keydown)=\"onTabKeydown($event, item?.UID, item?.Type)\"\n (mouseleave)=\"onTableRowMouseLeave($event, item?.UID, item?.Type)\" [ngClass]=\"{\n 'compact-view': tableViewType === 'compact',\n even: zebraStripes && index % 2 !== 0,\n selected: getIsItemSelected(item),\n highlighted: item?.UID + SEPARATOR + item?.Type === selectedItemId}\" [ngStyle]=\"{ visibility: !loadingItemsFromApi || item ? 'visible' : 'hidden' }\">\n <fieldset class=\"table-row-fieldset\" [ngStyle]=\"{ 'background-color': item?.BackgroundColor }\">\n <mat-checkbox *ngIf=\"selectionTypeForActions == 'multi'\" type=\"checkbox\"\n class=\"pull-left flip row-selection\" [ngClass]=\"{ 'md': tableViewType === 'compact' }\"\n [disabled]=\"false && getisItemDisabled(item)\" [ngStyle]=\"{\n visibility: !deviceHasMouse ||\n item?.UID + SEPARATOR + item?.Type === hoveredItemId || isAllSelected || selectedItems.size > 0 ? 'visible' : 'hidden'\n }\" [checked]=\"getIsItemSelected(item)\"\n (change)=\"selectItemForActions($event, item?.UID, item?.IsSelectableForActions, item?.Type)\">\n </mat-checkbox>\n <mat-radio-button *ngIf=\"selectionTypeForActions == 'single'\" name=\"selection\"\n class=\"pull-left flip row-selection pep-radio-button\" [ngClass]=\"{ 'md': tableViewType === 'compact' }\"\n [disabled]=\"getisItemDisabled(item)\"\n [checked]=\"getIsItemSelected(item)\"\n (change)=\"selectItemForActions($event, item?.UID, item?.IsSelectableForActions, item?.Type)\">\n </mat-radio-button>\n <pep-form [layoutType]=\"'table'\" [checkForChanges]=\"checkForChanges\" [layout]=\"layout\"\n [firstFieldAsLink]=\"firstFieldAsLink\" [data]=\"item\" [canEditObject]=\"!disabled\"\n [lockEvents]=\"lockItemInnerEvents || printMode\" [isReport]=\"isReport\" [isActive]=\"\n (item?.UID + SEPARATOR + item?.Type === selectedItemId ||\n item?.UID + SEPARATOR + item?.Type === hoveredItemId) && deviceHasMouse\n \" (valueChange)=\"onValueChanged($event)\" (fieldClick)=\"onCustomizeFieldClick($event)\"\n (click)=\"itemClicked($event, item)\">\n </pep-form>\n </fieldset>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!isTable\">\n <div (mouseenter)=\"onCardMouseEnter($event, item?.UID, item?.Type)\"\n (mouseleave)=\"onCardMouseLeave($event, item?.UID, item?.Type)\" [ngClass]=\"{\n selected: getIsItemSelected(item),\n highlighted: item?.UID + SEPARATOR + item?.Type === selectedItemId,\n 'line-view': viewType === 'lines',\n 'card-view': viewType === 'cards',\n 'small-card': cardSize === 'sm'\n }\" class=\"pull-left flip\"\n [ngStyle]=\"{ height: calculatedObjectHeight, visibility: !loadingItemsFromApi || item ? 'visible' : 'hidden' }\">\n <mat-checkbox *ngIf=\"showCardSelection\" class=\"pull-left flip card-selection\"\n [disabled]=\"getisItemDisabled(item)\" [checked]=\"getIsItemSelected(item)\"\n (change)=\"selectItemForActions($event, item?.UID, item?.IsSelectableForActions, item?.Type)\">\n </mat-checkbox>\n <pep-form [layoutType]=\"'card'\" [firstFieldAsLink]=\"firstFieldAsLink\" [checkForChanges]=\"checkForChanges\"\n [layout]=\"layout\" [data]=\"item\" [canEditObject]=\"!disabled\"\n [lockEvents]=\"lockItemInnerEvents || printMode\" [isActive]=\"\n (item?.UID + SEPARATOR + item?.Type === selectedItemId ||\n item?.UID + SEPARATOR + item?.Type === hoveredItemId) && deviceHasMouse\n \" (valueChange)=\"onValueChanged($event)\" (fieldClick)=\"onCustomizeFieldClick($event)\"\n (click)=\"itemClicked($event, item)\">\n </pep-form>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #tableHeader>\n <div *ngIf=\"isTable\" class=\"table-header\" (mouseup)=\"onListResizeEnd($event)\"\n (mouseenter)=\"onListHeaderMouseEnter($event)\" (mouseleave)=\"onListHeaderMouseLeave($event)\"\n (mousemove)=\"onListResize($event)\">\n\n <div class=\"table-header-padding-top\"></div>\n <fieldset class=\"table-header-fieldset\">\n <mat-checkbox *ngIf=\"selectionTypeForActions !== 'none'\" #selectAllCB class=\"pull-left flip row-selection\" [ngClass]=\"{ 'md': tableViewType === 'compact' }\"\n type=\"checkbox\" [ngStyle]=\"{\n visibility:\n selectionTypeForActions == 'single' || \n (selectionTypeForActions == 'multi' && hideAllSelectionInMulti) ? 'hidden' : 'visible'\n }\"\n [indeterminate]=\"isAllSelected ? unSelectedItems.size > 0 && unSelectedItems.size < totalRows : (selectedItems.size > 0 && !getIsAllSelectedForActions())\"\n [disabled]=\"disabled || selectionTypeForActions === 'single'\" [checked]=\"getIsAllSelectedForActions()\"\n (change)=\"selectAllItemsForActions($event)\"></mat-checkbox>\n <fieldset>\n <div *ngFor=\"let field of layout?.ControlFields; let j = index\" class=\"header-column pull-left flip\"\n [ngStyle]=\"{ width: field.calcTitleColumnWidthString }\" [ngClass]=\"{\n 'compact-view': tableViewType === 'compact',\n 'support-sorting': isSortableColumn(field.ApiName),\n 'has-sorting': field.ApiName === sortBy,\n 'is-resizing': field.ApiName === pressedColumn,\n 'is-first': j === 0 && selectionTypeForActions !== 'multi',\n 'is-last': j === layout?.ControlFields?.length - 1\n }\"\n (click)=\"isSortableColumn(field.ApiName) ? (onListSortingChange(field.ApiName, sortBy !== null && sortBy != field.ApiName ? true : !isAsc, $event)) : false\">\n\n <label id=\"{{ field.ApiName }}\"\n class=\"header-label body-sm pull-left flip text-align-{{ field.Layout.XAlignment }}\"\n title=\"{{ field.Title }}\">\n <span *ngIf=\"field.Mandatory\" class=\"mandatory\">\n <pep-icon name=\"system_must\"></pep-icon>\n </span>\n {{ field.Title != '' ? field.Title : ' '}}\n </label>\n\n <div *ngIf=\"supportResizing\" class=\"resize-box pull-right flip\"\n (mousedown)=\"onListResizeStart($event, field.ApiName, j)\">\n <div class=\"splitter\"></div>\n </div>\n\n <div *ngIf=\"isSortableColumn(field.ApiName)\" class=\"sorting-box pull-left flip\"\n [ngClass]=\"{ 'has-sorting': field.ApiName === sortBy }\">\n <mat-icon *ngIf=\"field.ApiName !== sortBy\">\n <pep-icon name=\"arrow_either\" class=\"asc\"></pep-icon>\n </mat-icon>\n <ng-container *ngIf=\"field.ApiName === sortBy\">\n <mat-icon *ngIf=\"!isAsc\" [ngClass]=\"{ 'sort-by': field.ApiName === sortBy && isAsc }\"\n title=\"{{ 'LIST.SORT_ASC' | translate }}\">\n <pep-icon name=\"arrow_up\" class=\"asc\"></pep-icon>\n </mat-icon>\n <mat-icon *ngIf=\"isAsc\" [ngClass]=\"{ 'sort-by': field.ApiName === sortBy && !isAsc }\"\n title=\"{{ 'LIST.SORT_DESC' | translate }}\">\n <pep-icon name=\"arrow_down\" class=\"desc\"></pep-icon>\n </mat-icon>\n </ng-container>\n </div>\n </div>\n </fieldset>\n </fieldset>\n </div>\n</ng-template>\n\n<ng-template #tableTotal>\n <div *ngIf=\"isTable && totalsRow?.length > 0 && totalsRow.length <= layout?.ControlFields.length\"\n class=\"table-total\">\n <fieldset class=\"table-header-fieldset\">\n <div *ngFor=\"let field of layout?.ControlFields; let j = index\" class=\"total-column pull-left flip\"\n [ngStyle]=\"{ width: field.calcTitleColumnWidthString }\">\n <label class=\"total-label body-sm text-align-{{ field.Layout.XAlignment }}\">\n {{ totalsRow[j] }}\n </label>\n </div>\n </fieldset>\n </div>\n</ng-template>", styles: [":host{width:100%;height:inherit;display:flex;flex-direction:column}:host .list-container{display:flex;flex-direction:column;height:inherit;width:100%;overflow:auto}:host .list-container .list-container-resizable{display:flex;flex-direction:column;height:inherit}.no-data{margin:var(--pep-spacing-2xl, 2rem) 0}.no-data-suggestions .suggestions-title{margin:var(--pep-spacing-lg, 1rem) 0 var(--pep-spacing-sm, .5rem)}.no-data-suggestions .suggestions-list{margin:0;padding:0;padding-inline-start:var(--pep-spacing-2xl, 2rem)}.virtual-scroller{min-height:5rem;height:inherit}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: i4$1.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5.PepIconComponent, selector: "pep-icon", inputs: ["spin", "name", "fill"] }, { kind: "component", type: i7.PepFormComponent, selector: "pep-form", inputs: ["isInternal", "isReport", "layout", "lockEvents", "canEditObject", "data", "lockFields", "isActive", "layoutType", "objectId", "parentId", "searchCode", "showTitle", "firstFieldAsLink", "checkForChanges"], outputs: ["valueChange", "formValidationChange", "fieldClick", "internalFormFieldClick", "internalFormFieldChange"] }, { kind: "component", type: VirtualScrollerComponent, selector: "virtual-scroller,[virtualScroller]", inputs: ["disable", "executeRefreshOutsideAngularZone", "enableUnequalChildrenSizes", "RTL", "useMarginInsteadOfTranslate", "modifyOverflowStyleOfParentScroll", "stripedTable", "scrollbarWidth", "scrollbarHeight", "childWidth", "childHeight", "ssrChildWidth", "ssrChildHeight", "ssrViewportWidth", "ssrViewportHeight", "bufferAmount", "scrollAnimationTime", "resizeBypassRefreshThreshold", "scrollThrottlingTime", "scrollDebounceTime", "checkResizeInterval", "items", "compareItems", "horizontal", "parentScroll"], outputs: ["vsChildRectChange", "vsUpdate", "vsChange", "vsStart", "vsEnd"], exportAs: ["virtualScroller"] }, { kind: "component", type: PepListPagerComponent, selector: "pep-list-pager", inputs: ["disabled", "pageIndex", "length", "pageSize"], outputs: ["pagerChange"] }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }] });
2501
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListComponent, decorators: [{
2502
- type: Component,
2503
- args: [{ selector: 'pep-list', host: {
2504
- '(window:resize)': 'onWinResize($event)',
2505
- }, template: "<ng-container *ngIf=\"totalRows == 0\">\n <ng-container *ngIf=\"noDataFoundMsg; then noDataMsgInputBlock; else noDataMsgDefaultBlock\"></ng-container>\n <ng-template #noDataMsgInputBlock>\n <div class=\"pep-border-bottom\">\n <p class=\"title-xl no-data\">\n {{ noDataFoundMsg }}\n </p>\n </div>\n </ng-template>\n <ng-template #noDataMsgDefaultBlock>\n <div class=\"pep-border-bottom\">\n <p class=\"title-xl no-data\">\n {{ 'LIST.NO_DATA_FOUND' | translate}}\n </p>\n </div>\n <div class=\"no-data-suggestions\">\n <p class=\"suggestions-title title-lg\">\n {{ 'LIST.NO_DATA_FOUND_SUGGESTIONS_TITLE' | translate}}\n </p>\n <ul class=\"suggestions-list body-lg\" [innerHtml]=\"'LIST.NO_DATA_FOUND_SUGGESTIONS_LIST' | translate\"></ul>\n </div>\n </ng-template>\n</ng-container>\n<ng-container *ngIf=\"totalRows > 0\">\n <div class=\"list-container\">\n <div #listContainerResizable class=\"list-container-resizable\">\n <ng-container *ngTemplateOutlet=\"tableHeader\"></ng-container>\n\n <!-- (vsChildRectChange)=\"onChildRectChange($event)\" -->\n <virtual-scroller #scroller [items]=\"pagerType === 'pages' ? currentPageItems : items\"\n [scrollDebounceTime]=\"scrollDebounceTime\" [scrollThrottlingTime]=\"scrollThrottlingTime\"\n [bufferAmount]=\"printMode ? totalRows : bufferAmount\" [parentScroll]=\"parentScroll\" [disable]=\"loadingItemsFromApi\"\n class=\"virtual-scroller\" [ngClass]=\"{ 'table-body': isTable, 'cards-body': !isTable }\"\n (vsChange)=\"onVirtualScrollerChange($event)\" >\n <ng-container *ngFor=\"let item of scroller.viewPortItems; let index = index; let isFirst = first;\">\n <ng-container *ngTemplateOutlet=\"listData; context: {item: item, index:index}\"></ng-container>\n </ng-container>\n </virtual-scroller>\n \n <ng-container *ngTemplateOutlet=\"tableTotal\"></ng-container>\n </div>\n </div>\n <pep-list-pager *ngIf=\"pagerType === 'pages'\" class=\" list-pager\" [disabled]=\"loadingItemsFromApi\"\n [length]=\"totalRows\" [pageSize]=\"pageSize\" [pageIndex]=\"pageIndex\" (pagerChange)=\"onPagerChange($event)\">\n </pep-list-pager>\n</ng-container>\n\n<ng-template #listData let-item=\"item\" let-index=\"index\">\n <ng-container *ngIf=\"isTable\">\n <!-- getIsItemSelected(item) -> item | isItemSelected: selectionTypeForActions : selectedItemId : isAllSelected : selectedItems : unSelectedItems -->\n <div class=\"table-row\" (mouseenter)=\"onTableRowMouseEnter($event, item?.UID, item?.Type)\" (keydown)=\"onTabKeydown($event, item?.UID, item?.Type)\"\n (mouseleave)=\"onTableRowMouseLeave($event, item?.UID, item?.Type)\" [ngClass]=\"{\n 'compact-view': tableViewType === 'compact',\n even: zebraStripes && index % 2 !== 0,\n selected: getIsItemSelected(item),\n highlighted: item?.UID + SEPARATOR + item?.Type === selectedItemId}\" [ngStyle]=\"{ visibility: !loadingItemsFromApi || item ? 'visible' : 'hidden' }\">\n <fieldset class=\"table-row-fieldset\" [ngStyle]=\"{ 'background-color': item?.BackgroundColor }\">\n <mat-checkbox *ngIf=\"selectionTypeForActions == 'multi'\" type=\"checkbox\"\n class=\"pull-left flip row-selection\" [ngClass]=\"{ 'md': tableViewType === 'compact' }\"\n [disabled]=\"false && getisItemDisabled(item)\" [ngStyle]=\"{\n visibility: !deviceHasMouse ||\n item?.UID + SEPARATOR + item?.Type === hoveredItemId || isAllSelected || selectedItems.size > 0 ? 'visible' : 'hidden'\n }\" [checked]=\"getIsItemSelected(item)\"\n (change)=\"selectItemForActions($event, item?.UID, item?.IsSelectableForActions, item?.Type)\">\n </mat-checkbox>\n <mat-radio-button *ngIf=\"selectionTypeForActions == 'single'\" name=\"selection\"\n class=\"pull-left flip row-selection pep-radio-button\" [ngClass]=\"{ 'md': tableViewType === 'compact' }\"\n [disabled]=\"getisItemDisabled(item)\"\n [checked]=\"getIsItemSelected(item)\"\n (change)=\"selectItemForActions($event, item?.UID, item?.IsSelectableForActions, item?.Type)\">\n </mat-radio-button>\n <pep-form [layoutType]=\"'table'\" [checkForChanges]=\"checkForChanges\" [layout]=\"layout\"\n [firstFieldAsLink]=\"firstFieldAsLink\" [data]=\"item\" [canEditObject]=\"!disabled\"\n [lockEvents]=\"lockItemInnerEvents || printMode\" [isReport]=\"isReport\" [isActive]=\"\n (item?.UID + SEPARATOR + item?.Type === selectedItemId ||\n item?.UID + SEPARATOR + item?.Type === hoveredItemId) && deviceHasMouse\n \" (valueChange)=\"onValueChanged($event)\" (fieldClick)=\"onCustomizeFieldClick($event)\"\n (click)=\"itemClicked($event, item)\">\n </pep-form>\n </fieldset>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!isTable\">\n <div (mouseenter)=\"onCardMouseEnter($event, item?.UID, item?.Type)\"\n (mouseleave)=\"onCardMouseLeave($event, item?.UID, item?.Type)\" [ngClass]=\"{\n selected: getIsItemSelected(item),\n highlighted: item?.UID + SEPARATOR + item?.Type === selectedItemId,\n 'line-view': viewType === 'lines',\n 'card-view': viewType === 'cards',\n 'small-card': cardSize === 'sm'\n }\" class=\"pull-left flip\"\n [ngStyle]=\"{ height: calculatedObjectHeight, visibility: !loadingItemsFromApi || item ? 'visible' : 'hidden' }\">\n <mat-checkbox *ngIf=\"showCardSelection\" class=\"pull-left flip card-selection\"\n [disabled]=\"getisItemDisabled(item)\" [checked]=\"getIsItemSelected(item)\"\n (change)=\"selectItemForActions($event, item?.UID, item?.IsSelectableForActions, item?.Type)\">\n </mat-checkbox>\n <pep-form [layoutType]=\"'card'\" [firstFieldAsLink]=\"firstFieldAsLink\" [checkForChanges]=\"checkForChanges\"\n [layout]=\"layout\" [data]=\"item\" [canEditObject]=\"!disabled\"\n [lockEvents]=\"lockItemInnerEvents || printMode\" [isActive]=\"\n (item?.UID + SEPARATOR + item?.Type === selectedItemId ||\n item?.UID + SEPARATOR + item?.Type === hoveredItemId) && deviceHasMouse\n \" (valueChange)=\"onValueChanged($event)\" (fieldClick)=\"onCustomizeFieldClick($event)\"\n (click)=\"itemClicked($event, item)\">\n </pep-form>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #tableHeader>\n <div *ngIf=\"isTable\" class=\"table-header\" (mouseup)=\"onListResizeEnd($event)\"\n (mouseenter)=\"onListHeaderMouseEnter($event)\" (mouseleave)=\"onListHeaderMouseLeave($event)\"\n (mousemove)=\"onListResize($event)\">\n\n <div class=\"table-header-padding-top\"></div>\n <fieldset class=\"table-header-fieldset\">\n <mat-checkbox *ngIf=\"selectionTypeForActions !== 'none'\" #selectAllCB class=\"pull-left flip row-selection\" [ngClass]=\"{ 'md': tableViewType === 'compact' }\"\n type=\"checkbox\" [ngStyle]=\"{\n visibility:\n selectionTypeForActions == 'single' || \n (selectionTypeForActions == 'multi' && hideAllSelectionInMulti) ? 'hidden' : 'visible'\n }\"\n [indeterminate]=\"isAllSelected ? unSelectedItems.size > 0 && unSelectedItems.size < totalRows : (selectedItems.size > 0 && !getIsAllSelectedForActions())\"\n [disabled]=\"disabled || selectionTypeForActions === 'single'\" [checked]=\"getIsAllSelectedForActions()\"\n (change)=\"selectAllItemsForActions($event)\"></mat-checkbox>\n <fieldset>\n <div *ngFor=\"let field of layout?.ControlFields; let j = index\" class=\"header-column pull-left flip\"\n [ngStyle]=\"{ width: field.calcTitleColumnWidthString }\" [ngClass]=\"{\n 'compact-view': tableViewType === 'compact',\n 'support-sorting': isSortableColumn(field.ApiName),\n 'has-sorting': field.ApiName === sortBy,\n 'is-resizing': field.ApiName === pressedColumn,\n 'is-first': j === 0 && selectionTypeForActions !== 'multi',\n 'is-last': j === layout?.ControlFields?.length - 1\n }\"\n (click)=\"isSortableColumn(field.ApiName) ? (onListSortingChange(field.ApiName, sortBy !== null && sortBy != field.ApiName ? true : !isAsc, $event)) : false\">\n\n <label id=\"{{ field.ApiName }}\"\n class=\"header-label body-sm pull-left flip text-align-{{ field.Layout.XAlignment }}\"\n title=\"{{ field.Title }}\">\n <span *ngIf=\"field.Mandatory\" class=\"mandatory\">\n <pep-icon name=\"system_must\"></pep-icon>\n </span>\n {{ field.Title != '' ? field.Title : ' '}}\n </label>\n\n <div *ngIf=\"supportResizing\" class=\"resize-box pull-right flip\"\n (mousedown)=\"onListResizeStart($event, field.ApiName, j)\">\n <div class=\"splitter\"></div>\n </div>\n\n <div *ngIf=\"isSortableColumn(field.ApiName)\" class=\"sorting-box pull-left flip\"\n [ngClass]=\"{ 'has-sorting': field.ApiName === sortBy }\">\n <mat-icon *ngIf=\"field.ApiName !== sortBy\">\n <pep-icon name=\"arrow_either\" class=\"asc\"></pep-icon>\n </mat-icon>\n <ng-container *ngIf=\"field.ApiName === sortBy\">\n <mat-icon *ngIf=\"!isAsc\" [ngClass]=\"{ 'sort-by': field.ApiName === sortBy && isAsc }\"\n title=\"{{ 'LIST.SORT_ASC' | translate }}\">\n <pep-icon name=\"arrow_up\" class=\"asc\"></pep-icon>\n </mat-icon>\n <mat-icon *ngIf=\"isAsc\" [ngClass]=\"{ 'sort-by': field.ApiName === sortBy && !isAsc }\"\n title=\"{{ 'LIST.SORT_DESC' | translate }}\">\n <pep-icon name=\"arrow_down\" class=\"desc\"></pep-icon>\n </mat-icon>\n </ng-container>\n </div>\n </div>\n </fieldset>\n </fieldset>\n </div>\n</ng-template>\n\n<ng-template #tableTotal>\n <div *ngIf=\"isTable && totalsRow?.length > 0 && totalsRow.length <= layout?.ControlFields.length\"\n class=\"table-total\">\n <fieldset class=\"table-header-fieldset\">\n <div *ngFor=\"let field of layout?.ControlFields; let j = index\" class=\"total-column pull-left flip\"\n [ngStyle]=\"{ width: field.calcTitleColumnWidthString }\">\n <label class=\"total-label body-sm text-align-{{ field.Layout.XAlignment }}\">\n {{ totalsRow[j] }}\n </label>\n </div>\n </fieldset>\n </div>\n</ng-template>", styles: [":host{width:100%;height:inherit;display:flex;flex-direction:column}:host .list-container{display:flex;flex-direction:column;height:inherit;width:100%;overflow:auto}:host .list-container .list-container-resizable{display:flex;flex-direction:column;height:inherit}.no-data{margin:var(--pep-spacing-2xl, 2rem) 0}.no-data-suggestions .suggestions-title{margin:var(--pep-spacing-lg, 1rem) 0 var(--pep-spacing-sm, .5rem)}.no-data-suggestions .suggestions-list{margin:0;padding:0;padding-inline-start:var(--pep-spacing-2xl, 2rem)}.virtual-scroller{min-height:5rem;height:inherit}\n"] }]
2506
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.PepLayoutService }, { type: i1.PepSessionService }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i0.NgZone }]; }, propDecorators: { listContainerResizableElementRef: [{
2507
- type: ViewChild,
2508
- args: ['listContainerResizable', { read: ElementRef }]
2509
- }], sorting: [{
2510
- type: Input
2511
- }], cacheSize: [{
2512
- type: Input
2513
- }], noDataFoundMsg: [{
2514
- type: Input
2515
- }], selectionTypeForActions: [{
2516
- type: Input
2517
- }], showCardSelection: [{
2518
- type: Input
2519
- }], hideAllSelectionInMulti: [{
2520
- type: Input
2521
- }], cardSize: [{
2522
- type: Input
2523
- }], tableViewType: [{
2524
- type: Input
2525
- }], viewType: [{
2526
- type: Input
2527
- }], firstFieldAsLink: [{
2528
- type: Input
2529
- }], supportSorting: [{
2530
- type: Input
2531
- }], supportSortingFields: [{
2532
- type: Input
2533
- }], supportResizing: [{
2534
- type: Input
2535
- }], parentScroll: [{
2536
- type: Input
2537
- }], disabled: [{
2538
- type: Input
2539
- }], lockEvents: [{
2540
- type: Input
2541
- }], lockItemInnerEvents: [{
2542
- type: Input
2543
- }], printMode: [{
2544
- type: Input
2545
- }], isReport: [{
2546
- type: Input
2547
- }], zebraStripes: [{
2548
- type: Input
2549
- }], totalsRow: [{
2550
- type: Input
2551
- }], pagerType: [{
2552
- type: Input
2553
- }], pageSize: [{
2554
- type: Input
2555
- }], pageIndex: [{
2556
- type: Input
2557
- }], bufferAmount: [{
2558
- type: Input
2559
- }], scrollAnimationTime: [{
2560
- type: Input
2561
- }], scrollDebounceTime: [{
2562
- type: Input
2563
- }], scrollThrottlingTime: [{
2564
- type: Input
2565
- }], SEPARATOR: [{
2566
- type: Input
2567
- }], useAsWebComponent: [{
2568
- type: Input
2569
- }], itemClick: [{
2570
- type: Output
2571
- }], fieldClick: [{
2572
- type: Output
2573
- }], valueChange: [{
2574
- type: Output
2575
- }], sortingChange: [{
2576
- type: Output
2577
- }], selectedItemsChange: [{
2578
- type: Output
2579
- }], selectedItemChange: [{
2580
- type: Output
2581
- }], selectAllClick: [{
2582
- type: Output
2583
- }], listLoad: [{
2584
- type: Output
2585
- }], loadItems: [{
2586
- type: Output
2587
- }], loadPage: [{
2588
- type: Output
2589
- }], startIndexChange: [{
2590
- type: Output
2591
- }], virtualScroller: [{
2592
- type: ViewChild,
2593
- args: [VirtualScrollerComponent]
2594
- }], selectAllCB: [{
2595
- type: ViewChild,
2596
- args: ['selectAllCB']
2597
- }] } });
2598
-
2599
- class PepListActionsComponent {
2600
- constructor() {
2601
- this.actions = null;
2602
- this.sizeType = 'md';
2603
- this.xPosition = 'before';
2604
- this.hidden = false;
2605
- this.actionClick = new EventEmitter();
2606
- this.stateChange = new EventEmitter();
2607
- this.menuClick = new EventEmitter();
2608
- }
2609
- onActionClicked(action) {
2610
- this.actionClick.emit(action);
2611
- }
2612
- onStateChanged(menuStateChangeEvent) {
2613
- this.stateChange.emit(menuStateChangeEvent);
2614
- }
2615
- }
2616
- PepListActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2617
- PepListActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PepListActionsComponent, selector: "pep-list-actions", inputs: { actions: "actions", sizeType: "sizeType", xPosition: "xPosition", hidden: "hidden" }, outputs: { actionClick: "actionClick", stateChange: "stateChange", menuClick: "menuClick" }, ngImport: i0, template: "\uFEFF<pep-menu [xPosition]=\"xPosition\" [styleType]=\"'strong'\" [sizeType]=\"sizeType\" [items]=\"!hidden ? actions : null\"\n [hideOnEmptyItems]=\"true\" [iconName]=\"'system_edit'\" (menuItemClick)=\"onActionClicked($event)\"\n (stateChange)=\"onStateChanged($event)\" (menuClick)=\"menuClick.emit();\">\n</pep-menu>\n", styles: [""], dependencies: [{ kind: "component", type: i1$1.PepMenuComponent, selector: "pep-menu", inputs: ["text", "iconName", "iconPosition", "type", "styleType", "sizeType", "classNames", "xPosition", "hideOnEmptyItems", "items", "selectedItem", "disabled"], outputs: ["stateChange", "menuItemClick", "menuClick"] }] });
2618
- PepListActionsComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListActionsComponent });
2619
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListActionsComponent, decorators: [{
2620
- type: Component,
2621
- args: [{ selector: 'pep-list-actions', template: "\uFEFF<pep-menu [xPosition]=\"xPosition\" [styleType]=\"'strong'\" [sizeType]=\"sizeType\" [items]=\"!hidden ? actions : null\"\n [hideOnEmptyItems]=\"true\" [iconName]=\"'system_edit'\" (menuItemClick)=\"onActionClicked($event)\"\n (stateChange)=\"onStateChanged($event)\" (menuClick)=\"menuClick.emit();\">\n</pep-menu>\n" }]
2622
- }, {
2623
- type: Injectable
2624
- }], propDecorators: { actions: [{
2625
- type: Input
2626
- }], sizeType: [{
2627
- type: Input
2628
- }], xPosition: [{
2629
- type: Input
2630
- }], hidden: [{
2631
- type: Input
2632
- }], actionClick: [{
2633
- type: Output
2634
- }], stateChange: [{
2635
- type: Output
2636
- }], menuClick: [{
2637
- type: Output
2638
- }] } });
2639
-
2640
- class PepListCarouselComponent {
2641
- set items(value) {
2642
- this._items = value;
2643
- this.moveTo(0);
2644
- }
2645
- get items() {
2646
- return this._items;
2647
- }
2648
- set itemSize(value) {
2649
- this._itemSize = value;
2650
- this.moveTo(0);
2651
- }
2652
- get itemSize() {
2653
- return this._itemSize;
2654
- }
2655
- // deviceHasMouse = false;
2656
- constructor(layoutService) {
2657
- this.layoutService = layoutService;
2658
- this.duration = 1000;
2659
- this.layout = null;
2660
- this.itemsToMove = 3;
2661
- this.lockItemInnerEvents = true;
2662
- this.hideArrowsInSmallScreen = true;
2663
- this._items = null;
2664
- this._itemSize = 'xs';
2665
- this.itemClick = new EventEmitter();
2666
- this.prevDisabled = false;
2667
- this.nextDisabled = false;
2668
- this.PepScreenSizeType = PepScreenSizeType;
2669
- // this.deviceHasMouse = this.layoutService.getDeviceHasMouse();
2670
- }
2671
- ngAfterViewInit() {
2672
- this.layoutService.onResize$.subscribe((size) => {
2673
- this.screenSize = size;
2674
- });
2675
- // this.layoutService.onMouseOver$.subscribe((deviceHasMouse: boolean) => {
2676
- // this.deviceHasMouse = deviceHasMouse;
2677
- // });
2678
- }
2679
- ngOnDestroy() {
2680
- // if (this.itemClick) {
2681
- // this.itemClick.unsubscribe();
2682
- // }
2683
- }
2684
- itemClicked(item) {
2685
- this.itemClick.emit({ source: item });
2686
- }
2687
- moveLeft() {
2688
- // this.carousel.moveLeft();
2689
- const indexToMove = Math.max(this.carousel.currIndex - this.itemsToMove, 0);
2690
- this.moveTo(indexToMove);
2691
- }
2692
- moveRight() {
2693
- // this.carousel.moveRight();
2694
- const indexToMove = Math.min(this.carousel.currIndex + this.itemsToMove, this.items.length);
2695
- this.moveTo(indexToMove);
2696
- }
2697
- moveTo(index) {
2698
- if (this.carousel) {
2699
- this.carousel.moveTo(index);
2700
- }
2701
- }
2702
- onReachesLeftBound(event) {
2703
- this.prevDisabled = event;
2704
- }
2705
- onReachesRightBound(event) {
2706
- this.nextDisabled = event;
2707
- }
2708
- }
2709
- PepListCarouselComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListCarouselComponent, deps: [{ token: i1.PepLayoutService }], target: i0.ɵɵFactoryTarget.Component });
2710
- PepListCarouselComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PepListCarouselComponent, selector: "pep-list-carousel", inputs: { duration: "duration", layout: "layout", itemsToMove: "itemsToMove", lockItemInnerEvents: "lockItemInnerEvents", hideArrowsInSmallScreen: "hideArrowsInSmallScreen", items: "items", itemSize: "itemSize" }, outputs: { itemClick: "itemClick" }, viewQueries: [{ propertyName: "carousel", first: true, predicate: ["carousel"], descendants: true, read: PepCarouselComponent }], ngImport: i0, template: "\uFEFF<div class=\"carousel-container\">\n <ng-container *ngIf=\"items?.length > 0; then carouselBlock; else emptyBlock\"></ng-container>\n <ng-template #emptyBlock>\n <!-- No items -->\n </ng-template>\n <ng-template #carouselBlock>\n <pep-button *ngIf=\"!(hideArrowsInSmallScreen && screenSize > PepScreenSizeType.SM)\"\n [iconName]=\"'arrow_left_alt'\" [styleType]=\"'regular'\" [disabled]=\"prevDisabled\" (click)=\"moveLeft()\"\n class=\"carousel-arrow start-arrow\">\n </pep-button>\n <pep-carousel #carousel [xWheelEnabled]=\"false\" [snapDuration]=\"duration\"\n (reachesLeftBound)=\"onReachesLeftBound($event)\" (reachesRightBound)=\"onReachesRightBound($event)\">\n <ng-container *ngFor=\"let item of items\">\n <pep-form pepCarouselItem [layout]=\"layout\" [data]=\"item\" [layoutType]=\"'card'\"\n (click)=\"itemClicked(item)\" class=\"card-view \" [lockEvents]=\"lockItemInnerEvents\"\n [ngClass]=\"{ 'x-small-card': itemSize === 'xs', 'small-card': itemSize === 'sm'}\">\n </pep-form>\n </ng-container>\n </pep-carousel>\n <pep-button *ngIf=\"!(hideArrowsInSmallScreen && screenSize > PepScreenSizeType.SM)\"\n [iconName]=\"'arrow_right_alt'\" [styleType]=\"'regular'\" [disabled]=\"nextDisabled\" (click)=\"moveRight()\"\n class=\"carousel-arrow end-arrow\">\n </pep-button>\n </ng-template>\n</div>", styles: [".carousel-container{position:relative;margin:0 calc(var(--pep-spacing-sm, .5rem) * -1);display:grid}.carousel-container .carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:1}.carousel-container .carousel-arrow.start-arrow{left:0}.carousel-container .carousel-arrow.end-arrow{right:0}.carousel-container ::ng-deep .carousel-content .card-view{padding:var(--pep-spacing-sm, .5rem) 0!important}.carousel-container ::ng-deep .carousel-content .card-view:first-child{padding-inline-start:var(--pep-spacing-sm, .5rem)!important}.carousel-container ::ng-deep .carousel-content .card-view:last-child{padding-inline-end:var(--pep-spacing-sm, .5rem)!important}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$2.PepButtonComponent, selector: "pep-button", inputs: ["key", "value", "styleType", "styleStateType", "sizeType", "classNames", "disabled", "iconName", "iconPosition", "visible"], outputs: ["buttonClick"] }, { kind: "component", type: i4$2.PepCarouselComponent, selector: "pep-carousel", inputs: ["scrollbarHidden", "disabled", "xDisabled", "yDisabled", "xWheelEnabled", "dragDisabled", "snapDisabled", "snapOffset", "snapDuration"], outputs: ["dsInitialized", "indexChanged", "reachesLeftBound", "reachesRightBound", "snapAnimationFinished", "dragStart", "dragEnd"] }, { kind: "directive", type: i4$2.PepCarouselItemDirective, selector: "[pepCarouselItem]", inputs: ["dragDisabled"] }, { kind: "component", type: i7.PepFormComponent, selector: "pep-form", inputs: ["isInternal", "isReport", "layout", "lockEvents", "canEditObject", "data", "lockFields", "isActive", "layoutType", "objectId", "parentId", "searchCode", "showTitle", "firstFieldAsLink", "checkForChanges"], outputs: ["valueChange", "formValidationChange", "fieldClick", "internalFormFieldClick", "internalFormFieldChange"] }] });
2711
- PepListCarouselComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListCarouselComponent });
2712
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListCarouselComponent, decorators: [{
2713
- type: Component,
2714
- args: [{ selector: 'pep-list-carousel', template: "\uFEFF<div class=\"carousel-container\">\n <ng-container *ngIf=\"items?.length > 0; then carouselBlock; else emptyBlock\"></ng-container>\n <ng-template #emptyBlock>\n <!-- No items -->\n </ng-template>\n <ng-template #carouselBlock>\n <pep-button *ngIf=\"!(hideArrowsInSmallScreen && screenSize > PepScreenSizeType.SM)\"\n [iconName]=\"'arrow_left_alt'\" [styleType]=\"'regular'\" [disabled]=\"prevDisabled\" (click)=\"moveLeft()\"\n class=\"carousel-arrow start-arrow\">\n </pep-button>\n <pep-carousel #carousel [xWheelEnabled]=\"false\" [snapDuration]=\"duration\"\n (reachesLeftBound)=\"onReachesLeftBound($event)\" (reachesRightBound)=\"onReachesRightBound($event)\">\n <ng-container *ngFor=\"let item of items\">\n <pep-form pepCarouselItem [layout]=\"layout\" [data]=\"item\" [layoutType]=\"'card'\"\n (click)=\"itemClicked(item)\" class=\"card-view \" [lockEvents]=\"lockItemInnerEvents\"\n [ngClass]=\"{ 'x-small-card': itemSize === 'xs', 'small-card': itemSize === 'sm'}\">\n </pep-form>\n </ng-container>\n </pep-carousel>\n <pep-button *ngIf=\"!(hideArrowsInSmallScreen && screenSize > PepScreenSizeType.SM)\"\n [iconName]=\"'arrow_right_alt'\" [styleType]=\"'regular'\" [disabled]=\"nextDisabled\" (click)=\"moveRight()\"\n class=\"carousel-arrow end-arrow\">\n </pep-button>\n </ng-template>\n</div>", styles: [".carousel-container{position:relative;margin:0 calc(var(--pep-spacing-sm, .5rem) * -1);display:grid}.carousel-container .carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:1}.carousel-container .carousel-arrow.start-arrow{left:0}.carousel-container .carousel-arrow.end-arrow{right:0}.carousel-container ::ng-deep .carousel-content .card-view{padding:var(--pep-spacing-sm, .5rem) 0!important}.carousel-container ::ng-deep .carousel-content .card-view:first-child{padding-inline-start:var(--pep-spacing-sm, .5rem)!important}.carousel-container ::ng-deep .carousel-content .card-view:last-child{padding-inline-end:var(--pep-spacing-sm, .5rem)!important}\n"] }]
2715
- }, {
2716
- type: Injectable
2717
- }], ctorParameters: function () { return [{ type: i1.PepLayoutService }]; }, propDecorators: { duration: [{
2718
- type: Input
2719
- }], layout: [{
2720
- type: Input
2721
- }], itemsToMove: [{
2722
- type: Input
2723
- }], lockItemInnerEvents: [{
2724
- type: Input
2725
- }], hideArrowsInSmallScreen: [{
2726
- type: Input
2727
- }], items: [{
2728
- type: Input
2729
- }], itemSize: [{
2730
- type: Input
2731
- }], itemClick: [{
2732
- type: Output
2733
- }], carousel: [{
2734
- type: ViewChild,
2735
- args: ['carousel', { read: PepCarouselComponent }]
2736
- }] } });
2737
-
2738
- class IPepListChooserOption {
2739
- }
2740
- class PepListChooserComponent {
2741
- constructor() {
2742
- this._options = null;
2743
- this._currentList = null;
2744
- this.sizeType = 'md';
2745
- this.change = new EventEmitter();
2746
- this.breadCrumbsItems = null;
2747
- this.menuItems = null;
2748
- this.currentItem = null;
2749
- }
2750
- set options(value) {
2751
- var _a;
2752
- this._options = value;
2753
- this.menuItems = value.map((opt) => {
2754
- return { key: opt.key, text: opt.text };
2755
- });
2756
- if (((_a = this.menuItems) === null || _a === void 0 ? void 0 : _a.length) === 1) {
2757
- this.breadCrumbsItems = [];
2758
- this.breadCrumbsItems.push(new PepBreadCrumbItem({
2759
- key: this.menuItems[0].key,
2760
- text: this.menuItems[0].text,
2761
- }));
2762
- }
2763
- }
2764
- get options() {
2765
- return this._options;
2766
- }
2767
- set currentList(value) {
2768
- this._currentList = value;
2769
- this.currentItem = this.menuItems.find((mi) => mi.key === value.key);
2770
- }
2771
- get currentList() {
2772
- return this._currentList;
2773
- }
2774
- onMenuItemClicked(menuItemClickEvent) {
2775
- this.currentList = this.options.find((list) => list.key === menuItemClickEvent.source.key);
2776
- this.change.emit({ source: this.currentList });
2777
- }
2778
- }
2779
- PepListChooserComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListChooserComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2780
- PepListChooserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PepListChooserComponent, selector: "pep-list-chooser", inputs: { options: "options", currentList: "currentList", sizeType: "sizeType" }, outputs: { change: "change" }, ngImport: i0, template: "\uFEFF<ng-container *ngIf=\"menuItems?.length > 1\">\n <pep-menu [type]=\"'select'\" [sizeType]=\"sizeType\" [items]=\"menuItems\" [selectedItem]=\"currentItem\"\n [iconName]=\"'arrow_down'\" (menuItemClick)=\"onMenuItemClicked($event)\"></pep-menu>\n</ng-container>\n<ng-container *ngIf=\"menuItems?.length == 1\">\n <pep-bread-crumbs [items]=\"breadCrumbsItems\" [addSpacing]=\"true\"></pep-bread-crumbs>\n</ng-container>", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$2.PepBreadCrumbsComponent, selector: "pep-bread-crumbs", inputs: ["items", "displayType", "addSpacing"], outputs: ["itemClick"] }, { kind: "component", type: i1$1.PepMenuComponent, selector: "pep-menu", inputs: ["text", "iconName", "iconPosition", "type", "styleType", "sizeType", "classNames", "xPosition", "hideOnEmptyItems", "items", "selectedItem", "disabled"], outputs: ["stateChange", "menuItemClick", "menuClick"] }] });
2781
- PepListChooserComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListChooserComponent });
2782
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListChooserComponent, decorators: [{
2783
- type: Component,
2784
- args: [{ selector: 'pep-list-chooser', template: "\uFEFF<ng-container *ngIf=\"menuItems?.length > 1\">\n <pep-menu [type]=\"'select'\" [sizeType]=\"sizeType\" [items]=\"menuItems\" [selectedItem]=\"currentItem\"\n [iconName]=\"'arrow_down'\" (menuItemClick)=\"onMenuItemClicked($event)\"></pep-menu>\n</ng-container>\n<ng-container *ngIf=\"menuItems?.length == 1\">\n <pep-bread-crumbs [items]=\"breadCrumbsItems\" [addSpacing]=\"true\"></pep-bread-crumbs>\n</ng-container>" }]
2785
- }, {
2786
- type: Injectable
2787
- }], propDecorators: { options: [{
2788
- type: Input
2789
- }], currentList: [{
2790
- type: Input
2791
- }], sizeType: [{
2792
- type: Input
2793
- }], change: [{
2794
- type: Output
2795
- }] } });
2796
-
2797
- class IPepListSortingOption {
2798
- }
2799
- class PepListSortingComponent {
2800
- constructor() {
2801
- this._options = null;
2802
- this._currentSorting = null;
2803
- this.sizeType = 'md';
2804
- this.change = new EventEmitter();
2805
- this.menuItems = null;
2806
- this.currentItem = null;
2807
- }
2808
- set options(value) {
2809
- this._options = value;
2810
- this.menuItems = value.map((opt) => {
2811
- return { key: opt.sortBy, text: opt.title, iconName: opt.iconName };
2812
- });
2813
- }
2814
- get options() {
2815
- return this._options;
2816
- }
2817
- set currentSorting(value) {
2818
- this._currentSorting = value;
2819
- this.currentItem = this.menuItems.find((mi) => mi.key === value.sortBy);
2820
- }
2821
- get currentSorting() {
2822
- return this._currentSorting;
2823
- }
2824
- ngOnInit() {
2825
- if (this.currentSorting === null &&
2826
- this.options &&
2827
- this.options.length > 0) {
2828
- this.currentSorting = this.options[0];
2829
- }
2830
- }
2831
- onMenuItemClicked(menuItemClickEvent) {
2832
- this.currentSorting = this.options.find((sorting) => sorting.sortBy === menuItemClickEvent.source.key);
2833
- this.change.emit({ source: this.currentSorting });
2834
- }
2835
- }
2836
- PepListSortingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListSortingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2837
- PepListSortingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PepListSortingComponent, selector: "pep-list-sorting", inputs: { options: "options", currentSorting: "currentSorting", sizeType: "sizeType" }, outputs: { change: "change" }, ngImport: i0, template: "\uFEFF<div class=\"sorting-container\">\n <div class=\"body-xs sort-by\">\n <span>{{ 'LIST.SORT_BY' | translate }}</span>\n </div>\n <pep-menu [type]=\"'select'\" [sizeType]=\"sizeType\" [items]=\"menuItems\" [selectedItem]=\"currentItem\"\n [iconName]=\"'arrow_down'\" (menuItemClick)=\"onMenuItemClicked($event)\"></pep-menu>\n</div>", styles: [".sorting-container{display:flex;align-items:center}.sorting-container .sort-by{margin-inline-end:var(--pep-spacing-sm, .5rem)}\n"], dependencies: [{ kind: "component", type: i1$1.PepMenuComponent, selector: "pep-menu", inputs: ["text", "iconName", "iconPosition", "type", "styleType", "sizeType", "classNames", "xPosition", "hideOnEmptyItems", "items", "selectedItem", "disabled"], outputs: ["stateChange", "menuItemClick", "menuClick"] }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }] });
2838
- PepListSortingComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListSortingComponent });
2839
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListSortingComponent, decorators: [{
2840
- type: Component,
2841
- args: [{ selector: 'pep-list-sorting', template: "\uFEFF<div class=\"sorting-container\">\n <div class=\"body-xs sort-by\">\n <span>{{ 'LIST.SORT_BY' | translate }}</span>\n </div>\n <pep-menu [type]=\"'select'\" [sizeType]=\"sizeType\" [items]=\"menuItems\" [selectedItem]=\"currentItem\"\n [iconName]=\"'arrow_down'\" (menuItemClick)=\"onMenuItemClicked($event)\"></pep-menu>\n</div>", styles: [".sorting-container{display:flex;align-items:center}.sorting-container .sort-by{margin-inline-end:var(--pep-spacing-sm, .5rem)}\n"] }]
2842
- }, {
2843
- type: Injectable
2844
- }], propDecorators: { options: [{
2845
- type: Input
2846
- }], currentSorting: [{
2847
- type: Input
2848
- }], sizeType: [{
2849
- type: Input
2850
- }], change: [{
2851
- type: Output
2852
- }] } });
2853
-
2854
- class PepListTotalComponent {
2855
- constructor() {
2856
- this.totalRows = -1;
2857
- this.totalAmount = -1;
2858
- this.isMapView = false;
2859
- this.sizeType = 'md';
2860
- this.unknownCount = false;
2861
- }
2862
- }
2863
- PepListTotalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListTotalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2864
- PepListTotalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PepListTotalComponent, selector: "pep-list-total", inputs: { totalRows: "totalRows", totalAmount: "totalAmount", isMapView: "isMapView", sizeType: "sizeType", unknownCount: "unknownCount" }, ngImport: i0, template: "\uFEFF<div class=\"total-items-container\">\n <ng-container *ngIf=\"isMapView; then mapTemplate; else notMapTemplate\"></ng-container>\n\n <ng-template #notMapTemplate>\n <ng-container *ngIf=\"totalRows >= 0\">\n <div class=\"body-{{sizeType}} total-items color-dimmed\"\n [innerHtml]=\"(totalRows === 1 ? 'LIST.TOTAL_RESULT' : 'LIST.TOTAL_RESULTS') | translate: { totalRows: totalRows ,unknownCount: unknownCount === true ? '+' : ''}\">\n </div>\n </ng-container>\n <ng-container *ngIf=\"totalAmount > 0\"> {{ 'LIST.TOTAL_OF' | translate }} {{ totalAmount }} </ng-container>\n </ng-template>\n\n <ng-template #mapTemplate>\n <ng-container *ngIf=\"totalAmount >= 0\">\n </ng-container>\n <ng-container *ngIf=\"totalRows >= 0\">\n <div class=\"body-{{sizeType}} total-items color-dimmed\"\n [innerHtml]=\"(totalRows === 1 ? 'LIST.TOTAL_RESULT_OUT_OF_RESULT' : 'LIST.TOTAL_RESULTS_OUT_OF') | translate: { xRows: totalAmount, totalRows: totalRows }\">\n </div>\n </ng-container>\n </ng-template>\n</div>", styles: [":host{height:inherit}.total-items-container{height:100%;display:flex;align-items:center}\n", ""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }] });
2865
- PepListTotalComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListTotalComponent });
2866
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListTotalComponent, decorators: [{
2867
- type: Component,
2868
- args: [{ selector: 'pep-list-total', template: "\uFEFF<div class=\"total-items-container\">\n <ng-container *ngIf=\"isMapView; then mapTemplate; else notMapTemplate\"></ng-container>\n\n <ng-template #notMapTemplate>\n <ng-container *ngIf=\"totalRows >= 0\">\n <div class=\"body-{{sizeType}} total-items color-dimmed\"\n [innerHtml]=\"(totalRows === 1 ? 'LIST.TOTAL_RESULT' : 'LIST.TOTAL_RESULTS') | translate: { totalRows: totalRows ,unknownCount: unknownCount === true ? '+' : ''}\">\n </div>\n </ng-container>\n <ng-container *ngIf=\"totalAmount > 0\"> {{ 'LIST.TOTAL_OF' | translate }} {{ totalAmount }} </ng-container>\n </ng-template>\n\n <ng-template #mapTemplate>\n <ng-container *ngIf=\"totalAmount >= 0\">\n </ng-container>\n <ng-container *ngIf=\"totalRows >= 0\">\n <div class=\"body-{{sizeType}} total-items color-dimmed\"\n [innerHtml]=\"(totalRows === 1 ? 'LIST.TOTAL_RESULT_OUT_OF_RESULT' : 'LIST.TOTAL_RESULTS_OUT_OF') | translate: { xRows: totalAmount, totalRows: totalRows }\">\n </div>\n </ng-container>\n </ng-template>\n</div>", styles: [":host{height:inherit}.total-items-container{height:100%;display:flex;align-items:center}\n"] }]
2869
- }, {
2870
- type: Injectable
2871
- }], propDecorators: { totalRows: [{
2872
- type: Input
2873
- }], totalAmount: [{
2874
- type: Input
2875
- }], isMapView: [{
2876
- type: Input
2877
- }], sizeType: [{
2878
- type: Input
2879
- }], unknownCount: [{
2880
- type: Input
2881
- }] } });
2882
-
2883
- class IPepListView {
2884
- }
2885
- class PepListViewsComponent {
2886
- constructor() {
2887
- this._views = null;
2888
- this._currentView = null;
2889
- this.displayType = 'menu';
2890
- this.styleType = 'weak';
2891
- this.sizeType = 'md';
2892
- this.classNames = '';
2893
- this.change = new EventEmitter();
2894
- this.menuItems = null;
2895
- this.currentItem = null;
2896
- }
2897
- set views(value) {
2898
- this._views = value;
2899
- this.menuItems = value.map((opt) => {
2900
- return { key: opt.key, text: opt.title, iconName: opt.iconName };
2901
- });
2902
- }
2903
- get views() {
2904
- return this._views;
2905
- }
2906
- set currentView(value) {
2907
- this._currentView = value;
2908
- if (this.displayType === 'menu') {
2909
- this.currentItem = this.menuItems.find((mi) => mi.key === value.key);
2910
- }
2911
- }
2912
- get currentView() {
2913
- return this._currentView;
2914
- }
2915
- ngOnInit() {
2916
- if (this.displayType === 'buttons') {
2917
- if (this.currentView === null &&
2918
- this.views &&
2919
- this.views.length > 0) {
2920
- this.currentView = this.views[0];
2921
- }
2922
- }
2923
- }
2924
- onMenuItemClicked(menuItemClickEvent) {
2925
- this.currentView = this.views.find((list) => list.key === menuItemClickEvent.source.key);
2926
- this.raiseChangeEvent();
2927
- }
2928
- onViewChanged(view) {
2929
- this.currentView = view;
2930
- this.raiseChangeEvent();
2931
- }
2932
- raiseChangeEvent() {
2933
- this.change.emit({ source: this.currentView });
2934
- }
2935
- }
2936
- PepListViewsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListViewsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2937
- PepListViewsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PepListViewsComponent, selector: "pep-list-views", inputs: { views: "views", currentView: "currentView", displayType: "displayType", styleType: "styleType", sizeType: "sizeType", classNames: "classNames" }, outputs: { change: "change" }, ngImport: i0, template: "\uFEFF<ng-container *ngIf=\"displayType === 'menu' then menuTemplate else buttonsTemplate\">\n</ng-container>\n<ng-template #menuTemplate>\n <pep-menu [type]=\"'select'\" [styleType]=\"styleType\" [sizeType]=\"sizeType\" [classNames]=\"classNames\"\n [items]=\"menuItems\" [selectedItem]=\"currentItem\"\n [iconName]=\"currentItem?.iconName ? currentItem?.iconName : 'arrow_down'\"\n (menuItemClick)=\"onMenuItemClicked($event)\"></pep-menu>\n</ng-template>\n<ng-template #buttonsTemplate>\n <div class=\"buttons-wrapper pep-spacing-element-negative\">\n <button *ngFor=\"let view of views\" mat-button [title]=\"view.title\" [disabled]=\"view.key === currentView?.key\"\n class=\"pep-button icon-button pep-spacing-element {{ sizeType }} {{ styleType }} {{ classNames }}\"\n pepRtlDirection pepMenuBlur (click)=\"onViewChanged(view)\">\n <mat-icon>\n <pep-icon name=\"{{ view?.iconName }}\"></pep-icon>\n </mat-icon>\n </button>\n </div>\n</ng-template>", styles: [".buttons-wrapper{display:flex}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i1.PepMenuBlurDirective, selector: "[pepMenuBlur]" }, { kind: "directive", type: i1.PepRtlDirectionDirective, selector: "[pepRtlDirection]" }, { kind: "component", type: i5.PepIconComponent, selector: "pep-icon", inputs: ["spin", "name", "fill"] }, { kind: "component", type: i1$1.PepMenuComponent, selector: "pep-menu", inputs: ["text", "iconName", "iconPosition", "type", "styleType", "sizeType", "classNames", "xPosition", "hideOnEmptyItems", "items", "selectedItem", "disabled"], outputs: ["stateChange", "menuItemClick", "menuClick"] }] });
2938
- PepListViewsComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListViewsComponent });
2939
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListViewsComponent, decorators: [{
2940
- type: Component,
2941
- args: [{ selector: 'pep-list-views', template: "\uFEFF<ng-container *ngIf=\"displayType === 'menu' then menuTemplate else buttonsTemplate\">\n</ng-container>\n<ng-template #menuTemplate>\n <pep-menu [type]=\"'select'\" [styleType]=\"styleType\" [sizeType]=\"sizeType\" [classNames]=\"classNames\"\n [items]=\"menuItems\" [selectedItem]=\"currentItem\"\n [iconName]=\"currentItem?.iconName ? currentItem?.iconName : 'arrow_down'\"\n (menuItemClick)=\"onMenuItemClicked($event)\"></pep-menu>\n</ng-template>\n<ng-template #buttonsTemplate>\n <div class=\"buttons-wrapper pep-spacing-element-negative\">\n <button *ngFor=\"let view of views\" mat-button [title]=\"view.title\" [disabled]=\"view.key === currentView?.key\"\n class=\"pep-button icon-button pep-spacing-element {{ sizeType }} {{ styleType }} {{ classNames }}\"\n pepRtlDirection pepMenuBlur (click)=\"onViewChanged(view)\">\n <mat-icon>\n <pep-icon name=\"{{ view?.iconName }}\"></pep-icon>\n </mat-icon>\n </button>\n </div>\n</ng-template>", styles: [".buttons-wrapper{display:flex}\n"] }]
2942
- }, {
2943
- type: Injectable
2944
- }], propDecorators: { views: [{
2945
- type: Input
2946
- }], currentView: [{
2947
- type: Input
2948
- }], displayType: [{
2949
- type: Input
2950
- }], styleType: [{
2951
- type: Input
2952
- }], sizeType: [{
2953
- type: Input
2954
- }], classNames: [{
2955
- type: Input
2956
- }], change: [{
2957
- type: Output
2958
- }] } });
2959
-
2960
- class IsItemSelectedPipe {
2961
- constructor() {
2962
- this.SEPARATOR = ',';
2963
- }
2964
- getUniqItemId(itemId, itemType = '') {
2965
- return itemId + this.SEPARATOR + itemType;
2966
- }
2967
- transform(item, selectionTypeForActions, selectedItemId, isAllSelected, selectedItems, unSelectedItems) {
2968
- let isSelected = false;
2969
- if (selectionTypeForActions === 'single') {
2970
- isSelected = selectedItemId === this.getUniqItemId(item === null || item === void 0 ? void 0 : item.UID, item === null || item === void 0 ? void 0 : item.Type.toString());
2971
- }
2972
- // else if (selectionTypeForActions === 'single-action') {
2973
- // isSelected = (isAllSelected && !unSelectedItems.has(item?.UID)) || selectedItems.has(item?.UID);
2974
- // }
2975
- else if (selectionTypeForActions === 'multi') {
2976
- if (item === null || item === void 0 ? void 0 : item.IsSelectableForActions) {
2977
- isSelected = (isAllSelected && !unSelectedItems.has(item === null || item === void 0 ? void 0 : item.UID)) || selectedItems.has(item === null || item === void 0 ? void 0 : item.UID);
2978
- }
2979
- }
2980
- return isSelected;
2981
- }
2982
- }
2983
- IsItemSelectedPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IsItemSelectedPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2984
- IsItemSelectedPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: IsItemSelectedPipe, name: "isItemSelected" });
2985
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IsItemSelectedPipe, decorators: [{
2986
- type: Pipe,
2987
- args: [{
2988
- name: 'isItemSelected'
2989
- }]
2990
- }] });
2991
- class IsItemDisabledPipe {
2992
- transform(item, lockItemInnerEvents, printMode) {
2993
- return (printMode || lockItemInnerEvents || (item && !item.IsSelectableForActions));
2994
- }
2995
- }
2996
- IsItemDisabledPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IsItemDisabledPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2997
- IsItemDisabledPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: IsItemDisabledPipe, name: "isItemDisabled" });
2998
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IsItemDisabledPipe, decorators: [{
2999
- type: Pipe,
3000
- args: [{
3001
- name: 'isItemDisabled'
3002
- }]
3003
- }] });
3004
-
3005
- const listComponents = [
3006
- // PepListOldComponent,
3007
- PepListComponent,
3008
- PepListActionsComponent,
3009
- PepListCarouselComponent,
3010
- PepListChooserComponent,
3011
- PepListPagerComponent,
3012
- PepListSortingComponent,
3013
- PepListTotalComponent,
3014
- PepListViewsComponent,
3015
- ];
3016
- const listPipes = [
3017
- IsItemSelectedPipe,
3018
- IsItemDisabledPipe
3019
- ];
3020
- // import { PepVirtualScrollComponent } from './virtual-scroll.component';
3021
- class PepListModule {
3022
- constructor(pepIconRegistry) {
3023
- this.pepIconRegistry = pepIconRegistry;
3024
- this.pepIconRegistry.registerIcons([
3025
- pepIconArrowDown,
3026
- pepIconArrowEither,
3027
- pepIconArrowUp,
3028
- pepIconSystemMust,
3029
- pepIconArrowRight,
3030
- pepIconArrowRightAlt,
3031
- pepIconArrowLeft,
3032
- pepIconArrowLeftAlt,
3033
- ]);
3034
- }
3035
- }
3036
- PepListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListModule, deps: [{ token: i5.PepIconRegistry }], target: i0.ɵɵFactoryTarget.NgModule });
3037
- PepListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepListModule, declarations: [
3038
- // PepListOldComponent,
3039
- PepListComponent,
3040
- PepListActionsComponent,
3041
- PepListCarouselComponent,
3042
- PepListChooserComponent,
3043
- PepListPagerComponent,
3044
- PepListSortingComponent,
3045
- PepListTotalComponent,
3046
- PepListViewsComponent, IsItemSelectedPipe,
3047
- IsItemDisabledPipe
3048
- ], imports: [CommonModule,
3049
- // Material modules,
3050
- MatCommonModule,
3051
- MatButtonModule,
3052
- MatCheckboxModule,
3053
- MatRadioModule,
3054
- MatIconModule,
3055
- MatMenuModule,
3056
- // ngx-lib modules
3057
- PepNgxLibModule,
3058
- PepBreadCrumbsModule,
3059
- PepButtonModule,
3060
- PepCarouselModule,
3061
- PepIconModule,
3062
- PepFormModule,
3063
- PepMenuModule,
3064
- PepTextboxModule,
3065
- VirtualScrollerModule], exports: [
3066
- // PepListOldComponent,
3067
- PepListComponent,
3068
- PepListActionsComponent,
3069
- PepListCarouselComponent,
3070
- PepListChooserComponent,
3071
- PepListPagerComponent,
3072
- PepListSortingComponent,
3073
- PepListTotalComponent,
3074
- PepListViewsComponent
3075
- ] });
3076
- PepListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListModule, imports: [CommonModule,
3077
- // Material modules,
3078
- MatCommonModule,
3079
- MatButtonModule,
3080
- MatCheckboxModule,
3081
- MatRadioModule,
3082
- MatIconModule,
3083
- MatMenuModule,
3084
- // ngx-lib modules
3085
- PepNgxLibModule,
3086
- PepBreadCrumbsModule,
3087
- PepButtonModule,
3088
- PepCarouselModule,
3089
- PepIconModule,
3090
- PepFormModule,
3091
- PepMenuModule,
3092
- PepTextboxModule,
3093
- VirtualScrollerModule] });
3094
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepListModule, decorators: [{
3095
- type: NgModule,
3096
- args: [{
3097
- imports: [
3098
- CommonModule,
3099
- // Material modules,
3100
- MatCommonModule,
3101
- MatButtonModule,
3102
- MatCheckboxModule,
3103
- MatRadioModule,
3104
- MatIconModule,
3105
- MatMenuModule,
3106
- // ngx-lib modules
3107
- PepNgxLibModule,
3108
- PepBreadCrumbsModule,
3109
- PepButtonModule,
3110
- PepCarouselModule,
3111
- PepIconModule,
3112
- PepFormModule,
3113
- PepMenuModule,
3114
- PepTextboxModule,
3115
- VirtualScrollerModule
3116
- ],
3117
- exports: [listComponents],
3118
- declarations: [listComponents, listPipes],
3119
- }]
3120
- }], ctorParameters: function () { return [{ type: i5.PepIconRegistry }]; } });
3121
-
3122
- /*
3123
- * Public API Surface of ngx-lib/list
3124
- */
3125
-
3126
- /**
3127
- * Generated bundle index. Do not edit.
3128
- */
3129
-
3130
- export { DEFAULT_PAGE_SIZE, IPepListChooserOption, IPepListPagerChangeEvent, IPepListSortingOption, IPepListView, PepListActionsComponent, PepListCarouselComponent, PepListChooserComponent, PepListComponent, PepListModule, PepListPagerComponent, PepListSortingComponent, PepListTotalComponent, PepListViewsComponent, PepSelectionData };
3131
- //# sourceMappingURL=pepperi-addons-ngx-lib-list.mjs.map