monkey-front-core 0.0.266 → 0.0.268
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/esm2020/lib/components/alerts/alerts.component.mjs +35 -35
- package/esm2020/lib/components/alerts/alerts.module.mjs +21 -21
- package/esm2020/lib/components/alerts/index.mjs +2 -2
- 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 +2 -2
- package/esm2020/lib/components/index.mjs +4 -4
- package/esm2020/lib/components/progress-bar/index.mjs +3 -3
- 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 +2 -2
- 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 +110 -110
- package/esm2020/lib/core/decorators/monkeyecx-download-decorators.mjs +25 -25
- package/esm2020/lib/core/decorators/monkeyecx-upload-decorators.mjs +25 -25
- package/esm2020/lib/core/directives/index.mjs +12 -12
- 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 +50 -50
- 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 +69 -69
- package/esm2020/lib/core/directives/monkeyecx-tooltip-directive.mjs +123 -123
- package/esm2020/lib/core/index.mjs +9 -9
- package/esm2020/lib/core/interceptors/index.mjs +5 -5
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-error.interceptor.mjs +39 -39
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-header.interceptor.mjs +60 -60
- 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 +29 -29
- package/esm2020/lib/core/interfaces/monkeyecx-auth-credentials.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-company-pendencies.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-company.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-config-boostrap.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-config.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-country-security.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-error-response.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-filter.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-handled-error-response.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-header-credentials.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-intercom-options.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-me-credentials.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-navigation.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-program.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-releases.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-request-in-progress.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-request-paged.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-response-links.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-response-paged.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-saved-state.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-scroll-options.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-service-credentials.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-support-options.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-token-credentials.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-translate-options.mjs +1 -1
- package/esm2020/lib/core/interfaces/request-download/index.mjs +3 -3
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-download.mjs +1 -1
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-downloaded.mjs +1 -1
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-item-download.mjs +1 -1
- package/esm2020/lib/core/interfaces/request-queue/index.mjs +3 -3
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.mjs +1 -1
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.mjs +1 -1
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-queue.mjs +1 -1
- package/esm2020/lib/core/interfaces/request-upload/index.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.mjs +1 -1
- package/esm2020/lib/core/interfaces/request-upload/monkeyecx-request-upload.mjs +1 -1
- package/esm2020/lib/core/interfaces/schedules/index.mjs +1 -1
- package/esm2020/lib/core/interfaces/schedules/monkeyecx-request-schedule.mjs +1 -1
- package/esm2020/lib/core/model/index.mjs +1 -1
- package/esm2020/lib/core/model/monkeyecx-model.mjs +25 -25
- package/esm2020/lib/core/pipes/index.mjs +20 -20
- 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-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 +19 -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 +112 -112
- 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 +1 -1
- package/esm2020/lib/core/services/alerts/monkeyecx-alerts.service.mjs +42 -42
- package/esm2020/lib/core/services/auth/index.mjs +4 -4
- 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.service.mjs +26 -26
- package/esm2020/lib/core/services/auth/monkeyecx-authentication.service.mjs +69 -69
- package/esm2020/lib/core/services/commons/index.mjs +1 -1
- package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +404 -404
- package/esm2020/lib/core/services/config/monkeyecx-alerts-config.service.mjs +40 -40
- package/esm2020/lib/core/services/config/monkeyecx-config.module.mjs +28 -28
- package/esm2020/lib/core/services/config/monkeyecx-config.service.mjs +111 -111
- package/esm2020/lib/core/services/config/monkeyecx-error-config.service.mjs +85 -85
- package/esm2020/lib/core/services/config/monkeyecx-feature-toggle.service.mjs +67 -67
- package/esm2020/lib/core/services/config/monkeyecx-ga-config.service.mjs +57 -57
- 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 +4 -4
- 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 +135 -135
- package/esm2020/lib/core/services/error/monkeyecx-others-errors-handling.service.mjs +29 -29
- package/esm2020/lib/core/services/index.mjs +23 -23
- package/esm2020/lib/core/services/logged/index.mjs +1 -1
- 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 +1 -1
- package/esm2020/lib/core/services/pagination/monkeyecx-pagination.service.mjs +29 -29
- package/esm2020/lib/core/services/request-download/index.mjs +2 -2
- 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 +1 -1
- package/esm2020/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.mjs +42 -42
- package/esm2020/lib/core/services/request-queue/index.mjs +2 -2
- 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 +1 -1
- package/esm2020/lib/core/services/routes/monkeyecx-dicovery-params.service.mjs +54 -54
- package/esm2020/lib/core/services/schedules/index.mjs +1 -1
- package/esm2020/lib/core/services/schedules/monkeyecx-request-schedule.service.mjs +188 -188
- package/esm2020/lib/core/services/storage/index.mjs +2 -2
- package/esm2020/lib/core/services/storage/monkeyecx-cookie-storage.service.mjs +32 -32
- package/esm2020/lib/core/services/storage/monkeyecx-token-storage.service.mjs +127 -127
- package/esm2020/lib/core/specification-search/index.mjs +1 -1
- package/esm2020/lib/core/specification-search/monkeyecx-specification-search.mjs +107 -107
- package/esm2020/lib/core/utils/decorators-utils.mjs +39 -39
- package/esm2020/lib/core/utils/index.mjs +7 -7
- package/esm2020/lib/core/utils/statics.mjs +37 -37
- package/esm2020/lib/core/utils/utils.mjs +221 -221
- package/esm2020/lib/core/utils/validate-utils.mjs +206 -206
- package/esm2020/lib/core/utils/validators.mjs +212 -212
- package/esm2020/lib/monkey-front-core.module.mjs +64 -64
- package/esm2020/monkey-front-core.mjs +4 -4
- package/esm2020/public-api.mjs +6 -6
- package/fesm2015/monkey-front-core.mjs +4942 -4942
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +4999 -4999
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/components/alerts/alerts.component.d.ts +16 -16
- 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/index.d.ts +4 -4
- 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 +15 -15
- 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 +17 -17
- 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 +17 -17
- 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 +29 -29
- 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-boostrap.d.ts +14 -14
- package/lib/core/interfaces/monkeyecx-config.d.ts +126 -126
- 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 +24 -24
- 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-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 +20 -20
- 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-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 +25 -25
- 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 +4 -4
- package/lib/core/services/auth/monkeyecx-auth-guard-company.service.d.ts +11 -11
- package/lib/core/services/auth/monkeyecx-auth-guard-login.service.d.ts +11 -11
- package/lib/core/services/auth/monkeyecx-auth-guard.service.d.ts +11 -11
- package/lib/core/services/auth/monkeyecx-authentication.service.d.ts +30 -30
- package/lib/core/services/commons/index.d.ts +1 -1
- package/lib/core/services/commons/monkeyecx-commons.service.d.ts +124 -124
- 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-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-ga-config.service.d.ts +10 -10
- 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 +23 -23
- 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 +29 -29
- 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 +28 -28
- package/lib/core/utils/utils.d.ts +22 -22
- package/lib/core/utils/validate-utils.d.ts +66 -66
- package/lib/core/utils/validators.d.ts +30 -30
- package/lib/monkey-front-core.module.d.ts +17 -17
- package/monkey-front-core-0.0.268.tgz +0 -0
- package/monkey-front-core.d.ts +5 -5
- package/package.json +3 -3
- package/public-api.d.ts +3 -3
- package/monkey-front-core-0.0.266.tgz +0 -0
|
@@ -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.1.1", 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.1.1", 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.1.1", 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWkxOG4tY29uZmlnLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29yZS9zcmMvbGliL2NvcmUvc2VydmljZXMvY29uZmlnL21vbmtleWVjeC1pMThuLWNvbmZpZy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwrQkFBK0I7QUFDL0IsNENBQTRDO0FBQzVDLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUNsQyxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFHdEMsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sdUNBQXVDLENBQUM7QUFDN0UsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sWUFBWSxDQUFDOzs7Ozs7QUFPckQsTUFBTSxPQUFPLDBCQUEyQixTQU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HRlcm5hbGkxOG4pIHtcbiAgICAgICAgZGF0YSA9IHtcbiAgICAgICAgICAuLi5kYXRhLFxuICAgICAgICAgIEVYVEVSTkFMOiBjdXJyZW50RXh0ZXJuYWxpMThuXG4gICAgICAgIH07XG4gICAgICB9XG4gICAgICB0aGlzLnRyYW5zbGF0ZVNlcnZpY2Uuc2V0VHJhbnNsYXRpb24oJ3B0LUJSJywgZGF0YSwgdHJ1ZSk7XG4gICAgICB0aGlzLnRyYW5zbGF0ZVNlcnZpY2Uuc2V0VHJhbnNsYXRpb24obGFuZywgZGF0YSwgdHJ1ZSk7XG4gICAgICB0aGlzLnRyYW5zbGF0ZVNlcnZpY2UudXNlKGxhbmcpO1xuICAgIH0gY2F0Y2ggKGVycikge1xuICAgICAgY29uc29sZS5lcnJvcihgaTE4biAke2kxOG4/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, configBoostrap, 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: configBoostrap?.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, configBoostrap, 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: configBoostrap?.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.1.1", ngImport: i0, type: MonkeyEcxLogsConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
27
|
+
MonkeyEcxLogsConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLogsConfigService, providedIn: 'root' });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLogsConfigService, decorators: [{
|
|
29
|
+
type: Injectable,
|
|
30
|
+
args: [{
|
|
31
|
+
providedIn: 'root'
|
|
32
|
+
}]
|
|
33
|
+
}] });
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWxvZ3MtY29uZmlnLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29yZS9zcmMvbGliL2NvcmUvc2VydmljZXMvY29uZmlnL21vbmtleWVjeC1sb2dzLWNvbmZpZy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHNCQUFzQixDQUFDOztBQU1sRCxNQUFNLE9BQU8sMEJBQTBCO0lBQzlCLEtBQUssQ0FDVixNQUF1QixFQUN2QixjQUF1QyxFQUN2QyxXQUFnQixFQUNoQixZQUFvQjtRQUVwQixNQUFNLEVBQUUsT0FBTyxFQUFFLElBQUksRUFBRSxHQUFHLE1BQU0sQ0FBQztRQUNqQyxJQUFJ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VlLFxuICAgICAgICB1c2VDcm9zc1NpdGVTZXNzaW9uQ29va2llOiB0cnVlXG4gICAgICB9KTtcbiAgICAgIGRhdGFkb2dSdW0uc3RhcnRTZXNzaW9uUmVwbGF5UmVjb3JkaW5nKCk7XG4gICAgfVxuICB9XG59XG4iXX0=
|
|
@@ -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.1.1", 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.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, providedIn: 'root' });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LW1haW50ZW5hbmNlLWNvbmZpZy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LWZyb250LWNvcmUvc3JjL2xpYi9jb3JlL3NlcnZpY2VzL2NvbmZpZy9tb25rZXllY3gtbWFpbnRlbmFuY2UtY29uZmlnLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUczQyxPQUFPLEVBQUUsNEJBQTRCLEVBQUUsTUFBTSwyRUFBMkUsQ0FBQzs7OztBQU16SCxNQUFNLE9BQU8saUNBQWlDO0lBQzVDLFlBQW9CLFlBQTBDLEVBQVUsTUFBYztRQUFsRSxpQkFBWSxHQUFaLFlBQVksQ0FBOEI7UUFBVSxXQUFNLEdBQU4sTUFBTSxDQUFRO1FBQ3BGLFlBQVk7SUFDZCxDQUFDO0lBRU8sZ0JBQWdCLENBQUMsTUFBK0I7UUFDdEQsSUFBSSxNQUFNLENBQUMsV0FBVyxDQUFDLE1BQU0sRUFBRTtZQUM3QixZQUFZLENBQUMsS0FBSyxFQUFFLENBQUM7WUFDckIsSUFBSSxDQUFDLE1BQU0sQ0FBQyxRQUFRLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDO1lBRTNCLFVBQVUsQ0FBQyxHQUFHLEVBQUU7Z0JBQ2QsSUFBSSxDQUFDLFlBQVksQ0FBQy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ocHJpdmF0ZSBtb2RhbFNlcnZpY2U6IE1vbmtleVN0eWxlR3VpZGVNb2RhbFNlcnZpY2UsIHByaXZhdGUgcm91dGVyOiBSb3V0ZXIpIHtcbiAgICAvLyBub3QgdG8gZG9cbiAgfVxuXG4gIHByaXZhdGUgaGFuZGxlVmFsaWRhdGlvbihjb25maWc6IE1vbmtleUVjeENvbmZpZ0Jvb3N0cmFwKSB7XG4gICAgaWYgKGNvbmZpZy5tYWludGVuYW5jZS5jbG9zZWQpIHtcbiAgICAgIGxvY2FsU3RvcmFnZS5jbGVhcigpO1xuICAgICAgdGhpcy5yb3V0ZXIubmF2aWdhdGUoWycnXSk7XG5cbiAgICAgIHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgICB0aGlzLm1vZGFsU2VydmljZS5vcGVuKENsb3NlZFRvTWFpbnRlbmFuY2VDb21wb25lbnQsIHtcbiAgICAgICAgICBjb2xvcjogJ3RoZW1lJyxcbiAgICAgICAgICBzaXplOiAnbWQnLFxuICAgICAgICAgIGRhdGE6IGNvbmZpZ1xuICAgICAgICB9KTtcbiAgICAgIH0sIDIwMCk7XG4gICAgfVxuICB9XG5cbiAgcHVibGljIGFwcGx5KGNvbmZpZzogTW9ua2V5RWN4Q29uZmlnQm9vc3RyYXApIHtcbiAgICB0aGlzLmhhbmRsZVZhbGlkYXRpb24oY29uZmlnKTtcbiAgfVxufVxuIl19
|
|
@@ -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.1.1", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
35
|
+
MonkeyEcxSecurityConsoleConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, providedIn: 'root' });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LXNlY3VyaXR5LWNvbnNvbGUtY29uZmlnLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29yZS9zcmMvbGliL2NvcmUvc2VydmljZXMvY29uZmlnL21vbmtleWVjeC1zZWN1cml0eS1jb25zb2xlLWNvbmZpZy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLCtCQUErQjtBQUMvQixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTNDLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLFlBQVksQ0FBQzs7O0FBS3JELE1BQU0sT0FBTyxxQ0FBc0MsU0FBUSx1QkFBdUI7SUFDaEYsWUFBb0IsZ0JBQWtDO1FBQ3BELEtBQUssRUFBRSxDQUFDO1FBRFUscUJBQWdCLEdBQWhCLGdCQUFnQixDQUFrQjtRQUdwRCxJQUFJLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxnQkFBZ0IsRUFBRSwwQkFBMEIsQ0FBQyxDQUFDO0lBQ2xFLENBQUM7SUFFTyxnQkFBZ0I7U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XyBfXyB8IHwgX19fX18gXyAgIF9cXFxcIFxcXFwgXFxcXCBcXFxcICBcXG4gJyArXG4gICAgICAgICAgXCJ8IHxcXFxcL3wgfC8gXyBcXFxcfCAnXyBcXFxcfCB8LyAvIF8gXFxcXCB8IHwgfFxcXFwgXFxcXCBcXFxcIFxcXFwgXFxuIFwiICtcbiAgICAgICAgICAnfCB8ICB8IHwgKF8pIHwgfCB8IHwgICA8ICBfXy8gfF98IHwvIC8gLyAvIFxcbiAnICtcbiAgICAgICAgICAnfF98ICB8X3xcXFxcX19fL3xffCB8X3xffFxcXFxfXFxcXF9fX3xcXFxcX18sIC9fL18vXy8gIFxcbiAnICtcbiAgICAgICAgICAnICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8X19fLyAgICAgICAgIFxcbiAnICtcbiAgICAgICAgICAnSm9pbiB1czogaHR0cHM6Ly9tb25rZXllY3guZ3VweS5pbycsICdiYWNrZ3JvdW5kOiAjMTk3NmQyOyBjb2xvcjogI2ZmZidcbiAgICAgICAgKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfVxuXG4gIHB1YmxpYyBhcHBseSgpIHtcbiAgICB0aGlzLmhhbmRsZVZhbGlkYXRpb24oKTtcbiAgfVxufVxuIl19
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { concat, interval } from 'rxjs';
|
|
3
|
-
import { first } from 'rxjs/operators';
|
|
4
|
-
import { VersionChangedComponent } from '../../../components/version-changed';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/service-worker";
|
|
7
|
-
import * as i2 from "monkey-style-guide";
|
|
8
|
-
export class MonkeyEcxServiceWorkerConfigService {
|
|
9
|
-
constructor(appRef, updates, modalService) {
|
|
10
|
-
this.appRef = appRef;
|
|
11
|
-
this.updates = updates;
|
|
12
|
-
this.modalService = modalService;
|
|
13
|
-
// not to do
|
|
14
|
-
}
|
|
15
|
-
handleValidation(config) {
|
|
16
|
-
const { updates, modalService } = this;
|
|
17
|
-
updates?.available?.subscribe(() => {
|
|
18
|
-
if (!config.showNewVersion || config.maintenance.closed) {
|
|
19
|
-
document.location.reload();
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
modalService.open(VersionChangedComponent, {
|
|
23
|
-
color: 'theme',
|
|
24
|
-
size: 'md'
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
verify() {
|
|
30
|
-
const { appRef, updates } = this;
|
|
31
|
-
const appIsStable$ = appRef.isStable
|
|
32
|
-
.pipe(first((isStable) => { return isStable === true; }));
|
|
33
|
-
const everyHour$ = interval(1 * 60 * 60 * 1000);
|
|
34
|
-
const everyHourOnceAppIsStable$ = concat(appIsStable$, everyHour$);
|
|
35
|
-
everyHourOnceAppIsStable$.subscribe(() => {
|
|
36
|
-
updates.checkForUpdate();
|
|
37
|
-
});
|
|
38
|
-
updates.checkForUpdate();
|
|
39
|
-
}
|
|
40
|
-
apply(config) {
|
|
41
|
-
this.handleValidation(config);
|
|
42
|
-
this.verify();
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
MonkeyEcxServiceWorkerConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
46
|
-
MonkeyEcxServiceWorkerConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
48
|
-
type: Injectable,
|
|
49
|
-
args: [{
|
|
50
|
-
providedIn: 'root'
|
|
51
|
-
}]
|
|
52
|
-
}], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i1.SwUpdate }, { type: i2.MonkeyStyleGuideModalService }]; } });
|
|
53
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { concat, interval } from 'rxjs';
|
|
3
|
+
import { first } from 'rxjs/operators';
|
|
4
|
+
import { VersionChangedComponent } from '../../../components/version-changed';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/service-worker";
|
|
7
|
+
import * as i2 from "monkey-style-guide";
|
|
8
|
+
export class MonkeyEcxServiceWorkerConfigService {
|
|
9
|
+
constructor(appRef, updates, modalService) {
|
|
10
|
+
this.appRef = appRef;
|
|
11
|
+
this.updates = updates;
|
|
12
|
+
this.modalService = modalService;
|
|
13
|
+
// not to do
|
|
14
|
+
}
|
|
15
|
+
handleValidation(config) {
|
|
16
|
+
const { updates, modalService } = this;
|
|
17
|
+
updates?.available?.subscribe(() => {
|
|
18
|
+
if (!config.showNewVersion || config.maintenance.closed) {
|
|
19
|
+
document.location.reload();
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
modalService.open(VersionChangedComponent, {
|
|
23
|
+
color: 'theme',
|
|
24
|
+
size: 'md'
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
verify() {
|
|
30
|
+
const { appRef, updates } = this;
|
|
31
|
+
const appIsStable$ = appRef.isStable
|
|
32
|
+
.pipe(first((isStable) => { return isStable === true; }));
|
|
33
|
+
const everyHour$ = interval(1 * 60 * 60 * 1000);
|
|
34
|
+
const everyHourOnceAppIsStable$ = concat(appIsStable$, everyHour$);
|
|
35
|
+
everyHourOnceAppIsStable$.subscribe(() => {
|
|
36
|
+
updates.checkForUpdate();
|
|
37
|
+
});
|
|
38
|
+
updates.checkForUpdate();
|
|
39
|
+
}
|
|
40
|
+
apply(config) {
|
|
41
|
+
this.handleValidation(config);
|
|
42
|
+
this.verify();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
MonkeyEcxServiceWorkerConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, deps: [{ token: i0.ApplicationRef }, { token: i1.SwUpdate }, { token: i2.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
46
|
+
MonkeyEcxServiceWorkerConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, providedIn: 'root' });
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, decorators: [{
|
|
48
|
+
type: Injectable,
|
|
49
|
+
args: [{
|
|
50
|
+
providedIn: 'root'
|
|
51
|
+
}]
|
|
52
|
+
}], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i1.SwUpdate }, { type: i2.MonkeyStyleGuideModalService }]; } });
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LXNlcnZpY2Utd29ya2VyLWNvbmZpZy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LWZyb250LWNvcmUvc3JjL2xpYi9jb3JlL3NlcnZpY2VzL2NvbmZpZy9tb25rZXllY3gtc2VydmljZS13b3JrZXItY29uZmlnLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFrQixVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHM0QsT0FBTyxFQUFFLE1BQU0sRUFBRSxRQUFRLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDeEMsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3ZDLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLHFDQUFxQyxDQUFDOzs7O0FBTTlFLE1BQU0sT0FBTyxtQ0FBbUM7SUFDO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