Skip to content

Commit fc57bb2

Browse files
committed
[ADD] Holidays tooltip
1 parent ccb7e48 commit fc57bb2

File tree

15 files changed

+464
-83
lines changed

15 files changed

+464
-83
lines changed

docs/.vitepress/theme/components/ConnectionsGanttDemo.vue

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const rows = ref([
2222
}
2323
]
2424
},
25-
start: '2024-12-10 09:00',
26-
end: '2024-12-10 14:00',
25+
start: '2024-12-25 09:00',
26+
end: '2024-12-25 14:00',
2727
},
2828
{
2929
ganttBarConfig: {
@@ -39,8 +39,8 @@ const rows = ref([
3939
}
4040
]
4141
},
42-
start: '2024-12-10 15:00',
43-
end: '2024-12-11 12:00',
42+
start: '2024-12-25 15:00',
43+
end: '2024-12-26 12:00',
4444
},
4545
],
4646
},
@@ -61,17 +61,17 @@ const rows = ref([
6161
}
6262
]
6363
},
64-
start: '2024-12-11 13:00',
65-
end: '2024-12-12 12:00',
64+
start: '2024-12-26 13:00',
65+
end: '2024-12-26 12:00',
6666
},
6767
{
6868
ganttBarConfig: {
6969
id: 'dev2',
7070
label: 'Testing',
7171
style: { background: '#D4A5A5' },
7272
},
73-
start: '2024-12-12 13:00',
74-
end: '2024-12-12 17:00',
73+
start: '2024-12-26 13:00',
74+
end: '2024-12-26 17:00',
7575
},
7676
],
7777
},
@@ -86,14 +86,15 @@ onMounted(() => {
8686
<ClientOnly>
8787
<div class="demo-container" v-if="isLibraryReady">
8888
<g-gantt-chart
89-
chart-start="2024-12-10 08:00"
90-
chart-end="2024-12-13 23:00"
89+
chart-start="2024-12-25 08:00"
90+
chart-end="2024-12-27 23:00"
9191
precision="hour"
9292
bar-start="start"
9393
bar-end="end"
9494
:enable-connections="true"
9595
:push-on-connect="true"
9696
color-scheme="dark"
97+
:holidayHighlight="'US'"
9798
>
9899
<g-gantt-row
99100
v-for="row in rows"

docs/components/g-gantt-chart.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Here's a minimal example of using the GGanttChart component:
6565
| currentTimeLabel | `string` | `''` | Label for current time indicator |
6666
| dateFormat | `string \| false` | `'YYYY-MM-DD HH:mm'` | Format for dates |
6767
| milestones | `GanttMilestone[]` | `[]` | List of milestone |
68+
| holidayHighlight| `string` | `` | Country Cody of date-holidays |
6869

6970
### Events
7071

package-lock.json

Lines changed: 148 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454
},
5555
"peerDependencies": {
5656
"dayjs": "^1.11.13",
57-
"vue": "^3.5.13"
57+
"vue": "^3.5.13",
58+
"date-holidays": "^3.23.14"
5859
},
5960
"homepage": "https://xeyos88.github.io/HyVueGantt/",
6061
"keywords": [

0 commit comments

Comments
 (0)