gantt-renderer 0.1.2 → 0.2.0
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/CHANGELOG.md +27 -0
- package/README.md +3 -2
- package/dist/index.d.mts +242 -39
- package/dist/index.mjs +790 -420
- package/dist/index.mjs.map +1 -1
- package/dist/styles/gantt.css +27 -2
- package/package.json +90 -91
package/dist/styles/gantt.css
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--gantt-row-height: 44px;
|
|
21
21
|
--gantt-bar-height: 28px;
|
|
22
22
|
--gantt-milestone-size: 20px;
|
|
23
|
-
--gantt-bg: #
|
|
23
|
+
--gantt-bg: #fff;
|
|
24
24
|
--gantt-header-bg: #f8f9fa;
|
|
25
25
|
--gantt-stripe: #fafbfc;
|
|
26
26
|
--gantt-border: #e9ecef;
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
/* Text */
|
|
51
51
|
--gantt-text: #212529;
|
|
52
52
|
--gantt-text-secondary: #868e96;
|
|
53
|
-
--gantt-bar-label-color: #
|
|
53
|
+
--gantt-bar-label-color: #fff;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/* ─── Root container framing ─────────────────────────────────────────────── */
|
|
@@ -204,6 +204,31 @@
|
|
|
204
204
|
background: var(--gantt-day-custom);
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
+
/* ─── Timeline header special-day indicators ────────────────────────────── */
|
|
208
|
+
.gantt-header-cell--weekend::after,
|
|
209
|
+
.gantt-header-cell--holiday::after,
|
|
210
|
+
.gantt-header-cell--custom::after {
|
|
211
|
+
content: "";
|
|
212
|
+
position: absolute;
|
|
213
|
+
top: 4px;
|
|
214
|
+
right: 4px;
|
|
215
|
+
width: 5px;
|
|
216
|
+
height: 5px;
|
|
217
|
+
border-radius: 50%;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.gantt-header-cell--weekend::after {
|
|
221
|
+
background: var(--gantt-day-weekend);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.gantt-header-cell--holiday::after {
|
|
225
|
+
background: var(--gantt-day-holiday);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.gantt-header-cell--custom::after {
|
|
229
|
+
background: var(--gantt-day-custom);
|
|
230
|
+
}
|
|
231
|
+
|
|
207
232
|
/* ─── Splitter handle ───────────────────────────────────────────────────── */
|
|
208
233
|
.gantt-splitter-handle {
|
|
209
234
|
transition: background 0.15s ease;
|
package/package.json
CHANGED
|
@@ -1,92 +1,91 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
2
|
+
"name": "gantt-renderer",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "A TypeScript Gantt chart renderer for precalculated project plans",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"chart",
|
|
7
|
+
"gantt",
|
|
8
|
+
"project",
|
|
9
|
+
"renderer",
|
|
10
|
+
"timeline"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://doberkofler.github.io/gantt-renderer/",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/doberkofler/gantt-renderer/issues"
|
|
15
|
+
},
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"author": "doberkofler",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/doberkofler/gantt-renderer.git"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"CHANGELOG.md"
|
|
25
|
+
],
|
|
26
|
+
"type": "module",
|
|
27
|
+
"main": "./dist/index.mjs",
|
|
28
|
+
"module": "./dist/index.mjs",
|
|
29
|
+
"types": "./dist/index.d.mts",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./dist/index.d.mts",
|
|
33
|
+
"import": "./dist/index.mjs",
|
|
34
|
+
"default": "./dist/index.mjs"
|
|
35
|
+
},
|
|
36
|
+
"./styles/gantt.css": "./dist/styles/gantt.css"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"debug": "4.4.3",
|
|
40
|
+
"zod": "4.4.3"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@commitlint/cli": "20.5.3",
|
|
44
|
+
"@commitlint/config-conventional": "20.5.3",
|
|
45
|
+
"@playwright/test": "1.59.1",
|
|
46
|
+
"@tsdown/css": "0.21.10",
|
|
47
|
+
"@types/debug": "4.1.13",
|
|
48
|
+
"@types/node": "25.6.0",
|
|
49
|
+
"@vitest/browser": "4.1.5",
|
|
50
|
+
"@vitest/browser-playwright": "4.1.5",
|
|
51
|
+
"@vitest/coverage-istanbul": "4.1.5",
|
|
52
|
+
"@vitest/coverage-v8": "4.1.5",
|
|
53
|
+
"conventional-changelog": "7.2.0",
|
|
54
|
+
"eslint-plugin-regexp": "3.1.0",
|
|
55
|
+
"husky": "9.1.7",
|
|
56
|
+
"oxfmt": "0.47.0",
|
|
57
|
+
"oxlint": "1.62.0",
|
|
58
|
+
"oxlint-tsgolint": "0.22.1",
|
|
59
|
+
"playwright": "1.59.1",
|
|
60
|
+
"release-it": "20.0.1",
|
|
61
|
+
"stylelint": "17.10.0",
|
|
62
|
+
"stylelint-config-standard": "40.0.0",
|
|
63
|
+
"tsdown": "0.21.10",
|
|
64
|
+
"typedoc": "0.28.19",
|
|
65
|
+
"typescript": "6.0.3",
|
|
66
|
+
"vite": "8.0.10",
|
|
67
|
+
"vitest": "4.1.5"
|
|
68
|
+
},
|
|
69
|
+
"scripts": {
|
|
70
|
+
"typecheck": "tsc --noEmit",
|
|
71
|
+
"lint": "oxlint",
|
|
72
|
+
"lint:css": "stylelint 'src/**/*.css'",
|
|
73
|
+
"lint:css:fix": "stylelint --fix 'src/**/*.css'",
|
|
74
|
+
"format": "oxfmt --write && stylelint --fix 'src/**/*.css'",
|
|
75
|
+
"format:check": "oxfmt --check",
|
|
76
|
+
"ci": "pnpm run typecheck && pnpm run lint && pnpm run lint:css && pnpm run format:check && pnpm run build:lib && pnpm run build && pnpm run docs:api && pnpm run test",
|
|
77
|
+
"test": "vitest run",
|
|
78
|
+
"test:build": "vitest run --config vitest.node.config.ts",
|
|
79
|
+
"release": "release-it",
|
|
80
|
+
"create-changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
|
81
|
+
"dev": "vite",
|
|
82
|
+
"build": "vite build",
|
|
83
|
+
"build:lib": "tsdown",
|
|
84
|
+
"build:demo": "vite build",
|
|
85
|
+
"docs:api": "typedoc",
|
|
86
|
+
"preview": "vite preview",
|
|
87
|
+
"test:ui": "vitest",
|
|
88
|
+
"integration-test": "playwright test",
|
|
89
|
+
"screenshot": "npx tsx scripts/screenshot.ts"
|
|
90
|
+
}
|
|
91
|
+
}
|