@burdenoff/microfe-calendar 2026.1124.1 → 2026.1124.2
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/generated/wspace-operations.d.ts +189 -0
- package/dist/generated/wspace-operations.js +63 -2
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +1243 -10
- package/dist/hooks/useSafePermissions.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/providers/CalendarProvider.d.ts +3 -1
- package/dist/providers/CalendarProvider.js +12 -10
- package/dist/providers/CalendarProvider.js.map +1 -1
- package/dist/translations/en.d.ts +60 -1
- package/dist/types/index.d.ts +9 -0
- package/dist/v2/CalendarPageV2.js +44 -39
- package/dist/v2/CalendarPageV2.js.map +1 -1
- package/dist/v2/grid/GridParts.js +100 -94
- package/dist/v2/grid/GridParts.js.map +1 -1
- package/dist/v2/grid/TimeGrid.js +98 -89
- package/dist/v2/grid/TimeGrid.js.map +1 -1
- package/dist/v2/list/ListViewV2.d.ts +6 -2
- package/dist/v2/list/ListViewV2.js +50 -44
- package/dist/v2/list/ListViewV2.js.map +1 -1
- package/dist/v2/month/MonthView.js +130 -126
- package/dist/v2/month/MonthView.js.map +1 -1
- package/dist/v2/rail/CalendarRail.js +54 -80
- package/dist/v2/rail/CalendarRail.js.map +1 -1
- package/dist/v2/runs/RunPeek.d.ts +2 -0
- package/dist/v2/runs/RunPeek.js +382 -0
- package/dist/v2/runs/RunPeek.js.map +1 -0
- package/dist/v2/runs/RunPills.d.ts +28 -0
- package/dist/v2/runs/RunPills.js +179 -0
- package/dist/v2/runs/RunPills.js.map +1 -0
- package/dist/v2/runs/RunRows.d.ts +21 -0
- package/dist/v2/runs/RunRows.js +140 -0
- package/dist/v2/runs/RunRows.js.map +1 -0
- package/dist/v2/runs/RunsNotices.d.ts +1 -0
- package/dist/v2/runs/RunsNotices.js +37 -0
- package/dist/v2/runs/RunsNotices.js.map +1 -0
- package/dist/v2/runs/RunsSwitch.d.ts +1 -0
- package/dist/v2/runs/RunsSwitch.js +54 -0
- package/dist/v2/runs/RunsSwitch.js.map +1 -0
- package/dist/v2/runs/WorkflowRunsLayer.d.ts +4 -0
- package/dist/v2/runs/WorkflowRunsLayer.js +82 -0
- package/dist/v2/runs/WorkflowRunsLayer.js.map +1 -0
- package/dist/v2/runs/runAccess.d.ts +37 -0
- package/dist/v2/runs/runAccess.js +14 -0
- package/dist/v2/runs/runAccess.js.map +1 -0
- package/dist/v2/runs/runLayout.d.ts +76 -0
- package/dist/v2/runs/runLayout.js +129 -0
- package/dist/v2/runs/runLayout.js.map +1 -0
- package/dist/v2/runs/runLinks.d.ts +32 -0
- package/dist/v2/runs/runLinks.js +50 -0
- package/dist/v2/runs/runLinks.js.map +1 -0
- package/dist/v2/runs/runModel.d.ts +97 -0
- package/dist/v2/runs/runModel.js +132 -0
- package/dist/v2/runs/runModel.js.map +1 -0
- package/dist/v2/runs/runPeekState.d.ts +53 -0
- package/dist/v2/runs/runPeekState.js +62 -0
- package/dist/v2/runs/runPeekState.js.map +1 -0
- package/dist/v2/runs/runTypes.d.ts +60 -0
- package/dist/v2/runs/runWords.d.ts +23 -0
- package/dist/v2/runs/runWords.js +83 -0
- package/dist/v2/runs/runWords.js.map +1 -0
- package/dist/v2/runs/runsLayerContext.d.ts +26 -0
- package/dist/v2/runs/runsLayerContext.js +33 -0
- package/dist/v2/runs/runsLayerContext.js.map +1 -0
- package/dist/v2/runs/useRunHrefs.d.ts +10 -0
- package/dist/v2/runs/useRunHrefs.js +60 -0
- package/dist/v2/runs/useRunHrefs.js.map +1 -0
- package/dist/v2/runs/useRunLabels.d.ts +6 -0
- package/dist/v2/runs/useRunLabels.js +27 -0
- package/dist/v2/runs/useRunLabels.js.map +1 -0
- package/dist/v2/runs/useRunsAccess.d.ts +2 -0
- package/dist/v2/runs/useRunsAccess.js +14 -0
- package/dist/v2/runs/useRunsAccess.js.map +1 -0
- package/dist/v2/runs/useWorkflowRuns.d.ts +61 -0
- package/dist/v2/runs/useWorkflowRuns.js +119 -0
- package/dist/v2/runs/useWorkflowRuns.js.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSafePermissions.js","names":["useSafePermissions","usePermissions"],"sources":["../../src/hooks/useSafePermissions.ts"],"sourcesContent":["import { usePermissions } from '@burdenoff/fe-libs/shared/providers/shell';\n\nexport function useSafePermissions() {\n return usePermissions();\n}\n"],"mappings":";;AAEA,SAAgBA,IAAqB;CACnC,
|
|
1
|
+
{"version":3,"file":"useSafePermissions.js","names":["useSafePermissions","useSafePermissions$1","usePermissions"],"sources":["../../src/hooks/useSafePermissions.ts"],"sourcesContent":["import { usePermissions } from '@burdenoff/fe-libs/shared/providers/shell';\n\nexport function useSafePermissions() {\n return usePermissions();\n}\n"],"mappings":";;AAEA,SAAgBA,IAAqB;CACnC,OAAOE,EAAe;AACxB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export { CalendarRoot } from './CalendarRoot';
|
|
10
10
|
export type { CalendarRootProps, CalendarEventSummary, ResourceBookingSummary } from './types';
|
|
11
|
+
export type { CalendarRunExecutionRef, CalendarRunJobRef, CalendarRunJobStatus, CalendarRunLinks, CalendarRunSubject, } from './types';
|
|
11
12
|
export { useCalendar } from './providers/CalendarProvider';
|
|
12
13
|
export { useCalendarStore } from './store/calendarStore';
|
|
13
14
|
export { useCalendarPermissions } from './hooks/useCalendarPermissions';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
|
-
import { CalendarRootProps, CalendarEventSummary, ResourceBookingSummary, CalendarViewType, TaskOverlayConfig } from '../types';
|
|
2
|
+
import { CalendarRootProps, CalendarEventSummary, ResourceBookingSummary, CalendarViewType, CalendarRunLinks, TaskOverlayConfig } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Context value for Calendar microfrontend
|
|
5
5
|
*/
|
|
@@ -19,6 +19,8 @@ interface CalendarContextValue {
|
|
|
19
19
|
taskOverlay?: TaskOverlayConfig;
|
|
20
20
|
/** The redesigned calendar (BOFF-15698); false renders today's pages. */
|
|
21
21
|
calendarRedesign: boolean;
|
|
22
|
+
/** The redesign's workflow runs links (B5); the host's routes. */
|
|
23
|
+
workflowRunLinks?: CalendarRunLinks;
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
26
|
* Hook to access Calendar context
|
|
@@ -7,8 +7,8 @@ var o = e(null), s = () => {
|
|
|
7
7
|
let e = t(o);
|
|
8
8
|
if (!e) throw Error("useCalendar must be used within CalendarProvider");
|
|
9
9
|
return e;
|
|
10
|
-
}, c = ({ children: e, basePath: t = "/", navigate: s, currentUser: c, workspaceId: l, tenantId: u, apiGatewayUrl: d, authToken: f, onEventSelect: p, onEventCreate: m, onResourceBook: h, defaultView: g = "week", defaultTimeZone: _, taskOverlay: v, calendarRedesign: y = !1 }) => {
|
|
11
|
-
let
|
|
10
|
+
}, c = ({ children: e, basePath: t = "/", navigate: s, currentUser: c, workspaceId: l, tenantId: u, apiGatewayUrl: d, authToken: f, onEventSelect: p, onEventCreate: m, onResourceBook: h, defaultView: g = "week", defaultTimeZone: _, taskOverlay: v, calendarRedesign: y = !1, workflowRunLinks: b }) => {
|
|
11
|
+
let x = n(() => ({
|
|
12
12
|
basePath: t,
|
|
13
13
|
navigate: s,
|
|
14
14
|
currentUser: c,
|
|
@@ -22,7 +22,8 @@ var o = e(null), s = () => {
|
|
|
22
22
|
defaultView: g,
|
|
23
23
|
defaultTimeZone: _,
|
|
24
24
|
taskOverlay: v,
|
|
25
|
-
calendarRedesign: y
|
|
25
|
+
calendarRedesign: y,
|
|
26
|
+
workflowRunLinks: b
|
|
26
27
|
}), [
|
|
27
28
|
t,
|
|
28
29
|
s,
|
|
@@ -37,19 +38,20 @@ var o = e(null), s = () => {
|
|
|
37
38
|
g,
|
|
38
39
|
_,
|
|
39
40
|
v,
|
|
40
|
-
y
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
y,
|
|
42
|
+
b
|
|
43
|
+
]), S = t && t !== "/", C = /* @__PURE__ */ a(o.Provider, {
|
|
44
|
+
value: x,
|
|
43
45
|
children: e
|
|
44
|
-
}),
|
|
45
|
-
value:
|
|
46
|
+
}), w = S ? /* @__PURE__ */ a(o.Provider, {
|
|
47
|
+
value: x,
|
|
46
48
|
children: /* @__PURE__ */ a(i, {
|
|
47
49
|
scopeId: l ?? null,
|
|
48
50
|
gateway: "workspace",
|
|
49
51
|
children: e
|
|
50
52
|
})
|
|
51
|
-
}) :
|
|
52
|
-
return
|
|
53
|
+
}) : C;
|
|
54
|
+
return S ? w : /* @__PURE__ */ a(r, { children: w });
|
|
53
55
|
};
|
|
54
56
|
export { c as CalendarProvider, s as useCalendar };
|
|
55
57
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarProvider.js","names":["CalendarContext","createContext","useCalendar","context","use","CalendarProvider","contextValue","useMemo","basePath","navigate","currentUser","workspaceId","tenantId","apiGatewayUrl","authToken","onEventSelect","onEventCreate","onResourceBook","defaultView","defaultTimeZone","taskOverlay","calendarRedesign","isIntegrated","contextContent","content","PermissionProvider","MemoryRouter"],"sources":["../../src/providers/CalendarProvider.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport { createContext, use, useMemo } from 'react';\nimport { MemoryRouter } from 'react-router';\nimport { PermissionProvider } from '@burdenoff/fe-libs/shared/providers/shell';\nimport type {\n CalendarRootProps,\n CalendarEventSummary,\n ResourceBookingSummary,\n CalendarViewType,\n TaskOverlayConfig,\n} from '../types';\n\n/**\n * Context value for Calendar microfrontend\n */\ninterface CalendarContextValue {\n basePath: string;\n navigate: (path: string) => void;\n currentUser?: CalendarRootProps['currentUser'];\n workspaceId?: string;\n tenantId?: string;\n apiGatewayUrl?: string;\n authToken?: string;\n onEventSelect?: (event: CalendarEventSummary) => void;\n onEventCreate?: (event: CalendarEventSummary) => void;\n onResourceBook?: (booking: ResourceBookingSummary) => void;\n defaultView?: CalendarViewType;\n defaultTimeZone?: string;\n taskOverlay?: TaskOverlayConfig;\n /** The redesigned calendar (BOFF-15698); false renders today's pages. */\n calendarRedesign: boolean;\n}\n\nconst CalendarContext = createContext<CalendarContextValue | null>(null);\n\n/**\n * Hook to access Calendar context\n */\nexport const useCalendar = () => {\n const context = use(CalendarContext);\n if (!context) {\n throw new Error('useCalendar must be used within CalendarProvider');\n }\n return context;\n};\n\n/**\n * Provider component for Calendar microfrontend\n * Sets up routing and context\n */\nexport const CalendarProvider: FC<PropsWithChildren<CalendarRootProps>> = ({\n children,\n basePath = '/',\n navigate,\n currentUser,\n workspaceId,\n tenantId,\n apiGatewayUrl,\n authToken,\n onEventSelect,\n onEventCreate,\n onResourceBook,\n defaultView = 'week',\n defaultTimeZone,\n taskOverlay,\n calendarRedesign = false,\n}) => {\n const contextValue: CalendarContextValue = useMemo(\n () => ({\n basePath,\n navigate,\n currentUser,\n workspaceId,\n tenantId,\n apiGatewayUrl,\n authToken,\n onEventSelect,\n onEventCreate,\n onResourceBook,\n defaultView,\n defaultTimeZone,\n taskOverlay,\n calendarRedesign,\n }),\n [\n basePath,\n navigate,\n currentUser,\n workspaceId,\n tenantId,\n apiGatewayUrl,\n authToken,\n onEventSelect,\n onEventCreate,\n onResourceBook,\n defaultView,\n defaultTimeZone,\n taskOverlay,\n calendarRedesign,\n ]\n );\n\n const isIntegrated = basePath && basePath !== '/';\n\n // PermissionProvider requires the shell's AuthProvider — only mount it in integrated mode.\n // In standalone/dev mode (MemoryRouter path), there's no AuthProvider, so we skip it\n // and pages will use a fallback that allows access (dev-only behaviour).\n const contextContent = (\n <CalendarContext.Provider value={contextValue}>{children}</CalendarContext.Provider>\n );\n const content = isIntegrated ? (\n <CalendarContext.Provider value={contextValue}>\n <PermissionProvider scopeId={workspaceId ?? null} gateway=\"workspace\">\n {children}\n </PermissionProvider>\n </CalendarContext.Provider>\n ) : (\n contextContent\n );\n\n // When integrated into a shell (basePath provided), the shell already has a router\n // so we don't create another one. When standalone (basePath === '/'), use MemoryRouter.\n if (isIntegrated) {\n return content;\n }\n\n // Standalone mode: create MemoryRouter for independent operation\n return <MemoryRouter>{content}</MemoryRouter>;\n};\n"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"CalendarProvider.js","names":["CalendarContext","createContext","useCalendar","context","use","CalendarProvider","contextValue","useMemo","basePath","navigate","currentUser","workspaceId","tenantId","apiGatewayUrl","authToken","onEventSelect","onEventCreate","onResourceBook","defaultView","defaultTimeZone","taskOverlay","calendarRedesign","workflowRunLinks","isIntegrated","contextContent","content","PermissionProvider","MemoryRouter"],"sources":["../../src/providers/CalendarProvider.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport { createContext, use, useMemo } from 'react';\nimport { MemoryRouter } from 'react-router';\nimport { PermissionProvider } from '@burdenoff/fe-libs/shared/providers/shell';\nimport type {\n CalendarRootProps,\n CalendarEventSummary,\n ResourceBookingSummary,\n CalendarViewType,\n CalendarRunLinks,\n TaskOverlayConfig,\n} from '../types';\n\n/**\n * Context value for Calendar microfrontend\n */\ninterface CalendarContextValue {\n basePath: string;\n navigate: (path: string) => void;\n currentUser?: CalendarRootProps['currentUser'];\n workspaceId?: string;\n tenantId?: string;\n apiGatewayUrl?: string;\n authToken?: string;\n onEventSelect?: (event: CalendarEventSummary) => void;\n onEventCreate?: (event: CalendarEventSummary) => void;\n onResourceBook?: (booking: ResourceBookingSummary) => void;\n defaultView?: CalendarViewType;\n defaultTimeZone?: string;\n taskOverlay?: TaskOverlayConfig;\n /** The redesigned calendar (BOFF-15698); false renders today's pages. */\n calendarRedesign: boolean;\n /** The redesign's workflow runs links (B5); the host's routes. */\n workflowRunLinks?: CalendarRunLinks;\n}\n\nconst CalendarContext = createContext<CalendarContextValue | null>(null);\n\n/**\n * Hook to access Calendar context\n */\nexport const useCalendar = () => {\n const context = use(CalendarContext);\n if (!context) {\n throw new Error('useCalendar must be used within CalendarProvider');\n }\n return context;\n};\n\n/**\n * Provider component for Calendar microfrontend\n * Sets up routing and context\n */\nexport const CalendarProvider: FC<PropsWithChildren<CalendarRootProps>> = ({\n children,\n basePath = '/',\n navigate,\n currentUser,\n workspaceId,\n tenantId,\n apiGatewayUrl,\n authToken,\n onEventSelect,\n onEventCreate,\n onResourceBook,\n defaultView = 'week',\n defaultTimeZone,\n taskOverlay,\n calendarRedesign = false,\n workflowRunLinks,\n}) => {\n const contextValue: CalendarContextValue = useMemo(\n () => ({\n basePath,\n navigate,\n currentUser,\n workspaceId,\n tenantId,\n apiGatewayUrl,\n authToken,\n onEventSelect,\n onEventCreate,\n onResourceBook,\n defaultView,\n defaultTimeZone,\n taskOverlay,\n calendarRedesign,\n workflowRunLinks,\n }),\n [\n basePath,\n navigate,\n currentUser,\n workspaceId,\n tenantId,\n apiGatewayUrl,\n authToken,\n onEventSelect,\n onEventCreate,\n onResourceBook,\n defaultView,\n defaultTimeZone,\n taskOverlay,\n calendarRedesign,\n workflowRunLinks,\n ]\n );\n\n const isIntegrated = basePath && basePath !== '/';\n\n // PermissionProvider requires the shell's AuthProvider — only mount it in integrated mode.\n // In standalone/dev mode (MemoryRouter path), there's no AuthProvider, so we skip it\n // and pages will use a fallback that allows access (dev-only behaviour).\n const contextContent = (\n <CalendarContext.Provider value={contextValue}>{children}</CalendarContext.Provider>\n );\n const content = isIntegrated ? (\n <CalendarContext.Provider value={contextValue}>\n <PermissionProvider scopeId={workspaceId ?? null} gateway=\"workspace\">\n {children}\n </PermissionProvider>\n </CalendarContext.Provider>\n ) : (\n contextContent\n );\n\n // When integrated into a shell (basePath provided), the shell already has a router\n // so we don't create another one. When standalone (basePath === '/'), use MemoryRouter.\n if (isIntegrated) {\n return content;\n }\n\n // Standalone mode: create MemoryRouter for independent operation\n return <MemoryRouter>{content}</MemoryRouter>;\n};\n"],"mappings":";;;;;AAoCA,IAAMA,IAAkBC,EAA2C,IAAI,GAK1DC,UAAoB;CAC/B,IAAMC,IAAUC,EAAIJ,CAAe;CACnC,IAAI,CAACG,GACH,MAAU,MAAM,kDAAkD;CAEpE,OAAOA;AACT,GAMaE,KAA8D,EACzE,aACA,cAAW,KACX,aACA,gBACA,gBACA,aACA,kBACA,cACA,kBACA,kBACA,mBACA,iBAAc,QACd,oBACA,gBACA,sBAAmB,IACnB,0BACI;CACJ,IAAMC,IAAqCC,SAClC;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,IACA;EACEC;EACAC;EACAC;EACAC;EACAC;EACAC;EACAC;EACAC;EACAC;EACAC;EACAC;EACAC;EACAC;EACAC;EACAC;CACF,CACF,GAEMC,IAAef,KAAYA,MAAa,KAKxCgB,IACJ,kBAACxB,EAAgB,UAAjB;EAA0B,OAAOM;EAAe;CAAmC,CAAA,GAE/EmB,IAAUF,IACd,kBAACvB,EAAgB,UAAjB;EAA0B,OAAOM;EAC/B,UAAA,kBAACoB,GAAD;GAAoB,SAASf,KAAe;GAAM,SAAQ;GACvD;EACiB,CAAA;CACI,CAAA,IAE1Ba;CAUF,OALID,IACKE,IAIF,kBAACE,GAAD,EAAA,UAAeF,EAAsB,CAAA;AAC9C"}
|
|
@@ -436,6 +436,7 @@ export declare const enTranslations: {
|
|
|
436
436
|
guest: string;
|
|
437
437
|
hideMessage: string;
|
|
438
438
|
hideRail: string;
|
|
439
|
+
hideRuns: string;
|
|
439
440
|
hoursFailed: string;
|
|
440
441
|
hoursLoading: string;
|
|
441
442
|
icsFailed: string;
|
|
@@ -518,6 +519,8 @@ export declare const enTranslations: {
|
|
|
518
519
|
openDayShort: string;
|
|
519
520
|
openingCalendar: string;
|
|
520
521
|
openingEvent: string;
|
|
522
|
+
openRun: string;
|
|
523
|
+
openWorkflow: string;
|
|
521
524
|
optionsFor: string;
|
|
522
525
|
organisedBy: string;
|
|
523
526
|
organiser: string;
|
|
@@ -561,6 +564,62 @@ export declare const enTranslations: {
|
|
|
561
564
|
roomsFailed: string;
|
|
562
565
|
roomsNow: string;
|
|
563
566
|
roomsResources: string;
|
|
567
|
+
runAttempt: string;
|
|
568
|
+
runByHand: string;
|
|
569
|
+
runCatchUp: string;
|
|
570
|
+
runEnded: string;
|
|
571
|
+
runFailed: string;
|
|
572
|
+
runFromSchedules: string;
|
|
573
|
+
runGroupLabel: string;
|
|
574
|
+
runLabel: string;
|
|
575
|
+
runLinksFailed: string;
|
|
576
|
+
runLinksLoading: string;
|
|
577
|
+
runOverdue: string;
|
|
578
|
+
runOverdueNote: string;
|
|
579
|
+
runPickLabel: string;
|
|
580
|
+
runPickTimeLabel: string;
|
|
581
|
+
runRetrying: string;
|
|
582
|
+
runRunning: string;
|
|
583
|
+
runsAccessUnknown: string;
|
|
584
|
+
runsBack: string;
|
|
585
|
+
runsBusyCount: string;
|
|
586
|
+
runsBusyLabel: string;
|
|
587
|
+
runsChecking: string;
|
|
588
|
+
runScheduled: string;
|
|
589
|
+
runScheduleGone: string;
|
|
590
|
+
runsClusterLabel: string;
|
|
591
|
+
runsCount: string;
|
|
592
|
+
runsCountOne: string;
|
|
593
|
+
runsEndedCount: string;
|
|
594
|
+
runsEvery: string;
|
|
595
|
+
runsFailedAll: string;
|
|
596
|
+
runsFailedCount: string;
|
|
597
|
+
runsFailedPast: string;
|
|
598
|
+
runsFailedUpcoming: string;
|
|
599
|
+
runsHidden: string;
|
|
600
|
+
runSince: string;
|
|
601
|
+
runsLocked: string;
|
|
602
|
+
runsNote: string;
|
|
603
|
+
runsNoteUpcoming: string;
|
|
604
|
+
runsOnDay: string;
|
|
605
|
+
runsOverdueCount: string;
|
|
606
|
+
runsPastCut: string;
|
|
607
|
+
runsRetryingCount: string;
|
|
608
|
+
runsRow: string;
|
|
609
|
+
runsRunningCount: string;
|
|
610
|
+
runsScheduledCount: string;
|
|
611
|
+
runsShownAgain: string;
|
|
612
|
+
runsSucceededCount: string;
|
|
613
|
+
runsTitleCount: string;
|
|
614
|
+
runsTooMany: string;
|
|
615
|
+
runsTooManyHint: string;
|
|
616
|
+
runSucceeded: string;
|
|
617
|
+
runsUpcomingCut: string;
|
|
618
|
+
runTook: string;
|
|
619
|
+
runTookMinutes: string;
|
|
620
|
+
runTookMs: string;
|
|
621
|
+
runTookSeconds: string;
|
|
622
|
+
runWhyFailed: string;
|
|
564
623
|
save: string;
|
|
565
624
|
search: string;
|
|
566
625
|
searchEvents: string;
|
|
@@ -624,8 +683,8 @@ export declare const enTranslations: {
|
|
|
624
683
|
week: string;
|
|
625
684
|
whenAllDay: string;
|
|
626
685
|
whenAllDays: string;
|
|
686
|
+
workflowRun: string;
|
|
627
687
|
workflowRuns: string;
|
|
628
|
-
workflowRunsSoon: string;
|
|
629
688
|
yes: string;
|
|
630
689
|
yesterday: string;
|
|
631
690
|
youOrganise: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { MicrofrontendRootProps } from '@burdenoff/fe-libs/shared/types';
|
|
2
2
|
import { NavItem, FooterItem } from '@burdenoff/fe-libs/shared/hooks/shell';
|
|
3
|
+
import { CalendarRunLinks } from '../v2/runs/runTypes';
|
|
3
4
|
export type { NavItem, FooterItem };
|
|
5
|
+
export type { CalendarRunExecutionRef, CalendarRunJobRef, CalendarRunJobStatus, CalendarRunLinks, CalendarRunSubject, } from '../v2/runs/runTypes';
|
|
4
6
|
/**
|
|
5
7
|
* Props for the CalendarRoot component
|
|
6
8
|
*/
|
|
@@ -37,6 +39,13 @@ export interface CalendarRootProps extends MicrofrontendRootProps {
|
|
|
37
39
|
* the calendar renders exactly today's pages, so every other product sees no change.
|
|
38
40
|
*/
|
|
39
41
|
calendarRedesign?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The redesign's workflow runs layer (BOFF-15698 B5): where a run's workflow and the run it
|
|
44
|
+
* started open in the host. The resolvers take what microfe-scheduler's do, so FluidGrids
|
|
45
|
+
* passes `resolveSchedulerSubjectHref` and `resolveSchedulerExecutionHref`. Without them the
|
|
46
|
+
* runs show without links. Read only with `calendarRedesign`.
|
|
47
|
+
*/
|
|
48
|
+
workflowRunLinks?: CalendarRunLinks;
|
|
40
49
|
/**
|
|
41
50
|
* Optional function to register navigation items with the shell
|
|
42
51
|
*/
|
|
@@ -11,82 +11,87 @@ import { CalendarPageContext as u, useCalendarPage as d } from "./page/CalendarP
|
|
|
11
11
|
import { useCalendarPageModel as f } from "./page/useCalendarPageModel.js";
|
|
12
12
|
import { EventPeekHost as p } from "./peek/EventPeek.js";
|
|
13
13
|
import { CalendarRail as m, RailSheet as h } from "./rail/CalendarRail.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
14
|
+
import { RunPeekHost as g } from "./runs/RunPeek.js";
|
|
15
|
+
import { RunsNotices as _ } from "./runs/RunsNotices.js";
|
|
16
|
+
import { WorkflowRunsLayer as v } from "./runs/WorkflowRunsLayer.js";
|
|
17
|
+
import { SearchResults as y } from "./search/SearchResults.js";
|
|
18
|
+
import { useCalendarV2Store as b } from "./state/calendarV2Store.js";
|
|
19
|
+
import { AllHiddenState as x, LoadErrorState as S, PartialFailureNotice as C, SyncStoppedNotices as w } from "./states/CalendarStates.js";
|
|
20
|
+
import { useRef as T } from "react";
|
|
21
|
+
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
22
|
+
import { WorkspacePage as k } from "@burdenoff/fe-libs/ui";
|
|
20
23
|
// src/v2/CalendarPageV2.tsx
|
|
21
|
-
var
|
|
22
|
-
function
|
|
24
|
+
var A = 420;
|
|
25
|
+
function j() {
|
|
23
26
|
let t = f();
|
|
24
|
-
return a(t), /* @__PURE__ */
|
|
27
|
+
return a(t), /* @__PURE__ */ D(u, {
|
|
25
28
|
value: t,
|
|
26
|
-
children: [
|
|
27
|
-
/* @__PURE__ */
|
|
29
|
+
children: /* @__PURE__ */ O(v, { children: [
|
|
30
|
+
/* @__PURE__ */ D("div", {
|
|
28
31
|
className: "flex min-h-0 min-w-0 flex-1 flex-col bg-bg-canvas",
|
|
29
32
|
"data-calendar-view": t.nav.view,
|
|
30
33
|
"data-calendar-date": t.nav.date,
|
|
31
|
-
children: /* @__PURE__ */
|
|
34
|
+
children: /* @__PURE__ */ O(k, {
|
|
32
35
|
className: "pb-0 max-md:pb-0",
|
|
33
36
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ D(c, {}),
|
|
38
|
+
/* @__PURE__ */ D(l, {}),
|
|
39
|
+
/* @__PURE__ */ D(M, {})
|
|
37
40
|
]
|
|
38
41
|
})
|
|
39
42
|
}),
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
|
|
43
|
+
/* @__PURE__ */ D(p, {}),
|
|
44
|
+
/* @__PURE__ */ D(g, {}),
|
|
45
|
+
/* @__PURE__ */ D(n, {}),
|
|
46
|
+
/* @__PURE__ */ D(h, {}),
|
|
47
|
+
/* @__PURE__ */ D(e, {})
|
|
48
|
+
] })
|
|
45
49
|
});
|
|
46
50
|
}
|
|
47
|
-
function
|
|
48
|
-
let e = d(), t =
|
|
49
|
-
return /* @__PURE__ */
|
|
51
|
+
function M() {
|
|
52
|
+
let e = d(), t = T(null), n = i(t, A), r = b((e) => e.railOpen), a = !e.compact && r;
|
|
53
|
+
return /* @__PURE__ */ O("div", {
|
|
50
54
|
ref: t,
|
|
51
55
|
className: "flex min-h-0 gap-3.5",
|
|
52
56
|
style: {
|
|
53
57
|
height: n ?? void 0,
|
|
54
|
-
minHeight:
|
|
58
|
+
minHeight: A
|
|
55
59
|
},
|
|
56
|
-
children: [a ? /* @__PURE__ */
|
|
60
|
+
children: [a ? /* @__PURE__ */ D("aside", {
|
|
57
61
|
id: "calendar-v2-rail",
|
|
58
62
|
"aria-label": e.tr("calendar.v2.calendars", "Calendars"),
|
|
59
63
|
className: "w-[232px] shrink-0 overflow-y-auto pe-1 max-lg:w-[208px]",
|
|
60
|
-
children: /* @__PURE__ */
|
|
61
|
-
}) : null, /* @__PURE__ */
|
|
64
|
+
children: /* @__PURE__ */ D(m, {})
|
|
65
|
+
}) : null, /* @__PURE__ */ D("div", {
|
|
62
66
|
className: "flex min-h-0 min-w-0 flex-1 flex-col gap-2.5",
|
|
63
|
-
children: /* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ D(N, {})
|
|
64
68
|
})]
|
|
65
69
|
});
|
|
66
70
|
}
|
|
67
|
-
function
|
|
71
|
+
function N() {
|
|
68
72
|
let e = d();
|
|
69
|
-
if (
|
|
73
|
+
if (b((e) => e.search).trim() !== "") return /* @__PURE__ */ D(y, {});
|
|
70
74
|
let { state: n } = e;
|
|
71
|
-
if (n.kind === "error") return /* @__PURE__ */
|
|
75
|
+
if (n.kind === "error") return /* @__PURE__ */ D(S, {
|
|
72
76
|
failed: n.failed,
|
|
73
77
|
error: n.failed === "events" ? e.eventsError : e.calendarsError,
|
|
74
78
|
onRetry: n.failed === "calendars" ? e.refetchCalendars : e.refetchEvents
|
|
75
79
|
});
|
|
76
|
-
if (n.kind === "all-hidden") return /* @__PURE__ */
|
|
77
|
-
let i = e.nav.view === "month" ? /* @__PURE__ */
|
|
80
|
+
if (n.kind === "all-hidden") return /* @__PURE__ */ D(x, {});
|
|
81
|
+
let i = e.nav.view === "month" ? /* @__PURE__ */ D(s, {}) : e.nav.view === "list" ? /* @__PURE__ */ D(o, {}) : e.nav.view === "day" && !e.compact ? /* @__PURE__ */ O("div", {
|
|
78
82
|
className: "flex min-h-0 flex-1 gap-3.5",
|
|
79
|
-
children: [/* @__PURE__ */
|
|
80
|
-
}) : /* @__PURE__ */
|
|
81
|
-
return /* @__PURE__ */
|
|
82
|
-
/* @__PURE__ */ w
|
|
83
|
-
n.kind === "ready" ? /* @__PURE__ */
|
|
83
|
+
children: [/* @__PURE__ */ D(r, {}), /* @__PURE__ */ D(t, {})]
|
|
84
|
+
}) : /* @__PURE__ */ D(r, {});
|
|
85
|
+
return /* @__PURE__ */ O(E, { children: [
|
|
86
|
+
/* @__PURE__ */ D(w, {}),
|
|
87
|
+
n.kind === "ready" ? /* @__PURE__ */ D(C, {
|
|
84
88
|
calendarIds: n.failedCalendarIds,
|
|
85
89
|
onRetry: e.refetchEvents
|
|
86
90
|
}) : null,
|
|
91
|
+
/* @__PURE__ */ D(_, {}),
|
|
87
92
|
i
|
|
88
93
|
] });
|
|
89
94
|
}
|
|
90
|
-
export {
|
|
95
|
+
export { j as CalendarPageV2 };
|
|
91
96
|
|
|
92
97
|
//# sourceMappingURL=CalendarPageV2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarPageV2.js","names":["_Fragment","MIN_BODY_HEIGHT","CalendarPageV2","model","useCalendarPageModel","useCalendarShortcuts","CalendarPageContext","WorkspacePage","CalendarHeaderV2","CalendarToolbarV2","CalendarBody","EventPeekHost","QuickCreateHost","RailSheet","CalendarDialogsV2","page","useCalendarPage","bodyRef","useRef","height","useAvailableHeight","railOpen","useCalendarV2Store","state","showRail","CalendarRail","MainArea","SearchResults","LoadErrorState","AllHiddenState","view","MonthView","ListViewV2","TimeGrid","DayPanel","Fragment","SyncStoppedNotices","PartialFailureNotice"],"sources":["../../src/v2/CalendarPageV2.tsx"],"sourcesContent":["/**\n * The redesigned calendar page (BOFF-15698 A1): the header and toolbar, the rail, and the Day ·\n * Week · Month · List views with the peek, quick create, search and their states. The address\n * says which view and day (`useCalendarV2Navigation`); the shared model\n * (`useCalendarPageModel`) holds the calendars, the view's events and what can be done to them.\n *\n * The page fills the window and scrolls inside itself. No product shows it yet: FluidGrids\n * passes `calendarRedesign` once A1–A3 have shipped (§7).\n */\nimport { useRef } from 'react';\nimport { WorkspacePage } from '@burdenoff/fe-libs/ui';\nimport { CalendarDialogsV2 } from './dialogs/CalendarDialogsV2';\nimport { DayPanel } from './day/DayPanel';\nimport { QuickCreateHost } from './grid/QuickCreate';\nimport { TimeGrid } from './grid/TimeGrid';\nimport { useAvailableHeight } from './hooks/useAvailableHeight';\nimport { useCalendarShortcuts } from './hooks/useCalendarShortcuts';\nimport { ListViewV2 } from './list/ListViewV2';\nimport { MonthView } from './month/MonthView';\nimport { CalendarHeaderV2, CalendarToolbarV2 } from './page/CalendarChrome';\nimport { CalendarPageContext, useCalendarPage } from './page/CalendarPageContext';\nimport { useCalendarPageModel } from './page/useCalendarPageModel';\nimport { EventPeekHost } from './peek/EventPeek';\nimport { CalendarRail, RailSheet } from './rail/CalendarRail';\nimport { SearchResults } from './search/SearchResults';\nimport { useCalendarV2Store } from './state/calendarV2Store';\nimport {\n AllHiddenState,\n LoadErrorState,\n PartialFailureNotice,\n SyncStoppedNotices,\n} from './states/CalendarStates';\n\n/** The calendar never gets shorter than this; a shorter window scrolls the page. */\nconst MIN_BODY_HEIGHT = 420;\n\nexport function CalendarPageV2() {\n const model = useCalendarPageModel();\n useCalendarShortcuts(model);\n return (\n <CalendarPageContext value={model}>\n <div\n
|
|
1
|
+
{"version":3,"file":"CalendarPageV2.js","names":["_Fragment","MIN_BODY_HEIGHT","CalendarPageV2","model","useCalendarPageModel","useCalendarShortcuts","CalendarPageContext","WorkflowRunsLayer","WorkspacePage","CalendarHeaderV2","CalendarToolbarV2","CalendarBody","EventPeekHost","RunPeekHost","QuickCreateHost","RailSheet","CalendarDialogsV2","page","useCalendarPage","bodyRef","useRef","height","useAvailableHeight","railOpen","useCalendarV2Store","state","showRail","CalendarRail","MainArea","SearchResults","LoadErrorState","AllHiddenState","view","MonthView","ListViewV2","TimeGrid","DayPanel","Fragment","SyncStoppedNotices","PartialFailureNotice","RunsNotices"],"sources":["../../src/v2/CalendarPageV2.tsx"],"sourcesContent":["/**\n * The redesigned calendar page (BOFF-15698 A1): the header and toolbar, the rail, and the Day ·\n * Week · Month · List views with the peek, quick create, search and their states. The address\n * says which view and day (`useCalendarV2Navigation`); the shared model\n * (`useCalendarPageModel`) holds the calendars, the view's events and what can be done to them.\n *\n * The page fills the window and scrolls inside itself. No product shows it yet: FluidGrids\n * passes `calendarRedesign` once A1–A3 have shipped (§7). The workflow runs layer (B5) lays\n * FluidGrids' scheduled runs over the views, behind the rail's switch.\n */\nimport { useRef } from 'react';\nimport { WorkspacePage } from '@burdenoff/fe-libs/ui';\nimport { CalendarDialogsV2 } from './dialogs/CalendarDialogsV2';\nimport { DayPanel } from './day/DayPanel';\nimport { QuickCreateHost } from './grid/QuickCreate';\nimport { TimeGrid } from './grid/TimeGrid';\nimport { useAvailableHeight } from './hooks/useAvailableHeight';\nimport { useCalendarShortcuts } from './hooks/useCalendarShortcuts';\nimport { ListViewV2 } from './list/ListViewV2';\nimport { MonthView } from './month/MonthView';\nimport { CalendarHeaderV2, CalendarToolbarV2 } from './page/CalendarChrome';\nimport { CalendarPageContext, useCalendarPage } from './page/CalendarPageContext';\nimport { useCalendarPageModel } from './page/useCalendarPageModel';\nimport { EventPeekHost } from './peek/EventPeek';\nimport { CalendarRail, RailSheet } from './rail/CalendarRail';\nimport { RunPeekHost } from './runs/RunPeek';\nimport { RunsNotices } from './runs/RunsNotices';\nimport { WorkflowRunsLayer } from './runs/WorkflowRunsLayer';\nimport { SearchResults } from './search/SearchResults';\nimport { useCalendarV2Store } from './state/calendarV2Store';\nimport {\n AllHiddenState,\n LoadErrorState,\n PartialFailureNotice,\n SyncStoppedNotices,\n} from './states/CalendarStates';\n\n/** The calendar never gets shorter than this; a shorter window scrolls the page. */\nconst MIN_BODY_HEIGHT = 420;\n\nexport function CalendarPageV2() {\n const model = useCalendarPageModel();\n useCalendarShortcuts(model);\n return (\n <CalendarPageContext value={model}>\n <WorkflowRunsLayer>\n <div\n className=\"flex min-h-0 min-w-0 flex-1 flex-col bg-bg-canvas\"\n data-calendar-view={model.nav.view}\n data-calendar-date={model.nav.date}\n >\n <WorkspacePage className=\"pb-0 max-md:pb-0\">\n <CalendarHeaderV2 />\n <CalendarToolbarV2 />\n <CalendarBody />\n </WorkspacePage>\n </div>\n <EventPeekHost />\n <RunPeekHost />\n <QuickCreateHost />\n <RailSheet />\n <CalendarDialogsV2 />\n </WorkflowRunsLayer>\n </CalendarPageContext>\n );\n}\n\nfunction CalendarBody() {\n const page = useCalendarPage();\n const bodyRef = useRef<HTMLDivElement>(null);\n const height = useAvailableHeight(bodyRef, MIN_BODY_HEIGHT);\n const railOpen = useCalendarV2Store((state) => state.railOpen);\n const showRail = !page.compact && railOpen;\n return (\n <div\n ref={bodyRef}\n className=\"flex min-h-0 gap-3.5\"\n style={{ height: height ?? undefined, minHeight: MIN_BODY_HEIGHT }}\n >\n {showRail ? (\n <aside\n id=\"calendar-v2-rail\"\n aria-label={page.tr('calendar.v2.calendars', 'Calendars')}\n className=\"w-[232px] shrink-0 overflow-y-auto pe-1 max-lg:w-[208px]\"\n >\n <CalendarRail />\n </aside>\n ) : null}\n <div className=\"flex min-h-0 min-w-0 flex-1 flex-col gap-2.5\">\n <MainArea />\n </div>\n </div>\n );\n}\n\nfunction MainArea() {\n const page = useCalendarPage();\n const search = useCalendarV2Store((state) => state.search);\n if (search.trim() !== '') return <SearchResults />;\n const { state } = page;\n if (state.kind === 'error') {\n return (\n <LoadErrorState\n failed={state.failed}\n error={state.failed === 'events' ? page.eventsError : page.calendarsError}\n onRetry={state.failed === 'calendars' ? page.refetchCalendars : page.refetchEvents}\n />\n );\n }\n if (state.kind === 'all-hidden') return <AllHiddenState />;\n const view =\n page.nav.view === 'month' ? (\n <MonthView />\n ) : page.nav.view === 'list' ? (\n <ListViewV2 />\n ) : page.nav.view === 'day' && !page.compact ? (\n <div className=\"flex min-h-0 flex-1 gap-3.5\">\n <TimeGrid />\n <DayPanel />\n </div>\n ) : (\n <TimeGrid />\n );\n return (\n <>\n <SyncStoppedNotices />\n {state.kind === 'ready' ? (\n <PartialFailureNotice calendarIds={state.failedCalendarIds} onRetry={page.refetchEvents} />\n ) : null}\n <RunsNotices />\n {view}\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsCA,IAAMC,IAAkB;AAExB,SAAgBC,IAAiB;CAC/B,IAAMC,IAAQC,EAAqB;CAEnC,OADAC,EAAqBF,CAAK,GAExB,kBAACG,GAAD;EAAqB,OAAOH;EAC1B,UAAA,kBAACI,GAAD,EAAA,UAAA;GACE,kBAAC,OAAD;IACE,WAAU;IACV,sBAAoBJ,EAAM,IAAI;IAC9B,sBAAoBA,EAAM,IAAI;IAE9B,UAAA,kBAACK,GAAD;KAAe,WAAU;KAAzB,UAAA;MACE,kBAACC,GAAD,CAAmB,CAAA;MACnB,kBAACC,GAAD,CAAoB,CAAA;MACpB,kBAACC,GAAD,CAAe,CAAA;KACF;;GACZ,CAAA;GACL,kBAACC,GAAD,CAAgB,CAAA;GAChB,kBAACC,GAAD,CAAc,CAAA;GACd,kBAACC,GAAD,CAAkB,CAAA;GAClB,kBAACC,GAAD,CAAY,CAAA;GACZ,kBAACC,GAAD,CAAoB,CAAA;EACH,EAAA,CAAA;CACA,CAAA;AAEzB;AAEA,SAASL,IAAe;CACtB,IAAMM,IAAOC,EAAgB,GACvBC,IAAUC,EAAuB,IAAI,GACrCC,IAASC,EAAmBH,GAASlB,CAAe,GACpDsB,IAAWC,GAAoB,MAAUC,EAAM,QAAQ,GACvDC,IAAW,CAACT,EAAK,WAAWM;CAClC,OACE,kBAAC,OAAD;EACE,KAAKJ;EACL,WAAU;EACV,OAAO;GAAE,QAAQE,KAAU,KAAA;GAAW,WAAWpB;EAAgB;EAHnE,UAAA,CAKGyB,IACC,kBAAC,SAAD;GACE,IAAG;GACH,cAAYT,EAAK,GAAG,yBAAyB,WAAW;GACxD,WAAU;GAEV,UAAA,kBAACU,GAAD,CAAe,CAAA;EACV,CAAA,IACL,MACJ,kBAAC,OAAD;GAAK,WAAU;GACb,UAAA,kBAACC,GAAD,CAAW,CAAA;EACR,CAAA,CACF;;AAET;AAEA,SAASA,IAAW;CAClB,IAAMX,IAAOC,EAAgB;CAE7B,IADeM,GAAoB,MAAUC,EAAM,MAC/C,CAAA,CAAO,KAAK,MAAM,IAAI,OAAO,kBAACI,GAAD,CAAgB,CAAA;CACjD,IAAM,EAAE,aAAUZ;CAClB,IAAIQ,EAAM,SAAS,SACjB,OACE,kBAACK,GAAD;EACE,QAAQL,EAAM;EACd,OAAOA,EAAM,WAAW,WAAWR,EAAK,cAAcA,EAAK;EAC3D,SAASQ,EAAM,WAAW,cAAcR,EAAK,mBAAmBA,EAAK;CACtE,CAAA;CAGL,IAAIQ,EAAM,SAAS,cAAc,OAAO,kBAACM,GAAD,CAAiB,CAAA;CACzD,IAAMC,IACJf,EAAK,IAAI,SAAS,UAChB,kBAACgB,GAAD,CAAY,CAAA,IACVhB,EAAK,IAAI,SAAS,SACpB,kBAACiB,GAAD,CAAa,CAAA,IACXjB,EAAK,IAAI,SAAS,SAAS,CAACA,EAAK,UACnC,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACE,kBAACkB,GAAD,CAAW,CAAA,GACX,kBAACC,GAAD,CAAW,CAAA,CACR;CAEL,CAAA,IAAA,kBAACD,GAAD,CAAW,CAAA;CAEf,OACE,kBAAAnC,GAAA,EAAA,UAAA;EACE,kBAACsC,GAAD,CAAqB,CAAA;EACpBb,EAAM,SAAS,UACd,kBAACc,GAAD;GAAsB,aAAad,EAAM;GAAmB,SAASR,EAAK;EAAgB,CAAA,IACxF;EACJ,kBAACuB,GAAD,CAAc,CAAA;EACbR;CACD,EAAA,CAAA;AAEN"}
|