1. Import

This commit is contained in:
Sven committed 2026-03-29 10:34:57 +02:00
1 parent b0e00c1259
commit a1129565af
4899 files changed
+3007593

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
/*!
* filename: ej.web.all.min.js
* version : 15.1.0.33
* Copyright Syncfusion Inc. 2001 - 2017. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be prosecuted under
* applicable laws.
*/
var LookupCachingMode,CalcQuickBase,FormulaInfoSetAction,FormulaInfoHashtable,HashTable,ejDateRangePicker,ejTooltip,Print,documentManager,Heatmap,HeatmapLegend,RecurrenceEditor,InternalAdaptive,InternalScroller,InternalSelection,InternalFilter,InternalDragAndDrop,InternalEdit,InternalContext,InternalSwimlane,InternalCommon,Kanban,ejSignature,SpellCheck,_sideBySeriesPadding,ejSparkline,__extends,ejSunburstChart;window.ej=window.Syncfusion=window.Syncfusion||{},function(n,t,i){"use strict";var o,u,f,e;t.version="15.1.0.33";t.consts={NamespaceJoin:"-"};t.TextAlign={Center:"center",Justify:"justify",Left:"left",Right:"right"};t.Orientation={Horizontal:"horizontal",Vertical:"vertical"};t.serverTimezoneOffset=0;t.persistStateVersion=null;Object.prototype.hasOwnProperty||(Object.prototype.hasOwnProperty=function(n,t){return n[t]!==i});Date.prototype.toISOString||function(){function n(n){var t=String(n);return t.length===1&&(t="0"+t),t}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+n(this.getUTCMonth()+1)+"-"+n(this.getUTCDate())+"T"+n(this.getUTCHours())+":"+n(this.getUTCMinutes())+":"+n(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}();String.format=function(){for(var t=arguments[0],n=0;n<arguments.length-1;n++)t=t.replace(new RegExp("\\{"+n+"\\}","gm"),arguments[n+1]);return t.replace(/\{[0-9]\}/g,"")};jQuery.uaMatch=function(n){n=n.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];return{browser:t[1]||"",version:t[2]||"0"}};t.defineClass=function(n,r,u,f){if(!n||!u)return i;for(var o=n.split("."),s=window,e=0;e<o.length-1;e++)t.isNullOrUndefined(s[o[e]])&&(s[o[e]]={}),s=s[o[e]];return(f||t.isNullOrUndefined(s[o[e]]))&&(r=typeof r=="function"?r:function(){},s[o[e]]=r,s[o[e]].prototype=u),s[o[e]]};t.util={getNameSpace:function(n){var i=n.toLowerCase().split(".");return i[0]==="ej"&&(i[0]="e"),i.join(t.consts.NamespaceJoin)},getObject:function(n,r){var u,e,f;if(!r)return i;for(u=r,e=n.split("."),f=0;f<e.length;f++){if(t.util.isNullOrUndefined(u))break;u=u[e[f]]}return u},createObject:function(n,r,u){for(var s=n.split("."),h=u||window,f=h,o,c=s.length,e=0;e<c;e++)o=s[e],e+1==c?f[o]=r===i?{}:r:t.isNullOrUndefined(f[o])&&(f[o]={}),f=f[o];return h},isNullOrUndefined:function(n){return n===i||n===null},print:function(i,r){var f=t.buildTag("div"),o=i.clone(),r,e,u;f.append(o);r||(r=window.open("","print","height=452,width=1024,tabbar=no"));r.document.write("<!DOCTYPE html>");e=n("head").find("link").add("style");t.browserInfo().name==="msie"?(u="",e.each(function(t,i){i.tagName=="LINK"&&n(i).attr("href",i.href);u+=i.outerHTML}),r.document.write("<html><head><\/head><body>"+u+f[0].innerHTML+"<\/body><\/html>")):(u="",r.document.write("<html><head>"),e.each(function(t,i){i.tagName=="LINK"&&n(i).attr("href",i.href);u+=i.outerHTML}),r.document.writeln(u+"<\/head><body>"),r.document.writeln(f[0].innerHTML+"<\/body><\/html>"));r.document.close();r.focus();setTimeout(function(){t.isNullOrUndefined(r.window)||(r.print(),setTimeout(function(){r.close()},1e3))},1e3)},ieClearRemover:function(t){var i=n(t).height();t.style.paddingTop=parseFloat(i/2)+"px";t.style.paddingBottom=parseFloat(i/2)+"px";t.style.height="1px";t.style.lineHeight="1px"},sendAjaxRequest:function(t){n.ajax({type:t.type,cache:t.cache,url:t.url,dataType:t.dataType,data:t.data,contentType:t.contentType,async:t.async,success:t.successHandler,error:t.errorHandler,beforeSend:t.beforeSendHandler,complete:t.completeHandler})},buildTag:function(t,r,u,f){var s=/^[a-z]*[0-9a-z]+/ig.exec(t)[0],e=/#([_a-z]+[-_0-9a-z]+)/ig.exec(t),o;return e=e?e[e.length-1]:i,o=/\.([a-z]+[-_0-9a-z ]+)/ig.exec(t),o=o?o[o.length-1]:i,n(document.createElement(s)).attr(e?{id:e}:{}).addClass(o||"").css(u||{}).attr(f||{}).html(r||"")},_preventDefaultException:function(n,t){if(n)for(var i in t)if(t[i].test(n[i]))return!0;return!1},getMaxZindex:function(){var t=1;return t=Math.max.apply(null,n.map(n("body *"),function(t){if(n(t).css("position")=="absolute"||n(t).css("position")=="fixed")return parseInt(n(t).css("z-index"))||1})),(t==i||t==null)&&(t=1),t},blockDefaultActions:function(n){n.cancelBubble=!0;n.returnValue=!1;n.preventDefault&&n.preventDefault();n.stopPropagation&&n.stopPropagation()},getDimension:function(t,i){var e,u=n(t).parents().andSelf().filter(":hidden"),r,f;return u&&(r={visibility:"hidden",display:"block"},f=[],u.each(function(){var t={};for(var n in r)t[n]=this.style[n],this.style[n]=r[n];f.push(t)}),e=/(outer)/g.test(i)?n(t)[i](!0):n(t)[i](),u.each(function(n){var i=f[n];for(var t in r)this.style[t]=i[t]})),e},transitionEndEvent:function(){return{"":"transitionend",webkit:"webkitTransitionEnd",Moz:"transitionend",O:"otransitionend",ms:"MSTransitionEnd"}[t.userAgent()]},animationEndEvent:function(){return{"":"animationend",webkit:"wLine truncated
+581
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
View File
@@ -0,0 +1,2 @@
(function(n,t,i){"use strict";function it(n,t){t&&t.onError&&t.onError(n)===!1||(this.name="JsRender Error",this.message=n||"JsRender error")}function o(n,t){var i;n=n||{};for(i in t)n[i]=t[i];return n}function ct(n,t,i){return(!k.rTag||arguments.length)&&(a=n?n.charAt(0):a,v=n?n.charAt(1):v,f=t?t.charAt(0):f,h=t?t.charAt(1):h,w=i||w,n="\\"+a+"(\\"+w+")?\\"+v,t="\\"+f+"\\"+h,l="(?:(?:(\\w+(?=[\\/\\s\\"+f+"]))|(?:(\\w+)?(:)|(>)|!--((?:[^-]|-(?!-))*)--|(\\*)))\\s*((?:[^\\"+f+"]|\\"+f+"(?!\\"+h+"))*?)",k.rTag=l+")",l=new RegExp(n+l+"(\\/)?|(?:\\/(\\w+)))"+t,"g"),et=new RegExp("<.*>|([^\\\\]|^)[{}]|"+n+".*"+t)),[a,v,f,h,w]}function ei(n,t){t||(t=n,n=i);var e,f,o,u,r=this,s=!t||t==="root";if(n){if(u=r.type===t?r:i,!u)if(e=r.views,r._.useKey){for(f in e)if(u=e[f].get(n,t))break}else for(f=0,o=e.length;!u&&f<o;f++)u=e[f].get(n,t)}else if(s)while(r.parent.parent)u=r=r.parent;else while(r&&!u)u=r.type===t?r:i,r=r.parent;return u}function lt(){var n=this.get("item");return n?n.index:i}function oi(n,t){var u,f=this,r=t&&t[n]||(f.ctx||{})[n];return r=r===i?f.getRsc("helpers",n):r,r&&typeof r=="function"&&(u=function(){return r.apply(f,arguments)},o(u,r)),u||r}function si(n,t,u){var h,f,o,e=+u===u&&u,s=t.linkCtx;return e&&(u=(e=t.tmpl.bnds[e-1])(t.data,t,r)),o=u.args[0],(n||e)&&(f=s&&s.tag||{_:{inline:!s},tagName:n+":",flow:!0,_is:"tag"},f._.bnd=e,s&&(s.tag=f,u.ctx=c(u.ctx,s.view.ctx)),f.tagCtx=u,u.view=t,f.ctx=u.ctx||{},delete u.ctx,t._.tag=f,n=n!=="true"&&n,n&&((h=t.getRsc("converters",n))||p("Unknown converter: {{"+n+":"))&&(f.depends=h.depends,o=h.apply(f,u.args)),o=e&&t._.onRender?t._.onRender(o,t,e):o,t._.tag=i),o}function hi(n,t){for(var e=this,u=r[n],f=u&&u[t];f===i&&e;)u=e.tmpl[n],f=u&&u[t],e=e.parent;return f}function ci(n,t,u,f){var ft,s,et,nt,k,l,tt,it,h,d,y,ot,v,ut,w="",g=+f===f&&f,a=t.linkCtx||0,b=t.ctx,st=u||t.tmpl,ht=t._;for(n._is==="tag"&&(s=n,n=s.tagName),g&&(f=(ot=st.bnds[g-1])(t.data,t,r)),tt=f.length,s=s||a.tag,l=0;l<tt;l++)h=f[l],y=h.tmpl,y=h.content=y&&st.tmpls[y-1],u=h.props.tmpl,l||u&&s||(v=t.getRsc("tags",n)||p("Unknown tag: {{"+n+"}}")),u=u||(s?s:v).template||y,u=""+u===u?t.getRsc("templates",u)||e(u):u,o(h,{tmpl:u,render:rt,index:l,view:t,ctx:c(h.ctx,b)}),s||(v._ctr?(s=new v._ctr,ut=!!s.init,s.attr=s.attr||v.attr||i):s={render:v.render},s._={inline:!a},a&&(a.attr=s.attr=a.attr||s.attr,a.tag=s,s.linkCtx=a),(s._.bnd=ot||a)&&(s._.arrVws={}),s.tagName=n,s.parent=k=b&&b.tag,s._is="tag",s._def=v),ht.tag=s,h.tag=s,s.tagCtxs=f,s.flow||(d=h.ctx=h.ctx||{},et=s.parents=d.parentTags=b&&c(d.parentTags,b.parentTags)||{},k&&(et[k.tagName]=k),d.tag=s);for(s.rendering={},l=0;l<tt;l++)h=s.tagCtx=f[l],s.ctx=h.ctx,!l&&ut&&(s.init(h,a,s.ctx),ut=i),(ft=s.render)&&(it=ft.apply(s,h.args)),w+=it!==i?it:h.tmpl?h.render():"";return delete s.rendering,s.tagCtx=s.tagCtxs[0],s.ctx=s.tagCtx.ctx,s._.inline&&(nt=s.attr)&&nt!=="html"&&(w=nt==="text"?wt.html(w):""),g&&t._.onRender?t._.onRender(w,t,g):w}function b(n,t,r,u,f,e,o,s){var c,l,a,y=t==="array",v={key:0,useKey:y?0:1,id:""+fi++,onRender:s,bnds:{}},h={data:u,tmpl:f,content:o,views:y?[]:{},parent:r,ctx:n,type:t,get:ei,getIndex:lt,getRsc:hi,hlp:oi,_:v,_is:"view"};return r&&(c=r.views,l=r._,l.useKey?(c[v.key="_"+l.useKey++]=h,a=l.tag,v.bnd=y&&(!a||!!a._.bnd&&a)):c.splice(v.key=h.index=e!==i?e:c.length,0,h),h.ctx=n||r.ctx),h}function li(n){var t,i,r,u,f;for(t in y)if(u=y[t],(f=u.compile)&&(i=n[t+"s"]))for(r in i)i[r]=f(r,i[r],n,t,u)}function ai(n,t,i){var u,r;return typeof t=="function"?t={depends:t.depends,render:t}:((r=t.template)&&(t.template=""+r===r?e[r]||e(r):r),t.init!==!1&&(u=t._ctr=function(){},(u.prototype=t).constructor=u)),i&&(t._parentTmpl=i),t}function at(r,u,f,o,s,h){function v(i){if(""+i===i||i.nodeType>0){try{a=i.nodeType>0?i:!et.test(i)&&t&&t(n.document).find(i)[0]}catch(u){}return a&&(i=a.getAttribute(ht),r=r||i,i=e[i],i||(r=r||"_"+ui++,a.setAttribute(ht,r),i=e[r]=at(r,a.innerHTML,f,o,s,h))),i}}var l,a;return u=u||"",l=v(u),h=h||(u.markup?u:{}),h.tmplName=r,f&&(h._parentTmpl=f),!l&&u.markup&&(l=v(u.markup))&&l.fn&&(l.debug!==u.debug||l.allowCode!==u.allowCode)&&(l=l.markup),l!==i?(r&&!f&&(tt[r]=function(){return u.render.apply(u,arguments)}),l.fn||u.fn?l.fn&&(u=r&&r!==l.tmplName?c(h,l):l):(u=vt(l,h),ut(l,u)),li(h),u):void 0}function vt(n,t){var i,f=d.wrapMap||{},r=o({markup:n,tmpls:[],links:{},tags:{},bnds:[],_is:"template",render:rt},t);return t.htmlTag||(i=ii.exec(n),r.htmlTag=i?i[1].toLowerCase():""),i=f[r.htmlTag],i&&i!==f.div&&(r.markup=u.trim(r.markup),r._elCnt=!0),r}function vi(n,t){function u(e,o,s){var l,h,a,c;if(e&&""+e!==e&&!e.nodeType&&!e.markup){for(a in e)u(a,e[a],o);return r}return o===i&&(o=e,e=i),e&&""+e!==e&&(s=o,o=e,e=i),c=s?s[f]=s[f]||{}:u,h=t.compile,(l=k.onBeforeStoreItem)&&(h=l(c,e,o,h)||h),e?o===null?delete c[e]:c[e]=h?o=h(e,o,s,n,t):o:o=h(i,o),h&&o&&(o._is=n),(l=k.onStoreItem)&&l(c,e,o,h),o}var f=n+"s";r[f]=u,y[n]=t}function rt(n,t,f,o,s,h){var w,ut,nt,v,tt,it,rt,k,y,ft,d,et,a,l=this,ot=!l.attr||l.attr==="html",g="";if(o===!0&Line truncated
//JsRender v1.0.0-beta: http://jsviews.com
+411
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("");
}