monkey-front-core 0.0.237 → 0.0.238
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/karma.conf.js +44 -0
- package/monkey-front-core-0.0.238.tgz +0 -0
- package/ng-package.json +8 -0
- package/package.json +4 -24
- package/src/lib/components/alerts/alerts.component.html +18 -0
- package/src/lib/components/alerts/alerts.component.scss +71 -0
- package/src/lib/components/alerts/alerts.component.ts +36 -0
- package/src/lib/components/alerts/alerts.module.ts +12 -0
- package/{lib/components/alerts/index.d.ts → src/lib/components/alerts/index.ts} +2 -2
- package/src/lib/components/closed-to-maintenance/closed-to-maintenance.component.html +25 -0
- package/src/lib/components/closed-to-maintenance/closed-to-maintenance.component.scss +51 -0
- package/src/lib/components/closed-to-maintenance/closed-to-maintenance.component.ts +25 -0
- package/src/lib/components/closed-to-maintenance/closed-to-maintenance.module.ts +26 -0
- package/{lib/components/closed-to-maintenance/index.d.ts → src/lib/components/closed-to-maintenance/index.ts} +2 -2
- package/{lib/components/index.d.ts → src/lib/components/index.ts} +4 -4
- package/{lib/components/progress-bar/index.d.ts → src/lib/components/progress-bar/index.ts} +3 -3
- package/src/lib/components/progress-bar/progress-bar.component.html +3 -0
- package/src/lib/components/progress-bar/progress-bar.component.scss +6 -0
- package/src/lib/components/progress-bar/progress-bar.component.ts +22 -0
- package/src/lib/components/progress-bar/progress-bar.module.ts +10 -0
- package/src/lib/components/progress-bar/progress-bar.service.ts +61 -0
- package/{lib/components/version-changed/index.d.ts → src/lib/components/version-changed/index.ts} +2 -2
- package/src/lib/components/version-changed/version-changed.component.html +18 -0
- package/src/lib/components/version-changed/version-changed.component.scss +52 -0
- package/src/lib/components/version-changed/version-changed.component.ts +18 -0
- package/src/lib/components/version-changed/version-changed.module.ts +24 -0
- package/{lib/core/decorators/index.d.ts → src/lib/core/decorators/index.ts} +4 -4
- package/src/lib/core/decorators/monkeyecx-charts-decorators.ts +46 -0
- package/src/lib/core/decorators/monkeyecx-decorators.ts +159 -0
- package/src/lib/core/decorators/monkeyecx-download-decorators.ts +39 -0
- package/src/lib/core/decorators/monkeyecx-upload-decorators.ts +39 -0
- package/{lib/core/directives/index.d.ts → src/lib/core/directives/index.ts} +12 -12
- package/src/lib/core/directives/monkeyecx-directives-module.ts +45 -0
- package/src/lib/core/directives/monkeyecx-drag-drop.ts +40 -0
- package/src/lib/core/directives/monkeyecx-feature-by-program-directive.ts +53 -0
- package/src/lib/core/directives/monkeyecx-feature-directive.ts +72 -0
- package/src/lib/core/directives/monkeyecx-format-currency.ts +44 -0
- package/src/lib/core/directives/monkeyecx-format-upper.ts +54 -0
- package/src/lib/core/directives/monkeyecx-only-alpha-numeric-directive.ts +21 -0
- package/src/lib/core/directives/monkeyecx-only-number-directive.ts +21 -0
- package/src/lib/core/directives/monkeyecx-popover-options.directive.ts +52 -0
- package/src/lib/core/directives/monkeyecx-popover.directive.ts +235 -0
- package/src/lib/core/directives/monkeyecx-security-directive.ts +68 -0
- package/src/lib/core/directives/monkeyecx-tooltip-directive.ts +131 -0
- package/{lib/core/index.d.ts → src/lib/core/index.ts} +9 -9
- package/{lib/core/interceptors/index.d.ts → src/lib/core/interceptors/index.ts} +5 -5
- package/src/lib/core/interceptors/monkeyecx-http-config-error.interceptor.ts +58 -0
- package/src/lib/core/interceptors/monkeyecx-http-config-header.interceptor.ts +78 -0
- package/src/lib/core/interceptors/monkeyecx-http-config-interceptor.module.ts +40 -0
- package/src/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.ts +47 -0
- package/src/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.ts +44 -0
- package/{lib/core/interfaces/index.d.ts → src/lib/core/interfaces/index.ts} +29 -29
- package/src/lib/core/interfaces/monkeyecx-auth-credentials.ts +16 -0
- package/{lib/core/interfaces/monkeyecx-company-pendencies.d.ts → src/lib/core/interfaces/monkeyecx-company-pendencies.ts} +16 -14
- package/src/lib/core/interfaces/monkeyecx-company.ts +10 -0
- package/src/lib/core/interfaces/monkeyecx-config-boostrap.ts +14 -0
- package/src/lib/core/interfaces/monkeyecx-config.ts +139 -0
- package/src/lib/core/interfaces/monkeyecx-country-security.ts +4 -0
- package/src/lib/core/interfaces/monkeyecx-error-response.ts +5 -0
- package/src/lib/core/interfaces/monkeyecx-filter.ts +26 -0
- package/src/lib/core/interfaces/monkeyecx-handled-error-response.ts +11 -0
- package/src/lib/core/interfaces/monkeyecx-header-credentials.ts +4 -0
- package/{lib/core/interfaces/monkeyecx-intercom-options.d.ts → src/lib/core/interfaces/monkeyecx-intercom-options.ts} +4 -4
- package/src/lib/core/interfaces/monkeyecx-me-credentials.ts +23 -0
- package/src/lib/core/interfaces/monkeyecx-navigation.ts +28 -0
- package/src/lib/core/interfaces/monkeyecx-program.ts +10 -0
- package/src/lib/core/interfaces/monkeyecx-releases.ts +9 -0
- package/{lib/core/interfaces/monkeyecx-request-in-progress.d.ts → src/lib/core/interfaces/monkeyecx-request-in-progress.ts} +3 -3
- package/src/lib/core/interfaces/monkeyecx-request-paged.ts +27 -0
- package/src/lib/core/interfaces/monkeyecx-response-links.ts +11 -0
- package/src/lib/core/interfaces/monkeyecx-response-paged.ts +6 -0
- package/src/lib/core/interfaces/monkeyecx-saved-state.ts +5 -0
- package/{lib/core/interfaces/monkeyecx-scroll-options.d.ts → src/lib/core/interfaces/monkeyecx-scroll-options.ts} +6 -5
- package/{lib/core/interfaces/monkeyecx-service-credentials.d.ts → src/lib/core/interfaces/monkeyecx-service-credentials.ts} +13 -12
- package/{lib/core/interfaces/monkeyecx-support-options.d.ts → src/lib/core/interfaces/monkeyecx-support-options.ts} +4 -4
- package/src/lib/core/interfaces/monkeyecx-token-credentials.ts +20 -0
- package/src/lib/core/interfaces/monkeyecx-translate-options.ts +4 -0
- package/{lib/core/interfaces/request-download/index.d.ts → src/lib/core/interfaces/request-download/index.ts} +3 -3
- package/src/lib/core/interfaces/request-download/monkeyecx-request-download.ts +11 -0
- package/src/lib/core/interfaces/request-download/monkeyecx-request-downloaded.ts +8 -0
- package/src/lib/core/interfaces/request-download/monkeyecx-request-item-download.ts +7 -0
- package/{lib/core/interfaces/request-queue/index.d.ts → src/lib/core/interfaces/request-queue/index.ts} +3 -3
- package/src/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.ts +7 -0
- package/src/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.ts +6 -0
- package/{lib/core/interfaces/request-queue/monkeyecx-request-queue.d.ts → src/lib/core/interfaces/request-queue/monkeyecx-request-queue.ts} +9 -8
- package/{lib/core/interfaces/request-upload/index.d.ts → src/lib/core/interfaces/request-upload/index.ts} +2 -2
- package/src/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.ts +5 -0
- package/src/lib/core/interfaces/request-upload/monkeyecx-request-upload.ts +11 -0
- package/{lib/core/interfaces/schedules/index.d.ts → src/lib/core/interfaces/schedules/index.ts} +1 -1
- package/src/lib/core/interfaces/schedules/monkeyecx-request-schedule.ts +14 -0
- package/{lib/core/model/index.d.ts → src/lib/core/model/index.ts} +1 -1
- package/src/lib/core/model/monkeyecx-model.ts +38 -0
- package/{lib/core/pipes/index.d.ts → src/lib/core/pipes/index.ts} +19 -19
- package/src/lib/core/pipes/monkeyecx-display-first-name.ts +12 -0
- package/src/lib/core/pipes/monkeyecx-display-initials.ts +14 -0
- package/src/lib/core/pipes/monkeyecx-display-support-phone.ts +31 -0
- package/src/lib/core/pipes/monkeyecx-format-address.ts +27 -0
- package/src/lib/core/pipes/monkeyecx-format-beautify-json.ts +35 -0
- package/src/lib/core/pipes/monkeyecx-format-currency.ts +20 -0
- package/src/lib/core/pipes/monkeyecx-format-date-group.ts +40 -0
- package/src/lib/core/pipes/monkeyecx-format-date-timelapse.ts +25 -0
- package/src/lib/core/pipes/monkeyecx-format-date-unix-timelapse.ts +31 -0
- package/src/lib/core/pipes/monkeyecx-format-document.ts +12 -0
- package/src/lib/core/pipes/monkeyecx-format-number.ts +14 -0
- package/src/lib/core/pipes/monkeyecx-format-phone.ts +32 -0
- package/src/lib/core/pipes/monkeyecx-format-size.ts +13 -0
- package/src/lib/core/pipes/monkeyecx-format-tax.ts +16 -0
- package/src/lib/core/pipes/monkeyecx-format-type-document.ts +12 -0
- package/src/lib/core/pipes/monkeyecx-format-value.ts +12 -0
- package/src/lib/core/pipes/monkeyecx-format-zipcode.ts +12 -0
- package/src/lib/core/pipes/monkeyecx-pipes.module.ts +65 -0
- package/src/lib/core/pipes/monkeyecx-text-truncate.ts +17 -0
- package/src/lib/core/pipes/monkeyecx-truncate-qtd.ts +10 -0
- package/{lib/core/services/auth/index.d.ts → src/lib/core/services/auth/index.ts} +4 -4
- package/src/lib/core/services/auth/monkeyecx-auth-guard-company.service.ts +27 -0
- package/src/lib/core/services/auth/monkeyecx-auth-guard-login.service.ts +23 -0
- package/src/lib/core/services/auth/monkeyecx-auth-guard.service.ts +25 -0
- package/src/lib/core/services/auth/monkeyecx-authentication.service.ts +87 -0
- package/{lib/core/services/commons/index.d.ts → src/lib/core/services/commons/index.ts} +1 -1
- package/src/lib/core/services/commons/monkeyecx-commons.service.ts +557 -0
- package/src/lib/core/services/config/index.ts +9 -0
- package/src/lib/core/services/config/monkeyecx-alerts-config.service.ts +37 -0
- package/src/lib/core/services/config/monkeyecx-config.module.ts +23 -0
- package/src/lib/core/services/config/monkeyecx-config.service.ts +151 -0
- package/src/lib/core/services/config/monkeyecx-error-config.service.ts +92 -0
- package/src/lib/core/services/config/monkeyecx-feature-toggle.service.ts +71 -0
- package/src/lib/core/services/config/monkeyecx-ga-config.service.ts +56 -0
- package/src/lib/core/services/config/monkeyecx-i18n-config.service.ts +95 -0
- package/src/lib/core/services/config/monkeyecx-logs-config.service.ts +34 -0
- package/src/lib/core/services/config/monkeyecx-maintenance-config.service.ts +33 -0
- package/src/lib/core/services/config/monkeyecx-security-console-config.service.ts +40 -0
- package/src/lib/core/services/config/monkeyecx-service-worker-config.service.ts +50 -0
- package/{lib/core/services/error/index.d.ts → src/lib/core/services/error/index.ts} +4 -4
- package/src/lib/core/services/error/monkeyecx-error-handling.module.ts +20 -0
- package/src/lib/core/services/error/monkeyecx-error-handling.service.ts +33 -0
- package/src/lib/core/services/error/monkeyecx-http-error-handling.service.ts +160 -0
- package/src/lib/core/services/error/monkeyecx-others-errors-handling.service.ts +24 -0
- package/{lib/core/services/index.d.ts → src/lib/core/services/index.ts} +22 -22
- package/{lib/core/services/logged/index.d.ts → src/lib/core/services/logged/index.ts} +1 -1
- package/src/lib/core/services/logged/monkeyecx-logged-handling.service.ts +42 -0
- package/src/lib/core/services/monkeyecx-handling.service.ts +58 -0
- package/src/lib/core/services/monkeyecx-service.service.ts +116 -0
- package/{lib/core/services/pagination/index.d.ts → src/lib/core/services/pagination/index.ts} +1 -1
- package/src/lib/core/services/pagination/monkeyecx-pagination.service.ts +27 -0
- package/{lib/core/services/request-download/index.d.ts → src/lib/core/services/request-download/index.ts} +2 -2
- package/src/lib/core/services/request-download/monkeyecx-request-download-handling.service.ts +100 -0
- package/src/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.ts +65 -0
- package/{lib/core/services/request-paged/index.d.ts → src/lib/core/services/request-paged/index.ts} +1 -1
- package/src/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.ts +58 -0
- package/{lib/core/services/request-queue/index.d.ts → src/lib/core/services/request-queue/index.ts} +2 -2
- package/src/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.ts +125 -0
- package/src/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.ts +136 -0
- package/{lib/core/services/routes/index.d.ts → src/lib/core/services/routes/index.ts} +1 -1
- package/src/lib/core/services/routes/monkeyecx-dicovery-params.service.ts +54 -0
- package/{lib/core/services/schedules/index.d.ts → src/lib/core/services/schedules/index.ts} +1 -1
- package/src/lib/core/services/schedules/monkeyecx-request-schedule.service.ts +224 -0
- package/{lib/core/services/storage/index.d.ts → src/lib/core/services/storage/index.ts} +2 -2
- package/src/lib/core/services/storage/monkeyecx-cookie-storage.service.ts +28 -0
- package/src/lib/core/services/storage/monkeyecx-token-storage.service.ts +151 -0
- package/{lib/core/specification-search/index.d.ts → src/lib/core/specification-search/index.ts} +1 -1
- package/src/lib/core/specification-search/monkeyecx-specification-search.ts +111 -0
- package/src/lib/core/utils/decorators-utils.ts +56 -0
- package/{lib/core/utils/index.d.ts → src/lib/core/utils/index.ts} +8 -6
- package/src/lib/core/utils/statics.ts +36 -0
- package/src/lib/core/utils/utils.ts +237 -0
- package/src/lib/core/utils/validate-utils.ts +221 -0
- package/src/lib/core/utils/validators.ts +251 -0
- package/src/lib/monkey-front-core.module.ts +37 -0
- package/{public-api.d.ts → src/public-api.ts} +6 -3
- package/src/test.ts +26 -0
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/esm2020/lib/components/alerts/alerts.component.mjs +0 -35
- package/esm2020/lib/components/alerts/alerts.module.mjs +0 -21
- package/esm2020/lib/components/alerts/index.mjs +0 -3
- package/esm2020/lib/components/closed-to-maintenance/closed-to-maintenance.component.mjs +0 -29
- package/esm2020/lib/components/closed-to-maintenance/closed-to-maintenance.module.mjs +0 -43
- package/esm2020/lib/components/closed-to-maintenance/index.mjs +0 -3
- package/esm2020/lib/components/index.mjs +0 -5
- package/esm2020/lib/components/progress-bar/index.mjs +0 -4
- package/esm2020/lib/components/progress-bar/progress-bar.component.mjs +0 -23
- package/esm2020/lib/components/progress-bar/progress-bar.module.mjs +0 -18
- package/esm2020/lib/components/progress-bar/progress-bar.service.mjs +0 -50
- package/esm2020/lib/components/version-changed/index.mjs +0 -3
- package/esm2020/lib/components/version-changed/version-changed.component.mjs +0 -24
- package/esm2020/lib/components/version-changed/version-changed.module.mjs +0 -39
- package/esm2020/lib/core/decorators/index.mjs +0 -5
- package/esm2020/lib/core/decorators/monkeyecx-charts-decorators.mjs +0 -40
- package/esm2020/lib/core/decorators/monkeyecx-decorators.mjs +0 -111
- package/esm2020/lib/core/decorators/monkeyecx-download-decorators.mjs +0 -26
- package/esm2020/lib/core/decorators/monkeyecx-upload-decorators.mjs +0 -26
- package/esm2020/lib/core/directives/index.mjs +0 -13
- package/esm2020/lib/core/directives/monkeyecx-directives-module.mjs +0 -73
- package/esm2020/lib/core/directives/monkeyecx-drag-drop.mjs +0 -57
- package/esm2020/lib/core/directives/monkeyecx-feature-by-program-directive.mjs +0 -50
- package/esm2020/lib/core/directives/monkeyecx-feature-directive.mjs +0 -68
- package/esm2020/lib/core/directives/monkeyecx-format-currency.mjs +0 -44
- package/esm2020/lib/core/directives/monkeyecx-format-upper.mjs +0 -67
- package/esm2020/lib/core/directives/monkeyecx-only-alpha-numeric-directive.mjs +0 -28
- package/esm2020/lib/core/directives/monkeyecx-only-number-directive.mjs +0 -28
- package/esm2020/lib/core/directives/monkeyecx-popover-options.directive.mjs +0 -39
- package/esm2020/lib/core/directives/monkeyecx-popover.directive.mjs +0 -212
- package/esm2020/lib/core/directives/monkeyecx-security-directive.mjs +0 -69
- package/esm2020/lib/core/directives/monkeyecx-tooltip-directive.mjs +0 -123
- package/esm2020/lib/core/index.mjs +0 -10
- package/esm2020/lib/core/interceptors/index.mjs +0 -6
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-error.interceptor.mjs +0 -39
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-header.interceptor.mjs +0 -60
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-interceptor.module.mjs +0 -47
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.mjs +0 -43
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.mjs +0 -37
- package/esm2020/lib/core/interfaces/index.mjs +0 -30
- package/esm2020/lib/core/interfaces/monkeyecx-auth-credentials.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-company-pendencies.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-company.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-config-boostrap.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-config.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-country-security.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-error-response.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-filter.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-handled-error-response.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-header-credentials.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-intercom-options.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-me-credentials.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-navigation.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-program.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-releases.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-request-in-progress.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-request-paged.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-response-links.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-response-paged.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-saved-state.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-scroll-options.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-service-credentials.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-support-options.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-token-credentials.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkeyecx-translate-options.mjs +0 -2
- package/esm2020/lib/core/interfaces/request-download/index.mjs +0 -4
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-download.mjs +0 -2
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-downloaded.mjs +0 -2
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-item-download.mjs +0 -2
- package/esm2020/lib/core/interfaces/request-queue/index.mjs +0 -4
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.mjs +0 -2
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.mjs +0 -2
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-queue.mjs +0 -2
- package/esm2020/lib/core/interfaces/request-upload/index.mjs +0 -3
- package/esm2020/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.mjs +0 -2
- package/esm2020/lib/core/interfaces/request-upload/monkeyecx-request-upload.mjs +0 -2
- package/esm2020/lib/core/interfaces/schedules/index.mjs +0 -2
- package/esm2020/lib/core/interfaces/schedules/monkeyecx-request-schedule.mjs +0 -2
- package/esm2020/lib/core/model/index.mjs +0 -2
- package/esm2020/lib/core/model/monkeyecx-model.mjs +0 -25
- package/esm2020/lib/core/pipes/index.mjs +0 -20
- package/esm2020/lib/core/pipes/monkeyecx-display-first-name.mjs +0 -19
- package/esm2020/lib/core/pipes/monkeyecx-display-initials.mjs +0 -21
- package/esm2020/lib/core/pipes/monkeyecx-format-address.mjs +0 -20
- package/esm2020/lib/core/pipes/monkeyecx-format-beautify-json.mjs +0 -38
- package/esm2020/lib/core/pipes/monkeyecx-format-currency.mjs +0 -27
- package/esm2020/lib/core/pipes/monkeyecx-format-date-group.mjs +0 -45
- package/esm2020/lib/core/pipes/monkeyecx-format-date-timelapse.mjs +0 -32
- package/esm2020/lib/core/pipes/monkeyecx-format-date-unix-timelapse.mjs +0 -36
- package/esm2020/lib/core/pipes/monkeyecx-format-document.mjs +0 -19
- package/esm2020/lib/core/pipes/monkeyecx-format-number.mjs +0 -20
- package/esm2020/lib/core/pipes/monkeyecx-format-phone.mjs +0 -42
- package/esm2020/lib/core/pipes/monkeyecx-format-size.mjs +0 -20
- package/esm2020/lib/core/pipes/monkeyecx-format-tax.mjs +0 -23
- package/esm2020/lib/core/pipes/monkeyecx-format-type-document.mjs +0 -19
- package/esm2020/lib/core/pipes/monkeyecx-format-value.mjs +0 -19
- package/esm2020/lib/core/pipes/monkeyecx-format-zipcode.mjs +0 -19
- package/esm2020/lib/core/pipes/monkeyecx-pipes.module.mjs +0 -107
- package/esm2020/lib/core/pipes/monkeyecx-text-truncate.mjs +0 -23
- package/esm2020/lib/core/pipes/monkeyecx-truncate-qtd.mjs +0 -16
- package/esm2020/lib/core/services/auth/index.mjs +0 -5
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-company.service.mjs +0 -28
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-login.service.mjs +0 -27
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard.service.mjs +0 -26
- package/esm2020/lib/core/services/auth/monkeyecx-authentication.service.mjs +0 -69
- package/esm2020/lib/core/services/commons/index.mjs +0 -2
- package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +0 -405
- package/esm2020/lib/core/services/config/monkeyecx-alerts-config.service.mjs +0 -40
- package/esm2020/lib/core/services/config/monkeyecx-config.module.mjs +0 -28
- package/esm2020/lib/core/services/config/monkeyecx-config.service.mjs +0 -111
- package/esm2020/lib/core/services/config/monkeyecx-error-config.service.mjs +0 -85
- package/esm2020/lib/core/services/config/monkeyecx-feature-toggle.service.mjs +0 -67
- package/esm2020/lib/core/services/config/monkeyecx-ga-config.service.mjs +0 -57
- package/esm2020/lib/core/services/config/monkeyecx-i18n-config.service.mjs +0 -92
- package/esm2020/lib/core/services/config/monkeyecx-logs-config.service.mjs +0 -34
- package/esm2020/lib/core/services/config/monkeyecx-maintenance-config.service.mjs +0 -37
- package/esm2020/lib/core/services/config/monkeyecx-security-console-config.service.mjs +0 -42
- package/esm2020/lib/core/services/config/monkeyecx-service-worker-config.service.mjs +0 -53
- package/esm2020/lib/core/services/error/index.mjs +0 -5
- package/esm2020/lib/core/services/error/monkeyecx-error-handling.module.mjs +0 -27
- package/esm2020/lib/core/services/error/monkeyecx-error-handling.service.mjs +0 -37
- package/esm2020/lib/core/services/error/monkeyecx-http-error-handling.service.mjs +0 -135
- package/esm2020/lib/core/services/error/monkeyecx-others-errors-handling.service.mjs +0 -29
- package/esm2020/lib/core/services/index.mjs +0 -23
- package/esm2020/lib/core/services/logged/index.mjs +0 -2
- package/esm2020/lib/core/services/logged/monkeyecx-logged-handling.service.mjs +0 -40
- package/esm2020/lib/core/services/monkeyecx-handling.service.mjs +0 -50
- package/esm2020/lib/core/services/monkeyecx-service.service.mjs +0 -104
- package/esm2020/lib/core/services/pagination/index.mjs +0 -2
- package/esm2020/lib/core/services/pagination/monkeyecx-pagination.service.mjs +0 -29
- package/esm2020/lib/core/services/request-download/index.mjs +0 -3
- package/esm2020/lib/core/services/request-download/monkeyecx-request-download-handling.service.mjs +0 -93
- package/esm2020/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.mjs +0 -61
- package/esm2020/lib/core/services/request-paged/index.mjs +0 -2
- package/esm2020/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.mjs +0 -42
- package/esm2020/lib/core/services/request-queue/index.mjs +0 -3
- package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.mjs +0 -114
- package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.mjs +0 -119
- package/esm2020/lib/core/services/routes/index.mjs +0 -2
- package/esm2020/lib/core/services/routes/monkeyecx-dicovery-params.service.mjs +0 -54
- package/esm2020/lib/core/services/schedules/index.mjs +0 -2
- package/esm2020/lib/core/services/schedules/monkeyecx-request-schedule.service.mjs +0 -188
- package/esm2020/lib/core/services/storage/index.mjs +0 -3
- package/esm2020/lib/core/services/storage/monkeyecx-cookie-storage.service.mjs +0 -32
- package/esm2020/lib/core/services/storage/monkeyecx-token-storage.service.mjs +0 -127
- package/esm2020/lib/core/specification-search/index.mjs +0 -2
- package/esm2020/lib/core/specification-search/monkeyecx-specification-search.mjs +0 -108
- package/esm2020/lib/core/utils/decorators-utils.mjs +0 -40
- package/esm2020/lib/core/utils/index.mjs +0 -8
- package/esm2020/lib/core/utils/statics.mjs +0 -38
- package/esm2020/lib/core/utils/utils.mjs +0 -221
- package/esm2020/lib/core/utils/validate-utils.mjs +0 -206
- package/esm2020/lib/core/utils/validators.mjs +0 -208
- package/esm2020/lib/monkey-front-core.module.mjs +0 -64
- package/esm2020/monkey-front-core.mjs +0 -5
- package/esm2020/public-api.mjs +0 -7
- package/fesm2015/monkey-front-core.mjs +0 -5123
- package/fesm2015/monkey-front-core.mjs.map +0 -1
- package/fesm2020/monkey-front-core.mjs +0 -5182
- package/fesm2020/monkey-front-core.mjs.map +0 -1
- package/lib/components/alerts/alerts.component.d.ts +0 -16
- package/lib/components/alerts/alerts.module.d.ts +0 -10
- package/lib/components/closed-to-maintenance/closed-to-maintenance.component.d.ts +0 -13
- package/lib/components/closed-to-maintenance/closed-to-maintenance.module.d.ts +0 -11
- package/lib/components/progress-bar/progress-bar.component.d.ts +0 -11
- package/lib/components/progress-bar/progress-bar.module.d.ts +0 -8
- package/lib/components/progress-bar/progress-bar.service.d.ts +0 -14
- package/lib/components/version-changed/version-changed.component.d.ts +0 -9
- package/lib/components/version-changed/version-changed.module.d.ts +0 -10
- package/lib/core/decorators/monkeyecx-charts-decorators.d.ts +0 -1
- package/lib/core/decorators/monkeyecx-decorators.d.ts +0 -7
- package/lib/core/decorators/monkeyecx-download-decorators.d.ts +0 -2
- package/lib/core/decorators/monkeyecx-upload-decorators.d.ts +0 -2
- package/lib/core/directives/monkeyecx-directives-module.d.ts +0 -19
- package/lib/core/directives/monkeyecx-drag-drop.d.ts +0 -12
- package/lib/core/directives/monkeyecx-feature-by-program-directive.d.ts +0 -15
- package/lib/core/directives/monkeyecx-feature-directive.d.ts +0 -17
- package/lib/core/directives/monkeyecx-format-currency.d.ts +0 -16
- package/lib/core/directives/monkeyecx-format-upper.d.ts +0 -18
- package/lib/core/directives/monkeyecx-only-alpha-numeric-directive.d.ts +0 -9
- package/lib/core/directives/monkeyecx-only-number-directive.d.ts +0 -9
- package/lib/core/directives/monkeyecx-popover-options.directive.d.ts +0 -19
- package/lib/core/directives/monkeyecx-popover.directive.d.ts +0 -43
- package/lib/core/directives/monkeyecx-security-directive.d.ts +0 -17
- package/lib/core/directives/monkeyecx-tooltip-directive.d.ts +0 -23
- package/lib/core/interceptors/monkeyecx-http-config-error.interceptor.d.ts +0 -17
- package/lib/core/interceptors/monkeyecx-http-config-header.interceptor.d.ts +0 -16
- package/lib/core/interceptors/monkeyecx-http-config-interceptor.module.d.ts +0 -9
- package/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.d.ts +0 -12
- package/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.d.ts +0 -14
- package/lib/core/interfaces/monkeyecx-auth-credentials.d.ts +0 -15
- package/lib/core/interfaces/monkeyecx-company.d.ts +0 -10
- package/lib/core/interfaces/monkeyecx-config-boostrap.d.ts +0 -14
- package/lib/core/interfaces/monkeyecx-config.d.ts +0 -125
- package/lib/core/interfaces/monkeyecx-country-security.d.ts +0 -4
- package/lib/core/interfaces/monkeyecx-error-response.d.ts +0 -5
- package/lib/core/interfaces/monkeyecx-filter.d.ts +0 -24
- package/lib/core/interfaces/monkeyecx-handled-error-response.d.ts +0 -10
- package/lib/core/interfaces/monkeyecx-header-credentials.d.ts +0 -4
- package/lib/core/interfaces/monkeyecx-me-credentials.d.ts +0 -22
- package/lib/core/interfaces/monkeyecx-navigation.d.ts +0 -27
- package/lib/core/interfaces/monkeyecx-program.d.ts +0 -10
- package/lib/core/interfaces/monkeyecx-releases.d.ts +0 -9
- package/lib/core/interfaces/monkeyecx-request-paged.d.ts +0 -23
- package/lib/core/interfaces/monkeyecx-response-links.d.ts +0 -11
- package/lib/core/interfaces/monkeyecx-response-paged.d.ts +0 -6
- package/lib/core/interfaces/monkeyecx-saved-state.d.ts +0 -5
- package/lib/core/interfaces/monkeyecx-token-credentials.d.ts +0 -20
- package/lib/core/interfaces/monkeyecx-translate-options.d.ts +0 -4
- package/lib/core/interfaces/request-download/monkeyecx-request-download.d.ts +0 -10
- package/lib/core/interfaces/request-download/monkeyecx-request-downloaded.d.ts +0 -7
- package/lib/core/interfaces/request-download/monkeyecx-request-item-download.d.ts +0 -7
- package/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.d.ts +0 -7
- package/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.d.ts +0 -6
- package/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.d.ts +0 -5
- package/lib/core/interfaces/request-upload/monkeyecx-request-upload.d.ts +0 -10
- package/lib/core/interfaces/schedules/monkeyecx-request-schedule.d.ts +0 -13
- package/lib/core/model/monkeyecx-model.d.ts +0 -13
- package/lib/core/pipes/monkeyecx-display-first-name.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-display-initials.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-address.d.ts +0 -14
- package/lib/core/pipes/monkeyecx-format-beautify-json.d.ts +0 -8
- package/lib/core/pipes/monkeyecx-format-currency.d.ts +0 -11
- package/lib/core/pipes/monkeyecx-format-date-group.d.ts +0 -11
- package/lib/core/pipes/monkeyecx-format-date-timelapse.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-date-unix-timelapse.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-document.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-number.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-phone.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-size.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-tax.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-type-document.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-value.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-format-zipcode.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-pipes.module.d.ts +0 -24
- package/lib/core/pipes/monkeyecx-text-truncate.d.ts +0 -7
- package/lib/core/pipes/monkeyecx-truncate-qtd.d.ts +0 -7
- package/lib/core/services/auth/monkeyecx-auth-guard-company.service.d.ts +0 -11
- package/lib/core/services/auth/monkeyecx-auth-guard-login.service.d.ts +0 -11
- package/lib/core/services/auth/monkeyecx-auth-guard.service.d.ts +0 -11
- package/lib/core/services/auth/monkeyecx-authentication.service.d.ts +0 -30
- package/lib/core/services/commons/monkeyecx-commons.service.d.ts +0 -124
- package/lib/core/services/config/monkeyecx-alerts-config.service.d.ts +0 -11
- package/lib/core/services/config/monkeyecx-config.module.d.ts +0 -9
- package/lib/core/services/config/monkeyecx-config.service.d.ts +0 -36
- package/lib/core/services/config/monkeyecx-error-config.service.d.ts +0 -8
- package/lib/core/services/config/monkeyecx-feature-toggle.service.d.ts +0 -16
- package/lib/core/services/config/monkeyecx-ga-config.service.d.ts +0 -10
- package/lib/core/services/config/monkeyecx-i18n-config.service.d.ts +0 -16
- package/lib/core/services/config/monkeyecx-logs-config.service.d.ts +0 -7
- package/lib/core/services/config/monkeyecx-maintenance-config.service.d.ts +0 -13
- package/lib/core/services/config/monkeyecx-security-console-config.service.d.ts +0 -11
- package/lib/core/services/config/monkeyecx-service-worker-config.service.d.ts +0 -16
- package/lib/core/services/error/monkeyecx-error-handling.module.d.ts +0 -9
- package/lib/core/services/error/monkeyecx-error-handling.service.d.ts +0 -9
- package/lib/core/services/error/monkeyecx-http-error-handling.service.d.ts +0 -26
- package/lib/core/services/error/monkeyecx-others-errors-handling.service.d.ts +0 -9
- package/lib/core/services/logged/monkeyecx-logged-handling.service.d.ts +0 -14
- package/lib/core/services/monkeyecx-handling.service.d.ts +0 -22
- package/lib/core/services/monkeyecx-service.service.d.ts +0 -18
- package/lib/core/services/pagination/monkeyecx-pagination.service.d.ts +0 -9
- package/lib/core/services/request-download/monkeyecx-request-download-handling.service.d.ts +0 -18
- package/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.d.ts +0 -16
- package/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.d.ts +0 -11
- package/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.d.ts +0 -21
- package/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.d.ts +0 -23
- package/lib/core/services/routes/monkeyecx-dicovery-params.service.d.ts +0 -13
- package/lib/core/services/schedules/monkeyecx-request-schedule.service.d.ts +0 -47
- package/lib/core/services/storage/monkeyecx-cookie-storage.service.d.ts +0 -11
- package/lib/core/services/storage/monkeyecx-token-storage.service.d.ts +0 -29
- package/lib/core/specification-search/monkeyecx-specification-search.d.ts +0 -20
- package/lib/core/utils/decorators-utils.d.ts +0 -5
- package/lib/core/utils/statics.d.ts +0 -28
- package/lib/core/utils/utils.d.ts +0 -22
- package/lib/core/utils/validate-utils.d.ts +0 -66
- package/lib/core/utils/validators.d.ts +0 -29
- package/lib/monkey-front-core.module.d.ts +0 -17
- package/monkey-front-core-0.0.237.tgz +0 -0
- package/monkey-front-core.d.ts +0 -5
package/karma.conf.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Karma configuration file, see link for more information
|
|
2
|
+
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
+
|
|
4
|
+
module.exports = function (config) {
|
|
5
|
+
config.set({
|
|
6
|
+
basePath: '',
|
|
7
|
+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
+
plugins: [
|
|
9
|
+
require('karma-jasmine'),
|
|
10
|
+
require('karma-chrome-launcher'),
|
|
11
|
+
require('karma-jasmine-html-reporter'),
|
|
12
|
+
require('karma-coverage'),
|
|
13
|
+
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
+
],
|
|
15
|
+
client: {
|
|
16
|
+
jasmine: {
|
|
17
|
+
// you can add configuration options for Jasmine here
|
|
18
|
+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
|
19
|
+
// for example, you can disable the random execution with `random: false`
|
|
20
|
+
// or set a specific seed with `seed: 4321`
|
|
21
|
+
},
|
|
22
|
+
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
23
|
+
},
|
|
24
|
+
jasmineHtmlReporter: {
|
|
25
|
+
suppressAll: true // removes the duplicated traces
|
|
26
|
+
},
|
|
27
|
+
coverageReporter: {
|
|
28
|
+
dir: require('path').join(__dirname, '../../coverage/monkey-front-core'),
|
|
29
|
+
subdir: '.',
|
|
30
|
+
reporters: [
|
|
31
|
+
{ type: 'html' },
|
|
32
|
+
{ type: 'text-summary' }
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
reporters: ['progress', 'kjhtml'],
|
|
36
|
+
port: 9876,
|
|
37
|
+
colors: true,
|
|
38
|
+
logLevel: config.LOG_INFO,
|
|
39
|
+
autoWatch: true,
|
|
40
|
+
browsers: ['Chrome'],
|
|
41
|
+
singleRun: false,
|
|
42
|
+
restartOnFileChange: true
|
|
43
|
+
});
|
|
44
|
+
};
|
|
Binary file
|
package/ng-package.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monkey-front-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.238",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": "^13.1.1",
|
|
6
6
|
"@angular/common": "^13.1.1",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@ngx-translate/http-loader": "^6.0.0",
|
|
13
13
|
"launchdarkly-js-client-sdk": "2.19.2",
|
|
14
14
|
"moment": "^2.29.4",
|
|
15
|
-
"monkey-style-guide": "^2.0.
|
|
15
|
+
"monkey-style-guide": "^2.0.152",
|
|
16
16
|
"ngx-cookie-service": "^13.1.1",
|
|
17
17
|
"ngx-mask": "^12.0.0",
|
|
18
18
|
"rxjs": "^6.6.3"
|
|
@@ -20,25 +20,5 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"monkey-style-guide": "^2.0.151",
|
|
22
22
|
"tslib": "^2.3.0"
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
"es2020": "fesm2020/monkey-front-core.mjs",
|
|
26
|
-
"esm2020": "esm2020/monkey-front-core.mjs",
|
|
27
|
-
"fesm2020": "fesm2020/monkey-front-core.mjs",
|
|
28
|
-
"fesm2015": "fesm2015/monkey-front-core.mjs",
|
|
29
|
-
"typings": "monkey-front-core.d.ts",
|
|
30
|
-
"exports": {
|
|
31
|
-
"./package.json": {
|
|
32
|
-
"default": "./package.json"
|
|
33
|
-
},
|
|
34
|
-
".": {
|
|
35
|
-
"types": "./monkey-front-core.d.ts",
|
|
36
|
-
"esm2020": "./esm2020/monkey-front-core.mjs",
|
|
37
|
-
"es2020": "./fesm2020/monkey-front-core.mjs",
|
|
38
|
-
"es2015": "./fesm2015/monkey-front-core.mjs",
|
|
39
|
-
"node": "./fesm2015/monkey-front-core.mjs",
|
|
40
|
-
"default": "./fesm2020/monkey-front-core.mjs"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"sideEffects": false
|
|
44
|
-
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<monkey-modal [config]="config" [modalRef]="modalRef" *ngIf="config">
|
|
2
|
+
<div class="alert-header">
|
|
3
|
+
<img [src]="_img">
|
|
4
|
+
</div>
|
|
5
|
+
<div class="alert-body">
|
|
6
|
+
<span class="title">
|
|
7
|
+
{{ _title | translate }}
|
|
8
|
+
</span>
|
|
9
|
+
<span class="message">
|
|
10
|
+
{{ _message | translate }}
|
|
11
|
+
</span>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="alert-footer">
|
|
14
|
+
<monkey-button type="tertiary" color="theme" (click)="onClose()">
|
|
15
|
+
{{ 'BUTTONS.CLOSE' | translate }}
|
|
16
|
+
</monkey-button>
|
|
17
|
+
</div>
|
|
18
|
+
</monkey-modal>
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
@import 'node_modules/monkey-style-guide/assets/scss/partials/breakpoints';
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
::ng-deep monkey-modal mecx-monkey-modal {
|
|
5
|
+
padding: 0px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
::ng-deep monkey-modal mecx-monkey-modal .body {
|
|
9
|
+
margin-bottom: 0px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
::ng-deep monkey-modal .mecx-monkey-modal__size-md {
|
|
13
|
+
max-width: 448px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.alert-header {
|
|
17
|
+
height: 100%;
|
|
18
|
+
|
|
19
|
+
@include media-breakpoint('lt-md') {
|
|
20
|
+
min-height: 212px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
img {
|
|
24
|
+
border-radius: 12px 12px 0px 0px;
|
|
25
|
+
object-fit: cover;
|
|
26
|
+
width: 100%;
|
|
27
|
+
max-height: 280px;
|
|
28
|
+
|
|
29
|
+
@include media-breakpoint('lt-md') {
|
|
30
|
+
height: 200px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.alert-body {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
gap: 16px;
|
|
39
|
+
margin-bottom: 0px;
|
|
40
|
+
padding: 24px;
|
|
41
|
+
margin: auto;
|
|
42
|
+
|
|
43
|
+
.title {
|
|
44
|
+
font-style: normal;
|
|
45
|
+
font-weight: 700;
|
|
46
|
+
font-size: 32px;
|
|
47
|
+
line-height: 40px;
|
|
48
|
+
text-align: center;
|
|
49
|
+
color: #1f2024;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.message {
|
|
53
|
+
font-style: normal;
|
|
54
|
+
font-weight: 400;
|
|
55
|
+
font-size: 16px;
|
|
56
|
+
line-height: 24px;
|
|
57
|
+
text-align: center;
|
|
58
|
+
letter-spacing: 0.03em;
|
|
59
|
+
color: #545a63;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.alert-footer {
|
|
64
|
+
display: flex;
|
|
65
|
+
justify-content: flex-end;
|
|
66
|
+
padding: 0px 24px 24px;
|
|
67
|
+
position: sticky;
|
|
68
|
+
bottom: 0;
|
|
69
|
+
background: #fafafa;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
+
import { MonkeyModalConfig, MonkeyStyleGuideModalService } from 'monkey-style-guide';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'monkeyecx-alerts',
|
|
6
|
+
templateUrl: './alerts.component.html',
|
|
7
|
+
styleUrls: ['./alerts.component.scss']
|
|
8
|
+
})
|
|
9
|
+
export class AlertsComponent implements OnInit {
|
|
10
|
+
@Input() config: MonkeyModalConfig | null = null;
|
|
11
|
+
|
|
12
|
+
@Input() modalRef: any;
|
|
13
|
+
|
|
14
|
+
_img = '';
|
|
15
|
+
|
|
16
|
+
_title = '';
|
|
17
|
+
|
|
18
|
+
_message = '';
|
|
19
|
+
|
|
20
|
+
constructor(
|
|
21
|
+
private modalService: MonkeyStyleGuideModalService
|
|
22
|
+
) {
|
|
23
|
+
// not to do
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
ngOnInit() {
|
|
27
|
+
const { config } = this;
|
|
28
|
+
this._img = config?.data?.img;
|
|
29
|
+
this._title = config?.data?.title;
|
|
30
|
+
this._message = config?.data?.message;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
onClose() {
|
|
34
|
+
this.modalService.close(this.modalRef);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
4
|
+
import { MonkeyButtonModule, MonkeyModalModule } from 'monkey-style-guide';
|
|
5
|
+
import { AlertsComponent } from './alerts.component';
|
|
6
|
+
|
|
7
|
+
@NgModule({
|
|
8
|
+
declarations: [AlertsComponent],
|
|
9
|
+
imports: [CommonModule, MonkeyButtonModule, MonkeyModalModule, TranslateModule.forChild()],
|
|
10
|
+
exports: [AlertsComponent]
|
|
11
|
+
})
|
|
12
|
+
export class AlertsModule {}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './alerts.component';
|
|
2
|
-
export * from './alerts.module';
|
|
1
|
+
export * from './alerts.component';
|
|
2
|
+
export * from './alerts.module';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<monkey-modal [config]="config" [modalRef]="modalRef" *ngIf="config">
|
|
2
|
+
<div class="d-flex flex-column justify-content-center align-items-center">
|
|
3
|
+
<span class="h2">
|
|
4
|
+
{{ 'SCREENS.CLOSED-TO-MAINTENANCE.TITLE' | translate }}
|
|
5
|
+
</span>
|
|
6
|
+
<span class="information-title mt-4">
|
|
7
|
+
{{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-1' | translate }}
|
|
8
|
+
</span>
|
|
9
|
+
<span class="information-title mt-4">
|
|
10
|
+
{{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-2' | translate }}
|
|
11
|
+
</span>
|
|
12
|
+
<span class="information mt-3">
|
|
13
|
+
{{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-3' | translate }}
|
|
14
|
+
{{ _configBoostrap?.maintenance?.endDate | monkeyecxFormatDateTimelapse: true }}
|
|
15
|
+
</span>
|
|
16
|
+
<span class="information-title mt-4">
|
|
17
|
+
{{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-4' | translate }}
|
|
18
|
+
</span>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="d-flex flex-column justify-content-center align-items-center mt-5">
|
|
21
|
+
<monkey-button type="primary" color="theme" (click)="onClose()">
|
|
22
|
+
{{ 'SCREENS.CLOSED-TO-MAINTENANCE.BUTTONS.UPDATE-MAINTENANCE' | translate }}
|
|
23
|
+
</monkey-button>
|
|
24
|
+
</div>
|
|
25
|
+
</monkey-modal>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
monkeyecx-closed-to-maintenance {
|
|
2
|
+
.body {
|
|
3
|
+
padding: 24px;
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.information-title {
|
|
8
|
+
font-style: normal;
|
|
9
|
+
font-weight: 600;
|
|
10
|
+
font-size: 25px;
|
|
11
|
+
line-height: 32px;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
text-align: center;
|
|
15
|
+
color: #4b4a53;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.information {
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-weight: normal;
|
|
21
|
+
font-size: 20px;
|
|
22
|
+
line-height: 24px;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
text-align: center;
|
|
26
|
+
color: #4b4a53;
|
|
27
|
+
max-width: 600px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.browser-name {
|
|
31
|
+
font-style: normal;
|
|
32
|
+
font-weight: normal;
|
|
33
|
+
font-size: 16px;
|
|
34
|
+
line-height: 24px;
|
|
35
|
+
text-align: center;
|
|
36
|
+
color: #9c9ca6;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.option {
|
|
40
|
+
text-decoration: none;
|
|
41
|
+
padding: 4px;
|
|
42
|
+
background: #eee;
|
|
43
|
+
border: 1px solid #d6d6d6;
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
border-radius: 16px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
monkey-modal mecx-monkey-modal .body {
|
|
49
|
+
margin-bottom: 0px !important;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Component, Input, OnInit, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import { MonkeyModalConfig } from 'monkey-style-guide';
|
|
3
|
+
import { MonkeyEcxConfigBoostrap } from '../../core/interfaces';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'monkeyecx-closed-to-maintenance',
|
|
7
|
+
templateUrl: './closed-to-maintenance.component.html',
|
|
8
|
+
styleUrls: ['./closed-to-maintenance.component.scss'],
|
|
9
|
+
encapsulation: ViewEncapsulation.None
|
|
10
|
+
})
|
|
11
|
+
export class ClosedToMaintenanceComponent implements OnInit {
|
|
12
|
+
@Input() config: MonkeyModalConfig | null = null;
|
|
13
|
+
|
|
14
|
+
@Input() modalRef: any;
|
|
15
|
+
|
|
16
|
+
_configBoostrap: MonkeyEcxConfigBoostrap | null = null;
|
|
17
|
+
|
|
18
|
+
ngOnInit() {
|
|
19
|
+
this._configBoostrap = this.config?.data;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
onClose() {
|
|
23
|
+
document.location.reload();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
4
|
+
import {
|
|
5
|
+
MonkeyButtonModule,
|
|
6
|
+
MonkeyIconModule,
|
|
7
|
+
MonkeyInputModule,
|
|
8
|
+
MonkeyModalModule
|
|
9
|
+
} from 'monkey-style-guide';
|
|
10
|
+
import { MonkeyEcxPipesModule } from '../../core/pipes/monkeyecx-pipes.module';
|
|
11
|
+
import { ClosedToMaintenanceComponent } from './closed-to-maintenance.component';
|
|
12
|
+
|
|
13
|
+
@NgModule({
|
|
14
|
+
declarations: [ClosedToMaintenanceComponent],
|
|
15
|
+
imports: [
|
|
16
|
+
CommonModule,
|
|
17
|
+
MonkeyButtonModule,
|
|
18
|
+
MonkeyIconModule,
|
|
19
|
+
MonkeyInputModule,
|
|
20
|
+
MonkeyModalModule,
|
|
21
|
+
MonkeyEcxPipesModule,
|
|
22
|
+
TranslateModule.forChild()
|
|
23
|
+
],
|
|
24
|
+
exports: [ClosedToMaintenanceComponent]
|
|
25
|
+
})
|
|
26
|
+
export class ClosedToMaintenanceModule {}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './closed-to-maintenance.component';
|
|
2
|
-
export * from './closed-to-maintenance.module';
|
|
1
|
+
export * from './closed-to-maintenance.component';
|
|
2
|
+
export * from './closed-to-maintenance.module';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './alerts';
|
|
2
|
-
export * from './closed-to-maintenance';
|
|
3
|
-
export * from './progress-bar';
|
|
4
|
-
export * from './version-changed';
|
|
1
|
+
export * from './alerts';
|
|
2
|
+
export * from './closed-to-maintenance';
|
|
3
|
+
export * from './progress-bar';
|
|
4
|
+
export * from './version-changed';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './progress-bar.component';
|
|
2
|
-
export * from './progress-bar.module';
|
|
3
|
-
export * from './progress-bar.service';
|
|
1
|
+
export * from './progress-bar.component';
|
|
2
|
+
export * from './progress-bar.module';
|
|
3
|
+
export * from './progress-bar.service';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import { MonkeyEcxProgressBarService } from './progress-bar.service';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'monkeyecx-progress-bar',
|
|
6
|
+
templateUrl: './progress-bar.component.html',
|
|
7
|
+
styleUrls: ['./progress-bar.component.scss'],
|
|
8
|
+
encapsulation: ViewEncapsulation.None
|
|
9
|
+
})
|
|
10
|
+
export class MonkeyEcxProgressBarComponent implements OnInit {
|
|
11
|
+
visible: boolean = false;
|
|
12
|
+
|
|
13
|
+
constructor(private progressBarService: MonkeyEcxProgressBarService) {
|
|
14
|
+
//not to do
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
ngOnInit() {
|
|
18
|
+
this.progressBarService?.visibleConfig()?.subscribe((visible: boolean) => {
|
|
19
|
+
this.visible = visible;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { MonkeyEcxProgressBarComponent } from './progress-bar.component';
|
|
4
|
+
|
|
5
|
+
@NgModule({
|
|
6
|
+
declarations: [MonkeyEcxProgressBarComponent],
|
|
7
|
+
imports: [CommonModule],
|
|
8
|
+
exports: [MonkeyEcxProgressBarComponent]
|
|
9
|
+
})
|
|
10
|
+
export class MonkeyEcxProgressBarModule {}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import {
|
|
3
|
+
NavigationCancel,
|
|
4
|
+
NavigationEnd,
|
|
5
|
+
NavigationError,
|
|
6
|
+
NavigationStart,
|
|
7
|
+
Router
|
|
8
|
+
} from '@angular/router';
|
|
9
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
10
|
+
import { filter } from 'rxjs/operators';
|
|
11
|
+
|
|
12
|
+
@Injectable({
|
|
13
|
+
providedIn: 'root'
|
|
14
|
+
})
|
|
15
|
+
export class MonkeyEcxProgressBarService {
|
|
16
|
+
private visible: BehaviorSubject<any> | null = null;
|
|
17
|
+
|
|
18
|
+
constructor(private router: Router) {
|
|
19
|
+
this.init();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
private init() {
|
|
23
|
+
this.visible = new BehaviorSubject(false);
|
|
24
|
+
|
|
25
|
+
this.router.events
|
|
26
|
+
.pipe(
|
|
27
|
+
filter((event: any) => {
|
|
28
|
+
return event instanceof NavigationStart;
|
|
29
|
+
})
|
|
30
|
+
)
|
|
31
|
+
.subscribe(() => {
|
|
32
|
+
this.show();
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
this.router.events
|
|
36
|
+
.pipe(
|
|
37
|
+
filter((event: any) => {
|
|
38
|
+
return (
|
|
39
|
+
event instanceof NavigationEnd ||
|
|
40
|
+
event instanceof NavigationError ||
|
|
41
|
+
event instanceof NavigationCancel
|
|
42
|
+
);
|
|
43
|
+
})
|
|
44
|
+
)
|
|
45
|
+
.subscribe(() => {
|
|
46
|
+
this.hide();
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
show() {
|
|
51
|
+
this.visible?.next(true);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
hide() {
|
|
55
|
+
this.visible?.next(false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
visibleConfig(): Observable<any> | null {
|
|
59
|
+
return this.visible?.asObservable() || null;
|
|
60
|
+
}
|
|
61
|
+
}
|
package/{lib/components/version-changed/index.d.ts → src/lib/components/version-changed/index.ts}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './version-changed.component';
|
|
2
|
-
export * from './version-changed.module';
|
|
1
|
+
export * from './version-changed.component';
|
|
2
|
+
export * from './version-changed.module';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<monkey-modal [config]="config" [modalRef]="modalRef" *ngIf="config">
|
|
2
|
+
<div class="d-flex flex-column justify-content-center align-items-center">
|
|
3
|
+
<span class="h2">
|
|
4
|
+
{{ 'SCREENS.VERSION-CHANGED.TITLE' | translate }}
|
|
5
|
+
</span>
|
|
6
|
+
<span class="information-title mt-4">
|
|
7
|
+
{{ 'SCREENS.VERSION-CHANGED.INFORMATION-1' | translate }}
|
|
8
|
+
</span>
|
|
9
|
+
<span class="information mt-3">
|
|
10
|
+
{{ 'SCREENS.VERSION-CHANGED.INFORMATION-2' | translate }}
|
|
11
|
+
</span>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="d-flex flex-column justify-content-center align-items-center mt-5">
|
|
14
|
+
<monkey-button type="primary" color="theme" (click)="onClose()">
|
|
15
|
+
{{ 'SCREENS.VERSION-CHANGED.BUTTONS.UPDATE-VERSION' | translate }}
|
|
16
|
+
</monkey-button>
|
|
17
|
+
</div>
|
|
18
|
+
</monkey-modal>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
monkeyecx-version-changed {
|
|
2
|
+
.body {
|
|
3
|
+
padding: 24px;
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.information-title {
|
|
8
|
+
font-style: normal;
|
|
9
|
+
font-weight: 600;
|
|
10
|
+
font-size: 25px;
|
|
11
|
+
line-height: 32px;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
text-align: center;
|
|
15
|
+
color: #4b4a53;
|
|
16
|
+
max-width: 600px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.information {
|
|
20
|
+
font-style: normal;
|
|
21
|
+
font-weight: normal;
|
|
22
|
+
font-size: 20px;
|
|
23
|
+
line-height: 24px;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
text-align: center;
|
|
27
|
+
color: #4b4a53;
|
|
28
|
+
max-width: 600px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.browser-name {
|
|
32
|
+
font-style: normal;
|
|
33
|
+
font-weight: normal;
|
|
34
|
+
font-size: 16px;
|
|
35
|
+
line-height: 24px;
|
|
36
|
+
text-align: center;
|
|
37
|
+
color: #9c9ca6;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.option {
|
|
41
|
+
text-decoration: none;
|
|
42
|
+
padding: 4px;
|
|
43
|
+
background: #eee;
|
|
44
|
+
border: 1px solid #d6d6d6;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
border-radius: 16px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
monkey-modal mecx-monkey-modal .body {
|
|
50
|
+
margin-bottom: 0px !important;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Component, Input, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import { MonkeyModalConfig } from 'monkey-style-guide';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'monkeyecx-version-changed',
|
|
6
|
+
templateUrl: './version-changed.component.html',
|
|
7
|
+
styleUrls: ['./version-changed.component.scss'],
|
|
8
|
+
encapsulation: ViewEncapsulation.None
|
|
9
|
+
})
|
|
10
|
+
export class VersionChangedComponent {
|
|
11
|
+
@Input() config: MonkeyModalConfig | null = null;
|
|
12
|
+
|
|
13
|
+
@Input() modalRef: any;
|
|
14
|
+
|
|
15
|
+
onClose() {
|
|
16
|
+
document.location.reload();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
4
|
+
import {
|
|
5
|
+
MonkeyButtonModule,
|
|
6
|
+
MonkeyIconModule,
|
|
7
|
+
MonkeyInputModule,
|
|
8
|
+
MonkeyModalModule
|
|
9
|
+
} from 'monkey-style-guide';
|
|
10
|
+
import { VersionChangedComponent } from './version-changed.component';
|
|
11
|
+
|
|
12
|
+
@NgModule({
|
|
13
|
+
declarations: [VersionChangedComponent],
|
|
14
|
+
imports: [
|
|
15
|
+
CommonModule,
|
|
16
|
+
MonkeyButtonModule,
|
|
17
|
+
MonkeyIconModule,
|
|
18
|
+
MonkeyInputModule,
|
|
19
|
+
MonkeyModalModule,
|
|
20
|
+
TranslateModule.forChild()
|
|
21
|
+
],
|
|
22
|
+
exports: [VersionChangedComponent]
|
|
23
|
+
})
|
|
24
|
+
export class VersionChangedModule {}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './monkeyecx-charts-decorators';
|
|
2
|
-
export * from './monkeyecx-decorators';
|
|
3
|
-
export * from './monkeyecx-download-decorators';
|
|
4
|
-
export * from './monkeyecx-upload-decorators';
|
|
1
|
+
export * from './monkeyecx-charts-decorators';
|
|
2
|
+
export * from './monkeyecx-decorators';
|
|
3
|
+
export * from './monkeyecx-download-decorators';
|
|
4
|
+
export * from './monkeyecx-upload-decorators';
|