@elderbyte/ngx-starter 19.0.2 → 19.1.0-beta.1
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/_index.scss +2 -70
- package/fesm2022/elderbyte-ngx-starter.mjs +769 -197
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/components/layout/pane/pane.component.d.ts +6 -0
- package/lib/components/layout/pane-container/pane-container.component.d.ts +11 -0
- package/lib/components/layout/public_api.d.ts +2 -0
- package/lib/components/m3-sidenav/m3-sidenav.component.d.ts +5 -0
- package/lib/components/public_api.d.ts +2 -0
- package/lib/components/style-debugger/style-debugger.component.d.ts +40 -0
- package/package.json +1 -1
- package/src/lib/components/badge/elder-badge/elder-badge.component.scss +2 -2
- package/src/lib/components/button-group/elder-button-group/elder-button-group.component.scss +18 -28
- package/src/lib/components/card-organizer/card-stack/elder-card-stack.component.scss +9 -36
- package/src/lib/components/cards/elder-card/elder-card.component.scss +0 -20
- package/src/lib/components/chips/_elder-chip-theme.scss +63 -56
- package/src/lib/components/data-transfer/http-data-transfer-indicator/http-data-transfer-indicator.component.scss +1 -7
- package/src/lib/components/data-transfer/http-data-transfer-overview/http-data-transfer-overview.component.scss +11 -0
- package/src/lib/components/data-view/common/data-context-state-indicator/data-context-state-indicator.component.scss +2 -1
- package/src/lib/components/data-view/grid/elder-grid/elder-grid.component.scss +16 -26
- package/src/lib/components/data-view/table/elder-table/elder-table.component.scss +100 -92
- package/src/lib/components/errors/exception-detail/elder-exception-detail.component.scss +0 -24
- package/src/lib/components/expand-toggle-button/elder-expand-toggle-button.component.scss +7 -17
- package/src/lib/components/files/blob-viewer/elder-blob-viewer.component.scss +4 -10
- package/src/lib/components/files/drag-n-drop/elder-drop-zone/elder-drop-zone.component.scss +23 -34
- package/src/lib/components/forms/search/search-box/elder-search-box.component.scss +0 -5
- package/src/lib/components/graph/elder-progress-bar/elder-progress-bar.component.scss +0 -1
- package/src/lib/components/iframes/iframe-host/iframe-host.component.scss +0 -6
- package/src/lib/components/navigation/bread-crumbs/bread-crumbs/elder-bread-crumbs.component.scss +2 -0
- package/src/lib/components/navigation/nav/_elder-nav-theme.scss +16 -24
- package/src/lib/components/navigation/nav/nav-group/elder-nav-group.component.scss +1 -1
- package/src/lib/components/navigation/nav/nav-link/elder-nav-link.component.scss +4 -6
- package/src/lib/components/page/exit-guard/page-exit-lock-indicator/page-exit-lock-indicator.component.scss +2 -5
- package/src/lib/components/panels/card-panel/elder-card-panel.component.scss +6 -19
- package/src/lib/components/panels/elder-dialog-panel/elder-dialog-panel.component.scss +6 -19
- package/src/lib/components/select/_elder-select-base.scss +1 -10
- package/src/lib/components/select/filter/elder-filter-chip-template/elder-filter-chip-template.component.scss +4 -22
- package/src/lib/components/select/multi/elder-multi-select-chip-options/elder-multi-select-chip-options.component.scss +10 -40
- package/src/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.scss +18 -53
- package/src/lib/components/select/single/elder-select/elder-select.component.scss +24 -41
- package/src/lib/components/select-chip-list/chip-list-select/elder-chip-list-select.component.scss +2 -8
- package/src/lib/components/shell/header/elder-app-header/elder-app-header.component.scss +11 -2
- package/src/lib/components/shell/shell/elder-shell.component.scss +8 -0
- package/src/lib/components/toasts/standard-toast/standard-toast.component.scss +22 -2
- package/theming/style-tweaks/_elder-color-variants.scss +31 -0
- package/theming/style-tweaks/_elder-common.scss +179 -0
- package/theming/style-tweaks/_elder-component-themes.scss +22 -0
- package/theming/style-tweaks/_elder-form.scss +368 -0
- package/theming/style-tweaks/_elder-reset.scss +13 -0
- package/theming/style-tweaks/_elder-style-fixes.scss +376 -0
- package/theming/{_mixins.scss → style-tweaks/_elder-style-tweak-mixins.scss} +35 -1
- package/theming/system/_elder-config.scss +141 -0
- package/theming/{_elder-defaults.scss → system/_elder-defaults.scss} +9 -14
- package/theming/system/_elder-design-tokens.scss +100 -0
- package/theming/system/_elder-m3-theme.scss +156 -0
- package/theming/system/_elder-starter-theme.scss +41 -0
- package/theming/utility-classes/_elder-color-helpers.scss +78 -0
- package/theming/{_elder-flex-layout.scss → utility-classes/_elder-flex-layout.scss} +19 -25
- package/theming/utility-classes/_elder-layout-system.scss +498 -0
- package/src/lib/components/panels/flat/_elder-panel-theme.scss +0 -72
- package/src/lib/components/time/_elder-time-input.theme.scss +0 -35
- package/theming/_elder-common.scss +0 -573
- package/theming/_elder-mdc-support.scss +0 -235
- package/theming/_elder-palettes.scss +0 -148
- package/theming/_elder-scrollbar-theme.scss +0 -67
- package/theming/_elder-style-fixes.scss +0 -216
- package/theming/_elder-theme.scss +0 -51
- package/theming/_elder-toast-theme.scss +0 -46
- package/theming/_elder-typography-utils.scss +0 -23
- package/theming/_mat-icon-button-size.scss +0 -34
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
|
-
@use '../../../../../../theming/elder-typography-utils' as elder-typography;
|
|
4
3
|
@use '../../elder-select-base' as elder-select-base;
|
|
5
4
|
|
|
6
5
|
@mixin typography($typography-config) {
|
|
@@ -8,7 +7,7 @@
|
|
|
8
7
|
// The unit-less line-height from the font config.
|
|
9
8
|
$line-height: mat.line-height($config, body-1);
|
|
10
9
|
$font-size: mat.font-size($config, body-1);
|
|
11
|
-
$line-height-em:
|
|
10
|
+
$line-height-em: var(--md-sys-typescale-body-medium-line-height);
|
|
12
11
|
|
|
13
12
|
@include elder-select-base.typography($typography-config);
|
|
14
13
|
|
|
@@ -41,16 +40,11 @@
|
|
|
41
40
|
|
|
42
41
|
@mixin theme($config-or-theme) {
|
|
43
42
|
$color: mat.get-color-config($config-or-theme);
|
|
44
|
-
$typography: elder-typography.get-typography-config($config-or-theme);
|
|
45
43
|
|
|
46
|
-
|
|
47
|
-
@if not $typography {
|
|
48
|
-
$typography: mat.define-typography-config();
|
|
49
|
-
}
|
|
44
|
+
$typography: mat.define-typography-config();
|
|
50
45
|
|
|
51
46
|
@if $color != null {
|
|
52
47
|
@include elder-select-base.color($color);
|
|
53
|
-
@include _chip_color($config-or-theme);
|
|
54
48
|
}
|
|
55
49
|
|
|
56
50
|
@if $typography != null {
|
|
@@ -58,14 +52,6 @@
|
|
|
58
52
|
}
|
|
59
53
|
}
|
|
60
54
|
|
|
61
|
-
@mixin _chip_color($theme) {
|
|
62
|
-
$primary: map-get($theme, primary);
|
|
63
|
-
$accent: map-get($theme, accent);
|
|
64
|
-
$warn: map-get($theme, warn);
|
|
65
|
-
$background: map-get($theme, background);
|
|
66
|
-
$foreground: map-get($theme, foreground);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
55
|
.elder-chip-text {
|
|
70
56
|
overflow: hidden;
|
|
71
57
|
text-overflow: ellipsis;
|
|
@@ -78,12 +64,8 @@
|
|
|
78
64
|
}
|
|
79
65
|
|
|
80
66
|
.cdk-drag-preview {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
box-shadow:
|
|
84
|
-
0 5px 5px -3px rgba(0, 0, 0, 0.2),
|
|
85
|
-
0 8px 10px 1px rgba(0, 0, 0, 0.14),
|
|
86
|
-
0 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
67
|
+
// border-radius: var(--elder-border-radius-sm);
|
|
68
|
+
box-shadow: var(--elder-box-shadow-default);
|
|
87
69
|
}
|
|
88
70
|
|
|
89
71
|
.cdk-drag-placeholder {
|
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
|
-
@use '../../../../../../theming/elder-typography-utils' as elder-typography;
|
|
4
3
|
@use '../../elder-select-base' as elder-select-base;
|
|
5
4
|
|
|
6
5
|
@mixin typography($typography-config) {
|
|
7
|
-
$config: $typography-config; // TODO $typography-config
|
|
8
|
-
// The unit-less line-height from the font config.
|
|
9
|
-
$line-height: mat.m2-line-height($config, body-1);
|
|
10
|
-
$font-size: mat.m2-font-size($config, body-1);
|
|
11
|
-
$line-height-em: elder-typography.coerce-unitless-to-em($line-height);
|
|
12
|
-
|
|
13
6
|
@include elder-select-base.typography($typography-config);
|
|
14
7
|
|
|
15
8
|
.elder-multi-select {
|
|
16
|
-
font-family:
|
|
9
|
+
font-family: var(--md-sys-typescale-body-medium-font);
|
|
17
10
|
|
|
18
11
|
.elder-select-input {
|
|
19
|
-
height:
|
|
12
|
+
height: var(--md-sys-typescale-body-medium-line-height);
|
|
20
13
|
}
|
|
21
14
|
|
|
22
15
|
.elder-prefix-icon {
|
|
@@ -40,39 +33,16 @@
|
|
|
40
33
|
}
|
|
41
34
|
|
|
42
35
|
@mixin theme($config-or-theme) {
|
|
43
|
-
|
|
44
|
-
$typography: elder-typography.get-typography-config($config-or-theme);
|
|
45
|
-
|
|
46
|
-
// If no actual typography configuration has been specified, create a default one.
|
|
47
|
-
@if not $typography {
|
|
48
|
-
$typography: mat.m2-define-typography-config();
|
|
49
|
-
}
|
|
36
|
+
@include typography($config-or-theme);
|
|
50
37
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
38
|
+
.elder-chip-text {
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
text-overflow: ellipsis;
|
|
41
|
+
white-space: nowrap;
|
|
54
42
|
}
|
|
55
43
|
|
|
56
|
-
|
|
57
|
-
|
|
44
|
+
.elder-trailing-icon {
|
|
45
|
+
color: var(--mdc-chip-with-trailing-icon-trailing-icon-color);
|
|
46
|
+
opacity: 0.54;
|
|
58
47
|
}
|
|
59
48
|
}
|
|
60
|
-
|
|
61
|
-
@mixin _chip_color($theme) {
|
|
62
|
-
$primary: map-get($theme, primary);
|
|
63
|
-
$accent: map-get($theme, accent);
|
|
64
|
-
$warn: map-get($theme, warn);
|
|
65
|
-
$background: map-get($theme, background);
|
|
66
|
-
$foreground: map-get($theme, foreground);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.elder-chip-text {
|
|
70
|
-
overflow: hidden;
|
|
71
|
-
text-overflow: ellipsis;
|
|
72
|
-
white-space: nowrap;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.elder-trailing-icon {
|
|
76
|
-
color: var(--mdc-chip-with-trailing-icon-trailing-icon-color);
|
|
77
|
-
opacity: 0.54;
|
|
78
|
-
}
|
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
|
-
@use '../../../../../../theming/elder-typography-utils' as elder-typography;
|
|
4
3
|
@use '../../elder-select-base' as elder-select-base;
|
|
5
4
|
|
|
6
5
|
@mixin typography($typography-config) {
|
|
7
|
-
$config: $typography-config; // TODO $typography-config
|
|
8
|
-
// The unit-less line-height from the font config.
|
|
9
|
-
$line-height: mat.m2-line-height($config, body-1);
|
|
10
|
-
$font-size: mat.m2-font-size($config, body-1);
|
|
11
|
-
$line-height-em: elder-typography.coerce-unitless-to-em($line-height);
|
|
12
|
-
|
|
13
6
|
@include elder-select-base.typography($typography-config);
|
|
14
7
|
|
|
15
8
|
.elder-multi-select {
|
|
16
|
-
font-family:
|
|
9
|
+
font-family: var(--md-sys-typescale-body-medium-font);
|
|
17
10
|
|
|
18
11
|
.elder-select-input {
|
|
19
|
-
height:
|
|
12
|
+
height: var(--md-sys-typescale-body-medium-line-height);
|
|
20
13
|
}
|
|
21
14
|
|
|
22
15
|
.elder-prefix-icon {
|
|
@@ -40,56 +33,28 @@
|
|
|
40
33
|
}
|
|
41
34
|
|
|
42
35
|
@mixin theme($config-or-theme) {
|
|
43
|
-
|
|
44
|
-
$typography: elder-typography.get-typography-config($config-or-theme);
|
|
36
|
+
@include typography($config-or-theme);
|
|
45
37
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
.elder-chip-text {
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
text-overflow: ellipsis;
|
|
41
|
+
white-space: nowrap;
|
|
49
42
|
}
|
|
50
43
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
44
|
+
.elder-trailing-icon {
|
|
45
|
+
color: var(--mdc-chip-with-trailing-icon-trailing-icon-color);
|
|
46
|
+
opacity: 0.54;
|
|
54
47
|
}
|
|
55
48
|
|
|
56
|
-
|
|
57
|
-
|
|
49
|
+
.cdk-drag-preview {
|
|
50
|
+
box-shadow: var(--elder-box-shadow-default);
|
|
58
51
|
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@mixin _chip_color($theme) {
|
|
62
|
-
$primary: map-get($theme, primary);
|
|
63
|
-
$accent: map-get($theme, accent);
|
|
64
|
-
$warn: map-get($theme, warn);
|
|
65
|
-
$background: map-get($theme, background);
|
|
66
|
-
$foreground: map-get($theme, foreground);
|
|
67
|
-
}
|
|
68
52
|
|
|
69
|
-
.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
white-space: nowrap;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.elder-trailing-icon {
|
|
76
|
-
color: var(--mdc-chip-with-trailing-icon-trailing-icon-color);
|
|
77
|
-
opacity: 0.54;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.cdk-drag-preview {
|
|
81
|
-
box-sizing: border-box;
|
|
82
|
-
// border-radius: 4px;
|
|
83
|
-
box-shadow:
|
|
84
|
-
0 5px 5px -3px rgba(0, 0, 0, 0.2),
|
|
85
|
-
0 8px 10px 1px rgba(0, 0, 0, 0.14),
|
|
86
|
-
0 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.cdk-drag-placeholder {
|
|
90
|
-
opacity: 0;
|
|
91
|
-
}
|
|
53
|
+
.cdk-drag-placeholder {
|
|
54
|
+
opacity: 0;
|
|
55
|
+
}
|
|
92
56
|
|
|
93
|
-
.cdk-drag-animating {
|
|
94
|
-
|
|
57
|
+
.cdk-drag-animating {
|
|
58
|
+
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
59
|
+
}
|
|
95
60
|
}
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
|
-
@use '../../../../../../theming/elder-typography-utils' as elder-typography;
|
|
4
3
|
@use '../../elder-select-base' as elder-select-base;
|
|
5
4
|
|
|
6
|
-
@mixin typography($
|
|
7
|
-
$
|
|
8
|
-
// The unit-less line-height from the font config.
|
|
9
|
-
$line-height: mat.m2-line-height($config, body-1);
|
|
10
|
-
$font-size: mat.m2-font-size($config, body-1);
|
|
11
|
-
$line-height-em: elder-typography.coerce-unitless-to-em($line-height);
|
|
5
|
+
@mixin typography($config-or-theme) {
|
|
6
|
+
$line-height-em: var(--md-sys-typescale-body-medium-line-height);
|
|
12
7
|
|
|
13
|
-
@include elder-select-base.typography($
|
|
8
|
+
@include elder-select-base.typography($config-or-theme);
|
|
14
9
|
|
|
15
10
|
.elder-select {
|
|
16
|
-
font-family:
|
|
11
|
+
font-family: var(--md-sys-typescale-body-medium-font);
|
|
17
12
|
|
|
18
13
|
.elder-input-prefix-icon-container {
|
|
19
14
|
padding-right: 3px;
|
|
@@ -31,45 +26,33 @@
|
|
|
31
26
|
}
|
|
32
27
|
|
|
33
28
|
@mixin theme($config-or-theme) {
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
// @debug mat.get-theme-typography($config-or-theme, body-medium, line-height);
|
|
30
|
+
// @debug mat.get-theme-typography($config-or-theme, body-medium, font-family);
|
|
31
|
+
@include typography($config-or-theme);
|
|
36
32
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
@keyframes shrink {
|
|
34
|
+
0% {
|
|
35
|
+
transform: scale(1);
|
|
36
|
+
}
|
|
37
|
+
100% {
|
|
38
|
+
transform: scale(0.75);
|
|
39
|
+
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
.loading {
|
|
43
|
+
animation: shrink 0.3s ease-in-out infinite alternate;
|
|
44
|
+
-webkit-animation: shrink 0.3s ease-in-out infinite alternate;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
.clickable-icon {
|
|
48
|
+
cursor: pointer;
|
|
48
49
|
}
|
|
49
|
-
}
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
transform: scale(1);
|
|
51
|
+
.full-width {
|
|
52
|
+
width: 100%;
|
|
54
53
|
}
|
|
55
|
-
100% {
|
|
56
|
-
transform: scale(0.75);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.loading {
|
|
61
|
-
animation: shrink 0.3s ease-in-out infinite alternate;
|
|
62
|
-
-webkit-animation: shrink 0.3s ease-in-out infinite alternate;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.clickable-icon {
|
|
66
|
-
cursor: pointer;
|
|
67
|
-
}
|
|
68
54
|
|
|
69
|
-
.
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.elder-select-dropdown-input {
|
|
74
|
-
cursor: pointer;
|
|
55
|
+
.elder-select-dropdown-input {
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
}
|
|
75
58
|
}
|
package/src/lib/components/select-chip-list/chip-list-select/elder-chip-list-select.component.scss
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
|
|
3
3
|
@mixin elder-select-list-theme($theme) {
|
|
4
|
-
$primary: map-get($theme, primary);
|
|
5
|
-
$accent: map-get($theme, accent);
|
|
6
|
-
$warn: map-get($theme, warn);
|
|
7
|
-
$background: map-get($theme, background);
|
|
8
|
-
$foreground: map-get($theme, foreground);
|
|
9
|
-
|
|
10
4
|
.select-item-active {
|
|
11
|
-
background-color:
|
|
12
|
-
border-left: 5px solid
|
|
5
|
+
background-color: var(--md-sys-color-primary-container);
|
|
6
|
+
border-left: 5px solid var(--md-sys-color-primary) !important;
|
|
13
7
|
}
|
|
14
8
|
}
|
|
15
9
|
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
.title-icon {
|
|
2
2
|
font-size: 42px;
|
|
3
|
-
width:
|
|
4
|
-
height:
|
|
3
|
+
width: 82px;
|
|
4
|
+
height: 82px;
|
|
5
5
|
padding: 20px;
|
|
6
6
|
}
|
|
7
|
+
|
|
8
|
+
.link-unstyled {
|
|
9
|
+
text-decoration: none;
|
|
10
|
+
color: inherit;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.elder-app-header-panel {
|
|
14
|
+
background-color: #0b284f; // TODO: replace in m3
|
|
15
|
+
}
|
|
@@ -1,3 +1,23 @@
|
|
|
1
|
-
.toast
|
|
2
|
-
|
|
1
|
+
.elder-toast {
|
|
2
|
+
--elder-toast-message-color-title: var(--elder-toast-message-color-title-default);
|
|
3
|
+
--mdc-filled-button-container-color: var(--md-sys-color-secondary);
|
|
4
|
+
|
|
5
|
+
&.elder-toast-type-warn {
|
|
6
|
+
--elder-toast-message-color-title: var(--elder-toast-message-color-title-warn);
|
|
7
|
+
--mdc-filled-button-container-color: var(--md-sys-color-tertiary-container);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&.elder-toast-type-error {
|
|
11
|
+
--elder-toast-message-color-title: var(--elder-toast-message-color-title-error);
|
|
12
|
+
--mdc-filled-button-container-color: var(--md-sys-color-error);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
button {
|
|
16
|
+
color: var(--elder-toast-message-color-title) !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.toast-title,
|
|
20
|
+
.mat-icon {
|
|
21
|
+
color: var(--elder-toast-message-color-title);
|
|
22
|
+
}
|
|
3
23
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Source: https://material.angular.io/guide/theming#using-component-color-variants
|
|
5
|
+
*
|
|
6
|
+
* This applies custom color variants for the legacy M2 color system for usage in M3.
|
|
7
|
+
* There are different mixins for many components (not all).
|
|
8
|
+
* You can find the list of the components and there supported color variants here:
|
|
9
|
+
* https://material.angular.io/guide/theming#using-component-color-variants
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
// Custom Color variants for m3. They can already be provided through
|
|
13
|
+
// "mat.color-variants-backwards-compatibility()"
|
|
14
|
+
// But can be customized in this mixin below:
|
|
15
|
+
|
|
16
|
+
@mixin elder-color-variants($theme) {
|
|
17
|
+
// Apply primary color variants for button components
|
|
18
|
+
mat-chip-option[color='primary'] {
|
|
19
|
+
@include mat.chips-color($theme, $color-variant: primary);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Apply secondary color variants for button components
|
|
23
|
+
mat-chip-option[color='danger'] {
|
|
24
|
+
@include mat.chips-color($theme, $color-variant: error);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Apply tertiary color variants for button components
|
|
28
|
+
mat-chip-option[color='accent'] {
|
|
29
|
+
@include mat.chips-color($theme, $color-variant: tertiary);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
@use './elder-style-tweak-mixins' as mixins;
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
|
|
5
|
+
@mixin elder-common-styles($theme) {
|
|
6
|
+
$common-sizes: map.get($theme, elder, common-sizes);
|
|
7
|
+
|
|
8
|
+
/***************************************************************************
|
|
9
|
+
* *
|
|
10
|
+
* Common Sizes *
|
|
11
|
+
* *
|
|
12
|
+
**************************************************************************/
|
|
13
|
+
|
|
14
|
+
$xs: map.get($common-sizes, xs);
|
|
15
|
+
$sm: map.get($common-sizes, sm);
|
|
16
|
+
$md: map.get($common-sizes, md);
|
|
17
|
+
$lg: map.get($common-sizes, lg);
|
|
18
|
+
$xl: map.get($common-sizes, xl);
|
|
19
|
+
$xxl: map.get($common-sizes, xxl);
|
|
20
|
+
|
|
21
|
+
/***************************************************************************
|
|
22
|
+
* *
|
|
23
|
+
* Angular Material Extensions (Optional) *
|
|
24
|
+
* *
|
|
25
|
+
**************************************************************************/
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The mat-button-fill class will lead a mat button
|
|
29
|
+
* to take up all the space, which gives you more freedom where
|
|
30
|
+
* to place items inside.
|
|
31
|
+
*/
|
|
32
|
+
.mat-button-fill .mdc-button__label {
|
|
33
|
+
position: relative;
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 100%;
|
|
36
|
+
flex-direction: row;
|
|
37
|
+
justify-content: stretch;
|
|
38
|
+
align-items: stretch;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/***************************************************************************
|
|
42
|
+
* *
|
|
43
|
+
* Material Card Styling *
|
|
44
|
+
* *
|
|
45
|
+
**************************************************************************/
|
|
46
|
+
|
|
47
|
+
.mat-mdc-card.embedded {
|
|
48
|
+
border-radius: 0;
|
|
49
|
+
box-shadow: none;
|
|
50
|
+
border: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/***************************************************************************
|
|
54
|
+
* *
|
|
55
|
+
* Material Table Styling *
|
|
56
|
+
* *
|
|
57
|
+
**************************************************************************/
|
|
58
|
+
|
|
59
|
+
th.mat-mdc-header-cell {
|
|
60
|
+
&.elder-number-cell {
|
|
61
|
+
text-align: right;
|
|
62
|
+
justify-content: flex-end;
|
|
63
|
+
}
|
|
64
|
+
&.elder-center-cell {
|
|
65
|
+
text-align: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
td.mat-mdc-cell {
|
|
71
|
+
&.elder-number-cell {
|
|
72
|
+
text-align: right;
|
|
73
|
+
justify-content: flex-end;
|
|
74
|
+
}
|
|
75
|
+
&.elder-center-cell {
|
|
76
|
+
text-align: center;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
td.mat-mdc-footer-cell {
|
|
82
|
+
&.elder-number-cell {
|
|
83
|
+
text-align: right;
|
|
84
|
+
justify-content: flex-end;
|
|
85
|
+
}
|
|
86
|
+
&.elder-center-cell {
|
|
87
|
+
text-align: center;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/***************************************************************************
|
|
93
|
+
* *
|
|
94
|
+
* Style for hiding spinner on inputs *
|
|
95
|
+
* *
|
|
96
|
+
**************************************************************************/
|
|
97
|
+
|
|
98
|
+
input.elder-input-no-spinner::-webkit-outer-spin-button,
|
|
99
|
+
input.elder-input-no-spinner::-webkit-inner-spin-button {
|
|
100
|
+
display: none;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
input[type='number'].elder-input-no-spinner {
|
|
104
|
+
-moz-appearance: textfield;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/***************************************************************************
|
|
108
|
+
* *
|
|
109
|
+
* Material Dialog *
|
|
110
|
+
* *
|
|
111
|
+
**************************************************************************/
|
|
112
|
+
|
|
113
|
+
.custom-dialog-container .mat-mdc-dialog-container {
|
|
114
|
+
// overflow-y: hidden;
|
|
115
|
+
// padding: 0;
|
|
116
|
+
// margin: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.no-padding-dialog .mat-mdc-dialog-container {
|
|
120
|
+
padding: 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/***************************************************************************
|
|
124
|
+
* *
|
|
125
|
+
* Padding *
|
|
126
|
+
* *
|
|
127
|
+
**************************************************************************/
|
|
128
|
+
|
|
129
|
+
.elder-default-content:not(:only-child) {
|
|
130
|
+
display: none;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/***************************************************************************
|
|
134
|
+
* *
|
|
135
|
+
* MDC Icon Button Sizing *
|
|
136
|
+
* *
|
|
137
|
+
**************************************************************************/
|
|
138
|
+
|
|
139
|
+
.elder-icon-button-lg {
|
|
140
|
+
@include mixins.matIconButtonSize(40px, 24px);
|
|
141
|
+
}
|
|
142
|
+
.elder-icon-button-md {
|
|
143
|
+
@include mixins.matIconButtonSize(32px, 19px);
|
|
144
|
+
}
|
|
145
|
+
.elder-icon-button-sm {
|
|
146
|
+
@include mixins.matIconButtonSize(26px, 16px);
|
|
147
|
+
}
|
|
148
|
+
.elder-icon-button-xs {
|
|
149
|
+
@include mixins.matIconButtonSize(20px, 12px);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.mat-mdc-chip {
|
|
153
|
+
.mat-mdc-chip-avatar {
|
|
154
|
+
/**
|
|
155
|
+
* Maximizes the avatar icon / image size in a chip.
|
|
156
|
+
*/
|
|
157
|
+
&.chip-avatar-xl {
|
|
158
|
+
width: 28px;
|
|
159
|
+
height: 28px;
|
|
160
|
+
margin-left: -4px;
|
|
161
|
+
margin-right: -4px;
|
|
162
|
+
|
|
163
|
+
img {
|
|
164
|
+
width: 28px;
|
|
165
|
+
height: 28px;
|
|
166
|
+
overflow: hidden;
|
|
167
|
+
border-radius: 14px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.mat-icon {
|
|
171
|
+
width: 28px !important;
|
|
172
|
+
height: 28px !important;
|
|
173
|
+
line-height: 28px !important;
|
|
174
|
+
font-size: 28px !important;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use '../../src/lib/components/chips/elder-chip-theme' as elder-chip;
|
|
2
|
+
@use '../../src/lib/components/data-view/table/elder-table/elder-table.component' as elder-table;
|
|
3
|
+
@use '../../src/lib/components/navigation/nav/elder-nav-theme' as elder-nav;
|
|
4
|
+
@use '../../src/lib/components/data-view/grid/elder-grid/elder-grid.component' as elder-grid;
|
|
5
|
+
@use '../../src/lib/components/card-organizer/card-stack/elder-card-stack.component' as
|
|
6
|
+
elder-card-stack;
|
|
7
|
+
@use '../../src/lib/components/select/single/elder-select/elder-select.component' as elder-select;
|
|
8
|
+
@use '../../src/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component'
|
|
9
|
+
as elder-multi-select-chips;
|
|
10
|
+
@use '../../src/lib/components/select/multi/elder-multi-select-chip-options/elder-multi-select-chip-options.component'
|
|
11
|
+
as elder-multi-select-chip-options;
|
|
12
|
+
|
|
13
|
+
@mixin theme($theme) {
|
|
14
|
+
@include elder-chip.theme($theme);
|
|
15
|
+
@include elder-nav.theme($theme);
|
|
16
|
+
@include elder-select.theme($theme);
|
|
17
|
+
@include elder-multi-select-chips.theme($theme);
|
|
18
|
+
@include elder-multi-select-chip-options.theme($theme);
|
|
19
|
+
@include elder-table.theme($theme);
|
|
20
|
+
@include elder-card-stack.theme($theme);
|
|
21
|
+
@include elder-grid.theme($theme);
|
|
22
|
+
}
|