@semcore/data-table 16.3.0-prerelease.4 → 16.3.1
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 -5
- package/lib/cjs/components/Body/Body.js +48 -45
- package/lib/cjs/components/Body/Body.js.map +1 -1
- package/lib/cjs/components/Body/Cell.js +44 -44
- package/lib/cjs/components/Body/Row.js +44 -44
- package/lib/cjs/components/DataTable/DataTable.js +26 -26
- package/lib/cjs/components/Head/Column.js +41 -41
- package/lib/cjs/components/Head/Column.js.map +1 -1
- package/lib/cjs/components/Head/Group.js +38 -70
- package/lib/cjs/components/Head/Group.js.map +1 -1
- package/lib/cjs/components/Head/Head.js +80 -43
- package/lib/cjs/components/Head/Head.js.map +1 -1
- package/lib/es6/components/Body/Body.js +48 -45
- package/lib/es6/components/Body/Body.js.map +1 -1
- package/lib/es6/components/Body/Cell.js +44 -44
- package/lib/es6/components/Body/Row.js +44 -44
- package/lib/es6/components/DataTable/DataTable.js +26 -26
- package/lib/es6/components/Head/Column.js +41 -41
- package/lib/es6/components/Head/Column.js.map +1 -1
- package/lib/es6/components/Head/Group.js +38 -70
- package/lib/es6/components/Head/Group.js.map +1 -1
- package/lib/es6/components/Head/Head.js +80 -43
- package/lib/es6/components/Head/Head.js.map +1 -1
- package/lib/esm/components/Body/Body.mjs +49 -46
- package/lib/esm/components/Body/Cell.mjs +45 -45
- package/lib/esm/components/Body/Row.mjs +45 -45
- package/lib/esm/components/DataTable/DataTable.mjs +28 -28
- package/lib/esm/components/Head/Column.mjs +42 -42
- package/lib/esm/components/Head/Group.mjs +40 -63
- package/lib/esm/components/Head/Head.mjs +69 -41
- package/package.json +22 -22
|
@@ -31,19 +31,19 @@ var style = (
|
|
|
31
31
|
/*__reshadow_css_start__*/
|
|
32
32
|
(sstyled.insert(
|
|
33
33
|
/*__inner_css_start__*/
|
|
34
|
-
".
|
|
34
|
+
".___SDataTable_1uu41_gg_{display:grid;align-items:start;min-width:-moz-fit-content;min-width:fit-content}.___SDataTable_1uu41_gg_.__isDataEmpty_1uu41_gg_{display:block;align-items:initial;min-width:initial}.___SDataTable_1uu41_gg_.__gridTemplateColumns_1uu41_gg_{grid-template-columns:var(--gridTemplateColumns_1uu41)}.___SDataTable_1uu41_gg_.__gridTemplateAreas_1uu41_gg_{grid-template-areas:var(--gridTemplateAreas_1uu41)}.___SDataTable_1uu41_gg_.__gridTemplateRows_1uu41_gg_{grid-template-rows:var(--gridTemplateRows_1uu41)}",
|
|
35
35
|
/*__inner_css_end__*/
|
|
36
|
-
"
|
|
36
|
+
"1uu41_gg_"
|
|
37
37
|
), /*__reshadow_css_end__*/
|
|
38
38
|
{
|
|
39
|
-
"__SDataTable": "
|
|
40
|
-
"_isDataEmpty": "
|
|
41
|
-
"_gridTemplateColumns": "
|
|
42
|
-
"--gridTemplateColumns": "--
|
|
43
|
-
"_gridTemplateAreas": "
|
|
44
|
-
"--gridTemplateAreas": "--
|
|
45
|
-
"_gridTemplateRows": "
|
|
46
|
-
"--gridTemplateRows": "--
|
|
39
|
+
"__SDataTable": "___SDataTable_1uu41_gg_",
|
|
40
|
+
"_isDataEmpty": "__isDataEmpty_1uu41_gg_",
|
|
41
|
+
"_gridTemplateColumns": "__gridTemplateColumns_1uu41_gg_",
|
|
42
|
+
"--gridTemplateColumns": "--gridTemplateColumns_1uu41",
|
|
43
|
+
"_gridTemplateAreas": "__gridTemplateAreas_1uu41_gg_",
|
|
44
|
+
"--gridTemplateAreas": "--gridTemplateAreas_1uu41",
|
|
45
|
+
"_gridTemplateRows": "__gridTemplateRows_1uu41_gg_",
|
|
46
|
+
"--gridTemplateRows": "--gridTemplateRows_1uu41"
|
|
47
47
|
})
|
|
48
48
|
);
|
|
49
49
|
/*!__reshadow-styles__:"../../style/scroll-shadows.shadow.css"*/
|
|
@@ -51,27 +51,27 @@ var scrollStyles = (
|
|
|
51
51
|
/*__reshadow_css_start__*/
|
|
52
52
|
(sstyled.insert(
|
|
53
53
|
/*__inner_css_start__*/
|
|
54
|
-
".
|
|
54
|
+
".___SScrollArea_1v4r4_gg_{width:-moz-fit-content;width:fit-content}.___SScrollArea_1v4r4_gg_ .___SContainer_1v4r4_gg_{overflow:visible;overflow:initial}.___SScrollArea_1v4r4_gg_ .___SContainer_1v4r4_gg_._scrollDirection_both_1v4r4_gg_{overflow:auto}.___SScrollArea_1v4r4_gg_ .___SContainer_1v4r4_gg_._scrollDirection_both_1v4r4_gg_.__loading_1v4r4_gg_,.___SScrollArea_1v4r4_gg_ .___SContainer_1v4r4_gg_._scrollDirection_horizontal_1v4r4_gg_.__loading_1v4r4_gg_,.___SScrollArea_1v4r4_gg_ .___SContainer_1v4r4_gg_._scrollDirection_vertical_1v4r4_gg_.__loading_1v4r4_gg_{overflow:hidden}.___SScrollArea_1v4r4_gg_ .___SContainer_1v4r4_gg_._scrollDirection_horizontal_1v4r4_gg_{overflow-x:auto;overflow-y:initial}.___SScrollArea_1v4r4_gg_ .___SContainer_1v4r4_gg_._scrollDirection_vertical_1v4r4_gg_{overflow-x:initial;overflow-y:auto}.___SScrollArea_1v4r4_gg_ .___SContainer_1v4r4_gg_.__headerHeight_1v4r4_gg_{scroll-padding-top:var(--headerHeight_1v4r4)}.___SScrollArea_1v4r4_gg_ .___SContainer_1v4r4_gg_.__leftScrollPadding_1v4r4_gg_{scroll-padding-left:var(--leftScrollPadding_1v4r4)}.___SScrollArea_1v4r4_gg_ .___SContainer_1v4r4_gg_.__rightScrollPadding_1v4r4_gg_{scroll-padding-right:var(--rightScrollPadding_1v4r4)}.___SScrollArea_1v4r4_gg_ .___SShadowHorizontal_1v4r4_gg_::before,.___SScrollArea_1v4r4_gg_ .___SShadowHorizontal_1v4r4_gg_:after,.___SScrollArea_1v4r4_gg_ .___SShadowVertical_1v4r4_gg_::after{z-index:20}.___SScrollArea_1v4r4_gg_ .___SShadowHorizontal_1v4r4_gg_.__leftOffset_1v4r4_gg_::before,.___SScrollArea_1v4r4_gg_ .___SShadowHorizontal_1v4r4_gg_.__rightOffset_1v4r4_gg_::after,.___SScrollArea_1v4r4_gg_ .___SShadowVertical_1v4r4_gg_::before{display:none}",
|
|
55
55
|
/*__inner_css_end__*/
|
|
56
|
-
"
|
|
56
|
+
"1v4r4_gg_"
|
|
57
57
|
), /*__reshadow_css_end__*/
|
|
58
58
|
{
|
|
59
|
-
"__SScrollArea": "
|
|
60
|
-
"__SContainer": "
|
|
61
|
-
"_scrollDirection_both": "
|
|
62
|
-
"_loading": "
|
|
63
|
-
"_scrollDirection_horizontal": "
|
|
64
|
-
"_scrollDirection_vertical": "
|
|
65
|
-
"_headerHeight": "
|
|
66
|
-
"--headerHeight": "--
|
|
67
|
-
"_leftScrollPadding": "
|
|
68
|
-
"--leftScrollPadding": "--
|
|
69
|
-
"_rightScrollPadding": "
|
|
70
|
-
"--rightScrollPadding": "--
|
|
71
|
-
"__SShadowVertical": "
|
|
72
|
-
"__SShadowHorizontal": "
|
|
73
|
-
"_leftOffset": "
|
|
74
|
-
"_rightOffset": "
|
|
59
|
+
"__SScrollArea": "___SScrollArea_1v4r4_gg_",
|
|
60
|
+
"__SContainer": "___SContainer_1v4r4_gg_",
|
|
61
|
+
"_scrollDirection_both": "_scrollDirection_both_1v4r4_gg_",
|
|
62
|
+
"_loading": "__loading_1v4r4_gg_",
|
|
63
|
+
"_scrollDirection_horizontal": "_scrollDirection_horizontal_1v4r4_gg_",
|
|
64
|
+
"_scrollDirection_vertical": "_scrollDirection_vertical_1v4r4_gg_",
|
|
65
|
+
"_headerHeight": "__headerHeight_1v4r4_gg_",
|
|
66
|
+
"--headerHeight": "--headerHeight_1v4r4",
|
|
67
|
+
"_leftScrollPadding": "__leftScrollPadding_1v4r4_gg_",
|
|
68
|
+
"--leftScrollPadding": "--leftScrollPadding_1v4r4",
|
|
69
|
+
"_rightScrollPadding": "__rightScrollPadding_1v4r4_gg_",
|
|
70
|
+
"--rightScrollPadding": "--rightScrollPadding_1v4r4",
|
|
71
|
+
"__SShadowVertical": "___SShadowVertical_1v4r4_gg_",
|
|
72
|
+
"__SShadowHorizontal": "___SShadowHorizontal_1v4r4_gg_",
|
|
73
|
+
"_leftOffset": "__leftOffset_1v4r4_gg_",
|
|
74
|
+
"_rightOffset": "__rightOffset_1v4r4_gg_"
|
|
75
75
|
})
|
|
76
76
|
);
|
|
77
77
|
var ACCORDION = Symbol("accordion");
|
|
@@ -11,6 +11,7 @@ import { sstyled, assignProps, Component, lastInteraction } from "@semcore/core"
|
|
|
11
11
|
import { Flex } from "@semcore/base-components";
|
|
12
12
|
import { ButtonLink } from "@semcore/button";
|
|
13
13
|
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
14
|
+
import cssToIntDefault from "@semcore/core/lib/utils/cssToIntDefault";
|
|
14
15
|
import { getFocusableIn } from "@semcore/core/lib/utils/focus-lock/getFocusableIn";
|
|
15
16
|
import { isFocusInside } from "@semcore/core/lib/utils/focus-lock/isFocusInside";
|
|
16
17
|
import SortAsc from "@semcore/icon/SortAsc/m";
|
|
@@ -24,46 +25,46 @@ var style = (
|
|
|
24
25
|
/*__reshadow_css_start__*/
|
|
25
26
|
(sstyled.insert(
|
|
26
27
|
/*__inner_css_start__*/
|
|
27
|
-
'.
|
|
28
|
+
'.___SGroupContainer_1vfex_gg_,.___SHead_1vfex_gg_{display:contents}.___SHead_1vfex_gg_.__isDataEmpty_1vfex_gg_.__gridTemplateColumns_1vfex_gg_{display:grid;grid-template-columns:var(--gridTemplateColumns_1vfex);overflow:auto;scrollbar-width:thin}.___SHead_1vfex_gg_.__animationDuration_1vfex_gg_>.___SColumn_1vfex_gg_{transition:top var(--animationDuration_1vfex) ease-out}.___SHead_1vfex_gg_.__sticky_1vfex_gg_ .___SColumn_1vfex_gg_,.___SHead_1vfex_gg_.__sticky_1vfex_gg_ .___SGroup_1vfex_gg_{position:sticky;top:0;z-index:18}.___SHead_1vfex_gg_.__sticky_1vfex_gg_ .___SGroupContainer_1vfex_gg_>.___SColumn_1vfex_gg_{position:sticky;z-index:18}.___SHead_1vfex_gg_.__compact_1vfex_gg_ .___SColumn_1vfex_gg_{padding:var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-2x, 8px)}.___SColumn_1vfex_gg_,.___SGroup_1vfex_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;line-height:var(--intergalactic-lh-100, 133%)}.___SGroup_1vfex_gg_{justify-content:center;text-align:center;background-color:var(--intergalactic-table-th-primary-cell, #f4f5f9)}.___SGroup_1vfex_gg_._use_primary_1vfex_gg_{padding:var(--intergalactic-spacing-3x, 12px)}.___SGroup_1vfex_gg_._use_primary_1vfex_gg_:has(~.___SColumn_1vfex_gg_.__visibleSort_1vfex_gg_){background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SGroup_1vfex_gg_._use_secondary_1vfex_gg_{padding:var(--intergalactic-spacing-2x, 8px)}.___SColumn_1vfex_gg_._borders_both_1vfex_gg_,.___SColumn_1vfex_gg_._borders_left_1vfex_gg_,.___SGroup_1vfex_gg_._borders_both_1vfex_gg_,.___SGroup_1vfex_gg_._borders_left_1vfex_gg_{border-left:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_1vfex_gg_._borders_both_1vfex_gg_,.___SColumn_1vfex_gg_._borders_right_1vfex_gg_,.___SGroup_1vfex_gg_._borders_both_1vfex_gg_,.___SGroup_1vfex_gg_._borders_right_1vfex_gg_{border-right:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_1vfex_gg_._use_primary_1vfex_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_1vfex_gg_._use_primary_1vfex_gg_ .___SSortWrapper_1vfex_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-primary-cell-hover, #e0e1e9) 67.5%,rgba(224,225,233,0) 105%)}.___SColumn_1vfex_gg_._use_primary_1vfex_gg_.__visibleSort_1vfex_gg_{background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SColumn_1vfex_gg_._use_primary_1vfex_gg_.__visibleSort_1vfex_gg_ .___SSortWrapper_1vfex_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_1vfex_gg_._use_primary_1vfex_gg_.__visibleSort_1vfex_gg_ .___SSortButton_1vfex_gg_,.___SColumn_1vfex_gg_._use_primary_1vfex_gg_.__visibleSort_1vfex_gg_ .___SSortWrapper_1vfex_gg_::before,.___SColumn_1vfex_gg_._use_secondary_1vfex_gg_.__visibleSort_1vfex_gg_ .___SSortWrapper_1vfex_gg_::before{display:flex;opacity:1}.___SColumn_1vfex_gg_._use_primary_1vfex_gg_._justifyContent_right_1vfex_gg_ .___SSortWrapper_1vfex_gg_{position:absolute}.___SColumn_1vfex_gg_._use_primary_1vfex_gg_._justifyContent_right_1vfex_gg_.__changeSortSize_1vfex_gg_.__isSorted_1vfex_gg_ .___SSortWrapper_1vfex_gg_,.___SColumn_1vfex_gg_._use_secondary_1vfex_gg_._justifyContent_right_1vfex_gg_.__changeSortSize_1vfex_gg_.__isSorted_1vfex_gg_ .___SSortWrapper_1vfex_gg_{position:relative}.___SColumn_1vfex_gg_._use_secondary_1vfex_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_1vfex_gg_._use_secondary_1vfex_gg_ .___SSortWrapper_1vfex_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-secondary-cell, #ffffff) 67.5%,rgba(255,255,255,0) 105%)}.___SColumn_1vfex_gg_._use_secondary_1vfex_gg_.__visibleSort_1vfex_gg_ .___SSortWrapper_1vfex_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_1vfex_gg_._use_secondary_1vfex_gg_.__visibleSort_1vfex_gg_ .___SSortButton_1vfex_gg_{display:flex;opacity:1}.___SColumn_1vfex_gg_._use_secondary_1vfex_gg_._justifyContent_right_1vfex_gg_ .___SSortWrapper_1vfex_gg_{position:absolute}.___SColumn_1vfex_gg_.__gridArea_1vfex_gg_,.___SGroupTitle_1vfex_gg_.__gridArea_1vfex_gg_,.___SGroup_1vfex_gg_.__gridArea_1vfex_gg_{grid-area:var(--gridArea_1vfex)}.___SHead_1vfex_gg_ .___SColumn_1vfex_gg_.__fixed_1vfex_gg_,.___SHead_1vfex_gg_ .___SGroup_1vfex_gg_.__fixed_1vfex_gg_,.___SHead_1vfex_gg_.__sticky_1vfex_gg_ .___SColumn_1vfex_gg_.__fixed_1vfex_gg_{position:sticky;z-index:19}@media (hover:hover){.___SColumn_1vfex_gg_.__sortable_1vfex_gg_:hover{cursor:pointer}}.___SSortWrapper_1vfex_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_1vfex_gg_,.___SSortWrapper_1vfex_gg_:before{display:none;position:absolute;right:0;opacity:0;transition:opacity .3s ease}.___SSortWrapper_1vfex_gg_:before{content:"";top:0;width:20px;height:100%}.___SSortButton_1vfex_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_1vfex_gg_._sideIndents_wide_1vfex_gg_ .___SColumn_1vfex_gg_:first-child{padding-left:var(--intergalactic-spacing-5x, 20px)}.___SHead_1vfex_gg_._sideIndents_wide_1vfex_gg_ .___SColumn_1vfex_gg_:last-child{padding-right:var(--intergalactic-spacing-5x, 20px)}.___SHeadCheckboxCol_1vfex_gg_{cursor:pointer}.___SColumn_1vfex_gg_.__fixed_1vfex_gg_.__shadowVertical_1vfex_gg_:after,.___SGroup_1vfex_gg_.__fixed_1vfex_gg_.__shadowVertical_1vfex_gg_:after{content:"";position:absolute;pointer-events:none;display:none;top:0;width:5px;height:100%;z-index:5}.___SColumn_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_median_1vfex_gg_,.___SColumn_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_start_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_median_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_start_1vfex_gg_{margin-right:-5px;border-right-color:transparent}.___SColumn_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_median_1vfex_gg_._use_primary_1vfex_gg_,.___SColumn_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_start_1vfex_gg_._use_primary_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_median_1vfex_gg_._use_primary_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_start_1vfex_gg_._use_primary_1vfex_gg_{padding-right:calc(var(--intergalactic-spacing-3x, 12px) + 5px)}.___SColumn_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_median_1vfex_gg_._use_secondary_1vfex_gg_,.___SColumn_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_start_1vfex_gg_._use_secondary_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_median_1vfex_gg_._use_secondary_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_start_1vfex_gg_._use_secondary_1vfex_gg_{padding-right:calc(var(--intergalactic-spacing-2x, 8px) + 5px)}.___SColumn_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_median_1vfex_gg_:after,.___SColumn_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_start_1vfex_gg_:after,.___SGroup_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_median_1vfex_gg_:after,.___SGroup_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_start_1vfex_gg_:after{display:block;right:0;background:var(--intergalactic-scroll-area-shadow-left,\n linear-gradient(to right, rgba(25, 27, 35, 0.1) 20.55%, rgba(255, 255, 255, 0.0001) 100%))}.___SColumn_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_end_1vfex_gg_,.___SColumn_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_median_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_end_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_median_1vfex_gg_{margin-left:-5px;border-left-color:transparent}.___SColumn_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_end_1vfex_gg_._use_primary_1vfex_gg_,.___SColumn_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_median_1vfex_gg_._use_primary_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_end_1vfex_gg_._use_primary_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_median_1vfex_gg_._use_primary_1vfex_gg_{padding-left:calc(var(--intergalactic-spacing-3x, 12px) + 5px)}.___SColumn_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_end_1vfex_gg_._use_secondary_1vfex_gg_,.___SColumn_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_median_1vfex_gg_._use_secondary_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_end_1vfex_gg_._use_secondary_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_median_1vfex_gg_._use_secondary_1vfex_gg_{padding-left:calc(var(--intergalactic-spacing-2x, 8px) + 5px)}.___SColumn_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_end_1vfex_gg_:after,.___SColumn_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_median_1vfex_gg_:after,.___SGroup_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_end_1vfex_gg_:after,.___SGroup_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_median_1vfex_gg_:after{display:block;left:0;background:var(--intergalactic-scroll-area-shadow-right,\n linear-gradient(to left, rgba(25, 27, 35, 0.1) 20.55%, rgba(255, 255, 255, 0.0001) 100%))}',
|
|
28
29
|
/*__inner_css_end__*/
|
|
29
|
-
"
|
|
30
|
+
"1vfex_gg_"
|
|
30
31
|
), /*__reshadow_css_end__*/
|
|
31
32
|
{
|
|
32
|
-
"__SHead": "
|
|
33
|
-
"__SGroupContainer": "
|
|
34
|
-
"_isDataEmpty": "
|
|
35
|
-
"_gridTemplateColumns": "
|
|
36
|
-
"--gridTemplateColumns": "--
|
|
37
|
-
"_animationDuration": "
|
|
38
|
-
"__SColumn": "
|
|
39
|
-
"--animationDuration": "--
|
|
40
|
-
"_sticky": "
|
|
41
|
-
"__SGroup": "
|
|
42
|
-
"_compact": "
|
|
43
|
-
"_use_secondary": "
|
|
44
|
-
"_borders_both": "
|
|
45
|
-
"_borders_left": "
|
|
46
|
-
"_borders_right": "
|
|
47
|
-
"_gridArea": "
|
|
48
|
-
"__SGroupTitle": "
|
|
49
|
-
"--gridArea": "--
|
|
50
|
-
"_fixed": "
|
|
51
|
-
"_sortable": "
|
|
52
|
-
"__SSortWrapper": "
|
|
53
|
-
"__SSortButton": "
|
|
54
|
-
"__SHeadCheckboxCol": "
|
|
55
|
-
"_use_primary": "
|
|
56
|
-
"_visibleSort": "
|
|
57
|
-
"_justifyContent_right": "
|
|
58
|
-
"_changeSortSize": "
|
|
59
|
-
"_isSorted": "
|
|
60
|
-
"_sideIndents_wide": "
|
|
61
|
-
"_shadowVertical": "
|
|
62
|
-
"_fixed_left": "
|
|
63
|
-
"_shadowVertical_median": "
|
|
64
|
-
"_shadowVertical_start": "
|
|
65
|
-
"_fixed_right": "
|
|
66
|
-
"_shadowVertical_end": "
|
|
33
|
+
"__SHead": "___SHead_1vfex_gg_",
|
|
34
|
+
"__SGroupContainer": "___SGroupContainer_1vfex_gg_",
|
|
35
|
+
"_isDataEmpty": "__isDataEmpty_1vfex_gg_",
|
|
36
|
+
"_gridTemplateColumns": "__gridTemplateColumns_1vfex_gg_",
|
|
37
|
+
"--gridTemplateColumns": "--gridTemplateColumns_1vfex",
|
|
38
|
+
"_animationDuration": "__animationDuration_1vfex_gg_",
|
|
39
|
+
"__SColumn": "___SColumn_1vfex_gg_",
|
|
40
|
+
"--animationDuration": "--animationDuration_1vfex",
|
|
41
|
+
"_sticky": "__sticky_1vfex_gg_",
|
|
42
|
+
"__SGroup": "___SGroup_1vfex_gg_",
|
|
43
|
+
"_compact": "__compact_1vfex_gg_",
|
|
44
|
+
"_use_secondary": "_use_secondary_1vfex_gg_",
|
|
45
|
+
"_borders_both": "_borders_both_1vfex_gg_",
|
|
46
|
+
"_borders_left": "_borders_left_1vfex_gg_",
|
|
47
|
+
"_borders_right": "_borders_right_1vfex_gg_",
|
|
48
|
+
"_gridArea": "__gridArea_1vfex_gg_",
|
|
49
|
+
"__SGroupTitle": "___SGroupTitle_1vfex_gg_",
|
|
50
|
+
"--gridArea": "--gridArea_1vfex",
|
|
51
|
+
"_fixed": "__fixed_1vfex_gg_",
|
|
52
|
+
"_sortable": "__sortable_1vfex_gg_",
|
|
53
|
+
"__SSortWrapper": "___SSortWrapper_1vfex_gg_",
|
|
54
|
+
"__SSortButton": "___SSortButton_1vfex_gg_",
|
|
55
|
+
"__SHeadCheckboxCol": "___SHeadCheckboxCol_1vfex_gg_",
|
|
56
|
+
"_use_primary": "_use_primary_1vfex_gg_",
|
|
57
|
+
"_visibleSort": "__visibleSort_1vfex_gg_",
|
|
58
|
+
"_justifyContent_right": "_justifyContent_right_1vfex_gg_",
|
|
59
|
+
"_changeSortSize": "__changeSortSize_1vfex_gg_",
|
|
60
|
+
"_isSorted": "__isSorted_1vfex_gg_",
|
|
61
|
+
"_sideIndents_wide": "_sideIndents_wide_1vfex_gg_",
|
|
62
|
+
"_shadowVertical": "__shadowVertical_1vfex_gg_",
|
|
63
|
+
"_fixed_left": "_fixed_left_1vfex_gg_",
|
|
64
|
+
"_shadowVertical_median": "_shadowVertical_median_1vfex_gg_",
|
|
65
|
+
"_shadowVertical_start": "_shadowVertical_start_1vfex_gg_",
|
|
66
|
+
"_fixed_right": "_fixed_right_1vfex_gg_",
|
|
67
|
+
"_shadowVertical_end": "_shadowVertical_end_1vfex_gg_"
|
|
67
68
|
})
|
|
68
69
|
);
|
|
69
70
|
var SORTING_ICON = {
|
|
@@ -230,13 +231,12 @@ var Column = /* @__PURE__ */ function(_Component) {
|
|
|
230
231
|
value: function componentDidMount() {
|
|
231
232
|
var _this$asProps3 = this.asProps, parent = _this$asProps3.parent, sticky = _this$asProps3.sticky, changeSortSize = _this$asProps3.changeSortSize, name = _this$asProps3.name, sort = _this$asProps3.sort, scrollDirection = _this$asProps3.scrollDirection;
|
|
232
233
|
if (parent && sticky && scrollDirection !== "horizontal") {
|
|
233
|
-
var _columnElement$parent;
|
|
234
|
+
var _columnElement$parent, _groupElement$getBoun;
|
|
234
235
|
var columnElement = this.columnRef.current;
|
|
235
236
|
var groupElement = columnElement === null || columnElement === void 0 || (_columnElement$parent = columnElement.parentElement) === null || _columnElement$parent === void 0 ? void 0 : _columnElement$parent.children.item(0);
|
|
236
|
-
var
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
237
|
+
var groupRectHeight = (_groupElement$getBoun = groupElement === null || groupElement === void 0 ? void 0 : groupElement.getBoundingClientRect().height) !== null && _groupElement$getBoun !== void 0 ? _groupElement$getBoun : 0;
|
|
238
|
+
var topOffset = groupElement instanceof HTMLElement ? cssToIntDefault(groupElement.style.top) : 0;
|
|
239
|
+
columnElement === null || columnElement === void 0 || columnElement.style.setProperty("top", "".concat(groupRectHeight + topOffset, "px"));
|
|
240
240
|
}
|
|
241
241
|
if (canUseDOM() && changeSortSize && (sort === null || sort === void 0 ? void 0 : sort[0]) === name) {
|
|
242
242
|
this.changeTemplateColumnBySort();
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
3
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
5
4
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
6
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
@@ -21,46 +20,46 @@ var style = (
|
|
|
21
20
|
/*__reshadow_css_start__*/
|
|
22
21
|
(sstyled.insert(
|
|
23
22
|
/*__inner_css_start__*/
|
|
24
|
-
'.
|
|
23
|
+
'.___SGroupContainer_1vfex_gg_,.___SHead_1vfex_gg_{display:contents}.___SHead_1vfex_gg_.__isDataEmpty_1vfex_gg_.__gridTemplateColumns_1vfex_gg_{display:grid;grid-template-columns:var(--gridTemplateColumns_1vfex);overflow:auto;scrollbar-width:thin}.___SHead_1vfex_gg_.__animationDuration_1vfex_gg_>.___SColumn_1vfex_gg_{transition:top var(--animationDuration_1vfex) ease-out}.___SHead_1vfex_gg_.__sticky_1vfex_gg_ .___SColumn_1vfex_gg_,.___SHead_1vfex_gg_.__sticky_1vfex_gg_ .___SGroup_1vfex_gg_{position:sticky;top:0;z-index:18}.___SHead_1vfex_gg_.__sticky_1vfex_gg_ .___SGroupContainer_1vfex_gg_>.___SColumn_1vfex_gg_{position:sticky;z-index:18}.___SHead_1vfex_gg_.__compact_1vfex_gg_ .___SColumn_1vfex_gg_{padding:var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-2x, 8px)}.___SColumn_1vfex_gg_,.___SGroup_1vfex_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;line-height:var(--intergalactic-lh-100, 133%)}.___SGroup_1vfex_gg_{justify-content:center;text-align:center;background-color:var(--intergalactic-table-th-primary-cell, #f4f5f9)}.___SGroup_1vfex_gg_._use_primary_1vfex_gg_{padding:var(--intergalactic-spacing-3x, 12px)}.___SGroup_1vfex_gg_._use_primary_1vfex_gg_:has(~.___SColumn_1vfex_gg_.__visibleSort_1vfex_gg_){background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SGroup_1vfex_gg_._use_secondary_1vfex_gg_{padding:var(--intergalactic-spacing-2x, 8px)}.___SColumn_1vfex_gg_._borders_both_1vfex_gg_,.___SColumn_1vfex_gg_._borders_left_1vfex_gg_,.___SGroup_1vfex_gg_._borders_both_1vfex_gg_,.___SGroup_1vfex_gg_._borders_left_1vfex_gg_{border-left:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_1vfex_gg_._borders_both_1vfex_gg_,.___SColumn_1vfex_gg_._borders_right_1vfex_gg_,.___SGroup_1vfex_gg_._borders_both_1vfex_gg_,.___SGroup_1vfex_gg_._borders_right_1vfex_gg_{border-right:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_1vfex_gg_._use_primary_1vfex_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_1vfex_gg_._use_primary_1vfex_gg_ .___SSortWrapper_1vfex_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-primary-cell-hover, #e0e1e9) 67.5%,rgba(224,225,233,0) 105%)}.___SColumn_1vfex_gg_._use_primary_1vfex_gg_.__visibleSort_1vfex_gg_{background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SColumn_1vfex_gg_._use_primary_1vfex_gg_.__visibleSort_1vfex_gg_ .___SSortWrapper_1vfex_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_1vfex_gg_._use_primary_1vfex_gg_.__visibleSort_1vfex_gg_ .___SSortButton_1vfex_gg_,.___SColumn_1vfex_gg_._use_primary_1vfex_gg_.__visibleSort_1vfex_gg_ .___SSortWrapper_1vfex_gg_::before,.___SColumn_1vfex_gg_._use_secondary_1vfex_gg_.__visibleSort_1vfex_gg_ .___SSortWrapper_1vfex_gg_::before{display:flex;opacity:1}.___SColumn_1vfex_gg_._use_primary_1vfex_gg_._justifyContent_right_1vfex_gg_ .___SSortWrapper_1vfex_gg_{position:absolute}.___SColumn_1vfex_gg_._use_primary_1vfex_gg_._justifyContent_right_1vfex_gg_.__changeSortSize_1vfex_gg_.__isSorted_1vfex_gg_ .___SSortWrapper_1vfex_gg_,.___SColumn_1vfex_gg_._use_secondary_1vfex_gg_._justifyContent_right_1vfex_gg_.__changeSortSize_1vfex_gg_.__isSorted_1vfex_gg_ .___SSortWrapper_1vfex_gg_{position:relative}.___SColumn_1vfex_gg_._use_secondary_1vfex_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_1vfex_gg_._use_secondary_1vfex_gg_ .___SSortWrapper_1vfex_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-secondary-cell, #ffffff) 67.5%,rgba(255,255,255,0) 105%)}.___SColumn_1vfex_gg_._use_secondary_1vfex_gg_.__visibleSort_1vfex_gg_ .___SSortWrapper_1vfex_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_1vfex_gg_._use_secondary_1vfex_gg_.__visibleSort_1vfex_gg_ .___SSortButton_1vfex_gg_{display:flex;opacity:1}.___SColumn_1vfex_gg_._use_secondary_1vfex_gg_._justifyContent_right_1vfex_gg_ .___SSortWrapper_1vfex_gg_{position:absolute}.___SColumn_1vfex_gg_.__gridArea_1vfex_gg_,.___SGroupTitle_1vfex_gg_.__gridArea_1vfex_gg_,.___SGroup_1vfex_gg_.__gridArea_1vfex_gg_{grid-area:var(--gridArea_1vfex)}.___SHead_1vfex_gg_ .___SColumn_1vfex_gg_.__fixed_1vfex_gg_,.___SHead_1vfex_gg_ .___SGroup_1vfex_gg_.__fixed_1vfex_gg_,.___SHead_1vfex_gg_.__sticky_1vfex_gg_ .___SColumn_1vfex_gg_.__fixed_1vfex_gg_{position:sticky;z-index:19}@media (hover:hover){.___SColumn_1vfex_gg_.__sortable_1vfex_gg_:hover{cursor:pointer}}.___SSortWrapper_1vfex_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_1vfex_gg_,.___SSortWrapper_1vfex_gg_:before{display:none;position:absolute;right:0;opacity:0;transition:opacity .3s ease}.___SSortWrapper_1vfex_gg_:before{content:"";top:0;width:20px;height:100%}.___SSortButton_1vfex_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_1vfex_gg_._sideIndents_wide_1vfex_gg_ .___SColumn_1vfex_gg_:first-child{padding-left:var(--intergalactic-spacing-5x, 20px)}.___SHead_1vfex_gg_._sideIndents_wide_1vfex_gg_ .___SColumn_1vfex_gg_:last-child{padding-right:var(--intergalactic-spacing-5x, 20px)}.___SHeadCheckboxCol_1vfex_gg_{cursor:pointer}.___SColumn_1vfex_gg_.__fixed_1vfex_gg_.__shadowVertical_1vfex_gg_:after,.___SGroup_1vfex_gg_.__fixed_1vfex_gg_.__shadowVertical_1vfex_gg_:after{content:"";position:absolute;pointer-events:none;display:none;top:0;width:5px;height:100%;z-index:5}.___SColumn_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_median_1vfex_gg_,.___SColumn_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_start_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_median_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_start_1vfex_gg_{margin-right:-5px;border-right-color:transparent}.___SColumn_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_median_1vfex_gg_._use_primary_1vfex_gg_,.___SColumn_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_start_1vfex_gg_._use_primary_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_median_1vfex_gg_._use_primary_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_start_1vfex_gg_._use_primary_1vfex_gg_{padding-right:calc(var(--intergalactic-spacing-3x, 12px) + 5px)}.___SColumn_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_median_1vfex_gg_._use_secondary_1vfex_gg_,.___SColumn_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_start_1vfex_gg_._use_secondary_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_median_1vfex_gg_._use_secondary_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_start_1vfex_gg_._use_secondary_1vfex_gg_{padding-right:calc(var(--intergalactic-spacing-2x, 8px) + 5px)}.___SColumn_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_median_1vfex_gg_:after,.___SColumn_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_start_1vfex_gg_:after,.___SGroup_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_median_1vfex_gg_:after,.___SGroup_1vfex_gg_._fixed_left_1vfex_gg_._shadowVertical_start_1vfex_gg_:after{display:block;right:0;background:var(--intergalactic-scroll-area-shadow-left,\n linear-gradient(to right, rgba(25, 27, 35, 0.1) 20.55%, rgba(255, 255, 255, 0.0001) 100%))}.___SColumn_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_end_1vfex_gg_,.___SColumn_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_median_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_end_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_median_1vfex_gg_{margin-left:-5px;border-left-color:transparent}.___SColumn_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_end_1vfex_gg_._use_primary_1vfex_gg_,.___SColumn_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_median_1vfex_gg_._use_primary_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_end_1vfex_gg_._use_primary_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_median_1vfex_gg_._use_primary_1vfex_gg_{padding-left:calc(var(--intergalactic-spacing-3x, 12px) + 5px)}.___SColumn_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_end_1vfex_gg_._use_secondary_1vfex_gg_,.___SColumn_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_median_1vfex_gg_._use_secondary_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_end_1vfex_gg_._use_secondary_1vfex_gg_,.___SGroup_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_median_1vfex_gg_._use_secondary_1vfex_gg_{padding-left:calc(var(--intergalactic-spacing-2x, 8px) + 5px)}.___SColumn_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_end_1vfex_gg_:after,.___SColumn_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_median_1vfex_gg_:after,.___SGroup_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_end_1vfex_gg_:after,.___SGroup_1vfex_gg_._fixed_right_1vfex_gg_._shadowVertical_median_1vfex_gg_:after{display:block;left:0;background:var(--intergalactic-scroll-area-shadow-right,\n linear-gradient(to left, rgba(25, 27, 35, 0.1) 20.55%, rgba(255, 255, 255, 0.0001) 100%))}',
|
|
25
24
|
/*__inner_css_end__*/
|
|
26
|
-
"
|
|
25
|
+
"1vfex_gg_"
|
|
27
26
|
), /*__reshadow_css_end__*/
|
|
28
27
|
{
|
|
29
|
-
"__SHead": "
|
|
30
|
-
"__SGroupContainer": "
|
|
31
|
-
"_isDataEmpty": "
|
|
32
|
-
"_gridTemplateColumns": "
|
|
33
|
-
"--gridTemplateColumns": "--
|
|
34
|
-
"_animationDuration": "
|
|
35
|
-
"__SColumn": "
|
|
36
|
-
"--animationDuration": "--
|
|
37
|
-
"_sticky": "
|
|
38
|
-
"__SGroup": "
|
|
39
|
-
"_compact": "
|
|
40
|
-
"_use_secondary": "
|
|
41
|
-
"_borders_both": "
|
|
42
|
-
"_borders_left": "
|
|
43
|
-
"_borders_right": "
|
|
44
|
-
"_gridArea": "
|
|
45
|
-
"__SGroupTitle": "
|
|
46
|
-
"--gridArea": "--
|
|
47
|
-
"_fixed": "
|
|
48
|
-
"_sortable": "
|
|
49
|
-
"__SSortWrapper": "
|
|
50
|
-
"__SSortButton": "
|
|
51
|
-
"__SHeadCheckboxCol": "
|
|
52
|
-
"_use_primary": "
|
|
53
|
-
"_visibleSort": "
|
|
54
|
-
"_justifyContent_right": "
|
|
55
|
-
"_changeSortSize": "
|
|
56
|
-
"_isSorted": "
|
|
57
|
-
"_sideIndents_wide": "
|
|
58
|
-
"_shadowVertical": "
|
|
59
|
-
"_fixed_left": "
|
|
60
|
-
"_shadowVertical_median": "
|
|
61
|
-
"_shadowVertical_start": "
|
|
62
|
-
"_fixed_right": "
|
|
63
|
-
"_shadowVertical_end": "
|
|
28
|
+
"__SHead": "___SHead_1vfex_gg_",
|
|
29
|
+
"__SGroupContainer": "___SGroupContainer_1vfex_gg_",
|
|
30
|
+
"_isDataEmpty": "__isDataEmpty_1vfex_gg_",
|
|
31
|
+
"_gridTemplateColumns": "__gridTemplateColumns_1vfex_gg_",
|
|
32
|
+
"--gridTemplateColumns": "--gridTemplateColumns_1vfex",
|
|
33
|
+
"_animationDuration": "__animationDuration_1vfex_gg_",
|
|
34
|
+
"__SColumn": "___SColumn_1vfex_gg_",
|
|
35
|
+
"--animationDuration": "--animationDuration_1vfex",
|
|
36
|
+
"_sticky": "__sticky_1vfex_gg_",
|
|
37
|
+
"__SGroup": "___SGroup_1vfex_gg_",
|
|
38
|
+
"_compact": "__compact_1vfex_gg_",
|
|
39
|
+
"_use_secondary": "_use_secondary_1vfex_gg_",
|
|
40
|
+
"_borders_both": "_borders_both_1vfex_gg_",
|
|
41
|
+
"_borders_left": "_borders_left_1vfex_gg_",
|
|
42
|
+
"_borders_right": "_borders_right_1vfex_gg_",
|
|
43
|
+
"_gridArea": "__gridArea_1vfex_gg_",
|
|
44
|
+
"__SGroupTitle": "___SGroupTitle_1vfex_gg_",
|
|
45
|
+
"--gridArea": "--gridArea_1vfex",
|
|
46
|
+
"_fixed": "__fixed_1vfex_gg_",
|
|
47
|
+
"_sortable": "__sortable_1vfex_gg_",
|
|
48
|
+
"__SSortWrapper": "___SSortWrapper_1vfex_gg_",
|
|
49
|
+
"__SSortButton": "___SSortButton_1vfex_gg_",
|
|
50
|
+
"__SHeadCheckboxCol": "___SHeadCheckboxCol_1vfex_gg_",
|
|
51
|
+
"_use_primary": "_use_primary_1vfex_gg_",
|
|
52
|
+
"_visibleSort": "__visibleSort_1vfex_gg_",
|
|
53
|
+
"_justifyContent_right": "_justifyContent_right_1vfex_gg_",
|
|
54
|
+
"_changeSortSize": "__changeSortSize_1vfex_gg_",
|
|
55
|
+
"_isSorted": "__isSorted_1vfex_gg_",
|
|
56
|
+
"_sideIndents_wide": "_sideIndents_wide_1vfex_gg_",
|
|
57
|
+
"_shadowVertical": "__shadowVertical_1vfex_gg_",
|
|
58
|
+
"_fixed_left": "_fixed_left_1vfex_gg_",
|
|
59
|
+
"_shadowVertical_median": "_shadowVertical_median_1vfex_gg_",
|
|
60
|
+
"_shadowVertical_start": "_shadowVertical_start_1vfex_gg_",
|
|
61
|
+
"_fixed_right": "_fixed_right_1vfex_gg_",
|
|
62
|
+
"_shadowVertical_end": "_shadowVertical_end_1vfex_gg_"
|
|
64
63
|
})
|
|
65
64
|
);
|
|
66
65
|
var Group = /* @__PURE__ */ function(_Component) {
|
|
@@ -89,36 +88,14 @@ var Group = /* @__PURE__ */ function(_Component) {
|
|
|
89
88
|
var _ref = this.asProps, _ref2, _this2 = this;
|
|
90
89
|
var SGroupContainer = Box;
|
|
91
90
|
var SGroup = Box;
|
|
92
|
-
var _this$asProps = this.asProps, styles = _this$asProps.styles, Children = _this$asProps.Children, title = _this$asProps.title,
|
|
91
|
+
var _this$asProps = this.asProps, styles = _this$asProps.styles, Children = _this$asProps.Children, title = _this$asProps.title, columns = _this$asProps.columns, withConfig = _this$asProps.withConfig;
|
|
93
92
|
var groupColumns = columns !== null && columns !== void 0 ? columns : [];
|
|
94
|
-
var firstColumn = groupColumns[0];
|
|
95
|
-
var lastColumn = groupColumns[groupColumns.length - 1];
|
|
96
|
-
var style2 = {};
|
|
97
|
-
if (fixed === "left" && firstColumn) {
|
|
98
|
-
var _getFixedStyle = getFixedStyle({
|
|
99
|
-
name: firstColumn.name,
|
|
100
|
-
fixed: "left"
|
|
101
|
-
}), _getFixedStyle2 = _slicedToArray(_getFixedStyle, 2), name = _getFixedStyle2[0], value = _getFixedStyle2[1];
|
|
102
|
-
if (name !== void 0 && value !== void 0) {
|
|
103
|
-
style2[name] = value;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
if (fixed === "right" && lastColumn) {
|
|
107
|
-
var _getFixedStyle3 = getFixedStyle({
|
|
108
|
-
name: lastColumn.name,
|
|
109
|
-
fixed: "right"
|
|
110
|
-
}), _getFixedStyle4 = _slicedToArray(_getFixedStyle3, 2), _name = _getFixedStyle4[0], _value = _getFixedStyle4[1];
|
|
111
|
-
if (_name !== void 0 && _value !== void 0) {
|
|
112
|
-
style2[_name] = _value;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
93
|
return _ref2 = sstyled(styles), /* @__PURE__ */ React__default.createElement(SGroupContainer, _ref2.cn("SGroupContainer", {
|
|
116
94
|
"data-group-container": true
|
|
117
95
|
}), /* @__PURE__ */ React__default.createElement(SGroup, _ref2.cn("SGroup", _objectSpread({}, assignProps({
|
|
118
|
-
"style":
|
|
96
|
+
"style": style,
|
|
119
97
|
"__excludeProps": ["title"],
|
|
120
|
-
"id": this.groupId
|
|
121
|
-
"use:shadowVertical": firstColumn.showShadowVertical || lastColumn.showShadowVertical ? shadowVertical : void 0
|
|
98
|
+
"id": this.groupId
|
|
122
99
|
}, _ref))), withConfig ? /* @__PURE__ */ React__default.createElement(Children, _ref2.cn("Children", {})) : title), withConfig ? groupColumns.map(function(column, _i) {
|
|
123
100
|
return /* @__PURE__ */ React__default.createElement(DataTable.Head.Column, _extends({
|
|
124
101
|
key: column.name
|