1. Import

This commit is contained in:
2026-03-29 10:34:57 +02:00
parent b0e00c1259
commit a1129565af
4899 changed files with 3007593 additions and 0 deletions

10
html/js/ej/ej.web.all.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,581 @@
var treeGridDataSource = [
{
"Name": "Windows",
"DateModified": new Date("06/26/2014"),
"Type": "File Folder",
"DateCreated": new Date("06/16/2014"),
"Children": [
{
"Name": "Users",
"DateModified": new Date("06/26/2014"),
"Type": "File Folder",
"DateCreated": new Date("06/16/2014"),
"Children": [
{
"Name": "Public",
"DateModified": new Date("06/26/2014"),
"Type": "File Folder",
"DateCreated": new Date("06/16/2014"),
"Children": [
{
"Name": "Documents ",
"DateModified": new Date("06/26/2014"),
"Type": "File Folder",
"DateCreated": new Date("06/16/2014"),
"Children": [
{ "Name": "Document 1", "DateModified": new Date("06/26/2014"), "Type": "HTML document", "DateCreated": new Date("06/16/2014"), },
{ "Name": "Document 2", "DateModified": new Date("06/26/2014"), "Type": "HTML document", "DateCreated":new Date( "06/16/2014"), },
{ "Name": "Document 3", "DateModified": new Date("06/26/2014"), "Type": "HTML document", "DateCreated": new Date("06/16/2014"), }
]
}
]
}
]
}
]
}
];
var sampleData = [
{
taskID: 1,
taskName: "Planning",
startDate: new Date("02/03/2014"),
endDate: new Date("02/07/2014"),
progress: 100,
duration: 5,
priority: "Normal",
approved: false,
subtasks: [
{ taskID: 2, taskName: "Plan timeline", startDate: new Date("02/03/2014"), endDate: new Date("02/07/2014"), duration: 5, progress: 100, priority: "Normal", approved: false },
{ taskID: 3, taskName: "Plan budget", startDate: new Date("02/03/2014"), endDate: new Date("02/07/2014"), duration: 5, progress: 100, approved: true },
{ taskID: 4, taskName: "Allocate resources", startDate: new Date("02/03/2014"), endDate: new Date("02/07/2014"), duration: 5, progress: 100, priority: "Critical", approved: false },
{ taskID: 5, taskName: "Planning complete", startDate: new Date("02/07/2014"), endDate: new Date("02/07/2014"), duration: 0, progress: 0, priority: "Low", approved: true }
]
},
{
taskID: 6,
taskName: "Design",
startDate: new Date("02/10/2014"),
endDate: new Date("02/14/2014"),
duration: 3,
progress: 86,
priority: "High",
approved: false,
subtasks: [
{ taskID: 7, taskName: "Software Specification", startDate: new Date("02/10/2014"), endDate: new Date("02/12/2014"), duration: 3, progress: 60, priority: "Normal", approved: false },
{ taskID: 8, taskName: "Develop prototype", startDate: new Date("02/10/2014"), endDate: new Date("02/12/2014"), duration: 3, progress: 100, priority: "Critical", approved: false },
{ taskID: 9, taskName: "Get approval from customer", startDate: new Date("02/13/2014"), endDate: new Date("02/14/2014"), duration: 2, progress: 100, approved: true },
{ taskID: 10, taskName: "Design Documentation", startDate: new Date("02/13/2014"), endDate: new Date("02/14/2014"), duration: 2, progress: 100, approved: true },
{ taskID: 11, taskName: "Design complete", startDate: new Date("02/14/2014"), endDate: new Date("02/14/2014"), duration: 0, progress: 0, priority: "Normal", approved: true }
]
},
{
taskID: 12,
taskName: "Implementation Phase",
startDate: new Date("02/17/2014"),
endDate: new Date("02/27/2014"),
priority: "Normal",
approved: false,
duration: 11,
subtasks: [
{
taskID: 13,
taskName: "Phase 1",
startDate: new Date("02/17/2014"),
endDate: new Date("02/27/2014"),
priority: "High",
approved: false,
duration: 11,
subtasks: [{
taskID: 14,
taskName: "Implementation Module 1",
startDate: new Date("02/17/2014"),
endDate: new Date("02/27/2014"),
priority: "Normal",
duration: 11,
approved: false,
subtasks: [
{ taskID: 15, taskName: "Development Task 1", startDate: new Date("02/17/2014"), endDate: new Date("02/19/2014"), duration: 3, progress: "50", priority: "High", approved: false },
{ taskID: 16, taskName: "Development Task 2", startDate: new Date("02/17/2014"), endDate: new Date("02/19/2014"), duration: 3, progress: "50", priority: "Low", approved: true },
{ taskID: 17, taskName: "Testing", startDate: new Date("02/20/2014"), endDate: new Date("02/21/2014"), duration: 2, progress: "0", priority: "Normal", approved: true },
{ taskID: 18, taskName: "Bug fix", startDate: new Date("02/24/2014"), endDate: new Date("02/25/2014"), duration: 2, progress: "0", priority: "Critical", approved: false },
{ taskID: 19, taskName: "Customer review meeting", startDate: new Date("02/26/2014"), endDate: new Date("02/27/2014"), duration: 2, progress: "0", priority: "High", approved: false },
{ taskID: 20, taskName: "Phase 1 complete", startDate: new Date("02/27/2014"), endDate: new Date("02/27/2014"), duration: 0, priority: "Low", approved: true }
]
}]
},
{
taskID: 21,
taskName: "Phase 2",
startDate: new Date("02/17/2014"),
endDate: new Date("02/28/2014"),
priority: "High",
approved: false,
duration: 12,
subtasks: [{
taskID: 22,
taskName: "Implementation Module 2",
startDate: new Date("02/17/2014"),
endDate: new Date("02/28/2014"),
priority: "Critical",
approved: false,
duration: 12,
subtasks: [
{ taskID: 23, taskName: "Development Task 1", startDate: new Date("02/17/2014"), endDate: new Date("02/20/2014"), duration: 4, progress: "50", priority: "Normal", approved: true },
{ taskID: 24, taskName: "Development Task 2", startDate: new Date("02/17/2014"), endDate: new Date("02/20/2014"), duration: 4, progress: "50", priority: "Critical", approved: true },
{ taskID: 25, taskName: "Testing", startDate: new Date("02/21/2014"), endDate: new Date("02/24/2014"), duration: 2, progress: "0", priority: "High", approved: false },
{ taskID: 26, taskName: "Bug fix", startDate: new Date("02/25/2014"), endDate: new Date("02/26/2014"), duration: 2, progress: "0", priority: "Low", approved: false },
{ taskID: 27, taskName: "Customer review meeting", startDate: new Date("02/27/2014"), endDate: new Date("02/28/2014"), duration: 2, progress: "0", priority: "Critical", approved: true },
{ taskID: 28, taskName: "Phase 2 complete", startDate: new Date("02/28/2014"), endDate: new Date("02/28/2014"), duration: 0, priority: "Normal", approved: false }
]
}]
},
{
taskID: 29,
taskName: "Phase 3",
startDate: new Date("02/17/2014"),
endDate: new Date("02/27/2014"),
priority: "Normal",
approved: false,
duration: 11,
subtasks: [{
taskID: 30,
taskName: "Implementation Module 3",
startDate: new Date("02/17/2014"),
endDate: new Date("02/27/2014"),
priority: "High",
approved: false,
duration: 11,
subtasks: [
{ taskID: 31, taskName: "Development Task 1", startDate: new Date("02/17/2014"), endDate: new Date("02/19/2014"), duration: 3, progress: "50", priority: "Low", approved: true },
{ taskID: 32, taskName: "Development Task 2", startDate: new Date("02/17/2014"), endDate: new Date("02/19/2014"), duration: 3, progress: "50", priority: "Normal", approved: false },
{ taskID: 33, taskName: "Testing", startDate: new Date("02/20/2014"), endDate: new Date("02/21/2014"), duration: 2, progress: "0", priority: "Critical", approved: true },
{ taskID: 34, taskName: "Bug fix", startDate: new Date("02/24/2014"), endDate: new Date("02/25/2014"), duration: 2, progress: "0", priority: "High", approved: false },
{ taskID: 35, taskName: "Customer review meeting", startDate: new Date("02/26/2014"), endDate: new Date("02/27/2014"), duration: 2, progress: "0", priority: "Normal", approved: true },
{ taskID: 36, taskName: "Phase 3 complete", startDate: new Date("02/27/2014"), endDate: new Date("02/27/2014"), duration: 0, priority: "Critical", approved: false },
]
}]
}
]
}
];
var templateData = [{
"Name": "Robert King",
"FullName": "Robert King",
"Designation": "Chief Executive Officer",
"EmployeeID": "EMP001",
"Address": "507 - 20th Ave. E.Apt. 2A, Seattle",
"Contact": "(206) 555-9857",
"Country": "USA",
"DOB": new Date("2/15/1963"),
"DOJ": new Date("5/1/1983"),
"Children": [{
"Name": "David william",
"FullName": "David william",
"Designation": "Vice President",
"EmployeeID": "EMP004",
"Address": "722 Moss Bay Blvd., Kirkland",
"Country": "USA",
"Contact": "(206) 555-3412",
"DOB": new Date("5/20/1971"),
"DOJ": new Date("5/1/1991"),
"Children": [{
"Name": "Nancy Davolio",
"FullName": "Nancy Davolio",
"Designation": "Marketing Executive",
"EmployeeID": "EMP035",
"Address": "4110 Old Redmond Rd., Redmond",
"Country": "USA",
"Contact": "(206) 555-8122",
"DOB": new Date("3/19/1966"),
"DOJ": new Date("5/1/1986"),
"Children": [
{
"Name": "Andrew Fuller",
"FullName": "Andrew Fuller",
"Designation": "Sales Representative",
"EmployeeID": "EMP045",
"Address": "14 Garrett Hill, London",
"Country": "UK",
"Contact": "(71) 555-4848",
"DOB": new Date("9/20/1980"),
"DOJ": new Date("5/1/2000"),
},
{
"Name": "Anne Dodsworth",
"FullName": "Anne Dodsworth",
"Designation": "Sales Representative",
"EmployeeID": "EMP091",
"Address": "4726 - 11th Ave. N.E., Seattle",
"Country": "USA",
"Contact": "(206) 555-1189",
"DOB": new Date("10/19/1989"),
"DOJ": new Date("5/1/2009"),
},
{
"Name": "Michael Suyama",
"FullName": "Michael Suyama",
"Designation": "Sales Representative",
"EmployeeID": "EMP110",
"Address": "Coventry House Miner Rd., London",
"Country": "UK",
"Contact": "(71) 555-3636",
"DOB": new Date("11/02/1987"),
"DOJ": new Date("5/1/2007"),
},
{
"Name": "Janet Leverling",
"FullName": "Janet Leverling",
"Designation": "Sales Coordinator",
"EmployeeID": "EMP131",
"Address": "Edgeham Hollow Winchester Way, London",
"Country": "UK",
"Contact": "(71) 555-3636",
"DOB": new Date("11/06/1990"),
"DOJ": new Date("5/1/2010"),
},
]
},
{
"Name": "Romey Wilson",
"FullName": "Romey Wilson",
"Designation": "Sales Executive",
"EmployeeID": "EMP039",
"Address": "7 Houndstooth Rd., London",
"Country": "UK",
"Contact": "(71) 555-3690",
"DOB": new Date("02/02/1980"),
"DOJ": new Date("5/1/2000"),
"Children": [
{
"Name": "Margaret Peacock",
"FullName": "Margaret Peacock",
"Designation": "Sales Representative",
"EmployeeID": "EMP213",
"Address": "4726 - 11th Ave. N.E., California",
"Country": "USA",
"Contact": "(206) 555-1989",
"DOB": new Date("01/21/1986"),
"DOJ": new Date("5/1/2006"),
},
{
"Name": "Laura Callahan",
"FullName": "Laura Callahan",
"Designation": "Sales Coordinator",
"EmployeeID": "EMP201",
"Address": "Coventry House Miner Rd., London",
"Country": "UK",
"Contact": "(71) 555-2222",
"DOB": new Date("12/01/1990"),
"DOJ": new Date("5/1/2010"),
},
{
"Name": "Steven Buchanan",
"FullName": "Steven Buchanan",
"Designation": "Sales Representative",
"EmployeeID": "EMP197",
"Address": "200 Lincoln Ave, Salinas, CA 93901",
"Country": "USA",
"Contact": "(831) 758-7408",
"DOB": new Date("03/23/1987"),
"DOJ": new Date("5/1/2007"),
},
{
"Name": "Tedd Lawson",
"FullName": "Tedd Lawson",
"Designation": "Sales Representative",
"EmployeeID": "EMP167",
"Address": "200 Lincoln Ave, Salinas, CA 93901",
"Country": "USA",
"Contact": "(831) 758-7368 ",
"DOB": new Date("08/09/1989"),
"DOJ": new Date("5/1/2009"),
},
]
}]
}]
}];
var summaryRowData = [{
"FreightID": "CX2389NK",
"FreightName": "Maersk Edibles Co.",
"TotalUnits": 598,
"TotalCosts": 27838,
"UnitWeight": 241,
"children": [{
"FreightID": "QW4567OP",
"FreightName": "Chang",
"TotalUnits": 123,
"TotalCosts": 3400,
"UnitWeight": 50,
}, {
"FreightID": "QW3458BH",
"FreightName": "Aniseed Syrup",
"TotalUnits": 89,
"TotalCosts": 5900,
"UnitWeight": 87,
}, {
"FreightID": "QW8967OH",
"FreightName": "Chef Anton's Cajun Seasoning",
"TotalUnits": 46,
"TotalCosts": 9578,
"UnitWeight": 54,
}, {
"FreightID": "QW6549NJ",
"FreightName": "Chef Anton's Gumbo Mix",
"TotalUnits": 340,
"TotalCosts": 8960,
"UnitWeight": 50,
}]
},
{
"FreightID": "DW8954IO",
"FreightName": "Aeon fitness inc.",
"TotalUnits": 1720,
"TotalCosts": 24367,
"UnitWeight": 296,
"children": [
{
"FreightID": "UF5647YH",
"FreightName": "Reebox CrossFit Back Bay",
"TotalUnits": 600,
"TotalCosts": 8700,
"UnitWeight": 73,
},
{
"FreightID": "UF1290LK",
"FreightName": "The Green Microgym",
"TotalUnits": 569,
"TotalCosts": 8765,
"UnitWeight": 90,
},
{
"FreightID": "UF8956KU",
"FreightName": "DeFranco's",
"TotalUnits": 456,
"TotalCosts": 4589,
"UnitWeight": 68,
},
{
"FreightID": "UF7464JK",
"FreightName": "Westside Barbell",
"TotalUnits": 95,
"TotalCosts": 2313,
"UnitWeight": 65,
}],
},
{
"FreightID": "EJ9456KN",
"FreightName": "Sun technologies inc",
"TotalUnits": 331,
"TotalCosts": 22933,
"UnitWeight": 192,
"children": [
{
"FreightID": "GH2367OP",
"FreightName": "Haier Group",
"TotalUnits": 78,
"TotalCosts": 6789,
"UnitWeight": 23,
},
{
"FreightID": "GH4309TH",
"FreightName": "Panda Electronics",
"TotalUnits": 90,
"TotalCosts": 8999,
"UnitWeight": 48,
},
{
"FreightID": "GH3494SD",
"FreightName": "Jiangsu Etern",
"TotalUnits": 36,
"TotalCosts": 4356,
"UnitWeight": 56,
},
{
"FreightID": "GH3213FR",
"FreightName": "Zhejiang Fuchunjiang",
"TotalUnits": 127,
"TotalCosts": 2789,
"UnitWeight": 65,
}],
}];
var headerData = [
{
taskID: 1,
taskName: "Planning",
startDate: new Date("02/03/2014"),
endDate: new Date("02/07/2014"),
subtasks: [
{ taskID: 2, taskName: "Plan timeline", startDate: new Date("02/03/2014"), endDate: new Date("02/07/2014"), duration: 5, progress: "100", resourceId: "2" },
{ taskID: 3, taskName: "Plan budget", startDate: new Date("02/03/2014"), endDate: new Date("02/07/2014"), duration: 5, progress: "100", resourceId:"1" },
{ taskID: 4, taskName: "Allocate resources", startDate: new Date("02/03/2014"), endDate: new Date("02/07/2014"), duration: 5, progress: "100", resourceId: "1" },
{ taskID: 5, taskName: "Planning complete", startDate: new Date("02/07/2014"), endDate: new Date("02/07/2014"), duration: 0, predecessor: "3FS,4FS,5FS" }
]
},
{
taskID: 6,
taskName: "Design",
startDate: new Date("02/10/2014"),
endDate: new Date("02/14/2014"),
subtasks: [
{ taskID: 7, taskName: "Software Specification", startDate: new Date("02/10/2014"), endDate: new Date("02/12/2014"), duration: 3, progress: "60", predecessor: "6FS", resourceId: "2" },
{ taskID: 8, taskName: "Develop prototype", startDate: new Date("02/10/2014"), endDate: new Date("02/12/2014"), duration: 3, progress: "100", predecessor: "6FS", resourceId: "3" },
{ taskID: 9, taskName: "Get approval from customer", startDate: new Date("02/13/2014"), endDate: new Date("02/14/2014"), duration: 2, progress: "100", predecessor: "9FS", resourceId: "1" },
{ taskID: 10, taskName: "Design complete", startDate: new Date("02/14/2014"), endDate: new Date("02/14/2014"), duration: 0, predecessor: "10FS" }
]
},
{
taskID: 11,
taskName: "Implementation Phase",
startDate: new Date("02/17/2014"),
endDate: new Date("02/27/2014"),
subtasks: [
{
taskID: 12,
taskName: "Phase",
startDate: new Date("02/17/2014"),
endDate: new Date("02/27/2014"),
subtasks: [{
taskID: 13,
taskName: "Implementation Module",
startDate: new Date("02/17/2014"),
endDate: new Date("02/27/2014"),
subtasks: [
{ taskID: 14, taskName: "Development Task 1", startDate: new Date("02/17/2014"), endDate: new Date("02/19/2014"), duration: 3, progress: "50", predecessor: "11FS", resourceId: "3" },
{ taskID: 15, taskName: "Development Task 2", startDate: new Date("02/17/2014"), endDate: new Date("02/19/2014"), duration: 3, progress: "50", predecessor: "11FS", resourceId: "3" },
{ taskID: 16, taskName: "Testing", startDate: new Date("02/20/2014"), endDate: new Date("02/21/2014"), duration: 2, progress: "0", predecessor: "15FS,16FS", resourceId: "4" },
{ taskID: 17, taskName: "Bug fix", startDate: new Date("02/24/2014"), endDate: new Date("02/25/2014"), duration: 2, progress: "0", predecessor: "17FS", resourceId: "4" },
{ taskID: 18, taskName: "Customer review meeting", startDate: new Date("02/26/2014"), endDate: new Date("02/27/2014"), duration: 2, progress: "0", predecessor: "18FS", resourceId: "1" },
{ taskID: 19, taskName: "Phase complete", startDate: new Date("02/27/2014"), endDate: new Date("02/27/2014"), duration: 0, predecessor: "19FS" }
]
}]
}
]
}
];
var projectResources = [
{ resourceId: 1, resourceName: "Project Manager" },
{ resourceId: 2, resourceName: "Software Analyst" },
{ resourceId: 3, resourceName: "Developer" },
{ resourceId: 4, resourceName: "Testing Engineer" }
];
var pagingdata = [
{
taskID: 1,
taskName: "Planning",
startDate: new Date("02/03/2014"),
endDate: new Date("02/07/2014"),
progress: 100,
duration: 5,
priority: "Normal",
approved: false,
subtasks: [
{ taskID: 2, taskName: "Plan timeline", startDate: new Date("02/03/2014"), endDate: new Date("02/07/2014"), duration: 5, progress: 100, priority: "Normal", approved: false },
{ taskID: 3, taskName: "Plan budget", startDate: new Date("02/03/2014"), endDate: new Date("02/07/2014"), duration: 5, progress: 100, approved: true },
{ taskID: 4, taskName: "Allocate resources", startDate: new Date("02/03/2014"), endDate: new Date("02/07/2014"), duration: 5, progress: 100, priority: "Critical", approved: false },
{ taskID: 5, taskName: "Planning complete", startDate: new Date("02/07/2014"), endDate: new Date("02/07/2014"), duration: 0, progress: 0, priority: "Low", approved: true }
]
},
{
taskID: 6,
taskName: "Design",
startDate: new Date("02/10/2014"),
endDate: new Date("02/14/2014"),
duration: 3,
progress: 86,
priority: "High",
approved: false,
subtasks: [
{ taskID: 7, taskName: "Software Specification", startDate: new Date("02/10/2014"), endDate: new Date("02/12/2014"), duration: 3, progress: 60, priority: "Normal", approved: false },
{ taskID: 8, taskName: "Develop prototype", startDate: new Date("02/10/2014"), endDate: new Date("02/12/2014"), duration: 3, progress: 100, priority: "Critical", approved: false },
{ taskID: 9, taskName: "Get approval from customer", startDate: new Date("02/13/2014"), endDate: new Date("02/14/2014"), duration: 2, progress: 100, approved: true },
{ taskID: 10, taskName: "Design Documentation", startDate: new Date("02/13/2014"), endDate: new Date("02/14/2014"), duration: 2, progress: 100, approved: true },
{ taskID: 11, taskName: "Design complete", startDate: new Date("02/14/2014"), endDate: new Date("02/14/2014"), duration: 0, progress: 0, priority: "Normal", approved: true }
]
},
{
taskID: 12,
taskName: "Implementation Phase",
startDate: new Date("02/17/2014"),
endDate: new Date("02/27/2014"),
priority: "Normal",
approved: false,
duration: 11,
subtasks: [
{
taskID: 13,
taskName: "Phase 1",
startDate: new Date("02/17/2014"),
endDate: new Date("02/27/2014"),
priority: "High",
approved: false,
duration: 11,
subtasks: [
{ taskID: 15, taskName: "Development Task 1", startDate: new Date("02/17/2014"), endDate: new Date("02/19/2014"), duration: 3, progress: "50", priority: "High", approved: false },
{ taskID: 16, taskName: "Development Task 2", startDate: new Date("02/17/2014"), endDate: new Date("02/19/2014"), duration: 3, progress: "50", priority: "Low", approved: true },
{ taskID: 17, taskName: "Testing", startDate: new Date("02/20/2014"), endDate: new Date("02/21/2014"), duration: 2, progress: "0", priority: "Normal", approved: true },
{ taskID: 18, taskName: "Bug fix", startDate: new Date("02/24/2014"), endDate: new Date("02/25/2014"), duration: 2, progress: "0", priority: "Critical", approved: false },
{ taskID: 19, taskName: "Customer review meeting", startDate: new Date("02/26/2014"), endDate: new Date("02/27/2014"), duration: 2, progress: "0", priority: "High", approved: false },
{ taskID: 20, taskName: "Phase 1 complete", startDate: new Date("02/27/2014"), endDate: new Date("02/27/2014"), duration: 0, priority: "Low", approved: true }
]
},
{
taskID: 21,
taskName: "Phase 2",
startDate: new Date("02/17/2014"),
endDate: new Date("02/28/2014"),
priority: "High",
approved: false,
duration: 12,
subtasks: [
{ taskID: 23, taskName: "Development Task 1", startDate: new Date("02/17/2014"), endDate: new Date("02/20/2014"), duration: 4, progress: "50", priority: "Normal", approved: true },
{ taskID: 24, taskName: "Development Task 2", startDate: new Date("02/17/2014"), endDate: new Date("02/20/2014"), duration: 4, progress: "50", priority: "Critical", approved: true },
{ taskID: 25, taskName: "Testing", startDate: new Date("02/21/2014"), endDate: new Date("02/24/2014"), duration: 2, progress: "0", priority: "High", approved: false },
{ taskID: 26, taskName: "Bug fix", startDate: new Date("02/25/2014"), endDate: new Date("02/26/2014"), duration: 2, progress: "0", priority: "Low", approved: false },
{ taskID: 27, taskName: "Customer review meeting", startDate: new Date("02/27/2014"), endDate: new Date("02/28/2014"), duration: 2, progress: "0", priority: "Critical", approved: true },
{ taskID: 28, taskName: "Phase 2 complete", startDate: new Date("02/28/2014"), endDate: new Date("02/28/2014"), duration: 0, priority: "Normal", approved: false }
]
},
{
taskID: 29,
taskName: "Phase 3",
startDate: new Date("02/17/2014"),
endDate: new Date("02/27/2014"),
priority: "Normal",
approved: false,
duration: 11,
subtasks: [
{ taskID: 31, taskName: "Development Task 1", startDate: new Date("02/17/2014"), endDate: new Date("02/19/2014"), duration: 3, progress: "50", priority: "Low", approved: true },
{ taskID: 32, taskName: "Development Task 2", startDate: new Date("02/17/2014"), endDate: new Date("02/19/2014"), duration: 3, progress: "50", priority: "Normal", approved: false },
{ taskID: 33, taskName: "Testing", startDate: new Date("02/20/2014"), endDate: new Date("02/21/2014"), duration: 2, progress: "0", priority: "Critical", approved: true },
{ taskID: 34, taskName: "Bug fix", startDate: new Date("02/24/2014"), endDate: new Date("02/25/2014"), duration: 2, progress: "0", priority: "High", approved: false },
{ taskID: 35, taskName: "Customer review meeting", startDate: new Date("02/26/2014"), endDate: new Date("02/27/2014"), duration: 2, progress: "0", priority: "Normal", approved: true },
{ taskID: 36, taskName: "Phase 3 complete", startDate: new Date("02/27/2014"), endDate: new Date("02/27/2014"), duration: 0, priority: "Critical", approved: false }
]
}
]
}
];

2
html/js/ej/jsrender.min.js vendored Normal file

File diff suppressed because one or more lines are too long

411
html/js/ej/properties.js Normal file
View File

@@ -0,0 +1,411 @@
// For Properties Panel
var themes = {
"flat": "../content/ejthemes/default-theme/ej.theme.min.css",
"flatdark": "../content/ejthemes/flat-azure-dark/ej.theme.min.css",
"azure": "../content/ejthemes/default-theme/ej.theme.min.css",
"azuredark": "../content/ejthemes/flat-azure-dark/ej.theme.min.css",
"lime": "../content/ejthemes/flat-lime/ej.theme.min.css",
"limedark": "../content/ejthemes/flat-lime-dark/ej.theme.min.css",
"saffron": "../content/ejthemes/flat-saffron/ej.theme.min.css",
"saffrondark": "../content/ejthemes/flat-saffron-dark/ej.theme.min.css",
"gradient": "../content/ejthemes/gradient-azure/ej.theme.min.css",
"gradientdark": "../content/ejthemes/gradient-azure-dark/ej.theme.min.css",
"gradientazure": "../content/ejthemes/gradient-azure/ej.theme.min.css",
"gradientazuredark": "../content/ejthemes/gradient-azure-dark/ej.theme.min.css",
"gradientlime": "../content/ejthemes/gradient-lime/ej.theme.min.css",
"gradientlimedark": "../content/ejthemes/gradient-lime-dark/ej.theme.min.css",
"gradientsaffron": "../content/ejthemes/gradient-saffron/ej.theme.min.css",
"gradientsaffrondark": "../content/ejthemes/gradient-saffron-dark/ej.theme.min.css",
"bootstrap": "../content/ejthemes/bootstrap-theme/ej.theme.min.css",
"high-contrast-01":"../content/ejthemes/high-contrast-01/ej.theme.min.css",
"high-contrast-02": "../content/ejthemes/high-contrast-02/ej.theme.min.css",
"material": "../content/ejthemes/material/ej.theme.min.css",
"office-365": "../content/ejthemes/office-365/ej.theme.min.css"
};
var core = {
"bootstrap": "../content/ejthemes/ej.widgets.core.bootstrap.min.css",
"material": "../content/ejthemes/ej.widgets.core.material.min.css",
"office-365": "../content/ejthemes/ej.widgets.core.office-365.min.css"
};
window.isMac = function () {
return (/(ipad|iphone|ipod touch)/i).test(navigator.userAgent.toLowerCase()) && !(/trident|windows phone/i.test(navigator.userAgent.toLowerCase()));
}
window.baseurl = "//js.syncfusion.com/ejServices/";
(function ($, ej, undefined) {
// Example plugin creation code
// sfSample is the plugin name
// "ej.Sample" is "namespace.className" will hold functions and properties
if (window.isMac())
window.baseurl="//js.syncfusion.com/ejServices/";
else
window.baseurl=window.baseurl;
ej.widget("ejPropertiesPanel", "ej.PropertiesPanel", {
_rootCSS: "e-prop",
// default model
element: null,
model: null,
header:"Properties",
defaults: {
delayRender: true
},
// constructor function
_init: function () {
if (ej.browserInfo().name == "msie" && this.model.delayRender) {
var proxy = this;
setTimeout(function () { proxy._initialize(); }, 0);
}
else this._initialize();
},
_initialize: function () {
this._sfPropertiesPanel = this.element.wrap('<div class="cols-prop-area" />');
this._sfPropertyTitlebar = ej.buildTag("div.heading").prependTo(this.element);
ej.buildTag("span", this.header).appendTo(this._sfPropertyTitlebar);
this.element.find(".heading").next().addClass("content");
if (QueryString["theme"] == "bootstrap") $(".e-prop").addClass("e-bootstrap");
},
hide: function () {
var panel = this._sfPropertiesPanel;
this._setSize();
this._setPosition();
panel.css({ display: "none" });
return this;
},
_setModel: function () {
},
_setPosition: function () {
if ($(document).find(".samplesection").length > 0) {
this._sfPropertiesPanel.appendTo(".samplesection");
}
//var x = ($(this._sfPropertiesPanel).prev().width()+25);
//this._sfPropertiesPanel.css({ left: x });
},
// all events bound using this._on will be unbind automatically
_destroy: function () {
}
});
})(jQuery, Syncfusion);
// For convert widgets
$(function () {
convertWidgets();
if ($(".cols-sample-area").next('div').length==0)
$(".cols-sample-area").css("width","100%");
});
var QueryString = function () {
// This function is anonymous, is executed immediately and
// the return value is assigned to QueryString!
var query_string = {};
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
// If first entry with this name
if (typeof query_string[pair[0]] === "undefined") {
query_string[pair[0]] = pair[1];
// If second entry with this name
} else if (typeof query_string[pair[0]] === "string") {
var arr = [query_string[pair[0]], pair[1]];
query_string[pair[0]] = arr;
// If third or later entry with this name
} else {
query_string[pair[0]].push(pair[1]);
}
}
return query_string;
}();
window.updateThemess = function (theme) {
if (theme) {
var links = $(document.head || document.getElementsByTagName('head')[0]).find("link");
for (var i = 0; i < links.length; i++) {
if (links[i].href.indexOf("ej.web.all.min.css") != -1) {
if ((theme == "bootstrap")||(theme == "material")||(theme == "office-365")) {
var corefile = document.createElement("link");
corefile.setAttribute("rel", "stylesheet");
corefile.setAttribute("type", "text/css");
corefile.setAttribute("href", core[theme]);
$(corefile).insertAfter(links[i]);
}
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", themes[theme]);
((theme == "bootstrap")||(theme == "material")||(theme =="office-365"))? $(fileref).insertAfter(corefile) : $(fileref).insertAfter(links[i]);
window.setTimeout(function () {
if ($(".cols-sample-area").find(".e-rte.e-js").length) $(".cols-sample-area").find(".e-rte.e-js").data("ejRTE")._setIframeHeight();
if ($(".cols-sample-area").find(".e-fileexplorer.e-js").length) $(".cols-sample-area").find(".e-fileexplorer.e-js").data("ejFileExplorer").adjustSize();
},1500);
break;
}
}
$(function () {
if ((theme.indexOf("dark") != -1)||(theme.indexOf("high-contrast")!=-1))
document.body.className = "darktheme";
});
}
};
updateThemess(QueryString["theme"]);
function loadTheme(sender) {
if (!ej.util.isNullOrUndefined(window.orientation) && sender && this.pluginName == "ejChart") { //to modify chart properties for mobile view
var model = sender.model,
seriesLength = model.series.length;
$(".cols-sample-area").css("padding", "0px");
model.title.enableTrim = true;
model.elementSpacing = 5;
model.legend.visible = false;
model.size.height = null;
model.size.width = null;
for (var i=0; i< seriesLength; i++){
if (!model.series[i].marker)
model.series[i].marker = {};
if (!model.series[i].marker.size)
model.series[i].marker.size = {};
model.series[i].marker.size.width = 6;
model.series[i].marker.size.height = 6;
}
model.primaryXAxis.labelIntersectAction = "rotate45";
if (model.primaryXAxis.title)
model.primaryXAxis.title.text = "";
model.primaryXAxis.edgeLabelPlacement = "hide";
model.primaryYAxis.labelIntersectAction = "rotate45";
if (model.primaryYAxis.title)
model.primaryYAxis.title.text = "";
model.primaryYAxis.edgeLabelPlacement = "hide";
if (model.axes) {
for (var j=0; j< model.axes.length; j++){
model.axes[j].labelIntersectAction = "rotate45";
if (model.axes[j].title)
model.axes[j].title.text = "";
model.axes[j].edgeLabelPlacement = "hide";
}
}
}
var theme = window.themestyle + window.themecolor + window.themevarient;
if (theme) {
switch (theme) {
case "flatdark":
case "flatazuredark":
case "flatlimedark":
case "flatsaffrondark":
theme = "flatdark";
break;
case "gradientlight":
case "gradientazurelight":
case "gradientlimelight":
case "gradientsaffronlight":
theme = "gradientlight";
break;
case "gradientdark":
case "gradientazuredark":
case "gradientlimedark":
case "gradientsaffrondark":
theme = "gradientdark";
break;
case "flatbootstraplight":
theme = "bootstrap";
break;
case "flathigh-contrast-01dark":
case "flathigh-contrast-02dark":
theme = "high-contrast-01";
break;
case "flatmateriallight":
case "flatoffice-365light":
theme = "material";
break;
default:
theme = "flatlight";
break;
}
sender.model.theme = theme;
}
}
function loadOlapChartTheme(sender) {
loadTheme(sender);
if (sender.model.commonSeriesOptions.type == "pie" || sender.model.commonSeriesOptions.type == "pyramid" || sender.model.commonSeriesOptions.type == "funnel")
sender.model.commonSeriesOptions.marker.dataLabel.font.color = sender.model.theme.indexOf("dark") >= 0 ? 'white' : 'black';
}
//Load Bullet theme
function loadBulletTheme(sender) {
var bulletTheme = window.themestyle + window.themecolor + window.themevarient;
if (bulletTheme) {
switch (bulletTheme) {
case "flatdark":
case "flatazuredark":
case "flatlimedark":
case "flatsaffrondark":
case "gradientdark":
case "gradientazuredark":
case "gradientlimedark":
case "gradientsaffrondark":
case "flathigh-contrast-01dark":
case "flathigh-contrast-02dark":
theme = "flatdark";
break;
case "flatoffice-365light":
case "flatmateriallight":
theme = "material";
break;
default:
theme = "flatlight";
break;
}
sender.model.theme = theme;
}
}
function loadSunBurstTheme(sender) {
var SunBurstTheme = window.themestyle + window.themecolor + window.themevarient;
SunBurstTheme = SunBurstTheme.toString();
if (SunBurstTheme.indexOf("dark") > -1 || SunBurstTheme.indexOf("contrast") > -1)
SunBurstTheme = "flatdark";
else
SunBurstTheme = "flatlight";
sender.model.theme = SunBurstTheme;
}
//Load Gauge Theme
function loadGaugeTheme(sender) {
var theme1 = window.themestyle + window.themecolor + window.themevarient;
if (theme1) {
switch (theme1) {
case "flatdark":
case "flatazuredark":
case "flatlimedark":
case "flatsaffrondark":
case "gradientdark":
case "gradientazuredark":
case "gradientlimedark":
case "gradientsaffrondark":
theme = "flatdark";
break;
default:
theme = "flatlight";
break;
}
sender.model.theme = theme;
updateGuageTheme(theme1,this._id);
}
}
function updateGuageTheme(themestyle,id) {
var clsname = "";
if ($(".e-circulargauge").length > 0) {
clsname = "e-circulargauge";
}
else if ($(".e-lineargauge").length > 0) {
clsname = "e-lineargauge";
}
else if ($(".e-digitalgauge").length > 0) {
clsname = "e-digitalgauge";
}
clsname && updateThemeforGauge(clsname, themestyle,id);
}
function updateThemeforGauge(clsname, themestyle, gaugeid) {
var themecolor = themestyle.indexOf("dark") == -1 ? "light" : "dark";
var skin = "metro" + themecolor;
switch (clsname) {
case "e-circulargauge":
replaceframesforGauge(gaugeid, themecolor, themestyle, "circular");
break;
case "e-lineargauge":
replaceframesforGauge(gaugeid, themecolor, themestyle, "linear");
break;
case "e-digitalgauge":
replaceframesforGauge(gaugeid, themecolor, themestyle, "digital");
break;
}
}
function replaceframesforGauge(gaugeid, themecolor, themestyle, frameclass) {
var lGauge,
oirentation,
framestyle;
if (themestyle.indexOf("gradient") != -1) {
if (($(".e-lineargauge").length > 0)){
lGauge = $(".e-lineargauge").ejLinearGauge('instance');
oirentation = lGauge.model.orientation.toLowerCase();
framestyle = themecolor == "light" ? (oirentation == "vertical") ? "lightgradient" : "lightgradient1" : (oirentation == "vertical" ) ? "darkgradient" : "darkgradient1";
}
else
framestyle = themecolor == "light" ? "lightgradient" : "darkgradient";
if ($("#" + gaugeid).parent().hasClass(frameclass + "lightgradient"))
$("#" + gaugeid).parent().removeClass(frameclass + "lightgradient");
else if ($("#" + gaugeid).parent().hasClass(frameclass + "lightgradient1"))
$("#" + gaugeid).parent().removeClass(frameclass + "lightgradient1");
else if ($("#" + gaugeid).parent().hasClass(frameclass + "darkgradient"))
$("#" + gaugeid).parent().removeClass(frameclass + "darkgradient");
else if ($("#" + gaugeid).parent().hasClass(frameclass + "darkgradient1"))
$("#" + gaugeid).parent().removeClass(frameclass + "darkgradient1");
frameclass = gaugeid == "thermoLinear" ? "thermo" : frameclass;
$("#" + gaugeid).parent().addClass(frameclass + framestyle);
}
else
$("#" + gaugeid).parent()[0].className = "";
}
function convertWidgets() {
// declaration
$(".cols-prop-area .e-btn").ejButton();
$(".cols-prop-area .e-togglebtn").ejToggleButton();
$(".cols-prop-area .e-chkbox").ejCheckBox();
$(".cols-prop-area .e-radiobutton").ejRadioButton();
$(".cols-prop-area .e-ddl").ejDropDownList({ watermarkText: "Select" });
}
// Event Trace popup
function adjustpopupposition(args) {
var offset = $("#selectControls_dropdown").offset();
var height = $("#selectControls_wrapper").height();
$("#selectControls_popup_list_wrapper").css("top", (offset.top + height + 14) + "px");
var left = $("#selectControls_popup_list_wrapper").width() + offset.left;
if (left > $(".content-container-fluid").width())
left = (offset.left + $("#selectControls_dropdown").width()) - $("#selectControls_popup_list_wrapper").width() - 12;
$("#selectControls_popup_list_wrapper").css("left", left + "px");
}
// For event tracer
jQuery.addEventLog = function (eventLog) {
var divEvtTrace = null;
if (!$(".sf-event-panel").length > 0) {
divEvtTrace = ej.buildTag("div.divEventTrace sf-event-panel");
}
else {
divEvtTrace = $(".sf-event-panel");
}
$("#EventLog").append(divEvtTrace);
var eventHtml = "<span class='eventLog'>" + eventLog + "</span><hr>";
$(eventHtml).prependTo($("div.divEventTrace")).slideDown(300, "easeOutQuad");
if ($('input[name=themevarient]:checked').length>0 && $('input[name=themevarient]:checked')[0].id == "darktext")
$(".eventtracesection hr").addClass("dark-hr");
else
$(".eventtracesection hr").removeClass("dark-hr");
};
jQuery.clearEventLog = function () {
$("div.divEventTrace").html("");
}