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.
- package/karma.conf.js +44 -0
- package/monkey-front-core-0.0.238.tgz +0 -0
- package/ng-package.json +8 -0
- package/package.json +4 -24
- package/src/lib/components/alerts/alerts.component.html +18 -0
- package/src/lib/components/alerts/alerts.component.scss +71 -0
- package/src/lib/components/alerts/alerts.component.ts +36 -0
- package/src/lib/components/alerts/alerts.module.ts +12 -0
- package/{lib/components/alerts/index.d.ts → src/lib/components/alerts/index.ts} +2 -2
- package/src/lib/components/closed-to-maintenance/closed-to-maintenance.component.html +25 -0
- package/src/lib/components/closed-to-maintenance/closed-to-maintenance.component.scss +51 -0
- package/src/lib/components/closed-to-maintenance/closed-to-maintenance.component.ts +25 -0
- package/src/lib/components/closed-to-maintenance/closed-to-maintenance.module.ts +26 -0
- package/{lib/components/closed-to-maintenance/index.d.ts → src/lib/components/closed-to-maintenance/index.ts} +2 -2
- package/{lib/components/index.d.ts → src/lib/components/index.ts} +4 -4
- package/{lib/components/progress-bar/index.d.ts → src/lib/components/progress-bar/index.ts} +3 -3
- package/src/lib/components/progress-bar/progress-bar.component.html +3 -0
- package/src/lib/components/progress-bar/progress-bar.component.scss +6 -0
- package/src/lib/components/progress-bar/progress-bar.component.ts +22 -0
- package/src/lib/components/progress-bar/progress-bar.module.ts +10 -0
- package/src/lib/components/progress-bar/progress-bar.service.ts +61 -0
- package/{lib/components/version-changed/index.d.ts → src/lib/components/version-changed/index.ts} +2 -2
- package/src/lib/components/version-changed/version-changed.component.html +18 -0
- package/src/lib/components/version-changed/version-changed.component.scss +52 -0
- package/src/lib/components/version-changed/version-changed.component.ts +18 -0
- package/src/lib/components/version-changed/version-changed.module.ts +24 -0
- package/{lib/core/decorators/index.d.ts → src/lib/core/decorators/index.ts} +4 -4
- package/src/lib/core/decorators/monkeyecx-charts-decorators.ts +46 -0
- package/src/lib/core/decorators/monkeyecx-decorators.ts +159 -0
- package/src/lib/core/decorators/monkeyecx-download-decorators.ts +39 -0
- package/src/lib/core/decorators/monkeyecx-upload-decorators.ts +39 -0
- package/{lib/core/directives/index.d.ts → src/lib/core/directives/index.ts} +12 -12
- package/src/lib/core/directives/monkeyecx-directives-module.ts +45 -0
- package/src/lib/core/directives/monkeyecx-drag-drop.ts +40 -0
- package/src/lib/core/directives/monkeyecx-feature-by-program-directive.ts +53 -0
- package/src/lib/core/directives/monkeyecx-feature-directive.ts +72 -0
- package/src/lib/core/directives/monkeyecx-format-currency.ts +44 -0
- package/src/lib/core/directives/monkeyecx-format-upper.ts +54 -0
- package/src/lib/core/directives/monkeyecx-only-alpha-numeric-directive.ts +21 -0
- package/src/lib/core/directives/monkeyecx-only-number-directive.ts +21 -0
- package/src/lib/core/directives/monkeyecx-popover-options.directive.ts +52 -0
- package/src/lib/core/directives/monkeyecx-popover.directive.ts +235 -0
- package/src/lib/core/directives/monkeyecx-security-directive.ts +68 -0
- package/src/lib/core/directives/monkeyecx-tooltip-directive.ts +131 -0
- package/{lib/core/index.d.ts → src/lib/core/index.ts} +9 -9
- package/{lib/core/interceptors/index.d.ts → src/lib/core/interceptors/index.ts} +5 -5
- package/src/lib/core/interceptors/monkeyecx-http-config-error.interceptor.ts +58 -0
- package/src/lib/core/interceptors/monkeyecx-http-config-header.interceptor.ts +78 -0
- package/src/lib/core/interceptors/monkeyecx-http-config-interceptor.module.ts +40 -0
- package/src/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.ts +47 -0
- package/src/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.ts +44 -0
- package/{lib/core/interfaces/index.d.ts → src/lib/core/interfaces/index.ts} +29 -29
- package/src/lib/core/interfaces/monkeyecx-auth-credentials.ts +16 -0
- package/{lib/core/interfaces/monkeyecx-company-pendencies.d.ts → src/lib/core/interfaces/monkeyecx-company-pendencies.ts} +16 -14
- package/src/lib/core/interfaces/monkeyecx-company.ts +10 -0
- package/src/lib/core/interfaces/monkeyecx-config-boostrap.ts +14 -0
- package/src/lib/core/interfaces/monkeyecx-config.ts +139 -0
- package/src/lib/core/interfaces/monkeyecx-country-security.ts +4 -0
- package/src/lib/core/interfaces/monkeyecx-error-response.ts +5 -0
- package/src/lib/core/interfaces/monkeyecx-filter.ts +26 -0
- package/src/lib/core/interfaces/monkeyecx-handled-error-response.ts +11 -0
- package/src/lib/core/interfaces/monkeyecx-header-credentials.ts +4 -0
- package/{lib/core/interfaces/monkeyecx-intercom-options.d.ts → src/lib/core/interfaces/monkeyecx-intercom-options.ts} +4 -4
- package/src/lib/core/interfaces/monkeyecx-me-credentials.ts +23 -0
- package/src/lib/core/interfaces/monkeyecx-navigation.ts +28 -0
- package/src/lib/core/interfaces/monkeyecx-program.ts +10 -0
- package/src/lib/core/interfaces/monkeyecx-releases.ts +9 -0
- package/{lib/core/interfaces/monkeyecx-request-in-progress.d.ts → src/lib/core/interfaces/monkeyecx-request-in-progress.ts} +3 -3
- package/src/lib/core/interfaces/monkeyecx-request-paged.ts +27 -0
- package/src/lib/core/interfaces/monkeyecx-response-links.ts +11 -0
- package/src/lib/core/interfaces/monkeyecx-response-paged.ts +6 -0
- package/src/lib/core/interfaces/monkeyecx-saved-state.ts +5 -0
- package/{lib/core/interfaces/monkeyecx-scroll-options.d.ts → src/lib/core/interfaces/monkeyecx-scroll-options.ts} +6 -5
- package/{lib/core/interfaces/monkeyecx-service-credentials.d.ts → src/lib/core/interfaces/monkeyecx-service-credentials.ts} +13 -12
- package/{lib/core/interfaces/monkeyecx-support-options.d.ts → src/lib/core/interfaces/monkeyecx-support-options.ts} +4 -4
- package/src/lib/core/interfaces/monkeyecx-token-credentials.ts +20 -0
- package/src/lib/core/interfaces/monkeyecx-translate-options.ts +4 -0
- package/{lib/core/interfaces/request-download/index.d.ts → src/lib/core/interfaces/request-download/index.ts} +3 -3
- package/src/lib/core/interfaces/request-download/monkeyecx-request-download.ts +11 -0
- package/src/lib/core/interfaces/request-download/monkeyecx-request-downloaded.ts +8 -0
- package/src/lib/core/interfaces/request-download/monkeyecx-request-item-download.ts +7 -0
- package/{lib/core/interfaces/request-queue/index.d.ts → src/lib/core/interfaces/request-queue/index.ts} +3 -3
- package/src/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.ts +7 -0
- package/src/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.ts +6 -0
- package/{lib/core/interfaces/request-queue/monkeyecx-request-queue.d.ts → src/lib/core/interfaces/request-queue/monkeyecx-request-queue.ts} +9 -8
- package/{lib/core/interfaces/request-upload/index.d.ts → src/lib/core/interfaces/request-upload/index.ts} +2 -2
- package/src/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.ts +5 -0
- package/src/lib/core/interfaces/request-upload/monkeyecx-request-upload.ts +11 -0
- package/{lib/core/interfaces/schedules/index.d.ts → src/lib/core/interfaces/schedules/index.ts} +1 -1
- package/src/lib/core/interfaces/schedules/monkeyecx-request-schedule.ts +14 -0
- package/{lib/core/model/index.d.ts → src/lib/core/model/index.ts} +1 -1
- package/src/lib/core/model/monkeyecx-model.ts +38 -0
- package/{lib/core/pipes/index.d.ts → src/lib/core/pipes/index.ts} +19 -19
- package/src/lib/core/pipes/monkeyecx-display-first-name.ts +12 -0
- package/src/lib/core/pipes/monkeyecx-display-initials.ts +14 -0
- package/src/lib/core/pipes/monkeyecx-display-support-phone.ts +31 -0
- package/src/lib/core/pipes/monkeyecx-format-address.ts +27 -0
- package/src/lib/core/pipes/monkeyecx-format-beautify-json.ts +35 -0
- package/src/lib/core/pipes/monkeyecx-format-currency.ts +20 -0
- package/src/lib/core/pipes/monkeyecx-format-date-group.ts +40 -0
- package/src/lib/core/pipes/monkeyecx-format-date-timelapse.ts +25 -0
- package/src/lib/core/pipes/monkeyecx-format-date-unix-timelapse.ts +31 -0
- package/src/lib/core/pipes/monkeyecx-format-document.ts +12 -0
- package/src/lib/core/pipes/monkeyecx-format-number.ts +14 -0
- package/src/lib/core/pipes/monkeyecx-format-phone.ts +32 -0
- package/src/lib/core/pipes/monkeyecx-format-size.ts +13 -0
- package/src/lib/core/pipes/monkeyecx-format-tax.ts +16 -0
- package/src/lib/core/pipes/monkeyecx-format-type-document.ts +12 -0
- package/src/lib/core/pipes/monkeyecx-format-value.ts +12 -0
- package/src/lib/core/pipes/monkeyecx-format-zipcode.ts +12 -0
- package/src/lib/core/pipes/monkeyecx-pipes.module.ts +65 -0
- package/src/lib/core/pipes/monkeyecx-text-truncate.ts +17 -0
- package/src/lib/core/pipes/monkeyecx-truncate-qtd.ts +10 -0
- package/{lib/core/services/auth/index.d.ts → src/lib/core/services/auth/index.ts} +4 -4
- package/src/lib/core/services/auth/monkeyecx-auth-guard-company.service.ts +27 -0
- package/src/lib/core/services/auth/monkeyecx-auth-guard-login.service.ts +23 -0
- package/src/lib/core/services/auth/monkeyecx-auth-guard.service.ts +25 -0
- package/src/lib/core/services/auth/monkeyecx-authentication.service.ts +87 -0
- package/{lib/core/services/commons/index.d.ts → src/lib/core/services/commons/index.ts} +1 -1
- package/src/lib/core/services/commons/monkeyecx-commons.service.ts +557 -0
- package/src/lib/core/services/config/index.ts +9 -0
- package/src/lib/core/services/config/monkeyecx-alerts-config.service.ts +37 -0
- package/src/lib/core/services/config/monkeyecx-config.module.ts +23 -0
- package/src/lib/core/services/config/monkeyecx-config.service.ts +151 -0
- package/src/lib/core/services/config/monkeyecx-error-config.service.ts +92 -0
- package/src/lib/core/services/config/monkeyecx-feature-toggle.service.ts +71 -0
- package/src/lib/core/services/config/monkeyecx-ga-config.service.ts +56 -0
- package/src/lib/core/services/config/monkeyecx-i18n-config.service.ts +95 -0
- package/src/lib/core/services/config/monkeyecx-logs-config.service.ts +34 -0
- package/src/lib/core/services/config/monkeyecx-maintenance-config.service.ts +33 -0
- package/src/lib/core/services/config/monkeyecx-security-console-config.service.ts +40 -0
- package/src/lib/core/services/config/monkeyecx-service-worker-config.service.ts +50 -0
- package/{lib/core/services/error/index.d.ts → src/lib/core/services/error/index.ts} +4 -4
- package/src/lib/core/services/error/monkeyecx-error-handling.module.ts +20 -0
- package/src/lib/core/services/error/monkeyecx-error-handling.service.ts +33 -0
- package/src/lib/core/services/error/monkeyecx-http-error-handling.service.ts +160 -0
- package/src/lib/core/services/error/monkeyecx-others-errors-handling.service.ts +24 -0
- package/{lib/core/services/index.d.ts → src/lib/core/services/index.ts} +22 -22
- package/{lib/core/services/logged/index.d.ts → src/lib/core/services/logged/index.ts} +1 -1
- package/src/lib/core/services/logged/monkeyecx-logged-handling.service.ts +42 -0
- package/src/lib/core/services/monkeyecx-handling.service.ts +58 -0
- package/src/lib/core/services/monkeyecx-service.service.ts +116 -0
- package/{lib/core/services/pagination/index.d.ts → src/lib/core/services/pagination/index.ts} +1 -1
- package/src/lib/core/services/pagination/monkeyecx-pagination.service.ts +27 -0
- package/{lib/core/services/request-download/index.d.ts → src/lib/core/services/request-download/index.ts} +2 -2
- package/src/lib/core/services/request-download/monkeyecx-request-download-handling.service.ts +100 -0
- package/src/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.ts +65 -0
- package/{lib/core/services/request-paged/index.d.ts → src/lib/core/services/request-paged/index.ts} +1 -1
- package/src/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.ts +58 -0
- package/{lib/core/services/request-queue/index.d.ts → src/lib/core/services/request-queue/index.ts} +2 -2
- package/src/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.ts +125 -0
- package/src/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.ts +136 -0
- package/{lib/core/services/routes/index.d.ts → src/lib/core/services/routes/index.ts} +1 -1
- package/src/lib/core/services/routes/monkeyecx-dicovery-params.service.ts +54 -0
- package/{lib/core/services/schedules/index.d.ts → src/lib/core/services/schedules/index.ts} +1 -1
- package/src/lib/core/services/schedules/monkeyecx-request-schedule.service.ts +224 -0
- package/{lib/core/services/storage/index.d.ts → src/lib/core/services/storage/index.ts} +2 -2
- package/src/lib/core/services/storage/monkeyecx-cookie-storage.service.ts +28 -0
- package/src/lib/core/services/storage/monkeyecx-token-storage.service.ts +151 -0
- package/{lib/core/specification-search/index.d.ts → src/lib/core/specification-search/index.ts} +1 -1
- package/src/lib/core/specification-search/monkeyecx-specification-search.ts +111 -0
- package/src/lib/core/utils/decorators-utils.ts +56 -0
- package/{lib/core/utils/index.d.ts → src/lib/core/utils/index.ts} +8 -6
- package/src/lib/core/utils/statics.ts +36 -0
- package/src/lib/core/utils/utils.ts +237 -0
- package/src/lib/core/utils/validate-utils.ts +221 -0
- package/src/lib/core/utils/validators.ts +251 -0
- package/src/lib/monkey-front-core.module.ts +37 -0
- package/{public-api.d.ts → src/public-api.ts} +6 -3
- package/src/test.ts +26 -0
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/esm2020/lib/components/alerts/alerts.component.mjs +0 -35
- package/esm2020/lib/components/alerts/alerts.module.mjs +0 -21
- package/esm2020/lib/components/alerts/index.mjs +0 -3
- package/esm2020/lib/components/closed-to-maintenance/closed-to-maintenance.component.mjs +0 -29
- package/esm2020/lib/components/closed-to-maintenance/closed-to-maintenance.module.mjs +0 -43
- package/esm2020/lib/components/closed-to-maintenance/index.mjs +0 -3
- package/esm2020/lib/components/index.mjs +0 -5
- package/esm2020/lib/components/progress-bar/index.mjs +0 -4
- package/esm2020/lib/components/progress-bar/progress-bar.component.mjs +0 -23
- package/esm2020/lib/components/progress-bar/progress-bar.module.mjs +0 -18
- package/esm2020/lib/components/progress-bar/progress-bar.service.mjs +0 -50
- package/esm2020/lib/components/version-changed/index.mjs +0 -3
- package/esm2020/lib/components/version-changed/version-changed.component.mjs +0 -24
- package/esm2020/lib/components/version-changed/version-changed.module.mjs +0 -39
- package/esm2020/lib/core/decorators/index.mjs +0 -5
- package/esm2020/lib/core/decorators/monkeyecx-charts-decorators.mjs +0 -40
- package/esm2020/lib/core/decorators/monkeyecx-decorators.mjs +0 -111
- package/esm2020/lib/core/decorators/monkeyecx-download-decorators.mjs +0 -26
- package/esm2020/lib/core/decorators/monkeyecx-upload-decorators.mjs +0 -26
- package/esm2020/lib/core/directives/index.mjs +0 -13
- package/esm2020/lib/core/directives/monkeyecx-directives-module.mjs +0 -73
- package/esm2020/lib/core/directives/monkeyecx-drag-drop.mjs +0 -57
- package/esm2020/lib/core/directives/monkeyecx-feature-by-program-directive.mjs +0 -50
- package/esm2020/lib/core/directives/monkeyecx-feature-directive.mjs +0 -68
- package/esm2020/lib/core/directives/monkeyecx-format-currency.mjs +0 -44
- package/esm2020/lib/core/directives/monkeyecx-format-upper.mjs +0 -67
- package/esm2020/lib/core/directives/monkeyecx-only-alpha-numeric-directive.mjs +0 -28
- package/esm2020/lib/core/directives/monkeyecx-only-number-directive.mjs +0 -28
- package/esm2020/lib/core/directives/monkeyecx-popover-options.directive.mjs +0 -39
- package/esm2020/lib/core/directives/monkeyecx-popover.directive.mjs +0 -212
- package/esm2020/lib/core/directives/monkeyecx-security-directive.mjs +0 -69
- package/esm2020/lib/core/directives/monkeyecx-tooltip-directive.mjs +0 -123
- package/esm2020/lib/core/index.mjs +0 -10
- package/esm2020/lib/core/interceptors/index.mjs +0 -6
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-error.interceptor.mjs +0 -39
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-header.interceptor.mjs +0 -60
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-interceptor.module.mjs +0 -47
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.mjs +0 -43
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.mjs +0 -37
- package/esm2020/lib/core/interfaces/index.mjs +0 -30
- package/esm2020/lib/core/interfaces/monkeyecx-auth-credentials.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-company-pendencies.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-company.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-config-boostrap.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-config.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-country-security.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-error-response.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-filter.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-handled-error-response.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-header-credentials.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-intercom-options.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-me-credentials.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-navigation.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-program.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-releases.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-request-in-progress.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-request-paged.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-response-links.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-response-paged.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-saved-state.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-scroll-options.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-service-credentials.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-support-options.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-token-credentials.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-translate-options.mjs +0 -2
- package/esm2020/lib/core/interfaces/request-download/index.mjs +0 -4
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-download.mjs +0 -2
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-downloaded.mjs +0 -2
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-item-download.mjs +0 -2
- package/esm2020/lib/core/interfaces/request-queue/index.mjs +0 -4
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.mjs +0 -2
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.mjs +0 -2
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-queue.mjs +0 -2
- package/esm2020/lib/core/interfaces/request-upload/index.mjs +0 -3
- package/esm2020/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.mjs +0 -2
- package/esm2020/lib/core/interfaces/request-upload/monkeyecx-request-upload.mjs +0 -2
- package/esm2020/lib/core/interfaces/schedules/index.mjs +0 -2
- package/esm2020/lib/core/interfaces/schedules/monkeyecx-request-schedule.mjs +0 -2
- package/esm2020/lib/core/model/index.mjs +0 -2
- package/esm2020/lib/core/model/monkeyecx-model.mjs +0 -25
- package/esm2020/lib/core/pipes/index.mjs +0 -20
- package/esm2020/lib/core/pipes/monkeyecx-display-first-name.mjs +0 -19
- package/esm2020/lib/core/pipes/monkeyecx-display-initials.mjs +0 -21
- package/esm2020/lib/core/pipes/monkeyecx-format-address.mjs +0 -20
- package/esm2020/lib/core/pipes/monkeyecx-format-beautify-json.mjs +0 -38
- package/esm2020/lib/core/pipes/monkeyecx-format-currency.mjs +0 -27
- package/esm2020/lib/core/pipes/monkeyecx-format-date-group.mjs +0 -45
- package/esm2020/lib/core/pipes/monkeyecx-format-date-timelapse.mjs +0 -32
- package/esm2020/lib/core/pipes/monkeyecx-format-date-unix-timelapse.mjs +0 -36
- package/esm2020/lib/core/pipes/monkeyecx-format-document.mjs +0 -19
- package/esm2020/lib/core/pipes/monkeyecx-format-number.mjs +0 -20
- package/esm2020/lib/core/pipes/monkeyecx-format-phone.mjs +0 -42
- package/esm2020/lib/core/pipes/monkeyecx-format-size.mjs +0 -20
- package/esm2020/lib/core/pipes/monkeyecx-format-tax.mjs +0 -23
- package/esm2020/lib/core/pipes/monkeyecx-format-type-document.mjs +0 -19
- package/esm2020/lib/core/pipes/monkeyecx-format-value.mjs +0 -19
- package/esm2020/lib/core/pipes/monkeyecx-format-zipcode.mjs +0 -19
- package/esm2020/lib/core/pipes/monkeyecx-pipes.module.mjs +0 -107
- package/esm2020/lib/core/pipes/monkeyecx-text-truncate.mjs +0 -23
- package/esm2020/lib/core/pipes/monkeyecx-truncate-qtd.mjs +0 -16
- package/esm2020/lib/core/services/auth/index.mjs +0 -5
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-company.service.mjs +0 -28
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-login.service.mjs +0 -27
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard.service.mjs +0 -26
- package/esm2020/lib/core/services/auth/monkeyecx-authentication.service.mjs +0 -69
- package/esm2020/lib/core/services/commons/index.mjs +0 -2
- package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +0 -405
- package/esm2020/lib/core/services/config/monkeyecx-alerts-config.service.mjs +0 -40
- package/esm2020/lib/core/services/config/monkeyecx-config.module.mjs +0 -28
- package/esm2020/lib/core/services/config/monkeyecx-config.service.mjs +0 -111
- package/esm2020/lib/core/services/config/monkeyecx-error-config.service.mjs +0 -85
- package/esm2020/lib/core/services/config/monkeyecx-feature-toggle.service.mjs +0 -67
- package/esm2020/lib/core/services/config/monkeyecx-ga-config.service.mjs +0 -57
- package/esm2020/lib/core/services/config/monkeyecx-i18n-config.service.mjs +0 -92
- package/esm2020/lib/core/services/config/monkeyecx-logs-config.service.mjs +0 -34
- package/esm2020/lib/core/services/config/monkeyecx-maintenance-config.service.mjs +0 -37
- package/esm2020/lib/core/services/config/monkeyecx-security-console-config.service.mjs +0 -42
- package/esm2020/lib/core/services/config/monkeyecx-service-worker-config.service.mjs +0 -53
- package/esm2020/lib/core/services/error/index.mjs +0 -5
- package/esm2020/lib/core/services/error/monkeyecx-error-handling.module.mjs +0 -27
- package/esm2020/lib/core/services/error/monkeyecx-error-handling.service.mjs +0 -37
- package/esm2020/lib/core/services/error/monkeyecx-http-error-handling.service.mjs +0 -135
- package/esm2020/lib/core/services/error/monkeyecx-others-errors-handling.service.mjs +0 -29
- package/esm2020/lib/core/services/index.mjs +0 -23
- package/esm2020/lib/core/services/logged/index.mjs +0 -2
- package/esm2020/lib/core/services/logged/monkeyecx-logged-handling.service.mjs +0 -40
- package/esm2020/lib/core/services/monkeyecx-handling.service.mjs +0 -50
- package/esm2020/lib/core/services/monkeyecx-service.service.mjs +0 -104
- package/esm2020/lib/core/services/pagination/index.mjs +0 -2
- package/esm2020/lib/core/services/pagination/monkeyecx-pagination.service.mjs +0 -29
- package/esm2020/lib/core/services/request-download/index.mjs +0 -3
- package/esm2020/lib/core/services/request-download/monkeyecx-request-download-handling.service.mjs +0 -93
- package/esm2020/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.mjs +0 -61
- package/esm2020/lib/core/services/request-paged/index.mjs +0 -2
- package/esm2020/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.mjs +0 -42
- package/esm2020/lib/core/services/request-queue/index.mjs +0 -3
- package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.mjs +0 -114
- package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.mjs +0 -119
- package/esm2020/lib/core/services/routes/index.mjs +0 -2
- package/esm2020/lib/core/services/routes/monkeyecx-dicovery-params.service.mjs +0 -54
- package/esm2020/lib/core/services/schedules/index.mjs +0 -2
- package/esm2020/lib/core/services/schedules/monkeyecx-request-schedule.service.mjs +0 -188
- package/esm2020/lib/core/services/storage/index.mjs +0 -3
- package/esm2020/lib/core/services/storage/monkeyecx-cookie-storage.service.mjs +0 -32
- package/esm2020/lib/core/services/storage/monkeyecx-token-storage.service.mjs +0 -127
- package/esm2020/lib/core/specification-search/index.mjs +0 -2
- package/esm2020/lib/core/specification-search/monkeyecx-specification-search.mjs +0 -108
- package/esm2020/lib/core/utils/decorators-utils.mjs +0 -40
- package/esm2020/lib/core/utils/index.mjs +0 -8
- package/esm2020/lib/core/utils/statics.mjs +0 -38
- package/esm2020/lib/core/utils/utils.mjs +0 -221
- package/esm2020/lib/core/utils/validate-utils.mjs +0 -206
- package/esm2020/lib/core/utils/validators.mjs +0 -208
- package/esm2020/lib/monkey-front-core.module.mjs +0 -64
- package/esm2020/monkey-front-core.mjs +0 -5
- package/esm2020/public-api.mjs +0 -7
- package/fesm2015/monkey-front-core.mjs +0 -5123
- package/fesm2015/monkey-front-core.mjs.map +0 -1
- package/fesm2020/monkey-front-core.mjs +0 -5182
- package/fesm2020/monkey-front-core.mjs.map +0 -1
- package/lib/components/alerts/alerts.component.d.ts +0 -16
- package/lib/components/alerts/alerts.module.d.ts +0 -10
- package/lib/components/closed-to-maintenance/closed-to-maintenance.component.d.ts +0 -13
- package/lib/components/closed-to-maintenance/closed-to-maintenance.module.d.ts +0 -11
- package/lib/components/progress-bar/progress-bar.component.d.ts +0 -11
- package/lib/components/progress-bar/progress-bar.module.d.ts +0 -8
- package/lib/components/progress-bar/progress-bar.service.d.ts +0 -14
- package/lib/components/version-changed/version-changed.component.d.ts +0 -9
- package/lib/components/version-changed/version-changed.module.d.ts +0 -10
- package/lib/core/decorators/monkeyecx-charts-decorators.d.ts +0 -1
- package/lib/core/decorators/monkeyecx-decorators.d.ts +0 -7
- package/lib/core/decorators/monkeyecx-download-decorators.d.ts +0 -2
- package/lib/core/decorators/monkeyecx-upload-decorators.d.ts +0 -2
- package/lib/core/directives/monkeyecx-directives-module.d.ts +0 -19
- package/lib/core/directives/monkeyecx-drag-drop.d.ts +0 -12
- package/lib/core/directives/monkeyecx-feature-by-program-directive.d.ts +0 -15
- package/lib/core/directives/monkeyecx-feature-directive.d.ts +0 -17
- package/lib/core/directives/monkeyecx-format-currency.d.ts +0 -16
- package/lib/core/directives/monkeyecx-format-upper.d.ts +0 -18
- package/lib/core/directives/monkeyecx-only-alpha-numeric-directive.d.ts +0 -9
- package/lib/core/directives/monkeyecx-only-number-directive.d.ts +0 -9
- package/lib/core/directives/monkeyecx-popover-options.directive.d.ts +0 -19
- package/lib/core/directives/monkeyecx-popover.directive.d.ts +0 -43
- package/lib/core/directives/monkeyecx-security-directive.d.ts +0 -17
- package/lib/core/directives/monkeyecx-tooltip-directive.d.ts +0 -23
- package/lib/core/interceptors/monkeyecx-http-config-error.interceptor.d.ts +0 -17
- package/lib/core/interceptors/monkeyecx-http-config-header.interceptor.d.ts +0 -16
- package/lib/core/interceptors/monkeyecx-http-config-interceptor.module.d.ts +0 -9
- package/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.d.ts +0 -12
- package/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.d.ts +0 -14
- package/lib/core/interfaces/monkeyecx-auth-credentials.d.ts +0 -15
- package/lib/core/interfaces/monkeyecx-company.d.ts +0 -10
- package/lib/core/interfaces/monkeyecx-config-boostrap.d.ts +0 -14
- package/lib/core/interfaces/monkeyecx-config.d.ts +0 -125
- package/lib/core/interfaces/monkeyecx-country-security.d.ts +0 -4
- package/lib/core/interfaces/monkeyecx-error-response.d.ts +0 -5
- package/lib/core/interfaces/monkeyecx-filter.d.ts +0 -24
- package/lib/core/interfaces/monkeyecx-handled-error-response.d.ts +0 -10
- package/lib/core/interfaces/monkeyecx-header-credentials.d.ts +0 -4
- package/lib/core/interfaces/monkeyecx-me-credentials.d.ts +0 -22
- package/lib/core/interfaces/monkeyecx-navigation.d.ts +0 -27
- package/lib/core/interfaces/monkeyecx-program.d.ts +0 -10
- package/lib/core/interfaces/monkeyecx-releases.d.ts +0 -9
- package/lib/core/interfaces/monkeyecx-request-paged.d.ts +0 -23
- package/lib/core/interfaces/monkeyecx-response-links.d.ts +0 -11
- package/lib/core/interfaces/monkeyecx-response-paged.d.ts +0 -6
- package/lib/core/interfaces/monkeyecx-saved-state.d.ts +0 -5
- package/lib/core/interfaces/monkeyecx-token-credentials.d.ts +0 -20
- package/lib/core/interfaces/monkeyecx-translate-options.d.ts +0 -4
- package/lib/core/interfaces/request-download/monkeyecx-request-download.d.ts +0 -10
- package/lib/core/interfaces/request-download/monkeyecx-request-downloaded.d.ts +0 -7
- package/lib/core/interfaces/request-download/monkeyecx-request-item-download.d.ts +0 -7
- package/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.d.ts +0 -7
- package/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.d.ts +0 -6
- package/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.d.ts +0 -5
- package/lib/core/interfaces/request-upload/monkeyecx-request-upload.d.ts +0 -10
- package/lib/core/interfaces/schedules/monkeyecx-request-schedule.d.ts +0 -13
- package/lib/core/model/monkeyecx-model.d.ts +0 -13
- package/lib/core/pipes/monkeyecx-display-first-name.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-display-initials.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-address.d.ts +0 -14
- package/lib/core/pipes/monkeyecx-format-beautify-json.d.ts +0 -8
- package/lib/core/pipes/monkeyecx-format-currency.d.ts +0 -11
- package/lib/core/pipes/monkeyecx-format-date-group.d.ts +0 -11
- package/lib/core/pipes/monkeyecx-format-date-timelapse.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-date-unix-timelapse.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-document.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-number.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-phone.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-size.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-tax.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-type-document.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-value.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-zipcode.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-pipes.module.d.ts +0 -24
- package/lib/core/pipes/monkeyecx-text-truncate.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-truncate-qtd.d.ts +0 -7
- package/lib/core/services/auth/monkeyecx-auth-guard-company.service.d.ts +0 -11
- package/lib/core/services/auth/monkeyecx-auth-guard-login.service.d.ts +0 -11
- package/lib/core/services/auth/monkeyecx-auth-guard.service.d.ts +0 -11
- package/lib/core/services/auth/monkeyecx-authentication.service.d.ts +0 -30
- package/lib/core/services/commons/monkeyecx-commons.service.d.ts +0 -124
- package/lib/core/services/config/monkeyecx-alerts-config.service.d.ts +0 -11
- package/lib/core/services/config/monkeyecx-config.module.d.ts +0 -9
- package/lib/core/services/config/monkeyecx-config.service.d.ts +0 -36
- package/lib/core/services/config/monkeyecx-error-config.service.d.ts +0 -8
- package/lib/core/services/config/monkeyecx-feature-toggle.service.d.ts +0 -16
- package/lib/core/services/config/monkeyecx-ga-config.service.d.ts +0 -10
- package/lib/core/services/config/monkeyecx-i18n-config.service.d.ts +0 -16
- package/lib/core/services/config/monkeyecx-logs-config.service.d.ts +0 -7
- package/lib/core/services/config/monkeyecx-maintenance-config.service.d.ts +0 -13
- package/lib/core/services/config/monkeyecx-security-console-config.service.d.ts +0 -11
- package/lib/core/services/config/monkeyecx-service-worker-config.service.d.ts +0 -16
- package/lib/core/services/error/monkeyecx-error-handling.module.d.ts +0 -9
- package/lib/core/services/error/monkeyecx-error-handling.service.d.ts +0 -9
- package/lib/core/services/error/monkeyecx-http-error-handling.service.d.ts +0 -26
- package/lib/core/services/error/monkeyecx-others-errors-handling.service.d.ts +0 -9
- package/lib/core/services/logged/monkeyecx-logged-handling.service.d.ts +0 -14
- package/lib/core/services/monkeyecx-handling.service.d.ts +0 -22
- package/lib/core/services/monkeyecx-service.service.d.ts +0 -18
- package/lib/core/services/pagination/monkeyecx-pagination.service.d.ts +0 -9
- package/lib/core/services/request-download/monkeyecx-request-download-handling.service.d.ts +0 -18
- package/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.d.ts +0 -16
- package/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.d.ts +0 -11
- package/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.d.ts +0 -21
- package/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.d.ts +0 -23
- package/lib/core/services/routes/monkeyecx-dicovery-params.service.d.ts +0 -13
- package/lib/core/services/schedules/monkeyecx-request-schedule.service.d.ts +0 -47
- package/lib/core/services/storage/monkeyecx-cookie-storage.service.d.ts +0 -11
- package/lib/core/services/storage/monkeyecx-token-storage.service.d.ts +0 -29
- package/lib/core/specification-search/monkeyecx-specification-search.d.ts +0 -20
- package/lib/core/utils/decorators-utils.d.ts +0 -5
- package/lib/core/utils/statics.d.ts +0 -28
- package/lib/core/utils/utils.d.ts +0 -22
- package/lib/core/utils/validate-utils.d.ts +0 -66
- package/lib/core/utils/validators.d.ts +0 -29
- package/lib/monkey-front-core.module.d.ts +0 -17
- package/monkey-front-core-0.0.237.tgz +0 -0
- 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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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,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
|