Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 Down
6 changes: 4 additions & 2 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 Down
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,
} from 'devextreme/common/core/environment';
export type {
Device,
SchedulerTimeZone,
} from 'devextreme/common/core/environment';
10 changes: 6 additions & 4 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';
1 change: 1 addition & 0 deletions packages/devextreme-angular/src/common/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export * as Animation from './animation';
export * as Environment from './environment';
export * as Events from './events';
export * as Localization from './localization';

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';
26 changes: 14 additions & 12 deletions packages/devextreme-angular/src/common/data/index.ts
Original file line number Diff line number Diff line change
@@ -1,41 +1,43 @@
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,
Expand Down
6 changes: 4 additions & 2 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';
1 change: 1 addition & 0 deletions packages/devextreme-angular/src/common/export/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * as Excel from './excel';
export * as Pdf from './pdf';

6 changes: 4 additions & 2 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';
2 changes: 1 addition & 1 deletion 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
Loading
Loading