https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41129
--- Comment #44 from Paul Derscheid <[email protected]> --- Created attachment 199040 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199040&action=edit Bug 41129: Add BaseFlatpickr wrapper and booking calendar composable - Add BaseFlatpickr.vue, a domain-agnostic Vue 3 flatpickr wrapper that handles single/range/end-date-only modes, soft and hard severity disabling, range preview, viewport tracking, Koha- configured display format detection, and dynamic l10n bundle loading for the current HTML lang; exposes clear, setDate, instance, and inputElement via defineExpose - Add useBookingCalendarMaps composable that translates booking- domain refs (bookings, checkouts, item, period, rules) into the disabledFn / disabledByDate / markersByDate / classByDate / rangePreviewFn / loanBoundaryTimes maps the wrapper consumes, clamping the constrained range with findFirstBlockingDate - Add the BaseFlatpickr component spec covering single, range, end-date-only, hover preview, anchor-aware highlighting, hard and soft disabling, markers and custom markerRenderer, classByDate, external value, viewport, ready-event payload, and the exposed surface - Add the useBookingCalendarMaps component spec using a renderless ComposableHost that exposes the composable's outputs for direct inspection of disabledByDate / markersByDate / classByDate / rangePreviewFn / loanBoundaryTimes / end-date-only behavior, plus three DOM smoke tests against BaseFlatpickr confirming the outputs still slot into the picker's prop contract - Add Cypress support helpers: component.ts (dayjs global, String format shim, console-hooks wiring), console-hooks.js (shared console.warn-throws guard preserving Error stack/message across the cross-realm boundary), vue-select.js (component test helpers) Sponsored-by: Büchereizentrale Schleswig-Holstein <https://www.bz-sh.de/> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
