Skip to content

Commit c7aca17

Browse files
Integrated latest changes at 04-25-2025 1:30:23 AM
1 parent 0655d7c commit c7aca17

File tree

91 files changed

+330
-1843
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+330
-1843
lines changed

ej2-angular/code-snippet/gantt/appearance-customization/gridlines-cs1/src/app.component.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ import { NgModule } from '@angular/core'
22
import { BrowserModule } from '@angular/platform-browser'
33
import { GanttModule } from '@syncfusion/ej2-angular-gantt'
44

5-
6-
7-
85
import { Component, ViewEncapsulation, OnInit } from '@angular/core';
96
import { Gantt } from '@syncfusion/ej2-gantt';
107
import { projectNewData } from './data';
@@ -33,7 +30,7 @@ export class AppComponent{
3330
startDate: 'StartDate',
3431
duration: 'Duration',
3532
progress: 'Progress',
36-
child: 'subtasks'
33+
parentID:'ParentID',
3734
};
3835
this.gridLines = 'Both';
3936
}

ej2-angular/code-snippet/gantt/appearance-customization/gridlines-cs1/src/data.ts

Lines changed: 8 additions & 170 deletions
Original file line numberDiff line numberDiff line change
@@ -3,176 +3,14 @@
33
*/
44

55
export let projectNewData: Object[] = [
6-
{
7-
TaskID: 1,
8-
TaskName: 'Product Concept',
9-
StartDate: new Date('04/02/2019'),
10-
EndDate: new Date('04/21/2019'),
11-
subtasks: [
12-
{ TaskID: 2, TaskName: 'Defining the product and its usage', StartDate: new Date('04/02/2019'), Duration: 3, Progress: 30 },
13-
{ TaskID: 3, TaskName: 'Defining target audience', StartDate: new Date('04/02/2019'), Duration: 3 },
14-
{
15-
TaskID: 4, TaskName: 'Prepare product sketch and notes', StartDate: new Date('04/02/2019'), Duration: 2,
16-
Predecessor: '2', Progress: 30
17-
},
18-
]
19-
},
20-
{
21-
TaskID: 5, TaskName: 'Concept Approval', StartDate: new Date('04/02/2019'), Duration: 0, Predecessor: '3,4',
22-
Indicators: [
23-
{
24-
'date': '04/10/2019',
25-
'name': '#briefing',
26-
'title': 'Product concept breifing',
27-
}
28-
]
29-
},
30-
{
31-
TaskID: 6,
32-
TaskName: 'Market Research',
33-
StartDate: new Date('04/02/2019'),
34-
EndDate: new Date('04/21/2019'),
35-
subtasks: [
36-
{
37-
TaskID: 7,
38-
TaskName: 'Demand Analysis',
39-
StartDate: new Date('04/04/2019'),
40-
EndDate: new Date('04/21/2019'),
41-
subtasks: [
42-
{
43-
TaskID: 8, TaskName: 'Customer strength', StartDate: new Date('04/04/2019'), Duration: 4,
44-
Predecessor: '5', Progress: 30
45-
},
46-
{ TaskID: 9, TaskName: 'Market opportunity analysis', StartDate: new Date('04/04/2019'), Duration: 4, Predecessor: '5' }
47-
]
48-
},
49-
{
50-
TaskID: 10, TaskName: 'Competitor Analysis', StartDate: new Date('04/04/2019'), Duration: 4,
51-
Predecessor: '7, 8', Progress: 30
52-
},
53-
{ TaskID: 11, TaskName: 'Product strength analsysis', StartDate: new Date('04/04/2019'), Duration: 4, Predecessor: '9' },
54-
{
55-
TaskID: 12, TaskName: 'Research complete', StartDate: new Date('04/04/2019'), Duration: 0, Predecessor: '10',
56-
Indicators: [
57-
{
58-
'date': '04/20/2019',
59-
'name': '#meeting',
60-
'title': '1st board of directors meeting',
61-
}
62-
]
63-
}
64-
]
65-
},
66-
{
67-
TaskID: 13,
68-
TaskName: 'Product Design and Development',
69-
StartDate: new Date('04/04/2019'),
70-
EndDate: new Date('04/21/2019'),
71-
subtasks: [
72-
{
73-
TaskID: 14, TaskName: 'Functionality design', StartDate: new Date('04/04/2019'),
74-
Duration: 3, Progress: 30, Predecessor: '12'
75-
},
76-
{ TaskID: 15, TaskName: 'Quality design', StartDate: new Date('04/04/2019'), Duration: 3, Predecessor: '12' },
77-
{ TaskID: 16, TaskName: 'Define Reliability', StartDate: new Date('04/04/2019'), Duration: 2, Progress: 30, Predecessor: '15' },
78-
{ TaskID: 17, TaskName: 'Identifying raw materials', StartDate: new Date('04/04/2019'), Duration: 2, Predecessor: '15' },
79-
{
80-
TaskID: 18,
81-
TaskName: 'Define cost plan',
82-
StartDate: new Date('04/04/2019'),
83-
EndDate: new Date('04/21/2019'),
84-
subtasks: [
85-
{
86-
TaskID: 19, TaskName: 'Manufacturing cost', StartDate: new Date('04/04/2019'),
87-
Duration: 2, Progress: 30, Predecessor: '17'
88-
},
89-
{ TaskID: 20, TaskName: 'Selling cost', StartDate: new Date('04/04/2019'), Duration: 2, Predecessor: '17' }
90-
]
91-
},
92-
{
93-
TaskID: 21,
94-
TaskName: 'Development of the final design',
95-
StartDate: new Date('04/04/2019'),
96-
EndDate: new Date('04/21/2019'),
97-
subtasks: [
98-
{
99-
TaskID: 22, TaskName: 'Defining dimensions and package volume', StartDate: new Date('04/04/2019'),
100-
Duration: 2, Progress: 30, Predecessor: '19,20'
101-
},
102-
{
103-
TaskID: 23, TaskName: 'Develop design to meet industry standards', StartDate: new Date('04/04/2019'),
104-
Duration: 2, Predecessor: '22'
105-
},
106-
{ TaskID: 24, TaskName: 'Include all the details', StartDate: new Date('04/04/2019'), Duration: 3, Predecessor: '23' }
107-
]
108-
},
109-
{
110-
TaskID: 25, TaskName: 'CAD Computer-aided design', StartDate: new Date('04/04/2019'),
111-
Duration: 3, Progress: 30, Predecessor: '24'
112-
},
113-
{ TaskID: 26, TaskName: 'CAM Computer-aided manufacturing', StartDate: new Date('04/04/2019'), Duration: 3, Predecessor: '25' },
114-
{
115-
TaskID: 27, TaskName: 'Design complete', StartDate: new Date('04/04/2019'), Duration: 0, Predecessor: '26',
116-
Indicators: [
117-
{
118-
'date': '05/18/2019',
119-
'name': '#meeting',
120-
'title': '2nd board of directors meeting',
121-
}
122-
]
123-
}
124-
125-
]
126-
},
127-
{ TaskID: 28, TaskName: 'Prototype Testing', StartDate: new Date('04/04/2019'), Duration: 4, Progress: 30, Predecessor: '27' },
128-
{ TaskID: 29, TaskName: 'Include feedback', StartDate: new Date('04/04/2019'), Duration: 4, Predecessor: '28ss' },
129-
{ TaskID: 30, TaskName: 'Manufacturing', StartDate: new Date('04/04/2019'), Duration: 5, Progress: 30, Predecessor: '28,29' },
130-
{ TaskID: 31, TaskName: 'Assembling materials to finsihed goods', StartDate: new Date('04/04/2019'), Duration: 5, Predecessor: '30' },
131-
{
132-
TaskID: 32,
133-
TaskName: 'Feedback and Testing',
134-
StartDate: new Date('04/04/2019'),
135-
EndDate: new Date('04/21/2019'),
136-
subtasks: [
137-
{
138-
TaskID: 33, TaskName: 'Internal testing and feedback', StartDate: new Date('04/04/2019'),
139-
Duration: 3, Progress: 45, Predecessor: '31'
140-
},
141-
{
142-
TaskID: 34, TaskName: 'Customer testing and feedback', StartDate: new Date('04/04/2019'),
143-
Duration: 3, Progress: 50, Predecessor: '33'
144-
}
145-
]
146-
},
147-
{
148-
TaskID: 35,
149-
TaskName: 'Final Product Development',
150-
StartDate: new Date('04/04/2019'),
151-
EndDate: new Date('04/21/2019'),
152-
subtasks: [
153-
{
154-
TaskID: 36, TaskName: 'Important improvements', StartDate: new Date('04/04/2019'),
155-
Duration: 4, Progress: 30, Predecessor: '34'
156-
},
157-
{
158-
TaskID: 37, TaskName: 'Address any unforeseen issues', StartDate: new Date('04/04/2019'),
159-
Duration: 4, Progress: 30, Predecessor: '36ss'
160-
}
161-
]
162-
},
163-
{
164-
TaskID: 38,
165-
TaskName: 'Final Product',
166-
StartDate: new Date('04/04/2019'),
167-
EndDate: new Date('04/21/2019'),
168-
subtasks: [
169-
{ TaskID: 39, TaskName: 'Branding product', StartDate: new Date('04/04/2019'), Duration: 4, Predecessor: '37' },
170-
{
171-
TaskID: 40, TaskName: 'Marketing and presales', StartDate: new Date('04/04/2019'),
172-
Duration: 4, Progress: 30, Predecessor: '39'
173-
}
174-
]
175-
}
6+
{ TaskID: 1, TaskName: 'Project Initiation', StartDate: new Date('04/02/2019'), EndDate: new Date('04/21/2019'), isParent: true },
7+
{ TaskID: 2, TaskName: 'Identify Site location', StartDate: new Date('04/02/2019'), Duration: 0, ParentID: 1, Progress: 50 },
8+
{ TaskID: 3, TaskName: 'Perform Soil test', StartDate: new Date('04/02/2019'), Duration: 4, ParentID: 1, Progress: 50 },
9+
{ TaskID: 4, TaskName: 'Soil test approval', StartDate: new Date('04/02/2019'), Duration: 4, ParentID: 1, Predecessor: "2FS", Progress: 50 },
10+
{ TaskID: 5, TaskName: 'Project Estimation', StartDate: new Date('04/02/2019'), EndDate: new Date('04/21/2019'), isParent: true },
11+
{ TaskID: 6, TaskName: 'Develop floor plan for estimation', StartDate: new Date('04/04/2019'), Duration: 3, ParentID: 5, Progress: 50 },
12+
{ TaskID: 7, TaskName: 'List materials', StartDate: new Date('04/04/2019'), Duration: 3, ParentID: 5, Progress: 50 },
13+
{ TaskID: 8, TaskName: 'Estimation approval', StartDate: new Date('04/04/2019'), Duration: 0, ParentID: 5, Predecessor: "6SS", Progress: 50 }
17614
];
17715

17816
export let editingResources: Object[] = [

ej2-angular/code-snippet/gantt/global/internationalization-cs1/src/app.component.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ import { NgModule } from '@angular/core'
22
import { BrowserModule } from '@angular/platform-browser'
33
import { GanttModule } from '@syncfusion/ej2-angular-gantt'
44

5-
6-
7-
85
import { L10n, loadCldr, setCulture } from '@syncfusion/ej2-base';
96
import * as gregorian from './ca-gregorian.json';
107
import * as numbers from './numbers.json';
@@ -51,10 +48,7 @@ export class AppComponent{
5148
startDate: 'StartDate',
5249
duration: 'Duration',
5350
progress: 'Progress',
54-
child: 'subtasks'
51+
parentID:'ParentID',
5552
};
5653
}
5754
}
58-
59-
60-

ej2-angular/code-snippet/gantt/global/internationalization-cs1/src/data.ts

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,12 @@
33
*/
44

55
export let Ganttdata: Object[] = [
6-
{
7-
TaskID: 1,
8-
TaskName: 'Project Initiation',
9-
StartDate: new Date('04/02/2019'),
10-
EndDate: new Date('04/21/2019'),
11-
subtasks: [
12-
{ TaskID: 2, TaskName: 'Identify Site location', StartDate: new Date('04/02/2019'), Duration: 4, Progress: 50 },
13-
{ TaskID: 3, TaskName: 'Perform Soil test', StartDate: new Date('04/02/2019'), Duration: 4, Progress: 50 },
14-
{ TaskID: 4, TaskName: 'Soil test approval', StartDate: new Date('04/02/2019'), Duration: 4, Progress: 50 },
15-
]
16-
},
17-
{
18-
TaskID: 5,
19-
TaskName: 'Project Estimation',
20-
StartDate: new Date('04/02/2019'),
21-
EndDate: new Date('04/21/2019'),
22-
subtasks: [
23-
{ TaskID: 6, TaskName: 'Develop floor plan for estimation', StartDate: new Date('04/04/2019'), Duration: 3, Progress: 50 },
24-
{ TaskID: 7, TaskName: 'List materials', StartDate: new Date('04/04/2019'), Duration: 3, Progress: 50 },
25-
{ TaskID: 8, TaskName: 'Estimation approval', StartDate: new Date('04/04/2019'), Duration: 3, Progress: 50 }
26-
]
27-
},
28-
];
6+
{ TaskID: 1, TaskName: 'Project Initiation', StartDate: new Date('04/02/2019'), EndDate: new Date('04/21/2019'), isParent: true },
7+
{ TaskID: 2, TaskName: 'Identify Site location', StartDate: new Date('04/02/2019'), Duration: 0, ParentID: 1, Progress: 50 },
8+
{ TaskID: 3, TaskName: 'Perform Soil test', StartDate: new Date('04/02/2019'), Duration: 4, ParentID: 1, Progress: 50 },
9+
{ TaskID: 4, TaskName: 'Soil test approval', StartDate: new Date('04/02/2019'), Duration: 4, ParentID: 1, Predecessor: "2FS", Progress: 50 },
10+
{ TaskID: 5, TaskName: 'Project Estimation', StartDate: new Date('04/02/2019'), EndDate: new Date('04/21/2019'), isParent: true },
11+
{ TaskID: 6, TaskName: 'Develop floor plan for estimation', StartDate: new Date('04/04/2019'), Duration: 3, ParentID: 5, Progress: 50 },
12+
{ TaskID: 7, TaskName: 'List materials', StartDate: new Date('04/04/2019'), Duration: 3, ParentID: 5, Progress: 50 },
13+
{ TaskID: 8, TaskName: 'Estimation approval', StartDate: new Date('04/04/2019'), Duration: 0, ParentID: 5, Predecessor: "6SS", Progress: 50 }
14+
];

ej2-angular/code-snippet/gantt/global/internationalization-cs1/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"target": "ES2022",
1919
"module": "ES2022",
2020
"useDefineForClassFields": false,
21+
"resolveJsonModule": true,
2122
"lib": [
2223
"ES2022",
2324
"dom"

ej2-angular/code-snippet/gantt/global/locale-cs1/src/app.component.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ import { NgModule } from '@angular/core'
22
import { BrowserModule } from '@angular/platform-browser'
33
import { GanttModule } from '@syncfusion/ej2-angular-gantt'
44

5-
6-
7-
85
import { L10n, setCulture } from '@syncfusion/ej2-base';
96
import { Component, ViewEncapsulation, OnInit } from '@angular/core';
107
import { Gantt } from '@syncfusion/ej2-gantt';
@@ -47,10 +44,8 @@ export class AppComponent{
4744
startDate: 'StartDate',
4845
duration: 'Duration',
4946
progress: 'Progress',
50-
child: 'subtasks'
47+
parentID:'ParentID',
5148
};
5249
}
5350
}
5451

55-
56-

ej2-angular/code-snippet/gantt/global/locale-cs1/src/data.ts

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,12 @@
33
*/
44

55
export let Ganttdata: Object[] = [
6-
{
7-
TaskID: 1,
8-
TaskName: 'Project Initiation',
9-
StartDate: new Date('04/02/2019'),
10-
EndDate: new Date('04/21/2019'),
11-
subtasks: [
12-
{ TaskID: 2, TaskName: 'Identify Site location', StartDate: new Date('04/02/2019'), Duration: 4, Progress: 50 },
13-
{ TaskID: 3, TaskName: 'Perform Soil test', StartDate: new Date('04/02/2019'), Duration: 4, Progress: 50 },
14-
{ TaskID: 4, TaskName: 'Soil test approval', StartDate: new Date('04/02/2019'), Duration: 4, Progress: 50 },
15-
]
16-
},
17-
{
18-
TaskID: 5,
19-
TaskName: 'Project Estimation',
20-
StartDate: new Date('04/02/2019'),
21-
EndDate: new Date('04/21/2019'),
22-
subtasks: [
23-
{ TaskID: 6, TaskName: 'Develop floor plan for estimation', StartDate: new Date('04/04/2019'), Duration: 3, Progress: 50 },
24-
{ TaskID: 7, TaskName: 'List materials', StartDate: new Date('04/04/2019'), Duration: 3, Progress: 50 },
25-
{ TaskID: 8, TaskName: 'Estimation approval', StartDate: new Date('04/04/2019'), Duration: 3, Progress: 50 }
26-
]
27-
},
28-
];
6+
{ TaskID: 1, TaskName: 'Project Initiation', StartDate: new Date('04/02/2019'), EndDate: new Date('04/21/2019'), isParent: true },
7+
{ TaskID: 2, TaskName: 'Identify Site location', StartDate: new Date('04/02/2019'), Duration: 0, ParentID: 1, Progress: 50 },
8+
{ TaskID: 3, TaskName: 'Perform Soil test', StartDate: new Date('04/02/2019'), Duration: 4, ParentID: 1, Progress: 50 },
9+
{ TaskID: 4, TaskName: 'Soil test approval', StartDate: new Date('04/02/2019'), Duration: 4, ParentID: 1, Predecessor: "2FS", Progress: 50 },
10+
{ TaskID: 5, TaskName: 'Project Estimation', StartDate: new Date('04/02/2019'), EndDate: new Date('04/21/2019'), isParent: true },
11+
{ TaskID: 6, TaskName: 'Develop floor plan for estimation', StartDate: new Date('04/04/2019'), Duration: 3, ParentID: 5, Progress: 50 },
12+
{ TaskID: 7, TaskName: 'List materials', StartDate: new Date('04/04/2019'), Duration: 3, ParentID: 5, Progress: 50 },
13+
{ TaskID: 8, TaskName: 'Estimation approval', StartDate: new Date('04/04/2019'), Duration: 0, ParentID: 5, Predecessor: "6SS", Progress: 50 }
14+
];

ej2-angular/code-snippet/gantt/global/locale-cs1/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"target": "ES2022",
1919
"module": "ES2022",
2020
"useDefineForClassFields": false,
21+
"resolveJsonModule": true,
2122
"lib": [
2223
"ES2022",
2324
"dom"

ej2-angular/code-snippet/gantt/global/rtl-cs1/src/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export class AppComponent{
136136
startDate: 'StartDate',
137137
duration: 'Duration',
138138
progress: 'Progress',
139-
child: 'subtasks'
139+
parentID:'ParentID',
140140
};
141141
}
142142
}

ej2-angular/code-snippet/gantt/global/rtl-cs1/src/data.ts

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,12 @@
33
*/
44

55
export let Ganttdata: Object[] = [
6-
{
7-
TaskID: 1,
8-
TaskName: 'Project Initiation',
9-
StartDate: new Date('04/02/2019'),
10-
EndDate: new Date('04/21/2019'),
11-
subtasks: [
12-
{ TaskID: 2, TaskName: 'Identify Site location', StartDate: new Date('04/02/2019'), Duration: 4, Progress: 50 },
13-
{ TaskID: 3, TaskName: 'Perform Soil test', StartDate: new Date('04/02/2019'), Duration: 4, Progress: 50 },
14-
{ TaskID: 4, TaskName: 'Soil test approval', StartDate: new Date('04/02/2019'), Duration: 4, Progress: 50 },
15-
]
16-
},
17-
{
18-
TaskID: 5,
19-
TaskName: 'Project Estimation',
20-
StartDate: new Date('04/02/2019'),
21-
EndDate: new Date('04/21/2019'),
22-
subtasks: [
23-
{ TaskID: 6, TaskName: 'Develop floor plan for estimation', StartDate: new Date('04/04/2019'), Duration: 3, Progress: 50 },
24-
{ TaskID: 7, TaskName: 'List materials', StartDate: new Date('04/04/2019'), Duration: 3, Progress: 50 },
25-
{ TaskID: 8, TaskName: 'Estimation approval', StartDate: new Date('04/04/2019'), Duration: 3, Progress: 50 }
26-
]
27-
},
28-
];
6+
{ TaskID: 1, TaskName: 'Project Initiation', StartDate: new Date('04/02/2019'), EndDate: new Date('04/21/2019'), isParent: true },
7+
{ TaskID: 2, TaskName: 'Identify Site location', StartDate: new Date('04/02/2019'), Duration: 0, ParentID: 1, Progress: 50 },
8+
{ TaskID: 3, TaskName: 'Perform Soil test', StartDate: new Date('04/02/2019'), Duration: 4, ParentID: 1, Progress: 50 },
9+
{ TaskID: 4, TaskName: 'Soil test approval', StartDate: new Date('04/02/2019'), Duration: 4, ParentID: 1, Predecessor: "2FS", Progress: 50 },
10+
{ TaskID: 5, TaskName: 'Project Estimation', StartDate: new Date('04/02/2019'), EndDate: new Date('04/21/2019'), isParent: true },
11+
{ TaskID: 6, TaskName: 'Develop floor plan for estimation', StartDate: new Date('04/04/2019'), Duration: 3, ParentID: 5, Progress: 50 },
12+
{ TaskID: 7, TaskName: 'List materials', StartDate: new Date('04/04/2019'), Duration: 3, ParentID: 5, Progress: 50 },
13+
{ TaskID: 8, TaskName: 'Estimation approval', StartDate: new Date('04/04/2019'), Duration: 0, ParentID: 5, Predecessor: "6SS", Progress: 50 }
14+
];

ej2-angular/code-snippet/gantt/global/rtl-cs1/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"target": "ES2022",
1919
"module": "ES2022",
2020
"useDefineForClassFields": false,
21+
"resolveJsonModule": true,
2122
"lib": [
2223
"ES2022",
2324
"dom"

0 commit comments

Comments
 (0)