@daypilot/daypilot-lite-angular 5.3.1 → 5.4.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.
@@ -1,5 +1,5 @@
1
1
  type GlobalDate = Date;
2
- export declare module DayPilot {
2
+ export declare namespace DayPilot {
3
3
  export class SchedulerPropsAndEvents {
4
4
  backendUrl?: string;
5
5
  beforeCellRenderCaching?: boolean;
@@ -100,6 +100,7 @@ export declare module DayPilot {
100
100
  onTimeRangeClicked?: EventHandler<SchedulerTimeRangeClickedArgs>;
101
101
  onTimeRangeSelect?: EventHandler<SchedulerTimeRangeSelectArgs>;
102
102
  onTimeRangeSelected?: EventHandler<SchedulerTimeRangeSelectedArgs>;
103
+ onScroll?: EventHandler<SchedulerScrollArgs>;
103
104
  }
104
105
  export class SchedulerConfig extends SchedulerPropsAndEvents {
105
106
  events?: EventData[];
@@ -404,6 +405,10 @@ export declare module DayPilot {
404
405
  readonly resource: ResourceId;
405
406
  readonly control: DayPilot.Scheduler;
406
407
  }
408
+ export interface SchedulerScrollArgs {
409
+ readonly viewport: SchedulerViewport;
410
+ readonly control: DayPilot.Scheduler;
411
+ }
407
412
  export type GroupBy = "Minute" | "Hour" | "Day" | "Week" | "Month" | "Quarter" | "Year" | "Cell" | "None";
408
413
  export interface ZoomLevel {
409
414
  properties: any;
@@ -480,6 +485,7 @@ export declare module DayPilot {
480
485
  eventMoveHandling?: "Update" | "CallBack" | "Disabled";
481
486
  eventResizeHandling?: "Update" | "CallBack" | "Disabled";
482
487
  eventRightClickHandling?: "ContextMenu" | "Enabled" | "Disabled";
488
+ eventsLoadMethod?: "GET" | "POST";
483
489
  headerClickHandling?: "Enabled" | "Disabled";
484
490
  headerDateFormat?: string;
485
491
  headerHeight?: number;
@@ -734,6 +740,7 @@ export declare module DayPilot {
734
740
  eventDeleteHandling?: "Update" | "Disabled";
735
741
  eventMoveHandling?: "Update" | "CallBack" | "Notify" | "Disabled";
736
742
  eventResizeHandling?: "Update" | "CallBack" | "Notify" | "Disabled";
743
+ eventsLoadMethod?: "GET" | "POST";
737
744
  headerClickHandling?: "Enabled" | "Disabled" | "CallBack";
738
745
  headerHeight?: number;
739
746
  hideUntilInit?: boolean;
@@ -905,6 +912,7 @@ export declare module DayPilot {
905
912
  readonly end: DayPilot.Date;
906
913
  }
907
914
  export class NavigatorPropsAndEvents {
915
+ autoFocusOnClick?: boolean;
908
916
  cellHeight?: number;
909
917
  cellWidth?: number;
910
918
  command?: string;
@@ -912,8 +920,10 @@ export declare module DayPilot {
912
920
  eventEndSpec?: "DateTime" | "Date";
913
921
  freeHandSelectionEnabled?: boolean;
914
922
  locale?: string;
923
+ month?: number;
915
924
  orientation?: "Vertical" | "Horizontal";
916
925
  rowsPerMonth?: "Auto" | "Six";
926
+ rtl?: boolean;
917
927
  selectionDay?: DayPilot.Date;
918
928
  selectionEnd?: DayPilot.Date;
919
929
  selectionStart?: DayPilot.Date;
@@ -931,6 +941,7 @@ export declare module DayPilot {
931
941
  todayText?: string;
932
942
  weekStarts?: "Auto" | number;
933
943
  weekNumberAlgorithm?: "Auto" | "US" | "ISO8601";
944
+ year?: number;
934
945
  timeRangeSelectedHandling?: "Bind" | "None";
935
946
  visibleRangeChangedHandling?: "Enabled" | "Disabled" | "CallBack";
936
947
  onBeforeCellRender?: EventHandler<NavigatorBeforeCellRenderArgs>;
@@ -943,7 +954,7 @@ export declare module DayPilot {
943
954
  export class NavigatorConfig extends NavigatorPropsAndEvents {
944
955
  events?: EventData[];
945
956
  }
946
- interface NavigatorSelectOptions {
957
+ export interface NavigatorSelectOptions {
947
958
  dontFocus?: boolean;
948
959
  dontNotify?: boolean;
949
960
  }
@@ -964,7 +975,7 @@ export declare module DayPilot {
964
975
  visibleEnd(): DayPilot.Date;
965
976
  visibleStart(): DayPilot.Date;
966
977
  }
967
- interface NavigatorBeforeCellRenderArgs {
978
+ export interface NavigatorBeforeCellRenderArgs {
968
979
  readonly cell: {
969
980
  readonly day: DayPilot.Date;
970
981
  readonly isCurrentMonth: boolean;
@@ -977,7 +988,7 @@ export declare module DayPilot {
977
988
  };
978
989
  };
979
990
  }
980
- interface NavigatorTimeRangeSelectArgs {
991
+ export interface NavigatorTimeRangeSelectArgs {
981
992
  readonly start: DayPilot.Date;
982
993
  readonly end: DayPilot.Date;
983
994
  readonly day: DayPilot.Date;
@@ -985,7 +996,7 @@ export declare module DayPilot {
985
996
  readonly mode: "Day" | "Week" | "Month" | "None" | "FreeHand";
986
997
  preventDefault(): void;
987
998
  }
988
- interface NavigatorTimeRangeSelectedArgs {
999
+ export interface NavigatorTimeRangeSelectedArgs {
989
1000
  readonly start: DayPilot.Date;
990
1001
  readonly end: DayPilot.Date;
991
1002
  readonly day: DayPilot.Date;
@@ -995,12 +1006,12 @@ export declare module DayPilot {
995
1006
  export interface NavigatorTodayClickArgs {
996
1007
  preventDefault(): void;
997
1008
  }
998
- interface NavigatorVisibleRangeChangeArgs {
1009
+ export interface NavigatorVisibleRangeChangeArgs {
999
1010
  readonly start: DayPilot.Date;
1000
1011
  readonly end: DayPilot.Date;
1001
1012
  preventDefault(): void;
1002
1013
  }
1003
- interface NavigatorVisibleRangeChangedArgs {
1014
+ export interface NavigatorVisibleRangeChangedArgs {
1004
1015
  readonly start: DayPilot.Date;
1005
1016
  readonly end: DayPilot.Date;
1006
1017
  }
@@ -1215,9 +1226,9 @@ export declare module DayPilot {
1215
1226
  static parse(input: string, pattern: string, locale?: string | DayPilot.Locale): DayPilot.Date;
1216
1227
  static today(): DayPilot.Date;
1217
1228
  static now(): DayPilot.Date;
1218
- static Cache: DayPilotDateCache;
1229
+ static Cache: DateCache;
1219
1230
  }
1220
- export class DayPilotDateCache {
1231
+ export class DateCache {
1221
1232
  static clear(): void;
1222
1233
  }
1223
1234
  export class Util {
@@ -1230,6 +1241,15 @@ export declare module DayPilot {
1230
1241
  static lighter(color: string, steps?: number): string;
1231
1242
  static contrasting(color: string, light?: string, dark?: string): string;
1232
1243
  }
1244
+ export class Http {
1245
+ static get<T = any>(url: string, params?: Http.RequestParams): Promise<Http.Result<T>>;
1246
+ static post<T = any, B = any>(url: string, data: B, params?: Http.RequestParams): Promise<Http.Result<T>>;
1247
+ static put<T = any, B = any>(url: string, data: B, params?: Http.RequestParams): Promise<Http.Result<T>>;
1248
+ static patch<T = any, B = any>(url: string, data: B, params?: Http.RequestParams): Promise<Http.Result<T>>;
1249
+ static delete<T = any>(url: string, params?: Http.RequestParams): Promise<Http.Result<T>>;
1250
+ }
1251
+ namespace Http {
1252
+ }
1233
1253
  export class Duration {
1234
1254
  ticks: number;
1235
1255
  constructor(ticks: number);
@@ -1259,11 +1279,14 @@ export declare module DayPilot {
1259
1279
  start(newStart: DayPilot.Date): void;
1260
1280
  end(): DayPilot.Date;
1261
1281
  end(newEnd: DayPilot.Date): void;
1282
+ partStart(): DayPilot.Date;
1283
+ partEnd(): DayPilot.Date;
1262
1284
  id(): EventId;
1263
1285
  text(): string;
1264
1286
  text(newText: string): void;
1265
1287
  resource(): ResourceId;
1266
1288
  resource(newResource: ResourceId): void;
1289
+ tag(name: string): any;
1267
1290
  duration(): DayPilot.Duration;
1268
1291
  }
1269
1292
  export class Selection {
@@ -1346,6 +1369,7 @@ export declare module DayPilot {
1346
1369
  autoFocus?: boolean;
1347
1370
  autoStretch?: boolean;
1348
1371
  autoStretchFirstLoadOnly?: boolean;
1372
+ cancelText?: string;
1349
1373
  container?: HTMLElement;
1350
1374
  disposeOnClose?: boolean;
1351
1375
  dragDrop?: boolean;
@@ -1355,7 +1379,9 @@ export declare module DayPilot {
1355
1379
  };
1356
1380
  height?: number;
1357
1381
  left?: number;
1382
+ locale?: string;
1358
1383
  loadingHtml?: string;
1384
+ okText?: string;
1359
1385
  maxHeight?: number;
1360
1386
  scrollWithPage?: boolean;
1361
1387
  theme?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daypilot/daypilot-lite-angular",
3
- "version": "5.3.1",
3
+ "version": "5.4.1",
4
4
  "description": "DayPilot Lite for Angular",
5
5
  "homepage": "https://javascript.daypilot.org/",
6
6
  "author": "Annpoint, s.r.o.",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "tslib": "^2.3.0",
35
- "@daypilot/daypilot-lite-javascript": "5.3.1"
35
+ "@daypilot/daypilot-lite-javascript": "5.4.1"
36
36
  },
37
37
  "module": "fesm2022/daypilot-daypilot-lite-angular.mjs",
38
38
  "typings": "index.d.ts",