monkey-front-core 0.0.406 → 0.0.408
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/README.md +24 -24
- package/esm2020/lib/components/alerts/alerts.component.mjs +45 -45
- package/esm2020/lib/components/alerts/alerts.module.mjs +21 -21
- package/esm2020/lib/components/alerts/index.mjs +3 -3
- package/esm2020/lib/components/closed-to-maintenance/closed-to-maintenance.component.mjs +29 -29
- package/esm2020/lib/components/closed-to-maintenance/closed-to-maintenance.module.mjs +43 -43
- package/esm2020/lib/components/closed-to-maintenance/index.mjs +3 -3
- package/esm2020/lib/components/currency-config/currency-config.component.mjs +39 -39
- package/esm2020/lib/components/currency-config/currency-config.module.mjs +39 -39
- package/esm2020/lib/components/currency-config/index.mjs +2 -2
- package/esm2020/lib/components/index.mjs +5 -5
- package/esm2020/lib/components/progress-bar/index.mjs +4 -4
- package/esm2020/lib/components/progress-bar/progress-bar.component.mjs +23 -23
- package/esm2020/lib/components/progress-bar/progress-bar.module.mjs +18 -18
- package/esm2020/lib/components/progress-bar/progress-bar.service.mjs +50 -50
- package/esm2020/lib/components/version-changed/index.mjs +3 -3
- package/esm2020/lib/components/version-changed/version-changed.component.mjs +24 -24
- package/esm2020/lib/components/version-changed/version-changed.module.mjs +39 -39
- package/esm2020/lib/core/decorators/index.mjs +5 -5
- package/esm2020/lib/core/decorators/monkeyecx-charts-decorators.mjs +40 -40
- package/esm2020/lib/core/decorators/monkeyecx-decorators.mjs +111 -111
- package/esm2020/lib/core/decorators/monkeyecx-download-decorators.mjs +26 -26
- package/esm2020/lib/core/decorators/monkeyecx-upload-decorators.mjs +26 -26
- package/esm2020/lib/core/directives/index.mjs +13 -13
- package/esm2020/lib/core/directives/monkeyecx-directives-module.mjs +73 -73
- package/esm2020/lib/core/directives/monkeyecx-drag-drop.mjs +57 -57
- package/esm2020/lib/core/directives/monkeyecx-feature-by-program-directive.mjs +54 -54
- package/esm2020/lib/core/directives/monkeyecx-feature-directive.mjs +68 -68
- package/esm2020/lib/core/directives/monkeyecx-format-currency.mjs +44 -44
- package/esm2020/lib/core/directives/monkeyecx-format-upper.mjs +67 -67
- package/esm2020/lib/core/directives/monkeyecx-only-alpha-numeric-directive.mjs +28 -28
- package/esm2020/lib/core/directives/monkeyecx-only-number-directive.mjs +28 -28
- package/esm2020/lib/core/directives/monkeyecx-popover-options.directive.mjs +39 -39
- package/esm2020/lib/core/directives/monkeyecx-popover.directive.mjs +212 -212
- package/esm2020/lib/core/directives/monkeyecx-security-directive.mjs +75 -75
- package/esm2020/lib/core/directives/monkeyecx-tooltip-directive.mjs +123 -123
- package/esm2020/lib/core/index.mjs +10 -10
- package/esm2020/lib/core/interceptors/index.mjs +6 -6
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-error.interceptor.mjs +49 -49
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-header.interceptor.mjs +59 -59
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-interceptor.module.mjs +47 -47
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.mjs +43 -43
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.mjs +37 -37
- package/esm2020/lib/core/interfaces/index.mjs +30 -30
- package/esm2020/lib/core/interfaces/monkeyecx-auth-credentials.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-company-pendencies.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-company.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-config-bootstrap.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-config.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-country-security.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-error-response.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-filter.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-handled-error-response.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-header-credentials.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-intercom-options.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-me-credentials.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-navigation.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-program.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-releases.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-request-in-progress.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-request-paged.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-response-links.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-response-paged.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-saved-state.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-scroll-options.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-service-credentials.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-storage.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-support-options.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-token-credentials.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-translate-options.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-download/index.mjs +4 -4
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-download.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-downloaded.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-item-download.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-queue/index.mjs +4 -4
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-queue.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-upload/index.mjs +3 -3
- package/esm2020/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-upload/monkeyecx-request-upload.mjs +2 -2
- package/esm2020/lib/core/interfaces/schedules/index.mjs +2 -2
- package/esm2020/lib/core/interfaces/schedules/monkeyecx-request-schedule.mjs +2 -2
- package/esm2020/lib/core/model/index.mjs +2 -2
- package/esm2020/lib/core/model/monkeyecx-model.mjs +25 -25
- package/esm2020/lib/core/pipes/index.mjs +21 -21
- package/esm2020/lib/core/pipes/monkeyecx-blob-secure.mjs +26 -26
- package/esm2020/lib/core/pipes/monkeyecx-display-first-name.mjs +19 -19
- package/esm2020/lib/core/pipes/monkeyecx-display-initials.mjs +21 -21
- package/esm2020/lib/core/pipes/monkeyecx-display-support-phone.mjs +33 -33
- package/esm2020/lib/core/pipes/monkeyecx-format-address.mjs +20 -20
- package/esm2020/lib/core/pipes/monkeyecx-format-beautify-json.mjs +38 -38
- package/esm2020/lib/core/pipes/monkeyecx-format-currency.mjs +27 -27
- package/esm2020/lib/core/pipes/monkeyecx-format-date-group.mjs +45 -45
- package/esm2020/lib/core/pipes/monkeyecx-format-date-timelapse.mjs +32 -32
- package/esm2020/lib/core/pipes/monkeyecx-format-date-unix-timelapse.mjs +36 -36
- package/esm2020/lib/core/pipes/monkeyecx-format-document.mjs +20 -19
- package/esm2020/lib/core/pipes/monkeyecx-format-number.mjs +20 -20
- package/esm2020/lib/core/pipes/monkeyecx-format-phone.mjs +42 -42
- package/esm2020/lib/core/pipes/monkeyecx-format-size.mjs +20 -20
- package/esm2020/lib/core/pipes/monkeyecx-format-tax.mjs +23 -23
- package/esm2020/lib/core/pipes/monkeyecx-format-type-document.mjs +19 -19
- package/esm2020/lib/core/pipes/monkeyecx-format-value.mjs +19 -19
- package/esm2020/lib/core/pipes/monkeyecx-format-zipcode.mjs +19 -19
- package/esm2020/lib/core/pipes/monkeyecx-pipes.module.mjs +117 -117
- package/esm2020/lib/core/pipes/monkeyecx-text-truncate.mjs +23 -23
- package/esm2020/lib/core/pipes/monkeyecx-truncate-qtd.mjs +16 -16
- package/esm2020/lib/core/services/alerts/index.mjs +2 -2
- package/esm2020/lib/core/services/alerts/monkeyecx-alerts.service.mjs +42 -42
- package/esm2020/lib/core/services/auth/index.mjs +5 -5
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-company.service.mjs +28 -28
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-login.service.mjs +27 -27
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-role.service.mjs +79 -79
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard.service.mjs +26 -26
- package/esm2020/lib/core/services/auth/monkeyecx-authentication.service.mjs +79 -79
- package/esm2020/lib/core/services/commons/index.mjs +2 -2
- package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +360 -360
- package/esm2020/lib/core/services/config/monkeyecx-alerts-config.service.mjs +42 -42
- package/esm2020/lib/core/services/config/monkeyecx-config.module.mjs +28 -28
- package/esm2020/lib/core/services/config/monkeyecx-config.service.mjs +110 -110
- package/esm2020/lib/core/services/config/monkeyecx-currency-config.service.mjs +84 -84
- package/esm2020/lib/core/services/config/monkeyecx-error-config.service.mjs +85 -85
- package/esm2020/lib/core/services/config/monkeyecx-feature-toggle.service.mjs +76 -76
- package/esm2020/lib/core/services/config/monkeyecx-gtm-config.service.mjs +51 -51
- package/esm2020/lib/core/services/config/monkeyecx-i18n-config.service.mjs +92 -92
- package/esm2020/lib/core/services/config/monkeyecx-logs-config.service.mjs +34 -34
- package/esm2020/lib/core/services/config/monkeyecx-maintenance-config.service.mjs +37 -37
- package/esm2020/lib/core/services/config/monkeyecx-security-console-config.service.mjs +42 -42
- package/esm2020/lib/core/services/config/monkeyecx-service-worker-config.service.mjs +53 -53
- package/esm2020/lib/core/services/error/index.mjs +5 -5
- package/esm2020/lib/core/services/error/monkeyecx-error-handling.module.mjs +27 -27
- package/esm2020/lib/core/services/error/monkeyecx-error-handling.service.mjs +37 -37
- package/esm2020/lib/core/services/error/monkeyecx-http-error-handling.service.mjs +138 -138
- package/esm2020/lib/core/services/error/monkeyecx-others-errors-handling.service.mjs +29 -29
- package/esm2020/lib/core/services/index.mjs +24 -24
- package/esm2020/lib/core/services/logged/index.mjs +2 -2
- package/esm2020/lib/core/services/logged/monkeyecx-logged-handling.service.mjs +40 -40
- package/esm2020/lib/core/services/monkeyecx-handling.service.mjs +50 -50
- package/esm2020/lib/core/services/monkeyecx-service.service.mjs +104 -104
- package/esm2020/lib/core/services/pagination/index.mjs +2 -2
- package/esm2020/lib/core/services/pagination/monkeyecx-pagination.service.mjs +29 -29
- package/esm2020/lib/core/services/request-download/index.mjs +3 -3
- package/esm2020/lib/core/services/request-download/monkeyecx-request-download-handling.service.mjs +93 -93
- package/esm2020/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.mjs +61 -61
- package/esm2020/lib/core/services/request-paged/index.mjs +2 -2
- package/esm2020/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.mjs +42 -42
- package/esm2020/lib/core/services/request-queue/index.mjs +3 -3
- package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.mjs +114 -114
- package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.mjs +119 -119
- package/esm2020/lib/core/services/routes/index.mjs +2 -2
- package/esm2020/lib/core/services/routes/monkeyecx-dicovery-params.service.mjs +54 -54
- package/esm2020/lib/core/services/schedules/index.mjs +2 -2
- package/esm2020/lib/core/services/schedules/monkeyecx-request-schedule.service.mjs +188 -188
- package/esm2020/lib/core/services/storage/index.mjs +3 -3
- package/esm2020/lib/core/services/storage/monkeyecx-cookie-storage.service.mjs +32 -32
- package/esm2020/lib/core/services/storage/monkeyecx-token-storage.service.mjs +236 -236
- package/esm2020/lib/core/specification-search/index.mjs +2 -2
- package/esm2020/lib/core/specification-search/monkeyecx-specification-search.mjs +108 -108
- package/esm2020/lib/core/utils/decorators-utils.mjs +40 -40
- package/esm2020/lib/core/utils/index.mjs +8 -8
- package/esm2020/lib/core/utils/statics.mjs +44 -44
- package/esm2020/lib/core/utils/utils.mjs +250 -250
- package/esm2020/lib/core/utils/validate-utils.mjs +204 -204
- package/esm2020/lib/core/utils/validators.mjs +225 -225
- package/esm2020/lib/monkey-front-core.module.mjs +71 -71
- package/esm2020/lib/store/actions/index.mjs +1 -1
- package/esm2020/lib/store/actions/monkeyecx-storage.actions.mjs +7 -7
- package/esm2020/lib/store/index.mjs +3 -3
- package/esm2020/lib/store/reducers/index.mjs +2 -2
- package/esm2020/lib/store/reducers/monkeyecx-seeder.reducer.mjs +52 -52
- package/esm2020/lib/store/reducers/monkeyecx-storage.reducer.mjs +39 -39
- package/esm2020/lib/store/selectors/index.mjs +1 -1
- package/esm2020/lib/store/selectors/monkeyecx-storage.selector.mjs +16 -16
- package/esm2020/monkey-front-core.mjs +4 -4
- package/esm2020/public-api.mjs +7 -7
- package/fesm2015/monkey-front-core.mjs +5425 -5424
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +5498 -5497
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/components/alerts/alerts.component.d.ts +22 -22
- package/lib/components/alerts/alerts.module.d.ts +10 -10
- package/lib/components/alerts/index.d.ts +2 -2
- package/lib/components/closed-to-maintenance/closed-to-maintenance.component.d.ts +13 -13
- package/lib/components/closed-to-maintenance/closed-to-maintenance.module.d.ts +11 -11
- package/lib/components/closed-to-maintenance/index.d.ts +2 -2
- package/lib/components/currency-config/currency-config.component.d.ts +17 -17
- package/lib/components/currency-config/currency-config.module.d.ts +10 -10
- package/lib/components/currency-config/index.d.ts +2 -2
- package/lib/components/index.d.ts +5 -5
- package/lib/components/progress-bar/index.d.ts +3 -3
- package/lib/components/progress-bar/progress-bar.component.d.ts +11 -11
- package/lib/components/progress-bar/progress-bar.module.d.ts +8 -8
- package/lib/components/progress-bar/progress-bar.service.d.ts +14 -14
- package/lib/components/version-changed/index.d.ts +2 -2
- package/lib/components/version-changed/version-changed.component.d.ts +9 -9
- package/lib/components/version-changed/version-changed.module.d.ts +10 -10
- package/lib/core/decorators/index.d.ts +4 -4
- package/lib/core/decorators/monkeyecx-charts-decorators.d.ts +1 -1
- package/lib/core/decorators/monkeyecx-decorators.d.ts +7 -7
- package/lib/core/decorators/monkeyecx-download-decorators.d.ts +2 -2
- package/lib/core/decorators/monkeyecx-upload-decorators.d.ts +2 -2
- package/lib/core/directives/index.d.ts +12 -12
- package/lib/core/directives/monkeyecx-directives-module.d.ts +19 -19
- package/lib/core/directives/monkeyecx-drag-drop.d.ts +12 -12
- package/lib/core/directives/monkeyecx-feature-by-program-directive.d.ts +16 -16
- package/lib/core/directives/monkeyecx-feature-directive.d.ts +17 -17
- package/lib/core/directives/monkeyecx-format-currency.d.ts +16 -16
- package/lib/core/directives/monkeyecx-format-upper.d.ts +18 -18
- package/lib/core/directives/monkeyecx-only-alpha-numeric-directive.d.ts +9 -9
- package/lib/core/directives/monkeyecx-only-number-directive.d.ts +9 -9
- package/lib/core/directives/monkeyecx-popover-options.directive.d.ts +19 -19
- package/lib/core/directives/monkeyecx-popover.directive.d.ts +43 -43
- package/lib/core/directives/monkeyecx-security-directive.d.ts +18 -18
- package/lib/core/directives/monkeyecx-tooltip-directive.d.ts +23 -23
- package/lib/core/index.d.ts +9 -9
- package/lib/core/interceptors/index.d.ts +5 -5
- package/lib/core/interceptors/monkeyecx-http-config-error.interceptor.d.ts +18 -18
- package/lib/core/interceptors/monkeyecx-http-config-header.interceptor.d.ts +16 -16
- package/lib/core/interceptors/monkeyecx-http-config-interceptor.module.d.ts +9 -9
- package/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.d.ts +12 -12
- package/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.d.ts +14 -14
- package/lib/core/interfaces/index.d.ts +30 -30
- package/lib/core/interfaces/monkeyecx-auth-credentials.d.ts +15 -15
- package/lib/core/interfaces/monkeyecx-company-pendencies.d.ts +14 -14
- package/lib/core/interfaces/monkeyecx-company.d.ts +10 -10
- package/lib/core/interfaces/monkeyecx-config-bootstrap.d.ts +14 -14
- package/lib/core/interfaces/monkeyecx-config.d.ts +132 -132
- package/lib/core/interfaces/monkeyecx-country-security.d.ts +4 -4
- package/lib/core/interfaces/monkeyecx-error-response.d.ts +5 -5
- package/lib/core/interfaces/monkeyecx-filter.d.ts +42 -42
- package/lib/core/interfaces/monkeyecx-handled-error-response.d.ts +10 -10
- package/lib/core/interfaces/monkeyecx-header-credentials.d.ts +4 -4
- package/lib/core/interfaces/monkeyecx-intercom-options.d.ts +4 -4
- package/lib/core/interfaces/monkeyecx-me-credentials.d.ts +22 -22
- package/lib/core/interfaces/monkeyecx-navigation.d.ts +27 -27
- package/lib/core/interfaces/monkeyecx-program.d.ts +10 -10
- package/lib/core/interfaces/monkeyecx-releases.d.ts +9 -9
- package/lib/core/interfaces/monkeyecx-request-in-progress.d.ts +3 -3
- package/lib/core/interfaces/monkeyecx-request-paged.d.ts +23 -23
- package/lib/core/interfaces/monkeyecx-response-links.d.ts +11 -11
- package/lib/core/interfaces/monkeyecx-response-paged.d.ts +6 -6
- package/lib/core/interfaces/monkeyecx-saved-state.d.ts +5 -5
- package/lib/core/interfaces/monkeyecx-scroll-options.d.ts +5 -5
- package/lib/core/interfaces/monkeyecx-service-credentials.d.ts +12 -12
- package/lib/core/interfaces/monkeyecx-storage.d.ts +38 -38
- package/lib/core/interfaces/monkeyecx-support-options.d.ts +4 -4
- package/lib/core/interfaces/monkeyecx-token-credentials.d.ts +20 -20
- package/lib/core/interfaces/monkeyecx-translate-options.d.ts +4 -4
- package/lib/core/interfaces/request-download/index.d.ts +3 -3
- package/lib/core/interfaces/request-download/monkeyecx-request-download.d.ts +10 -10
- package/lib/core/interfaces/request-download/monkeyecx-request-downloaded.d.ts +7 -7
- package/lib/core/interfaces/request-download/monkeyecx-request-item-download.d.ts +7 -7
- package/lib/core/interfaces/request-queue/index.d.ts +3 -3
- package/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.d.ts +7 -7
- package/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.d.ts +6 -6
- package/lib/core/interfaces/request-queue/monkeyecx-request-queue.d.ts +8 -8
- package/lib/core/interfaces/request-upload/index.d.ts +2 -2
- package/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.d.ts +5 -5
- package/lib/core/interfaces/request-upload/monkeyecx-request-upload.d.ts +10 -10
- package/lib/core/interfaces/schedules/index.d.ts +1 -1
- package/lib/core/interfaces/schedules/monkeyecx-request-schedule.d.ts +13 -13
- package/lib/core/model/index.d.ts +1 -1
- package/lib/core/model/monkeyecx-model.d.ts +13 -13
- package/lib/core/pipes/index.d.ts +21 -21
- package/lib/core/pipes/monkeyecx-blob-secure.d.ts +13 -13
- package/lib/core/pipes/monkeyecx-display-first-name.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-display-initials.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-display-support-phone.d.ts +18 -18
- package/lib/core/pipes/monkeyecx-format-address.d.ts +14 -14
- package/lib/core/pipes/monkeyecx-format-beautify-json.d.ts +8 -8
- package/lib/core/pipes/monkeyecx-format-currency.d.ts +11 -11
- package/lib/core/pipes/monkeyecx-format-date-group.d.ts +11 -11
- package/lib/core/pipes/monkeyecx-format-date-timelapse.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-date-unix-timelapse.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-document.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-number.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-phone.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-size.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-tax.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-type-document.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-value.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-zipcode.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-pipes.module.d.ts +26 -26
- package/lib/core/pipes/monkeyecx-text-truncate.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-truncate-qtd.d.ts +7 -7
- package/lib/core/services/alerts/index.d.ts +1 -1
- package/lib/core/services/alerts/monkeyecx-alerts.service.d.ts +21 -21
- package/lib/core/services/auth/index.d.ts +5 -5
- package/lib/core/services/auth/monkeyecx-auth-guard-company.service.d.ts +10 -10
- package/lib/core/services/auth/monkeyecx-auth-guard-login.service.d.ts +10 -10
- package/lib/core/services/auth/monkeyecx-auth-guard-role.service.d.ts +16 -16
- package/lib/core/services/auth/monkeyecx-auth-guard.service.d.ts +10 -10
- package/lib/core/services/auth/monkeyecx-authentication.service.d.ts +34 -34
- package/lib/core/services/commons/index.d.ts +1 -1
- package/lib/core/services/commons/monkeyecx-commons.service.d.ts +119 -119
- package/lib/core/services/config/monkeyecx-alerts-config.service.d.ts +11 -11
- package/lib/core/services/config/monkeyecx-config.module.d.ts +9 -9
- package/lib/core/services/config/monkeyecx-config.service.d.ts +36 -36
- package/lib/core/services/config/monkeyecx-currency-config.service.d.ts +15 -15
- package/lib/core/services/config/monkeyecx-error-config.service.d.ts +8 -8
- package/lib/core/services/config/monkeyecx-feature-toggle.service.d.ts +16 -16
- package/lib/core/services/config/monkeyecx-gtm-config.service.d.ts +9 -9
- package/lib/core/services/config/monkeyecx-i18n-config.service.d.ts +16 -16
- package/lib/core/services/config/monkeyecx-logs-config.service.d.ts +7 -7
- package/lib/core/services/config/monkeyecx-maintenance-config.service.d.ts +13 -13
- package/lib/core/services/config/monkeyecx-security-console-config.service.d.ts +11 -11
- package/lib/core/services/config/monkeyecx-service-worker-config.service.d.ts +16 -16
- package/lib/core/services/error/index.d.ts +4 -4
- package/lib/core/services/error/monkeyecx-error-handling.module.d.ts +9 -9
- package/lib/core/services/error/monkeyecx-error-handling.service.d.ts +9 -9
- package/lib/core/services/error/monkeyecx-http-error-handling.service.d.ts +26 -26
- package/lib/core/services/error/monkeyecx-others-errors-handling.service.d.ts +9 -9
- package/lib/core/services/index.d.ts +24 -24
- package/lib/core/services/logged/index.d.ts +1 -1
- package/lib/core/services/logged/monkeyecx-logged-handling.service.d.ts +14 -14
- package/lib/core/services/monkeyecx-handling.service.d.ts +22 -22
- package/lib/core/services/monkeyecx-service.service.d.ts +18 -18
- package/lib/core/services/pagination/index.d.ts +1 -1
- package/lib/core/services/pagination/monkeyecx-pagination.service.d.ts +9 -9
- package/lib/core/services/request-download/index.d.ts +2 -2
- package/lib/core/services/request-download/monkeyecx-request-download-handling.service.d.ts +18 -18
- package/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.d.ts +16 -16
- package/lib/core/services/request-paged/index.d.ts +1 -1
- package/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.d.ts +11 -11
- package/lib/core/services/request-queue/index.d.ts +2 -2
- package/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.d.ts +21 -21
- package/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.d.ts +23 -23
- package/lib/core/services/routes/index.d.ts +1 -1
- package/lib/core/services/routes/monkeyecx-dicovery-params.service.d.ts +13 -13
- package/lib/core/services/schedules/index.d.ts +1 -1
- package/lib/core/services/schedules/monkeyecx-request-schedule.service.d.ts +47 -47
- package/lib/core/services/storage/index.d.ts +2 -2
- package/lib/core/services/storage/monkeyecx-cookie-storage.service.d.ts +11 -11
- package/lib/core/services/storage/monkeyecx-token-storage.service.d.ts +30 -30
- package/lib/core/specification-search/index.d.ts +1 -1
- package/lib/core/specification-search/monkeyecx-specification-search.d.ts +20 -20
- package/lib/core/utils/decorators-utils.d.ts +5 -5
- package/lib/core/utils/index.d.ts +6 -6
- package/lib/core/utils/statics.d.ts +34 -34
- package/lib/core/utils/utils.d.ts +24 -24
- package/lib/core/utils/validate-utils.d.ts +66 -66
- package/lib/core/utils/validators.d.ts +32 -32
- package/lib/monkey-front-core.module.d.ts +19 -19
- package/lib/store/actions/index.d.ts +1 -1
- package/lib/store/actions/monkeyecx-storage.actions.d.ts +23 -23
- package/lib/store/index.d.ts +3 -3
- package/lib/store/reducers/index.d.ts +2 -2
- package/lib/store/reducers/monkeyecx-seeder.reducer.d.ts +2 -2
- package/lib/store/reducers/monkeyecx-storage.reducer.d.ts +13 -13
- package/lib/store/selectors/index.d.ts +1 -1
- package/lib/store/selectors/monkeyecx-storage.selector.d.ts +8 -8
- package/monkey-front-core-0.0.408.tgz +0 -0
- package/monkey-front-core.d.ts +5 -5
- package/package.json +3 -3
- package/public-api.d.ts +4 -4
- package/monkey-front-core-0.0.406.tgz +0 -0
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
/* eslint-disable no-console */
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class MonkeyEcxGTMConfigService {
|
|
5
|
-
constructor() {
|
|
6
|
-
// not to do
|
|
7
|
-
}
|
|
8
|
-
handleCode(key) {
|
|
9
|
-
try {
|
|
10
|
-
window.dataLayer = window.dataLayer || [];
|
|
11
|
-
window.dataLayer.push({
|
|
12
|
-
'gtm.start': new Date().getTime(),
|
|
13
|
-
event: 'gtm.js'
|
|
14
|
-
});
|
|
15
|
-
const head = document.querySelector('head');
|
|
16
|
-
const script = document.createElement('script');
|
|
17
|
-
script.async = true;
|
|
18
|
-
script.src = `https://www.googletagmanager.com/gtm.js?id=GTM-${key}`;
|
|
19
|
-
head?.appendChild(script);
|
|
20
|
-
const body = document.querySelector('body');
|
|
21
|
-
const noscript = document.createElement('noscript');
|
|
22
|
-
const iframe = document.createElement('iframe');
|
|
23
|
-
iframe.src = `https://www.googletagmanager.com/ns.html?id=GTM-${key}`;
|
|
24
|
-
iframe.height = '0';
|
|
25
|
-
iframe.width = '0';
|
|
26
|
-
iframe.style.display = 'none';
|
|
27
|
-
iframe.style.visibility = 'hidden';
|
|
28
|
-
noscript.appendChild(iframe);
|
|
29
|
-
body?.appendChild(noscript);
|
|
30
|
-
}
|
|
31
|
-
catch (e) {
|
|
32
|
-
console.error('GTM Configuration Error!');
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
apply(params, environment) {
|
|
36
|
-
const { gtm } = params;
|
|
37
|
-
const { enabled, key } = gtm || { enabled: false, key: '' };
|
|
38
|
-
if (enabled && environment.environment !== 'dev') {
|
|
39
|
-
this.handleCode(key);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
MonkeyEcxGTMConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
44
|
-
MonkeyEcxGTMConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
46
|
-
type: Injectable,
|
|
47
|
-
args: [{
|
|
48
|
-
providedIn: 'root'
|
|
49
|
-
}]
|
|
50
|
-
}], ctorParameters: function () { return []; } });
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/* eslint-disable no-console */
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class MonkeyEcxGTMConfigService {
|
|
5
|
+
constructor() {
|
|
6
|
+
// not to do
|
|
7
|
+
}
|
|
8
|
+
handleCode(key) {
|
|
9
|
+
try {
|
|
10
|
+
window.dataLayer = window.dataLayer || [];
|
|
11
|
+
window.dataLayer.push({
|
|
12
|
+
'gtm.start': new Date().getTime(),
|
|
13
|
+
event: 'gtm.js'
|
|
14
|
+
});
|
|
15
|
+
const head = document.querySelector('head');
|
|
16
|
+
const script = document.createElement('script');
|
|
17
|
+
script.async = true;
|
|
18
|
+
script.src = `https://www.googletagmanager.com/gtm.js?id=GTM-${key}`;
|
|
19
|
+
head?.appendChild(script);
|
|
20
|
+
const body = document.querySelector('body');
|
|
21
|
+
const noscript = document.createElement('noscript');
|
|
22
|
+
const iframe = document.createElement('iframe');
|
|
23
|
+
iframe.src = `https://www.googletagmanager.com/ns.html?id=GTM-${key}`;
|
|
24
|
+
iframe.height = '0';
|
|
25
|
+
iframe.width = '0';
|
|
26
|
+
iframe.style.display = 'none';
|
|
27
|
+
iframe.style.visibility = 'hidden';
|
|
28
|
+
noscript.appendChild(iframe);
|
|
29
|
+
body?.appendChild(noscript);
|
|
30
|
+
}
|
|
31
|
+
catch (e) {
|
|
32
|
+
console.error('GTM Configuration Error!');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
apply(params, environment) {
|
|
36
|
+
const { gtm } = params;
|
|
37
|
+
const { enabled, key } = gtm || { enabled: false, key: '' };
|
|
38
|
+
if (enabled && environment.environment !== 'dev') {
|
|
39
|
+
this.handleCode(key);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
MonkeyEcxGTMConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxGTMConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
44
|
+
MonkeyEcxGTMConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxGTMConfigService, providedIn: 'root' });
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxGTMConfigService, decorators: [{
|
|
46
|
+
type: Injectable,
|
|
47
|
+
args: [{
|
|
48
|
+
providedIn: 'root'
|
|
49
|
+
}]
|
|
50
|
+
}], ctorParameters: function () { return []; } });
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWd0bS1jb25maWcuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21vbmtleS1mcm9udC1jb3JlL3NyYy9saWIvY29yZS9zZXJ2aWNlcy9jb25maWcvbW9ua2V5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W1lbnQuY3JlYXRlRWxlbWVudCgnbm9zY3JpcHQnKTtcbiAgICAgIGNvbnN0IGlmcmFtZSA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2lmcmFtZScpO1xuICAgICAgaWZyYW1lLnNyYyA9IGBodHRwczovL3d3dy5nb29nbGV0YWdtYW5hZ2VyLmNvbS9ucy5odG1sP2lkPUdUTS0ke2tleX1gO1xuICAgICAgaWZyYW1lLmhlaWdodCA9ICcwJztcbiAgICAgIGlmcmFtZS53aWR0aCA9ICcwJztcbiAgICAgIGlmcmFtZS5zdHlsZS5kaXNwbGF5ID0gJ25vbmUnO1xuICAgICAgaWZyYW1lLnN0eWxlLnZpc2liaWxpdHkgPSAnaGlkZGVuJztcbiAgICAgIG5vc2NyaXB0LmFwcGVuZENoaWxkKGlmcmFtZSk7XG4gICAgICBib2R5Py5hcHBlbmRDaGlsZChub3NjcmlwdCk7XG4gICAgfSBjYXRjaCAoZSkge1xuICAgICAgY29uc29sZS5lcnJvcignR1RNIENvbmZpZ3VyYXRpb24gRXJyb3IhJyk7XG4gICAgfVxuICB9XG5cbiAgcHVibGljIGFwcGx5KHBhcmFtczogTW9ua2V5RWN4Q29uZmlnLCBlbnZpcm9ubWVudDogYW55KSB7XG4gICAgY29uc3QgeyBndG0gfSA9IHBhcmFtcztcbiAgICBjb25zdCB7IGVuYWJsZWQsIGtleSB9ID0gZ3RtIHx8IHsgZW5hYmxlZDogZmFsc2UsIGtleTogJycgfTtcbiAgICBpZiAoZW5hYmxlZCAmJiBlbnZpcm9ubWVudC5lbnZpcm9ubWVudCAhPT0gJ2RldicpIHtcbiAgICAgIHRoaXMuaGFuZGxlQ29kZShrZXkpO1xuICAgIH1cbiAgfVxufVxuIl19
|
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
/* eslint-disable no-console */
|
|
3
|
-
/* eslint-disable import/no-named-default */
|
|
4
|
-
import { Injectable } from '@angular/core';
|
|
5
|
-
import { throwError } from 'rxjs';
|
|
6
|
-
import { take } from 'rxjs/operators';
|
|
7
|
-
import { MonkeyEcxCoreService } from '../../decorators/monkeyecx-decorators';
|
|
8
|
-
import { MonkeyEcxCommonsService } from '../commons';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "../monkeyecx-service.service";
|
|
11
|
-
import * as i2 from "@ngx-translate/core";
|
|
12
|
-
import * as i3 from "../storage/monkeyecx-cookie-storage.service";
|
|
13
|
-
import * as i4 from "../config/monkeyecx-error-config.service";
|
|
14
|
-
export class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
|
|
15
|
-
constructor(monkeyecxService, translateService, monkeyecxCookieStorageService, monkeyecxErrorConfigService) {
|
|
16
|
-
super(monkeyecxService);
|
|
17
|
-
this.translateService = translateService;
|
|
18
|
-
this.monkeyecxCookieStorageService = monkeyecxCookieStorageService;
|
|
19
|
-
this.monkeyecxErrorConfigService = monkeyecxErrorConfigService;
|
|
20
|
-
this.translateService.addLangs(['pt-BR', 'en-US']);
|
|
21
|
-
this.translateService.setDefaultLang('pt-BR');
|
|
22
|
-
this.translateService.use('pt-BR');
|
|
23
|
-
}
|
|
24
|
-
async apply(params, environment, change = false) {
|
|
25
|
-
const { monkeyecxService, monkeyecxCookieStorageService, monkeyecxErrorConfigService } = this;
|
|
26
|
-
let { i18n } = params;
|
|
27
|
-
const currentExternali18n = params?.externali18n?.[`${i18n?.lang || 'pt-BR'}`];
|
|
28
|
-
const cookie = monkeyecxCookieStorageService.getCookie('monkey-app-locale');
|
|
29
|
-
if (cookie && !change) {
|
|
30
|
-
i18n = JSON.parse(atob(cookie));
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
monkeyecxCookieStorageService.setCookie('monkey-app-locale', btoa(JSON.stringify(i18n)), environment);
|
|
34
|
-
}
|
|
35
|
-
try {
|
|
36
|
-
const externali18nPaths = params?.i18n?.paths || [];
|
|
37
|
-
const services = externali18nPaths?.map((url) => {
|
|
38
|
-
return monkeyecxService?.get(`${url}/${i18n?.lang}.json`).pipe(take(1)).toPromise();
|
|
39
|
-
});
|
|
40
|
-
if (!services?.length)
|
|
41
|
-
return;
|
|
42
|
-
const externali18nData = await Promise.all(services);
|
|
43
|
-
externali18nData?.forEach((config) => {
|
|
44
|
-
const { lang } = config;
|
|
45
|
-
const { data } = config;
|
|
46
|
-
this.translateService.setTranslation('pt-BR', data, true);
|
|
47
|
-
this.translateService.setTranslation(lang, data, true);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
catch (err) {
|
|
51
|
-
// not to do
|
|
52
|
-
}
|
|
53
|
-
try {
|
|
54
|
-
const currenti18n = await monkeyecxService?.get(`${environment.localAssets}/i18n/${i18n?.lang}.json`).pipe(take(1)).toPromise();
|
|
55
|
-
const { lang } = currenti18n;
|
|
56
|
-
let { data } = currenti18n;
|
|
57
|
-
if (currentExternali18n) {
|
|
58
|
-
data = {
|
|
59
|
-
...data,
|
|
60
|
-
EXTERNAL: currentExternali18n
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
this.translateService.setTranslation('pt-BR', data, true);
|
|
64
|
-
this.translateService.setTranslation(lang, data, true);
|
|
65
|
-
this.translateService.use(lang);
|
|
66
|
-
}
|
|
67
|
-
catch (err) {
|
|
68
|
-
console.error(`i18n ${i18n?.lang} not found!`);
|
|
69
|
-
monkeyecxErrorConfigService.apply('i18n');
|
|
70
|
-
throwError(err);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
MonkeyEcxi18nConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
75
|
-
MonkeyEcxi18nConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
76
|
-
__decorate([
|
|
77
|
-
MonkeyEcxCoreService({
|
|
78
|
-
httpResponse: {
|
|
79
|
-
httpCodeIgnore: [404]
|
|
80
|
-
},
|
|
81
|
-
requestInProgress: {
|
|
82
|
-
showProgress: false
|
|
83
|
-
}
|
|
84
|
-
})
|
|
85
|
-
], MonkeyEcxi18nConfigService.prototype, "apply", null);
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
87
|
-
type: Injectable,
|
|
88
|
-
args: [{
|
|
89
|
-
providedIn: 'root'
|
|
90
|
-
}]
|
|
91
|
-
}], ctorParameters: function () { return [{ type: i1.MonkeyEcxService }, { type: i2.TranslateService }, { type: i3.MonkeyEcxCookieStorageService }, { type: i4.MonkeyEcxErrorConfigService }]; }, propDecorators: { apply: [] } });
|
|
92
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
/* eslint-disable no-console */
|
|
3
|
+
/* eslint-disable import/no-named-default */
|
|
4
|
+
import { Injectable } from '@angular/core';
|
|
5
|
+
import { throwError } from 'rxjs';
|
|
6
|
+
import { take } from 'rxjs/operators';
|
|
7
|
+
import { MonkeyEcxCoreService } from '../../decorators/monkeyecx-decorators';
|
|
8
|
+
import { MonkeyEcxCommonsService } from '../commons';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "../monkeyecx-service.service";
|
|
11
|
+
import * as i2 from "@ngx-translate/core";
|
|
12
|
+
import * as i3 from "../storage/monkeyecx-cookie-storage.service";
|
|
13
|
+
import * as i4 from "../config/monkeyecx-error-config.service";
|
|
14
|
+
export class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
|
|
15
|
+
constructor(monkeyecxService, translateService, monkeyecxCookieStorageService, monkeyecxErrorConfigService) {
|
|
16
|
+
super(monkeyecxService);
|
|
17
|
+
this.translateService = translateService;
|
|
18
|
+
this.monkeyecxCookieStorageService = monkeyecxCookieStorageService;
|
|
19
|
+
this.monkeyecxErrorConfigService = monkeyecxErrorConfigService;
|
|
20
|
+
this.translateService.addLangs(['pt-BR', 'en-US']);
|
|
21
|
+
this.translateService.setDefaultLang('pt-BR');
|
|
22
|
+
this.translateService.use('pt-BR');
|
|
23
|
+
}
|
|
24
|
+
async apply(params, environment, change = false) {
|
|
25
|
+
const { monkeyecxService, monkeyecxCookieStorageService, monkeyecxErrorConfigService } = this;
|
|
26
|
+
let { i18n } = params;
|
|
27
|
+
const currentExternali18n = params?.externali18n?.[`${i18n?.lang || 'pt-BR'}`];
|
|
28
|
+
const cookie = monkeyecxCookieStorageService.getCookie('monkey-app-locale');
|
|
29
|
+
if (cookie && !change) {
|
|
30
|
+
i18n = JSON.parse(atob(cookie));
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
monkeyecxCookieStorageService.setCookie('monkey-app-locale', btoa(JSON.stringify(i18n)), environment);
|
|
34
|
+
}
|
|
35
|
+
try {
|
|
36
|
+
const externali18nPaths = params?.i18n?.paths || [];
|
|
37
|
+
const services = externali18nPaths?.map((url) => {
|
|
38
|
+
return monkeyecxService?.get(`${url}/${i18n?.lang}.json`).pipe(take(1)).toPromise();
|
|
39
|
+
});
|
|
40
|
+
if (!services?.length)
|
|
41
|
+
return;
|
|
42
|
+
const externali18nData = await Promise.all(services);
|
|
43
|
+
externali18nData?.forEach((config) => {
|
|
44
|
+
const { lang } = config;
|
|
45
|
+
const { data } = config;
|
|
46
|
+
this.translateService.setTranslation('pt-BR', data, true);
|
|
47
|
+
this.translateService.setTranslation(lang, data, true);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
catch (err) {
|
|
51
|
+
// not to do
|
|
52
|
+
}
|
|
53
|
+
try {
|
|
54
|
+
const currenti18n = await monkeyecxService?.get(`${environment.localAssets}/i18n/${i18n?.lang}.json`).pipe(take(1)).toPromise();
|
|
55
|
+
const { lang } = currenti18n;
|
|
56
|
+
let { data } = currenti18n;
|
|
57
|
+
if (currentExternali18n) {
|
|
58
|
+
data = {
|
|
59
|
+
...data,
|
|
60
|
+
EXTERNAL: currentExternali18n
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
this.translateService.setTranslation('pt-BR', data, true);
|
|
64
|
+
this.translateService.setTranslation(lang, data, true);
|
|
65
|
+
this.translateService.use(lang);
|
|
66
|
+
}
|
|
67
|
+
catch (err) {
|
|
68
|
+
console.error(`i18n ${i18n?.lang} not found!`);
|
|
69
|
+
monkeyecxErrorConfigService.apply('i18n');
|
|
70
|
+
throwError(err);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
MonkeyEcxi18nConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxi18nConfigService, deps: [{ token: i1.MonkeyEcxService }, { token: i2.TranslateService }, { token: i3.MonkeyEcxCookieStorageService }, { token: i4.MonkeyEcxErrorConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
75
|
+
MonkeyEcxi18nConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxi18nConfigService, providedIn: 'root' });
|
|
76
|
+
__decorate([
|
|
77
|
+
MonkeyEcxCoreService({
|
|
78
|
+
httpResponse: {
|
|
79
|
+
httpCodeIgnore: [404]
|
|
80
|
+
},
|
|
81
|
+
requestInProgress: {
|
|
82
|
+
showProgress: false
|
|
83
|
+
}
|
|
84
|
+
})
|
|
85
|
+
], MonkeyEcxi18nConfigService.prototype, "apply", null);
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxi18nConfigService, decorators: [{
|
|
87
|
+
type: Injectable,
|
|
88
|
+
args: [{
|
|
89
|
+
providedIn: 'root'
|
|
90
|
+
}]
|
|
91
|
+
}], ctorParameters: function () { return [{ type: i1.MonkeyEcxService }, { type: i2.TranslateService }, { type: i3.MonkeyEcxCookieStorageService }, { type: i4.MonkeyEcxErrorConfigService }]; }, propDecorators: { apply: [] } });
|
|
92
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2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5lcnJvcihgaTE4biAke2kxOG4/Lmxhbmd9IG5vdCBmb3VuZCFgKTtcbiAgICAgIG1vbmtleWVjeEVycm9yQ29uZmlnU2VydmljZS5hcHBseSgnaTE4bicpO1xuICAgICAgdGhyb3dFcnJvcihlcnIpO1xuICAgIH1cbiAgfVxufVxuIl19
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { datadogRum } from '@datadog/browser-rum';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class MonkeyEcxLogsConfigService {
|
|
5
|
-
apply(params, configBootstrap, environment, identifyCode) {
|
|
6
|
-
const { program, logs } = params;
|
|
7
|
-
if (logs?.enabled && environment.environment !== 'dev') {
|
|
8
|
-
datadogRum.init({
|
|
9
|
-
applicationId: environment?.dataDogApplicationId,
|
|
10
|
-
clientToken: environment?.dataDogClientToken,
|
|
11
|
-
service: program?.token,
|
|
12
|
-
site: 'datadoghq.com',
|
|
13
|
-
sampleRate: 100,
|
|
14
|
-
replaySampleRate: 100,
|
|
15
|
-
env: `monkey-front-${identifyCode}-${environment.environment}`,
|
|
16
|
-
version: configBootstrap?.version,
|
|
17
|
-
trackInteractions: true,
|
|
18
|
-
trackSessionAcrossSubdomains: true,
|
|
19
|
-
useSecureSessionCookie: true,
|
|
20
|
-
useCrossSiteSessionCookie: true
|
|
21
|
-
});
|
|
22
|
-
datadogRum.startSessionReplayRecording();
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
MonkeyEcxLogsConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
27
|
-
MonkeyEcxLogsConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
29
|
-
type: Injectable,
|
|
30
|
-
args: [{
|
|
31
|
-
providedIn: 'root'
|
|
32
|
-
}]
|
|
33
|
-
}] });
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { datadogRum } from '@datadog/browser-rum';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class MonkeyEcxLogsConfigService {
|
|
5
|
+
apply(params, configBootstrap, environment, identifyCode) {
|
|
6
|
+
const { program, logs } = params;
|
|
7
|
+
if (logs?.enabled && environment.environment !== 'dev') {
|
|
8
|
+
datadogRum.init({
|
|
9
|
+
applicationId: environment?.dataDogApplicationId,
|
|
10
|
+
clientToken: environment?.dataDogClientToken,
|
|
11
|
+
service: program?.token,
|
|
12
|
+
site: 'datadoghq.com',
|
|
13
|
+
sampleRate: 100,
|
|
14
|
+
replaySampleRate: 100,
|
|
15
|
+
env: `monkey-front-${identifyCode}-${environment.environment}`,
|
|
16
|
+
version: configBootstrap?.version,
|
|
17
|
+
trackInteractions: true,
|
|
18
|
+
trackSessionAcrossSubdomains: true,
|
|
19
|
+
useSecureSessionCookie: true,
|
|
20
|
+
useCrossSiteSessionCookie: true
|
|
21
|
+
});
|
|
22
|
+
datadogRum.startSessionReplayRecording();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
MonkeyEcxLogsConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxLogsConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
27
|
+
MonkeyEcxLogsConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxLogsConfigService, providedIn: 'root' });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxLogsConfigService, decorators: [{
|
|
29
|
+
type: Injectable,
|
|
30
|
+
args: [{
|
|
31
|
+
providedIn: 'root'
|
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gJ2RldicpIHtcbiAgICAgIGRhdGFkb2dSdW0uaW5pdCh7XG4gICAgICAgIGFwcGxpY2F0aW9uSWQ6IGVudmlyb25tZW50Py5kYXRhRG9nQXBwbGljYXRpb25JZCxcbiAgICAgICAgY2xpZW50VG9rZW46IGVudmlyb25tZW50Py5kYXRhRG9nQ2xpZW50VG9rZW4sXG4gICAgICAgIHNlcnZpY2U6IHByb2dyYW0/LnRva2VuLFxuICAgICAgICBzaXRlOiAnZGF0YWRvZ2hxLmNvbScsXG4gICAgICAgIHNhbXBsZVJhdGU6IDEwMCxcbiAgICAgICAgcmVwbGF5U2FtcGxlUmF0ZTogMTAwLFxuICAgICAgICBlbnY6IGBtb25rZXktZnJvbnQtJHtpZGVudGlmeUNvZGV9LSR7ZW52aXJvbm1lbnQuZW52aXJvbm1lbnR9YCxcbiAgICAgICAgdmVyc2lvbjogY29uZmlnQm9vdHN0cmFwPy52ZXJzaW9uLFxuICAgICAgICB0cmFja0ludGVyYWN0aW9uczogdHJ1ZSxcbiAgICAgICAgdHJhY2tTZXNzaW9uQWNyb3NzU3ViZG9tYWluczogdHJ1ZSxcbiAgICAgICAgdXNlU2VjdXJlU2Vzc2lvbkNvb2tpZTogdHJ1ZSxcbiAgICAgICAgdXNlQ3Jvc3NTaXRlU2Vzc2lvbkNvb2tpZTogdHJ1ZVxuICAgICAgfSk7XG4gICAgICBkYXRhZG9nUnVtLnN0YXJ0U2Vzc2lvblJlcGxheVJlY29yZGluZygpO1xuICAgIH1cbiAgfVxufVxuIl19
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { ClosedToMaintenanceComponent } from '../../../components/closed-to-maintenance/closed-to-maintenance.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "monkey-style-guide";
|
|
5
|
-
import * as i2 from "@angular/router";
|
|
6
|
-
export class MonkeyEcxMaintenanceConfigService {
|
|
7
|
-
constructor(modalService, router) {
|
|
8
|
-
this.modalService = modalService;
|
|
9
|
-
this.router = router;
|
|
10
|
-
// not to do
|
|
11
|
-
}
|
|
12
|
-
handleValidation(config) {
|
|
13
|
-
if (config.maintenance.closed) {
|
|
14
|
-
localStorage.clear();
|
|
15
|
-
this.router.navigate(['']);
|
|
16
|
-
setTimeout(() => {
|
|
17
|
-
this.modalService.open(ClosedToMaintenanceComponent, {
|
|
18
|
-
color: 'theme',
|
|
19
|
-
size: 'md',
|
|
20
|
-
data: config
|
|
21
|
-
});
|
|
22
|
-
}, 200);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
apply(config) {
|
|
26
|
-
this.handleValidation(config);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
MonkeyEcxMaintenanceConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
30
|
-
MonkeyEcxMaintenanceConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
32
|
-
type: Injectable,
|
|
33
|
-
args: [{
|
|
34
|
-
providedIn: 'root'
|
|
35
|
-
}]
|
|
36
|
-
}], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalService }, { type: i2.Router }]; } });
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { ClosedToMaintenanceComponent } from '../../../components/closed-to-maintenance/closed-to-maintenance.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "monkey-style-guide";
|
|
5
|
+
import * as i2 from "@angular/router";
|
|
6
|
+
export class MonkeyEcxMaintenanceConfigService {
|
|
7
|
+
constructor(modalService, router) {
|
|
8
|
+
this.modalService = modalService;
|
|
9
|
+
this.router = router;
|
|
10
|
+
// not to do
|
|
11
|
+
}
|
|
12
|
+
handleValidation(config) {
|
|
13
|
+
if (config.maintenance.closed) {
|
|
14
|
+
localStorage.clear();
|
|
15
|
+
this.router.navigate(['']);
|
|
16
|
+
setTimeout(() => {
|
|
17
|
+
this.modalService.open(ClosedToMaintenanceComponent, {
|
|
18
|
+
color: 'theme',
|
|
19
|
+
size: 'md',
|
|
20
|
+
data: config
|
|
21
|
+
});
|
|
22
|
+
}, 200);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
apply(config) {
|
|
26
|
+
this.handleValidation(config);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
MonkeyEcxMaintenanceConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, deps: [{ token: i1.MonkeyStyleGuideModalService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
30
|
+
MonkeyEcxMaintenanceConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, providedIn: 'root' });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, decorators: [{
|
|
32
|
+
type: Injectable,
|
|
33
|
+
args: [{
|
|
34
|
+
providedIn: 'root'
|
|
35
|
+
}]
|
|
36
|
+
}], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalService }, { type: i2.Router }]; } });
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LW1haW50ZW5hbmNlLWNvbmZpZy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LWZyb250LWNvcmUvc3JjL2xpYi9jb3JlL3NlcnZpY2VzL2NvbmZpZy9tb25rZXllY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ICB0aGlzLm1vZGFsU2VydmljZS5vcGVuKENsb3NlZFRvTWFpbnRlbmFuY2VDb21wb25lbnQsIHtcbiAgICAgICAgICBjb2xvcjogJ3RoZW1lJyxcbiAgICAgICAgICBzaXplOiAnbWQnLFxuICAgICAgICAgIGRhdGE6IGNvbmZpZ1xuICAgICAgICB9KTtcbiAgICAgIH0sIDIwMCk7XG4gICAgfVxuICB9XG5cbiAgcHVibGljIGFwcGx5KGNvbmZpZzogTW9ua2V5RWN4Q29uZmlnQm9vdHN0cmFwKSB7XG4gICAgdGhpcy5oYW5kbGVWYWxpZGF0aW9uKGNvbmZpZyk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
/* eslint-disable no-console */
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { MonkeyEcxCommonsService } from '../commons';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@ngx-translate/core";
|
|
6
|
-
export class MonkeyEcxSecurityConsoleConfigService extends MonkeyEcxCommonsService {
|
|
7
|
-
constructor(translateService) {
|
|
8
|
-
super();
|
|
9
|
-
this.translateService = translateService;
|
|
10
|
-
this.geti18n(this.translateService, 'SERVICES.WARNING.CONSOLE');
|
|
11
|
-
}
|
|
12
|
-
handleValidation() {
|
|
13
|
-
this.__oni18nDataChanged$.subscribe(() => {
|
|
14
|
-
const { __i18n } = this;
|
|
15
|
-
const title = __i18n?.TITLE;
|
|
16
|
-
const message = __i18n?.MESSAGE;
|
|
17
|
-
if (title) {
|
|
18
|
-
console.log(`%c${title}`, 'background: #f2f061; color: #ff0000; font-size: x-large');
|
|
19
|
-
console.log(`%c${message}`, 'font-size: x-large');
|
|
20
|
-
console.log('%c __ __ _ ______ \n ' +
|
|
21
|
-
'| \\/ | ___ _ __ | | _____ _ _\\ \\ \\ \\ \n ' +
|
|
22
|
-
"| |\\/| |/ _ \\| '_ \\| |/ / _ \\ | | |\\ \\ \\ \\ \n " +
|
|
23
|
-
'| | | | (_) | | | | < __/ |_| |/ / / / \n ' +
|
|
24
|
-
'|_| |_|\\___/|_| |_|_|\\_\\___|\\__, /_/_/_/ \n ' +
|
|
25
|
-
' |___/ \n ' +
|
|
26
|
-
'Join us: https://monkeyecx.gupy.io', 'background: #1976d2; color: #fff');
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
apply() {
|
|
31
|
-
this.handleValidation();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
MonkeyEcxSecurityConsoleConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
35
|
-
MonkeyEcxSecurityConsoleConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
37
|
-
type: Injectable,
|
|
38
|
-
args: [{
|
|
39
|
-
providedIn: 'root'
|
|
40
|
-
}]
|
|
41
|
-
}], ctorParameters: function () { return [{ type: i1.TranslateService }]; } });
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/* eslint-disable no-console */
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { MonkeyEcxCommonsService } from '../commons';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@ngx-translate/core";
|
|
6
|
+
export class MonkeyEcxSecurityConsoleConfigService extends MonkeyEcxCommonsService {
|
|
7
|
+
constructor(translateService) {
|
|
8
|
+
super();
|
|
9
|
+
this.translateService = translateService;
|
|
10
|
+
this.geti18n(this.translateService, 'SERVICES.WARNING.CONSOLE');
|
|
11
|
+
}
|
|
12
|
+
handleValidation() {
|
|
13
|
+
this.__oni18nDataChanged$.subscribe(() => {
|
|
14
|
+
const { __i18n } = this;
|
|
15
|
+
const title = __i18n?.TITLE;
|
|
16
|
+
const message = __i18n?.MESSAGE;
|
|
17
|
+
if (title) {
|
|
18
|
+
console.log(`%c${title}`, 'background: #f2f061; color: #ff0000; font-size: x-large');
|
|
19
|
+
console.log(`%c${message}`, 'font-size: x-large');
|
|
20
|
+
console.log('%c __ __ _ ______ \n ' +
|
|
21
|
+
'| \\/ | ___ _ __ | | _____ _ _\\ \\ \\ \\ \n ' +
|
|
22
|
+
"| |\\/| |/ _ \\| '_ \\| |/ / _ \\ | | |\\ \\ \\ \\ \n " +
|
|
23
|
+
'| | | | (_) | | | | < __/ |_| |/ / / / \n ' +
|
|
24
|
+
'|_| |_|\\___/|_| |_|_|\\_\\___|\\__, /_/_/_/ \n ' +
|
|
25
|
+
' |___/ \n ' +
|
|
26
|
+
'Join us: https://monkeyecx.gupy.io', 'background: #1976d2; color: #fff');
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
apply() {
|
|
31
|
+
this.handleValidation();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
MonkeyEcxSecurityConsoleConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
35
|
+
MonkeyEcxSecurityConsoleConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, providedIn: 'root' });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, decorators: [{
|
|
37
|
+
type: Injectable,
|
|
38
|
+
args: [{
|
|
39
|
+
providedIn: 'root'
|
|
40
|
+
}]
|
|
41
|
+
}], ctorParameters: function () { return [{ type: i1.TranslateService }]; } });
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LXNl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