@primeui/vue-scheduler 0.0.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +23 -0
- package/README.md +311 -0
- package/dist/Scheduler.context.d.mts +625 -0
- package/dist/Scheduler.context.d.ts +625 -0
- package/dist/Scheduler.event-context.d.mts +54 -0
- package/dist/Scheduler.event-context.d.ts +54 -0
- package/dist/Scheduler.header-context.d.mts +51 -0
- package/dist/Scheduler.header-context.d.ts +51 -0
- package/dist/Scheduler.overlay-context.d.mts +131 -0
- package/dist/Scheduler.overlay-context.d.ts +131 -0
- package/dist/Scheduler.parts.d.mts +79 -0
- package/dist/Scheduler.parts.d.ts +79 -0
- package/dist/Scheduler.payloads.d.mts +19 -0
- package/dist/Scheduler.payloads.d.ts +19 -0
- package/dist/Scheduler.props.d.mts +134 -0
- package/dist/Scheduler.props.d.ts +134 -0
- package/dist/Scheduler.resource-context.d.mts +162 -0
- package/dist/Scheduler.resource-context.d.ts +162 -0
- package/dist/Scheduler.test-utils.d.mts +4 -0
- package/dist/Scheduler.test-utils.d.ts +4 -0
- package/dist/Scheduler.utility-context.d.mts +112 -0
- package/dist/Scheduler.utility-context.d.ts +112 -0
- package/dist/Scheduler.vue.d.mts +428 -0
- package/dist/Scheduler.vue.d.ts +428 -0
- package/dist/chunks/useResourceStore-D6lZ4kim.mjs +771 -0
- package/dist/composables/index.d.mts +3 -0
- package/dist/composables/index.d.ts +3 -0
- package/dist/composables/index.mjs +6 -0
- package/dist/composables/useAdaptiveRendering.d.mts +12 -0
- package/dist/composables/useAdaptiveRendering.d.ts +12 -0
- package/dist/composables/useAdaptiveResourceMode.d.mts +39 -0
- package/dist/composables/useAdaptiveResourceMode.d.ts +39 -0
- package/dist/composables/useDateGridEngine.d.mts +7 -0
- package/dist/composables/useDateGridEngine.d.ts +7 -0
- package/dist/composables/useDateMonthGridEngine.d.mts +7 -0
- package/dist/composables/useDateMonthGridEngine.d.ts +7 -0
- package/dist/composables/useHorizontalGroupedSizing.d.mts +24 -0
- package/dist/composables/useHorizontalGroupedSizing.d.ts +24 -0
- package/dist/composables/useInlineEdit.d.mts +17 -0
- package/dist/composables/useInlineEdit.d.ts +17 -0
- package/dist/composables/useMonthGridEngine.d.mts +3 -0
- package/dist/composables/useMonthGridEngine.d.ts +3 -0
- package/dist/composables/useResourceGridEngine.d.mts +7 -0
- package/dist/composables/useResourceGridEngine.d.ts +7 -0
- package/dist/composables/useResourceMonthGridEngine.d.mts +7 -0
- package/dist/composables/useResourceMonthGridEngine.d.ts +7 -0
- package/dist/composables/useResourceStore.d.mts +324 -0
- package/dist/composables/useResourceStore.d.ts +324 -0
- package/dist/composables/useSchedulerAppointmentSlotTracking.d.mts +15 -0
- package/dist/composables/useSchedulerAppointmentSlotTracking.d.ts +15 -0
- package/dist/composables/useSchedulerAutoScroll.d.mts +16 -0
- package/dist/composables/useSchedulerAutoScroll.d.ts +16 -0
- package/dist/composables/useSchedulerContext.d.mts +143 -0
- package/dist/composables/useSchedulerContext.d.ts +143 -0
- package/dist/composables/useSchedulerEventActions.d.mts +57 -0
- package/dist/composables/useSchedulerEventActions.d.ts +57 -0
- package/dist/composables/useSchedulerEventState.d.mts +26 -0
- package/dist/composables/useSchedulerEventState.d.ts +26 -0
- package/dist/composables/useSchedulerFormatting.d.mts +34 -0
- package/dist/composables/useSchedulerFormatting.d.ts +34 -0
- package/dist/composables/useSchedulerInlineEditState.d.mts +24 -0
- package/dist/composables/useSchedulerInlineEditState.d.ts +24 -0
- package/dist/composables/useSchedulerInteractionState.d.mts +65 -0
- package/dist/composables/useSchedulerInteractionState.d.ts +65 -0
- package/dist/composables/useSchedulerOverlayState.d.mts +596 -0
- package/dist/composables/useSchedulerOverlayState.d.ts +596 -0
- package/dist/composables/useSchedulerPrintRuntime.d.mts +45 -0
- package/dist/composables/useSchedulerPrintRuntime.d.ts +45 -0
- package/dist/composables/useSchedulerRecurrenceState.d.mts +102 -0
- package/dist/composables/useSchedulerRecurrenceState.d.ts +102 -0
- package/dist/composables/useSchedulerResourceConflicts.d.mts +26 -0
- package/dist/composables/useSchedulerResourceConflicts.d.ts +26 -0
- package/dist/composables/useSchedulerResourceState.d.mts +406 -0
- package/dist/composables/useSchedulerResourceState.d.ts +406 -0
- package/dist/composables/useSchedulerSelectionState.d.mts +66 -0
- package/dist/composables/useSchedulerSelectionState.d.ts +66 -0
- package/dist/composables/useTimeGridEngine.d.mts +3 -0
- package/dist/composables/useTimeGridEngine.d.ts +3 -0
- package/dist/composables/useTimelineDragDrop.d.mts +497 -0
- package/dist/composables/useTimelineDragDrop.d.ts +497 -0
- package/dist/composables/useTimelineEngine.d.mts +3 -0
- package/dist/composables/useTimelineEngine.d.ts +3 -0
- package/dist/composables/useTimelineVirtualScroll.d.mts +37 -0
- package/dist/composables/useTimelineVirtualScroll.d.ts +37 -0
- package/dist/engines/agenda/AgendaList.vue.d.mts +27 -0
- package/dist/engines/agenda/AgendaList.vue.d.ts +27 -0
- package/dist/engines/date-grid/DateGrid.context.d.mts +19 -0
- package/dist/engines/date-grid/DateGrid.context.d.ts +19 -0
- package/dist/engines/date-grid/DateGrid.parts.d.mts +5 -0
- package/dist/engines/date-grid/DateGrid.parts.d.ts +5 -0
- package/dist/engines/date-grid/DateGrid.vue.d.mts +22 -0
- package/dist/engines/date-grid/DateGrid.vue.d.ts +22 -0
- package/dist/engines/date-grid/DateGridAllDayRow.vue.d.mts +9 -0
- package/dist/engines/date-grid/DateGridAllDayRow.vue.d.ts +9 -0
- package/dist/engines/date-grid/DateGridBody.vue.d.mts +21 -0
- package/dist/engines/date-grid/DateGridBody.vue.d.ts +21 -0
- package/dist/engines/date-grid/DateGridColumn.vue.d.mts +28 -0
- package/dist/engines/date-grid/DateGridColumn.vue.d.ts +28 -0
- package/dist/engines/date-grid/DateGridHeader.vue.d.mts +27 -0
- package/dist/engines/date-grid/DateGridHeader.vue.d.ts +27 -0
- package/dist/engines/date-grid/DateGridSuperColumn.vue.d.mts +23 -0
- package/dist/engines/date-grid/DateGridSuperColumn.vue.d.ts +23 -0
- package/dist/engines/date-month-grid/DateMonthGrid.context.d.mts +20 -0
- package/dist/engines/date-month-grid/DateMonthGrid.context.d.ts +20 -0
- package/dist/engines/date-month-grid/DateMonthGrid.parts.d.mts +5 -0
- package/dist/engines/date-month-grid/DateMonthGrid.parts.d.ts +5 -0
- package/dist/engines/date-month-grid/DateMonthGrid.vue.d.mts +23 -0
- package/dist/engines/date-month-grid/DateMonthGrid.vue.d.ts +23 -0
- package/dist/engines/date-month-grid/DateMonthGridBody.vue.d.mts +21 -0
- package/dist/engines/date-month-grid/DateMonthGridBody.vue.d.ts +21 -0
- package/dist/engines/date-month-grid/DateMonthGridDay.vue.d.mts +38 -0
- package/dist/engines/date-month-grid/DateMonthGridDay.vue.d.ts +38 -0
- package/dist/engines/date-month-grid/DateMonthGridResourceHeader.vue.d.mts +9 -0
- package/dist/engines/date-month-grid/DateMonthGridResourceHeader.vue.d.ts +9 -0
- package/dist/engines/date-month-grid/DateMonthGridWeek.vue.d.mts +23 -0
- package/dist/engines/date-month-grid/DateMonthGridWeek.vue.d.ts +23 -0
- package/dist/engines/date-month-grid/DateMonthGridWeekdays.vue.d.mts +21 -0
- package/dist/engines/date-month-grid/DateMonthGridWeekdays.vue.d.ts +21 -0
- package/dist/engines/month-grid/MonthGrid.context.d.mts +2 -0
- package/dist/engines/month-grid/MonthGrid.context.d.ts +2 -0
- package/dist/engines/month-grid/MonthGrid.parts.d.mts +11 -0
- package/dist/engines/month-grid/MonthGrid.parts.d.ts +11 -0
- package/dist/engines/month-grid/MonthGrid.vue.d.mts +24 -0
- package/dist/engines/month-grid/MonthGrid.vue.d.ts +24 -0
- package/dist/engines/month-grid/MonthGridBody.vue.d.mts +21 -0
- package/dist/engines/month-grid/MonthGridBody.vue.d.ts +21 -0
- package/dist/engines/month-grid/MonthGridDay.vue.d.mts +45 -0
- package/dist/engines/month-grid/MonthGridDay.vue.d.ts +45 -0
- package/dist/engines/month-grid/MonthGridDayHeader.vue.d.mts +26 -0
- package/dist/engines/month-grid/MonthGridDayHeader.vue.d.ts +26 -0
- package/dist/engines/month-grid/MonthGridDragPreview.vue.d.mts +35 -0
- package/dist/engines/month-grid/MonthGridDragPreview.vue.d.ts +35 -0
- package/dist/engines/month-grid/MonthGridEvent.vue.d.mts +41 -0
- package/dist/engines/month-grid/MonthGridEvent.vue.d.ts +41 -0
- package/dist/engines/month-grid/MonthGridMoreLink.vue.d.mts +23 -0
- package/dist/engines/month-grid/MonthGridMoreLink.vue.d.ts +23 -0
- package/dist/engines/month-grid/MonthGridMorePopover.vue.d.mts +3 -0
- package/dist/engines/month-grid/MonthGridMorePopover.vue.d.ts +3 -0
- package/dist/engines/month-grid/MonthGridNowIndicator.vue.d.mts +15 -0
- package/dist/engines/month-grid/MonthGridNowIndicator.vue.d.ts +15 -0
- package/dist/engines/month-grid/MonthGridWeek.vue.d.mts +26 -0
- package/dist/engines/month-grid/MonthGridWeek.vue.d.ts +26 -0
- package/dist/engines/month-grid/MonthGridWeekdays.vue.d.mts +21 -0
- package/dist/engines/month-grid/MonthGridWeekdays.vue.d.ts +21 -0
- package/dist/engines/resource-grid/ResourceGrid.context.d.mts +19 -0
- package/dist/engines/resource-grid/ResourceGrid.context.d.ts +19 -0
- package/dist/engines/resource-grid/ResourceGrid.parts.d.mts +5 -0
- package/dist/engines/resource-grid/ResourceGrid.parts.d.ts +5 -0
- package/dist/engines/resource-grid/ResourceGrid.vue.d.mts +22 -0
- package/dist/engines/resource-grid/ResourceGrid.vue.d.ts +22 -0
- package/dist/engines/resource-grid/ResourceGridAllDayRow.vue.d.mts +9 -0
- package/dist/engines/resource-grid/ResourceGridAllDayRow.vue.d.ts +9 -0
- package/dist/engines/resource-grid/ResourceGridBody.vue.d.mts +21 -0
- package/dist/engines/resource-grid/ResourceGridBody.vue.d.ts +21 -0
- package/dist/engines/resource-grid/ResourceGridDayColumn.vue.d.mts +28 -0
- package/dist/engines/resource-grid/ResourceGridDayColumn.vue.d.ts +28 -0
- package/dist/engines/resource-grid/ResourceGridHeader.vue.d.mts +27 -0
- package/dist/engines/resource-grid/ResourceGridHeader.vue.d.ts +27 -0
- package/dist/engines/resource-grid/ResourceGridSuperColumn.vue.d.mts +24 -0
- package/dist/engines/resource-grid/ResourceGridSuperColumn.vue.d.ts +24 -0
- package/dist/engines/resource-month-grid/ResourceMonthGrid.context.d.mts +19 -0
- package/dist/engines/resource-month-grid/ResourceMonthGrid.context.d.ts +19 -0
- package/dist/engines/resource-month-grid/ResourceMonthGrid.parts.d.mts +6 -0
- package/dist/engines/resource-month-grid/ResourceMonthGrid.parts.d.ts +6 -0
- package/dist/engines/resource-month-grid/ResourceMonthGrid.vue.d.mts +23 -0
- package/dist/engines/resource-month-grid/ResourceMonthGrid.vue.d.ts +23 -0
- package/dist/engines/resource-month-grid/ResourceMonthGridBody.vue.d.mts +21 -0
- package/dist/engines/resource-month-grid/ResourceMonthGridBody.vue.d.ts +21 -0
- package/dist/engines/resource-month-grid/ResourceMonthGridColumn.vue.d.mts +24 -0
- package/dist/engines/resource-month-grid/ResourceMonthGridColumn.vue.d.ts +24 -0
- package/dist/engines/resource-month-grid/ResourceMonthGridDay.vue.d.mts +37 -0
- package/dist/engines/resource-month-grid/ResourceMonthGridDay.vue.d.ts +37 -0
- package/dist/engines/resource-month-grid/ResourceMonthGridHeader.vue.d.mts +23 -0
- package/dist/engines/resource-month-grid/ResourceMonthGridHeader.vue.d.ts +23 -0
- package/dist/engines/resource-month-grid/ResourceMonthGridWeek.vue.d.mts +26 -0
- package/dist/engines/resource-month-grid/ResourceMonthGridWeek.vue.d.ts +26 -0
- package/dist/engines/time-grid/TimeGrid.context.d.mts +2 -0
- package/dist/engines/time-grid/TimeGrid.context.d.ts +2 -0
- package/dist/engines/time-grid/TimeGrid.parts.d.mts +15 -0
- package/dist/engines/time-grid/TimeGrid.parts.d.ts +15 -0
- package/dist/engines/time-grid/TimeGrid.vue.d.mts +23 -0
- package/dist/engines/time-grid/TimeGrid.vue.d.ts +23 -0
- package/dist/engines/time-grid/TimeGridAllDayEvent.vue.d.mts +27 -0
- package/dist/engines/time-grid/TimeGridAllDayEvent.vue.d.ts +27 -0
- package/dist/engines/time-grid/TimeGridAllDayRow.vue.d.mts +23 -0
- package/dist/engines/time-grid/TimeGridAllDayRow.vue.d.ts +23 -0
- package/dist/engines/time-grid/TimeGridAppointmentSlots.vue.d.mts +26 -0
- package/dist/engines/time-grid/TimeGridAppointmentSlots.vue.d.ts +26 -0
- package/dist/engines/time-grid/TimeGridBlockedInterval.vue.d.mts +21 -0
- package/dist/engines/time-grid/TimeGridBlockedInterval.vue.d.ts +21 -0
- package/dist/engines/time-grid/TimeGridBody.vue.d.mts +21 -0
- package/dist/engines/time-grid/TimeGridBody.vue.d.ts +21 -0
- package/dist/engines/time-grid/TimeGridBusinessHours.vue.d.mts +18 -0
- package/dist/engines/time-grid/TimeGridBusinessHours.vue.d.ts +18 -0
- package/dist/engines/time-grid/TimeGridDayColumn.vue.d.mts +27 -0
- package/dist/engines/time-grid/TimeGridDayColumn.vue.d.ts +27 -0
- package/dist/engines/time-grid/TimeGridDragPreview.vue.d.mts +26 -0
- package/dist/engines/time-grid/TimeGridDragPreview.vue.d.ts +26 -0
- package/dist/engines/time-grid/TimeGridEvent.vue.d.mts +52 -0
- package/dist/engines/time-grid/TimeGridEvent.vue.d.ts +52 -0
- package/dist/engines/time-grid/TimeGridHeader.vue.d.mts +32 -0
- package/dist/engines/time-grid/TimeGridHeader.vue.d.ts +32 -0
- package/dist/engines/time-grid/TimeGridNowIndicator.vue.d.mts +16 -0
- package/dist/engines/time-grid/TimeGridNowIndicator.vue.d.ts +16 -0
- package/dist/engines/time-grid/TimeGridSlot.vue.d.mts +33 -0
- package/dist/engines/time-grid/TimeGridSlot.vue.d.ts +33 -0
- package/dist/engines/time-grid/TimeGridSlotGrid.vue.d.mts +22 -0
- package/dist/engines/time-grid/TimeGridSlotGrid.vue.d.ts +22 -0
- package/dist/engines/time-grid/TimeGridTimeColumn.vue.d.mts +28 -0
- package/dist/engines/time-grid/TimeGridTimeColumn.vue.d.ts +28 -0
- package/dist/engines/timeline/Timeline.context.d.mts +2 -0
- package/dist/engines/timeline/Timeline.context.d.ts +2 -0
- package/dist/engines/timeline/Timeline.parts.d.mts +14 -0
- package/dist/engines/timeline/Timeline.parts.d.ts +14 -0
- package/dist/engines/timeline/Timeline.vue.d.mts +23 -0
- package/dist/engines/timeline/Timeline.vue.d.ts +23 -0
- package/dist/engines/timeline/TimelineBlockedInterval.vue.d.mts +22 -0
- package/dist/engines/timeline/TimelineBlockedInterval.vue.d.ts +22 -0
- package/dist/engines/timeline/TimelineBody.vue.d.mts +26 -0
- package/dist/engines/timeline/TimelineBody.vue.d.ts +26 -0
- package/dist/engines/timeline/TimelineBusinessHours.vue.d.mts +16 -0
- package/dist/engines/timeline/TimelineBusinessHours.vue.d.ts +16 -0
- package/dist/engines/timeline/TimelineCell.vue.d.mts +32 -0
- package/dist/engines/timeline/TimelineCell.vue.d.ts +32 -0
- package/dist/engines/timeline/TimelineDragPreview.vue.d.mts +26 -0
- package/dist/engines/timeline/TimelineDragPreview.vue.d.ts +26 -0
- package/dist/engines/timeline/TimelineEvent.vue.d.mts +57 -0
- package/dist/engines/timeline/TimelineEvent.vue.d.ts +57 -0
- package/dist/engines/timeline/TimelineHeader.vue.d.mts +21 -0
- package/dist/engines/timeline/TimelineHeader.vue.d.ts +21 -0
- package/dist/engines/timeline/TimelineHeaderCell.vue.d.mts +35 -0
- package/dist/engines/timeline/TimelineHeaderCell.vue.d.ts +35 -0
- package/dist/engines/timeline/TimelineHeaderRow.vue.d.mts +30 -0
- package/dist/engines/timeline/TimelineHeaderRow.vue.d.ts +30 -0
- package/dist/engines/timeline/TimelineLane.vue.d.mts +29 -0
- package/dist/engines/timeline/TimelineLane.vue.d.ts +29 -0
- package/dist/engines/timeline/TimelineNowIndicator.vue.d.mts +16 -0
- package/dist/engines/timeline/TimelineNowIndicator.vue.d.ts +16 -0
- package/dist/engines/timeline/TimelineResourceArea.vue.d.mts +25 -0
- package/dist/engines/timeline/TimelineResourceArea.vue.d.ts +25 -0
- package/dist/engines/timeline/TimelineResourceRow.vue.d.mts +38 -0
- package/dist/engines/timeline/TimelineResourceRow.vue.d.ts +38 -0
- package/dist/engines/timeline/TimelineYear.vue.d.mts +9 -0
- package/dist/engines/timeline/TimelineYear.vue.d.ts +9 -0
- package/dist/engines/timeline/TimelineYearEvent.vue.d.mts +10 -0
- package/dist/engines/timeline/TimelineYearEvent.vue.d.ts +10 -0
- package/dist/engines/year-grid/YearGrid.vue.d.mts +54 -0
- package/dist/engines/year-grid/YearGrid.vue.d.ts +54 -0
- package/dist/index.d.mts +24 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.mjs +12315 -0
- package/dist/release-date.d.mts +11 -0
- package/dist/release-date.d.ts +11 -0
- package/dist/shared/AdaptiveResourceBreadcrumb.vue.d.mts +42 -0
- package/dist/shared/AdaptiveResourceBreadcrumb.vue.d.ts +42 -0
- package/dist/shared/AdaptiveResourceSelector.vue.d.mts +76 -0
- package/dist/shared/AdaptiveResourceSelector.vue.d.ts +76 -0
- package/dist/shared/ResourceArea.vue.d.mts +67 -0
- package/dist/shared/ResourceArea.vue.d.ts +67 -0
- package/dist/shared/SchedulerContextMenu.vue.d.mts +32 -0
- package/dist/shared/SchedulerContextMenu.vue.d.ts +32 -0
- package/dist/shared/SchedulerMorePopover.vue.d.mts +30 -0
- package/dist/shared/SchedulerMorePopover.vue.d.ts +30 -0
- package/dist/shared/SchedulerPopover.vue.d.mts +28 -0
- package/dist/shared/SchedulerPopover.vue.d.ts +28 -0
- package/dist/shared/SchedulerQuickInfo.vue.d.mts +36 -0
- package/dist/shared/SchedulerQuickInfo.vue.d.ts +36 -0
- package/dist/shared/SchedulerRecurrenceDialog.vue.d.mts +27 -0
- package/dist/shared/SchedulerRecurrenceDialog.vue.d.ts +27 -0
- package/dist/shell/SchedulerAdaptiveResourceControls.vue.d.mts +3 -0
- package/dist/shell/SchedulerAdaptiveResourceControls.vue.d.ts +3 -0
- package/dist/shell/SchedulerCategoryLegend.vue.d.mts +26 -0
- package/dist/shell/SchedulerCategoryLegend.vue.d.ts +26 -0
- package/dist/shell/SchedulerContent.vue.d.mts +13 -0
- package/dist/shell/SchedulerContent.vue.d.ts +13 -0
- package/dist/shell/SchedulerContentOutlet.d.mts +30 -0
- package/dist/shell/SchedulerContentOutlet.d.ts +30 -0
- package/dist/shell/SchedulerContentScope.d.mts +39 -0
- package/dist/shell/SchedulerContentScope.d.ts +39 -0
- package/dist/shell/SchedulerFooter.vue.d.mts +17 -0
- package/dist/shell/SchedulerFooter.vue.d.ts +17 -0
- package/dist/shell/SchedulerHeader.vue.d.mts +49 -0
- package/dist/shell/SchedulerHeader.vue.d.ts +49 -0
- package/dist/shell/SchedulerLoading.vue.d.mts +13 -0
- package/dist/shell/SchedulerLoading.vue.d.ts +13 -0
- package/dist/shell/SchedulerNavigation.vue.d.mts +26 -0
- package/dist/shell/SchedulerNavigation.vue.d.ts +26 -0
- package/dist/shell/SchedulerSelectionToolbar.vue.d.mts +27 -0
- package/dist/shell/SchedulerSelectionToolbar.vue.d.ts +27 -0
- package/dist/shell/SchedulerTitle.vue.d.mts +17 -0
- package/dist/shell/SchedulerTitle.vue.d.ts +17 -0
- package/dist/shell/SchedulerViewSelector.vue.d.mts +23 -0
- package/dist/shell/SchedulerViewSelector.vue.d.ts +23 -0
- package/dist/shell/contentDeclarations.d.mts +6 -0
- package/dist/shell/contentDeclarations.d.ts +6 -0
- package/dist/shell/headerToolbar.d.mts +21 -0
- package/dist/shell/headerToolbar.d.ts +21 -0
- package/dist/shell/outletRenderers.d.mts +45 -0
- package/dist/shell/outletRenderers.d.ts +45 -0
- package/dist/utils/accessibility.d.mts +19 -0
- package/dist/utils/accessibility.d.ts +19 -0
- package/dist/utils/browser.d.mts +6 -0
- package/dist/utils/browser.d.ts +6 -0
- package/dist/utils/devWarnings.d.mts +3 -0
- package/dist/utils/devWarnings.d.ts +3 -0
- package/dist/utils/event-anchor.d.mts +2 -0
- package/dist/utils/event-anchor.d.ts +2 -0
- package/dist/utils/keyboardOwner.d.mts +1 -0
- package/dist/utils/keyboardOwner.d.ts +1 -0
- package/dist/utils/rtl-scroll.d.mts +22 -0
- package/dist/utils/rtl-scroll.d.ts +22 -0
- package/dist/utils/timedInteraction.d.mts +10 -0
- package/dist/utils/timedInteraction.d.ts +10 -0
- package/dist/utils/timezone-display.d.mts +8 -0
- package/dist/utils/timezone-display.d.ts +8 -0
- package/package.json +63 -0
|
@@ -0,0 +1,771 @@
|
|
|
1
|
+
import { onBeforeUnmount as ut, unref as st, ref as D, computed as w, onUnmounted as $e, onMounted as ct, watch as Re, nextTick as Fe } from "vue";
|
|
2
|
+
import { createDragAutoScroller as vt, DEFAULT_DRAG_MIN_DISTANCE as dt, isEventDraggableWithPermission as Ae, isEventResizableWithPermission as Ee, detectResizeEdgeForTimeline as ye, schedulerClasses as Oe, createTimelineResizeState as ft, processTimelineDragMove as gt, updateTimelineDragState as mt, applyDeltaToEvent as ht, processTimelineResizeMove as pt, finalizeTimelineDrag as Dt, finalizeTimelineResize as Et, getTimelineDragGhostStyle as Rt, createTimelineDragState as Mt, shouldUseVirtualScrolling as St, createVirtualScrollState as wt, calculateVirtualRange as Tt, calculateVisibleEvents as yt, getScrollPositionForNow as bt, createResourceStore as Be, filterResources as Lt, calculateResourceRowLayouts as xt, getTotalResourceHeight as zt, sortResources as Xt, collapseAllResources as Ct, expandAllResources as Pt, toggleResourceExpansion as Wt, collapseResource as Yt, expandResource as It, removeResource as Ft, updateResource as At, addResource as Ot, hasHierarchy as Bt, groupResourcesByField as Nt } from "@primeui/scheduler-core";
|
|
3
|
+
function Ne(t) {
|
|
4
|
+
return {
|
|
5
|
+
clientX: t.clientX,
|
|
6
|
+
clientY: t.clientY,
|
|
7
|
+
button: 0
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function Ht(t) {
|
|
11
|
+
const { onMove: o, onUp: p, onCancel: m, axis: L = "vertical", scrollLockThresholdPx: W = 8, axisBiasRatio: v = 1.25 } = t;
|
|
12
|
+
let $ = NaN, G = NaN, y = "undecided";
|
|
13
|
+
const X = () => {
|
|
14
|
+
document.removeEventListener("touchmove", s), document.removeEventListener("touchend", O), document.removeEventListener("touchcancel", k);
|
|
15
|
+
}, s = (E) => {
|
|
16
|
+
if (E.touches.length > 1) {
|
|
17
|
+
m?.(), X();
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const R = E.touches[0];
|
|
21
|
+
if (R) {
|
|
22
|
+
if (Number.isNaN($)) {
|
|
23
|
+
$ = R.clientX, G = R.clientY;
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (y === "undecided") {
|
|
27
|
+
const x = Math.abs(R.clientX - $), M = Math.abs(R.clientY - G);
|
|
28
|
+
if (Math.max(x, M) < W) return;
|
|
29
|
+
if ((L === "horizontal" ? x : M) > (L === "horizontal" ? M : x) * v)
|
|
30
|
+
y = "drag";
|
|
31
|
+
else {
|
|
32
|
+
y = "scroll", m?.(), X();
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
y === "drag" && (E.preventDefault(), o(Ne(R), E));
|
|
37
|
+
}
|
|
38
|
+
}, O = (E) => {
|
|
39
|
+
const R = E.changedTouches[0];
|
|
40
|
+
R && y === "drag" ? p(Ne(R), E) : y !== "drag" && m?.(), X();
|
|
41
|
+
}, k = () => {
|
|
42
|
+
m?.(), X();
|
|
43
|
+
};
|
|
44
|
+
return document.addEventListener("touchmove", s, { passive: !1 }), document.addEventListener("touchend", O), document.addEventListener("touchcancel", k), X;
|
|
45
|
+
}
|
|
46
|
+
function $t(t) {
|
|
47
|
+
return vt({
|
|
48
|
+
...t,
|
|
49
|
+
enabled: () => st(t.enabled ?? !0) !== !1,
|
|
50
|
+
getContainers: (o) => t.getContainers(o).map(Vt)
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function Kt(t) {
|
|
54
|
+
const o = $t(t);
|
|
55
|
+
return ut(o.destroy), o;
|
|
56
|
+
}
|
|
57
|
+
function Vt(t) {
|
|
58
|
+
return t ? {
|
|
59
|
+
get scrollLeft() {
|
|
60
|
+
return t.scrollLeft;
|
|
61
|
+
},
|
|
62
|
+
set scrollLeft(o) {
|
|
63
|
+
t.scrollLeft = o;
|
|
64
|
+
},
|
|
65
|
+
get scrollTop() {
|
|
66
|
+
return t.scrollTop;
|
|
67
|
+
},
|
|
68
|
+
set scrollTop(o) {
|
|
69
|
+
t.scrollTop = o;
|
|
70
|
+
},
|
|
71
|
+
get scrollWidth() {
|
|
72
|
+
return t.scrollWidth;
|
|
73
|
+
},
|
|
74
|
+
get scrollHeight() {
|
|
75
|
+
return t.scrollHeight;
|
|
76
|
+
},
|
|
77
|
+
get clientWidth() {
|
|
78
|
+
return t.clientWidth;
|
|
79
|
+
},
|
|
80
|
+
get clientHeight() {
|
|
81
|
+
return t.clientHeight;
|
|
82
|
+
},
|
|
83
|
+
measure: () => t.getBoundingClientRect()
|
|
84
|
+
} : null;
|
|
85
|
+
}
|
|
86
|
+
function Ut(t, o) {
|
|
87
|
+
return {
|
|
88
|
+
clientX: t.clientX,
|
|
89
|
+
clientY: t.clientY,
|
|
90
|
+
pageX: t.pageX,
|
|
91
|
+
pageY: t.pageY,
|
|
92
|
+
screenX: t.screenX,
|
|
93
|
+
screenY: t.screenY,
|
|
94
|
+
target: t.target,
|
|
95
|
+
currentTarget: o ?? t.target,
|
|
96
|
+
preventDefault: () => {
|
|
97
|
+
},
|
|
98
|
+
stopPropagation: () => {
|
|
99
|
+
},
|
|
100
|
+
stopImmediatePropagation: () => {
|
|
101
|
+
},
|
|
102
|
+
button: 0,
|
|
103
|
+
buttons: 1,
|
|
104
|
+
detail: 1
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function He(t) {
|
|
108
|
+
return {
|
|
109
|
+
clientX: t.clientX,
|
|
110
|
+
clientY: t.clientY,
|
|
111
|
+
button: t.button ?? 0,
|
|
112
|
+
altKey: !!t.altKey,
|
|
113
|
+
ctrlKey: !!t.ctrlKey,
|
|
114
|
+
metaKey: !!t.metaKey,
|
|
115
|
+
shiftKey: !!t.shiftKey,
|
|
116
|
+
preventDefault: () => {
|
|
117
|
+
},
|
|
118
|
+
stopPropagation: () => {
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function jt(t, o = {}) {
|
|
123
|
+
const {
|
|
124
|
+
viewStart: p,
|
|
125
|
+
viewEnd: m,
|
|
126
|
+
totalWidth: L,
|
|
127
|
+
slotDuration: W,
|
|
128
|
+
editable: v,
|
|
129
|
+
eventOverlap: $ = D(!0),
|
|
130
|
+
parsedEvents: G = D([]),
|
|
131
|
+
dragMinDistance: y = dt,
|
|
132
|
+
eventStartEditable: X = D(!0),
|
|
133
|
+
eventDurationEditable: s = D(!0),
|
|
134
|
+
minTimeMinutes: O,
|
|
135
|
+
maxTimeMinutes: k,
|
|
136
|
+
selectedEventIds: E = D([]),
|
|
137
|
+
events: R = D([]),
|
|
138
|
+
eventPermission: x,
|
|
139
|
+
currentView: M
|
|
140
|
+
} = t, _ = t.snapDuration, ne = t.overlapPolicy, K = t.allEvents, V = Kt({
|
|
141
|
+
enabled: t.dragScroll,
|
|
142
|
+
getContainers: () => t.getAutoScrollContainers?.() ?? []
|
|
143
|
+
}), f = D(null), h = D(null), Y = D(null), N = D(null), q = D(null), ue = D({ days: 0, milliseconds: 0 }), B = D(null), C = D(null), Q = D(null), U = D(/* @__PURE__ */ new Map()), I = D(/* @__PURE__ */ new Map()), a = D(), c = D();
|
|
144
|
+
let T = 0, z = 0, J = null;
|
|
145
|
+
function Se(e, n) {
|
|
146
|
+
a.value = e, c.value = n;
|
|
147
|
+
}
|
|
148
|
+
const le = w(() => f.value?.isDragging ?? !1), se = w(() => h.value?.isResizing ?? !1), re = w(() => le.value || se.value || !!Y.value), H = w(() => {
|
|
149
|
+
if (!f.value?.isDragging) return !1;
|
|
150
|
+
const e = f.value.originalEvent.id, n = E.value ?? [];
|
|
151
|
+
return n.length > 1 && n.includes(e);
|
|
152
|
+
});
|
|
153
|
+
function ee() {
|
|
154
|
+
const e = new Set(E.value ?? []);
|
|
155
|
+
return (R.value ?? []).filter((n) => e.has(n.id));
|
|
156
|
+
}
|
|
157
|
+
function ve(e) {
|
|
158
|
+
return H.value && I.value.has(e);
|
|
159
|
+
}
|
|
160
|
+
function de() {
|
|
161
|
+
if (!H.value) return [];
|
|
162
|
+
const e = [];
|
|
163
|
+
for (const [n, i] of I.value) {
|
|
164
|
+
const l = (R.value ?? []).find((u) => u.id === n);
|
|
165
|
+
l && e.push({ event: l, left: i.left, width: i.width });
|
|
166
|
+
}
|
|
167
|
+
return e;
|
|
168
|
+
}
|
|
169
|
+
function Z() {
|
|
170
|
+
return {
|
|
171
|
+
viewStart: p.value,
|
|
172
|
+
viewEnd: m.value,
|
|
173
|
+
totalWidth: L.value,
|
|
174
|
+
slotDuration: W.value,
|
|
175
|
+
snapDuration: _?.value,
|
|
176
|
+
eventOverlap: $.value,
|
|
177
|
+
parsedEvents: G.value,
|
|
178
|
+
minTimeMinutes: O?.value,
|
|
179
|
+
maxTimeMinutes: k?.value,
|
|
180
|
+
overlapPolicy: ne?.value,
|
|
181
|
+
allEvents: K?.value,
|
|
182
|
+
targetResourceId: a.value,
|
|
183
|
+
targetResourceIds: c.value,
|
|
184
|
+
calendar: t.calendar?.value,
|
|
185
|
+
locale: t.locale?.value,
|
|
186
|
+
view: M?.value
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
function oe() {
|
|
190
|
+
return t.getAutoScrollContainers?.().find(Boolean);
|
|
191
|
+
}
|
|
192
|
+
function he(e, n) {
|
|
193
|
+
for (const i of e ?? []) {
|
|
194
|
+
if (String(i.id) === n)
|
|
195
|
+
return i;
|
|
196
|
+
const l = he(i.children, n);
|
|
197
|
+
if (l)
|
|
198
|
+
return l;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
function fe(e) {
|
|
202
|
+
return he(t.resources?.value, e)?.id ?? e;
|
|
203
|
+
}
|
|
204
|
+
function pe(e, n) {
|
|
205
|
+
const l = (typeof document.elementsFromPoint == "function" ? document.elementsFromPoint(e, n) : []).filter((g) => g instanceof HTMLElement);
|
|
206
|
+
if (l.length > 0)
|
|
207
|
+
return l;
|
|
208
|
+
const u = document.elementFromPoint(e, n);
|
|
209
|
+
return u instanceof HTMLElement ? [u] : [];
|
|
210
|
+
}
|
|
211
|
+
function ge(e) {
|
|
212
|
+
return !J || J.contains(e);
|
|
213
|
+
}
|
|
214
|
+
function r(e) {
|
|
215
|
+
const n = ['[data-slot="scheduler-timeline-event"][data-resource-id]', '[data-slot="scheduler-timeline-cell"][data-resource-id]', '[data-slot="scheduler-timeline-lane"][data-resource-id]'].join(",");
|
|
216
|
+
for (const i of e) {
|
|
217
|
+
const l = i.closest(n);
|
|
218
|
+
if (l && ge(l))
|
|
219
|
+
return l;
|
|
220
|
+
}
|
|
221
|
+
for (const i of e) {
|
|
222
|
+
const l = i.closest("[data-resource-id]");
|
|
223
|
+
if (l && ge(l))
|
|
224
|
+
return l;
|
|
225
|
+
}
|
|
226
|
+
return null;
|
|
227
|
+
}
|
|
228
|
+
function d(e) {
|
|
229
|
+
const i = Array.from((J ?? document).querySelectorAll('[data-slot="scheduler-timeline-lane"][data-resource-id]')).filter((l) => l instanceof HTMLElement);
|
|
230
|
+
for (const l of i) {
|
|
231
|
+
const u = l.getBoundingClientRect();
|
|
232
|
+
if (e >= u.top && e <= u.bottom)
|
|
233
|
+
return l;
|
|
234
|
+
}
|
|
235
|
+
return null;
|
|
236
|
+
}
|
|
237
|
+
function S(e, n, i) {
|
|
238
|
+
T = i.scrollLeft, q.value = { width: i.width, height: i.height }, f.value = Mt(e, n.clientX, n.clientY, i.offsetX, i.offsetY), J = i.rootElement;
|
|
239
|
+
const l = E.value ?? [];
|
|
240
|
+
if (l.length > 1 && l.includes(e.id)) {
|
|
241
|
+
const u = typeof e.start == "string" ? new Date(e.start) : new Date(e.start), g = /* @__PURE__ */ new Map(), b = ee();
|
|
242
|
+
for (const P of b) {
|
|
243
|
+
const ce = (typeof P.start == "string" ? new Date(P.start) : new Date(P.start)).getTime() - u.getTime();
|
|
244
|
+
g.set(P.id, ce);
|
|
245
|
+
}
|
|
246
|
+
U.value = g, I.value = /* @__PURE__ */ new Map();
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
function F(e) {
|
|
250
|
+
h.value = e.state, z = e.scrollLeft, o.onEventResizeStart?.({ event: e.event, jsEvent: e.startEvent });
|
|
251
|
+
}
|
|
252
|
+
function te(e, n) {
|
|
253
|
+
if (!v.value) return;
|
|
254
|
+
const i = n.currentTarget, l = i.getBoundingClientRect(), u = n.clientX - l.left, g = Ae(e, v.value, X.value, x?.value, M?.value ?? "timelineDay"), P = Ee(e, v.value, s.value, x?.value, M?.value ?? "timelineDay") ? ye(u, l.width) : null;
|
|
255
|
+
if (P) {
|
|
256
|
+
n.preventDefault(), n.stopPropagation();
|
|
257
|
+
const j = {
|
|
258
|
+
event: e,
|
|
259
|
+
startEvent: n,
|
|
260
|
+
state: ft(e, P, n.clientX, n.clientY),
|
|
261
|
+
offsetX: u,
|
|
262
|
+
offsetY: n.clientY - l.top,
|
|
263
|
+
width: l.width,
|
|
264
|
+
height: l.height,
|
|
265
|
+
rootElement: i.closest(`.${Oe.root}`),
|
|
266
|
+
scrollLeft: oe()?.scrollLeft ?? 0
|
|
267
|
+
};
|
|
268
|
+
g ? Y.value = j : F(j), document.addEventListener("pointermove", A), document.addEventListener("pointerup", me);
|
|
269
|
+
} else if (g) {
|
|
270
|
+
n.preventDefault(), n.stopPropagation();
|
|
271
|
+
const j = u, ce = n.clientY - l.top;
|
|
272
|
+
S(e, n, {
|
|
273
|
+
offsetX: j,
|
|
274
|
+
offsetY: ce,
|
|
275
|
+
width: l.width,
|
|
276
|
+
height: l.height,
|
|
277
|
+
rootElement: i.closest(`.${Oe.root}`),
|
|
278
|
+
scrollLeft: oe()?.scrollLeft ?? 0
|
|
279
|
+
}), document.addEventListener("pointermove", A), document.addEventListener("pointerup", me);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
function A(e) {
|
|
283
|
+
Y.value ? we(e) : f.value ? xe(e) : h.value && ze(e);
|
|
284
|
+
}
|
|
285
|
+
function we(e) {
|
|
286
|
+
const n = Y.value;
|
|
287
|
+
if (!n) return;
|
|
288
|
+
const i = e.clientX - n.state.startX, l = e.clientY - n.state.startY, u = Math.abs(i), g = Math.abs(l), b = Math.max(y * 2, 12), P = u >= y && g <= y, j = u >= b * 4 && g < b;
|
|
289
|
+
g >= b ? (Y.value = null, S(n.event, n.startEvent, n), xe(e)) : (P || j) && (Y.value = null, F(n), ze(e));
|
|
290
|
+
}
|
|
291
|
+
function Le(e, n) {
|
|
292
|
+
const i = pe(e, n), l = r(i) ?? d(n);
|
|
293
|
+
if (!l) {
|
|
294
|
+
a.value = void 0, c.value = void 0;
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
const u = l.getAttribute("data-resource-id");
|
|
298
|
+
if (u === null || u === "") {
|
|
299
|
+
a.value = void 0, c.value = void 0;
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
a.value = fe(u), c.value = void 0;
|
|
303
|
+
}
|
|
304
|
+
function xe(e) {
|
|
305
|
+
if (!f.value) return;
|
|
306
|
+
Le(e.clientX, e.clientY);
|
|
307
|
+
const n = Z(), i = (oe()?.scrollLeft ?? T) - T, l = e.clientX + i, u = gt(f.value, l, e.clientY, n, y);
|
|
308
|
+
u.shouldEmitDragStart && (f.value.isDragging = !0, o.onEventDragStart?.({ event: f.value.originalEvent, jsEvent: e })), ue.value = u.delta, f.value = mt(f.value, l, e.clientY, y), f.value.delta = u.delta;
|
|
309
|
+
const g = E.value ?? [];
|
|
310
|
+
if (g.length > 1 && g.includes(f.value.originalEvent.id) && f.value.isDragging) {
|
|
311
|
+
const P = /* @__PURE__ */ new Map(), j = Z(), ce = p.value.getTime(), Xe = m.value.getTime() - ce, Ce = L.value;
|
|
312
|
+
for (const Pe of U.value.keys()) {
|
|
313
|
+
const We = (R.value ?? []).find((it) => it.id === Pe);
|
|
314
|
+
if (!We) continue;
|
|
315
|
+
const ae = ht(We, u.delta, j), Ye = typeof ae.start == "string" ? new Date(ae.start) : new Date(ae.start), tt = ae.end ? typeof ae.end == "string" ? new Date(ae.end) : ae.end : new Date(Ye.getTime() + W.value * 60 * 1e3), Ie = Ye.getTime(), nt = tt.getTime(), lt = (Ie - ce) / Xe, rt = (nt - Ie) / Xe, ot = lt * Ce, at = rt * Ce;
|
|
316
|
+
P.set(Pe, { left: ot, width: at });
|
|
317
|
+
}
|
|
318
|
+
I.value = P, N.value = null;
|
|
319
|
+
} else
|
|
320
|
+
N.value = { x: e.clientX - f.value.offsetX, y: e.clientY - f.value.offsetY }, I.value = /* @__PURE__ */ new Map();
|
|
321
|
+
f.value.isDragging && V.update({ clientX: e.clientX, clientY: e.clientY }), u.previewEvent && u.shouldEmitDrag && o.onEventDrag?.({ event: u.previewEvent, delta: u.delta, jsEvent: e });
|
|
322
|
+
}
|
|
323
|
+
function ze(e) {
|
|
324
|
+
if (!h.value) return;
|
|
325
|
+
const n = Z(), i = (oe()?.scrollLeft ?? z) - z, l = e.clientX + i, u = l - h.value.startX;
|
|
326
|
+
V.update({ clientX: e.clientX, clientY: e.clientY }), h.value = {
|
|
327
|
+
...h.value,
|
|
328
|
+
currentX: l,
|
|
329
|
+
visualStartPx: h.value.edge === "start" ? u : 0,
|
|
330
|
+
visualEndPx: h.value.edge === "end" ? u : 0,
|
|
331
|
+
isResizing: Math.abs(l - h.value.startX) > 2
|
|
332
|
+
};
|
|
333
|
+
const g = pt(h.value, l, n);
|
|
334
|
+
h.value.startDelta = g.startDelta, h.value.endDelta = g.endDelta, Q.value = g.previewStyle, o.onEventResize?.({
|
|
335
|
+
event: g.previewEvent,
|
|
336
|
+
startDelta: g.startDelta,
|
|
337
|
+
endDelta: g.endDelta,
|
|
338
|
+
jsEvent: e
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
function me(e) {
|
|
342
|
+
f.value ? Ge(e) : h.value ? ke() : Y.value = null, document.removeEventListener("pointermove", A), document.removeEventListener("pointerup", me), V.stop();
|
|
343
|
+
}
|
|
344
|
+
function Ge(e) {
|
|
345
|
+
if (!f.value) return;
|
|
346
|
+
const { originalEvent: n, delta: i } = f.value;
|
|
347
|
+
Le(e.clientX, e.clientY);
|
|
348
|
+
const l = Z(), u = Dt(f.value, i, l);
|
|
349
|
+
if (u.success && u.newEvent) {
|
|
350
|
+
const g = a.value, b = g !== void 0 && g !== n.resourceId ? { ...u.newEvent, resourceId: g } : u.newEvent, P = () => {
|
|
351
|
+
o.onEventDrop?.({
|
|
352
|
+
event: n,
|
|
353
|
+
oldEvent: b,
|
|
354
|
+
delta: { days: -i.days, milliseconds: -i.milliseconds },
|
|
355
|
+
revert: () => {
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
};
|
|
359
|
+
o.onEventDrop?.({ event: b, oldEvent: n, delta: u.delta, revert: P });
|
|
360
|
+
}
|
|
361
|
+
o.onEventDragStop?.({ event: n, jsEvent: e }), f.value = null, N.value = null, q.value = null, ue.value = { days: 0, milliseconds: 0 }, U.value = /* @__PURE__ */ new Map(), I.value = /* @__PURE__ */ new Map(), a.value = void 0, c.value = void 0, J = null, T = 0;
|
|
362
|
+
}
|
|
363
|
+
function ke() {
|
|
364
|
+
if (!h.value) return;
|
|
365
|
+
const { originalEvent: e, startDelta: n, endDelta: i, isResizing: l } = h.value;
|
|
366
|
+
a.value = e.resourceId, c.value = e.resourceIds;
|
|
367
|
+
const u = Z(), g = Et(h.value, n, i, u);
|
|
368
|
+
if (g.success && g.newEvent) {
|
|
369
|
+
const b = () => {
|
|
370
|
+
o.onEventResizeStop?.({
|
|
371
|
+
event: e,
|
|
372
|
+
oldEvent: g.newEvent,
|
|
373
|
+
startDelta: -n,
|
|
374
|
+
endDelta: -i,
|
|
375
|
+
revert: () => {
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
};
|
|
379
|
+
o.onEventResizeStop?.({ event: g.newEvent, oldEvent: e, startDelta: n, endDelta: i, revert: b });
|
|
380
|
+
} else l && o.onEventResizeStop?.({
|
|
381
|
+
event: e,
|
|
382
|
+
oldEvent: e,
|
|
383
|
+
startDelta: 0,
|
|
384
|
+
endDelta: 0,
|
|
385
|
+
revert: () => {
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
h.value = null, Q.value = null, z = 0;
|
|
389
|
+
}
|
|
390
|
+
function _e(e, n) {
|
|
391
|
+
if (!v.value || re.value) return;
|
|
392
|
+
const l = n.currentTarget.getBoundingClientRect(), u = n.clientX - l.left, b = Ee(e, v.value, s.value, x?.value, M?.value ?? "timelineDay") ? ye(u, l.width) : null;
|
|
393
|
+
b && (B.value = b, C.value = e.id);
|
|
394
|
+
}
|
|
395
|
+
function qe(e, n) {
|
|
396
|
+
if (!v.value || re.value) return;
|
|
397
|
+
const l = n.currentTarget.getBoundingClientRect(), u = n.clientX - l.left, g = Ee(e, v.value, s.value, x?.value, M?.value ?? "timelineDay");
|
|
398
|
+
B.value = g ? ye(u, l.width) : null, C.value = B.value ? e.id : null;
|
|
399
|
+
}
|
|
400
|
+
function Qe() {
|
|
401
|
+
re.value || (B.value = null, C.value = null);
|
|
402
|
+
}
|
|
403
|
+
let De = null;
|
|
404
|
+
function Je(e, n) {
|
|
405
|
+
const i = Ut(n.touches[0], n.currentTarget);
|
|
406
|
+
te(e, i), !(!f.value && !h.value && !Y.value) && (De?.(), De = Ht({
|
|
407
|
+
onMove: (l) => A(He(l)),
|
|
408
|
+
onUp: (l) => me(He(l)),
|
|
409
|
+
onCancel: Te,
|
|
410
|
+
axis: "horizontal"
|
|
411
|
+
}));
|
|
412
|
+
}
|
|
413
|
+
function Ze() {
|
|
414
|
+
return !N.value || !f.value ? { display: "none" } : Rt(N.value, q.value, f.value.originalEvent);
|
|
415
|
+
}
|
|
416
|
+
function je(e) {
|
|
417
|
+
return !h.value?.isResizing || h.value.originalEvent.id !== e.id ? null : Q.value;
|
|
418
|
+
}
|
|
419
|
+
function et(e) {
|
|
420
|
+
const n = f.value?.originalEvent.id === e.id && f.value?.isDragging, i = h.value?.originalEvent.id === e.id && h.value?.isResizing, l = Ae(e, v.value, X.value, x?.value, M?.value ?? "timelineDay"), u = Ee(e, v.value, s.value, x?.value, M?.value ?? "timelineDay"), g = C.value === e.id, b = H.value && I.value.has(e.id);
|
|
421
|
+
return {
|
|
422
|
+
"p-scheduler-event-dragging": n && !H.value,
|
|
423
|
+
"p-scheduler-event-multi-dragging": b,
|
|
424
|
+
"p-scheduler-event-resizing": i,
|
|
425
|
+
"p-scheduler-event-draggable": l && !n && !b,
|
|
426
|
+
"p-scheduler-event-resizable": u,
|
|
427
|
+
"p-scheduler-event-resize-start": g && B.value === "start",
|
|
428
|
+
"p-scheduler-event-resize-end": g && B.value === "end"
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
function Te() {
|
|
432
|
+
document.removeEventListener("pointermove", A), document.removeEventListener("pointerup", me), V.stop(), De?.(), De = null, f.value = null, h.value = null, Y.value = null, N.value = null, q.value = null, Q.value = null, B.value = null, C.value = null, U.value = /* @__PURE__ */ new Map(), I.value = /* @__PURE__ */ new Map(), a.value = void 0, c.value = void 0, J = null, T = 0, z = 0;
|
|
433
|
+
}
|
|
434
|
+
return $e(() => {
|
|
435
|
+
Te();
|
|
436
|
+
}), {
|
|
437
|
+
eventDragState: f,
|
|
438
|
+
eventResizeState: h,
|
|
439
|
+
isDragging: le,
|
|
440
|
+
isResizing: se,
|
|
441
|
+
isInteracting: re,
|
|
442
|
+
isMultiEventDrag: H,
|
|
443
|
+
hoveredResizeEdge: B,
|
|
444
|
+
hoveredResizeEventId: C,
|
|
445
|
+
resizePreviewStyle: Q,
|
|
446
|
+
dragGhostPosition: N,
|
|
447
|
+
dragGhostDimensions: q,
|
|
448
|
+
handleEventMousedown: te,
|
|
449
|
+
handleEventTouchstart: Je,
|
|
450
|
+
handleEventMouseEnter: _e,
|
|
451
|
+
handleEventMouseMove: qe,
|
|
452
|
+
handleEventMouseLeave: Qe,
|
|
453
|
+
getDragGhostStyle: Ze,
|
|
454
|
+
getEventResizeStyle: je,
|
|
455
|
+
getEventClasses: et,
|
|
456
|
+
cancelInteraction: Te,
|
|
457
|
+
isEventBeingMultiDragged: ve,
|
|
458
|
+
getMultiDragSnappedEvents: de,
|
|
459
|
+
setDragTargetResource: Se
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
let ie = null;
|
|
463
|
+
function be(t, o, p) {
|
|
464
|
+
return Number.isFinite(t) ? Math.max(o, Math.min(p, t)) : o;
|
|
465
|
+
}
|
|
466
|
+
function Me(t, o) {
|
|
467
|
+
return Math.max(0, t - o);
|
|
468
|
+
}
|
|
469
|
+
function Gt(t, o) {
|
|
470
|
+
return Number.isFinite(t) ? o === "rtl" ? -t : t : 0;
|
|
471
|
+
}
|
|
472
|
+
function Ke() {
|
|
473
|
+
if (ie !== null) return ie;
|
|
474
|
+
if (typeof document > "u")
|
|
475
|
+
return ie = "negative", ie;
|
|
476
|
+
const t = document.createElement("div"), o = document.createElement("div");
|
|
477
|
+
return t.dir = "rtl", t.style.cssText = "position:fixed;top:-9999px;width:100px;height:100px;overflow:scroll;visibility:hidden;", o.style.cssText = "width:200px;height:100px;", t.appendChild(o), document.documentElement.appendChild(t), t.scrollLeft > 0 ? ie = "positive-descending" : (t.scrollLeft = 1, ie = t.scrollLeft === 0 ? "negative" : "positive-ascending"), document.documentElement.removeChild(t), ie;
|
|
478
|
+
}
|
|
479
|
+
function kt(t) {
|
|
480
|
+
const o = Me(t.scrollWidth, t.clientWidth);
|
|
481
|
+
if (t.direction !== "rtl")
|
|
482
|
+
return be(t.rawScrollLeft, 0, o);
|
|
483
|
+
const p = t.rtlScrollModel ?? Ke();
|
|
484
|
+
let m;
|
|
485
|
+
return p === "negative" ? m = -t.rawScrollLeft : p === "positive-descending" ? m = o - t.rawScrollLeft : m = t.rawScrollLeft, be(m, 0, o);
|
|
486
|
+
}
|
|
487
|
+
function Ve(t) {
|
|
488
|
+
const o = Me(t.scrollWidth, t.clientWidth), p = be(t.logicalScrollLeft, 0, o);
|
|
489
|
+
if (t.direction !== "rtl")
|
|
490
|
+
return p;
|
|
491
|
+
const m = t.rtlScrollModel ?? Ke();
|
|
492
|
+
return m === "negative" ? -p : m === "positive-descending" ? o - p : p;
|
|
493
|
+
}
|
|
494
|
+
function Ue(t) {
|
|
495
|
+
return getComputedStyle(t).direction === "rtl" ? "rtl" : "ltr";
|
|
496
|
+
}
|
|
497
|
+
function _t(t, o, p = Ue(t)) {
|
|
498
|
+
const m = Ve({
|
|
499
|
+
logicalScrollLeft: o,
|
|
500
|
+
direction: p,
|
|
501
|
+
scrollWidth: t.scrollWidth,
|
|
502
|
+
clientWidth: t.clientWidth
|
|
503
|
+
});
|
|
504
|
+
return t.scrollLeft = m, m;
|
|
505
|
+
}
|
|
506
|
+
function en(t) {
|
|
507
|
+
const { cells: o, events: p, totalWidth: m, viewStart: L, viewEnd: W, scrollContainerRef: v, threshold: $ = 100, overscan: G = 2, autoScrollToNow: y = !0, scrollToStartOfDay: X = !1, enableMode: s = "auto", eventBuffer: O = 100, cellLoadMultiplier: k = 1, direction: E } = t, R = D(0), x = D(0), M = D(0), _ = (r) => typeof r == "object" && "value" in r ? r.value : r, ne = () => {
|
|
508
|
+
if (E) {
|
|
509
|
+
const r = typeof E == "object" && "value" in E ? E.value : E;
|
|
510
|
+
return r === "rtl" || r === "ltr" ? r : null;
|
|
511
|
+
}
|
|
512
|
+
return null;
|
|
513
|
+
}, K = () => ne() === "rtl" ? "rtl" : v.value ? Ue(v.value) : "ltr", V = (r) => r.scrollWidth || m.value, f = (r) => r.clientWidth || M.value, h = (r, d) => Number.isFinite(r) ? Math.max(0, Math.floor(r)) : d, Y = w(() => (typeof s == "object" && "value" in s ? s.value : s) ?? "auto"), N = w(() => h(_($), 100)), q = w(() => h(_(G), 2)), ue = w(() => h(_(O), 100)), B = w(() => Math.max(1, h(_(k), 1))), C = w(() => {
|
|
514
|
+
const r = Y.value;
|
|
515
|
+
return r === !0 ? !0 : r === !1 ? !1 : St(o.value.length * B.value, N.value);
|
|
516
|
+
}), Q = w(() => wt(R.value, M.value, m.value, q.value)), U = w(() => C.value ? Tt(Q.value, o.value) : {
|
|
517
|
+
startIndex: 0,
|
|
518
|
+
endIndex: o.value.length - 1,
|
|
519
|
+
startOffset: 0,
|
|
520
|
+
visibleCells: o.value
|
|
521
|
+
}), I = w(() => U.value.visibleCells), a = w(() => {
|
|
522
|
+
if (!C.value)
|
|
523
|
+
return p.value;
|
|
524
|
+
const { visibleEvents: r } = yt(p.value, R.value, M.value, ue.value);
|
|
525
|
+
return r;
|
|
526
|
+
});
|
|
527
|
+
let c = null, T = null;
|
|
528
|
+
const z = D("ltr"), J = w(() => Gt(U.value.startOffset, z.value)), Se = w(() => {
|
|
529
|
+
const r = I.value.reduce((S, F) => S + F.width, 0), d = {
|
|
530
|
+
display: "flex",
|
|
531
|
+
height: "100%",
|
|
532
|
+
width: `${C.value ? r : m.value}px`
|
|
533
|
+
};
|
|
534
|
+
return C.value && (d.transform = `translate3d(${J.value}px, 0, 0)`), d;
|
|
535
|
+
});
|
|
536
|
+
function le() {
|
|
537
|
+
const r = v.value;
|
|
538
|
+
return r ? Me(V(r), f(r)) : Me(m.value, M.value);
|
|
539
|
+
}
|
|
540
|
+
function se(r, d) {
|
|
541
|
+
if (!v.value) return;
|
|
542
|
+
const S = v.value, F = K(), te = Math.max(0, Math.min(r, le())), A = Ve({
|
|
543
|
+
logicalScrollLeft: te,
|
|
544
|
+
direction: F,
|
|
545
|
+
scrollWidth: V(S),
|
|
546
|
+
clientWidth: f(S)
|
|
547
|
+
});
|
|
548
|
+
d ? S.scrollTo({ left: A, behavior: "smooth" }) : S.scrollLeft = A, R.value = te, x.value = te;
|
|
549
|
+
}
|
|
550
|
+
function re(r) {
|
|
551
|
+
const d = K(), S = kt({
|
|
552
|
+
rawScrollLeft: r.scrollLeft,
|
|
553
|
+
direction: d,
|
|
554
|
+
scrollWidth: V(r),
|
|
555
|
+
clientWidth: f(r)
|
|
556
|
+
});
|
|
557
|
+
z.value = d, M.value = f(r), R.value = S, x.value = S;
|
|
558
|
+
}
|
|
559
|
+
function H(r) {
|
|
560
|
+
re(r.target);
|
|
561
|
+
}
|
|
562
|
+
function ee() {
|
|
563
|
+
v.value && (M.value = v.value.clientWidth);
|
|
564
|
+
}
|
|
565
|
+
function ve() {
|
|
566
|
+
if (!v.value) return;
|
|
567
|
+
const r = v.value, d = K();
|
|
568
|
+
z.value = d, M.value = f(r), re(r);
|
|
569
|
+
}
|
|
570
|
+
function de(r = !0) {
|
|
571
|
+
if (!v.value) return;
|
|
572
|
+
const d = bt(L.value, W.value, m.value, M.value);
|
|
573
|
+
if (d !== null) {
|
|
574
|
+
const S = Math.max(0, Math.min(d, le()));
|
|
575
|
+
se(S, r);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
function Z(r = !0) {
|
|
579
|
+
if (!v.value) return;
|
|
580
|
+
const d = /* @__PURE__ */ new Date(), S = new Date(d.getFullYear(), d.getMonth(), d.getDate());
|
|
581
|
+
if (S < L.value || S > W.value)
|
|
582
|
+
return;
|
|
583
|
+
const F = W.value.getTime() - L.value.getTime(), A = (S.getTime() - L.value.getTime()) / F * m.value, we = Math.max(0, Math.min(A, le()));
|
|
584
|
+
se(we, r);
|
|
585
|
+
}
|
|
586
|
+
function oe(r, d = !0) {
|
|
587
|
+
if (!v.value) return;
|
|
588
|
+
const S = Math.max(0, Math.min(r, le()));
|
|
589
|
+
se(S, d);
|
|
590
|
+
}
|
|
591
|
+
function he(r, d = !0, S = !0) {
|
|
592
|
+
if (!v.value) return;
|
|
593
|
+
const F = W.value.getTime() - L.value.getTime();
|
|
594
|
+
let A = (r.getTime() - L.value.getTime()) / F * m.value;
|
|
595
|
+
d && (A -= M.value / 2), oe(A, S);
|
|
596
|
+
}
|
|
597
|
+
function fe() {
|
|
598
|
+
T?.disconnect(), T = null;
|
|
599
|
+
}
|
|
600
|
+
function pe(r) {
|
|
601
|
+
const d = K();
|
|
602
|
+
d !== z.value && (z.value = d, v.value && (_t(v.value, R.value, d), ve()));
|
|
603
|
+
}
|
|
604
|
+
function ge(r) {
|
|
605
|
+
if (fe(), z.value = K(), typeof MutationObserver > "u") return;
|
|
606
|
+
T = new MutationObserver(() => {
|
|
607
|
+
pe();
|
|
608
|
+
});
|
|
609
|
+
let d = r;
|
|
610
|
+
for (; d; )
|
|
611
|
+
T.observe(d, { attributes: !0, attributeFilter: ["dir"] }), d = d.parentElement;
|
|
612
|
+
T.observe(document.documentElement, { attributes: !0, attributeFilter: ["dir"] }), T.observe(document.body, { attributes: !0, attributeFilter: ["dir"] });
|
|
613
|
+
}
|
|
614
|
+
return ct(() => {
|
|
615
|
+
ee(), v.value && (v.value.addEventListener("scroll", H), ge(v.value), c = new ResizeObserver(() => {
|
|
616
|
+
ee();
|
|
617
|
+
}), c.observe(v.value), y && requestAnimationFrame(() => {
|
|
618
|
+
X ? Z(!1) : de(!1);
|
|
619
|
+
}), ve());
|
|
620
|
+
}), $e(() => {
|
|
621
|
+
v.value && v.value.removeEventListener("scroll", H), c && c.disconnect(), fe();
|
|
622
|
+
}), Re(
|
|
623
|
+
() => v.value,
|
|
624
|
+
(r, d) => {
|
|
625
|
+
d && d.removeEventListener("scroll", H), c && (c.disconnect(), c = null), fe(), r && (r.addEventListener("scroll", H), ee(), ge(r), ve(), c = new ResizeObserver(() => {
|
|
626
|
+
ee();
|
|
627
|
+
}), c.observe(r));
|
|
628
|
+
}
|
|
629
|
+
), Re(
|
|
630
|
+
() => ne(),
|
|
631
|
+
async () => {
|
|
632
|
+
v.value && (await Fe(), ee(), pe());
|
|
633
|
+
}
|
|
634
|
+
), Re([L, W], async (r, d) => {
|
|
635
|
+
if (!y || !v.value) return;
|
|
636
|
+
const [S] = r, [F] = d || [];
|
|
637
|
+
(!F || S.getTime() !== F.getTime()) && (await Fe(), ee(), X ? Z() : de());
|
|
638
|
+
}), {
|
|
639
|
+
scrollLeft: R,
|
|
640
|
+
contentScrollLeft: x,
|
|
641
|
+
containerWidth: M,
|
|
642
|
+
useVirtual: C,
|
|
643
|
+
virtualRange: U,
|
|
644
|
+
virtualTransformX: J,
|
|
645
|
+
scrollDirection: z,
|
|
646
|
+
visibleCells: I,
|
|
647
|
+
visibleEvents: a,
|
|
648
|
+
spacerStyle: Se,
|
|
649
|
+
scrollToNow: de,
|
|
650
|
+
scrollToToday: Z,
|
|
651
|
+
scrollToPosition: oe,
|
|
652
|
+
scrollToDate: he,
|
|
653
|
+
handleScroll: H
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
function qt(t, o, p) {
|
|
657
|
+
if (!o && !p || Bt(t)) return t;
|
|
658
|
+
const m = p ?? (o ? "groupId" : void 0);
|
|
659
|
+
return m ? Nt(t, m) : t;
|
|
660
|
+
}
|
|
661
|
+
function tn(t, o = {}) {
|
|
662
|
+
const { resources: p, groupingOptions: m, filterOptions: L, initialExpanded: W = !0, rowHeight: v = 40, laneCountResolver: $, byGroupID: G, resourceGroupField: y } = t, X = (a) => {
|
|
663
|
+
const c = qt(a, G?.value ?? !1, y?.value);
|
|
664
|
+
return m?.value ? Xt(c, m.value) : c;
|
|
665
|
+
}, s = D(Be(X(p.value), { initialExpanded: W })), O = D("");
|
|
666
|
+
Re(
|
|
667
|
+
[p, () => G?.value, () => y?.value],
|
|
668
|
+
() => {
|
|
669
|
+
s.value = Be(X(p.value), { initialExpanded: W });
|
|
670
|
+
},
|
|
671
|
+
{ deep: !0 }
|
|
672
|
+
);
|
|
673
|
+
const k = w(() => !O.value.trim() || !L?.value?.enabled ? {
|
|
674
|
+
flattenedResources: s.value.flattenedResources,
|
|
675
|
+
matchingIds: new Set(s.value.resourceMap.keys()),
|
|
676
|
+
visibleIds: s.value.visibleResourceIds
|
|
677
|
+
} : Lt(s.value, O.value, L.value)), E = w(() => k.value.flattenedResources.filter((a) => a.isVisible)), R = w(() => {
|
|
678
|
+
let a;
|
|
679
|
+
if ($) {
|
|
680
|
+
a = /* @__PURE__ */ new Map();
|
|
681
|
+
for (const c of E.value)
|
|
682
|
+
c.hasChildren || a.set(c.id, $(c.id));
|
|
683
|
+
}
|
|
684
|
+
return xt(E.value, v, void 0, a);
|
|
685
|
+
}), x = w(() => zt(R.value)), M = w(() => s.value.resourceMap.size), _ = w(() => E.value.length);
|
|
686
|
+
function ne(a, c) {
|
|
687
|
+
s.value = Ot(s.value, a, c), o.onResourceAdd?.(a, c);
|
|
688
|
+
}
|
|
689
|
+
function K(a, c) {
|
|
690
|
+
const T = s.value.resourceMap.get(a);
|
|
691
|
+
if (T) {
|
|
692
|
+
s.value = At(s.value, a, c);
|
|
693
|
+
const z = s.value.resourceMap.get(a);
|
|
694
|
+
z && o.onResourceUpdate?.(z, T);
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
function V(a) {
|
|
698
|
+
const c = s.value.resourceMap.get(a);
|
|
699
|
+
c && (s.value = Ft(s.value, a), o.onResourceRemove?.(c));
|
|
700
|
+
}
|
|
701
|
+
function f(a) {
|
|
702
|
+
const c = s.value.resourceMap.get(a);
|
|
703
|
+
s.value = It(s.value, a), c && o.onResourceExpand?.(c);
|
|
704
|
+
}
|
|
705
|
+
function h(a) {
|
|
706
|
+
const c = s.value.resourceMap.get(a);
|
|
707
|
+
s.value = Yt(s.value, a), c && o.onResourceCollapse?.(c);
|
|
708
|
+
}
|
|
709
|
+
function Y(a) {
|
|
710
|
+
const c = s.value.expandedIds.has(a);
|
|
711
|
+
s.value = Wt(s.value, a);
|
|
712
|
+
const T = s.value.resourceMap.get(a);
|
|
713
|
+
T && (c ? o.onResourceCollapse?.(T) : o.onResourceExpand?.(T));
|
|
714
|
+
}
|
|
715
|
+
function N() {
|
|
716
|
+
s.value = Pt(s.value);
|
|
717
|
+
}
|
|
718
|
+
function q() {
|
|
719
|
+
s.value = Ct(s.value);
|
|
720
|
+
}
|
|
721
|
+
function ue(a) {
|
|
722
|
+
return s.value.expandedIds.has(a);
|
|
723
|
+
}
|
|
724
|
+
function B(a) {
|
|
725
|
+
return s.value.resourceMap.get(a);
|
|
726
|
+
}
|
|
727
|
+
function C(a) {
|
|
728
|
+
O.value = a;
|
|
729
|
+
}
|
|
730
|
+
function Q() {
|
|
731
|
+
O.value = "";
|
|
732
|
+
}
|
|
733
|
+
function U(a) {
|
|
734
|
+
return E.value[a];
|
|
735
|
+
}
|
|
736
|
+
function I(a) {
|
|
737
|
+
return R.value.find((c) => c.resource.id === a);
|
|
738
|
+
}
|
|
739
|
+
return {
|
|
740
|
+
storeState: s,
|
|
741
|
+
visibleResources: E,
|
|
742
|
+
resourceLayouts: R,
|
|
743
|
+
totalHeight: x,
|
|
744
|
+
resourceCount: M,
|
|
745
|
+
visibleResourceCount: _,
|
|
746
|
+
filterQuery: O,
|
|
747
|
+
filteredState: k,
|
|
748
|
+
addResource: ne,
|
|
749
|
+
updateResource: K,
|
|
750
|
+
removeResource: V,
|
|
751
|
+
expandResource: f,
|
|
752
|
+
collapseResource: h,
|
|
753
|
+
toggleExpansion: Y,
|
|
754
|
+
expandAll: N,
|
|
755
|
+
collapseAll: q,
|
|
756
|
+
isExpanded: ue,
|
|
757
|
+
getResourceById: B,
|
|
758
|
+
setFilterQuery: C,
|
|
759
|
+
clearFilter: Q,
|
|
760
|
+
getResourceAtIndex: U,
|
|
761
|
+
getResourceLayout: I
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
export {
|
|
765
|
+
jt as a,
|
|
766
|
+
en as b,
|
|
767
|
+
Kt as c,
|
|
768
|
+
Gt as g,
|
|
769
|
+
_t as s,
|
|
770
|
+
tn as u
|
|
771
|
+
};
|