@annalib/anna-core 12.2.2 → 12.2.3
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/package.json
CHANGED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
// @use "anna-common-scss/fonts";
|
|
2
|
+
// @use "anna-common-scss/generic-table-common" as *;
|
|
3
|
+
// @use "anna-common-scss/colors";
|
|
4
|
+
|
|
5
|
+
@use "@annalib/anna-core/src/lib/anna-common-scss/fonts";
|
|
6
|
+
@use "@annalib/anna-core/src/lib/anna-common-scss/colors";
|
|
7
|
+
@import "@annalib/anna-core/src/lib/anna-common-scss/generic-table-common";
|
|
8
|
+
|
|
9
|
+
@mixin sticky-left($leftOffset, $zIndex) {
|
|
10
|
+
position: sticky;
|
|
11
|
+
left: $leftOffset;
|
|
12
|
+
z-index: $zIndex !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin ellipsify(){
|
|
16
|
+
text-overflow: ellipsis;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin ellipsis() {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
width: 93%;
|
|
24
|
+
@include ellipsify();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@mixin common-table($tableStartIndex, $tableEndIndex) {
|
|
28
|
+
thead {
|
|
29
|
+
tr th {
|
|
30
|
+
box-shadow: none !important;
|
|
31
|
+
}
|
|
32
|
+
tr th:nth-child(12) {
|
|
33
|
+
z-index: 101 !important;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
tr th.mat-column-isOrderStarred,
|
|
37
|
+
tr th.mat-column-payForPerformanceColumnIcon {
|
|
38
|
+
background-color: white !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
tr.total-row {
|
|
42
|
+
td {
|
|
43
|
+
color: #4a4a4a;
|
|
44
|
+
|
|
45
|
+
span {
|
|
46
|
+
color: #a7a7a7;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
background: white;
|
|
50
|
+
@include fonts.fonts(Roboto, 0.75rem, normal, bold, normal, normal, 0.3px);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
td:nth-of-type(1) {
|
|
54
|
+
@include sticky-left(0px, 501);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
td:nth-of-type(2) {
|
|
58
|
+
box-shadow: inset 1px 0 0 0 rgb(0 0 0 / 75%), inset 0 1px 0 0 rgb(0 0 0 / 75%), inset 0 -1px 0 0 rgb(0 0 0 / 75%);
|
|
59
|
+
padding-left: 37px;
|
|
60
|
+
@include sticky-left(62px, 501);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
td:nth-of-type(n + 3) {
|
|
64
|
+
box-shadow: inset 0 1px 0 0 rgb(0 0 0 / 75%), inset 0 -1px 0 0 rgb(0 0 0 / 75%);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
td:last-of-type {
|
|
68
|
+
box-shadow: inset -1px 0 0 0 rgb(0 0 0 / 75%), inset 0 1px 0 0 rgb(0 0 0 / 75%), inset 0 -1px 0 0 rgb(0 0 0 / 75%);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
tbody {
|
|
74
|
+
tr {
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
|
|
77
|
+
td {
|
|
78
|
+
background: white;
|
|
79
|
+
box-shadow: none !important;
|
|
80
|
+
|
|
81
|
+
div:nth-child(1) {
|
|
82
|
+
color: #000;
|
|
83
|
+
@include ellipsify();
|
|
84
|
+
@include fonts.fonts(Roboto, 0.75rem, normal, normal, normal, normal, 0px);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
div:nth-child(2) {
|
|
88
|
+
color: #a7a7a7;
|
|
89
|
+
@include ellipsify();
|
|
90
|
+
@include fonts.fonts(Roboto, 0.75rem, normal, 500, normal, normal, 0.3px);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
td:nth-of-type(1) {
|
|
95
|
+
@include sticky-left(0px, 102);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@for $i from calc($tableStartIndex) through calc($tableEndIndex) {
|
|
99
|
+
td:nth-of-type(#{$i}) {
|
|
100
|
+
box-shadow: inset 0px -1px 0px 0px #d4d4d4 !important;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
td:nth-of-type(#{$tableStartIndex}) {
|
|
105
|
+
box-shadow: inset 1px -1px 0px 0px #d4d4d4 !important;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
td:last-of-type {
|
|
109
|
+
box-shadow: inset -1px -1px 0px 0px #d4d4d4 !important;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
td.mat-cell:first-of-type {
|
|
113
|
+
padding-left: 5px !important;
|
|
114
|
+
|
|
115
|
+
i {
|
|
116
|
+
font-size: 1.25rem;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
position: relative;
|
|
119
|
+
bottom: 2px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
i.mdi-star-outline {
|
|
123
|
+
color: #e6e6e6;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
i.mdi-star {
|
|
127
|
+
color: #ffc107;
|
|
128
|
+
opacity: 0.5;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@include overrideEmptyTrBorders(3);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&.no-data-table {
|
|
137
|
+
tbody tr:first-of-type {
|
|
138
|
+
td:nth-of-type(#{$tableStartIndex}) {
|
|
139
|
+
box-shadow: inset 1px 0px 0px 0px #d4d4d4 !important;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
td:nth-of-type(#{$tableStartIndex + 1}),
|
|
143
|
+
td:nth-of-type(#{$tableStartIndex + 2}) {
|
|
144
|
+
box-shadow: none !important
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&.no-data-table div.horizontal-scroll-for-table-container {
|
|
150
|
+
height: calc(162px) !important;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.table-container::-webkit-scrollbar {
|
|
154
|
+
width: 4px;
|
|
155
|
+
height: 4px;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.table-container::-webkit-scrollbar-thumb {
|
|
159
|
+
border-radius: 4px;
|
|
160
|
+
background-color: rgba(0, 0, 0, 0.4) !important;
|
|
161
|
+
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.table-container::-webkit-scrollbar-track {
|
|
165
|
+
border: 1px solid rgba(0, 0, 0, 0.1) !important;
|
|
166
|
+
margin-top: 105px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
}
|