diff --git a/projects/components/src/public-api.ts b/projects/components/src/public-api.ts index fe7b02858..020e60c5e 100644 --- a/projects/components/src/public-api.ts +++ b/projects/components/src/public-api.ts @@ -442,3 +442,6 @@ export * from './input-pill-list/input-pill-list.module'; // Parsed Filter export * from './filtering/filter/parser/parsed-filter'; + +// String array table cell types +export * from './table/cells/data-renderers/string-array/types'; diff --git a/projects/components/src/table/cells/data-renderers/string-array/string-array-table-cell-renderer.component.test.ts b/projects/components/src/table/cells/data-renderers/string-array/string-array-table-cell-renderer.component.test.ts index 30cef9b1c..78b7974fb 100644 --- a/projects/components/src/table/cells/data-renderers/string-array/string-array-table-cell-renderer.component.test.ts +++ b/projects/components/src/table/cells/data-renderers/string-array/string-array-table-cell-renderer.component.test.ts @@ -3,10 +3,8 @@ import { tableCellColumnProvider, TableCellNoOpParser, XMoreComponent } from '@h import { createComponentFactory } from '@ngneat/spectator/jest'; import { MockComponent } from 'ng-mocks'; import { tableCellDataProvider, tableCellProviders } from '../../test/cell-providers'; -import { - StringArrayTableCellDisplayMode, - StringArrayTableCellRendererComponent, -} from './string-array-table-cell-renderer.component'; +import { StringArrayTableCellRendererComponent } from './string-array-table-cell-renderer.component'; +import { StringArrayTableCellDisplayMode } from './types'; describe('String array table cell renderer component', () => { const buildComponent = createComponentFactory({ diff --git a/projects/components/src/table/cells/data-renderers/string-array/string-array-table-cell-renderer.component.ts b/projects/components/src/table/cells/data-renderers/string-array/string-array-table-cell-renderer.component.ts index 624f90591..30fb66155 100644 --- a/projects/components/src/table/cells/data-renderers/string-array/string-array-table-cell-renderer.component.ts +++ b/projects/components/src/table/cells/data-renderers/string-array/string-array-table-cell-renderer.component.ts @@ -14,6 +14,7 @@ import { TableCellRendererBase } from '../../table-cell-renderer-base'; import { CoreTableCellParserType } from '../../types/core-table-cell-parser-type'; import { CoreTableCellRendererType } from '../../types/core-table-cell-renderer-type'; import { TableCellAlignmentType } from '../../types/table-cell-alignment-type'; +import { StringArrayTableCellDisplayMode } from './types'; @Component({ selector: 'ht-string-array-table-cell-renderer', @@ -69,11 +70,6 @@ export class StringArrayTableCellRendererComponent } } -export const enum StringArrayTableCellDisplayMode { - List = 'list', - CountWithListTooltip = 'countWithListTooltip', -} - interface StringArrayTableCellConfigOptions { viewMode: StringArrayTableCellDisplayMode; } diff --git a/projects/components/src/table/cells/data-renderers/string-array/types.ts b/projects/components/src/table/cells/data-renderers/string-array/types.ts new file mode 100644 index 000000000..8d3428923 --- /dev/null +++ b/projects/components/src/table/cells/data-renderers/string-array/types.ts @@ -0,0 +1,4 @@ +export const enum StringArrayTableCellDisplayMode { + List = 'list', + CountWithListTooltip = 'countWithListTooltip', +}