Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsgantt-improved

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsgantt-improved - npm Package Compare versions

Comparing version 2.5.6 to 2.5.7

docs/fixes/bug277.json

29

dist/src/draw.js

@@ -222,9 +222,4 @@ "use strict";

draw_utils_1.newNode(vTmpRow_1, 'td', null, 'gtasklist', '\u00A0');
var vTmpCell = draw_utils_1.newNode(vTmpRow_1, 'td', null, 'gspanning gtaskname');
var vTmpCell = draw_utils_1.newNode(vTmpRow_1, 'td', null, 'gspanning gtaskname', null, null, null, null, this.getColumnOrder().length + 1);
vTmpCell.appendChild(this.drawSelector('top'));
this.getColumnOrder().forEach(function (column) {
if (_this[column] == 1 || column === 'vAdditionalHeaders') {
draw_columns_1.draw_list_headings(column, vTmpRow_1, _this.vAdditionalHeaders);
}
});
vTmpRow_1 = draw_utils_1.newNode(vTmpTBody, 'tr');

@@ -503,4 +498,2 @@ draw_utils_1.newNode(vTmpRow_1, 'td', null, 'gtasklist', '\u00A0');

var curTaskEnd = this.vTaskList[i].getEnd() ? this.vTaskList[i].getEnd() : this.vTaskList[i].getPlanEnd();
if ((curTaskEnd.getTime() - (curTaskEnd.getTimezoneOffset() * 60000)) % (86400000) == 0)
curTaskEnd = new Date(curTaskEnd.getFullYear(), curTaskEnd.getMonth(), curTaskEnd.getDate() + 1, curTaskEnd.getHours(), curTaskEnd.getMinutes(), curTaskEnd.getSeconds()); // add 1 day here to simplify calculations below
vTaskLeftPx = general_utils_1.getOffset(vMinDate, curTaskStart, vColWidth, this.vFormat, this.vShowWeekends);

@@ -512,4 +505,2 @@ vTaskRightPx = general_utils_1.getOffset(curTaskStart, curTaskEnd, vColWidth, this.vFormat, this.vShowWeekends);

if (curTaskPlanStart && curTaskPlanEnd) {
if ((curTaskPlanEnd.getTime() - (curTaskPlanEnd.getTimezoneOffset() * 60000)) % (86400000) == 0)
curTaskPlanEnd = new Date(curTaskPlanEnd.getFullYear(), curTaskPlanEnd.getMonth(), curTaskPlanEnd.getDate() + 1, curTaskPlanEnd.getHours(), curTaskPlanEnd.getMinutes(), curTaskPlanEnd.getSeconds()); // add 1 day here to simplify calculations below
vTaskPlanLeftPx = general_utils_1.getOffset(vMinDate, curTaskPlanStart, vColWidth, this.vFormat, this.vShowWeekends);

@@ -526,2 +517,4 @@ vTaskPlanRightPx = general_utils_1.getOffset(curTaskPlanStart, curTaskPlanEnd, vColWidth, this.vFormat, this.vShowWeekends);

var vCaptClass = null;
// set cell width only for first row because of table-layout:fixed
var taskCellWidth = i === 0 ? vColWidth : null;
if (this.vTaskList[i].getMile() && !vComb) {

@@ -531,3 +524,3 @@ vTmpRow_1 = draw_utils_1.newNode(vTmpTBody, 'tr', this.vDivId + 'childrow_' + vID, 'gmileitem gmile' + this.vFormat, null, null, null, ((this.vTaskList[i].getVisible() == 0) ? 'none' : null));

events_1.addThisRowListeners(this, this.vTaskList[i].getListChildRow(), vTmpRow_1);
vTmpCell = draw_utils_1.newNode(vTmpRow_1, 'td', null, 'gtaskcell');
vTmpCell = draw_utils_1.newNode(vTmpRow_1, 'td', null, 'gtaskcell', null, taskCellWidth);
vTmpDiv = draw_utils_1.newNode(vTmpCell, 'div', null, 'gtaskcelldiv', '\u00A0\u00A0');

@@ -549,7 +542,7 @@ vTmpDiv = draw_utils_1.newNode(vTmpDiv, 'div', this.vDivId + 'bardiv_' + vID, 'gtaskbarcontainer', null, 12, vTaskLeftPx + vTaskRightPx - 6);

for (j = 0; j < vNumCols - 1; j++) {
if (this.vFormat == 'day' && ((j % 7 == 4) || (j % 7 == 5)))
if (this.vShowWeekends !== false && this.vFormat == 'day' && ((j % 7 == 4) || (j % 7 == 5)))
vCellFormat = 'gtaskcellwkend';
else
vCellFormat = 'gtaskcell';
draw_utils_1.newNode(vTmpRow_1, 'td', null, vCellFormat, '\u00A0\u00A0');
draw_utils_1.newNode(vTmpRow_1, 'td', null, vCellFormat, '\u00A0\u00A0', taskCellWidth);
}

@@ -568,3 +561,3 @@ }

events_1.addThisRowListeners(this, this.vTaskList[i].getListChildRow(), vTmpRow_1);
vTmpCell = draw_utils_1.newNode(vTmpRow_1, 'td', null, 'gtaskcell');
vTmpCell = draw_utils_1.newNode(vTmpRow_1, 'td', null, 'gtaskcell', null, taskCellWidth);
vTmpDiv = draw_utils_1.newNode(vTmpCell, 'div', null, 'gtaskcelldiv', '\u00A0\u00A0');

@@ -586,7 +579,7 @@ this.vTaskList[i].setCellDiv(vTmpDiv);

for (j = 0; j < vNumCols - 1; j++) {
if (this.vFormat == 'day' && ((j % 7 == 4) || (j % 7 == 5)))
if (this.vShowWeekends !== false && this.vFormat == 'day' && ((j % 7 == 4) || (j % 7 == 5)))
vCellFormat = 'gtaskcellwkend';
else
vCellFormat = 'gtaskcell';
draw_utils_1.newNode(vTmpRow_1, 'td', null, vCellFormat, '\u00A0\u00A0');
draw_utils_1.newNode(vTmpRow_1, 'td', null, vCellFormat, '\u00A0\u00A0', taskCellWidth);
}

@@ -609,3 +602,3 @@ }

events_1.addThisRowListeners(this, this.vTaskList[i].getListChildRow(), vTmpRow_1);
vTmpCell = draw_utils_1.newNode(vTmpRow_1, 'td', null, 'gtaskcell');
vTmpCell = draw_utils_1.newNode(vTmpRow_1, 'td', null, 'gtaskcell', null, taskCellWidth);
vTmpDivCell = vTmpDiv = draw_utils_1.newNode(vTmpCell, 'div', null, 'gtaskcelldiv', '\u00A0\u00A0');

@@ -642,3 +635,3 @@ }

for (j = 0; j < vNumCols - 1; j++) {
if (this.vFormat == 'day' && ((j % 7 == 4) || (j % 7 == 5)))
if (this.vShowWeekends !== false && this.vFormat == 'day' && ((j % 7 == 4) || (j % 7 == 5)))
vCellFormat = 'gtaskcellwkend';

@@ -645,0 +638,0 @@ else

@@ -1020,2 +1020,76 @@ "use strict";

exports.hu = hu;
var ko = {
'format': '구분',
'hour': '시',
'day': '일',
'week': '주',
'month': '월',
'quarter': '분기',
'hours': '시',
'days': '일',
'weeks': '주',
'months': '월',
'quarters': '분기',
'hr': '시',
'dy': '일',
'wk': '주',
'mth': '월',
'qtr': '분기',
'hrs': '시',
'dys': '일',
'wks': '주',
'mths': '월',
'qtrs': '분기',
'resource': '이름',
'duration': '기간',
'comp': '% ',
'completion': '완료',
'startdate': '시작일자',
'planstartdate': '계획 시작일자',
'enddate': '종료일자',
'planenddate': '계획 종료일자',
'cost': '비용',
'moreinfo': '더 많은 정보',
'notes': '비고',
'january': '1월',
'february': '2월',
'march': '3월',
'april': '4월',
'maylong': '5월',
'june': '6월',
'july': '7월',
'august': '8월',
'september': '9월',
'october': '10월',
'november': '11월',
'december': '12월',
'jan': '1',
'feb': '2',
'mar': '3',
'apr': '4',
'may': '5',
'jun': '6',
'jul': '7',
'aug': '8',
'sep': '9',
'oct': '10',
'nov': '11',
'dec': '12',
'sunday': '일요일',
'monday': '월요일',
'tuesday': '화요일',
'wednesday': '수요일',
'thursday': '목요일',
'friday': '금요일',
'saturday': '토요일',
'sun': '일',
'mon': '월',
'tue': '화',
'wed': '수',
'thu': '목',
'fri': '금',
'sat': '토',
'tooltipLoading': '로딩중...'
};
exports.ko = ko;
//# sourceMappingURL=lang.js.map

@@ -157,2 +157,4 @@ let dataurl;

}
/*
// Add Custom tasks programatically
g.AddTaskItem(new JSGantt.TaskItem(1, 'Task Objects', '', '', 'ggroupblack', '', 0, 'Shlomy', 40, 1, 0, '', '', '', '', g));

@@ -163,5 +165,4 @@ 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(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) {

@@ -200,2 +201,8 @@ bd = new Date();

function print() {
const tasks = g.vTaskList.map(e=> ({ ...e.getAllData(), ...e.getDataObject() }));
console.log(tasks);
}
function editValue(list, task, event, cell, column) {

@@ -202,0 +209,0 @@ console.log(list, task, event, cell, column)

{
"name": "jsgantt-improved",
"version": "2.5.6",
"version": "2.5.7",
"description": "jsgantt-improved",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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 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 not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc