@semcore/data-table 16.4.0 → 16.4.2-prerelease.3

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.
Files changed (69) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/lib/cjs/components/AccordionRows/AccordionRows.js +176 -0
  3. package/lib/cjs/components/AccordionRows/AccordionRows.js.map +1 -0
  4. package/lib/cjs/components/Body/Body.js +128 -114
  5. package/lib/cjs/components/Body/Body.js.map +1 -1
  6. package/lib/cjs/components/Body/Body.types.js.map +1 -1
  7. package/lib/cjs/components/Body/Cell.js +63 -104
  8. package/lib/cjs/components/Body/Cell.js.map +1 -1
  9. package/lib/cjs/components/Body/Cell.types.js.map +1 -1
  10. package/lib/cjs/components/Body/LimitOverlay.js +55 -53
  11. package/lib/cjs/components/Body/LimitOverlay.js.map +1 -1
  12. package/lib/cjs/components/Body/Row.js +218 -236
  13. package/lib/cjs/components/Body/Row.js.map +1 -1
  14. package/lib/cjs/components/Body/Row.types.js.map +1 -1
  15. package/lib/cjs/components/Body/style.shadow.css +32 -8
  16. package/lib/cjs/components/DataTable/DataTable.js +41 -31
  17. package/lib/cjs/components/DataTable/DataTable.js.map +1 -1
  18. package/lib/cjs/components/DataTable/DataTable.types.js.map +1 -1
  19. package/lib/cjs/components/Head/Column.js +36 -36
  20. package/lib/cjs/components/Head/Column.types.js.map +1 -1
  21. package/lib/cjs/components/Head/Group.js +36 -36
  22. package/lib/cjs/components/Head/Head.js +36 -36
  23. package/lib/cjs/components/Head/Head.types.js.map +1 -1
  24. package/lib/cjs/enhancers/focusableCell.js +15 -5
  25. package/lib/cjs/enhancers/focusableCell.js.map +1 -1
  26. package/lib/es6/components/AccordionRows/AccordionRows.js +170 -0
  27. package/lib/es6/components/AccordionRows/AccordionRows.js.map +1 -0
  28. package/lib/es6/components/Body/Body.js +128 -114
  29. package/lib/es6/components/Body/Body.js.map +1 -1
  30. package/lib/es6/components/Body/Body.types.js.map +1 -1
  31. package/lib/es6/components/Body/Cell.js +64 -105
  32. package/lib/es6/components/Body/Cell.js.map +1 -1
  33. package/lib/es6/components/Body/Cell.types.js.map +1 -1
  34. package/lib/es6/components/Body/LimitOverlay.js +55 -53
  35. package/lib/es6/components/Body/LimitOverlay.js.map +1 -1
  36. package/lib/es6/components/Body/Row.js +218 -236
  37. package/lib/es6/components/Body/Row.js.map +1 -1
  38. package/lib/es6/components/Body/Row.types.js.map +1 -1
  39. package/lib/es6/components/Body/style.shadow.css +32 -8
  40. package/lib/es6/components/DataTable/DataTable.js +41 -31
  41. package/lib/es6/components/DataTable/DataTable.js.map +1 -1
  42. package/lib/es6/components/DataTable/DataTable.types.js.map +1 -1
  43. package/lib/es6/components/Head/Column.js +36 -36
  44. package/lib/es6/components/Head/Column.types.js.map +1 -1
  45. package/lib/es6/components/Head/Group.js +36 -36
  46. package/lib/es6/components/Head/Head.js +36 -36
  47. package/lib/es6/components/Head/Head.types.js.map +1 -1
  48. package/lib/es6/enhancers/focusableCell.js +15 -5
  49. package/lib/es6/enhancers/focusableCell.js.map +1 -1
  50. package/lib/esm/components/AccordionRows/AccordionRows.mjs +155 -0
  51. package/lib/esm/components/Body/Body.mjs +84 -70
  52. package/lib/esm/components/Body/Cell.mjs +58 -88
  53. package/lib/esm/components/Body/LimitOverlay.mjs +56 -54
  54. package/lib/esm/components/Body/Row.mjs +171 -189
  55. package/lib/esm/components/Body/style.shadow.css +32 -8
  56. package/lib/esm/components/DataTable/DataTable.mjs +42 -33
  57. package/lib/esm/components/Head/Column.mjs +37 -37
  58. package/lib/esm/components/Head/Group.mjs +37 -37
  59. package/lib/esm/components/Head/Head.mjs +37 -37
  60. package/lib/esm/enhancers/focusableCell.mjs +15 -5
  61. package/lib/types/components/AccordionRows/AccordionRows.d.ts +39 -0
  62. package/lib/types/components/Body/Body.types.d.ts +5 -4
  63. package/lib/types/components/Body/Cell.types.d.ts +6 -11
  64. package/lib/types/components/Body/Row.d.ts +10 -10
  65. package/lib/types/components/Body/Row.types.d.ts +9 -9
  66. package/lib/types/components/DataTable/DataTable.types.d.ts +6 -1
  67. package/lib/types/components/Head/Column.types.d.ts +2 -2
  68. package/lib/types/components/Head/Head.types.d.ts +2 -2
  69. package/package.json +22 -22
@@ -18,46 +18,46 @@ var style = (
18
18
  /*__reshadow_css_start__*/
19
19
  (sstyled.insert(
20
20
  /*__inner_css_start__*/
21
- '.___SGroupContainer_85a0v_gg_,.___SHead_85a0v_gg_{display:contents}.___SHead_85a0v_gg_.__isDataEmpty_85a0v_gg_.__gridTemplateColumns_85a0v_gg_{display:grid;grid-template-columns:var(--gridTemplateColumns_85a0v);overflow:auto;scrollbar-width:thin}.___SHead_85a0v_gg_.__animationDuration_85a0v_gg_>.___SColumn_85a0v_gg_{transition:top var(--animationDuration_85a0v) ease-out}.___SHead_85a0v_gg_.__sticky_85a0v_gg_ .___SColumn_85a0v_gg_,.___SHead_85a0v_gg_.__sticky_85a0v_gg_ .___SGroup_85a0v_gg_{position:sticky;top:0;z-index:18}.___SHead_85a0v_gg_.__sticky_85a0v_gg_ .___SGroupContainer_85a0v_gg_>.___SColumn_85a0v_gg_{position:sticky;z-index:18}.___SHead_85a0v_gg_.__compact_85a0v_gg_ .___SColumn_85a0v_gg_{padding:var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-2x, 8px)}.___SColumn_85a0v_gg_,.___SGroup_85a0v_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_85a0v_gg_{justify-content:center;text-align:center;background-color:var(--intergalactic-table-th-primary-cell, #f4f5f9)}.___SGroup_85a0v_gg_._use_primary_85a0v_gg_{padding:var(--intergalactic-spacing-3x, 12px)}.___SGroup_85a0v_gg_._use_primary_85a0v_gg_:has(~.___SColumn_85a0v_gg_.__visibleSort_85a0v_gg_){background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SGroup_85a0v_gg_._use_secondary_85a0v_gg_{padding:var(--intergalactic-spacing-2x, 8px)}.___SColumn_85a0v_gg_._borders_both_85a0v_gg_,.___SColumn_85a0v_gg_._borders_left_85a0v_gg_,.___SGroup_85a0v_gg_._borders_both_85a0v_gg_,.___SGroup_85a0v_gg_._borders_left_85a0v_gg_{border-left:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_85a0v_gg_._borders_both_85a0v_gg_,.___SColumn_85a0v_gg_._borders_right_85a0v_gg_,.___SGroup_85a0v_gg_._borders_both_85a0v_gg_,.___SGroup_85a0v_gg_._borders_right_85a0v_gg_{border-right:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_85a0v_gg_._use_primary_85a0v_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_85a0v_gg_._use_primary_85a0v_gg_ .___SSortWrapper_85a0v_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-primary-cell-hover, #e0e1e9) 67.5%,rgba(224,225,233,0) 105%)}.___SColumn_85a0v_gg_._use_primary_85a0v_gg_.__visibleSort_85a0v_gg_{background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SColumn_85a0v_gg_._use_primary_85a0v_gg_.__visibleSort_85a0v_gg_ .___SSortWrapper_85a0v_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_85a0v_gg_._use_primary_85a0v_gg_.__visibleSort_85a0v_gg_ .___SSortButton_85a0v_gg_,.___SColumn_85a0v_gg_._use_primary_85a0v_gg_.__visibleSort_85a0v_gg_ .___SSortWrapper_85a0v_gg_::before,.___SColumn_85a0v_gg_._use_secondary_85a0v_gg_.__visibleSort_85a0v_gg_ .___SSortWrapper_85a0v_gg_::before{display:flex;opacity:1}.___SColumn_85a0v_gg_._use_primary_85a0v_gg_._justifyContent_right_85a0v_gg_ .___SSortWrapper_85a0v_gg_{position:absolute}.___SColumn_85a0v_gg_._use_primary_85a0v_gg_._justifyContent_right_85a0v_gg_.__changeSortSize_85a0v_gg_.__isSorted_85a0v_gg_ .___SSortWrapper_85a0v_gg_,.___SColumn_85a0v_gg_._use_secondary_85a0v_gg_._justifyContent_right_85a0v_gg_.__changeSortSize_85a0v_gg_.__isSorted_85a0v_gg_ .___SSortWrapper_85a0v_gg_{position:relative}.___SColumn_85a0v_gg_._use_secondary_85a0v_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_85a0v_gg_._use_secondary_85a0v_gg_ .___SSortWrapper_85a0v_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-secondary-cell, #ffffff) 67.5%,rgba(255,255,255,0) 105%)}.___SColumn_85a0v_gg_._use_secondary_85a0v_gg_.__visibleSort_85a0v_gg_ .___SSortWrapper_85a0v_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_85a0v_gg_._use_secondary_85a0v_gg_.__visibleSort_85a0v_gg_ .___SSortButton_85a0v_gg_{display:flex;opacity:1}.___SColumn_85a0v_gg_._use_secondary_85a0v_gg_._justifyContent_right_85a0v_gg_ .___SSortWrapper_85a0v_gg_{position:absolute}.___SColumn_85a0v_gg_.__gridArea_85a0v_gg_,.___SGroupTitle_85a0v_gg_.__gridArea_85a0v_gg_,.___SGroup_85a0v_gg_.__gridArea_85a0v_gg_{grid-area:var(--gridArea_85a0v)}.___SHead_85a0v_gg_ .___SColumn_85a0v_gg_.__fixed_85a0v_gg_,.___SHead_85a0v_gg_ .___SGroup_85a0v_gg_.__fixed_85a0v_gg_,.___SHead_85a0v_gg_.__sticky_85a0v_gg_ .___SColumn_85a0v_gg_.__fixed_85a0v_gg_{position:sticky;z-index:19}@media (hover:hover){.___SColumn_85a0v_gg_.__sortable_85a0v_gg_:hover{cursor:pointer}}.___SSortWrapper_85a0v_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_85a0v_gg_,.___SSortWrapper_85a0v_gg_:before{display:none;position:absolute;right:0;opacity:0;transition:opacity .3s ease}.___SSortWrapper_85a0v_gg_:before{content:"";top:0;width:20px;height:100%}.___SSortButton_85a0v_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_85a0v_gg_._sideIndents_wide_85a0v_gg_ .___SColumn_85a0v_gg_:first-child{padding-left:var(--intergalactic-spacing-5x, 20px)}.___SHead_85a0v_gg_._sideIndents_wide_85a0v_gg_ .___SColumn_85a0v_gg_:last-child{padding-right:var(--intergalactic-spacing-5x, 20px)}.___SHeadCheckboxCol_85a0v_gg_{cursor:pointer}.___SColumn_85a0v_gg_.__fixed_85a0v_gg_.__shadowVertical_85a0v_gg_:after,.___SGroup_85a0v_gg_.__fixed_85a0v_gg_.__shadowVertical_85a0v_gg_:after{content:"";position:absolute;pointer-events:none;display:none;top:0;width:5px;height:100%;z-index:5}.___SColumn_85a0v_gg_._fixed_left_85a0v_gg_._shadowVertical_median_85a0v_gg_,.___SColumn_85a0v_gg_._fixed_left_85a0v_gg_._shadowVertical_start_85a0v_gg_,.___SGroup_85a0v_gg_._fixed_left_85a0v_gg_._shadowVertical_median_85a0v_gg_,.___SGroup_85a0v_gg_._fixed_left_85a0v_gg_._shadowVertical_start_85a0v_gg_{margin-right:-5px;border-right-color:transparent}.___SColumn_85a0v_gg_._fixed_left_85a0v_gg_._shadowVertical_median_85a0v_gg_._use_primary_85a0v_gg_,.___SColumn_85a0v_gg_._fixed_left_85a0v_gg_._shadowVertical_start_85a0v_gg_._use_primary_85a0v_gg_,.___SGroup_85a0v_gg_._fixed_left_85a0v_gg_._shadowVertical_median_85a0v_gg_._use_primary_85a0v_gg_,.___SGroup_85a0v_gg_._fixed_left_85a0v_gg_._shadowVertical_start_85a0v_gg_._use_primary_85a0v_gg_{padding-right:calc(var(--intergalactic-spacing-3x, 12px) + 5px)}.___SColumn_85a0v_gg_._fixed_left_85a0v_gg_._shadowVertical_median_85a0v_gg_._use_secondary_85a0v_gg_,.___SColumn_85a0v_gg_._fixed_left_85a0v_gg_._shadowVertical_start_85a0v_gg_._use_secondary_85a0v_gg_,.___SGroup_85a0v_gg_._fixed_left_85a0v_gg_._shadowVertical_median_85a0v_gg_._use_secondary_85a0v_gg_,.___SGroup_85a0v_gg_._fixed_left_85a0v_gg_._shadowVertical_start_85a0v_gg_._use_secondary_85a0v_gg_{padding-right:calc(var(--intergalactic-spacing-2x, 8px) + 5px)}.___SColumn_85a0v_gg_._fixed_left_85a0v_gg_._shadowVertical_median_85a0v_gg_:after,.___SColumn_85a0v_gg_._fixed_left_85a0v_gg_._shadowVertical_start_85a0v_gg_:after,.___SGroup_85a0v_gg_._fixed_left_85a0v_gg_._shadowVertical_median_85a0v_gg_:after,.___SGroup_85a0v_gg_._fixed_left_85a0v_gg_._shadowVertical_start_85a0v_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_85a0v_gg_._fixed_right_85a0v_gg_._shadowVertical_end_85a0v_gg_,.___SColumn_85a0v_gg_._fixed_right_85a0v_gg_._shadowVertical_median_85a0v_gg_,.___SGroup_85a0v_gg_._fixed_right_85a0v_gg_._shadowVertical_end_85a0v_gg_,.___SGroup_85a0v_gg_._fixed_right_85a0v_gg_._shadowVertical_median_85a0v_gg_{margin-left:-5px;border-left-color:transparent}.___SColumn_85a0v_gg_._fixed_right_85a0v_gg_._shadowVertical_end_85a0v_gg_._use_primary_85a0v_gg_,.___SColumn_85a0v_gg_._fixed_right_85a0v_gg_._shadowVertical_median_85a0v_gg_._use_primary_85a0v_gg_,.___SGroup_85a0v_gg_._fixed_right_85a0v_gg_._shadowVertical_end_85a0v_gg_._use_primary_85a0v_gg_,.___SGroup_85a0v_gg_._fixed_right_85a0v_gg_._shadowVertical_median_85a0v_gg_._use_primary_85a0v_gg_{padding-left:calc(var(--intergalactic-spacing-3x, 12px) + 5px)}.___SColumn_85a0v_gg_._fixed_right_85a0v_gg_._shadowVertical_end_85a0v_gg_._use_secondary_85a0v_gg_,.___SColumn_85a0v_gg_._fixed_right_85a0v_gg_._shadowVertical_median_85a0v_gg_._use_secondary_85a0v_gg_,.___SGroup_85a0v_gg_._fixed_right_85a0v_gg_._shadowVertical_end_85a0v_gg_._use_secondary_85a0v_gg_,.___SGroup_85a0v_gg_._fixed_right_85a0v_gg_._shadowVertical_median_85a0v_gg_._use_secondary_85a0v_gg_{padding-left:calc(var(--intergalactic-spacing-2x, 8px) + 5px)}.___SColumn_85a0v_gg_._fixed_right_85a0v_gg_._shadowVertical_end_85a0v_gg_:after,.___SColumn_85a0v_gg_._fixed_right_85a0v_gg_._shadowVertical_median_85a0v_gg_:after,.___SGroup_85a0v_gg_._fixed_right_85a0v_gg_._shadowVertical_end_85a0v_gg_:after,.___SGroup_85a0v_gg_._fixed_right_85a0v_gg_._shadowVertical_median_85a0v_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%))}',
21
+ '.___SGroupContainer_2c1p5_gg_,.___SHead_2c1p5_gg_{display:contents}.___SHead_2c1p5_gg_.__isDataEmpty_2c1p5_gg_.__gridTemplateColumns_2c1p5_gg_{display:grid;grid-template-columns:var(--gridTemplateColumns_2c1p5);overflow:auto;scrollbar-width:thin}.___SHead_2c1p5_gg_.__animationDuration_2c1p5_gg_>.___SColumn_2c1p5_gg_{transition:top var(--animationDuration_2c1p5) ease-out}.___SHead_2c1p5_gg_.__sticky_2c1p5_gg_ .___SColumn_2c1p5_gg_,.___SHead_2c1p5_gg_.__sticky_2c1p5_gg_ .___SGroup_2c1p5_gg_{position:sticky;top:0;z-index:18}.___SHead_2c1p5_gg_.__sticky_2c1p5_gg_ .___SGroupContainer_2c1p5_gg_>.___SColumn_2c1p5_gg_{position:sticky;z-index:18}.___SHead_2c1p5_gg_.__compact_2c1p5_gg_ .___SColumn_2c1p5_gg_{padding:var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-2x, 8px)}.___SColumn_2c1p5_gg_,.___SGroup_2c1p5_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_2c1p5_gg_{justify-content:center;text-align:center;background-color:var(--intergalactic-table-th-primary-cell, #f4f5f9)}.___SGroup_2c1p5_gg_._use_primary_2c1p5_gg_{padding:var(--intergalactic-spacing-3x, 12px)}.___SGroup_2c1p5_gg_._use_primary_2c1p5_gg_:has(~.___SColumn_2c1p5_gg_.__visibleSort_2c1p5_gg_){background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SGroup_2c1p5_gg_._use_secondary_2c1p5_gg_{padding:var(--intergalactic-spacing-2x, 8px)}.___SColumn_2c1p5_gg_._borders_both_2c1p5_gg_,.___SColumn_2c1p5_gg_._borders_left_2c1p5_gg_,.___SGroup_2c1p5_gg_._borders_both_2c1p5_gg_,.___SGroup_2c1p5_gg_._borders_left_2c1p5_gg_{border-left:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_2c1p5_gg_._borders_both_2c1p5_gg_,.___SColumn_2c1p5_gg_._borders_right_2c1p5_gg_,.___SGroup_2c1p5_gg_._borders_both_2c1p5_gg_,.___SGroup_2c1p5_gg_._borders_right_2c1p5_gg_{border-right:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColumn_2c1p5_gg_._use_primary_2c1p5_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_2c1p5_gg_._use_primary_2c1p5_gg_ .___SSortWrapper_2c1p5_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-primary-cell-hover, #e0e1e9) 67.5%,rgba(224,225,233,0) 105%)}.___SColumn_2c1p5_gg_._use_primary_2c1p5_gg_.__visibleSort_2c1p5_gg_{background-color:var(--intergalactic-table-th-primary-cell-hover, #e0e1e9)}.___SColumn_2c1p5_gg_._use_primary_2c1p5_gg_.__visibleSort_2c1p5_gg_ .___SSortWrapper_2c1p5_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_2c1p5_gg_._use_primary_2c1p5_gg_.__visibleSort_2c1p5_gg_ .___SSortButton_2c1p5_gg_,.___SColumn_2c1p5_gg_._use_primary_2c1p5_gg_.__visibleSort_2c1p5_gg_ .___SSortWrapper_2c1p5_gg_::before,.___SColumn_2c1p5_gg_._use_secondary_2c1p5_gg_.__visibleSort_2c1p5_gg_ .___SSortWrapper_2c1p5_gg_::before{display:flex;opacity:1}.___SColumn_2c1p5_gg_._use_primary_2c1p5_gg_._justifyContent_right_2c1p5_gg_ .___SSortWrapper_2c1p5_gg_{position:absolute}.___SColumn_2c1p5_gg_._use_primary_2c1p5_gg_._justifyContent_right_2c1p5_gg_.__changeSortSize_2c1p5_gg_.__isSorted_2c1p5_gg_ .___SSortWrapper_2c1p5_gg_,.___SColumn_2c1p5_gg_._use_secondary_2c1p5_gg_._justifyContent_right_2c1p5_gg_.__changeSortSize_2c1p5_gg_.__isSorted_2c1p5_gg_ .___SSortWrapper_2c1p5_gg_{position:relative}.___SColumn_2c1p5_gg_._use_secondary_2c1p5_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_2c1p5_gg_._use_secondary_2c1p5_gg_ .___SSortWrapper_2c1p5_gg_::before{background:linear-gradient(270deg,var(--intergalactic-table-th-secondary-cell, #ffffff) 67.5%,rgba(255,255,255,0) 105%)}.___SColumn_2c1p5_gg_._use_secondary_2c1p5_gg_.__visibleSort_2c1p5_gg_ .___SSortWrapper_2c1p5_gg_{flex-basis:calc(var(--intergalactic-spacing-1x, 4px) + 16px);opacity:1}.___SColumn_2c1p5_gg_._use_secondary_2c1p5_gg_.__visibleSort_2c1p5_gg_ .___SSortButton_2c1p5_gg_{display:flex;opacity:1}.___SColumn_2c1p5_gg_._use_secondary_2c1p5_gg_._justifyContent_right_2c1p5_gg_ .___SSortWrapper_2c1p5_gg_{position:absolute}.___SColumn_2c1p5_gg_.__gridArea_2c1p5_gg_,.___SGroupTitle_2c1p5_gg_.__gridArea_2c1p5_gg_,.___SGroup_2c1p5_gg_.__gridArea_2c1p5_gg_{grid-area:var(--gridArea_2c1p5)}.___SHead_2c1p5_gg_ .___SColumn_2c1p5_gg_.__fixed_2c1p5_gg_,.___SHead_2c1p5_gg_ .___SGroup_2c1p5_gg_.__fixed_2c1p5_gg_,.___SHead_2c1p5_gg_.__sticky_2c1p5_gg_ .___SColumn_2c1p5_gg_.__fixed_2c1p5_gg_{position:sticky;z-index:19}@media (hover:hover){.___SColumn_2c1p5_gg_.__sortable_2c1p5_gg_:hover{cursor:pointer}}.___SSortWrapper_2c1p5_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_2c1p5_gg_,.___SSortWrapper_2c1p5_gg_:before{display:none;position:absolute;right:0;opacity:0;transition:opacity .3s ease}.___SSortWrapper_2c1p5_gg_:before{content:"";top:0;width:20px;height:100%}.___SSortButton_2c1p5_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_2c1p5_gg_._sideIndents_wide_2c1p5_gg_ .___SColumn_2c1p5_gg_:first-child{padding-left:var(--intergalactic-spacing-5x, 20px)}.___SHead_2c1p5_gg_._sideIndents_wide_2c1p5_gg_ .___SColumn_2c1p5_gg_:last-child{padding-right:var(--intergalactic-spacing-5x, 20px)}.___SHeadCheckboxCol_2c1p5_gg_{cursor:pointer}.___SColumn_2c1p5_gg_.__fixed_2c1p5_gg_.__shadowVertical_2c1p5_gg_:after,.___SGroup_2c1p5_gg_.__fixed_2c1p5_gg_.__shadowVertical_2c1p5_gg_:after{content:"";position:absolute;pointer-events:none;display:none;top:0;width:5px;height:100%;z-index:5}.___SColumn_2c1p5_gg_._fixed_left_2c1p5_gg_._shadowVertical_median_2c1p5_gg_,.___SColumn_2c1p5_gg_._fixed_left_2c1p5_gg_._shadowVertical_start_2c1p5_gg_,.___SGroup_2c1p5_gg_._fixed_left_2c1p5_gg_._shadowVertical_median_2c1p5_gg_,.___SGroup_2c1p5_gg_._fixed_left_2c1p5_gg_._shadowVertical_start_2c1p5_gg_{margin-right:-5px;border-right-color:transparent}.___SColumn_2c1p5_gg_._fixed_left_2c1p5_gg_._shadowVertical_median_2c1p5_gg_._use_primary_2c1p5_gg_,.___SColumn_2c1p5_gg_._fixed_left_2c1p5_gg_._shadowVertical_start_2c1p5_gg_._use_primary_2c1p5_gg_,.___SGroup_2c1p5_gg_._fixed_left_2c1p5_gg_._shadowVertical_median_2c1p5_gg_._use_primary_2c1p5_gg_,.___SGroup_2c1p5_gg_._fixed_left_2c1p5_gg_._shadowVertical_start_2c1p5_gg_._use_primary_2c1p5_gg_{padding-right:calc(var(--intergalactic-spacing-3x, 12px) + 5px)}.___SColumn_2c1p5_gg_._fixed_left_2c1p5_gg_._shadowVertical_median_2c1p5_gg_._use_secondary_2c1p5_gg_,.___SColumn_2c1p5_gg_._fixed_left_2c1p5_gg_._shadowVertical_start_2c1p5_gg_._use_secondary_2c1p5_gg_,.___SGroup_2c1p5_gg_._fixed_left_2c1p5_gg_._shadowVertical_median_2c1p5_gg_._use_secondary_2c1p5_gg_,.___SGroup_2c1p5_gg_._fixed_left_2c1p5_gg_._shadowVertical_start_2c1p5_gg_._use_secondary_2c1p5_gg_{padding-right:calc(var(--intergalactic-spacing-2x, 8px) + 5px)}.___SColumn_2c1p5_gg_._fixed_left_2c1p5_gg_._shadowVertical_median_2c1p5_gg_:after,.___SColumn_2c1p5_gg_._fixed_left_2c1p5_gg_._shadowVertical_start_2c1p5_gg_:after,.___SGroup_2c1p5_gg_._fixed_left_2c1p5_gg_._shadowVertical_median_2c1p5_gg_:after,.___SGroup_2c1p5_gg_._fixed_left_2c1p5_gg_._shadowVertical_start_2c1p5_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_2c1p5_gg_._fixed_right_2c1p5_gg_._shadowVertical_end_2c1p5_gg_,.___SColumn_2c1p5_gg_._fixed_right_2c1p5_gg_._shadowVertical_median_2c1p5_gg_,.___SGroup_2c1p5_gg_._fixed_right_2c1p5_gg_._shadowVertical_end_2c1p5_gg_,.___SGroup_2c1p5_gg_._fixed_right_2c1p5_gg_._shadowVertical_median_2c1p5_gg_{margin-left:-5px;border-left-color:transparent}.___SColumn_2c1p5_gg_._fixed_right_2c1p5_gg_._shadowVertical_end_2c1p5_gg_._use_primary_2c1p5_gg_,.___SColumn_2c1p5_gg_._fixed_right_2c1p5_gg_._shadowVertical_median_2c1p5_gg_._use_primary_2c1p5_gg_,.___SGroup_2c1p5_gg_._fixed_right_2c1p5_gg_._shadowVertical_end_2c1p5_gg_._use_primary_2c1p5_gg_,.___SGroup_2c1p5_gg_._fixed_right_2c1p5_gg_._shadowVertical_median_2c1p5_gg_._use_primary_2c1p5_gg_{padding-left:calc(var(--intergalactic-spacing-3x, 12px) + 5px)}.___SColumn_2c1p5_gg_._fixed_right_2c1p5_gg_._shadowVertical_end_2c1p5_gg_._use_secondary_2c1p5_gg_,.___SColumn_2c1p5_gg_._fixed_right_2c1p5_gg_._shadowVertical_median_2c1p5_gg_._use_secondary_2c1p5_gg_,.___SGroup_2c1p5_gg_._fixed_right_2c1p5_gg_._shadowVertical_end_2c1p5_gg_._use_secondary_2c1p5_gg_,.___SGroup_2c1p5_gg_._fixed_right_2c1p5_gg_._shadowVertical_median_2c1p5_gg_._use_secondary_2c1p5_gg_{padding-left:calc(var(--intergalactic-spacing-2x, 8px) + 5px)}.___SColumn_2c1p5_gg_._fixed_right_2c1p5_gg_._shadowVertical_end_2c1p5_gg_:after,.___SColumn_2c1p5_gg_._fixed_right_2c1p5_gg_._shadowVertical_median_2c1p5_gg_:after,.___SGroup_2c1p5_gg_._fixed_right_2c1p5_gg_._shadowVertical_end_2c1p5_gg_:after,.___SGroup_2c1p5_gg_._fixed_right_2c1p5_gg_._shadowVertical_median_2c1p5_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
22
  /*__inner_css_end__*/
23
- "85a0v_gg_"
23
+ "2c1p5_gg_"
24
24
  ), /*__reshadow_css_end__*/
25
25
  {
26
- "__SHead": "___SHead_85a0v_gg_",
27
- "__SGroupContainer": "___SGroupContainer_85a0v_gg_",
28
- "_isDataEmpty": "__isDataEmpty_85a0v_gg_",
29
- "_gridTemplateColumns": "__gridTemplateColumns_85a0v_gg_",
30
- "--gridTemplateColumns": "--gridTemplateColumns_85a0v",
31
- "_animationDuration": "__animationDuration_85a0v_gg_",
32
- "__SColumn": "___SColumn_85a0v_gg_",
33
- "--animationDuration": "--animationDuration_85a0v",
34
- "_sticky": "__sticky_85a0v_gg_",
35
- "__SGroup": "___SGroup_85a0v_gg_",
36
- "_compact": "__compact_85a0v_gg_",
37
- "_use_secondary": "_use_secondary_85a0v_gg_",
38
- "_borders_both": "_borders_both_85a0v_gg_",
39
- "_borders_left": "_borders_left_85a0v_gg_",
40
- "_borders_right": "_borders_right_85a0v_gg_",
41
- "_gridArea": "__gridArea_85a0v_gg_",
42
- "__SGroupTitle": "___SGroupTitle_85a0v_gg_",
43
- "--gridArea": "--gridArea_85a0v",
44
- "_fixed": "__fixed_85a0v_gg_",
45
- "_sortable": "__sortable_85a0v_gg_",
46
- "__SSortWrapper": "___SSortWrapper_85a0v_gg_",
47
- "__SSortButton": "___SSortButton_85a0v_gg_",
48
- "__SHeadCheckboxCol": "___SHeadCheckboxCol_85a0v_gg_",
49
- "_use_primary": "_use_primary_85a0v_gg_",
50
- "_visibleSort": "__visibleSort_85a0v_gg_",
51
- "_justifyContent_right": "_justifyContent_right_85a0v_gg_",
52
- "_changeSortSize": "__changeSortSize_85a0v_gg_",
53
- "_isSorted": "__isSorted_85a0v_gg_",
54
- "_sideIndents_wide": "_sideIndents_wide_85a0v_gg_",
55
- "_shadowVertical": "__shadowVertical_85a0v_gg_",
56
- "_fixed_left": "_fixed_left_85a0v_gg_",
57
- "_shadowVertical_median": "_shadowVertical_median_85a0v_gg_",
58
- "_shadowVertical_start": "_shadowVertical_start_85a0v_gg_",
59
- "_fixed_right": "_fixed_right_85a0v_gg_",
60
- "_shadowVertical_end": "_shadowVertical_end_85a0v_gg_"
26
+ "__SHead": "___SHead_2c1p5_gg_",
27
+ "__SGroupContainer": "___SGroupContainer_2c1p5_gg_",
28
+ "_isDataEmpty": "__isDataEmpty_2c1p5_gg_",
29
+ "_gridTemplateColumns": "__gridTemplateColumns_2c1p5_gg_",
30
+ "--gridTemplateColumns": "--gridTemplateColumns_2c1p5",
31
+ "_animationDuration": "__animationDuration_2c1p5_gg_",
32
+ "__SColumn": "___SColumn_2c1p5_gg_",
33
+ "--animationDuration": "--animationDuration_2c1p5",
34
+ "_sticky": "__sticky_2c1p5_gg_",
35
+ "__SGroup": "___SGroup_2c1p5_gg_",
36
+ "_compact": "__compact_2c1p5_gg_",
37
+ "_use_secondary": "_use_secondary_2c1p5_gg_",
38
+ "_borders_both": "_borders_both_2c1p5_gg_",
39
+ "_borders_left": "_borders_left_2c1p5_gg_",
40
+ "_borders_right": "_borders_right_2c1p5_gg_",
41
+ "_gridArea": "__gridArea_2c1p5_gg_",
42
+ "__SGroupTitle": "___SGroupTitle_2c1p5_gg_",
43
+ "--gridArea": "--gridArea_2c1p5",
44
+ "_fixed": "__fixed_2c1p5_gg_",
45
+ "_sortable": "__sortable_2c1p5_gg_",
46
+ "__SSortWrapper": "___SSortWrapper_2c1p5_gg_",
47
+ "__SSortButton": "___SSortButton_2c1p5_gg_",
48
+ "__SHeadCheckboxCol": "___SHeadCheckboxCol_2c1p5_gg_",
49
+ "_use_primary": "_use_primary_2c1p5_gg_",
50
+ "_visibleSort": "__visibleSort_2c1p5_gg_",
51
+ "_justifyContent_right": "_justifyContent_right_2c1p5_gg_",
52
+ "_changeSortSize": "__changeSortSize_2c1p5_gg_",
53
+ "_isSorted": "__isSorted_2c1p5_gg_",
54
+ "_sideIndents_wide": "_sideIndents_wide_2c1p5_gg_",
55
+ "_shadowVertical": "__shadowVertical_2c1p5_gg_",
56
+ "_fixed_left": "_fixed_left_2c1p5_gg_",
57
+ "_shadowVertical_median": "_shadowVertical_median_2c1p5_gg_",
58
+ "_shadowVertical_start": "_shadowVertical_start_2c1p5_gg_",
59
+ "_fixed_right": "_fixed_right_2c1p5_gg_",
60
+ "_shadowVertical_end": "_shadowVertical_end_2c1p5_gg_"
61
61
  })
62
62
  );
63
63
  var HeadRoot = /* @__PURE__ */ (function(_Component) {
@@ -10,7 +10,9 @@ function handleFocusCell(lockedCell, target, currentTarget) {
10
10
  return getFocusableIn(node);
11
11
  });
12
12
  if (focusableChildren.length === 1) {
13
- focusableChildren[0].focus();
13
+ focusableChildren[0].focus({
14
+ focusVisible: true
15
+ });
14
16
  focusableChildren[0].scrollIntoView({
15
17
  behavior: "smooth",
16
18
  block: "center",
@@ -30,7 +32,9 @@ function handleKeydownFocusCell(lockedCell, e) {
30
32
  if (lockedCell[1]) {
31
33
  if (e.key === "Escape") {
32
34
  var _lockedCell$;
33
- (_lockedCell$ = lockedCell[0]) === null || _lockedCell$ === void 0 || _lockedCell$.focus();
35
+ (_lockedCell$ = lockedCell[0]) === null || _lockedCell$ === void 0 || _lockedCell$.focus({
36
+ focusVisible: true
37
+ });
34
38
  lockedCell[1] = false;
35
39
  }
36
40
  if (e.key.startsWith("Arrow")) {
@@ -40,11 +44,15 @@ function handleKeydownFocusCell(lockedCell, e) {
40
44
  if (e.key === "Tab") {
41
45
  if (e.target === focusableChildren[0] && e.shiftKey) {
42
46
  var _focusableChildren;
43
- (_focusableChildren = focusableChildren[focusableChildren.length - 1]) === null || _focusableChildren === void 0 || _focusableChildren.focus();
47
+ (_focusableChildren = focusableChildren[focusableChildren.length - 1]) === null || _focusableChildren === void 0 || _focusableChildren.focus({
48
+ focusVisible: true
49
+ });
44
50
  e.preventDefault();
45
51
  } else if (e.target === focusableChildren[focusableChildren.length - 1] && !e.shiftKey) {
46
52
  var _focusableChildren$;
47
- (_focusableChildren$ = focusableChildren[0]) === null || _focusableChildren$ === void 0 || _focusableChildren$.focus();
53
+ (_focusableChildren$ = focusableChildren[0]) === null || _focusableChildren$ === void 0 || _focusableChildren$.focus({
54
+ focusVisible: true
55
+ });
48
56
  e.preventDefault();
49
57
  }
50
58
  e.stopPropagation();
@@ -54,7 +62,9 @@ function handleKeydownFocusCell(lockedCell, e) {
54
62
  e.preventDefault();
55
63
  e.stopPropagation();
56
64
  lockedCell[1] = true;
57
- (_focusableChildren$2 = focusableChildren[0]) === null || _focusableChildren$2 === void 0 || _focusableChildren$2.focus();
65
+ (_focusableChildren$2 = focusableChildren[0]) === null || _focusableChildren$2 === void 0 || _focusableChildren$2.focus({
66
+ focusVisible: true
67
+ });
58
68
  }
59
69
  }
60
70
  }
@@ -0,0 +1,39 @@
1
+ import React from 'react';
2
+ import type { CellRenderProps } from '../Body/Body.types';
3
+ import type { DTRow, DTRows } from '../Body/Row.types';
4
+ import type { DataTableData, DataTableProps, DataRowItem, DTUse } from '../DataTable/DataTable.types';
5
+ import type { DTColumn } from '../Head/Column.types';
6
+ type AccordionRowsProps<Data extends DataTableData, UniqKeyType> = {
7
+ accordionId: string;
8
+ expanded: boolean;
9
+ expandedForAnimation: boolean;
10
+ tableRef: React.RefObject<HTMLDivElement>;
11
+ use: DTUse;
12
+ columns: DTColumn[];
13
+ row: DTRow<UniqKeyType> | DTRow<UniqKeyType>[];
14
+ rows: DTRows<UniqKeyType>;
15
+ flatRows: DTRow<UniqKeyType>[];
16
+ rowIndex: number;
17
+ gridRowIndex: number;
18
+ accordionDuration: number | [number, number];
19
+ accordionAnimationRows: number;
20
+ sideIndents: 'wide' | undefined;
21
+ getFixedStyle: (cell: Pick<DTColumn, 'name' | 'fixed'>) => [side: 'left' | 'right', style: string | number] | [side: undefined, style: undefined];
22
+ renderCell: ((props: CellRenderProps<Data[number], UniqKeyType>) => React.ReactNode | Record<string, any>) | undefined;
23
+ rawData: DataRowItem[];
24
+ shadowVertical: '' | 'end' | 'start' | 'median' | undefined;
25
+ variant: DataTableProps<any, any, any>['variant'];
26
+ limit: DataTableProps<any, any, any>['limit'];
27
+ } & {
28
+ 'aria-level': number;
29
+ };
30
+ type State = {
31
+ maxHeight: number;
32
+ };
33
+ export declare class AccordionRows<Data extends DataTableData, UniqKeyType> extends React.PureComponent<AccordionRowsProps<Data, UniqKeyType>, State> {
34
+ accordionRowsRef: React.RefObject<HTMLDivElement>;
35
+ state: State;
36
+ componentDidUpdate(prevProps: Readonly<AccordionRowsProps<Data, UniqKeyType>>): void;
37
+ render(): React.ReactNode;
38
+ }
39
+ export {};
@@ -1,7 +1,7 @@
1
1
  import type { Intergalactic } from '@semcore/core';
2
2
  import type * as React from 'react';
3
- import type { CellPropsInner, Theme } from './Cell.types';
4
- import type { DTRow } from './Row.types';
3
+ import type { DataTableCellProps, Theme } from './Cell.types';
4
+ import type { DTRow, RowPropsInner } from './Row.types';
5
5
  import type { ACCORDION } from '../DataTable/DataTable';
6
6
  import type { DataRowItem, DTUse, VirtualScroll, DataTableProps, DataTableData } from '../DataTable/DataTable.types';
7
7
  import type { DTColumn } from '../Head/Column.types';
@@ -72,8 +72,8 @@ export type BodyPropsInner<Data extends DataTableData, UniqKeyType> = DataTableB
72
72
  renderEmptyData: () => React.ReactNode;
73
73
  sideIndents?: 'wide';
74
74
  getFixedStyle: (cell: Pick<DTColumn, 'name' | 'fixed'>) => [side: 'left' | 'right', style: string | number] | [side: undefined, style: undefined];
75
- accordionDuration?: DataTableProps<any, any, any>['accordionDuration'];
76
- onCellClick: CellPropsInner<Data, UniqKeyType>['onClick'];
75
+ accordionDuration: number | [number, number];
76
+ onCellClick: DataTableCellProps<Data, UniqKeyType>['onClick'];
77
77
  rawData: DataRowItem[];
78
78
  accordionMode?: DataTableProps<any, any, any>['accordionMode'];
79
79
  shadowVertical?: '' | 'end' | 'start' | 'median';
@@ -81,5 +81,6 @@ export type BodyPropsInner<Data extends DataTableData, UniqKeyType> = DataTableB
81
81
  limit?: DataTableProps<any, any, any>['limit'];
82
82
  variant?: DataTableProps<any, any, any>['variant'];
83
83
  totalRows?: number;
84
+ accordionAnimationRows: RowPropsInner<Data, UniqKeyType>['accordionAnimationRows'];
84
85
  };
85
86
  export type DataTableBodyType = (<Data extends DataTableData, UniqKeyType, Tag extends Intergalactic.Tag = 'div'>(props: Intergalactic.InternalTypings.ComponentProps<Tag, 'div', DataTableBodyProps<Data, UniqKeyType>>) => Intergalactic.InternalTypings.ComponentRenderingResults) & Intergalactic.InternalTypings.ComponentAdditive<'div', 'div', DataTableBodyProps<any, any>>;
@@ -1,11 +1,11 @@
1
1
  import type { Intergalactic } from '@semcore/core';
2
- import type * as React from 'react';
2
+ import type { CSSProperties, HTMLAttributes } from 'react';
3
3
  import type { BodyPropsInner } from './Body.types';
4
4
  import type { DTRow, DTRows } from './Row.types';
5
5
  import type { DataTableData, DTUse } from '../DataTable/DataTable.types';
6
6
  import type { DTColumn } from '../Head/Column.types';
7
7
  export type Theme = 'muted' | 'info' | 'success' | 'warning' | 'danger';
8
- export type DataTableCellProps<UniqKeyType> = {
8
+ export type DataTableCellProps<Data extends DataTableData, UniqKeyType> = Intergalactic.InternalTypings.EfficientOmit<HTMLAttributes<HTMLDivElement>, 'onClick'> & {
9
9
  id: string;
10
10
  accordionId: string;
11
11
  row: DTRow<UniqKeyType>;
@@ -16,26 +16,21 @@ export type DataTableCellProps<UniqKeyType> = {
16
16
  children?: React.ReactNode;
17
17
  expanded?: boolean;
18
18
  withAccordion?: boolean;
19
- isAccordionRow?: boolean;
20
- animationExpand?: boolean;
21
19
  accordionRowIndex?: number;
22
20
  rows: DTRows<UniqKeyType>;
23
- };
24
- export type CellPropsInner<Data extends DataTableData, UniqKeyType> = {
25
21
  use: DTUse;
22
+ style?: CSSProperties;
26
23
  virtualScroll: boolean;
27
24
  tableRef: React.RefObject<HTMLDivElement>;
28
25
  accordionDuration?: number | [number, number];
29
- onClick: (e: React.SyntheticEvent, opt: {
26
+ onClick: (e: React.SyntheticEvent<HTMLElement>, opt: {
30
27
  rowIndex: number;
31
28
  colIndex: number;
32
29
  row?: DTRow<UniqKeyType>;
33
30
  }) => void;
34
31
  flatRows: DTRow<UniqKeyType>[];
35
32
  shadowVertical?: BodyPropsInner<Data, UniqKeyType>;
36
- lastLeftFixedIndex: number;
37
- firstRightFixedIndex: number;
38
33
  withoutBorder?: boolean;
39
- calculatedHeight: number;
34
+ } & {
35
+ 'data-aria-level'?: number;
40
36
  };
41
- export type DataTableCellType = (<UniqKeyType, Tag extends Intergalactic.Tag = 'div'>(props: Intergalactic.InternalTypings.ComponentProps<Tag, 'div', DataTableCellProps<UniqKeyType>>) => Intergalactic.InternalTypings.ComponentRenderingResults) & Intergalactic.InternalTypings.ComponentAdditive<'div', 'div', DataTableCellProps<any>>;
@@ -1,15 +1,15 @@
1
1
  import { Component } from '@semcore/core';
2
2
  import * as React from 'react';
3
- import type { DataTableCellProps, DataTableCellType } from './Cell.types';
3
+ import type { DataTableCellProps } from './Cell.types';
4
4
  import { MergedColumnsCell, MergedRowsCell } from './MergedCells';
5
- import type { DataTableRowProps, DataTableRowType, DTRow, RowPropsInner } from './Row.types';
5
+ import type { DataTableRowProps, DataTableRowType, DTRow, DTRows, RowPropsInner } from './Row.types';
6
6
  import type { DataTableData, DTValue } from '../DataTable/DataTable.types';
7
- type State = {
7
+ type State<UniqKeyType> = {
8
8
  expandedForAnimation: boolean;
9
- calculatedHeight: number;
10
- withAnimation: boolean;
9
+ accordionRows?: DTRows<UniqKeyType>;
10
+ accordionComponent?: React.ReactNode;
11
11
  };
12
- export declare class RowRoot<Data extends DataTableData, UniqKeyType> extends Component<DataTableRowProps<Data, UniqKeyType>, {}, State, [], RowPropsInner<Data, UniqKeyType>> {
12
+ export declare class RowRoot<Data extends DataTableData, UniqKeyType> extends Component<DataTableRowProps<Data, UniqKeyType>, {}, State<UniqKeyType>, [], RowPropsInner<Data, UniqKeyType>> {
13
13
  static displayName: string;
14
14
  static style: {
15
15
  [key: string]: string;
@@ -19,8 +19,9 @@ export declare class RowRoot<Data extends DataTableData, UniqKeyType> extends Co
19
19
  };
20
20
  private cellName;
21
21
  private closeAccordionTimeout;
22
+ private openAccordionTimeout;
22
23
  rowElementRef: React.RefObject<HTMLDivElement>;
23
- state: State;
24
+ state: State<UniqKeyType>;
24
25
  constructor(props: DataTableRowProps<Data, UniqKeyType>);
25
26
  componentDidMount(): void;
26
27
  componentDidUpdate(prevProps: DataTableRowProps<Data, UniqKeyType>): void;
@@ -36,13 +37,12 @@ export declare class RowRoot<Data extends DataTableData, UniqKeyType> extends Co
36
37
  row: DTRow<UniqKeyType>;
37
38
  rowIndex: number;
38
39
  }) => void;
39
- getCellProps(props: DataTableCellProps<UniqKeyType>): Record<string, any>;
40
+ getCellProps(props: DataTableCellProps<Data, UniqKeyType>): Record<string, any>;
40
41
  get isRowHidden(): true | undefined;
41
42
  render(): React.ReactNode;
42
43
  private isReactNode;
43
- private calculateRowHeight;
44
44
  }
45
45
  export declare const Row: DataTableRowType & {
46
- Cell: DataTableCellType;
46
+ Cell: any;
47
47
  };
48
48
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { Intergalactic } from '@semcore/core';
2
2
  import type * as React from 'react';
3
3
  import type { CellRenderProps } from './Body.types';
4
- import type { CellPropsInner, DataTableCellProps } from './Cell.types';
4
+ import type { DataTableCellProps } from './Cell.types';
5
5
  import type { MergedColumnsCell, MergedRowsCell } from './MergedCells';
6
6
  import type { RowRoot } from './Row';
7
7
  import type { ACCORDION, GRID_ROW_INDEX, IS_EMPTY_DATA_ROW, ROW_GROUP, ROW_INDEX, UNIQ_ROW_KEY } from '../DataTable/DataTable';
@@ -20,9 +20,8 @@ export type DTRows<UniqKeyType> = Array<DTRow<UniqKeyType> | DTRow<UniqKeyType>[
20
20
  export type DataTableRowProps<Data extends DataTableData, UniqKeyType> = {
21
21
  row: DTRow<UniqKeyType>;
22
22
  mergedRow?: boolean;
23
- isAccordionRow?: DataTableCellProps<UniqKeyType>['isAccordionRow'];
24
- animationExpand?: DataTableCellProps<UniqKeyType>['animationExpand'];
25
- accordionRowIndex?: DataTableCellProps<UniqKeyType>['accordionRowIndex'];
23
+ isAccordionRow?: boolean;
24
+ accordionRowIndex?: DataTableCellProps<Data, UniqKeyType>['accordionRowIndex'];
26
25
  isNonInteractive?: boolean;
27
26
  componentRef?: (component: RowRoot<Data, UniqKeyType> | null) => void;
28
27
  accordionIndex?: number;
@@ -45,7 +44,8 @@ export type RowPropsInner<Data extends DataTableData, UniqKeyType> = JSX.Intrins
45
44
  selectedRows?: UniqKeyType[];
46
45
  onSelectRow?: (isSelect: boolean, selectedRowIndex: number, row: DTRow<UniqKeyType>, event?: React.SyntheticEvent<HTMLElement>) => void;
47
46
  inert?: '';
48
- accordionDuration?: number | [number, number];
47
+ accordionDuration: number | [number, number];
48
+ accordionAnimationRows: number;
49
49
  onBackFromAccordion: (colName: string) => void;
50
50
  scrollAreaRef: React.RefObject<HTMLDivElement>;
51
51
  uid: string;
@@ -55,7 +55,7 @@ export type RowPropsInner<Data extends DataTableData, UniqKeyType> = JSX.Intrins
55
55
  getI18nText: (key: string) => string;
56
56
  virtualScroll?: VirtualScroll;
57
57
  tableRef: React.RefObject<HTMLDivElement>;
58
- onCellClick: CellPropsInner<Data, UniqKeyType>['onClick'];
58
+ onCellClick: DataTableCellProps<Data, UniqKeyType>['onClick'];
59
59
  rawData: DataRowItem[];
60
60
  shadowVertical?: '' | 'end' | 'start' | 'median';
61
61
  expandedRows: Set<UniqKeyType>;
@@ -64,9 +64,9 @@ export type RowPropsInner<Data extends DataTableData, UniqKeyType> = JSX.Intrins
64
64
  setRowHeight: (index: number, row: DTRow<UniqKeyType>) => void;
65
65
  componentsMap: Map<UniqKeyType, RowRoot<Data, UniqKeyType>>;
66
66
  calculateAriaRowIndex: () => void;
67
- variant?: DataTableProps<any, any, any>['variant'];
68
- limit?: DataTableProps<any, any, any>['limit'];
67
+ variant: DataTableProps<any, any, any>['variant'];
68
+ limit: DataTableProps<any, any, any>['limit'];
69
69
  totalRows?: number;
70
70
  hasGroups: boolean;
71
71
  };
72
- export type DataTableRowType = (<Data extends DataTableData, UniqKeyType, Tag extends Intergalactic.Tag = 'div'>(props: Intergalactic.InternalTypings.ComponentProps<Tag, 'div', DataTableRowProps<Data, UniqKeyType>>) => Intergalactic.InternalTypings.ComponentRenderingResults) & Intergalactic.InternalTypings.ComponentAdditive<'div', 'div', DataTableRowProps<any, any>>;
72
+ export type DataTableRowType = (<Data extends DataTableData, UniqKeyType, Tag extends Intergalactic.Tag = 'div'>(props: Intergalactic.InternalTypings.ComponentProps<Tag, 'div', DataTableRowProps<Data, UniqKeyType> & Partial<RowPropsInner<Data, UniqKeyType>>>) => Intergalactic.InternalTypings.ComponentRenderingResults) & Intergalactic.InternalTypings.ComponentAdditive<'div', 'div', DataTableRowProps<any, any>>;
@@ -4,7 +4,7 @@ import type Tooltip from '@semcore/tooltip';
4
4
  import type * as React from 'react';
5
5
  import type { ACCORDION, ROW_GROUP, UNIQ_ROW_KEY } from './DataTable';
6
6
  import type { DataTableBodyProps } from '../Body/Body.types';
7
- import type { DTRow } from '../Body/Row.types';
7
+ import type { DTRow, RowPropsInner } from '../Body/Row.types';
8
8
  import type { DataTableColumnProps } from '../Head/Column.types';
9
9
  import type { DataTableHeadProps } from '../Head/Head.types';
10
10
  /**
@@ -107,6 +107,11 @@ export type DataTableProps<Data extends DataTableData, UniqKey extends keyof Dat
107
107
  * @default 200
108
108
  */
109
109
  accordionDuration?: number | [number, number];
110
+ /**
111
+ * List of animated rows in accordion.
112
+ * @default 20
113
+ */
114
+ accordionAnimationRows?: RowPropsInner<Data, UniqKeyType>['accordionAnimationRows'];
110
115
  /**
111
116
  * Whether multiple accordion items can be open at a time, or only one.
112
117
  * @default 'independent'
@@ -1,6 +1,6 @@
1
1
  import type { Property } from 'csstype';
2
2
  import type { BodyPropsInner } from '../Body/Body.types';
3
- import type { CellPropsInner } from '../Body/Cell.types';
3
+ import type { DataTableCellProps } from '../Body/Cell.types';
4
4
  import type { ColumnGroupConfig, ColumnItemConfig, DataTableData, DataTableProps, DTUse, SortDirection } from '../DataTable/DataTable.types';
5
5
  export type CommonColumnType = {
6
6
  /**
@@ -74,7 +74,7 @@ export type ColumnPropsInner<Data extends DataTableData, UniqKey extends keyof D
74
74
  gridTemplateColumns: string[];
75
75
  gridTemplateAreas: string[];
76
76
  sticky: boolean;
77
- onClick: CellPropsInner<Data, UniqKeyType>['onClick'];
77
+ onClick: DataTableCellProps<Data, UniqKeyType>['onClick'];
78
78
  shadowVertical?: BodyPropsInner<Data, UniqKeyType>['shadowVertical'];
79
79
  scrollDirection?: 'horizontal' | 'vertical' | 'both';
80
80
  };
@@ -1,6 +1,6 @@
1
1
  import type { ColumnPropsInner, DTColumn } from './Column.types';
2
2
  import type { BodyPropsInner } from '../Body/Body.types';
3
- import type { CellPropsInner } from '../Body/Cell.types';
3
+ import type { DataTableCellProps } from '../Body/Cell.types';
4
4
  import type { DTRow } from '../Body/Row.types';
5
5
  import type { DataTableData, DataTableProps, DTUse } from '../DataTable/DataTable.types';
6
6
  export type DataTableHeadProps = {
@@ -44,7 +44,7 @@ export type HeadPropsInner<Data extends DataTableData, UniqKey extends keyof Dat
44
44
  onChangeSelectAll?: (value: boolean, event?: React.SyntheticEvent<HTMLElement>) => void;
45
45
  flatRows: DTRow<UniqKeyType>[];
46
46
  getFixedStyle: (cell: Pick<DTColumn, 'name' | 'fixed'>) => [side: 'left' | 'right', style: string | number] | [side: undefined, style: undefined];
47
- onCellClick: CellPropsInner<Data, UniqKeyType>['onClick'];
47
+ onCellClick: DataTableCellProps<Data, UniqKeyType>['onClick'];
48
48
  shadowVertical?: BodyPropsInner<Data, UniqKeyType>['shadowVertical'];
49
49
  scrollDirection?: ColumnPropsInner<Data, UniqKey, UniqKeyType>['scrollDirection'];
50
50
  isDataEmpty: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/data-table",
3
3
  "description": "Semrush DataTable Component",
4
- "version": "16.4.0",
4
+ "version": "16.4.2-prerelease.3",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,34 +14,34 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/icon": "16.5.1",
18
- "@semcore/button": "16.0.10",
19
- "@semcore/checkbox": "16.2.0",
20
- "@semcore/flex-box": "16.0.10",
21
- "@semcore/scroll-area": "16.0.10",
22
- "@semcore/spin": "16.0.10",
23
- "@semcore/tooltip": "16.0.10",
24
- "@semcore/widget-empty": "16.0.10"
17
+ "@semcore/icon": "16.7.2-prerelease.3",
18
+ "@semcore/button": "16.0.11-prerelease.3",
19
+ "@semcore/checkbox": "16.2.1-prerelease.3",
20
+ "@semcore/flex-box": "16.0.11-prerelease.3",
21
+ "@semcore/scroll-area": "16.0.11-prerelease.3",
22
+ "@semcore/spin": "16.0.11-prerelease.3",
23
+ "@semcore/tooltip": "16.0.11-prerelease.3",
24
+ "@semcore/widget-empty": "16.0.11-prerelease.3"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "18.16.15",
28
28
  "csstype": "3.1.3",
29
29
  "@semcore/testing-utils": "1.0.0",
30
- "@semcore/base-trigger": "16.4.2",
31
- "@semcore/dropdown-menu": "16.1.11",
32
- "@semcore/typography": "16.3.0",
33
- "@semcore/accordion": "16.7.0",
34
- "@semcore/divider": "16.0.10",
35
- "@semcore/portal": "16.0.10",
36
- "@semcore/progress-bar": "16.0.10",
37
- "@semcore/skeleton": "16.0.10",
38
- "@semcore/spin-container": "16.0.10",
39
- "@semcore/tooltip": "16.0.10",
40
- "@semcore/spin": "16.0.10",
41
- "@semcore/base-components": "16.4.0"
30
+ "@semcore/base-trigger": "16.4.3-prerelease.3",
31
+ "@semcore/dropdown-menu": "16.1.12-prerelease.3",
32
+ "@semcore/typography": "16.3.1-prerelease.3",
33
+ "@semcore/divider": "16.0.11-prerelease.3",
34
+ "@semcore/accordion": "16.8.0-prerelease.3",
35
+ "@semcore/portal": "16.0.11-prerelease.3",
36
+ "@semcore/progress-bar": "16.0.11-prerelease.3",
37
+ "@semcore/spin": "16.0.11-prerelease.3",
38
+ "@semcore/spin-container": "16.0.11-prerelease.3",
39
+ "@semcore/skeleton": "16.0.11-prerelease.3",
40
+ "@semcore/tooltip": "16.0.11-prerelease.3",
41
+ "@semcore/base-components": "16.4.1-prerelease.3"
42
42
  },
43
43
  "peerDependencies": {
44
- "@semcore/base-components": "^16.0.0"
44
+ "@semcore/base-components": "^16.4.1-prerelease.3"
45
45
  },
46
46
  "repository": {
47
47
  "type": "git",