monkey-front-core 0.0.500 → 0.0.501
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -24
- package/esm2020/lib/components/alerts/alerts.component.mjs +45 -45
- package/esm2020/lib/components/alerts/alerts.module.mjs +21 -21
- package/esm2020/lib/components/alerts/index.mjs +3 -3
- package/esm2020/lib/components/closed-to-maintenance/closed-to-maintenance.component.mjs +29 -29
- package/esm2020/lib/components/closed-to-maintenance/closed-to-maintenance.module.mjs +43 -43
- package/esm2020/lib/components/closed-to-maintenance/index.mjs +3 -3
- package/esm2020/lib/components/currency-config/currency-config.component.mjs +39 -39
- package/esm2020/lib/components/currency-config/currency-config.module.mjs +39 -39
- package/esm2020/lib/components/currency-config/index.mjs +3 -3
- package/esm2020/lib/components/index.mjs +6 -6
- package/esm2020/lib/components/progress-bar/index.mjs +4 -4
- package/esm2020/lib/components/progress-bar/progress-bar.component.mjs +23 -23
- package/esm2020/lib/components/progress-bar/progress-bar.module.mjs +18 -18
- package/esm2020/lib/components/progress-bar/progress-bar.service.mjs +50 -50
- package/esm2020/lib/components/version-changed/index.mjs +3 -3
- package/esm2020/lib/components/version-changed/version-changed.component.mjs +24 -24
- package/esm2020/lib/components/version-changed/version-changed.module.mjs +39 -39
- package/esm2020/lib/core/decorators/index.mjs +5 -5
- package/esm2020/lib/core/decorators/monkeyecx-charts-decorators.mjs +40 -40
- package/esm2020/lib/core/decorators/monkeyecx-decorators.mjs +111 -111
- package/esm2020/lib/core/decorators/monkeyecx-download-decorators.mjs +26 -26
- package/esm2020/lib/core/decorators/monkeyecx-upload-decorators.mjs +26 -26
- package/esm2020/lib/core/directives/index.mjs +13 -13
- package/esm2020/lib/core/directives/monkeyecx-directives-module.mjs +73 -73
- package/esm2020/lib/core/directives/monkeyecx-drag-drop.mjs +57 -57
- package/esm2020/lib/core/directives/monkeyecx-feature-by-program-directive.mjs +54 -54
- package/esm2020/lib/core/directives/monkeyecx-feature-directive.mjs +68 -68
- package/esm2020/lib/core/directives/monkeyecx-format-currency.mjs +44 -44
- package/esm2020/lib/core/directives/monkeyecx-format-upper.mjs +67 -67
- package/esm2020/lib/core/directives/monkeyecx-only-alpha-numeric-directive.mjs +28 -28
- package/esm2020/lib/core/directives/monkeyecx-only-number-directive.mjs +28 -28
- package/esm2020/lib/core/directives/monkeyecx-popover-options.directive.mjs +39 -39
- package/esm2020/lib/core/directives/monkeyecx-popover.directive.mjs +212 -212
- package/esm2020/lib/core/directives/monkeyecx-security-directive.mjs +75 -75
- package/esm2020/lib/core/directives/monkeyecx-tooltip-directive.mjs +123 -123
- package/esm2020/lib/core/index.mjs +10 -10
- package/esm2020/lib/core/injectors/index.mjs +4 -4
- package/esm2020/lib/core/interceptors/index.mjs +6 -6
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-error.interceptor.mjs +49 -49
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-header.interceptor.mjs +59 -59
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-interceptor.module.mjs +47 -47
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.mjs +43 -43
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.mjs +37 -37
- package/esm2020/lib/core/interfaces/index.mjs +35 -35
- package/esm2020/lib/core/interfaces/monkeyecx-auth-credentials.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-company-pendencies.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-company.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-config-bootstrap.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-config.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-country-security.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-error-response.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-filter.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-handled-error-response.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-header-credentials.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-intercom-options.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-interface.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-me-credentials.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-navigation.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-pagination.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-program.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-releases.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-request-in-progress.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-request-paged.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-resolver.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-response-links.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-response-paged.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-saved-state.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-scroll-options.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-service-credentials.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-storage.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-store.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-support-options.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-token-credentials.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-translate-options.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-download/index.mjs +4 -4
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-download.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-downloaded.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-item-download.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-queue/index.mjs +4 -4
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-queue.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-upload/index.mjs +3 -3
- package/esm2020/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-upload/monkeyecx-request-upload.mjs +2 -2
- package/esm2020/lib/core/interfaces/schedules/index.mjs +2 -2
- package/esm2020/lib/core/interfaces/schedules/monkeyecx-request-schedule.mjs +2 -2
- package/esm2020/lib/core/model/index.mjs +3 -3
- package/esm2020/lib/core/model/monkeyecx-links.model.mjs +8 -8
- package/esm2020/lib/core/model/monkeyecx-model.mjs +26 -26
- package/esm2020/lib/core/pipes/index.mjs +22 -22
- package/esm2020/lib/core/pipes/monkeyecx-blob-secure.mjs +26 -26
- package/esm2020/lib/core/pipes/monkeyecx-display-first-name.mjs +19 -19
- package/esm2020/lib/core/pipes/monkeyecx-display-initials.mjs +21 -21
- package/esm2020/lib/core/pipes/monkeyecx-display-support-phone.mjs +33 -33
- package/esm2020/lib/core/pipes/monkeyecx-format-address.mjs +20 -20
- package/esm2020/lib/core/pipes/monkeyecx-format-beautify-json.mjs +38 -38
- package/esm2020/lib/core/pipes/monkeyecx-format-currency.mjs +42 -42
- 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-date.mjs +29 -29
- package/esm2020/lib/core/pipes/monkeyecx-format-document.mjs +20 -20
- 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 +121 -121
- package/esm2020/lib/core/pipes/monkeyecx-text-truncate.mjs +23 -23
- package/esm2020/lib/core/pipes/monkeyecx-truncate-qtd.mjs +16 -16
- package/esm2020/lib/core/services/alerts/index.mjs +2 -2
- package/esm2020/lib/core/services/alerts/monkeyecx-alerts.service.mjs +42 -42
- package/esm2020/lib/core/services/auth/index.mjs +6 -6
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-company.service.mjs +28 -28
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-login.service.mjs +27 -27
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-role.service.mjs +79 -79
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard.service.mjs +26 -26
- package/esm2020/lib/core/services/auth/monkeyecx-authentication.service.mjs +78 -78
- package/esm2020/lib/core/services/commons/index.mjs +3 -3
- package/esm2020/lib/core/services/commons/monkeyecx-commons-resolve-base.service.mjs +108 -108
- package/esm2020/lib/core/services/commons/monkeyecx-commons-resolve.service.mjs +126 -126
- package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +362 -362
- package/esm2020/lib/core/services/config/monkeyecx-alerts-config.service.mjs +42 -42
- package/esm2020/lib/core/services/config/monkeyecx-config.module.mjs +28 -28
- package/esm2020/lib/core/services/config/monkeyecx-config.service.mjs +106 -106
- package/esm2020/lib/core/services/config/monkeyecx-currency-config.service.mjs +84 -84
- package/esm2020/lib/core/services/config/monkeyecx-error-config.service.mjs +85 -85
- package/esm2020/lib/core/services/config/monkeyecx-feature-toggle.service.mjs +76 -76
- package/esm2020/lib/core/services/config/monkeyecx-gtm-config.service.mjs +50 -50
- package/esm2020/lib/core/services/config/monkeyecx-i18n-config.service.mjs +138 -138
- 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 +47 -47
- package/esm2020/lib/core/services/config/monkeyecx-service-worker-config.service.mjs +53 -53
- package/esm2020/lib/core/services/error/index.mjs +5 -5
- package/esm2020/lib/core/services/error/monkeyecx-error-handling.module.mjs +27 -27
- package/esm2020/lib/core/services/error/monkeyecx-error-handling.service.mjs +37 -37
- package/esm2020/lib/core/services/error/monkeyecx-http-error-handling.service.mjs +138 -138
- package/esm2020/lib/core/services/error/monkeyecx-others-errors-handling.service.mjs +29 -29
- package/esm2020/lib/core/services/index.mjs +26 -26
- package/esm2020/lib/core/services/logged/index.mjs +2 -2
- package/esm2020/lib/core/services/logged/monkeyecx-logged-handling.service.mjs +40 -40
- package/esm2020/lib/core/services/monkeyecx-handling.service.mjs +50 -50
- package/esm2020/lib/core/services/monkeyecx-service.service.mjs +104 -104
- package/esm2020/lib/core/services/pagination/index.mjs +2 -2
- package/esm2020/lib/core/services/pagination/monkeyecx-pagination.service.mjs +29 -29
- package/esm2020/lib/core/services/request-download/index.mjs +3 -3
- package/esm2020/lib/core/services/request-download/monkeyecx-request-download-handling.service.mjs +93 -93
- package/esm2020/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.mjs +61 -61
- package/esm2020/lib/core/services/request-paged/index.mjs +2 -2
- package/esm2020/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.mjs +42 -42
- package/esm2020/lib/core/services/request-queue/index.mjs +3 -3
- package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.mjs +114 -114
- package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.mjs +119 -119
- package/esm2020/lib/core/services/routes/index.mjs +2 -2
- package/esm2020/lib/core/services/routes/monkeyecx-dicovery-params.service.mjs +54 -54
- package/esm2020/lib/core/services/schedules/index.mjs +2 -2
- package/esm2020/lib/core/services/schedules/monkeyecx-request-schedule.service.mjs +188 -188
- package/esm2020/lib/core/services/storage/index.mjs +3 -3
- package/esm2020/lib/core/services/storage/monkeyecx-cookie-storage.service.mjs +32 -32
- package/esm2020/lib/core/services/storage/monkeyecx-token-storage.service.mjs +236 -236
- package/esm2020/lib/core/services/store/index.mjs +4 -4
- package/esm2020/lib/core/services/store/monkeyecx-store-base.service.mjs +170 -170
- package/esm2020/lib/core/services/store/monkeyecx-store.actions.mjs +25 -25
- package/esm2020/lib/core/services/store/monkeyecx-store.selector.mjs +80 -80
- package/esm2020/lib/core/services/store/monkeyecx-store.service.mjs +189 -189
- package/esm2020/lib/core/specification-search/index.mjs +2 -2
- package/esm2020/lib/core/specification-search/monkeyecx-specification-search.mjs +108 -108
- package/esm2020/lib/core/utils/decorators-utils.mjs +40 -40
- package/esm2020/lib/core/utils/index.mjs +8 -8
- package/esm2020/lib/core/utils/statics.mjs +45 -45
- package/esm2020/lib/core/utils/utils.mjs +267 -267
- package/esm2020/lib/core/utils/validate-utils.mjs +205 -205
- package/esm2020/lib/core/utils/validators.mjs +268 -268
- package/esm2020/lib/monkey-front-core.module.mjs +71 -71
- package/esm2020/lib/store/actions/index.mjs +2 -2
- package/esm2020/lib/store/actions/monkeyecx-storage.actions.mjs +8 -8
- package/esm2020/lib/store/index.mjs +4 -4
- package/esm2020/lib/store/reducers/index.mjs +3 -3
- package/esm2020/lib/store/reducers/monkeyecx-seeder.reducer.mjs +53 -53
- package/esm2020/lib/store/reducers/monkeyecx-storage.reducer.mjs +40 -40
- package/esm2020/lib/store/selectors/index.mjs +2 -2
- package/esm2020/lib/store/selectors/monkeyecx-storage.selector.mjs +17 -17
- package/esm2020/monkey-front-core.mjs +4 -4
- package/esm2020/public-api.mjs +8 -8
- package/fesm2015/monkey-front-core.mjs +6296 -6296
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +6324 -6324
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/components/alerts/alerts.component.d.ts +22 -22
- package/lib/components/alerts/alerts.module.d.ts +10 -10
- package/lib/components/alerts/index.d.ts +2 -2
- package/lib/components/closed-to-maintenance/closed-to-maintenance.component.d.ts +13 -13
- package/lib/components/closed-to-maintenance/closed-to-maintenance.module.d.ts +11 -11
- package/lib/components/closed-to-maintenance/index.d.ts +2 -2
- package/lib/components/currency-config/currency-config.component.d.ts +17 -17
- package/lib/components/currency-config/currency-config.module.d.ts +10 -10
- package/lib/components/currency-config/index.d.ts +2 -2
- package/lib/components/index.d.ts +5 -5
- package/lib/components/progress-bar/index.d.ts +3 -3
- package/lib/components/progress-bar/progress-bar.component.d.ts +11 -11
- package/lib/components/progress-bar/progress-bar.module.d.ts +8 -8
- package/lib/components/progress-bar/progress-bar.service.d.ts +14 -14
- package/lib/components/version-changed/index.d.ts +2 -2
- package/lib/components/version-changed/version-changed.component.d.ts +9 -9
- package/lib/components/version-changed/version-changed.module.d.ts +10 -10
- package/lib/core/decorators/index.d.ts +4 -4
- package/lib/core/decorators/monkeyecx-charts-decorators.d.ts +1 -1
- package/lib/core/decorators/monkeyecx-decorators.d.ts +7 -7
- package/lib/core/decorators/monkeyecx-download-decorators.d.ts +2 -2
- package/lib/core/decorators/monkeyecx-upload-decorators.d.ts +2 -2
- package/lib/core/directives/index.d.ts +12 -12
- package/lib/core/directives/monkeyecx-directives-module.d.ts +19 -19
- package/lib/core/directives/monkeyecx-drag-drop.d.ts +12 -12
- package/lib/core/directives/monkeyecx-feature-by-program-directive.d.ts +16 -16
- package/lib/core/directives/monkeyecx-feature-directive.d.ts +17 -17
- package/lib/core/directives/monkeyecx-format-currency.d.ts +16 -16
- package/lib/core/directives/monkeyecx-format-upper.d.ts +18 -18
- package/lib/core/directives/monkeyecx-only-alpha-numeric-directive.d.ts +9 -9
- package/lib/core/directives/monkeyecx-only-number-directive.d.ts +9 -9
- package/lib/core/directives/monkeyecx-popover-options.directive.d.ts +19 -19
- package/lib/core/directives/monkeyecx-popover.directive.d.ts +43 -43
- package/lib/core/directives/monkeyecx-security-directive.d.ts +18 -18
- package/lib/core/directives/monkeyecx-tooltip-directive.d.ts +23 -23
- package/lib/core/index.d.ts +10 -10
- package/lib/core/injectors/index.d.ts +4 -4
- package/lib/core/interceptors/index.d.ts +5 -5
- package/lib/core/interceptors/monkeyecx-http-config-error.interceptor.d.ts +18 -18
- package/lib/core/interceptors/monkeyecx-http-config-header.interceptor.d.ts +16 -16
- package/lib/core/interceptors/monkeyecx-http-config-interceptor.module.d.ts +9 -9
- package/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.d.ts +12 -12
- package/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.d.ts +14 -14
- package/lib/core/interfaces/index.d.ts +34 -34
- package/lib/core/interfaces/monkeyecx-auth-credentials.d.ts +15 -15
- package/lib/core/interfaces/monkeyecx-company-pendencies.d.ts +14 -14
- package/lib/core/interfaces/monkeyecx-company.d.ts +10 -10
- package/lib/core/interfaces/monkeyecx-config-bootstrap.d.ts +14 -14
- package/lib/core/interfaces/monkeyecx-config.d.ts +132 -132
- package/lib/core/interfaces/monkeyecx-country-security.d.ts +4 -4
- package/lib/core/interfaces/monkeyecx-error-response.d.ts +5 -5
- package/lib/core/interfaces/monkeyecx-filter.d.ts +42 -42
- package/lib/core/interfaces/monkeyecx-handled-error-response.d.ts +10 -10
- package/lib/core/interfaces/monkeyecx-header-credentials.d.ts +4 -4
- package/lib/core/interfaces/monkeyecx-intercom-options.d.ts +4 -4
- package/lib/core/interfaces/monkeyecx-interface.d.ts +11 -11
- 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-pagination.d.ts +26 -26
- 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-resolver.d.ts +39 -39
- package/lib/core/interfaces/monkeyecx-response-links.d.ts +11 -11
- package/lib/core/interfaces/monkeyecx-response-paged.d.ts +6 -6
- package/lib/core/interfaces/monkeyecx-saved-state.d.ts +5 -5
- package/lib/core/interfaces/monkeyecx-scroll-options.d.ts +5 -5
- package/lib/core/interfaces/monkeyecx-service-credentials.d.ts +12 -12
- package/lib/core/interfaces/monkeyecx-storage.d.ts +38 -38
- package/lib/core/interfaces/monkeyecx-store.d.ts +35 -35
- package/lib/core/interfaces/monkeyecx-support-options.d.ts +4 -4
- package/lib/core/interfaces/monkeyecx-token-credentials.d.ts +21 -21
- 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 +2 -2
- package/lib/core/model/monkeyecx-links.model.d.ts +4 -4
- package/lib/core/model/monkeyecx-model.d.ts +14 -14
- package/lib/core/pipes/index.d.ts +22 -22
- package/lib/core/pipes/monkeyecx-blob-secure.d.ts +13 -13
- package/lib/core/pipes/monkeyecx-display-first-name.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-display-initials.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-display-support-phone.d.ts +18 -18
- package/lib/core/pipes/monkeyecx-format-address.d.ts +14 -14
- package/lib/core/pipes/monkeyecx-format-beautify-json.d.ts +8 -8
- package/lib/core/pipes/monkeyecx-format-currency.d.ts +12 -12
- 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-date.d.ts +12 -12
- 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 +27 -27
- package/lib/core/pipes/monkeyecx-text-truncate.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-truncate-qtd.d.ts +7 -7
- package/lib/core/services/alerts/index.d.ts +1 -1
- package/lib/core/services/alerts/monkeyecx-alerts.service.d.ts +21 -21
- package/lib/core/services/auth/index.d.ts +5 -5
- package/lib/core/services/auth/monkeyecx-auth-guard-company.service.d.ts +10 -10
- package/lib/core/services/auth/monkeyecx-auth-guard-login.service.d.ts +10 -10
- package/lib/core/services/auth/monkeyecx-auth-guard-role.service.d.ts +16 -16
- package/lib/core/services/auth/monkeyecx-auth-guard.service.d.ts +10 -10
- package/lib/core/services/auth/monkeyecx-authentication.service.d.ts +35 -35
- package/lib/core/services/commons/index.d.ts +3 -3
- package/lib/core/services/commons/monkeyecx-commons-resolve-base.service.d.ts +46 -46
- package/lib/core/services/commons/monkeyecx-commons-resolve.service.d.ts +60 -60
- package/lib/core/services/commons/monkeyecx-commons.service.d.ts +120 -120
- package/lib/core/services/config/monkeyecx-alerts-config.service.d.ts +11 -11
- package/lib/core/services/config/monkeyecx-config.module.d.ts +9 -9
- package/lib/core/services/config/monkeyecx-config.service.d.ts +36 -36
- package/lib/core/services/config/monkeyecx-currency-config.service.d.ts +15 -15
- package/lib/core/services/config/monkeyecx-error-config.service.d.ts +8 -8
- package/lib/core/services/config/monkeyecx-feature-toggle.service.d.ts +16 -16
- package/lib/core/services/config/monkeyecx-gtm-config.service.d.ts +8 -8
- package/lib/core/services/config/monkeyecx-i18n-config.service.d.ts +21 -21
- 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 +12 -12
- 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 +25 -25
- package/lib/core/services/logged/index.d.ts +1 -1
- package/lib/core/services/logged/monkeyecx-logged-handling.service.d.ts +14 -14
- package/lib/core/services/monkeyecx-handling.service.d.ts +22 -22
- package/lib/core/services/monkeyecx-service.service.d.ts +18 -18
- package/lib/core/services/pagination/index.d.ts +1 -1
- package/lib/core/services/pagination/monkeyecx-pagination.service.d.ts +9 -9
- package/lib/core/services/request-download/index.d.ts +2 -2
- package/lib/core/services/request-download/monkeyecx-request-download-handling.service.d.ts +18 -18
- package/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.d.ts +16 -16
- package/lib/core/services/request-paged/index.d.ts +1 -1
- package/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.d.ts +11 -11
- package/lib/core/services/request-queue/index.d.ts +2 -2
- package/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.d.ts +21 -21
- package/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.d.ts +23 -23
- package/lib/core/services/routes/index.d.ts +1 -1
- package/lib/core/services/routes/monkeyecx-dicovery-params.service.d.ts +13 -13
- package/lib/core/services/schedules/index.d.ts +1 -1
- package/lib/core/services/schedules/monkeyecx-request-schedule.service.d.ts +47 -47
- package/lib/core/services/storage/index.d.ts +2 -2
- package/lib/core/services/storage/monkeyecx-cookie-storage.service.d.ts +11 -11
- package/lib/core/services/storage/monkeyecx-token-storage.service.d.ts +30 -30
- package/lib/core/services/store/index.d.ts +4 -4
- package/lib/core/services/store/monkeyecx-store-base.service.d.ts +47 -47
- package/lib/core/services/store/monkeyecx-store.actions.d.ts +56 -56
- package/lib/core/services/store/monkeyecx-store.selector.d.ts +31 -31
- package/lib/core/services/store/monkeyecx-store.service.d.ts +50 -50
- package/lib/core/specification-search/index.d.ts +1 -1
- package/lib/core/specification-search/monkeyecx-specification-search.d.ts +20 -20
- package/lib/core/utils/decorators-utils.d.ts +5 -5
- package/lib/core/utils/index.d.ts +6 -6
- package/lib/core/utils/statics.d.ts +34 -34
- package/lib/core/utils/utils.d.ts +26 -26
- package/lib/core/utils/validate-utils.d.ts +66 -66
- package/lib/core/utils/validators.d.ts +36 -36
- package/lib/monkey-front-core.module.d.ts +19 -19
- package/lib/store/actions/index.d.ts +1 -1
- package/lib/store/actions/monkeyecx-storage.actions.d.ts +23 -23
- package/lib/store/index.d.ts +3 -3
- package/lib/store/reducers/index.d.ts +2 -2
- package/lib/store/reducers/monkeyecx-seeder.reducer.d.ts +2 -2
- package/lib/store/reducers/monkeyecx-storage.reducer.d.ts +13 -13
- package/lib/store/selectors/index.d.ts +1 -1
- package/lib/store/selectors/monkeyecx-storage.selector.d.ts +8 -8
- package/monkey-front-core-0.0.501.tgz +0 -0
- package/monkey-front-core.d.ts +5 -5
- package/package.json +3 -3
- package/public-api.d.ts +4 -4
- package/monkey-front-core-0.0.500.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.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
78
|
-
MonkeyEcxErrorConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, providedIn: 'root' });
|
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, decorators: [{
|
|
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.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
78
|
+
MonkeyEcxErrorConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, providedIn: 'root' });
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, decorators: [{
|
|
80
|
+
type: Injectable,
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H0pO1xuXG4gICAgZG9jdW1lbnQuYm9keS5hcHBlbmRDaGlsZChlbGVtZW50KTtcblxuICAgIGRvY3VtZW50LmJvZHkuZ2V0RWxlbWVudHNCeVRhZ05hbWUoJ2FwcC1yb290JylbMF0ucmVtb3ZlKCk7XG4gICAgdGhpcy5lbmFibGVTdXBwb3J0KCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,76 +1,76 @@
|
|
|
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
|
-
kind: 'user',
|
|
25
|
-
key: `${config.program?.token}#${email}`
|
|
26
|
-
};
|
|
27
|
-
if (!this.ldClient) {
|
|
28
|
-
this.ldClient = initialize(environment.launchDarklyClientSideID, user, {
|
|
29
|
-
streaming: true,
|
|
30
|
-
disableSyncEventPost: true,
|
|
31
|
-
sendEvents: false,
|
|
32
|
-
diagnosticOptOut: true,
|
|
33
|
-
logger: {
|
|
34
|
-
debug: () => { },
|
|
35
|
-
warn: () => { },
|
|
36
|
-
info: () => { },
|
|
37
|
-
error: (args) => {
|
|
38
|
-
console.log('Monkey Client => ', args);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
this.ldClient.on('change', this.getAllFlags.bind(this));
|
|
43
|
-
this.ldClient.on('ready', this.getAllFlags.bind(this));
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
this.ldClient.identify(user, undefined, this.getAllFlags);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
apply(configSubject$, environment) {
|
|
51
|
-
if (environment.launchDarklyClientSideID) {
|
|
52
|
-
configSubject$.subscribe((config) => {
|
|
53
|
-
this.identify(config, environment);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
this.flagSubject$.next(true);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
get onFlags() {
|
|
61
|
-
return this.flagSubject$.asObservable();
|
|
62
|
-
}
|
|
63
|
-
getFlag(flag) {
|
|
64
|
-
const flagValue = this.flags?.[flag];
|
|
65
|
-
return MonkeyUtils.persistNullEmptyUndefined(flagValue) ? flagValue : null;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
MonkeyEcxFeatureToggleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
69
|
-
MonkeyEcxFeatureToggleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, providedIn: 'root' });
|
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, decorators: [{
|
|
71
|
-
type: Injectable,
|
|
72
|
-
args: [{
|
|
73
|
-
providedIn: 'root'
|
|
74
|
-
}]
|
|
75
|
-
}], ctorParameters: function () { return []; } });
|
|
76
|
-
//# 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
|
+
kind: 'user',
|
|
25
|
+
key: `${config.program?.token}#${email}`
|
|
26
|
+
};
|
|
27
|
+
if (!this.ldClient) {
|
|
28
|
+
this.ldClient = initialize(environment.launchDarklyClientSideID, user, {
|
|
29
|
+
streaming: true,
|
|
30
|
+
disableSyncEventPost: true,
|
|
31
|
+
sendEvents: false,
|
|
32
|
+
diagnosticOptOut: true,
|
|
33
|
+
logger: {
|
|
34
|
+
debug: () => { },
|
|
35
|
+
warn: () => { },
|
|
36
|
+
info: () => { },
|
|
37
|
+
error: (args) => {
|
|
38
|
+
console.log('Monkey Client => ', args);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
this.ldClient.on('change', this.getAllFlags.bind(this));
|
|
43
|
+
this.ldClient.on('ready', this.getAllFlags.bind(this));
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
this.ldClient.identify(user, undefined, this.getAllFlags);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
apply(configSubject$, environment) {
|
|
51
|
+
if (environment.launchDarklyClientSideID) {
|
|
52
|
+
configSubject$.subscribe((config) => {
|
|
53
|
+
this.identify(config, environment);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this.flagSubject$.next(true);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
get onFlags() {
|
|
61
|
+
return this.flagSubject$.asObservable();
|
|
62
|
+
}
|
|
63
|
+
getFlag(flag) {
|
|
64
|
+
const flagValue = this.flags?.[flag];
|
|
65
|
+
return MonkeyUtils.persistNullEmptyUndefined(flagValue) ? flagValue : null;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
MonkeyEcxFeatureToggleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
69
|
+
MonkeyEcxFeatureToggleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, providedIn: 'root' });
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, decorators: [{
|
|
71
|
+
type: Injectable,
|
|
72
|
+
args: [{
|
|
73
|
+
providedIn: 'root'
|
|
74
|
+
}]
|
|
75
|
+
}], ctorParameters: function () { return []; } });
|
|
76
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWZlYXR1cmUtdG9nZ2xlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29yZS9zcmMvbGliL2NvcmUvc2VydmljZXMvY29uZmlnL21vbmtleW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Ghpcy5sZENsaWVudCkge1xuICAgICAgICB0aGlzLmxkQ2xpZW50ID0gaW5pdGlhbGl6ZShlbnZpcm9ubWVudC5sYXVuY2hEYXJrbHlDbGllbnRTaWRlSUQsIHVzZXIsIHtcbiAgICAgICAgICBzdHJlYW1pbmc6IHRydWUsXG4gICAgICAgICAgZGlzYWJsZVN5bmNFdmVudFBvc3Q6IHRydWUsXG4gICAgICAgICAgc2VuZEV2ZW50czogZmFsc2UsXG4gICAgICAgICAgZGlhZ25vc3RpY09wdE91dDogdHJ1ZSxcbiAgICAgICAgICBsb2dnZXI6IHtcbiAgICAgICAgICAgIGRlYnVnOiAoKSA9PiB7fSxcbiAgICAgICAgICAgIHdhcm46ICgpID0+IHt9LFxuICAgICAgICAgICAgaW5mbzogKCkgPT4ge30sXG4gICAgICAgICAgICBlcnJvcjogKGFyZ3M6IGFueSkgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZygnTW9ua2V5IENsaWVudCA9PiAnLCBhcmdzKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHRoaXMubGRDbGllbnQub24oJ2NoYW5nZScsIHRoaXMuZ2V0QWxsRmxhZ3MuYmluZCh0aGlzKSk7XG4gICAgICAgIHRoaXMubGRDbGllbnQub24oJ3JlYWR5JywgdGhpcy5nZXRBbGxGbGFncy5iaW5kKHRoaXMpKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHRoaXMubGRDbGllbnQuaWRlbnRpZnkodXNlciwgdW5kZWZpbmVkLCB0aGlzLmdldEFsbEZsYWdzKTtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICBwdWJsaWMgYXBwbHkoY29uZmlnU3ViamVjdCQ6IEJlaGF2aW9yU3ViamVjdDxNb25rZXlFY3hDb25maWc+LCBlbnZpcm9ubWVudDogYW55KSB7XG4gICAgaWYgKGVudmlyb25tZW50LmxhdW5jaERhcmtseUNsaWVudFNpZGVJRCkge1xuICAgICAgY29uZmlnU3ViamVjdCQuc3Vic2NyaWJlKChjb25maWcpID0+IHtcbiAgICAgICAgdGhpcy5pZGVudGlmeShjb25maWcsIGVudmlyb25tZW50KTtcbiAgICAgIH0pO1xuICAgIH0gZWxzZSB7XG4gICAgICB0aGlzLmZsYWdTdWJqZWN0JC5uZXh0KHRydWUpO1xuICAgIH1cbiAgfVxuXG4gIHB1YmxpYyBnZXQgb25GbGFncygpOiBPYnNlcnZhYmxlPGFueT4ge1xuICAgIHJldHVybiB0aGlzLmZsYWdTdWJqZWN0JC5hc09ic2VydmFibGUoKTtcbiAgfVxuXG4gIHB1YmxpYyBnZXRGbGFnKGZsYWc6IHN0cmluZyk6IGJvb2xlYW4gfCBudWxsIHtcbiAgICBjb25zdCBmbGFnVmFsdWUgPSB0aGlzLmZsYWdzPy5bZmxhZ107XG5cbiAgICByZXR1cm4gTW9ua2V5VXRpbHMucGVyc2lzdE51bGxFbXB0eVVuZGVmaW5lZChmbGFnVmFsdWUpID8gZmxhZ1ZhbHVlIDogbnVsbDtcbiAgfVxufVxuIl19
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
/* eslint-disable no-console */
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class MonkeyEcxGTMConfigService {
|
|
5
|
-
constructor() {
|
|
6
|
-
// not to do
|
|
7
|
-
}
|
|
8
|
-
handleCode(key) {
|
|
9
|
-
try {
|
|
10
|
-
window.dataLayer = window.dataLayer || [];
|
|
11
|
-
window.dataLayer.push({
|
|
12
|
-
'gtm.start': new Date().getTime(),
|
|
13
|
-
event: 'gtm.js'
|
|
14
|
-
});
|
|
15
|
-
const head = document.querySelector('head');
|
|
16
|
-
const script = document.createElement('script');
|
|
17
|
-
script.async = true;
|
|
18
|
-
script.src = `https://www.googletagmanager.com/gtm.js?id=GTM-${key}`;
|
|
19
|
-
head?.appendChild(script);
|
|
20
|
-
const body = document.querySelector('body');
|
|
21
|
-
const noscript = document.createElement('noscript');
|
|
22
|
-
const iframe = document.createElement('iframe');
|
|
23
|
-
iframe.src = `https://www.googletagmanager.com/ns.html?id=GTM-${key}`;
|
|
24
|
-
iframe.height = '0';
|
|
25
|
-
iframe.width = '0';
|
|
26
|
-
iframe.style.display = 'none';
|
|
27
|
-
iframe.style.visibility = 'hidden';
|
|
28
|
-
noscript.appendChild(iframe);
|
|
29
|
-
body?.appendChild(noscript);
|
|
30
|
-
}
|
|
31
|
-
catch (e) {
|
|
32
|
-
console.error('GTM Configuration Error!');
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
apply(environment) {
|
|
36
|
-
const { gtm } = environment;
|
|
37
|
-
const { enabled, key } = gtm || { enabled: false, key: '' };
|
|
38
|
-
if (enabled && environment.environment !== 'dev') {
|
|
39
|
-
this.handleCode(key);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
MonkeyEcxGTMConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxGTMConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
44
|
-
MonkeyEcxGTMConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxGTMConfigService, providedIn: 'root' });
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxGTMConfigService, decorators: [{
|
|
46
|
-
type: Injectable,
|
|
47
|
-
args: [{
|
|
48
|
-
providedIn: 'root'
|
|
49
|
-
}]
|
|
50
|
-
}], ctorParameters: function () { return []; } });
|
|
1
|
+
/* eslint-disable no-console */
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class MonkeyEcxGTMConfigService {
|
|
5
|
+
constructor() {
|
|
6
|
+
// not to do
|
|
7
|
+
}
|
|
8
|
+
handleCode(key) {
|
|
9
|
+
try {
|
|
10
|
+
window.dataLayer = window.dataLayer || [];
|
|
11
|
+
window.dataLayer.push({
|
|
12
|
+
'gtm.start': new Date().getTime(),
|
|
13
|
+
event: 'gtm.js'
|
|
14
|
+
});
|
|
15
|
+
const head = document.querySelector('head');
|
|
16
|
+
const script = document.createElement('script');
|
|
17
|
+
script.async = true;
|
|
18
|
+
script.src = `https://www.googletagmanager.com/gtm.js?id=GTM-${key}`;
|
|
19
|
+
head?.appendChild(script);
|
|
20
|
+
const body = document.querySelector('body');
|
|
21
|
+
const noscript = document.createElement('noscript');
|
|
22
|
+
const iframe = document.createElement('iframe');
|
|
23
|
+
iframe.src = `https://www.googletagmanager.com/ns.html?id=GTM-${key}`;
|
|
24
|
+
iframe.height = '0';
|
|
25
|
+
iframe.width = '0';
|
|
26
|
+
iframe.style.display = 'none';
|
|
27
|
+
iframe.style.visibility = 'hidden';
|
|
28
|
+
noscript.appendChild(iframe);
|
|
29
|
+
body?.appendChild(noscript);
|
|
30
|
+
}
|
|
31
|
+
catch (e) {
|
|
32
|
+
console.error('GTM Configuration Error!');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
apply(environment) {
|
|
36
|
+
const { gtm } = environment;
|
|
37
|
+
const { enabled, key } = gtm || { enabled: false, key: '' };
|
|
38
|
+
if (enabled && environment.environment !== 'dev') {
|
|
39
|
+
this.handleCode(key);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
MonkeyEcxGTMConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxGTMConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
44
|
+
MonkeyEcxGTMConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxGTMConfigService, providedIn: 'root' });
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxGTMConfigService, decorators: [{
|
|
46
|
+
type: Injectable,
|
|
47
|
+
args: [{
|
|
48
|
+
providedIn: 'root'
|
|
49
|
+
}]
|
|
50
|
+
}], ctorParameters: function () { return []; } });
|
|
51
51
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWd0bS1jb25maWcuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21vbmtleS1mcm9udC1jb3JlL3NyYy9saWIvY29yZS9zZXJ2aWNlcy9jb25maWcvbW9ua2V5ZWN4LWd0bS1jb25maWcuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSwrQkFBK0I7QUFDL0IsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFPM0MsTUFBTSxPQUFPLHlCQUF5QjtJQUNwQztRQUNFLFlBQVk7SUFDZCxDQUFDO0lBRU8sVUFBVSxDQUFDLEdBQVc7UUFDNUIsSUFBSTtZQUNGLE1BQU0sQ0FBQyxTQUFTLEdBQUcsTUFBTSxDQUFDLFNBQVMsSUFBSSxFQUFFLENBQUM7WUFDMUMsTUFBTSxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUM7Z0JBQ3BCLFdBQVcsRUFBRSxJQUFJLElBQUksRUFBRSxDQUFDLE9BQU8sRUFBRTtnQkFDakMsS0FBSyxFQUFFLFFBQVE7YUFDaEIsQ0FBQyxDQUFDO1lBQ0gsTUFBTSxJQUFJLEdBQUcsUUFBUSxDQUFDLGFBQWEsQ0FBQyxNQUFNLENBQUMsQ0FBQztZQUM1QyxNQUFNLE1BQU0sR0FBRyxRQUFRLENBQUMsYUFBYSxDQUFDLFFBQVEsQ0FB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