@natec/mef-dev-ui-kit 22.0.298 → 22.0.303

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.
@@ -1,768 +0,0 @@
1
- @use '../../vars.scss' as *;
2
- @use '../../fonts.scss' as *;
3
- @use 'sass:color' as color;
4
-
5
- // MD Datatable Theme
6
- // Clean, minimalist Material Design inspired theme for ngx-datatable
7
- // Works on white, grey and dark backgrounds
8
- // --------------------------------------------------
9
-
10
- .md-datatable-style {
11
- box-sizing: border-box;
12
- font-size: 13px;
13
- font-family: $base-font-family;
14
-
15
- // Remove default shadows and borders
16
- box-shadow: none !important;
17
- border: none;
18
-
19
- * {
20
- box-sizing: border-box;
21
- }
22
-
23
- // Header styling
24
- .datatable-header {
25
- background: $Light-Gray-2;
26
- border: none;
27
- box-shadow: none;
28
- overflow: visible;
29
-
30
- height: 46px !important;
31
-
32
- .datatable-header-inner {
33
- padding: 0;
34
- }
35
-
36
- .datatable-header-cell {
37
- padding: 13px 8px 10px 8px;
38
-
39
- background: transparent;
40
-
41
- &:not(:first-child) {
42
- border-left: 2px solid $White;
43
- }
44
-
45
- font-family: $font-header;
46
- font-size: 14px;
47
- font-weight: 300;
48
- text-transform: uppercase;
49
- letter-spacing: 0.5px;
50
- color: $Dark-Gray-2;
51
- vertical-align: middle;
52
-
53
- .datatable-header-cell-template-wrap {
54
- display: flex;
55
- align-items: center;
56
- height: 100%;
57
- position: relative;
58
- }
59
-
60
- .datatable-header-cell-label {
61
- line-height: 1.2;
62
- flex: 1;
63
- }
64
-
65
- // Sortable columns
66
- &.sortable {
67
- cursor: pointer;
68
- user-select: none;
69
-
70
- .datatable-header-cell-template-wrap {
71
- padding-right: 20px;
72
- }
73
-
74
- .sort-btn {
75
- display: inline-block;
76
- position: absolute;
77
- right: 0;
78
- width: 16px;
79
- height: 16px;
80
- color: $Light-Gray-1;
81
-
82
- &::after {
83
- // content: '▼';
84
- font-size: 10px;
85
- position: absolute;
86
- right: 0;
87
- top: 50%;
88
- transform: translateY(-50%);
89
- transition: transform 0.2s ease;
90
- }
91
- }
92
-
93
- &.sort-active .sort-btn {
94
- color: $Dark-Gray-2;
95
- }
96
-
97
- &.sort-asc .sort-btn::after {
98
- transform: translateY(-50%) rotate(180deg);
99
- }
100
-
101
- &.sort-desc .sort-btn::after {
102
- transform: translateY(-50%);
103
- }
104
-
105
- &:hover .sort-btn {
106
- color: $Dark-Gray-2;
107
- }
108
- }
109
- }
110
- }
111
-
112
- // Body styling - NO zebra by default, all rows white
113
- .datatable-body {
114
- overflow-x: auto;
115
- overflow-y: auto;
116
-
117
- .datatable-row-wrapper {
118
- border: none;
119
- }
120
-
121
- .datatable-body-row {
122
- border: none;
123
-
124
- &:last-child {
125
- border-bottom: none;
126
- }
127
-
128
- .datatable-body-cell {
129
- font-family: 'Open Sans', Arial, sans-serif;
130
- padding: 8px;
131
- font-size: 13px;
132
- line-height: 1;
133
- color: $Black-Color;
134
- background: $White;
135
- vertical-align: middle;
136
- border: none;
137
-
138
- .datatable-body-cell-label {
139
- display: block;
140
- width: 100%;
141
- }
142
- }
143
-
144
- // Hover effect
145
- &:hover .datatable-body-cell {
146
- background: color.mix($Light-Gray-2, $White, 30%) !important;
147
- }
148
-
149
- // Active/selected row
150
- &.active .datatable-body-cell {
151
- background: color.mix($Link, $White, 10%) !important;
152
- }
153
- }
154
-
155
- // Row detail expansion
156
- .datatable-row-detail {
157
- background: $White;
158
- padding: 16px 20px;
159
- overflow: visible;
160
- }
161
- }
162
-
163
- // Footer styling
164
- .datatable-footer {
165
- background: $Light-Gray-2;
166
- border-top: 1px solid rgba(0, 0, 0, 0.08);
167
- padding: 8px 0px 8px 8px;
168
- font-size: 12px;
169
- color: $Dark-Gray-2;
170
- display: flex;
171
- align-items: center;
172
- justify-content: space-between;
173
-
174
- .page-count {
175
- line-height: 1.5;
176
- padding: 0;
177
- }
178
-
179
- .datatable-pager {
180
- ul {
181
- li {
182
- &.disabled a {
183
- opacity: 0.3;
184
- cursor: not-allowed;
185
- pointer-events: none;
186
- }
187
-
188
- &.active a {
189
- background: $Dark-Gray-2;
190
- color: $White;
191
- font-weight: 600;
192
- }
193
-
194
- a {
195
- min-width: 24px;
196
- height: 24px;
197
- padding: 0 10px;
198
- border-radius: 4px;
199
- color: $Dark-Gray-2;
200
- text-decoration: none;
201
- font-size: 12px;
202
- transition: background-color 0.2s ease;
203
-
204
- &:hover:not(.disabled) {
205
- // background: color.mix($Light-Gray-1, $White, 20%);
206
- color: $Red;
207
- }
208
- }
209
- }
210
- }
211
-
212
- .datatable-icon-left::before,
213
- .datatable-icon-right::before,
214
- .datatable-icon-skip::before,
215
- .datatable-icon-prev::before {
216
- font-size: 14px;
217
- }
218
- }
219
- }
220
-
221
- // Group header styling
222
- .datatable-group-header {
223
- background: color.mix($Light-Gray-2, $White, 50%);
224
- border-bottom: 1px solid rgba(0, 0, 0, 0.08);
225
- padding: 12px 20px;
226
- font-weight: 600;
227
- font-size: 13px;
228
- color: $Dark-Gray-1;
229
- }
230
-
231
- // Selection checkbox styling
232
- .datatable-checkbox {
233
- input[type='checkbox'] {
234
- width: 16px;
235
- height: 16px;
236
- cursor: pointer;
237
- }
238
- }
239
-
240
- // Summary row styling
241
- .datatable-summary-row {
242
- background: $Light-Gray-2;
243
- border-top: 2px solid $Dark-Gray-2;
244
-
245
- .datatable-body-cell {
246
- background: $Light-Gray-2;
247
- font-weight: 600;
248
- padding: 12px 20px;
249
- }
250
- }
251
-
252
- // Responsive adjustments
253
- @media (max-width: 768px) {
254
- font-size: 12px;
255
-
256
- .datatable-header .datatable-header-cell {
257
- padding: 10px 12px;
258
- font-size: 10px;
259
- }
260
-
261
- .datatable-body .datatable-body-row .datatable-body-cell {
262
- padding: 12px;
263
- font-size: 12px;
264
- }
265
-
266
- .datatable-footer {
267
- flex-direction: column;
268
- gap: 8px;
269
- align-items: flex-start;
270
- padding: 8px 12px;
271
- }
272
- }
273
- }
274
-
275
- // Modifier: Enable zebra striping with white even rows
276
- .md-datatable-style.zebra-white {
277
- .datatable-header {
278
- background: $White;
279
- .datatable-header-cell {
280
- &:not(:first-child) {
281
- border-left: 2px solid $Light-Gray-3;
282
- }
283
- }
284
- }
285
- .datatable-body {
286
- .datatable-body-row {
287
- // Odd rows transparent (inherit page background)
288
- &.datatable-row-even .datatable-body-cell {
289
- background: transparent;
290
- }
291
-
292
- // Even rows white
293
- &.datatable-row-odd .datatable-body-cell {
294
- background: $White;
295
- }
296
- }
297
-
298
- .datatable-row-detail {
299
- background: $White;
300
- }
301
- }
302
- .datatable-footer {
303
- background: $White;
304
- }
305
- }
306
-
307
- // Modifier: Enable zebra striping with grey even rows
308
- .md-datatable-style.zebra-grey {
309
- .datatable-body {
310
- .datatable-body-row {
311
- // Odd rows transparent (inherit page background)
312
- &.datatable-row-even .datatable-body-cell {
313
- background: transparent;
314
- }
315
-
316
- // Even rows light grey
317
- &.datatable-row-odd .datatable-body-cell {
318
- background: $Light-Gray-2;
319
- }
320
- }
321
-
322
- .datatable-row-detail {
323
- background: $Light-Gray-2;
324
- }
325
- }
326
- }
327
-
328
- // ═══════════════════════════════════════════════════════════════════════════
329
- // MD Cards Grid Table Style
330
- // Makes md-grid look like ngx-datatable
331
- // ═══════════════════════════════════════════════════════════════════════════
332
- //
333
- // USAGE:
334
- // <md-grid class="md-grid-table" ...>
335
- // <md-grid class="md-grid-table zebra-white" ...>
336
- // <md-grid class="md-grid-table zebra-grey" ...>
337
- //
338
- // ═══════════════════════════════════════════════════════════════════════════
339
-
340
- .md-grid-table {
341
- // ═════════════════════════════════════════════════════════════════════════
342
- // HOST STYLES
343
- // ═════════════════════════════════════════════════════════════════════════
344
-
345
- &.md-grid,
346
- .md-grid {
347
- @extend .body-6;
348
- background: tansparent;
349
- border: none;
350
- border-radius: 0;
351
- box-shadow: none;
352
- }
353
-
354
- // ═════════════════════════════════════════════════════════════════════════
355
- // HEADER
356
- // ═════════════════════════════════════════════════════════════════════════
357
-
358
- .md-grid-header {
359
- background: $Light-Gray-2;
360
- border: none;
361
- box-shadow: none;
362
- }
363
-
364
- .md-grid-header-inner {
365
- padding: 0;
366
- width: 100%;
367
- }
368
-
369
- .md-grid-header-cell {
370
- padding: 13px 8px 10px 8px;
371
- background: transparent;
372
- font-family: $font-header;
373
- font-size: 14px;
374
- font-weight: 300;
375
- text-transform: uppercase;
376
- letter-spacing: 0.5px;
377
- color: $Dark-Gray-2;
378
- vertical-align: middle;
379
-
380
- &:not(:first-child) {
381
- border-left: 2px solid $White;
382
- }
383
-
384
- &.sortable {
385
- cursor: pointer;
386
- user-select: none;
387
-
388
- &:hover {
389
- background: transparent;
390
- }
391
- }
392
-
393
- &.sort-active {
394
- color: $Dark-Gray-2;
395
- }
396
- }
397
-
398
- .md-grid-header-cell-label {
399
- line-height: 1.2;
400
- }
401
-
402
- // ═════════════════════════════════════════════════════════════════════════
403
- // SORT ICONS
404
- // ═════════════════════════════════════════════════════════════════════════
405
-
406
- .md-grid-sort-icon {
407
- color: $Light-Gray-1;
408
-
409
- &.md-grid-sort-asc,
410
- &.md-grid-sort-desc {
411
- color: $Dark-Gray-2;
412
- }
413
- }
414
-
415
- // ═════════════════════════════════════════════════════════════════════════
416
- // BODY
417
- // ═════════════════════════════════════════════════════════════════════════
418
-
419
- .md-grid-body {
420
- padding: 0;
421
- background: transparent;
422
- gap: 0 !important;
423
-
424
- &::-webkit-scrollbar-corner {
425
- background: transparent;
426
- }
427
- }
428
-
429
- .md-grid-group-rows {
430
- gap: 0 !important;
431
- }
432
-
433
- // ═════════════════════════════════════════════════════════════════════════
434
- // CARD (ROW) - Table row style
435
- // ═════════════════════════════════════════════════════════════════════════
436
-
437
- .md-grid-card {
438
- background: $White;
439
- border: none;
440
- border-radius: 0;
441
- box-shadow: none;
442
-
443
- // Hover effect same as ngx-datatable
444
- &:hover {
445
- background: color.mix($Light-Gray-2, $White, 30%);
446
- box-shadow: none;
447
- transform: none;
448
- }
449
-
450
- // Active/selected row
451
- &.md-grid-card-editing {
452
- background: color.mix($Link, $White, 10%) !important;
453
- border: none;
454
- box-shadow: none;
455
- }
456
- }
457
-
458
- // ═════════════════════════════════════════════════════════════════════════
459
- // CELL
460
- // ═════════════════════════════════════════════════════════════════════════
461
-
462
- .md-grid-cell {
463
- padding: 8px;
464
- @extend .body-6;
465
- color: $Black-Color;
466
- background: transparent;
467
- max-height: 30px;
468
- border: none;
469
- }
470
-
471
- .md-grid-cell-value {
472
- display: block;
473
- width: 100%;
474
- }
475
-
476
- // ═════════════════════════════════════════════════════════════════════════
477
- // ACTIONS CELL
478
- // ═════════════════════════════════════════════════════════════════════════
479
-
480
- .md-grid-actions-cell {
481
- border-left: none;
482
- background: transparent;
483
- }
484
-
485
- // ═════════════════════════════════════════════════════════════════════════
486
- // FOOTER / PAGINATION
487
- // ═════════════════════════════════════════════════════════════════════════
488
-
489
- .md-grid-footer {
490
- background: $Light-Gray-2;
491
- border-top: 1px solid rgba(0, 0, 0, 0.08);
492
- padding: 8px;
493
- font-size: 12px;
494
- color: $Dark-Gray-2;
495
- }
496
-
497
- .md-grid-pager {
498
- gap: 2px;
499
- }
500
-
501
- .md-grid-pager-btn {
502
- min-width: 24px;
503
- height: 24px;
504
- padding: 0 10px;
505
- border-radius: 4px;
506
- border: none;
507
- background: transparent;
508
- color: $Dark-Gray-2;
509
- font-size: 12px;
510
-
511
- &:hover:not(:disabled) {
512
- background: transparent;
513
- color: $Red;
514
- }
515
-
516
- &:disabled {
517
- opacity: 0.3;
518
- cursor: not-allowed;
519
- }
520
- }
521
-
522
- .md-grid-pager-info {
523
- padding: 0 8px;
524
- font-weight: 400;
525
- }
526
-
527
- // ═════════════════════════════════════════════════════════════════════════
528
- // GROUP HEADER
529
- // ═════════════════════════════════════════════════════════════════════════
530
-
531
- .md-grid-group-header {
532
- background: color.mix($Light-Gray-2, $White, 50%);
533
- border-bottom: 1px solid rgba(0, 0, 0, 0.08);
534
- padding: 12px 20px;
535
- margin-bottom: 0;
536
- border-radius: 0;
537
- font-weight: 600;
538
- font-size: 13px;
539
- color: $Dark-Gray-1;
540
- }
541
-
542
- // ═════════════════════════════════════════════════════════════════════════
543
- // RESPONSIVE
544
- // ═════════════════════════════════════════════════════════════════════════
545
-
546
- @media (max-width: 768px) {
547
- font-size: 12px;
548
-
549
- .md-grid-footer {
550
- flex-direction: column;
551
- gap: 8px;
552
- align-items: flex-start;
553
- padding: 8px 12px;
554
- }
555
- }
556
-
557
- @media (max-width: 540px) {
558
- .md-grid-body {
559
- padding: 6px;
560
- }
561
-
562
- .horizontal-scroll-container,
563
- .md-grid-group-rows {
564
- display: flex;
565
- flex-direction: column;
566
- gap: 10px !important;
567
- }
568
-
569
- .md-grid-card {
570
- border-radius: 8px;
571
- }
572
-
573
- .md-grid-cell {
574
- padding: 7px 12px;
575
- max-height: none;
576
- }
577
-
578
- .md-grid-actions-cell,
579
- .md-grid-column-actions-cell {
580
- padding: 7px 4px;
581
- }
582
-
583
- .md-grid-first-action-cell,
584
- .md-grid-row-actions-cell {
585
- margin-left: auto;
586
- }
587
-
588
- .md-grid-last-action-cell,
589
- .md-grid-row-actions-cell {
590
- padding-right: 16px;
591
- }
592
- }
593
- }
594
-
595
- // ═════════════════════════════════════════════════════════════════════════
596
- // Modifier: zebra-white (white header, zebra rows)
597
- // ═════════════════════════════════════════════════════════════════════════
598
-
599
- .md-grid-table.zebra-white {
600
- .md-grid-header {
601
- background: $White;
602
- }
603
-
604
- .md-grid-header-cell {
605
- &:not(:first-child) {
606
- border-left: 2px solid $Light-Gray-3;
607
- }
608
- }
609
-
610
- .md-grid-card {
611
- &:nth-child(odd) {
612
- background: transparent;
613
- }
614
-
615
- &:nth-child(even) {
616
- background: $White;
617
- }
618
-
619
- &:hover {
620
- background: color.mix($Light-Gray-2, $White, 30%) !important;
621
- }
622
- }
623
-
624
- .md-grid-group-rows {
625
- .md-grid-card {
626
- &:nth-child(odd) {
627
- background: transparent;
628
- }
629
-
630
- &:nth-child(even) {
631
- background: $White;
632
- }
633
-
634
- &:hover {
635
- background: color.mix($Light-Gray-2, $White, 30%) !important;
636
- }
637
- }
638
- }
639
-
640
- .md-grid-footer {
641
- background: $White;
642
- }
643
- }
644
-
645
- // ═════════════════════════════════════════════════════════════════════════
646
- // Modifier: zebra-grey (grey header, zebra with grey)
647
- // Same as md-datatable-style.zebra-grey
648
- // ═════════════════════════════════════════════════════════════════════════
649
-
650
- .md-grid-table.zebra-grey {
651
- .md-grid-card {
652
- // White rows (odd)
653
- &:nth-child(odd) {
654
- background: $White;
655
-
656
- &:hover {
657
- background: color.mix($Light-Gray-2, $White, 30%) !important;
658
- }
659
- }
660
-
661
- // Grey rows (even)
662
- &:nth-child(even) {
663
- background: $Light-Gray-2;
664
-
665
- &:hover {
666
- background: color.mix($Light-Gray-2, $White, 30%) !important;
667
- }
668
- }
669
- }
670
-
671
- .md-grid-group-rows {
672
- .md-grid-card {
673
- &:nth-child(odd) {
674
- background: $White;
675
-
676
- &:hover {
677
- background: color.mix($Light-Gray-2, $White, 30%) !important;
678
- }
679
- }
680
-
681
- &:nth-child(even) {
682
- background: $Light-Gray-2;
683
-
684
- &:hover {
685
- background: color.mix($Light-Gray-2, $White, 30%) !important;
686
- }
687
- }
688
- }
689
- }
690
- }
691
-
692
- // Dark background variant
693
- .bg-dark .md-datatable-style,
694
- .dark-mode .md-datatable-style,
695
- .md-datatable-style.dark-theme {
696
- .datatable-header {
697
- background: color.mix($Dark-Gray-2, $Black-Color, 90%);
698
-
699
- .datatable-header-cell {
700
- background: color.mix($Dark-Gray-2, $Black-Color, 90%);
701
- color: $White;
702
- border-bottom-color: rgba(255, 255, 255, 0.1);
703
- }
704
- }
705
-
706
- .datatable-body {
707
- .datatable-body-row {
708
- border-bottom-color: rgba(255, 255, 255, 0.08);
709
-
710
- .datatable-body-cell {
711
- background: color.mix($Dark-Gray-1, $Black-Color, 85%);
712
- color: $White;
713
- }
714
-
715
- &:hover .datatable-body-cell {
716
- background: color.mix($Dark-Gray-2, $Black-Color, 75%) !important;
717
- }
718
-
719
- &.active .datatable-body-cell {
720
- background: color.mix($Link-on-dark, $Black-Color, 30%) !important;
721
- }
722
- }
723
-
724
- .datatable-row-detail {
725
- background: color.mix($Dark-Gray-1, $Black-Color, 85%);
726
- border-bottom-color: rgba(255, 255, 255, 0.08);
727
- color: $White;
728
- }
729
- }
730
-
731
- .datatable-footer {
732
- background: color.mix($Dark-Gray-2, $Black-Color, 90%);
733
- border-top-color: rgba(255, 255, 255, 0.1);
734
- color: $White;
735
- height: 25px !important;
736
- }
737
-
738
- .datatable-group-header {
739
- background: color.mix($Dark-Gray-2, $Black-Color, 80%);
740
- color: $White;
741
- border-bottom-color: rgba(255, 255, 255, 0.1);
742
- }
743
-
744
- .datatable-summary-row {
745
- background: color.mix($Dark-Gray-2, $Black-Color, 90%);
746
-
747
- .datatable-body-cell {
748
- background: color.mix($Dark-Gray-2, $Black-Color, 90%);
749
- color: $White;
750
- }
751
- }
752
-
753
- // Zebra for dark theme
754
- &.zebra-white,
755
- &.zebra-grey {
756
- .datatable-body {
757
- .datatable-body-row {
758
- &.datatable-row-odd .datatable-body-cell {
759
- background: transparent; // Uses dark page background
760
- }
761
-
762
- &.datatable-row-even .datatable-body-cell {
763
- background: color.mix($Dark-Gray-1, $Black-Color, 85%);
764
- }
765
- }
766
- }
767
- }
768
- }