File tree 6 files changed +20
-56
lines changed
components/hds/advanced-table
6 files changed +20
-56
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ export { default as HdsAdvancedTableThButtonTooltip } from './components/hds/adv
23
23
export { default as HdsAdvancedTableThSelectable } from './components/hds/advanced-table/th-selectable.ts' ;
24
24
export { default as HdsAdvancedTableThSort } from './components/hds/advanced-table/th-sort.ts' ;
25
25
export { default as HdsAdvancedTableTr } from './components/hds/advanced-table/tr.ts' ;
26
- export { default as HdsAdvancedTableThead } from './components/hds/advanced-table/thead.ts' ;
27
26
export { default as HdsAdvancedTableThButtonExpand } from './components/hds/advanced-table/th-button-expand.ts' ;
28
27
export { default as HdsAdvancedTableExpandableTrGroup } from './components/hds/advanced-table/expandable-tr-group.ts' ;
29
28
export * from './components/hds/advanced-table/types.ts' ;
Original file line number Diff line number Diff line change 21
21
</div >
22
22
23
23
{{! Header }}
24
- <Hds::AdvancedTable::Thead
25
- @hasStickyHeader ={{ @hasStickyHeader }}
26
- @isStickyHeaderPinned ={{ this.isStickyHeaderPinned }}
27
- @isStickyColumnPinned ={{ this.isStickyColumnPinned }}
28
- >
24
+ <div class ={{ this.theadClassNames }} role =" rowgroup" >
29
25
<Hds::AdvancedTable::Tr
30
26
@selectionScope =" col"
31
27
@onClickSortBySelected ={{ if @selectableColumnKey (fn this.setSortBy @selectableColumnKey )}}
64
60
{{ /if }}
65
61
{{ /each }}
66
62
</Hds::AdvancedTable::Tr >
67
- </Hds::AdvancedTable::Thead >
63
+ </div >
68
64
69
65
{{! Body }}
70
66
<div class =" hds-advanced-table__tbody" role =" rowgroup" >
Original file line number Diff line number Diff line change @@ -297,6 +297,24 @@ export default class HdsAdvancedTable extends Component<HdsAdvancedTableSignatur
297
297
return classes . join ( ' ' ) ;
298
298
}
299
299
300
+ get theadClassNames ( ) : string {
301
+ const classes = [ 'hds-advanced-table__thead' ] ;
302
+
303
+ if ( this . args . hasStickyHeader ) {
304
+ classes . push ( 'hds-advanced-table__thead--sticky' ) ;
305
+ }
306
+
307
+ if ( this . isStickyHeaderPinned ) {
308
+ classes . push ( 'hds-advanced-table__thead--is-pinned' ) ;
309
+ }
310
+
311
+ if ( this . isStickyColumnPinned ) {
312
+ classes . push ( 'hds-advanced-table__thead--column-is-pinned' ) ;
313
+ }
314
+
315
+ return classes . join ( ' ' ) ;
316
+ }
317
+
300
318
private _setUpContainer = modifier ( ( element : HTMLDivElement ) => {
301
319
this . _outerElement = element ;
302
320
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import type HdsAdvancedTableThButtonTooltipComponent from './components/hds/adva
16
16
import type HdsAdvancedTableThSortComponent from './components/hds/advanced-table/th-sort' ;
17
17
import type HdsAdvancedTableThSelectableComponent from './components/hds/advanced-table/th-selectable' ;
18
18
import type HdsAdvancedTableTrComponent from './components/hds/advanced-table/tr' ;
19
- import type HdsAdvancedTableThead from './components/hds/advanced-table/thead.ts' ;
20
19
import type HdsAdvancedTableExpandableTrGroupComponent from './components/hds/advanced-table/expandable-tr-group.ts' ;
21
20
import type HdsAlertComponent from './components/hds/alert' ;
22
21
import type HdsAlertDescriptionComponent from './components/hds/alert/description' ;
@@ -256,8 +255,6 @@ export default interface HdsComponentsRegistry {
256
255
'hds/advanced-table/th-selectable' : typeof HdsAdvancedTableThSelectableComponent ;
257
256
'Hds::AdvancedTable::ExpandableTrGroup' : typeof HdsAdvancedTableExpandableTrGroupComponent ;
258
257
'hds/advanced-table/expandable-tr-group' : typeof HdsAdvancedTableExpandableTrGroupComponent ;
259
- 'Hds::AdvancedTable::Thead' : typeof HdsAdvancedTableThead ;
260
- 'hds/advanced-table/thead' : typeof HdsAdvancedTableThead ;
261
258
262
259
// Alert
263
260
'Hds::Alert' : typeof HdsAlertComponent ;
You can’t perform that action at this time.
0 commit comments