@elderbyte/ngx-starter 19.6.3 → 19.8.0
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/fesm2022/elderbyte-ngx-starter.mjs +1280 -1213
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/common/enums/elder-enum-translation.service.d.ts +20 -1
- package/lib/components/badge/elder-badge/elder-badge.component.d.ts +3 -0
- package/lib/components/chips/elder-chip-label.directive.d.ts +14 -36
- package/lib/components/chips/elder-chips.module.d.ts +1 -1
- package/lib/components/colors/named/named-color-select-value/named-color-select-value.component.d.ts +9 -0
- package/lib/components/colors/named/named-color-select.directive.d.ts +9 -0
- package/lib/components/colors/named/named-color.d.ts +5 -0
- package/lib/components/colors/named/named-color.directive.d.ts +14 -0
- package/lib/components/colors/named/public_api.d.ts +4 -0
- package/lib/components/colors/public_api.d.ts +1 -0
- package/lib/components/public_api.d.ts +1 -0
- package/lib/components/select/multi/elder-multi-select-chips/select-chip-spec.d.ts +2 -0
- package/package.json +1 -1
- package/src/assets/i18n/de.json +17 -0
- package/src/assets/i18n/en.json +17 -0
- package/src/assets/i18n/fr.json +17 -0
- package/src/lib/components/colors/named/named-color-select-value/named-color-select-value.component.scss +0 -0
- package/src/lib/components/data-view/grid/elder-grid/elder-grid.component.scss +2 -1
- package/src/lib/components/data-view/grid/elder-tile/elder-tile.component.scss +5 -15
- package/theming/abstracts/_elder-design-tokens.scss +18 -26
- package/theming/abstracts/_elder-scss-variables.scss +16 -17
- package/theming/components/_elder-chip-theme.scss +77 -139
|
@@ -30,6 +30,16 @@ export declare class ElderEnumTranslationService {
|
|
|
30
30
|
* @param asc if true, data will be sorted in ascending order
|
|
31
31
|
*/
|
|
32
32
|
translate(enumClass: any, translationPrefix: string, sort?: boolean, asc?: boolean): Observable<TranslatedEnumValue[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Translates the given Enum class. Loads translations of given translationPrefix
|
|
35
|
+
* and creates for each enum value a TranslatedEnumValue.
|
|
36
|
+
*
|
|
37
|
+
* @param values The strings to translate.
|
|
38
|
+
* @param translationPrefix prefix to load translations
|
|
39
|
+
* @param sort if true, data will be sorted by translations
|
|
40
|
+
* @param asc if true, data will be sorted in ascending order
|
|
41
|
+
*/
|
|
42
|
+
translateStrings(values: readonly string[], translationPrefix: string, sort?: boolean, asc?: boolean): Observable<TranslatedEnumValue[]>;
|
|
33
43
|
/**
|
|
34
44
|
* Translates the given element. Loads the translation
|
|
35
45
|
* and creates a TranslatedEnumValue.
|
|
@@ -47,7 +57,16 @@ export declare class ElderEnumTranslationService {
|
|
|
47
57
|
* @param sort if true, data will be sorted by translations
|
|
48
58
|
* @param asc if true, data will be sorted in ascending order
|
|
49
59
|
*/
|
|
50
|
-
enumDateSource(enumClass:
|
|
60
|
+
enumDateSource<TEnum extends object>(enumClass: TEnum, translationPrefix: string, sort?: boolean, asc?: boolean): IDataSource<TranslatedEnumValue>;
|
|
61
|
+
/**
|
|
62
|
+
* Creates a data source of translations of the given enum class.
|
|
63
|
+
*
|
|
64
|
+
* @param values Values
|
|
65
|
+
* @param translationPrefix prefix to load translations
|
|
66
|
+
* @param sort if true, data will be sorted by translations
|
|
67
|
+
* @param asc if true, data will be sorted in ascending order
|
|
68
|
+
*/
|
|
69
|
+
stringArrayDateSource(values: readonly string[], translationPrefix: string, sort?: boolean, asc?: boolean): IDataSource<TranslatedEnumValue>;
|
|
51
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderEnumTranslationService, never>;
|
|
52
71
|
static ɵprov: i0.ɵɵInjectableDeclaration<ElderEnumTranslationService>;
|
|
53
72
|
}
|
|
@@ -48,6 +48,9 @@ export declare class ElderBadgeComponent {
|
|
|
48
48
|
readonly templates$: Observable<TemplateWrapper>;
|
|
49
49
|
private readonly chipTemplate$;
|
|
50
50
|
private readonly chipAvatarTemplate$;
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated No longer supported - has no effect
|
|
53
|
+
*/
|
|
51
54
|
appearance: ElderChipAppearance;
|
|
52
55
|
/***************************************************************************
|
|
53
56
|
* *
|
|
@@ -1,57 +1,35 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { MatChip } from '@angular/material/chips';
|
|
3
1
|
import { ThemePalette } from '@angular/material/core';
|
|
2
|
+
import { ElderNamedColor } from '../colors/named/named-color';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
export
|
|
6
|
-
export type
|
|
4
|
+
export declare const elderChipColorStates: readonly ["open", "inProgress", "completed", "warn", "error", "other"];
|
|
5
|
+
export type ElderStateColor = (typeof elderChipColorStates)[number] | undefined;
|
|
6
|
+
export declare const elderChipColorLevels: readonly ["low", "medium", "high", "critical"];
|
|
7
|
+
export type ElderLevelColor = (typeof elderChipColorLevels)[number] | undefined;
|
|
7
8
|
export type ElderChipAppearance = 'md3' | 'legacy';
|
|
8
|
-
export declare class ElderChipLabelDirective
|
|
9
|
-
private readonly matChip;
|
|
9
|
+
export declare class ElderChipLabelDirective {
|
|
10
10
|
/***************************************************************************
|
|
11
11
|
* *
|
|
12
12
|
* Fields *
|
|
13
13
|
* *
|
|
14
14
|
**************************************************************************/
|
|
15
15
|
private readonly baseClass;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/***************************************************************************
|
|
22
|
-
* *
|
|
23
|
-
* Constructor *
|
|
24
|
-
* *
|
|
25
|
-
**************************************************************************/
|
|
26
|
-
constructor(matChip: MatChip);
|
|
27
|
-
ngOnInit(): void;
|
|
28
|
-
/***************************************************************************
|
|
29
|
-
* *
|
|
30
|
-
* Host Bindings *
|
|
31
|
-
* *
|
|
32
|
-
**************************************************************************/
|
|
33
|
-
get classes(): string;
|
|
34
|
-
/***************************************************************************
|
|
35
|
-
* *
|
|
36
|
-
* Properties *
|
|
37
|
-
* *
|
|
38
|
-
**************************************************************************/
|
|
39
|
-
set appearance(appearance: ElderChipAppearance);
|
|
40
|
-
set themeColor(themeColor: ThemePalette);
|
|
41
|
-
set stateColor(stateColor: ElderStateColor);
|
|
42
|
-
set levelColor(levelColor: ElderLevelColor);
|
|
16
|
+
readonly stateColor: import("@angular/core").InputSignal<ElderStateColor>;
|
|
17
|
+
readonly levelColor: import("@angular/core").InputSignal<ElderLevelColor>;
|
|
18
|
+
readonly namedColor: import("@angular/core").InputSignal<ElderNamedColor>;
|
|
19
|
+
readonly themeColor: import("@angular/core").InputSignal<ThemePalette>;
|
|
20
|
+
readonly cssClasses: import("@angular/core").Signal<string>;
|
|
43
21
|
/***************************************************************************
|
|
44
22
|
* *
|
|
45
23
|
* Private methods *
|
|
46
24
|
* *
|
|
47
25
|
**************************************************************************/
|
|
48
|
-
private refreshClasses;
|
|
49
26
|
private buildClassesString;
|
|
50
27
|
private buildClasses;
|
|
51
28
|
private resolveColorClass;
|
|
29
|
+
private getNamedColorClass;
|
|
52
30
|
private getLevelColorClass;
|
|
53
31
|
private getStateColorClass;
|
|
54
32
|
private getThemeColorClass;
|
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ElderChipLabelDirective,
|
|
56
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ElderChipLabelDirective, "[elderChipLabel]", never, { "
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElderChipLabelDirective, never>;
|
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ElderChipLabelDirective, "[elderChipLabel]", never, { "stateColor": { "alias": "stateColor"; "required": false; "isSignal": true; }; "levelColor": { "alias": "levelColor"; "required": false; "isSignal": true; }; "namedColor": { "alias": "namedColor"; "required": false; "isSignal": true; }; "themeColor": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
57
35
|
}
|
|
@@ -4,7 +4,7 @@ import * as i2 from "@ngx-translate/core";
|
|
|
4
4
|
import * as i3 from "@angular/material/chips";
|
|
5
5
|
import * as i4 from "@angular/cdk/a11y";
|
|
6
6
|
import * as i5 from "./elder-chip-label.directive";
|
|
7
|
-
export { ElderChipLabelDirective } from './elder-chip-label.directive';
|
|
7
|
+
export { ElderChipLabelDirective, elderChipColorStates, elderChipColorLevels, } from './elder-chip-label.directive';
|
|
8
8
|
export declare class ElderChipsModule {
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderChipsModule, never>;
|
|
10
10
|
static ɵmod: i0.ɵɵNgModuleDeclaration<ElderChipsModule, never, [typeof i1.CommonModule, typeof i2.TranslateModule, typeof i3.MatChipsModule, typeof i4.A11yModule, typeof i5.ElderChipLabelDirective], [typeof i5.ElderChipLabelDirective]>;
|
package/lib/components/colors/named/named-color-select-value/named-color-select-value.component.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ElderNamedColor } from '../named-color';
|
|
2
|
+
import { TranslatedEnumValue } from '../../../../common/enums/elder-enum-translation.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NamedColorSelectValueComponent {
|
|
5
|
+
readonly value: import("@angular/core").InputSignal<TranslatedEnumValue>;
|
|
6
|
+
readonly namedColor: import("@angular/core").Signal<ElderNamedColor>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NamedColorSelectValueComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NamedColorSelectValueComponent, "elder-named-color-select-value", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ElderSelectComponent } from '../../select/single/elder-select/elder-select.component';
|
|
2
|
+
import { ElderEnumTranslationService } from '../../../common/enums/elder-enum-translation.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NamedColorSelectDirective {
|
|
5
|
+
private select;
|
|
6
|
+
constructor(select: ElderSelectComponent, enumTranslationService: ElderEnumTranslationService);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NamedColorSelectDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NamedColorSelectDirective, "[elderNamedColorSelect]", never, {}, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const elderNamedColors: readonly ["white", "grey", "blue", "turquoise", "green", "orange", "yellow", "red", "purple", "pink"];
|
|
2
|
+
export type ElderNamedColor = (typeof elderNamedColors)[number] | undefined;
|
|
3
|
+
export declare const elderNamedColorRoles: readonly ["primary", "darker", "on"];
|
|
4
|
+
export type ElderNamedColorRole = (typeof elderNamedColorRoles)[number] | undefined;
|
|
5
|
+
export declare function elderNamedColorToken(color: ElderNamedColor, role?: ElderNamedColorRole): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ElderNamedColor, ElderNamedColorRole } from '../named/named-color';
|
|
2
|
+
import { MatIcon } from '@angular/material/icon';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NamedColorDirective {
|
|
5
|
+
readonly namedColor: import("@angular/core").InputSignal<ElderNamedColor>;
|
|
6
|
+
readonly backgroundRole: import("@angular/core").ModelSignal<ElderNamedColorRole>;
|
|
7
|
+
readonly frontRole: import("@angular/core").ModelSignal<ElderNamedColorRole>;
|
|
8
|
+
readonly hostColor: import("@angular/core").Signal<string>;
|
|
9
|
+
readonly hostBackgroundColor: import("@angular/core").Signal<string>;
|
|
10
|
+
constructor(icon: MatIcon);
|
|
11
|
+
private namedColorCssVariable;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NamedColorDirective, [{ optional: true; }]>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NamedColorDirective, "[elderNamedColor]", never, { "namedColor": { "alias": "elderNamedColor"; "required": true; "isSignal": true; }; "backgroundRole": { "alias": "backgroundRole"; "required": false; "isSignal": true; }; "frontRole": { "alias": "frontRole"; "required": false; "isSignal": true; }; }, { "backgroundRole": "backgroundRoleChange"; "frontRole": "frontRoleChange"; }, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './named/public_api';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ThemePalette } from '@angular/material/core';
|
|
2
2
|
import { ElderLevelColor, ElderStateColor } from '../../../chips/elder-chip-label.directive';
|
|
3
|
+
import { ElderNamedColor } from '../../../colors/named/named-color';
|
|
3
4
|
export declare class SelectChipSpecUtil {
|
|
4
5
|
static readonly DefaultChipSpec: SelectChipSpec;
|
|
5
6
|
}
|
|
@@ -13,6 +14,7 @@ export interface ChipColorSpec {
|
|
|
13
14
|
themeColor?: ThemePalette;
|
|
14
15
|
stateColor?: ElderStateColor;
|
|
15
16
|
levelColor?: ElderLevelColor;
|
|
17
|
+
namedColor?: ElderNamedColor;
|
|
16
18
|
}
|
|
17
19
|
export interface ChipAvatarSpec {
|
|
18
20
|
/**
|
package/package.json
CHANGED
package/src/assets/i18n/de.json
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"greeting": "Hallo Welt!",
|
|
3
3
|
|
|
4
|
+
"elder": {
|
|
5
|
+
"colors": {
|
|
6
|
+
"named": {
|
|
7
|
+
"white": "Weiß",
|
|
8
|
+
"grey": "Grau",
|
|
9
|
+
"blue": "Blau",
|
|
10
|
+
"turquoise": "Türkis",
|
|
11
|
+
"green": "Grün",
|
|
12
|
+
"orange": "Orange",
|
|
13
|
+
"yellow": "Gelb",
|
|
14
|
+
"red": "Rot",
|
|
15
|
+
"purple": "Lila",
|
|
16
|
+
"pink": "Rosa"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
|
|
4
21
|
"context": {
|
|
5
22
|
"reset": "Zurücksetzen",
|
|
6
23
|
"noSelection": "Keine Auswahl",
|
package/src/assets/i18n/en.json
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"greeting": "Hello World!",
|
|
3
3
|
|
|
4
|
+
"elder": {
|
|
5
|
+
"colors": {
|
|
6
|
+
"named": {
|
|
7
|
+
"white": "White",
|
|
8
|
+
"grey": "Grey",
|
|
9
|
+
"blue": "Blue",
|
|
10
|
+
"turquoise": "Turquoise",
|
|
11
|
+
"green": "Green",
|
|
12
|
+
"orange": "Orange",
|
|
13
|
+
"yellow": "Yellow",
|
|
14
|
+
"red": "Red",
|
|
15
|
+
"purple": "Purple",
|
|
16
|
+
"pink": "Pink"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
|
|
4
21
|
"context": {
|
|
5
22
|
"reset": "Reset",
|
|
6
23
|
"noSelection": "No Selection",
|
package/src/assets/i18n/fr.json
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"greeting": "Salut tout le monde!",
|
|
3
3
|
|
|
4
|
+
"elder": {
|
|
5
|
+
"colors": {
|
|
6
|
+
"named": {
|
|
7
|
+
"white": "Blanc",
|
|
8
|
+
"grey": "Gris",
|
|
9
|
+
"blue": "Bleu",
|
|
10
|
+
"turquoise": "Turquoise",
|
|
11
|
+
"green": "Vert",
|
|
12
|
+
"orange": "Orange",
|
|
13
|
+
"yellow": "Jaune",
|
|
14
|
+
"red": "Rouge",
|
|
15
|
+
"purple": "Violet",
|
|
16
|
+
"pink": "Rose"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
|
|
4
21
|
"context": {
|
|
5
22
|
"reset": "Réinitialiser",
|
|
6
23
|
"noSelection": "Aucune Sélection",
|
|
File without changes
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
$elder-tile-padding: 8px;
|
|
2
2
|
|
|
3
3
|
.elder-grid-tile {
|
|
4
|
-
// margin: 0 $elder-tile-padding;
|
|
5
4
|
width: 100%;
|
|
6
5
|
height: 100%;
|
|
7
6
|
cursor: pointer;
|
|
7
|
+
overflow: hidden;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.elder-grid-tile-row {
|
|
11
11
|
display: grid;
|
|
12
12
|
align-items: start;
|
|
13
13
|
justify-items: start;
|
|
14
|
+
overflow: hidden;
|
|
14
15
|
|
|
15
16
|
padding: $elder-tile-padding ($elder-tile-padding * 2);
|
|
16
17
|
|
|
@@ -3,22 +3,16 @@
|
|
|
3
3
|
background-color: var(--md-sys-color-surface-container-low);
|
|
4
4
|
text-align: left;
|
|
5
5
|
overflow: hidden;
|
|
6
|
-
transition:
|
|
7
|
-
box-shadow 200ms cubic-bezier(0, 0, 0.2, 1),
|
|
8
|
-
border 0.25s linear;
|
|
9
6
|
}
|
|
10
7
|
|
|
11
8
|
.elder-tile:hover {
|
|
12
|
-
|
|
13
|
-
border-color: var(--md-sys-color-primary);
|
|
9
|
+
border-color: var(--elder-color-highlight-hover);
|
|
14
10
|
}
|
|
15
11
|
|
|
16
12
|
.elder-tile-content {
|
|
17
13
|
position: relative;
|
|
18
14
|
width: 100%;
|
|
19
15
|
height: 100%;
|
|
20
|
-
|
|
21
|
-
border-radius: var(--elder-pane-border-radius);
|
|
22
16
|
}
|
|
23
17
|
|
|
24
18
|
.elder-tile-content:hover .elder-selection-overlay {
|
|
@@ -26,11 +20,6 @@
|
|
|
26
20
|
background-color: rgba(white, 0.08);
|
|
27
21
|
}
|
|
28
22
|
|
|
29
|
-
.elder-tile:active {
|
|
30
|
-
z-index: 100;
|
|
31
|
-
box-shadow: var(--elder-box-shadow-default);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
23
|
.elder-selection-overlay {
|
|
35
24
|
position: absolute;
|
|
36
25
|
left: 0;
|
|
@@ -87,7 +76,8 @@
|
|
|
87
76
|
// Disable browser focus style
|
|
88
77
|
// box-shadow: color-mix(in rgb, 80%, black);
|
|
89
78
|
//background-color: color-mix(in sRGB, var(--elder-color-highlight-strong) 80%, black)
|
|
90
|
-
|
|
79
|
+
border: 2px solid var(--elder-color-highlight-focus);
|
|
80
|
+
outline: none;
|
|
91
81
|
|
|
92
82
|
// background-color: var(--elder-color-highlight-strong);
|
|
93
83
|
}
|
|
@@ -96,13 +86,13 @@
|
|
|
96
86
|
// Disable browser focus style
|
|
97
87
|
// box-shadow: color-mix(in rgb, 80%, black);
|
|
98
88
|
//background-color: color-mix(in sRGB, var(--elder-color-highlight-strong) 80%, black)
|
|
99
|
-
|
|
89
|
+
border: 2px solid var(--elder-color-highlight-focus);
|
|
100
90
|
// background-color: var(--elder-color-highlight-strong);
|
|
101
91
|
}
|
|
102
92
|
|
|
103
93
|
.elder-tile.activated {
|
|
104
94
|
// background-color: var(--elder-color-highlight-strong);
|
|
105
|
-
|
|
95
|
+
border: 2px dashed var(--elder-color-highlight-focus);
|
|
106
96
|
.elder-tile-overlay {
|
|
107
97
|
// opacity: 1;
|
|
108
98
|
// background-color: color-mix(in sRGB, var(--elder-color-highlight-strong), transparent 70%);
|
|
@@ -124,11 +124,8 @@
|
|
|
124
124
|
--elder-color-highlight-light: #ebebeb;
|
|
125
125
|
--elder-color-highlight-variant: var(--md-sys-color-secondary-fixed);
|
|
126
126
|
|
|
127
|
-
--elder-color-highlight-focus: color-
|
|
128
|
-
|
|
129
|
-
var(--elder-color-highlight-strong) 80%,
|
|
130
|
-
black
|
|
131
|
-
);
|
|
127
|
+
--elder-color-highlight-focus: var(--md-sys-color-primary);
|
|
128
|
+
--elder-color-highlight-hover: color-mix(in sRGB, var(--md-sys-color-primary) 60%, white);
|
|
132
129
|
|
|
133
130
|
// missing md3 color
|
|
134
131
|
--md-sys-color-on-primary-fixed-dim: var(--md-sys-color-on-primary-fixed);
|
|
@@ -169,24 +166,25 @@
|
|
|
169
166
|
|
|
170
167
|
// chip colors light
|
|
171
168
|
&.elder-light-theme {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
169
|
+
// Base colors
|
|
170
|
+
@each $key, $value in config.$named-colors {
|
|
171
|
+
--elder-named-color-#{$key}: #{$value};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// "on" (darker) variants
|
|
175
|
+
@each $key, $value in config.$named-colors-darker {
|
|
176
|
+
--elder-named-color-on-#{$key}: #{$value};
|
|
177
|
+
--elder-named-color-darker-#{$key}: #{$value};
|
|
178
|
+
}
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
// chip colors dark
|
|
182
182
|
&.elder-dark-theme {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
--elder-chip-color-state-error: #{map.get(config.$chip-colors-dark, state-error)};
|
|
189
|
-
--elder-chip-color-state-other: #{map.get(config.$chip-colors-dark, state-other)};
|
|
183
|
+
// Base colors
|
|
184
|
+
@each $key, $value in config.$named-colors-darker {
|
|
185
|
+
--elder-named-color-#{$key}: #{$value};
|
|
186
|
+
--elder-named-color-darker-#{$key}: #{$value};
|
|
187
|
+
}
|
|
190
188
|
}
|
|
191
189
|
|
|
192
190
|
&.elder-dark-theme {
|
|
@@ -196,7 +194,7 @@
|
|
|
196
194
|
|
|
197
195
|
&.elder-dark-theme {
|
|
198
196
|
// dark theme blue
|
|
199
|
-
--md-sys-color-primary: hsl(222,
|
|
197
|
+
--md-sys-color-primary: hsl(222, 50%, 65%); // dim primary color
|
|
200
198
|
}
|
|
201
199
|
|
|
202
200
|
// dark theme overwrites
|
|
@@ -208,12 +206,6 @@
|
|
|
208
206
|
--elder-color-highlight-strong: var(--elder-gold-semi-dark);
|
|
209
207
|
--elder-color-highlight-variant: var(--elder-gold-dark);
|
|
210
208
|
|
|
211
|
-
--elder-color-highlight-focus: color-mix(
|
|
212
|
-
in sRGB,
|
|
213
|
-
var(--elder-color-highlight-strong) 70%,
|
|
214
|
-
white
|
|
215
|
-
);
|
|
216
|
-
|
|
217
209
|
--md-sys-color-tertiary-container: var(--elder-gold-semi-dark);
|
|
218
210
|
--md-sys-color-surface-container-highest: #181818;
|
|
219
211
|
--md-sys-color-surface-container: #1e1f20;
|
|
@@ -34,25 +34,24 @@ $custom-colors: (
|
|
|
34
34
|
elder-gold-light: #f0e9d8,
|
|
35
35
|
);
|
|
36
36
|
|
|
37
|
-
$
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
$named-colors: (
|
|
38
|
+
'white': #e1e1e1,
|
|
39
|
+
'grey': #cecbca,
|
|
40
|
+
'blue': #b9d7ee,
|
|
41
|
+
'turquoise': #b0e6ef,
|
|
42
|
+
'green': #b1ddce,
|
|
43
|
+
'orange': #f4dab8,
|
|
44
|
+
'yellow': #f3e7ad,
|
|
45
|
+
'red': #e6b6b6,
|
|
46
|
+
'purple': #d9d3ee,
|
|
47
|
+
'pink': #e8c2e1,
|
|
45
48
|
);
|
|
46
49
|
|
|
47
|
-
$
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
state-warn: color.adjust(map.get($chip-colors, state-warn), $lightness: -45%),
|
|
53
|
-
state-error: color.adjust(map.get($chip-colors, state-error), $lightness: -45%),
|
|
54
|
-
state-other: color.adjust(map.get($chip-colors, state-other), $lightness: -45%),
|
|
55
|
-
);
|
|
50
|
+
$named-colors-darker: ();
|
|
51
|
+
@each $key, $value in $named-colors {
|
|
52
|
+
$darkened: color.adjust($value, $lightness: -45%);
|
|
53
|
+
$named-colors-darker: map.set($named-colors-darker, $key, $darkened);
|
|
54
|
+
}
|
|
56
55
|
|
|
57
56
|
$palettes: (
|
|
58
57
|
primary: (
|