@hpcc-js/timeline 2.56.0 → 2.57.1

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.
Files changed (44) hide show
  1. package/LICENSE +43 -43
  2. package/README.md +91 -91
  3. package/dist/index.es6.js +1625 -0
  4. package/dist/index.es6.js.map +1 -0
  5. package/dist/index.js +1626 -1201
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.min.js +2 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/package.json +38 -36
  10. package/src/MiniGantt.css +30 -30
  11. package/src/MiniGantt.ts +611 -612
  12. package/src/ReactAxisGantt.ts +279 -286
  13. package/src/ReactAxisGanttSeries.ts +265 -265
  14. package/src/ReactGantt.ts +696 -700
  15. package/src/ReactTimeline.ts +115 -126
  16. package/src/ReactTimelineSeries.ts +113 -124
  17. package/src/__package__.ts +3 -3
  18. package/src/index.ts +7 -7
  19. package/types/MiniGantt.d.ts +5 -4
  20. package/types/MiniGantt.d.ts.map +1 -0
  21. package/types/ReactAxisGantt.d.ts +2 -2
  22. package/types/ReactAxisGantt.d.ts.map +1 -0
  23. package/types/ReactAxisGanttSeries.d.ts +3 -2
  24. package/types/ReactAxisGanttSeries.d.ts.map +1 -0
  25. package/types/ReactGantt.d.ts +1 -1
  26. package/types/ReactGantt.d.ts.map +1 -0
  27. package/types/ReactTimeline.d.ts +3 -2
  28. package/types/ReactTimeline.d.ts.map +1 -0
  29. package/types/ReactTimelineSeries.d.ts +2 -1
  30. package/types/ReactTimelineSeries.d.ts.map +1 -0
  31. package/types/__package__.d.ts +3 -2
  32. package/types/__package__.d.ts.map +1 -0
  33. package/types/index.d.ts +8 -7
  34. package/types/index.d.ts.map +1 -0
  35. package/types-3.4/MiniGantt.d.ts +106 -0
  36. package/types-3.4/ReactAxisGantt.d.ts +83 -0
  37. package/types-3.4/ReactAxisGanttSeries.d.ts +82 -0
  38. package/types-3.4/ReactGantt.d.ts +135 -0
  39. package/types-3.4/ReactTimeline.d.ts +18 -0
  40. package/types-3.4/ReactTimelineSeries.d.ts +18 -0
  41. package/types-3.4/__package__.d.ts +4 -0
  42. package/types-3.4/index.d.ts +8 -0
  43. package/dist/index.umd.cjs +0 -2
  44. package/dist/index.umd.cjs.map +0 -1
package/package.json CHANGED
@@ -1,56 +1,58 @@
1
1
  {
2
2
  "name": "@hpcc-js/timeline",
3
- "version": "2.56.0",
3
+ "version": "2.57.1",
4
4
  "description": "hpcc-js - Viz Timeline",
5
- "type": "module",
6
- "main": "./dist/index.umd.cjs",
7
- "module": "./dist/index.js",
8
- "exports": {
9
- ".": {
10
- "types": "./types/index.d.ts",
11
- "import": "./dist/index.js",
12
- "require": "./dist/index.umd.cjs"
13
- },
14
- "./dist/*": "./dist/*"
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.es6",
7
+ "unpkg": "dist/index.min.js",
8
+ "jsdelivr": "dist/index.min.js",
9
+ "types": "types/index.d.ts",
10
+ "typesVersions": {
11
+ "<3.8": {
12
+ "*": [
13
+ "types-3.4/index.d.ts"
14
+ ]
15
+ }
15
16
  },
16
- "browser": "./dist/index.umd.cjs",
17
- "types": "./types/index.d.ts",
18
17
  "files": [
19
18
  "dist/*",
20
- "src/*",
21
- "types/*"
19
+ "types/*",
20
+ "types-3.4/*",
21
+ "src/*"
22
22
  ],
23
23
  "scripts": {
24
- "clean": "rimraf --glob lib* types dist *.tsbuildinfo .turbo",
25
- "bundle": "vite build",
26
- "bundle-watch": "vite --port 5518",
27
- "gen-types": "tsc --project tsconfig.json",
28
- "gen-types-watch": "npm run gen-types -- --watch",
29
- "build": "run-p gen-types bundle",
24
+ "clean": "rimraf --glob lib* types dist *.tsbuildinfo",
25
+ "compile-es6": "tsc --module es6 --outDir ./lib-es6",
26
+ "compile-es6-watch": "npm run compile-es6 -- -w",
27
+ "compile-umd": "tsc --module umd --outDir ./lib-umd",
28
+ "compile-umd-watch": "npm run compile-umd -- -w",
29
+ "bundle": "rollup -c",
30
+ "bundle-watch": "npm run bundle -- -w",
31
+ "minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
32
+ "gen-legacy-types": "downlevel-dts ./types ./types-3.4",
33
+ "build": "npm run compile-es6 && npm run bundle",
34
+ "watch": "npm-run-all compile-es6 -p compile-es6-watch bundle-watch",
35
+ "stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js",
30
36
  "lint": "eslint ./src",
31
- "lint-fix": "eslint --fix src/**/*.ts",
32
37
  "docs": "typedoc --options tdoptions.json .",
33
- "test-browser": "vitest run --project browser",
34
- "test": "vitest run",
35
- "coverage": "vitest run --coverage",
36
- "update": "npx --yes npm-check-updates -u -t minor",
37
- "update-major": "npx --yes npm-check-updates -u"
38
+ "update": "npx --yes npm-check-updates -u -t minor"
38
39
  },
39
40
  "dependencies": {
40
- "@hpcc-js/api": "^3.3.12",
41
- "@hpcc-js/chart": "^3.4.2",
42
- "@hpcc-js/common": "^3.4.2",
43
- "@hpcc-js/html": "^3.2.13",
44
- "@hpcc-js/layout": "^3.3.0",
45
- "@hpcc-js/react": "^3.3.2"
41
+ "@hpcc-js/api": "^2.14.3",
42
+ "@hpcc-js/chart": "^2.86.3",
43
+ "@hpcc-js/common": "^2.73.3",
44
+ "@hpcc-js/html": "^2.44.3",
45
+ "@hpcc-js/layout": "^2.51.3",
46
+ "@hpcc-js/react": "^2.55.3"
46
47
  },
47
48
  "devDependencies": {
48
- "@hpcc-js/esbuild-plugins": "^1.5.2",
49
+ "@hpcc-js/bundle": "^2.12.0",
49
50
  "d3-array": "^1",
50
51
  "d3-scale": "^1",
51
52
  "d3-selection": "^1",
52
53
  "d3-time-format": "^2",
53
- "d3-zoom": "^1"
54
+ "d3-zoom": "^1",
55
+ "tslib": "2.8.1"
54
56
  },
55
57
  "repository": {
56
58
  "type": "git",
@@ -63,5 +65,5 @@
63
65
  "url": "https://github.com/hpcc-systems/Visualization/issues"
64
66
  },
65
67
  "homepage": "https://github.com/hpcc-systems/Visualization",
66
- "gitHead": "a35882216a554b24a2586f30ce829d511941aecd"
68
+ "gitHead": "0907b8d15d369c89483954a1d96e2247ba020cb6"
67
69
  }
package/src/MiniGantt.css CHANGED
@@ -1,31 +1,31 @@
1
- .timeline_MiniGantt .line {
2
- fill: none;
3
- stroke: lightgrey;
4
- opacity: 0.7;
5
- }
6
-
7
- .timeline_MiniGantt .common_TextBox .rect {
8
- fill: lightskyblue;
9
- stroke: blue;
10
- opacity: 0.5;
11
- }
12
-
13
- .timeline_MiniGantt .buckets .entity_shape rect {
14
- stroke: #333;
15
- }
16
-
17
- .timeline_MiniGantt .buckets.selected .common_EntityRect .common_Shape > rect {
18
- stroke: red;
19
- }
20
-
21
- .timeline_MiniGantt .common_TextBox .rect text {
22
- fill: black;
23
- stroke: none;
24
- }
25
- .timeline_MiniGantt .over {
26
- stroke: transparent;
27
- opacity: 0.8;
28
- }
29
- .timeline_MiniGantt rect {
30
- shape-rendering: crispEdges;
1
+ .timeline_MiniGantt .line {
2
+ fill: none;
3
+ stroke: lightgrey;
4
+ opacity: 0.7;
5
+ }
6
+
7
+ .timeline_MiniGantt .common_TextBox .rect {
8
+ fill: lightskyblue;
9
+ stroke: blue;
10
+ opacity: 0.5;
11
+ }
12
+
13
+ .timeline_MiniGantt .buckets .entity_shape rect {
14
+ stroke: #333;
15
+ }
16
+
17
+ .timeline_MiniGantt .buckets.selected .common_EntityRect .common_Shape > rect {
18
+ stroke: red;
19
+ }
20
+
21
+ .timeline_MiniGantt .common_TextBox .rect text {
22
+ fill: black;
23
+ stroke: none;
24
+ }
25
+ .timeline_MiniGantt .over {
26
+ stroke: transparent;
27
+ opacity: 0.8;
28
+ }
29
+ .timeline_MiniGantt rect {
30
+ shape-rendering: crispEdges;
31
31
  }