easy-mat-ui 0.0.6 → 1.0.1

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 (55) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +361 -63
  3. package/fesm2022/easy-mat-ui.mjs +2874 -0
  4. package/fesm2022/easy-mat-ui.mjs.map +1 -0
  5. package/index.d.ts +1136 -0
  6. package/package.json +68 -22
  7. package/page-generator/blocks.js +155 -0
  8. package/page-generator/catalog.js +132 -0
  9. package/page-generator/cli/main.js +314 -0
  10. package/page-generator/cli/project.js +252 -0
  11. package/page-generator/context.js +108 -0
  12. package/page-generator/generate.js +182 -0
  13. package/page-generator/index.js +33 -0
  14. package/page-generator/naming.js +53 -0
  15. package/page-generator/table.js +310 -0
  16. package/page-generator/types.js +6 -0
  17. package/styles/styles/_backgrounds.scss +39 -0
  18. package/{src/lib → styles}/styles/_buttons.scss +90 -90
  19. package/styles/styles/_colors.scss +197 -0
  20. package/{src/lib → styles}/styles/_effects.scss +44 -44
  21. package/{src/lib → styles}/styles/_material-overrides.scss +106 -87
  22. package/{src/lib → styles}/styles/_spacing.scss +68 -68
  23. package/styles/styles/_tables.scss +569 -0
  24. package/{src/lib → styles}/styles/_typography.scss +100 -105
  25. package/{src/lib → styles}/styles.scss +29 -30
  26. package/ng-package.json +0 -19
  27. package/src/lib/easy-mat-ui.component.spec.ts +0 -23
  28. package/src/lib/easy-mat-ui.component.ts +0 -16
  29. package/src/lib/easy-mat-ui.service.spec.ts +0 -16
  30. package/src/lib/easy-mat-ui.service.ts +0 -9
  31. package/src/lib/easy-multi-select/easy-multi-select.css +0 -102
  32. package/src/lib/easy-multi-select/easy-multi-select.html +0 -51
  33. package/src/lib/easy-multi-select/easy-multi-select.spec.ts +0 -23
  34. package/src/lib/easy-multi-select/easy-multi-select.ts +0 -181
  35. package/src/lib/easy-table/easy-table.component.css +0 -117
  36. package/src/lib/easy-table/easy-table.component.html +0 -221
  37. package/src/lib/easy-table/easy-table.component.spec.ts +0 -23
  38. package/src/lib/easy-table/easy-table.component.ts +0 -568
  39. package/src/lib/model/dictionary.model.ts +0 -4
  40. package/src/lib/model/mat-column-typed.model.ts +0 -41
  41. package/src/lib/model/mat-column.model.ts +0 -35
  42. package/src/lib/model/tuple.model.ts +0 -8
  43. package/src/lib/shared/table-toolbar/table-toolbar.css +0 -26
  44. package/src/lib/shared/table-toolbar/table-toolbar.html +0 -80
  45. package/src/lib/shared/table-toolbar/table-toolbar.ts +0 -130
  46. package/src/lib/styles/_backgrounds.scss +0 -39
  47. package/src/lib/styles/_colors.scss +0 -67
  48. package/src/lib/styles/_tables.scss +0 -71
  49. package/src/lib/utils/enums.ts +0 -49
  50. package/src/lib/utils/matTabCommon.ts +0 -59
  51. package/src/lib/utils/utils.ts +0 -68
  52. package/src/public-api.ts +0 -8
  53. package/tsconfig.lib.json +0 -18
  54. package/tsconfig.lib.prod.json +0 -11
  55. package/tsconfig.spec.json +0 -15
@@ -1,68 +1,68 @@
1
- .mg-t-100 {
2
- margin-top: -100px;
3
- margin-bottom: -35px;
4
- }
5
-
6
- .mg-b-20 {
7
- margin-top: 20px;
8
- margin-bottom: 20px;
9
- }
10
-
11
- .mg-b-15 {
12
- margin-bottom: 15px;
13
- }
14
-
15
- .pd-l-r-0 {
16
- padding-left: 0;
17
- padding-right: 0;
18
- }
19
-
20
- .pd-0 {
21
- padding: 0 !important;
22
- }
23
-
24
- .pd-lr-40 {
25
- padding-left: 40px !important;
26
- padding-right: 40px !important;
27
- }
28
-
29
- .pd-r-1 {
30
- padding-right: 1px;
31
- }
32
-
33
- .pd-l-1 {
34
- padding-left: 1px;
35
- }
36
-
37
- .pd-t-l-5 {
38
- padding-top: 5px;
39
- padding-bottom: 5px;
40
- }
41
-
42
- .h-30 {
43
- height: 30px !important;
44
- }
45
-
46
- .h-35 {
47
- height: 35px !important;
48
- }
49
-
50
- .h-40 {
51
- height: 40px !important;
52
- }
53
-
54
- .h-45 {
55
- height: 45px !important;
56
- }
57
-
58
- .h-50 {
59
- height: 49px !important;
60
- }
61
-
62
- .h-55 {
63
- height: 50px !important;
64
- }
65
-
66
- .h-60 {
67
- height: 60px !important;
68
- }
1
+ .mg-t-100 {
2
+ margin-top: -100px;
3
+ margin-bottom: -35px;
4
+ }
5
+
6
+ .mg-b-20 {
7
+ margin-top: 20px;
8
+ margin-bottom: 20px;
9
+ }
10
+
11
+ .mg-b-15 {
12
+ margin-bottom: 15px;
13
+ }
14
+
15
+ .pd-l-r-0 {
16
+ padding-left: 0;
17
+ padding-right: 0;
18
+ }
19
+
20
+ .pd-0 {
21
+ padding: 0 !important;
22
+ }
23
+
24
+ .pd-lr-40 {
25
+ padding-left: 40px !important;
26
+ padding-right: 40px !important;
27
+ }
28
+
29
+ .pd-r-1 {
30
+ padding-right: 1px;
31
+ }
32
+
33
+ .pd-l-1 {
34
+ padding-left: 1px;
35
+ }
36
+
37
+ .pd-t-l-5 {
38
+ padding-top: 5px;
39
+ padding-bottom: 5px;
40
+ }
41
+
42
+ .h-30 {
43
+ height: 30px !important;
44
+ }
45
+
46
+ .h-35 {
47
+ height: 35px !important;
48
+ }
49
+
50
+ .h-40 {
51
+ height: 40px !important;
52
+ }
53
+
54
+ .h-45 {
55
+ height: 45px !important;
56
+ }
57
+
58
+ .h-50 {
59
+ height: 49px !important;
60
+ }
61
+
62
+ .h-55 {
63
+ height: 50px !important;
64
+ }
65
+
66
+ .h-60 {
67
+ height: 60px !important;
68
+ }
@@ -0,0 +1,569 @@
1
+ .mat-mdc-table {
2
+ width: 100% !important;
3
+ table-layout: auto !important;
4
+ background-color: var(--card-bg) !important;
5
+ color: var(--text-color) !important;
6
+ }
7
+
8
+ .table-responsive {
9
+ overflow-x: auto;
10
+ overflow-y: auto;
11
+ max-height: var(--easy-table-max-height, 75vh);
12
+ -webkit-overflow-scrolling: touch;
13
+ }
14
+
15
+ .mat-mdc-header-cell {
16
+ font-size: var(--table-header-size, 14px);
17
+ font-weight: 600;
18
+ letter-spacing: var(--table-header-spacing, normal);
19
+ text-transform: var(--table-header-transform, none);
20
+ color: var(--table-header-text, var(--text-color)) !important;
21
+ }
22
+
23
+ tr.mat-mdc-header-row {
24
+ height: 56px;
25
+ font-weight: 600;
26
+ background-color: var(--table-header-bg, var(--card-bg)) !important;
27
+ }
28
+
29
+ tr.mat-mdc-row,
30
+ tr.mat-mdc-footer-row {
31
+ height: 48px;
32
+ color: var(--text-color);
33
+ }
34
+
35
+ th.mat-mdc-header-cell,
36
+ td.mat-mdc-cell,
37
+ td.mat-mdc-footer-cell {
38
+ border-bottom: 1px solid var(--border-color);
39
+ color: var(--text-color) !important;
40
+ }
41
+
42
+ tr.mat-mdc-row:nth-child(odd),
43
+ .mat-mdc-row:nth-child(odd),
44
+ .gray {
45
+ background-color: var(--bg-gray) !important;
46
+ }
47
+
48
+ tr.mat-mdc-row:nth-child(even),
49
+ .mat-mdc-row:nth-child(even) {
50
+ background-color: var(--card-bg) !important;
51
+ }
52
+
53
+ td.mat-mdc-cell {
54
+ background-color: transparent !important;
55
+ }
56
+
57
+ mat-paginator {
58
+ background-color: var(--card-bg) !important;
59
+ color: var(--color-primary-blue-strong, var(--color-primary-blue)) !important;
60
+ }
61
+
62
+ .disable {
63
+ background-color: var(--bg-readonly) !important;
64
+ opacity: 0.5;
65
+ color: #a09e9e;
66
+ }
67
+
68
+ .selected-row {
69
+ background-color: var(--hover-color) !important;
70
+ box-shadow: 0px 5px 5px var(--card-shadow) !important;
71
+ font-weight: bold;
72
+ }
73
+
74
+ .mat-mdc-row:hover {
75
+ background-color: var(--hover-color) !important;
76
+
77
+ td.mat-mdc-cell {
78
+ background-color: var(--hover-color) !important;
79
+ }
80
+ }
81
+
82
+ .sticky-left {
83
+ position: sticky;
84
+ left: 0;
85
+ z-index: 10;
86
+ background-color: var(--card-bg) !important;
87
+ }
88
+
89
+ .sticky-right {
90
+ position: sticky;
91
+ right: 0;
92
+ z-index: 10;
93
+ background-color: var(--card-bg) !important;
94
+ }
95
+
96
+
97
+ .selected-row-green-bg td.mat-mdc-cell {
98
+ background-color: var(--row-selected-bg, #b8c9d2) !important;
99
+ font-weight: 600 !important;
100
+ transition: background-color 0.2s ease, border-color 0.2s ease;
101
+ }
102
+
103
+ .selected-row-green-bg td.mat-mdc-cell:first-child {
104
+ border-left: 4px solid var(--row-selected-border, #4a7c93) !important;
105
+ }
106
+
107
+ body.dark-theme .selected-row-green-bg td.mat-mdc-cell {
108
+ background-color: var(--row-selected-bg, #2c4a68) !important;
109
+ color: #f8fafc !important;
110
+ }
111
+
112
+ body.dark-theme {
113
+ tr.mat-mdc-row:nth-child(odd),
114
+ .mat-mdc-row:nth-child(odd) {
115
+ background-color: var(--bg-gray) !important;
116
+
117
+ td.mat-mdc-cell {
118
+ background-color: var(--bg-gray) !important;
119
+ }
120
+ }
121
+
122
+ tr.mat-mdc-row:nth-child(even),
123
+ .mat-mdc-row:nth-child(even) {
124
+ background-color: var(--card-bg) !important;
125
+
126
+ td.mat-mdc-cell {
127
+ background-color: var(--card-bg) !important;
128
+ }
129
+ }
130
+
131
+ tr.example-detail-row {
132
+ background-color: var(--card-bg) !important;
133
+
134
+ > td.mat-mdc-cell {
135
+ background-color: var(--card-bg) !important;
136
+ }
137
+ }
138
+ }
139
+
140
+ .mat-mdc-table {
141
+ table-layout: fixed;
142
+
143
+ td.cell-ellipsis {
144
+ max-width: 150px;
145
+ white-space: nowrap;
146
+ overflow: hidden;
147
+ text-overflow: ellipsis;
148
+ }
149
+ }
150
+
151
+
152
+ .mat-mdc-table {
153
+ th.mat-column-actions,
154
+ td.mat-column-actions {
155
+ /* Shrinks to its buttons: the data columns share all the remaining width. */
156
+ width: 1%;
157
+ min-width: var(--easy-actions-col-width, 132px);
158
+ white-space: nowrap;
159
+ overflow: visible;
160
+ position: sticky;
161
+ right: 0;
162
+ z-index: 5;
163
+ box-shadow: -4px 0 6px -4px var(--card-shadow, rgba(0, 0, 0, 0.15));
164
+ }
165
+
166
+ th.mat-column-actions {
167
+ z-index: 6;
168
+ background-color: var(--table-header-bg, var(--card-bg)) !important;
169
+ }
170
+
171
+ tr.mat-mdc-row:nth-child(odd) td.mat-column-actions {
172
+ background-color: var(--bg-gray) !important;
173
+ }
174
+
175
+ tr.mat-mdc-row:nth-child(even) td.mat-column-actions {
176
+ background-color: var(--card-bg) !important;
177
+ }
178
+
179
+ tr.mat-mdc-row:hover td.mat-column-actions {
180
+ background-color: var(--hover-color) !important;
181
+ }
182
+
183
+ tr.selected-row-green-bg td.mat-column-actions {
184
+ background-color: var(--row-selected-bg, #b8c9d2) !important;
185
+ }
186
+ }
187
+
188
+ body.dark-theme .mat-mdc-table tr.selected-row-green-bg td.mat-column-actions {
189
+ background-color: var(--row-selected-bg, #2c4a68) !important;
190
+ }
191
+
192
+
193
+ .action-link button.icon-only {
194
+ outline: none !important;
195
+ box-shadow: none !important;
196
+ -webkit-tap-highlight-color: transparent;
197
+
198
+ &:focus,
199
+ &:focus-visible,
200
+ &:active {
201
+ outline: none !important;
202
+ box-shadow: none !important;
203
+ }
204
+
205
+ .mat-mdc-button-persistent-ripple::before,
206
+ .mat-mdc-focus-indicator::before,
207
+ .mat-focus-indicator::before {
208
+ opacity: 0 !important;
209
+ background-color: transparent !important;
210
+ }
211
+
212
+ .mat-ripple-element {
213
+ display: none !important;
214
+ }
215
+
216
+ &:hover mat-icon {
217
+ filter: brightness(0.85);
218
+ }
219
+ }
220
+
221
+
222
+ .action-link button.mat-mdc-icon-button,
223
+ .action-link button.icon-only {
224
+ --mat-icon-button-state-layer-color: transparent;
225
+ --mat-icon-button-ripple-color: transparent;
226
+ --mdc-icon-button-state-layer-color: transparent;
227
+ --mat-icon-button-hover-state-layer-opacity: 0;
228
+ --mat-icon-button-focus-state-layer-opacity: 0;
229
+ --mat-icon-button-pressed-state-layer-opacity: 0;
230
+ background-color: transparent !important;
231
+
232
+ &.cdk-focused,
233
+ &.cdk-keyboard-focused,
234
+ &.cdk-mouse-focused,
235
+ &.cdk-program-focused,
236
+ &.mat-mdc-focus-indicator {
237
+ outline: none !important;
238
+ box-shadow: none !important;
239
+ background-color: transparent !important;
240
+ }
241
+
242
+ .mat-mdc-button-persistent-ripple,
243
+ .mat-mdc-button-persistent-ripple::before,
244
+ .mdc-icon-button__ripple,
245
+ .mdc-icon-button__ripple::before,
246
+ .mat-mdc-focus-indicator::before,
247
+ .mat-focus-indicator::before,
248
+ &.cdk-focused::before,
249
+ &.cdk-keyboard-focused::before,
250
+ &.cdk-program-focused::before,
251
+ &::before,
252
+ &::after {
253
+ display: none !important;
254
+ opacity: 0 !important;
255
+ background: transparent !important;
256
+ border: 0 !important;
257
+ box-shadow: none !important;
258
+ }
259
+ }
260
+
261
+
262
+ .table-responsive {
263
+ --easy-scroll-thumb: #b8c4cc;
264
+ --easy-scroll-thumb-hover: #8fa0ab;
265
+ --easy-scroll-track: transparent;
266
+ scrollbar-width: thin;
267
+ scrollbar-color: var(--easy-scroll-thumb) var(--easy-scroll-track);
268
+
269
+ &::-webkit-scrollbar {
270
+ height: 8px;
271
+ width: 8px;
272
+ }
273
+
274
+ &::-webkit-scrollbar-track {
275
+ background: var(--easy-scroll-track);
276
+ }
277
+
278
+ &::-webkit-scrollbar-thumb {
279
+ background-color: var(--easy-scroll-thumb);
280
+ border-radius: 8px;
281
+ border: 2px solid transparent;
282
+ background-clip: content-box;
283
+ }
284
+
285
+ &::-webkit-scrollbar-thumb:hover {
286
+ background-color: var(--easy-scroll-thumb-hover);
287
+ }
288
+ }
289
+
290
+ body.dark-theme .table-responsive {
291
+ --easy-scroll-thumb: #4b5563;
292
+ --easy-scroll-thumb-hover: #6b7a8c;
293
+ }
294
+
295
+ .mat-mdc-table tr.mat-mdc-row.selected-row-green-bg td.mat-mdc-cell.mat-column-actions {
296
+ background-color: var(--row-selected-bg, #b8c9d2) !important;
297
+ }
298
+
299
+ body.dark-theme .mat-mdc-table tr.mat-mdc-row.selected-row-green-bg td.mat-mdc-cell.mat-column-actions {
300
+ background-color: var(--row-selected-bg, #2c4a68) !important;
301
+ }
302
+
303
+
304
+ .mat-mdc-table tr.mat-mdc-row.selected-row-green-bg,
305
+ .mat-mdc-table tr.mat-mdc-row.selected-row-green-bg:hover {
306
+ background-color: var(--row-selected-bg, #b8c9d2) !important;
307
+
308
+ td.mat-mdc-cell,
309
+ td.mat-mdc-cell.mat-column-actions {
310
+ background-color: var(--row-selected-bg, #b8c9d2) !important;
311
+ }
312
+ }
313
+
314
+ body.dark-theme .mat-mdc-table tr.mat-mdc-row.selected-row-green-bg,
315
+ body.dark-theme .mat-mdc-table tr.mat-mdc-row.selected-row-green-bg:hover {
316
+ background-color: var(--row-selected-bg, #2c4a68) !important;
317
+
318
+ td.mat-mdc-cell,
319
+ td.mat-mdc-cell.mat-column-actions {
320
+ background-color: var(--row-selected-bg, #2c4a68) !important;
321
+ }
322
+ }
323
+
324
+
325
+ .example-element-detail .mat-mdc-table tr.mat-mdc-row.selected-row-green-bg,
326
+ .example-element-detail .mat-mdc-table tr.mat-mdc-row.selected-row-green-bg:hover {
327
+ background-color: #c5dccd !important;
328
+
329
+ td.mat-mdc-cell,
330
+ td.mat-mdc-cell.mat-column-actions {
331
+ background-color: #c5dccd !important;
332
+ }
333
+ }
334
+
335
+ body.dark-theme .example-element-detail .mat-mdc-table tr.mat-mdc-row.selected-row-green-bg,
336
+ body.dark-theme .example-element-detail .mat-mdc-table tr.mat-mdc-row.selected-row-green-bg:hover {
337
+ background-color: #8fad9d !important;
338
+
339
+ td.mat-mdc-cell,
340
+ td.mat-mdc-cell.mat-column-actions {
341
+ background-color: #8fad9d !important;
342
+ }
343
+ }
344
+
345
+
346
+ .table-responsive {
347
+ container-type: inline-size;
348
+ container-name: easy-table-scroller;
349
+ }
350
+
351
+ .example-element-detail > .card {
352
+ box-sizing: border-box;
353
+ position: sticky;
354
+ left: 5px;
355
+ flex: none;
356
+ margin-left: 0 !important;
357
+ margin-right: 0 !important;
358
+ width: calc(100cqw - 10px);
359
+ max-width: calc(100cqw - 10px);
360
+ min-width: 0;
361
+ }
362
+
363
+ .mat-mdc-table.mat-mdc-table tr.mat-mdc-row.zebra-odd:not(.selected-row-green-bg) {
364
+ &, > td.mat-mdc-cell {
365
+ background-color: var(--bg-gray) !important;
366
+ }
367
+ }
368
+
369
+ .mat-mdc-table.mat-mdc-table tr.mat-mdc-row.zebra-even:not(.selected-row-green-bg) {
370
+ &, > td.mat-mdc-cell {
371
+ background-color: var(--card-bg) !important;
372
+ }
373
+ }
374
+
375
+ .mat-mdc-table.mat-mdc-table tr.mat-mdc-row.zebra-odd:not(.selected-row-green-bg):hover,
376
+ .mat-mdc-table.mat-mdc-table tr.mat-mdc-row.zebra-even:not(.selected-row-green-bg):hover {
377
+ &, > td.mat-mdc-cell {
378
+ background-color: var(--hover-color) !important;
379
+ }
380
+ }
381
+
382
+ th.mat-sort-header.text-center {
383
+ ::ng-deep .mat-sort-header-container,
384
+ ::ng-deep .mat-sort-header-content {
385
+ justify-content: center;
386
+ width: 100%;
387
+ text-align: center;
388
+ }
389
+
390
+ ::ng-deep .mat-sort-header-container {
391
+ position: relative;
392
+ }
393
+
394
+ ::ng-deep .mat-sort-header-arrow {
395
+ position: absolute;
396
+ right: 0;
397
+ margin: 0;
398
+ }
399
+ }
400
+
401
+ th.mat-sort-header.text-end {
402
+ ::ng-deep .mat-sort-header-container,
403
+ ::ng-deep .mat-sort-header-content {
404
+ justify-content: flex-end;
405
+ }
406
+ }
407
+
408
+ th.mat-sort-header-disabled {
409
+ ::ng-deep .mat-sort-header-container,
410
+ ::ng-deep .mat-sort-header-content {
411
+ display: block;
412
+ width: 100%;
413
+ border-bottom: 0;
414
+ }
415
+
416
+ ::ng-deep .mat-sort-header-arrow {
417
+ display: none;
418
+ }
419
+ }
420
+
421
+ .mat-mdc-table th.nowrap-header .header-label {
422
+ white-space: nowrap;
423
+ }
424
+
425
+ /*
426
+ * Header filters that are switched off (column without enableFilter) are only hidden in the markup. They must not
427
+ * keep their width either: each one used to reserve 200px, which made every column at least that wide.
428
+ */
429
+ .mat-mdc-table th .header-filter lib-easy-multi-select.visibility-hidden {
430
+ display: none !important;
431
+ }
432
+
433
+ /*
434
+ * Narrow screens. The table asks for 130px per column plus 132px for the actions, which made the sticky actions
435
+ * column absorb the surplus width and cover the whole screen. Below 768px the table sizes its columns to their
436
+ * content, scrolls horizontally when needed, and the actions column shrinks to its buttons (still sticky).
437
+ */
438
+ @media (max-width: 768px) {
439
+ .mat-mdc-table.mat-mdc-table {
440
+ table-layout: auto !important;
441
+ width: max-content !important;
442
+ min-width: 100% !important;
443
+ }
444
+
445
+ .mat-mdc-table th.mat-column-actions,
446
+ .mat-mdc-table td.mat-column-actions {
447
+ width: 1% !important;
448
+ min-width: 0 !important;
449
+ max-width: none !important;
450
+ padding-left: 8px;
451
+ padding-right: 8px;
452
+ }
453
+
454
+ .mat-mdc-table th.mat-mdc-header-cell,
455
+ .mat-mdc-table td.mat-mdc-cell {
456
+ padding-left: 8px;
457
+ padding-right: 8px;
458
+ }
459
+
460
+ .mat-mdc-table td.mat-mdc-cell:not(.mat-column-actions) {
461
+ min-width: 64px;
462
+ }
463
+
464
+ /* The first title was cut at its right edge: leave room for it (and for the sort arrow). */
465
+ .mat-mdc-table th.mat-mdc-header-cell:first-child:not(.mat-column-actions):not(.text-center) {
466
+ padding-right: 20px;
467
+ }
468
+ }
469
+
470
+ /*
471
+ * Table header. Titles and column filters share one layout, so every column has the same structure and height
472
+ * whether it can be filtered or not (a column without a filter keeps an invisible placeholder of the same size).
473
+ * The header stays pinned at the top while the rows scroll.
474
+ */
475
+ .mat-mdc-table th.mat-mdc-header-cell {
476
+ position: sticky;
477
+ top: 0;
478
+ z-index: 4;
479
+ background-color: var(--table-header-bg, var(--card-bg));
480
+ }
481
+
482
+ .mat-mdc-table th.sticky-left,
483
+ .mat-mdc-table th.sticky-right,
484
+ .mat-mdc-table th.mat-column-actions {
485
+ top: 0;
486
+ }
487
+
488
+ .mat-mdc-table.has-filters th.mat-mdc-header-cell {
489
+ vertical-align: top;
490
+ padding-top: 10px;
491
+ padding-bottom: 10px;
492
+ }
493
+
494
+ .mat-mdc-table th .header-label {
495
+ display: flex;
496
+ align-items: center;
497
+ min-height: 24px; /* the tallest content (a header icon) sets the line for every column */
498
+ }
499
+
500
+ .mat-mdc-table th .header-filter {
501
+ height: 32px;
502
+ margin-top: 6px;
503
+ min-width: 0;
504
+ font-weight: 400;
505
+ text-transform: none;
506
+ letter-spacing: normal;
507
+ }
508
+
509
+ .mat-mdc-table th .header-filter.filter-off {
510
+ visibility: hidden;
511
+ }
512
+
513
+ .mat-mdc-table th .header-text-filter {
514
+ width: 100%;
515
+ min-width: 90px;
516
+ height: 32px;
517
+ padding: 0 10px;
518
+ border: 1px solid var(--input-border);
519
+ border-radius: var(--radius-sm);
520
+ background: var(--input-bg);
521
+ color: var(--input-text);
522
+ font: inherit;
523
+ font-size: 13px;
524
+ transition: border-color 0.15s, box-shadow 0.15s;
525
+ }
526
+
527
+ .mat-mdc-table th .header-text-filter::placeholder {
528
+ color: var(--input-placeholder);
529
+ }
530
+
531
+ .mat-mdc-table th .header-text-filter:hover {
532
+ border-color: var(--input-border-hover);
533
+ }
534
+
535
+ .mat-mdc-table th .header-text-filter:focus-visible {
536
+ outline: none;
537
+ border-color: var(--input-border-hover);
538
+ box-shadow: var(--focus-ring);
539
+ }
540
+
541
+ /*
542
+ * Alignment of one header title, chosen per column with MatColumnTyped.headerClass (text-start, text-center, text-end).
543
+ * The label is a flex row, so text-align alone has no effect on it. Only headers that set a headerClass are touched.
544
+ */
545
+ .mat-mdc-table th.has-header-class.text-center .header-label {
546
+ justify-content: center;
547
+ text-align: center;
548
+ }
549
+
550
+ .mat-mdc-table th.has-header-class.text-end .header-label {
551
+ justify-content: flex-end;
552
+ text-align: end;
553
+ }
554
+
555
+ .mat-mdc-table th.has-header-class.text-start .header-label {
556
+ justify-content: flex-start;
557
+ text-align: start;
558
+ }
559
+
560
+ /* Below 1024px the filters are folded away and opened from the filter button of the toolbar. */
561
+ @media (max-width: 1023.98px) {
562
+ .mat-mdc-table:not(.filters-open) th .header-filter {
563
+ display: none !important;
564
+ }
565
+
566
+ .mat-mdc-table.has-filters:not(.filters-open) th.mat-mdc-header-cell {
567
+ vertical-align: middle;
568
+ }
569
+ }