new-front-common-library 0.0.72 → 0.0.73

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.
Files changed (539) hide show
  1. package/assets/css/_global.scss +2 -2
  2. package/assets/fonts/SofiaPro.ttf +0 -0
  3. package/karma.conf.js +44 -0
  4. package/ng-package.json +10 -0
  5. package/package.json +18 -28
  6. package/src/lib/new-front-common-library.component.spec.ts +25 -0
  7. package/src/lib/new-front-common-library.component.ts +20 -0
  8. package/src/lib/new-front-common-library.module.ts +26 -0
  9. package/src/lib/new-front-common-library.service.spec.ts +16 -0
  10. package/src/lib/new-front-common-library.service.ts +10 -0
  11. package/src/lib/util/animations/actions.animation.ts +16 -0
  12. package/src/lib/util/animations/fade.animation.ts +16 -0
  13. package/src/lib/util/array.service.ts +14 -0
  14. package/src/lib/util/component/header/header.component.html +306 -0
  15. package/src/lib/util/component/header/header.component.scss +216 -0
  16. package/src/lib/util/component/header/header.component.ts +192 -0
  17. package/src/lib/util/component/overlay/overlay.component.css +20 -0
  18. package/src/lib/util/component/overlay/overlay.component.html +10 -0
  19. package/src/lib/util/component/overlay/overlay.component.ts +42 -0
  20. package/src/lib/util/component/overlay/overlay.service.ts +23 -0
  21. package/src/lib/util/component/popup/popup-login/popup-login.component.css +3 -0
  22. package/src/lib/util/component/popup/popup-login/popup-login.component.html +29 -0
  23. package/src/lib/util/component/popup/popup-login/popup-login.component.ts +89 -0
  24. package/src/lib/util/component/sub-header/sub-header.component.css +136 -0
  25. package/src/lib/util/component/sub-header/sub-header.component.html +20 -0
  26. package/src/lib/util/component/sub-header/sub-header.component.spec.ts +25 -0
  27. package/src/lib/util/component/sub-header/sub-header.component.ts +37 -0
  28. package/src/lib/util/config.ts +15 -0
  29. package/src/lib/util/date/PeriodModel.ts +7 -0
  30. package/src/lib/util/date/date-adapter.ts +41 -0
  31. package/src/lib/util/date/date-format-constants.ts +12 -0
  32. package/src/lib/util/date/date-format.spec.ts +67 -0
  33. package/src/lib/util/date/date.util.ts +222 -0
  34. package/src/lib/util/decorators/theme.decorator.ts +24 -0
  35. package/src/lib/util/decorators/user.decorator.ts +30 -0
  36. package/src/lib/util/directives/my-number-formatter-directive.ts +32 -0
  37. package/src/lib/util/directives/show-if-truncated.directive.ts +19 -0
  38. package/src/lib/util/enums/rapid-search-item-type.enum.ts +8 -0
  39. package/src/lib/util/enums/status-color.enum.ts +9 -0
  40. package/src/lib/util/event/header/header-events.service.ts +20 -0
  41. package/src/lib/util/event/storage/local-storage-events.service.ts +15 -0
  42. package/src/lib/util/event/storage/session-storage-events.service.ts +15 -0
  43. package/src/lib/util/http/http-params.builder.ts +33 -0
  44. package/src/lib/util/i18n/de.ts +68 -0
  45. package/src/lib/util/i18n/en.ts +66 -0
  46. package/src/lib/util/i18n/fr.ts +66 -0
  47. package/src/lib/util/i18n/multi-translate-http-loader.ts +31 -0
  48. package/src/lib/util/models/any-line.model.ts +45 -0
  49. package/src/lib/util/models/audio-content.model.ts +40 -0
  50. package/src/lib/util/models/authPermission.model.ts +17 -0
  51. package/src/lib/util/models/authUser.model.ts +26 -0
  52. package/src/lib/util/models/basic-hierarchy.model.ts +8 -0
  53. package/src/lib/util/models/basic.model.ts +31 -0
  54. package/src/lib/util/models/box-set-item.model.ts +23 -0
  55. package/src/lib/util/models/custom-typings.d.ts +166 -0
  56. package/src/lib/util/models/disc-program.model.ts +29 -0
  57. package/src/lib/util/models/disc.model.ts +26 -0
  58. package/src/lib/util/models/eventType.model.ts +7 -0
  59. package/src/lib/util/models/expenditure-commitment/purchase-order-file.model.ts +27 -0
  60. package/src/lib/util/models/expenditure-commitment/purchase-order-rapid-search.model.ts +10 -0
  61. package/{lib/util/models/index.d.ts → src/lib/util/models/index.ts} +1 -0
  62. package/src/lib/util/models/lang-line.model.ts +31 -0
  63. package/src/lib/util/models/legal/contract-work.model.ts +43 -0
  64. package/src/lib/util/models/legal/contract-work2.model.ts +39 -0
  65. package/src/lib/util/models/media-line.model.ts +20 -0
  66. package/src/lib/util/models/menu-language.model.ts +16 -0
  67. package/src/lib/util/models/milo/territory.model.ts +19 -0
  68. package/src/lib/util/models/module.model.ts +9 -0
  69. package/src/lib/util/models/permission.model.ts +21 -0
  70. package/src/lib/util/models/product-box-set.model.ts +19 -0
  71. package/src/lib/util/models/product-disc-detail.model.ts +25 -0
  72. package/src/lib/util/models/product-disc.model.ts +31 -0
  73. package/src/lib/util/models/product-division.model.ts +35 -0
  74. package/src/lib/util/models/product-type.model.ts +26 -0
  75. package/src/lib/util/models/product.model.ts +72 -0
  76. package/src/lib/util/models/program.model.ts +34 -0
  77. package/src/lib/util/models/purchase-order/purchase-order.model.ts +61 -0
  78. package/src/lib/util/models/referential/WorkVersionArticleDto.ts +20 -0
  79. package/src/lib/util/models/referential/adress-type.model.ts +13 -0
  80. package/src/lib/util/models/referential/adress.model.ts +31 -0
  81. package/src/lib/util/models/referential/attached-file.model.ts +21 -0
  82. package/src/lib/util/models/referential/bank-account.model.ts +25 -0
  83. package/src/lib/util/models/referential/bank-accounts.model.ts +34 -0
  84. package/src/lib/util/models/referential/basic-hierarchy.model.ts +8 -0
  85. package/src/lib/util/models/referential/broadcast-list-item.model.ts +19 -0
  86. package/src/lib/util/models/referential/color.model.ts +16 -0
  87. package/src/lib/util/models/referential/company.model.ts +17 -0
  88. package/src/lib/util/models/referential/content-type.model.ts +22 -0
  89. package/src/lib/util/models/referential/content.model.ts +26 -0
  90. package/src/lib/util/models/referential/cost-center-criteria-values.model.ts +17 -0
  91. package/src/lib/util/models/referential/cost-center-criteria.model.ts +23 -0
  92. package/src/lib/util/models/referential/cost-center.model.ts +37 -0
  93. package/src/lib/util/models/referential/coutry.model.ts +17 -0
  94. package/src/lib/util/models/referential/currency.model.ts +22 -0
  95. package/src/lib/util/models/referential/editorial-content.model.ts +37 -0
  96. package/src/lib/util/models/referential/fixing.model.ts +21 -0
  97. package/src/lib/util/models/referential/flat-media.model.ts +19 -0
  98. package/src/lib/util/models/referential/format-image.model.ts +17 -0
  99. package/src/lib/util/models/referential/format-type.model.ts +16 -0
  100. package/src/lib/util/models/referential/format.model.ts +17 -0
  101. package/src/lib/util/models/referential/fsk-index.model.ts +36 -0
  102. package/src/lib/util/models/referential/fsk.model.ts +53 -0
  103. package/src/lib/util/models/referential/function.model.ts +25 -0
  104. package/src/lib/util/models/referential/genre.model.ts +17 -0
  105. package/src/lib/util/models/referential/invoice-product-type.model.ts +24 -0
  106. package/{lib/util/models/referential/keywords.model.d.ts → src/lib/util/models/referential/keywords.model.ts} +2 -0
  107. package/src/lib/util/models/referential/language.model.ts +22 -0
  108. package/src/lib/util/models/referential/media-filter.model.ts +10 -0
  109. package/src/lib/util/models/referential/media.model.ts +21 -0
  110. package/src/lib/util/models/referential/module.model.ts +21 -0
  111. package/{lib/util/models/referential/parameter.model.d.ts → src/lib/util/models/referential/parameter.model.ts} +2 -0
  112. package/src/lib/util/models/referential/participant.model.ts +31 -0
  113. package/src/lib/util/models/referential/person.model.ts +30 -0
  114. package/src/lib/util/models/referential/po/WorkRestrictionPO.ts +11 -0
  115. package/src/lib/util/models/referential/project-status.model.ts +16 -0
  116. package/src/lib/util/models/referential/quota.model.ts +17 -0
  117. package/src/lib/util/models/referential/referential-entity-state.model.ts +22 -0
  118. package/src/lib/util/models/referential/referential-value.model.ts +21 -0
  119. package/src/lib/util/models/referential/referentiel.model.ts +29 -0
  120. package/src/lib/util/models/referential/restriction.model.ts +26 -0
  121. package/src/lib/util/models/referential/sap-order.model.ts +48 -0
  122. package/src/lib/util/models/referential/service-error.model.ts +16 -0
  123. package/src/lib/util/models/referential/sound.model.ts +16 -0
  124. package/src/lib/util/models/referential/territories-languages.model.ts +19 -0
  125. package/src/lib/util/models/referential/territory-filter.model.ts +6 -0
  126. package/src/lib/util/models/referential/territory.model.ts +26 -0
  127. package/src/lib/util/models/referential/theme.model.ts +17 -0
  128. package/src/lib/util/models/referential/third-party-creation-request.model.ts +59 -0
  129. package/src/lib/util/models/referential/third-party-module.model.ts +21 -0
  130. package/src/lib/util/models/referential/third-party.model.ts +100 -0
  131. package/src/lib/util/models/referential/translated-value-model.ts +20 -0
  132. package/src/lib/util/models/referential/tva.model.ts +17 -0
  133. package/src/lib/util/models/referential/type-export.model.ts +17 -0
  134. package/src/lib/util/models/referential/type-tva-company-territory.model.ts +36 -0
  135. package/src/lib/util/models/referential/type-tva.model.ts +29 -0
  136. package/src/lib/util/models/referential/work-addons-model.ts +36 -0
  137. package/src/lib/util/models/referential/work-appartenance.model.ts +17 -0
  138. package/src/lib/util/models/referential/work-genre.model.ts +21 -0
  139. package/src/lib/util/models/referential/work-language.model.ts +21 -0
  140. package/src/lib/util/models/referential/work-milo.model.ts +65 -0
  141. package/src/lib/util/models/referential/work-participant.model.ts +28 -0
  142. package/src/lib/util/models/referential/work-restrictions-model.ts +34 -0
  143. package/src/lib/util/models/referential/work-theme.model.ts +21 -0
  144. package/src/lib/util/models/referential/work-title.model.ts +27 -0
  145. package/src/lib/util/models/referential/work-version-origin.model.ts +20 -0
  146. package/src/lib/util/models/referential/work-version-rapid-search.model.ts +10 -0
  147. package/src/lib/util/models/referential/work-versions-used.model.ts +22 -0
  148. package/src/lib/util/models/referential/work-versions.model.ts +47 -0
  149. package/src/lib/util/models/referential/work-year-production.model.ts +16 -0
  150. package/src/lib/util/models/referential/work.model.ts +88 -0
  151. package/src/lib/util/models/referential/zone.model.ts +16 -0
  152. package/src/lib/util/models/referentiel.model.ts +29 -0
  153. package/src/lib/util/models/search-response.model.ts +7 -0
  154. package/src/lib/util/models/section.model.ts +11 -0
  155. package/src/lib/util/models/select/options.model.ts +8 -0
  156. package/src/lib/util/models/select/select.model.ts +4 -0
  157. package/src/lib/util/models/subtitle-content.model.ts +39 -0
  158. package/src/lib/util/models/user-video.model.ts +29 -0
  159. package/src/lib/util/models/user.model.ts +39 -0
  160. package/src/lib/util/models/video/product-rapid-search.model.ts +10 -0
  161. package/src/lib/util/models/video/support-rapid-search.model.ts +7 -0
  162. package/src/lib/util/models/video-content.model.ts +37 -0
  163. package/src/lib/util/number.validator.ts +123 -0
  164. package/src/lib/util/permissions/permissions.service.ts +36 -0
  165. package/src/lib/util/pipes/capitalizefirst.pipe.ts +39 -0
  166. package/src/lib/util/pipes/comma-separated-number.pipe.ts +9 -0
  167. package/src/lib/util/pipes/common-translate.pipe.ts +37 -0
  168. package/src/lib/util/pipes/display-html.pipe.ts +15 -0
  169. package/src/lib/util/pipes/display-null.pipe.ts +19 -0
  170. package/src/lib/util/pipes/format-duration.pipe.ts +16 -0
  171. package/src/lib/util/pipes/format-number-input.pipe.ts +19 -0
  172. package/src/lib/util/pipes/local-date.pipe.ts +29 -0
  173. package/src/lib/util/pipes/my-number.pipe.ts +51 -0
  174. package/src/lib/util/pipes/third-party-address.pipe.ts +13 -0
  175. package/src/lib/util/pipes/trim-string.pipe.ts +24 -0
  176. package/src/lib/util/regex/regex.service.ts +94 -0
  177. package/src/lib/util/regex/regex.spec.ts +45 -0
  178. package/src/lib/util/services/api/common-api.service.ts +121 -0
  179. package/src/lib/util/services/elasticsearch/elasticsearch.service.ts +67 -0
  180. package/src/lib/util/services/form-action/form-actions-events.service.ts +25 -0
  181. package/src/lib/util/services/guard/auth.guard.ts +43 -0
  182. package/src/lib/util/services/guard/login.guard.ts +31 -0
  183. package/src/lib/util/services/history/history.service.ts +38 -0
  184. package/src/lib/util/services/interceptor/auth.interceptor.ts +66 -0
  185. package/src/lib/util/services/jwt-security/aes.service.ts +48 -0
  186. package/src/lib/util/services/jwt-security/interceptorhttp.service.ts +98 -0
  187. package/src/lib/util/services/jwt-security/jwt.helpher.ts +38 -0
  188. package/src/lib/util/services/storage/local-storage.service.ts +36 -0
  189. package/src/lib/util/services/storage/session-storage.service.ts +39 -0
  190. package/src/lib/util/services/translate-language/lang.service.ts +26 -0
  191. package/src/lib/util/sort.ts +27 -0
  192. package/src/lib/util/theme/theme-event.service.ts +15 -0
  193. package/src/lib/util/toaster/toaster-events.service.ts +32 -0
  194. package/src/lib/util/util.module.ts +173 -0
  195. package/{public-api.d.ts → src/public-api.ts} +18 -2
  196. package/src/test.ts +25 -0
  197. package/tsconfig.lib.json +20 -0
  198. package/tsconfig.lib.prod.json +10 -0
  199. package/tsconfig.spec.json +17 -0
  200. package/bundles/new-front-common-library.umd.js +0 -5206
  201. package/bundles/new-front-common-library.umd.js.map +0 -1
  202. package/esm2015/lib/util/array.service.js +0 -19
  203. package/esm2015/lib/util/component/header/header.component.js +0 -189
  204. package/esm2015/lib/util/component/overlay/overlay.component.js +0 -44
  205. package/esm2015/lib/util/component/overlay/overlay.service.js +0 -24
  206. package/esm2015/lib/util/component/popup/popup-login/popup-login.component.js +0 -90
  207. package/esm2015/lib/util/component/sub-header/sub-header.component.js +0 -48
  208. package/esm2015/lib/util/config.js +0 -8
  209. package/esm2015/lib/util/date/PeriodModel.js +0 -8
  210. package/esm2015/lib/util/date/date-adapter.js +0 -41
  211. package/esm2015/lib/util/date/date-format-constants.js +0 -12
  212. package/esm2015/lib/util/date/date.util.js +0 -218
  213. package/esm2015/lib/util/decorators/theme.decorator.js +0 -22
  214. package/esm2015/lib/util/decorators/user.decorator.js +0 -25
  215. package/esm2015/lib/util/directives/my-number-formatter-directive.js +0 -34
  216. package/esm2015/lib/util/directives/show-if-truncated.directive.js +0 -25
  217. package/esm2015/lib/util/enums/rapid-search-item-type.enum.js +0 -10
  218. package/esm2015/lib/util/enums/status-color.enum.js +0 -11
  219. package/esm2015/lib/util/event/header/header-events.service.js +0 -21
  220. package/esm2015/lib/util/event/storage/local-storage-events.service.js +0 -17
  221. package/esm2015/lib/util/event/storage/session-storage-events.service.js +0 -18
  222. package/esm2015/lib/util/http/http-params.builder.js +0 -27
  223. package/esm2015/lib/util/i18n/de.js +0 -59
  224. package/esm2015/lib/util/i18n/en.js +0 -59
  225. package/esm2015/lib/util/i18n/fr.js +0 -59
  226. package/esm2015/lib/util/i18n/multi-translate-http-loader.js +0 -21
  227. package/esm2015/lib/util/interfaces/permissions.interface.js +0 -2
  228. package/esm2015/lib/util/models/any-line.model.js +0 -37
  229. package/esm2015/lib/util/models/audio-content.model.js +0 -27
  230. package/esm2015/lib/util/models/authPermission.model.js +0 -16
  231. package/esm2015/lib/util/models/authUser.model.js +0 -20
  232. package/esm2015/lib/util/models/basic.model.js +0 -14
  233. package/esm2015/lib/util/models/box-set-item.model.js +0 -19
  234. package/esm2015/lib/util/models/disc-program.model.js +0 -26
  235. package/esm2015/lib/util/models/disc.model.js +0 -22
  236. package/esm2015/lib/util/models/eventType.model.js +0 -7
  237. package/esm2015/lib/util/models/expenditure-commitment/purchase-order-file.model.js +0 -22
  238. package/esm2015/lib/util/models/expenditure-commitment/purchase-order-rapid-search.model.js +0 -3
  239. package/esm2015/lib/util/models/index.js +0 -98
  240. package/esm2015/lib/util/models/lang-line.model.js +0 -27
  241. package/esm2015/lib/util/models/legal/contract-work.model.js +0 -23
  242. package/esm2015/lib/util/models/legal/contract-work2.model.js +0 -21
  243. package/esm2015/lib/util/models/media-line.model.js +0 -18
  244. package/esm2015/lib/util/models/menu-language.model.js +0 -15
  245. package/esm2015/lib/util/models/milo/territory.model.js +0 -18
  246. package/esm2015/lib/util/models/permission.model.js +0 -20
  247. package/esm2015/lib/util/models/product-box-set.model.js +0 -16
  248. package/esm2015/lib/util/models/product-disc-detail.model.js +0 -22
  249. package/esm2015/lib/util/models/product-disc.model.js +0 -27
  250. package/esm2015/lib/util/models/product-division.model.js +0 -29
  251. package/esm2015/lib/util/models/product-type.model.js +0 -22
  252. package/esm2015/lib/util/models/product.model.js +0 -62
  253. package/esm2015/lib/util/models/program.model.js +0 -28
  254. package/esm2015/lib/util/models/purchase-order/purchase-order.model.js +0 -53
  255. package/esm2015/lib/util/models/referential/WorkVersionArticleDto.js +0 -17
  256. package/esm2015/lib/util/models/referential/adress-type.model.js +0 -14
  257. package/esm2015/lib/util/models/referential/adress.model.js +0 -28
  258. package/esm2015/lib/util/models/referential/attached-file.model.js +0 -17
  259. package/esm2015/lib/util/models/referential/bank-account.model.js +0 -24
  260. package/esm2015/lib/util/models/referential/bank-accounts.model.js +0 -31
  261. package/esm2015/lib/util/models/referential/basic-hierarchy.model.js +0 -8
  262. package/esm2015/lib/util/models/referential/broadcast-list-item.model.js +0 -13
  263. package/esm2015/lib/util/models/referential/color.model.js +0 -16
  264. package/esm2015/lib/util/models/referential/company.model.js +0 -16
  265. package/esm2015/lib/util/models/referential/content-type.model.js +0 -17
  266. package/esm2015/lib/util/models/referential/content.model.js +0 -22
  267. package/esm2015/lib/util/models/referential/cost-center-criteria-values.model.js +0 -14
  268. package/esm2015/lib/util/models/referential/cost-center-criteria.model.js +0 -13
  269. package/esm2015/lib/util/models/referential/cost-center.model.js +0 -28
  270. package/esm2015/lib/util/models/referential/coutry.model.js +0 -16
  271. package/esm2015/lib/util/models/referential/currency.model.js +0 -20
  272. package/esm2015/lib/util/models/referential/editorial-content.model.js +0 -18
  273. package/esm2015/lib/util/models/referential/fixing.model.js +0 -16
  274. package/esm2015/lib/util/models/referential/flat-media.model.js +0 -18
  275. package/esm2015/lib/util/models/referential/format-image.model.js +0 -16
  276. package/esm2015/lib/util/models/referential/format-type.model.js +0 -16
  277. package/esm2015/lib/util/models/referential/format.model.js +0 -17
  278. package/esm2015/lib/util/models/referential/fsk-index.model.js +0 -20
  279. package/esm2015/lib/util/models/referential/fsk.model.js +0 -22
  280. package/esm2015/lib/util/models/referential/function.model.js +0 -23
  281. package/esm2015/lib/util/models/referential/genre.model.js +0 -17
  282. package/esm2015/lib/util/models/referential/invoice-product-type.model.js +0 -22
  283. package/esm2015/lib/util/models/referential/keywords.model.js +0 -2
  284. package/esm2015/lib/util/models/referential/language.model.js +0 -18
  285. package/esm2015/lib/util/models/referential/media-filter.model.js +0 -3
  286. package/esm2015/lib/util/models/referential/media.model.js +0 -20
  287. package/esm2015/lib/util/models/referential/module.model.js +0 -20
  288. package/esm2015/lib/util/models/referential/parameter.model.js +0 -2
  289. package/esm2015/lib/util/models/referential/participant.model.js +0 -20
  290. package/esm2015/lib/util/models/referential/person.model.js +0 -23
  291. package/esm2015/lib/util/models/referential/project-status.model.js +0 -16
  292. package/esm2015/lib/util/models/referential/quota.model.js +0 -17
  293. package/esm2015/lib/util/models/referential/referential-entity-state.model.js +0 -16
  294. package/esm2015/lib/util/models/referential/referential-value.model.js +0 -16
  295. package/esm2015/lib/util/models/referential/referentiel.model.js +0 -26
  296. package/esm2015/lib/util/models/referential/restriction.model.js +0 -20
  297. package/esm2015/lib/util/models/referential/sap-order.model.js +0 -20
  298. package/esm2015/lib/util/models/referential/service-error.model.js +0 -15
  299. package/esm2015/lib/util/models/referential/sound.model.js +0 -16
  300. package/esm2015/lib/util/models/referential/territories-languages.model.js +0 -16
  301. package/esm2015/lib/util/models/referential/territory-filter.model.js +0 -3
  302. package/esm2015/lib/util/models/referential/territory.model.js +0 -17
  303. package/esm2015/lib/util/models/referential/theme.model.js +0 -17
  304. package/esm2015/lib/util/models/referential/third-party-creation-request.model.js +0 -44
  305. package/esm2015/lib/util/models/referential/third-party-module.model.js +0 -20
  306. package/esm2015/lib/util/models/referential/third-party.model.js +0 -83
  307. package/esm2015/lib/util/models/referential/translated-value-model.js +0 -16
  308. package/esm2015/lib/util/models/referential/tva.model.js +0 -16
  309. package/esm2015/lib/util/models/referential/type-export.model.js +0 -16
  310. package/esm2015/lib/util/models/referential/type-tva-company-territory.model.js +0 -32
  311. package/esm2015/lib/util/models/referential/type-tva.model.js +0 -25
  312. package/esm2015/lib/util/models/referential/work-addons-model.js +0 -16
  313. package/esm2015/lib/util/models/referential/work-appartenance.model.js +0 -17
  314. package/esm2015/lib/util/models/referential/work-genre.model.js +0 -16
  315. package/esm2015/lib/util/models/referential/work-language.model.js +0 -16
  316. package/esm2015/lib/util/models/referential/work-milo.model.js +0 -61
  317. package/esm2015/lib/util/models/referential/work-participant.model.js +0 -21
  318. package/esm2015/lib/util/models/referential/work-restrictions-model.js +0 -13
  319. package/esm2015/lib/util/models/referential/work-theme.model.js +0 -16
  320. package/esm2015/lib/util/models/referential/work-title.model.js +0 -20
  321. package/esm2015/lib/util/models/referential/work-version-origin.model.js +0 -16
  322. package/esm2015/lib/util/models/referential/work-version-rapid-search.model.js +0 -3
  323. package/esm2015/lib/util/models/referential/work-versions-used.model.js +0 -19
  324. package/esm2015/lib/util/models/referential/work-versions.model.js +0 -27
  325. package/esm2015/lib/util/models/referential/work-year-production.model.js +0 -13
  326. package/esm2015/lib/util/models/referential/work.model.js +0 -22
  327. package/esm2015/lib/util/models/referential/zone.model.js +0 -14
  328. package/esm2015/lib/util/models/referentiel.model.js +0 -26
  329. package/esm2015/lib/util/models/search-response.model.js +0 -10
  330. package/esm2015/lib/util/models/section.model.js +0 -8
  331. package/esm2015/lib/util/models/select/options.model.js +0 -8
  332. package/esm2015/lib/util/models/select/select.model.js +0 -7
  333. package/esm2015/lib/util/models/subtitle-content.model.js +0 -28
  334. package/esm2015/lib/util/models/user-video.model.js +0 -22
  335. package/esm2015/lib/util/models/user.model.js +0 -34
  336. package/esm2015/lib/util/models/video/product-rapid-search.model.js +0 -3
  337. package/esm2015/lib/util/models/video/support-rapid-search.model.js +0 -3
  338. package/esm2015/lib/util/models/video-content.model.js +0 -18
  339. package/esm2015/lib/util/number.validator.js +0 -129
  340. package/esm2015/lib/util/permissions/permissions.service.js +0 -41
  341. package/esm2015/lib/util/pipes/capitalizefirst.pipe.js +0 -41
  342. package/esm2015/lib/util/pipes/comma-separated-number.pipe.js +0 -15
  343. package/esm2015/lib/util/pipes/common-translate.pipe.js +0 -38
  344. package/esm2015/lib/util/pipes/display-html.pipe.js +0 -20
  345. package/esm2015/lib/util/pipes/display-null.pipe.js +0 -24
  346. package/esm2015/lib/util/pipes/format-duration.pipe.js +0 -23
  347. package/esm2015/lib/util/pipes/format-number-input.pipe.js +0 -22
  348. package/esm2015/lib/util/pipes/local-date.pipe.js +0 -27
  349. package/esm2015/lib/util/pipes/my-number.pipe.js +0 -44
  350. package/esm2015/lib/util/pipes/third-party-address.pipe.js +0 -17
  351. package/esm2015/lib/util/pipes/trim-string.pipe.js +0 -25
  352. package/esm2015/lib/util/regex/regex.service.js +0 -94
  353. package/esm2015/lib/util/services/api/common-api.service.js +0 -98
  354. package/esm2015/lib/util/services/elasticsearch/elasticsearch.service.js +0 -65
  355. package/esm2015/lib/util/services/form-action/form-actions-events.service.js +0 -25
  356. package/esm2015/lib/util/services/guard/auth.guard.js +0 -43
  357. package/esm2015/lib/util/services/guard/login.guard.js +0 -34
  358. package/esm2015/lib/util/services/history/history.service.js +0 -39
  359. package/esm2015/lib/util/services/interceptor/auth.interceptor.js +0 -53
  360. package/esm2015/lib/util/services/jwt-security/aes.service.js +0 -34
  361. package/esm2015/lib/util/services/jwt-security/interceptorhttp.service.js +0 -18
  362. package/esm2015/lib/util/services/jwt-security/jwt.helpher.js +0 -34
  363. package/esm2015/lib/util/services/storage/local-storage.service.js +0 -36
  364. package/esm2015/lib/util/services/storage/session-storage.service.js +0 -38
  365. package/esm2015/lib/util/services/translate-language/lang.service.js +0 -31
  366. package/esm2015/lib/util/sort.js +0 -22
  367. package/esm2015/lib/util/theme/theme-event.service.js +0 -17
  368. package/esm2015/lib/util/toaster/toaster-events.service.js +0 -32
  369. package/esm2015/lib/util/util.module.js +0 -270
  370. package/esm2015/new-front-common-library.js +0 -5
  371. package/esm2015/public-api.js +0 -56
  372. package/fesm2015/new-front-common-library.js +0 -4380
  373. package/fesm2015/new-front-common-library.js.map +0 -1
  374. package/lib/util/array.service.d.ts +0 -7
  375. package/lib/util/component/header/header.component.d.ts +0 -65
  376. package/lib/util/component/overlay/overlay.component.d.ts +0 -17
  377. package/lib/util/component/overlay/overlay.service.d.ts +0 -13
  378. package/lib/util/component/popup/popup-login/popup-login.component.d.ts +0 -32
  379. package/lib/util/component/sub-header/sub-header.component.d.ts +0 -13
  380. package/lib/util/config.d.ts +0 -8
  381. package/lib/util/date/PeriodModel.d.ts +0 -6
  382. package/lib/util/date/date-adapter.d.ts +0 -8
  383. package/lib/util/date/date-format-constants.d.ts +0 -25
  384. package/lib/util/date/date.util.d.ts +0 -16
  385. package/lib/util/decorators/theme.decorator.d.ts +0 -1
  386. package/lib/util/decorators/user.decorator.d.ts +0 -1
  387. package/lib/util/directives/my-number-formatter-directive.d.ts +0 -15
  388. package/lib/util/directives/show-if-truncated.directive.d.ts +0 -11
  389. package/lib/util/enums/rapid-search-item-type.enum.d.ts +0 -8
  390. package/lib/util/enums/status-color.enum.d.ts +0 -9
  391. package/lib/util/event/header/header-events.service.d.ts +0 -11
  392. package/lib/util/event/storage/local-storage-events.service.d.ts +0 -9
  393. package/lib/util/event/storage/session-storage-events.service.d.ts +0 -10
  394. package/lib/util/http/http-params.builder.d.ts +0 -9
  395. package/lib/util/i18n/de.d.ts +0 -50
  396. package/lib/util/i18n/en.d.ts +0 -50
  397. package/lib/util/i18n/fr.d.ts +0 -50
  398. package/lib/util/i18n/multi-translate-http-loader.d.ts +0 -14
  399. package/lib/util/models/any-line.model.d.ts +0 -24
  400. package/lib/util/models/audio-content.model.d.ts +0 -27
  401. package/lib/util/models/authPermission.model.d.ts +0 -7
  402. package/lib/util/models/authUser.model.d.ts +0 -14
  403. package/lib/util/models/basic.model.d.ts +0 -11
  404. package/lib/util/models/box-set-item.model.d.ts +0 -12
  405. package/lib/util/models/disc-program.model.d.ts +0 -9
  406. package/lib/util/models/disc.model.d.ts +0 -15
  407. package/lib/util/models/eventType.model.d.ts +0 -5
  408. package/lib/util/models/expenditure-commitment/purchase-order-file.model.d.ts +0 -8
  409. package/lib/util/models/expenditure-commitment/purchase-order-rapid-search.model.d.ts +0 -10
  410. package/lib/util/models/lang-line.model.d.ts +0 -18
  411. package/lib/util/models/legal/contract-work.model.d.ts +0 -27
  412. package/lib/util/models/legal/contract-work2.model.d.ts +0 -23
  413. package/lib/util/models/media-line.model.d.ts +0 -9
  414. package/lib/util/models/menu-language.model.d.ts +0 -6
  415. package/lib/util/models/milo/territory.model.d.ts +0 -9
  416. package/lib/util/models/permission.model.d.ts +0 -12
  417. package/lib/util/models/product-box-set.model.d.ts +0 -8
  418. package/lib/util/models/product-disc-detail.model.d.ts +0 -14
  419. package/lib/util/models/product-disc.model.d.ts +0 -11
  420. package/lib/util/models/product-division.model.d.ts +0 -15
  421. package/lib/util/models/product-type.model.d.ts +0 -7
  422. package/lib/util/models/product.model.d.ts +0 -52
  423. package/lib/util/models/program.model.d.ts +0 -21
  424. package/lib/util/models/purchase-order/purchase-order.model.d.ts +0 -40
  425. package/lib/util/models/referential/WorkVersionArticleDto.d.ts +0 -10
  426. package/lib/util/models/referential/adress-type.model.d.ts +0 -5
  427. package/lib/util/models/referential/adress.model.d.ts +0 -20
  428. package/lib/util/models/referential/attached-file.model.d.ts +0 -11
  429. package/lib/util/models/referential/bank-account.model.d.ts +0 -15
  430. package/lib/util/models/referential/bank-accounts.model.d.ts +0 -17
  431. package/lib/util/models/referential/basic-hierarchy.model.d.ts +0 -6
  432. package/lib/util/models/referential/broadcast-list-item.model.d.ts +0 -8
  433. package/lib/util/models/referential/color.model.d.ts +0 -6
  434. package/lib/util/models/referential/company.model.d.ts +0 -7
  435. package/lib/util/models/referential/content-type.model.d.ts +0 -12
  436. package/lib/util/models/referential/content.model.d.ts +0 -7
  437. package/lib/util/models/referential/cost-center-criteria-values.model.d.ts +0 -7
  438. package/lib/util/models/referential/cost-center-criteria.model.d.ts +0 -12
  439. package/lib/util/models/referential/cost-center.model.d.ts +0 -18
  440. package/lib/util/models/referential/coutry.model.d.ts +0 -7
  441. package/lib/util/models/referential/currency.model.d.ts +0 -11
  442. package/lib/util/models/referential/editorial-content.model.d.ts +0 -25
  443. package/lib/util/models/referential/fixing.model.d.ts +0 -10
  444. package/lib/util/models/referential/flat-media.model.d.ts +0 -9
  445. package/lib/util/models/referential/format-image.model.d.ts +0 -7
  446. package/lib/util/models/referential/format-type.model.d.ts +0 -6
  447. package/lib/util/models/referential/format.model.d.ts +0 -7
  448. package/lib/util/models/referential/fsk-index.model.d.ts +0 -22
  449. package/lib/util/models/referential/fsk.model.d.ts +0 -37
  450. package/lib/util/models/referential/function.model.d.ts +0 -8
  451. package/lib/util/models/referential/genre.model.d.ts +0 -7
  452. package/lib/util/models/referential/invoice-product-type.model.d.ts +0 -7
  453. package/lib/util/models/referential/language.model.d.ts +0 -11
  454. package/lib/util/models/referential/media-filter.model.d.ts +0 -10
  455. package/lib/util/models/referential/media.model.d.ts +0 -11
  456. package/lib/util/models/referential/module.model.d.ts +0 -11
  457. package/lib/util/models/referential/participant.model.d.ts +0 -11
  458. package/lib/util/models/referential/person.model.d.ts +0 -13
  459. package/lib/util/models/referential/project-status.model.d.ts +0 -6
  460. package/lib/util/models/referential/quota.model.d.ts +0 -7
  461. package/lib/util/models/referential/referential-entity-state.model.d.ts +0 -11
  462. package/lib/util/models/referential/referential-value.model.d.ts +0 -11
  463. package/lib/util/models/referential/referentiel.model.d.ts +0 -12
  464. package/lib/util/models/referential/restriction.model.d.ts +0 -9
  465. package/lib/util/models/referential/sap-order.model.d.ts +0 -27
  466. package/lib/util/models/referential/service-error.model.d.ts +0 -13
  467. package/lib/util/models/referential/sound.model.d.ts +0 -6
  468. package/lib/util/models/referential/territories-languages.model.d.ts +0 -8
  469. package/lib/util/models/referential/territory-filter.model.d.ts +0 -6
  470. package/lib/util/models/referential/territory.model.d.ts +0 -11
  471. package/lib/util/models/referential/theme.model.d.ts +0 -7
  472. package/lib/util/models/referential/third-party-creation-request.model.d.ts +0 -48
  473. package/lib/util/models/referential/third-party-module.model.d.ts +0 -11
  474. package/lib/util/models/referential/third-party.model.d.ts +0 -45
  475. package/lib/util/models/referential/translated-value-model.d.ts +0 -10
  476. package/lib/util/models/referential/tva.model.d.ts +0 -7
  477. package/lib/util/models/referential/type-export.model.d.ts +0 -7
  478. package/lib/util/models/referential/type-tva-company-territory.model.d.ts +0 -18
  479. package/lib/util/models/referential/type-tva.model.d.ts +0 -10
  480. package/lib/util/models/referential/work-addons-model.d.ts +0 -25
  481. package/lib/util/models/referential/work-appartenance.model.d.ts +0 -7
  482. package/lib/util/models/referential/work-genre.model.d.ts +0 -11
  483. package/lib/util/models/referential/work-language.model.d.ts +0 -11
  484. package/lib/util/models/referential/work-milo.model.d.ts +0 -46
  485. package/lib/util/models/referential/work-participant.model.d.ts +0 -10
  486. package/lib/util/models/referential/work-restrictions-model.d.ts +0 -18
  487. package/lib/util/models/referential/work-theme.model.d.ts +0 -11
  488. package/lib/util/models/referential/work-title.model.d.ts +0 -10
  489. package/lib/util/models/referential/work-version-origin.model.d.ts +0 -10
  490. package/lib/util/models/referential/work-version-rapid-search.model.d.ts +0 -9
  491. package/lib/util/models/referential/work-versions-used.model.d.ts +0 -12
  492. package/lib/util/models/referential/work-versions.model.d.ts +0 -29
  493. package/lib/util/models/referential/work-year-production.model.d.ts +0 -6
  494. package/lib/util/models/referential/work.model.d.ts +0 -74
  495. package/lib/util/models/referential/zone.model.d.ts +0 -6
  496. package/lib/util/models/referentiel.model.d.ts +0 -12
  497. package/lib/util/models/search-response.model.d.ts +0 -7
  498. package/lib/util/models/section.model.d.ts +0 -7
  499. package/lib/util/models/select/options.model.d.ts +0 -6
  500. package/lib/util/models/select/select.model.d.ts +0 -5
  501. package/lib/util/models/subtitle-content.model.d.ts +0 -26
  502. package/lib/util/models/user-video.model.d.ts +0 -10
  503. package/lib/util/models/user.model.d.ts +0 -25
  504. package/lib/util/models/video/product-rapid-search.model.d.ts +0 -8
  505. package/lib/util/models/video/support-rapid-search.model.d.ts +0 -6
  506. package/lib/util/models/video-content.model.d.ts +0 -24
  507. package/lib/util/number.validator.d.ts +0 -14
  508. package/lib/util/permissions/permissions.service.d.ts +0 -12
  509. package/lib/util/pipes/capitalizefirst.pipe.d.ts +0 -8
  510. package/lib/util/pipes/comma-separated-number.pipe.d.ts +0 -7
  511. package/lib/util/pipes/common-translate.pipe.d.ts +0 -12
  512. package/lib/util/pipes/display-html.pipe.d.ts +0 -10
  513. package/lib/util/pipes/display-null.pipe.d.ts +0 -8
  514. package/lib/util/pipes/format-duration.pipe.d.ts +0 -7
  515. package/lib/util/pipes/format-number-input.pipe.d.ts +0 -7
  516. package/lib/util/pipes/local-date.pipe.d.ts +0 -9
  517. package/lib/util/pipes/my-number.pipe.d.ts +0 -11
  518. package/lib/util/pipes/third-party-address.pipe.d.ts +0 -8
  519. package/lib/util/pipes/trim-string.pipe.d.ts +0 -7
  520. package/lib/util/regex/regex.service.d.ts +0 -12
  521. package/lib/util/services/api/common-api.service.d.ts +0 -27
  522. package/lib/util/services/elasticsearch/elasticsearch.service.d.ts +0 -17
  523. package/lib/util/services/form-action/form-actions-events.service.d.ts +0 -14
  524. package/lib/util/services/guard/auth.guard.d.ts +0 -18
  525. package/lib/util/services/guard/login.guard.d.ts +0 -18
  526. package/lib/util/services/history/history.service.d.ts +0 -10
  527. package/lib/util/services/interceptor/auth.interceptor.d.ts +0 -16
  528. package/lib/util/services/jwt-security/aes.service.d.ts +0 -12
  529. package/lib/util/services/jwt-security/interceptorhttp.service.d.ts +0 -8
  530. package/lib/util/services/jwt-security/jwt.helpher.d.ts +0 -4
  531. package/lib/util/services/storage/local-storage.service.d.ts +0 -13
  532. package/lib/util/services/storage/session-storage.service.d.ts +0 -13
  533. package/lib/util/services/translate-language/lang.service.d.ts +0 -14
  534. package/lib/util/sort.d.ts +0 -4
  535. package/lib/util/theme/theme-event.service.d.ts +0 -9
  536. package/lib/util/toaster/toaster-events.service.d.ts +0 -15
  537. package/lib/util/util.module.d.ts +0 -50
  538. package/new-front-common-library.d.ts +0 -5
  539. /package/{lib/util/interfaces/permissions.interface.d.ts → src/lib/util/interfaces/permissions.interface.ts} +0 -0
@@ -8,9 +8,9 @@
8
8
 
9
9
  @font-face {
10
10
 
11
- font-family: "Sofia pro";
11
+ font-family: "Sofia Pro";
12
12
 
13
- src: local("Sofia pro"), url('../fonts/SofiaPro.ttf') format("truetype");
13
+ src: local("Sofia Pro"), url('../fonts/SofiaPro.ttf') format("truetype");
14
14
 
15
15
  }
16
16
 
Binary file
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
+ };
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "../../dist/new-front-common-library",
4
+ "assets": [
5
+ "./assets"
6
+ ],
7
+ "lib": {
8
+ "entryFile": "src/public-api.ts"
9
+ }
10
+ }
package/package.json CHANGED
@@ -1,28 +1,18 @@
1
- {
2
- "name": "new-front-common-library",
3
- "version": "0.0.72",
4
- "Dependencies": {
5
- "@angular/common": "^12.2.0",
6
- "@angular/core": "^12.2.0",
7
- "tslib": "^2.3.0"
8
- },
9
- "peerDependencies": {
10
- "@angular/cdk": "^12.2.2",
11
- "@angular/material": "^12.2.2",
12
- "@ngx-translate/core": "^13.0.0",
13
- "@ngx-translate/http-loader": "6.0.0",
14
- "crypto-js": "^4.1.1",
15
- "ngx-cookie-service": "^12.0.3",
16
- "ngx-permissions": "^8.1.1"
17
- },
18
- "main": "bundles/new-front-common-library.umd.js",
19
- "module": "fesm2015/new-front-common-library.js",
20
- "es2015": "fesm2015/new-front-common-library.js",
21
- "esm2015": "esm2015/new-front-common-library.js",
22
- "fesm2015": "fesm2015/new-front-common-library.js",
23
- "typings": "new-front-common-library.d.ts",
24
- "sideEffects": false,
25
- "dependencies": {
26
- "tslib": "^2.2.0"
27
- }
28
- }
1
+ {
2
+ "name": "new-front-common-library",
3
+ "version": "0.0.73",
4
+ "Dependencies": {
5
+ "@angular/common": "^12.2.0",
6
+ "@angular/core": "^12.2.0",
7
+ "tslib": "^2.3.0"
8
+ },
9
+ "peerDependencies": {
10
+ "@angular/cdk": "^12.2.2",
11
+ "@angular/material": "^12.2.2",
12
+ "@ngx-translate/core": "^13.0.0",
13
+ "@ngx-translate/http-loader": "6.0.0",
14
+ "crypto-js": "^4.1.1",
15
+ "ngx-cookie-service": "^12.0.3",
16
+ "ngx-permissions": "^8.1.1"
17
+ }
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,10 @@
1
+ import { Injectable } from '@angular/core';
2
+
3
+ @Injectable({
4
+ providedIn: 'root'
5
+ })
6
+ export class NewFrontCommonLibraryService {
7
+
8
+ constructor() {
9
+ }
10
+ }
@@ -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,306 @@
1
+ <mat-toolbar [ngClass]="{ 'light-header': theme !== 'dark' }"
2
+ class="sc-header d-flex align-items-center">
3
+ <span class="d-flex align-items-end">
4
+ <a
5
+ [href]="env === 'prod' ? 'https://unity.studiocanal.com/dashboard' : (env === 'sbx' ? 'https://unity-sbx.cplus/dashboard' : 'https://unity-' + env + '.studiocanal.com/dashboard')">
6
+ <img class="logo-unity" src="./assets/img/unity_logo_48x48.png">
7
+ </a>
8
+ <span *ngIf="env != 'prod'" [attr.id]="'env-' + env" class="env">{{env}}</span>
9
+ </span>
10
+ <span class="header-separator"></span>
11
+ <span [matMenuTriggerFor]="menu_global" class="material-icons header-icon max-width-5">apps</span>
12
+ <mat-menu #menu_global="matMenu" class="action-menu">
13
+ <!--DASHBOARD-->
14
+ <button (click)="navigate(null, '/dashboard')" mat-menu-item>
15
+ <span class="material-icons-outlined">apps</span>
16
+ <span>{{ 'COMMON.HEADER.MENU.DASHBOARD' | commonTranslate: lang }}</span>
17
+ </button>
18
+ <!--COMMERCIAL-->
19
+ <span *ngxPermissionsOnly="['COMMERCIAL']">
20
+ <button (click)="navigate('commercial', '/deal/search')" mat-menu-item>
21
+ <span class="material-icons-outlined">local_offer</span>
22
+ <span>{{ 'COMMON.HEADER.MENU.COMMERCIAL.DEAL' | commonTranslate: lang }}</span>
23
+ </button>
24
+ <button (click)="navigate('commercial', '/work-record/search')" mat-menu-item>
25
+ <span class="material-icons-outlined">theaters</span>
26
+ <span>{{ 'COMMON.HEADER.MENU.COMMERCIAL.WORK_RECORD' | commonTranslate: lang }}</span>
27
+ </button>
28
+ <button (click)="navigate('commercial', '/vod/search')" mat-menu-item>
29
+ <span class="material-icons-outlined">manage_search</span>
30
+ <span>{{ 'COMMON.HEADER.MENU.COMMERCIAL.VOD_SEARCH' | commonTranslate: lang }}</span>
31
+ </button>
32
+ <button (click)="navigate('commercial', '/accounting-closing/consult')"
33
+ *ngxPermissionsOnly="['ACCOUNTANT', 'ADMINISTRATIVE_CONTROLLER']"
34
+ mat-menu-item>
35
+ <span class="material-icons-outlined">account_balance_wallet</span>
36
+ <span>{{ 'COMMON.HEADER.MENU.COMMERCIAL.ACCOUNTING_CLOSING' | commonTranslate: lang }}</span>
37
+ </button>
38
+ <button (click)="navigate('commercial', '/invoice/search')" mat-menu-item>
39
+ <span class="material-icons-outlined">receipt</span>
40
+ <span>{{ 'COMMON.HEADER.MENU.COMMERCIAL.INVOICE' | commonTranslate: lang }}</span>
41
+ </button>
42
+ <button (click)="navigate('commercial', '/turnover/search')"
43
+ *ngxPermissionsOnly="['ACCOUNTANT', 'ADMINISTRATIVE_CONTROLLER']"
44
+ mat-menu-item>
45
+ <span class="material-icons-outlined">request_quote</span>
46
+ <span>{{ 'COMMON.HEADER.MENU.COMMERCIAL.TURNOVER' | commonTranslate: lang }}</span>
47
+ </button>
48
+ </span>
49
+ <!--USER-->
50
+ <button (click)="navigate('user', '/account/authorization/search')" *ngIf="user && user.admin" mat-menu-item>
51
+ <span class="material-icons-outlined">manage_accounts</span>
52
+ <span>{{ 'COMMON.HEADER.MENU.USER.SECTION_TITLE' | commonTranslate: lang }}</span>
53
+ </button>
54
+ <!--MY PREFERENCES-->
55
+ <button (click)="navigate('user', '/account/settings')" mat-menu-item>
56
+ <span class="material-icons-outlined">settings</span>
57
+ <span>{{ 'COMMON.HEADER.MENU.USER.SETTINGS' | commonTranslate: lang }}</span>
58
+ </button>
59
+ <!--BATCH-->
60
+ <button (click)="navigate('batch', '/jobs/referential')" *ngxPermissionsOnly="['MODULE REF']" mat-menu-item>
61
+ <span class="material-icons-outlined">autorenew</span>
62
+ <span>{{ 'COMMON.HEADER.MENU.REFERENTIAL.BATCH' | commonTranslate: lang }}</span>
63
+ </button>
64
+ <!--TV DATA-->
65
+ <button (click)="navigate('tvdata', '/infos-center')" *ngxPermissionsOnly="['TVDATA']" mat-menu-item>
66
+ <span class="material-icons-outlined">source</span>
67
+ <span>{{ 'COMMON.HEADER.MENU.TV-DATA' | commonTranslate: lang }}</span>
68
+ </button>
69
+ <!--EXPENDITURE COMMITMENT-->
70
+ <button (click)="navigate('expenditure-commitment', '/home/commands')" *ngxPermissionsExcept="['UNIVERSAL_ROLE']"
71
+ mat-menu-item>
72
+ <span class="material-icons-outlined">receipt_long</span>
73
+ <span>{{ 'COMMON.HEADER.MENU.EXPENDITURE_COMMITMENT' | commonTranslate: lang }}</span>
74
+ </button>
75
+ <!--BI-->
76
+ <button (click)="navigate('bi', '/simple-search/form')" *ngxPermissionsOnly="['MODULE BI']" mat-menu-item>
77
+ <span class="material-icons-outlined">travel_explore</span>
78
+ <span>{{ 'COMMON.HEADER.MENU.BI.SEARCH' | commonTranslate: lang }}</span>
79
+ </button>
80
+ <!--LEGAL-->
81
+ <button (click)="navigate('legal', '/contracts/menu/legals-det')" *ngxPermissionsOnly="['LEGAL']" mat-menu-item>
82
+ <span class="material-icons-outlined">gavel</span>
83
+ <span>{{ 'COMMON.HEADER.MENU.LEGAL' | commonTranslate: lang }}</span>
84
+ </button>
85
+ <!--CALENDAR-->
86
+ <button (click)="navigate('calendar', '')" mat-menu-item>
87
+ <span class="material-icons-outlined">calendar_month</span>
88
+ <span>{{ 'COMMON.HEADER.MENU.CALENDAR' | commonTranslate: lang }}</span>
89
+ </button>
90
+ </mat-menu>
91
+ <span class="header-separator"></span>
92
+ <span [matMenuTriggerFor]="menu" class="material-icons-outlined header-icon max-width-5">add_box</span>
93
+ <mat-menu #menu="matMenu" class="action-menu">
94
+ <button (click)="navigate('video', '/product/form')" mat-menu-item>
95
+ <span class="material-icons-outlined">theaters</span>
96
+ {{ 'COMMON.HEADER.CREATION.PRODUCT' | commonTranslate: lang }}
97
+ </button>
98
+ <button (click)="navigate('expenditure-commitment', '/purchase-orders/form')" mat-menu-item>
99
+ <span class="material-icons-outlined">receipt_long</span>
100
+ {{ 'COMMON.HEADER.CREATION.PO' | commonTranslate: lang }}
101
+ </button>
102
+ <button (click)="navigate('commercial', '/deal/form')" mat-menu-item>
103
+ <span class="material-icons-outlined">local_offer</span>
104
+ {{ 'COMMON.HEADER.CREATION.DEAL' | commonTranslate: lang }}
105
+ </button>
106
+
107
+ <button (click)="navigate('legal', '/createContract/acq')" mat-menu-item>
108
+ <span class="material-icons-outlined">shop_two</span>
109
+ {{ 'COMMON.HEADER.CREATION.CREATION_ACQ' | commonTranslate: lang }}
110
+ </button>
111
+ <button (click)="navigate('legal', '/createContract/sales')" mat-menu-item>
112
+ <span class="material-icons-outlined">article</span>
113
+ {{ 'COMMON.HEADER.CREATION.CREATION_CESS' | commonTranslate: lang }}
114
+ </button>
115
+ <button (click)="navigate('legal', '/createContract/auth')" mat-menu-item>
116
+ <span class="material-icons-outlined">account_circle</span>
117
+ {{ 'COMMON.HEADER.CREATION.CREATION_AUTH' | commonTranslate: lang }}
118
+ </button>
119
+ </mat-menu>
120
+ <span class="header-separator"></span>
121
+ <span (click)="getHistory()" [matMenuTriggerFor]="menuHistory"
122
+ class="material-icons header-icon max-width-5">history</span>
123
+ <mat-menu #menuHistory="matMenu" class="action-menu">
124
+ <ng-container *ngFor="let history of historyList" [ngSwitch]="history.type">
125
+ <button (click)="navigate('expenditure-commitment', '/purchase-orders/' + history.id)" *ngSwitchCase="'PRODUCT'"
126
+ mat-menu-item>
127
+ <span class="material-icons-outlined">theaters</span>
128
+ {{ 'COMMON.HEADER.HISTORY.PRODUCT' | commonTranslate : lang }}{{history.type}} {{history.ref}}
129
+ </button>
130
+ <button (click)="navigate('expenditure-commitment', '/purchase-orders/' + history.id)" *ngSwitchCase="'PO'"
131
+ mat-menu-item>
132
+ <span class="material-icons-outlined">receipt_long</span>
133
+ {{ 'COMMON.HEADER.HISTORY.PO' | commonTranslate : lang }} {{history.ref}}
134
+ </button>
135
+ <button (click)="navigate('commercial', '/deal/consult/' + history.id)" *ngSwitchCase="'DEAL'"
136
+ mat-menu-item>
137
+ <span class="material-icons-outlined">local_offer</span>
138
+ {{ 'COMMON.HEADER.HISTORY.DEAL' | commonTranslate : lang }} {{history.ref}}
139
+ </button>
140
+ <button (click)="navigate('commercial', '/work-record/consult/'+ history.id +'/general')" *ngSwitchCase="'WORK'"
141
+ mat-menu-item>
142
+ <span class="material-icons-outlined">theaters</span>
143
+ {{ 'COMMON.HEADER.HISTORY.WORK' | commonTranslate : lang }} {{history.ref}}
144
+ </button>
145
+ <button (click)="navigate('legal', '/contracts/contract-acq/consult/' + history.id)"
146
+ *ngSwitchCase="'CONTRACT_ACQ'"
147
+ mat-menu-item>
148
+ <span class="material-icons-outlined">assignment</span>
149
+ {{ 'COMMON.HEADER.HISTORY.CONTRACT-ACQ' | commonTranslate : lang }} {{history.ref}}
150
+ </button>
151
+ <button (click)="navigate('legal', '/contracts/contract-cess/consult/' + history.id)"
152
+ *ngSwitchCase="'CONTRACT_CESS'"
153
+ mat-menu-item>
154
+ <span class="material-icons-outlined">article</span>
155
+ {{ 'COMMON.HEADER.HISTORY.CONTRACT-CESS' | commonTranslate : lang }} {{history.ref}}
156
+ </button>
157
+ <button (click)="navigate('expenditure-commitment', '/budget/form/' + history.id)" *ngSwitchCase="'BUDGET'"
158
+ mat-menu-item>
159
+ <span class="material-icons-outlined">payments</span>
160
+ {{ 'COMMON.HEADER.HISTORY.BUDGET' | commonTranslate : lang }} {{history.ref}}
161
+ </button>
162
+ <button *ngSwitchCase="'NO_HISTORY_AVAILABLE'" mat-menu-item>
163
+ <span class="material-icons-outlined">not_interested</span>
164
+ {{ 'COMMON.HEADER.HISTORY.NO_HISTORY_AVAILABLE' | commonTranslate : lang }}
165
+ </button>
166
+ </ng-container>
167
+ </mat-menu>
168
+
169
+ <div class="global-search d-flex max-width-60">
170
+ <i class="material-icons global-search-icon header-icon">search</i>
171
+ <span class="global-search-separator"></span>
172
+ <mat-form-field class="max-width-100" floatLabel="never">
173
+ <div class="d-flex">
174
+ <input [formControl]="formControlSearch" [matAutocomplete]="autoSearch"
175
+ class="global-search-input max-width-85"
176
+ id="search-input"
177
+ matInput
178
+ placeholder="search ..."/>
179
+ <button (click)="navigate(null, '/advanced-search')"
180
+ class="btn advanced-button" mat-raised-button>
181
+ <span class="material-icons icon">flash_on</span>
182
+ {{ 'COMMON.HEADER.GLOBAL_SEARCH.ADVANCED' | commonTranslate: lang }}
183
+ </button>
184
+
185
+ <mat-autocomplete #autoSearch="matAutocomplete" class="mat-autocomplete-global-search" panelWidth="56vw">
186
+ <mat-option (onSelectionChange)="onSelectSearch($event, doc)"
187
+ *ngFor="let doc of documents$ | async"
188
+ class="mat-option-global-search">
189
+ <!--PURCHASE_ORDER-->
190
+ <div *ngIf="doc.docType === RapidSearchItemType.PURCHASE_ORDER" class="d-flex align-items-center">
191
+ <div class="max-width-5">
192
+ <span class="material-icons-outlined rapid-search-type-icon">receipt_long</span>
193
+ </div>
194
+ <div class="d-flex max-width-95">
195
+ <div class="d-flex flex-column max-width-70">
196
+ <span
197
+ class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.PURCHASE_ORDER' | commonTranslate: lang }}</span>
198
+ <span>{{ doc.poNumber }}
199
+ - {{ doc.totalAmount | currency: doc.currencyCode:'symbol':undefined:'fr-FR'}}</span>
200
+ </div>
201
+ <div class="d-flex flex-column max-width-15">
202
+ <span
203
+ class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.BASKET_NUMBER' | commonTranslate: lang }}</span>
204
+ <span>{{ doc?.basketNumber ? doc.basketNumber : '-' }}</span>
205
+ </div>
206
+ <div class="d-flex flex-column max-width-15">
207
+ <span
208
+ class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.EAN' | commonTranslate: lang }}</span>
209
+ <span>{{ doc?.ean ? doc.ean : '-' }}</span>
210
+ </div>
211
+ </div>
212
+ </div>
213
+ <!--PRODUCT-->
214
+ <div *ngIf="doc.docType === RapidSearchItemType.PRODUCT" class="d-flex align-items-center">
215
+ <div class="max-width-5">
216
+ <span class="material-icons-outlined rapid-search-type-icon">movie</span>
217
+ </div>
218
+ <div class="d-flex max-width-95">
219
+ <div class="ellipsis d-flex flex-column max-width-60">
220
+ <span
221
+ class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.PRODUCT' | commonTranslate: lang }}</span>
222
+ <span class="ellipsis">{{ doc.title }}</span>
223
+ </div>
224
+ <div class="d-flex flex-column max-width-10">
225
+ <span
226
+ class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.SUPPORT' | commonTranslate: lang }}</span>
227
+ <span>{{doc.support[labelLang]}}</span>
228
+ </div>
229
+ <div class="d-flex flex-column max-width-15">
230
+ <span
231
+ class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.EAN' | commonTranslate: lang }}</span>
232
+ <span>{{ doc.ean }}</span>
233
+ </div>
234
+ <div class="d-flex flex-column max-width-15">
235
+ <span
236
+ class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.RELEASE_DATE' | commonTranslate: lang }}</span>
237
+ <span>{{ doc?.releaseDate ? doc.releaseDate : '-' }}</span>
238
+ </div>
239
+ </div>
240
+ </div>
241
+ <!--WORK-->
242
+ <div *ngIf="doc.docType === RapidSearchItemType.WORK_VERSION" class="d-flex align-items-center">
243
+ <div class="max-width-5">
244
+ <span class="material-icons-outlined rapid-search-type-icon">theaters</span>
245
+ </div>
246
+ <div class="d-flex max-width-95">
247
+ <div class="d-flex flex-column max-width-75 ellipsis">
248
+ <span
249
+ class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.WORK' | commonTranslate: lang }}</span>
250
+ <span class="ellipsis">{{ doc.title }} ({{doc.codeIso}})</span>
251
+ </div>
252
+ <div class="d-flex flex-column max-width-10">
253
+ <span
254
+ class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.MILO_CODE' | commonTranslate: lang }}</span>
255
+ <span>{{doc.miloCode}}</span>
256
+ </div>
257
+ <div class="d-flex flex-column max-width-15">
258
+ <span
259
+ class="auto-complete-label">{{ 'COMMON.HEADER.GLOBAL_SEARCH.ITEM.PRODUCTION_YEAR' | commonTranslate: lang }}</span>
260
+ <span>{{ doc.yearOfProduction }}</span>
261
+ </div>
262
+ </div>
263
+ </div>
264
+ </mat-option>
265
+ </mat-autocomplete>
266
+ </div>
267
+
268
+ </mat-form-field>
269
+
270
+ </div>
271
+
272
+ <span class="d-flex flex-column max-width-15"></span>
273
+ <div *ngIf="user && user.secondary" class="connected-as d-flex justify-content-between align-items-center">
274
+ <span style="margin-right: 10px">
275
+ {{ 'COMMON.HEADER.CONNECTED_AS' | commonTranslate: lang }} {{user.login + ' - ' + user.firstName + ' ' + user.name }}
276
+ </span>
277
+
278
+ <button (click)="stopIdentityTheft()" *ngIf="user.secondary" color="warn" mat-raised-button>
279
+ {{ 'CORE.STOP' | commonTranslate: lang }}
280
+ </button>
281
+ </div>
282
+ <span class="header-separator"></span>
283
+
284
+ <span [matMenuTriggerFor]="settings" class="material-icons-outlined header-icon max-width-5">settings</span>
285
+
286
+ <!-- #enddocregion mat-menu-trigger-for -->
287
+ <mat-menu #settings="matMenu" class="action-menu">
288
+ <button (click)="switchTheme()" mat-menu-item>
289
+ <mat-icon class="menu-icon mat-icon">toggle_on</mat-icon>
290
+ <span>{{'COMMON.HEADER.PARAMETERS.THEME' | commonTranslate: lang}}</span>
291
+ </button>
292
+ <button (click)='switchLang("en")' *ngIf='lang !== "en"' mat-menu-item>
293
+ <img src="assets/img/flag/en-flag.png">
294
+ {{ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES.ENGLISH' | commonTranslate: lang }}
295
+ </button>
296
+ <button (click)='switchLang("fr")' *ngIf='lang !== "fr"' mat-menu-item>
297
+ <img src="assets/img/flag/fr-flag.png">
298
+ {{ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES.FRENCH' | commonTranslate: lang }}
299
+ </button>
300
+ <button (click)='switchLang("de")' *ngIf='lang !== "de" ' mat-menu-item>
301
+ <img src="assets/img/flag/de-flag.png">
302
+ {{ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES.DEUTCH' | commonTranslate: lang }}
303
+ </button>
304
+ </mat-menu>
305
+ </mat-toolbar>
306
+