@daypilot/daypilot-lite-angular 3.0.0 → 3.1.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.
@@ -144,6 +144,7 @@ export declare module DayPilot {
144
144
  cellHeight?: number;
145
145
  eventClickHandling?: "Enabled" | "Disabled" | "CallBack" | "Select" | "ContextMenu" | "Bubble";
146
146
  eventHeight?: number;
147
+ eventDeleteHandling?: "Update" | "Disabled";
147
148
  eventMoveHandling?: "Update" | "CallBack" | "Notify" | "Disabled";
148
149
  eventResizeHandling?: "Update" | "CallBack" | "Notify" | "Disabled";
149
150
  headerHeight?: number;
@@ -157,8 +158,13 @@ export declare module DayPilot {
157
158
  visible?: boolean;
158
159
  weekStarts?: number;
159
160
  width?: string;
161
+ xssProtection?: "Enabled" | "Disabled";
162
+ onCellHeaderClick?: EventHandler<MonthCellHeaderClickArgs>;
163
+ onCellHeaderClicked?: EventHandler<MonthCellHeaderClickedArgs>;
160
164
  onEventClick?: EventHandler<MonthEventClickArgs>;
161
165
  onEventClicked?: EventHandler<MonthEventClickedArgs>;
166
+ onEventDelete?: EventHandler<MonthEventDeleteArgs>;
167
+ onEventDeleted?: EventHandler<MonthEventDeletedArgs>;
162
168
  onEventMove?: EventHandler<MonthEventMoveArgs>;
163
169
  onEventMoved?: EventHandler<MonthEventMovedArgs>;
164
170
  onEventResize?: EventHandler<MonthEventResizeArgs>;
@@ -194,6 +200,17 @@ export declare module DayPilot {
194
200
  visibleStart(): DayPilot.Date;
195
201
  visibleEnd(): DayPilot.Date;
196
202
  }
203
+ export interface MonthCellHeaderClickArgs {
204
+ readonly control: DayPilot.Month;
205
+ readonly start: DayPilot.Date;
206
+ readonly end: DayPilot.Date;
207
+ preventDefault(): void;
208
+ }
209
+ export interface MonthCellHeaderClickedArgs {
210
+ readonly control: DayPilot.Month;
211
+ readonly start: DayPilot.Date;
212
+ readonly end: DayPilot.Date;
213
+ }
197
214
  export interface MonthEventClickArgs {
198
215
  readonly e: DayPilot.Event;
199
216
  readonly control: DayPilot.Month;
@@ -211,6 +228,15 @@ export declare module DayPilot {
211
228
  readonly meta: boolean;
212
229
  readonly ctrl: boolean;
213
230
  }
231
+ export interface MonthEventDeleteArgs {
232
+ readonly e: DayPilot.Event;
233
+ readonly control: DayPilot.Month;
234
+ preventDefault(): void;
235
+ }
236
+ export interface MonthEventDeletedArgs {
237
+ readonly e: DayPilot.Event;
238
+ readonly control: DayPilot.Month;
239
+ }
214
240
  export interface MonthEventMoveArgs {
215
241
  readonly e: DayPilot.Event;
216
242
  readonly control: DayPilot.Month;
@@ -411,6 +437,34 @@ export declare module DayPilot {
411
437
  export class Util {
412
438
  static overlaps(start1: DayPilot.Date, end1: DayPilot.Date, start2: DayPilot.Date, end2: DayPilot.Date): boolean;
413
439
  static overlaps(start1: number, end1: number, start2: number, end2: number): boolean;
440
+ static escapeHtml(text: string): string;
441
+ }
442
+ export class Http {
443
+ static get(url: string, options?: HttpGetOptions): Promise<HttpPromiseArgs>;
444
+ static post(url: string, data?: object | string, options?: HttpPostOptions): Promise<HttpPromiseArgs>;
445
+ static put(url: string, data?: object | string, options?: HttpPutOptions): Promise<HttpPromiseArgs>;
446
+ static delete(url: string, options?: HttpDeleteOptions): Promise<HttpPromiseArgs>;
447
+ }
448
+ export interface HttpDeleteOptions {
449
+ headers?: HttpHeaders;
450
+ }
451
+ export interface HttpGetOptions {
452
+ headers?: HttpHeaders;
453
+ }
454
+ export interface HttpPostOptions {
455
+ headers?: HttpHeaders;
456
+ contentType?: string;
457
+ }
458
+ export interface HttpPutOptions {
459
+ headers?: HttpHeaders;
460
+ contentType?: string;
461
+ }
462
+ export interface HttpPromiseArgs {
463
+ readonly data: any;
464
+ readonly request: XMLHttpRequest;
465
+ }
466
+ export interface HttpHeaders {
467
+ [header: string]: string;
414
468
  }
415
469
  export class Duration {
416
470
  ticks: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@daypilot/daypilot-lite-angular",
3
- "version": "3.0.0",
4
- "description": "DayPilot Lite for JavaScript (Angular)",
3
+ "version": "3.1.0",
4
+ "description": "DayPilot Lite for Angular",
5
5
  "homepage": "https://javascript.daypilot.org/",
6
6
  "author": "Annpoint, s.r.o.",
7
7
  "license": "Apache-2.0",