@daypilot/daypilot-lite-angular 3.0.0 → 3.2.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.
@@ -140,12 +140,16 @@ export declare module DayPilot {
140
140
  }
141
141
  export class MonthPropsAndEvents {
142
142
  backendUrl?: string;
143
+ cellHeaderClickHandling?: "Enabled" | "Disabled";
143
144
  cellHeaderHeight?: number;
144
145
  cellHeight?: number;
146
+ eventBarVisible?: number;
145
147
  eventClickHandling?: "Enabled" | "Disabled" | "CallBack" | "Select" | "ContextMenu" | "Bubble";
146
148
  eventHeight?: number;
149
+ eventDeleteHandling?: "Update" | "Disabled";
147
150
  eventMoveHandling?: "Update" | "CallBack" | "Notify" | "Disabled";
148
151
  eventResizeHandling?: "Update" | "CallBack" | "Notify" | "Disabled";
152
+ headerClickHandling?: "Enabled" | "Disabled" | "CallBack";
149
153
  headerHeight?: number;
150
154
  hideUntilInit?: boolean;
151
155
  lineSpace?: number;
@@ -157,8 +161,13 @@ export declare module DayPilot {
157
161
  visible?: boolean;
158
162
  weekStarts?: number;
159
163
  width?: string;
164
+ xssProtection?: "Enabled" | "Disabled";
165
+ onCellHeaderClick?: EventHandler<MonthCellHeaderClickArgs>;
166
+ onCellHeaderClicked?: EventHandler<MonthCellHeaderClickedArgs>;
160
167
  onEventClick?: EventHandler<MonthEventClickArgs>;
161
168
  onEventClicked?: EventHandler<MonthEventClickedArgs>;
169
+ onEventDelete?: EventHandler<MonthEventDeleteArgs>;
170
+ onEventDeleted?: EventHandler<MonthEventDeletedArgs>;
162
171
  onEventMove?: EventHandler<MonthEventMoveArgs>;
163
172
  onEventMoved?: EventHandler<MonthEventMovedArgs>;
164
173
  onEventResize?: EventHandler<MonthEventResizeArgs>;
@@ -194,6 +203,17 @@ export declare module DayPilot {
194
203
  visibleStart(): DayPilot.Date;
195
204
  visibleEnd(): DayPilot.Date;
196
205
  }
206
+ export interface MonthCellHeaderClickArgs {
207
+ readonly control: DayPilot.Month;
208
+ readonly start: DayPilot.Date;
209
+ readonly end: DayPilot.Date;
210
+ preventDefault(): void;
211
+ }
212
+ export interface MonthCellHeaderClickedArgs {
213
+ readonly control: DayPilot.Month;
214
+ readonly start: DayPilot.Date;
215
+ readonly end: DayPilot.Date;
216
+ }
197
217
  export interface MonthEventClickArgs {
198
218
  readonly e: DayPilot.Event;
199
219
  readonly control: DayPilot.Month;
@@ -211,6 +231,15 @@ export declare module DayPilot {
211
231
  readonly meta: boolean;
212
232
  readonly ctrl: boolean;
213
233
  }
234
+ export interface MonthEventDeleteArgs {
235
+ readonly e: DayPilot.Event;
236
+ readonly control: DayPilot.Month;
237
+ preventDefault(): void;
238
+ }
239
+ export interface MonthEventDeletedArgs {
240
+ readonly e: DayPilot.Event;
241
+ readonly control: DayPilot.Month;
242
+ }
214
243
  export interface MonthEventMoveArgs {
215
244
  readonly e: DayPilot.Event;
216
245
  readonly control: DayPilot.Month;
@@ -411,6 +440,34 @@ export declare module DayPilot {
411
440
  export class Util {
412
441
  static overlaps(start1: DayPilot.Date, end1: DayPilot.Date, start2: DayPilot.Date, end2: DayPilot.Date): boolean;
413
442
  static overlaps(start1: number, end1: number, start2: number, end2: number): boolean;
443
+ static escapeHtml(text: string): string;
444
+ }
445
+ export class Http {
446
+ static get(url: string, options?: HttpGetOptions): Promise<HttpPromiseArgs>;
447
+ static post(url: string, data?: object | string, options?: HttpPostOptions): Promise<HttpPromiseArgs>;
448
+ static put(url: string, data?: object | string, options?: HttpPutOptions): Promise<HttpPromiseArgs>;
449
+ static delete(url: string, options?: HttpDeleteOptions): Promise<HttpPromiseArgs>;
450
+ }
451
+ export interface HttpDeleteOptions {
452
+ headers?: HttpHeaders;
453
+ }
454
+ export interface HttpGetOptions {
455
+ headers?: HttpHeaders;
456
+ }
457
+ export interface HttpPostOptions {
458
+ headers?: HttpHeaders;
459
+ contentType?: string;
460
+ }
461
+ export interface HttpPutOptions {
462
+ headers?: HttpHeaders;
463
+ contentType?: string;
464
+ }
465
+ export interface HttpPromiseArgs {
466
+ readonly data: any;
467
+ readonly request: XMLHttpRequest;
468
+ }
469
+ export interface HttpHeaders {
470
+ [header: string]: string;
414
471
  }
415
472
  export class Duration {
416
473
  ticks: number;
@@ -464,34 +521,14 @@ export declare module DayPilot {
464
521
  text: string;
465
522
  resource?: ResourceId;
466
523
  backColor?: string;
467
- backImage?: string;
468
- backRepeat?: string;
524
+ barBackColor?: string;
525
+ barColor?: string;
526
+ barHidden?: boolean;
469
527
  borderColor?: string;
470
- bubbleHtml?: string;
471
- clickDisabled?: boolean;
472
528
  cssClass?: string;
473
- deleteDisabled?: boolean;
474
- doubleClickDisabled?: boolean;
475
529
  fontColor?: string;
476
- hidden?: boolean;
477
530
  html?: string;
478
- line?: "dedicated" | number;
479
- moveDisabled?: boolean;
480
- resizeDisabled?: boolean;
481
- rightClickDisabled?: boolean;
482
- sort?: string[];
483
531
  tags?: any;
484
- toolTip?: string;
485
- barBackColor?: string;
486
- barColor?: string;
487
- barHidden?: boolean;
488
- complete?: number;
489
- container?: number | string;
490
- height?: number;
491
- htmlLeft?: string;
492
- htmlRight?: string;
493
- moveVDisabled?: boolean;
494
- moveHDisabled?: boolean;
495
532
  }
496
533
  export function guid(): string;
497
534
  export interface EventHandler<T> {
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.2.1",
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",