Skip to content
23 changes: 23 additions & 0 deletions apps/demos/utils/bundle/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const prepareModulesToNamedImport = () => {
'time_zone_utils.js',
'devextreme/ui/dialog.js',
'common/charts.js',
'common/data.js',
];

const paths = [
Expand Down Expand Up @@ -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) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export {
AIIntegration,
} from 'devextreme/common/ai-integration';
export type {
AIIntegrationOptions,
AIProvider,
AIResponse,
Expand All @@ -8,4 +10,4 @@ export {
RequestParams,
RequestParamsData,
Response,
} from 'devextreme/common/ai-integration';
} from 'devextreme/common/ai-integration';
8 changes: 5 additions & 3 deletions packages/devextreme-angular/src/common/charts/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
export {
registerGradient,
registerPattern,
} from 'devextreme/common/charts';
export type {
AnimationEaseMode,
AnnotationType,
ArgumentAxisHoverMode,
Expand All @@ -22,8 +26,6 @@ export {
PaletteExtensionMode,
PointInteractionMode,
PointSymbol,
registerGradient,
registerPattern,
RelativePosition,
ScaleBreak,
ScaleBreakLineStyle,
Expand All @@ -44,4 +46,4 @@ export {
VisualRangeUpdateMode,
WordWrap,
ZoomPanAction,
} from 'devextreme/common/charts';
} from 'devextreme/common/charts';
12 changes: 7 additions & 5 deletions packages/devextreme-angular/src/common/core/animation/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
export {
Device,
getTimeZones,
hideTopOverlay,
initMobileViewport,
SchedulerTimeZone,
} from 'devextreme/common/core/environment';
export type {
Device,
SchedulerTimeZone,
} from 'devextreme/common/core/environment';
12 changes: 7 additions & 5 deletions packages/devextreme-angular/src/common/core/events/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
export {
off,
on,
one,
trigger,
} from 'devextreme/common/core/events';
export type {
AsyncCancelable,
Cancelable,
ChangedOptionInfo,
Expand All @@ -7,8 +13,4 @@ export {
InitializedEventInfo,
ItemInfo,
NativeEventInfo,
off,
on,
one,
trigger,
} from 'devextreme/common/core/events';
} from 'devextreme/common/core/events';
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export {
Format,
formatDate,
formatMessage,
formatNumber,
Expand All @@ -8,3 +7,6 @@ export {
parseDate,
parseNumber,
} from 'devextreme/common/core/localization';
export type {
Format,
} from 'devextreme/common/core/localization';
28 changes: 15 additions & 13 deletions packages/devextreme-angular/src/common/data/index.ts
Original file line number Diff line number Diff line change
@@ -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';
8 changes: 5 additions & 3 deletions packages/devextreme-angular/src/common/export/excel/index.ts
Original file line number Diff line number Diff line change
@@ -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';
8 changes: 5 additions & 3 deletions packages/devextreme-angular/src/common/export/pdf/index.ts
Original file line number Diff line number Diff line change
@@ -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';
4 changes: 2 additions & 2 deletions packages/devextreme-angular/src/common/grids/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export {
export type {
AdaptiveDetailRowPreparingInfo,
AIColumnMode,
AIColumnRequestCreatingInfo,
Expand Down Expand Up @@ -76,4 +76,4 @@ export {
StateStoring,
SummaryType,
ToolbarPreparingInfo,
} from 'devextreme/common/grids';
} from 'devextreme/common/grids';
Loading
Loading