new-front-common-library 0.0.75 → 0.0.77-ERGO-ROBOTO
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 +28 -28
- package/assets/css/_dark-theme.scss +648 -648
- package/assets/css/_flex.scss +55 -55
- package/assets/css/_global.scss +692 -692
- package/assets/css/_light-theme.scss +651 -651
- package/assets/css/_mat-palettes.scss +96 -96
- package/assets/css/_themes.scss +52 -52
- package/assets/i18n/front-common/de.json +24 -24
- package/assets/i18n/front-common/en.json +24 -24
- package/assets/i18n/front-common/fr.json +24 -24
- package/bundles/new-front-common-library.umd.js +4903 -4900
- package/bundles/new-front-common-library.umd.js.map +1 -1
- package/esm2015/lib/util/array.service.js +19 -19
- package/esm2015/lib/util/component/header/header.component.js +189 -189
- package/esm2015/lib/util/component/overlay/overlay.component.js +44 -44
- package/esm2015/lib/util/component/overlay/overlay.service.js +24 -24
- package/esm2015/lib/util/component/popup/popup-login/popup-login.component.js +90 -90
- package/esm2015/lib/util/component/sub-header/sub-header.component.js +48 -48
- package/esm2015/lib/util/config.js +8 -8
- package/esm2015/lib/util/date/PeriodModel.js +8 -8
- package/esm2015/lib/util/date/date-adapter.js +41 -41
- package/esm2015/lib/util/date/date-format-constants.js +12 -12
- package/esm2015/lib/util/date/date.util.js +218 -218
- package/esm2015/lib/util/decorators/theme.decorator.js +22 -22
- package/esm2015/lib/util/decorators/user.decorator.js +25 -25
- package/esm2015/lib/util/directives/my-number-formatter-directive.js +34 -34
- package/esm2015/lib/util/directives/show-if-truncated.directive.js +25 -25
- package/esm2015/lib/util/enums/rapid-search-item-type.enum.js +10 -10
- package/esm2015/lib/util/enums/status-color.enum.js +11 -11
- package/esm2015/lib/util/event/header/header-events.service.js +21 -21
- package/esm2015/lib/util/event/storage/local-storage-events.service.js +17 -17
- package/esm2015/lib/util/event/storage/session-storage-events.service.js +18 -18
- package/esm2015/lib/util/http/http-params.builder.js +27 -27
- package/esm2015/lib/util/i18n/de.js +60 -59
- package/esm2015/lib/util/i18n/en.js +60 -59
- package/esm2015/lib/util/i18n/fr.js +60 -59
- package/esm2015/lib/util/i18n/multi-translate-http-loader.js +21 -21
- package/esm2015/lib/util/interfaces/permissions.interface.js +2 -2
- package/esm2015/lib/util/models/any-line.model.js +37 -37
- package/esm2015/lib/util/models/audio-content.model.js +27 -27
- package/esm2015/lib/util/models/authPermission.model.js +16 -16
- package/esm2015/lib/util/models/authUser.model.js +20 -20
- package/esm2015/lib/util/models/basic.model.js +14 -14
- package/esm2015/lib/util/models/box-set-item.model.js +19 -19
- package/esm2015/lib/util/models/disc-program.model.js +26 -26
- package/esm2015/lib/util/models/disc.model.js +22 -22
- package/esm2015/lib/util/models/eventType.model.js +7 -7
- package/esm2015/lib/util/models/expenditure-commitment/purchase-order-file.model.js +22 -22
- package/esm2015/lib/util/models/expenditure-commitment/purchase-order-rapid-search.model.js +3 -3
- package/esm2015/lib/util/models/index.js +98 -98
- package/esm2015/lib/util/models/lang-line.model.js +27 -27
- package/esm2015/lib/util/models/legal/contract-work.model.js +23 -23
- package/esm2015/lib/util/models/legal/contract-work2.model.js +21 -21
- package/esm2015/lib/util/models/media-line.model.js +18 -18
- package/esm2015/lib/util/models/menu-language.model.js +15 -15
- package/esm2015/lib/util/models/permission.model.js +20 -20
- package/esm2015/lib/util/models/product-box-set.model.js +16 -16
- package/esm2015/lib/util/models/product-disc-detail.model.js +22 -22
- package/esm2015/lib/util/models/product-disc.model.js +27 -27
- package/esm2015/lib/util/models/product-division.model.js +29 -29
- package/esm2015/lib/util/models/product-type.model.js +22 -22
- package/esm2015/lib/util/models/product.model.js +62 -62
- package/esm2015/lib/util/models/program.model.js +28 -28
- package/esm2015/lib/util/models/purchase-order/purchase-order.model.js +53 -53
- package/esm2015/lib/util/models/referential/WorkVersionArticleDto.js +17 -17
- package/esm2015/lib/util/models/referential/adress-type.model.js +14 -14
- package/esm2015/lib/util/models/referential/adress.model.js +28 -28
- package/esm2015/lib/util/models/referential/attached-file.model.js +17 -17
- package/esm2015/lib/util/models/referential/bank-account.model.js +24 -24
- package/esm2015/lib/util/models/referential/bank-accounts.model.js +31 -31
- package/esm2015/lib/util/models/referential/basic-hierarchy.model.js +8 -8
- package/esm2015/lib/util/models/referential/broadcast-list-item.model.js +13 -13
- package/esm2015/lib/util/models/referential/color.model.js +16 -16
- package/esm2015/lib/util/models/referential/company.model.js +16 -16
- package/esm2015/lib/util/models/referential/content-type.model.js +17 -17
- package/esm2015/lib/util/models/referential/content.model.js +22 -22
- package/esm2015/lib/util/models/referential/cost-center-criteria-values.model.js +14 -14
- package/esm2015/lib/util/models/referential/cost-center-criteria.model.js +13 -13
- package/esm2015/lib/util/models/referential/cost-center.model.js +28 -28
- package/esm2015/lib/util/models/referential/coutry.model.js +16 -16
- package/esm2015/lib/util/models/referential/currency.model.js +20 -20
- package/esm2015/lib/util/models/referential/editorial-content.model.js +18 -18
- package/esm2015/lib/util/models/referential/fixing.model.js +16 -16
- package/esm2015/lib/util/models/referential/flat-media.model.js +18 -18
- package/esm2015/lib/util/models/referential/format-image.model.js +16 -16
- package/esm2015/lib/util/models/referential/format-type.model.js +16 -16
- package/esm2015/lib/util/models/referential/format.model.js +17 -17
- package/esm2015/lib/util/models/referential/fsk-index.model.js +20 -20
- package/esm2015/lib/util/models/referential/fsk.model.js +22 -22
- package/esm2015/lib/util/models/referential/function.model.js +23 -23
- package/esm2015/lib/util/models/referential/genre.model.js +17 -17
- package/esm2015/lib/util/models/referential/invoice-product-type.model.js +22 -22
- package/esm2015/lib/util/models/referential/keywords.model.js +2 -2
- package/esm2015/lib/util/models/referential/language.model.js +18 -18
- package/esm2015/lib/util/models/referential/media-filter.model.js +3 -3
- package/esm2015/lib/util/models/referential/media.model.js +20 -20
- package/esm2015/lib/util/models/referential/module.model.js +20 -20
- package/esm2015/lib/util/models/referential/parameter.model.js +2 -2
- package/esm2015/lib/util/models/referential/participant.model.js +20 -20
- package/esm2015/lib/util/models/referential/person.model.js +23 -23
- package/esm2015/lib/util/models/referential/project-status.model.js +16 -16
- package/esm2015/lib/util/models/referential/quota.model.js +17 -17
- package/esm2015/lib/util/models/referential/referential-entity-state.model.js +16 -16
- package/esm2015/lib/util/models/referential/referential-value.model.js +16 -16
- package/esm2015/lib/util/models/referential/referentiel.model.js +26 -26
- package/esm2015/lib/util/models/referential/restriction.model.js +20 -20
- package/esm2015/lib/util/models/referential/sap-order.model.js +20 -20
- package/esm2015/lib/util/models/referential/service-error.model.js +15 -15
- package/esm2015/lib/util/models/referential/sound.model.js +16 -16
- package/esm2015/lib/util/models/referential/territories-languages.model.js +16 -16
- package/esm2015/lib/util/models/referential/territory-filter.model.js +3 -3
- package/esm2015/lib/util/models/referential/territory.model.js +17 -17
- package/esm2015/lib/util/models/referential/theme.model.js +17 -17
- package/esm2015/lib/util/models/referential/third-party-creation-request.model.js +44 -44
- package/esm2015/lib/util/models/referential/third-party-module.model.js +20 -20
- package/esm2015/lib/util/models/referential/third-party.model.js +83 -83
- package/esm2015/lib/util/models/referential/translated-value-model.js +16 -16
- package/esm2015/lib/util/models/referential/tva.model.js +16 -16
- package/esm2015/lib/util/models/referential/type-export.model.js +16 -16
- package/esm2015/lib/util/models/referential/type-tva-company-territory.model.js +32 -32
- package/esm2015/lib/util/models/referential/type-tva.model.js +25 -25
- package/esm2015/lib/util/models/referential/work-addons-model.js +16 -16
- package/esm2015/lib/util/models/referential/work-appartenance.model.js +17 -17
- package/esm2015/lib/util/models/referential/work-genre.model.js +16 -16
- package/esm2015/lib/util/models/referential/work-language.model.js +16 -16
- package/esm2015/lib/util/models/referential/work-milo.model.js +61 -61
- package/esm2015/lib/util/models/referential/work-participant.model.js +21 -21
- package/esm2015/lib/util/models/referential/work-restrictions-model.js +13 -13
- package/esm2015/lib/util/models/referential/work-theme.model.js +16 -16
- package/esm2015/lib/util/models/referential/work-title.model.js +20 -20
- package/esm2015/lib/util/models/referential/work-version-origin.model.js +16 -16
- package/esm2015/lib/util/models/referential/work-version-rapid-search.model.js +3 -3
- package/esm2015/lib/util/models/referential/work-versions-used.model.js +19 -19
- package/esm2015/lib/util/models/referential/work-versions.model.js +27 -27
- package/esm2015/lib/util/models/referential/work-year-production.model.js +13 -13
- package/esm2015/lib/util/models/referential/work.model.js +22 -22
- package/esm2015/lib/util/models/referential/zone.model.js +14 -14
- package/esm2015/lib/util/models/referentiel.model.js +26 -26
- package/esm2015/lib/util/models/search-response.model.js +10 -10
- package/esm2015/lib/util/models/section.model.js +8 -8
- package/esm2015/lib/util/models/select/options.model.js +8 -8
- package/esm2015/lib/util/models/select/select.model.js +7 -7
- package/esm2015/lib/util/models/subtitle-content.model.js +28 -28
- package/esm2015/lib/util/models/user-video.model.js +22 -22
- package/esm2015/lib/util/models/user.model.js +34 -34
- package/esm2015/lib/util/models/video/product-rapid-search.model.js +3 -3
- package/esm2015/lib/util/models/video/support-rapid-search.model.js +3 -3
- package/esm2015/lib/util/models/video-content.model.js +18 -18
- package/esm2015/lib/util/number.validator.js +129 -129
- package/esm2015/lib/util/permissions/permissions.service.js +41 -41
- package/esm2015/lib/util/pipes/capitalizefirst.pipe.js +41 -41
- package/esm2015/lib/util/pipes/comma-separated-number.pipe.js +15 -15
- package/esm2015/lib/util/pipes/common-translate.pipe.js +38 -38
- package/esm2015/lib/util/pipes/display-html.pipe.js +20 -20
- package/esm2015/lib/util/pipes/display-null.pipe.js +24 -24
- package/esm2015/lib/util/pipes/format-duration.pipe.js +23 -23
- package/esm2015/lib/util/pipes/format-number-input.pipe.js +22 -22
- package/esm2015/lib/util/pipes/local-date.pipe.js +27 -27
- package/esm2015/lib/util/pipes/my-number.pipe.js +44 -44
- package/esm2015/lib/util/pipes/third-party-address.pipe.js +17 -17
- package/esm2015/lib/util/pipes/trim-string.pipe.js +25 -25
- package/esm2015/lib/util/regex/regex.service.js +94 -94
- package/esm2015/lib/util/services/api/common-api.service.js +98 -98
- package/esm2015/lib/util/services/elasticsearch/elasticsearch.service.js +65 -65
- package/esm2015/lib/util/services/form-action/form-actions-events.service.js +25 -25
- package/esm2015/lib/util/services/guard/auth.guard.js +43 -43
- package/esm2015/lib/util/services/guard/login.guard.js +34 -34
- package/esm2015/lib/util/services/history/history.service.js +39 -39
- package/esm2015/lib/util/services/interceptor/auth.interceptor.js +53 -53
- package/esm2015/lib/util/services/jwt-security/aes.service.js +34 -34
- package/esm2015/lib/util/services/jwt-security/interceptorhttp.service.js +18 -18
- package/esm2015/lib/util/services/jwt-security/jwt.helpher.js +34 -34
- package/esm2015/lib/util/services/storage/local-storage.service.js +36 -36
- package/esm2015/lib/util/services/storage/session-storage.service.js +38 -38
- package/esm2015/lib/util/services/translate-language/lang.service.js +31 -31
- package/esm2015/lib/util/sort.js +22 -22
- package/esm2015/lib/util/theme/theme-event.service.js +17 -17
- package/esm2015/lib/util/toaster/toaster-events.service.js +32 -32
- package/esm2015/lib/util/util.module.js +270 -270
- package/esm2015/new-front-common-library.js +4 -4
- package/esm2015/public-api.js +56 -56
- package/fesm2015/new-front-common-library.js +4228 -4225
- package/fesm2015/new-front-common-library.js.map +1 -1
- package/lib/util/array.service.d.ts +7 -7
- package/lib/util/component/header/header.component.d.ts +65 -65
- package/lib/util/component/overlay/overlay.component.d.ts +17 -17
- package/lib/util/component/overlay/overlay.service.d.ts +13 -13
- package/lib/util/component/popup/popup-login/popup-login.component.d.ts +32 -32
- package/lib/util/component/sub-header/sub-header.component.d.ts +13 -13
- package/lib/util/config.d.ts +8 -8
- package/lib/util/date/PeriodModel.d.ts +6 -6
- package/lib/util/date/date-adapter.d.ts +8 -8
- package/lib/util/date/date-format-constants.d.ts +25 -25
- package/lib/util/date/date.util.d.ts +16 -16
- package/lib/util/decorators/theme.decorator.d.ts +1 -1
- package/lib/util/decorators/user.decorator.d.ts +1 -1
- package/lib/util/directives/my-number-formatter-directive.d.ts +15 -15
- package/lib/util/directives/show-if-truncated.directive.d.ts +11 -11
- package/lib/util/enums/rapid-search-item-type.enum.d.ts +8 -8
- package/lib/util/enums/status-color.enum.d.ts +9 -9
- package/lib/util/event/header/header-events.service.d.ts +11 -11
- package/lib/util/event/storage/local-storage-events.service.d.ts +9 -9
- package/lib/util/event/storage/session-storage-events.service.d.ts +10 -10
- package/lib/util/http/http-params.builder.d.ts +9 -9
- package/lib/util/i18n/de.d.ts +51 -50
- package/lib/util/i18n/en.d.ts +51 -50
- package/lib/util/i18n/fr.d.ts +51 -50
- package/lib/util/i18n/multi-translate-http-loader.d.ts +14 -14
- package/lib/util/interfaces/permissions.interface.d.ts +3 -3
- package/lib/util/models/any-line.model.d.ts +24 -24
- package/lib/util/models/audio-content.model.d.ts +27 -27
- package/lib/util/models/authPermission.model.d.ts +7 -7
- package/lib/util/models/authUser.model.d.ts +14 -14
- package/lib/util/models/basic.model.d.ts +11 -11
- package/lib/util/models/box-set-item.model.d.ts +12 -12
- package/lib/util/models/disc-program.model.d.ts +9 -9
- package/lib/util/models/disc.model.d.ts +15 -15
- package/lib/util/models/eventType.model.d.ts +5 -5
- package/lib/util/models/expenditure-commitment/purchase-order-file.model.d.ts +8 -8
- package/lib/util/models/expenditure-commitment/purchase-order-rapid-search.model.d.ts +10 -10
- package/lib/util/models/index.d.ts +97 -97
- package/lib/util/models/lang-line.model.d.ts +18 -18
- package/lib/util/models/legal/contract-work.model.d.ts +27 -27
- package/lib/util/models/legal/contract-work2.model.d.ts +23 -23
- package/lib/util/models/media-line.model.d.ts +9 -9
- package/lib/util/models/menu-language.model.d.ts +6 -6
- package/lib/util/models/permission.model.d.ts +12 -12
- package/lib/util/models/product-box-set.model.d.ts +8 -8
- package/lib/util/models/product-disc-detail.model.d.ts +14 -14
- package/lib/util/models/product-disc.model.d.ts +11 -11
- package/lib/util/models/product-division.model.d.ts +15 -15
- package/lib/util/models/product-type.model.d.ts +7 -7
- package/lib/util/models/product.model.d.ts +52 -52
- package/lib/util/models/program.model.d.ts +21 -21
- package/lib/util/models/purchase-order/purchase-order.model.d.ts +40 -40
- package/lib/util/models/referential/WorkVersionArticleDto.d.ts +10 -10
- package/lib/util/models/referential/adress-type.model.d.ts +5 -5
- package/lib/util/models/referential/adress.model.d.ts +20 -20
- package/lib/util/models/referential/attached-file.model.d.ts +11 -11
- package/lib/util/models/referential/bank-account.model.d.ts +15 -15
- package/lib/util/models/referential/bank-accounts.model.d.ts +17 -17
- package/lib/util/models/referential/basic-hierarchy.model.d.ts +6 -6
- package/lib/util/models/referential/broadcast-list-item.model.d.ts +8 -8
- package/lib/util/models/referential/color.model.d.ts +6 -6
- package/lib/util/models/referential/company.model.d.ts +7 -7
- package/lib/util/models/referential/content-type.model.d.ts +12 -12
- package/lib/util/models/referential/content.model.d.ts +7 -7
- package/lib/util/models/referential/cost-center-criteria-values.model.d.ts +7 -7
- package/lib/util/models/referential/cost-center-criteria.model.d.ts +12 -12
- package/lib/util/models/referential/cost-center.model.d.ts +18 -18
- package/lib/util/models/referential/coutry.model.d.ts +7 -7
- package/lib/util/models/referential/currency.model.d.ts +11 -11
- package/lib/util/models/referential/editorial-content.model.d.ts +25 -25
- package/lib/util/models/referential/fixing.model.d.ts +10 -10
- package/lib/util/models/referential/flat-media.model.d.ts +9 -9
- package/lib/util/models/referential/format-image.model.d.ts +7 -7
- package/lib/util/models/referential/format-type.model.d.ts +6 -6
- package/lib/util/models/referential/format.model.d.ts +7 -7
- package/lib/util/models/referential/fsk-index.model.d.ts +22 -22
- package/lib/util/models/referential/fsk.model.d.ts +37 -37
- package/lib/util/models/referential/function.model.d.ts +8 -8
- package/lib/util/models/referential/genre.model.d.ts +7 -7
- package/lib/util/models/referential/invoice-product-type.model.d.ts +7 -7
- package/lib/util/models/referential/keywords.model.d.ts +6 -6
- package/lib/util/models/referential/language.model.d.ts +11 -11
- package/lib/util/models/referential/media-filter.model.d.ts +10 -10
- package/lib/util/models/referential/media.model.d.ts +11 -11
- package/lib/util/models/referential/module.model.d.ts +11 -11
- package/lib/util/models/referential/parameter.model.d.ts +6 -6
- package/lib/util/models/referential/participant.model.d.ts +11 -11
- package/lib/util/models/referential/person.model.d.ts +13 -13
- package/lib/util/models/referential/project-status.model.d.ts +6 -6
- package/lib/util/models/referential/quota.model.d.ts +7 -7
- package/lib/util/models/referential/referential-entity-state.model.d.ts +11 -11
- package/lib/util/models/referential/referential-value.model.d.ts +11 -11
- package/lib/util/models/referential/referentiel.model.d.ts +12 -12
- package/lib/util/models/referential/restriction.model.d.ts +9 -9
- package/lib/util/models/referential/sap-order.model.d.ts +27 -27
- package/lib/util/models/referential/service-error.model.d.ts +13 -13
- package/lib/util/models/referential/sound.model.d.ts +6 -6
- package/lib/util/models/referential/territories-languages.model.d.ts +8 -8
- package/lib/util/models/referential/territory-filter.model.d.ts +6 -6
- package/lib/util/models/referential/territory.model.d.ts +12 -11
- package/lib/util/models/referential/theme.model.d.ts +7 -7
- package/lib/util/models/referential/third-party-creation-request.model.d.ts +48 -48
- package/lib/util/models/referential/third-party-module.model.d.ts +11 -11
- package/lib/util/models/referential/third-party.model.d.ts +45 -45
- package/lib/util/models/referential/translated-value-model.d.ts +10 -10
- package/lib/util/models/referential/tva.model.d.ts +7 -7
- package/lib/util/models/referential/type-export.model.d.ts +7 -7
- package/lib/util/models/referential/type-tva-company-territory.model.d.ts +18 -18
- package/lib/util/models/referential/type-tva.model.d.ts +10 -10
- package/lib/util/models/referential/work-addons-model.d.ts +25 -25
- package/lib/util/models/referential/work-appartenance.model.d.ts +7 -7
- package/lib/util/models/referential/work-genre.model.d.ts +11 -11
- package/lib/util/models/referential/work-language.model.d.ts +11 -11
- package/lib/util/models/referential/work-milo.model.d.ts +46 -46
- package/lib/util/models/referential/work-participant.model.d.ts +10 -10
- package/lib/util/models/referential/work-restrictions-model.d.ts +18 -18
- package/lib/util/models/referential/work-theme.model.d.ts +11 -11
- package/lib/util/models/referential/work-title.model.d.ts +10 -10
- package/lib/util/models/referential/work-version-origin.model.d.ts +10 -10
- package/lib/util/models/referential/work-version-rapid-search.model.d.ts +9 -9
- package/lib/util/models/referential/work-versions-used.model.d.ts +12 -12
- package/lib/util/models/referential/work-versions.model.d.ts +29 -29
- package/lib/util/models/referential/work-year-production.model.d.ts +6 -6
- package/lib/util/models/referential/work.model.d.ts +74 -74
- package/lib/util/models/referential/zone.model.d.ts +6 -6
- package/lib/util/models/referentiel.model.d.ts +12 -12
- package/lib/util/models/search-response.model.d.ts +7 -7
- package/lib/util/models/section.model.d.ts +7 -7
- package/lib/util/models/select/options.model.d.ts +6 -6
- package/lib/util/models/select/select.model.d.ts +5 -5
- package/lib/util/models/subtitle-content.model.d.ts +26 -26
- package/lib/util/models/user-video.model.d.ts +10 -10
- package/lib/util/models/user.model.d.ts +25 -25
- package/lib/util/models/video/product-rapid-search.model.d.ts +8 -8
- package/lib/util/models/video/support-rapid-search.model.d.ts +6 -6
- package/lib/util/models/video-content.model.d.ts +24 -24
- package/lib/util/number.validator.d.ts +14 -14
- package/lib/util/permissions/permissions.service.d.ts +12 -12
- package/lib/util/pipes/capitalizefirst.pipe.d.ts +8 -8
- package/lib/util/pipes/comma-separated-number.pipe.d.ts +7 -7
- package/lib/util/pipes/common-translate.pipe.d.ts +12 -12
- package/lib/util/pipes/display-html.pipe.d.ts +10 -10
- package/lib/util/pipes/display-null.pipe.d.ts +8 -8
- package/lib/util/pipes/format-duration.pipe.d.ts +7 -7
- package/lib/util/pipes/format-number-input.pipe.d.ts +7 -7
- package/lib/util/pipes/local-date.pipe.d.ts +9 -9
- package/lib/util/pipes/my-number.pipe.d.ts +11 -11
- package/lib/util/pipes/third-party-address.pipe.d.ts +8 -8
- package/lib/util/pipes/trim-string.pipe.d.ts +7 -7
- package/lib/util/regex/regex.service.d.ts +12 -12
- package/lib/util/services/api/common-api.service.d.ts +27 -27
- package/lib/util/services/elasticsearch/elasticsearch.service.d.ts +17 -17
- package/lib/util/services/form-action/form-actions-events.service.d.ts +14 -14
- package/lib/util/services/guard/auth.guard.d.ts +18 -18
- package/lib/util/services/guard/login.guard.d.ts +18 -18
- package/lib/util/services/history/history.service.d.ts +10 -10
- package/lib/util/services/interceptor/auth.interceptor.d.ts +16 -16
- package/lib/util/services/jwt-security/aes.service.d.ts +12 -12
- package/lib/util/services/jwt-security/interceptorhttp.service.d.ts +8 -8
- package/lib/util/services/jwt-security/jwt.helpher.d.ts +4 -4
- package/lib/util/services/storage/local-storage.service.d.ts +13 -13
- package/lib/util/services/storage/session-storage.service.d.ts +13 -13
- package/lib/util/services/translate-language/lang.service.d.ts +14 -14
- package/lib/util/sort.d.ts +4 -4
- package/lib/util/theme/theme-event.service.d.ts +9 -9
- package/lib/util/toaster/toaster-events.service.d.ts +15 -15
- package/lib/util/util.module.d.ts +50 -50
- package/new-front-common-library.d.ts +5 -5
- package/package.json +1 -1
- package/public-api.d.ts +53 -53
- package/esm2015/lib/util/models/milo/territory.model.js +0 -18
- package/lib/util/models/milo/territory.model.d.ts +0 -9
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/router";
|
|
4
|
-
import * as i2 from "@ngx-translate/core";
|
|
5
|
-
import * as i3 from "./overlay.service";
|
|
6
|
-
import * as i4 from "@angular/material/card";
|
|
7
|
-
import * as i5 from "@angular/material/progress-spinner";
|
|
8
|
-
import * as i6 from "@angular/common";
|
|
9
|
-
export class OverlayComponent {
|
|
10
|
-
constructor(router, translateService, overlayService, cd) {
|
|
11
|
-
this.router = router;
|
|
12
|
-
this.translateService = translateService;
|
|
13
|
-
this.overlayService = overlayService;
|
|
14
|
-
this.cd = cd;
|
|
15
|
-
this.show = false;
|
|
16
|
-
}
|
|
17
|
-
ngOnInit() {
|
|
18
|
-
this.router.events.subscribe(() => {
|
|
19
|
-
this.show = false;
|
|
20
|
-
});
|
|
21
|
-
this.overlayService.showEvent.subscribe((message) => {
|
|
22
|
-
this.message = message || this.message;
|
|
23
|
-
this.show = true;
|
|
24
|
-
this.cd.detectChanges();
|
|
25
|
-
});
|
|
26
|
-
this.overlayService.hideEvent.subscribe(() => {
|
|
27
|
-
this.show = false;
|
|
28
|
-
});
|
|
29
|
-
this.overlayService.setMessageEvent.subscribe((message) => {
|
|
30
|
-
this.message = message;
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
OverlayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: OverlayComponent, deps: [{ token: i1.Router }, { token: i2.TranslateService }, { token: i3.OverlayService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
-
OverlayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: OverlayComponent, selector: "sc-overlay", ngImport: i0, template: "<div *ngIf=\"show\" class=\"blackshield\"></div>\n\n<div *ngIf=\"show\" class=\"d-flex justify-content-center align-items-center\">\n <mat-card class=\"overshield\">\n <mat-card-content class=\"d-flex justify-content-between align-items-center\">\n <span>{{ message || 'CORE.OVERLAY.LOADING' | translate}}</span>\n <mat-spinner diameter=\"40\"></mat-spinner>\n </mat-card-content>\n </mat-card>\n</div>\n", styles: [".blackshield{position:fixed;display:block!important;top:0;left:0;width:100%;background:black;opacity:.8;height:100vh;z-index:2000000;padding-top:150px}.overshield{position:fixed;width:30%;min-height:6vh;margin-top:250px;z-index:20000000}\n"], components: [{ type: i4.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i5.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }], pipes: { "translate": i2.TranslatePipe } });
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: OverlayComponent, decorators: [{
|
|
37
|
-
type: Component,
|
|
38
|
-
args: [{
|
|
39
|
-
selector: 'sc-overlay',
|
|
40
|
-
styleUrls: ['./overlay.component.css'],
|
|
41
|
-
templateUrl: './overlay.component.html'
|
|
42
|
-
}]
|
|
43
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i2.TranslateService }, { type: i3.OverlayService }, { type: i0.ChangeDetectorRef }]; } });
|
|
44
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/router";
|
|
4
|
+
import * as i2 from "@ngx-translate/core";
|
|
5
|
+
import * as i3 from "./overlay.service";
|
|
6
|
+
import * as i4 from "@angular/material/card";
|
|
7
|
+
import * as i5 from "@angular/material/progress-spinner";
|
|
8
|
+
import * as i6 from "@angular/common";
|
|
9
|
+
export class OverlayComponent {
|
|
10
|
+
constructor(router, translateService, overlayService, cd) {
|
|
11
|
+
this.router = router;
|
|
12
|
+
this.translateService = translateService;
|
|
13
|
+
this.overlayService = overlayService;
|
|
14
|
+
this.cd = cd;
|
|
15
|
+
this.show = false;
|
|
16
|
+
}
|
|
17
|
+
ngOnInit() {
|
|
18
|
+
this.router.events.subscribe(() => {
|
|
19
|
+
this.show = false;
|
|
20
|
+
});
|
|
21
|
+
this.overlayService.showEvent.subscribe((message) => {
|
|
22
|
+
this.message = message || this.message;
|
|
23
|
+
this.show = true;
|
|
24
|
+
this.cd.detectChanges();
|
|
25
|
+
});
|
|
26
|
+
this.overlayService.hideEvent.subscribe(() => {
|
|
27
|
+
this.show = false;
|
|
28
|
+
});
|
|
29
|
+
this.overlayService.setMessageEvent.subscribe((message) => {
|
|
30
|
+
this.message = message;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
OverlayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: OverlayComponent, deps: [{ token: i1.Router }, { token: i2.TranslateService }, { token: i3.OverlayService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
+
OverlayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: OverlayComponent, selector: "sc-overlay", ngImport: i0, template: "<div *ngIf=\"show\" class=\"blackshield\"></div>\r\n\r\n<div *ngIf=\"show\" class=\"d-flex justify-content-center align-items-center\">\r\n <mat-card class=\"overshield\">\r\n <mat-card-content class=\"d-flex justify-content-between align-items-center\">\r\n <span>{{ message || 'CORE.OVERLAY.LOADING' | translate}}</span>\r\n <mat-spinner diameter=\"40\"></mat-spinner>\r\n </mat-card-content>\r\n </mat-card>\r\n</div>\r\n", styles: [".blackshield{position:fixed;display:block!important;top:0;left:0;width:100%;background:black;opacity:.8;height:100vh;z-index:2000000;padding-top:150px}.overshield{position:fixed;width:30%;min-height:6vh;margin-top:250px;z-index:20000000}\n"], components: [{ type: i4.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i5.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }], pipes: { "translate": i2.TranslatePipe } });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: OverlayComponent, decorators: [{
|
|
37
|
+
type: Component,
|
|
38
|
+
args: [{
|
|
39
|
+
selector: 'sc-overlay',
|
|
40
|
+
styleUrls: ['./overlay.component.css'],
|
|
41
|
+
templateUrl: './overlay.component.html'
|
|
42
|
+
}]
|
|
43
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i2.TranslateService }, { type: i3.OverlayService }, { type: i0.ChangeDetectorRef }]; } });
|
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3ZlcmxheS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi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ICAgIHRoaXMuc2hvdyA9IGZhbHNlO1xyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICB0aGlzLm92ZXJsYXlTZXJ2aWNlLnNldE1lc3NhZ2VFdmVudC5zdWJzY3JpYmUoKG1lc3NhZ2U6IHN0cmluZykgPT4ge1xyXG4gICAgICAgICAgICB0aGlzLm1lc3NhZ2UgPSBtZXNzYWdlO1xyXG4gICAgICAgIH0pO1xyXG4gICAgfVxyXG59XHJcbiIsIjxkaXYgKm5nSWY9XCJzaG93XCIgY2xhc3M9XCJibGFja3NoaWVsZFwiPjwvZGl2PlxyXG5cclxuPGRpdiAqbmdJZj1cInNob3dcIiBjbGFzcz1cImQtZmxleCBqdXN0aWZ5LWNvbnRlbnQtY2VudGVyIGFsaWduLWl0ZW1zLWNlbnRlclwiPlxyXG4gIDxtYXQtY2FyZCBjbGFzcz1cIm92ZXJzaGllbGRcIj5cclxuICAgIDxtYXQtY2FyZC1jb250ZW50IGNsYXNzPVwiZC1mbGV4IGp1c3RpZnktY29udGVudC1iZXR3ZWVuIGFsaWduLWl0ZW1zLWNlbnRlclwiPlxyXG4gICAgICA8c3Bhbj57eyBtZXNzYWdlIHx8ICdDT1JFLk9WRVJMQVkuTE9BRElORycgfCB0cmFuc2xhdGV9fTwvc3Bhbj5cclxuICAgICAgPG1hdC1zcGlubmVyIGRpYW1ldGVyPVwiNDBcIj48L21hdC1zcGlubmVyPlxyXG4gICAgPC9tYXQtY2FyZC1jb250ZW50PlxyXG4gIDwvbWF0LWNhcmQ+XHJcbjwvZGl2PlxyXG4iXX0=
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { EventEmitter, Injectable } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class OverlayService {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.showEvent = new EventEmitter();
|
|
6
|
-
this.hideEvent = new EventEmitter();
|
|
7
|
-
this.setMessageEvent = new EventEmitter();
|
|
8
|
-
}
|
|
9
|
-
show(message) {
|
|
10
|
-
this.showEvent.emit(message);
|
|
11
|
-
}
|
|
12
|
-
setMessage(message) {
|
|
13
|
-
this.setMessageEvent.emit(message);
|
|
14
|
-
}
|
|
15
|
-
hide() {
|
|
16
|
-
this.hideEvent.emit();
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
OverlayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: OverlayService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
20
|
-
OverlayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: OverlayService });
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: OverlayService, decorators: [{
|
|
22
|
-
type: Injectable
|
|
23
|
-
}], ctorParameters: function () { return []; } });
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { EventEmitter, Injectable } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class OverlayService {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.showEvent = new EventEmitter();
|
|
6
|
+
this.hideEvent = new EventEmitter();
|
|
7
|
+
this.setMessageEvent = new EventEmitter();
|
|
8
|
+
}
|
|
9
|
+
show(message) {
|
|
10
|
+
this.showEvent.emit(message);
|
|
11
|
+
}
|
|
12
|
+
setMessage(message) {
|
|
13
|
+
this.setMessageEvent.emit(message);
|
|
14
|
+
}
|
|
15
|
+
hide() {
|
|
16
|
+
this.hideEvent.emit();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
OverlayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: OverlayService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
20
|
+
OverlayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: OverlayService });
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: OverlayService, decorators: [{
|
|
22
|
+
type: Injectable
|
|
23
|
+
}], ctorParameters: function () { return []; } });
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3ZlcmxheS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV3LWZyb250LWNvbW1vbi1saWJyYXJ5L3NyYy9saWIvdXRpbC9jb21wb25lbnQvb3ZlcmxheS9vdmVybGF5LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBR3pELE1BQU0sT0FBTyxjQUFjO0lBS3ZCO1FBSk8sY0FBUyxHQUF5QixJQUFJLFlBQVksRUFBVSxDQUFDO1FBQzdELGNBQVMsR0FBc0IsSUFBSSxZQUFZLEVBQU8sQ0FBQztRQUN2RCxvQkFBZSxHQUF5QixJQUFJLFlBQVksRUFBVSxDQUFDO0lBRzFFLENBQUM7SUFFTSxJQUFJLENBQUMsT0FBZ0I7UUFDeEIsSUFBSSxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUM7SUFDakMsQ0FBQztJQUVNLFVBQVUsQ0FBQyxPQUFlO1FBQzdCLElBQUksQ0FBQyxlQUFlLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBQ3ZDLENBQUM7SUFFTSxJQUFJO1FBQ1AsSUFBSSxDQUFDLFNBQVMsQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUMxQixDQUFDOzsyR0FsQlEsY0FBYzsrR0FBZCxjQUFjOzJGQUFkLGNBQWM7a0JBRDFCLFVBQVUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFdmVudEVtaXR0ZXIsIEluamVjdGFibGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuXHJcbkBJbmplY3RhYmxlKClcclxuZXhwb3J0IGNsYXNzIE92ZXJsYXlTZXJ2aWNlIHtcclxuICAgIHB1YmxpYyBzaG93RXZlbnQ6IEV2ZW50RW1pdHRlcjxzdHJpbmc+ID0gbmV3IEV2ZW50RW1pdHRlcjxzdHJpbmc+KCk7XHJcbiAgICBwdWJsaWMgaGlkZUV2ZW50OiBFdmVudEVtaXR0ZXI8YW55PiA9IG5ldyBFdmVudEVtaXR0ZXI8YW55PigpO1xyXG4gICAgcHVibGljIHNldE1lc3NhZ2VFdmVudDogRXZlbnRFbWl0dGVyPHN0cmluZz4gPSBuZXcgRXZlbnRFbWl0dGVyPHN0cmluZz4oKTtcclxuXHJcbiAgICBjb25zdHJ1Y3RvcigpIHtcclxuICAgIH1cclxuXHJcbiAgICBwdWJsaWMgc2hvdyhtZXNzYWdlPzogc3RyaW5nKSB7XHJcbiAgICAgICAgdGhpcy5zaG93RXZlbnQuZW1pdChtZXNzYWdlKTtcclxuICAgIH1cclxuXHJcbiAgICBwdWJsaWMgc2V0TWVzc2FnZShtZXNzYWdlOiBzdHJpbmcpIHtcclxuICAgICAgICB0aGlzLnNldE1lc3NhZ2VFdmVudC5lbWl0KG1lc3NhZ2UpO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBoaWRlKCkge1xyXG4gICAgICAgIHRoaXMuaGlkZUV2ZW50LmVtaXQoKTtcclxuICAgIH1cclxufVxyXG4iXX0=
|
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
import { Component, Inject } from '@angular/core';
|
|
2
|
-
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
3
|
-
import { WEB_CONFIG } from '../../../config';
|
|
4
|
-
import { HttpHeaders } from '@angular/common/http';
|
|
5
|
-
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/material/dialog";
|
|
8
|
-
import * as i2 from "../../../services/jwt-security/aes.service";
|
|
9
|
-
import * as i3 from "@angular/common/http";
|
|
10
|
-
import * as i4 from "@ngx-translate/core";
|
|
11
|
-
import * as i5 from "ngx-cookie-service";
|
|
12
|
-
import * as i6 from "../../../services/api/common-api.service";
|
|
13
|
-
import * as i7 from "@angular/material/form-field";
|
|
14
|
-
import * as i8 from "@angular/material/button";
|
|
15
|
-
import * as i9 from "@angular/material/progress-spinner";
|
|
16
|
-
import * as i10 from "@angular/forms";
|
|
17
|
-
import * as i11 from "@angular/material/input";
|
|
18
|
-
import * as i12 from "@angular/common";
|
|
19
|
-
export class MyDialogPopupLoginComponent {
|
|
20
|
-
constructor(dialogRef, aesUtil, config, http, translateService, cookieService, data, commonApiService) {
|
|
21
|
-
this.dialogRef = dialogRef;
|
|
22
|
-
this.aesUtil = aesUtil;
|
|
23
|
-
this.config = config;
|
|
24
|
-
this.http = http;
|
|
25
|
-
this.translateService = translateService;
|
|
26
|
-
this.cookieService = cookieService;
|
|
27
|
-
this.data = data;
|
|
28
|
-
this.commonApiService = commonApiService;
|
|
29
|
-
this.username = '';
|
|
30
|
-
this.password = '';
|
|
31
|
-
this.loading = false;
|
|
32
|
-
this.errorMessage = '';
|
|
33
|
-
this.apiUrl = '';
|
|
34
|
-
this.userForm = new FormGroup({
|
|
35
|
-
username: new FormControl('', Validators.required),
|
|
36
|
-
password: new FormControl('', Validators.required)
|
|
37
|
-
});
|
|
38
|
-
this.apiUrl = config.api_url + '/authorization-api';
|
|
39
|
-
}
|
|
40
|
-
ngOnInit() {
|
|
41
|
-
}
|
|
42
|
-
onLogin() {
|
|
43
|
-
if (this.userForm.invalid) {
|
|
44
|
-
this.errorMessage = this.translateService.instant('CORE.LOGIN.ACCESS_DENIED');
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
this.loading = true;
|
|
48
|
-
this.errorMessage = '';
|
|
49
|
-
this.login({ username: this.username, password: this.password }, this.translateService.currentLang).subscribe(user => {
|
|
50
|
-
this.loading = false;
|
|
51
|
-
sessionStorage.setItem('loginFlag', 'true');
|
|
52
|
-
sessionStorage.removeItem('authToken');
|
|
53
|
-
sessionStorage.setItem('authToken', user.token);
|
|
54
|
-
this.cookieService.set('auth-mail', this.commonApiService.getUserDataFromToken().email);
|
|
55
|
-
this.dialogRef.close(true);
|
|
56
|
-
}, () => {
|
|
57
|
-
this.loading = false;
|
|
58
|
-
this.errorMessage = this.translateService.instant('CORE.LOGIN.ACCESS_DENIED');
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
login(user, language) {
|
|
62
|
-
let url = this.apiUrl + '/login/findUser';
|
|
63
|
-
if (language) {
|
|
64
|
-
url += '?language=' + language;
|
|
65
|
-
}
|
|
66
|
-
user.password = this.aesUtil.encrypt(user.password);
|
|
67
|
-
return this.http.post(url, user, {
|
|
68
|
-
headers: new HttpHeaders({
|
|
69
|
-
'Content-Type': 'application/json'
|
|
70
|
-
})
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
MyDialogPopupLoginComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: MyDialogPopupLoginComponent, deps: [{ token: i1.MatDialogRef }, { token: i2.AesService }, { token: WEB_CONFIG }, { token: i3.HttpClient }, { token: i4.TranslateService }, { token: i5.CookieService }, { token: MAT_DIALOG_DATA }, { token: i6.CommonApiService }], target: i0.ɵɵFactoryTarget.Component });
|
|
75
|
-
MyDialogPopupLoginComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: MyDialogPopupLoginComponent, selector: "sc-popup-login", ngImport: i0, template: "<h3 mat-dialog-title>Log in</h3>\n\n<mat-dialog-content>\n <form (keyup.enter)=\"onLogin()\" [formGroup]=\"userForm\" class=\"d-flex flex-column\">\n <div class=\"form-group\">\n <mat-label>{{'CORE.LOGIN.USERNAME' | translate }} <span style=\"color:#ef5350; font-weight: bold\">*</span>\n </mat-label>\n <mat-form-field appearance=\"outline\">\n <input [(ngModel)]=\"username\" formControlName=\"username\" matInput/>\n </mat-form-field>\n </div>\n <div class=\"form-group\">\n <mat-label>{{'CORE.LOGIN.PASSWORD' | translate }} <span style=\"color:#ef5350; font-weight: bold\">*</span>\n </mat-label>\n <mat-form-field appearance=\"outline\">\n <input [(ngModel)]=\"password\" formControlName=\"password\" matInput type=\"password\"/>\n </mat-form-field>\n </div>\n </form>\n</mat-dialog-content>\n\n<mat-dialog-actions>\n <button (click)=\"onLogin()\" [disabled]=\"loading\" class=\"primary w-100\" mat-raised-button\n type=\"submit\">{{ 'CORE.LOGIN.SIGN_IN' | translate }}</button>\n <mat-spinner *ngIf=\"loading\" [diameter]=\"30\" class=\"not-so-close-from-button login-spinner\"></mat-spinner>\n <div *ngIf=\"(errorMessage !== null || errorMessage !== '')\" class=\"errorMessage not-so-close-from-button\">\n {{errorMessage}} </div>\n</mat-dialog-actions>\n\n", styles: [".w-100{width:100%}\n"], components: [{ type: i7.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i8.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i9.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i10.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i10.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i10.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i7.MatLabel, selector: "mat-label" }, { type: i10.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i11.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i12.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i4.TranslatePipe } });
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: MyDialogPopupLoginComponent, decorators: [{
|
|
77
|
-
type: Component,
|
|
78
|
-
args: [{
|
|
79
|
-
selector: 'sc-popup-login',
|
|
80
|
-
templateUrl: './popup-login.component.html',
|
|
81
|
-
styleUrls: ['./popup-login.component.css']
|
|
82
|
-
}]
|
|
83
|
-
}], ctorParameters: function () { return [{ type: i1.MatDialogRef }, { type: i2.AesService }, { type: undefined, decorators: [{
|
|
84
|
-
type: Inject,
|
|
85
|
-
args: [WEB_CONFIG]
|
|
86
|
-
}] }, { type: i3.HttpClient }, { type: i4.TranslateService }, { type: i5.CookieService }, { type: undefined, decorators: [{
|
|
87
|
-
type: Inject,
|
|
88
|
-
args: [MAT_DIALOG_DATA]
|
|
89
|
-
}] }, { type: i6.CommonApiService }]; } });
|
|
90
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Inject } from '@angular/core';
|
|
2
|
+
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
3
|
+
import { WEB_CONFIG } from '../../../config';
|
|
4
|
+
import { HttpHeaders } from '@angular/common/http';
|
|
5
|
+
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@angular/material/dialog";
|
|
8
|
+
import * as i2 from "../../../services/jwt-security/aes.service";
|
|
9
|
+
import * as i3 from "@angular/common/http";
|
|
10
|
+
import * as i4 from "@ngx-translate/core";
|
|
11
|
+
import * as i5 from "ngx-cookie-service";
|
|
12
|
+
import * as i6 from "../../../services/api/common-api.service";
|
|
13
|
+
import * as i7 from "@angular/material/form-field";
|
|
14
|
+
import * as i8 from "@angular/material/button";
|
|
15
|
+
import * as i9 from "@angular/material/progress-spinner";
|
|
16
|
+
import * as i10 from "@angular/forms";
|
|
17
|
+
import * as i11 from "@angular/material/input";
|
|
18
|
+
import * as i12 from "@angular/common";
|
|
19
|
+
export class MyDialogPopupLoginComponent {
|
|
20
|
+
constructor(dialogRef, aesUtil, config, http, translateService, cookieService, data, commonApiService) {
|
|
21
|
+
this.dialogRef = dialogRef;
|
|
22
|
+
this.aesUtil = aesUtil;
|
|
23
|
+
this.config = config;
|
|
24
|
+
this.http = http;
|
|
25
|
+
this.translateService = translateService;
|
|
26
|
+
this.cookieService = cookieService;
|
|
27
|
+
this.data = data;
|
|
28
|
+
this.commonApiService = commonApiService;
|
|
29
|
+
this.username = '';
|
|
30
|
+
this.password = '';
|
|
31
|
+
this.loading = false;
|
|
32
|
+
this.errorMessage = '';
|
|
33
|
+
this.apiUrl = '';
|
|
34
|
+
this.userForm = new FormGroup({
|
|
35
|
+
username: new FormControl('', Validators.required),
|
|
36
|
+
password: new FormControl('', Validators.required)
|
|
37
|
+
});
|
|
38
|
+
this.apiUrl = config.api_url + '/authorization-api';
|
|
39
|
+
}
|
|
40
|
+
ngOnInit() {
|
|
41
|
+
}
|
|
42
|
+
onLogin() {
|
|
43
|
+
if (this.userForm.invalid) {
|
|
44
|
+
this.errorMessage = this.translateService.instant('CORE.LOGIN.ACCESS_DENIED');
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
this.loading = true;
|
|
48
|
+
this.errorMessage = '';
|
|
49
|
+
this.login({ username: this.username, password: this.password }, this.translateService.currentLang).subscribe(user => {
|
|
50
|
+
this.loading = false;
|
|
51
|
+
sessionStorage.setItem('loginFlag', 'true');
|
|
52
|
+
sessionStorage.removeItem('authToken');
|
|
53
|
+
sessionStorage.setItem('authToken', user.token);
|
|
54
|
+
this.cookieService.set('auth-mail', this.commonApiService.getUserDataFromToken().email);
|
|
55
|
+
this.dialogRef.close(true);
|
|
56
|
+
}, () => {
|
|
57
|
+
this.loading = false;
|
|
58
|
+
this.errorMessage = this.translateService.instant('CORE.LOGIN.ACCESS_DENIED');
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
login(user, language) {
|
|
62
|
+
let url = this.apiUrl + '/login/findUser';
|
|
63
|
+
if (language) {
|
|
64
|
+
url += '?language=' + language;
|
|
65
|
+
}
|
|
66
|
+
user.password = this.aesUtil.encrypt(user.password);
|
|
67
|
+
return this.http.post(url, user, {
|
|
68
|
+
headers: new HttpHeaders({
|
|
69
|
+
'Content-Type': 'application/json'
|
|
70
|
+
})
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
MyDialogPopupLoginComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: MyDialogPopupLoginComponent, deps: [{ token: i1.MatDialogRef }, { token: i2.AesService }, { token: WEB_CONFIG }, { token: i3.HttpClient }, { token: i4.TranslateService }, { token: i5.CookieService }, { token: MAT_DIALOG_DATA }, { token: i6.CommonApiService }], target: i0.ɵɵFactoryTarget.Component });
|
|
75
|
+
MyDialogPopupLoginComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: MyDialogPopupLoginComponent, selector: "sc-popup-login", ngImport: i0, template: "<h3 mat-dialog-title>Log in</h3>\r\n\r\n<mat-dialog-content>\r\n <form (keyup.enter)=\"onLogin()\" [formGroup]=\"userForm\" class=\"d-flex flex-column\">\r\n <div class=\"form-group\">\r\n <mat-label>{{'CORE.LOGIN.USERNAME' | translate }} <span style=\"color:#ef5350; font-weight: bold\">*</span>\r\n </mat-label>\r\n <mat-form-field appearance=\"outline\">\r\n <input [(ngModel)]=\"username\" formControlName=\"username\" matInput/>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"form-group\">\r\n <mat-label>{{'CORE.LOGIN.PASSWORD' | translate }} <span style=\"color:#ef5350; font-weight: bold\">*</span>\r\n </mat-label>\r\n <mat-form-field appearance=\"outline\">\r\n <input [(ngModel)]=\"password\" formControlName=\"password\" matInput type=\"password\"/>\r\n </mat-form-field>\r\n </div>\r\n </form>\r\n</mat-dialog-content>\r\n\r\n<mat-dialog-actions>\r\n <button (click)=\"onLogin()\" [disabled]=\"loading\" class=\"primary w-100\" mat-raised-button\r\n type=\"submit\">{{ 'CORE.LOGIN.SIGN_IN' | translate }}</button>\r\n <mat-spinner *ngIf=\"loading\" [diameter]=\"30\" class=\"not-so-close-from-button login-spinner\"></mat-spinner>\r\n <div *ngIf=\"(errorMessage !== null || errorMessage !== '')\" class=\"errorMessage not-so-close-from-button\">\r\n {{errorMessage}} </div>\r\n</mat-dialog-actions>\r\n\r\n", styles: [".w-100{width:100%}\n"], components: [{ type: i7.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i8.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i9.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i10.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i10.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i10.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i7.MatLabel, selector: "mat-label" }, { type: i10.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i11.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i12.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i4.TranslatePipe } });
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: MyDialogPopupLoginComponent, decorators: [{
|
|
77
|
+
type: Component,
|
|
78
|
+
args: [{
|
|
79
|
+
selector: 'sc-popup-login',
|
|
80
|
+
templateUrl: './popup-login.component.html',
|
|
81
|
+
styleUrls: ['./popup-login.component.css']
|
|
82
|
+
}]
|
|
83
|
+
}], ctorParameters: function () { return [{ type: i1.MatDialogRef }, { type: i2.AesService }, { type: undefined, decorators: [{
|
|
84
|
+
type: Inject,
|
|
85
|
+
args: [WEB_CONFIG]
|
|
86
|
+
}] }, { type: i3.HttpClient }, { type: i4.TranslateService }, { type: i5.CookieService }, { type: undefined, decorators: [{
|
|
87
|
+
type: Inject,
|
|
88
|
+
args: [MAT_DIALOG_DATA]
|
|
89
|
+
}] }, { type: i6.CommonApiService }]; } });
|
|
90
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wdXAtbG9naW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV3LWZyb250LWNvbW1vbi1saWJyYXJ5L3NyYy9saWIvdXRpbC9jb21wb25lbnQvcG9wdXAvcG9wdXAtbG9naW4vcG9wdXAtbG9naW4uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV3LWZyb250LWNvbW1vbi1saWJyYXJ5L3NyYy9saWIvdXRpbC9jb21wb25lbnQvcG9wdXAvcG9wdXAtbG9naW4vcG9wdXAtbG9naW4uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDMUQsT0FBTyxFQUFFLGVBQWUsRUFBZ0IsTUFBTSwwQkFBMEIsQ0FBQztBQUV6RSxPQUFPLEVBQVUsVUFBVSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDckQsT0FBTyxFQUFjLFdBQVcsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBRy9ELE9BQU8sRUFBRSxXQUFXLEV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gICAgICAgIHR5cGU9XCJzdWJtaXRcIj57eyAnQ09SRS5MT0dJTi5TSUdOX0lOJyB8IHRyYW5zbGF0ZSB9fTwvYnV0dG9uPlxyXG4gIDxtYXQtc3Bpbm5lciAqbmdJZj1cImxvYWRpbmdcIiBbZGlhbWV0ZXJdPVwiMzBcIiBjbGFzcz1cIm5vdC1zby1jbG9zZS1mcm9tLWJ1dHRvbiBsb2dpbi1zcGlubmVyXCI+PC9tYXQtc3Bpbm5lcj5cclxuICA8ZGl2ICpuZ0lmPVwiKGVycm9yTWVzc2FnZSAhPT0gbnVsbCB8fCBlcnJvck1lc3NhZ2UgIT09ICcnKVwiIGNsYXNzPVwiZXJyb3JNZXNzYWdlIG5vdC1zby1jbG9zZS1mcm9tLWJ1dHRvblwiPlxyXG4gICAge3tlcnJvck1lc3NhZ2V9fSA8L2Rpdj5cclxuPC9tYXQtZGlhbG9nLWFjdGlvbnM+XHJcblxyXG4iXX0=
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
// Angular 2
|
|
3
|
-
import { Component, HostListener, Inject } from '@angular/core';
|
|
4
|
-
// Decorators
|
|
5
|
-
import { Theme } from '../../decorators/theme.decorator';
|
|
6
|
-
import { DOCUMENT } from '@angular/common';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@angular/common";
|
|
9
|
-
// Component configuration
|
|
10
|
-
export class SubHeaderComponent {
|
|
11
|
-
constructor(document) {
|
|
12
|
-
this.document = document;
|
|
13
|
-
this.isHide = false;
|
|
14
|
-
this.currentScroll = 0;
|
|
15
|
-
}
|
|
16
|
-
ngOnInit() {
|
|
17
|
-
}
|
|
18
|
-
onWindowScroll() {
|
|
19
|
-
const numberVar = this.document.documentElement.scrollTop;
|
|
20
|
-
if (numberVar > this.currentScroll) {
|
|
21
|
-
this.isHide = true;
|
|
22
|
-
}
|
|
23
|
-
if (numberVar < this.currentScroll) {
|
|
24
|
-
this.isHide = false;
|
|
25
|
-
}
|
|
26
|
-
this.currentScroll = numberVar;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
SubHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: SubHeaderComponent, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
-
SubHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: SubHeaderComponent, selector: "sc-sub-header", host: { listeners: { "window:scroll": "onWindowScroll()" } }, ngImport: i0, template: "<div id=\"template-header-container\">\n <div [ngClass]=\"{'header-hide':isHide}\" id=\"template-header\">\n\n <!-- What you want -->\n <div id=\"left-part\">\n <ng-content select=[left]></ng-content>\n </div>\n\n <!-- What you want -->\n <div id=\"middle-part\">\n <ng-content select=[middle]></ng-content>\n </div>\n\n <!-- What you want -->\n <div id=\"right-part\">\n <ng-content select=[right]></ng-content>\n </div>\n\n </div>\n</div>\n", styles: ["#template-header-container{position:relative;background:#3F3F3F}#template-header{position:fixed;z-index:300;top:20px;width:100%;padding-top:30px!important;background:#3F3F3F;color:#fff;transition:.3s}#left-part{float:left;margin-left:15px}#right-part{float:right;margin-right:230px;height:100%}a{vertical-align:middle;text-align:center;color:#afafaf}.header-hide{top:-25px!important;transition:.3s}.title{color:#fff!important;font-weight:bold!important}.subtitle{color:#b3b3b3!important;cursor:pointer}@media only screen and (min-width: 64.063em){.title{font-size:23px}.subtitle{font-size:16px}.status{color:#65d39b;margin-left:10px;font-size:12px}.codeMilo{color:#b3b3b3;font-size:15px}.dealNumber{color:#b3b3b3;font-weight:bold;font-size:19px}}@media only screen and (min-width: 40.063em) and (max-width: 64em){.title{font-size:15px}.subtitle{font-size:10px}.status{color:#65d39b;margin-left:10px;font-size:10px}#template-header{padding:45px 0 5px 55px}}@media only screen and (max-width: 40em){.title{font-size:10px}.subtitle{font-size:8px}.status{color:#65d39b;margin-left:10px;font-size:8px}#template-header{padding:45px 0 5px}}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
31
|
-
__decorate([
|
|
32
|
-
Theme()
|
|
33
|
-
], SubHeaderComponent.prototype, "theme", void 0);
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: SubHeaderComponent, decorators: [{
|
|
35
|
-
type: Component,
|
|
36
|
-
args: [{
|
|
37
|
-
selector: 'sc-sub-header',
|
|
38
|
-
templateUrl: './sub-header.component.html',
|
|
39
|
-
styleUrls: ['./sub-header.component.css']
|
|
40
|
-
}]
|
|
41
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
42
|
-
type: Inject,
|
|
43
|
-
args: [DOCUMENT]
|
|
44
|
-
}] }]; }, propDecorators: { theme: [], onWindowScroll: [{
|
|
45
|
-
type: HostListener,
|
|
46
|
-
args: ['window:scroll', []]
|
|
47
|
-
}] } });
|
|
48
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
// Angular 2
|
|
3
|
+
import { Component, HostListener, Inject } from '@angular/core';
|
|
4
|
+
// Decorators
|
|
5
|
+
import { Theme } from '../../decorators/theme.decorator';
|
|
6
|
+
import { DOCUMENT } from '@angular/common';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@angular/common";
|
|
9
|
+
// Component configuration
|
|
10
|
+
export class SubHeaderComponent {
|
|
11
|
+
constructor(document) {
|
|
12
|
+
this.document = document;
|
|
13
|
+
this.isHide = false;
|
|
14
|
+
this.currentScroll = 0;
|
|
15
|
+
}
|
|
16
|
+
ngOnInit() {
|
|
17
|
+
}
|
|
18
|
+
onWindowScroll() {
|
|
19
|
+
const numberVar = this.document.documentElement.scrollTop;
|
|
20
|
+
if (numberVar > this.currentScroll) {
|
|
21
|
+
this.isHide = true;
|
|
22
|
+
}
|
|
23
|
+
if (numberVar < this.currentScroll) {
|
|
24
|
+
this.isHide = false;
|
|
25
|
+
}
|
|
26
|
+
this.currentScroll = numberVar;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
SubHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: SubHeaderComponent, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
+
SubHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: SubHeaderComponent, selector: "sc-sub-header", host: { listeners: { "window:scroll": "onWindowScroll()" } }, ngImport: i0, template: "<div id=\"template-header-container\">\r\n <div [ngClass]=\"{'header-hide':isHide}\" id=\"template-header\">\r\n\r\n <!-- What you want -->\r\n <div id=\"left-part\">\r\n <ng-content select=[left]></ng-content>\r\n </div>\r\n\r\n <!-- What you want -->\r\n <div id=\"middle-part\">\r\n <ng-content select=[middle]></ng-content>\r\n </div>\r\n\r\n <!-- What you want -->\r\n <div id=\"right-part\">\r\n <ng-content select=[right]></ng-content>\r\n </div>\r\n\r\n </div>\r\n</div>\r\n", styles: ["#template-header-container{position:relative;background:#3F3F3F}#template-header{position:fixed;z-index:300;top:20px;width:100%;padding-top:30px!important;background:#3F3F3F;color:#fff;transition:.3s}#left-part{float:left;margin-left:15px}#right-part{float:right;margin-right:230px;height:100%}a{vertical-align:middle;text-align:center;color:#afafaf}.header-hide{top:-25px!important;transition:.3s}.title{color:#fff!important;font-weight:bold!important}.subtitle{color:#b3b3b3!important;cursor:pointer}@media only screen and (min-width: 64.063em){.title{font-size:23px}.subtitle{font-size:16px}.status{color:#65d39b;margin-left:10px;font-size:12px}.codeMilo{color:#b3b3b3;font-size:15px}.dealNumber{color:#b3b3b3;font-weight:bold;font-size:19px}}@media only screen and (min-width: 40.063em) and (max-width: 64em){.title{font-size:15px}.subtitle{font-size:10px}.status{color:#65d39b;margin-left:10px;font-size:10px}#template-header{padding:45px 0 5px 55px}}@media only screen and (max-width: 40em){.title{font-size:10px}.subtitle{font-size:8px}.status{color:#65d39b;margin-left:10px;font-size:8px}#template-header{padding:45px 0 5px}}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
31
|
+
__decorate([
|
|
32
|
+
Theme()
|
|
33
|
+
], SubHeaderComponent.prototype, "theme", void 0);
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: SubHeaderComponent, decorators: [{
|
|
35
|
+
type: Component,
|
|
36
|
+
args: [{
|
|
37
|
+
selector: 'sc-sub-header',
|
|
38
|
+
templateUrl: './sub-header.component.html',
|
|
39
|
+
styleUrls: ['./sub-header.component.css']
|
|
40
|
+
}]
|
|
41
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
42
|
+
type: Inject,
|
|
43
|
+
args: [DOCUMENT]
|
|
44
|
+
}] }]; }, propDecorators: { theme: [], onWindowScroll: [{
|
|
45
|
+
type: HostListener,
|
|
46
|
+
args: ['window:scroll', []]
|
|
47
|
+
}] } });
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ViLWhlYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZXctZnJvbnQtY29tbW9uLWxpYnJhcnkvc3JjL2xpYi91dGlsL2NvbXBvbmVudC9zdWItaGVhZGVyL3N1Yi1oZWFkZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV3LWZyb250LWNvbW1vbi1saWJyYXJ5L3NyYy9saWIvdXRpbC9jb21wb25lbnQvc3ViLWhlYWRlci9zdWItaGVhZGVyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwc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XHJcbiAgICA8ZGl2IGlkPVwicmlnaHQtcGFydFwiPlxyXG4gICAgICA8bmctY29udGVudCBzZWxlY3Q9W3JpZ2h0XT48L25nLWNvbnRlbnQ+XHJcbiAgICA8L2Rpdj5cclxuXHJcbiAgPC9kaXY+XHJcbjwvZGl2PlxyXG4iXX0=
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export const WEB_CONFIG = new InjectionToken('WEB_CONFIG');
|
|
3
|
-
export const DEFAULT_WEB_CONFIG = {
|
|
4
|
-
api_url: 'http://localhost:8080',
|
|
5
|
-
env: 'DEV',
|
|
6
|
-
elasticsearch_url: 'https://vpc-unity-search-dev-nm5ydumospctjfaatstfjvoqey.eu-west-1.es.amazonaws.com'
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
export const WEB_CONFIG = new InjectionToken('WEB_CONFIG');
|
|
3
|
+
export const DEFAULT_WEB_CONFIG = {
|
|
4
|
+
api_url: 'http://localhost:8080',
|
|
5
|
+
env: 'DEV',
|
|
6
|
+
elasticsearch_url: 'https://vpc-unity-search-dev-nm5ydumospctjfaatstfjvoqey.eu-west-1.es.amazonaws.com'
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV3LWZyb250LWNvbW1vbi1saWJyYXJ5L3NyYy9saWIvdXRpbC9jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUvQyxNQUFNLENBQUMsTUFBTSxVQUFVLEdBQUcsSUFBSSxjQUFjLENBQVMsWUFBWSxDQUFDLENBQUM7QUFRbkUsTUFBTSxDQUFDLE1BQU0sa0JBQWtCLEdBQVc7SUFDeEMsT0FBTyxFQUFFLHVCQUF1QjtJQUNoQyxHQUFHLEVBQUUsS0FBSztJQUNWLGlCQUFpQixFQUFFLG9GQUFvRjtDQUN4RyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0aW9uVG9rZW4gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuXHJcbmV4cG9ydCBjb25zdCBXRUJfQ09ORklHID0gbmV3IEluamVjdGlvblRva2VuPENvbmZpZz4oJ1dFQl9DT05GSUcnKTtcclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgQ29uZmlnIHtcclxuICBhcGlfdXJsOiBzdHJpbmc7XHJcbiAgZW52OiBzdHJpbmc7XHJcbiAgZWxhc3RpY3NlYXJjaF91cmw/OiBzdHJpbmc7XHJcbn1cclxuXHJcbmV4cG9ydCBjb25zdCBERUZBVUxUX1dFQl9DT05GSUc6IENvbmZpZyA9IHtcclxuICBhcGlfdXJsOiAnaHR0cDovL2xvY2FsaG9zdDo4MDgwJyxcclxuICBlbnY6ICdERVYnLFxyXG4gIGVsYXN0aWNzZWFyY2hfdXJsOiAnaHR0cHM6Ly92cGMtdW5pdHktc2VhcmNoLWRldi1ubTV5ZHVtb3NwY3RqZmFhdHN0Zmp2b3FleS5ldS13ZXN0LTEuZXMuYW1hem9uYXdzLmNvbSdcclxufTtcclxuIl19
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export class PeriodModel {
|
|
2
|
-
constructor(years, months, days) {
|
|
3
|
-
this.years = years;
|
|
4
|
-
this.months = months;
|
|
5
|
-
this.days = days;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export class PeriodModel {
|
|
2
|
+
constructor(years, months, days) {
|
|
3
|
+
this.years = years;
|
|
4
|
+
this.months = months;
|
|
5
|
+
this.days = days;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGVyaW9kTW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZXctZnJvbnQtY29tbW9uLWxpYnJhcnkvc3JjL2xpYi91dGlsL2RhdGUvUGVyaW9kTW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLFdBQVc7SUFFcEIsWUFBbUIsS0FBYSxFQUNiLE1BQWMsRUFDZCxJQUFZO1FBRlosVUFBSyxHQUFMLEtBQUssQ0FBUTtRQUNiLFdBQU0sR0FBTixNQUFNLENBQVE7UUFDZCxTQUFJLEdBQUosSUFBSSxDQUFRO0lBQy9CLENBQUM7Q0FDSiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBQZXJpb2RNb2RlbCB7XHJcblxyXG4gICAgY29uc3RydWN0b3IocHVibGljIHllYXJzOiBudW1iZXIsXHJcbiAgICAgICAgICAgICAgICBwdWJsaWMgbW9udGhzOiBudW1iZXIsXHJcbiAgICAgICAgICAgICAgICBwdWJsaWMgZGF5czogbnVtYmVyKSB7XHJcbiAgICB9XHJcbn1cclxuIl19
|