@riverbankcms/sdk 0.60.0 → 0.60.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -3
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +1 -3
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -0
- package/dist/_dts/api/src/endpoints.d.ts +1 -1
- package/dist/_dts/billing/src/plans/types.d.ts +27 -0
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +173 -2
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -2
- package/dist/_dts/blocks/src/system/runtime/header/shared.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.client.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/AgendaEventCard.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/DayEventsModal.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventDetailModal.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventModals.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekAgendaView.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekTimetableView.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCapacity.d.ts +16 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/timetableModel.d.ts +2 -0
- package/dist/_dts/content-editor/src/index.d.ts +2 -2
- package/dist/_dts/content-editor/src/primitives/shared/activePreviewField.d.ts +9 -0
- package/dist/_dts/content-editor/src/primitives/shared/index.d.ts +1 -0
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +10 -0
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +4 -0
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +8 -5
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +7 -5
- package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +2 -0
- package/dist/_dts/editor-blocks/src/block-editor/reorderControlMode.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +4 -0
- package/dist/_dts/media-react/src/hooks/useApiMediaUploader.d.ts +14 -0
- package/dist/_dts/media-react/src/index.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/index.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +11 -28
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorUI.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/previewChromeSurface.d.ts +12 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +41 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeRuntimePatch.d.ts +15 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +106 -0
- package/dist/_dts/preview-next/src/client/preview/previewUndoDomains.d.ts +34 -0
- package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/useOnboardingConfirmationCheck.d.ts +4 -9
- package/dist/_dts/preview-next/src/constants.d.ts +0 -1
- package/dist/_dts/preview-next/src/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/onboarding-preview-planner.d.ts +89 -0
- package/dist/_dts/preview-next/src/route-contract.d.ts +37 -0
- package/dist/_dts/sdk/src/rendering/components/Block.d.ts +7 -76
- package/dist/_dts/sdk/src/rendering/components/Block.server.d.ts +9 -0
- package/dist/_dts/sdk/src/rendering/components/Block.shared.d.ts +78 -0
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +5 -5
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/index.d.ts +17 -16
- package/dist/_dts/theme-core/src/responsiveDisplay.d.ts +23 -0
- package/dist/_dts/theme-core/src/responsiveMode.d.ts +21 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorErrors.d.ts +1 -0
- package/dist/_dts/ui/src/command-multi-select.d.ts +2 -2
- package/dist/cli/index.mjs +120 -40
- package/dist/client/bookings.mjs +27 -0
- package/dist/client/client.mjs +889 -497
- package/dist/client/hooks.mjs +61 -21
- package/dist/client/rendering/client.mjs +319 -128
- package/dist/client/rendering/islands.mjs +122 -44
- package/dist/client/rendering.mjs +959 -486
- package/dist/preview-next/before-render.mjs +5525 -0
- package/dist/preview-next/client/runtime.mjs +104162 -102561
- package/dist/preview-next/constants.mjs +0 -2
- package/dist/preview-next/index.mjs +0 -2
- package/dist/preview-next/middleware.mjs +5535 -1
- package/dist/server/components.mjs +7880 -7522
- package/dist/server/config-validation.mjs +61 -21
- package/dist/server/config.mjs +61 -21
- package/dist/server/data.mjs +61 -21
- package/dist/server/index.mjs +2 -2
- package/dist/server/next.mjs +783 -429
- package/dist/server/page-converter.mjs +60 -20
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +2461 -837
- package/dist/server/rendering.mjs +9276 -8840
- package/dist/server/routing.mjs +102 -39
- package/dist/server/server.mjs +62 -22
- package/dist/server/theme-bridge.mjs +639 -358
- package/dist/styles/index.css +343 -299
- package/package.json +1 -1
- package/dist/_dts/preview-next/src/client/blocks/runOptimisticCustomizeAction.d.ts +0 -21
|
@@ -2854,6 +2854,23 @@ var init_shared2 = __esm({
|
|
|
2854
2854
|
}
|
|
2855
2855
|
});
|
|
2856
2856
|
|
|
2857
|
+
// ../blocks/src/system/runtime/nodes/events/shared/eventCapacity.ts
|
|
2858
|
+
function getEventAvailability(event) {
|
|
2859
|
+
if (event.capacity == null) {
|
|
2860
|
+
return { available: null, isFull: false };
|
|
2861
|
+
}
|
|
2862
|
+
const available = event.availableSpots ?? event.capacity - event.registeredCount;
|
|
2863
|
+
if (available <= 0) {
|
|
2864
|
+
return { available: 0, isFull: true };
|
|
2865
|
+
}
|
|
2866
|
+
return { available, isFull: false };
|
|
2867
|
+
}
|
|
2868
|
+
var init_eventCapacity = __esm({
|
|
2869
|
+
"../blocks/src/system/runtime/nodes/events/shared/eventCapacity.ts"() {
|
|
2870
|
+
"use strict";
|
|
2871
|
+
}
|
|
2872
|
+
});
|
|
2873
|
+
|
|
2857
2874
|
// ../blocks/src/system/runtime/nodes/events/shared/utils.ts
|
|
2858
2875
|
function getContainerClass(layout, columns) {
|
|
2859
2876
|
if (layout === "compact") {
|
|
@@ -3078,7 +3095,7 @@ function formatEventPrice(event) {
|
|
|
3078
3095
|
}
|
|
3079
3096
|
}
|
|
3080
3097
|
function resolveEventCta(event, buttonText) {
|
|
3081
|
-
const
|
|
3098
|
+
const { isFull: isSoldOut } = getEventAvailability(event);
|
|
3082
3099
|
const defaultButtonText = event.kind === "course_session" ? "View course" : "View event";
|
|
3083
3100
|
const effectiveButtonText = buttonText ?? defaultButtonText;
|
|
3084
3101
|
if (isSoldOut) {
|
|
@@ -3094,6 +3111,7 @@ var init_utils = __esm({
|
|
|
3094
3111
|
"use strict";
|
|
3095
3112
|
init_src();
|
|
3096
3113
|
init_shared2();
|
|
3114
|
+
init_eventCapacity();
|
|
3097
3115
|
COLUMN_CLASSES = {
|
|
3098
3116
|
"2": "rb-sm-grid-cols-2",
|
|
3099
3117
|
"3": "rb-sm-grid-cols-2 rb-lg-grid-cols-3",
|
|
@@ -4633,6 +4651,7 @@ var init_EventCard = __esm({
|
|
|
4633
4651
|
init_media2();
|
|
4634
4652
|
init_media_server();
|
|
4635
4653
|
init_EventCardIcons();
|
|
4654
|
+
init_eventCapacity();
|
|
4636
4655
|
init_utils();
|
|
4637
4656
|
EventCard = ({
|
|
4638
4657
|
event,
|
|
@@ -4657,7 +4676,7 @@ var init_EventCard = __esm({
|
|
|
4657
4676
|
)}`;
|
|
4658
4677
|
const cta = resolveEventCta(event, buttonText);
|
|
4659
4678
|
const isSoldOut = cta.hidden;
|
|
4660
|
-
const spotsLeft = event
|
|
4679
|
+
const { available: spotsLeft } = getEventAvailability(event);
|
|
4661
4680
|
const cardClass = `card-${cardVariant}`;
|
|
4662
4681
|
const buttonClass = `${buttonVariant} button-${buttonVariant}`;
|
|
4663
4682
|
const title = event.title;
|
|
@@ -9525,21 +9544,26 @@ function buildTimetableModel(input) {
|
|
|
9525
9544
|
for (const [dateKey, dayDrafts] of groupDraftsByDate(drafts)) {
|
|
9526
9545
|
cellsByDate.set(
|
|
9527
9546
|
dateKey,
|
|
9528
|
-
assignTimetableLanes(dayDrafts).map((draft) =>
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9547
|
+
assignTimetableLanes(dayDrafts).map((draft) => {
|
|
9548
|
+
const capacity = formatTimetableCapacity(draft.event);
|
|
9549
|
+
return {
|
|
9550
|
+
event: draft.event,
|
|
9551
|
+
startsAtMinutes: draft.startsAtMinutes,
|
|
9552
|
+
endsAtMinutes: draft.endsAtMinutes,
|
|
9553
|
+
topPercent: toRangePercent(draft.startsAtMinutes - rangeStartMinutes, rangeMinutes),
|
|
9554
|
+
heightPercent: Math.max(
|
|
9555
|
+
MIN_EVENT_HEIGHT_PERCENT,
|
|
9556
|
+
toRangePercent(draft.endsAtMinutes - draft.startsAtMinutes, rangeMinutes)
|
|
9557
|
+
),
|
|
9558
|
+
laneIndex: draft.laneIndex,
|
|
9559
|
+
laneCount: draft.laneCount,
|
|
9560
|
+
categoryColor: draft.event.eventCategory?.color || "rgb(var(--tb-accent))",
|
|
9561
|
+
timeLabel: formatEventTimeRange(draft.event),
|
|
9562
|
+
teacherLine: formatEventTeacherLine(draft.event),
|
|
9563
|
+
capacityLabel: capacity.label,
|
|
9564
|
+
isFull: capacity.isFull
|
|
9565
|
+
};
|
|
9566
|
+
})
|
|
9543
9567
|
);
|
|
9544
9568
|
}
|
|
9545
9569
|
return {
|
|
@@ -9672,6 +9696,12 @@ function formatShortDayLabel(date) {
|
|
|
9672
9696
|
const dayName = FULL_DAY_NAMES[date.getDay()] ?? "";
|
|
9673
9697
|
return `${dayName.slice(0, 3)} ${date.getDate()}`;
|
|
9674
9698
|
}
|
|
9699
|
+
function formatTimetableCapacity(event) {
|
|
9700
|
+
const { available, isFull } = getEventAvailability(event);
|
|
9701
|
+
if (available == null) return { label: null, isFull: false };
|
|
9702
|
+
if (isFull) return { label: "Full", isFull: true };
|
|
9703
|
+
return { label: `${available} spots left`, isFull: false };
|
|
9704
|
+
}
|
|
9675
9705
|
function formatEventTimeRange(event) {
|
|
9676
9706
|
const timeZone = event.timeZone ?? null;
|
|
9677
9707
|
return `${formatTime(event.startsAt, { timeZone })} - ${formatTime(event.endsAt, { timeZone })}`;
|
|
@@ -9684,6 +9714,7 @@ var init_timetableModel = __esm({
|
|
|
9684
9714
|
"../blocks/src/system/runtime/nodes/events/shared/timetableModel.ts"() {
|
|
9685
9715
|
"use strict";
|
|
9686
9716
|
init_src();
|
|
9717
|
+
init_eventCapacity();
|
|
9687
9718
|
init_utils();
|
|
9688
9719
|
DEFAULT_START_HOUR = 6;
|
|
9689
9720
|
DEFAULT_END_HOUR = 21;
|
|
@@ -26970,30 +27001,22 @@ var init_CalendarDayCell = __esm({
|
|
|
26970
27001
|
|
|
26971
27002
|
// ../blocks/src/system/runtime/nodes/events/shared/AgendaEventCard.tsx
|
|
26972
27003
|
import { Fragment as Fragment20, jsx as jsx94, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
26973
|
-
function formatCapacity(event) {
|
|
26974
|
-
if (event.capacity == null) {
|
|
26975
|
-
return null;
|
|
26976
|
-
}
|
|
26977
|
-
const available = event.availableSpots ?? event.capacity - event.registeredCount;
|
|
26978
|
-
if (available <= 0) {
|
|
26979
|
-
return "Full";
|
|
26980
|
-
}
|
|
26981
|
-
return `${available} spots left`;
|
|
26982
|
-
}
|
|
26983
27004
|
var AgendaEventCard;
|
|
26984
27005
|
var init_AgendaEventCard = __esm({
|
|
26985
27006
|
"../blocks/src/system/runtime/nodes/events/shared/AgendaEventCard.tsx"() {
|
|
26986
27007
|
"use strict";
|
|
27008
|
+
init_eventCapacity();
|
|
26987
27009
|
init_utils();
|
|
26988
27010
|
AgendaEventCard = ({
|
|
26989
27011
|
event,
|
|
27012
|
+
showCapacity,
|
|
26990
27013
|
onClick
|
|
26991
27014
|
}) => {
|
|
26992
27015
|
const eventUrl = event.path;
|
|
26993
27016
|
const categoryColor = event.eventCategory?.color || "rgb(var(--tb-accent))";
|
|
26994
27017
|
const price = formatEventPrice(event);
|
|
26995
|
-
const
|
|
26996
|
-
const
|
|
27018
|
+
const { available, isFull } = getEventAvailability(event);
|
|
27019
|
+
const capacity = showCapacity && available != null ? isFull ? "Full" : `${available} spots left` : null;
|
|
26997
27020
|
const title = event.title;
|
|
26998
27021
|
const timeZone = event.timeZone ?? null;
|
|
26999
27022
|
const teacherLine = formatEventTeacherLine(event);
|
|
@@ -27073,6 +27096,7 @@ var init_WeekAgendaView = __esm({
|
|
|
27073
27096
|
viewDate,
|
|
27074
27097
|
events,
|
|
27075
27098
|
startOfWeek,
|
|
27099
|
+
showCapacity,
|
|
27076
27100
|
emptyMessage = "No events scheduled"
|
|
27077
27101
|
}) => {
|
|
27078
27102
|
const weekDays = getWeekCalendarDays(viewDate, startOfWeek);
|
|
@@ -27093,7 +27117,8 @@ var init_WeekAgendaView = __esm({
|
|
|
27093
27117
|
/* @__PURE__ */ jsx95("div", { className: "event-agenda-day-content", children: dayEvents.length === 0 ? /* @__PURE__ */ jsx95("p", { className: "event-agenda-day-empty", children: emptyMessage }) : /* @__PURE__ */ jsx95("div", { className: "event-agenda-day-events", children: dayEvents.map((event) => /* @__PURE__ */ jsx95(
|
|
27094
27118
|
AgendaEventCard,
|
|
27095
27119
|
{
|
|
27096
|
-
event
|
|
27120
|
+
event,
|
|
27121
|
+
showCapacity
|
|
27097
27122
|
},
|
|
27098
27123
|
event.occurrenceId || event.id
|
|
27099
27124
|
)) }) })
|
|
@@ -27110,6 +27135,7 @@ var init_WeekAgendaView = __esm({
|
|
|
27110
27135
|
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
27111
27136
|
function EventDetailModal({
|
|
27112
27137
|
event,
|
|
27138
|
+
showCapacity,
|
|
27113
27139
|
onClose,
|
|
27114
27140
|
cardVariant = "default",
|
|
27115
27141
|
buttonVariant = "primary",
|
|
@@ -27150,7 +27176,7 @@ function EventDetailModal({
|
|
|
27150
27176
|
showVenue: true,
|
|
27151
27177
|
showMap,
|
|
27152
27178
|
allowMap: true,
|
|
27153
|
-
showCapacity
|
|
27179
|
+
showCapacity
|
|
27154
27180
|
}
|
|
27155
27181
|
) })
|
|
27156
27182
|
}
|
|
@@ -27170,6 +27196,7 @@ import { jsx as jsx97, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
|
27170
27196
|
function DayEventsModal({
|
|
27171
27197
|
date,
|
|
27172
27198
|
events,
|
|
27199
|
+
showCapacity,
|
|
27173
27200
|
onClose,
|
|
27174
27201
|
onSelectEvent
|
|
27175
27202
|
}) {
|
|
@@ -27206,7 +27233,8 @@ function DayEventsModal({
|
|
|
27206
27233
|
AgendaEventCard,
|
|
27207
27234
|
{
|
|
27208
27235
|
event,
|
|
27209
|
-
onClick: onSelectEvent
|
|
27236
|
+
onClick: onSelectEvent,
|
|
27237
|
+
showCapacity
|
|
27210
27238
|
},
|
|
27211
27239
|
event.occurrenceId || event.id
|
|
27212
27240
|
)) })
|
|
@@ -27227,6 +27255,7 @@ var init_DayEventsModal = __esm({
|
|
|
27227
27255
|
// ../blocks/src/system/runtime/nodes/events/shared/EventModals.tsx
|
|
27228
27256
|
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
27229
27257
|
function EventModals({
|
|
27258
|
+
showCapacity,
|
|
27230
27259
|
cardVariant,
|
|
27231
27260
|
buttonVariant,
|
|
27232
27261
|
buttonText
|
|
@@ -27243,7 +27272,8 @@ function EventModals({
|
|
|
27243
27272
|
onClose: closeModal,
|
|
27244
27273
|
cardVariant,
|
|
27245
27274
|
buttonVariant,
|
|
27246
|
-
buttonText
|
|
27275
|
+
buttonText,
|
|
27276
|
+
showCapacity
|
|
27247
27277
|
}
|
|
27248
27278
|
);
|
|
27249
27279
|
}
|
|
@@ -27256,7 +27286,8 @@ function EventModals({
|
|
|
27256
27286
|
onClose: closeModal,
|
|
27257
27287
|
onSelectEvent: (event) => {
|
|
27258
27288
|
openEventModal(event);
|
|
27259
|
-
}
|
|
27289
|
+
},
|
|
27290
|
+
showCapacity
|
|
27260
27291
|
}
|
|
27261
27292
|
);
|
|
27262
27293
|
}
|
|
@@ -27659,7 +27690,8 @@ var init_EventCombined_client = __esm({
|
|
|
27659
27690
|
viewDate,
|
|
27660
27691
|
events: calendarEventsRaw,
|
|
27661
27692
|
startOfWeek,
|
|
27662
|
-
emptyMessage: "No events scheduled"
|
|
27693
|
+
emptyMessage: "No events scheduled",
|
|
27694
|
+
showCapacity: resolvedShowCapacity
|
|
27663
27695
|
}
|
|
27664
27696
|
) : /* @__PURE__ */ jsxs71("div", { className: "event-calendar-container", children: [
|
|
27665
27697
|
/* @__PURE__ */ jsx99("div", { className: "event-calendar-day-headers", children: dayNames.map((day) => /* @__PURE__ */ jsx99("div", { className: "event-calendar-day-header", children: day }, day)) }),
|
|
@@ -27679,7 +27711,14 @@ var init_EventCombined_client = __esm({
|
|
|
27679
27711
|
] }),
|
|
27680
27712
|
calendarEventsRaw.length === 0 && !calendarLoading && /* @__PURE__ */ jsx99("p", { className: "event-calendar-empty", children: emptyMessage })
|
|
27681
27713
|
] }),
|
|
27682
|
-
/* @__PURE__ */ jsx99(
|
|
27714
|
+
/* @__PURE__ */ jsx99(
|
|
27715
|
+
EventModals,
|
|
27716
|
+
{
|
|
27717
|
+
buttonVariant,
|
|
27718
|
+
buttonText,
|
|
27719
|
+
showCapacity: resolvedShowCapacity
|
|
27720
|
+
}
|
|
27721
|
+
)
|
|
27683
27722
|
] })
|
|
27684
27723
|
]
|
|
27685
27724
|
}
|
|
@@ -27714,6 +27753,7 @@ var init_WeekTimetableView = __esm({
|
|
|
27714
27753
|
viewDate,
|
|
27715
27754
|
events,
|
|
27716
27755
|
startOfWeek,
|
|
27756
|
+
showCapacity,
|
|
27717
27757
|
emptyMessage = "No classes scheduled"
|
|
27718
27758
|
}) => {
|
|
27719
27759
|
const { openEventModal } = useEventModal();
|
|
@@ -27746,7 +27786,8 @@ var init_WeekTimetableView = __esm({
|
|
|
27746
27786
|
hours: model.hourTicks,
|
|
27747
27787
|
rangeMinutes: model.rangeMinutes,
|
|
27748
27788
|
selected: day.dateKey === selectedDayKey,
|
|
27749
|
-
onEventClick: openEventModal
|
|
27789
|
+
onEventClick: openEventModal,
|
|
27790
|
+
showCapacity
|
|
27750
27791
|
},
|
|
27751
27792
|
day.dateKey
|
|
27752
27793
|
))
|
|
@@ -27766,7 +27807,7 @@ var init_WeekTimetableView = __esm({
|
|
|
27766
27807
|
hour
|
|
27767
27808
|
)) })
|
|
27768
27809
|
] });
|
|
27769
|
-
TimetableDayColumn = ({ day, hours, rangeMinutes, selected, onEventClick }) => /* @__PURE__ */ jsxs72(
|
|
27810
|
+
TimetableDayColumn = ({ day, hours, rangeMinutes, selected, onEventClick, showCapacity }) => /* @__PURE__ */ jsxs72(
|
|
27770
27811
|
"section",
|
|
27771
27812
|
{
|
|
27772
27813
|
className: `event-timetable-day ${day.isToday ? "event-timetable-day--today" : ""}`,
|
|
@@ -27795,7 +27836,8 @@ var init_WeekTimetableView = __esm({
|
|
|
27795
27836
|
TimetableEventButton,
|
|
27796
27837
|
{
|
|
27797
27838
|
cell,
|
|
27798
|
-
onClick: onEventClick
|
|
27839
|
+
onClick: onEventClick,
|
|
27840
|
+
showCapacity
|
|
27799
27841
|
},
|
|
27800
27842
|
cell.event.occurrenceId || cell.event.id
|
|
27801
27843
|
))
|
|
@@ -27805,7 +27847,7 @@ var init_WeekTimetableView = __esm({
|
|
|
27805
27847
|
]
|
|
27806
27848
|
}
|
|
27807
27849
|
);
|
|
27808
|
-
TimetableEventButton = ({ cell, onClick }) => /* @__PURE__ */ jsxs72(
|
|
27850
|
+
TimetableEventButton = ({ cell, onClick, showCapacity }) => /* @__PURE__ */ jsxs72(
|
|
27809
27851
|
"button",
|
|
27810
27852
|
{
|
|
27811
27853
|
type: "button",
|
|
@@ -27823,7 +27865,14 @@ var init_WeekTimetableView = __esm({
|
|
|
27823
27865
|
/* @__PURE__ */ jsx100("span", { className: "event-timetable-event-time", children: cell.timeLabel }),
|
|
27824
27866
|
/* @__PURE__ */ jsx100("span", { className: "event-timetable-event-title", children: cell.event.title }),
|
|
27825
27867
|
cell.teacherLine ? /* @__PURE__ */ jsx100("span", { className: "event-timetable-event-teacher", children: cell.teacherLine }) : null,
|
|
27826
|
-
cell.event.venue ? /* @__PURE__ */ jsx100("span", { className: "event-timetable-event-meta", children: cell.event.venue.name }) : null
|
|
27868
|
+
cell.event.venue ? /* @__PURE__ */ jsx100("span", { className: "event-timetable-event-meta", children: cell.event.venue.name }) : null,
|
|
27869
|
+
showCapacity && cell.capacityLabel ? /* @__PURE__ */ jsx100(
|
|
27870
|
+
"span",
|
|
27871
|
+
{
|
|
27872
|
+
className: cell.isFull ? "event-timetable-event-capacity event-timetable-event-capacity--full" : "event-timetable-event-capacity",
|
|
27873
|
+
children: cell.capacityLabel
|
|
27874
|
+
}
|
|
27875
|
+
) : null
|
|
27827
27876
|
]
|
|
27828
27877
|
}
|
|
27829
27878
|
);
|
|
@@ -28045,7 +28094,8 @@ var init_EventCalendar_client = __esm({
|
|
|
28045
28094
|
viewDate,
|
|
28046
28095
|
events,
|
|
28047
28096
|
startOfWeek: display.startOfWeek,
|
|
28048
|
-
emptyMessage: display.emptyMessage
|
|
28097
|
+
emptyMessage: display.emptyMessage,
|
|
28098
|
+
showCapacity: display.showCapacity
|
|
28049
28099
|
}
|
|
28050
28100
|
)
|
|
28051
28101
|
}
|
|
@@ -28054,7 +28104,8 @@ var init_EventCalendar_client = __esm({
|
|
|
28054
28104
|
EventModals,
|
|
28055
28105
|
{
|
|
28056
28106
|
buttonVariant: display.buttonVariant,
|
|
28057
|
-
buttonText: display.buttonText
|
|
28107
|
+
buttonText: display.buttonText,
|
|
28108
|
+
showCapacity: display.showCapacity
|
|
28058
28109
|
}
|
|
28059
28110
|
)
|
|
28060
28111
|
] });
|
|
@@ -28136,7 +28187,8 @@ var init_EventCalendar_client = __esm({
|
|
|
28136
28187
|
EventModals,
|
|
28137
28188
|
{
|
|
28138
28189
|
buttonVariant: display.buttonVariant,
|
|
28139
|
-
buttonText: display.buttonText
|
|
28190
|
+
buttonText: display.buttonText,
|
|
28191
|
+
showCapacity: display.showCapacity
|
|
28140
28192
|
}
|
|
28141
28193
|
)
|
|
28142
28194
|
] });
|
|
@@ -30078,9 +30130,35 @@ var init_compile = __esm({
|
|
|
30078
30130
|
});
|
|
30079
30131
|
|
|
30080
30132
|
// ../theme-core/src/responsiveMode.ts
|
|
30133
|
+
function escapeRegExp(value) {
|
|
30134
|
+
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
30135
|
+
}
|
|
30136
|
+
function buildResponsiveScopeRulePatternSource() {
|
|
30137
|
+
return [
|
|
30138
|
+
"@scope",
|
|
30139
|
+
"\\(\\[",
|
|
30140
|
+
escapeRegExp(THEME_RESPONSIVE_MODE_ATTR),
|
|
30141
|
+
'="(?:viewport|container)"\\]\\)',
|
|
30142
|
+
"to",
|
|
30143
|
+
"\\((?::scope )?\\[",
|
|
30144
|
+
escapeRegExp(THEME_RESPONSIVE_MODE_ATTR),
|
|
30145
|
+
"\\]\\)",
|
|
30146
|
+
"\\{"
|
|
30147
|
+
].join("\\s*");
|
|
30148
|
+
}
|
|
30149
|
+
var THEME_RESPONSIVE_MODE_ATTR, RESPONSIVE_SCOPE_RULE_PATTERN, RESPONSIVE_SCOPE_RULE_AT_PATTERN;
|
|
30081
30150
|
var init_responsiveMode = __esm({
|
|
30082
30151
|
"../theme-core/src/responsiveMode.ts"() {
|
|
30083
30152
|
"use strict";
|
|
30153
|
+
THEME_RESPONSIVE_MODE_ATTR = "data-rb-responsive-mode";
|
|
30154
|
+
RESPONSIVE_SCOPE_RULE_PATTERN = new RegExp(
|
|
30155
|
+
buildResponsiveScopeRulePatternSource(),
|
|
30156
|
+
"g"
|
|
30157
|
+
);
|
|
30158
|
+
RESPONSIVE_SCOPE_RULE_AT_PATTERN = new RegExp(
|
|
30159
|
+
buildResponsiveScopeRulePatternSource(),
|
|
30160
|
+
"y"
|
|
30161
|
+
);
|
|
30084
30162
|
}
|
|
30085
30163
|
});
|
|
30086
30164
|
|