monkey-front-core 0.0.237 → 0.0.238

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 (452) hide show
  1. package/karma.conf.js +44 -0
  2. package/monkey-front-core-0.0.238.tgz +0 -0
  3. package/ng-package.json +8 -0
  4. package/package.json +4 -24
  5. package/src/lib/components/alerts/alerts.component.html +18 -0
  6. package/src/lib/components/alerts/alerts.component.scss +71 -0
  7. package/src/lib/components/alerts/alerts.component.ts +36 -0
  8. package/src/lib/components/alerts/alerts.module.ts +12 -0
  9. package/{lib/components/alerts/index.d.ts → src/lib/components/alerts/index.ts} +2 -2
  10. package/src/lib/components/closed-to-maintenance/closed-to-maintenance.component.html +25 -0
  11. package/src/lib/components/closed-to-maintenance/closed-to-maintenance.component.scss +51 -0
  12. package/src/lib/components/closed-to-maintenance/closed-to-maintenance.component.ts +25 -0
  13. package/src/lib/components/closed-to-maintenance/closed-to-maintenance.module.ts +26 -0
  14. package/{lib/components/closed-to-maintenance/index.d.ts → src/lib/components/closed-to-maintenance/index.ts} +2 -2
  15. package/{lib/components/index.d.ts → src/lib/components/index.ts} +4 -4
  16. package/{lib/components/progress-bar/index.d.ts → src/lib/components/progress-bar/index.ts} +3 -3
  17. package/src/lib/components/progress-bar/progress-bar.component.html +3 -0
  18. package/src/lib/components/progress-bar/progress-bar.component.scss +6 -0
  19. package/src/lib/components/progress-bar/progress-bar.component.ts +22 -0
  20. package/src/lib/components/progress-bar/progress-bar.module.ts +10 -0
  21. package/src/lib/components/progress-bar/progress-bar.service.ts +61 -0
  22. package/{lib/components/version-changed/index.d.ts → src/lib/components/version-changed/index.ts} +2 -2
  23. package/src/lib/components/version-changed/version-changed.component.html +18 -0
  24. package/src/lib/components/version-changed/version-changed.component.scss +52 -0
  25. package/src/lib/components/version-changed/version-changed.component.ts +18 -0
  26. package/src/lib/components/version-changed/version-changed.module.ts +24 -0
  27. package/{lib/core/decorators/index.d.ts → src/lib/core/decorators/index.ts} +4 -4
  28. package/src/lib/core/decorators/monkeyecx-charts-decorators.ts +46 -0
  29. package/src/lib/core/decorators/monkeyecx-decorators.ts +159 -0
  30. package/src/lib/core/decorators/monkeyecx-download-decorators.ts +39 -0
  31. package/src/lib/core/decorators/monkeyecx-upload-decorators.ts +39 -0
  32. package/{lib/core/directives/index.d.ts → src/lib/core/directives/index.ts} +12 -12
  33. package/src/lib/core/directives/monkeyecx-directives-module.ts +45 -0
  34. package/src/lib/core/directives/monkeyecx-drag-drop.ts +40 -0
  35. package/src/lib/core/directives/monkeyecx-feature-by-program-directive.ts +53 -0
  36. package/src/lib/core/directives/monkeyecx-feature-directive.ts +72 -0
  37. package/src/lib/core/directives/monkeyecx-format-currency.ts +44 -0
  38. package/src/lib/core/directives/monkeyecx-format-upper.ts +54 -0
  39. package/src/lib/core/directives/monkeyecx-only-alpha-numeric-directive.ts +21 -0
  40. package/src/lib/core/directives/monkeyecx-only-number-directive.ts +21 -0
  41. package/src/lib/core/directives/monkeyecx-popover-options.directive.ts +52 -0
  42. package/src/lib/core/directives/monkeyecx-popover.directive.ts +235 -0
  43. package/src/lib/core/directives/monkeyecx-security-directive.ts +68 -0
  44. package/src/lib/core/directives/monkeyecx-tooltip-directive.ts +131 -0
  45. package/{lib/core/index.d.ts → src/lib/core/index.ts} +9 -9
  46. package/{lib/core/interceptors/index.d.ts → src/lib/core/interceptors/index.ts} +5 -5
  47. package/src/lib/core/interceptors/monkeyecx-http-config-error.interceptor.ts +58 -0
  48. package/src/lib/core/interceptors/monkeyecx-http-config-header.interceptor.ts +78 -0
  49. package/src/lib/core/interceptors/monkeyecx-http-config-interceptor.module.ts +40 -0
  50. package/src/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.ts +47 -0
  51. package/src/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.ts +44 -0
  52. package/{lib/core/interfaces/index.d.ts → src/lib/core/interfaces/index.ts} +29 -29
  53. package/src/lib/core/interfaces/monkeyecx-auth-credentials.ts +16 -0
  54. package/{lib/core/interfaces/monkeyecx-company-pendencies.d.ts → src/lib/core/interfaces/monkeyecx-company-pendencies.ts} +16 -14
  55. package/src/lib/core/interfaces/monkeyecx-company.ts +10 -0
  56. package/src/lib/core/interfaces/monkeyecx-config-boostrap.ts +14 -0
  57. package/src/lib/core/interfaces/monkeyecx-config.ts +139 -0
  58. package/src/lib/core/interfaces/monkeyecx-country-security.ts +4 -0
  59. package/src/lib/core/interfaces/monkeyecx-error-response.ts +5 -0
  60. package/src/lib/core/interfaces/monkeyecx-filter.ts +26 -0
  61. package/src/lib/core/interfaces/monkeyecx-handled-error-response.ts +11 -0
  62. package/src/lib/core/interfaces/monkeyecx-header-credentials.ts +4 -0
  63. package/{lib/core/interfaces/monkeyecx-intercom-options.d.ts → src/lib/core/interfaces/monkeyecx-intercom-options.ts} +4 -4
  64. package/src/lib/core/interfaces/monkeyecx-me-credentials.ts +23 -0
  65. package/src/lib/core/interfaces/monkeyecx-navigation.ts +28 -0
  66. package/src/lib/core/interfaces/monkeyecx-program.ts +10 -0
  67. package/src/lib/core/interfaces/monkeyecx-releases.ts +9 -0
  68. package/{lib/core/interfaces/monkeyecx-request-in-progress.d.ts → src/lib/core/interfaces/monkeyecx-request-in-progress.ts} +3 -3
  69. package/src/lib/core/interfaces/monkeyecx-request-paged.ts +27 -0
  70. package/src/lib/core/interfaces/monkeyecx-response-links.ts +11 -0
  71. package/src/lib/core/interfaces/monkeyecx-response-paged.ts +6 -0
  72. package/src/lib/core/interfaces/monkeyecx-saved-state.ts +5 -0
  73. package/{lib/core/interfaces/monkeyecx-scroll-options.d.ts → src/lib/core/interfaces/monkeyecx-scroll-options.ts} +6 -5
  74. package/{lib/core/interfaces/monkeyecx-service-credentials.d.ts → src/lib/core/interfaces/monkeyecx-service-credentials.ts} +13 -12
  75. package/{lib/core/interfaces/monkeyecx-support-options.d.ts → src/lib/core/interfaces/monkeyecx-support-options.ts} +4 -4
  76. package/src/lib/core/interfaces/monkeyecx-token-credentials.ts +20 -0
  77. package/src/lib/core/interfaces/monkeyecx-translate-options.ts +4 -0
  78. package/{lib/core/interfaces/request-download/index.d.ts → src/lib/core/interfaces/request-download/index.ts} +3 -3
  79. package/src/lib/core/interfaces/request-download/monkeyecx-request-download.ts +11 -0
  80. package/src/lib/core/interfaces/request-download/monkeyecx-request-downloaded.ts +8 -0
  81. package/src/lib/core/interfaces/request-download/monkeyecx-request-item-download.ts +7 -0
  82. package/{lib/core/interfaces/request-queue/index.d.ts → src/lib/core/interfaces/request-queue/index.ts} +3 -3
  83. package/src/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.ts +7 -0
  84. package/src/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.ts +6 -0
  85. package/{lib/core/interfaces/request-queue/monkeyecx-request-queue.d.ts → src/lib/core/interfaces/request-queue/monkeyecx-request-queue.ts} +9 -8
  86. package/{lib/core/interfaces/request-upload/index.d.ts → src/lib/core/interfaces/request-upload/index.ts} +2 -2
  87. package/src/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.ts +5 -0
  88. package/src/lib/core/interfaces/request-upload/monkeyecx-request-upload.ts +11 -0
  89. package/{lib/core/interfaces/schedules/index.d.ts → src/lib/core/interfaces/schedules/index.ts} +1 -1
  90. package/src/lib/core/interfaces/schedules/monkeyecx-request-schedule.ts +14 -0
  91. package/{lib/core/model/index.d.ts → src/lib/core/model/index.ts} +1 -1
  92. package/src/lib/core/model/monkeyecx-model.ts +38 -0
  93. package/{lib/core/pipes/index.d.ts → src/lib/core/pipes/index.ts} +19 -19
  94. package/src/lib/core/pipes/monkeyecx-display-first-name.ts +12 -0
  95. package/src/lib/core/pipes/monkeyecx-display-initials.ts +14 -0
  96. package/src/lib/core/pipes/monkeyecx-display-support-phone.ts +31 -0
  97. package/src/lib/core/pipes/monkeyecx-format-address.ts +27 -0
  98. package/src/lib/core/pipes/monkeyecx-format-beautify-json.ts +35 -0
  99. package/src/lib/core/pipes/monkeyecx-format-currency.ts +20 -0
  100. package/src/lib/core/pipes/monkeyecx-format-date-group.ts +40 -0
  101. package/src/lib/core/pipes/monkeyecx-format-date-timelapse.ts +25 -0
  102. package/src/lib/core/pipes/monkeyecx-format-date-unix-timelapse.ts +31 -0
  103. package/src/lib/core/pipes/monkeyecx-format-document.ts +12 -0
  104. package/src/lib/core/pipes/monkeyecx-format-number.ts +14 -0
  105. package/src/lib/core/pipes/monkeyecx-format-phone.ts +32 -0
  106. package/src/lib/core/pipes/monkeyecx-format-size.ts +13 -0
  107. package/src/lib/core/pipes/monkeyecx-format-tax.ts +16 -0
  108. package/src/lib/core/pipes/monkeyecx-format-type-document.ts +12 -0
  109. package/src/lib/core/pipes/monkeyecx-format-value.ts +12 -0
  110. package/src/lib/core/pipes/monkeyecx-format-zipcode.ts +12 -0
  111. package/src/lib/core/pipes/monkeyecx-pipes.module.ts +65 -0
  112. package/src/lib/core/pipes/monkeyecx-text-truncate.ts +17 -0
  113. package/src/lib/core/pipes/monkeyecx-truncate-qtd.ts +10 -0
  114. package/{lib/core/services/auth/index.d.ts → src/lib/core/services/auth/index.ts} +4 -4
  115. package/src/lib/core/services/auth/monkeyecx-auth-guard-company.service.ts +27 -0
  116. package/src/lib/core/services/auth/monkeyecx-auth-guard-login.service.ts +23 -0
  117. package/src/lib/core/services/auth/monkeyecx-auth-guard.service.ts +25 -0
  118. package/src/lib/core/services/auth/monkeyecx-authentication.service.ts +87 -0
  119. package/{lib/core/services/commons/index.d.ts → src/lib/core/services/commons/index.ts} +1 -1
  120. package/src/lib/core/services/commons/monkeyecx-commons.service.ts +557 -0
  121. package/src/lib/core/services/config/index.ts +9 -0
  122. package/src/lib/core/services/config/monkeyecx-alerts-config.service.ts +37 -0
  123. package/src/lib/core/services/config/monkeyecx-config.module.ts +23 -0
  124. package/src/lib/core/services/config/monkeyecx-config.service.ts +151 -0
  125. package/src/lib/core/services/config/monkeyecx-error-config.service.ts +92 -0
  126. package/src/lib/core/services/config/monkeyecx-feature-toggle.service.ts +71 -0
  127. package/src/lib/core/services/config/monkeyecx-ga-config.service.ts +56 -0
  128. package/src/lib/core/services/config/monkeyecx-i18n-config.service.ts +95 -0
  129. package/src/lib/core/services/config/monkeyecx-logs-config.service.ts +34 -0
  130. package/src/lib/core/services/config/monkeyecx-maintenance-config.service.ts +33 -0
  131. package/src/lib/core/services/config/monkeyecx-security-console-config.service.ts +40 -0
  132. package/src/lib/core/services/config/monkeyecx-service-worker-config.service.ts +50 -0
  133. package/{lib/core/services/error/index.d.ts → src/lib/core/services/error/index.ts} +4 -4
  134. package/src/lib/core/services/error/monkeyecx-error-handling.module.ts +20 -0
  135. package/src/lib/core/services/error/monkeyecx-error-handling.service.ts +33 -0
  136. package/src/lib/core/services/error/monkeyecx-http-error-handling.service.ts +160 -0
  137. package/src/lib/core/services/error/monkeyecx-others-errors-handling.service.ts +24 -0
  138. package/{lib/core/services/index.d.ts → src/lib/core/services/index.ts} +22 -22
  139. package/{lib/core/services/logged/index.d.ts → src/lib/core/services/logged/index.ts} +1 -1
  140. package/src/lib/core/services/logged/monkeyecx-logged-handling.service.ts +42 -0
  141. package/src/lib/core/services/monkeyecx-handling.service.ts +58 -0
  142. package/src/lib/core/services/monkeyecx-service.service.ts +116 -0
  143. package/{lib/core/services/pagination/index.d.ts → src/lib/core/services/pagination/index.ts} +1 -1
  144. package/src/lib/core/services/pagination/monkeyecx-pagination.service.ts +27 -0
  145. package/{lib/core/services/request-download/index.d.ts → src/lib/core/services/request-download/index.ts} +2 -2
  146. package/src/lib/core/services/request-download/monkeyecx-request-download-handling.service.ts +100 -0
  147. package/src/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.ts +65 -0
  148. package/{lib/core/services/request-paged/index.d.ts → src/lib/core/services/request-paged/index.ts} +1 -1
  149. package/src/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.ts +58 -0
  150. package/{lib/core/services/request-queue/index.d.ts → src/lib/core/services/request-queue/index.ts} +2 -2
  151. package/src/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.ts +125 -0
  152. package/src/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.ts +136 -0
  153. package/{lib/core/services/routes/index.d.ts → src/lib/core/services/routes/index.ts} +1 -1
  154. package/src/lib/core/services/routes/monkeyecx-dicovery-params.service.ts +54 -0
  155. package/{lib/core/services/schedules/index.d.ts → src/lib/core/services/schedules/index.ts} +1 -1
  156. package/src/lib/core/services/schedules/monkeyecx-request-schedule.service.ts +224 -0
  157. package/{lib/core/services/storage/index.d.ts → src/lib/core/services/storage/index.ts} +2 -2
  158. package/src/lib/core/services/storage/monkeyecx-cookie-storage.service.ts +28 -0
  159. package/src/lib/core/services/storage/monkeyecx-token-storage.service.ts +151 -0
  160. package/{lib/core/specification-search/index.d.ts → src/lib/core/specification-search/index.ts} +1 -1
  161. package/src/lib/core/specification-search/monkeyecx-specification-search.ts +111 -0
  162. package/src/lib/core/utils/decorators-utils.ts +56 -0
  163. package/{lib/core/utils/index.d.ts → src/lib/core/utils/index.ts} +8 -6
  164. package/src/lib/core/utils/statics.ts +36 -0
  165. package/src/lib/core/utils/utils.ts +237 -0
  166. package/src/lib/core/utils/validate-utils.ts +221 -0
  167. package/src/lib/core/utils/validators.ts +251 -0
  168. package/src/lib/monkey-front-core.module.ts +37 -0
  169. package/{public-api.d.ts → src/public-api.ts} +6 -3
  170. package/src/test.ts +26 -0
  171. package/tsconfig.lib.json +15 -0
  172. package/tsconfig.lib.prod.json +10 -0
  173. package/tsconfig.spec.json +17 -0
  174. package/esm2020/lib/components/alerts/alerts.component.mjs +0 -35
  175. package/esm2020/lib/components/alerts/alerts.module.mjs +0 -21
  176. package/esm2020/lib/components/alerts/index.mjs +0 -3
  177. package/esm2020/lib/components/closed-to-maintenance/closed-to-maintenance.component.mjs +0 -29
  178. package/esm2020/lib/components/closed-to-maintenance/closed-to-maintenance.module.mjs +0 -43
  179. package/esm2020/lib/components/closed-to-maintenance/index.mjs +0 -3
  180. package/esm2020/lib/components/index.mjs +0 -5
  181. package/esm2020/lib/components/progress-bar/index.mjs +0 -4
  182. package/esm2020/lib/components/progress-bar/progress-bar.component.mjs +0 -23
  183. package/esm2020/lib/components/progress-bar/progress-bar.module.mjs +0 -18
  184. package/esm2020/lib/components/progress-bar/progress-bar.service.mjs +0 -50
  185. package/esm2020/lib/components/version-changed/index.mjs +0 -3
  186. package/esm2020/lib/components/version-changed/version-changed.component.mjs +0 -24
  187. package/esm2020/lib/components/version-changed/version-changed.module.mjs +0 -39
  188. package/esm2020/lib/core/decorators/index.mjs +0 -5
  189. package/esm2020/lib/core/decorators/monkeyecx-charts-decorators.mjs +0 -40
  190. package/esm2020/lib/core/decorators/monkeyecx-decorators.mjs +0 -111
  191. package/esm2020/lib/core/decorators/monkeyecx-download-decorators.mjs +0 -26
  192. package/esm2020/lib/core/decorators/monkeyecx-upload-decorators.mjs +0 -26
  193. package/esm2020/lib/core/directives/index.mjs +0 -13
  194. package/esm2020/lib/core/directives/monkeyecx-directives-module.mjs +0 -73
  195. package/esm2020/lib/core/directives/monkeyecx-drag-drop.mjs +0 -57
  196. package/esm2020/lib/core/directives/monkeyecx-feature-by-program-directive.mjs +0 -50
  197. package/esm2020/lib/core/directives/monkeyecx-feature-directive.mjs +0 -68
  198. package/esm2020/lib/core/directives/monkeyecx-format-currency.mjs +0 -44
  199. package/esm2020/lib/core/directives/monkeyecx-format-upper.mjs +0 -67
  200. package/esm2020/lib/core/directives/monkeyecx-only-alpha-numeric-directive.mjs +0 -28
  201. package/esm2020/lib/core/directives/monkeyecx-only-number-directive.mjs +0 -28
  202. package/esm2020/lib/core/directives/monkeyecx-popover-options.directive.mjs +0 -39
  203. package/esm2020/lib/core/directives/monkeyecx-popover.directive.mjs +0 -212
  204. package/esm2020/lib/core/directives/monkeyecx-security-directive.mjs +0 -69
  205. package/esm2020/lib/core/directives/monkeyecx-tooltip-directive.mjs +0 -123
  206. package/esm2020/lib/core/index.mjs +0 -10
  207. package/esm2020/lib/core/interceptors/index.mjs +0 -6
  208. package/esm2020/lib/core/interceptors/monkeyecx-http-config-error.interceptor.mjs +0 -39
  209. package/esm2020/lib/core/interceptors/monkeyecx-http-config-header.interceptor.mjs +0 -60
  210. package/esm2020/lib/core/interceptors/monkeyecx-http-config-interceptor.module.mjs +0 -47
  211. package/esm2020/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.mjs +0 -43
  212. package/esm2020/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.mjs +0 -37
  213. package/esm2020/lib/core/interfaces/index.mjs +0 -30
  214. package/esm2020/lib/core/interfaces/monkeyecx-auth-credentials.mjs +0 -2
  215. package/esm2020/lib/core/interfaces/monkeyecx-company-pendencies.mjs +0 -2
  216. package/esm2020/lib/core/interfaces/monkeyecx-company.mjs +0 -2
  217. package/esm2020/lib/core/interfaces/monkeyecx-config-boostrap.mjs +0 -2
  218. package/esm2020/lib/core/interfaces/monkeyecx-config.mjs +0 -2
  219. package/esm2020/lib/core/interfaces/monkeyecx-country-security.mjs +0 -2
  220. package/esm2020/lib/core/interfaces/monkeyecx-error-response.mjs +0 -2
  221. package/esm2020/lib/core/interfaces/monkeyecx-filter.mjs +0 -2
  222. package/esm2020/lib/core/interfaces/monkeyecx-handled-error-response.mjs +0 -2
  223. package/esm2020/lib/core/interfaces/monkeyecx-header-credentials.mjs +0 -2
  224. package/esm2020/lib/core/interfaces/monkeyecx-intercom-options.mjs +0 -2
  225. package/esm2020/lib/core/interfaces/monkeyecx-me-credentials.mjs +0 -2
  226. package/esm2020/lib/core/interfaces/monkeyecx-navigation.mjs +0 -2
  227. package/esm2020/lib/core/interfaces/monkeyecx-program.mjs +0 -2
  228. package/esm2020/lib/core/interfaces/monkeyecx-releases.mjs +0 -2
  229. package/esm2020/lib/core/interfaces/monkeyecx-request-in-progress.mjs +0 -2
  230. package/esm2020/lib/core/interfaces/monkeyecx-request-paged.mjs +0 -2
  231. package/esm2020/lib/core/interfaces/monkeyecx-response-links.mjs +0 -2
  232. package/esm2020/lib/core/interfaces/monkeyecx-response-paged.mjs +0 -2
  233. package/esm2020/lib/core/interfaces/monkeyecx-saved-state.mjs +0 -2
  234. package/esm2020/lib/core/interfaces/monkeyecx-scroll-options.mjs +0 -2
  235. package/esm2020/lib/core/interfaces/monkeyecx-service-credentials.mjs +0 -2
  236. package/esm2020/lib/core/interfaces/monkeyecx-support-options.mjs +0 -2
  237. package/esm2020/lib/core/interfaces/monkeyecx-token-credentials.mjs +0 -2
  238. package/esm2020/lib/core/interfaces/monkeyecx-translate-options.mjs +0 -2
  239. package/esm2020/lib/core/interfaces/request-download/index.mjs +0 -4
  240. package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-download.mjs +0 -2
  241. package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-downloaded.mjs +0 -2
  242. package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-item-download.mjs +0 -2
  243. package/esm2020/lib/core/interfaces/request-queue/index.mjs +0 -4
  244. package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.mjs +0 -2
  245. package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.mjs +0 -2
  246. package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-queue.mjs +0 -2
  247. package/esm2020/lib/core/interfaces/request-upload/index.mjs +0 -3
  248. package/esm2020/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.mjs +0 -2
  249. package/esm2020/lib/core/interfaces/request-upload/monkeyecx-request-upload.mjs +0 -2
  250. package/esm2020/lib/core/interfaces/schedules/index.mjs +0 -2
  251. package/esm2020/lib/core/interfaces/schedules/monkeyecx-request-schedule.mjs +0 -2
  252. package/esm2020/lib/core/model/index.mjs +0 -2
  253. package/esm2020/lib/core/model/monkeyecx-model.mjs +0 -25
  254. package/esm2020/lib/core/pipes/index.mjs +0 -20
  255. package/esm2020/lib/core/pipes/monkeyecx-display-first-name.mjs +0 -19
  256. package/esm2020/lib/core/pipes/monkeyecx-display-initials.mjs +0 -21
  257. package/esm2020/lib/core/pipes/monkeyecx-format-address.mjs +0 -20
  258. package/esm2020/lib/core/pipes/monkeyecx-format-beautify-json.mjs +0 -38
  259. package/esm2020/lib/core/pipes/monkeyecx-format-currency.mjs +0 -27
  260. package/esm2020/lib/core/pipes/monkeyecx-format-date-group.mjs +0 -45
  261. package/esm2020/lib/core/pipes/monkeyecx-format-date-timelapse.mjs +0 -32
  262. package/esm2020/lib/core/pipes/monkeyecx-format-date-unix-timelapse.mjs +0 -36
  263. package/esm2020/lib/core/pipes/monkeyecx-format-document.mjs +0 -19
  264. package/esm2020/lib/core/pipes/monkeyecx-format-number.mjs +0 -20
  265. package/esm2020/lib/core/pipes/monkeyecx-format-phone.mjs +0 -42
  266. package/esm2020/lib/core/pipes/monkeyecx-format-size.mjs +0 -20
  267. package/esm2020/lib/core/pipes/monkeyecx-format-tax.mjs +0 -23
  268. package/esm2020/lib/core/pipes/monkeyecx-format-type-document.mjs +0 -19
  269. package/esm2020/lib/core/pipes/monkeyecx-format-value.mjs +0 -19
  270. package/esm2020/lib/core/pipes/monkeyecx-format-zipcode.mjs +0 -19
  271. package/esm2020/lib/core/pipes/monkeyecx-pipes.module.mjs +0 -107
  272. package/esm2020/lib/core/pipes/monkeyecx-text-truncate.mjs +0 -23
  273. package/esm2020/lib/core/pipes/monkeyecx-truncate-qtd.mjs +0 -16
  274. package/esm2020/lib/core/services/auth/index.mjs +0 -5
  275. package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-company.service.mjs +0 -28
  276. package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-login.service.mjs +0 -27
  277. package/esm2020/lib/core/services/auth/monkeyecx-auth-guard.service.mjs +0 -26
  278. package/esm2020/lib/core/services/auth/monkeyecx-authentication.service.mjs +0 -69
  279. package/esm2020/lib/core/services/commons/index.mjs +0 -2
  280. package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +0 -405
  281. package/esm2020/lib/core/services/config/monkeyecx-alerts-config.service.mjs +0 -40
  282. package/esm2020/lib/core/services/config/monkeyecx-config.module.mjs +0 -28
  283. package/esm2020/lib/core/services/config/monkeyecx-config.service.mjs +0 -111
  284. package/esm2020/lib/core/services/config/monkeyecx-error-config.service.mjs +0 -85
  285. package/esm2020/lib/core/services/config/monkeyecx-feature-toggle.service.mjs +0 -67
  286. package/esm2020/lib/core/services/config/monkeyecx-ga-config.service.mjs +0 -57
  287. package/esm2020/lib/core/services/config/monkeyecx-i18n-config.service.mjs +0 -92
  288. package/esm2020/lib/core/services/config/monkeyecx-logs-config.service.mjs +0 -34
  289. package/esm2020/lib/core/services/config/monkeyecx-maintenance-config.service.mjs +0 -37
  290. package/esm2020/lib/core/services/config/monkeyecx-security-console-config.service.mjs +0 -42
  291. package/esm2020/lib/core/services/config/monkeyecx-service-worker-config.service.mjs +0 -53
  292. package/esm2020/lib/core/services/error/index.mjs +0 -5
  293. package/esm2020/lib/core/services/error/monkeyecx-error-handling.module.mjs +0 -27
  294. package/esm2020/lib/core/services/error/monkeyecx-error-handling.service.mjs +0 -37
  295. package/esm2020/lib/core/services/error/monkeyecx-http-error-handling.service.mjs +0 -135
  296. package/esm2020/lib/core/services/error/monkeyecx-others-errors-handling.service.mjs +0 -29
  297. package/esm2020/lib/core/services/index.mjs +0 -23
  298. package/esm2020/lib/core/services/logged/index.mjs +0 -2
  299. package/esm2020/lib/core/services/logged/monkeyecx-logged-handling.service.mjs +0 -40
  300. package/esm2020/lib/core/services/monkeyecx-handling.service.mjs +0 -50
  301. package/esm2020/lib/core/services/monkeyecx-service.service.mjs +0 -104
  302. package/esm2020/lib/core/services/pagination/index.mjs +0 -2
  303. package/esm2020/lib/core/services/pagination/monkeyecx-pagination.service.mjs +0 -29
  304. package/esm2020/lib/core/services/request-download/index.mjs +0 -3
  305. package/esm2020/lib/core/services/request-download/monkeyecx-request-download-handling.service.mjs +0 -93
  306. package/esm2020/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.mjs +0 -61
  307. package/esm2020/lib/core/services/request-paged/index.mjs +0 -2
  308. package/esm2020/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.mjs +0 -42
  309. package/esm2020/lib/core/services/request-queue/index.mjs +0 -3
  310. package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.mjs +0 -114
  311. package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.mjs +0 -119
  312. package/esm2020/lib/core/services/routes/index.mjs +0 -2
  313. package/esm2020/lib/core/services/routes/monkeyecx-dicovery-params.service.mjs +0 -54
  314. package/esm2020/lib/core/services/schedules/index.mjs +0 -2
  315. package/esm2020/lib/core/services/schedules/monkeyecx-request-schedule.service.mjs +0 -188
  316. package/esm2020/lib/core/services/storage/index.mjs +0 -3
  317. package/esm2020/lib/core/services/storage/monkeyecx-cookie-storage.service.mjs +0 -32
  318. package/esm2020/lib/core/services/storage/monkeyecx-token-storage.service.mjs +0 -127
  319. package/esm2020/lib/core/specification-search/index.mjs +0 -2
  320. package/esm2020/lib/core/specification-search/monkeyecx-specification-search.mjs +0 -108
  321. package/esm2020/lib/core/utils/decorators-utils.mjs +0 -40
  322. package/esm2020/lib/core/utils/index.mjs +0 -8
  323. package/esm2020/lib/core/utils/statics.mjs +0 -38
  324. package/esm2020/lib/core/utils/utils.mjs +0 -221
  325. package/esm2020/lib/core/utils/validate-utils.mjs +0 -206
  326. package/esm2020/lib/core/utils/validators.mjs +0 -208
  327. package/esm2020/lib/monkey-front-core.module.mjs +0 -64
  328. package/esm2020/monkey-front-core.mjs +0 -5
  329. package/esm2020/public-api.mjs +0 -7
  330. package/fesm2015/monkey-front-core.mjs +0 -5123
  331. package/fesm2015/monkey-front-core.mjs.map +0 -1
  332. package/fesm2020/monkey-front-core.mjs +0 -5182
  333. package/fesm2020/monkey-front-core.mjs.map +0 -1
  334. package/lib/components/alerts/alerts.component.d.ts +0 -16
  335. package/lib/components/alerts/alerts.module.d.ts +0 -10
  336. package/lib/components/closed-to-maintenance/closed-to-maintenance.component.d.ts +0 -13
  337. package/lib/components/closed-to-maintenance/closed-to-maintenance.module.d.ts +0 -11
  338. package/lib/components/progress-bar/progress-bar.component.d.ts +0 -11
  339. package/lib/components/progress-bar/progress-bar.module.d.ts +0 -8
  340. package/lib/components/progress-bar/progress-bar.service.d.ts +0 -14
  341. package/lib/components/version-changed/version-changed.component.d.ts +0 -9
  342. package/lib/components/version-changed/version-changed.module.d.ts +0 -10
  343. package/lib/core/decorators/monkeyecx-charts-decorators.d.ts +0 -1
  344. package/lib/core/decorators/monkeyecx-decorators.d.ts +0 -7
  345. package/lib/core/decorators/monkeyecx-download-decorators.d.ts +0 -2
  346. package/lib/core/decorators/monkeyecx-upload-decorators.d.ts +0 -2
  347. package/lib/core/directives/monkeyecx-directives-module.d.ts +0 -19
  348. package/lib/core/directives/monkeyecx-drag-drop.d.ts +0 -12
  349. package/lib/core/directives/monkeyecx-feature-by-program-directive.d.ts +0 -15
  350. package/lib/core/directives/monkeyecx-feature-directive.d.ts +0 -17
  351. package/lib/core/directives/monkeyecx-format-currency.d.ts +0 -16
  352. package/lib/core/directives/monkeyecx-format-upper.d.ts +0 -18
  353. package/lib/core/directives/monkeyecx-only-alpha-numeric-directive.d.ts +0 -9
  354. package/lib/core/directives/monkeyecx-only-number-directive.d.ts +0 -9
  355. package/lib/core/directives/monkeyecx-popover-options.directive.d.ts +0 -19
  356. package/lib/core/directives/monkeyecx-popover.directive.d.ts +0 -43
  357. package/lib/core/directives/monkeyecx-security-directive.d.ts +0 -17
  358. package/lib/core/directives/monkeyecx-tooltip-directive.d.ts +0 -23
  359. package/lib/core/interceptors/monkeyecx-http-config-error.interceptor.d.ts +0 -17
  360. package/lib/core/interceptors/monkeyecx-http-config-header.interceptor.d.ts +0 -16
  361. package/lib/core/interceptors/monkeyecx-http-config-interceptor.module.d.ts +0 -9
  362. package/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.d.ts +0 -12
  363. package/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.d.ts +0 -14
  364. package/lib/core/interfaces/monkeyecx-auth-credentials.d.ts +0 -15
  365. package/lib/core/interfaces/monkeyecx-company.d.ts +0 -10
  366. package/lib/core/interfaces/monkeyecx-config-boostrap.d.ts +0 -14
  367. package/lib/core/interfaces/monkeyecx-config.d.ts +0 -125
  368. package/lib/core/interfaces/monkeyecx-country-security.d.ts +0 -4
  369. package/lib/core/interfaces/monkeyecx-error-response.d.ts +0 -5
  370. package/lib/core/interfaces/monkeyecx-filter.d.ts +0 -24
  371. package/lib/core/interfaces/monkeyecx-handled-error-response.d.ts +0 -10
  372. package/lib/core/interfaces/monkeyecx-header-credentials.d.ts +0 -4
  373. package/lib/core/interfaces/monkeyecx-me-credentials.d.ts +0 -22
  374. package/lib/core/interfaces/monkeyecx-navigation.d.ts +0 -27
  375. package/lib/core/interfaces/monkeyecx-program.d.ts +0 -10
  376. package/lib/core/interfaces/monkeyecx-releases.d.ts +0 -9
  377. package/lib/core/interfaces/monkeyecx-request-paged.d.ts +0 -23
  378. package/lib/core/interfaces/monkeyecx-response-links.d.ts +0 -11
  379. package/lib/core/interfaces/monkeyecx-response-paged.d.ts +0 -6
  380. package/lib/core/interfaces/monkeyecx-saved-state.d.ts +0 -5
  381. package/lib/core/interfaces/monkeyecx-token-credentials.d.ts +0 -20
  382. package/lib/core/interfaces/monkeyecx-translate-options.d.ts +0 -4
  383. package/lib/core/interfaces/request-download/monkeyecx-request-download.d.ts +0 -10
  384. package/lib/core/interfaces/request-download/monkeyecx-request-downloaded.d.ts +0 -7
  385. package/lib/core/interfaces/request-download/monkeyecx-request-item-download.d.ts +0 -7
  386. package/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.d.ts +0 -7
  387. package/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.d.ts +0 -6
  388. package/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.d.ts +0 -5
  389. package/lib/core/interfaces/request-upload/monkeyecx-request-upload.d.ts +0 -10
  390. package/lib/core/interfaces/schedules/monkeyecx-request-schedule.d.ts +0 -13
  391. package/lib/core/model/monkeyecx-model.d.ts +0 -13
  392. package/lib/core/pipes/monkeyecx-display-first-name.d.ts +0 -7
  393. package/lib/core/pipes/monkeyecx-display-initials.d.ts +0 -7
  394. package/lib/core/pipes/monkeyecx-format-address.d.ts +0 -14
  395. package/lib/core/pipes/monkeyecx-format-beautify-json.d.ts +0 -8
  396. package/lib/core/pipes/monkeyecx-format-currency.d.ts +0 -11
  397. package/lib/core/pipes/monkeyecx-format-date-group.d.ts +0 -11
  398. package/lib/core/pipes/monkeyecx-format-date-timelapse.d.ts +0 -7
  399. package/lib/core/pipes/monkeyecx-format-date-unix-timelapse.d.ts +0 -7
  400. package/lib/core/pipes/monkeyecx-format-document.d.ts +0 -7
  401. package/lib/core/pipes/monkeyecx-format-number.d.ts +0 -7
  402. package/lib/core/pipes/monkeyecx-format-phone.d.ts +0 -7
  403. package/lib/core/pipes/monkeyecx-format-size.d.ts +0 -7
  404. package/lib/core/pipes/monkeyecx-format-tax.d.ts +0 -7
  405. package/lib/core/pipes/monkeyecx-format-type-document.d.ts +0 -7
  406. package/lib/core/pipes/monkeyecx-format-value.d.ts +0 -7
  407. package/lib/core/pipes/monkeyecx-format-zipcode.d.ts +0 -7
  408. package/lib/core/pipes/monkeyecx-pipes.module.d.ts +0 -24
  409. package/lib/core/pipes/monkeyecx-text-truncate.d.ts +0 -7
  410. package/lib/core/pipes/monkeyecx-truncate-qtd.d.ts +0 -7
  411. package/lib/core/services/auth/monkeyecx-auth-guard-company.service.d.ts +0 -11
  412. package/lib/core/services/auth/monkeyecx-auth-guard-login.service.d.ts +0 -11
  413. package/lib/core/services/auth/monkeyecx-auth-guard.service.d.ts +0 -11
  414. package/lib/core/services/auth/monkeyecx-authentication.service.d.ts +0 -30
  415. package/lib/core/services/commons/monkeyecx-commons.service.d.ts +0 -124
  416. package/lib/core/services/config/monkeyecx-alerts-config.service.d.ts +0 -11
  417. package/lib/core/services/config/monkeyecx-config.module.d.ts +0 -9
  418. package/lib/core/services/config/monkeyecx-config.service.d.ts +0 -36
  419. package/lib/core/services/config/monkeyecx-error-config.service.d.ts +0 -8
  420. package/lib/core/services/config/monkeyecx-feature-toggle.service.d.ts +0 -16
  421. package/lib/core/services/config/monkeyecx-ga-config.service.d.ts +0 -10
  422. package/lib/core/services/config/monkeyecx-i18n-config.service.d.ts +0 -16
  423. package/lib/core/services/config/monkeyecx-logs-config.service.d.ts +0 -7
  424. package/lib/core/services/config/monkeyecx-maintenance-config.service.d.ts +0 -13
  425. package/lib/core/services/config/monkeyecx-security-console-config.service.d.ts +0 -11
  426. package/lib/core/services/config/monkeyecx-service-worker-config.service.d.ts +0 -16
  427. package/lib/core/services/error/monkeyecx-error-handling.module.d.ts +0 -9
  428. package/lib/core/services/error/monkeyecx-error-handling.service.d.ts +0 -9
  429. package/lib/core/services/error/monkeyecx-http-error-handling.service.d.ts +0 -26
  430. package/lib/core/services/error/monkeyecx-others-errors-handling.service.d.ts +0 -9
  431. package/lib/core/services/logged/monkeyecx-logged-handling.service.d.ts +0 -14
  432. package/lib/core/services/monkeyecx-handling.service.d.ts +0 -22
  433. package/lib/core/services/monkeyecx-service.service.d.ts +0 -18
  434. package/lib/core/services/pagination/monkeyecx-pagination.service.d.ts +0 -9
  435. package/lib/core/services/request-download/monkeyecx-request-download-handling.service.d.ts +0 -18
  436. package/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.d.ts +0 -16
  437. package/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.d.ts +0 -11
  438. package/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.d.ts +0 -21
  439. package/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.d.ts +0 -23
  440. package/lib/core/services/routes/monkeyecx-dicovery-params.service.d.ts +0 -13
  441. package/lib/core/services/schedules/monkeyecx-request-schedule.service.d.ts +0 -47
  442. package/lib/core/services/storage/monkeyecx-cookie-storage.service.d.ts +0 -11
  443. package/lib/core/services/storage/monkeyecx-token-storage.service.d.ts +0 -29
  444. package/lib/core/specification-search/monkeyecx-specification-search.d.ts +0 -20
  445. package/lib/core/utils/decorators-utils.d.ts +0 -5
  446. package/lib/core/utils/statics.d.ts +0 -28
  447. package/lib/core/utils/utils.d.ts +0 -22
  448. package/lib/core/utils/validate-utils.d.ts +0 -66
  449. package/lib/core/utils/validators.d.ts +0 -29
  450. package/lib/monkey-front-core.module.d.ts +0 -17
  451. package/monkey-front-core-0.0.237.tgz +0 -0
  452. package/monkey-front-core.d.ts +0 -5
@@ -0,0 +1,221 @@
1
+ /* eslint-disable max-classes-per-file */
2
+ import * as moment_ from 'moment';
3
+ import { AbstractControl } from '@angular/forms';
4
+ import { MonkeyEcxUtils } from './utils';
5
+
6
+ const moment: any = moment_;
7
+
8
+ export class DateValidator {
9
+ static do(control: AbstractControl) {
10
+ if (!control.parent || !control) return null;
11
+ if (control && control.value) {
12
+ const dateFormat = 'MM-DD-YYYY';
13
+ if (
14
+ !moment
15
+ .default(
16
+ moment.default(control.value).format(dateFormat),
17
+ ['DD/MM/YYYY', 'MM-DD-YYYY', 'YYYY-MM-DD'],
18
+ true
19
+ )
20
+ .isValid()
21
+ ) {
22
+ return {
23
+ invalidDate: true,
24
+ };
25
+ }
26
+ }
27
+ return null;
28
+ }
29
+ }
30
+
31
+ export class DocumentValidator {
32
+ static do(control: AbstractControl) {
33
+ if (!control.parent || !control) return null;
34
+ if (control && control.value) {
35
+ if (!MonkeyEcxUtils.isCPFCNPJValid(control.value)) {
36
+ return {
37
+ invalidCpfCnpj: true,
38
+ };
39
+ }
40
+ }
41
+ return null;
42
+ }
43
+ }
44
+
45
+ export class DocumentRutValidator {
46
+ static do(control: AbstractControl) {
47
+ if (!control.parent || !control) return null;
48
+ if (control && control.value) {
49
+ if (!MonkeyEcxUtils.isValidRUT(control.value)) {
50
+ return {
51
+ invalidRut: true,
52
+ };
53
+ }
54
+ }
55
+ return null;
56
+ }
57
+ }
58
+
59
+ export class ZipCodeValidator {
60
+ static do(control: AbstractControl) {
61
+ if (!control.parent || !control) return null;
62
+ if (control && control.value) {
63
+ if (!MonkeyEcxUtils.isValidZipCode(control.value)) {
64
+ return {
65
+ invalidZipCode: true,
66
+ };
67
+ }
68
+ }
69
+ return null;
70
+ }
71
+ }
72
+
73
+ export class ComboValidator {
74
+ static do(control: AbstractControl) {
75
+ if (!control.parent || !control) return null;
76
+ if (control && control.value !== '0') return null;
77
+ return {
78
+ invalidCombo: true,
79
+ };
80
+ }
81
+ }
82
+
83
+ export class isTrueValidator {
84
+ static do(control: AbstractControl) {
85
+ if (!control.parent || !control) return null;
86
+ if (control && control.value !== false) return null;
87
+ return {
88
+ invalidTrue: true,
89
+ };
90
+ }
91
+ }
92
+
93
+ export class PasswordMatchValidation {
94
+ static do(control: AbstractControl) {
95
+ if (!control.parent || !control) return null;
96
+ const { parent } = control;
97
+ const password = parent?.get('password')?.value;
98
+ const passwordConfirm = parent?.get('passwordConfirm')?.value;
99
+ if (!password || !passwordConfirm) return null;
100
+ if (password === passwordConfirm) return null;
101
+ return {
102
+ passwordsNotMatching: true,
103
+ };
104
+ }
105
+ }
106
+
107
+ export class UrlValidator {
108
+ static do(control: AbstractControl) {
109
+ if (!control.parent || !control) return null;
110
+ if (control && control.value) {
111
+ if (!MonkeyEcxUtils.isValidUrl(control.value)) {
112
+ return {
113
+ invalidUrl: true,
114
+ };
115
+ }
116
+ }
117
+ return null;
118
+ }
119
+ }
120
+
121
+ export class CustomDatesStartValidator {
122
+ static do(control: AbstractControl) {
123
+ if (!control.parent || !control) return null;
124
+ const { parent } = control;
125
+
126
+ const valueStart = parent?.get('dateStart')?.value;
127
+ const valueEnd = parent?.get('dateEnd')?.value;
128
+ let dateStart: Date | null = null;
129
+ let dateEnd: Date | null = null;
130
+ if (valueStart) {
131
+ dateStart = new Date(valueStart);
132
+ }
133
+ if (valueEnd) {
134
+ dateEnd = new Date(valueEnd);
135
+ }
136
+
137
+ if (!dateStart || !dateEnd) return null;
138
+ if (dateStart > dateEnd) {
139
+ return {
140
+ dateStartMustBeLessThanAnd: true,
141
+ };
142
+ }
143
+ return null;
144
+ }
145
+ }
146
+
147
+ export class CustomDatesEndValidator {
148
+ static do(control: AbstractControl) {
149
+ if (!control.parent || !control) return null;
150
+ const { parent } = control;
151
+
152
+ const valueStart = parent?.get('dateStart')?.value;
153
+ const valueEnd = parent?.get('dateEnd')?.value;
154
+ let dateStart: Date | null = null;
155
+ let dateEnd: Date | null = null;
156
+ if (valueStart) {
157
+ dateStart = new Date(valueStart);
158
+ }
159
+ if (valueEnd) {
160
+ dateEnd = new Date(valueEnd);
161
+ }
162
+
163
+ if (!dateEnd || !dateStart) return null;
164
+ if (dateEnd < dateStart) {
165
+ return {
166
+ dateEndMustBeGreaterThanStart: true,
167
+ };
168
+ }
169
+ return null;
170
+ }
171
+ }
172
+
173
+ export class UnlockRegisterBuyerValidator {
174
+ static do(control: AbstractControl) {
175
+ if (!control.parent || !control) return null;
176
+
177
+ if (control && control.value !== '#MONKEYBUYER') {
178
+ return {
179
+ invalidUnlockRegister: true,
180
+ };
181
+ }
182
+
183
+ return null;
184
+ }
185
+ }
186
+
187
+ export class UnlockRegisterSponsorValidator {
188
+ static do(control: AbstractControl) {
189
+ if (!control.parent || !control) return null;
190
+
191
+ if (control && control.value !== '#MONKEYSPONSOR') {
192
+ return {
193
+ invalidUnlockRegister: true,
194
+ };
195
+ }
196
+
197
+ return null;
198
+ }
199
+ }
200
+
201
+ export class DateRangeValidator {
202
+ static do(control: AbstractControl) {
203
+ if (!control.parent || !control) {
204
+ return null;
205
+ }
206
+
207
+ const dates = control?.parent?.get('dates')?.value;
208
+
209
+ if (
210
+ dates &&
211
+ (!MonkeyEcxUtils.persistNullEmptyUndefined(dates.startDate) ||
212
+ !MonkeyEcxUtils.persistNullEmptyUndefined(dates.endDate))
213
+ ) {
214
+ return {
215
+ invalidDateRange: true,
216
+ };
217
+ }
218
+
219
+ return null;
220
+ }
221
+ }
@@ -0,0 +1,251 @@
1
+ import { AbstractControl, ValidationErrors } from '@angular/forms';
2
+ import * as moment_ from 'moment';
3
+ import { MonkeyEcxUtils } from './utils';
4
+
5
+ const moment: any = moment_;
6
+
7
+ const EMAIL_REGEXP = /^[\w-.]+@([\w-]+\.)+[\w-]{1,64}$/;
8
+
9
+ function isEmptyInputValue(value: any): boolean {
10
+ return value == null || value.length === 0;
11
+ }
12
+
13
+ export function emailValidator(control: AbstractControl): ValidationErrors | null {
14
+ if (!control.parent || !control || isEmptyInputValue(control.value)) {
15
+ return null;
16
+ }
17
+ const test = EMAIL_REGEXP.test(control.value);
18
+ if (test) return null;
19
+ return {
20
+ email: true,
21
+ };
22
+ }
23
+
24
+ export function dateRangeValidator(control: AbstractControl): ValidationErrors | null {
25
+ if (!control.parent || !control || isEmptyInputValue(control.value)) {
26
+ return null;
27
+ }
28
+
29
+ const dates = control?.parent?.get('dates')?.value;
30
+ if (
31
+ dates &&
32
+ (!MonkeyEcxUtils.persistNullEmptyUndefined(dates?.startDate) ||
33
+ !MonkeyEcxUtils.persistNullEmptyUndefined(dates?.endDate))
34
+ ) {
35
+ return {
36
+ dateRange: true,
37
+ };
38
+ }
39
+
40
+ return null;
41
+ }
42
+
43
+ export function registerValidator(control: AbstractControl, type: string): ValidationErrors | null {
44
+ if (!control.parent || !control || isEmptyInputValue(control.value)) {
45
+ return null;
46
+ }
47
+
48
+ if (control && control.value !== `#MONKEY${type}`.toUpperCase()) {
49
+ return {
50
+ invalidUnlockRegister: true,
51
+ };
52
+ }
53
+
54
+ return null;
55
+ }
56
+
57
+ export function dateStartEndValidator(control: AbstractControl): ValidationErrors | null {
58
+ if (!control.parent || !control) {
59
+ return null;
60
+ }
61
+
62
+ const { parent } = control;
63
+
64
+ const valueStart = parent?.get('dateStart')?.value;
65
+ const valueEnd = parent?.get('dateEnd')?.value;
66
+ let dateStart: Date | null = null;
67
+ let dateEnd: Date | null = null;
68
+ if (valueStart) {
69
+ dateStart = new Date(valueStart);
70
+ }
71
+ if (valueEnd) {
72
+ dateEnd = new Date(valueEnd);
73
+ }
74
+
75
+ if (!dateEnd || !dateStart) return null;
76
+ if (dateStart > dateEnd) {
77
+ return {
78
+ dateStartMustBeLessThanAnd: true,
79
+ };
80
+ }
81
+
82
+ return null;
83
+ }
84
+
85
+ export function urlValidator(control: AbstractControl): ValidationErrors | null {
86
+ if (!control.parent || !control || isEmptyInputValue(control.value)) return null;
87
+
88
+ if (!MonkeyEcxUtils.isValidUrl(control.value)) {
89
+ return {
90
+ url: true,
91
+ };
92
+ }
93
+
94
+ return null;
95
+ }
96
+
97
+ export function passwordConfirmValidator(control: AbstractControl): ValidationErrors | null {
98
+ if (!control.parent || !control || isEmptyInputValue(control.value)) return null;
99
+
100
+ const { parent } = control;
101
+ const password = parent?.get('password')?.value;
102
+ const passwordConfirm = parent?.get('passwordConfirm')?.value;
103
+ if (!password || !passwordConfirm) return null;
104
+ if (password === passwordConfirm) return null;
105
+
106
+ return {
107
+ passwordsNotMatching: true,
108
+ };
109
+ }
110
+
111
+ export function trueValidator(control: AbstractControl): ValidationErrors | null {
112
+ if (!control.parent || !control) return null;
113
+ if (control && control.value !== false) return null;
114
+
115
+ return {
116
+ invalidTrue: true,
117
+ };
118
+ }
119
+
120
+ export function comboValidator(control: AbstractControl): ValidationErrors | null {
121
+ if (!control.parent || !control) return null;
122
+ if (control && control.value !== '0') return null;
123
+
124
+ return {
125
+ invalidCombo: true,
126
+ };
127
+ }
128
+
129
+ export function zipCodeValidator(control: AbstractControl): ValidationErrors | null {
130
+ if (!control.parent || !control || isEmptyInputValue(control.value)) return null;
131
+ if (control && control.value) {
132
+ if (!MonkeyEcxUtils.isValidZipCode(control.value)) {
133
+ return {
134
+ invalidZipCode: true,
135
+ };
136
+ }
137
+ }
138
+
139
+ return null;
140
+ }
141
+
142
+ export function documentValidator(
143
+ control: AbstractControl,
144
+ country: string
145
+ ): ValidationErrors | null {
146
+ if (!control.parent || !control || isEmptyInputValue(control.value)) return null;
147
+ if (country === 'BR') {
148
+ if (!MonkeyEcxUtils.isCPFCNPJValid(control.value)) {
149
+ return {
150
+ invalidCpfCnpj: true,
151
+ };
152
+ }
153
+ } else if (country === 'CL') {
154
+ if (!MonkeyEcxUtils.isValidRUT(control.value)) {
155
+ return {
156
+ invalidCpfCnpj: true,
157
+ };
158
+ }
159
+ }
160
+
161
+ return null;
162
+ }
163
+
164
+ export function dateValidator(control: AbstractControl): ValidationErrors | null {
165
+ if (!control.parent || !control || isEmptyInputValue(control.value)) return null;
166
+
167
+ const dateFormat = 'MM-DD-YYYY';
168
+ if (
169
+ !moment
170
+ .default(
171
+ moment.default(control.value).format(dateFormat),
172
+ ['DD/MM/YYYY', 'MM-DD-YYYY', 'YYYY-MM-DD'],
173
+ true
174
+ )
175
+ .isValid()
176
+ ) {
177
+ return {
178
+ invalidDate: true,
179
+ };
180
+ }
181
+ return null;
182
+ }
183
+
184
+ export function valueGreaterThanZero(control: AbstractControl): ValidationErrors | null {
185
+ if (!control.parent || !control || isEmptyInputValue(control.value)) return null;
186
+
187
+ if (control && `${control?.value}` === '0') {
188
+ return {
189
+ invalidValueGreaterThanZero: true,
190
+ };
191
+ }
192
+ return null;
193
+ }
194
+
195
+ export class Validators {
196
+ static email(control: AbstractControl): ValidationErrors | null {
197
+ return emailValidator(control);
198
+ }
199
+
200
+ static dateRange(control: AbstractControl): ValidationErrors | null {
201
+ return dateRangeValidator(control);
202
+ }
203
+
204
+ static unlockSponsorRegister(control: AbstractControl): ValidationErrors | null {
205
+ return registerValidator(control, 'sponsor');
206
+ }
207
+
208
+ static unlockBuyerRegister(control: AbstractControl): ValidationErrors | null {
209
+ return registerValidator(control, 'buyer');
210
+ }
211
+
212
+ static dateStartEnd(control: AbstractControl): ValidationErrors | null {
213
+ return dateStartEndValidator(control);
214
+ }
215
+
216
+ static url(control: AbstractControl): ValidationErrors | null {
217
+ return urlValidator(control);
218
+ }
219
+
220
+ static passwordConfirm(control: AbstractControl): ValidationErrors | null {
221
+ return passwordConfirmValidator(control);
222
+ }
223
+
224
+ static true(control: AbstractControl): ValidationErrors | null {
225
+ return trueValidator(control);
226
+ }
227
+
228
+ static combo(control: AbstractControl): ValidationErrors | null {
229
+ return comboValidator(control);
230
+ }
231
+
232
+ static zipCode(control: AbstractControl): ValidationErrors | null {
233
+ return zipCodeValidator(control);
234
+ }
235
+
236
+ static documentBR(control: AbstractControl): ValidationErrors | null {
237
+ return documentValidator(control, 'BR');
238
+ }
239
+
240
+ static documentCL(control: AbstractControl): ValidationErrors | null {
241
+ return documentValidator(control, 'CL');
242
+ }
243
+
244
+ static date(control: AbstractControl): ValidationErrors | null {
245
+ return dateValidator(control);
246
+ }
247
+
248
+ static greaterThanZero(control: AbstractControl): ValidationErrors | null {
249
+ return valueGreaterThanZero(control);
250
+ }
251
+ }
@@ -0,0 +1,37 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { HttpClientModule } from '@angular/common/http';
3
+ import { CommonModule } from '@angular/common';
4
+ import {
5
+ MonkeyStyleGuideModalService,
6
+ MonkeyStyleGuideModule,
7
+ MonkeyStyleGuideSettingsService,
8
+ MonkeyStyleGuideSnackbarService
9
+ } from 'monkey-style-guide';
10
+ import { TranslateModule } from '@ngx-translate/core';
11
+ import { ServiceWorkerModule } from '@angular/service-worker';
12
+ import { ClosedToMaintenanceModule, VersionChangedModule, AlertsModule } from './components';
13
+ import { MonkeyEcxConfigModule } from './core/services/config/monkeyecx-config.module';
14
+ import { MonkeyEcxHttpConfigInterceptorModule } from './core/interceptors/monkeyecx-http-config-interceptor.module';
15
+ import { MonkeyEcxErrorHandlingModule } from './core/services/error/monkeyecx-error-handling.module';
16
+
17
+ @NgModule({
18
+ imports: [
19
+ CommonModule,
20
+ HttpClientModule,
21
+ TranslateModule.forRoot(),
22
+ MonkeyEcxConfigModule.forRoot(),
23
+ MonkeyEcxHttpConfigInterceptorModule.forRoot(),
24
+ MonkeyEcxErrorHandlingModule.forRoot(),
25
+ MonkeyStyleGuideModule,
26
+ ServiceWorkerModule.register('ngsw-worker.js'),
27
+ ClosedToMaintenanceModule,
28
+ VersionChangedModule,
29
+ AlertsModule
30
+ ],
31
+ providers: [
32
+ MonkeyStyleGuideModalService,
33
+ MonkeyStyleGuideSettingsService,
34
+ MonkeyStyleGuideSnackbarService
35
+ ]
36
+ })
37
+ export class MonkeyFrontCoreModule {}
@@ -1,3 +1,6 @@
1
- export * from './lib/components';
2
- export * from './lib/core';
3
- export * from './lib/monkey-front-core.module';
1
+ /*
2
+ * Public API Surface of monkey-front-core
3
+ */
4
+ export * from './lib/components';
5
+ export * from './lib/core';
6
+ export * from './lib/monkey-front-core.module';
package/src/test.ts ADDED
@@ -0,0 +1,26 @@
1
+ // This file is required by karma.conf.js and loads recursively all the .spec and framework files
2
+
3
+ import 'zone.js';
4
+ import 'zone.js/testing';
5
+ import { getTestBed } from '@angular/core/testing';
6
+ import {
7
+ BrowserDynamicTestingModule,
8
+ platformBrowserDynamicTesting
9
+ } from '@angular/platform-browser-dynamic/testing';
10
+
11
+ declare const require: {
12
+ context(path: string, deep?: boolean, filter?: RegExp): {
13
+ keys(): string[];
14
+ <T>(id: string): T;
15
+ };
16
+ };
17
+
18
+ // First, initialize the Angular testing environment.
19
+ getTestBed().initTestEnvironment(
20
+ BrowserDynamicTestingModule,
21
+ platformBrowserDynamicTesting()
22
+ );
23
+ // Then we find all the tests.
24
+ const context = require.context('./', true, /\.spec\.ts$/);
25
+ // And load the modules.
26
+ context.keys().map(context);
@@ -0,0 +1,15 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "extends": "../../tsconfig.json",
4
+ "compilerOptions": {
5
+ "outDir": "../../out-tsc/lib",
6
+ "target": "es2017",
7
+ "module": "es2020",
8
+ "declaration": true,
9
+ "declarationMap": true,
10
+ "inlineSources": true,
11
+ "types": [],
12
+ "lib": ["dom", "es2018"]
13
+ },
14
+ "exclude": ["src/test.ts", "**/*.spec.ts"]
15
+ }
@@ -0,0 +1,10 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "extends": "./tsconfig.lib.json",
4
+ "compilerOptions": {
5
+ "declarationMap": false
6
+ },
7
+ "angularCompilerOptions": {
8
+ "compilationMode": "partial"
9
+ }
10
+ }
@@ -0,0 +1,17 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "extends": "../../tsconfig.json",
4
+ "compilerOptions": {
5
+ "outDir": "../../out-tsc/spec",
6
+ "types": [
7
+ "jasmine"
8
+ ]
9
+ },
10
+ "files": [
11
+ "src/test.ts"
12
+ ],
13
+ "include": [
14
+ "**/*.spec.ts",
15
+ "**/*.d.ts"
16
+ ]
17
+ }
@@ -1,35 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "monkey-style-guide";
4
- import * as i2 from "@angular/common";
5
- import * as i3 from "@ngx-translate/core";
6
- export class AlertsComponent {
7
- constructor(modalService) {
8
- this.modalService = modalService;
9
- this.config = null;
10
- this._img = '';
11
- this._title = '';
12
- this._message = '';
13
- // not to do
14
- }
15
- ngOnInit() {
16
- const { config } = this;
17
- this._img = config?.data?.img;
18
- this._title = config?.data?.title;
19
- this._message = config?.data?.message;
20
- }
21
- onClose() {
22
- this.modalService.close(this.modalRef);
23
- }
24
- }
25
- AlertsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsComponent, deps: [{ token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Component });
26
- AlertsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AlertsComponent, selector: "monkeyecx-alerts", inputs: { config: "config", modalRef: "modalRef" }, ngImport: i0, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\n <div class=\"alert-header\">\n <img [src]=\"_img\">\n </div>\n <div class=\"alert-body\">\n <span class=\"title\">\n {{ _title | translate }}\n </span>\n <span class=\"message\">\n {{ _message | translate }}\n </span>\n </div>\n <div class=\"alert-footer\">\n <monkey-button type=\"tertiary\" color=\"theme\" (click)=\"onClose()\">\n {{ 'BUTTONS.CLOSE' | translate }}\n </monkey-button>\n </div>\n</monkey-modal>", styles: [":host ::ng-deep monkey-modal mecx-monkey-modal{padding:0}:host ::ng-deep monkey-modal mecx-monkey-modal .body{margin-bottom:0}:host ::ng-deep monkey-modal .mecx-monkey-modal__size-md{max-width:448px}:host .alert-header{height:100%}@media screen and (max-width: 959px){:host .alert-header{min-height:212px}}:host .alert-header img{border-radius:12px 12px 0 0;-o-object-fit:cover;object-fit:cover;width:100%;max-height:280px}@media screen and (max-width: 959px){:host .alert-header img{height:200px}}:host .alert-body{display:flex;flex-direction:column;gap:16px;padding:24px;margin:auto}:host .alert-body .title{font-style:normal;font-weight:700;font-size:32px;line-height:40px;text-align:center;color:#1f2024}:host .alert-body .message{font-style:normal;font-weight:400;font-size:16px;line-height:24px;text-align:center;letter-spacing:.03em;color:#545a63}:host .alert-footer{display:flex;justify-content:flex-end;padding:0 24px 24px;position:-webkit-sticky;position:sticky;bottom:0;background:#fafafa}\n"], components: [{ type: i1.MonkeyModalComponent, selector: "monkey-modal", inputs: ["config", "modalRef", "onHandleConfirm"] }, { type: i1.MonkeyButtonComponent, selector: "monkey-button", inputs: ["label", "icon", "iconPosition", "type", "color", "disabled", "size"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i3.TranslatePipe } });
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsComponent, decorators: [{
28
- type: Component,
29
- args: [{ selector: 'monkeyecx-alerts', template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\n <div class=\"alert-header\">\n <img [src]=\"_img\">\n </div>\n <div class=\"alert-body\">\n <span class=\"title\">\n {{ _title | translate }}\n </span>\n <span class=\"message\">\n {{ _message | translate }}\n </span>\n </div>\n <div class=\"alert-footer\">\n <monkey-button type=\"tertiary\" color=\"theme\" (click)=\"onClose()\">\n {{ 'BUTTONS.CLOSE' | translate }}\n </monkey-button>\n </div>\n</monkey-modal>", styles: [":host ::ng-deep monkey-modal mecx-monkey-modal{padding:0}:host ::ng-deep monkey-modal mecx-monkey-modal .body{margin-bottom:0}:host ::ng-deep monkey-modal .mecx-monkey-modal__size-md{max-width:448px}:host .alert-header{height:100%}@media screen and (max-width: 959px){:host .alert-header{min-height:212px}}:host .alert-header img{border-radius:12px 12px 0 0;-o-object-fit:cover;object-fit:cover;width:100%;max-height:280px}@media screen and (max-width: 959px){:host .alert-header img{height:200px}}:host .alert-body{display:flex;flex-direction:column;gap:16px;padding:24px;margin:auto}:host .alert-body .title{font-style:normal;font-weight:700;font-size:32px;line-height:40px;text-align:center;color:#1f2024}:host .alert-body .message{font-style:normal;font-weight:400;font-size:16px;line-height:24px;text-align:center;letter-spacing:.03em;color:#545a63}:host .alert-footer{display:flex;justify-content:flex-end;padding:0 24px 24px;position:-webkit-sticky;position:sticky;bottom:0;background:#fafafa}\n"] }]
30
- }], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalService }]; }, propDecorators: { config: [{
31
- type: Input
32
- }], modalRef: [{
33
- type: Input
34
- }] } });
35
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnRzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21vbmtleS1mcm9udC1jb3JlL3NyYy9saWIvY29tcG9uZW50cy9hbGVydHMvYWxlcnRzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21vbmtleS1mcm9udC1jb3JlL3NyYy9saWIvY29tcG9uZW50cy9hbGVydHMvYWxlcnRzLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFVLE1BQU0sZUFBZSxDQUFDOzs7OztBQVF6RCxNQUFNLE9BQU8sZUFBZTtJQVcxQixZQUNVLFlBQTBDO1FBQTFDLGlCQUFZLEdBQVosWUFBWSxDQUE4QjtRQVgzQyxXQUFNLEdBQTZCLElBQUksQ0FBQztRQUlqRCxTQUFJLEdBQUcsRUFBRSxDQUFDO1FBRVYsV0FBTSxHQUFHLEVBQUUsQ0FBQztRQUVaLGFBQVEsR0FBRyxFQUFFLENBQUM7UUFLWixZQUFZO0lBQ2QsQ0FBQztJQUVELFFBQVE7UUFDTixNQUFNLEVBQUUsTUFBTSxFQUFFLEdBQUcsSUFBSSxDQUFDO1FBQ3hCLElBQUksQ0FBQyxJQUFJLEdBQUcsTUFBTSxFQUFFLElBQUksRUFBRSxHQUFHLENBQUM7UUFDOUIsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLEVBQUUsSUFBSSxFQUFFLEtBQUssQ0FBQztRQUNsQyxJQUFJLENBQUMsUUFBUSxHQUFHLE1BQU0sRUFBRSxJQUFJLEVBQUUsT0FBTyxDQUFDO0lBQ3hDLENBQUM7SUFFRCxPQUFPO1FBQ0wsSUFBSSxDQUFDLFlBQVksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxDQUFDO0lBQ3pDLENBQUM7OzRHQTFCVSxlQUFlO2dHQUFmLGVBQWUsNEdDUjVCLHNoQkFpQmU7MkZEVEYsZUFBZTtrQkFMM0IsU0FBUzsrQkFDRSxrQkFBa0I7bUhBS25CLE1BQU07c0JBQWQsS0FBSztnQkFFRyxRQUFRO3NCQUFoQixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBJbnB1dCwgT25Jbml0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBNb25rZXlNb2RhbENvbmZpZywgTW9ua2V5U3R5bGVHdWlkZU1vZGFsU2VydmljZSB9IGZyb20gJ21vbmtleS1zdHlsZS1ndWlkZSc7XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ21vbmtleWVjeC1hbGVydHMnLFxuICB0ZW1wbGF0ZVVybDogJy4vYWxlcnRzLmNvbXBvbmVudC5odG1sJyxcbiAgc3R5bGVVcmxzOiBbJy4vYWxlcnRzLmNvbXBvbmVudC5zY3NzJ11cbn0pXG5leHBvcnQgY2xhc3MgQWxlcnRzQ29tcG9uZW50IGltcGxlbWVudHMgT25Jbml0IHtcbiAgQElucHV0KCkgY29uZmlnOiBNb25rZXlNb2RhbENvbmZpZyB8IG51bGwgPSBudWxsO1xuXG4gIEBJbnB1dCgpIG1vZGFsUmVmOiBhbnk7XG5cbiAgX2ltZyA9ICcnO1xuXG4gIF90aXRsZSA9ICcnO1xuXG4gIF9tZXNzYWdlID0gJyc7XG5cbiAgY29uc3RydWN0b3IoXG4gICAgcHJpdmF0ZSBtb2RhbFNlcnZpY2U6IE1vbmtleVN0eWxlR3VpZGVNb2RhbFNlcnZpY2VcbiAgKSB7XG4gICAgLy8gbm90IHRvIGRvXG4gIH1cblxuICBuZ09uSW5pdCgpIHtcbiAgICBjb25zdCB7IGNvbmZpZyB9ID0gdGhpcztcbiAgICB0aGlzLl9pbWcgPSBjb25maWc/LmRhdGE/LmltZztcbiAgICB0aGlzLl90aXRsZSA9IGNvbmZpZz8uZGF0YT8udGl0bGU7XG4gICAgdGhpcy5fbWVzc2FnZSA9IGNvbmZpZz8uZGF0YT8ubWVzc2FnZTtcbiAgfVxuXG4gIG9uQ2xvc2UoKSB7XG4gICAgdGhpcy5tb2RhbFNlcnZpY2UuY2xvc2UodGhpcy5tb2RhbFJlZik7XG4gIH1cbn1cbiIsIjxtb25rZXktbW9kYWwgW2NvbmZpZ109XCJjb25maWdcIiBbbW9kYWxSZWZdPVwibW9kYWxSZWZcIiAqbmdJZj1cImNvbmZpZ1wiPlxuICA8ZGl2IGNsYXNzPVwiYWxlcnQtaGVhZGVyXCI+XG4gICAgPGltZyBbc3JjXT1cIl9pbWdcIj5cbiAgPC9kaXY+XG4gIDxkaXYgY2xhc3M9XCJhbGVydC1ib2R5XCI+XG4gICAgPHNwYW4gY2xhc3M9XCJ0aXRsZVwiPlxuICAgICAge3sgX3RpdGxlIHwgdHJhbnNsYXRlIH19XG4gICAgPC9zcGFuPlxuICAgIDxzcGFuIGNsYXNzPVwibWVzc2FnZVwiPlxuICAgICAge3sgX21lc3NhZ2UgfCB0cmFuc2xhdGUgfX1cbiAgICA8L3NwYW4+XG4gIDwvZGl2PlxuICA8ZGl2IGNsYXNzPVwiYWxlcnQtZm9vdGVyXCI+XG4gICAgPG1vbmtleS1idXR0b24gdHlwZT1cInRlcnRpYXJ5XCIgY29sb3I9XCJ0aGVtZVwiIChjbGljayk9XCJvbkNsb3NlKClcIj5cbiAgICAgIHt7ICdCVVRUT05TLkNMT1NFJyB8IHRyYW5zbGF0ZSB9fVxuICAgIDwvbW9ua2V5LWJ1dHRvbj5cbiAgPC9kaXY+XG48L21vbmtleS1tb2RhbD4iXX0=
@@ -1,21 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { NgModule } from '@angular/core';
3
- import { TranslateModule } from '@ngx-translate/core';
4
- import { MonkeyButtonModule, MonkeyModalModule } from 'monkey-style-guide';
5
- import { AlertsComponent } from './alerts.component';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "@ngx-translate/core";
8
- export class AlertsModule {
9
- }
10
- AlertsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
- AlertsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, declarations: [AlertsComponent], imports: [CommonModule, MonkeyButtonModule, MonkeyModalModule, i1.TranslateModule], exports: [AlertsComponent] });
12
- AlertsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, imports: [[CommonModule, MonkeyButtonModule, MonkeyModalModule, TranslateModule.forChild()]] });
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, decorators: [{
14
- type: NgModule,
15
- args: [{
16
- declarations: [AlertsComponent],
17
- imports: [CommonModule, MonkeyButtonModule, MonkeyModalModule, TranslateModule.forChild()],
18
- exports: [AlertsComponent]
19
- }]
20
- }] });
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnRzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21vbmtleS1mcm9udC1jb3JlL3NyYy9saWIvY29tcG9uZW50cy9hbGVydHMvYWxlcnRzLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdEQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLGlCQUFpQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDM0UsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLG9CQUFvQixDQUFDOzs7QUFPckQsTUFBTSxPQUFPLFlBQVk7O3lHQUFaLFlBQVk7MEdBQVosWUFBWSxpQkFKUixlQUFlLGFBQ3BCLFlBQVksRUFBRSxrQkFBa0IsRUFBRSxpQkFBaUIsaUNBQ25ELGVBQWU7MEdBRWQsWUFBWSxZQUhkLENBQUMsWUFBWSxFQUFFLGtCQUFrQixFQUFFLGlCQUFpQixFQUFFLGVBQWUsQ0FBQyxRQUFRLEVBQUUsQ0FBQzsyRkFHL0UsWUFBWTtrQkFMeEIsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUUsQ0FBQyxlQUFlLENBQUM7b0JBQy9CLE9BQU8sRUFBRSxDQUFDLFlBQVksRUFBRSxrQkFBa0IsRUFBRSxpQkFBaUIsRUFBRSxlQUFlLENBQUMsUUFBUSxFQUFFLENBQUM7b0JBQzFGLE9BQU8sRUFBRSxDQUFDLGVBQWUsQ0FBQztpQkFDM0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IFRyYW5zbGF0ZU1vZHVsZSB9IGZyb20gJ0BuZ3gtdHJhbnNsYXRlL2NvcmUnO1xuaW1wb3J0IHsgTW9ua2V5QnV0dG9uTW9kdWxlLCBNb25rZXlNb2RhbE1vZHVsZSB9IGZyb20gJ21vbmtleS1zdHlsZS1ndWlkZSc7XG5pbXBvcnQgeyBBbGVydHNDb21wb25lbnQgfSBmcm9tICcuL2FsZXJ0cy5jb21wb25lbnQnO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtBbGVydHNDb21wb25lbnRdLFxuICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlLCBNb25rZXlCdXR0b25Nb2R1bGUsIE1vbmtleU1vZGFsTW9kdWxlLCBUcmFuc2xhdGVNb2R1bGUuZm9yQ2hpbGQoKV0sXG4gIGV4cG9ydHM6IFtBbGVydHNDb21wb25lbnRdXG59KVxuZXhwb3J0IGNsYXNzIEFsZXJ0c01vZHVsZSB7fVxuIl19
@@ -1,3 +0,0 @@
1
- export * from './alerts.component';
2
- export * from './alerts.module';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29yZS9zcmMvbGliL2NvbXBvbmVudHMvYWxlcnRzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxpQkFBaUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYWxlcnRzLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2FsZXJ0cy5tb2R1bGUnO1xuIl19