@devopmaat/badaboom 1.2.3 → 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 (193) hide show
  1. package/fesm2022/devopmaat-badaboom.mjs +591 -271
  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 +48 -10
  26. package/lib/styles/_theme.scss +57 -140
  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 +5 -6
  47. package/public-api.d.ts +9 -2
  48. package/esm2022/devopmaat-badaboom.mjs +0 -5
  49. package/esm2022/lib/application/common/bdb-data-source.mjs +0 -42
  50. package/esm2022/lib/application/common/full-table/bdb-full-table.component.mjs +0 -57
  51. package/esm2022/lib/application/common/paginator/bdb-paginator.component.mjs +0 -37
  52. package/esm2022/lib/application/common/query-input/bdb-query-input.component.mjs +0 -44
  53. package/esm2022/lib/application/common/search/bdb-search-wrapper.component.mjs +0 -33
  54. package/esm2022/lib/application/common/search/bdb-search.component.mjs +0 -163
  55. package/esm2022/lib/application/common/table/bdb-cell.directive.mjs +0 -20
  56. package/esm2022/lib/application/common/table/bdb-column-builder.mjs +0 -100
  57. package/esm2022/lib/application/common/table/bdb-column-options.mjs +0 -2
  58. package/esm2022/lib/application/common/table/bdb-column-type.mjs +0 -12
  59. package/esm2022/lib/application/common/table/bdb-column.mjs +0 -2
  60. package/esm2022/lib/application/common/table/bdb-context-action.mjs +0 -2
  61. package/esm2022/lib/application/common/table/bdb-table.component.mjs +0 -192
  62. package/esm2022/lib/application/common/table/dynamic.pipe.mjs +0 -26
  63. package/esm2022/lib/application/exception-log/exception-log-table/exception-log-table.component.mjs +0 -49
  64. package/esm2022/lib/application/task-log/task-log-outcome.pipe.mjs +0 -31
  65. package/esm2022/lib/application/task-log/task-log-status.pipe.mjs +0 -29
  66. package/esm2022/lib/application/task-log-parameter/task-log-parameter-value.pipe.mjs +0 -49
  67. package/esm2022/lib/application/user/user-table/user-table.component.mjs +0 -68
  68. package/esm2022/lib/bdb-auth-options.mjs +0 -39
  69. package/esm2022/lib/bdb-options.mjs +0 -25
  70. package/esm2022/lib/common/alert/bdb-alert.component.mjs +0 -40
  71. package/esm2022/lib/common/alert-error-response/bdb-alert-error-response.component.mjs +0 -108
  72. package/esm2022/lib/common/bdb-flex-child.directive.mjs +0 -24
  73. package/esm2022/lib/common/bdb-flex.directive.mjs +0 -112
  74. package/esm2022/lib/common/bdb-form-error.directive.mjs +0 -74
  75. package/esm2022/lib/common/bdb-grid-child.directive.mjs +0 -81
  76. package/esm2022/lib/common/bdb-grid.directive.mjs +0 -107
  77. package/esm2022/lib/common/bdb-palette.mjs +0 -2
  78. package/esm2022/lib/common/boolean-display/bdb-boolean-display.component.mjs +0 -23
  79. package/esm2022/lib/common/collapse-row/collapse-row.component.mjs +0 -31
  80. package/esm2022/lib/common/color.mjs +0 -26
  81. package/esm2022/lib/common/constructor.mjs +0 -2
  82. package/esm2022/lib/common/field/bdb-field.component.mjs +0 -20
  83. package/esm2022/lib/common/function.pipe.mjs +0 -20
  84. package/esm2022/lib/common/layout-error.mjs +0 -6
  85. package/esm2022/lib/common/linked-list.mjs +0 -53
  86. package/esm2022/lib/common/plain-number-pipe.mjs +0 -20
  87. package/esm2022/lib/domain/auth/account-info.mjs +0 -2
  88. package/esm2022/lib/domain/auth/account.service.mjs +0 -32
  89. package/esm2022/lib/domain/auth/auth.service.mjs +0 -119
  90. package/esm2022/lib/domain/auth/reset-password-token.mjs +0 -2
  91. package/esm2022/lib/domain/auth/token-expired.interceptor.mjs +0 -21
  92. package/esm2022/lib/domain/auth/token-reponse.mjs +0 -2
  93. package/esm2022/lib/domain/auth/token.interceptor.mjs +0 -17
  94. package/esm2022/lib/domain/common/bdb-filter.mjs +0 -2
  95. package/esm2022/lib/domain/common/bdb-request.mjs +0 -2
  96. package/esm2022/lib/domain/common/bdb-response.mjs +0 -2
  97. package/esm2022/lib/domain/common/entities/bdb-entity-read.mjs +0 -2
  98. package/esm2022/lib/domain/common/entities/bdb-entity-update.mjs +0 -2
  99. package/esm2022/lib/domain/common/entities/bdb-entity.mjs +0 -2
  100. package/esm2022/lib/domain/common/services/bdb-service-cr.mjs +0 -7
  101. package/esm2022/lib/domain/common/services/bdb-service-crd.mjs +0 -7
  102. package/esm2022/lib/domain/common/services/bdb-service-cru.mjs +0 -7
  103. package/esm2022/lib/domain/common/services/bdb-service-crud.mjs +0 -7
  104. package/esm2022/lib/domain/common/services/bdb-service-r.mjs +0 -10
  105. package/esm2022/lib/domain/common/services/bdb-service-rd.mjs +0 -7
  106. package/esm2022/lib/domain/common/services/bdb-service-ru.mjs +0 -7
  107. package/esm2022/lib/domain/common/services/bdb-service-rud.mjs +0 -7
  108. package/esm2022/lib/domain/common/services/bdb-service.mjs +0 -11
  109. package/esm2022/lib/domain/entities/exception-log/exception-log-read.mjs +0 -2
  110. package/esm2022/lib/domain/entities/exception-log/exception-log.mjs +0 -2
  111. package/esm2022/lib/domain/entities/exception-log/exception-log.service.mjs +0 -17
  112. package/esm2022/lib/domain/entities/media/media-read.mjs +0 -2
  113. package/esm2022/lib/domain/entities/media/media.mjs +0 -2
  114. package/esm2022/lib/domain/entities/media/media.service.mjs +0 -27
  115. package/esm2022/lib/domain/entities/role/role-read.mjs +0 -2
  116. package/esm2022/lib/domain/entities/role/role.mjs +0 -2
  117. package/esm2022/lib/domain/entities/role/role.service.mjs +0 -17
  118. package/esm2022/lib/domain/entities/task-log/task-log-create.mjs +0 -2
  119. package/esm2022/lib/domain/entities/task-log/task-log-read.mjs +0 -2
  120. package/esm2022/lib/domain/entities/task-log/task-log.mjs +0 -2
  121. package/esm2022/lib/domain/entities/task-log/task-log.service.mjs +0 -20
  122. package/esm2022/lib/domain/entities/task-log-parameter/task-log-parameter-create.mjs +0 -2
  123. package/esm2022/lib/domain/entities/task-log-parameter/task-log-parameter-read.mjs +0 -2
  124. package/esm2022/lib/domain/entities/task-log-parameter/task-log-parameter.mjs +0 -2
  125. package/esm2022/lib/domain/entities/task-log-parameter/task-log-parameter.service.mjs +0 -17
  126. package/esm2022/lib/domain/entities/task-log-schedule/task-log-schedule-create.mjs +0 -2
  127. package/esm2022/lib/domain/entities/task-log-schedule/task-log-schedule-read.mjs +0 -2
  128. package/esm2022/lib/domain/entities/task-log-schedule/task-log-schedule-update.mjs +0 -2
  129. package/esm2022/lib/domain/entities/task-log-schedule/task-log-schedule.mjs +0 -2
  130. package/esm2022/lib/domain/entities/task-log-schedule/task-log-schedule.service.mjs +0 -17
  131. package/esm2022/lib/domain/entities/user/user-create.mjs +0 -2
  132. package/esm2022/lib/domain/entities/user/user-read.mjs +0 -2
  133. package/esm2022/lib/domain/entities/user/user-update.mjs +0 -2
  134. package/esm2022/lib/domain/entities/user/user.mjs +0 -2
  135. package/esm2022/lib/domain/entities/user/user.service.mjs +0 -17
  136. package/esm2022/lib/domain/entities/user-role/user-role-create.mjs +0 -2
  137. package/esm2022/lib/domain/entities/user-role/user-role-read.mjs +0 -2
  138. package/esm2022/lib/domain/entities/user-role/user-role.mjs +0 -2
  139. package/esm2022/lib/domain/entities/user-role/user-role.service.mjs +0 -17
  140. package/esm2022/lib/domain/enums/media-type.mjs +0 -7
  141. package/esm2022/lib/domain/enums/task-log-outcome.mjs +0 -9
  142. package/esm2022/lib/domain/enums/task-log-parameter-type.mjs +0 -8
  143. package/esm2022/lib/domain/enums/task-log-status.mjs +0 -8
  144. package/esm2022/lib/domain/tasks/task-log-scheduler.service.mjs +0 -26
  145. package/esm2022/lib/domain/tasks/task-log-type-parameter.mjs +0 -2
  146. package/esm2022/lib/domain/tasks/task-log-type.mjs +0 -2
  147. package/esm2022/lib/domain/tasks/task-log-type.service.mjs +0 -44
  148. package/esm2022/lib/lib.config.mjs +0 -67
  149. package/esm2022/lib/presentation/access-denied-page/access-denied-page.component.mjs +0 -51
  150. package/esm2022/lib/presentation/auth-container/auth-container.component.mjs +0 -12
  151. package/esm2022/lib/presentation/forgot-password-page/forgot-password-page.component.mjs +0 -75
  152. package/esm2022/lib/presentation/invalid-token-page/invalid-token-page.component.mjs +0 -26
  153. package/esm2022/lib/presentation/logged-out.guard.mjs +0 -16
  154. package/esm2022/lib/presentation/login-page/login-page.component.mjs +0 -90
  155. package/esm2022/lib/presentation/logout-page/logout-page.component.mjs +0 -33
  156. package/esm2022/lib/presentation/reset-password-page/reset-password-page.component.mjs +0 -102
  157. package/esm2022/lib/presentation/reset-password.resolver.mjs +0 -25
  158. package/esm2022/lib/presentation/role.guard.mjs +0 -28
  159. package/esm2022/public-api.mjs +0 -112
  160. package/lib/application/common/query-input/_bdb-query-input-m2-theme.scss +0 -17
  161. package/lib/application/common/query-input/_bdb-query-input-m3-theme.scss +0 -30
  162. package/lib/application/common/search/_bdb-search-m2-theme.scss +0 -12
  163. package/lib/application/common/table/_bdb-table-m2-theme.scss +0 -48
  164. package/lib/application/common/table/_bdb-table-m3-theme.scss +0 -70
  165. package/lib/common/_button-m2-theme.scss +0 -87
  166. package/lib/common/_icon-m2-theme.scss +0 -32
  167. package/lib/common/alert/_bdb-alert-m2-theme.scss +0 -34
  168. package/lib/common/alert/_bdb-alert-m3-theme.scss +0 -29
  169. package/lib/common/boolean-display/_bdb-boolean-display-m2-theme.scss +0 -18
  170. package/lib/common/boolean-display/_bdb-boolean-display-m3-theme.scss +0 -27
  171. package/lib/common/color.d.ts +0 -14
  172. package/lib/common/constructor.d.ts +0 -2
  173. package/lib/common/field/_bdb-field-m2-theme.scss +0 -13
  174. package/lib/common/field/_bdb-field-m3-theme.scss +0 -56
  175. package/lib/styles/material/_badge-m3-theme.scss +0 -35
  176. package/lib/styles/material/_button-m3-theme.scss +0 -84
  177. package/lib/styles/material/_card-m3-theme.scss +0 -34
  178. package/lib/styles/material/_checkbox-m3-theme.scss +0 -54
  179. package/lib/styles/material/_chips-m3-theme.scss +0 -58
  180. package/lib/styles/material/_datepicker-m3-theme.scss +0 -84
  181. package/lib/styles/material/_fab-m3-theme.scss +0 -84
  182. package/lib/styles/material/_form-field-m3-theme.scss +0 -36
  183. package/lib/styles/material/_icon-m3-theme.scss +0 -32
  184. package/lib/styles/material/_option-m3-theme.scss +0 -34
  185. package/lib/styles/material/_progress-bar-m3-theme.scss +0 -31
  186. package/lib/styles/material/_radio-m3-theme.scss +0 -42
  187. package/lib/styles/material/_slide-toggle-m3-theme.scss +0 -68
  188. package/lib/styles/material/_slider-m3-theme.scss +0 -48
  189. package/lib/styles/material/_stepper-m3-theme.scss +0 -44
  190. package/lib/styles/material/_tabs-m3-theme.scss +0 -32
  191. package/lib/styles/material/_toolbar-m3-theme.scss +0 -63
  192. /package/lib/common/collapse-row/{collapse-row.component.d.ts → bdb-collapse-row.component.d.ts} +0 -0
  193. /package/lib/common/{plain-number-pipe.d.ts → plain-number.pipe.d.ts} +0 -0
@@ -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
- }
@@ -1,84 +0,0 @@
1
- @use 'sass:map';
2
- @use 'sass:list';
3
- @use '@angular/material' as mat;
4
- @use '../core-theme' as bdb;
5
-
6
- @mixin color($theme) {
7
- // does not support error...?
8
- @each $palette-name in primary, secondary, tertiary {
9
- .mat-mdc-fab.#{$palette-name},
10
- .mat-mdc-fab.mat-#{$palette-name},
11
- .mat-mdc-mini-fab.#{$palette-name},
12
- .mat-mdc-mini-fab.mat-#{$palette-name} {
13
- @include mat.fab-color($theme, $color-variant: $palette-name);
14
- }
15
- }
16
-
17
- // so add error this way
18
- @each $palette-name in list.join(bdb.$badaboom-palettes, 'error') {
19
- .mat-mdc-fab.#{$palette-name},
20
- .mat-mdc-fab.mat-#{$palette-name},
21
- .mat-mdc-mini-fab.#{$palette-name},
22
- .mat-mdc-mini-fab.mat-#{$palette-name} {
23
- --mdc-extended-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
24
- 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
25
- --mdc-extended-fab-focus-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
26
- 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
27
- --mdc-extended-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2),
28
- 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
29
- --mdc-extended-fab-pressed-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
30
- 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
31
- --mdc-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14),
32
- 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
33
- --mdc-fab-focus-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
34
- 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
35
- --mdc-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2),
36
- 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
37
- --mdc-fab-pressed-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
38
- 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
39
- --mdc-fab-container-color: var(--sys-#{$palette-name}-container);
40
- --mdc-fab-small-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
41
- 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
42
- --mdc-fab-small-focus-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
43
- 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
44
- --mdc-fab-small-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2),
45
- 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
46
- --mdc-fab-small-pressed-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
47
- 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
48
- --mdc-fab-small-container-color: var(--sys-#{$palette-name}-container);
49
- --mat-fab-foreground-color: var(--sys-on-#{$palette-name}-container);
50
- --mat-fab-state-layer-color: var(--sys-on-#{$palette-name}-container);
51
- --mat-fab-ripple-color: color-mix(in srgb, var(--sys-on-#{$palette-name}-container) 12%, transparent);
52
- --mat-fab-hover-state-layer-opacity: 0.08;
53
- --mat-fab-focus-state-layer-opacity: 0.12;
54
- --mat-fab-pressed-state-layer-opacity: 0.12;
55
- --mat-fab-disabled-state-container-color: color-mix(in srgb, var(--sys-on-surface) 12%, transparent);
56
- --mat-fab-disabled-state-foreground-color: color-mix(in srgb, var(--sys-on-surface) 38%, transparent);
57
- --mat-fab-small-foreground-color: var(--sys-on-#{$palette-name}-container);
58
- --mat-fab-small-state-layer-color: var(--sys-on-#{$palette-name}-container);
59
- --mat-fab-small-ripple-color: color-mix(in srgb, var(--sys-on-#{$palette-name}-container) 12%, transparent);
60
- --mat-fab-small-hover-state-layer-opacity: 0.08;
61
- --mat-fab-small-focus-state-layer-opacity: 0.12;
62
- --mat-fab-small-pressed-state-layer-opacity: 0.12;
63
- --mat-fab-small-disabled-state-container-color: color-mix(in srgb, var(--sys-on-surface) 12%, transparent);
64
- --mat-fab-small-disabled-state-foreground-color: color-mix(in srgb, var(--sys-on-surface) 38%, transparent);
65
- }
66
- }
67
- }
68
-
69
- @mixin typography($theme) {
70
- }
71
-
72
- @mixin theme($theme) {
73
- // round button corners to 8px
74
- --mdc-fab-container-shape: 8px;
75
- --mdc-fab-small-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
- }