@energycap/components 0.45.1 → 0.45.2-multi-select-component.20260303-0733
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/README.md +188 -188
- package/fesm2022/energycap-components.mjs +681 -163
- package/fesm2022/energycap-components.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/collection.json +4 -4
- package/src/assets/images/favicon-ech.svg +14 -14
- package/src/assets/images/favicon-esa.svg +6 -6
- package/src/assets/images/favicon-eum.svg +13 -13
- package/src/assets/images/favicon-whitelabel.svg +4 -4
- package/src/assets/images/favicon.svg +12 -12
- package/src/assets/images/icon-carbonhub.svg +10 -10
- package/src/assets/images/icon-eum.svg +5 -5
- package/src/assets/images/icon-ucp.svg +12 -12
- package/src/assets/images/icon-wattics.svg +5 -5
- package/src/assets/images/icon.svg +11 -11
- package/src/assets/images/logo.svg +10 -10
- package/src/assets/images/splash-electric.svg +3 -3
- package/src/assets/images/splash-interval.svg +3 -3
- package/src/assets/images/splash-seedling.svg +11 -11
- package/src/assets/images/splash-water.svg +3 -3
- package/src/assets/locales/en_US.json +60 -60
- package/src/assets/scripts/unsupported-browser.js +17 -17
- package/src/styles/_base.scss +38 -38
- package/src/styles/_colors.scss +96 -96
- package/src/styles/_core.scss +3 -3
- package/src/styles/_functions.scss +114 -114
- package/src/styles/_global-variables.scss +230 -230
- package/src/styles/_icons.scss +23 -23
- package/src/styles/bootstrap/_grid.scss +33 -33
- package/src/styles/bootstrap/_reboot.scss +322 -322
- package/src/styles/components/_badge.scss +14 -14
- package/src/styles/components/_card.scss +21 -21
- package/src/styles/components/_link-icons.scss +37 -37
- package/src/styles/components/_splash.scss +188 -188
- package/src/styles/components/_tag.scss +18 -18
- package/src/styles/components/_unsupported-browsers.scss +23 -23
- package/src/styles/email/_email-base.scss +227 -227
- package/src/styles/email/email.scss +42 -42
- package/src/styles/index.scss +29 -29
- package/src/styles/mixins/_animations.scss +17 -17
- package/src/styles/mixins/_button-base.scss +206 -206
- package/src/styles/mixins/_card-base.scss +40 -40
- package/src/styles/mixins/_common.scss +51 -51
- package/src/styles/mixins/_dialog-base.scss +95 -95
- package/src/styles/mixins/_form-control-base.scss +662 -662
- package/src/styles/mixins/_login.scss +74 -74
- package/src/styles/mixins/_menu-base.scss +153 -153
- package/src/styles/mixins/_overlay-base.scss +32 -32
- package/src/styles/mixins/_resizable-base.scss +57 -57
- package/src/styles/mixins/_spinner-base.scss +34 -34
- package/src/styles/mixins/_table-base.scss +297 -297
- package/src/styles/mixins/_tabs-base.scss +146 -146
- package/src/styles/mixins/_tags-base.scss +121 -121
- package/src/styles/mixins/_text.scss +89 -89
- package/src/styles/mixins.scss +14 -14
- package/src/styles/utilities/_borders.scss +29 -29
- package/src/styles/utilities/_common.scss +49 -49
- package/src/styles/utilities/_layout.scss +115 -115
- package/src/styles/utilities/_spacing.scss +64 -64
- package/src/styles/utilities/_text.scss +139 -139
- package/types/energycap-components.d.ts +208 -9
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
// Animation
|
|
2
|
-
@use "sass:math";
|
|
3
|
-
|
|
4
|
-
@keyframes sk-bouncedelay {
|
|
5
|
-
0%, 80%, 100% {
|
|
6
|
-
opacity: 0;
|
|
7
|
-
} 40% {
|
|
8
|
-
opacity: 1;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@mixin spinner-dot($dot-size: .75rem) {
|
|
13
|
-
width: $dot-size;
|
|
14
|
-
height: $dot-size;
|
|
15
|
-
background-color: var(--ec-spinner-color, var(--ec-color-purple-5));
|
|
16
|
-
animation: sk-bouncedelay 1.7s infinite ease-in-out both;
|
|
17
|
-
margin-right: math.div($dot-size, 3);
|
|
18
|
-
|
|
19
|
-
&:nth-child(1) {
|
|
20
|
-
animation-delay: -0.60s;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&:nth-child(2) {
|
|
24
|
-
animation-delay: -0.40s;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&:nth-child(3) {
|
|
28
|
-
animation-delay: -0.20s;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@mixin spinner {
|
|
33
|
-
display: flex;
|
|
34
|
-
}
|
|
1
|
+
// Animation
|
|
2
|
+
@use "sass:math";
|
|
3
|
+
|
|
4
|
+
@keyframes sk-bouncedelay {
|
|
5
|
+
0%, 80%, 100% {
|
|
6
|
+
opacity: 0;
|
|
7
|
+
} 40% {
|
|
8
|
+
opacity: 1;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@mixin spinner-dot($dot-size: .75rem) {
|
|
13
|
+
width: $dot-size;
|
|
14
|
+
height: $dot-size;
|
|
15
|
+
background-color: var(--ec-spinner-color, var(--ec-color-purple-5));
|
|
16
|
+
animation: sk-bouncedelay 1.7s infinite ease-in-out both;
|
|
17
|
+
margin-right: math.div($dot-size, 3);
|
|
18
|
+
|
|
19
|
+
&:nth-child(1) {
|
|
20
|
+
animation-delay: -0.60s;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:nth-child(2) {
|
|
24
|
+
animation-delay: -0.40s;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:nth-child(3) {
|
|
28
|
+
animation-delay: -0.20s;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@mixin spinner {
|
|
33
|
+
display: flex;
|
|
34
|
+
}
|
|
@@ -1,298 +1,298 @@
|
|
|
1
|
-
@import '../core';
|
|
2
|
-
|
|
3
|
-
$table-row-bg-selected: var(--ec-background-color-selected);
|
|
4
|
-
$table-row-bg-hover: var(--ec-background-color-hover);
|
|
5
|
-
$table-row-bg-heading: #EBEDEE;
|
|
6
|
-
$table-cell-padding-x: .5rem;
|
|
7
|
-
$table-cell-padding-y: .5rem;
|
|
8
|
-
|
|
9
|
-
$table-z-indexes: (
|
|
10
|
-
th-resizable: var(--ec-z-index-sticky-header),
|
|
11
|
-
td-locked: calc(var(--ec-z-index-sticky-header) + 1),
|
|
12
|
-
th-locked: calc(var(--ec-z-index-sticky-header) + 2)
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
@mixin table-cell($type) {
|
|
16
|
-
height: 2rem;
|
|
17
|
-
line-height: 1rem;
|
|
18
|
-
padding: $table-cell-padding-x $table-cell-padding-y;
|
|
19
|
-
@include truncate;
|
|
20
|
-
|
|
21
|
-
@if $type == th {
|
|
22
|
-
border-bottom: 1px solid var(--ec-border-color-dark);
|
|
23
|
-
color: var(--ec-color-secondary-dark);
|
|
24
|
-
font-weight: normal;
|
|
25
|
-
vertical-align: middle;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@if $type == td {
|
|
29
|
-
border-top: 1px solid var(--ec-border-color);
|
|
30
|
-
vertical-align: top;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&:first-child {
|
|
34
|
-
padding-left: $table-cell-padding-x * 2;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&:last-child {
|
|
38
|
-
padding-right: $table-cell-padding-x * 2;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@mixin table-base {
|
|
43
|
-
border-collapse: separate;
|
|
44
|
-
border-spacing: 0;
|
|
45
|
-
width: 100%;
|
|
46
|
-
font-size: var(--ec-font-size-label);
|
|
47
|
-
|
|
48
|
-
th {
|
|
49
|
-
@include table-cell(th);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
td {
|
|
53
|
-
@include table-cell(td);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
tbody > tr:first-child td {
|
|
57
|
-
|
|
58
|
-
border-top: 0;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
tbody {
|
|
62
|
-
> tr.is-error {
|
|
63
|
-
@include table-row-status(error);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
> tr.is-success {
|
|
67
|
-
@include table-row-status(success);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
tfoot td {
|
|
72
|
-
font-weight: bold;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@mixin table-selectable {
|
|
77
|
-
thead th {
|
|
78
|
-
height: 2.5rem;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
tbody > tr:hover {
|
|
82
|
-
> td {
|
|
83
|
-
background-color: $table-row-bg-hover;
|
|
84
|
-
border-color: transparent;
|
|
85
|
-
cursor: pointer;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&.is-selected {
|
|
89
|
-
background-color: $table-row-bg-selected;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
& + tr > td {
|
|
93
|
-
border-color: $table-row-bg-hover;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
@mixin table-condensed() {
|
|
99
|
-
th,
|
|
100
|
-
td {
|
|
101
|
-
padding-top: .25rem;
|
|
102
|
-
padding-bottom: .25rem;
|
|
103
|
-
height: 1.5rem;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
@mixin table-row-heading {
|
|
108
|
-
color: var(--ec-color-secondary-dark);
|
|
109
|
-
font-size: var(--ec-font-size-label);
|
|
110
|
-
font-weight: var(--ec-font-weight-bold);
|
|
111
|
-
line-height: 1.333333333;
|
|
112
|
-
text-transform: uppercase;
|
|
113
|
-
padding-bottom: 0;
|
|
114
|
-
vertical-align: bottom;
|
|
115
|
-
border-top: 0;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
@mixin table-row-selected {
|
|
119
|
-
background-color: $table-row-bg-selected;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@mixin table-scrollable {
|
|
123
|
-
position: relative;
|
|
124
|
-
|
|
125
|
-
> thead th {
|
|
126
|
-
background-color: var(--ec-background-color);
|
|
127
|
-
position: sticky !important;
|
|
128
|
-
top: 0;
|
|
129
|
-
z-index: var(--ec-z-index-sticky-header);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
> tfoot td {
|
|
133
|
-
background-color: var(--ec-background-color);
|
|
134
|
-
position: sticky !important;
|
|
135
|
-
bottom: 0;
|
|
136
|
-
z-index: var(--ec-z-index-sticky-header);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
@mixin table-col-sort-icon() {
|
|
141
|
-
width: .875rem;
|
|
142
|
-
height: .875rem;
|
|
143
|
-
margin: 0 .25rem;
|
|
144
|
-
font-size: .75rem;
|
|
145
|
-
display: none;
|
|
146
|
-
align-items: center;
|
|
147
|
-
justify-content: center;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
@mixin icon-sort-asc {
|
|
151
|
-
font: var(--fa-font-solid);
|
|
152
|
-
content: "\f062";
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
@mixin table-col-sort() {
|
|
156
|
-
&.is-resizable {
|
|
157
|
-
.content-wrapper {
|
|
158
|
-
display: flex;
|
|
159
|
-
cursor: pointer;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.content {
|
|
163
|
-
flex: 0 1 auto;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.content-wrapper::after {
|
|
167
|
-
flex: none;
|
|
168
|
-
@include table-col-sort-icon;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
&.is-sorted-desc,
|
|
172
|
-
&.is-sorted-asc {
|
|
173
|
-
.content-wrapper::after {
|
|
174
|
-
@include icon-sort-asc;
|
|
175
|
-
display: inline-flex;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
&.is-sorted-desc {
|
|
180
|
-
.content-wrapper::after {
|
|
181
|
-
transform: scaleY(-1);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
&.text-right {
|
|
186
|
-
.content-wrapper {
|
|
187
|
-
flex-direction: row-reverse;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
&:not(.is-resizable) {
|
|
193
|
-
cursor: pointer;
|
|
194
|
-
|
|
195
|
-
&::after {
|
|
196
|
-
@include table-col-sort-icon;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
&.is-sorted-desc,
|
|
200
|
-
&.is-sorted-asc {
|
|
201
|
-
&::after {
|
|
202
|
-
@include icon-sort-asc;
|
|
203
|
-
display: inline-flex;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
&.is-sorted-desc::after {
|
|
208
|
-
transform: scaleY(-1);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
&.text-right {
|
|
212
|
-
&::after {
|
|
213
|
-
content: '';
|
|
214
|
-
display: none !important;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
&::before {
|
|
218
|
-
@include table-col-sort-icon;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
&.is-sorted-desc,
|
|
222
|
-
&.is-sorted-asc {
|
|
223
|
-
&::before {
|
|
224
|
-
@include icon-sort-asc;
|
|
225
|
-
display: inline-block;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
&.is-sorted-desc::before {
|
|
230
|
-
transform: scaleY(-1);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
@mixin table-action-widths($selector: '.actions') {
|
|
237
|
-
$action-width: 2rem;
|
|
238
|
-
@each $n in (1, 2, 3, 4, 5) {
|
|
239
|
-
#{$selector}-#{$n} {
|
|
240
|
-
width: ($action-width * $n) + .0625rem;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
@mixin table-master-cell {
|
|
246
|
-
width: 1.5rem;
|
|
247
|
-
padding: .25rem 0 !important;
|
|
248
|
-
vertical-align: top;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
@mixin table-detail-row() {
|
|
252
|
-
background-color: var(--ec-background-color-detail);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
@mixin table-detail-content() {
|
|
256
|
-
background-color: transparent;
|
|
257
|
-
border-top: 1px solid var(--ec-border-color);
|
|
258
|
-
padding: 1rem 2rem 1rem 0 !important;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
@mixin form-table() {
|
|
262
|
-
td {
|
|
263
|
-
padding-bottom: .25rem;
|
|
264
|
-
padding-top: .25rem;
|
|
265
|
-
height: 2.5rem;
|
|
266
|
-
line-height: 2rem;
|
|
267
|
-
border-top: 0;
|
|
268
|
-
font-size: var(--ec-font-size-body);
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
tr:first-child {
|
|
272
|
-
td {
|
|
273
|
-
padding-top: .5rem;
|
|
274
|
-
height: 2.75rem;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
tr:last-child {
|
|
279
|
-
td {
|
|
280
|
-
padding-bottom: .5rem;
|
|
281
|
-
height: 2.75rem;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
@mixin table-row-status($status) {
|
|
287
|
-
$bg-color: var(--ec-background-color-caution);
|
|
288
|
-
|
|
289
|
-
@if $status == error {
|
|
290
|
-
$bg-color: var(--ec-background-color-danger);
|
|
291
|
-
} @else if $status == success {
|
|
292
|
-
$bg-color: var(--ec-background-color-success);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
td {
|
|
296
|
-
background-color: $bg-color;
|
|
297
|
-
}
|
|
1
|
+
@import '../core';
|
|
2
|
+
|
|
3
|
+
$table-row-bg-selected: var(--ec-background-color-selected);
|
|
4
|
+
$table-row-bg-hover: var(--ec-background-color-hover);
|
|
5
|
+
$table-row-bg-heading: #EBEDEE;
|
|
6
|
+
$table-cell-padding-x: .5rem;
|
|
7
|
+
$table-cell-padding-y: .5rem;
|
|
8
|
+
|
|
9
|
+
$table-z-indexes: (
|
|
10
|
+
th-resizable: var(--ec-z-index-sticky-header),
|
|
11
|
+
td-locked: calc(var(--ec-z-index-sticky-header) + 1),
|
|
12
|
+
th-locked: calc(var(--ec-z-index-sticky-header) + 2)
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
@mixin table-cell($type) {
|
|
16
|
+
height: 2rem;
|
|
17
|
+
line-height: 1rem;
|
|
18
|
+
padding: $table-cell-padding-x $table-cell-padding-y;
|
|
19
|
+
@include truncate;
|
|
20
|
+
|
|
21
|
+
@if $type == th {
|
|
22
|
+
border-bottom: 1px solid var(--ec-border-color-dark);
|
|
23
|
+
color: var(--ec-color-secondary-dark);
|
|
24
|
+
font-weight: normal;
|
|
25
|
+
vertical-align: middle;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@if $type == td {
|
|
29
|
+
border-top: 1px solid var(--ec-border-color);
|
|
30
|
+
vertical-align: top;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:first-child {
|
|
34
|
+
padding-left: $table-cell-padding-x * 2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:last-child {
|
|
38
|
+
padding-right: $table-cell-padding-x * 2;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@mixin table-base {
|
|
43
|
+
border-collapse: separate;
|
|
44
|
+
border-spacing: 0;
|
|
45
|
+
width: 100%;
|
|
46
|
+
font-size: var(--ec-font-size-label);
|
|
47
|
+
|
|
48
|
+
th {
|
|
49
|
+
@include table-cell(th);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
td {
|
|
53
|
+
@include table-cell(td);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
tbody > tr:first-child td {
|
|
57
|
+
|
|
58
|
+
border-top: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
tbody {
|
|
62
|
+
> tr.is-error {
|
|
63
|
+
@include table-row-status(error);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
> tr.is-success {
|
|
67
|
+
@include table-row-status(success);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
tfoot td {
|
|
72
|
+
font-weight: bold;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@mixin table-selectable {
|
|
77
|
+
thead th {
|
|
78
|
+
height: 2.5rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
tbody > tr:hover {
|
|
82
|
+
> td {
|
|
83
|
+
background-color: $table-row-bg-hover;
|
|
84
|
+
border-color: transparent;
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&.is-selected {
|
|
89
|
+
background-color: $table-row-bg-selected;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
& + tr > td {
|
|
93
|
+
border-color: $table-row-bg-hover;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@mixin table-condensed() {
|
|
99
|
+
th,
|
|
100
|
+
td {
|
|
101
|
+
padding-top: .25rem;
|
|
102
|
+
padding-bottom: .25rem;
|
|
103
|
+
height: 1.5rem;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@mixin table-row-heading {
|
|
108
|
+
color: var(--ec-color-secondary-dark);
|
|
109
|
+
font-size: var(--ec-font-size-label);
|
|
110
|
+
font-weight: var(--ec-font-weight-bold);
|
|
111
|
+
line-height: 1.333333333;
|
|
112
|
+
text-transform: uppercase;
|
|
113
|
+
padding-bottom: 0;
|
|
114
|
+
vertical-align: bottom;
|
|
115
|
+
border-top: 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@mixin table-row-selected {
|
|
119
|
+
background-color: $table-row-bg-selected;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@mixin table-scrollable {
|
|
123
|
+
position: relative;
|
|
124
|
+
|
|
125
|
+
> thead th {
|
|
126
|
+
background-color: var(--ec-background-color);
|
|
127
|
+
position: sticky !important;
|
|
128
|
+
top: 0;
|
|
129
|
+
z-index: var(--ec-z-index-sticky-header);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
> tfoot td {
|
|
133
|
+
background-color: var(--ec-background-color);
|
|
134
|
+
position: sticky !important;
|
|
135
|
+
bottom: 0;
|
|
136
|
+
z-index: var(--ec-z-index-sticky-header);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@mixin table-col-sort-icon() {
|
|
141
|
+
width: .875rem;
|
|
142
|
+
height: .875rem;
|
|
143
|
+
margin: 0 .25rem;
|
|
144
|
+
font-size: .75rem;
|
|
145
|
+
display: none;
|
|
146
|
+
align-items: center;
|
|
147
|
+
justify-content: center;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@mixin icon-sort-asc {
|
|
151
|
+
font: var(--fa-font-solid);
|
|
152
|
+
content: "\f062";
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@mixin table-col-sort() {
|
|
156
|
+
&.is-resizable {
|
|
157
|
+
.content-wrapper {
|
|
158
|
+
display: flex;
|
|
159
|
+
cursor: pointer;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.content {
|
|
163
|
+
flex: 0 1 auto;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.content-wrapper::after {
|
|
167
|
+
flex: none;
|
|
168
|
+
@include table-col-sort-icon;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&.is-sorted-desc,
|
|
172
|
+
&.is-sorted-asc {
|
|
173
|
+
.content-wrapper::after {
|
|
174
|
+
@include icon-sort-asc;
|
|
175
|
+
display: inline-flex;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&.is-sorted-desc {
|
|
180
|
+
.content-wrapper::after {
|
|
181
|
+
transform: scaleY(-1);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&.text-right {
|
|
186
|
+
.content-wrapper {
|
|
187
|
+
flex-direction: row-reverse;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&:not(.is-resizable) {
|
|
193
|
+
cursor: pointer;
|
|
194
|
+
|
|
195
|
+
&::after {
|
|
196
|
+
@include table-col-sort-icon;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&.is-sorted-desc,
|
|
200
|
+
&.is-sorted-asc {
|
|
201
|
+
&::after {
|
|
202
|
+
@include icon-sort-asc;
|
|
203
|
+
display: inline-flex;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&.is-sorted-desc::after {
|
|
208
|
+
transform: scaleY(-1);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&.text-right {
|
|
212
|
+
&::after {
|
|
213
|
+
content: '';
|
|
214
|
+
display: none !important;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&::before {
|
|
218
|
+
@include table-col-sort-icon;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&.is-sorted-desc,
|
|
222
|
+
&.is-sorted-asc {
|
|
223
|
+
&::before {
|
|
224
|
+
@include icon-sort-asc;
|
|
225
|
+
display: inline-block;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
&.is-sorted-desc::before {
|
|
230
|
+
transform: scaleY(-1);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
@mixin table-action-widths($selector: '.actions') {
|
|
237
|
+
$action-width: 2rem;
|
|
238
|
+
@each $n in (1, 2, 3, 4, 5) {
|
|
239
|
+
#{$selector}-#{$n} {
|
|
240
|
+
width: ($action-width * $n) + .0625rem;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@mixin table-master-cell {
|
|
246
|
+
width: 1.5rem;
|
|
247
|
+
padding: .25rem 0 !important;
|
|
248
|
+
vertical-align: top;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
@mixin table-detail-row() {
|
|
252
|
+
background-color: var(--ec-background-color-detail);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
@mixin table-detail-content() {
|
|
256
|
+
background-color: transparent;
|
|
257
|
+
border-top: 1px solid var(--ec-border-color);
|
|
258
|
+
padding: 1rem 2rem 1rem 0 !important;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@mixin form-table() {
|
|
262
|
+
td {
|
|
263
|
+
padding-bottom: .25rem;
|
|
264
|
+
padding-top: .25rem;
|
|
265
|
+
height: 2.5rem;
|
|
266
|
+
line-height: 2rem;
|
|
267
|
+
border-top: 0;
|
|
268
|
+
font-size: var(--ec-font-size-body);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
tr:first-child {
|
|
272
|
+
td {
|
|
273
|
+
padding-top: .5rem;
|
|
274
|
+
height: 2.75rem;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
tr:last-child {
|
|
279
|
+
td {
|
|
280
|
+
padding-bottom: .5rem;
|
|
281
|
+
height: 2.75rem;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@mixin table-row-status($status) {
|
|
287
|
+
$bg-color: var(--ec-background-color-caution);
|
|
288
|
+
|
|
289
|
+
@if $status == error {
|
|
290
|
+
$bg-color: var(--ec-background-color-danger);
|
|
291
|
+
} @else if $status == success {
|
|
292
|
+
$bg-color: var(--ec-background-color-success);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
td {
|
|
296
|
+
background-color: $bg-color;
|
|
297
|
+
}
|
|
298
298
|
}
|