UNPKG

devextreme

Version:

JavaScript/TypeScript Component Suite for Responsive Web Development

134 lines (133 loc) 3.69 kB
/** * DevExtreme (esm/__internal/scheduler/r1/utils/index.js) * Version: 26.1.3 * Build date: Wed Jun 10 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { getThemeType } from "../../../scheduler/r1/utils/themes"; import { calculateEndViewDate, calculateRows, calculateStartViewDate, getDateByIndex } from "./agenda"; import { calculateStartViewDate as dayCalculateStartViewDate } from "./day"; import { calculateCellIndex, calculateStartViewDate as monthCalculateStartViewDate, getCellText, getViewStartByOptions } from "./month"; import { addHeightToStyle, addToStyles, addWidthToStyle, getCellSizeHorizontalClass, getCellSizeVerticalClass, getGroupCellClasses } from "./render"; import { calculateStartViewDate as timelineMonthCalculateStartViewDate } from "./timeline_month"; import { getDateForHeaderText } from "./timeline_week"; import { calculateStartViewDate as weekCalculateStartViewDate, calculateViewStartDate as weekCalculateViewStartDate, getIntervalDuration, getTimePanelCellText } from "./week"; export { calculateCellIndex, calculateDayDuration, calculateIsGroupedAllDayPanel, calculateViewStartDate, extendGroupItemsForGroupingByDate, getAppointmentKey, getCalculatedFirstDayOfWeek, getCellDuration, getDatesWithoutTime, getDisplayedCellCount, getDisplayedRowCount, getGroupPanelData, getHeaderCellText, getHorizontalGroupCount, getIsGroupedAllDayPanel, getKeyByGroup, getOverflowIndicatorColor, getSkippedHoursInRange, getStartViewDateTimeOffset, getStartViewDateWithoutDST, getToday, getTotalCellCountByCompleteData, getTotalRowCountByCompleteData, getValidCellDateForLocalTimeFormat, getVerticalGroupCountClass, getViewStartByOptions, isAppointmentTakesAllDay, isDateAndTimeView, isDateInRange, isFirstCellInMonthWithIntervalCount, isGroupingByDate, isHorizontalGroupingApplied, isHorizontalView, isTimelineView, isVerticalGroupingApplied, setOptionHour, splitNumber } from "./base"; export { excludeFromRecurrence } from "./exclude_from_recurrence"; export { formatWeekday, formatWeekdayAndDay } from "./format_weekday"; export const agendaUtils = { calculateEndViewDate: calculateEndViewDate, calculateStartViewDate: calculateStartViewDate, calculateRows: calculateRows, getDateByIndex: getDateByIndex }; export const dayUtils = { calculateStartViewDate: dayCalculateStartViewDate }; export const weekUtils = { getIntervalDuration: getIntervalDuration, getTimePanelCellText: getTimePanelCellText, calculateStartViewDate: weekCalculateStartViewDate, calculateViewStartDate: weekCalculateViewStartDate }; export const monthUtils = { getViewStartByOptions: getViewStartByOptions, getCellText: getCellText, calculateCellIndex: calculateCellIndex, calculateStartViewDate: monthCalculateStartViewDate }; export const timelineWeekUtils = { getDateForHeaderText: getDateForHeaderText }; export const timelineMonthUtils = { calculateStartViewDate: timelineMonthCalculateStartViewDate }; export const renderUtils = { addToStyles: addToStyles, addWidthToStyle: addWidthToStyle, addHeightToStyle: addHeightToStyle, getGroupCellClasses: getGroupCellClasses, getCellSizeHorizontalClass: getCellSizeHorizontalClass, getCellSizeVerticalClass: getCellSizeVerticalClass }; export const themeUtils = { getThemeType: getThemeType };