Skip to content

Commit a7f0eef

Browse files
committed
Export Facet types
1 parent 96c5284 commit a7f0eef

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/lib/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import type { TableConfig, Columns, Column } from './models/Models';
3232

3333
//Facets
3434
import Facets from './components/Facets/Facets.svelte';
35+
import type { FacetGroup, FacetOption, SelectedFacetGroup } from './models/Models';
3536

3637
// CodeEditor
3738
import CodeEditor from './components/CodeEditor/CodeEditor.svelte';
@@ -108,6 +109,7 @@ export { Table, TableFilter, columnFilter, searchFilter };
108109

109110
// Facets
110111
export { Facets };
112+
export type { FacetGroup, FacetOption, SelectedFacetGroup };
111113

112114
// CodeEditor
113115
export { CodeEditor };

src/routes/components/facets/data/data.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ export const groups: FacetGroup[] = [
6464
{ name: 'Stephen King', displayName: 'Stephen King', count: 10 },
6565
{ name: 'J.K. Rowling', displayName: 'J.K. Rowling', count: 3 },
6666
{ name: 'Agatha Christie', displayName: 'Agatha Christie', count: 4 },
67-
{ name: 'Dan Brown', displayName: 'Dan Brown', count: 7 }
67+
{ name: 'Dan Brown', displayName: 'Dan Brown', count: 7, selected: true },
6868
],
6969
name: 'authors',
70-
displayName: 'Authors'
70+
displayName: 'Authors',
71+
count: 24
7172
}
7273
];

0 commit comments

Comments
 (0)