@exmg/exm-grid 1.0.6 → 1.0.7
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 +2 -2
- package/src/styles/exm-grid-base-toolbar-styles-css.d.ts +0 -1
- package/src/styles/exm-grid-base-toolbar-styles-css.js +101 -2
- package/src/styles/exm-grid-common-styles-css.d.ts +0 -1
- package/src/styles/exm-grid-common-styles-css.js +102 -2
- package/src/styles/exm-grid-pagination-styles-css.d.ts +0 -1
- package/src/styles/exm-grid-pagination-styles-css.js +102 -2
- package/src/styles/exm-grid-setting-selection-list-styles-css.d.ts +0 -1
- package/src/styles/exm-grid-setting-selection-list-styles-css.js +10 -2
- package/src/styles/exm-grid-styles-css.d.ts +0 -1
- package/src/styles/exm-grid-styles-css.js +410 -2
- package/src/styles/exm-grid-base-toolbar-styles.scss +0 -89
- package/src/styles/exm-grid-common-styles.scss +0 -1
- package/src/styles/exm-grid-pagination-styles.scss +0 -69
- package/src/styles/exm-grid-setting-selection-list-styles.scss +0 -8
- package/src/styles/exm-grid-styles.scss +0 -387
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exmg/exm-grid",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "exmg grid element",
|
|
6
6
|
"contributors": [
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "e7086831faea0bdfe8628b0de9b7ddcc45174558"
|
|
70
70
|
}
|
|
@@ -1,4 +1,103 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const style = css
|
|
3
|
-
|
|
2
|
+
export const style = css `
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
-moz-osx-font-smoothing: grayscale;
|
|
6
|
+
-webkit-font-smoothing: antialiased;
|
|
7
|
+
font-family: Roboto, sans-serif;
|
|
8
|
+
font-family: var(--mdc-typography-font-family, Roboto, sans-serif);
|
|
9
|
+
border-top-left-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
10
|
+
border-top-right-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
11
|
+
--toolbar-bg-color: var(--exm-theme-table-toolbar-background-color, var(--md-sys-color-surface-container));
|
|
12
|
+
--toolbar-color: var(--exm-theme-table-toolbar-color, var(--md-sys-color-on-surface-container));
|
|
13
|
+
background-color: var(--toolbar-bg-color);
|
|
14
|
+
color: var(--toolbar-color);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.wrapper {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex: 1;
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
align-items: center;
|
|
22
|
+
padding: 10px 16px 10px 16px;
|
|
23
|
+
overflow-x: var(--exm-theme-table-toolbar-overflow-x, initial);
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.wrapper.active {
|
|
28
|
+
--active-toolbar-bg-color: var(--exm-theme-table-toolbar-active-bg-color, var(--md-sys-color-secondary-container));
|
|
29
|
+
--active-toolbar-color: var(--exm-theme-table-toolbar-active-color, var(--md-sys-color-on-secondary-container));
|
|
30
|
+
background-color: var(--active-toolbar-bg-color);
|
|
31
|
+
color: var(--active-toolbar-color);
|
|
32
|
+
border-top-left-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
33
|
+
border-top-right-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.wrapper.active .seperator.with-action-separator {
|
|
37
|
+
border-left: 1px solid var(--active-toolbar-color);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.wrapper.active .description {
|
|
41
|
+
color: var(--active-toolbar-color);
|
|
42
|
+
flex: 1;
|
|
43
|
+
margin-left: 8px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.wrapper .seperator {
|
|
47
|
+
min-height: 32px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.wrapper .seperator.with-action-separator {
|
|
51
|
+
border-left: 1px solid var(--active-toolbar-color);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.wrapper .description {
|
|
55
|
+
-moz-osx-font-smoothing: grayscale;
|
|
56
|
+
-webkit-font-smoothing: antialiased;
|
|
57
|
+
font-family: Roboto, sans-serif;
|
|
58
|
+
font-family: var(--mdc-typography-headline5-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));
|
|
59
|
+
font-size: 1.5rem;
|
|
60
|
+
font-size: var(--mdc-typography-headline5-font-size, 1.5rem);
|
|
61
|
+
line-height: 2rem;
|
|
62
|
+
line-height: var(--mdc-typography-headline5-line-height, 2rem);
|
|
63
|
+
font-weight: 400;
|
|
64
|
+
font-weight: var(--mdc-typography-headline5-font-weight, 400);
|
|
65
|
+
letter-spacing: normal;
|
|
66
|
+
letter-spacing: var(--mdc-typography-headline5-letter-spacing, normal);
|
|
67
|
+
text-decoration: inherit;
|
|
68
|
+
text-decoration: var(--mdc-typography-headline5-text-decoration, inherit);
|
|
69
|
+
text-transform: inherit;
|
|
70
|
+
text-transform: var(--mdc-typography-headline5-text-transform, inherit);
|
|
71
|
+
color: var(--toolbar-color);
|
|
72
|
+
font-size: 1.25rem;
|
|
73
|
+
padding: 0;
|
|
74
|
+
height: 48px;
|
|
75
|
+
flex: 1;
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.actions {
|
|
81
|
+
padding: 0 8px 0 0;
|
|
82
|
+
color: var(--mdc-theme-primary);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.filters {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: row;
|
|
88
|
+
justify-content: flex-end;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.settings {
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: row;
|
|
94
|
+
justify-content: flex-end;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@media (max-width: 500px) {
|
|
98
|
+
.wrapper .description {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
`;
|
|
4
103
|
//# sourceMappingURL=exm-grid-base-toolbar-styles-css.js.map
|
|
@@ -1,4 +1,104 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const style = css
|
|
3
|
-
|
|
2
|
+
export const style = css `
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
-moz-osx-font-smoothing: grayscale;
|
|
6
|
+
-webkit-font-smoothing: antialiased;
|
|
7
|
+
font-family: Roboto, sans-serif;
|
|
8
|
+
font-family: var(--mdc-typography-font-family, Roboto, sans-serif);
|
|
9
|
+
color: var(--exm-theme-table-pagination-color, var(--md-sys-color-on-surface-container));
|
|
10
|
+
border-bottom-left-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
11
|
+
border-bottom-right-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.wrapper {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex: 1;
|
|
17
|
+
flex-direction: row;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: flex-end;
|
|
20
|
+
padding: 8px 10px;
|
|
21
|
+
white-space: nowrap;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.wrapper .page-size {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: row;
|
|
27
|
+
margin-right: 26px;
|
|
28
|
+
align-items: center;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.wrapper .page-size .page-size-label {
|
|
32
|
+
margin-right: 10px;
|
|
33
|
+
-moz-osx-font-smoothing: grayscale;
|
|
34
|
+
-webkit-font-smoothing: antialiased;
|
|
35
|
+
font-family: Roboto, sans-serif;
|
|
36
|
+
font-family: var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));
|
|
37
|
+
font-size: 0.875rem;
|
|
38
|
+
font-size: var(--mdc-typography-body2-font-size, 0.875rem);
|
|
39
|
+
line-height: 1.25rem;
|
|
40
|
+
line-height: var(--mdc-typography-body2-line-height, 1.25rem);
|
|
41
|
+
font-weight: 400;
|
|
42
|
+
font-weight: var(--mdc-typography-body2-font-weight, 400);
|
|
43
|
+
letter-spacing: 0.0178571429em;
|
|
44
|
+
letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em);
|
|
45
|
+
text-decoration: inherit;
|
|
46
|
+
text-decoration: var(--mdc-typography-body2-text-decoration, inherit);
|
|
47
|
+
text-transform: inherit;
|
|
48
|
+
text-transform: var(--mdc-typography-body2-text-transform, inherit);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.wrapper .page-range {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: row;
|
|
54
|
+
align-items: center;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.wrapper .page-range .page-range-label {
|
|
58
|
+
margin-right: 44px;
|
|
59
|
+
-moz-osx-font-smoothing: grayscale;
|
|
60
|
+
-webkit-font-smoothing: antialiased;
|
|
61
|
+
font-family: Roboto, sans-serif;
|
|
62
|
+
font-family: var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));
|
|
63
|
+
font-size: 0.875rem;
|
|
64
|
+
font-size: var(--mdc-typography-body2-font-size, 0.875rem);
|
|
65
|
+
line-height: 1.25rem;
|
|
66
|
+
line-height: var(--mdc-typography-body2-line-height, 1.25rem);
|
|
67
|
+
font-weight: 400;
|
|
68
|
+
font-weight: var(--mdc-typography-body2-font-weight, 400);
|
|
69
|
+
letter-spacing: 0.0178571429em;
|
|
70
|
+
letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em);
|
|
71
|
+
text-decoration: inherit;
|
|
72
|
+
text-decoration: var(--mdc-typography-body2-text-decoration, inherit);
|
|
73
|
+
text-transform: inherit;
|
|
74
|
+
text-transform: var(--mdc-typography-body2-text-transform, inherit);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.wrapper .page-range .page-range-actions {
|
|
78
|
+
user-select: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@media (max-width: 600px) {
|
|
82
|
+
.page-size-label {
|
|
83
|
+
display: none;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (max-width: 500px) {
|
|
88
|
+
.wrapper .page-size {
|
|
89
|
+
display: none;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@media (max-width: 450px) {
|
|
94
|
+
.wrapper {
|
|
95
|
+
overflow-x: auto;
|
|
96
|
+
white-space: nowrap;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.wrapper .page-range {
|
|
100
|
+
min-width: 1px;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
`;
|
|
4
104
|
//# sourceMappingURL=exm-grid-common-styles-css.js.map
|
|
@@ -1,4 +1,104 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const style = css
|
|
3
|
-
|
|
2
|
+
export const style = css `
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
-moz-osx-font-smoothing: grayscale;
|
|
6
|
+
-webkit-font-smoothing: antialiased;
|
|
7
|
+
font-family: Roboto, sans-serif;
|
|
8
|
+
font-family: var(--mdc-typography-font-family, Roboto, sans-serif);
|
|
9
|
+
color: var(--exm-theme-table-pagination-color, var(--md-sys-color-on-surface-container));
|
|
10
|
+
border-bottom-left-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
11
|
+
border-bottom-right-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.wrapper {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex: 1;
|
|
17
|
+
flex-direction: row;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: flex-end;
|
|
20
|
+
padding: 8px 10px;
|
|
21
|
+
white-space: nowrap;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.wrapper .page-size {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: row;
|
|
27
|
+
margin-right: 26px;
|
|
28
|
+
align-items: center;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.wrapper .page-size .page-size-label {
|
|
32
|
+
margin-right: 10px;
|
|
33
|
+
-moz-osx-font-smoothing: grayscale;
|
|
34
|
+
-webkit-font-smoothing: antialiased;
|
|
35
|
+
font-family: Roboto, sans-serif;
|
|
36
|
+
font-family: var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));
|
|
37
|
+
font-size: 0.875rem;
|
|
38
|
+
font-size: var(--mdc-typography-body2-font-size, 0.875rem);
|
|
39
|
+
line-height: 1.25rem;
|
|
40
|
+
line-height: var(--mdc-typography-body2-line-height, 1.25rem);
|
|
41
|
+
font-weight: 400;
|
|
42
|
+
font-weight: var(--mdc-typography-body2-font-weight, 400);
|
|
43
|
+
letter-spacing: 0.0178571429em;
|
|
44
|
+
letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em);
|
|
45
|
+
text-decoration: inherit;
|
|
46
|
+
text-decoration: var(--mdc-typography-body2-text-decoration, inherit);
|
|
47
|
+
text-transform: inherit;
|
|
48
|
+
text-transform: var(--mdc-typography-body2-text-transform, inherit);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.wrapper .page-range {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: row;
|
|
54
|
+
align-items: center;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.wrapper .page-range .page-range-label {
|
|
58
|
+
margin-right: 44px;
|
|
59
|
+
-moz-osx-font-smoothing: grayscale;
|
|
60
|
+
-webkit-font-smoothing: antialiased;
|
|
61
|
+
font-family: Roboto, sans-serif;
|
|
62
|
+
font-family: var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));
|
|
63
|
+
font-size: 0.875rem;
|
|
64
|
+
font-size: var(--mdc-typography-body2-font-size, 0.875rem);
|
|
65
|
+
line-height: 1.25rem;
|
|
66
|
+
line-height: var(--mdc-typography-body2-line-height, 1.25rem);
|
|
67
|
+
font-weight: 400;
|
|
68
|
+
font-weight: var(--mdc-typography-body2-font-weight, 400);
|
|
69
|
+
letter-spacing: 0.0178571429em;
|
|
70
|
+
letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em);
|
|
71
|
+
text-decoration: inherit;
|
|
72
|
+
text-decoration: var(--mdc-typography-body2-text-decoration, inherit);
|
|
73
|
+
text-transform: inherit;
|
|
74
|
+
text-transform: var(--mdc-typography-body2-text-transform, inherit);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.wrapper .page-range .page-range-actions {
|
|
78
|
+
user-select: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@media (max-width: 600px) {
|
|
82
|
+
.page-size-label {
|
|
83
|
+
display: none;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (max-width: 500px) {
|
|
88
|
+
.wrapper .page-size {
|
|
89
|
+
display: none;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@media (max-width: 450px) {
|
|
94
|
+
.wrapper {
|
|
95
|
+
overflow-x: auto;
|
|
96
|
+
white-space: nowrap;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.wrapper .page-range {
|
|
100
|
+
min-width: 1px;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
`;
|
|
4
104
|
//# sourceMappingURL=exm-grid-pagination-styles-css.js.map
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const style = css
|
|
3
|
-
|
|
2
|
+
export const style = css `
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.action {
|
|
9
|
+
color: var(--mdc-theme-primary);
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
4
12
|
//# sourceMappingURL=exm-grid-setting-selection-list-styles-css.js.map
|
|
@@ -1,4 +1,412 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const style = css `:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-font-family, Roboto, sans-serif);display:block;--exm-arrow-upward-url: url("/node_modules/@exmg/exm-grid/assets/arrow-upward.svg");--exm-table-card-width: var(--exm-theme-table-card-width, 100%);--exm-table-card-margin-bottom: var(--exm-theme-table-card-margin-bottom, 5px);--exm-table-color: var(--exm-theme-table-on-surface, var(--md-sys-color-on-surface-container));--exm-table-card-background-color: var(--exm-theme-table-surface, var(--md-sys-color-surface-container));--exm-table-row-divider-color: var(--exm-theme-table-row-divider-color, var(--md-sys-color-surface-variant));--exm-table-row-selected-color: var(--exm-theme-table-row-selected-color, var(--md-sys-color-on-secondary-container));--exm-table-row-selected-background-color: var( --exm-theme-table-row-selected-background-color, var(--md-sys-color-secondary-container) );--exm-table-row-hover-color: var(--exm-theme-table-row-hover-color, var(--md-sys-color-on-surface));--exm-table-row-hover-background-color: var( --exm-theme-table-row-hover-background-color, var(--md-sys-color-surface-container-highest) );--exm-table-row-dragged-background-color: var( --exm-theme-table-row-dragged-background-color, var(--md-sys-color-surface-container-low) );--exm-table-rows-expanded-divider-border: var(--exm-theme-table-rows-expanded-divider-border, none);--exm-table-rows-expanded-border: var(--exm-theme-table-rows-expanded-border, none);--exm-table-rows-expanded-background-color: var( --exm-theme-table-rows-expanded-background-color, var(--md-sys-color-surface-container-low) );--exm-table-rows-expanded-color: var(--exm-theme-table-rows-expanded-color, var(--md-sys-color-on-surface));--exm-table-th-color: var(--exm-theme-table-th-on-surface, var(--md-sys-color-on-surface-container));--exm-table-th-background-color: var(--exm-theme-table-th-surface, var(--md-sys-color-surface-container));--exm-table-th-sortable-hover-color: var(--exm-theme-table-th-sortable-hover-color, var(--md-sys-color-on-surface));--exm-table-columns-background-color: var(--exm-theme-table-columns-background-color, var(--md-sys-color-surface));--exm-table-th-height: var(--exm-theme-table-th-height, 48px);--exm-table-th-sort-margin-left: var(--exm-theme-table-th-sort-margin-left, 0px);--exm-table-td-height: var(--exm-theme-table-td-height, 48px);--exm-table-th-sort-icon-height: var(--exm-theme-table-th-sort-icon-height, 1em);--exm-table-th-sort-icon-width: var(--exm-theme-table-th-sort-icon-width, 1em);--exm-table-col-number-padding-right: var(--exm-theme-table-col-number-padding-right, 10px);--exm-table-checkbox-cell-width: var(--exm-theme-table-checkbox-cell-width, 24px);--exm-paper-combobox-selected-item-color: var(var(--md-sys-color-primary), #000000);--exm-paper-combobox-color: var(--md-sys-color-on-surface);--exm-table-toolbar-setting-position: var(--exm-theme-table-toolbar-setting-position, absolute)}::slotted([slot=pagination]){display:flex;align-items:center;justify-content:flex-end;border-top:1px solid var(--exm-table-row-divider-color)}::slotted([slot=toolbar]){display:block}.table-card-container{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-font-family, Roboto, sans-serif);border:none;width:var(--exm-table-card-width);margin:0;padding:0;box-shadow:var(--exm-theme-table-box-shadow, none)}:host([with-toolbar]) .table-card{border-top:1px solid var(--exm-table-row-divider-color)}.table-card{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-font-family, Roboto, sans-serif);border:none;border-bottom-left-radius:4px;border-bottom-right-radius:4px;width:var(--exm-table-card-width);background-color:var(--exm-table-card-background-color);margin-bottom:var(--exm-table-card-margin-bottom);border-top-left-radius:var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));border-top-right-radius:var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));border-bottom-left-radius:var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));border-bottom-right-radius:var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px))}table{width:100%;color:var(--exm-table-color);border-spacing:0;border:none}table[data-table-layout=fixed]{table-layout:fixed}table[data-table-layout=fixed] td:not(.grid-checkbox-cell):not(.menu-cell){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}table[data-table-layout=fixed] th.grid-checkbox-cell,table[data-table-layout=fixed] td.grid-checkbox-cell{width:var(--exm-table-checkbox-cell-width)}table[data-table-layout=fixed] th.no-ellipsis,table[data-table-layout=fixed] td.no-ellipsis{text-overflow:initial}table thead tr,table thead th{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}table tbody tr,table tbody td,table tfoot tr,table tfoot td{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit)}td{height:var(--exm-table-td-height)}.grid-toolbar th{padding:0;text-align:left}.grid-toolbar th>*{overflow-x:auto}.grid-columns th{height:var(--exm-table-th-height);font-weight:500;font-style:normal;font-stretch:normal;text-transform:uppercase;line-height:1.33;letter-spacing:2px;color:var(--exm-table-th-color);background-color:var(--exm-table-th-background-color);vertical-align:middle;text-align:left;user-select:none;white-space:nowrap}.grid-columns th>span{vertical-align:middle;max-width:100%;display:inline-block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.grid-columns th svg{fill:var(--exm-table-th-color)}.grid-columns th,tbody td{padding-left:16px}.grid-columns th:last-child,tbody td:last-child{padding-right:10px}th,td{border-top:1px solid var(--exm-table-row-divider-color)}tbody td{height:var(--exm-table-td-height);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);font-weight:normal;font-style:normal;font-stretch:normal;line-height:1.43px;letter-spacing:.3px;color:var(--exm-table-color)}tbody td svg{fill:var(--exm-table-color)}th[data-sort]{cursor:pointer}th[data-sort]:hover{color:var(--exm-table-th-sortable-hover-color)}th[data-sort]::after{display:inline-block;content:"";-webkit-mask-image:var(--exm-arrow-upward-url);mask-image:var(--exm-arrow-upward-url);background-color:currentColor;background-size:contain;height:var(--exm-table-th-sort-icon-height);width:var(--exm-table-th-sort-icon-width);margin-left:var(--exm-table-th-sort-margin-left);vertical-align:middle;opacity:0}th[data-sort-direction]::after{opacity:1;transition:transform .1s linear}th[data-sort-direction=ASC]::after{transform:rotate(0deg)}th[data-sort-direction=DESC]::after{transform:rotate(180deg)}tbody>tr:not(.grid-row-detail):hover{color:var(--exm-table-row-hover-color);background-color:var(--exm-table-row-hover-background-color)}tbody>tr:not(.grid-row-detail):hover td{color:var(--exm-table-row-hover-color)}tbody>tr:not(.grid-row-detail):hover svg{fill:var(--exm-table-row-hover-color)}tr[data-selected]{color:var(--exm-table-row-selected-color);background-color:var(--exm-table-row-selected-background-color)}tr[data-selected] td{color:var(--exm-table-row-selected-color)}tr[data-selected] svg{fill:var(--exm-table-row-selected-color)}tbody tr[data-has-expanded-detail],tbody tr[data-has-expanded-detail]:hover,tbody tr[data-is-row-expanded]{background-color:var(--exm-table-rows-expanded-background-color);border:var(--exm-table-rows-expanded-border)}tbody tr[data-has-expanded-detail] td,tbody tr[data-has-expanded-detail]:hover td,tbody tr[data-is-row-expanded] td{color:var(--exm-table-rows-expanded-color)}tbody tr[data-has-expanded-detail] td svg,tbody tr[data-has-expanded-detail]:hover td svg,tbody tr[data-is-row-expanded] td svg{fill:var(--exm-table-rows-expanded-color)}tbody tr[data-is-row-expanded] td{border-bottom:none}tbody tr[data-has-expanded-detail] td,tbody tr[data-has-expanded-detail]:hover td{border-bottom:var(--exm-table-rows-expanded-divider-border)}tr.grid-row-detail{display:none}tr.grid-row-detail[data-is-row-expanded]{display:table-row}tr.grid-row-detail td{padding:20px}tr .grid-icon-rotate[data-is-expanded]>*{transition:transform .1s linear;transform:rotate(180deg)}tr .grid-icon-rotate[data-is-expandable]:not([data-is-expanded])>*{transition:transform .1s linear;transform:rotate(0deg)}.grid-row-drag-handler{cursor:move;vertical-align:middle}.grid-row-drag-handler>*{vertical-align:middle}tr.dragged{background-color:var(--exm-table-row-dragged-background-color);opacity:.25;box-shadow:2px 2px 5px rgba(0,0,0,.5) inset}tr.cloned{background-color:var(--exm-table-row-dragged-background-color);width:100%;box-sizing:border-box;box-shadow:2px 2px 5px rgba(0,0,0,.5);opacity:.9}tr td.grid-cell-visible-on-hover{text-align:center}tr td.grid-cell-visible-on-hover>*{visibility:hidden}tr:hover td.grid-cell-visible-on-hover>*,tr[data-has-expanded-detail] td.grid-cell-visible-on-hover>*{visibility:visible}tr td.grid-col-number,tr th.grid-col-number{padding-right:var(--exm-table-col-number-padding-right);text-align:right}tr th.grid-col-number>span{width:100%}`;
|
|
3
|
-
|
|
2
|
+
export const style = css `
|
|
3
|
+
:host {
|
|
4
|
+
-moz-osx-font-smoothing: grayscale;
|
|
5
|
+
-webkit-font-smoothing: antialiased;
|
|
6
|
+
font-family: Roboto, sans-serif;
|
|
7
|
+
font-family: var(--mdc-typography-font-family, Roboto, sans-serif);
|
|
8
|
+
display: block;
|
|
9
|
+
--exm-arrow-upward-url: url('/node_modules/@exmg/exm-grid/assets/arrow-upward.svg');
|
|
10
|
+
--exm-table-card-width: var(--exm-theme-table-card-width, 100%);
|
|
11
|
+
--exm-table-card-margin-bottom: var(--exm-theme-table-card-margin-bottom, 5px);
|
|
12
|
+
--exm-table-color: var(--exm-theme-table-on-surface, var(--md-sys-color-on-surface-container));
|
|
13
|
+
--exm-table-card-background-color: var(--exm-theme-table-surface, var(--md-sys-color-surface-container));
|
|
14
|
+
--exm-table-row-divider-color: var(--exm-theme-table-row-divider-color, var(--md-sys-color-surface-variant));
|
|
15
|
+
--exm-table-row-selected-color: var(
|
|
16
|
+
--exm-theme-table-row-selected-color,
|
|
17
|
+
var(--md-sys-color-on-secondary-container)
|
|
18
|
+
);
|
|
19
|
+
--exm-table-row-selected-background-color: var(
|
|
20
|
+
--exm-theme-table-row-selected-background-color,
|
|
21
|
+
var(--md-sys-color-secondary-container)
|
|
22
|
+
);
|
|
23
|
+
--exm-table-row-hover-color: var(--exm-theme-table-row-hover-color, var(--md-sys-color-on-surface));
|
|
24
|
+
--exm-table-row-hover-background-color: var(
|
|
25
|
+
--exm-theme-table-row-hover-background-color,
|
|
26
|
+
var(--md-sys-color-surface-container-highest)
|
|
27
|
+
);
|
|
28
|
+
--exm-table-row-dragged-background-color: var(
|
|
29
|
+
--exm-theme-table-row-dragged-background-color,
|
|
30
|
+
var(--md-sys-color-surface-container-low)
|
|
31
|
+
);
|
|
32
|
+
--exm-table-rows-expanded-divider-border: var(--exm-theme-table-rows-expanded-divider-border, none);
|
|
33
|
+
--exm-table-rows-expanded-border: var(--exm-theme-table-rows-expanded-border, none);
|
|
34
|
+
--exm-table-rows-expanded-background-color: var(
|
|
35
|
+
--exm-theme-table-rows-expanded-background-color,
|
|
36
|
+
var(--md-sys-color-surface-container-low)
|
|
37
|
+
);
|
|
38
|
+
--exm-table-rows-expanded-color: var(--exm-theme-table-rows-expanded-color, var(--md-sys-color-on-surface));
|
|
39
|
+
--exm-table-th-color: var(--exm-theme-table-th-on-surface, var(--md-sys-color-on-surface-container));
|
|
40
|
+
--exm-table-th-background-color: var(--exm-theme-table-th-surface, var(--md-sys-color-surface-container));
|
|
41
|
+
--exm-table-th-sortable-hover-color: var(--exm-theme-table-th-sortable-hover-color, var(--md-sys-color-on-surface));
|
|
42
|
+
--exm-table-columns-background-color: var(--exm-theme-table-columns-background-color, var(--md-sys-color-surface));
|
|
43
|
+
--exm-table-th-height: var(--exm-theme-table-th-height, 48px);
|
|
44
|
+
--exm-table-th-sort-margin-left: var(--exm-theme-table-th-sort-margin-left, 0px);
|
|
45
|
+
--exm-table-td-height: var(--exm-theme-table-td-height, 48px);
|
|
46
|
+
--exm-table-th-sort-icon-height: var(--exm-theme-table-th-sort-icon-height, 1em);
|
|
47
|
+
--exm-table-th-sort-icon-width: var(--exm-theme-table-th-sort-icon-width, 1em);
|
|
48
|
+
--exm-table-col-number-padding-right: var(--exm-theme-table-col-number-padding-right, 10px);
|
|
49
|
+
--exm-table-checkbox-cell-width: var(--exm-theme-table-checkbox-cell-width, 24px);
|
|
50
|
+
--exm-paper-combobox-selected-item-color: var(var(--md-sys-color-primary), #000000);
|
|
51
|
+
--exm-paper-combobox-color: var(--md-sys-color-on-surface);
|
|
52
|
+
--exm-table-toolbar-setting-position: var(--exm-theme-table-toolbar-setting-position, absolute);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
::slotted([slot='pagination']) {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: flex-end;
|
|
59
|
+
border-top: 1px solid var(--exm-table-row-divider-color);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
::slotted([slot='toolbar']) {
|
|
63
|
+
display: block;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.table-card-container {
|
|
67
|
+
-moz-osx-font-smoothing: grayscale;
|
|
68
|
+
-webkit-font-smoothing: antialiased;
|
|
69
|
+
font-family: Roboto, sans-serif;
|
|
70
|
+
font-family: var(--mdc-typography-font-family, Roboto, sans-serif);
|
|
71
|
+
border: none;
|
|
72
|
+
width: var(--exm-table-card-width);
|
|
73
|
+
margin: 0;
|
|
74
|
+
padding: 0;
|
|
75
|
+
box-shadow: var(--exm-theme-table-box-shadow, none);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:host([with-toolbar]) .table-card {
|
|
79
|
+
border-top: 1px solid var(--exm-table-row-divider-color);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.table-card {
|
|
83
|
+
-moz-osx-font-smoothing: grayscale;
|
|
84
|
+
-webkit-font-smoothing: antialiased;
|
|
85
|
+
font-family: Roboto, sans-serif;
|
|
86
|
+
font-family: var(--mdc-typography-font-family, Roboto, sans-serif);
|
|
87
|
+
border: none;
|
|
88
|
+
border-bottom-left-radius: 4px;
|
|
89
|
+
border-bottom-right-radius: 4px;
|
|
90
|
+
width: var(--exm-table-card-width);
|
|
91
|
+
background-color: var(--exm-table-card-background-color);
|
|
92
|
+
margin-bottom: var(--exm-table-card-margin-bottom);
|
|
93
|
+
border-top-left-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
94
|
+
border-top-right-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
95
|
+
border-bottom-left-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
96
|
+
border-bottom-right-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
table {
|
|
100
|
+
width: 100%;
|
|
101
|
+
color: var(--exm-table-color);
|
|
102
|
+
border-spacing: 0;
|
|
103
|
+
border: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
table[data-table-layout='fixed'] {
|
|
107
|
+
table-layout: fixed;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
table[data-table-layout='fixed'] td:not(.grid-checkbox-cell):not(.menu-cell) {
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
white-space: nowrap;
|
|
113
|
+
text-overflow: ellipsis;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
table[data-table-layout='fixed'] th.grid-checkbox-cell,
|
|
117
|
+
table[data-table-layout='fixed'] td.grid-checkbox-cell {
|
|
118
|
+
width: var(--exm-table-checkbox-cell-width);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
table[data-table-layout='fixed'] th.no-ellipsis,
|
|
122
|
+
table[data-table-layout='fixed'] td.no-ellipsis {
|
|
123
|
+
text-overflow: initial;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
table thead tr,
|
|
127
|
+
table thead th {
|
|
128
|
+
-moz-osx-font-smoothing: grayscale;
|
|
129
|
+
-webkit-font-smoothing: antialiased;
|
|
130
|
+
font-family: Roboto, sans-serif;
|
|
131
|
+
font-family: var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));
|
|
132
|
+
font-size: 0.75rem;
|
|
133
|
+
font-size: var(--mdc-typography-caption-font-size, 0.75rem);
|
|
134
|
+
line-height: 1.25rem;
|
|
135
|
+
line-height: var(--mdc-typography-caption-line-height, 1.25rem);
|
|
136
|
+
font-weight: 400;
|
|
137
|
+
font-weight: var(--mdc-typography-caption-font-weight, 400);
|
|
138
|
+
letter-spacing: 0.0333333333em;
|
|
139
|
+
letter-spacing: var(--mdc-typography-caption-letter-spacing, 0.0333333333em);
|
|
140
|
+
text-decoration: inherit;
|
|
141
|
+
text-decoration: var(--mdc-typography-caption-text-decoration, inherit);
|
|
142
|
+
text-transform: inherit;
|
|
143
|
+
text-transform: var(--mdc-typography-caption-text-transform, inherit);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
table tbody tr,
|
|
147
|
+
table tbody td,
|
|
148
|
+
table tfoot tr,
|
|
149
|
+
table tfoot td {
|
|
150
|
+
-moz-osx-font-smoothing: grayscale;
|
|
151
|
+
-webkit-font-smoothing: antialiased;
|
|
152
|
+
font-family: Roboto, sans-serif;
|
|
153
|
+
font-family: var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));
|
|
154
|
+
font-size: 0.875rem;
|
|
155
|
+
font-size: var(--mdc-typography-body2-font-size, 0.875rem);
|
|
156
|
+
line-height: 1.25rem;
|
|
157
|
+
line-height: var(--mdc-typography-body2-line-height, 1.25rem);
|
|
158
|
+
font-weight: 400;
|
|
159
|
+
font-weight: var(--mdc-typography-body2-font-weight, 400);
|
|
160
|
+
letter-spacing: 0.0178571429em;
|
|
161
|
+
letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em);
|
|
162
|
+
text-decoration: inherit;
|
|
163
|
+
text-decoration: var(--mdc-typography-body2-text-decoration, inherit);
|
|
164
|
+
text-transform: inherit;
|
|
165
|
+
text-transform: var(--mdc-typography-body2-text-transform, inherit);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
td {
|
|
169
|
+
height: var(--exm-table-td-height);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.grid-toolbar th {
|
|
173
|
+
padding: 0;
|
|
174
|
+
text-align: left;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.grid-toolbar th > * {
|
|
178
|
+
overflow-x: auto;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.grid-columns th {
|
|
182
|
+
height: var(--exm-table-th-height);
|
|
183
|
+
font-weight: 500;
|
|
184
|
+
font-style: normal;
|
|
185
|
+
font-stretch: normal;
|
|
186
|
+
text-transform: uppercase;
|
|
187
|
+
line-height: 1.33;
|
|
188
|
+
letter-spacing: 2px;
|
|
189
|
+
color: var(--exm-table-th-color);
|
|
190
|
+
background-color: var(--exm-table-th-background-color);
|
|
191
|
+
vertical-align: middle;
|
|
192
|
+
text-align: left;
|
|
193
|
+
user-select: none;
|
|
194
|
+
white-space: nowrap;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.grid-columns th > span {
|
|
198
|
+
vertical-align: middle;
|
|
199
|
+
max-width: 100%;
|
|
200
|
+
display: inline-block;
|
|
201
|
+
overflow: hidden;
|
|
202
|
+
white-space: nowrap;
|
|
203
|
+
text-overflow: ellipsis;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.grid-columns th svg {
|
|
207
|
+
fill: var(--exm-table-th-color);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.grid-columns th,
|
|
211
|
+
tbody td {
|
|
212
|
+
padding-left: 16px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.grid-columns th:last-child,
|
|
216
|
+
tbody td:last-child {
|
|
217
|
+
padding-right: 10px;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
th,
|
|
221
|
+
td {
|
|
222
|
+
border-top: 1px solid var(--exm-table-row-divider-color);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
tbody td {
|
|
226
|
+
height: var(--exm-table-td-height);
|
|
227
|
+
-moz-osx-font-smoothing: grayscale;
|
|
228
|
+
-webkit-font-smoothing: antialiased;
|
|
229
|
+
font-family: Roboto, sans-serif;
|
|
230
|
+
font-family: var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));
|
|
231
|
+
font-size: 0.875rem;
|
|
232
|
+
font-size: var(--mdc-typography-body2-font-size, 0.875rem);
|
|
233
|
+
line-height: 1.25rem;
|
|
234
|
+
line-height: var(--mdc-typography-body2-line-height, 1.25rem);
|
|
235
|
+
font-weight: 400;
|
|
236
|
+
font-weight: var(--mdc-typography-body2-font-weight, 400);
|
|
237
|
+
letter-spacing: 0.0178571429em;
|
|
238
|
+
letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em);
|
|
239
|
+
text-decoration: inherit;
|
|
240
|
+
text-decoration: var(--mdc-typography-body2-text-decoration, inherit);
|
|
241
|
+
text-transform: inherit;
|
|
242
|
+
text-transform: var(--mdc-typography-body2-text-transform, inherit);
|
|
243
|
+
font-weight: normal;
|
|
244
|
+
font-style: normal;
|
|
245
|
+
font-stretch: normal;
|
|
246
|
+
line-height: 1.43px;
|
|
247
|
+
letter-spacing: 0.3px;
|
|
248
|
+
color: var(--exm-table-color);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
tbody td svg {
|
|
252
|
+
fill: var(--exm-table-color);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
th[data-sort] {
|
|
256
|
+
cursor: pointer;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
th[data-sort]:hover {
|
|
260
|
+
color: var(--exm-table-th-sortable-hover-color);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
th[data-sort]::after {
|
|
264
|
+
display: inline-block;
|
|
265
|
+
content: '';
|
|
266
|
+
-webkit-mask-image: var(--exm-arrow-upward-url);
|
|
267
|
+
mask-image: var(--exm-arrow-upward-url);
|
|
268
|
+
background-color: currentColor;
|
|
269
|
+
background-size: contain;
|
|
270
|
+
height: var(--exm-table-th-sort-icon-height);
|
|
271
|
+
width: var(--exm-table-th-sort-icon-width);
|
|
272
|
+
margin-left: var(--exm-table-th-sort-margin-left);
|
|
273
|
+
vertical-align: middle;
|
|
274
|
+
opacity: 0;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
th[data-sort-direction]::after {
|
|
278
|
+
opacity: 1;
|
|
279
|
+
transition: transform 0.1s linear;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
th[data-sort-direction='ASC']::after {
|
|
283
|
+
transform: rotate(0deg);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
th[data-sort-direction='DESC']::after {
|
|
287
|
+
transform: rotate(180deg);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
tbody > tr:not(.grid-row-detail):hover {
|
|
291
|
+
color: var(--exm-table-row-hover-color);
|
|
292
|
+
background-color: var(--exm-table-row-hover-background-color);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
tbody > tr:not(.grid-row-detail):hover td {
|
|
296
|
+
color: var(--exm-table-row-hover-color);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
tbody > tr:not(.grid-row-detail):hover svg {
|
|
300
|
+
fill: var(--exm-table-row-hover-color);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
tr[data-selected] {
|
|
304
|
+
color: var(--exm-table-row-selected-color);
|
|
305
|
+
background-color: var(--exm-table-row-selected-background-color);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
tr[data-selected] td {
|
|
309
|
+
color: var(--exm-table-row-selected-color);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
tr[data-selected] svg {
|
|
313
|
+
fill: var(--exm-table-row-selected-color);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
tbody tr[data-has-expanded-detail],
|
|
317
|
+
tbody tr[data-has-expanded-detail]:hover,
|
|
318
|
+
tbody tr[data-is-row-expanded] {
|
|
319
|
+
background-color: var(--exm-table-rows-expanded-background-color);
|
|
320
|
+
border: var(--exm-table-rows-expanded-border);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
tbody tr[data-has-expanded-detail] td,
|
|
324
|
+
tbody tr[data-has-expanded-detail]:hover td,
|
|
325
|
+
tbody tr[data-is-row-expanded] td {
|
|
326
|
+
color: var(--exm-table-rows-expanded-color);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
tbody tr[data-has-expanded-detail] td svg,
|
|
330
|
+
tbody tr[data-has-expanded-detail]:hover td svg,
|
|
331
|
+
tbody tr[data-is-row-expanded] td svg {
|
|
332
|
+
fill: var(--exm-table-rows-expanded-color);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
tbody tr[data-is-row-expanded] td {
|
|
336
|
+
border-bottom: none;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
tbody tr[data-has-expanded-detail] td,
|
|
340
|
+
tbody tr[data-has-expanded-detail]:hover td {
|
|
341
|
+
border-bottom: var(--exm-table-rows-expanded-divider-border);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
tr.grid-row-detail {
|
|
345
|
+
display: none;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
tr.grid-row-detail[data-is-row-expanded] {
|
|
349
|
+
display: table-row;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
tr.grid-row-detail td {
|
|
353
|
+
padding: 20px;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
tr .grid-icon-rotate[data-is-expanded] > * {
|
|
357
|
+
transition: transform 0.1s linear;
|
|
358
|
+
transform: rotate(180deg);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
tr .grid-icon-rotate[data-is-expandable]:not([data-is-expanded]) > * {
|
|
362
|
+
transition: transform 0.1s linear;
|
|
363
|
+
transform: rotate(0deg);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.grid-row-drag-handler {
|
|
367
|
+
cursor: move;
|
|
368
|
+
vertical-align: middle;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.grid-row-drag-handler > * {
|
|
372
|
+
vertical-align: middle;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
tr.dragged {
|
|
376
|
+
background-color: var(--exm-table-row-dragged-background-color);
|
|
377
|
+
opacity: 0.25;
|
|
378
|
+
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5) inset;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
tr.cloned {
|
|
382
|
+
background-color: var(--exm-table-row-dragged-background-color);
|
|
383
|
+
width: 100%;
|
|
384
|
+
box-sizing: border-box;
|
|
385
|
+
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
|
|
386
|
+
opacity: 0.9;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
tr td.grid-cell-visible-on-hover {
|
|
390
|
+
text-align: center;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
tr td.grid-cell-visible-on-hover > * {
|
|
394
|
+
visibility: hidden;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
tr:hover td.grid-cell-visible-on-hover > *,
|
|
398
|
+
tr[data-has-expanded-detail] td.grid-cell-visible-on-hover > * {
|
|
399
|
+
visibility: visible;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
tr td.grid-col-number,
|
|
403
|
+
tr th.grid-col-number {
|
|
404
|
+
padding-right: var(--exm-table-col-number-padding-right);
|
|
405
|
+
text-align: right;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
tr th.grid-col-number > span {
|
|
409
|
+
width: 100%;
|
|
410
|
+
}
|
|
411
|
+
`;
|
|
4
412
|
//# sourceMappingURL=exm-grid-styles-css.js.map
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
@use '@material/typography/mixins' as typography;
|
|
2
|
-
|
|
3
|
-
$exm-grid-toolbar-bg-color: #ffffff;
|
|
4
|
-
$exm-grid-toolbar-active-bg-color: #e1f0fe;
|
|
5
|
-
$exm-grid-toolbar-color: #02182b;
|
|
6
|
-
$exm-grid-toolbar-active-color: #000000;
|
|
7
|
-
|
|
8
|
-
:host {
|
|
9
|
-
display: block;
|
|
10
|
-
@include typography.base;
|
|
11
|
-
|
|
12
|
-
border-top-left-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
13
|
-
border-top-right-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
14
|
-
|
|
15
|
-
--toolbar-bg-color: var(--exm-theme-table-toolbar-background-color, var(--md-sys-color-surface-container));
|
|
16
|
-
--toolbar-color: var(--exm-theme-table-toolbar-color, var(--md-sys-color-on-surface-container));
|
|
17
|
-
background-color: var(--toolbar-bg-color);
|
|
18
|
-
color: var(--toolbar-color);
|
|
19
|
-
}
|
|
20
|
-
.wrapper {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex: 1;
|
|
23
|
-
flex-direction: row;
|
|
24
|
-
align-items: center;
|
|
25
|
-
padding: 10px 16px 10px 16px;
|
|
26
|
-
|
|
27
|
-
overflow-x: var(--exm-theme-table-toolbar-overflow-x, initial);
|
|
28
|
-
white-space: nowrap;
|
|
29
|
-
|
|
30
|
-
&.active {
|
|
31
|
-
--active-toolbar-bg-color: var(--exm-theme-table-toolbar-active-bg-color, var(--md-sys-color-secondary-container));
|
|
32
|
-
--active-toolbar-color: var(--exm-theme-table-toolbar-active-color, var(--md-sys-color-on-secondary-container));
|
|
33
|
-
|
|
34
|
-
background-color: var(--active-toolbar-bg-color);
|
|
35
|
-
color: var(--active-toolbar-color);
|
|
36
|
-
border-top-left-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
37
|
-
border-top-right-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
38
|
-
|
|
39
|
-
.seperator {
|
|
40
|
-
&.with-action-separator {
|
|
41
|
-
border-left: 1px solid var(--active-toolbar-color);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
.description {
|
|
45
|
-
color: var(--active-toolbar-color);
|
|
46
|
-
flex: 1;
|
|
47
|
-
margin-left: 8px;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
.seperator {
|
|
51
|
-
min-height: 32px;
|
|
52
|
-
&.with-action-separator {
|
|
53
|
-
border-left: 1px solid var(--active-toolbar-color);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
.description {
|
|
57
|
-
@include typography.typography('headline5');
|
|
58
|
-
color: var(--toolbar-color);
|
|
59
|
-
font-size: 1.25rem;
|
|
60
|
-
padding: 0;
|
|
61
|
-
height: 48px;
|
|
62
|
-
flex: 1;
|
|
63
|
-
display: flex;
|
|
64
|
-
align-items: center;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.actions {
|
|
69
|
-
padding: 0 8px 0 0;
|
|
70
|
-
color: var(--mdc-theme-primary);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.filters {
|
|
74
|
-
display: flex;
|
|
75
|
-
flex-direction: row;
|
|
76
|
-
justify-content: flex-end;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.settings {
|
|
80
|
-
display: flex;
|
|
81
|
-
flex-direction: row;
|
|
82
|
-
justify-content: flex-end;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
@media (max-width: 500px) {
|
|
86
|
-
.wrapper .description {
|
|
87
|
-
display: none;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import "exm-grid-pagination-styles";
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
@use '@material/typography/mixins' as typography;
|
|
2
|
-
|
|
3
|
-
:host {
|
|
4
|
-
display: block;
|
|
5
|
-
@include typography.base;
|
|
6
|
-
// background-color: var(--exm-theme-table-pagination-bg-color, var(--md-sys-color-surface-container));
|
|
7
|
-
color: var(--exm-theme-table-pagination-color, var(--md-sys-color-on-surface-container));
|
|
8
|
-
border-bottom-left-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
9
|
-
border-bottom-right-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
10
|
-
}
|
|
11
|
-
.wrapper {
|
|
12
|
-
display: flex;
|
|
13
|
-
flex: 1;
|
|
14
|
-
flex-direction: row;
|
|
15
|
-
align-items: center;
|
|
16
|
-
justify-content: flex-end;
|
|
17
|
-
padding: 8px 10px;
|
|
18
|
-
|
|
19
|
-
// overflow-x: auto;
|
|
20
|
-
white-space: nowrap;
|
|
21
|
-
.page-size {
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: row;
|
|
24
|
-
margin-right: 26px;
|
|
25
|
-
align-items: center;
|
|
26
|
-
|
|
27
|
-
.page-size-label {
|
|
28
|
-
margin-right: 10px;
|
|
29
|
-
@include typography.typography(body2);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.page-range {
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-direction: row;
|
|
36
|
-
align-items: center;
|
|
37
|
-
|
|
38
|
-
.page-range-label {
|
|
39
|
-
margin-right: 44px;
|
|
40
|
-
@include typography.typography(body2);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.page-range-actions {
|
|
44
|
-
user-select: none;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@media (max-width: 600px) {
|
|
50
|
-
.page-size-label {
|
|
51
|
-
display: none;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
@media (max-width: 500px) {
|
|
56
|
-
.wrapper .page-size {
|
|
57
|
-
display: none;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@media (max-width: 450px) {
|
|
62
|
-
.wrapper {
|
|
63
|
-
overflow-x: auto;
|
|
64
|
-
white-space: nowrap;
|
|
65
|
-
.page-range {
|
|
66
|
-
min-width: 1px;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
@@ -1,387 +0,0 @@
|
|
|
1
|
-
@use '@material/typography/mixins' as typography;
|
|
2
|
-
|
|
3
|
-
@mixin sortable-col-padding() {
|
|
4
|
-
padding-right: calc(var(--exm-table-th-sort-icon-height) + var(--exm-table-th-sort-margin-left));
|
|
5
|
-
&.grid-col-number {
|
|
6
|
-
padding-right: calc(
|
|
7
|
-
var(--exm-table-th-sort-icon-height) + var(--exm-table-th-sort-margin-left) +
|
|
8
|
-
var(--exm-table-col-number-padding-right)
|
|
9
|
-
);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@mixin table-layout-fixed() {
|
|
14
|
-
&[data-table-layout='fixed'] {
|
|
15
|
-
table-layout: fixed;
|
|
16
|
-
td:not(.grid-checkbox-cell):not(.menu-cell) {
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
white-space: nowrap;
|
|
19
|
-
text-overflow: ellipsis;
|
|
20
|
-
}
|
|
21
|
-
th,
|
|
22
|
-
td {
|
|
23
|
-
&.grid-checkbox-cell {
|
|
24
|
-
width: var(--exm-table-checkbox-cell-width);
|
|
25
|
-
}
|
|
26
|
-
&.no-ellipsis {
|
|
27
|
-
text-overflow: initial;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:host {
|
|
34
|
-
@include typography.base;
|
|
35
|
-
display: block;
|
|
36
|
-
|
|
37
|
-
--exm-arrow-upward-url: url('/node_modules/@exmg/exm-grid/assets/arrow-upward.svg');
|
|
38
|
-
--exm-table-card-width: var(--exm-theme-table-card-width, 100%);
|
|
39
|
-
--exm-table-card-margin-bottom: var(--exm-theme-table-card-margin-bottom, 5px);
|
|
40
|
-
|
|
41
|
-
--exm-table-color: var(--exm-theme-table-on-surface, var(--md-sys-color-on-surface-container));
|
|
42
|
-
--exm-table-card-background-color: var(--exm-theme-table-surface, var(--md-sys-color-surface-container));
|
|
43
|
-
--exm-table-row-divider-color: var(--exm-theme-table-row-divider-color, var(--md-sys-color-surface-variant));
|
|
44
|
-
|
|
45
|
-
--exm-table-row-selected-color: var(--exm-theme-table-row-selected-color, var(--md-sys-color-on-secondary-container));
|
|
46
|
-
--exm-table-row-selected-background-color: var(
|
|
47
|
-
--exm-theme-table-row-selected-background-color,
|
|
48
|
-
var(--md-sys-color-secondary-container)
|
|
49
|
-
);
|
|
50
|
-
--exm-table-row-hover-color: var(--exm-theme-table-row-hover-color, var(--md-sys-color-on-surface));
|
|
51
|
-
--exm-table-row-hover-background-color: var(
|
|
52
|
-
--exm-theme-table-row-hover-background-color,
|
|
53
|
-
var(--md-sys-color-surface-container-highest)
|
|
54
|
-
);
|
|
55
|
-
--exm-table-row-dragged-background-color: var(
|
|
56
|
-
--exm-theme-table-row-dragged-background-color,
|
|
57
|
-
var(--md-sys-color-surface-container-low)
|
|
58
|
-
);
|
|
59
|
-
--exm-table-rows-expanded-divider-border: var(--exm-theme-table-rows-expanded-divider-border, none);
|
|
60
|
-
--exm-table-rows-expanded-border: var(--exm-theme-table-rows-expanded-border, none);
|
|
61
|
-
--exm-table-rows-expanded-background-color: var(
|
|
62
|
-
--exm-theme-table-rows-expanded-background-color,
|
|
63
|
-
var(--md-sys-color-surface-container-low)
|
|
64
|
-
);
|
|
65
|
-
--exm-table-rows-expanded-color: var(--exm-theme-table-rows-expanded-color, var(--md-sys-color-on-surface));
|
|
66
|
-
--exm-table-th-color: var(--exm-theme-table-th-on-surface, var(--md-sys-color-on-surface-container));
|
|
67
|
-
--exm-table-th-background-color: var(--exm-theme-table-th-surface, var(--md-sys-color-surface-container));
|
|
68
|
-
--exm-table-th-sortable-hover-color: var(--exm-theme-table-th-sortable-hover-color, var(--md-sys-color-on-surface));
|
|
69
|
-
--exm-table-columns-background-color: var(--exm-theme-table-columns-background-color, var(--md-sys-color-surface));
|
|
70
|
-
|
|
71
|
-
--exm-table-th-height: var(--exm-theme-table-th-height, 48px);
|
|
72
|
-
--exm-table-th-sort-margin-left: var(--exm-theme-table-th-sort-margin-left, 0px);
|
|
73
|
-
--exm-table-td-height: var(--exm-theme-table-td-height, 48px);
|
|
74
|
-
--exm-table-th-sort-icon-height: var(--exm-theme-table-th-sort-icon-height, 1em);
|
|
75
|
-
--exm-table-th-sort-icon-width: var(--exm-theme-table-th-sort-icon-width, 1em);
|
|
76
|
-
|
|
77
|
-
--exm-table-col-number-padding-right: var(--exm-theme-table-col-number-padding-right, 10px);
|
|
78
|
-
--exm-table-checkbox-cell-width: var(--exm-theme-table-checkbox-cell-width, 24px);
|
|
79
|
-
|
|
80
|
-
--exm-paper-combobox-selected-item-color: var(var(--md-sys-color-primary), #000000);
|
|
81
|
-
--exm-paper-combobox-color: var(--md-sys-color-on-surface);
|
|
82
|
-
|
|
83
|
-
/* Adjust toolbar to grid */
|
|
84
|
-
--exm-table-toolbar-setting-position: var(--exm-theme-table-toolbar-setting-position, absolute);
|
|
85
|
-
/* End Adjust toolbar to grid */
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
::slotted([slot='pagination']) {
|
|
89
|
-
display: flex;
|
|
90
|
-
align-items: center;
|
|
91
|
-
justify-content: flex-end;
|
|
92
|
-
// overflow-x: auto;
|
|
93
|
-
border-top: 1px solid var(--exm-table-row-divider-color);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
::slotted([slot='toolbar']) {
|
|
97
|
-
display: block;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.table-card-container {
|
|
101
|
-
@include typography.base;
|
|
102
|
-
border: none;
|
|
103
|
-
width: var(--exm-table-card-width);
|
|
104
|
-
margin: 0;
|
|
105
|
-
padding: 0;
|
|
106
|
-
box-shadow: var(--exm-theme-table-box-shadow, none);
|
|
107
|
-
}
|
|
108
|
-
:host([with-toolbar]) {
|
|
109
|
-
.table-card {
|
|
110
|
-
border-top: 1px solid var(--exm-table-row-divider-color);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
.table-card {
|
|
114
|
-
@include typography.base;
|
|
115
|
-
border: none;
|
|
116
|
-
border-bottom-left-radius: 4px;
|
|
117
|
-
border-bottom-right-radius: 4px;
|
|
118
|
-
width: var(--exm-table-card-width);
|
|
119
|
-
background-color: var(--exm-table-card-background-color);
|
|
120
|
-
margin-bottom: var(--exm-table-card-margin-bottom);
|
|
121
|
-
border-top-left-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
122
|
-
border-top-right-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
123
|
-
border-bottom-left-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
124
|
-
border-bottom-right-radius: var(--exm-theme-table-radius, var(--exm-surface-border-radius, 16px));
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/*.table-container {
|
|
128
|
-
overflow-x: auto;
|
|
129
|
-
}*/
|
|
130
|
-
|
|
131
|
-
table {
|
|
132
|
-
@include table-layout-fixed();
|
|
133
|
-
width: 100%;
|
|
134
|
-
color: var(--exm-table-color);
|
|
135
|
-
border-spacing: 0;
|
|
136
|
-
border: none;
|
|
137
|
-
|
|
138
|
-
thead {
|
|
139
|
-
tr,
|
|
140
|
-
th {
|
|
141
|
-
@include typography.typography('caption');
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
tbody,
|
|
146
|
-
tfoot {
|
|
147
|
-
tr,
|
|
148
|
-
td {
|
|
149
|
-
@include typography.typography('body2');
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
td {
|
|
155
|
-
height: var(--exm-table-td-height);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.grid-toolbar th {
|
|
159
|
-
padding: 0;
|
|
160
|
-
text-align: left;
|
|
161
|
-
> * {
|
|
162
|
-
overflow-x: auto;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.grid-columns {
|
|
167
|
-
th {
|
|
168
|
-
height: var(--exm-table-th-height);
|
|
169
|
-
font-weight: 500;
|
|
170
|
-
font-style: normal;
|
|
171
|
-
font-stretch: normal;
|
|
172
|
-
text-transform: uppercase;
|
|
173
|
-
line-height: 1.33;
|
|
174
|
-
letter-spacing: 2px;
|
|
175
|
-
color: var(--exm-table-th-color);
|
|
176
|
-
background-color: var(--exm-table-th-background-color);
|
|
177
|
-
vertical-align: middle;
|
|
178
|
-
text-align: left;
|
|
179
|
-
|
|
180
|
-
user-select: none;
|
|
181
|
-
white-space: nowrap;
|
|
182
|
-
|
|
183
|
-
> span {
|
|
184
|
-
vertical-align: middle;
|
|
185
|
-
max-width: 100%;
|
|
186
|
-
display: inline-block;
|
|
187
|
-
overflow: hidden;
|
|
188
|
-
white-space: nowrap;
|
|
189
|
-
text-overflow: ellipsis;
|
|
190
|
-
}
|
|
191
|
-
svg {
|
|
192
|
-
fill: var(--exm-table-th-color);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.grid-columns th,
|
|
198
|
-
tbody td {
|
|
199
|
-
padding-left: 16px;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.grid-columns th:last-child,
|
|
203
|
-
tbody td:last-child {
|
|
204
|
-
padding-right: 10px;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
th,
|
|
208
|
-
td {
|
|
209
|
-
border-top: 1px solid var(--exm-table-row-divider-color);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
tbody {
|
|
213
|
-
td {
|
|
214
|
-
height: var(--exm-table-td-height);
|
|
215
|
-
@include typography.typography('body2');
|
|
216
|
-
font-weight: normal;
|
|
217
|
-
font-style: normal;
|
|
218
|
-
font-stretch: normal;
|
|
219
|
-
line-height: 1.43px;
|
|
220
|
-
letter-spacing: 0.3px;
|
|
221
|
-
color: var(--exm-table-color);
|
|
222
|
-
svg {
|
|
223
|
-
fill: var(--exm-table-color);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/**** COLUMN SORT *********/
|
|
229
|
-
th[data-sort] {
|
|
230
|
-
cursor: pointer;
|
|
231
|
-
|
|
232
|
-
&:hover {
|
|
233
|
-
color: var(--exm-table-th-sortable-hover-color);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
&::after {
|
|
237
|
-
display: inline-block;
|
|
238
|
-
content: '';
|
|
239
|
-
-webkit-mask-image: var(--exm-arrow-upward-url);
|
|
240
|
-
mask-image: var(--exm-arrow-upward-url);
|
|
241
|
-
background-color: currentColor;
|
|
242
|
-
background-size: contain;
|
|
243
|
-
height: var(--exm-table-th-sort-icon-height);
|
|
244
|
-
width: var(--exm-table-th-sort-icon-width);
|
|
245
|
-
margin-left: var(--exm-table-th-sort-margin-left);
|
|
246
|
-
vertical-align: middle;
|
|
247
|
-
opacity: 0;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
th[data-sort-direction]::after {
|
|
252
|
-
opacity: 1;
|
|
253
|
-
transition: transform 0.1s linear;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
th[data-sort-direction='ASC']::after {
|
|
257
|
-
transform: rotate(0deg);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
th[data-sort-direction='DESC']::after {
|
|
261
|
-
transform: rotate(180deg);
|
|
262
|
-
}
|
|
263
|
-
/**** COLUMN SORT END *********/
|
|
264
|
-
|
|
265
|
-
/**** SELECTABLE ROW *********/
|
|
266
|
-
tbody > tr:not(.grid-row-detail):hover {
|
|
267
|
-
color: var(--exm-table-row-hover-color);
|
|
268
|
-
background-color: var(--exm-table-row-hover-background-color);
|
|
269
|
-
td {
|
|
270
|
-
color: var(--exm-table-row-hover-color);
|
|
271
|
-
}
|
|
272
|
-
svg {
|
|
273
|
-
fill: var(--exm-table-row-hover-color);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
tr[data-selected] {
|
|
278
|
-
color: var(--exm-table-row-selected-color);
|
|
279
|
-
background-color: var(--exm-table-row-selected-background-color);
|
|
280
|
-
td {
|
|
281
|
-
color: var(--exm-table-row-selected-color);
|
|
282
|
-
}
|
|
283
|
-
svg {
|
|
284
|
-
fill: var(--exm-table-row-selected-color);
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
/**** END SELECTABLE ROW *********/
|
|
288
|
-
|
|
289
|
-
/**** EXPANDABLE ROW *********/
|
|
290
|
-
tbody {
|
|
291
|
-
tr[data-has-expanded-detail],
|
|
292
|
-
tr[data-has-expanded-detail]:hover,
|
|
293
|
-
tr[data-is-row-expanded] {
|
|
294
|
-
background-color: var(--exm-table-rows-expanded-background-color);
|
|
295
|
-
border: var(--exm-table-rows-expanded-border);
|
|
296
|
-
|
|
297
|
-
td {
|
|
298
|
-
color: var(--exm-table-rows-expanded-color);
|
|
299
|
-
svg {
|
|
300
|
-
fill: var(--exm-table-rows-expanded-color);
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
tr[data-is-row-expanded] td {
|
|
306
|
-
border-bottom: none;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
tr[data-has-expanded-detail] td,
|
|
310
|
-
tr[data-has-expanded-detail]:hover td {
|
|
311
|
-
border-bottom: var(--exm-table-rows-expanded-divider-border);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
tr.grid-row-detail {
|
|
316
|
-
display: none;
|
|
317
|
-
|
|
318
|
-
&[data-is-row-expanded] {
|
|
319
|
-
display: table-row;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
td {
|
|
323
|
-
padding: 20px;
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
tr .grid-icon-rotate[data-is-expanded] > * {
|
|
328
|
-
transition: transform 0.1s linear;
|
|
329
|
-
transform: rotate(180deg);
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
tr .grid-icon-rotate[data-is-expandable]:not([data-is-expanded]) > * {
|
|
333
|
-
transition: transform 0.1s linear;
|
|
334
|
-
transform: rotate(0deg);
|
|
335
|
-
}
|
|
336
|
-
/**** END EXPANDABLE ROW *********/
|
|
337
|
-
|
|
338
|
-
/**** START SORTABLE ROW *********/
|
|
339
|
-
.grid-row-drag-handler {
|
|
340
|
-
cursor: move;
|
|
341
|
-
vertical-align: middle;
|
|
342
|
-
> * {
|
|
343
|
-
vertical-align: middle;
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
tr {
|
|
347
|
-
&.dragged {
|
|
348
|
-
background-color: var(--exm-table-row-dragged-background-color);
|
|
349
|
-
opacity: 0.25;
|
|
350
|
-
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5) inset;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
&.cloned {
|
|
354
|
-
background-color: var(--exm-table-row-dragged-background-color);
|
|
355
|
-
width: 100%;
|
|
356
|
-
box-sizing: border-box;
|
|
357
|
-
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
|
|
358
|
-
opacity: 0.9;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
/**** END EXPANDABLE ROW *********/
|
|
362
|
-
|
|
363
|
-
/***** GRID UTILS ***/
|
|
364
|
-
tr td.grid-cell-visible-on-hover {
|
|
365
|
-
text-align: center;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
tr td.grid-cell-visible-on-hover > * {
|
|
369
|
-
visibility: hidden;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
tr:hover td.grid-cell-visible-on-hover > *,
|
|
373
|
-
tr[data-has-expanded-detail] td.grid-cell-visible-on-hover > * {
|
|
374
|
-
visibility: visible;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
tr td.grid-col-number,
|
|
378
|
-
tr th.grid-col-number {
|
|
379
|
-
padding-right: var(--exm-table-col-number-padding-right);
|
|
380
|
-
text-align: right;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
tr th.grid-col-number {
|
|
384
|
-
> span {
|
|
385
|
-
width: 100%;
|
|
386
|
-
}
|
|
387
|
-
}
|