@pepperi-addons/ngx-lib 0.3.15-beta.12 → 0.3.15-beta.15

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 (687) hide show
  1. package/address/address.component.d.ts +27 -27
  2. package/address/address.module.d.ts +2 -2
  3. package/address/pepperi-addons-ngx-lib-address.d.ts +4 -4
  4. package/address/public-api.d.ts +2 -2
  5. package/attachment/attachment.component.d.ts +82 -82
  6. package/attachment/attachment.module.d.ts +2 -2
  7. package/attachment/pepperi-addons-ngx-lib-attachment.d.ts +4 -4
  8. package/attachment/public-api.d.ts +2 -2
  9. package/bread-crumbs/bread-crumbs.component.d.ts +23 -23
  10. package/bread-crumbs/bread-crumbs.model.d.ts +11 -11
  11. package/bread-crumbs/bread-crumbs.module.d.ts +5 -5
  12. package/bread-crumbs/pepperi-addons-ngx-lib-bread-crumbs.d.ts +4 -4
  13. package/bread-crumbs/public-api.d.ts +3 -3
  14. package/bundles/pepperi-addons-ngx-lib-address.umd.js +124 -124
  15. package/bundles/pepperi-addons-ngx-lib-attachment.umd.js +247 -247
  16. package/bundles/pepperi-addons-ngx-lib-bread-crumbs.umd.js +121 -121
  17. package/bundles/pepperi-addons-ngx-lib-button.umd.js +158 -158
  18. package/bundles/pepperi-addons-ngx-lib-carousel.umd.js +788 -788
  19. package/bundles/pepperi-addons-ngx-lib-checkbox.umd.js +192 -192
  20. package/bundles/pepperi-addons-ngx-lib-color.umd.js +299 -299
  21. package/bundles/pepperi-addons-ngx-lib-date.umd.js +667 -667
  22. package/bundles/pepperi-addons-ngx-lib-dialog.umd.js +183 -183
  23. package/bundles/pepperi-addons-ngx-lib-draggable-items.umd.js +151 -151
  24. package/bundles/pepperi-addons-ngx-lib-field-title.umd.js +57 -57
  25. package/bundles/pepperi-addons-ngx-lib-files-uploader.umd.js +260 -260
  26. package/bundles/pepperi-addons-ngx-lib-form.umd.js +3249 -3249
  27. package/bundles/pepperi-addons-ngx-lib-group-buttons.umd.js +87 -87
  28. package/bundles/pepperi-addons-ngx-lib-icon.umd.js +681 -681
  29. package/bundles/pepperi-addons-ngx-lib-image.umd.js +322 -322
  30. package/bundles/pepperi-addons-ngx-lib-images-filmstrip.umd.js +422 -422
  31. package/bundles/pepperi-addons-ngx-lib-link.umd.js +387 -387
  32. package/bundles/pepperi-addons-ngx-lib-list.umd.js +3191 -3191
  33. package/bundles/pepperi-addons-ngx-lib-menu.umd.js +646 -646
  34. package/bundles/pepperi-addons-ngx-lib-page-layout.umd.js +60 -60
  35. package/bundles/pepperi-addons-ngx-lib-profile-data-views-list.umd.js +543 -543
  36. package/bundles/pepperi-addons-ngx-lib-quantity-selector.umd.js +923 -923
  37. package/bundles/pepperi-addons-ngx-lib-query-builder.umd.js +1074 -1074
  38. package/bundles/pepperi-addons-ngx-lib-remote-loader.umd.js +653 -643
  39. package/bundles/pepperi-addons-ngx-lib-remote-loader.umd.js.map +1 -1
  40. package/bundles/pepperi-addons-ngx-lib-rich-html-textarea.umd.js +275 -275
  41. package/bundles/pepperi-addons-ngx-lib-search.umd.js +326 -326
  42. package/bundles/pepperi-addons-ngx-lib-select.umd.js +575 -575
  43. package/bundles/pepperi-addons-ngx-lib-separator.umd.js +79 -79
  44. package/bundles/pepperi-addons-ngx-lib-side-bar.umd.js +163 -163
  45. package/bundles/pepperi-addons-ngx-lib-signature.umd.js +286 -286
  46. package/bundles/pepperi-addons-ngx-lib-size-detector.umd.js +113 -113
  47. package/bundles/pepperi-addons-ngx-lib-slider.umd.js +124 -124
  48. package/bundles/pepperi-addons-ngx-lib-smart-filters.umd.js +1780 -1780
  49. package/bundles/pepperi-addons-ngx-lib-snack-bar.umd.js +148 -148
  50. package/bundles/pepperi-addons-ngx-lib-textarea.umd.js +211 -211
  51. package/bundles/pepperi-addons-ngx-lib-textbox-icon.umd.js +80 -80
  52. package/bundles/pepperi-addons-ngx-lib-textbox.umd.js +530 -530
  53. package/bundles/pepperi-addons-ngx-lib-top-bar.umd.js +129 -129
  54. package/bundles/pepperi-addons-ngx-lib.umd.js +4773 -4773
  55. package/button/button.component.d.ts +99 -99
  56. package/button/button.model.d.ts +14 -14
  57. package/button/button.module.d.ts +2 -2
  58. package/button/pepperi-addons-ngx-lib-button.d.ts +4 -4
  59. package/button/public-api.d.ts +3 -3
  60. package/carousel/carousel-item.directive.d.ts +9 -9
  61. package/carousel/carousel.component.d.ts +145 -145
  62. package/carousel/carousel.module.d.ts +2 -2
  63. package/carousel/pepperi-addons-ngx-lib-carousel.d.ts +4 -4
  64. package/carousel/public-api.d.ts +3 -3
  65. package/checkbox/checkbox.component.d.ts +47 -47
  66. package/checkbox/checkbox.module.d.ts +5 -5
  67. package/checkbox/pepperi-addons-ngx-lib-checkbox.d.ts +4 -4
  68. package/checkbox/public-api.d.ts +2 -2
  69. package/color/color-picker.component.d.ts +53 -53
  70. package/color/color.component.d.ts +26 -26
  71. package/color/color.model.d.ts +1 -1
  72. package/color/color.module.d.ts +5 -5
  73. package/color/pepperi-addons-ngx-lib-color.d.ts +5 -5
  74. package/color/public-api.d.ts +3 -3
  75. package/core/clipboard/clipboard.directive.d.ts +2 -2
  76. package/core/clipboard/clipboard.service.d.ts +2 -2
  77. package/core/clipboard/index.d.ts +1 -1
  78. package/core/clipboard/public-api.d.ts +2 -2
  79. package/core/common/directives/auto-width.directive.d.ts +16 -16
  80. package/core/common/directives/button-blur.directive.d.ts +6 -6
  81. package/core/common/directives/button-loader.directive.d.ts +23 -23
  82. package/core/common/directives/data-qa.directive.d.ts +8 -8
  83. package/core/common/directives/index.d.ts +1 -1
  84. package/core/common/directives/menu-blur.directive.d.ts +7 -7
  85. package/core/common/directives/prevent-multi-click.directive.d.ts +4 -4
  86. package/core/common/directives/print.directive.d.ts +72 -72
  87. package/core/common/directives/public-api.d.ts +7 -7
  88. package/core/common/index.d.ts +1 -1
  89. package/core/common/model/index.d.ts +1 -1
  90. package/core/common/model/papi.model.d.ts +2 -2
  91. package/core/common/model/public-api.d.ts +3 -3
  92. package/core/common/model/utilities.model.d.ts +5 -5
  93. package/core/common/model/wapi.model.d.ts +200 -200
  94. package/core/common/pipes/common-pipes.d.ts +36 -36
  95. package/core/common/pipes/index.d.ts +1 -1
  96. package/core/common/pipes/public-api.d.ts +1 -1
  97. package/core/common/public-api.d.ts +4 -4
  98. package/core/common/services/addon.service.d.ts +38 -38
  99. package/core/common/services/color.service.d.ts +48 -48
  100. package/core/common/services/cookie.service.d.ts +50 -50
  101. package/core/common/services/data-convertor.service.d.ts +41 -41
  102. package/core/common/services/file.service.d.ts +24 -24
  103. package/core/common/services/index.d.ts +1 -1
  104. package/core/common/services/jwt-helper.service.d.ts +10 -10
  105. package/core/common/services/public-api.d.ts +11 -11
  106. package/core/common/services/session.service.d.ts +15 -15
  107. package/core/common/services/translate.service.d.ts +9 -9
  108. package/core/common/services/utilities.service.d.ts +17 -17
  109. package/core/common/services/validator.service.d.ts +28 -28
  110. package/core/common/services/window-scrolling.service.d.ts +7 -7
  111. package/core/customization/customization.model.d.ts +264 -264
  112. package/core/customization/customization.service.d.ts +156 -156
  113. package/core/customization/index.d.ts +1 -1
  114. package/core/customization/public-api.d.ts +2 -2
  115. package/core/http/index.d.ts +1 -1
  116. package/core/http/interceptors/error.interceptor.d.ts +5 -5
  117. package/core/http/interceptors/index.d.ts +11 -11
  118. package/core/http/interceptors/loader.interceptor.d.ts +8 -8
  119. package/core/http/interceptors/profiler.interceptor.d.ts +5 -5
  120. package/core/http/public-api.d.ts +2 -2
  121. package/core/http/services/http.service.d.ts +25 -25
  122. package/core/http/services/loader.service.d.ts +10 -10
  123. package/core/index.d.ts +1 -1
  124. package/core/layout/index.d.ts +1 -1
  125. package/core/layout/layout.service.d.ts +33 -33
  126. package/core/layout/public-api.d.ts +2 -2
  127. package/core/layout/rtl.directive.d.ts +16 -16
  128. package/core/portal/attach.directive.d.ts +10 -10
  129. package/core/portal/index.d.ts +1 -1
  130. package/core/portal/portal.service.d.ts +9 -9
  131. package/core/portal/public-api.d.ts +3 -3
  132. package/core/portal/target.directive.d.ts +9 -9
  133. package/core/public-api.d.ts +7 -7
  134. package/core/scroll-to/index.d.ts +1 -1
  135. package/core/scroll-to/public-api.d.ts +1 -1
  136. package/core/scroll-to/scroll-to.service.d.ts +8 -8
  137. package/date/date.component.d.ts +66 -66
  138. package/date/date.model.d.ts +26 -26
  139. package/date/date.module.d.ts +5 -5
  140. package/date/pepperi-addons-ngx-lib-date.d.ts +5 -5
  141. package/date/public-api.d.ts +2 -2
  142. package/dialog/default-dialog.component.d.ts +9 -9
  143. package/dialog/dialog.component.d.ts +10 -10
  144. package/dialog/dialog.model.d.ts +27 -27
  145. package/dialog/dialog.module.d.ts +5 -5
  146. package/dialog/dialog.service.d.ts +24 -24
  147. package/dialog/pepperi-addons-ngx-lib-dialog.d.ts +5 -5
  148. package/dialog/public-api.d.ts +4 -4
  149. package/draggable-items/draggable-item/draggable-item.component.d.ts +8 -8
  150. package/draggable-items/draggable-items.component.d.ts +33 -33
  151. package/draggable-items/draggable-items.model.d.ts +7 -7
  152. package/draggable-items/draggable-items.module.d.ts +5 -5
  153. package/draggable-items/pepperi-addons-ngx-lib-draggable-items.d.ts +4 -4
  154. package/draggable-items/public-api.d.ts +4 -4
  155. package/esm2015/address/address.component.js +96 -96
  156. package/esm2015/address/address.module.js +30 -30
  157. package/esm2015/address/pepperi-addons-ngx-lib-address.js +4 -4
  158. package/esm2015/address/public-api.js +5 -5
  159. package/esm2015/attachment/attachment.component.js +208 -208
  160. package/esm2015/attachment/attachment.module.js +28 -28
  161. package/esm2015/attachment/pepperi-addons-ngx-lib-attachment.js +4 -4
  162. package/esm2015/attachment/public-api.js +5 -5
  163. package/esm2015/bread-crumbs/bread-crumbs.component.js +78 -78
  164. package/esm2015/bread-crumbs/bread-crumbs.model.js +6 -6
  165. package/esm2015/bread-crumbs/bread-crumbs.module.js +34 -34
  166. package/esm2015/bread-crumbs/pepperi-addons-ngx-lib-bread-crumbs.js +4 -4
  167. package/esm2015/bread-crumbs/public-api.js +6 -6
  168. package/esm2015/button/button.component.js +127 -127
  169. package/esm2015/button/button.model.js +5 -5
  170. package/esm2015/button/button.module.js +26 -26
  171. package/esm2015/button/pepperi-addons-ngx-lib-button.js +4 -4
  172. package/esm2015/button/public-api.js +6 -6
  173. package/esm2015/carousel/carousel-item.directive.js +26 -26
  174. package/esm2015/carousel/carousel.component.js +699 -699
  175. package/esm2015/carousel/carousel.module.js +11 -11
  176. package/esm2015/carousel/pepperi-addons-ngx-lib-carousel.js +4 -4
  177. package/esm2015/carousel/public-api.js +7 -7
  178. package/esm2015/checkbox/checkbox.component.js +151 -151
  179. package/esm2015/checkbox/checkbox.module.js +39 -39
  180. package/esm2015/checkbox/pepperi-addons-ngx-lib-checkbox.js +4 -4
  181. package/esm2015/checkbox/public-api.js +5 -5
  182. package/esm2015/color/color-picker.component.js +197 -197
  183. package/esm2015/color/color.component.js +74 -74
  184. package/esm2015/color/color.model.js +1 -1
  185. package/esm2015/color/color.module.js +57 -57
  186. package/esm2015/color/pepperi-addons-ngx-lib-color.js +5 -5
  187. package/esm2015/color/public-api.js +6 -6
  188. package/esm2015/core/clipboard/clipboard.directive.js +19 -19
  189. package/esm2015/core/clipboard/clipboard.service.js +11 -11
  190. package/esm2015/core/clipboard/index.js +4 -4
  191. package/esm2015/core/clipboard/public-api.js +5 -5
  192. package/esm2015/core/common/directives/auto-width.directive.js +77 -77
  193. package/esm2015/core/common/directives/button-blur.directive.js +22 -22
  194. package/esm2015/core/common/directives/button-loader.directive.js +102 -102
  195. package/esm2015/core/common/directives/data-qa.directive.js +22 -22
  196. package/esm2015/core/common/directives/index.js +4 -4
  197. package/esm2015/core/common/directives/menu-blur.directive.js +28 -28
  198. package/esm2015/core/common/directives/prevent-multi-click.directive.js +21 -21
  199. package/esm2015/core/common/directives/print.directive.js +134 -134
  200. package/esm2015/core/common/directives/public-api.js +11 -11
  201. package/esm2015/core/common/index.js +4 -4
  202. package/esm2015/core/common/model/index.js +4 -4
  203. package/esm2015/core/common/model/papi.model.js +2 -2
  204. package/esm2015/core/common/model/public-api.js +6 -6
  205. package/esm2015/core/common/model/utilities.model.js +56 -56
  206. package/esm2015/core/common/model/wapi.model.js +155 -155
  207. package/esm2015/core/common/pipes/common-pipes.js +141 -141
  208. package/esm2015/core/common/pipes/index.js +4 -4
  209. package/esm2015/core/common/pipes/public-api.js +4 -4
  210. package/esm2015/core/common/public-api.js +7 -7
  211. package/esm2015/core/common/services/addon.service.js +160 -160
  212. package/esm2015/core/common/services/color.service.js +356 -356
  213. package/esm2015/core/common/services/cookie.service.js +147 -147
  214. package/esm2015/core/common/services/data-convertor.service.js +117 -117
  215. package/esm2015/core/common/services/file.service.js +211 -211
  216. package/esm2015/core/common/services/index.js +4 -4
  217. package/esm2015/core/common/services/jwt-helper.service.js +103 -103
  218. package/esm2015/core/common/services/public-api.js +14 -14
  219. package/esm2015/core/common/services/session.service.js +72 -72
  220. package/esm2015/core/common/services/translate.service.js +47 -47
  221. package/esm2015/core/common/services/utilities.service.js +125 -125
  222. package/esm2015/core/common/services/validator.service.js +272 -272
  223. package/esm2015/core/common/services/window-scrolling.service.js +30 -30
  224. package/esm2015/core/customization/customization.model.js +289 -289
  225. package/esm2015/core/customization/customization.service.js +777 -777
  226. package/esm2015/core/customization/index.js +4 -4
  227. package/esm2015/core/customization/public-api.js +5 -5
  228. package/esm2015/core/http/index.js +4 -4
  229. package/esm2015/core/http/interceptors/error.interceptor.js +23 -23
  230. package/esm2015/core/http/interceptors/index.js +23 -23
  231. package/esm2015/core/http/interceptors/loader.interceptor.js +32 -32
  232. package/esm2015/core/http/interceptors/profiler.interceptor.js +28 -28
  233. package/esm2015/core/http/public-api.js +5 -5
  234. package/esm2015/core/http/services/http.service.js +160 -160
  235. package/esm2015/core/http/services/loader.service.js +48 -48
  236. package/esm2015/core/index.js +4 -4
  237. package/esm2015/core/layout/index.js +4 -4
  238. package/esm2015/core/layout/layout.service.js +168 -168
  239. package/esm2015/core/layout/public-api.js +5 -5
  240. package/esm2015/core/layout/rtl.directive.js +46 -46
  241. package/esm2015/core/portal/attach.directive.js +26 -26
  242. package/esm2015/core/portal/index.js +4 -4
  243. package/esm2015/core/portal/portal.service.js +34 -34
  244. package/esm2015/core/portal/public-api.js +6 -6
  245. package/esm2015/core/portal/target.directive.js +23 -23
  246. package/esm2015/core/public-api.js +10 -10
  247. package/esm2015/core/scroll-to/index.js +4 -4
  248. package/esm2015/core/scroll-to/public-api.js +5 -5
  249. package/esm2015/core/scroll-to/scroll-to.service.js +81 -81
  250. package/esm2015/date/date.component.js +251 -251
  251. package/esm2015/date/date.model.js +44 -44
  252. package/esm2015/date/date.module.js +50 -50
  253. package/esm2015/date/pepperi-addons-ngx-lib-date.js +5 -5
  254. package/esm2015/date/public-api.js +5 -5
  255. package/esm2015/dialog/default-dialog.component.js +31 -31
  256. package/esm2015/dialog/dialog.component.js +27 -27
  257. package/esm2015/dialog/dialog.model.js +21 -21
  258. package/esm2015/dialog/dialog.module.js +39 -39
  259. package/esm2015/dialog/dialog.service.js +76 -76
  260. package/esm2015/dialog/pepperi-addons-ngx-lib-dialog.js +5 -5
  261. package/esm2015/dialog/public-api.js +7 -7
  262. package/esm2015/draggable-items/draggable-item/draggable-item.component.js +24 -24
  263. package/esm2015/draggable-items/draggable-items.component.js +91 -91
  264. package/esm2015/draggable-items/draggable-items.model.js +1 -1
  265. package/esm2015/draggable-items/draggable-items.module.js +42 -42
  266. package/esm2015/draggable-items/pepperi-addons-ngx-lib-draggable-items.js +4 -4
  267. package/esm2015/draggable-items/public-api.js +7 -7
  268. package/esm2015/field-title/field-title.component.js +31 -31
  269. package/esm2015/field-title/field-title.module.js +31 -31
  270. package/esm2015/field-title/pepperi-addons-ngx-lib-field-title.js +4 -4
  271. package/esm2015/field-title/public-api.js +5 -5
  272. package/esm2015/files-uploader/files-uploader.component.js +220 -220
  273. package/esm2015/files-uploader/files-uploader.module.js +49 -49
  274. package/esm2015/files-uploader/pepperi-addons-ngx-lib-files-uploader.js +4 -4
  275. package/esm2015/files-uploader/public-api.js +5 -5
  276. package/esm2015/form/field-generator.component.js +121 -121
  277. package/esm2015/form/form.component.js +1196 -1196
  278. package/esm2015/form/form.model.js +1 -1
  279. package/esm2015/form/form.module.js +107 -107
  280. package/esm2015/form/indicators.component.js +20 -20
  281. package/esm2015/form/internal-button.component.js +165 -165
  282. package/esm2015/form/internal-carusel.component.js +115 -115
  283. package/esm2015/form/internal-carusel.service.js +31 -31
  284. package/esm2015/form/internal-list.component.js +494 -494
  285. package/esm2015/form/internal-menu.component.js +54 -54
  286. package/esm2015/form/internal-page.component.js +350 -350
  287. package/esm2015/form/internal-page.service.js +120 -120
  288. package/esm2015/form/pepperi-addons-ngx-lib-form.js +13 -13
  289. package/esm2015/form/public-api.js +6 -6
  290. package/esm2015/group-buttons/group-buttons.component.js +57 -57
  291. package/esm2015/group-buttons/group-buttons.module.js +37 -37
  292. package/esm2015/group-buttons/pepperi-addons-ngx-lib-group-buttons.js +4 -4
  293. package/esm2015/group-buttons/public-api.js +5 -5
  294. package/esm2015/icon/icon-generated-all.model.js +100 -100
  295. package/esm2015/icon/icon-generated.model.js +389 -389
  296. package/esm2015/icon/icon-registry.service.js +22 -22
  297. package/esm2015/icon/icon.component.js +124 -124
  298. package/esm2015/icon/icon.module.js +14 -14
  299. package/esm2015/icon/icon.service.js +31 -31
  300. package/esm2015/icon/pepperi-addons-ngx-lib-icon.js +4 -4
  301. package/esm2015/icon/public-api.js +10 -10
  302. package/esm2015/image/image.component.js +228 -228
  303. package/esm2015/image/image.module.js +48 -48
  304. package/esm2015/image/image.service.js +54 -54
  305. package/esm2015/image/pepperi-addons-ngx-lib-image.js +4 -4
  306. package/esm2015/image/public-api.js +6 -6
  307. package/esm2015/images-filmstrip/images-filmstrip.component.js +372 -372
  308. package/esm2015/images-filmstrip/images-filmstrip.module.js +70 -70
  309. package/esm2015/images-filmstrip/pepperi-addons-ngx-lib-images-filmstrip.js +4 -4
  310. package/esm2015/images-filmstrip/public-api.js +5 -5
  311. package/esm2015/link/link.component.js +315 -315
  312. package/esm2015/link/link.module.js +50 -50
  313. package/esm2015/link/link.pipes.js +12 -12
  314. package/esm2015/link/pepperi-addons-ngx-lib-link.js +5 -5
  315. package/esm2015/link/public-api.js +5 -5
  316. package/esm2015/list/list-actions.component.js +35 -35
  317. package/esm2015/list/list-carousel.component.js +94 -94
  318. package/esm2015/list/list-chooser.component.js +57 -57
  319. package/esm2015/list/list-pager.component.js +112 -112
  320. package/esm2015/list/list-sorting.component.js +54 -54
  321. package/esm2015/list/list-total.component.js +23 -23
  322. package/esm2015/list/list-views.component.js +71 -71
  323. package/esm2015/list/list.component.js +1127 -1127
  324. package/esm2015/list/list.model.js +3 -3
  325. package/esm2015/list/list.module.js +87 -87
  326. package/esm2015/list/list.pipes.js +39 -39
  327. package/esm2015/list/pepperi-addons-ngx-lib-list.js +6 -6
  328. package/esm2015/list/public-api.js +14 -14
  329. package/esm2015/list/virtual-scroller.js +1018 -1018
  330. package/esm2015/menu/menu-item.component.js +102 -102
  331. package/esm2015/menu/menu.component.js +173 -173
  332. package/esm2015/menu/menu.model.js +18 -18
  333. package/esm2015/menu/menu.module.js +39 -39
  334. package/esm2015/menu/pepperi-addons-ngx-lib-menu.js +5 -5
  335. package/esm2015/menu/public-api.js +6 -6
  336. package/esm2015/ngx-lib.module.js +76 -76
  337. package/esm2015/page-layout/page-layout.component.js +41 -41
  338. package/esm2015/page-layout/page-layout.module.js +20 -20
  339. package/esm2015/page-layout/pepperi-addons-ngx-lib-page-layout.js +4 -4
  340. package/esm2015/page-layout/public-api.js +5 -5
  341. package/esm2015/pepperi-addons-ngx-lib.js +8 -8
  342. package/esm2015/profile-data-views-list/pepperi-addons-ngx-lib-profile-data-views-list.js +4 -4
  343. package/esm2015/profile-data-views-list/profile-data-view/profile-data-view.component.js +38 -38
  344. package/esm2015/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.js +59 -59
  345. package/esm2015/profile-data-views-list/profile-data-views-list.component.js +86 -86
  346. package/esm2015/profile-data-views-list/profile-data-views-list.model.js +1 -1
  347. package/esm2015/profile-data-views-list/profile-data-views-list.module.js +56 -56
  348. package/esm2015/profile-data-views-list/public-api.js +8 -8
  349. package/esm2015/public-api.js +5 -5
  350. package/esm2015/quantity-selector/pepperi-addons-ngx-lib-quantity-selector.js +6 -6
  351. package/esm2015/quantity-selector/public-api.js +5 -5
  352. package/esm2015/quantity-selector/quantity-selector-validation.directive.js +43 -43
  353. package/esm2015/quantity-selector/quantity-selector.component.js +465 -465
  354. package/esm2015/quantity-selector/quantity-selector.module.js +52 -52
  355. package/esm2015/quantity-selector/quantity-selector.pipes.js +18 -18
  356. package/esm2015/query-builder/common/model/field.js +1 -1
  357. package/esm2015/query-builder/common/model/filter.js +1 -1
  358. package/esm2015/query-builder/common/model/legacy.js +1 -1
  359. package/esm2015/query-builder/common/model/operator-unit.js +41 -41
  360. package/esm2015/query-builder/common/model/operator.js +206 -206
  361. package/esm2015/query-builder/common/model/structure.js +1 -1
  362. package/esm2015/query-builder/common/model/type-map.js +26 -26
  363. package/esm2015/query-builder/common/model/type.js +5 -5
  364. package/esm2015/query-builder/common/services/output-query.service.js +110 -110
  365. package/esm2015/query-builder/common/services/query-structure.service.js +198 -198
  366. package/esm2015/query-builder/common/services/type-convertor.service.js +39 -39
  367. package/esm2015/query-builder/pepperi-addons-ngx-lib-query-builder.js +9 -9
  368. package/esm2015/query-builder/public-api.js +8 -8
  369. package/esm2015/query-builder/query-builder-item/query-builder-item.component.js +115 -115
  370. package/esm2015/query-builder/query-builder-section/query-builder-section.component.js +63 -63
  371. package/esm2015/query-builder/query-builder.component.js +103 -103
  372. package/esm2015/query-builder/query-builder.module.js +34 -34
  373. package/esm2015/query-builder/query-builder.service.js +100 -100
  374. package/esm2015/remote-loader/addon-block-loader.component.js +69 -62
  375. package/esm2015/remote-loader/pepperi-addons-ngx-lib-remote-loader.js +4 -4
  376. package/esm2015/remote-loader/public-api.js +8 -8
  377. package/esm2015/remote-loader/remote-loader.component.js +116 -118
  378. package/esm2015/remote-loader/remote-loader.model.js +1 -1
  379. package/esm2015/remote-loader/remote-loader.module.js +35 -35
  380. package/esm2015/remote-loader/remote-loader.service.js +112 -107
  381. package/esm2015/rich-html-textarea/pepperi-addons-ngx-lib-rich-html-textarea.js +4 -4
  382. package/esm2015/rich-html-textarea/public-api.js +5 -5
  383. package/esm2015/rich-html-textarea/rich-html-textarea.component.js +219 -219
  384. package/esm2015/rich-html-textarea/rich-html-textarea.module.js +56 -56
  385. package/esm2015/search/pepperi-addons-ngx-lib-search.js +4 -4
  386. package/esm2015/search/public-api.js +6 -6
  387. package/esm2015/search/search.component.js +273 -273
  388. package/esm2015/search/search.model.js +1 -1
  389. package/esm2015/search/search.module.js +44 -44
  390. package/esm2015/select/pepperi-addons-ngx-lib-select.js +4 -4
  391. package/esm2015/select/public-api.js +5 -5
  392. package/esm2015/select/select.component.js +211 -211
  393. package/esm2015/select/select.module.js +42 -42
  394. package/esm2015/separator/pepperi-addons-ngx-lib-separator.js +4 -4
  395. package/esm2015/separator/public-api.js +5 -5
  396. package/esm2015/separator/separator.component.js +62 -62
  397. package/esm2015/separator/separator.module.js +12 -12
  398. package/esm2015/side-bar/pepperi-addons-ngx-lib-side-bar.js +4 -4
  399. package/esm2015/side-bar/public-api.js +6 -6
  400. package/esm2015/side-bar/side-bar.component.js +130 -130
  401. package/esm2015/side-bar/side-bar.model.js +1 -1
  402. package/esm2015/side-bar/side-bar.module.js +33 -33
  403. package/esm2015/signature/pepperi-addons-ngx-lib-signature.js +4 -4
  404. package/esm2015/signature/public-api.js +5 -5
  405. package/esm2015/signature/signature.component.js +233 -233
  406. package/esm2015/signature/signature.module.js +54 -54
  407. package/esm2015/size-detector/pepperi-addons-ngx-lib-size-detector.js +4 -4
  408. package/esm2015/size-detector/public-api.js +5 -5
  409. package/esm2015/size-detector/size-detector.component.js +88 -88
  410. package/esm2015/size-detector/size-detector.module.js +21 -21
  411. package/esm2015/slider/pepperi-addons-ngx-lib-slider.js +4 -4
  412. package/esm2015/slider/public-api.js +5 -5
  413. package/esm2015/slider/slider.component.js +95 -95
  414. package/esm2015/slider/slider.module.js +24 -24
  415. package/esm2015/smart-filters/boolean-filter/boolean-filter.component.js +41 -41
  416. package/esm2015/smart-filters/common/filter-actions.component.js +25 -25
  417. package/esm2015/smart-filters/common/model/base-filter-component.js +259 -259
  418. package/esm2015/smart-filters/common/model/creator.js +75 -75
  419. package/esm2015/smart-filters/common/model/field.js +116 -116
  420. package/esm2015/smart-filters/common/model/filter.js +1 -1
  421. package/esm2015/smart-filters/common/model/operator.js +215 -215
  422. package/esm2015/smart-filters/common/model/type.js +1 -1
  423. package/esm2015/smart-filters/date-filter/date-filter.component.js +143 -143
  424. package/esm2015/smart-filters/multi-select-filter/multi-select-filter.component.js +152 -152
  425. package/esm2015/smart-filters/number-filter/number-filter.component.js +102 -102
  426. package/esm2015/smart-filters/pepperi-addons-ngx-lib-smart-filters.js +4 -4
  427. package/esm2015/smart-filters/public-api.js +18 -18
  428. package/esm2015/smart-filters/smart-filters.component.js +129 -129
  429. package/esm2015/smart-filters/smart-filters.module.js +90 -90
  430. package/esm2015/smart-filters/text-filter/text-filter.component.js +78 -78
  431. package/esm2015/snack-bar/default-snack-bar.component.js +27 -27
  432. package/esm2015/snack-bar/pepperi-addons-ngx-lib-snack-bar.js +5 -5
  433. package/esm2015/snack-bar/public-api.js +7 -7
  434. package/esm2015/snack-bar/snack-bar.component.js +25 -25
  435. package/esm2015/snack-bar/snack-bar.model.js +6 -6
  436. package/esm2015/snack-bar/snack-bar.module.js +41 -41
  437. package/esm2015/snack-bar/snack-bar.service.js +62 -62
  438. package/esm2015/textarea/pepperi-addons-ngx-lib-textarea.js +4 -4
  439. package/esm2015/textarea/public-api.js +5 -5
  440. package/esm2015/textarea/textarea.component.js +160 -160
  441. package/esm2015/textarea/textarea.module.js +50 -50
  442. package/esm2015/textbox/pepperi-addons-ngx-lib-textbox.js +5 -5
  443. package/esm2015/textbox/public-api.js +5 -5
  444. package/esm2015/textbox/textbox-validation.directive.js +85 -85
  445. package/esm2015/textbox/textbox.component.js +388 -388
  446. package/esm2015/textbox/textbox.module.js +44 -44
  447. package/esm2015/textbox-icon/pepperi-addons-ngx-lib-textbox-icon.js +4 -4
  448. package/esm2015/textbox-icon/public-api.js +5 -5
  449. package/esm2015/textbox-icon/textbox-icon.component.js +40 -40
  450. package/esm2015/textbox-icon/textbox-icon.module.js +46 -46
  451. package/esm2015/top-bar/pepperi-addons-ngx-lib-top-bar.js +4 -4
  452. package/esm2015/top-bar/public-api.js +6 -6
  453. package/esm2015/top-bar/top-bar.component.js +98 -98
  454. package/esm2015/top-bar/top-bar.model.js +1 -1
  455. package/esm2015/top-bar/top-bar.module.js +40 -40
  456. package/fesm2015/pepperi-addons-ngx-lib-address.js +116 -116
  457. package/fesm2015/pepperi-addons-ngx-lib-attachment.js +227 -227
  458. package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.js +109 -109
  459. package/fesm2015/pepperi-addons-ngx-lib-button.js +149 -149
  460. package/fesm2015/pepperi-addons-ngx-lib-carousel.js +731 -731
  461. package/fesm2015/pepperi-addons-ngx-lib-checkbox.js +178 -178
  462. package/fesm2015/pepperi-addons-ngx-lib-color.js +295 -295
  463. package/fesm2015/pepperi-addons-ngx-lib-date.js +320 -320
  464. package/fesm2015/pepperi-addons-ngx-lib-dialog.js +169 -169
  465. package/fesm2015/pepperi-addons-ngx-lib-draggable-items.js +143 -143
  466. package/fesm2015/pepperi-addons-ngx-lib-field-title.js +55 -55
  467. package/fesm2015/pepperi-addons-ngx-lib-files-uploader.js +252 -252
  468. package/fesm2015/pepperi-addons-ngx-lib-form.js +2693 -2693
  469. package/fesm2015/pepperi-addons-ngx-lib-group-buttons.js +84 -84
  470. package/fesm2015/pepperi-addons-ngx-lib-icon.js +662 -662
  471. package/fesm2015/pepperi-addons-ngx-lib-image.js +306 -306
  472. package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.js +409 -409
  473. package/fesm2015/pepperi-addons-ngx-lib-link.js +357 -357
  474. package/fesm2015/pepperi-addons-ngx-lib-list.js +2661 -2661
  475. package/fesm2015/pepperi-addons-ngx-lib-menu.js +314 -314
  476. package/fesm2015/pepperi-addons-ngx-lib-page-layout.js +55 -55
  477. package/fesm2015/pepperi-addons-ngx-lib-profile-data-views-list.js +219 -219
  478. package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.js +554 -554
  479. package/fesm2015/pepperi-addons-ngx-lib-query-builder.js +989 -989
  480. package/fesm2015/pepperi-addons-ngx-lib-remote-loader.js +304 -294
  481. package/fesm2015/pepperi-addons-ngx-lib-remote-loader.js.map +1 -1
  482. package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.js +256 -256
  483. package/fesm2015/pepperi-addons-ngx-lib-search.js +301 -301
  484. package/fesm2015/pepperi-addons-ngx-lib-select.js +241 -241
  485. package/fesm2015/pepperi-addons-ngx-lib-separator.js +71 -71
  486. package/fesm2015/pepperi-addons-ngx-lib-side-bar.js +154 -154
  487. package/fesm2015/pepperi-addons-ngx-lib-signature.js +270 -270
  488. package/fesm2015/pepperi-addons-ngx-lib-size-detector.js +103 -103
  489. package/fesm2015/pepperi-addons-ngx-lib-slider.js +112 -112
  490. package/fesm2015/pepperi-addons-ngx-lib-smart-filters.js +1351 -1351
  491. package/fesm2015/pepperi-addons-ngx-lib-snack-bar.js +137 -137
  492. package/fesm2015/pepperi-addons-ngx-lib-textarea.js +194 -194
  493. package/fesm2015/pepperi-addons-ngx-lib-textbox-icon.js +78 -78
  494. package/fesm2015/pepperi-addons-ngx-lib-textbox.js +498 -498
  495. package/fesm2015/pepperi-addons-ngx-lib-top-bar.js +125 -125
  496. package/fesm2015/pepperi-addons-ngx-lib.js +4133 -4133
  497. package/field-title/field-title.component.d.ts +11 -11
  498. package/field-title/field-title.module.d.ts +5 -5
  499. package/field-title/pepperi-addons-ngx-lib-field-title.d.ts +4 -4
  500. package/field-title/public-api.d.ts +2 -2
  501. package/files-uploader/files-uploader.component.d.ts +53 -53
  502. package/files-uploader/files-uploader.module.d.ts +5 -5
  503. package/files-uploader/pepperi-addons-ngx-lib-files-uploader.d.ts +4 -4
  504. package/files-uploader/public-api.d.ts +2 -2
  505. package/form/field-generator.component.d.ts +36 -36
  506. package/form/form.component.d.ts +90 -90
  507. package/form/form.model.d.ts +20 -20
  508. package/form/form.module.d.ts +5 -5
  509. package/form/indicators.component.d.ts +7 -7
  510. package/form/internal-button.component.d.ts +39 -39
  511. package/form/internal-carusel.component.d.ts +38 -38
  512. package/form/internal-carusel.service.d.ts +7 -7
  513. package/form/internal-list.component.d.ts +92 -92
  514. package/form/internal-menu.component.d.ts +16 -16
  515. package/form/internal-page.component.d.ts +72 -72
  516. package/form/internal-page.service.d.ts +19 -19
  517. package/form/pepperi-addons-ngx-lib-form.d.ts +13 -13
  518. package/form/public-api.d.ts +3 -3
  519. package/group-buttons/group-buttons.component.d.ts +20 -20
  520. package/group-buttons/group-buttons.module.d.ts +5 -5
  521. package/group-buttons/pepperi-addons-ngx-lib-group-buttons.d.ts +4 -4
  522. package/group-buttons/public-api.d.ts +2 -2
  523. package/icon/icon-generated-all.model.d.ts +99 -99
  524. package/icon/icon-generated.model.d.ts +394 -394
  525. package/icon/icon-registry.service.d.ts +6 -6
  526. package/icon/icon.component.d.ts +46 -46
  527. package/icon/icon.module.d.ts +2 -2
  528. package/icon/icon.service.d.ts +10 -10
  529. package/icon/pepperi-addons-ngx-lib-icon.d.ts +4 -4
  530. package/icon/public-api.d.ts +6 -6
  531. package/image/image.component.d.ts +63 -63
  532. package/image/image.module.d.ts +5 -5
  533. package/image/image.service.d.ts +11 -11
  534. package/image/pepperi-addons-ngx-lib-image.d.ts +4 -4
  535. package/image/public-api.d.ts +3 -3
  536. package/images-filmstrip/images-filmstrip.component.d.ts +84 -84
  537. package/images-filmstrip/images-filmstrip.module.d.ts +5 -5
  538. package/images-filmstrip/pepperi-addons-ngx-lib-images-filmstrip.d.ts +4 -4
  539. package/images-filmstrip/public-api.d.ts +2 -2
  540. package/link/link.component.d.ts +131 -131
  541. package/link/link.module.d.ts +5 -5
  542. package/link/link.pipes.d.ts +4 -4
  543. package/link/pepperi-addons-ngx-lib-link.d.ts +5 -5
  544. package/link/public-api.d.ts +2 -2
  545. package/list/list-actions.component.d.ts +14 -14
  546. package/list/list-carousel.component.d.ts +36 -36
  547. package/list/list-chooser.component.d.ts +25 -25
  548. package/list/list-pager.component.d.ts +35 -35
  549. package/list/list-sorting.component.d.ts +26 -26
  550. package/list/list-total.component.d.ts +7 -7
  551. package/list/list-views.component.d.ts +31 -31
  552. package/list/list.component.d.ts +161 -161
  553. package/list/list.model.d.ts +31 -31
  554. package/list/list.module.d.ts +5 -5
  555. package/list/list.pipes.d.ts +11 -11
  556. package/list/pepperi-addons-ngx-lib-list.d.ts +6 -6
  557. package/list/public-api.d.ts +10 -10
  558. package/list/virtual-scroller.d.ts +176 -176
  559. package/menu/menu-item.component.d.ts +25 -25
  560. package/menu/menu.component.d.ts +43 -43
  561. package/menu/menu.model.d.ts +25 -25
  562. package/menu/menu.module.d.ts +5 -5
  563. package/menu/pepperi-addons-ngx-lib-menu.d.ts +5 -5
  564. package/menu/public-api.d.ts +3 -3
  565. package/ngx-lib.module.d.ts +2 -2
  566. package/package.json +1 -1
  567. package/page-layout/page-layout.component.d.ts +16 -16
  568. package/page-layout/page-layout.module.d.ts +2 -2
  569. package/page-layout/pepperi-addons-ngx-lib-page-layout.d.ts +4 -4
  570. package/page-layout/public-api.d.ts +2 -2
  571. package/pepperi-addons-ngx-lib.d.ts +8 -8
  572. package/profile-data-views-list/pepperi-addons-ngx-lib-profile-data-views-list.d.ts +4 -4
  573. package/profile-data-views-list/profile-data-view/profile-data-view.component.d.ts +15 -15
  574. package/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.d.ts +21 -21
  575. package/profile-data-views-list/profile-data-views-list.component.d.ts +32 -32
  576. package/profile-data-views-list/profile-data-views-list.model.d.ts +18 -18
  577. package/profile-data-views-list/profile-data-views-list.module.d.ts +5 -5
  578. package/profile-data-views-list/public-api.d.ts +5 -5
  579. package/public-api.d.ts +2 -2
  580. package/quantity-selector/pepperi-addons-ngx-lib-quantity-selector.d.ts +6 -6
  581. package/quantity-selector/public-api.d.ts +2 -2
  582. package/quantity-selector/quantity-selector-validation.directive.d.ts +13 -13
  583. package/quantity-selector/quantity-selector.component.d.ts +98 -98
  584. package/quantity-selector/quantity-selector.module.d.ts +5 -5
  585. package/quantity-selector/quantity-selector.pipes.d.ts +4 -4
  586. package/query-builder/common/model/field.d.ts +8 -8
  587. package/query-builder/common/model/filter.d.ts +6 -6
  588. package/query-builder/common/model/legacy.d.ts +29 -29
  589. package/query-builder/common/model/operator-unit.d.ts +13 -13
  590. package/query-builder/common/model/operator.d.ts +21 -21
  591. package/query-builder/common/model/structure.d.ts +4 -4
  592. package/query-builder/common/model/type-map.d.ts +12 -12
  593. package/query-builder/common/model/type.d.ts +4 -4
  594. package/query-builder/common/services/output-query.service.d.ts +44 -44
  595. package/query-builder/common/services/query-structure.service.d.ts +75 -75
  596. package/query-builder/common/services/type-convertor.service.d.ts +10 -10
  597. package/query-builder/pepperi-addons-ngx-lib-query-builder.d.ts +9 -9
  598. package/query-builder/public-api.d.ts +5 -5
  599. package/query-builder/query-builder-item/query-builder-item.component.d.ts +37 -37
  600. package/query-builder/query-builder-section/query-builder-section.component.d.ts +27 -27
  601. package/query-builder/query-builder.component.d.ts +35 -35
  602. package/query-builder/query-builder.module.d.ts +2 -2
  603. package/query-builder/query-builder.service.d.ts +27 -27
  604. package/remote-loader/addon-block-loader.component.d.ts +25 -24
  605. package/remote-loader/pepperi-addons-ngx-lib-remote-loader.d.ts +4 -4
  606. package/remote-loader/pepperi-addons-ngx-lib-remote-loader.metadata.json +1 -1
  607. package/remote-loader/public-api.d.ts +5 -5
  608. package/remote-loader/remote-loader.component.d.ts +24 -24
  609. package/remote-loader/remote-loader.model.d.ts +34 -34
  610. package/remote-loader/remote-loader.module.d.ts +2 -2
  611. package/remote-loader/remote-loader.service.d.ts +23 -23
  612. package/rich-html-textarea/pepperi-addons-ngx-lib-rich-html-textarea.d.ts +4 -4
  613. package/rich-html-textarea/public-api.d.ts +2 -2
  614. package/rich-html-textarea/rich-html-textarea.component.d.ts +75 -75
  615. package/rich-html-textarea/rich-html-textarea.module.d.ts +5 -5
  616. package/search/pepperi-addons-ngx-lib-search.d.ts +4 -4
  617. package/search/public-api.d.ts +3 -3
  618. package/search/search.component.d.ts +61 -61
  619. package/search/search.model.d.ts +14 -14
  620. package/search/search.module.d.ts +5 -5
  621. package/select/pepperi-addons-ngx-lib-select.d.ts +4 -4
  622. package/select/public-api.d.ts +2 -2
  623. package/select/select.component.d.ts +50 -50
  624. package/select/select.module.d.ts +5 -5
  625. package/separator/pepperi-addons-ngx-lib-separator.d.ts +4 -4
  626. package/separator/public-api.d.ts +2 -2
  627. package/separator/separator.component.d.ts +19 -19
  628. package/separator/separator.module.d.ts +2 -2
  629. package/side-bar/pepperi-addons-ngx-lib-side-bar.d.ts +4 -4
  630. package/side-bar/public-api.d.ts +3 -3
  631. package/side-bar/side-bar.component.d.ts +38 -38
  632. package/side-bar/side-bar.model.d.ts +4 -4
  633. package/side-bar/side-bar.module.d.ts +5 -5
  634. package/signature/pepperi-addons-ngx-lib-signature.d.ts +4 -4
  635. package/signature/public-api.d.ts +2 -2
  636. package/signature/signature.component.d.ts +65 -65
  637. package/signature/signature.module.d.ts +5 -5
  638. package/size-detector/pepperi-addons-ngx-lib-size-detector.d.ts +4 -4
  639. package/size-detector/public-api.d.ts +2 -2
  640. package/size-detector/size-detector.component.d.ts +26 -26
  641. package/size-detector/size-detector.module.d.ts +2 -2
  642. package/slider/pepperi-addons-ngx-lib-slider.d.ts +4 -4
  643. package/slider/public-api.d.ts +2 -2
  644. package/slider/slider.component.d.ts +36 -36
  645. package/slider/slider.module.d.ts +2 -2
  646. package/smart-filters/boolean-filter/boolean-filter.component.d.ts +12 -12
  647. package/smart-filters/common/filter-actions.component.d.ts +9 -9
  648. package/smart-filters/common/model/base-filter-component.d.ts +67 -67
  649. package/smart-filters/common/model/creator.d.ts +6 -6
  650. package/smart-filters/common/model/field.d.ts +69 -69
  651. package/smart-filters/common/model/filter.d.ts +11 -11
  652. package/smart-filters/common/model/operator.d.ts +38 -38
  653. package/smart-filters/common/model/type.d.ts +4 -4
  654. package/smart-filters/date-filter/date-filter.component.d.ts +41 -41
  655. package/smart-filters/multi-select-filter/multi-select-filter.component.d.ts +39 -39
  656. package/smart-filters/number-filter/number-filter.component.d.ts +38 -38
  657. package/smart-filters/pepperi-addons-ngx-lib-smart-filters.d.ts +4 -4
  658. package/smart-filters/public-api.d.ts +14 -14
  659. package/smart-filters/smart-filters.component.d.ts +32 -32
  660. package/smart-filters/smart-filters.module.d.ts +5 -5
  661. package/smart-filters/text-filter/text-filter.component.d.ts +17 -17
  662. package/snack-bar/default-snack-bar.component.d.ts +10 -10
  663. package/snack-bar/pepperi-addons-ngx-lib-snack-bar.d.ts +5 -5
  664. package/snack-bar/public-api.d.ts +4 -4
  665. package/snack-bar/snack-bar.component.d.ts +9 -9
  666. package/snack-bar/snack-bar.model.d.ts +8 -8
  667. package/snack-bar/snack-bar.module.d.ts +5 -5
  668. package/snack-bar/snack-bar.service.d.ts +21 -21
  669. package/textarea/pepperi-addons-ngx-lib-textarea.d.ts +4 -4
  670. package/textarea/pepperi-addons-ngx-lib-textarea.metadata.json +1 -1
  671. package/textarea/public-api.d.ts +2 -2
  672. package/textarea/textarea.component.d.ts +51 -51
  673. package/textarea/textarea.module.d.ts +5 -5
  674. package/textbox/pepperi-addons-ngx-lib-textbox.d.ts +5 -5
  675. package/textbox/public-api.d.ts +2 -2
  676. package/textbox/textbox-validation.directive.d.ts +18 -18
  677. package/textbox/textbox.component.d.ts +134 -134
  678. package/textbox/textbox.module.d.ts +5 -5
  679. package/textbox-icon/pepperi-addons-ngx-lib-textbox-icon.d.ts +4 -4
  680. package/textbox-icon/public-api.d.ts +2 -2
  681. package/textbox-icon/textbox-icon.component.d.ts +10 -10
  682. package/textbox-icon/textbox-icon.module.d.ts +5 -5
  683. package/top-bar/pepperi-addons-ngx-lib-top-bar.d.ts +4 -4
  684. package/top-bar/public-api.d.ts +3 -3
  685. package/top-bar/top-bar.component.d.ts +36 -36
  686. package/top-bar/top-bar.model.d.ts +4 -4
  687. package/top-bar/top-bar.module.d.ts +5 -5
@@ -1,389 +1,389 @@
1
- import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ElementRef, ViewChild, Renderer2, HostBinding, } from '@angular/core';
2
- import { FormBuilder } from '@angular/forms';
3
- import { TranslateService } from '@ngx-translate/core';
4
- import { PepCustomizationService, DEFAULT_HORIZONTAL_ALIGNMENT, PepTextboxField, PepUtilitiesService, } from '@pepperi-addons/ngx-lib';
5
- /**
6
- * This is a text box input component that can be use to
7
- *
8
- * @export
9
- * @class PepTextboxComponent
10
- * @implements {OnChanges}
11
- * @implements {OnInit}
12
- * @implements {OnDestroy}
13
- */
14
- export class PepTextboxComponent {
15
- constructor(fb, customizationService, renderer, element, translate, utilitiesService) {
16
- this.fb = fb;
17
- this.customizationService = customizationService;
18
- this.renderer = renderer;
19
- this.element = element;
20
- this.translate = translate;
21
- this.utilitiesService = utilitiesService;
22
- this.dataQa = '';
23
- this._key = '';
24
- this._value = '';
25
- this._formattedValue = '';
26
- /**
27
- * The title of the textbox.
28
- *
29
- * @memberof PepTextboxComponent
30
- */
31
- this.label = '';
32
- /**
33
- * The placeholder (relevant only for children - if parent isn't null).
34
- *
35
- * @memberof PepTextboxComponent
36
- */
37
- this.placeholder = '';
38
- /**
39
- * The type of the textbox.
40
- *
41
- * @type {PepTextboxFieldType}
42
- * @memberof PepTextboxComponent
43
- */
44
- this._type = 'text';
45
- /**
46
- * If the textbox is mandatory
47
- *
48
- * @memberof PepTextboxComponent
49
- */
50
- this.mandatory = false;
51
- // TODO: Check if should remove disabled and keep only readonly.
52
- /**
53
- * If the textbox is disabled.
54
- *
55
- * @memberof PepTextboxComponent
56
- */
57
- this.disabled = false;
58
- /**
59
- * If the textbox is readonly
60
- *
61
- * @memberof PepTextboxComponent
62
- */
63
- this.readonly = false;
64
- this.textColor = '';
65
- this.xAlignment = DEFAULT_HORIZONTAL_ALIGNMENT;
66
- this.rowSpan = 1;
67
- // @Input() lastFocusField: any;
68
- this.minValue = NaN;
69
- this.maxValue = NaN;
70
- this._visible = true;
71
- this.form = null;
72
- this.isActive = false;
73
- this.showTitle = true;
74
- this.renderTitle = true;
75
- this.renderError = true;
76
- this.renderSymbol = true;
77
- this.layoutType = 'form';
78
- this.parentFieldKey = null;
79
- /**
80
- * The value change event.
81
- *
82
- * @type {EventEmitter<string>}
83
- * @memberof PepTextboxComponent
84
- */
85
- this.valueChange = new EventEmitter();
86
- this.formValidationChange = new EventEmitter();
87
- this._calculateFormattedValue = true;
88
- this.controlType = 'textbox';
89
- this.standAlone = false;
90
- this.isInEditMode = false;
91
- this.isInFocus = false;
92
- }
93
- /**
94
- * The text box key
95
- *
96
- * @memberof PepTextboxComponent
97
- */
98
- set key(value) {
99
- this._key = value;
100
- this.dataQa = value;
101
- }
102
- get key() {
103
- return this._key;
104
- }
105
- /**
106
- * The value of the text box.
107
- *
108
- * @memberof PepTextboxComponent
109
- */
110
- set value(value) {
111
- if (!value) {
112
- value = '';
113
- }
114
- this._value = value;
115
- this.setFormattedValue(value);
116
- }
117
- get value() {
118
- return this._value;
119
- }
120
- /**
121
- * The formatted value.
122
- *
123
- * @memberof PepTextboxComponent
124
- */
125
- set formattedValue(value) {
126
- // Do nothing.
127
- // if (!value) {
128
- // value = '';
129
- // }
130
- // if (this._calculateFormattedValue) {
131
- // this._calculateFormattedValue = false;
132
- // }
133
- // this.setFormattedValue(value);
134
- }
135
- get formattedValue() {
136
- return this._formattedValue;
137
- }
138
- set type(value) {
139
- this._type = value;
140
- if (this.value) {
141
- this.setFormattedValue(this.value);
142
- }
143
- }
144
- get type() {
145
- return this._type;
146
- }
147
- set visible(visible) {
148
- this._visible = visible;
149
- if (visible) {
150
- this.renderer.removeClass(this.element.nativeElement, 'hidden-element');
151
- }
152
- else {
153
- this.renderer.addClass(this.element.nativeElement, 'hidden-element');
154
- }
155
- }
156
- get visible() {
157
- return this._visible;
158
- }
159
- get calculateFormattedValue() {
160
- return this._calculateFormattedValue;
161
- }
162
- setFormattedValue(value) {
163
- if (this._calculateFormattedValue) {
164
- if (this.isNumberType()) {
165
- this._formattedValue = this.utilitiesService.formatNumber(value, this.isDecimal());
166
- }
167
- else {
168
- this._formattedValue = value;
169
- }
170
- }
171
- else {
172
- this._formattedValue = value;
173
- }
174
- this.updateFormFieldValue();
175
- }
176
- updateFormFieldValue() {
177
- this.customizationService.updateFormFieldValue(this.form, this.key, this.formattedValue, this.parentFieldKey);
178
- }
179
- get displayValue() {
180
- let res = '';
181
- if (this.type == 'link') {
182
- res = this.formattedValue;
183
- }
184
- else {
185
- res = this.isInFocus ? this.value : this.formattedValue;
186
- }
187
- return res;
188
- }
189
- setDefaultForm() {
190
- const pepField = new PepTextboxField({
191
- key: this.key,
192
- value: this.value,
193
- mandatory: this.mandatory,
194
- readonly: this.readonly,
195
- disabled: this.disabled,
196
- maxFieldCharacters: this.maxFieldCharacters,
197
- type: this.type,
198
- minValue: this.minValue,
199
- maxValue: this.maxValue,
200
- });
201
- this.form = this.customizationService.getDefaultFromGroup(pepField, this.renderError);
202
- }
203
- ngOnInit() {
204
- if (this.form === null) {
205
- this.standAlone = true;
206
- this.minValue =
207
- isNaN(this.minValue) && !isNaN(this.maxValue)
208
- ? 0
209
- : this.minValue;
210
- this.maxValue =
211
- isNaN(this.maxValue) && !isNaN(this.minValue)
212
- ? 99999
213
- : this.maxValue;
214
- this.setDefaultForm();
215
- this.renderer.addClass(this.element.nativeElement, PepCustomizationService.STAND_ALONE_FIELD_CLASS_NAME);
216
- if (!this.renderTitle) {
217
- this.renderer.addClass(this.element.nativeElement, PepCustomizationService.STAND_ALONE_FIELD_NO_SPACING_CLASS_NAME);
218
- }
219
- }
220
- this.readonly = this.type === 'duration' ? true : this.readonly; // Hack until we develop Timer UI for editing Duration field
221
- this.updateFormFieldValue();
222
- }
223
- ngOnChanges(changes) {
224
- if (this.standAlone) {
225
- this.setDefaultForm();
226
- }
227
- this.readonly = this.type === 'duration' ? true : this.readonly; // Hack until we develop Timer UI for editing Duration field
228
- }
229
- ngOnDestroy() {
230
- //
231
- }
232
- onFocus(event) {
233
- this.isInFocus = true;
234
- // select the value in focus (DI-18246 improvement)
235
- setTimeout(() => {
236
- const eventTarget = event.target || event.srcElement;
237
- if (eventTarget) {
238
- eventTarget.select();
239
- }
240
- }, 0);
241
- }
242
- isDecimal() {
243
- let res = false;
244
- if (this.isNumberType()) {
245
- if (this.type === 'currency' || this.type === 'real') {
246
- res = true;
247
- }
248
- }
249
- return res;
250
- }
251
- isNumberType() {
252
- return (this.type === 'percentage' ||
253
- this.type === 'int' ||
254
- this.type === 'currency' ||
255
- this.type === 'real');
256
- }
257
- isValueValid(value) {
258
- let res = false;
259
- if (this.isNumberType()) {
260
- if (value === '') {
261
- res = this.mandatory ? false : true;
262
- }
263
- else {
264
- const numberValue = this.utilitiesService.coerceNumberProperty(value);
265
- res =
266
- numberValue >= this.minValue &&
267
- numberValue <= this.maxValue;
268
- }
269
- }
270
- else {
271
- // TODO: Maybe need to check other types.
272
- res = true;
273
- }
274
- return res;
275
- }
276
- isDifferentValue(value) {
277
- let res = false;
278
- if (this.isNumberType()) {
279
- if (this.value === '' || value === '') {
280
- res = true;
281
- }
282
- else {
283
- const currentValue = this.utilitiesService.coerceNumberProperty(this.value);
284
- const newValue = this.utilitiesService.coerceNumberProperty(value);
285
- res = currentValue !== newValue;
286
- }
287
- }
288
- else {
289
- res = true;
290
- }
291
- return res;
292
- }
293
- onChange(e) {
294
- const value = e.target ? e.target.value : e;
295
- this.valueChange.emit(value);
296
- }
297
- onBlur(e) {
298
- this.isInFocus = false;
299
- const value = e.target ? e.target.value : e;
300
- if (value !== this.value && this.isDifferentValue(value)) {
301
- // If renderError is false and the new value is not valid.
302
- if (!this.renderError && !this.isValueValid(value)) {
303
- this.renderer.setProperty(this.input.nativeElement, 'value', this.value);
304
- }
305
- else {
306
- this.value = value;
307
- // // If the user is setting the formatted value then set the value till the user format it and return it back.
308
- // if (!this._calculateFormattedValue) {
309
- // this._formattedValue = value;
310
- // }
311
- this.valueChange.emit(value);
312
- }
313
- }
314
- if (this.isInEditMode) {
315
- this.isInEditMode = false;
316
- }
317
- }
318
- anchorClicked() {
319
- const currentValue = this.value;
320
- if (currentValue.trim().length > 0) {
321
- switch (this.type) {
322
- case 'email':
323
- window.open('mailto:' + currentValue, 'email');
324
- break;
325
- case 'phone':
326
- window.open('tel:' + currentValue, 'tel');
327
- break;
328
- case 'link':
329
- window.open(currentValue);
330
- break;
331
- default:
332
- break;
333
- }
334
- }
335
- }
336
- cardTemplateClicked(event) {
337
- this.isInEditMode = true;
338
- setTimeout(() => {
339
- this.input.nativeElement.focus();
340
- }, 0);
341
- }
342
- }
343
- PepTextboxComponent.decorators = [
344
- { type: Component, args: [{
345
- selector: 'pep-textbox',
346
- template: "<ng-container [formGroup]=\"form\">\n <ng-template #pepTemplate let-isFormView=\"isFormView\" let-hasParent=\"hasParent\">\n <pep-field-title *ngIf=\"renderTitle && isFormView && !hasParent\" [label]=\"label\" [mandatory]=\"mandatory\"\n [disabled]=\"disabled\" [maxFieldCharacters]=\"maxFieldCharacters\" [xAlignment]=\"xAlignment\"\n [showTitle]=\"showTitle\" [inputLength]=\"input.value?.length\">\n </pep-field-title>\n <mat-form-field appearance=\"outline\">\n <input #input pepTextboxValidation [id]=\"key\" [name]=\"key\" class=\" body-sm \" matInput autocomplete=\"off\"\n maxlength=\"{{ maxFieldCharacters > 0 ? maxFieldCharacters : 99999 }}\"\n [placeholder]=\"hasParent && !disabled ? placeholder : ''\"\n [ngStyle]=\"{ color: textColor, 'text-align': xAlignment == 'center' ? 'center' : xAlignment == 'right' ? 'right' : 'left' }\"\n title=\"{{ formattedValue }}\" [formControlName]=\"key\" [type]=\"type\" [value]=\"displayValue\"\n (keyup.enter)=\"$event?.currentTarget?.blur()\" (focus)=\"onFocus($event)\" (blur)=\"onBlur($event)\"\n (change)=\"onChange($event)\"\n [ngClass]=\"{'disable-hidden': disabled && formattedValue?.length > 0 && (type === 'phone' || type === 'email' || type === 'link')}\" />\n\n <span\n *ngIf=\"disabled && formattedValue?.length > 0 && (type === 'phone' || type === 'email' || type === 'link')\"\n class=\"dis-grid\">\n <a href=\"javascript:void(0)\" (click)=\"anchorClicked()\" [id]=\"key\" [name]=\"key\"\n class=\"color-link body-sm \"> {{formattedValue}}</a>\n </span>\n <mat-error *ngIf=\"renderError\">\n <ng-container *ngIf=\"mandatory && input.value.length == 0 then requiredError else otherError\">\n </ng-container>\n <ng-template #requiredError>\n <span class=\"body-xs\" [title]=\"('MESSAGES.ERROR_IS_REQUIRED' | translate: { field: label })\"\n [innerText]=\"('MESSAGES.ERROR_IS_REQUIRED' | translate: { field: label })\">\n </span>\n </ng-template>\n <ng-template #otherError>\n <span class=\"body-xs\" [title]=\"(input.value | pepToNumber) > this.maxValue || (input.value | pepToNumber) < this.minValue ?\n ('MESSAGES.ERROR_RANGE_IS_NOT_VALID' | translate: { min: minValue, max: maxValue }) :\n ('MESSAGES.ERROR_IS_NOT_VALID' | translate: { field: label })\" [innerText]=\"(input.value | pepToNumber) > this.maxValue || (input.value | pepToNumber) < this.minValue ?\n ('MESSAGES.ERROR_RANGE_IS_NOT_VALID' | translate: { min: minValue, max: maxValue }) :\n ('MESSAGES.ERROR_IS_NOT_VALID' | translate: { field: label })\">\n </span>\n </ng-template>\n </mat-error>\n\n <pep-textbox-icon *ngIf=\"renderSymbol && isFormView && xAlignment == 'right'\" matPrefix [value]=\"value\"\n [label]=\"label\" [type]=\"type\" [disabled]=\"disabled\">\n </pep-textbox-icon>\n <pep-textbox-icon *ngIf=\"renderSymbol && isFormView && (xAlignment == 'left')\" matSuffix [value]=\"value\"\n [label]=\"label\" [type]=\"type\" [disabled]=\"disabled\">\n </pep-textbox-icon>\n </mat-form-field>\n </ng-template>\n\n <ng-container *ngIf=\"layoutType === 'form'\">\n <ng-container *ngIf=\"parentFieldKey; then groupedBlock; else regularBlock\"></ng-container>\n <ng-template #regularBlock>\n <ng-container *ngTemplateOutlet=\"pepTemplate; context: { isFormView: true, hasParent: false }\">\n </ng-container>\n </ng-template>\n <ng-template #groupedBlock>\n <ng-container [formGroupName]=\"parentFieldKey\">\n <mat-form-field appearance=\"outline\">\n <!-- (keyup)=\"onKeyUp($event)\" -->\n <input pepTextboxValidation [id]=\"key\" [name]=\"key\" class=\" body-sm \" matInput autocomplete=\"off\"\n [placeholder]=\"!disabled ? placeholder : ''\" title=\"{{ formattedValue }}\"\n [formControlName]=\"key\" [value]=\"value\" (blur)=\"onBlur($event)\" (change)=\"onChange($event)\"\n (keyup.enter)=\"$event?.currentTarget?.blur()\" (focus)=\"onFocus($event)\" />\n </mat-form-field>\n <!-- <ng-container *ngTemplateOutlet=\"pepTemplate; context: { isFormView: true, hasParent: true }\"></ng-container> -->\n </ng-container>\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"layoutType === 'card'\">\n <ng-container *ngIf=\"isInEditMode; then editBlock; else readOnlyBlock\"></ng-container>\n <ng-template #editBlock>\n <div [ngClass]=\"{'one-row': rowSpan === 1}\">\n <ng-container *ngTemplateOutlet=\"pepTemplate; context: { isFormView: false, hasParent: false }\">\n </ng-container>\n </div>\n </ng-template>\n <ng-template #readOnlyBlock>\n <div class=\"pep-card-input card-flex-container\" [ngStyle]=\"{ color: textColor }\"\n [class]=\"'text-align-' + xAlignment\" [ngClass]=\"{'one-row': rowSpan === 1,\n 'multi-rows': rowSpan > 1,\n 'pep-button weak': isActive && !disabled}\"\n (click)=\"!disabled ? cardTemplateClicked($event) : ''\">\n <span *ngIf=\"showTitle && label != ''\" class=\"body-xs title\" title=\"{{ label }}\">{{ label\n }}&nbsp;</span>\n <span [id]=\"key\" title=\"{{ formattedValue }}\" class=\"body-sm value\"\n [ngClass]=\"{'multi-rows-text': rowSpan > 1}\" [ngStyle]=\"{ '-webkit-line-clamp': rowSpan }\">{{\n formattedValue }}</span>\n <button *ngIf=\"isActive && !disabled\" class=\"pep-button weak card-edit-button\" mat-button>\n <mat-icon>\n <pep-icon name=\"system_edit\">\n </pep-icon>\n </mat-icon>\n </button>\n </div>\n </ng-template>\n\n </ng-container>\n\n <ng-container *ngIf=\"layoutType === 'table'\">\n <ng-container *ngIf=\"isActive && !disabled; then selectedBlock; else notSelectedBlock\"></ng-container>\n <ng-template #selectedBlock>\n <ng-container *ngTemplateOutlet=\"pepTemplate; context: { isFormView: false, hasParent: false }\">\n </ng-container>\n </ng-template>\n <ng-template #notSelectedBlock>\n <ng-container *ngIf=\"formattedValue?.length > 0; then notEmptyBlock; else emptyBlock\"></ng-container>\n <ng-template #notEmptyBlock>\n <ng-container [ngSwitch]=\"type\">\n <ng-container *ngSwitchCase=\"'link'\">\n <a [id]=\"key\" class=\"color-link body-sm pep-report-input\"\n [ngClass]=\"{'disable': (disabled && value === '')}\" *ngIf=\"formattedValue != null\"\n title=\"{{ formattedValue }}\" target=\"_blank\" href=\"{{ value ? value : formattedValue }}\">{{\n formattedValue }}</a>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <span [id]=\"key\" class=\"body-sm pep-report-input\" [ngClass]=\"{'readonly': disabled}\"\n title=\"{{ formattedValue }}\" [ngStyle]=\"{ color: textColor }\">{{ formattedValue }}</span>\n </ng-container>\n </ng-container>\n </ng-template>\n <ng-template #emptyBlock>\n <span [id]=\"key\">&nbsp;</span>\n </ng-template>\n </ng-template>\n </ng-container>\n\n</ng-container>",
347
- changeDetection: ChangeDetectionStrategy.OnPush,
348
- styles: [":host{height:inherit;display:grid}:host>*{align-self:center;align-items:baseline}.disable-hidden{display:none}.dis-grid{display:grid}.multi-rows-text{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal!important}", ""]
349
- },] }
350
- ];
351
- PepTextboxComponent.ctorParameters = () => [
352
- { type: FormBuilder },
353
- { type: PepCustomizationService },
354
- { type: Renderer2 },
355
- { type: ElementRef },
356
- { type: TranslateService },
357
- { type: PepUtilitiesService }
358
- ];
359
- PepTextboxComponent.propDecorators = {
360
- dataQa: [{ type: HostBinding, args: ['attr.data-qa',] }],
361
- key: [{ type: Input }],
362
- value: [{ type: Input }],
363
- formattedValue: [{ type: Input }],
364
- label: [{ type: Input }],
365
- placeholder: [{ type: Input }],
366
- type: [{ type: Input }],
367
- mandatory: [{ type: Input }],
368
- disabled: [{ type: Input }],
369
- readonly: [{ type: Input }],
370
- maxFieldCharacters: [{ type: Input }],
371
- textColor: [{ type: Input }],
372
- xAlignment: [{ type: Input }],
373
- rowSpan: [{ type: Input }],
374
- minValue: [{ type: Input }],
375
- maxValue: [{ type: Input }],
376
- visible: [{ type: Input }],
377
- form: [{ type: Input }],
378
- isActive: [{ type: Input }],
379
- showTitle: [{ type: Input }],
380
- renderTitle: [{ type: Input }],
381
- renderError: [{ type: Input }],
382
- renderSymbol: [{ type: Input }],
383
- layoutType: [{ type: Input }],
384
- parentFieldKey: [{ type: Input }],
385
- valueChange: [{ type: Output }],
386
- formValidationChange: [{ type: Output }],
387
- input: [{ type: ViewChild, args: ['input',] }]
388
- };
1
+ import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ElementRef, ViewChild, Renderer2, HostBinding, } from '@angular/core';
2
+ import { FormBuilder } from '@angular/forms';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import { PepCustomizationService, DEFAULT_HORIZONTAL_ALIGNMENT, PepTextboxField, PepUtilitiesService, } from '@pepperi-addons/ngx-lib';
5
+ /**
6
+ * This is a text box input component that can be use to
7
+ *
8
+ * @export
9
+ * @class PepTextboxComponent
10
+ * @implements {OnChanges}
11
+ * @implements {OnInit}
12
+ * @implements {OnDestroy}
13
+ */
14
+ export class PepTextboxComponent {
15
+ constructor(fb, customizationService, renderer, element, translate, utilitiesService) {
16
+ this.fb = fb;
17
+ this.customizationService = customizationService;
18
+ this.renderer = renderer;
19
+ this.element = element;
20
+ this.translate = translate;
21
+ this.utilitiesService = utilitiesService;
22
+ this.dataQa = '';
23
+ this._key = '';
24
+ this._value = '';
25
+ this._formattedValue = '';
26
+ /**
27
+ * The title of the textbox.
28
+ *
29
+ * @memberof PepTextboxComponent
30
+ */
31
+ this.label = '';
32
+ /**
33
+ * The placeholder (relevant only for children - if parent isn't null).
34
+ *
35
+ * @memberof PepTextboxComponent
36
+ */
37
+ this.placeholder = '';
38
+ /**
39
+ * The type of the textbox.
40
+ *
41
+ * @type {PepTextboxFieldType}
42
+ * @memberof PepTextboxComponent
43
+ */
44
+ this._type = 'text';
45
+ /**
46
+ * If the textbox is mandatory
47
+ *
48
+ * @memberof PepTextboxComponent
49
+ */
50
+ this.mandatory = false;
51
+ // TODO: Check if should remove disabled and keep only readonly.
52
+ /**
53
+ * If the textbox is disabled.
54
+ *
55
+ * @memberof PepTextboxComponent
56
+ */
57
+ this.disabled = false;
58
+ /**
59
+ * If the textbox is readonly
60
+ *
61
+ * @memberof PepTextboxComponent
62
+ */
63
+ this.readonly = false;
64
+ this.textColor = '';
65
+ this.xAlignment = DEFAULT_HORIZONTAL_ALIGNMENT;
66
+ this.rowSpan = 1;
67
+ // @Input() lastFocusField: any;
68
+ this.minValue = NaN;
69
+ this.maxValue = NaN;
70
+ this._visible = true;
71
+ this.form = null;
72
+ this.isActive = false;
73
+ this.showTitle = true;
74
+ this.renderTitle = true;
75
+ this.renderError = true;
76
+ this.renderSymbol = true;
77
+ this.layoutType = 'form';
78
+ this.parentFieldKey = null;
79
+ /**
80
+ * The value change event.
81
+ *
82
+ * @type {EventEmitter<string>}
83
+ * @memberof PepTextboxComponent
84
+ */
85
+ this.valueChange = new EventEmitter();
86
+ this.formValidationChange = new EventEmitter();
87
+ this._calculateFormattedValue = true;
88
+ this.controlType = 'textbox';
89
+ this.standAlone = false;
90
+ this.isInEditMode = false;
91
+ this.isInFocus = false;
92
+ }
93
+ /**
94
+ * The text box key
95
+ *
96
+ * @memberof PepTextboxComponent
97
+ */
98
+ set key(value) {
99
+ this._key = value;
100
+ this.dataQa = value;
101
+ }
102
+ get key() {
103
+ return this._key;
104
+ }
105
+ /**
106
+ * The value of the text box.
107
+ *
108
+ * @memberof PepTextboxComponent
109
+ */
110
+ set value(value) {
111
+ if (!value) {
112
+ value = '';
113
+ }
114
+ this._value = value;
115
+ this.setFormattedValue(value);
116
+ }
117
+ get value() {
118
+ return this._value;
119
+ }
120
+ /**
121
+ * The formatted value.
122
+ *
123
+ * @memberof PepTextboxComponent
124
+ */
125
+ set formattedValue(value) {
126
+ // Do nothing.
127
+ // if (!value) {
128
+ // value = '';
129
+ // }
130
+ // if (this._calculateFormattedValue) {
131
+ // this._calculateFormattedValue = false;
132
+ // }
133
+ // this.setFormattedValue(value);
134
+ }
135
+ get formattedValue() {
136
+ return this._formattedValue;
137
+ }
138
+ set type(value) {
139
+ this._type = value;
140
+ if (this.value) {
141
+ this.setFormattedValue(this.value);
142
+ }
143
+ }
144
+ get type() {
145
+ return this._type;
146
+ }
147
+ set visible(visible) {
148
+ this._visible = visible;
149
+ if (visible) {
150
+ this.renderer.removeClass(this.element.nativeElement, 'hidden-element');
151
+ }
152
+ else {
153
+ this.renderer.addClass(this.element.nativeElement, 'hidden-element');
154
+ }
155
+ }
156
+ get visible() {
157
+ return this._visible;
158
+ }
159
+ get calculateFormattedValue() {
160
+ return this._calculateFormattedValue;
161
+ }
162
+ setFormattedValue(value) {
163
+ if (this._calculateFormattedValue) {
164
+ if (this.isNumberType()) {
165
+ this._formattedValue = this.utilitiesService.formatNumber(value, this.isDecimal());
166
+ }
167
+ else {
168
+ this._formattedValue = value;
169
+ }
170
+ }
171
+ else {
172
+ this._formattedValue = value;
173
+ }
174
+ this.updateFormFieldValue();
175
+ }
176
+ updateFormFieldValue() {
177
+ this.customizationService.updateFormFieldValue(this.form, this.key, this.formattedValue, this.parentFieldKey);
178
+ }
179
+ get displayValue() {
180
+ let res = '';
181
+ if (this.type == 'link') {
182
+ res = this.formattedValue;
183
+ }
184
+ else {
185
+ res = this.isInFocus ? this.value : this.formattedValue;
186
+ }
187
+ return res;
188
+ }
189
+ setDefaultForm() {
190
+ const pepField = new PepTextboxField({
191
+ key: this.key,
192
+ value: this.value,
193
+ mandatory: this.mandatory,
194
+ readonly: this.readonly,
195
+ disabled: this.disabled,
196
+ maxFieldCharacters: this.maxFieldCharacters,
197
+ type: this.type,
198
+ minValue: this.minValue,
199
+ maxValue: this.maxValue,
200
+ });
201
+ this.form = this.customizationService.getDefaultFromGroup(pepField, this.renderError);
202
+ }
203
+ ngOnInit() {
204
+ if (this.form === null) {
205
+ this.standAlone = true;
206
+ this.minValue =
207
+ isNaN(this.minValue) && !isNaN(this.maxValue)
208
+ ? 0
209
+ : this.minValue;
210
+ this.maxValue =
211
+ isNaN(this.maxValue) && !isNaN(this.minValue)
212
+ ? 99999
213
+ : this.maxValue;
214
+ this.setDefaultForm();
215
+ this.renderer.addClass(this.element.nativeElement, PepCustomizationService.STAND_ALONE_FIELD_CLASS_NAME);
216
+ if (!this.renderTitle) {
217
+ this.renderer.addClass(this.element.nativeElement, PepCustomizationService.STAND_ALONE_FIELD_NO_SPACING_CLASS_NAME);
218
+ }
219
+ }
220
+ this.readonly = this.type === 'duration' ? true : this.readonly; // Hack until we develop Timer UI for editing Duration field
221
+ this.updateFormFieldValue();
222
+ }
223
+ ngOnChanges(changes) {
224
+ if (this.standAlone) {
225
+ this.setDefaultForm();
226
+ }
227
+ this.readonly = this.type === 'duration' ? true : this.readonly; // Hack until we develop Timer UI for editing Duration field
228
+ }
229
+ ngOnDestroy() {
230
+ //
231
+ }
232
+ onFocus(event) {
233
+ this.isInFocus = true;
234
+ // select the value in focus (DI-18246 improvement)
235
+ setTimeout(() => {
236
+ const eventTarget = event.target || event.srcElement;
237
+ if (eventTarget) {
238
+ eventTarget.select();
239
+ }
240
+ }, 0);
241
+ }
242
+ isDecimal() {
243
+ let res = false;
244
+ if (this.isNumberType()) {
245
+ if (this.type === 'currency' || this.type === 'real') {
246
+ res = true;
247
+ }
248
+ }
249
+ return res;
250
+ }
251
+ isNumberType() {
252
+ return (this.type === 'percentage' ||
253
+ this.type === 'int' ||
254
+ this.type === 'currency' ||
255
+ this.type === 'real');
256
+ }
257
+ isValueValid(value) {
258
+ let res = false;
259
+ if (this.isNumberType()) {
260
+ if (value === '') {
261
+ res = this.mandatory ? false : true;
262
+ }
263
+ else {
264
+ const numberValue = this.utilitiesService.coerceNumberProperty(value);
265
+ res =
266
+ numberValue >= this.minValue &&
267
+ numberValue <= this.maxValue;
268
+ }
269
+ }
270
+ else {
271
+ // TODO: Maybe need to check other types.
272
+ res = true;
273
+ }
274
+ return res;
275
+ }
276
+ isDifferentValue(value) {
277
+ let res = false;
278
+ if (this.isNumberType()) {
279
+ if (this.value === '' || value === '') {
280
+ res = true;
281
+ }
282
+ else {
283
+ const currentValue = this.utilitiesService.coerceNumberProperty(this.value);
284
+ const newValue = this.utilitiesService.coerceNumberProperty(value);
285
+ res = currentValue !== newValue;
286
+ }
287
+ }
288
+ else {
289
+ res = true;
290
+ }
291
+ return res;
292
+ }
293
+ onChange(e) {
294
+ const value = e.target ? e.target.value : e;
295
+ this.valueChange.emit(value);
296
+ }
297
+ onBlur(e) {
298
+ this.isInFocus = false;
299
+ const value = e.target ? e.target.value : e;
300
+ if (value !== this.value && this.isDifferentValue(value)) {
301
+ // If renderError is false and the new value is not valid.
302
+ if (!this.renderError && !this.isValueValid(value)) {
303
+ this.renderer.setProperty(this.input.nativeElement, 'value', this.value);
304
+ }
305
+ else {
306
+ this.value = value;
307
+ // // If the user is setting the formatted value then set the value till the user format it and return it back.
308
+ // if (!this._calculateFormattedValue) {
309
+ // this._formattedValue = value;
310
+ // }
311
+ this.valueChange.emit(value);
312
+ }
313
+ }
314
+ if (this.isInEditMode) {
315
+ this.isInEditMode = false;
316
+ }
317
+ }
318
+ anchorClicked() {
319
+ const currentValue = this.value;
320
+ if (currentValue.trim().length > 0) {
321
+ switch (this.type) {
322
+ case 'email':
323
+ window.open('mailto:' + currentValue, 'email');
324
+ break;
325
+ case 'phone':
326
+ window.open('tel:' + currentValue, 'tel');
327
+ break;
328
+ case 'link':
329
+ window.open(currentValue);
330
+ break;
331
+ default:
332
+ break;
333
+ }
334
+ }
335
+ }
336
+ cardTemplateClicked(event) {
337
+ this.isInEditMode = true;
338
+ setTimeout(() => {
339
+ this.input.nativeElement.focus();
340
+ }, 0);
341
+ }
342
+ }
343
+ PepTextboxComponent.decorators = [
344
+ { type: Component, args: [{
345
+ selector: 'pep-textbox',
346
+ template: "<ng-container [formGroup]=\"form\">\n <ng-template #pepTemplate let-isFormView=\"isFormView\" let-hasParent=\"hasParent\">\n <pep-field-title *ngIf=\"renderTitle && isFormView && !hasParent\" [label]=\"label\" [mandatory]=\"mandatory\"\n [disabled]=\"disabled\" [maxFieldCharacters]=\"maxFieldCharacters\" [xAlignment]=\"xAlignment\"\n [showTitle]=\"showTitle\" [inputLength]=\"input.value?.length\">\n </pep-field-title>\n <mat-form-field appearance=\"outline\">\n <input #input pepTextboxValidation [id]=\"key\" [name]=\"key\" class=\" body-sm \" matInput autocomplete=\"off\"\n maxlength=\"{{ maxFieldCharacters > 0 ? maxFieldCharacters : 99999 }}\"\n [placeholder]=\"hasParent && !disabled ? placeholder : ''\"\n [ngStyle]=\"{ color: textColor, 'text-align': xAlignment == 'center' ? 'center' : xAlignment == 'right' ? 'right' : 'left' }\"\n title=\"{{ formattedValue }}\" [formControlName]=\"key\" [type]=\"type\" [value]=\"displayValue\"\n (keyup.enter)=\"$event?.currentTarget?.blur()\" (focus)=\"onFocus($event)\" (blur)=\"onBlur($event)\"\n (change)=\"onChange($event)\"\n [ngClass]=\"{'disable-hidden': disabled && formattedValue?.length > 0 && (type === 'phone' || type === 'email' || type === 'link')}\" />\n\n <span\n *ngIf=\"disabled && formattedValue?.length > 0 && (type === 'phone' || type === 'email' || type === 'link')\"\n class=\"dis-grid\">\n <a href=\"javascript:void(0)\" (click)=\"anchorClicked()\" [id]=\"key\" [name]=\"key\"\n class=\"color-link body-sm \"> {{formattedValue}}</a>\n </span>\n <mat-error *ngIf=\"renderError\">\n <ng-container *ngIf=\"mandatory && input.value.length == 0 then requiredError else otherError\">\n </ng-container>\n <ng-template #requiredError>\n <span class=\"body-xs\" [title]=\"('MESSAGES.ERROR_IS_REQUIRED' | translate: { field: label })\"\n [innerText]=\"('MESSAGES.ERROR_IS_REQUIRED' | translate: { field: label })\">\n </span>\n </ng-template>\n <ng-template #otherError>\n <span class=\"body-xs\" [title]=\"(input.value | pepToNumber) > this.maxValue || (input.value | pepToNumber) < this.minValue ?\n ('MESSAGES.ERROR_RANGE_IS_NOT_VALID' | translate: { min: minValue, max: maxValue }) :\n ('MESSAGES.ERROR_IS_NOT_VALID' | translate: { field: label })\" [innerText]=\"(input.value | pepToNumber) > this.maxValue || (input.value | pepToNumber) < this.minValue ?\n ('MESSAGES.ERROR_RANGE_IS_NOT_VALID' | translate: { min: minValue, max: maxValue }) :\n ('MESSAGES.ERROR_IS_NOT_VALID' | translate: { field: label })\">\n </span>\n </ng-template>\n </mat-error>\n\n <pep-textbox-icon *ngIf=\"renderSymbol && isFormView && xAlignment == 'right'\" matPrefix [value]=\"value\"\n [label]=\"label\" [type]=\"type\" [disabled]=\"disabled\">\n </pep-textbox-icon>\n <pep-textbox-icon *ngIf=\"renderSymbol && isFormView && (xAlignment == 'left')\" matSuffix [value]=\"value\"\n [label]=\"label\" [type]=\"type\" [disabled]=\"disabled\">\n </pep-textbox-icon>\n </mat-form-field>\n </ng-template>\n\n <ng-container *ngIf=\"layoutType === 'form'\">\n <ng-container *ngIf=\"parentFieldKey; then groupedBlock; else regularBlock\"></ng-container>\n <ng-template #regularBlock>\n <ng-container *ngTemplateOutlet=\"pepTemplate; context: { isFormView: true, hasParent: false }\">\n </ng-container>\n </ng-template>\n <ng-template #groupedBlock>\n <ng-container [formGroupName]=\"parentFieldKey\">\n <mat-form-field appearance=\"outline\">\n <!-- (keyup)=\"onKeyUp($event)\" -->\n <input pepTextboxValidation [id]=\"key\" [name]=\"key\" class=\" body-sm \" matInput autocomplete=\"off\"\n [placeholder]=\"!disabled ? placeholder : ''\" title=\"{{ formattedValue }}\"\n [formControlName]=\"key\" [value]=\"value\" (blur)=\"onBlur($event)\" (change)=\"onChange($event)\"\n (keyup.enter)=\"$event?.currentTarget?.blur()\" (focus)=\"onFocus($event)\" />\n </mat-form-field>\n <!-- <ng-container *ngTemplateOutlet=\"pepTemplate; context: { isFormView: true, hasParent: true }\"></ng-container> -->\n </ng-container>\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"layoutType === 'card'\">\n <ng-container *ngIf=\"isInEditMode; then editBlock; else readOnlyBlock\"></ng-container>\n <ng-template #editBlock>\n <div [ngClass]=\"{'one-row': rowSpan === 1}\">\n <ng-container *ngTemplateOutlet=\"pepTemplate; context: { isFormView: false, hasParent: false }\">\n </ng-container>\n </div>\n </ng-template>\n <ng-template #readOnlyBlock>\n <div class=\"pep-card-input card-flex-container\" [ngStyle]=\"{ color: textColor }\"\n [class]=\"'text-align-' + xAlignment\" [ngClass]=\"{'one-row': rowSpan === 1,\n 'multi-rows': rowSpan > 1,\n 'pep-button weak': isActive && !disabled}\"\n (click)=\"!disabled ? cardTemplateClicked($event) : ''\">\n <span *ngIf=\"showTitle && label != ''\" class=\"body-xs title\" title=\"{{ label }}\">{{ label\n }}&nbsp;</span>\n <span [id]=\"key\" title=\"{{ formattedValue }}\" class=\"body-sm value\"\n [ngClass]=\"{'multi-rows-text': rowSpan > 1}\" [ngStyle]=\"{ '-webkit-line-clamp': rowSpan }\">{{\n formattedValue }}</span>\n <button *ngIf=\"isActive && !disabled\" class=\"pep-button weak card-edit-button\" mat-button>\n <mat-icon>\n <pep-icon name=\"system_edit\">\n </pep-icon>\n </mat-icon>\n </button>\n </div>\n </ng-template>\n\n </ng-container>\n\n <ng-container *ngIf=\"layoutType === 'table'\">\n <ng-container *ngIf=\"isActive && !disabled; then selectedBlock; else notSelectedBlock\"></ng-container>\n <ng-template #selectedBlock>\n <ng-container *ngTemplateOutlet=\"pepTemplate; context: { isFormView: false, hasParent: false }\">\n </ng-container>\n </ng-template>\n <ng-template #notSelectedBlock>\n <ng-container *ngIf=\"formattedValue?.length > 0; then notEmptyBlock; else emptyBlock\"></ng-container>\n <ng-template #notEmptyBlock>\n <ng-container [ngSwitch]=\"type\">\n <ng-container *ngSwitchCase=\"'link'\">\n <a [id]=\"key\" class=\"color-link body-sm pep-report-input\"\n [ngClass]=\"{'disable': (disabled && value === '')}\" *ngIf=\"formattedValue != null\"\n title=\"{{ formattedValue }}\" target=\"_blank\" href=\"{{ value ? value : formattedValue }}\">{{\n formattedValue }}</a>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <span [id]=\"key\" class=\"body-sm pep-report-input\" [ngClass]=\"{'readonly': disabled}\"\n title=\"{{ formattedValue }}\" [ngStyle]=\"{ color: textColor }\">{{ formattedValue }}</span>\n </ng-container>\n </ng-container>\n </ng-template>\n <ng-template #emptyBlock>\n <span [id]=\"key\">&nbsp;</span>\n </ng-template>\n </ng-template>\n </ng-container>\n\n</ng-container>",
347
+ changeDetection: ChangeDetectionStrategy.OnPush,
348
+ styles: [":host{height:inherit;display:grid}:host>*{align-self:center;align-items:baseline}.disable-hidden{display:none}.dis-grid{display:grid}.multi-rows-text{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal!important}", ""]
349
+ },] }
350
+ ];
351
+ PepTextboxComponent.ctorParameters = () => [
352
+ { type: FormBuilder },
353
+ { type: PepCustomizationService },
354
+ { type: Renderer2 },
355
+ { type: ElementRef },
356
+ { type: TranslateService },
357
+ { type: PepUtilitiesService }
358
+ ];
359
+ PepTextboxComponent.propDecorators = {
360
+ dataQa: [{ type: HostBinding, args: ['attr.data-qa',] }],
361
+ key: [{ type: Input }],
362
+ value: [{ type: Input }],
363
+ formattedValue: [{ type: Input }],
364
+ label: [{ type: Input }],
365
+ placeholder: [{ type: Input }],
366
+ type: [{ type: Input }],
367
+ mandatory: [{ type: Input }],
368
+ disabled: [{ type: Input }],
369
+ readonly: [{ type: Input }],
370
+ maxFieldCharacters: [{ type: Input }],
371
+ textColor: [{ type: Input }],
372
+ xAlignment: [{ type: Input }],
373
+ rowSpan: [{ type: Input }],
374
+ minValue: [{ type: Input }],
375
+ maxValue: [{ type: Input }],
376
+ visible: [{ type: Input }],
377
+ form: [{ type: Input }],
378
+ isActive: [{ type: Input }],
379
+ showTitle: [{ type: Input }],
380
+ renderTitle: [{ type: Input }],
381
+ renderError: [{ type: Input }],
382
+ renderSymbol: [{ type: Input }],
383
+ layoutType: [{ type: Input }],
384
+ parentFieldKey: [{ type: Input }],
385
+ valueChange: [{ type: Output }],
386
+ formValidationChange: [{ type: Output }],
387
+ input: [{ type: ViewChild, args: ['input',] }]
388
+ };
389
389
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGJveC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtbGliL3RleHRib3gvdGV4dGJveC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNILFNBQVMsRUFHVCxLQUFLLEVBQ0wsTUFBTSxFQUNOLFlBQVksRUFDWix1QkFBdUIsRUFDdkIsVUFBVSxFQUNWLFNBQVMsRUFDVCxTQUFTLEVBR1QsV0FBVyxHQUNkLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBYSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUN4RCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN2RCxPQUFPLEVBRUgsdUJBQXVCLEVBRXZCLDRCQUE0QixFQUU1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GaWVsZFZhbHVlKFxuICAgICAgICAgICAgdGhpcy5mb3JtLFxuICAgICAgICAgICAgdGhpcy5rZXksXG4gICAgICAgICAgICB0aGlzLmZvcm1hdHRlZFZhbHVlLFxuICAgICAgICAgICAgdGhpcy5wYXJlbnRGaWVsZEtleVxuICAgICAgICApO1xuICAgIH1cblxuICAgIGdldCBkaXNwbGF5VmFsdWUoKTogc3RyaW5nIHtcbiAgICAgICAgbGV0IHJlcyA9ICcnO1xuXG4gICAgICAgIGlmICh0aGlzLnR5cGUgPT0gJ2xpbmsnKSB7XG4gICAgICAgICAgICByZXMgPSB0aGlzLmZvcm1hdHRlZFZhbHVlO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmVzID0gdGhpcy5pc0luRm9jdXMgPyB0aGlzLnZhbHVlIDogdGhpcy5mb3JtYXR0ZWRWYWx1ZTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiByZXM7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBzZXREZWZhdWx0Rm9ybSgpOiB2b2lkIHtcbiAgICAgICAgY29uc3QgcGVwRmllbGQgPSBuZXcgUGVwVGV4dGJveEZpZWxkKHtcbiAgICAgICAgICAgIGtleTogdGhpcy5rZXksXG4gICAgICAgICAgICB2YWx1ZTogdGhpcy52YWx1ZSxcbiAgICAgICAgICAgIG1hbmRhdG9yeTogdGhpcy5tYW5kYXRvcnksXG4gICAgICAgICAgICByZWFkb25seTogdGhpcy5yZWFkb25seSxcbiAgICAgICAgICAgIGRpc2FibGVkOiB0aGlzLmRpc2FibGVkLFxuICAgICAgICAgICAgbWF4RmllbGRDaGFyYWN0ZXJzOiB0aGlzLm1heEZpZWxkQ2hhcmFjdGVycyxcbiAgICAgICAgICAgIHR5cGU6IHRoaXMudHlwZSxcbiAgICAgICAgICAgIG1pblZhbHVlOiB0aGlzLm1pblZhbHVlLFxuICAgICAgICAgICAgbWF4VmFsdWU6IHRoaXMubWF4VmFsdWUsXG4gICAgICAgIH0pO1xuICAgICAgICB0aGlzLmZvcm0gPSB0aGlzLmN1c3RvbWl6YXRpb25TZXJ2aWNlLmdldERlZmF1bHRGcm9tR3JvdXAoXG4gICAgICAgICAgICBwZXBGaWVsZCxcbiAgICAgICAgICAgIHRoaXMucmVuZGVyRXJyb3JcbiAgICAgICAgKTtcbiAgICB9XG5cbiAgICBuZ09uSW5pdCgpOiB2b2lkIHtcbiAgICAgICAgaWYgKHRoaXMuZm9ybSA9PT0gbnVsbCkge1xuICAgICAgICAgICAgdGhpcy5zdGFuZEFsb25lID0gdHJ1ZTtcblxuICAgICAgICAgICAgdGhpcy5taW5WYWx1ZSA9XG4gICAgICAgICAgICAgICAgaXNOYU4odGhpcy5taW5WYWx1ZSkgJiYgIWlzTmFOKHRoaXMubWF4VmFsdWUpXG4gICAgICAgICAgICAgICAgICAgID8gMFxuICAgICAgICAgICAgICAgICAgICA6IHRoaXMubWluVmFsdWU7XG4gICAgICAgICAgICB0aGlzLm1heFZhbHVlID1cbiAgICAgICAgICAgICAgICBpc05hTih0aGlzLm1heFZhbHVlKSAmJiAhaXNOYU4odGhpcy5taW5WYWx1ZSlcbiAgICAgICAgICAgICAgICAgICAgPyA5OTk5OVxuICAgICAgICAgICAgICAgICAgICA6IHRoaXMubWF4VmFsdWU7XG5cbiAgICAgICAgICAgIHRoaXMuc2V0RGVmYXVsdEZvcm0oKTtcblxuICAgICAgICAgICAgdGhpcy5yZW5kZXJlci5hZGRDbGFzcyhcbiAgICAgICAgICAgICAgICB0aGlzLmVsZW1lbnQubmF0aXZlRWxlbWVudCxcbiAgICAgICAgICAgICAgICBQZXBDdXN0b21pemF0aW9uU2VydmljZS5TVEFORF9BTE9ORV9GSUVMRF9DTEFTU19OQU1FXG4gICAgICAgICAgICApO1xuXG4gICAgICAgICAgICBpZiAoIXRoaXMucmVuZGVyVGl0bGUpIHtcbiAgICAgICAgICAgICAgICB0aGlzLnJlbmRlcmVyLmFkZENsYXNzKFxuICAgICAgICAgICAgICAgICAgIC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nRUYXJnZXQgPSBldmVudC50YXJnZXQgfHwgZXZlbnQuc3JjRWxlbWVudDtcbiAgICAgICAgICAgIGlmIChldmVudFRhcmdldCkge1xuICAgICAgICAgICAgICAgIGV2ZW50VGFyZ2V0LnNlbGVjdCgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9LCAwKTtcbiAgICB9XG5cbiAgICBpc0RlY2ltYWwoKTogYm9vbGVhbiB7XG4gICAgICAgIGxldCByZXMgPSBmYWxzZTtcblxuICAgICAgICBpZiAodGhpcy5pc051bWJlclR5cGUoKSkge1xuICAgICAgICAgICAgaWYgKHRoaXMudHlwZSA9PT0gJ2N1cnJlbmN5JyB8fCB0aGlzLnR5cGUgPT09ICdyZWFsJykge1xuICAgICAgICAgICAgICAgIHJlcyA9IHRydWU7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gcmVzO1xuICAgIH1cblxuICAgIGlzTnVtYmVyVHlwZSgpOiBib29sZWFuIHtcbiAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICAgIHRoaXMudHlwZSA9PT0gJ3BlcmNlbnRhZ2UnIHx8XG4gICAgICAgICAgICB0aGlzLnR5cGUgPT09ICdpbnQnIHx8XG4gICAgICAgICAgICB0aGlzLnR5cGUgPT09ICdjdXJyZW5jeScgfHxcbiAgICAgICAgICAgIHRoaXMudHlwZSA9PT0gJ3JlYWwnXG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgaXNWYWx1ZVZhbGlkKHZhbHVlOiBzdHJpbmcpOiBib29sZWFuIHtcbiAgICAgICAgbGV0IHJlcyA9IGZhbHNlO1xuXG4gICAgICAgIGlmICh0aGlzLmlzTnVtYmVyVHlwZSgpKSB7XG4gICAgICAgICAgICBpZiAodmFsdWUgPT09ICcnKSB7XG4gICAgICAgICAgICAgICAgcmVzID0gdGhpcy5tYW5kYXRvcnkgPyBmYWxzZSA6IHRydWU7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGNvbnN0IG51bWJlclZhbHVlID0gdGhpcy51dGlsaXRpZXNTZXJ2aWNlLmNvZXJjZU51bWJlclByb3BlcnR5KFxuICAgICAgICAgICAgICAgICAgICB2YWx1ZVxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgcmVzID1cbiAgICAgICAgICAgICAgICAgICAgbnVtYmVyVmFsdWUgPj0gdGhpcy5taW5WYWx1ZSAmJlxuICAgICAgICAgICAgICAgICAgICBudW1iZXJWYWx1ZSA8PSB0aGlzLm1heFZhbHVlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgLy8gVE9ETzogTWF5YmUgbmVlZCB0byBjaGVjayBvdGhlciB0eXBlcy5cbiAgICAgICAgICAgIHJlcyA9IHRydWU7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gcmVzO1xuICAgIH1cblxuICAgIGlzRGlmZmVyZW50VmFsdWUodmFsdWU6IHN0cmluZyk6IGJvb2xlYW4ge1xuICAgICAgICBsZXQgcmVzID0gZmFsc2U7XG5cbiAgICAgICAgaWYgKHRoaXMuaXNOdW1iZXJUeXBlKCkpIHtcbiAgICAgICAgICAgIGlmICh0aGlzLnZhbHVlID09PSAnJyB8fCB2YWx1ZSA9PT0gJycpIHtcbiAgICAgICAgICAgICAgICByZXMgPSB0cnVlO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBjb25zdCBjdXJyZW50VmFsdWUgPSB0aGlzLnV0aWxpdGllc1NlcnZpY2UuY29lcmNlTnVtYmVyUHJvcGVydHkoXG4gICAgICAgICAgICAgICAgICAgIHRoaXMudmFsdWVcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgIGNvbnN0IG5ld1ZhbHVlID0gdGhpcy51dGlsaXRpZXNTZXJ2aWNlLmNvZXJjZU51bWJlclByb3BlcnR5KFxuICAgICAgICAgICAgICAgICAgICB2YWx1ZVxuICAgICAgICAgICAgICAgICk7XG5cbiAgICAgICAgICAgICAgICByZXMgPSBjdXJyZW50VmFsdWUgIT09IG5ld1ZhbHVlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmVzID0gdHJ1ZTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiByZXM7XG4gICAgfVxuXG4gICAgb25DaGFuZ2UoZTogYW55KTogdm9pZCB7XG4gICAgICAgIGNvbnN0IHZhbHVlID0gZS50YXJnZXQgPyBlLnRhcmdldC52YWx1ZSA6IGU7XG5cbiAgICAgICAgdGhpcy52YWx1ZUNoYW5nZS5lbWl0KHZhbHVlKTtcbiAgICB9XG5cbiAgICBvbkJsdXIoZTogYW55KTogdm9pZCB7XG4gICAgICAgIHRoaXMuaXNJbkZvY3VzID0gZmFsc2U7XG4gICAgICAgIGNvbnN0IHZhbHVlID0gZS50YXJnZXQgPyBlLnRhcmdldC52YWx1ZSA6IGU7XG4gICAgICAgIGlmICh2YWx1ZSAhPT0gdGhpcy52YWx1ZSAmJiB0aGlzLmlzRGlmZmVyZW50VmFsdWUodmFsdWUpKSB7XG4gICAgICAgICAgICAvLyBJZiByZW5kZXJFcnJvciBpcyBmYWxzZSBhbmQgdGhlIG5ldyB2YWx1ZSBpcyBub3QgdmFsaWQuXG4gICAgICAgICAgICBpZiAoIXRoaXMucmVuZGVyRXJyb3IgJiYgIXRoaXMuaXNWYWx1ZVZhbGlkKHZhbHVlKSkge1xuICAgICAgICAgICAgICAgIHRoaXMucmVuZGVyZXIuc2V0UHJvcGVydHkoXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaW5wdXQubmF0aXZlRWxlbWVudCxcbiAgICAgICAgICAgICAgICAgICAgJ3ZhbHVlJyxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy52YWx1ZVxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHRoaXMudmFsdWUgPSB2YWx1ZTtcblxuICAgICAgICAgICAgICAgIC8vIC8vIElmIHRoZSB1c2VyIGlzIHNldHRpbmcgdGhlIGZvcm1hdHRlZCB2YWx1ZSB0aGVuIHNldCB0aGUgdmFsdWUgdGlsbCB0aGUgdXNlciBmb3JtYXQgaXQgYW5kIHJldHVybiBpdCBiYWNrLlxuICAgICAgICAgICAgICAgIC8vIGlmICghdGhpcy5fY2FsY3VsYXRlRm9ybWF0dGVkVmFsdWUpIHtcbiAgICAgICAgICAgICAgICAvLyAgICAgdGhpcy5fZm9ybWF0dGVkVmFsdWUgPSB2YWx1ZTtcbiAgICAgICAgICAgICAgICAvLyB9XG5cbiAgICAgICAgICAgICAgICB0aGlzLnZhbHVlQ2hhbmdlLmVtaXQodmFsdWUpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHRoaXMuaXNJbkVkaXRNb2RlKSB7XG4gICAgICAgICAgICB0aGlzLmlzSW5FZGl0TW9kZSA9IGZhbHNlO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgYW5jaG9yQ2xpY2tlZCgpOiB2b2lkIHtcbiAgICAgICAgY29uc3QgY3VycmVudFZhbHVlID0gdGhpcy52YWx1ZTtcbiAgICAgICAgaWYgKGN1cnJlbnRWYWx1ZS50cmltKCkubGVuZ3RoID4gMCkge1xuICAgICAgICAgICAgc3dpdGNoICh0aGlzLnR5cGUpIHtcbiAgICAgICAgICAgICAgICBjYXNlICdlbWFpbCc6XG4gICAgICAgICAgICAgICAgICAgIHdpbmRvdy5vcGVuKCdtYWlsdG86JyArIGN1cnJlbnRWYWx1ZSwgJ2VtYWlsJyk7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIGNhc2UgJ3Bob25lJzpcbiAgICAgICAgICAgICAgICAgICAgd2luZG93Lm9wZW4oJ3RlbDonICsgY3VycmVudFZhbHVlLCAndGVsJyk7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIGNhc2UgJ2xpbmsnOlxuICAgICAgICAgICAgICAgICAgICB3aW5kb3cub3BlbihjdXJyZW50VmFsdWUpO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIGNhcmRUZW1wbGF0ZUNsaWNrZWQoZXZlbnQ6IGFueSk6IHZvaWQge1xuICAgICAgICB0aGlzLmlzSW5FZGl0TW9kZSA9IHRydWU7XG5cbiAgICAgICAgc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgICAgICB0aGlzLmlucHV0Lm5hdGl2ZUVsZW1lbnQuZm9jdXMoKTtcbiAgICAgICAgfSwgMCk7XG4gICAgfVxufVxuIl19