Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#540 Upgrade to FullCalendar 5 #604

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/fullcalendar/FullCalendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default {
},
methods: {
initialize() {
let defaultConfig = {theme: false};
let defaultConfig = {themeSystem: 'standard'};
let config = this.options ? {...this.options, ...defaultConfig} : defaultConfig;
this.calendar = new Calendar(this.$el, config);
this.calendar.render();
Expand Down
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ import './assets/styles/primevue.css';
import 'primeflex/primeflex.css';
import 'primeicons/primeicons.css';
import 'prismjs/themes/prism-coy.css';
import '@fullcalendar/core/main.min.css';
import '@fullcalendar/common/main.min.css';
import '@fullcalendar/daygrid/main.min.css';
import '@fullcalendar/timegrid/main.min.css';
import './assets/styles/flags.css';
Expand Down Expand Up @@ -178,4 +178,4 @@ app.component('Galleria', Galleria);
app.component('AppInputStyleSwitch', AppInputStyleSwitch);
app.directive('code', CodeHighlight);

app.mount('#app');
app.mount('#app');
5 changes: 3 additions & 2 deletions src/views/fullcalendar/FullCalendarDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ export default {
return {
options: {
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
defaultDate: '2019-01-01',
header: {
initialView: 'dayGridMonth',
initialDate: '2019-01-01',
headerToolbar: {
left: 'prev,next',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
Expand Down
21 changes: 12 additions & 9 deletions src/views/fullcalendar/FullCalendarDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import FullCalendar from 'primevue/fullcalendar';
</code></pre>

<h5>Getting Started</h5>
<p>FullCalendar is a wrapper around on <a href="https://fullcalendar.io/docs/v4">FullCalendar 4.0.0+</a> so fullcalendar needs to be included in your project.
<p>FullCalendar is a wrapper around on <a href="https://fullcalendar.io/docs">FullCalendar 5.0.0+</a> so fullcalendar needs to be included in your project.
For a complete documentation and samples please refer to the <a href="https://fullcalendar.io/">fullcalendar website</a>.</p>
<pre v-code>
<code>
Expand All @@ -30,7 +30,7 @@ npm install @fullcalendar/interaction --save
<p>Include the core style and the styles of the plugins that you use in your application.</p>
<pre v-code>
<code>
import '@fullcalendar/core/main.min.css';
import '@fullcalendar/common/main.min.css';
import '@fullcalendar/daygrid/main.min.css';
import '@fullcalendar/timegrid/main.min.css';

Expand Down Expand Up @@ -144,8 +144,9 @@ export default {
return {
options: {
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
defaultDate: '2019-01-01',
header: {
initialView: 'dayGridMonth',
initialDate: '2019-01-01',
headerToolbar: {
left: 'prev,next',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
Expand Down Expand Up @@ -175,8 +176,9 @@ export default {
return {
options: {
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
defaultDate: '2019-01-01',
header: {
initialView: 'dayGridMonth',
initialDate: '2019-01-01',
headerToolbar: {
left: 'prev,next',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
Expand Down Expand Up @@ -218,7 +220,7 @@ export default {
</div>

<h5>Dependencies</h5>
<p><a href="https://fullcalendar.io/docs/v4">FullCalendar 4.0.0+</a></p>
<p><a href="https://fullcalendar.io/docs">FullCalendar 5.0.0+</a></p>

</TabPanel>

Expand All @@ -244,8 +246,9 @@ export default {
return {
options: {
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
defaultDate: '2019-01-01',
header: {
initialView: 'dayGridMonth',
initialDate: '2019-01-01',
headerToolbar: {
left: 'prev,next',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
Expand Down
2 changes: 1 addition & 1 deletion src/views/setup/Setup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ dependencies: {
</tr>
<tr>
<td>FullCalendar</td>
<td>FullCalendar 4.0.2+.</td>
<td>FullCalendar 5.0.0+.</td>
</tr>
<tr>
<td>PrimeFlex</td>
Expand Down