Adds workweek settings and dynamic view configuration
Introduces settings service for managing tenant-specific calendar configurations Enables dynamic workweek presets with configurable work days Improves view switching with enhanced UI components Adds flexible calendar rendering based on tenant settings Extends DateService to support workweek date generation
This commit is contained in:
parent
58cedb9fad
commit
ad2df353b5
13 changed files with 751 additions and 38 deletions
57
wwwroot/data/tenant-settings.json
Normal file
57
wwwroot/data/tenant-settings.json
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
"id": "tenant-settings",
|
||||
"syncStatus": "synced",
|
||||
"lastModified": "2025-12-15T10:00:00Z",
|
||||
|
||||
"workweek": {
|
||||
"presets": {
|
||||
"standard": {
|
||||
"id": "standard",
|
||||
"workDays": [1, 2, 3, 4, 5],
|
||||
"label": "Man-Fre"
|
||||
},
|
||||
"compressed": {
|
||||
"id": "compressed",
|
||||
"workDays": [1, 2, 3, 4],
|
||||
"label": "Man-Tor"
|
||||
},
|
||||
"midweek": {
|
||||
"id": "midweek",
|
||||
"workDays": [3, 4, 5],
|
||||
"label": "Ons-Fre"
|
||||
},
|
||||
"weekend": {
|
||||
"id": "weekend",
|
||||
"workDays": [6, 7],
|
||||
"label": "Weekend"
|
||||
},
|
||||
"fullweek": {
|
||||
"id": "fullweek",
|
||||
"workDays": [1, 2, 3, 4, 5, 6, 7],
|
||||
"label": "Alle dage"
|
||||
}
|
||||
},
|
||||
"defaultPreset": "standard",
|
||||
"firstDayOfWeek": 1
|
||||
},
|
||||
|
||||
"grid": {
|
||||
"dayStartHour": 6,
|
||||
"dayEndHour": 22,
|
||||
"workStartHour": 8,
|
||||
"workEndHour": 17,
|
||||
"hourHeight": 80,
|
||||
"snapInterval": 15
|
||||
},
|
||||
|
||||
"timeFormat": {
|
||||
"timezone": "Europe/Copenhagen",
|
||||
"locale": "da-DK",
|
||||
"use24HourFormat": true
|
||||
},
|
||||
|
||||
"views": {
|
||||
"availableViews": ["simple", "resource", "team", "department"],
|
||||
"defaultView": "simple"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue