@daypilot/daypilot-lite-angular 3.16.0 → 3.18.0

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.
@@ -39,6 +39,7 @@ export declare module DayPilot {
39
39
  xssProtection?: "Enabled" | "Disabled";
40
40
  onAfterEventRender?: EventHandler<CalendarAfterEventRenderArgs>;
41
41
  onBeforeEventRender?: EventHandler<CalendarBeforeEventRenderArgs>;
42
+ onBeforeHeaderRender?: EventHandler<CalendarBeforeHeaderRenderArgs>;
42
43
  onEventClick?: EventHandler<CalendarEventClickArgs>;
43
44
  onEventClicked?: EventHandler<CalendarEventClickedArgs>;
44
45
  onEventDelete?: EventHandler<CalendarEventDeleteArgs>;
@@ -109,8 +110,23 @@ export declare module DayPilot {
109
110
  readonly div: HTMLElement;
110
111
  }
111
112
  export interface CalendarBeforeEventRenderArgs {
113
+ readonly control: DayPilot.Calendar;
112
114
  readonly data: EventData;
113
115
  }
116
+ export interface CalendarBeforeHeaderRenderArgs {
117
+ readonly header: {
118
+ readonly id: ResourceId;
119
+ readonly start: DayPilot.Date;
120
+ readonly name: string;
121
+ readonly children: CalendarColumnData[];
122
+ html: string;
123
+ backColor: string;
124
+ cssClass?: string;
125
+ toolTip: string;
126
+ areas: AreaData[];
127
+ };
128
+ readonly column: Column;
129
+ }
114
130
  export interface CalendarEventClickArgs {
115
131
  readonly e: DayPilot.Event;
116
132
  readonly control: DayPilot.Calendar;
@@ -175,7 +191,7 @@ export declare module DayPilot {
175
191
  readonly newEnd: DayPilot.Date;
176
192
  }
177
193
  export interface CalendarHeaderClickArgs {
178
- readonly column: CalendarColumn;
194
+ readonly column: Column;
179
195
  readonly originalEvent: MouseEvent;
180
196
  readonly shift: boolean;
181
197
  readonly meta: boolean;
@@ -183,7 +199,7 @@ export declare module DayPilot {
183
199
  preventDefault(): void;
184
200
  }
185
201
  export interface CalendarHeaderClickedArgs {
186
- readonly column: CalendarColumn;
202
+ readonly column: Column;
187
203
  readonly originalEvent: MouseEvent;
188
204
  readonly shift: boolean;
189
205
  readonly meta: boolean;
@@ -202,7 +218,7 @@ export declare module DayPilot {
202
218
  readonly resource: ResourceId;
203
219
  readonly control: DayPilot.Calendar;
204
220
  }
205
- export class CalendarColumn {
221
+ export class Column {
206
222
  readonly id: ResourceId;
207
223
  readonly start: DayPilot.Date;
208
224
  readonly name: string;
@@ -214,7 +230,7 @@ export declare module DayPilot {
214
230
  cellHeaderHeight?: number;
215
231
  cellHeight?: number;
216
232
  contextMenu?: DayPilot.Menu;
217
- eventBarVisible?: number;
233
+ eventBarVisible?: boolean;
218
234
  eventClickHandling?: "Enabled" | "Disabled" | "CallBack" | "ContextMenu";
219
235
  eventRightClickHandling?: "ContextMenu" | "Enabled" | "Disabled";
220
236
  eventHeight?: number;
@@ -286,6 +302,7 @@ export declare module DayPilot {
286
302
  readonly div: HTMLElement;
287
303
  }
288
304
  export interface MonthBeforeEventRenderArgs {
305
+ readonly control: DayPilot.Month;
289
306
  readonly data: EventData;
290
307
  }
291
308
  export interface MonthCellHeaderClickArgs {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daypilot/daypilot-lite-angular",
3
- "version": "3.16.0",
3
+ "version": "3.18.0",
4
4
  "description": "DayPilot Lite for Angular",
5
5
  "homepage": "https://javascript.daypilot.org/",
6
6
  "author": "Annpoint, s.r.o.",