monkey-front-core 0.0.243 → 0.0.246
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 +19 -19
- 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 +107 -107
- 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 -0
- package/esm2020/lib/core/services/alerts/monkeyecx-alerts.service.mjs +31 -0
- 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 +24 -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 +220 -220
- package/esm2020/lib/core/utils/validate-utils.mjs +205 -205
- package/esm2020/lib/core/utils/validators.mjs +207 -207
- 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 +4904 -4876
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +4962 -4935
- 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 +19 -19
- 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 +24 -24
- 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 -0
- package/lib/core/services/alerts/monkeyecx-alerts.service.d.ts +15 -0
- 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 -22
- 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 +29 -29
- package/lib/monkey-front-core.module.d.ts +17 -17
- package/monkey-front-core-0.0.246.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.243.tgz +0 -0
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./monkeyecx-authentication.service";
|
|
4
|
-
export class MonkeyEcxAuthGuardLogin {
|
|
5
|
-
constructor(monkeyecxAuthenticationService) {
|
|
6
|
-
this.monkeyecxAuthenticationService = monkeyecxAuthenticationService;
|
|
7
|
-
// not to do
|
|
8
|
-
}
|
|
9
|
-
canActivate() {
|
|
10
|
-
if (this.monkeyecxAuthenticationService.isAuthorized()) {
|
|
11
|
-
this.monkeyecxAuthenticationService.redirectApp();
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
if (this.monkeyecxAuthenticationService.hadAtLeastOneLogin()) {
|
|
15
|
-
this.monkeyecxAuthenticationService.redirectLoginWelcomeBack();
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
MonkeyEcxAuthGuardLogin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
22
|
-
MonkeyEcxAuthGuardLogin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
24
|
-
type: Injectable,
|
|
25
|
-
args: [{ providedIn: 'root' }]
|
|
26
|
-
}], ctorParameters: function () { return [{ type: i1.MonkeyEcxAuthenticationService }]; } });
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./monkeyecx-authentication.service";
|
|
4
|
+
export class MonkeyEcxAuthGuardLogin {
|
|
5
|
+
constructor(monkeyecxAuthenticationService) {
|
|
6
|
+
this.monkeyecxAuthenticationService = monkeyecxAuthenticationService;
|
|
7
|
+
// not to do
|
|
8
|
+
}
|
|
9
|
+
canActivate() {
|
|
10
|
+
if (this.monkeyecxAuthenticationService.isAuthorized()) {
|
|
11
|
+
this.monkeyecxAuthenticationService.redirectApp();
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
if (this.monkeyecxAuthenticationService.hadAtLeastOneLogin()) {
|
|
15
|
+
this.monkeyecxAuthenticationService.redirectLoginWelcomeBack();
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
MonkeyEcxAuthGuardLogin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxAuthGuardLogin, deps: [{ token: i1.MonkeyEcxAuthenticationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
22
|
+
MonkeyEcxAuthGuardLogin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxAuthGuardLogin, providedIn: 'root' });
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxAuthGuardLogin, decorators: [{
|
|
24
|
+
type: Injectable,
|
|
25
|
+
args: [{ providedIn: 'root' }]
|
|
26
|
+
}], ctorParameters: function () { return [{ type: i1.MonkeyEcxAuthenticationService }]; } });
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWF1dGgtZ3VhcmQtbG9naW4uc2VydmljZS5qcy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cG9ydCB7IE9ic2VydmFibGUgfSBmcm9tICdyeGpzJztcbmltcG9ydCB7IE1vbmtleUVjeEF1dGhlbnRpY2F0aW9uU2VydmljZSB9IGZyb20gJy4vbW9ua2V5ZWN4LWF1dGhlbnRpY2F0aW9uLnNlcnZpY2UnO1xuXG5ASW5qZWN0YWJsZSh7IHByb3ZpZGVkSW46ICdyb290JyB9KVxuZXhwb3J0IGNsYXNzIE1vbmtleUVjeEF1dGhHdWFyZExvZ2luIGltcGxlbWVudHMgQ2FuQWN0aXZhdGUge1xuICBjb25zdHJ1Y3Rvcihwcml2YXRlIG1vbmtleWVjeEF1dGhlbnRpY2F0aW9uU2VydmljZTogTW9ua2V5RWN4QXV0aGVudGljYXRpb25TZXJ2aWNlKSB7XG4gICAgLy8gbm90IHRvIGRvXG4gIH1cblxuICBjYW5BY3RpdmF0ZSgpOiBPYnNlcnZhYmxlPGJvb2xlYW4+IHwgUHJvbWlzZTxib29sZWFuPiB8IGJvb2xlYW4ge1xuICAgIGlmICh0aGlzLm1vbmtleWVjeEF1dGhlbnRpY2F0aW9uU2VydmljZS5pc0F1dGhvcml6ZWQoKSkge1xuICAgICAgdGhpcy5tb25rZXllY3hBdXRoZW50aWNhdGlvblNlcnZpY2UucmVkaXJlY3RBcHAoKTtcbiAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG4gICAgaWYgKHRoaXMubW9ua2V5ZWN4QXV0aGVudGljYXRpb25TZXJ2aWNlLmhhZEF0TGVhc3RPbmVMb2dpbigpKSB7XG4gICAgICB0aGlzLm1vbmtleWVjeEF1dGhlbnRpY2F0aW9uU2VydmljZS5yZWRpcmVjdExvZ2luV2VsY29tZUJhY2soKTtcbiAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG4gICAgcmV0dXJuIHRydWU7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./monkeyecx-authentication.service";
|
|
4
|
-
export class MonkeyEcxAuthGuard {
|
|
5
|
-
constructor(monkeyecxAuthenticationService) {
|
|
6
|
-
this.monkeyecxAuthenticationService = monkeyecxAuthenticationService;
|
|
7
|
-
// not to do
|
|
8
|
-
}
|
|
9
|
-
canActivate() {
|
|
10
|
-
const { monkeyecxAuthenticationService } = this;
|
|
11
|
-
if (monkeyecxAuthenticationService.isAuthorized()) {
|
|
12
|
-
return true;
|
|
13
|
-
}
|
|
14
|
-
monkeyecxAuthenticationService.redirectLoginWelcomeBack();
|
|
15
|
-
return false;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
MonkeyEcxAuthGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
19
|
-
MonkeyEcxAuthGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
21
|
-
type: Injectable,
|
|
22
|
-
args: [{
|
|
23
|
-
providedIn: 'root'
|
|
24
|
-
}]
|
|
25
|
-
}], ctorParameters: function () { return [{ type: i1.MonkeyEcxAuthenticationService }]; } });
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./monkeyecx-authentication.service";
|
|
4
|
+
export class MonkeyEcxAuthGuard {
|
|
5
|
+
constructor(monkeyecxAuthenticationService) {
|
|
6
|
+
this.monkeyecxAuthenticationService = monkeyecxAuthenticationService;
|
|
7
|
+
// not to do
|
|
8
|
+
}
|
|
9
|
+
canActivate() {
|
|
10
|
+
const { monkeyecxAuthenticationService } = this;
|
|
11
|
+
if (monkeyecxAuthenticationService.isAuthorized()) {
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
monkeyecxAuthenticationService.redirectLoginWelcomeBack();
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
MonkeyEcxAuthGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxAuthGuard, deps: [{ token: i1.MonkeyEcxAuthenticationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
19
|
+
MonkeyEcxAuthGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxAuthGuard, providedIn: 'root' });
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxAuthGuard, decorators: [{
|
|
21
|
+
type: Injectable,
|
|
22
|
+
args: [{
|
|
23
|
+
providedIn: 'root'
|
|
24
|
+
}]
|
|
25
|
+
}], ctorParameters: function () { return [{ type: i1.MonkeyEcxAuthenticationService }]; } });
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWF1dGgtZ3VhcmQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21vbmtleS1mcm9udC1jb3JlL3NyYy9saWIvY29yZS9zZXJ2aWNlcy9hdXRoL21vbmtleWVjeC1hdXRoLWd1YXJkLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7O0FBUTNDLE1BQU0sT0FBTyxrQkFBa0I7SUFDN0IsWUFBb0IsOEJBQThEO1FBQTlELG1DQUE4QixHQUE5Qiw4QkFBOEIsQ0FBZ0M7UUFDaEYsWUFBWTtJQUNkLENBQUM7SUFFRCxXQUFXO1FBQ1QsTUFBTSxFQUFFLDhCQU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WNlIH0gPSB0aGlzO1xuXG4gICAgaWYgKG1vbmtleWVjeEF1dGhlbnRpY2F0aW9uU2VydmljZS5pc0F1dGhvcml6ZWQoKSkge1xuICAgICAgcmV0dXJuIHRydWU7XG4gICAgfVxuXG4gICAgbW9ua2V5ZWN4QXV0aGVudGljYXRpb25TZXJ2aWNlLnJlZGlyZWN0TG9naW5XZWxjb21lQmFjaygpO1xuXG4gICAgcmV0dXJuIGZhbHNlO1xuICB9XG59XG4iXX0=
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
/* eslint-disable no-console */
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class MonkeyEcxAuthenticationService {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.hadAtLeastOneLogin = () => {
|
|
7
|
-
console.error('hadAtLeastOneLogin needs to be declared!');
|
|
8
|
-
return null;
|
|
9
|
-
};
|
|
10
|
-
this.redirectApp = () => {
|
|
11
|
-
console.error('redirectApp needs to be declared!');
|
|
12
|
-
return null;
|
|
13
|
-
};
|
|
14
|
-
this.redirectLoginWelcomeBack = () => {
|
|
15
|
-
console.error('redirectLoginWelcomeBack needs to be declared!');
|
|
16
|
-
return null;
|
|
17
|
-
};
|
|
18
|
-
this.isAuthorized = () => {
|
|
19
|
-
console.error('isAuthorized needs to be declared!');
|
|
20
|
-
return false;
|
|
21
|
-
};
|
|
22
|
-
this.isCompanyAuthorized = () => {
|
|
23
|
-
console.error('isCompanyAuthorized needs to be declared!');
|
|
24
|
-
return false;
|
|
25
|
-
};
|
|
26
|
-
this.isTokenMandatory = (url) => {
|
|
27
|
-
console.error('isTokenMandatory needs to be declared!');
|
|
28
|
-
return false;
|
|
29
|
-
};
|
|
30
|
-
this.getRequestWithHeaders = (request) => {
|
|
31
|
-
console.error('getRequestWithHeaders needs to be declared!');
|
|
32
|
-
return null;
|
|
33
|
-
};
|
|
34
|
-
this.getRequestWithHeadersOb = (request) => {
|
|
35
|
-
console.error('getRequestWithHeadersOb needs to be declared!');
|
|
36
|
-
return null;
|
|
37
|
-
};
|
|
38
|
-
this.refreshShouldHappen = (response) => {
|
|
39
|
-
console.error('refreshShouldHappen needs to be declared!');
|
|
40
|
-
return false;
|
|
41
|
-
};
|
|
42
|
-
this.refreshToken = () => {
|
|
43
|
-
console.error('refreshToken needs to be declared!');
|
|
44
|
-
return null;
|
|
45
|
-
};
|
|
46
|
-
// not to do
|
|
47
|
-
}
|
|
48
|
-
init(args) {
|
|
49
|
-
this.hadAtLeastOneLogin = args?.hadAtLeastOneLogin || this.hadAtLeastOneLogin.bind(this);
|
|
50
|
-
this.redirectApp = args?.redirectApp || this.redirectApp.bind(this);
|
|
51
|
-
this.redirectLoginWelcomeBack =
|
|
52
|
-
args?.redirectLoginWelcomeBack || this.redirectLoginWelcomeBack.bind(this);
|
|
53
|
-
this.isAuthorized = args?.isAuthorized || this.isAuthorized.bind(this);
|
|
54
|
-
this.isTokenMandatory = args?.isTokenMandatory || this.isTokenMandatory.bind(this);
|
|
55
|
-
this.isCompanyAuthorized = args?.isCompanyAuthorized || this.isCompanyAuthorized.bind(this);
|
|
56
|
-
this.getRequestWithHeaders =
|
|
57
|
-
args?.getRequestWithHeaders || this.getRequestWithHeaders.bind(this);
|
|
58
|
-
this.getRequestWithHeadersOb = args?.getRequestWithHeadersOb.bind(this);
|
|
59
|
-
this.refreshShouldHappen = args?.refreshShouldHappen || this.refreshShouldHappen.bind(this);
|
|
60
|
-
this.refreshToken = args?.refreshToken || this.refreshToken.bind(this);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
MonkeyEcxAuthenticationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
64
|
-
MonkeyEcxAuthenticationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
66
|
-
type: Injectable,
|
|
67
|
-
args: [{ providedIn: 'root' }]
|
|
68
|
-
}], ctorParameters: function () { return []; } });
|
|
69
|
-
//# 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 MonkeyEcxAuthenticationService {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.hadAtLeastOneLogin = () => {
|
|
7
|
+
console.error('hadAtLeastOneLogin needs to be declared!');
|
|
8
|
+
return null;
|
|
9
|
+
};
|
|
10
|
+
this.redirectApp = () => {
|
|
11
|
+
console.error('redirectApp needs to be declared!');
|
|
12
|
+
return null;
|
|
13
|
+
};
|
|
14
|
+
this.redirectLoginWelcomeBack = () => {
|
|
15
|
+
console.error('redirectLoginWelcomeBack needs to be declared!');
|
|
16
|
+
return null;
|
|
17
|
+
};
|
|
18
|
+
this.isAuthorized = () => {
|
|
19
|
+
console.error('isAuthorized needs to be declared!');
|
|
20
|
+
return false;
|
|
21
|
+
};
|
|
22
|
+
this.isCompanyAuthorized = () => {
|
|
23
|
+
console.error('isCompanyAuthorized needs to be declared!');
|
|
24
|
+
return false;
|
|
25
|
+
};
|
|
26
|
+
this.isTokenMandatory = (url) => {
|
|
27
|
+
console.error('isTokenMandatory needs to be declared!');
|
|
28
|
+
return false;
|
|
29
|
+
};
|
|
30
|
+
this.getRequestWithHeaders = (request) => {
|
|
31
|
+
console.error('getRequestWithHeaders needs to be declared!');
|
|
32
|
+
return null;
|
|
33
|
+
};
|
|
34
|
+
this.getRequestWithHeadersOb = (request) => {
|
|
35
|
+
console.error('getRequestWithHeadersOb needs to be declared!');
|
|
36
|
+
return null;
|
|
37
|
+
};
|
|
38
|
+
this.refreshShouldHappen = (response) => {
|
|
39
|
+
console.error('refreshShouldHappen needs to be declared!');
|
|
40
|
+
return false;
|
|
41
|
+
};
|
|
42
|
+
this.refreshToken = () => {
|
|
43
|
+
console.error('refreshToken needs to be declared!');
|
|
44
|
+
return null;
|
|
45
|
+
};
|
|
46
|
+
// not to do
|
|
47
|
+
}
|
|
48
|
+
init(args) {
|
|
49
|
+
this.hadAtLeastOneLogin = args?.hadAtLeastOneLogin || this.hadAtLeastOneLogin.bind(this);
|
|
50
|
+
this.redirectApp = args?.redirectApp || this.redirectApp.bind(this);
|
|
51
|
+
this.redirectLoginWelcomeBack =
|
|
52
|
+
args?.redirectLoginWelcomeBack || this.redirectLoginWelcomeBack.bind(this);
|
|
53
|
+
this.isAuthorized = args?.isAuthorized || this.isAuthorized.bind(this);
|
|
54
|
+
this.isTokenMandatory = args?.isTokenMandatory || this.isTokenMandatory.bind(this);
|
|
55
|
+
this.isCompanyAuthorized = args?.isCompanyAuthorized || this.isCompanyAuthorized.bind(this);
|
|
56
|
+
this.getRequestWithHeaders =
|
|
57
|
+
args?.getRequestWithHeaders || this.getRequestWithHeaders.bind(this);
|
|
58
|
+
this.getRequestWithHeadersOb = args?.getRequestWithHeadersOb.bind(this);
|
|
59
|
+
this.refreshShouldHappen = args?.refreshShouldHappen || this.refreshShouldHappen.bind(this);
|
|
60
|
+
this.refreshToken = args?.refreshToken || this.refreshToken.bind(this);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
MonkeyEcxAuthenticationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxAuthenticationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
64
|
+
MonkeyEcxAuthenticationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxAuthenticationService, providedIn: 'root' });
|
|
65
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxAuthenticationService, decorators: [{
|
|
66
|
+
type: Injectable,
|
|
67
|
+
args: [{ providedIn: 'root' }]
|
|
68
|
+
}], ctorParameters: function () { return []; }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5yZWRpcmVjdExvZ2luV2VsY29tZUJhY2sgfHwgdGhpcy5yZWRpcmVjdExvZ2luV2VsY29tZUJhY2suYmluZCh0aGlzKTtcbiAgICB0aGlzLmlzQXV0aG9yaXplZCA9IGFyZ3M/LmlzQXV0aG9yaXplZCB8fCB0aGlzLmlzQXV0aG9yaXplZC5iaW5kKHRoaXMpO1xuICAgIHRoaXMuaXNUb2tlbk1hbmRhdG9yeSA9IGFyZ3M/LmlzVG9rZW5NYW5kYXRvcnkgfHwgdGhpcy5pc1Rva2VuTWFuZGF0b3J5LmJpbmQodGhpcyk7XG4gICAgdGhpcy5pc0NvbXBhbnlBdXRob3JpemVkID0gYXJncz8uaXNDb21wYW55QXV0aG9yaXplZCB8fCB0aGlzLmlzQ29tcGFueUF1dGhvcml6ZWQuYmluZCh0aGlzKTtcbiAgICB0aGlzLmdldFJlcXVlc3RXaXRoSGVhZGVycyA9XG4gICAgICBhcmdzPy5nZXRSZXF1ZXN0V2l0aEhlYWRlcnMgfHwgdGhpcy5nZXRSZXF1ZXN0V2l0aEhlYWRlcnMuYmluZCh0aGlzKTtcbiAgICB0aGlzLmdldFJlcXVlc3RXaXRoSGVhZGVyc09iID0gYXJncz8uZ2V0UmVxdWVzdFdpdGhIZWFkZXJzT2IuYmluZCh0aGlzKTtcbiAgICB0aGlzLnJlZnJlc2hTaG91bGRIYXBwZW4gPSBhcmdzPy5yZWZyZXNoU2hvdWxkSGFwcGVuIHx8IHRoaXMucmVmcmVzaFNob3VsZEhhcHBlbi5iaW5kKHRoaXMpO1xuICAgIHRoaXMucmVmcmVzaFRva2VuID0gYXJncz8ucmVmcmVzaFRva2VuIHx8IHRoaXMucmVmcmVzaFRva2VuLmJpbmQodGhpcyk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './monkeyecx-commons.service';
|
|
1
|
+
export * from './monkeyecx-commons.service';
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29yZS9zcmMvbGliL2NvcmUvc2VydmljZXMvY29tbW9ucy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9tb25rZXllY3gtY29tbW9ucy5zZXJ2aWNlJztcbiJdfQ==
|