@syncfusion/ej2-angular-schedule 31.1.17 → 31.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -7
- package/schematics/collection.json +39 -10
- package/schematics/generators/schedule-agenda-views/index.d.ts +3 -0
- package/schematics/generators/schedule-agenda-views/index.js +8 -0
- package/schematics/generators/schedule-agenda-views/index.ts +8 -0
- package/schematics/generators/schedule-agenda-views/sample-details.d.ts +5 -0
- package/schematics/generators/schedule-agenda-views/sample-details.js +7 -0
- package/schematics/generators/schedule-agenda-views/sample-details.ts +5 -0
- package/schematics/generators/schedule-agenda-views/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +0 -0
- package/schematics/generators/schedule-agenda-views/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +13 -0
- package/schematics/generators/schedule-agenda-views/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +18 -0
- package/schematics/generators/schedule-agenda-views/samples/__path__/__name@dasherize@if-flat__/assets/datasource.ts +29 -0
- package/schematics/generators/schedule-agenda-views/schema.d.ts +3 -0
- package/schematics/generators/schedule-agenda-views/schema.js +2 -0
- package/schematics/generators/schedule-agenda-views/schema.json +125 -0
- package/schematics/generators/schedule-agenda-views/schema.ts +3 -0
- package/schematics/generators/schedule-calendar-views/index.d.ts +3 -0
- package/schematics/generators/schedule-calendar-views/index.js +8 -0
- package/schematics/generators/schedule-calendar-views/index.ts +8 -0
- package/schematics/generators/schedule-calendar-views/sample-details.d.ts +5 -0
- package/schematics/generators/schedule-calendar-views/sample-details.js +7 -0
- package/schematics/generators/schedule-calendar-views/sample-details.ts +5 -0
- package/schematics/generators/schedule-calendar-views/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +0 -0
- package/schematics/generators/schedule-calendar-views/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +11 -0
- package/schematics/generators/schedule-calendar-views/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +18 -0
- package/schematics/generators/schedule-calendar-views/samples/__path__/__name@dasherize@if-flat__/assets/datasource.ts +92 -0
- package/schematics/generators/schedule-calendar-views/schema.d.ts +3 -0
- package/schematics/generators/schedule-calendar-views/schema.js +2 -0
- package/schematics/generators/schedule-calendar-views/schema.json +125 -0
- package/schematics/generators/schedule-calendar-views/schema.ts +3 -0
- package/schematics/generators/schedule-horizontal-grouping/index.d.ts +3 -0
- package/schematics/generators/schedule-horizontal-grouping/index.js +8 -0
- package/schematics/generators/schedule-horizontal-grouping/index.ts +8 -0
- package/schematics/generators/schedule-horizontal-grouping/sample-details.d.ts +5 -0
- package/schematics/generators/schedule-horizontal-grouping/sample-details.js +7 -0
- package/schematics/generators/schedule-horizontal-grouping/sample-details.ts +5 -0
- package/schematics/generators/schedule-horizontal-grouping/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +92 -0
- package/schematics/generators/schedule-horizontal-grouping/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +29 -0
- package/schematics/generators/schedule-horizontal-grouping/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +51 -0
- package/schematics/generators/schedule-horizontal-grouping/samples/__path__/__name@dasherize@if-flat__/assets/datasource.ts +25 -0
- package/schematics/generators/schedule-horizontal-grouping/schema.d.ts +3 -0
- package/schematics/generators/schedule-horizontal-grouping/schema.js +2 -0
- package/schematics/generators/schedule-horizontal-grouping/schema.json +125 -0
- package/schematics/generators/schedule-horizontal-grouping/schema.ts +3 -0
- package/schematics/generators/schedule-time-scale/index.d.ts +3 -0
- package/schematics/generators/schedule-time-scale/index.js +8 -0
- package/schematics/generators/schedule-time-scale/index.ts +8 -0
- package/schematics/generators/schedule-time-scale/sample-details.d.ts +5 -0
- package/schematics/generators/schedule-time-scale/sample-details.js +7 -0
- package/schematics/generators/schedule-time-scale/sample-details.ts +5 -0
- package/schematics/generators/schedule-time-scale/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +0 -0
- package/schematics/generators/schedule-time-scale/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +13 -0
- package/schematics/generators/schedule-time-scale/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +22 -0
- package/schematics/generators/schedule-time-scale/samples/__path__/__name@dasherize@if-flat__/assets/datasource.ts +62 -0
- package/schematics/generators/schedule-time-scale/schema.d.ts +3 -0
- package/schematics/generators/schedule-time-scale/schema.js +2 -0
- package/schematics/generators/schedule-time-scale/schema.json +125 -0
- package/schematics/generators/schedule-time-scale/schema.ts +3 -0
- package/schematics/generators/schedule-timeline-grouping/index.d.ts +3 -0
- package/schematics/generators/schedule-timeline-grouping/index.js +8 -0
- package/schematics/generators/schedule-timeline-grouping/index.ts +8 -0
- package/schematics/generators/schedule-timeline-grouping/sample-details.d.ts +5 -0
- package/schematics/generators/schedule-timeline-grouping/sample-details.js +7 -0
- package/schematics/generators/schedule-timeline-grouping/sample-details.ts +5 -0
- package/schematics/generators/schedule-timeline-grouping/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +6 -0
- package/schematics/generators/schedule-timeline-grouping/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +23 -0
- package/schematics/generators/schedule-timeline-grouping/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +39 -0
- package/schematics/generators/schedule-timeline-grouping/samples/__path__/__name@dasherize@if-flat__/assets/datasource.ts +92 -0
- package/schematics/generators/schedule-timeline-grouping/schema.d.ts +3 -0
- package/schematics/generators/schedule-timeline-grouping/schema.js +2 -0
- package/schematics/generators/schedule-timeline-grouping/schema.json +125 -0
- package/schematics/generators/schedule-timeline-grouping/schema.ts +3 -0
- package/schematics/generators/schedule-timeline-views/index.d.ts +3 -0
- package/schematics/generators/schedule-timeline-views/index.js +8 -0
- package/schematics/generators/schedule-timeline-views/index.ts +8 -0
- package/schematics/generators/schedule-timeline-views/sample-details.d.ts +5 -0
- package/schematics/generators/schedule-timeline-views/sample-details.js +7 -0
- package/schematics/generators/schedule-timeline-views/sample-details.ts +5 -0
- package/schematics/generators/schedule-timeline-views/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +0 -0
- package/schematics/generators/schedule-timeline-views/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +14 -0
- package/schematics/generators/schedule-timeline-views/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +18 -0
- package/schematics/generators/schedule-timeline-views/samples/__path__/__name@dasherize@if-flat__/assets/datasource.ts +184 -0
- package/schematics/generators/schedule-timeline-views/schema.d.ts +3 -0
- package/schematics/generators/schedule-timeline-views/schema.js +2 -0
- package/schematics/generators/schedule-timeline-views/schema.json +125 -0
- package/schematics/generators/schedule-timeline-views/schema.ts +3 -0
- package/schematics/ng-add/index.ts +10 -10
- package/schematics/ng-add/schema.json +34 -34
- package/schematics/ng-add/schema.ts +30 -30
- package/schematics/tsconfig.json +25 -25
- package/schematics/utils/lib-details.d.ts +2 -2
- package/schematics/utils/lib-details.js +2 -2
- package/schematics/utils/lib-details.ts +4 -4
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "EJ2SchemaTemplateID",
|
|
4
|
+
"title": "schedule-time-scale",
|
|
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-time-scale"
|
|
125
|
+
}
|
|
@@ -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,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.componentName = 'schedule';
|
|
4
|
+
exports.sampleName = 'timeline-grouping';
|
|
5
|
+
exports.diModules = 'TimelineViewsService,TimelineMonthService,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 = 'timeline-grouping';
|
|
3
|
+
export const diModules: string = 'TimelineViewsService,TimelineMonthService,ResizeService,DragAndDropService';
|
|
4
|
+
export const packageName: string = '@syncfusion/ej2-angular-schedule';
|
|
5
|
+
export const libModules: string = 'ScheduleModule';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<div class="control-section">
|
|
2
|
+
<div class="col-lg-12 content-wrapper">
|
|
3
|
+
<ejs-schedule #scheduleObj width='100%' cssClass='timeline-resource-grouping' height='650px' [selectedDate]="selectedDate"
|
|
4
|
+
[group]="group" [eventSettings]="eventSettings">
|
|
5
|
+
<e-resources>
|
|
6
|
+
<e-resource field='RoomId' title='Choose Project' [dataSource]='roomDataSource' [allowMultiple]='allowMultiple' name='Room'
|
|
7
|
+
textField='text' idField='id' colorField='color'>
|
|
8
|
+
</e-resource>
|
|
9
|
+
<e-resource field='OwnerId' title='Category' [dataSource]='ownerDataSource' [allowMultiple]='allowMultiple' name='Owner'
|
|
10
|
+
textField='text' idField='id' groupIDField="groupId" colorField='color'>
|
|
11
|
+
</e-resource>
|
|
12
|
+
</e-resources>
|
|
13
|
+
<e-views>
|
|
14
|
+
<e-view option="TimelineDay"></e-view>
|
|
15
|
+
<e-view option="TimelineWeek"></e-view>
|
|
16
|
+
<e-view option="TimelineWorkWeek"></e-view>
|
|
17
|
+
<e-view option="TimelineMonth"></e-view>
|
|
18
|
+
</e-views>
|
|
19
|
+
</ejs-schedule>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Component, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import { extend } from '@syncfusion/ej2-base';
|
|
3
|
+
import {
|
|
4
|
+
TimelineViewsService, AgendaService, GroupModel, EventSettingsModel, ResizeService, DragAndDropService
|
|
5
|
+
} from '@syncfusion/ej2-angular-schedule';
|
|
6
|
+
import { timelineResourceData } from './assets/datasource';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Timeline grouping sample
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: '<%=dasherize(selector)%>',
|
|
14
|
+
templateUrl: '<%=dasherize(name)%>.component.html',
|
|
15
|
+
styleUrls: ['<%=dasherize(name)%>.component.css'],
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
export class <%= classify(name) %>Component {
|
|
19
|
+
public selectedDate: Date = new Date(2018, 6, 30);
|
|
20
|
+
public group: GroupModel = {
|
|
21
|
+
byGroupID: true,
|
|
22
|
+
resources: ['Room', 'Owner']
|
|
23
|
+
};
|
|
24
|
+
public roomDataSource: Object[] = [
|
|
25
|
+
{ text: 'ROOM 1', id: 1, color: '#cb6bb2' },
|
|
26
|
+
{ text: 'ROOM 2', id: 2, color: '#56ca85' }
|
|
27
|
+
];
|
|
28
|
+
public ownerDataSource: Object[] = [
|
|
29
|
+
{ text: 'Nancy', id: 1, groupId: 1, color: '#ffaa00' },
|
|
30
|
+
{ text: 'Steven', id: 2, groupId: 1, color: '#f8a398' },
|
|
31
|
+
{ text: 'Michael', id: 3, groupId: 1, color: '#51a0ed' },
|
|
32
|
+
{ text: 'Janet', id: 4, groupId: 2, color: '#51a0ed' },
|
|
33
|
+
{ text: 'Milan', id: 5, groupId: 2, color: '#99ff99' },
|
|
34
|
+
];
|
|
35
|
+
public allowMultiple: Boolean = true;
|
|
36
|
+
public eventSettings: EventSettingsModel = {
|
|
37
|
+
dataSource: timelineResourceData
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
|
|
2
|
+
export let timelineResourceData: Object[] = [
|
|
3
|
+
{
|
|
4
|
+
Id: 1,
|
|
5
|
+
Subject: 'Board Meeting',
|
|
6
|
+
Description: 'Meeting to discuss business goal of 2018.',
|
|
7
|
+
StartTime: new Date(2018, 6, 30, 9, 0),
|
|
8
|
+
EndTime: new Date(2018, 6, 30, 11, 0),
|
|
9
|
+
RoomId: 1,
|
|
10
|
+
OwnerId: 1
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
Id: 2,
|
|
14
|
+
Subject: 'Training session on JSP',
|
|
15
|
+
Description: 'Knowledge sharing on JSP topics.',
|
|
16
|
+
StartTime: new Date(2018, 6, 30, 16, 0),
|
|
17
|
+
EndTime: new Date(2018, 6, 30, 18, 0),
|
|
18
|
+
RoomId: 1,
|
|
19
|
+
OwnerId: 2
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
Id: 3,
|
|
23
|
+
Subject: 'Sprint Planning with Team members',
|
|
24
|
+
Description: 'Planning tasks for sprint.',
|
|
25
|
+
StartTime: new Date(2018, 6, 30, 9, 30),
|
|
26
|
+
EndTime: new Date(2018, 6, 30, 11, 0),
|
|
27
|
+
RoomId: 1,
|
|
28
|
+
OwnerId: 3
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
Id: 4,
|
|
32
|
+
Subject: 'Meeting with Client',
|
|
33
|
+
Description: 'Customer meeting to discuss features.',
|
|
34
|
+
StartTime: new Date(2018, 6, 30, 13, 0),
|
|
35
|
+
EndTime: new Date(2018, 6, 30, 16, 0),
|
|
36
|
+
RoomId: 2,
|
|
37
|
+
OwnerId: 4
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
Id: 5,
|
|
41
|
+
Subject: 'Support Meeting with Managers',
|
|
42
|
+
Description: 'Meeting to discuss support plan.',
|
|
43
|
+
StartTime: new Date(2018, 6, 30, 16, 0),
|
|
44
|
+
EndTime: new Date(2018, 6, 30, 17, 30),
|
|
45
|
+
RoomId: 2,
|
|
46
|
+
OwnerId: 5
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
Id: 6, Subject: 'Client Meeting',
|
|
50
|
+
Description: 'Meeting to discuss client requirements.',
|
|
51
|
+
StartTime: new Date(2018, 6, 30, 11, 30),
|
|
52
|
+
EndTime: new Date(2018, 6, 30, 13, 0),
|
|
53
|
+
RoomId: 1,
|
|
54
|
+
OwnerId: 1
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
Id: 7,
|
|
58
|
+
Subject: 'Appraisal Meeting',
|
|
59
|
+
Description: 'Meeting to discuss employee appraisals.',
|
|
60
|
+
StartTime: new Date(2018, 6, 30, 11, 0),
|
|
61
|
+
EndTime: new Date(2018, 6, 30, 12, 30),
|
|
62
|
+
RoomId: 1,
|
|
63
|
+
OwnerId: 2
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
Id: 8,
|
|
67
|
+
Subject: 'HR Meeting',
|
|
68
|
+
Description: 'Meeting to discuss HR plans.',
|
|
69
|
+
StartTime: new Date(2018, 6, 30, 8, 0),
|
|
70
|
+
EndTime: new Date(2018, 6, 30, 9, 0),
|
|
71
|
+
RoomId: 1,
|
|
72
|
+
OwnerId: 3
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
Id: 9,
|
|
76
|
+
Subject: 'Customer Meeting',
|
|
77
|
+
Description: 'Meeting to discuss customer reported issues.',
|
|
78
|
+
StartTime: new Date(2018, 6, 30, 10, 0),
|
|
79
|
+
EndTime: new Date(2018, 6, 30, 12, 0),
|
|
80
|
+
RoomId: 2,
|
|
81
|
+
OwnerId: 4
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
Id: 10,
|
|
85
|
+
Subject: 'Board Meeting',
|
|
86
|
+
Description: 'Meeting to discuss business plans.',
|
|
87
|
+
StartTime: new Date(2018, 6, 30, 11, 30),
|
|
88
|
+
EndTime: new Date(2018, 6, 30, 12, 0),
|
|
89
|
+
RoomId: 2,
|
|
90
|
+
OwnerId: 5
|
|
91
|
+
}
|
|
92
|
+
];
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "EJ2SchemaTemplateID",
|
|
4
|
+
"title": "schedule-timeline-grouping",
|
|
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-timeline-grouping"
|
|
125
|
+
}
|
|
@@ -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,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.componentName = 'schedule';
|
|
4
|
+
exports.sampleName = 'timeline-views';
|
|
5
|
+
exports.diModules = 'TimelineViewsService,TimelineMonthService,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 = 'timeline-views';
|
|
3
|
+
export const diModules: string = 'TimelineViewsService,TimelineMonthService,ResizeService,DragAndDropService';
|
|
4
|
+
export const packageName: string = '@syncfusion/ej2-angular-schedule';
|
|
5
|
+
export const libModules: string = 'ScheduleModule';
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<div class="control-section">
|
|
2
|
+
<div class="content-wrapper">
|
|
3
|
+
<ejs-schedule #schedule height='650px' [selectedDate]="currentDate" [eventSettings]="eventSettings" [currentView]="currentView">
|
|
4
|
+
<e-views>
|
|
5
|
+
<e-view option="TimelineDay"></e-view>
|
|
6
|
+
<e-view option="TimelineWeek"></e-view>
|
|
7
|
+
<e-view option="TimelineWorkWeek"></e-view>
|
|
8
|
+
<e-view option="TimelineMonth"></e-view>
|
|
9
|
+
</e-views>
|
|
10
|
+
</ejs-schedule>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
|
|
@@ -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
|
+
* Timeline 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 = 'TimelineWeek';
|
|
17
|
+
public eventSettings: EventSettingsModel = { dataSource: scheduleData };
|
|
18
|
+
}
|