@daypilot/daypilot-lite-javascript 4.9.0 → 5.0.0-sandbox.765

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.
@@ -3,7 +3,7 @@ DayPilot Lite
3
3
  Copyright (c) 2005 - 2025 Annpoint s.r.o.
4
4
  https://www.daypilot.org/
5
5
  Licensed under Apache Software License 2.0
6
- Version: 2025.4.757-lite
6
+ Version: 2025.4.765-lite
7
7
  */
8
8
  type GlobalDate = Date;
9
9
 
@@ -80,6 +80,8 @@ export module DayPilot {
80
80
  weekStarts?: "Auto" | number;
81
81
  width?: string;
82
82
  xssProtection?: "Enabled" | "Disabled";
83
+ zoomLevels?: ZoomLevel[];
84
+ zoomPosition?: "left" | "right" | "middle";
83
85
 
84
86
  onAfterUpdate?: EventHandler<SchedulerAfterUpdateArgs>;
85
87
  onBeforeCellRender?: EventHandler<SchedulerBeforeCellRenderArgs>;
@@ -111,6 +113,7 @@ export module DayPilot {
111
113
 
112
114
  export class SchedulerConfig extends SchedulerPropsAndEvents {
113
115
  events?: EventData[];
116
+ zoom?: number | string;
114
117
  }
115
118
 
116
119
  export class Scheduler extends SchedulerPropsAndEvents {
@@ -152,6 +155,11 @@ export module DayPilot {
152
155
  sort(spec?: string | { field: string, order?: "asc" | "desc" }): void;
153
156
  update(row: DayPilot.Row | ResourceData): void;
154
157
  };
158
+ zoom: {
159
+ setActive(index: number, position?: "left" | "middle" | "right"): void;
160
+ setActive(id: string, position?: "left" | "middle" | "right"): void;
161
+ active: number;
162
+ };
155
163
 
156
164
  constructor(id: string | HTMLElement, options?: SchedulerConfig);
157
165
 
@@ -444,6 +452,12 @@ export module DayPilot {
444
452
  // TODO check if all values are supported
445
453
  export type GroupBy = "Minute" | "Hour" | "Day" | "Week" | "Month" | "Quarter" | "Year" | "Cell" | "None";
446
454
 
455
+ export interface ZoomLevel {
456
+ properties: any;
457
+
458
+ [prop: string]: any;
459
+ }
460
+
447
461
  export interface SchedulerViewport {
448
462
  start: DayPilot.Date,
449
463
  end: DayPilot.Date,