@alfresco/aca-content 4.0.0-A.2-9984

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 (255) hide show
  1. package/README.md +24 -0
  2. package/assets/app.extensions.json +2496 -0
  3. package/assets/i18n/ar.json +634 -0
  4. package/assets/i18n/cs.json +634 -0
  5. package/assets/i18n/da.json +634 -0
  6. package/assets/i18n/de.json +634 -0
  7. package/assets/i18n/en.json +634 -0
  8. package/assets/i18n/es.json +634 -0
  9. package/assets/i18n/fi.json +634 -0
  10. package/assets/i18n/fr.json +634 -0
  11. package/assets/i18n/it.json +634 -0
  12. package/assets/i18n/ja.json +634 -0
  13. package/assets/i18n/nb.json +634 -0
  14. package/assets/i18n/nl.json +634 -0
  15. package/assets/i18n/pl.json +634 -0
  16. package/assets/i18n/pt-BR.json +634 -0
  17. package/assets/i18n/ru.json +634 -0
  18. package/assets/i18n/sv.json +634 -0
  19. package/assets/i18n/zh-CN.json +634 -0
  20. package/assets/images/Wallpaper-BG-generic.svg +39 -0
  21. package/assets/images/adf-move-file-24px.svg +1 -0
  22. package/assets/images/baseline-library_books-24px.svg +2 -0
  23. package/assets/images/baseline-lock-24px.svg +1 -0
  24. package/assets/images/join-library.svg +32 -0
  25. package/assets/images/mastHead-bg-shapesPattern.svg +53 -0
  26. package/esm2020/alfresco-aca-content.mjs +5 -0
  27. package/esm2020/lib/aca-content.module.mjs +364 -0
  28. package/esm2020/lib/aca-content.routes.mjs +582 -0
  29. package/esm2020/lib/components/common/common.module.mjs +49 -0
  30. package/esm2020/lib/components/common/language-picker/language-picker.component.mjs +58 -0
  31. package/esm2020/lib/components/common/location-link/location-link.component.mjs +178 -0
  32. package/esm2020/lib/components/common/logout/logout.component.mjs +61 -0
  33. package/esm2020/lib/components/common/toggle-shared/toggle-shared.component.mjs +66 -0
  34. package/esm2020/lib/components/context-menu/context-menu-item.component.mjs +59 -0
  35. package/esm2020/lib/components/context-menu/context-menu-outside-event.directive.mjs +66 -0
  36. package/esm2020/lib/components/context-menu/context-menu-overlay.mjs +33 -0
  37. package/esm2020/lib/components/context-menu/context-menu.component.mjs +103 -0
  38. package/esm2020/lib/components/context-menu/context-menu.module.mjs +77 -0
  39. package/esm2020/lib/components/context-menu/context-menu.service.mjs +104 -0
  40. package/esm2020/lib/components/context-menu/direction.token.mjs +30 -0
  41. package/esm2020/lib/components/context-menu/interfaces.mjs +26 -0
  42. package/esm2020/lib/components/create-menu/create-menu.component.mjs +74 -0
  43. package/esm2020/lib/components/create-menu/create-menu.module.mjs +45 -0
  44. package/esm2020/lib/components/details/details.component.mjs +100 -0
  45. package/esm2020/lib/components/dl-custom-components/document-list-custom-components.module.mjs +49 -0
  46. package/esm2020/lib/components/dl-custom-components/name-column/name-column.component.mjs +93 -0
  47. package/esm2020/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.mjs +52 -0
  48. package/esm2020/lib/components/favorite-libraries/favorite-libraries.component.mjs +114 -0
  49. package/esm2020/lib/components/favorites/favorites.component.mjs +99 -0
  50. package/esm2020/lib/components/files/files.component.mjs +312 -0
  51. package/esm2020/lib/components/header/header.component.mjs +98 -0
  52. package/esm2020/lib/components/header/header.module.mjs +46 -0
  53. package/esm2020/lib/components/home/home.component.mjs +50 -0
  54. package/esm2020/lib/components/info-drawer/comments-tab/comments-tab.component.mjs +57 -0
  55. package/esm2020/lib/components/info-drawer/info.drawer.module.mjs +93 -0
  56. package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.mjs +144 -0
  57. package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.mjs +43 -0
  58. package/esm2020/lib/components/info-drawer/metadata-tab/metadata-tab.component.mjs +89 -0
  59. package/esm2020/lib/components/info-drawer/versions-tab/versions-tab.component.mjs +96 -0
  60. package/esm2020/lib/components/layout/app-layout/app-layout.component.mjs +147 -0
  61. package/esm2020/lib/components/layout/layout.module.mjs +75 -0
  62. package/esm2020/lib/components/libraries/libraries.component.mjs +71 -0
  63. package/esm2020/lib/components/main-action/main-action.component.mjs +60 -0
  64. package/esm2020/lib/components/main-action/main-action.module.mjs +46 -0
  65. package/esm2020/lib/components/node-version/node-version-form.component.mjs +71 -0
  66. package/esm2020/lib/components/node-version/node-version.module.mjs +79 -0
  67. package/esm2020/lib/components/recent-files/recent-files.component.mjs +82 -0
  68. package/esm2020/lib/components/search/search-action-menu/search-action-menu.component.mjs +60 -0
  69. package/esm2020/lib/components/search/search-input/search-input.component.mjs +263 -0
  70. package/esm2020/lib/components/search/search-input-control/search-input-control.component.mjs +88 -0
  71. package/esm2020/lib/components/search/search-input.module.mjs +48 -0
  72. package/esm2020/lib/components/search/search-libraries-results/search-libraries-query-builder.service.mjs +92 -0
  73. package/esm2020/lib/components/search/search-libraries-results/search-libraries-results.component.mjs +140 -0
  74. package/esm2020/lib/components/search/search-results/search-results.component.mjs +218 -0
  75. package/esm2020/lib/components/search/search-results-row/search-results-row.component.mjs +94 -0
  76. package/esm2020/lib/components/search/search-results.module.mjs +86 -0
  77. package/esm2020/lib/components/shared-files/shared-files.component.mjs +79 -0
  78. package/esm2020/lib/components/shared-link-view/shared-link-view.component.mjs +81 -0
  79. package/esm2020/lib/components/shared-link-view/shared-link-view.module.mjs +66 -0
  80. package/esm2020/lib/components/sidenav/components/button-menu.component.mjs +58 -0
  81. package/esm2020/lib/components/sidenav/components/expand-menu.component.mjs +54 -0
  82. package/esm2020/lib/components/sidenav/directives/action.directive.mjs +75 -0
  83. package/esm2020/lib/components/sidenav/directives/active-link.directive.mjs +93 -0
  84. package/esm2020/lib/components/sidenav/directives/expansion-panel.directive.mjs +102 -0
  85. package/esm2020/lib/components/sidenav/directives/menu-panel.directive.mjs +99 -0
  86. package/esm2020/lib/components/sidenav/sidenav-wrapper/sidenav-wrapper.component.mjs +45 -0
  87. package/esm2020/lib/components/sidenav/sidenav.component.mjs +76 -0
  88. package/esm2020/lib/components/sidenav/sidenav.module.mjs +104 -0
  89. package/esm2020/lib/components/toolbar/document-display-mode/document-display-mode.component.mjs +85 -0
  90. package/esm2020/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.mjs +151 -0
  91. package/esm2020/lib/components/toolbar/toggle-favorite/toggle-favorite.component.mjs +80 -0
  92. package/esm2020/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.mjs +102 -0
  93. package/esm2020/lib/components/toolbar/toggle-info-drawer/toggle-info-drawer.component.mjs +76 -0
  94. package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.mjs +99 -0
  95. package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-menu.component.mjs +81 -0
  96. package/esm2020/lib/components/toolbar/toolbar.module.mjs +89 -0
  97. package/esm2020/lib/components/toolbar/view-node/view-node.component.mjs +102 -0
  98. package/esm2020/lib/components/trashcan/trashcan.component.mjs +64 -0
  99. package/esm2020/lib/components/trashcan/trashcan.module.mjs +71 -0
  100. package/esm2020/lib/components/upload-files-dialog/upload-files-dialog.component.mjs +34 -0
  101. package/esm2020/lib/components/view-profile/view-profile.component.mjs +158 -0
  102. package/esm2020/lib/components/view-profile/view-profile.guard.mjs +31 -0
  103. package/esm2020/lib/components/view-profile/view-profile.module.mjs +43 -0
  104. package/esm2020/lib/dialogs/node-template/create-from-template.dialog.mjs +120 -0
  105. package/esm2020/lib/directives/directives.module.mjs +43 -0
  106. package/esm2020/lib/directives/document-list.directive.mjs +142 -0
  107. package/esm2020/lib/extensions/core.extensions.module.mjs +66 -0
  108. package/esm2020/lib/material.module.mjs +58 -0
  109. package/esm2020/lib/services/content-management.service.mjs +871 -0
  110. package/esm2020/lib/services/content-service-extension.service.mjs +47 -0
  111. package/esm2020/lib/services/content-url.service.mjs +73 -0
  112. package/esm2020/lib/services/node-actions.service.mjs +601 -0
  113. package/esm2020/lib/services/node-template.service.mjs +150 -0
  114. package/esm2020/lib/store/app-store.module.mjs +96 -0
  115. package/esm2020/lib/store/effects/app.effects.mjs +62 -0
  116. package/esm2020/lib/store/effects/contextmenu.effects.mjs +56 -0
  117. package/esm2020/lib/store/effects/download.effects.mjs +160 -0
  118. package/esm2020/lib/store/effects/favorite.effects.mjs +77 -0
  119. package/esm2020/lib/store/effects/library.effects.mjs +112 -0
  120. package/esm2020/lib/store/effects/node.effects.mjs +310 -0
  121. package/esm2020/lib/store/effects/search.effects.mjs +55 -0
  122. package/esm2020/lib/store/effects/template.effects.mjs +122 -0
  123. package/esm2020/lib/store/effects/upload.effects.mjs +169 -0
  124. package/esm2020/lib/store/effects/viewer.effects.mjs +176 -0
  125. package/esm2020/lib/store/effects.mjs +36 -0
  126. package/esm2020/lib/store/initial-state.mjs +66 -0
  127. package/esm2020/lib/store/reducers/app.reducer.mjs +218 -0
  128. package/esm2020/public-api.mjs +9 -0
  129. package/fesm2015/alfresco-aca-content.mjs +9937 -0
  130. package/fesm2015/alfresco-aca-content.mjs.map +1 -0
  131. package/fesm2020/alfresco-aca-content.mjs +10103 -0
  132. package/fesm2020/alfresco-aca-content.mjs.map +1 -0
  133. package/index.d.ts +5 -0
  134. package/lib/aca-content.module.d.ts +49 -0
  135. package/lib/aca-content.routes.d.ts +28 -0
  136. package/lib/components/common/common.module.d.ts +14 -0
  137. package/lib/components/common/language-picker/language-picker.component.d.ts +5 -0
  138. package/lib/components/common/location-link/location-link.component.d.ts +49 -0
  139. package/lib/components/common/logout/logout.component.d.ts +10 -0
  140. package/lib/components/common/toggle-shared/toggle-shared.component.d.ts +44 -0
  141. package/lib/components/context-menu/context-menu-item.component.d.ts +13 -0
  142. package/lib/components/context-menu/context-menu-outside-event.directive.d.ts +36 -0
  143. package/lib/components/context-menu/context-menu-overlay.d.ts +30 -0
  144. package/lib/components/context-menu/context-menu.component.d.ts +49 -0
  145. package/lib/components/context-menu/context-menu.module.d.ts +18 -0
  146. package/lib/components/context-menu/context-menu.service.d.ts +44 -0
  147. package/lib/components/context-menu/direction.token.d.ts +26 -0
  148. package/lib/components/context-menu/interfaces.d.ts +31 -0
  149. package/lib/components/create-menu/create-menu.component.d.ts +43 -0
  150. package/lib/components/create-menu/create-menu.module.d.ts +10 -0
  151. package/lib/components/details/details.component.d.ts +47 -0
  152. package/lib/components/dl-custom-components/document-list-custom-components.module.d.ts +13 -0
  153. package/lib/components/dl-custom-components/name-column/name-column.component.d.ts +43 -0
  154. package/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.d.ts +17 -0
  155. package/lib/components/favorite-libraries/favorite-libraries.component.d.ts +55 -0
  156. package/lib/components/favorites/favorites.component.d.ts +50 -0
  157. package/lib/components/files/files.component.d.ts +80 -0
  158. package/lib/components/header/header.component.d.ts +59 -0
  159. package/lib/components/header/header.module.d.ts +11 -0
  160. package/lib/components/home/home.component.d.ts +37 -0
  161. package/lib/components/info-drawer/comments-tab/comments-tab.component.d.ts +11 -0
  162. package/lib/components/info-drawer/info.drawer.module.d.ts +19 -0
  163. package/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.d.ts +65 -0
  164. package/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.d.ts +7 -0
  165. package/lib/components/info-drawer/metadata-tab/metadata-tab.component.d.ts +50 -0
  166. package/lib/components/info-drawer/versions-tab/versions-tab.component.d.ts +36 -0
  167. package/lib/components/layout/app-layout/app-layout.component.d.ts +63 -0
  168. package/lib/components/layout/layout.module.d.ts +16 -0
  169. package/lib/components/libraries/libraries.component.d.ts +45 -0
  170. package/lib/components/main-action/main-action.component.d.ts +42 -0
  171. package/lib/components/main-action/main-action.module.d.ts +11 -0
  172. package/lib/components/node-version/node-version-form.component.d.ts +47 -0
  173. package/lib/components/node-version/node-version.module.d.ts +16 -0
  174. package/lib/components/recent-files/recent-files.component.d.ts +49 -0
  175. package/lib/components/search/search-action-menu/search-action-menu.component.d.ts +39 -0
  176. package/lib/components/search/search-input/search-input.component.d.ts +82 -0
  177. package/lib/components/search/search-input-control/search-input-control.component.d.ts +51 -0
  178. package/lib/components/search/search-input.module.d.ts +12 -0
  179. package/lib/components/search/search-libraries-results/search-libraries-query-builder.service.d.ts +57 -0
  180. package/lib/components/search/search-libraries-results/search-libraries-results.component.d.ts +58 -0
  181. package/lib/components/search/search-results/search-results.component.d.ts +70 -0
  182. package/lib/components/search/search-results-row/search-results-row.component.d.ts +49 -0
  183. package/lib/components/search/search-results.module.d.ts +21 -0
  184. package/lib/components/shared-files/shared-files.component.d.ts +48 -0
  185. package/lib/components/shared-link-view/shared-link-view.component.d.ts +48 -0
  186. package/lib/components/shared-link-view/shared-link-view.module.d.ts +14 -0
  187. package/lib/components/sidenav/components/button-menu.component.d.ts +38 -0
  188. package/lib/components/sidenav/components/expand-menu.component.d.ts +36 -0
  189. package/lib/components/sidenav/directives/action.directive.d.ts +14 -0
  190. package/lib/components/sidenav/directives/active-link.directive.d.ts +46 -0
  191. package/lib/components/sidenav/directives/expansion-panel.directive.d.ts +45 -0
  192. package/lib/components/sidenav/directives/menu-panel.directive.d.ts +43 -0
  193. package/lib/components/sidenav/sidenav-wrapper/sidenav-wrapper.component.d.ts +12 -0
  194. package/lib/components/sidenav/sidenav.component.d.ts +44 -0
  195. package/lib/components/sidenav/sidenav.module.d.ts +21 -0
  196. package/lib/components/toolbar/document-display-mode/document-display-mode.component.d.ts +13 -0
  197. package/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.d.ts +48 -0
  198. package/lib/components/toolbar/toggle-favorite/toggle-favorite.component.d.ts +43 -0
  199. package/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.d.ts +43 -0
  200. package/lib/components/toolbar/toggle-info-drawer/toggle-info-drawer.component.d.ts +11 -0
  201. package/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.d.ts +42 -0
  202. package/lib/components/toolbar/toggle-join-library/toggle-join-library-menu.component.d.ts +10 -0
  203. package/lib/components/toolbar/toolbar.module.d.ts +20 -0
  204. package/lib/components/toolbar/view-node/view-node.component.d.ts +17 -0
  205. package/lib/components/trashcan/trashcan.component.d.ts +43 -0
  206. package/lib/components/trashcan/trashcan.module.d.ts +15 -0
  207. package/lib/components/upload-files-dialog/upload-files-dialog.component.d.ts +14 -0
  208. package/lib/components/view-profile/view-profile.component.d.ts +36 -0
  209. package/lib/components/view-profile/view-profile.guard.d.ts +12 -0
  210. package/lib/components/view-profile/view-profile.module.d.ts +9 -0
  211. package/lib/dialogs/node-template/create-from-template.dialog.d.ts +50 -0
  212. package/lib/directives/directives.module.d.ts +9 -0
  213. package/lib/directives/document-list.directive.d.ts +57 -0
  214. package/lib/extensions/core.extensions.module.d.ts +14 -0
  215. package/lib/material.module.d.ts +14 -0
  216. package/lib/services/content-management.service.d.ts +101 -0
  217. package/lib/services/content-service-extension.service.d.ts +11 -0
  218. package/lib/services/content-url.service.d.ts +17 -0
  219. package/lib/services/node-actions.service.d.ts +93 -0
  220. package/lib/services/node-template.service.d.ts +34 -0
  221. package/lib/store/app-store.module.d.ts +10 -0
  222. package/lib/store/effects/app.effects.d.ts +42 -0
  223. package/lib/store/effects/contextmenu.effects.d.ts +12 -0
  224. package/lib/store/effects/download.effects.d.ts +50 -0
  225. package/lib/store/effects/favorite.effects.d.ts +39 -0
  226. package/lib/store/effects/library.effects.d.ts +44 -0
  227. package/lib/store/effects/node.effects.d.ts +57 -0
  228. package/lib/store/effects/search.effects.d.ts +35 -0
  229. package/lib/store/effects/template.effects.d.ts +55 -0
  230. package/lib/store/effects/upload.effects.d.ts +53 -0
  231. package/lib/store/effects/viewer.effects.d.ts +56 -0
  232. package/lib/store/effects.d.ts +35 -0
  233. package/lib/store/initial-state.d.ts +27 -0
  234. package/lib/store/reducers/app.reducer.d.ts +27 -0
  235. package/package.json +34 -0
  236. package/public-api.d.ts +5 -0
  237. package/ui/application.scss +49 -0
  238. package/ui/colors.scss +98 -0
  239. package/ui/custom-theme.scss +28 -0
  240. package/ui/dynamic-theme/custom-background-color.scss +16 -0
  241. package/ui/dynamic-theme/custom-palette-creator.scss +138 -0
  242. package/ui/dynamic-theme/custom-text-color.scss +8 -0
  243. package/ui/dynamic-theme/custom-theme-palettes.scss +29 -0
  244. package/ui/dynamic-theme/custom-theme.scss.tpl +60 -0
  245. package/ui/dynamic-theme/index.scss +1 -0
  246. package/ui/dynamic-theme/theme-configuration.scss.tpl +14 -0
  247. package/ui/dynamic-theme/typography.scss +63 -0
  248. package/ui/mixins.scss +26 -0
  249. package/ui/overrides/adf-about.theme.scss +39 -0
  250. package/ui/overrides/adf-pagination.theme.scss +47 -0
  251. package/ui/overrides/adf-style-fixes.theme.scss +18 -0
  252. package/ui/overrides/ay11.scss +204 -0
  253. package/ui/theme.scss +57 -0
  254. package/ui/variables/font-family.scss +1 -0
  255. package/ui/variables/variables.scss +83 -0
package/ui/colors.scss ADDED
@@ -0,0 +1,98 @@
1
+ $aca-primary-blue: (
2
+ 50: #e0ebf6,
3
+ 100: #b3ccea,
4
+ 200: #80aadc,
5
+ 300: #4d88cd,
6
+ 400: #266fc3,
7
+ 500: #0055b8,
8
+ 600: #004eb1,
9
+ 700: #0044a8,
10
+ 800: #003ba0,
11
+ 900: #002a91,
12
+ A100: #0055b8,
13
+ A200: #0a1f8f,
14
+ A400: #2a7de1,
15
+ A700: #00c1de,
16
+ contrast: (
17
+ 50: #000000,
18
+ 100: #000000,
19
+ 200: #000000,
20
+ 300: #ffffff,
21
+ 400: #ffffff,
22
+ 500: #ffffff,
23
+ 600: #ffffff,
24
+ 700: #ffffff,
25
+ 800: #ffffff,
26
+ 900: #ffffff,
27
+ A100: #ffffff,
28
+ A200: #ffffff,
29
+ A400: #ffffff,
30
+ A700: #000000
31
+ )
32
+ );
33
+
34
+ $aca-accent-green: (
35
+ 50: #e7f3e7,
36
+ 100: #c2e1c2,
37
+ 200: #9acd9a,
38
+ 300: #72b971,
39
+ 400: #53aa52,
40
+ 500: #359b34,
41
+ 600: #30932f,
42
+ 700: #288927,
43
+ 800: #227f21,
44
+ 900: #166d15,
45
+ A100: #359b34,
46
+ A200: #00754a,
47
+ A400: #76bc21,
48
+ A700: #c2e76b,
49
+ contrast: (
50
+ 50: #000000,
51
+ 100: #000000,
52
+ 200: #000000,
53
+ 300: #000000,
54
+ 400: #000000,
55
+ 500: #ffffff,
56
+ 600: #ffffff,
57
+ 700: #ffffff,
58
+ 800: #ffffff,
59
+ 900: #ffffff,
60
+ A100: #ffffff,
61
+ A200: #ffffff,
62
+ A400: #000000,
63
+ A700: #000000
64
+ )
65
+ );
66
+
67
+ $aca-warn: (
68
+ 50: #f6e1e5,
69
+ 100: #eab5bf,
70
+ 200: #dc8495,
71
+ 300: #cd526a,
72
+ 400: #c32d4a,
73
+ 500: #b8082a,
74
+ 600: #b10725,
75
+ 700: #a8061f,
76
+ 800: #a00419,
77
+ 900: #91020f,
78
+ A100: #b8082a,
79
+ A200: #db0f36,
80
+ A400: #ff5252,
81
+ A700: #ff8a80,
82
+ contrast: (
83
+ 50: #000000,
84
+ 100: #000000,
85
+ 200: #000000,
86
+ 300: #ffffff,
87
+ 400: #ffffff,
88
+ 500: #ffffff,
89
+ 600: #ffffff,
90
+ 700: #ffffff,
91
+ 800: #ffffff,
92
+ 900: #ffffff,
93
+ A100: #ffffff,
94
+ A200: #ffffff,
95
+ A400: #ffffff,
96
+ A700: #000000
97
+ )
98
+ );
@@ -0,0 +1,28 @@
1
+ @use '@angular/material' as mat;
2
+ @import './overrides/adf-style-fixes.theme';
3
+ @import './overrides/adf-pagination.theme';
4
+ @import './overrides/ay11';
5
+ @import './overrides/adf-about.theme.scss';
6
+ @import './colors';
7
+
8
+ $mat-primary-palette: mat.define-palette($aca-primary-blue, A100);
9
+ $mat-accent-palette: mat.define-palette($aca-accent-green, A200);
10
+ $mat-warn-palette: mat.define-palette($aca-warn, A100);
11
+
12
+ $app-typography: mat.define-typography-config($font-family: 'Open Sans'
13
+ );
14
+
15
+ @include mat.core($app-typography);
16
+
17
+ $custom-theme: mat.define-light-theme($mat-primary-palette,
18
+ $mat-accent-palette,
19
+ $mat-warn-palette);
20
+
21
+ @mixin custom-theme($theme) {
22
+ @include mat.all-component-themes($theme);
23
+ @include adf-core-theme($theme);
24
+ @include adf-style-fixes($theme);
25
+ @include adf-pagination-theme($theme);
26
+ @include ay11-theme();
27
+ @include adf-about-theme($theme);
28
+ }
@@ -0,0 +1,16 @@
1
+ @function get-custom-background-color($background-color, $theme) {
2
+ $background: map-get($theme, background);
3
+
4
+ $card: map-get($background, card);
5
+
6
+ $new-card-color: lighten($background-color, 10%);
7
+ $new-selected-button: lighten($background-color, 5%);
8
+
9
+ $background: map_merge($background, (background: $background-color));
10
+ $background: map_merge($background, (card: $new-card-color));
11
+ $background: map_merge($background, (modal: $new-card-color));
12
+ $background: map_merge($background, (dialog: $new-card-color));
13
+ $background: map_merge($background, (selected-button: $new-selected-button));
14
+
15
+ @return $background;
16
+ }
@@ -0,0 +1,138 @@
1
+ @use "sass:math";
2
+
3
+ @function multiply($fore, $back) {
4
+ $red: red($back) * red($fore) / 255;
5
+ $green: green($back) * green($fore) / 255;
6
+ $blue: blue($back) * blue($fore) / 255;
7
+
8
+ @return rgb($red, $green, $blue);
9
+ }
10
+
11
+ @function getColorLuminance($color) {
12
+ $colors: (
13
+ 'red': red($color),
14
+ 'green': green($color),
15
+ 'blue': blue($color)
16
+ );
17
+
18
+ @each $name, $value in $colors {
19
+ $adjusted: 0;
20
+ $value: $value / 255;
21
+
22
+ @if $value < 0.03928 {
23
+ $value: $value / 12.92;
24
+ } @else {
25
+ $value: ($value + .055) / 1.055;
26
+ $value: math.pow($value, 2.4);
27
+ }
28
+
29
+ $colors: map-merge($colors, ($name: $value));
30
+ }
31
+
32
+ @return (map-get($colors, 'red') * .2126) + (map-get($colors, 'green') * .7152) + (map-get($colors, 'blue') * .0722);
33
+ }
34
+
35
+ @function createTextColor($color, $colorType: 'primary') {
36
+ $red: red($color);
37
+ $green: green($color);
38
+ $blue: blue($color);
39
+
40
+ $lightText: $light-primary-text;
41
+ $darkText: $dark-primary-text;
42
+
43
+ @if ($colorType == 'accent') {
44
+ $lightText: $light-secondary-text;
45
+ $darkText: $dark-secondary-text;
46
+ }
47
+
48
+ $lightTextLuminance: getColorLuminance($lightText);
49
+ $darkTextLuminance: getColorLuminance($darkText);
50
+ $backgroundColorLuminance: getColorLuminance($color);
51
+
52
+ $lightTextLuminance: $lightTextLuminance + 0.5;
53
+ $darkTextLuminance: $darkTextLuminance + 0.5;
54
+ $backgroundColorLuminance: $backgroundColorLuminance + 0.5;
55
+
56
+ $luminanceContrastForLightText: $lightTextLuminance / $backgroundColorLuminance;
57
+ $luminanceContrastForDarkText: $backgroundColorLuminance / $darkTextLuminance;
58
+
59
+ $textColour: $lightText;
60
+
61
+ @if ($luminanceContrastForDarkText > $luminanceContrastForLightText) {
62
+ $textColour: $darkText;
63
+ }
64
+
65
+ @return $textColour;
66
+ }
67
+
68
+ @function createColorPalette($color, $colorType: 'primary') {
69
+ $light: #fff;
70
+ $dark: multiply($color, $color);
71
+
72
+ $color50: mix($light, $color, 88%);
73
+ $color100: mix($light, $color, 70%);
74
+ $color200: mix($light, $color, 50%);
75
+ $color300: mix($light, $color, 30%);
76
+ $color400: mix($light, $color, 15%);
77
+ $color500: mix($light, $color, 0%);
78
+ $color600: mix($dark, $color, 13%);
79
+ $color700: mix($dark, $color, 30%);
80
+ $color800: mix($dark, $color, 46%);
81
+ $color900: mix($dark, $color, 75%);
82
+
83
+ $colorA100: lighten(saturate(mix($dark, $color, 15%), 80%), 45.6%);
84
+ $colorA200: lighten(saturate(mix($dark, $color, 15%), 80%), 35.6%);
85
+ $colorA400: lighten(saturate(mix($dark, $color, 15%), 100%), 25.6%);
86
+ $colorA700: lighten(saturate(mix($dark, $color, 15%), 100%), 20.5%);
87
+
88
+ $contrast50: createTextColor($color50, $colorType);
89
+ $contrast100: createTextColor($color100, $colorType);
90
+ $contrast200: createTextColor($color200, $colorType);
91
+ $contrast300: createTextColor($color300, $colorType);
92
+ $contrast400: createTextColor($color400, $colorType);
93
+ $contrast500: createTextColor($color500, $colorType);
94
+ $contrast600: createTextColor($color600, $colorType);
95
+ $contrast700: createTextColor($color700, $colorType);
96
+ $contrast800: createTextColor($color800, $colorType);
97
+ $contrast900: createTextColor($color900, $colorType);
98
+
99
+ $contrastA100: createTextColor($colorA100, $colorType);
100
+ $contrastA200: createTextColor($colorA200, $colorType);
101
+ $contrastA400: createTextColor($colorA400, $colorType);
102
+ $contrastA700: createTextColor($colorA700, $colorType);
103
+
104
+ $palette: (
105
+ 50: $color50,
106
+ 100: $color50,
107
+ 200: $color50,
108
+ 300: $color50,
109
+ 400: $color400,
110
+ 500: $color500,
111
+ 600: $color600,
112
+ 700: $color700,
113
+ 800: $color800,
114
+ 900: $color900,
115
+ A100: $colorA100,
116
+ A200: $colorA200,
117
+ A400: $colorA400,
118
+ A700: $colorA700,
119
+ contrast: (
120
+ 50: $contrast50,
121
+ 100: $contrast100,
122
+ 200: $contrast200,
123
+ 300: $contrast300,
124
+ 400: $contrast400,
125
+ 500: $contrast500,
126
+ 600: $contrast600,
127
+ 700: $contrast700,
128
+ 800: $contrast800,
129
+ 900: $contrast900,
130
+ A100: $contrastA100,
131
+ A200: $contrastA200,
132
+ A400: $contrastA400,
133
+ A700: $contrastA700
134
+ )
135
+ );
136
+
137
+ @return $palette;
138
+ }
@@ -0,0 +1,8 @@
1
+ @function get-custom-text-color($text-color, $theme) {
2
+ $foreground: map-get($custom-theme, foreground);
3
+
4
+ $foreground: map_merge($foreground, (text: $text-color));
5
+ $foreground: map_merge($foreground, (secondary-text: $text-color));
6
+
7
+ @return $foreground;
8
+ }
@@ -0,0 +1,29 @@
1
+ @use '@angular/material' as mat;
2
+ @import '../colors';
3
+ @import './custom-palette-creator.scss';
4
+
5
+ @function get-mat-palettes($primary-color, $accent-color) {
6
+ $mat-primary-palette: null;
7
+ @if $primary-color {
8
+ $custom-theme-primary-palette: createColorPalette($primary-color, 'primary');
9
+ $mat-primary-palette: mat.define-palette($custom-theme-primary-palette, 500);
10
+ } @else {
11
+ $mat-primary-palette: mat.define-palette($aca-primary-blue, A100);
12
+ }
13
+
14
+ $mat-accent-palette: null;
15
+ @if $accent-color {
16
+ $custom-theme-accent-palette: createColorPalette($accent-color, 'accent');
17
+ $mat-accent-palette: mat.define-palette($custom-theme-accent-palette, 500);
18
+ } @else {
19
+ $mat-accent-palette: mat.define-palette($aca-accent-green, A200);
20
+ }
21
+
22
+ $mat-warn-palette: mat.define-palette($aca-warn, A100);
23
+
24
+ @return (
25
+ primary: $mat-primary-palette,
26
+ accent: $mat-accent-palette,
27
+ warning: $mat-warn-palette,
28
+ )
29
+ }
@@ -0,0 +1,60 @@
1
+ @import '@angular/material/theming';
2
+ @import './overrides/adf-style-fixes.theme';
3
+ @import './overrides/adf-pagination.theme';
4
+ @import './overrides/adf-about.theme.scss';
5
+ @import "./dynamic-theme/theme-configuration";
6
+ @import "./dynamic-theme/typography";
7
+ @import "./dynamic-theme/custom-theme-palettes";
8
+ @import "./dynamic-theme/custom-background-color";
9
+ @import "./dynamic-theme/custom-text-color";
10
+
11
+ $primary-color: map-get($theme-config, 'primaryColor');
12
+ $accent-color: map-get($theme-config, 'accentColor');
13
+ $background-color: map-get($theme-config, 'backgroundColor');
14
+ $text-color: map-get($theme-config, 'textColor');
15
+ $base-font-size: map-get($theme-config, 'baseFontSize');
16
+ $font-family: map-get($theme-config, 'fontFamily');
17
+
18
+ $alfresco-typography: get-mat-typography(
19
+ $base-font-size,
20
+ $font-family,
21
+ $alfresco-typography
22
+ );
23
+
24
+ @include mat-core($alfresco-typography);
25
+
26
+ $palettes: get-mat-palettes($primary-color, $accent-color);
27
+ $custom-theme: mat-light-theme(
28
+ map-get($palettes, primary),
29
+ map-get($palettes, accent),
30
+ map-get($palettes, warning),
31
+ );
32
+
33
+ @if $background-color {
34
+ $custom-background: get-custom-background-color($background-color, $custom-theme);
35
+ $custom-theme: map_merge($custom-theme, (background: $custom-background));
36
+ }
37
+
38
+ @if $text-color {
39
+ $custom-foreground: get-custom-text-color($text-color, $custom-theme);
40
+ $custom-theme: map_merge($custom-theme, (foreground: $custom-foreground));
41
+ }
42
+
43
+ @mixin custom-theme($theme) {
44
+ @include angular-material-theme($theme);
45
+
46
+ @if $base-font-size {
47
+ @include adf-core-theme($theme, get-custom-adf-font-sizes());
48
+ @include base-font-size($base-font-size);
49
+ } @else {
50
+ @include adf-core-theme($theme);
51
+ }
52
+
53
+ @if $font-family {
54
+ @include base-font-family($font-family);
55
+ }
56
+
57
+ @include adf-style-fixes($theme);
58
+ @include adf-pagination-theme($theme);
59
+ @include adf-about-theme($theme);
60
+ }
@@ -0,0 +1 @@
1
+ @import '../theme.scss';
@@ -0,0 +1,14 @@
1
+ /*
2
+ Specify theme parameters e.g.:
3
+
4
+ $theme-config: (
5
+ primaryColor: #5175d2,
6
+ backgroundColor: #FAFAFA,
7
+ textColor: #793942,
8
+ accentColor: #C64F73,
9
+ baseFontSize: 26px,
10
+ fontFamily: Cursive
11
+ );
12
+ */
13
+
14
+ ${THEME_CONFIGURATION}
@@ -0,0 +1,63 @@
1
+ @use '@angular/material' as mat;
2
+ @import '../variables/font-family.scss';
3
+
4
+ @function get-mat-typography(
5
+ $base-font-size,
6
+ $font-family,
7
+ $default-typography
8
+ ) {
9
+ $custom-typography: $default-typography;
10
+
11
+ @if $base-font-size {
12
+ $custom-typography: mat.define-typography-config(
13
+ $display-4: mat.define-typography-level(8rem, 8rem, 300),
14
+ $display-3: mat.define-typography-level(4rem, 4rem, 400),
15
+ $display-2: mat.define-typography-level(3.21rem, 3.21rem, 400),
16
+ $display-1: mat.define-typography-level(2.42rem, 2.85rem, 400),
17
+ $headline: mat.define-typography-level(1.71rem, 2.28rem, 400),
18
+ $title: mat.define-typography-level(1.42rem, 2.28rem, 500),
19
+ $subheading-2: mat.define-typography-level(1.14rem, 2rem, 400),
20
+ $subheading-1: mat.define-typography-level(1.07rem, 1.71rem, 400),
21
+ $body-2: mat.define-typography-level(1rem, 1.71rem, 500),
22
+ $body-1: mat.define-typography-level(1rem, 1.42rem, 400),
23
+ $caption: mat.define-typography-level(0.86rem, 1.42rem, 400),
24
+ $button: mat.define-typography-level(1rem, 1rem, 500),
25
+ $font-family: $default-font-family,
26
+ $input: mat.define-typography-level(1.14em, 1.25, 400)
27
+ );
28
+ }
29
+
30
+ @if $font-family {
31
+ @each $key, $level in $custom-typography {
32
+ @if (type-of($level) == 'map') {
33
+ $new-level: map-merge($level, (font-family: $font-family));
34
+ $custom-typography: map-merge($custom-typography, ($key: $new-level));
35
+ }
36
+ }
37
+
38
+ $custom-typography: map-merge($custom-typography, (font-family: $font-family));
39
+ }
40
+
41
+ @return $custom-typography;
42
+ };
43
+
44
+ @function get-custom-adf-font-sizes() {
45
+ @return (
46
+ 'theme-adf-icon-1-font-size': 1.2rem,
47
+ 'theme-adf-picture-1-font-size': 1.28rem,
48
+ 'theme-adf-task-footer-font-size': 1.28rem,
49
+ 'theme-adf-task-title-font-size': 1.28rem
50
+ )
51
+ };
52
+
53
+ @mixin base-font-size($font-size) {
54
+ html, body {
55
+ font-size: $font-size !important;
56
+ }
57
+ };
58
+
59
+ @mixin base-font-family($font-family) {
60
+ html, body {
61
+ font-family: $font-family !important;
62
+ }
63
+ };
package/ui/mixins.scss ADDED
@@ -0,0 +1,26 @@
1
+ @mixin flex-column {
2
+ display: flex;
3
+ flex-direction: column;
4
+ flex: 1;
5
+ height: 100%;
6
+ overflow: hidden;
7
+ min-height: 0;
8
+ }
9
+
10
+ @mixin flex-row {
11
+ display: flex;
12
+ flex-direction: row;
13
+ flex: 1;
14
+ height: 100%;
15
+ overflow: hidden;
16
+ }
17
+
18
+ @mixin rounded-outline($border-color: var(--theme-blue-button-color), $thickness: 2px, $radius: 4px) {
19
+ outline: $thickness solid $border-color;
20
+ border-radius: $radius;
21
+ }
22
+
23
+ @mixin rounded-border($border-color: var(--theme-blue-button-color), $thickness: 2px, $radius: 4px) {
24
+ border: $thickness solid $border-color !important;
25
+ border-radius: $radius;
26
+ }
@@ -0,0 +1,39 @@
1
+ @mixin adf-about-theme($theme) {
2
+ adf-about {
3
+ /* custom ADF About Component Theme */
4
+
5
+ background-color: var(--theme-about-panel-background-color);
6
+ overflow: auto;
7
+
8
+ mat-accordion {
9
+ box-shadow: none !important;
10
+ border: none !important;
11
+ }
12
+
13
+ mat-expansion-panel {
14
+ box-shadow: none !important;
15
+ border-radius: 12px !important;
16
+ margin: 24px !important;
17
+ width: 95%;
18
+ border: 1px solid var(--theme-about-panel-border-color);
19
+ background-color: var(--theme-about-panel-background-color);
20
+ border-radius: 12px;
21
+ }
22
+
23
+ mat-expansion-panel-header {
24
+ display: flex;
25
+ height: 80px !important;
26
+ padding: 24px 24px;
27
+ line-height: 32px;
28
+ }
29
+
30
+ mat-panel-title {
31
+ font-style: normal;
32
+ font-weight: 700;
33
+ font-size: 14px;
34
+ line-height: 24px;
35
+ color: var(--theme-about-panel-title-color);
36
+ }
37
+
38
+ }
39
+ }
@@ -0,0 +1,47 @@
1
+ @mixin adf-pagination-theme($theme) {
2
+
3
+ .adf-pagination__block {
4
+ flex: none !important;
5
+ padding: 0 !important;
6
+ font-weight: 400;
7
+ font-size: 14px;
8
+ line-height: 24px;
9
+ letter-spacing: 0.25px;
10
+ }
11
+
12
+ .adf-pagination {
13
+ height: 32px !important;
14
+ line-height: 24px !important;
15
+ padding: 16px 0;
16
+ background: var(--theme-pagination-background-color);
17
+ }
18
+
19
+ .adf-pagination__range-block {
20
+ padding: 0 24px !important;
21
+ }
22
+
23
+ .adf-pagination__perpage-block {
24
+ flex: auto !important;
25
+ padding-right: 24px !important;
26
+ }
27
+
28
+ .adf-pagination__actualinfo-block {
29
+ padding-right: 12px !important;
30
+
31
+ .mat-menu-trigger {
32
+ display: none !important;
33
+ }
34
+ }
35
+
36
+ .adf-pagination__previous-button {
37
+ margin: 0 12px 0 0 !important;
38
+ }
39
+
40
+ .adf-pagination__next-button {
41
+ margin: 0 !important;
42
+ }
43
+
44
+ .adf-pagination__controls-block {
45
+ padding-right: 24px !important;
46
+ }
47
+ }
@@ -0,0 +1,18 @@
1
+ @mixin adf-style-fixes($theme) {
2
+ // add here all ADF style overrides
3
+ // and create a task to move them to ADF
4
+
5
+ .adf-content-node-selector-content-list {
6
+ .adf-content-selector-modified-cell {
7
+ display: none;
8
+ }
9
+
10
+ .adf-content-selector-modifier-cell {
11
+ display: none;
12
+ }
13
+ }
14
+
15
+ adf-share-dialog .mat-form-field-label-wrapper label {
16
+ display: none !important;
17
+ }
18
+ }