Skip to content
Snippets Groups Projects
Commit 71e07c06 authored by Nadja Geisler's avatar Nadja Geisler :sunny:
Browse files

WIP: enable availability selection for AKs

availabilities in AK submission
availabilities in AK wish submission
parent 55f5ee2d
Branches
No related tags found
No related merge requests found
Showing
with 467 additions and 241 deletions
...@@ -13,8 +13,22 @@ declare module '@fullcalendar/daygrid' { ...@@ -13,8 +13,22 @@ declare module '@fullcalendar/daygrid' {
} }
declare module '@fullcalendar/daygrid/SimpleDayGrid' { declare module '@fullcalendar/daygrid/SimpleDayGrid' {
import { DateProfile, EventStore, EventUiHash, DateSpan, EventInteractionState, DayTable, Duration, DateComponent, DateRange, Slicer, Hit, ComponentContext } from '@fullcalendar/core'; import {
import { default as DayGrid, DayGridSeg } from '@fullcalendar/daygrid/DayGrid'; ComponentContext,
DateComponent,
DateProfile,
DateRange,
DateSpan,
DayTable,
Duration,
EventInteractionState,
EventStore,
EventUiHash,
Hit,
Slicer
} from '@fullcalendar/core';
import {DayGridSeg, default as DayGrid} from '@fullcalendar/daygrid/DayGrid';
export interface SimpleDayGridProps { export interface SimpleDayGridProps {
dateProfile: DateProfile | null; dateProfile: DateProfile | null;
dayTable: DayTable; dayTable: DayTable;
...@@ -43,10 +57,18 @@ declare module '@fullcalendar/daygrid/SimpleDayGrid' { ...@@ -43,10 +57,18 @@ declare module '@fullcalendar/daygrid/SimpleDayGrid' {
} }
declare module '@fullcalendar/daygrid/DayGrid' { declare module '@fullcalendar/daygrid/DayGrid' {
import { PositionCache, DateMarker, DateComponent, EventSegUiInteractionState, Seg, DateProfile } from '@fullcalendar/core'; import {
DateComponent,
DateMarker,
DateProfile,
EventSegUiInteractionState,
PositionCache,
Seg
} from '@fullcalendar/core';
import Popover from '@fullcalendar/daygrid/Popover'; import Popover from '@fullcalendar/daygrid/Popover';
import DayGridEventRenderer from '@fullcalendar/daygrid/DayGridEventRenderer'; import DayGridEventRenderer from '@fullcalendar/daygrid/DayGridEventRenderer';
import DayTile from '@fullcalendar/daygrid/DayTile'; import DayTile from '@fullcalendar/daygrid/DayTile';
export interface RenderProps { export interface RenderProps {
renderNumberIntroHtml: (row: number, dayGrid: DayGrid) => string; renderNumberIntroHtml: (row: number, dayGrid: DayGrid) => string;
renderBgIntroHtml: () => string; renderBgIntroHtml: () => string;
...@@ -146,16 +168,27 @@ declare module '@fullcalendar/daygrid/DayGrid' { ...@@ -146,16 +168,27 @@ declare module '@fullcalendar/daygrid/DayGrid' {
} }
declare module '@fullcalendar/daygrid/AbstractDayGridView' { declare module '@fullcalendar/daygrid/AbstractDayGridView' {
import { ScrollComponent, View, ComponentContext, ViewSpec, DateProfileGenerator, Duration } from '@fullcalendar/core'; import {
ComponentContext,
DateProfileGenerator,
Duration,
ScrollComponent,
View,
ViewSpec
} from '@fullcalendar/core';
import DayGrid from '@fullcalendar/daygrid/DayGrid'; import DayGrid from '@fullcalendar/daygrid/DayGrid';
export { DayGridView as default, DayGridView }; export {DayGridView as default, DayGridView};
abstract class DayGridView extends View { abstract class DayGridView extends View {
scroller: ScrollComponent; scroller: ScrollComponent;
dayGrid: DayGrid; dayGrid: DayGrid;
colWeekNumbersVisible: boolean; colWeekNumbersVisible: boolean;
weekNumberWidth: number; weekNumberWidth: number;
constructor(context: ComponentContext, viewSpec: ViewSpec, dateProfileGenerator: DateProfileGenerator, parentEl: HTMLElement); constructor(context: ComponentContext, viewSpec: ViewSpec, dateProfileGenerator: DateProfileGenerator, parentEl: HTMLElement);
destroy(): void; destroy(): void;
renderSkeletonHtml(): string; renderSkeletonHtml(): string;
weekNumberStyleAttr(): string; weekNumberStyleAttr(): string;
hasRigidRows(): boolean; hasRigidRows(): boolean;
...@@ -178,27 +211,41 @@ declare module '@fullcalendar/daygrid/AbstractDayGridView' { ...@@ -178,27 +211,41 @@ declare module '@fullcalendar/daygrid/AbstractDayGridView' {
} }
declare module '@fullcalendar/daygrid/DayGridView' { declare module '@fullcalendar/daygrid/DayGridView' {
import { DayHeader, ComponentContext, ViewSpec, DateProfileGenerator, DateProfile, ViewProps, DayTable } from '@fullcalendar/core'; import {
ComponentContext,
DateProfile,
DateProfileGenerator,
DayHeader,
DayTable,
ViewProps,
ViewSpec
} from '@fullcalendar/core';
import AbstractDayGridView from '@fullcalendar/daygrid/AbstractDayGridView'; import AbstractDayGridView from '@fullcalendar/daygrid/AbstractDayGridView';
import SimpleDayGrid from '@fullcalendar/daygrid/SimpleDayGrid'; import SimpleDayGrid from '@fullcalendar/daygrid/SimpleDayGrid';
export { DayGridView as default, DayGridView }; export {DayGridView as default, DayGridView};
class DayGridView extends AbstractDayGridView { class DayGridView extends AbstractDayGridView {
header: DayHeader; header: DayHeader;
simpleDayGrid: SimpleDayGrid; simpleDayGrid: SimpleDayGrid;
dayTable: DayTable; dayTable: DayTable;
constructor(_context: ComponentContext, viewSpec: ViewSpec, dateProfileGenerator: DateProfileGenerator, parentEl: HTMLElement); constructor(_context: ComponentContext, viewSpec: ViewSpec, dateProfileGenerator: DateProfileGenerator, parentEl: HTMLElement);
destroy(): void; destroy(): void;
render(props: ViewProps): void; render(props: ViewProps): void;
} }
export function buildDayTable(dateProfile: DateProfile, dateProfileGenerator: DateProfileGenerator): DayTable; export function buildDayTable(dateProfile: DateProfile, dateProfileGenerator: DateProfileGenerator): DayTable;
} }
declare module '@fullcalendar/daygrid/DayBgRow' { declare module '@fullcalendar/daygrid/DayBgRow' {
import { ComponentContext, DateMarker, DateProfile } from '@fullcalendar/core'; import {ComponentContext, DateMarker, DateProfile} from '@fullcalendar/core';
export interface DayBgCell { export interface DayBgCell {
date: DateMarker; date: DateMarker;
htmlAttrs?: string; htmlAttrs?: string;
} }
export interface DayBgRowProps { export interface DayBgRowProps {
cells: DayBgCell[]; cells: DayBgCell[];
dateProfile: DateProfile; dateProfile: DateProfile;
...@@ -241,7 +288,7 @@ declare module '@fullcalendar/daygrid/Popover' { ...@@ -241,7 +288,7 @@ declare module '@fullcalendar/daygrid/Popover' {
} }
declare module '@fullcalendar/daygrid/DayGridEventRenderer' { declare module '@fullcalendar/daygrid/DayGridEventRenderer' {
import { Seg } from '@fullcalendar/core'; import {Seg} from '@fullcalendar/core';
import DayGrid from '@fullcalendar/daygrid/DayGrid'; import DayGrid from '@fullcalendar/daygrid/DayGrid';
import SimpleDayGridEventRenderer from '@fullcalendar/daygrid/SimpleDayGridEventRenderer'; import SimpleDayGridEventRenderer from '@fullcalendar/daygrid/SimpleDayGridEventRenderer';
export { DayGridEventRenderer as default, DayGridEventRenderer }; export { DayGridEventRenderer as default, DayGridEventRenderer };
...@@ -267,8 +314,9 @@ declare module '@fullcalendar/daygrid/DayGridEventRenderer' { ...@@ -267,8 +314,9 @@ declare module '@fullcalendar/daygrid/DayGridEventRenderer' {
} }
declare module '@fullcalendar/daygrid/DayTile' { declare module '@fullcalendar/daygrid/DayTile' {
import { DateComponent, Seg, Hit, DateMarker, ComponentContext, EventInstanceHash } from '@fullcalendar/core'; import {ComponentContext, DateComponent, DateMarker, EventInstanceHash, Hit, Seg} from '@fullcalendar/core';
import SimpleDayGridEventRenderer from '@fullcalendar/daygrid/SimpleDayGridEventRenderer'; import SimpleDayGridEventRenderer from '@fullcalendar/daygrid/SimpleDayGridEventRenderer';
export interface DayTileProps { export interface DayTileProps {
date: DateMarker; date: DateMarker;
fgSegs: Seg[]; fgSegs: Seg[];
...@@ -294,7 +342,7 @@ declare module '@fullcalendar/daygrid/DayTile' { ...@@ -294,7 +342,7 @@ declare module '@fullcalendar/daygrid/DayTile' {
} }
declare module '@fullcalendar/daygrid/SimpleDayGridEventRenderer' { declare module '@fullcalendar/daygrid/SimpleDayGridEventRenderer' {
import { FgEventRenderer, Seg } from '@fullcalendar/core'; import {FgEventRenderer, Seg} from '@fullcalendar/core';
export { SimpleDayGridEventRenderer as default, SimpleDayGridEventRenderer }; export { SimpleDayGridEventRenderer as default, SimpleDayGridEventRenderer };
abstract class SimpleDayGridEventRenderer extends FgEventRenderer { abstract class SimpleDayGridEventRenderer extends FgEventRenderer {
renderSegHtml(seg: Seg, mirrorInfo: any): string; renderSegHtml(seg: Seg, mirrorInfo: any): string;
......
...@@ -4,7 +4,50 @@ Docs & License: https://fullcalendar.io/ ...@@ -4,7 +4,50 @@ Docs & License: https://fullcalendar.io/
(c) 2019 Adam Shaw (c) 2019 Adam Shaw
*/ */
import { addWeeks, diffWeeks, DateProfileGenerator, createElement, listenBySelector, removeElement, computeRect, computeClippingRect, applyStyle, cssToStr, htmlEscape, FgEventRenderer, appendToElement, prependToElement, htmlToElement, FillRenderer, memoizeRendering, createFormatter, addDays, DateComponent, rangeContainsMarker, getDayClasses, findElements, PositionCache, buildGotoAnchorHtml, findChildren, insertAfterElement, intersectRanges, ScrollComponent, matchCellWidths, uncompensateScroll, compensateScroll, subtractInnerElHeight, distributeHeight, undistributeHeight, View, Slicer, memoize, DayHeader, DaySeries, DayTable, createPlugin } from '@fullcalendar/core'; import {
addDays,
addWeeks,
appendToElement,
applyStyle,
buildGotoAnchorHtml,
compensateScroll,
computeClippingRect,
computeRect,
createElement,
createFormatter,
createPlugin,
cssToStr,
DateComponent,
DateProfileGenerator,
DayHeader,
DaySeries,
DayTable,
diffWeeks,
distributeHeight,
FgEventRenderer,
FillRenderer,
findChildren,
findElements,
getDayClasses,
htmlEscape,
htmlToElement,
insertAfterElement,
intersectRanges,
listenBySelector,
matchCellWidths,
memoize,
memoizeRendering,
PositionCache,
prependToElement,
rangeContainsMarker,
removeElement,
ScrollComponent,
Slicer,
subtractInnerElHeight,
uncompensateScroll,
undistributeHeight,
View
} from '@fullcalendar/core';
/*! ***************************************************************************** /*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved. Copyright (c) Microsoft Corporation. All rights reserved.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment