diff --git a/package.json b/package.json index e86d7cd62..1c4e07098 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,12 @@ }, "dependencies": { "@chialab/typos": "^0.1.1", + "@fullcalendar/core": "^6.1.15", + "@fullcalendar/daygrid": "^6.1.15", + "@fullcalendar/interaction": "^6.1.15", + "@fullcalendar/list": "^6.1.15", + "@fullcalendar/timegrid": "^6.1.15", + "@fullcalendar/vue": "^6.1.15", "@riophae/vue-treeselect": "^0.4.0", "@trevoreyre/autocomplete-vue": "^2.4.1", "abortcontroller-polyfill": "^1.7.6", @@ -76,4 +82,4 @@ "webpack-watch-files-plugin": "^1.2.0" }, "packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610" -} \ No newline at end of file +} diff --git a/resources/js/app/app.js b/resources/js/app/app.js index 746b02120..81596305e 100644 --- a/resources/js/app/app.js +++ b/resources/js/app/app.js @@ -110,6 +110,7 @@ const _vueInstance = new Vue({ FieldString: () => import(/* webpackChunkName: "field-string" */'app/components/form/field-string'), FieldTextarea: () => import(/* webpackChunkName: "field-textarea" */'app/components/form/field-textarea'), FieldTitle: () => import(/* webpackChunkName: "field-title" */'app/components/form/field-title'), + CalendarView: () => import(/* webpackChunkName: "calendar-view" */'app/components/calendar-view/calendar-view'), ObjectInfo: () => import(/* webpackChunkName: "object-info" */'app/components/object-info/object-info'), RelatedObjectsFilter: () => import(/* webpackChunkName: "related-objects-filter" */'app/components/related-objects-filter/related-objects-filter'), ModuleProperties: () => import(/* webpackChunkName: "module-properties" */'app/components/module/module-properties'), @@ -625,6 +626,7 @@ window._vueInstance = _vueInstance; // use component everywhere in Manager Vue.component('AppIcon', AppIcon); +Vue.component('CalendarView', _vueInstance.$options.components.CalendarView); Vue.component('ClipboardItem', _vueInstance.$options.components.ClipboardItem); Vue.component('DateRangesView', _vueInstance.$options.components.DateRangesView); Vue.component('FieldCheckbox', _vueInstance.$options.components.FieldCheckbox); diff --git a/resources/js/app/components/calendar-view/calendar-view.vue b/resources/js/app/components/calendar-view/calendar-view.vue new file mode 100644 index 000000000..2f70c724f --- /dev/null +++ b/resources/js/app/components/calendar-view/calendar-view.vue @@ -0,0 +1,533 @@ + + + diff --git a/resources/js/app/components/date-range/date-range.vue b/resources/js/app/components/date-range/date-range.vue index 4f8db81bb..84ebdbf18 100644 --- a/resources/js/app/components/date-range/date-range.vue +++ b/resources/js/app/components/date-range/date-range.vue @@ -7,6 +7,7 @@ {{ msgFrom }}