@riverbankcms/sdk 0.171.1 → 0.173.0
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/_dts/{BlocksIslandsHydrator-D-6cWDDC.d.ts → BlocksIslandsHydrator-O50mTMCY.d.ts} +1 -1
- package/dist/_dts/{Page-4jkUDm4D.d.ts → Page-Bk99sJwV.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DEvzvovi.d.ts → SdkPreviewMode-DzAue6Kj.d.ts} +2 -2
- package/dist/_dts/{client-CXPH5esD.d.ts → client-ZlNEIvlU.d.ts} +1002 -140
- package/dist/_dts/{content-types-DsCr4-ny.d.ts → content-types-DBXPNc0h.d.ts} +3 -3
- package/dist/_dts/{contracts-BlmXM7xP.d.ts → contracts-D9bhu0bb.d.ts} +4 -3
- package/dist/_dts/{footerPageOutline-BA0DnxWU.d.ts → footerPageOutline-Bfap3soN.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-B7IRJCFG.d.ts → generatePageMetadata-DwCdg31h.d.ts} +2 -2
- package/dist/_dts/{index-BZ8-c4iQ.d.ts → index-BnatulTs.d.ts} +3 -3
- package/dist/_dts/{index-Sua-7CF1.d.ts → index-C611wjIL.d.ts} +1 -1
- package/dist/_dts/{index-C9_OTCFQ.d.ts → index-CJzs-yIJ.d.ts} +2 -2
- package/dist/_dts/{index-B3gfKNI-.d.ts → index-DW3eeNph.d.ts} +4 -4
- package/dist/_dts/{index-DlABXDte.d.ts → index-Dq_AboWN.d.ts} +1 -1
- package/dist/_dts/{index-DScYSl03.d.ts → index-DutLU2d2.d.ts} +49 -38
- package/dist/_dts/{index-BQPJbOkU.d.ts → index-KXh8FQ2s.d.ts} +2 -2
- package/dist/_dts/{loadContent-Dx4fW3Pa.d.ts → loadContent-Bde2y870.d.ts} +7 -7
- package/dist/_dts/{request-DUTkELQn.d.ts → request-Bysk4QPI.d.ts} +2862 -508
- package/dist/_dts/{resolveBlockData-Cze35i_N.d.ts → resolveBlockData-ChbNvpSF.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-zf6-E-C3.d.ts → resolvePageContent-CGa6QMgc.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +6 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +18 -1
- package/dist/_dts/{types-JD-36x3P.d.ts → types-BoEk9ZON.d.ts} +3 -3
- package/dist/_dts/{types-BCzfYDW2.d.ts → types-BwitGNTl.d.ts} +7 -7
- package/dist/_dts/{types-CPHk5Voq.d.ts → types-kpp8XyXv.d.ts} +2 -2
- package/dist/_dts/{validation-0MyQlzWJ.d.ts → validation-ChftKX-o.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-vTHQyBQF.mjs → BlocksIslandsHydrator-BnUeSE3d.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-Blge9FJo.mjs → BookingMailingListNote-LHQMODqB.mjs} +14 -8
- package/dist/client/{BookingPanelArrangement-wm6eeuin.mjs → BookingPanelArrangement-Be704P85.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-BlaCItmH.mjs → BookingQuestionFields-BewbU_cV.mjs} +4 -4
- package/dist/client/{CalendarNavigationChevron-DRH9qFny.mjs → CalendarNavigationChevron-BMZp3RS3.mjs} +42 -35
- package/dist/client/{CheckboxChoice-B65wFjqx.mjs → CheckboxChoice-b-PJLEXe.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-DPGZArG9.mjs → DemoBookingPortalAccess-CARUWQ_E.mjs} +23 -23
- package/dist/client/{EventCalendar.client-FGg6yCLH.mjs → EventCalendar.client-CaI6upCX.mjs} +12 -11
- package/dist/client/{EventCombined.client-218_Gqgp.mjs → EventCombined.client-CoRUaYHY.mjs} +12 -11
- package/dist/client/{EventEmbeddedCheckoutStep-DKKRCuta.mjs → EventEmbeddedCheckoutStep-B18VbNS_.mjs} +1 -1
- package/dist/client/{EventItem-DKdZSW_R.mjs → EventItem-Doe4KodB.mjs} +60 -25
- package/dist/client/{EventListWeekNavigation-DZJ5qBhg.mjs → EventListWeekNavigation-CXWLKDfa.mjs} +1 -1
- package/dist/client/{EventListing.client-CCdsrqHc.mjs → EventListing.client-DvJ5tGTx.mjs} +3 -3
- package/dist/client/{EventListing.view-BVoHnVZA.mjs → EventListing.view-BmfyK7S5.mjs} +220 -81
- package/dist/client/{EventRegistrationPayment-BVxHCnxs.mjs → EventRegistrationPayment-DwMlJB2V.mjs} +847 -146
- package/dist/client/{LocationMapActions-QahdLtdE.mjs → LocationMapActions-CdRPU6gp.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-Dy6UMuIw.mjs → MapDrawingSvg-DCLtxOnt.mjs} +1 -1
- package/dist/client/{Page-CT4HaEMr.mjs → Page-D46Dmr7b.mjs} +1976 -532
- package/dist/client/{ProtectedSubmitButton-AOUzjDK9.mjs → ProtectedSubmitButton-C-ql101B.mjs} +1 -1
- package/dist/client/{StepIndicator-DRJy4eU3.mjs → StepIndicator-CrSZCZn1.mjs} +83 -12
- package/dist/client/{TabBarFragment-CsAufYwT.mjs → TabBarFragment-BqfRLojo.mjs} +1 -1
- package/dist/client/{ThemedButton-BMDHwnM6.mjs → ThemedButton-DuaYtnvG.mjs} +1 -1
- package/dist/client/{accessibleSurfaces-BnyVRqdU.mjs → accessibleSurfaces-D4DhWo9j.mjs} +37 -38
- package/dist/client/{accordion-BOApxi9U.mjs → accordion-P8xcfKxq.mjs} +1 -1
- package/dist/client/bookability-SargNwlO.mjs +17 -0
- package/dist/client/{booking-form.client-DDf8Lmo5.mjs → booking-form.client-BM2s-NqR.mjs} +33 -29
- package/dist/client/{bookingForm-DWrgG-Xx.mjs → bookingForm-JnaZPZge.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-7MVCNWgc.mjs → boxStyleClassNames-Cahps5kR.mjs} +1 -1
- package/dist/client/{carousel-DeI76SEP.mjs → carousel-CQQ_m0KA.mjs} +2 -2
- package/dist/client/{carousel.client-YF4mUK5t.mjs → carousel.client-h65clfUO.mjs} +1 -1
- package/dist/client/{cart-D_uxULCO.mjs → cart-0Q4fjw_K.mjs} +3 -3
- package/dist/client/{cart.client-BxSMse88.mjs → cart.client-BI0IaHX3.mjs} +1 -1
- package/dist/client/{checkout-DIbh4g5e.mjs → checkout-1J-3ftxF.mjs} +3 -3
- package/dist/client/{checkout.client-x4Lkw8-E.mjs → checkout.client-DOGYDlDk.mjs} +1 -1
- package/dist/client/{checkoutUrls-DqN3L-kl.mjs → checkoutUrls-CwHqcqzP.mjs} +1 -1
- package/dist/client/client.mjs +183 -4
- package/dist/client/{context-Dzjv2CpA.mjs → context-D0KCgbOq.mjs} +94 -14
- package/dist/client/course-CmOuoZHN.mjs +237 -0
- package/dist/client/{dateFormatting-BfurxGwg.mjs → dateFormatting-Dmfaczzq.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-D0dcPsRE.mjs → demoPortalMagicLink-CL7KGRta.mjs} +1 -1
- package/dist/client/{display-ChgDe9Da.mjs → display-lL-YRApN.mjs} +4460 -888
- package/dist/client/{enhanceHeaderSection-BEjg_h_6.mjs → enhanceHeaderSection-B-eLGs2C.mjs} +139 -16
- package/dist/client/{event-details.client-COmbQ3mc.mjs → event-details.client-DH1-Jxsh.mjs} +1 -1
- package/dist/client/{event-registration.client-BvQG3qEY.mjs → event-registration.client-GuuElczW.mjs} +1316 -554
- package/dist/client/{eventCalendar-DiitbUpV.mjs → eventCalendar-BiCINPkV.mjs} +4 -4
- package/dist/client/{eventCombined-Da9Z8KDq.mjs → eventCombined-BtzmH6FW.mjs} +4 -4
- package/dist/client/{eventDetails-Cf-kg7d6.mjs → eventDetails-BJpAD10-.mjs} +2 -2
- package/dist/client/{eventListing-xwXgVp7a.mjs → eventListing-jLB8iRqp.mjs} +4 -4
- package/dist/client/{eventRegistration-hlFYlgTA.mjs → eventRegistration-WhtpDEbq.mjs} +4 -4
- package/dist/client/{form-ERv_X_oZ.mjs → form-DO6qKH3M.mjs} +3 -3
- package/dist/client/{form.client-Cz24FYNj.mjs → form.client-D12ljYiX.mjs} +4 -4
- package/dist/client/{form.parts-DeaH4kIe.mjs → form.parts-C8QHaQOI.mjs} +3 -3
- package/dist/client/{formatDate-Cjouxh4Y.mjs → formatDate-BnhfIpCa.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-CJvt0ZP4.mjs → headerSection-BtFWtoUm.mjs} +2 -2
- package/dist/client/{newsletter-form.client-WuGDEzdD.mjs → newsletter-form.client-oHrqM_Ao.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DhnW6tdB.mjs → newsletter-form.parts-D5U-FuVy.mjs} +2 -2
- package/dist/client/{newsletterForm-DxG7NV8U.mjs → newsletterForm-CBYbFxSx.mjs} +3 -3
- package/dist/client/{noop-poI1m2yW.mjs → noop-CN0o0yjH.mjs} +131 -12
- package/dist/client/portal/client.mjs +231 -117
- package/dist/client/{product-detail.client-DsSfbmdV.mjs → product-detail.client-d_sNCapC.mjs} +1 -1
- package/dist/client/{product-list.client-Byzow88i.mjs → product-list.client-DkSpw6WQ.mjs} +1 -1
- package/dist/client/{productDetail-iXkmQpxG.mjs → productDetail-DaqM-LgL.mjs} +3 -3
- package/dist/client/{productList-HoFGQXFl.mjs → productList-CMx4-XlG.mjs} +3 -3
- package/dist/client/{propsDecoder-CH2-LJME.mjs → propsDecoder-BZbUKstC.mjs} +3 -3
- package/dist/client/{registry.server-ed20Q7bV.mjs → registry.server-Cdot3dMk.mjs} +2705 -2397
- package/dist/client/rendering/client.mjs +27 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +38 -63
- package/dist/client/{richText-coerce-CtoGLZ_e.mjs → richText-coerce-ByApwB4q.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CBUO-xuz.mjs → routeIslandApiConfig-DTET8f__.mjs} +1 -1
- package/dist/client/{runtimeResponse-3brbt2Jq.mjs → runtimeResponse-IkOwKZD0.mjs} +1 -1
- package/dist/client/runtimeResponse-Wd6kwhE_.mjs +3 -0
- package/dist/client/{shop-DXyeSNgi.mjs → shop-Cy6xXDM7.mjs} +3 -3
- package/dist/client/{shop-commerce--klkHNzu.mjs → shop-commerce-oDR76k1q.mjs} +13 -12
- package/dist/client/{shop-commerce-store-BdpIWdc4.mjs → shop-commerce-store-DjoUpL3a.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-WsGb9DD8.mjs +166 -0
- package/dist/client/{shop.client-Sv7QVDmj.mjs → shop.client-Brha4BSM.mjs} +13 -12
- package/dist/client/{shop.interactive-C0IjiWOs.mjs → shop.interactive-CXhYl0DW.mjs} +218 -89
- package/dist/client/{shopShared-Jt4TzcAG.mjs → shopShared-JCa_SRhP.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/stable-json-D0XAEIXc.mjs +22 -0
- package/dist/client/{timetableModel-BxbnEJCi.mjs → timetableModel-CZeJwMxP.mjs} +11 -11
- package/dist/client/{types-B0hJldSt.mjs → types-DjWUR_O6.mjs} +8 -2
- package/dist/client/{useAvailableSlots-ByHedoBi.mjs → useAvailableSlots-DfbSkWop.mjs} +17 -6
- package/dist/client/{useDiscountApply-dToQs9oY.mjs → useDiscountApply-Dq-wjb1d.mjs} +4 -167
- package/dist/client/{useDiscountCodeUi-C_aa_H69.mjs → useDiscountCodeUi-Cyy0meCH.mjs} +1 -1
- package/dist/client/{useEventPagination--MFZBoJt.mjs → useEventPagination-CCAGQHsD.mjs} +6 -6
- package/dist/client/{view-DhEwiTJG.mjs → view-D6yebI4r.mjs} +223 -65
- package/dist/client/{view-C_brMDU2.mjs → view-Sw075FOY.mjs} +3 -3
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CKe4cjZ4.mjs → EventEmbeddedCheckoutStep-aRJjq4x8.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-OwAxA2C0.mjs → LocationPickerEnvironment-D4F_5rnr.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-CaUOTCSh.mjs → MapLibreEditMap-BKMNxSEJ.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-Dfi8Y3AI.mjs → PageSectionToolbar-DG2rXUmo.mjs} +48 -36
- package/dist/preview-next/client/{PreviewEditorSidebar-DJlX4sXP.mjs → PreviewEditorSidebar-BDY5vdHU.mjs} +113 -416
- package/dist/preview-next/client/{PreviewEditorUI-FVAibBlC.mjs → PreviewEditorUI-CqZCfOaz.mjs} +5 -5
- package/dist/preview-next/client/PreviewLayoutContext-Dy0LwcHc.mjs +26 -0
- package/dist/preview-next/client/PreviewQueryProvider-BgIucg_5.mjs +21 -0
- package/dist/preview-next/client/{PreviewShell-9eAon7Z8.mjs → PreviewShell-Bv2HZ7JY.mjs} +313 -64
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Byf-KW1x.mjs → SdkPreviewModeRuntime-BMTcR-MW.mjs} +300 -174
- package/dist/preview-next/client/{SiteChromeCustomizeButton-eU-zMftO.mjs → SiteChromeCustomizeButton-D1MGyN_Z.mjs} +3246 -1079
- package/dist/preview-next/client/{ThemedButton-CKYjeU_M.mjs → ThemedButton-CVYz7h68.mjs} +8 -2
- package/dist/preview-next/client/{lucide-react-X0DjcFij.mjs → lucide-react-BCNn8dEQ.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-3FZrzbK8.mjs → previewAssistantSlot-La6MerV_.mjs} +11994 -6013
- package/dist/preview-next/client/{previewChromeRoot-C4gyNQXE.mjs → previewChromeRoot-BcOQqJIP.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +5 -4
- package/dist/preview-next/client/sdk-runtime-BkckHox4.mjs +6 -0
- package/dist/preview-next/client/{useAutosaveStatus-OIMkhbkP.mjs → useAutosaveStatus-CPAHgGqI.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BNG9P9sM.mjs → useOpenBlockForSetup-BDkuSZxQ.mjs} +20 -8
- package/dist/preview-next/container-responsive.css +215 -4
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BLY4ycq6.mjs → route-contract-CPV30ABr.mjs} +179 -0
- package/dist/server/{Block.shared-BC3jPIP4.mjs → Block.shared-BaMMstO1.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-B7Ey6AWT.mjs → ThemeScopeCore-D1NTXZdX.mjs} +14 -9
- package/dist/server/{accessibleSurfaces-BxsHs-jf.mjs → accessibleSurfaces-Dbd2__Le.mjs} +12 -11
- package/dist/server/{bindings-xQ9v3zrn.mjs → bindings-Dge4sqel.mjs} +109 -20
- package/dist/server/{block-kinds-DkzOr19P.mjs → block-kinds-BCY9z3oB.mjs} +1 -0
- package/dist/server/{client-DCwLR0kQ.mjs → client-VVIQjC4r.mjs} +183 -4
- package/dist/server/config-template-validation.mjs +3 -0
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +3 -3
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{identity-20XHqyuO.mjs → identity-DQD_8lNO.mjs} +1 -1
- package/dist/server/index.mjs +4 -4
- package/dist/server/{loadContent-C4I3ltU_.mjs → loadContent-BIJb3WAK.mjs} +19 -15
- package/dist/server/{loadPage-COvxWN0r.mjs → loadPage-DjTU19y7.mjs} +2 -2
- package/dist/server/{media-Brn9FW5s.mjs → media-luf7RF22.mjs} +2 -2
- package/dist/server/{navigation-DAwbICEL.mjs → navigation-iC_hXjJI.mjs} +3 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-QiUjZmEV.mjs → opaqueSurface-COEKXVwk.mjs} +2 -2
- package/dist/server/{overrideResolution-BqQg6Iws.mjs → overrideResolution-1Ru3NMQj.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-CVCGTj5S.mjs → pageRenderPlan-CytPhrI9.mjs} +1084 -351
- package/dist/server/{pageRuntimeSupport-C7Be9suN.mjs → pageRuntimeSupport-DWspU5EZ.mjs} +4 -3
- package/dist/server/{pageShared-H_bSBPLd.mjs → pageShared-Bhx8bVe1.mjs} +1187 -902
- package/dist/server/{parseThemeForPersistence-Bk0o95m6.mjs → parseThemeForPersistence-CtgRtvo3.mjs} +2 -2
- package/dist/server/{prebuild-HQNOeCs9.mjs → prebuild-BjvFb0CA.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CbRsnhta.mjs → prefetchBlockData-Db3stNpp.mjs} +3 -3
- package/dist/server/{registry-CaeRTf4E.mjs → registry-BMCfcev6.mjs} +10282 -7366
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-CUMjWbXQ.mjs → resolveBlockData--yUbI-Ll.mjs} +2 -2
- package/dist/server/{resolveButtonColourStates-euZnRMIu.mjs → resolveButtonColourStates-CCPUY9Xh.mjs} +32 -9
- package/dist/server/{responseMedia-t6gs0cB7.mjs → responseMedia-DpBC1hTM.mjs} +1 -1
- package/dist/server/{schema-CxBsE9Dv.mjs → schema-D5Vfmqzw.mjs} +396 -2
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-CvmhnkDr.mjs → validation-EgTtnTcY.mjs} +5 -5
- package/dist/server/{version-Clp2evCf.mjs → version-LjgU0Cq1.mjs} +1 -1
- package/dist/styles/index.css +1434 -15
- package/package.json +1 -1
- package/dist/client/cta-CP9l112u.mjs +0 -121
- package/dist/client/runtimeResponse-CTarP5K6.mjs +0 -3
- package/dist/preview-next/client/PreviewQueryProvider-BC0V7iAR.mjs +0 -43
- package/dist/preview-next/client/sdk-runtime-DtyRbz4E.mjs +0 -5
- package/dist/server/rich-text-CRcONdyM.mjs +0 -33
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Bt as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { i as ThemedButtonLink, m as ClockIcon } from "./ThemedButton-
|
|
6
|
-
import {
|
|
2
|
+
import { Bt as CardListLeadDate, Gt as EventQuickFacts, Ht as resolveCardListSchedule, Ut as selectCardListPresentation, nn as formatEventPrice, zt as CardListContentPart } from "./shop.interactive-CXhYl0DW.mjs";
|
|
3
|
+
import { Ha as listItemPresentation, Nr as eventDateOptions, Rr as formatEventCompactDateRail, Ur as formatEventTimeRange, Wa as listLookSlot, Wr as formatEventWeekdayTime, Zr as formatEventRemainingPlaces, ti as getEventAvailabilityStatus } from "./display-lL-YRApN.mjs";
|
|
4
|
+
import { R as isCssColorLiteral, V as resolveTokenOrCssColorValue, st as getTextColorForBackground, z as resolveOnColorForThemeToken } from "./accessibleSurfaces-D4DhWo9j.mjs";
|
|
5
|
+
import { i as ThemedButtonLink, m as ClockIcon } from "./ThemedButton-DuaYtnvG.mjs";
|
|
6
|
+
import { c as resolveEventLinkProps, s as resolveEventCta, t as eventDisplayTitle } from "./course-CmOuoZHN.mjs";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region ../blocks/src/system/runtime/nodes/events/domain/people.ts
|
|
@@ -114,6 +114,14 @@ const eventItemParts = {
|
|
|
114
114
|
"description",
|
|
115
115
|
"action"
|
|
116
116
|
],
|
|
117
|
+
"week-groups": [
|
|
118
|
+
"date",
|
|
119
|
+
"title",
|
|
120
|
+
"meta",
|
|
121
|
+
"time",
|
|
122
|
+
"price",
|
|
123
|
+
"action"
|
|
124
|
+
],
|
|
117
125
|
"day-groups": [
|
|
118
126
|
"title",
|
|
119
127
|
"meta",
|
|
@@ -180,9 +188,13 @@ function eventItemFacts(props) {
|
|
|
180
188
|
price
|
|
181
189
|
}),
|
|
182
190
|
venueIcon: hasActionRail(props.arrangement) && props.showVenue !== false && Boolean(props.event.venue),
|
|
183
|
-
places: props.showCapacity ? formatEventRemainingPlaces(props.event, {
|
|
191
|
+
places: props.showCapacity ? formatEventRemainingPlaces(props.event, {
|
|
192
|
+
full: "Sold out",
|
|
193
|
+
...props.eventRows === "day-schedule" ? { count: "always" } : {}
|
|
194
|
+
}) : null,
|
|
184
195
|
availability: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available",
|
|
185
|
-
description: props.event.presentation?.summary ?? props.event.description
|
|
196
|
+
description: props.event.presentation?.summary ?? props.event.description,
|
|
197
|
+
title: eventDisplayTitle(props.event)
|
|
186
198
|
};
|
|
187
199
|
}
|
|
188
200
|
/** Rows with a rail keep pricing in the details and time in the action rail. */
|
|
@@ -232,17 +244,25 @@ function renderCalendarItem(props) {
|
|
|
232
244
|
...listLookSlot(props, root),
|
|
233
245
|
"data-availability": facts.availability,
|
|
234
246
|
children: [
|
|
247
|
+
props.eventRows === "day-schedule" ? renderPart("time") : null,
|
|
235
248
|
parts.filter((part) => part === "image" || part === "chips" && chipsOnPhoto || part === "date").map(renderPart),
|
|
236
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ jsxs("div", {
|
|
237
250
|
...listLookSlot(props, props.arrangement === "grid" ? "item-body" : "what"),
|
|
238
|
-
children:
|
|
251
|
+
children: [props.eventRows === "day-schedule" ? /* @__PURE__ */ jsx(EventQuickFacts, {
|
|
252
|
+
facts: props.event.facts,
|
|
253
|
+
context: "card",
|
|
254
|
+
chips: {
|
|
255
|
+
list: listLookSlot(props, "chips"),
|
|
256
|
+
item: listLookSlot(props, "chip")
|
|
257
|
+
}
|
|
258
|
+
}) : null, parts.filter(body).map(renderPart)]
|
|
239
259
|
}),
|
|
240
260
|
renderCalendarTrailingParts(props, parts.filter((part) => [
|
|
241
261
|
"time",
|
|
242
262
|
"places",
|
|
243
263
|
"price",
|
|
244
264
|
"action"
|
|
245
|
-
].includes(part) && !body(part)), renderPart)
|
|
265
|
+
].includes(part) && !body(part) && !(part === "time" && props.eventRows === "day-schedule")), renderPart)
|
|
246
266
|
]
|
|
247
267
|
});
|
|
248
268
|
}
|
|
@@ -254,7 +274,7 @@ function renderCalendarTrailingParts(props, parts, renderPart) {
|
|
|
254
274
|
}) : content;
|
|
255
275
|
}
|
|
256
276
|
function eventItemTag(arrangement) {
|
|
257
|
-
return arrangement === "ledger" || arrangement === "timetable-rows" || arrangement === "day-groups" || arrangement === "week-columns" ? "li" : "article";
|
|
277
|
+
return arrangement === "week-groups" || arrangement === "ledger" || arrangement === "timetable-rows" || arrangement === "day-groups" || arrangement === "week-columns" ? "li" : "article";
|
|
258
278
|
}
|
|
259
279
|
function renderEventItemContentPart({ part, props, facts }) {
|
|
260
280
|
switch (part) {
|
|
@@ -279,19 +299,27 @@ function renderEventItemContentPart({ part, props, facts }) {
|
|
|
279
299
|
})
|
|
280
300
|
]
|
|
281
301
|
});
|
|
282
|
-
case "title": return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
302
|
+
case "title": return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
303
|
+
/* @__PURE__ */ jsx("h3", {
|
|
304
|
+
...listLookSlot(props, "item-title"),
|
|
305
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
306
|
+
...facts.link,
|
|
307
|
+
children: facts.title.title
|
|
308
|
+
})
|
|
309
|
+
}),
|
|
310
|
+
facts.title.runName ? /* @__PURE__ */ jsx("p", {
|
|
311
|
+
className: "rb-card-list-subtitle rb-caption",
|
|
312
|
+
"data-card-subtitle": true,
|
|
313
|
+
children: facts.title.runName
|
|
314
|
+
}) : null,
|
|
315
|
+
props.eventRows === "day-schedule" ? null : /* @__PURE__ */ jsx(EventQuickFacts, {
|
|
316
|
+
facts: props.event.facts,
|
|
317
|
+
context: "card"
|
|
287
318
|
})
|
|
288
|
-
})
|
|
289
|
-
facts: props.event.facts,
|
|
290
|
-
context: "card"
|
|
291
|
-
})] });
|
|
319
|
+
] });
|
|
292
320
|
case "time": return /* @__PURE__ */ jsxs("p", {
|
|
293
321
|
...listLookSlot(props, "time"),
|
|
294
|
-
children: [hasActionRail(props.arrangement) ? /* @__PURE__ */ jsx(ClockIcon, { "aria-hidden": "true" }) : null, facts.time]
|
|
322
|
+
children: [hasActionRail(props.arrangement) ? /* @__PURE__ */ jsx(ClockIcon, { "aria-hidden": "true" }) : null, props.arrangement === "week-groups" ? formatEventWeekdayTime(props.event) : facts.time]
|
|
295
323
|
});
|
|
296
324
|
case "places": return facts.places ? /* @__PURE__ */ jsx("p", {
|
|
297
325
|
...listLookSlot(props, "places"),
|
|
@@ -312,7 +340,7 @@ function renderEventItemContentPart({ part, props, facts }) {
|
|
|
312
340
|
part: "text",
|
|
313
341
|
item: {
|
|
314
342
|
id: props.event.id,
|
|
315
|
-
title:
|
|
343
|
+
title: facts.title.title,
|
|
316
344
|
text: facts.description
|
|
317
345
|
},
|
|
318
346
|
presentation: props
|
|
@@ -340,7 +368,7 @@ function renderEventItemImage(props, link) {
|
|
|
340
368
|
part: "media",
|
|
341
369
|
item: {
|
|
342
370
|
id: props.event.id,
|
|
343
|
-
title: props.event.title,
|
|
371
|
+
title: eventDisplayTitle(props.event).title,
|
|
344
372
|
media: props.event.presentation?.image,
|
|
345
373
|
titleLink: link,
|
|
346
374
|
newTabHint: link.target === "_blank"
|
|
@@ -366,8 +394,7 @@ function renderEventItemAction(props, facts) {
|
|
|
366
394
|
const slot = props.arrangement === "grid" ? "item-actions" : "action";
|
|
367
395
|
const link = {
|
|
368
396
|
href: cta.href,
|
|
369
|
-
|
|
370
|
-
rel: cta.external ? "noopener noreferrer" : void 0
|
|
397
|
+
...eventActionLinkTarget(cta.external)
|
|
371
398
|
};
|
|
372
399
|
return /* @__PURE__ */ jsx("div", {
|
|
373
400
|
...listLookSlot(props, slot),
|
|
@@ -379,10 +406,18 @@ function renderEventItemAction(props, facts) {
|
|
|
379
406
|
...link,
|
|
380
407
|
variant: props.buttonVariant ?? "primary",
|
|
381
408
|
size: props.actionSize ?? "sm",
|
|
409
|
+
extraClassName: props.eventRows === "day-schedule" ? "rb-session-booking" : void 0,
|
|
382
410
|
label: cta.label
|
|
383
411
|
})
|
|
384
412
|
});
|
|
385
413
|
}
|
|
414
|
+
/** External booking actions share the browser target and opener protection. */
|
|
415
|
+
function eventActionLinkTarget(external) {
|
|
416
|
+
return external ? {
|
|
417
|
+
target: "_blank",
|
|
418
|
+
rel: "noopener noreferrer"
|
|
419
|
+
} : {};
|
|
420
|
+
}
|
|
386
421
|
const carouselBodyParts = [
|
|
387
422
|
"chips",
|
|
388
423
|
"numeral",
|
package/dist/client/{EventListWeekNavigation-DZJ5qBhg.mjs → EventListWeekNavigation-CXWLKDfa.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Wa as listLookSlot } from "./display-lL-YRApN.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventListWeekNavigation.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-
|
|
4
|
-
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination
|
|
2
|
+
import { Mt as buildEventRuntimeFilters } from "./shop.interactive-CXhYl0DW.mjs";
|
|
3
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-CXWLKDfa.mjs";
|
|
4
|
+
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-CCAGQHsD.mjs";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/events/EventListing.client.tsx
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { r as boxStyleClassNames } from "./boxStyleClassNames-
|
|
5
|
-
import { i as ThemedButtonLink, m as ClockIcon } from "./ThemedButton-
|
|
6
|
-
import {
|
|
7
|
-
import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-
|
|
8
|
-
import { c as MapPinIcon, l as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-
|
|
2
|
+
import { $t as groupEventsByWeek, Gt as EventQuickFacts, Wt as MediaNodeServer, en as weekColumnDays, nn as formatEventPrice } from "./shop.interactive-CXhYl0DW.mjs";
|
|
3
|
+
import { Ha as listItemPresentation, Ir as formatDate, Kr as groupEventsByDate, Nr as eventDateOptions, Pr as eventLocalDateKey, Rr as formatEventCompactDateRail, Ur as formatEventTimeRange, Vr as formatEventNextDateFact, Wa as listLookSlot, yr as ImagePresets } from "./display-lL-YRApN.mjs";
|
|
4
|
+
import { r as boxStyleClassNames } from "./boxStyleClassNames-Cahps5kR.mjs";
|
|
5
|
+
import { i as ThemedButtonLink, m as ClockIcon } from "./ThemedButton-DuaYtnvG.mjs";
|
|
6
|
+
import { c as resolveEventLinkProps, i as formatCourseSessions, o as resolveEventCardBooking, r as formatCourseDatesAfter, s as resolveEventCta, t as eventDisplayTitle } from "./course-CmOuoZHN.mjs";
|
|
7
|
+
import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-DCLtxOnt.mjs";
|
|
8
|
+
import { c as MapPinIcon, l as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-Doe4KodB.mjs";
|
|
9
9
|
import "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventCard.tsx
|
|
@@ -17,8 +17,8 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
17
17
|
*
|
|
18
18
|
* This component is server-safe (uses no client APIs like Intl).
|
|
19
19
|
*/
|
|
20
|
-
const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", buttonText, showVenue = true, showMap = true, mapSlot, allowMap = true, lookSlots, surfacePresentation, showCapacity = true, showImage = true, showCategory = true, showSummary = true, orientation = "vertical", presentation, headingLevel, imageResolveContext }) => {
|
|
21
|
-
const { presentationClass, cardHeadingLevel, formattedDate, formattedTime, cta, cardClass, title, summary, image, category, categoryBadge, hasImage, dateFact, priceText, teacherLine, capacityText, orientationClass } = eventCardFacts({
|
|
20
|
+
const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", buttonText, showVenue = true, showMap = true, mapSlot, allowMap = true, lookSlots, surfacePresentation, showCapacity = true, showImage = true, showCategory = true, showSummary = true, orientation = "vertical", presentation, headingLevel, imageResolveContext, now }) => {
|
|
21
|
+
const { presentationClass, cardHeadingLevel, formattedDate, formattedTime, cta, cardClass, title, runName, summary, image, category, categoryBadge, hasImage, dateFact, priceText, teacherLine, capacityText, orientationClass } = eventCardFacts({
|
|
22
22
|
event,
|
|
23
23
|
presentation,
|
|
24
24
|
headingLevel,
|
|
@@ -27,7 +27,8 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
|
|
|
27
27
|
showCategory,
|
|
28
28
|
showImage,
|
|
29
29
|
showCapacity,
|
|
30
|
-
orientation
|
|
30
|
+
orientation,
|
|
31
|
+
now
|
|
31
32
|
});
|
|
32
33
|
return /* @__PURE__ */ jsxs("article", {
|
|
33
34
|
...listLookSlot({
|
|
@@ -69,7 +70,8 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
|
|
|
69
70
|
showVenue,
|
|
70
71
|
summary,
|
|
71
72
|
teacherLine,
|
|
72
|
-
title
|
|
73
|
+
title,
|
|
74
|
+
runName
|
|
73
75
|
})]
|
|
74
76
|
});
|
|
75
77
|
};
|
|
@@ -122,6 +124,8 @@ function EventCardMedia(props) {
|
|
|
122
124
|
}
|
|
123
125
|
function EventCardContent(props) {
|
|
124
126
|
const { event } = props;
|
|
127
|
+
const courseSessions = formatCourseSessions(event);
|
|
128
|
+
const moreDates = formatCourseDatesAfter(event);
|
|
125
129
|
const Heading = props.headingLevel === 4 ? "h4" : "h3";
|
|
126
130
|
return /* @__PURE__ */ jsxs("div", {
|
|
127
131
|
...listLookSlot(props, "item-body"),
|
|
@@ -142,6 +146,10 @@ function EventCardContent(props) {
|
|
|
142
146
|
children: props.title
|
|
143
147
|
})
|
|
144
148
|
}),
|
|
149
|
+
props.runName ? /* @__PURE__ */ jsx("p", {
|
|
150
|
+
className: "event-card-run-name rb-caption rb-mb-3",
|
|
151
|
+
children: props.runName
|
|
152
|
+
}) : null,
|
|
145
153
|
/* @__PURE__ */ jsx(EventQuickFacts, {
|
|
146
154
|
facts: event.facts,
|
|
147
155
|
context: "card"
|
|
@@ -151,10 +159,21 @@ function EventCardContent(props) {
|
|
|
151
159
|
className: "rb-mb-2 rb-caption",
|
|
152
160
|
children: /* @__PURE__ */ jsxs("div", {
|
|
153
161
|
className: "rb-flex rb-items-center rb-gap-2",
|
|
154
|
-
children: [/* @__PURE__ */ jsx(CalendarIcon, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("div", { children: [
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
162
|
+
children: [/* @__PURE__ */ jsx(CalendarIcon, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("div", { children: [
|
|
163
|
+
/* @__PURE__ */ jsx("time", { children: props.formattedDate }),
|
|
164
|
+
moreDates ? /* @__PURE__ */ jsxs("span", {
|
|
165
|
+
className: "event-card-more-dates",
|
|
166
|
+
children: [" ", moreDates]
|
|
167
|
+
}) : null,
|
|
168
|
+
/* @__PURE__ */ jsx("p", {
|
|
169
|
+
className: "rb-pl-6",
|
|
170
|
+
children: props.formattedTime
|
|
171
|
+
}),
|
|
172
|
+
courseSessions ? /* @__PURE__ */ jsx("p", {
|
|
173
|
+
className: "event-card-course-sessions rb-pl-6",
|
|
174
|
+
children: courseSessions
|
|
175
|
+
}) : null
|
|
176
|
+
] })]
|
|
158
177
|
})
|
|
159
178
|
}),
|
|
160
179
|
/* @__PURE__ */ jsx(EventCardVenue, {
|
|
@@ -279,16 +298,16 @@ function EventLookDate({ event, ...presentation }) {
|
|
|
279
298
|
})]
|
|
280
299
|
});
|
|
281
300
|
}
|
|
282
|
-
function eventCardFacts({ event, presentation, headingLevel, buttonText, cardRole, showCategory, showImage, showCapacity, orientation }) {
|
|
301
|
+
function eventCardFacts({ event, presentation, headingLevel, buttonText, cardRole, showCategory, showImage, showCapacity, orientation, now }) {
|
|
283
302
|
const { presentation: cardPresentation, presentationClass, headingLevel: cardHeadingLevel } = resolveEventCardOptions({
|
|
284
303
|
presentation,
|
|
285
304
|
headingLevel
|
|
286
305
|
});
|
|
287
306
|
const { formattedDate, formattedTime } = formatEventCardWhen(event);
|
|
288
|
-
const booking =
|
|
307
|
+
const booking = eventCardBooking(event, presentation, buttonText, now);
|
|
289
308
|
const { cta } = booking;
|
|
290
309
|
const cardClass = boxStyleClassNames({ role: cardRole }, { baseClass: "event-card" });
|
|
291
|
-
const title = event
|
|
310
|
+
const { title, runName } = eventDisplayTitle(event);
|
|
292
311
|
const summary = event.presentation?.summary ?? event.description;
|
|
293
312
|
const image = event.presentation?.image ?? null;
|
|
294
313
|
const category = event.eventCategory;
|
|
@@ -300,6 +319,7 @@ function eventCardFacts({ event, presentation, headingLevel, buttonText, cardRol
|
|
|
300
319
|
cta,
|
|
301
320
|
cardClass,
|
|
302
321
|
title,
|
|
322
|
+
runName,
|
|
303
323
|
summary,
|
|
304
324
|
image,
|
|
305
325
|
category,
|
|
@@ -317,6 +337,9 @@ function eventCardFacts({ event, presentation, headingLevel, buttonText, cardRol
|
|
|
317
337
|
orientationClass: eventCardOrientationClass(orientation)
|
|
318
338
|
};
|
|
319
339
|
}
|
|
340
|
+
function eventCardBooking(event, presentation, buttonText, now) {
|
|
341
|
+
return resolveEventCardBooking(event, presentation === "catalogue" ? "series" : "occurrence", buttonText, { now: now ?? null });
|
|
342
|
+
}
|
|
320
343
|
//#endregion
|
|
321
344
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventCompactRow.tsx
|
|
322
345
|
/**
|
|
@@ -370,9 +393,13 @@ const LegacyEventCompactRow = ({ event, buttonVariant = "primary", buttonText, s
|
|
|
370
393
|
children: /* @__PURE__ */ jsx("a", {
|
|
371
394
|
className: "event-title-link",
|
|
372
395
|
...resolveEventLinkProps(event),
|
|
373
|
-
children: event.title
|
|
396
|
+
children: eventDisplayTitle(event).title
|
|
374
397
|
})
|
|
375
398
|
}),
|
|
399
|
+
eventDisplayTitle(event).runName ? /* @__PURE__ */ jsx("p", {
|
|
400
|
+
className: "event-compact-row-run-name rb-caption",
|
|
401
|
+
children: eventDisplayTitle(event).runName
|
|
402
|
+
}) : null,
|
|
376
403
|
/* @__PURE__ */ jsx(EventQuickFacts, {
|
|
377
404
|
facts: event.facts,
|
|
378
405
|
context: "card"
|
|
@@ -460,6 +487,7 @@ function EventListingFrameView(props) {
|
|
|
460
487
|
return /* @__PURE__ */ jsxs("div", {
|
|
461
488
|
className: `event-listing ${display.className ?? ""}`,
|
|
462
489
|
"data-block": "event-listing",
|
|
490
|
+
"data-event-rows": display.eventRows,
|
|
463
491
|
children: [
|
|
464
492
|
filters,
|
|
465
493
|
display.state === "loading" ? /* @__PURE__ */ jsx(EmptyState, { message: display.loadingMessage }) : display.state === "empty" ? emptyState ?? /* @__PURE__ */ jsx(EmptyState, { message: display.emptyMessage }) : /* @__PURE__ */ jsx(EventListBody, {
|
|
@@ -476,69 +504,27 @@ function EventListBody({ display, renderEventCard, footer }) {
|
|
|
476
504
|
className: display.containerClass,
|
|
477
505
|
children: display.events.map(renderEventCard)
|
|
478
506
|
});
|
|
479
|
-
|
|
480
|
-
display
|
|
481
|
-
week: display
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
...listLookSlot(display, "group-date"),
|
|
496
|
-
children: [
|
|
497
|
-
date.day,
|
|
498
|
-
" ",
|
|
499
|
-
date.month
|
|
500
|
-
]
|
|
501
|
-
})]
|
|
502
|
-
}), /* @__PURE__ */ jsx("ol", { children: display.events.filter((event) => eventLocalDateKey(event) === eventLocalDateKey(first)).map((event) => /* @__PURE__ */ jsx(EventItem, {
|
|
503
|
-
...listItemPresentation(display, display.events.indexOf(event), display.events.length),
|
|
504
|
-
event,
|
|
505
|
-
arrangement: "day-groups"
|
|
506
|
-
}, event.occurrenceId || event.id)) })]
|
|
507
|
-
}, eventLocalDateKey(first));
|
|
508
|
-
})
|
|
509
|
-
});
|
|
510
|
-
if (display.listLayout === "ledger" || display.listLayout === "timetable-rows") {
|
|
511
|
-
const arrangement = display.listLayout;
|
|
512
|
-
return /* @__PURE__ */ jsx("ol", {
|
|
507
|
+
switch (display.listLayout) {
|
|
508
|
+
case "week-groups": return /* @__PURE__ */ jsx(WeekGroups, { display });
|
|
509
|
+
case "week-columns": return /* @__PURE__ */ jsx(WeekColumnList, { display });
|
|
510
|
+
case "day-groups": return /* @__PURE__ */ jsx(DayGroups, { display });
|
|
511
|
+
case "ledger":
|
|
512
|
+
case "timetable-rows": return /* @__PURE__ */ jsx(EventRows, {
|
|
513
|
+
display,
|
|
514
|
+
arrangement: display.listLayout
|
|
515
|
+
});
|
|
516
|
+
case "compact": return /* @__PURE__ */ jsx(CompactPanel, {
|
|
517
|
+
display,
|
|
518
|
+
renderEventCard,
|
|
519
|
+
footer
|
|
520
|
+
});
|
|
521
|
+
case "grid":
|
|
522
|
+
case "stack": return /* @__PURE__ */ jsx("div", {
|
|
513
523
|
...listLookSlot(display, "list"),
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
event,
|
|
517
|
-
arrangement,
|
|
518
|
-
continued: index > 0 && eventLocalDateKey(event) === eventLocalDateKey(events[index - 1] ?? event)
|
|
519
|
-
}, event.occurrenceId || event.id))
|
|
524
|
+
className: display.containerClass,
|
|
525
|
+
children: display.events.map(renderEventCard)
|
|
520
526
|
});
|
|
521
527
|
}
|
|
522
|
-
if (display.listLayout === "compact") return /* @__PURE__ */ jsxs("aside", {
|
|
523
|
-
...listLookSlot(display, "panel"),
|
|
524
|
-
className: display.containerClass,
|
|
525
|
-
children: [
|
|
526
|
-
display.panelHeading !== void 0 ? /* @__PURE__ */ jsx("h3", {
|
|
527
|
-
...listLookSlot(display, "panel-heading"),
|
|
528
|
-
children: display.panelHeading
|
|
529
|
-
}) : null,
|
|
530
|
-
/* @__PURE__ */ jsx("div", {
|
|
531
|
-
...listLookSlot(display, "list"),
|
|
532
|
-
children: display.events.map(renderEventCard)
|
|
533
|
-
}),
|
|
534
|
-
footer
|
|
535
|
-
]
|
|
536
|
-
});
|
|
537
|
-
return /* @__PURE__ */ jsx("div", {
|
|
538
|
-
...listLookSlot(display, "list"),
|
|
539
|
-
className: display.containerClass,
|
|
540
|
-
children: display.events.map(renderEventCard)
|
|
541
|
-
});
|
|
542
528
|
}
|
|
543
529
|
/** All seven days of the shown week; a day known to be empty says so, and a wholly empty week never reaches here. */
|
|
544
530
|
function WeekColumns({ display, week }) {
|
|
@@ -582,7 +568,19 @@ function hasArrangementPanel(display) {
|
|
|
582
568
|
}
|
|
583
569
|
/** Nearest slot parents in EventListBody and WeekColumns. */
|
|
584
570
|
/** `root` is the declared slot the listing renders inside (a Look may paint the block's layout), or null. */
|
|
585
|
-
function eventListSlotParents(arrangement, root = null) {
|
|
571
|
+
function eventListSlotParents(arrangement, root = null, eventRows) {
|
|
572
|
+
if (eventRows === "day-schedule") return {
|
|
573
|
+
list: root,
|
|
574
|
+
group: "list",
|
|
575
|
+
"group-label": "group",
|
|
576
|
+
"group-date": "group-label",
|
|
577
|
+
"group-day": "group-label",
|
|
578
|
+
day: "group-date",
|
|
579
|
+
month: "group-date",
|
|
580
|
+
items: "group",
|
|
581
|
+
row: "items",
|
|
582
|
+
"row-continued": "items"
|
|
583
|
+
};
|
|
586
584
|
return {
|
|
587
585
|
list: arrangement === "compact" ? "panel" : root,
|
|
588
586
|
panel: root,
|
|
@@ -590,9 +588,150 @@ function eventListSlotParents(arrangement, root = null) {
|
|
|
590
588
|
"group-label": "group",
|
|
591
589
|
"group-date": "group-label",
|
|
592
590
|
item: "list",
|
|
593
|
-
|
|
591
|
+
...arrangement === "week-groups" ? {
|
|
592
|
+
items: "group",
|
|
593
|
+
row: "items"
|
|
594
|
+
} : { row: arrangement === "week-columns" || arrangement === "day-groups" ? "group" : "list" },
|
|
594
595
|
"row-continued": "list"
|
|
595
596
|
};
|
|
596
597
|
}
|
|
598
|
+
function WeekGroups({ display }) {
|
|
599
|
+
const context = display.weekGrouping;
|
|
600
|
+
if (!context) return /* @__PURE__ */ jsx(DayGroups, { display });
|
|
601
|
+
return /* @__PURE__ */ jsx("ol", {
|
|
602
|
+
...listLookSlot(display, "list"),
|
|
603
|
+
children: groupEventsByWeek(display.events, context).map((week) => /* @__PURE__ */ jsxs("li", {
|
|
604
|
+
...listLookSlot(display, "group"),
|
|
605
|
+
children: [/* @__PURE__ */ jsx("h3", {
|
|
606
|
+
...listLookSlot(display, "group-label"),
|
|
607
|
+
children: week.label
|
|
608
|
+
}), /* @__PURE__ */ jsx("ol", {
|
|
609
|
+
...listLookSlot(display, "items"),
|
|
610
|
+
children: week.events.map((event) => /* @__PURE__ */ jsx(EventItem, {
|
|
611
|
+
...listItemPresentation(display, display.events.indexOf(event), display.events.length),
|
|
612
|
+
event,
|
|
613
|
+
arrangement: "week-groups"
|
|
614
|
+
}, event.occurrenceId || event.id))
|
|
615
|
+
})]
|
|
616
|
+
}, week.key))
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
function DayGroups({ display }) {
|
|
620
|
+
return /* @__PURE__ */ jsx("ol", {
|
|
621
|
+
...listLookSlot(display, "list"),
|
|
622
|
+
children: display.events.filter((event, index, events) => events.findIndex((candidate) => eventLocalDateKey(candidate) === eventLocalDateKey(event)) === index).map((first) => {
|
|
623
|
+
const date = formatEventCompactDateRail(first.startsAt, eventDateOptions(first), "as-written");
|
|
624
|
+
return /* @__PURE__ */ jsxs("li", {
|
|
625
|
+
...listLookSlot(display, "group"),
|
|
626
|
+
children: [/* @__PURE__ */ jsxs("h3", {
|
|
627
|
+
...listLookSlot(display, "group-label"),
|
|
628
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
629
|
+
...listLookSlot(display, "group-day"),
|
|
630
|
+
children: date.weekday
|
|
631
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
632
|
+
...listLookSlot(display, "group-date"),
|
|
633
|
+
children: [
|
|
634
|
+
date.day,
|
|
635
|
+
" ",
|
|
636
|
+
date.month
|
|
637
|
+
]
|
|
638
|
+
})]
|
|
639
|
+
}), /* @__PURE__ */ jsx("ol", { children: display.events.filter((event) => eventLocalDateKey(event) === eventLocalDateKey(first)).map((event) => /* @__PURE__ */ jsx(EventItem, {
|
|
640
|
+
...listItemPresentation(display, display.events.indexOf(event), display.events.length),
|
|
641
|
+
event,
|
|
642
|
+
arrangement: "day-groups"
|
|
643
|
+
}, event.occurrenceId || event.id)) })]
|
|
644
|
+
}, eventLocalDateKey(first));
|
|
645
|
+
})
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
function EventRows({ display, arrangement }) {
|
|
649
|
+
if (display.eventRows === "day-schedule") return /* @__PURE__ */ jsx(DaySchedule, { display });
|
|
650
|
+
return /* @__PURE__ */ jsx("ol", {
|
|
651
|
+
...listLookSlot(display, "list"),
|
|
652
|
+
children: display.events.map((event, index, events) => /* @__PURE__ */ jsx(EventItem, {
|
|
653
|
+
...listItemPresentation(display, index, events.length),
|
|
654
|
+
event,
|
|
655
|
+
arrangement,
|
|
656
|
+
continued: index > 0 && eventLocalDateKey(event) === eventLocalDateKey(events[index - 1] ?? event)
|
|
657
|
+
}, event.occurrenceId || event.id))
|
|
658
|
+
});
|
|
659
|
+
}
|
|
660
|
+
function CompactPanel({ display, renderEventCard, footer }) {
|
|
661
|
+
return /* @__PURE__ */ jsxs("aside", {
|
|
662
|
+
...listLookSlot(display, "panel"),
|
|
663
|
+
className: display.containerClass,
|
|
664
|
+
children: [
|
|
665
|
+
display.panelHeading !== void 0 ? /* @__PURE__ */ jsx("h3", {
|
|
666
|
+
...listLookSlot(display, "panel-heading"),
|
|
667
|
+
children: display.panelHeading
|
|
668
|
+
}) : null,
|
|
669
|
+
/* @__PURE__ */ jsx("div", {
|
|
670
|
+
...listLookSlot(display, "list"),
|
|
671
|
+
children: display.events.map(renderEventCard)
|
|
672
|
+
}),
|
|
673
|
+
footer
|
|
674
|
+
]
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
function WeekColumnList({ display }) {
|
|
678
|
+
return display.week ? /* @__PURE__ */ jsx(WeekColumns, {
|
|
679
|
+
display,
|
|
680
|
+
week: display.week
|
|
681
|
+
}) : /* @__PURE__ */ jsx(DayGroups, { display });
|
|
682
|
+
}
|
|
683
|
+
/** Opt-in structure on the ledger: each session shows its quick facts as tags above its title. */
|
|
684
|
+
function DaySchedule({ display }) {
|
|
685
|
+
const options = eventDateOptions({ siteTimeZone: display.weekGrouping?.timeZone ?? display.events[0]?.siteTimeZone });
|
|
686
|
+
return /* @__PURE__ */ jsx("ol", {
|
|
687
|
+
...listLookSlot(display, "list"),
|
|
688
|
+
children: [...groupEventsByDate([...display.events], options.timeZone)].map(([key, events]) => {
|
|
689
|
+
const first = events[0];
|
|
690
|
+
if (!first) return null;
|
|
691
|
+
const date = formatEventCompactDateRail(first.startsAt, options, "as-written");
|
|
692
|
+
return /* @__PURE__ */ jsxs("li", {
|
|
693
|
+
...listLookSlot(display, "group"),
|
|
694
|
+
children: [/* @__PURE__ */ jsxs("h3", {
|
|
695
|
+
...listLookSlot(display, "group-label"),
|
|
696
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
697
|
+
...listLookSlot(display, "group-date"),
|
|
698
|
+
"aria-hidden": "true",
|
|
699
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
700
|
+
...listLookSlot(display, "day"),
|
|
701
|
+
children: date.day
|
|
702
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
703
|
+
...listLookSlot(display, "month"),
|
|
704
|
+
children: date.month
|
|
705
|
+
})]
|
|
706
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
707
|
+
...listLookSlot(display, "group-day"),
|
|
708
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
709
|
+
"aria-hidden": "true",
|
|
710
|
+
children: date.fullWeekday
|
|
711
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
712
|
+
className: "rb-sr-only",
|
|
713
|
+
children: date.label
|
|
714
|
+
})]
|
|
715
|
+
})]
|
|
716
|
+
}), /* @__PURE__ */ jsx("ol", {
|
|
717
|
+
...listLookSlot(display, "items"),
|
|
718
|
+
children: events.map((event) => /* @__PURE__ */ jsx(EventItem, {
|
|
719
|
+
...listItemPresentation(display, display.events.indexOf(event), display.events.length),
|
|
720
|
+
event,
|
|
721
|
+
arrangement: "ledger",
|
|
722
|
+
showCapacity: display.showCapacity,
|
|
723
|
+
parts: [
|
|
724
|
+
"title",
|
|
725
|
+
"time",
|
|
726
|
+
"places",
|
|
727
|
+
"action"
|
|
728
|
+
],
|
|
729
|
+
itemActionStyle: "button"
|
|
730
|
+
}, event.occurrenceId || event.id))
|
|
731
|
+
})]
|
|
732
|
+
}, key);
|
|
733
|
+
})
|
|
734
|
+
});
|
|
735
|
+
}
|
|
597
736
|
//#endregion
|
|
598
737
|
export { EventCard as a, EventCompactRow as i, eventListSlotParents as n, EmptyState as r, EventListingFrameView as t };
|