jsgantt-improved 2.8.4 → 2.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Documentation.md +5 -2
- package/README.md +24 -2
- package/dist/jsgantt.css +26 -22
- package/dist/jsgantt.js +1133 -1038
- package/dist/src/draw.js +226 -227
- package/dist/src/draw.js.map +1 -1
- package/dist/src/json.js +6 -1
- package/dist/src/json.js.map +1 -1
- package/dist/src/lang.js +948 -873
- package/dist/src/lang.js.map +1 -1
- package/dist/src/options.js +6 -0
- package/dist/src/options.js.map +1 -1
- package/dist/src/task.js +8 -3
- package/dist/src/task.js.map +1 -1
- package/dist/src/utils/general_utils.js +3 -2
- package/dist/src/utils/general_utils.js.map +1 -1
- package/dist/src/xml.js +6 -2
- package/dist/src/xml.js.map +1 -1
- package/docs/demo-plan-color.html +282 -0
- package/docs/demo.html +273 -275
- package/docs/fixes/data-plan-color.json +177 -0
- package/docs/index.js +266 -278
- package/docs/project.xml +1 -0
- package/package.json +49 -49
- package/src/jsgantt.css +26 -22
- package/tsconfig.json +26 -26
package/package.json
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "jsgantt-improved",
|
|
3
|
-
"version": "2.8.
|
|
4
|
-
"description": "jsgantt-improved",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "http-server",
|
|
8
|
-
"build": "tsc",
|
|
9
|
-
"watch:build": "onchange 'src/**' '*.*' -- npm run build",
|
|
10
|
-
"watch": "onchange 'src/**' '*.ts' -- npm run dist",
|
|
11
|
-
"watch:test": "onchange 'src/**/*.ts' '*.ts' 'e2e/**/*.ts' -- npm run test",
|
|
12
|
-
"test": "npm start & node node_modules/.bin/protractor protractor.conf.js",
|
|
13
|
-
"test-unit": "mocha -r ts-node/register test/**.ts",
|
|
14
|
-
"webdriver": "./node_modules/protractor/bin/webdriver-manager update",
|
|
15
|
-
"browserify": "browserify dist/index.js --standalone JSGantt > dist/jsgantt.js",
|
|
16
|
-
"dist": "npm run build && npm run browserify && cp src/jsgantt.css dist/ && echo 'DIST finished'",
|
|
17
|
-
"publishnpm": "npm run dist && npm publish",
|
|
18
|
-
"demo-full": "npm run dist && npm run start",
|
|
19
|
-
"e2e-prepare": "npm i -g webdriver-manager && webdriver-manager update && ./node_modules/protractor/node_modules/webdriver-manager/bin/webdriver-manager update"
|
|
20
|
-
},
|
|
21
|
-
"repository": {
|
|
22
|
-
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/jsGanttImproved/jsgantt-improved"
|
|
24
|
-
},
|
|
25
|
-
"author": "Mario Mol <mariohmol@gmail.com>, Eduardo Rodrigues, Ricardo Cardoso",
|
|
26
|
-
"license": "ISC",
|
|
27
|
-
"bugs": {
|
|
28
|
-
"url": "https://github.com/jsGanttImproved/jsgantt-improved/issues"
|
|
29
|
-
},
|
|
30
|
-
"homepage": "https://jsganttimproved.github.io/jsgantt-improved/docs/",
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"@types/node": "^12.0.10",
|
|
33
|
-
"webdriver-manager": "^
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@types/chai": "^4.1.5",
|
|
37
|
-
"@types/jasmine": "^3.3.0",
|
|
38
|
-
"chai": "^4.1.2",
|
|
39
|
-
"http-server": "^0.11.1",
|
|
40
|
-
"jasmine": "^3.3.0",
|
|
41
|
-
"jasmine-core": "^3.3.0",
|
|
42
|
-
"jasmine-spec-reporter": "^4.2.1",
|
|
43
|
-
"mocha": "^5.2.0",
|
|
44
|
-
"protractor": "^5.4.1",
|
|
45
|
-
"selenium-webdriver": "^4.0.0-alpha.1",
|
|
46
|
-
"ts-node": "^7.0.1",
|
|
47
|
-
"typescript": "^3.0.3"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "jsgantt-improved",
|
|
3
|
+
"version": "2.8.6",
|
|
4
|
+
"description": "jsgantt-improved",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "http-server",
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"watch:build": "onchange 'src/**' '*.*' -- npm run build",
|
|
10
|
+
"watch": "onchange 'src/**' '*.ts' -- npm run dist",
|
|
11
|
+
"watch:test": "onchange 'src/**/*.ts' '*.ts' 'e2e/**/*.ts' -- npm run test",
|
|
12
|
+
"test": "npm start & node node_modules/.bin/protractor protractor.conf.js",
|
|
13
|
+
"test-unit": "mocha -r ts-node/register test/**.ts",
|
|
14
|
+
"webdriver": "./node_modules/protractor/bin/webdriver-manager update",
|
|
15
|
+
"browserify": "browserify dist/index.js --standalone JSGantt > dist/jsgantt.js",
|
|
16
|
+
"dist": "npm run build && npm run browserify && cp src/jsgantt.css dist/ && echo 'DIST finished'",
|
|
17
|
+
"publishnpm": "npm run dist && npm publish",
|
|
18
|
+
"demo-full": "npm run dist && npm run start",
|
|
19
|
+
"e2e-prepare": "npm i -g webdriver-manager && webdriver-manager update && ./node_modules/protractor/node_modules/webdriver-manager/bin/webdriver-manager update"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/jsGanttImproved/jsgantt-improved"
|
|
24
|
+
},
|
|
25
|
+
"author": "Mario Mol <mariohmol@gmail.com>, Eduardo Rodrigues, Ricardo Cardoso",
|
|
26
|
+
"license": "ISC",
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/jsGanttImproved/jsgantt-improved/issues"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://jsganttimproved.github.io/jsgantt-improved/docs/",
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@types/node": "^12.0.10",
|
|
33
|
+
"webdriver-manager": "^13.0.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/chai": "^4.1.5",
|
|
37
|
+
"@types/jasmine": "^3.3.0",
|
|
38
|
+
"chai": "^4.1.2",
|
|
39
|
+
"http-server": "^0.11.1",
|
|
40
|
+
"jasmine": "^3.3.0",
|
|
41
|
+
"jasmine-core": "^3.3.0",
|
|
42
|
+
"jasmine-spec-reporter": "^4.2.1",
|
|
43
|
+
"mocha": "^5.2.0",
|
|
44
|
+
"protractor": "^5.4.1",
|
|
45
|
+
"selenium-webdriver": "^4.0.0-alpha.1",
|
|
46
|
+
"ts-node": "^7.0.1",
|
|
47
|
+
"typescript": "^3.0.3"
|
|
48
|
+
}
|
|
49
|
+
}
|
package/src/jsgantt.css
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
div.gantt {
|
|
4
4
|
font-family: tahoma, arial, verdana, Sans-serif;
|
|
5
|
-
font-size:
|
|
5
|
+
font-size: 12px;
|
|
6
6
|
color: #656565;
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -31,10 +31,9 @@ div.gantt {
|
|
|
31
31
|
font-size: 12px;
|
|
32
32
|
border: #efefef 1px solid;
|
|
33
33
|
text-align: center;
|
|
34
|
-
cursor: default
|
|
34
|
+
cursor: default;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
|
|
38
37
|
.gtasklist {
|
|
39
38
|
height: 19px;
|
|
40
39
|
min-width: 5px;
|
|
@@ -44,7 +43,7 @@ div.gantt {
|
|
|
44
43
|
border-right: none;
|
|
45
44
|
}
|
|
46
45
|
|
|
47
|
-
.gtasknolist-label{
|
|
46
|
+
.gtasknolist-label {
|
|
48
47
|
padding: 10px 50px;
|
|
49
48
|
}
|
|
50
49
|
/* all three width values set just to make sure - helps resizing code */
|
|
@@ -56,7 +55,7 @@ div.gantt {
|
|
|
56
55
|
.gminorheading {
|
|
57
56
|
background-color: #ffffff;
|
|
58
57
|
font-weight: bold;
|
|
59
|
-
font-size:
|
|
58
|
+
font-size: 11px;
|
|
60
59
|
white-space: nowrap;
|
|
61
60
|
}
|
|
62
61
|
|
|
@@ -154,9 +153,9 @@ td.gspanning {
|
|
|
154
153
|
|
|
155
154
|
.gtaskname {
|
|
156
155
|
min-width: 170px;
|
|
157
|
-
max-width:
|
|
158
|
-
width:
|
|
159
|
-
font-size:
|
|
156
|
+
max-width: 220px;
|
|
157
|
+
width: 220px;
|
|
158
|
+
font-size: 12px;
|
|
160
159
|
border-left: none;
|
|
161
160
|
}
|
|
162
161
|
|
|
@@ -246,6 +245,11 @@ span.gfoldercollapse {
|
|
|
246
245
|
background-color: #fffde5;
|
|
247
246
|
}
|
|
248
247
|
|
|
248
|
+
.gitemdifferent td {
|
|
249
|
+
background-image: none;
|
|
250
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
251
|
+
}
|
|
252
|
+
|
|
249
253
|
/* task bar caption text styles */
|
|
250
254
|
|
|
251
255
|
.gmilecaption,
|
|
@@ -487,7 +491,7 @@ span.gfoldercollapse {
|
|
|
487
491
|
div.gtaskbarcontainer {
|
|
488
492
|
z-index: 1;
|
|
489
493
|
position: absolute;
|
|
490
|
-
top: 0px
|
|
494
|
+
top: 0px;
|
|
491
495
|
}
|
|
492
496
|
|
|
493
497
|
.textbar {
|
|
@@ -510,7 +514,7 @@ div.gtaskbarcontainer {
|
|
|
510
514
|
font-size: 10px;
|
|
511
515
|
display: block;
|
|
512
516
|
background: #ffffff;
|
|
513
|
-
color: #656565
|
|
517
|
+
color: #656565;
|
|
514
518
|
}
|
|
515
519
|
|
|
516
520
|
.gTaskInfo {
|
|
@@ -652,7 +656,7 @@ div.gtaskbarcontainer {
|
|
|
652
656
|
/* Old Internet Explorer version hacks */
|
|
653
657
|
|
|
654
658
|
.gantt {
|
|
655
|
-
_height: 100
|
|
659
|
+
_height: 100%;
|
|
656
660
|
}
|
|
657
661
|
|
|
658
662
|
/* otherwise the chart disappears! */
|
|
@@ -777,7 +781,6 @@ td.gspanning div {
|
|
|
777
781
|
}
|
|
778
782
|
|
|
779
783
|
@media print {
|
|
780
|
-
|
|
781
784
|
/* All your print styles go here */
|
|
782
785
|
html,
|
|
783
786
|
.gchartgrid {
|
|
@@ -795,8 +798,8 @@ td.gspanning div {
|
|
|
795
798
|
|
|
796
799
|
/* Hide scrollbar for IE, Edge and Firefox */
|
|
797
800
|
.gchartcontainer * {
|
|
798
|
-
-ms-overflow-style: none;
|
|
799
|
-
scrollbar-width: none;
|
|
801
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
802
|
+
scrollbar-width: none; /* Firefox */
|
|
800
803
|
}
|
|
801
804
|
|
|
802
805
|
/* Hide tool-tip */
|
|
@@ -849,7 +852,8 @@ td.gspanning div {
|
|
|
849
852
|
|
|
850
853
|
.gmainleft {
|
|
851
854
|
overflow: hidden;
|
|
852
|
-
flex: 0 0
|
|
855
|
+
flex: 0 0 20%;
|
|
856
|
+
min-width: 220px;
|
|
853
857
|
/* Allow side to grow and shrink */
|
|
854
858
|
flex: 1 0 auto;
|
|
855
859
|
}
|
|
@@ -957,25 +961,25 @@ td.gspanning div {
|
|
|
957
961
|
}
|
|
958
962
|
|
|
959
963
|
table {
|
|
960
|
-
page-break-after: auto
|
|
964
|
+
page-break-after: auto;
|
|
961
965
|
}
|
|
962
966
|
|
|
963
967
|
tr {
|
|
964
968
|
page-break-inside: avoid;
|
|
965
|
-
page-break-after: auto
|
|
969
|
+
page-break-after: auto;
|
|
966
970
|
}
|
|
967
971
|
|
|
968
972
|
td {
|
|
969
973
|
page-break-inside: avoid;
|
|
970
|
-
page-break-after: auto
|
|
974
|
+
page-break-after: auto;
|
|
971
975
|
}
|
|
972
976
|
|
|
973
977
|
thead {
|
|
974
|
-
display: table-header-group
|
|
978
|
+
display: table-header-group;
|
|
975
979
|
}
|
|
976
980
|
|
|
977
981
|
tfoot {
|
|
978
|
-
display: table-footer-group
|
|
982
|
+
display: table-footer-group;
|
|
979
983
|
}
|
|
980
984
|
}
|
|
981
985
|
|
|
@@ -996,7 +1000,7 @@ td.gspanning div {
|
|
|
996
1000
|
border-radius: 8px;
|
|
997
1001
|
border: 2px solid white;
|
|
998
1002
|
/* should match background, can't be transparent */
|
|
999
|
-
background-color: rgba(0, 0, 0, .5);
|
|
1003
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
1000
1004
|
}
|
|
1001
1005
|
|
|
1002
1006
|
.frame::-webkit-scrollbar-track {
|
|
@@ -1009,4 +1013,4 @@ td.gspanning div {
|
|
|
1009
1013
|
overflow: scroll;
|
|
1010
1014
|
-ms-overflow-style: scrollbar;
|
|
1011
1015
|
display: block;
|
|
1012
|
-
}
|
|
1016
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compileOnSave": false,
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "./dist",
|
|
5
|
-
"baseUrl": "src",
|
|
6
|
-
"sourceMap": true,
|
|
7
|
-
"declaration": false,
|
|
8
|
-
"moduleResolution": "node",
|
|
9
|
-
"emitDecoratorMetadata": true,
|
|
10
|
-
"experimentalDecorators": true,
|
|
11
|
-
"target": "es5",
|
|
12
|
-
"typeRoots": [
|
|
13
|
-
"node_modules/@types"
|
|
14
|
-
],
|
|
15
|
-
"lib": [
|
|
16
|
-
"es2016",
|
|
17
|
-
"dom"
|
|
18
|
-
],
|
|
19
|
-
"paths": {
|
|
20
|
-
"jsgantt-improved": [ "dist/jsgantt-improved" ]
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"exclude": [
|
|
24
|
-
".ng_build"
|
|
25
|
-
]
|
|
26
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compileOnSave": false,
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "./dist",
|
|
5
|
+
"baseUrl": "src",
|
|
6
|
+
"sourceMap": true,
|
|
7
|
+
"declaration": false,
|
|
8
|
+
"moduleResolution": "node",
|
|
9
|
+
"emitDecoratorMetadata": true,
|
|
10
|
+
"experimentalDecorators": true,
|
|
11
|
+
"target": "es5",
|
|
12
|
+
"typeRoots": [
|
|
13
|
+
"node_modules/@types"
|
|
14
|
+
],
|
|
15
|
+
"lib": [
|
|
16
|
+
"es2016",
|
|
17
|
+
"dom"
|
|
18
|
+
],
|
|
19
|
+
"paths": {
|
|
20
|
+
"jsgantt-improved": [ "dist/jsgantt-improved" ]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"exclude": [
|
|
24
|
+
".ng_build"
|
|
25
|
+
]
|
|
26
|
+
}
|