UNPKG

devextreme

Version:

JavaScript/TypeScript Component Suite for Responsive Web Development

12 lines (11 loc) 553 B
/** * DevExtreme (esm/__internal/scheduler/view_model/generate_view_model/steps/add_direction.js) * Version: 25.2.5 * Build date: Fri Feb 20 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ export const addDirection = (entities, allDayPanelDirection, regularPanelDirection) => entities.map((entity => Object.assign({}, entity, { direction: entity.isAllDayPanelOccupied ? allDayPanelDirection : regularPanelDirection })));