jsgantt-improved
Advanced tools
Comparing version 2.5.3 to 2.5.4
@@ -148,16 +148,16 @@ "use strict"; | ||
for (var k = 0; k < n; k++) { | ||
if (vDepList[k].toUpperCase().indexOf('SS') != -1) { | ||
vDepend[k] = vDepList[k].substring(0, vDepList[k].toUpperCase().indexOf('SS')); | ||
if (vDepList[k].toUpperCase().endsWith('SS')) { | ||
vDepend[k] = vDepList[k].substring(0, vDepList[k].length - 2); | ||
vDependType[k] = 'SS'; | ||
} | ||
else if (vDepList[k].toUpperCase().indexOf('FF') != -1) { | ||
vDepend[k] = vDepList[k].substring(0, vDepList[k].toUpperCase().indexOf('FF')); | ||
else if (vDepList[k].toUpperCase().endsWith('FF')) { | ||
vDepend[k] = vDepList[k].substring(0, vDepList[k].length - 2); | ||
vDependType[k] = 'FF'; | ||
} | ||
else if (vDepList[k].toUpperCase().indexOf('SF') != -1) { | ||
vDepend[k] = vDepList[k].substring(0, vDepList[k].toUpperCase().indexOf('SF')); | ||
else if (vDepList[k].toUpperCase().endsWith('SF')) { | ||
vDepend[k] = vDepList[k].substring(0, vDepList[k].length - 2); | ||
vDependType[k] = 'SF'; | ||
} | ||
else if (vDepList[k].toUpperCase().indexOf('FS') != -1) { | ||
vDepend[k] = vDepList[k].substring(0, vDepList[k].toUpperCase().indexOf('FS')); | ||
else if (vDepList[k].toUpperCase().endsWith('FS')) { | ||
vDepend[k] = vDepList[k].substring(0, vDepList[k].length - 2); | ||
vDependType[k] = 'FS'; | ||
@@ -164,0 +164,0 @@ } |
@@ -710,2 +710,4 @@ "use strict"; | ||
}; | ||
exports.calculateStartEndFromDepend = function (tasksList) { | ||
}; | ||
//# sourceMappingURL=general_utils.js.map |
@@ -7,7 +7,7 @@ "use strict"; | ||
var dv = protractor_1.browser.driver; | ||
describe('Initial test', function () { | ||
it('Import', function () { | ||
describe('Browser test', function () { | ||
it('JSGantt exists', function () { | ||
chai_1.expect(JSGantt).to.exist; | ||
}); | ||
it('Import', function () { | ||
it('Driver exists', function () { | ||
chai_1.expect(dv).to.exist; | ||
@@ -14,0 +14,0 @@ }); |
@@ -150,17 +150,17 @@ let dataurl; | ||
// Parameters (pID, pName, pStart, pEnd, pStyle, pLink (unused) pLink: pMilpMile: e, pRes, pComp, pGroup, pParent, pOpen, pDepend, pCaption, pNotes, pGantt) | ||
// if (dataurl !== newDataurl) { | ||
// dataurl = newDataurl; | ||
// JSGantt.parseJSON(dataurl, g, vDebug) | ||
// .then(j => jsonObj = j); | ||
// } else { | ||
// JSGantt.addJSONTask(g, jsonObj) | ||
// } | ||
g.AddTaskItem(new JSGantt.TaskItem(1, 'Task Objects', '', '', 'ggroupblack', '', 0, 'Shlomy', 40, 1, 0, '', '', '', '', g)); | ||
g.AddTaskItem(new JSGantt.TaskItem(121, 'Constructor Proc', '2019-08-20','2020-03-06', 'gtaskblue', '', 0, 'Brian T.', 60, 0, 1, 1, '', '', '', g)); | ||
g.AddTaskItem(new JSGantt.TaskItem(122, 'Task Variables', '2019-08-20','2020-03-06', 'gtaskred', '', 0, 'Brian', 60, 0, 1, 1, 121, '', '', g)); | ||
g.AddTaskItem(new JSGantt.TaskItem(123, 'Task by Minute/Hour', '2019-08-20','2020-03-06 12:00', 'gtaskyellow', '', 0, 'Ilan', 60, 0, 1, 1, '', '', '', g)); | ||
g.AddTaskItem(new JSGantt.TaskItem(124, 'Task Functions', '2019-08-20','2020-03-06', 'gtaskred', '', 0, 'Anyone', 60, 0, 1, 1, '123', 'This is a caption', null, g)); | ||
if (dataurl !== newDataurl) { | ||
dataurl = newDataurl; | ||
JSGantt.parseJSON(dataurl, g, vDebug) | ||
.then(j => jsonObj = j); | ||
} else { | ||
JSGantt.addJSONTask(g, jsonObj) | ||
} | ||
g.AddTaskItem(new JSGantt.TaskItem(1, 'Task Objects', '', '', 'ggroupblack', '', 0, 'Shlomy', 40, 1, 0, '', '', '', '', g)); | ||
g.AddTaskItem(new JSGantt.TaskItem(121, 'Constructor Proc', '2019-08-20', '2020-03-06', 'gtaskblue', '', 0, 'Brian T.', 60, 0, 1, 1, '', '', '', g)); | ||
g.AddTaskItem(new JSGantt.TaskItem(122, 'Task Variables', '2019-08-20', '2020-03-06', 'gtaskred', '', 0, 'Brian', 60, 0, 1, 1, 121, '', '', g)); | ||
g.AddTaskItem(new JSGantt.TaskItem(123, 'Task by Minute/Hour', '2019-08-20', '2020-03-06 12:00', 'gtaskyellow', '', 0, 'Ilan', 60, 0, 1, 1, '', '', '', g)); | ||
g.AddTaskItem(new JSGantt.TaskItem(124, 'Task Functions', '2019-08-20', '2020-03-06', 'gtaskred', '', 0, 'Anyone', 60, 0, 1, 1, '123', 'This is a caption', null, g)); | ||
if (vDebug) { | ||
@@ -167,0 +167,0 @@ bd = new Date(); |
{ | ||
"name": "jsgantt-improved", | ||
"version": "2.5.3", | ||
"version": "2.5.4", | ||
"description": "jsgantt-improved", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
123858
5300630