@elderbyte/ngx-starter 19.1.0-beta.2 → 19.1.0-beta.20
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 +1 -1
- package/fesm2022/elderbyte-ngx-starter.mjs +1200 -1142
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/common/utils/public_api.d.ts +1 -0
- package/lib/components/data-view/base/elder-data-view-base.d.ts +14 -0
- package/lib/components/layout/basic-pane-layout/basic-pane-layout.component.d.ts +1 -6
- package/lib/components/layout/pane/header/pane-actions.component.d.ts +5 -0
- package/lib/components/layout/pane/header/pane-header.component.d.ts +7 -0
- package/lib/components/layout/pane/header/pane-title.component.d.ts +5 -0
- package/lib/components/layout/pane/pane-content.component.d.ts +5 -0
- package/lib/components/layout/pane/pane.component.d.ts +1 -1
- package/lib/components/layout/public_api.d.ts +4 -0
- package/lib/components/select/single/elder-select/elder-select.component.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/components/card-organizer/card-stack/elder-card-stack.component.scss +0 -72
- package/src/lib/components/data-transfer/http-data-transfer-overview/http-data-transfer-overview.component.scss +6 -5
- package/src/lib/components/data-view/grid/elder-grid/elder-grid.component.scss +70 -82
- package/src/lib/components/data-view/table/elder-table/elder-table.component.scss +0 -220
- package/src/lib/components/files/drag-n-drop/elder-drop-zone/elder-drop-zone.component.scss +4 -4
- package/src/lib/components/forms/search/search-box/elder-search-box.component.scss +1 -0
- package/src/lib/components/navigation/nav/nav-group/elder-nav-group.component.scss +22 -3
- package/src/lib/components/navigation/nav/nav-link/elder-nav-link.component.scss +38 -4
- package/src/lib/components/panels/elder-dialog-panel/elder-dialog-panel.component.scss +2 -2
- package/src/lib/components/select/filter/elder-filter-chip-template/elder-filter-chip-template.component.scss +0 -77
- package/src/lib/components/select/multi/elder-multi-select-chip-options/elder-multi-select-chip-options.component.scss +0 -48
- package/src/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.scss +0 -60
- package/src/lib/components/select/single/elder-select/elder-select.component.scss +0 -58
- package/src/lib/components/shell/header/elder-app-header/elder-app-header.component.scss +1 -1
- package/src/lib/components/toasts/standard-toast/standard-toast.component.scss +1 -1
- package/theming/abstracts/_elder-design-tokens.scss +190 -0
- package/theming/{system/_elder-config.scss → abstracts/_elder-scss-variables.scss} +34 -0
- package/theming/{system/_elder-defaults.scss → abstracts/_elder-set-defaults-fn.scss} +8 -8
- package/theming/abstracts/_elder-starter-theme.scss +47 -0
- package/theming/abstracts/_elder-theme-main.scss +92 -0
- package/theming/{style-tweaks/_elder-common.scss → base/_elder-common-base.scss} +8 -11
- package/theming/base/_elder-component-themes.scss +21 -0
- package/theming/{style-tweaks/_elder-style-fixes.scss → base/_elder-fixes-base.scss} +31 -43
- package/theming/{style-tweaks/_elder-form.scss → base/_elder-form-base.scss} +7 -4
- package/theming/base/_elder-m2-legacy-base.scss +37 -0
- package/theming/components/_elder-card-stack-theme.scss +72 -0
- package/theming/components/_elder-chip-theme.scss +239 -0
- package/theming/components/_elder-filter-chip-template-theme.scss +79 -0
- package/theming/components/_elder-multi-select-chip-options-theme.scss +48 -0
- package/theming/components/_elder-multi-select-chips-theme.scss +60 -0
- package/theming/components/_elder-nav-theme.scss +24 -0
- package/theming/components/_elder-select-theme.scss +58 -0
- package/theming/components/_elder-table-theme.scss +213 -0
- package/theming/components/_legacy-elder-chip-theme.scss +119 -0
- package/theming/{utility-classes/_elder-color-helpers.scss → utilities/_elder-color-utils.scss} +3 -10
- package/theming/utilities/_elder-common-utils.scss +17 -0
- package/theming/{utility-classes/_elder-flex-layout.scss → utilities/_elder-flex-layout-utils.scss} +108 -2
- package/theming/{utility-classes/_elder-layout-system.scss → utilities/_elder-layout-utils.scss} +226 -201
- package/theming/{utility-classes/_elder-typography-helpers.scss → utilities/_elder-typography-utils.scss} +1 -1
- package/lib/components/m3-sidenav/m3-sidenav.component.d.ts +0 -5
- package/src/lib/components/chips/_elder-chip-theme.scss +0 -129
- package/src/lib/components/navigation/nav/_elder-nav-theme.scss +0 -66
- package/theming/style-tweaks/_elder-color-variants.scss +0 -31
- package/theming/style-tweaks/_elder-component-themes.scss +0 -22
- package/theming/style-tweaks/_elder-reset.scss +0 -13
- package/theming/system/_elder-design-tokens.scss +0 -101
- package/theming/system/_elder-m3-theme.scss +0 -156
- package/theming/system/_elder-starter-theme.scss +0 -45
- package/theming/utility-classes/_elder-common-helpers.scss +0 -8
- /package/theming/{style-tweaks/_elder-style-tweak-mixins.scss → base/_elder-base-mixins.scss} +0 -0
- /package/{src/lib/components/select/_elder-select-base.scss → theming/components/_elder-select-base-mixin.scss} +0 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// @use 'sass:map';
|
|
2
|
+
// @use '@angular/material' as mat;
|
|
3
|
+
// @use './elder-select-base-mixin' as elder-select-base;
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// @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.line-height($config, body-1);
|
|
10
|
+
// $font-size: mat.font-size($config, body-1);
|
|
11
|
+
// $line-height-em: var(--md-sys-typescale-body-medium-line-height);
|
|
12
|
+
|
|
13
|
+
// @include elder-select-base.typography($typography-config);
|
|
14
|
+
|
|
15
|
+
// .elder-multi-select {
|
|
16
|
+
// font-family: mat.font-family($config);
|
|
17
|
+
|
|
18
|
+
// .elder-select-input {
|
|
19
|
+
// height: $line-height-em;
|
|
20
|
+
// }
|
|
21
|
+
|
|
22
|
+
// .elder-prefix-icon {
|
|
23
|
+
// margin-left: 3px;
|
|
24
|
+
// }
|
|
25
|
+
|
|
26
|
+
// .elder-chip-input {
|
|
27
|
+
// flex: 1 0 auto;
|
|
28
|
+
// padding-left: 8px;
|
|
29
|
+
// }
|
|
30
|
+
|
|
31
|
+
// .elder-chip-input-select {
|
|
32
|
+
// flex: 1 0 140px;
|
|
33
|
+
// max-width: 100%;
|
|
34
|
+
// }
|
|
35
|
+
|
|
36
|
+
// .elder-browse-icon {
|
|
37
|
+
// margin-right: 4px;
|
|
38
|
+
// }
|
|
39
|
+
// }
|
|
40
|
+
// }
|
|
41
|
+
|
|
42
|
+
@mixin theme($config-or-theme) {
|
|
43
|
+
// $color: mat.get-color-config($config-or-theme);
|
|
44
|
+
|
|
45
|
+
// $typography: mat.define-typography-config();
|
|
46
|
+
|
|
47
|
+
// @if $color != null {
|
|
48
|
+
// @include elder-select-base.color($color);
|
|
49
|
+
// }
|
|
50
|
+
|
|
51
|
+
// @if $typography != null {
|
|
52
|
+
// @include typography($typography);
|
|
53
|
+
// }
|
|
54
|
+
|
|
55
|
+
.elder-chip-text {
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
text-overflow: ellipsis;
|
|
58
|
+
white-space: nowrap;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.elder-trailing-icon {
|
|
62
|
+
color: var(--mdc-chip-with-trailing-icon-trailing-icon-color);
|
|
63
|
+
opacity: 0.54;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.cdk-drag-preview {
|
|
67
|
+
// border-radius: var(--elder-border-radius-sm);
|
|
68
|
+
box-shadow: var(--elder-box-shadow-default);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.cdk-drag-placeholder {
|
|
72
|
+
opacity: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.cdk-drag-animating {
|
|
76
|
+
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use './elder-select-base-mixin' as elder-select-base;
|
|
4
|
+
|
|
5
|
+
@mixin typography($typography-config) {
|
|
6
|
+
@include elder-select-base.typography($typography-config);
|
|
7
|
+
|
|
8
|
+
.elder-multi-select {
|
|
9
|
+
font-family: var(--md-sys-typescale-body-medium-font);
|
|
10
|
+
|
|
11
|
+
.elder-select-input {
|
|
12
|
+
height: var(--md-sys-typescale-body-medium-line-height);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.elder-prefix-icon {
|
|
16
|
+
margin-left: 3px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.elder-chip-input {
|
|
20
|
+
flex: 1 0 auto;
|
|
21
|
+
padding-left: 8px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.elder-chip-input-select {
|
|
25
|
+
flex: 1 0 140px;
|
|
26
|
+
max-width: 100%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.elder-browse-icon {
|
|
30
|
+
margin-right: 4px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin theme($config-or-theme) {
|
|
36
|
+
@include typography($config-or-theme);
|
|
37
|
+
|
|
38
|
+
.elder-chip-text {
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
text-overflow: ellipsis;
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.elder-trailing-icon {
|
|
45
|
+
color: var(--mdc-chip-with-trailing-icon-trailing-icon-color);
|
|
46
|
+
opacity: 0.54;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use './elder-select-base-mixin' as elder-select-base;
|
|
4
|
+
|
|
5
|
+
@mixin typography($typography-config) {
|
|
6
|
+
@include elder-select-base.typography($typography-config);
|
|
7
|
+
|
|
8
|
+
.elder-multi-select {
|
|
9
|
+
font-family: var(--md-sys-typescale-body-medium-font);
|
|
10
|
+
|
|
11
|
+
.elder-select-input {
|
|
12
|
+
height: var(--md-sys-typescale-body-medium-line-height);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.elder-prefix-icon {
|
|
16
|
+
margin-left: 3px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.elder-chip-input {
|
|
20
|
+
flex: 1 0 auto;
|
|
21
|
+
padding-left: 8px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.elder-chip-input-select {
|
|
25
|
+
flex: 1 0 140px;
|
|
26
|
+
max-width: 100%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.elder-browse-icon {
|
|
30
|
+
margin-right: 4px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin theme($config-or-theme) {
|
|
36
|
+
@include typography($config-or-theme);
|
|
37
|
+
|
|
38
|
+
.elder-chip-text {
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
text-overflow: ellipsis;
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.elder-trailing-icon {
|
|
45
|
+
color: var(--mdc-chip-with-trailing-icon-trailing-icon-color);
|
|
46
|
+
opacity: 0.54;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.cdk-drag-preview {
|
|
50
|
+
box-shadow: var(--elder-box-shadow-default);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.cdk-drag-placeholder {
|
|
54
|
+
opacity: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.cdk-drag-animating {
|
|
58
|
+
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
@mixin theme($theme) {
|
|
4
|
+
&.elder-light-theme,
|
|
5
|
+
&.elder-dark-theme {
|
|
6
|
+
.nav-link-active {
|
|
7
|
+
color: var(--md-sys-color-primary) !important;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&.elder-light-theme .elder-main-nav-panel {
|
|
12
|
+
background-color: var(--md-sys-color-surface); // main nav bg color
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.elder-dark-theme {
|
|
16
|
+
.elder-main-nav-panel {
|
|
17
|
+
background-color: var(--md-sys-color-surface-container-high); // main nav bg color
|
|
18
|
+
}
|
|
19
|
+
.nav-link:hover,
|
|
20
|
+
.nav-group-button:hover {
|
|
21
|
+
background-color: var(--md-sys-color-surface-container) !important;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use './elder-select-base-mixin' as elder-select-base;
|
|
4
|
+
|
|
5
|
+
@mixin typography($config-or-theme) {
|
|
6
|
+
$line-height-em: var(--md-sys-typescale-body-medium-line-height);
|
|
7
|
+
|
|
8
|
+
@include elder-select-base.typography($config-or-theme);
|
|
9
|
+
|
|
10
|
+
.elder-select {
|
|
11
|
+
font-family: var(--md-sys-typescale-body-medium-font);
|
|
12
|
+
|
|
13
|
+
.elder-input-prefix-icon-container {
|
|
14
|
+
padding-right: 3px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.elder-select-input {
|
|
19
|
+
height: $line-height-em;
|
|
20
|
+
font: inherit;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.elder-select-arrow {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@mixin theme($config-or-theme) {
|
|
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);
|
|
32
|
+
|
|
33
|
+
@keyframes shrink {
|
|
34
|
+
0% {
|
|
35
|
+
transform: scale(1);
|
|
36
|
+
}
|
|
37
|
+
100% {
|
|
38
|
+
transform: scale(0.75);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.loading {
|
|
43
|
+
animation: shrink 0.3s ease-in-out infinite alternate;
|
|
44
|
+
-webkit-animation: shrink 0.3s ease-in-out infinite alternate;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.clickable-icon {
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.full-width {
|
|
52
|
+
width: 100%;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.elder-select-dropdown-input {
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
@mixin theme($theme) {
|
|
4
|
+
.elder-mat-inner-table {
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.elder-table-row.dense {
|
|
9
|
+
height: 42px !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.elder-mat-table-container {
|
|
13
|
+
border-radius: var(--elder-border-radius-sm);
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Style for the select column
|
|
19
|
+
*/
|
|
20
|
+
.mat-column-select {
|
|
21
|
+
overflow: initial;
|
|
22
|
+
min-width: 72px;
|
|
23
|
+
max-width: 5%;
|
|
24
|
+
width: 72px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.elder-row-removing {
|
|
28
|
+
text-decoration: line-through;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.elder-row-hidden {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/******************************
|
|
36
|
+
Clickable row
|
|
37
|
+
*******************************/
|
|
38
|
+
|
|
39
|
+
.elder-table-row {
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** https://bugzilla.mozilla.org/show_bug.cgi?id=1043520 **/
|
|
44
|
+
// firefox-scroll-fix
|
|
45
|
+
:host {
|
|
46
|
+
min-width: 0;
|
|
47
|
+
min-height: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.elder-table-hint {
|
|
51
|
+
color: gray;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.elder-table-footer {
|
|
55
|
+
height: var(--elder-data-element-footer-height);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.elder-table-checkbox {
|
|
59
|
+
opacity: 0.25;
|
|
60
|
+
|
|
61
|
+
-webkit-transition: opacity 0.5s ease-in-out;
|
|
62
|
+
-moz-transition: opacity 0.5s ease-in-out;
|
|
63
|
+
transition: opacity 0.5s ease-in-out;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.elder-table-row:hover .elder-table-checkbox {
|
|
67
|
+
opacity: 0.9;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.elder-table-checkbox-visible {
|
|
71
|
+
opacity: 1;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.elder-table-inner {
|
|
75
|
+
background-color: var(--md-sys-color-surface-container-lowest);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.elder-table-row:focus {
|
|
79
|
+
// Disable browser focus style
|
|
80
|
+
box-shadow: none;
|
|
81
|
+
outline-style: none;
|
|
82
|
+
td {
|
|
83
|
+
background-color: var(
|
|
84
|
+
--elder-color-highlight-strong
|
|
85
|
+
); // OLD: background-color: mat.m2-get-color-from-palette($accent, default, 0.3);
|
|
86
|
+
border-bottom: var(
|
|
87
|
+
--md-sys-color-tertiary-fixed
|
|
88
|
+
); // OLD: border-bottom: 1px solid mat.m2-get-color-from-palette($accent, default);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
.elder-table-row.elder-table-row-activated {
|
|
92
|
+
//background-color: var(--md-sys-color-surface-dim);
|
|
93
|
+
background-color: var(--elder-color-highlight-strong);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.elder-table-row.elder-table-row-selected {
|
|
97
|
+
background-color: var(--elder-color-highlight-variant);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.elder-table-row:hover {
|
|
101
|
+
background-color: var(--elder-color-highlight-light);
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.elder-mat-table-flat {
|
|
106
|
+
border: var(--elder-border-light);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.elder-table {
|
|
110
|
+
background-color: var(--mat-table-background-color);
|
|
111
|
+
|
|
112
|
+
// Fix line height of paginator section
|
|
113
|
+
.mat-mdc-paginator {
|
|
114
|
+
.mat-mdc-form-field,
|
|
115
|
+
.mat-mdc-floating-label {
|
|
116
|
+
line-height: unset;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.mat-mdc-select {
|
|
120
|
+
line-height: unset;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
$pad: 8px;
|
|
125
|
+
$pad-right: 12px;
|
|
126
|
+
|
|
127
|
+
.elder-mat-inner-table.mat-mdc-table {
|
|
128
|
+
.mat-mdc-header-cell {
|
|
129
|
+
padding-left: $pad;
|
|
130
|
+
padding-right: $pad-right;
|
|
131
|
+
|
|
132
|
+
// configure automatic wrapping of too long strings
|
|
133
|
+
overflow-wrap: normal;
|
|
134
|
+
word-wrap: normal;
|
|
135
|
+
word-break: normal;
|
|
136
|
+
white-space: unset;
|
|
137
|
+
hyphens: auto;
|
|
138
|
+
|
|
139
|
+
&:first-of-type {
|
|
140
|
+
padding-left: $pad + $pad-right;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:last-of-type {
|
|
144
|
+
padding-right: $pad; // TODO: This can lead to overflows in some cases, is there a better solution?
|
|
145
|
+
|
|
146
|
+
&[mat-sort-header]:not([arrowposition='before']) {
|
|
147
|
+
padding-right: $pad;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&[mat-sort-header] {
|
|
152
|
+
&[arrowposition='before'] {
|
|
153
|
+
padding-left: 0px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&:not([arrowposition='before']) {
|
|
157
|
+
padding-right: $pad-right;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
& > .mat-sort-header-container {
|
|
162
|
+
display: inline-flex;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.mat-mdc-cell {
|
|
167
|
+
padding-left: $pad;
|
|
168
|
+
padding-right: $pad-right;
|
|
169
|
+
|
|
170
|
+
overflow-wrap: normal;
|
|
171
|
+
word-wrap: normal;
|
|
172
|
+
word-break: normal;
|
|
173
|
+
white-space: unset;
|
|
174
|
+
hyphens: auto;
|
|
175
|
+
|
|
176
|
+
&:first-of-type {
|
|
177
|
+
padding-left: $pad + $pad-right;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&:last-of-type {
|
|
181
|
+
padding-right: $pad;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.mat-mdc-footer-cell {
|
|
186
|
+
padding-left: $pad;
|
|
187
|
+
padding-right: $pad-right;
|
|
188
|
+
font-weight: bold;
|
|
189
|
+
|
|
190
|
+
&:first-of-type {
|
|
191
|
+
padding-left: $pad + $pad-right;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&:last-of-type {
|
|
195
|
+
padding-right: $pad;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.mat-mdc-paginator {
|
|
199
|
+
margin-left: -$pad;
|
|
200
|
+
margin-right: -$pad;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.mat-mdc-row {
|
|
207
|
+
background-color: var(--md-sys-color-surface-container-lowest);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.mat-mdc-header-row {
|
|
211
|
+
background: var(--md-sys-color-surface-container-lowest) !important;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use '../abstracts/elder-scss-variables' as config;
|
|
4
|
+
|
|
5
|
+
$colorStateNone: var(--md-sys-color-surface-variant);
|
|
6
|
+
$colorStateOpen: var(--md-sys-color-surface-variant);
|
|
7
|
+
|
|
8
|
+
$colorStateInProgress: var(--elder-chip-color-state-in-progress);
|
|
9
|
+
$colorStateCompleted: var(--elder-chip-color-state-completed);
|
|
10
|
+
$colorStateWarn: var(--elder-chip-color-state-warn);
|
|
11
|
+
$colorStateError: var(--elder-chip-color-state-error);
|
|
12
|
+
$colorStateOther: var(--elder-chip-color-state-other);
|
|
13
|
+
|
|
14
|
+
$level-low: $colorStateCompleted;
|
|
15
|
+
$level-medium: $colorStateInProgress;
|
|
16
|
+
$level-high: $colorStateWarn;
|
|
17
|
+
$level-critical: $colorStateError;
|
|
18
|
+
|
|
19
|
+
@mixin theme($config-or-theme) {
|
|
20
|
+
.mat-mdc-chip.mat-mdc-chip {
|
|
21
|
+
--mdc-chip-elevated-container-color: $colorStateNone;
|
|
22
|
+
background-color: $colorStateNone;
|
|
23
|
+
|
|
24
|
+
&.elder-chip-color-primary,
|
|
25
|
+
&.color-primary {
|
|
26
|
+
background-color: var(--md-sys-color-primary-container);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.elder-chip-color-primary,
|
|
30
|
+
&.color-primary {
|
|
31
|
+
@include _theme_color_chip(
|
|
32
|
+
var(--md-sys-color-primary-container),
|
|
33
|
+
var(--md-sys-color-primary),
|
|
34
|
+
var(--md-sys-color-on-primary)
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.elder-chip-color-accent,
|
|
39
|
+
&.elder-chip-color-tertiary,
|
|
40
|
+
&.color-accent {
|
|
41
|
+
@include _theme_color_chip(
|
|
42
|
+
var(--md-sys-color-tertiary-container),
|
|
43
|
+
var(--md-sys-color-tertiary),
|
|
44
|
+
var(--md-sys-color-on-tertiary)
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.elder-chip-color-warn,
|
|
49
|
+
&.color-warn {
|
|
50
|
+
@include _theme_color_chip(
|
|
51
|
+
var(--md-sys-color-error-container),
|
|
52
|
+
var(--md-sys-color-error),
|
|
53
|
+
var(--md-sys-color-on-error)
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.elder-chip-state-none,
|
|
58
|
+
&.none {
|
|
59
|
+
@include _outlined-label-chip($colorStateNone);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.elder-chip-state-open,
|
|
63
|
+
&.state-open {
|
|
64
|
+
@include _outlined-label-chip($colorStateOpen);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&.elder-chip-state-in-progress,
|
|
68
|
+
&.state-in-progress {
|
|
69
|
+
@include _outlined-label-chip($colorStateInProgress);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.elder-chip-state-completed,
|
|
73
|
+
&.state-completed {
|
|
74
|
+
@include _outlined-label-chip($colorStateCompleted);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.elder-chip-state-warn,
|
|
78
|
+
&.state-warn {
|
|
79
|
+
@include _outlined-label-chip($colorStateWarn);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.elder-chip-state-error,
|
|
83
|
+
&.state-error {
|
|
84
|
+
@include _outlined-label-chip($colorStateError);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&.elder-chip-state-other,
|
|
88
|
+
&.state-other {
|
|
89
|
+
@include _outlined-label-chip($colorStateOther);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// ---
|
|
93
|
+
|
|
94
|
+
&.elder-chip-level-low,
|
|
95
|
+
&.level-low {
|
|
96
|
+
@include _outlined-label-chip($level-low);
|
|
97
|
+
}
|
|
98
|
+
&.elder-chip-level-medium,
|
|
99
|
+
&.level-medium {
|
|
100
|
+
@include _outlined-label-chip($level-medium);
|
|
101
|
+
}
|
|
102
|
+
&.elder-chip-level-high,
|
|
103
|
+
&.level-high {
|
|
104
|
+
@include _outlined-label-chip($level-high);
|
|
105
|
+
}
|
|
106
|
+
&.elder-chip-level-critical,
|
|
107
|
+
&.level-critical {
|
|
108
|
+
@include _outlined-label-chip($level-critical);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
&.elder-light-theme .mat-warn.mat-mdc-standard-chip {
|
|
112
|
+
--mdc-chip-label-text-color: var(--md-sys-color-error);
|
|
113
|
+
--mdc-chip-with-icon-icon-color: var(--mdc-chip-label-text-color);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@mixin _outlined-label-chip($color1) {
|
|
118
|
+
background-color: $color1;
|
|
119
|
+
}
|
package/theming/{utility-classes/_elder-color-helpers.scss → utilities/_elder-color-utils.scss}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@mixin elder-color-
|
|
1
|
+
@mixin elder-color-utils() {
|
|
2
2
|
$color-variables: (
|
|
3
3
|
'background': var(--md-sys-color-background),
|
|
4
4
|
'error': var(--md-sys-color-error),
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
|
|
54
54
|
// background colors
|
|
55
55
|
@each $name, $value in $color-variables {
|
|
56
|
-
.
|
|
56
|
+
.bg-#{$name} {
|
|
57
57
|
background-color: #{$value};
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.
|
|
61
|
+
.bg-transparent {
|
|
62
62
|
background-color: transparent;
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -69,13 +69,6 @@
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
// border colors
|
|
73
|
-
@each $name, $value in $color-variables {
|
|
74
|
-
.elder-border-#{$name} {
|
|
75
|
-
border-color: #{$value};
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
72
|
.elder-pane-bg-color {
|
|
80
73
|
background-color: var(--elder-pane-bg-color);
|
|
81
74
|
}
|