@pepperi-addons/ngx-lib 0.5.0-ng16.8 → 0.5.0-ng17.2

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 (276) hide show
  1. package/core/http/interceptors/index.d.ts +2 -2
  2. package/esm2022/address/address.component.mjs +6 -6
  3. package/esm2022/address/address.module.mjs +4 -4
  4. package/esm2022/attachment/attachment.component.mjs +5 -5
  5. package/esm2022/attachment/attachment.module.mjs +4 -4
  6. package/esm2022/bread-crumbs/bread-crumbs.component.mjs +6 -6
  7. package/esm2022/bread-crumbs/bread-crumbs.module.mjs +5 -5
  8. package/esm2022/button/button.component.mjs +6 -6
  9. package/esm2022/button/button.module.mjs +4 -4
  10. package/esm2022/carousel/carousel-item.directive.mjs +6 -6
  11. package/esm2022/carousel/carousel.component.mjs +6 -6
  12. package/esm2022/carousel/carousel.module.mjs +4 -4
  13. package/esm2022/checkbox/checkbox.component.mjs +5 -5
  14. package/esm2022/checkbox/checkbox.module.mjs +5 -5
  15. package/esm2022/chips/chips.component.mjs +6 -6
  16. package/esm2022/chips/chips.module.mjs +5 -5
  17. package/esm2022/chips/chips.service.mjs +4 -4
  18. package/esm2022/color/color-picker.component.mjs +6 -6
  19. package/esm2022/color/color.component.mjs +5 -5
  20. package/esm2022/color/color.module.mjs +5 -5
  21. package/esm2022/core/clipboard/clipboard.directive.mjs +3 -3
  22. package/esm2022/core/clipboard/clipboard.service.mjs +3 -3
  23. package/esm2022/core/common/directives/auto-width.directive.mjs +5 -5
  24. package/esm2022/core/common/directives/base-destroyer.directive.mjs +4 -4
  25. package/esm2022/core/common/directives/button-blur.directive.mjs +5 -5
  26. package/esm2022/core/common/directives/button-loader.directive.mjs +6 -6
  27. package/esm2022/core/common/directives/data-qa.directive.mjs +5 -5
  28. package/esm2022/core/common/directives/div-loader.directive.mjs +6 -6
  29. package/esm2022/core/common/directives/menu-blur.directive.mjs +5 -5
  30. package/esm2022/core/common/directives/prevent-multi-click.directive.mjs +3 -3
  31. package/esm2022/core/common/directives/print.directive.mjs +3 -3
  32. package/esm2022/core/common/pipes/common-pipes.mjs +33 -33
  33. package/esm2022/core/common/pipes/date-ago.pipe.mjs +4 -4
  34. package/esm2022/core/common/services/addon.service.mjs +5 -5
  35. package/esm2022/core/common/services/color.service.mjs +3 -3
  36. package/esm2022/core/common/services/cookie.service.mjs +5 -5
  37. package/esm2022/core/common/services/data-convertor.service.mjs +3 -3
  38. package/esm2022/core/common/services/file.service.mjs +4 -4
  39. package/esm2022/core/common/services/jwt-helper.service.mjs +3 -3
  40. package/esm2022/core/common/services/session.service.mjs +4 -4
  41. package/esm2022/core/common/services/translate.service.mjs +4 -4
  42. package/esm2022/core/common/services/utilities.service.mjs +5 -5
  43. package/esm2022/core/common/services/validator.service.mjs +5 -5
  44. package/esm2022/core/common/services/window-scrolling.service.mjs +4 -4
  45. package/esm2022/core/customization/customization.service.mjs +4 -4
  46. package/esm2022/core/http/interceptors/error.interceptor.mjs +3 -3
  47. package/esm2022/core/http/interceptors/loader.interceptor.mjs +4 -4
  48. package/esm2022/core/http/interceptors/profiler.interceptor.mjs +3 -3
  49. package/esm2022/core/http/services/http.service.mjs +4 -4
  50. package/esm2022/core/http/services/loader.service.mjs +4 -4
  51. package/esm2022/core/layout/layout.service.mjs +5 -5
  52. package/esm2022/core/layout/rtl.directive.mjs +8 -8
  53. package/esm2022/core/portal/attach.directive.mjs +5 -5
  54. package/esm2022/core/portal/portal.service.mjs +4 -4
  55. package/esm2022/core/portal/target.directive.mjs +5 -5
  56. package/esm2022/core/scroll-to/scroll-to.service.mjs +3 -3
  57. package/esm2022/date/date.component.mjs +6 -6
  58. package/esm2022/date/date.model.mjs +10 -10
  59. package/esm2022/date/date.module.mjs +5 -5
  60. package/esm2022/dialog/default-dialog.component.mjs +6 -6
  61. package/esm2022/dialog/dialog.component.mjs +5 -5
  62. package/esm2022/dialog/dialog.module.mjs +5 -5
  63. package/esm2022/dialog/dialog.service.mjs +4 -4
  64. package/esm2022/draggable-items/draggable-item/draggable-item.component.mjs +5 -5
  65. package/esm2022/draggable-items/draggable-items.component.mjs +5 -5
  66. package/esm2022/draggable-items/draggable-items.module.mjs +5 -5
  67. package/esm2022/field-title/field-title.component.mjs +4 -4
  68. package/esm2022/field-title/field-title.module.mjs +5 -5
  69. package/esm2022/files-uploader/files-uploader.component.mjs +6 -6
  70. package/esm2022/files-uploader/files-uploader.module.mjs +5 -5
  71. package/esm2022/form/field-generator.component.mjs +4 -4
  72. package/esm2022/form/form.component.mjs +5 -5
  73. package/esm2022/form/form.module.mjs +5 -5
  74. package/esm2022/form/indicators.component.mjs +4 -4
  75. package/esm2022/form/internal-button.component.mjs +5 -5
  76. package/esm2022/form/internal-carusel.component.mjs +5 -5
  77. package/esm2022/form/internal-carusel.service.mjs +4 -4
  78. package/esm2022/form/internal-field-generator.component.mjs +4 -4
  79. package/esm2022/form/internal-form.component.mjs +5 -5
  80. package/esm2022/form/internal-list.component.mjs +5 -5
  81. package/esm2022/form/internal-menu.component.mjs +4 -4
  82. package/esm2022/form/internal-page.component.mjs +5 -5
  83. package/esm2022/form/internal-page.service.mjs +4 -4
  84. package/esm2022/group-buttons/group-buttons.component.mjs +5 -5
  85. package/esm2022/group-buttons/group-buttons.module.mjs +5 -5
  86. package/esm2022/icon/icon-registry.service.mjs +3 -3
  87. package/esm2022/icon/icon.component.mjs +5 -5
  88. package/esm2022/icon/icon.module.mjs +4 -4
  89. package/esm2022/icon/icon.service.mjs +5 -5
  90. package/esm2022/image/image.component.mjs +5 -5
  91. package/esm2022/image/image.module.mjs +5 -5
  92. package/esm2022/image/image.service.mjs +4 -4
  93. package/esm2022/images-filmstrip/images-filmstrip.component.mjs +6 -6
  94. package/esm2022/images-filmstrip/images-filmstrip.module.mjs +5 -5
  95. package/esm2022/link/link.component.mjs +5 -5
  96. package/esm2022/link/link.module.mjs +5 -5
  97. package/esm2022/link/link.pipes.mjs +3 -3
  98. package/esm2022/list/list-actions.component.mjs +5 -5
  99. package/esm2022/list/list-carousel.component.mjs +6 -6
  100. package/esm2022/list/list-chooser.component.mjs +5 -5
  101. package/esm2022/list/list-pager.component.mjs +7 -7
  102. package/esm2022/list/list-sorting.component.mjs +5 -5
  103. package/esm2022/list/list-total.component.mjs +5 -5
  104. package/esm2022/list/list-views.component.mjs +5 -5
  105. package/esm2022/list/list.component.mjs +5 -5
  106. package/esm2022/list/list.module.mjs +5 -5
  107. package/esm2022/list/list.pipes.mjs +6 -6
  108. package/esm2022/list/virtual-scroller.mjs +10 -10
  109. package/esm2022/menu/menu-item.component.mjs +5 -5
  110. package/esm2022/menu/menu.component.mjs +7 -7
  111. package/esm2022/menu/menu.module.mjs +5 -5
  112. package/esm2022/ngx-lib.module.mjs +4 -4
  113. package/esm2022/page-layout/page-layout.component.mjs +5 -5
  114. package/esm2022/page-layout/page-layout.module.mjs +4 -4
  115. package/esm2022/profile-data-views-list/profile-data-view/profile-data-view.component.mjs +5 -5
  116. package/esm2022/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.mjs +5 -5
  117. package/esm2022/profile-data-views-list/profile-data-views-list.component.mjs +5 -5
  118. package/esm2022/profile-data-views-list/profile-data-views-list.module.mjs +5 -5
  119. package/esm2022/quantity-selector/quantity-selector-validation.directive.mjs +5 -5
  120. package/esm2022/quantity-selector/quantity-selector.component.mjs +7 -7
  121. package/esm2022/quantity-selector/quantity-selector.module.mjs +5 -5
  122. package/esm2022/quantity-selector/quantity-selector.pipes.mjs +3 -3
  123. package/esm2022/query-builder/common/services/output-query.service.mjs +4 -4
  124. package/esm2022/query-builder/common/services/query-structure.service.mjs +4 -4
  125. package/esm2022/query-builder/common/services/type-convertor.service.mjs +4 -4
  126. package/esm2022/query-builder/query-builder-item/query-builder-item.component.mjs +5 -5
  127. package/esm2022/query-builder/query-builder-section/query-builder-section.component.mjs +5 -5
  128. package/esm2022/query-builder/query-builder.component.mjs +5 -5
  129. package/esm2022/query-builder/query-builder.module.mjs +5 -5
  130. package/esm2022/query-builder/query-builder.service.mjs +4 -4
  131. package/esm2022/remote-loader/addon-block-loader.component.mjs +5 -5
  132. package/esm2022/remote-loader/addon-block-loader.service.mjs +4 -4
  133. package/esm2022/remote-loader/remote-loader-element.component.mjs +6 -6
  134. package/esm2022/remote-loader/remote-loader.component.mjs +7 -9
  135. package/esm2022/remote-loader/remote-loader.module.mjs +4 -4
  136. package/esm2022/remote-loader/remote-loader.service.mjs +4 -4
  137. package/esm2022/rich-html-textarea/rich-html-textarea.component.mjs +5 -5
  138. package/esm2022/rich-html-textarea/rich-html-textarea.module.mjs +5 -5
  139. package/esm2022/search/search.component.mjs +8 -8
  140. package/esm2022/search/search.module.mjs +5 -5
  141. package/esm2022/select/select.component.mjs +5 -5
  142. package/esm2022/select/select.module.mjs +5 -5
  143. package/esm2022/select-panel/select-panel.component.mjs +5 -5
  144. package/esm2022/select-panel/select-panel.module.mjs +4 -4
  145. package/esm2022/separator/separator.component.mjs +5 -5
  146. package/esm2022/separator/separator.module.mjs +4 -4
  147. package/esm2022/side-bar/side-bar.component.mjs +7 -7
  148. package/esm2022/side-bar/side-bar.module.mjs +5 -5
  149. package/esm2022/signature/signature-dialog.component.mjs +6 -6
  150. package/esm2022/signature/signature.component.mjs +5 -5
  151. package/esm2022/signature/signature.module.mjs +5 -5
  152. package/esm2022/size-detector/size-detector.component.mjs +5 -5
  153. package/esm2022/size-detector/size-detector.module.mjs +4 -4
  154. package/esm2022/skeleton-loader/skeleton-loader.component.mjs +6 -6
  155. package/esm2022/skeleton-loader/skeleton-loader.module.mjs +4 -4
  156. package/esm2022/slider/slider.component.mjs +6 -6
  157. package/esm2022/slider/slider.module.mjs +4 -4
  158. package/esm2022/smart-filters/boolean-filter/boolean-filter.component.mjs +4 -4
  159. package/esm2022/smart-filters/common/filter-actions.component.mjs +4 -4
  160. package/esm2022/smart-filters/common/model/base-filter-component.mjs +5 -5
  161. package/esm2022/smart-filters/date-filter/date-filter.component.mjs +4 -4
  162. package/esm2022/smart-filters/multi-select-filter/multi-select-filter.component.mjs +4 -4
  163. package/esm2022/smart-filters/number-filter/number-filter.component.mjs +4 -4
  164. package/esm2022/smart-filters/smart-filters.component.mjs +5 -5
  165. package/esm2022/smart-filters/smart-filters.module.mjs +5 -5
  166. package/esm2022/smart-filters/text-filter/text-filter.component.mjs +4 -4
  167. package/esm2022/snack-bar/default-snack-bar.component.mjs +6 -6
  168. package/esm2022/snack-bar/snack-bar.component.mjs +5 -5
  169. package/esm2022/snack-bar/snack-bar.module.mjs +5 -5
  170. package/esm2022/snack-bar/snack-bar.service.mjs +4 -4
  171. package/esm2022/textarea/textarea.component.mjs +5 -5
  172. package/esm2022/textarea/textarea.module.mjs +5 -5
  173. package/esm2022/textbox/textbox-validation.directive.mjs +5 -5
  174. package/esm2022/textbox/textbox.component.mjs +5 -5
  175. package/esm2022/textbox/textbox.module.mjs +5 -5
  176. package/esm2022/textbox-icon/textbox-icon.component.mjs +4 -4
  177. package/esm2022/textbox-icon/textbox-icon.module.mjs +5 -5
  178. package/esm2022/top-bar/top-bar.component.mjs +5 -5
  179. package/esm2022/top-bar/top-bar.module.mjs +5 -5
  180. package/fesm2022/pepperi-addons-ngx-lib-address.mjs +10 -10
  181. package/fesm2022/pepperi-addons-ngx-lib-address.mjs.map +1 -1
  182. package/fesm2022/pepperi-addons-ngx-lib-attachment.mjs +9 -9
  183. package/fesm2022/pepperi-addons-ngx-lib-attachment.mjs.map +1 -1
  184. package/fesm2022/pepperi-addons-ngx-lib-bread-crumbs.mjs +11 -11
  185. package/fesm2022/pepperi-addons-ngx-lib-bread-crumbs.mjs.map +1 -1
  186. package/fesm2022/pepperi-addons-ngx-lib-button.mjs +10 -10
  187. package/fesm2022/pepperi-addons-ngx-lib-button.mjs.map +1 -1
  188. package/fesm2022/pepperi-addons-ngx-lib-carousel.mjs +15 -15
  189. package/fesm2022/pepperi-addons-ngx-lib-carousel.mjs.map +1 -1
  190. package/fesm2022/pepperi-addons-ngx-lib-checkbox.mjs +10 -10
  191. package/fesm2022/pepperi-addons-ngx-lib-checkbox.mjs.map +1 -1
  192. package/fesm2022/pepperi-addons-ngx-lib-chips.mjs +15 -15
  193. package/fesm2022/pepperi-addons-ngx-lib-chips.mjs.map +1 -1
  194. package/fesm2022/pepperi-addons-ngx-lib-color.mjs +16 -16
  195. package/fesm2022/pepperi-addons-ngx-lib-color.mjs.map +1 -1
  196. package/fesm2022/pepperi-addons-ngx-lib-date.mjs +21 -21
  197. package/fesm2022/pepperi-addons-ngx-lib-date.mjs.map +1 -1
  198. package/fesm2022/pepperi-addons-ngx-lib-dialog.mjs +19 -19
  199. package/fesm2022/pepperi-addons-ngx-lib-dialog.mjs.map +1 -1
  200. package/fesm2022/pepperi-addons-ngx-lib-draggable-items.mjs +14 -14
  201. package/fesm2022/pepperi-addons-ngx-lib-draggable-items.mjs.map +1 -1
  202. package/fesm2022/pepperi-addons-ngx-lib-field-title.mjs +9 -9
  203. package/fesm2022/pepperi-addons-ngx-lib-field-title.mjs.map +1 -1
  204. package/fesm2022/pepperi-addons-ngx-lib-files-uploader.mjs +11 -11
  205. package/fesm2022/pepperi-addons-ngx-lib-files-uploader.mjs.map +1 -1
  206. package/fesm2022/pepperi-addons-ngx-lib-form.mjs +50 -50
  207. package/fesm2022/pepperi-addons-ngx-lib-form.mjs.map +1 -1
  208. package/fesm2022/pepperi-addons-ngx-lib-group-buttons.mjs +10 -10
  209. package/fesm2022/pepperi-addons-ngx-lib-group-buttons.mjs.map +1 -1
  210. package/fesm2022/pepperi-addons-ngx-lib-icon.mjs +17 -17
  211. package/fesm2022/pepperi-addons-ngx-lib-icon.mjs.map +1 -1
  212. package/fesm2022/pepperi-addons-ngx-lib-image.mjs +14 -14
  213. package/fesm2022/pepperi-addons-ngx-lib-image.mjs.map +1 -1
  214. package/fesm2022/pepperi-addons-ngx-lib-images-filmstrip.mjs +11 -11
  215. package/fesm2022/pepperi-addons-ngx-lib-images-filmstrip.mjs.map +1 -1
  216. package/fesm2022/pepperi-addons-ngx-lib-link.mjs +13 -13
  217. package/fesm2022/pepperi-addons-ngx-lib-link.mjs.map +1 -1
  218. package/fesm2022/pepperi-addons-ngx-lib-list.mjs +47 -47
  219. package/fesm2022/pepperi-addons-ngx-lib-list.mjs.map +1 -1
  220. package/fesm2022/pepperi-addons-ngx-lib-menu.mjs +17 -17
  221. package/fesm2022/pepperi-addons-ngx-lib-menu.mjs.map +1 -1
  222. package/fesm2022/pepperi-addons-ngx-lib-page-layout.mjs +9 -9
  223. package/fesm2022/pepperi-addons-ngx-lib-page-layout.mjs.map +1 -1
  224. package/fesm2022/pepperi-addons-ngx-lib-profile-data-views-list.mjs +18 -18
  225. package/fesm2022/pepperi-addons-ngx-lib-profile-data-views-list.mjs.map +1 -1
  226. package/fesm2022/pepperi-addons-ngx-lib-quantity-selector.mjs +20 -20
  227. package/fesm2022/pepperi-addons-ngx-lib-quantity-selector.mjs.map +1 -1
  228. package/fesm2022/pepperi-addons-ngx-lib-query-builder.mjs +34 -34
  229. package/fesm2022/pepperi-addons-ngx-lib-query-builder.mjs.map +1 -1
  230. package/fesm2022/pepperi-addons-ngx-lib-remote-loader.mjs +28 -30
  231. package/fesm2022/pepperi-addons-ngx-lib-remote-loader.mjs.map +1 -1
  232. package/fesm2022/pepperi-addons-ngx-lib-rich-html-textarea.mjs +10 -10
  233. package/fesm2022/pepperi-addons-ngx-lib-rich-html-textarea.mjs.map +1 -1
  234. package/fesm2022/pepperi-addons-ngx-lib-search.mjs +14 -14
  235. package/fesm2022/pepperi-addons-ngx-lib-search.mjs.map +1 -1
  236. package/fesm2022/pepperi-addons-ngx-lib-select-panel.mjs +9 -9
  237. package/fesm2022/pepperi-addons-ngx-lib-select-panel.mjs.map +1 -1
  238. package/fesm2022/pepperi-addons-ngx-lib-select.mjs +10 -10
  239. package/fesm2022/pepperi-addons-ngx-lib-select.mjs.map +1 -1
  240. package/fesm2022/pepperi-addons-ngx-lib-separator.mjs +9 -9
  241. package/fesm2022/pepperi-addons-ngx-lib-separator.mjs.map +1 -1
  242. package/fesm2022/pepperi-addons-ngx-lib-side-bar.mjs +12 -12
  243. package/fesm2022/pepperi-addons-ngx-lib-side-bar.mjs.map +1 -1
  244. package/fesm2022/pepperi-addons-ngx-lib-signature.mjs +15 -15
  245. package/fesm2022/pepperi-addons-ngx-lib-signature.mjs.map +1 -1
  246. package/fesm2022/pepperi-addons-ngx-lib-size-detector.mjs +9 -9
  247. package/fesm2022/pepperi-addons-ngx-lib-size-detector.mjs.map +1 -1
  248. package/fesm2022/pepperi-addons-ngx-lib-skeleton-loader.mjs +10 -10
  249. package/fesm2022/pepperi-addons-ngx-lib-skeleton-loader.mjs.map +1 -1
  250. package/fesm2022/pepperi-addons-ngx-lib-slider.mjs +10 -10
  251. package/fesm2022/pepperi-addons-ngx-lib-slider.mjs.map +1 -1
  252. package/fesm2022/pepperi-addons-ngx-lib-smart-filters.mjs +32 -32
  253. package/fesm2022/pepperi-addons-ngx-lib-smart-filters.mjs.map +1 -1
  254. package/fesm2022/pepperi-addons-ngx-lib-snack-bar.mjs +19 -19
  255. package/fesm2022/pepperi-addons-ngx-lib-snack-bar.mjs.map +1 -1
  256. package/fesm2022/pepperi-addons-ngx-lib-textarea.mjs +10 -10
  257. package/fesm2022/pepperi-addons-ngx-lib-textarea.mjs.map +1 -1
  258. package/fesm2022/pepperi-addons-ngx-lib-textbox-icon.mjs +9 -9
  259. package/fesm2022/pepperi-addons-ngx-lib-textbox-icon.mjs.map +1 -1
  260. package/fesm2022/pepperi-addons-ngx-lib-textbox.mjs +14 -14
  261. package/fesm2022/pepperi-addons-ngx-lib-textbox.mjs.map +1 -1
  262. package/fesm2022/pepperi-addons-ngx-lib-top-bar.mjs +10 -10
  263. package/fesm2022/pepperi-addons-ngx-lib-top-bar.mjs.map +1 -1
  264. package/fesm2022/pepperi-addons-ngx-lib.mjs +178 -178
  265. package/fesm2022/pepperi-addons-ngx-lib.mjs.map +1 -1
  266. package/package.json +77 -77
  267. package/slider/slider.component.theme.scss +7 -0
  268. package/src/core/style/base/base.scss +6 -0
  269. package/src/core/style/base/borderRadius.component.ts +2 -4
  270. package/src/core/style/base/breakpoints.component.ts +2 -4
  271. package/src/core/style/base/colors.component.ts +2 -4
  272. package/src/core/style/base/shadows.component.ts +2 -4
  273. package/src/core/style/base/spacing.component.ts +2 -4
  274. package/src/core/style/base/states.component.ts +2 -4
  275. package/src/core/style/base/typography.component.ts +2 -4
  276. package/src/core/style/base/zIndex.component.ts +2 -4
@@ -1 +1 @@
1
- {"version":3,"file":"pepperi-addons-ngx-lib-attachment.mjs","sources":["../../../projects/ngx-lib/attachment/attachment.component.ts","../../../projects/ngx-lib/attachment/attachment.component.html","../../../projects/ngx-lib/attachment/attachment.module.ts","../../../projects/ngx-lib/attachment/public-api.ts","../../../projects/ngx-lib/attachment/pepperi-addons-ngx-lib-attachment.ts"],"sourcesContent":["import {\n Component,\n OnInit,\n OnChanges,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n ElementRef,\n Renderer2,\n OnDestroy,\n} from '@angular/core';\nimport { FormGroup } from '@angular/forms';\nimport {\n PepFileService,\n PepCustomizationService,\n PepLayoutType,\n PepHorizontalAlignment,\n DEFAULT_HORIZONTAL_ALIGNMENT,\n IPepFieldClickEvent,\n PepAttachmentField,\n} from '@pepperi-addons/ngx-lib';\n\n/**\n * This is the attachment component that is used to upload \n * files and media\n *\n */\n@Component({\n selector: 'pep-attachment',\n templateUrl: './attachment.component.html',\n styleUrls: ['./attachment.component.scss', './attachment.component.theme.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PepAttachmentComponent implements OnInit, OnChanges, OnDestroy {\n /**\n * The attachment key.\n *\n * @memberof PepAttachmentComponent\n */\n @Input() key = '';\n\n private _src = '';\n /**\n * The src of the attachment.\n *\n * @memberof PepAttachmentComponent\n */\n @Input()\n set src(value: string) {\n if (!value) {\n value = '';\n }\n\n this._src = value;\n if (this._src.length > 0) {\n // Empty dataURI.\n this.dataURI = null;\n }\n }\n get src(): string {\n return this._src;\n }\n\n /**\n * The title of the attachment.\n *\n * @memberof PepAttachmentComponent\n */\n @Input() label = '';\n\n /**\n * If the attachment is mandatory\n *\n * @memberof PepAttachmentComponent\n */\n @Input() mandatory = false;\n\n /**\n * If the attachment is disabled\n *\n * @memberof PepAttachmentComponent\n */\n @Input() disabled = false;\n\n /**\n * If the attachment is readonly. It could be with or without `src`\n *\n * @memberof PepAttachmentComponent\n */\n @Input() readonly = false;\n\n /**\n * The horizontal alignment of the attachment\n *\n * @type {PepHorizontalAlignment}\n * @memberof PepAttachmentComponent\n */\n @Input() xAlignment: PepHorizontalAlignment = DEFAULT_HORIZONTAL_ALIGNMENT;\n\n private _rowSpan = 1;\n @Input()\n set rowSpan(value) {\n this._rowSpan = value;\n this.setFieldHeight();\n }\n get rowSpan(): number {\n return this._rowSpan;\n }\n\n private _visible = true;\n @Input()\n set visible(visible: boolean) {\n this._visible = visible;\n if (visible) {\n this.renderer.removeClass(\n this.element.nativeElement,\n 'hidden-element'\n );\n } else {\n this.renderer.addClass(\n this.element.nativeElement,\n 'hidden-element'\n );\n }\n }\n get visible(): boolean {\n return this._visible;\n }\n\n controlType = 'attachment';\n\n @Input() form: FormGroup = null;\n @Input() showTitle = true;\n @Input() renderTitle = true;\n\n private _layoutType: PepLayoutType = 'form';\n @Input()\n set layoutType(value: PepLayoutType) {\n this._layoutType = value;\n this.setFieldHeight();\n }\n get layoutType(): PepLayoutType {\n return this._layoutType;\n }\n\n @Input() isActive = false;\n\n // To know if handle actions or just raise them as output\n @Input() handleActions = true;\n @Input() hint = '';\n \n @Output()\n chooseFile: EventEmitter<void> = new EventEmitter<void>(); // This event will fired only when handleActions Input is false\n\n @Output()\n fileChange: EventEmitter<any> = new EventEmitter<any>();\n\n @Output()\n elementClick: EventEmitter<IPepFieldClickEvent> = new EventEmitter<IPepFieldClickEvent>();\n\n @Output()\n validationChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n fieldHeight = '';\n standAlone = false;\n dataURI = null;\n\n acceptAttachmentType =\n 'application/pdf,application/json,text/csv,text/csv-schema,application/msword,application/vnd.ms-excel,text/plain,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.wordprocessingml.document,image/bmp,image/jpg, image/jpeg, image/png, image/tif, image/tiff, txt, json, html';\n\n constructor(\n private customizationService: PepCustomizationService,\n private renderer: Renderer2,\n public element: ElementRef,\n private fileService: PepFileService\n ) { }\n\n private setFieldHeight(): void {\n this.fieldHeight = this.customizationService.calculateFieldHeight(\n this.layoutType,\n this.rowSpan,\n this.standAlone\n );\n }\n\n private setDefaultForm(): void {\n const pepField = new PepAttachmentField({\n key: this.key,\n value: this.src,\n mandatory: this.mandatory,\n readonly: this.readonly,\n disabled: this.disabled,\n });\n this.form = this.customizationService.getDefaultFromGroup(pepField);\n }\n\n ngOnDestroy(): void {\n //\n }\n\n ngOnInit(): void {\n if (this.form === null) {\n this.standAlone = true;\n this.setFieldHeight();\n this.setDefaultForm();\n\n this.renderer.addClass(\n this.element.nativeElement,\n PepCustomizationService.STAND_ALONE_FIELD_CLASS_NAME\n );\n\n if (!this.renderTitle) {\n this.renderer.addClass(\n this.element.nativeElement,\n PepCustomizationService.STAND_ALONE_FIELD_NO_SPACING_CLASS_NAME\n );\n }\n }\n }\n\n ngOnChanges(changes: any): void {\n if (this.standAlone) {\n this.setDefaultForm();\n }\n // Moved to src input\n // if (changes.src && changes.src.currentValue.length > 0) {\n // // Empty dataURI if there is change in the src.\n // this.dataURI = null;\n // }\n }\n\n onFileChanged(fileData: any): void {\n // const tmp = value.length > 0 ? JSON.parse(value) : null;\n // set this.dataURI after this.src cause it initialize in the src setter.\n this.src = fileData ? fileData.fileStr : '';\n this.dataURI = fileData;\n\n this.customizationService.updateFormFieldValue(\n this.form,\n this.key,\n this.dataURI ? this.dataURI.fileExt : ''\n );\n\n // Raise this only for stand alone fields, If false then the usage for this field is inside a form. \n // Then the form will take care of raising the (onFormValidationChanged) event\n if (this.standAlone) {\n const isValid = (this.disabled || this.readonly) ? true : this.form.valid; \n this.validationChange.emit(isValid);\n }\n\n // this.valueChange.emit({\n // key: this.key,\n // value,\n // });\n\n this.fileChange.emit(fileData);\n // this.fileChange.emit(value.length > 0 ? JSON.parse(value) : value);\n }\n\n onFileClicked(event: IPepFieldClickEvent): void {\n if (this.handleActions) {\n if (this.dataURI != null) {\n const fileStrArr = this.dataURI.fileStr.split(';');\n if (fileStrArr.length === 2) {\n const win = window.open('', '_blank');\n const blob = this.fileService.convertFromb64toBlob(\n this.dataURI.fileStr\n );\n const url = URL.createObjectURL(blob);\n win.location.href = url;\n }\n } else {\n if (this.fileService.isValidUrl(this.src)) {\n const win = window.open('', '_blank');\n win.location.href = this.src;\n }\n }\n }\n\n this.elementClick.emit(event);\n }\n\n onChooseFile(event) {\n if (!this.handleActions) {\n this.chooseFile.emit();\n }\n }\n}\n\n","<ng-template #pepTemplate>\n <pep-files-uploader [key]=\"key\" [src]=\"src\" [label]=\"label\" [mandatory]=\"mandatory\" [disabled]=\"disabled\" [hint]=\"hint\"\n [xAlignment]=\"xAlignment\" [rowSpan]=\"rowSpan\" [fieldHeight]=\"fieldHeight\" [controlType]=\"controlType\"\n [form]=\"form\" [layoutType]=\"layoutType\" [acceptedExtensions]=\"acceptAttachmentType\" [handleActions]=\"handleActions\" (fileChange)=\"onFileChanged($event)\"\n (elementClick)=\"onFileClicked($event)\" (chooseFile)=\"onChooseFile($event)\">\n </pep-files-uploader>\n</ng-template>\n\n<ng-template #pepReadonlyTemplate>\n <ng-container *ngIf=\"src?.length > 0; then notEmptyBlock; else emptyBlock\"></ng-container>\n <ng-template #notEmptyBlock>\n <div class=\"pep-file-container\">\n <a [id]=\"key\" class=\"color-link body-sm pep-card-input \" *ngIf=\"src != null\" title=\"{{ src }}\"\n target=\"_blank\" href=\"{{ src }}\">{{ src }}</a>\n </div>\n </ng-template>\n <ng-template #emptyBlock>\n <span>&nbsp;</span>\n </ng-template>\n</ng-template>\n\n<ng-container *ngIf=\"layoutType === 'form'\">\n <div class=\"pep-file-container\" [ngClass]=\"{ 'one-row': rowSpan == 1, 'stand-alone': standAlone }\">\n <pep-field-title *ngIf=\"renderTitle\" [label]=\"label\" [mandatory]=\"mandatory\" [disabled]=\"disabled\"\n [xAlignment]=\"xAlignment\" [showTitle]=\"showTitle\">\n </pep-field-title>\n <ng-container *ngTemplateOutlet=\"pepTemplate\"></ng-container>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"layoutType === 'card'\">\n <ng-container *ngIf=\"false && isActive && !disabled; then selectedBlock; else notSelectedBlock\"></ng-container>\n <ng-template #selectedBlock>\n <div class=\"pep-file-container\" [ngClass]=\"{ 'one-row': rowSpan == 1, 'stand-alone': standAlone}\">\n <ng-container *ngTemplateOutlet=\"pepTemplate\"></ng-container>\n </div>\n </ng-template>\n <ng-template #notSelectedBlock>\n <ng-container *ngTemplateOutlet=\"pepReadonlyTemplate\"></ng-container>\n </ng-template>\n</ng-container>\n\n\n<ng-container *ngIf=\"layoutType === 'table'\">\n <ng-container *ngIf=\"false && isActive && !disabled; then selectedBlock; else notSelectedBlock\"></ng-container>\n <ng-template #selectedBlock>\n <div class=\"pep-file-container one-row\">\n <ng-container *ngTemplateOutlet=\"pepTemplate\"></ng-container>\n </div>\n </ng-template>\n <ng-template #notSelectedBlock>\n <ng-container *ngTemplateOutlet=\"pepReadonlyTemplate\"></ng-container>\n </ng-template>\n</ng-container>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { MatCommonModule } from '@angular/material/core';\nimport { MatFormFieldModule } from '@angular/material/form-field';\n\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\nimport { PepFieldTitleModule } from '@pepperi-addons/ngx-lib/field-title';\nimport { PepFilesUploaderModule } from '@pepperi-addons/ngx-lib/files-uploader';\n\nimport { PepAttachmentComponent } from './attachment.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n // Material modules\n MatCommonModule,\n MatFormFieldModule,\n // ngx-lib modules\n PepNgxLibModule,\n PepFieldTitleModule,\n PepFilesUploaderModule,\n ],\n exports: [PepAttachmentComponent],\n declarations: [PepAttachmentComponent],\n})\nexport class PepAttachmentModule {}\n","/*\n * Public API Surface of ngx-lib/attachment\n */\nexport * from './attachment.module';\nexport * from './attachment.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAuBA;;;;AAIG;MAOU,sBAAsB,CAAA;AA0InB,IAAA,oBAAA,CAAA;AACA,IAAA,QAAA,CAAA;AACD,IAAA,OAAA,CAAA;AACC,IAAA,WAAA,CAAA;AA5IZ;;;;AAIG;IACM,GAAG,GAAG,EAAE,CAAC;IAEV,IAAI,GAAG,EAAE,CAAC;AAClB;;;;AAIG;IACH,IACI,GAAG,CAAC,KAAa,EAAA;QACjB,IAAI,CAAC,KAAK,EAAE;YACR,KAAK,GAAG,EAAE,CAAC;AACd,SAAA;AAED,QAAA,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;AAClB,QAAA,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;;AAEtB,YAAA,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;AACvB,SAAA;KACJ;AACD,IAAA,IAAI,GAAG,GAAA;QACH,OAAO,IAAI,CAAC,IAAI,CAAC;KACpB;AAED;;;;AAIG;IACM,KAAK,GAAG,EAAE,CAAC;AAEpB;;;;AAIG;IACM,SAAS,GAAG,KAAK,CAAC;AAE3B;;;;AAIG;IACM,QAAQ,GAAG,KAAK,CAAC;AAE1B;;;;AAIG;IACM,QAAQ,GAAG,KAAK,CAAC;AAE1B;;;;;AAKG;IACM,UAAU,GAA2B,4BAA4B,CAAC;IAEnE,QAAQ,GAAG,CAAC,CAAC;IACrB,IACI,OAAO,CAAC,KAAK,EAAA;AACb,QAAA,IAAI,CAAC,QAAQ,GAAG,KAAK,CA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AAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;yGAAnB,mBAAmB,EAAA,YAAA,EAAA,CAFb,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAXjC,YAAY;YACZ,mBAAmB;;YAEnB,eAAe;YACf,kBAAkB;;YAElB,eAAe;YACf,mBAAmB;AACnB,YAAA,sBAAsB,aAEhB,sBAAsB,CAAA,EAAA,CAAA,CAAA;AAGvB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAbxB,YAAY;YACZ,mBAAmB;;YAEnB,eAAe;YACf,kBAAkB;;YAElB,eAAe;YACf,mBAAmB;YACnB,sBAAsB,CAAA,EAAA,CAAA,CAAA;;4FAKjB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAf/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,mBAAmB;;wBAEnB,eAAe;wBACf,kBAAkB;;wBAElB,eAAe;wBACf,mBAAmB;wBACnB,sBAAsB;AACzB,qBAAA;oBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACzC,iBAAA,CAAA;;;AC3BD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"pepperi-addons-ngx-lib-attachment.mjs","sources":["../../../projects/ngx-lib/attachment/attachment.component.ts","../../../projects/ngx-lib/attachment/attachment.component.html","../../../projects/ngx-lib/attachment/attachment.module.ts","../../../projects/ngx-lib/attachment/public-api.ts","../../../projects/ngx-lib/attachment/pepperi-addons-ngx-lib-attachment.ts"],"sourcesContent":["import {\n Component,\n OnInit,\n OnChanges,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n ElementRef,\n Renderer2,\n OnDestroy,\n} from '@angular/core';\nimport { FormGroup } from '@angular/forms';\nimport {\n PepFileService,\n PepCustomizationService,\n PepLayoutType,\n PepHorizontalAlignment,\n DEFAULT_HORIZONTAL_ALIGNMENT,\n IPepFieldClickEvent,\n PepAttachmentField,\n} from '@pepperi-addons/ngx-lib';\n\n/**\n * This is the attachment component that is used to upload \n * files and media\n *\n */\n@Component({selector: 'pep-attachment',\n templateUrl: './attachment.component.html',\n styleUrls: ['./attachment.component.scss', './attachment.component.theme.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush})\nexport class PepAttachmentComponent implements OnInit, OnChanges, OnDestroy {\n /**\n * The attachment key.\n *\n * @memberof PepAttachmentComponent\n */\n @Input() key = '';\n\n private _src = '';\n /**\n * The src of the attachment.\n *\n * @memberof PepAttachmentComponent\n */\n @Input()\n set src(value: string) {\n if (!value) {\n value = '';\n }\n\n this._src = value;\n if (this._src.length > 0) {\n // Empty dataURI.\n this.dataURI = null;\n }\n }\n get src(): string {\n return this._src;\n }\n\n /**\n * The title of the attachment.\n *\n * @memberof PepAttachmentComponent\n */\n @Input() label = '';\n\n /**\n * If the attachment is mandatory\n *\n * @memberof PepAttachmentComponent\n */\n @Input() mandatory = false;\n\n /**\n * If the attachment is disabled\n *\n * @memberof PepAttachmentComponent\n */\n @Input() disabled = false;\n\n /**\n * If the attachment is readonly. It could be with or without `src`\n *\n * @memberof PepAttachmentComponent\n */\n @Input() readonly = false;\n\n /**\n * The horizontal alignment of the attachment\n *\n * @type {PepHorizontalAlignment}\n * @memberof PepAttachmentComponent\n */\n @Input() xAlignment: PepHorizontalAlignment = DEFAULT_HORIZONTAL_ALIGNMENT;\n\n private _rowSpan = 1;\n @Input()\n set rowSpan(value) {\n this._rowSpan = value;\n this.setFieldHeight();\n }\n get rowSpan(): number {\n return this._rowSpan;\n }\n\n private _visible = true;\n @Input()\n set visible(visible: boolean) {\n this._visible = visible;\n if (visible) {\n this.renderer.removeClass(\n this.element.nativeElement,\n 'hidden-element'\n );\n } else {\n this.renderer.addClass(\n this.element.nativeElement,\n 'hidden-element'\n );\n }\n }\n get visible(): boolean {\n return this._visible;\n }\n\n controlType = 'attachment';\n\n @Input() form: FormGroup = null;\n @Input() showTitle = true;\n @Input() renderTitle = true;\n\n private _layoutType: PepLayoutType = 'form';\n @Input()\n set layoutType(value: PepLayoutType) {\n this._layoutType = value;\n this.setFieldHeight();\n }\n get layoutType(): PepLayoutType {\n return this._layoutType;\n }\n\n @Input() isActive = false;\n\n // To know if handle actions or just raise them as output\n @Input() handleActions = true;\n @Input() hint = '';\n \n @Output()\n chooseFile: EventEmitter<void> = new EventEmitter<void>(); // This event will fired only when handleActions Input is false\n\n @Output()\n fileChange: EventEmitter<any> = new EventEmitter<any>();\n\n @Output()\n elementClick: EventEmitter<IPepFieldClickEvent> = new EventEmitter<IPepFieldClickEvent>();\n\n @Output()\n validationChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n fieldHeight = '';\n standAlone = false;\n dataURI = null;\n\n acceptAttachmentType =\n 'application/pdf,application/json,text/csv,text/csv-schema,application/msword,application/vnd.ms-excel,text/plain,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.wordprocessingml.document,image/bmp,image/jpg, image/jpeg, image/png, image/tif, image/tiff, txt, json, html';\n\n constructor(\n private customizationService: PepCustomizationService,\n private renderer: Renderer2,\n public element: ElementRef,\n private fileService: PepFileService\n ) { }\n\n private setFieldHeight(): void {\n this.fieldHeight = this.customizationService.calculateFieldHeight(\n this.layoutType,\n this.rowSpan,\n this.standAlone\n );\n }\n\n private setDefaultForm(): void {\n const pepField = new PepAttachmentField({\n key: this.key,\n value: this.src,\n mandatory: this.mandatory,\n readonly: this.readonly,\n disabled: this.disabled,\n });\n this.form = this.customizationService.getDefaultFromGroup(pepField);\n }\n\n ngOnDestroy(): void {\n //\n }\n\n ngOnInit(): void {\n if (this.form === null) {\n this.standAlone = true;\n this.setFieldHeight();\n this.setDefaultForm();\n\n this.renderer.addClass(\n this.element.nativeElement,\n PepCustomizationService.STAND_ALONE_FIELD_CLASS_NAME\n );\n\n if (!this.renderTitle) {\n this.renderer.addClass(\n this.element.nativeElement,\n PepCustomizationService.STAND_ALONE_FIELD_NO_SPACING_CLASS_NAME\n );\n }\n }\n }\n\n ngOnChanges(changes: any): void {\n if (this.standAlone) {\n this.setDefaultForm();\n }\n // Moved to src input\n // if (changes.src && changes.src.currentValue.length > 0) {\n // // Empty dataURI if there is change in the src.\n // this.dataURI = null;\n // }\n }\n\n onFileChanged(fileData: any): void {\n // const tmp = value.length > 0 ? JSON.parse(value) : null;\n // set this.dataURI after this.src cause it initialize in the src setter.\n this.src = fileData ? fileData.fileStr : '';\n this.dataURI = fileData;\n\n this.customizationService.updateFormFieldValue(\n this.form,\n this.key,\n this.dataURI ? this.dataURI.fileExt : ''\n );\n\n // Raise this only for stand alone fields, If false then the usage for this field is inside a form. \n // Then the form will take care of raising the (onFormValidationChanged) event\n if (this.standAlone) {\n const isValid = (this.disabled || this.readonly) ? true : this.form.valid; \n this.validationChange.emit(isValid);\n }\n\n // this.valueChange.emit({\n // key: this.key,\n // value,\n // });\n\n this.fileChange.emit(fileData);\n // this.fileChange.emit(value.length > 0 ? JSON.parse(value) : value);\n }\n\n onFileClicked(event: IPepFieldClickEvent): void {\n if (this.handleActions) {\n if (this.dataURI != null) {\n const fileStrArr = this.dataURI.fileStr.split(';');\n if (fileStrArr.length === 2) {\n const win = window.open('', '_blank');\n const blob = this.fileService.convertFromb64toBlob(\n this.dataURI.fileStr\n );\n const url = URL.createObjectURL(blob);\n win.location.href = url;\n }\n } else {\n if (this.fileService.isValidUrl(this.src)) {\n const win = window.open('', '_blank');\n win.location.href = this.src;\n }\n }\n }\n\n this.elementClick.emit(event);\n }\n\n onChooseFile(event) {\n if (!this.handleActions) {\n this.chooseFile.emit();\n }\n }\n}\n\n","<ng-template #pepTemplate>\n <pep-files-uploader [key]=\"key\" [src]=\"src\" [label]=\"label\" [mandatory]=\"mandatory\" [disabled]=\"disabled\" [hint]=\"hint\"\n [xAlignment]=\"xAlignment\" [rowSpan]=\"rowSpan\" [fieldHeight]=\"fieldHeight\" [controlType]=\"controlType\"\n [form]=\"form\" [layoutType]=\"layoutType\" [acceptedExtensions]=\"acceptAttachmentType\" [handleActions]=\"handleActions\" (fileChange)=\"onFileChanged($event)\"\n (elementClick)=\"onFileClicked($event)\" (chooseFile)=\"onChooseFile($event)\">\n </pep-files-uploader>\n</ng-template>\n\n<ng-template #pepReadonlyTemplate>\n <ng-container *ngIf=\"src?.length > 0; then notEmptyBlock; else emptyBlock\"></ng-container>\n <ng-template #notEmptyBlock>\n <div class=\"pep-file-container\">\n <a [id]=\"key\" class=\"color-link body-sm pep-card-input \" *ngIf=\"src != null\" title=\"{{ src }}\"\n target=\"_blank\" href=\"{{ src }}\">{{ src }}</a>\n </div>\n </ng-template>\n <ng-template #emptyBlock>\n <span>&nbsp;</span>\n </ng-template>\n</ng-template>\n\n<ng-container *ngIf=\"layoutType === 'form'\">\n <div class=\"pep-file-container\" [ngClass]=\"{ 'one-row': rowSpan == 1, 'stand-alone': standAlone }\">\n <pep-field-title *ngIf=\"renderTitle\" [label]=\"label\" [mandatory]=\"mandatory\" [disabled]=\"disabled\"\n [xAlignment]=\"xAlignment\" [showTitle]=\"showTitle\">\n </pep-field-title>\n <ng-container *ngTemplateOutlet=\"pepTemplate\"></ng-container>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"layoutType === 'card'\">\n <ng-container *ngIf=\"false && isActive && !disabled; then selectedBlock; else notSelectedBlock\"></ng-container>\n <ng-template #selectedBlock>\n <div class=\"pep-file-container\" [ngClass]=\"{ 'one-row': rowSpan == 1, 'stand-alone': standAlone}\">\n <ng-container *ngTemplateOutlet=\"pepTemplate\"></ng-container>\n </div>\n </ng-template>\n <ng-template #notSelectedBlock>\n <ng-container *ngTemplateOutlet=\"pepReadonlyTemplate\"></ng-container>\n </ng-template>\n</ng-container>\n\n\n<ng-container *ngIf=\"layoutType === 'table'\">\n <ng-container *ngIf=\"false && isActive && !disabled; then selectedBlock; else notSelectedBlock\"></ng-container>\n <ng-template #selectedBlock>\n <div class=\"pep-file-container one-row\">\n <ng-container *ngTemplateOutlet=\"pepTemplate\"></ng-container>\n </div>\n </ng-template>\n <ng-template #notSelectedBlock>\n <ng-container *ngTemplateOutlet=\"pepReadonlyTemplate\"></ng-container>\n </ng-template>\n</ng-container>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { MatCommonModule } from '@angular/material/core';\nimport { MatFormFieldModule } from '@angular/material/form-field';\n\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\nimport { PepFieldTitleModule } from '@pepperi-addons/ngx-lib/field-title';\nimport { PepFilesUploaderModule } from '@pepperi-addons/ngx-lib/files-uploader';\n\nimport { PepAttachmentComponent } from './attachment.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n // Material modules\n MatCommonModule,\n MatFormFieldModule,\n // ngx-lib modules\n PepNgxLibModule,\n PepFieldTitleModule,\n PepFilesUploaderModule,\n ],\n exports: [PepAttachmentComponent],\n declarations: [PepAttachmentComponent],\n})\nexport class PepAttachmentModule {}\n","/*\n * Public API Surface of ngx-lib/attachment\n */\nexport * from './attachment.module';\nexport * from './attachment.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAuBA;;;;AAIG;MAKU,sBAAsB,CAAA;AA0InB,IAAA,oBAAA;AACA,IAAA,QAAA;AACD,IAAA,OAAA;AACC,IAAA,WAAA;AA5IZ;;;;AAIG;IACM,GAAG,GAAG,EAAE;IAET,IAAI,GAAG,EAAE;AACjB;;;;AAIG;IACH,IACI,GAAG,CAAC,KAAa,EAAA;QACjB,IAAI,CAAC,KAAK,EAAE;YACR,KAAK,GAAG,EAAE;AACb,QAAA;AAED,QAAA,IAAI,CAAC,IAAI,GAAG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;wGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;yGAAnB,mBAAmB,EAAA,YAAA,EAAA,CAFb,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAXjC,YAAY;YACZ,mBAAmB;;YAEnB,eAAe;YACf,kBAAkB;;YAElB,eAAe;YACf,mBAAmB;AACnB,YAAA,sBAAsB,aAEhB,sBAAsB,CAAA,EAAA,CAAA;AAGvB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAbxB,YAAY;YACZ,mBAAmB;;YAEnB,eAAe;YACf,kBAAkB;;YAElB,eAAe;YACf,mBAAmB;YACnB,sBAAsB,CAAA,EAAA,CAAA;;4FAKjB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAf/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,mBAAmB;;wBAEnB,eAAe;wBACf,kBAAkB;;wBAElB,eAAe;wBACf,mBAAmB;wBACnB,sBAAsB;AACzB,qBAAA;oBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACzC,iBAAA;;;AC3BD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, Component, Injectable, Input, Output, NgModule } from '@angular/core';
2
+ import { EventEmitter, Output, Input, Component, Injectable, NgModule } from '@angular/core';
3
3
  import * as i2 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import * as i3 from '@angular/material/icon';
@@ -70,16 +70,16 @@ class PepBreadCrumbsComponent {
70
70
  onBreadCrumbItemClick(item) {
71
71
  this.itemClick.emit({ source: item });
72
72
  }
73
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PepBreadCrumbsComponent, deps: [{ token: i1.PepLayoutService }], target: i0.ɵɵFactoryTarget.Component });
74
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PepBreadCrumbsComponent, selector: "pep-bread-crumbs", inputs: { items: "items", displayType: "displayType", addSpacing: "addSpacing" }, outputs: { itemClick: "itemClick" }, ngImport: i0, template: "<ng-container *ngIf=\"displayType === 'label'; then labelTemplate; else itemsTemplate\">\n</ng-container>\n<ng-template #labelTemplate>\n <div *ngIf=\"items?.length > 0\" class=\"bread-crumbs-label color-dimmed ellipsis\" [ngClass]=\"{ 'pep-spacing-element': addSpacing }\"\n [title]=\"getLabelTitle()\">\n <div class=\"body-xs ellipsis\">\n <ng-container *ngFor=\"let item of items; let isFirst = first; let isLast = last\">\n <span *ngIf=\"!isFirst && !isLast\">&nbsp;{{ charSeparator }}&nbsp;</span>\n <span *ngIf=\"!isLast\">{{ item.text }}</span>\n </ng-container>\n </div>\n <div class=\" title-md ellipsis current color-main\" title=\"{{ items[items.length - 1]?.text }}\">\n <span>{{ items[items.length - 1]?.text }}</span>\n </div>\n </div>\n</ng-template>\n\n<ng-template #itemsTemplate>\n <ul *ngIf=\"items?.length > 0\" class=\"bread-crumbs-items body-sm ellipsis\">\n <ng-container *ngIf=\"shrinkItems; then shrinkTemplate; else regularTemplate\">\n </ng-container>\n\n <ng-template #shrinkTemplate>\n <li>\n <a class=\"color-link\" [matMenuTriggerFor]=\"menu\" href=\"javascript:void(0)\">...</a>\n <mat-menu #menu=\"matMenu\">\n <ng-container *ngFor=\"let menuItem of items; let isLast = last\">\n <button mat-menu-item *ngIf=\"!isLast\" (click)=\"onBreadCrumbItemClick(menuItem)\"\n [title]=\"menuItem.title || menuItem.text\" [disabled]=\"menuItem.disabled\"\n [ngClass]=\"{ disabled: menuItem.disabled }\">\n <span>\n {{ menuItem.text }}\n </span>\n </button>\n </ng-container>\n </mat-menu>\n </li>\n <li>\n <mat-icon class=\"separator pep-spacing-element\">\n <pep-icon [name]=\"iconSeparator\">\n </pep-icon>\n </mat-icon>\n </li>\n <li>\n <span [title]=\"items[items.length - 1]?.title || items[items.length - 1]?.text\">\n {{ items[items.length - 1]?.text }}\n </span>\n </li>\n </ng-template>\n <ng-template #regularTemplate>\n <ng-container *ngFor=\"let item of items; let isFirst = first; let isLast = last\">\n <li>\n <a *ngIf=\"!item.disabled\" [title]=\"item.title || item.text\" href=\"javascript:void(0)\"\n class=\" color-link\" (click)=\"onBreadCrumbItemClick(item)\">{{ item.text }}</a>\n <span *ngIf=\"item.disabled\" [title]=\"item.title || item.text\">{{ item.text }}</span>\n </li>\n <li *ngIf=\"!isLast\">\n <mat-icon class=\"separator pep-spacing-element\">\n <pep-icon [name]=\"iconSeparator\">\n </pep-icon>\n </mat-icon>\n </li>\n </ng-container>\n </ng-template>\n </ul>\n</ng-template>", styles: [":host{display:grid}.bread-crumbs-label{height:calc(var(--pep-top-bar-spacing-bottom, .5rem) + var(--pep-top-bar-field-height, 2.5rem));display:flex;flex-flow:wrap;align-items:center}ul.bread-crumbs-items{padding:0;margin:0;list-style-type:none;display:flex;align-items:center}ul.bread-crumbs-items li{display:inline-flex}ul.bread-crumbs-items li .separator{height:1rem;width:1rem}ul.bread-crumbs-items li a{text-decoration:unset}\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.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i4.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i4.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: i1$1.PepIconComponent, selector: "pep-icon", inputs: ["spin", "name", "fill"] }] });
75
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PepBreadCrumbsComponent });
73
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PepBreadCrumbsComponent, deps: [{ token: i1.PepLayoutService }], target: i0.ɵɵFactoryTarget.Component });
74
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: PepBreadCrumbsComponent, selector: "pep-bread-crumbs", inputs: { items: "items", displayType: "displayType", addSpacing: "addSpacing" }, outputs: { itemClick: "itemClick" }, ngImport: i0, template: "<ng-container *ngIf=\"displayType === 'label'; then labelTemplate; else itemsTemplate\">\n</ng-container>\n<ng-template #labelTemplate>\n <div *ngIf=\"items?.length > 0\" class=\"bread-crumbs-label color-dimmed ellipsis\" [ngClass]=\"{ 'pep-spacing-element': addSpacing }\"\n [title]=\"getLabelTitle()\">\n <div class=\"body-xs ellipsis\">\n <ng-container *ngFor=\"let item of items; let isFirst = first; let isLast = last\">\n <span *ngIf=\"!isFirst && !isLast\">&nbsp;{{ charSeparator }}&nbsp;</span>\n <span *ngIf=\"!isLast\">{{ item.text }}</span>\n </ng-container>\n </div>\n <div class=\" title-md ellipsis current color-main\" title=\"{{ items[items.length - 1]?.text }}\">\n <span>{{ items[items.length - 1]?.text }}</span>\n </div>\n </div>\n</ng-template>\n\n<ng-template #itemsTemplate>\n <ul *ngIf=\"items?.length > 0\" class=\"bread-crumbs-items body-sm ellipsis\">\n <ng-container *ngIf=\"shrinkItems; then shrinkTemplate; else regularTemplate\">\n </ng-container>\n\n <ng-template #shrinkTemplate>\n <li>\n <a class=\"color-link\" [matMenuTriggerFor]=\"menu\" href=\"javascript:void(0)\">...</a>\n <mat-menu #menu=\"matMenu\">\n <ng-container *ngFor=\"let menuItem of items; let isLast = last\">\n <button mat-menu-item *ngIf=\"!isLast\" (click)=\"onBreadCrumbItemClick(menuItem)\"\n [title]=\"menuItem.title || menuItem.text\" [disabled]=\"menuItem.disabled\"\n [ngClass]=\"{ disabled: menuItem.disabled }\">\n <span>\n {{ menuItem.text }}\n </span>\n </button>\n </ng-container>\n </mat-menu>\n </li>\n <li>\n <mat-icon class=\"separator pep-spacing-element\">\n <pep-icon [name]=\"iconSeparator\">\n </pep-icon>\n </mat-icon>\n </li>\n <li>\n <span [title]=\"items[items.length - 1]?.title || items[items.length - 1]?.text\">\n {{ items[items.length - 1]?.text }}\n </span>\n </li>\n </ng-template>\n <ng-template #regularTemplate>\n <ng-container *ngFor=\"let item of items; let isFirst = first; let isLast = last\">\n <li>\n <a *ngIf=\"!item.disabled\" [title]=\"item.title || item.text\" href=\"javascript:void(0)\"\n class=\" color-link\" (click)=\"onBreadCrumbItemClick(item)\">{{ item.text }}</a>\n <span *ngIf=\"item.disabled\" [title]=\"item.title || item.text\">{{ item.text }}</span>\n </li>\n <li *ngIf=\"!isLast\">\n <mat-icon class=\"separator pep-spacing-element\">\n <pep-icon [name]=\"iconSeparator\">\n </pep-icon>\n </mat-icon>\n </li>\n </ng-container>\n </ng-template>\n </ul>\n</ng-template>", styles: [":host{display:grid}.bread-crumbs-label{height:calc(var(--pep-top-bar-spacing-bottom, .5rem) + var(--pep-top-bar-field-height, 2.5rem));display:flex;flex-flow:wrap;align-items:center}ul.bread-crumbs-items{padding:0;margin:0;list-style-type:none;display:flex;align-items:center}ul.bread-crumbs-items li{display:inline-flex}ul.bread-crumbs-items li .separator{height:1rem;width:1rem}ul.bread-crumbs-items li a{text-decoration:unset}\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.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i4.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i4.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "component", type: i1$1.PepIconComponent, selector: "pep-icon", inputs: ["spin", "name", "fill"] }] });
75
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PepBreadCrumbsComponent });
76
76
  }
77
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PepBreadCrumbsComponent, decorators: [{
77
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PepBreadCrumbsComponent, decorators: [{
78
78
  type: Component,
79
79
  args: [{ selector: 'pep-bread-crumbs', template: "<ng-container *ngIf=\"displayType === 'label'; then labelTemplate; else itemsTemplate\">\n</ng-container>\n<ng-template #labelTemplate>\n <div *ngIf=\"items?.length > 0\" class=\"bread-crumbs-label color-dimmed ellipsis\" [ngClass]=\"{ 'pep-spacing-element': addSpacing }\"\n [title]=\"getLabelTitle()\">\n <div class=\"body-xs ellipsis\">\n <ng-container *ngFor=\"let item of items; let isFirst = first; let isLast = last\">\n <span *ngIf=\"!isFirst && !isLast\">&nbsp;{{ charSeparator }}&nbsp;</span>\n <span *ngIf=\"!isLast\">{{ item.text }}</span>\n </ng-container>\n </div>\n <div class=\" title-md ellipsis current color-main\" title=\"{{ items[items.length - 1]?.text }}\">\n <span>{{ items[items.length - 1]?.text }}</span>\n </div>\n </div>\n</ng-template>\n\n<ng-template #itemsTemplate>\n <ul *ngIf=\"items?.length > 0\" class=\"bread-crumbs-items body-sm ellipsis\">\n <ng-container *ngIf=\"shrinkItems; then shrinkTemplate; else regularTemplate\">\n </ng-container>\n\n <ng-template #shrinkTemplate>\n <li>\n <a class=\"color-link\" [matMenuTriggerFor]=\"menu\" href=\"javascript:void(0)\">...</a>\n <mat-menu #menu=\"matMenu\">\n <ng-container *ngFor=\"let menuItem of items; let isLast = last\">\n <button mat-menu-item *ngIf=\"!isLast\" (click)=\"onBreadCrumbItemClick(menuItem)\"\n [title]=\"menuItem.title || menuItem.text\" [disabled]=\"menuItem.disabled\"\n [ngClass]=\"{ disabled: menuItem.disabled }\">\n <span>\n {{ menuItem.text }}\n </span>\n </button>\n </ng-container>\n </mat-menu>\n </li>\n <li>\n <mat-icon class=\"separator pep-spacing-element\">\n <pep-icon [name]=\"iconSeparator\">\n </pep-icon>\n </mat-icon>\n </li>\n <li>\n <span [title]=\"items[items.length - 1]?.title || items[items.length - 1]?.text\">\n {{ items[items.length - 1]?.text }}\n </span>\n </li>\n </ng-template>\n <ng-template #regularTemplate>\n <ng-container *ngFor=\"let item of items; let isFirst = first; let isLast = last\">\n <li>\n <a *ngIf=\"!item.disabled\" [title]=\"item.title || item.text\" href=\"javascript:void(0)\"\n class=\" color-link\" (click)=\"onBreadCrumbItemClick(item)\">{{ item.text }}</a>\n <span *ngIf=\"item.disabled\" [title]=\"item.title || item.text\">{{ item.text }}</span>\n </li>\n <li *ngIf=\"!isLast\">\n <mat-icon class=\"separator pep-spacing-element\">\n <pep-icon [name]=\"iconSeparator\">\n </pep-icon>\n </mat-icon>\n </li>\n </ng-container>\n </ng-template>\n </ul>\n</ng-template>", styles: [":host{display:grid}.bread-crumbs-label{height:calc(var(--pep-top-bar-spacing-bottom, .5rem) + var(--pep-top-bar-field-height, 2.5rem));display:flex;flex-flow:wrap;align-items:center}ul.bread-crumbs-items{padding:0;margin:0;list-style-type:none;display:flex;align-items:center}ul.bread-crumbs-items li{display:inline-flex}ul.bread-crumbs-items li .separator{height:1rem;width:1rem}ul.bread-crumbs-items li a{text-decoration:unset}\n"] }]
80
80
  }, {
81
81
  type: Injectable
82
- }], ctorParameters: function () { return [{ type: i1.PepLayoutService }]; }, propDecorators: { items: [{
82
+ }], ctorParameters: () => [{ type: i1.PepLayoutService }], propDecorators: { items: [{
83
83
  type: Input
84
84
  }], displayType: [{
85
85
  type: Input
@@ -98,15 +98,15 @@ class PepBreadCrumbsModule {
98
98
  pepIconArrowLeft,
99
99
  ]);
100
100
  }
101
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PepBreadCrumbsModule, deps: [{ token: i1$1.PepIconRegistry }], target: i0.ɵɵFactoryTarget.NgModule });
102
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PepBreadCrumbsModule, declarations: [PepBreadCrumbsComponent], imports: [CommonModule,
101
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PepBreadCrumbsModule, deps: [{ token: i1$1.PepIconRegistry }], target: i0.ɵɵFactoryTarget.NgModule });
102
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: PepBreadCrumbsModule, declarations: [PepBreadCrumbsComponent], imports: [CommonModule,
103
103
  // Material modules
104
104
  MatIconModule,
105
105
  MatMenuModule,
106
106
  // ngx-lib modules
107
107
  PepNgxLibModule,
108
108
  PepIconModule], exports: [PepBreadCrumbsComponent] });
109
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PepBreadCrumbsModule, imports: [CommonModule,
109
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PepBreadCrumbsModule, imports: [CommonModule,
110
110
  // Material modules
111
111
  MatIconModule,
112
112
  MatMenuModule,
@@ -114,7 +114,7 @@ class PepBreadCrumbsModule {
114
114
  PepNgxLibModule,
115
115
  PepIconModule] });
116
116
  }
117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PepBreadCrumbsModule, decorators: [{
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PepBreadCrumbsModule, decorators: [{
118
118
  type: NgModule,
119
119
  args: [{
120
120
  imports: [
@@ -129,7 +129,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
129
129
  exports: [PepBreadCrumbsComponent],
130
130
  declarations: [PepBreadCrumbsComponent]
131
131
  }]
132
- }], ctorParameters: function () { return [{ type: i1$1.PepIconRegistry }]; } });
132
+ }], ctorParameters: () => [{ type: i1$1.PepIconRegistry }] });
133
133
 
134
134
  class PepBreadCrumbItem {
135
135
  key;
@@ -1 +1 @@
1
- {"version":3,"file":"pepperi-addons-ngx-lib-bread-crumbs.mjs","sources":["../../../projects/ngx-lib/bread-crumbs/bread-crumbs.component.ts","../../../projects/ngx-lib/bread-crumbs/bread-crumbs.component.html","../../../projects/ngx-lib/bread-crumbs/bread-crumbs.module.ts","../../../projects/ngx-lib/bread-crumbs/bread-crumbs.model.ts","../../../projects/ngx-lib/bread-crumbs/public-api.ts","../../../projects/ngx-lib/bread-crumbs/pepperi-addons-ngx-lib-bread-crumbs.ts"],"sourcesContent":["import {\n Component,\n Input,\n OnInit,\n Injectable,\n Output,\n EventEmitter,\n} from '@angular/core';\nimport { PepLayoutService, PepScreenSizeType } from '@pepperi-addons/ngx-lib';\nimport {\n IPepBreadCrumbItemClickEvent,\n PepBreadCrumbItem,\n PepBreadCrumbsDisplayType,\n} from './bread-crumbs.model';\nimport {\n pepIconArrowLeft,\n pepIconArrowRight,\n} from '@pepperi-addons/ngx-lib/icon';\n@Component({\n selector: 'pep-bread-crumbs',\n templateUrl: './bread-crumbs.component.html',\n styleUrls: ['./bread-crumbs.component.scss', './bread-crumbs.component.theme.scss'],\n})\n@Injectable()\nexport class PepBreadCrumbsComponent implements OnInit {\n private _items: Array<PepBreadCrumbItem> = [];\n @Input()\n set items(value: Array<PepBreadCrumbItem>) {\n this._items = value;\n this.setupShrinkItems();\n }\n get items(): Array<PepBreadCrumbItem> {\n return this._items;\n }\n\n private _displayType: PepBreadCrumbsDisplayType = 'label';\n @Input()\n set displayType(value: PepBreadCrumbsDisplayType) {\n this._displayType = value;\n this.setupShrinkItems();\n }\n get displayType(): PepBreadCrumbsDisplayType {\n return this._displayType;\n }\n\n @Input() addSpacing = false;\n\n @Output()\n itemClick: EventEmitter<IPepBreadCrumbItemClickEvent> = new EventEmitter<IPepBreadCrumbItemClickEvent>();\n\n charSeparator = ' / ';\n iconSeparator: string = pepIconArrowRight.name;\n shrinkItems = false;\n screenSize: PepScreenSizeType;\n\n constructor(private layoutService: PepLayoutService) { }\n\n ngOnInit(): void {\n this.layoutService.onResize$.pipe().subscribe((size) => {\n this.screenSize = size;\n this.setupShrinkItems();\n });\n\n if (this.layoutService.isRtl()) {\n this.charSeparator = ' \\\\ ';\n this.iconSeparator = pepIconArrowLeft.name;\n }\n }\n\n private setupShrinkItems() {\n if (this.displayType === 'items' && this.items.length > 1) {\n this.shrinkItems = this.screenSize > PepScreenSizeType.SM;\n }\n }\n\n getLabelTitle(): string {\n let labelTitle = '';\n\n if (this.items && this.items.length > 0) {\n for (let index = 0; index < this.items.length; index++) {\n if (index < this.items.length - 1) {\n if (index > 0) {\n labelTitle += this.charSeparator;\n }\n\n labelTitle += this.items[index].text;\n }\n }\n }\n\n return labelTitle;\n }\n\n onBreadCrumbItemClick(item: PepBreadCrumbItem): void {\n this.itemClick.emit({ source: item });\n }\n}\n","<ng-container *ngIf=\"displayType === 'label'; then labelTemplate; else itemsTemplate\">\n</ng-container>\n<ng-template #labelTemplate>\n <div *ngIf=\"items?.length > 0\" class=\"bread-crumbs-label color-dimmed ellipsis\" [ngClass]=\"{ 'pep-spacing-element': addSpacing }\"\n [title]=\"getLabelTitle()\">\n <div class=\"body-xs ellipsis\">\n <ng-container *ngFor=\"let item of items; let isFirst = first; let isLast = last\">\n <span *ngIf=\"!isFirst && !isLast\">&nbsp;{{ charSeparator }}&nbsp;</span>\n <span *ngIf=\"!isLast\">{{ item.text }}</span>\n </ng-container>\n </div>\n <div class=\" title-md ellipsis current color-main\" title=\"{{ items[items.length - 1]?.text }}\">\n <span>{{ items[items.length - 1]?.text }}</span>\n </div>\n </div>\n</ng-template>\n\n<ng-template #itemsTemplate>\n <ul *ngIf=\"items?.length > 0\" class=\"bread-crumbs-items body-sm ellipsis\">\n <ng-container *ngIf=\"shrinkItems; then shrinkTemplate; else regularTemplate\">\n </ng-container>\n\n <ng-template #shrinkTemplate>\n <li>\n <a class=\"color-link\" [matMenuTriggerFor]=\"menu\" href=\"javascript:void(0)\">...</a>\n <mat-menu #menu=\"matMenu\">\n <ng-container *ngFor=\"let menuItem of items; let isLast = last\">\n <button mat-menu-item *ngIf=\"!isLast\" (click)=\"onBreadCrumbItemClick(menuItem)\"\n [title]=\"menuItem.title || menuItem.text\" [disabled]=\"menuItem.disabled\"\n [ngClass]=\"{ disabled: menuItem.disabled }\">\n <span>\n {{ menuItem.text }}\n </span>\n </button>\n </ng-container>\n </mat-menu>\n </li>\n <li>\n <mat-icon class=\"separator pep-spacing-element\">\n <pep-icon [name]=\"iconSeparator\">\n </pep-icon>\n </mat-icon>\n </li>\n <li>\n <span [title]=\"items[items.length - 1]?.title || items[items.length - 1]?.text\">\n {{ items[items.length - 1]?.text }}\n </span>\n </li>\n </ng-template>\n <ng-template #regularTemplate>\n <ng-container *ngFor=\"let item of items; let isFirst = first; let isLast = last\">\n <li>\n <a *ngIf=\"!item.disabled\" [title]=\"item.title || item.text\" href=\"javascript:void(0)\"\n class=\" color-link\" (click)=\"onBreadCrumbItemClick(item)\">{{ item.text }}</a>\n <span *ngIf=\"item.disabled\" [title]=\"item.title || item.text\">{{ item.text }}</span>\n </li>\n <li *ngIf=\"!isLast\">\n <mat-icon class=\"separator pep-spacing-element\">\n <pep-icon [name]=\"iconSeparator\">\n </pep-icon>\n </mat-icon>\n </li>\n </ng-container>\n </ng-template>\n </ul>\n</ng-template>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\n\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\nimport {\n PepIconModule,\n PepIconRegistry,\n pepIconArrowRight,\n pepIconArrowLeft,\n} from '@pepperi-addons/ngx-lib/icon';\n\nimport { PepBreadCrumbsComponent } from './bread-crumbs.component';\n\n@NgModule({\n imports: [\n CommonModule,\n // Material modules\n MatIconModule,\n MatMenuModule,\n // ngx-lib modules\n PepNgxLibModule,\n PepIconModule\n ],\n exports: [PepBreadCrumbsComponent],\n declarations: [PepBreadCrumbsComponent]\n})\nexport class PepBreadCrumbsModule {\n constructor(private pepIconRegistry: PepIconRegistry) {\n this.pepIconRegistry.registerIcons([\n pepIconArrowRight,\n pepIconArrowLeft,\n ]);\n }\n}\n","export type PepBreadCrumbsDisplayType = 'label' | 'items';\n\nexport class PepBreadCrumbItem {\n key: string;\n text: string;\n title?: string;\n disabled?: boolean = false;\n\n constructor(data: Partial<PepBreadCrumbItem>) {\n Object.assign(this, data);\n }\n}\n\nexport interface IPepBreadCrumbItemClickEvent {\n source: PepBreadCrumbItem;\n}\n","/*\n * Public API Surface of ngx-lib/bread-crumbs\n */\nexport * from './bread-crumbs.module';\nexport * from './bread-crumbs.model';\nexport * from './bread-crumbs.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i5","i1"],"mappings":";;;;;;;;;;;;;MAwBa,uBAAuB,CAAA;AA+BZ,IAAA,aAAA,CAAA;IA9BZ,MAAM,GAA6B,EAAE,CAAC;IAC9C,IACI,KAAK,CAAC,KAA+B,EAAA;AACrC,QAAA,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,gBAAgB,EAAE,CAAC;KAC3B;AACD,IAAA,IAAI,KAAK,GAAA;QACL,OAAO,IAAI,CAAC,MAAM,CAAC;KACtB;IAEO,YAAY,GAA8B,OAAO,CAAC;IAC1D,IACI,WAAW,CAAC,KAAgC,EAAA;AAC5C,QAAA,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC1B,IAAI,CAAC,gBAAgB,EAAE,CAAC;KAC3B;AACD,IAAA,IAAI,WAAW,GAAA;QACX,OAAO,IAAI,CAAC,YAAY,CAAC;KAC5B;IAEQ,UAAU,GAAG,KAAK,CAAC;AAG5B,IAAA,SAAS,GAA+C,IAAI,YAAY,EAAgC,CAAC;IAEzG,aAAa,GAAG,KAAK,CAAC;AACtB,IAAA,aAAa,GAAW,iBAAiB,CAAC,IAAI,CAAC;IAC/C,WAAW,GAAG,KAAK,CAAC;AACpB,IAAA,UAAU,CAAoB;AAE9B,IAAA,WAAA,CAAoB,aAA+B,EAAA;QAA/B,IAAa,CAAA,aAAA,GAAb,aAAa,CAAkB;KAAK;IAExD,QAAQ,GAAA;AACJ,QAAA,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,IAAI,KAAI;AACnD,YAAA,IAAI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AA,OAAA,EAAA,CATlC,YAAY;;YAEZ,aAAa;YACb,aAAa;;YAEb,eAAe;AACf,YAAA,aAAa,aAEP,uBAAuB,CAAA,EAAA,CAAA,CAAA;AAGxB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAXzB,YAAY;;YAEZ,aAAa;YACb,aAAa;;YAEb,eAAe;YACf,aAAa,CAAA,EAAA,CAAA,CAAA;;4FAKR,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAbhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;;wBAEZ,aAAa;wBACb,aAAa;;wBAEb,eAAe;wBACf,aAAa;AAChB,qBAAA;oBACD,OAAO,EAAE,CAAC,uBAAuB,CAAC;oBAClC,YAAY,EAAE,CAAC,uBAAuB,CAAC;AAC1C,iBAAA,CAAA;;;MC1BY,iBAAiB,CAAA;AAC1B,IAAA,GAAG,CAAS;AACZ,IAAA,IAAI,CAAS;AACb,IAAA,KAAK,CAAU;IACf,QAAQ,GAAa,KAAK,CAAC;AAE3B,IAAA,WAAA,CAAY,IAAgC,EAAA;AACxC,QAAA,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KAC7B;AACJ;;ACXD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"pepperi-addons-ngx-lib-bread-crumbs.mjs","sources":["../../../projects/ngx-lib/bread-crumbs/bread-crumbs.component.ts","../../../projects/ngx-lib/bread-crumbs/bread-crumbs.component.html","../../../projects/ngx-lib/bread-crumbs/bread-crumbs.module.ts","../../../projects/ngx-lib/bread-crumbs/bread-crumbs.model.ts","../../../projects/ngx-lib/bread-crumbs/public-api.ts","../../../projects/ngx-lib/bread-crumbs/pepperi-addons-ngx-lib-bread-crumbs.ts"],"sourcesContent":["import {\n Component,\n Input,\n OnInit,\n Injectable,\n Output,\n EventEmitter,\n} from '@angular/core';\nimport { PepLayoutService, PepScreenSizeType } from '@pepperi-addons/ngx-lib';\nimport {\n IPepBreadCrumbItemClickEvent,\n PepBreadCrumbItem,\n PepBreadCrumbsDisplayType,\n} from './bread-crumbs.model';\nimport {\n pepIconArrowLeft,\n pepIconArrowRight,\n} from '@pepperi-addons/ngx-lib/icon';\n@Component({selector: 'pep-bread-crumbs',\n templateUrl: './bread-crumbs.component.html',\n styleUrls: ['./bread-crumbs.component.scss', './bread-crumbs.component.theme.scss']})\n@Injectable()\nexport class PepBreadCrumbsComponent implements OnInit {\n private _items: Array<PepBreadCrumbItem> = [];\n @Input()\n set items(value: Array<PepBreadCrumbItem>) {\n this._items = value;\n this.setupShrinkItems();\n }\n get items(): Array<PepBreadCrumbItem> {\n return this._items;\n }\n\n private _displayType: PepBreadCrumbsDisplayType = 'label';\n @Input()\n set displayType(value: PepBreadCrumbsDisplayType) {\n this._displayType = value;\n this.setupShrinkItems();\n }\n get displayType(): PepBreadCrumbsDisplayType {\n return this._displayType;\n }\n\n @Input() addSpacing = false;\n\n @Output()\n itemClick: EventEmitter<IPepBreadCrumbItemClickEvent> = new EventEmitter<IPepBreadCrumbItemClickEvent>();\n\n charSeparator = ' / ';\n iconSeparator: string = pepIconArrowRight.name;\n shrinkItems = false;\n screenSize: PepScreenSizeType;\n\n constructor(private layoutService: PepLayoutService) { }\n\n ngOnInit(): void {\n this.layoutService.onResize$.pipe().subscribe((size) => {\n this.screenSize = size;\n this.setupShrinkItems();\n });\n\n if (this.layoutService.isRtl()) {\n this.charSeparator = ' \\\\ ';\n this.iconSeparator = pepIconArrowLeft.name;\n }\n }\n\n private setupShrinkItems() {\n if (this.displayType === 'items' && this.items.length > 1) {\n this.shrinkItems = this.screenSize > PepScreenSizeType.SM;\n }\n }\n\n getLabelTitle(): string {\n let labelTitle = '';\n\n if (this.items && this.items.length > 0) {\n for (let index = 0; index < this.items.length; index++) {\n if (index < this.items.length - 1) {\n if (index > 0) {\n labelTitle += this.charSeparator;\n }\n\n labelTitle += this.items[index].text;\n }\n }\n }\n\n return labelTitle;\n }\n\n onBreadCrumbItemClick(item: PepBreadCrumbItem): void {\n this.itemClick.emit({ source: item });\n }\n}\n","<ng-container *ngIf=\"displayType === 'label'; then labelTemplate; else itemsTemplate\">\n</ng-container>\n<ng-template #labelTemplate>\n <div *ngIf=\"items?.length > 0\" class=\"bread-crumbs-label color-dimmed ellipsis\" [ngClass]=\"{ 'pep-spacing-element': addSpacing }\"\n [title]=\"getLabelTitle()\">\n <div class=\"body-xs ellipsis\">\n <ng-container *ngFor=\"let item of items; let isFirst = first; let isLast = last\">\n <span *ngIf=\"!isFirst && !isLast\">&nbsp;{{ charSeparator }}&nbsp;</span>\n <span *ngIf=\"!isLast\">{{ item.text }}</span>\n </ng-container>\n </div>\n <div class=\" title-md ellipsis current color-main\" title=\"{{ items[items.length - 1]?.text }}\">\n <span>{{ items[items.length - 1]?.text }}</span>\n </div>\n </div>\n</ng-template>\n\n<ng-template #itemsTemplate>\n <ul *ngIf=\"items?.length > 0\" class=\"bread-crumbs-items body-sm ellipsis\">\n <ng-container *ngIf=\"shrinkItems; then shrinkTemplate; else regularTemplate\">\n </ng-container>\n\n <ng-template #shrinkTemplate>\n <li>\n <a class=\"color-link\" [matMenuTriggerFor]=\"menu\" href=\"javascript:void(0)\">...</a>\n <mat-menu #menu=\"matMenu\">\n <ng-container *ngFor=\"let menuItem of items; let isLast = last\">\n <button mat-menu-item *ngIf=\"!isLast\" (click)=\"onBreadCrumbItemClick(menuItem)\"\n [title]=\"menuItem.title || menuItem.text\" [disabled]=\"menuItem.disabled\"\n [ngClass]=\"{ disabled: menuItem.disabled }\">\n <span>\n {{ menuItem.text }}\n </span>\n </button>\n </ng-container>\n </mat-menu>\n </li>\n <li>\n <mat-icon class=\"separator pep-spacing-element\">\n <pep-icon [name]=\"iconSeparator\">\n </pep-icon>\n </mat-icon>\n </li>\n <li>\n <span [title]=\"items[items.length - 1]?.title || items[items.length - 1]?.text\">\n {{ items[items.length - 1]?.text }}\n </span>\n </li>\n </ng-template>\n <ng-template #regularTemplate>\n <ng-container *ngFor=\"let item of items; let isFirst = first; let isLast = last\">\n <li>\n <a *ngIf=\"!item.disabled\" [title]=\"item.title || item.text\" href=\"javascript:void(0)\"\n class=\" color-link\" (click)=\"onBreadCrumbItemClick(item)\">{{ item.text }}</a>\n <span *ngIf=\"item.disabled\" [title]=\"item.title || item.text\">{{ item.text }}</span>\n </li>\n <li *ngIf=\"!isLast\">\n <mat-icon class=\"separator pep-spacing-element\">\n <pep-icon [name]=\"iconSeparator\">\n </pep-icon>\n </mat-icon>\n </li>\n </ng-container>\n </ng-template>\n </ul>\n</ng-template>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\n\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\nimport {\n PepIconModule,\n PepIconRegistry,\n pepIconArrowRight,\n pepIconArrowLeft,\n} from '@pepperi-addons/ngx-lib/icon';\n\nimport { PepBreadCrumbsComponent } from './bread-crumbs.component';\n\n@NgModule({\n imports: [\n CommonModule,\n // Material modules\n MatIconModule,\n MatMenuModule,\n // ngx-lib modules\n PepNgxLibModule,\n PepIconModule\n ],\n exports: [PepBreadCrumbsComponent],\n declarations: [PepBreadCrumbsComponent]\n})\nexport class PepBreadCrumbsModule {\n constructor(private pepIconRegistry: PepIconRegistry) {\n this.pepIconRegistry.registerIcons([\n pepIconArrowRight,\n pepIconArrowLeft,\n ]);\n }\n}\n","export type PepBreadCrumbsDisplayType = 'label' | 'items';\n\nexport class PepBreadCrumbItem {\n key: string;\n text: string;\n title?: string;\n disabled?: boolean = false;\n\n constructor(data: Partial<PepBreadCrumbItem>) {\n Object.assign(this, data);\n }\n}\n\nexport interface IPepBreadCrumbItemClickEvent {\n source: PepBreadCrumbItem;\n}\n","/*\n * Public API Surface of ngx-lib/bread-crumbs\n */\nexport * from './bread-crumbs.module';\nexport * from './bread-crumbs.model';\nexport * from './bread-crumbs.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i5","i1"],"mappings":";;;;;;;;;;;;;MAsBa,uBAAuB,CAAA;AA+BZ,IAAA,aAAA;IA9BZ,MAAM,GAA6B,EAAE;IAC7C,IACI,KAAK,CAAC,KAA+B,EAAA;AACrC,QAAA,IAAI,CAAC,MAAM,GAAG,KAAK;QACnB,IAAI,CAAC,gBAAgB,EAAE;IAC3B;AACA,IAAA,IAAI,KAAK,GAAA;QACL,OAAO,IAAI,CAAC,MAAM;IACtB;IAEQ,YAAY,GAA8B,OAAO;IACzD,IACI,WAAW,CAAC,KAAgC,EAAA;AAC5C,QAAA,IAAI,CAAC,YAAY,GAAG,KAAK;QACzB,IAAI,CAAC,gBAAgB,EAAE;IAC3B;AACA,IAAA,IAAI,WAAW,GAAA;QACX,OAAO,IAAI,CAAC,YAAY;IAC5B;IAES,UAAU,GAAG,KAAK;AAG3B,IAAA,SAAS,GAA+C,IAAI,YAAY,EAAgC;IAExG,aAAa,GAAG,KAAK;AACrB,IAAA,aAAa,GAAW,iBAAiB,CAAC,IAAI;IAC9C,WAAW,GAAG,KAAK;AACnB,IAAA,UAAU;AAEV,IAAA,WAAA,CAAoB,aAA+B,EAAA;QAA/B,IAAA,CAAA,aAAa,GAAb,aAAa;IAAsB;IAEvD,QAAQ,GAAA;AACJ,QAAA,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,IAAI,KAAI;AACnD,YAAA,IAAI,CAAC,UAAU,GAAG,IAAI;YACtB,IAAI,CAAC,gBAAgB,EAAE;AAC3B,QAAA,CAAC,CAAC;AAEF,QAAA,IAAI,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE;AAC5B,YAAA,IAAI,CAAC,aAAa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A,YAAA,EAAA,CAFd,uBAAuB,CAAA,EAAA,OAAA,EAAA,CATlC,YAAY;;YAEZ,aAAa;YACb,aAAa;;YAEb,eAAe;AACf,YAAA,aAAa,aAEP,uBAAuB,CAAA,EAAA,CAAA;AAGxB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAXzB,YAAY;;YAEZ,aAAa;YACb,aAAa;;YAEb,eAAe;YACf,aAAa,CAAA,EAAA,CAAA;;4FAKR,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAbhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;;wBAEZ,aAAa;wBACb,aAAa;;wBAEb,eAAe;wBACf;AACH,qBAAA;oBACD,OAAO,EAAE,CAAC,uBAAuB,CAAC;oBAClC,YAAY,EAAE,CAAC,uBAAuB;AACzC,iBAAA;;;MC1BY,iBAAiB,CAAA;AAC1B,IAAA,GAAG;AACH,IAAA,IAAI;AACJ,IAAA,KAAK;IACL,QAAQ,GAAa,KAAK;AAE1B,IAAA,WAAA,CAAY,IAAgC,EAAA;AACxC,QAAA,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC;IAC7B;AACH;;ACXD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
2
+ import { EventEmitter, Output, Input, Component, NgModule } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import { MatCommonModule } from '@angular/material/core';
@@ -148,13 +148,13 @@ class PepButtonComponent {
148
148
  };
149
149
  this.buttonClick.emit(buttonClick);
150
150
  }
151
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PepButtonComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
152
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PepButtonComponent, selector: "pep-button", inputs: { key: "key", value: "value", styleType: "styleType", styleStateType: "styleStateType", sizeType: "sizeType", classNames: "classNames", disabled: "disabled", iconName: "iconName", iconPosition: "iconPosition", visible: "visible" }, outputs: { buttonClick: "buttonClick" }, ngImport: i0, template: "<button mat-button [pepDataQa]=\"key ? key : value\"\n class=\"pep-button {{ sizeType }} {{ styleType }} {{ styleStateType }} {{ classNames }}\"\n [ngClass]=\"{ 'icon-button': iconName && !value }\" [disabled]=\"disabled\" (click)=\"onButtonClicked($event)\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\">\n </ng-container>\n</button>\n\n<ng-template #contentTemplate>\n <mat-icon *ngIf=\"iconName && iconPosition === 'start'\" [ngClass]=\"{ 'pull-left flip': value }\">\n <pep-icon name=\"{{iconName}}\"></pep-icon>\n </mat-icon>\n <span *ngIf=\"value\" class=\"ellipsis pull-left flip\"\n [ngClass]=\"{ 'button-title-with-icon': iconName, 'icon-before': iconPosition === 'start' }\" [title]=\"value\">\n {{value}}\n </span>\n <mat-icon *ngIf=\"iconName && iconPosition === 'end'\" [ngClass]=\"{ 'pull-left flip': value }\">\n <pep-icon name=\"{{iconName}}\"></pep-icon>\n </mat-icon>\n</ng-template>", styles: [":host{display:grid}\n", ""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.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: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i4.PepDataQaDirective, selector: "[pepDataQa]", inputs: ["pepDataQa"] }, { kind: "component", type: i5.PepIconComponent, selector: "pep-icon", inputs: ["spin", "name", "fill"] }] });
151
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PepButtonComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
152
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: PepButtonComponent, selector: "pep-button", inputs: { key: "key", value: "value", styleType: "styleType", styleStateType: "styleStateType", sizeType: "sizeType", classNames: "classNames", disabled: "disabled", iconName: "iconName", iconPosition: "iconPosition", visible: "visible" }, outputs: { buttonClick: "buttonClick" }, ngImport: i0, template: "<button mat-button [pepDataQa]=\"key ? key : value\"\n class=\"pep-button {{ sizeType }} {{ styleType }} {{ styleStateType }} {{ classNames }}\"\n [ngClass]=\"{ 'icon-button': iconName && !value }\" [disabled]=\"disabled\" (click)=\"onButtonClicked($event)\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\">\n </ng-container>\n</button>\n\n<ng-template #contentTemplate>\n <mat-icon *ngIf=\"iconName && iconPosition === 'start'\" [ngClass]=\"{ 'pull-left flip': value }\">\n <pep-icon name=\"{{iconName}}\"></pep-icon>\n </mat-icon>\n <span *ngIf=\"value\" class=\"ellipsis pull-left flip\"\n [ngClass]=\"{ 'button-title-with-icon': iconName, 'icon-before': iconPosition === 'start' }\" [title]=\"value\">\n {{value}}\n </span>\n <mat-icon *ngIf=\"iconName && iconPosition === 'end'\" [ngClass]=\"{ 'pull-left flip': value }\">\n <pep-icon name=\"{{iconName}}\"></pep-icon>\n </mat-icon>\n</ng-template>", styles: [":host{display:grid}:host ::ng-deep button .mdc-button__label{display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:row!important}:host ::ng-deep button .mdc-button__label mat-icon,:host ::ng-deep button .mdc-button__label .mat-icon,:host ::ng-deep button .mdc-button__label .mat-mdc-icon{display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important}:host ::ng-deep .mat-mdc-button .mdc-button__label,:host ::ng-deep .mat-mdc-unelevated-button .mdc-button__label,:host ::ng-deep .mat-mdc-raised-button .mdc-button__label,:host ::ng-deep .mat-mdc-outlined-button .mdc-button__label{display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:row!important}:host ::ng-deep .mat-mdc-button .mdc-button__label mat-icon,:host ::ng-deep .mat-mdc-button .mdc-button__label .mat-icon,:host ::ng-deep .mat-mdc-button .mdc-button__label .mat-mdc-icon,:host ::ng-deep .mat-mdc-unelevated-button .mdc-button__label mat-icon,:host ::ng-deep .mat-mdc-unelevated-button .mdc-button__label .mat-icon,:host ::ng-deep .mat-mdc-unelevated-button .mdc-button__label .mat-mdc-icon,:host ::ng-deep .mat-mdc-raised-button .mdc-button__label mat-icon,:host ::ng-deep .mat-mdc-raised-button .mdc-button__label .mat-icon,:host ::ng-deep .mat-mdc-raised-button .mdc-button__label .mat-mdc-icon,:host ::ng-deep .mat-mdc-outlined-button .mdc-button__label mat-icon,:host ::ng-deep .mat-mdc-outlined-button .mdc-button__label .mat-icon,:host ::ng-deep .mat-mdc-outlined-button .mdc-button__label .mat-mdc-icon{display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important}\n", ""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i4.PepDataQaDirective, selector: "[pepDataQa]", inputs: ["pepDataQa"] }, { kind: "component", type: i5.PepIconComponent, selector: "pep-icon", inputs: ["spin", "name", "fill"] }] });
153
153
  }
154
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PepButtonComponent, decorators: [{
154
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PepButtonComponent, decorators: [{
155
155
  type: Component,
156
- args: [{ selector: 'pep-button', template: "<button mat-button [pepDataQa]=\"key ? key : value\"\n class=\"pep-button {{ sizeType }} {{ styleType }} {{ styleStateType }} {{ classNames }}\"\n [ngClass]=\"{ 'icon-button': iconName && !value }\" [disabled]=\"disabled\" (click)=\"onButtonClicked($event)\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\">\n </ng-container>\n</button>\n\n<ng-template #contentTemplate>\n <mat-icon *ngIf=\"iconName && iconPosition === 'start'\" [ngClass]=\"{ 'pull-left flip': value }\">\n <pep-icon name=\"{{iconName}}\"></pep-icon>\n </mat-icon>\n <span *ngIf=\"value\" class=\"ellipsis pull-left flip\"\n [ngClass]=\"{ 'button-title-with-icon': iconName, 'icon-before': iconPosition === 'start' }\" [title]=\"value\">\n {{value}}\n </span>\n <mat-icon *ngIf=\"iconName && iconPosition === 'end'\" [ngClass]=\"{ 'pull-left flip': value }\">\n <pep-icon name=\"{{iconName}}\"></pep-icon>\n </mat-icon>\n</ng-template>", styles: [":host{display:grid}\n"] }]
157
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { key: [{
156
+ args: [{ selector: 'pep-button', template: "<button mat-button [pepDataQa]=\"key ? key : value\"\n class=\"pep-button {{ sizeType }} {{ styleType }} {{ styleStateType }} {{ classNames }}\"\n [ngClass]=\"{ 'icon-button': iconName && !value }\" [disabled]=\"disabled\" (click)=\"onButtonClicked($event)\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\">\n </ng-container>\n</button>\n\n<ng-template #contentTemplate>\n <mat-icon *ngIf=\"iconName && iconPosition === 'start'\" [ngClass]=\"{ 'pull-left flip': value }\">\n <pep-icon name=\"{{iconName}}\"></pep-icon>\n </mat-icon>\n <span *ngIf=\"value\" class=\"ellipsis pull-left flip\"\n [ngClass]=\"{ 'button-title-with-icon': iconName, 'icon-before': iconPosition === 'start' }\" [title]=\"value\">\n {{value}}\n </span>\n <mat-icon *ngIf=\"iconName && iconPosition === 'end'\" [ngClass]=\"{ 'pull-left flip': value }\">\n <pep-icon name=\"{{iconName}}\"></pep-icon>\n </mat-icon>\n</ng-template>", styles: [":host{display:grid}:host ::ng-deep button .mdc-button__label{display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:row!important}:host ::ng-deep button .mdc-button__label mat-icon,:host ::ng-deep button .mdc-button__label .mat-icon,:host ::ng-deep button .mdc-button__label .mat-mdc-icon{display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important}:host ::ng-deep .mat-mdc-button .mdc-button__label,:host ::ng-deep .mat-mdc-unelevated-button .mdc-button__label,:host ::ng-deep .mat-mdc-raised-button .mdc-button__label,:host ::ng-deep .mat-mdc-outlined-button .mdc-button__label{display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:row!important}:host ::ng-deep .mat-mdc-button .mdc-button__label mat-icon,:host ::ng-deep .mat-mdc-button .mdc-button__label .mat-icon,:host ::ng-deep .mat-mdc-button .mdc-button__label .mat-mdc-icon,:host ::ng-deep .mat-mdc-unelevated-button .mdc-button__label mat-icon,:host ::ng-deep .mat-mdc-unelevated-button .mdc-button__label .mat-icon,:host ::ng-deep .mat-mdc-unelevated-button .mdc-button__label .mat-mdc-icon,:host ::ng-deep .mat-mdc-raised-button .mdc-button__label mat-icon,:host ::ng-deep .mat-mdc-raised-button .mdc-button__label .mat-icon,:host ::ng-deep .mat-mdc-raised-button .mdc-button__label .mat-mdc-icon,:host ::ng-deep .mat-mdc-outlined-button .mdc-button__label mat-icon,:host ::ng-deep .mat-mdc-outlined-button .mdc-button__label .mat-icon,:host ::ng-deep .mat-mdc-outlined-button .mdc-button__label .mat-mdc-icon{display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important}\n"] }]
157
+ }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { key: [{
158
158
  type: Input
159
159
  }], value: [{
160
160
  type: Input
@@ -179,8 +179,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
179
179
  }] } });
180
180
 
181
181
  class PepButtonModule {
182
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PepButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
183
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PepButtonModule, declarations: [PepButtonComponent], imports: [CommonModule,
182
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PepButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
183
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: PepButtonModule, declarations: [PepButtonComponent], imports: [CommonModule,
184
184
  // Material modules
185
185
  MatCommonModule,
186
186
  MatButtonModule,
@@ -188,7 +188,7 @@ class PepButtonModule {
188
188
  // ngx-lib modules
189
189
  PepNgxLibModule,
190
190
  PepIconModule], exports: [PepButtonComponent] });
191
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PepButtonModule, imports: [CommonModule,
191
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PepButtonModule, imports: [CommonModule,
192
192
  // Material modules
193
193
  MatCommonModule,
194
194
  MatButtonModule,
@@ -197,7 +197,7 @@ class PepButtonModule {
197
197
  PepNgxLibModule,
198
198
  PepIconModule] });
199
199
  }
200
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PepButtonModule, decorators: [{
200
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PepButtonModule, decorators: [{
201
201
  type: NgModule,
202
202
  args: [{
203
203
  imports: [
@@ -1 +1 @@
1
- {"version":3,"file":"pepperi-addons-ngx-lib-button.mjs","sources":["../../../projects/ngx-lib/button/button.model.ts","../../../projects/ngx-lib/button/button.component.ts","../../../projects/ngx-lib/button/button.component.html","../../../projects/ngx-lib/button/button.module.ts","../../../projects/ngx-lib/button/public-api.ts","../../../projects/ngx-lib/button/pepperi-addons-ngx-lib-button.ts"],"sourcesContent":["export class PepButton {\n key: string;\n value?: string;\n classNames?: string;\n disabled?: boolean;\n iconName?: string;\n iconPosition?: 'start' | 'end';\n callback?: (action: IPepButtonClickEvent) => void;\n\n constructor(data: Partial<PepButton>) {\n Object.assign(this, data);\n }\n}\n\nexport interface IPepButtonClickEvent {\n source: PepButton;\n event?: Event;\n}\n","import {\n Component,\n OnDestroy,\n Input,\n Output,\n EventEmitter,\n Renderer2,\n ElementRef,\n} from '@angular/core';\nimport {\n PepStyleType,\n PepStyleStateType,\n PepSizeType,\n} from '@pepperi-addons/ngx-lib';\nimport { PepIconType } from '@pepperi-addons/ngx-lib/icon';\nimport { PepButton, IPepButtonClickEvent } from './button.model';\n\n/**\n * This is a button component that support pepperi theme\n * style & state & sizes\n *\n * @export\n * @class PepButtonComponent\n * @implements {OnDestroy}\n */\n@Component({\n selector: 'pep-button',\n templateUrl: './button.component.html',\n styleUrls: ['./button.component.scss', './button.component.theme.scss'],\n})\nexport class PepButtonComponent implements OnDestroy {\n /**\n * The button key\n *\n * @type {string}\n * @memberof PepButtonComponent\n */\n @Input() key: string;\n\n /**\n * The button text\n *\n * @type {string}\n * @memberof PepButtonComponent\n */\n @Input() value: string;\n\n /**\n * The style of the button\n *\n * @type {PepStyleType}\n * @memberof PepButtonComponent\n */\n @Input() styleType: PepStyleType = 'weak';\n\n /**\n * The color style used by the button\n *\n * @type {PepStyleStateType}\n * @memberof PepButtonComponent\n */\n @Input() styleStateType: PepStyleStateType = 'system';\n\n /**\n * The size of the button\n *\n * @type {PepSizeType}\n * @memberof PepButtonComponent\n */\n @Input() sizeType: PepSizeType = 'md';\n\n /**\n * Class names that should be on the button element tag like classNames=\"class1 class2\"\n *\n * @memberof PepButtonComponent\n */\n @Input() classNames = '';\n\n /**\n * If the button is disable or not\n *\n * @type {boolean}\n * @memberof PepButtonComponent\n */\n @Input() disabled = false;\n\n /**\n * If you want to show an icon in the button then select an icon form the provided icon list\n *\n * @type {PepIconType} See {@link PepIconType}\n * @memberof PepButtonComponent\n */\n @Input() iconName: PepIconType;\n\n /**\n * The icon position, on the left `start` or right `end` of the text (flipped in RTL languages). Applicable only if `iconName` was selected\n *\n * @type {('start' | 'end')}\n * @memberof PepButtonComponent\n */\n @Input() iconPosition: 'start' | 'end' = 'end';\n\n private _visible = true;\n /**\n * If the button is visible or not\n *\n * @memberof PepButtonComponent\n */\n @Input()\n set visible(visible: boolean) {\n if (visible !== undefined) {\n this._visible = !!visible;\n if (visible) {\n this.renderer.removeClass(\n this.element.nativeElement,\n 'hidden-element'\n );\n } else {\n this.renderer.addClass(\n this.element.nativeElement,\n 'hidden-element'\n );\n }\n }\n }\n get visible(): boolean {\n return this._visible;\n }\n\n /**\n * The button click event.\n *\n * @type {EventEmitter<IPepButtonClickEvent>}\n * @memberof PepButtonComponent\n */\n @Output()\n buttonClick: EventEmitter<IPepButtonClickEvent> = new EventEmitter<IPepButtonClickEvent>();\n\n constructor(private renderer: Renderer2, private element: ElementRef) { }\n\n ngOnDestroy(): void {\n // if (this.buttonClick) {\n // this.buttonClick.unsubscribe();\n // }\n }\n\n /**\n * The button click\n */\n onButtonClicked(event: Event): void {\n const button = new PepButton({\n key: this.key,\n value: this.value,\n });\n\n const buttonClick = {\n source: button,\n event,\n };\n\n this.buttonClick.emit(buttonClick);\n }\n}\n","<button mat-button [pepDataQa]=\"key ? key : value\"\n class=\"pep-button {{ sizeType }} {{ styleType }} {{ styleStateType }} {{ classNames }}\"\n [ngClass]=\"{ 'icon-button': iconName && !value }\" [disabled]=\"disabled\" (click)=\"onButtonClicked($event)\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\">\n </ng-container>\n</button>\n\n<ng-template #contentTemplate>\n <mat-icon *ngIf=\"iconName && iconPosition === 'start'\" [ngClass]=\"{ 'pull-left flip': value }\">\n <pep-icon name=\"{{iconName}}\"></pep-icon>\n </mat-icon>\n <span *ngIf=\"value\" class=\"ellipsis pull-left flip\"\n [ngClass]=\"{ 'button-title-with-icon': iconName, 'icon-before': iconPosition === 'start' }\" [title]=\"value\">\n {{value}}\n </span>\n <mat-icon *ngIf=\"iconName && iconPosition === 'end'\" [ngClass]=\"{ 'pull-left flip': value }\">\n <pep-icon name=\"{{iconName}}\"></pep-icon>\n </mat-icon>\n</ng-template>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { MatCommonModule } from '@angular/material/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { PepIconModule } from '@pepperi-addons/ngx-lib/icon';\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\n\nimport { PepButtonComponent } from './button.component';\n\n@NgModule({\n imports: [\n CommonModule,\n // Material modules\n MatCommonModule,\n MatButtonModule,\n MatIconModule,\n // ngx-lib modules\n PepNgxLibModule,\n PepIconModule,\n ],\n exports: [PepButtonComponent],\n declarations: [PepButtonComponent],\n})\nexport class PepButtonModule {}\n","/*\n * Public API Surface of ngx-lib/button\n */\nexport * from './button.module';\nexport * from './button.component';\nexport * from './button.model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MAAa,SAAS,CAAA;AAClB,IAAA,GAAG,CAAS;AACZ,IAAA,KAAK,CAAU;AACf,IAAA,UAAU,CAAU;AACpB,IAAA,QAAQ,CAAW;AACnB,IAAA,QAAQ,CAAU;AAClB,IAAA,YAAY,CAAmB;AAC/B,IAAA,QAAQ,CAA0C;AAElD,IAAA,WAAA,CAAY,IAAwB,EAAA;AAChC,QAAA,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KAC7B;AACJ;;ACKD;;;;;;;AAOG;MAMU,kBAAkB,CAAA;AA4GP,IAAA,QAAA,CAAA;AAA6B,IAAA,OAAA,CAAA;AA3GjD;;;;;AAKG;AACM,IAAA,GAAG,CAAS;AAErB;;;;;AAKG;AACM,IAAA,KAAK,CAAS;AAEvB;;;;;AAKG;IACM,SAAS,GAAiB,MAAM,CAAC;AAE1C;;;;;AAKG;IACM,cAAc,GAAsB,QAAQ,CAAC;AAEtD;;;;;AAKG;IACM,QAAQ,GAAgB,IAAI,CAAC;AAEtC;;;;AAIG;IACM,UAAU,GAAG,EAAE,CAAC;AAEzB;;;;;AAKG;IACM,QAAQ,GAAG,KAAK,CAAC;AAE1B;;;;;AAKG;AACM,IAAA,QAAQ,CAAc;AAE/B;;;;;AAKG;IACM,YAAY,GAAoB,KAAK,CAAC;IAEvC,QAAQ,GAAG,IAAI,CAAC;AACxB;;;;AAIG;IACH,IACI,OAAO,CAAC,OAAgB,EAAA;QACxB,IAAI,OAAO,KAAK,SAAS,EAAE;AACvB,YAAA,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,OAAO,CAAC;AAC1B,YAAA,IAAI,OAAO,EAAE;AACT,gBAAA,IAAI,CAAC,Q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AAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;;wBAEZ,eAAe;wBACf,eAAe;wBACf,aAAa;;wBAEb,eAAe;wBACf,aAAa;AAChB,qBAAA;oBACD,OAAO,EAAE,CAAC,kBAAkB,CAAC;oBAC7B,YAAY,EAAE,CAAC,kBAAkB,CAAC;AACrC,iBAAA,CAAA;;;ACxBD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"pepperi-addons-ngx-lib-button.mjs","sources":["../../../projects/ngx-lib/button/button.model.ts","../../../projects/ngx-lib/button/button.component.ts","../../../projects/ngx-lib/button/button.component.html","../../../projects/ngx-lib/button/button.module.ts","../../../projects/ngx-lib/button/public-api.ts","../../../projects/ngx-lib/button/pepperi-addons-ngx-lib-button.ts"],"sourcesContent":["export class PepButton {\n key: string;\n value?: string;\n classNames?: string;\n disabled?: boolean;\n iconName?: string;\n iconPosition?: 'start' | 'end';\n callback?: (action: IPepButtonClickEvent) => void;\n\n constructor(data: Partial<PepButton>) {\n Object.assign(this, data);\n }\n}\n\nexport interface IPepButtonClickEvent {\n source: PepButton;\n event?: Event;\n}\n","import {\n Component,\n OnDestroy,\n Input,\n Output,\n EventEmitter,\n Renderer2,\n ElementRef,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport {\n PepStyleType,\n PepStyleStateType,\n PepSizeType,\n} from '@pepperi-addons/ngx-lib';\nimport { PepIconType } from '@pepperi-addons/ngx-lib/icon';\nimport { PepButton, IPepButtonClickEvent } from './button.model';\n\n/**\n * This is a button component that support pepperi theme\n * style & state & sizes\n *\n * @export\n * @class PepButtonComponent\n * @implements {OnDestroy}\n */\n@Component({\n selector: 'pep-button',\n templateUrl: './button.component.html',\n styleUrls: ['./button.component.scss', './button.component.theme.scss'],\n})\nexport class PepButtonComponent implements OnDestroy {\n /**\n * The button key\n *\n * @type {string}\n * @memberof PepButtonComponent\n */\n @Input() key: string;\n\n /**\n * The button text\n *\n * @type {string}\n * @memberof PepButtonComponent\n */\n @Input() value: string;\n\n /**\n * The style of the button\n *\n * @type {PepStyleType}\n * @memberof PepButtonComponent\n */\n @Input() styleType: PepStyleType = 'weak';\n\n /**\n * The color style used by the button\n *\n * @type {PepStyleStateType}\n * @memberof PepButtonComponent\n */\n @Input() styleStateType: PepStyleStateType = 'system';\n\n /**\n * The size of the button\n *\n * @type {PepSizeType}\n * @memberof PepButtonComponent\n */\n @Input() sizeType: PepSizeType = 'md';\n\n /**\n * Class names that should be on the button element tag like classNames=\"class1 class2\"\n *\n * @memberof PepButtonComponent\n */\n @Input() classNames = '';\n\n /**\n * If the button is disable or not\n *\n * @type {boolean}\n * @memberof PepButtonComponent\n */\n @Input() disabled = false;\n\n /**\n * If you want to show an icon in the button then select an icon form the provided icon list\n *\n * @type {PepIconType} See {@link PepIconType}\n * @memberof PepButtonComponent\n */\n @Input() iconName: PepIconType;\n\n /**\n * The icon position, on the left `start` or right `end` of the text (flipped in RTL languages). Applicable only if `iconName` was selected\n *\n * @type {('start' | 'end')}\n * @memberof PepButtonComponent\n */\n @Input() iconPosition: 'start' | 'end' = 'end';\n\n private _visible = true;\n /**\n * If the button is visible or not\n *\n * @memberof PepButtonComponent\n */\n @Input()\n set visible(visible: boolean) {\n if (visible !== undefined) {\n this._visible = !!visible;\n if (visible) {\n this.renderer.removeClass(\n this.element.nativeElement,\n 'hidden-element'\n );\n } else {\n this.renderer.addClass(\n this.element.nativeElement,\n 'hidden-element'\n );\n }\n }\n }\n get visible(): boolean {\n return this._visible;\n }\n\n /**\n * The button click event.\n *\n * @type {EventEmitter<IPepButtonClickEvent>}\n * @memberof PepButtonComponent\n */\n @Output()\n buttonClick: EventEmitter<IPepButtonClickEvent> = new EventEmitter<IPepButtonClickEvent>();\n\n constructor(private renderer: Renderer2, private element: ElementRef) { }\n\n ngOnDestroy(): void {\n // if (this.buttonClick) {\n // this.buttonClick.unsubscribe();\n // }\n }\n\n /**\n * The button click\n */\n onButtonClicked(event: Event): void {\n const button = new PepButton({\n key: this.key,\n value: this.value,\n });\n\n const buttonClick = {\n source: button,\n event,\n };\n\n this.buttonClick.emit(buttonClick);\n }\n}\n","<button mat-button [pepDataQa]=\"key ? key : value\"\n class=\"pep-button {{ sizeType }} {{ styleType }} {{ styleStateType }} {{ classNames }}\"\n [ngClass]=\"{ 'icon-button': iconName && !value }\" [disabled]=\"disabled\" (click)=\"onButtonClicked($event)\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\">\n </ng-container>\n</button>\n\n<ng-template #contentTemplate>\n <mat-icon *ngIf=\"iconName && iconPosition === 'start'\" [ngClass]=\"{ 'pull-left flip': value }\">\n <pep-icon name=\"{{iconName}}\"></pep-icon>\n </mat-icon>\n <span *ngIf=\"value\" class=\"ellipsis pull-left flip\"\n [ngClass]=\"{ 'button-title-with-icon': iconName, 'icon-before': iconPosition === 'start' }\" [title]=\"value\">\n {{value}}\n </span>\n <mat-icon *ngIf=\"iconName && iconPosition === 'end'\" [ngClass]=\"{ 'pull-left flip': value }\">\n <pep-icon name=\"{{iconName}}\"></pep-icon>\n </mat-icon>\n</ng-template>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { MatCommonModule } from '@angular/material/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { PepIconModule } from '@pepperi-addons/ngx-lib/icon';\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\n\nimport { PepButtonComponent } from './button.component';\n\n@NgModule({\n imports: [\n CommonModule,\n // Material modules\n MatCommonModule,\n MatButtonModule,\n MatIconModule,\n // ngx-lib modules\n PepNgxLibModule,\n PepIconModule,\n ],\n exports: [PepButtonComponent],\n declarations: [PepButtonComponent],\n})\nexport class PepButtonModule {}\n","/*\n * Public API Surface of ngx-lib/button\n */\nexport * from './button.module';\nexport * from './button.component';\nexport * from './button.model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;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EAAA,CAAA;sBAAhB;gBAQQ,YAAY,EAAA,CAAA;sBAApB;gBASG,OAAO,EAAA,CAAA;sBADV;gBA4BD,WAAW,EAAA,CAAA;sBADV;;;ME/GQ,eAAe,CAAA;wGAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;yGAAf,eAAe,EAAA,YAAA,EAAA,CAFT,kBAAkB,CAAA,EAAA,OAAA,EAAA,CAV7B,YAAY;;YAEZ,eAAe;YACf,eAAe;YACf,aAAa;;YAEb,eAAe;AACf,YAAA,aAAa,aAEP,kBAAkB,CAAA,EAAA,CAAA;AAGnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,YAZpB,YAAY;;YAEZ,eAAe;YACf,eAAe;YACf,aAAa;;YAEb,eAAe;YACf,aAAa,CAAA,EAAA,CAAA;;4FAKR,eAAe,EAAA,UAAA,EAAA,CAAA;kBAd3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;;wBAEZ,eAAe;wBACf,eAAe;wBACf,aAAa;;wBAEb,eAAe;wBACf,aAAa;AAChB,qBAAA;oBACD,OAAO,EAAE,CAAC,kBAAkB,CAAC;oBAC7B,YAAY,EAAE,CAAC,kBAAkB,CAAC;AACrC,iBAAA;;;ACxBD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ElementRef, Directive, Inject, HostBinding, Input, EventEmitter, Renderer2, Component, ViewChild, ContentChildren, Output, HostListener, NgModule } from '@angular/core';
2
+ import { ElementRef, Input, HostBinding, Inject, Directive, EventEmitter, Renderer2, HostListener, Output, ContentChildren, ViewChild, Component, NgModule } from '@angular/core';
3
3
  import { DOCUMENT } from '@angular/common';
4
4
 
5
5
  class PepCarouselItemDirective {
@@ -15,18 +15,18 @@ class PepCarouselItemDirective {
15
15
  constructor(elementRef) {
16
16
  this._elementRef = elementRef;
17
17
  }
18
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PepCarouselItemDirective, deps: [{ token: ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
19
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: PepCarouselItemDirective, selector: "[pepCarouselItem]", inputs: { dragDisabled: "dragDisabled" }, host: { properties: { "style.display": "this.display" } }, ngImport: i0 });
18
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PepCarouselItemDirective, deps: [{ token: ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
19
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: PepCarouselItemDirective, selector: "[pepCarouselItem]", inputs: { dragDisabled: "dragDisabled" }, host: { properties: { "style.display": "this.display" } }, ngImport: i0 });
20
20
  }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PepCarouselItemDirective, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PepCarouselItemDirective, decorators: [{
22
22
  type: Directive,
23
23
  args: [{
24
24
  selector: '[pepCarouselItem]',
25
25
  }]
26
- }], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
26
+ }], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
27
27
  type: Inject,
28
28
  args: [ElementRef]
29
- }] }]; }, propDecorators: { display: [{
29
+ }] }], propDecorators: { display: [{
30
30
  type: HostBinding,
31
31
  args: ['style.display']
32
32
  }], dragDisabled: [{
@@ -714,21 +714,21 @@ class PepCarouselComponent {
714
714
  // }
715
715
  // }
716
716
  }
717
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PepCarouselComponent, deps: [{ token: ElementRef }, { token: Renderer2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
718
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PepCarouselComponent, selector: "pep-carousel", inputs: { scrollbarHidden: "scrollbarHidden", disabled: "disabled", xDisabled: "xDisabled", yDisabled: "yDisabled", xWheelEnabled: "xWheelEnabled", dragDisabled: "dragDisabled", snapDisabled: "snapDisabled", snapOffset: "snapOffset", snapDuration: "snapDuration" }, outputs: { dsInitialized: "dsInitialized", indexChanged: "indexChanged", reachesLeftBound: "reachesLeftBound", reachesRightBound: "reachesRightBound", snapAnimationFinished: "snapAnimationFinished", dragStart: "dragStart", dragEnd: "dragEnd" }, host: { listeners: { "wheel": "onWheel($event)", "window:resize": "onWindowResize()" }, properties: { "style.pointer-events": "this._pointerEvents" } }, queries: [{ propertyName: "_children", predicate: PepCarouselItemDirective, descendants: true }], viewQueries: [{ propertyName: "_contentRef", first: true, predicate: ["contentRef"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
717
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PepCarouselComponent, deps: [{ token: ElementRef }, { token: Renderer2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
718
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: PepCarouselComponent, selector: "pep-carousel", inputs: { scrollbarHidden: "scrollbarHidden", disabled: "disabled", xDisabled: "xDisabled", yDisabled: "yDisabled", xWheelEnabled: "xWheelEnabled", dragDisabled: "dragDisabled", snapDisabled: "snapDisabled", snapOffset: "snapOffset", snapDuration: "snapDuration" }, outputs: { dsInitialized: "dsInitialized", indexChanged: "indexChanged", reachesLeftBound: "reachesLeftBound", reachesRightBound: "reachesRightBound", snapAnimationFinished: "snapAnimationFinished", dragStart: "dragStart", dragEnd: "dragEnd" }, host: { listeners: { "wheel": "onWheel($event)", "window:resize": "onWindowResize()" }, properties: { "style.pointer-events": "this._pointerEvents" } }, queries: [{ propertyName: "_children", predicate: PepCarouselItemDirective, descendants: true }], viewQueries: [{ propertyName: "_contentRef", first: true, predicate: ["contentRef"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
719
719
  <div class="carousel-content" #contentRef>
720
720
  <ng-content></ng-content>
721
721
  </div>
722
722
  `, isInline: true, styles: [":host{overflow:hidden;display:block}.carousel-content{height:100%;overflow:auto;white-space:nowrap}\n"] });
723
723
  }
724
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PepCarouselComponent, decorators: [{
724
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PepCarouselComponent, decorators: [{
725
725
  type: Component,
726
726
  args: [{ selector: 'pep-carousel', template: `
727
727
  <div class="carousel-content" #contentRef>
728
728
  <ng-content></ng-content>
729
729
  </div>
730
730
  `, styles: [":host{overflow:hidden;display:block}.carousel-content{height:100%;overflow:auto;white-space:nowrap}\n"] }]
731
- }], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
731
+ }], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
732
732
  type: Inject,
733
733
  args: [ElementRef]
734
734
  }] }, { type: i0.Renderer2, decorators: [{
@@ -737,7 +737,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
737
737
  }] }, { type: undefined, decorators: [{
738
738
  type: Inject,
739
739
  args: [DOCUMENT]
740
- }] }]; }, propDecorators: { _contentRef: [{
740
+ }] }], propDecorators: { _contentRef: [{
741
741
  type: ViewChild,
742
742
  args: ['contentRef', { static: true }]
743
743
  }], _children: [{
@@ -796,11 +796,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
796
796
  }] } });
797
797
 
798
798
  class PepCarouselModule {
799
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PepCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
800
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PepCarouselModule, declarations: [PepCarouselComponent, PepCarouselItemDirective], exports: [PepCarouselComponent, PepCarouselItemDirective] });
801
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PepCarouselModule });
799
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PepCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
800
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: PepCarouselModule, declarations: [PepCarouselComponent, PepCarouselItemDirective], exports: [PepCarouselComponent, PepCarouselItemDirective] });
801
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PepCarouselModule });
802
802
  }
803
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PepCarouselModule, decorators: [{
803
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PepCarouselModule, decorators: [{
804
804
  type: NgModule,
805
805
  args: [{
806
806
  exports: [PepCarouselComponent, PepCarouselItemDirective],