@alfresco/adf-core 8.4.0-19062358161 → 8.4.0-19063861366
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/custom-theme/material-theme.scss +13 -13
- package/custom-theme/theme/custom-palette-creator.scss +25 -23
- package/custom-theme/theme/custom-theme-palettes.scss +7 -7
- package/custom-theme/theme/theme-data.scss +13 -13
- package/custom-theme/theme/typography.scss +5 -5
- package/fesm2022/adf-core.mjs +110 -110
- package/fesm2022/adf-core.mjs.map +1 -1
- package/fesm2022/alfresco-adf-core-breadcrumbs.mjs +2 -2
- package/fesm2022/alfresco-adf-core-breadcrumbs.mjs.map +1 -1
- package/fesm2022/alfresco-adf-core-feature-flags.mjs +2 -2
- package/fesm2022/alfresco-adf-core-feature-flags.mjs.map +1 -1
- package/lib/about/about-package/package-list.component.scss +0 -10
- package/lib/about/about-server-settings/about-server-settings.component.scss +0 -2
- package/lib/about/about.component.scss +0 -4
- package/lib/avatar/avatar.component.scss +7 -9
- package/lib/card-view/components/card-view/card-view.component.scss +2 -26
- package/lib/card-view/components/card-view-arrayitem/card-view-arrayitem.component.scss +1 -11
- package/lib/card-view/components/card-view-dateitem/card-view-dateitem.component.scss +0 -1
- package/lib/card-view/components/card-view-selectitem/card-view-selectitem.component.scss +2 -7
- package/lib/card-view/components/card-view-selectitem/select-filter-input/select-filter-input.component.scss +0 -3
- package/lib/card-view/components/card-view-textitem/card-view-textitem.component.scss +1 -28
- package/lib/clipboard/clipboard.theme.scss +3 -3
- package/lib/comments/comment-list/comment-list.component.scss +5 -7
- package/lib/comments/comments.component.scss +2 -31
- package/lib/datatable/components/columns-selector/columns-selector.component.scss +6 -13
- package/lib/datatable/components/datatable/datatable.component.scss +29 -42
- package/lib/dialogs/dialog/dialog.component.scss +2 -2
- package/lib/dialogs/unsaved-changes-dialog/unsaved-changes-dialog.component.scss +11 -8
- package/lib/directives/tooltip-card/tooltip-card.component.scss +3 -9
- package/lib/dynamic-chip-list/dynamic-chip-list.component.scss +0 -4
- package/lib/form/components/form-renderer.component.scss +3 -30
- package/lib/form/components/inplace-form-input/inplace-form-input.component.scss +0 -19
- package/lib/form/components/widgets/amount/amount.widget.scss +0 -6
- package/lib/form/components/widgets/date-time/date-time.widget.scss +1 -1
- package/lib/form/components/widgets/display-text/display-text.widget.scss +0 -3
- package/lib/form/components/widgets/form.theme.scss +6 -42
- package/lib/form/components/widgets/header/header.widget.scss +2 -4
- package/lib/form/components/widgets/hyperlink/hyperlink.widget.scss +1 -1
- package/lib/form/components/widgets/multiline-text/multiline-text.widget.scss +1 -1
- package/lib/header/header.component.scss +12 -12
- package/lib/header/navbar/navbar-item.component.scss +3 -11
- package/lib/identity-user-info/identity-user-info.component.scss +4 -4
- package/lib/info-drawer/info-drawer-layout.component.scss +1 -5
- package/lib/info-drawer/info-drawer.component.scss +1 -21
- package/lib/layout/components/header/header.component.scss +3 -3
- package/lib/layout/components/layout-container/layout-container.component.scss +1 -3
- package/lib/layout/components/sidebar-action/sidebar-action-menu.component.scss +2 -8
- package/lib/layout/components/sidenav-layout/sidenav-layout.component.scss +0 -1
- package/lib/login/components/login/login.component.scss +12 -70
- package/lib/notifications/components/notification-history.component.scss +3 -17
- package/lib/pagination/pagination.component.scss +0 -6
- package/lib/search-text/search-text-input.component.scss +1 -6
- package/lib/styles/_globals.scss +3 -32
- package/lib/styles/_mixins.scss +1 -1
- package/lib/templates/empty-content/empty-content.component.scss +4 -6
- package/lib/templates/error-content/error-content.component.scss +2 -3
- package/lib/toolbar/toolbar.component.scss +0 -3
- package/lib/viewer/components/img-viewer/img-viewer.component.scss +2 -14
- package/lib/viewer/components/pdf-viewer/pdf-viewer.component.scss +8 -9
- package/lib/viewer/components/pdf-viewer-password-dialog/pdf-viewer-password-dialog.scss +0 -4
- package/lib/viewer/components/pdf-viewer-thumbnails/pdf-viewer-thumbnails.component.scss +3 -3
- package/lib/viewer/components/txt-viewer/txt-viewer.component.scss +1 -1
- package/lib/viewer/components/unknown-format/unknown-format.component.scss +0 -1
- package/lib/viewer/components/viewer-render/viewer-render.component.scss +2 -2
- package/lib/viewer/components/viewer.component.scss +11 -23
- package/package.json +3 -3
- package/lib/button/button.component.scss +0 -13
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
|
-
@
|
|
3
|
+
@import './theme/theme-data';
|
|
4
4
|
|
|
5
5
|
$custom-theme: mat.m2-define-light-theme(
|
|
6
6
|
(
|
|
7
7
|
color: (
|
|
8
|
-
primary: map.get(
|
|
9
|
-
accent: map.get(
|
|
10
|
-
warn: map.get(
|
|
8
|
+
primary: map.get($palettes, primary),
|
|
9
|
+
accent: map.get($palettes, accent),
|
|
10
|
+
warn: map.get($palettes, warning)
|
|
11
11
|
),
|
|
12
|
-
typography:
|
|
12
|
+
typography: $app-typography
|
|
13
13
|
)
|
|
14
14
|
);
|
|
15
15
|
|
|
16
|
-
@if
|
|
17
|
-
$custom-theme:
|
|
16
|
+
@if $background-color {
|
|
17
|
+
$custom-theme: get-custom-background-color($background-color, $custom-theme);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
@if
|
|
21
|
-
$custom-theme:
|
|
20
|
+
@if $text-color {
|
|
21
|
+
$custom-theme: get-custom-text-color($text-color, $custom-theme);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
@if
|
|
24
|
+
@if $base-font-size {
|
|
25
25
|
body,
|
|
26
26
|
html {
|
|
27
|
-
font-size:
|
|
27
|
+
font-size: $base-font-size;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
@if
|
|
31
|
+
@if $font-family {
|
|
32
32
|
body,
|
|
33
33
|
html {
|
|
34
|
-
font-family:
|
|
34
|
+
font-family: $font-family;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
$colors: (
|
|
16
16
|
red: color.red($color),
|
|
17
17
|
green: color.green($color),
|
|
18
|
-
blue: color.blue($color)
|
|
18
|
+
blue: color.blue($color),
|
|
19
19
|
);
|
|
20
20
|
|
|
21
21
|
@each $name, $value in $colors {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
$colors: map.merge(
|
|
33
33
|
$colors,
|
|
34
34
|
(
|
|
35
|
-
$name: $value
|
|
35
|
+
$name: $value,
|
|
36
36
|
)
|
|
37
37
|
);
|
|
38
38
|
}
|
|
@@ -91,10 +91,10 @@
|
|
|
91
91
|
$color900: color.mix($dark, $color, 75%);
|
|
92
92
|
|
|
93
93
|
/* stylelint-disable scss/dollar-variable-pattern */
|
|
94
|
-
$colorA100: color.adjust(
|
|
95
|
-
$colorA200: color.adjust(
|
|
96
|
-
$colorA400: color.adjust(
|
|
97
|
-
$colorA700: color.adjust(
|
|
94
|
+
$colorA100: color.adjust(saturate(color.mix($dark, $color, 15%), 80%), $lightness: 45.6%);
|
|
95
|
+
$colorA200: color.adjust(saturate(color.mix($dark, $color, 15%), 80%), $lightness: 35.6%);
|
|
96
|
+
$colorA400: color.adjust(saturate(color.mix($dark, $color, 15%), 100%), $lightness: 25.6%);
|
|
97
|
+
$colorA700: color.adjust(saturate(color.mix($dark, $color, 15%), 100%), $lightness: 20.5%);
|
|
98
98
|
/* stylelint-enable scss/dollar-variable-pattern */
|
|
99
99
|
|
|
100
100
|
$contrast50: create-text-color($color50, $colorType);
|
|
@@ -126,28 +126,30 @@
|
|
|
126
126
|
700: $color700,
|
|
127
127
|
800: $color800,
|
|
128
128
|
900: $color900,
|
|
129
|
-
/* stylelint-disable value-keyword-case */
|
|
129
|
+
/* stylelint-disable value-keyword-case */
|
|
130
|
+
A100: $colorA100,
|
|
130
131
|
A200: $colorA200,
|
|
131
132
|
A400: $colorA400,
|
|
132
133
|
A700: $colorA700,
|
|
133
134
|
/* stylelint-enable value-keyword-case */
|
|
134
135
|
contrast: (
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
136
|
+
50: $contrast50,
|
|
137
|
+
100: $contrast100,
|
|
138
|
+
200: $contrast200,
|
|
139
|
+
300: $contrast300,
|
|
140
|
+
400: $contrast400,
|
|
141
|
+
500: $contrast500,
|
|
142
|
+
600: $contrast600,
|
|
143
|
+
700: $contrast700,
|
|
144
|
+
800: $contrast800,
|
|
145
|
+
900: $contrast900,
|
|
146
|
+
/* stylelint-disable value-keyword-case */
|
|
147
|
+
A100: $contrastA100,
|
|
148
|
+
A200: $contrastA200,
|
|
149
|
+
A400: $contrastA400,
|
|
150
|
+
A700: $contrastA700,
|
|
151
|
+
/* stylelint-enable value-keyword-case */
|
|
152
|
+
),
|
|
151
153
|
);
|
|
152
154
|
|
|
153
155
|
@return $palette;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
|
-
@
|
|
3
|
-
@
|
|
2
|
+
@import './default-colors';
|
|
3
|
+
@import './custom-palette-creator';
|
|
4
4
|
|
|
5
5
|
@function get-mat-palettes($primary-color, $accent-color) {
|
|
6
6
|
$mat-primary-palette: null;
|
|
7
7
|
|
|
8
8
|
@if ($primary-color) {
|
|
9
|
-
$custom-theme-primary-palette:
|
|
9
|
+
$custom-theme-primary-palette: create-color-palette($primary-color, 'primary');
|
|
10
10
|
$mat-primary-palette: mat.m2-define-palette($custom-theme-primary-palette, 500);
|
|
11
11
|
} @else {
|
|
12
|
-
$mat-primary-palette: mat.m2-define-palette(default-
|
|
12
|
+
$mat-primary-palette: mat.m2-define-palette($default-primary, A100);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
$mat-accent-palette: null;
|
|
16
16
|
|
|
17
17
|
@if ($accent-color) {
|
|
18
|
-
$custom-theme-accent-palette:
|
|
18
|
+
$custom-theme-accent-palette: create-color-palette($accent-color, 'accent');
|
|
19
19
|
$mat-accent-palette: mat.m2-define-palette($custom-theme-accent-palette, 500);
|
|
20
20
|
} @else {
|
|
21
|
-
$mat-accent-palette: mat.m2-define-palette(default-
|
|
21
|
+
$mat-accent-palette: mat.m2-define-palette($default-accent);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
$mat-warn-palette: mat.m2-define-palette(default-
|
|
24
|
+
$mat-warn-palette: mat.m2-define-palette($default-warn, A100);
|
|
25
25
|
|
|
26
26
|
@return (primary: $mat-primary-palette, accent: $mat-accent-palette, warning: $mat-warn-palette);
|
|
27
27
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
2
|
+
@import './theme-configuration';
|
|
3
|
+
@import './typography';
|
|
4
|
+
@import './custom-theme-palettes';
|
|
5
|
+
@import './custom-background-color';
|
|
6
|
+
@import './custom-text-color';
|
|
7
7
|
|
|
8
|
-
$primary-color: map.get(theme-
|
|
9
|
-
$accent-color: map.get(theme-
|
|
10
|
-
$background-color: map.get(theme-
|
|
8
|
+
$primary-color: map.get($theme-config, 'primaryColor');
|
|
9
|
+
$accent-color: map.get($theme-config, 'accentColor');
|
|
10
|
+
$background-color: map.get($theme-config, 'backgroundColor');
|
|
11
11
|
|
|
12
|
-
$text-color: map.get(theme-
|
|
13
|
-
$base-font-size: map.get(theme-
|
|
14
|
-
$font-family: map.get(theme-
|
|
12
|
+
$text-color: map.get($theme-config, 'textColor');
|
|
13
|
+
$base-font-size: map.get($theme-config, 'baseFontSize');
|
|
14
|
+
$font-family: map.get($theme-config, 'fontFamily');
|
|
15
15
|
|
|
16
|
-
$app-typography:
|
|
16
|
+
$app-typography: get-mat-typography($base-font-size, $font-family);
|
|
17
17
|
|
|
18
|
-
$palettes:
|
|
18
|
+
$palettes: get-mat-palettes($primary-color, $accent-color);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
|
-
@
|
|
4
|
-
@use '../variables/font-family';
|
|
3
|
+
@import '../variables/font-family';
|
|
5
4
|
|
|
6
5
|
@function get-mat-typography($base-font-size, $font-family) {
|
|
7
6
|
$custom-typography: mat.m2-define-typography-config(
|
|
@@ -17,7 +16,8 @@
|
|
|
17
16
|
$subtitle-2: mat.m2-define-typography-level(14px, 24px, 500),
|
|
18
17
|
$body-2: mat.m2-define-typography-level(14px, 20px, 400),
|
|
19
18
|
$caption: mat.m2-define-typography-level(12px, 20px, 400),
|
|
20
|
-
$button: mat.m2-define-typography-level(14px, 14px, 500)
|
|
19
|
+
$button: mat.m2-define-typography-level(14px, 14px, 500),
|
|
20
|
+
// Line-height must be unit-less fraction of the font-size.
|
|
21
21
|
);
|
|
22
22
|
|
|
23
23
|
@if $base-font-size {
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
$body-2: mat.m2-define-typography-level(1rem, 1.42rem, 400),
|
|
35
35
|
$caption: mat.m2-define-typography-level(0.86rem, 1.42rem, 400),
|
|
36
36
|
$button: mat.m2-define-typography-level(1rem, 1rem, 500),
|
|
37
|
-
$font-family:
|
|
37
|
+
$font-family: $default-font-family
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
@if $font-family {
|
|
42
42
|
@each $key, $level in $custom-typography {
|
|
43
43
|
/* stylelint-disable-next-line scss/no-global-function-names */
|
|
44
|
-
@if
|
|
44
|
+
@if type-of($level) == 'map' {
|
|
45
45
|
$new-level: map.merge(
|
|
46
46
|
$level,
|
|
47
47
|
(
|