@covalent/core 8.1.0-beta.8 → 8.1.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.
Files changed (105) hide show
  1. package/common/styles/core/_structure.scss +2 -0
  2. package/common/styles/font/MaterialIcons-Regular-v48.woff2 +0 -0
  3. package/common/styles/font/_font.scss +35 -1
  4. package/esm2022/breadcrumbs/breadcrumb/breadcrumb.component.mjs +4 -4
  5. package/esm2022/breadcrumbs/breadcrumbs.component.mjs +4 -4
  6. package/esm2022/breadcrumbs/breadcrumbs.module.mjs +4 -4
  7. package/esm2022/common/behaviors/control-value-accesor.mixin.mjs +1 -1
  8. package/esm2022/common/behaviors/disable-ripple.mixin.mjs +1 -1
  9. package/esm2022/common/behaviors/disabled.mixin.mjs +1 -1
  10. package/esm2022/common/common.module.mjs +6 -26
  11. package/esm2022/common/directives/fullscreen/fullscreen.directive.mjs +13 -13
  12. package/esm2022/common/forms/auto-trim/auto-trim.directive.mjs +4 -4
  13. package/esm2022/common/forms/validators/validators.mjs +1 -1
  14. package/esm2022/common/functions/convert.mjs +1 -1
  15. package/esm2022/common/functions/download.mjs +1 -1
  16. package/esm2022/common/pipes/bytes/bytes.pipe.mjs +4 -4
  17. package/esm2022/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +4 -4
  18. package/esm2022/common/pipes/digits/digits.pipe.mjs +4 -4
  19. package/esm2022/common/pipes/time-ago/time-ago.pipe.mjs +4 -4
  20. package/esm2022/common/pipes/time-difference/time-difference.pipe.mjs +4 -4
  21. package/esm2022/common/pipes/time-until/time-until.pipe.mjs +4 -4
  22. package/esm2022/common/pipes/truncate/truncate.pipe.mjs +4 -4
  23. package/esm2022/common/services/icon.service.mjs +3 -3
  24. package/esm2022/common/services/router-path.service.mjs +3 -3
  25. package/esm2022/dialogs/alert-dialog/alert-dialog.component.mjs +3 -3
  26. package/esm2022/dialogs/confirm-dialog/confirm-dialog.component.mjs +3 -3
  27. package/esm2022/dialogs/dialog.component.mjs +13 -13
  28. package/esm2022/dialogs/dialogs.module.mjs +4 -4
  29. package/esm2022/dialogs/prompt-dialog/prompt-dialog.component.mjs +4 -4
  30. package/esm2022/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +2 -4
  31. package/esm2022/dialogs/services/dialog.service.mjs +4 -4
  32. package/esm2022/dialogs/window-dialog/window-dialog.component.mjs +5 -5
  33. package/esm2022/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +5 -5
  34. package/esm2022/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +3 -3
  35. package/esm2022/dynamic-menu/dynamic-menu.component.mjs +3 -3
  36. package/esm2022/dynamic-menu/dynamic-menu.module.mjs +4 -4
  37. package/esm2022/file/directives/file-drop.directive.mjs +4 -4
  38. package/esm2022/file/directives/file-select.directive.mjs +4 -4
  39. package/esm2022/file/file-input/file-input.component.mjs +9 -9
  40. package/esm2022/file/file-upload/file-upload.component.mjs +4 -4
  41. package/esm2022/file/file.module.mjs +4 -4
  42. package/esm2022/file/services/file.service.mjs +4 -4
  43. package/esm2022/json-formatter/json-formatter.component.mjs +4 -4
  44. package/esm2022/json-formatter/json-formatter.module.mjs +4 -4
  45. package/esm2022/layout/layout-card-over/layout-card-over.component.mjs +5 -5
  46. package/esm2022/layout/layout-footer/layout-footer.component.mjs +4 -4
  47. package/esm2022/layout/layout-manage-list/layout-manage-list.component.mjs +3 -3
  48. package/esm2022/layout/layout-manage-list/layout-manage-list.directives.mjs +9 -9
  49. package/esm2022/layout/layout-nav/layout-nav.component.mjs +6 -6
  50. package/esm2022/layout/layout-nav-list/layout-nav-list.component.mjs +5 -5
  51. package/esm2022/layout/layout-nav-list/layout-nav-list.directives.mjs +9 -9
  52. package/esm2022/layout/layout-toggle.class.mjs +4 -4
  53. package/esm2022/layout/layout.component.mjs +3 -3
  54. package/esm2022/layout/layout.directives.mjs +9 -9
  55. package/esm2022/layout/layout.module.mjs +4 -4
  56. package/esm2022/layout/navigation-drawer/navigation-drawer.component.mjs +11 -11
  57. package/esm2022/loading/directives/loading.directive.mjs +4 -4
  58. package/esm2022/loading/loading.component.mjs +4 -4
  59. package/esm2022/loading/loading.module.mjs +4 -4
  60. package/esm2022/loading/services/loading.factory.mjs +4 -4
  61. package/esm2022/loading/services/loading.service.mjs +4 -4
  62. package/esm2022/menu/menu.component.mjs +3 -3
  63. package/esm2022/menu/menu.module.mjs +4 -4
  64. package/esm2022/message/message.component.mjs +7 -7
  65. package/esm2022/message/message.module.mjs +4 -4
  66. package/esm2022/search/search-box/search-box.component.mjs +4 -4
  67. package/esm2022/search/search-input/search-input.component.mjs +4 -4
  68. package/esm2022/search/search.module.mjs +4 -4
  69. package/esm2022/side-sheet/side-sheet-container.mjs +7 -7
  70. package/esm2022/side-sheet/side-sheet-ref.mjs +1 -1
  71. package/esm2022/side-sheet/side-sheet.content-directives.mjs +16 -16
  72. package/esm2022/side-sheet/side-sheet.mjs +7 -7
  73. package/esm2022/side-sheet/side-sheet.module.mjs +4 -4
  74. package/esm2022/user-profile/user-profile-menu/user-profile-menu.component.mjs +3 -3
  75. package/esm2022/user-profile/user-profile.component.mjs +3 -3
  76. package/esm2022/user-profile/user-profile.module.mjs +4 -4
  77. package/fesm2022/covalent-core-breadcrumbs.mjs +11 -11
  78. package/fesm2022/covalent-core-breadcrumbs.mjs.map +1 -1
  79. package/fesm2022/covalent-core-common.mjs +48 -68
  80. package/fesm2022/covalent-core-common.mjs.map +1 -1
  81. package/fesm2022/covalent-core-dialogs.mjs +34 -36
  82. package/fesm2022/covalent-core-dialogs.mjs.map +1 -1
  83. package/fesm2022/covalent-core-dynamic-menu.mjs +14 -14
  84. package/fesm2022/covalent-core-dynamic-menu.mjs.map +1 -1
  85. package/fesm2022/covalent-core-file.mjs +28 -28
  86. package/fesm2022/covalent-core-file.mjs.map +1 -1
  87. package/fesm2022/covalent-core-json-formatter.mjs +8 -8
  88. package/fesm2022/covalent-core-json-formatter.mjs.map +1 -1
  89. package/fesm2022/covalent-core-layout.mjs +66 -66
  90. package/fesm2022/covalent-core-layout.mjs.map +1 -1
  91. package/fesm2022/covalent-core-loading.mjs +16 -16
  92. package/fesm2022/covalent-core-loading.mjs.map +1 -1
  93. package/fesm2022/covalent-core-menu.mjs +7 -7
  94. package/fesm2022/covalent-core-message.mjs +11 -11
  95. package/fesm2022/covalent-core-message.mjs.map +1 -1
  96. package/fesm2022/covalent-core-search.mjs +11 -11
  97. package/fesm2022/covalent-core-search.mjs.map +1 -1
  98. package/fesm2022/covalent-core-side-sheet.mjs +32 -32
  99. package/fesm2022/covalent-core-side-sheet.mjs.map +1 -1
  100. package/fesm2022/covalent-core-user-profile.mjs +10 -10
  101. package/layout/_layout-theme.scss +6 -7
  102. package/layout/layout-card-over/layout-card-over.component.d.ts +1 -1
  103. package/layout/navigation-drawer/navigation-drawer.component.d.ts +1 -1
  104. package/package.json +2 -2
  105. package/theming/_teradata-theme.scss +0 -524
@@ -1,524 +0,0 @@
1
- @use '@angular/material' as mat;
2
- @import '@covalent/tokens';
3
-
4
- // Customer Teradata brand palette
5
- // Define the palettes for your theme using the Material Design palettes available in palette.scss
6
- // (imported above). For each palette, you can optionally specify a default, lighter, and darker
7
- // hue.
8
- $td-theme: map-get($tokens, 'theme');
9
- $td-theme-dark: map-get($td-theme, 'dark');
10
- $td-dark-palettes: map-get($td-theme-dark, 'palettes');
11
- $td-dark-colors: map-get($td-theme-dark, 'colors');
12
-
13
- $td-theme-light: map-get($td-theme, 'light');
14
- $td-light-palettes: map-get($td-theme-light, 'palettes');
15
- $td-light-colors: map-get($td-theme-light, 'colors');
16
-
17
- // Digital blue
18
- // Add contrast for angular palette
19
- $td-digital-blue-light: map-merge(
20
- (
21
- '200': map-get($td-light-palettes, 'digital blue 20'),
22
- '30': map-get($td-light-palettes, 'digital blue 30'),
23
- '300': map-get($td-light-palettes, 'digital blue 30'),
24
- '40': map-get($td-light-palettes, 'digital blue 40'),
25
- '50': map-get($td-light-palettes, 'digital blue 50'),
26
- '500': map-get($td-light-palettes, 'digital blue 50'),
27
- '60': map-get($td-light-palettes, 'digital blue 60'),
28
- '600': map-get($td-light-palettes, 'digital blue 60'),
29
- '70': map-get($td-light-palettes, 'digital blue 70'),
30
- '80': map-get($td-light-palettes, 'digital blue 80'),
31
- '90': map-get($td-light-palettes, 'digital blue 90'),
32
- '900': map-get($td-light-palettes, 'digital blue 90'),
33
- ),
34
- (
35
- contrast: (
36
- '20': $light-on-primary,
37
- '30': $light-on-primary,
38
- '300': $light-on-primary,
39
- '40': $light-on-primary,
40
- '50': $light-on-primary,
41
- '500': $light-on-primary,
42
- '60': $light-on-primary,
43
- '600': $light-on-primary,
44
- '70': $light-on-primary,
45
- '80': $light-on-primary,
46
- '90': $light-on-primary,
47
- '900': $light-on-primary,
48
- ),
49
- )
50
- );
51
- $td-digital-blue-dark: map-merge(
52
- (
53
- '200': map-get($td-dark-palettes, 'digital blue 20'),
54
- '30': map-get($td-dark-palettes, 'digital blue 30'),
55
- '300': map-get($td-dark-palettes, 'digital blue 30'),
56
- '40': map-get($td-dark-palettes, 'digital blue 40'),
57
- '50': map-get($td-dark-palettes, 'digital blue 50'),
58
- '500': map-get($td-dark-palettes, 'digital blue 50'),
59
- '60': map-get($td-dark-palettes, 'digital blue 60'),
60
- '600': map-get($td-dark-palettes, 'digital blue 60'),
61
- '70': map-get($td-dark-palettes, 'digital blue 70'),
62
- '80': map-get($td-dark-palettes, 'digital blue 80'),
63
- '90': map-get($td-dark-palettes, 'digital blue 90'),
64
- '900': map-get($td-dark-palettes, 'digital blue 90'),
65
- ),
66
- (
67
- contrast: (
68
- '200': $dark-on-primary,
69
- '30': $dark-on-primary,
70
- '300': $dark-on-primary,
71
- '40': $dark-on-primary,
72
- '50': $dark-on-primary,
73
- '500': $dark-on-primary,
74
- '60': $dark-on-primary,
75
- '600': $dark-on-primary,
76
- '70': $dark-on-primary,
77
- '80': $dark-on-primary,
78
- '90': $dark-on-primary,
79
- '900': $dark-on-primary,
80
- ),
81
- )
82
- );
83
-
84
- // Secondary
85
- // Add contrast for angular palette
86
- $td-secondary-light: map-merge(
87
- (
88
- '30': map-get($td-light-palettes, 'secondary 30'),
89
- '40': map-get($td-light-palettes, 'secondary 40'),
90
- '50': map-get($td-light-palettes, 'secondary 50'),
91
- '500': map-get($td-light-palettes, 'secondary 50'),
92
- '60': map-get($td-light-palettes, 'secondary 60'),
93
- '70': map-get($td-light-palettes, 'secondary 70'),
94
- '80': map-get($td-light-palettes, 'secondary 80'),
95
- '90': map-get($td-light-palettes, 'secondary 90'),
96
- ),
97
- (
98
- contrast: (
99
- '30': $light-on-secondary,
100
- '40': $light-on-secondary,
101
- '50': $light-on-secondary,
102
- '500': $light-on-secondary,
103
- '60': $light-on-secondary,
104
- '70': $light-on-secondary,
105
- '80': $light-on-secondary,
106
- '90': $light-on-secondary,
107
- ),
108
- )
109
- );
110
- $td-secondary-dark: map-merge(
111
- (
112
- '30': map-get($td-dark-palettes, 'secondary 30'),
113
- '40': map-get($td-dark-palettes, 'secondary 40'),
114
- '50': map-get($td-dark-palettes, 'secondary 50'),
115
- '500': map-get($td-dark-palettes, 'secondary 50'),
116
- '60': map-get($td-dark-palettes, 'secondary 60'),
117
- '70': map-get($td-dark-palettes, 'secondary 70'),
118
- '80': map-get($td-dark-palettes, 'secondary 80'),
119
- '90': map-get($td-dark-palettes, 'secondary 90'),
120
- ),
121
- (
122
- contrast: (
123
- '30': $dark-on-secondary,
124
- '40': $dark-on-secondary,
125
- '50': $dark-on-secondary,
126
- '500': $dark-on-secondary,
127
- '60': $dark-on-secondary,
128
- '70': $dark-on-secondary,
129
- '80': $dark-on-secondary,
130
- '90': $dark-on-secondary,
131
- ),
132
- )
133
- );
134
-
135
- // Warn
136
- // Add contrast for angular palette
137
- $td-warn-light: map-merge(
138
- (
139
- '30': map-get($td-light-palettes, 'negative 30'),
140
- '40': map-get($td-light-palettes, 'negative 40'),
141
- '50': map-get($td-light-palettes, 'negative 50'),
142
- '500': map-get($td-light-palettes, 'negative 50'),
143
- '60': map-get($td-light-palettes, 'negative 60'),
144
- '70': map-get($td-light-palettes, 'negative 70'),
145
- '80': map-get($td-light-palettes, 'negative 80'),
146
- '90': map-get($td-light-palettes, 'negative 90'),
147
- ),
148
- (
149
- contrast: (
150
- '30': $theme-light-colors-on-negative,
151
- '40': $theme-light-colors-on-negative,
152
- '50': $theme-light-colors-on-negative,
153
- '500': $theme-light-colors-on-negative,
154
- '60': $theme-light-colors-on-negative,
155
- '70': $theme-light-colors-on-negative,
156
- '80': $theme-light-colors-on-negative,
157
- '90': $theme-light-colors-on-negative,
158
- ),
159
- )
160
- );
161
- $td-warn-dark: map-merge(
162
- (
163
- '30': map-get($td-dark-palettes, 'negative 30'),
164
- '40': map-get($td-dark-palettes, 'negative 40'),
165
- '50': map-get($td-dark-palettes, 'negative 50'),
166
- '500': map-get($td-dark-palettes, 'negative 50'),
167
- '60': map-get($td-dark-palettes, 'negative 60'),
168
- '70': map-get($td-dark-palettes, 'negative 70'),
169
- '80': map-get($td-dark-palettes, 'negative 80'),
170
- '90': map-get($td-dark-palettes, 'negative 90'),
171
- ),
172
- (
173
- contrast: (
174
- '30': $theme-dark-colors-on-negative,
175
- '40': $theme-dark-colors-on-negative,
176
- '50': $theme-dark-colors-on-negative,
177
- '500': $theme-dark-colors-on-negative,
178
- '60': $theme-dark-colors-on-negative,
179
- '70': $theme-dark-colors-on-negative,
180
- '80': $theme-dark-colors-on-negative,
181
- '90': $theme-dark-colors-on-negative,
182
- ),
183
- )
184
- );
185
-
186
- $td-primary: $td-digital-blue-light;
187
- $td-secondary: $td-secondary-light;
188
- $td-accent: $td-digital-blue-light;
189
- // The warn palette is optional (defaults to red).
190
- $td-warn: $td-warn-light;
191
-
192
- // Dark theme tokens
193
- $td-primary-dark: $td-digital-blue-dark;
194
- $td-secondary-dark: $td-secondary-dark;
195
- $td-accent-dark: $td-digital-blue-dark;
196
- // The warn palette is optional (defaults to red).
197
- $td-warn-dark: $td-warn-dark;
198
-
199
- // Background palette for light themes.
200
- // todo: need to re-catalog used variables
201
- $td-light-theme-background: (
202
- status-bar: $theme-light-colors-surface-container-lowest,
203
- app-bar: $theme-light-colors-surface-container-low,
204
- background: $theme-light-colors-surface,
205
- canvas: $light-surface-canvas,
206
- card: $theme-light-colors-surface-container
207
- /*** card color = surface color ***/,
208
- dialog: $theme-light-colors-surface-container-high,
209
- hover: $light-surface-primary-highlight-hover,
210
- disabled-button: $theme-light-colors-surface-dim,
211
- disabled-button-toggle: $theme-light-colors-surface-dim,
212
- disabled-list-option: $theme-light-colors-surface-dim,
213
- raised-button: $light-surface-primary,
214
- focused-button: $light-surface-primary-highlight,
215
- selected-button: $theme-light-colors-surface-dim,
216
- selected-disabled-button: $theme-light-colors-surface-dim,
217
- unselected-chip: $theme-light-colors-surface-variant,
218
- tooltip: $theme-light-colors-surface-container-highest,
219
- overlay: $theme-light-colors-scrim,
220
- accent: $light-accent,
221
- accent-highlight: $light-surface-accent-highlight,
222
- accent-highlight-hover: $light-surface-accent-highlight-hover,
223
- emphasis: $light-emphasis,
224
- emphasis-highlight: $light-surface-emphasis-highlight,
225
- emphasis-highlight-hover: $light-surface-emphasis-highlight,
226
- caution: $light-surface-caution,
227
- caution-highlight: $light-surface-caution-highlight,
228
- caution-highlight-hover: $light-surface-caution-highlight-hover,
229
- negative: $light-surface-negative,
230
- negative-highlight: $light-surface-negative-highlight,
231
- negative-highlight-hover: $light-surface-negative-highlight-hover,
232
- neutral: $light-surface-neutral,
233
- neutral-highlight: $light-surface-neutral-highlight,
234
- neutral-highlight-hover: $light-surface-neutral-highlight-hover,
235
- positive: $light-surface-positive,
236
- positive-highlight: $light-surface-positive-highlight,
237
- positive-highlight-hover: $light-surface-positive-highlight-hover,
238
- primary: $light-surface-primary,
239
- primary-highlight: $light-surface-primary-highlight,
240
- primary-highlight-hover: $light-surface-primary-highlight-hover,
241
- );
242
-
243
- // Foreground palette for light themes.
244
- // todo: need to re-catalog used variables
245
- $td-light-theme-foreground: (
246
- base: $light-on-background,
247
- divider: $light-divider,
248
- dividers: $light-divider,
249
- disabled: $theme-light-colors-on-surface-38,
250
- disabled-button: $theme-light-colors-on-surface-38,
251
- disabled-text: $theme-light-colors-on-surface-38,
252
- elevation: black,
253
- // todo: need to work out elevation
254
- hint-text: $theme-light-colors-on-surface-variant,
255
- secondary-text: $theme-light-colors-on-surface-variant,
256
- icon: $light-text-icon-on-background,
257
- icons: $light-text-icon-on-background,
258
- text: $light-on-surface,
259
- slider-min: $light-on-surface,
260
- slider-off: $theme-light-colors-on-surface-8,
261
- slider-off-active: $theme-light-colors-on-surface-16,
262
- accent: $theme-light-colors-on-primary,
263
- emphasis: $theme-light-colors-on-emphasis,
264
- caution: $theme-light-colors-on-caution,
265
- negative: $theme-light-colors-on-negative,
266
- neutral: $light-on-surface,
267
- // todo: need to work out on-neutral tokens
268
- positive: $theme-light-colors-on-positive,
269
- primary: $theme-light-colors-on-primary,
270
- );
271
-
272
- // Background palette for dark themes.
273
- // todo: need to re-catalog used variables
274
- $td-dark-theme-background: (
275
- status-bar: $theme-dark-colors-surface-container-lowest,
276
- app-bar: $theme-dark-colors-surface-container-low,
277
- background: $theme-dark-colors-surface,
278
- canvas: $dark-surface-canvas,
279
- card: $theme-dark-colors-surface-container
280
- /*** card color = surface color ***/,
281
- dialog: $theme-dark-colors-surface-container-high,
282
- hover: $dark-surface-primary-highlight-hover,
283
- disabled-button: $theme-dark-colors-surface-dim,
284
- disabled-button-toggle: $theme-dark-colors-surface-dim,
285
- disabled-list-option: $theme-dark-colors-surface-dim,
286
- raised-button: $dark-surface-primary,
287
- focused-button: $dark-surface-primary-highlight,
288
- selected-button: $theme-dark-colors-surface-dim,
289
- selected-disabled-button: $theme-dark-colors-surface-dim,
290
- unselected-chip: $theme-dark-colors-surface-variant,
291
- tooltip: $theme-dark-colors-surface-container-highest,
292
- overlay: $theme-dark-colors-scrim,
293
- accent: $dark-accent,
294
- accent-highlight: $dark-surface-accent-highlight,
295
- accent-highlight-hover: $dark-surface-accent-highlight-hover,
296
- emphasis: $dark-emphasis,
297
- emphasis-highlight: $dark-surface-emphasis-highlight,
298
- emphasis-highlight-hover: $dark-surface-emphasis-highlight,
299
- caution: $dark-surface-caution,
300
- caution-highlight: $dark-surface-caution-highlight,
301
- caution-highlight-hover: $dark-surface-caution-highlight-hover,
302
- negative: $dark-surface-negative,
303
- negative-highlight: $dark-surface-negative-highlight,
304
- negative-highlight-hover: $dark-surface-negative-highlight-hover,
305
- neutral: $dark-surface-neutral,
306
- neutral-highlight: $dark-surface-neutral-highlight,
307
- neutral-highlight-hover: $dark-surface-neutral-highlight-hover,
308
- positive: $dark-surface-positive,
309
- positive-highlight: $dark-surface-positive-highlight,
310
- positive-highlight-hover: $dark-surface-positive-highlight-hover,
311
- primary: $dark-surface-primary,
312
- primary-highlight: $dark-surface-primary-highlight,
313
- primary-highlight-hover: $dark-surface-primary-highlight-hover,
314
- );
315
-
316
- // Foreground palette for dark themes.
317
- // todo: need to re-catalog used variables
318
- $td-dark-theme-foreground: (
319
- base: $dark-on-background,
320
- divider: $dark-divider,
321
- dividers: $dark-divider,
322
- disabled: $theme-dark-colors-on-surface-38,
323
- disabled-button: $theme-dark-colors-on-surface-38,
324
- disabled-text: $theme-dark-colors-on-surface-38,
325
- elevation: black,
326
- // todo: need to work out elevation
327
- hint-text: $theme-dark-colors-on-surface-variant,
328
- secondary-text: $theme-dark-colors-on-surface-variant,
329
- icon: $dark-text-icon-on-background,
330
- icons: $dark-text-icon-on-background,
331
- text: $dark-on-surface,
332
- slider-min: $dark-on-surface,
333
- slider-off: $theme-dark-colors-on-surface-8,
334
- slider-off-active: $theme-dark-colors-on-surface-16,
335
- accent: $theme-dark-colors-on-primary,
336
- emphasis: $theme-dark-colors-on-emphasis,
337
- caution: $theme-dark-colors-on-caution,
338
- negative: $theme-dark-colors-on-negative,
339
- neutral: $dark-on-surface,
340
- // todo: need to work out on-neutral tokens
341
- positive: $theme-dark-colors-on-positive,
342
- primary: $theme-dark-colors-on-primary,
343
- );
344
-
345
- // Custom typography
346
- $td-custom-typography: mat.define-typography-config(
347
- $button: mat.define-typography-level(14px, 14px, 400),
348
- );
349
- $td-custom-toolbar-typography: mat.define-typography-config(
350
- $headline-6: mat.define-typography-level(20px, 32px, 400),
351
- );
352
-
353
- // Create the theme object (a Sass map containing all of the palettes).
354
- $td-light-theme: mat.define-light-theme(
355
- (
356
- color: (
357
- primary: mat.define-palette($td-primary, '40', '30', '60'),
358
- secondary: mat.define-palette($td-secondary, '40', '30', '60'),
359
- accent: mat.define-palette($td-accent, '40', '30', '60'),
360
- warn: mat.define-palette($td-warn, '40', '30', '60'),
361
- on-secondary: $light-on-secondary,
362
- ),
363
- typography: $td-custom-typography,
364
- )
365
- );
366
- $td-light-theme: mat.private-deep-merge-all(
367
- $td-light-theme,
368
- (
369
- color: (
370
- background: $td-light-theme-background,
371
- foreground: $td-light-theme-foreground,
372
- ),
373
- )
374
- );
375
-
376
- $td-dark-theme: mat.define-dark-theme(
377
- (
378
- color: (
379
- primary: mat.define-palette($td-primary-dark, '80', '70', '90'),
380
- secondary: mat.define-palette($td-secondary-dark, '80', '70', '90'),
381
- accent: mat.define-palette($td-accent-dark, '80', '70', '90'),
382
- warn: mat.define-palette($td-warn-dark, '80', '70', '90'),
383
- on-secondary: $dark-on-secondary,
384
- ),
385
- typography: $td-custom-typography,
386
- )
387
- );
388
- $td-dark-theme: mat.private-deep-merge-all(
389
- $td-dark-theme,
390
- (
391
- color: (
392
- background: $td-dark-theme-background,
393
- foreground: $td-dark-theme-foreground,
394
- ),
395
- )
396
- );
397
-
398
- @mixin teradata-brand($theme) {
399
- $primary: map-get($theme, primary);
400
- $accent: map-get($theme, accent);
401
- $warn: map-get($theme, warn);
402
- $background: map-get(map-get($theme, color), background);
403
- $foreground: map-get($theme, foreground);
404
- $is-dark-theme: map-get($theme, is-dark);
405
- $accent-highlight: map-get($background, accent-highlight);
406
- $accent-highlight-hover: map-get($background, accent-highlight-hover);
407
- $on-primary: map-get($foreground, primary);
408
- $on-accent: map-get($foreground, accent);
409
-
410
- .mat-toolbar.mat-primary {
411
- --mat-toolbar-container-text-color: #{$on-primary};
412
- }
413
-
414
- :root {
415
- --mdc-list-list-item-leading-avatar-color: #{map-get(
416
- $background,
417
- disabled-button
418
- )};
419
- }
420
-
421
- // Logo alignment
422
- .mat-icon.mat-icon-logo {
423
- fill: $teradata-orange-500;
424
- position: relative;
425
- top: -2px;
426
-
427
- @if $is-dark-theme {
428
- fill: #ffffff;
429
- }
430
- }
431
- // Spacing before logo in main toolbar
432
- .mat-toolbar {
433
- .mdc-icon-button + .mat-icon-logo,
434
- .mdc-icon-button + span > .mat-icon-logo {
435
- margin-left: 10px;
436
- }
437
-
438
- .mat-icon-logo {
439
- margin-right: 16px;
440
- }
441
- }
442
- // Logo in card title alignment
443
- .mat-card-title {
444
- .mat-icon-logo {
445
- margin-right: 8px;
446
- }
447
- }
448
-
449
- // Apply theme for this app
450
- body::after {
451
- content: '';
452
- position: absolute;
453
- top: 0;
454
- height: 2px;
455
- width: 100%;
456
- z-index: 999;
457
- background-color: mat-color($accent);
458
- }
459
-
460
- // Active icon color in list nav
461
- .mat-drawer {
462
- mat-nav-list {
463
- .mat-list-item {
464
- &.active {
465
- font-weight: bold;
466
- color: $on-accent;
467
-
468
- .mat-icon.mat-list-avatar {
469
- background-color: mat-color($accent);
470
- color: mat-color($accent);
471
- fill: mat-color($accent);
472
- }
473
-
474
- .mat-icon.mat-list-icon {
475
- color: mat-color($accent);
476
- fill: mat-color($accent);
477
- }
478
- }
479
- }
480
-
481
- &[dense] {
482
- .mat-icon.mat-list-avatar {
483
- min-width: 36px;
484
- }
485
- }
486
- }
487
- }
488
-
489
- // Active icon color in list nav
490
- mat-nav-list {
491
- [mat-list-item].active {
492
- mat-icon[matListItemAvatar] {
493
- background-color: mat-color($accent);
494
- color: mat-color($accent);
495
- }
496
-
497
- mat-icon[matListIcon] {
498
- color: mat-color($accent);
499
- }
500
- }
501
- }
502
-
503
- // Active side nav
504
- .doc-nav a.doc-nav-link {
505
- &.active::before {
506
- background-color: mat-color($accent);
507
- }
508
- &:hover {
509
- &::before {
510
- background-color: mat-color($accent);
511
- }
512
- }
513
- }
514
-
515
- // Links
516
- a {
517
- text-decoration: none;
518
- color: mat-color($accent);
519
- }
520
-
521
- .tc-td-secondary {
522
- color: map-get($foreground, secondary-text);
523
- }
524
- }