Some ignored filles was missing
This commit is contained in:
parent
7db22245e2
commit
fd5ab6bc0d
268 changed files with 31970 additions and 4 deletions
46
wwwroot/js/configurations/CalendarConfig.d.ts
vendored
Normal file
46
wwwroot/js/configurations/CalendarConfig.d.ts
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
import { ICalendarConfig } from './ICalendarConfig';
|
||||
import { IGridSettings } from './GridSettings';
|
||||
import { IDateViewSettings } from './DateViewSettings';
|
||||
import { ITimeFormatConfig } from './TimeFormatConfig';
|
||||
import { IWorkWeekSettings } from './WorkWeekSettings';
|
||||
import { CalendarView } from '../types/CalendarTypes';
|
||||
/**
|
||||
* All-day event layout constants
|
||||
*/
|
||||
export declare const ALL_DAY_CONSTANTS: {
|
||||
readonly EVENT_HEIGHT: 22;
|
||||
readonly EVENT_GAP: 2;
|
||||
readonly CONTAINER_PADDING: 4;
|
||||
readonly MAX_COLLAPSED_ROWS: 4;
|
||||
readonly SINGLE_ROW_HEIGHT: number;
|
||||
};
|
||||
/**
|
||||
* Work week presets - Configuration data
|
||||
*/
|
||||
export declare const WORK_WEEK_PRESETS: {
|
||||
[key: string]: IWorkWeekSettings;
|
||||
};
|
||||
/**
|
||||
* Configuration - DTO container for all configuration
|
||||
* Pure data object loaded from JSON via ConfigManager
|
||||
*/
|
||||
export declare class Configuration {
|
||||
private static _instance;
|
||||
config: ICalendarConfig;
|
||||
gridSettings: IGridSettings;
|
||||
dateViewSettings: IDateViewSettings;
|
||||
timeFormatConfig: ITimeFormatConfig;
|
||||
currentWorkWeek: string;
|
||||
currentView: CalendarView;
|
||||
selectedDate: Date;
|
||||
apiEndpoint: string;
|
||||
constructor(config: ICalendarConfig, gridSettings: IGridSettings, dateViewSettings: IDateViewSettings, timeFormatConfig: ITimeFormatConfig, currentWorkWeek: string, currentView: CalendarView, selectedDate?: Date);
|
||||
/**
|
||||
* Get the current Configuration instance
|
||||
* Used by web components that can't use dependency injection
|
||||
*/
|
||||
static getInstance(): Configuration;
|
||||
setSelectedDate(date: Date): void;
|
||||
getWorkWeekSettings(): IWorkWeekSettings;
|
||||
}
|
||||
export { Configuration as CalendarConfig };
|
||||
85
wwwroot/js/configurations/CalendarConfig.js
Normal file
85
wwwroot/js/configurations/CalendarConfig.js
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
/**
|
||||
* All-day event layout constants
|
||||
*/
|
||||
export const ALL_DAY_CONSTANTS = {
|
||||
EVENT_HEIGHT: 22,
|
||||
EVENT_GAP: 2,
|
||||
CONTAINER_PADDING: 4,
|
||||
MAX_COLLAPSED_ROWS: 4,
|
||||
get SINGLE_ROW_HEIGHT() {
|
||||
return this.EVENT_HEIGHT + this.EVENT_GAP; // 28px
|
||||
}
|
||||
};
|
||||
/**
|
||||
* Work week presets - Configuration data
|
||||
*/
|
||||
export const WORK_WEEK_PRESETS = {
|
||||
'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
|
||||
}
|
||||
};
|
||||
/**
|
||||
* Configuration - DTO container for all configuration
|
||||
* Pure data object loaded from JSON via ConfigManager
|
||||
*/
|
||||
export class Configuration {
|
||||
constructor(config, gridSettings, dateViewSettings, timeFormatConfig, currentWorkWeek, currentView, selectedDate = new Date()) {
|
||||
this.apiEndpoint = '/api';
|
||||
this.config = config;
|
||||
this.gridSettings = gridSettings;
|
||||
this.dateViewSettings = dateViewSettings;
|
||||
this.timeFormatConfig = timeFormatConfig;
|
||||
this.currentWorkWeek = currentWorkWeek;
|
||||
this.currentView = currentView;
|
||||
this.selectedDate = selectedDate;
|
||||
// Store as singleton instance for web components
|
||||
Configuration._instance = this;
|
||||
}
|
||||
/**
|
||||
* Get the current Configuration instance
|
||||
* Used by web components that can't use dependency injection
|
||||
*/
|
||||
static getInstance() {
|
||||
if (!Configuration._instance) {
|
||||
throw new Error('Configuration has not been initialized. Call ConfigManager.load() first.');
|
||||
}
|
||||
return Configuration._instance;
|
||||
}
|
||||
setSelectedDate(date) {
|
||||
this.selectedDate = date;
|
||||
}
|
||||
getWorkWeekSettings() {
|
||||
return WORK_WEEK_PRESETS[this.currentWorkWeek] || WORK_WEEK_PRESETS['standard'];
|
||||
}
|
||||
}
|
||||
Configuration._instance = null;
|
||||
// Backward compatibility alias
|
||||
export { Configuration as CalendarConfig };
|
||||
//# sourceMappingURL=CalendarConfig.js.map
|
||||
1
wwwroot/js/configurations/CalendarConfig.js.map
Normal file
1
wwwroot/js/configurations/CalendarConfig.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"CalendarConfig.js","sourceRoot":"","sources":["../../../src/configurations/CalendarConfig.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,YAAY,EAAE,EAAE;IAChB,SAAS,EAAE,CAAC;IACZ,iBAAiB,EAAE,CAAC;IACpB,kBAAkB,EAAE,CAAC;IACrB,IAAI,iBAAiB;QACnB,OAAO,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO;IACpD,CAAC;CACO,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAyC;IACrE,UAAU,EAAE;QACV,EAAE,EAAE,UAAU;QACd,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC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C/B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QAEjC,iDAAiD;QACjD,aAAa,CAAC,SAAS,GAAG,IAAI,CAAC;IACjC,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,WAAW;QACvB,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CAAC,0EAA0E,CAAC,CAAC;QAC9F,CAAC;QACD,OAAO,aAAa,CAAC,SAAS,CAAC;IACjC,CAAC;IAED,eAAe,CAAC,IAAU;QACxB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC3B,CAAC;IAED,mBAAmB;QACjB,OAAO,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,iBAAiB,CAAC,UAAU,CAAC,CAAC;IAClF,CAAC;;AAjDc,uBAAS,GAAyB,IAAI,AAA7B,CAA8B;AAoDxD,+BAA+B;AAC/B,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,CAAC"}
|
||||
28
wwwroot/js/configurations/ConfigManager.d.ts
vendored
Normal file
28
wwwroot/js/configurations/ConfigManager.d.ts
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import { Configuration } from './CalendarConfig';
|
||||
import { IEventBus } from '../types/CalendarTypes';
|
||||
/**
|
||||
* ConfigManager - Configuration loader and CSS property manager
|
||||
* Loads JSON and creates Configuration instance
|
||||
* Listens to events and manages CSS custom properties for dynamic styling
|
||||
*/
|
||||
export declare class ConfigManager {
|
||||
private eventBus;
|
||||
private config;
|
||||
constructor(eventBus: IEventBus, config: Configuration);
|
||||
/**
|
||||
* Setup event listeners for dynamic CSS updates
|
||||
*/
|
||||
private setupEventListeners;
|
||||
/**
|
||||
* Sync grid-related CSS variables from configuration
|
||||
*/
|
||||
private syncGridCSSVariables;
|
||||
/**
|
||||
* Sync workweek-related CSS variables
|
||||
*/
|
||||
private syncWorkweekCSSVariables;
|
||||
/**
|
||||
* Load configuration from JSON and create Configuration instance
|
||||
*/
|
||||
static load(): Promise<Configuration>;
|
||||
}
|
||||
80
wwwroot/js/configurations/ConfigManager.js
Normal file
80
wwwroot/js/configurations/ConfigManager.js
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
import { Configuration } from './CalendarConfig';
|
||||
import { TimeFormatter } from '../utils/TimeFormatter';
|
||||
import { CoreEvents } from '../constants/CoreEvents';
|
||||
/**
|
||||
* ConfigManager - Configuration loader and CSS property manager
|
||||
* Loads JSON and creates Configuration instance
|
||||
* Listens to events and manages CSS custom properties for dynamic styling
|
||||
*/
|
||||
export class ConfigManager {
|
||||
constructor(eventBus, config) {
|
||||
this.eventBus = eventBus;
|
||||
this.config = config;
|
||||
this.setupEventListeners();
|
||||
this.syncGridCSSVariables();
|
||||
this.syncWorkweekCSSVariables();
|
||||
}
|
||||
/**
|
||||
* Setup event listeners for dynamic CSS updates
|
||||
*/
|
||||
setupEventListeners() {
|
||||
// Listen to workweek changes and update CSS accordingly
|
||||
this.eventBus.on(CoreEvents.WORKWEEK_CHANGED, (event) => {
|
||||
const { settings } = event.detail;
|
||||
this.syncWorkweekCSSVariables(settings);
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Sync grid-related CSS variables from configuration
|
||||
*/
|
||||
syncGridCSSVariables() {
|
||||
const gridSettings = this.config.gridSettings;
|
||||
document.documentElement.style.setProperty('--hour-height', `${gridSettings.hourHeight}px`);
|
||||
document.documentElement.style.setProperty('--day-start-hour', gridSettings.dayStartHour.toString());
|
||||
document.documentElement.style.setProperty('--day-end-hour', gridSettings.dayEndHour.toString());
|
||||
document.documentElement.style.setProperty('--work-start-hour', gridSettings.workStartHour.toString());
|
||||
document.documentElement.style.setProperty('--work-end-hour', gridSettings.workEndHour.toString());
|
||||
}
|
||||
/**
|
||||
* Sync workweek-related CSS variables
|
||||
*/
|
||||
syncWorkweekCSSVariables(workWeekSettings) {
|
||||
const settings = workWeekSettings || this.config.getWorkWeekSettings();
|
||||
document.documentElement.style.setProperty('--grid-columns', settings.totalDays.toString());
|
||||
}
|
||||
/**
|
||||
* Load configuration from JSON and create Configuration instance
|
||||
*/
|
||||
static async load() {
|
||||
const response = await fetch('/wwwroot/data/calendar-config.json');
|
||||
if (!response.ok) {
|
||||
throw new Error(`Failed to load config: ${response.statusText}`);
|
||||
}
|
||||
const data = await response.json();
|
||||
// Build main config
|
||||
const mainConfig = {
|
||||
scrollbarWidth: data.scrollbar.width,
|
||||
scrollbarColor: data.scrollbar.color,
|
||||
scrollbarTrackColor: data.scrollbar.trackColor,
|
||||
scrollbarHoverColor: data.scrollbar.hoverColor,
|
||||
scrollbarBorderRadius: data.scrollbar.borderRadius,
|
||||
allowDrag: data.interaction.allowDrag,
|
||||
allowResize: data.interaction.allowResize,
|
||||
allowCreate: data.interaction.allowCreate,
|
||||
apiEndpoint: data.api.endpoint,
|
||||
dateFormat: data.api.dateFormat,
|
||||
timeFormat: data.api.timeFormat,
|
||||
enableSearch: data.features.enableSearch,
|
||||
enableTouch: data.features.enableTouch,
|
||||
defaultEventDuration: data.eventDefaults.defaultEventDuration,
|
||||
minEventDuration: data.gridSettings.snapInterval,
|
||||
maxEventDuration: data.eventDefaults.maxEventDuration
|
||||
};
|
||||
// Create Configuration instance
|
||||
const config = new Configuration(mainConfig, data.gridSettings, data.dateViewSettings, data.timeFormatConfig, data.currentWorkWeek, data.currentView || 'week');
|
||||
// Configure TimeFormatter
|
||||
TimeFormatter.configure(config.timeFormatConfig);
|
||||
return config;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=ConfigManager.js.map
|
||||
1
wwwroot/js/configurations/ConfigManager.js.map
Normal file
1
wwwroot/js/configurations/ConfigManager.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"ConfigManager.js","sourceRoot":"","sources":["../../../src/configurations/ConfigManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAA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EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY;YACxC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,WAAW;YACtC,oBAAoB,EAAE,IAAI,CAAC,aAAa,CAAC,oBAAoB;YAC7D,gBAAgB,EAAE,IAAI,CAAC,YAAY,CAAC,YAAY;YAChD,gBAAgB,EAAE,IAAI,CAAC,aAAa,CAAC,gBAAgB;SACtD,CAAC;QAEF,gCAAgC;QAChC,MAAM,MAAM,GAAG,IAAI,aAAa,CAC9B,UAAU,EACV,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,WAAW,IAAI,MAAM,CAC3B,CAAC;QAEF,0BAA0B;QAC1B,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QAEjD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
||||
10
wwwroot/js/configurations/DateViewSettings.d.ts
vendored
Normal file
10
wwwroot/js/configurations/DateViewSettings.d.ts
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { ViewPeriod } from '../types/CalendarTypes';
|
||||
/**
|
||||
* View settings for date-based calendar mode
|
||||
*/
|
||||
export interface IDateViewSettings {
|
||||
period: ViewPeriod;
|
||||
weekDays: number;
|
||||
firstDayOfWeek: number;
|
||||
showAllDay: boolean;
|
||||
}
|
||||
2
wwwroot/js/configurations/DateViewSettings.js
Normal file
2
wwwroot/js/configurations/DateViewSettings.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
export {};
|
||||
//# sourceMappingURL=DateViewSettings.js.map
|
||||
1
wwwroot/js/configurations/DateViewSettings.js.map
Normal file
1
wwwroot/js/configurations/DateViewSettings.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"DateViewSettings.js","sourceRoot":"","sources":["../../../src/configurations/DateViewSettings.ts"],"names":[],"mappings":""}
|
||||
22
wwwroot/js/configurations/GridSettings.d.ts
vendored
Normal file
22
wwwroot/js/configurations/GridSettings.d.ts
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* Grid display settings interface
|
||||
*/
|
||||
export interface IGridSettings {
|
||||
dayStartHour: number;
|
||||
dayEndHour: number;
|
||||
workStartHour: number;
|
||||
workEndHour: number;
|
||||
hourHeight: number;
|
||||
snapInterval: number;
|
||||
fitToWidth: boolean;
|
||||
scrollToHour: number | null;
|
||||
gridStartThresholdMinutes: number;
|
||||
showCurrentTime: boolean;
|
||||
showWorkHours: boolean;
|
||||
}
|
||||
/**
|
||||
* Grid settings utility functions
|
||||
*/
|
||||
export declare namespace GridSettingsUtils {
|
||||
function isValidSnapInterval(interval: number): boolean;
|
||||
}
|
||||
11
wwwroot/js/configurations/GridSettings.js
Normal file
11
wwwroot/js/configurations/GridSettings.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Grid settings utility functions
|
||||
*/
|
||||
export var GridSettingsUtils;
|
||||
(function (GridSettingsUtils) {
|
||||
function isValidSnapInterval(interval) {
|
||||
return [5, 10, 15, 30, 60].includes(interval);
|
||||
}
|
||||
GridSettingsUtils.isValidSnapInterval = isValidSnapInterval;
|
||||
})(GridSettingsUtils || (GridSettingsUtils = {}));
|
||||
//# sourceMappingURL=GridSettings.js.map
|
||||
1
wwwroot/js/configurations/GridSettings.js.map
Normal file
1
wwwroot/js/configurations/GridSettings.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"GridSettings.js","sourceRoot":"","sources":["../../../src/configurations/GridSettings.ts"],"names":[],"mappings":"AAiBA;;GAEG;AACH,MAAM,KAAW,iBAAiB,CAIjC;AAJD,WAAiB,iBAAiB;IAChC,SAAgB,mBAAmB,CAAC,QAAgB;QAClD,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAChD,CAAC;IAFe,qCAAmB,sBAElC,CAAA;AACH,CAAC,EAJgB,iBAAiB,KAAjB,iBAAiB,QAIjC"}
|
||||
21
wwwroot/js/configurations/ICalendarConfig.d.ts
vendored
Normal file
21
wwwroot/js/configurations/ICalendarConfig.d.ts
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/**
|
||||
* Main calendar configuration interface
|
||||
*/
|
||||
export interface ICalendarConfig {
|
||||
scrollbarWidth: number;
|
||||
scrollbarColor: string;
|
||||
scrollbarTrackColor: string;
|
||||
scrollbarHoverColor: string;
|
||||
scrollbarBorderRadius: number;
|
||||
allowDrag: boolean;
|
||||
allowResize: boolean;
|
||||
allowCreate: boolean;
|
||||
apiEndpoint: string;
|
||||
dateFormat: string;
|
||||
timeFormat: string;
|
||||
enableSearch: boolean;
|
||||
enableTouch: boolean;
|
||||
defaultEventDuration: number;
|
||||
minEventDuration: number;
|
||||
maxEventDuration: number;
|
||||
}
|
||||
2
wwwroot/js/configurations/ICalendarConfig.js
Normal file
2
wwwroot/js/configurations/ICalendarConfig.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
export {};
|
||||
//# sourceMappingURL=ICalendarConfig.js.map
|
||||
1
wwwroot/js/configurations/ICalendarConfig.js.map
Normal file
1
wwwroot/js/configurations/ICalendarConfig.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"ICalendarConfig.js","sourceRoot":"","sources":["../../../src/configurations/ICalendarConfig.ts"],"names":[],"mappings":""}
|
||||
10
wwwroot/js/configurations/TimeFormatConfig.d.ts
vendored
Normal file
10
wwwroot/js/configurations/TimeFormatConfig.d.ts
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/**
|
||||
* Time format configuration settings
|
||||
*/
|
||||
export interface ITimeFormatConfig {
|
||||
timezone: string;
|
||||
use24HourFormat: boolean;
|
||||
locale: string;
|
||||
dateFormat: 'locale' | 'technical';
|
||||
showSeconds: boolean;
|
||||
}
|
||||
2
wwwroot/js/configurations/TimeFormatConfig.js
Normal file
2
wwwroot/js/configurations/TimeFormatConfig.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
export {};
|
||||
//# sourceMappingURL=TimeFormatConfig.js.map
|
||||
1
wwwroot/js/configurations/TimeFormatConfig.js.map
Normal file
1
wwwroot/js/configurations/TimeFormatConfig.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"TimeFormatConfig.js","sourceRoot":"","sources":["../../../src/configurations/TimeFormatConfig.ts"],"names":[],"mappings":""}
|
||||
9
wwwroot/js/configurations/WorkWeekSettings.d.ts
vendored
Normal file
9
wwwroot/js/configurations/WorkWeekSettings.d.ts
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Work week configuration settings
|
||||
*/
|
||||
export interface IWorkWeekSettings {
|
||||
id: string;
|
||||
workDays: number[];
|
||||
totalDays: number;
|
||||
firstWorkDay: number;
|
||||
}
|
||||
2
wwwroot/js/configurations/WorkWeekSettings.js
Normal file
2
wwwroot/js/configurations/WorkWeekSettings.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
export {};
|
||||
//# sourceMappingURL=WorkWeekSettings.js.map
|
||||
1
wwwroot/js/configurations/WorkWeekSettings.js.map
Normal file
1
wwwroot/js/configurations/WorkWeekSettings.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"WorkWeekSettings.js","sourceRoot":"","sources":["../../../src/configurations/WorkWeekSettings.ts"],"names":[],"mappings":""}
|
||||
Loading…
Add table
Add a link
Reference in a new issue