@burdenoff/microfe-eventfullymanaged 2026.1101.1 → 2026.1101.3
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/_virtual/_rolldown/runtime.js +4 -5
- package/dist/eventfullymanaged/EventfullyManagedRoot.d.ts +1 -1
- package/dist/eventfullymanaged/EventfullyManagedRoot.d.ts.map +1 -1
- package/dist/eventfullymanaged/EventfullyManagedRoot.js +1 -2
- package/dist/eventfullymanaged/EventfullyManagedRoot.js.map +1 -1
- package/dist/eventfullymanaged/EventfullyManagedRoutes.d.ts +1 -1
- package/dist/eventfullymanaged/EventfullyManagedRoutes.d.ts.map +1 -1
- package/dist/eventfullymanaged/EventfullyManagedRoutes.js +1 -2
- package/dist/eventfullymanaged/EventfullyManagedRoutes.js.map +1 -1
- package/dist/eventfullymanaged/api/eventApi.d.ts +110 -110
- package/dist/eventfullymanaged/api/eventApi.d.ts.map +1 -1
- package/dist/eventfullymanaged/api/eventApi.js +262 -263
- package/dist/eventfullymanaged/api/eventApi.js.map +1 -1
- package/dist/eventfullymanaged/components/ActionMenu.d.ts +1 -1
- package/dist/eventfullymanaged/components/ActionMenu.d.ts.map +1 -1
- package/dist/eventfullymanaged/components/ActionMenu.js +7 -8
- package/dist/eventfullymanaged/components/ActionMenu.js.map +1 -1
- package/dist/eventfullymanaged/components/AttendanceForecast.d.ts +11 -0
- package/dist/eventfullymanaged/components/AttendanceForecast.d.ts.map +1 -0
- package/dist/eventfullymanaged/components/AttendanceForecast.js +215 -0
- package/dist/eventfullymanaged/components/AttendanceForecast.js.map +1 -0
- package/dist/eventfullymanaged/components/EntityFormShell.d.ts +1 -1
- package/dist/eventfullymanaged/components/EntityFormShell.d.ts.map +1 -1
- package/dist/eventfullymanaged/components/EntityFormShell.js +1 -2
- package/dist/eventfullymanaged/components/EntityFormShell.js.map +1 -1
- package/dist/eventfullymanaged/components/EntityTagsField.d.ts +1 -1
- package/dist/eventfullymanaged/components/EntityTagsField.d.ts.map +1 -1
- package/dist/eventfullymanaged/components/EntityTagsField.js +22 -23
- package/dist/eventfullymanaged/components/EntityTagsField.js.map +1 -1
- package/dist/eventfullymanaged/components/EventCharts.d.ts +4 -4
- package/dist/eventfullymanaged/components/EventCharts.d.ts.map +1 -1
- package/dist/eventfullymanaged/components/EventCharts.js +53 -54
- package/dist/eventfullymanaged/components/EventCharts.js.map +1 -1
- package/dist/eventfullymanaged/components/FloorPlanZoneEditor.d.ts +1 -1
- package/dist/eventfullymanaged/components/FloorPlanZoneEditor.d.ts.map +1 -1
- package/dist/eventfullymanaged/components/FloorPlanZoneEditor.js +1 -2
- package/dist/eventfullymanaged/components/FloorPlanZoneEditor.js.map +1 -1
- package/dist/eventfullymanaged/components/ImageUploadField.d.ts +1 -1
- package/dist/eventfullymanaged/components/ImageUploadField.d.ts.map +1 -1
- package/dist/eventfullymanaged/components/ImageUploadField.js +31 -33
- package/dist/eventfullymanaged/components/ImageUploadField.js.map +1 -1
- package/dist/eventfullymanaged/components/PageLayout.d.ts +1 -1
- package/dist/eventfullymanaged/components/PageLayout.d.ts.map +1 -1
- package/dist/eventfullymanaged/components/PageLayout.js +1 -2
- package/dist/eventfullymanaged/components/PageLayout.js.map +1 -1
- package/dist/eventfullymanaged/components/Pagination.d.ts +1 -1
- package/dist/eventfullymanaged/components/Pagination.d.ts.map +1 -1
- package/dist/eventfullymanaged/components/Pagination.js +1 -2
- package/dist/eventfullymanaged/components/Pagination.js.map +1 -1
- package/dist/eventfullymanaged/components/SafeLink.d.ts +1 -1
- package/dist/eventfullymanaged/components/SafeLink.d.ts.map +1 -1
- package/dist/eventfullymanaged/components/SafeLink.js +1 -2
- package/dist/eventfullymanaged/components/SafeLink.js.map +1 -1
- package/dist/eventfullymanaged/components/floorPlanEditor/ZoneCanvas.d.ts +1 -1
- package/dist/eventfullymanaged/components/floorPlanEditor/ZoneCanvas.d.ts.map +1 -1
- package/dist/eventfullymanaged/components/floorPlanEditor/ZoneCanvas.js +6 -13
- package/dist/eventfullymanaged/components/floorPlanEditor/ZoneCanvas.js.map +1 -1
- package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.d.ts +3 -3
- package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.d.ts.map +1 -1
- package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js +1 -2
- package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js.map +1 -1
- package/dist/eventfullymanaged/components/floorPlanEditor/useZoneEditorState.js +1 -2
- package/dist/eventfullymanaged/components/floorPlanEditor/useZoneEditorState.js.map +1 -1
- package/dist/eventfullymanaged/components/index.js +5 -4
- package/dist/eventfullymanaged/context/EventfullyManagedContext.d.ts +1 -1
- package/dist/eventfullymanaged/context/EventfullyManagedContext.d.ts.map +1 -1
- package/dist/eventfullymanaged/context/EventfullyManagedContext.js +4 -8
- package/dist/eventfullymanaged/context/EventfullyManagedContext.js.map +1 -1
- package/dist/eventfullymanaged/hooks/index.js +1 -1
- package/dist/eventfullymanaged/hooks/useEventDelete.js +8 -9
- package/dist/eventfullymanaged/hooks/useEventDelete.js.map +1 -1
- package/dist/eventfullymanaged/hooks/useEvmSubscription.js +7 -12
- package/dist/eventfullymanaged/hooks/useEvmSubscription.js.map +1 -1
- package/dist/eventfullymanaged/hooks/useVirtualCall.js +9 -17
- package/dist/eventfullymanaged/hooks/useVirtualCall.js.map +1 -1
- package/dist/eventfullymanaged/lib/floorPlanZones.js +26 -28
- package/dist/eventfullymanaged/lib/floorPlanZones.js.map +1 -1
- package/dist/eventfullymanaged/lib/format.js +1 -2
- package/dist/eventfullymanaged/lib/format.js.map +1 -1
- package/dist/eventfullymanaged/lib/mutationResult.js +1 -2
- package/dist/eventfullymanaged/lib/mutationResult.js.map +1 -1
- package/dist/eventfullymanaged/lib/offlineCheckInQueue.js +29 -30
- package/dist/eventfullymanaged/lib/offlineCheckInQueue.js.map +1 -1
- package/dist/eventfullymanaged/lib/toast.js +2 -3
- package/dist/eventfullymanaged/lib/toast.js.map +1 -1
- package/dist/eventfullymanaged/lib/useOfflineCheckInSync.js +1 -2
- package/dist/eventfullymanaged/lib/useOfflineCheckInSync.js.map +1 -1
- package/dist/eventfullymanaged/pages/dashboard/DashboardPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/dashboard/DashboardPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/dashboard/DashboardPage.js +46 -47
- package/dist/eventfullymanaged/pages/dashboard/DashboardPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/events/EventDetailPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/events/EventDetailPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/events/EventDetailPage.js +197 -195
- package/dist/eventfullymanaged/pages/events/EventDetailPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/events/EventFormPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/events/EventFormPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/events/EventFormPage.js +35 -36
- package/dist/eventfullymanaged/pages/events/EventFormPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/events/SessionFormPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/events/SessionFormPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/events/SessionFormPage.js +47 -48
- package/dist/eventfullymanaged/pages/events/SessionFormPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/events/TicketTypeFormPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/events/TicketTypeFormPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/events/TicketTypeFormPage.js +31 -32
- package/dist/eventfullymanaged/pages/events/TicketTypeFormPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/events/VirtualSessionPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/events/VirtualSessionPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js +170 -171
- package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/events/eventFormUtils.js +1 -2
- package/dist/eventfullymanaged/pages/events/eventFormUtils.js.map +1 -1
- package/dist/eventfullymanaged/pages/exhibitors/ExhibitorFormPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/exhibitors/ExhibitorFormPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/exhibitors/ExhibitorFormPage.js +20 -21
- package/dist/eventfullymanaged/pages/exhibitors/ExhibitorFormPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js +18 -19
- package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.d.ts +1 -1
- package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js +13 -14
- package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/AnalyticsPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/modules/AnalyticsPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js +89 -47
- package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/AttendeeProfilePage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/modules/AttendeeProfilePage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/modules/AttendeeProfilePage.js +8 -8
- package/dist/eventfullymanaged/pages/modules/AttendeeProfilePage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.d.ts +1 -1
- package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js +3 -4
- package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/CommunicationPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/modules/CommunicationPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/modules/CommunicationPage.js +170 -171
- package/dist/eventfullymanaged/pages/modules/CommunicationPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/EntityListSection.d.ts +1 -1
- package/dist/eventfullymanaged/pages/modules/EntityListSection.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/modules/EntityListSection.js +1 -2
- package/dist/eventfullymanaged/pages/modules/EntityListSection.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/EventsPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/modules/EventsPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/modules/EventsPage.js +185 -186
- package/dist/eventfullymanaged/pages/modules/EventsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/IntegrationsPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/modules/IntegrationsPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js +73 -78
- package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/KioskPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/modules/KioskPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/modules/KioskPage.js +204 -208
- package/dist/eventfullymanaged/pages/modules/KioskPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/NetworkingPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/modules/NetworkingPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/modules/NetworkingPage.js +177 -181
- package/dist/eventfullymanaged/pages/modules/NetworkingPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/OperationsHubPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/modules/OperationsHubPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js +18 -19
- package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/RegistrationPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/modules/RegistrationPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/modules/RegistrationPage.js +122 -123
- package/dist/eventfullymanaged/pages/modules/RegistrationPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/RoadmapPanel.d.ts +1 -1
- package/dist/eventfullymanaged/pages/modules/RoadmapPanel.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js +1 -2
- package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js +11 -11
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/SponsorLeadsPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/modules/SponsorLeadsPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/modules/SponsorLeadsPage.js +7 -8
- package/dist/eventfullymanaged/pages/modules/SponsorLeadsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.js +4 -5
- package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/WorkflowsPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/modules/WorkflowsPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js +14 -15
- package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/networking/MeetingFormPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/networking/MeetingFormPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/networking/MeetingFormPage.js +31 -32
- package/dist/eventfullymanaged/pages/networking/MeetingFormPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/networking/NetworkingProfileFormPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/networking/NetworkingProfileFormPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/networking/NetworkingProfileFormPage.js +19 -20
- package/dist/eventfullymanaged/pages/networking/NetworkingProfileFormPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/registration/AttendeeFormPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/registration/AttendeeFormPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/registration/AttendeeFormPage.js +19 -20
- package/dist/eventfullymanaged/pages/registration/AttendeeFormPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js +21 -22
- package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/registration/RegisterAttendeePage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/registration/RegisterAttendeePage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/registration/RegisterAttendeePage.js +85 -103
- package/dist/eventfullymanaged/pages/registration/RegisterAttendeePage.js.map +1 -1
- package/dist/eventfullymanaged/pages/speakers/SpeakerFormPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/speakers/SpeakerFormPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/speakers/SpeakerFormPage.js +35 -36
- package/dist/eventfullymanaged/pages/speakers/SpeakerFormPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/speakers/SpeakersPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/speakers/SpeakersPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js +40 -41
- package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.js +22 -23
- package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js +29 -30
- package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/FloorPlansPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/venues/FloorPlansPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js +138 -147
- package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js +6 -7
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueFormPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueFormPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueFormPage.js +14 -15
- package/dist/eventfullymanaged/pages/venues/VenueFormPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueListPage.d.ts +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueListPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueListPage.js +18 -19
- package/dist/eventfullymanaged/pages/venues/VenueListPage.js.map +1 -1
- package/dist/eventfullymanaged/store/eventfullyManagedStore.js +0 -1
- package/dist/eventfullymanaged/store/eventfullyManagedStore.js.map +1 -1
- package/dist/eventfullymanaged/types/index.d.ts.map +1 -1
- package/dist/eventfullymanaged/utils/cn.js +1 -2
- package/dist/eventfullymanaged/utils/shellBridge.js +1 -2
- package/dist/eventfullymanaged/utils/shellBridge.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +93 -1
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +51 -0
- package/dist/generated/wspace-operations.js.map +1 -0
- package/dist/generated/wspace-types.d.ts +121703 -40790
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/node_modules/@apollo/client/core/networkStatus.js +1 -2
- package/dist/node_modules/@apollo/client/core/networkStatus.js.map +1 -1
- package/dist/node_modules/@apollo/client/react/context/ApolloContext.js +2 -3
- package/dist/node_modules/@apollo/client/react/context/ApolloContext.js.map +1 -1
- package/dist/node_modules/@apollo/client/react/hooks/constants.js +1 -2
- package/dist/node_modules/@apollo/client/react/hooks/constants.js.map +1 -1
- package/dist/node_modules/@apollo/client/react/hooks/internal/useDeepMemo.js +2 -3
- package/dist/node_modules/@apollo/client/react/hooks/internal/useDeepMemo.js.map +1 -1
- package/dist/node_modules/@apollo/client/react/hooks/internal/useIsomorphicLayoutEffect.js +1 -2
- package/dist/node_modules/@apollo/client/react/hooks/internal/useIsomorphicLayoutEffect.js.map +1 -1
- package/dist/node_modules/@apollo/client/react/hooks/internal/wrapHook.js +6 -7
- package/dist/node_modules/@apollo/client/react/hooks/internal/wrapHook.js.map +1 -1
- package/dist/node_modules/@apollo/client/react/hooks/useApolloClient.js +2 -3
- package/dist/node_modules/@apollo/client/react/hooks/useApolloClient.js.map +1 -1
- package/dist/node_modules/@apollo/client/react/hooks/useMutation.js +23 -24
- package/dist/node_modules/@apollo/client/react/hooks/useMutation.js.map +1 -1
- package/dist/node_modules/@apollo/client/react/hooks/useQuery.js +51 -53
- package/dist/node_modules/@apollo/client/react/hooks/useQuery.js.map +1 -1
- package/dist/node_modules/@apollo/client/react/hooks/useSyncExternalStore.js +4 -5
- package/dist/node_modules/@apollo/client/react/hooks/useSyncExternalStore.js.map +1 -1
- package/dist/node_modules/@apollo/client/react/internal/index.js +1 -2
- package/dist/node_modules/@apollo/client/react/internal/index.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/canUseDOM.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/canUseDOM.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/compact.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/compact.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/constants.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/constants.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/deepFreeze.js +2 -3
- package/dist/node_modules/@apollo/client/utilities/internal/deepFreeze.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/maybeDeepFreeze.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/maybeDeepFreeze.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/mergeOptions.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/mergeOptions.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/preventUnhandledRejection.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/preventUnhandledRejection.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js +2 -3
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -1
- package/dist/node_modules/@apollo/client/version.js +2 -3
- package/dist/node_modules/@apollo/client/version.js.map +1 -1
- package/dist/node_modules/@wry/equality/lib/index.js +3 -4
- package/dist/node_modules/@wry/equality/lib/index.js.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.js +8 -7
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/d3-array/src/ascending.js +1 -2
- package/dist/node_modules/d3-array/src/ascending.js.map +1 -1
- package/dist/node_modules/d3-array/src/bisect.js +2 -3
- package/dist/node_modules/d3-array/src/bisect.js.map +1 -1
- package/dist/node_modules/d3-array/src/bisector.js +1 -2
- package/dist/node_modules/d3-array/src/bisector.js.map +1 -1
- package/dist/node_modules/d3-array/src/descending.js +1 -2
- package/dist/node_modules/d3-array/src/descending.js.map +1 -1
- package/dist/node_modules/d3-array/src/max.js +1 -2
- package/dist/node_modules/d3-array/src/max.js.map +1 -1
- package/dist/node_modules/d3-array/src/min.js +1 -2
- package/dist/node_modules/d3-array/src/min.js.map +1 -1
- package/dist/node_modules/d3-array/src/number.js +1 -2
- package/dist/node_modules/d3-array/src/number.js.map +1 -1
- package/dist/node_modules/d3-array/src/quantile.js +17 -18
- package/dist/node_modules/d3-array/src/quantile.js.map +1 -1
- package/dist/node_modules/d3-array/src/quickselect.js +1 -2
- package/dist/node_modules/d3-array/src/quickselect.js.map +1 -1
- package/dist/node_modules/d3-array/src/range.js +1 -2
- package/dist/node_modules/d3-array/src/range.js.map +1 -1
- package/dist/node_modules/d3-array/src/sort.js +1 -2
- package/dist/node_modules/d3-array/src/sort.js.map +1 -1
- package/dist/node_modules/d3-array/src/ticks.js +5 -5
- package/dist/node_modules/d3-array/src/ticks.js.map +1 -1
- package/dist/node_modules/d3-color/src/color.js +2 -3
- package/dist/node_modules/d3-color/src/color.js.map +1 -1
- package/dist/node_modules/d3-color/src/define.js +1 -2
- package/dist/node_modules/d3-color/src/define.js.map +1 -1
- package/dist/node_modules/d3-format/src/defaultLocale.js +2 -3
- package/dist/node_modules/d3-format/src/defaultLocale.js.map +1 -1
- package/dist/node_modules/d3-format/src/exponent.js +1 -2
- package/dist/node_modules/d3-format/src/exponent.js.map +1 -1
- package/dist/node_modules/d3-format/src/formatDecimal.js +1 -2
- package/dist/node_modules/d3-format/src/formatDecimal.js.map +1 -1
- package/dist/node_modules/d3-format/src/formatGroup.js +1 -2
- package/dist/node_modules/d3-format/src/formatGroup.js.map +1 -1
- package/dist/node_modules/d3-format/src/formatNumerals.js +1 -2
- package/dist/node_modules/d3-format/src/formatNumerals.js.map +1 -1
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +1 -2
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js.map +1 -1
- package/dist/node_modules/d3-format/src/formatRounded.js +1 -2
- package/dist/node_modules/d3-format/src/formatRounded.js.map +1 -1
- package/dist/node_modules/d3-format/src/formatSpecifier.js +2 -3
- package/dist/node_modules/d3-format/src/formatSpecifier.js.map +1 -1
- package/dist/node_modules/d3-format/src/formatTrim.js +1 -3
- package/dist/node_modules/d3-format/src/formatTrim.js.map +1 -1
- package/dist/node_modules/d3-format/src/formatTypes.js +1 -2
- package/dist/node_modules/d3-format/src/formatTypes.js.map +1 -1
- package/dist/node_modules/d3-format/src/identity.js +1 -2
- package/dist/node_modules/d3-format/src/identity.js.map +1 -1
- package/dist/node_modules/d3-format/src/locale.js +10 -13
- package/dist/node_modules/d3-format/src/locale.js.map +1 -1
- package/dist/node_modules/d3-format/src/precisionFixed.js +1 -2
- package/dist/node_modules/d3-format/src/precisionFixed.js.map +1 -1
- package/dist/node_modules/d3-format/src/precisionPrefix.js +1 -2
- package/dist/node_modules/d3-format/src/precisionPrefix.js.map +1 -1
- package/dist/node_modules/d3-format/src/precisionRound.js +1 -2
- package/dist/node_modules/d3-format/src/precisionRound.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/array.js +2 -4
- package/dist/node_modules/d3-interpolate/src/array.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/basis.js +1 -2
- package/dist/node_modules/d3-interpolate/src/basis.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +1 -2
- package/dist/node_modules/d3-interpolate/src/basisClosed.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/color.js +1 -2
- package/dist/node_modules/d3-interpolate/src/color.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/constant.js +1 -2
- package/dist/node_modules/d3-interpolate/src/constant.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/date.js +1 -2
- package/dist/node_modules/d3-interpolate/src/date.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/number.js +1 -2
- package/dist/node_modules/d3-interpolate/src/number.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/numberArray.js +1 -2
- package/dist/node_modules/d3-interpolate/src/numberArray.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/object.js +2 -3
- package/dist/node_modules/d3-interpolate/src/object.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/piecewise.js +1 -2
- package/dist/node_modules/d3-interpolate/src/piecewise.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/rgb.js +1 -2
- package/dist/node_modules/d3-interpolate/src/rgb.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/round.js +1 -2
- package/dist/node_modules/d3-interpolate/src/round.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/string.js +1 -2
- package/dist/node_modules/d3-interpolate/src/string.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/value.js +10 -11
- package/dist/node_modules/d3-interpolate/src/value.js.map +1 -1
- package/dist/node_modules/d3-path/src/path.js +8 -7
- package/dist/node_modules/d3-path/src/path.js.map +1 -1
- package/dist/node_modules/d3-scale/src/band.js +1 -2
- package/dist/node_modules/d3-scale/src/band.js.map +1 -1
- package/dist/node_modules/d3-scale/src/constant.js +1 -2
- package/dist/node_modules/d3-scale/src/constant.js.map +1 -1
- package/dist/node_modules/d3-scale/src/continuous.js +7 -8
- package/dist/node_modules/d3-scale/src/continuous.js.map +1 -1
- package/dist/node_modules/d3-scale/src/diverging.js +35 -36
- package/dist/node_modules/d3-scale/src/diverging.js.map +1 -1
- package/dist/node_modules/d3-scale/src/identity.js +6 -7
- package/dist/node_modules/d3-scale/src/identity.js.map +1 -1
- package/dist/node_modules/d3-scale/src/init.js +3 -8
- package/dist/node_modules/d3-scale/src/init.js.map +1 -1
- package/dist/node_modules/d3-scale/src/linear.js +6 -7
- package/dist/node_modules/d3-scale/src/linear.js.map +1 -1
- package/dist/node_modules/d3-scale/src/log.js +32 -33
- package/dist/node_modules/d3-scale/src/log.js.map +1 -1
- package/dist/node_modules/d3-scale/src/nice.js +1 -2
- package/dist/node_modules/d3-scale/src/nice.js.map +1 -1
- package/dist/node_modules/d3-scale/src/number.js +1 -2
- package/dist/node_modules/d3-scale/src/number.js.map +1 -1
- package/dist/node_modules/d3-scale/src/ordinal.js +1 -2
- package/dist/node_modules/d3-scale/src/ordinal.js.map +1 -1
- package/dist/node_modules/d3-scale/src/pow.js +13 -14
- package/dist/node_modules/d3-scale/src/pow.js.map +1 -1
- package/dist/node_modules/d3-scale/src/quantile.js +2 -3
- package/dist/node_modules/d3-scale/src/quantile.js.map +1 -1
- package/dist/node_modules/d3-scale/src/quantize.js +5 -6
- package/dist/node_modules/d3-scale/src/quantize.js.map +1 -1
- package/dist/node_modules/d3-scale/src/radial.js +8 -9
- package/dist/node_modules/d3-scale/src/radial.js.map +1 -1
- package/dist/node_modules/d3-scale/src/sequential.js +27 -28
- package/dist/node_modules/d3-scale/src/sequential.js.map +1 -1
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js +6 -7
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js.map +1 -1
- package/dist/node_modules/d3-scale/src/symlog.js +12 -13
- package/dist/node_modules/d3-scale/src/symlog.js.map +1 -1
- package/dist/node_modules/d3-scale/src/threshold.js +2 -3
- package/dist/node_modules/d3-scale/src/threshold.js.map +1 -1
- package/dist/node_modules/d3-scale/src/tickFormat.js +7 -10
- package/dist/node_modules/d3-scale/src/tickFormat.js.map +1 -1
- package/dist/node_modules/d3-scale/src/time.js +27 -28
- package/dist/node_modules/d3-scale/src/time.js.map +1 -1
- package/dist/node_modules/d3-scale/src/utcTime.js +13 -14
- package/dist/node_modules/d3-scale/src/utcTime.js.map +1 -1
- package/dist/node_modules/d3-shape/src/area.js +34 -33
- package/dist/node_modules/d3-shape/src/area.js.map +1 -1
- package/dist/node_modules/d3-shape/src/array.js +0 -1
- package/dist/node_modules/d3-shape/src/array.js.map +1 -1
- package/dist/node_modules/d3-shape/src/constant.js +1 -2
- package/dist/node_modules/d3-shape/src/constant.js.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/basis.js +4 -9
- package/dist/node_modules/d3-shape/src/curve/basis.js.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +3 -8
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +2 -5
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/bump.js +2 -5
- package/dist/node_modules/d3-shape/src/curve/bump.js.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/linear.js +2 -5
- package/dist/node_modules/d3-shape/src/curve/linear.js.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +1 -2
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/monotone.js +4 -9
- package/dist/node_modules/d3-shape/src/curve/monotone.js.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/natural.js +5 -4
- package/dist/node_modules/d3-shape/src/curve/natural.js.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/step.js +6 -9
- package/dist/node_modules/d3-shape/src/curve/step.js.map +1 -1
- package/dist/node_modules/d3-shape/src/line.js +16 -17
- package/dist/node_modules/d3-shape/src/line.js.map +1 -1
- package/dist/node_modules/d3-shape/src/math.js +1 -2
- package/dist/node_modules/d3-shape/src/math.js.map +1 -1
- package/dist/node_modules/d3-shape/src/noop.js +1 -2
- package/dist/node_modules/d3-shape/src/noop.js.map +1 -1
- package/dist/node_modules/d3-shape/src/offset/expand.js +1 -2
- package/dist/node_modules/d3-shape/src/offset/expand.js.map +1 -1
- package/dist/node_modules/d3-shape/src/offset/none.js +1 -2
- package/dist/node_modules/d3-shape/src/offset/none.js.map +1 -1
- package/dist/node_modules/d3-shape/src/offset/silhouette.js +1 -2
- package/dist/node_modules/d3-shape/src/offset/silhouette.js.map +1 -1
- package/dist/node_modules/d3-shape/src/offset/wiggle.js +2 -3
- package/dist/node_modules/d3-shape/src/offset/wiggle.js.map +1 -1
- package/dist/node_modules/d3-shape/src/order/none.js +1 -2
- package/dist/node_modules/d3-shape/src/order/none.js.map +1 -1
- package/dist/node_modules/d3-shape/src/path.js +1 -2
- package/dist/node_modules/d3-shape/src/path.js.map +1 -1
- package/dist/node_modules/d3-shape/src/point.js +1 -2
- package/dist/node_modules/d3-shape/src/point.js.map +1 -1
- package/dist/node_modules/d3-shape/src/stack.js +13 -14
- package/dist/node_modules/d3-shape/src/stack.js.map +1 -1
- package/dist/node_modules/d3-shape/src/symbol/circle.js +1 -2
- package/dist/node_modules/d3-shape/src/symbol/circle.js.map +1 -1
- package/dist/node_modules/d3-shape/src/symbol/cross.js +1 -2
- package/dist/node_modules/d3-shape/src/symbol/cross.js.map +1 -1
- package/dist/node_modules/d3-shape/src/symbol/diamond.js +1 -2
- package/dist/node_modules/d3-shape/src/symbol/diamond.js.map +1 -1
- package/dist/node_modules/d3-shape/src/symbol/square.js +1 -2
- package/dist/node_modules/d3-shape/src/symbol/square.js.map +1 -1
- package/dist/node_modules/d3-shape/src/symbol/star.js +1 -2
- package/dist/node_modules/d3-shape/src/symbol/star.js.map +1 -1
- package/dist/node_modules/d3-shape/src/symbol/triangle.js +1 -2
- package/dist/node_modules/d3-shape/src/symbol/triangle.js.map +1 -1
- package/dist/node_modules/d3-shape/src/symbol/wye.js +1 -2
- package/dist/node_modules/d3-shape/src/symbol/wye.js.map +1 -1
- package/dist/node_modules/d3-shape/src/symbol.js +1 -2
- package/dist/node_modules/d3-shape/src/symbol.js.map +1 -1
- package/dist/node_modules/d3-time/src/day.js +1 -2
- package/dist/node_modules/d3-time/src/day.js.map +1 -1
- package/dist/node_modules/d3-time/src/duration.js +1 -2
- package/dist/node_modules/d3-time/src/duration.js.map +1 -1
- package/dist/node_modules/d3-time/src/hour.js +1 -2
- package/dist/node_modules/d3-time/src/hour.js.map +1 -1
- package/dist/node_modules/d3-time/src/interval.js +5 -4
- package/dist/node_modules/d3-time/src/interval.js.map +1 -1
- package/dist/node_modules/d3-time/src/millisecond.js +1 -2
- package/dist/node_modules/d3-time/src/millisecond.js.map +1 -1
- package/dist/node_modules/d3-time/src/minute.js +1 -2
- package/dist/node_modules/d3-time/src/minute.js.map +1 -1
- package/dist/node_modules/d3-time/src/month.js +1 -2
- package/dist/node_modules/d3-time/src/month.js.map +1 -1
- package/dist/node_modules/d3-time/src/second.js +1 -2
- package/dist/node_modules/d3-time/src/second.js.map +1 -1
- package/dist/node_modules/d3-time/src/ticks.js +27 -28
- package/dist/node_modules/d3-time/src/ticks.js.map +1 -1
- package/dist/node_modules/d3-time/src/week.js +2 -3
- package/dist/node_modules/d3-time/src/week.js.map +1 -1
- package/dist/node_modules/d3-time/src/year.js +1 -2
- package/dist/node_modules/d3-time/src/year.js.map +1 -1
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +6 -7
- package/dist/node_modules/d3-time-format/src/defaultLocale.js.map +1 -1
- package/dist/node_modules/d3-time-format/src/locale.js +1 -2
- package/dist/node_modules/d3-time-format/src/locale.js.map +1 -1
- package/dist/node_modules/decimal.js-light/decimal.js +33 -30
- package/dist/node_modules/decimal.js-light/decimal.js.map +1 -1
- package/dist/node_modules/eventemitter3/index.js +2 -3
- package/dist/node_modules/eventemitter3/index.js.map +1 -1
- package/dist/node_modules/fast-equals/dist/es/index.js +3 -4
- package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
- package/dist/node_modules/graphql/error/GraphQLError.js +1 -2
- package/dist/node_modules/graphql/error/GraphQLError.js.map +1 -1
- package/dist/node_modules/graphql/error/syntaxError.js +1 -2
- package/dist/node_modules/graphql/error/syntaxError.js.map +1 -1
- package/dist/node_modules/graphql/jsutils/devAssert.js +1 -2
- package/dist/node_modules/graphql/jsutils/devAssert.js.map +1 -1
- package/dist/node_modules/graphql/jsutils/inspect.js +24 -27
- package/dist/node_modules/graphql/jsutils/inspect.js.map +1 -1
- package/dist/node_modules/graphql/jsutils/instanceOf.js +0 -1
- package/dist/node_modules/graphql/jsutils/instanceOf.js.map +1 -1
- package/dist/node_modules/graphql/jsutils/invariant.js +1 -2
- package/dist/node_modules/graphql/jsutils/invariant.js.map +1 -1
- package/dist/node_modules/graphql/jsutils/isObjectLike.js +1 -2
- package/dist/node_modules/graphql/jsutils/isObjectLike.js.map +1 -1
- package/dist/node_modules/graphql/language/ast.js +7 -8
- package/dist/node_modules/graphql/language/ast.js.map +1 -1
- package/dist/node_modules/graphql/language/blockString.js +1 -2
- package/dist/node_modules/graphql/language/blockString.js.map +1 -1
- package/dist/node_modules/graphql/language/characterClasses.js +2 -3
- package/dist/node_modules/graphql/language/characterClasses.js.map +1 -1
- package/dist/node_modules/graphql/language/directiveLocation.js +1 -2
- package/dist/node_modules/graphql/language/directiveLocation.js.map +1 -1
- package/dist/node_modules/graphql/language/kinds.js +1 -2
- package/dist/node_modules/graphql/language/kinds.js.map +1 -1
- package/dist/node_modules/graphql/language/lexer.js +47 -50
- package/dist/node_modules/graphql/language/lexer.js.map +1 -1
- package/dist/node_modules/graphql/language/location.js +1 -2
- package/dist/node_modules/graphql/language/location.js.map +1 -1
- package/dist/node_modules/graphql/language/parser.js +100 -97
- package/dist/node_modules/graphql/language/parser.js.map +1 -1
- package/dist/node_modules/graphql/language/printLocation.js +1 -2
- package/dist/node_modules/graphql/language/printLocation.js.map +1 -1
- package/dist/node_modules/graphql/language/source.js +1 -2
- package/dist/node_modules/graphql/language/source.js.map +1 -1
- package/dist/node_modules/graphql/language/tokenKind.js +1 -2
- package/dist/node_modules/graphql/language/tokenKind.js.map +1 -1
- package/dist/node_modules/graphql-tag/lib/index.js +10 -11
- package/dist/node_modules/graphql-tag/lib/index.js.map +1 -1
- package/dist/node_modules/internmap/src/index.js +1 -2
- package/dist/node_modules/internmap/src/index.js.map +1 -1
- package/dist/node_modules/lodash/_DataView.js +4 -5
- package/dist/node_modules/lodash/_DataView.js.map +1 -1
- package/dist/node_modules/lodash/_Hash.js +1 -2
- package/dist/node_modules/lodash/_Hash.js.map +1 -1
- package/dist/node_modules/lodash/_ListCache.js +1 -2
- package/dist/node_modules/lodash/_ListCache.js.map +1 -1
- package/dist/node_modules/lodash/_Map.js +4 -5
- package/dist/node_modules/lodash/_Map.js.map +1 -1
- package/dist/node_modules/lodash/_MapCache.js +1 -2
- package/dist/node_modules/lodash/_MapCache.js.map +1 -1
- package/dist/node_modules/lodash/_Promise.js +4 -5
- package/dist/node_modules/lodash/_Promise.js.map +1 -1
- package/dist/node_modules/lodash/_Set.js +4 -5
- package/dist/node_modules/lodash/_Set.js.map +1 -1
- package/dist/node_modules/lodash/_SetCache.js +1 -2
- package/dist/node_modules/lodash/_SetCache.js.map +1 -1
- package/dist/node_modules/lodash/_Stack.js +3 -3
- package/dist/node_modules/lodash/_Stack.js.map +1 -1
- package/dist/node_modules/lodash/_Symbol.js +1 -2
- package/dist/node_modules/lodash/_Symbol.js.map +1 -1
- package/dist/node_modules/lodash/_Uint8Array.js +1 -2
- package/dist/node_modules/lodash/_Uint8Array.js.map +1 -1
- package/dist/node_modules/lodash/_WeakMap.js +4 -5
- package/dist/node_modules/lodash/_WeakMap.js.map +1 -1
- package/dist/node_modules/lodash/_apply.js +1 -2
- package/dist/node_modules/lodash/_apply.js.map +1 -1
- package/dist/node_modules/lodash/_arrayEvery.js +1 -2
- package/dist/node_modules/lodash/_arrayEvery.js.map +1 -1
- package/dist/node_modules/lodash/_arrayFilter.js +1 -2
- package/dist/node_modules/lodash/_arrayFilter.js.map +1 -1
- package/dist/node_modules/lodash/_arrayIncludes.js +1 -2
- package/dist/node_modules/lodash/_arrayIncludes.js.map +1 -1
- package/dist/node_modules/lodash/_arrayIncludesWith.js +1 -2
- package/dist/node_modules/lodash/_arrayIncludesWith.js.map +1 -1
- package/dist/node_modules/lodash/_arrayLikeKeys.js +5 -6
- package/dist/node_modules/lodash/_arrayLikeKeys.js.map +1 -1
- package/dist/node_modules/lodash/_arrayMap.js +1 -2
- package/dist/node_modules/lodash/_arrayMap.js.map +1 -1
- package/dist/node_modules/lodash/_arrayPush.js +1 -2
- package/dist/node_modules/lodash/_arrayPush.js.map +1 -1
- package/dist/node_modules/lodash/_arraySome.js +1 -2
- package/dist/node_modules/lodash/_arraySome.js.map +1 -1
- package/dist/node_modules/lodash/_asciiToArray.js +1 -2
- package/dist/node_modules/lodash/_asciiToArray.js.map +1 -1
- package/dist/node_modules/lodash/_assocIndexOf.js +1 -2
- package/dist/node_modules/lodash/_assocIndexOf.js.map +1 -1
- package/dist/node_modules/lodash/_baseAssignValue.js +1 -2
- package/dist/node_modules/lodash/_baseAssignValue.js.map +1 -1
- package/dist/node_modules/lodash/_baseEach.js +1 -2
- package/dist/node_modules/lodash/_baseEach.js.map +1 -1
- package/dist/node_modules/lodash/_baseEvery.js +1 -2
- package/dist/node_modules/lodash/_baseEvery.js.map +1 -1
- package/dist/node_modules/lodash/_baseExtremum.js +1 -2
- package/dist/node_modules/lodash/_baseExtremum.js.map +1 -1
- package/dist/node_modules/lodash/_baseFindIndex.js +1 -2
- package/dist/node_modules/lodash/_baseFindIndex.js.map +1 -1
- package/dist/node_modules/lodash/_baseFlatten.js +1 -2
- package/dist/node_modules/lodash/_baseFlatten.js.map +1 -1
- package/dist/node_modules/lodash/_baseFor.js +1 -2
- package/dist/node_modules/lodash/_baseFor.js.map +1 -1
- package/dist/node_modules/lodash/_baseForOwn.js +4 -5
- package/dist/node_modules/lodash/_baseForOwn.js.map +1 -1
- package/dist/node_modules/lodash/_baseGet.js +1 -2
- package/dist/node_modules/lodash/_baseGet.js.map +1 -1
- package/dist/node_modules/lodash/_baseGetAllKeys.js +4 -5
- package/dist/node_modules/lodash/_baseGetAllKeys.js.map +1 -1
- package/dist/node_modules/lodash/_baseGetTag.js +1 -2
- package/dist/node_modules/lodash/_baseGetTag.js.map +1 -1
- package/dist/node_modules/lodash/_baseGt.js +1 -2
- package/dist/node_modules/lodash/_baseGt.js.map +1 -1
- package/dist/node_modules/lodash/_baseHasIn.js +1 -2
- package/dist/node_modules/lodash/_baseHasIn.js.map +1 -1
- package/dist/node_modules/lodash/_baseIndexOf.js +1 -2
- package/dist/node_modules/lodash/_baseIndexOf.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsArguments.js +1 -2
- package/dist/node_modules/lodash/_baseIsArguments.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsEqual.js +4 -5
- package/dist/node_modules/lodash/_baseIsEqual.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +10 -11
- package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsMatch.js +1 -2
- package/dist/node_modules/lodash/_baseIsMatch.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsNaN.js +1 -2
- package/dist/node_modules/lodash/_baseIsNaN.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsNative.js +5 -6
- package/dist/node_modules/lodash/_baseIsNative.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsTypedArray.js +4 -5
- package/dist/node_modules/lodash/_baseIsTypedArray.js.map +1 -1
- package/dist/node_modules/lodash/_baseIteratee.js +6 -7
- package/dist/node_modules/lodash/_baseIteratee.js.map +1 -1
- package/dist/node_modules/lodash/_baseKeys.js +1 -2
- package/dist/node_modules/lodash/_baseKeys.js.map +1 -1
- package/dist/node_modules/lodash/_baseLt.js +1 -2
- package/dist/node_modules/lodash/_baseLt.js.map +1 -1
- package/dist/node_modules/lodash/_baseMap.js +4 -5
- package/dist/node_modules/lodash/_baseMap.js.map +1 -1
- package/dist/node_modules/lodash/_baseMatches.js +1 -2
- package/dist/node_modules/lodash/_baseMatches.js.map +1 -1
- package/dist/node_modules/lodash/_baseMatchesProperty.js +7 -8
- package/dist/node_modules/lodash/_baseMatchesProperty.js.map +1 -1
- package/dist/node_modules/lodash/_baseOrderBy.js +11 -12
- package/dist/node_modules/lodash/_baseOrderBy.js.map +1 -1
- package/dist/node_modules/lodash/_baseProperty.js +1 -2
- package/dist/node_modules/lodash/_baseProperty.js.map +1 -1
- package/dist/node_modules/lodash/_basePropertyDeep.js +1 -2
- package/dist/node_modules/lodash/_basePropertyDeep.js.map +1 -1
- package/dist/node_modules/lodash/_baseRange.js +1 -2
- package/dist/node_modules/lodash/_baseRange.js.map +1 -1
- package/dist/node_modules/lodash/_baseRest.js +1 -2
- package/dist/node_modules/lodash/_baseRest.js.map +1 -1
- package/dist/node_modules/lodash/_baseSetToString.js +5 -6
- package/dist/node_modules/lodash/_baseSetToString.js.map +1 -1
- package/dist/node_modules/lodash/_baseSlice.js +1 -2
- package/dist/node_modules/lodash/_baseSlice.js.map +1 -1
- package/dist/node_modules/lodash/_baseSome.js +1 -2
- package/dist/node_modules/lodash/_baseSome.js.map +1 -1
- package/dist/node_modules/lodash/_baseSortBy.js +1 -2
- package/dist/node_modules/lodash/_baseSortBy.js.map +1 -1
- package/dist/node_modules/lodash/_baseTimes.js +1 -2
- package/dist/node_modules/lodash/_baseTimes.js.map +1 -1
- package/dist/node_modules/lodash/_baseToString.js +6 -7
- package/dist/node_modules/lodash/_baseToString.js.map +1 -1
- package/dist/node_modules/lodash/_baseTrim.js +1 -2
- package/dist/node_modules/lodash/_baseTrim.js.map +1 -1
- package/dist/node_modules/lodash/_baseUnary.js +1 -2
- package/dist/node_modules/lodash/_baseUnary.js.map +1 -1
- package/dist/node_modules/lodash/_baseUniq.js +7 -8
- package/dist/node_modules/lodash/_baseUniq.js.map +1 -1
- package/dist/node_modules/lodash/_cacheHas.js +1 -2
- package/dist/node_modules/lodash/_cacheHas.js.map +1 -1
- package/dist/node_modules/lodash/_castPath.js +1 -2
- package/dist/node_modules/lodash/_castPath.js.map +1 -1
- package/dist/node_modules/lodash/_castSlice.js +1 -2
- package/dist/node_modules/lodash/_castSlice.js.map +1 -1
- package/dist/node_modules/lodash/_compareAscending.js +1 -2
- package/dist/node_modules/lodash/_compareAscending.js.map +1 -1
- package/dist/node_modules/lodash/_compareMultiple.js +1 -2
- package/dist/node_modules/lodash/_compareMultiple.js.map +1 -1
- package/dist/node_modules/lodash/_coreJsData.js +1 -2
- package/dist/node_modules/lodash/_coreJsData.js.map +1 -1
- package/dist/node_modules/lodash/_createBaseEach.js +1 -2
- package/dist/node_modules/lodash/_createBaseEach.js.map +1 -1
- package/dist/node_modules/lodash/_createBaseFor.js +1 -2
- package/dist/node_modules/lodash/_createBaseFor.js.map +1 -1
- package/dist/node_modules/lodash/_createCaseFirst.js +6 -7
- package/dist/node_modules/lodash/_createCaseFirst.js.map +1 -1
- package/dist/node_modules/lodash/_createFind.js +5 -6
- package/dist/node_modules/lodash/_createFind.js.map +1 -1
- package/dist/node_modules/lodash/_createRange.js +4 -5
- package/dist/node_modules/lodash/_createRange.js.map +1 -1
- package/dist/node_modules/lodash/_createSet.js +6 -7
- package/dist/node_modules/lodash/_createSet.js.map +1 -1
- package/dist/node_modules/lodash/_defineProperty.js +1 -2
- package/dist/node_modules/lodash/_defineProperty.js.map +1 -1
- package/dist/node_modules/lodash/_equalArrays.js +1 -2
- package/dist/node_modules/lodash/_equalArrays.js.map +1 -1
- package/dist/node_modules/lodash/_equalByTag.js +5 -6
- package/dist/node_modules/lodash/_equalByTag.js.map +1 -1
- package/dist/node_modules/lodash/_equalObjects.js +1 -2
- package/dist/node_modules/lodash/_equalObjects.js.map +1 -1
- package/dist/node_modules/lodash/_freeGlobal.js +1 -2
- package/dist/node_modules/lodash/_freeGlobal.js.map +1 -1
- package/dist/node_modules/lodash/_getAllKeys.js +1 -2
- package/dist/node_modules/lodash/_getAllKeys.js.map +1 -1
- package/dist/node_modules/lodash/_getMapData.js +1 -2
- package/dist/node_modules/lodash/_getMapData.js.map +1 -1
- package/dist/node_modules/lodash/_getMatchData.js +4 -5
- package/dist/node_modules/lodash/_getMatchData.js.map +1 -1
- package/dist/node_modules/lodash/_getNative.js +1 -2
- package/dist/node_modules/lodash/_getNative.js.map +1 -1
- package/dist/node_modules/lodash/_getPrototype.js +1 -2
- package/dist/node_modules/lodash/_getPrototype.js.map +1 -1
- package/dist/node_modules/lodash/_getRawTag.js +1 -2
- package/dist/node_modules/lodash/_getRawTag.js.map +1 -1
- package/dist/node_modules/lodash/_getSymbols.js +1 -2
- package/dist/node_modules/lodash/_getSymbols.js.map +1 -1
- package/dist/node_modules/lodash/_getTag.js +9 -10
- package/dist/node_modules/lodash/_getTag.js.map +1 -1
- package/dist/node_modules/lodash/_getValue.js +1 -2
- package/dist/node_modules/lodash/_getValue.js.map +1 -1
- package/dist/node_modules/lodash/_hasPath.js +8 -9
- package/dist/node_modules/lodash/_hasPath.js.map +1 -1
- package/dist/node_modules/lodash/_hasUnicode.js +1 -2
- package/dist/node_modules/lodash/_hasUnicode.js.map +1 -1
- package/dist/node_modules/lodash/_hashClear.js +1 -2
- package/dist/node_modules/lodash/_hashClear.js.map +1 -1
- package/dist/node_modules/lodash/_hashDelete.js +1 -2
- package/dist/node_modules/lodash/_hashDelete.js.map +1 -1
- package/dist/node_modules/lodash/_hashGet.js +1 -2
- package/dist/node_modules/lodash/_hashGet.js.map +1 -1
- package/dist/node_modules/lodash/_hashHas.js +1 -2
- package/dist/node_modules/lodash/_hashHas.js.map +1 -1
- package/dist/node_modules/lodash/_hashSet.js +1 -2
- package/dist/node_modules/lodash/_hashSet.js.map +1 -1
- package/dist/node_modules/lodash/_isFlattenable.js +5 -6
- package/dist/node_modules/lodash/_isFlattenable.js.map +1 -1
- package/dist/node_modules/lodash/_isIndex.js +6 -7
- package/dist/node_modules/lodash/_isIndex.js.map +1 -1
- package/dist/node_modules/lodash/_isIterateeCall.js +5 -6
- package/dist/node_modules/lodash/_isIterateeCall.js.map +1 -1
- package/dist/node_modules/lodash/_isKey.js +1 -2
- package/dist/node_modules/lodash/_isKey.js.map +1 -1
- package/dist/node_modules/lodash/_isKeyable.js +1 -2
- package/dist/node_modules/lodash/_isKeyable.js.map +1 -1
- package/dist/node_modules/lodash/_isMasked.js +1 -2
- package/dist/node_modules/lodash/_isMasked.js.map +1 -1
- package/dist/node_modules/lodash/_isPrototype.js +1 -2
- package/dist/node_modules/lodash/_isPrototype.js.map +1 -1
- package/dist/node_modules/lodash/_isStrictComparable.js +1 -2
- package/dist/node_modules/lodash/_isStrictComparable.js.map +1 -1
- package/dist/node_modules/lodash/_listCacheClear.js +1 -2
- package/dist/node_modules/lodash/_listCacheClear.js.map +1 -1
- package/dist/node_modules/lodash/_listCacheDelete.js +1 -2
- package/dist/node_modules/lodash/_listCacheDelete.js.map +1 -1
- package/dist/node_modules/lodash/_listCacheGet.js +1 -2
- package/dist/node_modules/lodash/_listCacheGet.js.map +1 -1
- package/dist/node_modules/lodash/_listCacheHas.js +1 -2
- package/dist/node_modules/lodash/_listCacheHas.js.map +1 -1
- package/dist/node_modules/lodash/_listCacheSet.js +1 -2
- package/dist/node_modules/lodash/_listCacheSet.js.map +1 -1
- package/dist/node_modules/lodash/_mapCacheClear.js +1 -2
- package/dist/node_modules/lodash/_mapCacheClear.js.map +1 -1
- package/dist/node_modules/lodash/_mapCacheDelete.js +1 -2
- package/dist/node_modules/lodash/_mapCacheDelete.js.map +1 -1
- package/dist/node_modules/lodash/_mapCacheGet.js +1 -2
- package/dist/node_modules/lodash/_mapCacheGet.js.map +1 -1
- package/dist/node_modules/lodash/_mapCacheHas.js +1 -2
- package/dist/node_modules/lodash/_mapCacheHas.js.map +1 -1
- package/dist/node_modules/lodash/_mapCacheSet.js +1 -2
- package/dist/node_modules/lodash/_mapCacheSet.js.map +1 -1
- package/dist/node_modules/lodash/_mapToArray.js +1 -2
- package/dist/node_modules/lodash/_mapToArray.js.map +1 -1
- package/dist/node_modules/lodash/_matchesStrictComparable.js +2 -3
- package/dist/node_modules/lodash/_matchesStrictComparable.js.map +1 -1
- package/dist/node_modules/lodash/_memoizeCapped.js +1 -2
- package/dist/node_modules/lodash/_memoizeCapped.js.map +1 -1
- package/dist/node_modules/lodash/_nativeCreate.js +1 -2
- package/dist/node_modules/lodash/_nativeCreate.js.map +1 -1
- package/dist/node_modules/lodash/_nativeKeys.js +1 -2
- package/dist/node_modules/lodash/_nativeKeys.js.map +1 -1
- package/dist/node_modules/lodash/_nodeUtil.js +1 -2
- package/dist/node_modules/lodash/_nodeUtil.js.map +1 -1
- package/dist/node_modules/lodash/_objectToString.js +1 -2
- package/dist/node_modules/lodash/_objectToString.js.map +1 -1
- package/dist/node_modules/lodash/_overArg.js +1 -2
- package/dist/node_modules/lodash/_overArg.js.map +1 -1
- package/dist/node_modules/lodash/_overRest.js +1 -2
- package/dist/node_modules/lodash/_overRest.js.map +1 -1
- package/dist/node_modules/lodash/_root.js +1 -2
- package/dist/node_modules/lodash/_root.js.map +1 -1
- package/dist/node_modules/lodash/_setCacheAdd.js +4 -6
- package/dist/node_modules/lodash/_setCacheAdd.js.map +1 -1
- package/dist/node_modules/lodash/_setCacheHas.js +1 -2
- package/dist/node_modules/lodash/_setCacheHas.js.map +1 -1
- package/dist/node_modules/lodash/_setToArray.js +1 -2
- package/dist/node_modules/lodash/_setToArray.js.map +1 -1
- package/dist/node_modules/lodash/_setToString.js +1 -2
- package/dist/node_modules/lodash/_setToString.js.map +1 -1
- package/dist/node_modules/lodash/_shortOut.js +8 -9
- package/dist/node_modules/lodash/_shortOut.js.map +1 -1
- package/dist/node_modules/lodash/_stackClear.js +1 -2
- package/dist/node_modules/lodash/_stackClear.js.map +1 -1
- package/dist/node_modules/lodash/_stackDelete.js +1 -2
- package/dist/node_modules/lodash/_stackDelete.js.map +1 -1
- package/dist/node_modules/lodash/_stackGet.js +1 -2
- package/dist/node_modules/lodash/_stackGet.js.map +1 -1
- package/dist/node_modules/lodash/_stackHas.js +1 -2
- package/dist/node_modules/lodash/_stackHas.js.map +1 -1
- package/dist/node_modules/lodash/_stackSet.js +1 -2
- package/dist/node_modules/lodash/_stackSet.js.map +1 -1
- package/dist/node_modules/lodash/_strictIndexOf.js +1 -2
- package/dist/node_modules/lodash/_strictIndexOf.js.map +1 -1
- package/dist/node_modules/lodash/_stringToArray.js +4 -5
- package/dist/node_modules/lodash/_stringToArray.js.map +1 -1
- package/dist/node_modules/lodash/_stringToPath.js +1 -2
- package/dist/node_modules/lodash/_stringToPath.js.map +1 -1
- package/dist/node_modules/lodash/_toKey.js +2 -3
- package/dist/node_modules/lodash/_toKey.js.map +1 -1
- package/dist/node_modules/lodash/_toSource.js +1 -2
- package/dist/node_modules/lodash/_toSource.js.map +1 -1
- package/dist/node_modules/lodash/_trimmedEndIndex.js +1 -2
- package/dist/node_modules/lodash/_trimmedEndIndex.js.map +1 -1
- package/dist/node_modules/lodash/_unicodeToArray.js +1 -2
- package/dist/node_modules/lodash/_unicodeToArray.js.map +1 -1
- package/dist/node_modules/lodash/constant.js +1 -2
- package/dist/node_modules/lodash/constant.js.map +1 -1
- package/dist/node_modules/lodash/debounce.js +1 -2
- package/dist/node_modules/lodash/debounce.js.map +1 -1
- package/dist/node_modules/lodash/eq.js +1 -2
- package/dist/node_modules/lodash/eq.js.map +1 -1
- package/dist/node_modules/lodash/every.js +7 -8
- package/dist/node_modules/lodash/every.js.map +1 -1
- package/dist/node_modules/lodash/find.js +1 -2
- package/dist/node_modules/lodash/find.js.map +1 -1
- package/dist/node_modules/lodash/findIndex.js +4 -5
- package/dist/node_modules/lodash/findIndex.js.map +1 -1
- package/dist/node_modules/lodash/flatMap.js +1 -2
- package/dist/node_modules/lodash/flatMap.js.map +1 -1
- package/dist/node_modules/lodash/get.js +1 -2
- package/dist/node_modules/lodash/get.js.map +1 -1
- package/dist/node_modules/lodash/hasIn.js +1 -2
- package/dist/node_modules/lodash/hasIn.js.map +1 -1
- package/dist/node_modules/lodash/identity.js +1 -2
- package/dist/node_modules/lodash/identity.js.map +1 -1
- package/dist/node_modules/lodash/isArguments.js +4 -5
- package/dist/node_modules/lodash/isArguments.js.map +1 -1
- package/dist/node_modules/lodash/isArray.js +1 -2
- package/dist/node_modules/lodash/isArray.js.map +1 -1
- package/dist/node_modules/lodash/isArrayLike.js +1 -2
- package/dist/node_modules/lodash/isArrayLike.js.map +1 -1
- package/dist/node_modules/lodash/isBoolean.js +1 -2
- package/dist/node_modules/lodash/isBoolean.js.map +1 -1
- package/dist/node_modules/lodash/isBuffer.js +1 -2
- package/dist/node_modules/lodash/isBuffer.js.map +1 -1
- package/dist/node_modules/lodash/isEqual.js +1 -2
- package/dist/node_modules/lodash/isEqual.js.map +1 -1
- package/dist/node_modules/lodash/isFunction.js +1 -2
- package/dist/node_modules/lodash/isFunction.js.map +1 -1
- package/dist/node_modules/lodash/isLength.js +4 -6
- package/dist/node_modules/lodash/isLength.js.map +1 -1
- package/dist/node_modules/lodash/isNaN.js +1 -2
- package/dist/node_modules/lodash/isNaN.js.map +1 -1
- package/dist/node_modules/lodash/isNil.js +1 -2
- package/dist/node_modules/lodash/isNil.js.map +1 -1
- package/dist/node_modules/lodash/isNumber.js +1 -2
- package/dist/node_modules/lodash/isNumber.js.map +1 -1
- package/dist/node_modules/lodash/isObject.js +1 -2
- package/dist/node_modules/lodash/isObject.js.map +1 -1
- package/dist/node_modules/lodash/isObjectLike.js +1 -2
- package/dist/node_modules/lodash/isObjectLike.js.map +1 -1
- package/dist/node_modules/lodash/isPlainObject.js +4 -5
- package/dist/node_modules/lodash/isPlainObject.js.map +1 -1
- package/dist/node_modules/lodash/isString.js +4 -5
- package/dist/node_modules/lodash/isString.js.map +1 -1
- package/dist/node_modules/lodash/isSymbol.js +1 -2
- package/dist/node_modules/lodash/isSymbol.js.map +1 -1
- package/dist/node_modules/lodash/isTypedArray.js +1 -2
- package/dist/node_modules/lodash/isTypedArray.js.map +1 -1
- package/dist/node_modules/lodash/keys.js +1 -2
- package/dist/node_modules/lodash/keys.js.map +1 -1
- package/dist/node_modules/lodash/last.js +1 -2
- package/dist/node_modules/lodash/last.js.map +1 -1
- package/dist/node_modules/lodash/map.js +6 -7
- package/dist/node_modules/lodash/map.js.map +1 -1
- package/dist/node_modules/lodash/mapValues.js +4 -5
- package/dist/node_modules/lodash/mapValues.js.map +1 -1
- package/dist/node_modules/lodash/max.js +5 -6
- package/dist/node_modules/lodash/max.js.map +1 -1
- package/dist/node_modules/lodash/maxBy.js +5 -6
- package/dist/node_modules/lodash/maxBy.js.map +1 -1
- package/dist/node_modules/lodash/memoize.js +1 -2
- package/dist/node_modules/lodash/memoize.js.map +1 -1
- package/dist/node_modules/lodash/min.js +5 -6
- package/dist/node_modules/lodash/min.js.map +1 -1
- package/dist/node_modules/lodash/minBy.js +4 -5
- package/dist/node_modules/lodash/minBy.js.map +1 -1
- package/dist/node_modules/lodash/noop.js +1 -2
- package/dist/node_modules/lodash/noop.js.map +1 -1
- package/dist/node_modules/lodash/now.js +1 -2
- package/dist/node_modules/lodash/now.js.map +1 -1
- package/dist/node_modules/lodash/property.js +6 -7
- package/dist/node_modules/lodash/property.js.map +1 -1
- package/dist/node_modules/lodash/range.js +1 -2
- package/dist/node_modules/lodash/range.js.map +1 -1
- package/dist/node_modules/lodash/some.js +7 -8
- package/dist/node_modules/lodash/some.js.map +1 -1
- package/dist/node_modules/lodash/sortBy.js +1 -2
- package/dist/node_modules/lodash/sortBy.js.map +1 -1
- package/dist/node_modules/lodash/stubArray.js +1 -2
- package/dist/node_modules/lodash/stubArray.js.map +1 -1
- package/dist/node_modules/lodash/stubFalse.js +1 -2
- package/dist/node_modules/lodash/stubFalse.js.map +1 -1
- package/dist/node_modules/lodash/throttle.js +4 -5
- package/dist/node_modules/lodash/throttle.js.map +1 -1
- package/dist/node_modules/lodash/toFinite.js +2 -3
- package/dist/node_modules/lodash/toFinite.js.map +1 -1
- package/dist/node_modules/lodash/toInteger.js +1 -2
- package/dist/node_modules/lodash/toInteger.js.map +1 -1
- package/dist/node_modules/lodash/toNumber.js +4 -5
- package/dist/node_modules/lodash/toNumber.js.map +1 -1
- package/dist/node_modules/lodash/toString.js +1 -2
- package/dist/node_modules/lodash/toString.js.map +1 -1
- package/dist/node_modules/lodash/uniqBy.js +1 -2
- package/dist/node_modules/lodash/uniqBy.js.map +1 -1
- package/dist/node_modules/lodash/upperFirst.js +1 -2
- package/dist/node_modules/lodash/upperFirst.js.map +1 -1
- package/dist/node_modules/object-assign/index.js +1 -2
- package/dist/node_modules/object-assign/index.js.map +1 -1
- package/dist/node_modules/prop-types/checkPropTypes.js +1 -2
- package/dist/node_modules/prop-types/checkPropTypes.js.map +1 -1
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +1 -2
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +3 -3
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -1
- package/dist/node_modules/prop-types/index.js +1 -2
- package/dist/node_modules/prop-types/index.js.map +1 -1
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -2
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -1
- package/dist/node_modules/prop-types/lib/has.js +1 -2
- package/dist/node_modules/prop-types/lib/has.js.map +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +1 -2
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +1 -2
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +2 -3
- package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +1 -1
- package/dist/node_modules/react-is/cjs/react-is.development.js +31 -32
- package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -1
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +1 -2
- package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
- package/dist/node_modules/react-is/index.js +2 -3
- package/dist/node_modules/react-is/index.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/Animate.js +33 -41
- package/dist/node_modules/react-smooth/es6/Animate.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/AnimateManager.js +2 -5
- package/dist/node_modules/react-smooth/es6/AnimateManager.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/configUpdate.js +1 -2
- package/dist/node_modules/react-smooth/es6/configUpdate.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/easing.js +1 -2
- package/dist/node_modules/react-smooth/es6/easing.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/index.js +1 -2
- package/dist/node_modules/react-smooth/es6/index.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/setRafTimeout.js +1 -2
- package/dist/node_modules/react-smooth/es6/setRafTimeout.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/util.js +17 -16
- package/dist/node_modules/react-smooth/es6/util.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/Area.js +99 -100
- package/dist/node_modules/recharts/es6/cartesian/Area.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/Bar.js +103 -104
- package/dist/node_modules/recharts/es6/cartesian/Bar.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/Brush.js +35 -36
- package/dist/node_modules/recharts/es6/cartesian/Brush.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +60 -67
- package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +20 -21
- package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +29 -30
- package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +23 -24
- package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +31 -32
- package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/XAxis.js +10 -11
- package/dist/node_modules/recharts/es6/cartesian/XAxis.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/YAxis.js +10 -11
- package/dist/node_modules/recharts/es6/cartesian/YAxis.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js +5 -6
- package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/getTicks.js +7 -8
- package/dist/node_modules/recharts/es6/cartesian/getTicks.js.map +1 -1
- package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +2 -5
- package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js.map +1 -1
- package/dist/node_modules/recharts/es6/chart/AreaChart.js +5 -6
- package/dist/node_modules/recharts/es6/chart/AreaChart.js.map +1 -1
- package/dist/node_modules/recharts/es6/chart/BarChart.js +7 -8
- package/dist/node_modules/recharts/es6/chart/BarChart.js.map +1 -1
- package/dist/node_modules/recharts/es6/chart/PieChart.js +11 -12
- package/dist/node_modules/recharts/es6/chart/PieChart.js.map +1 -1
- package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +534 -533
- package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/Cell.js +1 -2
- package/dist/node_modules/recharts/es6/component/Cell.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/Cursor.js +17 -18
- package/dist/node_modules/recharts/es6/component/Cursor.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +35 -36
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +16 -17
- package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/Label.js +85 -86
- package/dist/node_modules/recharts/es6/component/Label.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/LabelList.js +20 -21
- package/dist/node_modules/recharts/es6/component/LabelList.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/Legend.js +26 -23
- package/dist/node_modules/recharts/es6/component/Legend.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +16 -17
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/Text.js +18 -21
- package/dist/node_modules/recharts/es6/component/Text.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/Tooltip.js +16 -17
- package/dist/node_modules/recharts/es6/component/Tooltip.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +3 -4
- package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js.map +1 -1
- package/dist/node_modules/recharts/es6/container/Layer.js +5 -6
- package/dist/node_modules/recharts/es6/container/Layer.js.map +1 -1
- package/dist/node_modules/recharts/es6/container/Surface.js +5 -6
- package/dist/node_modules/recharts/es6/container/Surface.js.map +1 -1
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +7 -8
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js.map +1 -1
- package/dist/node_modules/recharts/es6/polar/Pie.js +103 -107
- package/dist/node_modules/recharts/es6/polar/Pie.js.map +1 -1
- package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js +30 -31
- package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js.map +1 -1
- package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js +38 -41
- package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Cross.js +4 -5
- package/dist/node_modules/recharts/es6/shape/Cross.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Curve.js +51 -52
- package/dist/node_modules/recharts/es6/shape/Curve.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Dot.js +3 -4
- package/dist/node_modules/recharts/es6/shape/Dot.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Polygon.js +7 -8
- package/dist/node_modules/recharts/es6/shape/Polygon.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Rectangle.js +8 -9
- package/dist/node_modules/recharts/es6/shape/Rectangle.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Sector.js +33 -34
- package/dist/node_modules/recharts/es6/shape/Sector.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Symbols.js +33 -34
- package/dist/node_modules/recharts/es6/shape/Symbols.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Trapezoid.js +8 -9
- package/dist/node_modules/recharts/es6/shape/Trapezoid.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +24 -25
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/BarUtils.js +10 -11
- package/dist/node_modules/recharts/es6/util/BarUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/CartesianUtils.js +33 -34
- package/dist/node_modules/recharts/es6/util/CartesianUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +236 -235
- package/dist/node_modules/recharts/es6/util/ChartUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js +1 -2
- package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/DOMUtils.js +1 -2
- package/dist/node_modules/recharts/es6/util/DOMUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/DataUtils.js +7 -8
- package/dist/node_modules/recharts/es6/util/DataUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js +20 -21
- package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/Events.js +0 -1
- package/dist/node_modules/recharts/es6/util/Events.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/Global.js +0 -1
- package/dist/node_modules/recharts/es6/util/Global.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js +1 -2
- package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/LogUtils.js +9 -8
- package/dist/node_modules/recharts/es6/util/LogUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/PolarUtils.js +6 -7
- package/dist/node_modules/recharts/es6/util/PolarUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +11 -12
- package/dist/node_modules/recharts/es6/util/ReactUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +5 -6
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/ShallowEqual.js +1 -2
- package/dist/node_modules/recharts/es6/util/ShallowEqual.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/TickUtils.js +4 -4
- package/dist/node_modules/recharts/es6/util/TickUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/calculateViewBox.js +0 -1
- package/dist/node_modules/recharts/es6/util/calculateViewBox.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js +7 -6
- package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js +1 -2
- package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js +1 -2
- package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js +1 -2
- package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/getLegendProps.js +9 -10
- package/dist/node_modules/recharts/es6/util/getLegendProps.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +1 -2
- package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js +4 -5
- package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/tooltip/translate.js +3 -4
- package/dist/node_modules/recharts/es6/util/tooltip/translate.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/types.js +2 -3
- package/dist/node_modules/recharts/es6/util/types.js.map +1 -1
- package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +2 -3
- package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js.map +1 -1
- package/dist/node_modules/recharts-scale/es6/index.js +1 -1
- package/dist/node_modules/recharts-scale/es6/util/arithmetic.js +1 -2
- package/dist/node_modules/recharts-scale/es6/util/arithmetic.js.map +1 -1
- package/dist/node_modules/recharts-scale/es6/util/utils.js +3 -4
- package/dist/node_modules/recharts-scale/es6/util/utils.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +2 -3
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Scheduler.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/Scheduler.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +13 -14
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +20 -17
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js +3 -4
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/observeOn.js +12 -13
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/observeOn.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/Action.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/Action.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/AsapAction.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/AsapAction.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/AsapScheduler.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/AsapScheduler.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncAction.js +17 -18
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncAction.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js +12 -14
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/asap.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/asap.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/dateTimestampProvider.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/dateTimestampProvider.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/immediateProvider.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/immediateProvider.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/intervalProvider.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/intervalProvider.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/Immediate.js +2 -3
- package/dist/node_modules/rxjs/dist/esm5/internal/util/Immediate.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +3 -6
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/lift.js +2 -3
- package/dist/node_modules/rxjs/dist/esm5/internal/util/lift.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -1
- package/dist/node_modules/sonner/dist/index.js +75 -69
- package/dist/node_modules/sonner/dist/index.js.map +1 -1
- package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +2 -3
- package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js.map +1 -1
- package/dist/node_modules/tslib/tslib.es6.js +1 -2
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/node_modules/victory-vendor/es/d3-scale.js +2 -3
- package/dist/node_modules/victory-vendor/es/d3-scale.js.map +1 -1
- package/dist/services/createSandboxAssistantTransport.js +1 -2
- package/dist/services/createSandboxAssistantTransport.js.map +1 -1
- package/dist/shared/hooks/useTr.js +1 -2
- package/dist/shared/hooks/useTr.js.map +1 -1
- package/dist/utils/pageContext.js +3 -4
- package/dist/utils/pageContext.js.map +1 -1
- package/package.json +30 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionMenu.js","names":[],"sources":["../../../src/eventfullymanaged/components/ActionMenu.tsx"],"sourcesContent":["import { useCallback, useId, useState, type ReactNode } from 'react';\nimport type { LucideIcon } from 'lucide-react';\nimport { Eye, MoreVertical, Pencil, Trash2 } from 'lucide-react';\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n buttonVariants,\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '@burdenoff/fe-libs/ui';\nimport { useExclusiveMenu } from '@burdenoff/fe-libs/shared/hooks';\n\nexport interface ActionMenuItem {\n key: string;\n label: string;\n icon?: LucideIcon;\n onSelect: () => void;\n variant?: 'default' | 'danger';\n disabled?: boolean;\n separatorBefore?: boolean;\n}\n\nexport interface ActionMenuProps {\n /** Accessible name for the trigger, e.g. \"Sponsor actions\". */\n ariaLabel: string;\n /** View handler — renders the \"View\" item when provided. */\n onView?: () => void;\n /** Edit handler — renders the \"Edit\" item when provided. */\n onEdit?: () => void;\n /**\n * Delete handler — renders a danger \"Delete\" item that first opens a confirm\n * dialog. May be async; the dialog stays open until it resolves.\n */\n onDelete?: () => void | Promise<void>;\n /** Name shown inside the delete confirmation (\"Delete \\\"Acme Corp\\\"?\"). */\n entityName?: string;\n /** Label for the danger item + confirm button. Defaults to \"Delete\". */\n deleteLabel?: string;\n /** Additional items inserted before the Delete action. */\n extraItems?: ActionMenuItem[];\n align?: 'start' | 'end';\n /** Custom trigger; defaults to a kebab icon button. */\n trigger?: ReactNode;\n}\n\nconst DANGER_ITEM_CLASS = 'text-status-error-text focus:text-status-error-text';\n\n/**\n * Canonical row overflow menu (View / Edit / Delete) for EventfullyManaged list\n * pages. Built on the fe-libs Radix DropdownMenu (keyboard nav, Escape,\n * outside-click, focus return) and coordinated across the page via\n * `useExclusiveMenu`, so opening one row's menu closes any other. Delete routes\n * through an AlertDialog confirm before the destructive handler fires.\n *\n * Safe inside clickable cards: the trigger and content stop click propagation.\n */\nexport function ActionMenu({\n ariaLabel,\n onView,\n onEdit,\n onDelete,\n entityName,\n deleteLabel = 'Delete',\n extraItems = [],\n align = 'end',\n trigger,\n}: ActionMenuProps) {\n const menuId = useId();\n const [open, setOpen] = useState(false);\n const [confirmOpen, setConfirmOpen] = useState(false);\n const [deleting, setDeleting] = useState(false);\n\n const close = useCallback(() => setOpen(false), []);\n // Close this menu whenever another exclusive menu on the page opens.\n useExclusiveMenu(menuId, open, close);\n\n const handleConfirmDelete = async () => {\n if (!onDelete) {\n return;\n }\n try {\n setDeleting(true);\n await onDelete();\n setConfirmOpen(false);\n } catch {\n // The handler surfaces its own error (toast); keep the dialog open so the\n // user can retry or cancel rather than silently dismissing.\n } finally {\n setDeleting(false);\n }\n };\n\n const triggerNode = trigger ?? (\n <button\n type=\"button\"\n className=\"inline-flex size-9 items-center justify-center rounded-button text-text-secondary transition-colors hover:bg-bg-sunken hover:text-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus max-md:size-11\"\n aria-label={ariaLabel}\n >\n <MoreVertical className=\"size-4\" aria-hidden=\"true\" />\n </button>\n );\n\n const hasAnyItem = Boolean(onView || onEdit || extraItems.length > 0 || onDelete);\n if (!hasAnyItem) {\n return null;\n }\n\n return (\n <>\n <DropdownMenu open={open} onOpenChange={setOpen}>\n <DropdownMenuTrigger\n asChild\n onClick={(event) => event.stopPropagation()}\n onKeyDown={(event) => event.stopPropagation()}\n >\n {triggerNode}\n </DropdownMenuTrigger>\n <DropdownMenuContent\n align={align}\n className=\"min-w-44\"\n onClick={(event) => event.stopPropagation()}\n onKeyDown={(event) => event.stopPropagation()}\n >\n {onView ? (\n <DropdownMenuItem className=\"cursor-pointer gap-2\" onSelect={() => onView()}>\n <Eye className=\"size-4 shrink-0\" aria-hidden=\"true\" />\n <span>View</span>\n </DropdownMenuItem>\n ) : null}\n {onEdit ? (\n <DropdownMenuItem className=\"cursor-pointer gap-2\" onSelect={() => onEdit()}>\n <Pencil className=\"size-4 shrink-0\" aria-hidden=\"true\" />\n <span>Edit</span>\n </DropdownMenuItem>\n ) : null}\n {extraItems.map((item) => {\n const Icon = item.icon;\n return (\n <div key={item.key} className=\"contents\">\n {item.separatorBefore ? <DropdownMenuSeparator /> : null}\n <DropdownMenuItem\n disabled={item.disabled}\n onSelect={() => item.onSelect()}\n className={`cursor-pointer gap-2 ${item.variant === 'danger' ? DANGER_ITEM_CLASS : ''}`}\n >\n {Icon ? <Icon className=\"size-4 shrink-0\" aria-hidden=\"true\" /> : null}\n <span className=\"min-w-0 truncate\">{item.label}</span>\n </DropdownMenuItem>\n </div>\n );\n })}\n {onDelete ? (\n <div className=\"contents\">\n {onView || onEdit || extraItems.length > 0 ? <DropdownMenuSeparator /> : null}\n <DropdownMenuItem\n className={`cursor-pointer gap-2 ${DANGER_ITEM_CLASS}`}\n onSelect={() => setConfirmOpen(true)}\n >\n <Trash2 className=\"size-4 shrink-0\" aria-hidden=\"true\" />\n <span>{deleteLabel}</span>\n </DropdownMenuItem>\n </div>\n ) : null}\n </DropdownMenuContent>\n </DropdownMenu>\n\n {onDelete ? (\n <AlertDialog open={confirmOpen} onOpenChange={(next) => (deleting ? undefined : setConfirmOpen(next))}>\n <AlertDialogContent onClick={(event) => event.stopPropagation()}>\n <AlertDialogHeader>\n <AlertDialogTitle>\n {deleteLabel}\n {entityName ? ` “${entityName}”?` : '?'}\n </AlertDialogTitle>\n <AlertDialogDescription>\n This action cannot be undone. {entityName ? `“${entityName}” ` : 'This record '}\n will be permanently removed.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel disabled={deleting}>Cancel</AlertDialogCancel>\n <AlertDialogAction\n onClick={(event) => {\n event.preventDefault();\n void handleConfirmDelete();\n }}\n disabled={deleting}\n className={buttonVariants({ variant: 'destructive' })}\n >\n {deleting ? 'Deleting…' : deleteLabel}\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n ) : null}\n </>\n );\n}\n"],"mappings":";;;;;;AAsDA,IAAM,IAAoB;AAW1B,SAAgB,EAAW,EACzB,cACA,WACA,WACA,aACA,eACA,iBAAc,UACd,gBAAa,EAAE,EACf,WAAQ,OACR,cACkB;CAClB,IAAM,IAAS,GAAO,EAChB,CAAC,GAAM,KAAW,EAAS,GAAM,EACjC,CAAC,GAAa,KAAkB,EAAS,GAAM,EAC/C,CAAC,GAAU,KAAe,EAAS,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,"file":"ActionMenu.js","names":["_Fragment","DANGER_ITEM_CLASS","ActionMenu","menuId","useId","open","setOpen","useState","confirmOpen","setConfirmOpen","deleting","setDeleting","close","useCallback","handleConfirmDelete","onDelete","triggerNode","trigger","ariaLabel","MoreVertical","onView","onEdit","extraItems","Fragment","DropdownMenu","DropdownMenuTrigger","event","DropdownMenuContent","DropdownMenuItem","Eye","Pencil","Icon","item","DropdownMenuSeparator","Trash2","deleteLabel","AlertDialog","next","AlertDialogContent","AlertDialogHeader","AlertDialogTitle","entityName","AlertDialogDescription","AlertDialogFooter","AlertDialogCancel","AlertDialogAction","buttonVariants"],"sources":["../../../src/eventfullymanaged/components/ActionMenu.tsx"],"sourcesContent":["import { useCallback, useId, useState, type ReactNode } from 'react';\nimport type { LucideIcon } from 'lucide-react';\nimport { Eye, MoreVertical, Pencil, Trash2 } from 'lucide-react';\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n buttonVariants,\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '@burdenoff/fe-libs/ui';\nimport { useExclusiveMenu } from '@burdenoff/fe-libs/shared/hooks';\n\nexport interface ActionMenuItem {\n key: string;\n label: string;\n icon?: LucideIcon;\n onSelect: () => void;\n variant?: 'default' | 'danger';\n disabled?: boolean;\n separatorBefore?: boolean;\n}\n\nexport interface ActionMenuProps {\n /** Accessible name for the trigger, e.g. \"Sponsor actions\". */\n ariaLabel: string;\n /** View handler — renders the \"View\" item when provided. */\n onView?: () => void;\n /** Edit handler — renders the \"Edit\" item when provided. */\n onEdit?: () => void;\n /**\n * Delete handler — renders a danger \"Delete\" item that first opens a confirm\n * dialog. May be async; the dialog stays open until it resolves.\n */\n onDelete?: () => void | Promise<void>;\n /** Name shown inside the delete confirmation (\"Delete \\\"Acme Corp\\\"?\"). */\n entityName?: string;\n /** Label for the danger item + confirm button. Defaults to \"Delete\". */\n deleteLabel?: string;\n /** Additional items inserted before the Delete action. */\n extraItems?: ActionMenuItem[];\n align?: 'start' | 'end';\n /** Custom trigger; defaults to a kebab icon button. */\n trigger?: ReactNode;\n}\n\nconst DANGER_ITEM_CLASS = 'text-status-error-text focus:text-status-error-text';\n\n/**\n * Canonical row overflow menu (View / Edit / Delete) for EventfullyManaged list\n * pages. Built on the fe-libs Radix DropdownMenu (keyboard nav, Escape,\n * outside-click, focus return) and coordinated across the page via\n * `useExclusiveMenu`, so opening one row's menu closes any other. Delete routes\n * through an AlertDialog confirm before the destructive handler fires.\n *\n * Safe inside clickable cards: the trigger and content stop click propagation.\n */\nexport function ActionMenu({\n ariaLabel,\n onView,\n onEdit,\n onDelete,\n entityName,\n deleteLabel = 'Delete',\n extraItems = [],\n align = 'end',\n trigger,\n}: ActionMenuProps) {\n const menuId = useId();\n const [open, setOpen] = useState(false);\n const [confirmOpen, setConfirmOpen] = useState(false);\n const [deleting, setDeleting] = useState(false);\n\n const close = useCallback(() => setOpen(false), []);\n // Close this menu whenever another exclusive menu on the page opens.\n useExclusiveMenu(menuId, open, close);\n\n const handleConfirmDelete = async () => {\n if (!onDelete) {\n return;\n }\n try {\n setDeleting(true);\n await onDelete();\n setConfirmOpen(false);\n } catch {\n // The handler surfaces its own error (toast); keep the dialog open so the\n // user can retry or cancel rather than silently dismissing.\n } finally {\n setDeleting(false);\n }\n };\n\n const triggerNode = trigger ?? (\n <button\n type=\"button\"\n className=\"inline-flex size-9 items-center justify-center rounded-button text-text-secondary transition-colors hover:bg-bg-sunken hover:text-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus max-md:size-11\"\n aria-label={ariaLabel}\n >\n <MoreVertical className=\"size-4\" aria-hidden=\"true\" />\n </button>\n );\n\n const hasAnyItem = Boolean(onView || onEdit || extraItems.length > 0 || onDelete);\n if (!hasAnyItem) {\n return null;\n }\n\n return (\n <>\n <DropdownMenu open={open} onOpenChange={setOpen}>\n <DropdownMenuTrigger\n asChild\n onClick={(event) => event.stopPropagation()}\n onKeyDown={(event) => event.stopPropagation()}\n >\n {triggerNode}\n </DropdownMenuTrigger>\n <DropdownMenuContent\n align={align}\n className=\"min-w-44\"\n onClick={(event) => event.stopPropagation()}\n onKeyDown={(event) => event.stopPropagation()}\n >\n {onView ? (\n <DropdownMenuItem className=\"cursor-pointer gap-2\" onSelect={() => onView()}>\n <Eye className=\"size-4 shrink-0\" aria-hidden=\"true\" />\n <span>View</span>\n </DropdownMenuItem>\n ) : null}\n {onEdit ? (\n <DropdownMenuItem className=\"cursor-pointer gap-2\" onSelect={() => onEdit()}>\n <Pencil className=\"size-4 shrink-0\" aria-hidden=\"true\" />\n <span>Edit</span>\n </DropdownMenuItem>\n ) : null}\n {extraItems.map((item) => {\n const Icon = item.icon;\n return (\n <div key={item.key} className=\"contents\">\n {item.separatorBefore ? <DropdownMenuSeparator /> : null}\n <DropdownMenuItem\n disabled={item.disabled}\n onSelect={() => item.onSelect()}\n className={`cursor-pointer gap-2 ${item.variant === 'danger' ? DANGER_ITEM_CLASS : ''}`}\n >\n {Icon ? <Icon className=\"size-4 shrink-0\" aria-hidden=\"true\" /> : null}\n <span className=\"min-w-0 truncate\">{item.label}</span>\n </DropdownMenuItem>\n </div>\n );\n })}\n {onDelete ? (\n <div className=\"contents\">\n {onView || onEdit || extraItems.length > 0 ? <DropdownMenuSeparator /> : null}\n <DropdownMenuItem\n className={`cursor-pointer gap-2 ${DANGER_ITEM_CLASS}`}\n onSelect={() => setConfirmOpen(true)}\n >\n <Trash2 className=\"size-4 shrink-0\" aria-hidden=\"true\" />\n <span>{deleteLabel}</span>\n </DropdownMenuItem>\n </div>\n ) : null}\n </DropdownMenuContent>\n </DropdownMenu>\n\n {onDelete ? (\n <AlertDialog open={confirmOpen} onOpenChange={(next) => (deleting ? undefined : setConfirmOpen(next))}>\n <AlertDialogContent onClick={(event) => event.stopPropagation()}>\n <AlertDialogHeader>\n <AlertDialogTitle>\n {deleteLabel}\n {entityName ? ` “${entityName}”?` : '?'}\n </AlertDialogTitle>\n <AlertDialogDescription>\n This action cannot be undone. {entityName ? `“${entityName}” ` : 'This record '}\n will be permanently removed.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel disabled={deleting}>Cancel</AlertDialogCancel>\n <AlertDialogAction\n onClick={(event) => {\n event.preventDefault();\n void handleConfirmDelete();\n }}\n disabled={deleting}\n className={buttonVariants({ variant: 'destructive' })}\n >\n {deleting ? 'Deleting…' : deleteLabel}\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n ) : null}\n </>\n );\n}\n"],"mappings":";;;;;;AAsDA,IAAMC,IAAoB;AAW1B,SAAgBC,EAAW,EACzB,cACA,WACA,WACA,aACA,eACA,iBAAc,UACd,gBAAa,CAAC,GACd,WAAQ,OACR,cACkB;CAClB,IAAMC,IAASC,EAAM,GACf,CAACC,GAAMC,KAAWC,EAAS,EAAK,GAChC,CAACC,GAAaC,KAAkBF,EAAS,EAAK,GAC9C,CAACG,GAAUC,KAAeJ,EAAS,EAAK,GAExCK,IAAQC,QAAkBP,EAAQ,EAAK,GAAG,CAAC,CAAC;CAElD,EAAiBH,GAAQE,GAAMO,CAAK;CAEpC,IAAME,IAAsB,YAAY;EACtC,IAAKC,GAGL,IAAI;GAGF,AAFAJ,EAAY,EAAI,GAChB,MAAMI,EAAS,GACfN,EAAe,EAAK;EACtB,QAAQ,CAGR,UAAU;GACR,EAAY,EAAK;EACnB;CACF,GAEMO,IAAcC,KAClB,kBAAC,UAAD;EACE,MAAK;EACL,WAAU;EACV,cAAYC;EAEZ,UAAA,kBAACC,GAAD;GAAc,WAAU;GAAS,eAAY;EAAQ,CAAA;CAC/C,CAAA;CAQV,OAL2BC,KAAUC,KAAUC,EAAW,SAAS,KAAKP,IAMtE,kBAAAf,GAAA,EAAA,UAAA,CACE,kBAACwB,GAAD;EAA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BAACW,GAAD,CAAwB,CAAA,IAAI,MACzE,kBAACL,GAAD;MACE,WAAW,wBAAwB3B;MACnC,gBAAgBQ,EAAe,EAAI;MAFrC,UAAA,CAIE,kBAACyB,GAAD;OAAQ,WAAU;OAAkB,eAAY;MAAQ,CAAA,GACxD,kBAAC,QAAD,EAAA,UAAOC,EAAkB,CAAA,CACT;KACf,CAAA,CAAA;IACH,CAAA,IAAA;GACe;EACT,CAAA,CAAA;CAEb,CAAA,GAAApB,IACC,kBAACqB,GAAD;EAAa,MAAM5B;EAAa,eAAe,MAAUE,IAAW,KAAA,IAAYD,EAAe4B,CAAI;EACjG,UAAA,kBAACC,GAAD;GAAoB,UAAU,MAAUZ,EAAM,gBAAgB;GAA9D,UAAA,CACE,kBAACa,GAAD,EAAA,UAAA,CACE,kBAACC,GAAD,EAAA,UAAA,CACGL,GACAM,IAAa,KAAKA,EAAW,MAAM,GACpB,EAAA,CAAA,GAClB,kBAACC,GAAD,EAAA,UAAA;IAAwB;IACSD,IAAa,IAAIA,EAAW,MAAM;IAAe;GAE1D,EAAA,CAAA,CACP,EAAA,CAAA,GACnB,kBAACE,GAAD,EAAA,UAAA,CACE,kBAACC,GAAD;IAAmB,UAAUlC;IAAU,UAAA;GAAyB,CAAA,GAChE,kBAACmC,GAAD;IACE,UAAU,MAAU;KAElB,AADAnB,EAAM,eAAe,GACrBZ,EAAyB;IAC3B;IACA,UAAUJ;IACV,WAAWoC,EAAe,EAAE,SAAS,cAAc,CAAC;IAEnD,UAAApC,IAAW,cAAcyB;GACT,CAAA,CACF,EAAA,CAAA,CACD;;CACT,CAAA,IACX,IACJ,EAAA,CAAA,IA3FK;AA6FX"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventGql } from '../api/eventApi';
|
|
2
|
+
|
|
3
|
+
export declare function AttendanceForecast({ events, total, loading, failed, loadMore, reload, }: {
|
|
4
|
+
events: EventGql[];
|
|
5
|
+
total: number;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
failed: boolean;
|
|
8
|
+
loadMore: () => Promise<unknown>;
|
|
9
|
+
reload: () => Promise<unknown>;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=AttendanceForecast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttendanceForecast.d.ts","sourceRoot":"","sources":["../../../src/eventfullymanaged/components/AttendanceForecast.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAoKhD,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,KAAK,EACL,OAAO,EACP,MAAM,EACN,QAAQ,EACR,MAAM,GACP,EAAE;IACD,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CAChC,+BAqFA"}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { useEventfullymanagedForecastAttendanceMutation as e, useEventfullymanagedSavedAttendanceForecastQuery as t } from "../../generated/wspace-operations.js";
|
|
2
|
+
import { describeError as n } from "../lib/mutationResult.js";
|
|
3
|
+
import { useState as r } from "react";
|
|
4
|
+
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
|
+
import { Badge as s, Button as c, GlassCard as l, Select as u, SelectContent as d, SelectItem as f, SelectTrigger as p, SelectValue as m } from "@burdenoff/fe-libs/ui";
|
|
6
|
+
// src/eventfullymanaged/components/AttendanceForecast.tsx
|
|
7
|
+
function h(e) {
|
|
8
|
+
if (typeof e != "object" || !e || !("eventId" in e) || typeof e.eventId != "string" || !("predictedAttendance" in e) || typeof e.predictedAttendance != "number" || !("registered" in e) || typeof e.registered != "number" || !("low" in e) || typeof e.low != "number" || !("high" in e) || typeof e.high != "number" || !("confidence" in e) || typeof e.confidence != "string" || !("coldStart" in e) || typeof e.coldStart != "boolean") return null;
|
|
9
|
+
let t = "coldStartReason" in e && typeof e.coldStartReason == "string" ? e.coldStartReason : null;
|
|
10
|
+
return {
|
|
11
|
+
eventId: e.eventId,
|
|
12
|
+
predictedAttendance: e.predictedAttendance,
|
|
13
|
+
registered: e.registered,
|
|
14
|
+
low: e.low,
|
|
15
|
+
high: e.high,
|
|
16
|
+
confidence: e.confidence,
|
|
17
|
+
coldStart: e.coldStart,
|
|
18
|
+
coldStartReason: t
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function g(t) {
|
|
22
|
+
let [i, a] = e(), [o, s] = r(null);
|
|
23
|
+
return {
|
|
24
|
+
result: a.data?.eventfullyManagedForecastAttendance,
|
|
25
|
+
loading: a.loading,
|
|
26
|
+
error: o,
|
|
27
|
+
generate: async () => {
|
|
28
|
+
s(null);
|
|
29
|
+
try {
|
|
30
|
+
let e = await i({ variables: { eventId: t } });
|
|
31
|
+
(e.error || !e.data?.eventfullyManagedForecastAttendance) && s(e.error ? n(e.error) ?? "The forecast could not be generated." : "No forecast was returned. Please try again.");
|
|
32
|
+
} catch (e) {
|
|
33
|
+
s(n(e) ?? "The forecast could not be generated. Please try again.");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function _(e) {
|
|
39
|
+
if (!e) return null;
|
|
40
|
+
let t = new Date(e);
|
|
41
|
+
return Number.isNaN(t.getTime()) ? null : t.toLocaleString();
|
|
42
|
+
}
|
|
43
|
+
function v({ forecast: e, generatedAt: t }) {
|
|
44
|
+
let n = _(t);
|
|
45
|
+
return /* @__PURE__ */ o("div", {
|
|
46
|
+
className: "space-y-3",
|
|
47
|
+
"aria-live": "polite",
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ o("div", {
|
|
50
|
+
className: "flex flex-wrap items-center gap-3",
|
|
51
|
+
children: [/* @__PURE__ */ o("p", {
|
|
52
|
+
className: "text-2xl font-semibold tabular-nums text-text-primary",
|
|
53
|
+
children: [e.predictedAttendance.toLocaleString(), " expected attendees"]
|
|
54
|
+
}), /* @__PURE__ */ o(s, {
|
|
55
|
+
variant: e.confidence === "LOW" ? "warning" : "info",
|
|
56
|
+
children: [e.confidence.toLowerCase(), " confidence"]
|
|
57
|
+
})]
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ o("p", {
|
|
60
|
+
className: "text-sm text-text-secondary",
|
|
61
|
+
children: [
|
|
62
|
+
"90% planning range: ",
|
|
63
|
+
e.low.toLocaleString(),
|
|
64
|
+
"–",
|
|
65
|
+
e.high.toLocaleString(),
|
|
66
|
+
" ·",
|
|
67
|
+
" ",
|
|
68
|
+
e.registered.toLocaleString(),
|
|
69
|
+
" registered"
|
|
70
|
+
]
|
|
71
|
+
}),
|
|
72
|
+
e.coldStart && /* @__PURE__ */ a("p", {
|
|
73
|
+
className: "text-sm text-status-warning-text",
|
|
74
|
+
children: e.coldStartReason ?? "Limited historical check-ins. This forecast uses a baseline assumption."
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ o("p", {
|
|
77
|
+
className: "text-xs text-text-muted",
|
|
78
|
+
children: ["Estimate for planning; actual turnout may differ. Generating a forecast does not change your event or sessions.", n && /* @__PURE__ */ o(i, { children: [
|
|
79
|
+
" Last generated ",
|
|
80
|
+
n,
|
|
81
|
+
"."
|
|
82
|
+
] })]
|
|
83
|
+
})
|
|
84
|
+
]
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function y({ loading: e, failed: t, hasSnapshot: n }) {
|
|
88
|
+
return t ? null : e ? /* @__PURE__ */ a("p", {
|
|
89
|
+
role: "status",
|
|
90
|
+
className: "text-sm text-text-secondary",
|
|
91
|
+
children: "Loading saved forecast…"
|
|
92
|
+
}) : /* @__PURE__ */ a("p", {
|
|
93
|
+
className: "text-sm text-text-secondary",
|
|
94
|
+
children: n ? "The saved forecast uses an unsupported format. Generate a fresh forecast to view it here." : "No forecast yet. Generate one using this event's registrations and past check-ins."
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
function b(e, t) {
|
|
98
|
+
return e ? "Forecasting…" : t ? "Refresh forecast" : "Generate forecast";
|
|
99
|
+
}
|
|
100
|
+
function x({ eventId: e }) {
|
|
101
|
+
let n = t({
|
|
102
|
+
variables: { eventId: e },
|
|
103
|
+
fetchPolicy: "network-only"
|
|
104
|
+
}), r = g(e), i = n.data?.eventfullyManagedAiDecision, s = r.result, l = s ?? h(i?.data), u = l?.eventId === e ? l : null, d = s?.engine?.generatedAt ?? i?.generatedAt, f = r.error ?? (!s && n.error ? "The saved forecast could not be loaded. You can retry by generating a new forecast." : null);
|
|
105
|
+
return /* @__PURE__ */ o("div", {
|
|
106
|
+
className: "mt-4 space-y-3",
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ a(c, {
|
|
109
|
+
className: "min-h-11",
|
|
110
|
+
type: "button",
|
|
111
|
+
variant: "secondary",
|
|
112
|
+
onClick: () => void r.generate(),
|
|
113
|
+
disabled: r.loading,
|
|
114
|
+
children: b(r.loading, !!u)
|
|
115
|
+
}),
|
|
116
|
+
f && /* @__PURE__ */ a("p", {
|
|
117
|
+
role: "alert",
|
|
118
|
+
className: "text-sm text-status-error-text",
|
|
119
|
+
children: f
|
|
120
|
+
}),
|
|
121
|
+
u ? /* @__PURE__ */ a(v, {
|
|
122
|
+
forecast: u,
|
|
123
|
+
generatedAt: d
|
|
124
|
+
}) : /* @__PURE__ */ a(y, {
|
|
125
|
+
loading: n.loading,
|
|
126
|
+
failed: !!n.error,
|
|
127
|
+
hasSnapshot: !!i
|
|
128
|
+
})
|
|
129
|
+
]
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
function S({ events: e, total: t, loading: n, failed: i, loadMore: s, reload: h }) {
|
|
133
|
+
let [g, _] = r(""), [v, y] = r(!1), [b, S] = r(!1), C = e.some((e) => e.id === g) ? g : e[0]?.id ?? "", w = async () => {
|
|
134
|
+
y(!0), S(!1);
|
|
135
|
+
try {
|
|
136
|
+
await (i ? h() : s());
|
|
137
|
+
} catch {
|
|
138
|
+
S(!0);
|
|
139
|
+
} finally {
|
|
140
|
+
y(!1);
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
return /* @__PURE__ */ o(l, {
|
|
144
|
+
treatment: "insight",
|
|
145
|
+
className: "p-5",
|
|
146
|
+
children: [
|
|
147
|
+
/* @__PURE__ */ o("div", {
|
|
148
|
+
className: "flex flex-wrap items-center justify-between gap-3",
|
|
149
|
+
children: [/* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("h2", {
|
|
150
|
+
className: "text-base font-semibold text-text-primary",
|
|
151
|
+
children: "Attendance forecast"
|
|
152
|
+
}), /* @__PURE__ */ a("p", {
|
|
153
|
+
className: "mt-1 text-sm text-text-secondary",
|
|
154
|
+
children: "Plan staffing and catering with an estimate from real registration and check-in history."
|
|
155
|
+
})] }), e.length > 0 && /* @__PURE__ */ o(u, {
|
|
156
|
+
value: C,
|
|
157
|
+
onValueChange: _,
|
|
158
|
+
children: [/* @__PURE__ */ a(p, {
|
|
159
|
+
"aria-label": "Forecast event",
|
|
160
|
+
className: "min-h-11 w-full sm:w-64",
|
|
161
|
+
children: /* @__PURE__ */ a(m, {})
|
|
162
|
+
}), /* @__PURE__ */ a(d, { children: e.map((e) => /* @__PURE__ */ a(f, {
|
|
163
|
+
value: e.id,
|
|
164
|
+
children: e.name
|
|
165
|
+
}, e.id)) })]
|
|
166
|
+
})]
|
|
167
|
+
}),
|
|
168
|
+
(i || b) && /* @__PURE__ */ o("div", {
|
|
169
|
+
className: "mt-3 flex flex-wrap items-center gap-3",
|
|
170
|
+
children: [/* @__PURE__ */ a("p", {
|
|
171
|
+
role: "alert",
|
|
172
|
+
className: "text-sm text-status-error-text",
|
|
173
|
+
children: "Events could not be loaded. Please try again."
|
|
174
|
+
}), /* @__PURE__ */ a(c, {
|
|
175
|
+
className: "min-h-11",
|
|
176
|
+
type: "button",
|
|
177
|
+
variant: "ghost",
|
|
178
|
+
disabled: n || v,
|
|
179
|
+
onClick: () => void w(),
|
|
180
|
+
children: "Retry events"
|
|
181
|
+
})]
|
|
182
|
+
}),
|
|
183
|
+
e.length < t && /* @__PURE__ */ o("div", {
|
|
184
|
+
className: "mt-3 flex flex-wrap items-center gap-3",
|
|
185
|
+
children: [/* @__PURE__ */ o("p", {
|
|
186
|
+
className: "text-xs text-text-muted",
|
|
187
|
+
children: [
|
|
188
|
+
e.length.toLocaleString(),
|
|
189
|
+
" of ",
|
|
190
|
+
t.toLocaleString(),
|
|
191
|
+
" events loaded."
|
|
192
|
+
]
|
|
193
|
+
}), /* @__PURE__ */ a(c, {
|
|
194
|
+
className: "min-h-11",
|
|
195
|
+
type: "button",
|
|
196
|
+
variant: "ghost",
|
|
197
|
+
disabled: n || v,
|
|
198
|
+
onClick: () => void w(),
|
|
199
|
+
children: v ? "Loading events…" : "Load more events"
|
|
200
|
+
})]
|
|
201
|
+
}),
|
|
202
|
+
C ? /* @__PURE__ */ a(x, { eventId: C }, C) : n ? /* @__PURE__ */ a("p", {
|
|
203
|
+
role: "status",
|
|
204
|
+
className: "mt-4 text-sm text-text-secondary",
|
|
205
|
+
children: "Loading events…"
|
|
206
|
+
}) : i ? null : /* @__PURE__ */ a("p", {
|
|
207
|
+
className: "mt-4 text-sm text-text-secondary",
|
|
208
|
+
children: "Create an event to start forecasting attendance."
|
|
209
|
+
})
|
|
210
|
+
]
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
export { S as AttendanceForecast };
|
|
214
|
+
|
|
215
|
+
//# sourceMappingURL=AttendanceForecast.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttendanceForecast.js","names":["_Fragment","readForecast","value","reason","useForecastGeneration","generate","generated","useEventfullymanagedForecastAttendanceMutation","generationError","setGenerationError","useState","result","describeError","error","formatForecastTime","parsed","ForecastSummary","formattedTime","generatedAt","forecast","Badge","Fragment","ForecastNotice","failed","loading","hasSnapshot","forecastActionLabel","hasForecast","EventForecast","saved","useEventfullymanagedSavedAttendanceForecastQuery","generation","eventId","snapshot","latest","current","Button","AttendanceForecast","selected","setSelected","loadingMore","setLoadingMore","loadMoreFailed","setLoadMoreFailed","events","event","onLoadMore","reload","loadMore","GlassCard","Select","SelectTrigger","SelectValue","SelectContent","SelectItem","total"],"sources":["../../../src/eventfullymanaged/components/AttendanceForecast.tsx"],"sourcesContent":["import { useState } from 'react';\nimport {\n Badge,\n Button,\n GlassCard,\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@burdenoff/fe-libs/ui';\n\nimport {\n useEventfullymanagedForecastAttendanceMutation,\n useEventfullymanagedSavedAttendanceForecastQuery,\n} from '../../generated/wspace-operations';\nimport type { EventGql } from '../api/eventApi';\nimport { describeError } from '../lib/mutationResult';\n\ntype Forecast = {\n eventId: string;\n predictedAttendance: number;\n registered: number;\n low: number;\n high: number;\n confidence: string;\n coldStart: boolean;\n coldStartReason?: string | null;\n};\n\n/** Snapshot JSON is versioned server data; reject incompatible payloads instead of inventing values. */\nfunction readForecast(value: unknown): Forecast | null {\n if (typeof value !== 'object' || value === null) return null;\n if (!('eventId' in value) || typeof value.eventId !== 'string') return null;\n if (!('predictedAttendance' in value) || typeof value.predictedAttendance !== 'number') return null;\n if (!('registered' in value) || typeof value.registered !== 'number') return null;\n if (!('low' in value) || typeof value.low !== 'number') return null;\n if (!('high' in value) || typeof value.high !== 'number') return null;\n if (!('confidence' in value) || typeof value.confidence !== 'string') return null;\n if (!('coldStart' in value) || typeof value.coldStart !== 'boolean') return null;\n const reason = 'coldStartReason' in value && typeof value.coldStartReason === 'string' ? value.coldStartReason : null;\n return {\n eventId: value.eventId,\n predictedAttendance: value.predictedAttendance,\n registered: value.registered,\n low: value.low,\n high: value.high,\n confidence: value.confidence,\n coldStart: value.coldStart,\n coldStartReason: reason,\n };\n}\n\nfunction useForecastGeneration(eventId: string) {\n const [generate, generated] = useEventfullymanagedForecastAttendanceMutation();\n const [generationError, setGenerationError] = useState<string | null>(null);\n const onGenerate = async () => {\n setGenerationError(null);\n try {\n const result = await generate({ variables: { eventId } });\n if (result.error || !result.data?.eventfullyManagedForecastAttendance) {\n setGenerationError(\n result.error\n ? (describeError(result.error) ?? 'The forecast could not be generated.')\n : 'No forecast was returned. Please try again.'\n );\n }\n } catch (error) {\n setGenerationError(describeError(error) ?? 'The forecast could not be generated. Please try again.');\n }\n };\n\n return {\n result: generated.data?.eventfullyManagedForecastAttendance,\n loading: generated.loading,\n error: generationError,\n generate: onGenerate,\n };\n}\n\nfunction formatForecastTime(value?: string | null): string | null {\n if (!value) return null;\n const parsed = new Date(value);\n return Number.isNaN(parsed.getTime()) ? null : parsed.toLocaleString();\n}\n\nfunction ForecastSummary({ forecast, generatedAt }: { forecast: Forecast; generatedAt?: string | null }) {\n const formattedTime = formatForecastTime(generatedAt);\n return (\n <div className=\"space-y-3\" aria-live=\"polite\">\n <div className=\"flex flex-wrap items-center gap-3\">\n <p className=\"text-2xl font-semibold tabular-nums text-text-primary\">\n {forecast.predictedAttendance.toLocaleString()} expected attendees\n </p>\n <Badge variant={forecast.confidence === 'LOW' ? 'warning' : 'info'}>\n {forecast.confidence.toLowerCase()} confidence\n </Badge>\n </div>\n <p className=\"text-sm text-text-secondary\">\n 90% planning range: {forecast.low.toLocaleString()}–{forecast.high.toLocaleString()} ·{' '}\n {forecast.registered.toLocaleString()} registered\n </p>\n {forecast.coldStart && (\n <p className=\"text-sm text-status-warning-text\">\n {forecast.coldStartReason ?? 'Limited historical check-ins. This forecast uses a baseline assumption.'}\n </p>\n )}\n <p className=\"text-xs text-text-muted\">\n Estimate for planning; actual turnout may differ. Generating a forecast does not change your event or sessions.\n {formattedTime && <> Last generated {formattedTime}.</>}\n </p>\n </div>\n );\n}\n\nfunction ForecastNotice({ loading, failed, hasSnapshot }: { loading: boolean; failed: boolean; hasSnapshot: boolean }) {\n if (failed) return null;\n if (loading)\n return (\n <p role=\"status\" className=\"text-sm text-text-secondary\">\n Loading saved forecast…\n </p>\n );\n return (\n <p className=\"text-sm text-text-secondary\">\n {hasSnapshot\n ? 'The saved forecast uses an unsupported format. Generate a fresh forecast to view it here.'\n : \"No forecast yet. Generate one using this event's registrations and past check-ins.\"}\n </p>\n );\n}\n\nfunction forecastActionLabel(loading: boolean, hasForecast: boolean): string {\n if (loading) return 'Forecasting…';\n return hasForecast ? 'Refresh forecast' : 'Generate forecast';\n}\n\n/** Event keys also scope mutation state when a request finishes after an event switch. */\nfunction EventForecast({ eventId }: { eventId: string }) {\n const saved = useEventfullymanagedSavedAttendanceForecastQuery({\n variables: { eventId },\n fetchPolicy: 'network-only',\n });\n const generation = useForecastGeneration(eventId);\n const snapshot = saved.data?.eventfullyManagedAiDecision;\n const latest = generation.result;\n const forecast = latest ?? readForecast(snapshot?.data);\n const current = forecast?.eventId === eventId ? forecast : null;\n const generatedAt = latest?.engine?.generatedAt ?? snapshot?.generatedAt;\n const error =\n generation.error ??\n (!latest && saved.error\n ? 'The saved forecast could not be loaded. You can retry by generating a new forecast.'\n : null);\n\n return (\n <div className=\"mt-4 space-y-3\">\n <Button\n className=\"min-h-11\"\n type=\"button\"\n variant=\"secondary\"\n onClick={() => void generation.generate()}\n disabled={generation.loading}\n >\n {forecastActionLabel(generation.loading, Boolean(current))}\n </Button>\n {error && (\n <p role=\"alert\" className=\"text-sm text-status-error-text\">\n {error}\n </p>\n )}\n {current ? (\n <ForecastSummary forecast={current} generatedAt={generatedAt} />\n ) : (\n <ForecastNotice loading={saved.loading} failed={Boolean(saved.error)} hasSnapshot={Boolean(snapshot)} />\n )}\n </div>\n );\n}\n\nexport function AttendanceForecast({\n events,\n total,\n loading,\n failed,\n loadMore,\n reload,\n}: {\n events: EventGql[];\n total: number;\n loading: boolean;\n failed: boolean;\n loadMore: () => Promise<unknown>;\n reload: () => Promise<unknown>;\n}) {\n const [selected, setSelected] = useState('');\n const [loadingMore, setLoadingMore] = useState(false);\n const [loadMoreFailed, setLoadMoreFailed] = useState(false);\n const eventId = events.some((event) => event.id === selected) ? selected : (events[0]?.id ?? '');\n\n const onLoadMore = async () => {\n setLoadingMore(true);\n setLoadMoreFailed(false);\n try {\n await (failed ? reload() : loadMore());\n } catch {\n setLoadMoreFailed(true);\n } finally {\n setLoadingMore(false);\n }\n };\n\n return (\n <GlassCard treatment=\"insight\" className=\"p-5\">\n <div className=\"flex flex-wrap items-center justify-between gap-3\">\n <div>\n <h2 className=\"text-base font-semibold text-text-primary\">Attendance forecast</h2>\n <p className=\"mt-1 text-sm text-text-secondary\">\n Plan staffing and catering with an estimate from real registration and check-in history.\n </p>\n </div>\n {events.length > 0 && (\n <Select value={eventId} onValueChange={setSelected}>\n <SelectTrigger aria-label=\"Forecast event\" className=\"min-h-11 w-full sm:w-64\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n {events.map((event) => (\n <SelectItem key={event.id} value={event.id}>\n {event.name}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n )}\n </div>\n {(failed || loadMoreFailed) && (\n <div className=\"mt-3 flex flex-wrap items-center gap-3\">\n <p role=\"alert\" className=\"text-sm text-status-error-text\">\n Events could not be loaded. Please try again.\n </p>\n <Button\n className=\"min-h-11\"\n type=\"button\"\n variant=\"ghost\"\n disabled={loading || loadingMore}\n onClick={() => void onLoadMore()}\n >\n Retry events\n </Button>\n </div>\n )}\n {events.length < total && (\n <div className=\"mt-3 flex flex-wrap items-center gap-3\">\n <p className=\"text-xs text-text-muted\">\n {events.length.toLocaleString()} of {total.toLocaleString()} events loaded.\n </p>\n <Button\n className=\"min-h-11\"\n type=\"button\"\n variant=\"ghost\"\n disabled={loading || loadingMore}\n onClick={() => void onLoadMore()}\n >\n {loadingMore ? 'Loading events…' : 'Load more events'}\n </Button>\n </div>\n )}\n {eventId ? (\n <EventForecast key={eventId} eventId={eventId} />\n ) : loading ? (\n <p role=\"status\" className=\"mt-4 text-sm text-text-secondary\">\n Loading events…\n </p>\n ) : failed ? null : (\n <p className=\"mt-4 text-sm text-text-secondary\">Create an event to start forecasting attendance.</p>\n )}\n </GlassCard>\n );\n}\n"],"mappings":";;;;;;AA+BA,SAASC,EAAa,GAAiC;CAQrD,IAPI,OAAOC,KAAU,aAAYA,KAC7B,EAAE,aAAaA,MAAU,OAAOA,EAAM,WAAY,YAClD,EAAE,yBAAyBA,MAAU,OAAOA,EAAM,uBAAwB,YAC1E,EAAE,gBAAgBA,MAAU,OAAOA,EAAM,cAAe,YACxD,EAAE,SAASA,MAAU,OAAOA,EAAM,OAAQ,YAC1C,EAAE,UAAUA,MAAU,OAAOA,EAAM,QAAS,YAC5C,EAAE,gBAAgBA,MAAU,OAAOA,EAAM,cAAe,YACxD,EAAE,eAAeA,MAAU,OAAOA,EAAM,aAAc,WAAW,OAAO;CAC5E,IAAMC,IAAS,qBAAqBD,KAAS,OAAOA,EAAM,mBAAoB,WAAWA,EAAM,kBAAkB;CACjH,OAAO;EACL,SAASA,EAAM;EACf,qBAAqBA,EAAM;EAC3B,YAAYA,EAAM;EAClB,KAAKA,EAAM;EACX,MAAMA,EAAM;EACZ,YAAYA,EAAM;EAClB,WAAWA,EAAM;EACjB,iBAAiBC;CACnB;AACF;AAEA,SAASC,EAAsB,GAAiB;CAC9C,IAAM,CAACC,GAAUC,KAAaC,EAA+C,GACvE,CAACC,GAAiBC,KAAsBC,EAAwB,IAAI;CAiB1E,OAAO;EACL,QAAQJ,EAAU,MAAM;EACxB,SAASA,EAAU;EACnB,OAAOE;EACP,UAAU,YApBmB;GAC7B,EAAmB,IAAI;GACvB,IAAI;IACF,IAAMG,IAAS,MAAMN,EAAS,EAAE,WAAW,EAAE,WAAQ,EAAE,CAAC;IACxD,CAAIM,EAAO,SAAS,CAACA,EAAO,MAAM,wCAChCF,EACEE,EAAO,QACFC,EAAcD,EAAO,KAAK,KAAK,yCAChC,6CACN;GAEJ,SA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KACV,MAAK;KACL,SAAQ;KACR,UAAUZ,KAAWgB;KACrB,eAAe,KAAKM,EAAW;KAE9B,UAAAN,IAAc,oBAAoB;IAC7B,CAAA,CACL;;GAENR,IACC,kBAACJ,GAAD,EAAsC,WAAU,GAA5BI,CAA4B,IAC9CR,IACF,kBAAC,KAAD;IAAG,MAAK;IAAS,WAAU;IAAmC,UAAA;GAE3D,CAAA,IACDD,IAAS,OACX,kBAAC,KAAD;IAAG,WAAU;IAAmC,UAAA;GAAmD,CAAA;EAE5F;;AAEf"}
|
|
@@ -23,5 +23,5 @@ export interface EntityFormShellProps {
|
|
|
23
23
|
* `mutationSucceeded` + `notify` helpers; this shell only owns layout and the
|
|
24
24
|
* submit/cancel controls.
|
|
25
25
|
*/
|
|
26
|
-
export declare function EntityFormShell({ title, description, purpose, backLabel, onBack, onSubmit, submitLabel, savingLabel, saving, submitDisabled, children, }: EntityFormShellProps): import("react
|
|
26
|
+
export declare function EntityFormShell({ title, description, purpose, backLabel, onBack, onSubmit, submitLabel, savingLabel, saving, submitDisabled, children, }: EntityFormShellProps): import("react").JSX.Element;
|
|
27
27
|
//# sourceMappingURL=EntityFormShell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityFormShell.d.ts","sourceRoot":"","sources":["../../../src/eventfullymanaged/components/EntityFormShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,uBAAuB;IACvB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,WAAW,EACX,OAAO,EACP,SAAS,EACT,MAAM,EACN,QAAQ,EACR,WAAW,EACX,WAAW,EACX,MAAc,EACd,cAAsB,EACtB,QAAQ,GACT,EAAE,oBAAoB
|
|
1
|
+
{"version":3,"file":"EntityFormShell.d.ts","sourceRoot":"","sources":["../../../src/eventfullymanaged/components/EntityFormShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,uBAAuB;IACvB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,WAAW,EACX,OAAO,EACP,SAAS,EACT,MAAM,EACN,QAAQ,EACR,WAAW,EACX,WAAW,EACX,MAAc,EACd,cAAsB,EACtB,QAAQ,GACT,EAAE,oBAAoB,+BA8BtB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { ArrowLeft as n, Save as r } from "lucide-react";
|
|
3
3
|
import { Button as i, EmphasisPanel as a, PagePurpose as o } from "@burdenoff/fe-libs/ui";
|
|
4
|
-
|
|
4
|
+
// src/eventfullymanaged/components/EntityFormShell.tsx
|
|
5
5
|
function s({ title: s, description: c, purpose: l, backLabel: u, onBack: d, onSubmit: f, submitLabel: p, savingLabel: m, saving: h = !1, submitDisabled: g = !1, children: _ }) {
|
|
6
6
|
return /* @__PURE__ */ t("div", {
|
|
7
7
|
className: "space-y-6 p-6",
|
|
@@ -45,7 +45,6 @@ function s({ title: s, description: c, purpose: l, backLabel: u, onBack: d, onSu
|
|
|
45
45
|
]
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
//#endregion
|
|
49
48
|
export { s as EntityFormShell };
|
|
50
49
|
|
|
51
50
|
//# sourceMappingURL=EntityFormShell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityFormShell.js","names":[],"sources":["../../../src/eventfullymanaged/components/EntityFormShell.tsx"],"sourcesContent":["import type { FormEvent, ReactNode } from 'react';\nimport { ArrowLeft, Save } from 'lucide-react';\nimport { Button, EmphasisPanel, PagePurpose } from '@burdenoff/fe-libs/ui';\n\nexport interface EntityFormShellProps {\n title: string;\n description?: string;\n /** Guidance copy rendered in a PagePurpose banner above the form. */\n purpose?: ReactNode;\n backLabel: string;\n onBack: () => void;\n onSubmit: (event: FormEvent<HTMLFormElement>) => void;\n submitLabel: string;\n savingLabel?: string;\n saving?: boolean;\n submitDisabled?: boolean;\n /** The form fields. */\n children: ReactNode;\n}\n\n/**\n * Shared CRUD form scaffold mirroring VenueFormPage: a back link + heading,\n * an optional PagePurpose banner, and an EmphasisPanel wrapping the fields with\n * a consistent Cancel / Save footer. Keeps the many new entity forms visually\n * and behaviourally aligned. Error handling stays in the page via the\n * `mutationSucceeded` + `notify` helpers; this shell only owns layout and the\n * submit/cancel controls.\n */\nexport function EntityFormShell({\n title,\n description,\n purpose,\n backLabel,\n onBack,\n onSubmit,\n submitLabel,\n savingLabel,\n saving = false,\n submitDisabled = false,\n children,\n}: EntityFormShellProps) {\n return (\n <div className=\"space-y-6 p-6\">\n <div>\n <Button type=\"button\" variant=\"ghost\" size=\"sm\" onClick={onBack}>\n <ArrowLeft className=\"h-4 w-4\" />\n {backLabel}\n </Button>\n <h1 className=\"mt-3 text-2xl font-bold text-text-primary\">{title}</h1>\n {description ? <p className=\"mt-1 text-sm text-text-secondary\">{description}</p> : null}\n </div>\n\n {purpose ? <PagePurpose>{purpose}</PagePurpose> : null}\n\n <EmphasisPanel>\n <form onSubmit={onSubmit} className=\"space-y-4\">\n {children}\n <div className=\"flex justify-end gap-3\">\n <Button type=\"button\" variant=\"outline\" onClick={onBack} disabled={saving}>\n Cancel\n </Button>\n <Button type=\"submit\" disabled={saving || submitDisabled}>\n <Save className=\"h-4 w-4\" />\n {saving ? (savingLabel ?? 'Saving…') : submitLabel}\n </Button>\n </div>\n </form>\n </EmphasisPanel>\n </div>\n );\n}\n"],"mappings":";;;;AA4BA,
|
|
1
|
+
{"version":3,"file":"EntityFormShell.js","names":["EntityFormShell","Button","onBack","ArrowLeft","backLabel","title","description","purpose","PagePurpose","EmphasisPanel","children","saving","submitDisabled","Save","savingLabel","submitLabel"],"sources":["../../../src/eventfullymanaged/components/EntityFormShell.tsx"],"sourcesContent":["import type { FormEvent, ReactNode } from 'react';\nimport { ArrowLeft, Save } from 'lucide-react';\nimport { Button, EmphasisPanel, PagePurpose } from '@burdenoff/fe-libs/ui';\n\nexport interface EntityFormShellProps {\n title: string;\n description?: string;\n /** Guidance copy rendered in a PagePurpose banner above the form. */\n purpose?: ReactNode;\n backLabel: string;\n onBack: () => void;\n onSubmit: (event: FormEvent<HTMLFormElement>) => void;\n submitLabel: string;\n savingLabel?: string;\n saving?: boolean;\n submitDisabled?: boolean;\n /** The form fields. */\n children: ReactNode;\n}\n\n/**\n * Shared CRUD form scaffold mirroring VenueFormPage: a back link + heading,\n * an optional PagePurpose banner, and an EmphasisPanel wrapping the fields with\n * a consistent Cancel / Save footer. Keeps the many new entity forms visually\n * and behaviourally aligned. Error handling stays in the page via the\n * `mutationSucceeded` + `notify` helpers; this shell only owns layout and the\n * submit/cancel controls.\n */\nexport function EntityFormShell({\n title,\n description,\n purpose,\n backLabel,\n onBack,\n onSubmit,\n submitLabel,\n savingLabel,\n saving = false,\n submitDisabled = false,\n children,\n}: EntityFormShellProps) {\n return (\n <div className=\"space-y-6 p-6\">\n <div>\n <Button type=\"button\" variant=\"ghost\" size=\"sm\" onClick={onBack}>\n <ArrowLeft className=\"h-4 w-4\" />\n {backLabel}\n </Button>\n <h1 className=\"mt-3 text-2xl font-bold text-text-primary\">{title}</h1>\n {description ? <p className=\"mt-1 text-sm text-text-secondary\">{description}</p> : null}\n </div>\n\n {purpose ? <PagePurpose>{purpose}</PagePurpose> : null}\n\n <EmphasisPanel>\n <form onSubmit={onSubmit} className=\"space-y-4\">\n {children}\n <div className=\"flex justify-end gap-3\">\n <Button type=\"button\" variant=\"outline\" onClick={onBack} disabled={saving}>\n Cancel\n </Button>\n <Button type=\"submit\" disabled={saving || submitDisabled}>\n <Save className=\"h-4 w-4\" />\n {saving ? (savingLabel ?? 'Saving…') : submitLabel}\n </Button>\n </div>\n </form>\n </EmphasisPanel>\n </div>\n );\n}\n"],"mappings":";;;;AA4BA,SAAgBA,EAAgB,EAC9B,UACA,gBACA,YACA,cACA,WACA,aACA,gBACA,gBACA,YAAS,IACT,oBAAiB,IACjB,eACuB;CACvB,OACE,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA;GACE,kBAAC,OAAD,EAAA,UAAA;IACE,kBAACC,GAAD;KAAQ,MAAK;KAAS,SAAQ;KAAQ,MAAK;KAAK,SAASC;KAAzD,UAAA,CACE,kBAACC,GAAD,EAAW,WAAU,UAAW,CAAA,GAC/BC,CACK;;IACR,kBAAC,MAAD;KAAI,WAAU;KAA6C,UAAAC;IAAU,CAAA;IACpEC,IAAc,kBAAC,KAAD;KAAG,WAAU;KAAoC,UAAAA;IAAe,CAAA,IAAI;GAChF,EAAA,CAAA;GAEJC,IAAU,kBAACC,GAAD,EAAA,UAAcD,EAAqB,CAAA,IAAI;GAElD,kBAACE,GAAD,EAAA,UACE,kBAAC,QAAD;IAAgB;IAAU,WAAU;IAApC,UAAA,CACGC,GACD,kBAAC,OAAD;KAAK,WAAU;KAAf,UAAA,CACE,kBAACT,GAAD;MAAQ,MAAK;MAAS,SAAQ;MAAU,SAASC;MAAQ,UAAUS;MAAQ,UAAA;KAEnE,CAAA,GACR,kBAACV,GAAD;MAAQ,MAAK;MAAS,UAAUU,KAAUC;MAA1C,UAAA,CACE,kBAACC,GAAD,EAAM,WAAU,UAAW,CAAA,GAC1BF,IAAUG,KAAe,YAAaC,CACjC;KACL,CAAA,CAAA;IACD,CAAA,CAAA;GACO,CAAA,EAAA,CAAA;EACZ;;AAET"}
|
|
@@ -15,5 +15,5 @@ export interface EntityTagsFieldProps {
|
|
|
15
15
|
* minting a brand-new tag, and detaching — each mutation refetches the
|
|
16
16
|
* assignment list so the field stays in sync.
|
|
17
17
|
*/
|
|
18
|
-
export declare function EntityTagsField({ entityType, entityId, label, className }: EntityTagsFieldProps): import("react
|
|
18
|
+
export declare function EntityTagsField({ entityType, entityId, label, className }: EntityTagsFieldProps): import("react").JSX.Element;
|
|
19
19
|
//# sourceMappingURL=EntityTagsField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityTagsField.d.ts","sourceRoot":"","sources":["../../../src/eventfullymanaged/components/EntityTagsField.tsx"],"names":[],"mappings":"AAuBA,MAAM,WAAW,oBAAoB;IACnC,mFAAmF;IACnF,UAAU,EAAE,MAAM,CAAC;IACnB,+EAA+E;IAC/E,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAc,EAAE,SAAS,EAAE,EAAE,oBAAoB
|
|
1
|
+
{"version":3,"file":"EntityTagsField.d.ts","sourceRoot":"","sources":["../../../src/eventfullymanaged/components/EntityTagsField.tsx"],"names":[],"mappings":"AAuBA,MAAM,WAAW,oBAAoB;IACnC,mFAAmF;IACnF,UAAU,EAAE,MAAM,CAAC;IACnB,+EAA+E;IAC/E,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAc,EAAE,SAAS,EAAE,EAAE,oBAAoB,+BA0KxG"}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useAvailableTagsQuery as e, useCreateEntityTagMutation as t, useEntityTagsQuery as n, useTagEntityMutation as r, useUntagEntityMutation as i } from "../api/eventApi.js";
|
|
2
|
+
import { describeError as a, mutationSucceeded as o } from "../lib/mutationResult.js";
|
|
3
|
+
import { notify as s } from "../lib/toast.js";
|
|
4
4
|
import { useMemo as c, useState as l } from "react";
|
|
5
5
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
6
6
|
import { Plus as p, Tag as m, X as h } from "lucide-react";
|
|
7
7
|
import { Badge as g, Button as _, Input as v, Select as y, SelectContent as b, SelectItem as x, SelectTrigger as S, SelectValue as C } from "@burdenoff/fe-libs/ui";
|
|
8
|
-
|
|
8
|
+
// src/eventfullymanaged/components/EntityTagsField.tsx
|
|
9
9
|
function w({ entityType: w, entityId: T, label: E = "Tags", className: D }) {
|
|
10
|
-
let [O, k] = l(""), [A, j] = l(""), M = !!T, N =
|
|
10
|
+
let [O, k] = l(""), [A, j] = l(""), M = !!T, N = n({ input: {
|
|
11
11
|
entityType: w,
|
|
12
12
|
entityId: T
|
|
13
|
-
} }), { data: P } =
|
|
13
|
+
} }), { data: P } = e({ limit: 100 }), [F, { loading: I }] = r(), [L, { loading: R }] = i(), [z, { loading: B }] = t(), V = c(() => N.data?.eventfullyManagedEntityTags ?? [], [N.data]), H = c(() => new Set(V.map((e) => e.tagId)), [V]), U = c(() => (P?.availableEventfullyManagedTags ?? []).filter((e) => !H.has(e.id)), [P, H]), W = I || R || B, G = async (e) => {
|
|
14
14
|
let t = await F({ variables: { input: {
|
|
15
15
|
entityType: w,
|
|
16
16
|
entityId: T,
|
|
17
17
|
tagId: e,
|
|
18
18
|
source: "manual"
|
|
19
19
|
} } });
|
|
20
|
-
return
|
|
20
|
+
return o(t, t.data?.tagEventfullyManagedEntity?.id, "Could not add tag") ? (await N.refetch(), !0) : !1;
|
|
21
21
|
}, K = async () => {
|
|
22
22
|
if (A) try {
|
|
23
23
|
await G(A) && j("");
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
24
|
+
} catch (e) {
|
|
25
|
+
s.error("Could not add tag", a(e));
|
|
26
26
|
}
|
|
27
27
|
}, q = async () => {
|
|
28
|
-
let
|
|
29
|
-
if (
|
|
30
|
-
let
|
|
31
|
-
if (!
|
|
28
|
+
let e = O.trim();
|
|
29
|
+
if (e) try {
|
|
30
|
+
let t = await z({ variables: { input: { label: e } } }), n = t.data?.createEventfullyManagedEntityTag?.id;
|
|
31
|
+
if (!o(t, n, "Could not create tag") || !n) return;
|
|
32
32
|
await G(n) && k("");
|
|
33
|
-
} catch (
|
|
34
|
-
|
|
33
|
+
} catch (e) {
|
|
34
|
+
s.error("Could not create tag", a(e));
|
|
35
35
|
}
|
|
36
|
-
}, J = async (
|
|
36
|
+
}, J = async (e) => {
|
|
37
37
|
try {
|
|
38
|
-
let
|
|
38
|
+
let t = await L({ variables: { input: {
|
|
39
39
|
entityType: w,
|
|
40
40
|
entityId: T,
|
|
41
|
-
tagId:
|
|
41
|
+
tagId: e
|
|
42
42
|
} } });
|
|
43
|
-
if (
|
|
44
|
-
|
|
43
|
+
if (t.error) {
|
|
44
|
+
s.error("Could not remove tag", t.error.message);
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
await N.refetch();
|
|
48
|
-
} catch (
|
|
49
|
-
|
|
48
|
+
} catch (e) {
|
|
49
|
+
s.error("Could not remove tag", a(e));
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
return /* @__PURE__ */ f("div", {
|
|
@@ -140,7 +140,6 @@ function w({ entityType: w, entityId: T, label: E = "Tags", className: D }) {
|
|
|
140
140
|
})]
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
|
-
//#endregion
|
|
144
143
|
export { w as EntityTagsField };
|
|
145
144
|
|
|
146
145
|
//# sourceMappingURL=EntityTagsField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityTagsField.js","names":[],"sources":["../../../src/eventfullymanaged/components/EntityTagsField.tsx"],"sourcesContent":["import { useMemo, useState } from 'react';\nimport { Plus, Tag as TagIcon, X } from 'lucide-react';\nimport {\n Badge,\n Button,\n Input,\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@burdenoff/fe-libs/ui';\n\nimport {\n useAvailableTagsQuery,\n useCreateEntityTagMutation,\n useEntityTagsQuery,\n useTagEntityMutation,\n useUntagEntityMutation,\n} from '../api/eventApi';\nimport { describeError, mutationSucceeded } from '../lib/mutationResult';\nimport { notify } from '../lib/toast';\n\nexport interface EntityTagsFieldProps {\n /** Entity kind, e.g. \"sponsor\", \"event\", \"session\". Namespaces the assignments. */\n entityType: string;\n /** Target row id. When empty (create form) the field prompts to save first. */\n entityId: string;\n label?: string;\n className?: string;\n}\n\n/**\n * Inline tag editor for any EventfullyManaged entity, keyed by\n * `(entityType, entityId)`. Reads current assignments via\n * `eventfullyManagedEntityTags` and renders each chip from the INLINE\n * `tagInfo { label, color }` (never the federated `tag {}` field, which the\n * gateway does not resolve here). Supports attaching an existing workspace tag,\n * minting a brand-new tag, and detaching — each mutation refetches the\n * assignment list so the field stays in sync.\n */\nexport function EntityTagsField({ entityType, entityId, label = 'Tags', className }: EntityTagsFieldProps) {\n const [newLabel, setNewLabel] = useState('');\n const [selectedTagId, setSelectedTagId] = useState('');\n\n const enabled = Boolean(entityId);\n const assignmentsQuery = useEntityTagsQuery({ input: { entityType, entityId } });\n const { data: availableData } = useAvailableTagsQuery({ limit: 100 });\n const [tagEntity, { loading: tagging }] = useTagEntityMutation();\n const [untagEntity, { loading: untagging }] = useUntagEntityMutation();\n const [createTag, { loading: creating }] = useCreateEntityTagMutation();\n\n const assignments = useMemo(() => assignmentsQuery.data?.eventfullyManagedEntityTags ?? [], [assignmentsQuery.data]);\n const assignedTagIds = useMemo(() => new Set(assignments.map((a) => a.tagId)), [assignments]);\n const available = useMemo(\n () => (availableData?.availableEventfullyManagedTags ?? []).filter((tag) => !assignedTagIds.has(tag.id)),\n [availableData, assignedTagIds]\n );\n\n const busy = tagging || untagging || creating;\n\n const attachTag = async (tagId: string) => {\n const response = await tagEntity({ variables: { input: { entityType, entityId, tagId, source: 'manual' } } });\n if (!mutationSucceeded(response, response.data?.tagEventfullyManagedEntity?.id, 'Could not add tag')) {\n return false;\n }\n await assignmentsQuery.refetch();\n return true;\n };\n\n const onAttachExisting = async () => {\n if (!selectedTagId) {\n return;\n }\n try {\n if (await attachTag(selectedTagId)) {\n setSelectedTagId('');\n }\n } catch (error) {\n notify.error('Could not add tag', describeError(error));\n }\n };\n\n const onCreateAndAttach = async () => {\n const trimmed = newLabel.trim();\n if (!trimmed) {\n return;\n }\n try {\n const created = await createTag({ variables: { input: { label: trimmed } } });\n const createdId = created.data?.createEventfullyManagedEntityTag?.id;\n if (!mutationSucceeded(created, createdId, 'Could not create tag') || !createdId) {\n return;\n }\n if (await attachTag(createdId)) {\n setNewLabel('');\n }\n } catch (error) {\n notify.error('Could not create tag', describeError(error));\n }\n };\n\n const onRemove = async (tagId: string) => {\n try {\n const response = await untagEntity({ variables: { input: { entityType, entityId, tagId } } });\n if (response.error) {\n notify.error('Could not remove tag', response.error.message);\n return;\n }\n await assignmentsQuery.refetch();\n } catch (error) {\n notify.error('Could not remove tag', describeError(error));\n }\n };\n\n return (\n <div className={`space-y-2 ${className ?? ''}`}>\n <div className=\"flex items-center gap-2 text-sm font-medium text-text-primary\">\n <TagIcon className=\"h-4 w-4 text-text-muted\" aria-hidden=\"true\" />\n <span>{label}</span>\n </div>\n\n {!enabled ? (\n <p className=\"text-sm text-text-secondary\">Save this record first to start adding tags.</p>\n ) : (\n <>\n <div className=\"flex flex-wrap gap-2\" role=\"list\" aria-label={label}>\n {assignments.length === 0 ? (\n <span className=\"text-sm text-text-secondary\">No tags yet.</span>\n ) : (\n assignments.map((assignment) => {\n const info = assignment.tagInfo;\n const color = info?.color ?? undefined;\n return (\n <Badge key={assignment.id} variant=\"secondary\" className=\"gap-1.5\" role=\"listitem\">\n {color ? (\n <span className=\"h-2 w-2 rounded-full\" style={{ backgroundColor: color }} aria-hidden=\"true\" />\n ) : null}\n <span>{info?.label ?? info?.key ?? 'Tag'}</span>\n <button\n type=\"button\"\n onClick={() => onRemove(assignment.tagId)}\n disabled={busy}\n aria-label={`Remove ${info?.label ?? 'tag'}`}\n className=\"rounded-full text-text-muted transition-colors hover:text-text-primary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border-focus disabled:opacity-50\"\n >\n <X className=\"h-3 w-3\" aria-hidden=\"true\" />\n </button>\n </Badge>\n );\n })\n )}\n </div>\n\n <div className=\"flex flex-col gap-2 sm:flex-row sm:items-center\">\n {available.length > 0 ? (\n <div className=\"flex items-center gap-2\">\n <Select value={selectedTagId} onValueChange={setSelectedTagId}>\n <SelectTrigger className=\"w-48\" aria-label=\"Choose an existing tag\">\n <SelectValue placeholder=\"Add existing tag\" />\n </SelectTrigger>\n <SelectContent>\n {available.map((tag) => (\n <SelectItem key={tag.id} value={tag.id}>\n {tag.label}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n onClick={onAttachExisting}\n disabled={!selectedTagId || busy}\n >\n Add\n </Button>\n </div>\n ) : null}\n\n <div className=\"flex items-center gap-2\">\n <Input\n value={newLabel}\n onChange={(event) => setNewLabel(event.target.value)}\n placeholder=\"New tag label\"\n aria-label=\"New tag label\"\n className=\"w-48\"\n onKeyDown={(event) => {\n if (event.key === 'Enter') {\n event.preventDefault();\n void onCreateAndAttach();\n }\n }}\n />\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n onClick={onCreateAndAttach}\n disabled={!newLabel.trim() || busy}\n >\n <Plus className=\"h-4 w-4\" />\n Create\n </Button>\n </div>\n </div>\n </>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;AAyCA,SAAgB,EAAgB,EAAE,eAAY,aAAU,WAAQ,QAAQ,gBAAmC;CACzG,IAAM,CAAC,GAAU,KAAe,EAAS,GAAG,EACtC,CAAC,GAAe,KAAoB,EAAS,GAAG,EAEhD,IAAU,EAAQ,GAClB,IAAmB,EAAmB,EAAE,OAAO;EAAE;EAAY;EAAU,EAAE,CAAC,EAC1E,EAAE,MAAM,MAAkB,EAAsB,EAAE,OAAO,KAAK,CAAC,EAC/D,CAAC,GAAW,EAAE,SAAS,OAAa,GAAsB,EAC1D,CAAC,GAAa,EAAE,SAAS,OAAe,GAAwB,EAChE,CAAC,GAAW,EAAE,SAAS,OAAc,GAA4B,EAEjE,IAAc,QAAc,EAAiB,MAAM,+BAA+B,EAAE,EAAE,CAAC,EAAiB,KAAK,CAAC,EAC9G,IAAiB,QAAc,IAAI,IAAI,EAAY,KAAK,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,EAAY,CAAC,EACvF,IAAY,SACT,GAAe,kCAAkC,EAAE,EAAE,QAAQ,MAAQ,CAAC,EAAe,IAAI,EAAI,GAAG,CAAC,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;KAEQ,CAAA,CACL;QACJ,MAEJ,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,GAAD;KACE,OAAO;KACP,WAAW,MAAU,EAAY,EAAM,OAAO,MAAM;KACpD,aAAY;KACZ,cAAW;KACX,WAAU;KACV,YAAY,MAAU;AACpB,MAAI,EAAM,QAAQ,YAChB,EAAM,gBAAgB,EACjB,GAAmB;;KAG5B,CAAA,EACF,kBAAC,GAAD;KACE,MAAK;KACL,SAAQ;KACR,MAAK;KACL,SAAS;KACT,UAAU,CAAC,EAAS,MAAM,IAAI;eALhC,CAOE,kBAAC,GAAD,EAAM,WAAU,WAAY,CAAA,EAAA,SAErB;OACL;MACF;KACL,EAAA,CAAA,GApFH,kBAAC,KAAD;GAAG,WAAU;aAA8B;GAAgD,CAAA,CAsFzF"}
|
|
1
|
+
{"version":3,"file":"EntityTagsField.js","names":["TagIcon","_Fragment","Badge","Badge$1","EntityTagsField","newLabel","setNewLabel","useState","selectedTagId","setSelectedTagId","enabled","entityId","assignmentsQuery","useEntityTagsQuery","availableData","useAvailableTagsQuery","tagEntity","tagging","useTagEntityMutation","untagEntity","untagging","useUntagEntityMutation","createTag","creating","useCreateEntityTagMutation","assignments","useMemo","assignedTagIds","a","available","tag","busy","attachTag","response","mutationSucceeded","onAttachExisting","error","describeError","onCreateAndAttach","trimmed","created","createdId","onRemove","className","Tag","label","Fragment","info","assignment","color","X","Select","SelectTrigger","SelectValue","SelectContent","SelectItem","Button","Input","event","Plus"],"sources":["../../../src/eventfullymanaged/components/EntityTagsField.tsx"],"sourcesContent":["import { useMemo, useState } from 'react';\nimport { Plus, Tag as TagIcon, X } from 'lucide-react';\nimport {\n Badge,\n Button,\n Input,\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@burdenoff/fe-libs/ui';\n\nimport {\n useAvailableTagsQuery,\n useCreateEntityTagMutation,\n useEntityTagsQuery,\n useTagEntityMutation,\n useUntagEntityMutation,\n} from '../api/eventApi';\nimport { describeError, mutationSucceeded } from '../lib/mutationResult';\nimport { notify } from '../lib/toast';\n\nexport interface EntityTagsFieldProps {\n /** Entity kind, e.g. \"sponsor\", \"event\", \"session\". Namespaces the assignments. */\n entityType: string;\n /** Target row id. When empty (create form) the field prompts to save first. */\n entityId: string;\n label?: string;\n className?: string;\n}\n\n/**\n * Inline tag editor for any EventfullyManaged entity, keyed by\n * `(entityType, entityId)`. Reads current assignments via\n * `eventfullyManagedEntityTags` and renders each chip from the INLINE\n * `tagInfo { label, color }` (never the federated `tag {}` field, which the\n * gateway does not resolve here). Supports attaching an existing workspace tag,\n * minting a brand-new tag, and detaching — each mutation refetches the\n * assignment list so the field stays in sync.\n */\nexport function EntityTagsField({ entityType, entityId, label = 'Tags', className }: EntityTagsFieldProps) {\n const [newLabel, setNewLabel] = useState('');\n const [selectedTagId, setSelectedTagId] = useState('');\n\n const enabled = Boolean(entityId);\n const assignmentsQuery = useEntityTagsQuery({ input: { entityType, entityId } });\n const { data: availableData } = useAvailableTagsQuery({ limit: 100 });\n const [tagEntity, { loading: tagging }] = useTagEntityMutation();\n const [untagEntity, { loading: untagging }] = useUntagEntityMutation();\n const [createTag, { loading: creating }] = useCreateEntityTagMutation();\n\n const assignments = useMemo(() => assignmentsQuery.data?.eventfullyManagedEntityTags ?? [], [assignmentsQuery.data]);\n const assignedTagIds = useMemo(() => new Set(assignments.map((a) => a.tagId)), [assignments]);\n const available = useMemo(\n () => (availableData?.availableEventfullyManagedTags ?? []).filter((tag) => !assignedTagIds.has(tag.id)),\n [availableData, assignedTagIds]\n );\n\n const busy = tagging || untagging || creating;\n\n const attachTag = async (tagId: string) => {\n const response = await tagEntity({ variables: { input: { entityType, entityId, tagId, source: 'manual' } } });\n if (!mutationSucceeded(response, response.data?.tagEventfullyManagedEntity?.id, 'Could not add tag')) {\n return false;\n }\n await assignmentsQuery.refetch();\n return true;\n };\n\n const onAttachExisting = async () => {\n if (!selectedTagId) {\n return;\n }\n try {\n if (await attachTag(selectedTagId)) {\n setSelectedTagId('');\n }\n } catch (error) {\n notify.error('Could not add tag', describeError(error));\n }\n };\n\n const onCreateAndAttach = async () => {\n const trimmed = newLabel.trim();\n if (!trimmed) {\n return;\n }\n try {\n const created = await createTag({ variables: { input: { label: trimmed } } });\n const createdId = created.data?.createEventfullyManagedEntityTag?.id;\n if (!mutationSucceeded(created, createdId, 'Could not create tag') || !createdId) {\n return;\n }\n if (await attachTag(createdId)) {\n setNewLabel('');\n }\n } catch (error) {\n notify.error('Could not create tag', describeError(error));\n }\n };\n\n const onRemove = async (tagId: string) => {\n try {\n const response = await untagEntity({ variables: { input: { entityType, entityId, tagId } } });\n if (response.error) {\n notify.error('Could not remove tag', response.error.message);\n return;\n }\n await assignmentsQuery.refetch();\n } catch (error) {\n notify.error('Could not remove tag', describeError(error));\n }\n };\n\n return (\n <div className={`space-y-2 ${className ?? ''}`}>\n <div className=\"flex items-center gap-2 text-sm font-medium text-text-primary\">\n <TagIcon className=\"h-4 w-4 text-text-muted\" aria-hidden=\"true\" />\n <span>{label}</span>\n </div>\n\n {!enabled ? (\n <p className=\"text-sm text-text-secondary\">Save this record first to start adding tags.</p>\n ) : (\n <>\n <div className=\"flex flex-wrap gap-2\" role=\"list\" aria-label={label}>\n {assignments.length === 0 ? (\n <span className=\"text-sm text-text-secondary\">No tags yet.</span>\n ) : (\n assignments.map((assignment) => {\n const info = assignment.tagInfo;\n const color = info?.color ?? undefined;\n return (\n <Badge key={assignment.id} variant=\"secondary\" className=\"gap-1.5\" role=\"listitem\">\n {color ? (\n <span className=\"h-2 w-2 rounded-full\" style={{ backgroundColor: color }} aria-hidden=\"true\" />\n ) : null}\n <span>{info?.label ?? info?.key ?? 'Tag'}</span>\n <button\n type=\"button\"\n onClick={() => onRemove(assignment.tagId)}\n disabled={busy}\n aria-label={`Remove ${info?.label ?? 'tag'}`}\n className=\"rounded-full text-text-muted transition-colors hover:text-text-primary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border-focus disabled:opacity-50\"\n >\n <X className=\"h-3 w-3\" aria-hidden=\"true\" />\n </button>\n </Badge>\n );\n })\n )}\n </div>\n\n <div className=\"flex flex-col gap-2 sm:flex-row sm:items-center\">\n {available.length > 0 ? (\n <div className=\"flex items-center gap-2\">\n <Select value={selectedTagId} onValueChange={setSelectedTagId}>\n <SelectTrigger className=\"w-48\" aria-label=\"Choose an existing tag\">\n <SelectValue placeholder=\"Add existing tag\" />\n </SelectTrigger>\n <SelectContent>\n {available.map((tag) => (\n <SelectItem key={tag.id} value={tag.id}>\n {tag.label}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n onClick={onAttachExisting}\n disabled={!selectedTagId || busy}\n >\n Add\n </Button>\n </div>\n ) : null}\n\n <div className=\"flex items-center gap-2\">\n <Input\n value={newLabel}\n onChange={(event) => setNewLabel(event.target.value)}\n placeholder=\"New tag label\"\n aria-label=\"New tag label\"\n className=\"w-48\"\n onKeyDown={(event) => {\n if (event.key === 'Enter') {\n event.preventDefault();\n void onCreateAndAttach();\n }\n }}\n />\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n onClick={onCreateAndAttach}\n disabled={!newLabel.trim() || busy}\n >\n <Plus className=\"h-4 w-4\" />\n Create\n </Button>\n </div>\n </div>\n </>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;AAyCA,SAAgBI,EAAgB,EAAE,eAAY,aAAU,WAAQ,QAAQ,gBAAmC;CACzG,IAAM,CAACC,GAAUC,KAAeC,EAAS,EAAE,GACrC,CAACC,GAAeC,KAAoBF,EAAS,EAAE,GAE/CG,IAAU,EAAQC,GAClBC,IAAmBC,EAAmB,EAAE,OAAO;EAAE;EAAY;CAAS,EAAE,CAAC,GACzE,EAAE,MAAMC,MAAkBC,EAAsB,EAAE,OAAO,IAAI,CAAC,GAC9D,CAACC,GAAW,EAAE,SAASC,OAAaC,EAAqB,GACzD,CAACC,GAAa,EAAE,SAASC,O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AAA,CAsFzF;;AAET"}
|
|
@@ -10,7 +10,7 @@ export declare function EventAreaChart({ data, height, emptyLabel, }: {
|
|
|
10
10
|
data: AreaPoint[];
|
|
11
11
|
height?: number;
|
|
12
12
|
emptyLabel?: string;
|
|
13
|
-
}): import("react
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
14
|
export interface DonutSlice {
|
|
15
15
|
name: string;
|
|
16
16
|
value: number;
|
|
@@ -22,7 +22,7 @@ export declare function EventDonutChart({ data, height, centerLabel, centerValue
|
|
|
22
22
|
centerLabel?: string;
|
|
23
23
|
centerValue?: string;
|
|
24
24
|
emptyLabel?: string;
|
|
25
|
-
}): import("react
|
|
25
|
+
}): import("react").JSX.Element;
|
|
26
26
|
export interface BarDatum {
|
|
27
27
|
name: string;
|
|
28
28
|
value: number;
|
|
@@ -31,7 +31,7 @@ export declare function EventBarChart({ data, height, emptyLabel, }: {
|
|
|
31
31
|
data: BarDatum[];
|
|
32
32
|
height?: number;
|
|
33
33
|
emptyLabel?: string;
|
|
34
|
-
}): import("react
|
|
34
|
+
}): import("react").JSX.Element;
|
|
35
35
|
export interface ChartLegendItem {
|
|
36
36
|
label: string;
|
|
37
37
|
color: string;
|
|
@@ -40,5 +40,5 @@ export interface ChartLegendItem {
|
|
|
40
40
|
export declare function ChartLegend({ items, className }: {
|
|
41
41
|
items: ChartLegendItem[];
|
|
42
42
|
className?: string;
|
|
43
|
-
}): import("react
|
|
43
|
+
}): import("react").JSX.Element;
|
|
44
44
|
//# sourceMappingURL=EventCharts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventCharts.d.ts","sourceRoot":"","sources":["../../../src/eventfullymanaged/components/EventCharts.tsx"],"names":[],"mappings":"AAiCA,+EAA+E;AAC/E,eAAO,MAAM,mBAAmB,mIAMtB,CAAC;AAEX,uFAAuF;AACvF,eAAO,MAAM,YAAY,mIAAsB,CAAC;AAiBhD,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,MAAY,EACZ,UAAkC,GACnC,EAAE;IACD,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB
|
|
1
|
+
{"version":3,"file":"EventCharts.d.ts","sourceRoot":"","sources":["../../../src/eventfullymanaged/components/EventCharts.tsx"],"names":[],"mappings":"AAiCA,+EAA+E;AAC/E,eAAO,MAAM,mBAAmB,mIAMtB,CAAC;AAEX,uFAAuF;AACvF,eAAO,MAAM,YAAY,mIAAsB,CAAC;AAiBhD,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,MAAY,EACZ,UAAkC,GACnC,EAAE;IACD,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,+BA+CA;AAMD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,MAAY,EACZ,WAAW,EACX,WAAW,EACX,UAA0B,GAC3B,EAAE;IACD,IAAI,EAAE,UAAU,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,+BAqCA;AAMD,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CAC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