chore(console): Angular 20 #10690 (#10768)

# Which Problems Are Solved


# How the Problems Are Solved

# Additional Changes

# Additional Context
- Closes #10690
This commit is contained in:
Ramon
2025-10-08 07:10:50 +00:00
committed by GitHub
parent 4c078c1474
commit e47acaeef2
272 changed files with 3264 additions and 5037 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
@use 'sass:map';
@mixin codemirror-theme($theme) {
$is-dark-theme: map-get($theme, is-dark);
$is-dark-theme: map.get($theme, is-dark);
.cm-s-material.CodeMirror {
background-color: if($is-dark-theme, #00000020, #263238);
+4 -2
View File
@@ -1,6 +1,8 @@
@use 'sass:map';
@mixin cnsl-color-theme($theme) {
$foreground: map-get($theme, foreground);
$secondary-text: map-get($foreground, secondary-text);
$foreground: map.get($theme, foreground);
$secondary-text: map.get($foreground, secondary-text);
.cnsl-secondary-text {
color: $secondary-text;
+5 -3
View File
@@ -1,7 +1,9 @@
@use 'sass:map';
@mixin cnsl-error-theme($theme) {
$warn: map-get($theme, warn);
$warn-color: map-get($warn, 500);
$is-dark-theme: map-get($theme, is-dark);
$warn: map.get($theme, warn);
$warn-color: map.get($warn, 500);
$is-dark-theme: map.get($theme, is-dark);
.cnsl-error {
display: block;
+11 -9
View File
@@ -1,11 +1,13 @@
@use 'sass:map';
@mixin input-theme($theme) {
$primary: map-get($theme, primary);
$primary-color: map-get($primary, 500);
$primary-light-color: map-get($primary, 200);
$warn: map-get($theme, warn);
$warn-color: map-get($warn, 500);
$foreground: map-get($theme, foreground);
$is-dark-theme: map-get($theme, is-dark);
$primary: map.get($theme, primary);
$primary-color: map.get($primary, 500);
$primary-light-color: map.get($primary, 200);
$warn: map.get($theme, warn);
$warn-color: map.get($warn, 500);
$foreground: map.get($theme, foreground);
$is-dark-theme: map.get($theme, is-dark);
[cnslInput],
.mat-mdc-select {
@@ -28,7 +30,7 @@
background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1),
color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%;
color: map-get($foreground, text);
color: map.get($foreground, text);
margin-bottom: 2px;
&:hover {
@@ -58,7 +60,7 @@
[cnslInput]::placeholder {
font-size: 14px;
color: map-get($foreground, placeholder-text);
color: map.get($foreground, placeholder-text);
font-style: italic;
}
+5 -3
View File
@@ -1,7 +1,9 @@
@use 'sass:map';
@mixin link-theme($theme) {
$primary: map-get($theme, primary);
$primary-color: map-get($primary, 500);
$primary-color-lighter: map-get($primary, A300);
$primary: map.get($theme, primary);
$primary-color: map.get($primary, 500);
$primary-color-lighter: map.get($primary, A300);
// a:not([mat-icon-button]):not([mat-stroked-button]):not([mat-raised-button]) {
// color: $primary-color;
+10 -8
View File
@@ -1,3 +1,5 @@
@use 'sass:map';
@function modify-palette($theme, $map, $partial) {
// A theme is a map with the following structure:
// (
@@ -11,28 +13,28 @@
// Again in the background palette itself.
// Replace the background in the color object's background palette.
$theme-color: map-get($theme, color);
$color-map-palette: map-get($theme-color, $map);
$color-map-palette: map-merge($color-map-palette, $partial);
$theme-color: map.get($theme, color);
$color-map-palette: map.get($theme-color, $map);
$color-map-palette: map.merge($color-map-palette, $partial);
// Replace the background in the background palette.
$background-palette: map-get($theme, $map);
$background-palette: map-merge($background-palette, $partial);
$background-palette: map.get($theme, $map);
$background-palette: map.merge($background-palette, $partial);
// Merge the changes into a new theme.
$modified-theme-color: map-merge(
$modified-theme-color: map.merge(
$theme-color,
(
$map: $color-map-palette,
)
);
$modified-theme: map-merge(
$modified-theme: map.merge(
$theme,
(
color: $modified-theme-color,
)
);
$modified-theme: map-merge(
$modified-theme: map.merge(
$modified-theme,
(
$map: $background-palette,
+4
View File
@@ -2,6 +2,7 @@ $cnsl-dark-theme-text: #ffffff;
$cnsl-light-theme-text: hsla(0, 0%, 0%, 0.87);
$caos-dark-primary: (
default: #2073c4,
50: #f1f7fd,
100: #afd1f2,
200: #7fb5ea,
@@ -35,6 +36,7 @@ $caos-dark-primary: (
);
$caos-light-primary: (
default: #5469d4,
50: #ffffff,
100: #ebedfa,
200: #bec6ef,
@@ -68,6 +70,7 @@ $caos-light-primary: (
);
$caos-dark-warn: (
default: #ff3b5b,
50: #ffe7eb,
100: #ffc4ce,
200: #ff9dad,
@@ -101,6 +104,7 @@ $caos-dark-warn: (
);
$caos-light-warn: (
default: #cd3d56,
50: #f9e8eb,
100: #f0c5cc,
200: #e69eab,
+15 -13
View File
@@ -1,9 +1,11 @@
@use 'sass:map';
@mixin table-theme($theme) {
$primary: map-get($theme, primary);
$primary-color: map-get($primary, 500);
$is-dark-theme: map-get($theme, is-dark);
$foreground: map-get($theme, foreground);
$background: map-get($theme, background);
$primary: map.get($theme, primary);
$primary-color: map.get($primary, 500);
$is-dark-theme: map.get($theme, is-dark);
$foreground: map.get($theme, foreground);
$background: map.get($theme, background);
.mat-mdc-table,
.mat-mdc-paginator {
@@ -27,7 +29,7 @@
white-space: nowrap;
&.mat-mdc-header-cell {
color: map-get($foreground, text);
color: map.get($foreground, text);
font-size: 11px;
font-weight: 500;
}
@@ -47,7 +49,7 @@
&:hover {
td {
transition: background 0.1s ease;
background: map-get($background, hover);
background: map.get($background, hover);
}
}
}
@@ -121,17 +123,17 @@
font-weight: 500;
font-size: 12px;
white-space: nowrap;
background-color: if($is-dark-theme, map-get($background, state), #e4e7e4);
background-color: if($is-dark-theme, map.get($background, state), #e4e7e4);
box-shadow: 0 0 3px #0000001a;
&.active {
background-color: if($is-dark-theme, map-get($background, state-active), #cbf4c9);
background-color: if($is-dark-theme, map.get($background, state-active), #cbf4c9);
color: if($is-dark-theme, #cbf4c9, #0e6245);
}
&.inactive {
color: if($is-dark-theme, #ffc1c1, #620e0e);
background-color: if($is-dark-theme, map-get($background, state-inactive), #ffc1c1);
background-color: if($is-dark-theme, map.get($background, state-inactive), #ffc1c1);
}
&.neutral {
@@ -141,16 +143,16 @@
}
.bg-state {
background-color: if($is-dark-theme, map-get($background, state), #e4e7e4) !important;
background-color: if($is-dark-theme, map.get($background, state), #e4e7e4) !important;
&.active {
background-color: if($is-dark-theme, map-get($background, state-active), #cbf4c9) !important;
background-color: if($is-dark-theme, map.get($background, state-active), #cbf4c9) !important;
color: if($is-dark-theme, #cbf4c9, #0e6245) !important;
}
&.inactive {
color: if($is-dark-theme, #ffc1c1, #620e0e) !important;
background-color: if($is-dark-theme, map-get($background, state-inactive), #ffc1c1) !important;
background-color: if($is-dark-theme, map.get($background, state-inactive), #ffc1c1) !important;
}
}
+7 -5
View File
@@ -1,12 +1,14 @@
@use 'sass:map';
@mixin toast-theme($theme) {
$warn: map-get($theme, warn);
$warn-color: map-get($warn, 500);
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);
$warn: map.get($theme, warn);
$warn-color: map.get($warn, 500);
$background: map.get($theme, background);
$foreground: map.get($theme, foreground);
.data-e2e-failure {
.mdc-snackbar__surface {
background-color: map-get($background, toast) !important;
background-color: map.get($background, toast) !important;
color: $warn-color !important;
* {