@daypilot/daypilot-lite-angular 3.10.1 → 3.12.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.
@@ -17,6 +17,7 @@ export declare module DayPilot {
17
17
  eventResizeHandling?: "Update" | "CallBack" | "Disabled";
18
18
  eventRightClickHandling?: "ContextMenu" | "Enabled" | "Disabled";
19
19
  headerClickHandling?: "Enabled" | "Disabled";
20
+ headerDateFormat?: string;
20
21
  headerHeight?: number;
21
22
  headerTextWrappingEnabled?: boolean;
22
23
  height?: number;
@@ -36,6 +37,7 @@ export declare module DayPilot {
36
37
  viewType?: "Day" | "Days" | "Week" | "WorkWeek" | "Resources";
37
38
  visible?: boolean;
38
39
  xssProtection?: "Enabled" | "Disabled";
40
+ onBeforeEventRender?: EventHandler<CalendarBeforeEventRenderArgs>;
39
41
  onEventClick?: EventHandler<CalendarEventClickArgs>;
40
42
  onEventClicked?: EventHandler<CalendarEventClickedArgs>;
41
43
  onEventDelete?: EventHandler<CalendarEventDeleteArgs>;
@@ -100,6 +102,9 @@ export declare module DayPilot {
100
102
  html?: string;
101
103
  toolTip?: string;
102
104
  }
105
+ export interface CalendarBeforeEventRenderArgs {
106
+ readonly data: EventData;
107
+ }
103
108
  export interface CalendarEventClickArgs {
104
109
  readonly e: DayPilot.Event;
105
110
  readonly control: DayPilot.Calendar;
@@ -223,6 +228,7 @@ export declare module DayPilot {
223
228
  weekStarts?: number;
224
229
  width?: string;
225
230
  xssProtection?: "Enabled" | "Disabled";
231
+ onBeforeEventRender?: EventHandler<MonthBeforeEventRenderArgs>;
226
232
  onCellHeaderClick?: EventHandler<MonthCellHeaderClickArgs>;
227
233
  onCellHeaderClicked?: EventHandler<MonthCellHeaderClickedArgs>;
228
234
  onEventClick?: EventHandler<MonthEventClickArgs>;
@@ -266,6 +272,9 @@ export declare module DayPilot {
266
272
  visibleStart(): DayPilot.Date;
267
273
  visibleEnd(): DayPilot.Date;
268
274
  }
275
+ export interface MonthBeforeEventRenderArgs {
276
+ readonly data: EventData;
277
+ }
269
278
  export interface MonthCellHeaderClickArgs {
270
279
  readonly control: DayPilot.Month;
271
280
  readonly start: DayPilot.Date;
@@ -572,6 +581,11 @@ export declare module DayPilot {
572
581
  static overlaps(start1: number, end1: number, start2: number, end2: number): boolean;
573
582
  static escapeHtml(text: string): string;
574
583
  }
584
+ export class ColorUtil {
585
+ static darker(color: string, steps?: number): string;
586
+ static lighter(color: string, steps?: number): string;
587
+ static contrasting(color: string, light?: string, dark?: string): string;
588
+ }
575
589
  export class Http {
576
590
  static get(url: string, options?: HttpGetOptions): Promise<HttpPromiseArgs>;
577
591
  static post(url: string, data?: object | string, options?: HttpPostOptions): Promise<HttpPromiseArgs>;
@@ -650,6 +664,7 @@ export declare module DayPilot {
650
664
  id: EventId;
651
665
  text: string;
652
666
  resource?: ResourceId;
667
+ areas?: AreaData[];
653
668
  backColor?: string;
654
669
  barBackColor?: string;
655
670
  barColor?: string;
@@ -660,12 +675,45 @@ export declare module DayPilot {
660
675
  html?: string;
661
676
  tags?: any;
662
677
  }
678
+ export interface AreaData {
679
+ action?: "Default" | "None" | "ContextMenu" | "ResizeEnd" | "ResizeStart" | "Move";
680
+ backColor?: string;
681
+ background?: string;
682
+ bottom?: number | string;
683
+ cssClass?: string;
684
+ fontColor?: string;
685
+ height?: number | string;
686
+ horizontalAlignment?: HorizontalAlignment;
687
+ html?: string;
688
+ icon?: string;
689
+ id?: AreaId;
690
+ image?: string;
691
+ left?: number | string;
692
+ menu?: Menu | string;
693
+ onClick?: (args: any) => void;
694
+ onClicked?: (args: any) => void;
695
+ onMouseEnter?: (args: any) => void;
696
+ onMouseLeave?: (args: any) => void;
697
+ padding?: number;
698
+ right?: number | string;
699
+ style?: string;
700
+ symbol?: string;
701
+ text?: string;
702
+ toolTip?: string;
703
+ top?: number | string;
704
+ verticalAlignment?: VerticalAlignment;
705
+ visibility?: "Hover" | "Visible" | "TouchVisible";
706
+ width?: number | string;
707
+ }
663
708
  export function guid(): string;
664
709
  export interface EventHandler<T> {
665
710
  (args: T): void;
666
711
  }
667
712
  export type ResourceId = string | number;
668
713
  export type EventId = string | number;
714
+ export type AreaId = string | number;
715
+ export type HorizontalAlignment = "right" | "center" | "left";
716
+ export type VerticalAlignment = "top" | "center" | "bottom";
669
717
  export class ModalPropsAndEvents {
670
718
  autoFocus?: boolean;
671
719
  autoStretch?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daypilot/daypilot-lite-angular",
3
- "version": "3.10.1",
3
+ "version": "3.12.0",
4
4
  "description": "DayPilot Lite for Angular",
5
5
  "homepage": "https://javascript.daypilot.org/",
6
6
  "author": "Annpoint, s.r.o.",