@syncfusion/ej2-schedule 32.1.22 → 32.1.25-810416

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.
Files changed (144) hide show
  1. package/.eslintrc.json +243 -262
  2. package/.gitleaksignore +4 -4
  3. package/README.md +91 -91
  4. package/dist/ej2-schedule.umd.min.js +1 -10
  5. package/dist/ej2-schedule.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-schedule.es2015.js +98 -107
  7. package/dist/es6/ej2-schedule.es2015.js.map +1 -1
  8. package/dist/es6/ej2-schedule.es5.js +562 -574
  9. package/dist/es6/ej2-schedule.es5.js.map +1 -1
  10. package/ej2-schedule-component.sln +32 -0
  11. package/license +9 -9
  12. package/package.json +42 -42
  13. package/src/global.d.ts +1 -0
  14. package/src/recurrence-editor/recurrence-editor-model.d.ts +75 -75
  15. package/src/recurrence-editor/recurrence-editor.js +19 -19
  16. package/src/schedule/actions/action-base.js +1 -1
  17. package/src/schedule/actions/drag.js +13 -13
  18. package/src/schedule/actions/keyboard.js +12 -12
  19. package/src/schedule/actions/resize.js +27 -41
  20. package/src/schedule/base/interface.d.ts +2 -2
  21. package/src/schedule/base/schedule-model.d.ts +886 -886
  22. package/src/schedule/base/schedule.js +19 -19
  23. package/src/schedule/event-renderer/agenda-base.js +13 -13
  24. package/src/schedule/event-renderer/event-base.js +6 -4
  25. package/src/schedule/event-renderer/month.js +13 -13
  26. package/src/schedule/event-renderer/timeline-view.js +13 -13
  27. package/src/schedule/event-renderer/vertical-view.js +13 -13
  28. package/src/schedule/event-renderer/year.js +13 -13
  29. package/src/schedule/models/event-settings-model.d.ts +156 -156
  30. package/src/schedule/models/event-settings.js +19 -19
  31. package/src/schedule/models/field-options-model.d.ts +22 -22
  32. package/src/schedule/models/field-options.js +19 -19
  33. package/src/schedule/models/fields-model.d.ts +92 -92
  34. package/src/schedule/models/fields.js +19 -19
  35. package/src/schedule/models/group-model.d.ts +48 -48
  36. package/src/schedule/models/group.js +19 -19
  37. package/src/schedule/models/header-rows-model.d.ts +22 -22
  38. package/src/schedule/models/header-rows.js +19 -19
  39. package/src/schedule/models/quick-info-templates-model.d.ts +37 -37
  40. package/src/schedule/models/quick-info-templates.js +19 -19
  41. package/src/schedule/models/resources-model.d.ts +85 -85
  42. package/src/schedule/models/resources.js +19 -19
  43. package/src/schedule/models/time-scale-model.d.ts +40 -40
  44. package/src/schedule/models/time-scale.js +19 -19
  45. package/src/schedule/models/toolbar-model.d.ts +187 -187
  46. package/src/schedule/models/toolbar.js +19 -19
  47. package/src/schedule/models/views-model.d.ts +361 -361
  48. package/src/schedule/models/views.js +19 -19
  49. package/src/schedule/models/work-hours-model.d.ts +16 -16
  50. package/src/schedule/models/work-hours.js +19 -19
  51. package/src/schedule/renderer/agenda.js +13 -13
  52. package/src/schedule/renderer/day.js +13 -13
  53. package/src/schedule/renderer/header-renderer.js +11 -11
  54. package/src/schedule/renderer/month-agenda.js +13 -13
  55. package/src/schedule/renderer/month.js +13 -13
  56. package/src/schedule/renderer/timeline-month.js +13 -13
  57. package/src/schedule/renderer/timeline-view.js +13 -13
  58. package/src/schedule/renderer/timeline-year.js +13 -13
  59. package/src/schedule/renderer/vertical-view.js +13 -13
  60. package/src/schedule/renderer/week.js +13 -13
  61. package/src/schedule/renderer/work-week.js +13 -13
  62. package/src/schedule/renderer/year.js +13 -13
  63. package/styles/recurrence-editor/_all.scss +2 -2
  64. package/styles/recurrence-editor/_bds-definition.scss +41 -41
  65. package/styles/recurrence-editor/_bigger.scss +135 -135
  66. package/styles/recurrence-editor/_bootstrap-dark-definition.scss +41 -41
  67. package/styles/recurrence-editor/_bootstrap-definition.scss +41 -41
  68. package/styles/recurrence-editor/_bootstrap4-definition.scss +41 -41
  69. package/styles/recurrence-editor/_bootstrap5-dark-definition.scss +41 -41
  70. package/styles/recurrence-editor/_bootstrap5-definition.scss +41 -41
  71. package/styles/recurrence-editor/_bootstrap5.3-definition.scss +41 -41
  72. package/styles/recurrence-editor/_fabric-dark-definition.scss +41 -41
  73. package/styles/recurrence-editor/_fabric-definition.scss +41 -41
  74. package/styles/recurrence-editor/_fluent-dark-definition.scss +41 -41
  75. package/styles/recurrence-editor/_fluent-definition.scss +41 -41
  76. package/styles/recurrence-editor/_fluent2-definition.scss +41 -41
  77. package/styles/recurrence-editor/_fusionnew-definition.scss +41 -41
  78. package/styles/recurrence-editor/_highcontrast-definition.scss +41 -41
  79. package/styles/recurrence-editor/_highcontrast-light-definition.scss +41 -41
  80. package/styles/recurrence-editor/_layout.scss +426 -426
  81. package/styles/recurrence-editor/_material-dark-definition.scss +41 -41
  82. package/styles/recurrence-editor/_material-definition.scss +41 -41
  83. package/styles/recurrence-editor/_material3-dark-definition.scss +41 -41
  84. package/styles/recurrence-editor/_material3-definition.scss +41 -41
  85. package/styles/recurrence-editor/_tailwind-dark-definition.scss +41 -41
  86. package/styles/recurrence-editor/_tailwind-definition.scss +41 -41
  87. package/styles/recurrence-editor/_tailwind3-definition.scss +41 -41
  88. package/styles/recurrence-editor/_theme.scss +1 -1
  89. package/styles/schedule/_all.scss +2 -2
  90. package/styles/schedule/_bds-definition.scss +381 -381
  91. package/styles/schedule/_bigger.scss +803 -803
  92. package/styles/schedule/_bootstrap-dark-definition.scss +381 -381
  93. package/styles/schedule/_bootstrap-definition.scss +381 -381
  94. package/styles/schedule/_bootstrap4-definition.scss +384 -384
  95. package/styles/schedule/_bootstrap5-dark-definition.scss +385 -385
  96. package/styles/schedule/_bootstrap5-definition.scss +385 -385
  97. package/styles/schedule/_bootstrap5.3-definition.scss +385 -385
  98. package/styles/schedule/_fabric-dark-definition.scss +380 -380
  99. package/styles/schedule/_fabric-definition.scss +381 -381
  100. package/styles/schedule/_fluent-dark-definition.scss +385 -385
  101. package/styles/schedule/_fluent-definition.scss +385 -385
  102. package/styles/schedule/_fluent2-definition.scss +382 -382
  103. package/styles/schedule/_fusionnew-definition.scss +380 -380
  104. package/styles/schedule/_highcontrast-definition.scss +382 -382
  105. package/styles/schedule/_highcontrast-light-definition.scss +382 -382
  106. package/styles/schedule/_layout.scss +3875 -3875
  107. package/styles/schedule/_material-dark-definition.scss +379 -379
  108. package/styles/schedule/_material-definition.scss +379 -379
  109. package/styles/schedule/_material3-dark-definition.scss +384 -384
  110. package/styles/schedule/_material3-definition.scss +384 -384
  111. package/styles/schedule/_tailwind-dark-definition.scss +380 -380
  112. package/styles/schedule/_tailwind-definition.scss +380 -380
  113. package/styles/schedule/_tailwind3-definition.scss +385 -385
  114. package/styles/schedule/_theme.scss +587 -587
  115. package/styles/schedule/icons/_bds.scss +221 -221
  116. package/styles/schedule/icons/_bootstrap-dark.scss +224 -224
  117. package/styles/schedule/icons/_bootstrap.scss +224 -224
  118. package/styles/schedule/icons/_bootstrap4.scss +218 -218
  119. package/styles/schedule/icons/_bootstrap5.3.scss +221 -221
  120. package/styles/schedule/icons/_bootstrap5.scss +221 -221
  121. package/styles/schedule/icons/_fabric-dark.scss +224 -224
  122. package/styles/schedule/icons/_fabric.scss +224 -224
  123. package/styles/schedule/icons/_fluent.scss +221 -221
  124. package/styles/schedule/icons/_fluent2.scss +221 -221
  125. package/styles/schedule/icons/_fusionnew.scss +221 -221
  126. package/styles/schedule/icons/_highcontrast-light.scss +224 -224
  127. package/styles/schedule/icons/_highcontrast.scss +224 -224
  128. package/styles/schedule/icons/_material-dark.scss +224 -224
  129. package/styles/schedule/icons/_material.scss +224 -224
  130. package/styles/schedule/icons/_material3.scss +221 -221
  131. package/styles/schedule/icons/_tailwind.scss +221 -221
  132. package/styles/schedule/icons/_tailwind3.scss +221 -221
  133. package/aceconfig.js +0 -17
  134. package/dist/ej2-schedule.min.js +0 -10
  135. package/dist/global/ej2-schedule.min.js +0 -11
  136. package/dist/global/ej2-schedule.min.js.map +0 -1
  137. package/dist/global/index.d.ts +0 -14
  138. package/helpers/e2e/index.d.ts +0 -5
  139. package/helpers/e2e/index.js +0 -9
  140. package/helpers/e2e/recurrence-editor.d.ts +0 -30
  141. package/helpers/e2e/recurrence-editor.js +0 -42
  142. package/helpers/e2e/schedule.d.ts +0 -50
  143. package/helpers/e2e/schedule.js +0 -45
  144. package/tslint.json +0 -111
@@ -1,22 +1,22 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
20
  /* eslint-disable @typescript-eslint/no-explicit-any */
21
21
  import { Component, Property, Event, Animation, Collection, append } from '@syncfusion/ej2-base';
22
22
  import { EventHandler, Browser, Internationalization, getDefaultDateObject, cldrData, L10n } from '@syncfusion/ej2-base';
@@ -1,16 +1,16 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
14
  /* eslint-disable @typescript-eslint/no-explicit-any */
15
15
  import { isNullOrUndefined, addClass, createElement, append, EventHandler, extend, remove, initializeCSPTemplate } from '@syncfusion/ej2-base';
16
16
  import { ListBase } from '@syncfusion/ej2-lists';
@@ -455,6 +455,8 @@ var EventBase = /** @class */ (function () {
455
455
  app.data = { index: index, count: eventLength };
456
456
  app.Guid = this.generateGuid();
457
457
  app.isSpanned = true;
458
+ app.data[eventFields.startTime] = event[eventFields.startTime];
459
+ app.data[eventFields.endTime] = event[eventFields.endTime];
458
460
  data.push(app);
459
461
  start = end;
460
462
  if ((util.resetTime(new Date(start.getTime())).getTime() === util.resetTime(new Date(eventEndTime.getTime())).getTime())
@@ -1003,7 +1005,6 @@ var EventBase = /** @class */ (function () {
1003
1005
  return eventId;
1004
1006
  };
1005
1007
  EventBase.prototype.activeEventData = function (eventData, isMultiple) {
1006
- var _this = this;
1007
1008
  var target = closest(eventData.target, '.' + cls.APPOINTMENT_CLASS);
1008
1009
  var guid = target.getAttribute('data-guid');
1009
1010
  if (isMultiple) {
@@ -1012,9 +1013,10 @@ var EventBase = /** @class */ (function () {
1012
1013
  }
1013
1014
  var eventObject = this.getEventByGuid(guid);
1014
1015
  if (eventObject && eventObject.isSpanned) {
1015
- eventObject = this.parent.eventsData.filter(function (obj) {
1016
- return obj[_this.parent.eventFields.id] === eventObject[_this.parent.eventFields.id];
1017
- })[0];
1016
+ var clonedEventObject = extend({}, eventObject, null, true);
1017
+ clonedEventObject[this.parent.eventFields.startTime] = eventObject.data[this.parent.eventFields.startTime];
1018
+ clonedEventObject[this.parent.eventFields.endTime] = eventObject.data[this.parent.eventFields.endTime];
1019
+ eventObject = clonedEventObject;
1018
1020
  }
1019
1021
  this.parent.activeEventData = { event: eventObject, element: target };
1020
1022
  };
@@ -1,16 +1,16 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
14
  /* eslint-disable @typescript-eslint/no-explicit-any */
15
15
  import { append, prepend, createElement, extend, EventHandler, closest, addClass } from '@syncfusion/ej2-base';
16
16
  import { isNullOrUndefined, setStyleAttribute, remove } from '@syncfusion/ej2-base';
@@ -1,16 +1,16 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
14
  /* eslint-disable max-len */
15
15
  /* eslint-disable @typescript-eslint/no-explicit-any */
16
16
  import { isNullOrUndefined, setStyleAttribute, extend, EventHandler, createElement } from '@syncfusion/ej2-base';
@@ -1,16 +1,16 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
14
  /* eslint-disable @typescript-eslint/no-explicit-any */
15
15
  import { append, createElement, extend, EventHandler, Animation, formatUnit, closest } from '@syncfusion/ej2-base';
16
16
  import { isNullOrUndefined, setStyleAttribute, remove, removeClass, addClass } from '@syncfusion/ej2-base';
@@ -1,16 +1,16 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
14
  /* eslint-disable @typescript-eslint/no-explicit-any */
15
15
  import { addClass, append, createElement, extend, remove, isNullOrUndefined } from '@syncfusion/ej2-base';
16
16
  import { setStyleAttribute, EventHandler } from '@syncfusion/ej2-base';
@@ -1,4 +1,4 @@
1
- import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';import { Query, DataManager } from '@syncfusion/ej2-data';import { SortComparerFunction } from '../base/interface';import { SpannedEventPlacement } from '../base/type';import { Field } from './fields';import { FieldModel } from './fields-model';
1
+ import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
2
2
 
3
3
  /**
4
4
  * Interface for a class EventSettings
@@ -6,160 +6,160 @@ import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';import {
6
6
  export interface EventSettingsModel {
7
7
 
8
8
  /**
9
- * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying
10
- * it onto the event background. All the event fields mapped to Schedule from dataSource can be accessed within this template code.
11
- * {% codeBlock src="schedule/event-template-api/index.ts" %}{% endcodeBlock %}
12
- *
13
- * @default null
14
- * @angularType string | object
15
- * @reactType string | function | JSX.Element
16
- * @vueType string | function
17
- * @aspType string
18
- */
19
- template?: string | Function;
20
-
21
- /**
22
- * With this property, the event data will be bound to Schedule.
23
- * The event data can be passed either as an array of JavaScript objects,
24
- * or else can create an instance of [`DataManager`](http://ej2.syncfusion.com/documentation/data/api-dataManager.html)
25
- * in case of processing remote data and can be assigned to the `dataSource` property.
26
- * With the remote data assigned to dataSource, check the available
27
- * [adaptors](http://ej2.syncfusion.com/documentation/data/adaptors.html) to customize the data processing.
28
- *
29
- * @default []
30
- */
31
- dataSource?: Record<string, any>[] | DataManager;
32
-
33
- /**
34
- * Defines the external [`query`](http://ej2.syncfusion.com/documentation/data/api-query.html)
35
- * that will be executed along with the data processing.
36
- *
37
- * @default null
38
- */
39
- query?: Query;
40
-
41
- /**
42
- * Defines the collection of default event fields to be bind to the Schedule.
43
- *
44
- * @default null
45
- */
46
- fields?: FieldModel;
47
-
48
- /**
49
- * When set to `true` will display the normal tooltip over the events with its subject, location, start and end time.
50
- *
51
- * @default false
52
- */
53
- enableTooltip?: boolean;
54
-
55
- /**
56
- * Defines the option to render the spanned events (more than 24 hours) in either `AllDayRow` or `TimeSlot`. By default it renders in `AllDayRow`.
57
- * This property is applicable for `Day`, `Week` and `WorkWeek` views only. The possible values for this property as follows
58
- * * `AllDayRow`: Denotes the rendering of spanned events in an all-day row.
59
- * * `TimeSlot`: Denotes the rendering of spanned events in an time slot row.
60
- * {% codeBlock src='schedule/spannedEventPlacement/index.md' %}{% endcodeBlock %}
61
- *
62
- * @default 'AllDayRow'
63
- */
64
- spannedEventPlacement?: SpannedEventPlacement;
65
-
66
- /**
67
- * Sets a minimum duration for an event where the events are rendered for this minimum duration when the duration of the event is lesser than this value.
68
- * It accepts duration value in minutes. This property is only applicable when the event duration is lesser than this property duration.
69
- *
70
- * @default 1
71
- */
72
- minimumEventDuration?: number;
73
-
74
- /**
75
- * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto tooltip.
76
- * All the event fields mapped with Schedule dataSource can be accessed within this template code.
77
- * {% codeBlock src="schedule/tooltip-template-api/index.ts" %}{% endcodeBlock %}
78
- *
79
- * @default null
80
- * @angularType string | object
81
- * @reactType string | function | JSX.Element
82
- * @vueType string | function
83
- * @aspType string
84
- */
85
- tooltipTemplate?: string | Function;
86
-
87
- /**
88
- * Defines the resource name, to decides the color of which particular resource level is to be applied on appointments, when
89
- * grouping is enabled on scheduler.
90
- * {% codeBlock src="schedule/resource-color-field-api/index.ts" %}{% endcodeBlock %}
91
- *
92
- * @default null
93
- */
94
- resourceColorField?: string;
95
-
96
- /**
97
- * When set to `true` will edit the future events only instead of editing entire series.
98
- *
99
- * @default false
100
- */
101
- editFollowingEvents?: boolean;
102
-
103
- /**
104
- * When set to `false` the add action will be restricted.
105
- *
106
- * @default true
107
- */
108
- allowAdding?: boolean;
109
-
110
- /**
111
- * When set to `false` the edit action will be restricted.
112
- *
113
- * @default true
114
- */
115
- allowEditing?: boolean;
116
-
117
- /**
118
- * When set to `false` the delete action will be restricted.
119
- *
120
- * @default true
121
- */
122
- allowDeleting?: boolean;
123
-
124
- /**
125
- * It enables the event to occupy the full height in timeline views and
126
- * full width in vertical views, excluding the header of the cell.
127
- *
128
- * @default false
129
- */
130
- enableMaxHeight?: boolean;
131
-
132
- /**
133
- * This property enables the event to occupy the full height that remaining from the header and more indicator.
134
- * More than one appointment are available on the cell the more indicator is created.
135
- *
136
- * @default false
137
- */
138
- enableIndicator?: boolean;
139
-
140
- /**
141
- * This property ignores or include the Events element bottom white space.
142
- *
143
- * @default false
144
- */
145
- ignoreWhitespace?: boolean;
146
-
147
- /**
148
- * Defines the custom sort comparer function.
149
- * The sort comparer function has the same functionality like
150
- * [`Array.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) sort comparer.
151
- *
152
- * @default null
153
- */
154
- sortComparer?: SortComparerFunction;
155
-
156
- /**
157
- * Gets or sets a value that determines whether the start date and end date filter conditions should be included in the query itself when requesting data from the server, or passed as query parameters in the API call.
158
- * When set to <c>true</c> the filter conditions will be part of the query itself, potentially reducing the size of the request and minimizing the time needed to parse the response.
159
- * However, it can also lead to longer query strings, which could result in issues with maximum URL length or server limitations on query string length.
160
- *
161
- * @default false
162
- */
163
- includeFiltersInQuery?: boolean;
9
+ * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying
10
+ * it onto the event background. All the event fields mapped to Schedule from dataSource can be accessed within this template code.
11
+ * {% codeBlock src="schedule/event-template-api/index.ts" %}{% endcodeBlock %}
12
+ *
13
+ * @default null
14
+ * @angularType string | object
15
+ * @reactType string | function | JSX.Element
16
+ * @vueType string | function
17
+ * @aspType string
18
+ */
19
+ template?: string | Function;
20
+
21
+ /**
22
+ * With this property, the event data will be bound to Schedule.
23
+ * The event data can be passed either as an array of JavaScript objects,
24
+ * or else can create an instance of [`DataManager`](http://ej2.syncfusion.com/documentation/data/api-dataManager.html)
25
+ * in case of processing remote data and can be assigned to the `dataSource` property.
26
+ * With the remote data assigned to dataSource, check the available
27
+ * [adaptors](http://ej2.syncfusion.com/documentation/data/adaptors.html) to customize the data processing.
28
+ *
29
+ * @default []
30
+ */
31
+ dataSource?: Record<string, any>[] | DataManager;
32
+
33
+ /**
34
+ * Defines the external [`query`](http://ej2.syncfusion.com/documentation/data/api-query.html)
35
+ * that will be executed along with the data processing.
36
+ *
37
+ * @default null
38
+ */
39
+ query?: Query;
40
+
41
+ /**
42
+ * Defines the collection of default event fields to be bind to the Schedule.
43
+ *
44
+ * @default null
45
+ */
46
+ fields?: FieldModel;
47
+
48
+ /**
49
+ * When set to `true` will display the normal tooltip over the events with its subject, location, start and end time.
50
+ *
51
+ * @default false
52
+ */
53
+ enableTooltip?: boolean;
54
+
55
+ /**
56
+ * Defines the option to render the spanned events (more than 24 hours) in either `AllDayRow` or `TimeSlot`. By default it renders in `AllDayRow`.
57
+ * This property is applicable for `Day`, `Week` and `WorkWeek` views only. The possible values for this property as follows
58
+ * * `AllDayRow`: Denotes the rendering of spanned events in an all-day row.
59
+ * * `TimeSlot`: Denotes the rendering of spanned events in an time slot row.
60
+ * {% codeBlock src='schedule/spannedEventPlacement/index.md' %}{% endcodeBlock %}
61
+ *
62
+ * @default 'AllDayRow'
63
+ */
64
+ spannedEventPlacement?: SpannedEventPlacement;
65
+
66
+ /**
67
+ * Sets a minimum duration for an event where the events are rendered for this minimum duration when the duration of the event is lesser than this value.
68
+ * It accepts duration value in minutes. This property is only applicable when the event duration is lesser than this property duration.
69
+ *
70
+ * @default 1
71
+ */
72
+ minimumEventDuration?: number;
73
+
74
+ /**
75
+ * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto tooltip.
76
+ * All the event fields mapped with Schedule dataSource can be accessed within this template code.
77
+ * {% codeBlock src="schedule/tooltip-template-api/index.ts" %}{% endcodeBlock %}
78
+ *
79
+ * @default null
80
+ * @angularType string | object
81
+ * @reactType string | function | JSX.Element
82
+ * @vueType string | function
83
+ * @aspType string
84
+ */
85
+ tooltipTemplate?: string | Function;
86
+
87
+ /**
88
+ * Defines the resource name, to decides the color of which particular resource level is to be applied on appointments, when
89
+ * grouping is enabled on scheduler.
90
+ * {% codeBlock src="schedule/resource-color-field-api/index.ts" %}{% endcodeBlock %}
91
+ *
92
+ * @default null
93
+ */
94
+ resourceColorField?: string;
95
+
96
+ /**
97
+ * When set to `true` will edit the future events only instead of editing entire series.
98
+ *
99
+ * @default false
100
+ */
101
+ editFollowingEvents?: boolean;
102
+
103
+ /**
104
+ * When set to `false` the add action will be restricted.
105
+ *
106
+ * @default true
107
+ */
108
+ allowAdding?: boolean;
109
+
110
+ /**
111
+ * When set to `false` the edit action will be restricted.
112
+ *
113
+ * @default true
114
+ */
115
+ allowEditing?: boolean;
116
+
117
+ /**
118
+ * When set to `false` the delete action will be restricted.
119
+ *
120
+ * @default true
121
+ */
122
+ allowDeleting?: boolean;
123
+
124
+ /**
125
+ * It enables the event to occupy the full height in timeline views and
126
+ * full width in vertical views, excluding the header of the cell.
127
+ *
128
+ * @default false
129
+ */
130
+ enableMaxHeight?: boolean;
131
+
132
+ /**
133
+ * This property enables the event to occupy the full height that remaining from the header and more indicator.
134
+ * More than one appointment are available on the cell the more indicator is created.
135
+ *
136
+ * @default false
137
+ */
138
+ enableIndicator?: boolean;
139
+
140
+ /**
141
+ * This property ignores or include the Events element bottom white space.
142
+ *
143
+ * @default false
144
+ */
145
+ ignoreWhitespace?: boolean;
146
+
147
+ /**
148
+ * Defines the custom sort comparer function.
149
+ * The sort comparer function has the same functionality like
150
+ * [`Array.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) sort comparer.
151
+ *
152
+ * @default null
153
+ */
154
+ sortComparer?: SortComparerFunction;
155
+
156
+ /**
157
+ * Gets or sets a value that determines whether the start date and end date filter conditions should be included in the query itself when requesting data from the server, or passed as query parameters in the API call.
158
+ * When set to <c>true</c> the filter conditions will be part of the query itself, potentially reducing the size of the request and minimizing the time needed to parse the response.
159
+ * However, it can also lead to longer query strings, which could result in issues with maximum URL length or server limitations on query string length.
160
+ *
161
+ * @default false
162
+ */
163
+ includeFiltersInQuery?: boolean;
164
164
 
165
165
  }
@@ -1,22 +1,22 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
20
  /* eslint-disable @typescript-eslint/no-explicit-any */
21
21
  import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
22
22
  import { Field } from './fields';