@annalib/anna-core 20.2.20 → 20.2.21

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 (82) hide show
  1. package/README.md +28 -28
  2. package/esm2022/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.mjs +3 -3
  3. package/esm2022/lib/anna-core-shared-lib/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component.mjs +3 -3
  4. package/esm2022/lib/anna-core-shared-lib/components/anna-est-icon-template/anna-est-icon-template.component.mjs +3 -3
  5. package/esm2022/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.mjs +3 -3
  6. package/esm2022/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.mjs +3 -3
  7. package/esm2022/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.mjs +3 -3
  8. package/esm2022/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.mjs +3 -3
  9. package/esm2022/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.mjs +3 -3
  10. package/esm2022/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.mjs +3 -3
  11. package/esm2022/lib/anna-core-shared-lib/constants/shared.constant.mjs +2 -1
  12. package/esm2022/lib/anna-core-shared-lib/directives/digits-only/digits-only.directive.mjs +1 -1
  13. package/esm2022/lib/anna-core-shared-lib/directives/fixed-rows-popup-table/fixed-rows-popup-table.directive.mjs +1 -1
  14. package/esm2022/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.mjs +1 -1
  15. package/esm2022/lib/anna-core-shared-lib/models/anna-generic-data-type.model.mjs +1 -1
  16. package/esm2022/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.mjs +1 -1
  17. package/esm2022/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +1 -1
  18. package/esm2022/lib/anna-core-shared-lib/models/anna-sort.model.mjs +1 -1
  19. package/esm2022/lib/anna-core-shared-lib/models/anna-tooltip.model.mjs +1 -1
  20. package/esm2022/lib/anna-core-shared-lib/pipes/annaConvertArrayToCommaSeperatedValue.pipe.mjs +1 -1
  21. package/esm2022/lib/anna-core-shared-lib/pipes/annaConvertZeroOrNullOrUndefined.pipe.mjs +1 -1
  22. package/esm2022/lib/anna-core-shared-lib/pipes/annaDateFormatter.pipe.mjs +1 -1
  23. package/esm2022/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.mjs +1 -1
  24. package/esm2022/lib/anna-core-shared-lib/pipes/annaReplaceChar.pipe.mjs +1 -1
  25. package/esm2022/lib/anna-core-shared-lib/pipes/annaTypeOfData.pipe.mjs +1 -1
  26. package/esm2022/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +1 -1
  27. package/esm2022/lib/anna-core-shared-lib/services/anna-filter.service.mjs +1 -1
  28. package/esm2022/lib/anna-core-shared-lib/services/anna-generic-table.service.mjs +1 -1
  29. package/esm2022/lib/anna-core-shared-lib/services/anna-global-config.service.mjs +1 -1
  30. package/esm2022/lib/anna-core-shared-lib/services/anna-number-format.service.mjs +1 -1
  31. package/esm2022/lib/anna-core-shared-lib/services/anna-persisting-filter.service.mjs +1 -1
  32. package/esm2022/lib/anna-core-shared-lib/services/anna-sort.service.mjs +1 -1
  33. package/esm2022/lib/anna-core.module.mjs +1 -1
  34. package/esm2022/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.mjs +3 -3
  35. package/esm2022/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.mjs +3 -3
  36. package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-checkbox-filter/anna-column-checkbox-filter.component.mjs +3 -3
  37. package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-filter.component.mjs +3 -3
  38. package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-slider-filter/anna-column-slider-filter.component.mjs +3 -3
  39. package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component.mjs +3 -3
  40. package/esm2022/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +11 -6
  41. package/esm2022/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.mjs +3 -3
  42. package/esm2022/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.mjs +3 -3
  43. package/esm2022/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive.mjs +1 -1
  44. package/esm2022/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.mjs +1 -1
  45. package/esm2022/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.mjs +1 -1
  46. package/esm2022/lib/anna-generic-table-lib/directives/anna-virtual-table/index.mjs +1 -1
  47. package/esm2022/public-api.mjs +1 -1
  48. package/fesm2022/annalib-anna-core.mjs +45 -39
  49. package/fesm2022/annalib-anna-core.mjs.map +1 -1
  50. package/lib/anna-core-shared-lib/constants/shared.constant.d.ts +1 -0
  51. package/package.json +1 -1
  52. package/src/lib/anna-common-scss/_animate.scss +27 -27
  53. package/src/lib/anna-common-scss/_application-spacing.scss +7 -7
  54. package/src/lib/anna-common-scss/_bootstrap-tooltip.scss +27 -27
  55. package/src/lib/anna-common-scss/_button.scss +18 -18
  56. package/src/lib/anna-common-scss/_colors.scss +107 -107
  57. package/src/lib/anna-common-scss/_common-order-listing-table.scss +172 -172
  58. package/src/lib/anna-common-scss/_custom-anna-datepicker.scss +14 -14
  59. package/src/lib/anna-common-scss/_customDropdown.scss +123 -123
  60. package/src/lib/anna-common-scss/_dashboard-partials.scss +106 -106
  61. package/src/lib/anna-common-scss/_date-picker-form.scss +87 -87
  62. package/src/lib/anna-common-scss/_easy-filter.scss +138 -138
  63. package/src/lib/anna-common-scss/_edit-filter-popup.scss +70 -70
  64. package/src/lib/anna-common-scss/_filters.scss +712 -712
  65. package/src/lib/anna-common-scss/_font.scss +9 -9
  66. package/src/lib/anna-common-scss/_fonts.scss +86 -86
  67. package/src/lib/anna-common-scss/_generic-modal.scss +63 -63
  68. package/src/lib/anna-common-scss/_generic-table-common.scss +198 -198
  69. package/src/lib/anna-common-scss/_gt-table.scss +425 -425
  70. package/src/lib/anna-common-scss/_legend.scss +11 -11
  71. package/src/lib/anna-common-scss/_mat-button-toggle.scss +38 -38
  72. package/src/lib/anna-common-scss/_mat-menu.scss +17 -17
  73. package/src/lib/anna-common-scss/_mixins.scss +187 -187
  74. package/src/lib/anna-common-scss/_modal.scss +37 -37
  75. package/src/lib/anna-common-scss/_popup-filter-toggle-button.scss +36 -36
  76. package/src/lib/anna-common-scss/_scrollbar.scss +14 -14
  77. package/src/lib/anna-common-scss/_sort.scss +30 -30
  78. package/src/lib/anna-common-scss/_toggle.scss +86 -86
  79. package/src/lib/anna-common-scss/style.scss +1 -1
  80. package/src/lib/anna-common-scss/third-party-lib/_angular-material-mat-radio.scss +25 -25
  81. package/src/lib/anna-common-scss/third-party-lib/_anna-mat-button-toggle-group-size-lg.scss +34 -34
  82. package/src/lib/anna-common-scss/third-party-lib/_mat-autocomplete.scss +31 -31
@@ -1,425 +1,425 @@
1
- @use "../anna-common-scss/fonts" as *;
2
- @use "../anna-common-scss/colors" as *;
3
- @use "sass:list";
4
- @use "sass:map";
5
-
6
- @mixin sticky-left($leftOffset, $zIndex) {
7
- position: sticky;
8
- left: $leftOffset;
9
- z-index: $zIndex !important;
10
- }
11
-
12
- @mixin ellipsify() {
13
- text-overflow: ellipsis;
14
- overflow: hidden;
15
- white-space: nowrap;
16
- }
17
-
18
- @mixin table-container-scroll-bar($margin-left: 0, $margin-top: 0) {
19
- .table-container {
20
- &::-webkit-scrollbar-track {
21
- margin-top: $margin-top;
22
- margin-left: $margin-left;
23
- }
24
- }
25
- }
26
-
27
- @mixin table-fixed-style($width: 100%) {
28
- table {
29
- margin-bottom: 0;
30
- table-layout: fixed;
31
- width: $width;
32
- }
33
- }
34
-
35
- @mixin table-header($sticky-left-map, $box-shadow-map, $bg-color: #ededed) {
36
- $last-sticky-col: 0;
37
- @if (list.length(map.keys($sticky-left-map)) > 0) {
38
- $last-sticky-col: list.nth(map.keys($sticky-left-map), -1);
39
- }
40
-
41
- .scroll-left-shadow-effect .header-row th:nth-of-type(#{$last-sticky-col}) {
42
- border: none !important;
43
- filter: drop-shadow(2px 0 0px $lightGray-4);
44
- }
45
-
46
- .header-row {
47
- th {
48
- background: $bg-color;
49
- padding: 2px 8px;
50
- line-height: normal;
51
- position: sticky;
52
- top: 0;
53
- box-shadow: none !important;
54
- cursor: default;
55
- .upper-label {
56
- @include fonts(Roboto, 0.6875rem, normal, 500, normal, normal, 0.3px);
57
- color: $charcoal;
58
- margin-bottom: 0;
59
- }
60
-
61
- .lower-label {
62
- @include fonts(Roboto, 0.6875rem, normal, 500, normal, normal, 0.3px);
63
- color: $darkGray;
64
- margin-bottom: 0;
65
- }
66
-
67
- div.row {
68
- display: flex;
69
- flex-wrap: nowrap;
70
- justify-content: space-between;
71
- align-items: center;
72
- width: max-content;
73
- }
74
-
75
- div.sort-filter-container {
76
- display: flex;
77
- flex-wrap: nowrap;
78
- align-items: center;
79
- margin-left: $fs-4;
80
- margin-right: auto;
81
- }
82
-
83
- span.mdi-filter-variant {
84
- font-size: 13px !important;
85
- top: -1px !important;
86
- position: relative;
87
- }
88
- }
89
-
90
- $box-shadow-start-index: map.get($box-shadow-map, "start-index");
91
- $box-shadow-end-index: map.get($box-shadow-map, "end-index");
92
- $show-right-border-box-shadow: map.get($box-shadow-map, "show-right-border-box-shadow");
93
- $top-bottom-box-shadow-color: map.get($box-shadow-map, "top-bottom-bs-color");
94
- $left-right-box-shadow-color: map.get($box-shadow-map, "left-right-bs-color");
95
-
96
- @for $i from $box-shadow-start-index through $box-shadow-end-index {
97
- @if ($i == $box-shadow-start-index) {
98
- th:nth-of-type(#{$i}) {
99
- @if ($show-right-border-box-shadow) {
100
- box-shadow:
101
- inset 1px 0 0 0 $left-right-box-shadow-color,
102
- inset 0 1px 0 0 $top-bottom-box-shadow-color,
103
- inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
104
- } @else {
105
- box-shadow:
106
- inset 1px 0 0 0 $left-right-box-shadow-color,
107
- inset 0 1px 0 0 $top-bottom-box-shadow-color,
108
- inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
109
- }
110
- }
111
- } @else if($i == $box-shadow-end-index) {
112
- th:nth-of-type(#{$i}) {
113
- @if ($show-right-border-box-shadow) {
114
- box-shadow:
115
- inset -1px 0 0 0 $left-right-box-shadow-color,
116
- inset 1px 0 0 0 $left-right-box-shadow-color,
117
- inset 0 1px 0 0 $top-bottom-box-shadow-color,
118
- inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
119
- } @else {
120
- box-shadow:
121
- inset -1px 0 0 0 $left-right-box-shadow-color,
122
- inset 0 1px 0 0 $top-bottom-box-shadow-color,
123
- inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
124
- }
125
- }
126
- } @else {
127
- th:nth-of-type(#{$i}) {
128
- @if ($show-right-border-box-shadow) {
129
- box-shadow:
130
- inset 1px 0 0 0 $left-right-box-shadow-color,
131
- inset 0 1px 0 0 $top-bottom-box-shadow-color,
132
- inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
133
- } @else {
134
- box-shadow:
135
- inset 0 1px 0 0 $top-bottom-box-shadow-color,
136
- inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
137
- }
138
- }
139
- }
140
- }
141
-
142
- @each $columnNumber, $sticky-prop in $sticky-left-map {
143
- $left-offset: map.get($sticky-prop, "left");
144
- $z-index: map.get($sticky-prop, "z-index");
145
-
146
- th:nth-of-type(#{$columnNumber}) {
147
- @include sticky-left($left-offset, $z-index);
148
- }
149
- }
150
- }
151
- }
152
-
153
- @mixin total-row($sticky-top-left-map, $box-shadow-map, $bg-color: white) {
154
- $sticky-top: map.get($sticky-top-left-map, "top");
155
- $sticky-left-map: map.get($sticky-top-left-map, "sticky-left");
156
- $last-sticky-col: 0;
157
-
158
- @if (list.length(map.keys($sticky-left-map)) > 0) {
159
- $last-sticky-col: list.nth(map.keys($sticky-left-map), -1);
160
- }
161
-
162
- .scroll-left-shadow-effect:not(.no-data-table) .total-row td:nth-of-type(#{$last-sticky-col}) {
163
- filter: drop-shadow(2px 0 2px $lightGray-4);
164
- }
165
-
166
- .total-row {
167
- td {
168
- padding: 2px 8px;
169
- background: $bg-color;
170
- position: sticky;
171
- top: $sticky-top !important;
172
-
173
- .upper-label {
174
- @include fonts(Roboto, 0.75rem, normal, 900, normal, normal, 0.3px);
175
- color: $charcoal;
176
- }
177
-
178
- .lower-label {
179
- @include fonts(Roboto, 0.75rem, normal, 900, normal, normal, 0.3px);
180
- color: $darkGray;
181
- }
182
-
183
- br {
184
- display: block;
185
- content: "";
186
- margin-top: -3px;
187
- }
188
- }
189
-
190
- $box-shadow-start-index: map.get($box-shadow-map, "start-index");
191
- $box-shadow-end-index: map.get($box-shadow-map, "end-index");
192
- $show-right-border-box-shadow: map.get($box-shadow-map, "show-right-border-box-shadow");
193
- $top-box-shadow-color: map.get($box-shadow-map, "top-bs-color");
194
- $left-box-shadow-color: map.get($box-shadow-map, "left-bs-color");
195
- $bottom-box-shadow-color: map.get($box-shadow-map, "bottom-bs-color");
196
- $right-box-shadow-color: map.get($box-shadow-map, "right-bs-color");
197
-
198
- @for $i from $box-shadow-start-index through $box-shadow-end-index {
199
- @if ($i == $box-shadow-start-index) {
200
- td:nth-of-type(#{$i}) {
201
- @if ($show-right-border-box-shadow) {
202
- box-shadow:
203
- inset 1px 0 0 0 $top-box-shadow-color,
204
- inset 0 1px 0 0 $top-box-shadow-color,
205
- inset 0 -1px 0 0 $bottom-box-shadow-color !important;
206
- } @else {
207
- box-shadow:
208
- inset 1px 0 0 0 $top-box-shadow-color,
209
- inset 0 1px 0 0 $top-box-shadow-color,
210
- inset 0 -1px 0 0 $bottom-box-shadow-color !important;
211
- }
212
- }
213
- } @else if($i == $box-shadow-end-index) {
214
- td:nth-of-type(#{$i}) {
215
- @if ($show-right-border-box-shadow) {
216
- box-shadow:
217
- inset -1px 0 0 0 $top-box-shadow-color,
218
- inset 1px 0 0 0 $left-box-shadow-color,
219
- inset 0 1px 0 0 $top-box-shadow-color,
220
- inset 0 -1px 0 0 $bottom-box-shadow-color !important;
221
- } @else {
222
- box-shadow:
223
- inset -1px 0 0 0 $top-box-shadow-color,
224
- inset 0 1px 0 0 $top-box-shadow-color,
225
- inset 0 -1px 0 0 $bottom-box-shadow-color !important;
226
- }
227
- }
228
- } @else {
229
- td:nth-of-type(#{$i}) {
230
- @if ($show-right-border-box-shadow) {
231
- box-shadow:
232
- inset 1px 0 0 0 $left-box-shadow-color,
233
- inset 0 1px 0 0 $top-box-shadow-color,
234
- inset 0 -1px 0 0 $bottom-box-shadow-color !important;
235
- } @else {
236
- box-shadow:
237
- inset 0 1px 0 0 $top-box-shadow-color,
238
- inset 0 -1px 0 0 $bottom-box-shadow-color !important;
239
- }
240
- }
241
- }
242
- }
243
-
244
- @each $columnNumber, $sticky-prop in $sticky-left-map {
245
- $left-offset: map.get($sticky-prop, "left");
246
- $z-index: map.get($sticky-prop, "z-index");
247
-
248
- td:nth-of-type(#{$columnNumber}) {
249
- @include sticky-left($left-offset, $z-index);
250
- }
251
- }
252
- }
253
- }
254
-
255
- @mixin table-data($sticky-left-map, $box-shadow-map, $bg-color: white) {
256
- td {
257
- cursor: pointer;
258
- background: $bg-color;
259
- box-shadow: none !important;
260
-
261
- div:nth-child(1) {
262
- color: #000;
263
- @include ellipsify();
264
- @include fonts(Roboto, 0.75rem, normal, normal, normal, normal, 0px);
265
- }
266
-
267
- div:nth-child(2) {
268
- color: #a7a7a7;
269
- @include ellipsify();
270
- @include fonts(Roboto, 0.75rem, normal, 500, normal, normal, 0.3px);
271
- }
272
- }
273
-
274
- $box-shadow-start-index: map.get($box-shadow-map, "start-index");
275
- $box-shadow-end-index: map.get($box-shadow-map, "end-index");
276
- $show-right-border-box-shadow: map.get($box-shadow-map, "show-right-border-box-shadow");
277
- $top-bottom-box-shadow-color: map.get($box-shadow-map, "top-bottom-bs-color");
278
- $left-right-box-shadow-color: map.get($box-shadow-map, "left-right-bs-color");
279
-
280
- @for $i from $box-shadow-start-index through $box-shadow-end-index {
281
- @if ($i == $box-shadow-start-index) {
282
- td:nth-of-type(#{$i}) {
283
- @if ($show-right-border-box-shadow) {
284
- box-shadow:
285
- inset 1px 0 0 0 $left-right-box-shadow-color,
286
- inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
287
- } @else {
288
- box-shadow:
289
- inset 1px 0 0 0 $left-right-box-shadow-color,
290
- inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
291
- }
292
- }
293
- } @else if($i == $box-shadow-end-index) {
294
- td:nth-of-type(#{$i}) {
295
- @if ($show-right-border-box-shadow) {
296
- box-shadow:
297
- inset 1px 0 0 0 $left-right-box-shadow-color,
298
- inset -1px 0 0 0 $left-right-box-shadow-color,
299
- inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
300
- } @else {
301
- box-shadow:
302
- inset -1px 0 0 0 $left-right-box-shadow-color,
303
- inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
304
- }
305
- }
306
- } @else {
307
- td:nth-of-type(#{$i}) {
308
- @if ($show-right-border-box-shadow) {
309
- box-shadow:
310
- inset 1px 0 0 0 $left-right-box-shadow-color,
311
- inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
312
- } @else {
313
- box-shadow: inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
314
- }
315
- }
316
- }
317
- }
318
-
319
- @each $columnNumber, $sticky-prop in $sticky-left-map {
320
- $left-offset: map.get($sticky-prop, "left");
321
- $z-index: map.get($sticky-prop, "z-index");
322
-
323
- td:nth-of-type(#{$columnNumber}) {
324
- @include sticky-left($left-offset, $z-index);
325
- }
326
- }
327
- }
328
-
329
- @mixin table-data-shadow($columnNumber) {
330
- .scroll-left-shadow-effect:not(.no-data-table) td:nth-of-type(#{$columnNumber}) {
331
- filter: drop-shadow(2px 0 1px $lightGray-4);
332
- }
333
- }
334
-
335
- @mixin no-data-table($table-container-height, $box-shadow-map, $row-height-map: ()) {
336
- .table-container.no-data-table > div {
337
- height: $table-container-height !important;
338
- }
339
-
340
- $box-shadow-start-index: map.get($box-shadow-map, "box-shadow-start-index");
341
- $box-shadow-end-index: map.get($box-shadow-map, "box-shadow-end-index");
342
- $box-shadow-color: map.get($box-shadow-map, "box-shadow-color");
343
-
344
- tbody {
345
- @if (map.has-key($row-height-map, "row-height")) {
346
- tr.no-border-tr {
347
- height: map.get($row-height-map, "row-height") !important;
348
- }
349
- }
350
-
351
- tr.no-border-tr:first-of-type {
352
- @for $i from $box-shadow-start-index through $box-shadow-end-index {
353
- td:nth-of-type(#{$i}) {
354
- @if ($i == $box-shadow-start-index) {
355
- box-shadow: inset 1px 0 0 0 $box-shadow-color !important;
356
- } @else if($i == $box-shadow-end-index) {
357
- box-shadow: inset -1px 0 0 0 $box-shadow-color !important;
358
- } @else {
359
- box-shadow: none !important;
360
- }
361
- }
362
- }
363
- }
364
-
365
- tr.no-border-tr:last-of-type {
366
- @for $i from $box-shadow-start-index through $box-shadow-end-index {
367
- td:nth-of-type(#{$i}) {
368
- @if ($i == $box-shadow-start-index) {
369
- box-shadow: inset 1px -1px 0 0 $box-shadow-color !important;
370
- } @else if($i == $box-shadow-end-index) {
371
- box-shadow: inset -1px -1px 0 0 $box-shadow-color !important;
372
- } @else {
373
- box-shadow: inset 0 -1px 0 0 $box-shadow-color !important;
374
- }
375
- }
376
- }
377
- }
378
- }
379
- }
380
-
381
- @mixin table-bottom-border($box-shadow-map) {
382
- $box-shadow-start-index: map.get($box-shadow-map, "start-index");
383
- $box-shadow-end-index: map.get($box-shadow-map, "end-index");
384
- $show-right-border-box-shadow: map.get($box-shadow-map, "show-right-border-box-shadow");
385
- $top-bottom-box-shadow-color: map.get($box-shadow-map, "top-bottom-bs-color");
386
- $left-right-box-shadow-color: map.get($box-shadow-map, "left-right-bs-color");
387
-
388
- .bottom-border {
389
- border-bottom: 1px solid $top-bottom-box-shadow-color;
390
- }
391
-
392
- .bottom-border tbody {
393
- tr:last-of-type {
394
- @for $i from $box-shadow-start-index through $box-shadow-end-index {
395
- @if ($i == $box-shadow-start-index) {
396
- td:nth-of-type(#{$i}) {
397
- @if ($show-right-border-box-shadow) {
398
- box-shadow: inset 1px 0 0 0 $left-right-box-shadow-color !important;
399
- } @else {
400
- box-shadow: inset 1px 0 0 0 $left-right-box-shadow-color !important;
401
- }
402
- }
403
- } @else if($i == $box-shadow-end-index) {
404
- td:nth-of-type(#{$i}) {
405
- @if ($show-right-border-box-shadow) {
406
- box-shadow:
407
- inset 1px 0 0 0 $left-right-box-shadow-color,
408
- inset -1px 0 0 0 $left-right-box-shadow-color !important;
409
- } @else {
410
- box-shadow: inset -1px 0 0 0 $left-right-box-shadow-color !important;
411
- }
412
- }
413
- } @else {
414
- td:nth-of-type(#{$i}) {
415
- @if ($show-right-border-box-shadow) {
416
- box-shadow: inset 1px 0 0 0 $top-bottom-box-shadow-color !important;
417
- } @else {
418
- box-shadow: none !important;
419
- }
420
- }
421
- }
422
- }
423
- }
424
- }
425
- }
1
+ @use "../anna-common-scss/fonts" as *;
2
+ @use "../anna-common-scss/colors" as *;
3
+ @use "sass:list";
4
+ @use "sass:map";
5
+
6
+ @mixin sticky-left($leftOffset, $zIndex) {
7
+ position: sticky;
8
+ left: $leftOffset;
9
+ z-index: $zIndex !important;
10
+ }
11
+
12
+ @mixin ellipsify() {
13
+ text-overflow: ellipsis;
14
+ overflow: hidden;
15
+ white-space: nowrap;
16
+ }
17
+
18
+ @mixin table-container-scroll-bar($margin-left: 0, $margin-top: 0) {
19
+ .table-container {
20
+ &::-webkit-scrollbar-track {
21
+ margin-top: $margin-top;
22
+ margin-left: $margin-left;
23
+ }
24
+ }
25
+ }
26
+
27
+ @mixin table-fixed-style($width: 100%) {
28
+ table {
29
+ margin-bottom: 0;
30
+ table-layout: fixed;
31
+ width: $width;
32
+ }
33
+ }
34
+
35
+ @mixin table-header($sticky-left-map, $box-shadow-map, $bg-color: #ededed) {
36
+ $last-sticky-col: 0;
37
+ @if (list.length(map.keys($sticky-left-map)) > 0) {
38
+ $last-sticky-col: list.nth(map.keys($sticky-left-map), -1);
39
+ }
40
+
41
+ .scroll-left-shadow-effect .header-row th:nth-of-type(#{$last-sticky-col}) {
42
+ border: none !important;
43
+ filter: drop-shadow(2px 0 0px $lightGray-4);
44
+ }
45
+
46
+ .header-row {
47
+ th {
48
+ background: $bg-color;
49
+ padding: 2px 8px;
50
+ line-height: normal;
51
+ position: sticky;
52
+ top: 0;
53
+ box-shadow: none !important;
54
+ cursor: default;
55
+ .upper-label {
56
+ @include fonts(Roboto, 0.6875rem, normal, 500, normal, normal, 0.3px);
57
+ color: $charcoal;
58
+ margin-bottom: 0;
59
+ }
60
+
61
+ .lower-label {
62
+ @include fonts(Roboto, 0.6875rem, normal, 500, normal, normal, 0.3px);
63
+ color: $darkGray;
64
+ margin-bottom: 0;
65
+ }
66
+
67
+ div.row {
68
+ display: flex;
69
+ flex-wrap: nowrap;
70
+ justify-content: space-between;
71
+ align-items: center;
72
+ width: max-content;
73
+ }
74
+
75
+ div.sort-filter-container {
76
+ display: flex;
77
+ flex-wrap: nowrap;
78
+ align-items: center;
79
+ margin-left: $fs-4;
80
+ margin-right: auto;
81
+ }
82
+
83
+ span.mdi-filter-variant {
84
+ font-size: 13px !important;
85
+ top: -1px !important;
86
+ position: relative;
87
+ }
88
+ }
89
+
90
+ $box-shadow-start-index: map.get($box-shadow-map, "start-index");
91
+ $box-shadow-end-index: map.get($box-shadow-map, "end-index");
92
+ $show-right-border-box-shadow: map.get($box-shadow-map, "show-right-border-box-shadow");
93
+ $top-bottom-box-shadow-color: map.get($box-shadow-map, "top-bottom-bs-color");
94
+ $left-right-box-shadow-color: map.get($box-shadow-map, "left-right-bs-color");
95
+
96
+ @for $i from $box-shadow-start-index through $box-shadow-end-index {
97
+ @if ($i == $box-shadow-start-index) {
98
+ th:nth-of-type(#{$i}) {
99
+ @if ($show-right-border-box-shadow) {
100
+ box-shadow:
101
+ inset 1px 0 0 0 $left-right-box-shadow-color,
102
+ inset 0 1px 0 0 $top-bottom-box-shadow-color,
103
+ inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
104
+ } @else {
105
+ box-shadow:
106
+ inset 1px 0 0 0 $left-right-box-shadow-color,
107
+ inset 0 1px 0 0 $top-bottom-box-shadow-color,
108
+ inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
109
+ }
110
+ }
111
+ } @else if($i == $box-shadow-end-index) {
112
+ th:nth-of-type(#{$i}) {
113
+ @if ($show-right-border-box-shadow) {
114
+ box-shadow:
115
+ inset -1px 0 0 0 $left-right-box-shadow-color,
116
+ inset 1px 0 0 0 $left-right-box-shadow-color,
117
+ inset 0 1px 0 0 $top-bottom-box-shadow-color,
118
+ inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
119
+ } @else {
120
+ box-shadow:
121
+ inset -1px 0 0 0 $left-right-box-shadow-color,
122
+ inset 0 1px 0 0 $top-bottom-box-shadow-color,
123
+ inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
124
+ }
125
+ }
126
+ } @else {
127
+ th:nth-of-type(#{$i}) {
128
+ @if ($show-right-border-box-shadow) {
129
+ box-shadow:
130
+ inset 1px 0 0 0 $left-right-box-shadow-color,
131
+ inset 0 1px 0 0 $top-bottom-box-shadow-color,
132
+ inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
133
+ } @else {
134
+ box-shadow:
135
+ inset 0 1px 0 0 $top-bottom-box-shadow-color,
136
+ inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
137
+ }
138
+ }
139
+ }
140
+ }
141
+
142
+ @each $columnNumber, $sticky-prop in $sticky-left-map {
143
+ $left-offset: map.get($sticky-prop, "left");
144
+ $z-index: map.get($sticky-prop, "z-index");
145
+
146
+ th:nth-of-type(#{$columnNumber}) {
147
+ @include sticky-left($left-offset, $z-index);
148
+ }
149
+ }
150
+ }
151
+ }
152
+
153
+ @mixin total-row($sticky-top-left-map, $box-shadow-map, $bg-color: white) {
154
+ $sticky-top: map.get($sticky-top-left-map, "top");
155
+ $sticky-left-map: map.get($sticky-top-left-map, "sticky-left");
156
+ $last-sticky-col: 0;
157
+
158
+ @if (list.length(map.keys($sticky-left-map)) > 0) {
159
+ $last-sticky-col: list.nth(map.keys($sticky-left-map), -1);
160
+ }
161
+
162
+ .scroll-left-shadow-effect:not(.no-data-table) .total-row td:nth-of-type(#{$last-sticky-col}) {
163
+ filter: drop-shadow(2px 0 2px $lightGray-4);
164
+ }
165
+
166
+ .total-row {
167
+ td {
168
+ padding: 2px 8px;
169
+ background: $bg-color;
170
+ position: sticky;
171
+ top: $sticky-top !important;
172
+
173
+ .upper-label {
174
+ @include fonts(Roboto, 0.75rem, normal, 900, normal, normal, 0.3px);
175
+ color: $charcoal;
176
+ }
177
+
178
+ .lower-label {
179
+ @include fonts(Roboto, 0.75rem, normal, 900, normal, normal, 0.3px);
180
+ color: $darkGray;
181
+ }
182
+
183
+ br {
184
+ display: block;
185
+ content: "";
186
+ margin-top: -3px;
187
+ }
188
+ }
189
+
190
+ $box-shadow-start-index: map.get($box-shadow-map, "start-index");
191
+ $box-shadow-end-index: map.get($box-shadow-map, "end-index");
192
+ $show-right-border-box-shadow: map.get($box-shadow-map, "show-right-border-box-shadow");
193
+ $top-box-shadow-color: map.get($box-shadow-map, "top-bs-color");
194
+ $left-box-shadow-color: map.get($box-shadow-map, "left-bs-color");
195
+ $bottom-box-shadow-color: map.get($box-shadow-map, "bottom-bs-color");
196
+ $right-box-shadow-color: map.get($box-shadow-map, "right-bs-color");
197
+
198
+ @for $i from $box-shadow-start-index through $box-shadow-end-index {
199
+ @if ($i == $box-shadow-start-index) {
200
+ td:nth-of-type(#{$i}) {
201
+ @if ($show-right-border-box-shadow) {
202
+ box-shadow:
203
+ inset 1px 0 0 0 $top-box-shadow-color,
204
+ inset 0 1px 0 0 $top-box-shadow-color,
205
+ inset 0 -1px 0 0 $bottom-box-shadow-color !important;
206
+ } @else {
207
+ box-shadow:
208
+ inset 1px 0 0 0 $top-box-shadow-color,
209
+ inset 0 1px 0 0 $top-box-shadow-color,
210
+ inset 0 -1px 0 0 $bottom-box-shadow-color !important;
211
+ }
212
+ }
213
+ } @else if($i == $box-shadow-end-index) {
214
+ td:nth-of-type(#{$i}) {
215
+ @if ($show-right-border-box-shadow) {
216
+ box-shadow:
217
+ inset -1px 0 0 0 $top-box-shadow-color,
218
+ inset 1px 0 0 0 $left-box-shadow-color,
219
+ inset 0 1px 0 0 $top-box-shadow-color,
220
+ inset 0 -1px 0 0 $bottom-box-shadow-color !important;
221
+ } @else {
222
+ box-shadow:
223
+ inset -1px 0 0 0 $top-box-shadow-color,
224
+ inset 0 1px 0 0 $top-box-shadow-color,
225
+ inset 0 -1px 0 0 $bottom-box-shadow-color !important;
226
+ }
227
+ }
228
+ } @else {
229
+ td:nth-of-type(#{$i}) {
230
+ @if ($show-right-border-box-shadow) {
231
+ box-shadow:
232
+ inset 1px 0 0 0 $left-box-shadow-color,
233
+ inset 0 1px 0 0 $top-box-shadow-color,
234
+ inset 0 -1px 0 0 $bottom-box-shadow-color !important;
235
+ } @else {
236
+ box-shadow:
237
+ inset 0 1px 0 0 $top-box-shadow-color,
238
+ inset 0 -1px 0 0 $bottom-box-shadow-color !important;
239
+ }
240
+ }
241
+ }
242
+ }
243
+
244
+ @each $columnNumber, $sticky-prop in $sticky-left-map {
245
+ $left-offset: map.get($sticky-prop, "left");
246
+ $z-index: map.get($sticky-prop, "z-index");
247
+
248
+ td:nth-of-type(#{$columnNumber}) {
249
+ @include sticky-left($left-offset, $z-index);
250
+ }
251
+ }
252
+ }
253
+ }
254
+
255
+ @mixin table-data($sticky-left-map, $box-shadow-map, $bg-color: white) {
256
+ td {
257
+ cursor: pointer;
258
+ background: $bg-color;
259
+ box-shadow: none !important;
260
+
261
+ div:nth-child(1) {
262
+ color: #000;
263
+ @include ellipsify();
264
+ @include fonts(Roboto, 0.75rem, normal, normal, normal, normal, 0px);
265
+ }
266
+
267
+ div:nth-child(2) {
268
+ color: #a7a7a7;
269
+ @include ellipsify();
270
+ @include fonts(Roboto, 0.75rem, normal, 500, normal, normal, 0.3px);
271
+ }
272
+ }
273
+
274
+ $box-shadow-start-index: map.get($box-shadow-map, "start-index");
275
+ $box-shadow-end-index: map.get($box-shadow-map, "end-index");
276
+ $show-right-border-box-shadow: map.get($box-shadow-map, "show-right-border-box-shadow");
277
+ $top-bottom-box-shadow-color: map.get($box-shadow-map, "top-bottom-bs-color");
278
+ $left-right-box-shadow-color: map.get($box-shadow-map, "left-right-bs-color");
279
+
280
+ @for $i from $box-shadow-start-index through $box-shadow-end-index {
281
+ @if ($i == $box-shadow-start-index) {
282
+ td:nth-of-type(#{$i}) {
283
+ @if ($show-right-border-box-shadow) {
284
+ box-shadow:
285
+ inset 1px 0 0 0 $left-right-box-shadow-color,
286
+ inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
287
+ } @else {
288
+ box-shadow:
289
+ inset 1px 0 0 0 $left-right-box-shadow-color,
290
+ inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
291
+ }
292
+ }
293
+ } @else if($i == $box-shadow-end-index) {
294
+ td:nth-of-type(#{$i}) {
295
+ @if ($show-right-border-box-shadow) {
296
+ box-shadow:
297
+ inset 1px 0 0 0 $left-right-box-shadow-color,
298
+ inset -1px 0 0 0 $left-right-box-shadow-color,
299
+ inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
300
+ } @else {
301
+ box-shadow:
302
+ inset -1px 0 0 0 $left-right-box-shadow-color,
303
+ inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
304
+ }
305
+ }
306
+ } @else {
307
+ td:nth-of-type(#{$i}) {
308
+ @if ($show-right-border-box-shadow) {
309
+ box-shadow:
310
+ inset 1px 0 0 0 $left-right-box-shadow-color,
311
+ inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
312
+ } @else {
313
+ box-shadow: inset 0 -1px 0 0 $top-bottom-box-shadow-color !important;
314
+ }
315
+ }
316
+ }
317
+ }
318
+
319
+ @each $columnNumber, $sticky-prop in $sticky-left-map {
320
+ $left-offset: map.get($sticky-prop, "left");
321
+ $z-index: map.get($sticky-prop, "z-index");
322
+
323
+ td:nth-of-type(#{$columnNumber}) {
324
+ @include sticky-left($left-offset, $z-index);
325
+ }
326
+ }
327
+ }
328
+
329
+ @mixin table-data-shadow($columnNumber) {
330
+ .scroll-left-shadow-effect:not(.no-data-table) td:nth-of-type(#{$columnNumber}) {
331
+ filter: drop-shadow(2px 0 1px $lightGray-4);
332
+ }
333
+ }
334
+
335
+ @mixin no-data-table($table-container-height, $box-shadow-map, $row-height-map: ()) {
336
+ .table-container.no-data-table > div {
337
+ height: $table-container-height !important;
338
+ }
339
+
340
+ $box-shadow-start-index: map.get($box-shadow-map, "box-shadow-start-index");
341
+ $box-shadow-end-index: map.get($box-shadow-map, "box-shadow-end-index");
342
+ $box-shadow-color: map.get($box-shadow-map, "box-shadow-color");
343
+
344
+ tbody {
345
+ @if (map.has-key($row-height-map, "row-height")) {
346
+ tr.no-border-tr {
347
+ height: map.get($row-height-map, "row-height") !important;
348
+ }
349
+ }
350
+
351
+ tr.no-border-tr:first-of-type {
352
+ @for $i from $box-shadow-start-index through $box-shadow-end-index {
353
+ td:nth-of-type(#{$i}) {
354
+ @if ($i == $box-shadow-start-index) {
355
+ box-shadow: inset 1px 0 0 0 $box-shadow-color !important;
356
+ } @else if($i == $box-shadow-end-index) {
357
+ box-shadow: inset -1px 0 0 0 $box-shadow-color !important;
358
+ } @else {
359
+ box-shadow: none !important;
360
+ }
361
+ }
362
+ }
363
+ }
364
+
365
+ tr.no-border-tr:last-of-type {
366
+ @for $i from $box-shadow-start-index through $box-shadow-end-index {
367
+ td:nth-of-type(#{$i}) {
368
+ @if ($i == $box-shadow-start-index) {
369
+ box-shadow: inset 1px -1px 0 0 $box-shadow-color !important;
370
+ } @else if($i == $box-shadow-end-index) {
371
+ box-shadow: inset -1px -1px 0 0 $box-shadow-color !important;
372
+ } @else {
373
+ box-shadow: inset 0 -1px 0 0 $box-shadow-color !important;
374
+ }
375
+ }
376
+ }
377
+ }
378
+ }
379
+ }
380
+
381
+ @mixin table-bottom-border($box-shadow-map) {
382
+ $box-shadow-start-index: map.get($box-shadow-map, "start-index");
383
+ $box-shadow-end-index: map.get($box-shadow-map, "end-index");
384
+ $show-right-border-box-shadow: map.get($box-shadow-map, "show-right-border-box-shadow");
385
+ $top-bottom-box-shadow-color: map.get($box-shadow-map, "top-bottom-bs-color");
386
+ $left-right-box-shadow-color: map.get($box-shadow-map, "left-right-bs-color");
387
+
388
+ .bottom-border {
389
+ border-bottom: 1px solid $top-bottom-box-shadow-color;
390
+ }
391
+
392
+ .bottom-border tbody {
393
+ tr:last-of-type {
394
+ @for $i from $box-shadow-start-index through $box-shadow-end-index {
395
+ @if ($i == $box-shadow-start-index) {
396
+ td:nth-of-type(#{$i}) {
397
+ @if ($show-right-border-box-shadow) {
398
+ box-shadow: inset 1px 0 0 0 $left-right-box-shadow-color !important;
399
+ } @else {
400
+ box-shadow: inset 1px 0 0 0 $left-right-box-shadow-color !important;
401
+ }
402
+ }
403
+ } @else if($i == $box-shadow-end-index) {
404
+ td:nth-of-type(#{$i}) {
405
+ @if ($show-right-border-box-shadow) {
406
+ box-shadow:
407
+ inset 1px 0 0 0 $left-right-box-shadow-color,
408
+ inset -1px 0 0 0 $left-right-box-shadow-color !important;
409
+ } @else {
410
+ box-shadow: inset -1px 0 0 0 $left-right-box-shadow-color !important;
411
+ }
412
+ }
413
+ } @else {
414
+ td:nth-of-type(#{$i}) {
415
+ @if ($show-right-border-box-shadow) {
416
+ box-shadow: inset 1px 0 0 0 $top-bottom-box-shadow-color !important;
417
+ } @else {
418
+ box-shadow: none !important;
419
+ }
420
+ }
421
+ }
422
+ }
423
+ }
424
+ }
425
+ }