@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.
- package/README.md +24 -0
- package/about/about.component.d.ts +45 -0
- package/about/aca-about.module.d.ts +39 -0
- package/about/dev-mode.tokens.d.ts +25 -0
- package/about/index.d.ts +5 -0
- package/about/package-json.token.d.ts +25 -0
- package/about/public-api.d.ts +27 -0
- package/assets/app.extensions.json +2626 -0
- package/assets/i18n/ar.json +660 -0
- package/assets/i18n/cs.json +660 -0
- package/assets/i18n/da.json +660 -0
- package/assets/i18n/de.json +660 -0
- package/assets/i18n/en.json +660 -0
- package/assets/i18n/es.json +660 -0
- package/assets/i18n/fi.json +660 -0
- package/assets/i18n/fr.json +660 -0
- package/assets/i18n/it.json +660 -0
- package/assets/i18n/ja.json +660 -0
- package/assets/i18n/nb.json +660 -0
- package/assets/i18n/nl.json +660 -0
- package/assets/i18n/pl.json +660 -0
- package/assets/i18n/pt-BR.json +660 -0
- package/assets/i18n/ru.json +660 -0
- package/assets/i18n/sv.json +660 -0
- package/assets/i18n/zh-CN.json +660 -0
- package/assets/images/Wallpaper-BG-generic.svg +39 -0
- package/assets/images/adf-move-file-24px.svg +1 -0
- package/assets/images/baseline-library_books-24px.svg +2 -0
- package/assets/images/baseline-lock-24px.svg +1 -0
- package/assets/images/join-library.svg +32 -0
- package/esm2020/about/about.component.mjs +77 -0
- package/esm2020/about/aca-about.module.mjs +67 -0
- package/esm2020/about/alfresco-aca-content-about.mjs +5 -0
- package/esm2020/about/dev-mode.tokens.mjs +26 -0
- package/esm2020/about/package-json.token.mjs +26 -0
- package/esm2020/about/public-api.mjs +28 -0
- package/esm2020/alfresco-aca-content.mjs +5 -0
- package/esm2020/lib/aca-content.module.mjs +365 -0
- package/esm2020/lib/aca-content.routes.mjs +581 -0
- package/esm2020/lib/components/common/common.module.mjs +67 -0
- package/esm2020/lib/components/common/language-picker/language-picker.component.mjs +57 -0
- package/esm2020/lib/components/common/location-link/location-link.component.mjs +177 -0
- package/esm2020/lib/components/common/logout/logout.component.mjs +60 -0
- package/esm2020/lib/components/common/toggle-shared/toggle-shared.component.mjs +65 -0
- package/esm2020/lib/components/common/user-info/user-info.component.mjs +86 -0
- package/esm2020/lib/components/context-menu/context-menu-item.component.mjs +58 -0
- package/esm2020/lib/components/context-menu/context-menu-outside-event.directive.mjs +65 -0
- package/esm2020/lib/components/context-menu/context-menu-overlay.mjs +32 -0
- package/esm2020/lib/components/context-menu/context-menu.component.mjs +102 -0
- package/esm2020/lib/components/context-menu/context-menu.module.mjs +76 -0
- package/esm2020/lib/components/context-menu/context-menu.service.mjs +103 -0
- package/esm2020/lib/components/context-menu/direction.token.mjs +29 -0
- package/esm2020/lib/components/context-menu/interfaces.mjs +25 -0
- package/esm2020/lib/components/create-menu/create-menu.component.mjs +73 -0
- package/esm2020/lib/components/create-menu/create-menu.module.mjs +44 -0
- package/esm2020/lib/components/details/details.component.mjs +99 -0
- package/esm2020/lib/components/dl-custom-components/document-list-custom-components.module.mjs +49 -0
- package/esm2020/lib/components/dl-custom-components/name-column/name-column.component.mjs +90 -0
- package/esm2020/lib/components/dl-custom-components/tags-column/tags-column.component.mjs +31 -0
- package/esm2020/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.mjs +51 -0
- package/esm2020/lib/components/favorite-libraries/favorite-libraries.component.mjs +113 -0
- package/esm2020/lib/components/favorites/favorites.component.mjs +98 -0
- package/esm2020/lib/components/files/files.component.mjs +312 -0
- package/esm2020/lib/components/home/home.component.mjs +49 -0
- package/esm2020/lib/components/info-drawer/comments-tab/comments-tab.component.mjs +56 -0
- package/esm2020/lib/components/info-drawer/info.drawer.module.mjs +92 -0
- package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.mjs +143 -0
- package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.mjs +42 -0
- package/esm2020/lib/components/info-drawer/metadata-tab/metadata-tab.component.mjs +88 -0
- package/esm2020/lib/components/info-drawer/versions-tab/versions-tab.component.mjs +95 -0
- package/esm2020/lib/components/libraries/libraries.component.mjs +70 -0
- package/esm2020/lib/components/node-version/node-version-form.component.mjs +70 -0
- package/esm2020/lib/components/node-version/node-version.module.mjs +78 -0
- package/esm2020/lib/components/recent-files/recent-files.component.mjs +81 -0
- package/esm2020/lib/components/search/search-action-menu/search-action-menu.component.mjs +59 -0
- package/esm2020/lib/components/search/search-input/search-input.component.mjs +275 -0
- package/esm2020/lib/components/search/search-input-control/search-input-control.component.mjs +87 -0
- package/esm2020/lib/components/search/search-input.module.mjs +47 -0
- package/esm2020/lib/components/search/search-libraries-results/search-libraries-query-builder.service.mjs +91 -0
- package/esm2020/lib/components/search/search-libraries-results/search-libraries-results.component.mjs +142 -0
- package/esm2020/lib/components/search/search-navigation.service.mjs +60 -0
- package/esm2020/lib/components/search/search-results/search-results.component.mjs +221 -0
- package/esm2020/lib/components/search/search-results-row/search-results-row.component.mjs +101 -0
- package/esm2020/lib/components/search/search-results.module.mjs +88 -0
- package/esm2020/lib/components/shared-files/shared-files.component.mjs +78 -0
- package/esm2020/lib/components/shared-link-view/shared-link-view.component.mjs +81 -0
- package/esm2020/lib/components/shared-link-view/shared-link-view.module.mjs +69 -0
- package/esm2020/lib/components/sidenav/components/button-menu.component.mjs +57 -0
- package/esm2020/lib/components/sidenav/components/expand-menu.component.mjs +53 -0
- package/esm2020/lib/components/sidenav/components/sidenav-header.component.mjs +74 -0
- package/esm2020/lib/components/sidenav/directives/action.directive.mjs +74 -0
- package/esm2020/lib/components/sidenav/directives/active-link.directive.mjs +92 -0
- package/esm2020/lib/components/sidenav/directives/expansion-panel.directive.mjs +101 -0
- package/esm2020/lib/components/sidenav/directives/menu-panel.directive.mjs +98 -0
- package/esm2020/lib/components/sidenav/sidenav.component.mjs +83 -0
- package/esm2020/lib/components/sidenav/sidenav.module.mjs +84 -0
- package/esm2020/lib/components/toolbar/document-display-mode/document-display-mode.component.mjs +84 -0
- package/esm2020/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.mjs +150 -0
- package/esm2020/lib/components/toolbar/toggle-favorite/toggle-favorite.component.mjs +79 -0
- package/esm2020/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.mjs +101 -0
- package/esm2020/lib/components/toolbar/toggle-info-drawer/toggle-info-drawer.component.mjs +75 -0
- package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.mjs +98 -0
- package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-menu.component.mjs +80 -0
- package/esm2020/lib/components/toolbar/toolbar.module.mjs +88 -0
- package/esm2020/lib/components/toolbar/view-node/view-node.component.mjs +109 -0
- package/esm2020/lib/components/trashcan/trashcan.component.mjs +63 -0
- package/esm2020/lib/components/trashcan/trashcan.module.mjs +74 -0
- package/esm2020/lib/components/upload-files-dialog/upload-files-dialog.component.mjs +50 -0
- package/esm2020/lib/components/view-profile/view-profile.component.mjs +174 -0
- package/esm2020/lib/components/view-profile/view-profile.guard.mjs +47 -0
- package/esm2020/lib/components/view-profile/view-profile.module.mjs +42 -0
- package/esm2020/lib/dialogs/node-template/create-from-template.dialog.mjs +119 -0
- package/esm2020/lib/directives/directives.module.mjs +42 -0
- package/esm2020/lib/directives/document-list.directive.mjs +141 -0
- package/esm2020/lib/extensions/core.extensions.module.mjs +64 -0
- package/esm2020/lib/material.module.mjs +57 -0
- package/esm2020/lib/services/content-management.service.mjs +870 -0
- package/esm2020/lib/services/content-service-extension.service.mjs +63 -0
- package/esm2020/lib/services/content-url.service.mjs +72 -0
- package/esm2020/lib/services/node-actions.service.mjs +600 -0
- package/esm2020/lib/services/node-template.service.mjs +149 -0
- package/esm2020/lib/store/app-store.module.mjs +95 -0
- package/esm2020/lib/store/effects/app.effects.mjs +61 -0
- package/esm2020/lib/store/effects/contextmenu.effects.mjs +55 -0
- package/esm2020/lib/store/effects/download.effects.mjs +159 -0
- package/esm2020/lib/store/effects/favorite.effects.mjs +76 -0
- package/esm2020/lib/store/effects/library.effects.mjs +111 -0
- package/esm2020/lib/store/effects/node.effects.mjs +309 -0
- package/esm2020/lib/store/effects/search.effects.mjs +60 -0
- package/esm2020/lib/store/effects/template.effects.mjs +121 -0
- package/esm2020/lib/store/effects/upload.effects.mjs +169 -0
- package/esm2020/lib/store/effects/viewer.effects.mjs +175 -0
- package/esm2020/lib/store/effects.mjs +35 -0
- package/esm2020/lib/store/initial-state.mjs +62 -0
- package/esm2020/lib/store/reducers/app.reducer.mjs +211 -0
- package/esm2020/public-api.mjs +32 -0
- package/fesm2015/alfresco-aca-content-about.mjs +216 -0
- package/fesm2015/alfresco-aca-content-about.mjs.map +1 -0
- package/fesm2015/alfresco-aca-content.mjs +9771 -0
- package/fesm2015/alfresco-aca-content.mjs.map +1 -0
- package/fesm2020/alfresco-aca-content-about.mjs +214 -0
- package/fesm2020/alfresco-aca-content-about.mjs.map +1 -0
- package/fesm2020/alfresco-aca-content.mjs +9915 -0
- package/fesm2020/alfresco-aca-content.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/aca-content.module.d.ts +47 -0
- package/lib/aca-content.routes.d.ts +27 -0
- package/lib/components/common/common.module.d.ts +17 -0
- package/lib/components/common/language-picker/language-picker.component.d.ts +5 -0
- package/lib/components/common/location-link/location-link.component.d.ts +48 -0
- package/lib/components/common/logout/logout.component.d.ts +10 -0
- package/lib/components/common/toggle-shared/toggle-shared.component.d.ts +43 -0
- package/lib/components/common/user-info/user-info.component.d.ts +44 -0
- package/lib/components/context-menu/context-menu-item.component.d.ts +13 -0
- package/lib/components/context-menu/context-menu-outside-event.directive.d.ts +35 -0
- package/lib/components/context-menu/context-menu-overlay.d.ts +29 -0
- package/lib/components/context-menu/context-menu.component.d.ts +48 -0
- package/lib/components/context-menu/context-menu.module.d.ts +18 -0
- package/lib/components/context-menu/context-menu.service.d.ts +43 -0
- package/lib/components/context-menu/direction.token.d.ts +25 -0
- package/lib/components/context-menu/interfaces.d.ts +30 -0
- package/lib/components/create-menu/create-menu.component.d.ts +42 -0
- package/lib/components/create-menu/create-menu.module.d.ts +10 -0
- package/lib/components/details/details.component.d.ts +46 -0
- package/lib/components/dl-custom-components/document-list-custom-components.module.d.ts +14 -0
- package/lib/components/dl-custom-components/name-column/name-column.component.d.ts +41 -0
- package/lib/components/dl-custom-components/tags-column/tags-column.component.d.ts +35 -0
- package/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.d.ts +17 -0
- package/lib/components/favorite-libraries/favorite-libraries.component.d.ts +54 -0
- package/lib/components/favorites/favorites.component.d.ts +49 -0
- package/lib/components/files/files.component.d.ts +55 -0
- package/lib/components/home/home.component.d.ts +36 -0
- package/lib/components/info-drawer/comments-tab/comments-tab.component.d.ts +11 -0
- package/lib/components/info-drawer/info.drawer.module.d.ts +19 -0
- package/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.d.ts +64 -0
- package/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.d.ts +7 -0
- package/lib/components/info-drawer/metadata-tab/metadata-tab.component.d.ts +49 -0
- package/lib/components/info-drawer/versions-tab/versions-tab.component.d.ts +35 -0
- package/lib/components/libraries/libraries.component.d.ts +44 -0
- package/lib/components/node-version/node-version-form.component.d.ts +46 -0
- package/lib/components/node-version/node-version.module.d.ts +16 -0
- package/lib/components/recent-files/recent-files.component.d.ts +48 -0
- package/lib/components/search/search-action-menu/search-action-menu.component.d.ts +38 -0
- package/lib/components/search/search-input/search-input.component.d.ts +85 -0
- package/lib/components/search/search-input-control/search-input-control.component.d.ts +50 -0
- package/lib/components/search/search-input.module.d.ts +12 -0
- package/lib/components/search/search-libraries-results/search-libraries-query-builder.service.d.ts +56 -0
- package/lib/components/search/search-libraries-results/search-libraries-results.component.d.ts +58 -0
- package/lib/components/search/search-navigation.service.d.ts +13 -0
- package/lib/components/search/search-results/search-results.component.d.ts +69 -0
- package/lib/components/search/search-results-row/search-results-row.component.d.ts +50 -0
- package/lib/components/search/search-results.module.d.ts +21 -0
- package/lib/components/shared-files/shared-files.component.d.ts +47 -0
- package/lib/components/shared-link-view/shared-link-view.component.d.ts +47 -0
- package/lib/components/shared-link-view/shared-link-view.module.d.ts +15 -0
- package/lib/components/sidenav/components/button-menu.component.d.ts +37 -0
- package/lib/components/sidenav/components/expand-menu.component.d.ts +35 -0
- package/lib/components/sidenav/components/sidenav-header.component.d.ts +48 -0
- package/lib/components/sidenav/directives/action.directive.d.ts +14 -0
- package/lib/components/sidenav/directives/active-link.directive.d.ts +45 -0
- package/lib/components/sidenav/directives/expansion-panel.directive.d.ts +44 -0
- package/lib/components/sidenav/directives/menu-panel.directive.d.ts +42 -0
- package/lib/components/sidenav/sidenav.component.d.ts +50 -0
- package/lib/components/sidenav/sidenav.module.d.ts +19 -0
- package/lib/components/toolbar/document-display-mode/document-display-mode.component.d.ts +13 -0
- package/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.d.ts +47 -0
- package/lib/components/toolbar/toggle-favorite/toggle-favorite.component.d.ts +42 -0
- package/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.d.ts +42 -0
- package/lib/components/toolbar/toggle-info-drawer/toggle-info-drawer.component.d.ts +11 -0
- package/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.d.ts +41 -0
- package/lib/components/toolbar/toggle-join-library/toggle-join-library-menu.component.d.ts +10 -0
- package/lib/components/toolbar/toolbar.module.d.ts +20 -0
- package/lib/components/toolbar/view-node/view-node.component.d.ts +19 -0
- package/lib/components/trashcan/trashcan.component.d.ts +42 -0
- package/lib/components/trashcan/trashcan.module.d.ts +16 -0
- package/lib/components/upload-files-dialog/upload-files-dialog.component.d.ts +37 -0
- package/lib/components/view-profile/view-profile.component.d.ts +59 -0
- package/lib/components/view-profile/view-profile.guard.d.ts +12 -0
- package/lib/components/view-profile/view-profile.module.d.ts +9 -0
- package/lib/dialogs/node-template/create-from-template.dialog.d.ts +49 -0
- package/lib/directives/directives.module.d.ts +9 -0
- package/lib/directives/document-list.directive.d.ts +56 -0
- package/lib/extensions/core.extensions.module.d.ts +14 -0
- package/lib/material.module.d.ts +14 -0
- package/lib/services/content-management.service.d.ts +100 -0
- package/lib/services/content-service-extension.service.d.ts +11 -0
- package/lib/services/content-url.service.d.ts +17 -0
- package/lib/services/node-actions.service.d.ts +93 -0
- package/lib/services/node-template.service.d.ts +34 -0
- package/lib/store/app-store.module.d.ts +10 -0
- package/lib/store/effects/app.effects.d.ts +41 -0
- package/lib/store/effects/contextmenu.effects.d.ts +12 -0
- package/lib/store/effects/download.effects.d.ts +49 -0
- package/lib/store/effects/favorite.effects.d.ts +38 -0
- package/lib/store/effects/library.effects.d.ts +43 -0
- package/lib/store/effects/node.effects.d.ts +56 -0
- package/lib/store/effects/search.effects.d.ts +37 -0
- package/lib/store/effects/template.effects.d.ts +54 -0
- package/lib/store/effects/upload.effects.d.ts +52 -0
- package/lib/store/effects/viewer.effects.d.ts +55 -0
- package/lib/store/effects.d.ts +34 -0
- package/lib/store/initial-state.d.ts +26 -0
- package/lib/store/reducers/app.reducer.d.ts +26 -0
- package/package.json +47 -0
- package/public-api.d.ts +28 -0
- package/ui/application.scss +53 -0
- package/ui/colors.scss +96 -0
- package/ui/custom-theme.scss +34 -0
- package/ui/dynamic-theme/custom-background-color.scss +14 -0
- package/ui/dynamic-theme/custom-palette-creator.scss +132 -0
- package/ui/dynamic-theme/custom-text-color.scss +8 -0
- package/ui/dynamic-theme/custom-theme-palettes.scss +33 -0
- package/ui/dynamic-theme/custom-theme.scss.tpl +72 -0
- package/ui/dynamic-theme/index.scss +1 -0
- package/ui/dynamic-theme/theme-configuration.scss.tpl +14 -0
- package/ui/dynamic-theme/typography.scss +94 -0
- package/ui/mixins.scss +26 -0
- package/ui/overrides/adf-about.theme.scss +38 -0
- package/ui/overrides/adf-pagination.theme.scss +46 -0
- package/ui/overrides/adf-style-fixes.theme.scss +18 -0
- package/ui/overrides/ay11.scss +232 -0
- package/ui/theme.scss +55 -0
- package/ui/variables/font-family.scss +1 -0
- 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,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
|
+
}
|