@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,16 +5,15 @@ 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 { createCustomElement } from '@angular/elements';
15
15
  import * as i6 from '@angular/router';
16
16
  import { Router } from '@angular/router';
17
- import { connectRouter } from '@angular-architects/module-federation-tools';
18
17
  import { MultiTranslateHttpLoader } from 'ngx-translate-multi-http-loader';
19
18
 
20
19
  // import { ToastrService } from 'ngx-toastr';
@@ -34,13 +33,18 @@ class PepErrorInterceptor {
34
33
  }));
35
34
  }
36
35
  }
37
- PepErrorInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepErrorInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
38
- PepErrorInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepErrorInterceptor });
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepErrorInterceptor, decorators: [{
36
+ PepErrorInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepErrorInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
37
+ PepErrorInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepErrorInterceptor });
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepErrorInterceptor, decorators: [{
40
39
  type: Injectable
41
40
  }] });
42
41
 
43
42
  class PepLoaderService {
43
+ get onChanged$() {
44
+ return this.showLoaderSubject
45
+ .asObservable()
46
+ .pipe(debounceTime(500), filter(v => v !== undefined), distinctUntilChanged());
47
+ }
44
48
  constructor() {
45
49
  this.counter = 0;
46
50
  this.showLoaderSubject = new BehaviorSubject(undefined);
@@ -49,11 +53,6 @@ class PepLoaderService {
49
53
  this.showLoaderChanged(show);
50
54
  });
51
55
  }
52
- get onChanged$() {
53
- return this.showLoaderSubject
54
- .asObservable()
55
- .pipe(filter(v => v !== undefined), distinctUntilChanged());
56
- }
57
56
  showLoaderChanged(show) {
58
57
  const eventData = {
59
58
  detail: {
@@ -77,9 +76,9 @@ class PepLoaderService {
77
76
  }
78
77
  }
79
78
  }
80
- PepLoaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
81
- PepLoaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLoaderService, providedIn: 'root' });
82
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLoaderService, decorators: [{
79
+ PepLoaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
80
+ PepLoaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLoaderService, providedIn: 'root' });
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLoaderService, decorators: [{
83
82
  type: Injectable,
84
83
  args: [{
85
84
  providedIn: 'root',
@@ -107,9 +106,9 @@ class PepLoaderInterceptor {
107
106
  // }));
108
107
  }
109
108
  }
110
- PepLoaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLoaderInterceptor, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
111
- PepLoaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLoaderInterceptor });
112
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLoaderInterceptor, decorators: [{
109
+ PepLoaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLoaderInterceptor, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
110
+ PepLoaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLoaderInterceptor });
111
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLoaderInterceptor, decorators: [{
113
112
  type: Injectable
114
113
  }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
115
114
 
@@ -135,9 +134,9 @@ class PepProfilerInterceptor {
135
134
  }));
136
135
  }
137
136
  }
138
- PepProfilerInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepProfilerInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
139
- PepProfilerInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepProfilerInterceptor });
140
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepProfilerInterceptor, decorators: [{
137
+ PepProfilerInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepProfilerInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
138
+ PepProfilerInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepProfilerInterceptor });
139
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepProfilerInterceptor, decorators: [{
141
140
  type: Injectable
142
141
  }] });
143
142
 
@@ -164,9 +163,9 @@ const httpInterceptorProviders = [
164
163
  // will be copied to the ClipboardService and a (clipboardCopy) event will be emitted.
165
164
  class PepClipboardDirective {
166
165
  }
167
- PepClipboardDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepClipboardDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
168
- 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 });
169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepClipboardDirective, decorators: [{
166
+ PepClipboardDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepClipboardDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
167
+ 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 });
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepClipboardDirective, decorators: [{
170
169
  type: Directive,
171
170
  args: [{
172
171
  selector: '[pepClipboard]',
@@ -212,6 +211,14 @@ var PepScreenSizeType;
212
211
  })(PepScreenSizeType || (PepScreenSizeType = {}));
213
212
  // export type PepScreenSizeType = 'xl' | 'lg' | 'md' | 'sm' | 'xs';
214
213
  class PepLayoutService {
214
+ get onResize$() {
215
+ return this.resizeSubject.asObservable().pipe(distinctUntilChanged());
216
+ }
217
+ get onMouseOver$() {
218
+ return this.deviceHasMouseSubject
219
+ .asObservable()
220
+ .pipe(distinctUntilChanged());
221
+ }
215
222
  constructor(translate = null) {
216
223
  this.translate = translate;
217
224
  this.documentMouseoverListener = (event) => {
@@ -224,14 +231,6 @@ class PepLayoutService {
224
231
  document.addEventListener('mouseover', this.documentMouseoverListener, false);
225
232
  // document.addEventListener('touchstart', this._documentTouchstartListener, false);
226
233
  }
227
- get onResize$() {
228
- return this.resizeSubject.asObservable().pipe(distinctUntilChanged());
229
- }
230
- get onMouseOver$() {
231
- return this.deviceHasMouseSubject
232
- .asObservable()
233
- .pipe(distinctUntilChanged());
234
- }
235
234
  // private _documentTouchstartListener = (event: TouchEvent) => {
236
235
  // debugger;
237
236
  // this.isTouchDevice = true;
@@ -330,9 +329,9 @@ class PepLayoutService {
330
329
  return isRtl;
331
330
  }
332
331
  }
333
- 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 });
334
- PepLayoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutService, providedIn: 'root' });
335
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutService, decorators: [{
332
+ 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 });
333
+ PepLayoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLayoutService, providedIn: 'root' });
334
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLayoutService, decorators: [{
336
335
  type: Injectable,
337
336
  args: [{
338
337
  providedIn: 'root',
@@ -354,9 +353,9 @@ class PepRtlClassDirective {
354
353
  }
355
354
  }
356
355
  }
357
- 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 });
358
- PepRtlClassDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepRtlClassDirective, selector: "[pepRtlClass]", ngImport: i0 });
359
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepRtlClassDirective, decorators: [{
356
+ 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 });
357
+ PepRtlClassDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepRtlClassDirective, selector: "[pepRtlClass]", ngImport: i0 });
358
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepRtlClassDirective, decorators: [{
360
359
  type: Directive,
361
360
  args: [{
362
361
  selector: '[pepRtlClass]',
@@ -373,184 +372,489 @@ class PepRtlDirectionDirective {
373
372
  this.renderer.setAttribute(this.element.nativeElement, 'dir', isRtl ? 'rtl' : 'ltr');
374
373
  }
375
374
  }
376
- 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 });
377
- PepRtlDirectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepRtlDirectionDirective, selector: "[pepRtlDirection]", ngImport: i0 });
378
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepRtlDirectionDirective, decorators: [{
375
+ 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 });
376
+ PepRtlDirectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepRtlDirectionDirective, selector: "[pepRtlDirection]", ngImport: i0 });
377
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepRtlDirectionDirective, decorators: [{
379
378
  type: Directive,
380
379
  args: [{
381
380
  selector: '[pepRtlDirection]',
382
381
  }]
383
382
  }], ctorParameters: function () { return [{ type: PepLayoutService }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; } });
384
383
 
385
- class PepCapitalizePipe {
386
- transform(value) {
387
- if (value) {
388
- return value.charAt(0).toUpperCase() + value.slice(1);
389
- }
390
- return value;
384
+ class PepUtilitiesService {
385
+ constructor(translate = null) {
386
+ this.translate = translate;
387
+ this.culture = 'en-US';
388
+ this.culture = this.translate?.getBrowserCultureLang() || 'en-US';
389
+ // try {
390
+ // import(`@angular/common/locales/global/${this.culture}`);
391
+ // } catch {}
391
392
  }
392
- }
393
- PepCapitalizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepCapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
394
- PepCapitalizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepCapitalizePipe, name: "pepCapitalize" });
395
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepCapitalizePipe, decorators: [{
396
- type: Pipe,
397
- args: [{ name: 'pepCapitalize' }]
398
- }] });
399
- class PepEncodePipe {
400
- transform(value) {
401
- if (value) {
402
- const v = btoa(value);
403
- return v;
393
+ prepareNumberToFormat(value, fallbackValue = 0) {
394
+ // If the decimal separator is ',' change it to '.'
395
+ if (value?.length > 0) {
396
+ // If the decimal separator is ',' change it to '.' for let the formatting works.
397
+ value = this.changeDecimalSeparatorWhenItsComma(value);
398
+ // console.log('coerceNumberProperty after change decimal separator value is', value);
404
399
  }
405
- return value;
400
+ return coerceNumberProperty(value, fallbackValue);
406
401
  }
407
- }
408
- PepEncodePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepEncodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
409
- PepEncodePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepEncodePipe, name: "pepEncode" });
410
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepEncodePipe, decorators: [{
411
- type: Pipe,
412
- args: [{ name: 'pepEncode' }]
413
- }] });
414
- class PepEscapePipe {
415
- transform(value) {
416
- if (value) {
417
- const v = escape(value);
418
- return v;
402
+ // adapted from https://github.com/sindresorhus/parse-ms.
403
+ // moved to internal function because parse-ms is now pure ESM.
404
+ parseMs(milliseconds) {
405
+ if (typeof milliseconds !== 'number') {
406
+ throw new TypeError('Expected a number');
419
407
  }
420
- return value;
408
+ return {
409
+ days: Math.trunc(milliseconds / 86400000),
410
+ hours: Math.trunc(milliseconds / 3600000) % 24,
411
+ minutes: Math.trunc(milliseconds / 60000) % 60,
412
+ seconds: Math.trunc(milliseconds / 1000) % 60,
413
+ milliseconds: Math.trunc(milliseconds) % 1000
414
+ };
421
415
  }
422
- }
423
- PepEscapePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepEscapePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
424
- PepEscapePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepEscapePipe, name: "pepEscape" });
425
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepEscapePipe, decorators: [{
426
- type: Pipe,
427
- args: [{ name: 'pepEscape' }]
428
- }] });
429
- class PepReplaceLineBreaksPipe {
430
- transform(value) {
431
- const newValue = value.replace(/(<br\ ?\/?>)/g, ' ');
432
- return newValue;
416
+ // adapted from https://github.com/rafaelrinaldi/add-zero.
417
+ // moved to internal function b/c addZero is unmaintained (7+ years).
418
+ // stripped out negative sign logic since we're already doing it elsewhere.
419
+ addZero(value, digits = 2) {
420
+ digits = digits || 2;
421
+ let str = value.toString();
422
+ let size = 0;
423
+ size = digits - str.length + 1;
424
+ str = new Array(size).join('0').concat(str);
425
+ return str;
433
426
  }
434
- }
435
- PepReplaceLineBreaksPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepReplaceLineBreaksPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
436
- PepReplaceLineBreaksPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepReplaceLineBreaksPipe, name: "pepReplaceLineBreaks" });
437
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepReplaceLineBreaksPipe, decorators: [{
438
- type: Pipe,
439
- args: [{ name: 'pepReplaceLineBreaks' }]
440
- }] });
441
- class PepDateFormatterPipe {
442
- transform(value, culture, showTime = false) {
443
- let res = '';
444
- value = new Date(value);
445
- if (value) {
446
- res = value.toLocaleDateString(culture || 'en-US');
447
- if (showTime) {
448
- res +=
449
- ' ' +
450
- value.toLocaleTimeString(culture || 'en-US', {
451
- hour: '2-digit',
452
- minute: '2-digit',
453
- });
454
- }
427
+ isCurrencyShouldBeOnRight(currencySymbol) {
428
+ let res = false;
429
+ if (currencySymbol == "" ||
430
+ currencySymbol == "" ||
431
+ currencySymbol == "Ft" ||
432
+ currencySymbol == "Kč" ||
433
+ currencySymbol == "руб" ||
434
+ currencySymbol == "zł" ||
435
+ currencySymbol == "kr.") {
436
+ res = true;
455
437
  }
456
438
  return res;
457
439
  }
458
- }
459
- PepDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDateFormatterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
460
- PepDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepDateFormatterPipe, name: "pepDateFormatter" });
461
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDateFormatterPipe, decorators: [{
462
- type: Pipe,
463
- args: [{ name: 'pepDateFormatter' }]
464
- }] });
465
- class PepDateStringFormatterPipe {
466
- transform(value, culture, showTime = false) {
467
- let res = '';
468
- const tmpDate = new Date(value);
469
- if (value) {
470
- res = tmpDate.toLocaleDateString(culture || 'en-US');
471
- if (showTime) {
472
- res += ' ' + tmpDate.toLocaleTimeString(culture || 'en-US');
473
- }
440
+ cutValueByFractionDigits(value, maxFractionDigits) {
441
+ let res = value;
442
+ maxFractionDigits = maxFractionDigits || 2;
443
+ const decimalSeparator = this.getDecimalSeparator();
444
+ if (value.includes(decimalSeparator)) {
445
+ const valueArr = value.split(decimalSeparator);
446
+ // if (valueArr[1].length < maxFractionDigits) {
447
+ valueArr[1] = valueArr[1].padEnd(maxFractionDigits, '0');
448
+ // }
449
+ res = `${valueArr[0]}${decimalSeparator}${valueArr[1].slice(0, maxFractionDigits)}`;
474
450
  }
475
451
  return res;
476
452
  }
477
- }
478
- PepDateStringFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDateStringFormatterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
479
- PepDateStringFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepDateStringFormatterPipe, name: "pepDateStringFormatter" });
480
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDateStringFormatterPipe, decorators: [{
481
- type: Pipe,
482
- args: [{ name: 'pepDateStringFormatter' }]
483
- }] });
484
- class PepSafeHtmlPipe {
485
- constructor(sanitizer) {
486
- this.sanitizer = sanitizer;
487
- }
488
- transform(html) {
489
- return this.sanitizer.bypassSecurityTrustHtml(html);
490
- }
491
- }
492
- 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 });
493
- PepSafeHtmlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepSafeHtmlPipe, name: "pepSafeHtml" });
494
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepSafeHtmlPipe, decorators: [{
495
- type: Pipe,
496
- args: [{ name: 'pepSafeHtml' }]
497
- }], ctorParameters: function () { return [{ type: i1$1.DomSanitizer }]; } });
498
- class PepSafePipe {
499
- constructor(sanitizer) {
500
- this.sanitizer = sanitizer;
453
+ parseDate(dateStr, isDateTime = false) {
454
+ let retVal = null;
455
+ if (dateStr !== '') {
456
+ retVal = new Date(dateStr);
457
+ // Convert to date with no offset.
458
+ if (!isDateTime) {
459
+ const index = dateStr.indexOf('T');
460
+ if (index > 0) {
461
+ dateStr = dateStr.substring(0, index);
462
+ }
463
+ const dateText = dateStr.split('-');
464
+ if (dateText.length === 3) {
465
+ const year = Number(dateText[0]);
466
+ const month = Number(dateText[1]) - 1;
467
+ const day = Number(dateText[2]);
468
+ retVal = new Date(year, month, day, 0, retVal.getTimezoneOffset() * -1);
469
+ }
470
+ }
471
+ else {
472
+ retVal = new Date(retVal.getFullYear(), retVal.getMonth(), retVal.getDate(), retVal.getHours(), retVal.getMinutes() + retVal.getTimezoneOffset() * -1, retVal.getSeconds());
473
+ }
474
+ }
475
+ if (retVal && isNaN(retVal.getTime())) {
476
+ retVal = null;
477
+ }
478
+ return retVal;
501
479
  }
502
- transform(value, type) {
503
- switch (type) {
504
- case 'html':
505
- return this.sanitizer.bypassSecurityTrustHtml(value);
506
- case 'style':
507
- return this.sanitizer.bypassSecurityTrustStyle(value);
508
- case 'script':
509
- return this.sanitizer.bypassSecurityTrustScript(value);
510
- case 'url':
511
- return this.sanitizer.bypassSecurityTrustUrl(value);
512
- case 'resourceUrl':
513
- return this.sanitizer.bypassSecurityTrustResourceUrl(value);
514
- default:
515
- throw new Error(`Invalid safe type specified: ${type}`);
480
+ stringifyDate(date, isDateTime = false) {
481
+ if (date) {
482
+ if (isDateTime) {
483
+ return date.toISOString(); // include - offset
484
+ }
485
+ else {
486
+ const dateText = [];
487
+ dateText.push(date.getFullYear(), '-', date.getMonth() + 1, '-', date.getDate());
488
+ return dateText.join('');
489
+ }
490
+ }
491
+ else {
492
+ return '';
516
493
  }
517
494
  }
518
- }
519
- 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 });
520
- PepSafePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepSafePipe, name: "pepSafe" });
521
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepSafePipe, decorators: [{
522
- type: Pipe,
523
- args: [{ name: 'pepSafe' }]
524
- }], ctorParameters: function () { return [{ type: i1$1.DomSanitizer }]; } });
525
- class PepSplitUppercasePipe {
526
- transform(value) {
527
- const newValue = value.replace(/([a-z])([A-Z])/g, '$1 $2');
528
- return newValue;
495
+ isValueHtml(value) {
496
+ let res = false;
497
+ const REGEXP = /<\/?[a-z][\s\S]*>/i;
498
+ res = REGEXP.test(value);
499
+ return res;
529
500
  }
530
- }
531
- PepSplitUppercasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepSplitUppercasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
532
- PepSplitUppercasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepSplitUppercasePipe, name: "pepSplitUppercase" });
533
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepSplitUppercasePipe, decorators: [{
534
- type: Pipe,
535
- args: [{ name: 'pepSplitUppercase' }]
536
- }] });
537
- class PepToNumberPipe {
538
- transform(value) {
539
- return parseInt(value);
501
+ isJsonString(str) {
502
+ try {
503
+ JSON.parse(str);
504
+ }
505
+ catch (e) {
506
+ return false;
507
+ }
508
+ return true;
540
509
  }
541
- }
542
- PepToNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepToNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
543
- PepToNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepToNumberPipe, name: "pepToNumber" });
544
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepToNumberPipe, decorators: [{
545
- type: Pipe,
546
- args: [{ name: 'pepToNumber' }]
547
- }] });
548
-
549
- class DateAgoPipe {
550
- constructor(translateService) {
551
- this.translateService = translateService;
510
+ getSvgElementFromString(document, svgContent) {
511
+ const div = document.createElement('DIV');
512
+ // div.className = 'svg-icon';
513
+ // Add class svg-icon
514
+ if (svgContent?.length > 0) {
515
+ div.innerHTML = svgContent.replace('<svg ', '<svg class="svg-icon" ');
516
+ }
517
+ return (div.querySelector('svg') ||
518
+ document.createElementNS('http://www.w3.org/2000/svg', 'path'));
552
519
  }
553
- getCounterTranslation(counter, key) {
520
+ // formatPercent(value: any, digitsInfo = '1.0-2') {
521
+ formatPercent(value, minFractionDigits = 0, maxFractionDigits = 2) {
522
+ minFractionDigits = coerceNumberProperty(minFractionDigits, null);
523
+ maxFractionDigits = coerceNumberProperty(maxFractionDigits, null);
524
+ value = this.cutValueByFractionDigits(value?.toString(), Math.max(minFractionDigits, maxFractionDigits));
525
+ const number = this.prepareNumberToFormat(value);
526
+ if (number === 0) {
527
+ return '0%';
528
+ }
529
+ else {
530
+ // return formatPercent(number / 100, this.culture, digitsInfo);
531
+ return new Intl.NumberFormat(this.culture, {
532
+ style: 'percent',
533
+ minimumFractionDigits: minFractionDigits || 0,
534
+ maximumFractionDigits: maxFractionDigits || Math.max(2, minFractionDigits),
535
+ }).format(number / 100);
536
+ }
537
+ }
538
+ // formatCurrency(value: any, currencySign = '', digitsInfo = '1.2-2') {
539
+ formatCurrency(value, currencySign = '', minFractionDigits = 2, maxFractionDigits = 2, useGrouping = true) {
540
+ minFractionDigits = coerceNumberProperty(minFractionDigits, null);
541
+ maxFractionDigits = coerceNumberProperty(maxFractionDigits, null);
542
+ let res = '';
543
+ // If the decimal separator is the last digit
544
+ // if (value.length > 0 && value.indexOf(this.getDecimalSeparator()) === value.length -1) {
545
+ // res = value;
546
+ // } else {
547
+ value = this.cutValueByFractionDigits(value?.toString(), Math.max(minFractionDigits, maxFractionDigits));
548
+ const number = this.prepareNumberToFormat(value);
549
+ const styleOptions = {
550
+ // style: 'currency',
551
+ // currencySign: currencySign,
552
+ useGrouping: useGrouping,
553
+ minimumFractionDigits: minFractionDigits || Math.min(2, maxFractionDigits || 2),
554
+ maximumFractionDigits: maxFractionDigits || Math.max(2, minFractionDigits),
555
+ };
556
+ if (number === 0) {
557
+ // return formatCurrency(0, this.culture, currencySign, undefined, digitsInfo);
558
+ res = new Intl.NumberFormat(this.culture, styleOptions).format(0);
559
+ }
560
+ else {
561
+ // return formatCurrency(value, this.culture, currencySign, undefined, digitsInfo);
562
+ res = new Intl.NumberFormat(this.culture, styleOptions).format(number);
563
+ }
564
+ if (currencySign.length > 0) {
565
+ res = this.isCurrencyShouldBeOnRight(currencySign) ? `${res} ${currencySign}` : `${currencySign} ${res}`;
566
+ }
567
+ // }
568
+ return res;
569
+ }
570
+ // formatDecimal(value: any, digitsInfo = '1.2-2') {
571
+ formatDecimal(value, minFractionDigits = 2, maxFractionDigits = 2, useGrouping = true) {
572
+ minFractionDigits = coerceNumberProperty(minFractionDigits, null);
573
+ // console.log('formatDecimal minFractionDigits value is', minFractionDigits);
574
+ maxFractionDigits = coerceNumberProperty(maxFractionDigits, null);
575
+ // console.log('formatDecimal minFractionDigits value is', maxFractionDigits);
576
+ value = this.cutValueByFractionDigits(value?.toString(), Math.max(minFractionDigits, maxFractionDigits));
577
+ const number = this.prepareNumberToFormat(value);
578
+ // console.log('number value is', number);
579
+ if (number === 0) {
580
+ return '0';
581
+ }
582
+ else {
583
+ // return formatNumber(value, this.culture, digitsInfo);
584
+ const res = new Intl.NumberFormat(this.culture, {
585
+ useGrouping: useGrouping,
586
+ minimumFractionDigits: minFractionDigits || Math.min(2, maxFractionDigits || 2),
587
+ maximumFractionDigits: maxFractionDigits || Math.max(2, minFractionDigits),
588
+ }).format(number);
589
+ // console.log('Intl.NumberFormat value is', res);
590
+ return res;
591
+ }
592
+ }
593
+ // formatNumber(value: any, digitsInfo = '1.0-0'): string {
594
+ formatNumber(value, useGrouping = true) {
595
+ const number = this.prepareNumberToFormat(value);
596
+ if (number === 0) {
597
+ return '0';
598
+ }
599
+ else {
600
+ // return formatNumber(value, this.culture, digitsInfo);
601
+ return new Intl.NumberFormat(this.culture, {
602
+ useGrouping: useGrouping,
603
+ minimumFractionDigits: 0,
604
+ maximumFractionDigits: 0,
605
+ }).format(number);
606
+ }
607
+ }
608
+ /**
609
+ * Convert a number in milliseconds to a standard duration string.
610
+ * @param {number} value - duration in milliseconds
611
+ * @param {object} remoteLoaderOptions - formatDuration options object
612
+ * @param {boolean} [remoteLoaderOptions.leading=false] - add leading zero
613
+ * @returns string - formatted duration string
614
+ */
615
+ formatDuration(value, options = {}) {
616
+ const isNumber = _isNumberValue(value);
617
+ if (!isNumber) {
618
+ return value;
619
+ }
620
+ else {
621
+ let number = this.prepareNumberToFormat(value);
622
+ const leading = options?.leading || true;
623
+ const duration = options?.duration || 'milliseconds';
624
+ if (duration === 'seconds') {
625
+ number = number * 1000;
626
+ }
627
+ const unsignedMs = number < 0 ? -number : number;
628
+ const sign = number <= -1000 ? '-' : '';
629
+ const t = this.parseMs(unsignedMs);
630
+ const seconds = this.addZero(t.seconds);
631
+ if (t.days) {
632
+ return sign + t.days + ':' + this.addZero(t.hours) + ':' + this.addZero(t.minutes) + ':' + seconds;
633
+ }
634
+ if (t.hours) {
635
+ return sign + (leading ? this.addZero(t.hours) : t.hours) + ':' + this.addZero(t.minutes) + ':' + seconds;
636
+ }
637
+ return sign + (leading ? this.addZero(t.minutes) : t.minutes) + ':' + seconds;
638
+ }
639
+ }
640
+ incrementNumber(value) {
641
+ let numberValue = coerceNumberProperty(value, 0);
642
+ return (++numberValue).toString();
643
+ }
644
+ decrementNumber(value) {
645
+ let numberValue = coerceNumberProperty(value, 0);
646
+ return (--numberValue).toString();
647
+ }
648
+ getDecimalSeparator() {
649
+ const numberWithDecimalSeparator = 1.1;
650
+ return numberWithDecimalSeparator
651
+ .toLocaleString(this.culture)
652
+ .substring(1, 2);
653
+ }
654
+ changeDecimalSeparatorWhenItsComma(value, reverse = false) {
655
+ // If the decimal separator is ','
656
+ if (this.getDecimalSeparator() === ',') {
657
+ // In case that the value isn't string.
658
+ value = value?.toString() || '';
659
+ // If reverse change the number from '.' to ',' else do the opposite.
660
+ value = reverse ? value.replace('.', ',') : value.replace(',', '.');
661
+ }
662
+ return value;
663
+ }
664
+ isEqualNumber(numberAsString, numberAsString2) {
665
+ const number = this.prepareNumberToFormat(numberAsString);
666
+ const number2 = this.prepareNumberToFormat(numberAsString2);
667
+ return number === number2;
668
+ }
669
+ }
670
+ 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 });
671
+ PepUtilitiesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepUtilitiesService, providedIn: 'root' });
672
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepUtilitiesService, decorators: [{
673
+ type: Injectable,
674
+ args: [{
675
+ providedIn: 'root',
676
+ }]
677
+ }], ctorParameters: function () { return [{ type: i1.TranslateService, decorators: [{
678
+ type: Optional
679
+ }] }]; } });
680
+
681
+ class PepCapitalizePipe {
682
+ transform(value) {
683
+ if (value) {
684
+ return value.charAt(0).toUpperCase() + value.slice(1);
685
+ }
686
+ return value;
687
+ }
688
+ }
689
+ PepCapitalizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
690
+ PepCapitalizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepCapitalizePipe, name: "pepCapitalize" });
691
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCapitalizePipe, decorators: [{
692
+ type: Pipe,
693
+ args: [{ name: 'pepCapitalize' }]
694
+ }] });
695
+ class PepEncodePipe {
696
+ transform(value) {
697
+ if (value) {
698
+ const v = btoa(value);
699
+ return v;
700
+ }
701
+ return value;
702
+ }
703
+ }
704
+ PepEncodePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepEncodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
705
+ PepEncodePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepEncodePipe, name: "pepEncode" });
706
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepEncodePipe, decorators: [{
707
+ type: Pipe,
708
+ args: [{ name: 'pepEncode' }]
709
+ }] });
710
+ class PepEscapePipe {
711
+ transform(value) {
712
+ if (value) {
713
+ const v = escape(value);
714
+ return v;
715
+ }
716
+ return value;
717
+ }
718
+ }
719
+ PepEscapePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepEscapePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
720
+ PepEscapePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepEscapePipe, name: "pepEscape" });
721
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepEscapePipe, decorators: [{
722
+ type: Pipe,
723
+ args: [{ name: 'pepEscape' }]
724
+ }] });
725
+ class PepReplaceLineBreaksPipe {
726
+ transform(value) {
727
+ const newValue = value.replace(/(<br\ ?\/?>)/g, ' ');
728
+ return newValue;
729
+ }
730
+ }
731
+ PepReplaceLineBreaksPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepReplaceLineBreaksPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
732
+ PepReplaceLineBreaksPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepReplaceLineBreaksPipe, name: "pepReplaceLineBreaks" });
733
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepReplaceLineBreaksPipe, decorators: [{
734
+ type: Pipe,
735
+ args: [{ name: 'pepReplaceLineBreaks' }]
736
+ }] });
737
+ class PepDateFormatterPipe {
738
+ transform(value, culture, isDateTime = false) {
739
+ let res = '';
740
+ value = new Date(value);
741
+ if (value) {
742
+ res = value.toLocaleDateString(culture || 'en-US');
743
+ if (isDateTime) {
744
+ res +=
745
+ ' ' +
746
+ value.toLocaleTimeString(culture || 'en-US', {
747
+ hour: '2-digit',
748
+ minute: '2-digit',
749
+ });
750
+ }
751
+ }
752
+ return res;
753
+ }
754
+ }
755
+ PepDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDateFormatterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
756
+ PepDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepDateFormatterPipe, name: "pepDateFormatter" });
757
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDateFormatterPipe, decorators: [{
758
+ type: Pipe,
759
+ args: [{ name: 'pepDateFormatter' }]
760
+ }] });
761
+ class PepDateStringFormatterPipe {
762
+ transform(value, culture, isDateTime = false) {
763
+ let res = '';
764
+ const tmpDate = new Date(value);
765
+ if (value) {
766
+ res = tmpDate.toLocaleDateString(culture || 'en-US');
767
+ if (isDateTime) {
768
+ res += ' ' + tmpDate.toLocaleTimeString(culture || 'en-US');
769
+ }
770
+ }
771
+ return res;
772
+ }
773
+ }
774
+ PepDateStringFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDateStringFormatterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
775
+ PepDateStringFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepDateStringFormatterPipe, name: "pepDateStringFormatter" });
776
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDateStringFormatterPipe, decorators: [{
777
+ type: Pipe,
778
+ args: [{ name: 'pepDateStringFormatter' }]
779
+ }] });
780
+ class PepSafeHtmlPipe {
781
+ constructor(sanitizer) {
782
+ this.sanitizer = sanitizer;
783
+ }
784
+ transform(html) {
785
+ return this.sanitizer.bypassSecurityTrustHtml(html);
786
+ }
787
+ }
788
+ 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 });
789
+ PepSafeHtmlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepSafeHtmlPipe, name: "pepSafeHtml" });
790
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSafeHtmlPipe, decorators: [{
791
+ type: Pipe,
792
+ args: [{ name: 'pepSafeHtml' }]
793
+ }], ctorParameters: function () { return [{ type: i1$1.DomSanitizer }]; } });
794
+ class PepSafePipe {
795
+ constructor(sanitizer) {
796
+ this.sanitizer = sanitizer;
797
+ }
798
+ transform(value, type) {
799
+ switch (type) {
800
+ case 'html':
801
+ return this.sanitizer.bypassSecurityTrustHtml(value);
802
+ case 'style':
803
+ return this.sanitizer.bypassSecurityTrustStyle(value);
804
+ case 'script':
805
+ return this.sanitizer.bypassSecurityTrustScript(value);
806
+ case 'url':
807
+ return this.sanitizer.bypassSecurityTrustUrl(value);
808
+ case 'resourceUrl':
809
+ return this.sanitizer.bypassSecurityTrustResourceUrl(value);
810
+ default:
811
+ throw new Error(`Invalid safe type specified: ${type}`);
812
+ }
813
+ }
814
+ }
815
+ 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 });
816
+ PepSafePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepSafePipe, name: "pepSafe" });
817
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSafePipe, decorators: [{
818
+ type: Pipe,
819
+ args: [{ name: 'pepSafe' }]
820
+ }], ctorParameters: function () { return [{ type: i1$1.DomSanitizer }]; } });
821
+ class PepSplitUppercasePipe {
822
+ transform(value) {
823
+ const newValue = value.replace(/([a-z])([A-Z])/g, '$1 $2');
824
+ return newValue;
825
+ }
826
+ }
827
+ PepSplitUppercasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSplitUppercasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
828
+ PepSplitUppercasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepSplitUppercasePipe, name: "pepSplitUppercase" });
829
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSplitUppercasePipe, decorators: [{
830
+ type: Pipe,
831
+ args: [{ name: 'pepSplitUppercase' }]
832
+ }] });
833
+ class PepToNumberPipe {
834
+ constructor(utilitiesService) {
835
+ this.utilitiesService = utilitiesService;
836
+ }
837
+ transform(value) {
838
+ const decimalSeparator = this.utilitiesService.getDecimalSeparator();
839
+ // 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 '.'.
840
+ value = decimalSeparator === '.' ? value.replace(/,/g, '') : value.replace(/./g, '');
841
+ const numberValue = coerceNumberProperty(value);
842
+ return numberValue;
843
+ // return parseInt(value);
844
+ }
845
+ }
846
+ PepToNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepToNumberPipe, deps: [{ token: PepUtilitiesService }], target: i0.ɵɵFactoryTarget.Pipe });
847
+ PepToNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepToNumberPipe, name: "pepToNumber" });
848
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepToNumberPipe, decorators: [{
849
+ type: Pipe,
850
+ args: [{ name: 'pepToNumber' }]
851
+ }], ctorParameters: function () { return [{ type: PepUtilitiesService }]; } });
852
+
853
+ class DateAgoPipe {
854
+ constructor(translateService) {
855
+ this.translateService = translateService;
856
+ }
857
+ getCounterTranslation(counter, key) {
554
858
  const intervalText = this.translateService.get(`DATE_AGO.${key.toUpperCase()}`) || key;
555
859
  const agoText = this.translateService.get(counter === 1 ? 'DATE_AGO.SINGULAR' : 'DATE_AGO.PLURAL') || counter === 1 ? ' ago' : 's ago';
556
860
  return `${intervalText}${agoText}`;
@@ -575,415 +879,124 @@ class DateAgoPipe {
575
879
  if (counter > 0) {
576
880
  this.getCounterTranslation(counter, i);
577
881
  }
578
- }
579
- }
580
- return value;
581
- }
582
- }
583
- DateAgoPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DateAgoPipe, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Pipe });
584
- DateAgoPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: DateAgoPipe, name: "dateAgo" });
585
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DateAgoPipe, decorators: [{
586
- type: Pipe,
587
- args: [{
588
- name: 'dateAgo'
589
- }]
590
- }], ctorParameters: function () { return [{ type: i1.TranslateService }]; } });
591
-
592
- class PepInputAutoWidthDirective {
593
- constructor(renderer, el) {
594
- this.renderer = renderer;
595
- this.el = el;
596
- this.includePadding = true;
597
- this.input = null;
598
- }
599
- ngAfterViewInit() {
600
- if (this.el.nativeElement.tagName.toLowerCase() === 'input') {
601
- this.input = this.el;
602
- }
603
- else {
604
- const list = this.el.nativeElement.querySelectorAll('input');
605
- this.input = list.length > 0 ? list[0] : null;
606
- }
607
- if (this.input) {
608
- this.input.addEventListener('blur', this.setWidthUsingText.bind(this));
609
- this.input.addEventListener('keyup', this.setWidthUsingText.bind(this));
610
- }
611
- this.setWidthUsingText();
612
- }
613
- ngOnDestroy() {
614
- this.input.removeEventListener('blur', this.setWidthUsingText.bind(this));
615
- this.input.removeEventListener('keyup', this.setWidthUsingText.bind(this));
616
- }
617
- get paddingWidth() {
618
- return this.includePadding
619
- ? this._sumPropertyValues(['padding-left', 'padding-right'])
620
- : 0;
621
- }
622
- get style() {
623
- return getComputedStyle(this.input, '');
624
- }
625
- setWidth(width) {
626
- this.renderer.setStyle(this.input, 'width', width + 'px');
627
- }
628
- setWidthUsingText() {
629
- if (this.input) {
630
- const text = this.input.value;
631
- this.setWidth(this.textWidth(text) + this.paddingWidth);
632
- }
633
- }
634
- _sumPropertyValues(properties) {
635
- return properties
636
- .map((property) => parseInt(this.style.getPropertyValue(property), 10))
637
- .reduce((a, b) => a + b, 0);
638
- }
639
- textWidth(value) {
640
- const ctx = this.renderer.createElement('canvas').getContext('2d');
641
- const { fontStyle, fontVariant, fontWeight, fontSize, fontFamily, } = this.style;
642
- // font string format: {normal, normal, 700, 20px, Roboto, "Helvetica Neue", sans-serif}
643
- ctx.font =
644
- fontStyle +
645
- ' ' +
646
- fontVariant +
647
- ' ' +
648
- fontWeight +
649
- ' ' +
650
- fontSize +
651
- ' ' +
652
- fontFamily;
653
- return ctx ? ctx.measureText(value).width : 0;
654
- }
655
- }
656
- 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 });
657
- PepInputAutoWidthDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepInputAutoWidthDirective, selector: "[pepAutoWidth]", inputs: { includePadding: "includePadding" }, ngImport: i0 });
658
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepInputAutoWidthDirective, decorators: [{
659
- type: Directive,
660
- args: [{
661
- selector: '[pepAutoWidth]',
662
- }]
663
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { includePadding: [{
664
- type: Input
665
- }] } });
666
-
667
- class PepButtonBlurDirective {
668
- constructor(element) {
669
- this.element = element;
670
- }
671
- onClick() {
672
- setTimeout(() => {
673
- this.element.nativeElement.blur();
674
- }, 0);
675
- }
676
- }
677
- PepButtonBlurDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepButtonBlurDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
678
- PepButtonBlurDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepButtonBlurDirective, selector: "[pepButtonBlur]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
679
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepButtonBlurDirective, decorators: [{
680
- type: Directive,
681
- args: [{
682
- selector: '[pepButtonBlur]',
683
- }]
684
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { onClick: [{
685
- type: HostListener,
686
- args: ['click']
687
- }] } });
688
-
689
- class PepUtilitiesService {
690
- constructor(translate = null) {
691
- this.translate = translate;
692
- this.culture = 'en-US';
693
- this.culture = this.translate?.getBrowserCultureLang() || 'en-US';
694
- // try {
695
- // import(`@angular/common/locales/global/${this.culture}`);
696
- // } catch {}
697
- }
698
- prepareNumberToFormat(value, fallbackValue = 0) {
699
- // If the decimal separator is ',' change it to '.'
700
- if (value?.length > 0) {
701
- // If the decimal separator is ',' change it to '.' for let the formatting works.
702
- value = this.changeDecimalSeparatorWhenItsComma(value);
703
- // console.log('coerceNumberProperty after change decimal separator value is', value);
704
- }
705
- return coerceNumberProperty(value, fallbackValue);
706
- }
707
- // adapted from https://github.com/sindresorhus/parse-ms.
708
- // moved to internal function because parse-ms is now pure ESM.
709
- parseMs(milliseconds) {
710
- if (typeof milliseconds !== 'number') {
711
- throw new TypeError('Expected a number');
712
- }
713
- return {
714
- days: Math.trunc(milliseconds / 86400000),
715
- hours: Math.trunc(milliseconds / 3600000) % 24,
716
- minutes: Math.trunc(milliseconds / 60000) % 60,
717
- seconds: Math.trunc(milliseconds / 1000) % 60,
718
- milliseconds: Math.trunc(milliseconds) % 1000
719
- };
720
- }
721
- // adapted from https://github.com/rafaelrinaldi/add-zero.
722
- // moved to internal function b/c addZero is unmaintained (7+ years).
723
- // stripped out negative sign logic since we're already doing it elsewhere.
724
- addZero(value, digits = 2) {
725
- digits = digits || 2;
726
- let str = value.toString();
727
- let size = 0;
728
- size = digits - str.length + 1;
729
- str = new Array(size).join('0').concat(str);
730
- return str;
731
- }
732
- isCurrencyShouldBeOnRight(currencySymbol) {
733
- let res = false;
734
- if (currencySymbol == "€" ||
735
- currencySymbol == "₪" ||
736
- currencySymbol == "Ft" ||
737
- currencySymbol == "Kč" ||
738
- currencySymbol == "руб" ||
739
- currencySymbol == "zł" ||
740
- currencySymbol == "kr.") {
741
- res = true;
742
- }
743
- return res;
744
- }
745
- cutValueByFractionDigits(value, maxFractionDigits) {
746
- let res = value;
747
- maxFractionDigits = maxFractionDigits || 2;
748
- const decimalSeparator = this.getDecimalSeparator();
749
- if (value.includes(decimalSeparator)) {
750
- const valueArr = value.split(decimalSeparator);
751
- // if (valueArr[1].length < maxFractionDigits) {
752
- valueArr[1] = valueArr[1].padEnd(maxFractionDigits, '0');
753
- // }
754
- res = `${valueArr[0]}${decimalSeparator}${valueArr[1].slice(0, maxFractionDigits)}`;
755
- }
756
- return res;
757
- }
758
- parseDate(dateStr, showTime = false) {
759
- let retVal = null;
760
- if (dateStr !== '') {
761
- retVal = new Date(dateStr);
762
- // Convert to date with no offset.
763
- if (!showTime) {
764
- const index = dateStr.indexOf('T');
765
- if (index > 0) {
766
- dateStr = dateStr.substring(0, index);
767
- }
768
- const dateText = dateStr.split('-');
769
- if (dateText.length === 3) {
770
- const year = Number(dateText[0]);
771
- const month = Number(dateText[1]) - 1;
772
- const day = Number(dateText[2]);
773
- retVal = new Date(year, month, day, 0, retVal.getTimezoneOffset() * -1);
774
- }
775
- }
776
- else {
777
- retVal = new Date(retVal.getFullYear(), retVal.getMonth(), retVal.getDate(), retVal.getHours(), retVal.getMinutes() + retVal.getTimezoneOffset() * -1, retVal.getSeconds());
778
- }
779
- }
780
- if (retVal && isNaN(retVal.getTime())) {
781
- retVal = null;
782
- }
783
- return retVal;
784
- }
785
- stringifyDate(date, showTime = false) {
786
- if (date) {
787
- if (showTime) {
788
- return date.toISOString(); // include - offset
789
- }
790
- else {
791
- const dateText = [];
792
- dateText.push(date.getFullYear(), '-', date.getMonth() + 1, '-', date.getDate());
793
- return dateText.join('');
794
- }
795
- }
796
- else {
797
- return '';
798
- }
799
- }
800
- isValueHtml(value) {
801
- let res = false;
802
- const REGEXP = /<\/?[a-z][\s\S]*>/i;
803
- res = REGEXP.test(value);
804
- return res;
805
- }
806
- isJsonString(str) {
807
- try {
808
- JSON.parse(str);
809
- }
810
- catch (e) {
811
- return false;
812
- }
813
- return true;
814
- }
815
- getSvgElementFromString(document, svgContent) {
816
- const div = document.createElement('DIV');
817
- // div.className = 'svg-icon';
818
- // Add class svg-icon
819
- if (svgContent?.length > 0) {
820
- div.innerHTML = svgContent.replace('<svg ', '<svg class="svg-icon" ');
821
- }
822
- return (div.querySelector('svg') ||
823
- document.createElementNS('http://www.w3.org/2000/svg', 'path'));
824
- }
825
- // formatPercent(value: any, digitsInfo = '1.0-2') {
826
- formatPercent(value, minFractionDigits = 0, maxFractionDigits = 2) {
827
- minFractionDigits = coerceNumberProperty(minFractionDigits, null);
828
- maxFractionDigits = coerceNumberProperty(maxFractionDigits, null);
829
- value = this.cutValueByFractionDigits(value?.toString(), Math.max(minFractionDigits, maxFractionDigits));
830
- const number = this.prepareNumberToFormat(value);
831
- if (number === 0) {
832
- return '0%';
833
- }
834
- else {
835
- // return formatPercent(number / 100, this.culture, digitsInfo);
836
- return new Intl.NumberFormat(this.culture, {
837
- style: 'percent',
838
- minimumFractionDigits: minFractionDigits || 0,
839
- maximumFractionDigits: maxFractionDigits || Math.max(2, minFractionDigits),
840
- }).format(number / 100);
882
+ }
841
883
  }
884
+ return value;
842
885
  }
843
- // formatCurrency(value: any, currencySign = '', digitsInfo = '1.2-2') {
844
- formatCurrency(value, currencySign = '', minFractionDigits = 2, maxFractionDigits = 2, useGrouping = true) {
845
- minFractionDigits = coerceNumberProperty(minFractionDigits, null);
846
- maxFractionDigits = coerceNumberProperty(maxFractionDigits, null);
847
- let res = '';
848
- // If the decimal separator is the last digit
849
- // if (value.length > 0 && value.indexOf(this.getDecimalSeparator()) === value.length -1) {
850
- // res = value;
851
- // } else {
852
- value = this.cutValueByFractionDigits(value?.toString(), Math.max(minFractionDigits, maxFractionDigits));
853
- const number = this.prepareNumberToFormat(value);
854
- const styleOptions = {
855
- // style: 'currency',
856
- // currencySign: currencySign,
857
- useGrouping: useGrouping,
858
- minimumFractionDigits: minFractionDigits || Math.min(2, maxFractionDigits || 2),
859
- maximumFractionDigits: maxFractionDigits || Math.max(2, minFractionDigits),
860
- };
861
- if (number === 0) {
862
- // return formatCurrency(0, this.culture, currencySign, undefined, digitsInfo);
863
- res = new Intl.NumberFormat(this.culture, styleOptions).format(0);
864
- }
865
- else {
866
- // return formatCurrency(value, this.culture, currencySign, undefined, digitsInfo);
867
- res = new Intl.NumberFormat(this.culture, styleOptions).format(number);
868
- }
869
- if (currencySign.length > 0) {
870
- res = this.isCurrencyShouldBeOnRight(currencySign) ? `${res} ${currencySign}` : `${currencySign} ${res}`;
871
- }
872
- // }
873
- return res;
886
+ }
887
+ DateAgoPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateAgoPipe, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Pipe });
888
+ DateAgoPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DateAgoPipe, name: "dateAgo" });
889
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateAgoPipe, decorators: [{
890
+ type: Pipe,
891
+ args: [{
892
+ name: 'dateAgo'
893
+ }]
894
+ }], ctorParameters: function () { return [{ type: i1.TranslateService }]; } });
895
+
896
+ class PepInputAutoWidthDirective {
897
+ constructor(renderer, el) {
898
+ this.renderer = renderer;
899
+ this.el = el;
900
+ this.includePadding = true;
901
+ this.input = null;
874
902
  }
875
- // formatDecimal(value: any, digitsInfo = '1.2-2') {
876
- formatDecimal(value, minFractionDigits = 2, maxFractionDigits = 2, useGrouping = true) {
877
- minFractionDigits = coerceNumberProperty(minFractionDigits, null);
878
- // console.log('formatDecimal minFractionDigits value is', minFractionDigits);
879
- maxFractionDigits = coerceNumberProperty(maxFractionDigits, null);
880
- // console.log('formatDecimal minFractionDigits value is', maxFractionDigits);
881
- value = this.cutValueByFractionDigits(value?.toString(), Math.max(minFractionDigits, maxFractionDigits));
882
- const number = this.prepareNumberToFormat(value);
883
- // console.log('number value is', number);
884
- if (number === 0) {
885
- return '0';
903
+ ngAfterViewInit() {
904
+ if (this.el.nativeElement.tagName.toLowerCase() === 'input') {
905
+ this.input = this.el;
886
906
  }
887
907
  else {
888
- // return formatNumber(value, this.culture, digitsInfo);
889
- const res = new Intl.NumberFormat(this.culture, {
890
- useGrouping: useGrouping,
891
- minimumFractionDigits: minFractionDigits || Math.min(2, maxFractionDigits || 2),
892
- maximumFractionDigits: maxFractionDigits || Math.max(2, minFractionDigits),
893
- }).format(number);
894
- // console.log('Intl.NumberFormat value is', res);
895
- return res;
896
- }
897
- }
898
- // formatNumber(value: any, digitsInfo = '1.0-0'): string {
899
- formatNumber(value, useGrouping = true) {
900
- const number = this.prepareNumberToFormat(value);
901
- if (number === 0) {
902
- return '0';
908
+ const list = this.el.nativeElement.querySelectorAll('input');
909
+ this.input = list.length > 0 ? list[0] : null;
903
910
  }
904
- else {
905
- // return formatNumber(value, this.culture, digitsInfo);
906
- return new Intl.NumberFormat(this.culture, {
907
- useGrouping: useGrouping,
908
- minimumFractionDigits: 0,
909
- maximumFractionDigits: 0,
910
- }).format(number);
911
+ if (this.input) {
912
+ this.input.addEventListener('blur', this.setWidthUsingText.bind(this));
913
+ this.input.addEventListener('keyup', this.setWidthUsingText.bind(this));
911
914
  }
915
+ this.setWidthUsingText();
912
916
  }
913
- /**
914
- * Convert a number in milliseconds to a standard duration string.
915
- * @param {number} value - duration in milliseconds
916
- * @param {object} options - formatDuration options object
917
- * @param {boolean} [options.leading=false] - add leading zero
918
- * @returns string - formatted duration string
919
- */
920
- formatDuration(value, options = {}) {
921
- const isNumber = _isNumberValue(value);
922
- if (!isNumber) {
923
- return value;
924
- }
925
- else {
926
- let number = this.prepareNumberToFormat(value);
927
- const leading = options?.leading || true;
928
- const duration = options?.duration || 'milliseconds';
929
- if (duration === 'seconds') {
930
- number = number * 1000;
931
- }
932
- const unsignedMs = number < 0 ? -number : number;
933
- const sign = number <= -1000 ? '-' : '';
934
- const t = this.parseMs(unsignedMs);
935
- const seconds = this.addZero(t.seconds);
936
- if (t.days) {
937
- return sign + t.days + ':' + this.addZero(t.hours) + ':' + this.addZero(t.minutes) + ':' + seconds;
938
- }
939
- if (t.hours) {
940
- return sign + (leading ? this.addZero(t.hours) : t.hours) + ':' + this.addZero(t.minutes) + ':' + seconds;
941
- }
942
- return sign + (leading ? this.addZero(t.minutes) : t.minutes) + ':' + seconds;
943
- }
917
+ ngOnDestroy() {
918
+ this.input.removeEventListener('blur', this.setWidthUsingText.bind(this));
919
+ this.input.removeEventListener('keyup', this.setWidthUsingText.bind(this));
944
920
  }
945
- incrementNumber(value) {
946
- let numberValue = coerceNumberProperty(value, 0);
947
- return (++numberValue).toString();
921
+ get paddingWidth() {
922
+ return this.includePadding
923
+ ? this._sumPropertyValues(['padding-left', 'padding-right'])
924
+ : 0;
948
925
  }
949
- decrementNumber(value) {
950
- let numberValue = coerceNumberProperty(value, 0);
951
- return (--numberValue).toString();
926
+ get style() {
927
+ return getComputedStyle(this.input, '');
952
928
  }
953
- getDecimalSeparator() {
954
- const numberWithDecimalSeparator = 1.1;
955
- return numberWithDecimalSeparator
956
- .toLocaleString(this.culture)
957
- .substring(1, 2);
929
+ setWidth(width) {
930
+ this.renderer.setStyle(this.input, 'width', width + 'px');
958
931
  }
959
- changeDecimalSeparatorWhenItsComma(value, reverse = false) {
960
- // If the decimal separator is ','
961
- if (this.getDecimalSeparator() === ',') {
962
- // In case that the value isn't string.
963
- value = value?.toString() || '';
964
- // If reverse change the number from '.' to ',' else do the opposite.
965
- value = reverse ? value.replace('.', ',') : value.replace(',', '.');
932
+ setWidthUsingText() {
933
+ if (this.input) {
934
+ const text = this.input.value;
935
+ this.setWidth(this.textWidth(text) + this.paddingWidth);
966
936
  }
967
- return value;
968
937
  }
969
- isEqualNumber(numberAsString, numberAsString2) {
970
- const number = this.prepareNumberToFormat(numberAsString);
971
- const number2 = this.prepareNumberToFormat(numberAsString2);
972
- return number === number2;
938
+ _sumPropertyValues(properties) {
939
+ return properties
940
+ .map((property) => parseInt(this.style.getPropertyValue(property), 10))
941
+ .reduce((a, b) => a + b, 0);
942
+ }
943
+ textWidth(value) {
944
+ const ctx = this.renderer.createElement('canvas').getContext('2d');
945
+ const { fontStyle, fontVariant, fontWeight, fontSize, fontFamily, } = this.style;
946
+ // font string format: {normal, normal, 700, 20px, Roboto, "Helvetica Neue", sans-serif}
947
+ ctx.font =
948
+ fontStyle +
949
+ ' ' +
950
+ fontVariant +
951
+ ' ' +
952
+ fontWeight +
953
+ ' ' +
954
+ fontSize +
955
+ ' ' +
956
+ fontFamily;
957
+ return ctx ? ctx.measureText(value).width : 0;
973
958
  }
974
959
  }
975
- 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 });
976
- PepUtilitiesServiceprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepUtilitiesService, providedIn: 'root' });
977
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepUtilitiesService, decorators: [{
978
- type: Injectable,
960
+ 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 });
961
+ PepInputAutoWidthDirectivedir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepInputAutoWidthDirective, selector: "[pepAutoWidth]", inputs: { includePadding: "includePadding" }, ngImport: i0 });
962
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepInputAutoWidthDirective, decorators: [{
963
+ type: Directive,
979
964
  args: [{
980
- providedIn: 'root',
965
+ selector: '[pepAutoWidth]',
981
966
  }]
982
- }], ctorParameters: function () { return [{ type: i1.TranslateService, decorators: [{
983
- type: Optional
984
- }] }]; } });
967
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { includePadding: [{
968
+ type: Input
969
+ }] } });
970
+
971
+ class PepButtonBlurDirective {
972
+ constructor(element) {
973
+ this.element = element;
974
+ }
975
+ onClick() {
976
+ setTimeout(() => {
977
+ this.element.nativeElement.blur();
978
+ }, 0);
979
+ }
980
+ }
981
+ PepButtonBlurDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepButtonBlurDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
982
+ PepButtonBlurDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepButtonBlurDirective, selector: "[pepButtonBlur]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
983
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepButtonBlurDirective, decorators: [{
984
+ type: Directive,
985
+ args: [{
986
+ selector: '[pepButtonBlur]',
987
+ }]
988
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { onClick: [{
989
+ type: HostListener,
990
+ args: ['click']
991
+ }] } });
985
992
 
986
993
  class PepButtonLoaderDirective {
994
+ set finish(value) {
995
+ this._finish = value;
996
+ if (this._isLoading && value) {
997
+ this.toggleLoading(false);
998
+ }
999
+ }
987
1000
  constructor(renderer, element, utilitiesService, document) {
988
1001
  this.renderer = renderer;
989
1002
  this.element = element;
@@ -997,12 +1010,6 @@ class PepButtonLoaderDirective {
997
1010
  this._isLoading = false;
998
1011
  this._finish = null;
999
1012
  }
1000
- set finish(value) {
1001
- this._finish = value;
1002
- if (this._isLoading && value) {
1003
- this.toggleLoading(false);
1004
- }
1005
- }
1006
1013
  clickEvent(event) {
1007
1014
  this.toggleLoading(true);
1008
1015
  // In case that the finish input is supplied - init it.
@@ -1062,9 +1069,9 @@ class PepButtonLoaderDirective {
1062
1069
  }
1063
1070
  }
1064
1071
  }
1065
- 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 });
1066
- 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 });
1067
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepButtonLoaderDirective, decorators: [{
1072
+ 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 });
1073
+ 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 });
1074
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepButtonLoaderDirective, decorators: [{
1068
1075
  type: Directive,
1069
1076
  args: [{
1070
1077
  selector: '[pepButtonLoader]',
@@ -1106,9 +1113,9 @@ class PepMenuBlurDirective {
1106
1113
  }, 0);
1107
1114
  }
1108
1115
  }
1109
- PepMenuBlurDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepMenuBlurDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1110
- PepMenuBlurDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepMenuBlurDirective, selector: "[pepMenuBlur]", host: { listeners: { "menuClosed": "menuClosedEvent()", "menuOpened": "menuOpenedEvent()" } }, ngImport: i0 });
1111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepMenuBlurDirective, decorators: [{
1116
+ PepMenuBlurDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepMenuBlurDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1117
+ PepMenuBlurDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepMenuBlurDirective, selector: "[pepMenuBlur]", host: { listeners: { "menuClosed": "menuClosedEvent()", "menuOpened": "menuOpenedEvent()" } }, ngImport: i0 });
1118
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepMenuBlurDirective, decorators: [{
1112
1119
  type: Directive,
1113
1120
  args: [{
1114
1121
  selector: '[pepMenuBlur]',
@@ -1130,9 +1137,9 @@ class PepDataQaDirective {
1130
1137
  this.renderer.setAttribute(this.element.nativeElement, 'data-qa', this.dataQa);
1131
1138
  }
1132
1139
  }
1133
- 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 });
1134
- PepDataQaDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepDataQaDirective, selector: "[pepDataQa]", inputs: { dataQa: ["pepDataQa", "dataQa"] }, ngImport: i0 });
1135
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDataQaDirective, decorators: [{
1140
+ 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 });
1141
+ PepDataQaDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepDataQaDirective, selector: "[pepDataQa]", inputs: { dataQa: ["pepDataQa", "dataQa"] }, ngImport: i0 });
1142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDataQaDirective, decorators: [{
1136
1143
  type: Directive,
1137
1144
  args: [{
1138
1145
  selector: '[pepDataQa]',
@@ -1153,9 +1160,9 @@ class PepPreventMultiClickDirective {
1153
1160
  }, this.disabledTime);
1154
1161
  }
1155
1162
  }
1156
- PepPreventMultiClickDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepPreventMultiClickDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1157
- 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 });
1158
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepPreventMultiClickDirective, decorators: [{
1163
+ PepPreventMultiClickDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPreventMultiClickDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1164
+ 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 });
1165
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPreventMultiClickDirective, decorators: [{
1159
1166
  type: Directive,
1160
1167
  args: [{
1161
1168
  selector: '[pepPreventMultiClick]',
@@ -1311,9 +1318,9 @@ class PepPrintDirective {
1311
1318
  popupWin.document.close();
1312
1319
  }
1313
1320
  }
1314
- PepPrintDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepPrintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1315
- 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 });
1316
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepPrintDirective, decorators: [{
1321
+ PepPrintDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPrintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1322
+ 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 });
1323
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPrintDirective, decorators: [{
1317
1324
  type: Directive,
1318
1325
  args: [{
1319
1326
  selector: "[pepPrint]"
@@ -1430,9 +1437,9 @@ class PepJwtHelperService {
1430
1437
  return authScheme;
1431
1438
  }
1432
1439
  }
1433
- PepJwtHelperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepJwtHelperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1434
- PepJwtHelperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepJwtHelperService, providedIn: 'root' });
1435
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepJwtHelperService, decorators: [{
1440
+ PepJwtHelperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepJwtHelperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1441
+ PepJwtHelperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepJwtHelperService, providedIn: 'root' });
1442
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepJwtHelperService, decorators: [{
1436
1443
  type: Injectable,
1437
1444
  args: [{
1438
1445
  providedIn: 'root',
@@ -1499,9 +1506,9 @@ class PepSessionService {
1499
1506
  return tokenObj ? tokenObj[this.PAPI_BASE_URL_KEY] : null;
1500
1507
  }
1501
1508
  }
1502
- PepSessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepSessionService, deps: [{ token: PepJwtHelperService }], target: i0.ɵɵFactoryTarget.Injectable });
1503
- PepSessionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepSessionService, providedIn: 'root' });
1504
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepSessionService, decorators: [{
1509
+ PepSessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSessionService, deps: [{ token: PepJwtHelperService }], target: i0.ɵɵFactoryTarget.Injectable });
1510
+ PepSessionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSessionService, providedIn: 'root' });
1511
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSessionService, decorators: [{
1505
1512
  type: Injectable,
1506
1513
  args: [{
1507
1514
  providedIn: 'root',
@@ -1747,9 +1754,9 @@ class PepFileService {
1747
1754
  return url;
1748
1755
  }
1749
1756
  }
1750
- PepFileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepFileService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1751
- PepFileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepFileService, providedIn: 'root' });
1752
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepFileService, decorators: [{
1757
+ PepFileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepFileService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1758
+ PepFileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepFileService, providedIn: 'root' });
1759
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepFileService, decorators: [{
1753
1760
  type: Injectable,
1754
1761
  args: [{
1755
1762
  providedIn: 'root',
@@ -1806,6 +1813,7 @@ class PepCustomizationService {
1806
1813
  field.disabled ? formControl.disable() : formControl.enable();
1807
1814
  const validators = field.getValidators();
1808
1815
  formControl.setValidators(validators);
1816
+ formControl.updateValueAndValidity();
1809
1817
  }
1810
1818
  }
1811
1819
  }
@@ -2180,6 +2188,14 @@ class PepCustomizationService {
2180
2188
  themeVars[PepCustomizationService.COLOR_QS_KEY + '-l'] =
2181
2189
  'var(' + PepCustomizationService.COLOR_SYSTEM_PRIMARY_KEY + '-l)';
2182
2190
  }
2191
+ getDefaultThemeLoaderCustomizationVariables(themeVars) {
2192
+ themeVars[PepCustomizationService.COLOR_LOADER_KEY + '-h'] =
2193
+ 'var(' + PepCustomizationService.COLOR_SYSTEM_CAUTION_KEY + '-h)';
2194
+ themeVars[PepCustomizationService.COLOR_LOADER_KEY + '-s'] =
2195
+ 'var(' + PepCustomizationService.COLOR_SYSTEM_CAUTION_KEY + '-s)';
2196
+ themeVars[PepCustomizationService.COLOR_LOADER_KEY + '-l'] =
2197
+ 'var(' + PepCustomizationService.COLOR_SYSTEM_CAUTION_KEY + '-l)';
2198
+ }
2183
2199
  getDefaultThemeTopHeaderCustomizationVariables(themeVars) {
2184
2200
  const topHeaderState = 'strong';
2185
2201
  themeVars[PepCustomizationService.STYLE_TOP_HEADER_KEY] = topHeaderState;
@@ -2187,6 +2203,11 @@ class PepCustomizationService {
2187
2203
  themeVars[PepCustomizationService.COLOR_TOP_HEADER_KEY + '-s'] = '';
2188
2204
  themeVars[PepCustomizationService.COLOR_TOP_HEADER_KEY + '-l'] = '';
2189
2205
  }
2206
+ getDefaultThemeTopLegacyCustomizationVariables(themeVars) {
2207
+ themeVars[PepCustomizationService.COLOR_TOP_LEGACY_KEY + '-h'] = '';
2208
+ themeVars[PepCustomizationService.COLOR_TOP_LEGACY_KEY + '-s'] = '';
2209
+ themeVars[PepCustomizationService.COLOR_TOP_LEGACY_KEY + '-l'] = '';
2210
+ }
2190
2211
  // getDefaultThemeBrandingCustomizationVariables(themeVars: any): void {
2191
2212
  // themeVars[PepCustomizationService.BRANDING_LOGO_SRC] = '/assets/images/Pepperi-Logo-HiRes.png';
2192
2213
  // themeVars[PepCustomizationService.FAV_ICON_SRC] = '/assets/favicon.ico';
@@ -2217,6 +2238,8 @@ class PepCustomizationService {
2217
2238
  this.getDefaultThemeQSCustomizationVariables(themeVars);
2218
2239
  // Declare default top header customization.
2219
2240
  this.getDefaultThemeTopHeaderCustomizationVariables(themeVars);
2241
+ // Declare default top legacy customization.
2242
+ this.getDefaultThemeTopLegacyCustomizationVariables(themeVars);
2220
2243
  // // Declare default branding logo's customization
2221
2244
  // this.getDefaultThemeBrandingCustomizationVariables(themeVars);
2222
2245
  return themeVars;
@@ -2445,8 +2468,11 @@ PepCustomizationService.COLOR_STRONG_KEY = '--pep-color-strong';
2445
2468
  PepCustomizationService.COLOR_REGULAR_KEY = '--pep-color-regular';
2446
2469
  PepCustomizationService.COLOR_WEAK_KEY = '--pep-color-weak';
2447
2470
  // Top header variables keys
2471
+ PepCustomizationService.COLOR_TOP_LEGACY_KEY = '--pep-color-legacy';
2448
2472
  PepCustomizationService.COLOR_TOP_HEADER_KEY = '--pep-color-top-header';
2449
2473
  PepCustomizationService.STYLE_TOP_HEADER_KEY = '--pep-style-top-header';
2474
+ // Loader variables keys
2475
+ PepCustomizationService.COLOR_LOADER_KEY = '--pep-color-loader';
2450
2476
  // QS variables keys
2451
2477
  PepCustomizationService.COLOR_QS_KEY = '--pep-color-qs';
2452
2478
  PepCustomizationService.STYLE_QS_KEY = '--pep-style-qs';
@@ -2521,9 +2547,9 @@ PepCustomizationService.TABLE_BORDER_RADIUS_KEY = '--pep-table-border-radius';
2521
2547
  PepCustomizationService.DEFAULT_HEADER_HEIGHT = 64; // Default
2522
2548
  PepCustomizationService.DEFAULT_SPINNER_COLOR = '#78aa00';
2523
2549
  PepCustomizationService.DEFAULT_BRANDING_COLOR = '#fff';
2524
- 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 });
2525
- PepCustomizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepCustomizationService, providedIn: 'root' });
2526
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepCustomizationService, decorators: [{
2550
+ 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 });
2551
+ PepCustomizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCustomizationService, providedIn: 'root' });
2552
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCustomizationService, decorators: [{
2527
2553
  type: Injectable,
2528
2554
  args: [{
2529
2555
  providedIn: 'root',
@@ -2566,9 +2592,9 @@ class PepDivLoaderDirective {
2566
2592
  this.renderer.addClass(this.svgIcon, 'stroke');
2567
2593
  }
2568
2594
  }
2569
- 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 });
2570
- 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 });
2571
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDivLoaderDirective, decorators: [{
2595
+ 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 });
2596
+ 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 });
2597
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDivLoaderDirective, decorators: [{
2572
2598
  type: Directive,
2573
2599
  args: [{
2574
2600
  selector: '[pepDivLoader]',
@@ -2611,9 +2637,9 @@ class PepPortalService {
2611
2637
  : null;
2612
2638
  }
2613
2639
  }
2614
- PepPortalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepPortalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2615
- PepPortalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepPortalService, providedIn: 'root' });
2616
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepPortalService, decorators: [{
2640
+ PepPortalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPortalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2641
+ PepPortalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPortalService, providedIn: 'root' });
2642
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPortalService, decorators: [{
2617
2643
  type: Injectable,
2618
2644
  args: [{
2619
2645
  providedIn: 'root',
@@ -2632,9 +2658,9 @@ class PepAttachDirective {
2632
2658
  this.portalService.clear(this.targetName);
2633
2659
  }
2634
2660
  }
2635
- 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 });
2636
- PepAttachDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepAttachDirective, selector: "[pepAttach]", inputs: { targetName: ["pepAttach", "targetName"] }, ngImport: i0 });
2637
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepAttachDirective, decorators: [{
2661
+ 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 });
2662
+ PepAttachDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepAttachDirective, selector: "[pepAttach]", inputs: { targetName: ["pepAttach", "targetName"] }, ngImport: i0 });
2663
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepAttachDirective, decorators: [{
2638
2664
  type: Directive,
2639
2665
  args: [{
2640
2666
  selector: '[pepAttach]',
@@ -2653,9 +2679,9 @@ class PepTargetDirective {
2653
2679
  this.portalService.addTarget(this.targetName, this.viewContainer);
2654
2680
  }
2655
2681
  }
2656
- 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 });
2657
- PepTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepTargetDirective, selector: "[pepTarget]", inputs: { targetName: ["pepTarget", "targetName"] }, ngImport: i0 });
2658
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepTargetDirective, decorators: [{
2682
+ 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 });
2683
+ PepTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepTargetDirective, selector: "[pepTarget]", inputs: { targetName: ["pepTarget", "targetName"] }, ngImport: i0 });
2684
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepTargetDirective, decorators: [{
2659
2685
  type: Directive,
2660
2686
  args: [{
2661
2687
  selector: '[pepTarget]',
@@ -2668,9 +2694,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
2668
2694
  // Import the core angular services.
2669
2695
  class PepClipboardService {
2670
2696
  }
2671
- PepClipboardService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepClipboardService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2672
- PepClipboardService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepClipboardService, providedIn: 'root' });
2673
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepClipboardService, decorators: [{
2697
+ PepClipboardService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepClipboardService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2698
+ PepClipboardService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepClipboardService, providedIn: 'root' });
2699
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepClipboardService, decorators: [{
2674
2700
  type: Injectable,
2675
2701
  args: [{
2676
2702
  providedIn: 'root',
@@ -2685,6 +2711,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
2685
2711
  * export from ngx-lib/core/clipboard
2686
2712
  */
2687
2713
 
2714
+ class BaseDestroyerDirective {
2715
+ constructor() {
2716
+ this._destroyed = new Subject();
2717
+ }
2718
+ getDestroyer() {
2719
+ return takeUntil(this._destroyed);
2720
+ }
2721
+ ngOnDestroy() {
2722
+ this._destroyed.next();
2723
+ this._destroyed.complete();
2724
+ }
2725
+ }
2726
+ BaseDestroyerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseDestroyerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2727
+ BaseDestroyerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: BaseDestroyerDirective, ngImport: i0 });
2728
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseDestroyerDirective, decorators: [{
2729
+ type: Directive,
2730
+ args: [{}]
2731
+ }], ctorParameters: function () { return []; } });
2732
+
2688
2733
  /*
2689
2734
  * Public API Surface of ngx-lib/core/common/directives
2690
2735
  */
@@ -3059,9 +3104,9 @@ class PepCookieService {
3059
3104
  }
3060
3105
  }
3061
3106
  }
3062
- 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 });
3063
- PepCookieService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepCookieService, providedIn: 'root' });
3064
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepCookieService, decorators: [{
3107
+ 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 });
3108
+ PepCookieService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCookieService, providedIn: 'root' });
3109
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCookieService, decorators: [{
3065
3110
  type: Injectable,
3066
3111
  args: [{
3067
3112
  providedIn: 'root',
@@ -3214,9 +3259,9 @@ class PepHttpService {
3214
3259
  return this.postHttpCall(`${papiBaseUrl}${url}`, body, httpOptions);
3215
3260
  }
3216
3261
  }
3217
- 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 });
3218
- PepHttpService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepHttpService, providedIn: 'root' });
3219
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepHttpService, decorators: [{
3262
+ 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 });
3263
+ PepHttpService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepHttpService, providedIn: 'root' });
3264
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepHttpService, decorators: [{
3220
3265
  type: Injectable,
3221
3266
  args: [{
3222
3267
  providedIn: 'root',
@@ -3256,9 +3301,9 @@ class PepTranslateService {
3256
3301
  });
3257
3302
  }
3258
3303
  }
3259
- 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 });
3260
- PepTranslateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepTranslateService, providedIn: 'root' });
3261
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepTranslateService, decorators: [{
3304
+ 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 });
3305
+ PepTranslateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepTranslateService, providedIn: 'root' });
3306
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepTranslateService, decorators: [{
3262
3307
  type: Injectable,
3263
3308
  args: [{
3264
3309
  providedIn: 'root',
@@ -3269,12 +3314,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
3269
3314
  This service is the webapp api for addon usege.
3270
3315
  */
3271
3316
  class PepAddonService {
3272
- constructor(sessionService, httpService, loaderService, translateService, fileService, route) {
3317
+ get devServer() {
3318
+ return this.route ? this.route.snapshot.queryParamMap.get('devServer') === 'true' : false;
3319
+ }
3320
+ constructor(sessionService, httpService, loaderService, translateService, fileService, router, route) {
3273
3321
  this.sessionService = sessionService;
3274
3322
  this.httpService = httpService;
3275
3323
  this.loaderService = loaderService;
3276
3324
  this.translateService = translateService;
3277
3325
  this.fileService = fileService;
3326
+ this.router = router;
3278
3327
  this.route = route;
3279
3328
  this.PAGES_ADDON_UUID = '50062e0c-9967-4ed4-9102-f2bc50602d41';
3280
3329
  // private readonly ADDON_ASSETS_PATH_KEY = 'AddonAssetsPath';
@@ -3283,9 +3332,6 @@ class PepAddonService {
3283
3332
  this.ADDON_API_ASYNC_RELATIVE_PATH = `${this.ADDON_API_RELATIVE_PATH}/async`;
3284
3333
  //
3285
3334
  }
3286
- get devServer() {
3287
- return this.route ? this.route.snapshot.queryParamMap.get('devServer') === 'true' : false;
3288
- }
3289
3335
  getAddonBaseRelativePath(isAsync = false) {
3290
3336
  return isAsync
3291
3337
  ? this.ADDON_API_ASYNC_RELATIVE_PATH
@@ -3424,10 +3470,32 @@ class PepAddonService {
3424
3470
  // Fix internal routing bug.
3425
3471
  connectInternalRouter(elementName) {
3426
3472
  const customElementObject = PepAddonService._customElementsMap.get(elementName);
3427
- const router = customElementObject?.injector.get(Router);
3473
+ let router = customElementObject?.injector.get(Router);
3474
+ // This cause a refresh (everithing is loading twice) when reloading the page...
3475
+ // But if we remove this the first navigation is clear all history cause the router is not connected.
3476
+ if (!router) {
3477
+ router = this.router;
3478
+ }
3428
3479
  if (router) {
3429
3480
  const useHash = location.href.includes('#');
3430
- connectRouter(router, useHash);
3481
+ this.connectRouter(router, useHash);
3482
+ }
3483
+ }
3484
+ connectRouter(router, useHash = false) {
3485
+ let url;
3486
+ if (!useHash) {
3487
+ url = `${location.pathname.substr(1)}${location.search}`;
3488
+ router.navigateByUrl(url);
3489
+ window.addEventListener('popstate', () => {
3490
+ router.navigateByUrl(url);
3491
+ });
3492
+ }
3493
+ else {
3494
+ url = `${location.hash.substr(1)}${location.search}`;
3495
+ router.navigateByUrl(url);
3496
+ window.addEventListener('hashchange', () => {
3497
+ router.navigateByUrl(url);
3498
+ });
3431
3499
  }
3432
3500
  }
3433
3501
  static createMultiTranslateLoader(addonUUID, addonService, libsName = ['ngx-lib']) {
@@ -3446,14 +3514,16 @@ class PepAddonService {
3446
3514
  }
3447
3515
  }
3448
3516
  PepAddonService._customElementsMap = new Map();
3449
- 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 });
3450
- PepAddonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepAddonService, providedIn: 'root' });
3451
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepAddonService, decorators: [{
3517
+ 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 });
3518
+ PepAddonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepAddonService, providedIn: 'root' });
3519
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepAddonService, decorators: [{
3452
3520
  type: Injectable,
3453
3521
  args: [{
3454
3522
  providedIn: 'root',
3455
3523
  }]
3456
- }], ctorParameters: function () { return [{ type: PepSessionService }, { type: PepHttpService }, { type: PepLoaderService }, { type: PepTranslateService }, { type: PepFileService }, { type: i6.ActivatedRoute, decorators: [{
3524
+ }], ctorParameters: function () { return [{ type: PepSessionService }, { type: PepHttpService }, { type: PepLoaderService }, { type: PepTranslateService }, { type: PepFileService }, { type: i6.Router, decorators: [{
3525
+ type: Optional
3526
+ }] }, { type: i6.ActivatedRoute, decorators: [{
3457
3527
  type: Optional
3458
3528
  }] }]; } });
3459
3529
 
@@ -3831,9 +3901,9 @@ class PepColorService {
3831
3901
  return (hsp > 127.5) ? 'light' : 'dark';
3832
3902
  }
3833
3903
  }
3834
- PepColorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepColorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3835
- PepColorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepColorService, providedIn: 'root' });
3836
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepColorService, decorators: [{
3904
+ PepColorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepColorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3905
+ PepColorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepColorService, providedIn: 'root' });
3906
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepColorService, decorators: [{
3837
3907
  type: Injectable,
3838
3908
  args: [{
3839
3909
  providedIn: 'root',
@@ -3926,13 +3996,13 @@ class PepDataConvertorService {
3926
3996
  dataField.Enabled = field.Enabled === false ? false : true;
3927
3997
  dataField.FieldType = field.FieldType;
3928
3998
  dataField.FormattedValue =
3929
- field.FormattedValue || field.Value.toString();
3999
+ field.FormattedValue || field.Value;
3930
4000
  dataField.GroupFields = null;
3931
4001
  dataField.NotificationInfo = '';
3932
4002
  dataField.OptionalValues = field.OptionalValues;
3933
4003
  dataField.ReferenceObjectSubType = '';
3934
4004
  dataField.TextColor = '';
3935
- dataField.Value = field.Value.toString();
4005
+ dataField.Value = field.Value;
3936
4006
  dataField.Visible = true;
3937
4007
  return dataField;
3938
4008
  }
@@ -3949,9 +4019,9 @@ class PepDataConvertorService {
3949
4019
  return layout;
3950
4020
  }
3951
4021
  }
3952
- PepDataConvertorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDataConvertorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3953
- PepDataConvertorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDataConvertorService, providedIn: 'root' });
3954
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepDataConvertorService, decorators: [{
4022
+ PepDataConvertorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDataConvertorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4023
+ PepDataConvertorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDataConvertorService, providedIn: 'root' });
4024
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDataConvertorService, decorators: [{
3955
4025
  type: Injectable,
3956
4026
  args: [{
3957
4027
  providedIn: 'root',
@@ -4214,9 +4284,9 @@ class PepValidatorService {
4214
4284
  return isNumber;
4215
4285
  }
4216
4286
  }
4217
- 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 });
4218
- PepValidatorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepValidatorService, providedIn: 'root' });
4219
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepValidatorService, decorators: [{
4287
+ 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 });
4288
+ PepValidatorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepValidatorService, providedIn: 'root' });
4289
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepValidatorService, decorators: [{
4220
4290
  type: Injectable,
4221
4291
  args: [{
4222
4292
  providedIn: 'root',
@@ -4250,9 +4320,9 @@ class PepWindowScrollingService {
4250
4320
  return style;
4251
4321
  }
4252
4322
  }
4253
- PepWindowScrollingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepWindowScrollingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4254
- PepWindowScrollingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepWindowScrollingService, providedIn: 'root' });
4255
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepWindowScrollingService, decorators: [{
4323
+ PepWindowScrollingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepWindowScrollingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4324
+ PepWindowScrollingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepWindowScrollingService, providedIn: 'root' });
4325
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepWindowScrollingService, decorators: [{
4256
4326
  type: Injectable,
4257
4327
  args: [{
4258
4328
  providedIn: 'root',
@@ -4298,8 +4368,8 @@ class PepFieldBase {
4298
4368
  this.xAlignment = options.xAlignment ?? DEFAULT_HORIZONTAL_ALIGNMENT;
4299
4369
  this.yAlignment = options.yAlignment ?? DEFAULT_VERTICAL_ALIGNMENT;
4300
4370
  this.maxFieldCharacters = options.maxFieldCharacters ?? 0;
4301
- this.minValue = options.minValue ?? 0;
4302
- this.maxValue = options.maxValue ?? 0;
4371
+ this.minValue = options.minValue ?? undefined;
4372
+ this.maxValue = options.maxValue ?? undefined;
4303
4373
  this.update(options);
4304
4374
  }
4305
4375
  getBaseValidators(isCheckbox = false) {
@@ -4318,6 +4388,13 @@ class PepFieldBase {
4318
4388
  if (this.maxFieldCharacters > 0) {
4319
4389
  validators.push(Validators.maxLength(this.maxFieldCharacters));
4320
4390
  }
4391
+ //DI-26722
4392
+ // if (this.minValue) {
4393
+ // validators.push(Validators.min(this.minValue));
4394
+ // }
4395
+ // if (this.maxValue) {
4396
+ // validators.push(Validators.max(this.maxValue));
4397
+ // }
4321
4398
  return validators;
4322
4399
  }
4323
4400
  getValidators() {
@@ -4393,10 +4470,18 @@ class PepTextboxField extends PepFieldBase {
4393
4470
  }
4394
4471
  else if (this.type === 'int' || this.type === 'real') {
4395
4472
  validators.push(Validators.pattern(/^[\.,\-\+\d]+$/));
4396
- if (!isNaN(this.minValue)) {
4473
+ if (this.minValue && !isNaN(this.minValue)) {
4474
+ validators.push(Validators.min(this.minValue));
4475
+ }
4476
+ if (this.maxValue && !isNaN(this.maxValue)) {
4477
+ validators.push(Validators.max(this.maxValue));
4478
+ }
4479
+ }
4480
+ else if (this.type === 'currency' || this.type === 'percentage') {
4481
+ if (this.minValue && !isNaN(this.minValue)) {
4397
4482
  validators.push(Validators.min(this.minValue));
4398
4483
  }
4399
- if (!isNaN(this.maxValue)) {
4484
+ if (this.maxValue && !isNaN(this.maxValue)) {
4400
4485
  validators.push(Validators.max(this.maxValue));
4401
4486
  }
4402
4487
  }
@@ -4489,11 +4574,29 @@ class PepQuantitySelectorField extends PepFieldBase {
4489
4574
  }
4490
4575
  }
4491
4576
  class PepDateField extends PepFieldBase {
4577
+ // minDateValue?: Date;
4578
+ // maxDateValue?: Date;
4492
4579
  constructor(options = {}) {
4493
4580
  super(options);
4494
4581
  this.controlType = 'date';
4495
4582
  this.type = options.type || 'date';
4496
4583
  }
4584
+ getValidators() {
4585
+ const validators = super.getBaseValidators();
4586
+ if (this.minValue && !isNaN(this.minValue)) {
4587
+ validators.push(Validators.min(this.minValue));
4588
+ }
4589
+ if (this.maxValue && !isNaN(this.maxValue)) {
4590
+ validators.push(Validators.max(this.maxValue));
4591
+ }
4592
+ // if (this.minDateValue) {
4593
+ // validators.push(Validators.min(this.minDateValue));
4594
+ // }
4595
+ // if (this.maxDateValue) {
4596
+ // validators.push(Validators.max(this.maxDateValue));
4597
+ // }
4598
+ return validators;
4599
+ }
4497
4600
  }
4498
4601
  class PepCheckboxField extends PepFieldBase {
4499
4602
  constructor(options = {}) {
@@ -4511,8 +4614,10 @@ class PepSelectField extends PepFieldBase {
4511
4614
  super(options);
4512
4615
  this.controlType = 'select';
4513
4616
  this.options = [];
4617
+ this.autoSortOptions = true;
4514
4618
  this.type = options.type || 'select';
4515
4619
  this.emptyOption = options.emptyOption;
4620
+ this.autoSortOptions = options.autoSortOptions ?? true;
4516
4621
  this.update(options);
4517
4622
  }
4518
4623
  update(options) {
@@ -4681,9 +4786,9 @@ class PepScrollToService {
4681
4786
  });
4682
4787
  }
4683
4788
  }
4684
- PepScrollToService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepScrollToService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4685
- PepScrollToService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepScrollToService, providedIn: 'root' });
4686
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepScrollToService, decorators: [{
4789
+ PepScrollToService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepScrollToService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4790
+ PepScrollToService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepScrollToService, providedIn: 'root' });
4791
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepScrollToService, decorators: [{
4687
4792
  type: Injectable,
4688
4793
  args: [{
4689
4794
  providedIn: 'root',
@@ -4693,6 +4798,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
4693
4798
  /*
4694
4799
  * Public API Surface of ngx-lib/core/scroll-to
4695
4800
  */
4801
+ // export * from './scroll-to.directive';
4696
4802
 
4697
4803
  /*
4698
4804
  * export from ngx-lib/core/scroll-to
@@ -4735,8 +4841,8 @@ const utilitiesList = [
4735
4841
  const portalList = [PepAttachDirective, PepTargetDirective];
4736
4842
  class PepNgxLibModule {
4737
4843
  }
4738
- PepNgxLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepNgxLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4739
- PepNgxLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepNgxLibModule, declarations: [PepCapitalizePipe,
4844
+ PepNgxLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepNgxLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4845
+ PepNgxLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepNgxLibModule, declarations: [PepCapitalizePipe,
4740
4846
  PepEncodePipe,
4741
4847
  PepEscapePipe,
4742
4848
  PepReplaceLineBreaksPipe,
@@ -4775,7 +4881,7 @@ PepNgxLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
4775
4881
  PepPreventMultiClickDirective,
4776
4882
  PepPrintDirective,
4777
4883
  PepDivLoaderDirective, PepClipboardDirective, PepRtlClassDirective, PepRtlDirectionDirective, PepAttachDirective, PepTargetDirective, TranslateModule] });
4778
- PepNgxLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepNgxLibModule, providers: [
4884
+ PepNgxLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepNgxLibModule, providers: [
4779
4885
  httpInterceptorProviders,
4780
4886
  PepAddonService,
4781
4887
  PepColorService,
@@ -4798,7 +4904,7 @@ PepNgxLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version
4798
4904
  ], imports: [CommonModule,
4799
4905
  HttpClientModule,
4800
4906
  ReactiveFormsModule, TranslateModule] });
4801
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepNgxLibModule, decorators: [{
4907
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepNgxLibModule, decorators: [{
4802
4908
  type: NgModule,
4803
4909
  args: [{
4804
4910
  declarations: [
@@ -4853,5 +4959,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
4853
4959
  * Generated bundle index. Do not edit.
4854
4960
  */
4855
4961
 
4856
- 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 };
4962
+ 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 };
4857
4963
  //# sourceMappingURL=pepperi-addons-ngx-lib.mjs.map