new-front-common-library 16.1.32 → 16.1.33
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 +243 -243
- package/assets/css/_flex.scss +55 -55
- package/assets/css/_global.scss +417 -417
- package/assets/css/_light-theme.scss +221 -221
- package/assets/css/_mat-palettes.scss +98 -98
- package/assets/css/_themes.scss +56 -56
- package/assets/css/_themes_v18.scss +55 -55
- package/assets/css/material/_mdc-dark-theme.scss +265 -265
- package/assets/css/material/_mdc-light-theme.scss +264 -264
- package/assets/css/material/_mdc.scss +408 -408
- package/assets/css/old-themes/_dark-theme.scss +639 -639
- package/assets/css/old-themes/_global.scss +689 -689
- package/assets/css/old-themes/_light-theme.scss +646 -646
- package/assets/css/old-themes/_themes-deprecated.scss +65 -65
- package/assets/i18n/front-common/de.json +30 -30
- package/assets/i18n/front-common/en.json +30 -30
- package/assets/i18n/front-common/fr.json +30 -30
- package/esm2022/lib/util/array.service.mjs +19 -19
- package/esm2022/lib/util/component/header/header.component.mjs +230 -221
- package/esm2022/lib/util/component/header/menu/menu.component.mjs +96 -96
- package/esm2022/lib/util/component/header/menu/menu.const.mjs +551 -551
- package/esm2022/lib/util/component/header/menu/menu.model.mjs +2 -2
- package/esm2022/lib/util/component/overlay/overlay.component.mjs +40 -40
- package/esm2022/lib/util/component/overlay/overlay.service.mjs +24 -24
- package/esm2022/lib/util/component/popup/popup-login/popup-login.component.mjs +90 -90
- package/esm2022/lib/util/component/sub-header/sub-header.component.mjs +44 -44
- package/esm2022/lib/util/config.mjs +8 -8
- package/esm2022/lib/util/date/PeriodModel.mjs +8 -8
- package/esm2022/lib/util/date/date-format-constants.mjs +12 -12
- package/esm2022/lib/util/date/date.util.mjs +218 -218
- package/esm2022/lib/util/decorators/theme.decorator.mjs +22 -22
- package/esm2022/lib/util/decorators/user.decorator.mjs +25 -25
- package/esm2022/lib/util/directives/my-number-formatter-directive.mjs +34 -34
- package/esm2022/lib/util/directives/show-if-truncated.directive.mjs +25 -25
- package/esm2022/lib/util/enums/family.enum.mjs +6 -6
- package/esm2022/lib/util/enums/rapid-search-item-type.enum.mjs +15 -12
- package/esm2022/lib/util/enums/status-color.enum.mjs +11 -11
- package/esm2022/lib/util/event/header/header-events.service.mjs +21 -21
- package/esm2022/lib/util/event/storage/local-storage-events.service.mjs +17 -17
- package/esm2022/lib/util/event/storage/session-storage-events.service.mjs +18 -18
- package/esm2022/lib/util/http/http-params.builder.mjs +27 -27
- package/esm2022/lib/util/i18n/de.mjs +159 -159
- package/esm2022/lib/util/i18n/en.mjs +163 -159
- package/esm2022/lib/util/i18n/fr.mjs +163 -159
- package/esm2022/lib/util/i18n/multi-translate-http-loader.mjs +21 -21
- package/esm2022/lib/util/interfaces/permissions.interface.mjs +2 -2
- package/esm2022/lib/util/models/any-line.model.mjs +37 -37
- package/esm2022/lib/util/models/audio-content.model.mjs +27 -27
- package/esm2022/lib/util/models/authPermission.model.mjs +16 -16
- package/esm2022/lib/util/models/authUser.model.mjs +21 -21
- package/esm2022/lib/util/models/basic.model.mjs +14 -14
- package/esm2022/lib/util/models/box-set-item.model.mjs +19 -19
- package/esm2022/lib/util/models/commercial/deal-rapid-search-model.mjs +3 -3
- package/esm2022/lib/util/models/commercial/invoice-rapid-search-model.mjs +9 -9
- package/esm2022/lib/util/models/commercial/work-record-rapid-search-model.mjs +13 -13
- package/esm2022/lib/util/models/disc-program.model.mjs +26 -26
- package/esm2022/lib/util/models/disc.model.mjs +22 -22
- package/esm2022/lib/util/models/eventType.model.mjs +7 -7
- package/esm2022/lib/util/models/expenditure-commitment/purchase-order-file.model.mjs +22 -22
- package/esm2022/lib/util/models/expenditure-commitment/purchase-order-rapid-search.model.mjs +3 -3
- package/esm2022/lib/util/models/family.model.mjs +7 -7
- package/esm2022/lib/util/models/index.mjs +101 -101
- package/esm2022/lib/util/models/lang-line.model.mjs +27 -27
- package/esm2022/lib/util/models/legal/contract-rapid-search-model.mjs +3 -3
- package/esm2022/lib/util/models/legal/contract-work.model.mjs +23 -23
- package/esm2022/lib/util/models/legal/contract-work2.model.mjs +21 -21
- package/esm2022/lib/util/models/legal/type-status-rapid-search.model.mjs +3 -3
- package/esm2022/lib/util/models/media-line.model.mjs +18 -18
- package/esm2022/lib/util/models/menu-language.model.mjs +15 -15
- package/esm2022/lib/util/models/permission.model.mjs +20 -20
- package/esm2022/lib/util/models/product-box-set.model.mjs +16 -16
- package/esm2022/lib/util/models/product-disc-detail.model.mjs +22 -22
- package/esm2022/lib/util/models/product-disc.model.mjs +27 -27
- package/esm2022/lib/util/models/product-division.model.mjs +29 -29
- package/esm2022/lib/util/models/product-type.model.mjs +22 -22
- package/esm2022/lib/util/models/product.model.mjs +62 -62
- package/esm2022/lib/util/models/program.model.mjs +28 -28
- package/esm2022/lib/util/models/purchase-order/purchase-order.model.mjs +53 -53
- package/esm2022/lib/util/models/referential/WorkVersionArticleDto.mjs +17 -17
- package/esm2022/lib/util/models/referential/adress-type.model.mjs +14 -14
- package/esm2022/lib/util/models/referential/adress.model.mjs +28 -28
- package/esm2022/lib/util/models/referential/attached-file.model.mjs +17 -17
- package/esm2022/lib/util/models/referential/bank-account.model.mjs +24 -24
- package/esm2022/lib/util/models/referential/bank-accounts.model.mjs +31 -31
- package/esm2022/lib/util/models/referential/basic-hierarchy.model.mjs +8 -8
- package/esm2022/lib/util/models/referential/broadcast-list-item.model.mjs +13 -13
- package/esm2022/lib/util/models/referential/color.model.mjs +16 -16
- package/esm2022/lib/util/models/referential/company.model.mjs +16 -16
- package/esm2022/lib/util/models/referential/content-type.model.mjs +17 -17
- package/esm2022/lib/util/models/referential/content.model.mjs +22 -22
- package/esm2022/lib/util/models/referential/cost-center-criteria-values.model.mjs +14 -14
- package/esm2022/lib/util/models/referential/cost-center-criteria.model.mjs +13 -13
- package/esm2022/lib/util/models/referential/cost-center.model.mjs +28 -28
- package/esm2022/lib/util/models/referential/coutry.model.mjs +16 -16
- package/esm2022/lib/util/models/referential/currency.model.mjs +20 -20
- package/esm2022/lib/util/models/referential/editorial-content.model.mjs +18 -18
- package/esm2022/lib/util/models/referential/fixing.model.mjs +16 -16
- package/esm2022/lib/util/models/referential/flat-media.model.mjs +18 -18
- package/esm2022/lib/util/models/referential/format-image.model.mjs +16 -16
- package/esm2022/lib/util/models/referential/format-type.model.mjs +16 -16
- package/esm2022/lib/util/models/referential/format.model.mjs +17 -17
- package/esm2022/lib/util/models/referential/fsk-index.model.mjs +20 -20
- package/esm2022/lib/util/models/referential/fsk.model.mjs +22 -22
- package/esm2022/lib/util/models/referential/function.model.mjs +23 -23
- package/esm2022/lib/util/models/referential/genre.model.mjs +17 -17
- package/esm2022/lib/util/models/referential/invoice-product-type.model.mjs +22 -22
- package/esm2022/lib/util/models/referential/keywords.model.mjs +13 -13
- package/esm2022/lib/util/models/referential/language.model.mjs +18 -18
- package/esm2022/lib/util/models/referential/media-filter.model.mjs +3 -3
- package/esm2022/lib/util/models/referential/media.model.mjs +20 -20
- package/esm2022/lib/util/models/referential/module.model.mjs +20 -20
- package/esm2022/lib/util/models/referential/parameter.model.mjs +2 -2
- package/esm2022/lib/util/models/referential/participant.model.mjs +20 -20
- package/esm2022/lib/util/models/referential/person.model.mjs +23 -23
- package/esm2022/lib/util/models/referential/project-status.model.mjs +16 -16
- package/esm2022/lib/util/models/referential/quota.model.mjs +17 -17
- package/esm2022/lib/util/models/referential/referential-entity-state.model.mjs +16 -16
- package/esm2022/lib/util/models/referential/referential-value.model.mjs +16 -16
- package/esm2022/lib/util/models/referential/referentiel.model.mjs +26 -26
- package/esm2022/lib/util/models/referential/restriction.model.mjs +20 -20
- package/esm2022/lib/util/models/referential/sap-order.model.mjs +20 -20
- package/esm2022/lib/util/models/referential/service-error.model.mjs +15 -15
- package/esm2022/lib/util/models/referential/sound.model.mjs +16 -16
- package/esm2022/lib/util/models/referential/territories-languages.model.mjs +16 -16
- package/esm2022/lib/util/models/referential/territory-filter.model.mjs +3 -3
- package/esm2022/lib/util/models/referential/territory.model.mjs +17 -17
- package/esm2022/lib/util/models/referential/theme.model.mjs +17 -17
- package/esm2022/lib/util/models/referential/third-party-address-rapid-search.model.mjs +3 -3
- package/esm2022/lib/util/models/referential/third-party-creation-request.model.mjs +44 -44
- package/esm2022/lib/util/models/referential/third-party-module.model.mjs +20 -20
- package/esm2022/lib/util/models/referential/third-party-rapid-search.model.mjs +3 -3
- package/esm2022/lib/util/models/referential/third-party.model.mjs +83 -83
- package/esm2022/lib/util/models/referential/translated-value-model.mjs +16 -16
- package/esm2022/lib/util/models/referential/tva.model.mjs +16 -16
- package/esm2022/lib/util/models/referential/type-export.model.mjs +16 -16
- package/esm2022/lib/util/models/referential/type-tva-company-territory.model.mjs +32 -32
- package/esm2022/lib/util/models/referential/type-tva.model.mjs +25 -25
- package/esm2022/lib/util/models/referential/user-form.model.mjs +2 -2
- package/esm2022/lib/util/models/referential/work-addons-model.mjs +16 -16
- package/esm2022/lib/util/models/referential/work-appartenance.model.mjs +17 -17
- package/esm2022/lib/util/models/referential/work-genre.model.mjs +16 -16
- package/esm2022/lib/util/models/referential/work-language.model.mjs +16 -16
- package/esm2022/lib/util/models/referential/work-milo.model.mjs +61 -61
- package/esm2022/lib/util/models/referential/work-participant.model.mjs +21 -21
- package/esm2022/lib/util/models/referential/work-restrictions-model.mjs +13 -13
- package/esm2022/lib/util/models/referential/work-theme.model.mjs +16 -16
- package/esm2022/lib/util/models/referential/work-title.model.mjs +20 -20
- package/esm2022/lib/util/models/referential/work-version-origin.model.mjs +16 -16
- package/esm2022/lib/util/models/referential/work-version-rapid-search.model.mjs +3 -3
- package/esm2022/lib/util/models/referential/work-versions-used.model.mjs +19 -19
- package/esm2022/lib/util/models/referential/work-versions.model.mjs +27 -27
- package/esm2022/lib/util/models/referential/work-year-production.model.mjs +13 -13
- package/esm2022/lib/util/models/referential/work.model.mjs +22 -22
- package/esm2022/lib/util/models/referential/zone.model.mjs +14 -14
- package/esm2022/lib/util/models/referentiel.model.mjs +26 -26
- package/esm2022/lib/util/models/search-response.model.mjs +10 -10
- package/esm2022/lib/util/models/section.model.mjs +8 -8
- package/esm2022/lib/util/models/select/options.model.mjs +8 -8
- package/esm2022/lib/util/models/select/select.model.mjs +7 -7
- package/esm2022/lib/util/models/subsidiary.model.mjs +8 -8
- package/esm2022/lib/util/models/subtitle-content.model.mjs +28 -28
- package/esm2022/lib/util/models/user-video.model.mjs +22 -22
- package/esm2022/lib/util/models/user.model.mjs +35 -35
- package/esm2022/lib/util/models/video/product-rapid-search.model.mjs +3 -3
- package/esm2022/lib/util/models/video/support-rapid-search.model.mjs +3 -3
- package/esm2022/lib/util/models/video-content.model.mjs +18 -18
- package/esm2022/lib/util/number.validator.mjs +129 -129
- package/esm2022/lib/util/paginator/custom-paginator-configuration.mjs +59 -59
- package/esm2022/lib/util/permissions/permissions.service.mjs +49 -49
- package/esm2022/lib/util/pipes/capitalizefirst.pipe.mjs +41 -41
- package/esm2022/lib/util/pipes/comma-separated-number.pipe.mjs +15 -15
- package/esm2022/lib/util/pipes/common-translate.pipe.mjs +38 -38
- package/esm2022/lib/util/pipes/display-html.pipe.mjs +20 -20
- package/esm2022/lib/util/pipes/display-null.pipe.mjs +24 -24
- package/esm2022/lib/util/pipes/format-currency.pipe.mjs +31 -31
- package/esm2022/lib/util/pipes/format-duration.pipe.mjs +23 -23
- package/esm2022/lib/util/pipes/format-number-input.pipe.mjs +22 -22
- package/esm2022/lib/util/pipes/local-date.pipe.mjs +27 -27
- package/esm2022/lib/util/pipes/my-number.pipe.mjs +44 -44
- package/esm2022/lib/util/pipes/third-party-address-search.pipe.mjs +15 -15
- package/esm2022/lib/util/pipes/third-party-address.pipe.mjs +16 -16
- package/esm2022/lib/util/pipes/trim-string.pipe.mjs +25 -25
- package/esm2022/lib/util/regex/regex.service.mjs +94 -94
- package/esm2022/lib/util/services/api/commercial-api.service.mjs +28 -28
- package/esm2022/lib/util/services/api/common-api.service.mjs +98 -98
- package/esm2022/lib/util/services/api/legal-api.service.mjs +32 -32
- package/esm2022/lib/util/services/api/video-api.service.mjs +45 -45
- package/esm2022/lib/util/services/auth/auth.service.mjs +18 -18
- package/esm2022/lib/util/services/elasticsearch/elasticsearch.service.mjs +180 -158
- package/esm2022/lib/util/services/elasticsearch/subsidiaries.service.mjs +48 -48
- package/esm2022/lib/util/services/form-action/form-actions-events.service.mjs +25 -25
- package/esm2022/lib/util/services/guard/auth.guard.mjs +32 -32
- package/esm2022/lib/util/services/guard/login.guard.mjs +23 -23
- package/esm2022/lib/util/services/history/history.service.mjs +39 -39
- package/esm2022/lib/util/services/interceptor/auth.interceptor.mjs +53 -53
- package/esm2022/lib/util/services/jwt-security/aes.service.mjs +34 -34
- package/esm2022/lib/util/services/jwt-security/interceptorhttp.service.mjs +18 -18
- package/esm2022/lib/util/services/jwt-security/jwt.helpher.mjs +34 -34
- package/esm2022/lib/util/services/storage/local-storage.service.mjs +36 -36
- package/esm2022/lib/util/services/storage/session-storage.service.mjs +38 -38
- package/esm2022/lib/util/services/translate-language/lang.service.mjs +31 -31
- package/esm2022/lib/util/services/user/user-subsidiary.service.mjs +22 -22
- package/esm2022/lib/util/sort.mjs +22 -22
- package/esm2022/lib/util/theme/theme-event.service.mjs +17 -17
- package/esm2022/lib/util/toaster/toaster-events.service.mjs +32 -32
- package/esm2022/lib/util/util.module.mjs +281 -281
- package/esm2022/new-front-common-library.mjs +4 -4
- package/esm2022/public-api.mjs +59 -59
- package/fesm2022/new-front-common-library.mjs +5566 -5524
- package/fesm2022/new-front-common-library.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/util/array.service.d.ts +7 -7
- package/lib/util/component/header/header.component.d.ts +74 -74
- package/lib/util/component/header/menu/menu.component.d.ts +27 -27
- package/lib/util/component/header/menu/menu.const.d.ts +2 -2
- package/lib/util/component/header/menu/menu.model.d.ts +23 -23
- 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 +35 -35
- 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-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/family.enum.d.ts +4 -4
- package/lib/util/enums/rapid-search-item-type.enum.d.ts +13 -10
- 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 +142 -142
- package/lib/util/i18n/en.d.ts +146 -142
- package/lib/util/i18n/fr.d.ts +146 -142
- 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 +16 -16
- 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/commercial/deal-rapid-search-model.d.ts +10 -10
- package/lib/util/models/commercial/invoice-rapid-search-model.d.ts +18 -18
- package/lib/util/models/commercial/work-record-rapid-search-model.d.ts +21 -21
- 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/family.model.d.ts +5 -5
- package/lib/util/models/index.d.ts +100 -100
- package/lib/util/models/lang-line.model.d.ts +18 -18
- package/lib/util/models/legal/contract-rapid-search-model.d.ts +10 -10
- 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/legal/type-status-rapid-search.model.d.ts +5 -5
- 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 -12
- package/lib/util/models/referential/theme.model.d.ts +7 -7
- package/lib/util/models/referential/third-party-address-rapid-search.model.d.ts +8 -8
- 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-rapid-search.model.d.ts +8 -8
- 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/user-form.model.d.ts +5 -5
- 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/subsidiary.model.d.ts +7 -7
- 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 +27 -27
- 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/paginator/custom-paginator-configuration.d.ts +16 -16
- package/lib/util/permissions/permissions.service.d.ts +15 -15
- 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-currency.pipe.d.ts +10 -10
- 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-search.pipe.d.ts +8 -8
- 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/commercial-api.service.d.ts +12 -12
- package/lib/util/services/api/common-api.service.d.ts +27 -27
- package/lib/util/services/api/legal-api.service.d.ts +15 -15
- package/lib/util/services/api/video-api.service.d.ts +17 -17
- package/lib/util/services/auth/auth.service.d.ts +9 -9
- package/lib/util/services/elasticsearch/elasticsearch.service.d.ts +35 -34
- package/lib/util/services/elasticsearch/subsidiaries.service.d.ts +12 -12
- package/lib/util/services/form-action/form-actions-events.service.d.ts +14 -14
- package/lib/util/services/guard/auth.guard.d.ts +2 -2
- package/lib/util/services/guard/login.guard.d.ts +1 -1
- 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/services/user/user-subsidiary.service.d.ts +9 -9
- 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 +49 -49
- package/package.json +1 -1
- package/public-api.d.ts +56 -56
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { Inject, Injectable } from '@angular/core';
|
|
2
|
-
import { throwError } from "rxjs";
|
|
3
|
-
import { WEB_CONFIG } from "../../config";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class CommercialApiService {
|
|
6
|
-
constructor(config) {
|
|
7
|
-
this.config = config;
|
|
8
|
-
this.apiUrl = this.config.api_url + '/commercial-api/';
|
|
9
|
-
this.header = new Headers({
|
|
10
|
-
'Content-Type': 'application/json'
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
static handleError(error) {
|
|
14
|
-
return throwError(error.json() || 'api error');
|
|
15
|
-
}
|
|
16
|
-
getAccountWrittingDownload() {
|
|
17
|
-
window.open(this.apiUrl + 'accounting-writing/get-account-writting-file');
|
|
18
|
-
}
|
|
19
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CommercialApiService, deps: [{ token: WEB_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
20
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CommercialApiService }); }
|
|
21
|
-
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CommercialApiService, decorators: [{
|
|
23
|
-
type: Injectable
|
|
24
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
25
|
-
type: Inject,
|
|
26
|
-
args: [WEB_CONFIG]
|
|
27
|
-
}] }]; } });
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Inject, Injectable } from '@angular/core';
|
|
2
|
+
import { throwError } from "rxjs";
|
|
3
|
+
import { WEB_CONFIG } from "../../config";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class CommercialApiService {
|
|
6
|
+
constructor(config) {
|
|
7
|
+
this.config = config;
|
|
8
|
+
this.apiUrl = this.config.api_url + '/commercial-api/';
|
|
9
|
+
this.header = new Headers({
|
|
10
|
+
'Content-Type': 'application/json'
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
static handleError(error) {
|
|
14
|
+
return throwError(error.json() || 'api error');
|
|
15
|
+
}
|
|
16
|
+
getAccountWrittingDownload() {
|
|
17
|
+
window.open(this.apiUrl + 'accounting-writing/get-account-writting-file');
|
|
18
|
+
}
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CommercialApiService, deps: [{ token: WEB_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
20
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CommercialApiService }); }
|
|
21
|
+
}
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CommercialApiService, decorators: [{
|
|
23
|
+
type: Injectable
|
|
24
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
25
|
+
type: Inject,
|
|
26
|
+
args: [WEB_CONFIG]
|
|
27
|
+
}] }]; } });
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVyY2lhbC1hcGkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiO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7SW5qZWN0LCBJbmplY3RhYmxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7dGhyb3dFcnJvcn0gZnJvbSBcInJ4anNcIjtcbmltcG9ydCB7Q29uZmlnLCBXRUJfQ09ORklHfSBmcm9tIFwiLi4vLi4vY29uZmlnXCI7XG5cbkBJbmplY3RhYmxlKClcbmV4cG9ydCBjbGFzcyBDb21tZXJjaWFsQXBpU2VydmljZSB7XG4gIHB1YmxpYyBhcGlVcmw6IHN0cmluZyA9IHRoaXMuY29uZmlnLmFwaV91cmwgKyAnL2NvbW1lcmNpYWwtYXBpLyc7XG5cbiAgcHVibGljIGhlYWRlcjogSGVhZGVycyA9IG5ldyBIZWFkZXJzKHtcbiAgICAnQ29udGVudC1UeXBlJzogJ2FwcGxpY2F0aW9uL2pzb24nXG4gIH0pO1xuXG4gIGNvbnN0cnVjdG9yKEBJbmplY3QoV0VCX0NPTkZJRykgcHJpdmF0ZSBjb25maWc6IENvbmZpZykge1xuICB9XG5cbiAgcHVibGljIHN0YXRpYyBoYW5kbGVFcnJvcihlcnJvcjogUmVzcG9uc2UpIHtcbiAgICByZXR1cm4gdGhyb3dFcnJvcihlcnJvci5qc29uKCkgfHwgJ2FwaSBlcnJvcicpO1xuICB9XG5cbiAgcHVibGljIGdldEFjY291bnRXcml0dGluZ0Rvd25sb2FkKCkge1xuICAgIHdpbmRvdy5vcGVuKHRoaXMuYXBpVXJsICsgJ2FjY291bnRpbmctd3JpdGluZy9nZXQtYWNjb3VudC13cml0dGluZy1maWxlJyk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
import { HttpHeaders } from '@angular/common/http';
|
|
2
|
-
// Angular2
|
|
3
|
-
import { Inject, Injectable } from '@angular/core';
|
|
4
|
-
import { throwError } from 'rxjs';
|
|
5
|
-
import { WEB_CONFIG } from '../../config';
|
|
6
|
-
import { catchError } from 'rxjs/operators';
|
|
7
|
-
import { JwtHelper } from '../jwt-security/jwt.helpher';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "ngx-cookie-service";
|
|
10
|
-
import * as i2 from "@angular/common/http";
|
|
11
|
-
const TOKEN_NAME = 'authToken';
|
|
12
|
-
const SECONDARY_TOKEN_NAME = 'authTokenSecondary';
|
|
13
|
-
export class CommonApiService {
|
|
14
|
-
constructor(config, cookieService, http) {
|
|
15
|
-
this.config = config;
|
|
16
|
-
this.cookieService = cookieService;
|
|
17
|
-
this.http = http;
|
|
18
|
-
this.headers = new HttpHeaders({
|
|
19
|
-
'Content-Type': 'application/json'
|
|
20
|
-
});
|
|
21
|
-
this.jwtHelper = new JwtHelper();
|
|
22
|
-
}
|
|
23
|
-
static handleError(error) {
|
|
24
|
-
return throwError(error || 'api error');
|
|
25
|
-
}
|
|
26
|
-
// Global product search
|
|
27
|
-
getProductGlobalSearch(searchInput, language) {
|
|
28
|
-
return this.http
|
|
29
|
-
.get(this.config.api_url +
|
|
30
|
-
'/video-api/products/globalSearch?searchInput=' +
|
|
31
|
-
searchInput +
|
|
32
|
-
'&language=' +
|
|
33
|
-
language)
|
|
34
|
-
.pipe(catchError(CommonApiService.handleError));
|
|
35
|
-
}
|
|
36
|
-
getPurchaseOrderByGlobalSearch(searchInput, language) {
|
|
37
|
-
return this.http
|
|
38
|
-
.get(this.config.api_url +
|
|
39
|
-
'/video-api/purchaseOrders/globalSearch?searchInput=' +
|
|
40
|
-
searchInput +
|
|
41
|
-
'&language=' +
|
|
42
|
-
language)
|
|
43
|
-
.pipe(catchError(CommonApiService.handleError));
|
|
44
|
-
}
|
|
45
|
-
setToken(token) {
|
|
46
|
-
sessionStorage.removeItem(TOKEN_NAME);
|
|
47
|
-
sessionStorage.setItem(TOKEN_NAME, token);
|
|
48
|
-
}
|
|
49
|
-
setSecondaryToken(token) {
|
|
50
|
-
sessionStorage.removeItem(SECONDARY_TOKEN_NAME);
|
|
51
|
-
sessionStorage.setItem(SECONDARY_TOKEN_NAME, token);
|
|
52
|
-
}
|
|
53
|
-
getToken() {
|
|
54
|
-
const user = this.decodeToken(TOKEN_NAME);
|
|
55
|
-
if (user && user.superAdmin && sessionStorage.hasOwnProperty(SECONDARY_TOKEN_NAME)) {
|
|
56
|
-
return sessionStorage.getItem(SECONDARY_TOKEN_NAME);
|
|
57
|
-
}
|
|
58
|
-
return sessionStorage.getItem(TOKEN_NAME);
|
|
59
|
-
}
|
|
60
|
-
decodeToken(tokenName) {
|
|
61
|
-
return sessionStorage.hasOwnProperty(tokenName) ? this.jwtHelper.decodeToken(sessionStorage.getItem(tokenName)) : {};
|
|
62
|
-
}
|
|
63
|
-
getUserDataFromToken() {
|
|
64
|
-
const user = this.decodeToken(TOKEN_NAME);
|
|
65
|
-
if (user && user.superAdmin && sessionStorage.hasOwnProperty(SECONDARY_TOKEN_NAME)) {
|
|
66
|
-
return Object.assign({ secondary: true }, this.decodeToken(SECONDARY_TOKEN_NAME));
|
|
67
|
-
}
|
|
68
|
-
return user;
|
|
69
|
-
}
|
|
70
|
-
isTokenValid() {
|
|
71
|
-
let payload;
|
|
72
|
-
try {
|
|
73
|
-
payload = this.getUserDataFromToken();
|
|
74
|
-
}
|
|
75
|
-
catch (e) {
|
|
76
|
-
payload = {};
|
|
77
|
-
}
|
|
78
|
-
if (!payload.exp) {
|
|
79
|
-
return false;
|
|
80
|
-
}
|
|
81
|
-
return payload.exp * 1000 > Date.now();
|
|
82
|
-
}
|
|
83
|
-
ssoLogin(email) {
|
|
84
|
-
const url = this.config.api_url + '/authorization-api/login/email';
|
|
85
|
-
return this.http
|
|
86
|
-
.post(url, email, { headers: this.headers })
|
|
87
|
-
.pipe(catchError(CommonApiService.handleError));
|
|
88
|
-
}
|
|
89
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CommonApiService, deps: [{ token: WEB_CONFIG }, { token: i1.CookieService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
90
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CommonApiService }); }
|
|
91
|
-
}
|
|
92
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CommonApiService, decorators: [{
|
|
93
|
-
type: Injectable
|
|
94
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
95
|
-
type: Inject,
|
|
96
|
-
args: [WEB_CONFIG]
|
|
97
|
-
}] }, { type: i1.CookieService }, { type: i2.HttpClient }]; } });
|
|
98
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { HttpHeaders } from '@angular/common/http';
|
|
2
|
+
// Angular2
|
|
3
|
+
import { Inject, Injectable } from '@angular/core';
|
|
4
|
+
import { throwError } from 'rxjs';
|
|
5
|
+
import { WEB_CONFIG } from '../../config';
|
|
6
|
+
import { catchError } from 'rxjs/operators';
|
|
7
|
+
import { JwtHelper } from '../jwt-security/jwt.helpher';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "ngx-cookie-service";
|
|
10
|
+
import * as i2 from "@angular/common/http";
|
|
11
|
+
const TOKEN_NAME = 'authToken';
|
|
12
|
+
const SECONDARY_TOKEN_NAME = 'authTokenSecondary';
|
|
13
|
+
export class CommonApiService {
|
|
14
|
+
constructor(config, cookieService, http) {
|
|
15
|
+
this.config = config;
|
|
16
|
+
this.cookieService = cookieService;
|
|
17
|
+
this.http = http;
|
|
18
|
+
this.headers = new HttpHeaders({
|
|
19
|
+
'Content-Type': 'application/json'
|
|
20
|
+
});
|
|
21
|
+
this.jwtHelper = new JwtHelper();
|
|
22
|
+
}
|
|
23
|
+
static handleError(error) {
|
|
24
|
+
return throwError(error || 'api error');
|
|
25
|
+
}
|
|
26
|
+
// Global product search
|
|
27
|
+
getProductGlobalSearch(searchInput, language) {
|
|
28
|
+
return this.http
|
|
29
|
+
.get(this.config.api_url +
|
|
30
|
+
'/video-api/products/globalSearch?searchInput=' +
|
|
31
|
+
searchInput +
|
|
32
|
+
'&language=' +
|
|
33
|
+
language)
|
|
34
|
+
.pipe(catchError(CommonApiService.handleError));
|
|
35
|
+
}
|
|
36
|
+
getPurchaseOrderByGlobalSearch(searchInput, language) {
|
|
37
|
+
return this.http
|
|
38
|
+
.get(this.config.api_url +
|
|
39
|
+
'/video-api/purchaseOrders/globalSearch?searchInput=' +
|
|
40
|
+
searchInput +
|
|
41
|
+
'&language=' +
|
|
42
|
+
language)
|
|
43
|
+
.pipe(catchError(CommonApiService.handleError));
|
|
44
|
+
}
|
|
45
|
+
setToken(token) {
|
|
46
|
+
sessionStorage.removeItem(TOKEN_NAME);
|
|
47
|
+
sessionStorage.setItem(TOKEN_NAME, token);
|
|
48
|
+
}
|
|
49
|
+
setSecondaryToken(token) {
|
|
50
|
+
sessionStorage.removeItem(SECONDARY_TOKEN_NAME);
|
|
51
|
+
sessionStorage.setItem(SECONDARY_TOKEN_NAME, token);
|
|
52
|
+
}
|
|
53
|
+
getToken() {
|
|
54
|
+
const user = this.decodeToken(TOKEN_NAME);
|
|
55
|
+
if (user && user.superAdmin && sessionStorage.hasOwnProperty(SECONDARY_TOKEN_NAME)) {
|
|
56
|
+
return sessionStorage.getItem(SECONDARY_TOKEN_NAME);
|
|
57
|
+
}
|
|
58
|
+
return sessionStorage.getItem(TOKEN_NAME);
|
|
59
|
+
}
|
|
60
|
+
decodeToken(tokenName) {
|
|
61
|
+
return sessionStorage.hasOwnProperty(tokenName) ? this.jwtHelper.decodeToken(sessionStorage.getItem(tokenName)) : {};
|
|
62
|
+
}
|
|
63
|
+
getUserDataFromToken() {
|
|
64
|
+
const user = this.decodeToken(TOKEN_NAME);
|
|
65
|
+
if (user && user.superAdmin && sessionStorage.hasOwnProperty(SECONDARY_TOKEN_NAME)) {
|
|
66
|
+
return Object.assign({ secondary: true }, this.decodeToken(SECONDARY_TOKEN_NAME));
|
|
67
|
+
}
|
|
68
|
+
return user;
|
|
69
|
+
}
|
|
70
|
+
isTokenValid() {
|
|
71
|
+
let payload;
|
|
72
|
+
try {
|
|
73
|
+
payload = this.getUserDataFromToken();
|
|
74
|
+
}
|
|
75
|
+
catch (e) {
|
|
76
|
+
payload = {};
|
|
77
|
+
}
|
|
78
|
+
if (!payload.exp) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
return payload.exp * 1000 > Date.now();
|
|
82
|
+
}
|
|
83
|
+
ssoLogin(email) {
|
|
84
|
+
const url = this.config.api_url + '/authorization-api/login/email';
|
|
85
|
+
return this.http
|
|
86
|
+
.post(url, email, { headers: this.headers })
|
|
87
|
+
.pipe(catchError(CommonApiService.handleError));
|
|
88
|
+
}
|
|
89
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CommonApiService, deps: [{ token: WEB_CONFIG }, { token: i1.CookieService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
90
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CommonApiService }); }
|
|
91
|
+
}
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CommonApiService, decorators: [{
|
|
93
|
+
type: Injectable
|
|
94
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
95
|
+
type: Inject,
|
|
96
|
+
args: [WEB_CONFIG]
|
|
97
|
+
}] }, { type: i1.CookieService }, { type: i2.HttpClient }]; } });
|
|
98
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uLWFwaS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV3LWZyb250LWNvbW1vbi1saWJyYXJ5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dcbiAgICApOiBPYnNlcnZhYmxlPFByb2R1Y3RNb2RlbFtdPiB7XG4gICAgICAgIHJldHVybiB0aGlzLmh0dHBcbiAgICAgICAgICAgIC5nZXQ8UHJvZHVjdE1vZGVsW10+KFxuICAgICAgICAgICAgICAgIHRoaXMuY29uZmlnLmFwaV91cmwgK1xuICAgICAgICAgICAgICAgICcvdmlkZW8tYXBpL3Byb2R1Y3RzL2dsb2JhbFNlYXJjaD9zZWFyY2hJbnB1dD0nICtcbiAgICAgICAgICAgICAgICBzZWFyY2hJbnB1dCArXG4gICAgICAgICAgICAgICAgJyZsYW5ndWFnZT0nICtcbiAgICAgICAgICAgICAgICBsYW5ndWFnZVxuICAgICAgICAgICAgKVxuICAgICAgICAgICAgLnBpcGUoY2F0Y2hFcnJvcihDb21tb25BcGlTZXJ2aWNlLmhhbmRsZUVycm9yKSk7XG4gICAgfVxuXG4gICAgcHVibGljIGdldFB1cmNoYXNlT3JkZXJCeUdsb2JhbFNlYXJjaChcbiAgICAgICAgc2VhcmNoSW5wdXQ6IHN0cmluZyxcbiAgICAgICAgbGFuZ3VhZ2U6IHN0cmluZ1xuICAgICk6IE9ic2VydmFibGU8UHVyY2hhc2VPcmRlck1vZGVsW10+IHtcbiAgICAgICAgcmV0dXJuIHRoaXMuaHR0cFxuICAgICAgICAgICAgLmdldDxQdXJjaGFzZU9yZGVyTW9kZWxbXT4oXG4gICAgICAgICAgICAgICAgdGhpcy5jb25maWcuYXBpX3VybCArXG4gICAgICAgICAgICAgICAgJy92aWRlby1hcGkvcHVyY2hhc2VPcmRlcnMvZ2xvYmFsU2VhcmNoP3NlYXJjaElucHV0PScgK1xuICAgICAgICAgICAgICAgIHNlYXJjaElucHV0ICtcbiAgICAgICAgICAgICAgICAnJmxhbmd1YWdlPScgK1xuICAgICAgICAgICAgICAgIGxhbmd1YWdlXG4gICAgICAgICAgICApXG4gICAgICAgICAgICAucGlwZShjYXRjaEVycm9yKENvbW1vbkFwaVNlcnZpY2UuaGFuZ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ICAgICAgICAgLnBvc3QodXJsLCBlbWFpbCwge2hlYWRlcnM6IHRoaXMuaGVhZGVyc30pXG4gICAgICAgICAgICAucGlwZShjYXRjaEVycm9yKENvbW1vbkFwaVNlcnZpY2UuaGFuZGxlRXJyb3IpKTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { Inject, Injectable } from '@angular/core';
|
|
2
|
-
import { throwError } from "rxjs";
|
|
3
|
-
import { WEB_CONFIG } from "../../config";
|
|
4
|
-
import { catchError } from "rxjs/operators";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/common/http";
|
|
7
|
-
export class LegalApiService {
|
|
8
|
-
constructor(config, http) {
|
|
9
|
-
this.config = config;
|
|
10
|
-
this.http = http;
|
|
11
|
-
this.apiUrl = this.config.api_url + '/legal-api/';
|
|
12
|
-
this.header = new Headers({
|
|
13
|
-
'Content-Type': 'application/json'
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
getMappingSocietesSubsidiaries() {
|
|
17
|
-
return this.http.get(this.apiUrl + 'subsidiaries/societe_mapping')
|
|
18
|
-
.pipe(catchError(this.handleError));
|
|
19
|
-
}
|
|
20
|
-
handleError(error) {
|
|
21
|
-
return throwError(error || 'api error');
|
|
22
|
-
}
|
|
23
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LegalApiService, deps: [{ token: WEB_CONFIG }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
24
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LegalApiService }); }
|
|
25
|
-
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LegalApiService, decorators: [{
|
|
27
|
-
type: Injectable
|
|
28
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
29
|
-
type: Inject,
|
|
30
|
-
args: [WEB_CONFIG]
|
|
31
|
-
}] }, { type: i1.HttpClient }]; } });
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Inject, Injectable } from '@angular/core';
|
|
2
|
+
import { throwError } from "rxjs";
|
|
3
|
+
import { WEB_CONFIG } from "../../config";
|
|
4
|
+
import { catchError } from "rxjs/operators";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/common/http";
|
|
7
|
+
export class LegalApiService {
|
|
8
|
+
constructor(config, http) {
|
|
9
|
+
this.config = config;
|
|
10
|
+
this.http = http;
|
|
11
|
+
this.apiUrl = this.config.api_url + '/legal-api/';
|
|
12
|
+
this.header = new Headers({
|
|
13
|
+
'Content-Type': 'application/json'
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
getMappingSocietesSubsidiaries() {
|
|
17
|
+
return this.http.get(this.apiUrl + 'subsidiaries/societe_mapping')
|
|
18
|
+
.pipe(catchError(this.handleError));
|
|
19
|
+
}
|
|
20
|
+
handleError(error) {
|
|
21
|
+
return throwError(error || 'api error');
|
|
22
|
+
}
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LegalApiService, deps: [{ token: WEB_CONFIG }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
24
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LegalApiService }); }
|
|
25
|
+
}
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LegalApiService, decorators: [{
|
|
27
|
+
type: Injectable
|
|
28
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
29
|
+
type: Inject,
|
|
30
|
+
args: [WEB_CONFIG]
|
|
31
|
+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Y29yZDxudW1iZXIsIG51bWJlcltdPj4ge1xuICAgIHJldHVybiB0aGlzLmh0dHAuZ2V0PFJlY29yZDxudW1iZXIsIG51bWJlcltdPj4odGhpcy5hcGlVcmwgKyAnc3Vic2lkaWFyaWVzL3NvY2lldGVfbWFwcGluZycpXG4gICAgICAucGlwZShjYXRjaEVycm9yKHRoaXMuaGFuZGxlRXJyb3IpKTtcbiAgfVxuXG4gIHB1YmxpYyBoYW5kbGVFcnJvcihlcnJvcikge1xuICAgIHJldHVybiB0aHJvd0Vycm9yKGVycm9yIHx8ICdhcGkgZXJyb3InKTtcbiAgfVxufVxuIl19
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { Inject, Injectable } from '@angular/core';
|
|
2
|
-
import { WEB_CONFIG } from "../../config";
|
|
3
|
-
import { throwError } from "rxjs";
|
|
4
|
-
import { catchError } from "rxjs/operators";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "ngx-cookie-service";
|
|
7
|
-
import * as i2 from "@angular/common/http";
|
|
8
|
-
export class VideoApiService {
|
|
9
|
-
constructor(config, cookieService, http) {
|
|
10
|
-
this.config = config;
|
|
11
|
-
this.cookieService = cookieService;
|
|
12
|
-
this.http = http;
|
|
13
|
-
this.apiUrl = this.config.api_url + '/video-api/';
|
|
14
|
-
this.header = new Headers({
|
|
15
|
-
'Content-Type': 'application/json'
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
static handleError(error) {
|
|
19
|
-
if (error.error instanceof ErrorEvent) {
|
|
20
|
-
// A client-side or network error occurred. Handle it accordingly.
|
|
21
|
-
console.error('An error occurred:', error.error.message);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
// The backend returned an unsuccessful response code.
|
|
25
|
-
// The response body may contain clues as to what went wrong,
|
|
26
|
-
console.error(`Backend returned code ${error.status}, ` +
|
|
27
|
-
`body was: ${error.ok}`);
|
|
28
|
-
}
|
|
29
|
-
// return an observable with a user-facing error message
|
|
30
|
-
return throwError('Something bad happened; please try again later.');
|
|
31
|
-
}
|
|
32
|
-
getProductExtractionXlsx(lang) {
|
|
33
|
-
return this.http.get(this.apiUrl + `products/all-products-to-xlsx?language=${lang}`, { responseType: 'blob' })
|
|
34
|
-
.pipe(catchError(VideoApiService.handleError));
|
|
35
|
-
}
|
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: VideoApiService, deps: [{ token: WEB_CONFIG }, { token: i1.CookieService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
37
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: VideoApiService }); }
|
|
38
|
-
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: VideoApiService, decorators: [{
|
|
40
|
-
type: Injectable
|
|
41
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
42
|
-
type: Inject,
|
|
43
|
-
args: [WEB_CONFIG]
|
|
44
|
-
}] }, { type: i1.CookieService }, { type: i2.HttpClient }]; } });
|
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Inject, Injectable } from '@angular/core';
|
|
2
|
+
import { WEB_CONFIG } from "../../config";
|
|
3
|
+
import { throwError } from "rxjs";
|
|
4
|
+
import { catchError } from "rxjs/operators";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "ngx-cookie-service";
|
|
7
|
+
import * as i2 from "@angular/common/http";
|
|
8
|
+
export class VideoApiService {
|
|
9
|
+
constructor(config, cookieService, http) {
|
|
10
|
+
this.config = config;
|
|
11
|
+
this.cookieService = cookieService;
|
|
12
|
+
this.http = http;
|
|
13
|
+
this.apiUrl = this.config.api_url + '/video-api/';
|
|
14
|
+
this.header = new Headers({
|
|
15
|
+
'Content-Type': 'application/json'
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
static handleError(error) {
|
|
19
|
+
if (error.error instanceof ErrorEvent) {
|
|
20
|
+
// A client-side or network error occurred. Handle it accordingly.
|
|
21
|
+
console.error('An error occurred:', error.error.message);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
// The backend returned an unsuccessful response code.
|
|
25
|
+
// The response body may contain clues as to what went wrong,
|
|
26
|
+
console.error(`Backend returned code ${error.status}, ` +
|
|
27
|
+
`body was: ${error.ok}`);
|
|
28
|
+
}
|
|
29
|
+
// return an observable with a user-facing error message
|
|
30
|
+
return throwError('Something bad happened; please try again later.');
|
|
31
|
+
}
|
|
32
|
+
getProductExtractionXlsx(lang) {
|
|
33
|
+
return this.http.get(this.apiUrl + `products/all-products-to-xlsx?language=${lang}`, { responseType: 'blob' })
|
|
34
|
+
.pipe(catchError(VideoApiService.handleError));
|
|
35
|
+
}
|
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: VideoApiService, deps: [{ token: WEB_CONFIG }, { token: i1.CookieService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
37
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: VideoApiService }); }
|
|
38
|
+
}
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: VideoApiService, decorators: [{
|
|
40
|
+
type: Injectable
|
|
41
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
42
|
+
type: Inject,
|
|
43
|
+
args: [WEB_CONFIG]
|
|
44
|
+
}] }, { type: i1.CookieService }, { type: i2.HttpClient }]; } });
|
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlkZW8tYXBpLnNlcnZpY2UuanMiLCJzb3VyY2VS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vZHkgd2FzOiAke2Vycm9yLm9rfWApO1xuICAgIH1cbiAgICAvLyByZXR1cm4gYW4gb2JzZXJ2YWJsZSB3aXRoIGEgdXNlci1mYWNpbmcgZXJyb3IgbWVzc2FnZVxuICAgIHJldHVybiB0aHJvd0Vycm9yKFxuICAgICAgJ1NvbWV0aGluZyBiYWQgaGFwcGVuZWQ7IHBsZWFzZSB0cnkgYWdhaW4gbGF0ZXIuJyk7XG4gIH1cblxuICBwdWJsaWMgZ2V0UHJvZHVjdEV4dHJhY3Rpb25YbHN4KGxhbmc6IHN0cmluZyk6IE9ic2VydmFibGU8YW55PiB7XG4gICAgcmV0dXJuIHRoaXMuaHR0cC5nZXQodGhpcy5hcGlVcmwgKyBgcHJvZHVjdHMvYWxsLXByb2R1Y3RzLXRvLXhsc3g/bGFuZ3VhZ2U9JHtsYW5nfWAsIHsgcmVzcG9uc2VUeXBlOiAnYmxvYicgfSlcbiAgICAgIC5waXBlKGNhdGNoRXJyb3IoVmlkZW9BcGlTZXJ2aWNlLmhhbmRsZUVycm9yKSk7XG4gIH1cblxufVxuIl19
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class AuthService {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.isAuthenticatedSubject = new BehaviorSubject(false);
|
|
7
|
-
this.isAuthenticated$ = this.isAuthenticatedSubject.asObservable();
|
|
8
|
-
}
|
|
9
|
-
setAuthenticated(isAuthenticated) {
|
|
10
|
-
this.isAuthenticatedSubject.next(isAuthenticated);
|
|
11
|
-
}
|
|
12
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthService }); }
|
|
14
|
-
}
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthService, decorators: [{
|
|
16
|
-
type: Injectable
|
|
17
|
-
}] });
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class AuthService {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.isAuthenticatedSubject = new BehaviorSubject(false);
|
|
7
|
+
this.isAuthenticated$ = this.isAuthenticatedSubject.asObservable();
|
|
8
|
+
}
|
|
9
|
+
setAuthenticated(isAuthenticated) {
|
|
10
|
+
this.isAuthenticatedSubject.next(isAuthenticated);
|
|
11
|
+
}
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthService }); }
|
|
14
|
+
}
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthService, decorators: [{
|
|
16
|
+
type: Injectable
|
|
17
|
+
}] });
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV3LWZyb250LWNvbW1vbi1saWJyYXJ5L3NyYy9saWIvdXRpbC9zZXJ2aWNlcy9hdXRoL2F1dGguc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIj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