@semcore/data-table 16.0.1 → 16.0.2-prerelease.2
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/CHANGELOG.md +6 -0
- package/lib/cjs/components/Body/Body.js +73 -43
- package/lib/cjs/components/Body/Body.js.map +1 -1
- package/lib/cjs/components/Body/Body.types.js.map +1 -1
- package/lib/cjs/components/Body/Cell.js +95 -45
- package/lib/cjs/components/Body/Cell.js.map +1 -1
- package/lib/cjs/components/Body/Cell.types.js.map +1 -1
- package/lib/cjs/components/Body/Row.js +61 -45
- package/lib/cjs/components/Body/Row.js.map +1 -1
- package/lib/cjs/components/Body/Row.types.js.map +1 -1
- package/lib/cjs/components/Body/style.shadow.css +56 -47
- package/lib/cjs/components/DataTable/DataTable.js +30 -28
- package/lib/cjs/components/DataTable/DataTable.js.map +1 -1
- package/lib/cjs/components/DataTable/DataTable.types.js.map +1 -1
- package/lib/cjs/components/Head/Column.js +22 -22
- package/lib/cjs/components/Head/Column.types.js.map +1 -1
- package/lib/cjs/components/Head/Group.js +22 -22
- package/lib/cjs/components/Head/Head.js +22 -22
- package/lib/es6/components/Body/Body.js +73 -43
- package/lib/es6/components/Body/Body.js.map +1 -1
- package/lib/es6/components/Body/Body.types.js.map +1 -1
- package/lib/es6/components/Body/Cell.js +96 -46
- package/lib/es6/components/Body/Cell.js.map +1 -1
- package/lib/es6/components/Body/Cell.types.js.map +1 -1
- package/lib/es6/components/Body/Row.js +61 -45
- package/lib/es6/components/Body/Row.js.map +1 -1
- package/lib/es6/components/Body/Row.types.js.map +1 -1
- package/lib/es6/components/Body/style.shadow.css +56 -47
- package/lib/es6/components/DataTable/DataTable.js +30 -28
- package/lib/es6/components/DataTable/DataTable.js.map +1 -1
- package/lib/es6/components/DataTable/DataTable.types.js.map +1 -1
- package/lib/es6/components/Head/Column.js +22 -22
- package/lib/es6/components/Head/Column.types.js.map +1 -1
- package/lib/es6/components/Head/Group.js +22 -22
- package/lib/es6/components/Head/Head.js +22 -22
- package/lib/esm/components/Body/Body.mjs +73 -45
- package/lib/esm/components/Body/Cell.mjs +80 -41
- package/lib/esm/components/Body/Row.mjs +57 -46
- package/lib/esm/components/Body/style.shadow.css +56 -47
- package/lib/esm/components/DataTable/DataTable.mjs +31 -30
- package/lib/esm/components/Head/Column.mjs +23 -23
- package/lib/esm/components/Head/Group.mjs +23 -23
- package/lib/esm/components/Head/Head.mjs +23 -23
- package/lib/types/components/Body/Body.types.d.ts +1 -0
- package/lib/types/components/Body/Cell.types.d.ts +6 -1
- package/lib/types/components/Body/Row.types.d.ts +5 -0
- package/lib/types/components/DataTable/DataTable.types.d.ts +5 -0
- package/lib/types/components/Head/Column.types.d.ts +1 -1
- package/package.json +12 -12
- package/vite.config.ts +10 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
SBody, SRow, SRowGroup {
|
|
1
|
+
SBody, SRow, SRowGroup, SAccordionRows {
|
|
2
2
|
display: contents;
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -12,87 +12,96 @@ SBody[compact] {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
SRow[gridArea],
|
|
15
|
+
SRow[gridArea], SCellWrapper[gridArea], SCollapseRow[gridArea] {
|
|
16
16
|
grid-area: var(--gridArea);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
SCellWrapper {
|
|
20
|
+
height: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
SCollapseRow[gridArea] > SCellWrapper > SCell,
|
|
24
|
+
SAccordionRows > SRow[isAccordionRow]:last-child > SCellWrapper > SCell {
|
|
25
|
+
border-bottom: 1px solid var(--intergalactic-border-table-accent, #a9abb6);
|
|
26
|
+
}
|
|
27
|
+
|
|
19
28
|
SCollapseRow SCell {
|
|
20
29
|
display: block;
|
|
21
30
|
}
|
|
22
31
|
|
|
23
32
|
/* DEFAULT THEME */
|
|
24
|
-
SRow[active] > SCell:not([theme]) {
|
|
33
|
+
SRow[active] > SCellWrapper > SCell:not([theme]) {
|
|
25
34
|
/* The color is hardcoded because need hex(in figma rgba) */
|
|
26
35
|
/* disable-tokens-validator */
|
|
27
36
|
background-color: var(--intergalactic-table-td-cell-active, #e6e7ed);
|
|
28
37
|
}
|
|
29
38
|
|
|
30
|
-
SRow[accordionType='row'][expanded] > SCell:not([theme]),
|
|
39
|
+
SRow[accordionType='row'][expanded] > SCellWrapper > SCell:not([theme]),
|
|
31
40
|
SCell:not([theme])[expanded][withAccordion] {
|
|
32
41
|
background-color: var(--intergalactic-table-td-cell-active, #e6e7ed);
|
|
33
42
|
}
|
|
34
43
|
|
|
35
|
-
SCollapseRow > SCell:not([theme]), SRow[isAccordionRow] > SCell:not([theme]) {
|
|
44
|
+
SCollapseRow > SCellWrapper > SCell:not([theme]), SRow[isAccordionRow] > SCellWrapper > SCell:not([theme]) {
|
|
36
45
|
background-color: var(--intergalactic-table-td-cell-accordion, #f4f5f9);
|
|
37
46
|
}
|
|
38
47
|
|
|
39
48
|
/* we need a media query here because of the postcssHoverMediaFeature plugin. it doesn't handle this type of selectors correctly */
|
|
40
49
|
@media (hover: hover) {
|
|
41
|
-
SRow:not([accordionType='row'][expanded]):hover > SCell:not([theme]):not([expanded][withAccordion]),
|
|
42
|
-
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow > SCell:not([theme]):not([expanded][withAccordion]),
|
|
43
|
-
SRowGroup:has(SCell:hover) > SRow > SCell[data-grouped-by='rowgroup']:not([theme]):not([expanded][withAccordion]) {
|
|
50
|
+
SRow:not([accordionType='row'][expanded]):hover > SCellWrapper > SCell:not([theme]):not([expanded][withAccordion]),
|
|
51
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow > SCellWrapper > SCell:not([theme]):not([expanded][withAccordion]),
|
|
52
|
+
SRowGroup:has(SCell:hover) > SRow > SCellWrapper > SCell[data-grouped-by='rowgroup']:not([theme]):not([expanded][withAccordion]) {
|
|
44
53
|
background-color: var(--intergalactic-table-td-cell-hover, #f0f0f4);
|
|
45
54
|
}
|
|
46
55
|
|
|
47
56
|
/* MUTED THEME */
|
|
48
|
-
SRow:hover > SCell[theme='muted'],
|
|
49
|
-
SRow[theme='muted']:hover > SCell:not([theme]),
|
|
50
|
-
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow > SCell[theme='muted'],
|
|
51
|
-
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow[theme='muted'] > SCell:not([theme]),
|
|
52
|
-
SRowGroup:has(SCell:hover) > SRow > SCell[data-grouped-by='rowgroup'][theme='muted'],
|
|
53
|
-
SRowGroup:has(SCell:hover) > SRow[theme='muted'] > SCell[data-grouped-by='rowgroup']:not([theme]) {
|
|
57
|
+
SRow:hover > SCellWrapper > SCell[theme='muted'],
|
|
58
|
+
SRow[theme='muted']:hover > SCellWrapper > SCell:not([theme]),
|
|
59
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow > SCellWrapper > SCell[theme='muted'],
|
|
60
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow[theme='muted'] > SCellWrapper > SCell:not([theme]),
|
|
61
|
+
SRowGroup:has(SCell:hover) > SRow > SCellWrapper > SCell[data-grouped-by='rowgroup'][theme='muted'],
|
|
62
|
+
SRowGroup:has(SCell:hover) > SRow[theme='muted'] > SCellWrapper > SCell[data-grouped-by='rowgroup']:not([theme]) {
|
|
54
63
|
/* The color is hardcoded because need hex(in figma rgba) */
|
|
55
64
|
/* disable-tokens-validator */
|
|
56
65
|
background-color: var(--intergalactic-table-td-cell-hover, #f0f0f4);
|
|
57
66
|
}
|
|
58
67
|
|
|
59
68
|
/* INFO THEME */
|
|
60
|
-
SRow:hover > SCell[theme='info'],
|
|
61
|
-
SRow[theme='info']:hover > SCell:not([theme]),
|
|
62
|
-
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow > SCell[theme='info'],
|
|
63
|
-
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow[theme='info'] > SCell:not([theme]),
|
|
64
|
-
SRowGroup:has(SCell:hover) > SRow > SCell[data-grouped-by='rowgroup'][theme='info'],
|
|
65
|
-
SRowGroup:has(SCell:hover) > SRow[theme='info'] > SCell[data-grouped-by='rowgroup']:not([theme]) {
|
|
69
|
+
SRow:hover > SCellWrapper > SCell[theme='info'],
|
|
70
|
+
SRow[theme='info']:hover > SCellWrapper > SCell:not([theme]),
|
|
71
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow > SCellWrapper > SCell[theme='info'],
|
|
72
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow[theme='info'] > SCellWrapper > SCell:not([theme]),
|
|
73
|
+
SRowGroup:has(SCell:hover) > SRow > SCellWrapper > SCell[data-grouped-by='rowgroup'][theme='info'],
|
|
74
|
+
SRowGroup:has(SCell:hover) > SRow[theme='info'] > SCellWrapper > SCell[data-grouped-by='rowgroup']:not([theme]) {
|
|
66
75
|
background-color: var(--intergalactic-table-td-cell-selected-hover, #c4e5fe);
|
|
67
76
|
}
|
|
68
77
|
|
|
69
78
|
/* SUCCESS THEME */
|
|
70
|
-
SRow:hover > SCell[theme='success'],
|
|
71
|
-
SRow[theme='success']:hover > SCell:not([theme]),
|
|
72
|
-
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow > SCell[theme='success'],
|
|
73
|
-
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow[theme='success'] > SCell:not([theme]),
|
|
74
|
-
SRowGroup:has(SCell:hover) > SRow > SCell[data-grouped-by='rowgroup'][theme='success'],
|
|
75
|
-
SRowGroup:has(SCell:hover) > SRow[theme='success'] > SCell[data-grouped-by='rowgroup']:not([theme]) {
|
|
79
|
+
SRow:hover > SCellWrapper > SCell[theme='success'],
|
|
80
|
+
SRow[theme='success']:hover > SCellWrapper > SCell:not([theme]),
|
|
81
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow > SCellWrapper > SCell[theme='success'],
|
|
82
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow[theme='success'] > SCellWrapper > SCell:not([theme]),
|
|
83
|
+
SRowGroup:has(SCell:hover) > SRow > SCellWrapper > SCell[data-grouped-by='rowgroup'][theme='success'],
|
|
84
|
+
SRowGroup:has(SCell:hover) > SRow[theme='success'] > SCellWrapper > SCell[data-grouped-by='rowgroup']:not([theme]) {
|
|
76
85
|
background-color: var(--intergalactic-table-td-cell-new-hover, #9ef2c9);
|
|
77
86
|
}
|
|
78
87
|
|
|
79
88
|
/* WARNING THEME */
|
|
80
|
-
SRow:hover > SCell[theme='warning'],
|
|
81
|
-
SRow[theme='warning']:hover > SCell:not([theme]),
|
|
82
|
-
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow > SCell[theme='warning'],
|
|
83
|
-
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow[theme='warning'] > SCell:not([theme]),
|
|
84
|
-
SRowGroup:has(SCell:hover) > SRow > SCell[data-grouped-by='rowgroup'][theme='warning'],
|
|
85
|
-
SRowGroup:has(SCell:hover) > SRow[theme='warning'] > SCell[data-grouped-by='rowgroup']:not([theme]) {
|
|
89
|
+
SRow:hover > SCellWrapper > SCell[theme='warning'],
|
|
90
|
+
SRow[theme='warning']:hover > SCellWrapper > SCell:not([theme]),
|
|
91
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow > SCellWrapper > SCell[theme='warning'],
|
|
92
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow[theme='warning'] > SCellWrapper > SCell:not([theme]),
|
|
93
|
+
SRowGroup:has(SCell:hover) > SRow > SCellWrapper > SCell[data-grouped-by='rowgroup'][theme='warning'],
|
|
94
|
+
SRowGroup:has(SCell:hover) > SRow[theme='warning'] > SCellWrapper > SCell[data-grouped-by='rowgroup']:not([theme]) {
|
|
86
95
|
background-color: var(--intergalactic-table-td-cell-warning-hover, #ffdca2);
|
|
87
96
|
}
|
|
88
97
|
|
|
89
98
|
/* DANGER THEME */
|
|
90
|
-
SRow:hover > SCell[theme='danger'],
|
|
91
|
-
SRow[theme='danger']:hover > SCell:not([theme]),
|
|
92
|
-
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow > SCell[theme='danger'],
|
|
93
|
-
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow[theme='danger'] > SCell:not([theme]),
|
|
94
|
-
SRowGroup:has(SCell:hover) > SRow > SCell[data-grouped-by='rowgroup'][theme='danger'],
|
|
95
|
-
SRowGroup:has(SCell:hover) > SRow[theme='danger'] > SCell[data-grouped-by='rowgroup']:not([theme]) {
|
|
99
|
+
SRow:hover > SCellWrapper > SCell[theme='danger'],
|
|
100
|
+
SRow[theme='danger']:hover > SCellWrapper > SCell:not([theme]),
|
|
101
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow > SCellWrapper > SCell[theme='danger'],
|
|
102
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow[theme='danger'] > SCellWrapper > SCell:not([theme]),
|
|
103
|
+
SRowGroup:has(SCell:hover) > SRow > SCellWrapper > SCell[data-grouped-by='rowgroup'][theme='danger'],
|
|
104
|
+
SRowGroup:has(SCell:hover) > SRow[theme='danger'] > SCellWrapper > SCell[data-grouped-by='rowgroup']:not([theme]) {
|
|
96
105
|
background-color: var(--intergalactic-table-td-cell-critical-hover, #ffd7df);
|
|
97
106
|
}
|
|
98
107
|
}
|
|
@@ -102,7 +111,7 @@ SRow[theme='muted'] SCell:not([theme]) {
|
|
|
102
111
|
background-color: var(--intergalactic-table-td-cell-unread, #f4f5f9);
|
|
103
112
|
}
|
|
104
113
|
|
|
105
|
-
SRow[theme='muted'][active] > SCell:not([theme]) {
|
|
114
|
+
SRow[theme='muted'][active] > SCellWrapper > SCell:not([theme]) {
|
|
106
115
|
/* The color is hardcoded because need hex(in figma rgba) */
|
|
107
116
|
/* disable-tokens-validator */
|
|
108
117
|
background-color: var(--intergalactic-table-td-cell-active, #e6e7ed);
|
|
@@ -113,7 +122,7 @@ SRow[theme='info'] SCell:not([theme]) {
|
|
|
113
122
|
background-color: var(--intergalactic-table-td-cell-selected, #e9f7ff);
|
|
114
123
|
}
|
|
115
124
|
|
|
116
|
-
SRow[theme='info'][active] > SCell:not([theme]) {
|
|
125
|
+
SRow[theme='info'][active] > SCellWrapper > SCell:not([theme]) {
|
|
117
126
|
background-color: var(--intergalactic-table-td-cell-selected-active, #c4e5fe);
|
|
118
127
|
}
|
|
119
128
|
|
|
@@ -122,7 +131,7 @@ SRow[theme='success'] SCell:not([theme]) {
|
|
|
122
131
|
background-color: var(--intergalactic-table-td-cell-new, #dbfee8);
|
|
123
132
|
}
|
|
124
133
|
|
|
125
|
-
SRow[theme='success'][active] > SCell:not([theme]) {
|
|
134
|
+
SRow[theme='success'][active] > SCellWrapper > SCell:not([theme]) {
|
|
126
135
|
background-color: var(--intergalactic-table-td-cell-new-active, #9ef2c9);
|
|
127
136
|
}
|
|
128
137
|
|
|
@@ -131,7 +140,7 @@ SRow[theme='warning'] SCell:not([theme]) {
|
|
|
131
140
|
background-color: var(--intergalactic-table-td-cell-warning, #fff3d9);
|
|
132
141
|
}
|
|
133
142
|
|
|
134
|
-
SRow[theme='warning'][active] > SCell:not([theme]) {
|
|
143
|
+
SRow[theme='warning'][active] > SCellWrapper > SCell:not([theme]) {
|
|
135
144
|
background-color: var(--intergalactic-table-td-cell-warning-active, #ffdca2);
|
|
136
145
|
}
|
|
137
146
|
|
|
@@ -140,7 +149,7 @@ SRow[theme='danger'] SCell:not([theme]) {
|
|
|
140
149
|
background-color: var(--intergalactic-table-td-cell-critical, #fff0f7);
|
|
141
150
|
}
|
|
142
151
|
|
|
143
|
-
SRow[theme='danger'][active] > SCell:not([theme]) {
|
|
152
|
+
SRow[theme='danger'][active] > SCellWrapper > SCell:not([theme]) {
|
|
144
153
|
background-color: var(--intergalactic-table-td-cell-critical-active, #ffd7df);
|
|
145
154
|
}
|
|
146
155
|
|
|
@@ -174,7 +183,7 @@ SCell {
|
|
|
174
183
|
}
|
|
175
184
|
}
|
|
176
185
|
|
|
177
|
-
SRow[accordionType='row'] > SCell, SCell[withAccordion], SCheckboxCell {
|
|
186
|
+
SRow[accordionType='row'] > SCellWrapper > SCell, SCell[withAccordion], SCheckboxCell {
|
|
178
187
|
cursor: pointer;
|
|
179
188
|
}
|
|
180
189
|
|
|
@@ -206,7 +215,7 @@ SCell[borders='both'], SCell[borders='right'] {
|
|
|
206
215
|
border-right: 1px solid var(--intergalactic-border-secondary, #e0e1e9);
|
|
207
216
|
}
|
|
208
217
|
|
|
209
|
-
|
|
218
|
+
SCellWrapper[fixed] {
|
|
210
219
|
position: sticky;
|
|
211
220
|
z-index: 2;
|
|
212
221
|
}
|
|
@@ -251,10 +260,10 @@ SEmptyData {
|
|
|
251
260
|
}
|
|
252
261
|
|
|
253
262
|
SRow[sideIndents='wide'] {
|
|
254
|
-
|
|
263
|
+
SCellWrapper:first-child SCell {
|
|
255
264
|
padding-left: var(--intergalactic-spacing-5x, 20px);
|
|
256
265
|
}
|
|
257
|
-
|
|
266
|
+
SCellWrapper:last-child SCell {
|
|
258
267
|
padding-right: var(--intergalactic-spacing-5x, 20px);
|
|
259
268
|
}
|
|
260
269
|
}
|
|
@@ -27,18 +27,18 @@ var style = (
|
|
|
27
27
|
/*__reshadow_css_start__*/
|
|
28
28
|
(sstyled.insert(
|
|
29
29
|
/*__inner_css_start__*/
|
|
30
|
-
".
|
|
30
|
+
".___SDataTable_x73f6_gg_{display:grid;align-items:start;min-width:-moz-fit-content;min-width:fit-content}.___SDataTable_x73f6_gg_.__gridTemplateColumns_x73f6_gg_{grid-template-columns:var(--gridTemplateColumns_x73f6)}.___SDataTable_x73f6_gg_.__gridTemplateAreas_x73f6_gg_{grid-template-areas:var(--gridTemplateAreas_x73f6)}.___SDataTable_x73f6_gg_.__gridTemplateRows_x73f6_gg_{grid-template-rows:var(--gridTemplateRows_x73f6)}",
|
|
31
31
|
/*__inner_css_end__*/
|
|
32
|
-
"
|
|
32
|
+
"x73f6_gg_"
|
|
33
33
|
), /*__reshadow_css_end__*/
|
|
34
34
|
{
|
|
35
|
-
"__SDataTable": "
|
|
36
|
-
"_gridTemplateColumns": "
|
|
37
|
-
"--gridTemplateColumns": "--
|
|
38
|
-
"_gridTemplateAreas": "
|
|
39
|
-
"--gridTemplateAreas": "--
|
|
40
|
-
"_gridTemplateRows": "
|
|
41
|
-
"--gridTemplateRows": "--
|
|
35
|
+
"__SDataTable": "___SDataTable_x73f6_gg_",
|
|
36
|
+
"_gridTemplateColumns": "__gridTemplateColumns_x73f6_gg_",
|
|
37
|
+
"--gridTemplateColumns": "--gridTemplateColumns_x73f6",
|
|
38
|
+
"_gridTemplateAreas": "__gridTemplateAreas_x73f6_gg_",
|
|
39
|
+
"--gridTemplateAreas": "--gridTemplateAreas_x73f6",
|
|
40
|
+
"_gridTemplateRows": "__gridTemplateRows_x73f6_gg_",
|
|
41
|
+
"--gridTemplateRows": "--gridTemplateRows_x73f6"
|
|
42
42
|
})
|
|
43
43
|
);
|
|
44
44
|
/*!__reshadow-styles__:"../../style/scroll-shadows.shadow.css"*/
|
|
@@ -46,25 +46,25 @@ var scrollStyles = (
|
|
|
46
46
|
/*__reshadow_css_start__*/
|
|
47
47
|
(sstyled.insert(
|
|
48
48
|
/*__inner_css_start__*/
|
|
49
|
-
".
|
|
49
|
+
".___SScrollArea_fq5cd_gg_{width:-moz-fit-content;width:fit-content}.___SScrollArea_fq5cd_gg_ .___SContainer_fq5cd_gg_{overflow:visible;overflow:initial}.___SScrollArea_fq5cd_gg_ .___SContainer_fq5cd_gg_._scrollDirection_both_fq5cd_gg_{overflow:auto}.___SScrollArea_fq5cd_gg_ .___SContainer_fq5cd_gg_._scrollDirection_horizontal_fq5cd_gg_{overflow-x:auto;overflow-y:initial}.___SScrollArea_fq5cd_gg_ .___SContainer_fq5cd_gg_._scrollDirection_vertical_fq5cd_gg_{overflow-x:initial;overflow-y:auto}.___SScrollArea_fq5cd_gg_ .___SContainer_fq5cd_gg_.__loading_fq5cd_gg_{overflow:hidden}.___SScrollArea_fq5cd_gg_ .___SContainer_fq5cd_gg_.__headerHeight_fq5cd_gg_{scroll-padding-top:var(--headerHeight_fq5cd)}.___SScrollArea_fq5cd_gg_ .___SContainer_fq5cd_gg_.__leftScrollPadding_fq5cd_gg_{scroll-padding-left:var(--leftScrollPadding_fq5cd)}.___SScrollArea_fq5cd_gg_ .___SContainer_fq5cd_gg_.__rightScrollPadding_fq5cd_gg_{scroll-padding-right:var(--rightScrollPadding_fq5cd)}.___SScrollArea_fq5cd_gg_ .___SShadowVertical_fq5cd_gg_:before{display:none}.___SScrollArea_fq5cd_gg_ .___SShadowHorizontal_fq5cd_gg_:after,.___SScrollArea_fq5cd_gg_ .___SShadowHorizontal_fq5cd_gg_:before,.___SScrollArea_fq5cd_gg_ .___SShadowVertical_fq5cd_gg_:after{z-index:2}",
|
|
50
50
|
/*__inner_css_end__*/
|
|
51
|
-
"
|
|
51
|
+
"fq5cd_gg_"
|
|
52
52
|
), /*__reshadow_css_end__*/
|
|
53
53
|
{
|
|
54
|
-
"__SScrollArea": "
|
|
55
|
-
"__SContainer": "
|
|
56
|
-
"_scrollDirection_both": "
|
|
57
|
-
"_scrollDirection_horizontal": "
|
|
58
|
-
"_scrollDirection_vertical": "
|
|
59
|
-
"_loading": "
|
|
60
|
-
"_headerHeight": "
|
|
61
|
-
"--headerHeight": "--
|
|
62
|
-
"_leftScrollPadding": "
|
|
63
|
-
"--leftScrollPadding": "--
|
|
64
|
-
"_rightScrollPadding": "
|
|
65
|
-
"--rightScrollPadding": "--
|
|
66
|
-
"__SShadowVertical": "
|
|
67
|
-
"__SShadowHorizontal": "
|
|
54
|
+
"__SScrollArea": "___SScrollArea_fq5cd_gg_",
|
|
55
|
+
"__SContainer": "___SContainer_fq5cd_gg_",
|
|
56
|
+
"_scrollDirection_both": "_scrollDirection_both_fq5cd_gg_",
|
|
57
|
+
"_scrollDirection_horizontal": "_scrollDirection_horizontal_fq5cd_gg_",
|
|
58
|
+
"_scrollDirection_vertical": "_scrollDirection_vertical_fq5cd_gg_",
|
|
59
|
+
"_loading": "__loading_fq5cd_gg_",
|
|
60
|
+
"_headerHeight": "__headerHeight_fq5cd_gg_",
|
|
61
|
+
"--headerHeight": "--headerHeight_fq5cd",
|
|
62
|
+
"_leftScrollPadding": "__leftScrollPadding_fq5cd_gg_",
|
|
63
|
+
"--leftScrollPadding": "--leftScrollPadding_fq5cd",
|
|
64
|
+
"_rightScrollPadding": "__rightScrollPadding_fq5cd_gg_",
|
|
65
|
+
"--rightScrollPadding": "--rightScrollPadding_fq5cd",
|
|
66
|
+
"__SShadowVertical": "___SShadowVertical_fq5cd_gg_",
|
|
67
|
+
"__SShadowHorizontal": "___SShadowHorizontal_fq5cd_gg_"
|
|
68
68
|
})
|
|
69
69
|
);
|
|
70
70
|
var ACCORDION = Symbol("accordion");
|
|
@@ -134,7 +134,7 @@ var DataTableRoot = /* @__PURE__ */ function(_Component) {
|
|
|
134
134
|
});
|
|
135
135
|
_defineProperty(_assertThisInitialized(_this), "getRow", function(index) {
|
|
136
136
|
var _this$tableRef$curren;
|
|
137
|
-
return (_this$tableRef$curren = _this.tableRef.current) === null || _this$tableRef$curren === void 0 ? void 0 : _this$tableRef$curren.querySelector('[aria-rowindex="'.concat(index + 1, '"]'));
|
|
137
|
+
return (_this$tableRef$curren = _this.tableRef.current) === null || _this$tableRef$curren === void 0 ? void 0 : _this$tableRef$curren.querySelector('[aria-rowindex="'.concat(index + 1, '"]:not([aria-hidden="true"])'));
|
|
138
138
|
});
|
|
139
139
|
_defineProperty(_assertThisInitialized(_this), "hasFocusableInHeader", function() {
|
|
140
140
|
return _this.headerRef.current && hasFocusableIn(_this.headerRef.current);
|
|
@@ -171,7 +171,7 @@ var DataTableRoot = /* @__PURE__ */ function(_Component) {
|
|
|
171
171
|
}
|
|
172
172
|
if (!changed) return;
|
|
173
173
|
var row = _this.getRow(newRow);
|
|
174
|
-
var cell = row === null || row === void 0 ? void 0 : row.querySelector(':scope > [role=gridcell][aria-colindex="'.concat(newCol + 1, '"], :scope > [role=columnheader][aria-colindex="').concat(newCol + 1, '"], :scope > div > [role=columnheader][aria-colindex="').concat(newCol + 1, '"]'));
|
|
174
|
+
var cell = row === null || row === void 0 ? void 0 : row.querySelector(':scope > div > [role=gridcell][aria-colindex="'.concat(newCol + 1, '"], :scope > [role=columnheader][aria-colindex="').concat(newCol + 1, '"], :scope > div > [role=columnheader][aria-colindex="').concat(newCol + 1, '"]'));
|
|
175
175
|
if (cell instanceof HTMLElement && currentCell !== cell) {
|
|
176
176
|
_this.focusedCell = [newRow, newCol];
|
|
177
177
|
currentCell === null || currentCell === void 0 ? void 0 : currentCell.setAttribute("inert", "");
|
|
@@ -194,11 +194,11 @@ var DataTableRoot = /* @__PURE__ */ function(_Component) {
|
|
|
194
194
|
var rowI = rowIndex;
|
|
195
195
|
var colI = colIndex;
|
|
196
196
|
if (direction === "left" || direction === "right") {
|
|
197
|
-
var _currentCell$parentEl, _currentCell$parentEl2, _row$children;
|
|
197
|
+
var _currentCell$parentEl, _currentCell$parentEl2, _currentCell$parentEl3, _row$children;
|
|
198
198
|
if (((_currentCell$parentEl = currentCell.parentElement) === null || _currentCell$parentEl === void 0 ? void 0 : _currentCell$parentEl.dataset.uiName) === "Collapse") {
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
|
-
if (currentCell.dataset.groupedBy === "colgroup" || Number((_currentCell$parentEl2 = currentCell.parentElement) === null || _currentCell$parentEl2 === void 0 ? void 0 : _currentCell$parentEl2.getAttribute("aria-rowindex")) === 2 || Array.from((_row$children = row === null || row === void 0 ? void 0 : row.children) !== null && _row$children !== void 0 ? _row$children : []).indexOf(currentCell) > 0) {
|
|
201
|
+
if (currentCell.dataset.groupedBy === "colgroup" || Number((_currentCell$parentEl2 = currentCell.parentElement) === null || _currentCell$parentEl2 === void 0 ? void 0 : (_currentCell$parentEl3 = _currentCell$parentEl2.parentElement) === null || _currentCell$parentEl3 === void 0 ? void 0 : _currentCell$parentEl3.getAttribute("aria-rowindex")) === 2 || currentCell.parentElement && Array.from((_row$children = row === null || row === void 0 ? void 0 : row.children) !== null && _row$children !== void 0 ? _row$children : []).indexOf(currentCell.parentElement) > 0) {
|
|
202
202
|
colI = direction === "left" ? colI - 1 : colI + 1;
|
|
203
203
|
} else {
|
|
204
204
|
rowI = rowI - 1;
|
|
@@ -517,9 +517,10 @@ var DataTableRoot = /* @__PURE__ */ function(_Component) {
|
|
|
517
517
|
}, {
|
|
518
518
|
key: "getBodyProps",
|
|
519
519
|
value: function getBodyProps() {
|
|
520
|
-
var _this$asProps6 = this.asProps, use = _this$asProps6.use, compact = _this$asProps6.compact, loading = _this$asProps6.loading, getI18nText = _this$asProps6.getI18nText, expandedRows = _this$asProps6.expandedRows, virtualScroll = _this$asProps6.virtualScroll, uid = _this$asProps6.uid, rowProps = _this$asProps6.rowProps, renderCell = _this$asProps6.renderCell, headerProps = _this$asProps6.headerProps, renderEmptyData2 = _this$asProps6.renderEmptyData, sideIndents = _this$asProps6.sideIndents, selectedRows = _this$asProps6.selectedRows;
|
|
520
|
+
var _this$asProps6 = this.asProps, use = _this$asProps6.use, compact = _this$asProps6.compact, loading = _this$asProps6.loading, getI18nText = _this$asProps6.getI18nText, expandedRows = _this$asProps6.expandedRows, virtualScroll = _this$asProps6.virtualScroll, uid = _this$asProps6.uid, rowProps = _this$asProps6.rowProps, renderCell = _this$asProps6.renderCell, headerProps = _this$asProps6.headerProps, renderEmptyData2 = _this$asProps6.renderEmptyData, sideIndents = _this$asProps6.sideIndents, selectedRows = _this$asProps6.selectedRows, accordionDuration = _this$asProps6.accordionDuration;
|
|
521
521
|
var _this$gridSettings2 = this.gridSettings, gridTemplateColumns = _this$gridSettings2.gridTemplateColumns, gridTemplateAreas = _this$gridSettings2.gridTemplateAreas;
|
|
522
522
|
return {
|
|
523
|
+
accordionDuration,
|
|
523
524
|
columns: this.columns,
|
|
524
525
|
rows: this.rows,
|
|
525
526
|
flatRows: this.flatRows,
|
|
@@ -19,32 +19,32 @@ var style = (
|
|
|
19
19
|
/*__reshadow_css_start__*/
|
|
20
20
|
(sstyled.insert(
|
|
21
21
|
/*__inner_css_start__*/
|
|
22
|
-
'.
|
|
22
|
+
'.___SGroupContainer_8ae7k_gg_,.___SHead_8ae7k_gg_{display:contents}.___SHead_8ae7k_gg_.__sticky_8ae7k_gg_ .___SColumn_8ae7k_gg_{position:sticky;top:0;z-index:2}.___SHead_8ae7k_gg_.__sticky_8ae7k_gg_ .___SGroup_8ae7k_gg_{top:0}.___SHead_8ae7k_gg_.__sticky_8ae7k_gg_ .___SGroupContainer_8ae7k_gg_>.___SColumn_8ae7k_gg_{position:sticky;z-index:2}.___SHead_8ae7k_gg_.__compact_8ae7k_gg_ .___SColumn_8ae7k_gg_{padding:var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-2x, 8px)}.___SColumn_8ae7k_gg_,.___SGroup_8ae7k_gg_{display:flex;align-items:flex-start;font-size:var(--intergalactic-fs-100, 12px);color:var(--intergalactic-text-primary, #191b23);box-sizing:border-box;height:100%;position:relative;transition:width calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out,min-width calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out,max-width calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out;overflow:hidden}.___SGroup_8ae7k_gg_{justify-content:center;text-align:center;background-color:var(--intergalactic-table-th-primary-cell, #f4f5f9)}.___SGroup_8ae7k_gg_._use_primary_8ae7k_gg_{padding:var(--intergalactic-spacing-3x, 12px)}.___SGroup_8ae7k_gg_._use_primary_8ae7k_gg_:has(~.___SColumn_8ae7k_gg_.__visibleSort_8ae7k_gg_){background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SGroup_8ae7k_gg_._use_secondary_8ae7k_gg_{padding:var(--intergalactic-spacing-2x, 8px)}.___SColumn_8ae7k_gg_._borders_both_8ae7k_gg_,.___SColumn_8ae7k_gg_._borders_left_8ae7k_gg_,.___SGroup_8ae7k_gg_._borders_both_8ae7k_gg_,.___SGroup_8ae7k_gg_._borders_left_8ae7k_gg_{border-left:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_8ae7k_gg_._borders_both_8ae7k_gg_,.___SColumn_8ae7k_gg_._borders_right_8ae7k_gg_,.___SGroup_8ae7k_gg_._borders_both_8ae7k_gg_,.___SGroup_8ae7k_gg_._borders_right_8ae7k_gg_{border-right:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_8ae7k_gg_._use_primary_8ae7k_gg_{padding:var(--intergalactic-spacing-3x, 12px);border-bottom:1px solid var(--intergalactic-border-secondary, #e0e1e9);background-color:var(--intergalactic-table-th-primary-cell, #f4f5f9)}.___SColumn_8ae7k_gg_._use_primary_8ae7k_gg_ .___SSortWrapper_8ae7k_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-primary-cell-hover, #e0e1e9) 67.5%,rgba(224,225,233,0) 105%)}.___SColumn_8ae7k_gg_._use_primary_8ae7k_gg_.__visibleSort_8ae7k_gg_{background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SColumn_8ae7k_gg_._use_primary_8ae7k_gg_.__visibleSort_8ae7k_gg_ .___SSortWrapper_8ae7k_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_8ae7k_gg_._use_primary_8ae7k_gg_.__visibleSort_8ae7k_gg_ .___SSortButton_8ae7k_gg_,.___SColumn_8ae7k_gg_._use_primary_8ae7k_gg_.__visibleSort_8ae7k_gg_ .___SSortWrapper_8ae7k_gg_::before,.___SColumn_8ae7k_gg_._use_secondary_8ae7k_gg_.__visibleSort_8ae7k_gg_ .___SSortWrapper_8ae7k_gg_::before{display:flex;opacity:1}.___SColumn_8ae7k_gg_._use_secondary_8ae7k_gg_{padding:var(--intergalactic-spacing-2x, 8px);border-bottom:1px solid var(--intergalactic-border-table-accent, #a9abb6);background-color:var(--intergalactic-table-th-secondary-cell, #ffffff)}.___SColumn_8ae7k_gg_._use_secondary_8ae7k_gg_ .___SSortWrapper_8ae7k_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-secondary-cell, #ffffff) 67.5%,rgba(255,255,255,0) 105%)}.___SColumn_8ae7k_gg_._use_secondary_8ae7k_gg_.__visibleSort_8ae7k_gg_ .___SSortWrapper_8ae7k_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_8ae7k_gg_._use_secondary_8ae7k_gg_.__visibleSort_8ae7k_gg_ .___SSortButton_8ae7k_gg_{display:flex;opacity:1}.___SColumn_8ae7k_gg_.__gridArea_8ae7k_gg_,.___SGroupTitle_8ae7k_gg_.__gridArea_8ae7k_gg_,.___SGroup_8ae7k_gg_.__gridArea_8ae7k_gg_{grid-area:var(--gridArea_8ae7k)}.___SHead_8ae7k_gg_ .___SColumn_8ae7k_gg_.__fixed_8ae7k_gg_,.___SHead_8ae7k_gg_ .___SGroup_8ae7k_gg_.__fixed_8ae7k_gg_,.___SHead_8ae7k_gg_.__sticky_8ae7k_gg_ .___SColumn_8ae7k_gg_.__fixed_8ae7k_gg_,.___SHead_8ae7k_gg_.__sticky_8ae7k_gg_ .___SGroup_8ae7k_gg_{position:sticky;z-index:3}@media (hover:hover){.___SColumn_8ae7k_gg_.__sortable_8ae7k_gg_:hover{cursor:pointer}}.___SSortWrapper_8ae7k_gg_{align-items:center;display:flex;flex-shrink:1;position:relative;flex-basis:0;min-height:16px;opacity:0;transition:all calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out}.___SSortButton_8ae7k_gg_,.___SSortWrapper_8ae7k_gg_:before{display:none;position:absolute;right:0;opacity:0;transition:opacity .3s ease}.___SSortWrapper_8ae7k_gg_:before{content:"";top:0;width:20px;height:100%}.___SSortButton_8ae7k_gg_{fill:var(--intergalactic-icon-secondary-neutral-hover-active, #878992);top:calc(-1*(1em*1.25 - 16px));margin-left:var(--intergalactic-spacing-1x, 4px)}.___SHead_8ae7k_gg_._sideIndents_wide_8ae7k_gg_ .___SColumn_8ae7k_gg_:first-child{padding-left:var(--intergalactic-spacing-5x, 20px)}.___SHead_8ae7k_gg_._sideIndents_wide_8ae7k_gg_ .___SColumn_8ae7k_gg_:last-child{padding-right:var(--intergalactic-spacing-5x, 20px)}.___SHeadCheckboxCol_8ae7k_gg_{cursor:pointer}',
|
|
23
23
|
/*__inner_css_end__*/
|
|
24
|
-
"
|
|
24
|
+
"8ae7k_gg_"
|
|
25
25
|
), /*__reshadow_css_end__*/
|
|
26
26
|
{
|
|
27
|
-
"__SHead": "
|
|
28
|
-
"__SGroupContainer": "
|
|
29
|
-
"_sticky": "
|
|
30
|
-
"__SColumn": "
|
|
31
|
-
"__SGroup": "
|
|
32
|
-
"_compact": "
|
|
33
|
-
"_use_secondary": "
|
|
34
|
-
"_borders_both": "
|
|
35
|
-
"_borders_left": "
|
|
36
|
-
"_borders_right": "
|
|
37
|
-
"_gridArea": "
|
|
38
|
-
"__SGroupTitle": "
|
|
39
|
-
"--gridArea": "--
|
|
40
|
-
"_fixed": "
|
|
41
|
-
"_sortable": "
|
|
42
|
-
"__SSortWrapper": "
|
|
43
|
-
"__SSortButton": "
|
|
44
|
-
"__SHeadCheckboxCol": "
|
|
45
|
-
"_use_primary": "
|
|
46
|
-
"_visibleSort": "
|
|
47
|
-
"_sideIndents_wide": "
|
|
27
|
+
"__SHead": "___SHead_8ae7k_gg_",
|
|
28
|
+
"__SGroupContainer": "___SGroupContainer_8ae7k_gg_",
|
|
29
|
+
"_sticky": "__sticky_8ae7k_gg_",
|
|
30
|
+
"__SColumn": "___SColumn_8ae7k_gg_",
|
|
31
|
+
"__SGroup": "___SGroup_8ae7k_gg_",
|
|
32
|
+
"_compact": "__compact_8ae7k_gg_",
|
|
33
|
+
"_use_secondary": "_use_secondary_8ae7k_gg_",
|
|
34
|
+
"_borders_both": "_borders_both_8ae7k_gg_",
|
|
35
|
+
"_borders_left": "_borders_left_8ae7k_gg_",
|
|
36
|
+
"_borders_right": "_borders_right_8ae7k_gg_",
|
|
37
|
+
"_gridArea": "__gridArea_8ae7k_gg_",
|
|
38
|
+
"__SGroupTitle": "___SGroupTitle_8ae7k_gg_",
|
|
39
|
+
"--gridArea": "--gridArea_8ae7k",
|
|
40
|
+
"_fixed": "__fixed_8ae7k_gg_",
|
|
41
|
+
"_sortable": "__sortable_8ae7k_gg_",
|
|
42
|
+
"__SSortWrapper": "___SSortWrapper_8ae7k_gg_",
|
|
43
|
+
"__SSortButton": "___SSortButton_8ae7k_gg_",
|
|
44
|
+
"__SHeadCheckboxCol": "___SHeadCheckboxCol_8ae7k_gg_",
|
|
45
|
+
"_use_primary": "_use_primary_8ae7k_gg_",
|
|
46
|
+
"_visibleSort": "__visibleSort_8ae7k_gg_",
|
|
47
|
+
"_sideIndents_wide": "_sideIndents_wide_8ae7k_gg_"
|
|
48
48
|
})
|
|
49
49
|
);
|
|
50
50
|
var SORTING_ICON = {
|
|
@@ -16,32 +16,32 @@ var style = (
|
|
|
16
16
|
/*__reshadow_css_start__*/
|
|
17
17
|
(sstyled.insert(
|
|
18
18
|
/*__inner_css_start__*/
|
|
19
|
-
'.
|
|
19
|
+
'.___SGroupContainer_8ae7k_gg_,.___SHead_8ae7k_gg_{display:contents}.___SHead_8ae7k_gg_.__sticky_8ae7k_gg_ .___SColumn_8ae7k_gg_{position:sticky;top:0;z-index:2}.___SHead_8ae7k_gg_.__sticky_8ae7k_gg_ .___SGroup_8ae7k_gg_{top:0}.___SHead_8ae7k_gg_.__sticky_8ae7k_gg_ .___SGroupContainer_8ae7k_gg_>.___SColumn_8ae7k_gg_{position:sticky;z-index:2}.___SHead_8ae7k_gg_.__compact_8ae7k_gg_ .___SColumn_8ae7k_gg_{padding:var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-2x, 8px)}.___SColumn_8ae7k_gg_,.___SGroup_8ae7k_gg_{display:flex;align-items:flex-start;font-size:var(--intergalactic-fs-100, 12px);color:var(--intergalactic-text-primary, #191b23);box-sizing:border-box;height:100%;position:relative;transition:width calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out,min-width calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out,max-width calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out;overflow:hidden}.___SGroup_8ae7k_gg_{justify-content:center;text-align:center;background-color:var(--intergalactic-table-th-primary-cell, #f4f5f9)}.___SGroup_8ae7k_gg_._use_primary_8ae7k_gg_{padding:var(--intergalactic-spacing-3x, 12px)}.___SGroup_8ae7k_gg_._use_primary_8ae7k_gg_:has(~.___SColumn_8ae7k_gg_.__visibleSort_8ae7k_gg_){background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SGroup_8ae7k_gg_._use_secondary_8ae7k_gg_{padding:var(--intergalactic-spacing-2x, 8px)}.___SColumn_8ae7k_gg_._borders_both_8ae7k_gg_,.___SColumn_8ae7k_gg_._borders_left_8ae7k_gg_,.___SGroup_8ae7k_gg_._borders_both_8ae7k_gg_,.___SGroup_8ae7k_gg_._borders_left_8ae7k_gg_{border-left:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_8ae7k_gg_._borders_both_8ae7k_gg_,.___SColumn_8ae7k_gg_._borders_right_8ae7k_gg_,.___SGroup_8ae7k_gg_._borders_both_8ae7k_gg_,.___SGroup_8ae7k_gg_._borders_right_8ae7k_gg_{border-right:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_8ae7k_gg_._use_primary_8ae7k_gg_{padding:var(--intergalactic-spacing-3x, 12px);border-bottom:1px solid var(--intergalactic-border-secondary, #e0e1e9);background-color:var(--intergalactic-table-th-primary-cell, #f4f5f9)}.___SColumn_8ae7k_gg_._use_primary_8ae7k_gg_ .___SSortWrapper_8ae7k_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-primary-cell-hover, #e0e1e9) 67.5%,rgba(224,225,233,0) 105%)}.___SColumn_8ae7k_gg_._use_primary_8ae7k_gg_.__visibleSort_8ae7k_gg_{background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SColumn_8ae7k_gg_._use_primary_8ae7k_gg_.__visibleSort_8ae7k_gg_ .___SSortWrapper_8ae7k_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_8ae7k_gg_._use_primary_8ae7k_gg_.__visibleSort_8ae7k_gg_ .___SSortButton_8ae7k_gg_,.___SColumn_8ae7k_gg_._use_primary_8ae7k_gg_.__visibleSort_8ae7k_gg_ .___SSortWrapper_8ae7k_gg_::before,.___SColumn_8ae7k_gg_._use_secondary_8ae7k_gg_.__visibleSort_8ae7k_gg_ .___SSortWrapper_8ae7k_gg_::before{display:flex;opacity:1}.___SColumn_8ae7k_gg_._use_secondary_8ae7k_gg_{padding:var(--intergalactic-spacing-2x, 8px);border-bottom:1px solid var(--intergalactic-border-table-accent, #a9abb6);background-color:var(--intergalactic-table-th-secondary-cell, #ffffff)}.___SColumn_8ae7k_gg_._use_secondary_8ae7k_gg_ .___SSortWrapper_8ae7k_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-secondary-cell, #ffffff) 67.5%,rgba(255,255,255,0) 105%)}.___SColumn_8ae7k_gg_._use_secondary_8ae7k_gg_.__visibleSort_8ae7k_gg_ .___SSortWrapper_8ae7k_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_8ae7k_gg_._use_secondary_8ae7k_gg_.__visibleSort_8ae7k_gg_ .___SSortButton_8ae7k_gg_{display:flex;opacity:1}.___SColumn_8ae7k_gg_.__gridArea_8ae7k_gg_,.___SGroupTitle_8ae7k_gg_.__gridArea_8ae7k_gg_,.___SGroup_8ae7k_gg_.__gridArea_8ae7k_gg_{grid-area:var(--gridArea_8ae7k)}.___SHead_8ae7k_gg_ .___SColumn_8ae7k_gg_.__fixed_8ae7k_gg_,.___SHead_8ae7k_gg_ .___SGroup_8ae7k_gg_.__fixed_8ae7k_gg_,.___SHead_8ae7k_gg_.__sticky_8ae7k_gg_ .___SColumn_8ae7k_gg_.__fixed_8ae7k_gg_,.___SHead_8ae7k_gg_.__sticky_8ae7k_gg_ .___SGroup_8ae7k_gg_{position:sticky;z-index:3}@media (hover:hover){.___SColumn_8ae7k_gg_.__sortable_8ae7k_gg_:hover{cursor:pointer}}.___SSortWrapper_8ae7k_gg_{align-items:center;display:flex;flex-shrink:1;position:relative;flex-basis:0;min-height:16px;opacity:0;transition:all calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out}.___SSortButton_8ae7k_gg_,.___SSortWrapper_8ae7k_gg_:before{display:none;position:absolute;right:0;opacity:0;transition:opacity .3s ease}.___SSortWrapper_8ae7k_gg_:before{content:"";top:0;width:20px;height:100%}.___SSortButton_8ae7k_gg_{fill:var(--intergalactic-icon-secondary-neutral-hover-active, #878992);top:calc(-1*(1em*1.25 - 16px));margin-left:var(--intergalactic-spacing-1x, 4px)}.___SHead_8ae7k_gg_._sideIndents_wide_8ae7k_gg_ .___SColumn_8ae7k_gg_:first-child{padding-left:var(--intergalactic-spacing-5x, 20px)}.___SHead_8ae7k_gg_._sideIndents_wide_8ae7k_gg_ .___SColumn_8ae7k_gg_:last-child{padding-right:var(--intergalactic-spacing-5x, 20px)}.___SHeadCheckboxCol_8ae7k_gg_{cursor:pointer}',
|
|
20
20
|
/*__inner_css_end__*/
|
|
21
|
-
"
|
|
21
|
+
"8ae7k_gg_"
|
|
22
22
|
), /*__reshadow_css_end__*/
|
|
23
23
|
{
|
|
24
|
-
"__SHead": "
|
|
25
|
-
"__SGroupContainer": "
|
|
26
|
-
"_sticky": "
|
|
27
|
-
"__SColumn": "
|
|
28
|
-
"__SGroup": "
|
|
29
|
-
"_compact": "
|
|
30
|
-
"_use_secondary": "
|
|
31
|
-
"_borders_both": "
|
|
32
|
-
"_borders_left": "
|
|
33
|
-
"_borders_right": "
|
|
34
|
-
"_gridArea": "
|
|
35
|
-
"__SGroupTitle": "
|
|
36
|
-
"--gridArea": "--
|
|
37
|
-
"_fixed": "
|
|
38
|
-
"_sortable": "
|
|
39
|
-
"__SSortWrapper": "
|
|
40
|
-
"__SSortButton": "
|
|
41
|
-
"__SHeadCheckboxCol": "
|
|
42
|
-
"_use_primary": "
|
|
43
|
-
"_visibleSort": "
|
|
44
|
-
"_sideIndents_wide": "
|
|
24
|
+
"__SHead": "___SHead_8ae7k_gg_",
|
|
25
|
+
"__SGroupContainer": "___SGroupContainer_8ae7k_gg_",
|
|
26
|
+
"_sticky": "__sticky_8ae7k_gg_",
|
|
27
|
+
"__SColumn": "___SColumn_8ae7k_gg_",
|
|
28
|
+
"__SGroup": "___SGroup_8ae7k_gg_",
|
|
29
|
+
"_compact": "__compact_8ae7k_gg_",
|
|
30
|
+
"_use_secondary": "_use_secondary_8ae7k_gg_",
|
|
31
|
+
"_borders_both": "_borders_both_8ae7k_gg_",
|
|
32
|
+
"_borders_left": "_borders_left_8ae7k_gg_",
|
|
33
|
+
"_borders_right": "_borders_right_8ae7k_gg_",
|
|
34
|
+
"_gridArea": "__gridArea_8ae7k_gg_",
|
|
35
|
+
"__SGroupTitle": "___SGroupTitle_8ae7k_gg_",
|
|
36
|
+
"--gridArea": "--gridArea_8ae7k",
|
|
37
|
+
"_fixed": "__fixed_8ae7k_gg_",
|
|
38
|
+
"_sortable": "__sortable_8ae7k_gg_",
|
|
39
|
+
"__SSortWrapper": "___SSortWrapper_8ae7k_gg_",
|
|
40
|
+
"__SSortButton": "___SSortButton_8ae7k_gg_",
|
|
41
|
+
"__SHeadCheckboxCol": "___SHeadCheckboxCol_8ae7k_gg_",
|
|
42
|
+
"_use_primary": "_use_primary_8ae7k_gg_",
|
|
43
|
+
"_visibleSort": "__visibleSort_8ae7k_gg_",
|
|
44
|
+
"_sideIndents_wide": "_sideIndents_wide_8ae7k_gg_"
|
|
45
45
|
})
|
|
46
46
|
);
|
|
47
47
|
var Group = /* @__PURE__ */ function(_Component) {
|
|
@@ -19,32 +19,32 @@ var style = (
|
|
|
19
19
|
/*__reshadow_css_start__*/
|
|
20
20
|
(sstyled.insert(
|
|
21
21
|
/*__inner_css_start__*/
|
|
22
|
-
'.
|
|
22
|
+
'.___SGroupContainer_8ae7k_gg_,.___SHead_8ae7k_gg_{display:contents}.___SHead_8ae7k_gg_.__sticky_8ae7k_gg_ .___SColumn_8ae7k_gg_{position:sticky;top:0;z-index:2}.___SHead_8ae7k_gg_.__sticky_8ae7k_gg_ .___SGroup_8ae7k_gg_{top:0}.___SHead_8ae7k_gg_.__sticky_8ae7k_gg_ .___SGroupContainer_8ae7k_gg_>.___SColumn_8ae7k_gg_{position:sticky;z-index:2}.___SHead_8ae7k_gg_.__compact_8ae7k_gg_ .___SColumn_8ae7k_gg_{padding:var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-2x, 8px)}.___SColumn_8ae7k_gg_,.___SGroup_8ae7k_gg_{display:flex;align-items:flex-start;font-size:var(--intergalactic-fs-100, 12px);color:var(--intergalactic-text-primary, #191b23);box-sizing:border-box;height:100%;position:relative;transition:width calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out,min-width calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out,max-width calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out;overflow:hidden}.___SGroup_8ae7k_gg_{justify-content:center;text-align:center;background-color:var(--intergalactic-table-th-primary-cell, #f4f5f9)}.___SGroup_8ae7k_gg_._use_primary_8ae7k_gg_{padding:var(--intergalactic-spacing-3x, 12px)}.___SGroup_8ae7k_gg_._use_primary_8ae7k_gg_:has(~.___SColumn_8ae7k_gg_.__visibleSort_8ae7k_gg_){background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SGroup_8ae7k_gg_._use_secondary_8ae7k_gg_{padding:var(--intergalactic-spacing-2x, 8px)}.___SColumn_8ae7k_gg_._borders_both_8ae7k_gg_,.___SColumn_8ae7k_gg_._borders_left_8ae7k_gg_,.___SGroup_8ae7k_gg_._borders_both_8ae7k_gg_,.___SGroup_8ae7k_gg_._borders_left_8ae7k_gg_{border-left:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_8ae7k_gg_._borders_both_8ae7k_gg_,.___SColumn_8ae7k_gg_._borders_right_8ae7k_gg_,.___SGroup_8ae7k_gg_._borders_both_8ae7k_gg_,.___SGroup_8ae7k_gg_._borders_right_8ae7k_gg_{border-right:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_8ae7k_gg_._use_primary_8ae7k_gg_{padding:var(--intergalactic-spacing-3x, 12px);border-bottom:1px solid var(--intergalactic-border-secondary, #e0e1e9);background-color:var(--intergalactic-table-th-primary-cell, #f4f5f9)}.___SColumn_8ae7k_gg_._use_primary_8ae7k_gg_ .___SSortWrapper_8ae7k_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-primary-cell-hover, #e0e1e9) 67.5%,rgba(224,225,233,0) 105%)}.___SColumn_8ae7k_gg_._use_primary_8ae7k_gg_.__visibleSort_8ae7k_gg_{background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SColumn_8ae7k_gg_._use_primary_8ae7k_gg_.__visibleSort_8ae7k_gg_ .___SSortWrapper_8ae7k_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_8ae7k_gg_._use_primary_8ae7k_gg_.__visibleSort_8ae7k_gg_ .___SSortButton_8ae7k_gg_,.___SColumn_8ae7k_gg_._use_primary_8ae7k_gg_.__visibleSort_8ae7k_gg_ .___SSortWrapper_8ae7k_gg_::before,.___SColumn_8ae7k_gg_._use_secondary_8ae7k_gg_.__visibleSort_8ae7k_gg_ .___SSortWrapper_8ae7k_gg_::before{display:flex;opacity:1}.___SColumn_8ae7k_gg_._use_secondary_8ae7k_gg_{padding:var(--intergalactic-spacing-2x, 8px);border-bottom:1px solid var(--intergalactic-border-table-accent, #a9abb6);background-color:var(--intergalactic-table-th-secondary-cell, #ffffff)}.___SColumn_8ae7k_gg_._use_secondary_8ae7k_gg_ .___SSortWrapper_8ae7k_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-secondary-cell, #ffffff) 67.5%,rgba(255,255,255,0) 105%)}.___SColumn_8ae7k_gg_._use_secondary_8ae7k_gg_.__visibleSort_8ae7k_gg_ .___SSortWrapper_8ae7k_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_8ae7k_gg_._use_secondary_8ae7k_gg_.__visibleSort_8ae7k_gg_ .___SSortButton_8ae7k_gg_{display:flex;opacity:1}.___SColumn_8ae7k_gg_.__gridArea_8ae7k_gg_,.___SGroupTitle_8ae7k_gg_.__gridArea_8ae7k_gg_,.___SGroup_8ae7k_gg_.__gridArea_8ae7k_gg_{grid-area:var(--gridArea_8ae7k)}.___SHead_8ae7k_gg_ .___SColumn_8ae7k_gg_.__fixed_8ae7k_gg_,.___SHead_8ae7k_gg_ .___SGroup_8ae7k_gg_.__fixed_8ae7k_gg_,.___SHead_8ae7k_gg_.__sticky_8ae7k_gg_ .___SColumn_8ae7k_gg_.__fixed_8ae7k_gg_,.___SHead_8ae7k_gg_.__sticky_8ae7k_gg_ .___SGroup_8ae7k_gg_{position:sticky;z-index:3}@media (hover:hover){.___SColumn_8ae7k_gg_.__sortable_8ae7k_gg_:hover{cursor:pointer}}.___SSortWrapper_8ae7k_gg_{align-items:center;display:flex;flex-shrink:1;position:relative;flex-basis:0;min-height:16px;opacity:0;transition:all calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out}.___SSortButton_8ae7k_gg_,.___SSortWrapper_8ae7k_gg_:before{display:none;position:absolute;right:0;opacity:0;transition:opacity .3s ease}.___SSortWrapper_8ae7k_gg_:before{content:"";top:0;width:20px;height:100%}.___SSortButton_8ae7k_gg_{fill:var(--intergalactic-icon-secondary-neutral-hover-active, #878992);top:calc(-1*(1em*1.25 - 16px));margin-left:var(--intergalactic-spacing-1x, 4px)}.___SHead_8ae7k_gg_._sideIndents_wide_8ae7k_gg_ .___SColumn_8ae7k_gg_:first-child{padding-left:var(--intergalactic-spacing-5x, 20px)}.___SHead_8ae7k_gg_._sideIndents_wide_8ae7k_gg_ .___SColumn_8ae7k_gg_:last-child{padding-right:var(--intergalactic-spacing-5x, 20px)}.___SHeadCheckboxCol_8ae7k_gg_{cursor:pointer}',
|
|
23
23
|
/*__inner_css_end__*/
|
|
24
|
-
"
|
|
24
|
+
"8ae7k_gg_"
|
|
25
25
|
), /*__reshadow_css_end__*/
|
|
26
26
|
{
|
|
27
|
-
"__SHead": "
|
|
28
|
-
"__SGroupContainer": "
|
|
29
|
-
"_sticky": "
|
|
30
|
-
"__SColumn": "
|
|
31
|
-
"__SGroup": "
|
|
32
|
-
"_compact": "
|
|
33
|
-
"_use_secondary": "
|
|
34
|
-
"_borders_both": "
|
|
35
|
-
"_borders_left": "
|
|
36
|
-
"_borders_right": "
|
|
37
|
-
"_gridArea": "
|
|
38
|
-
"__SGroupTitle": "
|
|
39
|
-
"--gridArea": "--
|
|
40
|
-
"_fixed": "
|
|
41
|
-
"_sortable": "
|
|
42
|
-
"__SSortWrapper": "
|
|
43
|
-
"__SSortButton": "
|
|
44
|
-
"__SHeadCheckboxCol": "
|
|
45
|
-
"_use_primary": "
|
|
46
|
-
"_visibleSort": "
|
|
47
|
-
"_sideIndents_wide": "
|
|
27
|
+
"__SHead": "___SHead_8ae7k_gg_",
|
|
28
|
+
"__SGroupContainer": "___SGroupContainer_8ae7k_gg_",
|
|
29
|
+
"_sticky": "__sticky_8ae7k_gg_",
|
|
30
|
+
"__SColumn": "___SColumn_8ae7k_gg_",
|
|
31
|
+
"__SGroup": "___SGroup_8ae7k_gg_",
|
|
32
|
+
"_compact": "__compact_8ae7k_gg_",
|
|
33
|
+
"_use_secondary": "_use_secondary_8ae7k_gg_",
|
|
34
|
+
"_borders_both": "_borders_both_8ae7k_gg_",
|
|
35
|
+
"_borders_left": "_borders_left_8ae7k_gg_",
|
|
36
|
+
"_borders_right": "_borders_right_8ae7k_gg_",
|
|
37
|
+
"_gridArea": "__gridArea_8ae7k_gg_",
|
|
38
|
+
"__SGroupTitle": "___SGroupTitle_8ae7k_gg_",
|
|
39
|
+
"--gridArea": "--gridArea_8ae7k",
|
|
40
|
+
"_fixed": "__fixed_8ae7k_gg_",
|
|
41
|
+
"_sortable": "__sortable_8ae7k_gg_",
|
|
42
|
+
"__SSortWrapper": "___SSortWrapper_8ae7k_gg_",
|
|
43
|
+
"__SSortButton": "___SSortButton_8ae7k_gg_",
|
|
44
|
+
"__SHeadCheckboxCol": "___SHeadCheckboxCol_8ae7k_gg_",
|
|
45
|
+
"_use_primary": "_use_primary_8ae7k_gg_",
|
|
46
|
+
"_visibleSort": "__visibleSort_8ae7k_gg_",
|
|
47
|
+
"_sideIndents_wide": "_sideIndents_wide_8ae7k_gg_"
|
|
48
48
|
})
|
|
49
49
|
);
|
|
50
50
|
var HeadRoot = /* @__PURE__ */ function(_Component) {
|
|
@@ -54,4 +54,5 @@ export type BodyPropsInner = DataTableBodyProps & {
|
|
|
54
54
|
renderEmptyData: () => React.ReactNode;
|
|
55
55
|
sideIndents?: 'wide';
|
|
56
56
|
getFixedStyle: (cell: Pick<DTColumn, 'name' | 'fixed'>) => [side: 'left' | 'right', style: string | number] | [side: undefined, style: undefined];
|
|
57
|
+
accordionDuration?: number | [number, number];
|
|
57
58
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { DTRow } from './Row.types';
|
|
2
|
+
import { DTRow, DTRows } from './Row.types';
|
|
3
3
|
import { DTUse } from '../DataTable/DataTable.types';
|
|
4
4
|
import { DTColumn } from '../Head/Column.types';
|
|
5
5
|
export type Theme = 'muted' | 'info' | 'success' | 'warning' | 'danger';
|
|
@@ -14,9 +14,14 @@ export type DataTableCellProps = {
|
|
|
14
14
|
children?: React.ReactNode;
|
|
15
15
|
expanded?: boolean;
|
|
16
16
|
withAccordion?: boolean;
|
|
17
|
+
isAccordionRow?: boolean;
|
|
18
|
+
animationExpand?: boolean;
|
|
19
|
+
accordionRowIndex?: number;
|
|
20
|
+
rows: DTRows;
|
|
17
21
|
};
|
|
18
22
|
export type CellPropsInner = {
|
|
19
23
|
use: DTUse;
|
|
20
24
|
virtualScroll: boolean;
|
|
21
25
|
tableRef: React.RefObject<HTMLDivElement>;
|
|
26
|
+
accordionDuration?: number | [number, number];
|
|
22
27
|
};
|