import { DesignSystem } from '@ni/fast-foundation';
import { template } from '../../text-base/cell-view/template';
import { styles } from '../../text-base/cell-view/styles';
import { TableColumnTextCellViewBase } from '../../text-base/cell-view';
/**
 * A cell view for displaying duration fields as text
 */
export class TableColumnDurationTextCellView extends TableColumnTextCellViewBase {
    updateText() {
        this.text = this.columnConfig?.formatter.format(this.cellRecord?.value) ?? '';
    }
}
const durationTextCellView = TableColumnDurationTextCellView.compose({
    baseName: 'table-column-duration-text-cell-view',
    template,
    styles
});
DesignSystem.getOrCreate()
    .withPrefix('nimble')
    .register(durationTextCellView());
export const tableColumnDurationTextCellViewTag = 'nimble-table-column-duration-text-cell-view';
//# sourceMappingURL=index.js.map