Introduces ViewSelectorManager to handle view state and UI interactions Separates view logic from configuration management Adds explicit tracking of current calendar view Enhances view selection and state management Improves modularity and separation of concerns
88 lines
1.8 KiB
JSON
88 lines
1.8 KiB
JSON
{
|
|
"gridSettings": {
|
|
"hourHeight": 80,
|
|
"dayStartHour": 6,
|
|
"dayEndHour": 22,
|
|
"workStartHour": 8,
|
|
"workEndHour": 17,
|
|
"snapInterval": 15,
|
|
"gridStartThresholdMinutes": 30,
|
|
"showCurrentTime": true,
|
|
"showWorkHours": true,
|
|
"fitToWidth": false,
|
|
"scrollToHour": 8
|
|
},
|
|
"dateViewSettings": {
|
|
"period": "week",
|
|
"weekDays": 7,
|
|
"firstDayOfWeek": 1,
|
|
"showAllDay": true
|
|
},
|
|
"timeFormatConfig": {
|
|
"timezone": "Europe/Copenhagen",
|
|
"use24HourFormat": true,
|
|
"locale": "da-DK",
|
|
"dateFormat": "technical",
|
|
"showSeconds": false
|
|
},
|
|
"workWeekPresets": {
|
|
"standard": {
|
|
"id": "standard",
|
|
"workDays": [1, 2, 3, 4, 5],
|
|
"totalDays": 5,
|
|
"firstWorkDay": 1
|
|
},
|
|
"compressed": {
|
|
"id": "compressed",
|
|
"workDays": [1, 2, 3, 4],
|
|
"totalDays": 4,
|
|
"firstWorkDay": 1
|
|
},
|
|
"midweek": {
|
|
"id": "midweek",
|
|
"workDays": [3, 4, 5],
|
|
"totalDays": 3,
|
|
"firstWorkDay": 3
|
|
},
|
|
"weekend": {
|
|
"id": "weekend",
|
|
"workDays": [6, 7],
|
|
"totalDays": 2,
|
|
"firstWorkDay": 6
|
|
},
|
|
"fullweek": {
|
|
"id": "fullweek",
|
|
"workDays": [1, 2, 3, 4, 5, 6, 7],
|
|
"totalDays": 7,
|
|
"firstWorkDay": 1
|
|
}
|
|
},
|
|
"currentWorkWeek": "standard",
|
|
"currentView": "week",
|
|
"scrollbar": {
|
|
"width": 16,
|
|
"color": "#666",
|
|
"trackColor": "#f0f0f0",
|
|
"hoverColor": "#b53f7aff",
|
|
"borderRadius": 6
|
|
},
|
|
"interaction": {
|
|
"allowDrag": true,
|
|
"allowResize": true,
|
|
"allowCreate": true
|
|
},
|
|
"api": {
|
|
"endpoint": "/api/events",
|
|
"dateFormat": "YYYY-MM-DD",
|
|
"timeFormat": "HH:mm"
|
|
},
|
|
"features": {
|
|
"enableSearch": true,
|
|
"enableTouch": true
|
|
},
|
|
"eventDefaults": {
|
|
"defaultEventDuration": 60,
|
|
"minEventDuration": 15,
|
|
"maxEventDuration": 480
|
|
}
|
|
}
|