Add yet-another-react-lightbox package and update .gitignore to exclude node_modules

This commit is contained in:
IGNY8 VPS (Salman)
2025-11-12 18:50:30 +00:00
parent bd2a5570a9
commit c92f4a5edd
9304 changed files with 29 additions and 2008667 deletions

View File

@@ -1,22 +0,0 @@
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.

View File

@@ -1,32 +0,0 @@
# 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()
```

View File

@@ -1,38 +0,0 @@
'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;

View File

@@ -1,18 +0,0 @@
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 };

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,34 +0,0 @@
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 };

File diff suppressed because one or more lines are too long

View File

@@ -1,150 +0,0 @@
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 };

File diff suppressed because one or more lines are too long

View File

@@ -1,58 +0,0 @@
{
"name": "@fullcalendar/timegrid",
"version": "6.1.15",
"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.15"
},
"peerDependencies": {
"@fullcalendar/core": "~6.1.15"
},
"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
}