diff --git a/packages/grid/all-imports.d.ts b/packages/grid/all-imports.d.ts new file mode 100644 index 0000000000..215d8cea4c --- /dev/null +++ b/packages/grid/all-imports.d.ts @@ -0,0 +1,10 @@ +export * from './vaadin-grid-column-group.js'; +export * from './vaadin-grid-column.js'; +export * from './vaadin-grid-filter.js'; +export * from './vaadin-grid-filter-column.js'; +export * from './vaadin-grid-selection-column.js'; +export * from './vaadin-grid-sorter.js'; +export * from './vaadin-grid-sort-column.js'; +export * from './vaadin-grid-tree-column.js'; +export * from './vaadin-grid-tree-toggle.js'; +export * from './vaadin-grid.js'; diff --git a/packages/grid/all-imports.js b/packages/grid/all-imports.js index a149f9cc94..0be245da53 100644 --- a/packages/grid/all-imports.js +++ b/packages/grid/all-imports.js @@ -1 +1,12 @@ import './theme/lumo/all-imports.js'; + +export * from './vaadin-grid-column-group.js'; +export * from './vaadin-grid-column.js'; +export * from './vaadin-grid-filter.js'; +export * from './vaadin-grid-filter-column.js'; +export * from './vaadin-grid-selection-column.js'; +export * from './vaadin-grid-sorter.js'; +export * from './vaadin-grid-sort-column.js'; +export * from './vaadin-grid-tree-column.js'; +export * from './vaadin-grid-tree-toggle.js'; +export * from './vaadin-grid.js'; diff --git a/packages/grid/package.json b/packages/grid/package.json index b25239aec1..a98fb91103 100644 --- a/packages/grid/package.json +++ b/packages/grid/package.json @@ -19,6 +19,7 @@ "main": "vaadin-grid.js", "module": "vaadin-grid.js", "files": [ + "all-imports.d.ts", "all-imports.js", "src", "theme", diff --git a/packages/grid/test/typings/grid.types.ts b/packages/grid/test/typings/grid.types.ts index 54164e73db..6b063128b3 100644 --- a/packages/grid/test/typings/grid.types.ts +++ b/packages/grid/test/typings/grid.types.ts @@ -1,5 +1,20 @@ import { ElementMixinClass } from '@vaadin/component-base/src/element-mixin.js'; import { ThemableMixinClass } from '@vaadin/vaadin-themable-mixin'; +import { + GridColumnGroup, + GridFilter, + GridFilterColumn, + GridFilterValueChangedEvent, + GridSelectionColumn, + GridSelectionColumnSelectAllChangedEvent, + GridSortColumn, + GridSortColumnDirectionChangedEvent, + GridSorter, + GridSorterDirectionChangedEvent, + GridTreeColumn, + GridTreeToggle, + GridTreeToggleExpandedChangedEvent, +} from '../../all-imports.js'; import { ActiveItemMixinClass } from '../../src/vaadin-grid-active-item-mixin'; import { ArrayDataProviderMixinClass } from '../../src/vaadin-grid-array-data-provider-mixin'; import { ColumnReorderingMixinClass } from '../../src/vaadin-grid-column-reordering-mixin'; @@ -39,14 +54,6 @@ import { GridSorterDefinition, GridSorterDirection, } from '../../vaadin-grid.js'; -import { GridColumnGroup } from '../../vaadin-grid-column-group'; -import { GridFilter, GridFilterValueChangedEvent } from '../../vaadin-grid-filter.js'; -import { GridFilterColumn } from '../../vaadin-grid-filter-column'; -import { GridSelectionColumn, GridSelectionColumnSelectAllChangedEvent } from '../../vaadin-grid-selection-column.js'; -import { GridSortColumn, GridSortColumnDirectionChangedEvent } from '../../vaadin-grid-sort-column.js'; -import { GridSorter, GridSorterDirectionChangedEvent } from '../../vaadin-grid-sorter.js'; -import { GridTreeColumn } from '../../vaadin-grid-tree-column'; -import { GridTreeToggle, GridTreeToggleExpandedChangedEvent } from '../../vaadin-grid-tree-toggle.js'; interface TestGridItem { testProperty: string;