loon-bulma-react 2026.0.64 → 2026.0.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ type HeightExtension = 'px' | 'vh' | 'em' | '%';
3
+ type HeightType = `${number}${HeightExtension}`;
4
+ export declare function CalendarContainer({ children, style: styleProp, height, ...props }: {
5
+ height?: HeightType;
6
+ children: React.ReactNode;
7
+ } & React.HtmlHTMLAttributes<HTMLDivElement>): React.JSX.Element;
8
+ export {};
@@ -14,6 +14,8 @@ type DayContainerProps<T extends BaseEventProps> = {
14
14
  date: JSDateTime;
15
15
  /** Behoort deze dag tot de huidige maand ? */
16
16
  isCurrentMonth?: boolean;
17
+ noHeader?: boolean | undefined;
18
+ noBorder?: boolean | undefined;
17
19
  calendarType: CalendarType;
18
20
  };
19
21
  /**
@@ -21,5 +23,5 @@ type DayContainerProps<T extends BaseEventProps> = {
21
23
  * @param props
22
24
  * @returns
23
25
  */
24
- export declare function DayContainer<T extends BaseEventProps>({ options, date, onDayClick, onEventClick, events, calendarType, isCurrentMonth, }: DayContainerProps<T>): React.JSX.Element;
26
+ export declare function DayContainer<T extends BaseEventProps>({ options, date, onDayClick, onEventClick, events, calendarType, isCurrentMonth, noHeader, noBorder, }: DayContainerProps<T>): React.JSX.Element;
25
27
  export {};
@@ -20,8 +20,12 @@ type NotAllDayDescProps<T extends BaseEventProps> = {
20
20
  export declare function NotAllDayDesc<T extends BaseEventProps>({ evt, options, calendarType, isHovered }: NotAllDayDescProps<T>): React.JSX.Element;
21
21
  type MoreEventsViewProps<T extends BaseEventProps> = {
22
22
  calendarType: CalendarType;
23
- /** De events op deze dag */
24
- events: T[];
23
+ /** Alle events op deze dag */
24
+ allEvents: T[];
25
+ /** Datumlabel voor de overlay */
26
+ dateLabel: string;
27
+ /** Aantal events dat niet zichtbaar is in de day-container */
28
+ hiddenCount: number;
25
29
  /** Event-click handling */
26
30
  onEventClick?: (event: T, clickEvent: React.MouseEvent<HTMLElement>) => void;
27
31
  /** Global event options */
@@ -35,5 +39,5 @@ type MoreEventsViewProps<T extends BaseEventProps> = {
35
39
  * @param props
36
40
  * @returns
37
41
  */
38
- export declare function MoreEventsView<T extends BaseEventProps>({ events, onEventClick, options, calendarType }: MoreEventsViewProps<T>): React.JSX.Element;
42
+ export declare function MoreEventsView<T extends BaseEventProps>({ allEvents, dateLabel, hiddenCount, onEventClick, options, calendarType }: MoreEventsViewProps<T>): React.JSX.Element;
39
43
  export {};
@@ -0,0 +1,21 @@
1
+ import { JSDateTime } from './../../../utils/JSDateTime.class';
2
+ import React from 'react';
3
+ import { BaseEventProps, CalendarOptions } from '../Props';
4
+ export type ListViewProps<T extends BaseEventProps> = {
5
+ /** Events voor deze view */
6
+ events: T[];
7
+ /** Opties voor deze view */
8
+ options?: CalendarOptions<T>;
9
+ /** Event aangeklikt */
10
+ onEventClick?: (e: T, event: React.MouseEvent<HTMLElement>) => void;
11
+ /** Dag-datum geklikt? */
12
+ onDayClick?: (date: JSDateTime, event: React.MouseEvent<HTMLElement>) => void;
13
+ /** Huidige geselecteerde datum */
14
+ viewDate: Date | JSDateTime;
15
+ };
16
+ /**
17
+ * Maak een maand-view (grid) met events
18
+ * @param props
19
+ * @returns
20
+ */
21
+ export declare function ListView<T extends BaseEventProps>({ viewDate: vd, options, onEventClick, onDayClick, events: orgEvents }: ListViewProps<T>): React.JSX.Element;
@@ -1,7 +1,15 @@
1
1
  import { ColorProp } from './../../types';
2
2
  import { JSDateTime } from './../../utils/JSDateTime.class';
3
3
  import { Locale } from 'date-fns';
4
- export type CalendarType = 'm' | 'v' | 'w' | 'p';
4
+ /**
5
+ * Type voor de verschillende calendar-types
6
+ * - `m`onthview
7
+ * - `v`ierwekenview
8
+ * - `w`eekview
9
+ * - `p`lanningview
10
+ * - `l`istview
11
+ */
12
+ export type CalendarType = 'm' | 'v' | 'w' | 'p' | 'l';
5
13
  export type CalendarHours = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | (number & {});
6
14
  export type BaseEventProps = {
7
15
  /** ID van een event */
@@ -26,10 +34,8 @@ export type BaseEventProps = {
26
34
  tooltip?: React.ReactNode | string | undefined;
27
35
  };
28
36
  export type CalendarOptions<T extends BaseEventProps> = {
29
- /** begin-uur voor de weekview, het 1e zichtbare uur in de calendar. default = `0`, '00:00', of 24:00. Kan alleen in de ochtend zijn */
30
- firstHour?: CalendarHours;
31
- /** eind-uur voor de weekview, het 1e zichtbare uur in de calendar */
32
- lastHour?: CalendarHours;
37
+ /** startscroll-uur voor de weekview. Hiermee bepaal je welk uur als eerste zichtbaar is bij het openen. */
38
+ initialTime?: CalendarHours;
33
39
  /** De locale voor de calendar. default = 'nl-NL' */
34
40
  locale?: Locale;
35
41
  /** Zichtbare dagen als set (default 1,2,3,4,5,6,7 (ma = 1, di = 2,... zo = 7)) */
@@ -1,15 +1,19 @@
1
- import { FourweeksView } from "./Fourweeks/FourweeksView";
2
- import { MonthView, MonthViewProps } from "./Month/MonthView";
3
- import { PlanningView, PlanningViewProps } from "./Planning/PlanningView";
4
- import { WeekView, WeekViewProps } from "./Week/WeekView";
5
- import { CalendarType } from "./Props";
6
- import { MiniView } from "./Mini/MiniView";
1
+ import { FourweeksView } from './Fourweeks/FourweeksView';
2
+ import { MonthView, MonthViewProps } from './Month/MonthView';
3
+ import { PlanningView, PlanningViewProps } from './Planning/PlanningView';
4
+ import { WeekView, WeekViewProps } from './Week/WeekView';
5
+ import { CalendarType } from './Props';
6
+ import { MiniView } from './Mini/MiniView';
7
+ import { CalendarContainer } from './Container';
8
+ import { ListView, ListViewProps } from './List/List';
7
9
  declare const Calendar: {
8
10
  Month: typeof MonthView;
9
11
  Week: typeof WeekView;
10
12
  Fourweeks: typeof FourweeksView;
11
13
  Planning: typeof PlanningView;
14
+ List: typeof ListView;
12
15
  Mini: typeof MiniView;
16
+ Container: typeof CalendarContainer;
13
17
  };
14
18
  export { Calendar };
15
- export type { WeekViewProps, MonthViewProps, PlanningViewProps, CalendarType };
19
+ export type { WeekViewProps, MonthViewProps, PlanningViewProps, ListViewProps, CalendarType };