@semcore/data-table 16.5.3-prerelease.4 → 16.6.0-prerelease.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 +14 -0
- package/lib/cjs/components/AccordionRows/AccordionRows.js +51 -51
- package/lib/cjs/components/Body/Body.js +71 -88
- 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 +51 -51
- package/lib/cjs/components/Body/LimitOverlay.js +51 -51
- package/lib/cjs/components/Body/LimitOverlay.js.map +1 -1
- package/lib/cjs/components/Body/Row.js +130 -157
- 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/RowGroup.js +147 -0
- package/lib/cjs/components/Body/RowGroup.js.map +1 -0
- package/lib/cjs/components/Body/style.shadow.css +13 -4
- package/lib/cjs/components/DataTable/DataTable.js +122 -102
- 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 +50 -47
- package/lib/cjs/components/Head/Column.js.map +1 -1
- package/lib/cjs/components/Head/Group.js +36 -36
- package/lib/cjs/components/Head/Head.js +90 -57
- package/lib/cjs/components/Head/Head.js.map +1 -1
- package/lib/cjs/components/Head/Head.types.js.map +1 -1
- package/lib/cjs/components/RowSelector/RowsSelector.js +124 -0
- package/lib/cjs/components/RowSelector/RowsSelector.js.map +1 -0
- package/lib/cjs/index.js +7 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/store/SelectableRows.js +210 -0
- package/lib/cjs/store/SelectableRows.js.map +1 -0
- package/lib/es6/components/AccordionRows/AccordionRows.js +51 -51
- package/lib/es6/components/Body/Body.js +73 -90
- 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 +51 -51
- package/lib/es6/components/Body/LimitOverlay.js +51 -51
- package/lib/es6/components/Body/LimitOverlay.js.map +1 -1
- package/lib/es6/components/Body/Row.js +131 -158
- 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/RowGroup.js +140 -0
- package/lib/es6/components/Body/RowGroup.js.map +1 -0
- package/lib/es6/components/Body/style.shadow.css +13 -4
- package/lib/es6/components/DataTable/DataTable.js +122 -102
- 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 +50 -47
- package/lib/es6/components/Head/Column.js.map +1 -1
- package/lib/es6/components/Head/Group.js +36 -36
- package/lib/es6/components/Head/Head.js +90 -57
- package/lib/es6/components/Head/Head.js.map +1 -1
- package/lib/es6/components/Head/Head.types.js.map +1 -1
- package/lib/es6/components/RowSelector/RowsSelector.js +117 -0
- package/lib/es6/components/RowSelector/RowsSelector.js.map +1 -0
- package/lib/es6/index.js +2 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/store/SelectableRows.js +203 -0
- package/lib/es6/store/SelectableRows.js.map +1 -0
- package/lib/esm/components/AccordionRows/AccordionRows.mjs +52 -52
- package/lib/esm/components/Body/Body.mjs +74 -90
- package/lib/esm/components/Body/Cell.mjs +52 -52
- package/lib/esm/components/Body/LimitOverlay.mjs +52 -52
- package/lib/esm/components/Body/Row.mjs +71 -91
- package/lib/esm/components/Body/RowGroup.mjs +133 -0
- package/lib/esm/components/Body/style.shadow.css +13 -4
- package/lib/esm/components/DataTable/DataTable.mjs +68 -47
- package/lib/esm/components/Head/Column.mjs +51 -48
- package/lib/esm/components/Head/Group.mjs +37 -37
- package/lib/esm/components/Head/Head.mjs +91 -56
- package/lib/esm/components/RowSelector/RowsSelector.mjs +98 -0
- package/lib/esm/index.mjs +2 -0
- package/lib/esm/store/SelectableRows.mjs +200 -0
- package/lib/types/components/Body/Body.types.d.ts +2 -1
- package/lib/types/components/Body/Row.d.ts +0 -2
- package/lib/types/components/Body/Row.types.d.ts +2 -1
- package/lib/types/components/Body/RowGroup.d.ts +19 -0
- package/lib/types/components/DataTable/DataTable.types.d.ts +21 -12
- package/lib/types/components/Head/Column.d.ts +1 -0
- package/lib/types/components/Head/Head.types.d.ts +2 -1
- package/lib/types/components/RowSelector/RowsSelector.d.ts +31 -0
- package/lib/types/index.d.ts +2 -1
- package/lib/types/store/SelectableRows.d.ts +51 -0
- package/package.json +8 -8
|
@@ -22,46 +22,46 @@ var style = (
|
|
|
22
22
|
/*__reshadow_css_start__*/
|
|
23
23
|
(sstyled.insert(
|
|
24
24
|
/*__inner_css_start__*/
|
|
25
|
-
'.
|
|
25
|
+
'.___SGroupContainer_3t5eh_gg_,.___SHead_3t5eh_gg_{display:contents}.___SHead_3t5eh_gg_.__isDataEmpty_3t5eh_gg_.__gridTemplateColumns_3t5eh_gg_{display:grid;grid-template-columns:var(--gridTemplateColumns_3t5eh);overflow:auto;scrollbar-width:thin}.___SHead_3t5eh_gg_.__animationDuration_3t5eh_gg_>.___SColumn_3t5eh_gg_{transition:top var(--animationDuration_3t5eh) ease-out}.___SHead_3t5eh_gg_.__sticky_3t5eh_gg_ .___SColumn_3t5eh_gg_,.___SHead_3t5eh_gg_.__sticky_3t5eh_gg_ .___SGroup_3t5eh_gg_{position:sticky;top:0;z-index:18}.___SHead_3t5eh_gg_.__sticky_3t5eh_gg_ .___SGroupContainer_3t5eh_gg_>.___SColumn_3t5eh_gg_{position:sticky;z-index:18}.___SHead_3t5eh_gg_.__compact_3t5eh_gg_ .___SColumn_3t5eh_gg_{padding:var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-2x, 8px)}.___SColumn_3t5eh_gg_,.___SGroup_3t5eh_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_3t5eh_gg_{justify-content:center;text-align:center;background-color:var(--intergalactic-table-th-primary-cell, #f4f5f9)}.___SGroup_3t5eh_gg_._use_primary_3t5eh_gg_{padding:var(--intergalactic-spacing-3x, 12px)}.___SGroup_3t5eh_gg_._use_primary_3t5eh_gg_:has(~.___SColumn_3t5eh_gg_.__visibleSort_3t5eh_gg_){background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SGroup_3t5eh_gg_._use_secondary_3t5eh_gg_{padding:var(--intergalactic-spacing-2x, 8px)}.___SColumn_3t5eh_gg_._borders_both_3t5eh_gg_,.___SColumn_3t5eh_gg_._borders_left_3t5eh_gg_,.___SGroup_3t5eh_gg_._borders_both_3t5eh_gg_,.___SGroup_3t5eh_gg_._borders_left_3t5eh_gg_{border-left:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_3t5eh_gg_._borders_both_3t5eh_gg_,.___SColumn_3t5eh_gg_._borders_right_3t5eh_gg_,.___SGroup_3t5eh_gg_._borders_both_3t5eh_gg_,.___SGroup_3t5eh_gg_._borders_right_3t5eh_gg_{border-right:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_3t5eh_gg_._use_primary_3t5eh_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_3t5eh_gg_._use_primary_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-primary-cell-hover, #e0e1e9) 67.5%,rgba(224,225,233,0) 105%)}.___SColumn_3t5eh_gg_._use_primary_3t5eh_gg_.__visibleSort_3t5eh_gg_{background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SColumn_3t5eh_gg_._use_primary_3t5eh_gg_.__visibleSort_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_3t5eh_gg_._use_primary_3t5eh_gg_.__visibleSort_3t5eh_gg_ .___SSortButton_3t5eh_gg_,.___SColumn_3t5eh_gg_._use_primary_3t5eh_gg_.__visibleSort_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_::before,.___SColumn_3t5eh_gg_._use_secondary_3t5eh_gg_.__visibleSort_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_::before{display:flex;opacity:1}.___SColumn_3t5eh_gg_._use_primary_3t5eh_gg_._justifyContent_right_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_{position:absolute}.___SColumn_3t5eh_gg_._use_primary_3t5eh_gg_._justifyContent_right_3t5eh_gg_.__changeSortSize_3t5eh_gg_.__isSorted_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_,.___SColumn_3t5eh_gg_._use_secondary_3t5eh_gg_._justifyContent_right_3t5eh_gg_.__changeSortSize_3t5eh_gg_.__isSorted_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_{position:relative}.___SColumn_3t5eh_gg_._use_secondary_3t5eh_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_3t5eh_gg_._use_secondary_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-secondary-cell, #ffffff) 67.5%,rgba(255,255,255,0) 105%)}.___SColumn_3t5eh_gg_._use_secondary_3t5eh_gg_.__visibleSort_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_3t5eh_gg_._use_secondary_3t5eh_gg_.__visibleSort_3t5eh_gg_ .___SSortButton_3t5eh_gg_{display:flex;opacity:1}.___SColumn_3t5eh_gg_._use_secondary_3t5eh_gg_._justifyContent_right_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_{position:absolute}.___SColumn_3t5eh_gg_.__gridArea_3t5eh_gg_,.___SGroupTitle_3t5eh_gg_.__gridArea_3t5eh_gg_,.___SGroup_3t5eh_gg_.__gridArea_3t5eh_gg_{grid-area:var(--gridArea_3t5eh)}.___SHead_3t5eh_gg_ .___SColumn_3t5eh_gg_.__fixed_3t5eh_gg_,.___SHead_3t5eh_gg_ .___SGroup_3t5eh_gg_.__fixed_3t5eh_gg_,.___SHead_3t5eh_gg_.__sticky_3t5eh_gg_ .___SColumn_3t5eh_gg_.__fixed_3t5eh_gg_{position:sticky;z-index:19}@media (hover:hover){.___SColumn_3t5eh_gg_.__sortable_3t5eh_gg_:hover{cursor:pointer}}.___SSortWrapper_3t5eh_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_3t5eh_gg_,.___SSortWrapper_3t5eh_gg_:before{display:none;position:absolute;right:0;opacity:0;transition:opacity .3s ease}.___SSortWrapper_3t5eh_gg_:before{content:"";top:0;width:20px;height:100%}.___SSortButton_3t5eh_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_3t5eh_gg_._sideIndents_wide_3t5eh_gg_ .___SColumn_3t5eh_gg_:first-child{padding-left:var(--intergalactic-spacing-5x, 20px)}.___SHead_3t5eh_gg_._sideIndents_wide_3t5eh_gg_ .___SColumn_3t5eh_gg_:last-child{padding-right:var(--intergalactic-spacing-5x, 20px)}.___SHeadCheckboxCol_3t5eh_gg_{cursor:pointer}.___SColumn_3t5eh_gg_.__fixed_3t5eh_gg_.__shadowVertical_3t5eh_gg_:after,.___SGroup_3t5eh_gg_.__fixed_3t5eh_gg_.__shadowVertical_3t5eh_gg_:after{content:"";position:absolute;pointer-events:none;display:none;top:0;width:5px;height:100%;z-index:5}.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_,.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_{margin-right:-5px;border-right-color:transparent}.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_primary_3t5eh_gg_,.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_._use_primary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_primary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_._use_primary_3t5eh_gg_{padding-right:calc(var(--intergalactic-spacing-3x, 12px) + 5px)}.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_secondary_3t5eh_gg_,.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_._use_secondary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_secondary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_._use_secondary_3t5eh_gg_{padding-right:calc(var(--intergalactic-spacing-2x, 8px) + 5px)}.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_:after,.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_:after,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_:after,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_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_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_,.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_{margin-left:-5px;border-left-color:transparent}.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_._use_primary_3t5eh_gg_,.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_primary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_._use_primary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_primary_3t5eh_gg_{padding-left:calc(var(--intergalactic-spacing-3x, 12px) + 5px)}.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_._use_secondary_3t5eh_gg_,.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_secondary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_._use_secondary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_secondary_3t5eh_gg_{padding-left:calc(var(--intergalactic-spacing-2x, 8px) + 5px)}.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_:after,.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_:after,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_:after,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_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%))}',
|
|
26
26
|
/*__inner_css_end__*/
|
|
27
|
-
"
|
|
27
|
+
"3t5eh_gg_"
|
|
28
28
|
), /*__reshadow_css_end__*/
|
|
29
29
|
{
|
|
30
|
-
"__SHead": "
|
|
31
|
-
"__SGroupContainer": "
|
|
32
|
-
"_isDataEmpty": "
|
|
33
|
-
"_gridTemplateColumns": "
|
|
34
|
-
"--gridTemplateColumns": "--
|
|
35
|
-
"_animationDuration": "
|
|
36
|
-
"__SColumn": "
|
|
37
|
-
"--animationDuration": "--
|
|
38
|
-
"_sticky": "
|
|
39
|
-
"__SGroup": "
|
|
40
|
-
"_compact": "
|
|
41
|
-
"_use_secondary": "
|
|
42
|
-
"_borders_both": "
|
|
43
|
-
"_borders_left": "
|
|
44
|
-
"_borders_right": "
|
|
45
|
-
"_gridArea": "
|
|
46
|
-
"__SGroupTitle": "
|
|
47
|
-
"--gridArea": "--
|
|
48
|
-
"_fixed": "
|
|
49
|
-
"_sortable": "
|
|
50
|
-
"__SSortWrapper": "
|
|
51
|
-
"__SSortButton": "
|
|
52
|
-
"__SHeadCheckboxCol": "
|
|
53
|
-
"_use_primary": "
|
|
54
|
-
"_visibleSort": "
|
|
55
|
-
"_justifyContent_right": "
|
|
56
|
-
"_changeSortSize": "
|
|
57
|
-
"_isSorted": "
|
|
58
|
-
"_sideIndents_wide": "
|
|
59
|
-
"_shadowVertical": "
|
|
60
|
-
"_fixed_left": "
|
|
61
|
-
"_shadowVertical_median": "
|
|
62
|
-
"_shadowVertical_start": "
|
|
63
|
-
"_fixed_right": "
|
|
64
|
-
"_shadowVertical_end": "
|
|
30
|
+
"__SHead": "___SHead_3t5eh_gg_",
|
|
31
|
+
"__SGroupContainer": "___SGroupContainer_3t5eh_gg_",
|
|
32
|
+
"_isDataEmpty": "__isDataEmpty_3t5eh_gg_",
|
|
33
|
+
"_gridTemplateColumns": "__gridTemplateColumns_3t5eh_gg_",
|
|
34
|
+
"--gridTemplateColumns": "--gridTemplateColumns_3t5eh",
|
|
35
|
+
"_animationDuration": "__animationDuration_3t5eh_gg_",
|
|
36
|
+
"__SColumn": "___SColumn_3t5eh_gg_",
|
|
37
|
+
"--animationDuration": "--animationDuration_3t5eh",
|
|
38
|
+
"_sticky": "__sticky_3t5eh_gg_",
|
|
39
|
+
"__SGroup": "___SGroup_3t5eh_gg_",
|
|
40
|
+
"_compact": "__compact_3t5eh_gg_",
|
|
41
|
+
"_use_secondary": "_use_secondary_3t5eh_gg_",
|
|
42
|
+
"_borders_both": "_borders_both_3t5eh_gg_",
|
|
43
|
+
"_borders_left": "_borders_left_3t5eh_gg_",
|
|
44
|
+
"_borders_right": "_borders_right_3t5eh_gg_",
|
|
45
|
+
"_gridArea": "__gridArea_3t5eh_gg_",
|
|
46
|
+
"__SGroupTitle": "___SGroupTitle_3t5eh_gg_",
|
|
47
|
+
"--gridArea": "--gridArea_3t5eh",
|
|
48
|
+
"_fixed": "__fixed_3t5eh_gg_",
|
|
49
|
+
"_sortable": "__sortable_3t5eh_gg_",
|
|
50
|
+
"__SSortWrapper": "___SSortWrapper_3t5eh_gg_",
|
|
51
|
+
"__SSortButton": "___SSortButton_3t5eh_gg_",
|
|
52
|
+
"__SHeadCheckboxCol": "___SHeadCheckboxCol_3t5eh_gg_",
|
|
53
|
+
"_use_primary": "_use_primary_3t5eh_gg_",
|
|
54
|
+
"_visibleSort": "__visibleSort_3t5eh_gg_",
|
|
55
|
+
"_justifyContent_right": "_justifyContent_right_3t5eh_gg_",
|
|
56
|
+
"_changeSortSize": "__changeSortSize_3t5eh_gg_",
|
|
57
|
+
"_isSorted": "__isSorted_3t5eh_gg_",
|
|
58
|
+
"_sideIndents_wide": "_sideIndents_wide_3t5eh_gg_",
|
|
59
|
+
"_shadowVertical": "__shadowVertical_3t5eh_gg_",
|
|
60
|
+
"_fixed_left": "_fixed_left_3t5eh_gg_",
|
|
61
|
+
"_shadowVertical_median": "_shadowVertical_median_3t5eh_gg_",
|
|
62
|
+
"_shadowVertical_start": "_shadowVertical_start_3t5eh_gg_",
|
|
63
|
+
"_fixed_right": "_fixed_right_3t5eh_gg_",
|
|
64
|
+
"_shadowVertical_end": "_shadowVertical_end_3t5eh_gg_"
|
|
65
65
|
})
|
|
66
66
|
);
|
|
67
67
|
var SORTING_ICON = {
|
|
@@ -136,20 +136,23 @@ var Column = /* @__PURE__ */ (function(_Component) {
|
|
|
136
136
|
});
|
|
137
137
|
_defineProperty(_this, "handleBlur", function(e) {
|
|
138
138
|
var relatedTarget = e.relatedTarget;
|
|
139
|
-
if (!isFocusInside(e.currentTarget, relatedTarget)
|
|
139
|
+
if (!isFocusInside(e.currentTarget, relatedTarget)) {
|
|
140
140
|
_this.setState({
|
|
141
141
|
sortVisible: false
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
|
-
_defineProperty(_this, "
|
|
146
|
-
e.stopPropagation();
|
|
145
|
+
_defineProperty(_this, "handleSort", function(e) {
|
|
147
146
|
var _this$asProps = _this.asProps, sort = _this$asProps.sort, onSortChange = _this$asProps.onSortChange, name = _this$asProps.name, sortable = _this$asProps.sortable;
|
|
148
|
-
if (
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
147
|
+
if (sortable && onSortChange) {
|
|
148
|
+
var sortDirection = (sort === null || sort === void 0 ? void 0 : sort[0]) === name ? reversedSortDirection[sort[1]] : _this.defaultDirection;
|
|
149
|
+
onSortChange([name, sortDirection], e);
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
_defineProperty(_this, "handleSortClick", function(e) {
|
|
153
|
+
if (lastInteraction.isKeyboard()) {
|
|
154
|
+
e.stopPropagation();
|
|
155
|
+
_this.handleSort(e);
|
|
153
156
|
}
|
|
154
157
|
});
|
|
155
158
|
_defineProperty(_this, "handleFocusableCellKeyDown", function(e) {
|
|
@@ -179,7 +182,7 @@ var Column = /* @__PURE__ */ (function(_Component) {
|
|
|
179
182
|
var _this$columnRef$curre5, _this$columnRef$curre6;
|
|
180
183
|
var _this$asProps2 = _this.asProps, sortable = _this$asProps2.sortable, onClick = _this$asProps2.onClick, columnIndex = _this$asProps2.columnIndex;
|
|
181
184
|
if (sortable) {
|
|
182
|
-
_this.
|
|
185
|
+
_this.handleSort(e);
|
|
183
186
|
}
|
|
184
187
|
var focusableChildren = Array.from((_this$columnRef$curre5 = (_this$columnRef$curre6 = _this.columnRef.current) === null || _this$columnRef$curre6 === void 0 ? void 0 : _this$columnRef$curre6.children) !== null && _this$columnRef$curre5 !== void 0 ? _this$columnRef$curre5 : []).flatMap(function(node) {
|
|
185
188
|
return getFocusableIn(node);
|
|
@@ -299,9 +302,9 @@ var Column = /* @__PURE__ */ (function(_Component) {
|
|
|
299
302
|
}, _ref))), /* @__PURE__ */ React.createElement(Children, _ref2.cn("Children", {})), sortable && /* @__PURE__ */ React.createElement(SSortWrapper, _ref2.cn("SSortWrapper", {
|
|
300
303
|
"ref": this.sortWrapperRef
|
|
301
304
|
}), /* @__PURE__ */ React.createElement(SSortButton, _ref2.cn("SSortButton", {
|
|
302
|
-
"onClick": this.handleSortClick,
|
|
303
305
|
"aria-label": ariaSortValue,
|
|
304
|
-
"color": "--intergalactic-icon-primary-neutral"
|
|
306
|
+
"color": "--intergalactic-icon-primary-neutral",
|
|
307
|
+
"onClick": this.handleSortClick
|
|
305
308
|
}), /* @__PURE__ */ React.createElement(SSortButton.Addon, {
|
|
306
309
|
tag: SSortIcon
|
|
307
310
|
}))));
|
|
@@ -15,46 +15,46 @@ var style = (
|
|
|
15
15
|
/*__reshadow_css_start__*/
|
|
16
16
|
(sstyled.insert(
|
|
17
17
|
/*__inner_css_start__*/
|
|
18
|
-
'.
|
|
18
|
+
'.___SGroupContainer_3t5eh_gg_,.___SHead_3t5eh_gg_{display:contents}.___SHead_3t5eh_gg_.__isDataEmpty_3t5eh_gg_.__gridTemplateColumns_3t5eh_gg_{display:grid;grid-template-columns:var(--gridTemplateColumns_3t5eh);overflow:auto;scrollbar-width:thin}.___SHead_3t5eh_gg_.__animationDuration_3t5eh_gg_>.___SColumn_3t5eh_gg_{transition:top var(--animationDuration_3t5eh) ease-out}.___SHead_3t5eh_gg_.__sticky_3t5eh_gg_ .___SColumn_3t5eh_gg_,.___SHead_3t5eh_gg_.__sticky_3t5eh_gg_ .___SGroup_3t5eh_gg_{position:sticky;top:0;z-index:18}.___SHead_3t5eh_gg_.__sticky_3t5eh_gg_ .___SGroupContainer_3t5eh_gg_>.___SColumn_3t5eh_gg_{position:sticky;z-index:18}.___SHead_3t5eh_gg_.__compact_3t5eh_gg_ .___SColumn_3t5eh_gg_{padding:var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-2x, 8px)}.___SColumn_3t5eh_gg_,.___SGroup_3t5eh_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_3t5eh_gg_{justify-content:center;text-align:center;background-color:var(--intergalactic-table-th-primary-cell, #f4f5f9)}.___SGroup_3t5eh_gg_._use_primary_3t5eh_gg_{padding:var(--intergalactic-spacing-3x, 12px)}.___SGroup_3t5eh_gg_._use_primary_3t5eh_gg_:has(~.___SColumn_3t5eh_gg_.__visibleSort_3t5eh_gg_){background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SGroup_3t5eh_gg_._use_secondary_3t5eh_gg_{padding:var(--intergalactic-spacing-2x, 8px)}.___SColumn_3t5eh_gg_._borders_both_3t5eh_gg_,.___SColumn_3t5eh_gg_._borders_left_3t5eh_gg_,.___SGroup_3t5eh_gg_._borders_both_3t5eh_gg_,.___SGroup_3t5eh_gg_._borders_left_3t5eh_gg_{border-left:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_3t5eh_gg_._borders_both_3t5eh_gg_,.___SColumn_3t5eh_gg_._borders_right_3t5eh_gg_,.___SGroup_3t5eh_gg_._borders_both_3t5eh_gg_,.___SGroup_3t5eh_gg_._borders_right_3t5eh_gg_{border-right:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_3t5eh_gg_._use_primary_3t5eh_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_3t5eh_gg_._use_primary_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-primary-cell-hover, #e0e1e9) 67.5%,rgba(224,225,233,0) 105%)}.___SColumn_3t5eh_gg_._use_primary_3t5eh_gg_.__visibleSort_3t5eh_gg_{background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SColumn_3t5eh_gg_._use_primary_3t5eh_gg_.__visibleSort_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_3t5eh_gg_._use_primary_3t5eh_gg_.__visibleSort_3t5eh_gg_ .___SSortButton_3t5eh_gg_,.___SColumn_3t5eh_gg_._use_primary_3t5eh_gg_.__visibleSort_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_::before,.___SColumn_3t5eh_gg_._use_secondary_3t5eh_gg_.__visibleSort_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_::before{display:flex;opacity:1}.___SColumn_3t5eh_gg_._use_primary_3t5eh_gg_._justifyContent_right_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_{position:absolute}.___SColumn_3t5eh_gg_._use_primary_3t5eh_gg_._justifyContent_right_3t5eh_gg_.__changeSortSize_3t5eh_gg_.__isSorted_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_,.___SColumn_3t5eh_gg_._use_secondary_3t5eh_gg_._justifyContent_right_3t5eh_gg_.__changeSortSize_3t5eh_gg_.__isSorted_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_{position:relative}.___SColumn_3t5eh_gg_._use_secondary_3t5eh_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_3t5eh_gg_._use_secondary_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-secondary-cell, #ffffff) 67.5%,rgba(255,255,255,0) 105%)}.___SColumn_3t5eh_gg_._use_secondary_3t5eh_gg_.__visibleSort_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_3t5eh_gg_._use_secondary_3t5eh_gg_.__visibleSort_3t5eh_gg_ .___SSortButton_3t5eh_gg_{display:flex;opacity:1}.___SColumn_3t5eh_gg_._use_secondary_3t5eh_gg_._justifyContent_right_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_{position:absolute}.___SColumn_3t5eh_gg_.__gridArea_3t5eh_gg_,.___SGroupTitle_3t5eh_gg_.__gridArea_3t5eh_gg_,.___SGroup_3t5eh_gg_.__gridArea_3t5eh_gg_{grid-area:var(--gridArea_3t5eh)}.___SHead_3t5eh_gg_ .___SColumn_3t5eh_gg_.__fixed_3t5eh_gg_,.___SHead_3t5eh_gg_ .___SGroup_3t5eh_gg_.__fixed_3t5eh_gg_,.___SHead_3t5eh_gg_.__sticky_3t5eh_gg_ .___SColumn_3t5eh_gg_.__fixed_3t5eh_gg_{position:sticky;z-index:19}@media (hover:hover){.___SColumn_3t5eh_gg_.__sortable_3t5eh_gg_:hover{cursor:pointer}}.___SSortWrapper_3t5eh_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_3t5eh_gg_,.___SSortWrapper_3t5eh_gg_:before{display:none;position:absolute;right:0;opacity:0;transition:opacity .3s ease}.___SSortWrapper_3t5eh_gg_:before{content:"";top:0;width:20px;height:100%}.___SSortButton_3t5eh_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_3t5eh_gg_._sideIndents_wide_3t5eh_gg_ .___SColumn_3t5eh_gg_:first-child{padding-left:var(--intergalactic-spacing-5x, 20px)}.___SHead_3t5eh_gg_._sideIndents_wide_3t5eh_gg_ .___SColumn_3t5eh_gg_:last-child{padding-right:var(--intergalactic-spacing-5x, 20px)}.___SHeadCheckboxCol_3t5eh_gg_{cursor:pointer}.___SColumn_3t5eh_gg_.__fixed_3t5eh_gg_.__shadowVertical_3t5eh_gg_:after,.___SGroup_3t5eh_gg_.__fixed_3t5eh_gg_.__shadowVertical_3t5eh_gg_:after{content:"";position:absolute;pointer-events:none;display:none;top:0;width:5px;height:100%;z-index:5}.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_,.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_{margin-right:-5px;border-right-color:transparent}.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_primary_3t5eh_gg_,.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_._use_primary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_primary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_._use_primary_3t5eh_gg_{padding-right:calc(var(--intergalactic-spacing-3x, 12px) + 5px)}.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_secondary_3t5eh_gg_,.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_._use_secondary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_secondary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_._use_secondary_3t5eh_gg_{padding-right:calc(var(--intergalactic-spacing-2x, 8px) + 5px)}.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_:after,.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_:after,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_:after,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_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_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_,.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_{margin-left:-5px;border-left-color:transparent}.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_._use_primary_3t5eh_gg_,.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_primary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_._use_primary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_primary_3t5eh_gg_{padding-left:calc(var(--intergalactic-spacing-3x, 12px) + 5px)}.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_._use_secondary_3t5eh_gg_,.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_secondary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_._use_secondary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_secondary_3t5eh_gg_{padding-left:calc(var(--intergalactic-spacing-2x, 8px) + 5px)}.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_:after,.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_:after,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_:after,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_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%))}',
|
|
19
19
|
/*__inner_css_end__*/
|
|
20
|
-
"
|
|
20
|
+
"3t5eh_gg_"
|
|
21
21
|
), /*__reshadow_css_end__*/
|
|
22
22
|
{
|
|
23
|
-
"__SHead": "
|
|
24
|
-
"__SGroupContainer": "
|
|
25
|
-
"_isDataEmpty": "
|
|
26
|
-
"_gridTemplateColumns": "
|
|
27
|
-
"--gridTemplateColumns": "--
|
|
28
|
-
"_animationDuration": "
|
|
29
|
-
"__SColumn": "
|
|
30
|
-
"--animationDuration": "--
|
|
31
|
-
"_sticky": "
|
|
32
|
-
"__SGroup": "
|
|
33
|
-
"_compact": "
|
|
34
|
-
"_use_secondary": "
|
|
35
|
-
"_borders_both": "
|
|
36
|
-
"_borders_left": "
|
|
37
|
-
"_borders_right": "
|
|
38
|
-
"_gridArea": "
|
|
39
|
-
"__SGroupTitle": "
|
|
40
|
-
"--gridArea": "--
|
|
41
|
-
"_fixed": "
|
|
42
|
-
"_sortable": "
|
|
43
|
-
"__SSortWrapper": "
|
|
44
|
-
"__SSortButton": "
|
|
45
|
-
"__SHeadCheckboxCol": "
|
|
46
|
-
"_use_primary": "
|
|
47
|
-
"_visibleSort": "
|
|
48
|
-
"_justifyContent_right": "
|
|
49
|
-
"_changeSortSize": "
|
|
50
|
-
"_isSorted": "
|
|
51
|
-
"_sideIndents_wide": "
|
|
52
|
-
"_shadowVertical": "
|
|
53
|
-
"_fixed_left": "
|
|
54
|
-
"_shadowVertical_median": "
|
|
55
|
-
"_shadowVertical_start": "
|
|
56
|
-
"_fixed_right": "
|
|
57
|
-
"_shadowVertical_end": "
|
|
23
|
+
"__SHead": "___SHead_3t5eh_gg_",
|
|
24
|
+
"__SGroupContainer": "___SGroupContainer_3t5eh_gg_",
|
|
25
|
+
"_isDataEmpty": "__isDataEmpty_3t5eh_gg_",
|
|
26
|
+
"_gridTemplateColumns": "__gridTemplateColumns_3t5eh_gg_",
|
|
27
|
+
"--gridTemplateColumns": "--gridTemplateColumns_3t5eh",
|
|
28
|
+
"_animationDuration": "__animationDuration_3t5eh_gg_",
|
|
29
|
+
"__SColumn": "___SColumn_3t5eh_gg_",
|
|
30
|
+
"--animationDuration": "--animationDuration_3t5eh",
|
|
31
|
+
"_sticky": "__sticky_3t5eh_gg_",
|
|
32
|
+
"__SGroup": "___SGroup_3t5eh_gg_",
|
|
33
|
+
"_compact": "__compact_3t5eh_gg_",
|
|
34
|
+
"_use_secondary": "_use_secondary_3t5eh_gg_",
|
|
35
|
+
"_borders_both": "_borders_both_3t5eh_gg_",
|
|
36
|
+
"_borders_left": "_borders_left_3t5eh_gg_",
|
|
37
|
+
"_borders_right": "_borders_right_3t5eh_gg_",
|
|
38
|
+
"_gridArea": "__gridArea_3t5eh_gg_",
|
|
39
|
+
"__SGroupTitle": "___SGroupTitle_3t5eh_gg_",
|
|
40
|
+
"--gridArea": "--gridArea_3t5eh",
|
|
41
|
+
"_fixed": "__fixed_3t5eh_gg_",
|
|
42
|
+
"_sortable": "__sortable_3t5eh_gg_",
|
|
43
|
+
"__SSortWrapper": "___SSortWrapper_3t5eh_gg_",
|
|
44
|
+
"__SSortButton": "___SSortButton_3t5eh_gg_",
|
|
45
|
+
"__SHeadCheckboxCol": "___SHeadCheckboxCol_3t5eh_gg_",
|
|
46
|
+
"_use_primary": "_use_primary_3t5eh_gg_",
|
|
47
|
+
"_visibleSort": "__visibleSort_3t5eh_gg_",
|
|
48
|
+
"_justifyContent_right": "_justifyContent_right_3t5eh_gg_",
|
|
49
|
+
"_changeSortSize": "__changeSortSize_3t5eh_gg_",
|
|
50
|
+
"_isSorted": "__isSorted_3t5eh_gg_",
|
|
51
|
+
"_sideIndents_wide": "_sideIndents_wide_3t5eh_gg_",
|
|
52
|
+
"_shadowVertical": "__shadowVertical_3t5eh_gg_",
|
|
53
|
+
"_fixed_left": "_fixed_left_3t5eh_gg_",
|
|
54
|
+
"_shadowVertical_median": "_shadowVertical_median_3t5eh_gg_",
|
|
55
|
+
"_shadowVertical_start": "_shadowVertical_start_3t5eh_gg_",
|
|
56
|
+
"_fixed_right": "_fixed_right_3t5eh_gg_",
|
|
57
|
+
"_shadowVertical_end": "_shadowVertical_end_3t5eh_gg_"
|
|
58
58
|
})
|
|
59
59
|
);
|
|
60
60
|
var Group = /* @__PURE__ */ (function(_Component) {
|
|
@@ -12,52 +12,53 @@ import Checkbox from "@semcore/checkbox";
|
|
|
12
12
|
import React__default from "react";
|
|
13
13
|
import { Column } from "./Column.mjs";
|
|
14
14
|
import { Group } from "./Group.mjs";
|
|
15
|
+
import { SelectableRows } from "../../store/SelectableRows.mjs";
|
|
15
16
|
import { UNIQ_ROW_KEY, SELECT_ALL, DataTable } from "../DataTable/DataTable.mjs";
|
|
16
17
|
/*!__reshadow-styles__:"./style.shadow.css"*/
|
|
17
18
|
var style = (
|
|
18
19
|
/*__reshadow_css_start__*/
|
|
19
20
|
(sstyled.insert(
|
|
20
21
|
/*__inner_css_start__*/
|
|
21
|
-
'.
|
|
22
|
+
'.___SGroupContainer_3t5eh_gg_,.___SHead_3t5eh_gg_{display:contents}.___SHead_3t5eh_gg_.__isDataEmpty_3t5eh_gg_.__gridTemplateColumns_3t5eh_gg_{display:grid;grid-template-columns:var(--gridTemplateColumns_3t5eh);overflow:auto;scrollbar-width:thin}.___SHead_3t5eh_gg_.__animationDuration_3t5eh_gg_>.___SColumn_3t5eh_gg_{transition:top var(--animationDuration_3t5eh) ease-out}.___SHead_3t5eh_gg_.__sticky_3t5eh_gg_ .___SColumn_3t5eh_gg_,.___SHead_3t5eh_gg_.__sticky_3t5eh_gg_ .___SGroup_3t5eh_gg_{position:sticky;top:0;z-index:18}.___SHead_3t5eh_gg_.__sticky_3t5eh_gg_ .___SGroupContainer_3t5eh_gg_>.___SColumn_3t5eh_gg_{position:sticky;z-index:18}.___SHead_3t5eh_gg_.__compact_3t5eh_gg_ .___SColumn_3t5eh_gg_{padding:var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-2x, 8px)}.___SColumn_3t5eh_gg_,.___SGroup_3t5eh_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_3t5eh_gg_{justify-content:center;text-align:center;background-color:var(--intergalactic-table-th-primary-cell, #f4f5f9)}.___SGroup_3t5eh_gg_._use_primary_3t5eh_gg_{padding:var(--intergalactic-spacing-3x, 12px)}.___SGroup_3t5eh_gg_._use_primary_3t5eh_gg_:has(~.___SColumn_3t5eh_gg_.__visibleSort_3t5eh_gg_){background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SGroup_3t5eh_gg_._use_secondary_3t5eh_gg_{padding:var(--intergalactic-spacing-2x, 8px)}.___SColumn_3t5eh_gg_._borders_both_3t5eh_gg_,.___SColumn_3t5eh_gg_._borders_left_3t5eh_gg_,.___SGroup_3t5eh_gg_._borders_both_3t5eh_gg_,.___SGroup_3t5eh_gg_._borders_left_3t5eh_gg_{border-left:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_3t5eh_gg_._borders_both_3t5eh_gg_,.___SColumn_3t5eh_gg_._borders_right_3t5eh_gg_,.___SGroup_3t5eh_gg_._borders_both_3t5eh_gg_,.___SGroup_3t5eh_gg_._borders_right_3t5eh_gg_{border-right:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_3t5eh_gg_._use_primary_3t5eh_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_3t5eh_gg_._use_primary_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-primary-cell-hover, #e0e1e9) 67.5%,rgba(224,225,233,0) 105%)}.___SColumn_3t5eh_gg_._use_primary_3t5eh_gg_.__visibleSort_3t5eh_gg_{background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SColumn_3t5eh_gg_._use_primary_3t5eh_gg_.__visibleSort_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_3t5eh_gg_._use_primary_3t5eh_gg_.__visibleSort_3t5eh_gg_ .___SSortButton_3t5eh_gg_,.___SColumn_3t5eh_gg_._use_primary_3t5eh_gg_.__visibleSort_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_::before,.___SColumn_3t5eh_gg_._use_secondary_3t5eh_gg_.__visibleSort_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_::before{display:flex;opacity:1}.___SColumn_3t5eh_gg_._use_primary_3t5eh_gg_._justifyContent_right_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_{position:absolute}.___SColumn_3t5eh_gg_._use_primary_3t5eh_gg_._justifyContent_right_3t5eh_gg_.__changeSortSize_3t5eh_gg_.__isSorted_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_,.___SColumn_3t5eh_gg_._use_secondary_3t5eh_gg_._justifyContent_right_3t5eh_gg_.__changeSortSize_3t5eh_gg_.__isSorted_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_{position:relative}.___SColumn_3t5eh_gg_._use_secondary_3t5eh_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_3t5eh_gg_._use_secondary_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-secondary-cell, #ffffff) 67.5%,rgba(255,255,255,0) 105%)}.___SColumn_3t5eh_gg_._use_secondary_3t5eh_gg_.__visibleSort_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_3t5eh_gg_._use_secondary_3t5eh_gg_.__visibleSort_3t5eh_gg_ .___SSortButton_3t5eh_gg_{display:flex;opacity:1}.___SColumn_3t5eh_gg_._use_secondary_3t5eh_gg_._justifyContent_right_3t5eh_gg_ .___SSortWrapper_3t5eh_gg_{position:absolute}.___SColumn_3t5eh_gg_.__gridArea_3t5eh_gg_,.___SGroupTitle_3t5eh_gg_.__gridArea_3t5eh_gg_,.___SGroup_3t5eh_gg_.__gridArea_3t5eh_gg_{grid-area:var(--gridArea_3t5eh)}.___SHead_3t5eh_gg_ .___SColumn_3t5eh_gg_.__fixed_3t5eh_gg_,.___SHead_3t5eh_gg_ .___SGroup_3t5eh_gg_.__fixed_3t5eh_gg_,.___SHead_3t5eh_gg_.__sticky_3t5eh_gg_ .___SColumn_3t5eh_gg_.__fixed_3t5eh_gg_{position:sticky;z-index:19}@media (hover:hover){.___SColumn_3t5eh_gg_.__sortable_3t5eh_gg_:hover{cursor:pointer}}.___SSortWrapper_3t5eh_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_3t5eh_gg_,.___SSortWrapper_3t5eh_gg_:before{display:none;position:absolute;right:0;opacity:0;transition:opacity .3s ease}.___SSortWrapper_3t5eh_gg_:before{content:"";top:0;width:20px;height:100%}.___SSortButton_3t5eh_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_3t5eh_gg_._sideIndents_wide_3t5eh_gg_ .___SColumn_3t5eh_gg_:first-child{padding-left:var(--intergalactic-spacing-5x, 20px)}.___SHead_3t5eh_gg_._sideIndents_wide_3t5eh_gg_ .___SColumn_3t5eh_gg_:last-child{padding-right:var(--intergalactic-spacing-5x, 20px)}.___SHeadCheckboxCol_3t5eh_gg_{cursor:pointer}.___SColumn_3t5eh_gg_.__fixed_3t5eh_gg_.__shadowVertical_3t5eh_gg_:after,.___SGroup_3t5eh_gg_.__fixed_3t5eh_gg_.__shadowVertical_3t5eh_gg_:after{content:"";position:absolute;pointer-events:none;display:none;top:0;width:5px;height:100%;z-index:5}.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_,.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_{margin-right:-5px;border-right-color:transparent}.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_primary_3t5eh_gg_,.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_._use_primary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_primary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_._use_primary_3t5eh_gg_{padding-right:calc(var(--intergalactic-spacing-3x, 12px) + 5px)}.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_secondary_3t5eh_gg_,.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_._use_secondary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_secondary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_._use_secondary_3t5eh_gg_{padding-right:calc(var(--intergalactic-spacing-2x, 8px) + 5px)}.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_:after,.___SColumn_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_gg_:after,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_median_3t5eh_gg_:after,.___SGroup_3t5eh_gg_._fixed_left_3t5eh_gg_._shadowVertical_start_3t5eh_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_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_,.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_{margin-left:-5px;border-left-color:transparent}.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_._use_primary_3t5eh_gg_,.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_primary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_._use_primary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_primary_3t5eh_gg_{padding-left:calc(var(--intergalactic-spacing-3x, 12px) + 5px)}.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_._use_secondary_3t5eh_gg_,.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_secondary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_._use_secondary_3t5eh_gg_,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_._use_secondary_3t5eh_gg_{padding-left:calc(var(--intergalactic-spacing-2x, 8px) + 5px)}.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_:after,.___SColumn_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_gg_:after,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_end_3t5eh_gg_:after,.___SGroup_3t5eh_gg_._fixed_right_3t5eh_gg_._shadowVertical_median_3t5eh_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%))}',
|
|
22
23
|
/*__inner_css_end__*/
|
|
23
|
-
"
|
|
24
|
+
"3t5eh_gg_"
|
|
24
25
|
), /*__reshadow_css_end__*/
|
|
25
26
|
{
|
|
26
|
-
"__SHead": "
|
|
27
|
-
"__SGroupContainer": "
|
|
28
|
-
"_isDataEmpty": "
|
|
29
|
-
"_gridTemplateColumns": "
|
|
30
|
-
"--gridTemplateColumns": "--
|
|
31
|
-
"_animationDuration": "
|
|
32
|
-
"__SColumn": "
|
|
33
|
-
"--animationDuration": "--
|
|
34
|
-
"_sticky": "
|
|
35
|
-
"__SGroup": "
|
|
36
|
-
"_compact": "
|
|
37
|
-
"_use_secondary": "
|
|
38
|
-
"_borders_both": "
|
|
39
|
-
"_borders_left": "
|
|
40
|
-
"_borders_right": "
|
|
41
|
-
"_gridArea": "
|
|
42
|
-
"__SGroupTitle": "
|
|
43
|
-
"--gridArea": "--
|
|
44
|
-
"_fixed": "
|
|
45
|
-
"_sortable": "
|
|
46
|
-
"__SSortWrapper": "
|
|
47
|
-
"__SSortButton": "
|
|
48
|
-
"__SHeadCheckboxCol": "
|
|
49
|
-
"_use_primary": "
|
|
50
|
-
"_visibleSort": "
|
|
51
|
-
"_justifyContent_right": "
|
|
52
|
-
"_changeSortSize": "
|
|
53
|
-
"_isSorted": "
|
|
54
|
-
"_sideIndents_wide": "
|
|
55
|
-
"_shadowVertical": "
|
|
56
|
-
"_fixed_left": "
|
|
57
|
-
"_shadowVertical_median": "
|
|
58
|
-
"_shadowVertical_start": "
|
|
59
|
-
"_fixed_right": "
|
|
60
|
-
"_shadowVertical_end": "
|
|
27
|
+
"__SHead": "___SHead_3t5eh_gg_",
|
|
28
|
+
"__SGroupContainer": "___SGroupContainer_3t5eh_gg_",
|
|
29
|
+
"_isDataEmpty": "__isDataEmpty_3t5eh_gg_",
|
|
30
|
+
"_gridTemplateColumns": "__gridTemplateColumns_3t5eh_gg_",
|
|
31
|
+
"--gridTemplateColumns": "--gridTemplateColumns_3t5eh",
|
|
32
|
+
"_animationDuration": "__animationDuration_3t5eh_gg_",
|
|
33
|
+
"__SColumn": "___SColumn_3t5eh_gg_",
|
|
34
|
+
"--animationDuration": "--animationDuration_3t5eh",
|
|
35
|
+
"_sticky": "__sticky_3t5eh_gg_",
|
|
36
|
+
"__SGroup": "___SGroup_3t5eh_gg_",
|
|
37
|
+
"_compact": "__compact_3t5eh_gg_",
|
|
38
|
+
"_use_secondary": "_use_secondary_3t5eh_gg_",
|
|
39
|
+
"_borders_both": "_borders_both_3t5eh_gg_",
|
|
40
|
+
"_borders_left": "_borders_left_3t5eh_gg_",
|
|
41
|
+
"_borders_right": "_borders_right_3t5eh_gg_",
|
|
42
|
+
"_gridArea": "__gridArea_3t5eh_gg_",
|
|
43
|
+
"__SGroupTitle": "___SGroupTitle_3t5eh_gg_",
|
|
44
|
+
"--gridArea": "--gridArea_3t5eh",
|
|
45
|
+
"_fixed": "__fixed_3t5eh_gg_",
|
|
46
|
+
"_sortable": "__sortable_3t5eh_gg_",
|
|
47
|
+
"__SSortWrapper": "___SSortWrapper_3t5eh_gg_",
|
|
48
|
+
"__SSortButton": "___SSortButton_3t5eh_gg_",
|
|
49
|
+
"__SHeadCheckboxCol": "___SHeadCheckboxCol_3t5eh_gg_",
|
|
50
|
+
"_use_primary": "_use_primary_3t5eh_gg_",
|
|
51
|
+
"_visibleSort": "__visibleSort_3t5eh_gg_",
|
|
52
|
+
"_justifyContent_right": "_justifyContent_right_3t5eh_gg_",
|
|
53
|
+
"_changeSortSize": "__changeSortSize_3t5eh_gg_",
|
|
54
|
+
"_isSorted": "__isSorted_3t5eh_gg_",
|
|
55
|
+
"_sideIndents_wide": "_sideIndents_wide_3t5eh_gg_",
|
|
56
|
+
"_shadowVertical": "__shadowVertical_3t5eh_gg_",
|
|
57
|
+
"_fixed_left": "_fixed_left_3t5eh_gg_",
|
|
58
|
+
"_shadowVertical_median": "_shadowVertical_median_3t5eh_gg_",
|
|
59
|
+
"_shadowVertical_start": "_shadowVertical_start_3t5eh_gg_",
|
|
60
|
+
"_fixed_right": "_fixed_right_3t5eh_gg_",
|
|
61
|
+
"_shadowVertical_end": "_shadowVertical_end_3t5eh_gg_"
|
|
61
62
|
})
|
|
62
63
|
);
|
|
63
64
|
var HeadRoot = /* @__PURE__ */ (function(_Component) {
|
|
@@ -68,20 +69,29 @@ var HeadRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
68
69
|
args[_key] = arguments[_key];
|
|
69
70
|
}
|
|
70
71
|
_this = _callSuper(this, HeadRoot2, [].concat(args));
|
|
72
|
+
_defineProperty(_this, "unsubscribeSelectAll", void 0);
|
|
71
73
|
_defineProperty(_this, "handleSelectAll", function(value, event) {
|
|
72
|
-
var
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
74
|
+
var selectedRows = _this.asProps.selectedRows;
|
|
75
|
+
if (Array.isArray(selectedRows)) {
|
|
76
|
+
var _this$asProps$onChang, _this$asProps;
|
|
77
|
+
var idsSet = new Set(selectedRows);
|
|
78
|
+
if (value) {
|
|
79
|
+
_this.selectableRows.forEach(function(row) {
|
|
80
|
+
idsSet.add(row[UNIQ_ROW_KEY]);
|
|
81
|
+
});
|
|
82
|
+
} else {
|
|
83
|
+
_this.selectableRows.forEach(function(row) {
|
|
84
|
+
idsSet["delete"](row[UNIQ_ROW_KEY]);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
(_this$asProps$onChang = (_this$asProps = _this.asProps).onChangeSelectAll) === null || _this$asProps$onChang === void 0 || _this$asProps$onChang.call(_this$asProps, Array.from(idsSet), event);
|
|
88
|
+
} else if (selectedRows) {
|
|
89
|
+
if (value) {
|
|
90
|
+
selectedRows.selectAll();
|
|
91
|
+
} else {
|
|
92
|
+
selectedRows.clearAllAvailable();
|
|
93
|
+
}
|
|
83
94
|
}
|
|
84
|
-
(_this$asProps$onChang = (_this$asProps = _this.asProps).onChangeSelectAll) === null || _this$asProps$onChang === void 0 || _this$asProps$onChang.call(_this$asProps, Array.from(idsSet), event);
|
|
85
95
|
});
|
|
86
96
|
_defineProperty(_this, "handleClickSelectAll", function(value) {
|
|
87
97
|
return function(event) {
|
|
@@ -94,6 +104,23 @@ var HeadRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
94
104
|
}
|
|
95
105
|
_inherits(HeadRoot2, _Component);
|
|
96
106
|
return _createClass(HeadRoot2, [{
|
|
107
|
+
key: "componentDidMount",
|
|
108
|
+
value: function componentDidMount() {
|
|
109
|
+
var _this2 = this;
|
|
110
|
+
var selectedRows = this.asProps.selectedRows;
|
|
111
|
+
if (selectedRows && !Array.isArray(selectedRows)) {
|
|
112
|
+
this.unsubscribeSelectAll = selectedRows.subscribe(SelectableRows.SELECT_ALL_EVENT, function() {
|
|
113
|
+
_this2.forceUpdate();
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}, {
|
|
118
|
+
key: "componentWillUnmount",
|
|
119
|
+
value: function componentWillUnmount() {
|
|
120
|
+
var _this$unsubscribeSele;
|
|
121
|
+
(_this$unsubscribeSele = this.unsubscribeSelectAll) === null || _this$unsubscribeSele === void 0 || _this$unsubscribeSele.call(this);
|
|
122
|
+
}
|
|
123
|
+
}, {
|
|
97
124
|
key: "sortableColumnDescribeId",
|
|
98
125
|
value: function sortableColumnDescribeId() {
|
|
99
126
|
var uid = this.asProps.uid;
|
|
@@ -180,18 +207,26 @@ var HeadRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
180
207
|
}, {
|
|
181
208
|
key: "areAllRowsSelected",
|
|
182
209
|
get: function get() {
|
|
183
|
-
var
|
|
184
|
-
|
|
185
|
-
return selectedRows
|
|
186
|
-
|
|
210
|
+
var selectedRows = this.asProps.selectedRows;
|
|
211
|
+
if (Array.isArray(selectedRows)) {
|
|
212
|
+
return selectedRows.length > 0 && this.selectableRows.every(function(row) {
|
|
213
|
+
return selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.includes(row[UNIQ_ROW_KEY]);
|
|
214
|
+
});
|
|
215
|
+
} else if (selectedRows) {
|
|
216
|
+
return selectedRows.isAllSelected();
|
|
217
|
+
}
|
|
187
218
|
}
|
|
188
219
|
}, {
|
|
189
220
|
key: "isIndeterminate",
|
|
190
221
|
get: function get() {
|
|
191
222
|
var selectedRows = this.asProps.selectedRows;
|
|
192
|
-
|
|
193
|
-
return
|
|
194
|
-
|
|
223
|
+
if (Array.isArray(selectedRows)) {
|
|
224
|
+
return this.selectableRows.some(function(row) {
|
|
225
|
+
return selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.includes(row[UNIQ_ROW_KEY]);
|
|
226
|
+
});
|
|
227
|
+
} else if (selectedRows) {
|
|
228
|
+
return selectedRows.isIndeterminate();
|
|
229
|
+
}
|
|
195
230
|
}
|
|
196
231
|
}, {
|
|
197
232
|
key: "selectableRows",
|