@alfresco/aca-content 4.0.0-4895233349

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 (264) hide show
  1. package/README.md +24 -0
  2. package/about/about.component.d.ts +45 -0
  3. package/about/aca-about.module.d.ts +39 -0
  4. package/about/dev-mode.tokens.d.ts +25 -0
  5. package/about/index.d.ts +5 -0
  6. package/about/package-json.token.d.ts +25 -0
  7. package/about/public-api.d.ts +27 -0
  8. package/assets/app.extensions.json +2626 -0
  9. package/assets/i18n/ar.json +660 -0
  10. package/assets/i18n/cs.json +660 -0
  11. package/assets/i18n/da.json +660 -0
  12. package/assets/i18n/de.json +660 -0
  13. package/assets/i18n/en.json +660 -0
  14. package/assets/i18n/es.json +660 -0
  15. package/assets/i18n/fi.json +660 -0
  16. package/assets/i18n/fr.json +660 -0
  17. package/assets/i18n/it.json +660 -0
  18. package/assets/i18n/ja.json +660 -0
  19. package/assets/i18n/nb.json +660 -0
  20. package/assets/i18n/nl.json +660 -0
  21. package/assets/i18n/pl.json +660 -0
  22. package/assets/i18n/pt-BR.json +660 -0
  23. package/assets/i18n/ru.json +660 -0
  24. package/assets/i18n/sv.json +660 -0
  25. package/assets/i18n/zh-CN.json +660 -0
  26. package/assets/images/Wallpaper-BG-generic.svg +39 -0
  27. package/assets/images/adf-move-file-24px.svg +1 -0
  28. package/assets/images/baseline-library_books-24px.svg +2 -0
  29. package/assets/images/baseline-lock-24px.svg +1 -0
  30. package/assets/images/join-library.svg +32 -0
  31. package/esm2020/about/about.component.mjs +77 -0
  32. package/esm2020/about/aca-about.module.mjs +67 -0
  33. package/esm2020/about/alfresco-aca-content-about.mjs +5 -0
  34. package/esm2020/about/dev-mode.tokens.mjs +26 -0
  35. package/esm2020/about/package-json.token.mjs +26 -0
  36. package/esm2020/about/public-api.mjs +28 -0
  37. package/esm2020/alfresco-aca-content.mjs +5 -0
  38. package/esm2020/lib/aca-content.module.mjs +365 -0
  39. package/esm2020/lib/aca-content.routes.mjs +581 -0
  40. package/esm2020/lib/components/common/common.module.mjs +67 -0
  41. package/esm2020/lib/components/common/language-picker/language-picker.component.mjs +57 -0
  42. package/esm2020/lib/components/common/location-link/location-link.component.mjs +177 -0
  43. package/esm2020/lib/components/common/logout/logout.component.mjs +60 -0
  44. package/esm2020/lib/components/common/toggle-shared/toggle-shared.component.mjs +65 -0
  45. package/esm2020/lib/components/common/user-info/user-info.component.mjs +86 -0
  46. package/esm2020/lib/components/context-menu/context-menu-item.component.mjs +58 -0
  47. package/esm2020/lib/components/context-menu/context-menu-outside-event.directive.mjs +65 -0
  48. package/esm2020/lib/components/context-menu/context-menu-overlay.mjs +32 -0
  49. package/esm2020/lib/components/context-menu/context-menu.component.mjs +102 -0
  50. package/esm2020/lib/components/context-menu/context-menu.module.mjs +76 -0
  51. package/esm2020/lib/components/context-menu/context-menu.service.mjs +103 -0
  52. package/esm2020/lib/components/context-menu/direction.token.mjs +29 -0
  53. package/esm2020/lib/components/context-menu/interfaces.mjs +25 -0
  54. package/esm2020/lib/components/create-menu/create-menu.component.mjs +73 -0
  55. package/esm2020/lib/components/create-menu/create-menu.module.mjs +44 -0
  56. package/esm2020/lib/components/details/details.component.mjs +99 -0
  57. package/esm2020/lib/components/dl-custom-components/document-list-custom-components.module.mjs +49 -0
  58. package/esm2020/lib/components/dl-custom-components/name-column/name-column.component.mjs +90 -0
  59. package/esm2020/lib/components/dl-custom-components/tags-column/tags-column.component.mjs +31 -0
  60. package/esm2020/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.mjs +51 -0
  61. package/esm2020/lib/components/favorite-libraries/favorite-libraries.component.mjs +113 -0
  62. package/esm2020/lib/components/favorites/favorites.component.mjs +98 -0
  63. package/esm2020/lib/components/files/files.component.mjs +312 -0
  64. package/esm2020/lib/components/home/home.component.mjs +49 -0
  65. package/esm2020/lib/components/info-drawer/comments-tab/comments-tab.component.mjs +56 -0
  66. package/esm2020/lib/components/info-drawer/info.drawer.module.mjs +92 -0
  67. package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.mjs +143 -0
  68. package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.mjs +42 -0
  69. package/esm2020/lib/components/info-drawer/metadata-tab/metadata-tab.component.mjs +88 -0
  70. package/esm2020/lib/components/info-drawer/versions-tab/versions-tab.component.mjs +95 -0
  71. package/esm2020/lib/components/libraries/libraries.component.mjs +70 -0
  72. package/esm2020/lib/components/node-version/node-version-form.component.mjs +70 -0
  73. package/esm2020/lib/components/node-version/node-version.module.mjs +78 -0
  74. package/esm2020/lib/components/recent-files/recent-files.component.mjs +81 -0
  75. package/esm2020/lib/components/search/search-action-menu/search-action-menu.component.mjs +59 -0
  76. package/esm2020/lib/components/search/search-input/search-input.component.mjs +275 -0
  77. package/esm2020/lib/components/search/search-input-control/search-input-control.component.mjs +87 -0
  78. package/esm2020/lib/components/search/search-input.module.mjs +47 -0
  79. package/esm2020/lib/components/search/search-libraries-results/search-libraries-query-builder.service.mjs +91 -0
  80. package/esm2020/lib/components/search/search-libraries-results/search-libraries-results.component.mjs +142 -0
  81. package/esm2020/lib/components/search/search-navigation.service.mjs +60 -0
  82. package/esm2020/lib/components/search/search-results/search-results.component.mjs +221 -0
  83. package/esm2020/lib/components/search/search-results-row/search-results-row.component.mjs +101 -0
  84. package/esm2020/lib/components/search/search-results.module.mjs +88 -0
  85. package/esm2020/lib/components/shared-files/shared-files.component.mjs +78 -0
  86. package/esm2020/lib/components/shared-link-view/shared-link-view.component.mjs +81 -0
  87. package/esm2020/lib/components/shared-link-view/shared-link-view.module.mjs +69 -0
  88. package/esm2020/lib/components/sidenav/components/button-menu.component.mjs +57 -0
  89. package/esm2020/lib/components/sidenav/components/expand-menu.component.mjs +53 -0
  90. package/esm2020/lib/components/sidenav/components/sidenav-header.component.mjs +74 -0
  91. package/esm2020/lib/components/sidenav/directives/action.directive.mjs +74 -0
  92. package/esm2020/lib/components/sidenav/directives/active-link.directive.mjs +92 -0
  93. package/esm2020/lib/components/sidenav/directives/expansion-panel.directive.mjs +101 -0
  94. package/esm2020/lib/components/sidenav/directives/menu-panel.directive.mjs +98 -0
  95. package/esm2020/lib/components/sidenav/sidenav.component.mjs +83 -0
  96. package/esm2020/lib/components/sidenav/sidenav.module.mjs +84 -0
  97. package/esm2020/lib/components/toolbar/document-display-mode/document-display-mode.component.mjs +84 -0
  98. package/esm2020/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.mjs +150 -0
  99. package/esm2020/lib/components/toolbar/toggle-favorite/toggle-favorite.component.mjs +79 -0
  100. package/esm2020/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.mjs +101 -0
  101. package/esm2020/lib/components/toolbar/toggle-info-drawer/toggle-info-drawer.component.mjs +75 -0
  102. package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.mjs +98 -0
  103. package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-menu.component.mjs +80 -0
  104. package/esm2020/lib/components/toolbar/toolbar.module.mjs +88 -0
  105. package/esm2020/lib/components/toolbar/view-node/view-node.component.mjs +109 -0
  106. package/esm2020/lib/components/trashcan/trashcan.component.mjs +63 -0
  107. package/esm2020/lib/components/trashcan/trashcan.module.mjs +74 -0
  108. package/esm2020/lib/components/upload-files-dialog/upload-files-dialog.component.mjs +50 -0
  109. package/esm2020/lib/components/view-profile/view-profile.component.mjs +174 -0
  110. package/esm2020/lib/components/view-profile/view-profile.guard.mjs +47 -0
  111. package/esm2020/lib/components/view-profile/view-profile.module.mjs +42 -0
  112. package/esm2020/lib/dialogs/node-template/create-from-template.dialog.mjs +119 -0
  113. package/esm2020/lib/directives/directives.module.mjs +42 -0
  114. package/esm2020/lib/directives/document-list.directive.mjs +141 -0
  115. package/esm2020/lib/extensions/core.extensions.module.mjs +64 -0
  116. package/esm2020/lib/material.module.mjs +57 -0
  117. package/esm2020/lib/services/content-management.service.mjs +870 -0
  118. package/esm2020/lib/services/content-service-extension.service.mjs +63 -0
  119. package/esm2020/lib/services/content-url.service.mjs +72 -0
  120. package/esm2020/lib/services/node-actions.service.mjs +600 -0
  121. package/esm2020/lib/services/node-template.service.mjs +149 -0
  122. package/esm2020/lib/store/app-store.module.mjs +95 -0
  123. package/esm2020/lib/store/effects/app.effects.mjs +61 -0
  124. package/esm2020/lib/store/effects/contextmenu.effects.mjs +55 -0
  125. package/esm2020/lib/store/effects/download.effects.mjs +159 -0
  126. package/esm2020/lib/store/effects/favorite.effects.mjs +76 -0
  127. package/esm2020/lib/store/effects/library.effects.mjs +111 -0
  128. package/esm2020/lib/store/effects/node.effects.mjs +309 -0
  129. package/esm2020/lib/store/effects/search.effects.mjs +60 -0
  130. package/esm2020/lib/store/effects/template.effects.mjs +121 -0
  131. package/esm2020/lib/store/effects/upload.effects.mjs +169 -0
  132. package/esm2020/lib/store/effects/viewer.effects.mjs +175 -0
  133. package/esm2020/lib/store/effects.mjs +35 -0
  134. package/esm2020/lib/store/initial-state.mjs +62 -0
  135. package/esm2020/lib/store/reducers/app.reducer.mjs +211 -0
  136. package/esm2020/public-api.mjs +32 -0
  137. package/fesm2015/alfresco-aca-content-about.mjs +216 -0
  138. package/fesm2015/alfresco-aca-content-about.mjs.map +1 -0
  139. package/fesm2015/alfresco-aca-content.mjs +9771 -0
  140. package/fesm2015/alfresco-aca-content.mjs.map +1 -0
  141. package/fesm2020/alfresco-aca-content-about.mjs +214 -0
  142. package/fesm2020/alfresco-aca-content-about.mjs.map +1 -0
  143. package/fesm2020/alfresco-aca-content.mjs +9915 -0
  144. package/fesm2020/alfresco-aca-content.mjs.map +1 -0
  145. package/index.d.ts +5 -0
  146. package/lib/aca-content.module.d.ts +47 -0
  147. package/lib/aca-content.routes.d.ts +27 -0
  148. package/lib/components/common/common.module.d.ts +17 -0
  149. package/lib/components/common/language-picker/language-picker.component.d.ts +5 -0
  150. package/lib/components/common/location-link/location-link.component.d.ts +48 -0
  151. package/lib/components/common/logout/logout.component.d.ts +10 -0
  152. package/lib/components/common/toggle-shared/toggle-shared.component.d.ts +43 -0
  153. package/lib/components/common/user-info/user-info.component.d.ts +44 -0
  154. package/lib/components/context-menu/context-menu-item.component.d.ts +13 -0
  155. package/lib/components/context-menu/context-menu-outside-event.directive.d.ts +35 -0
  156. package/lib/components/context-menu/context-menu-overlay.d.ts +29 -0
  157. package/lib/components/context-menu/context-menu.component.d.ts +48 -0
  158. package/lib/components/context-menu/context-menu.module.d.ts +18 -0
  159. package/lib/components/context-menu/context-menu.service.d.ts +43 -0
  160. package/lib/components/context-menu/direction.token.d.ts +25 -0
  161. package/lib/components/context-menu/interfaces.d.ts +30 -0
  162. package/lib/components/create-menu/create-menu.component.d.ts +42 -0
  163. package/lib/components/create-menu/create-menu.module.d.ts +10 -0
  164. package/lib/components/details/details.component.d.ts +46 -0
  165. package/lib/components/dl-custom-components/document-list-custom-components.module.d.ts +14 -0
  166. package/lib/components/dl-custom-components/name-column/name-column.component.d.ts +41 -0
  167. package/lib/components/dl-custom-components/tags-column/tags-column.component.d.ts +35 -0
  168. package/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.d.ts +17 -0
  169. package/lib/components/favorite-libraries/favorite-libraries.component.d.ts +54 -0
  170. package/lib/components/favorites/favorites.component.d.ts +49 -0
  171. package/lib/components/files/files.component.d.ts +55 -0
  172. package/lib/components/home/home.component.d.ts +36 -0
  173. package/lib/components/info-drawer/comments-tab/comments-tab.component.d.ts +11 -0
  174. package/lib/components/info-drawer/info.drawer.module.d.ts +19 -0
  175. package/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.d.ts +64 -0
  176. package/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.d.ts +7 -0
  177. package/lib/components/info-drawer/metadata-tab/metadata-tab.component.d.ts +49 -0
  178. package/lib/components/info-drawer/versions-tab/versions-tab.component.d.ts +35 -0
  179. package/lib/components/libraries/libraries.component.d.ts +44 -0
  180. package/lib/components/node-version/node-version-form.component.d.ts +46 -0
  181. package/lib/components/node-version/node-version.module.d.ts +16 -0
  182. package/lib/components/recent-files/recent-files.component.d.ts +48 -0
  183. package/lib/components/search/search-action-menu/search-action-menu.component.d.ts +38 -0
  184. package/lib/components/search/search-input/search-input.component.d.ts +85 -0
  185. package/lib/components/search/search-input-control/search-input-control.component.d.ts +50 -0
  186. package/lib/components/search/search-input.module.d.ts +12 -0
  187. package/lib/components/search/search-libraries-results/search-libraries-query-builder.service.d.ts +56 -0
  188. package/lib/components/search/search-libraries-results/search-libraries-results.component.d.ts +58 -0
  189. package/lib/components/search/search-navigation.service.d.ts +13 -0
  190. package/lib/components/search/search-results/search-results.component.d.ts +69 -0
  191. package/lib/components/search/search-results-row/search-results-row.component.d.ts +50 -0
  192. package/lib/components/search/search-results.module.d.ts +21 -0
  193. package/lib/components/shared-files/shared-files.component.d.ts +47 -0
  194. package/lib/components/shared-link-view/shared-link-view.component.d.ts +47 -0
  195. package/lib/components/shared-link-view/shared-link-view.module.d.ts +15 -0
  196. package/lib/components/sidenav/components/button-menu.component.d.ts +37 -0
  197. package/lib/components/sidenav/components/expand-menu.component.d.ts +35 -0
  198. package/lib/components/sidenav/components/sidenav-header.component.d.ts +48 -0
  199. package/lib/components/sidenav/directives/action.directive.d.ts +14 -0
  200. package/lib/components/sidenav/directives/active-link.directive.d.ts +45 -0
  201. package/lib/components/sidenav/directives/expansion-panel.directive.d.ts +44 -0
  202. package/lib/components/sidenav/directives/menu-panel.directive.d.ts +42 -0
  203. package/lib/components/sidenav/sidenav.component.d.ts +50 -0
  204. package/lib/components/sidenav/sidenav.module.d.ts +19 -0
  205. package/lib/components/toolbar/document-display-mode/document-display-mode.component.d.ts +13 -0
  206. package/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.d.ts +47 -0
  207. package/lib/components/toolbar/toggle-favorite/toggle-favorite.component.d.ts +42 -0
  208. package/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.d.ts +42 -0
  209. package/lib/components/toolbar/toggle-info-drawer/toggle-info-drawer.component.d.ts +11 -0
  210. package/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.d.ts +41 -0
  211. package/lib/components/toolbar/toggle-join-library/toggle-join-library-menu.component.d.ts +10 -0
  212. package/lib/components/toolbar/toolbar.module.d.ts +20 -0
  213. package/lib/components/toolbar/view-node/view-node.component.d.ts +19 -0
  214. package/lib/components/trashcan/trashcan.component.d.ts +42 -0
  215. package/lib/components/trashcan/trashcan.module.d.ts +16 -0
  216. package/lib/components/upload-files-dialog/upload-files-dialog.component.d.ts +37 -0
  217. package/lib/components/view-profile/view-profile.component.d.ts +59 -0
  218. package/lib/components/view-profile/view-profile.guard.d.ts +12 -0
  219. package/lib/components/view-profile/view-profile.module.d.ts +9 -0
  220. package/lib/dialogs/node-template/create-from-template.dialog.d.ts +49 -0
  221. package/lib/directives/directives.module.d.ts +9 -0
  222. package/lib/directives/document-list.directive.d.ts +56 -0
  223. package/lib/extensions/core.extensions.module.d.ts +14 -0
  224. package/lib/material.module.d.ts +14 -0
  225. package/lib/services/content-management.service.d.ts +100 -0
  226. package/lib/services/content-service-extension.service.d.ts +11 -0
  227. package/lib/services/content-url.service.d.ts +17 -0
  228. package/lib/services/node-actions.service.d.ts +93 -0
  229. package/lib/services/node-template.service.d.ts +34 -0
  230. package/lib/store/app-store.module.d.ts +10 -0
  231. package/lib/store/effects/app.effects.d.ts +41 -0
  232. package/lib/store/effects/contextmenu.effects.d.ts +12 -0
  233. package/lib/store/effects/download.effects.d.ts +49 -0
  234. package/lib/store/effects/favorite.effects.d.ts +38 -0
  235. package/lib/store/effects/library.effects.d.ts +43 -0
  236. package/lib/store/effects/node.effects.d.ts +56 -0
  237. package/lib/store/effects/search.effects.d.ts +37 -0
  238. package/lib/store/effects/template.effects.d.ts +54 -0
  239. package/lib/store/effects/upload.effects.d.ts +52 -0
  240. package/lib/store/effects/viewer.effects.d.ts +55 -0
  241. package/lib/store/effects.d.ts +34 -0
  242. package/lib/store/initial-state.d.ts +26 -0
  243. package/lib/store/reducers/app.reducer.d.ts +26 -0
  244. package/package.json +47 -0
  245. package/public-api.d.ts +28 -0
  246. package/ui/application.scss +53 -0
  247. package/ui/colors.scss +96 -0
  248. package/ui/custom-theme.scss +34 -0
  249. package/ui/dynamic-theme/custom-background-color.scss +14 -0
  250. package/ui/dynamic-theme/custom-palette-creator.scss +132 -0
  251. package/ui/dynamic-theme/custom-text-color.scss +8 -0
  252. package/ui/dynamic-theme/custom-theme-palettes.scss +33 -0
  253. package/ui/dynamic-theme/custom-theme.scss.tpl +72 -0
  254. package/ui/dynamic-theme/index.scss +1 -0
  255. package/ui/dynamic-theme/theme-configuration.scss.tpl +14 -0
  256. package/ui/dynamic-theme/typography.scss +94 -0
  257. package/ui/mixins.scss +26 -0
  258. package/ui/overrides/adf-about.theme.scss +38 -0
  259. package/ui/overrides/adf-pagination.theme.scss +46 -0
  260. package/ui/overrides/adf-style-fixes.theme.scss +18 -0
  261. package/ui/overrides/ay11.scss +232 -0
  262. package/ui/theme.scss +55 -0
  263. package/ui/variables/font-family.scss +1 -0
  264. package/ui/variables/variables.scss +92 -0
@@ -0,0 +1,14 @@
1
+ /* stylelint-disable scss/no-global-function-names */
2
+ @function get-custom-background-color($background-color, $theme) {
3
+ $background: map-get($theme, background);
4
+ $card: map-get($background, card);
5
+ $new-card-color: lighten($background-color, 10%);
6
+ $new-selected-button: lighten($background-color, 5%);
7
+ $background: map_merge($background, (background: $background-color));
8
+ $background: map_merge($background, (card: $new-card-color));
9
+ $background: map_merge($background, (modal: $new-card-color));
10
+ $background: map_merge($background, (dialog: $new-card-color));
11
+ $background: map_merge($background, (selected-button: $new-selected-button));
12
+
13
+ @return $background;
14
+ }
@@ -0,0 +1,132 @@
1
+ /* stylelint-disable scss/dollar-variable-pattern */
2
+ /* stylelint-disable scss/no-global-function-names */
3
+ /* stylelint-disable value-keyword-case */
4
+ @use "sass:math";
5
+
6
+ @function multiply($fore, $back) {
7
+ $red: red($back) * red($fore) / 255;
8
+ $green: green($back) * green($fore) / 255;
9
+ $blue: blue($back) * blue($fore) / 255;
10
+
11
+ @return rgb($red, $green, $blue);
12
+ }
13
+
14
+ @function get-color-luminance($color) {
15
+ $colors: (
16
+ 'red': red($color),
17
+ 'green': green($color),
18
+ 'blue': blue($color)
19
+ );
20
+
21
+ @each $name, $value in $colors {
22
+ $adjusted: 0;
23
+ $value: $value / 255;
24
+
25
+ @if $value < 0.0393 {
26
+ $value: $value / 12.92;
27
+ } @else {
28
+ $value: ($value + .055) / 1.055;
29
+ $value: math.pow($value, 2.4);
30
+ }
31
+
32
+ $colors: map-merge($colors, ($name: $value));
33
+ }
34
+
35
+ @return (map-get($colors, 'red') * .2126) + (map-get($colors, 'green') * .7152) + (map-get($colors, 'blue') * .0722);
36
+ }
37
+
38
+ @function create-text-color($color, $color-type: 'primary') {
39
+ $red: red($color);
40
+ $green: green($color);
41
+ $blue: blue($color);
42
+ $light-text: $light-primary-text;
43
+ $dark-text: $dark-primary-text;
44
+
45
+ @if $color-type == 'accent' {
46
+ $light-text: $light-secondary-text;
47
+ $dark-text: $dark-secondary-text;
48
+ }
49
+
50
+ $light-text-luminance: get-color-luminance($light-text);
51
+ $dark-text-luminance: get-color-luminance($dark-text);
52
+ $background-color-luminance: get-color-luminance($color);
53
+ $light-text-luminance: $light-text-luminance + 0.5;
54
+ $dark-text-luminance: $dark-text-luminance + 0.5;
55
+ $background-color-luminance: $background-color-luminance + 0.5;
56
+ $luminance-contrast-for-light-text: $light-text-luminance / $background-color-luminance;
57
+ $luminance-contrast-for-dark-text: $background-color-luminance / $dark-text-luminance;
58
+ $text-colour: $light-text;
59
+
60
+ @if $luminance-contrast-for-dark-text > $luminance-contrast-for-light-text {
61
+ $text-colour: $dark-text;
62
+ }
63
+
64
+ @return $text-colour;
65
+ }
66
+
67
+ @function create-color-palette($color, $color-type: 'primary') {
68
+ $light: #fff;
69
+ $dark: multiply($color, $color);
70
+ $color50: mix($light, $color, 88%);
71
+ $color100: mix($light, $color, 70%);
72
+ $color200: mix($light, $color, 50%);
73
+ $color300: mix($light, $color, 30%);
74
+ $color400: mix($light, $color, 15%);
75
+ $color500: mix($light, $color, 0%);
76
+ $color600: mix($dark, $color, 13%);
77
+ $color700: mix($dark, $color, 30%);
78
+ $color800: mix($dark, $color, 46%);
79
+ $color900: mix($dark, $color, 75%);
80
+ $colorA100: lighten(saturate(mix($dark, $color, 15%), 80%), 45.6%);
81
+ $colorA200: lighten(saturate(mix($dark, $color, 15%), 80%), 35.6%);
82
+ $colorA400: lighten(saturate(mix($dark, $color, 15%), 100%), 25.6%);
83
+ $colorA700: lighten(saturate(mix($dark, $color, 15%), 100%), 20.5%);
84
+ $contrast50: create-text-color($color50, $color-type);
85
+ $contrast100: create-text-color($color100, $color-type);
86
+ $contrast200: create-text-color($color200, $color-type);
87
+ $contrast300: create-text-color($color300, $color-type);
88
+ $contrast400: create-text-color($color400, $color-type);
89
+ $contrast500: create-text-color($color500, $color-type);
90
+ $contrast600: create-text-color($color600, $color-type);
91
+ $contrast700: create-text-color($color700, $color-type);
92
+ $contrast800: create-text-color($color800, $color-type);
93
+ $contrast900: create-text-color($color900, $color-type);
94
+ $contrastA100: create-text-color($colorA100, $color-type);
95
+ $contrastA200: create-text-color($colorA200, $color-type);
96
+ $contrastA400: create-text-color($colorA400, $color-type);
97
+ $contrastA700: create-text-color($colorA700, $color-type);
98
+ $palette: (
99
+ 50: $color50,
100
+ 100: $color50,
101
+ 200: $color50,
102
+ 300: $color50,
103
+ 400: $color400,
104
+ 500: $color500,
105
+ 600: $color600,
106
+ 700: $color700,
107
+ 800: $color800,
108
+ 900: $color900,
109
+ A100: $colorA100,
110
+ A200: $colorA200,
111
+ A400: $colorA400,
112
+ A700: $colorA700,
113
+ contrast: (
114
+ 50: $contrast50,
115
+ 100: $contrast100,
116
+ 200: $contrast200,
117
+ 300: $contrast300,
118
+ 400: $contrast400,
119
+ 500: $contrast500,
120
+ 600: $contrast600,
121
+ 700: $contrast700,
122
+ 800: $contrast800,
123
+ 900: $contrast900,
124
+ A100: $contrastA100,
125
+ A200: $contrastA200,
126
+ A400: $contrastA400,
127
+ A700: $contrastA700
128
+ )
129
+ );
130
+
131
+ @return $palette;
132
+ }
@@ -0,0 +1,8 @@
1
+ /* stylelint-disable scss/no-global-function-names */
2
+ @function get-custom-text-color($text-color, $theme) {
3
+ $foreground: map-get($custom-theme, foreground);
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,33 @@
1
+ /* stylelint-disable value-keyword-case */
2
+
3
+ @use '@angular/material' as mat;
4
+ @import '../colors';
5
+ @import './custom-palette-creator';
6
+
7
+ @function get-mat-palettes($primary-color, $accent-color) {
8
+ $mat-primary-palette: null;
9
+
10
+ @if $primary-color {
11
+ $custom-theme-primary-palette: create-color-palette($primary-color, 'primary');
12
+ $mat-primary-palette: mat.define-palette($custom-theme-primary-palette, 500);
13
+ } @else {
14
+ $mat-primary-palette: mat.define-palette($aca-primary-blue, A100);
15
+ }
16
+
17
+ $mat-accent-palette: null;
18
+
19
+ @if $accent-color {
20
+ $custom-theme-accent-palette: create-color-palette($accent-color, 'accent');
21
+ $mat-accent-palette: mat.define-palette($custom-theme-accent-palette, 500);
22
+ } @else {
23
+ $mat-accent-palette: mat.define-palette($aca-accent-green, A200);
24
+ }
25
+
26
+ $mat-warn-palette: mat.define-palette($aca-warn, A100);
27
+
28
+ @return (
29
+ primary: $mat-primary-palette,
30
+ accent: $mat-accent-palette,
31
+ warning: $mat-warn-palette,
32
+ )
33
+ }
@@ -0,0 +1,72 @@
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
+ $app-typography: get-mat-typography(
19
+ $base-font-size,
20
+ $font-family
21
+ );
22
+
23
+ @include mat-core();
24
+
25
+ $palettes: get-mat-palettes($primary-color, $accent-color);
26
+ $custom-theme: mat-light-theme(
27
+ (
28
+ color: (
29
+ primary: map-get($palettes, primary),
30
+ accent: map-get($palettes, accent),
31
+ warn: map-get($palettes, warning)
32
+ ),
33
+ typography: $app-typography
34
+ )
35
+ );
36
+
37
+ @if $background-color {
38
+ $custom-background: get-custom-background-color($background-color, $custom-theme);
39
+ $custom-theme: map_merge($custom-theme, (background: $custom-background));
40
+
41
+ $color: map_get($custom-theme, color);
42
+ $new-color: map_merge($color, (background: $custom-background));
43
+ $custom-theme: map_merge($custom-theme, (color: $new-color));
44
+ }
45
+
46
+ @if $text-color {
47
+ $custom-foreground: get-custom-text-color($text-color, $custom-theme);
48
+ $custom-theme: map_merge($custom-theme, (foreground: $custom-foreground));
49
+
50
+ $color: map_get($custom-theme, color);
51
+ $new-color: map_merge($color, (foreground: $custom-foreground));
52
+ $custom-theme: map_merge($custom-theme, (color: $new-color));
53
+ }
54
+
55
+ @mixin custom-theme($theme) {
56
+ @include angular-material-theme($theme);
57
+
58
+ @if $base-font-size {
59
+ @include adf-core-theme($theme, get-custom-adf-font-sizes());
60
+ @include base-font-size($base-font-size);
61
+ } @else {
62
+ @include adf-core-theme($theme);
63
+ }
64
+
65
+ @if $font-family {
66
+ @include base-font-family($font-family);
67
+ }
68
+
69
+ @include adf-style-fixes($theme);
70
+ @include adf-pagination-theme($theme);
71
+ @include adf-about-theme($theme);
72
+ }
@@ -0,0 +1 @@
1
+ @import '../theme';
@@ -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,94 @@
1
+ /* stylelint-disable scss/no-global-function-names */
2
+ @use '@angular/material' as mat;
3
+ @import '../variables/font-family';
4
+
5
+ @function get-mat-typography($base-font-size, $font-family) {
6
+ $custom-typography: mat.define-typography-config(
7
+ $font-family: 'Muli, Roboto, "Helvetica Neue", sans-serif',
8
+ $display-4: mat.define-typography-level(112px, 112px, 300),
9
+ $display-3: mat.define-typography-level(56px, 56px, 400),
10
+ $display-2: mat.define-typography-level(45px, 48px, 400),
11
+ $display-1: mat.define-typography-level(34px, 40px, 400),
12
+ $headline: mat.define-typography-level(24px, 32px, 400),
13
+ $title: mat.define-typography-level(20px, 32px, 500),
14
+ $subheading-2: mat.define-typography-level(16px, 28px, 400),
15
+ $subheading-1: mat.define-typography-level(15px, 24px, 400),
16
+ $body-2: mat.define-typography-level(14px, 24px, 500),
17
+ $body-1: mat.define-typography-level(14px, 20px, 400),
18
+ $caption: mat.define-typography-level(12px, 20px, 400),
19
+ $button: mat.define-typography-level(14px, 14px, 500),
20
+ // Line-height must be unit-less fraction of the font-size.
21
+ $input: mat.define-typography-level(16px, 1.25, 400)
22
+ );
23
+
24
+ @if $base-font-size {
25
+ $custom-typography: mat.define-typography-config(
26
+ $display-4: mat.define-typography-level(8rem, 8rem, 300),
27
+ $display-3: mat.define-typography-level(4rem, 4rem, 400),
28
+ $display-2: mat.define-typography-level(3.21rem, 3.21rem, 400),
29
+ $display-1: mat.define-typography-level(2.42rem, 2.85rem, 400),
30
+ $headline: mat.define-typography-level(1.71rem, 2.28rem, 400),
31
+ $title: mat.define-typography-level(1.42rem, 2.28rem, 500),
32
+ $subheading-2: mat.define-typography-level(1.14rem, 2rem, 400),
33
+ $subheading-1: mat.define-typography-level(1.07rem, 1.71rem, 400),
34
+ $body-2: mat.define-typography-level(1rem, 1.71rem, 500),
35
+ $body-1: mat.define-typography-level(1rem, 1.42rem, 400),
36
+ $caption: mat.define-typography-level(0.86rem, 1.42rem, 400),
37
+ $button: mat.define-typography-level(1rem, 1rem, 500),
38
+ $font-family: $default-font-family,
39
+ $input: mat.define-typography-level(1.14em, 1.25, 400)
40
+ );
41
+ }
42
+
43
+ @if $font-family {
44
+ @each $key, $level in $custom-typography {
45
+ @if type-of($level) == 'map' {
46
+ $new-level: map-merge(
47
+ $level,
48
+ (
49
+ font-family: $font-family
50
+ )
51
+ );
52
+ $custom-typography: map-merge(
53
+ $custom-typography,
54
+ (
55
+ $key: $new-level
56
+ )
57
+ );
58
+ }
59
+ }
60
+
61
+ $custom-typography: map-merge(
62
+ $custom-typography,
63
+ (
64
+ font-family: $font-family
65
+ )
66
+ );
67
+ }
68
+
69
+ @return $custom-typography;
70
+ }
71
+
72
+ @function get-custom-adf-font-sizes() {
73
+ @return (
74
+ 'theme-adf-icon-1-font-size': 1.2rem,
75
+ 'theme-adf-picture-1-font-size': 1.28rem,
76
+ 'theme-adf-task-footer-font-size': 1.28rem,
77
+ 'theme-adf-task-title-font-size': 1.28rem,
78
+ 'theme-adf-spacing': 16px
79
+ );
80
+ }
81
+
82
+ @mixin base-font-size($font-size) {
83
+ html,
84
+ body {
85
+ font-size: $font-size !important;
86
+ }
87
+ }
88
+
89
+ @mixin base-font-family($font-family) {
90
+ html,
91
+ body {
92
+ font-family: $font-family !important;
93
+ }
94
+ }
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() {
19
+ outline: 2px solid var(--theme-blue-button-color);
20
+ border-radius: 4px;
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,38 @@
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
+ }
21
+
22
+ mat-expansion-panel-header {
23
+ display: flex;
24
+ height: 80px !important;
25
+ padding: 24px;
26
+ line-height: 32px;
27
+ }
28
+
29
+ mat-panel-title {
30
+ font-style: normal;
31
+ font-weight: 700;
32
+ font-size: 14px;
33
+ line-height: 24px;
34
+ color: var(--theme-about-panel-title-color);
35
+ }
36
+
37
+ }
38
+ }
@@ -0,0 +1,46 @@
1
+ @mixin adf-pagination-theme($theme) {
2
+ .adf-pagination__block {
3
+ flex: none !important;
4
+ padding: 0 !important;
5
+ font-weight: 400;
6
+ font-size: 14px;
7
+ line-height: 24px;
8
+ letter-spacing: 0.25px;
9
+ }
10
+
11
+ .adf-pagination {
12
+ height: 32px !important;
13
+ line-height: 24px !important;
14
+ padding: 16px 0;
15
+ background: var(--theme-pagination-background-color);
16
+ }
17
+
18
+ .adf-pagination__range-block {
19
+ padding: 0 24px !important;
20
+ }
21
+
22
+ .adf-pagination__perpage-block {
23
+ flex: auto !important;
24
+ padding-right: 24px !important;
25
+ }
26
+
27
+ .adf-pagination__actualinfo-block {
28
+ padding-right: 12px !important;
29
+
30
+ .mat-menu-trigger {
31
+ display: none !important;
32
+ }
33
+ }
34
+
35
+ .adf-pagination__previous-button {
36
+ margin: 0 12px 0 0 !important;
37
+ }
38
+
39
+ .adf-pagination__next-button {
40
+ margin: 0 !important;
41
+ }
42
+
43
+ .adf-pagination__controls-block {
44
+ padding-right: 24px !important;
45
+ }
46
+ }
@@ -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
+ }