Skip to content

Commit

Permalink
first build deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
mariohmol committed Nov 20, 2018
1 parent 6cee649 commit 16b551c
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 38 deletions.
4 changes: 2 additions & 2 deletions ng-gantt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-gantt",
"version": "1.6.2",
"version": "1.8.6",
"license": "MIT",
"homepage": "https://github.com/mariohmol/ng-gantt",
"repository": {
Expand All @@ -18,7 +18,7 @@
"peerDependencies": {
"@angular/core": ">=6.0.0-rc.5",
"@angular/common": ">=6.0.0-rc.5",
"jsoneditor": "^5.19.0"
"jsgantt-improved": "^1.8.6"
},
"ngPackage": {
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
Expand Down
25 changes: 7 additions & 18 deletions ng-gantt/src/gantt/gantt.component.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import {
Component, ElementRef, Input, OnInit, ViewChild
} from '@angular/core';
// import JSGantt = require('jsgantt-improved');
import {JSGantt} from 'jsgantt-improved';
import { JSGantt } from 'jsgantt-improved';
console.log(JSGantt);
@Component({
// tslint:disable-next-line:component-selector
Expand All @@ -17,7 +16,7 @@ export class GanttEditorComponent implements OnInit {

@ViewChild('ganttEditorContainer') ganttEditorContainer: ElementRef;

private _data: Object = {};
private _data;

@Input() options: GanttEditorOptions = new GanttEditorOptions();
@Input('data')
Expand Down Expand Up @@ -45,10 +44,6 @@ export class GanttEditorComponent implements OnInit {

// JSGantt.parseJSON('./fixes/data.json', g);

// SET LANG FROM INPUT
// lang = e && e.target ? e.target.value : 'pt';
// delay = document.getElementById('delay').value;

g.setOptions({
vCaptionType: 'Complete', // Set to Show Caption : None,Caption,Resource,Duration,Complete,
vQuarterColWidth: 36,
Expand All @@ -57,13 +52,15 @@ export class GanttEditorComponent implements OnInit {
vWeekMinorDateDisplayFormat: 'dd mon', // Set format to display dates in the "Minor" header of the "Week" view
vShowTaskInfoLink: 1, // Show link in tool tip (0/1)
vShowEndWeekDate: 0, // Show/Hide the date for the last day of the week in header for
// daily view (1/0)
// Set the threshold at which we will only use one cell per table row (0 disables).
// Helps with rendering performance for large charts.
vUseSingleCell: 10000,
// Even with setUseSingleCell using Hour format on such a large chart can cause issues in some browsers
vFormatArr: ['Day', 'Week', 'Month', 'Quarter'],
});
if (this._data) {
this._data.forEach(row => {
g.AddItemObject(row);
})
}
g.Draw();
}
}
Expand All @@ -86,14 +83,6 @@ export class GanttEditorComponent implements OnInit {
}
}

export type GanttEditorMode = 'tree' | 'view' | 'form' | 'code' | 'text';

export interface GanttEditorTreeNode {
field: String,
value: String,
path: String[]
}

export class GanttEditorOptions {

// public onEditable: (node: GanttEditorTreeNode | {}) => boolean | { field: boolean, value: boolean };
Expand Down
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"commitMessage": "{{semanticPrefix}}update {{depName}} to version {{newVersion}}",
"packageFiles": [
"package.json",
"ang-jsoneditor/package.json"
"ng-gantt/package.json"
],
"packages": [
{
Expand Down
4 changes: 2 additions & 2 deletions src/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../tsconfig.json",
"angularCompilerOptions": {
"paths": {
"ang-jsoneditor": [ "../ang-jsoneditor/src/public_api.ts" ]
"ng-gantt": [ "../ng-gantt/src/public_api.ts" ]
}
},
"compilerOptions": {
Expand All @@ -11,7 +11,7 @@
"baseUrl": "",
"types": [],
"paths": {
"ang-jsoneditor": [ "../ang-jsoneditor/src/public_api.ts" ]
"ng-gantt": [ "../ng-gantt/src/public_api.ts" ]
}
},
"exclude": [
Expand Down
4 changes: 2 additions & 2 deletions src/tsconfig.packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../tsconfig.json",
"angularCompilerOptions": {
"paths": {
"ang-jsoneditor": [ "../dist/ang-jsoneditor" ]
"ng-gantt": [ "../dist/ng-gantt" ]
}
},
"compilerOptions": {
Expand All @@ -11,7 +11,7 @@
"baseUrl": "",
"types": [],
"paths": {
"ang-jsoneditor": [ "../dist/ang-jsoneditor" ]
"ng-gantt": [ "../dist/ng-gantt" ]
}
},
"exclude": [
Expand Down
2 changes: 1 addition & 1 deletion src/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"node"
],
"paths": {
"ang-jsoneditor": [ "../ang-jsoneditor/src/public_api.ts" ]
"ng-gantt": [ "../ng-gantt/src/public_api.ts" ]
}
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"dom"
],
"paths": {
"ang-jsoneditor": [ "dist/ng-gantt" ]
"ng-gantt": [ "dist/ng-gantt" ]
}
},
"exclude": [
Expand Down
11 changes: 0 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4092,17 +4092,6 @@ json5@^0.5.0:
version "0.5.1"
resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821"

jsoneditor@^5.19.0:
version "5.19.0"
resolved "https://registry.yarnpkg.com/jsoneditor/-/jsoneditor-5.19.0.tgz#89fc651873e2c25888d8c034059f8a1eb4a4cde9"
dependencies:
ajv "5.5.2"
brace "0.11.0"
javascript-natural-sort "0.7.1"
jmespath "0.15.0"
mobius1-selectr "2.4.1"
picomodal "3.0.0"

jsonfile@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
Expand Down

0 comments on commit 16b551c

Please sign in to comment.