import { DesignSystem } from '@ni/fast-foundation';
import { TableColumnTextGroupHeaderViewBase } from '../../text-base/group-header-view';
import { template } from '../../text-base/group-header-view/template';
import { styles } from '../../text-base/group-header-view/styles';
/**
 * The group header view for displaying duration fields as text.
 */
export class TableColumnDurationTextGroupHeaderView extends TableColumnTextGroupHeaderViewBase {
    updateText() {
        if (this.columnConfig) {
            this.text = this.columnConfig.formatter.format(this.groupHeaderValue);
        }
        else {
            this.text = '';
        }
    }
}
const tableColumnDurationTextGroupHeaderView = TableColumnDurationTextGroupHeaderView.compose({
    baseName: 'table-column-duration-text-group-header-view',
    template,
    styles
});
DesignSystem.getOrCreate()
    .withPrefix('nimble')
    .register(tableColumnDurationTextGroupHeaderView());
export const tableColumnDurationTextGroupHeaderViewTag = 'nimble-table-column-duration-text-group-header-view';
//# sourceMappingURL=index.js.map