easy-mat-ui 0.0.7 → 1.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.
- package/LICENSE +21 -0
- package/README.md +482 -63
- package/fesm2022/easy-mat-ui.mjs +3724 -564
- package/fesm2022/easy-mat-ui.mjs.map +1 -1
- package/index.d.ts +1221 -55
- package/package.json +59 -22
- package/page-generator/blocks.js +155 -0
- package/page-generator/catalog.js +132 -0
- package/page-generator/cli/main.js +314 -0
- package/page-generator/cli/project.js +252 -0
- package/page-generator/context.js +108 -0
- package/page-generator/generate.js +182 -0
- package/page-generator/index.js +33 -0
- package/page-generator/naming.js +53 -0
- package/page-generator/table.js +310 -0
- package/page-generator/types.js +6 -0
- package/styles/styles/_backgrounds.scss +39 -0
- package/styles/styles/_buttons.scss +90 -0
- package/styles/styles/_colors.scss +197 -0
- package/styles/styles/_effects.scss +44 -0
- package/styles/styles/_material-overrides.scss +106 -0
- package/styles/styles/_spacing.scss +68 -0
- package/styles/styles/_tables.scss +569 -0
- package/styles/styles/_typography.scss +100 -0
- package/styles/styles.scss +29 -0
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
.hover {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.no-border {
|
|
6
|
+
border: transparent;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.uppercase {
|
|
10
|
+
text-transform: uppercase;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.tab-space {
|
|
14
|
+
padding: 0 0 50px 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.xx-large,
|
|
18
|
+
.x-large {
|
|
19
|
+
font-size: xx-large !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.xx-small {
|
|
23
|
+
font-size: xx-small !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.x-small {
|
|
27
|
+
font-size: x-small !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.small {
|
|
31
|
+
font-size: small !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.required {
|
|
35
|
+
color: #f44336;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.zoom_in {
|
|
39
|
+
color: #00bcd4 !important;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.zoom_out {
|
|
43
|
+
color: #ffb804 !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.zoom_out, .zoom_in {
|
|
47
|
+
font-size: 1.6em !important;
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.isReadOnly {
|
|
52
|
+
color: #4e656f;
|
|
53
|
+
font-weight: 100 !important;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.shadow-5 {
|
|
57
|
+
text-shadow: 0 5px 5px #555555;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.shadow-title {
|
|
61
|
+
text-shadow: 0 10px 10px #c2c0c0;
|
|
62
|
+
color: #5a0023;
|
|
63
|
+
font-weight: 500;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.shadow-lg {
|
|
67
|
+
font-size: x-large !important;
|
|
68
|
+
text-shadow: 0 5px 5px #c2c0c0;
|
|
69
|
+
color: #5a0023 !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.card-pricing h6 {
|
|
73
|
+
color: #5a0023;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.x-small-column {
|
|
77
|
+
width: 32px !important;
|
|
78
|
+
min-width: 32px !important;
|
|
79
|
+
max-width: 32px !important;
|
|
80
|
+
flex: 0 0 32px !important;
|
|
81
|
+
white-space: nowrap;
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
text-overflow: clip;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.small-column {
|
|
87
|
+
min-width: 56px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.medium-column {
|
|
91
|
+
min-width: 100px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.large-column {
|
|
95
|
+
min-width: 150px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.x-large-column {
|
|
99
|
+
min-width: 200px;
|
|
100
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@use "bootstrap/scss/bootstrap";
|
|
2
|
+
|
|
3
|
+
@use './styles/colors' as *;
|
|
4
|
+
@use './styles/backgrounds' as *;
|
|
5
|
+
@use './styles/buttons' as *;
|
|
6
|
+
@use './styles/tables' as *;
|
|
7
|
+
@use './styles/typography' as *;
|
|
8
|
+
@use './styles/spacing' as *;
|
|
9
|
+
@use './styles/effects' as *;
|
|
10
|
+
@use './styles/material-overrides' as *;
|
|
11
|
+
|
|
12
|
+
@media (max-width: 768px) {
|
|
13
|
+
.mat-header-cell, .mat-cell {
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
padding: 0.25rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.action-link button {
|
|
19
|
+
padding: 0.25rem !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.btn-mini-fab mat-icon {
|
|
23
|
+
font-size: 18px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
mat-form-field {
|
|
27
|
+
width: 100% !important;
|
|
28
|
+
}
|
|
29
|
+
}
|