monkey-front-core 0.0.36 → 0.0.37
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/closed-to-maintenance/closed-to-maintenance.component.mjs +29 -0
- package/{esm2015/lib/components/closed-to-maintenance/closed-to-maintenance.module.js → esm2020/lib/components/closed-to-maintenance/closed-to-maintenance.module.mjs} +5 -5
- package/{esm2015/lib/components/closed-to-maintenance/index.js → esm2020/lib/components/closed-to-maintenance/index.mjs} +1 -1
- package/{esm2015/lib/components/index.js → esm2020/lib/components/index.mjs} +0 -0
- package/{esm2015/lib/components/progress-bar/index.js → esm2020/lib/components/progress-bar/index.mjs} +1 -1
- package/esm2020/lib/components/progress-bar/progress-bar.component.mjs +23 -0
- package/{esm2015/lib/components/progress-bar/progress-bar.module.js → esm2020/lib/components/progress-bar/progress-bar.module.mjs} +5 -5
- package/esm2020/lib/components/progress-bar/progress-bar.service.mjs +50 -0
- package/{esm2015/lib/components/version-changed/index.js → esm2020/lib/components/version-changed/index.mjs} +1 -1
- package/esm2020/lib/components/version-changed/version-changed.component.mjs +24 -0
- package/{esm2015/lib/components/version-changed/version-changed.module.js → esm2020/lib/components/version-changed/version-changed.module.mjs} +5 -5
- package/esm2020/lib/core/decorators/index.mjs +5 -0
- package/esm2020/lib/core/decorators/monkeyecx-charts-decorators.mjs +40 -0
- package/esm2020/lib/core/decorators/monkeyecx-decorators.mjs +111 -0
- package/esm2020/lib/core/decorators/monkeyecx-download-decorators.mjs +26 -0
- package/esm2020/lib/core/decorators/monkeyecx-upload-decorators.mjs +26 -0
- package/{esm2015/lib/core/directives/index.js → esm2020/lib/core/directives/index.mjs} +1 -1
- package/{esm2015/lib/core/directives/monkeyecx-directives-module.js → esm2020/lib/core/directives/monkeyecx-directives-module.mjs} +10 -10
- package/esm2020/lib/core/directives/monkeyecx-drag-drop.mjs +57 -0
- package/esm2020/lib/core/directives/monkeyecx-feature-directive.mjs +68 -0
- package/{esm2015/lib/core/directives/monkeyecx-format-currency.js → esm2020/lib/core/directives/monkeyecx-format-currency.mjs} +4 -4
- package/esm2020/lib/core/directives/monkeyecx-format-upper.mjs +67 -0
- package/{esm2015/lib/core/directives/monkeyecx-only-alpha-numeric-directive.js → esm2020/lib/core/directives/monkeyecx-only-alpha-numeric-directive.mjs} +4 -4
- package/{esm2015/lib/core/directives/monkeyecx-only-number-directive.js → esm2020/lib/core/directives/monkeyecx-only-number-directive.mjs} +4 -4
- package/esm2020/lib/core/directives/monkeyecx-security-directive.mjs +69 -0
- package/esm2020/lib/core/directives/monkeyecx-tooltip-directive.mjs +123 -0
- package/{esm2015/lib/core/index.js → esm2020/lib/core/index.mjs} +1 -1
- package/{esm2015/lib/core/interceptors/index.js → esm2020/lib/core/interceptors/index.mjs} +1 -1
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-error.interceptor.mjs +39 -0
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-header.interceptor.mjs +32 -0
- package/{esm2015/lib/core/interceptors/monkeyecx-http-config-interceptor.module.js → esm2020/lib/core/interceptors/monkeyecx-http-config-interceptor.module.mjs} +5 -5
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.mjs +43 -0
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.mjs +37 -0
- package/{esm2015/lib/core/interfaces/index.js → esm2020/lib/core/interfaces/index.mjs} +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-auth-credentials.mjs +2 -0
- package/{esm2015/lib/core/interfaces/monkeyecx-company.js → esm2020/lib/core/interfaces/monkeyecx-company.mjs} +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-config-boostrap.mjs +2 -0
- package/esm2020/lib/core/interfaces/monkeyecx-config.mjs +2 -0
- package/{esm2015/lib/core/interfaces/monkeyecx-error-response.js → esm2020/lib/core/interfaces/monkeyecx-error-response.mjs} +1 -1
- package/{esm2015/lib/core/interfaces/monkeyecx-handled-error-response.js → esm2020/lib/core/interfaces/monkeyecx-handled-error-response.mjs} +1 -1
- package/{esm2015/lib/core/interfaces/monkeyecx-header-credentials.js → esm2020/lib/core/interfaces/monkeyecx-header-credentials.mjs} +1 -1
- package/{esm2015/lib/core/interfaces/monkeyecx-intercom-options.js → esm2020/lib/core/interfaces/monkeyecx-intercom-options.mjs} +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-me-credentials.mjs +2 -0
- package/esm2020/lib/core/interfaces/monkeyecx-navigation.mjs +2 -0
- package/{esm2015/lib/core/interfaces/monkeyecx-program.js → esm2020/lib/core/interfaces/monkeyecx-program.mjs} +1 -1
- package/{esm2015/lib/core/interfaces/monkeyecx-releases.js → esm2020/lib/core/interfaces/monkeyecx-releases.mjs} +1 -1
- package/{esm2015/lib/core/interfaces/monkeyecx-request-in-progress.js → esm2020/lib/core/interfaces/monkeyecx-request-in-progress.mjs} +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-request-paged.mjs +2 -0
- package/{esm2015/lib/core/interfaces/monkeyecx-response-paged.js → esm2020/lib/core/interfaces/monkeyecx-response-paged.mjs} +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-service-credentials.mjs +2 -0
- package/esm2020/lib/core/interfaces/monkeyecx-token-credentials.mjs +2 -0
- package/{esm2015/lib/core/interfaces/monkeyecx-translate-options.js → esm2020/lib/core/interfaces/monkeyecx-translate-options.mjs} +1 -1
- package/{esm2015/lib/core/interfaces/request-download/index.js → esm2020/lib/core/interfaces/request-download/index.mjs} +1 -1
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-download.mjs +2 -0
- package/{esm2015/lib/core/interfaces/request-download/monkeyecx-request-downloaded.js → esm2020/lib/core/interfaces/request-download/monkeyecx-request-downloaded.mjs} +1 -1
- package/{esm2015/lib/core/interfaces/request-download/monkeyecx-request-item-download.js → esm2020/lib/core/interfaces/request-download/monkeyecx-request-item-download.mjs} +1 -1
- package/{esm2015/lib/core/interfaces/request-queue/index.js → esm2020/lib/core/interfaces/request-queue/index.mjs} +1 -1
- package/{esm2015/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.js → esm2020/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.mjs} +1 -1
- package/{esm2015/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.js → esm2020/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.mjs} +1 -1
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-queue.mjs +2 -0
- package/{esm2015/lib/core/interfaces/request-upload/index.js → esm2020/lib/core/interfaces/request-upload/index.mjs} +1 -1
- package/{esm2015/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.js → esm2020/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.mjs} +1 -1
- package/{esm2015/lib/core/interfaces/request-upload/monkeyecx-request-upload.js → esm2020/lib/core/interfaces/request-upload/monkeyecx-request-upload.mjs} +1 -1
- package/{esm2015/lib/core/interfaces/schedules/index.js → esm2020/lib/core/interfaces/schedules/index.mjs} +1 -1
- package/esm2020/lib/core/interfaces/schedules/monkeyecx-request-schedule.mjs +2 -0
- package/{esm2015/lib/core/model/index.js → esm2020/lib/core/model/index.mjs} +1 -1
- package/{esm2015/lib/core/model/monkeyecx-model.js → esm2020/lib/core/model/monkeyecx-model.mjs} +1 -1
- package/esm2020/lib/core/pipes/index.mjs +16 -0
- package/esm2020/lib/core/pipes/monkeyecx-display-first-name.mjs +19 -0
- package/esm2020/lib/core/pipes/monkeyecx-format-address.mjs +20 -0
- package/esm2020/lib/core/pipes/monkeyecx-format-currency.mjs +27 -0
- package/esm2020/lib/core/pipes/monkeyecx-format-date-timelapse.mjs +31 -0
- package/esm2020/lib/core/pipes/monkeyecx-format-date.mjs +29 -0
- package/esm2020/lib/core/pipes/monkeyecx-format-document.mjs +19 -0
- package/esm2020/lib/core/pipes/monkeyecx-format-number.mjs +20 -0
- package/esm2020/lib/core/pipes/monkeyecx-format-phone.mjs +42 -0
- package/esm2020/lib/core/pipes/monkeyecx-format-size.mjs +20 -0
- package/esm2020/lib/core/pipes/monkeyecx-format-type-document.mjs +19 -0
- package/esm2020/lib/core/pipes/monkeyecx-format-value.mjs +19 -0
- package/esm2020/lib/core/pipes/monkeyecx-format-zipcode.mjs +19 -0
- package/esm2020/lib/core/pipes/monkeyecx-pipes.module.mjs +87 -0
- package/esm2020/lib/core/pipes/monkeyecx-text-truncate.mjs +23 -0
- package/{esm2015/lib/core/pipes/monkeyecx-truncate-qtd.js → esm2020/lib/core/pipes/monkeyecx-truncate-qtd.mjs} +4 -4
- package/{esm2015/lib/core/services/auth/index.js → esm2020/lib/core/services/auth/index.mjs} +1 -1
- package/{esm2015/lib/core/services/auth/monkeyecx-auth-guard-login.service.js → esm2020/lib/core/services/auth/monkeyecx-auth-guard-login.service.mjs} +4 -4
- package/{esm2015/lib/core/services/auth/monkeyecx-auth-guard.service.js → esm2020/lib/core/services/auth/monkeyecx-auth-guard.service.mjs} +4 -4
- package/esm2020/lib/core/services/auth/monkeyecx-authentication.service.mjs +61 -0
- package/{esm2015/lib/core/services/commons/index.js → esm2020/lib/core/services/commons/index.mjs} +1 -1
- package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +269 -0
- package/{esm2015/lib/core/services/config/monkeyecx-config.module.js → esm2020/lib/core/services/config/monkeyecx-config.module.mjs} +5 -5
- package/esm2020/lib/core/services/config/monkeyecx-config.service.mjs +108 -0
- package/esm2020/lib/core/services/config/monkeyecx-error-config.service.mjs +85 -0
- package/esm2020/lib/core/services/config/monkeyecx-feature-toggle.service.mjs +65 -0
- package/esm2020/lib/core/services/config/monkeyecx-i18n-config.service.mjs +66 -0
- package/esm2020/lib/core/services/config/monkeyecx-logs-config.service.mjs +34 -0
- package/{esm2015/lib/core/services/config/monkeyecx-maintenance-config.service.js → esm2020/lib/core/services/config/monkeyecx-maintenance-config.service.mjs} +5 -5
- package/esm2020/lib/core/services/config/monkeyecx-security-console-config.service.mjs +42 -0
- package/esm2020/lib/core/services/config/monkeyecx-service-worker-config.service.mjs +53 -0
- package/{esm2015/lib/core/services/error/index.js → esm2020/lib/core/services/error/index.mjs} +1 -1
- package/{esm2015/lib/core/services/error/monkeyecx-error-handling.module.js → esm2020/lib/core/services/error/monkeyecx-error-handling.module.mjs} +5 -5
- package/esm2020/lib/core/services/error/monkeyecx-error-handling.service.mjs +41 -0
- package/esm2020/lib/core/services/error/monkeyecx-http-error-handling.service.mjs +128 -0
- package/{esm2015/lib/core/services/error/monkeyecx-others-errors-handling.service.js → esm2020/lib/core/services/error/monkeyecx-others-errors-handling.service.mjs} +4 -4
- package/esm2020/lib/core/services/index.mjs +24 -0
- package/{esm2015/lib/core/services/logged/index.js → esm2020/lib/core/services/logged/index.mjs} +1 -1
- package/{esm2015/lib/core/services/logged/monkeyecx-logged-handling.service.js → esm2020/lib/core/services/logged/monkeyecx-logged-handling.service.mjs} +4 -4
- package/esm2020/lib/core/services/monkeyecx-handling.service.mjs +50 -0
- package/esm2020/lib/core/services/monkeyecx-service.service.mjs +104 -0
- package/{esm2015/lib/core/services/request-download/index.js → esm2020/lib/core/services/request-download/index.mjs} +1 -1
- package/esm2020/lib/core/services/request-download/monkeyecx-request-download-handling.service.mjs +93 -0
- package/esm2020/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.mjs +61 -0
- package/{esm2015/lib/core/services/request-paged/index.js → esm2020/lib/core/services/request-paged/index.mjs} +1 -1
- package/esm2020/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.mjs +30 -0
- package/{esm2015/lib/core/services/request-queue/index.js → esm2020/lib/core/services/request-queue/index.mjs} +1 -1
- package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.mjs +114 -0
- package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.mjs +119 -0
- package/{esm2015/lib/core/services/routes/index.js → esm2020/lib/core/services/routes/index.mjs} +1 -1
- package/{esm2015/lib/core/services/routes/monkeyecx-dicovery-params.service.js → esm2020/lib/core/services/routes/monkeyecx-dicovery-params.service.mjs} +6 -6
- package/{esm2015/lib/core/services/schedules/index.js → esm2020/lib/core/services/schedules/index.mjs} +1 -1
- package/esm2020/lib/core/services/schedules/monkeyecx-request-schedule.service.mjs +127 -0
- package/{esm2015/lib/core/services/storage/index.js → esm2020/lib/core/services/storage/index.mjs} +1 -1
- package/{esm2015/lib/core/services/storage/monkeyecx-cookie-storage.service.js → esm2020/lib/core/services/storage/monkeyecx-cookie-storage.service.mjs} +5 -5
- package/esm2020/lib/core/services/storage/monkeyecx-token-storage.service.mjs +122 -0
- package/{esm2015/lib/core/specification-search/index.js → esm2020/lib/core/specification-search/index.mjs} +1 -1
- package/esm2020/lib/core/specification-search/monkeyecx-specification-search.mjs +97 -0
- package/esm2020/lib/core/utils/decorators-utils.mjs +40 -0
- package/{esm2015/lib/core/utils/index.js → esm2020/lib/core/utils/index.mjs} +1 -1
- package/{esm2015/lib/core/utils/statics.js → esm2020/lib/core/utils/statics.mjs} +1 -1
- package/esm2020/lib/core/utils/utils.mjs +218 -0
- package/esm2020/lib/core/utils/validate-utils.mjs +204 -0
- package/esm2020/lib/core/utils/validators.mjs +193 -0
- package/esm2020/lib/monkey-front-core.module.mjs +62 -0
- package/{esm2015/monkey-front-core.js → esm2020/monkey-front-core.mjs} +0 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +1 -1
- package/fesm2015/{monkey-front-core.js → monkey-front-core.mjs} +704 -516
- package/fesm2015/monkey-front-core.mjs.map +1 -0
- package/fesm2020/monkey-front-core.mjs +4217 -0
- package/fesm2020/monkey-front-core.mjs.map +1 -0
- package/lib/components/closed-to-maintenance/closed-to-maintenance.component.d.ts +2 -2
- package/lib/components/progress-bar/progress-bar.service.d.ts +1 -1
- package/lib/components/version-changed/version-changed.component.d.ts +1 -1
- package/lib/core/decorators/index.d.ts +1 -0
- package/lib/core/decorators/monkeyecx-charts-decorators.d.ts +1 -0
- package/lib/core/directives/monkeyecx-directives-module.d.ts +1 -1
- package/lib/core/directives/monkeyecx-feature-directive.d.ts +4 -4
- package/lib/core/directives/monkeyecx-format-upper.d.ts +2 -2
- package/lib/core/directives/monkeyecx-security-directive.d.ts +1 -1
- package/lib/core/directives/monkeyecx-tooltip-directive.d.ts +5 -5
- package/lib/core/interfaces/monkeyecx-service-credentials.d.ts +2 -1
- package/lib/core/interfaces/request-download/monkeyecx-request-download.d.ts +1 -1
- package/lib/core/interfaces/request-download/monkeyecx-request-item-download.d.ts +1 -1
- package/lib/core/interfaces/request-queue/monkeyecx-request-queue.d.ts +1 -1
- package/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.d.ts +1 -1
- package/lib/core/interfaces/request-upload/monkeyecx-request-upload.d.ts +1 -1
- package/lib/core/model/monkeyecx-model.d.ts +1 -1
- package/lib/core/pipes/index.d.ts +3 -0
- package/lib/core/pipes/monkeyecx-display-first-name.d.ts +0 -1
- package/lib/core/pipes/monkeyecx-format-address.d.ts +14 -0
- package/lib/core/pipes/monkeyecx-format-currency.d.ts +1 -3
- package/lib/core/pipes/monkeyecx-format-date-timelapse.d.ts +1 -2
- package/lib/core/pipes/monkeyecx-format-date.d.ts +7 -0
- package/lib/core/pipes/monkeyecx-format-document.d.ts +0 -1
- package/lib/core/pipes/monkeyecx-format-number.d.ts +3 -4
- package/lib/core/pipes/monkeyecx-format-phone.d.ts +7 -0
- package/lib/core/pipes/monkeyecx-format-size.d.ts +0 -1
- package/lib/core/pipes/monkeyecx-format-type-document.d.ts +3 -4
- package/lib/core/pipes/monkeyecx-format-value.d.ts +0 -1
- package/lib/core/pipes/monkeyecx-format-zipcode.d.ts +0 -1
- package/lib/core/pipes/monkeyecx-pipes.module.d.ts +14 -11
- package/lib/core/pipes/monkeyecx-text-truncate.d.ts +0 -1
- package/lib/core/services/auth/monkeyecx-authentication.service.d.ts +6 -6
- package/lib/core/services/commons/monkeyecx-commons.service.d.ts +27 -27
- package/lib/core/services/config/monkeyecx-config.service.d.ts +1 -1
- package/lib/core/services/config/monkeyecx-i18n-config.service.d.ts +0 -1
- package/lib/core/services/config/monkeyecx-maintenance-config.service.d.ts +1 -1
- package/lib/core/services/index.d.ts +13 -3
- package/lib/core/services/monkeyecx-handling.service.d.ts +8 -5
- package/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.d.ts +1 -1
- package/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.d.ts +2 -2
- package/lib/core/services/schedules/monkeyecx-request-schedule.service.d.ts +2 -2
- package/lib/core/utils/validate-utils.d.ts +13 -13
- package/monkey-front-core-0.0.37.tgz +0 -0
- package/package.json +22 -9
- package/bundles/monkey-front-core.umd.js +0 -4638
- package/bundles/monkey-front-core.umd.js.map +0 -1
- package/esm2015/lib/components/closed-to-maintenance/closed-to-maintenance.component.js +0 -32
- package/esm2015/lib/components/progress-bar/progress-bar.component.js +0 -28
- package/esm2015/lib/components/progress-bar/progress-bar.service.js +0 -49
- package/esm2015/lib/components/version-changed/version-changed.component.js +0 -25
- package/esm2015/lib/core/decorators/index.js +0 -4
- package/esm2015/lib/core/decorators/monkeyecx-decorators.js +0 -108
- package/esm2015/lib/core/decorators/monkeyecx-download-decorators.js +0 -24
- package/esm2015/lib/core/decorators/monkeyecx-upload-decorators.js +0 -24
- package/esm2015/lib/core/directives/monkeyecx-drag-drop.js +0 -57
- package/esm2015/lib/core/directives/monkeyecx-feature-directive.js +0 -66
- package/esm2015/lib/core/directives/monkeyecx-format-upper.js +0 -67
- package/esm2015/lib/core/directives/monkeyecx-security-directive.js +0 -67
- package/esm2015/lib/core/directives/monkeyecx-tooltip-directive.js +0 -120
- package/esm2015/lib/core/interceptors/monkeyecx-http-config-error.interceptor.js +0 -39
- package/esm2015/lib/core/interceptors/monkeyecx-http-config-header.interceptor.js +0 -32
- package/esm2015/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.js +0 -41
- package/esm2015/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.js +0 -37
- package/esm2015/lib/core/interfaces/monkeyecx-auth-credentials.js +0 -2
- package/esm2015/lib/core/interfaces/monkeyecx-config-boostrap.js +0 -2
- package/esm2015/lib/core/interfaces/monkeyecx-config.js +0 -2
- package/esm2015/lib/core/interfaces/monkeyecx-me-credentials.js +0 -2
- package/esm2015/lib/core/interfaces/monkeyecx-navigation.js +0 -2
- package/esm2015/lib/core/interfaces/monkeyecx-request-paged.js +0 -2
- package/esm2015/lib/core/interfaces/monkeyecx-service-credentials.js +0 -2
- package/esm2015/lib/core/interfaces/monkeyecx-token-credentials.js +0 -2
- package/esm2015/lib/core/interfaces/request-download/monkeyecx-request-download.js +0 -2
- package/esm2015/lib/core/interfaces/request-queue/monkeyecx-request-queue.js +0 -2
- package/esm2015/lib/core/interfaces/schedules/monkeyecx-request-schedule.js +0 -2
- package/esm2015/lib/core/pipes/index.js +0 -13
- package/esm2015/lib/core/pipes/monkeyecx-display-first-name.js +0 -22
- package/esm2015/lib/core/pipes/monkeyecx-format-currency.js +0 -30
- package/esm2015/lib/core/pipes/monkeyecx-format-date-timelapse.js +0 -37
- package/esm2015/lib/core/pipes/monkeyecx-format-document.js +0 -22
- package/esm2015/lib/core/pipes/monkeyecx-format-number.js +0 -23
- package/esm2015/lib/core/pipes/monkeyecx-format-size.js +0 -23
- package/esm2015/lib/core/pipes/monkeyecx-format-type-document.js +0 -22
- package/esm2015/lib/core/pipes/monkeyecx-format-value.js +0 -22
- package/esm2015/lib/core/pipes/monkeyecx-format-zipcode.js +0 -22
- package/esm2015/lib/core/pipes/monkeyecx-pipes.module.js +0 -72
- package/esm2015/lib/core/pipes/monkeyecx-text-truncate.js +0 -26
- package/esm2015/lib/core/services/auth/monkeyecx-authentication.service.js +0 -61
- package/esm2015/lib/core/services/commons/monkeyecx-commons.service.js +0 -242
- package/esm2015/lib/core/services/config/index.js +0 -9
- package/esm2015/lib/core/services/config/monkeyecx-config.service.js +0 -104
- package/esm2015/lib/core/services/config/monkeyecx-error-config.service.js +0 -85
- package/esm2015/lib/core/services/config/monkeyecx-feature-toggle.service.js +0 -65
- package/esm2015/lib/core/services/config/monkeyecx-i18n-config.service.js +0 -72
- package/esm2015/lib/core/services/config/monkeyecx-logs-config.service.js +0 -34
- package/esm2015/lib/core/services/config/monkeyecx-security-console-config.service.js +0 -42
- package/esm2015/lib/core/services/config/monkeyecx-service-worker-config.service.js +0 -54
- package/esm2015/lib/core/services/error/monkeyecx-error-handling.service.js +0 -39
- package/esm2015/lib/core/services/error/monkeyecx-http-error-handling.service.js +0 -131
- package/esm2015/lib/core/services/index.js +0 -14
- package/esm2015/lib/core/services/monkeyecx-handling.service.js +0 -44
- package/esm2015/lib/core/services/monkeyecx-service.service.js +0 -102
- package/esm2015/lib/core/services/request-download/monkeyecx-request-download-handling.service.js +0 -81
- package/esm2015/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.js +0 -55
- package/esm2015/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.js +0 -30
- package/esm2015/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.js +0 -97
- package/esm2015/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.js +0 -106
- package/esm2015/lib/core/services/schedules/monkeyecx-request-schedule.service.js +0 -99
- package/esm2015/lib/core/services/storage/monkeyecx-token-storage.service.js +0 -117
- package/esm2015/lib/core/specification-search/monkeyecx-specification-search.js +0 -97
- package/esm2015/lib/core/utils/decorators-utils.js +0 -37
- package/esm2015/lib/core/utils/utils.js +0 -219
- package/esm2015/lib/core/utils/validate-utils.js +0 -204
- package/esm2015/lib/core/utils/validators.js +0 -193
- package/esm2015/lib/monkey-front-core.module.js +0 -60
- package/fesm2015/monkey-front-core.js.map +0 -1
- package/lib/core/services/config/index.d.ts +0 -8
- package/monkey-front-core-0.0.36.tgz +0 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Pipe, Component, ViewEncapsulation, Input,
|
|
2
|
+
import { Pipe, Component, ViewEncapsulation, Input, Injectable, NgModule, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self, NgZone, ErrorHandler, Optional, SkipSelf } from '@angular/core';
|
|
3
3
|
import * as i1 from 'monkey-style-guide';
|
|
4
4
|
import { MonkeyButtonModule, MonkeyIconModule, MonkeyInputModule, MonkeyModalModule, MonkeyUtils, MonkeyStyleGuideModule, MonkeyStyleGuideModalService, MonkeyStyleGuideSettingsService, MonkeyStyleGuideSnackbarService } from 'monkey-style-guide';
|
|
5
|
+
import * as i2 from '@angular/common';
|
|
6
|
+
import { formatNumber, CurrencyPipe, CommonModule } from '@angular/common';
|
|
5
7
|
import * as i1$1 from '@ngx-translate/core';
|
|
6
|
-
import {
|
|
7
|
-
import * as
|
|
8
|
-
import * as i1$2 from '
|
|
9
|
-
import { formatNumber, CurrencyPipe, CommonModule, registerLocaleData } from '@angular/common';
|
|
8
|
+
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
|
9
|
+
import * as moment$2 from 'moment';
|
|
10
|
+
import * as i1$2 from 'ngx-cookie-service';
|
|
10
11
|
import * as i1$3 from '@angular/router';
|
|
11
12
|
import { NavigationStart, NavigationEnd, NavigationError, NavigationCancel } from '@angular/router';
|
|
12
13
|
import { BehaviorSubject, throwError, interval, concat, of, Subject } from 'rxjs';
|
|
@@ -15,10 +16,8 @@ import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
|
15
16
|
import { __decorate } from 'tslib';
|
|
16
17
|
import * as i1$4 from '@angular/common/http';
|
|
17
18
|
import { HttpParams, HttpErrorResponse, HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
|
|
18
|
-
import localePTBR from '@angular/common/locales/global/pt';
|
|
19
|
-
import * as i1$5 from 'ngx-cookie-service';
|
|
20
19
|
import { datadogRum } from '@datadog/browser-rum';
|
|
21
|
-
import * as i1$
|
|
20
|
+
import * as i1$5 from '@angular/service-worker';
|
|
22
21
|
import { ServiceWorkerModule } from '@angular/service-worker';
|
|
23
22
|
import { initialize } from 'launchdarkly-js-client-sdk';
|
|
24
23
|
|
|
@@ -155,7 +154,7 @@ class MonkeyEcxUtils {
|
|
|
155
154
|
const randomString = new Array(len)
|
|
156
155
|
.fill('1')
|
|
157
156
|
.map(() => {
|
|
158
|
-
return charSet.charAt(Math.floor(Math.random() * charSet.length));
|
|
157
|
+
return charSet === null || charSet === void 0 ? void 0 : charSet.charAt(Math.floor(Math.random() * (charSet === null || charSet === void 0 ? void 0 : charSet.length)));
|
|
159
158
|
})
|
|
160
159
|
.join('');
|
|
161
160
|
return randomString;
|
|
@@ -241,146 +240,238 @@ class MonkeyEcxUtils {
|
|
|
241
240
|
}
|
|
242
241
|
}
|
|
243
242
|
|
|
244
|
-
const moment$2 = moment_;
|
|
245
243
|
class MonkeyEcxFormatDateTimelapsePipe {
|
|
246
|
-
|
|
247
|
-
// not todo
|
|
248
|
-
}
|
|
249
|
-
transform(date, showTime = false, useUtc = true, format) {
|
|
250
|
-
var _a;
|
|
244
|
+
transform(date, showTime = false, useUtc = true, format = '- HH:mm') {
|
|
251
245
|
if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
|
|
252
246
|
return '';
|
|
253
|
-
if (!format) {
|
|
254
|
-
format = '- HH:mm';
|
|
255
|
-
}
|
|
256
247
|
let stillUtc = moment$2.utc(date).toDate();
|
|
257
248
|
if (!useUtc)
|
|
258
249
|
stillUtc = moment$2(date).toDate();
|
|
259
|
-
if (
|
|
260
|
-
|
|
261
|
-
|
|
250
|
+
if (date.toString().indexOf(':') <= -1) {
|
|
251
|
+
if (typeof date === 'string') {
|
|
252
|
+
stillUtc = date;
|
|
253
|
+
showTime = false;
|
|
254
|
+
}
|
|
262
255
|
}
|
|
263
256
|
const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
|
|
264
257
|
const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
|
|
265
258
|
return `${moment$2(stillUtc, formatFrom).format(formatTo)}`;
|
|
266
259
|
}
|
|
267
260
|
}
|
|
268
|
-
MonkeyEcxFormatDateTimelapsePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
269
|
-
MonkeyEcxFormatDateTimelapsePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
270
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
261
|
+
MonkeyEcxFormatDateTimelapsePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
262
|
+
MonkeyEcxFormatDateTimelapsePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, name: "monkeyecxFormatDateTimelapse" });
|
|
263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, decorators: [{
|
|
271
264
|
type: Pipe,
|
|
272
265
|
args: [{
|
|
273
266
|
name: 'monkeyecxFormatDateTimelapse'
|
|
274
267
|
}]
|
|
275
|
-
}]
|
|
268
|
+
}] });
|
|
276
269
|
|
|
277
270
|
class ClosedToMaintenanceComponent {
|
|
278
271
|
constructor() {
|
|
272
|
+
this.config = null;
|
|
279
273
|
this._configBoostrap = null;
|
|
280
274
|
}
|
|
281
275
|
ngOnInit() {
|
|
282
|
-
|
|
276
|
+
var _a;
|
|
277
|
+
this._configBoostrap = (_a = this.config) === null || _a === void 0 ? void 0 : _a.data;
|
|
283
278
|
}
|
|
284
279
|
onClose() {
|
|
285
280
|
document.location.reload();
|
|
286
281
|
}
|
|
287
282
|
}
|
|
288
|
-
ClosedToMaintenanceComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
289
|
-
ClosedToMaintenanceComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
290
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
283
|
+
ClosedToMaintenanceComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ClosedToMaintenanceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
284
|
+
ClosedToMaintenanceComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: ClosedToMaintenanceComponent, selector: "monkeyecx-closed-to-maintenance", inputs: { config: "config", modalRef: "modalRef" }, ngImport: i0, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\n <div class=\"d-flex flex-column justify-content-center align-items-center\">\n <span class=\"h2\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.TITLE' | translate }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-1' | translate }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-2' | translate }}\n </span>\n <span class=\"information mt-3\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-3' | translate }}\n {{ _configBoostrap?.maintenance?.endDate | monkeyecxFormatDateTimelapse: true }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-4' | translate }}\n </span>\n </div>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-5\">\n <monkey-button type=\"primary\" color=\"theme\" (click)=\"onClose()\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.BUTTONS.UPDATE-MAINTENANCE' | translate }}\n </monkey-button>\n </div>\n</monkey-modal>", styles: ["monkeyecx-closed-to-maintenance .body{padding:24px;width:100%}monkeyecx-closed-to-maintenance .information-title{font-style:normal;font-weight:600;font-size:25px;line-height:32px;display:flex;align-items:center;text-align:center;color:#4b4a53}monkeyecx-closed-to-maintenance .information{font-style:normal;font-weight:400;font-size:20px;line-height:24px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-closed-to-maintenance .browser-name{font-style:normal;font-weight:400;font-size:16px;line-height:24px;text-align:center;color:#9c9ca6}monkeyecx-closed-to-maintenance .option{text-decoration:none;padding:4px;background:#eee;border:1px solid #d6d6d6;box-sizing:border-box;border-radius:16px}monkeyecx-closed-to-maintenance monkey-modal mecx-monkey-modal .body{margin-bottom:0!important}\n"], components: [{ type: i1.MonkeyModalComponent, selector: "monkey-modal", inputs: ["config", "modalRef", "onHandleConfirm"] }, { type: i1.MonkeyButtonComponent, selector: "monkey-button", inputs: ["label", "icon", "iconPosition", "type", "color", "disabled", "size"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1$1.TranslatePipe, "monkeyecxFormatDateTimelapse": MonkeyEcxFormatDateTimelapsePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ClosedToMaintenanceComponent, decorators: [{
|
|
291
286
|
type: Component,
|
|
292
|
-
args: [{
|
|
293
|
-
selector: 'monkeyecx-closed-to-maintenance',
|
|
294
|
-
templateUrl: './closed-to-maintenance.component.html',
|
|
295
|
-
styleUrls: ['./closed-to-maintenance.component.scss'],
|
|
296
|
-
encapsulation: ViewEncapsulation.None
|
|
297
|
-
}]
|
|
287
|
+
args: [{ selector: 'monkeyecx-closed-to-maintenance', encapsulation: ViewEncapsulation.None, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\n <div class=\"d-flex flex-column justify-content-center align-items-center\">\n <span class=\"h2\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.TITLE' | translate }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-1' | translate }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-2' | translate }}\n </span>\n <span class=\"information mt-3\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-3' | translate }}\n {{ _configBoostrap?.maintenance?.endDate | monkeyecxFormatDateTimelapse: true }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-4' | translate }}\n </span>\n </div>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-5\">\n <monkey-button type=\"primary\" color=\"theme\" (click)=\"onClose()\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.BUTTONS.UPDATE-MAINTENANCE' | translate }}\n </monkey-button>\n </div>\n</monkey-modal>", styles: ["monkeyecx-closed-to-maintenance .body{padding:24px;width:100%}monkeyecx-closed-to-maintenance .information-title{font-style:normal;font-weight:600;font-size:25px;line-height:32px;display:flex;align-items:center;text-align:center;color:#4b4a53}monkeyecx-closed-to-maintenance .information{font-style:normal;font-weight:400;font-size:20px;line-height:24px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-closed-to-maintenance .browser-name{font-style:normal;font-weight:400;font-size:16px;line-height:24px;text-align:center;color:#9c9ca6}monkeyecx-closed-to-maintenance .option{text-decoration:none;padding:4px;background:#eee;border:1px solid #d6d6d6;box-sizing:border-box;border-radius:16px}monkeyecx-closed-to-maintenance monkey-modal mecx-monkey-modal .body{margin-bottom:0!important}\n"] }]
|
|
298
288
|
}], propDecorators: { config: [{
|
|
299
289
|
type: Input
|
|
300
290
|
}], modalRef: [{
|
|
301
291
|
type: Input
|
|
302
292
|
}] } });
|
|
303
293
|
|
|
304
|
-
class
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
}
|
|
308
|
-
transform(number) {
|
|
309
|
-
if (!MonkeyEcxUtils.persistNullEmptyUndefined(number))
|
|
294
|
+
class MonkeyEcxDisplayFirstNamePipe {
|
|
295
|
+
transform(name) {
|
|
296
|
+
if (!MonkeyEcxUtils.persistNullEmptyUndefined(name))
|
|
310
297
|
return '';
|
|
311
|
-
return
|
|
298
|
+
return MonkeyEcxUtils.cutFirstLastName(name);
|
|
312
299
|
}
|
|
313
300
|
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
301
|
+
MonkeyEcxDisplayFirstNamePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDisplayFirstNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
302
|
+
MonkeyEcxDisplayFirstNamePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDisplayFirstNamePipe, name: "monkeyecxDisplayFirstName" });
|
|
303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDisplayFirstNamePipe, decorators: [{
|
|
317
304
|
type: Pipe,
|
|
318
305
|
args: [{
|
|
319
|
-
name: '
|
|
306
|
+
name: 'monkeyecxDisplayFirstName'
|
|
320
307
|
}]
|
|
321
|
-
}]
|
|
308
|
+
}] });
|
|
322
309
|
|
|
323
|
-
class
|
|
324
|
-
|
|
310
|
+
class MonkeyEcxFormatAddressPipe {
|
|
311
|
+
transform({ zipCode, address, neighborhood, city, state, }) {
|
|
312
|
+
return [address, neighborhood, zipCode, city, state]
|
|
313
|
+
.filter((_) => {
|
|
314
|
+
return _;
|
|
315
|
+
})
|
|
316
|
+
.join(', ');
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
MonkeyEcxFormatAddressPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatAddressPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
320
|
+
MonkeyEcxFormatAddressPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatAddressPipe, name: "monkeyecxFormatAddress" });
|
|
321
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatAddressPipe, decorators: [{
|
|
322
|
+
type: Pipe,
|
|
323
|
+
args: [{
|
|
324
|
+
name: 'monkeyecxFormatAddress',
|
|
325
|
+
}]
|
|
326
|
+
}] });
|
|
327
|
+
|
|
328
|
+
/* eslint-disable object-curly-newline */
|
|
329
|
+
class MonkeyEcxCookieStorageService {
|
|
330
|
+
constructor(cookieService) {
|
|
331
|
+
this.cookieService = cookieService;
|
|
325
332
|
// not to do
|
|
326
333
|
}
|
|
327
|
-
|
|
328
|
-
|
|
334
|
+
setCookie(name, value) {
|
|
335
|
+
this.removeCookie(name);
|
|
336
|
+
this.cookieService.set(name, value, undefined, '/', '', true, 'None');
|
|
337
|
+
}
|
|
338
|
+
getCookie(name) {
|
|
339
|
+
return this.cookieService.get(name);
|
|
340
|
+
}
|
|
341
|
+
removeCookie(name) {
|
|
342
|
+
this.cookieService.delete(name, '/');
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
MonkeyEcxCookieStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, deps: [{ token: i1$2.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
346
|
+
MonkeyEcxCookieStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, providedIn: 'root' });
|
|
347
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, decorators: [{
|
|
348
|
+
type: Injectable,
|
|
349
|
+
args: [{
|
|
350
|
+
providedIn: 'root'
|
|
351
|
+
}]
|
|
352
|
+
}], ctorParameters: function () { return [{ type: i1$2.CookieService }]; } });
|
|
353
|
+
|
|
354
|
+
class MonkeyEcxFormatCurrencyPipe {
|
|
355
|
+
constructor(injector, currencyPipe) {
|
|
356
|
+
this.injector = injector;
|
|
357
|
+
this.currencyPipe = currencyPipe;
|
|
358
|
+
// not to do
|
|
359
|
+
}
|
|
360
|
+
transform(value) {
|
|
361
|
+
const cookieStorageService = this.injector.get(MonkeyEcxCookieStorageService);
|
|
362
|
+
const cookie = cookieStorageService.getCookie('monkey-app-locale');
|
|
363
|
+
const i18n = JSON.parse(atob(cookie));
|
|
364
|
+
const { currency } = i18n;
|
|
365
|
+
return this.currencyPipe.transform(value, currency, 'symbol');
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
MonkeyEcxFormatCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, deps: [{ token: i0.Injector }, { token: i2.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
369
|
+
MonkeyEcxFormatCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, name: "monkeyecxFormatCurrency" });
|
|
370
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, decorators: [{
|
|
371
|
+
type: Pipe,
|
|
372
|
+
args: [{
|
|
373
|
+
name: 'monkeyecxFormatCurrency'
|
|
374
|
+
}]
|
|
375
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i2.CurrencyPipe }]; } });
|
|
376
|
+
|
|
377
|
+
class MonkeyEcxFormatDatePipe {
|
|
378
|
+
transform(date, showTime = false, format) {
|
|
379
|
+
if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
|
|
329
380
|
return '';
|
|
330
|
-
|
|
381
|
+
let stillUtc = moment$2.utc(date).toDate();
|
|
382
|
+
if (date.indexOf(':') <= -1) {
|
|
383
|
+
stillUtc = date;
|
|
384
|
+
}
|
|
385
|
+
if (!format) {
|
|
386
|
+
format = 'HH:mm';
|
|
387
|
+
}
|
|
388
|
+
const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
|
|
389
|
+
const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
|
|
390
|
+
return `${moment$2(stillUtc, formatFrom).local().format(formatTo)}`;
|
|
331
391
|
}
|
|
332
392
|
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
393
|
+
MonkeyEcxFormatDatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
394
|
+
MonkeyEcxFormatDatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDatePipe, name: "monkeyecxFormatDate" });
|
|
395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDatePipe, decorators: [{
|
|
336
396
|
type: Pipe,
|
|
337
397
|
args: [{
|
|
338
|
-
name: '
|
|
398
|
+
name: 'monkeyecxFormatDate',
|
|
339
399
|
}]
|
|
340
|
-
}]
|
|
400
|
+
}] });
|
|
341
401
|
|
|
342
402
|
class MonkeyEcxFormatDocumentPipe {
|
|
343
|
-
constructor() {
|
|
344
|
-
// not to do
|
|
345
|
-
}
|
|
346
403
|
transform(document, withType) {
|
|
347
404
|
if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
|
|
348
405
|
return '';
|
|
349
406
|
return MonkeyEcxUtils.formatDocumentWithMask(document, withType);
|
|
350
407
|
}
|
|
351
408
|
}
|
|
352
|
-
MonkeyEcxFormatDocumentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
353
|
-
MonkeyEcxFormatDocumentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
354
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
409
|
+
MonkeyEcxFormatDocumentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
410
|
+
MonkeyEcxFormatDocumentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentPipe, name: "monkeyecxFormatDocument" });
|
|
411
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentPipe, decorators: [{
|
|
355
412
|
type: Pipe,
|
|
356
413
|
args: [{
|
|
357
414
|
name: 'monkeyecxFormatDocument'
|
|
358
415
|
}]
|
|
359
|
-
}]
|
|
416
|
+
}] });
|
|
360
417
|
|
|
361
|
-
class
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
}
|
|
365
|
-
transform(name) {
|
|
366
|
-
if (!MonkeyEcxUtils.persistNullEmptyUndefined(name))
|
|
418
|
+
class MonkeyEcxFormatNumberPipe {
|
|
419
|
+
transform(number) {
|
|
420
|
+
if (!MonkeyEcxUtils.persistNullEmptyUndefined(number))
|
|
367
421
|
return '';
|
|
368
|
-
return
|
|
422
|
+
return formatNumber(Number(number), 'ptbr');
|
|
369
423
|
}
|
|
370
424
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
425
|
+
MonkeyEcxFormatNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
426
|
+
MonkeyEcxFormatNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatNumberPipe, name: "monkeyecxFormatNumber" });
|
|
427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatNumberPipe, decorators: [{
|
|
374
428
|
type: Pipe,
|
|
375
429
|
args: [{
|
|
376
|
-
name: '
|
|
430
|
+
name: 'monkeyecxFormatNumber'
|
|
377
431
|
}]
|
|
378
|
-
}]
|
|
432
|
+
}] });
|
|
379
433
|
|
|
380
|
-
class
|
|
381
|
-
|
|
382
|
-
|
|
434
|
+
class MonkeyEcxFormatPhonePipe {
|
|
435
|
+
transform(phone) {
|
|
436
|
+
if (phone) {
|
|
437
|
+
const value = `${phone || ''}`.replace(/\D/g, '');
|
|
438
|
+
let formated = '';
|
|
439
|
+
if (value.length > 12) {
|
|
440
|
+
formated = value.replace(/(\d{2})?(\d{2})?(\d{5})?(\d{4})/, '+$1 ($2) $3-$4');
|
|
441
|
+
}
|
|
442
|
+
else if (value.length > 11) {
|
|
443
|
+
formated = value.replace(/(\d{2})?(\d{2})?(\d{4})?(\d{4})/, '+$1 ($2) $3-$4');
|
|
444
|
+
}
|
|
445
|
+
else if (value.length > 10) {
|
|
446
|
+
formated = value.replace(/(\d{2})?(\d{5})?(\d{4})/, '($1) $2-$3');
|
|
447
|
+
}
|
|
448
|
+
else if (value.length > 9) {
|
|
449
|
+
formated = value.replace(/(\d{2})?(\d{4})?(\d{4})/, '($1) $2-$3');
|
|
450
|
+
}
|
|
451
|
+
else if (value.length > 5) {
|
|
452
|
+
formated = value.replace(/^(\d{2})?(\d{4})?(\d{0,4})/, '($1) $2-$3');
|
|
453
|
+
}
|
|
454
|
+
else if (value.length > 1) {
|
|
455
|
+
formated = value.replace(/^(\d{2})?(\d{0,5})/, '($1) $2');
|
|
456
|
+
}
|
|
457
|
+
else if (phone !== '') {
|
|
458
|
+
formated = value.replace(/^(\d*)/, '($1');
|
|
459
|
+
}
|
|
460
|
+
return formated;
|
|
461
|
+
}
|
|
462
|
+
return '';
|
|
383
463
|
}
|
|
464
|
+
}
|
|
465
|
+
MonkeyEcxFormatPhonePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatPhonePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
466
|
+
MonkeyEcxFormatPhonePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatPhonePipe, name: "monkeyecxFormatPhone" });
|
|
467
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatPhonePipe, decorators: [{
|
|
468
|
+
type: Pipe,
|
|
469
|
+
args: [{
|
|
470
|
+
name: 'monkeyecxFormatPhone'
|
|
471
|
+
}]
|
|
472
|
+
}] });
|
|
473
|
+
|
|
474
|
+
class MonkeyEcxFormatSizePipe {
|
|
384
475
|
transform(size) {
|
|
385
476
|
if (!size)
|
|
386
477
|
return '0 B';
|
|
@@ -388,64 +479,64 @@ class MonkeyEcxFormatSizePipe {
|
|
|
388
479
|
return MonkeyEcxUtils.formatFileSize(sizeNum);
|
|
389
480
|
}
|
|
390
481
|
}
|
|
391
|
-
MonkeyEcxFormatSizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
392
|
-
MonkeyEcxFormatSizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
393
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
482
|
+
MonkeyEcxFormatSizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatSizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
483
|
+
MonkeyEcxFormatSizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatSizePipe, name: "monkeyecxFormatSize" });
|
|
484
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatSizePipe, decorators: [{
|
|
394
485
|
type: Pipe,
|
|
395
486
|
args: [{
|
|
396
487
|
name: 'monkeyecxFormatSize'
|
|
397
488
|
}]
|
|
398
|
-
}]
|
|
489
|
+
}] });
|
|
399
490
|
|
|
400
|
-
class
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
this.currentLocale = 'pt-BR';
|
|
406
|
-
const translateService = this.injector.get(TranslateService);
|
|
407
|
-
translateService.get('MONKEY-CURRENCY-CODE').subscribe((_) => {
|
|
408
|
-
this.currencyCode = _;
|
|
409
|
-
this.currentLocale = translateService.getDefaultLang();
|
|
410
|
-
});
|
|
491
|
+
class MonkeyEcxFormatDocumentTypePipe {
|
|
492
|
+
transform(document) {
|
|
493
|
+
if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
|
|
494
|
+
return '';
|
|
495
|
+
return MonkeyEcxUtils.getDocumentType(document);
|
|
411
496
|
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
497
|
+
}
|
|
498
|
+
MonkeyEcxFormatDocumentTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
499
|
+
MonkeyEcxFormatDocumentTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, name: "monkeyecxFormatDocumentType" });
|
|
500
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, decorators: [{
|
|
501
|
+
type: Pipe,
|
|
502
|
+
args: [{
|
|
503
|
+
name: 'monkeyecxFormatDocumentType'
|
|
504
|
+
}]
|
|
505
|
+
}] });
|
|
506
|
+
|
|
507
|
+
class MonkeyEcxFormatValue {
|
|
508
|
+
transform(number) {
|
|
509
|
+
if (!MonkeyEcxUtils.persistNullEmptyUndefined(number))
|
|
510
|
+
return '';
|
|
511
|
+
return number;
|
|
415
512
|
}
|
|
416
513
|
}
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
514
|
+
MonkeyEcxFormatValue.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatValue, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
515
|
+
MonkeyEcxFormatValue.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatValue, name: "monkeyecxFormatValue" });
|
|
516
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatValue, decorators: [{
|
|
420
517
|
type: Pipe,
|
|
421
518
|
args: [{
|
|
422
|
-
name: '
|
|
519
|
+
name: 'monkeyecxFormatValue'
|
|
423
520
|
}]
|
|
424
|
-
}]
|
|
521
|
+
}] });
|
|
425
522
|
|
|
426
523
|
class MonkeyEcxFormatZipCodePipe {
|
|
427
|
-
constructor() {
|
|
428
|
-
// not to do
|
|
429
|
-
}
|
|
430
524
|
transform(zipCode) {
|
|
431
525
|
if (!MonkeyEcxUtils.persistNullEmptyUndefined(zipCode))
|
|
432
526
|
return '';
|
|
433
527
|
return MonkeyEcxUtils.formatZipCode(zipCode);
|
|
434
528
|
}
|
|
435
529
|
}
|
|
436
|
-
MonkeyEcxFormatZipCodePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
437
|
-
MonkeyEcxFormatZipCodePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
438
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
530
|
+
MonkeyEcxFormatZipCodePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatZipCodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
531
|
+
MonkeyEcxFormatZipCodePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatZipCodePipe, name: "monkeyecxFormatZipCode" });
|
|
532
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatZipCodePipe, decorators: [{
|
|
439
533
|
type: Pipe,
|
|
440
534
|
args: [{
|
|
441
535
|
name: 'monkeyecxFormatZipCode'
|
|
442
536
|
}]
|
|
443
|
-
}]
|
|
537
|
+
}] });
|
|
444
538
|
|
|
445
539
|
class MonkeyEcxTextTruncatePipe {
|
|
446
|
-
constructor() {
|
|
447
|
-
// not to do
|
|
448
|
-
}
|
|
449
540
|
transform(text, maxLength = 25) {
|
|
450
541
|
const midChar = '...';
|
|
451
542
|
if (!text)
|
|
@@ -457,42 +548,23 @@ class MonkeyEcxTextTruncatePipe {
|
|
|
457
548
|
return `${text.substr(0, left)} ${midChar} ${text.substring(right)}`;
|
|
458
549
|
}
|
|
459
550
|
}
|
|
460
|
-
MonkeyEcxTextTruncatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
461
|
-
MonkeyEcxTextTruncatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
551
|
+
MonkeyEcxTextTruncatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTextTruncatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
552
|
+
MonkeyEcxTextTruncatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTextTruncatePipe, name: "monkeyecxTextTruncate" });
|
|
553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTextTruncatePipe, decorators: [{
|
|
463
554
|
type: Pipe,
|
|
464
555
|
args: [{
|
|
465
556
|
name: 'monkeyecxTextTruncate'
|
|
466
557
|
}]
|
|
467
|
-
}]
|
|
468
|
-
|
|
469
|
-
class MonkeyEcxDocumentTypePipe {
|
|
470
|
-
constructor() {
|
|
471
|
-
// not to do
|
|
472
|
-
}
|
|
473
|
-
transform(document) {
|
|
474
|
-
if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
|
|
475
|
-
return '';
|
|
476
|
-
return MonkeyEcxUtils.getDocumentType(document);
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
MonkeyEcxDocumentTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxDocumentTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
480
|
-
MonkeyEcxDocumentTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxDocumentTypePipe, name: "monkeyecxDocumentType" });
|
|
481
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxDocumentTypePipe, decorators: [{
|
|
482
|
-
type: Pipe,
|
|
483
|
-
args: [{
|
|
484
|
-
name: 'monkeyecxDocumentType'
|
|
485
|
-
}]
|
|
486
|
-
}], ctorParameters: function () { return []; } });
|
|
558
|
+
}] });
|
|
487
559
|
|
|
488
560
|
class MonkeyEcxTruncateQtdPipe {
|
|
489
561
|
transform(number, threshold) {
|
|
490
562
|
return `${number > threshold ? `${threshold}+` : number}`;
|
|
491
563
|
}
|
|
492
564
|
}
|
|
493
|
-
MonkeyEcxTruncateQtdPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
494
|
-
MonkeyEcxTruncateQtdPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
495
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
565
|
+
MonkeyEcxTruncateQtdPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTruncateQtdPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
566
|
+
MonkeyEcxTruncateQtdPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTruncateQtdPipe, name: "monkeyecxTruncateQtd" });
|
|
567
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTruncateQtdPipe, decorators: [{
|
|
496
568
|
type: Pipe,
|
|
497
569
|
args: [{
|
|
498
570
|
name: 'monkeyecxTruncateQtd'
|
|
@@ -501,57 +573,69 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
501
573
|
|
|
502
574
|
class MonkeyEcxPipesModule {
|
|
503
575
|
}
|
|
504
|
-
MonkeyEcxPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
505
|
-
MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
576
|
+
MonkeyEcxPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
577
|
+
MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, declarations: [MonkeyEcxDisplayFirstNamePipe,
|
|
578
|
+
MonkeyEcxFormatAddressPipe,
|
|
579
|
+
MonkeyEcxFormatCurrencyPipe,
|
|
506
580
|
MonkeyEcxFormatDateTimelapsePipe,
|
|
507
|
-
|
|
581
|
+
MonkeyEcxFormatDatePipe,
|
|
582
|
+
MonkeyEcxFormatDocumentPipe,
|
|
583
|
+
MonkeyEcxFormatNumberPipe,
|
|
584
|
+
MonkeyEcxFormatPhonePipe,
|
|
508
585
|
MonkeyEcxFormatSizePipe,
|
|
509
|
-
|
|
510
|
-
MonkeyEcxFormatZipCodePipe,
|
|
511
|
-
MonkeyEcxFormatNumber,
|
|
586
|
+
MonkeyEcxFormatDocumentTypePipe,
|
|
512
587
|
MonkeyEcxFormatValue,
|
|
588
|
+
MonkeyEcxFormatZipCodePipe,
|
|
513
589
|
MonkeyEcxTextTruncatePipe,
|
|
514
|
-
MonkeyEcxTruncateQtdPipe,
|
|
515
|
-
|
|
590
|
+
MonkeyEcxTruncateQtdPipe], exports: [MonkeyEcxDisplayFirstNamePipe,
|
|
591
|
+
MonkeyEcxFormatAddressPipe,
|
|
592
|
+
MonkeyEcxFormatCurrencyPipe,
|
|
516
593
|
MonkeyEcxFormatDateTimelapsePipe,
|
|
517
|
-
|
|
594
|
+
MonkeyEcxFormatDatePipe,
|
|
595
|
+
MonkeyEcxFormatDocumentPipe,
|
|
596
|
+
MonkeyEcxFormatNumberPipe,
|
|
597
|
+
MonkeyEcxFormatPhonePipe,
|
|
518
598
|
MonkeyEcxFormatSizePipe,
|
|
519
|
-
|
|
520
|
-
MonkeyEcxFormatZipCodePipe,
|
|
521
|
-
MonkeyEcxFormatNumber,
|
|
599
|
+
MonkeyEcxFormatDocumentTypePipe,
|
|
522
600
|
MonkeyEcxFormatValue,
|
|
601
|
+
MonkeyEcxFormatZipCodePipe,
|
|
523
602
|
MonkeyEcxTextTruncatePipe,
|
|
524
|
-
MonkeyEcxTruncateQtdPipe
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxPipesModule, decorators: [{
|
|
603
|
+
MonkeyEcxTruncateQtdPipe] });
|
|
604
|
+
MonkeyEcxPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, providers: [CurrencyPipe] });
|
|
605
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, decorators: [{
|
|
528
606
|
type: NgModule,
|
|
529
607
|
args: [{
|
|
530
608
|
declarations: [
|
|
531
|
-
MonkeyEcxFormatDocumentPipe,
|
|
532
|
-
MonkeyEcxFormatDateTimelapsePipe,
|
|
533
609
|
MonkeyEcxDisplayFirstNamePipe,
|
|
534
|
-
|
|
610
|
+
MonkeyEcxFormatAddressPipe,
|
|
535
611
|
MonkeyEcxFormatCurrencyPipe,
|
|
536
|
-
|
|
537
|
-
|
|
612
|
+
MonkeyEcxFormatDateTimelapsePipe,
|
|
613
|
+
MonkeyEcxFormatDatePipe,
|
|
614
|
+
MonkeyEcxFormatDocumentPipe,
|
|
615
|
+
MonkeyEcxFormatNumberPipe,
|
|
616
|
+
MonkeyEcxFormatPhonePipe,
|
|
617
|
+
MonkeyEcxFormatSizePipe,
|
|
618
|
+
MonkeyEcxFormatDocumentTypePipe,
|
|
538
619
|
MonkeyEcxFormatValue,
|
|
620
|
+
MonkeyEcxFormatZipCodePipe,
|
|
539
621
|
MonkeyEcxTextTruncatePipe,
|
|
540
|
-
MonkeyEcxTruncateQtdPipe
|
|
541
|
-
MonkeyEcxDocumentTypePipe
|
|
622
|
+
MonkeyEcxTruncateQtdPipe
|
|
542
623
|
],
|
|
543
624
|
exports: [
|
|
544
|
-
MonkeyEcxFormatDocumentPipe,
|
|
545
|
-
MonkeyEcxFormatDateTimelapsePipe,
|
|
546
625
|
MonkeyEcxDisplayFirstNamePipe,
|
|
547
|
-
|
|
626
|
+
MonkeyEcxFormatAddressPipe,
|
|
548
627
|
MonkeyEcxFormatCurrencyPipe,
|
|
549
|
-
|
|
550
|
-
|
|
628
|
+
MonkeyEcxFormatDateTimelapsePipe,
|
|
629
|
+
MonkeyEcxFormatDatePipe,
|
|
630
|
+
MonkeyEcxFormatDocumentPipe,
|
|
631
|
+
MonkeyEcxFormatNumberPipe,
|
|
632
|
+
MonkeyEcxFormatPhonePipe,
|
|
633
|
+
MonkeyEcxFormatSizePipe,
|
|
634
|
+
MonkeyEcxFormatDocumentTypePipe,
|
|
551
635
|
MonkeyEcxFormatValue,
|
|
636
|
+
MonkeyEcxFormatZipCodePipe,
|
|
552
637
|
MonkeyEcxTextTruncatePipe,
|
|
553
|
-
MonkeyEcxTruncateQtdPipe
|
|
554
|
-
MonkeyEcxDocumentTypePipe
|
|
638
|
+
MonkeyEcxTruncateQtdPipe
|
|
555
639
|
],
|
|
556
640
|
providers: [CurrencyPipe]
|
|
557
641
|
}]
|
|
@@ -559,14 +643,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
559
643
|
|
|
560
644
|
class ClosedToMaintenanceModule {
|
|
561
645
|
}
|
|
562
|
-
ClosedToMaintenanceModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
563
|
-
ClosedToMaintenanceModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
646
|
+
ClosedToMaintenanceModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ClosedToMaintenanceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
647
|
+
ClosedToMaintenanceModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ClosedToMaintenanceModule, declarations: [ClosedToMaintenanceComponent], imports: [CommonModule,
|
|
564
648
|
MonkeyButtonModule,
|
|
565
649
|
MonkeyIconModule,
|
|
566
650
|
MonkeyInputModule,
|
|
567
651
|
MonkeyModalModule,
|
|
568
652
|
MonkeyEcxPipesModule, i1$1.TranslateModule], exports: [ClosedToMaintenanceComponent] });
|
|
569
|
-
ClosedToMaintenanceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
653
|
+
ClosedToMaintenanceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ClosedToMaintenanceModule, imports: [[
|
|
570
654
|
CommonModule,
|
|
571
655
|
MonkeyButtonModule,
|
|
572
656
|
MonkeyIconModule,
|
|
@@ -575,7 +659,7 @@ ClosedToMaintenanceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0
|
|
|
575
659
|
MonkeyEcxPipesModule,
|
|
576
660
|
TranslateModule.forChild()
|
|
577
661
|
]] });
|
|
578
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
662
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ClosedToMaintenanceModule, decorators: [{
|
|
579
663
|
type: NgModule,
|
|
580
664
|
args: [{
|
|
581
665
|
declarations: [ClosedToMaintenanceComponent],
|
|
@@ -595,6 +679,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
595
679
|
class MonkeyEcxProgressBarService {
|
|
596
680
|
constructor(router) {
|
|
597
681
|
this.router = router;
|
|
682
|
+
this.visible = null;
|
|
598
683
|
this.init();
|
|
599
684
|
}
|
|
600
685
|
init() {
|
|
@@ -617,18 +702,21 @@ class MonkeyEcxProgressBarService {
|
|
|
617
702
|
});
|
|
618
703
|
}
|
|
619
704
|
show() {
|
|
620
|
-
|
|
705
|
+
var _a;
|
|
706
|
+
(_a = this.visible) === null || _a === void 0 ? void 0 : _a.next(true);
|
|
621
707
|
}
|
|
622
708
|
hide() {
|
|
623
|
-
|
|
709
|
+
var _a;
|
|
710
|
+
(_a = this.visible) === null || _a === void 0 ? void 0 : _a.next(false);
|
|
624
711
|
}
|
|
625
712
|
visibleConfig() {
|
|
626
|
-
|
|
713
|
+
var _a;
|
|
714
|
+
return ((_a = this.visible) === null || _a === void 0 ? void 0 : _a.asObservable()) || null;
|
|
627
715
|
}
|
|
628
716
|
}
|
|
629
|
-
MonkeyEcxProgressBarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
630
|
-
MonkeyEcxProgressBarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
717
|
+
MonkeyEcxProgressBarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarService, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
718
|
+
MonkeyEcxProgressBarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarService, providedIn: 'root' });
|
|
719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarService, decorators: [{
|
|
632
720
|
type: Injectable,
|
|
633
721
|
args: [{
|
|
634
722
|
providedIn: 'root'
|
|
@@ -642,29 +730,25 @@ class MonkeyEcxProgressBarComponent {
|
|
|
642
730
|
//not to do
|
|
643
731
|
}
|
|
644
732
|
ngOnInit() {
|
|
645
|
-
|
|
733
|
+
var _a, _b;
|
|
734
|
+
(_b = (_a = this.progressBarService) === null || _a === void 0 ? void 0 : _a.visibleConfig()) === null || _b === void 0 ? void 0 : _b.subscribe((visible) => {
|
|
646
735
|
this.visible = visible;
|
|
647
736
|
});
|
|
648
737
|
}
|
|
649
738
|
}
|
|
650
|
-
MonkeyEcxProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
651
|
-
MonkeyEcxProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
652
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
739
|
+
MonkeyEcxProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarComponent, deps: [{ token: MonkeyEcxProgressBarService }], target: i0.ɵɵFactoryTarget.Component });
|
|
740
|
+
MonkeyEcxProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxProgressBarComponent, selector: "monkeyecx-progress-bar", ngImport: i0, template: "<ng-container *ngIf=\"visible\">\n <progress class=\"monkey-progress monkey-progress__theme\"></progress>\n</ng-container>\n", styles: ["monkeyecx-progress-bar{position:absolute;width:100%;margin-top:-9.5px;z-index:99998}\n"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
741
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarComponent, decorators: [{
|
|
653
742
|
type: Component,
|
|
654
|
-
args: [{
|
|
655
|
-
selector: 'monkeyecx-progress-bar',
|
|
656
|
-
templateUrl: './progress-bar.component.html',
|
|
657
|
-
styleUrls: ['./progress-bar.component.scss'],
|
|
658
|
-
encapsulation: ViewEncapsulation.None
|
|
659
|
-
}]
|
|
743
|
+
args: [{ selector: 'monkeyecx-progress-bar', encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"visible\">\n <progress class=\"monkey-progress monkey-progress__theme\"></progress>\n</ng-container>\n", styles: ["monkeyecx-progress-bar{position:absolute;width:100%;margin-top:-9.5px;z-index:99998}\n"] }]
|
|
660
744
|
}], ctorParameters: function () { return [{ type: MonkeyEcxProgressBarService }]; } });
|
|
661
745
|
|
|
662
746
|
class MonkeyEcxProgressBarModule {
|
|
663
747
|
}
|
|
664
|
-
MonkeyEcxProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
665
|
-
MonkeyEcxProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
666
|
-
MonkeyEcxProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
667
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
748
|
+
MonkeyEcxProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
749
|
+
MonkeyEcxProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarModule, declarations: [MonkeyEcxProgressBarComponent], imports: [CommonModule], exports: [MonkeyEcxProgressBarComponent] });
|
|
750
|
+
MonkeyEcxProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarModule, imports: [[CommonModule]] });
|
|
751
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarModule, decorators: [{
|
|
668
752
|
type: NgModule,
|
|
669
753
|
args: [{
|
|
670
754
|
declarations: [MonkeyEcxProgressBarComponent],
|
|
@@ -674,20 +758,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
674
758
|
}] });
|
|
675
759
|
|
|
676
760
|
class VersionChangedComponent {
|
|
761
|
+
constructor() {
|
|
762
|
+
this.config = null;
|
|
763
|
+
}
|
|
677
764
|
onClose() {
|
|
678
765
|
document.location.reload();
|
|
679
766
|
}
|
|
680
767
|
}
|
|
681
|
-
VersionChangedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
682
|
-
VersionChangedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
768
|
+
VersionChangedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: VersionChangedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
769
|
+
VersionChangedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: VersionChangedComponent, selector: "monkeyecx-version-changed", inputs: { config: "config", modalRef: "modalRef" }, ngImport: i0, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\n <div class=\"d-flex flex-column justify-content-center align-items-center\">\n <span class=\"h2\">\n {{ 'SCREENS.VERSION-CHANGED.TITLE' | translate }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.VERSION-CHANGED.INFORMATION-1' | translate }}\n </span>\n <span class=\"information mt-3\">\n {{ 'SCREENS.VERSION-CHANGED.INFORMATION-2' | translate }}\n </span>\n </div>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-5\">\n <monkey-button type=\"primary\" color=\"theme\" (click)=\"onClose()\">\n {{ 'SCREENS.VERSION-CHANGED.BUTTONS.UPDATE-VERSION' | translate }}\n </monkey-button>\n </div>\n</monkey-modal>", styles: ["monkeyecx-version-changed .body{padding:24px;width:100%}monkeyecx-version-changed .information-title{font-style:normal;font-weight:600;font-size:25px;line-height:32px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-version-changed .information{font-style:normal;font-weight:400;font-size:20px;line-height:24px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-version-changed .browser-name{font-style:normal;font-weight:400;font-size:16px;line-height:24px;text-align:center;color:#9c9ca6}monkeyecx-version-changed .option{text-decoration:none;padding:4px;background:#eee;border:1px solid #d6d6d6;box-sizing:border-box;border-radius:16px}monkeyecx-version-changed monkey-modal mecx-monkey-modal .body{margin-bottom:0!important}\n"], components: [{ type: i1.MonkeyModalComponent, selector: "monkey-modal", inputs: ["config", "modalRef", "onHandleConfirm"] }, { type: i1.MonkeyButtonComponent, selector: "monkey-button", inputs: ["label", "icon", "iconPosition", "type", "color", "disabled", "size"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1$1.TranslatePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
770
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: VersionChangedComponent, decorators: [{
|
|
684
771
|
type: Component,
|
|
685
|
-
args: [{
|
|
686
|
-
selector: 'monkeyecx-version-changed',
|
|
687
|
-
templateUrl: './version-changed.component.html',
|
|
688
|
-
styleUrls: ['./version-changed.component.scss'],
|
|
689
|
-
encapsulation: ViewEncapsulation.None
|
|
690
|
-
}]
|
|
772
|
+
args: [{ selector: 'monkeyecx-version-changed', encapsulation: ViewEncapsulation.None, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\n <div class=\"d-flex flex-column justify-content-center align-items-center\">\n <span class=\"h2\">\n {{ 'SCREENS.VERSION-CHANGED.TITLE' | translate }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.VERSION-CHANGED.INFORMATION-1' | translate }}\n </span>\n <span class=\"information mt-3\">\n {{ 'SCREENS.VERSION-CHANGED.INFORMATION-2' | translate }}\n </span>\n </div>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-5\">\n <monkey-button type=\"primary\" color=\"theme\" (click)=\"onClose()\">\n {{ 'SCREENS.VERSION-CHANGED.BUTTONS.UPDATE-VERSION' | translate }}\n </monkey-button>\n </div>\n</monkey-modal>", styles: ["monkeyecx-version-changed .body{padding:24px;width:100%}monkeyecx-version-changed .information-title{font-style:normal;font-weight:600;font-size:25px;line-height:32px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-version-changed .information{font-style:normal;font-weight:400;font-size:20px;line-height:24px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-version-changed .browser-name{font-style:normal;font-weight:400;font-size:16px;line-height:24px;text-align:center;color:#9c9ca6}monkeyecx-version-changed .option{text-decoration:none;padding:4px;background:#eee;border:1px solid #d6d6d6;box-sizing:border-box;border-radius:16px}monkeyecx-version-changed monkey-modal mecx-monkey-modal .body{margin-bottom:0!important}\n"] }]
|
|
691
773
|
}], propDecorators: { config: [{
|
|
692
774
|
type: Input
|
|
693
775
|
}], modalRef: [{
|
|
@@ -696,13 +778,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
696
778
|
|
|
697
779
|
class VersionChangedModule {
|
|
698
780
|
}
|
|
699
|
-
VersionChangedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
700
|
-
VersionChangedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
781
|
+
VersionChangedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: VersionChangedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
782
|
+
VersionChangedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: VersionChangedModule, declarations: [VersionChangedComponent], imports: [CommonModule,
|
|
701
783
|
MonkeyButtonModule,
|
|
702
784
|
MonkeyIconModule,
|
|
703
785
|
MonkeyInputModule,
|
|
704
786
|
MonkeyModalModule, i1$1.TranslateModule], exports: [VersionChangedComponent] });
|
|
705
|
-
VersionChangedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
787
|
+
VersionChangedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: VersionChangedModule, imports: [[
|
|
706
788
|
CommonModule,
|
|
707
789
|
MonkeyButtonModule,
|
|
708
790
|
MonkeyIconModule,
|
|
@@ -710,7 +792,7 @@ VersionChangedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
710
792
|
MonkeyModalModule,
|
|
711
793
|
TranslateModule.forChild()
|
|
712
794
|
]] });
|
|
713
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: VersionChangedModule, decorators: [{
|
|
714
796
|
type: NgModule,
|
|
715
797
|
args: [{
|
|
716
798
|
declarations: [VersionChangedComponent],
|
|
@@ -726,8 +808,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
726
808
|
}]
|
|
727
809
|
}] });
|
|
728
810
|
|
|
811
|
+
/* eslint-disable space-before-function-paren */
|
|
812
|
+
/* eslint-disable func-names */
|
|
813
|
+
function MonkeyEcxCoreCharts(render = true) {
|
|
814
|
+
return (target, propertyName, propertyDescriptor) => {
|
|
815
|
+
const method = propertyDescriptor.value;
|
|
816
|
+
propertyDescriptor.value = function (...args) {
|
|
817
|
+
const context = this;
|
|
818
|
+
if (render) {
|
|
819
|
+
const scriptsLoaded = Array.from(document.scripts);
|
|
820
|
+
scriptsLoaded.forEach((script) => {
|
|
821
|
+
const { src } = script;
|
|
822
|
+
if (src.search('www.gstatic.com/charts') > 0) {
|
|
823
|
+
document.getElementsByTagName('head')[0].removeChild(script);
|
|
824
|
+
}
|
|
825
|
+
});
|
|
826
|
+
const node = document.createElement('script');
|
|
827
|
+
node.src = 'https://www.gstatic.com/charts/loader.js';
|
|
828
|
+
node.type = 'text/javascript';
|
|
829
|
+
node.async = true;
|
|
830
|
+
node.id = 'monkeyecx-charts-settings';
|
|
831
|
+
node.onload = () => {
|
|
832
|
+
method.apply(context, args);
|
|
833
|
+
};
|
|
834
|
+
document.getElementsByTagName('head')[0].appendChild(node);
|
|
835
|
+
}
|
|
836
|
+
else {
|
|
837
|
+
const scriptsLoaded = Array.from(document.scripts);
|
|
838
|
+
scriptsLoaded.forEach((script) => {
|
|
839
|
+
const { src } = script;
|
|
840
|
+
if (src.search('www.gstatic.com/charts') > 0) {
|
|
841
|
+
document.getElementsByTagName('head')[0].removeChild(script);
|
|
842
|
+
}
|
|
843
|
+
});
|
|
844
|
+
method.apply(context, args);
|
|
845
|
+
}
|
|
846
|
+
};
|
|
847
|
+
return propertyDescriptor;
|
|
848
|
+
};
|
|
849
|
+
}
|
|
850
|
+
|
|
729
851
|
/* eslint-disable max-classes-per-file */
|
|
730
|
-
const moment$1 =
|
|
852
|
+
const moment$1 = moment$2;
|
|
731
853
|
class DateValidator {
|
|
732
854
|
static do(control) {
|
|
733
855
|
if (!control.parent || !control)
|
|
@@ -809,11 +931,12 @@ class isTrueValidator {
|
|
|
809
931
|
}
|
|
810
932
|
class PasswordMatchValidation {
|
|
811
933
|
static do(control) {
|
|
934
|
+
var _a, _b;
|
|
812
935
|
if (!control.parent || !control)
|
|
813
936
|
return null;
|
|
814
937
|
const { parent } = control;
|
|
815
|
-
const password = parent.get('password').value;
|
|
816
|
-
const passwordConfirm = parent.get('passwordConfirm').value;
|
|
938
|
+
const password = (_a = parent === null || parent === void 0 ? void 0 : parent.get('password')) === null || _a === void 0 ? void 0 : _a.value;
|
|
939
|
+
const passwordConfirm = (_b = parent === null || parent === void 0 ? void 0 : parent.get('passwordConfirm')) === null || _b === void 0 ? void 0 : _b.value;
|
|
817
940
|
if (!password || !passwordConfirm)
|
|
818
941
|
return null;
|
|
819
942
|
if (password === passwordConfirm)
|
|
@@ -839,13 +962,14 @@ class UrlValidator {
|
|
|
839
962
|
}
|
|
840
963
|
class CustomDatesStartValidator {
|
|
841
964
|
static do(control) {
|
|
965
|
+
var _a, _b;
|
|
842
966
|
if (!control.parent || !control)
|
|
843
967
|
return null;
|
|
844
968
|
const { parent } = control;
|
|
845
|
-
const valueStart = parent.get('dateStart').value;
|
|
846
|
-
const valueEnd = parent.get('dateEnd').value;
|
|
847
|
-
let dateStart;
|
|
848
|
-
let dateEnd;
|
|
969
|
+
const valueStart = (_a = parent === null || parent === void 0 ? void 0 : parent.get('dateStart')) === null || _a === void 0 ? void 0 : _a.value;
|
|
970
|
+
const valueEnd = (_b = parent === null || parent === void 0 ? void 0 : parent.get('dateEnd')) === null || _b === void 0 ? void 0 : _b.value;
|
|
971
|
+
let dateStart = null;
|
|
972
|
+
let dateEnd = null;
|
|
849
973
|
if (valueStart) {
|
|
850
974
|
dateStart = new Date(valueStart);
|
|
851
975
|
}
|
|
@@ -864,13 +988,14 @@ class CustomDatesStartValidator {
|
|
|
864
988
|
}
|
|
865
989
|
class CustomDatesEndValidator {
|
|
866
990
|
static do(control) {
|
|
991
|
+
var _a, _b;
|
|
867
992
|
if (!control.parent || !control)
|
|
868
993
|
return null;
|
|
869
994
|
const { parent } = control;
|
|
870
|
-
const valueStart = parent.get('dateStart').value;
|
|
871
|
-
const valueEnd = parent.get('dateEnd').value;
|
|
872
|
-
let dateStart;
|
|
873
|
-
let dateEnd;
|
|
995
|
+
const valueStart = (_a = parent === null || parent === void 0 ? void 0 : parent.get('dateStart')) === null || _a === void 0 ? void 0 : _a.value;
|
|
996
|
+
const valueEnd = (_b = parent === null || parent === void 0 ? void 0 : parent.get('dateEnd')) === null || _b === void 0 ? void 0 : _b.value;
|
|
997
|
+
let dateStart = null;
|
|
998
|
+
let dateEnd = null;
|
|
874
999
|
if (valueStart) {
|
|
875
1000
|
dateStart = new Date(valueStart);
|
|
876
1001
|
}
|
|
@@ -913,10 +1038,11 @@ class UnlockRegisterSponsorValidator {
|
|
|
913
1038
|
}
|
|
914
1039
|
class DateRangeValidator {
|
|
915
1040
|
static do(control) {
|
|
1041
|
+
var _a, _b;
|
|
916
1042
|
if (!control.parent || !control) {
|
|
917
1043
|
return null;
|
|
918
1044
|
}
|
|
919
|
-
const dates = control.parent.get('dates').value;
|
|
1045
|
+
const dates = (_b = (_a = control === null || control === void 0 ? void 0 : control.parent) === null || _a === void 0 ? void 0 : _a.get('dates')) === null || _b === void 0 ? void 0 : _b.value;
|
|
920
1046
|
if (dates &&
|
|
921
1047
|
(!MonkeyEcxUtils.persistNullEmptyUndefined(dates.startDate) ||
|
|
922
1048
|
!MonkeyEcxUtils.persistNullEmptyUndefined(dates.endDate))) {
|
|
@@ -1035,7 +1161,7 @@ var decoratorsUtils = /*#__PURE__*/Object.freeze({
|
|
|
1035
1161
|
hasMonkeyEcxServiceAndHandlingProperties: hasMonkeyEcxServiceAndHandlingProperties
|
|
1036
1162
|
});
|
|
1037
1163
|
|
|
1038
|
-
const moment =
|
|
1164
|
+
const moment = moment$2;
|
|
1039
1165
|
const EMAIL_REGEXP = /^[\w-.]+@([\w-]+\.)+[\w-]{1,64}$/;
|
|
1040
1166
|
function isEmptyInputValue(value) {
|
|
1041
1167
|
return value == null || value.length === 0;
|
|
@@ -1052,10 +1178,11 @@ function emailValidator(control) {
|
|
|
1052
1178
|
};
|
|
1053
1179
|
}
|
|
1054
1180
|
function dateRangeValidator(control) {
|
|
1181
|
+
var _a, _b;
|
|
1055
1182
|
if (!control.parent || !control || isEmptyInputValue(control.value)) {
|
|
1056
1183
|
return null;
|
|
1057
1184
|
}
|
|
1058
|
-
const dates = control.parent.get('dates').value;
|
|
1185
|
+
const dates = (_b = (_a = control === null || control === void 0 ? void 0 : control.parent) === null || _a === void 0 ? void 0 : _a.get('dates')) === null || _b === void 0 ? void 0 : _b.value;
|
|
1059
1186
|
if (dates &&
|
|
1060
1187
|
(!MonkeyEcxUtils.persistNullEmptyUndefined(dates === null || dates === void 0 ? void 0 : dates.startDate) ||
|
|
1061
1188
|
!MonkeyEcxUtils.persistNullEmptyUndefined(dates === null || dates === void 0 ? void 0 : dates.endDate))) {
|
|
@@ -1077,14 +1204,15 @@ function registerValidator(control, type) {
|
|
|
1077
1204
|
return null;
|
|
1078
1205
|
}
|
|
1079
1206
|
function dateStartEndValidator(control) {
|
|
1207
|
+
var _a, _b;
|
|
1080
1208
|
if (!control.parent || !control) {
|
|
1081
1209
|
return null;
|
|
1082
1210
|
}
|
|
1083
1211
|
const { parent } = control;
|
|
1084
|
-
const valueStart = parent.get('dateStart').value;
|
|
1085
|
-
const valueEnd = parent.get('dateEnd').value;
|
|
1086
|
-
let dateStart;
|
|
1087
|
-
let dateEnd;
|
|
1212
|
+
const valueStart = (_a = parent === null || parent === void 0 ? void 0 : parent.get('dateStart')) === null || _a === void 0 ? void 0 : _a.value;
|
|
1213
|
+
const valueEnd = (_b = parent === null || parent === void 0 ? void 0 : parent.get('dateEnd')) === null || _b === void 0 ? void 0 : _b.value;
|
|
1214
|
+
let dateStart = null;
|
|
1215
|
+
let dateEnd = null;
|
|
1088
1216
|
if (valueStart) {
|
|
1089
1217
|
dateStart = new Date(valueStart);
|
|
1090
1218
|
}
|
|
@@ -1111,11 +1239,12 @@ function urlValidator(control) {
|
|
|
1111
1239
|
return null;
|
|
1112
1240
|
}
|
|
1113
1241
|
function passwordConfirmValidator(control) {
|
|
1242
|
+
var _a, _b;
|
|
1114
1243
|
if (!control.parent || !control || isEmptyInputValue(control.value))
|
|
1115
1244
|
return null;
|
|
1116
1245
|
const { parent } = control;
|
|
1117
|
-
const password = parent.get('password').value;
|
|
1118
|
-
const passwordConfirm = parent.get('passwordConfirm').value;
|
|
1246
|
+
const password = (_a = parent === null || parent === void 0 ? void 0 : parent.get('password')) === null || _a === void 0 ? void 0 : _a.value;
|
|
1247
|
+
const passwordConfirm = (_b = parent === null || parent === void 0 ? void 0 : parent.get('passwordConfirm')) === null || _b === void 0 ? void 0 : _b.value;
|
|
1119
1248
|
if (!password || !passwordConfirm)
|
|
1120
1249
|
return null;
|
|
1121
1250
|
if (password === passwordConfirm)
|
|
@@ -1267,9 +1396,10 @@ function MonkeyEcxCoreClearDecorators() {
|
|
|
1267
1396
|
return function (target, propertyName, propertyDescriptor) {
|
|
1268
1397
|
const method = propertyDescriptor.value;
|
|
1269
1398
|
propertyDescriptor.value = function (...args) {
|
|
1399
|
+
var _a, _b;
|
|
1270
1400
|
const context = this;
|
|
1271
1401
|
if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
|
|
1272
|
-
context.monkeyecxService.monkeyecxHandlingService.clearAll();
|
|
1402
|
+
(_b = (_a = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _a === void 0 ? void 0 : _a.monkeyecxHandlingService) === null || _b === void 0 ? void 0 : _b.clearAll();
|
|
1273
1403
|
}
|
|
1274
1404
|
const result = method.apply(context, args);
|
|
1275
1405
|
return result;
|
|
@@ -1281,10 +1411,11 @@ function MonkeyEcxCoreService(params) {
|
|
|
1281
1411
|
return function (target, propertyName, propertyDescriptor) {
|
|
1282
1412
|
const method = propertyDescriptor.value;
|
|
1283
1413
|
propertyDescriptor.value = function (...args) {
|
|
1414
|
+
var _a, _b, _c, _d;
|
|
1284
1415
|
const context = this;
|
|
1285
1416
|
if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
|
|
1286
|
-
context.monkeyecxService.monkeyecxHandlingService.clearAll();
|
|
1287
|
-
context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxServiceCredentials(params);
|
|
1417
|
+
(_b = (_a = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _a === void 0 ? void 0 : _a.monkeyecxHandlingService) === null || _b === void 0 ? void 0 : _b.clearAll();
|
|
1418
|
+
(_d = (_c = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _c === void 0 ? void 0 : _c.monkeyecxHandlingService) === null || _d === void 0 ? void 0 : _d.setMonkeyEcxServiceCredentials(params);
|
|
1288
1419
|
}
|
|
1289
1420
|
const result = method.apply(context, args);
|
|
1290
1421
|
return result;
|
|
@@ -1296,15 +1427,16 @@ function MonkeyEcxCoreServicePaged(params) {
|
|
|
1296
1427
|
return function (target, propertyName, propertyDescriptor) {
|
|
1297
1428
|
const method = propertyDescriptor.value;
|
|
1298
1429
|
propertyDescriptor.value = function (...args) {
|
|
1430
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1299
1431
|
const context = this;
|
|
1300
1432
|
if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
|
|
1301
|
-
const credentials = context.monkeyecxService.monkeyecxHandlingService.getMonkeyEcxServiceCredentials();
|
|
1433
|
+
const credentials = (_b = (_a = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _a === void 0 ? void 0 : _a.monkeyecxHandlingService) === null || _b === void 0 ? void 0 : _b.getMonkeyEcxServiceCredentials();
|
|
1302
1434
|
let requestPaged = null;
|
|
1303
1435
|
if (credentials) {
|
|
1304
1436
|
requestPaged = credentials.requestPaged;
|
|
1305
1437
|
}
|
|
1306
|
-
context.monkeyecxService.monkeyecxHandlingService.clearAll();
|
|
1307
|
-
context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxServiceCredentials(Object.assign(Object.assign({}, params), (requestPaged || null)));
|
|
1438
|
+
(_d = (_c = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _c === void 0 ? void 0 : _c.monkeyecxHandlingService) === null || _d === void 0 ? void 0 : _d.clearAll();
|
|
1439
|
+
(_f = (_e = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _e === void 0 ? void 0 : _e.monkeyecxHandlingService) === null || _f === void 0 ? void 0 : _f.setMonkeyEcxServiceCredentials(Object.assign(Object.assign({}, params), (requestPaged || null)));
|
|
1308
1440
|
}
|
|
1309
1441
|
const result = method.apply(context, args);
|
|
1310
1442
|
return result;
|
|
@@ -1316,13 +1448,14 @@ function MonkeyEcxCoreServiceQueue(name, description, params) {
|
|
|
1316
1448
|
return function (target, propertyName, propertyDescriptor) {
|
|
1317
1449
|
const method = propertyDescriptor.value;
|
|
1318
1450
|
propertyDescriptor.value = function (...args) {
|
|
1451
|
+
var _a, _b, _c, _d;
|
|
1319
1452
|
const context = this;
|
|
1320
1453
|
if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
|
|
1321
1454
|
if (MonkeyEcxUtils.persistNullEmptyUndefined(params)) {
|
|
1322
|
-
context.monkeyecxService.monkeyecxHandlingService.clearAll();
|
|
1323
|
-
context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxServiceCredentials(params);
|
|
1455
|
+
(_b = (_a = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _a === void 0 ? void 0 : _a.monkeyecxHandlingService) === null || _b === void 0 ? void 0 : _b.clearAll();
|
|
1456
|
+
(_d = (_c = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _c === void 0 ? void 0 : _c.monkeyecxHandlingService) === null || _d === void 0 ? void 0 : _d.setMonkeyEcxServiceCredentials(params);
|
|
1324
1457
|
}
|
|
1325
|
-
context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxRequestQueue(buildQueuePropertys({
|
|
1458
|
+
context === null || context === void 0 ? void 0 : context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxRequestQueue(buildQueuePropertys({
|
|
1326
1459
|
name,
|
|
1327
1460
|
description
|
|
1328
1461
|
}));
|
|
@@ -1339,13 +1472,14 @@ function MonkeyEcxServiceDownload(name, description, params) {
|
|
|
1339
1472
|
return function (target, propertyName, propertyDescriptor) {
|
|
1340
1473
|
const method = propertyDescriptor.value;
|
|
1341
1474
|
propertyDescriptor.value = function (...args) {
|
|
1475
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1342
1476
|
const context = this;
|
|
1343
1477
|
if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
|
|
1344
1478
|
if (MonkeyUtils.persistNullEmptyUndefined(params)) {
|
|
1345
|
-
context.monkeyecxService.monkeyecxHandlingService.clearAll();
|
|
1346
|
-
context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxServiceCredentials(params);
|
|
1479
|
+
(_b = (_a = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _a === void 0 ? void 0 : _a.monkeyecxHandlingService) === null || _b === void 0 ? void 0 : _b.clearAll();
|
|
1480
|
+
(_d = (_c = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _c === void 0 ? void 0 : _c.monkeyecxHandlingService) === null || _d === void 0 ? void 0 : _d.setMonkeyEcxServiceCredentials(params);
|
|
1347
1481
|
}
|
|
1348
|
-
context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxRequestDownload(Object.assign({}, buildDownloadPropertys(name, description)));
|
|
1482
|
+
(_f = (_e = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _e === void 0 ? void 0 : _e.monkeyecxHandlingService) === null || _f === void 0 ? void 0 : _f.setMonkeyEcxRequestDownload(Object.assign({}, buildDownloadPropertys(name, description)));
|
|
1349
1483
|
}
|
|
1350
1484
|
const result = method.apply(context, args);
|
|
1351
1485
|
return result;
|
|
@@ -1359,13 +1493,14 @@ function MonkeyEcxServiceUpload(name, description, params) {
|
|
|
1359
1493
|
return function (target, propertyName, propertyDescriptor) {
|
|
1360
1494
|
const method = propertyDescriptor.value;
|
|
1361
1495
|
propertyDescriptor.value = function (...args) {
|
|
1496
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1362
1497
|
const context = this;
|
|
1363
1498
|
if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
|
|
1364
1499
|
if (MonkeyUtils.persistNullEmptyUndefined(params)) {
|
|
1365
|
-
context.monkeyecxService.monkeyecxHandlingService.clearAll();
|
|
1366
|
-
context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxServiceCredentials(params);
|
|
1500
|
+
(_b = (_a = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _a === void 0 ? void 0 : _a.monkeyecxHandlingService) === null || _b === void 0 ? void 0 : _b.clearAll();
|
|
1501
|
+
(_d = (_c = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _c === void 0 ? void 0 : _c.monkeyecxHandlingService) === null || _d === void 0 ? void 0 : _d.setMonkeyEcxServiceCredentials(params);
|
|
1367
1502
|
}
|
|
1368
|
-
context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxRequestUpload(Object.assign({}, buildUploadPropertys(name, description)));
|
|
1503
|
+
(_f = (_e = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _e === void 0 ? void 0 : _e.monkeyecxHandlingService) === null || _f === void 0 ? void 0 : _f.setMonkeyEcxRequestUpload(Object.assign({}, buildUploadPropertys(name, description)));
|
|
1369
1504
|
}
|
|
1370
1505
|
const result = method.apply(context, args);
|
|
1371
1506
|
return result;
|
|
@@ -1381,34 +1516,34 @@ class MonkeyEcxDragDropDirective {
|
|
|
1381
1516
|
this.opacity = '1';
|
|
1382
1517
|
}
|
|
1383
1518
|
onDragOver(evt) {
|
|
1384
|
-
evt.preventDefault();
|
|
1385
|
-
evt.stopPropagation();
|
|
1519
|
+
evt === null || evt === void 0 ? void 0 : evt.preventDefault();
|
|
1520
|
+
evt === null || evt === void 0 ? void 0 : evt.stopPropagation();
|
|
1386
1521
|
this.background = '#9ecbec';
|
|
1387
1522
|
this.opacity = '0.8';
|
|
1388
1523
|
}
|
|
1389
1524
|
onDragLeave(evt) {
|
|
1390
|
-
evt.preventDefault();
|
|
1391
|
-
evt.stopPropagation();
|
|
1525
|
+
evt === null || evt === void 0 ? void 0 : evt.preventDefault();
|
|
1526
|
+
evt === null || evt === void 0 ? void 0 : evt.stopPropagation();
|
|
1392
1527
|
this.background = '#f5fcff';
|
|
1393
1528
|
this.opacity = '1';
|
|
1394
1529
|
}
|
|
1395
1530
|
ondrop(evt) {
|
|
1396
|
-
evt.preventDefault();
|
|
1397
|
-
evt.stopPropagation();
|
|
1531
|
+
evt === null || evt === void 0 ? void 0 : evt.preventDefault();
|
|
1532
|
+
evt === null || evt === void 0 ? void 0 : evt.stopPropagation();
|
|
1398
1533
|
this.background = '#f5fcff';
|
|
1399
1534
|
this.opacity = '1';
|
|
1400
|
-
const { files } = evt.dataTransfer;
|
|
1535
|
+
const { files } = evt === null || evt === void 0 ? void 0 : evt.dataTransfer;
|
|
1401
1536
|
if (files.length > 0) {
|
|
1402
1537
|
this.onFileDropped.emit(files);
|
|
1403
1538
|
}
|
|
1404
1539
|
}
|
|
1405
1540
|
}
|
|
1406
|
-
MonkeyEcxDragDropDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1407
|
-
MonkeyEcxDragDropDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1408
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1541
|
+
MonkeyEcxDragDropDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDragDropDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1542
|
+
MonkeyEcxDragDropDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxDragDropDirective, selector: "[monkeyecxDragDrop]", outputs: { onFileDropped: "onFileDropped" }, host: { listeners: { "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "ondrop($event)" }, properties: { "style.background-color": "this.background", "style.opacity": "this.opacity" } }, ngImport: i0 });
|
|
1543
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDragDropDirective, decorators: [{
|
|
1409
1544
|
type: Directive,
|
|
1410
1545
|
args: [{
|
|
1411
|
-
selector: '[monkeyecxDragDrop]'
|
|
1546
|
+
selector: '[monkeyecxDragDrop]',
|
|
1412
1547
|
}]
|
|
1413
1548
|
}], propDecorators: { onFileDropped: [{
|
|
1414
1549
|
type: Output
|
|
@@ -1455,9 +1590,9 @@ class MonkeyEcxFormatCurrency {
|
|
|
1455
1590
|
this.el.value = this.handle(value);
|
|
1456
1591
|
}
|
|
1457
1592
|
}
|
|
1458
|
-
MonkeyEcxFormatCurrency.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1459
|
-
MonkeyEcxFormatCurrency.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1460
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1593
|
+
MonkeyEcxFormatCurrency.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrency, deps: [{ token: i0.ElementRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1594
|
+
MonkeyEcxFormatCurrency.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxFormatCurrency, selector: "[monkeyecxFormatCurrency]", host: { listeners: { "input": "onInput($event.target.value)" } }, providers: [CurrencyPipe], ngImport: i0 });
|
|
1595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrency, decorators: [{
|
|
1461
1596
|
type: Directive,
|
|
1462
1597
|
args: [{
|
|
1463
1598
|
selector: '[monkeyecxFormatCurrency]',
|
|
@@ -1475,13 +1610,15 @@ class MonkeyEcxFormatUpper {
|
|
|
1475
1610
|
// not to do
|
|
1476
1611
|
}
|
|
1477
1612
|
onKeyDown(evt) {
|
|
1613
|
+
var _a;
|
|
1478
1614
|
const value = this._el.nativeElement.value.toUpperCase();
|
|
1479
1615
|
this._renderer.setProperty(this._el.nativeElement, 'value', value);
|
|
1480
|
-
this._onChange(value);
|
|
1616
|
+
(_a = this._onChange) === null || _a === void 0 ? void 0 : _a.call(this, value);
|
|
1481
1617
|
evt.preventDefault();
|
|
1482
1618
|
}
|
|
1483
1619
|
onBlur() {
|
|
1484
|
-
|
|
1620
|
+
var _a;
|
|
1621
|
+
(_a = this._touched) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
1485
1622
|
}
|
|
1486
1623
|
writeValue(value) {
|
|
1487
1624
|
this._renderer.setProperty(this._el.nativeElement, 'value', value);
|
|
@@ -1496,18 +1633,18 @@ class MonkeyEcxFormatUpper {
|
|
|
1496
1633
|
this._renderer.setProperty(this._el.nativeElement, 'disabled', isDisabled);
|
|
1497
1634
|
}
|
|
1498
1635
|
}
|
|
1499
|
-
MonkeyEcxFormatUpper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1500
|
-
MonkeyEcxFormatUpper.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1636
|
+
MonkeyEcxFormatUpper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatUpper, deps: [{ token: i0.ElementRef, self: true }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1637
|
+
MonkeyEcxFormatUpper.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxFormatUpper, selector: "[monkeyecxFormatUpper]", host: { listeners: { "keyup": "onKeyDown($event)", "blur": "onBlur($event)" } }, providers: [
|
|
1501
1638
|
{
|
|
1502
1639
|
provide: NG_VALUE_ACCESSOR,
|
|
1503
1640
|
useExisting: forwardRef(() => {
|
|
1504
1641
|
// eslint-disable-next-line no-use-before-define
|
|
1505
1642
|
return MonkeyEcxFormatUpper;
|
|
1506
1643
|
}),
|
|
1507
|
-
multi: true
|
|
1508
|
-
}
|
|
1644
|
+
multi: true,
|
|
1645
|
+
},
|
|
1509
1646
|
], ngImport: i0 });
|
|
1510
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1647
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatUpper, decorators: [{
|
|
1511
1648
|
type: Directive,
|
|
1512
1649
|
args: [{
|
|
1513
1650
|
selector: '[monkeyecxFormatUpper]',
|
|
@@ -1518,13 +1655,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
1518
1655
|
// eslint-disable-next-line no-use-before-define
|
|
1519
1656
|
return MonkeyEcxFormatUpper;
|
|
1520
1657
|
}),
|
|
1521
|
-
multi: true
|
|
1522
|
-
}
|
|
1523
|
-
]
|
|
1658
|
+
multi: true,
|
|
1659
|
+
},
|
|
1660
|
+
],
|
|
1524
1661
|
}]
|
|
1525
|
-
}], ctorParameters: function () {
|
|
1526
|
-
|
|
1527
|
-
|
|
1662
|
+
}], ctorParameters: function () {
|
|
1663
|
+
return [{ type: i0.ElementRef, decorators: [{
|
|
1664
|
+
type: Self
|
|
1665
|
+
}] }, { type: i0.Renderer2 }];
|
|
1666
|
+
}, propDecorators: { onKeyDown: [{
|
|
1528
1667
|
type: HostListener,
|
|
1529
1668
|
args: ['keyup', ['$event']]
|
|
1530
1669
|
}], onBlur: [{
|
|
@@ -1545,9 +1684,9 @@ class MonkeyEcxOnlyAlphaNumericDirective {
|
|
|
1545
1684
|
}
|
|
1546
1685
|
}
|
|
1547
1686
|
}
|
|
1548
|
-
MonkeyEcxOnlyAlphaNumericDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1549
|
-
MonkeyEcxOnlyAlphaNumericDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1550
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1687
|
+
MonkeyEcxOnlyAlphaNumericDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOnlyAlphaNumericDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1688
|
+
MonkeyEcxOnlyAlphaNumericDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxOnlyAlphaNumericDirective, selector: "[monkeyecxOnlyAlphaNumeric]", host: { listeners: { "input": "onInputChange($event)" } }, ngImport: i0 });
|
|
1689
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOnlyAlphaNumericDirective, decorators: [{
|
|
1551
1690
|
type: Directive,
|
|
1552
1691
|
args: [{
|
|
1553
1692
|
selector: '[monkeyecxOnlyAlphaNumeric]'
|
|
@@ -1570,9 +1709,9 @@ class MonkeyEcxOnlyNumbersDirective {
|
|
|
1570
1709
|
}
|
|
1571
1710
|
}
|
|
1572
1711
|
}
|
|
1573
|
-
MonkeyEcxOnlyNumbersDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1574
|
-
MonkeyEcxOnlyNumbersDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1575
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1712
|
+
MonkeyEcxOnlyNumbersDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOnlyNumbersDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1713
|
+
MonkeyEcxOnlyNumbersDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxOnlyNumbersDirective, selector: "[monkeyecxOnlyNumbers]", host: { listeners: { "input": "onInputChange($event)" } }, ngImport: i0 });
|
|
1714
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOnlyNumbersDirective, decorators: [{
|
|
1576
1715
|
type: Directive,
|
|
1577
1716
|
args: [{
|
|
1578
1717
|
selector: '[monkeyecxOnlyNumbers]'
|
|
@@ -1589,18 +1728,18 @@ class MonkeyEcxRequestPagedHandling {
|
|
|
1589
1728
|
page: {}
|
|
1590
1729
|
};
|
|
1591
1730
|
}
|
|
1592
|
-
handlePagedValuesFromApi(url) {
|
|
1731
|
+
handlePagedValuesFromApi(url = '') {
|
|
1593
1732
|
if (url.search('\\?') < 0)
|
|
1594
1733
|
return url;
|
|
1595
|
-
const params = url.
|
|
1596
|
-
url = url.
|
|
1734
|
+
const params = url.substring(url.search('\\?') + 1, url.length);
|
|
1735
|
+
url = url.substring(0, url.search('\\?'));
|
|
1597
1736
|
return `${url}?${new HttpParams({
|
|
1598
1737
|
fromString: params
|
|
1599
1738
|
}).delete('size').delete('page').toString()}`;
|
|
1600
1739
|
}
|
|
1601
1740
|
getUrlParams(url) {
|
|
1602
1741
|
const { pagedParams } = this;
|
|
1603
|
-
const { number, size } = pagedParams === null || pagedParams === void 0 ? void 0 : pagedParams.page;
|
|
1742
|
+
const { number, size } = (pagedParams === null || pagedParams === void 0 ? void 0 : pagedParams.page) || {};
|
|
1604
1743
|
const hasInitialQueryParams = url.search('\\?') > 0;
|
|
1605
1744
|
return `${!hasInitialQueryParams ? '?' : '&'}page=${number || 0}&size=${size || 20}`;
|
|
1606
1745
|
}
|
|
@@ -1617,6 +1756,9 @@ class MonkeyEcxCommonsService {
|
|
|
1617
1756
|
this.tokenStorage = tokenStorage;
|
|
1618
1757
|
this.otherArgs = otherArgs;
|
|
1619
1758
|
this.flagValidator = true;
|
|
1759
|
+
this.__error = null;
|
|
1760
|
+
this.__handledError = null;
|
|
1761
|
+
this.__page = null;
|
|
1620
1762
|
this.__requestPaged = null;
|
|
1621
1763
|
this.__onSearchChanged$ = new BehaviorSubject(null);
|
|
1622
1764
|
this.__onDataChanged$ = new BehaviorSubject(null);
|
|
@@ -1626,8 +1768,10 @@ class MonkeyEcxCommonsService {
|
|
|
1626
1768
|
this.__onGovernmentIdDataChanged$ = new BehaviorSubject(null);
|
|
1627
1769
|
this.__onZipCodeDataChanged$ = new BehaviorSubject(null);
|
|
1628
1770
|
this.__oni18nDataChanged$ = new BehaviorSubject(null);
|
|
1629
|
-
this.__onDoSearch$ = new BehaviorSubject(
|
|
1771
|
+
this.__onDoSearch$ = new BehaviorSubject({});
|
|
1630
1772
|
this.__onDoPagination$ = new BehaviorSubject(null);
|
|
1773
|
+
this.__tokenCredentials = null;
|
|
1774
|
+
this.__schedule = null;
|
|
1631
1775
|
this.handleInit();
|
|
1632
1776
|
}
|
|
1633
1777
|
handleInit() {
|
|
@@ -1636,7 +1780,9 @@ class MonkeyEcxCommonsService {
|
|
|
1636
1780
|
this.__tokenCredentials = this.tokenStorage.getToken();
|
|
1637
1781
|
}
|
|
1638
1782
|
if ((_a = this.otherArgs) === null || _a === void 0 ? void 0 : _a.router) {
|
|
1639
|
-
const { clearOnChangeRoute } = (_c = (_b = this.otherArgs) === null || _b === void 0 ? void 0 : _b.schedule) === null || _c === void 0 ? void 0 : _c.options
|
|
1783
|
+
const { clearOnChangeRoute } = ((_c = (_b = this.otherArgs) === null || _b === void 0 ? void 0 : _b.schedule) === null || _c === void 0 ? void 0 : _c.options) || {
|
|
1784
|
+
clearOnChangeRoute: false
|
|
1785
|
+
};
|
|
1640
1786
|
this.otherArgs.router.events
|
|
1641
1787
|
.pipe(filter((event) => {
|
|
1642
1788
|
return event instanceof NavigationStart;
|
|
@@ -1691,11 +1837,10 @@ class MonkeyEcxCommonsService {
|
|
|
1691
1837
|
503: 'service-problems'
|
|
1692
1838
|
};
|
|
1693
1839
|
if (!router) {
|
|
1694
|
-
// eslint-disable-next-line no-console
|
|
1695
1840
|
console.error('Router must be declared');
|
|
1696
1841
|
}
|
|
1697
1842
|
else {
|
|
1698
|
-
router.navigate([`/app/pages/${routes[statusCode]}`.toLowerCase()], {
|
|
1843
|
+
router === null || router === void 0 ? void 0 : router.navigate([`/app/pages/${routes[statusCode]}`.toLowerCase()], {
|
|
1699
1844
|
skipLocationChange: true
|
|
1700
1845
|
});
|
|
1701
1846
|
}
|
|
@@ -1721,10 +1866,10 @@ class MonkeyEcxCommonsService {
|
|
|
1721
1866
|
}
|
|
1722
1867
|
getNormalizedUrl(url) {
|
|
1723
1868
|
const { __requestPaged } = this;
|
|
1724
|
-
return new MonkeyEcxRequestPagedHandling(url, __requestPaged).getRequestWithPagedParams();
|
|
1869
|
+
return new MonkeyEcxRequestPagedHandling(url, __requestPaged || {}).getRequestWithPagedParams();
|
|
1725
1870
|
}
|
|
1726
1871
|
clear(clearData) {
|
|
1727
|
-
var _a, _b, _c;
|
|
1872
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1728
1873
|
if (clearData) {
|
|
1729
1874
|
this.__data = null;
|
|
1730
1875
|
this.__requestPaged = null;
|
|
@@ -1733,9 +1878,9 @@ class MonkeyEcxCommonsService {
|
|
|
1733
1878
|
if (this.__schedule) {
|
|
1734
1879
|
const { queue } = this.__schedule;
|
|
1735
1880
|
if (queue) {
|
|
1736
|
-
this.otherArgs.queue.service.removeQueueItem(queue);
|
|
1881
|
+
(_c = (_b = (_a = this.otherArgs) === null || _a === void 0 ? void 0 : _a.queue) === null || _b === void 0 ? void 0 : _b.service) === null || _c === void 0 ? void 0 : _c.removeQueueItem(queue);
|
|
1737
1882
|
}
|
|
1738
|
-
(
|
|
1883
|
+
(_f = (_e = (_d = this.otherArgs) === null || _d === void 0 ? void 0 : _d.schedule) === null || _e === void 0 ? void 0 : _e.service) === null || _f === void 0 ? void 0 : _f.removeSchedule(this.__schedule);
|
|
1739
1884
|
this.__schedule = null;
|
|
1740
1885
|
}
|
|
1741
1886
|
}
|
|
@@ -1753,11 +1898,11 @@ class MonkeyEcxCommonsService {
|
|
|
1753
1898
|
this.__tokenCredentials = this.tokenStorage.getToken();
|
|
1754
1899
|
}
|
|
1755
1900
|
if (this.allowedSecurityAccess(otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.security)) {
|
|
1756
|
-
Object.entries(this).forEach(([key, value]) => {
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
});
|
|
1901
|
+
//Object.entries(this).forEach(([key, value]) => {
|
|
1902
|
+
// if (value instanceof BehaviorSubject) {
|
|
1903
|
+
// Object.defineProperty(this, key, new BehaviorSubject(null));
|
|
1904
|
+
// }
|
|
1905
|
+
//});
|
|
1761
1906
|
if (this.__schedule) {
|
|
1762
1907
|
(_c = (_b = (_a = this.otherArgs) === null || _a === void 0 ? void 0 : _a.schedule) === null || _b === void 0 ? void 0 : _b.service) === null || _c === void 0 ? void 0 : _c.removeSchedule(this.__schedule);
|
|
1763
1908
|
this.__schedule = null;
|
|
@@ -1784,8 +1929,8 @@ class MonkeyEcxCommonsService {
|
|
|
1784
1929
|
});
|
|
1785
1930
|
}
|
|
1786
1931
|
if (otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.translateOptions) {
|
|
1787
|
-
const { service, keys } = otherArgs.translateOptions;
|
|
1788
|
-
this.geti18n(service, keys);
|
|
1932
|
+
const { service, keys } = otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.translateOptions;
|
|
1933
|
+
this.geti18n(service, keys || '');
|
|
1789
1934
|
}
|
|
1790
1935
|
if (otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.feature) {
|
|
1791
1936
|
const { flag, service } = otherArgs.feature;
|
|
@@ -1798,7 +1943,7 @@ class MonkeyEcxCommonsService {
|
|
|
1798
1943
|
const hasFlag = service.getFlag(flag);
|
|
1799
1944
|
if (MonkeyEcxUtils.persistNullEmptyUndefined(hasFlag)) {
|
|
1800
1945
|
if (!hasFlag) {
|
|
1801
|
-
this.navigateToErrorPage(404, otherArgs.router);
|
|
1946
|
+
this.navigateToErrorPage(404, otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.router);
|
|
1802
1947
|
return;
|
|
1803
1948
|
}
|
|
1804
1949
|
}
|
|
@@ -1811,7 +1956,7 @@ class MonkeyEcxCommonsService {
|
|
|
1811
1956
|
}
|
|
1812
1957
|
}
|
|
1813
1958
|
else {
|
|
1814
|
-
this.navigateToErrorPage(403, otherArgs.router);
|
|
1959
|
+
this.navigateToErrorPage(403, otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.router);
|
|
1815
1960
|
}
|
|
1816
1961
|
}
|
|
1817
1962
|
getHTTPHeaderApplicationPDF() {
|
|
@@ -1821,8 +1966,23 @@ class MonkeyEcxCommonsService {
|
|
|
1821
1966
|
};
|
|
1822
1967
|
}
|
|
1823
1968
|
genericMethod(link, data, callback) {
|
|
1824
|
-
|
|
1825
|
-
|
|
1969
|
+
var _a, _b, _c, _d, _e;
|
|
1970
|
+
const { href, type = 'get' } = link;
|
|
1971
|
+
let func = null;
|
|
1972
|
+
const tp = `${type}`.toLowerCase();
|
|
1973
|
+
if (tp === 'get') {
|
|
1974
|
+
func = (_a = this.monkeyecxService) === null || _a === void 0 ? void 0 : _a.get;
|
|
1975
|
+
}
|
|
1976
|
+
else if (tp === 'post') {
|
|
1977
|
+
func = (_b = this.monkeyecxService) === null || _b === void 0 ? void 0 : _b.post;
|
|
1978
|
+
}
|
|
1979
|
+
else if (tp === 'put') {
|
|
1980
|
+
func = (_c = this.monkeyecxService) === null || _c === void 0 ? void 0 : _c.put;
|
|
1981
|
+
}
|
|
1982
|
+
else if (tp === 'delete') {
|
|
1983
|
+
func = (_d = this.monkeyecxService) === null || _d === void 0 ? void 0 : _d.delete;
|
|
1984
|
+
}
|
|
1985
|
+
(_e = func === null || func === void 0 ? void 0 : func(`${href}`, data)) === null || _e === void 0 ? void 0 : _e.subscribe((resp) => {
|
|
1826
1986
|
if (callback)
|
|
1827
1987
|
callback();
|
|
1828
1988
|
}, (err) => {
|
|
@@ -1848,6 +2008,12 @@ __decorate([
|
|
|
1848
2008
|
|
|
1849
2009
|
/* eslint-disable max-len */
|
|
1850
2010
|
class MonkeyEcxHandlingService {
|
|
2011
|
+
constructor() {
|
|
2012
|
+
this.monkeyecxServiceCredentials = null;
|
|
2013
|
+
this.monkeyecxRequestQueue = null;
|
|
2014
|
+
this.monkeyecxRequestDownload = null;
|
|
2015
|
+
this.monkeyecxRequestUpload = null;
|
|
2016
|
+
}
|
|
1851
2017
|
clearAll() {
|
|
1852
2018
|
this.monkeyecxServiceCredentials = null;
|
|
1853
2019
|
this.monkeyecxRequestQueue = null;
|
|
@@ -1879,9 +2045,9 @@ class MonkeyEcxHandlingService {
|
|
|
1879
2045
|
return this.monkeyecxRequestUpload;
|
|
1880
2046
|
}
|
|
1881
2047
|
}
|
|
1882
|
-
MonkeyEcxHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1883
|
-
MonkeyEcxHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2048
|
+
MonkeyEcxHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2049
|
+
MonkeyEcxHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, providedIn: 'root' });
|
|
2050
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, decorators: [{
|
|
1885
2051
|
type: Injectable,
|
|
1886
2052
|
args: [{
|
|
1887
2053
|
providedIn: 'root'
|
|
@@ -1975,51 +2141,25 @@ class MonkeyEcxService {
|
|
|
1975
2141
|
}));
|
|
1976
2142
|
}
|
|
1977
2143
|
}
|
|
1978
|
-
MonkeyEcxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1979
|
-
MonkeyEcxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1980
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2144
|
+
MonkeyEcxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, deps: [{ token: i1$4.HttpClient }, { token: MonkeyEcxHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2145
|
+
MonkeyEcxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, providedIn: 'root' });
|
|
2146
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, decorators: [{
|
|
1981
2147
|
type: Injectable,
|
|
1982
2148
|
args: [{
|
|
1983
2149
|
providedIn: 'root'
|
|
1984
2150
|
}]
|
|
1985
2151
|
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: MonkeyEcxHandlingService }]; } });
|
|
1986
2152
|
|
|
1987
|
-
/* eslint-disable object-curly-newline */
|
|
1988
|
-
class MonkeyEcxCookieStorageService {
|
|
1989
|
-
constructor(cookieService) {
|
|
1990
|
-
this.cookieService = cookieService;
|
|
1991
|
-
// not to do
|
|
1992
|
-
}
|
|
1993
|
-
setCookie(name, value) {
|
|
1994
|
-
this.removeCookie(name);
|
|
1995
|
-
this.cookieService.set(name, value, null, '/', '', true, 'None');
|
|
1996
|
-
}
|
|
1997
|
-
getCookie(name) {
|
|
1998
|
-
return this.cookieService.get(name);
|
|
1999
|
-
}
|
|
2000
|
-
removeCookie(name) {
|
|
2001
|
-
this.cookieService.delete(name, '/');
|
|
2002
|
-
}
|
|
2003
|
-
}
|
|
2004
|
-
MonkeyEcxCookieStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxCookieStorageService, deps: [{ token: i1$5.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2005
|
-
MonkeyEcxCookieStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxCookieStorageService, providedIn: 'root' });
|
|
2006
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxCookieStorageService, decorators: [{
|
|
2007
|
-
type: Injectable,
|
|
2008
|
-
args: [{
|
|
2009
|
-
providedIn: 'root'
|
|
2010
|
-
}]
|
|
2011
|
-
}], ctorParameters: function () { return [{ type: i1$5.CookieService }]; } });
|
|
2012
|
-
|
|
2013
2153
|
let window$1;
|
|
2014
2154
|
const text = {
|
|
2015
2155
|
i18n: {
|
|
2016
2156
|
title: 'We have an quick update for you',
|
|
2017
|
-
message: 'Click anywhere here to reload your locale'
|
|
2157
|
+
message: 'Click anywhere here to reload your locale',
|
|
2018
2158
|
},
|
|
2019
2159
|
theme: {
|
|
2020
2160
|
title: 'We have an quick update for you',
|
|
2021
|
-
message: 'Click anywhere here to reload your theme'
|
|
2022
|
-
}
|
|
2161
|
+
message: 'Click anywhere here to reload your theme',
|
|
2162
|
+
},
|
|
2023
2163
|
};
|
|
2024
2164
|
class MonkeyEcxErrorConfigService {
|
|
2025
2165
|
constructor() {
|
|
@@ -2032,28 +2172,28 @@ class MonkeyEcxErrorConfigService {
|
|
|
2032
2172
|
theme: '#0273E8',
|
|
2033
2173
|
launcherText: '#fff',
|
|
2034
2174
|
header: '#0273E8',
|
|
2035
|
-
button: '#0273E8'
|
|
2175
|
+
button: '#0273E8',
|
|
2036
2176
|
},
|
|
2037
2177
|
zIndex: 99,
|
|
2038
2178
|
offset: {
|
|
2039
2179
|
horizontal: '1px',
|
|
2040
|
-
vertical: '20px'
|
|
2180
|
+
vertical: '20px',
|
|
2041
2181
|
},
|
|
2042
2182
|
mobile: {
|
|
2043
|
-
labelVisible: true
|
|
2183
|
+
labelVisible: true,
|
|
2044
2184
|
},
|
|
2045
2185
|
launcher: {
|
|
2046
2186
|
mobile: {
|
|
2047
|
-
labelVisible: true
|
|
2048
|
-
}
|
|
2049
|
-
}
|
|
2050
|
-
}
|
|
2187
|
+
labelVisible: true,
|
|
2188
|
+
},
|
|
2189
|
+
},
|
|
2190
|
+
},
|
|
2051
2191
|
});
|
|
2052
2192
|
window$1.zE('webWidget', 'setLocale', 'en-US');
|
|
2053
2193
|
window$1.zE('webWidget', 'show');
|
|
2054
2194
|
}
|
|
2055
2195
|
apply(type) {
|
|
2056
|
-
const { title, message } = text[type];
|
|
2196
|
+
const { title, message } = text === null || text === void 0 ? void 0 : text[type];
|
|
2057
2197
|
const element = document.createElement('div');
|
|
2058
2198
|
element.id = 'monkeyecx-information';
|
|
2059
2199
|
const elementImg = document.createElement('img');
|
|
@@ -2084,12 +2224,12 @@ class MonkeyEcxErrorConfigService {
|
|
|
2084
2224
|
this.enableSupport();
|
|
2085
2225
|
}
|
|
2086
2226
|
}
|
|
2087
|
-
MonkeyEcxErrorConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2088
|
-
MonkeyEcxErrorConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2089
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2227
|
+
MonkeyEcxErrorConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2228
|
+
MonkeyEcxErrorConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, providedIn: 'root' });
|
|
2229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, decorators: [{
|
|
2090
2230
|
type: Injectable,
|
|
2091
2231
|
args: [{
|
|
2092
|
-
providedIn: 'root'
|
|
2232
|
+
providedIn: 'root',
|
|
2093
2233
|
}]
|
|
2094
2234
|
}], ctorParameters: function () { return []; } });
|
|
2095
2235
|
|
|
@@ -2102,12 +2242,9 @@ class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
|
|
|
2102
2242
|
this.translateService.addLangs(['pt-BR', 'en-US']);
|
|
2103
2243
|
this.translateService.setDefaultLang('pt-BR');
|
|
2104
2244
|
this.translateService.use('pt-BR');
|
|
2105
|
-
this.applyLocal();
|
|
2106
|
-
}
|
|
2107
|
-
applyLocal() {
|
|
2108
|
-
registerLocaleData(localePTBR, 'pt-PT');
|
|
2109
2245
|
}
|
|
2110
2246
|
apply(params, environment, change = false) {
|
|
2247
|
+
var _a;
|
|
2111
2248
|
const { monkeyecxService, monkeyecxCookieStorageService, monkeyecxErrorConfigService } = this;
|
|
2112
2249
|
let { i18n } = params;
|
|
2113
2250
|
const cookie = monkeyecxCookieStorageService.getCookie('monkey-app-locale');
|
|
@@ -2119,21 +2256,21 @@ class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
|
|
|
2119
2256
|
if (!cookie)
|
|
2120
2257
|
change = true;
|
|
2121
2258
|
}
|
|
2122
|
-
monkeyecxService.get(`${environment.localAssets}/i18n/${i18n.lang}.json`).subscribe((config) => {
|
|
2259
|
+
(_a = monkeyecxService === null || monkeyecxService === void 0 ? void 0 : monkeyecxService.get(`${environment.localAssets}/i18n/${i18n === null || i18n === void 0 ? void 0 : i18n.lang}.json`)) === null || _a === void 0 ? void 0 : _a.subscribe((config) => {
|
|
2123
2260
|
const { lang, data } = config;
|
|
2124
2261
|
this.translateService.setTranslation(lang, data, true);
|
|
2125
2262
|
this.translateService.use(lang);
|
|
2126
2263
|
if (change)
|
|
2127
2264
|
document.location.reload();
|
|
2128
2265
|
}, (err) => {
|
|
2129
|
-
console.error(`i18n ${i18n.lang} not found!`);
|
|
2266
|
+
console.error(`i18n ${i18n === null || i18n === void 0 ? void 0 : i18n.lang} not found!`);
|
|
2130
2267
|
monkeyecxErrorConfigService.apply('i18n');
|
|
2131
2268
|
throwError(err);
|
|
2132
2269
|
});
|
|
2133
2270
|
}
|
|
2134
2271
|
}
|
|
2135
|
-
MonkeyEcxi18nConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2136
|
-
MonkeyEcxi18nConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2272
|
+
MonkeyEcxi18nConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxi18nConfigService, deps: [{ token: MonkeyEcxService }, { token: i1$1.TranslateService }, { token: MonkeyEcxCookieStorageService }, { token: MonkeyEcxErrorConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2273
|
+
MonkeyEcxi18nConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxi18nConfigService, providedIn: 'root' });
|
|
2137
2274
|
__decorate([
|
|
2138
2275
|
MonkeyEcxCoreService({
|
|
2139
2276
|
httpResponse: {
|
|
@@ -2144,7 +2281,7 @@ __decorate([
|
|
|
2144
2281
|
}
|
|
2145
2282
|
})
|
|
2146
2283
|
], MonkeyEcxi18nConfigService.prototype, "apply", null);
|
|
2147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxi18nConfigService, decorators: [{
|
|
2148
2285
|
type: Injectable,
|
|
2149
2286
|
args: [{
|
|
2150
2287
|
providedIn: 'root'
|
|
@@ -2158,7 +2295,7 @@ class MonkeyEcxLogsConfigService {
|
|
|
2158
2295
|
datadogRum.init({
|
|
2159
2296
|
applicationId: environment === null || environment === void 0 ? void 0 : environment.dataDogApplicationId,
|
|
2160
2297
|
clientToken: environment === null || environment === void 0 ? void 0 : environment.dataDogClientToken,
|
|
2161
|
-
service: program.token,
|
|
2298
|
+
service: program === null || program === void 0 ? void 0 : program.token,
|
|
2162
2299
|
site: 'datadoghq.com',
|
|
2163
2300
|
sampleRate: 100,
|
|
2164
2301
|
replaySampleRate: 100,
|
|
@@ -2173,9 +2310,9 @@ class MonkeyEcxLogsConfigService {
|
|
|
2173
2310
|
}
|
|
2174
2311
|
}
|
|
2175
2312
|
}
|
|
2176
|
-
MonkeyEcxLogsConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2177
|
-
MonkeyEcxLogsConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2178
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2313
|
+
MonkeyEcxLogsConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLogsConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2314
|
+
MonkeyEcxLogsConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLogsConfigService, providedIn: 'root' });
|
|
2315
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLogsConfigService, decorators: [{
|
|
2179
2316
|
type: Injectable,
|
|
2180
2317
|
args: [{
|
|
2181
2318
|
providedIn: 'root'
|
|
@@ -2192,7 +2329,7 @@ class MonkeyEcxServiceWorkerConfigService {
|
|
|
2192
2329
|
handleValidation(config) {
|
|
2193
2330
|
var _a;
|
|
2194
2331
|
const { updates, modalService } = this;
|
|
2195
|
-
(_a = updates === null || updates === void 0 ? void 0 : updates.
|
|
2332
|
+
(_a = updates === null || updates === void 0 ? void 0 : updates.versionUpdates) === null || _a === void 0 ? void 0 : _a.subscribe(() => {
|
|
2196
2333
|
if (!config.showNewVersion || config.maintenance.closed) {
|
|
2197
2334
|
document.location.reload();
|
|
2198
2335
|
}
|
|
@@ -2220,14 +2357,14 @@ class MonkeyEcxServiceWorkerConfigService {
|
|
|
2220
2357
|
this.verify();
|
|
2221
2358
|
}
|
|
2222
2359
|
}
|
|
2223
|
-
MonkeyEcxServiceWorkerConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2224
|
-
MonkeyEcxServiceWorkerConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2360
|
+
MonkeyEcxServiceWorkerConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, deps: [{ token: i0.ApplicationRef }, { token: i1$5.SwUpdate }, { token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2361
|
+
MonkeyEcxServiceWorkerConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, providedIn: 'root' });
|
|
2362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, decorators: [{
|
|
2226
2363
|
type: Injectable,
|
|
2227
2364
|
args: [{
|
|
2228
2365
|
providedIn: 'root'
|
|
2229
2366
|
}]
|
|
2230
|
-
}], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i1$
|
|
2367
|
+
}], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i1$5.SwUpdate }, { type: i1.MonkeyStyleGuideModalService }]; } });
|
|
2231
2368
|
|
|
2232
2369
|
/* eslint-disable no-console */
|
|
2233
2370
|
class MonkeyEcxSecurityConsoleConfigService extends MonkeyEcxCommonsService {
|
|
@@ -2258,9 +2395,9 @@ class MonkeyEcxSecurityConsoleConfigService extends MonkeyEcxCommonsService {
|
|
|
2258
2395
|
this.handleValidation();
|
|
2259
2396
|
}
|
|
2260
2397
|
}
|
|
2261
|
-
MonkeyEcxSecurityConsoleConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2262
|
-
MonkeyEcxSecurityConsoleConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2263
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2398
|
+
MonkeyEcxSecurityConsoleConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2399
|
+
MonkeyEcxSecurityConsoleConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, providedIn: 'root' });
|
|
2400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, decorators: [{
|
|
2264
2401
|
type: Injectable,
|
|
2265
2402
|
args: [{
|
|
2266
2403
|
providedIn: 'root'
|
|
@@ -2290,9 +2427,9 @@ class MonkeyEcxMaintenanceConfigService {
|
|
|
2290
2427
|
this.handleValidation(config);
|
|
2291
2428
|
}
|
|
2292
2429
|
}
|
|
2293
|
-
MonkeyEcxMaintenanceConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2294
|
-
MonkeyEcxMaintenanceConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2295
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2430
|
+
MonkeyEcxMaintenanceConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, deps: [{ token: i1.MonkeyStyleGuideModalService }, { token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2431
|
+
MonkeyEcxMaintenanceConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, providedIn: 'root' });
|
|
2432
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, decorators: [{
|
|
2296
2433
|
type: Injectable,
|
|
2297
2434
|
args: [{
|
|
2298
2435
|
providedIn: 'root'
|
|
@@ -2302,10 +2439,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
2302
2439
|
class MonkeyEcxFeatureToggleService {
|
|
2303
2440
|
constructor() {
|
|
2304
2441
|
this.flagSubject$ = new BehaviorSubject(null);
|
|
2442
|
+
this.flags = undefined;
|
|
2443
|
+
this.ldClient = undefined;
|
|
2305
2444
|
// not to do
|
|
2306
2445
|
}
|
|
2307
2446
|
getAllFlags() {
|
|
2308
|
-
|
|
2447
|
+
var _a;
|
|
2448
|
+
this.flags = (_a = this.ldClient) === null || _a === void 0 ? void 0 : _a.allFlags();
|
|
2309
2449
|
this.flagSubject$.next(true);
|
|
2310
2450
|
}
|
|
2311
2451
|
identify(config, environment) {
|
|
@@ -2327,7 +2467,7 @@ class MonkeyEcxFeatureToggleService {
|
|
|
2327
2467
|
this.ldClient.on('ready', this.getAllFlags.bind(this));
|
|
2328
2468
|
}
|
|
2329
2469
|
else {
|
|
2330
|
-
this.ldClient.identify(user,
|
|
2470
|
+
this.ldClient.identify(user, undefined, this.getAllFlags);
|
|
2331
2471
|
}
|
|
2332
2472
|
}
|
|
2333
2473
|
}
|
|
@@ -2350,9 +2490,9 @@ class MonkeyEcxFeatureToggleService {
|
|
|
2350
2490
|
return MonkeyUtils.persistNullEmptyUndefined(flagValue) ? flagValue : null;
|
|
2351
2491
|
}
|
|
2352
2492
|
}
|
|
2353
|
-
MonkeyEcxFeatureToggleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2354
|
-
MonkeyEcxFeatureToggleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2355
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2493
|
+
MonkeyEcxFeatureToggleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2494
|
+
MonkeyEcxFeatureToggleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, providedIn: 'root' });
|
|
2495
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, decorators: [{
|
|
2356
2496
|
type: Injectable,
|
|
2357
2497
|
args: [{
|
|
2358
2498
|
providedIn: 'root'
|
|
@@ -2370,8 +2510,8 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
2370
2510
|
this.monkeyecxMaintenanceConfigService = monkeyecxMaintenanceConfigService;
|
|
2371
2511
|
this.monkeyecxErrorConfigService = monkeyecxErrorConfigService;
|
|
2372
2512
|
this.monkeyEcxFeatureToggleService = monkeyEcxFeatureToggleService;
|
|
2373
|
-
this.configSubject$ = new BehaviorSubject(
|
|
2374
|
-
this.configBoostrapSubject$ = new BehaviorSubject(
|
|
2513
|
+
this.configSubject$ = new BehaviorSubject({});
|
|
2514
|
+
this.configBoostrapSubject$ = new BehaviorSubject({});
|
|
2375
2515
|
}
|
|
2376
2516
|
internalValidations(...args) {
|
|
2377
2517
|
const { monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService } = this;
|
|
@@ -2380,12 +2520,19 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
2380
2520
|
monkeyecxSecurityConsoleConfigService.apply();
|
|
2381
2521
|
monkeyecxServiceWorkerConfigService.apply(configBoostrap);
|
|
2382
2522
|
monkeyecxMaintenanceConfigService.apply(configBoostrap);
|
|
2523
|
+
console.log('configBoostrap');
|
|
2524
|
+
console.log(configBoostrap);
|
|
2383
2525
|
callback(configBoostrap);
|
|
2384
2526
|
}
|
|
2385
|
-
getWhiteLabelSettings(monkeyecxCode, configBoostrap
|
|
2527
|
+
getWhiteLabelSettings(monkeyecxCode, configBoostrap, callback, environment, identifyCode) {
|
|
2528
|
+
var _a;
|
|
2386
2529
|
const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, internalValidations } = this;
|
|
2387
2530
|
const url = `${environment.urlAssets}`;
|
|
2388
|
-
monkeyecxService.get(`${url}/${monkeyecxCode.toLowerCase()}/white-label.json`).subscribe((config) => {
|
|
2531
|
+
(_a = monkeyecxService === null || monkeyecxService === void 0 ? void 0 : monkeyecxService.get(`${url}/${monkeyecxCode.toLowerCase()}/white-label.json`)) === null || _a === void 0 ? void 0 : _a.subscribe((config) => {
|
|
2532
|
+
console.log('@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@');
|
|
2533
|
+
console.log(config);
|
|
2534
|
+
console.log(`${url}/${monkeyecxCode.toLowerCase()}/monkey-style-guide-settings.json`);
|
|
2535
|
+
console.log('@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@');
|
|
2389
2536
|
monkeyecxi18nConfigService.apply(config, environment);
|
|
2390
2537
|
monkeyecxLogsConfigService.apply(config, configBoostrap, environment, identifyCode);
|
|
2391
2538
|
monkeyEcxFeatureToggleService.apply(configSubject$, environment);
|
|
@@ -2398,12 +2545,11 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
2398
2545
|
});
|
|
2399
2546
|
}
|
|
2400
2547
|
init(callback, environment, identifyCode, monkeyecxCode) {
|
|
2548
|
+
var _a;
|
|
2401
2549
|
const { monkeyecxService, configBoostrapSubject$, monkeyecxErrorConfigService } = this;
|
|
2402
|
-
monkeyecxService
|
|
2403
|
-
.get(`${environment.boostrapAssets}?t=${MonkeyUtils.getRandomString(30)}`, {
|
|
2550
|
+
(_a = monkeyecxService === null || monkeyecxService === void 0 ? void 0 : monkeyecxService.get(`${environment.boostrapAssets}?t=${MonkeyUtils.getRandomString(30)}`, {
|
|
2404
2551
|
observe: 'response'
|
|
2405
|
-
})
|
|
2406
|
-
.subscribe((resp) => {
|
|
2552
|
+
})) === null || _a === void 0 ? void 0 : _a.subscribe((resp) => {
|
|
2407
2553
|
const { headers, body } = resp;
|
|
2408
2554
|
const monkeyCode = headers.get('monkey-code') || monkeyecxCode;
|
|
2409
2555
|
if (monkeyCode) {
|
|
@@ -2427,8 +2573,8 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
2427
2573
|
return this.configBoostrapSubject$.asObservable();
|
|
2428
2574
|
}
|
|
2429
2575
|
}
|
|
2430
|
-
MonkeyEcxConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2431
|
-
MonkeyEcxConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2576
|
+
MonkeyEcxConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxi18nConfigService }, { token: MonkeyEcxLogsConfigService }, { token: i1.MonkeyStyleGuideSettingsService }, { token: MonkeyEcxServiceWorkerConfigService }, { token: MonkeyEcxSecurityConsoleConfigService }, { token: MonkeyEcxMaintenanceConfigService }, { token: MonkeyEcxErrorConfigService }, { token: MonkeyEcxFeatureToggleService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2577
|
+
MonkeyEcxConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigService, providedIn: 'root' });
|
|
2432
2578
|
__decorate([
|
|
2433
2579
|
MonkeyEcxCoreService({
|
|
2434
2580
|
httpResponse: {
|
|
@@ -2439,7 +2585,7 @@ __decorate([
|
|
|
2439
2585
|
}
|
|
2440
2586
|
})
|
|
2441
2587
|
], MonkeyEcxConfigService.prototype, "init", null);
|
|
2442
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2588
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigService, decorators: [{
|
|
2443
2589
|
type: Injectable,
|
|
2444
2590
|
args: [{
|
|
2445
2591
|
providedIn: 'root'
|
|
@@ -2484,14 +2630,14 @@ class MonkeyEcxTokenStorageService {
|
|
|
2484
2630
|
getAllTokens() {
|
|
2485
2631
|
const { token } = this;
|
|
2486
2632
|
const handledToken = Object.assign({}, token);
|
|
2487
|
-
Object.entries(token).forEach(([key, value]) => {
|
|
2633
|
+
Object.entries(token || {}).forEach(([key, value]) => {
|
|
2488
2634
|
handledToken[key] = localStorage.getItem(key);
|
|
2489
2635
|
});
|
|
2490
2636
|
return handledToken;
|
|
2491
2637
|
}
|
|
2492
2638
|
setAllMe(me) {
|
|
2493
2639
|
const { me$ } = this;
|
|
2494
|
-
let previousMe = JSON.parse(localStorage.getItem('me'));
|
|
2640
|
+
let previousMe = JSON.parse((localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem('me')) || '');
|
|
2495
2641
|
Object.entries(me).forEach(([key, value]) => {
|
|
2496
2642
|
if (MonkeyEcxUtils.persistNullEmptyUndefined(value)) {
|
|
2497
2643
|
previousMe = Object.assign(Object.assign({}, previousMe), { [key]: value });
|
|
@@ -2502,7 +2648,7 @@ class MonkeyEcxTokenStorageService {
|
|
|
2502
2648
|
}
|
|
2503
2649
|
getAllMe() {
|
|
2504
2650
|
const me = localStorage.getItem('me');
|
|
2505
|
-
return JSON.parse(me);
|
|
2651
|
+
return JSON.parse(me || '');
|
|
2506
2652
|
}
|
|
2507
2653
|
tokenHasChanged() {
|
|
2508
2654
|
return this.token$.asObservable();
|
|
@@ -2525,8 +2671,9 @@ class MonkeyEcxTokenStorageService {
|
|
|
2525
2671
|
clear(force) {
|
|
2526
2672
|
const { token } = this;
|
|
2527
2673
|
try {
|
|
2528
|
-
Object.entries(token).forEach(([key, value]) => {
|
|
2529
|
-
|
|
2674
|
+
Object.entries(token || {}).forEach(([key, value]) => {
|
|
2675
|
+
var _a;
|
|
2676
|
+
if ((((_a = token === null || token === void 0 ? void 0 : token._clearIgnore) === null || _a === void 0 ? void 0 : _a.ignore) || []).filter((val) => {
|
|
2530
2677
|
return val === key;
|
|
2531
2678
|
}).length <= 0 ||
|
|
2532
2679
|
force === true) {
|
|
@@ -2549,9 +2696,9 @@ class MonkeyEcxTokenStorageService {
|
|
|
2549
2696
|
});
|
|
2550
2697
|
}
|
|
2551
2698
|
}
|
|
2552
|
-
MonkeyEcxTokenStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2553
|
-
MonkeyEcxTokenStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2554
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2699
|
+
MonkeyEcxTokenStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTokenStorageService, deps: [{ token: MonkeyEcxConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2700
|
+
MonkeyEcxTokenStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTokenStorageService, providedIn: 'root' });
|
|
2701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTokenStorageService, decorators: [{
|
|
2555
2702
|
type: Injectable,
|
|
2556
2703
|
args: [{
|
|
2557
2704
|
providedIn: 'root'
|
|
@@ -2563,7 +2710,9 @@ class MonkeyEcxSecurityDirective {
|
|
|
2563
2710
|
this.elementRef = elementRef;
|
|
2564
2711
|
this.tokenStorageService = tokenStorageService;
|
|
2565
2712
|
this.cdr = cdr;
|
|
2713
|
+
this.roles = null;
|
|
2566
2714
|
this.byExclusion = false;
|
|
2715
|
+
this.tokenCredentials = null;
|
|
2567
2716
|
// not to do
|
|
2568
2717
|
}
|
|
2569
2718
|
getRole() {
|
|
@@ -2578,7 +2727,7 @@ class MonkeyEcxSecurityDirective {
|
|
|
2578
2727
|
handleAccess() {
|
|
2579
2728
|
const { roles, byExclusion } = this;
|
|
2580
2729
|
let display = 'none';
|
|
2581
|
-
const found = roles === null || roles === void 0 ? void 0 : roles.indexOf(this.getRole());
|
|
2730
|
+
const found = (roles === null || roles === void 0 ? void 0 : roles.indexOf(this.getRole())) || -1;
|
|
2582
2731
|
if (byExclusion) {
|
|
2583
2732
|
display = 'block';
|
|
2584
2733
|
if (found > -1) {
|
|
@@ -2591,7 +2740,7 @@ class MonkeyEcxSecurityDirective {
|
|
|
2591
2740
|
display = 'block';
|
|
2592
2741
|
}
|
|
2593
2742
|
}
|
|
2594
|
-
if (!roles || roles.length === 0 ||
|
|
2743
|
+
if (!roles || roles.length === 0 || this.getRole() === 'PROGRAM_ADMIN')
|
|
2595
2744
|
display = 'block';
|
|
2596
2745
|
this.elementRef.nativeElement.style.display = display;
|
|
2597
2746
|
this.cdr.detectChanges();
|
|
@@ -2607,12 +2756,12 @@ class MonkeyEcxSecurityDirective {
|
|
|
2607
2756
|
this.handleAccess();
|
|
2608
2757
|
}
|
|
2609
2758
|
}
|
|
2610
|
-
MonkeyEcxSecurityDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2611
|
-
MonkeyEcxSecurityDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2612
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2759
|
+
MonkeyEcxSecurityDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxSecurityDirective, deps: [{ token: i0.ElementRef }, { token: MonkeyEcxTokenStorageService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2760
|
+
MonkeyEcxSecurityDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxSecurityDirective, selector: "[monkeyecxSecurity]", inputs: { roles: ["securityRoles", "roles"], byExclusion: ["securityByExclusion", "byExclusion"] }, ngImport: i0 });
|
|
2761
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxSecurityDirective, decorators: [{
|
|
2613
2762
|
type: Directive,
|
|
2614
2763
|
args: [{
|
|
2615
|
-
selector: '[monkeyecxSecurity]'
|
|
2764
|
+
selector: '[monkeyecxSecurity]',
|
|
2616
2765
|
}]
|
|
2617
2766
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: MonkeyEcxTokenStorageService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { roles: [{
|
|
2618
2767
|
type: Input,
|
|
@@ -2628,6 +2777,7 @@ class MonkeyEcxTooltipDirective {
|
|
|
2628
2777
|
this.renderer = renderer;
|
|
2629
2778
|
this.enableToShow = true;
|
|
2630
2779
|
this.offset = 10;
|
|
2780
|
+
this.tooltip = null;
|
|
2631
2781
|
// not to do
|
|
2632
2782
|
}
|
|
2633
2783
|
onMouseEnter() {
|
|
@@ -2687,11 +2837,14 @@ class MonkeyEcxTooltipDirective {
|
|
|
2687
2837
|
this.renderer.setStyle(this.tooltip, 'transition', `opacity ${this.tooltipDelay}ms`);
|
|
2688
2838
|
}
|
|
2689
2839
|
setPosition() {
|
|
2840
|
+
var _a;
|
|
2690
2841
|
const hostPos = this.el.nativeElement.getBoundingClientRect();
|
|
2691
|
-
const tooltipPos = this.tooltip.getBoundingClientRect();
|
|
2842
|
+
const tooltipPos = (_a = this.tooltip) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
2843
|
+
if (!tooltipPos)
|
|
2844
|
+
return;
|
|
2692
2845
|
const scrollPos = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
|
|
2693
|
-
let top;
|
|
2694
|
-
let left;
|
|
2846
|
+
let top = 0;
|
|
2847
|
+
let left = 0;
|
|
2695
2848
|
if (this.tooltipPosition === 'top') {
|
|
2696
2849
|
top = hostPos.top - tooltipPos.height - this.offset;
|
|
2697
2850
|
left = hostPos.left + (hostPos.width - tooltipPos.width) / 2;
|
|
@@ -2712,12 +2865,12 @@ class MonkeyEcxTooltipDirective {
|
|
|
2712
2865
|
this.renderer.setStyle(this.tooltip, 'left', `${left}px`);
|
|
2713
2866
|
}
|
|
2714
2867
|
}
|
|
2715
|
-
MonkeyEcxTooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2716
|
-
MonkeyEcxTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2717
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2868
|
+
MonkeyEcxTooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2869
|
+
MonkeyEcxTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxTooltipDirective, selector: "[monkeyecxTooltip]", inputs: { tooltipDelay: "tooltipDelay", tooltipPosition: "tooltipPosition", tooltipText: "tooltipText", tooltipTitle: "tooltipTitle", enableToShow: "enableToShow" }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "click": "clickout()" } }, ngImport: i0 });
|
|
2870
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTooltipDirective, decorators: [{
|
|
2718
2871
|
type: Directive,
|
|
2719
2872
|
args: [{
|
|
2720
|
-
selector: '[monkeyecxTooltip]'
|
|
2873
|
+
selector: '[monkeyecxTooltip]',
|
|
2721
2874
|
}]
|
|
2722
2875
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { tooltipDelay: [{
|
|
2723
2876
|
type: Input
|
|
@@ -2740,7 +2893,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
2740
2893
|
args: ['click']
|
|
2741
2894
|
}] } });
|
|
2742
2895
|
|
|
2743
|
-
class
|
|
2896
|
+
class MonkeyEcxFeatureDirective {
|
|
2744
2897
|
constructor(cdr, elementRef, monkeyecxFeatureToggleService) {
|
|
2745
2898
|
this.cdr = cdr;
|
|
2746
2899
|
this.elementRef = elementRef;
|
|
@@ -2753,9 +2906,11 @@ class MonkeyFeatureDirective {
|
|
|
2753
2906
|
if (!monkeyecxFeatureToggleService) {
|
|
2754
2907
|
return false;
|
|
2755
2908
|
}
|
|
2756
|
-
return monkeyecxFeatureToggleService.getFlag(feature);
|
|
2909
|
+
return (monkeyecxFeatureToggleService === null || monkeyecxFeatureToggleService === void 0 ? void 0 : monkeyecxFeatureToggleService.getFlag(feature)) || false;
|
|
2757
2910
|
}
|
|
2758
2911
|
handleDisplay() {
|
|
2912
|
+
if (!this.feature)
|
|
2913
|
+
return;
|
|
2759
2914
|
const flag = this.getFeature(this.feature);
|
|
2760
2915
|
let display = 'none';
|
|
2761
2916
|
if (!MonkeyEcxUtils.persistNullEmptyUndefined(flag)) {
|
|
@@ -2788,12 +2943,12 @@ class MonkeyFeatureDirective {
|
|
|
2788
2943
|
});
|
|
2789
2944
|
}
|
|
2790
2945
|
}
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2946
|
+
MonkeyEcxFeatureDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureDirective, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: MonkeyEcxFeatureToggleService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2947
|
+
MonkeyEcxFeatureDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxFeatureDirective, selector: "[monkeyecxFeature]", inputs: { feature: ["featureName", "feature"] }, ngImport: i0 });
|
|
2948
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureDirective, decorators: [{
|
|
2794
2949
|
type: Directive,
|
|
2795
2950
|
args: [{
|
|
2796
|
-
selector: '[monkeyecxFeature]'
|
|
2951
|
+
selector: '[monkeyecxFeature]',
|
|
2797
2952
|
}]
|
|
2798
2953
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: MonkeyEcxFeatureToggleService }]; }, propDecorators: { feature: [{
|
|
2799
2954
|
type: Input,
|
|
@@ -2802,30 +2957,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
2802
2957
|
|
|
2803
2958
|
class MonkeyEcxDirectivesModule {
|
|
2804
2959
|
}
|
|
2805
|
-
MonkeyEcxDirectivesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2806
|
-
MonkeyEcxDirectivesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
2960
|
+
MonkeyEcxDirectivesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2961
|
+
MonkeyEcxDirectivesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule, declarations: [MonkeyEcxDragDropDirective,
|
|
2807
2962
|
MonkeyEcxFormatCurrency,
|
|
2808
|
-
|
|
2963
|
+
MonkeyEcxFeatureDirective,
|
|
2809
2964
|
MonkeyEcxFormatUpper,
|
|
2810
2965
|
MonkeyEcxOnlyAlphaNumericDirective,
|
|
2811
2966
|
MonkeyEcxOnlyNumbersDirective,
|
|
2812
2967
|
MonkeyEcxSecurityDirective,
|
|
2813
2968
|
MonkeyEcxTooltipDirective], exports: [MonkeyEcxDragDropDirective,
|
|
2814
2969
|
MonkeyEcxFormatCurrency,
|
|
2815
|
-
|
|
2970
|
+
MonkeyEcxFeatureDirective,
|
|
2816
2971
|
MonkeyEcxFormatUpper,
|
|
2817
2972
|
MonkeyEcxOnlyAlphaNumericDirective,
|
|
2818
2973
|
MonkeyEcxOnlyNumbersDirective,
|
|
2819
2974
|
MonkeyEcxSecurityDirective,
|
|
2820
2975
|
MonkeyEcxTooltipDirective] });
|
|
2821
|
-
MonkeyEcxDirectivesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2822
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2976
|
+
MonkeyEcxDirectivesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule });
|
|
2977
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule, decorators: [{
|
|
2823
2978
|
type: NgModule,
|
|
2824
2979
|
args: [{
|
|
2825
2980
|
declarations: [
|
|
2826
2981
|
MonkeyEcxDragDropDirective,
|
|
2827
2982
|
MonkeyEcxFormatCurrency,
|
|
2828
|
-
|
|
2983
|
+
MonkeyEcxFeatureDirective,
|
|
2829
2984
|
MonkeyEcxFormatUpper,
|
|
2830
2985
|
MonkeyEcxOnlyAlphaNumericDirective,
|
|
2831
2986
|
MonkeyEcxOnlyNumbersDirective,
|
|
@@ -2835,7 +2990,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
2835
2990
|
exports: [
|
|
2836
2991
|
MonkeyEcxDragDropDirective,
|
|
2837
2992
|
MonkeyEcxFormatCurrency,
|
|
2838
|
-
|
|
2993
|
+
MonkeyEcxFeatureDirective,
|
|
2839
2994
|
MonkeyEcxFormatUpper,
|
|
2840
2995
|
MonkeyEcxOnlyAlphaNumericDirective,
|
|
2841
2996
|
MonkeyEcxOnlyNumbersDirective,
|
|
@@ -2895,9 +3050,9 @@ class MonkeyEcxAuthenticationService {
|
|
|
2895
3050
|
this.refreshToken = (args === null || args === void 0 ? void 0 : args.refreshToken) || this.refreshToken.bind(this);
|
|
2896
3051
|
}
|
|
2897
3052
|
}
|
|
2898
|
-
MonkeyEcxAuthenticationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2899
|
-
MonkeyEcxAuthenticationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2900
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3053
|
+
MonkeyEcxAuthenticationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthenticationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3054
|
+
MonkeyEcxAuthenticationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthenticationService, providedIn: 'root' });
|
|
3055
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthenticationService, decorators: [{
|
|
2901
3056
|
type: Injectable,
|
|
2902
3057
|
args: [{
|
|
2903
3058
|
providedIn: 'root'
|
|
@@ -2921,9 +3076,9 @@ class MonkeyEcxAuthGuardLogin {
|
|
|
2921
3076
|
return true;
|
|
2922
3077
|
}
|
|
2923
3078
|
}
|
|
2924
|
-
MonkeyEcxAuthGuardLogin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2925
|
-
MonkeyEcxAuthGuardLogin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2926
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3079
|
+
MonkeyEcxAuthGuardLogin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuardLogin, deps: [{ token: MonkeyEcxAuthenticationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3080
|
+
MonkeyEcxAuthGuardLogin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuardLogin, providedIn: 'root' });
|
|
3081
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuardLogin, decorators: [{
|
|
2927
3082
|
type: Injectable,
|
|
2928
3083
|
args: [{
|
|
2929
3084
|
providedIn: 'root'
|
|
@@ -2944,9 +3099,9 @@ class MonkeyEcxAuthGuard {
|
|
|
2944
3099
|
return false;
|
|
2945
3100
|
}
|
|
2946
3101
|
}
|
|
2947
|
-
MonkeyEcxAuthGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2948
|
-
MonkeyEcxAuthGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2949
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3102
|
+
MonkeyEcxAuthGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuard, deps: [{ token: MonkeyEcxAuthenticationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3103
|
+
MonkeyEcxAuthGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuard, providedIn: 'root' });
|
|
3104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuard, decorators: [{
|
|
2950
3105
|
type: Injectable,
|
|
2951
3106
|
args: [{
|
|
2952
3107
|
providedIn: 'root'
|
|
@@ -2968,7 +3123,7 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
|
|
|
2968
3123
|
if (!MonkeyEcxUtils.persistNullEmptyUndefined(tp) && !(tp === null || tp === void 0 ? void 0 : tp.httpResponse)) {
|
|
2969
3124
|
return false;
|
|
2970
3125
|
}
|
|
2971
|
-
const found = ((_b = (_a = tp === null || tp === void 0 ? void 0 : tp.httpResponse) === null || _a === void 0 ? void 0 : _a.httpCodeIgnore) === null || _b === void 0 ? void 0 : _b.indexOf(httpCode)) > -1;
|
|
3126
|
+
const found = ((_b = (((_a = tp === null || tp === void 0 ? void 0 : tp.httpResponse) === null || _a === void 0 ? void 0 : _a.httpCodeIgnore) || [])) === null || _b === void 0 ? void 0 : _b.indexOf(httpCode)) > -1;
|
|
2972
3127
|
return found;
|
|
2973
3128
|
}
|
|
2974
3129
|
isHttpCodeIgnoreRedirect(tp, httpCode) {
|
|
@@ -2976,7 +3131,7 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
|
|
|
2976
3131
|
if (!MonkeyEcxUtils.persistNullEmptyUndefined(tp) && !(tp === null || tp === void 0 ? void 0 : tp.httpResponse)) {
|
|
2977
3132
|
return false;
|
|
2978
3133
|
}
|
|
2979
|
-
const found = ((_b = (_a = tp === null || tp === void 0 ? void 0 : tp.httpResponse) === null || _a === void 0 ? void 0 : _a.httpCodeIgnoreRedirect) === null || _b === void 0 ? void 0 : _b.indexOf(httpCode)) > -1;
|
|
3134
|
+
const found = ((_b = (((_a = tp === null || tp === void 0 ? void 0 : tp.httpResponse) === null || _a === void 0 ? void 0 : _a.httpCodeIgnoreRedirect) || [])) === null || _b === void 0 ? void 0 : _b.indexOf(httpCode)) > -1;
|
|
2980
3135
|
return found;
|
|
2981
3136
|
}
|
|
2982
3137
|
getMessageType(status) {
|
|
@@ -2988,6 +3143,7 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
|
|
|
2988
3143
|
showMessage(message, error, mkc) {
|
|
2989
3144
|
var _a;
|
|
2990
3145
|
const { snackbarService } = this;
|
|
3146
|
+
console.log('==================');
|
|
2991
3147
|
if (!this.isHttpCodeIgnoreMessage(mkc, error.status)) {
|
|
2992
3148
|
snackbarService.show({
|
|
2993
3149
|
title: (_a = this.__i18n) === null || _a === void 0 ? void 0 : _a.TITLE,
|
|
@@ -3022,7 +3178,8 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
|
|
|
3022
3178
|
});
|
|
3023
3179
|
const reader = new FileReader();
|
|
3024
3180
|
reader.addEventListener('loadend', (e) => {
|
|
3025
|
-
|
|
3181
|
+
var _a;
|
|
3182
|
+
const text = (_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.result;
|
|
3026
3183
|
const jsonResp = JSON.parse(text);
|
|
3027
3184
|
customMessage = jsonResp.notifications;
|
|
3028
3185
|
this.showMessage(customMessage, error, mkc);
|
|
@@ -3047,7 +3204,7 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
|
|
|
3047
3204
|
};
|
|
3048
3205
|
const found = routes[status];
|
|
3049
3206
|
let timeout = 0;
|
|
3050
|
-
if (found && !this.isHttpCodeIgnoreRedirect(mkc, error.status)) {
|
|
3207
|
+
if (found && !this.isHttpCodeIgnoreRedirect(mkc, error === null || error === void 0 ? void 0 : error.status)) {
|
|
3051
3208
|
const route = `/app/pages/${found}`.toLowerCase();
|
|
3052
3209
|
timeout = 800;
|
|
3053
3210
|
router.navigate([route]);
|
|
@@ -3058,16 +3215,16 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
|
|
|
3058
3215
|
}
|
|
3059
3216
|
handleErrorRefreshToken(error, mkc) {
|
|
3060
3217
|
if (error.status === 401 || error.status === 400) {
|
|
3061
|
-
NgZone.call(this.monkeyecxAuthenticationService.redirectLoginWelcomeBack());
|
|
3218
|
+
NgZone.call(this.monkeyecxAuthenticationService.redirectLoginWelcomeBack(), {});
|
|
3062
3219
|
}
|
|
3063
3220
|
else if (!this.isHttpCodeIgnoreMessage(mkc, error.status)) {
|
|
3064
3221
|
this.handleMessage(error, mkc);
|
|
3065
3222
|
}
|
|
3066
3223
|
}
|
|
3067
3224
|
}
|
|
3068
|
-
MonkeyEcxHttpErrorHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3069
|
-
MonkeyEcxHttpErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3070
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3225
|
+
MonkeyEcxHttpErrorHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxTokenStorageService }, { token: MonkeyEcxAuthenticationService }, { token: i1$3.Router }, { token: i1.MonkeyStyleGuideSnackbarService }, { token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3226
|
+
MonkeyEcxHttpErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, providedIn: 'root' });
|
|
3227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, decorators: [{
|
|
3071
3228
|
type: Injectable,
|
|
3072
3229
|
args: [{
|
|
3073
3230
|
providedIn: 'root'
|
|
@@ -3090,9 +3247,9 @@ class MonkeyEcxOthersErrorsHandlingService {
|
|
|
3090
3247
|
}
|
|
3091
3248
|
}
|
|
3092
3249
|
}
|
|
3093
|
-
MonkeyEcxOthersErrorsHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3094
|
-
MonkeyEcxOthersErrorsHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3095
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3250
|
+
MonkeyEcxOthersErrorsHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOthersErrorsHandlingService, deps: [{ token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3251
|
+
MonkeyEcxOthersErrorsHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOthersErrorsHandlingService, providedIn: 'root' });
|
|
3252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOthersErrorsHandlingService, decorators: [{
|
|
3096
3253
|
type: Injectable,
|
|
3097
3254
|
args: [{
|
|
3098
3255
|
providedIn: 'root'
|
|
@@ -3109,8 +3266,10 @@ class MonkeyEcxErrorHandlingService {
|
|
|
3109
3266
|
const handlingService = injector.get(MonkeyEcxHandlingService);
|
|
3110
3267
|
const httpErrorHandlingService = injector.get(MonkeyEcxHttpErrorHandlingService);
|
|
3111
3268
|
const othersErrorsHandlingService = injector.get(MonkeyEcxOthersErrorsHandlingService);
|
|
3269
|
+
console.log('error');
|
|
3270
|
+
console.log(error);
|
|
3112
3271
|
if (error instanceof HttpErrorResponse) {
|
|
3113
|
-
const sCredentials = handlingService.getMonkeyEcxServiceCredentials();
|
|
3272
|
+
const sCredentials = (handlingService === null || handlingService === void 0 ? void 0 : handlingService.getMonkeyEcxServiceCredentials()) || {};
|
|
3114
3273
|
if (MonkeyEcxUtils.persistNullEmptyUndefined(type) && type === 'refresh_token') {
|
|
3115
3274
|
httpErrorHandlingService.handleErrorRefreshToken(error, sCredentials);
|
|
3116
3275
|
}
|
|
@@ -3122,9 +3281,9 @@ class MonkeyEcxErrorHandlingService {
|
|
|
3122
3281
|
}
|
|
3123
3282
|
}
|
|
3124
3283
|
}
|
|
3125
|
-
MonkeyEcxErrorHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3126
|
-
MonkeyEcxErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3284
|
+
MonkeyEcxErrorHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3285
|
+
MonkeyEcxErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingService, providedIn: 'root' });
|
|
3286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingService, decorators: [{
|
|
3128
3287
|
type: Injectable,
|
|
3129
3288
|
args: [{
|
|
3130
3289
|
providedIn: 'root'
|
|
@@ -3144,10 +3303,10 @@ class MonkeyEcxErrorHandlingModule {
|
|
|
3144
3303
|
};
|
|
3145
3304
|
}
|
|
3146
3305
|
}
|
|
3147
|
-
MonkeyEcxErrorHandlingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3148
|
-
MonkeyEcxErrorHandlingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
3149
|
-
MonkeyEcxErrorHandlingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3306
|
+
MonkeyEcxErrorHandlingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3307
|
+
MonkeyEcxErrorHandlingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingModule, imports: [CommonModule] });
|
|
3308
|
+
MonkeyEcxErrorHandlingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingModule, imports: [[CommonModule]] });
|
|
3309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingModule, decorators: [{
|
|
3151
3310
|
type: NgModule,
|
|
3152
3311
|
args: [{
|
|
3153
3312
|
imports: [CommonModule]
|
|
@@ -3164,8 +3323,9 @@ class MonkeyEcxHttpConfigErrorInterceptor {
|
|
|
3164
3323
|
return next.handle(request).pipe(map((event) => {
|
|
3165
3324
|
return event;
|
|
3166
3325
|
}), catchError((error) => {
|
|
3326
|
+
var _a, _b;
|
|
3167
3327
|
if (this.monkeyecxAuthenticationService.refreshShouldHappen(error)) {
|
|
3168
|
-
return this.monkeyecxAuthenticationService.refreshToken().pipe(take(1), map(() => {
|
|
3328
|
+
return ((_b = (_a = this.monkeyecxAuthenticationService) === null || _a === void 0 ? void 0 : _a.refreshToken()) === null || _b === void 0 ? void 0 : _b.pipe(take(1), map(() => {
|
|
3169
3329
|
return this.monkeyecxAuthenticationService.getRequestWithHeaders(request);
|
|
3170
3330
|
}), mergeMap((resp) => {
|
|
3171
3331
|
return next.handle(resp).pipe(catchError((error) => {
|
|
@@ -3175,15 +3335,15 @@ class MonkeyEcxHttpConfigErrorInterceptor {
|
|
|
3175
3335
|
}), catchError((error) => {
|
|
3176
3336
|
this.monkeyecxErrorHandlingService.handleError(error, 'refresh_token');
|
|
3177
3337
|
return throwError(null);
|
|
3178
|
-
}));
|
|
3338
|
+
}))) || throwError(error);
|
|
3179
3339
|
}
|
|
3180
3340
|
return throwError(error);
|
|
3181
3341
|
}));
|
|
3182
3342
|
}
|
|
3183
3343
|
}
|
|
3184
|
-
MonkeyEcxHttpConfigErrorInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3185
|
-
MonkeyEcxHttpConfigErrorInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3344
|
+
MonkeyEcxHttpConfigErrorInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor, deps: [{ token: MonkeyEcxAuthenticationService }, { token: MonkeyEcxErrorHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3345
|
+
MonkeyEcxHttpConfigErrorInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor });
|
|
3346
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor, decorators: [{
|
|
3187
3347
|
type: Injectable
|
|
3188
3348
|
}], ctorParameters: function () { return [{ type: MonkeyEcxAuthenticationService }, { type: MonkeyEcxErrorHandlingService }]; } });
|
|
3189
3349
|
|
|
@@ -3194,7 +3354,8 @@ class MonkeyEcxHttpConfigHeaderInterceptor {
|
|
|
3194
3354
|
// not to do
|
|
3195
3355
|
}
|
|
3196
3356
|
intercept(request, next) {
|
|
3197
|
-
|
|
3357
|
+
var _a, _b;
|
|
3358
|
+
return ((_b = (_a = this.monkeyecxAuthenticationService) === null || _a === void 0 ? void 0 : _a.getRequestWithHeadersOb(request)) === null || _b === void 0 ? void 0 : _b.pipe(take(1), map((event) => {
|
|
3198
3359
|
return event;
|
|
3199
3360
|
}), mergeMap((resp) => {
|
|
3200
3361
|
request = request.clone({
|
|
@@ -3204,12 +3365,12 @@ class MonkeyEcxHttpConfigHeaderInterceptor {
|
|
|
3204
3365
|
}), catchError((error) => {
|
|
3205
3366
|
this.monkeyecxErrorHandlingService.handleError(error);
|
|
3206
3367
|
return throwError(error);
|
|
3207
|
-
}));
|
|
3368
|
+
}))) || throwError('getRequestWithHeadersOb undefined');
|
|
3208
3369
|
}
|
|
3209
3370
|
}
|
|
3210
|
-
MonkeyEcxHttpConfigHeaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3211
|
-
MonkeyEcxHttpConfigHeaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3371
|
+
MonkeyEcxHttpConfigHeaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor, deps: [{ token: MonkeyEcxAuthenticationService }, { token: MonkeyEcxErrorHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3372
|
+
MonkeyEcxHttpConfigHeaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor });
|
|
3373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor, decorators: [{
|
|
3213
3374
|
type: Injectable
|
|
3214
3375
|
}], ctorParameters: function () { return [{ type: MonkeyEcxAuthenticationService }, { type: MonkeyEcxErrorHandlingService }]; } });
|
|
3215
3376
|
|
|
@@ -3245,7 +3406,7 @@ class MonkeyEcxRequestQueueHandlingService {
|
|
|
3245
3406
|
...saved.map((val) => {
|
|
3246
3407
|
const valSaved = Object.assign({}, val);
|
|
3247
3408
|
const { total, loaded } = progress;
|
|
3248
|
-
const currentPecentage = Math.floor((loaded / total) * 100);
|
|
3409
|
+
const currentPecentage = Math.floor(((loaded || 0) / (total || 0)) * 100);
|
|
3249
3410
|
const totalPercentage = 100;
|
|
3250
3411
|
if (valSaved.item.id === q.item.id) {
|
|
3251
3412
|
return Object.assign(Object.assign({}, valSaved), { progress: {
|
|
@@ -3276,12 +3437,16 @@ class MonkeyEcxRequestQueueHandlingService {
|
|
|
3276
3437
|
this.queues$.next(this.queue);
|
|
3277
3438
|
}
|
|
3278
3439
|
setQueue(q) {
|
|
3440
|
+
if (!q)
|
|
3441
|
+
return;
|
|
3279
3442
|
this.addToQueue(q);
|
|
3280
3443
|
}
|
|
3281
3444
|
getQueue() {
|
|
3282
3445
|
return this.queues$.asObservable();
|
|
3283
3446
|
}
|
|
3284
3447
|
finishQueueItem(q, action, status) {
|
|
3448
|
+
if (!q)
|
|
3449
|
+
return;
|
|
3285
3450
|
this.markQueueItemAsFinish(q, status, action);
|
|
3286
3451
|
}
|
|
3287
3452
|
removeQueueItem(q) {
|
|
@@ -3296,9 +3461,9 @@ class MonkeyEcxRequestQueueHandlingService {
|
|
|
3296
3461
|
}));
|
|
3297
3462
|
}
|
|
3298
3463
|
}
|
|
3299
|
-
MonkeyEcxRequestQueueHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3300
|
-
MonkeyEcxRequestQueueHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3301
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3464
|
+
MonkeyEcxRequestQueueHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestQueueHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3465
|
+
MonkeyEcxRequestQueueHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestQueueHandlingService, providedIn: 'root' });
|
|
3466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestQueueHandlingService, decorators: [{
|
|
3302
3467
|
type: Injectable,
|
|
3303
3468
|
args: [{
|
|
3304
3469
|
providedIn: 'root'
|
|
@@ -3338,7 +3503,7 @@ class MonkeyEcxRequestQueueModalHandlingService {
|
|
|
3338
3503
|
...saved.map((val) => {
|
|
3339
3504
|
const valSaved = Object.assign({}, val);
|
|
3340
3505
|
const { total, loaded } = progress;
|
|
3341
|
-
const currentPecentage = Math.floor((loaded / total) * 100);
|
|
3506
|
+
const currentPecentage = Math.floor(((loaded || 0) / (total || 0)) * 100);
|
|
3342
3507
|
const totalPercentage = 100;
|
|
3343
3508
|
if (valSaved.item.id === q.item.id) {
|
|
3344
3509
|
return Object.assign(Object.assign({}, valSaved), { progress: {
|
|
@@ -3397,9 +3562,9 @@ class MonkeyEcxRequestQueueModalHandlingService {
|
|
|
3397
3562
|
}));
|
|
3398
3563
|
}
|
|
3399
3564
|
}
|
|
3400
|
-
MonkeyEcxRequestQueueModalHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3401
|
-
MonkeyEcxRequestQueueModalHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3565
|
+
MonkeyEcxRequestQueueModalHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestQueueModalHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3566
|
+
MonkeyEcxRequestQueueModalHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestQueueModalHandlingService, providedIn: 'root' });
|
|
3567
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestQueueModalHandlingService, decorators: [{
|
|
3403
3568
|
type: Injectable,
|
|
3404
3569
|
args: [{
|
|
3405
3570
|
providedIn: 'root'
|
|
@@ -3416,7 +3581,7 @@ class MonkeyEcxHttpConfigQueueInterceptor {
|
|
|
3416
3581
|
intercept(request, next) {
|
|
3417
3582
|
const { injector, isQueueProperty } = this;
|
|
3418
3583
|
const monkeyecxHandlingService = injector.get(MonkeyEcxHandlingService);
|
|
3419
|
-
const monkeyecxRequestQueue = monkeyecxHandlingService.getMonkeyEcxRequestQueue();
|
|
3584
|
+
const monkeyecxRequestQueue = monkeyecxHandlingService === null || monkeyecxHandlingService === void 0 ? void 0 : monkeyecxHandlingService.getMonkeyEcxRequestQueue();
|
|
3420
3585
|
if (isQueueProperty(monkeyecxRequestQueue)) {
|
|
3421
3586
|
this.monkeyecxRequestQueueHandlingService.setQueue(monkeyecxRequestQueue);
|
|
3422
3587
|
}
|
|
@@ -3427,13 +3592,14 @@ class MonkeyEcxHttpConfigQueueInterceptor {
|
|
|
3427
3592
|
}));
|
|
3428
3593
|
}
|
|
3429
3594
|
isQueueProperty(mrq) {
|
|
3595
|
+
var _a;
|
|
3430
3596
|
return (MonkeyEcxUtils.persistNullEmptyUndefined(mrq) &&
|
|
3431
|
-
MonkeyEcxUtils.persistNullEmptyUndefined(mrq.item.name));
|
|
3597
|
+
MonkeyEcxUtils.persistNullEmptyUndefined((_a = mrq === null || mrq === void 0 ? void 0 : mrq.item) === null || _a === void 0 ? void 0 : _a.name));
|
|
3432
3598
|
}
|
|
3433
3599
|
}
|
|
3434
|
-
MonkeyEcxHttpConfigQueueInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3435
|
-
MonkeyEcxHttpConfigQueueInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3436
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3600
|
+
MonkeyEcxHttpConfigQueueInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor, deps: [{ token: i0.Injector }, { token: MonkeyEcxRequestQueueHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3601
|
+
MonkeyEcxHttpConfigQueueInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor });
|
|
3602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor, decorators: [{
|
|
3437
3603
|
type: Injectable
|
|
3438
3604
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: MonkeyEcxRequestQueueHandlingService }]; } });
|
|
3439
3605
|
|
|
@@ -3444,11 +3610,12 @@ class MonkeyEcxHttpConfigLoadingInProgressInterceptor {
|
|
|
3444
3610
|
// no to do
|
|
3445
3611
|
}
|
|
3446
3612
|
intercept(request, next) {
|
|
3613
|
+
var _a;
|
|
3447
3614
|
const { injector, isLoadingInProgressProperty } = this;
|
|
3448
3615
|
const handlingService = injector.get(MonkeyEcxHandlingService);
|
|
3449
3616
|
const progressBarService = injector.get(MonkeyEcxProgressBarService);
|
|
3450
|
-
const inProgress = handlingService.getMonkeyEcxServiceCredentials()
|
|
3451
|
-
? handlingService.getMonkeyEcxServiceCredentials().requestInProgress
|
|
3617
|
+
const inProgress = (handlingService === null || handlingService === void 0 ? void 0 : handlingService.getMonkeyEcxServiceCredentials())
|
|
3618
|
+
? ((_a = handlingService === null || handlingService === void 0 ? void 0 : handlingService.getMonkeyEcxServiceCredentials()) === null || _a === void 0 ? void 0 : _a.requestInProgress) || null
|
|
3452
3619
|
: null;
|
|
3453
3620
|
if (isLoadingInProgressProperty(inProgress)) {
|
|
3454
3621
|
progressBarService.show();
|
|
@@ -3460,15 +3627,17 @@ class MonkeyEcxHttpConfigLoadingInProgressInterceptor {
|
|
|
3460
3627
|
}));
|
|
3461
3628
|
}
|
|
3462
3629
|
isLoadingInProgressProperty(mlp) {
|
|
3630
|
+
if (!mlp)
|
|
3631
|
+
return false;
|
|
3463
3632
|
return MonkeyEcxUtils.persistNullEmptyUndefined(mlp) &&
|
|
3464
3633
|
MonkeyEcxUtils.persistNullEmptyUndefined(mlp.showProgress)
|
|
3465
3634
|
? mlp.showProgress
|
|
3466
3635
|
: true;
|
|
3467
3636
|
}
|
|
3468
3637
|
}
|
|
3469
|
-
MonkeyEcxHttpConfigLoadingInProgressInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3470
|
-
MonkeyEcxHttpConfigLoadingInProgressInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3471
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3638
|
+
MonkeyEcxHttpConfigLoadingInProgressInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3639
|
+
MonkeyEcxHttpConfigLoadingInProgressInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor });
|
|
3640
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor, decorators: [{
|
|
3472
3641
|
type: Injectable
|
|
3473
3642
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
3474
3643
|
|
|
@@ -3501,10 +3670,10 @@ class MonkeyEcxHttpConfigInterceptorModule {
|
|
|
3501
3670
|
};
|
|
3502
3671
|
}
|
|
3503
3672
|
}
|
|
3504
|
-
MonkeyEcxHttpConfigInterceptorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3505
|
-
MonkeyEcxHttpConfigInterceptorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
3506
|
-
MonkeyEcxHttpConfigInterceptorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3507
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3673
|
+
MonkeyEcxHttpConfigInterceptorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3674
|
+
MonkeyEcxHttpConfigInterceptorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, imports: [CommonModule] });
|
|
3675
|
+
MonkeyEcxHttpConfigInterceptorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, imports: [[CommonModule]] });
|
|
3676
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, decorators: [{
|
|
3508
3677
|
type: NgModule,
|
|
3509
3678
|
args: [{
|
|
3510
3679
|
imports: [CommonModule]
|
|
@@ -3535,16 +3704,18 @@ class MonkeyEcxConfigModule {
|
|
|
3535
3704
|
};
|
|
3536
3705
|
}
|
|
3537
3706
|
}
|
|
3538
|
-
MonkeyEcxConfigModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3539
|
-
MonkeyEcxConfigModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
3540
|
-
MonkeyEcxConfigModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3541
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3707
|
+
MonkeyEcxConfigModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule, deps: [{ token: MonkeyEcxConfigModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3708
|
+
MonkeyEcxConfigModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule });
|
|
3709
|
+
MonkeyEcxConfigModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule });
|
|
3710
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule, decorators: [{
|
|
3542
3711
|
type: NgModule
|
|
3543
|
-
}], ctorParameters: function () {
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3712
|
+
}], ctorParameters: function () {
|
|
3713
|
+
return [{ type: MonkeyEcxConfigModule, decorators: [{
|
|
3714
|
+
type: Optional
|
|
3715
|
+
}, {
|
|
3716
|
+
type: SkipSelf
|
|
3717
|
+
}] }];
|
|
3718
|
+
} });
|
|
3548
3719
|
|
|
3549
3720
|
class MonkeyEcxLoggedHandlingService {
|
|
3550
3721
|
constructor() {
|
|
@@ -3564,9 +3735,9 @@ class MonkeyEcxLoggedHandlingService {
|
|
|
3564
3735
|
this.destroySchedule();
|
|
3565
3736
|
}
|
|
3566
3737
|
}
|
|
3567
|
-
MonkeyEcxLoggedHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3568
|
-
MonkeyEcxLoggedHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3569
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3738
|
+
MonkeyEcxLoggedHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLoggedHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3739
|
+
MonkeyEcxLoggedHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLoggedHandlingService, providedIn: 'root' });
|
|
3740
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLoggedHandlingService, decorators: [{
|
|
3570
3741
|
type: Injectable,
|
|
3571
3742
|
args: [{
|
|
3572
3743
|
providedIn: 'root'
|
|
@@ -3610,7 +3781,7 @@ class MonkeyEcxRequestDownloadHandlingService {
|
|
|
3610
3781
|
this.download = [
|
|
3611
3782
|
...saved.map((val) => {
|
|
3612
3783
|
const valSaved = Object.assign({}, val);
|
|
3613
|
-
const currentPecentage = Math.floor((loaded / total) * 100);
|
|
3784
|
+
const currentPecentage = Math.floor(((loaded || 0) / (total || 0)) * 100);
|
|
3614
3785
|
const totalPercentage = 100;
|
|
3615
3786
|
if (valSaved.item.id === q.item.id) {
|
|
3616
3787
|
return Object.assign(Object.assign({}, valSaved), { loaded,
|
|
@@ -3640,9 +3811,9 @@ class MonkeyEcxRequestDownloadHandlingService {
|
|
|
3640
3811
|
return MonkeyEcxUtils.persistNullEmptyUndefined(found);
|
|
3641
3812
|
}
|
|
3642
3813
|
}
|
|
3643
|
-
MonkeyEcxRequestDownloadHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3644
|
-
MonkeyEcxRequestDownloadHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3645
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3814
|
+
MonkeyEcxRequestDownloadHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3815
|
+
MonkeyEcxRequestDownloadHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, providedIn: 'root' });
|
|
3816
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, decorators: [{
|
|
3646
3817
|
type: Injectable,
|
|
3647
3818
|
args: [{
|
|
3648
3819
|
providedIn: 'root'
|
|
@@ -3690,9 +3861,9 @@ class MonkeyEcxRequestDownloadedHandlingService {
|
|
|
3690
3861
|
return MonkeyEcxUtils.persistNullEmptyUndefined(found);
|
|
3691
3862
|
}
|
|
3692
3863
|
}
|
|
3693
|
-
MonkeyEcxRequestDownloadedHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3694
|
-
MonkeyEcxRequestDownloadedHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3695
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3864
|
+
MonkeyEcxRequestDownloadedHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3865
|
+
MonkeyEcxRequestDownloadedHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, providedIn: 'root' });
|
|
3866
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, decorators: [{
|
|
3696
3867
|
type: Injectable,
|
|
3697
3868
|
args: [{
|
|
3698
3869
|
providedIn: 'root'
|
|
@@ -3725,24 +3896,25 @@ class MonkeyEcxDiscoveryParamsService {
|
|
|
3725
3896
|
const navigation = this.router.getCurrentNavigation();
|
|
3726
3897
|
let state = null;
|
|
3727
3898
|
if (MonkeyEcxUtils.persistNullEmptyUndefined(navigation)) {
|
|
3728
|
-
state = navigation.extras.state;
|
|
3899
|
+
state = navigation === null || navigation === void 0 ? void 0 : navigation.extras.state;
|
|
3729
3900
|
}
|
|
3730
3901
|
return state ? state[field] : null;
|
|
3731
3902
|
}
|
|
3732
3903
|
getParam(param) {
|
|
3904
|
+
var _a;
|
|
3733
3905
|
const { root } = this.router.routerState.snapshot;
|
|
3734
3906
|
const route = this.getLastChild(root);
|
|
3735
3907
|
let found = MonkeyEcxUtils.persistNullEmptyUndefined(route)
|
|
3736
|
-
? route.paramMap.get(param)
|
|
3908
|
+
? ((_a = route === null || route === void 0 ? void 0 : route.paramMap) === null || _a === void 0 ? void 0 : _a.get(param)) || ''
|
|
3737
3909
|
: '';
|
|
3738
3910
|
if (!MonkeyEcxUtils.persistNullEmptyUndefined(found))
|
|
3739
3911
|
found = this.getData(param);
|
|
3740
3912
|
return found;
|
|
3741
3913
|
}
|
|
3742
3914
|
}
|
|
3743
|
-
MonkeyEcxDiscoveryParamsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3744
|
-
MonkeyEcxDiscoveryParamsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3745
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3915
|
+
MonkeyEcxDiscoveryParamsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3916
|
+
MonkeyEcxDiscoveryParamsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, providedIn: 'root' });
|
|
3917
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, decorators: [{
|
|
3746
3918
|
type: Injectable,
|
|
3747
3919
|
args: [{
|
|
3748
3920
|
providedIn: 'root'
|
|
@@ -3794,8 +3966,23 @@ class MonkeyEcxRequestScheduleService {
|
|
|
3794
3966
|
this.monkeyecxLoggedHandlingService.addSchedule(this.schedule);
|
|
3795
3967
|
}
|
|
3796
3968
|
doCall(sch) {
|
|
3969
|
+
var _a, _b, _c, _d, _e;
|
|
3797
3970
|
const { url, method, params, data, action } = sch;
|
|
3798
|
-
|
|
3971
|
+
let func = null;
|
|
3972
|
+
const tp = `${method}`.toLowerCase();
|
|
3973
|
+
if (tp === 'get') {
|
|
3974
|
+
func = (_a = this.monkeyecxService) === null || _a === void 0 ? void 0 : _a.get;
|
|
3975
|
+
}
|
|
3976
|
+
else if (tp === 'post') {
|
|
3977
|
+
func = (_b = this.monkeyecxService) === null || _b === void 0 ? void 0 : _b.post;
|
|
3978
|
+
}
|
|
3979
|
+
else if (tp === 'put') {
|
|
3980
|
+
func = (_c = this.monkeyecxService) === null || _c === void 0 ? void 0 : _c.put;
|
|
3981
|
+
}
|
|
3982
|
+
else if (tp === 'delete') {
|
|
3983
|
+
func = (_d = this.monkeyecxService) === null || _d === void 0 ? void 0 : _d.delete;
|
|
3984
|
+
}
|
|
3985
|
+
(_e = func === null || func === void 0 ? void 0 : func(`${url}`, params)) === null || _e === void 0 ? void 0 : _e.subscribe((resp) => {
|
|
3799
3986
|
action(Object.assign(Object.assign({}, data), resp), sch);
|
|
3800
3987
|
}, () => {
|
|
3801
3988
|
this.removeFromSchedule(sch);
|
|
@@ -3822,8 +4009,8 @@ class MonkeyEcxRequestScheduleService {
|
|
|
3822
4009
|
return q;
|
|
3823
4010
|
}
|
|
3824
4011
|
}
|
|
3825
|
-
MonkeyEcxRequestScheduleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3826
|
-
MonkeyEcxRequestScheduleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4012
|
+
MonkeyEcxRequestScheduleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestScheduleService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxLoggedHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4013
|
+
MonkeyEcxRequestScheduleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestScheduleService, providedIn: 'root' });
|
|
3827
4014
|
__decorate([
|
|
3828
4015
|
MonkeyEcxCoreService({
|
|
3829
4016
|
httpResponse: {
|
|
@@ -3834,7 +4021,7 @@ __decorate([
|
|
|
3834
4021
|
}
|
|
3835
4022
|
})
|
|
3836
4023
|
], MonkeyEcxRequestScheduleService.prototype, "doCall", null);
|
|
3837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4024
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestScheduleService, decorators: [{
|
|
3838
4025
|
type: Injectable,
|
|
3839
4026
|
args: [{
|
|
3840
4027
|
providedIn: 'root'
|
|
@@ -3866,7 +4053,7 @@ class MonkeyEcxSpecificationSearch {
|
|
|
3866
4053
|
return `${key}`.replace(':first', value1[0]).replace(':last', value1[1]);
|
|
3867
4054
|
}
|
|
3868
4055
|
}
|
|
3869
|
-
return `${key}`.replace(':value', value1
|
|
4056
|
+
return `${key}`.replace(':value', `${value1}`);
|
|
3870
4057
|
})[0];
|
|
3871
4058
|
}
|
|
3872
4059
|
queryVisitor(value) {
|
|
@@ -3917,10 +4104,11 @@ class MonkeyEcxSpecificationSearch {
|
|
|
3917
4104
|
}
|
|
3918
4105
|
buildMoreThanOne(field, op = OpSearch.EQUAL) {
|
|
3919
4106
|
var _a, _b;
|
|
4107
|
+
let self = this;
|
|
3920
4108
|
try {
|
|
3921
|
-
if (!
|
|
4109
|
+
if (!self[field])
|
|
3922
4110
|
return [];
|
|
3923
|
-
const filters = (_b = (_a =
|
|
4111
|
+
const filters = (_b = (_a = self[field]) === null || _a === void 0 ? void 0 : _a.split(',')) === null || _b === void 0 ? void 0 : _b.map((filter) => {
|
|
3924
4112
|
if (!filter)
|
|
3925
4113
|
return null;
|
|
3926
4114
|
return {
|
|
@@ -3939,11 +4127,11 @@ class MonkeyEcxSpecificationSearch {
|
|
|
3939
4127
|
|
|
3940
4128
|
class MonkeyFrontCoreModuleModule {
|
|
3941
4129
|
}
|
|
3942
|
-
MonkeyFrontCoreModuleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3943
|
-
MonkeyFrontCoreModuleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
3944
|
-
HttpClientModule, i1$1.TranslateModule, MonkeyEcxConfigModule, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxErrorHandlingModule, MonkeyStyleGuideModule, i1$
|
|
4130
|
+
MonkeyFrontCoreModuleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModuleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4131
|
+
MonkeyFrontCoreModuleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModuleModule, imports: [CommonModule,
|
|
4132
|
+
HttpClientModule, i1$1.TranslateModule, MonkeyEcxConfigModule, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxErrorHandlingModule, MonkeyStyleGuideModule, i1$5.ServiceWorkerModule, ClosedToMaintenanceModule,
|
|
3945
4133
|
VersionChangedModule] });
|
|
3946
|
-
MonkeyFrontCoreModuleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4134
|
+
MonkeyFrontCoreModuleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModuleModule, providers: [
|
|
3947
4135
|
MonkeyStyleGuideModalService,
|
|
3948
4136
|
MonkeyStyleGuideSettingsService,
|
|
3949
4137
|
MonkeyStyleGuideSnackbarService
|
|
@@ -3959,7 +4147,7 @@ MonkeyFrontCoreModuleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0
|
|
|
3959
4147
|
ClosedToMaintenanceModule,
|
|
3960
4148
|
VersionChangedModule
|
|
3961
4149
|
]] });
|
|
3962
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModuleModule, decorators: [{
|
|
3963
4151
|
type: NgModule,
|
|
3964
4152
|
args: [{
|
|
3965
4153
|
imports: [
|
|
@@ -3990,5 +4178,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
3990
4178
|
* Generated bundle index. Do not edit.
|
|
3991
4179
|
*/
|
|
3992
4180
|
|
|
3993
|
-
export { ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe,
|
|
3994
|
-
//# sourceMappingURL=monkey-front-core.
|
|
4181
|
+
export { ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDragDropDirective, MonkeyEcxErrorConfigService, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDatePipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatUpper, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxHandlingService, MonkeyEcxHttpConfigErrorInterceptor, MonkeyEcxHttpConfigHeaderInterceptor, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxHttpConfigLoadingInProgressInterceptor, MonkeyEcxHttpConfigQueueInterceptor, MonkeyEcxHttpErrorHandlingService, MonkeyEcxLoggedHandlingService, MonkeyEcxLogsConfigService, MonkeyEcxMaintenanceConfigService, MonkeyEcxModel, MonkeyEcxOnlyAlphaNumericDirective, MonkeyEcxOnlyNumbersDirective, MonkeyEcxOthersErrorsHandlingService, MonkeyEcxPipesModule, MonkeyEcxProgressBarComponent, MonkeyEcxProgressBarModule, MonkeyEcxProgressBarService, MonkeyEcxRequestDownloadHandlingService, MonkeyEcxRequestDownloadedHandlingService, MonkeyEcxRequestPagedHandling, MonkeyEcxRequestQueueHandlingService, MonkeyEcxRequestQueueModalHandlingService, MonkeyEcxRequestScheduleService, MonkeyEcxSecurityConsoleConfigService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxServiceDownload, MonkeyEcxServiceUpload, MonkeyEcxServiceWorkerConfigService, MonkeyEcxSpecificationSearch, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTooltipDirective, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyEcxi18nConfigService, MonkeyFrontCoreModuleModule, OpSearch, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule, comboValidator, dateRangeValidator, dateStartEndValidator, dateValidator, documentValidator, emailValidator, passwordConfirmValidator, registerValidator, trueValidator, urlValidator, zipCodeValidator };
|
|
4182
|
+
//# sourceMappingURL=monkey-front-core.mjs.map
|