@daypilot/daypilot-lite-angular 3.7.0 → 3.9.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.
- package/README.md +130 -13
- package/esm2020/lib/core/daypilot-core.mjs +505 -296
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +551 -244
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +505 -296
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +103 -2
- package/package.json +1 -1
|
@@ -7,14 +7,18 @@ export declare module DayPilot {
|
|
|
7
7
|
cellHeight?: number;
|
|
8
8
|
columnMarginRight?: number;
|
|
9
9
|
columnsLoadMethod?: "POST" | "GET";
|
|
10
|
+
contextMenu?: DayPilot.Menu;
|
|
10
11
|
days?: number;
|
|
11
12
|
doubleClickTimeout?: number;
|
|
12
13
|
durationBarVisible?: boolean;
|
|
13
|
-
eventClickHandling?: "Enabled" | "Disabled" | "CallBack";
|
|
14
|
+
eventClickHandling?: "Enabled" | "Disabled" | "CallBack" | "ContextMenu";
|
|
14
15
|
eventDeleteHandling?: "Update" | "Disabled" | "CallBack";
|
|
15
16
|
eventMoveHandling?: "Update" | "CallBack" | "Disabled";
|
|
16
17
|
eventResizeHandling?: "Update" | "CallBack" | "Disabled";
|
|
18
|
+
eventRightClickHandling?: "ContextMenu" | "Enabled" | "Disabled";
|
|
19
|
+
headerClickHandling?: "Enabled" | "Disabled";
|
|
17
20
|
headerHeight?: number;
|
|
21
|
+
headerTextWrappingEnabled?: boolean;
|
|
18
22
|
height?: number;
|
|
19
23
|
heightSpec?: "BusinessHours" | "BusinessHoursNoScroll" | "Full";
|
|
20
24
|
hideUntilInit?: boolean;
|
|
@@ -40,6 +44,10 @@ export declare module DayPilot {
|
|
|
40
44
|
onEventMoved?: EventHandler<CalendarEventMovedArgs>;
|
|
41
45
|
onEventResize?: EventHandler<CalendarEventResizeArgs>;
|
|
42
46
|
onEventResized?: EventHandler<CalendarEventResizedArgs>;
|
|
47
|
+
onEventRightClick?: EventHandler<CalendarEventRightClickArgs>;
|
|
48
|
+
onEventRightClicked?: EventHandler<CalendarEventRightClickedArgs>;
|
|
49
|
+
onHeaderClick?: EventHandler<CalendarHeaderClickArgs>;
|
|
50
|
+
onHeaderClicked?: EventHandler<CalendarHeaderClickedArgs>;
|
|
43
51
|
onTimeRangeSelect?: EventHandler<CalendarTimeRangeSelectArgs>;
|
|
44
52
|
onTimeRangeSelected?: EventHandler<CalendarTimeRangeSelectedArgs>;
|
|
45
53
|
}
|
|
@@ -107,6 +115,13 @@ export declare module DayPilot {
|
|
|
107
115
|
readonly meta: boolean;
|
|
108
116
|
readonly originalEvent: MouseEvent;
|
|
109
117
|
}
|
|
118
|
+
export interface CalendarEventRightClickArgs {
|
|
119
|
+
readonly e: DayPilot.Event;
|
|
120
|
+
preventDefault(): void;
|
|
121
|
+
}
|
|
122
|
+
export interface CalendarEventRightClickedArgs {
|
|
123
|
+
readonly e: DayPilot.Event;
|
|
124
|
+
}
|
|
110
125
|
export interface CalendarEventDeleteArgs {
|
|
111
126
|
readonly e: DayPilot.Event;
|
|
112
127
|
readonly control: DayPilot.Calendar;
|
|
@@ -148,6 +163,21 @@ export declare module DayPilot {
|
|
|
148
163
|
readonly newStart: DayPilot.Date;
|
|
149
164
|
readonly newEnd: DayPilot.Date;
|
|
150
165
|
}
|
|
166
|
+
export interface CalendarHeaderClickArgs {
|
|
167
|
+
readonly column: CalendarColumn;
|
|
168
|
+
readonly originalEvent: MouseEvent;
|
|
169
|
+
readonly shift: boolean;
|
|
170
|
+
readonly meta: boolean;
|
|
171
|
+
readonly ctrl: boolean;
|
|
172
|
+
preventDefault(): void;
|
|
173
|
+
}
|
|
174
|
+
export interface CalendarHeaderClickedArgs {
|
|
175
|
+
readonly column: CalendarColumn;
|
|
176
|
+
readonly originalEvent: MouseEvent;
|
|
177
|
+
readonly shift: boolean;
|
|
178
|
+
readonly meta: boolean;
|
|
179
|
+
readonly ctrl: boolean;
|
|
180
|
+
}
|
|
151
181
|
export interface CalendarTimeRangeSelectArgs {
|
|
152
182
|
readonly start: DayPilot.Date;
|
|
153
183
|
readonly end: DayPilot.Date;
|
|
@@ -161,13 +191,21 @@ export declare module DayPilot {
|
|
|
161
191
|
readonly resource: ResourceId;
|
|
162
192
|
readonly control: DayPilot.Calendar;
|
|
163
193
|
}
|
|
194
|
+
export class CalendarColumn {
|
|
195
|
+
readonly id: ResourceId;
|
|
196
|
+
readonly start: DayPilot.Date;
|
|
197
|
+
readonly name: string;
|
|
198
|
+
readonly data: CalendarColumnData;
|
|
199
|
+
}
|
|
164
200
|
export class MonthPropsAndEvents {
|
|
165
201
|
backendUrl?: string;
|
|
166
202
|
cellHeaderClickHandling?: "Enabled" | "Disabled";
|
|
167
203
|
cellHeaderHeight?: number;
|
|
168
204
|
cellHeight?: number;
|
|
205
|
+
contextMenu?: DayPilot.Menu;
|
|
169
206
|
eventBarVisible?: number;
|
|
170
|
-
eventClickHandling?: "Enabled" | "Disabled" | "CallBack" | "
|
|
207
|
+
eventClickHandling?: "Enabled" | "Disabled" | "CallBack" | "ContextMenu";
|
|
208
|
+
eventRightClickHandling?: "ContextMenu" | "Enabled" | "Disabled";
|
|
171
209
|
eventHeight?: number;
|
|
172
210
|
eventDeleteHandling?: "Update" | "Disabled";
|
|
173
211
|
eventMoveHandling?: "Update" | "CallBack" | "Notify" | "Disabled";
|
|
@@ -195,6 +233,8 @@ export declare module DayPilot {
|
|
|
195
233
|
onEventMoved?: EventHandler<MonthEventMovedArgs>;
|
|
196
234
|
onEventResize?: EventHandler<MonthEventResizeArgs>;
|
|
197
235
|
onEventResized?: EventHandler<MonthEventResizedArgs>;
|
|
236
|
+
onEventRightClick?: EventHandler<MonthEventRightClickArgs>;
|
|
237
|
+
onEventRightClicked?: EventHandler<MonthEventRightClickedArgs>;
|
|
198
238
|
onTimeRangeSelect?: EventHandler<MonthTimeRangeSelectArgs>;
|
|
199
239
|
onTimeRangeSelected?: EventHandler<MonthTimeRangeSelectedArgs>;
|
|
200
240
|
}
|
|
@@ -254,6 +294,13 @@ export declare module DayPilot {
|
|
|
254
294
|
readonly meta: boolean;
|
|
255
295
|
readonly ctrl: boolean;
|
|
256
296
|
}
|
|
297
|
+
export interface MonthEventRightClickArgs {
|
|
298
|
+
readonly e: DayPilot.Event;
|
|
299
|
+
preventDefault(): void;
|
|
300
|
+
}
|
|
301
|
+
export interface MonthEventRightClickedArgs {
|
|
302
|
+
readonly e: DayPilot.Event;
|
|
303
|
+
}
|
|
257
304
|
export interface MonthEventDeleteArgs {
|
|
258
305
|
readonly e: DayPilot.Event;
|
|
259
306
|
readonly control: DayPilot.Month;
|
|
@@ -414,6 +461,60 @@ export declare module DayPilot {
|
|
|
414
461
|
static register(locale: DayPilot.Locale): void;
|
|
415
462
|
static find(id: string): DayPilot.Locale;
|
|
416
463
|
}
|
|
464
|
+
export class MenuPropsAndEvents {
|
|
465
|
+
hideOnMouseOut?: boolean;
|
|
466
|
+
items?: MenuItemData[];
|
|
467
|
+
menuTitle?: string;
|
|
468
|
+
onShow?: EventHandler<MenuShowArgs>;
|
|
469
|
+
onHide?: EventHandler<MenuHideArgs>;
|
|
470
|
+
showMenuTitle?: boolean;
|
|
471
|
+
zIndex?: number;
|
|
472
|
+
theme?: string;
|
|
473
|
+
}
|
|
474
|
+
export class MenuConfig extends MenuPropsAndEvents {
|
|
475
|
+
}
|
|
476
|
+
export class Menu extends MenuPropsAndEvents {
|
|
477
|
+
v: string;
|
|
478
|
+
constructor(options?: MenuConfig);
|
|
479
|
+
show(target?: any): void;
|
|
480
|
+
hide(): void;
|
|
481
|
+
static hide(): void;
|
|
482
|
+
}
|
|
483
|
+
export interface MenuShowArgs {
|
|
484
|
+
readonly source: any;
|
|
485
|
+
readonly menu: DayPilot.Menu;
|
|
486
|
+
preventDefault(): void;
|
|
487
|
+
}
|
|
488
|
+
export interface MenuHideArgs {
|
|
489
|
+
}
|
|
490
|
+
export class MenuBar {
|
|
491
|
+
items: any[];
|
|
492
|
+
constructor(id: string, options?: any);
|
|
493
|
+
init(): void;
|
|
494
|
+
dispose(): void;
|
|
495
|
+
}
|
|
496
|
+
export interface MenuItemData {
|
|
497
|
+
action?: "CallBack" | "PostBack";
|
|
498
|
+
command?: string;
|
|
499
|
+
cssClass?: string;
|
|
500
|
+
disabled?: boolean;
|
|
501
|
+
hidden?: boolean;
|
|
502
|
+
href?: string;
|
|
503
|
+
icon?: string;
|
|
504
|
+
image?: string;
|
|
505
|
+
items?: MenuItemData[];
|
|
506
|
+
onClick?: EventHandler<MenuItemClickArgs>;
|
|
507
|
+
tags?: any;
|
|
508
|
+
target?: string;
|
|
509
|
+
text?: string;
|
|
510
|
+
html?: string;
|
|
511
|
+
}
|
|
512
|
+
export interface MenuItemClickArgs {
|
|
513
|
+
readonly item: MenuItemData;
|
|
514
|
+
readonly source: any;
|
|
515
|
+
readonly originalEvent: MouseEvent;
|
|
516
|
+
preventDefault(): void;
|
|
517
|
+
}
|
|
417
518
|
export class Date {
|
|
418
519
|
constructor(str?: string | DayPilot.Date);
|
|
419
520
|
constructor(date: GlobalDate, isLocal?: boolean);
|