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.0.9 to 2.0.10

7

dist/src/task.js

@@ -162,2 +162,3 @@ "use strict";

var vDataObject = pDataObject;
var vCompVal;
var parent = document.createTextNode(pParent).data;

@@ -290,2 +291,4 @@ if (parent && parent !== '0') {

return vComp;
else if (vCompVal)
return vCompVal;
else

@@ -295,2 +298,4 @@ return 0; };

return vComp + '%';
else if (vCompVal)
return vCompVal + '%';
else

@@ -402,3 +407,3 @@ return ''; };

this.setWeight = function (pWeight) { vWeight = parseInt(document.createTextNode(pWeight).data); };
this.setCompVal = function (pCompVal) { vComp = parseFloat(document.createTextNode(pCompVal).data); };
this.setCompVal = function (pCompVal) { vCompVal = parseFloat(document.createTextNode(pCompVal).data); };
this.setCost = function (pCost) {

@@ -405,0 +410,0 @@ vComp = parseInt(document.createTextNode(pCost).data);

1

dist/src/utils.js

@@ -228,3 +228,2 @@ "use strict";

exports.parseDateFormatStr = function (pFormatStr) {
var vDateStr = '';
var vComponantStr = '';

@@ -231,0 +230,0 @@ var vCurrChar = '';

@@ -263,3 +263,3 @@ [

"pRes": "Anybody",
"pComp": 60,
"pComp": 67,
"pGroup": 1,

@@ -266,0 +266,0 @@ "pParent": 3,

@@ -65,3 +65,3 @@ let dataurl;

vShowPlanStartDate,
vShowPlanStartDate,
vShowPlanEndDate,
vAdditionalHeaders,

@@ -68,0 +68,0 @@ vEvents: {

@@ -195,2 +195,20 @@

### XML Export ###
The following methods can be used to extract details of tasks in the project in XML format
Method definition: **getXMLProject()**
Returns a string containing the entire project in JSGantt Improved XML format. Dates will be exported in the currently defined input format as set by setDateInputFormat().
Method definition: **getXMLTask(_pID_, _pIdx_)**
| Parameter | Description |
|:--------|:------------------------------------------------|
| _pID:_ | (required) the numeric ID that identifies the task to extract |
| _pIdx:_ | (optional) Boolean - if present and set to "true" the number passed in the pID parameter is treated as an array index for the task list rather than an ID |
Returns a string containing the specified task item in JSGantt Improved XML format. Dates will be exported in the currently defined input format as set by setDateInputFormat().
## Call Draw() ##

@@ -486,18 +504,1 @@ ```javascript

```
# XML Export #
The following methods can be used to extract details of tasks in the project in XML format
Method definition: **getXMLProject()**
Returns a string containing the entire project in JSGantt Improved XML format. Dates will be exported in the currently defined input format as set by setDateInputFormat().
Method definition: **getXMLTask(_pID_, _pIdx_)**
| Parameter | Description |
|:--------|:------------------------------------------------|
| _pID:_ | (required) the numeric ID that identifies the task to extract |
| _pIdx:_ | (optional) Boolean - if present and set to "true" the number passed in the pID parameter is treated as an array index for the task list rather than an ID |
Returns a string containing the specified task item in JSGantt Improved XML format. Dates will be exported in the currently defined input format as set by setDateInputFormat().
{
"name": "jsgantt-improved",
"version": "2.0.9",
"version": "2.0.10",
"description": "jsgantt-improved",

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

@@ -18,7 +18,11 @@ [![Build Status](https://travis-ci.com/jsGanttImproved/jsgantt-improved.svg?branch=master)](https://travis-ci.com/jsGanttImproved/jsgantt-improved)

For **Angular** use the component [ng-gantt](https://github.com/mariohmol/ng-gantt)
For **Angular** use the component [ng-gantt](https://github.com/jsGanttImproved/ng-gantt)
For **React** use the component [react-jsgantt](https://github.com/jsGanttImproved/react-jsgantt)
For **Vue** , see this example: https://stackblitz.com/edit/vue-jsgantt
## Example

@@ -108,3 +112,4 @@

* Tasks & Collapsible Task Groups
* Dependencies
* Dependencies and Highlight when hover a task
* Edit data in gantt table with list of responsible
* Task Completion

@@ -146,8 +151,4 @@ * Table with Additional Columns

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="S7B43P63C5QEN" />
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
<img alt="" border="0" src="https://www.paypal.com/en_BR/i/scr/pixel.gif" width="1" height="1" />
</form>
[![](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=S7B43P63C5QEN)

@@ -179,2 +179,3 @@ import { parseDateStr, isIE, stripUnwanted, getOffset, formatDateStr, hashKey } from "./utils";

let vDataObject = pDataObject;
let vCompVal;

@@ -299,8 +300,7 @@ let parent = document.createTextNode(pParent).data;

this.getDataObject = function () { return vDataObject; };
this.getDepType = function () { if (vDependType) return vDependType; else return null; };
this.getCaption = function () { if (vCaption) return vCaption; else return ''; };
this.getResource = function () { if (vRes) return vRes; else return '\u00A0'; };
this.getCompVal = function () { if (vComp) return vComp; else return 0; };
this.getCompStr = function () { if (vComp) return vComp + '%'; else return ''; };
this.getCompVal = function () { if (vComp) return vComp; else if(vCompVal) return vCompVal; else return 0; };
this.getCompStr = function () { if (vComp) return vComp + '%'; else if (vCompVal) return vCompVal + '%'; else return ''; };
this.getNotes = function () { return vNotes; };

@@ -383,3 +383,3 @@ this.getSortIdx = function () { return vSortIdx; };

this.setWeight = function (pWeight) { vWeight = parseInt(document.createTextNode(pWeight).data); };
this.setCompVal = function (pCompVal) { vComp = parseFloat(document.createTextNode(pCompVal).data); };
this.setCompVal = function (pCompVal) { vCompVal = parseFloat(document.createTextNode(pCompVal).data); };
this.setCost = function (pCost) {

@@ -386,0 +386,0 @@ vComp = parseInt(document.createTextNode(pCost).data);

@@ -217,3 +217,2 @@

export const parseDateFormatStr = function (pFormatStr) {
let vDateStr = '';
let vComponantStr = '';

@@ -220,0 +219,0 @@ let vCurrChar = '';

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 too big to display

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