@devopmaat/badaboom 1.3.0 → 1.3.2

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.
Files changed (81) hide show
  1. package/fesm2022/devopmaat-badaboom.mjs +576 -256
  2. package/fesm2022/devopmaat-badaboom.mjs.map +1 -1
  3. package/lib/application/common/full-table/bdb-full-table.component.d.ts +2 -1
  4. package/lib/application/common/table/_bdb-table-theme.scss +71 -0
  5. package/lib/application/common/table/bdb-table.component.d.ts +4 -3
  6. package/lib/application/media/media-display/media-display.component.d.ts +23 -0
  7. package/lib/application/media/media-full-table/media-full-table.component.d.ts +24 -0
  8. package/lib/application/media/media-table/media-table.component.d.ts +21 -0
  9. package/lib/application/media/media-type.pipe.d.ts +8 -0
  10. package/lib/application/media/media-upload/media-drop.directive.d.ts +27 -0
  11. package/lib/application/media/media-upload/media-upload.component.d.ts +15 -0
  12. package/lib/application/task-log/task-log-outcome.pipe.d.ts +1 -1
  13. package/lib/application/task-log/task-log-status.pipe.d.ts +1 -1
  14. package/lib/bdb-options.d.ts +3 -0
  15. package/lib/common/alert/_bdb-alert-theme.scss +39 -0
  16. package/lib/common/alert/bdb-alert.component.d.ts +3 -13
  17. package/lib/common/alert-error-response/bdb-alert-error-response.component.d.ts +0 -2
  18. package/lib/common/collapse-row/{_collapse-row-theme.scss → _bdb-collapse-row-theme.scss} +6 -5
  19. package/lib/common/field/_bdb-field-theme.scss +39 -0
  20. package/lib/common/file-size.pipe.d.ts +7 -0
  21. package/lib/common/youtube-player/youtube-player.component.d.ts +14 -0
  22. package/lib/domain/enums/media-type.d.ts +1 -0
  23. package/lib/domain/enums/task-log-outcome.d.ts +1 -0
  24. package/lib/domain/enums/task-log-status.d.ts +1 -0
  25. package/lib/styles/_core-theme.scss +42 -5
  26. package/lib/styles/_theme.scss +55 -138
  27. package/lib/styles/material/_badge-theme.scss +46 -0
  28. package/lib/styles/material/_button-theme.scss +66 -0
  29. package/lib/styles/material/_card-theme.scss +41 -0
  30. package/lib/styles/material/_checkbox-theme.scss +35 -0
  31. package/lib/styles/material/_chips-theme.scss +37 -0
  32. package/lib/styles/material/_datepicker-theme.scss +36 -0
  33. package/lib/styles/material/_fab-theme.scss +50 -0
  34. package/lib/styles/material/_form-field-theme.scss +48 -0
  35. package/lib/styles/material/_icon-button-theme.scss +52 -0
  36. package/lib/styles/material/{_progress-spinner-m3-theme.scss → _icon-theme.scss} +12 -4
  37. package/lib/styles/material/_option-theme.scss +45 -0
  38. package/lib/styles/material/_progress-bar-theme.scss +39 -0
  39. package/lib/styles/material/_progress-spinner-theme.scss +35 -0
  40. package/lib/styles/material/_radio-theme.scss +47 -0
  41. package/lib/styles/material/_slide-toggle-theme.scss +39 -0
  42. package/lib/styles/material/_slider-theme.scss +59 -0
  43. package/lib/styles/material/_stepper-theme.scss +45 -0
  44. package/lib/styles/material/_tabs-theme.scss +32 -0
  45. package/lib/styles/material/_toolbar-theme.scss +41 -0
  46. package/package.json +3 -2
  47. package/public-api.d.ts +9 -2
  48. package/lib/application/common/query-input/_bdb-query-input-m2-theme.scss +0 -17
  49. package/lib/application/common/query-input/_bdb-query-input-m3-theme.scss +0 -30
  50. package/lib/application/common/search/_bdb-search-m2-theme.scss +0 -12
  51. package/lib/application/common/table/_bdb-table-m2-theme.scss +0 -48
  52. package/lib/application/common/table/_bdb-table-m3-theme.scss +0 -70
  53. package/lib/common/_button-m2-theme.scss +0 -87
  54. package/lib/common/_icon-m2-theme.scss +0 -32
  55. package/lib/common/alert/_bdb-alert-m2-theme.scss +0 -34
  56. package/lib/common/alert/_bdb-alert-m3-theme.scss +0 -29
  57. package/lib/common/boolean-display/_bdb-boolean-display-m2-theme.scss +0 -18
  58. package/lib/common/boolean-display/_bdb-boolean-display-m3-theme.scss +0 -27
  59. package/lib/common/color.d.ts +0 -14
  60. package/lib/common/constructor.d.ts +0 -2
  61. package/lib/common/field/_bdb-field-m2-theme.scss +0 -13
  62. package/lib/common/field/_bdb-field-m3-theme.scss +0 -56
  63. package/lib/styles/material/_badge-m3-theme.scss +0 -35
  64. package/lib/styles/material/_button-m3-theme.scss +0 -84
  65. package/lib/styles/material/_card-m3-theme.scss +0 -34
  66. package/lib/styles/material/_checkbox-m3-theme.scss +0 -54
  67. package/lib/styles/material/_chips-m3-theme.scss +0 -58
  68. package/lib/styles/material/_datepicker-m3-theme.scss +0 -84
  69. package/lib/styles/material/_fab-m3-theme.scss +0 -84
  70. package/lib/styles/material/_form-field-m3-theme.scss +0 -36
  71. package/lib/styles/material/_icon-m3-theme.scss +0 -32
  72. package/lib/styles/material/_option-m3-theme.scss +0 -34
  73. package/lib/styles/material/_progress-bar-m3-theme.scss +0 -31
  74. package/lib/styles/material/_radio-m3-theme.scss +0 -42
  75. package/lib/styles/material/_slide-toggle-m3-theme.scss +0 -68
  76. package/lib/styles/material/_slider-m3-theme.scss +0 -48
  77. package/lib/styles/material/_stepper-m3-theme.scss +0 -44
  78. package/lib/styles/material/_tabs-m3-theme.scss +0 -32
  79. package/lib/styles/material/_toolbar-m3-theme.scss +0 -63
  80. /package/lib/common/collapse-row/{collapse-row.component.d.ts → bdb-collapse-row.component.d.ts} +0 -0
  81. /package/lib/common/{plain-number-pipe.d.ts → plain-number.pipe.d.ts} +0 -0
@@ -1,87 +0,0 @@
1
- @use 'sass:map';
2
- @use 'sass:meta';
3
- @use '@angular/material' as mat;
4
-
5
- $_ripple-opacity: 0.1;
6
-
7
- // Applies the background color for a ripple. If the value provided is not a Sass color,
8
- // we assume that we've been given a CSS variable. Since we can't perform alpha-blending
9
- // on a CSS variable, we instead add the opacity directly to the ripple element.
10
- @mixin _ripple-background($palette, $hue, $opacity) {
11
- $background-color: mat.m2-get-color-from-palette($palette, $hue, $opacity);
12
- background-color: $background-color;
13
- @if (meta.type-of($background-color) != color) {
14
- opacity: $opacity;
15
- }
16
- }
17
-
18
- @mixin _ripple-color($theme, $hue, $opacity: $_ripple-opacity) {
19
- $warn: map.get($theme, warn);
20
- $danger: map.get($theme, danger);
21
- $success: map.get($theme, success);
22
- $info: map.get($theme, info);
23
-
24
- &.mat-warn .mat-ripple-element {
25
- @include _ripple-background($warn, $hue, $opacity);
26
- }
27
-
28
- &.mat-danger .mat-ripple-element {
29
- @include _ripple-background($danger, $hue, $opacity);
30
- }
31
-
32
- &.mat-success .mat-ripple-element {
33
- @include _ripple-background($success, $hue, $opacity);
34
- }
35
-
36
- &.mat-info .mat-ripple-element {
37
- @include _ripple-background($info, $hue, $opacity);
38
- }
39
- }
40
-
41
- // Applies a property to an mat-button element for each of the supported palettes.
42
- @mixin _theme-property($theme, $property, $hue) {
43
- $danger: map.get($theme, danger);
44
- $success: map.get($theme, success);
45
- $info: map.get($theme, info);
46
- $warn: map.get($theme, warn);
47
- $background: map.get($theme, background);
48
- $foreground: map.get($theme, foreground);
49
-
50
- &.mat-warn {
51
- #{$property}: mat.m2-get-color-from-palette($warn, $hue);
52
- }
53
- &.mat-danger {
54
- #{$property}: mat.m2-get-color-from-palette($danger, $hue);
55
- }
56
- &.mat-success {
57
- #{$property}: mat.m2-get-color-from-palette($success, $hue);
58
- }
59
- &.mat-info {
60
- #{$property}: mat.m2-get-color-from-palette($info, $hue);
61
- }
62
- &[disabled] {
63
- $palette: if($property == 'color', $foreground, $background);
64
- #{$property}: mat.m2-get-color-from-palette($palette, disabled-button);
65
- }
66
- }
67
-
68
- @mixin theme($config-or-theme) {
69
- $config: mat.m2-get-color-config($config-or-theme);
70
-
71
- .mat-mdc-button-base {
72
- &.mat-mdc-button,
73
- &.mat-mdc-icon-button,
74
- &.mat-mdc-outlined-button {
75
- @include _theme-property($config, 'color', text);
76
- }
77
-
78
- &.mat-mdc-unelevated-button,
79
- &.mat-mdc-raised-button,
80
- &.mat-mdc-fab,
81
- &.mat-mdc-mini-fab {
82
- @include _theme-property($config, 'color', default-contrast);
83
- @include _theme-property($config, 'background-color', default);
84
- @include _ripple-color($config, default-contrast);
85
- }
86
- }
87
- }
@@ -1,32 +0,0 @@
1
- @use 'sass:map';
2
- @use 'sass:meta';
3
- @use '@angular/material' as mat;
4
-
5
- // Applies a property to an mat-button element for each of the supported palettes.
6
- @mixin _theme-property($theme, $property, $hue) {
7
- $warn: map.get($theme, warn);
8
- $danger: map.get($theme, danger);
9
- $success: map.get($theme, success);
10
- $info: map.get($theme, info);
11
-
12
- &.mat-warn {
13
- #{$property}: mat.m2-get-color-from-palette($warn, $hue);
14
- }
15
- &.mat-danger {
16
- #{$property}: mat.m2-get-color-from-palette($danger, $hue);
17
- }
18
- &.mat-success {
19
- #{$property}: mat.m2-get-color-from-palette($success, $hue);
20
- }
21
- &.mat-info {
22
- #{$property}: mat.m2-get-color-from-palette($info, $hue);
23
- }
24
- }
25
-
26
- @mixin theme($config-or-theme) {
27
- $config: mat.m2-get-color-config($config-or-theme);
28
-
29
- .mat-icon {
30
- @include _theme-property($config, 'color', text);
31
- }
32
- }
@@ -1,34 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
-
4
- @mixin theme($theme) {
5
- $color-config: mat.m2-get-color-config($theme);
6
- $paletteNames: (primary,accent,warn,danger,success,info);
7
-
8
- @each $paletteName in $paletteNames {
9
- $palette: map.get($color-config, $paletteName);
10
- $color: mat.m2-get-color-from-palette($palette, default);
11
- $contrast: mat.m2-get-color-from-palette($palette, default-contrast);
12
-
13
- .bdb-alert.bdb-#{$paletteName} .bdb-alert-wrapper {
14
- .bdb-icon-container{
15
- background-color: $color;
16
- color: $contrast;
17
- }
18
-
19
- .label {
20
- font-size: 16px;
21
- line-height: 24px;
22
- }
23
- border-color: $color;
24
- }
25
- }
26
-
27
- .bdb-alert .alert.muted {
28
- .icon-container{
29
- background-color: #E0E0E0;
30
- color: #757575;
31
- }
32
- border-color: #E0E0E0;
33
- }
34
- }
@@ -1,29 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
- @use '../../styles/core-theme' as bdb;
4
-
5
- @mixin color($theme) {
6
- @each $palette-name in bdb.$palette-names {
7
- .#{$palette-name}.bdb-alert,
8
- .bdb-#{$palette-name}.bdb-alert {
9
- --bdb-alert-container-color: var(--sys-#{$palette-name});
10
- --bdb-alert-content-container-color: var(--sys-#{$palette-name}-container);
11
- --bdb-alert-content-color: var(--sys-on-#{$palette-name}-container);
12
- --bdb-alert-icon-color: var(--sys-on-#{$palette-name});
13
- --bdb-alert-border-color: var(--sys-#{$palette-name});
14
- }
15
- }
16
- }
17
-
18
- @mixin typography($theme) {
19
- }
20
-
21
- @mixin theme($theme) {
22
- @if mat.theme-has($theme, color) {
23
- @include color($theme);
24
- }
25
-
26
- @if mat.theme-has($theme, typography) {
27
- @include typography($theme);
28
- }
29
- }
@@ -1,18 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
-
4
- @mixin theme($theme) {
5
- $color-config: mat.m2-get-color-config($theme);
6
-
7
- $danger: mat.m2-get-color-from-palette(map.get($color-config, danger), default);
8
- $success: mat.m2-get-color-from-palette(map.get($color-config, success), default);
9
-
10
- .bdb-boolean-display {
11
- .false {
12
- color: $danger;
13
- }
14
- .true {
15
- color: $success;
16
- }
17
- }
18
- }
@@ -1,27 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
- @use '../../styles/core-theme' as bdb;
4
-
5
- @mixin color($theme) {
6
- .bdb-boolean-display {
7
- .false {
8
- color: var(--sys-error);
9
- }
10
- .true {
11
- color: var(--sys-success);
12
- }
13
- }
14
- }
15
-
16
- @mixin typography($theme) {
17
- }
18
-
19
- @mixin theme($theme) {
20
- @if mat.theme-has($theme, color) {
21
- @include color($theme);
22
- }
23
-
24
- @if mat.theme-has($theme, typography) {
25
- @include typography($theme);
26
- }
27
- }
@@ -1,14 +0,0 @@
1
- import { BdbPalette } from './bdb-palette';
2
- import { AbstractConstructor, Constructor } from './constructor';
3
- import { ElementRef } from '@angular/core';
4
- export interface CanColor {
5
- color: BdbPalette;
6
- defaultColor: BdbPalette | undefined;
7
- }
8
- type CanColorCtor = Constructor<CanColor> & AbstractConstructor<CanColor>;
9
- export interface HasElementRef {
10
- _elementRef: ElementRef;
11
- }
12
- /** Mixin to augment a directive with a `color` property. */
13
- export declare function mixinColor<T extends AbstractConstructor<HasElementRef>>(base: T, defaultColor?: BdbPalette): CanColorCtor & T;
14
- export {};
@@ -1,2 +0,0 @@
1
- export type Constructor<T> = new (...args: any[]) => T;
2
- export type AbstractConstructor<T = object> = abstract new (...args: any[]) => T;
@@ -1,13 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
-
4
- @mixin theme($theme) {
5
- .bdb-field {
6
- background-color: rgba(0, 0, 0, 0.02);
7
- min-height: 56px;
8
- gap: 4px;
9
- .field-label {
10
- color: rgba(0, 0, 0, 0.38);
11
- }
12
- }
13
- }
@@ -1,56 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
- @use '../../styles/core-theme' as bdb;
4
-
5
- @mixin color($theme) {
6
- & {
7
- --bdb-field-border-color: var(--sys-surface-container-high);
8
- --bdb-field-color: var(--sys-on-surface);
9
- --bdb-field-label-color: var(--sys-on-surface-variant);
10
-
11
- @if mat.get-theme-type($theme) == dark {
12
- --bdb-field-container-color: var(--sys-surface-container);
13
- } @else {
14
- --bdb-field-container-color: var(--sys-surface-container-low);
15
- }
16
- }
17
-
18
- .bdb-field {
19
- background-color: var(--bdb-field-container-color);
20
- border: 1px solid var(--bdb-field-border-color);
21
- border-bottom-width: 2px;
22
- color: var(--bdb-field-color);
23
- border-bottom-right-radius: 0;
24
- border-bottom-left-radius: 0;
25
- border-top-left-radius: var(--mdc-filled-text-field-container-shape);
26
- border-top-right-radius: var(--mdc-filled-text-field-container-shape);
27
- min-height: 52px;
28
- gap: 2px;
29
-
30
- .field-label {
31
- color: var(--bdb-field-label-color);
32
- }
33
- }
34
-
35
- @each $palette-name in bdb.$palette-names {
36
- .#{$palette-name}.bdb-field {
37
- border-bottom-color: var(--sys-#{$palette-name});
38
- &.container {
39
- border-bottom-color: var(--sys-#{$palette-name}-container);
40
- }
41
- }
42
- }
43
- }
44
-
45
- @mixin typography($theme) {
46
- }
47
-
48
- @mixin theme($theme) {
49
- @if mat.theme-has($theme, color) {
50
- @include color($theme);
51
- }
52
-
53
- @if mat.theme-has($theme, typography) {
54
- @include typography($theme);
55
- }
56
- }
@@ -1,35 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
- @use '../core-theme' as bdb;
4
-
5
- @mixin color($theme) {
6
- @each $palette-name in bdb.$material-palettes {
7
- .mat-badge-#{$palette-name} .mat-badge-content,
8
- .badge-#{$palette-name} .mat-badge-content {
9
- @include mat.badge-color($theme, $color-variant: $palette-name);
10
- }
11
- }
12
-
13
- @each $palette-name in bdb.$badaboom-palettes {
14
- .mat-badge-#{$palette-name} .mat-badge-content,
15
- .badge-#{$palette-name} .mat-badge-content {
16
- --mat-badge-background-color: var(--sys-#{$palette-name});
17
- --mat-badge-text-color: var(--sys-on-${palette-name});
18
- --mat-badge-disabled-state-background-color: color-mix(in srgb, var(--sys-${palette-name}) 38%, transparent);
19
- --mat-badge-disabled-state-text-color: var(--sys-on-${palette-name});
20
- }
21
- }
22
- }
23
-
24
- @mixin typography($theme) {
25
- }
26
-
27
- @mixin theme($theme) {
28
- @if mat.theme-has($theme, color) {
29
- @include color($theme);
30
- }
31
-
32
- @if mat.theme-has($theme, typography) {
33
- @include typography($theme);
34
- }
35
- }
@@ -1,84 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
- @use '../core-theme' as bdb;
4
-
5
- @mixin color($theme) {
6
- @each $palette-name in bdb.$material-palettes {
7
- .mdc-button.#{$palette-name} {
8
- @include mat.button-color($theme, $color-variant: $palette-name);
9
- }
10
- }
11
-
12
- @each $palette-name in bdb.$badaboom-palettes {
13
- .mdc-button.#{$palette-name} {
14
- --mdc-text-button-label-text-color: var(--sys-#{$palette-name});
15
- --mdc-text-button-disabled-label-text-color: color-mix(in srgb, var(--sys-on-surface) 38%, transparent);
16
- --mdc-protected-button-container-elevation-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
17
- 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
18
- --mdc-protected-button-disabled-container-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2),
19
- 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);
20
- --mdc-protected-button-focus-container-elevation-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
21
- 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
22
- --mdc-protected-button-hover-container-elevation-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2),
23
- 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
24
- --mdc-protected-button-pressed-container-elevation-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
25
- 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
26
- --mdc-protected-button-container-color: var(--sys-surface);
27
- --mdc-protected-button-label-text-color: var(--sys-#{$palette-name});
28
- --mdc-protected-button-disabled-container-color: color-mix(in srgb, var(--sys-on-surface) 12%, transparent);
29
- --mdc-protected-button-disabled-label-text-color: color-mix(in srgb, var(--sys-on-surface) 38%, transparent);
30
- --mdc-filled-button-container-color: var(--sys-#{$palette-name});
31
- --mdc-filled-button-label-text-color: var(--sys-on-#{$palette-name});
32
- --mdc-filled-button-disabled-container-color: color-mix(in srgb, var(--sys-on-surface) 12%, transparent);
33
- --mdc-filled-button-disabled-label-text-color: color-mix(in srgb, var(--sys-on-surface) 38%, transparent);
34
- --mdc-outlined-button-disabled-outline-color: color-mix(in srgb, var(--sys-on-surface) 12%, transparent);
35
- --mdc-outlined-button-disabled-label-text-color: color-mix(in srgb, var(--sys-on-surface) 38%, transparent);
36
- --mdc-outlined-button-label-text-color: var(--sys-#{$palette-name});
37
- --mdc-outlined-button-outline-color: var(--sys-outline);
38
- --mat-text-button-state-layer-color: var(--sys-#{$palette-name});
39
- --mat-text-button-disabled-state-layer-color: var(--sys-on-surface-variant);
40
- --mat-text-button-ripple-color: color-mix(in srgb, var(--sys-#{$palette-name}) 12%, transparent);
41
- --mat-text-button-hover-state-layer-opacity: 0.08;
42
- --mat-text-button-focus-state-layer-opacity: 0.12;
43
- --mat-text-button-pressed-state-layer-opacity: 0.12;
44
- --mat-protected-button-state-layer-color: var(--sys-#{$palette-name});
45
- --mat-protected-button-disabled-state-layer-color: var(--sys-on-surface-variant);
46
- --mat-protected-button-ripple-color: color-mix(in srgb, var(--sys-#{$palette-name}) 12%, transparent);
47
- --mat-protected-button-hover-state-layer-opacity: 0.08;
48
- --mat-protected-button-focus-state-layer-opacity: 0.12;
49
- --mat-protected-button-pressed-state-layer-opacity: 0.12;
50
- --mat-filled-button-state-layer-color: var(--sys-on-#{$palette-name});
51
- --mat-filled-button-disabled-state-layer-color: var(--sys-on-surface-variant);
52
- --mat-filled-button-ripple-color: color-mix(in srgb, var(--sys-on-#{$palette-name}) 12%, transparent);
53
- --mat-filled-button-hover-state-layer-opacity: 0.08;
54
- --mat-filled-button-focus-state-layer-opacity: 0.12;
55
- --mat-filled-button-pressed-state-layer-opacity: 0.12;
56
- --mat-outlined-button-state-layer-color: var(--sys-#{$palette-name});
57
- --mat-outlined-button-disabled-state-layer-color: var(--sys-on-surface-variant);
58
- --mat-outlined-button-ripple-color: color-mix(in srgb, var(--sys-#{$palette-name}) 12%, transparent);
59
- --mat-outlined-button-hover-state-layer-opacity: 0.08;
60
- --mat-outlined-button-focus-state-layer-opacity: 0.12;
61
- --mat-outlined-button-pressed-state-layer-opacity: 0.12;
62
- }
63
- }
64
- }
65
-
66
- @mixin typography($theme) {
67
- }
68
-
69
- @mixin theme($theme) {
70
- // round button corners to 8px
71
- --mdc-filled-button-container-shape: 8px;
72
- --mdc-outlined-button-container-shape: 8px;
73
- --mdc-stroked-button-container-shape: 8px;
74
- --mdc-protected-button-container-shape: 8px;
75
- --mdc-text-button-container-shape: 8px;
76
-
77
- @if mat.theme-has($theme, color) {
78
- @include color($theme);
79
- }
80
-
81
- @if mat.theme-has($theme, typography) {
82
- @include typography($theme);
83
- }
84
- }
@@ -1,34 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
- @use '../core-theme' as bdb;
4
-
5
- @mixin color($theme) {
6
- @each $palette-name in bdb.$palette-names {
7
- .mat-mdc-card.#{$palette-name},
8
- .mat-card.mat-#{$palette-name} {
9
- color: var(--sys-on-#{$palette-name});
10
- --mdc-elevated-card-container-color: var(--sys-#{$palette-name});
11
- --mdc-outlined-card-container-color: var(--sys-#{$palette-name});
12
- }
13
-
14
- .mat-mdc-card.#{$palette-name}-container,
15
- .mat-card.mat-#{$palette-name}-container {
16
- color: var(--sys-on-#{$palette-name}-container);
17
- --mdc-elevated-card-container-color: var(--sys-#{$palette-name}-container);
18
- --mdc-outlined-card-container-color: var(--sys-#{$palette-name}-container);
19
- }
20
- }
21
- }
22
-
23
- @mixin typography($theme) {
24
- }
25
-
26
- @mixin theme($theme) {
27
- @if mat.theme-has($theme, color) {
28
- @include color($theme);
29
- }
30
-
31
- @if mat.theme-has($theme, typography) {
32
- @include typography($theme);
33
- }
34
- }
@@ -1,54 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
- @use '../core-theme' as bdb;
4
-
5
- @mixin color($theme) {
6
- @each $palette-name in bdb.$material-palettes {
7
- .mat-mdc-checkbox.#{$palette-name} {
8
- @include mat.checkbox-color($theme, $color-variant: $palette-name);
9
- }
10
- }
11
-
12
- @each $palette-name in bdb.$badaboom-palettes {
13
- .mat-mdc-checkbox.#{$palette-name} {
14
- --mdc-checkbox-disabled-selected-checkmark-color: var(--sys-surface);
15
- --mdc-checkbox-selected-focus-state-layer-opacity: 0.12;
16
- --mdc-checkbox-selected-hover-state-layer-opacity: 0.08;
17
- --mdc-checkbox-selected-pressed-state-layer-opacity: 0.12;
18
- --mdc-checkbox-unselected-focus-state-layer-opacity: 0.12;
19
- --mdc-checkbox-unselected-hover-state-layer-opacity: 0.08;
20
- --mdc-checkbox-unselected-pressed-state-layer-opacity: 0.12;
21
- --mdc-checkbox-selected-pressed-icon-color: var(--sys-#{$palette-name});
22
- --mdc-checkbox-disabled-selected-icon-color: color-mix(in srgb, var(--sys-on-surface) 38%, transparent);
23
- --mdc-checkbox-disabled-unselected-icon-color: color-mix(in srgb, var(--sys-on-surface) 38%, transparent);
24
- --mdc-checkbox-selected-checkmark-color: var(--sys-on-#{$palette-name});
25
- --mdc-checkbox-selected-focus-icon-color: var(--sys-#{$palette-name});
26
- --mdc-checkbox-selected-hover-icon-color: var(--sys-#{$palette-name});
27
- --mdc-checkbox-selected-icon-color: var(--sys-#{$palette-name});
28
- --mdc-checkbox-unselected-focus-icon-color: var(--sys-on-surface);
29
- --mdc-checkbox-unselected-hover-icon-color: var(--sys-on-surface);
30
- --mdc-checkbox-unselected-icon-color: var(--sys-on-surface-variant);
31
- --mdc-checkbox-selected-focus-state-layer-color: var(--sys-#{$palette-name});
32
- --mdc-checkbox-selected-hover-state-layer-color: var(--sys-#{$palette-name});
33
- --mdc-checkbox-selected-pressed-state-layer-color: var(--sys-on-surface);
34
- --mdc-checkbox-unselected-focus-state-layer-color: var(--sys-on-surface);
35
- --mdc-checkbox-unselected-hover-state-layer-color: var(--sys-on-surface);
36
- --mdc-checkbox-unselected-pressed-state-layer-color: var(--sys-#{$palette-name});
37
- --mat-checkbox-disabled-label-color: color-mix(in srgb, var(--sys-on-surface) 38%, transparent);
38
- --mat-checkbox-label-text-color: var(--sys-on-surface);
39
- }
40
- }
41
- }
42
-
43
- @mixin typography($theme) {
44
- }
45
-
46
- @mixin theme($theme) {
47
- @if mat.theme-has($theme, color) {
48
- @include color($theme);
49
- }
50
-
51
- @if mat.theme-has($theme, typography) {
52
- @include typography($theme);
53
- }
54
- }
@@ -1,58 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
- @use '../core-theme' as bdb;
4
-
5
- @mixin color($theme) {
6
- @each $palette-name in bdb.$material-palettes {
7
- .mat-mdc-chip.#{$palette-name},
8
- .mat-mdc-chip.mat-#{$palette-name} {
9
- @include mat.chips-color($theme, $color-variant: $palette-name);
10
- }
11
- }
12
-
13
- @each $palette-name in bdb.$badaboom-palettes {
14
- .mat-mdc-chip.#{$palette-name},
15
- .mat-mdc-chip.mat-#{$palette-name} {
16
- --mdc-chip-outline-color: var(--sys-outline);
17
- --mdc-chip-disabled-outline-color: color-mix(in srgb, var(--sys-on-surface) 12%, transparent);
18
- --mdc-chip-focus-outline-color: var(--sys-on-surface-variant);
19
- --mdc-chip-hover-state-layer-opacity: 0.08;
20
- --mdc-chip-selected-hover-state-layer-opacity: 0.08;
21
- --mdc-chip-disabled-label-text-color: color-mix(in srgb, var(--sys-on-surface) 38%, transparent);
22
- --mdc-chip-elevated-selected-container-color: var(--sys-#{$palette-name}-container);
23
- --mdc-chip-flat-disabled-selected-container-color: color-mix(in srgb, var(--sys-on-surface) 12%, transparent);
24
- --mdc-chip-focus-state-layer-color: var(--sys-on-surface-variant);
25
- --mdc-chip-hover-state-layer-color: var(--sys-on-surface-variant);
26
- --mdc-chip-selected-hover-state-layer-color: var(--sys-on-#{$palette-name}-container);
27
- --mdc-chip-focus-state-layer-opacity: 0.12;
28
- --mdc-chip-selected-focus-state-layer-color: var(--sys-on-#{$palette-name}-container);
29
- --mdc-chip-selected-focus-state-layer-opacity: 0.12;
30
- --mdc-chip-label-text-color: var(--sys-on-surface-variant);
31
- --mdc-chip-selected-label-text-color: var(--sys-on-#{$palette-name}-container);
32
- --mdc-chip-with-icon-icon-color: var(--sys-on-surface-variant);
33
- --mdc-chip-with-icon-disabled-icon-color: var(--sys-on-surface);
34
- --mdc-chip-with-icon-selected-icon-color: var(--sys-on-#{$palette-name}-container);
35
- --mdc-chip-with-trailing-icon-disabled-trailing-icon-color: var(--sys-on-surface);
36
- --mdc-chip-with-trailing-icon-trailing-icon-color: var(--sys-on-surface-variant);
37
- --mat-chip-trailing-action-state-layer-color: var(--sys-on-surface-variant);
38
- --mat-chip-selected-trailing-action-state-layer-color: var(--sys-on-#{$palette-name}-container);
39
- --mat-chip-trailing-action-hover-state-layer-opacity: 0.08;
40
- --mat-chip-trailing-action-focus-state-layer-opacity: 0.12;
41
- --mat-chip-selected-disabled-trailing-icon-color: var(--sys-on-surface);
42
- --mat-chip-selected-trailing-icon-color: var(--sys-on-#{$palette-name}-container);
43
- }
44
- }
45
- }
46
-
47
- @mixin typography($theme) {
48
- }
49
-
50
- @mixin theme($theme) {
51
- @if mat.theme-has($theme, color) {
52
- @include color($theme);
53
- }
54
-
55
- @if mat.theme-has($theme, typography) {
56
- @include typography($theme);
57
- }
58
- }
@@ -1,84 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
- @use '../core-theme' as bdb;
4
-
5
- @mixin color($theme) {
6
- @each $palette-name in bdb.$material-palettes {
7
- .#{$palette-name}.mat-calendar {
8
- @include mat.datepicker-color($theme, $color-variant: $palette-name);
9
- }
10
- }
11
-
12
- @each $palette-name in bdb.$badaboom-palettes {
13
- .#{$palette-name}.mat-calendar {
14
- --mat-datepicker-calendar-date-selected-state-text-color: var(--sys-on-#{$palette-name});
15
- --mat-datepicker-calendar-date-selected-state-background-color: var(--sys-#{$palette-name});
16
- --mat-datepicker-calendar-date-selected-disabled-state-background-color: color-mix(
17
- in srgb,
18
- var(--sys-on-surface) 38%,
19
- transparent
20
- );
21
- --mat-datepicker-calendar-date-today-selected-state-outline-color: var(--sys-#{$palette-name});
22
- --mat-datepicker-calendar-date-focus-state-background-color: color-mix(
23
- in srgb,
24
- var(--sys-on-surface) 12%,
25
- transparent
26
- );
27
- --mat-datepicker-calendar-date-hover-state-background-color: color-mix(
28
- in srgb,
29
- var(--sys-on-surface) 8%,
30
- transparent
31
- );
32
- --mat-datepicker-toggle-active-state-icon-color: var(--sys-on-surface-variant);
33
- --mat-datepicker-calendar-date-in-range-state-background-color: var(--sys-#{$palette-name}-container);
34
- --mat-datepicker-calendar-date-in-comparison-range-state-background-color: var(--sys-tertiary-container);
35
- --mat-datepicker-calendar-date-in-overlap-range-state-background-color: var(--sys-primary-container);
36
- --mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: var(--sys-primary);
37
- --mat-datepicker-toggle-icon-color: var(--sys-on-surface-variant);
38
- --mat-datepicker-calendar-body-label-text-color: var(--sys-on-surface);
39
- --mat-datepicker-calendar-period-button-text-color: var(--sys-on-surface-variant);
40
- --mat-datepicker-calendar-period-button-icon-color: var(--sys-on-surface-variant);
41
- --mat-datepicker-calendar-navigation-button-icon-color: var(--sys-on-surface-variant);
42
- --mat-datepicker-calendar-header-text-color: var(--sys-on-surface-variant);
43
- --mat-datepicker-calendar-date-today-outline-color: var(--sys-#{$palette-name});
44
- --mat-datepicker-calendar-date-today-disabled-state-outline-color: color-mix(
45
- in srgb,
46
- var(--sys-on-surface) 38%,
47
- transparent
48
- );
49
- --mat-datepicker-calendar-date-text-color: var(--sys-on-surface);
50
- --mat-datepicker-calendar-date-disabled-state-text-color: color-mix(
51
- in srgb,
52
- var(--sys-on-surface) 38%,
53
- transparent
54
- );
55
- --mat-datepicker-calendar-date-preview-state-outline-color: var(--sys-#{$palette-name});
56
- --mat-datepicker-range-input-separator-color: var(--sys-on-surface);
57
- --mat-datepicker-range-input-disabled-state-separator-color: color-mix(
58
- in srgb,
59
- var(--sys-on-surface) 38%,
60
- transparent
61
- );
62
- --mat-datepicker-range-input-disabled-state-text-color: color-mix(
63
- in srgb,
64
- var(--sys-on-surface) 38%,
65
- transparent
66
- );
67
- --mat-datepicker-calendar-container-background-color: var(--sys-surface-container-high);
68
- --mat-datepicker-calendar-container-text-color: var(--sys-on-surface);
69
- }
70
- }
71
- }
72
-
73
- @mixin typography($theme) {
74
- }
75
-
76
- @mixin theme($theme) {
77
- @if mat.theme-has($theme, color) {
78
- @include color($theme);
79
- }
80
-
81
- @if mat.theme-has($theme, typography) {
82
- @include typography($theme);
83
- }
84
- }