This commit is contained in:
2025-06-04 10:03:22 +02:00
commit 785a2b6134
14182 changed files with 1764617 additions and 0 deletions

22
node_modules/@fullcalendar/timegrid/LICENSE.md generated vendored Normal file
View File

@ -0,0 +1,22 @@
MIT License
Copyright (c) 2021 Adam Shaw
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

32
node_modules/@fullcalendar/timegrid/README.md generated vendored Normal file
View File

@ -0,0 +1,32 @@
# FullCalendar Time Grid Plugin
Display events on time slots
## Installation
Install the necessary packages:
```sh
npm install @fullcalendar/core @fullcalendar/timegrid
```
## Usage
Instantiate a Calendar with the necessary plugin:
```js
import { Calendar } from '@fullcalendar/core'
import timeGridPlugin from '@fullcalendar/timegrid'
const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
plugins: [timeGridPlugin],
initialView: 'timeGridWeek',
events: [
{ title: 'Meeting', start: new Date() }
]
})
calendar.render()
```

38
node_modules/@fullcalendar/timegrid/index.cjs generated vendored Normal file
View File

@ -0,0 +1,38 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var index_cjs = require('@fullcalendar/core/index.cjs');
var internalCommon = require('./internal.cjs');
require('@fullcalendar/core/internal.cjs');
require('@fullcalendar/core/preact.cjs');
require('@fullcalendar/daygrid/internal.cjs');
const OPTION_REFINERS = {
allDaySlot: Boolean,
};
var index = index_cjs.createPlugin({
name: '@fullcalendar/timegrid',
initialView: 'timeGridWeek',
optionRefiners: OPTION_REFINERS,
views: {
timeGrid: {
component: internalCommon.DayTimeColsView,
usesMinMaxTime: true,
allDaySlot: true,
slotDuration: '00:30:00',
slotEventOverlap: true, // a bad name. confused with overlap/constraint system
},
timeGridDay: {
type: 'timeGrid',
duration: { days: 1 },
},
timeGridWeek: {
type: 'timeGrid',
duration: { weeks: 1 },
},
},
});
exports["default"] = index;

18
node_modules/@fullcalendar/timegrid/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,18 @@
import { PluginDef } from '@fullcalendar/core';
import '@fullcalendar/daygrid';
declare const OPTION_REFINERS: {
allDaySlot: BooleanConstructor;
};
type ExtraOptionRefiners = typeof OPTION_REFINERS;
declare module '@fullcalendar/core/internal' {
interface BaseOptionRefiners extends ExtraOptionRefiners {
}
}
//# sourceMappingURL=ambient.d.ts.map
declare const _default: PluginDef;
//# sourceMappingURL=index.d.ts.map
export { _default as default };

1198
node_modules/@fullcalendar/timegrid/index.global.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

34
node_modules/@fullcalendar/timegrid/index.js generated vendored Normal file
View File

@ -0,0 +1,34 @@
import { createPlugin } from '@fullcalendar/core/index.js';
import { DayTimeColsView } from './internal.js';
import '@fullcalendar/core/internal.js';
import '@fullcalendar/core/preact.js';
import '@fullcalendar/daygrid/internal.js';
const OPTION_REFINERS = {
allDaySlot: Boolean,
};
var index = createPlugin({
name: '@fullcalendar/timegrid',
initialView: 'timeGridWeek',
optionRefiners: OPTION_REFINERS,
views: {
timeGrid: {
component: DayTimeColsView,
usesMinMaxTime: true,
allDaySlot: true,
slotDuration: '00:30:00',
slotEventOverlap: true, // a bad name. confused with overlap/constraint system
},
timeGridDay: {
type: 'timeGrid',
duration: { days: 1 },
},
timeGridWeek: {
type: 'timeGrid',
duration: { weeks: 1 },
},
},
});
export { index as default };

1157
node_modules/@fullcalendar/timegrid/internal.cjs generated vendored Normal file

File diff suppressed because one or more lines are too long

150
node_modules/@fullcalendar/timegrid/internal.d.ts generated vendored Normal file
View File

@ -0,0 +1,150 @@
import { Duration, CssDimValue } from '@fullcalendar/core';
import { Splitter, DateSpan, EventDef, DateMarker, DateEnv, PositionCache, DateProfile, DateComponent, ViewProps, ChunkContentCallbackArgs, DateProfileGenerator, DayTableModel, Seg, DateRange, EventStore, EventUiHash, EventInteractionState, Slicer, ScrollRequest, Hit, DayTableCell, EventSegUiInteractionState } from '@fullcalendar/core/internal';
import { RefObject, VNode, createElement } from '@fullcalendar/core/preact';
declare class AllDaySplitter extends Splitter {
getKeyInfo(): {
allDay: {};
timed: {};
};
getKeysForDateSpan(dateSpan: DateSpan): string[];
getKeysForEventDef(eventDef: EventDef): string[];
}
interface TimeSlatMeta {
date: DateMarker;
time: Duration;
key: string;
isoTimeStr: string;
isLabeled: boolean;
}
declare function buildSlatMetas(slotMinTime: Duration, slotMaxTime: Duration, explicitLabelInterval: Duration | null, slotDuration: Duration, dateEnv: DateEnv): TimeSlatMeta[];
declare class TimeColsSlatsCoords {
positions: PositionCache;
private dateProfile;
private slotDuration;
constructor(positions: PositionCache, dateProfile: DateProfile, slotDuration: Duration);
safeComputeTop(date: DateMarker): number;
computeDateTop(when: DateMarker, startOfDayDate?: DateMarker): number;
computeTimeTop(duration: Duration): number;
}
interface TimeColsViewState {
slatCoords: TimeColsSlatsCoords | null;
}
declare abstract class TimeColsView extends DateComponent<ViewProps, TimeColsViewState> {
protected allDaySplitter: AllDaySplitter;
protected headerElRef: RefObject<HTMLTableCellElement>;
private rootElRef;
private scrollerElRef;
state: {
slatCoords: any;
};
renderSimpleLayout(headerRowContent: VNode | null, allDayContent: ((contentArg: ChunkContentCallbackArgs) => VNode) | null, timeContent: ((contentArg: ChunkContentCallbackArgs) => VNode) | null): createElement.JSX.Element;
renderHScrollLayout(headerRowContent: VNode | null, allDayContent: ((contentArg: ChunkContentCallbackArgs) => VNode) | null, timeContent: ((contentArg: ChunkContentCallbackArgs) => VNode) | null, colCnt: number, dayMinWidth: number, slatMetas: TimeSlatMeta[], slatCoords: TimeColsSlatsCoords | null): createElement.JSX.Element;
handleScrollTopRequest: (scrollTop: number) => void;
getAllDayMaxEventProps(): {
dayMaxEvents: number | boolean;
dayMaxEventRows: number | false;
};
renderHeadAxis: (rowKey: 'day' | string, frameHeight?: CssDimValue) => createElement.JSX.Element;
renderTableRowAxis: (rowHeight?: number) => createElement.JSX.Element;
handleSlatCoords: (slatCoords: TimeColsSlatsCoords) => void;
}
declare class DayTimeColsView extends TimeColsView {
private buildTimeColsModel;
private buildSlatMetas;
render(): createElement.JSX.Element;
}
declare function buildTimeColsModel(dateProfile: DateProfile, dateProfileGenerator: DateProfileGenerator): DayTableModel;
interface TimeColsSeg extends Seg {
col: number;
start: DateMarker;
end: DateMarker;
}
interface DayTimeColsProps {
dateProfile: DateProfile;
dayTableModel: DayTableModel;
axis: boolean;
slotDuration: Duration;
slatMetas: TimeSlatMeta[];
businessHours: EventStore;
eventStore: EventStore;
eventUiBases: EventUiHash;
dateSelection: DateSpan | null;
eventSelection: string;
eventDrag: EventInteractionState | null;
eventResize: EventInteractionState | null;
tableColGroupNode: VNode;
tableMinWidth: CssDimValue;
clientWidth: number | null;
clientHeight: number | null;
expandRows: boolean;
onScrollTopRequest?: (scrollTop: number) => void;
forPrint: boolean;
onSlatCoords?: (slatCoords: TimeColsSlatsCoords) => void;
}
declare class DayTimeCols extends DateComponent<DayTimeColsProps> {
private buildDayRanges;
private slicer;
private timeColsRef;
render(): createElement.JSX.Element;
}
declare function buildDayRanges(dayTableModel: DayTableModel, dateProfile: DateProfile, dateEnv: DateEnv): DateRange[];
declare class DayTimeColsSlicer extends Slicer<TimeColsSeg, [DateRange[]]> {
sliceRange(range: DateRange, dayRanges: DateRange[]): TimeColsSeg[];
}
interface TimeColsProps {
cells: DayTableCell[];
dateProfile: DateProfile;
slotDuration: Duration;
nowDate: DateMarker;
todayRange: DateRange;
businessHourSegs: TimeColsSeg[];
bgEventSegs: TimeColsSeg[];
fgEventSegs: TimeColsSeg[];
dateSelectionSegs: TimeColsSeg[];
eventSelection: string;
eventDrag: EventSegUiInteractionState | null;
eventResize: EventSegUiInteractionState | null;
tableColGroupNode: VNode;
tableMinWidth: CssDimValue;
clientWidth: number | null;
clientHeight: number | null;
expandRows: boolean;
nowIndicatorSegs: TimeColsSeg[];
onScrollTopRequest?: (scrollTop: number) => void;
forPrint: boolean;
axis: boolean;
slatMetas: TimeSlatMeta[];
onSlatCoords?: (slatCoords: TimeColsSlatsCoords) => void;
isHitComboAllowed?: (hit0: Hit, hit1: Hit) => boolean;
}
interface TimeColsState {
slatCoords: TimeColsSlatsCoords | null;
}
declare class TimeCols extends DateComponent<TimeColsProps, TimeColsState> {
private processSlotOptions;
private scrollResponder;
private colCoords;
state: {
slatCoords: any;
};
render(): createElement.JSX.Element;
handleRootEl: (el: HTMLElement | null) => void;
componentDidMount(): void;
componentDidUpdate(prevProps: TimeColsProps): void;
componentWillUnmount(): void;
handleScrollRequest: (request: ScrollRequest) => boolean;
handleColCoords: (colCoords: PositionCache | null) => void;
handleSlatCoords: (slatCoords: TimeColsSlatsCoords | null) => void;
queryHit(positionLeft: number, positionTop: number): Hit;
}
export { DayTimeCols, DayTimeColsSlicer, DayTimeColsView, TimeCols, TimeColsSeg, TimeColsSlatsCoords, TimeColsView, TimeSlatMeta, buildDayRanges, buildSlatMetas, buildTimeColsModel };

1145
node_modules/@fullcalendar/timegrid/internal.js generated vendored Normal file

File diff suppressed because one or more lines are too long

58
node_modules/@fullcalendar/timegrid/package.json generated vendored Normal file
View File

@ -0,0 +1,58 @@
{
"name": "@fullcalendar/timegrid",
"version": "6.1.17",
"title": "FullCalendar Time Grid Plugin",
"description": "Display events on time slots",
"keywords": [
"calendar",
"event",
"full-sized",
"fullcalendar",
"time",
"slots"
],
"homepage": "https://fullcalendar.io/docs/timegrid-view",
"dependencies": {
"@fullcalendar/daygrid": "~6.1.17"
},
"peerDependencies": {
"@fullcalendar/core": "~6.1.17"
},
"type": "module",
"bugs": "https://fullcalendar.io/reporting-bugs",
"repository": {
"type": "git",
"url": "https://github.com/fullcalendar/fullcalendar.git",
"directory": "packages/timegrid"
},
"license": "MIT",
"author": {
"name": "Adam Shaw",
"email": "arshaw@arshaw.com",
"url": "http://arshaw.com/"
},
"copyright": "2024 Adam Shaw",
"types": "./index.d.ts",
"main": "./index.cjs",
"module": "./index.js",
"unpkg": "./index.global.min.js",
"jsdelivr": "./index.global.min.js",
"exports": {
"./package.json": "./package.json",
"./index.cjs": "./index.cjs",
"./index.js": "./index.js",
".": {
"types": "./index.d.ts",
"require": "./index.cjs",
"import": "./index.js"
},
"./internal.cjs": "./internal.cjs",
"./internal.js": "./internal.js",
"./internal": {
"types": "./internal.d.ts",
"require": "./internal.cjs",
"import": "./internal.js"
}
},
"sideEffects": false
}