@primeui/vue-scheduler 0.0.1-alpha.1 → 1.0.0-rc.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.
Files changed (219) hide show
  1. package/LICENSE.md +35 -0
  2. package/README.md +7 -8
  3. package/THIRD-PARTY-NOTICES.txt +191 -0
  4. package/dist/Scheduler.context.d.ts +6 -2
  5. package/dist/Scheduler.vue.d.ts +4 -0
  6. package/dist/chunks/AgendaList.vue_vue_type_script_setup_true_lang-CzR4fr-_.mjs +195 -0
  7. package/dist/chunks/DateMonthGrid.parts-BzNiqQxr.mjs +992 -0
  8. package/dist/chunks/MonthGrid.parts-ChZtQsBz.mjs +480 -0
  9. package/dist/chunks/MonthGridMoreLink.vue_vue_type_script_setup_true_lang-ofPIiuwn.mjs +33 -0
  10. package/dist/chunks/MonthGridMorePopover.vue_vue_type_script_setup_true_lang-CeUzHOYW.mjs +932 -0
  11. package/dist/chunks/ResourceMonthGrid.parts-SnuI2jm7.mjs +1144 -0
  12. package/dist/chunks/Scheduler.parts-DBvRJZul.mjs +4111 -0
  13. package/dist/chunks/SchedulerContentOutlet-zjiyyEaS.mjs +389 -0
  14. package/dist/chunks/SchedulerContentScope-C9sih2yJ.mjs +183 -0
  15. package/dist/chunks/TimeGrid.parts-0Ca-cysA.mjs +619 -0
  16. package/dist/chunks/TimeGridBlockedInterval.vue_vue_type_script_setup_true_lang-mRkBslaW.mjs +52 -0
  17. package/dist/chunks/TimeGridDragPreview.vue_vue_type_script_setup_true_lang-COVjhfYQ.mjs +1035 -0
  18. package/dist/chunks/Timeline.parts-Cbdl8vxt.mjs +1951 -0
  19. package/dist/chunks/YearGrid.vue_vue_type_script_setup_true_lang--eilt_6f.mjs +227 -0
  20. package/dist/chunks/keyboardOwner-DDeKHIWX.mjs +30 -0
  21. package/dist/chunks/timezone-display-CGpPS0DH.mjs +52 -0
  22. package/dist/chunks/useHorizontalGroupedSizing-BcGRdWEZ.mjs +47 -0
  23. package/dist/chunks/useResourceStore-D6suUGIR.mjs +113 -0
  24. package/dist/chunks/useSchedulerAutoScroll-Dh-lxPHq.mjs +45 -0
  25. package/dist/chunks/useTimelineVirtualScroll-DwGUNfPF.mjs +631 -0
  26. package/dist/components.d.ts +1 -0
  27. package/dist/components.mjs +35 -0
  28. package/dist/composables/index.mjs +5 -4
  29. package/dist/composables/useSchedulerAppointmentSlotTracking.d.ts +1 -1
  30. package/dist/composables/useSchedulerAutoScroll.d.ts +3 -3
  31. package/dist/composables/useSchedulerInlineEditState.d.ts +2 -1
  32. package/dist/composables/useSchedulerInteractionState.d.ts +2 -2
  33. package/dist/composables/useSchedulerOverlayState.d.ts +2 -1
  34. package/dist/composables/useSchedulerResourceConflicts.d.ts +2 -1
  35. package/dist/composables/useSchedulerSelectionState.d.ts +2 -1
  36. package/dist/composables/useSchedulerViewState.d.ts +43 -0
  37. package/dist/composables/useTimelineDragDrop.d.ts +1 -1
  38. package/dist/composables/useTimelineVirtualScroll.d.ts +1 -1
  39. package/dist/index.d.ts +3 -1
  40. package/dist/index.mjs +232 -12221
  41. package/dist/release-date.d.ts +1 -1
  42. package/dist/shared/AdaptiveResourceBreadcrumb.vue.d.ts +2 -2
  43. package/dist/utils/accessibility.d.ts +1 -0
  44. package/dist/utils/browser.d.ts +2 -1
  45. package/dist/utils/timedInteraction.d.ts +1 -1
  46. package/dist/views/agenda.d.ts +3 -0
  47. package/dist/views/agenda.mjs +10 -0
  48. package/dist/views/date.d.ts +3 -0
  49. package/dist/views/date.mjs +9 -0
  50. package/dist/views/day.d.ts +3 -0
  51. package/dist/views/day.mjs +15 -0
  52. package/dist/views/month.d.ts +3 -0
  53. package/dist/views/month.mjs +14 -0
  54. package/dist/views/resource.d.ts +4 -0
  55. package/dist/views/resource.mjs +18 -0
  56. package/dist/views/timeline.d.ts +21 -0
  57. package/dist/views/timeline.mjs +11 -0
  58. package/dist/views/week.d.ts +3 -0
  59. package/dist/views/week.mjs +15 -0
  60. package/dist/views/year.d.ts +3 -0
  61. package/dist/views/year.mjs +9 -0
  62. package/package.json +26 -20
  63. package/LICENSE +0 -23
  64. package/dist/Scheduler.context.d.mts +0 -625
  65. package/dist/Scheduler.event-context.d.mts +0 -54
  66. package/dist/Scheduler.header-context.d.mts +0 -51
  67. package/dist/Scheduler.overlay-context.d.mts +0 -131
  68. package/dist/Scheduler.parts.d.mts +0 -79
  69. package/dist/Scheduler.payloads.d.mts +0 -19
  70. package/dist/Scheduler.props.d.mts +0 -134
  71. package/dist/Scheduler.resource-context.d.mts +0 -162
  72. package/dist/Scheduler.test-utils.d.mts +0 -4
  73. package/dist/Scheduler.utility-context.d.mts +0 -112
  74. package/dist/Scheduler.vue.d.mts +0 -428
  75. package/dist/chunks/useResourceStore-D6lZ4kim.mjs +0 -771
  76. package/dist/composables/index.d.mts +0 -3
  77. package/dist/composables/useAdaptiveRendering.d.mts +0 -12
  78. package/dist/composables/useAdaptiveResourceMode.d.mts +0 -39
  79. package/dist/composables/useDateGridEngine.d.mts +0 -7
  80. package/dist/composables/useDateMonthGridEngine.d.mts +0 -7
  81. package/dist/composables/useHorizontalGroupedSizing.d.mts +0 -24
  82. package/dist/composables/useInlineEdit.d.mts +0 -17
  83. package/dist/composables/useMonthGridEngine.d.mts +0 -3
  84. package/dist/composables/useResourceGridEngine.d.mts +0 -7
  85. package/dist/composables/useResourceMonthGridEngine.d.mts +0 -7
  86. package/dist/composables/useResourceStore.d.mts +0 -324
  87. package/dist/composables/useSchedulerAppointmentSlotTracking.d.mts +0 -15
  88. package/dist/composables/useSchedulerAutoScroll.d.mts +0 -16
  89. package/dist/composables/useSchedulerContext.d.mts +0 -143
  90. package/dist/composables/useSchedulerEventActions.d.mts +0 -57
  91. package/dist/composables/useSchedulerEventState.d.mts +0 -26
  92. package/dist/composables/useSchedulerFormatting.d.mts +0 -34
  93. package/dist/composables/useSchedulerInlineEditState.d.mts +0 -24
  94. package/dist/composables/useSchedulerInteractionState.d.mts +0 -65
  95. package/dist/composables/useSchedulerOverlayState.d.mts +0 -596
  96. package/dist/composables/useSchedulerPrintRuntime.d.mts +0 -45
  97. package/dist/composables/useSchedulerRecurrenceState.d.mts +0 -102
  98. package/dist/composables/useSchedulerResourceConflicts.d.mts +0 -26
  99. package/dist/composables/useSchedulerResourceState.d.mts +0 -406
  100. package/dist/composables/useSchedulerSelectionState.d.mts +0 -66
  101. package/dist/composables/useTimeGridEngine.d.mts +0 -3
  102. package/dist/composables/useTimelineDragDrop.d.mts +0 -497
  103. package/dist/composables/useTimelineEngine.d.mts +0 -3
  104. package/dist/composables/useTimelineVirtualScroll.d.mts +0 -37
  105. package/dist/engines/agenda/AgendaList.vue.d.mts +0 -27
  106. package/dist/engines/date-grid/DateGrid.context.d.mts +0 -19
  107. package/dist/engines/date-grid/DateGrid.parts.d.mts +0 -5
  108. package/dist/engines/date-grid/DateGrid.vue.d.mts +0 -22
  109. package/dist/engines/date-grid/DateGridAllDayRow.vue.d.mts +0 -9
  110. package/dist/engines/date-grid/DateGridBody.vue.d.mts +0 -21
  111. package/dist/engines/date-grid/DateGridColumn.vue.d.mts +0 -28
  112. package/dist/engines/date-grid/DateGridHeader.vue.d.mts +0 -27
  113. package/dist/engines/date-grid/DateGridSuperColumn.vue.d.mts +0 -23
  114. package/dist/engines/date-month-grid/DateMonthGrid.context.d.mts +0 -20
  115. package/dist/engines/date-month-grid/DateMonthGrid.parts.d.mts +0 -5
  116. package/dist/engines/date-month-grid/DateMonthGrid.vue.d.mts +0 -23
  117. package/dist/engines/date-month-grid/DateMonthGridBody.vue.d.mts +0 -21
  118. package/dist/engines/date-month-grid/DateMonthGridDay.vue.d.mts +0 -38
  119. package/dist/engines/date-month-grid/DateMonthGridResourceHeader.vue.d.mts +0 -9
  120. package/dist/engines/date-month-grid/DateMonthGridWeek.vue.d.mts +0 -23
  121. package/dist/engines/date-month-grid/DateMonthGridWeekdays.vue.d.mts +0 -21
  122. package/dist/engines/month-grid/MonthGrid.context.d.mts +0 -2
  123. package/dist/engines/month-grid/MonthGrid.parts.d.mts +0 -11
  124. package/dist/engines/month-grid/MonthGrid.vue.d.mts +0 -24
  125. package/dist/engines/month-grid/MonthGridBody.vue.d.mts +0 -21
  126. package/dist/engines/month-grid/MonthGridDay.vue.d.mts +0 -45
  127. package/dist/engines/month-grid/MonthGridDayHeader.vue.d.mts +0 -26
  128. package/dist/engines/month-grid/MonthGridDragPreview.vue.d.mts +0 -35
  129. package/dist/engines/month-grid/MonthGridEvent.vue.d.mts +0 -41
  130. package/dist/engines/month-grid/MonthGridMoreLink.vue.d.mts +0 -23
  131. package/dist/engines/month-grid/MonthGridMorePopover.vue.d.mts +0 -3
  132. package/dist/engines/month-grid/MonthGridNowIndicator.vue.d.mts +0 -15
  133. package/dist/engines/month-grid/MonthGridWeek.vue.d.mts +0 -26
  134. package/dist/engines/month-grid/MonthGridWeekdays.vue.d.mts +0 -21
  135. package/dist/engines/resource-grid/ResourceGrid.context.d.mts +0 -19
  136. package/dist/engines/resource-grid/ResourceGrid.parts.d.mts +0 -5
  137. package/dist/engines/resource-grid/ResourceGrid.vue.d.mts +0 -22
  138. package/dist/engines/resource-grid/ResourceGridAllDayRow.vue.d.mts +0 -9
  139. package/dist/engines/resource-grid/ResourceGridBody.vue.d.mts +0 -21
  140. package/dist/engines/resource-grid/ResourceGridDayColumn.vue.d.mts +0 -28
  141. package/dist/engines/resource-grid/ResourceGridHeader.vue.d.mts +0 -27
  142. package/dist/engines/resource-grid/ResourceGridSuperColumn.vue.d.mts +0 -24
  143. package/dist/engines/resource-month-grid/ResourceMonthGrid.context.d.mts +0 -19
  144. package/dist/engines/resource-month-grid/ResourceMonthGrid.parts.d.mts +0 -6
  145. package/dist/engines/resource-month-grid/ResourceMonthGrid.vue.d.mts +0 -23
  146. package/dist/engines/resource-month-grid/ResourceMonthGridBody.vue.d.mts +0 -21
  147. package/dist/engines/resource-month-grid/ResourceMonthGridColumn.vue.d.mts +0 -24
  148. package/dist/engines/resource-month-grid/ResourceMonthGridDay.vue.d.mts +0 -37
  149. package/dist/engines/resource-month-grid/ResourceMonthGridHeader.vue.d.mts +0 -23
  150. package/dist/engines/resource-month-grid/ResourceMonthGridWeek.vue.d.mts +0 -26
  151. package/dist/engines/time-grid/TimeGrid.context.d.mts +0 -2
  152. package/dist/engines/time-grid/TimeGrid.parts.d.mts +0 -15
  153. package/dist/engines/time-grid/TimeGrid.vue.d.mts +0 -23
  154. package/dist/engines/time-grid/TimeGridAllDayEvent.vue.d.mts +0 -27
  155. package/dist/engines/time-grid/TimeGridAllDayRow.vue.d.mts +0 -23
  156. package/dist/engines/time-grid/TimeGridAppointmentSlots.vue.d.mts +0 -26
  157. package/dist/engines/time-grid/TimeGridBlockedInterval.vue.d.mts +0 -21
  158. package/dist/engines/time-grid/TimeGridBody.vue.d.mts +0 -21
  159. package/dist/engines/time-grid/TimeGridBusinessHours.vue.d.mts +0 -18
  160. package/dist/engines/time-grid/TimeGridDayColumn.vue.d.mts +0 -27
  161. package/dist/engines/time-grid/TimeGridDragPreview.vue.d.mts +0 -26
  162. package/dist/engines/time-grid/TimeGridEvent.vue.d.mts +0 -52
  163. package/dist/engines/time-grid/TimeGridHeader.vue.d.mts +0 -32
  164. package/dist/engines/time-grid/TimeGridNowIndicator.vue.d.mts +0 -16
  165. package/dist/engines/time-grid/TimeGridSlot.vue.d.mts +0 -33
  166. package/dist/engines/time-grid/TimeGridSlotGrid.vue.d.mts +0 -22
  167. package/dist/engines/time-grid/TimeGridTimeColumn.vue.d.mts +0 -28
  168. package/dist/engines/timeline/Timeline.context.d.mts +0 -2
  169. package/dist/engines/timeline/Timeline.parts.d.mts +0 -14
  170. package/dist/engines/timeline/Timeline.vue.d.mts +0 -23
  171. package/dist/engines/timeline/TimelineBlockedInterval.vue.d.mts +0 -22
  172. package/dist/engines/timeline/TimelineBody.vue.d.mts +0 -26
  173. package/dist/engines/timeline/TimelineBusinessHours.vue.d.mts +0 -16
  174. package/dist/engines/timeline/TimelineCell.vue.d.mts +0 -32
  175. package/dist/engines/timeline/TimelineDragPreview.vue.d.mts +0 -26
  176. package/dist/engines/timeline/TimelineEvent.vue.d.mts +0 -57
  177. package/dist/engines/timeline/TimelineHeader.vue.d.mts +0 -21
  178. package/dist/engines/timeline/TimelineHeaderCell.vue.d.mts +0 -35
  179. package/dist/engines/timeline/TimelineHeaderRow.vue.d.mts +0 -30
  180. package/dist/engines/timeline/TimelineLane.vue.d.mts +0 -29
  181. package/dist/engines/timeline/TimelineNowIndicator.vue.d.mts +0 -16
  182. package/dist/engines/timeline/TimelineResourceArea.vue.d.mts +0 -25
  183. package/dist/engines/timeline/TimelineResourceRow.vue.d.mts +0 -38
  184. package/dist/engines/timeline/TimelineYear.vue.d.mts +0 -9
  185. package/dist/engines/timeline/TimelineYearEvent.vue.d.mts +0 -10
  186. package/dist/engines/year-grid/YearGrid.vue.d.mts +0 -54
  187. package/dist/index.d.mts +0 -24
  188. package/dist/release-date.d.mts +0 -11
  189. package/dist/shared/AdaptiveResourceBreadcrumb.vue.d.mts +0 -42
  190. package/dist/shared/AdaptiveResourceSelector.vue.d.mts +0 -76
  191. package/dist/shared/ResourceArea.vue.d.mts +0 -67
  192. package/dist/shared/SchedulerContextMenu.vue.d.mts +0 -32
  193. package/dist/shared/SchedulerMorePopover.vue.d.mts +0 -30
  194. package/dist/shared/SchedulerPopover.vue.d.mts +0 -28
  195. package/dist/shared/SchedulerQuickInfo.vue.d.mts +0 -36
  196. package/dist/shared/SchedulerRecurrenceDialog.vue.d.mts +0 -27
  197. package/dist/shell/SchedulerAdaptiveResourceControls.vue.d.mts +0 -3
  198. package/dist/shell/SchedulerCategoryLegend.vue.d.mts +0 -26
  199. package/dist/shell/SchedulerContent.vue.d.mts +0 -13
  200. package/dist/shell/SchedulerContentOutlet.d.mts +0 -30
  201. package/dist/shell/SchedulerContentScope.d.mts +0 -39
  202. package/dist/shell/SchedulerFooter.vue.d.mts +0 -17
  203. package/dist/shell/SchedulerHeader.vue.d.mts +0 -49
  204. package/dist/shell/SchedulerLoading.vue.d.mts +0 -13
  205. package/dist/shell/SchedulerNavigation.vue.d.mts +0 -26
  206. package/dist/shell/SchedulerSelectionToolbar.vue.d.mts +0 -27
  207. package/dist/shell/SchedulerTitle.vue.d.mts +0 -17
  208. package/dist/shell/SchedulerViewSelector.vue.d.mts +0 -23
  209. package/dist/shell/contentDeclarations.d.mts +0 -6
  210. package/dist/shell/headerToolbar.d.mts +0 -21
  211. package/dist/shell/outletRenderers.d.mts +0 -45
  212. package/dist/utils/accessibility.d.mts +0 -19
  213. package/dist/utils/browser.d.mts +0 -6
  214. package/dist/utils/devWarnings.d.mts +0 -3
  215. package/dist/utils/event-anchor.d.mts +0 -2
  216. package/dist/utils/keyboardOwner.d.mts +0 -1
  217. package/dist/utils/rtl-scroll.d.mts +0 -22
  218. package/dist/utils/timedInteraction.d.mts +0 -10
  219. package/dist/utils/timezone-display.d.mts +0 -8
package/LICENSE.md ADDED
@@ -0,0 +1,35 @@
1
+ # PrimeUI Pro License
2
+
3
+ This package is a **PrimeUI Pro** component by PrimeTek Informatics — an advanced, framework-independent UI component.
4
+
5
+ PrimeUI Pro components are commercial software. They are not available under the MIT license or a free Community license. A valid commercial license is required.
6
+
7
+ ## How PrimeUI Pro May Be Used
8
+
9
+ This component may be used under either of the following:
10
+
11
+ ### Standalone Commercial License
12
+
13
+ Purchased individually, licensed per developer, perpetual, with one year of updates. The component is framework-independent and may be used with any UI library, including PrimeNG, PrimeReact, PrimeVue, or others.
14
+
15
+ ### Included with PrimeUI Commercial Suite
16
+
17
+ PrimeUI Commercial Suite license holders receive access to all PrimeUI Pro components released within their update period at no additional cost.
18
+
19
+ ## License Key
20
+
21
+ A valid license key is required to use this software. License verification is performed offline, with no telemetry and no remote connection. A missing, invalid, or expired key may cause the software to display a license notice.
22
+
23
+ ## Full Terms
24
+
25
+ The complete license terms, pricing, and renewal information are available at:
26
+
27
+ **https://primeui.dev/licenses/commercial**
28
+
29
+ ## Restrictions
30
+
31
+ This software is distributed as a compiled package. You may not reverse-engineer, decompile, or extract its source code, redistribute it as a component library or development tool, or remove its license mechanisms. Redistributing the component so that third parties can develop with it requires a separate OEM License. See the full terms for details.
32
+
33
+ ---
34
+
35
+ © 2026 PrimeTek Informatics. All rights reserved.
package/README.md CHANGED
@@ -5,15 +5,15 @@
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- pnpm add @primeui/vue-scheduler @primeui/scheduler-core @primeui/scheduler-style
8
+ pnpm add @primeui/vue-scheduler
9
9
  ```
10
10
 
11
11
  Import the namespace export and the scheduler styles once:
12
12
 
13
13
  ```ts
14
14
  import { Scheduler } from '@primeui/vue-scheduler';
15
- import '@primeui/scheduler-style/style.css';
16
- import '@primeui/scheduler-style/themes/primeone.css';
15
+ import '@primeui/vue-scheduler/style.css';
16
+ import '@primeui/vue-scheduler/themes/primeone.css';
17
17
  ```
18
18
 
19
19
  ## Usage Modes
@@ -54,8 +54,8 @@ import {
54
54
  SchedulerTimelineEventUI,
55
55
  SchedulerToolbarUI
56
56
  } from '@ui/scheduler';
57
- import '@primeui/scheduler-style/style.css';
58
- import '@primeui/scheduler-style/themes/primeone.css';
57
+ import '@primeui/vue-scheduler/style.css';
58
+ import '@primeui/vue-scheduler/themes/primeone.css';
59
59
 
60
60
  const currentDate = ref(new Date());
61
61
  const currentView = ref<'week' | 'day'>('week');
@@ -305,7 +305,6 @@ const events = ref([
305
305
  - Use child outlets inside `Scheduler.Content` for routed events, cells, and resources. Keep part-owned slots for shell/overlay chrome such as `Scheduler.Header`, `Scheduler.QuickInfo`, `Scheduler.Popover`, `Scheduler.MorePopover`, and `Scheduler.ContextMenu`. Event, cell, resource, agenda, and mini-month customization belongs on the semantic child outlet parts.
306
306
  - If an application wants one-line usage, create that wrapper in application code by composing these public parts.
307
307
 
308
- ## Further Reading
308
+ ## License
309
309
 
310
- - [Compound API reference](../docs/COMPOUND_API.md)
311
- - [Compound headless guide](../COMPOUND_HEADLESS_GUIDE.md)
310
+ Licensed under the [PrimeUI Pro License](https://primeui.dev/licenses/commercial) - Copyright (c) [PrimeTek Informatics](https://www.primetek.com.tr)
@@ -0,0 +1,191 @@
1
+ # Third-Party Notices
2
+
3
+ This package includes the following third-party open source software through its Scheduler runtime dependencies.
4
+ Each is provided under its own license, reproduced below.
5
+
6
+ ---
7
+
8
+ ## @internationalized/date
9
+
10
+ Copyright 2019 Adobe
11
+
12
+ Licensed under the Apache License, Version 2.0.
13
+
14
+ Apache License
15
+ Version 2.0, January 2004
16
+ http://www.apache.org/licenses/
17
+
18
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
19
+
20
+ 1. Definitions.
21
+
22
+ "License" shall mean the terms and conditions for use, reproduction,
23
+ and distribution as defined by Sections 1 through 9 of this document.
24
+
25
+ "Licensor" shall mean the copyright owner or entity authorized by
26
+ the copyright owner that is granting the License.
27
+
28
+ "Legal Entity" shall mean the union of the acting entity and all
29
+ other entities that control, are controlled by, or are under common
30
+ control with that entity. For the purposes of this definition,
31
+ "control" means (i) the power, direct or indirect, to cause the
32
+ direction or management of such entity, whether by contract or
33
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
34
+ outstanding shares, or (iii) beneficial ownership of such entity.
35
+
36
+ "You" (or "Your") shall mean an individual or Legal Entity
37
+ exercising permissions granted by this License.
38
+
39
+ "Source" form shall mean the preferred form for making modifications,
40
+ including but not limited to software source code, documentation
41
+ source, and configuration files.
42
+
43
+ "Object" form shall mean any form resulting from mechanical
44
+ transformation or translation of a Source form, including but
45
+ not limited to compiled object code, generated documentation,
46
+ and conversions to other media types.
47
+
48
+ "Work" shall mean the work of authorship, whether in Source or
49
+ Object form, made available under the License, as indicated by a
50
+ copyright notice that is included in or attached to the work
51
+ (an example is provided in the Appendix below).
52
+
53
+ "Derivative Works" shall mean any work, whether in Source or Object
54
+ form, that is based on (or derived from) the Work and for which the
55
+ editorial revisions, annotations, elaborations, or other modifications
56
+ represent, as a whole, an original work of authorship. For the purposes
57
+ of this License, Derivative Works shall not include works that remain
58
+ separable from, or merely link (or bind by name) to the interfaces of,
59
+ the Work and Derivative Works thereof.
60
+
61
+ "Contribution" shall mean any work of authorship, including
62
+ the original version of the Work and any modifications or additions
63
+ to that Work or Derivative Works thereof, that is intentionally
64
+ submitted to Licensor for inclusion in the Work by the copyright owner
65
+ or by an individual or Legal Entity authorized to submit on behalf of
66
+ the copyright owner. For the purposes of this definition, "submitted"
67
+ means any form of electronic, verbal, or written communication sent
68
+ to the Licensor or its representatives, including but not limited to
69
+ communication on electronic mailing lists, source code control systems,
70
+ and issue tracking systems that are managed by, or on behalf of, the
71
+ Licensor for the purpose of discussing and improving the Work, but
72
+ excluding communication that is conspicuously marked or otherwise
73
+ designated in writing by the copyright owner as "Not a Contribution."
74
+
75
+ "Contributor" shall mean Licensor and any individual or Legal Entity
76
+ on behalf of whom a Contribution has been received by Licensor and
77
+ subsequently incorporated within the Work.
78
+
79
+ 2. Grant of Copyright License. Subject to the terms and conditions of
80
+ this License, each Contributor hereby grants to You a perpetual,
81
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
82
+ copyright license to reproduce, prepare Derivative Works of,
83
+ publicly display, publicly perform, sublicense, and distribute the
84
+ Work and such Derivative Works in Source or Object form.
85
+
86
+ 3. Grant of Patent License. Subject to the terms and conditions of
87
+ this License, each Contributor hereby grants to You a perpetual,
88
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
89
+ (except as stated in this section) patent license to make, have made,
90
+ use, offer to sell, sell, import, and otherwise transfer the Work,
91
+ where such license applies only to those patent claims licensable
92
+ by such Contributor that are necessarily infringed by their
93
+ Contribution(s) alone or by combination of their Contribution(s)
94
+ with the Work to which such Contribution(s) was submitted. If You
95
+ institute patent litigation against any entity (including a
96
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
97
+ or a Contribution incorporated within the Work constitutes direct
98
+ or contributory patent infringement, then any patent licenses
99
+ granted to You under this License for that Work shall terminate
100
+ as of the date such litigation is filed.
101
+
102
+ 4. Redistribution. You may reproduce and distribute copies of the
103
+ Work or Derivative Works thereof in any medium, with or without
104
+ modifications, and in Source or Object form, provided that You
105
+ meet the following conditions:
106
+
107
+ (a) You must give any other recipients of the Work or
108
+ Derivative Works a copy of this License; and
109
+
110
+ (b) You must cause any modified files to carry prominent notices
111
+ stating that You changed the files; and
112
+
113
+ (c) You must retain, in the Source form of any Derivative Works
114
+ that You distribute, all copyright, patent, trademark, and
115
+ attribution notices from the Source form of the Work,
116
+ excluding those notices that do not pertain to any part of
117
+ the Derivative Works; and
118
+
119
+ (d) If the Work includes a "NOTICE" text file as part of its
120
+ distribution, then any Derivative Works that You distribute must
121
+ include a readable copy of the attribution notices contained
122
+ within such NOTICE file, excluding those notices that do not
123
+ pertain to any part of the Derivative Works, in at least one
124
+ of the following places: within a NOTICE text file distributed
125
+ as part of the Derivative Works; within the Source form or
126
+ documentation, if provided along with the Derivative Works; or,
127
+ within a display generated by the Derivative Works, if and
128
+ wherever such third-party notices normally appear. The contents
129
+ of the NOTICE file are for informational purposes only and
130
+ do not modify the License. You may add Your own attribution
131
+ notices within Derivative Works that You distribute, alongside
132
+ or as an addendum to the NOTICE text from the Work, provided
133
+ that such additional attribution notices cannot be construed
134
+ as modifying the License.
135
+
136
+ You may add Your own copyright statement to Your modifications and
137
+ may provide additional or different license terms and conditions
138
+ for use, reproduction, or distribution of Your modifications, or
139
+ for any such Derivative Works as a whole, provided Your use,
140
+ reproduction, and distribution of the Work otherwise complies with
141
+ the conditions stated in this License.
142
+
143
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
144
+ any Contribution intentionally submitted for inclusion in the Work
145
+ by You to the Licensor shall be under the terms and conditions of
146
+ this License, without any additional terms or conditions.
147
+ Notwithstanding the above, nothing herein shall supersede or modify
148
+ the terms of any separate license agreement you may have executed
149
+ with Licensor regarding such Contributions.
150
+
151
+ 6. Trademarks. This License does not grant permission to use the trade
152
+ names, trademarks, service marks, or product names of the Licensor,
153
+ except as required for reasonable and customary use in describing the
154
+ origin of the Work and reproducing the content of the NOTICE file.
155
+
156
+ 7. Disclaimer of Warranty. Unless required by applicable law or
157
+ agreed to in writing, Licensor provides the Work (and each
158
+ Contributor provides its Contributions) on an "AS IS" BASIS,
159
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
160
+ implied, including, without limitation, any warranties or conditions
161
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
162
+ PARTICULAR PURPOSE. You are solely responsible for determining the
163
+ appropriateness of using or redistributing the Work and assume any
164
+ risks associated with Your exercise of permissions under this License.
165
+
166
+ 8. Limitation of Liability. In no event and under no legal theory,
167
+ whether in tort (including negligence), contract, or otherwise,
168
+ unless required by applicable law (such as deliberate and grossly
169
+ negligent acts) or agreed to in writing, shall any Contributor be
170
+ liable to You for damages, including any direct, indirect, special,
171
+ incidental, or consequential damages of any character arising as a
172
+ result of this License or out of the use or inability to use the
173
+ Work (including but not limited to damages for loss of goodwill,
174
+ work stoppage, computer failure or malfunction, or any and all
175
+ other commercial damages or losses), even if such Contributor
176
+ has been advised of the possibility of such damages.
177
+
178
+ 9. Accepting Warranty or Additional Liability. While redistributing
179
+ the Work or Derivative Works thereof, You may choose to offer,
180
+ and charge a fee for, acceptance of support, warranty, indemnity,
181
+ or other liability obligations and/or rights consistent with this
182
+ License. However, in accepting such obligations, You may act only
183
+ on Your own behalf and on Your sole responsibility, not on behalf
184
+ of any other Contributor, and only if You agree to indemnify,
185
+ defend, and hold each Contributor harmless for any liability
186
+ incurred by, or claims asserted against, such Contributor by reason
187
+ of your accepting any such warranty or additional liability.
188
+
189
+ END OF TERMS AND CONDITIONS
190
+
191
+ ---
@@ -1,6 +1,8 @@
1
1
  import type { InjectionKey, Ref, ComputedRef } from 'vue';
2
- import type { AdaptiveRenderingOptions, AppointmentSlotIndicator, AppointmentSlotOverlay, AppointmentSlotsOptions, AutoHeightOptions, BlockedInterval, BlockedIntervalsOptions, BusinessHours, SchedulerText, CapacityExceededPayload, ConflictOptions, ConflictDetectedPayload, DateDisplayOptions, DateRange, DensityMode, EventAllowCallback, EventCategory, EventConstraint, EventDragState, EventDropPayload, EventResizeStopPayload, EventResizeState, EventResourceChangePayload, EventSelectionLimitReachedPayload, FlattenedResource, HorizontalResourceColumnMode, InlineEditCancelPayload, InlineEditSavePayload, NormalizedQuickInfoOptions, NormalizedInlineEditOptions, QuickInfoDeletePayload, QuickInfoEditPayload, QuickInfoHidePayload, ResourceCapacityInfo, ResourceRowLayout, RecurrenceDeletePayload, RecurrenceEditOptions, RecurrenceEditPayload, PrintInvocationOptions, ResolvedPrintPageChromeState, SchedulerBulkDeletePayload, SchedulerBulkMovePayload, SchedulerBulkUpdatePayload, SchedulerEvent, SchedulerEventSelectionMode, SchedulerEventSelectionOptions, SchedulerCalendarDisplayConfig, SchedulerCalendarMode, SchedulerHeaderToolbar, SchedulerPermissionAction, SchedulerResource, SchedulerSelectionMode, SchedulerViewType, SchedulerNumberingSystem, SelectAllowCallback, SelectConstraintConfig, SlotBookPayload, SlotCancelPayload, StackingOptions, TimeFormatOptions, TimezoneDisplay, BreadcrumbItem, ConflictWorkflowResult } from '@primeui/scheduler-core';
3
- import type { MonthGridDayCellViewModel, MonthResizePreviewData } from '@primeui/scheduler-core';
2
+ import type { AdaptiveRenderingOptions, AppointmentSlotIndicator, AppointmentSlotOverlay, AppointmentSlotsOptions, AutoHeightOptions, BlockedInterval, BlockedIntervalsOptions, BusinessHours, SchedulerText, CapacityExceededPayload, ConflictOptions, ConflictDetectedPayload, DateDisplayOptions, DateRange, DensityMode, EventAllowCallback, EventCategory, EventConstraint, EventDragState, EventDropPayload, EventResizeStopPayload, EventResizeState, EventResourceChangePayload, EventSelectionLimitReachedPayload, FlattenedResource, HorizontalResourceColumnMode, InlineEditCancelPayload, InlineEditSavePayload, QuickInfoDeletePayload, QuickInfoEditPayload, QuickInfoHidePayload, ResourceCapacityInfo, ResourceRowLayout, RecurrenceDeletePayload, RecurrenceEditOptions, RecurrenceEditPayload, PrintInvocationOptions, ResolvedPrintPageChromeState, SchedulerBulkDeletePayload, SchedulerBulkMovePayload, SchedulerBulkUpdatePayload, SchedulerEvent, SchedulerEventSelectionMode, SchedulerEventSelectionOptions, SchedulerCalendarDisplayConfig, SchedulerCalendarMode, SchedulerHeaderToolbar, SchedulerPermissionAction, SchedulerResource, SchedulerSelectionMode, SchedulerViewType, SchedulerNumberingSystem, SelectAllowCallback, SelectConstraintConfig, SlotBookPayload, SlotCancelPayload, StackingOptions, TimeFormatOptions, TimezoneDisplay, BreadcrumbItem } from '@primeui/scheduler-core';
3
+ import type { ConflictWorkflowResult, NormalizedInlineEditOptions, NormalizedQuickInfoOptions } from '@primeui/scheduler-core/interaction';
4
+ import type { MonthGridDayCellViewModel } from '@primeui/scheduler-core';
5
+ import type { MonthResizePreviewData } from '@primeui/scheduler-core/controllers';
4
6
  import type { VueContextMenuContext, VueEventDragPayload, VueEventDragStartPayload, VueEventDragStopPayload, VueEventResizePayload, VueEventResizeStartPayload, VueInlineEditStartPayload, VueMoreClickPayload, VueQuickInfoShowPayload, VueResourceClickPayload, VueSchedulerDateClickPayload, VueSchedulerDateSelectPayload, VueSchedulerEventClickPayload, VueSchedulerEventMousePayload, VueSchedulerPermissionContext, VueSlotClickPayload } from './Scheduler.payloads';
5
7
  export declare const SCHEDULER_KEY: InjectionKey<SchedulerContext>;
6
8
  export declare const TIMEGRID_KEY: InjectionKey<TimeGridContext>;
@@ -540,6 +542,7 @@ export interface TimelineContext {
540
542
  resources: ComputedRef<SchedulerResource[]>;
541
543
  visibleResources: ComputedRef<FlattenedResource[]>;
542
544
  resourceLayouts: ComputedRef<ResourceRowLayout[]>;
545
+ visibleResourceLayouts: ComputedRef<ResourceRowLayout[]>;
543
546
  totalResourceHeight: ComputedRef<number>;
544
547
  expandResource: (id: string | number) => void;
545
548
  collapseResource: (id: string | number) => void;
@@ -594,6 +597,7 @@ export interface TimelineContext {
594
597
  setHeaderHeight: (source: 'timeline' | 'resource', height: number) => void;
595
598
  scrollToNow: (smooth?: boolean) => void;
596
599
  scrollToDate: (date: Date, centerInView?: boolean, smooth?: boolean) => void;
600
+ syncTimelineBodyViewport: (target?: HTMLElement | null) => void;
597
601
  handleScroll: (e: Event) => void;
598
602
  handleResourceAreaScroll: (e: Event) => void;
599
603
  scrollContainerRef: Ref<HTMLElement | undefined>;
@@ -150,6 +150,8 @@ declare const __VLS_base: import("vue").DefineComponent<VueSchedulerProps, {
150
150
  }) => any;
151
151
  datesChange: (payload: DateRange) => any;
152
152
  dateChange: (date: Date) => any;
153
+ "update:view": (view: SchedulerViewType) => any;
154
+ "update:date": (date: Date) => any;
153
155
  selectionChange: (payload: SchedulerSelectionChangePayload) => any;
154
156
  eventSelectionChange: (payload: SchedulerEventSelectionChangePayload) => any;
155
157
  bulkMove: (payload: SchedulerBulkMovePayload) => any;
@@ -229,6 +231,8 @@ declare const __VLS_base: import("vue").DefineComponent<VueSchedulerProps, {
229
231
  }) => any) | undefined;
230
232
  onDatesChange?: ((payload: DateRange) => any) | undefined;
231
233
  onDateChange?: ((date: Date) => any) | undefined;
234
+ "onUpdate:view"?: ((view: SchedulerViewType) => any) | undefined;
235
+ "onUpdate:date"?: ((date: Date) => any) | undefined;
232
236
  onSelectionChange?: ((payload: SchedulerSelectionChangePayload) => any) | undefined;
233
237
  onEventSelectionChange?: ((payload: SchedulerEventSelectionChangePayload) => any) | undefined;
234
238
  onBulkMove?: ((payload: SchedulerBulkMovePayload) => any) | undefined;
@@ -0,0 +1,195 @@
1
+ import { defineComponent as P, inject as B, computed as D, openBlock as i, createElementBlock as u, mergeProps as h, unref as d, renderSlot as Y, Fragment as E, renderList as k, normalizeClass as g, createBlock as K, resolveDynamicComponent as T, createCommentVNode as b, createElementVNode as U, normalizeStyle as $, toDisplayString as q } from "vue";
2
+ import { startOfDayInTimezone as C, endOfDayInTimezone as W, isSameDay as G, getSchedulerEventSurfaceStyle as J, resolveSchedulerEventSurfaceColor as Q } from "@primeui/scheduler-core";
3
+ import { l as X, m as Z } from "./SchedulerContentScope-C9sih2yJ.mjs";
4
+ import { n as j, g as A } from "./timezone-display-CGpPS0DH.mjs";
5
+ const ee = ["data-view"], te = ["data-event-id", "data-view", "data-shell", "data-resource-id", "data-selected", "aria-label", "onClick", "onKeydown"], se = /* @__PURE__ */ P({
6
+ inheritAttrs: !1,
7
+ __name: "AgendaList",
8
+ props: {
9
+ outletRenderers: { default: () => ({}) }
10
+ },
11
+ setup(x) {
12
+ const c = x, t = B(X), p = D(() => {
13
+ const e = t.currentDate.value, a = C(e, t.resolvedDisplayTimezone.value), r = new Date(e);
14
+ r.setDate(r.getDate() + Math.max(1, t.agendaDays.value) - 1);
15
+ const n = W(r, t.resolvedDisplayTimezone.value);
16
+ return j(t.events.value, t.timezone.value, t.resolvedDisplayTimezone.value).filter((o) => {
17
+ const l = o.start instanceof Date ? o.start : new Date(o.start), v = o.end ? o.end instanceof Date ? o.end : new Date(o.end) : new Date(l.getTime() + (o.duration || 36e5));
18
+ return l < n && v > a;
19
+ }).sort((o, l) => {
20
+ const v = o.start instanceof Date ? o.start : new Date(o.start), O = l.start instanceof Date ? l.start : new Date(l.start);
21
+ return v.getTime() - O.getTime();
22
+ });
23
+ }), m = D(() => {
24
+ const e = /* @__PURE__ */ new Map();
25
+ if (t.showEmptyDays.value) {
26
+ const a = Math.max(1, t.agendaDays.value), r = C(t.currentDate.value, t.resolvedDisplayTimezone.value);
27
+ for (let n = 0; n < a; n++) {
28
+ const s = new Date(r);
29
+ s.setDate(s.getDate() + n), e.set(A(s), { date: new Date(s.getFullYear(), s.getMonth(), s.getDate()), events: [] });
30
+ }
31
+ }
32
+ for (const a of p.value) {
33
+ const r = a.start instanceof Date ? a.start : new Date(a.start), n = A(r);
34
+ e.has(n) || e.set(n, { date: new Date(r.getFullYear(), r.getMonth(), r.getDate()), events: [] }), e.get(n).events.push(a);
35
+ }
36
+ return Array.from(e.values()).sort((a, r) => a.date.getTime() - r.date.getTime());
37
+ }), M = D(() => {
38
+ const e = t.noEventsMessage.value;
39
+ return typeof e == "string" && e.trim().length > 0 ? e : t.text.value.noEvents;
40
+ });
41
+ function _(e) {
42
+ const a = e.date.getDate(), r = t.formatDayNumber(e.date), n = t.formatDate(e.date, { weekday: "long" }), s = t.formatDate(e.date, {
43
+ year: "numeric",
44
+ month: "long",
45
+ day: "numeric"
46
+ }), o = e.events.length;
47
+ return {
48
+ date: e.date,
49
+ dayNumber: a,
50
+ dayNumberLabel: r,
51
+ dayOfMonth: a,
52
+ dayOfMonthLabel: r,
53
+ dayName: n,
54
+ formattedDate: s,
55
+ isToday: G(e.date, /* @__PURE__ */ new Date()),
56
+ eventCount: o,
57
+ eventCountText: String(o),
58
+ formatDate: t.formatDate,
59
+ "day-number": a,
60
+ "day-number-label": r,
61
+ "day-of-month": a,
62
+ "day-of-month-label": r,
63
+ "event-count": o,
64
+ "format-date": t.formatDate
65
+ };
66
+ }
67
+ function w(e) {
68
+ return e.allDay ? t.text.value.allDay : t.formatEventTimeRange(e);
69
+ }
70
+ function f(e) {
71
+ return t.selectedEventIds.value.includes(e);
72
+ }
73
+ function z(e) {
74
+ return y() ? {} : J(e, {
75
+ resources: t.resources.value,
76
+ categories: t.categories.value,
77
+ categoryField: t.categoryField.value
78
+ });
79
+ }
80
+ function R(e) {
81
+ return [t.classes.agendaEvent, y() && t.classes.agendaEventShellNone, f(e.id) && t.classes.eventSelected].filter(Boolean);
82
+ }
83
+ function y() {
84
+ return t.agendaEventShell?.value === "none";
85
+ }
86
+ function S(e) {
87
+ return Q(e, {
88
+ resources: t.resources.value,
89
+ categories: t.categories.value,
90
+ categoryField: t.categoryField.value
91
+ });
92
+ }
93
+ function N(e) {
94
+ return {
95
+ event: e,
96
+ isSelected: f(e.id),
97
+ timeText: w(e),
98
+ accentColor: S(e),
99
+ variant: "agenda",
100
+ view: t.currentView.value,
101
+ "is-selected": f(e.id),
102
+ "time-text": w(e),
103
+ "accent-color": S(e)
104
+ };
105
+ }
106
+ function V(e) {
107
+ return Z(e, t);
108
+ }
109
+ function F(e, a) {
110
+ t.emitEventClick({ event: e, jsEvent: a, view: t.currentView.value }), t.selectEvent(e.id, { ctrlKey: a.ctrlKey, shiftKey: a.shiftKey, metaKey: a.metaKey });
111
+ }
112
+ function I(e) {
113
+ return new MouseEvent("click", {
114
+ bubbles: !0,
115
+ cancelable: !0,
116
+ ctrlKey: e.ctrlKey,
117
+ shiftKey: e.shiftKey,
118
+ metaKey: e.metaKey,
119
+ altKey: e.altKey
120
+ });
121
+ }
122
+ function L(e, a) {
123
+ H(a) || a.key !== "Enter" && a.key !== " " && a.key !== "Space" && a.key !== "Spacebar" || (a.preventDefault(), a.stopPropagation(), t.emitEventClick({ event: e, jsEvent: I(a), view: t.currentView.value }), t.selectEvent(e.id, { ctrlKey: a.ctrlKey, shiftKey: a.shiftKey, metaKey: a.metaKey }));
124
+ }
125
+ function H(e) {
126
+ const a = e.currentTarget instanceof HTMLElement ? e.currentTarget : null, r = a?.closest('[data-slot="scheduler-agenda"]'), n = r ? Array.from(r.querySelectorAll('[data-slot="scheduler-agenda-event"][tabindex]')) : [], s = a ? n.indexOf(a) : -1;
127
+ if (s < 0 || n.length === 0)
128
+ return !1;
129
+ let o = s;
130
+ if (e.key === "ArrowDown")
131
+ o = Math.min(n.length - 1, s + 1);
132
+ else if (e.key === "ArrowUp")
133
+ o = Math.max(0, s - 1);
134
+ else if (e.key === "Home")
135
+ o = 0;
136
+ else if (e.key === "End")
137
+ o = n.length - 1;
138
+ else
139
+ return !1;
140
+ e.preventDefault(), e.stopPropagation();
141
+ const l = n[o];
142
+ return l !== a && (l.focus(), l.scrollIntoView?.({ block: "nearest" })), !0;
143
+ }
144
+ return (e, a) => (i(), u("div", h({
145
+ class: d(t).classes.agendaView,
146
+ "data-slot": "scheduler-agenda",
147
+ "data-view": d(t).currentView.value
148
+ }, e.$attrs), [
149
+ Y(e.$slots, "default", {
150
+ days: m.value,
151
+ events: p.value
152
+ }, () => [
153
+ m.value.length > 0 ? (i(!0), u(E, { key: 0 }, k(m.value, (r) => (i(), u("div", {
154
+ key: r.date.getTime(),
155
+ class: g(d(t).classes.agendaDay)
156
+ }, [
157
+ c.outletRenderers.agendaDateHeader ? (i(), K(T(c.outletRenderers.agendaDateHeader), h({
158
+ key: 0,
159
+ ref_for: !0
160
+ }, _(r)), null, 16)) : b("", !0),
161
+ U("div", {
162
+ class: g(d(t).classes.agendaEvents)
163
+ }, [
164
+ (i(!0), u(E, null, k(r.events, (n) => (i(), u("div", {
165
+ key: n.id,
166
+ class: g(R(n)),
167
+ style: $(z(n)),
168
+ "data-slot": "scheduler-agenda-event",
169
+ "data-event-id": String(n.id),
170
+ "data-view": d(t).currentView.value,
171
+ "data-shell": y() ? "none" : "default",
172
+ "data-resource-id": n.resourceId != null ? String(n.resourceId) : void 0,
173
+ "data-selected": f(n.id) ? "" : void 0,
174
+ tabindex: "0",
175
+ "aria-label": V(n),
176
+ onClick: (s) => F(n, s),
177
+ onKeydown: (s) => L(n, s)
178
+ }, [
179
+ c.outletRenderers.agendaEvent || c.outletRenderers.event ? (i(), K(T(c.outletRenderers.agendaEvent || c.outletRenderers.event), h({
180
+ key: 0,
181
+ ref_for: !0
182
+ }, N(n)), null, 16)) : b("", !0)
183
+ ], 46, te))), 128))
184
+ ], 2)
185
+ ], 2))), 128)) : (i(), u("div", {
186
+ key: 1,
187
+ class: g(d(t).classes.agendaNoEvents)
188
+ }, q(M.value), 3))
189
+ ])
190
+ ], 16, ee));
191
+ }
192
+ });
193
+ export {
194
+ se as _
195
+ };