@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
@@ -0,0 +1,32 @@
1
+ Microsoft Visual Studio Solution File, Format Version 12.00
2
+ # Visual Studio Version 17
3
+ VisualStudioVersion = 17.5.2.0
4
+ MinimumVisualStudioVersion = 10.0.40219.1
5
+ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "themestudio", "themestudio", "{6709CC79-8037-3E1D-B0A7-EE317542FC05}"
6
+ EndProject
7
+ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{9F8ADDD4-251D-DE88-18A4-614C448A182A}"
8
+ EndProject
9
+ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ThemeStudio", "themestudio\src\ThemeStudio.csproj", "{1AF4F52A-8C15-8217-59AC-7436EB3F95CE}"
10
+ EndProject
11
+ Global
12
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
13
+ Debug|Any CPU = Debug|Any CPU
14
+ Release|Any CPU = Release|Any CPU
15
+ EndGlobalSection
16
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
17
+ {1AF4F52A-8C15-8217-59AC-7436EB3F95CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
18
+ {1AF4F52A-8C15-8217-59AC-7436EB3F95CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
19
+ {1AF4F52A-8C15-8217-59AC-7436EB3F95CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
20
+ {1AF4F52A-8C15-8217-59AC-7436EB3F95CE}.Release|Any CPU.Build.0 = Release|Any CPU
21
+ EndGlobalSection
22
+ GlobalSection(SolutionProperties) = preSolution
23
+ HideSolutionNode = FALSE
24
+ EndGlobalSection
25
+ GlobalSection(NestedProjects) = preSolution
26
+ {9F8ADDD4-251D-DE88-18A4-614C448A182A} = {6709CC79-8037-3E1D-B0A7-EE317542FC05}
27
+ {1AF4F52A-8C15-8217-59AC-7436EB3F95CE} = {9F8ADDD4-251D-DE88-18A4-614C448A182A}
28
+ EndGlobalSection
29
+ GlobalSection(ExtensibilityGlobals) = postSolution
30
+ SolutionGuid = {6AAFFB32-05E9-4C69-86E5-044304C21762}
31
+ EndGlobalSection
32
+ EndGlobal
package/license CHANGED
@@ -1,10 +1,10 @@
1
- Essential JS 2 library is available under the Syncfusion Essential Studio program, and can be licensed either under the Syncfusion Community License Program or the Syncfusion commercial license.
2
-
3
- To be qualified for the Syncfusion Community License Program you must have a gross revenue of less than one (1) million U.S. dollars ($1,000,000.00 USD) per year and have less than five (5) developers in your organization, and agree to be bound by Syncfusion’s terms and conditions.
4
-
5
- Customers who do not qualify for the community license can contact sales@syncfusion.com for commercial licensing options.
6
-
7
- Under no circumstances can you use this product without (1) either a Community License or a commercial license and (2) without agreeing and abiding by Syncfusion’s license containing all terms and conditions.
8
-
9
- The Syncfusion license that contains the terms and conditions can be found at
1
+ Essential JS 2 library is available under the Syncfusion Essential Studio program, and can be licensed either under the Syncfusion Community License Program or the Syncfusion commercial license.
2
+
3
+ To be qualified for the Syncfusion Community License Program you must have a gross revenue of less than one (1) million U.S. dollars ($1,000,000.00 USD) per year and have less than five (5) developers in your organization, and agree to be bound by Syncfusion’s terms and conditions.
4
+
5
+ Customers who do not qualify for the community license can contact sales@syncfusion.com for commercial licensing options.
6
+
7
+ Under no circumstances can you use this product without (1) either a Community License or a commercial license and (2) without agreeing and abiding by Syncfusion’s license containing all terms and conditions.
8
+
9
+ The Syncfusion license that contains the terms and conditions can be found at
10
10
  https://www.syncfusion.com/content/downloads/syncfusion_license.pdf
package/package.json CHANGED
@@ -1,43 +1,43 @@
1
- {
2
- "name": "@syncfusion/ej2-schedule",
3
- "version": "32.1.22",
4
- "author": "Syncfusion Inc.",
5
- "license": "SEE LICENSE IN license",
6
- "main": "./dist/ej2-schedule.umd.min.js",
7
- "module": "./index.js",
8
- "es2015": "./dist/es6/ej2-schedule.es5.js",
9
- "dependencies": {
10
- "@syncfusion/ej2-base": "~32.1.19",
11
- "@syncfusion/ej2-buttons": "~32.1.21",
12
- "@syncfusion/ej2-calendars": "~32.1.22",
13
- "@syncfusion/ej2-data": "~32.1.19",
14
- "@syncfusion/ej2-dropdowns": "~32.1.22",
15
- "@syncfusion/ej2-excel-export": "~32.1.19",
16
- "@syncfusion/ej2-inputs": "~32.1.22",
17
- "@syncfusion/ej2-lists": "~32.1.19",
18
- "@syncfusion/ej2-navigations": "~32.1.19",
19
- "@syncfusion/ej2-popups": "~32.1.19"
20
- },
21
- "devDependencies": {},
22
- "description": "Flexible scheduling library with more built-in features and enhanced customization options similar to outlook and google calendar, allowing the users to plan and manage their appointments with efficient data-binding support.",
23
- "keywords": [
24
- "ej2",
25
- "syncfusion",
26
- "JavaScript",
27
- "TypeScript",
28
- "schedule",
29
- "scheduler",
30
- "events-calendar",
31
- "events-scheduler",
32
- "appointment-calendar",
33
- "appointments-planner",
34
- "resources-scheduler"
35
- ],
36
- "repository": {
37
- "type": "git",
38
- "url": "https://github.com/syncfusion/ej2-javascript-ui-controls.git"
39
- },
40
- "typings": "index.d.ts",
41
- "sideEffects": false,
42
- "homepage": "https://www.syncfusion.com/javascript-ui-controls"
1
+ {
2
+ "name": "@syncfusion/ej2-schedule",
3
+ "version": "32.1.25-810416",
4
+ "author": "Syncfusion Inc.",
5
+ "license": "SEE LICENSE IN license",
6
+ "main": "./dist/ej2-schedule.umd.min.js",
7
+ "module": "./index.js",
8
+ "es2015": "./dist/es6/ej2-schedule.es5.js",
9
+ "dependencies": {
10
+ "@syncfusion/ej2-base": "~32.1.24",
11
+ "@syncfusion/ej2-buttons": "~32.1.24",
12
+ "@syncfusion/ej2-calendars": "~32.1.25",
13
+ "@syncfusion/ej2-data": "~32.1.24",
14
+ "@syncfusion/ej2-dropdowns": "~32.1.25",
15
+ "@syncfusion/ej2-excel-export": "~32.1.24",
16
+ "@syncfusion/ej2-inputs": "~32.1.24",
17
+ "@syncfusion/ej2-lists": "~32.1.24",
18
+ "@syncfusion/ej2-navigations": "~32.1.24",
19
+ "@syncfusion/ej2-popups": "~32.1.25"
20
+ },
21
+ "devDependencies": {},
22
+ "description": "Flexible scheduling library with more built-in features and enhanced customization options similar to outlook and google calendar, allowing the users to plan and manage their appointments with efficient data-binding support.",
23
+ "keywords": [
24
+ "ej2",
25
+ "syncfusion",
26
+ "JavaScript",
27
+ "TypeScript",
28
+ "schedule",
29
+ "scheduler",
30
+ "events-calendar",
31
+ "events-scheduler",
32
+ "appointment-calendar",
33
+ "appointments-planner",
34
+ "resources-scheduler"
35
+ ],
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "https://github.com/syncfusion/ej2-javascript-ui-controls.git"
39
+ },
40
+ "typings": "index.d.ts",
41
+ "sideEffects": false,
42
+ "homepage": "https://www.syncfusion.com/javascript-ui-controls"
43
43
  }
@@ -0,0 +1 @@
1
+ export * from './index';
@@ -1,4 +1,4 @@
1
- import { Component, Property, NotifyPropertyChanges, INotifyPropertyChanged, Event, Browser, detach } from '@syncfusion/ej2-base';import { EmitType, getDefaultDateObject, getValue, cldrData, L10n, isNullOrUndefined, removeClass, addClass } from '@syncfusion/ej2-base';import { DropDownList, ChangeEventArgs } from '@syncfusion/ej2-dropdowns';import { NumericTextBox } from '@syncfusion/ej2-inputs';import { DatePicker, ChangedEventArgs } from '@syncfusion/ej2-calendars';import { Button, RadioButton } from '@syncfusion/ej2-buttons';import { EventHandler, MouseEventArgs, classList } from '@syncfusion/ej2-base';import { EJ2Instance } from '../schedule/base/interface';import { RecRule, extractObjectFromRule, generate, generateSummary, getRecurrenceStringFromDate, getCalendarUtil } from './date-generator';import { CalendarUtil, CalendarType } from '../common/calendar-util';import { capitalizeFirstWord } from '../schedule/base/util';
1
+ import { Component, Property, NotifyPropertyChanges, INotifyPropertyChanged, Event, Browser, detach } from '@syncfusion/ej2-base';
2
2
  import {RepeatType,EndType,RecurrenceEditorChangeEventArgs} from "./recurrence-editor";
3
3
  import {ComponentModel} from '@syncfusion/ej2-base';
4
4
 
@@ -8,105 +8,105 @@ import {ComponentModel} from '@syncfusion/ej2-base';
8
8
  export interface RecurrenceEditorModel extends ComponentModel{
9
9
 
10
10
  /**
11
- * Sets the recurrence pattern on the editor.
12
- *
13
- * @default ['none', 'daily', 'weekly', 'monthly', 'yearly']
14
- */
15
- frequencies?: RepeatType[];
11
+ * Sets the recurrence pattern on the editor.
12
+ *
13
+ * @default ['none', 'daily', 'weekly', 'monthly', 'yearly']
14
+ */
15
+ frequencies?: RepeatType[];
16
16
 
17
17
  /**
18
- * Sets the type of recurrence end for the recurrence pattern on the editor.
19
- *
20
- * @default ['never', 'until', 'count']
21
- */
22
- endTypes?: EndType[];
18
+ * Sets the type of recurrence end for the recurrence pattern on the editor.
19
+ *
20
+ * @default ['never', 'until', 'count']
21
+ */
22
+ endTypes?: EndType[];
23
23
 
24
24
  /**
25
- * Sets the first day of the week.
26
- *
27
- * @default 0
28
- */
29
- firstDayOfWeek?: number;
25
+ * Sets the first day of the week.
26
+ *
27
+ * @default 0
28
+ */
29
+ firstDayOfWeek?: number;
30
30
 
31
31
  /**
32
- * Sets the start date on recurrence editor.
33
- *
34
- * @default new Date()
35
- * @aspDefaultValue DateTime.Now
36
- */
37
- startDate?: Date;
32
+ * Sets the start date on recurrence editor.
33
+ *
34
+ * @default new Date()
35
+ * @aspDefaultValue DateTime.Now
36
+ */
37
+ startDate?: Date;
38
38
 
39
39
  /**
40
- * Sets the user specific date format on recurrence editor.
41
- *
42
- * @default null
43
- */
44
- dateFormat?: string;
40
+ * Sets the user specific date format on recurrence editor.
41
+ *
42
+ * @default null
43
+ */
44
+ dateFormat?: string;
45
45
 
46
46
  /**
47
- * Sets the specific calendar type to be applied on recurrence editor.
48
- *
49
- * @default 'Gregorian'
50
- */
51
- calendarMode?: CalendarType;
47
+ * Sets the specific calendar type to be applied on recurrence editor.
48
+ *
49
+ * @default 'Gregorian'
50
+ */
51
+ calendarMode?: CalendarType;
52
52
 
53
53
  /**
54
- * Allows styling with custom class names.
55
- *
56
- * @default null
57
- */
58
- cssClass?: string;
54
+ * Allows styling with custom class names.
55
+ *
56
+ * @default null
57
+ */
58
+ cssClass?: string;
59
59
 
60
60
  /**
61
- * Sets the recurrence rule as its output values.
62
- *
63
- * @default null
64
- */
65
- value?: string;
61
+ * Sets the recurrence rule as its output values.
62
+ *
63
+ * @default null
64
+ */
65
+ value?: string;
66
66
 
67
67
  /**
68
- * Sets the minimum date on recurrence editor.
69
- *
70
- * @default new Date(1900, 0, 1)
71
- * @aspDefaultValue new DateTime(1900, 1, 1)
72
- */
73
- minDate?: Date;
68
+ * Sets the minimum date on recurrence editor.
69
+ *
70
+ * @default new Date(1900, 0, 1)
71
+ * @aspDefaultValue new DateTime(1900, 1, 1)
72
+ */
73
+ minDate?: Date;
74
74
 
75
75
  /**
76
- * Sets the maximum date on recurrence editor.
77
- *
78
- * @default new Date(2099, 11, 31)
79
- * @aspDefaultValue new DateTime(2099, 12, 31)
80
- */
81
- maxDate?: Date;
76
+ * Sets the maximum date on recurrence editor.
77
+ *
78
+ * @default new Date(2099, 11, 31)
79
+ * @aspDefaultValue new DateTime(2099, 12, 31)
80
+ */
81
+ maxDate?: Date;
82
82
 
83
83
  /**
84
- * Sets the current repeat type to be set on the recurrence editor.
85
- *
86
- * @default 0
87
- * @aspType int
88
- */
89
- selectedType?: number;
84
+ * Sets the current repeat type to be set on the recurrence editor.
85
+ *
86
+ * @default 0
87
+ * @aspType int
88
+ */
89
+ selectedType?: number;
90
90
 
91
91
  /**
92
- * Triggers for value changes on every sub-controls rendered within the recurrence editor.
93
- *
94
- * @event 'change'
95
- */
96
- change?: EmitType<RecurrenceEditorChangeEventArgs>;
92
+ * Triggers for value changes on every sub-controls rendered within the recurrence editor.
93
+ *
94
+ * @event 'change'
95
+ */
96
+ change?: EmitType<RecurrenceEditorChangeEventArgs>;
97
97
 
98
98
  /**
99
- * Triggers when the component is created.
100
- *
101
- * @event 'created'
102
- */
103
- created?: EmitType<Object>;
99
+ * Triggers when the component is created.
100
+ *
101
+ * @event 'created'
102
+ */
103
+ created?: EmitType<Object>;
104
104
 
105
105
  /**
106
- * Triggers when the component is destroyed.
107
- *
108
- * @event 'destroyed'
109
- */
110
- destroyed?: EmitType<Object>;
106
+ * Triggers when the component is destroyed.
107
+ *
108
+ * @event 'destroyed'
109
+ */
110
+ destroyed?: EmitType<Object>;
111
111
 
112
112
  }
@@ -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
  import { Component, Property, NotifyPropertyChanges, Event, Browser, detach } from '@syncfusion/ej2-base';
21
21
  import { getDefaultDateObject, getValue, cldrData, L10n, isNullOrUndefined, removeClass, addClass } from '@syncfusion/ej2-base';
22
22
  import { DropDownList } from '@syncfusion/ej2-dropdowns';
@@ -91,7 +91,7 @@ var ActionBase = /** @class */ (function () {
91
91
  var startHour = this.parent.activeView.getStartHour();
92
92
  var intervalInMS = util.MS_PER_MINUTE * this.actionObj.interval;
93
93
  dateInMS += (startHour.getHours() * 60 + startHour.getMinutes()) * util.MS_PER_MINUTE + startHour.getSeconds() * 1000;
94
- dateInMS = dateInMS + ((date.getTime() - dateInMS) / intervalInMS) * intervalInMS;
94
+ dateInMS = dateInMS + Math.floor((date.getTime() - dateInMS) / intervalInMS) * intervalInMS;
95
95
  return new Date(dateInMS);
96
96
  };
97
97
  ActionBase.prototype.getContentAreaDimension = function () {
@@ -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 { createElement, closest, Draggable, extend, formatUnit, isNullOrUndefined } from '@syncfusion/ej2-base';
16
16
  import { addClass, remove, removeClass, setStyleAttribute } from '@syncfusion/ej2-base';
@@ -1,14 +1,14 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
12
  /* eslint-disable @typescript-eslint/no-explicit-any */
13
13
  import { KeyboardEvents, closest, EventHandler, extend, Browser } from '@syncfusion/ej2-base';
14
14
  import { isNullOrUndefined, addClass, removeClass } from '@syncfusion/ej2-base';
@@ -1133,7 +1133,7 @@ var KeyboardInteraction = /** @class */ (function () {
1133
1133
  var activeEle = document.activeElement;
1134
1134
  if (this.parent.currentView === 'MonthAgenda' || (!isNullOrUndefined(activeEle) && closest(activeEle, '.' + cls.POPUP_WRAPPER_CLASS))) {
1135
1135
  var selectedEle = this.parent.eventBase.getSelectedEvents().element;
1136
- activeEle = ((selectedEle && isNullOrUndefined(selectedEle.length)) ? selectedEle : selectedEle[0]);
1136
+ activeEle = ((selectedEle && selectedEle.length > 0) ? selectedEle[0] : selectedEle);
1137
1137
  }
1138
1138
  if (activeEle && activeEle.classList.contains(cls.APPOINTMENT_CLASS)) {
1139
1139
  addClass([activeEle], cls.APPOINTMENT_BORDER);
@@ -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, Browser, EventHandler, closest, extend, formatUnit, setStyleAttribute, isNullOrUndefined } from '@syncfusion/ej2-base';
16
16
  import { ActionBase } from '../actions/action-base';
@@ -409,13 +409,17 @@ var Resize = /** @class */ (function (_super) {
409
409
  }
410
410
  else {
411
411
  var cellWidth = this.actionObj.cellWidth;
412
- cellIndex = isLeft ? Math.round(offset / this.actionObj.cellWidth) :
412
+ cellIndex = isLeft ? Math.floor(offset / this.actionObj.cellWidth) :
413
413
  Math.ceil((offset + (this.parent.getElementWidth(this.actionObj.clone) - cellWidth)) / this.actionObj.cellWidth);
414
414
  if (this.parent.enableRtl) {
415
- var offsetWidth = (Math.round(offset / this.actionObj.cellWidth) *
416
- this.actionObj.cellWidth) + (isLeft ? 0 : (this.parent.getElementWidth(this.actionObj.clone) -
417
- this.actionObj.cellWidth));
418
- cellIndex = Math.ceil(offsetWidth / this.actionObj.cellWidth);
415
+ var cellOffsetWidth = 0;
416
+ if (headerName === 'TimelineMonth' || (!this.parent.activeViewOptions.timeScale.enable &&
417
+ !isTimelineMonth)) {
418
+ cellOffsetWidth = this.actionObj.cellWidth;
419
+ }
420
+ var offsetWidth = (Math.floor(offset / this.actionObj.cellWidth) *
421
+ this.actionObj.cellWidth) + (isLeft ? 0 : this.parent.getElementWidth(this.actionObj.clone) - cellOffsetWidth);
422
+ cellIndex = Math.floor(offsetWidth / this.actionObj.cellWidth);
419
423
  }
420
424
  isLastCell = cellIndex === tdCollections.length;
421
425
  cellIndex = this.getIndex(cellIndex);
@@ -433,29 +437,13 @@ var Resize = /** @class */ (function (_super) {
433
437
  }
434
438
  else {
435
439
  if (!isLeft) {
436
- var cloneWidth = this.parent.getElementWidth(this.actionObj.clone);
437
- var pixelsPerInterval = this.actionObj.cellWidth /
438
- (this.actionObj.slotInterval / this.actionObj.interval);
439
- var numIntervals = Math.round(cloneWidth / pixelsPerInterval);
440
- cloneWidth = numIntervals * pixelsPerInterval;
441
- offset = offset + cloneWidth;
440
+ offset += this.parent.getElementWidth(this.actionObj.clone);
442
441
  }
443
442
  var spanMinutes = Math.ceil((this.actionObj.slotInterval / this.actionObj.cellWidth) *
444
443
  (offset - Math.floor(offset / this.actionObj.cellWidth) * this.actionObj.cellWidth));
445
- spanMinutes = (isLastCell || (!isLeft && spanMinutes === 0)) ? this.actionObj.slotInterval : spanMinutes;
444
+ spanMinutes = (isLastCell || (!isLeft && spanMinutes === 0 && !this.parent.enableRtl)) ? this.actionObj.slotInterval : spanMinutes;
446
445
  resizeTime = new Date(resizeDate.getTime());
447
- resizeTime = new Date(resizeDate.getTime() + (spanMinutes * util.MS_PER_MINUTE));
448
- var isCustomResizeInterval = this.actionObj.interval !== this.actionObj.slotInterval;
449
- var initialCellTime = new Date(resizeTime.getTime());
450
- var intervalInMS = this.actionObj.interval * 60000;
451
- if (intervalInMS > 0 && isCustomResizeInterval) {
452
- if (this.resizeEdges.right || this.resizeEdges.left) {
453
- var eventTime = this.resizeEdges.right ? eventEnd : eventStart;
454
- var timeDifferenceMs = initialCellTime.getTime() - eventTime.getTime();
455
- var intervalCount = Math.round(timeDifferenceMs / intervalInMS);
456
- resizeTime = new Date(eventTime.getTime() + intervalCount * intervalInMS);
457
- }
458
- }
446
+ resizeTime.setMinutes(resizeTime.getMinutes() + spanMinutes);
459
447
  this.updateTimePosition(resizeTime);
460
448
  }
461
449
  }
@@ -525,12 +513,11 @@ var Resize = /** @class */ (function (_super) {
525
513
  var slotInterval = (this.actionObj.cellWidth / this.actionObj.slotInterval) * this.actionObj.interval;
526
514
  var pageWidth = isLeft ? (this.actionObj.X - this.actionObj.pageX) : (this.actionObj.pageX - this.actionObj.X);
527
515
  var targetWidth = isTimelineView ?
528
- Math.round(this.parent.getElementWidth(this.actionObj.element) / this.actionObj.cellWidth) * this.actionObj.cellWidth :
516
+ (this.parent.getElementWidth(this.actionObj.element) / this.actionObj.cellWidth) * this.actionObj.cellWidth :
529
517
  this.parent.currentView === 'Month' ? this.parent.getElementWidth(this.actionObj.element) :
530
518
  Math.ceil(this.parent.getElementWidth(this.actionObj.element) / this.actionObj.cellWidth) * this.actionObj.cellWidth;
531
519
  var offsetWidth = targetWidth + (Math.ceil(pageWidth / this.actionObj.cellWidth) * this.actionObj.cellWidth);
532
520
  var left = (this.parent.enableRtl) ? parseInt(this.actionObj.element.style.right, 10) : this.actionObj.clone.offsetLeft;
533
- left = Math.round(left / slotInterval) * slotInterval;
534
521
  if (isTimeViews) {
535
522
  offsetWidth = targetWidth + (Math.ceil(pageWidth / slotInterval) * slotInterval);
536
523
  if (!isLeft) {
@@ -542,14 +529,13 @@ var Resize = /** @class */ (function (_super) {
542
529
  }
543
530
  this.actionObj.event[this.parent.eventFields.isAllDay] = false;
544
531
  }
545
- var width = !isLeft && (Math.floor(offsetWidth + this.actionObj.clone.offsetLeft) > this.scrollArgs.width) ?
532
+ var width = !isLeft && ((offsetWidth + this.actionObj.clone.offsetLeft) > this.scrollArgs.width) ?
546
533
  this.parent.getElementWidth(this.actionObj.clone) : (offsetWidth < this.actionObj.cellWidth) ? offsetWidth : offsetWidth;
547
534
  if (this.parent.enableRtl) {
548
535
  var rightValue = isTimelineView ? parseInt(this.actionObj.element.style.right, 10) :
549
536
  -(offsetWidth - this.actionObj.cellWidth);
550
537
  rightValue = isTimelineView ? rightValue : isLeft ? 0 : rightValue > 0 ? 0 : rightValue;
551
538
  if (isTimelineView && !isLeft) {
552
- rightValue = Math.round(rightValue / slotInterval) * slotInterval;
553
539
  rightValue = rightValue - (Math.ceil((this.actionObj.pageX - this.actionObj.X) / slotInterval) * slotInterval);
554
540
  if (rightValue < 0) {
555
541
  rightValue = parseInt(this.actionObj.clone.style.right, 10);
@@ -32,7 +32,7 @@ export interface ActionEventArgs extends ToolbarActionArgs {
32
32
  */
33
33
  promise?: Promise<boolean>;
34
34
  }
35
- /** */
35
+ /** @deprecated */
36
36
  export interface ToolbarActionArgs extends BaseEventArgs {
37
37
  /** Returns the request type of the current action. */
38
38
  requestType: string;
@@ -597,7 +597,7 @@ export interface UIStateArgs {
597
597
  }
598
598
  /**
599
599
  * @private
600
-
600
+ * @deprecated
601
601
  */
602
602
  export interface TreeViewArgs {
603
603
  resourceChild?: TreeViewArgs[];