monkey-front-core 0.0.465 → 0.0.466
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/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 +1 -1
- 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 +1 -1
- 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 +25 -25
- 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 +27 -27
- package/esm2020/lib/core/pipes/monkeyecx-format-date-group.mjs +45 -45
- package/esm2020/lib/core/pipes/monkeyecx-format-date-timelapse.mjs +32 -32
- package/esm2020/lib/core/pipes/monkeyecx-format-date-unix-timelapse.mjs +36 -36
- package/esm2020/lib/core/pipes/monkeyecx-format-document.mjs +20 -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 +117 -117
- package/esm2020/lib/core/pipes/monkeyecx-text-truncate.mjs +23 -23
- package/esm2020/lib/core/pipes/monkeyecx-truncate-qtd.mjs +16 -16
- package/esm2020/lib/core/services/alerts/index.mjs +2 -2
- package/esm2020/lib/core/services/alerts/monkeyecx-alerts.service.mjs +42 -42
- package/esm2020/lib/core/services/auth/index.mjs +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.service.mjs +121 -121
- 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 +107 -107
- 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 +152 -152
- 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 +3 -3
- package/esm2020/lib/core/services/store/monkeyecx-store.actions.mjs +25 -25
- package/esm2020/lib/core/services/store/monkeyecx-store.selector.mjs +68 -74
- 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 +5950 -5957
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +6008 -6014
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/components/alerts/alerts.component.d.ts +22 -22
- package/lib/components/alerts/alerts.module.d.ts +10 -10
- package/lib/components/alerts/index.d.ts +2 -2
- package/lib/components/closed-to-maintenance/closed-to-maintenance.component.d.ts +13 -13
- package/lib/components/closed-to-maintenance/closed-to-maintenance.module.d.ts +11 -11
- package/lib/components/closed-to-maintenance/index.d.ts +2 -2
- package/lib/components/currency-config/currency-config.component.d.ts +17 -17
- package/lib/components/currency-config/currency-config.module.d.ts +10 -10
- package/lib/components/currency-config/index.d.ts +2 -2
- package/lib/components/index.d.ts +5 -5
- package/lib/components/progress-bar/index.d.ts +3 -3
- package/lib/components/progress-bar/progress-bar.component.d.ts +11 -11
- package/lib/components/progress-bar/progress-bar.module.d.ts +8 -8
- package/lib/components/progress-bar/progress-bar.service.d.ts +14 -14
- package/lib/components/version-changed/index.d.ts +2 -2
- package/lib/components/version-changed/version-changed.component.d.ts +9 -9
- package/lib/components/version-changed/version-changed.module.d.ts +10 -10
- package/lib/core/decorators/index.d.ts +4 -4
- package/lib/core/decorators/monkeyecx-charts-decorators.d.ts +1 -1
- package/lib/core/decorators/monkeyecx-decorators.d.ts +7 -7
- package/lib/core/decorators/monkeyecx-download-decorators.d.ts +2 -2
- package/lib/core/decorators/monkeyecx-upload-decorators.d.ts +2 -2
- package/lib/core/directives/index.d.ts +12 -12
- package/lib/core/directives/monkeyecx-directives-module.d.ts +19 -19
- package/lib/core/directives/monkeyecx-drag-drop.d.ts +12 -12
- package/lib/core/directives/monkeyecx-feature-by-program-directive.d.ts +16 -16
- package/lib/core/directives/monkeyecx-feature-directive.d.ts +17 -17
- package/lib/core/directives/monkeyecx-format-currency.d.ts +16 -16
- package/lib/core/directives/monkeyecx-format-upper.d.ts +18 -18
- package/lib/core/directives/monkeyecx-only-alpha-numeric-directive.d.ts +9 -9
- package/lib/core/directives/monkeyecx-only-number-directive.d.ts +9 -9
- package/lib/core/directives/monkeyecx-popover-options.directive.d.ts +19 -19
- package/lib/core/directives/monkeyecx-popover.directive.d.ts +43 -43
- package/lib/core/directives/monkeyecx-security-directive.d.ts +18 -18
- package/lib/core/directives/monkeyecx-tooltip-directive.d.ts +23 -23
- package/lib/core/index.d.ts +9 -9
- package/lib/core/interceptors/index.d.ts +5 -5
- package/lib/core/interceptors/monkeyecx-http-config-error.interceptor.d.ts +18 -18
- package/lib/core/interceptors/monkeyecx-http-config-header.interceptor.d.ts +16 -16
- package/lib/core/interceptors/monkeyecx-http-config-interceptor.module.d.ts +9 -9
- package/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.d.ts +12 -12
- package/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.d.ts +14 -14
- package/lib/core/interfaces/index.d.ts +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 +13 -13
- package/lib/core/pipes/index.d.ts +21 -21
- package/lib/core/pipes/monkeyecx-blob-secure.d.ts +13 -13
- package/lib/core/pipes/monkeyecx-display-first-name.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-display-initials.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-display-support-phone.d.ts +18 -18
- package/lib/core/pipes/monkeyecx-format-address.d.ts +14 -14
- package/lib/core/pipes/monkeyecx-format-beautify-json.d.ts +8 -8
- package/lib/core/pipes/monkeyecx-format-currency.d.ts +11 -11
- package/lib/core/pipes/monkeyecx-format-date-group.d.ts +11 -11
- package/lib/core/pipes/monkeyecx-format-date-timelapse.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-date-unix-timelapse.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-document.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-number.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-phone.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-size.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-tax.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-type-document.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-value.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-zipcode.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-pipes.module.d.ts +26 -26
- package/lib/core/pipes/monkeyecx-text-truncate.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-truncate-qtd.d.ts +7 -7
- package/lib/core/services/alerts/index.d.ts +1 -1
- package/lib/core/services/alerts/monkeyecx-alerts.service.d.ts +21 -21
- package/lib/core/services/auth/index.d.ts +5 -5
- package/lib/core/services/auth/monkeyecx-auth-guard-company.service.d.ts +10 -10
- package/lib/core/services/auth/monkeyecx-auth-guard-login.service.d.ts +10 -10
- package/lib/core/services/auth/monkeyecx-auth-guard-role.service.d.ts +16 -16
- package/lib/core/services/auth/monkeyecx-auth-guard.service.d.ts +10 -10
- package/lib/core/services/auth/monkeyecx-authentication.service.d.ts +35 -35
- package/lib/core/services/commons/index.d.ts +2 -2
- package/lib/core/services/commons/monkeyecx-commons-resolve.service.d.ts +53 -53
- 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 +18 -18
- 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 +3 -3
- package/lib/core/services/store/monkeyecx-store.actions.d.ts +56 -56
- package/lib/core/services/store/monkeyecx-store.selector.d.ts +28 -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.466.tgz +0 -0
- package/monkey-front-core.d.ts +5 -5
- package/package.json +1 -1
- package/public-api.d.ts +4 -4
- package/monkey-front-core-0.0.465.tgz +0 -0
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { first } from 'rxjs/operators';
|
|
3
|
-
import { CurrencyConfigComponent } from '../../../components/currency-config';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "monkey-style-guide";
|
|
6
|
-
import * as i2 from "../storage";
|
|
7
|
-
import * as i3 from "./monkeyecx-config.service";
|
|
8
|
-
export class MonkeyEcxCurrencyConfigService {
|
|
9
|
-
constructor(modalService, cookieService, configService) {
|
|
10
|
-
this.modalService = modalService;
|
|
11
|
-
this.cookieService = cookieService;
|
|
12
|
-
this.configService = configService;
|
|
13
|
-
// not to do
|
|
14
|
-
}
|
|
15
|
-
onHandleCurrencyConfig({ currency, environment }) {
|
|
16
|
-
const { cookieService } = this;
|
|
17
|
-
const settings = cookieService.getCookie('monkey-app-settings');
|
|
18
|
-
const locale = cookieService.getCookie('monkey-app-locale');
|
|
19
|
-
if (!settings) {
|
|
20
|
-
cookieService.setCookie('monkey-app-settings', btoa(JSON.stringify({
|
|
21
|
-
showedCurrencyConfig: true
|
|
22
|
-
})), environment);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
const decoded = JSON.parse(atob(settings));
|
|
26
|
-
cookieService.setCookie('monkey-app-settings', btoa(JSON.stringify({
|
|
27
|
-
...decoded,
|
|
28
|
-
showedCurrencyConfig: true
|
|
29
|
-
})), environment);
|
|
30
|
-
}
|
|
31
|
-
if (locale) {
|
|
32
|
-
const decoded = JSON.parse(atob(locale));
|
|
33
|
-
cookieService.setCookie('monkey-app-locale', btoa(JSON.stringify({
|
|
34
|
-
...decoded,
|
|
35
|
-
currency
|
|
36
|
-
})), environment);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
async onShowCurrencyConfig(environment, force = false) {
|
|
40
|
-
const { cookieService } = this;
|
|
41
|
-
const settings = cookieService.getCookie('monkey-app-settings');
|
|
42
|
-
let showed = false;
|
|
43
|
-
if (settings) {
|
|
44
|
-
const decoded = JSON.parse(atob(settings));
|
|
45
|
-
showed = decoded.showedCurrencyConfig;
|
|
46
|
-
}
|
|
47
|
-
const config = await this.configService
|
|
48
|
-
.config()
|
|
49
|
-
.pipe(first((val) => {
|
|
50
|
-
return !!val && JSON.stringify(val) !== '{}';
|
|
51
|
-
}))
|
|
52
|
-
.toPromise();
|
|
53
|
-
const currency = config?.i18n?.currency;
|
|
54
|
-
const currencies = config?.i18n?.currencies;
|
|
55
|
-
if ((!showed || force) && currencies?.length) {
|
|
56
|
-
this.modalService.open(CurrencyConfigComponent, {
|
|
57
|
-
color: 'theme',
|
|
58
|
-
size: 'md',
|
|
59
|
-
data: {
|
|
60
|
-
currency,
|
|
61
|
-
currencies,
|
|
62
|
-
callback: (currency = 'BRL') => {
|
|
63
|
-
this.onHandleCurrencyConfig({
|
|
64
|
-
currency,
|
|
65
|
-
environment
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
apply(environment, force = false) {
|
|
73
|
-
this.onShowCurrencyConfig(environment, force);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
MonkeyEcxCurrencyConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCurrencyConfigService, deps: [{ token: i1.MonkeyStyleGuideModalFixedService }, { token: i2.MonkeyEcxCookieStorageService }, { token: i3.MonkeyEcxConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
77
|
-
MonkeyEcxCurrencyConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCurrencyConfigService, providedIn: 'root' });
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCurrencyConfigService, decorators: [{
|
|
79
|
-
type: Injectable,
|
|
80
|
-
args: [{
|
|
81
|
-
providedIn: 'root'
|
|
82
|
-
}]
|
|
83
|
-
}], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalFixedService }, { type: i2.MonkeyEcxCookieStorageService }, { type: i3.MonkeyEcxConfigService }]; } });
|
|
84
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { first } from 'rxjs/operators';
|
|
3
|
+
import { CurrencyConfigComponent } from '../../../components/currency-config';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "monkey-style-guide";
|
|
6
|
+
import * as i2 from "../storage";
|
|
7
|
+
import * as i3 from "./monkeyecx-config.service";
|
|
8
|
+
export class MonkeyEcxCurrencyConfigService {
|
|
9
|
+
constructor(modalService, cookieService, configService) {
|
|
10
|
+
this.modalService = modalService;
|
|
11
|
+
this.cookieService = cookieService;
|
|
12
|
+
this.configService = configService;
|
|
13
|
+
// not to do
|
|
14
|
+
}
|
|
15
|
+
onHandleCurrencyConfig({ currency, environment }) {
|
|
16
|
+
const { cookieService } = this;
|
|
17
|
+
const settings = cookieService.getCookie('monkey-app-settings');
|
|
18
|
+
const locale = cookieService.getCookie('monkey-app-locale');
|
|
19
|
+
if (!settings) {
|
|
20
|
+
cookieService.setCookie('monkey-app-settings', btoa(JSON.stringify({
|
|
21
|
+
showedCurrencyConfig: true
|
|
22
|
+
})), environment);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
const decoded = JSON.parse(atob(settings));
|
|
26
|
+
cookieService.setCookie('monkey-app-settings', btoa(JSON.stringify({
|
|
27
|
+
...decoded,
|
|
28
|
+
showedCurrencyConfig: true
|
|
29
|
+
})), environment);
|
|
30
|
+
}
|
|
31
|
+
if (locale) {
|
|
32
|
+
const decoded = JSON.parse(atob(locale));
|
|
33
|
+
cookieService.setCookie('monkey-app-locale', btoa(JSON.stringify({
|
|
34
|
+
...decoded,
|
|
35
|
+
currency
|
|
36
|
+
})), environment);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
async onShowCurrencyConfig(environment, force = false) {
|
|
40
|
+
const { cookieService } = this;
|
|
41
|
+
const settings = cookieService.getCookie('monkey-app-settings');
|
|
42
|
+
let showed = false;
|
|
43
|
+
if (settings) {
|
|
44
|
+
const decoded = JSON.parse(atob(settings));
|
|
45
|
+
showed = decoded.showedCurrencyConfig;
|
|
46
|
+
}
|
|
47
|
+
const config = await this.configService
|
|
48
|
+
.config()
|
|
49
|
+
.pipe(first((val) => {
|
|
50
|
+
return !!val && JSON.stringify(val) !== '{}';
|
|
51
|
+
}))
|
|
52
|
+
.toPromise();
|
|
53
|
+
const currency = config?.i18n?.currency;
|
|
54
|
+
const currencies = config?.i18n?.currencies;
|
|
55
|
+
if ((!showed || force) && currencies?.length) {
|
|
56
|
+
this.modalService.open(CurrencyConfigComponent, {
|
|
57
|
+
color: 'theme',
|
|
58
|
+
size: 'md',
|
|
59
|
+
data: {
|
|
60
|
+
currency,
|
|
61
|
+
currencies,
|
|
62
|
+
callback: (currency = 'BRL') => {
|
|
63
|
+
this.onHandleCurrencyConfig({
|
|
64
|
+
currency,
|
|
65
|
+
environment
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
apply(environment, force = false) {
|
|
73
|
+
this.onShowCurrencyConfig(environment, force);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
MonkeyEcxCurrencyConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCurrencyConfigService, deps: [{ token: i1.MonkeyStyleGuideModalFixedService }, { token: i2.MonkeyEcxCookieStorageService }, { token: i3.MonkeyEcxConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
77
|
+
MonkeyEcxCurrencyConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCurrencyConfigService, providedIn: 'root' });
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCurrencyConfigService, decorators: [{
|
|
79
|
+
type: Injectable,
|
|
80
|
+
args: [{
|
|
81
|
+
providedIn: 'root'
|
|
82
|
+
}]
|
|
83
|
+
}], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalFixedService }, { type: i2.MonkeyEcxCookieStorageService }, { type: i3.MonkeyEcxConfigService }]; } });
|
|
84
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWN1cnJlbmN5LWNvbmZpZy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LWZyb250LWNvcmUvc3JjL2xpYi9jb3JlL3NlcnZpY2VzL2NvbmZpZy9tb25rZXllY3gtY3VycmVuY3ktY29uZmlnLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUzQyxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFJdkMsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0scUNBQXFDLENBQUM7Ozs7O0FBSzlFLE1BQU0sT0FBTyw4QkFBOEI7SUFDekMsWUFDVSxZQUErQyxFQUMvQyxhQUE0QyxFQUM1QyxhQUFxQztRQUZyQyxpQkFBWSxHQUFaLFlBQVksQ0FBbUM7UUFDL0Msa0JBQWEsR0FBYixhQUFhLENBQStCO1FBQzVDLGtCQUFhLEdBQWIsYUFBYSxDQUF3QjtRQUU3QyxZQUFZO0lBQ2QsQ0FBQztJQUVPLHNCQUFzQixDQUFDLEVBQUUsUUFBUSxFQUFFLFdBQVcsRUFBRTtRQUN0RCxNQUFNLEVBQUUsYUFB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ICAgICAgKTtcbiAgICB9IGVsc2Uge1xuICAgICAgY29uc3QgZGVjb2RlZCA9IEpTT04ucGFyc2UoYXRvYihzZXR0aW5ncykpO1xuXG4gICAgICBjb29raWVTZXJ2aWNlLnNldENvb2tpZShcbiAgICAgICAgJ21vbmtleS1hcHAtc2V0dGluZ3MnLFxuICAgICAgICBidG9hKFxuICAgICAgICAgIEpTT04uc3RyaW5naWZ5KHtcbiAgICAgICAgICAgIC4uLmRlY29kZWQsXG4gICAgICAgICAgICBzaG93ZWRDdXJyZW5jeUNvbmZpZzogdHJ1ZVxuICAgICAgICAgIH0pXG4gICAgICAgICksXG4gICAgICAgIGVudmlyb25tZW50XG4gICAgICApO1xuICAgIH1cblxuICAgIGlmIChsb2NhbGUpIHtcbiAgICAgIGNvbnN0IGRlY29kZWQgPSBKU09OLnBhcnNlKGF0b2IobG9jYWxlKSk7XG5cbiAgICAgIGNvb2tpZVNlcnZpY2Uuc2V0Q29va2llKFxuICAgICAgICAnbW9ua2V5LWFwcC1sb2NhbGUnLFxuICAgICAgICBidG9hKFxuICAgICAgICAgIEpTT04uc3RyaW5naWZ5KHtcbiAgICAgICAgICAgIC4uLmRlY29kZWQsXG4gICAgICAgICAgICBjdXJyZW5jeVxuICAgICAgICAgIH0pXG4gICAgICAgICksXG4gICAgICAgIGVudmlyb25tZW50XG4gICAgICApO1xuICAgIH1cbiAgfVxuXG4gIHByaXZhdGUgYXN5bmMgb25TaG93Q3VycmVuY3lDb25maWcoZW52aXJvbm1lbnQ6IGFueSwgZm9yY2UgPSBmYWxzZSkge1xuICAgIGNvbnN0IHsgY29va2llU2VydmljZSB9ID0gdGhpcztcbiAgICBjb25zdCBzZXR0aW5nczogc3RyaW5nID0gY29va2llU2VydmljZS5nZXRDb29raWUoJ21vbmtleS1hcHAtc2V0dGluZ3MnKTtcbiAgICBsZXQgc2hvd2VkID0gZmFsc2U7XG4gICAgaWYgKHNldHRpbmdzKSB7XG4gICAgICBjb25zdCBkZWNvZGVkID0g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BseShlbnZpcm9ubWVudDogYW55LCBmb3JjZSA9IGZhbHNlKSB7XG4gICAgdGhpcy5vblNob3dDdXJyZW5jeUNvbmZpZyhlbnZpcm9ubWVudCwgZm9yY2UpO1xuICB9XG59XG4iXX0=
|
|
@@ -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,
|
|
81
|
+
args: [{
|
|
82
|
+
providedIn: 'root',
|
|
83
|
+
}]
|
|
84
|
+
}], ctorParameters: function () { return []; } });
|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mJvZHkuZ2V0RWxlbWVudHNCeVRhZ05hbWUoJ2FwcC1yb290JylbMF0ucmVtb3ZlKCk7XG4gICAgdGhpcy5lbmFibGVTdXBwb3J0KCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWZlYXR1cmUtdG9nZ2xlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29yZS9zcmMvbGliL2NvcmUvc2VydmljZXMvY29uZmlnL21vbmtleWVjeC1mZWF0dXJlLXRvZ2dsZS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU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C5sYXVuY2hEYXJrbHlDbGllbnRTaWRlSUQsIHVzZXIsIHtcbiAgICAgICAgICBzdHJlYW1pbmc6IHRydWUsXG4gICAgICAgICAgZGlzYWJsZVN5bmNFdmVudFBvc3Q6IHRydWUsXG4gICAgICAgICAgc2VuZEV2ZW50czogZmFsc2UsXG4gICAgICAgICAgZGlhZ25vc3RpY09wdE91dDogdHJ1ZSxcbiAgICAgICAgICBsb2dnZXI6IHtcbiAgICAgICAgICAgIGRlYnVnOiAoKSA9PiB7fSxcbiAgICAgICAgICAgIHdhcm46ICgpID0+IHt9LFxuICAgICAgICAgICAgaW5mbzogKCkgPT4ge30sXG4gICAgICAgICAgICBlcnJvcjogKGFyZ3M6IGFueSkgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZygnTW9ua2V5IENsaWVudCA9PiAnLCBhcmdzKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHRoaXMubGRDbGllbnQub24oJ2NoYW5nZScsIHRoaXMuZ2V0QWxsRmxhZ3MuYmluZCh0aGlzKSk7XG4gICAgICAgIHRoaXMubGRDbGllbnQub24oJ3JlYWR5JywgdGhpcy5nZXRBbGxGbGFncy5iaW5kKHRoaXMpKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHRoaXMubGRDbGllbnQuaWRlbnRpZnkodXNlciwgdW5kZWZpbmVkLCB0aGlzLmdldEFsbEZsYWdzKTtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICBwdWJsaWMgYXBwbHkoY29uZmlnU3ViamVjdCQ6IEJlaGF2aW9yU3ViamVjdDxNb25rZXlFY3hDb25maWc+LCBlbnZpcm9ubWVudDogYW55KSB7XG4gICAgaWYgKGVudmlyb25tZW50LmxhdW5jaERhcmtseUNsaWVudFNpZGVJRCkge1xuICAgICAgY29uZmlnU3ViamVjdCQuc3Vic2NyaWJlKChjb25maWcpID0+IHtcbiAgICAgICAgdGhpcy5pZGVud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