@syncfusion/ej2-angular-schedule 31.2.15 → 32.1.19

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 (178) hide show
  1. package/CHANGELOG.md +0 -51
  2. package/package.json +4 -4
  3. package/schematics/collection.json +39 -10
  4. package/schematics/generators/schedule-agenda-views/index.d.ts +3 -0
  5. package/schematics/generators/schedule-agenda-views/index.js +8 -0
  6. package/schematics/generators/schedule-agenda-views/index.ts +8 -0
  7. package/schematics/generators/schedule-agenda-views/sample-details.d.ts +5 -0
  8. package/schematics/generators/schedule-agenda-views/sample-details.js +7 -0
  9. package/schematics/generators/schedule-agenda-views/sample-details.ts +5 -0
  10. package/schematics/generators/schedule-agenda-views/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +0 -0
  11. package/schematics/generators/schedule-agenda-views/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +13 -0
  12. package/schematics/generators/schedule-agenda-views/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +18 -0
  13. package/schematics/generators/schedule-agenda-views/samples/__path__/__name@dasherize@if-flat__/assets/datasource.ts +29 -0
  14. package/schematics/generators/schedule-agenda-views/schema.d.ts +3 -0
  15. package/schematics/generators/schedule-agenda-views/schema.js +2 -0
  16. package/schematics/generators/schedule-agenda-views/schema.json +125 -0
  17. package/schematics/generators/schedule-agenda-views/schema.ts +3 -0
  18. package/schematics/generators/schedule-calendar-views/index.d.ts +3 -0
  19. package/schematics/generators/schedule-calendar-views/index.js +8 -0
  20. package/schematics/generators/schedule-calendar-views/index.ts +8 -0
  21. package/schematics/generators/schedule-calendar-views/sample-details.d.ts +5 -0
  22. package/schematics/generators/schedule-calendar-views/sample-details.js +7 -0
  23. package/schematics/generators/schedule-calendar-views/sample-details.ts +5 -0
  24. package/schematics/generators/schedule-calendar-views/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +0 -0
  25. package/schematics/generators/schedule-calendar-views/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +11 -0
  26. package/schematics/generators/schedule-calendar-views/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +18 -0
  27. package/schematics/generators/schedule-calendar-views/samples/__path__/__name@dasherize@if-flat__/assets/datasource.ts +92 -0
  28. package/schematics/generators/schedule-calendar-views/schema.d.ts +3 -0
  29. package/schematics/generators/schedule-calendar-views/schema.js +2 -0
  30. package/schematics/generators/schedule-calendar-views/schema.json +125 -0
  31. package/schematics/generators/schedule-calendar-views/schema.ts +3 -0
  32. package/schematics/generators/schedule-horizontal-grouping/index.d.ts +3 -0
  33. package/schematics/generators/schedule-horizontal-grouping/index.js +8 -0
  34. package/schematics/generators/schedule-horizontal-grouping/index.ts +8 -0
  35. package/schematics/generators/schedule-horizontal-grouping/sample-details.d.ts +5 -0
  36. package/schematics/generators/schedule-horizontal-grouping/sample-details.js +7 -0
  37. package/schematics/generators/schedule-horizontal-grouping/sample-details.ts +5 -0
  38. package/schematics/generators/schedule-horizontal-grouping/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +92 -0
  39. package/schematics/generators/schedule-horizontal-grouping/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +29 -0
  40. package/schematics/generators/schedule-horizontal-grouping/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +51 -0
  41. package/schematics/generators/schedule-horizontal-grouping/samples/__path__/__name@dasherize@if-flat__/assets/datasource.ts +25 -0
  42. package/schematics/generators/schedule-horizontal-grouping/schema.d.ts +3 -0
  43. package/schematics/generators/schedule-horizontal-grouping/schema.js +2 -0
  44. package/schematics/generators/schedule-horizontal-grouping/schema.json +125 -0
  45. package/schematics/generators/schedule-horizontal-grouping/schema.ts +3 -0
  46. package/schematics/generators/schedule-time-scale/index.d.ts +3 -0
  47. package/schematics/generators/schedule-time-scale/index.js +8 -0
  48. package/schematics/generators/schedule-time-scale/index.ts +8 -0
  49. package/schematics/generators/schedule-time-scale/sample-details.d.ts +5 -0
  50. package/schematics/generators/schedule-time-scale/sample-details.js +7 -0
  51. package/schematics/generators/schedule-time-scale/sample-details.ts +5 -0
  52. package/schematics/generators/schedule-time-scale/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +0 -0
  53. package/schematics/generators/schedule-time-scale/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +13 -0
  54. package/schematics/generators/schedule-time-scale/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +22 -0
  55. package/schematics/generators/schedule-time-scale/samples/__path__/__name@dasherize@if-flat__/assets/datasource.ts +62 -0
  56. package/schematics/generators/schedule-time-scale/schema.d.ts +3 -0
  57. package/schematics/generators/schedule-time-scale/schema.js +2 -0
  58. package/schematics/generators/schedule-time-scale/schema.json +125 -0
  59. package/schematics/generators/schedule-time-scale/schema.ts +3 -0
  60. package/schematics/generators/schedule-timeline-grouping/index.d.ts +3 -0
  61. package/schematics/generators/schedule-timeline-grouping/index.js +8 -0
  62. package/schematics/generators/schedule-timeline-grouping/index.ts +8 -0
  63. package/schematics/generators/schedule-timeline-grouping/sample-details.d.ts +5 -0
  64. package/schematics/generators/schedule-timeline-grouping/sample-details.js +7 -0
  65. package/schematics/generators/schedule-timeline-grouping/sample-details.ts +5 -0
  66. package/schematics/generators/schedule-timeline-grouping/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +6 -0
  67. package/schematics/generators/schedule-timeline-grouping/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +23 -0
  68. package/schematics/generators/schedule-timeline-grouping/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +39 -0
  69. package/schematics/generators/schedule-timeline-grouping/samples/__path__/__name@dasherize@if-flat__/assets/datasource.ts +92 -0
  70. package/schematics/generators/schedule-timeline-grouping/schema.d.ts +3 -0
  71. package/schematics/generators/schedule-timeline-grouping/schema.js +2 -0
  72. package/schematics/generators/schedule-timeline-grouping/schema.json +125 -0
  73. package/schematics/generators/schedule-timeline-grouping/schema.ts +3 -0
  74. package/schematics/generators/schedule-timeline-views/index.d.ts +3 -0
  75. package/schematics/generators/schedule-timeline-views/index.js +8 -0
  76. package/schematics/generators/schedule-timeline-views/index.ts +8 -0
  77. package/schematics/generators/schedule-timeline-views/sample-details.d.ts +5 -0
  78. package/schematics/generators/schedule-timeline-views/sample-details.js +7 -0
  79. package/schematics/generators/schedule-timeline-views/sample-details.ts +5 -0
  80. package/schematics/generators/schedule-timeline-views/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +0 -0
  81. package/schematics/generators/schedule-timeline-views/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +14 -0
  82. package/schematics/generators/schedule-timeline-views/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +18 -0
  83. package/schematics/generators/schedule-timeline-views/samples/__path__/__name@dasherize@if-flat__/assets/datasource.ts +184 -0
  84. package/schematics/generators/schedule-timeline-views/schema.d.ts +3 -0
  85. package/schematics/generators/schedule-timeline-views/schema.js +2 -0
  86. package/schematics/generators/schedule-timeline-views/schema.json +125 -0
  87. package/schematics/generators/schedule-timeline-views/schema.ts +3 -0
  88. package/schematics/ng-add/index.ts +10 -10
  89. package/schematics/ng-add/schema.json +34 -34
  90. package/schematics/ng-add/schema.ts +30 -30
  91. package/schematics/tsconfig.json +25 -25
  92. package/schematics/utils/lib-details.d.ts +2 -2
  93. package/schematics/utils/lib-details.js +2 -2
  94. package/schematics/utils/lib-details.ts +4 -4
  95. package/styles/bds-lite.scss +1 -1
  96. package/styles/bds.scss +2 -2
  97. package/styles/bootstrap-dark-lite.scss +1 -1
  98. package/styles/bootstrap-dark.scss +2 -2
  99. package/styles/bootstrap-lite.scss +1 -1
  100. package/styles/bootstrap.scss +2 -2
  101. package/styles/bootstrap4-lite.scss +1 -1
  102. package/styles/bootstrap4.scss +2 -2
  103. package/styles/bootstrap5-dark-lite.scss +1 -1
  104. package/styles/bootstrap5-dark.scss +2 -2
  105. package/styles/bootstrap5-lite.scss +1 -1
  106. package/styles/bootstrap5.3-lite.scss +1 -1
  107. package/styles/bootstrap5.3.scss +2 -2
  108. package/styles/bootstrap5.scss +2 -2
  109. package/styles/fabric-dark-lite.scss +1 -1
  110. package/styles/fabric-dark.scss +2 -2
  111. package/styles/fabric-lite.scss +1 -1
  112. package/styles/fabric.scss +2 -2
  113. package/styles/fluent-dark-lite.scss +1 -1
  114. package/styles/fluent-dark.scss +2 -2
  115. package/styles/fluent-lite.scss +1 -1
  116. package/styles/fluent.scss +2 -2
  117. package/styles/fluent2-lite.scss +1 -1
  118. package/styles/fluent2.scss +2 -2
  119. package/styles/highcontrast-light-lite.scss +1 -1
  120. package/styles/highcontrast-light.scss +2 -2
  121. package/styles/highcontrast-lite.scss +1 -1
  122. package/styles/highcontrast.scss +2 -2
  123. package/styles/material-dark-lite.scss +1 -1
  124. package/styles/material-dark.scss +2 -2
  125. package/styles/material-lite.scss +1 -1
  126. package/styles/material.scss +2 -2
  127. package/styles/material3-dark-lite.scss +1 -1
  128. package/styles/material3-dark.scss +2 -3
  129. package/styles/material3-lite.scss +1 -1
  130. package/styles/material3.scss +2 -3
  131. package/styles/recurrence-editor/bds.scss +1 -1
  132. package/styles/recurrence-editor/bootstrap-dark.scss +1 -1
  133. package/styles/recurrence-editor/bootstrap.scss +1 -1
  134. package/styles/recurrence-editor/bootstrap4.scss +1 -1
  135. package/styles/recurrence-editor/bootstrap5-dark.scss +1 -1
  136. package/styles/recurrence-editor/bootstrap5.3.scss +1 -1
  137. package/styles/recurrence-editor/bootstrap5.scss +1 -1
  138. package/styles/recurrence-editor/fabric-dark.scss +1 -1
  139. package/styles/recurrence-editor/fabric.scss +1 -1
  140. package/styles/recurrence-editor/fluent-dark.scss +1 -1
  141. package/styles/recurrence-editor/fluent.scss +1 -1
  142. package/styles/recurrence-editor/fluent2.scss +1 -1
  143. package/styles/recurrence-editor/highcontrast-light.scss +1 -1
  144. package/styles/recurrence-editor/highcontrast.scss +1 -1
  145. package/styles/recurrence-editor/material-dark.scss +1 -1
  146. package/styles/recurrence-editor/material.scss +1 -1
  147. package/styles/recurrence-editor/material3-dark.scss +1 -2
  148. package/styles/recurrence-editor/material3.scss +1 -2
  149. package/styles/recurrence-editor/tailwind-dark.scss +1 -1
  150. package/styles/recurrence-editor/tailwind.scss +1 -1
  151. package/styles/recurrence-editor/tailwind3.scss +1 -1
  152. package/styles/schedule/bds.scss +1 -1
  153. package/styles/schedule/bootstrap-dark.scss +1 -1
  154. package/styles/schedule/bootstrap.scss +1 -1
  155. package/styles/schedule/bootstrap4.scss +1 -1
  156. package/styles/schedule/bootstrap5-dark.scss +1 -1
  157. package/styles/schedule/bootstrap5.3.scss +1 -1
  158. package/styles/schedule/bootstrap5.scss +1 -1
  159. package/styles/schedule/fabric-dark.scss +1 -1
  160. package/styles/schedule/fabric.scss +1 -1
  161. package/styles/schedule/fluent-dark.scss +1 -1
  162. package/styles/schedule/fluent.scss +1 -1
  163. package/styles/schedule/fluent2.scss +1 -1
  164. package/styles/schedule/highcontrast-light.scss +1 -1
  165. package/styles/schedule/highcontrast.scss +1 -1
  166. package/styles/schedule/material-dark.scss +1 -1
  167. package/styles/schedule/material.scss +1 -1
  168. package/styles/schedule/material3-dark.scss +1 -2
  169. package/styles/schedule/material3.scss +1 -2
  170. package/styles/schedule/tailwind-dark.scss +1 -1
  171. package/styles/schedule/tailwind.scss +1 -1
  172. package/styles/schedule/tailwind3.scss +1 -1
  173. package/styles/tailwind-dark-lite.scss +1 -1
  174. package/styles/tailwind-dark.scss +2 -2
  175. package/styles/tailwind-lite.scss +1 -1
  176. package/styles/tailwind.scss +2 -2
  177. package/styles/tailwind3-lite.scss +1 -1
  178. package/styles/tailwind3.scss +2 -2
package/CHANGELOG.md CHANGED
@@ -4,57 +4,6 @@
4
4
 
5
5
  ### Schedule
6
6
 
7
- #### Bug fixes
8
-
9
- - `#I779068` - Fixed an issue where the Scheduler toolbar displayed an incorrect date range instead of the date range based on the first visible appointment when virtual scrolling was enabled.
10
-
11
- ## 31.2.10 (2025-11-13)
12
-
13
- ### Schedule
14
-
15
- #### Bug fixes
16
-
17
- - `#I779062` - Fixed an issue where the Scheduler became unresponsive in agenda view when the data source was reset to empty.
18
-
19
- ## 31.2.3 (2025-10-22)
20
-
21
- ### Schedule
22
-
23
- #### Bug fixes
24
-
25
- - `#I746004` - Fixed an issue where appointments overlapped when a large number of them were rendered.
26
- - `#I738200` - Fixed an issue where the Scheduler became unresponsive when many appointments overlapped simultaneously.
27
-
28
- ## 31.2.2 (2025-10-15)
29
-
30
- ### Schedule
31
-
32
- #### Bug fixes
33
-
34
- - `#I757470` - An issue where cells were misaligned and events were added to the wrong cell when using the `enableLazyLoading` property has been fixed.
35
- - `#I770447` - The issue where the tooltip displayed incorrect content in the `Year` view has been fixed.
36
-
37
- ## 31.1.21 (2025-09-23)
38
-
39
- ### Schedule
40
-
41
- #### Bug fixes
42
-
43
- - `#I746117`, `#I754057` - An issue where an empty content area was rendered during virtual scrolling when using `rowAutoHeight` in combination with `overscanCount` has been resolved.
44
- - `#F197352` - An issue that caused appointments to overlap in the `TimelineYear` view has been fixed.
45
-
46
- ## 31.1.20 (2025-09-10)
47
-
48
- ### Schedule
49
-
50
- #### Bug fixes
51
-
52
- - `#I760538` - The issue where the Edit Event popup was incorrectly displayed for recurring events when `allowEditing` property set to `false` has been resolved.
53
-
54
- ## 31.1.17 (2025-09-05)
55
-
56
- ### Schedule
57
-
58
7
  #### Features
59
8
 
60
9
  - `#I618429` - Added the `groupIndex` value to the `dateHeaderTemplate` when the date header is grouped by resource. This enables resource-specific customization of date headers. Applicable only for `Day`, `Week`, `WorkWeek`, and `Agenda` views when resource-specific date headers are rendered.
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-angular-schedule",
3
- "version": "31.2.15",
3
+ "version": "32.1.19",
4
4
  "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. for Angular",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
7
7
  "schematics": "./schematics/collection.json",
8
8
  "dependencies": {
9
- "@syncfusion/ej2-base": "~31.2.12",
10
- "@syncfusion/ej2-angular-base": "~31.2.12",
11
- "@syncfusion/ej2-schedule": "31.2.15"
9
+ "@syncfusion/ej2-base": "~32.1.19",
10
+ "@syncfusion/ej2-angular-base": "~32.1.19",
11
+ "@syncfusion/ej2-schedule": "32.1.19"
12
12
  },
13
13
  "keywords": [
14
14
  "angular",
@@ -1,11 +1,40 @@
1
1
  {
2
- "$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
3
- "schematics": {
4
- "ng-add": {
5
- "description": "Adds Essential JS 2 specific Angular package to an application",
6
- "factory": "./ng-add",
7
- "schema": "./ng-add/schema.json"
8
- }
9
- }
10
- }
11
-
2
+ "$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
3
+ "schematics": {
4
+ "ng-add": {
5
+ "description": "Adds Essential JS 2 specific Angular package to an application",
6
+ "factory": "./ng-add",
7
+ "schema": "./ng-add/schema.json"
8
+ },
9
+ "schedule-agenda-views": {
10
+ "description": "Creates an Angular Scheduler component with agenda and month-agenda views.",
11
+ "factory": "./generators/schedule-agenda-views",
12
+ "schema": "./generators/schedule-agenda-views/schema.json"
13
+ },
14
+ "schedule-calendar-views": {
15
+ "description": "Creates an Angular Scheduler component with calendar views.",
16
+ "factory": "./generators/schedule-calendar-views",
17
+ "schema": "./generators/schedule-calendar-views/schema.json"
18
+ },
19
+ "schedule-horizontal-grouping": {
20
+ "description": "Creates an Angular Scheduler component with horizontal grouping of resources.",
21
+ "factory": "./generators/schedule-horizontal-grouping",
22
+ "schema": "./generators/schedule-horizontal-grouping/schema.json"
23
+ },
24
+ "schedule-time-scale": {
25
+ "description": "Creates an Angular Scheduler component with modified timescale options.",
26
+ "factory": "./generators/schedule-time-scale",
27
+ "schema": "./generators/schedule-time-scale/schema.json"
28
+ },
29
+ "schedule-timeline-grouping": {
30
+ "description": "Creates an Angular Scheduler component with grouping of resources in timeline views.",
31
+ "factory": "./generators/schedule-timeline-grouping",
32
+ "schema": "./generators/schedule-timeline-grouping/schema.json"
33
+ },
34
+ "schedule-timeline-views": {
35
+ "description": "Creates an Angular Scheduler component with timeline views",
36
+ "factory": "./generators/schedule-timeline-views",
37
+ "schema": "./generators/schedule-timeline-views/schema.json"
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,3 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ import { Schema } from './schema';
3
+ export default function (options: Schema): Rule;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schematics_1 = require("@syncfusion/ej2-angular-base/schematics");
4
+ const sampleDetails = require("./sample-details");
5
+ function default_1(options) {
6
+ return schematics_1.componentBuilder(options, sampleDetails);
7
+ }
8
+ exports.default = default_1;
@@ -0,0 +1,8 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ import { componentBuilder } from "@syncfusion/ej2-angular-base/schematics";
3
+ import { Schema } from './schema';
4
+ import * as sampleDetails from './sample-details';
5
+
6
+ export default function (options: Schema): Rule {
7
+ return componentBuilder(options, sampleDetails);
8
+ }
@@ -0,0 +1,5 @@
1
+ export declare const componentName: string;
2
+ export declare const sampleName: string;
3
+ export declare const diModules: string;
4
+ export declare const packageName: string;
5
+ export declare const libModules: string;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.componentName = 'schedule';
4
+ exports.sampleName = 'agenda-views';
5
+ exports.diModules = 'ResizeService,DragAndDropService,AgendaService,MonthAgendaService';
6
+ exports.packageName = '@syncfusion/ej2-angular-schedule';
7
+ exports.libModules = 'ScheduleModule';
@@ -0,0 +1,5 @@
1
+ export const componentName: string = 'schedule';
2
+ export const sampleName: string = 'agenda-views';
3
+ export const diModules: string = 'ResizeService,DragAndDropService,AgendaService,MonthAgendaService';
4
+ export const packageName: string = '@syncfusion/ej2-angular-schedule';
5
+ export const libModules: string = 'ScheduleModule';
@@ -0,0 +1,13 @@
1
+ <div class="control-section">
2
+ <div class="col-lg-9 content-wrapper">
3
+ <ejs-schedule #scheduleObj width='100%' height='650px' [selectedDate]="selectedDate" [eventSettings]="eventSettings"
4
+ [currentView]="currentView">
5
+ <e-views>
6
+ <e-view option="Agenda"></e-view>
7
+ <e-view option="MonthAgenda"></e-view>
8
+ </e-views>
9
+ </ejs-schedule>
10
+ </div>
11
+ </div>
12
+
13
+
@@ -0,0 +1,18 @@
1
+ import { Component, ViewChild } from '@angular/core';
2
+ import { EventSettingsModel, View} from '@syncfusion/ej2-angular-schedule';
3
+ import { generateObject } from './assets/datasource';
4
+
5
+ /**
6
+ * Agenda views sample
7
+ */
8
+
9
+ @Component({
10
+ selector: '<%=dasherize(selector)%>',
11
+ templateUrl: '<%=dasherize(name)%>.component.html',
12
+ styleUrls: ['<%=dasherize(name)%>.component.css'],
13
+ })
14
+ export class <%= classify(name) %>Component {
15
+ public selectedDate: Date = new Date(2018, 1, 15);
16
+ public currentView: View = "Agenda";
17
+ public eventSettings: EventSettingsModel = { dataSource: generateObject() };
18
+ }
@@ -0,0 +1,29 @@
1
+ export function generateObject(start: number = new Date(2017, 6, 1).getTime(), end: number = new Date(2018, 6, 31).getTime()): Object[] {
2
+ let data: Object[] = [];
3
+ let names: string[] = [
4
+ 'Story Time for Kids', 'Camping with Turtles', 'Wildlife Warriors', 'Parrot Talk', 'Birds of Prey', 'Croco World',
5
+ 'Venomous Snake Hunt', 'Face Painting & Drawing events', 'Pony Rides', 'Feed the Giants', 'Jungle Treasure Hunt',
6
+ 'Endangered Species Program', 'Black Cockatoos Playtime', 'Walk with Jungle King', 'Trained Climbers', 'Playtime with Chimpanzees',
7
+ 'Meet a small Mammal', 'Amazon Fish Feeding', 'Elephant Ride'
8
+ ];
9
+ let dayCount: number = 1000 * 60 * 60;
10
+ for (let a: number = start, id: number = 1; a < end; a += (dayCount * 24) * 2) {
11
+ let count: number = Math.floor((Math.random() * 9) + 1);
12
+ for (let b: number = 0; b < count; b++) {
13
+ let hour: number = Math.floor(Math.random() * 100) % 24;
14
+ let minutes: number = Math.round((Math.floor(Math.random() * 100) % 60) / 5) * 5;
15
+ let nCount: number = Math.floor(Math.random() * names.length);
16
+ let startDate: Date = new Date(new Date(a).setHours(hour, minutes));
17
+ let endDate: Date = new Date(startDate.getTime() + (dayCount * 2.5));
18
+ data.push({
19
+ Id: id,
20
+ Subject: names[nCount],
21
+ StartTime: startDate,
22
+ EndTime: endDate,
23
+ IsAllDay: (id % 10) ? false : true
24
+ });
25
+ id++;
26
+ }
27
+ }
28
+ return data;
29
+ }
@@ -0,0 +1,3 @@
1
+ import { Schema as ComponentSchema } from '@schematics/angular/component/schema';
2
+ export interface Schema extends ComponentSchema {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,125 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "EJ2SchemaTemplateID",
4
+ "title": "schedule-agenda-views",
5
+ "type": "object",
6
+ "properties": {
7
+ "path": {
8
+ "type": "string",
9
+ "format": "path",
10
+ "description": "The path to create the component.",
11
+ "visible": false
12
+ },
13
+ "project": {
14
+ "type": "string",
15
+ "description": "The name of the project.",
16
+ "$default": {
17
+ "$source": "projectName"
18
+ }
19
+ },
20
+ "name": {
21
+ "type": "string",
22
+ "description": "The name of the component.",
23
+ "$default": {
24
+ "$source": "argv",
25
+ "index": 0
26
+ }
27
+ },
28
+ "inlineStyle": {
29
+ "description": "Specifies if the style will be in the ts file.",
30
+ "type": "boolean",
31
+ "default": false,
32
+ "alias": "s"
33
+ },
34
+ "inlineTemplate": {
35
+ "description": "Specifies if the template will be in the ts file.",
36
+ "type": "boolean",
37
+ "default": false,
38
+ "alias": "t"
39
+ },
40
+ "viewEncapsulation": {
41
+ "description": "Specifies the view encapsulation strategy.",
42
+ "enum": [
43
+ "Emulated",
44
+ "Native",
45
+ "None",
46
+ "ShadowDom"
47
+ ],
48
+ "type": "string",
49
+ "alias": "v"
50
+ },
51
+ "changeDetection": {
52
+ "description": "Specifies the change detection strategy.",
53
+ "enum": [
54
+ "Default",
55
+ "OnPush"
56
+ ],
57
+ "type": "string",
58
+ "default": "Default",
59
+ "alias": "c"
60
+ },
61
+ "prefix": {
62
+ "type": "string",
63
+ "description": "The prefix to apply to generated selectors.",
64
+ "alias": "p",
65
+ "oneOf": [
66
+ {
67
+ "maxLength": 0
68
+ },
69
+ {
70
+ "minLength": 1,
71
+ "format": "html-selector"
72
+ }
73
+ ]
74
+ },
75
+ "styleext": {
76
+ "description": "The file extension to be used for style files.",
77
+ "type": "string",
78
+ "default": "css"
79
+ },
80
+ "spec": {
81
+ "type": "boolean",
82
+ "description": "Specifies if a spec file is generated.",
83
+ "default": true
84
+ },
85
+ "flat": {
86
+ "type": "boolean",
87
+ "description": "Flag to indicate if a dir is created.",
88
+ "default": false
89
+ },
90
+ "skipImport": {
91
+ "type": "boolean",
92
+ "description": "Flag to skip the module import.",
93
+ "default": false
94
+ },
95
+ "selector": {
96
+ "type": "string",
97
+ "format": "html-selector",
98
+ "description": "The selector to use for the component."
99
+ },
100
+ "module": {
101
+ "type": "string",
102
+ "description": "Allows specification of the declaring module.",
103
+ "alias": "m"
104
+ },
105
+ "export": {
106
+ "type": "boolean",
107
+ "default": false,
108
+ "description": "Specifies if declaring module exports the component."
109
+ },
110
+ "entryComponent": {
111
+ "type": "boolean",
112
+ "default": false,
113
+ "description": "Specifies if the component is an entry component of declaring module."
114
+ },
115
+ "lintFix": {
116
+ "type": "boolean",
117
+ "default": false,
118
+ "description": "Specifies whether to apply lint fixes after generating the component."
119
+ }
120
+ },
121
+ "required": [
122
+ "name"
123
+ ],
124
+ "id": "schedule-agenda-views"
125
+ }
@@ -0,0 +1,3 @@
1
+ import { Schema as ComponentSchema } from '@schematics/angular/component/schema';
2
+
3
+ export interface Schema extends ComponentSchema { }
@@ -0,0 +1,3 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ import { Schema } from './schema';
3
+ export default function (options: Schema): Rule;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schematics_1 = require("@syncfusion/ej2-angular-base/schematics");
4
+ const sampleDetails = require("./sample-details");
5
+ function default_1(options) {
6
+ return schematics_1.componentBuilder(options, sampleDetails);
7
+ }
8
+ exports.default = default_1;
@@ -0,0 +1,8 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ import { componentBuilder } from "@syncfusion/ej2-angular-base/schematics";
3
+ import { Schema } from './schema';
4
+ import * as sampleDetails from './sample-details';
5
+
6
+ export default function (options: Schema): Rule {
7
+ return componentBuilder(options, sampleDetails);
8
+ }
@@ -0,0 +1,5 @@
1
+ export declare const componentName: string;
2
+ export declare const sampleName: string;
3
+ export declare const diModules: string;
4
+ export declare const packageName: string;
5
+ export declare const libModules: string;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.componentName = 'schedule';
4
+ exports.sampleName = 'calendar-views';
5
+ exports.diModules = 'DayService,WeekService,WorkWeekService,MonthService,AgendaService,ResizeService,DragAndDropService';
6
+ exports.packageName = '@syncfusion/ej2-angular-schedule';
7
+ exports.libModules = 'ScheduleModule';
@@ -0,0 +1,5 @@
1
+ export const componentName: string = 'schedule';
2
+ export const sampleName: string = 'calendar-views';
3
+ export const diModules: string = 'DayService,WeekService,WorkWeekService,MonthService,AgendaService,ResizeService,DragAndDropService';
4
+ export const packageName: string = '@syncfusion/ej2-angular-schedule';
5
+ export const libModules: string = 'ScheduleModule';
@@ -0,0 +1,11 @@
1
+ <div class="control-section">
2
+ <div class="content-wrapper">
3
+ <ejs-schedule [eventSettings]="eventSettings" height='550px' [selectedDate]="currentDate">
4
+ <e-views>
5
+ <e-view option="Day"></e-view>
6
+ <e-view option="Week"></e-view>
7
+ <e-view option="WorkWeek"></e-view>
8
+ <e-view option="Month"></e-view>
9
+ </e-views>
10
+ </ejs-schedule>
11
+ </div>
@@ -0,0 +1,18 @@
1
+ import { Component } from '@angular/core';
2
+ import { EventSettingsModel, View} from '@syncfusion/ej2-angular-schedule';
3
+ import { scheduleData } from './assets/datasource';
4
+
5
+ /**
6
+ * Calendar views sample
7
+ */
8
+
9
+ @Component({
10
+ selector: '<%=dasherize(selector)%>',
11
+ templateUrl: '<%=dasherize(name)%>.component.html',
12
+ styleUrls: ['<%=dasherize(name)%>.component.css'],
13
+ })
14
+ export class <%= classify(name) %>Component {
15
+ public currentDate: Date = new Date(2018, 1, 15);
16
+ public currentView: View = 'Week';
17
+ public eventSettings: EventSettingsModel = {dataSource: scheduleData};
18
+ }
@@ -0,0 +1,92 @@
1
+ export let scheduleData: Object[] = [
2
+ {
3
+ Id: 1,
4
+ Subject: 'Explosion of Betelgeuse Star',
5
+ StartTime: new Date(2018, 1, 11, 9, 30),
6
+ EndTime: new Date(2018, 1, 11, 11, 0),
7
+ CategoryColor: '#1aaa55'
8
+ }, {
9
+ Id: 2,
10
+ Subject: 'Thule Air Crash Report',
11
+ StartTime: new Date(2018, 1, 12, 12, 0),
12
+ EndTime: new Date(2018, 1, 12, 14, 0),
13
+ CategoryColor: '#357cd2'
14
+ }, {
15
+ Id: 3,
16
+ Subject: 'Blue Moon Eclipse',
17
+ StartTime: new Date(2018, 1, 13, 9, 30),
18
+ EndTime: new Date(2018, 1, 13, 11, 0),
19
+ CategoryColor: '#7fa900'
20
+ }, {
21
+ Id: 4,
22
+ Subject: 'Meteor Showers in 2018',
23
+ StartTime: new Date(2018, 1, 14, 13, 0),
24
+ EndTime: new Date(2018, 1, 14, 14, 30),
25
+ CategoryColor: '#ea7a57'
26
+ }, {
27
+ Id: 5,
28
+ Subject: 'Milky Way as Melting pot',
29
+ StartTime: new Date(2018, 1, 15, 12, 0),
30
+ EndTime: new Date(2018, 1, 15, 14, 0),
31
+ CategoryColor: '#00bdae'
32
+ }, {
33
+ Id: 6,
34
+ Subject: 'Mysteries of Bermuda Triangle',
35
+ StartTime: new Date(2018, 1, 15, 9, 30),
36
+ EndTime: new Date(2018, 1, 15, 11, 0),
37
+ CategoryColor: '#f57f17'
38
+ }, {
39
+ Id: 7,
40
+ Subject: 'Glaciers and Snowflakes',
41
+ StartTime: new Date(2018, 1, 16, 11, 0),
42
+ EndTime: new Date(2018, 1, 16, 12, 30),
43
+ CategoryColor: '#1aaa55'
44
+ }, {
45
+ Id: 8,
46
+ Subject: 'Life on Mars',
47
+ StartTime: new Date(2018, 1, 17, 9, 0),
48
+ EndTime: new Date(2018, 1, 17, 10, 0),
49
+ CategoryColor: '#357cd2'
50
+ }, {
51
+ Id: 9,
52
+ Subject: 'Alien Civilization',
53
+ StartTime: new Date(2018, 1, 19, 11, 0),
54
+ EndTime: new Date(2018, 1, 19, 13, 0),
55
+ CategoryColor: '#7fa900'
56
+ }, {
57
+ Id: 10,
58
+ Subject: 'Wildlife Galleries',
59
+ StartTime: new Date(2018, 1, 21, 11, 0),
60
+ EndTime: new Date(2018, 1, 21, 13, 0),
61
+ CategoryColor: '#ea7a57'
62
+ }, {
63
+ Id: 11,
64
+ Subject: 'Best Photography 2018',
65
+ StartTime: new Date(2018, 1, 22, 9, 30),
66
+ EndTime: new Date(2018, 1, 22, 11, 0),
67
+ CategoryColor: '#00bdae'
68
+ }, {
69
+ Id: 12,
70
+ Subject: 'Smarter Puppies',
71
+ StartTime: new Date(2018, 1, 9, 10, 0),
72
+ EndTime: new Date(2018, 1, 9, 11, 30),
73
+ CategoryColor: '#f57f17'
74
+ }, {
75
+ Id: 13,
76
+ Subject: 'Myths of Andromeda Galaxy',
77
+ StartTime: new Date(2018, 1, 7, 10, 30),
78
+ EndTime: new Date(2018, 1, 7, 12, 30),
79
+ CategoryColor: '#1aaa55'
80
+ }, {
81
+ Id: 14,
82
+ Subject: 'Aliens vs Humans',
83
+ StartTime: new Date(2018, 1, 5, 10, 0),
84
+ EndTime: new Date(2018, 1, 5, 11, 30),
85
+ CategoryColor: '#357cd2'
86
+ }, {
87
+ Id: 15,
88
+ Subject: 'Facts of Humming Birds',
89
+ StartTime: new Date(2018, 1, 20, 9, 30),
90
+ EndTime: new Date(2018, 1, 20, 11, 0),
91
+ CategoryColor: '#7fa900'
92
+ }];
@@ -0,0 +1,3 @@
1
+ import { Schema as ComponentSchema } from '@schematics/angular/component/schema';
2
+ export interface Schema extends ComponentSchema {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });