apexgantt 3.10.1 → 3.10.3
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/.github/workflows/publish.yml +65 -2
- package/README.md +3 -0
- package/apexgantt.d.ts +2 -2
- package/apexgantt.es.min.js +1 -1
- package/apexgantt.min.js +1 -1
- package/demo/basic-gantt.html +157 -105
- package/demo/css-theming.html +1 -1
- package/demo/custom-colors.html +253 -171
- package/demo/data-parsing.html +263 -60
- package/demo/dependency-types.html +1 -1
- package/demo/gantt-with-annotations.html +194 -121
- package/demo/gantt-with-interactions.html +235 -125
- package/demo/milestones.html +216 -231
- package/demo/resource-management.html +307 -293
- package/demo/row-virtualizer-demo.html +1 -1
- package/package.json +1 -1
|
@@ -7,17 +7,80 @@ on:
|
|
|
7
7
|
|
|
8
8
|
permissions:
|
|
9
9
|
id-token: write
|
|
10
|
-
contents:
|
|
10
|
+
contents: write
|
|
11
11
|
|
|
12
12
|
jobs:
|
|
13
13
|
publish:
|
|
14
14
|
runs-on: ubuntu-latest
|
|
15
|
+
if: startsWith(github.event.head_commit.message, 'release:')
|
|
16
|
+
|
|
15
17
|
steps:
|
|
16
18
|
- uses: actions/checkout@v4
|
|
19
|
+
with:
|
|
20
|
+
fetch-depth: 0
|
|
21
|
+
|
|
22
|
+
- name: Check commit message and extract version
|
|
23
|
+
id: check
|
|
24
|
+
run: |
|
|
25
|
+
MSG="${{ github.event.head_commit.message }}"
|
|
26
|
+
if echo "$MSG" | grep -qE '^release: [0-9]+\.[0-9]+\.[0-9]+'; then
|
|
27
|
+
VERSION=$(echo "$MSG" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+[^ ]*' | head -1)
|
|
28
|
+
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
|
29
|
+
if echo "$VERSION" | grep -qE '[-]'; then
|
|
30
|
+
echo "tag=next" >> $GITHUB_OUTPUT
|
|
31
|
+
else
|
|
32
|
+
echo "tag=latest" >> $GITHUB_OUTPUT
|
|
33
|
+
fi
|
|
34
|
+
else
|
|
35
|
+
echo "❌ Commit message must match 'release: X.Y.Z'"
|
|
36
|
+
exit 1
|
|
37
|
+
fi
|
|
38
|
+
|
|
39
|
+
- name: Verify package.json version matches commit message
|
|
40
|
+
run: |
|
|
41
|
+
PKG_VERSION=$(node -p "require('./package.json').version")
|
|
42
|
+
MSG_VERSION="${{ steps.check.outputs.version }}"
|
|
43
|
+
if [ "$PKG_VERSION" != "$MSG_VERSION" ]; then
|
|
44
|
+
echo "❌ package.json version ($PKG_VERSION) does not match commit message version ($MSG_VERSION)"
|
|
45
|
+
exit 1
|
|
46
|
+
fi
|
|
47
|
+
echo "✅ Version $PKG_VERSION confirmed"
|
|
48
|
+
|
|
17
49
|
- uses: actions/setup-node@v4
|
|
18
50
|
with:
|
|
19
51
|
node-version: "20"
|
|
20
52
|
|
|
21
53
|
- run: npm install -g npm@latest
|
|
22
54
|
- run: npm install
|
|
23
|
-
|
|
55
|
+
|
|
56
|
+
- name: Publish to npm
|
|
57
|
+
run: npm publish --provenance --tag ${{ steps.check.outputs.tag }}
|
|
58
|
+
|
|
59
|
+
- name: Create git tag
|
|
60
|
+
run: |
|
|
61
|
+
TAG="v${{ steps.check.outputs.version }}"
|
|
62
|
+
git config user.name "github-actions[bot]"
|
|
63
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
64
|
+
if git rev-parse "$TAG" >/dev/null 2>&1; then
|
|
65
|
+
echo "Tag $TAG already exists, skipping"
|
|
66
|
+
else
|
|
67
|
+
git tag -a "$TAG" -m "Release $TAG"
|
|
68
|
+
git push origin "$TAG"
|
|
69
|
+
fi
|
|
70
|
+
|
|
71
|
+
- name: Create GitHub Release
|
|
72
|
+
env:
|
|
73
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
74
|
+
run: |
|
|
75
|
+
TAG="v${{ steps.check.outputs.version }}"
|
|
76
|
+
PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
|
|
77
|
+
if [ -n "$PREV_TAG" ]; then
|
|
78
|
+
NOTES=$(git log "$PREV_TAG..HEAD" --pretty=format:"- %s" --no-merges)
|
|
79
|
+
else
|
|
80
|
+
NOTES=$(git log --pretty=format:"- %s" --no-merges)
|
|
81
|
+
fi
|
|
82
|
+
if gh release view "$TAG" >/dev/null 2>&1; then
|
|
83
|
+
echo "Release $TAG already exists, skipping"
|
|
84
|
+
else
|
|
85
|
+
gh release create "$TAG" --notes "$NOTES" --title "$TAG"
|
|
86
|
+
fi
|
package/README.md
CHANGED
|
@@ -93,6 +93,8 @@ The layout can be configured by passing a second argument to `ApexGantt` with th
|
|
|
93
93
|
| `enableTaskEdit` | `boolean` | `false` | Show the inline task-edit form when a task row is clicked. |
|
|
94
94
|
| `enableTaskResize` | `boolean` | `true` | Allow task bars to be resized by dragging their handles. |
|
|
95
95
|
| `enableTooltip` | `boolean` | `true` | Show a tooltip on task-bar hover. |
|
|
96
|
+
| `enableSelection` | `boolean` | `false` | Enable row selection (click, Ctrl+Click, Shift+Click, keyboard). |
|
|
97
|
+
| `showCheckboxColumn` | `boolean` | `true` | Show a checkbox column for multi-select. Only applies when `enableSelection` is true. |
|
|
96
98
|
| `enableCriticalPath` | `boolean` | `false` | Calculate and highlight the critical path through dependent tasks. |
|
|
97
99
|
| `criticalBarColor` | `string` | `'#e53935'` | Fill color for task bars on the critical path. |
|
|
98
100
|
| `criticalArrowColor` | `string` | `'#e53935'` | Stroke color for dependency arrows on the critical path. |
|
|
@@ -112,6 +114,7 @@ The layout can be configured by passing a second argument to `ApexGantt` with th
|
|
|
112
114
|
| `annotationOrientation` | `Orientation` | `Orientation.Horizontal` | Whether annotation lines are drawn horizontally or vertically. |
|
|
113
115
|
| `annotations` | `Annotation[]` | `[]` | Array of annotation objects to overlay on the timeline. |
|
|
114
116
|
| `parsing` | `ParsingConfig` | `undefined` | Field-mapping config to parse non-standard task shapes. See Data Parsing below. |
|
|
117
|
+
| `toolbarItems` | `ToolbarItem[]` | `[]` | Custom controls rendered in the toolbar alongside the built-in zoom and export buttons. Each item can be a `ToolbarButton`, `ToolbarSelect`, or `ToolbarSeparator`. |
|
|
115
118
|
| `taskListAriaLabel` | `string` | `'Task list'` | `aria-label` for the task-list table, used by screen readers. |
|
|
116
119
|
|
|
117
120
|
Default tooltip template
|
package/apexgantt.d.ts
CHANGED
|
@@ -369,7 +369,7 @@ export declare class DataParser {
|
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
/**
|
|
372
|
-
* Detail payload for the `
|
|
372
|
+
* Detail payload for the `dependencyArrowUpdate` event.
|
|
373
373
|
*
|
|
374
374
|
* Fires when the user creates, updates, or removes a dependency arrow
|
|
375
375
|
* between two tasks in the interactive dependency editor.
|
|
@@ -431,7 +431,7 @@ export declare interface GanttEventMap {
|
|
|
431
431
|
/** Fires when the set of selected tasks changes. */
|
|
432
432
|
selectionChange: CustomEvent<SelectionChangeEventDetail>;
|
|
433
433
|
/** Fires when a dependency arrow is updated. */
|
|
434
|
-
|
|
434
|
+
dependencyArrowUpdate: CustomEvent<DependencyArrowUpdateDetail>;
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
export declare const GanttEvents: {
|