@daypilot/daypilot-lite-angular 3.12.1 → 3.13.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/esm2020/lib/core/daypilot-core.mjs +581 -527
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +614 -501
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +580 -526
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +51 -0
- package/package.json +1 -1
|
@@ -525,6 +525,57 @@ export declare module DayPilot {
|
|
|
525
525
|
readonly originalEvent: MouseEvent;
|
|
526
526
|
preventDefault(): void;
|
|
527
527
|
}
|
|
528
|
+
export class SwitcherPropsAndEvents {
|
|
529
|
+
selectedClass?: string;
|
|
530
|
+
onChange?: EventHandler<SwitcherChangeArgs>;
|
|
531
|
+
onChanged?: EventHandler<SwitcherChangedArgs>;
|
|
532
|
+
onSelect?: EventHandler<SwitcherSelectArgs>;
|
|
533
|
+
}
|
|
534
|
+
export class SwitcherConfig extends SwitcherPropsAndEvents {
|
|
535
|
+
triggers?: SwitcherTrigger[];
|
|
536
|
+
navigator?: DayPilot.Navigator;
|
|
537
|
+
}
|
|
538
|
+
export class Switcher extends SwitcherPropsAndEvents {
|
|
539
|
+
constructor(options?: SwitcherConfig);
|
|
540
|
+
readonly active: SwitcherView;
|
|
541
|
+
addTrigger(id: string | HTMLElement, view: SwitcherViewControl): void;
|
|
542
|
+
addNavigator(navigator: DayPilot.Navigator): void;
|
|
543
|
+
select(triggerId: string): void;
|
|
544
|
+
events: {
|
|
545
|
+
load(url: string, success: (args: {
|
|
546
|
+
data: any;
|
|
547
|
+
preventDefault(): void;
|
|
548
|
+
}) => void, error: (args: {
|
|
549
|
+
request: XMLHttpRequest;
|
|
550
|
+
exception: any;
|
|
551
|
+
}) => void): void;
|
|
552
|
+
};
|
|
553
|
+
}
|
|
554
|
+
export interface SwitcherView {
|
|
555
|
+
control: SwitcherViewControl;
|
|
556
|
+
}
|
|
557
|
+
export interface SwitcherTrigger {
|
|
558
|
+
id: string | HTMLElement;
|
|
559
|
+
view: SwitcherViewControl;
|
|
560
|
+
}
|
|
561
|
+
export interface SwitcherChangeArgs {
|
|
562
|
+
readonly start: DayPilot.Date;
|
|
563
|
+
readonly end: DayPilot.Date;
|
|
564
|
+
readonly day: DayPilot.Date;
|
|
565
|
+
readonly target: SwitcherView;
|
|
566
|
+
preventDefault(): void;
|
|
567
|
+
}
|
|
568
|
+
export interface SwitcherChangedArgs {
|
|
569
|
+
readonly start: DayPilot.Date;
|
|
570
|
+
readonly end: DayPilot.Date;
|
|
571
|
+
readonly day: DayPilot.Date;
|
|
572
|
+
readonly target: SwitcherView;
|
|
573
|
+
}
|
|
574
|
+
export interface SwitcherSelectArgs {
|
|
575
|
+
readonly source: HTMLElement;
|
|
576
|
+
readonly target: SwitcherViewControl;
|
|
577
|
+
}
|
|
578
|
+
export type SwitcherViewControl = DayPilot.Calendar | DayPilot.Month;
|
|
528
579
|
export class Date {
|
|
529
580
|
constructor(str?: string | DayPilot.Date);
|
|
530
581
|
constructor(date: GlobalDate, isLocal?: boolean);
|