@pepperi-addons/ngx-lib 0.4.2-storybook.1 → 0.5.0-ng15.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 (520) hide show
  1. package/address/address.component.d.ts +1 -1
  2. package/attachment/attachment.component.d.ts +2 -1
  3. package/bread-crumbs/bread-crumbs.component.d.ts +1 -1
  4. package/bread-crumbs/bread-crumbs.model.d.ts +1 -1
  5. package/button/button.component.d.ts +1 -1
  6. package/carousel/carousel-item.directive.d.ts +1 -1
  7. package/carousel/carousel.component.d.ts +1 -1
  8. package/checkbox/checkbox.component.d.ts +2 -1
  9. package/chips/chips.component.d.ts +4 -5
  10. package/chips/chips.component.theme.scss +15 -5
  11. package/chips/chips.model.d.ts +2 -2
  12. package/chips/chips.service.d.ts +0 -3
  13. package/color/color-picker.component.d.ts +1 -1
  14. package/color/color-picker.component.theme.scss +2 -1
  15. package/color/color.component.d.ts +1 -1
  16. package/color/color.model.d.ts +1 -1
  17. package/core/clipboard/clipboard.directive.d.ts +1 -1
  18. package/core/common/directives/auto-width.directive.d.ts +1 -1
  19. package/core/common/directives/base-destroyer.directive.d.ts +10 -0
  20. package/core/common/directives/button-blur.directive.d.ts +1 -1
  21. package/core/common/directives/button-loader.directive.d.ts +1 -1
  22. package/core/common/directives/data-qa.directive.d.ts +1 -1
  23. package/core/common/directives/div-loader.directive.d.ts +1 -1
  24. package/core/common/directives/menu-blur.directive.d.ts +1 -1
  25. package/core/common/directives/prevent-multi-click.directive.d.ts +1 -1
  26. package/core/common/directives/print.directive.d.ts +1 -1
  27. package/core/common/directives/public-api.d.ts +1 -0
  28. package/core/common/pipes/common-pipes.d.ts +5 -2
  29. package/core/common/services/addon.service.d.ts +6 -4
  30. package/core/common/services/file.service.d.ts +1 -1
  31. package/core/common/services/utilities.service.d.ts +4 -4
  32. package/core/customization/customization.model.d.ts +15 -12
  33. package/core/customization/customization.service.d.ts +4 -0
  34. package/core/layout/layout.service.d.ts +1 -1
  35. package/core/layout/rtl.directive.d.ts +2 -2
  36. package/core/portal/attach.directive.d.ts +1 -1
  37. package/core/portal/target.directive.d.ts +1 -1
  38. package/date/date.component.d.ts +4 -2
  39. package/dialog/default-dialog.component.d.ts +1 -1
  40. package/dialog/dialog.component.d.ts +1 -1
  41. package/dialog/dialog.model.d.ts +2 -2
  42. package/draggable-items/draggable-item/draggable-item.component.d.ts +16 -2
  43. package/draggable-items/draggable-items.component.d.ts +4 -7
  44. package/draggable-items/draggable-items.model.d.ts +2 -2
  45. package/draggable-items/draggable-items.module.d.ts +4 -3
  46. package/esm2020/address/address.component.mjs +16 -16
  47. package/esm2020/address/address.module.mjs +5 -5
  48. package/esm2020/attachment/attachment.component.mjs +58 -49
  49. package/esm2020/attachment/attachment.module.mjs +5 -5
  50. package/esm2020/bread-crumbs/bread-crumbs.component.mjs +15 -15
  51. package/esm2020/bread-crumbs/bread-crumbs.module.mjs +5 -5
  52. package/esm2020/button/button.component.mjs +23 -23
  53. package/esm2020/button/button.module.mjs +5 -5
  54. package/esm2020/carousel/carousel-item.directive.mjs +9 -9
  55. package/esm2020/carousel/carousel.component.mjs +52 -52
  56. package/esm2020/carousel/carousel.module.mjs +5 -5
  57. package/esm2020/checkbox/checkbox.component.mjs +40 -31
  58. package/esm2020/checkbox/checkbox.module.mjs +5 -5
  59. package/esm2020/chips/chips.component.mjs +26 -28
  60. package/esm2020/chips/chips.module.mjs +5 -5
  61. package/esm2020/chips/chips.service.mjs +5 -14
  62. package/esm2020/color/color-picker.component.mjs +5 -5
  63. package/esm2020/color/color.component.mjs +5 -5
  64. package/esm2020/color/color.module.mjs +5 -5
  65. package/esm2020/core/clipboard/clipboard.directive.mjs +4 -4
  66. package/esm2020/core/clipboard/clipboard.service.mjs +4 -4
  67. package/esm2020/core/common/directives/auto-width.directive.mjs +4 -4
  68. package/esm2020/core/common/directives/base-destroyer.directive.mjs +22 -0
  69. package/esm2020/core/common/directives/button-blur.directive.mjs +4 -4
  70. package/esm2020/core/common/directives/button-loader.directive.mjs +10 -10
  71. package/esm2020/core/common/directives/data-qa.directive.mjs +4 -4
  72. package/esm2020/core/common/directives/div-loader.directive.mjs +4 -4
  73. package/esm2020/core/common/directives/menu-blur.directive.mjs +4 -4
  74. package/esm2020/core/common/directives/prevent-multi-click.directive.mjs +4 -4
  75. package/esm2020/core/common/directives/print.directive.mjs +4 -4
  76. package/esm2020/core/common/directives/public-api.mjs +2 -1
  77. package/esm2020/core/common/pipes/common-pipes.mjs +47 -37
  78. package/esm2020/core/common/pipes/date-ago.pipe.mjs +4 -4
  79. package/esm2020/core/common/services/addon.service.mjs +36 -12
  80. package/esm2020/core/common/services/color.service.mjs +4 -4
  81. package/esm2020/core/common/services/cookie.service.mjs +4 -4
  82. package/esm2020/core/common/services/data-convertor.service.mjs +6 -6
  83. package/esm2020/core/common/services/file.service.mjs +4 -4
  84. package/esm2020/core/common/services/jwt-helper.service.mjs +4 -4
  85. package/esm2020/core/common/services/session.service.mjs +4 -4
  86. package/esm2020/core/common/services/translate.service.mjs +4 -4
  87. package/esm2020/core/common/services/utilities.service.mjs +10 -10
  88. package/esm2020/core/common/services/validator.service.mjs +4 -4
  89. package/esm2020/core/common/services/window-scrolling.service.mjs +4 -4
  90. package/esm2020/core/customization/customization.model.mjs +40 -5
  91. package/esm2020/core/customization/customization.service.mjs +23 -4
  92. package/esm2020/core/http/interceptors/error.interceptor.mjs +4 -4
  93. package/esm2020/core/http/interceptors/loader.interceptor.mjs +4 -4
  94. package/esm2020/core/http/interceptors/profiler.interceptor.mjs +4 -4
  95. package/esm2020/core/http/services/http.service.mjs +4 -4
  96. package/esm2020/core/http/services/loader.service.mjs +10 -10
  97. package/esm2020/core/layout/layout.service.mjs +12 -12
  98. package/esm2020/core/layout/rtl.directive.mjs +7 -7
  99. package/esm2020/core/portal/attach.directive.mjs +4 -4
  100. package/esm2020/core/portal/portal.service.mjs +4 -4
  101. package/esm2020/core/portal/target.directive.mjs +4 -4
  102. package/esm2020/core/scroll-to/scroll-to.service.mjs +4 -4
  103. package/esm2020/date/date.component.mjs +81 -59
  104. package/esm2020/date/date.model.mjs +7 -7
  105. package/esm2020/date/date.module.mjs +5 -5
  106. package/esm2020/dialog/default-dialog.component.mjs +4 -4
  107. package/esm2020/dialog/dialog.component.mjs +4 -4
  108. package/esm2020/dialog/dialog.module.mjs +5 -5
  109. package/esm2020/dialog/dialog.service.mjs +4 -4
  110. package/esm2020/draggable-items/draggable-item/draggable-item.component.mjs +46 -6
  111. package/esm2020/draggable-items/draggable-items.component.mjs +21 -29
  112. package/esm2020/draggable-items/draggable-items.module.mjs +9 -5
  113. package/esm2020/field-title/field-title.component.mjs +8 -5
  114. package/esm2020/field-title/field-title.module.mjs +5 -5
  115. package/esm2020/files-uploader/files-uploader.component.mjs +12 -12
  116. package/esm2020/files-uploader/files-uploader.module.mjs +5 -5
  117. package/esm2020/form/field-generator.component.mjs +5 -5
  118. package/esm2020/form/form.component.mjs +30 -28
  119. package/esm2020/form/form.module.mjs +5 -5
  120. package/esm2020/form/indicators.component.mjs +4 -4
  121. package/esm2020/form/internal-button.component.mjs +17 -17
  122. package/esm2020/form/internal-carusel.component.mjs +24 -20
  123. package/esm2020/form/internal-carusel.service.mjs +4 -4
  124. package/esm2020/form/internal-field-generator.component.mjs +5 -5
  125. package/esm2020/form/internal-form.component.mjs +30 -28
  126. package/esm2020/form/internal-list.component.mjs +7 -7
  127. package/esm2020/form/internal-menu.component.mjs +6 -8
  128. package/esm2020/form/internal-page.component.mjs +4 -4
  129. package/esm2020/form/internal-page.service.mjs +4 -4
  130. package/esm2020/group-buttons/group-buttons.component.mjs +5 -5
  131. package/esm2020/group-buttons/group-buttons.module.mjs +5 -5
  132. package/esm2020/icon/icon-registry.service.mjs +4 -4
  133. package/esm2020/icon/icon.component.mjs +11 -11
  134. package/esm2020/icon/icon.module.mjs +5 -5
  135. package/esm2020/icon/icon.service.mjs +4 -4
  136. package/esm2020/image/image.component.mjs +52 -43
  137. package/esm2020/image/image.module.mjs +5 -5
  138. package/esm2020/image/image.service.mjs +4 -4
  139. package/esm2020/images-filmstrip/images-filmstrip.component.mjs +26 -25
  140. package/esm2020/images-filmstrip/images-filmstrip.module.mjs +5 -5
  141. package/esm2020/link/link.component.mjs +65 -50
  142. package/esm2020/link/link.module.mjs +5 -5
  143. package/esm2020/link/link.pipes.mjs +4 -4
  144. package/esm2020/list/list-actions.component.mjs +6 -6
  145. package/esm2020/list/list-carousel.component.mjs +20 -20
  146. package/esm2020/list/list-chooser.component.mjs +6 -6
  147. package/esm2020/list/list-pager.component.mjs +12 -12
  148. package/esm2020/list/list-sorting.component.mjs +6 -6
  149. package/esm2020/list/list-total.component.mjs +9 -6
  150. package/esm2020/list/list-views.component.mjs +6 -6
  151. package/esm2020/list/list.component.mjs +151 -72
  152. package/esm2020/list/list.module.mjs +5 -5
  153. package/esm2020/list/list.pipes.mjs +7 -7
  154. package/esm2020/list/virtual-scroller.mjs +58 -58
  155. package/esm2020/menu/menu-item.component.mjs +5 -5
  156. package/esm2020/menu/menu.component.mjs +15 -12
  157. package/esm2020/menu/menu.model.mjs +2 -1
  158. package/esm2020/menu/menu.module.mjs +5 -5
  159. package/esm2020/ngx-lib.module.mjs +5 -5
  160. package/esm2020/page-layout/page-layout.component.mjs +4 -4
  161. package/esm2020/page-layout/page-layout.module.mjs +5 -5
  162. package/esm2020/profile-data-views-list/profile-data-view/profile-data-view.component.mjs +4 -4
  163. package/esm2020/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.mjs +27 -11
  164. package/esm2020/profile-data-views-list/profile-data-views-list.component.mjs +70 -38
  165. package/esm2020/profile-data-views-list/profile-data-views-list.model.mjs +1 -1
  166. package/esm2020/profile-data-views-list/profile-data-views-list.module.mjs +5 -5
  167. package/esm2020/quantity-selector/quantity-selector-validation.directive.mjs +4 -4
  168. package/esm2020/quantity-selector/quantity-selector.component.mjs +102 -89
  169. package/esm2020/quantity-selector/quantity-selector.module.mjs +5 -5
  170. package/esm2020/quantity-selector/quantity-selector.pipes.mjs +4 -4
  171. package/esm2020/query-builder/common/model/legacy.mjs +1 -1
  172. package/esm2020/query-builder/common/model/operator.mjs +72 -62
  173. package/esm2020/query-builder/common/services/output-query.service.mjs +8 -6
  174. package/esm2020/query-builder/common/services/query-structure.service.mjs +37 -5
  175. package/esm2020/query-builder/common/services/type-convertor.service.mjs +10 -10
  176. package/esm2020/query-builder/query-builder-item/query-builder-item.component.mjs +25 -23
  177. package/esm2020/query-builder/query-builder-section/query-builder-section.component.mjs +5 -5
  178. package/esm2020/query-builder/query-builder.component.mjs +19 -19
  179. package/esm2020/query-builder/query-builder.module.mjs +17 -6
  180. package/esm2020/query-builder/query-builder.service.mjs +5 -5
  181. package/esm2020/remote-loader/addon-block-loader.component.mjs +45 -35
  182. package/esm2020/remote-loader/addon-block-loader.service.mjs +8 -5
  183. package/esm2020/remote-loader/remote-loader-element.component.mjs +81 -26
  184. package/esm2020/remote-loader/remote-loader.component.mjs +13 -13
  185. package/esm2020/remote-loader/remote-loader.model.mjs +1 -1
  186. package/esm2020/remote-loader/remote-loader.module.mjs +5 -5
  187. package/esm2020/remote-loader/remote-loader.service.mjs +38 -15
  188. package/esm2020/rich-html-textarea/rich-html-textarea.component.mjs +52 -36
  189. package/esm2020/rich-html-textarea/rich-html-textarea.module.mjs +5 -5
  190. package/esm2020/search/search.component.mjs +35 -35
  191. package/esm2020/search/search.module.mjs +5 -5
  192. package/esm2020/select/select.component.mjs +89 -45
  193. package/esm2020/select/select.module.mjs +5 -5
  194. package/esm2020/select-panel/select-panel.component.mjs +26 -28
  195. package/esm2020/select-panel/select-panel.module.mjs +5 -5
  196. package/esm2020/separator/separator.component.mjs +16 -16
  197. package/esm2020/separator/separator.module.mjs +5 -5
  198. package/esm2020/side-bar/side-bar.component.mjs +29 -15
  199. package/esm2020/side-bar/side-bar.module.mjs +5 -5
  200. package/esm2020/signature/signature-dialog.component.mjs +4 -4
  201. package/esm2020/signature/signature.component.mjs +41 -32
  202. package/esm2020/signature/signature.module.mjs +5 -5
  203. package/esm2020/size-detector/size-detector.component.mjs +15 -13
  204. package/esm2020/size-detector/size-detector.module.mjs +5 -5
  205. package/esm2020/skeleton-loader/public-api.mjs +2 -2
  206. package/esm2020/skeleton-loader/skeleton-loader.component.mjs +5 -5
  207. package/esm2020/skeleton-loader/skeleton-loader.module.mjs +5 -5
  208. package/esm2020/slider/slider.component.mjs +21 -21
  209. package/esm2020/slider/slider.module.mjs +5 -5
  210. package/esm2020/smart-filters/boolean-filter/boolean-filter.component.mjs +4 -4
  211. package/esm2020/smart-filters/common/filter-actions.component.mjs +4 -4
  212. package/esm2020/smart-filters/common/model/base-filter-component.mjs +28 -34
  213. package/esm2020/smart-filters/common/model/field.mjs +7 -7
  214. package/esm2020/smart-filters/common/model/operator.mjs +15 -6
  215. package/esm2020/smart-filters/common/model/type.mjs +1 -1
  216. package/esm2020/smart-filters/date-filter/date-filter.component.mjs +4 -4
  217. package/esm2020/smart-filters/multi-select-filter/multi-select-filter.component.mjs +5 -5
  218. package/esm2020/smart-filters/number-filter/number-filter.component.mjs +4 -4
  219. package/esm2020/smart-filters/smart-filters.component.mjs +19 -19
  220. package/esm2020/smart-filters/smart-filters.module.mjs +5 -5
  221. package/esm2020/smart-filters/text-filter/text-filter.component.mjs +29 -9
  222. package/esm2020/snack-bar/default-snack-bar.component.mjs +4 -4
  223. package/esm2020/snack-bar/snack-bar.component.mjs +4 -4
  224. package/esm2020/snack-bar/snack-bar.module.mjs +5 -5
  225. package/esm2020/snack-bar/snack-bar.service.mjs +4 -4
  226. package/esm2020/textarea/textarea.component.mjs +40 -31
  227. package/esm2020/textarea/textarea.module.mjs +5 -5
  228. package/esm2020/textbox/textbox-validation.directive.mjs +5 -5
  229. package/esm2020/textbox/textbox.component.mjs +171 -115
  230. package/esm2020/textbox/textbox.module.mjs +5 -5
  231. package/esm2020/textbox-icon/textbox-icon.component.mjs +4 -4
  232. package/esm2020/textbox-icon/textbox-icon.module.mjs +5 -5
  233. package/esm2020/top-bar/top-bar.component.mjs +5 -5
  234. package/esm2020/top-bar/top-bar.module.mjs +5 -5
  235. package/fesm2015/pepperi-addons-ngx-lib-address.mjs +19 -19
  236. package/fesm2015/pepperi-addons-ngx-lib-address.mjs.map +1 -1
  237. package/fesm2015/pepperi-addons-ngx-lib-attachment.mjs +61 -52
  238. package/fesm2015/pepperi-addons-ngx-lib-attachment.mjs.map +1 -1
  239. package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.mjs +18 -18
  240. package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.mjs.map +1 -1
  241. package/fesm2015/pepperi-addons-ngx-lib-button.mjs +26 -26
  242. package/fesm2015/pepperi-addons-ngx-lib-button.mjs.map +1 -1
  243. package/fesm2015/pepperi-addons-ngx-lib-carousel.mjs +63 -63
  244. package/fesm2015/pepperi-addons-ngx-lib-carousel.mjs.map +1 -1
  245. package/fesm2015/pepperi-addons-ngx-lib-checkbox.mjs +43 -34
  246. package/fesm2015/pepperi-addons-ngx-lib-checkbox.mjs.map +1 -1
  247. package/fesm2015/pepperi-addons-ngx-lib-chips.mjs +33 -44
  248. package/fesm2015/pepperi-addons-ngx-lib-chips.mjs.map +1 -1
  249. package/fesm2015/pepperi-addons-ngx-lib-color.mjs +12 -12
  250. package/fesm2015/pepperi-addons-ngx-lib-color.mjs.map +1 -1
  251. package/fesm2015/pepperi-addons-ngx-lib-date.mjs +91 -68
  252. package/fesm2015/pepperi-addons-ngx-lib-date.mjs.map +1 -1
  253. package/fesm2015/pepperi-addons-ngx-lib-dialog.mjs +13 -13
  254. package/fesm2015/pepperi-addons-ngx-lib-dialog.mjs.map +1 -1
  255. package/fesm2015/pepperi-addons-ngx-lib-draggable-items.mjs +75 -40
  256. package/fesm2015/pepperi-addons-ngx-lib-draggable-items.mjs.map +1 -1
  257. package/fesm2015/pepperi-addons-ngx-lib-field-title.mjs +11 -8
  258. package/fesm2015/pepperi-addons-ngx-lib-field-title.mjs.map +1 -1
  259. package/fesm2015/pepperi-addons-ngx-lib-files-uploader.mjs +15 -15
  260. package/fesm2015/pepperi-addons-ngx-lib-files-uploader.mjs.map +1 -1
  261. package/fesm2015/pepperi-addons-ngx-lib-form.mjs +132 -126
  262. package/fesm2015/pepperi-addons-ngx-lib-form.mjs.map +1 -1
  263. package/fesm2015/pepperi-addons-ngx-lib-group-buttons.mjs +8 -8
  264. package/fesm2015/pepperi-addons-ngx-lib-group-buttons.mjs.map +1 -1
  265. package/fesm2015/pepperi-addons-ngx-lib-icon.mjs +20 -20
  266. package/fesm2015/pepperi-addons-ngx-lib-icon.mjs.map +1 -1
  267. package/fesm2015/pepperi-addons-ngx-lib-image.mjs +58 -49
  268. package/fesm2015/pepperi-addons-ngx-lib-image.mjs.map +1 -1
  269. package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.mjs +29 -28
  270. package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.mjs.map +1 -1
  271. package/fesm2015/pepperi-addons-ngx-lib-link.mjs +71 -56
  272. package/fesm2015/pepperi-addons-ngx-lib-link.mjs.map +1 -1
  273. package/fesm2015/pepperi-addons-ngx-lib-list.mjs +276 -192
  274. package/fesm2015/pepperi-addons-ngx-lib-list.mjs.map +1 -1
  275. package/fesm2015/pepperi-addons-ngx-lib-menu.mjs +23 -19
  276. package/fesm2015/pepperi-addons-ngx-lib-menu.mjs.map +1 -1
  277. package/fesm2015/pepperi-addons-ngx-lib-page-layout.mjs +7 -7
  278. package/fesm2015/pepperi-addons-ngx-lib-page-layout.mjs.map +1 -1
  279. package/fesm2015/pepperi-addons-ngx-lib-profile-data-views-list.mjs +102 -54
  280. package/fesm2015/pepperi-addons-ngx-lib-profile-data-views-list.mjs.map +1 -1
  281. package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.mjs +110 -97
  282. package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.mjs.map +1 -1
  283. package/fesm2015/pepperi-addons-ngx-lib-query-builder.mjs +191 -132
  284. package/fesm2015/pepperi-addons-ngx-lib-query-builder.mjs.map +1 -1
  285. package/fesm2015/pepperi-addons-ngx-lib-remote-loader.mjs +197 -108
  286. package/fesm2015/pepperi-addons-ngx-lib-remote-loader.mjs.map +1 -1
  287. package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.mjs +55 -39
  288. package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.mjs.map +1 -1
  289. package/fesm2015/pepperi-addons-ngx-lib-search.mjs +38 -38
  290. package/fesm2015/pepperi-addons-ngx-lib-search.mjs.map +1 -1
  291. package/fesm2015/pepperi-addons-ngx-lib-select-panel.mjs +29 -31
  292. package/fesm2015/pepperi-addons-ngx-lib-select-panel.mjs.map +1 -1
  293. package/fesm2015/pepperi-addons-ngx-lib-select.mjs +92 -48
  294. package/fesm2015/pepperi-addons-ngx-lib-select.mjs.map +1 -1
  295. package/fesm2015/pepperi-addons-ngx-lib-separator.mjs +19 -19
  296. package/fesm2015/pepperi-addons-ngx-lib-separator.mjs.map +1 -1
  297. package/fesm2015/pepperi-addons-ngx-lib-side-bar.mjs +32 -18
  298. package/fesm2015/pepperi-addons-ngx-lib-side-bar.mjs.map +1 -1
  299. package/fesm2015/pepperi-addons-ngx-lib-signature.mjs +48 -38
  300. package/fesm2015/pepperi-addons-ngx-lib-signature.mjs.map +1 -1
  301. package/fesm2015/pepperi-addons-ngx-lib-size-detector.mjs +18 -16
  302. package/fesm2015/pepperi-addons-ngx-lib-size-detector.mjs.map +1 -1
  303. package/fesm2015/pepperi-addons-ngx-lib-skeleton-loader.mjs +9 -9
  304. package/fesm2015/pepperi-addons-ngx-lib-skeleton-loader.mjs.map +1 -1
  305. package/fesm2015/pepperi-addons-ngx-lib-slider.mjs +24 -24
  306. package/fesm2015/pepperi-addons-ngx-lib-slider.mjs.map +1 -1
  307. package/fesm2015/pepperi-addons-ngx-lib-smart-filters.mjs +114 -91
  308. package/fesm2015/pepperi-addons-ngx-lib-smart-filters.mjs.map +1 -1
  309. package/fesm2015/pepperi-addons-ngx-lib-snack-bar.mjs +13 -13
  310. package/fesm2015/pepperi-addons-ngx-lib-snack-bar.mjs.map +1 -1
  311. package/fesm2015/pepperi-addons-ngx-lib-textarea.mjs +43 -34
  312. package/fesm2015/pepperi-addons-ngx-lib-textarea.mjs.map +1 -1
  313. package/fesm2015/pepperi-addons-ngx-lib-textbox-icon.mjs +7 -7
  314. package/fesm2015/pepperi-addons-ngx-lib-textbox-icon.mjs.map +1 -1
  315. package/fesm2015/pepperi-addons-ngx-lib-textbox.mjs +181 -123
  316. package/fesm2015/pepperi-addons-ngx-lib-textbox.mjs.map +1 -1
  317. package/fesm2015/pepperi-addons-ngx-lib-top-bar.mjs +8 -8
  318. package/fesm2015/pepperi-addons-ngx-lib-top-bar.mjs.map +1 -1
  319. package/fesm2015/pepperi-addons-ngx-lib.mjs +760 -653
  320. package/fesm2015/pepperi-addons-ngx-lib.mjs.map +1 -1
  321. package/fesm2020/pepperi-addons-ngx-lib-address.mjs +19 -19
  322. package/fesm2020/pepperi-addons-ngx-lib-address.mjs.map +1 -1
  323. package/fesm2020/pepperi-addons-ngx-lib-attachment.mjs +61 -52
  324. package/fesm2020/pepperi-addons-ngx-lib-attachment.mjs.map +1 -1
  325. package/fesm2020/pepperi-addons-ngx-lib-bread-crumbs.mjs +18 -18
  326. package/fesm2020/pepperi-addons-ngx-lib-bread-crumbs.mjs.map +1 -1
  327. package/fesm2020/pepperi-addons-ngx-lib-button.mjs +26 -26
  328. package/fesm2020/pepperi-addons-ngx-lib-button.mjs.map +1 -1
  329. package/fesm2020/pepperi-addons-ngx-lib-carousel.mjs +63 -63
  330. package/fesm2020/pepperi-addons-ngx-lib-carousel.mjs.map +1 -1
  331. package/fesm2020/pepperi-addons-ngx-lib-checkbox.mjs +43 -34
  332. package/fesm2020/pepperi-addons-ngx-lib-checkbox.mjs.map +1 -1
  333. package/fesm2020/pepperi-addons-ngx-lib-chips.mjs +33 -44
  334. package/fesm2020/pepperi-addons-ngx-lib-chips.mjs.map +1 -1
  335. package/fesm2020/pepperi-addons-ngx-lib-color.mjs +12 -12
  336. package/fesm2020/pepperi-addons-ngx-lib-color.mjs.map +1 -1
  337. package/fesm2020/pepperi-addons-ngx-lib-date.mjs +90 -68
  338. package/fesm2020/pepperi-addons-ngx-lib-date.mjs.map +1 -1
  339. package/fesm2020/pepperi-addons-ngx-lib-dialog.mjs +13 -13
  340. package/fesm2020/pepperi-addons-ngx-lib-dialog.mjs.map +1 -1
  341. package/fesm2020/pepperi-addons-ngx-lib-draggable-items.mjs +74 -39
  342. package/fesm2020/pepperi-addons-ngx-lib-draggable-items.mjs.map +1 -1
  343. package/fesm2020/pepperi-addons-ngx-lib-field-title.mjs +11 -8
  344. package/fesm2020/pepperi-addons-ngx-lib-field-title.mjs.map +1 -1
  345. package/fesm2020/pepperi-addons-ngx-lib-files-uploader.mjs +15 -15
  346. package/fesm2020/pepperi-addons-ngx-lib-files-uploader.mjs.map +1 -1
  347. package/fesm2020/pepperi-addons-ngx-lib-form.mjs +132 -126
  348. package/fesm2020/pepperi-addons-ngx-lib-form.mjs.map +1 -1
  349. package/fesm2020/pepperi-addons-ngx-lib-group-buttons.mjs +8 -8
  350. package/fesm2020/pepperi-addons-ngx-lib-group-buttons.mjs.map +1 -1
  351. package/fesm2020/pepperi-addons-ngx-lib-icon.mjs +20 -20
  352. package/fesm2020/pepperi-addons-ngx-lib-icon.mjs.map +1 -1
  353. package/fesm2020/pepperi-addons-ngx-lib-image.mjs +58 -49
  354. package/fesm2020/pepperi-addons-ngx-lib-image.mjs.map +1 -1
  355. package/fesm2020/pepperi-addons-ngx-lib-images-filmstrip.mjs +29 -28
  356. package/fesm2020/pepperi-addons-ngx-lib-images-filmstrip.mjs.map +1 -1
  357. package/fesm2020/pepperi-addons-ngx-lib-link.mjs +71 -56
  358. package/fesm2020/pepperi-addons-ngx-lib-link.mjs.map +1 -1
  359. package/fesm2020/pepperi-addons-ngx-lib-list.mjs +274 -192
  360. package/fesm2020/pepperi-addons-ngx-lib-list.mjs.map +1 -1
  361. package/fesm2020/pepperi-addons-ngx-lib-menu.mjs +23 -19
  362. package/fesm2020/pepperi-addons-ngx-lib-menu.mjs.map +1 -1
  363. package/fesm2020/pepperi-addons-ngx-lib-page-layout.mjs +7 -7
  364. package/fesm2020/pepperi-addons-ngx-lib-page-layout.mjs.map +1 -1
  365. package/fesm2020/pepperi-addons-ngx-lib-profile-data-views-list.mjs +102 -54
  366. package/fesm2020/pepperi-addons-ngx-lib-profile-data-views-list.mjs.map +1 -1
  367. package/fesm2020/pepperi-addons-ngx-lib-quantity-selector.mjs +110 -97
  368. package/fesm2020/pepperi-addons-ngx-lib-quantity-selector.mjs.map +1 -1
  369. package/fesm2020/pepperi-addons-ngx-lib-query-builder.mjs +187 -131
  370. package/fesm2020/pepperi-addons-ngx-lib-query-builder.mjs.map +1 -1
  371. package/fesm2020/pepperi-addons-ngx-lib-remote-loader.mjs +184 -93
  372. package/fesm2020/pepperi-addons-ngx-lib-remote-loader.mjs.map +1 -1
  373. package/fesm2020/pepperi-addons-ngx-lib-rich-html-textarea.mjs +55 -39
  374. package/fesm2020/pepperi-addons-ngx-lib-rich-html-textarea.mjs.map +1 -1
  375. package/fesm2020/pepperi-addons-ngx-lib-search.mjs +38 -38
  376. package/fesm2020/pepperi-addons-ngx-lib-search.mjs.map +1 -1
  377. package/fesm2020/pepperi-addons-ngx-lib-select-panel.mjs +29 -31
  378. package/fesm2020/pepperi-addons-ngx-lib-select-panel.mjs.map +1 -1
  379. package/fesm2020/pepperi-addons-ngx-lib-select.mjs +92 -48
  380. package/fesm2020/pepperi-addons-ngx-lib-select.mjs.map +1 -1
  381. package/fesm2020/pepperi-addons-ngx-lib-separator.mjs +19 -19
  382. package/fesm2020/pepperi-addons-ngx-lib-separator.mjs.map +1 -1
  383. package/fesm2020/pepperi-addons-ngx-lib-side-bar.mjs +32 -18
  384. package/fesm2020/pepperi-addons-ngx-lib-side-bar.mjs.map +1 -1
  385. package/fesm2020/pepperi-addons-ngx-lib-signature.mjs +47 -38
  386. package/fesm2020/pepperi-addons-ngx-lib-signature.mjs.map +1 -1
  387. package/fesm2020/pepperi-addons-ngx-lib-size-detector.mjs +18 -16
  388. package/fesm2020/pepperi-addons-ngx-lib-size-detector.mjs.map +1 -1
  389. package/fesm2020/pepperi-addons-ngx-lib-skeleton-loader.mjs +9 -9
  390. package/fesm2020/pepperi-addons-ngx-lib-skeleton-loader.mjs.map +1 -1
  391. package/fesm2020/pepperi-addons-ngx-lib-slider.mjs +24 -24
  392. package/fesm2020/pepperi-addons-ngx-lib-slider.mjs.map +1 -1
  393. package/fesm2020/pepperi-addons-ngx-lib-smart-filters.mjs +114 -91
  394. package/fesm2020/pepperi-addons-ngx-lib-smart-filters.mjs.map +1 -1
  395. package/fesm2020/pepperi-addons-ngx-lib-snack-bar.mjs +13 -13
  396. package/fesm2020/pepperi-addons-ngx-lib-snack-bar.mjs.map +1 -1
  397. package/fesm2020/pepperi-addons-ngx-lib-textarea.mjs +43 -34
  398. package/fesm2020/pepperi-addons-ngx-lib-textarea.mjs.map +1 -1
  399. package/fesm2020/pepperi-addons-ngx-lib-textbox-icon.mjs +7 -7
  400. package/fesm2020/pepperi-addons-ngx-lib-textbox-icon.mjs.map +1 -1
  401. package/fesm2020/pepperi-addons-ngx-lib-textbox.mjs +179 -123
  402. package/fesm2020/pepperi-addons-ngx-lib-textbox.mjs.map +1 -1
  403. package/fesm2020/pepperi-addons-ngx-lib-top-bar.mjs +8 -8
  404. package/fesm2020/pepperi-addons-ngx-lib-top-bar.mjs.map +1 -1
  405. package/fesm2020/pepperi-addons-ngx-lib.mjs +780 -674
  406. package/fesm2020/pepperi-addons-ngx-lib.mjs.map +1 -1
  407. package/field-title/field-title.component.d.ts +2 -1
  408. package/files-uploader/files-uploader.component.d.ts +1 -1
  409. package/form/field-generator.component.d.ts +1 -1
  410. package/form/form.component.d.ts +1 -1
  411. package/form/indicators.component.d.ts +1 -1
  412. package/form/internal-button.component.d.ts +1 -1
  413. package/form/internal-carusel.component.d.ts +2 -1
  414. package/form/internal-field-generator.component.d.ts +1 -1
  415. package/form/internal-form.component.d.ts +1 -1
  416. package/form/internal-list.component.d.ts +2 -2
  417. package/form/internal-menu.component.d.ts +1 -2
  418. package/form/internal-page.component.d.ts +1 -1
  419. package/group-buttons/group-buttons.component.d.ts +2 -2
  420. package/icon/icon-generated.model.d.ts +2 -2
  421. package/icon/icon.component.d.ts +1 -1
  422. package/image/image.component.d.ts +2 -1
  423. package/image/image.component.theme.scss +4 -2
  424. package/images-filmstrip/images-filmstrip.component.d.ts +1 -1
  425. package/link/link.component.d.ts +4 -1
  426. package/list/list-actions.component.d.ts +1 -1
  427. package/list/list-carousel.component.d.ts +2 -2
  428. package/list/list-chooser.component.d.ts +1 -1
  429. package/list/list-pager.component.d.ts +1 -1
  430. package/list/list-sorting.component.d.ts +1 -1
  431. package/list/list-total.component.d.ts +2 -1
  432. package/list/list-views.component.d.ts +2 -2
  433. package/list/list.component.d.ts +9 -3
  434. package/list/list.model.d.ts +6 -6
  435. package/list/virtual-scroller.d.ts +2 -2
  436. package/menu/menu-item.component.d.ts +1 -1
  437. package/menu/menu.component.d.ts +2 -1
  438. package/menu/menu.model.d.ts +4 -3
  439. package/package.json +11 -11
  440. package/page-layout/page-layout.component.d.ts +1 -1
  441. package/profile-data-views-list/profile-data-view/profile-data-view.component.d.ts +4 -4
  442. package/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.d.ts +5 -4
  443. package/profile-data-views-list/profile-data-views-list.component.d.ts +13 -10
  444. package/profile-data-views-list/profile-data-views-list.model.d.ts +8 -0
  445. package/quantity-selector/quantity-selector-validation.directive.d.ts +1 -1
  446. package/quantity-selector/quantity-selector.component.d.ts +8 -9
  447. package/quantity-selector/quantity-selector.component.theme.scss +12 -6
  448. package/query-builder/common/model/legacy.d.ts +2 -0
  449. package/query-builder/common/model/operator.d.ts +11 -1
  450. package/query-builder/common/services/query-structure.service.d.ts +1 -0
  451. package/query-builder/query-builder-item/query-builder-item.component.d.ts +4 -2
  452. package/query-builder/query-builder-section/query-builder-section.component.d.ts +1 -1
  453. package/query-builder/query-builder.component.d.ts +1 -1
  454. package/query-builder/query-builder.module.d.ts +7 -3
  455. package/remote-loader/addon-block-loader.component.d.ts +4 -2
  456. package/remote-loader/remote-loader-element.component.d.ts +9 -2
  457. package/remote-loader/remote-loader.component.d.ts +1 -1
  458. package/remote-loader/remote-loader.model.d.ts +3 -2
  459. package/remote-loader/remote-loader.service.d.ts +2 -0
  460. package/rich-html-textarea/rich-html-textarea.component.d.ts +4 -1
  461. package/rich-html-textarea/rich-html-textarea.component.theme.scss +8 -5
  462. package/search/search.component.d.ts +1 -1
  463. package/search/search.model.d.ts +4 -4
  464. package/select/select.component.d.ts +9 -1
  465. package/select/select.component.theme.scss +22 -11
  466. package/select-panel/select-panel.component.d.ts +1 -2
  467. package/select-panel/select-panel.component.theme.scss +0 -2
  468. package/separator/separator.component.d.ts +1 -1
  469. package/side-bar/side-bar.component.d.ts +4 -1
  470. package/side-bar/side-bar.model.d.ts +1 -1
  471. package/signature/signature-dialog.component.d.ts +2 -2
  472. package/signature/signature.component.d.ts +2 -1
  473. package/size-detector/size-detector.component.d.ts +1 -1
  474. package/skeleton-loader/skeleton-loader.component.d.ts +4 -4
  475. package/slider/slider.component.d.ts +1 -1
  476. package/slider/slider.component.theme.scss +15 -5
  477. package/smart-filters/boolean-filter/boolean-filter.component.d.ts +4 -1
  478. package/smart-filters/common/filter-actions.component.d.ts +1 -1
  479. package/smart-filters/common/model/base-filter-component.d.ts +3 -5
  480. package/smart-filters/common/model/operator.d.ts +3 -0
  481. package/smart-filters/common/model/type.d.ts +4 -4
  482. package/smart-filters/date-filter/date-filter.component.d.ts +4 -1
  483. package/smart-filters/multi-select-filter/multi-select-filter.component.d.ts +4 -1
  484. package/smart-filters/number-filter/number-filter.component.d.ts +4 -1
  485. package/smart-filters/smart-filters.component.d.ts +1 -1
  486. package/smart-filters/text-filter/text-filter.component.d.ts +5 -1
  487. package/snack-bar/default-snack-bar.component.d.ts +1 -1
  488. package/snack-bar/snack-bar.component.d.ts +1 -1
  489. package/src/assets/i18n/ar.ngx-lib.json +180 -0
  490. package/src/assets/i18n/de.ngx-lib.json +106 -4
  491. package/src/assets/i18n/en.ngx-lib.json +10 -3
  492. package/src/assets/i18n/es.ngx-lib.json +113 -11
  493. package/src/assets/i18n/fr.ngx-lib.json +105 -4
  494. package/src/assets/i18n/he.ngx-lib.json +105 -4
  495. package/src/assets/i18n/it.ngx-lib.json +114 -13
  496. package/src/assets/i18n/ja.ngx-lib.json +105 -4
  497. package/src/assets/i18n/pl.ngx-lib.json +105 -4
  498. package/src/assets/i18n/pt.ngx-lib.json +105 -4
  499. package/src/assets/i18n/sr.ngx-lib.json +180 -0
  500. package/src/assets/i18n/zh.ngx-lib.json +105 -2
  501. package/src/core/style/abstracts/mixins.scss +157 -37
  502. package/src/core/style/abstracts/variables.scss +10 -1
  503. package/src/core/style/base/Spacing.stories.mdx +22 -22
  504. package/src/core/style/base/base.scss +219 -117
  505. package/src/core/style/base/typography.scss +2 -1
  506. package/src/core/style/components/button.scss +52 -19
  507. package/src/core/style/components/checkbox.scss +132 -128
  508. package/src/core/style/components/file.scss +13 -9
  509. package/src/core/style/components/general.scss +149 -65
  510. package/src/core/style/components/radio-button.scss +50 -23
  511. package/src/core/style/components/textarea.scss +69 -30
  512. package/textarea/textarea.component.d.ts +2 -1
  513. package/textbox/textbox-validation.directive.d.ts +1 -1
  514. package/textbox/textbox.component.d.ts +4 -1
  515. package/textbox-icon/textbox-icon.component.d.ts +1 -1
  516. package/theming-offline.scss +2 -1
  517. package/theming.scss +7 -2
  518. package/top-bar/top-bar.component.d.ts +1 -1
  519. package/top-bar/top-bar.model.d.ts +1 -1
  520. package/src/assets/images/sail-away.jpg +0 -0
@@ -5,17 +5,16 @@ import * as i3$1 from '@angular/common/http';
5
5
  import { HttpResponse, HTTP_INTERCEPTORS, HttpHeaders, HttpClientModule } from '@angular/common/http';
6
6
  import * as i3 from '@angular/forms';
7
7
  import { FormControl, Validators, ReactiveFormsModule, FormBuilder } from '@angular/forms';
8
- import { throwError, BehaviorSubject, Subject } from 'rxjs';
9
- import { catchError, filter, distinctUntilChanged, finalize, tap } from 'rxjs/operators';
8
+ import { throwError, BehaviorSubject, Subject, takeUntil } from 'rxjs';
9
+ import { catchError, debounceTime, filter, distinctUntilChanged, finalize, tap } from 'rxjs/operators';
10
10
  import * as i1 from '@ngx-translate/core';
11
11
  import { TranslateModule } from '@ngx-translate/core';
12
- import * as i1$1 from '@angular/platform-browser';
13
12
  import { coerceNumberProperty, _isNumberValue } from '@angular/cdk/coercion';
13
+ import * as i1$1 from '@angular/platform-browser';
14
14
  import { __awaiter } from 'tslib';
15
15
  import { createCustomElement } from '@angular/elements';
16
16
  import * as i6 from '@angular/router';
17
17
  import { Router } from '@angular/router';
18
- import { connectRouter } from '@angular-architects/module-federation-tools';
19
18
  import { MultiTranslateHttpLoader } from 'ngx-translate-multi-http-loader';
20
19
 
21
20
  // import { ToastrService } from 'ngx-toastr';
@@ -35,13 +34,18 @@ class PepErrorInterceptor {
35
34
  }));
36
35
  }
37
36
  }
38
- PepErrorInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepErrorInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
39
- PepErrorInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepErrorInterceptor });
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepErrorInterceptor, decorators: [{
37
+ PepErrorInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepErrorInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
38
+ PepErrorInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepErrorInterceptor });
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepErrorInterceptor, decorators: [{
41
40
  type: Injectable
42
41
  }] });
43
42
 
44
43
  class PepLoaderService {
44
+ get onChanged$() {
45
+ return this.showLoaderSubject
46
+ .asObservable()
47
+ .pipe(debounceTime(500), filter(v => v !== undefined), distinctUntilChanged());
48
+ }
45
49
  constructor() {
46
50
  this.counter = 0;
47
51
  this.showLoaderSubject = new BehaviorSubject(undefined);
@@ -50,11 +54,6 @@ class PepLoaderService {
50
54
  this.showLoaderChanged(show);
51
55
  });
52
56
  }
53
- get onChanged$() {
54
- return this.showLoaderSubject
55
- .asObservable()
56
- .pipe(filter(v => v !== undefined), distinctUntilChanged());
57
- }
58
57
  showLoaderChanged(show) {
59
58
  const eventData = {
60
59
  detail: {
@@ -78,9 +77,9 @@ class PepLoaderService {
78
77
  }
79
78
  }
80
79
  }
81
- PepLoaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
82
- PepLoaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLoaderService, providedIn: 'root' });
83
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLoaderService, decorators: [{
80
+ PepLoaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
81
+ PepLoaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLoaderService, providedIn: 'root' });
82
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLoaderService, decorators: [{
84
83
  type: Injectable,
85
84
  args: [{
86
85
  providedIn: 'root',
@@ -108,9 +107,9 @@ class PepLoaderInterceptor {
108
107
  // }));
109
108
  }
110
109
  }
111
- PepLoaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLoaderInterceptor, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
112
- PepLoaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLoaderInterceptor });
113
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLoaderInterceptor, decorators: [{
110
+ PepLoaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLoaderInterceptor, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
111
+ PepLoaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLoaderInterceptor });
112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLoaderInterceptor, decorators: [{
114
113
  type: Injectable
115
114
  }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
116
115
 
@@ -136,9 +135,9 @@ class PepProfilerInterceptor {
136
135
  }));
137
136
  }
138
137
  }
139
- PepProfilerInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepProfilerInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
140
- PepProfilerInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepProfilerInterceptor });
141
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepProfilerInterceptor, decorators: [{
138
+ PepProfilerInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepProfilerInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
139
+ PepProfilerInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepProfilerInterceptor });
140
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepProfilerInterceptor, decorators: [{
142
141
  type: Injectable
143
142
  }] });
144
143
 
@@ -165,9 +164,9 @@ const httpInterceptorProviders = [
165
164
  // will be copied to the ClipboardService and a (clipboardCopy) event will be emitted.
166
165
  class PepClipboardDirective {
167
166
  }
168
- PepClipboardDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepClipboardDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
169
- PepClipboardDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepClipboardDirective, selector: "[pepClipboard]", inputs: { value: ["clipboard", "value"] }, outputs: { copyEvent: "clipboardCopy", errorEvent: "clipboardError" }, host: { listeners: { "click": "copyToClipboard()" } }, ngImport: i0 });
170
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepClipboardDirective, decorators: [{
167
+ PepClipboardDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepClipboardDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
168
+ PepClipboardDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepClipboardDirective, selector: "[pepClipboard]", inputs: { value: ["clipboard", "value"] }, outputs: { copyEvent: "clipboardCopy", errorEvent: "clipboardError" }, host: { listeners: { "click": "copyToClipboard()" } }, ngImport: i0 });
169
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepClipboardDirective, decorators: [{
171
170
  type: Directive,
172
171
  args: [{
173
172
  selector: '[pepClipboard]',
@@ -213,6 +212,14 @@ var PepScreenSizeType;
213
212
  })(PepScreenSizeType || (PepScreenSizeType = {}));
214
213
  // export type PepScreenSizeType = 'xl' | 'lg' | 'md' | 'sm' | 'xs';
215
214
  class PepLayoutService {
215
+ get onResize$() {
216
+ return this.resizeSubject.asObservable().pipe(distinctUntilChanged());
217
+ }
218
+ get onMouseOver$() {
219
+ return this.deviceHasMouseSubject
220
+ .asObservable()
221
+ .pipe(distinctUntilChanged());
222
+ }
216
223
  constructor(translate = null) {
217
224
  this.translate = translate;
218
225
  this.documentMouseoverListener = (event) => {
@@ -225,14 +232,6 @@ class PepLayoutService {
225
232
  document.addEventListener('mouseover', this.documentMouseoverListener, false);
226
233
  // document.addEventListener('touchstart', this._documentTouchstartListener, false);
227
234
  }
228
- get onResize$() {
229
- return this.resizeSubject.asObservable().pipe(distinctUntilChanged());
230
- }
231
- get onMouseOver$() {
232
- return this.deviceHasMouseSubject
233
- .asObservable()
234
- .pipe(distinctUntilChanged());
235
- }
236
235
  // private _documentTouchstartListener = (event: TouchEvent) => {
237
236
  // debugger;
238
237
  // this.isTouchDevice = true;
@@ -332,9 +331,9 @@ class PepLayoutService {
332
331
  return isRtl;
333
332
  }
334
333
  }
335
- PepLayoutService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutService, deps: [{ token: i1.TranslateService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
336
- PepLayoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutService, providedIn: 'root' });
337
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutService, decorators: [{
334
+ PepLayoutService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLayoutService, deps: [{ token: i1.TranslateService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
335
+ PepLayoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLayoutService, providedIn: 'root' });
336
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLayoutService, decorators: [{
338
337
  type: Injectable,
339
338
  args: [{
340
339
  providedIn: 'root',
@@ -358,9 +357,9 @@ class PepRtlClassDirective {
358
357
  }
359
358
  }
360
359
  }
361
- PepRtlClassDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepRtlClassDirective, deps: [{ token: PepLayoutService }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
362
- PepRtlClassDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepRtlClassDirective, selector: "[pepRtlClass]", ngImport: i0 });
363
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepRtlClassDirective, decorators: [{
360
+ PepRtlClassDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepRtlClassDirective, deps: [{ token: PepLayoutService }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
361
+ PepRtlClassDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepRtlClassDirective, selector: "[pepRtlClass]", ngImport: i0 });
362
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepRtlClassDirective, decorators: [{
364
363
  type: Directive,
365
364
  args: [{
366
365
  selector: '[pepRtlClass]',
@@ -377,455 +376,151 @@ class PepRtlDirectionDirective {
377
376
  this.renderer.setAttribute(this.element.nativeElement, 'dir', isRtl ? 'rtl' : 'ltr');
378
377
  }
379
378
  }
380
- PepRtlDirectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepRtlDirectionDirective, deps: [{ token: PepLayoutService }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
381
- PepRtlDirectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepRtlDirectionDirective, selector: "[pepRtlDirection]", ngImport: i0 });
382
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepRtlDirectionDirective, decorators: [{
379
+ PepRtlDirectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepRtlDirectionDirective, deps: [{ token: PepLayoutService }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
380
+ PepRtlDirectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepRtlDirectionDirective, selector: "[pepRtlDirection]", ngImport: i0 });
381
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepRtlDirectionDirective, decorators: [{
383
382
  type: Directive,
384
383
  args: [{
385
384
  selector: '[pepRtlDirection]',
386
385
  }]
387
386
  }], ctorParameters: function () { return [{ type: PepLayoutService }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; } });
388
387
 
389
- class PepCapitalizePipe {
390
- transform(value) {
391
- if (value) {
392
- return value.charAt(0).toUpperCase() + value.slice(1);
393
- }
394
- return value;
388
+ class PepUtilitiesService {
389
+ constructor(translate = null) {
390
+ var _a;
391
+ this.translate = translate;
392
+ this.culture = 'en-US';
393
+ this.culture = ((_a = this.translate) === null || _a === void 0 ? void 0 : _a.getBrowserCultureLang()) || 'en-US';
394
+ // try {
395
+ // import(`@angular/common/locales/global/${this.culture}`);
396
+ // } catch {}
395
397
  }
396
- }
397
- PepCapitalizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepCapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
398
- PepCapitalizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepCapitalizePipe, name: "pepCapitalize" });
399
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepCapitalizePipe, decorators: [{
400
- type: Pipe,
401
- args: [{ name: 'pepCapitalize' }]
402
- }] });
403
- class PepEncodePipe {
404
- transform(value) {
405
- if (value) {
406
- const v = btoa(value);
407
- return v;
398
+ prepareNumberToFormat(value, fallbackValue = 0) {
399
+ // If the decimal separator is ',' change it to '.'
400
+ if ((value === null || value === void 0 ? void 0 : value.length) > 0) {
401
+ // If the decimal separator is ',' change it to '.' for let the formatting works.
402
+ value = this.changeDecimalSeparatorWhenItsComma(value);
403
+ // console.log('coerceNumberProperty after change decimal separator value is', value);
408
404
  }
409
- return value;
405
+ return coerceNumberProperty(value, fallbackValue);
410
406
  }
411
- }
412
- PepEncodePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepEncodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
413
- PepEncodePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepEncodePipe, name: "pepEncode" });
414
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepEncodePipe, decorators: [{
415
- type: Pipe,
416
- args: [{ name: 'pepEncode' }]
417
- }] });
418
- class PepEscapePipe {
419
- transform(value) {
420
- if (value) {
421
- const v = escape(value);
422
- return v;
407
+ // adapted from https://github.com/sindresorhus/parse-ms.
408
+ // moved to internal function because parse-ms is now pure ESM.
409
+ parseMs(milliseconds) {
410
+ if (typeof milliseconds !== 'number') {
411
+ throw new TypeError('Expected a number');
423
412
  }
424
- return value;
413
+ return {
414
+ days: Math.trunc(milliseconds / 86400000),
415
+ hours: Math.trunc(milliseconds / 3600000) % 24,
416
+ minutes: Math.trunc(milliseconds / 60000) % 60,
417
+ seconds: Math.trunc(milliseconds / 1000) % 60,
418
+ milliseconds: Math.trunc(milliseconds) % 1000
419
+ };
425
420
  }
426
- }
427
- PepEscapePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepEscapePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
428
- PepEscapePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepEscapePipe, name: "pepEscape" });
429
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepEscapePipe, decorators: [{
430
- type: Pipe,
431
- args: [{ name: 'pepEscape' }]
432
- }] });
433
- class PepReplaceLineBreaksPipe {
434
- transform(value) {
435
- const newValue = value.replace(/(<br\ ?\/?>)/g, ' ');
436
- return newValue;
421
+ // adapted from https://github.com/rafaelrinaldi/add-zero.
422
+ // moved to internal function b/c addZero is unmaintained (7+ years).
423
+ // stripped out negative sign logic since we're already doing it elsewhere.
424
+ addZero(value, digits = 2) {
425
+ digits = digits || 2;
426
+ let str = value.toString();
427
+ let size = 0;
428
+ size = digits - str.length + 1;
429
+ str = new Array(size).join('0').concat(str);
430
+ return str;
437
431
  }
438
- }
439
- PepReplaceLineBreaksPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepReplaceLineBreaksPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
440
- PepReplaceLineBreaksPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepReplaceLineBreaksPipe, name: "pepReplaceLineBreaks" });
441
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepReplaceLineBreaksPipe, decorators: [{
442
- type: Pipe,
443
- args: [{ name: 'pepReplaceLineBreaks' }]
444
- }] });
445
- class PepDateFormatterPipe {
446
- transform(value, culture, showTime = false) {
447
- let res = '';
448
- value = new Date(value);
449
- if (value) {
450
- res = value.toLocaleDateString(culture || 'en-US');
451
- if (showTime) {
452
- res +=
453
- ' ' +
454
- value.toLocaleTimeString(culture || 'en-US', {
455
- hour: '2-digit',
456
- minute: '2-digit',
457
- });
458
- }
432
+ isCurrencyShouldBeOnRight(currencySymbol) {
433
+ let res = false;
434
+ if (currencySymbol == "" ||
435
+ currencySymbol == "" ||
436
+ currencySymbol == "Ft" ||
437
+ currencySymbol == "Kč" ||
438
+ currencySymbol == "руб" ||
439
+ currencySymbol == "zł" ||
440
+ currencySymbol == "kr.") {
441
+ res = true;
459
442
  }
460
443
  return res;
461
444
  }
462
- }
463
- PepDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDateFormatterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
464
- PepDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepDateFormatterPipe, name: "pepDateFormatter" });
465
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDateFormatterPipe, decorators: [{
466
- type: Pipe,
467
- args: [{ name: 'pepDateFormatter' }]
468
- }] });
469
- class PepDateStringFormatterPipe {
470
- transform(value, culture, showTime = false) {
471
- let res = '';
472
- const tmpDate = new Date(value);
473
- if (value) {
474
- res = tmpDate.toLocaleDateString(culture || 'en-US');
475
- if (showTime) {
476
- res += ' ' + tmpDate.toLocaleTimeString(culture || 'en-US');
477
- }
445
+ cutValueByFractionDigits(value, maxFractionDigits) {
446
+ let res = value;
447
+ maxFractionDigits = maxFractionDigits || 2;
448
+ const decimalSeparator = this.getDecimalSeparator();
449
+ if (value.includes(decimalSeparator)) {
450
+ const valueArr = value.split(decimalSeparator);
451
+ // if (valueArr[1].length < maxFractionDigits) {
452
+ valueArr[1] = valueArr[1].padEnd(maxFractionDigits, '0');
453
+ // }
454
+ res = `${valueArr[0]}${decimalSeparator}${valueArr[1].slice(0, maxFractionDigits)}`;
478
455
  }
479
456
  return res;
480
457
  }
481
- }
482
- PepDateStringFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDateStringFormatterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
483
- PepDateStringFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepDateStringFormatterPipe, name: "pepDateStringFormatter" });
484
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDateStringFormatterPipe, decorators: [{
485
- type: Pipe,
486
- args: [{ name: 'pepDateStringFormatter' }]
487
- }] });
488
- class PepSafeHtmlPipe {
489
- constructor(sanitizer) {
490
- this.sanitizer = sanitizer;
491
- }
492
- transform(html) {
493
- return this.sanitizer.bypassSecurityTrustHtml(html);
494
- }
495
- }
496
- PepSafeHtmlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepSafeHtmlPipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
497
- PepSafeHtmlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepSafeHtmlPipe, name: "pepSafeHtml" });
498
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepSafeHtmlPipe, decorators: [{
499
- type: Pipe,
500
- args: [{ name: 'pepSafeHtml' }]
501
- }], ctorParameters: function () { return [{ type: i1$1.DomSanitizer }]; } });
502
- class PepSafePipe {
503
- constructor(sanitizer) {
504
- this.sanitizer = sanitizer;
458
+ parseDate(dateStr, isDateTime = false) {
459
+ let retVal = null;
460
+ if (dateStr !== '') {
461
+ retVal = new Date(dateStr);
462
+ // Convert to date with no offset.
463
+ if (!isDateTime) {
464
+ const index = dateStr.indexOf('T');
465
+ if (index > 0) {
466
+ dateStr = dateStr.substring(0, index);
467
+ }
468
+ const dateText = dateStr.split('-');
469
+ if (dateText.length === 3) {
470
+ const year = Number(dateText[0]);
471
+ const month = Number(dateText[1]) - 1;
472
+ const day = Number(dateText[2]);
473
+ retVal = new Date(year, month, day, 0, retVal.getTimezoneOffset() * -1);
474
+ }
475
+ }
476
+ else {
477
+ retVal = new Date(retVal.getFullYear(), retVal.getMonth(), retVal.getDate(), retVal.getHours(), retVal.getMinutes() + retVal.getTimezoneOffset() * -1, retVal.getSeconds());
478
+ }
479
+ }
480
+ if (retVal && isNaN(retVal.getTime())) {
481
+ retVal = null;
482
+ }
483
+ return retVal;
505
484
  }
506
- transform(value, type) {
507
- switch (type) {
508
- case 'html':
509
- return this.sanitizer.bypassSecurityTrustHtml(value);
510
- case 'style':
511
- return this.sanitizer.bypassSecurityTrustStyle(value);
512
- case 'script':
513
- return this.sanitizer.bypassSecurityTrustScript(value);
514
- case 'url':
515
- return this.sanitizer.bypassSecurityTrustUrl(value);
516
- case 'resourceUrl':
517
- return this.sanitizer.bypassSecurityTrustResourceUrl(value);
518
- default:
519
- throw new Error(`Invalid safe type specified: ${type}`);
485
+ stringifyDate(date, isDateTime = false) {
486
+ if (date) {
487
+ if (isDateTime) {
488
+ return date.toISOString(); // include - offset
489
+ }
490
+ else {
491
+ const dateText = [];
492
+ dateText.push(date.getFullYear(), '-', date.getMonth() + 1, '-', date.getDate());
493
+ return dateText.join('');
494
+ }
495
+ }
496
+ else {
497
+ return '';
520
498
  }
521
499
  }
522
- }
523
- PepSafePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepSafePipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
524
- PepSafePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepSafePipe, name: "pepSafe" });
525
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepSafePipe, decorators: [{
526
- type: Pipe,
527
- args: [{ name: 'pepSafe' }]
528
- }], ctorParameters: function () { return [{ type: i1$1.DomSanitizer }]; } });
529
- class PepSplitUppercasePipe {
530
- transform(value) {
531
- const newValue = value.replace(/([a-z])([A-Z])/g, '$1 $2');
532
- return newValue;
500
+ isValueHtml(value) {
501
+ let res = false;
502
+ const REGEXP = /<\/?[a-z][\s\S]*>/i;
503
+ res = REGEXP.test(value);
504
+ return res;
533
505
  }
534
- }
535
- PepSplitUppercasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepSplitUppercasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
536
- PepSplitUppercasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepSplitUppercasePipe, name: "pepSplitUppercase" });
537
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepSplitUppercasePipe, decorators: [{
538
- type: Pipe,
539
- args: [{ name: 'pepSplitUppercase' }]
540
- }] });
541
- class PepToNumberPipe {
542
- transform(value) {
543
- return parseInt(value);
506
+ isJsonString(str) {
507
+ try {
508
+ JSON.parse(str);
509
+ }
510
+ catch (e) {
511
+ return false;
512
+ }
513
+ return true;
544
514
  }
545
- }
546
- PepToNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepToNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
547
- PepToNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepToNumberPipe, name: "pepToNumber" });
548
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepToNumberPipe, decorators: [{
549
- type: Pipe,
550
- args: [{ name: 'pepToNumber' }]
551
- }] });
552
-
553
- class DateAgoPipe {
554
- constructor(translateService) {
555
- this.translateService = translateService;
556
- }
557
- getCounterTranslation(counter, key) {
558
- const intervalText = this.translateService.get(`DATE_AGO.${key.toUpperCase()}`) || key;
559
- const agoText = this.translateService.get(counter === 1 ? 'DATE_AGO.SINGULAR' : 'DATE_AGO.PLURAL') || counter === 1 ? ' ago' : 's ago';
560
- return `${intervalText}${agoText}`;
561
- }
562
- transform(value, args) {
563
- if (value) {
564
- const seconds = Math.floor((+new Date() - +new Date(value)) / 1000);
565
- if (seconds < 29) // less than 30 seconds ago will show as 'Just now'
566
- return this.translateService.get('DATE_AGO.JUST_NOW') || 'Just now';
567
- const intervals = {
568
- 'year': 31536000,
569
- 'month': 2592000,
570
- 'week': 604800,
571
- 'day': 86400,
572
- 'hour': 3600,
573
- 'minute': 60,
574
- 'second': 1
575
- };
576
- let counter;
577
- for (const i in intervals) {
578
- counter = Math.floor(seconds / intervals[i]);
579
- if (counter > 0) {
580
- this.getCounterTranslation(counter, i);
581
- }
582
- }
583
- }
584
- return value;
585
- }
586
- }
587
- DateAgoPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DateAgoPipe, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Pipe });
588
- DateAgoPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: DateAgoPipe, name: "dateAgo" });
589
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DateAgoPipe, decorators: [{
590
- type: Pipe,
591
- args: [{
592
- name: 'dateAgo'
593
- }]
594
- }], ctorParameters: function () { return [{ type: i1.TranslateService }]; } });
595
-
596
- class PepInputAutoWidthDirective {
597
- constructor(renderer, el) {
598
- this.renderer = renderer;
599
- this.el = el;
600
- this.includePadding = true;
601
- this.input = null;
602
- }
603
- ngAfterViewInit() {
604
- if (this.el.nativeElement.tagName.toLowerCase() === 'input') {
605
- this.input = this.el;
606
- }
607
- else {
608
- const list = this.el.nativeElement.querySelectorAll('input');
609
- this.input = list.length > 0 ? list[0] : null;
610
- }
611
- if (this.input) {
612
- this.input.addEventListener('blur', this.setWidthUsingText.bind(this));
613
- this.input.addEventListener('keyup', this.setWidthUsingText.bind(this));
614
- }
615
- this.setWidthUsingText();
616
- }
617
- ngOnDestroy() {
618
- this.input.removeEventListener('blur', this.setWidthUsingText.bind(this));
619
- this.input.removeEventListener('keyup', this.setWidthUsingText.bind(this));
620
- }
621
- get paddingWidth() {
622
- return this.includePadding
623
- ? this._sumPropertyValues(['padding-left', 'padding-right'])
624
- : 0;
625
- }
626
- get style() {
627
- return getComputedStyle(this.input, '');
628
- }
629
- setWidth(width) {
630
- this.renderer.setStyle(this.input, 'width', width + 'px');
631
- }
632
- setWidthUsingText() {
633
- if (this.input) {
634
- const text = this.input.value;
635
- this.setWidth(this.textWidth(text) + this.paddingWidth);
636
- }
637
- }
638
- _sumPropertyValues(properties) {
639
- return properties
640
- .map((property) => parseInt(this.style.getPropertyValue(property), 10))
641
- .reduce((a, b) => a + b, 0);
642
- }
643
- textWidth(value) {
644
- const ctx = this.renderer.createElement('canvas').getContext('2d');
645
- const { fontStyle, fontVariant, fontWeight, fontSize, fontFamily, } = this.style;
646
- // font string format: {normal, normal, 700, 20px, Roboto, "Helvetica Neue", sans-serif}
647
- ctx.font =
648
- fontStyle +
649
- ' ' +
650
- fontVariant +
651
- ' ' +
652
- fontWeight +
653
- ' ' +
654
- fontSize +
655
- ' ' +
656
- fontFamily;
657
- return ctx ? ctx.measureText(value).width : 0;
658
- }
659
- }
660
- PepInputAutoWidthDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepInputAutoWidthDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
661
- PepInputAutoWidthDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepInputAutoWidthDirective, selector: "[pepAutoWidth]", inputs: { includePadding: "includePadding" }, ngImport: i0 });
662
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepInputAutoWidthDirective, decorators: [{
663
- type: Directive,
664
- args: [{
665
- selector: '[pepAutoWidth]',
666
- }]
667
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { includePadding: [{
668
- type: Input
669
- }] } });
670
-
671
- class PepButtonBlurDirective {
672
- constructor(element) {
673
- this.element = element;
674
- }
675
- onClick() {
676
- setTimeout(() => {
677
- this.element.nativeElement.blur();
678
- }, 0);
679
- }
680
- }
681
- PepButtonBlurDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepButtonBlurDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
682
- PepButtonBlurDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepButtonBlurDirective, selector: "[pepButtonBlur]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
683
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepButtonBlurDirective, decorators: [{
684
- type: Directive,
685
- args: [{
686
- selector: '[pepButtonBlur]',
687
- }]
688
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { onClick: [{
689
- type: HostListener,
690
- args: ['click']
691
- }] } });
692
-
693
- class PepUtilitiesService {
694
- constructor(translate = null) {
695
- var _a;
696
- this.translate = translate;
697
- this.culture = 'en-US';
698
- this.culture = ((_a = this.translate) === null || _a === void 0 ? void 0 : _a.getBrowserCultureLang()) || 'en-US';
699
- // try {
700
- // import(`@angular/common/locales/global/${this.culture}`);
701
- // } catch {}
702
- }
703
- prepareNumberToFormat(value, fallbackValue = 0) {
704
- // If the decimal separator is ',' change it to '.'
705
- if ((value === null || value === void 0 ? void 0 : value.length) > 0) {
706
- // If the decimal separator is ',' change it to '.' for let the formatting works.
707
- value = this.changeDecimalSeparatorWhenItsComma(value);
708
- // console.log('coerceNumberProperty after change decimal separator value is', value);
709
- }
710
- return coerceNumberProperty(value, fallbackValue);
711
- }
712
- // adapted from https://github.com/sindresorhus/parse-ms.
713
- // moved to internal function because parse-ms is now pure ESM.
714
- parseMs(milliseconds) {
715
- if (typeof milliseconds !== 'number') {
716
- throw new TypeError('Expected a number');
717
- }
718
- return {
719
- days: Math.trunc(milliseconds / 86400000),
720
- hours: Math.trunc(milliseconds / 3600000) % 24,
721
- minutes: Math.trunc(milliseconds / 60000) % 60,
722
- seconds: Math.trunc(milliseconds / 1000) % 60,
723
- milliseconds: Math.trunc(milliseconds) % 1000
724
- };
725
- }
726
- // adapted from https://github.com/rafaelrinaldi/add-zero.
727
- // moved to internal function b/c addZero is unmaintained (7+ years).
728
- // stripped out negative sign logic since we're already doing it elsewhere.
729
- addZero(value, digits = 2) {
730
- digits = digits || 2;
731
- let str = value.toString();
732
- let size = 0;
733
- size = digits - str.length + 1;
734
- str = new Array(size).join('0').concat(str);
735
- return str;
736
- }
737
- isCurrencyShouldBeOnRight(currencySymbol) {
738
- let res = false;
739
- if (currencySymbol == "€" ||
740
- currencySymbol == "₪" ||
741
- currencySymbol == "Ft" ||
742
- currencySymbol == "Kč" ||
743
- currencySymbol == "руб" ||
744
- currencySymbol == "zł" ||
745
- currencySymbol == "kr.") {
746
- res = true;
747
- }
748
- return res;
749
- }
750
- cutValueByFractionDigits(value, maxFractionDigits) {
751
- let res = value;
752
- maxFractionDigits = maxFractionDigits || 2;
753
- const decimalSeparator = this.getDecimalSeparator();
754
- if (value.includes(decimalSeparator)) {
755
- const valueArr = value.split(decimalSeparator);
756
- // if (valueArr[1].length < maxFractionDigits) {
757
- valueArr[1] = valueArr[1].padEnd(maxFractionDigits, '0');
758
- // }
759
- res = `${valueArr[0]}${decimalSeparator}${valueArr[1].slice(0, maxFractionDigits)}`;
760
- }
761
- return res;
762
- }
763
- parseDate(dateStr, showTime = false) {
764
- let retVal = null;
765
- if (dateStr !== '') {
766
- retVal = new Date(dateStr);
767
- // Convert to date with no offset.
768
- if (!showTime) {
769
- const index = dateStr.indexOf('T');
770
- if (index > 0) {
771
- dateStr = dateStr.substring(0, index);
772
- }
773
- const dateText = dateStr.split('-');
774
- if (dateText.length === 3) {
775
- const year = Number(dateText[0]);
776
- const month = Number(dateText[1]) - 1;
777
- const day = Number(dateText[2]);
778
- retVal = new Date(year, month, day, 0, retVal.getTimezoneOffset() * -1);
779
- }
780
- }
781
- else {
782
- retVal = new Date(retVal.getFullYear(), retVal.getMonth(), retVal.getDate(), retVal.getHours(), retVal.getMinutes() + retVal.getTimezoneOffset() * -1, retVal.getSeconds());
783
- }
784
- }
785
- if (retVal && isNaN(retVal.getTime())) {
786
- retVal = null;
787
- }
788
- return retVal;
789
- }
790
- stringifyDate(date, showTime = false) {
791
- if (date) {
792
- if (showTime) {
793
- return date.toISOString(); // include - offset
794
- }
795
- else {
796
- const dateText = [];
797
- dateText.push(date.getFullYear(), '-', date.getMonth() + 1, '-', date.getDate());
798
- return dateText.join('');
799
- }
800
- }
801
- else {
802
- return '';
803
- }
804
- }
805
- isValueHtml(value) {
806
- let res = false;
807
- const REGEXP = /<\/?[a-z][\s\S]*>/i;
808
- res = REGEXP.test(value);
809
- return res;
810
- }
811
- isJsonString(str) {
812
- try {
813
- JSON.parse(str);
814
- }
815
- catch (e) {
816
- return false;
817
- }
818
- return true;
819
- }
820
- getSvgElementFromString(document, svgContent) {
821
- const div = document.createElement('DIV');
822
- // div.className = 'svg-icon';
823
- // Add class svg-icon
824
- if ((svgContent === null || svgContent === void 0 ? void 0 : svgContent.length) > 0) {
825
- div.innerHTML = svgContent.replace('<svg ', '<svg class="svg-icon" ');
826
- }
827
- return (div.querySelector('svg') ||
828
- document.createElementNS('http://www.w3.org/2000/svg', 'path'));
515
+ getSvgElementFromString(document, svgContent) {
516
+ const div = document.createElement('DIV');
517
+ // div.className = 'svg-icon';
518
+ // Add class svg-icon
519
+ if ((svgContent === null || svgContent === void 0 ? void 0 : svgContent.length) > 0) {
520
+ div.innerHTML = svgContent.replace('<svg ', '<svg class="svg-icon" ');
521
+ }
522
+ return (div.querySelector('svg') ||
523
+ document.createElementNS('http://www.w3.org/2000/svg', 'path'));
829
524
  }
830
525
  // formatPercent(value: any, digitsInfo = '1.0-2') {
831
526
  formatPercent(value, minFractionDigits = 0, maxFractionDigits = 2) {
@@ -877,120 +572,438 @@ class PepUtilitiesService {
877
572
  // }
878
573
  return res;
879
574
  }
880
- // formatDecimal(value: any, digitsInfo = '1.2-2') {
881
- formatDecimal(value, minFractionDigits = 2, maxFractionDigits = 2, useGrouping = true) {
882
- minFractionDigits = coerceNumberProperty(minFractionDigits, null);
883
- // console.log('formatDecimal minFractionDigits value is', minFractionDigits);
884
- maxFractionDigits = coerceNumberProperty(maxFractionDigits, null);
885
- // console.log('formatDecimal minFractionDigits value is', maxFractionDigits);
886
- value = this.cutValueByFractionDigits(value === null || value === void 0 ? void 0 : value.toString(), Math.max(minFractionDigits, maxFractionDigits));
887
- const number = this.prepareNumberToFormat(value);
888
- // console.log('number value is', number);
889
- if (number === 0) {
890
- return '0';
891
- }
892
- else {
893
- // return formatNumber(value, this.culture, digitsInfo);
894
- const res = new Intl.NumberFormat(this.culture, {
895
- useGrouping: useGrouping,
896
- minimumFractionDigits: minFractionDigits || Math.min(2, maxFractionDigits || 2),
897
- maximumFractionDigits: maxFractionDigits || Math.max(2, minFractionDigits),
898
- }).format(number);
899
- // console.log('Intl.NumberFormat value is', res);
900
- return res;
901
- }
575
+ // formatDecimal(value: any, digitsInfo = '1.2-2') {
576
+ formatDecimal(value, minFractionDigits = 2, maxFractionDigits = 2, useGrouping = true) {
577
+ minFractionDigits = coerceNumberProperty(minFractionDigits, null);
578
+ // console.log('formatDecimal minFractionDigits value is', minFractionDigits);
579
+ maxFractionDigits = coerceNumberProperty(maxFractionDigits, null);
580
+ // console.log('formatDecimal minFractionDigits value is', maxFractionDigits);
581
+ value = this.cutValueByFractionDigits(value === null || value === void 0 ? void 0 : value.toString(), Math.max(minFractionDigits, maxFractionDigits));
582
+ const number = this.prepareNumberToFormat(value);
583
+ // console.log('number value is', number);
584
+ if (number === 0) {
585
+ return '0';
586
+ }
587
+ else {
588
+ // return formatNumber(value, this.culture, digitsInfo);
589
+ const res = new Intl.NumberFormat(this.culture, {
590
+ useGrouping: useGrouping,
591
+ minimumFractionDigits: minFractionDigits || Math.min(2, maxFractionDigits || 2),
592
+ maximumFractionDigits: maxFractionDigits || Math.max(2, minFractionDigits),
593
+ }).format(number);
594
+ // console.log('Intl.NumberFormat value is', res);
595
+ return res;
596
+ }
597
+ }
598
+ // formatNumber(value: any, digitsInfo = '1.0-0'): string {
599
+ formatNumber(value, useGrouping = true) {
600
+ const number = this.prepareNumberToFormat(value);
601
+ if (number === 0) {
602
+ return '0';
603
+ }
604
+ else {
605
+ // return formatNumber(value, this.culture, digitsInfo);
606
+ return new Intl.NumberFormat(this.culture, {
607
+ useGrouping: useGrouping,
608
+ minimumFractionDigits: 0,
609
+ maximumFractionDigits: 0,
610
+ }).format(number);
611
+ }
612
+ }
613
+ /**
614
+ * Convert a number in milliseconds to a standard duration string.
615
+ * @param {number} value - duration in milliseconds
616
+ * @param {object} remoteLoaderOptions - formatDuration options object
617
+ * @param {boolean} [remoteLoaderOptions.leading=false] - add leading zero
618
+ * @returns string - formatted duration string
619
+ */
620
+ formatDuration(value, options = {}) {
621
+ const isNumber = _isNumberValue(value);
622
+ if (!isNumber) {
623
+ return value;
624
+ }
625
+ else {
626
+ let number = this.prepareNumberToFormat(value);
627
+ const leading = (options === null || options === void 0 ? void 0 : options.leading) || true;
628
+ const duration = (options === null || options === void 0 ? void 0 : options.duration) || 'milliseconds';
629
+ if (duration === 'seconds') {
630
+ number = number * 1000;
631
+ }
632
+ const unsignedMs = number < 0 ? -number : number;
633
+ const sign = number <= -1000 ? '-' : '';
634
+ const t = this.parseMs(unsignedMs);
635
+ const seconds = this.addZero(t.seconds);
636
+ if (t.days) {
637
+ return sign + t.days + ':' + this.addZero(t.hours) + ':' + this.addZero(t.minutes) + ':' + seconds;
638
+ }
639
+ if (t.hours) {
640
+ return sign + (leading ? this.addZero(t.hours) : t.hours) + ':' + this.addZero(t.minutes) + ':' + seconds;
641
+ }
642
+ return sign + (leading ? this.addZero(t.minutes) : t.minutes) + ':' + seconds;
643
+ }
644
+ }
645
+ incrementNumber(value) {
646
+ let numberValue = coerceNumberProperty(value, 0);
647
+ return (++numberValue).toString();
648
+ }
649
+ decrementNumber(value) {
650
+ let numberValue = coerceNumberProperty(value, 0);
651
+ return (--numberValue).toString();
652
+ }
653
+ getDecimalSeparator() {
654
+ const numberWithDecimalSeparator = 1.1;
655
+ return numberWithDecimalSeparator
656
+ .toLocaleString(this.culture)
657
+ .substring(1, 2);
658
+ }
659
+ changeDecimalSeparatorWhenItsComma(value, reverse = false) {
660
+ // If the decimal separator is ','
661
+ if (this.getDecimalSeparator() === ',') {
662
+ // In case that the value isn't string.
663
+ value = (value === null || value === void 0 ? void 0 : value.toString()) || '';
664
+ // If reverse change the number from '.' to ',' else do the opposite.
665
+ value = reverse ? value.replace('.', ',') : value.replace(',', '.');
666
+ }
667
+ return value;
668
+ }
669
+ isEqualNumber(numberAsString, numberAsString2) {
670
+ const number = this.prepareNumberToFormat(numberAsString);
671
+ const number2 = this.prepareNumberToFormat(numberAsString2);
672
+ return number === number2;
673
+ }
674
+ }
675
+ PepUtilitiesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepUtilitiesService, deps: [{ token: i1.TranslateService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
676
+ PepUtilitiesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepUtilitiesService, providedIn: 'root' });
677
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepUtilitiesService, decorators: [{
678
+ type: Injectable,
679
+ args: [{
680
+ providedIn: 'root',
681
+ }]
682
+ }], ctorParameters: function () {
683
+ return [{ type: i1.TranslateService, decorators: [{
684
+ type: Optional
685
+ }] }];
686
+ } });
687
+
688
+ class PepCapitalizePipe {
689
+ transform(value) {
690
+ if (value) {
691
+ return value.charAt(0).toUpperCase() + value.slice(1);
692
+ }
693
+ return value;
694
+ }
695
+ }
696
+ PepCapitalizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
697
+ PepCapitalizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepCapitalizePipe, name: "pepCapitalize" });
698
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCapitalizePipe, decorators: [{
699
+ type: Pipe,
700
+ args: [{ name: 'pepCapitalize' }]
701
+ }] });
702
+ class PepEncodePipe {
703
+ transform(value) {
704
+ if (value) {
705
+ const v = btoa(value);
706
+ return v;
707
+ }
708
+ return value;
709
+ }
710
+ }
711
+ PepEncodePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepEncodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
712
+ PepEncodePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepEncodePipe, name: "pepEncode" });
713
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepEncodePipe, decorators: [{
714
+ type: Pipe,
715
+ args: [{ name: 'pepEncode' }]
716
+ }] });
717
+ class PepEscapePipe {
718
+ transform(value) {
719
+ if (value) {
720
+ const v = escape(value);
721
+ return v;
722
+ }
723
+ return value;
724
+ }
725
+ }
726
+ PepEscapePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepEscapePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
727
+ PepEscapePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepEscapePipe, name: "pepEscape" });
728
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepEscapePipe, decorators: [{
729
+ type: Pipe,
730
+ args: [{ name: 'pepEscape' }]
731
+ }] });
732
+ class PepReplaceLineBreaksPipe {
733
+ transform(value) {
734
+ const newValue = value.replace(/(<br\ ?\/?>)/g, ' ');
735
+ return newValue;
736
+ }
737
+ }
738
+ PepReplaceLineBreaksPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepReplaceLineBreaksPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
739
+ PepReplaceLineBreaksPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepReplaceLineBreaksPipe, name: "pepReplaceLineBreaks" });
740
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepReplaceLineBreaksPipe, decorators: [{
741
+ type: Pipe,
742
+ args: [{ name: 'pepReplaceLineBreaks' }]
743
+ }] });
744
+ class PepDateFormatterPipe {
745
+ transform(value, culture, isDateTime = false) {
746
+ let res = '';
747
+ value = new Date(value);
748
+ if (value) {
749
+ res = value.toLocaleDateString(culture || 'en-US');
750
+ if (isDateTime) {
751
+ res +=
752
+ ' ' +
753
+ value.toLocaleTimeString(culture || 'en-US', {
754
+ hour: '2-digit',
755
+ minute: '2-digit',
756
+ });
757
+ }
758
+ }
759
+ return res;
760
+ }
761
+ }
762
+ PepDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDateFormatterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
763
+ PepDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepDateFormatterPipe, name: "pepDateFormatter" });
764
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDateFormatterPipe, decorators: [{
765
+ type: Pipe,
766
+ args: [{ name: 'pepDateFormatter' }]
767
+ }] });
768
+ class PepDateStringFormatterPipe {
769
+ transform(value, culture, isDateTime = false) {
770
+ let res = '';
771
+ const tmpDate = new Date(value);
772
+ if (value) {
773
+ res = tmpDate.toLocaleDateString(culture || 'en-US');
774
+ if (isDateTime) {
775
+ res += ' ' + tmpDate.toLocaleTimeString(culture || 'en-US');
776
+ }
777
+ }
778
+ return res;
779
+ }
780
+ }
781
+ PepDateStringFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDateStringFormatterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
782
+ PepDateStringFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepDateStringFormatterPipe, name: "pepDateStringFormatter" });
783
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDateStringFormatterPipe, decorators: [{
784
+ type: Pipe,
785
+ args: [{ name: 'pepDateStringFormatter' }]
786
+ }] });
787
+ class PepSafeHtmlPipe {
788
+ constructor(sanitizer) {
789
+ this.sanitizer = sanitizer;
790
+ }
791
+ transform(html) {
792
+ return this.sanitizer.bypassSecurityTrustHtml(html);
793
+ }
794
+ }
795
+ PepSafeHtmlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSafeHtmlPipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
796
+ PepSafeHtmlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepSafeHtmlPipe, name: "pepSafeHtml" });
797
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSafeHtmlPipe, decorators: [{
798
+ type: Pipe,
799
+ args: [{ name: 'pepSafeHtml' }]
800
+ }], ctorParameters: function () { return [{ type: i1$1.DomSanitizer }]; } });
801
+ class PepSafePipe {
802
+ constructor(sanitizer) {
803
+ this.sanitizer = sanitizer;
804
+ }
805
+ transform(value, type) {
806
+ switch (type) {
807
+ case 'html':
808
+ return this.sanitizer.bypassSecurityTrustHtml(value);
809
+ case 'style':
810
+ return this.sanitizer.bypassSecurityTrustStyle(value);
811
+ case 'script':
812
+ return this.sanitizer.bypassSecurityTrustScript(value);
813
+ case 'url':
814
+ return this.sanitizer.bypassSecurityTrustUrl(value);
815
+ case 'resourceUrl':
816
+ return this.sanitizer.bypassSecurityTrustResourceUrl(value);
817
+ default:
818
+ throw new Error(`Invalid safe type specified: ${type}`);
819
+ }
820
+ }
821
+ }
822
+ PepSafePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSafePipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
823
+ PepSafePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepSafePipe, name: "pepSafe" });
824
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSafePipe, decorators: [{
825
+ type: Pipe,
826
+ args: [{ name: 'pepSafe' }]
827
+ }], ctorParameters: function () { return [{ type: i1$1.DomSanitizer }]; } });
828
+ class PepSplitUppercasePipe {
829
+ transform(value) {
830
+ const newValue = value.replace(/([a-z])([A-Z])/g, '$1 $2');
831
+ return newValue;
832
+ }
833
+ }
834
+ PepSplitUppercasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSplitUppercasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
835
+ PepSplitUppercasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepSplitUppercasePipe, name: "pepSplitUppercase" });
836
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSplitUppercasePipe, decorators: [{
837
+ type: Pipe,
838
+ args: [{ name: 'pepSplitUppercase' }]
839
+ }] });
840
+ class PepToNumberPipe {
841
+ constructor(utilitiesService) {
842
+ this.utilitiesService = utilitiesService;
843
+ }
844
+ transform(value) {
845
+ const decimalSeparator = this.utilitiesService.getDecimalSeparator();
846
+ // We need to remove the thousands separator so - If the decimal separator is '.' we need to remove the ',' from the value else we remove the '.'.
847
+ value = decimalSeparator === '.' ? value.replace(/,/g, '') : value.replace(/./g, '');
848
+ const numberValue = coerceNumberProperty(value);
849
+ return numberValue;
850
+ // return parseInt(value);
851
+ }
852
+ }
853
+ PepToNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepToNumberPipe, deps: [{ token: PepUtilitiesService }], target: i0.ɵɵFactoryTarget.Pipe });
854
+ PepToNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepToNumberPipe, name: "pepToNumber" });
855
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepToNumberPipe, decorators: [{
856
+ type: Pipe,
857
+ args: [{ name: 'pepToNumber' }]
858
+ }], ctorParameters: function () { return [{ type: PepUtilitiesService }]; } });
859
+
860
+ class DateAgoPipe {
861
+ constructor(translateService) {
862
+ this.translateService = translateService;
863
+ }
864
+ getCounterTranslation(counter, key) {
865
+ const intervalText = this.translateService.get(`DATE_AGO.${key.toUpperCase()}`) || key;
866
+ const agoText = this.translateService.get(counter === 1 ? 'DATE_AGO.SINGULAR' : 'DATE_AGO.PLURAL') || counter === 1 ? ' ago' : 's ago';
867
+ return `${intervalText}${agoText}`;
902
868
  }
903
- // formatNumber(value: any, digitsInfo = '1.0-0'): string {
904
- formatNumber(value, useGrouping = true) {
905
- const number = this.prepareNumberToFormat(value);
906
- if (number === 0) {
907
- return '0';
908
- }
909
- else {
910
- // return formatNumber(value, this.culture, digitsInfo);
911
- return new Intl.NumberFormat(this.culture, {
912
- useGrouping: useGrouping,
913
- minimumFractionDigits: 0,
914
- maximumFractionDigits: 0,
915
- }).format(number);
869
+ transform(value, args) {
870
+ if (value) {
871
+ const seconds = Math.floor((+new Date() - +new Date(value)) / 1000);
872
+ if (seconds < 29) // less than 30 seconds ago will show as 'Just now'
873
+ return this.translateService.get('DATE_AGO.JUST_NOW') || 'Just now';
874
+ const intervals = {
875
+ 'year': 31536000,
876
+ 'month': 2592000,
877
+ 'week': 604800,
878
+ 'day': 86400,
879
+ 'hour': 3600,
880
+ 'minute': 60,
881
+ 'second': 1
882
+ };
883
+ let counter;
884
+ for (const i in intervals) {
885
+ counter = Math.floor(seconds / intervals[i]);
886
+ if (counter > 0) {
887
+ this.getCounterTranslation(counter, i);
888
+ }
889
+ }
916
890
  }
891
+ return value;
917
892
  }
918
- /**
919
- * Convert a number in milliseconds to a standard duration string.
920
- * @param {number} value - duration in milliseconds
921
- * @param {object} options - formatDuration options object
922
- * @param {boolean} [options.leading=false] - add leading zero
923
- * @returns string - formatted duration string
924
- */
925
- formatDuration(value, options = {}) {
926
- const isNumber = _isNumberValue(value);
927
- if (!isNumber) {
928
- return value;
893
+ }
894
+ DateAgoPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateAgoPipe, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Pipe });
895
+ DateAgoPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DateAgoPipe, name: "dateAgo" });
896
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateAgoPipe, decorators: [{
897
+ type: Pipe,
898
+ args: [{
899
+ name: 'dateAgo'
900
+ }]
901
+ }], ctorParameters: function () { return [{ type: i1.TranslateService }]; } });
902
+
903
+ class PepInputAutoWidthDirective {
904
+ constructor(renderer, el) {
905
+ this.renderer = renderer;
906
+ this.el = el;
907
+ this.includePadding = true;
908
+ this.input = null;
909
+ }
910
+ ngAfterViewInit() {
911
+ if (this.el.nativeElement.tagName.toLowerCase() === 'input') {
912
+ this.input = this.el;
929
913
  }
930
914
  else {
931
- let number = this.prepareNumberToFormat(value);
932
- const leading = (options === null || options === void 0 ? void 0 : options.leading) || true;
933
- const duration = (options === null || options === void 0 ? void 0 : options.duration) || 'milliseconds';
934
- if (duration === 'seconds') {
935
- number = number * 1000;
936
- }
937
- const unsignedMs = number < 0 ? -number : number;
938
- const sign = number <= -1000 ? '-' : '';
939
- const t = this.parseMs(unsignedMs);
940
- const seconds = this.addZero(t.seconds);
941
- if (t.days) {
942
- return sign + t.days + ':' + this.addZero(t.hours) + ':' + this.addZero(t.minutes) + ':' + seconds;
943
- }
944
- if (t.hours) {
945
- return sign + (leading ? this.addZero(t.hours) : t.hours) + ':' + this.addZero(t.minutes) + ':' + seconds;
946
- }
947
- return sign + (leading ? this.addZero(t.minutes) : t.minutes) + ':' + seconds;
915
+ const list = this.el.nativeElement.querySelectorAll('input');
916
+ this.input = list.length > 0 ? list[0] : null;
917
+ }
918
+ if (this.input) {
919
+ this.input.addEventListener('blur', this.setWidthUsingText.bind(this));
920
+ this.input.addEventListener('keyup', this.setWidthUsingText.bind(this));
948
921
  }
922
+ this.setWidthUsingText();
949
923
  }
950
- incrementNumber(value) {
951
- let numberValue = coerceNumberProperty(value, 0);
952
- return (++numberValue).toString();
924
+ ngOnDestroy() {
925
+ this.input.removeEventListener('blur', this.setWidthUsingText.bind(this));
926
+ this.input.removeEventListener('keyup', this.setWidthUsingText.bind(this));
953
927
  }
954
- decrementNumber(value) {
955
- let numberValue = coerceNumberProperty(value, 0);
956
- return (--numberValue).toString();
928
+ get paddingWidth() {
929
+ return this.includePadding
930
+ ? this._sumPropertyValues(['padding-left', 'padding-right'])
931
+ : 0;
957
932
  }
958
- getDecimalSeparator() {
959
- const numberWithDecimalSeparator = 1.1;
960
- return numberWithDecimalSeparator
961
- .toLocaleString(this.culture)
962
- .substring(1, 2);
933
+ get style() {
934
+ return getComputedStyle(this.input, '');
963
935
  }
964
- changeDecimalSeparatorWhenItsComma(value, reverse = false) {
965
- // If the decimal separator is ','
966
- if (this.getDecimalSeparator() === ',') {
967
- // In case that the value isn't string.
968
- value = (value === null || value === void 0 ? void 0 : value.toString()) || '';
969
- // If reverse change the number from '.' to ',' else do the opposite.
970
- value = reverse ? value.replace('.', ',') : value.replace(',', '.');
936
+ setWidth(width) {
937
+ this.renderer.setStyle(this.input, 'width', width + 'px');
938
+ }
939
+ setWidthUsingText() {
940
+ if (this.input) {
941
+ const text = this.input.value;
942
+ this.setWidth(this.textWidth(text) + this.paddingWidth);
971
943
  }
972
- return value;
973
944
  }
974
- isEqualNumber(numberAsString, numberAsString2) {
975
- const number = this.prepareNumberToFormat(numberAsString);
976
- const number2 = this.prepareNumberToFormat(numberAsString2);
977
- return number === number2;
945
+ _sumPropertyValues(properties) {
946
+ return properties
947
+ .map((property) => parseInt(this.style.getPropertyValue(property), 10))
948
+ .reduce((a, b) => a + b, 0);
949
+ }
950
+ textWidth(value) {
951
+ const ctx = this.renderer.createElement('canvas').getContext('2d');
952
+ const { fontStyle, fontVariant, fontWeight, fontSize, fontFamily, } = this.style;
953
+ // font string format: {normal, normal, 700, 20px, Roboto, "Helvetica Neue", sans-serif}
954
+ ctx.font =
955
+ fontStyle +
956
+ ' ' +
957
+ fontVariant +
958
+ ' ' +
959
+ fontWeight +
960
+ ' ' +
961
+ fontSize +
962
+ ' ' +
963
+ fontFamily;
964
+ return ctx ? ctx.measureText(value).width : 0;
978
965
  }
979
966
  }
980
- PepUtilitiesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepUtilitiesService, deps: [{ token: i1.TranslateService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
981
- PepUtilitiesServiceprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepUtilitiesService, providedIn: 'root' });
982
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepUtilitiesService, decorators: [{
983
- type: Injectable,
967
+ PepInputAutoWidthDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepInputAutoWidthDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
968
+ PepInputAutoWidthDirectivedir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepInputAutoWidthDirective, selector: "[pepAutoWidth]", inputs: { includePadding: "includePadding" }, ngImport: i0 });
969
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepInputAutoWidthDirective, decorators: [{
970
+ type: Directive,
984
971
  args: [{
985
- providedIn: 'root',
972
+ selector: '[pepAutoWidth]',
986
973
  }]
987
- }], ctorParameters: function () {
988
- return [{ type: i1.TranslateService, decorators: [{
989
- type: Optional
990
- }] }];
991
- } });
974
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { includePadding: [{
975
+ type: Input
976
+ }] } });
977
+
978
+ class PepButtonBlurDirective {
979
+ constructor(element) {
980
+ this.element = element;
981
+ }
982
+ onClick() {
983
+ setTimeout(() => {
984
+ this.element.nativeElement.blur();
985
+ }, 0);
986
+ }
987
+ }
988
+ PepButtonBlurDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepButtonBlurDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
989
+ PepButtonBlurDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepButtonBlurDirective, selector: "[pepButtonBlur]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
990
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepButtonBlurDirective, decorators: [{
991
+ type: Directive,
992
+ args: [{
993
+ selector: '[pepButtonBlur]',
994
+ }]
995
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { onClick: [{
996
+ type: HostListener,
997
+ args: ['click']
998
+ }] } });
992
999
 
993
1000
  class PepButtonLoaderDirective {
1001
+ set finish(value) {
1002
+ this._finish = value;
1003
+ if (this._isLoading && value) {
1004
+ this.toggleLoading(false);
1005
+ }
1006
+ }
994
1007
  constructor(renderer, element, utilitiesService, document) {
995
1008
  this.renderer = renderer;
996
1009
  this.element = element;
@@ -1004,12 +1017,6 @@ class PepButtonLoaderDirective {
1004
1017
  this._isLoading = false;
1005
1018
  this._finish = null;
1006
1019
  }
1007
- set finish(value) {
1008
- this._finish = value;
1009
- if (this._isLoading && value) {
1010
- this.toggleLoading(false);
1011
- }
1012
- }
1013
1020
  clickEvent(event) {
1014
1021
  this.toggleLoading(true);
1015
1022
  // In case that the finish input is supplied - init it.
@@ -1069,9 +1076,9 @@ class PepButtonLoaderDirective {
1069
1076
  }
1070
1077
  }
1071
1078
  }
1072
- PepButtonLoaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepButtonLoaderDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: PepUtilitiesService }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
1073
- PepButtonLoaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepButtonLoaderDirective, selector: "[pepButtonLoader]", inputs: { loaderTime: "loaderTime", loaderColor: "loaderColor", loaderWidth: "loaderWidth", loaderHeight: "loaderHeight", ignoreDisabledStyle: "ignoreDisabledStyle", finish: "finish" }, host: { listeners: { "click": "clickEvent($event)" } }, ngImport: i0 });
1074
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepButtonLoaderDirective, decorators: [{
1079
+ PepButtonLoaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepButtonLoaderDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: PepUtilitiesService }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
1080
+ PepButtonLoaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepButtonLoaderDirective, selector: "[pepButtonLoader]", inputs: { loaderTime: "loaderTime", loaderColor: "loaderColor", loaderWidth: "loaderWidth", loaderHeight: "loaderHeight", ignoreDisabledStyle: "ignoreDisabledStyle", finish: "finish" }, host: { listeners: { "click": "clickEvent($event)" } }, ngImport: i0 });
1081
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepButtonLoaderDirective, decorators: [{
1075
1082
  type: Directive,
1076
1083
  args: [{
1077
1084
  selector: '[pepButtonLoader]',
@@ -1115,9 +1122,9 @@ class PepMenuBlurDirective {
1115
1122
  }, 0);
1116
1123
  }
1117
1124
  }
1118
- PepMenuBlurDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepMenuBlurDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1119
- PepMenuBlurDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepMenuBlurDirective, selector: "[pepMenuBlur]", host: { listeners: { "menuClosed": "menuClosedEvent()", "menuOpened": "menuOpenedEvent()" } }, ngImport: i0 });
1120
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepMenuBlurDirective, decorators: [{
1125
+ PepMenuBlurDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepMenuBlurDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1126
+ PepMenuBlurDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepMenuBlurDirective, selector: "[pepMenuBlur]", host: { listeners: { "menuClosed": "menuClosedEvent()", "menuOpened": "menuOpenedEvent()" } }, ngImport: i0 });
1127
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepMenuBlurDirective, decorators: [{
1121
1128
  type: Directive,
1122
1129
  args: [{
1123
1130
  selector: '[pepMenuBlur]',
@@ -1139,9 +1146,9 @@ class PepDataQaDirective {
1139
1146
  this.renderer.setAttribute(this.element.nativeElement, 'data-qa', this.dataQa);
1140
1147
  }
1141
1148
  }
1142
- PepDataQaDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDataQaDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1143
- PepDataQaDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepDataQaDirective, selector: "[pepDataQa]", inputs: { dataQa: ["pepDataQa", "dataQa"] }, ngImport: i0 });
1144
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDataQaDirective, decorators: [{
1149
+ PepDataQaDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDataQaDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1150
+ PepDataQaDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepDataQaDirective, selector: "[pepDataQa]", inputs: { dataQa: ["pepDataQa", "dataQa"] }, ngImport: i0 });
1151
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDataQaDirective, decorators: [{
1145
1152
  type: Directive,
1146
1153
  args: [{
1147
1154
  selector: '[pepDataQa]',
@@ -1162,9 +1169,9 @@ class PepPreventMultiClickDirective {
1162
1169
  }, this.disabledTime);
1163
1170
  }
1164
1171
  }
1165
- PepPreventMultiClickDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepPreventMultiClickDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1166
- PepPreventMultiClickDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepPreventMultiClickDirective, selector: "[pepPreventMultiClick]", inputs: { disabledTime: "disabledTime" }, host: { listeners: { "click": "clickEvent($event)" } }, ngImport: i0 });
1167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepPreventMultiClickDirective, decorators: [{
1172
+ PepPreventMultiClickDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPreventMultiClickDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1173
+ PepPreventMultiClickDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepPreventMultiClickDirective, selector: "[pepPreventMultiClick]", inputs: { disabledTime: "disabledTime" }, host: { listeners: { "click": "clickEvent($event)" } }, ngImport: i0 });
1174
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPreventMultiClickDirective, decorators: [{
1168
1175
  type: Directive,
1169
1176
  args: [{
1170
1177
  selector: '[pepPreventMultiClick]',
@@ -1320,9 +1327,9 @@ class PepPrintDirective {
1320
1327
  popupWin.document.close();
1321
1328
  }
1322
1329
  }
1323
- PepPrintDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepPrintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1324
- PepPrintDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepPrintDirective, selector: "[pepPrint]", inputs: { printSectionId: "printSectionId", printTitle: "printTitle", useExistingCss: "useExistingCss", printDelay: "printDelay", printStyle: "printStyle", styleSheetFile: "styleSheetFile" }, host: { listeners: { "click": "print()" } }, ngImport: i0 });
1325
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepPrintDirective, decorators: [{
1330
+ PepPrintDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPrintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1331
+ PepPrintDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepPrintDirective, selector: "[pepPrint]", inputs: { printSectionId: "printSectionId", printTitle: "printTitle", useExistingCss: "useExistingCss", printDelay: "printDelay", printStyle: "printStyle", styleSheetFile: "styleSheetFile" }, host: { listeners: { "click": "print()" } }, ngImport: i0 });
1332
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPrintDirective, decorators: [{
1326
1333
  type: Directive,
1327
1334
  args: [{
1328
1335
  selector: "[pepPrint]"
@@ -1439,9 +1446,9 @@ class PepJwtHelperService {
1439
1446
  return authScheme;
1440
1447
  }
1441
1448
  }
1442
- PepJwtHelperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepJwtHelperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1443
- PepJwtHelperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepJwtHelperService, providedIn: 'root' });
1444
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepJwtHelperService, decorators: [{
1449
+ PepJwtHelperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepJwtHelperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1450
+ PepJwtHelperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepJwtHelperService, providedIn: 'root' });
1451
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepJwtHelperService, decorators: [{
1445
1452
  type: Injectable,
1446
1453
  args: [{
1447
1454
  providedIn: 'root',
@@ -1508,9 +1515,9 @@ class PepSessionService {
1508
1515
  return tokenObj ? tokenObj[this.PAPI_BASE_URL_KEY] : null;
1509
1516
  }
1510
1517
  }
1511
- PepSessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepSessionService, deps: [{ token: PepJwtHelperService }], target: i0.ɵɵFactoryTarget.Injectable });
1512
- PepSessionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepSessionService, providedIn: 'root' });
1513
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepSessionService, decorators: [{
1518
+ PepSessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSessionService, deps: [{ token: PepJwtHelperService }], target: i0.ɵɵFactoryTarget.Injectable });
1519
+ PepSessionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSessionService, providedIn: 'root' });
1520
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSessionService, decorators: [{
1514
1521
  type: Injectable,
1515
1522
  args: [{
1516
1523
  providedIn: 'root',
@@ -1756,9 +1763,9 @@ class PepFileService {
1756
1763
  return url;
1757
1764
  }
1758
1765
  }
1759
- PepFileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepFileService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1760
- PepFileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepFileService, providedIn: 'root' });
1761
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepFileService, decorators: [{
1766
+ PepFileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepFileService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1767
+ PepFileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepFileService, providedIn: 'root' });
1768
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepFileService, decorators: [{
1762
1769
  type: Injectable,
1763
1770
  args: [{
1764
1771
  providedIn: 'root',
@@ -1816,6 +1823,7 @@ class PepCustomizationService {
1816
1823
  field.disabled ? formControl.disable() : formControl.enable();
1817
1824
  const validators = field.getValidators();
1818
1825
  formControl.setValidators(validators);
1826
+ formControl.updateValueAndValidity();
1819
1827
  }
1820
1828
  }
1821
1829
  }
@@ -2190,6 +2198,14 @@ class PepCustomizationService {
2190
2198
  themeVars[PepCustomizationService.COLOR_QS_KEY + '-l'] =
2191
2199
  'var(' + PepCustomizationService.COLOR_SYSTEM_PRIMARY_KEY + '-l)';
2192
2200
  }
2201
+ getDefaultThemeLoaderCustomizationVariables(themeVars) {
2202
+ themeVars[PepCustomizationService.COLOR_LOADER_KEY + '-h'] =
2203
+ 'var(' + PepCustomizationService.COLOR_SYSTEM_CAUTION_KEY + '-h)';
2204
+ themeVars[PepCustomizationService.COLOR_LOADER_KEY + '-s'] =
2205
+ 'var(' + PepCustomizationService.COLOR_SYSTEM_CAUTION_KEY + '-s)';
2206
+ themeVars[PepCustomizationService.COLOR_LOADER_KEY + '-l'] =
2207
+ 'var(' + PepCustomizationService.COLOR_SYSTEM_CAUTION_KEY + '-l)';
2208
+ }
2193
2209
  getDefaultThemeTopHeaderCustomizationVariables(themeVars) {
2194
2210
  const topHeaderState = 'strong';
2195
2211
  themeVars[PepCustomizationService.STYLE_TOP_HEADER_KEY] = topHeaderState;
@@ -2197,6 +2213,11 @@ class PepCustomizationService {
2197
2213
  themeVars[PepCustomizationService.COLOR_TOP_HEADER_KEY + '-s'] = '';
2198
2214
  themeVars[PepCustomizationService.COLOR_TOP_HEADER_KEY + '-l'] = '';
2199
2215
  }
2216
+ getDefaultThemeTopLegacyCustomizationVariables(themeVars) {
2217
+ themeVars[PepCustomizationService.COLOR_TOP_LEGACY_KEY + '-h'] = '';
2218
+ themeVars[PepCustomizationService.COLOR_TOP_LEGACY_KEY + '-s'] = '';
2219
+ themeVars[PepCustomizationService.COLOR_TOP_LEGACY_KEY + '-l'] = '';
2220
+ }
2200
2221
  // getDefaultThemeBrandingCustomizationVariables(themeVars: any): void {
2201
2222
  // themeVars[PepCustomizationService.BRANDING_LOGO_SRC] = '/assets/images/Pepperi-Logo-HiRes.png';
2202
2223
  // themeVars[PepCustomizationService.FAV_ICON_SRC] = '/assets/favicon.ico';
@@ -2227,6 +2248,8 @@ class PepCustomizationService {
2227
2248
  this.getDefaultThemeQSCustomizationVariables(themeVars);
2228
2249
  // Declare default top header customization.
2229
2250
  this.getDefaultThemeTopHeaderCustomizationVariables(themeVars);
2251
+ // Declare default top legacy customization.
2252
+ this.getDefaultThemeTopLegacyCustomizationVariables(themeVars);
2230
2253
  // // Declare default branding logo's customization
2231
2254
  // this.getDefaultThemeBrandingCustomizationVariables(themeVars);
2232
2255
  return themeVars;
@@ -2455,8 +2478,11 @@ PepCustomizationService.COLOR_STRONG_KEY = '--pep-color-strong';
2455
2478
  PepCustomizationService.COLOR_REGULAR_KEY = '--pep-color-regular';
2456
2479
  PepCustomizationService.COLOR_WEAK_KEY = '--pep-color-weak';
2457
2480
  // Top header variables keys
2481
+ PepCustomizationService.COLOR_TOP_LEGACY_KEY = '--pep-color-legacy';
2458
2482
  PepCustomizationService.COLOR_TOP_HEADER_KEY = '--pep-color-top-header';
2459
2483
  PepCustomizationService.STYLE_TOP_HEADER_KEY = '--pep-style-top-header';
2484
+ // Loader variables keys
2485
+ PepCustomizationService.COLOR_LOADER_KEY = '--pep-color-loader';
2460
2486
  // QS variables keys
2461
2487
  PepCustomizationService.COLOR_QS_KEY = '--pep-color-qs';
2462
2488
  PepCustomizationService.STYLE_QS_KEY = '--pep-style-qs';
@@ -2531,9 +2557,9 @@ PepCustomizationService.TABLE_BORDER_RADIUS_KEY = '--pep-table-border-radius';
2531
2557
  PepCustomizationService.DEFAULT_HEADER_HEIGHT = 64; // Default
2532
2558
  PepCustomizationService.DEFAULT_SPINNER_COLOR = '#78aa00';
2533
2559
  PepCustomizationService.DEFAULT_BRANDING_COLOR = '#fff';
2534
- PepCustomizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepCustomizationService, deps: [{ token: PepSessionService }, { token: PepFileService }, { token: i3.FormBuilder }], target: i0.ɵɵFactoryTarget.Injectable });
2535
- PepCustomizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepCustomizationService, providedIn: 'root' });
2536
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepCustomizationService, decorators: [{
2560
+ PepCustomizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCustomizationService, deps: [{ token: PepSessionService }, { token: PepFileService }, { token: i3.FormBuilder }], target: i0.ɵɵFactoryTarget.Injectable });
2561
+ PepCustomizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCustomizationService, providedIn: 'root' });
2562
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCustomizationService, decorators: [{
2537
2563
  type: Injectable,
2538
2564
  args: [{
2539
2565
  providedIn: 'root',
@@ -2577,9 +2603,9 @@ class PepDivLoaderDirective {
2577
2603
  this.renderer.addClass(this.svgIcon, 'stroke');
2578
2604
  }
2579
2605
  }
2580
- PepDivLoaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDivLoaderDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: PepUtilitiesService }, { token: PepCustomizationService }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
2581
- PepDivLoaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepDivLoaderDirective, selector: "[pepDivLoader]", inputs: { loaderColor: "loaderColor", loaderWidth: "loaderWidth", loaderHeight: "loaderHeight" }, ngImport: i0 });
2582
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDivLoaderDirective, decorators: [{
2606
+ PepDivLoaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDivLoaderDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: PepUtilitiesService }, { token: PepCustomizationService }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
2607
+ PepDivLoaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepDivLoaderDirective, selector: "[pepDivLoader]", inputs: { loaderColor: "loaderColor", loaderWidth: "loaderWidth", loaderHeight: "loaderHeight" }, ngImport: i0 });
2608
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDivLoaderDirective, decorators: [{
2583
2609
  type: Directive,
2584
2610
  args: [{
2585
2611
  selector: '[pepDivLoader]',
@@ -2624,9 +2650,9 @@ class PepPortalService {
2624
2650
  : null;
2625
2651
  }
2626
2652
  }
2627
- PepPortalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepPortalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2628
- PepPortalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepPortalService, providedIn: 'root' });
2629
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepPortalService, decorators: [{
2653
+ PepPortalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPortalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2654
+ PepPortalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPortalService, providedIn: 'root' });
2655
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPortalService, decorators: [{
2630
2656
  type: Injectable,
2631
2657
  args: [{
2632
2658
  providedIn: 'root',
@@ -2645,9 +2671,9 @@ class PepAttachDirective {
2645
2671
  this.portalService.clear(this.targetName);
2646
2672
  }
2647
2673
  }
2648
- PepAttachDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepAttachDirective, deps: [{ token: PepPortalService }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
2649
- PepAttachDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepAttachDirective, selector: "[pepAttach]", inputs: { targetName: ["pepAttach", "targetName"] }, ngImport: i0 });
2650
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepAttachDirective, decorators: [{
2674
+ PepAttachDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepAttachDirective, deps: [{ token: PepPortalService }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
2675
+ PepAttachDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepAttachDirective, selector: "[pepAttach]", inputs: { targetName: ["pepAttach", "targetName"] }, ngImport: i0 });
2676
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepAttachDirective, decorators: [{
2651
2677
  type: Directive,
2652
2678
  args: [{
2653
2679
  selector: '[pepAttach]',
@@ -2666,9 +2692,9 @@ class PepTargetDirective {
2666
2692
  this.portalService.addTarget(this.targetName, this.viewContainer);
2667
2693
  }
2668
2694
  }
2669
- PepTargetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepTargetDirective, deps: [{ token: PepPortalService }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
2670
- PepTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepTargetDirective, selector: "[pepTarget]", inputs: { targetName: ["pepTarget", "targetName"] }, ngImport: i0 });
2671
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepTargetDirective, decorators: [{
2695
+ PepTargetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepTargetDirective, deps: [{ token: PepPortalService }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
2696
+ PepTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepTargetDirective, selector: "[pepTarget]", inputs: { targetName: ["pepTarget", "targetName"] }, ngImport: i0 });
2697
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepTargetDirective, decorators: [{
2672
2698
  type: Directive,
2673
2699
  args: [{
2674
2700
  selector: '[pepTarget]',
@@ -2681,9 +2707,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
2681
2707
  // Import the core angular services.
2682
2708
  class PepClipboardService {
2683
2709
  }
2684
- PepClipboardService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepClipboardService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2685
- PepClipboardService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepClipboardService, providedIn: 'root' });
2686
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepClipboardService, decorators: [{
2710
+ PepClipboardService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepClipboardService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2711
+ PepClipboardService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepClipboardService, providedIn: 'root' });
2712
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepClipboardService, decorators: [{
2687
2713
  type: Injectable,
2688
2714
  args: [{
2689
2715
  providedIn: 'root',
@@ -2698,6 +2724,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
2698
2724
  * export from ngx-lib/core/clipboard
2699
2725
  */
2700
2726
 
2727
+ class BaseDestroyerDirective {
2728
+ constructor() {
2729
+ this._destroyed = new Subject();
2730
+ }
2731
+ getDestroyer() {
2732
+ return takeUntil(this._destroyed);
2733
+ }
2734
+ ngOnDestroy() {
2735
+ this._destroyed.next();
2736
+ this._destroyed.complete();
2737
+ }
2738
+ }
2739
+ BaseDestroyerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseDestroyerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2740
+ BaseDestroyerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: BaseDestroyerDirective, ngImport: i0 });
2741
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseDestroyerDirective, decorators: [{
2742
+ type: Directive,
2743
+ args: [{}]
2744
+ }], ctorParameters: function () { return []; } });
2745
+
2701
2746
  /*
2702
2747
  * Public API Surface of ngx-lib/core/common/directives
2703
2748
  */
@@ -3072,9 +3117,9 @@ class PepCookieService {
3072
3117
  }
3073
3118
  }
3074
3119
  }
3075
- PepCookieService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepCookieService, deps: [{ token: DOCUMENT, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
3076
- PepCookieService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepCookieService, providedIn: 'root' });
3077
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepCookieService, decorators: [{
3120
+ PepCookieService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCookieService, deps: [{ token: DOCUMENT, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
3121
+ PepCookieService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCookieService, providedIn: 'root' });
3122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCookieService, decorators: [{
3078
3123
  type: Injectable,
3079
3124
  args: [{
3080
3125
  providedIn: 'root',
@@ -3230,9 +3275,9 @@ class PepHttpService {
3230
3275
  return this.postHttpCall(`${papiBaseUrl}${url}`, body, httpOptions);
3231
3276
  }
3232
3277
  }
3233
- PepHttpService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepHttpService, deps: [{ token: PepSessionService }, { token: PepCookieService }, { token: i3$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
3234
- PepHttpService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepHttpService, providedIn: 'root' });
3235
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepHttpService, decorators: [{
3278
+ PepHttpService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepHttpService, deps: [{ token: PepSessionService }, { token: PepCookieService }, { token: i3$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
3279
+ PepHttpService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepHttpService, providedIn: 'root' });
3280
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepHttpService, decorators: [{
3236
3281
  type: Injectable,
3237
3282
  args: [{
3238
3283
  providedIn: 'root',
@@ -3272,9 +3317,9 @@ class PepTranslateService {
3272
3317
  });
3273
3318
  }
3274
3319
  }
3275
- PepTranslateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepTranslateService, deps: [{ token: i3$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
3276
- PepTranslateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepTranslateService, providedIn: 'root' });
3277
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepTranslateService, decorators: [{
3320
+ PepTranslateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepTranslateService, deps: [{ token: i3$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
3321
+ PepTranslateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepTranslateService, providedIn: 'root' });
3322
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepTranslateService, decorators: [{
3278
3323
  type: Injectable,
3279
3324
  args: [{
3280
3325
  providedIn: 'root',
@@ -3285,12 +3330,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
3285
3330
  This service is the webapp api for addon usege.
3286
3331
  */
3287
3332
  class PepAddonService {
3288
- constructor(sessionService, httpService, loaderService, translateService, fileService, route) {
3333
+ get devServer() {
3334
+ return this.route ? this.route.snapshot.queryParamMap.get('devServer') === 'true' : false;
3335
+ }
3336
+ constructor(sessionService, httpService, loaderService, translateService, fileService, router, route) {
3289
3337
  this.sessionService = sessionService;
3290
3338
  this.httpService = httpService;
3291
3339
  this.loaderService = loaderService;
3292
3340
  this.translateService = translateService;
3293
3341
  this.fileService = fileService;
3342
+ this.router = router;
3294
3343
  this.route = route;
3295
3344
  this.PAGES_ADDON_UUID = '50062e0c-9967-4ed4-9102-f2bc50602d41';
3296
3345
  // private readonly ADDON_ASSETS_PATH_KEY = 'AddonAssetsPath';
@@ -3299,9 +3348,6 @@ class PepAddonService {
3299
3348
  this.ADDON_API_ASYNC_RELATIVE_PATH = `${this.ADDON_API_RELATIVE_PATH}/async`;
3300
3349
  //
3301
3350
  }
3302
- get devServer() {
3303
- return this.route ? this.route.snapshot.queryParamMap.get('devServer') === 'true' : false;
3304
- }
3305
3351
  getAddonBaseRelativePath(isAsync = false) {
3306
3352
  return isAsync
3307
3353
  ? this.ADDON_API_ASYNC_RELATIVE_PATH
@@ -3445,10 +3491,32 @@ class PepAddonService {
3445
3491
  // Fix internal routing bug.
3446
3492
  connectInternalRouter(elementName) {
3447
3493
  const customElementObject = PepAddonService._customElementsMap.get(elementName);
3448
- const router = customElementObject === null || customElementObject === void 0 ? void 0 : customElementObject.injector.get(Router);
3494
+ let router = customElementObject === null || customElementObject === void 0 ? void 0 : customElementObject.injector.get(Router);
3495
+ // This cause a refresh (everithing is loading twice) when reloading the page...
3496
+ // But if we remove this the first navigation is clear all history cause the router is not connected.
3497
+ if (!router) {
3498
+ router = this.router;
3499
+ }
3449
3500
  if (router) {
3450
3501
  const useHash = location.href.includes('#');
3451
- connectRouter(router, useHash);
3502
+ this.connectRouter(router, useHash);
3503
+ }
3504
+ }
3505
+ connectRouter(router, useHash = false) {
3506
+ let url;
3507
+ if (!useHash) {
3508
+ url = `${location.pathname.substr(1)}${location.search}`;
3509
+ router.navigateByUrl(url);
3510
+ window.addEventListener('popstate', () => {
3511
+ router.navigateByUrl(url);
3512
+ });
3513
+ }
3514
+ else {
3515
+ url = `${location.hash.substr(1)}${location.search}`;
3516
+ router.navigateByUrl(url);
3517
+ window.addEventListener('hashchange', () => {
3518
+ router.navigateByUrl(url);
3519
+ });
3452
3520
  }
3453
3521
  }
3454
3522
  static createMultiTranslateLoader(addonUUID, addonService, libsName = ['ngx-lib']) {
@@ -3467,15 +3535,17 @@ class PepAddonService {
3467
3535
  }
3468
3536
  }
3469
3537
  PepAddonService._customElementsMap = new Map();
3470
- PepAddonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepAddonService, deps: [{ token: PepSessionService }, { token: PepHttpService }, { token: PepLoaderService }, { token: PepTranslateService }, { token: PepFileService }, { token: i6.ActivatedRoute, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3471
- PepAddonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepAddonService, providedIn: 'root' });
3472
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepAddonService, decorators: [{
3538
+ PepAddonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepAddonService, deps: [{ token: PepSessionService }, { token: PepHttpService }, { token: PepLoaderService }, { token: PepTranslateService }, { token: PepFileService }, { token: i6.Router, optional: true }, { token: i6.ActivatedRoute, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3539
+ PepAddonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepAddonService, providedIn: 'root' });
3540
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepAddonService, decorators: [{
3473
3541
  type: Injectable,
3474
3542
  args: [{
3475
3543
  providedIn: 'root',
3476
3544
  }]
3477
3545
  }], ctorParameters: function () {
3478
- return [{ type: PepSessionService }, { type: PepHttpService }, { type: PepLoaderService }, { type: PepTranslateService }, { type: PepFileService }, { type: i6.ActivatedRoute, decorators: [{
3546
+ return [{ type: PepSessionService }, { type: PepHttpService }, { type: PepLoaderService }, { type: PepTranslateService }, { type: PepFileService }, { type: i6.Router, decorators: [{
3547
+ type: Optional
3548
+ }] }, { type: i6.ActivatedRoute, decorators: [{
3479
3549
  type: Optional
3480
3550
  }] }];
3481
3551
  } });
@@ -3854,9 +3924,9 @@ class PepColorService {
3854
3924
  return (hsp > 127.5) ? 'light' : 'dark';
3855
3925
  }
3856
3926
  }
3857
- PepColorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepColorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3858
- PepColorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepColorService, providedIn: 'root' });
3859
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepColorService, decorators: [{
3927
+ PepColorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepColorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3928
+ PepColorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepColorService, providedIn: 'root' });
3929
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepColorService, decorators: [{
3860
3930
  type: Injectable,
3861
3931
  args: [{
3862
3932
  providedIn: 'root',
@@ -3950,13 +4020,13 @@ class PepDataConvertorService {
3950
4020
  dataField.Enabled = field.Enabled === false ? false : true;
3951
4021
  dataField.FieldType = field.FieldType;
3952
4022
  dataField.FormattedValue =
3953
- field.FormattedValue || field.Value.toString();
4023
+ field.FormattedValue || field.Value;
3954
4024
  dataField.GroupFields = null;
3955
4025
  dataField.NotificationInfo = '';
3956
4026
  dataField.OptionalValues = field.OptionalValues;
3957
4027
  dataField.ReferenceObjectSubType = '';
3958
4028
  dataField.TextColor = '';
3959
- dataField.Value = field.Value.toString();
4029
+ dataField.Value = field.Value;
3960
4030
  dataField.Visible = true;
3961
4031
  return dataField;
3962
4032
  }
@@ -3973,9 +4043,9 @@ class PepDataConvertorService {
3973
4043
  return layout;
3974
4044
  }
3975
4045
  }
3976
- PepDataConvertorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDataConvertorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3977
- PepDataConvertorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDataConvertorService, providedIn: 'root' });
3978
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDataConvertorService, decorators: [{
4046
+ PepDataConvertorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDataConvertorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4047
+ PepDataConvertorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDataConvertorService, providedIn: 'root' });
4048
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDataConvertorService, decorators: [{
3979
4049
  type: Injectable,
3980
4050
  args: [{
3981
4051
  providedIn: 'root',
@@ -4239,9 +4309,9 @@ class PepValidatorService {
4239
4309
  return isNumber;
4240
4310
  }
4241
4311
  }
4242
- PepValidatorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepValidatorService, deps: [{ token: i1.TranslateService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
4243
- PepValidatorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepValidatorService, providedIn: 'root' });
4244
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepValidatorService, decorators: [{
4312
+ PepValidatorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepValidatorService, deps: [{ token: i1.TranslateService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
4313
+ PepValidatorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepValidatorService, providedIn: 'root' });
4314
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepValidatorService, decorators: [{
4245
4315
  type: Injectable,
4246
4316
  args: [{
4247
4317
  providedIn: 'root',
@@ -4277,9 +4347,9 @@ class PepWindowScrollingService {
4277
4347
  return style;
4278
4348
  }
4279
4349
  }
4280
- PepWindowScrollingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepWindowScrollingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4281
- PepWindowScrollingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepWindowScrollingService, providedIn: 'root' });
4282
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepWindowScrollingService, decorators: [{
4350
+ PepWindowScrollingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepWindowScrollingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4351
+ PepWindowScrollingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepWindowScrollingService, providedIn: 'root' });
4352
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepWindowScrollingService, decorators: [{
4283
4353
  type: Injectable,
4284
4354
  args: [{
4285
4355
  providedIn: 'root',
@@ -4326,8 +4396,8 @@ class PepFieldBase {
4326
4396
  this.xAlignment = (_f = options.xAlignment) !== null && _f !== void 0 ? _f : DEFAULT_HORIZONTAL_ALIGNMENT;
4327
4397
  this.yAlignment = (_g = options.yAlignment) !== null && _g !== void 0 ? _g : DEFAULT_VERTICAL_ALIGNMENT;
4328
4398
  this.maxFieldCharacters = (_h = options.maxFieldCharacters) !== null && _h !== void 0 ? _h : 0;
4329
- this.minValue = (_j = options.minValue) !== null && _j !== void 0 ? _j : 0;
4330
- this.maxValue = (_k = options.maxValue) !== null && _k !== void 0 ? _k : 0;
4399
+ this.minValue = (_j = options.minValue) !== null && _j !== void 0 ? _j : undefined;
4400
+ this.maxValue = (_k = options.maxValue) !== null && _k !== void 0 ? _k : undefined;
4331
4401
  this.update(options);
4332
4402
  }
4333
4403
  getBaseValidators(isCheckbox = false) {
@@ -4346,6 +4416,13 @@ class PepFieldBase {
4346
4416
  if (this.maxFieldCharacters > 0) {
4347
4417
  validators.push(Validators.maxLength(this.maxFieldCharacters));
4348
4418
  }
4419
+ //DI-26722
4420
+ // if (this.minValue) {
4421
+ // validators.push(Validators.min(this.minValue));
4422
+ // }
4423
+ // if (this.maxValue) {
4424
+ // validators.push(Validators.max(this.maxValue));
4425
+ // }
4349
4426
  return validators;
4350
4427
  }
4351
4428
  getValidators() {
@@ -4423,10 +4500,18 @@ class PepTextboxField extends PepFieldBase {
4423
4500
  }
4424
4501
  else if (this.type === 'int' || this.type === 'real') {
4425
4502
  validators.push(Validators.pattern(/^[\.,\-\+\d]+$/));
4426
- if (!isNaN(this.minValue)) {
4503
+ if (this.minValue && !isNaN(this.minValue)) {
4504
+ validators.push(Validators.min(this.minValue));
4505
+ }
4506
+ if (this.maxValue && !isNaN(this.maxValue)) {
4507
+ validators.push(Validators.max(this.maxValue));
4508
+ }
4509
+ }
4510
+ else if (this.type === 'currency' || this.type === 'percentage') {
4511
+ if (this.minValue && !isNaN(this.minValue)) {
4427
4512
  validators.push(Validators.min(this.minValue));
4428
4513
  }
4429
- if (!isNaN(this.maxValue)) {
4514
+ if (this.maxValue && !isNaN(this.maxValue)) {
4430
4515
  validators.push(Validators.max(this.maxValue));
4431
4516
  }
4432
4517
  }
@@ -4520,11 +4605,29 @@ class PepQuantitySelectorField extends PepFieldBase {
4520
4605
  }
4521
4606
  }
4522
4607
  class PepDateField extends PepFieldBase {
4608
+ // minDateValue?: Date;
4609
+ // maxDateValue?: Date;
4523
4610
  constructor(options = {}) {
4524
4611
  super(options);
4525
4612
  this.controlType = 'date';
4526
4613
  this.type = options.type || 'date';
4527
4614
  }
4615
+ getValidators() {
4616
+ const validators = super.getBaseValidators();
4617
+ if (this.minValue && !isNaN(this.minValue)) {
4618
+ validators.push(Validators.min(this.minValue));
4619
+ }
4620
+ if (this.maxValue && !isNaN(this.maxValue)) {
4621
+ validators.push(Validators.max(this.maxValue));
4622
+ }
4623
+ // if (this.minDateValue) {
4624
+ // validators.push(Validators.min(this.minDateValue));
4625
+ // }
4626
+ // if (this.maxDateValue) {
4627
+ // validators.push(Validators.max(this.maxDateValue));
4628
+ // }
4629
+ return validators;
4630
+ }
4528
4631
  }
4529
4632
  class PepCheckboxField extends PepFieldBase {
4530
4633
  constructor(options = {}) {
@@ -4539,11 +4642,14 @@ class PepCheckboxField extends PepFieldBase {
4539
4642
  }
4540
4643
  class PepSelectField extends PepFieldBase {
4541
4644
  constructor(options = {}) {
4645
+ var _a;
4542
4646
  super(options);
4543
4647
  this.controlType = 'select';
4544
4648
  this.options = [];
4649
+ this.autoSortOptions = true;
4545
4650
  this.type = options.type || 'select';
4546
4651
  this.emptyOption = options.emptyOption;
4652
+ this.autoSortOptions = (_a = options.autoSortOptions) !== null && _a !== void 0 ? _a : true;
4547
4653
  this.update(options);
4548
4654
  }
4549
4655
  update(options) {
@@ -4712,9 +4818,9 @@ class PepScrollToService {
4712
4818
  });
4713
4819
  }
4714
4820
  }
4715
- PepScrollToService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepScrollToService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4716
- PepScrollToService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepScrollToService, providedIn: 'root' });
4717
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepScrollToService, decorators: [{
4821
+ PepScrollToService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepScrollToService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4822
+ PepScrollToService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepScrollToService, providedIn: 'root' });
4823
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepScrollToService, decorators: [{
4718
4824
  type: Injectable,
4719
4825
  args: [{
4720
4826
  providedIn: 'root',
@@ -4724,6 +4830,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
4724
4830
  /*
4725
4831
  * Public API Surface of ngx-lib/core/scroll-to
4726
4832
  */
4833
+ // export * from './scroll-to.directive';
4727
4834
 
4728
4835
  /*
4729
4836
  * export from ngx-lib/core/scroll-to
@@ -4766,8 +4873,8 @@ const utilitiesList = [
4766
4873
  const portalList = [PepAttachDirective, PepTargetDirective];
4767
4874
  class PepNgxLibModule {
4768
4875
  }
4769
- PepNgxLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepNgxLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4770
- PepNgxLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepNgxLibModule, declarations: [PepCapitalizePipe,
4876
+ PepNgxLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepNgxLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4877
+ PepNgxLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepNgxLibModule, declarations: [PepCapitalizePipe,
4771
4878
  PepEncodePipe,
4772
4879
  PepEscapePipe,
4773
4880
  PepReplaceLineBreaksPipe,
@@ -4806,7 +4913,7 @@ PepNgxLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
4806
4913
  PepPreventMultiClickDirective,
4807
4914
  PepPrintDirective,
4808
4915
  PepDivLoaderDirective, PepClipboardDirective, PepRtlClassDirective, PepRtlDirectionDirective, PepAttachDirective, PepTargetDirective, TranslateModule] });
4809
- PepNgxLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepNgxLibModule, providers: [
4916
+ PepNgxLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepNgxLibModule, providers: [
4810
4917
  httpInterceptorProviders,
4811
4918
  PepAddonService,
4812
4919
  PepColorService,
@@ -4829,7 +4936,7 @@ PepNgxLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version
4829
4936
  ], imports: [CommonModule,
4830
4937
  HttpClientModule,
4831
4938
  ReactiveFormsModule, TranslateModule] });
4832
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepNgxLibModule, decorators: [{
4939
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepNgxLibModule, decorators: [{
4833
4940
  type: NgModule,
4834
4941
  args: [{
4835
4942
  declarations: [
@@ -4884,5 +4991,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
4884
4991
  * Generated bundle index. Do not edit.
4885
4992
  */
4886
4993
 
4887
- export { DEFAULT_HORIZONTAL_ALIGNMENT, DEFAULT_VERTICAL_ALIGNMENT, DateAgoPipe, FIELD_TYPE, FieldLayout, KeyValuePair, ObjectSingleData, ObjectsData, ObjectsDataRow, ObjectsDataRowCell, PepAddonService, PepAddressField, PepAttachDirective, PepAttachmentField, PepButtonBlurDirective, PepButtonLoaderDirective, PepCapitalizePipe, PepCheckboxField, PepClipboardDirective, PepClipboardService, PepColorService, PepCookieService, PepCustomizationService, PepDataConvertorService, PepDataQaDirective, PepDateField, PepDateFormatterPipe, PepDateStringFormatterPipe, PepDivLoaderDirective, PepEncodePipe, PepEscapePipe, PepFieldBase, PepFieldData, PepFileService, PepGuid, PepHttpService, PepImageField, PepImagesField, PepIndicatorsField, PepInputAutoWidthDirective, PepInternalButtonField, PepInternalCaruselField, PepInternalMenuField, PepInternalPageField, PepJwtHelperService, PepLayoutService, PepLinkField, PepLoaderService, PepMenuBlurDirective, PepNgxLibModule, PepPlaceholderField, PepPortalService, PepPreventMultiClickDirective, PepPrintDirective, PepQuantitySelectorField, PepReplaceLineBreaksPipe, PepRichHtmlTextareaField, PepRowData, PepRtlClassDirective, PepRtlDirectionDirective, PepSafeHtmlPipe, PepSafePipe, PepScreenSizeType, PepScrollToService, PepSelectField, PepSeparatorField, PepSessionService, PepSignatureField, PepSplitUppercasePipe, PepTargetDirective, PepTextareaField, PepTextboxField, PepToNumberPipe, PepTranslateService, PepUtilitiesService, PepValidatorService, PepWindowScrollingService, SmartSearchResponse, SmartSearchValues, Test, UIControl, UIControlField, X_ALIGNMENT_TYPE, Y_ALIGNMENT_TYPE };
4994
+ export { BaseDestroyerDirective, DEFAULT_HORIZONTAL_ALIGNMENT, DEFAULT_VERTICAL_ALIGNMENT, DateAgoPipe, FIELD_TYPE, FieldLayout, KeyValuePair, ObjectSingleData, ObjectsData, ObjectsDataRow, ObjectsDataRowCell, PepAddonService, PepAddressField, PepAttachDirective, PepAttachmentField, PepButtonBlurDirective, PepButtonLoaderDirective, PepCapitalizePipe, PepCheckboxField, PepClipboardDirective, PepClipboardService, PepColorService, PepCookieService, PepCustomizationService, PepDataConvertorService, PepDataQaDirective, PepDateField, PepDateFormatterPipe, PepDateStringFormatterPipe, PepDivLoaderDirective, PepEncodePipe, PepEscapePipe, PepFieldBase, PepFieldData, PepFileService, PepGuid, PepHttpService, PepImageField, PepImagesField, PepIndicatorsField, PepInputAutoWidthDirective, PepInternalButtonField, PepInternalCaruselField, PepInternalMenuField, PepInternalPageField, PepJwtHelperService, PepLayoutService, PepLinkField, PepLoaderService, PepMenuBlurDirective, PepNgxLibModule, PepPlaceholderField, PepPortalService, PepPreventMultiClickDirective, PepPrintDirective, PepQuantitySelectorField, PepReplaceLineBreaksPipe, PepRichHtmlTextareaField, PepRowData, PepRtlClassDirective, PepRtlDirectionDirective, PepSafeHtmlPipe, PepSafePipe, PepScreenSizeType, PepScrollToService, PepSelectField, PepSeparatorField, PepSessionService, PepSignatureField, PepSplitUppercasePipe, PepTargetDirective, PepTextareaField, PepTextboxField, PepToNumberPipe, PepTranslateService, PepUtilitiesService, PepValidatorService, PepWindowScrollingService, SmartSearchResponse, SmartSearchValues, Test, UIControl, UIControlField, X_ALIGNMENT_TYPE, Y_ALIGNMENT_TYPE };
4888
4995
  //# sourceMappingURL=pepperi-addons-ngx-lib.mjs.map