Angular update to v18

This commit is contained in:
2026-03-30 01:52:34 +02:00
parent 518168f225
commit bd8ed94b1d
6 changed files with 92 additions and 896 deletions
+31 -31
View File
@@ -52,45 +52,45 @@ File: scss
//$adastra_app-accent: mat.define-palette(mat.$blue-grey-palette, A200, A100, A400);
//$adastra_app-warn: mat.define-palette(mat.$blue-palette);
$adastra_app-primary: mat.define-palette($md-custom-primary, 500);
$adastra_app-secondary: mat.define-palette($md-custom-warn);
$adastra_app-accent: mat.define-palette($md-custom-accent, A200, A100, A400);
$adastra_app-primary: mat.m2-define-palette($md-custom-primary, 500);
$adastra_app-secondary: mat.m2-define-palette($md-custom-warn);
$adastra_app-accent: mat.m2-define-palette($md-custom-accent, A200, A100, A400);
//$adastra_app-warn: mat.define-palette($md-custom-warn);
$adastra_app-warn: mat.define-palette($md-custom-raspberry, 400);
$adastra_app-danger: mat.define-palette($md-custom-red, 700);
$adastra_app-success: mat.define-palette($md-custom-green);
$adastra_app-info: mat.define-palette($md-custom-blue);
$adastra_app-warning: mat.define-palette($md-custom-orange, 700);
$adastra_app-blue: mat.define-palette($md-custom-blue, 700);
$adastra_app-red: mat.define-palette($md-custom-red);
$adastra_app-green: mat.define-palette($md-custom-green, 400);
$adastra_app-warn: mat.m2-define-palette($md-custom-raspberry, 400);
$adastra_app-danger: mat.m2-define-palette($md-custom-red, 700);
$adastra_app-success: mat.m2-define-palette($md-custom-green);
$adastra_app-info: mat.m2-define-palette($md-custom-blue);
$adastra_app-warning: mat.m2-define-palette($md-custom-orange, 700);
$adastra_app-blue: mat.m2-define-palette($md-custom-blue, 700);
$adastra_app-red: mat.m2-define-palette($md-custom-red);
$adastra_app-green: mat.m2-define-palette($md-custom-green, 400);
$adastra_app-turquoise: mat.define-palette($md-custom-turquoise);
$adastra_app-cyan: mat.define-palette($md-custom-cyan);
$adastra_app-navy: mat.define-palette($md-custom-navy);
$adastra_app-purple: mat.define-palette($md-custom-purple);
$adastra_app-raspberry: mat.define-palette($md-custom-raspberry);
$adastra_app-orange: mat.define-palette($md-custom-orange);
$adastra_app-yellow: mat.define-palette($md-custom-yellow);
$adastra_app-teal: mat.define-palette($md-custom-teal);
$adastra_app-magenta: mat.define-palette($md-custom-magenta);
$adastra_app-pink: mat.define-palette($md-custom-pink);
$adastra_app-megna: mat.define-palette($md-custom-megna);
$adastra_app-purple-light: mat.define-palette($md-custom-purple-light);
$adastra_app-navy-light: mat.define-palette($md-custom-navy-light);
$adastra_app-grey: mat.define-palette(mat.$grey-palette, 400);
$adastra_app-muted: mat.define-palette(mat.$grey-palette, 300);
$adastra_app-turquoise: mat.m2-define-palette($md-custom-turquoise);
$adastra_app-cyan: mat.m2-define-palette($md-custom-cyan);
$adastra_app-navy: mat.m2-define-palette($md-custom-navy);
$adastra_app-purple: mat.m2-define-palette($md-custom-purple);
$adastra_app-raspberry: mat.m2-define-palette($md-custom-raspberry);
$adastra_app-orange: mat.m2-define-palette($md-custom-orange);
$adastra_app-yellow: mat.m2-define-palette($md-custom-yellow);
$adastra_app-teal: mat.m2-define-palette($md-custom-teal);
$adastra_app-magenta: mat.m2-define-palette($md-custom-magenta);
$adastra_app-pink: mat.m2-define-palette($md-custom-pink);
$adastra_app-megna: mat.m2-define-palette($md-custom-megna);
$adastra_app-purple-light: mat.m2-define-palette($md-custom-purple-light);
$adastra_app-navy-light: mat.m2-define-palette($md-custom-navy-light);
$adastra_app-grey: mat.m2-define-palette(mat.$m2-grey-palette, 400);
$adastra_app-muted: mat.m2-define-palette(mat.$m2-grey-palette, 300);
$custom-typography: mat.define-typography-config(
$custom-typography: mat.m2-define-typography-config(
$font-family: 'Barlow, sans-serif',
$body-1: mat.define-typography-level(
$body-1: mat.m2-define-typography-level(
$font-family: 'Barlow, sans-serif',
$font-weight: 400,
$font-size: 14px,
$line-height: 1.42857143,
$letter-spacing: normal,
),
$body-2: mat.define-typography-level(
$body-2: mat.m2-define-typography-level(
$font-family: 'Barlow, sans-serif',
$font-weight: 500,
$font-size: 14px,
@@ -102,7 +102,7 @@ $custom-typography: mat.define-typography-config(
// Create the theme object. A theme consists of configurations for individual
// theming systems such as "color" or "typography".
//$adastra_app-theme: mat.define-dark-theme((
$adastra_app-theme: mat.define-light-theme((
$adastra_app-theme: mat.m2-define-light-theme((
color: (
primary: $adastra_app-primary,
accent: $adastra_app-accent,
@@ -183,7 +183,7 @@ $background: map.get($adastra_app-theme, background);
@each $variant, $variant-palette in $adastra_app-variants {
.text-bg-#{"" + $variant} {
color: mat.get-contrast-color-from-palette($variant-palette, 500) !important;
color: mat.m2-get-contrast-color-from-palette($variant-palette, 500) !important;
}
}