diff --git a/apps/demos/utils/bundle/index.js b/apps/demos/utils/bundle/index.js index 836218aa8ac3..115707345f41 100644 --- a/apps/demos/utils/bundle/index.js +++ b/apps/demos/utils/bundle/index.js @@ -21,6 +21,7 @@ const prepareModulesToNamedImport = () => { 'time_zone_utils.js', 'devextreme/ui/dialog.js', 'common/charts.js', + 'common/data.js', ]; const paths = [ @@ -187,6 +188,28 @@ const prepareConfigs = (framework) => { ]; } + if (['react', 'vue'].includes(framework)) { + const commonDir = path.join(process.cwd(), 'node_modules', `devextreme-${framework}`, 'cjs', 'common'); + + if (fs.existsSync(commonDir)) { + const collectJsExceptIndex = (dir, prefix = '') => { + const names = fs.readdirSync(dir, { withFileTypes: true }); + + for (const ent of names) { + const rel = prefix ? `${prefix}/${ent.name}` : ent.name; + + if (ent.isDirectory()) { + collectJsExceptIndex(path.join(dir, ent.name), rel); + } else if (ent.isFile() && ent.name.endsWith('.js') && ent.name !== 'index.js') { + packages.push(`devextreme-${framework}/common/${rel}`); + } + } + }; + + collectJsExceptIndex(commonDir); + } + } + const builderConfig = getDefaultBuilderConfig(framework, additionPaths, modulesMap); additionPackage.forEach((p) => { diff --git a/packages/devextreme-angular/src/common/ai-integration/index.ts b/packages/devextreme-angular/src/common/ai-integration/index.ts index 083e552e74da..53b6809261da 100644 --- a/packages/devextreme-angular/src/common/ai-integration/index.ts +++ b/packages/devextreme-angular/src/common/ai-integration/index.ts @@ -1,5 +1,7 @@ export { AIIntegration, +} from 'devextreme/common/ai-integration'; +export type { AIIntegrationOptions, AIProvider, AIResponse, @@ -8,4 +10,4 @@ export { RequestParams, RequestParamsData, Response, -} from 'devextreme/common/ai-integration'; +} from 'devextreme/common/ai-integration'; \ No newline at end of file diff --git a/packages/devextreme-angular/src/common/charts/index.ts b/packages/devextreme-angular/src/common/charts/index.ts index 97be47287157..b6a99caf0365 100644 --- a/packages/devextreme-angular/src/common/charts/index.ts +++ b/packages/devextreme-angular/src/common/charts/index.ts @@ -1,4 +1,8 @@ export { + registerGradient, + registerPattern, +} from 'devextreme/common/charts'; +export type { AnimationEaseMode, AnnotationType, ArgumentAxisHoverMode, @@ -22,8 +26,6 @@ export { PaletteExtensionMode, PointInteractionMode, PointSymbol, - registerGradient, - registerPattern, RelativePosition, ScaleBreak, ScaleBreakLineStyle, @@ -44,4 +46,4 @@ export { VisualRangeUpdateMode, WordWrap, ZoomPanAction, -} from 'devextreme/common/charts'; +} from 'devextreme/common/charts'; \ No newline at end of file diff --git a/packages/devextreme-angular/src/common/core/animation/index.ts b/packages/devextreme-angular/src/common/core/animation/index.ts index 9014c94673c5..63afe65344fc 100644 --- a/packages/devextreme-angular/src/common/core/animation/index.ts +++ b/packages/devextreme-angular/src/common/core/animation/index.ts @@ -1,12 +1,14 @@ export { - AnimationConfig, animationPresets, - AnimationState, cancelAnimationFrame, - CollisionResolution, - CollisionResolutionCombination, fx, - PositionConfig, requestAnimationFrame, TransitionExecutor, } from 'devextreme/common/core/animation'; +export type { + AnimationConfig, + AnimationState, + CollisionResolution, + CollisionResolutionCombination, + PositionConfig, +} from 'devextreme/common/core/animation'; \ No newline at end of file diff --git a/packages/devextreme-angular/src/common/core/environment/index.ts b/packages/devextreme-angular/src/common/core/environment/index.ts index 19ae8891d1ea..684b00aff698 100644 --- a/packages/devextreme-angular/src/common/core/environment/index.ts +++ b/packages/devextreme-angular/src/common/core/environment/index.ts @@ -1,7 +1,9 @@ export { - Device, getTimeZones, hideTopOverlay, initMobileViewport, - SchedulerTimeZone, } from 'devextreme/common/core/environment'; +export type { + Device, + SchedulerTimeZone, +} from 'devextreme/common/core/environment'; \ No newline at end of file diff --git a/packages/devextreme-angular/src/common/core/events/index.ts b/packages/devextreme-angular/src/common/core/events/index.ts index 23f9af001715..5dc3a665166d 100644 --- a/packages/devextreme-angular/src/common/core/events/index.ts +++ b/packages/devextreme-angular/src/common/core/events/index.ts @@ -1,4 +1,10 @@ export { + off, + on, + one, + trigger, +} from 'devextreme/common/core/events'; +export type { AsyncCancelable, Cancelable, ChangedOptionInfo, @@ -7,8 +13,4 @@ export { InitializedEventInfo, ItemInfo, NativeEventInfo, - off, - on, - one, - trigger, -} from 'devextreme/common/core/events'; +} from 'devextreme/common/core/events'; \ No newline at end of file diff --git a/packages/devextreme-angular/src/common/core/localization/index.ts b/packages/devextreme-angular/src/common/core/localization/index.ts index e2fe4bb70025..58abed892f20 100644 --- a/packages/devextreme-angular/src/common/core/localization/index.ts +++ b/packages/devextreme-angular/src/common/core/localization/index.ts @@ -1,5 +1,4 @@ export { - Format, formatDate, formatMessage, formatNumber, @@ -8,3 +7,6 @@ export { parseDate, parseNumber, } from 'devextreme/common/core/localization'; +export type { + Format, +} from 'devextreme/common/core/localization'; \ No newline at end of file diff --git a/packages/devextreme-angular/src/common/data/index.ts b/packages/devextreme-angular/src/common/data/index.ts index 25c15fd09554..d5ac5ecf8242 100644 --- a/packages/devextreme-angular/src/common/data/index.ts +++ b/packages/devextreme-angular/src/common/data/index.ts @@ -1,43 +1,45 @@ export { applyChanges, ArrayStore, - ArrayStoreOptions, base64_encode, compileGetter, compileSetter, CustomStore, - CustomStoreOptions, DataSource, - DataSourceOptions, EdmLiteral, EndpointSelector, errorHandler, - FilterDescriptor, - GroupDescriptor, - GroupingInterval, - GroupItem, isGroupItemsArray, isItemsArray, isLoadResultObject, keyConverters, + LocalStore, + ODataContext, + ODataStore, + query, + setErrorHandler, +} from 'devextreme/common/data'; +export type { + ArrayStoreOptions, + CustomStoreOptions, + DataSourceOptions, + FilterDescriptor, + GroupDescriptor, + GroupingInterval, + GroupItem, LangParams, LoadOptions, LoadResult, LoadResultObject, - LocalStore, LocalStoreOptions, - ODataContext, ODataContextOptions, - ODataStore, ODataStoreOptions, - query, Query, ResolvedData, SearchOperation, SelectDescriptor, - setErrorHandler, SortDescriptor, Store, StoreOptions, SummaryDescriptor, -} from 'devextreme/common/data'; +} from 'devextreme/common/data'; \ No newline at end of file diff --git a/packages/devextreme-angular/src/common/export/excel/index.ts b/packages/devextreme-angular/src/common/export/excel/index.ts index 3950dc29547d..c9cb3b7db71b 100644 --- a/packages/devextreme-angular/src/common/export/excel/index.ts +++ b/packages/devextreme-angular/src/common/export/excel/index.ts @@ -1,10 +1,12 @@ export { + exportDataGrid, + exportPivotGrid, +} from 'devextreme/common/export/excel'; +export type { CellAddress, CellRange, DataGridCell, DataGridExportOptions, - exportDataGrid, - exportPivotGrid, PivotGridCell, PivotGridExportOptions, -} from 'devextreme/common/export/excel'; +} from 'devextreme/common/export/excel'; \ No newline at end of file diff --git a/packages/devextreme-angular/src/common/export/pdf/index.ts b/packages/devextreme-angular/src/common/export/pdf/index.ts index e2deb669df82..a2b1530ac046 100644 --- a/packages/devextreme-angular/src/common/export/pdf/index.ts +++ b/packages/devextreme-angular/src/common/export/pdf/index.ts @@ -1,9 +1,11 @@ export { + exportDataGrid, + exportGantt, +} from 'devextreme/common/export/pdf'; +export type { Cell, DataGridCell, DataGridExportOptions, - exportDataGrid, - exportGantt, GanttExportFont, GanttExportOptions, -} from 'devextreme/common/export/pdf'; +} from 'devextreme/common/export/pdf'; \ No newline at end of file diff --git a/packages/devextreme-angular/src/common/grids/index.ts b/packages/devextreme-angular/src/common/grids/index.ts index deb21ba859b0..9c89b657abf8 100644 --- a/packages/devextreme-angular/src/common/grids/index.ts +++ b/packages/devextreme-angular/src/common/grids/index.ts @@ -1,4 +1,4 @@ -export { +export type { AdaptiveDetailRowPreparingInfo, AIColumnMode, AIColumnRequestCreatingInfo, @@ -76,4 +76,4 @@ export { StateStoring, SummaryType, ToolbarPreparingInfo, -} from 'devextreme/common/grids'; +} from 'devextreme/common/grids'; \ No newline at end of file diff --git a/packages/devextreme-angular/src/common/index.ts b/packages/devextreme-angular/src/common/index.ts index 42ed62d53711..155af7d52abe 100644 --- a/packages/devextreme-angular/src/common/index.ts +++ b/packages/devextreme-angular/src/common/index.ts @@ -1,11 +1,26 @@ +import * as AiIntegrationModule from 'devextreme/common/ai-integration'; +import * as ChartsModule from 'devextreme/common/charts'; +import * as CoreAnimationModule from 'devextreme/common/core/animation'; +import * as CoreEnvironmentModule from 'devextreme/common/core/environment'; +import * as CoreEventsModule from 'devextreme/common/core/events'; +import * as CoreLocalizationModule from 'devextreme/common/core/localization'; +import * as DataModule from 'devextreme/common/data'; +import * as ExportExcelModule from 'devextreme/common/export/excel'; +import * as ExportPdfModule from 'devextreme/common/export/pdf'; +import * as GridsModule from 'devextreme/common/grids'; + export { + config, + Guid, + setTemplateEngine, +} from 'devextreme/common'; +export type { ApplyValueMode, AsyncRule, ButtonStyle, ButtonType, CompareRule, ComparisonOperator, - config, CustomRule, DataStructure, DataType, @@ -24,7 +39,6 @@ export { FloatingActionButtonDirection, Format, GlobalConfig, - Guid, HorizontalAlignment, HorizontalEdge, LabelMode, @@ -45,7 +59,6 @@ export { ScrollMode, SearchMode, SelectAllMode, - setTemplateEngine, SimplifiedSearchMode, SingleMultipleAllOrNone, SingleMultipleOrNone, @@ -75,9 +88,265 @@ export { VerticalEdge, } from 'devextreme/common'; -export * as AiIntegration from './ai-integration'; -export * as Charts from './charts'; -export * as Core from './core/index'; -export * as Data from './data'; -export * as Export from './export/index'; -export * as Grids from './grids'; +export namespace AiIntegration { + export const AIIntegration = AiIntegrationModule.AIIntegration; + export type AIIntegration = AiIntegrationModule.AIIntegration; + export type AIIntegrationOptions = AiIntegrationModule.AIIntegrationOptions; + export type AIProvider = AiIntegrationModule.AIProvider; + export type AIResponse = AiIntegrationModule.AIResponse; + export type GenerateGridColumnCommandResponse = AiIntegrationModule.GenerateGridColumnCommandResponse; + export type Prompt = AiIntegrationModule.Prompt; + export type RequestParams = AiIntegrationModule.RequestParams; + export type RequestParamsData = AiIntegrationModule.RequestParamsData; + export type Response = AiIntegrationModule.Response; +} + +export namespace Charts { + export type AnimationEaseMode = ChartsModule.AnimationEaseMode; + export type AnnotationType = ChartsModule.AnnotationType; + export type ArgumentAxisHoverMode = ChartsModule.ArgumentAxisHoverMode; + export type AxisScaleType = ChartsModule.AxisScaleType; + export type ChartsAxisLabelOverlap = ChartsModule.ChartsAxisLabelOverlap; + export type ChartsColor = ChartsModule.ChartsColor; + export type ChartsDataType = ChartsModule.ChartsDataType; + export type ChartsLabelOverlap = ChartsModule.ChartsLabelOverlap; + export type DashStyle = ChartsModule.DashStyle; + export type DiscreteAxisDivisionMode = ChartsModule.DiscreteAxisDivisionMode; + export type Font = ChartsModule.Font; + export type GradientColor = ChartsModule.GradientColor; + export type HatchDirection = ChartsModule.HatchDirection; + export type LabelOverlap = ChartsModule.LabelOverlap; + export type LabelPosition = ChartsModule.LabelPosition; + export type LegendHoverMode = ChartsModule.LegendHoverMode; + export type LegendItem = ChartsModule.LegendItem; + export type LegendMarkerState = ChartsModule.LegendMarkerState; + export type Palette = ChartsModule.Palette; + export type PaletteColorSet = ChartsModule.PaletteColorSet; + export type PaletteExtensionMode = ChartsModule.PaletteExtensionMode; + export type PointInteractionMode = ChartsModule.PointInteractionMode; + export type PointSymbol = ChartsModule.PointSymbol; + export const registerGradient = ChartsModule.registerGradient; + export const registerPattern = ChartsModule.registerPattern; + export type RelativePosition = ChartsModule.RelativePosition; + export type ScaleBreak = ChartsModule.ScaleBreak; + export type ScaleBreakLineStyle = ChartsModule.ScaleBreakLineStyle; + export type SeriesHoverMode = ChartsModule.SeriesHoverMode; + export type SeriesLabel = ChartsModule.SeriesLabel; + export type SeriesPoint = ChartsModule.SeriesPoint; + export type SeriesSelectionMode = ChartsModule.SeriesSelectionMode; + export type SeriesType = ChartsModule.SeriesType; + export type ShiftLabelOverlap = ChartsModule.ShiftLabelOverlap; + export type TextOverflow = ChartsModule.TextOverflow; + export type Theme = ChartsModule.Theme; + export type TimeInterval = ChartsModule.TimeInterval; + export type TimeIntervalConfig = ChartsModule.TimeIntervalConfig; + export type ValueAxisVisualRangeUpdateMode = ChartsModule.ValueAxisVisualRangeUpdateMode; + export type ValueErrorBarDisplayMode = ChartsModule.ValueErrorBarDisplayMode; + export type ValueErrorBarType = ChartsModule.ValueErrorBarType; + export type VisualRange = ChartsModule.VisualRange; + export type VisualRangeUpdateMode = ChartsModule.VisualRangeUpdateMode; + export type WordWrap = ChartsModule.WordWrap; + export type ZoomPanAction = ChartsModule.ZoomPanAction; +} + +export namespace Core { + export namespace Animation { + export type AnimationConfig = CoreAnimationModule.AnimationConfig; + export const animationPresets = CoreAnimationModule.animationPresets; + export type AnimationState = CoreAnimationModule.AnimationState; + export const cancelAnimationFrame = CoreAnimationModule.cancelAnimationFrame; + export type CollisionResolution = CoreAnimationModule.CollisionResolution; + export type CollisionResolutionCombination = CoreAnimationModule.CollisionResolutionCombination; + export const fx = CoreAnimationModule.fx; + export type PositionConfig = CoreAnimationModule.PositionConfig; + export const requestAnimationFrame = CoreAnimationModule.requestAnimationFrame; + export const TransitionExecutor = CoreAnimationModule.TransitionExecutor; + export type TransitionExecutor = CoreAnimationModule.TransitionExecutor; + } + export namespace Environment { + export type Device = CoreEnvironmentModule.Device; + export const getTimeZones = CoreEnvironmentModule.getTimeZones; + export const hideTopOverlay = CoreEnvironmentModule.hideTopOverlay; + export const initMobileViewport = CoreEnvironmentModule.initMobileViewport; + export type SchedulerTimeZone = CoreEnvironmentModule.SchedulerTimeZone; + } + export namespace Events { + export type AsyncCancelable = CoreEventsModule.AsyncCancelable; + export type Cancelable = CoreEventsModule.Cancelable; + export type ChangedOptionInfo = CoreEventsModule.ChangedOptionInfo; + export type EventInfo = CoreEventsModule.EventInfo; + export type EventObject = CoreEventsModule.EventObject; + export type InitializedEventInfo = CoreEventsModule.InitializedEventInfo; + export type ItemInfo = CoreEventsModule.ItemInfo; + export type NativeEventInfo = CoreEventsModule.NativeEventInfo; + export const off = CoreEventsModule.off; + export const on = CoreEventsModule.on; + export const one = CoreEventsModule.one; + export const trigger = CoreEventsModule.trigger; + } + export namespace Localization { + export type Format = CoreLocalizationModule.Format; + export const formatDate = CoreLocalizationModule.formatDate; + export const formatMessage = CoreLocalizationModule.formatMessage; + export const formatNumber = CoreLocalizationModule.formatNumber; + export const loadMessages = CoreLocalizationModule.loadMessages; + export const locale = CoreLocalizationModule.locale; + export const parseDate = CoreLocalizationModule.parseDate; + export const parseNumber = CoreLocalizationModule.parseNumber; + } +} + +export namespace Data { + export const applyChanges = DataModule.applyChanges; + export const ArrayStore = DataModule.ArrayStore; + export type ArrayStore = DataModule.ArrayStore; + export type ArrayStoreOptions = DataModule.ArrayStoreOptions; + export const base64_encode = DataModule.base64_encode; + export const compileGetter = DataModule.compileGetter; + export const compileSetter = DataModule.compileSetter; + export const CustomStore = DataModule.CustomStore; + export type CustomStore = DataModule.CustomStore; + export type CustomStoreOptions = DataModule.CustomStoreOptions; + export const DataSource = DataModule.DataSource; + export type DataSource = DataModule.DataSource; + export type DataSourceOptions = DataModule.DataSourceOptions; + export const EdmLiteral = DataModule.EdmLiteral; + export type EdmLiteral = DataModule.EdmLiteral; + export const EndpointSelector = DataModule.EndpointSelector; + export type EndpointSelector = DataModule.EndpointSelector; + export const errorHandler = DataModule.errorHandler; + export type FilterDescriptor = DataModule.FilterDescriptor; + export type GroupDescriptor = DataModule.GroupDescriptor; + export type GroupingInterval = DataModule.GroupingInterval; + export type GroupItem = DataModule.GroupItem; + export const isGroupItemsArray = DataModule.isGroupItemsArray; + export const isItemsArray = DataModule.isItemsArray; + export const isLoadResultObject = DataModule.isLoadResultObject; + export const keyConverters = DataModule.keyConverters; + export type LangParams = DataModule.LangParams; + export type LoadOptions = DataModule.LoadOptions; + export type LoadResult = DataModule.LoadResult; + export type LoadResultObject = DataModule.LoadResultObject; + export const LocalStore = DataModule.LocalStore; + export type LocalStore = DataModule.LocalStore; + export type LocalStoreOptions = DataModule.LocalStoreOptions; + export const ODataContext = DataModule.ODataContext; + export type ODataContext = DataModule.ODataContext; + export type ODataContextOptions = DataModule.ODataContextOptions; + export const ODataStore = DataModule.ODataStore; + export type ODataStore = DataModule.ODataStore; + export type ODataStoreOptions = DataModule.ODataStoreOptions; + export const query = DataModule.query; + export type Query = DataModule.Query; + export type ResolvedData = DataModule.ResolvedData; + export type SearchOperation = DataModule.SearchOperation; + export type SelectDescriptor = DataModule.SelectDescriptor; + export const setErrorHandler = DataModule.setErrorHandler; + export type SortDescriptor = DataModule.SortDescriptor; + export type Store = DataModule.Store; + export type StoreOptions = DataModule.StoreOptions; + export type SummaryDescriptor = DataModule.SummaryDescriptor; +} + +export namespace Export { + export namespace Excel { + export type CellAddress = ExportExcelModule.CellAddress; + export type CellRange = ExportExcelModule.CellRange; + export type DataGridCell = ExportExcelModule.DataGridCell; + export type DataGridExportOptions = ExportExcelModule.DataGridExportOptions; + export const exportDataGrid = ExportExcelModule.exportDataGrid; + export const exportPivotGrid = ExportExcelModule.exportPivotGrid; + export type PivotGridCell = ExportExcelModule.PivotGridCell; + export type PivotGridExportOptions = ExportExcelModule.PivotGridExportOptions; + } + export namespace Pdf { + export type Cell = ExportPdfModule.Cell; + export type DataGridCell = ExportPdfModule.DataGridCell; + export type DataGridExportOptions = ExportPdfModule.DataGridExportOptions; + export const exportDataGrid = ExportPdfModule.exportDataGrid; + export const exportGantt = ExportPdfModule.exportGantt; + export type GanttExportFont = ExportPdfModule.GanttExportFont; + export type GanttExportOptions = ExportPdfModule.GanttExportOptions; + } +} + +export function Grids(): void {} +export namespace Grids { + export type AdaptiveDetailRowPreparingInfo = GridsModule.AdaptiveDetailRowPreparingInfo; + export type AIColumnMode = GridsModule.AIColumnMode; + export type AIColumnRequestCreatingInfo = GridsModule.AIColumnRequestCreatingInfo; + export type ApplyChangesMode = GridsModule.ApplyChangesMode; + export type ApplyFilterMode = GridsModule.ApplyFilterMode; + export type ColumnAIOptions = GridsModule.ColumnAIOptions; + export type ColumnBase = GridsModule.ColumnBase; + export type ColumnButtonBase = GridsModule.ColumnButtonBase; + export type ColumnChooser = GridsModule.ColumnChooser; + export type ColumnChooserMode = GridsModule.ColumnChooserMode; + export type ColumnChooserSearchConfig = GridsModule.ColumnChooserSearchConfig; + export type ColumnChooserSelectionConfig = GridsModule.ColumnChooserSelectionConfig; + export type ColumnCustomizeTextArg = GridsModule.ColumnCustomizeTextArg; + export type ColumnFixing = GridsModule.ColumnFixing; + export type ColumnFixingIcons = GridsModule.ColumnFixingIcons; + export type ColumnFixingTexts = GridsModule.ColumnFixingTexts; + export type ColumnHeaderFilter = GridsModule.ColumnHeaderFilter; + export type ColumnHeaderFilterSearchConfig = GridsModule.ColumnHeaderFilterSearchConfig; + export type ColumnLookup = GridsModule.ColumnLookup; + export type ColumnResizeMode = GridsModule.ColumnResizeMode; + export type DataChange = GridsModule.DataChange; + export type DataChangeInfo = GridsModule.DataChangeInfo; + export type DataChangeType = GridsModule.DataChangeType; + export type DataErrorOccurredInfo = GridsModule.DataErrorOccurredInfo; + export type DataRenderMode = GridsModule.DataRenderMode; + export type EditingBase = GridsModule.EditingBase; + export type EditingTextsBase = GridsModule.EditingTextsBase; + export type EnterKeyAction = GridsModule.EnterKeyAction; + export type EnterKeyDirection = GridsModule.EnterKeyDirection; + export type FilterOperation = GridsModule.FilterOperation; + export type FilterPanel = GridsModule.FilterPanel; + export type FilterPanelTexts = GridsModule.FilterPanelTexts; + export type FilterRow = GridsModule.FilterRow; + export type FilterRowOperationDescriptions = GridsModule.FilterRowOperationDescriptions; + export type FilterType = GridsModule.FilterType; + export type FixedPosition = GridsModule.FixedPosition; + export type GridBase = GridsModule.GridBase; + export type GridBaseOptions, TRowData = any, TKey = any> = GridsModule.GridBaseOptions; + export type GridsContextMenuTarget = GridsModule.GridsContextMenuTarget; + export type GridsEditMode = GridsModule.GridsEditMode; + export type GridsEditRefreshMode = GridsModule.GridsEditRefreshMode; + export type GroupExpandMode = GridsModule.GroupExpandMode; + export type HeaderFilter = GridsModule.HeaderFilter; + export type HeaderFilterGroupInterval = GridsModule.HeaderFilterGroupInterval; + export type HeaderFilterSearchConfig = GridsModule.HeaderFilterSearchConfig; + export type HeaderFilterTexts = GridsModule.HeaderFilterTexts; + export type KeyboardNavigation = GridsModule.KeyboardNavigation; + export type KeyDownInfo = GridsModule.KeyDownInfo; + export type LoadPanel = GridsModule.LoadPanel; + export type NewRowInfo = GridsModule.NewRowInfo; + export type NewRowPosition = GridsModule.NewRowPosition; + export type Pager = GridsModule.Pager; + export type PagerPageSize = GridsModule.PagerPageSize; + export type PagingBase = GridsModule.PagingBase; + export type RowDragging, TRowData = any, TKey = any> = GridsModule.RowDragging; + export type RowDraggingTemplateData = GridsModule.RowDraggingTemplateData; + export type RowInsertedInfo = GridsModule.RowInsertedInfo; + export type RowInsertingInfo = GridsModule.RowInsertingInfo; + export type RowKeyInfo = GridsModule.RowKeyInfo; + export type RowRemovedInfo = GridsModule.RowRemovedInfo; + export type RowRemovingInfo = GridsModule.RowRemovingInfo; + export type RowUpdatedInfo = GridsModule.RowUpdatedInfo; + export type RowUpdatingInfo = GridsModule.RowUpdatingInfo; + export type RowValidatingInfo = GridsModule.RowValidatingInfo; + export type SavingInfo = GridsModule.SavingInfo; + export type ScrollingBase = GridsModule.ScrollingBase; + export type SearchPanel = GridsModule.SearchPanel; + export type SelectedFilterOperation = GridsModule.SelectedFilterOperation; + export type SelectionBase = GridsModule.SelectionBase; + export type SelectionChangedInfo = GridsModule.SelectionChangedInfo; + export type SelectionColumnDisplayMode = GridsModule.SelectionColumnDisplayMode; + export type Sorting = GridsModule.Sorting; + export type StartEditAction = GridsModule.StartEditAction; + export type StateStoreType = GridsModule.StateStoreType; + export type StateStoring = GridsModule.StateStoring; + export type SummaryType = GridsModule.SummaryType; + export type ToolbarPreparingInfo = GridsModule.ToolbarPreparingInfo; +} diff --git a/packages/devextreme-angular/src/index.ts b/packages/devextreme-angular/src/index.ts index e7a33f1eb8ac..b387f2eeeb37 100644 --- a/packages/devextreme-angular/src/index.ts +++ b/packages/devextreme-angular/src/index.ts @@ -1,8 +1,20 @@ -export * from 'devextreme-angular/core'; -export * from './ui/all'; import './common'; import './common/grids'; import './common/charts'; +import * as CommonModule from './common/index'; +import * as AiIntegrationModule from './common/ai-integration'; +import * as ChartsModule from './common/charts'; +import * as CoreAnimationModule from './common/core/animation'; +import * as CoreEnvironmentModule from './common/core/environment'; +import * as CoreEventsModule from './common/core/events'; +import * as CoreLocalizationModule from './common/core/localization'; +import * as DataModule from './common/data'; +import * as ExportExcelModule from './common/export/excel'; +import * as ExportPdfModule from './common/export/pdf'; + +export * from 'devextreme-angular/core'; +export * from './ui/all'; + export { DxAccordionComponent, DxAccordionModule } from 'devextreme-angular/ui/accordion'; export { DxActionSheetComponent, DxActionSheetModule } from 'devextreme-angular/ui/action-sheet'; export { DxAutocompleteComponent, DxAutocompleteModule } from 'devextreme-angular/ui/autocomplete'; @@ -86,4 +98,258 @@ export { DxValidationGroupComponent, DxValidationGroupModule } from 'devextreme- export { DxValidationSummaryComponent, DxValidationSummaryModule } from 'devextreme-angular/ui/validation-summary'; export { DxValidatorComponent, DxValidatorModule } from 'devextreme-angular/ui/validator'; export { DxVectorMapComponent, DxVectorMapModule } from 'devextreme-angular/ui/vector-map'; -export * as Common from './common/index'; +export namespace Common { + export type ApplyValueMode = import('devextreme/common').ApplyValueMode; + export type AsyncRule = import('devextreme/common').AsyncRule; + export type ButtonStyle = import('devextreme/common').ButtonStyle; + export type ButtonType = import('devextreme/common').ButtonType; + export type CompareRule = import('devextreme/common').CompareRule; + export type ComparisonOperator = import('devextreme/common').ComparisonOperator; + export const config = (CommonModule as any).config as typeof import('devextreme/common').config; + export type CustomRule = import('devextreme/common').CustomRule; + export type DataStructure = import('devextreme/common').DataStructure; + export type DataType = import('devextreme/common').DataType; + export type DateLike = import('devextreme/common').DateLike; + export type DefaultOptionsRule = import('devextreme/common').DefaultOptionsRule; + export type Direction = import('devextreme/common').Direction; + export type DisplayMode = import('devextreme/common').DisplayMode; + export type DragDirection = import('devextreme/common').DragDirection; + export type Draggable = import('devextreme/common').Draggable; + export type DragHighlight = import('devextreme/common').DragHighlight; + export type EditorStyle = import('devextreme/common').EditorStyle; + export type EmailRule = import('devextreme/common').EmailRule; + export type ExportFormat = import('devextreme/common').ExportFormat; + export type FieldChooserLayout = import('devextreme/common').FieldChooserLayout; + export type FirstDayOfWeek = import('devextreme/common').FirstDayOfWeek; + export type FloatingActionButtonDirection = import('devextreme/common').FloatingActionButtonDirection; + export type Format = import('devextreme/common').Format; + export type GlobalConfig = import('devextreme/common').GlobalConfig; + export const Guid = (CommonModule as any).Guid as typeof import('devextreme/common').Guid; + export type Guid = import('devextreme/common').Guid; + export type HorizontalAlignment = import('devextreme/common').HorizontalAlignment; + export type HorizontalEdge = import('devextreme/common').HorizontalEdge; + export type LabelMode = import('devextreme/common').LabelMode; + export type MaskMode = import('devextreme/common').MaskMode; + export type Mode = import('devextreme/common').Mode; + export type NumericRule = import('devextreme/common').NumericRule; + export type Orientation = import('devextreme/common').Orientation; + export type PageLoadMode = import('devextreme/common').PageLoadMode; + export type PageOrientation = import('devextreme/common').PageOrientation; + export type PatternRule = import('devextreme/common').PatternRule; + export type Position = import('devextreme/common').Position; + export type PositionAlignment = import('devextreme/common').PositionAlignment; + export type RangeRule = import('devextreme/common').RangeRule; + export type RequiredRule = import('devextreme/common').RequiredRule; + export type Scrollable = import('devextreme/common').Scrollable; + export type ScrollbarMode = import('devextreme/common').ScrollbarMode; + export type ScrollDirection = import('devextreme/common').ScrollDirection; + export type ScrollMode = import('devextreme/common').ScrollMode; + export type SearchMode = import('devextreme/common').SearchMode; + export type SelectAllMode = import('devextreme/common').SelectAllMode; + export const setTemplateEngine = (CommonModule as any).setTemplateEngine as typeof import('devextreme/common').setTemplateEngine; + export type SimplifiedSearchMode = import('devextreme/common').SimplifiedSearchMode; + export type SingleMultipleAllOrNone = import('devextreme/common').SingleMultipleAllOrNone; + export type SingleMultipleOrNone = import('devextreme/common').SingleMultipleOrNone; + export type SingleOrMultiple = import('devextreme/common').SingleOrMultiple; + export type SingleOrNone = import('devextreme/common').SingleOrNone; + export type SliderValueChangeMode = import('devextreme/common').SliderValueChangeMode; + export type Sortable = import('devextreme/common').Sortable; + export type SortOrder = import('devextreme/common').SortOrder; + export type StoreType = import('devextreme/common').StoreType; + export type StringLengthRule = import('devextreme/common').StringLengthRule; + export type SubmenuShowMode = import('devextreme/common').SubmenuShowMode; + export type TabsIconPosition = import('devextreme/common').TabsIconPosition; + export type TabsStyle = import('devextreme/common').TabsStyle; + export type template = import('devextreme/common').template; + export type TextBoxPredefinedButton = import('devextreme/common').TextBoxPredefinedButton; + export type TextEditorButton = import('devextreme/common').TextEditorButton; + export type TextEditorButtonLocation = import('devextreme/common').TextEditorButtonLocation; + export type ToolbarItemComponent = import('devextreme/common').ToolbarItemComponent; + export type ToolbarItemLocation = import('devextreme/common').ToolbarItemLocation; + export type TooltipShowMode = import('devextreme/common').TooltipShowMode; + export type ValidationCallbackData = import('devextreme/common').ValidationCallbackData; + export type ValidationMessageMode = import('devextreme/common').ValidationMessageMode; + export type ValidationRule = import('devextreme/common').ValidationRule; + export type ValidationRuleType = import('devextreme/common').ValidationRuleType; + export type ValidationStatus = import('devextreme/common').ValidationStatus; + export type VerticalAlignment = import('devextreme/common').VerticalAlignment; + export type VerticalEdge = import('devextreme/common').VerticalEdge; + export namespace AiIntegration { + export const AIIntegration = (AiIntegrationModule as any).AIIntegration as typeof import('devextreme/common/ai-integration').AIIntegration; + export type AIIntegration = import('devextreme/common/ai-integration').AIIntegration; + export type AIIntegrationOptions = import('devextreme/common/ai-integration').AIIntegrationOptions; + export type AIProvider = import('devextreme/common/ai-integration').AIProvider; + export type AIResponse = import('devextreme/common/ai-integration').AIResponse; + export type GenerateGridColumnCommandResponse = import('devextreme/common/ai-integration').GenerateGridColumnCommandResponse; + export type Prompt = import('devextreme/common/ai-integration').Prompt; + export type RequestParams = import('devextreme/common/ai-integration').RequestParams; + export type RequestParamsData = import('devextreme/common/ai-integration').RequestParamsData; + export type Response = import('devextreme/common/ai-integration').Response; + } + export namespace Charts { + export type AnimationEaseMode = import('devextreme/common/charts').AnimationEaseMode; + export type AnnotationType = import('devextreme/common/charts').AnnotationType; + export type ArgumentAxisHoverMode = import('devextreme/common/charts').ArgumentAxisHoverMode; + export type AxisScaleType = import('devextreme/common/charts').AxisScaleType; + export type ChartsAxisLabelOverlap = import('devextreme/common/charts').ChartsAxisLabelOverlap; + export type ChartsColor = import('devextreme/common/charts').ChartsColor; + export type ChartsDataType = import('devextreme/common/charts').ChartsDataType; + export type ChartsLabelOverlap = import('devextreme/common/charts').ChartsLabelOverlap; + export type DashStyle = import('devextreme/common/charts').DashStyle; + export type DiscreteAxisDivisionMode = import('devextreme/common/charts').DiscreteAxisDivisionMode; + export type Font = import('devextreme/common/charts').Font; + export type GradientColor = import('devextreme/common/charts').GradientColor; + export type HatchDirection = import('devextreme/common/charts').HatchDirection; + export type LabelOverlap = import('devextreme/common/charts').LabelOverlap; + export type LabelPosition = import('devextreme/common/charts').LabelPosition; + export type LegendHoverMode = import('devextreme/common/charts').LegendHoverMode; + export type LegendItem = import('devextreme/common/charts').LegendItem; + export type LegendMarkerState = import('devextreme/common/charts').LegendMarkerState; + export type Palette = import('devextreme/common/charts').Palette; + export type PaletteColorSet = import('devextreme/common/charts').PaletteColorSet; + export type PaletteExtensionMode = import('devextreme/common/charts').PaletteExtensionMode; + export type PointInteractionMode = import('devextreme/common/charts').PointInteractionMode; + export type PointSymbol = import('devextreme/common/charts').PointSymbol; + export const registerGradient = (ChartsModule as any).registerGradient as typeof import('devextreme/common/charts').registerGradient; + export const registerPattern = (ChartsModule as any).registerPattern as typeof import('devextreme/common/charts').registerPattern; + export type RelativePosition = import('devextreme/common/charts').RelativePosition; + export type ScaleBreak = import('devextreme/common/charts').ScaleBreak; + export type ScaleBreakLineStyle = import('devextreme/common/charts').ScaleBreakLineStyle; + export type SeriesHoverMode = import('devextreme/common/charts').SeriesHoverMode; + export type SeriesLabel = import('devextreme/common/charts').SeriesLabel; + export type SeriesPoint = import('devextreme/common/charts').SeriesPoint; + export type SeriesSelectionMode = import('devextreme/common/charts').SeriesSelectionMode; + export type SeriesType = import('devextreme/common/charts').SeriesType; + export type ShiftLabelOverlap = import('devextreme/common/charts').ShiftLabelOverlap; + export type TextOverflow = import('devextreme/common/charts').TextOverflow; + export type Theme = import('devextreme/common/charts').Theme; + export type TimeInterval = import('devextreme/common/charts').TimeInterval; + export type TimeIntervalConfig = import('devextreme/common/charts').TimeIntervalConfig; + export type ValueAxisVisualRangeUpdateMode = import('devextreme/common/charts').ValueAxisVisualRangeUpdateMode; + export type ValueErrorBarDisplayMode = import('devextreme/common/charts').ValueErrorBarDisplayMode; + export type ValueErrorBarType = import('devextreme/common/charts').ValueErrorBarType; + export type VisualRange = import('devextreme/common/charts').VisualRange; + export type VisualRangeUpdateMode = import('devextreme/common/charts').VisualRangeUpdateMode; + export type WordWrap = import('devextreme/common/charts').WordWrap; + export type ZoomPanAction = import('devextreme/common/charts').ZoomPanAction; + } + export namespace Core { + export namespace Animation { + export type AnimationConfig = import('devextreme/common/core/animation').AnimationConfig; + export const animationPresets = (CoreAnimationModule as any).animationPresets as typeof import('devextreme/common/core/animation').animationPresets; + export type AnimationState = import('devextreme/common/core/animation').AnimationState; + export const cancelAnimationFrame = (CoreAnimationModule as any).cancelAnimationFrame as typeof import('devextreme/common/core/animation').cancelAnimationFrame; + export type CollisionResolution = import('devextreme/common/core/animation').CollisionResolution; + export type CollisionResolutionCombination = import('devextreme/common/core/animation').CollisionResolutionCombination; + export const fx = (CoreAnimationModule as any).fx as typeof import('devextreme/common/core/animation').fx; + export type PositionConfig = import('devextreme/common/core/animation').PositionConfig; + export const requestAnimationFrame = (CoreAnimationModule as any).requestAnimationFrame as typeof import('devextreme/common/core/animation').requestAnimationFrame; + export const TransitionExecutor = (CoreAnimationModule as any).TransitionExecutor as typeof import('devextreme/common/core/animation').TransitionExecutor; + export type TransitionExecutor = import('devextreme/common/core/animation').TransitionExecutor; + } + export namespace Environment { + export type Device = import('devextreme/common/core/environment').Device; + export const getTimeZones = (CoreEnvironmentModule as any).getTimeZones as typeof import('devextreme/common/core/environment').getTimeZones; + export const hideTopOverlay = (CoreEnvironmentModule as any).hideTopOverlay as typeof import('devextreme/common/core/environment').hideTopOverlay; + export const initMobileViewport = (CoreEnvironmentModule as any).initMobileViewport as typeof import('devextreme/common/core/environment').initMobileViewport; + export type SchedulerTimeZone = import('devextreme/common/core/environment').SchedulerTimeZone; + } + export namespace Events { + export type AsyncCancelable = import('devextreme/common/core/events').AsyncCancelable; + export type Cancelable = import('devextreme/common/core/events').Cancelable; + export type ChangedOptionInfo = import('devextreme/common/core/events').ChangedOptionInfo; + export type EventInfo = import('devextreme/common/core/events').EventInfo; + export type EventObject = import('devextreme/common/core/events').EventObject; + export type InitializedEventInfo = import('devextreme/common/core/events').InitializedEventInfo; + export type ItemInfo = import('devextreme/common/core/events').ItemInfo; + export type NativeEventInfo = import('devextreme/common/core/events').NativeEventInfo; + export const off = (CoreEventsModule as any).off as typeof import('devextreme/common/core/events').off; + export const on = (CoreEventsModule as any).on as typeof import('devextreme/common/core/events').on; + export const one = (CoreEventsModule as any).one as typeof import('devextreme/common/core/events').one; + export const trigger = (CoreEventsModule as any).trigger as typeof import('devextreme/common/core/events').trigger; + } + export namespace Localization { + export type Format = import('devextreme/common/core/localization').Format; + export const formatDate = (CoreLocalizationModule as any).formatDate as typeof import('devextreme/common/core/localization').formatDate; + export const formatMessage = (CoreLocalizationModule as any).formatMessage as typeof import('devextreme/common/core/localization').formatMessage; + export const formatNumber = (CoreLocalizationModule as any).formatNumber as typeof import('devextreme/common/core/localization').formatNumber; + export const loadMessages = (CoreLocalizationModule as any).loadMessages as typeof import('devextreme/common/core/localization').loadMessages; + export const locale = (CoreLocalizationModule as any).locale as typeof import('devextreme/common/core/localization').locale; + export const parseDate = (CoreLocalizationModule as any).parseDate as typeof import('devextreme/common/core/localization').parseDate; + export const parseNumber = (CoreLocalizationModule as any).parseNumber as typeof import('devextreme/common/core/localization').parseNumber; + } + } + export namespace Data { + export const applyChanges = (DataModule as any).applyChanges as typeof import('devextreme/common/data').applyChanges; + export const ArrayStore = (DataModule as any).ArrayStore as typeof import('devextreme/common/data').ArrayStore; + export type ArrayStore = import('devextreme/common/data').ArrayStore; + export type ArrayStoreOptions = import('devextreme/common/data').ArrayStoreOptions; + export const base64_encode = (DataModule as any).base64_encode as typeof import('devextreme/common/data').base64_encode; + export const compileGetter = (DataModule as any).compileGetter as typeof import('devextreme/common/data').compileGetter; + export const compileSetter = (DataModule as any).compileSetter as typeof import('devextreme/common/data').compileSetter; + export const CustomStore = (DataModule as any).CustomStore as typeof import('devextreme/common/data').CustomStore; + export type CustomStore = import('devextreme/common/data').CustomStore; + export type CustomStoreOptions = import('devextreme/common/data').CustomStoreOptions; + export const DataSource = (DataModule as any).DataSource as typeof import('devextreme/common/data').DataSource; + export type DataSource = import('devextreme/common/data').DataSource; + export type DataSourceOptions = import('devextreme/common/data').DataSourceOptions; + export const EdmLiteral = (DataModule as any).EdmLiteral as typeof import('devextreme/common/data').EdmLiteral; + export type EdmLiteral = import('devextreme/common/data').EdmLiteral; + export const EndpointSelector = (DataModule as any).EndpointSelector as typeof import('devextreme/common/data').EndpointSelector; + export type EndpointSelector = import('devextreme/common/data').EndpointSelector; + export const errorHandler = (DataModule as any).errorHandler as typeof import('devextreme/common/data').errorHandler; + export type FilterDescriptor = import('devextreme/common/data').FilterDescriptor; + export type GroupDescriptor = import('devextreme/common/data').GroupDescriptor; + export type GroupingInterval = import('devextreme/common/data').GroupingInterval; + export type GroupItem = import('devextreme/common/data').GroupItem; + export const isGroupItemsArray = (DataModule as any).isGroupItemsArray as typeof import('devextreme/common/data').isGroupItemsArray; + export const isItemsArray = (DataModule as any).isItemsArray as typeof import('devextreme/common/data').isItemsArray; + export const isLoadResultObject = (DataModule as any).isLoadResultObject as typeof import('devextreme/common/data').isLoadResultObject; + export const keyConverters = (DataModule as any).keyConverters as typeof import('devextreme/common/data').keyConverters; + export type LangParams = import('devextreme/common/data').LangParams; + export type LoadOptions = import('devextreme/common/data').LoadOptions; + export type LoadResult = import('devextreme/common/data').LoadResult; + export type LoadResultObject = import('devextreme/common/data').LoadResultObject; + export const LocalStore = (DataModule as any).LocalStore as typeof import('devextreme/common/data').LocalStore; + export type LocalStore = import('devextreme/common/data').LocalStore; + export type LocalStoreOptions = import('devextreme/common/data').LocalStoreOptions; + export const ODataContext = (DataModule as any).ODataContext as typeof import('devextreme/common/data').ODataContext; + export type ODataContext = import('devextreme/common/data').ODataContext; + export type ODataContextOptions = import('devextreme/common/data').ODataContextOptions; + export const ODataStore = (DataModule as any).ODataStore as typeof import('devextreme/common/data').ODataStore; + export type ODataStore = import('devextreme/common/data').ODataStore; + export type ODataStoreOptions = import('devextreme/common/data').ODataStoreOptions; + export const query = (DataModule as any).query as typeof import('devextreme/common/data').query; + export type Query = import('devextreme/common/data').Query; + export type ResolvedData = import('devextreme/common/data').ResolvedData; + export type SearchOperation = import('devextreme/common/data').SearchOperation; + export type SelectDescriptor = import('devextreme/common/data').SelectDescriptor; + export const setErrorHandler = (DataModule as any).setErrorHandler as typeof import('devextreme/common/data').setErrorHandler; + export type SortDescriptor = import('devextreme/common/data').SortDescriptor; + export type Store = import('devextreme/common/data').Store; + export type StoreOptions = import('devextreme/common/data').StoreOptions; + export type SummaryDescriptor = import('devextreme/common/data').SummaryDescriptor; + } + export namespace Export { + export namespace Excel { + export type CellAddress = import('devextreme/common/export/excel').CellAddress; + export type CellRange = import('devextreme/common/export/excel').CellRange; + export type DataGridCell = import('devextreme/common/export/excel').DataGridCell; + export type DataGridExportOptions = import('devextreme/common/export/excel').DataGridExportOptions; + export const exportDataGrid = (ExportExcelModule as any).exportDataGrid as typeof import('devextreme/common/export/excel').exportDataGrid; + export const exportPivotGrid = (ExportExcelModule as any).exportPivotGrid as typeof import('devextreme/common/export/excel').exportPivotGrid; + export type PivotGridCell = import('devextreme/common/export/excel').PivotGridCell; + export type PivotGridExportOptions = import('devextreme/common/export/excel').PivotGridExportOptions; + } + export namespace Pdf { + export type Cell = import('devextreme/common/export/pdf').Cell; + export type DataGridCell = import('devextreme/common/export/pdf').DataGridCell; + export type DataGridExportOptions = import('devextreme/common/export/pdf').DataGridExportOptions; + export const exportDataGrid = (ExportPdfModule as any).exportDataGrid as typeof import('devextreme/common/export/pdf').exportDataGrid; + export const exportGantt = (ExportPdfModule as any).exportGantt as typeof import('devextreme/common/export/pdf').exportGantt; + export type GanttExportFont = import('devextreme/common/export/pdf').GanttExportFont; + export type GanttExportOptions = import('devextreme/common/export/pdf').GanttExportOptions; + } + } + export function Grids(): void {} +} diff --git a/packages/devextreme-react/src/common/ai-integration.ts b/packages/devextreme-react/src/common/ai-integration.ts index b4af2d19435b..3b7fb4842c10 100644 --- a/packages/devextreme-react/src/common/ai-integration.ts +++ b/packages/devextreme-react/src/common/ai-integration.ts @@ -1,5 +1,7 @@ export { AIIntegration, +} from "devextreme/common/ai-integration"; +export type { AIIntegrationOptions, AIProvider, AIResponse, @@ -8,4 +10,4 @@ export { RequestParams, RequestParamsData, Response, -} from "devextreme/common/ai-integration"; +} from "devextreme/common/ai-integration"; \ No newline at end of file diff --git a/packages/devextreme-react/src/common/charts.ts b/packages/devextreme-react/src/common/charts.ts index 2ed2d4a55665..e9739d876e02 100644 --- a/packages/devextreme-react/src/common/charts.ts +++ b/packages/devextreme-react/src/common/charts.ts @@ -1,4 +1,8 @@ export { + registerGradient, + registerPattern, +} from "devextreme/common/charts"; +export type { AnimationEaseMode, AnnotationType, ArgumentAxisHoverMode, @@ -22,8 +26,6 @@ export { PaletteExtensionMode, PointInteractionMode, PointSymbol, - registerGradient, - registerPattern, RelativePosition, ScaleBreak, ScaleBreakLineStyle, @@ -44,4 +46,4 @@ export { VisualRangeUpdateMode, WordWrap, ZoomPanAction, -} from "devextreme/common/charts"; +} from "devextreme/common/charts"; \ No newline at end of file diff --git a/packages/devextreme-react/src/common/core/animation.ts b/packages/devextreme-react/src/common/core/animation.ts index 65dbc2236713..f4abdc9f6730 100644 --- a/packages/devextreme-react/src/common/core/animation.ts +++ b/packages/devextreme-react/src/common/core/animation.ts @@ -1,12 +1,14 @@ export { - AnimationConfig, animationPresets, - AnimationState, cancelAnimationFrame, - CollisionResolution, - CollisionResolutionCombination, fx, - PositionConfig, requestAnimationFrame, TransitionExecutor, } from "devextreme/common/core/animation"; +export type { + AnimationConfig, + AnimationState, + CollisionResolution, + CollisionResolutionCombination, + PositionConfig, +} from "devextreme/common/core/animation"; \ No newline at end of file diff --git a/packages/devextreme-react/src/common/core/environment.ts b/packages/devextreme-react/src/common/core/environment.ts index 8830f31c4290..1d0224d87bab 100644 --- a/packages/devextreme-react/src/common/core/environment.ts +++ b/packages/devextreme-react/src/common/core/environment.ts @@ -1,7 +1,9 @@ export { - Device, getTimeZones, hideTopOverlay, initMobileViewport, - SchedulerTimeZone, } from "devextreme/common/core/environment"; +export type { + Device, + SchedulerTimeZone, +} from "devextreme/common/core/environment"; \ No newline at end of file diff --git a/packages/devextreme-react/src/common/core/events.ts b/packages/devextreme-react/src/common/core/events.ts index f7b89308f060..98d7039f3d5f 100644 --- a/packages/devextreme-react/src/common/core/events.ts +++ b/packages/devextreme-react/src/common/core/events.ts @@ -1,4 +1,10 @@ export { + off, + on, + one, + trigger, +} from "devextreme/common/core/events"; +export type { AsyncCancelable, Cancelable, ChangedOptionInfo, @@ -7,8 +13,4 @@ export { InitializedEventInfo, ItemInfo, NativeEventInfo, - off, - on, - one, - trigger, -} from "devextreme/common/core/events"; +} from "devextreme/common/core/events"; \ No newline at end of file diff --git a/packages/devextreme-react/src/common/core/localization.ts b/packages/devextreme-react/src/common/core/localization.ts index 8dd8ec2ad04b..70c49292098c 100644 --- a/packages/devextreme-react/src/common/core/localization.ts +++ b/packages/devextreme-react/src/common/core/localization.ts @@ -1,5 +1,4 @@ export { - Format, formatDate, formatMessage, formatNumber, @@ -8,3 +7,6 @@ export { parseDate, parseNumber, } from "devextreme/common/core/localization"; +export type { + Format, +} from "devextreme/common/core/localization"; \ No newline at end of file diff --git a/packages/devextreme-react/src/common/data.ts b/packages/devextreme-react/src/common/data.ts index 16a77b01921d..c754de351171 100644 --- a/packages/devextreme-react/src/common/data.ts +++ b/packages/devextreme-react/src/common/data.ts @@ -1,43 +1,45 @@ export { applyChanges, ArrayStore, - ArrayStoreOptions, base64_encode, compileGetter, compileSetter, CustomStore, - CustomStoreOptions, DataSource, - DataSourceOptions, EdmLiteral, EndpointSelector, errorHandler, - FilterDescriptor, - GroupDescriptor, - GroupingInterval, - GroupItem, isGroupItemsArray, isItemsArray, isLoadResultObject, keyConverters, + LocalStore, + ODataContext, + ODataStore, + query, + setErrorHandler, +} from "devextreme/common/data"; +export type { + ArrayStoreOptions, + CustomStoreOptions, + DataSourceOptions, + FilterDescriptor, + GroupDescriptor, + GroupingInterval, + GroupItem, LangParams, LoadOptions, LoadResult, LoadResultObject, - LocalStore, LocalStoreOptions, - ODataContext, ODataContextOptions, - ODataStore, ODataStoreOptions, - query, Query, ResolvedData, SearchOperation, SelectDescriptor, - setErrorHandler, SortDescriptor, Store, StoreOptions, SummaryDescriptor, -} from "devextreme/common/data"; +} from "devextreme/common/data"; \ No newline at end of file diff --git a/packages/devextreme-react/src/common/export/excel.ts b/packages/devextreme-react/src/common/export/excel.ts index 694268a72b5e..b827b6111ad4 100644 --- a/packages/devextreme-react/src/common/export/excel.ts +++ b/packages/devextreme-react/src/common/export/excel.ts @@ -1,10 +1,12 @@ export { + exportDataGrid, + exportPivotGrid, +} from "devextreme/common/export/excel"; +export type { CellAddress, CellRange, DataGridCell, DataGridExportOptions, - exportDataGrid, - exportPivotGrid, PivotGridCell, PivotGridExportOptions, -} from "devextreme/common/export/excel"; +} from "devextreme/common/export/excel"; \ No newline at end of file diff --git a/packages/devextreme-react/src/common/export/pdf.ts b/packages/devextreme-react/src/common/export/pdf.ts index 2b95e14b2487..6745e7f8c208 100644 --- a/packages/devextreme-react/src/common/export/pdf.ts +++ b/packages/devextreme-react/src/common/export/pdf.ts @@ -1,9 +1,11 @@ export { + exportDataGrid, + exportGantt, +} from "devextreme/common/export/pdf"; +export type { Cell, DataGridCell, DataGridExportOptions, - exportDataGrid, - exportGantt, GanttExportFont, GanttExportOptions, -} from "devextreme/common/export/pdf"; +} from "devextreme/common/export/pdf"; \ No newline at end of file diff --git a/packages/devextreme-react/src/common/grids.ts b/packages/devextreme-react/src/common/grids.ts index a899cf0d9278..e5e8b126802d 100644 --- a/packages/devextreme-react/src/common/grids.ts +++ b/packages/devextreme-react/src/common/grids.ts @@ -1,4 +1,4 @@ -export { +export type { AdaptiveDetailRowPreparingInfo, AIColumnMode, AIColumnRequestCreatingInfo, @@ -76,4 +76,4 @@ export { StateStoring, SummaryType, ToolbarPreparingInfo, -} from "devextreme/common/grids"; +} from "devextreme/common/grids"; \ No newline at end of file diff --git a/packages/devextreme-react/src/common/index.ts b/packages/devextreme-react/src/common/index.ts index 0c8863a9cd93..f63c82f4a872 100644 --- a/packages/devextreme-react/src/common/index.ts +++ b/packages/devextreme-react/src/common/index.ts @@ -1,11 +1,26 @@ +import * as AiIntegrationModule from "devextreme/common/ai-integration"; +import * as ChartsModule from "devextreme/common/charts"; +import * as CoreAnimationModule from "devextreme/common/core/animation"; +import * as CoreEnvironmentModule from "devextreme/common/core/environment"; +import * as CoreEventsModule from "devextreme/common/core/events"; +import * as CoreLocalizationModule from "devextreme/common/core/localization"; +import * as DataModule from "devextreme/common/data"; +import * as ExportExcelModule from "devextreme/common/export/excel"; +import * as ExportPdfModule from "devextreme/common/export/pdf"; +import * as GridsModule from "devextreme/common/grids"; + export { + config, + Guid, + setTemplateEngine, +} from "devextreme/common"; +export type { ApplyValueMode, AsyncRule, ButtonStyle, ButtonType, CompareRule, ComparisonOperator, - config, CustomRule, DataStructure, DataType, @@ -24,7 +39,6 @@ export { FloatingActionButtonDirection, Format, GlobalConfig, - Guid, HorizontalAlignment, HorizontalEdge, LabelMode, @@ -45,7 +59,6 @@ export { ScrollMode, SearchMode, SelectAllMode, - setTemplateEngine, SimplifiedSearchMode, SingleMultipleAllOrNone, SingleMultipleOrNone, @@ -75,9 +88,265 @@ export { VerticalEdge, } from "devextreme/common"; -export * as AiIntegration from "./ai-integration"; -export * as Charts from "./charts"; -export * as Core from "./core/index"; -export * as Data from "./data"; -export * as Export from "./export/index"; -export * as Grids from "./grids"; +export namespace AiIntegration { + export const AIIntegration = AiIntegrationModule.AIIntegration; + export type AIIntegration = AiIntegrationModule.AIIntegration; + export type AIIntegrationOptions = AiIntegrationModule.AIIntegrationOptions; + export type AIProvider = AiIntegrationModule.AIProvider; + export type AIResponse = AiIntegrationModule.AIResponse; + export type GenerateGridColumnCommandResponse = AiIntegrationModule.GenerateGridColumnCommandResponse; + export type Prompt = AiIntegrationModule.Prompt; + export type RequestParams = AiIntegrationModule.RequestParams; + export type RequestParamsData = AiIntegrationModule.RequestParamsData; + export type Response = AiIntegrationModule.Response; +} + +export namespace Charts { + export type AnimationEaseMode = ChartsModule.AnimationEaseMode; + export type AnnotationType = ChartsModule.AnnotationType; + export type ArgumentAxisHoverMode = ChartsModule.ArgumentAxisHoverMode; + export type AxisScaleType = ChartsModule.AxisScaleType; + export type ChartsAxisLabelOverlap = ChartsModule.ChartsAxisLabelOverlap; + export type ChartsColor = ChartsModule.ChartsColor; + export type ChartsDataType = ChartsModule.ChartsDataType; + export type ChartsLabelOverlap = ChartsModule.ChartsLabelOverlap; + export type DashStyle = ChartsModule.DashStyle; + export type DiscreteAxisDivisionMode = ChartsModule.DiscreteAxisDivisionMode; + export type Font = ChartsModule.Font; + export type GradientColor = ChartsModule.GradientColor; + export type HatchDirection = ChartsModule.HatchDirection; + export type LabelOverlap = ChartsModule.LabelOverlap; + export type LabelPosition = ChartsModule.LabelPosition; + export type LegendHoverMode = ChartsModule.LegendHoverMode; + export type LegendItem = ChartsModule.LegendItem; + export type LegendMarkerState = ChartsModule.LegendMarkerState; + export type Palette = ChartsModule.Palette; + export type PaletteColorSet = ChartsModule.PaletteColorSet; + export type PaletteExtensionMode = ChartsModule.PaletteExtensionMode; + export type PointInteractionMode = ChartsModule.PointInteractionMode; + export type PointSymbol = ChartsModule.PointSymbol; + export const registerGradient = ChartsModule.registerGradient; + export const registerPattern = ChartsModule.registerPattern; + export type RelativePosition = ChartsModule.RelativePosition; + export type ScaleBreak = ChartsModule.ScaleBreak; + export type ScaleBreakLineStyle = ChartsModule.ScaleBreakLineStyle; + export type SeriesHoverMode = ChartsModule.SeriesHoverMode; + export type SeriesLabel = ChartsModule.SeriesLabel; + export type SeriesPoint = ChartsModule.SeriesPoint; + export type SeriesSelectionMode = ChartsModule.SeriesSelectionMode; + export type SeriesType = ChartsModule.SeriesType; + export type ShiftLabelOverlap = ChartsModule.ShiftLabelOverlap; + export type TextOverflow = ChartsModule.TextOverflow; + export type Theme = ChartsModule.Theme; + export type TimeInterval = ChartsModule.TimeInterval; + export type TimeIntervalConfig = ChartsModule.TimeIntervalConfig; + export type ValueAxisVisualRangeUpdateMode = ChartsModule.ValueAxisVisualRangeUpdateMode; + export type ValueErrorBarDisplayMode = ChartsModule.ValueErrorBarDisplayMode; + export type ValueErrorBarType = ChartsModule.ValueErrorBarType; + export type VisualRange = ChartsModule.VisualRange; + export type VisualRangeUpdateMode = ChartsModule.VisualRangeUpdateMode; + export type WordWrap = ChartsModule.WordWrap; + export type ZoomPanAction = ChartsModule.ZoomPanAction; +} + +export namespace Core { + export namespace Animation { + export type AnimationConfig = CoreAnimationModule.AnimationConfig; + export const animationPresets = CoreAnimationModule.animationPresets; + export type AnimationState = CoreAnimationModule.AnimationState; + export const cancelAnimationFrame = CoreAnimationModule.cancelAnimationFrame; + export type CollisionResolution = CoreAnimationModule.CollisionResolution; + export type CollisionResolutionCombination = CoreAnimationModule.CollisionResolutionCombination; + export const fx = CoreAnimationModule.fx; + export type PositionConfig = CoreAnimationModule.PositionConfig; + export const requestAnimationFrame = CoreAnimationModule.requestAnimationFrame; + export const TransitionExecutor = CoreAnimationModule.TransitionExecutor; + export type TransitionExecutor = CoreAnimationModule.TransitionExecutor; + } + export namespace Environment { + export type Device = CoreEnvironmentModule.Device; + export const getTimeZones = CoreEnvironmentModule.getTimeZones; + export const hideTopOverlay = CoreEnvironmentModule.hideTopOverlay; + export const initMobileViewport = CoreEnvironmentModule.initMobileViewport; + export type SchedulerTimeZone = CoreEnvironmentModule.SchedulerTimeZone; + } + export namespace Events { + export type AsyncCancelable = CoreEventsModule.AsyncCancelable; + export type Cancelable = CoreEventsModule.Cancelable; + export type ChangedOptionInfo = CoreEventsModule.ChangedOptionInfo; + export type EventInfo = CoreEventsModule.EventInfo; + export type EventObject = CoreEventsModule.EventObject; + export type InitializedEventInfo = CoreEventsModule.InitializedEventInfo; + export type ItemInfo = CoreEventsModule.ItemInfo; + export type NativeEventInfo = CoreEventsModule.NativeEventInfo; + export const off = CoreEventsModule.off; + export const on = CoreEventsModule.on; + export const one = CoreEventsModule.one; + export const trigger = CoreEventsModule.trigger; + } + export namespace Localization { + export type Format = CoreLocalizationModule.Format; + export const formatDate = CoreLocalizationModule.formatDate; + export const formatMessage = CoreLocalizationModule.formatMessage; + export const formatNumber = CoreLocalizationModule.formatNumber; + export const loadMessages = CoreLocalizationModule.loadMessages; + export const locale = CoreLocalizationModule.locale; + export const parseDate = CoreLocalizationModule.parseDate; + export const parseNumber = CoreLocalizationModule.parseNumber; + } +} + +export namespace Data { + export const applyChanges = DataModule.applyChanges; + export const ArrayStore = DataModule.ArrayStore; + export type ArrayStore = DataModule.ArrayStore; + export type ArrayStoreOptions = DataModule.ArrayStoreOptions; + export const base64_encode = DataModule.base64_encode; + export const compileGetter = DataModule.compileGetter; + export const compileSetter = DataModule.compileSetter; + export const CustomStore = DataModule.CustomStore; + export type CustomStore = DataModule.CustomStore; + export type CustomStoreOptions = DataModule.CustomStoreOptions; + export const DataSource = DataModule.DataSource; + export type DataSource = DataModule.DataSource; + export type DataSourceOptions = DataModule.DataSourceOptions; + export const EdmLiteral = DataModule.EdmLiteral; + export type EdmLiteral = DataModule.EdmLiteral; + export const EndpointSelector = DataModule.EndpointSelector; + export type EndpointSelector = DataModule.EndpointSelector; + export const errorHandler = DataModule.errorHandler; + export type FilterDescriptor = DataModule.FilterDescriptor; + export type GroupDescriptor = DataModule.GroupDescriptor; + export type GroupingInterval = DataModule.GroupingInterval; + export type GroupItem = DataModule.GroupItem; + export const isGroupItemsArray = DataModule.isGroupItemsArray; + export const isItemsArray = DataModule.isItemsArray; + export const isLoadResultObject = DataModule.isLoadResultObject; + export const keyConverters = DataModule.keyConverters; + export type LangParams = DataModule.LangParams; + export type LoadOptions = DataModule.LoadOptions; + export type LoadResult = DataModule.LoadResult; + export type LoadResultObject = DataModule.LoadResultObject; + export const LocalStore = DataModule.LocalStore; + export type LocalStore = DataModule.LocalStore; + export type LocalStoreOptions = DataModule.LocalStoreOptions; + export const ODataContext = DataModule.ODataContext; + export type ODataContext = DataModule.ODataContext; + export type ODataContextOptions = DataModule.ODataContextOptions; + export const ODataStore = DataModule.ODataStore; + export type ODataStore = DataModule.ODataStore; + export type ODataStoreOptions = DataModule.ODataStoreOptions; + export const query = DataModule.query; + export type Query = DataModule.Query; + export type ResolvedData = DataModule.ResolvedData; + export type SearchOperation = DataModule.SearchOperation; + export type SelectDescriptor = DataModule.SelectDescriptor; + export const setErrorHandler = DataModule.setErrorHandler; + export type SortDescriptor = DataModule.SortDescriptor; + export type Store = DataModule.Store; + export type StoreOptions = DataModule.StoreOptions; + export type SummaryDescriptor = DataModule.SummaryDescriptor; +} + +export namespace Export { + export namespace Excel { + export type CellAddress = ExportExcelModule.CellAddress; + export type CellRange = ExportExcelModule.CellRange; + export type DataGridCell = ExportExcelModule.DataGridCell; + export type DataGridExportOptions = ExportExcelModule.DataGridExportOptions; + export const exportDataGrid = ExportExcelModule.exportDataGrid; + export const exportPivotGrid = ExportExcelModule.exportPivotGrid; + export type PivotGridCell = ExportExcelModule.PivotGridCell; + export type PivotGridExportOptions = ExportExcelModule.PivotGridExportOptions; + } + export namespace Pdf { + export type Cell = ExportPdfModule.Cell; + export type DataGridCell = ExportPdfModule.DataGridCell; + export type DataGridExportOptions = ExportPdfModule.DataGridExportOptions; + export const exportDataGrid = ExportPdfModule.exportDataGrid; + export const exportGantt = ExportPdfModule.exportGantt; + export type GanttExportFont = ExportPdfModule.GanttExportFont; + export type GanttExportOptions = ExportPdfModule.GanttExportOptions; + } +} + +export function Grids(): void {} +export namespace Grids { + export type AdaptiveDetailRowPreparingInfo = GridsModule.AdaptiveDetailRowPreparingInfo; + export type AIColumnMode = GridsModule.AIColumnMode; + export type AIColumnRequestCreatingInfo = GridsModule.AIColumnRequestCreatingInfo; + export type ApplyChangesMode = GridsModule.ApplyChangesMode; + export type ApplyFilterMode = GridsModule.ApplyFilterMode; + export type ColumnAIOptions = GridsModule.ColumnAIOptions; + export type ColumnBase = GridsModule.ColumnBase; + export type ColumnButtonBase = GridsModule.ColumnButtonBase; + export type ColumnChooser = GridsModule.ColumnChooser; + export type ColumnChooserMode = GridsModule.ColumnChooserMode; + export type ColumnChooserSearchConfig = GridsModule.ColumnChooserSearchConfig; + export type ColumnChooserSelectionConfig = GridsModule.ColumnChooserSelectionConfig; + export type ColumnCustomizeTextArg = GridsModule.ColumnCustomizeTextArg; + export type ColumnFixing = GridsModule.ColumnFixing; + export type ColumnFixingIcons = GridsModule.ColumnFixingIcons; + export type ColumnFixingTexts = GridsModule.ColumnFixingTexts; + export type ColumnHeaderFilter = GridsModule.ColumnHeaderFilter; + export type ColumnHeaderFilterSearchConfig = GridsModule.ColumnHeaderFilterSearchConfig; + export type ColumnLookup = GridsModule.ColumnLookup; + export type ColumnResizeMode = GridsModule.ColumnResizeMode; + export type DataChange = GridsModule.DataChange; + export type DataChangeInfo = GridsModule.DataChangeInfo; + export type DataChangeType = GridsModule.DataChangeType; + export type DataErrorOccurredInfo = GridsModule.DataErrorOccurredInfo; + export type DataRenderMode = GridsModule.DataRenderMode; + export type EditingBase = GridsModule.EditingBase; + export type EditingTextsBase = GridsModule.EditingTextsBase; + export type EnterKeyAction = GridsModule.EnterKeyAction; + export type EnterKeyDirection = GridsModule.EnterKeyDirection; + export type FilterOperation = GridsModule.FilterOperation; + export type FilterPanel = GridsModule.FilterPanel; + export type FilterPanelTexts = GridsModule.FilterPanelTexts; + export type FilterRow = GridsModule.FilterRow; + export type FilterRowOperationDescriptions = GridsModule.FilterRowOperationDescriptions; + export type FilterType = GridsModule.FilterType; + export type FixedPosition = GridsModule.FixedPosition; + export type GridBase = GridsModule.GridBase; + export type GridBaseOptions, TRowData = any, TKey = any> = GridsModule.GridBaseOptions; + export type GridsContextMenuTarget = GridsModule.GridsContextMenuTarget; + export type GridsEditMode = GridsModule.GridsEditMode; + export type GridsEditRefreshMode = GridsModule.GridsEditRefreshMode; + export type GroupExpandMode = GridsModule.GroupExpandMode; + export type HeaderFilter = GridsModule.HeaderFilter; + export type HeaderFilterGroupInterval = GridsModule.HeaderFilterGroupInterval; + export type HeaderFilterSearchConfig = GridsModule.HeaderFilterSearchConfig; + export type HeaderFilterTexts = GridsModule.HeaderFilterTexts; + export type KeyboardNavigation = GridsModule.KeyboardNavigation; + export type KeyDownInfo = GridsModule.KeyDownInfo; + export type LoadPanel = GridsModule.LoadPanel; + export type NewRowInfo = GridsModule.NewRowInfo; + export type NewRowPosition = GridsModule.NewRowPosition; + export type Pager = GridsModule.Pager; + export type PagerPageSize = GridsModule.PagerPageSize; + export type PagingBase = GridsModule.PagingBase; + export type RowDragging, TRowData = any, TKey = any> = GridsModule.RowDragging; + export type RowDraggingTemplateData = GridsModule.RowDraggingTemplateData; + export type RowInsertedInfo = GridsModule.RowInsertedInfo; + export type RowInsertingInfo = GridsModule.RowInsertingInfo; + export type RowKeyInfo = GridsModule.RowKeyInfo; + export type RowRemovedInfo = GridsModule.RowRemovedInfo; + export type RowRemovingInfo = GridsModule.RowRemovingInfo; + export type RowUpdatedInfo = GridsModule.RowUpdatedInfo; + export type RowUpdatingInfo = GridsModule.RowUpdatingInfo; + export type RowValidatingInfo = GridsModule.RowValidatingInfo; + export type SavingInfo = GridsModule.SavingInfo; + export type ScrollingBase = GridsModule.ScrollingBase; + export type SearchPanel = GridsModule.SearchPanel; + export type SelectedFilterOperation = GridsModule.SelectedFilterOperation; + export type SelectionBase = GridsModule.SelectionBase; + export type SelectionChangedInfo = GridsModule.SelectionChangedInfo; + export type SelectionColumnDisplayMode = GridsModule.SelectionColumnDisplayMode; + export type Sorting = GridsModule.Sorting; + export type StartEditAction = GridsModule.StartEditAction; + export type StateStoreType = GridsModule.StateStoreType; + export type StateStoring = GridsModule.StateStoring; + export type SummaryType = GridsModule.SummaryType; + export type ToolbarPreparingInfo = GridsModule.ToolbarPreparingInfo; +} diff --git a/packages/devextreme-vue/src/common/ai-integration.ts b/packages/devextreme-vue/src/common/ai-integration.ts index b4af2d19435b..3b7fb4842c10 100644 --- a/packages/devextreme-vue/src/common/ai-integration.ts +++ b/packages/devextreme-vue/src/common/ai-integration.ts @@ -1,5 +1,7 @@ export { AIIntegration, +} from "devextreme/common/ai-integration"; +export type { AIIntegrationOptions, AIProvider, AIResponse, @@ -8,4 +10,4 @@ export { RequestParams, RequestParamsData, Response, -} from "devextreme/common/ai-integration"; +} from "devextreme/common/ai-integration"; \ No newline at end of file diff --git a/packages/devextreme-vue/src/common/charts.ts b/packages/devextreme-vue/src/common/charts.ts index 2ed2d4a55665..e9739d876e02 100644 --- a/packages/devextreme-vue/src/common/charts.ts +++ b/packages/devextreme-vue/src/common/charts.ts @@ -1,4 +1,8 @@ export { + registerGradient, + registerPattern, +} from "devextreme/common/charts"; +export type { AnimationEaseMode, AnnotationType, ArgumentAxisHoverMode, @@ -22,8 +26,6 @@ export { PaletteExtensionMode, PointInteractionMode, PointSymbol, - registerGradient, - registerPattern, RelativePosition, ScaleBreak, ScaleBreakLineStyle, @@ -44,4 +46,4 @@ export { VisualRangeUpdateMode, WordWrap, ZoomPanAction, -} from "devextreme/common/charts"; +} from "devextreme/common/charts"; \ No newline at end of file diff --git a/packages/devextreme-vue/src/common/core/animation.ts b/packages/devextreme-vue/src/common/core/animation.ts index 65dbc2236713..f4abdc9f6730 100644 --- a/packages/devextreme-vue/src/common/core/animation.ts +++ b/packages/devextreme-vue/src/common/core/animation.ts @@ -1,12 +1,14 @@ export { - AnimationConfig, animationPresets, - AnimationState, cancelAnimationFrame, - CollisionResolution, - CollisionResolutionCombination, fx, - PositionConfig, requestAnimationFrame, TransitionExecutor, } from "devextreme/common/core/animation"; +export type { + AnimationConfig, + AnimationState, + CollisionResolution, + CollisionResolutionCombination, + PositionConfig, +} from "devextreme/common/core/animation"; \ No newline at end of file diff --git a/packages/devextreme-vue/src/common/core/environment.ts b/packages/devextreme-vue/src/common/core/environment.ts index 8830f31c4290..1d0224d87bab 100644 --- a/packages/devextreme-vue/src/common/core/environment.ts +++ b/packages/devextreme-vue/src/common/core/environment.ts @@ -1,7 +1,9 @@ export { - Device, getTimeZones, hideTopOverlay, initMobileViewport, - SchedulerTimeZone, } from "devextreme/common/core/environment"; +export type { + Device, + SchedulerTimeZone, +} from "devextreme/common/core/environment"; \ No newline at end of file diff --git a/packages/devextreme-vue/src/common/core/events.ts b/packages/devextreme-vue/src/common/core/events.ts index f7b89308f060..98d7039f3d5f 100644 --- a/packages/devextreme-vue/src/common/core/events.ts +++ b/packages/devextreme-vue/src/common/core/events.ts @@ -1,4 +1,10 @@ export { + off, + on, + one, + trigger, +} from "devextreme/common/core/events"; +export type { AsyncCancelable, Cancelable, ChangedOptionInfo, @@ -7,8 +13,4 @@ export { InitializedEventInfo, ItemInfo, NativeEventInfo, - off, - on, - one, - trigger, -} from "devextreme/common/core/events"; +} from "devextreme/common/core/events"; \ No newline at end of file diff --git a/packages/devextreme-vue/src/common/core/localization.ts b/packages/devextreme-vue/src/common/core/localization.ts index 8dd8ec2ad04b..70c49292098c 100644 --- a/packages/devextreme-vue/src/common/core/localization.ts +++ b/packages/devextreme-vue/src/common/core/localization.ts @@ -1,5 +1,4 @@ export { - Format, formatDate, formatMessage, formatNumber, @@ -8,3 +7,6 @@ export { parseDate, parseNumber, } from "devextreme/common/core/localization"; +export type { + Format, +} from "devextreme/common/core/localization"; \ No newline at end of file diff --git a/packages/devextreme-vue/src/common/data.ts b/packages/devextreme-vue/src/common/data.ts index 16a77b01921d..c754de351171 100644 --- a/packages/devextreme-vue/src/common/data.ts +++ b/packages/devextreme-vue/src/common/data.ts @@ -1,43 +1,45 @@ export { applyChanges, ArrayStore, - ArrayStoreOptions, base64_encode, compileGetter, compileSetter, CustomStore, - CustomStoreOptions, DataSource, - DataSourceOptions, EdmLiteral, EndpointSelector, errorHandler, - FilterDescriptor, - GroupDescriptor, - GroupingInterval, - GroupItem, isGroupItemsArray, isItemsArray, isLoadResultObject, keyConverters, + LocalStore, + ODataContext, + ODataStore, + query, + setErrorHandler, +} from "devextreme/common/data"; +export type { + ArrayStoreOptions, + CustomStoreOptions, + DataSourceOptions, + FilterDescriptor, + GroupDescriptor, + GroupingInterval, + GroupItem, LangParams, LoadOptions, LoadResult, LoadResultObject, - LocalStore, LocalStoreOptions, - ODataContext, ODataContextOptions, - ODataStore, ODataStoreOptions, - query, Query, ResolvedData, SearchOperation, SelectDescriptor, - setErrorHandler, SortDescriptor, Store, StoreOptions, SummaryDescriptor, -} from "devextreme/common/data"; +} from "devextreme/common/data"; \ No newline at end of file diff --git a/packages/devextreme-vue/src/common/export/excel.ts b/packages/devextreme-vue/src/common/export/excel.ts index 694268a72b5e..b827b6111ad4 100644 --- a/packages/devextreme-vue/src/common/export/excel.ts +++ b/packages/devextreme-vue/src/common/export/excel.ts @@ -1,10 +1,12 @@ export { + exportDataGrid, + exportPivotGrid, +} from "devextreme/common/export/excel"; +export type { CellAddress, CellRange, DataGridCell, DataGridExportOptions, - exportDataGrid, - exportPivotGrid, PivotGridCell, PivotGridExportOptions, -} from "devextreme/common/export/excel"; +} from "devextreme/common/export/excel"; \ No newline at end of file diff --git a/packages/devextreme-vue/src/common/export/pdf.ts b/packages/devextreme-vue/src/common/export/pdf.ts index 2b95e14b2487..6745e7f8c208 100644 --- a/packages/devextreme-vue/src/common/export/pdf.ts +++ b/packages/devextreme-vue/src/common/export/pdf.ts @@ -1,9 +1,11 @@ export { + exportDataGrid, + exportGantt, +} from "devextreme/common/export/pdf"; +export type { Cell, DataGridCell, DataGridExportOptions, - exportDataGrid, - exportGantt, GanttExportFont, GanttExportOptions, -} from "devextreme/common/export/pdf"; +} from "devextreme/common/export/pdf"; \ No newline at end of file diff --git a/packages/devextreme-vue/src/common/grids.ts b/packages/devextreme-vue/src/common/grids.ts index a899cf0d9278..e5e8b126802d 100644 --- a/packages/devextreme-vue/src/common/grids.ts +++ b/packages/devextreme-vue/src/common/grids.ts @@ -1,4 +1,4 @@ -export { +export type { AdaptiveDetailRowPreparingInfo, AIColumnMode, AIColumnRequestCreatingInfo, @@ -76,4 +76,4 @@ export { StateStoring, SummaryType, ToolbarPreparingInfo, -} from "devextreme/common/grids"; +} from "devextreme/common/grids"; \ No newline at end of file diff --git a/packages/devextreme-vue/src/common/index.ts b/packages/devextreme-vue/src/common/index.ts index 0c8863a9cd93..f63c82f4a872 100644 --- a/packages/devextreme-vue/src/common/index.ts +++ b/packages/devextreme-vue/src/common/index.ts @@ -1,11 +1,26 @@ +import * as AiIntegrationModule from "devextreme/common/ai-integration"; +import * as ChartsModule from "devextreme/common/charts"; +import * as CoreAnimationModule from "devextreme/common/core/animation"; +import * as CoreEnvironmentModule from "devextreme/common/core/environment"; +import * as CoreEventsModule from "devextreme/common/core/events"; +import * as CoreLocalizationModule from "devextreme/common/core/localization"; +import * as DataModule from "devextreme/common/data"; +import * as ExportExcelModule from "devextreme/common/export/excel"; +import * as ExportPdfModule from "devextreme/common/export/pdf"; +import * as GridsModule from "devextreme/common/grids"; + export { + config, + Guid, + setTemplateEngine, +} from "devextreme/common"; +export type { ApplyValueMode, AsyncRule, ButtonStyle, ButtonType, CompareRule, ComparisonOperator, - config, CustomRule, DataStructure, DataType, @@ -24,7 +39,6 @@ export { FloatingActionButtonDirection, Format, GlobalConfig, - Guid, HorizontalAlignment, HorizontalEdge, LabelMode, @@ -45,7 +59,6 @@ export { ScrollMode, SearchMode, SelectAllMode, - setTemplateEngine, SimplifiedSearchMode, SingleMultipleAllOrNone, SingleMultipleOrNone, @@ -75,9 +88,265 @@ export { VerticalEdge, } from "devextreme/common"; -export * as AiIntegration from "./ai-integration"; -export * as Charts from "./charts"; -export * as Core from "./core/index"; -export * as Data from "./data"; -export * as Export from "./export/index"; -export * as Grids from "./grids"; +export namespace AiIntegration { + export const AIIntegration = AiIntegrationModule.AIIntegration; + export type AIIntegration = AiIntegrationModule.AIIntegration; + export type AIIntegrationOptions = AiIntegrationModule.AIIntegrationOptions; + export type AIProvider = AiIntegrationModule.AIProvider; + export type AIResponse = AiIntegrationModule.AIResponse; + export type GenerateGridColumnCommandResponse = AiIntegrationModule.GenerateGridColumnCommandResponse; + export type Prompt = AiIntegrationModule.Prompt; + export type RequestParams = AiIntegrationModule.RequestParams; + export type RequestParamsData = AiIntegrationModule.RequestParamsData; + export type Response = AiIntegrationModule.Response; +} + +export namespace Charts { + export type AnimationEaseMode = ChartsModule.AnimationEaseMode; + export type AnnotationType = ChartsModule.AnnotationType; + export type ArgumentAxisHoverMode = ChartsModule.ArgumentAxisHoverMode; + export type AxisScaleType = ChartsModule.AxisScaleType; + export type ChartsAxisLabelOverlap = ChartsModule.ChartsAxisLabelOverlap; + export type ChartsColor = ChartsModule.ChartsColor; + export type ChartsDataType = ChartsModule.ChartsDataType; + export type ChartsLabelOverlap = ChartsModule.ChartsLabelOverlap; + export type DashStyle = ChartsModule.DashStyle; + export type DiscreteAxisDivisionMode = ChartsModule.DiscreteAxisDivisionMode; + export type Font = ChartsModule.Font; + export type GradientColor = ChartsModule.GradientColor; + export type HatchDirection = ChartsModule.HatchDirection; + export type LabelOverlap = ChartsModule.LabelOverlap; + export type LabelPosition = ChartsModule.LabelPosition; + export type LegendHoverMode = ChartsModule.LegendHoverMode; + export type LegendItem = ChartsModule.LegendItem; + export type LegendMarkerState = ChartsModule.LegendMarkerState; + export type Palette = ChartsModule.Palette; + export type PaletteColorSet = ChartsModule.PaletteColorSet; + export type PaletteExtensionMode = ChartsModule.PaletteExtensionMode; + export type PointInteractionMode = ChartsModule.PointInteractionMode; + export type PointSymbol = ChartsModule.PointSymbol; + export const registerGradient = ChartsModule.registerGradient; + export const registerPattern = ChartsModule.registerPattern; + export type RelativePosition = ChartsModule.RelativePosition; + export type ScaleBreak = ChartsModule.ScaleBreak; + export type ScaleBreakLineStyle = ChartsModule.ScaleBreakLineStyle; + export type SeriesHoverMode = ChartsModule.SeriesHoverMode; + export type SeriesLabel = ChartsModule.SeriesLabel; + export type SeriesPoint = ChartsModule.SeriesPoint; + export type SeriesSelectionMode = ChartsModule.SeriesSelectionMode; + export type SeriesType = ChartsModule.SeriesType; + export type ShiftLabelOverlap = ChartsModule.ShiftLabelOverlap; + export type TextOverflow = ChartsModule.TextOverflow; + export type Theme = ChartsModule.Theme; + export type TimeInterval = ChartsModule.TimeInterval; + export type TimeIntervalConfig = ChartsModule.TimeIntervalConfig; + export type ValueAxisVisualRangeUpdateMode = ChartsModule.ValueAxisVisualRangeUpdateMode; + export type ValueErrorBarDisplayMode = ChartsModule.ValueErrorBarDisplayMode; + export type ValueErrorBarType = ChartsModule.ValueErrorBarType; + export type VisualRange = ChartsModule.VisualRange; + export type VisualRangeUpdateMode = ChartsModule.VisualRangeUpdateMode; + export type WordWrap = ChartsModule.WordWrap; + export type ZoomPanAction = ChartsModule.ZoomPanAction; +} + +export namespace Core { + export namespace Animation { + export type AnimationConfig = CoreAnimationModule.AnimationConfig; + export const animationPresets = CoreAnimationModule.animationPresets; + export type AnimationState = CoreAnimationModule.AnimationState; + export const cancelAnimationFrame = CoreAnimationModule.cancelAnimationFrame; + export type CollisionResolution = CoreAnimationModule.CollisionResolution; + export type CollisionResolutionCombination = CoreAnimationModule.CollisionResolutionCombination; + export const fx = CoreAnimationModule.fx; + export type PositionConfig = CoreAnimationModule.PositionConfig; + export const requestAnimationFrame = CoreAnimationModule.requestAnimationFrame; + export const TransitionExecutor = CoreAnimationModule.TransitionExecutor; + export type TransitionExecutor = CoreAnimationModule.TransitionExecutor; + } + export namespace Environment { + export type Device = CoreEnvironmentModule.Device; + export const getTimeZones = CoreEnvironmentModule.getTimeZones; + export const hideTopOverlay = CoreEnvironmentModule.hideTopOverlay; + export const initMobileViewport = CoreEnvironmentModule.initMobileViewport; + export type SchedulerTimeZone = CoreEnvironmentModule.SchedulerTimeZone; + } + export namespace Events { + export type AsyncCancelable = CoreEventsModule.AsyncCancelable; + export type Cancelable = CoreEventsModule.Cancelable; + export type ChangedOptionInfo = CoreEventsModule.ChangedOptionInfo; + export type EventInfo = CoreEventsModule.EventInfo; + export type EventObject = CoreEventsModule.EventObject; + export type InitializedEventInfo = CoreEventsModule.InitializedEventInfo; + export type ItemInfo = CoreEventsModule.ItemInfo; + export type NativeEventInfo = CoreEventsModule.NativeEventInfo; + export const off = CoreEventsModule.off; + export const on = CoreEventsModule.on; + export const one = CoreEventsModule.one; + export const trigger = CoreEventsModule.trigger; + } + export namespace Localization { + export type Format = CoreLocalizationModule.Format; + export const formatDate = CoreLocalizationModule.formatDate; + export const formatMessage = CoreLocalizationModule.formatMessage; + export const formatNumber = CoreLocalizationModule.formatNumber; + export const loadMessages = CoreLocalizationModule.loadMessages; + export const locale = CoreLocalizationModule.locale; + export const parseDate = CoreLocalizationModule.parseDate; + export const parseNumber = CoreLocalizationModule.parseNumber; + } +} + +export namespace Data { + export const applyChanges = DataModule.applyChanges; + export const ArrayStore = DataModule.ArrayStore; + export type ArrayStore = DataModule.ArrayStore; + export type ArrayStoreOptions = DataModule.ArrayStoreOptions; + export const base64_encode = DataModule.base64_encode; + export const compileGetter = DataModule.compileGetter; + export const compileSetter = DataModule.compileSetter; + export const CustomStore = DataModule.CustomStore; + export type CustomStore = DataModule.CustomStore; + export type CustomStoreOptions = DataModule.CustomStoreOptions; + export const DataSource = DataModule.DataSource; + export type DataSource = DataModule.DataSource; + export type DataSourceOptions = DataModule.DataSourceOptions; + export const EdmLiteral = DataModule.EdmLiteral; + export type EdmLiteral = DataModule.EdmLiteral; + export const EndpointSelector = DataModule.EndpointSelector; + export type EndpointSelector = DataModule.EndpointSelector; + export const errorHandler = DataModule.errorHandler; + export type FilterDescriptor = DataModule.FilterDescriptor; + export type GroupDescriptor = DataModule.GroupDescriptor; + export type GroupingInterval = DataModule.GroupingInterval; + export type GroupItem = DataModule.GroupItem; + export const isGroupItemsArray = DataModule.isGroupItemsArray; + export const isItemsArray = DataModule.isItemsArray; + export const isLoadResultObject = DataModule.isLoadResultObject; + export const keyConverters = DataModule.keyConverters; + export type LangParams = DataModule.LangParams; + export type LoadOptions = DataModule.LoadOptions; + export type LoadResult = DataModule.LoadResult; + export type LoadResultObject = DataModule.LoadResultObject; + export const LocalStore = DataModule.LocalStore; + export type LocalStore = DataModule.LocalStore; + export type LocalStoreOptions = DataModule.LocalStoreOptions; + export const ODataContext = DataModule.ODataContext; + export type ODataContext = DataModule.ODataContext; + export type ODataContextOptions = DataModule.ODataContextOptions; + export const ODataStore = DataModule.ODataStore; + export type ODataStore = DataModule.ODataStore; + export type ODataStoreOptions = DataModule.ODataStoreOptions; + export const query = DataModule.query; + export type Query = DataModule.Query; + export type ResolvedData = DataModule.ResolvedData; + export type SearchOperation = DataModule.SearchOperation; + export type SelectDescriptor = DataModule.SelectDescriptor; + export const setErrorHandler = DataModule.setErrorHandler; + export type SortDescriptor = DataModule.SortDescriptor; + export type Store = DataModule.Store; + export type StoreOptions = DataModule.StoreOptions; + export type SummaryDescriptor = DataModule.SummaryDescriptor; +} + +export namespace Export { + export namespace Excel { + export type CellAddress = ExportExcelModule.CellAddress; + export type CellRange = ExportExcelModule.CellRange; + export type DataGridCell = ExportExcelModule.DataGridCell; + export type DataGridExportOptions = ExportExcelModule.DataGridExportOptions; + export const exportDataGrid = ExportExcelModule.exportDataGrid; + export const exportPivotGrid = ExportExcelModule.exportPivotGrid; + export type PivotGridCell = ExportExcelModule.PivotGridCell; + export type PivotGridExportOptions = ExportExcelModule.PivotGridExportOptions; + } + export namespace Pdf { + export type Cell = ExportPdfModule.Cell; + export type DataGridCell = ExportPdfModule.DataGridCell; + export type DataGridExportOptions = ExportPdfModule.DataGridExportOptions; + export const exportDataGrid = ExportPdfModule.exportDataGrid; + export const exportGantt = ExportPdfModule.exportGantt; + export type GanttExportFont = ExportPdfModule.GanttExportFont; + export type GanttExportOptions = ExportPdfModule.GanttExportOptions; + } +} + +export function Grids(): void {} +export namespace Grids { + export type AdaptiveDetailRowPreparingInfo = GridsModule.AdaptiveDetailRowPreparingInfo; + export type AIColumnMode = GridsModule.AIColumnMode; + export type AIColumnRequestCreatingInfo = GridsModule.AIColumnRequestCreatingInfo; + export type ApplyChangesMode = GridsModule.ApplyChangesMode; + export type ApplyFilterMode = GridsModule.ApplyFilterMode; + export type ColumnAIOptions = GridsModule.ColumnAIOptions; + export type ColumnBase = GridsModule.ColumnBase; + export type ColumnButtonBase = GridsModule.ColumnButtonBase; + export type ColumnChooser = GridsModule.ColumnChooser; + export type ColumnChooserMode = GridsModule.ColumnChooserMode; + export type ColumnChooserSearchConfig = GridsModule.ColumnChooserSearchConfig; + export type ColumnChooserSelectionConfig = GridsModule.ColumnChooserSelectionConfig; + export type ColumnCustomizeTextArg = GridsModule.ColumnCustomizeTextArg; + export type ColumnFixing = GridsModule.ColumnFixing; + export type ColumnFixingIcons = GridsModule.ColumnFixingIcons; + export type ColumnFixingTexts = GridsModule.ColumnFixingTexts; + export type ColumnHeaderFilter = GridsModule.ColumnHeaderFilter; + export type ColumnHeaderFilterSearchConfig = GridsModule.ColumnHeaderFilterSearchConfig; + export type ColumnLookup = GridsModule.ColumnLookup; + export type ColumnResizeMode = GridsModule.ColumnResizeMode; + export type DataChange = GridsModule.DataChange; + export type DataChangeInfo = GridsModule.DataChangeInfo; + export type DataChangeType = GridsModule.DataChangeType; + export type DataErrorOccurredInfo = GridsModule.DataErrorOccurredInfo; + export type DataRenderMode = GridsModule.DataRenderMode; + export type EditingBase = GridsModule.EditingBase; + export type EditingTextsBase = GridsModule.EditingTextsBase; + export type EnterKeyAction = GridsModule.EnterKeyAction; + export type EnterKeyDirection = GridsModule.EnterKeyDirection; + export type FilterOperation = GridsModule.FilterOperation; + export type FilterPanel = GridsModule.FilterPanel; + export type FilterPanelTexts = GridsModule.FilterPanelTexts; + export type FilterRow = GridsModule.FilterRow; + export type FilterRowOperationDescriptions = GridsModule.FilterRowOperationDescriptions; + export type FilterType = GridsModule.FilterType; + export type FixedPosition = GridsModule.FixedPosition; + export type GridBase = GridsModule.GridBase; + export type GridBaseOptions, TRowData = any, TKey = any> = GridsModule.GridBaseOptions; + export type GridsContextMenuTarget = GridsModule.GridsContextMenuTarget; + export type GridsEditMode = GridsModule.GridsEditMode; + export type GridsEditRefreshMode = GridsModule.GridsEditRefreshMode; + export type GroupExpandMode = GridsModule.GroupExpandMode; + export type HeaderFilter = GridsModule.HeaderFilter; + export type HeaderFilterGroupInterval = GridsModule.HeaderFilterGroupInterval; + export type HeaderFilterSearchConfig = GridsModule.HeaderFilterSearchConfig; + export type HeaderFilterTexts = GridsModule.HeaderFilterTexts; + export type KeyboardNavigation = GridsModule.KeyboardNavigation; + export type KeyDownInfo = GridsModule.KeyDownInfo; + export type LoadPanel = GridsModule.LoadPanel; + export type NewRowInfo = GridsModule.NewRowInfo; + export type NewRowPosition = GridsModule.NewRowPosition; + export type Pager = GridsModule.Pager; + export type PagerPageSize = GridsModule.PagerPageSize; + export type PagingBase = GridsModule.PagingBase; + export type RowDragging, TRowData = any, TKey = any> = GridsModule.RowDragging; + export type RowDraggingTemplateData = GridsModule.RowDraggingTemplateData; + export type RowInsertedInfo = GridsModule.RowInsertedInfo; + export type RowInsertingInfo = GridsModule.RowInsertingInfo; + export type RowKeyInfo = GridsModule.RowKeyInfo; + export type RowRemovedInfo = GridsModule.RowRemovedInfo; + export type RowRemovingInfo = GridsModule.RowRemovingInfo; + export type RowUpdatedInfo = GridsModule.RowUpdatedInfo; + export type RowUpdatingInfo = GridsModule.RowUpdatingInfo; + export type RowValidatingInfo = GridsModule.RowValidatingInfo; + export type SavingInfo = GridsModule.SavingInfo; + export type ScrollingBase = GridsModule.ScrollingBase; + export type SearchPanel = GridsModule.SearchPanel; + export type SelectedFilterOperation = GridsModule.SelectedFilterOperation; + export type SelectionBase = GridsModule.SelectionBase; + export type SelectionChangedInfo = GridsModule.SelectionChangedInfo; + export type SelectionColumnDisplayMode = GridsModule.SelectionColumnDisplayMode; + export type Sorting = GridsModule.Sorting; + export type StartEditAction = GridsModule.StartEditAction; + export type StateStoreType = GridsModule.StateStoreType; + export type StateStoring = GridsModule.StateStoring; + export type SummaryType = GridsModule.SummaryType; + export type ToolbarPreparingInfo = GridsModule.ToolbarPreparingInfo; +} diff --git a/packages/nx-infra-plugin/src/executors/generate-components/angular-generator.ts b/packages/nx-infra-plugin/src/executors/generate-components/angular-generator.ts index d1ccf036ccb9..2249d46921db 100644 --- a/packages/nx-infra-plugin/src/executors/generate-components/angular-generator.ts +++ b/packages/nx-infra-plugin/src/executors/generate-components/angular-generator.ts @@ -74,6 +74,14 @@ export async function generateAngularComponents( }); logger.verbose('✓ Module facades generated'); + logger.verbose('🔗 Generating common reexports...'); + AngularCommonReexportsGenerator.generate({ + outputPath: path.dirname(componentsDir), + metadata: metaData, + templatingOptions: config.templatingOptions, + }); + logger.verbose('✓ Common reexports generated'); + logger.verbose('📋 Generating index facades...'); const facadeGenerator = new AngularFacadeGenerator(); facadeGenerator.generate({ @@ -83,15 +91,8 @@ export async function generateAngularComponents( }, }, commonImports: ['./common', './common/grids', './common/charts'], + commonReexports: metaData?.commonReexports, templatingOptions: config.templatingOptions, }); logger.verbose('✓ Index facades generated'); - - logger.verbose('🔗 Generating common reexports...'); - AngularCommonReexportsGenerator.generate({ - outputPath: path.dirname(componentsDir), - metadata: metaData, - templatingOptions: config.templatingOptions, - }); - logger.verbose('✓ Common reexports generated'); }