monkey-front-core 0.0.499 → 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 +43 -43
- 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.499.tgz +0 -0
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class MonkeyEcxAuthenticationService {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.hadAtLeastOneLogin = async () => {
|
|
6
|
-
console.error('hadAtLeastOneLogin needs to be declared!');
|
|
7
|
-
return null;
|
|
8
|
-
};
|
|
9
|
-
this.redirectApp = () => {
|
|
10
|
-
console.error('redirectApp needs to be declared!');
|
|
11
|
-
return null;
|
|
12
|
-
};
|
|
13
|
-
this.redirectLoginWelcomeBack = (route, state) => {
|
|
14
|
-
console.error('redirectLoginWelcomeBack needs to be declared!');
|
|
15
|
-
return null;
|
|
16
|
-
};
|
|
17
|
-
this.isAuthorized = async () => {
|
|
18
|
-
console.error('isAuthorized needs to be declared!');
|
|
19
|
-
return false;
|
|
20
|
-
};
|
|
21
|
-
this.isCompanyAuthorized = async () => {
|
|
22
|
-
console.error('isCompanyAuthorized needs to be declared!');
|
|
23
|
-
return false;
|
|
24
|
-
};
|
|
25
|
-
this.isTokenMandatory = (url) => {
|
|
26
|
-
console.error('isTokenMandatory needs to be declared!');
|
|
27
|
-
return false;
|
|
28
|
-
};
|
|
29
|
-
this.getRequestWithHeaders = (request) => {
|
|
30
|
-
console.error('getRequestWithHeaders needs to be declared!');
|
|
31
|
-
return null;
|
|
32
|
-
};
|
|
33
|
-
this.getRequestWithHeadersOb = (request) => {
|
|
34
|
-
console.error('getRequestWithHeadersOb needs to be declared!');
|
|
35
|
-
return null;
|
|
36
|
-
};
|
|
37
|
-
this.getRequestWithHeadersAsync = async (request) => {
|
|
38
|
-
console.error('getRequestWithHeadersAsync needs to be declared!');
|
|
39
|
-
return null;
|
|
40
|
-
};
|
|
41
|
-
this.refreshShouldHappen = (response) => {
|
|
42
|
-
console.error('refreshShouldHappen needs to be declared!');
|
|
43
|
-
return false;
|
|
44
|
-
};
|
|
45
|
-
this.refreshToken = async () => {
|
|
46
|
-
console.error('refreshToken needs to be declared!');
|
|
47
|
-
return null;
|
|
48
|
-
};
|
|
49
|
-
this.getToken = async () => {
|
|
50
|
-
console.error('getToken needs to be declared!');
|
|
51
|
-
return null;
|
|
52
|
-
};
|
|
53
|
-
// not to do
|
|
54
|
-
}
|
|
55
|
-
init(args) {
|
|
56
|
-
this.hadAtLeastOneLogin = args?.hadAtLeastOneLogin || this.hadAtLeastOneLogin.bind(this);
|
|
57
|
-
this.redirectApp = args?.redirectApp || this.redirectApp.bind(this);
|
|
58
|
-
this.redirectLoginWelcomeBack =
|
|
59
|
-
args?.redirectLoginWelcomeBack || this.redirectLoginWelcomeBack.bind(this);
|
|
60
|
-
this.isAuthorized = args?.isAuthorized || this.isAuthorized.bind(this);
|
|
61
|
-
this.isTokenMandatory = args?.isTokenMandatory || this.isTokenMandatory.bind(this);
|
|
62
|
-
this.isCompanyAuthorized = args?.isCompanyAuthorized || this.isCompanyAuthorized.bind(this);
|
|
63
|
-
this.getRequestWithHeaders =
|
|
64
|
-
args?.getRequestWithHeaders || this.getRequestWithHeaders.bind(this);
|
|
65
|
-
this.getRequestWithHeadersAsync =
|
|
66
|
-
args?.getRequestWithHeadersAsync || this.getRequestWithHeadersAsync.bind(this);
|
|
67
|
-
this.getRequestWithHeadersOb = args?.getRequestWithHeadersOb.bind(this);
|
|
68
|
-
this.refreshShouldHappen = args?.refreshShouldHappen || this.refreshShouldHappen.bind(this);
|
|
69
|
-
this.refreshToken = args?.refreshToken || this.refreshToken.bind(this);
|
|
70
|
-
this.getToken = args?.getToken || this.getToken.bind(this);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
MonkeyEcxAuthenticationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthenticationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
74
|
-
MonkeyEcxAuthenticationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthenticationService, providedIn: 'root' });
|
|
75
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthenticationService, decorators: [{
|
|
76
|
-
type: Injectable,
|
|
77
|
-
args: [{ providedIn: 'root' }]
|
|
78
|
-
}], ctorParameters: function () { return []; } });
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class MonkeyEcxAuthenticationService {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.hadAtLeastOneLogin = async () => {
|
|
6
|
+
console.error('hadAtLeastOneLogin needs to be declared!');
|
|
7
|
+
return null;
|
|
8
|
+
};
|
|
9
|
+
this.redirectApp = () => {
|
|
10
|
+
console.error('redirectApp needs to be declared!');
|
|
11
|
+
return null;
|
|
12
|
+
};
|
|
13
|
+
this.redirectLoginWelcomeBack = (route, state) => {
|
|
14
|
+
console.error('redirectLoginWelcomeBack needs to be declared!');
|
|
15
|
+
return null;
|
|
16
|
+
};
|
|
17
|
+
this.isAuthorized = async () => {
|
|
18
|
+
console.error('isAuthorized needs to be declared!');
|
|
19
|
+
return false;
|
|
20
|
+
};
|
|
21
|
+
this.isCompanyAuthorized = async () => {
|
|
22
|
+
console.error('isCompanyAuthorized needs to be declared!');
|
|
23
|
+
return false;
|
|
24
|
+
};
|
|
25
|
+
this.isTokenMandatory = (url) => {
|
|
26
|
+
console.error('isTokenMandatory needs to be declared!');
|
|
27
|
+
return false;
|
|
28
|
+
};
|
|
29
|
+
this.getRequestWithHeaders = (request) => {
|
|
30
|
+
console.error('getRequestWithHeaders needs to be declared!');
|
|
31
|
+
return null;
|
|
32
|
+
};
|
|
33
|
+
this.getRequestWithHeadersOb = (request) => {
|
|
34
|
+
console.error('getRequestWithHeadersOb needs to be declared!');
|
|
35
|
+
return null;
|
|
36
|
+
};
|
|
37
|
+
this.getRequestWithHeadersAsync = async (request) => {
|
|
38
|
+
console.error('getRequestWithHeadersAsync needs to be declared!');
|
|
39
|
+
return null;
|
|
40
|
+
};
|
|
41
|
+
this.refreshShouldHappen = (response) => {
|
|
42
|
+
console.error('refreshShouldHappen needs to be declared!');
|
|
43
|
+
return false;
|
|
44
|
+
};
|
|
45
|
+
this.refreshToken = async () => {
|
|
46
|
+
console.error('refreshToken needs to be declared!');
|
|
47
|
+
return null;
|
|
48
|
+
};
|
|
49
|
+
this.getToken = async () => {
|
|
50
|
+
console.error('getToken needs to be declared!');
|
|
51
|
+
return null;
|
|
52
|
+
};
|
|
53
|
+
// not to do
|
|
54
|
+
}
|
|
55
|
+
init(args) {
|
|
56
|
+
this.hadAtLeastOneLogin = args?.hadAtLeastOneLogin || this.hadAtLeastOneLogin.bind(this);
|
|
57
|
+
this.redirectApp = args?.redirectApp || this.redirectApp.bind(this);
|
|
58
|
+
this.redirectLoginWelcomeBack =
|
|
59
|
+
args?.redirectLoginWelcomeBack || this.redirectLoginWelcomeBack.bind(this);
|
|
60
|
+
this.isAuthorized = args?.isAuthorized || this.isAuthorized.bind(this);
|
|
61
|
+
this.isTokenMandatory = args?.isTokenMandatory || this.isTokenMandatory.bind(this);
|
|
62
|
+
this.isCompanyAuthorized = args?.isCompanyAuthorized || this.isCompanyAuthorized.bind(this);
|
|
63
|
+
this.getRequestWithHeaders =
|
|
64
|
+
args?.getRequestWithHeaders || this.getRequestWithHeaders.bind(this);
|
|
65
|
+
this.getRequestWithHeadersAsync =
|
|
66
|
+
args?.getRequestWithHeadersAsync || this.getRequestWithHeadersAsync.bind(this);
|
|
67
|
+
this.getRequestWithHeadersOb = args?.getRequestWithHeadersOb.bind(this);
|
|
68
|
+
this.refreshShouldHappen = args?.refreshShouldHappen || this.refreshShouldHappen.bind(this);
|
|
69
|
+
this.refreshToken = args?.refreshToken || this.refreshToken.bind(this);
|
|
70
|
+
this.getToken = args?.getToken || this.getToken.bind(this);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
MonkeyEcxAuthenticationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthenticationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
74
|
+
MonkeyEcxAuthenticationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthenticationService, providedIn: 'root' });
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthenticationService, decorators: [{
|
|
76
|
+
type: Injectable,
|
|
77
|
+
args: [{ providedIn: 'root' }]
|
|
78
|
+
}], ctorParameters: function () { return []; } });
|
|
79
79
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWF1dGhlbnRpY2F0aW9uLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29yZS9zcmMvbGliL2NvcmUvc2VydmljZXMvYXV0aC9tb25rZXllY3gtYXV0aGVudGljYXRpb24uc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUszQyxNQUFNLE9BQU8sOEJBQThCO0lBQ3pDO1FBSUEsdUJBQWtCLEdBQUcsS0FBSyxJQUFJLEVBQ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pcy5pc0NvbXBhbnlBdXRob3JpemVkID0gYXJncz8uaXNDb21wYW55QXV0aG9yaXplZCB8fCB0aGlzLmlzQ29tcGFueUF1dGhvcml6ZWQuYmluZCh0aGlzKTtcbiAgICB0aGlzLmdldFJlcXVlc3RXaXRoSGVhZGVycyA9XG4gICAgICBhcmdzPy5nZXRSZXF1ZXN0V2l0aEhlYWRlcnMgfHwgdGhpcy5nZXRSZXF1ZXN0V2l0aEhlYWRlcnMuYmluZCh0aGlzKTtcbiAgICB0aGlzLmdldFJlcXVlc3RXaXRoSGVhZGVyc0FzeW5jID1cbiAgICAgIGFyZ3M/LmdldFJlcXVlc3RXaXRoSGVhZGVyc0FzeW5jIHx8IHRoaXMuZ2V0UmVxdWVzdFdpdGhIZWFkZXJzQXN5bmMuYmluZCh0aGlzKTtcbiAgICB0aGlzLmdldFJlcXVlc3RXaXRoSGVhZGVyc09iID0gYXJncz8uZ2V0UmVxdWVzdFdpdGhIZWFkZXJzT2IuYmluZCh0aGlzKTtcbiAgICB0aGlzLnJlZnJlc2hTaG91bGRIYXBwZW4gPSBhcmdzPy5yZWZyZXNoU2hvdWxkSGFwcGVuIHx8IHRoaXMucmVmcmVzaFNob3VsZEhhcHBlbi5iaW5kKHRoaXMpO1xuICAgIHRoaXMucmVmcmVzaFRva2VuID0gYXJncz8ucmVmcmVzaFRva2VuIHx8IHRoaXMucmVmcmVzaFRva2VuLmJpbmQodGhpcyk7XG4gICAgdGhpcy5nZXRUb2tlbiA9IGFyZ3M/LmdldFRva2VuIHx8IHRoaXMuZ2V0VG9rZW4uYmluZCh0aGlzKTtcbiAgfVxufVxuIl19
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './monkeyecx-commons-resolve-base.service';
|
|
2
|
-
export * from './monkeyecx-commons-resolve.service';
|
|
3
|
-
export * from './monkeyecx-commons.service';
|
|
1
|
+
export * from './monkeyecx-commons-resolve-base.service';
|
|
2
|
+
export * from './monkeyecx-commons-resolve.service';
|
|
3
|
+
export * from './monkeyecx-commons.service';
|
|
4
4
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29yZS9zcmMvbGliL2NvcmUvc2VydmljZXMvY29tbW9ucy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBDQUEwQyxDQUFDO0FBQ3pELGNBQWMscUNBQXFDLENBQUM7QUFDcEQsY0FBYyw2QkFBNkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbW9ua2V5ZWN4LWNvbW1vbnMtcmVzb2x2ZS1iYXNlLnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9tb25rZXllY3gtY29tbW9ucy1yZXNvbHZlLnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9tb25rZXllY3gtY29tbW9ucy5zZXJ2aWNlJztcbiJdfQ==
|
|
@@ -1,109 +1,109 @@
|
|
|
1
|
-
import { inject } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { Store } from '@ngrx/store';
|
|
4
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
-
import { MonkeyEcxCommonsService } from '.';
|
|
6
|
-
import { MonkeyEcxDiscoveryParamsService, MonkeyEcxPaginationService } from '../..';
|
|
7
|
-
import { MonkeyEcxUtils } from '../../utils';
|
|
8
|
-
export class MonkeyEcxCommonsResolveBaseService extends MonkeyEcxCommonsService {
|
|
9
|
-
constructor(monkeyecxService, tokenStorage, config) {
|
|
10
|
-
super(monkeyecxService, tokenStorage);
|
|
11
|
-
this.route = null;
|
|
12
|
-
this.currentRoute = null;
|
|
13
|
-
this.paginationService = inject(MonkeyEcxPaginationService);
|
|
14
|
-
this.translateService = inject(TranslateService);
|
|
15
|
-
this.router = inject(Router);
|
|
16
|
-
this.store = inject(Store);
|
|
17
|
-
this.monkeyDiscovery = inject(MonkeyEcxDiscoveryParamsService);
|
|
18
|
-
const { actions } = config;
|
|
19
|
-
this.action = actions;
|
|
20
|
-
}
|
|
21
|
-
async getData() {
|
|
22
|
-
try {
|
|
23
|
-
const { store, route, action, tokenStorage } = this;
|
|
24
|
-
const { companyId, governmentId } = await tokenStorage?.getToken();
|
|
25
|
-
if (!route)
|
|
26
|
-
return;
|
|
27
|
-
const url = MonkeyEcxUtils.replaceVariables(route, { companyId, governmentId });
|
|
28
|
-
store.dispatch(action.load({ url }));
|
|
29
|
-
}
|
|
30
|
-
catch (e) {
|
|
31
|
-
throw new Error(`MECX Core - Method getData -> ${e}`);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
async loadPage(actionType) {
|
|
35
|
-
try {
|
|
36
|
-
const { store, action } = this;
|
|
37
|
-
store.dispatch(action.loadPagination({
|
|
38
|
-
pagination: {
|
|
39
|
-
action: actionType
|
|
40
|
-
}
|
|
41
|
-
}));
|
|
42
|
-
}
|
|
43
|
-
catch (e) {
|
|
44
|
-
throw new Error(`MECX Core - Method loadPage -> ${e}`);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* @description Inicializar a class genérica
|
|
49
|
-
* @param (args: MonkeyEcxInitialResolverConfig)
|
|
50
|
-
* => route é obrigátorio pois ele quem inicializa a store.
|
|
51
|
-
* A searchClass só se faz necessaria quando for usar filtros
|
|
52
|
-
*/
|
|
53
|
-
init(args) {
|
|
54
|
-
try {
|
|
55
|
-
const { searchClass, route } = args;
|
|
56
|
-
this.route = route;
|
|
57
|
-
if (searchClass) {
|
|
58
|
-
// eslint-disable-next-line new-cap
|
|
59
|
-
const searchInstance = new searchClass(this.__search);
|
|
60
|
-
this.route = `${route}${searchInstance.buildParams()}`;
|
|
61
|
-
this.__onSearchChanged$.next(searchInstance);
|
|
62
|
-
}
|
|
63
|
-
this.getData();
|
|
64
|
-
}
|
|
65
|
-
catch (e) {
|
|
66
|
-
throw new Error(`${e?.message}`);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
resolve(route, state, otherArgs) {
|
|
70
|
-
this.__search = route?.queryParams;
|
|
71
|
-
const [currentRoute] = state?.url.split('?') || [null];
|
|
72
|
-
this.currentRoute = currentRoute;
|
|
73
|
-
super.resolve(route, state, otherArgs);
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* @description Atualizar os filtros da tela
|
|
77
|
-
* @param (search: T, route?: string)
|
|
78
|
-
* => route é opcional, passar ele apenas se a rota for diferente do padrão
|
|
79
|
-
*/
|
|
80
|
-
setSearch(search, route) {
|
|
81
|
-
try {
|
|
82
|
-
const { currentRoute, router } = this;
|
|
83
|
-
this.setSearchByUrl(router, route || `${currentRoute}`, search);
|
|
84
|
-
}
|
|
85
|
-
catch (e) {
|
|
86
|
-
throw new Error(`MECX Core - Method setSearch -> ${e}`);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* @description Navegação para details.
|
|
91
|
-
* Por padrão sera redirecionado para '${currentRoute}/details'
|
|
92
|
-
* @param (detailsData: T, route?: string)
|
|
93
|
-
* => route é opcional, passar ele apenas se a rota for diferente do padrão
|
|
94
|
-
*/
|
|
95
|
-
navigateToDetails(detailsData, route) {
|
|
96
|
-
try {
|
|
97
|
-
const { router, currentRoute } = this;
|
|
98
|
-
router.navigate([route || `${currentRoute}/details`], {
|
|
99
|
-
state: {
|
|
100
|
-
detailsData
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
catch (e) {
|
|
105
|
-
throw new Error(`MECX Core - Method navigateToDetails -> ${e}`);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
1
|
+
import { inject } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { Store } from '@ngrx/store';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import { MonkeyEcxCommonsService } from '.';
|
|
6
|
+
import { MonkeyEcxDiscoveryParamsService, MonkeyEcxPaginationService } from '../..';
|
|
7
|
+
import { MonkeyEcxUtils } from '../../utils';
|
|
8
|
+
export class MonkeyEcxCommonsResolveBaseService extends MonkeyEcxCommonsService {
|
|
9
|
+
constructor(monkeyecxService, tokenStorage, config) {
|
|
10
|
+
super(monkeyecxService, tokenStorage);
|
|
11
|
+
this.route = null;
|
|
12
|
+
this.currentRoute = null;
|
|
13
|
+
this.paginationService = inject(MonkeyEcxPaginationService);
|
|
14
|
+
this.translateService = inject(TranslateService);
|
|
15
|
+
this.router = inject(Router);
|
|
16
|
+
this.store = inject(Store);
|
|
17
|
+
this.monkeyDiscovery = inject(MonkeyEcxDiscoveryParamsService);
|
|
18
|
+
const { actions } = config;
|
|
19
|
+
this.action = actions;
|
|
20
|
+
}
|
|
21
|
+
async getData() {
|
|
22
|
+
try {
|
|
23
|
+
const { store, route, action, tokenStorage } = this;
|
|
24
|
+
const { companyId, governmentId } = await tokenStorage?.getToken();
|
|
25
|
+
if (!route)
|
|
26
|
+
return;
|
|
27
|
+
const url = MonkeyEcxUtils.replaceVariables(route, { companyId, governmentId });
|
|
28
|
+
store.dispatch(action.load({ url }));
|
|
29
|
+
}
|
|
30
|
+
catch (e) {
|
|
31
|
+
throw new Error(`MECX Core - Method getData -> ${e}`);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
async loadPage(actionType) {
|
|
35
|
+
try {
|
|
36
|
+
const { store, action } = this;
|
|
37
|
+
store.dispatch(action.loadPagination({
|
|
38
|
+
pagination: {
|
|
39
|
+
action: actionType
|
|
40
|
+
}
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
catch (e) {
|
|
44
|
+
throw new Error(`MECX Core - Method loadPage -> ${e}`);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @description Inicializar a class genérica
|
|
49
|
+
* @param (args: MonkeyEcxInitialResolverConfig)
|
|
50
|
+
* => route é obrigátorio pois ele quem inicializa a store.
|
|
51
|
+
* A searchClass só se faz necessaria quando for usar filtros
|
|
52
|
+
*/
|
|
53
|
+
init(args) {
|
|
54
|
+
try {
|
|
55
|
+
const { searchClass, route } = args;
|
|
56
|
+
this.route = route;
|
|
57
|
+
if (searchClass) {
|
|
58
|
+
// eslint-disable-next-line new-cap
|
|
59
|
+
const searchInstance = new searchClass(this.__search);
|
|
60
|
+
this.route = `${route}${searchInstance.buildParams()}`;
|
|
61
|
+
this.__onSearchChanged$.next(searchInstance);
|
|
62
|
+
}
|
|
63
|
+
this.getData();
|
|
64
|
+
}
|
|
65
|
+
catch (e) {
|
|
66
|
+
throw new Error(`${e?.message}`);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
resolve(route, state, otherArgs) {
|
|
70
|
+
this.__search = route?.queryParams;
|
|
71
|
+
const [currentRoute] = state?.url.split('?') || [null];
|
|
72
|
+
this.currentRoute = currentRoute;
|
|
73
|
+
super.resolve(route, state, otherArgs);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @description Atualizar os filtros da tela
|
|
77
|
+
* @param (search: T, route?: string)
|
|
78
|
+
* => route é opcional, passar ele apenas se a rota for diferente do padrão
|
|
79
|
+
*/
|
|
80
|
+
setSearch(search, route) {
|
|
81
|
+
try {
|
|
82
|
+
const { currentRoute, router } = this;
|
|
83
|
+
this.setSearchByUrl(router, route || `${currentRoute}`, search);
|
|
84
|
+
}
|
|
85
|
+
catch (e) {
|
|
86
|
+
throw new Error(`MECX Core - Method setSearch -> ${e}`);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* @description Navegação para details.
|
|
91
|
+
* Por padrão sera redirecionado para '${currentRoute}/details'
|
|
92
|
+
* @param (detailsData: T, route?: string)
|
|
93
|
+
* => route é opcional, passar ele apenas se a rota for diferente do padrão
|
|
94
|
+
*/
|
|
95
|
+
navigateToDetails(detailsData, route) {
|
|
96
|
+
try {
|
|
97
|
+
const { router, currentRoute } = this;
|
|
98
|
+
router.navigate([route || `${currentRoute}/details`], {
|
|
99
|
+
state: {
|
|
100
|
+
detailsData
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
catch (e) {
|
|
105
|
+
throw new Error(`MECX Core - Method navigateToDetails -> ${e}`);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
109
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWNvbW1vbnMtcmVzb2x2ZS1iYXNlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29yZS9zcmMvbGliL2NvcmUvc2VydmljZXMvY29tbW9ucy9tb25rZXllY3gtY29tbW9ucy1yZXNvbHZlLWJhc2Uuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBMEIsTUFBTSxFQUF1QixNQUFNLGlCQUFpQixDQUFDO0FBQ3RGLE9BQU8sRUFBVSxLQUFLLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFDNUMsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdkQsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sR0FBRyxDQUFDO0FBQzVDLE9BQU8sRUFDTCwrQkFBK0IsRUFDL0IsMEJBQTBCLEVBRTNCLE1BQU0sT0FBTyxDQUFDO0FBTWYsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUc3QyxNQ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