dhtmlx-scheduler 6.0.4 → 6.0.5

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # dhtmlxScheduler #
2
2
 
3
3
  [![dhtmlx.com](https://img.shields.io/badge/made%20by-DHTMLX-blue)](https://dhtmlx.com/)
4
- [![npm: v.6.0.4](https://img.shields.io/badge/npm-v.6.0.4-blue.svg)](https://www.npmjs.com/package/dhtmlx-scheduler)
4
+ [![npm: v.6.0.5](https://img.shields.io/badge/npm-v.6.0.5-blue.svg)](https://www.npmjs.com/package/dhtmlx-scheduler)
5
5
  [![License: GPL v2](https://img.shields.io/badge/license-GPL%20v2-blue.svg)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
6
6
 
7
7
  [DHTMLX Scheduler](https://dhtmlx.com/docs/products/dhtmlxScheduler) is a JavaScript library that allows you to add a Google-like scheduler to your web app or website.
@@ -87,7 +87,7 @@ scheduler.parse([
87
87
 
88
88
  ## License ##
89
89
 
90
- dhtmlxScheduler v.6.0.4 Standard
90
+ dhtmlxScheduler v.6.0.5 Standard
91
91
 
92
92
  To use dhtmlxScheduler in non-GPL projects (and get Pro version of the product), please obtain Individual, Commercial, Enterprise or Ultimate license on our site https://dhtmlx.com/docs/products/dhtmlxScheduler/#licensing or contact us at info@dhtmlx.com
93
93
 
package/bower.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scheduler",
3
- "version": "6.0.4",
3
+ "version": "6.0.5",
4
4
  "homepage": "https://dhtmlx.com/docs/products/dhtmlxScheduler/",
5
5
  "description": "JavaScript event calendar. Allows to manage events and appointments in different views",
6
6
  "main": [
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @license
3
3
  *
4
- * dhtmlxScheduler v.6.0.4 Standard
4
+ * dhtmlxScheduler v.6.0.5 Standard
5
5
  *
6
6
  * To use dhtmlxScheduler in non-GPL projects (and get Pro version of the product), please obtain Commercial/Enterprise or Ultimate license on our site https://dhtmlx.com/docs/products/dhtmlxScheduler/#licensing or contact us at sales@dhtmlx.com
7
7
  *
@@ -5,7 +5,90 @@ type SchedulerCallback = (...args: any[]) => any;
5
5
  type SchedulerFilterCallback = { (id: string | number, event: any): boolean }
6
6
 
7
7
 
8
- type SchedulerEventName = "onAfterEventDisplay"|"onAfterFolderToggle"|"onAfterLightbox"|"onAfterQuickInfo"|"onAfterSchedulerResize"|"onBeforeCollapse"|"onBeforeDrag"|"onBeforeEventChanged"|"onBeforeEventCreated"|"onBeforeEventDelete"|"onBeforeEventDisplay"|"onBeforeEventDragIn"|"onBeforeEventDragOut"|"onBeforeEventPasted"|"onBeforeExpand"|"onBeforeExternalDragIn"|"onBeforeFolderToggle"|"onBeforeLightbox"|"onBeforeParse"|"onBeforeTodayDisplayed"|"onBeforeTooltip"|"onBeforeViewChange"|"onCellClick"|"onCellDblClick"|"onClearAll"|"onClick"|"onCollapse"|"onConfirmedBeforeEventDelete"|"onContextMenu"|"onDataRender"|"onDblClick"|"onDestroy"|"onDragEnd"|"onEmptyClick"|"onError"|"onEventAdded"|"onEventCancel"|"onEventChanged"|"onEventCollision"|"onEventCopied"|"onEventCreated"|"onEventCut"|"onEventDeleted"|"onEventDrag"|"onEventDragIn"|"onEventDragOut"|"onEventDropOut"|"onEventIdChange"|"onEventLoading"|"onEventPasted"|"onEventSave"|"onEventSelected"|"onEventUnselected"|"onExpand"|"onExternalDragIn"|"onLightbox"|"onLightboxButton"|"onLimitViolation"|"onLoadEnd"|"onLoadError"|"onLoadStart"|"onLocationError"|"onMouseDown"|"onMouseMove"|"onOptionsLoad"|"onOptionsLoadFinal"|"onOptionsLoadStart"|"onParse"|"onQuickInfo"|"onSaveError"|"onScaleAdd"|"onScaleDblClick"|"onSchedulerReady"|"onSchedulerResize"|"onTemplatesReady"|"onTimelineCreated"|"onViewChange"|"onViewMoreClick"|"onXLE"|"onXLS"|"onXScaleClick"|"onXScaleDblClick"|"onYScaleClick"|"onYScaleDblClick";
8
+ type SchedulerEventName = "onAfterEventDisplay" |
9
+ "onAfterFolderToggle" |
10
+ "onAfterLightbox" |
11
+ "onAfterQuickInfo" |
12
+ "onAfterSchedulerResize" |
13
+ "onBeforeCollapse" |
14
+ "onBeforeDrag" |
15
+ "onBeforeEventChanged" |
16
+ "onBeforeEventCreated" |
17
+ "onBeforeEventDelete" |
18
+ "onBeforeEventDisplay" |
19
+ "onBeforeEventDragIn" |
20
+ "onBeforeEventDragOut" |
21
+ "onBeforeEventPasted" |
22
+ "onBeforeExpand" |
23
+ "onBeforeExternalDragIn" |
24
+ "onBeforeFolderToggle" |
25
+ "onBeforeLightbox" |
26
+ "onBeforeParse" |
27
+ "onBeforeTodayDisplayed" |
28
+ "onBeforeTooltip" |
29
+ "onBeforeViewChange" |
30
+ "onCellClick" |
31
+ "onCellDblClick" |
32
+ "onClearAll" |
33
+ "onClick" |
34
+ "onCollapse" |
35
+ "onConfirmedBeforeEventDelete" |
36
+ "onContextMenu" |
37
+ "onDataRender" |
38
+ "onDblClick" |
39
+ "onDestroy" |
40
+ "onDragEnd" |
41
+ "onEmptyClick" |
42
+ "onError" |
43
+ "onEventAdded" |
44
+ "onEventCancel" |
45
+ "onEventChanged" |
46
+ "onEventCollision" |
47
+ "onEventCopied" |
48
+ "onEventCreated" |
49
+ "onEventCut" |
50
+ "onEventDeleted" |
51
+ "onEventDrag" |
52
+ "onEventDragIn" |
53
+ "onEventDragOut" |
54
+ "onEventDropOut" |
55
+ "onEventIdChange" |
56
+ "onEventLoading" |
57
+ "onEventPasted" |
58
+ "onEventSave" |
59
+ "onEventSelected" |
60
+ "onEventUnselected" |
61
+ "onExpand" |
62
+ "onExternalDragIn" |
63
+ "onLightbox" |
64
+ "onLightboxButton" |
65
+ "onLimitViolation" |
66
+ "onLoadEnd" |
67
+ "onLoadError" |
68
+ "onLoadStart" |
69
+ "onLocationError" |
70
+ "onMouseDown" |
71
+ "onMouseMove" |
72
+ "onOptionsLoad" |
73
+ "onOptionsLoadFinal" |
74
+ "onOptionsLoadStart" |
75
+ "onParse" |
76
+ "onQuickInfo" |
77
+ "onSaveError" |
78
+ "onScaleAdd" |
79
+ "onScaleDblClick" |
80
+ "onSchedulerReady" |
81
+ "onSchedulerResize" |
82
+ "onTemplatesReady" |
83
+ "onTimelineCreated" |
84
+ "onViewChange" |
85
+ "onViewMoreClick" |
86
+ "onXLE" |
87
+ "onXLS" |
88
+ "onXScaleClick" |
89
+ "onXScaleDblClick" |
90
+ "onYScaleClick" |
91
+ "onYScaleDblClick";
9
92
 
10
93
 
11
94
  export interface SchedulerTemplates {
@@ -358,6 +441,13 @@ export interface SchedulerTemplates {
358
441
  */
359
442
  grid_date(start: Date, end: Date): string;
360
443
 
444
+ /**
445
+ * specifies the text in the columns
446
+ * @param field_name the column's id
447
+ * @param event the event object
448
+ */
449
+ grid_field(field_name: string, event: any): string;
450
+
361
451
  /**
362
452
  * specifies the format of dates in columns with id='date'
363
453
  * @param start the date when an event is scheduled to begin
@@ -373,11 +463,12 @@ export interface SchedulerTemplates {
373
463
  grid_single_date(date: Date): string;
374
464
 
375
465
  /**
376
- * specifies the text in the columns
377
- * @param field_name the column's id
378
- * @param event the event object
466
+ * specifies the CSS class that will be applied to a cell of the view
467
+ * @param evs an array of objects of events contained in a cell (defined only in the 'cell' mode)
468
+ * @param date the date of a column
469
+ * @param section the section object
379
470
  */
380
- grid_field(field_name: string, event: any): string;
471
+ timeline_cell_class(evs: any[], date: Date, section: any): string;
381
472
 
382
473
  /**
383
474
  * specifies the number of scheduled events in a cell of the view
@@ -388,32 +479,24 @@ export interface SchedulerTemplates {
388
479
  timeline_cell_value(evs: any[], date: Date, section: any): string;
389
480
 
390
481
  /**
391
- * specifies the CSS class that will be applied to a cell of the view
392
- * @param evs an array of objects of events contained in a cell (defined only in the 'cell' mode)
393
- * @param date the date of a column
394
- * @param section the section object
482
+ * specifies the date in the header of the view
483
+ * @param date1 the date when an event is scheduled to begin
484
+ * @param date2 the date when an event is scheduled to be completed
395
485
  */
396
- timeline_cell_class(evs: any[], date: Date, section: any): string;
486
+ timeline_date(date1: Date, date2: Date): string;
397
487
 
398
488
  /**
399
- * specifies the name of a CSS class that will be applied to items of the X-Axis
400
- * @param date the date which needs formatting
489
+ * specifies the CSS class that will be applied to a row of the Timeline view
490
+ * @param section the section object
491
+ * @param timeline the timeline object
401
492
  */
402
- timeline_scalex_class(date: Date): string;
493
+ timeline_row_class(section: any, timeline: any): string;
403
494
 
404
495
  /**
405
- * specifies the name of a CSS class that will be applied to items of the second X-Axis
496
+ * specifies items of the X-Axis
406
497
  * @param date the date which needs formatting
407
498
  */
408
- timeline_second_scalex_class(date: Date): string;
409
-
410
- /**
411
- * specifies the name of a CSS class that will be applied to items of the Y-Axis
412
- * @param key the section's id
413
- * @param label the section's label
414
- * @param section the section object that contains the 'key' and 'label' properties
415
- */
416
- timeline_scaley_class(key: string, label: string, section: any): string;
499
+ timeline_scale_date(date: Date): string;
417
500
 
418
501
  /**
419
502
  * specifies items of the Y-Axis
@@ -424,31 +507,38 @@ export interface SchedulerTemplates {
424
507
  timeline_scale_label(key: string, label: string, section: any): string;
425
508
 
426
509
  /**
427
- * specifies the tooltip over a day cell containing some scheduled event(s)
428
- * @param start the date when an event is scheduled to begin
429
- * @param end the date when an event is scheduled to be completed
430
- * @param event the event object
510
+ * specifies the name of a CSS class that will be applied to items of the X-Axis
511
+ * @param date the date which needs formatting
431
512
  */
432
- timeline_tooltip(start: Date, end: Date, event: any): string;
513
+ timeline_scalex_class(date: Date): string;
433
514
 
434
515
  /**
435
- * specifies the date in the header of the view
436
- * @param date1 the date when an event is scheduled to begin
437
- * @param date2 the date when an event is scheduled to be completed
516
+ * specifies the name of a CSS class that will be applied to items of the Y-Axis
517
+ * @param key the section's id
518
+ * @param label the section's label
519
+ * @param section the section object that contains the 'key' and 'label' properties
438
520
  */
439
- timeline_date(date1: Date, date2: Date): string;
521
+ timeline_scaley_class(key: string, label: string, section: any): string;
440
522
 
441
523
  /**
442
- * specifies items of the X-Axis
524
+ * specifies items of the second X-Axis
443
525
  * @param date the date which needs formatting
444
526
  */
445
- timeline_scale_date(date: Date): string;
527
+ timeline_second_scale_date(date: Date): string;
446
528
 
447
529
  /**
448
- * specifies items of the second X-Axis
530
+ * specifies the name of a CSS class that will be applied to items of the second X-Axis
449
531
  * @param date the date which needs formatting
450
532
  */
451
- timeline_second_scale_date(date: Date): string;
533
+ timeline_second_scalex_class(date: Date): string;
534
+
535
+ /**
536
+ * specifies the tooltip over a day cell containing some scheduled event(s)
537
+ * @param start the date when an event is scheduled to begin
538
+ * @param end the date when an event is scheduled to be completed
539
+ * @param event the event object
540
+ */
541
+ timeline_tooltip(start: Date, end: Date, event: any): string;
452
542
 
453
543
  /**
454
544
  * specifies the date in the header of the view
@@ -477,13 +567,6 @@ export interface SchedulerTemplates {
477
567
  */
478
568
  xml_format(date: Date): string;
479
569
 
480
- /**
481
- * specifies the CSS class that will be applied to a row of the Timeline view
482
- * @param section the section object
483
- * @param timeline the timeline object
484
- */
485
- timeline_row_class(section: any, timeline: any): string;
486
-
487
570
  [customTemplate: string]: any;
488
571
  }
489
572
 
@@ -995,7 +1078,7 @@ export interface SchedulerConfigOptions {
995
1078
  scroll_hour: number;
996
1079
 
997
1080
  /**
998
- * specifies the delimiter that will be used to separate several sections/units in the related data property of the event
1081
+ * specifies the delimeter that will be used to separate several sections/units in the related data property of the event
999
1082
  */
1000
1083
  section_delimiter: string;
1001
1084
 
@@ -1224,6 +1307,50 @@ export interface SchedulerLocale {
1224
1307
  labels: SchedulerLocaleLabels;
1225
1308
  }
1226
1309
 
1310
+ export interface SchedulerFormBlock {
1311
+
1312
+ /**
1313
+ * Renders the form block based on the provided configuration.
1314
+ * @function
1315
+ * @name SchedulerFormBlock#render
1316
+ * @param {any} config - The configuration object for the custom lightbox control.
1317
+ * @returns {string} Returns the HTML string representing the rendered the custom control.
1318
+ */
1319
+ render: (config: any) => string;
1320
+
1321
+ /**
1322
+ * Sets the value of the custom lightbox control.
1323
+ * @function
1324
+ * @name SchedulerFormBlock#set_value
1325
+ * @param {HTMLElement} node - HTML object related to HTML defined above.
1326
+ * @param {*} value - value defined by map_to property.
1327
+ * @param {Event} ev - The event object.
1328
+ * @param {any} config - Section configuration object.
1329
+ * @returns {void}
1330
+ */
1331
+ set_value: (node: HTMLElement, value: any, ev: Event, config: any) => void;
1332
+
1333
+ /**
1334
+ * Gets the value of the custom control.
1335
+ * @function
1336
+ * @name SchedulerFormBlock#get_value
1337
+ * @param {HTMLElement} node - HTML object related to HTML defined above.
1338
+ * @param {Event} ev - The event object.
1339
+ * @param {any} config - Section configuration object.
1340
+ * @returns {*} Returns the value of the custom lightbox control.
1341
+ */
1342
+ get_value: (node: HTMLElement, ev: Event, config: any) => any;
1343
+
1344
+ /**
1345
+ * Focuses on the custom lightbox control.
1346
+ * @function
1347
+ * @name SchedulerFormBlock#focus
1348
+ * @param {HTMLElement} node - HTML object related to HTML defined above.
1349
+ * @returns {void}
1350
+ */
1351
+ focus: (node: HTMLElement) => void;
1352
+ }
1353
+
1227
1354
  export interface SchedulerSizes {
1228
1355
 
1229
1356
  /**
@@ -1440,9 +1567,9 @@ export interface SchedulerStatic {
1440
1567
  * attaches the handler to an inner event of dhtmlxScheduler
1441
1568
  * @param name the event's name, case-insensitive
1442
1569
  * @param handler the handler function
1443
- * @param settings optional, an <a href="#propertiesofsettingsobject">object with settings</a> for the event handler
1570
+ * @param settings optional, optional, an <a href="#propertiesofsettingsobject">object with settings</a> for the event handler
1444
1571
  */
1445
- attachEvent(name: SchedulerEventName, handler: SchedulerCallback, settings: any): string;
1572
+ attachEvent(name: SchedulerEventName, handler: SchedulerCallback, settings?: any): string;
1446
1573
 
1447
1574
  /**
1448
1575
  * makes the scheduler reflect all data changes in the Backbone model and vice versa
@@ -1933,7 +2060,7 @@ export interface SchedulerStatic {
1933
2060
  /**
1934
2061
  * serializes all events loaded into the scheduler
1935
2062
  */
1936
- serialize(): any[];
2063
+ serialize(): void;
1937
2064
 
1938
2065
  /**
1939
2066
  * defines a named collection that can be loaded into Units, Timeline views, or the Lightbox
@@ -2120,7 +2247,16 @@ export interface SchedulerStatic {
2120
2247
  * @param view optional, (optional) the view name
2121
2248
  */
2122
2249
  updateView(date?: Date, view?: string): void;
2123
- }
2250
+
2251
+ // /**
2252
+ // * A key-value mapping of string keys to Scheduler form blocks.
2253
+ // * The keys represent the names of the custom lightbox controls.
2254
+ // * The values are objects that implement the SchedulerFormBlock interface.
2255
+ // */
2256
+ form_blocks: { [key: string]: SchedulerFormBlock };
2257
+
2258
+ [customMethod: string]: any;
2259
+ }
2124
2260
 
2125
2261
  export declare var scheduler: SchedulerStatic;
2126
2262