new-front-common-library 16.1.32-ROY-1 → 16.1.32-ROY-3
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/ng-package.json +10 -0
- package/package.json +2 -19
- package/src/lib/new-front-common-library.component.spec.ts +25 -0
- package/src/lib/new-front-common-library.component.ts +20 -0
- package/src/lib/new-front-common-library.module.ts +26 -0
- package/src/lib/new-front-common-library.service.spec.ts +16 -0
- package/src/lib/new-front-common-library.service.ts +10 -0
- package/src/lib/util/animations/actions.animation.ts +16 -0
- package/src/lib/util/animations/fade.animation.ts +16 -0
- package/src/lib/util/array.service.ts +14 -0
- package/src/lib/util/component/header/header.component.html +389 -0
- package/src/lib/util/component/header/header.component.scss +265 -0
- package/src/lib/util/component/header/header.component.ts +245 -0
- package/src/lib/util/component/header/menu/menu.component.html +52 -0
- package/src/lib/util/component/header/menu/menu.component.scss +127 -0
- package/src/lib/util/component/header/menu/menu.component.spec.ts +21 -0
- package/src/lib/util/component/header/menu/menu.component.ts +94 -0
- package/src/lib/util/component/header/menu/menu.const.ts +546 -0
- package/src/lib/util/component/header/menu/menu.model.ts +26 -0
- package/src/lib/util/component/overlay/overlay.component.css +20 -0
- package/src/lib/util/component/overlay/overlay.component.html +10 -0
- package/src/lib/util/component/overlay/overlay.component.ts +42 -0
- package/src/lib/util/component/overlay/overlay.service.ts +23 -0
- package/src/lib/util/component/popup/popup-login/popup-login.component.css +3 -0
- package/src/lib/util/component/popup/popup-login/popup-login.component.html +29 -0
- package/src/lib/util/component/popup/popup-login/popup-login.component.ts +96 -0
- package/src/lib/util/component/sub-header/sub-header.component.css +136 -0
- package/src/lib/util/component/sub-header/sub-header.component.html +20 -0
- package/src/lib/util/component/sub-header/sub-header.component.spec.ts +25 -0
- package/src/lib/util/component/sub-header/sub-header.component.ts +37 -0
- package/src/lib/util/config.ts +15 -0
- package/src/lib/util/date/PeriodModel.ts +7 -0
- package/src/lib/util/date/date-format-constants.ts +12 -0
- package/src/lib/util/date/date.util.ts +222 -0
- package/src/lib/util/decorators/theme.decorator.ts +24 -0
- package/src/lib/util/decorators/user.decorator.ts +30 -0
- package/src/lib/util/directives/my-number-formatter-directive.ts +32 -0
- package/src/lib/util/directives/show-if-truncated.directive.ts +19 -0
- package/src/lib/util/enums/family.enum.ts +4 -0
- package/src/lib/util/enums/rapid-search-item-type.enum.ts +11 -0
- package/src/lib/util/enums/status-color.enum.ts +9 -0
- package/src/lib/util/event/header/header-events.service.ts +20 -0
- package/src/lib/util/event/storage/local-storage-events.service.ts +15 -0
- package/src/lib/util/event/storage/session-storage-events.service.ts +15 -0
- package/src/lib/util/http/http-params.builder.ts +33 -0
- package/src/lib/util/i18n/de.ts +173 -0
- package/src/lib/util/i18n/en.ts +173 -0
- package/src/lib/util/i18n/fr.ts +174 -0
- package/src/lib/util/i18n/multi-translate-http-loader.ts +31 -0
- package/src/lib/util/models/any-line.model.ts +45 -0
- package/src/lib/util/models/audio-content.model.ts +40 -0
- package/src/lib/util/models/authPermission.model.ts +17 -0
- package/src/lib/util/models/authUser.model.ts +28 -0
- package/src/lib/util/models/basic-hierarchy.model.ts +8 -0
- package/src/lib/util/models/basic.model.ts +31 -0
- package/src/lib/util/models/box-set-item.model.ts +23 -0
- package/src/lib/util/models/commercial/deal-rapid-search-model.ts +10 -0
- package/src/lib/util/models/commercial/invoice-rapid-search-model.ts +25 -0
- package/src/lib/util/models/commercial/work-record-rapid-search-model.ts +28 -0
- package/src/lib/util/models/custom-typings.d.ts +166 -0
- package/src/lib/util/models/disc-program.model.ts +29 -0
- package/src/lib/util/models/disc.model.ts +26 -0
- package/src/lib/util/models/eventType.model.ts +7 -0
- package/src/lib/util/models/expenditure-commitment/purchase-order-file.model.ts +27 -0
- package/src/lib/util/models/expenditure-commitment/purchase-order-rapid-search.model.ts +10 -0
- package/src/lib/util/models/family.model.ts +6 -0
- package/{lib/util/models/index.d.ts → src/lib/util/models/index.ts} +1 -0
- package/src/lib/util/models/lang-line.model.ts +31 -0
- package/src/lib/util/models/legal/contract-rapid-search-model.ts +13 -0
- package/src/lib/util/models/legal/contract-work.model.ts +43 -0
- package/src/lib/util/models/legal/contract-work2.model.ts +39 -0
- package/src/lib/util/models/legal/type-status-rapid-search.model.ts +5 -0
- package/src/lib/util/models/media-line.model.ts +20 -0
- package/src/lib/util/models/menu-language.model.ts +16 -0
- package/src/lib/util/models/milo/territory.model.ts +19 -0
- package/src/lib/util/models/module.model.ts +9 -0
- package/src/lib/util/models/permission.model.ts +21 -0
- package/src/lib/util/models/product-box-set.model.ts +19 -0
- package/src/lib/util/models/product-disc-detail.model.ts +25 -0
- package/src/lib/util/models/product-disc.model.ts +31 -0
- package/src/lib/util/models/product-division.model.ts +35 -0
- package/src/lib/util/models/product-type.model.ts +26 -0
- package/src/lib/util/models/product.model.ts +73 -0
- package/src/lib/util/models/program.model.ts +34 -0
- package/src/lib/util/models/purchase-order/purchase-order.model.ts +61 -0
- package/src/lib/util/models/referential/WorkVersionArticleDto.ts +20 -0
- package/src/lib/util/models/referential/adress-type.model.ts +13 -0
- package/src/lib/util/models/referential/adress.model.ts +31 -0
- package/src/lib/util/models/referential/attached-file.model.ts +21 -0
- package/src/lib/util/models/referential/bank-account.model.ts +25 -0
- package/src/lib/util/models/referential/bank-accounts.model.ts +34 -0
- package/src/lib/util/models/referential/basic-hierarchy.model.ts +8 -0
- package/src/lib/util/models/referential/broadcast-list-item.model.ts +19 -0
- package/src/lib/util/models/referential/color.model.ts +16 -0
- package/src/lib/util/models/referential/company.model.ts +17 -0
- package/src/lib/util/models/referential/content-type.model.ts +22 -0
- package/src/lib/util/models/referential/content.model.ts +26 -0
- package/src/lib/util/models/referential/cost-center-criteria-values.model.ts +17 -0
- package/src/lib/util/models/referential/cost-center-criteria.model.ts +23 -0
- package/src/lib/util/models/referential/cost-center.model.ts +37 -0
- package/src/lib/util/models/referential/coutry.model.ts +17 -0
- package/src/lib/util/models/referential/currency.model.ts +22 -0
- package/src/lib/util/models/referential/editorial-content.model.ts +37 -0
- package/src/lib/util/models/referential/fixing.model.ts +21 -0
- package/src/lib/util/models/referential/flat-media.model.ts +19 -0
- package/src/lib/util/models/referential/format-image.model.ts +17 -0
- package/src/lib/util/models/referential/format-type.model.ts +16 -0
- package/src/lib/util/models/referential/format.model.ts +17 -0
- package/src/lib/util/models/referential/fsk-index.model.ts +36 -0
- package/src/lib/util/models/referential/fsk.model.ts +53 -0
- package/src/lib/util/models/referential/function.model.ts +25 -0
- package/src/lib/util/models/referential/genre.model.ts +17 -0
- package/src/lib/util/models/referential/invoice-product-type.model.ts +24 -0
- package/src/lib/util/models/referential/keywords.model.ts +16 -0
- package/src/lib/util/models/referential/language.model.ts +22 -0
- package/src/lib/util/models/referential/media-filter.model.ts +10 -0
- package/src/lib/util/models/referential/media.model.ts +21 -0
- package/src/lib/util/models/referential/module.model.ts +21 -0
- package/{lib/util/models/referential/parameter.model.d.ts → src/lib/util/models/referential/parameter.model.ts} +2 -0
- package/src/lib/util/models/referential/participant.model.ts +31 -0
- package/src/lib/util/models/referential/person.model.ts +30 -0
- package/src/lib/util/models/referential/po/WorkRestrictionPO.ts +11 -0
- package/src/lib/util/models/referential/project-status.model.ts +16 -0
- package/src/lib/util/models/referential/quota.model.ts +17 -0
- package/src/lib/util/models/referential/referential-entity-state.model.ts +22 -0
- package/src/lib/util/models/referential/referential-value.model.ts +21 -0
- package/src/lib/util/models/referential/referentiel.model.ts +29 -0
- package/src/lib/util/models/referential/restriction.model.ts +26 -0
- package/src/lib/util/models/referential/sap-order.model.ts +48 -0
- package/src/lib/util/models/referential/service-error.model.ts +16 -0
- package/src/lib/util/models/referential/sound.model.ts +16 -0
- package/src/lib/util/models/referential/territories-languages.model.ts +19 -0
- package/src/lib/util/models/referential/territory-filter.model.ts +6 -0
- package/src/lib/util/models/referential/territory.model.ts +27 -0
- package/src/lib/util/models/referential/theme.model.ts +17 -0
- package/src/lib/util/models/referential/third-party-address-rapid-search.model.ts +8 -0
- package/src/lib/util/models/referential/third-party-creation-request.model.ts +59 -0
- package/src/lib/util/models/referential/third-party-module.model.ts +21 -0
- package/src/lib/util/models/referential/third-party-rapid-search.model.ts +10 -0
- package/src/lib/util/models/referential/third-party.model.ts +100 -0
- package/src/lib/util/models/referential/translated-value-model.ts +20 -0
- package/src/lib/util/models/referential/tva.model.ts +17 -0
- package/src/lib/util/models/referential/type-export.model.ts +17 -0
- package/src/lib/util/models/referential/type-tva-company-territory.model.ts +36 -0
- package/src/lib/util/models/referential/type-tva.model.ts +29 -0
- package/{lib/util/models/referential/user-form.model.d.ts → src/lib/util/models/referential/user-form.model.ts} +2 -0
- package/src/lib/util/models/referential/work-addons-model.ts +36 -0
- package/src/lib/util/models/referential/work-appartenance.model.ts +17 -0
- package/src/lib/util/models/referential/work-genre.model.ts +21 -0
- package/src/lib/util/models/referential/work-language.model.ts +21 -0
- package/src/lib/util/models/referential/work-milo.model.ts +65 -0
- package/src/lib/util/models/referential/work-participant.model.ts +28 -0
- package/src/lib/util/models/referential/work-restrictions-model.ts +34 -0
- package/src/lib/util/models/referential/work-theme.model.ts +21 -0
- package/src/lib/util/models/referential/work-title.model.ts +27 -0
- package/src/lib/util/models/referential/work-version-origin.model.ts +20 -0
- package/src/lib/util/models/referential/work-version-rapid-search.model.ts +10 -0
- package/src/lib/util/models/referential/work-versions-used.model.ts +22 -0
- package/src/lib/util/models/referential/work-versions.model.ts +47 -0
- package/src/lib/util/models/referential/work-year-production.model.ts +16 -0
- package/src/lib/util/models/referential/work.model.ts +88 -0
- package/src/lib/util/models/referential/zone.model.ts +16 -0
- package/src/lib/util/models/referentiel.model.ts +29 -0
- package/src/lib/util/models/search-response.model.ts +7 -0
- package/src/lib/util/models/section.model.ts +11 -0
- package/src/lib/util/models/select/options.model.ts +8 -0
- package/src/lib/util/models/select/select.model.ts +4 -0
- package/src/lib/util/models/subsidiary.model.ts +10 -0
- package/src/lib/util/models/subtitle-content.model.ts +39 -0
- package/src/lib/util/models/user-video.model.ts +29 -0
- package/src/lib/util/models/user.model.ts +41 -0
- package/src/lib/util/models/video/product-rapid-search.model.ts +10 -0
- package/src/lib/util/models/video/support-rapid-search.model.ts +7 -0
- package/src/lib/util/models/video-content.model.ts +37 -0
- package/src/lib/util/number.validator.ts +123 -0
- package/src/lib/util/paginator/custom-paginator-configuration.ts +68 -0
- package/src/lib/util/permissions/permissions.service.ts +47 -0
- package/src/lib/util/pipes/capitalizefirst.pipe.ts +39 -0
- package/src/lib/util/pipes/comma-separated-number.pipe.ts +9 -0
- package/src/lib/util/pipes/common-translate.pipe.ts +37 -0
- package/src/lib/util/pipes/display-html.pipe.ts +15 -0
- package/src/lib/util/pipes/display-null.pipe.ts +19 -0
- package/src/lib/util/pipes/format-currency.pipe.ts +26 -0
- package/src/lib/util/pipes/format-duration.pipe.ts +16 -0
- package/src/lib/util/pipes/format-number-input.pipe.ts +19 -0
- package/src/lib/util/pipes/local-date.pipe.ts +29 -0
- package/src/lib/util/pipes/my-number.pipe.ts +51 -0
- package/src/lib/util/pipes/third-party-address-search.pipe.ts +12 -0
- package/src/lib/util/pipes/third-party-address.pipe.ts +13 -0
- package/src/lib/util/pipes/trim-string.pipe.ts +24 -0
- package/src/lib/util/regex/regex.service.ts +94 -0
- package/src/lib/util/regex/regex.spec.ts +45 -0
- package/src/lib/util/services/api/commercial-api.service.ts +23 -0
- package/src/lib/util/services/api/common-api.service.ts +121 -0
- package/src/lib/util/services/api/legal-api.service.ts +27 -0
- package/src/lib/util/services/api/video-api.service.ts +45 -0
- package/src/lib/util/services/auth/auth.service.spec.ts +16 -0
- package/src/lib/util/services/auth/auth.service.ts +14 -0
- package/src/lib/util/services/elasticsearch/elasticsearch.service.ts +179 -0
- package/src/lib/util/services/elasticsearch/subsidiaries.service.ts +48 -0
- package/src/lib/util/services/form-action/form-actions-events.service.ts +25 -0
- package/src/lib/util/services/guard/auth.guard.ts +44 -0
- package/src/lib/util/services/guard/login.guard.ts +26 -0
- package/src/lib/util/services/history/history.service.ts +38 -0
- package/src/lib/util/services/interceptor/auth.interceptor.ts +66 -0
- package/src/lib/util/services/jwt-security/aes.service.ts +48 -0
- package/src/lib/util/services/jwt-security/interceptorhttp.service.ts +98 -0
- package/src/lib/util/services/jwt-security/jwt.helpher.ts +38 -0
- package/src/lib/util/services/storage/local-storage.service.ts +36 -0
- package/src/lib/util/services/storage/session-storage.service.ts +39 -0
- package/src/lib/util/services/translate-language/lang.service.ts +26 -0
- package/src/lib/util/services/user/user-subsidiary.service.spec.ts +207 -0
- package/src/lib/util/services/user/user-subsidiary.service.ts +21 -0
- package/src/lib/util/sort.ts +27 -0
- package/src/lib/util/theme/theme-event.service.ts +15 -0
- package/src/lib/util/toaster/toaster-events.service.ts +32 -0
- package/src/lib/util/util.module.ts +185 -0
- package/{public-api.d.ts → src/public-api.ts} +17 -2
- package/src/test.ts +13 -0
- package/tsconfig.lib.json +19 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/esm2022/lib/util/array.service.mjs +0 -19
- package/esm2022/lib/util/component/header/header.component.mjs +0 -221
- package/esm2022/lib/util/component/header/menu/menu.component.mjs +0 -96
- package/esm2022/lib/util/component/header/menu/menu.const.mjs +0 -544
- package/esm2022/lib/util/component/header/menu/menu.model.mjs +0 -2
- package/esm2022/lib/util/component/overlay/overlay.component.mjs +0 -40
- package/esm2022/lib/util/component/overlay/overlay.service.mjs +0 -24
- package/esm2022/lib/util/component/popup/popup-login/popup-login.component.mjs +0 -90
- package/esm2022/lib/util/component/sub-header/sub-header.component.mjs +0 -44
- package/esm2022/lib/util/config.mjs +0 -8
- package/esm2022/lib/util/date/PeriodModel.mjs +0 -8
- package/esm2022/lib/util/date/date-format-constants.mjs +0 -12
- package/esm2022/lib/util/date/date.util.mjs +0 -218
- package/esm2022/lib/util/decorators/theme.decorator.mjs +0 -22
- package/esm2022/lib/util/decorators/user.decorator.mjs +0 -25
- package/esm2022/lib/util/directives/my-number-formatter-directive.mjs +0 -34
- package/esm2022/lib/util/directives/show-if-truncated.directive.mjs +0 -25
- package/esm2022/lib/util/enums/family.enum.mjs +0 -6
- package/esm2022/lib/util/enums/rapid-search-item-type.enum.mjs +0 -12
- package/esm2022/lib/util/enums/status-color.enum.mjs +0 -11
- package/esm2022/lib/util/event/header/header-events.service.mjs +0 -21
- package/esm2022/lib/util/event/storage/local-storage-events.service.mjs +0 -17
- package/esm2022/lib/util/event/storage/session-storage-events.service.mjs +0 -18
- package/esm2022/lib/util/http/http-params.builder.mjs +0 -27
- package/esm2022/lib/util/i18n/de.mjs +0 -158
- package/esm2022/lib/util/i18n/en.mjs +0 -158
- package/esm2022/lib/util/i18n/fr.mjs +0 -158
- package/esm2022/lib/util/i18n/multi-translate-http-loader.mjs +0 -21
- package/esm2022/lib/util/interfaces/permissions.interface.mjs +0 -2
- package/esm2022/lib/util/models/any-line.model.mjs +0 -37
- package/esm2022/lib/util/models/audio-content.model.mjs +0 -27
- package/esm2022/lib/util/models/authPermission.model.mjs +0 -16
- package/esm2022/lib/util/models/authUser.model.mjs +0 -21
- package/esm2022/lib/util/models/basic.model.mjs +0 -14
- package/esm2022/lib/util/models/box-set-item.model.mjs +0 -19
- package/esm2022/lib/util/models/commercial/deal-rapid-search-model.mjs +0 -3
- package/esm2022/lib/util/models/commercial/invoice-rapid-search-model.mjs +0 -9
- package/esm2022/lib/util/models/commercial/work-record-rapid-search-model.mjs +0 -13
- package/esm2022/lib/util/models/disc-program.model.mjs +0 -26
- package/esm2022/lib/util/models/disc.model.mjs +0 -22
- package/esm2022/lib/util/models/eventType.model.mjs +0 -7
- package/esm2022/lib/util/models/expenditure-commitment/purchase-order-file.model.mjs +0 -22
- package/esm2022/lib/util/models/expenditure-commitment/purchase-order-rapid-search.model.mjs +0 -3
- package/esm2022/lib/util/models/family.model.mjs +0 -7
- package/esm2022/lib/util/models/index.mjs +0 -101
- package/esm2022/lib/util/models/lang-line.model.mjs +0 -27
- package/esm2022/lib/util/models/legal/contract-rapid-search-model.mjs +0 -3
- package/esm2022/lib/util/models/legal/contract-work.model.mjs +0 -23
- package/esm2022/lib/util/models/legal/contract-work2.model.mjs +0 -21
- package/esm2022/lib/util/models/legal/type-status-rapid-search.model.mjs +0 -3
- package/esm2022/lib/util/models/media-line.model.mjs +0 -18
- package/esm2022/lib/util/models/menu-language.model.mjs +0 -15
- package/esm2022/lib/util/models/permission.model.mjs +0 -20
- package/esm2022/lib/util/models/product-box-set.model.mjs +0 -16
- package/esm2022/lib/util/models/product-disc-detail.model.mjs +0 -22
- package/esm2022/lib/util/models/product-disc.model.mjs +0 -27
- package/esm2022/lib/util/models/product-division.model.mjs +0 -29
- package/esm2022/lib/util/models/product-type.model.mjs +0 -22
- package/esm2022/lib/util/models/product.model.mjs +0 -62
- package/esm2022/lib/util/models/program.model.mjs +0 -28
- package/esm2022/lib/util/models/purchase-order/purchase-order.model.mjs +0 -53
- package/esm2022/lib/util/models/referential/WorkVersionArticleDto.mjs +0 -17
- package/esm2022/lib/util/models/referential/adress-type.model.mjs +0 -14
- package/esm2022/lib/util/models/referential/adress.model.mjs +0 -28
- package/esm2022/lib/util/models/referential/attached-file.model.mjs +0 -17
- package/esm2022/lib/util/models/referential/bank-account.model.mjs +0 -24
- package/esm2022/lib/util/models/referential/bank-accounts.model.mjs +0 -31
- package/esm2022/lib/util/models/referential/basic-hierarchy.model.mjs +0 -8
- package/esm2022/lib/util/models/referential/broadcast-list-item.model.mjs +0 -13
- package/esm2022/lib/util/models/referential/color.model.mjs +0 -16
- package/esm2022/lib/util/models/referential/company.model.mjs +0 -16
- package/esm2022/lib/util/models/referential/content-type.model.mjs +0 -17
- package/esm2022/lib/util/models/referential/content.model.mjs +0 -22
- package/esm2022/lib/util/models/referential/cost-center-criteria-values.model.mjs +0 -14
- package/esm2022/lib/util/models/referential/cost-center-criteria.model.mjs +0 -13
- package/esm2022/lib/util/models/referential/cost-center.model.mjs +0 -28
- package/esm2022/lib/util/models/referential/coutry.model.mjs +0 -16
- package/esm2022/lib/util/models/referential/currency.model.mjs +0 -20
- package/esm2022/lib/util/models/referential/editorial-content.model.mjs +0 -18
- package/esm2022/lib/util/models/referential/fixing.model.mjs +0 -16
- package/esm2022/lib/util/models/referential/flat-media.model.mjs +0 -18
- package/esm2022/lib/util/models/referential/format-image.model.mjs +0 -16
- package/esm2022/lib/util/models/referential/format-type.model.mjs +0 -16
- package/esm2022/lib/util/models/referential/format.model.mjs +0 -17
- package/esm2022/lib/util/models/referential/fsk-index.model.mjs +0 -20
- package/esm2022/lib/util/models/referential/fsk.model.mjs +0 -22
- package/esm2022/lib/util/models/referential/function.model.mjs +0 -23
- package/esm2022/lib/util/models/referential/genre.model.mjs +0 -17
- package/esm2022/lib/util/models/referential/invoice-product-type.model.mjs +0 -22
- package/esm2022/lib/util/models/referential/keywords.model.mjs +0 -13
- package/esm2022/lib/util/models/referential/language.model.mjs +0 -18
- package/esm2022/lib/util/models/referential/media-filter.model.mjs +0 -3
- package/esm2022/lib/util/models/referential/media.model.mjs +0 -20
- package/esm2022/lib/util/models/referential/module.model.mjs +0 -20
- package/esm2022/lib/util/models/referential/parameter.model.mjs +0 -2
- package/esm2022/lib/util/models/referential/participant.model.mjs +0 -20
- package/esm2022/lib/util/models/referential/person.model.mjs +0 -23
- package/esm2022/lib/util/models/referential/project-status.model.mjs +0 -16
- package/esm2022/lib/util/models/referential/quota.model.mjs +0 -17
- package/esm2022/lib/util/models/referential/referential-entity-state.model.mjs +0 -16
- package/esm2022/lib/util/models/referential/referential-value.model.mjs +0 -16
- package/esm2022/lib/util/models/referential/referentiel.model.mjs +0 -26
- package/esm2022/lib/util/models/referential/restriction.model.mjs +0 -20
- package/esm2022/lib/util/models/referential/sap-order.model.mjs +0 -20
- package/esm2022/lib/util/models/referential/service-error.model.mjs +0 -15
- package/esm2022/lib/util/models/referential/sound.model.mjs +0 -16
- package/esm2022/lib/util/models/referential/territories-languages.model.mjs +0 -16
- package/esm2022/lib/util/models/referential/territory-filter.model.mjs +0 -3
- package/esm2022/lib/util/models/referential/territory.model.mjs +0 -17
- package/esm2022/lib/util/models/referential/theme.model.mjs +0 -17
- package/esm2022/lib/util/models/referential/third-party-address-rapid-search.model.mjs +0 -3
- package/esm2022/lib/util/models/referential/third-party-creation-request.model.mjs +0 -44
- package/esm2022/lib/util/models/referential/third-party-module.model.mjs +0 -20
- package/esm2022/lib/util/models/referential/third-party-rapid-search.model.mjs +0 -3
- package/esm2022/lib/util/models/referential/third-party.model.mjs +0 -83
- package/esm2022/lib/util/models/referential/translated-value-model.mjs +0 -16
- package/esm2022/lib/util/models/referential/tva.model.mjs +0 -16
- package/esm2022/lib/util/models/referential/type-export.model.mjs +0 -16
- package/esm2022/lib/util/models/referential/type-tva-company-territory.model.mjs +0 -32
- package/esm2022/lib/util/models/referential/type-tva.model.mjs +0 -25
- package/esm2022/lib/util/models/referential/user-form.model.mjs +0 -2
- package/esm2022/lib/util/models/referential/work-addons-model.mjs +0 -16
- package/esm2022/lib/util/models/referential/work-appartenance.model.mjs +0 -17
- package/esm2022/lib/util/models/referential/work-genre.model.mjs +0 -16
- package/esm2022/lib/util/models/referential/work-language.model.mjs +0 -16
- package/esm2022/lib/util/models/referential/work-milo.model.mjs +0 -61
- package/esm2022/lib/util/models/referential/work-participant.model.mjs +0 -21
- package/esm2022/lib/util/models/referential/work-restrictions-model.mjs +0 -13
- package/esm2022/lib/util/models/referential/work-theme.model.mjs +0 -16
- package/esm2022/lib/util/models/referential/work-title.model.mjs +0 -20
- package/esm2022/lib/util/models/referential/work-version-origin.model.mjs +0 -16
- package/esm2022/lib/util/models/referential/work-version-rapid-search.model.mjs +0 -3
- package/esm2022/lib/util/models/referential/work-versions-used.model.mjs +0 -19
- package/esm2022/lib/util/models/referential/work-versions.model.mjs +0 -27
- package/esm2022/lib/util/models/referential/work-year-production.model.mjs +0 -13
- package/esm2022/lib/util/models/referential/work.model.mjs +0 -22
- package/esm2022/lib/util/models/referential/zone.model.mjs +0 -14
- package/esm2022/lib/util/models/referentiel.model.mjs +0 -26
- package/esm2022/lib/util/models/search-response.model.mjs +0 -10
- package/esm2022/lib/util/models/section.model.mjs +0 -8
- package/esm2022/lib/util/models/select/options.model.mjs +0 -8
- package/esm2022/lib/util/models/select/select.model.mjs +0 -7
- package/esm2022/lib/util/models/subsidiary.model.mjs +0 -8
- package/esm2022/lib/util/models/subtitle-content.model.mjs +0 -28
- package/esm2022/lib/util/models/user-video.model.mjs +0 -22
- package/esm2022/lib/util/models/user.model.mjs +0 -35
- package/esm2022/lib/util/models/video/product-rapid-search.model.mjs +0 -3
- package/esm2022/lib/util/models/video/support-rapid-search.model.mjs +0 -3
- package/esm2022/lib/util/models/video-content.model.mjs +0 -18
- package/esm2022/lib/util/number.validator.mjs +0 -129
- package/esm2022/lib/util/paginator/custom-paginator-configuration.mjs +0 -59
- package/esm2022/lib/util/permissions/permissions.service.mjs +0 -49
- package/esm2022/lib/util/pipes/capitalizefirst.pipe.mjs +0 -41
- package/esm2022/lib/util/pipes/comma-separated-number.pipe.mjs +0 -15
- package/esm2022/lib/util/pipes/common-translate.pipe.mjs +0 -38
- package/esm2022/lib/util/pipes/display-html.pipe.mjs +0 -20
- package/esm2022/lib/util/pipes/display-null.pipe.mjs +0 -24
- package/esm2022/lib/util/pipes/format-currency.pipe.mjs +0 -31
- package/esm2022/lib/util/pipes/format-duration.pipe.mjs +0 -23
- package/esm2022/lib/util/pipes/format-number-input.pipe.mjs +0 -22
- package/esm2022/lib/util/pipes/local-date.pipe.mjs +0 -27
- package/esm2022/lib/util/pipes/my-number.pipe.mjs +0 -44
- package/esm2022/lib/util/pipes/third-party-address-search.pipe.mjs +0 -15
- package/esm2022/lib/util/pipes/third-party-address.pipe.mjs +0 -16
- package/esm2022/lib/util/pipes/trim-string.pipe.mjs +0 -25
- package/esm2022/lib/util/regex/regex.service.mjs +0 -94
- package/esm2022/lib/util/services/api/commercial-api.service.mjs +0 -28
- package/esm2022/lib/util/services/api/common-api.service.mjs +0 -98
- package/esm2022/lib/util/services/api/legal-api.service.mjs +0 -32
- package/esm2022/lib/util/services/api/video-api.service.mjs +0 -45
- package/esm2022/lib/util/services/auth/auth.service.mjs +0 -18
- package/esm2022/lib/util/services/elasticsearch/elasticsearch.service.mjs +0 -166
- package/esm2022/lib/util/services/elasticsearch/subsidiaries.service.mjs +0 -48
- package/esm2022/lib/util/services/form-action/form-actions-events.service.mjs +0 -25
- package/esm2022/lib/util/services/guard/auth.guard.mjs +0 -32
- package/esm2022/lib/util/services/guard/login.guard.mjs +0 -23
- package/esm2022/lib/util/services/history/history.service.mjs +0 -39
- package/esm2022/lib/util/services/interceptor/auth.interceptor.mjs +0 -53
- package/esm2022/lib/util/services/jwt-security/aes.service.mjs +0 -34
- package/esm2022/lib/util/services/jwt-security/interceptorhttp.service.mjs +0 -18
- package/esm2022/lib/util/services/jwt-security/jwt.helpher.mjs +0 -34
- package/esm2022/lib/util/services/storage/local-storage.service.mjs +0 -36
- package/esm2022/lib/util/services/storage/session-storage.service.mjs +0 -38
- package/esm2022/lib/util/services/translate-language/lang.service.mjs +0 -31
- package/esm2022/lib/util/services/user/user-subsidiary.service.mjs +0 -22
- package/esm2022/lib/util/sort.mjs +0 -22
- package/esm2022/lib/util/theme/theme-event.service.mjs +0 -17
- package/esm2022/lib/util/toaster/toaster-events.service.mjs +0 -32
- package/esm2022/lib/util/util.module.mjs +0 -281
- package/esm2022/new-front-common-library.mjs +0 -5
- package/esm2022/public-api.mjs +0 -59
- package/fesm2022/new-front-common-library.mjs +0 -5695
- package/fesm2022/new-front-common-library.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/util/array.service.d.ts +0 -7
- package/lib/util/component/header/header.component.d.ts +0 -74
- package/lib/util/component/header/menu/menu.component.d.ts +0 -27
- package/lib/util/component/header/menu/menu.const.d.ts +0 -2
- package/lib/util/component/header/menu/menu.model.d.ts +0 -23
- package/lib/util/component/overlay/overlay.component.d.ts +0 -17
- package/lib/util/component/overlay/overlay.service.d.ts +0 -13
- package/lib/util/component/popup/popup-login/popup-login.component.d.ts +0 -35
- package/lib/util/component/sub-header/sub-header.component.d.ts +0 -13
- package/lib/util/config.d.ts +0 -8
- package/lib/util/date/PeriodModel.d.ts +0 -6
- package/lib/util/date/date-format-constants.d.ts +0 -25
- package/lib/util/date/date.util.d.ts +0 -16
- package/lib/util/decorators/theme.decorator.d.ts +0 -1
- package/lib/util/decorators/user.decorator.d.ts +0 -1
- package/lib/util/directives/my-number-formatter-directive.d.ts +0 -15
- package/lib/util/directives/show-if-truncated.directive.d.ts +0 -11
- package/lib/util/enums/family.enum.d.ts +0 -4
- package/lib/util/enums/rapid-search-item-type.enum.d.ts +0 -10
- package/lib/util/enums/status-color.enum.d.ts +0 -9
- package/lib/util/event/header/header-events.service.d.ts +0 -11
- package/lib/util/event/storage/local-storage-events.service.d.ts +0 -9
- package/lib/util/event/storage/session-storage-events.service.d.ts +0 -10
- package/lib/util/http/http-params.builder.d.ts +0 -9
- package/lib/util/i18n/de.d.ts +0 -141
- package/lib/util/i18n/en.d.ts +0 -141
- package/lib/util/i18n/fr.d.ts +0 -141
- package/lib/util/i18n/multi-translate-http-loader.d.ts +0 -14
- package/lib/util/models/any-line.model.d.ts +0 -24
- package/lib/util/models/audio-content.model.d.ts +0 -27
- package/lib/util/models/authPermission.model.d.ts +0 -7
- package/lib/util/models/authUser.model.d.ts +0 -16
- package/lib/util/models/basic.model.d.ts +0 -11
- package/lib/util/models/box-set-item.model.d.ts +0 -12
- package/lib/util/models/commercial/deal-rapid-search-model.d.ts +0 -10
- package/lib/util/models/commercial/invoice-rapid-search-model.d.ts +0 -18
- package/lib/util/models/commercial/work-record-rapid-search-model.d.ts +0 -21
- package/lib/util/models/disc-program.model.d.ts +0 -9
- package/lib/util/models/disc.model.d.ts +0 -15
- package/lib/util/models/eventType.model.d.ts +0 -5
- package/lib/util/models/expenditure-commitment/purchase-order-file.model.d.ts +0 -8
- package/lib/util/models/expenditure-commitment/purchase-order-rapid-search.model.d.ts +0 -10
- package/lib/util/models/family.model.d.ts +0 -5
- package/lib/util/models/lang-line.model.d.ts +0 -18
- package/lib/util/models/legal/contract-rapid-search-model.d.ts +0 -10
- package/lib/util/models/legal/contract-work.model.d.ts +0 -27
- package/lib/util/models/legal/contract-work2.model.d.ts +0 -23
- package/lib/util/models/legal/type-status-rapid-search.model.d.ts +0 -5
- package/lib/util/models/media-line.model.d.ts +0 -9
- package/lib/util/models/menu-language.model.d.ts +0 -6
- package/lib/util/models/permission.model.d.ts +0 -12
- package/lib/util/models/product-box-set.model.d.ts +0 -8
- package/lib/util/models/product-disc-detail.model.d.ts +0 -14
- package/lib/util/models/product-disc.model.d.ts +0 -11
- package/lib/util/models/product-division.model.d.ts +0 -15
- package/lib/util/models/product-type.model.d.ts +0 -7
- package/lib/util/models/product.model.d.ts +0 -52
- package/lib/util/models/program.model.d.ts +0 -21
- package/lib/util/models/purchase-order/purchase-order.model.d.ts +0 -40
- package/lib/util/models/referential/WorkVersionArticleDto.d.ts +0 -10
- package/lib/util/models/referential/adress-type.model.d.ts +0 -5
- package/lib/util/models/referential/adress.model.d.ts +0 -20
- package/lib/util/models/referential/attached-file.model.d.ts +0 -11
- package/lib/util/models/referential/bank-account.model.d.ts +0 -15
- package/lib/util/models/referential/bank-accounts.model.d.ts +0 -17
- package/lib/util/models/referential/basic-hierarchy.model.d.ts +0 -6
- package/lib/util/models/referential/broadcast-list-item.model.d.ts +0 -8
- package/lib/util/models/referential/color.model.d.ts +0 -6
- package/lib/util/models/referential/company.model.d.ts +0 -7
- package/lib/util/models/referential/content-type.model.d.ts +0 -12
- package/lib/util/models/referential/content.model.d.ts +0 -7
- package/lib/util/models/referential/cost-center-criteria-values.model.d.ts +0 -7
- package/lib/util/models/referential/cost-center-criteria.model.d.ts +0 -12
- package/lib/util/models/referential/cost-center.model.d.ts +0 -18
- package/lib/util/models/referential/coutry.model.d.ts +0 -7
- package/lib/util/models/referential/currency.model.d.ts +0 -11
- package/lib/util/models/referential/editorial-content.model.d.ts +0 -25
- package/lib/util/models/referential/fixing.model.d.ts +0 -10
- package/lib/util/models/referential/flat-media.model.d.ts +0 -9
- package/lib/util/models/referential/format-image.model.d.ts +0 -7
- package/lib/util/models/referential/format-type.model.d.ts +0 -6
- package/lib/util/models/referential/format.model.d.ts +0 -7
- package/lib/util/models/referential/fsk-index.model.d.ts +0 -22
- package/lib/util/models/referential/fsk.model.d.ts +0 -37
- package/lib/util/models/referential/function.model.d.ts +0 -8
- package/lib/util/models/referential/genre.model.d.ts +0 -7
- package/lib/util/models/referential/invoice-product-type.model.d.ts +0 -7
- package/lib/util/models/referential/keywords.model.d.ts +0 -6
- package/lib/util/models/referential/language.model.d.ts +0 -11
- package/lib/util/models/referential/media-filter.model.d.ts +0 -10
- package/lib/util/models/referential/media.model.d.ts +0 -11
- package/lib/util/models/referential/module.model.d.ts +0 -11
- package/lib/util/models/referential/participant.model.d.ts +0 -11
- package/lib/util/models/referential/person.model.d.ts +0 -13
- package/lib/util/models/referential/project-status.model.d.ts +0 -6
- package/lib/util/models/referential/quota.model.d.ts +0 -7
- package/lib/util/models/referential/referential-entity-state.model.d.ts +0 -11
- package/lib/util/models/referential/referential-value.model.d.ts +0 -11
- package/lib/util/models/referential/referentiel.model.d.ts +0 -12
- package/lib/util/models/referential/restriction.model.d.ts +0 -9
- package/lib/util/models/referential/sap-order.model.d.ts +0 -27
- package/lib/util/models/referential/service-error.model.d.ts +0 -13
- package/lib/util/models/referential/sound.model.d.ts +0 -6
- package/lib/util/models/referential/territories-languages.model.d.ts +0 -8
- package/lib/util/models/referential/territory-filter.model.d.ts +0 -6
- package/lib/util/models/referential/territory.model.d.ts +0 -12
- package/lib/util/models/referential/theme.model.d.ts +0 -7
- package/lib/util/models/referential/third-party-address-rapid-search.model.d.ts +0 -8
- package/lib/util/models/referential/third-party-creation-request.model.d.ts +0 -48
- package/lib/util/models/referential/third-party-module.model.d.ts +0 -11
- package/lib/util/models/referential/third-party-rapid-search.model.d.ts +0 -8
- package/lib/util/models/referential/third-party.model.d.ts +0 -45
- package/lib/util/models/referential/translated-value-model.d.ts +0 -10
- package/lib/util/models/referential/tva.model.d.ts +0 -7
- package/lib/util/models/referential/type-export.model.d.ts +0 -7
- package/lib/util/models/referential/type-tva-company-territory.model.d.ts +0 -18
- package/lib/util/models/referential/type-tva.model.d.ts +0 -10
- package/lib/util/models/referential/work-addons-model.d.ts +0 -25
- package/lib/util/models/referential/work-appartenance.model.d.ts +0 -7
- package/lib/util/models/referential/work-genre.model.d.ts +0 -11
- package/lib/util/models/referential/work-language.model.d.ts +0 -11
- package/lib/util/models/referential/work-milo.model.d.ts +0 -46
- package/lib/util/models/referential/work-participant.model.d.ts +0 -10
- package/lib/util/models/referential/work-restrictions-model.d.ts +0 -18
- package/lib/util/models/referential/work-theme.model.d.ts +0 -11
- package/lib/util/models/referential/work-title.model.d.ts +0 -10
- package/lib/util/models/referential/work-version-origin.model.d.ts +0 -10
- package/lib/util/models/referential/work-version-rapid-search.model.d.ts +0 -9
- package/lib/util/models/referential/work-versions-used.model.d.ts +0 -12
- package/lib/util/models/referential/work-versions.model.d.ts +0 -29
- package/lib/util/models/referential/work-year-production.model.d.ts +0 -6
- package/lib/util/models/referential/work.model.d.ts +0 -74
- package/lib/util/models/referential/zone.model.d.ts +0 -6
- package/lib/util/models/referentiel.model.d.ts +0 -12
- package/lib/util/models/search-response.model.d.ts +0 -7
- package/lib/util/models/section.model.d.ts +0 -7
- package/lib/util/models/select/options.model.d.ts +0 -6
- package/lib/util/models/select/select.model.d.ts +0 -5
- package/lib/util/models/subsidiary.model.d.ts +0 -7
- package/lib/util/models/subtitle-content.model.d.ts +0 -26
- package/lib/util/models/user-video.model.d.ts +0 -10
- package/lib/util/models/user.model.d.ts +0 -27
- package/lib/util/models/video/product-rapid-search.model.d.ts +0 -8
- package/lib/util/models/video/support-rapid-search.model.d.ts +0 -6
- package/lib/util/models/video-content.model.d.ts +0 -24
- package/lib/util/number.validator.d.ts +0 -14
- package/lib/util/paginator/custom-paginator-configuration.d.ts +0 -16
- package/lib/util/permissions/permissions.service.d.ts +0 -15
- package/lib/util/pipes/capitalizefirst.pipe.d.ts +0 -8
- package/lib/util/pipes/comma-separated-number.pipe.d.ts +0 -7
- package/lib/util/pipes/common-translate.pipe.d.ts +0 -12
- package/lib/util/pipes/display-html.pipe.d.ts +0 -10
- package/lib/util/pipes/display-null.pipe.d.ts +0 -8
- package/lib/util/pipes/format-currency.pipe.d.ts +0 -10
- package/lib/util/pipes/format-duration.pipe.d.ts +0 -7
- package/lib/util/pipes/format-number-input.pipe.d.ts +0 -7
- package/lib/util/pipes/local-date.pipe.d.ts +0 -9
- package/lib/util/pipes/my-number.pipe.d.ts +0 -11
- package/lib/util/pipes/third-party-address-search.pipe.d.ts +0 -8
- package/lib/util/pipes/third-party-address.pipe.d.ts +0 -8
- package/lib/util/pipes/trim-string.pipe.d.ts +0 -7
- package/lib/util/regex/regex.service.d.ts +0 -12
- package/lib/util/services/api/commercial-api.service.d.ts +0 -12
- package/lib/util/services/api/common-api.service.d.ts +0 -27
- package/lib/util/services/api/legal-api.service.d.ts +0 -15
- package/lib/util/services/api/video-api.service.d.ts +0 -17
- package/lib/util/services/auth/auth.service.d.ts +0 -9
- package/lib/util/services/elasticsearch/elasticsearch.service.d.ts +0 -35
- package/lib/util/services/elasticsearch/subsidiaries.service.d.ts +0 -12
- package/lib/util/services/form-action/form-actions-events.service.d.ts +0 -14
- package/lib/util/services/guard/auth.guard.d.ts +0 -2
- package/lib/util/services/guard/login.guard.d.ts +0 -1
- package/lib/util/services/history/history.service.d.ts +0 -10
- package/lib/util/services/interceptor/auth.interceptor.d.ts +0 -16
- package/lib/util/services/jwt-security/aes.service.d.ts +0 -12
- package/lib/util/services/jwt-security/interceptorhttp.service.d.ts +0 -8
- package/lib/util/services/jwt-security/jwt.helpher.d.ts +0 -4
- package/lib/util/services/storage/local-storage.service.d.ts +0 -13
- package/lib/util/services/storage/session-storage.service.d.ts +0 -13
- package/lib/util/services/translate-language/lang.service.d.ts +0 -14
- package/lib/util/services/user/user-subsidiary.service.d.ts +0 -9
- package/lib/util/sort.d.ts +0 -4
- package/lib/util/theme/theme-event.service.d.ts +0 -9
- package/lib/util/toaster/toaster-events.service.d.ts +0 -15
- package/lib/util/util.module.d.ts +0 -49
- /package/{lib/util/interfaces/permissions.interface.d.ts → src/lib/util/interfaces/permissions.interface.ts} +0 -0
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/new-front-common-library'),
|
|
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
|
+
};
|
package/ng-package.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "new-front-common-library",
|
|
3
|
-
"version": "16.1.32-ROY-
|
|
3
|
+
"version": "16.1.32-ROY-3",
|
|
4
4
|
"Dependencies": {
|
|
5
5
|
"@angular/common": "^16.2.12",
|
|
6
6
|
"@angular/core": "^16.2.12",
|
|
@@ -14,22 +14,5 @@
|
|
|
14
14
|
"crypto-js": "^4.1.1",
|
|
15
15
|
"ngx-cookie-service": "^16.1.0",
|
|
16
16
|
"ngx-permissions": "^16.0.1"
|
|
17
|
-
},
|
|
18
|
-
"module": "fesm2022/new-front-common-library.mjs",
|
|
19
|
-
"typings": "index.d.ts",
|
|
20
|
-
"exports": {
|
|
21
|
-
"./package.json": {
|
|
22
|
-
"default": "./package.json"
|
|
23
|
-
},
|
|
24
|
-
".": {
|
|
25
|
-
"types": "./index.d.ts",
|
|
26
|
-
"esm2022": "./esm2022/new-front-common-library.mjs",
|
|
27
|
-
"esm": "./esm2022/new-front-common-library.mjs",
|
|
28
|
-
"default": "./fesm2022/new-front-common-library.mjs"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"sideEffects": false,
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"tslib": "^2.3.0"
|
|
34
17
|
}
|
|
35
|
-
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { NewFrontCommonLibraryComponent } from './new-front-common-library.component';
|
|
4
|
+
|
|
5
|
+
describe('NewFrontCommonLibraryComponent', () => {
|
|
6
|
+
let component: NewFrontCommonLibraryComponent;
|
|
7
|
+
let fixture: ComponentFixture<NewFrontCommonLibraryComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [NewFrontCommonLibraryComponent]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(NewFrontCommonLibraryComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'lib-new-front-common-library',
|
|
5
|
+
template: `
|
|
6
|
+
<p>
|
|
7
|
+
new-front-common-library works!
|
|
8
|
+
</p>
|
|
9
|
+
`,
|
|
10
|
+
styles: []
|
|
11
|
+
})
|
|
12
|
+
export class NewFrontCommonLibraryComponent implements OnInit {
|
|
13
|
+
|
|
14
|
+
constructor() {
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
ngOnInit(): void {
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { NewFrontCommonLibraryComponent } from './new-front-common-library.component';
|
|
3
|
+
import { LangService } from "./util/services/translate-language/lang.service";
|
|
4
|
+
import { TranslateService } from "@ngx-translate/core";
|
|
5
|
+
import { LocalStorageService } from "./util/services/storage/local-storage.service";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@NgModule({
|
|
9
|
+
declarations: [
|
|
10
|
+
NewFrontCommonLibraryComponent
|
|
11
|
+
],
|
|
12
|
+
imports: [],
|
|
13
|
+
exports: [
|
|
14
|
+
NewFrontCommonLibraryComponent
|
|
15
|
+
]
|
|
16
|
+
})
|
|
17
|
+
export class NewFrontCommonLibraryModule {
|
|
18
|
+
constructor(private langEventsService: LangService,
|
|
19
|
+
private translate: TranslateService,
|
|
20
|
+
private localStorage: LocalStorageService
|
|
21
|
+
) {
|
|
22
|
+
this.langEventsService.switchLangEmitter.subscribe(() => {
|
|
23
|
+
this.translate.use(this.localStorage.get('lang'));
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { NewFrontCommonLibraryService } from './new-front-common-library.service';
|
|
4
|
+
|
|
5
|
+
describe('NewFrontCommonLibraryService', () => {
|
|
6
|
+
let service: NewFrontCommonLibraryService;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
TestBed.configureTestingModule({});
|
|
10
|
+
service = TestBed.inject(NewFrontCommonLibraryService);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
it('should be created', () => {
|
|
14
|
+
expect(service).toBeTruthy();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// import the required animation functions from the angular animations module
|
|
2
|
+
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
3
|
+
|
|
4
|
+
export const actionsAnimation =
|
|
5
|
+
trigger('fadeAnimation', [
|
|
6
|
+
state('void', style({position: 'absolute', 'margin-right': '-100px'})),
|
|
7
|
+
state('*', style({position: 'absolute', 'margin-right': '100px'})),
|
|
8
|
+
transition(':enter', [ // before 2.1: transition('void => *', [
|
|
9
|
+
style({opacity: 0}),
|
|
10
|
+
animate('0.2s ease-in-out', style({opacity: 1}))
|
|
11
|
+
]),
|
|
12
|
+
transition(':leave', [ // before 2.1: transition('* => void', [
|
|
13
|
+
style({opacity: 1}),
|
|
14
|
+
animate('0.2s ease-in-out', style({opacity: 0}))
|
|
15
|
+
])
|
|
16
|
+
]);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// import the required animation functions from the angular animations module
|
|
2
|
+
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
3
|
+
|
|
4
|
+
export const fadeAnimation =
|
|
5
|
+
trigger('fadeAnimation', [
|
|
6
|
+
state('void', style({position: 'absolute', width: '100%'})),
|
|
7
|
+
state('*', style({position: 'absolute', width: '100%'})),
|
|
8
|
+
transition(':enter', [ // before 2.1: transition('void => *', [
|
|
9
|
+
style({opacity: 0}),
|
|
10
|
+
animate('0.2s ease-in-out', style({opacity: 1}))
|
|
11
|
+
]),
|
|
12
|
+
transition(':leave', [ // before 2.1: transition('* => void', [
|
|
13
|
+
style({opacity: 1}),
|
|
14
|
+
animate('0.2s ease-in-out', style({opacity: 0}))
|
|
15
|
+
])
|
|
16
|
+
]);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Injectable()
|
|
4
|
+
export class ArrayService {
|
|
5
|
+
|
|
6
|
+
/** Check if a value is in array */
|
|
7
|
+
public inArray(value: any, array: any): boolean {
|
|
8
|
+
if (value === null || array === null) {
|
|
9
|
+
return false;
|
|
10
|
+
} else {
|
|
11
|
+
return array.indexOf(value) !== -1;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
<mat-toolbar class="d-flex align-items-center toolbar-header toolbar-padding">
|
|
2
|
+
<span class="d-flex align-items-end">
|
|
3
|
+
<a
|
|
4
|
+
[href]="env === 'prod' ? 'https://unity.studiocanal.com/dashboard' : (env === 'sbx' ? 'https://unity-sbx.cplus/dashboard' : 'https://unity-' + env + '.studiocanal.com/dashboard')">
|
|
5
|
+
<img class="logo-unity" src="./assets/img/unity_logo_48x48.png">
|
|
6
|
+
</a>
|
|
7
|
+
<span *ngIf="env != 'prod'" [attr.id]="'env-' + env" class="env">{{ env }}</span>
|
|
8
|
+
</span>
|
|
9
|
+
|
|
10
|
+
<sc-menu [lang]="lang" (navigate)="navigate($event.module, $event.route, $event.queryParams)"
|
|
11
|
+
(redirect)="redirect($event.route)" class="menu-header" />
|
|
12
|
+
|
|
13
|
+
<div class="global-search">
|
|
14
|
+
<mat-icon class="header-icon">search</mat-icon>
|
|
15
|
+
<span class="global-search-separator"></span>
|
|
16
|
+
<mat-form-field class="max-width-100" subscriptSizing="dynamic">
|
|
17
|
+
<input [formControl]="formControlSearch"
|
|
18
|
+
[matAutocomplete]="autoSearch"
|
|
19
|
+
class="global-search-input max-width-85"
|
|
20
|
+
matInput
|
|
21
|
+
placeholder="search ..." />
|
|
22
|
+
|
|
23
|
+
<button (click)="navigate(null, '/advanced-search')"
|
|
24
|
+
matSuffix
|
|
25
|
+
class="btn advanced-button" mat-raised-button>
|
|
26
|
+
<mat-icon>flash_on</mat-icon>
|
|
27
|
+
{{ 'COMMON.HEADER.GLOBAL_SEARCH.ADVANCED' | commonTranslate: lang }}
|
|
28
|
+
</button>
|
|
29
|
+
|
|
30
|
+
<mat-autocomplete #autoSearch="matAutocomplete" class="mat-autocomplete-global-search" panelWidth="54vw">
|
|
31
|
+
<mat-option (onSelectionChange)="onSelectSearch($event, doc)"
|
|
32
|
+
*ngFor="let doc of documents$ | async"
|
|
33
|
+
class="mat-option-global-search">
|
|
34
|
+
<!--PURCHASE_ORDER-->
|
|
35
|
+
<div *ngIf="doc.docType === RapidSearchItemType.PURCHASE_ORDER" class="d-flex align-items-center">
|
|
36
|
+
<div class="max-width-5">
|
|
37
|
+
<span class="material-icons-outlined rapid-search-type-icon">receipt_long</span>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="d-flex max-width-95">
|
|
40
|
+
<div class="d-flex flex-column max-width-70">
|
|
41
|
+
<span
|
|
42
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.PURCHASE_ORDER' | commonTranslate: lang }}</span>
|
|
43
|
+
<span>{{ doc.poNumber }}
|
|
44
|
+
- {{ doc.totalAmount | currency: doc.currencyCode:'symbol':undefined:'fr-FR' }}</span>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="d-flex flex-column max-width-15">
|
|
47
|
+
<span
|
|
48
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.BASKET_NUMBER' | commonTranslate: lang }}</span>
|
|
49
|
+
<span>{{ doc?.basketNumber ? doc.basketNumber : '-' }}</span>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="d-flex flex-column max-width-15">
|
|
52
|
+
<span
|
|
53
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.EAN' | commonTranslate: lang }}</span>
|
|
54
|
+
<span>{{ doc?.ean ? doc.ean : '-' }}</span>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
<!--PRODUCT-->
|
|
59
|
+
<div *ngIf="doc.docType === RapidSearchItemType.PRODUCT" class="d-flex align-items-center">
|
|
60
|
+
<div class="max-width-5">
|
|
61
|
+
<span class="material-icons-outlined rapid-search-type-icon">movie</span>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="d-flex max-width-95">
|
|
64
|
+
<div class="ellipsis d-flex flex-column max-width-60">
|
|
65
|
+
<span
|
|
66
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.PRODUCT' | commonTranslate: lang }}</span>
|
|
67
|
+
<span class="ellipsis">{{ doc.title }}</span>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="d-flex flex-column max-width-10">
|
|
70
|
+
<span
|
|
71
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.SUPPORT' | commonTranslate: lang }}</span>
|
|
72
|
+
<span>{{ doc.support[labelLang] }}</span>
|
|
73
|
+
</div>
|
|
74
|
+
<div class="d-flex flex-column max-width-15">
|
|
75
|
+
<span
|
|
76
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.EAN' | commonTranslate: lang }}</span>
|
|
77
|
+
<span>{{ doc.ean }}</span>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="d-flex flex-column max-width-15">
|
|
80
|
+
<span
|
|
81
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.RELEASE_DATE' | commonTranslate: lang }}</span>
|
|
82
|
+
<span>{{ doc?.releaseDate ? doc.releaseDate : '-' }}</span>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
<!--WORK-->
|
|
87
|
+
<div *ngIf="doc.docType === RapidSearchItemType.WORK_VERSION" class="d-flex align-items-center">
|
|
88
|
+
<div class="max-width-5">
|
|
89
|
+
<span class="material-icons-outlined rapid-search-type-icon">theaters</span>
|
|
90
|
+
</div>
|
|
91
|
+
<div class="d-flex max-width-95">
|
|
92
|
+
<div class="d-flex flex-column max-width-75 ellipsis">
|
|
93
|
+
<span
|
|
94
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.WORK' | commonTranslate: lang }}</span>
|
|
95
|
+
<span class="ellipsis">{{ doc.title }} ({{ doc.codeIso }})</span>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="d-flex flex-column max-width-10">
|
|
98
|
+
<span
|
|
99
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.MILO_CODE' | commonTranslate: lang }}</span>
|
|
100
|
+
<span>{{ doc.miloCode }}</span>
|
|
101
|
+
</div>
|
|
102
|
+
<div class="d-flex flex-column max-width-15">
|
|
103
|
+
<span
|
|
104
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.PRODUCTION_YEAR' | commonTranslate: lang }}</span>
|
|
105
|
+
<span>{{ doc.yearOfProduction }}</span>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
<!--DEAL-->
|
|
110
|
+
<div *ngIf="doc.docType === RapidSearchItemType.DEAL" class="d-flex align-items-center">
|
|
111
|
+
<div class="max-width-5">
|
|
112
|
+
<span class="material-icons-outlined rapid-search-type-icon">local_offer</span>
|
|
113
|
+
</div>
|
|
114
|
+
<div class="d-flex max-width-95">
|
|
115
|
+
<div class="d-flex flex-column max-width-70 ellipsis">
|
|
116
|
+
<span
|
|
117
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.DEAL' | commonTranslate: lang }}</span>
|
|
118
|
+
<span class="ellipsis">{{ doc.dealNumber }} - {{ doc.thirdPartyClientName }}
|
|
119
|
+
({{ doc.thirdPartyClientSap }})</span>
|
|
120
|
+
</div>
|
|
121
|
+
<div class="d-flex flex-column max-width-15">
|
|
122
|
+
<span class="auto-complete-label">{{
|
|
123
|
+
'COMMON.HEADER.GLOBAL_SEARCH.ITEM.AMOUNT' | commonTranslate: lang
|
|
124
|
+
}}</span>
|
|
125
|
+
<span>{{ doc.calculatedAmount | currency: doc.currencyCode:'symbol' }}</span>
|
|
126
|
+
</div>
|
|
127
|
+
<div class="d-flex flex-column max-width-15">
|
|
128
|
+
<span class="auto-complete-label">{{
|
|
129
|
+
'COMMON.HEADER.GLOBAL_SEARCH.ITEM.VALIDATION_DATE' | commonTranslate: lang
|
|
130
|
+
}}</span>
|
|
131
|
+
<span>{{ doc.validationDate }}</span>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
<!--WORK_RECORD-->
|
|
136
|
+
<div *ngIf="doc.docType === RapidSearchItemType.WORK_RECORD" class="d-flex align-items-center">
|
|
137
|
+
<div class="max-width-5">
|
|
138
|
+
<span class="material-icons-outlined rapid-search-type-icon">assignment</span>
|
|
139
|
+
</div>
|
|
140
|
+
<div class="d-flex max-width-95">
|
|
141
|
+
<div class="d-flex flex-column max-width-10 ellipsis">
|
|
142
|
+
<span
|
|
143
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.WORK_RECORD' | commonTranslate: lang }}</span>
|
|
144
|
+
<span class="ellipsis">{{ doc.id }}</span>
|
|
145
|
+
</div>
|
|
146
|
+
<div class="d-flex flex-column max-width-10 ellipsis">
|
|
147
|
+
<span
|
|
148
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.DEAL' | commonTranslate: lang }}</span>
|
|
149
|
+
<span class="ellipsis">{{ doc.dealNumber }}</span>
|
|
150
|
+
</div>
|
|
151
|
+
<div class="d-flex flex-column max-width-30 ellipsis">
|
|
152
|
+
<span
|
|
153
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.CLIENT' | commonTranslate: lang }}</span>
|
|
154
|
+
<span class="ellipsis">{{ doc.thirdPartyClientName }}</span>
|
|
155
|
+
</div>
|
|
156
|
+
<div class="d-flex flex-column max-width-35">
|
|
157
|
+
<span class="auto-complete-label">
|
|
158
|
+
{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.TITLE' | commonTranslate: lang }}
|
|
159
|
+
({{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.MILO_CODE' | commonTranslate: lang }})
|
|
160
|
+
</span>
|
|
161
|
+
<span class="ellipsis">{{ doc.getTitle(lang) }} ({{ doc.miloCode }})</span>
|
|
162
|
+
</div>
|
|
163
|
+
<div class="d-flex flex-column max-width-15">
|
|
164
|
+
<span class="auto-complete-label">{{
|
|
165
|
+
'COMMON.HEADER.GLOBAL_SEARCH.ITEM.AMOUNT' | commonTranslate: lang
|
|
166
|
+
}}</span>
|
|
167
|
+
<span>{{ doc.amount | currency: doc.currencyCode:'symbol' }}</span>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
<!--INVOICE-->
|
|
172
|
+
<div *ngIf="doc.docType === RapidSearchItemType.INVOICE" class="d-flex align-items-center">
|
|
173
|
+
<div class="max-width-5">
|
|
174
|
+
<span class="material-icons-outlined rapid-search-type-icon">receipt</span>
|
|
175
|
+
</div>
|
|
176
|
+
<div class="d-flex max-width-95">
|
|
177
|
+
<div class="d-flex flex-column max-width-15 ellipsis">
|
|
178
|
+
<span
|
|
179
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.INVOICE' | commonTranslate: lang }}</span>
|
|
180
|
+
<span class="ellipsis">{{ doc.number }}</span>
|
|
181
|
+
</div>
|
|
182
|
+
<div class="d-flex flex-column max-width-15 ellipsis">
|
|
183
|
+
<span
|
|
184
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.DEAL' | commonTranslate: lang }}</span>
|
|
185
|
+
<span class="ellipsis">{{ doc.dealNumber }}</span>
|
|
186
|
+
</div>
|
|
187
|
+
<div class="d-flex flex-column max-width-20 ellipsis">
|
|
188
|
+
<span
|
|
189
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.CLIENT' | commonTranslate: lang }}</span>
|
|
190
|
+
<span class="ellipsis">{{ doc.thirdPartyClientName }}</span>
|
|
191
|
+
</div>
|
|
192
|
+
<div class="d-flex flex-column max-width-35">
|
|
193
|
+
<span class="auto-complete-label">
|
|
194
|
+
{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.TITLE' | commonTranslate: lang }}
|
|
195
|
+
({{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.MILO_CODE' | commonTranslate: lang }})
|
|
196
|
+
</span>
|
|
197
|
+
<span class="ellipsis">{{ doc.getTitle(lang) }} ({{ doc.miloCode }})</span>
|
|
198
|
+
</div>
|
|
199
|
+
<div class="d-flex flex-column max-width-15">
|
|
200
|
+
<span class="auto-complete-label">{{
|
|
201
|
+
'COMMON.HEADER.GLOBAL_SEARCH.ITEM.AMOUNT' | commonTranslate: lang
|
|
202
|
+
}}</span>
|
|
203
|
+
<span>{{ doc.amount | currency: doc.currencyCode:'symbol' }}</span>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
207
|
+
<!--THIRD_PARTY-->
|
|
208
|
+
<div *ngIf="doc.docType === RapidSearchItemType.THIRD_PARTY" class="d-flex align-items-center">
|
|
209
|
+
<div class="max-width-5">
|
|
210
|
+
<span class="material-icons-outlined rapid-search-type-icon">person</span>
|
|
211
|
+
</div>
|
|
212
|
+
<div class="d-flex max-width-95">
|
|
213
|
+
<div class="d-flex flex-column max-width-85 ellipsis">
|
|
214
|
+
<span
|
|
215
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.THIRD_PARTY' | commonTranslate: lang }}</span>
|
|
216
|
+
<span class="ellipsis">{{ doc.companyOrPersonName }} ({{ doc.address | thirdPartyAddressSearch: lang }}
|
|
217
|
+
)</span>
|
|
218
|
+
</div>
|
|
219
|
+
<div class="d-flex flex-column max-width-15">
|
|
220
|
+
<span
|
|
221
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.CODE' | commonTranslate: lang }}</span>
|
|
222
|
+
<span>{{ doc.code }}</span>
|
|
223
|
+
</div>
|
|
224
|
+
</div>
|
|
225
|
+
</div>
|
|
226
|
+
<!--CONTRACT-->
|
|
227
|
+
<div *ngIf="doc.docType === RapidSearchItemType.CONTRACT" class="d-flex align-items-center">
|
|
228
|
+
<div class="max-width-5">
|
|
229
|
+
<span *ngIf="getContractType(doc.type.labelEn) === 'cess'"
|
|
230
|
+
class="material-icons-outlined rapid-search-type-icon">receipt</span>
|
|
231
|
+
<span *ngIf="getContractType(doc.type.labelEn) === 'acq'"
|
|
232
|
+
class="material-icons-outlined rapid-search-type-icon">shop_two</span>
|
|
233
|
+
<span *ngIf="getContractType(doc.type.labelEn) === 'auth'"
|
|
234
|
+
class="material-icons-outlined rapid-search-type-icon">account_circle</span>
|
|
235
|
+
</div>
|
|
236
|
+
<div class="d-flex max-width-95">
|
|
237
|
+
<div class="d-flex flex-column max-width-10 ellipsis">
|
|
238
|
+
<span
|
|
239
|
+
class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.CONTRACT' | commonTranslate: lang }}</span>
|
|
240
|
+
<span class="ellipsis">{{ doc.lisaId }} </span>
|
|
241
|
+
</div>
|
|
242
|
+
<div class="d-flex flex-column max-width-10">
|
|
243
|
+
<span class="auto-complete-label">{{
|
|
244
|
+
'COMMON.HEADER.GLOBAL_SEARCH.ITEM.TYPE' | commonTranslate: lang
|
|
245
|
+
}}</span>
|
|
246
|
+
<span>{{ doc.type[labelLang] }}</span>
|
|
247
|
+
</div>
|
|
248
|
+
<div class="d-flex flex-column max-width-30">
|
|
249
|
+
<span class="auto-complete-label">{{
|
|
250
|
+
'COMMON.HEADER.GLOBAL_SEARCH.ITEM.STATUS' | commonTranslate: lang
|
|
251
|
+
}}</span>
|
|
252
|
+
<span>{{ doc.status[labelLang] }}</span>
|
|
253
|
+
</div>
|
|
254
|
+
<div *ngIf="doc.type.labelEn !== 'Sale'" class="d-flex flex-column max-width-40 ellipsis">
|
|
255
|
+
<span class="auto-complete-label">{{
|
|
256
|
+
'COMMON.HEADER.GLOBAL_SEARCH.ITEM.LICENSOR' | commonTranslate: lang
|
|
257
|
+
}}</span>
|
|
258
|
+
<span>{{ doc.licensor ? doc.licensor : '-' }}</span>
|
|
259
|
+
</div>
|
|
260
|
+
<div *ngIf="doc.type.labelEn === 'Sale'" class="d-flex flex-column max-width-40 ellipsis">
|
|
261
|
+
<span class="auto-complete-label">{{
|
|
262
|
+
'COMMON.HEADER.GLOBAL_SEARCH.ITEM.CUSTOMER' | commonTranslate: lang
|
|
263
|
+
}}</span>
|
|
264
|
+
<span>{{ doc.customer ? doc.customer : '-' }}</span>
|
|
265
|
+
</div>
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
<!--CONTRACT ROYALTY-->
|
|
269
|
+
<div *ngIf="doc.docType === RapidSearchItemType.ROYALTY_CONTRACT" class="d-flex align-items-center">
|
|
270
|
+
<div class="max-width-5">
|
|
271
|
+
<span class="material-icons-outlined rapid-search-type-icon">savings</span>
|
|
272
|
+
</div>
|
|
273
|
+
<div class="d-flex max-width-95">
|
|
274
|
+
<div class="d-flex flex-column max-width-20 ellipsis">
|
|
275
|
+
<span class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.CONTRACT' | commonTranslate: lang }}</span>
|
|
276
|
+
<span class="ellipsis">{{ doc.contractNumber }}</span>
|
|
277
|
+
</div>
|
|
278
|
+
<div class="d-flex flex-column max-width-80 ellipsis">
|
|
279
|
+
<span class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.TITLES' | commonTranslate: lang }}</span>
|
|
280
|
+
<span class="ellipsis">{{ doc.works.join(', ') }}</span>
|
|
281
|
+
</div>
|
|
282
|
+
</div>
|
|
283
|
+
</div>
|
|
284
|
+
</mat-option>
|
|
285
|
+
</mat-autocomplete>
|
|
286
|
+
|
|
287
|
+
</mat-form-field>
|
|
288
|
+
</div>
|
|
289
|
+
|
|
290
|
+
<div *ngIf="user && user.secondary" class="connected-as d-flex justify-content-between align-items-center">
|
|
291
|
+
<span style="margin-right: 10px">
|
|
292
|
+
{{ 'COMMON.HEADER.CONNECTED_AS' | commonTranslate: lang }} {{ user.login + ' - ' + user.firstName + ' ' + user.name }}
|
|
293
|
+
</span>
|
|
294
|
+
|
|
295
|
+
<button (click)="stopIdentityTheft()" *ngIf="user.secondary" color="warn" mat-raised-button>
|
|
296
|
+
{{ 'CORE.STOP' | commonTranslate: lang }}
|
|
297
|
+
</button>
|
|
298
|
+
</div>
|
|
299
|
+
|
|
300
|
+
<span (click)="getHistory()" [matMenuTriggerFor]="menuHistory"
|
|
301
|
+
class="material-icons header-icon max-width-5">history</span>
|
|
302
|
+
<mat-menu #menuHistory="matMenu" class="action-menu">
|
|
303
|
+
<ng-container *ngFor="let history of historyList" [ngSwitch]="history.type">
|
|
304
|
+
<button (click)="navigate('expenditure-commitment', '/purchase-orders/' + history.id)" *ngSwitchCase="'PRODUCT'"
|
|
305
|
+
mat-menu-item>
|
|
306
|
+
<mat-icon class="material-icons-outlined">theaters</mat-icon>
|
|
307
|
+
{{ 'COMMON.HEADER.HISTORY.PRODUCT' | commonTranslate : lang }}{{ history.type }} {{ history.ref }}
|
|
308
|
+
</button>
|
|
309
|
+
<button (click)="navigate('expenditure-commitment', '/purchase-orders/' + history.id)" *ngSwitchCase="'PO'"
|
|
310
|
+
mat-menu-item>
|
|
311
|
+
<mat-icon class="material-icons-outlined">receipt_long</mat-icon>
|
|
312
|
+
{{ 'COMMON.HEADER.HISTORY.PO' | commonTranslate : lang }} {{ history.ref }}
|
|
313
|
+
</button>
|
|
314
|
+
<button (click)="navigate('commercial', '/deal/consult/' + history.id)" *ngSwitchCase="'DEAL'"
|
|
315
|
+
mat-menu-item>
|
|
316
|
+
<mat-icon class="material-icons-outlined">local_offer</mat-icon>
|
|
317
|
+
{{ 'COMMON.HEADER.HISTORY.DEAL' | commonTranslate : lang }} {{ history.ref }}
|
|
318
|
+
</button>
|
|
319
|
+
<button (click)="navigate('commercial', '/work-record/consult/'+ history.id +'/general')" *ngSwitchCase="'WORK'"
|
|
320
|
+
mat-menu-item>
|
|
321
|
+
<mat-icon class="material-icons-outlined">assignment</mat-icon>
|
|
322
|
+
{{ 'COMMON.HEADER.HISTORY.WORK_RECORD' | commonTranslate : lang }} {{ history.ref }}
|
|
323
|
+
</button>
|
|
324
|
+
<button (click)="navigate('legal', '/contracts-details/acq/' + history.id)"
|
|
325
|
+
*ngSwitchCase="'CONTRACT_ACQ'"
|
|
326
|
+
mat-menu-item>
|
|
327
|
+
<mat-icon class="material-icons-outlined">shop_two</mat-icon>
|
|
328
|
+
{{ 'COMMON.HEADER.HISTORY.CONTRACT_ACQ' | commonTranslate : lang }} {{ history.ref }}
|
|
329
|
+
</button>
|
|
330
|
+
<button (click)="navigate('legal', '/contracts-details/cess/' + history.id)"
|
|
331
|
+
*ngSwitchCase="'CONTRACT_CESS'"
|
|
332
|
+
mat-menu-item>
|
|
333
|
+
<mat-icon class="material-icons-outlined">receipt</mat-icon>
|
|
334
|
+
{{ 'COMMON.HEADER.HISTORY.CONTRACT_CESS' | commonTranslate : lang }} {{ history.ref }}
|
|
335
|
+
</button>
|
|
336
|
+
<button (click)="navigate('legal', '/contracts-details/auth/' + history.id)"
|
|
337
|
+
*ngSwitchCase="'CONTRACT_AUTH'"
|
|
338
|
+
mat-menu-item>
|
|
339
|
+
<mat-icon class="material-icons-outlined">account_circle</mat-icon>
|
|
340
|
+
{{ 'COMMON.HEADER.HISTORY.CONTRACT_AUTH' | commonTranslate : lang }} {{ history.ref }}
|
|
341
|
+
</button>
|
|
342
|
+
<button (click)="navigate('expenditure-commitment', '/budget/form/' + history.id)" *ngSwitchCase="'BUDGET'"
|
|
343
|
+
mat-menu-item>
|
|
344
|
+
<mat-icon class="material-icons-outlined">payments</mat-icon>
|
|
345
|
+
{{ 'COMMON.HEADER.HISTORY.BUDGET' | commonTranslate : lang }} {{ history.ref }}
|
|
346
|
+
</button>
|
|
347
|
+
<button *ngSwitchCase="'NO_HISTORY_AVAILABLE'" mat-menu-item>
|
|
348
|
+
<mat-icon class="material-icons-outlined">not_interested</mat-icon>
|
|
349
|
+
{{ 'COMMON.HEADER.HISTORY.NO_HISTORY_AVAILABLE' | commonTranslate : lang }}
|
|
350
|
+
</button>
|
|
351
|
+
</ng-container>
|
|
352
|
+
</mat-menu>
|
|
353
|
+
<span class="header-separator"></span>
|
|
354
|
+
|
|
355
|
+
<span [matMenuTriggerFor]="settings" class="material-icons-outlined header-icon max-width-5">settings</span>
|
|
356
|
+
|
|
357
|
+
<!-- #enddocregion mat-menu-trigger-for -->
|
|
358
|
+
<mat-menu #settings="matMenu" class="settings-menu">
|
|
359
|
+
<button (click)="switchTheme()" mat-menu-item>
|
|
360
|
+
<mat-icon class="theme-icon">toggle_on</mat-icon>
|
|
361
|
+
<span>{{ 'COMMON.HEADER.PARAMETERS.THEME' | commonTranslate: lang }}</span>
|
|
362
|
+
</button>
|
|
363
|
+
<button class="img-btn" (click)='switchLang("en")' *ngIf='lang !== "en"' mat-menu-item>
|
|
364
|
+
<img class="mat-icon" src="assets/img/flag/en-flag.png">
|
|
365
|
+
<span>{{ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES.ENGLISH' | commonTranslate: lang }}</span>
|
|
366
|
+
</button>
|
|
367
|
+
<button class="img-btn" (click)='switchLang("fr")' *ngIf='lang !== "fr"' mat-menu-item>
|
|
368
|
+
<img class="mat-icon" src="assets/img/flag/fr-flag.png">
|
|
369
|
+
<span>{{ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES.FRENCH' | commonTranslate: lang }}</span>
|
|
370
|
+
</button>
|
|
371
|
+
<button class="img-btn" (click)='switchLang("de")' *ngIf='lang !== "de"' mat-menu-item>
|
|
372
|
+
<img class="mat-icon" src="assets/img/flag/de-flag.png">
|
|
373
|
+
<span>{{ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES.DEUTCH' | commonTranslate: lang }}</span>
|
|
374
|
+
</button>
|
|
375
|
+
<ng-container *ngxPermissionsExcept="restrictions">
|
|
376
|
+
<!--USER-->
|
|
377
|
+
<button (click)="navigate('user', '/account/authorization/search')" *ngIf="user && user.admin" mat-menu-item>
|
|
378
|
+
<mat-icon class="material-icons-outlined">manage_accounts</mat-icon>
|
|
379
|
+
<span>{{ 'COMMON.HEADER.MENU.USER.SECTION_TITLE' | commonTranslate: lang }}</span>
|
|
380
|
+
</button>
|
|
381
|
+
</ng-container>
|
|
382
|
+
<!--MY PREFERENCES-->
|
|
383
|
+
<button (click)="navigate('user', '/account/settings')" mat-menu-item>
|
|
384
|
+
<mat-icon class="material-icons-outlined">settings</mat-icon>
|
|
385
|
+
<span>{{ 'COMMON.HEADER.MENU.USER.SETTINGS' | commonTranslate: lang }}</span>
|
|
386
|
+
</button>
|
|
387
|
+
</mat-menu>
|
|
388
|
+
</mat-toolbar>
|
|
389
|
+
|