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.
@@ -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: #ffffff;
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: #ffffff;
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
- "name": "gantt-renderer",
3
- "version": "0.1.2",
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
- "scripts": {
39
- "typecheck": "tsc --noEmit",
40
- "lint": "oxlint",
41
- "lint:css": "stylelint 'src/**/*.css'",
42
- "lint:css:fix": "stylelint --fix 'src/**/*.css'",
43
- "format": "oxfmt --write && stylelint --fix 'src/**/*.css'",
44
- "format:check": "oxfmt --check",
45
- "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",
46
- "test": "vitest run",
47
- "test:build": "vitest run --config vitest.node.config.ts",
48
- "release": "release-it",
49
- "create-changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
50
- "prepare": "husky",
51
- "dev": "vite",
52
- "build": "vite build",
53
- "build:lib": "tsdown",
54
- "build:demo": "vite build",
55
- "docs:api": "typedoc",
56
- "preview": "vite preview",
57
- "test:ui": "vitest",
58
- "integration-test": "playwright test",
59
- "screenshot": "npx tsx scripts/screenshot.ts"
60
- },
61
- "dependencies": {
62
- "debug": "4.4.3",
63
- "zod": "4.4.3"
64
- },
65
- "devDependencies": {
66
- "@commitlint/cli": "20.5.3",
67
- "@commitlint/config-conventional": "20.5.3",
68
- "@playwright/test": "1.59.1",
69
- "@tsdown/css": "0.21.10",
70
- "@types/debug": "4.1.13",
71
- "@types/node": "25.6.0",
72
- "@vitest/browser": "4.1.5",
73
- "@vitest/browser-playwright": "4.1.5",
74
- "@vitest/coverage-istanbul": "4.1.5",
75
- "@vitest/coverage-v8": "4.1.5",
76
- "conventional-changelog": "7.2.0",
77
- "eslint-plugin-regexp": "3.1.0",
78
- "husky": "9.1.7",
79
- "oxfmt": "0.47.0",
80
- "oxlint": "1.62.0",
81
- "oxlint-tsgolint": "0.22.1",
82
- "playwright": "1.59.1",
83
- "release-it": "20.0.1",
84
- "stylelint": "17.10.0",
85
- "stylelint-config-standard": "40.0.0",
86
- "tsdown": "0.21.10",
87
- "typedoc": "0.28.19",
88
- "typescript": "6.0.3",
89
- "vite": "8.0.10",
90
- "vitest": "4.1.5"
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
+ }