@burdenoff/microfe-calendar 2026.706.1 → 2026.715.1
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.
- package/dist/CalendarRoot.d.ts +33 -0
- package/dist/CalendarRoot.d.ts.map +1 -0
- package/dist/CalendarRoutes.d.ts +21 -0
- package/dist/CalendarRoutes.d.ts.map +1 -0
- package/dist/components/AgendaView.d.ts +6 -0
- package/dist/components/AgendaView.d.ts.map +1 -0
- package/dist/components/AgendaView.js.map +1 -1
- package/dist/components/CalendarErrorState.d.ts +15 -0
- package/dist/components/CalendarErrorState.d.ts.map +1 -0
- package/dist/components/ConfirmDialog.d.ts +16 -0
- package/dist/components/ConfirmDialog.d.ts.map +1 -0
- package/dist/components/DayView.d.ts +11 -0
- package/dist/components/DayView.d.ts.map +1 -0
- package/dist/components/EventBlock.d.ts +8 -0
- package/dist/components/EventBlock.d.ts.map +1 -0
- package/dist/components/EventFormModal.d.ts +14 -0
- package/dist/components/EventFormModal.d.ts.map +1 -0
- package/dist/components/MiniCalendar.d.ts +6 -0
- package/dist/components/MiniCalendar.d.ts.map +1 -0
- package/dist/components/MonthView.d.ts +11 -0
- package/dist/components/MonthView.d.ts.map +1 -0
- package/dist/components/TaskEventDetail.d.ts +4 -0
- package/dist/components/TaskEventDetail.d.ts.map +1 -0
- package/dist/components/TimelineView.d.ts +6 -0
- package/dist/components/TimelineView.d.ts.map +1 -0
- package/dist/components/ViewSwitcher.d.ts +6 -0
- package/dist/components/ViewSwitcher.d.ts.map +1 -0
- package/dist/components/WeekView.d.ts +11 -0
- package/dist/components/WeekView.d.ts.map +1 -0
- package/dist/components/YearView.d.ts +6 -0
- package/dist/components/YearView.d.ts.map +1 -0
- package/dist/constants/permissions.d.ts +90 -0
- package/dist/constants/permissions.d.ts.map +1 -0
- package/dist/dev/main.d.ts +2 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +23527 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +906 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +57851 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/graphql/calendarDocuments.d.ts +36 -0
- package/dist/graphql/calendarDocuments.d.ts.map +1 -0
- package/dist/hooks/useCalendarPermissions.d.ts +14 -0
- package/dist/hooks/useCalendarPermissions.d.ts.map +1 -0
- package/dist/hooks/useEventPermissions.d.ts +15 -0
- package/dist/hooks/useEventPermissions.d.ts.map +1 -0
- package/dist/hooks/useEvents.d.ts +15 -0
- package/dist/hooks/useEvents.d.ts.map +1 -0
- package/dist/hooks/useOpenEvent.d.ts +4 -0
- package/dist/hooks/useOpenEvent.d.ts.map +1 -0
- package/dist/hooks/useSafePermissions.d.ts +2 -0
- package/dist/hooks/useSafePermissions.d.ts.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/pages/CalendarPage.d.ts +5 -0
- package/dist/pages/CalendarPage.d.ts.map +1 -0
- package/dist/pages/EventDetailsPage.d.ts +6 -0
- package/dist/pages/EventDetailsPage.d.ts.map +1 -0
- package/dist/pages/ResourcesPage.d.ts +6 -0
- package/dist/pages/ResourcesPage.d.ts.map +1 -0
- package/dist/pages/ResourcesPage.js +11 -11
- package/dist/pages/ResourcesPage.js.map +1 -1
- package/dist/pages/SettingsPage.d.ts +2 -0
- package/dist/pages/SettingsPage.d.ts.map +1 -0
- package/dist/pages/SubscriptionsPage.d.ts +6 -0
- package/dist/pages/SubscriptionsPage.d.ts.map +1 -0
- package/dist/providers/CalendarProvider.d.ts +32 -0
- package/dist/providers/CalendarProvider.d.ts.map +1 -0
- package/dist/store/calendarStore.d.ts +69 -0
- package/dist/store/calendarStore.d.ts.map +1 -0
- package/dist/types/index.d.ts +372 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/dateHelpers.d.ts +72 -0
- package/dist/utils/dateHelpers.d.ts.map +1 -0
- package/dist/utils/icalHelpers.d.ts +19 -0
- package/dist/utils/icalHelpers.d.ts.map +1 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { CalendarRootProps } from './types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Root component for the Calendar microfrontend.
|
|
6
|
+
*
|
|
7
|
+
* This is the main entry point that host applications import and render.
|
|
8
|
+
* It sets up the necessary providers and renders the internal routing.
|
|
9
|
+
* Automatically registers navigation items with the shell if registration functions are provided.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { CalendarRoot, type CalendarRootProps } from '@burdenoff/micro-fe/calendar';
|
|
14
|
+
*
|
|
15
|
+
* function App() {
|
|
16
|
+
* const props: CalendarRootProps = {
|
|
17
|
+
* basePath: '/calendar',
|
|
18
|
+
* navigate: (path) => router.push(path),
|
|
19
|
+
* currentUser: { id: '1', email: 'user@example.com' },
|
|
20
|
+
* workspaceId: 'ws-123',
|
|
21
|
+
* apiGatewayUrl: 'https://api.example.com',
|
|
22
|
+
* authToken: 'token',
|
|
23
|
+
* defaultView: 'week',
|
|
24
|
+
* onEventSelect: (event) => console.log('Event selected:', event),
|
|
25
|
+
* registerNavItems: (items) => { return () => {}; },
|
|
26
|
+
* };
|
|
27
|
+
*
|
|
28
|
+
* return <CalendarRoot {...props} />;
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare const CalendarRoot: FC<CalendarRootProps>;
|
|
33
|
+
//# sourceMappingURL=CalendarRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalendarRoot.d.ts","sourceRoot":"","sources":["../src/CalendarRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAA0B,MAAM,OAAO,CAAC;AAMxD,OAAO,KAAK,EAAE,iBAAiB,EAAuB,MAAM,SAAS,CAAC;AAGtE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAiG9C,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal routing for the Calendar microfrontend.
|
|
3
|
+
*
|
|
4
|
+
* All routes are relative to the basePath provided by the host.
|
|
5
|
+
* Example: If basePath="/calendar", then:
|
|
6
|
+
* - /calendar → redirects to /calendar/view/week
|
|
7
|
+
* - /calendar/view/week → CalendarPage (week view)
|
|
8
|
+
* - /calendar/event/:eventId → EventDetailsPage
|
|
9
|
+
* - /calendar/resources → ResourcesPage
|
|
10
|
+
* - /calendar/settings → SettingsPage
|
|
11
|
+
* - /calendar/subscriptions → SubscriptionsPage
|
|
12
|
+
*
|
|
13
|
+
* Lazy Loading Strategy:
|
|
14
|
+
* - CalendarPage: Eager (main entry point, most frequently accessed)
|
|
15
|
+
* - EventDetailsPage: Lazy (accessed on-demand)
|
|
16
|
+
* - ResourcesPage: Lazy (secondary feature)
|
|
17
|
+
* - SettingsPage: Lazy (infrequently accessed)
|
|
18
|
+
* - SubscriptionsPage: Lazy (infrequently accessed)
|
|
19
|
+
*/
|
|
20
|
+
export declare function CalendarRoutes(): import("react").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=CalendarRoutes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalendarRoutes.d.ts","sourceRoot":"","sources":["../src/CalendarRoutes.tsx"],"names":[],"mappings":"AA6BA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,cAAc,gCAsD7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgendaView.d.ts","sourceRoot":"","sources":["../../src/components/AgendaView.tsx"],"names":[],"mappings":"AAUA;;;GAGG;AACH,wBAAgB,UAAU,gCAkJzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgendaView.js","names":[],"sources":["../../src/components/AgendaView.tsx"],"sourcesContent":["import { useEffect, useState } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { GlassCard, IllustratedEmptyState } from '@burdenoff/fe-libs/ui';\nimport { useCalendarStore } from '../store/calendarStore';\nimport { addDays, formatTime, isSameDay, startOfDay } from '../utils/dateHelpers';\nimport { useEvents } from '../hooks/useEvents';\nimport { EventBlock } from './EventBlock';\nimport { CalendarErrorState } from './CalendarErrorState';\nimport type { CalendarEvent } from '../types';\n\n/**\n * Agenda view component\n * Shows upcoming events in a chronological list format grouped by date\n */\nexport function AgendaView() {\n const currentDate = useCalendarStore((state) => state.currentDate);\n const { t } = useI18n();\n const tr = (key: string, fallback: string): string => {\n const value = t(key);\n return value === key ? fallback : value;\n };\n\n // Show 30 days of upcoming events\n const rangeStart = startOfDay(currentDate);\n const rangeEnd = addDays(rangeStart, 30);\n const { events, isLoading, error, refetch } = useEvents({\n startDate: rangeStart,\n endDate: rangeEnd,\n });\n const [now, setNow] = useState<Date | null>(null);\n useEffect(() => {\n void Promise.resolve().then(() => setNow(new Date()));\n }, []);\n\n // Group events by date\n const groupedEvents: Map<string, CalendarEvent[]> = new Map();\n events\n .sort((a, b) => a.startTime.getTime() - b.startTime.getTime())\n .forEach((event) => {\n // Key by the LOCAL calendar day (every other view buckets via isSameDay,\n // which is local). Using toISOString() here keyed by UTC, so an all-day\n // overlay task at local midnight landed a day early east of UTC (e.g. IST).\n const d = event.startTime;\n const dateKey = `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(\n d.getDate()
|
|
1
|
+
{"version":3,"file":"AgendaView.js","names":[],"sources":["../../src/components/AgendaView.tsx"],"sourcesContent":["import { useEffect, useState } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { GlassCard, IllustratedEmptyState } from '@burdenoff/fe-libs/ui';\nimport { useCalendarStore } from '../store/calendarStore';\nimport { addDays, formatTime, isSameDay, startOfDay } from '../utils/dateHelpers';\nimport { useEvents } from '../hooks/useEvents';\nimport { EventBlock } from './EventBlock';\nimport { CalendarErrorState } from './CalendarErrorState';\nimport type { CalendarEvent } from '../types';\n\n/**\n * Agenda view component\n * Shows upcoming events in a chronological list format grouped by date\n */\nexport function AgendaView() {\n const currentDate = useCalendarStore((state) => state.currentDate);\n const { t } = useI18n();\n const tr = (key: string, fallback: string): string => {\n const value = t(key);\n return value === key ? fallback : value;\n };\n\n // Show 30 days of upcoming events\n const rangeStart = startOfDay(currentDate);\n const rangeEnd = addDays(rangeStart, 30);\n const { events, isLoading, error, refetch } = useEvents({\n startDate: rangeStart,\n endDate: rangeEnd,\n });\n const [now, setNow] = useState<Date | null>(null);\n useEffect(() => {\n void Promise.resolve().then(() => setNow(new Date()));\n }, []);\n\n // Group events by date\n const groupedEvents: Map<string, CalendarEvent[]> = new Map();\n events\n .sort((a, b) => a.startTime.getTime() - b.startTime.getTime())\n .forEach((event) => {\n // Key by the LOCAL calendar day (every other view buckets via isSameDay,\n // which is local). Using toISOString() here keyed by UTC, so an all-day\n // overlay task at local midnight landed a day early east of UTC (e.g. IST).\n const d = event.startTime;\n const dateKey = `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(\n d.getDate()\n ).padStart(2, '0')}`;\n const existing = groupedEvents.get(dateKey) ?? [];\n existing.push(event);\n groupedEvents.set(dateKey, existing);\n });\n\n const dateGroups = Array.from(groupedEvents.entries());\n\n return (\n <div className=\"@container\">\n <div className=\"max-w-3xl mx-auto\">\n {error && <CalendarErrorState message={error} onRetry={() => void refetch()} />}\n\n {/* Loading indicator */}\n {isLoading && (\n <div className=\"text-center py-2 text-text-tertiary font-text-xs mb-2\">\n {tr('calendar.loadingEvents', 'Loading events...')}\n </div>\n )}\n\n {dateGroups.length === 0 && !isLoading && (\n <GlassCard treatment=\"plain\" className=\"p-card-padding\">\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title={tr('calendar.noUpcomingEvents', 'No upcoming events in the next 30 days')}\n />\n </GlassCard>\n )}\n\n <div className=\"space-y-4\">\n {dateGroups.map(([dateKey, dayEvents]) => {\n const date = new Date(dateKey + 'T00:00:00');\n const today = now !== null && isSameDay(date, now);\n\n return (\n <GlassCard\n key={dateKey}\n treatment={today ? 'insight' : 'metric'}\n glow={today}\n className=\"overflow-hidden\"\n >\n {/* Date header */}\n <div\n className={`px-4 py-2 border-b border-border-seam ${today ? 'bg-accent-wash' : 'bg-bg-elevated'}`}\n >\n <h3\n className={`flex items-center gap-2 font-text-sm font-weight-semibold ${today ? 'text-action-primary-bg' : 'text-text-primary'}`}\n >\n {today && (\n <span\n aria-hidden=\"true\"\n className=\"size-2 rounded-full bg-action-primary-bg motion-safe:animate-vc-glow-pulse\"\n />\n )}\n {today ? `${tr('calendar.today', 'Today')} - ` : ''}\n {date.toLocaleDateString('en-US', {\n weekday: 'long',\n month: 'long',\n day: 'numeric',\n })}\n </h3>\n </div>\n\n {/* Events list */}\n <div className=\"divide-y divide-border-subtle\">\n {dayEvents.map((event) => (\n <div\n key={event.id}\n className=\"px-4 py-3 hover:bg-bg-elevated transition-colors\"\n >\n <div className=\"flex items-start gap-3\">\n {/* Time */}\n <div className=\"w-20 shrink-0\">\n {event.isAllDay ? (\n <span className=\"font-text-xs text-text-tertiary\">\n {tr('calendar.allDay', 'All day')}\n </span>\n ) : (\n <div>\n <span className=\"font-text-sm font-weight-medium text-text-primary\">\n {formatTime(event.startTime)}\n </span>\n <br />\n <span className=\"font-text-xs text-text-tertiary\">\n {formatTime(event.endTime)}\n </span>\n </div>\n )}\n </div>\n\n {/* Event details */}\n <div className=\"flex-1 min-w-0\">\n <EventBlock event={event} />\n {event.location && (\n <p className=\"mt-1 font-text-xs text-text-tertiary truncate\">\n {event.location}\n </p>\n )}\n {event.description && (\n <p className=\"mt-1 font-text-xs text-text-tertiary line-clamp-2\">\n {event.description}\n </p>\n )}\n </div>\n </div>\n </div>\n ))}\n </div>\n </GlassCard>\n );\n })}\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CalendarErrorState — inline error banner for failed event loads.
|
|
3
|
+
*
|
|
4
|
+
* The grid/list views previously read only { events, isLoading } from
|
|
5
|
+
* useEvents and ignored `error`, so a failed fetch rendered as a silent empty
|
|
6
|
+
* calendar. This banner surfaces the failure with a retry, using semantic
|
|
7
|
+
* status tokens (no raw colours).
|
|
8
|
+
*/
|
|
9
|
+
interface CalendarErrorStateProps {
|
|
10
|
+
message: string;
|
|
11
|
+
onRetry?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function CalendarErrorState({ message, onRetry }: CalendarErrorStateProps): import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=CalendarErrorState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalendarErrorState.d.ts","sourceRoot":"","sources":["../../src/components/CalendarErrorState.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,UAAU,uBAAuB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,uBAAuB,+BAgC/E"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ConfirmDialogProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
title: string;
|
|
6
|
+
message: string;
|
|
7
|
+
confirmLabel?: string;
|
|
8
|
+
cancelLabel?: string;
|
|
9
|
+
variant?: 'danger' | 'warning' | 'info';
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
onConfirm: () => void;
|
|
12
|
+
onCancel: () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const ConfirmDialog: FC<ConfirmDialogProps>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=ConfirmDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../../src/components/ConfirmDialog.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAqB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAInD,UAAU,kBAAkB;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAkGhD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface DayViewProps {
|
|
2
|
+
/** Open the create-event modal pre-filled with the clicked slot. Omitted when the user can't create events. */
|
|
3
|
+
onCreateSlot?: (date: Date, hour?: number) => void;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Day view component
|
|
7
|
+
* Shows a single day with hourly time slots and real events
|
|
8
|
+
*/
|
|
9
|
+
export declare function DayView({ onCreateSlot }: DayViewProps): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=DayView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DayView.d.ts","sourceRoot":"","sources":["../../src/components/DayView.tsx"],"names":[],"mappings":"AAQA,UAAU,YAAY;IACpB,+GAA+G;IAC/G,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACpD;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,YAAY,EAAE,EAAE,YAAY,+BA6HrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventBlock.d.ts","sourceRoot":"","sources":["../../src/components/EventBlock.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,UAAU,eAAe;IACvB,KAAK,EAAE,aAAa,CAAC;CACtB;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,EAAE,eAAe,+BAkDpD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { CalendarEvent } from '../types';
|
|
3
|
+
|
|
4
|
+
interface EventFormModalProps {
|
|
5
|
+
open: boolean;
|
|
6
|
+
event?: CalendarEvent | null;
|
|
7
|
+
defaultDate?: Date;
|
|
8
|
+
defaultStartHour?: number;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
onSuccess?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const EventFormModal: FC<EventFormModalProps>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=EventFormModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventFormModal.d.ts","sourceRoot":"","sources":["../../src/components/EventFormModal.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAgC,KAAK,EAAE,EAAkB,MAAM,OAAO,CAAC;AAiB9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,UAAU,mBAAmB;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7B,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AA6CD,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAksBlD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MiniCalendar.d.ts","sourceRoot":"","sources":["../../src/components/MiniCalendar.tsx"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,YAAY,gCAqF3B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface MonthViewProps {
|
|
2
|
+
/** Open the create-event modal pre-filled with the clicked day. Omitted when the user can't create events. */
|
|
3
|
+
onCreateSlot?: (date: Date, hour?: number) => void;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Month view component
|
|
7
|
+
* Shows a traditional month calendar grid with real events
|
|
8
|
+
*/
|
|
9
|
+
export declare function MonthView({ onCreateSlot }: MonthViewProps): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=MonthView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MonthView.d.ts","sourceRoot":"","sources":["../../src/components/MonthView.tsx"],"names":[],"mappings":"AAgBA,UAAU,cAAc;IACtB,8GAA8G;IAC9G,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACpD;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EAAE,YAAY,EAAE,EAAE,cAAc,+BAiHzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskEventDetail.d.ts","sourceRoot":"","sources":["../../src/components/TaskEventDetail.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAqB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAiBnD,eAAO,MAAM,eAAe,EAAE,EA+G7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimelineView.d.ts","sourceRoot":"","sources":["../../src/components/TimelineView.tsx"],"names":[],"mappings":"AASA;;;GAGG;AACH,wBAAgB,YAAY,gCA+H3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewSwitcher.d.ts","sourceRoot":"","sources":["../../src/components/ViewSwitcher.tsx"],"names":[],"mappings":"AAMA;;;GAGG;AACH,wBAAgB,YAAY,gCAyC3B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface WeekViewProps {
|
|
2
|
+
/** Open the create-event modal pre-filled with the clicked slot. Omitted when the user can't create events. */
|
|
3
|
+
onCreateSlot?: (date: Date, hour?: number) => void;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Week view component
|
|
7
|
+
* Shows a 7-day calendar grid with hourly time slots and events
|
|
8
|
+
*/
|
|
9
|
+
export declare function WeekView({ onCreateSlot }: WeekViewProps): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=WeekView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WeekView.d.ts","sourceRoot":"","sources":["../../src/components/WeekView.tsx"],"names":[],"mappings":"AASA,UAAU,aAAa;IACrB,+GAA+G;IAC/G,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACpD;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EAAE,YAAY,EAAE,EAAE,aAAa,+BAqKvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"YearView.d.ts","sourceRoot":"","sources":["../../src/components/YearView.tsx"],"names":[],"mappings":"AAeA;;;GAGG;AACH,wBAAgB,QAAQ,gCA+HvB"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calendar Permission Constants
|
|
3
|
+
*
|
|
4
|
+
* All permission strings for Calendar resources.
|
|
5
|
+
* Use with the usePermissions hook: hasPermission(CALENDAR_PERMISSIONS.CALENDAR_EVENT_CREATE)
|
|
6
|
+
*
|
|
7
|
+
* Resource types match the @rbac directives in wspace-calendar-svc:
|
|
8
|
+
* - calendar: read, create, update, delete, manage
|
|
9
|
+
* - calendar-event: read, create, update, delete
|
|
10
|
+
* - calendar-attendee: read, create, update, delete
|
|
11
|
+
* - calendar-availability:read, create, update, delete
|
|
12
|
+
* - calendar-blackout: read, create, delete
|
|
13
|
+
* - calendar-booking: read, create, update, delete, manage
|
|
14
|
+
* - calendar-booking-page:read, create, update, delete
|
|
15
|
+
* - calendar-resource: read, create, update, delete
|
|
16
|
+
* - calendar-resource-booking: create, update, delete, manage
|
|
17
|
+
* - calendar-share: share, update, delete
|
|
18
|
+
* - calendar-sync: read, create, update, delete, execute, manage
|
|
19
|
+
* - calendar-webhook: read, create, update, delete, execute
|
|
20
|
+
* - calendar-prompt: read, create, update, execute
|
|
21
|
+
* - calendar-reminder: create, delete, execute
|
|
22
|
+
* - calendar-agent-task: read, list, update, delete, execute
|
|
23
|
+
*/
|
|
24
|
+
export declare const CALENDAR_PERMISSIONS: {
|
|
25
|
+
readonly CALENDAR_READ: "calendar:read";
|
|
26
|
+
readonly CALENDAR_CREATE: "calendar:create";
|
|
27
|
+
readonly CALENDAR_UPDATE: "calendar:update";
|
|
28
|
+
readonly CALENDAR_DELETE: "calendar:delete";
|
|
29
|
+
readonly CALENDAR_MANAGE: "calendar:manage";
|
|
30
|
+
readonly CALENDAR_EVENT_READ: "calendar-event:read";
|
|
31
|
+
readonly CALENDAR_EVENT_CREATE: "calendar-event:create";
|
|
32
|
+
readonly CALENDAR_EVENT_UPDATE: "calendar-event:update";
|
|
33
|
+
readonly CALENDAR_EVENT_DELETE: "calendar-event:delete";
|
|
34
|
+
readonly CALENDAR_ATTENDEE_READ: "calendar-attendee:read";
|
|
35
|
+
readonly CALENDAR_ATTENDEE_CREATE: "calendar-attendee:create";
|
|
36
|
+
readonly CALENDAR_ATTENDEE_UPDATE: "calendar-attendee:update";
|
|
37
|
+
readonly CALENDAR_ATTENDEE_DELETE: "calendar-attendee:delete";
|
|
38
|
+
readonly CALENDAR_AVAILABILITY_READ: "calendar-availability:read";
|
|
39
|
+
readonly CALENDAR_AVAILABILITY_CREATE: "calendar-availability:create";
|
|
40
|
+
readonly CALENDAR_AVAILABILITY_UPDATE: "calendar-availability:update";
|
|
41
|
+
readonly CALENDAR_AVAILABILITY_DELETE: "calendar-availability:delete";
|
|
42
|
+
readonly CALENDAR_BLACKOUT_READ: "calendar-blackout:read";
|
|
43
|
+
readonly CALENDAR_BLACKOUT_CREATE: "calendar-blackout:create";
|
|
44
|
+
readonly CALENDAR_BLACKOUT_DELETE: "calendar-blackout:delete";
|
|
45
|
+
readonly CALENDAR_BOOKING_READ: "calendar-booking:read";
|
|
46
|
+
readonly CALENDAR_BOOKING_CREATE: "calendar-booking:create";
|
|
47
|
+
readonly CALENDAR_BOOKING_UPDATE: "calendar-booking:update";
|
|
48
|
+
readonly CALENDAR_BOOKING_DELETE: "calendar-booking:delete";
|
|
49
|
+
readonly CALENDAR_BOOKING_MANAGE: "calendar-booking:manage";
|
|
50
|
+
readonly CALENDAR_BOOKING_PAGE_READ: "calendar-booking-page:read";
|
|
51
|
+
readonly CALENDAR_BOOKING_PAGE_CREATE: "calendar-booking-page:create";
|
|
52
|
+
readonly CALENDAR_BOOKING_PAGE_UPDATE: "calendar-booking-page:update";
|
|
53
|
+
readonly CALENDAR_BOOKING_PAGE_DELETE: "calendar-booking-page:delete";
|
|
54
|
+
readonly CALENDAR_RESOURCE_READ: "calendar-resource:read";
|
|
55
|
+
readonly CALENDAR_RESOURCE_CREATE: "calendar-resource:create";
|
|
56
|
+
readonly CALENDAR_RESOURCE_UPDATE: "calendar-resource:update";
|
|
57
|
+
readonly CALENDAR_RESOURCE_DELETE: "calendar-resource:delete";
|
|
58
|
+
readonly CALENDAR_RESOURCE_BOOKING_CREATE: "calendar-resource-booking:create";
|
|
59
|
+
readonly CALENDAR_RESOURCE_BOOKING_UPDATE: "calendar-resource-booking:update";
|
|
60
|
+
readonly CALENDAR_RESOURCE_BOOKING_DELETE: "calendar-resource-booking:delete";
|
|
61
|
+
readonly CALENDAR_RESOURCE_BOOKING_MANAGE: "calendar-resource-booking:manage";
|
|
62
|
+
readonly CALENDAR_SHARE_SHARE: "calendar-share:share";
|
|
63
|
+
readonly CALENDAR_SHARE_UPDATE: "calendar-share:update";
|
|
64
|
+
readonly CALENDAR_SHARE_DELETE: "calendar-share:delete";
|
|
65
|
+
readonly CALENDAR_SYNC_READ: "calendar-sync:read";
|
|
66
|
+
readonly CALENDAR_SYNC_CREATE: "calendar-sync:create";
|
|
67
|
+
readonly CALENDAR_SYNC_UPDATE: "calendar-sync:update";
|
|
68
|
+
readonly CALENDAR_SYNC_DELETE: "calendar-sync:delete";
|
|
69
|
+
readonly CALENDAR_SYNC_EXECUTE: "calendar-sync:execute";
|
|
70
|
+
readonly CALENDAR_SYNC_MANAGE: "calendar-sync:manage";
|
|
71
|
+
readonly CALENDAR_WEBHOOK_READ: "calendar-webhook:read";
|
|
72
|
+
readonly CALENDAR_WEBHOOK_CREATE: "calendar-webhook:create";
|
|
73
|
+
readonly CALENDAR_WEBHOOK_UPDATE: "calendar-webhook:update";
|
|
74
|
+
readonly CALENDAR_WEBHOOK_DELETE: "calendar-webhook:delete";
|
|
75
|
+
readonly CALENDAR_WEBHOOK_EXECUTE: "calendar-webhook:execute";
|
|
76
|
+
readonly CALENDAR_PROMPT_READ: "calendar-prompt:read";
|
|
77
|
+
readonly CALENDAR_PROMPT_CREATE: "calendar-prompt:create";
|
|
78
|
+
readonly CALENDAR_PROMPT_UPDATE: "calendar-prompt:update";
|
|
79
|
+
readonly CALENDAR_PROMPT_EXECUTE: "calendar-prompt:execute";
|
|
80
|
+
readonly CALENDAR_REMINDER_CREATE: "calendar-reminder:create";
|
|
81
|
+
readonly CALENDAR_REMINDER_DELETE: "calendar-reminder:delete";
|
|
82
|
+
readonly CALENDAR_REMINDER_EXECUTE: "calendar-reminder:execute";
|
|
83
|
+
readonly CALENDAR_AGENT_TASK_LIST: "calendar-agent-task:list";
|
|
84
|
+
readonly CALENDAR_AGENT_TASK_READ: "calendar-agent-task:read";
|
|
85
|
+
readonly CALENDAR_AGENT_TASK_UPDATE: "calendar-agent-task:update";
|
|
86
|
+
readonly CALENDAR_AGENT_TASK_DELETE: "calendar-agent-task:delete";
|
|
87
|
+
readonly CALENDAR_AGENT_TASK_EXECUTE: "calendar-agent-task:execute";
|
|
88
|
+
};
|
|
89
|
+
export type CalendarPermission = (typeof CALENDAR_PERMISSIONS)[keyof typeof CALENDAR_PERMISSIONS];
|
|
90
|
+
//# sourceMappingURL=permissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/constants/permissions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6FvB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/dev/main.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AASH,OAAO,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-operations.d.ts","sourceRoot":"","sources":["../../src/generated/global-operations.ts"],"names":[],"mappings":""}
|