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

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,333 +1,8 @@
1
- @use '../../vars.scss' as *;
2
- @use '../../fonts.scss' as *;
1
+ @use '../../styles/vars.scss' as *;
3
2
  @use 'sass:color' as color;
4
3
 
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
4
  // ═══════════════════════════════════════════════════════════════════════════
329
- // MD Cards Grid Table Style
330
- // Makes md-grid look like ngx-datatable
5
+ // MD Grid Table Style
331
6
  // ═══════════════════════════════════════════════════════════════════════════
332
7
  //
333
8
  // USAGE:
@@ -344,8 +19,11 @@
344
19
 
345
20
  &.md-grid,
346
21
  .md-grid {
347
- @extend .body-6;
348
- background: tansparent;
22
+ font-family: $base-font-family;
23
+ font-size: 13px;
24
+ font-weight: 400;
25
+ line-height: 21px;
26
+ background: transparent;
349
27
  border: none;
350
28
  border-radius: 0;
351
29
  box-shadow: none;
@@ -440,7 +118,7 @@
440
118
  border-radius: 0;
441
119
  box-shadow: none;
442
120
 
443
- // Hover effect same as ngx-datatable
121
+ // Hover effect for dense table rows
444
122
  &:hover {
445
123
  background: color.mix($Light-Gray-2, $White, 30%);
446
124
  box-shadow: none;
@@ -461,7 +139,10 @@
461
139
 
462
140
  .md-grid-cell {
463
141
  padding: 8px;
464
- @extend .body-6;
142
+ font-family: $base-font-family;
143
+ font-size: 13px;
144
+ font-weight: 400;
145
+ line-height: 21px;
465
146
  color: $Black-Color;
466
147
  background: transparent;
467
148
  max-height: 30px;
@@ -644,7 +325,6 @@
644
325
 
645
326
  // ═════════════════════════════════════════════════════════════════════════
646
327
  // Modifier: zebra-grey (grey header, zebra with grey)
647
- // Same as md-datatable-style.zebra-grey
648
328
  // ═════════════════════════════════════════════════════════════════════════
649
329
 
650
330
  .md-grid-table.zebra-grey {
@@ -688,81 +368,3 @@
688
368
  }
689
369
  }
690
370
  }
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
- }
@@ -1,4 +1,4 @@
1
- @use '../../vars.scss' as *;
1
+ @use '../../styles/vars.scss' as *;
2
2
  @use 'sass:color' as color;
3
3
 
4
4
  // ═══════════════════════════════════════════════════════════════════════════