monkey-front-core 0.0.256 → 0.0.257
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 +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 +4936 -4936
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +4993 -4993
- 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 +29 -29
- package/lib/monkey-front-core.module.d.ts +17 -17
- package/monkey-front-core-0.0.257.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.256.tgz +0 -0
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
let window;
|
|
4
|
-
const text = {
|
|
5
|
-
i18n: {
|
|
6
|
-
title: 'We have an quick update for you',
|
|
7
|
-
message: 'Click anywhere here to reload your locale',
|
|
8
|
-
},
|
|
9
|
-
theme: {
|
|
10
|
-
title: 'We have an quick update for you',
|
|
11
|
-
message: 'Click anywhere here to reload your theme',
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
export class MonkeyEcxErrorConfigService {
|
|
15
|
-
constructor() {
|
|
16
|
-
// not to do
|
|
17
|
-
}
|
|
18
|
-
enableSupport() {
|
|
19
|
-
window.zE('webWidget', 'updateSettings', {
|
|
20
|
-
webWidget: {
|
|
21
|
-
color: {
|
|
22
|
-
theme: '#0273E8',
|
|
23
|
-
launcherText: '#fff',
|
|
24
|
-
header: '#0273E8',
|
|
25
|
-
button: '#0273E8',
|
|
26
|
-
},
|
|
27
|
-
zIndex: 99,
|
|
28
|
-
offset: {
|
|
29
|
-
horizontal: '1px',
|
|
30
|
-
vertical: '20px',
|
|
31
|
-
},
|
|
32
|
-
mobile: {
|
|
33
|
-
labelVisible: true,
|
|
34
|
-
},
|
|
35
|
-
launcher: {
|
|
36
|
-
mobile: {
|
|
37
|
-
labelVisible: true,
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
window.zE('webWidget', 'setLocale', 'en-US');
|
|
43
|
-
window.zE('webWidget', 'show');
|
|
44
|
-
}
|
|
45
|
-
apply(type) {
|
|
46
|
-
const { title, message } = text?.[type];
|
|
47
|
-
const element = document.createElement('div');
|
|
48
|
-
element.id = 'monkeyecx-information';
|
|
49
|
-
const elementImg = document.createElement('img');
|
|
50
|
-
elementImg.width = 128;
|
|
51
|
-
elementImg.src = 'assets/images/monkey.svg';
|
|
52
|
-
elementImg.style.marginBottom = '50px';
|
|
53
|
-
const elementTitle = document.createElement('span');
|
|
54
|
-
elementTitle.id = 'title';
|
|
55
|
-
elementTitle.innerText = title;
|
|
56
|
-
elementTitle.style.marginBottom = '20px';
|
|
57
|
-
const elementMessage = document.createElement('span');
|
|
58
|
-
elementMessage.id = 'message';
|
|
59
|
-
elementMessage.innerText = message;
|
|
60
|
-
elementMessage.style.marginBottom = '20px';
|
|
61
|
-
const elementChat = document.createElement('span');
|
|
62
|
-
elementChat.id = 'message';
|
|
63
|
-
elementChat.innerText =
|
|
64
|
-
"If you're having trouble to update, please use the support icon bellow";
|
|
65
|
-
element.appendChild(elementImg);
|
|
66
|
-
element.appendChild(elementTitle);
|
|
67
|
-
element.appendChild(elementMessage);
|
|
68
|
-
element.appendChild(elementChat);
|
|
69
|
-
element.addEventListener('click', () => {
|
|
70
|
-
document.location.reload();
|
|
71
|
-
});
|
|
72
|
-
document.body.appendChild(element);
|
|
73
|
-
document.body.getElementsByTagName('app-root')[0].remove();
|
|
74
|
-
this.enableSupport();
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
MonkeyEcxErrorConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
78
|
-
MonkeyEcxErrorConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
80
|
-
type: Injectable,
|
|
81
|
-
args: [{
|
|
82
|
-
providedIn: 'root',
|
|
83
|
-
}]
|
|
84
|
-
}], ctorParameters: function () { return []; } });
|
|
85
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
let window;
|
|
4
|
+
const text = {
|
|
5
|
+
i18n: {
|
|
6
|
+
title: 'We have an quick update for you',
|
|
7
|
+
message: 'Click anywhere here to reload your locale',
|
|
8
|
+
},
|
|
9
|
+
theme: {
|
|
10
|
+
title: 'We have an quick update for you',
|
|
11
|
+
message: 'Click anywhere here to reload your theme',
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
export class MonkeyEcxErrorConfigService {
|
|
15
|
+
constructor() {
|
|
16
|
+
// not to do
|
|
17
|
+
}
|
|
18
|
+
enableSupport() {
|
|
19
|
+
window.zE('webWidget', 'updateSettings', {
|
|
20
|
+
webWidget: {
|
|
21
|
+
color: {
|
|
22
|
+
theme: '#0273E8',
|
|
23
|
+
launcherText: '#fff',
|
|
24
|
+
header: '#0273E8',
|
|
25
|
+
button: '#0273E8',
|
|
26
|
+
},
|
|
27
|
+
zIndex: 99,
|
|
28
|
+
offset: {
|
|
29
|
+
horizontal: '1px',
|
|
30
|
+
vertical: '20px',
|
|
31
|
+
},
|
|
32
|
+
mobile: {
|
|
33
|
+
labelVisible: true,
|
|
34
|
+
},
|
|
35
|
+
launcher: {
|
|
36
|
+
mobile: {
|
|
37
|
+
labelVisible: true,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
window.zE('webWidget', 'setLocale', 'en-US');
|
|
43
|
+
window.zE('webWidget', 'show');
|
|
44
|
+
}
|
|
45
|
+
apply(type) {
|
|
46
|
+
const { title, message } = text?.[type];
|
|
47
|
+
const element = document.createElement('div');
|
|
48
|
+
element.id = 'monkeyecx-information';
|
|
49
|
+
const elementImg = document.createElement('img');
|
|
50
|
+
elementImg.width = 128;
|
|
51
|
+
elementImg.src = 'assets/images/monkey.svg';
|
|
52
|
+
elementImg.style.marginBottom = '50px';
|
|
53
|
+
const elementTitle = document.createElement('span');
|
|
54
|
+
elementTitle.id = 'title';
|
|
55
|
+
elementTitle.innerText = title;
|
|
56
|
+
elementTitle.style.marginBottom = '20px';
|
|
57
|
+
const elementMessage = document.createElement('span');
|
|
58
|
+
elementMessage.id = 'message';
|
|
59
|
+
elementMessage.innerText = message;
|
|
60
|
+
elementMessage.style.marginBottom = '20px';
|
|
61
|
+
const elementChat = document.createElement('span');
|
|
62
|
+
elementChat.id = 'message';
|
|
63
|
+
elementChat.innerText =
|
|
64
|
+
"If you're having trouble to update, please use the support icon bellow";
|
|
65
|
+
element.appendChild(elementImg);
|
|
66
|
+
element.appendChild(elementTitle);
|
|
67
|
+
element.appendChild(elementMessage);
|
|
68
|
+
element.appendChild(elementChat);
|
|
69
|
+
element.addEventListener('click', () => {
|
|
70
|
+
document.location.reload();
|
|
71
|
+
});
|
|
72
|
+
document.body.appendChild(element);
|
|
73
|
+
document.body.getElementsByTagName('app-root')[0].remove();
|
|
74
|
+
this.enableSupport();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
MonkeyEcxErrorConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxErrorConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
78
|
+
MonkeyEcxErrorConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxErrorConfigService, providedIn: 'root' });
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxErrorConfigService, decorators: [{
|
|
80
|
+
type: Injectable,
|
|
81
|
+
args: [{
|
|
82
|
+
providedIn: 'root',
|
|
83
|
+
}]
|
|
84
|
+
}], ctorParameters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GRvY3VtZW50LmJvZHkuZ2V0RWxlbWVudHNCeVRhZ05hbWUoJ2FwcC1yb290JylbMF0ucmVtb3ZlKCk7XG4gICAgdGhpcy5lbmFibGVTdXBwb3J0KCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { initialize } from 'launchdarkly-js-client-sdk';
|
|
4
|
-
import { MonkeyUtils } from 'monkey-style-guide';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class MonkeyEcxFeatureToggleService {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.flagSubject$ = new BehaviorSubject(null);
|
|
9
|
-
this.flags = undefined;
|
|
10
|
-
this.ldClient = undefined;
|
|
11
|
-
// not to do
|
|
12
|
-
}
|
|
13
|
-
getAllFlags() {
|
|
14
|
-
if (!this)
|
|
15
|
-
return;
|
|
16
|
-
this.flags = this.ldClient?.allFlags();
|
|
17
|
-
this.flagSubject$.next(true);
|
|
18
|
-
}
|
|
19
|
-
identify(config, environment) {
|
|
20
|
-
if (config) {
|
|
21
|
-
const email = 'monkey@monkey.exchange';
|
|
22
|
-
const user = {
|
|
23
|
-
email,
|
|
24
|
-
key: `${config.program?.token}#${email}`,
|
|
25
|
-
};
|
|
26
|
-
if (!this.ldClient) {
|
|
27
|
-
this.ldClient = initialize(environment.launchDarklyClientSideID, user, {
|
|
28
|
-
streaming: true,
|
|
29
|
-
disableSyncEventPost: true,
|
|
30
|
-
sendEvents: false,
|
|
31
|
-
diagnosticOptOut: true,
|
|
32
|
-
});
|
|
33
|
-
this.ldClient.on('change', this.getAllFlags.bind(this));
|
|
34
|
-
this.ldClient.on('ready', this.getAllFlags.bind(this));
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
this.ldClient.identify(user, undefined, this.getAllFlags);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
apply(configSubject$, environment) {
|
|
42
|
-
if (environment.launchDarklyClientSideID) {
|
|
43
|
-
configSubject$.subscribe((config) => {
|
|
44
|
-
this.identify(config, environment);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
this.flagSubject$.next(true);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
get onFlags() {
|
|
52
|
-
return this.flagSubject$.asObservable();
|
|
53
|
-
}
|
|
54
|
-
getFlag(flag) {
|
|
55
|
-
const flagValue = this.flags?.[flag];
|
|
56
|
-
return MonkeyUtils.persistNullEmptyUndefined(flagValue) ? flagValue : null;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
MonkeyEcxFeatureToggleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
60
|
-
MonkeyEcxFeatureToggleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
62
|
-
type: Injectable,
|
|
63
|
-
args: [{
|
|
64
|
-
providedIn: 'root',
|
|
65
|
-
}]
|
|
66
|
-
}], ctorParameters: function () { return []; } });
|
|
67
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { initialize } from 'launchdarkly-js-client-sdk';
|
|
4
|
+
import { MonkeyUtils } from 'monkey-style-guide';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class MonkeyEcxFeatureToggleService {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.flagSubject$ = new BehaviorSubject(null);
|
|
9
|
+
this.flags = undefined;
|
|
10
|
+
this.ldClient = undefined;
|
|
11
|
+
// not to do
|
|
12
|
+
}
|
|
13
|
+
getAllFlags() {
|
|
14
|
+
if (!this)
|
|
15
|
+
return;
|
|
16
|
+
this.flags = this.ldClient?.allFlags();
|
|
17
|
+
this.flagSubject$.next(true);
|
|
18
|
+
}
|
|
19
|
+
identify(config, environment) {
|
|
20
|
+
if (config) {
|
|
21
|
+
const email = 'monkey@monkey.exchange';
|
|
22
|
+
const user = {
|
|
23
|
+
email,
|
|
24
|
+
key: `${config.program?.token}#${email}`,
|
|
25
|
+
};
|
|
26
|
+
if (!this.ldClient) {
|
|
27
|
+
this.ldClient = initialize(environment.launchDarklyClientSideID, user, {
|
|
28
|
+
streaming: true,
|
|
29
|
+
disableSyncEventPost: true,
|
|
30
|
+
sendEvents: false,
|
|
31
|
+
diagnosticOptOut: true,
|
|
32
|
+
});
|
|
33
|
+
this.ldClient.on('change', this.getAllFlags.bind(this));
|
|
34
|
+
this.ldClient.on('ready', this.getAllFlags.bind(this));
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
this.ldClient.identify(user, undefined, this.getAllFlags);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
apply(configSubject$, environment) {
|
|
42
|
+
if (environment.launchDarklyClientSideID) {
|
|
43
|
+
configSubject$.subscribe((config) => {
|
|
44
|
+
this.identify(config, environment);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
this.flagSubject$.next(true);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
get onFlags() {
|
|
52
|
+
return this.flagSubject$.asObservable();
|
|
53
|
+
}
|
|
54
|
+
getFlag(flag) {
|
|
55
|
+
const flagValue = this.flags?.[flag];
|
|
56
|
+
return MonkeyUtils.persistNullEmptyUndefined(flagValue) ? flagValue : null;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
MonkeyEcxFeatureToggleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxFeatureToggleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
60
|
+
MonkeyEcxFeatureToggleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxFeatureToggleService, providedIn: 'root' });
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxFeatureToggleService, decorators: [{
|
|
62
|
+
type: Injectable,
|
|
63
|
+
args: [{
|
|
64
|
+
providedIn: 'root',
|
|
65
|
+
}]
|
|
66
|
+
}], ctorParameters: function () { return []; } });
|
|
67
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWZlYXR1cmUtdG9nZ2xlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29yZS9zcmMvbGliL2NvcmUvc2VydmljZXMvY29uZmlnL21vbmtleWVjeC1mZWF0dXJlLXRvZ2dsZS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLGVBQWUsRUFBYyxNQUFNLE1BQU0sQ0FBQztBQUNuRCxPQUFPLEVBQUUsVUFBVSxFQUF1QixNQUFNLDRCQUE0QixDQUFDO0FBQzdFLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQzs7QUFNakQsTUFBTSxPQUFPLDZCQUE2QjtJQU94QztRQU5pQixpQkFBWSxHQUF5QixJQUFJLGVBQWUsQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUV4RSxVQUFLLEdBQTBCLFNBQVMsQ0FBQztRQUV6QyxhQUFRLEdBQXlCLFNBQVMsQ0FBQztRQUdqRCxZQUFZO0lBQ2QsQ0FBQztJQUVPLFdBQVc7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Uge1xuICAgICAgdGhpcy5mbGFnU3ViamVjdCQubmV4dCh0cnVlKTtcbiAgICB9XG4gIH1cblxuICBwdWJsaWMgZ2V0IG9uRmxhZ3MoKTogT2JzZXJ2YWJsZTxhbnk+IHtcbiAgICByZXR1cm4gdGhpcy5mbGFnU3ViamVjdCQuYXNPYnNlcnZhYmxlKCk7XG4gIH1cblxuICBwdWJsaWMgZ2V0RmxhZyhmbGFnOiBzdHJpbmcpOiBib29sZWFuIHwgbnVsbCB7XG4gICAgY29uc3QgZmxhZ1ZhbHVlID0gdGhpcy5mbGFncz8uW2ZsYWddO1xuXG4gICAgcmV0dXJuIE1vbmtleVV0aWxzLnBlcnNpc3ROdWxsRW1wdHlVbmRlZmluZWQoZmxhZ1ZhbHVlKSA/IGZsYWdWYWx1ZSA6IG51bGw7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
/* eslint-disable prefer-rest-params */
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { NavigationEnd } from '@angular/router';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/router";
|
|
6
|
-
export class MonkeyEcxGAConfigService {
|
|
7
|
-
constructor(rt) {
|
|
8
|
-
this.rt = rt;
|
|
9
|
-
// not to do
|
|
10
|
-
}
|
|
11
|
-
apply(params, environment) {
|
|
12
|
-
const { ga } = params;
|
|
13
|
-
const { enabled, key } = ga || { enabled: false, key: '' };
|
|
14
|
-
if (enabled && environment.environment !== 'dev') {
|
|
15
|
-
const action = () => {
|
|
16
|
-
window.dataLayer = window.dataLayer || [];
|
|
17
|
-
window.gtag =
|
|
18
|
-
window.gtag ||
|
|
19
|
-
function gtag() {
|
|
20
|
-
window.dataLayer.push(arguments);
|
|
21
|
-
};
|
|
22
|
-
window.gtag('js', new Date());
|
|
23
|
-
window.gtag('config', key);
|
|
24
|
-
};
|
|
25
|
-
const pageChangeAction = () => {
|
|
26
|
-
this.rt.events.subscribe((event) => {
|
|
27
|
-
if (event instanceof NavigationEnd) {
|
|
28
|
-
window.gtag('set', 'page_path', event.url);
|
|
29
|
-
window.gtag('event', 'page_view');
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
const head = document.querySelector('head');
|
|
34
|
-
const script = document.createElement('script');
|
|
35
|
-
script.async = true;
|
|
36
|
-
script.id = 'ga-settings';
|
|
37
|
-
script.src = `//www.googletagmanager.com/gtag/js?id=${key}`;
|
|
38
|
-
script.onload = () => {
|
|
39
|
-
action();
|
|
40
|
-
pageChangeAction();
|
|
41
|
-
};
|
|
42
|
-
script.onerror = () => {
|
|
43
|
-
head?.removeChild(script);
|
|
44
|
-
};
|
|
45
|
-
head?.appendChild(script);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
MonkeyEcxGAConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
50
|
-
MonkeyEcxGAConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
52
|
-
type: Injectable,
|
|
53
|
-
args: [{
|
|
54
|
-
providedIn: 'root'
|
|
55
|
-
}]
|
|
56
|
-
}], ctorParameters: function () { return [{ type: i1.Router }]; } });
|
|
57
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/* eslint-disable prefer-rest-params */
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { NavigationEnd } from '@angular/router';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/router";
|
|
6
|
+
export class MonkeyEcxGAConfigService {
|
|
7
|
+
constructor(rt) {
|
|
8
|
+
this.rt = rt;
|
|
9
|
+
// not to do
|
|
10
|
+
}
|
|
11
|
+
apply(params, environment) {
|
|
12
|
+
const { ga } = params;
|
|
13
|
+
const { enabled, key } = ga || { enabled: false, key: '' };
|
|
14
|
+
if (enabled && environment.environment !== 'dev') {
|
|
15
|
+
const action = () => {
|
|
16
|
+
window.dataLayer = window.dataLayer || [];
|
|
17
|
+
window.gtag =
|
|
18
|
+
window.gtag ||
|
|
19
|
+
function gtag() {
|
|
20
|
+
window.dataLayer.push(arguments);
|
|
21
|
+
};
|
|
22
|
+
window.gtag('js', new Date());
|
|
23
|
+
window.gtag('config', key);
|
|
24
|
+
};
|
|
25
|
+
const pageChangeAction = () => {
|
|
26
|
+
this.rt.events.subscribe((event) => {
|
|
27
|
+
if (event instanceof NavigationEnd) {
|
|
28
|
+
window.gtag('set', 'page_path', event.url);
|
|
29
|
+
window.gtag('event', 'page_view');
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
const head = document.querySelector('head');
|
|
34
|
+
const script = document.createElement('script');
|
|
35
|
+
script.async = true;
|
|
36
|
+
script.id = 'ga-settings';
|
|
37
|
+
script.src = `//www.googletagmanager.com/gtag/js?id=${key}`;
|
|
38
|
+
script.onload = () => {
|
|
39
|
+
action();
|
|
40
|
+
pageChangeAction();
|
|
41
|
+
};
|
|
42
|
+
script.onerror = () => {
|
|
43
|
+
head?.removeChild(script);
|
|
44
|
+
};
|
|
45
|
+
head?.appendChild(script);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
MonkeyEcxGAConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxGAConfigService, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
50
|
+
MonkeyEcxGAConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxGAConfigService, providedIn: 'root' });
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyEcxGAConfigService, decorators: [{
|
|
52
|
+
type: Injectable,
|
|
53
|
+
args: [{
|
|
54
|
+
providedIn: 'root'
|
|
55
|
+
}]
|
|
56
|
+
}], ctorParameters: function () { return [{ type: i1.Router }]; } });
|
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWdhLWNvbmZpZy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LWZyb250LWNvcmUvc3JjL2xpYi9jb3JlL3NlcnZpY2VzL2NvbmZpZy9tb25rZXllY3gtZ2EtY29uZmlnLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsdUNBQXVDO0FBQ3ZDLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLGFBQWEsRUFBVSxNQUFNLGlCQUFpQixDQUFDOzs7QUFReEQsTUFBTSxPQUFPLHdCQUF3QjtJQUNuQyxZQUFvQixFQUFVO1FBQVYsT0FBRSxHQUFGLEVBQUUsQ0FBUTtRQUM1QixZQUFZO0lBQ2QsQ0FBQztJQUVNLEtBQUssQ0FBQyxNQUF1QixFQUFFLFdBQWdCO1FBQ3BELE1BQU0sRUFBRSxFQUFFLEVBQUUsR0FBRyxNQUFNLENBQUM7UUFDdEIsTUFBTSxFQUFFLE9BQU8sRUFBRSxHQUFHLEVBQUUsR0FBRyxFQUFFLElBQUksRUFBRSxPQUFPLEVBQUUsS0FBSyxFQUFFLEdBQUcsRUFBRSxFQUFFLEVBQUUsQ0FBQztRQUMzRCxJQUFJLE9BQU8sSUFBSSxXQUFXLENBQUMsV0FBVyxLQUFLLEtBQUssRUFBRTtZQUNoRCxNQUFNLE1BQU0sR0FBRyxHQUFHLEVBQUU7Z0JBQ2xCLE1BQU0sQ0FBQ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mxpYyBhcHBseShwYXJhbXM6IE1vbmtleUVjeENvbmZpZywgZW52aXJvbm1lbnQ6IGFueSkge1xuICAgIGNvbnN0IHsgZ2EgfSA9IHBhcmFtcztcbiAgICBjb25zdCB7IGVuYWJsZWQsIGtleSB9ID0gZ2EgfHwgeyBlbmFibGVkOiBmYWxzZSwga2V5OiAnJyB9O1xuICAgIGlmIChlbmFibGVkICYmIGVudmlyb25tZW50LmVudmlyb25tZW50ICE9PSAnZGV2Jykge1xuICAgICAgY29uc3QgYWN0aW9uID0gKCkgPT4ge1xuICAgICAgICB3aW5kb3cuZGF0YUxheWVyID0gd2luZG93LmRhdGFMYXllciB8fCBbXTtcbiAgICAgICAgd2luZG93Lmd0YWcgPVxuICAgICAgICAgIHdpbmRvdy5ndGFnIHx8XG4gICAgICAgICAgZnVuY3Rpb24gZ3RhZygpIHtcbiAgICAgICAgICAgIHdpbmRvdy5kYXRhTGF5ZXIucHVzaChhcmd1bWVudHMpO1xuICAgICAgICAgIH07XG5cbiAgICAgICAgd2luZG93Lmd0YWcoJ2pzJywgbmV3IERhdGUoKSk7XG4gICAgICAgIHdpbmRvdy5ndGFnKCdjb25maWcnLCBrZXkpO1xuICAgICAgfTtcblxuICAgICAgY29uc3QgcGFnZUNoYW5nZUFjdGlvbiA9ICgpID0+IHtcbiAgICAgICAgdGhpcy5ydC5ldmVudHMuc3Vic2NyaWJlKChldmVudDogYW55KSA9PiB7XG4gICAgICAgICAgaWYgKGV2ZW50IGluc3RhbmNlb2YgTmF2aWdhdGlvbkVuZCkge1xuICAgICAgICAgICAgd2luZG93Lmd0YWcoJ3NldCcsICdwYWdlX3BhdGgnLCBldmVudC51cmwpO1xuICAgICAgICAgICAgd2luZG93Lmd0YWcoJ2V2ZW50JywgJ3BhZ2VfdmlldycpO1xuICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICB9O1xuXG4gICAgICBjb25zdCBoZWFkID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvcignaGVhZCc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