@oneclick.dev/cms-core-modules 0.0.109 → 0.0.110
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/Acquisition-DNCy8nQz.mjs +400 -0
- package/dist/Acquisition-Dt2rREU8.js +1 -0
- package/dist/AgendaOpeningHoursCard-B7ROIPWw.js +1 -0
- package/dist/AgendaOpeningHoursCard-Cp4wxUeK.mjs +172 -0
- package/dist/AppointmentDetailsCard-33WpATpV.mjs +161 -0
- package/dist/AppointmentDetailsCard-DpLM5IrB.js +1 -0
- package/dist/AppointmentEditor-BeOtYV6u.mjs +196 -0
- package/dist/AppointmentEditor-CaTfbkIf.js +1 -0
- package/dist/AppointmentListTable-DZJNmTMb.mjs +177 -0
- package/dist/AppointmentListTable-Dieu9US_.js +1 -0
- package/dist/Audience-Bs7b0TNm.js +1 -0
- package/dist/Audience-CUeMVYRy.mjs +489 -0
- package/dist/Components-C83O-xlF.mjs +623 -0
- package/dist/Components-DXbx0RLV.js +1 -0
- package/dist/Content-BHr_rPVY.js +1 -0
- package/dist/Content-CYOZKvWK.mjs +358 -0
- package/dist/ContentEditor-BprPiHMJ.js +462 -0
- package/dist/ContentEditor-D9-1SJ5F.mjs +30700 -0
- package/dist/CountryBreakdownCard-D7BK3nRD.js +1 -0
- package/dist/CountryBreakdownCard-DVxNz2DJ.mjs +196 -0
- package/dist/Create-89z41K73.js +1 -0
- package/dist/Create-BCklc_T1.mjs +1251 -0
- package/dist/DateFormatter-CYAD4GBN.js +1 -0
- package/dist/DateFormatter-DUxlo8X8.mjs +734 -0
- package/dist/Detail-BCOcP2ql.mjs +585 -0
- package/dist/Detail-Btzwo0Y3.mjs +3477 -0
- package/dist/Detail-Byk781b4.mjs +26 -0
- package/dist/Detail-C857g62L.js +1 -0
- package/dist/Detail-C8wQiDcv.js +1 -0
- package/dist/Detail-CNlljBfH.mjs +379 -0
- package/dist/Detail-CPqug27l.js +1 -0
- package/dist/Detail-CjuhjPby.js +1 -0
- package/dist/Detail-DnX7tsqN.mjs +649 -0
- package/dist/Detail-mvSGbnFU.js +1 -0
- package/dist/DeviceBreakdownCard-DRhQ9ufG.js +1 -0
- package/dist/DeviceBreakdownCard-W1frLe0L.mjs +159 -0
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs +76 -0
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-kpjbVSXg.js +1 -0
- package/dist/Entries-BdhUyJR5.mjs +728 -0
- package/dist/Entries-CEXM_SkO.js +1 -0
- package/dist/Find-D4Qa45qC.js +1 -0
- package/dist/Find-DIISO5GO.mjs +229 -0
- package/dist/GlobalStyling-C9VthHWK.mjs +1588 -0
- package/dist/GlobalStyling-CnSlXkZc.js +25 -0
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Ceoje52V.js +1 -0
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dh9jzvE0.mjs +1255 -0
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-COrK1j0S.js +1 -0
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-Vb3q8EVv.mjs +330 -0
- package/dist/Overview-BCpJNiEB.mjs +190 -0
- package/dist/Overview-BDlBCUI_.js +1 -0
- package/dist/Overview-BKAti8nc.mjs +567 -0
- package/dist/Overview-BbvfH1u-.js +1 -0
- package/dist/Overview-Bn1Xx3_j.js +1 -0
- package/dist/Overview-C-Jb_BxY.mjs +860 -0
- package/dist/Overview-CIa1E-HH.mjs +178 -0
- package/dist/Overview-DAxCu9XC.js +1 -0
- package/dist/Overview-DC9io1bk.js +1 -0
- package/dist/Overview-Di84CsR5.mjs +476 -0
- package/dist/Overview-Su8ZUbMs.mjs +26 -0
- package/dist/Overview-T-lsy3UZ.js +1 -0
- package/dist/Overview-UoZHUMUz.js +1 -0
- package/dist/Overview-lWAyyenp.mjs +632 -0
- package/dist/PeakHoursCard-9-EZFZLR.mjs +182 -0
- package/dist/PeakHoursCard-BR5zmta4.js +1 -0
- package/dist/ProductDetailsCard-6nHikw4V.mjs +121 -0
- package/dist/ProductDetailsCard-Bn7qrgmc.js +1 -0
- package/dist/RealtimeCard--APfRNc8.js +1 -0
- package/dist/RealtimeCard-fvQlJcM7.mjs +126 -0
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CuwREvXD.js +349 -0
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-GYNZ_yhD.mjs +3077 -0
- package/dist/SearchTermsCard-BsB-63aH.js +1 -0
- package/dist/SearchTermsCard-BzVrHKqQ.mjs +201 -0
- package/dist/SendPush-COns44j7.js +1 -0
- package/dist/SendPush-CPIOjVX4.mjs +184 -0
- package/dist/SeoHealth-MC3lSCOY.mjs +615 -0
- package/dist/SeoHealth-az1YuNF2.js +1 -0
- package/dist/TableView-DQW0A1oG.js +4 -0
- package/dist/TableView-DXHhJ-jm.mjs +6143 -0
- package/dist/TemplateList.vue_vue_type_script_setup_true_lang-B_AtWnHa.js +1 -0
- package/dist/TemplateList.vue_vue_type_script_setup_true_lang-Cmovy7kk.mjs +40 -0
- package/dist/TopPagesCard-BDeA997A.js +1 -0
- package/dist/TopPagesCard-CTozhOr_.mjs +159 -0
- package/dist/TrafficSourcesCard-BxtCKsqx.mjs +197 -0
- package/dist/TrafficSourcesCard-C3ziDTUL.js +1 -0
- package/dist/View-CsudjxCE.mjs +30 -0
- package/dist/View-Dw_wA6kK.js +1 -0
- package/dist/VisitorStatsCard-BmByE_Hi.js +1 -0
- package/dist/VisitorStatsCard-CXizEbVK.mjs +174 -0
- package/dist/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/agenda-DcatSSYQ.mjs +1165 -0
- package/dist/agenda-IOqtALWf.js +1 -0
- package/dist/array-CbATeQbk.js +1 -0
- package/dist/array-DT5pE8Gm.mjs +108 -0
- package/dist/availability-CMrRa5y2.mjs +269 -0
- package/dist/availability-Cf2YfMwM.js +1 -0
- package/dist/booking-data-DgJd0BcM.mjs +889 -0
- package/dist/booking-data-Di5GmH_8.js +1 -0
- package/dist/cms-core-modules.css +1 -2
- package/dist/countries-BTPvmrsb.mjs +4 -0
- package/dist/countries-CgZ081No.js +1 -0
- package/dist/exceptions-CI0B4xVj.js +1 -0
- package/dist/exceptions-YCQkHa6a.mjs +646 -0
- package/dist/google-CvtuJwgk.mjs +4 -0
- package/dist/google-D4N3gb01.js +1 -0
- package/dist/index-4tjmIans.js +1 -0
- package/dist/index-9HVlmvK3.js +1 -0
- package/dist/index-A2kp8Isi.js +75 -0
- package/dist/index-B5aBwdxY.js +54 -0
- package/dist/index-BFLV54kw.mjs +3843 -0
- package/dist/index-BWDwEd8D.mjs +24 -0
- package/dist/index-BfBBm9uY.mjs +24 -0
- package/dist/index-BhWvXMOp.mjs +176 -0
- package/dist/index-BiT55eU0.js +58 -0
- package/dist/index-Bkq58CeQ.mjs +22 -0
- package/dist/index-BzWmWCo5.mjs +1187 -0
- package/dist/index-CJQQBRLY.js +1 -0
- package/dist/index-CQkOH2_3.mjs +24 -0
- package/dist/index-CSxYBeVA.js +1 -0
- package/dist/index-CU-tbS5W.mjs +24 -0
- package/dist/index-CZn2nDLv.mjs +34 -0
- package/dist/index-CkiNvRzs.js +1 -0
- package/dist/index-Co4ON2Di.js +1 -0
- package/dist/index-Cpnn_Pxd.mjs +24 -0
- package/dist/index-CpzDEMeC.mjs +1443 -0
- package/dist/index-CsVeM3PA.mjs +24 -0
- package/dist/index-CwqrAU-H.js +1 -0
- package/dist/index-CxETuRsG.js +1 -0
- package/dist/index-Cz-baGax.js +1 -0
- package/dist/index-D30apIn-.mjs +110 -0
- package/dist/index-DFQGVHTs.js +1 -0
- package/dist/index-DPd3waTN.js +1 -0
- package/dist/index-DRqJOqUR.mjs +3484 -0
- package/dist/index-DjWuIBxh.js +1 -0
- package/dist/index-Dnn2SCSl.js +1 -0
- package/dist/index-Dpl9sU6a.mjs +12 -0
- package/dist/index-DrXxXB2F.mjs +138 -0
- package/dist/index-G7cIlnGN.js +158 -0
- package/dist/index-R2oUDsjx.js +1 -0
- package/dist/index-RLz1QPrf.mjs +203 -0
- package/dist/index-UtjLbLw-.js +1 -0
- package/dist/index-V78huaSJ.mjs +442 -0
- package/dist/index-cOnxXTbF.mjs +24 -0
- package/dist/index-hlylYYgy.mjs +24 -0
- package/dist/index-ijdf0d9-.js +1 -0
- package/dist/index-vHmvbEwa.js +35 -0
- package/dist/index-wjkEPsNx.mjs +2940 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +806 -1095
- package/dist/interpolation-CHn59tIC.js +1 -0
- package/dist/interpolation-w7IRDJwK.mjs +180 -0
- package/dist/orders-C65SlpJy.mjs +618 -0
- package/dist/orders-XVzWAgG1.js +1 -0
- package/dist/payment-C3ohkehF.mjs +1080 -0
- package/dist/payment-Dfr-Ro-a.js +1 -0
- package/dist/regular-1LXNPviB.js +1 -0
- package/dist/regular-_05oq5Tx.mjs +1101 -0
- package/dist/resources-CYOb5Bl6.mjs +811 -0
- package/dist/resources-CxeFd57z.js +1 -0
- package/dist/server-handlers.cjs.js +1 -1
- package/dist/server-handlers.mjs +996 -1049
- package/dist/src/appointments/chat-components/AgendaOpeningHoursCard.vue.d.ts +15 -0
- package/dist/src/appointments/chat-components/AppointmentDetailsCard.vue.d.ts +14 -0
- package/dist/src/appointments/chat-components/AppointmentEditor.vue.d.ts +14 -0
- package/dist/src/appointments/chat-components/AppointmentListTable.vue.d.ts +14 -0
- package/dist/src/appointments/components/create/StepNavigation.vue.d.ts +32 -0
- package/dist/src/appointments/components/create/regular/Step1.vue.d.ts +2 -0
- package/dist/src/appointments/components/create/regular/Step2.vue.d.ts +2 -0
- package/dist/src/appointments/components/create/regular/Step3.vue.d.ts +2 -0
- package/dist/src/appointments/components/create/regular/Step4.vue.d.ts +2 -0
- package/dist/src/appointments/components/edit/CustomerInformationFieldEditorDialog.vue.d.ts +24 -0
- package/dist/src/appointments/components/edit/EditLayout.vue.d.ts +17 -0
- package/dist/src/appointments/components/edit/Event24hSidebar.vue.d.ts +2 -0
- package/dist/src/appointments/components/edit/EventDialog/ApproveReservationDialog.vue.d.ts +8 -0
- package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +136 -0
- package/dist/src/appointments/components/edit/EventDialog/CancelReservationDialog.vue.d.ts +8 -0
- package/dist/src/appointments/components/edit/EventDialog/EventDialog.vue.d.ts +11 -0
- package/dist/src/appointments/components/edit/EventDialog/OrderDetailDialog.vue.d.ts +55 -0
- package/dist/src/appointments/components/edit/EventDialog/RejectReservationDialog.vue.d.ts +8 -0
- package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +87 -0
- package/dist/src/appointments/components/edit/EventDialog/TimelineChart.vue.d.ts +24 -0
- package/dist/src/appointments/components/edit/EventDialog/TransferReservationDialog.vue.d.ts +4 -0
- package/dist/src/appointments/components/edit/EventTimeIndicator.vue.d.ts +12 -0
- package/dist/src/appointments/components/edit/EventTimeline.vue.d.ts +48 -0
- package/dist/src/appointments/components/edit/EventView.vue.d.ts +9 -0
- package/dist/src/appointments/components/edit/ExceptionDialog.vue.d.ts +29 -0
- package/dist/src/appointments/components/edit/MetadataSchemaEditorDialog.vue.d.ts +12 -0
- package/dist/src/appointments/components/edit/NewReservationDialog/CustomerInformation.vue.d.ts +10 -0
- package/dist/src/appointments/components/edit/NewReservationDialog/NewReservationDialog.vue.d.ts +26 -0
- package/dist/src/appointments/components/edit/NewReservationDialog/QuickReservationAdder.vue.d.ts +26 -0
- package/dist/src/appointments/components/edit/NewReservationDialog/ReservationLines.vue.d.ts +31 -0
- package/dist/src/appointments/components/edit/OrderMetadataDisplay.vue.d.ts +21 -0
- package/dist/src/appointments/components/edit/PaymentAddons/Addon.vue.d.ts +22 -0
- package/dist/src/appointments/components/edit/PaymentAddons/AddonList.vue.d.ts +5 -0
- package/dist/src/appointments/components/edit/PaymentAddons/index.vue.d.ts +15 -0
- package/dist/src/appointments/components/edit/ResourceEditorDialog.vue.d.ts +13 -0
- package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +36 -0
- package/dist/src/appointments/components/edit/dashboard/timeline/ResourceSelector.vue.d.ts +50 -0
- package/dist/src/appointments/index.d.ts +12 -9
- package/dist/src/appointments/index.vue.d.ts +22 -0
- package/dist/src/appointments/metadata.d.ts +1 -1
- package/dist/src/appointments/pages/Overview.vue.d.ts +4 -0
- package/dist/src/appointments/pages/create/index.vue.d.ts +2 -0
- package/dist/src/appointments/pages/create/regular.vue.d.ts +6 -0
- package/dist/src/appointments/pages/edit/agenda.vue.d.ts +4 -0
- package/dist/src/appointments/pages/edit/availability.vue.d.ts +2 -0
- package/dist/src/appointments/pages/edit/booking-data.vue.d.ts +65 -0
- package/dist/src/appointments/pages/edit/index.vue.d.ts +2 -0
- package/dist/src/appointments/pages/edit/payment.vue.d.ts +2 -0
- package/dist/src/appointments/pages/edit/resources.vue.d.ts +28 -0
- package/dist/src/appointments/routes.d.ts +6 -3
- package/dist/src/contentManager/components/components/ComponentDialog.vue.d.ts +12 -0
- package/dist/src/contentManager/components/components/ComponentGridItem.vue.d.ts +16 -0
- package/dist/src/contentManager/components/content-editor/ApiDocs.vue.d.ts +2 -0
- package/dist/src/contentManager/components/content-editor/ContentLayout.vue.d.ts +49 -0
- package/dist/src/contentManager/components/content-editor/ContentSettings.vue.d.ts +24 -0
- package/dist/src/contentManager/components/content-editor/ContentStructuredContentSections.vue.d.ts +4 -0
- package/dist/src/contentManager/components/content-editor/Header.vue.d.ts +64 -0
- package/dist/src/contentManager/components/content-editor/LivePreviewWrapper.vue.d.ts +53 -0
- package/dist/src/contentManager/components/content-editor/Locales.vue.d.ts +44 -0
- package/dist/src/contentManager/components/content-editor/NewSectionDialog.vue.d.ts +21 -0
- package/dist/src/contentManager/components/content-editor/PageSettings.vue.d.ts +2 -0
- package/dist/src/contentManager/components/content-editor/SEO.vue.d.ts +14 -0
- package/dist/src/contentManager/components/content-editor/SidebarSectionWrapper.vue.d.ts +39 -0
- package/dist/src/contentManager/components/content-editor/Status.vue.d.ts +2 -0
- package/dist/src/contentManager/components/content-editor/Versions.vue.d.ts +63 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Button.vue.d.ts +94 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Card.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Column.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Container.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Divider.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/EmptySpace.vue.d.ts +94 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Heading.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Image.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/LockBlocks.d.ts +0 -15
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Map.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Paragraph.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Row.vue.d.ts +115 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Stack.vue.d.ts +115 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/TrailingNodeInContainers.d.ts +1 -4
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Video.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/extension-details/DetailsNodeView.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/NodeLabel.vue.d.ts +108 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/ResizeHandlers.vue.d.ts +20 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/TopMarginDragger.vue.d.ts +104 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuClassBuilder.vue.d.ts +19 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuLinkBuilder.vue.d.ts +19 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuToggleButton.vue.d.ts +29 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/DefaultBubbleMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/ElementEditorMenu.vue.d.ts +19 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/EmojiMenu.vue.d.ts +8 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/NewNodeView.vue.d.ts +47 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenu.vue.d.ts +6 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenuButton.vue.d.ts +17 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ButtonMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/CardMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ColumnMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/DividerMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/EmptySpaceMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/HeadingMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ImageMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/MapMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/RowMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/StackMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/TextMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/VideoMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +132 -12
- package/dist/src/contentManager/components/overview/CollectionDialog.vue.d.ts +30 -0
- package/dist/src/contentManager/components/overview/CollectionsGridView.vue.d.ts +18 -0
- package/dist/src/contentManager/components/overview/ContentEntryContextMenu.vue.d.ts +27 -0
- package/dist/src/contentManager/components/overview/FilterPopover.vue.d.ts +2 -0
- package/dist/src/contentManager/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/contentManager/components/styling/ButtonStyleDialog.vue.d.ts +24 -0
- package/dist/src/contentManager/components/styling/CardStyleDialog.vue.d.ts +24 -0
- package/dist/src/contentManager/components/styling/SectionStyleDialog.vue.d.ts +24 -0
- package/dist/src/contentManager/index.d.ts +14 -5
- package/dist/src/contentManager/index.vue.d.ts +22 -0
- package/dist/src/contentManager/metadata.d.ts +1 -1
- package/dist/src/contentManager/pages/Components.vue.d.ts +27 -0
- package/dist/src/contentManager/pages/ContentEditor.vue.d.ts +14 -0
- package/dist/src/contentManager/pages/Entries.vue.d.ts +16 -0
- package/dist/src/contentManager/pages/GlobalStyling.vue.d.ts +117 -0
- package/dist/src/contentManager/pages/Overview.vue.d.ts +57 -0
- package/dist/src/contentManager/routes.d.ts +12 -3
- package/dist/src/custom/index.d.ts +2 -2
- package/dist/src/custom/index.vue.d.ts +2 -0
- package/dist/src/custom/pages/View.vue.d.ts +2 -0
- package/dist/src/custom/routes.d.ts +1 -1
- package/dist/src/googleAnalytics/chat-components/CountryBreakdownCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/DeviceBreakdownCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/PeakHoursCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/RealtimeCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/SearchTermsCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/TopPagesCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/TrafficSourcesCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/VisitorStatsCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoClicksChart.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoImpressionsChart.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoKeywordsTab.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoKpiCards.vue.d.ts +10 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoMappingTab.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoPagesTab.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoRankingDistribution.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/index.d.ts +10 -10
- package/dist/src/googleAnalytics/index.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Acquisition.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Audience.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Content.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Overview.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/SeoHealth.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/routes.d.ts +1 -1
- package/dist/src/mailTemplates/components/TemplateList.vue.d.ts +2 -0
- package/dist/src/mailTemplates/index.d.ts +3 -3
- package/dist/src/mailTemplates/index.vue.d.ts +22 -0
- package/dist/src/mailTemplates/metadata.d.ts +1 -1
- package/dist/src/mailTemplates/pages/Detail.vue.d.ts +14 -0
- package/dist/src/mailTemplates/pages/Overview.vue.d.ts +14 -0
- package/dist/src/mailTemplates/routes.d.ts +1 -1
- package/dist/src/productCollections/components/detail/Main.vue.d.ts +2 -0
- package/dist/src/productCollections/components/detail/SEO.vue.d.ts +2 -0
- package/dist/src/productCollections/components/detail/Status.vue.d.ts +2 -0
- package/dist/src/productCollections/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/productCollections/index.d.ts +3 -3
- package/dist/src/productCollections/index.vue.d.ts +22 -0
- package/dist/src/productCollections/metadata.d.ts +1 -1
- package/dist/src/productCollections/pages/Detail.vue.d.ts +14 -0
- package/dist/src/productCollections/pages/Overview.vue.d.ts +16 -0
- package/dist/src/productCollections/routes.d.ts +1 -1
- package/dist/src/products/chat-components/ProductDetailsCard.vue.d.ts +14 -0
- package/dist/src/products/components/detail/Collections.vue.d.ts +14 -0
- package/dist/src/products/components/detail/Inventory.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Main.vue.d.ts +2 -0
- package/dist/src/products/components/detail/NewSection.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Price.vue.d.ts +2 -0
- package/dist/src/products/components/detail/SEO.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Shipping.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Status.vue.d.ts +2 -0
- package/dist/src/products/components/detail/price/UnitPriceDialog.vue.d.ts +17 -0
- package/dist/src/products/components/detail/variants/Option.vue.d.ts +33 -0
- package/dist/src/products/components/detail/variants/VariantList.vue.d.ts +38 -0
- package/dist/src/products/components/overview/FilterPopover.vue.d.ts +2 -0
- package/dist/src/products/components/overview/GridView.vue.d.ts +12 -0
- package/dist/src/products/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/products/components/overview/ProductContextMenu.vue.d.ts +27 -0
- package/dist/src/products/index.d.ts +4 -4
- package/dist/src/products/index.vue.d.ts +22 -0
- package/dist/src/products/metadata.d.ts +1 -1
- package/dist/src/products/pages/Detail.vue.d.ts +14 -0
- package/dist/src/products/pages/Overview.vue.d.ts +16 -0
- package/dist/src/products/routes.d.ts +1 -1
- package/dist/src/promoCodes/components/create/DateRange.vue.d.ts +2 -0
- package/dist/src/promoCodes/components/create/MultiCodes.vue.d.ts +2 -0
- package/dist/src/promoCodes/components/create/Note.vue.d.ts +2 -0
- package/dist/src/promoCodes/components/create/SingleCode.vue.d.ts +2 -0
- package/dist/src/promoCodes/components/create/TypeAndValue/TypeDetailDialog.vue.d.ts +6 -0
- package/dist/src/promoCodes/components/create/TypeAndValue/TypeManageDialog.vue.d.ts +18 -0
- package/dist/src/promoCodes/components/create/TypeAndValue/index.vue.d.ts +2 -0
- package/dist/src/promoCodes/index.d.ts +3 -3
- package/dist/src/promoCodes/index.vue.d.ts +22 -0
- package/dist/src/promoCodes/metadata.d.ts +1 -1
- package/dist/src/promoCodes/pages/Create.vue.d.ts +16 -0
- package/dist/src/promoCodes/pages/Detail.vue.d.ts +14 -0
- package/dist/src/promoCodes/pages/Find.vue.d.ts +16 -0
- package/dist/src/promoCodes/routes.d.ts +1 -1
- package/dist/src/push-notifications/components/PreviewAndroid.vue.d.ts +28 -0
- package/dist/src/push-notifications/components/PreviewIPhone.vue.d.ts +28 -0
- package/dist/src/push-notifications/components/PushPreview.vue.d.ts +28 -0
- package/dist/src/push-notifications/index.d.ts +3 -3
- package/dist/src/push-notifications/index.vue.d.ts +22 -0
- package/dist/src/push-notifications/metadata.d.ts +1 -1
- package/dist/src/push-notifications/pages/SendPush.vue.d.ts +14 -0
- package/dist/src/push-notifications/routes.d.ts +1 -1
- package/dist/src/shared/BrandLogo.vue.d.ts +12 -0
- package/dist/src/shared/DrawerToggle.vue.d.ts +60 -0
- package/dist/src/shared/VerticalToggle.vue.d.ts +60 -0
- package/dist/src/shippingOptions/components/detail/Condition.vue.d.ts +2 -0
- package/dist/src/shippingOptions/components/detail/Countries.vue.d.ts +2 -0
- package/dist/src/shippingOptions/components/detail/Example.vue.d.ts +2 -0
- package/dist/src/shippingOptions/components/detail/Main.vue.d.ts +2 -0
- package/dist/src/shippingOptions/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/shippingOptions/index.d.ts +3 -3
- package/dist/src/shippingOptions/index.vue.d.ts +22 -0
- package/dist/src/shippingOptions/metadata.d.ts +1 -1
- package/dist/src/shippingOptions/pages/Detail.vue.d.ts +14 -0
- package/dist/src/shippingOptions/pages/Overview.vue.d.ts +16 -0
- package/dist/src/shippingOptions/routes.d.ts +1 -1
- package/dist/src/table/components/DataTable.vue.d.ts +18 -0
- package/dist/src/table/components/DataTableAction.vue.d.ts +14 -0
- package/dist/src/table/components/DataTableMobileRowActionDrawer.vue.d.ts +4 -0
- package/dist/src/table/components/DataTablePagination.vue.d.ts +6 -0
- package/dist/src/table/components/actions/ActionDialog.vue.d.ts +19 -0
- package/dist/src/table/components/actions/CtaActionDialog.vue.d.ts +4 -0
- package/dist/src/table/components/columns/ColumnDropdown.vue.d.ts +2 -0
- package/dist/src/table/components/columns/ColumnEditorDialog.vue.d.ts +34 -0
- package/dist/src/table/components/columns/DialogTableColumnItem.vue.d.ts +12 -0
- package/dist/src/table/components/date-range-filter/DateRangeFilter.vue.d.ts +2 -0
- package/dist/src/table/components/date-range-filter/DateRangeSettingsDialog.vue.d.ts +27 -0
- package/dist/src/table/components/filters/FilterDialog.vue.d.ts +12 -0
- package/dist/src/table/components/filters/Filters.vue.d.ts +27 -0
- package/dist/src/table/components/search/Search.vue.d.ts +2 -0
- package/dist/src/table/components/sort/SortMode.vue.d.ts +2 -0
- package/dist/src/table/components/sort/SortModeSettingsDialog.vue.d.ts +18 -0
- package/dist/src/table/components/stats/StatDialog.vue.d.ts +12 -0
- package/dist/src/table/components/stats/Stats.vue.d.ts +27 -0
- package/dist/src/table/flow-builder-extensions/TableRowEditor.vue.d.ts +16 -0
- package/dist/src/table/flow-builder-extensions/row-item.d.ts +17 -3
- package/dist/src/table/index.d.ts +2 -2
- package/dist/src/table/index.vue.d.ts +22 -0
- package/dist/src/table/pages/TableView.vue.d.ts +54 -0
- package/dist/src/table/routes.d.ts +1 -1
- package/dist/src/types/index.d.ts +0 -6
- package/dist/utils-CanmrIWO.mjs +47 -0
- package/dist/utils-Yd6F5mea.js +3 -0
- package/dist/vee-validate-zod-ByykgYKJ.js +1 -0
- package/dist/vee-validate-zod-DNjTLCgh.mjs +4402 -0
- package/package.json +56 -55
- package/dist/Acquisition-DypEyPSO.js +0 -1
- package/dist/Acquisition-TCNX-th6.mjs +0 -308
- package/dist/AgendaOpeningHoursCard-BIhm0vpV.js +0 -1
- package/dist/AgendaOpeningHoursCard-BKUdJxRI.mjs +0 -133
- package/dist/AppointmentDetailsCard-C5rQ5jsW.js +0 -1
- package/dist/AppointmentDetailsCard-NRHeNP2L.mjs +0 -111
- package/dist/AppointmentEditor-BcF8CiD-.mjs +0 -150
- package/dist/AppointmentEditor-BlhFtoCm.js +0 -1
- package/dist/AppointmentListTable-B-ReBVtV.js +0 -1
- package/dist/AppointmentListTable-DHmy-iid.mjs +0 -129
- package/dist/Audience-CfWHjjg8.mjs +0 -394
- package/dist/Audience-Cj4TyauW.js +0 -1
- package/dist/Components-BehelN4r.js +0 -1
- package/dist/Components-CR6zukUU.mjs +0 -468
- package/dist/Content-C5Iye3t0.mjs +0 -257
- package/dist/Content-eOfBx52Y.js +0 -1
- package/dist/ContentEditor-BgL4qEeg.mjs +0 -26835
- package/dist/ContentEditor-Tlu3w0Hu.js +0 -462
- package/dist/CountryBreakdownCard-CWVyB8be.mjs +0 -151
- package/dist/CountryBreakdownCard-Db-pMiNe.js +0 -1
- package/dist/Create-B1it8S4m.js +0 -1
- package/dist/Create-DbYi0FAI.mjs +0 -907
- package/dist/DateFormatter-DLrDYkby.mjs +0 -630
- package/dist/DateFormatter-Dni0Oq8r.js +0 -1
- package/dist/Detail-D-eahJGO.mjs +0 -21
- package/dist/Detail-D0kdPPIm.mjs +0 -2757
- package/dist/Detail-DAafePYi.mjs +0 -485
- package/dist/Detail-DYpv4fYg.js +0 -1
- package/dist/Detail-Dc_ui4LM.js +0 -1
- package/dist/Detail-DccUekl_.js +0 -1
- package/dist/Detail-Dhz0V0Vf.js +0 -1
- package/dist/Detail-DjnGY0F8.mjs +0 -282
- package/dist/Detail-DplAitHg.mjs +0 -447
- package/dist/Detail-SugyeSxb.js +0 -1
- package/dist/DeviceBreakdownCard-CzxZT6To.js +0 -1
- package/dist/DeviceBreakdownCard-eEwPjzKl.mjs +0 -115
- package/dist/EditLayout-Bnz9q_jd.js +0 -1
- package/dist/EditLayout-J_DGXb8v.mjs +0 -99
- package/dist/Entries-CgpWg6fE.js +0 -1
- package/dist/Entries-CkGTXcAq.mjs +0 -575
- package/dist/Find-Bz0TNJzk.mjs +0 -164
- package/dist/Find-D-ItTXaZ.js +0 -1
- package/dist/GlobalStyling-CSQPF7o_.mjs +0 -1162
- package/dist/GlobalStyling-DabldMZh.js +0 -15
- package/dist/NewReservationDialog-BhIiY2B9.js +0 -1
- package/dist/NewReservationDialog-CN49aGcM.mjs +0 -1002
- package/dist/OrderDetailDialog-BJ01DZFe.js +0 -1
- package/dist/OrderDetailDialog-CoVQ_rzs.mjs +0 -215
- package/dist/Overview-9FMgn5hT.mjs +0 -492
- package/dist/Overview-BOOwMQ-c.mjs +0 -636
- package/dist/Overview-Biz3h60w.js +0 -1
- package/dist/Overview-C2K2ofdS.js +0 -1
- package/dist/Overview-CFHOXP9N.mjs +0 -123
- package/dist/Overview-CTJe7J5_.js +0 -1
- package/dist/Overview-Cvj2i9eW.js +0 -1
- package/dist/Overview-D2I1F8Dm.mjs +0 -21
- package/dist/Overview-DFOc9emt.mjs +0 -345
- package/dist/Overview-Dmhfb94Y.js +0 -1
- package/dist/Overview-PPzv7weG.mjs +0 -450
- package/dist/Overview-qFKcXHVF.js +0 -1
- package/dist/Overview-xkmYYTae.mjs +0 -133
- package/dist/Overview-yPsLvR2c.js +0 -1
- package/dist/PeakHoursCard-CtgEP-ez.mjs +0 -157
- package/dist/PeakHoursCard-DPeoMyhu.js +0 -1
- package/dist/ProductDetailsCard-B0WhmzO-.mjs +0 -98
- package/dist/ProductDetailsCard-C1ROuH6l.js +0 -1
- package/dist/RealtimeCard-DQno-Okz.js +0 -1
- package/dist/RealtimeCard-dR-g1iDo.mjs +0 -92
- package/dist/ReservationDetailDialog-Cdo6h0RD.mjs +0 -2163
- package/dist/ReservationDetailDialog-DZTFD2xI.js +0 -349
- package/dist/SearchTermsCard-BXJSXz_k.js +0 -1
- package/dist/SearchTermsCard-DsaxLKwP.mjs +0 -146
- package/dist/SendPush-Bssi-OZD.mjs +0 -150
- package/dist/SendPush-BuaYboRH.js +0 -1
- package/dist/SeoHealth-CP-kL0us.js +0 -1
- package/dist/SeoHealth-Cxp_Gb3Y.mjs +0 -459
- package/dist/TableView-7iwBkQ_k.mjs +0 -4757
- package/dist/TableView-BB_oIYYZ.js +0 -4
- package/dist/TemplateList-CNcM_Kgq.mjs +0 -56
- package/dist/TemplateList-VuPcBUJO.js +0 -1
- package/dist/TopPagesCard-CvDECn3_.mjs +0 -117
- package/dist/TopPagesCard-DNdATXJE.js +0 -1
- package/dist/TrafficSourcesCard-BLpBr7u0.mjs +0 -151
- package/dist/TrafficSourcesCard-_3gRUCw3.js +0 -1
- package/dist/View-DSnUHI7h.mjs +0 -30
- package/dist/View-Dbcfpdqh.js +0 -1
- package/dist/VisitorStatsCard-CFEnXSjF.mjs +0 -185
- package/dist/VisitorStatsCard-C_jhQxDW.js +0 -1
- package/dist/_plugin-vue_export-helper-5u7tqpWC.js +0 -1
- package/dist/_plugin-vue_export-helper-BJQSo0im.mjs +0 -8
- package/dist/agenda-CzMRcQTA.mjs +0 -989
- package/dist/agenda-D4zWRYSQ.js +0 -1
- package/dist/appointments-9syR5TZE.js +0 -1
- package/dist/appointments-BBmOJMhM.mjs +0 -23
- package/dist/array-BH1uH7XT.js +0 -1
- package/dist/array-DnDL9cFz.mjs +0 -98
- package/dist/availability-CAXB7Yd6.js +0 -1
- package/dist/availability-Dp7eF-ZK.mjs +0 -215
- package/dist/booking-data-Bysf6e5x.mjs +0 -724
- package/dist/booking-data-C6SGjC2X.js +0 -1
- package/dist/chunk-DQi1bQcV.js +0 -1
- package/dist/contentManager-D7JxXCwE.js +0 -1
- package/dist/contentManager-tfy0x1LD.mjs +0 -22
- package/dist/context-AQKfnJ4t.mjs +0 -3809
- package/dist/context-ubyMq9Xe.js +0 -54
- package/dist/core-Dhgr4ctC.mjs +0 -202
- package/dist/core-_HKfBlaZ.js +0 -1
- package/dist/countries-MXLT3mVe.mjs +0 -4
- package/dist/countries-OCd5qPxG.js +0 -1
- package/dist/create-BfNc2C7N.js +0 -1
- package/dist/create-C7JlIlIh.mjs +0 -95
- package/dist/custom-BwN9-6Mb.js +0 -1
- package/dist/custom-INNwaWla.mjs +0 -13
- package/dist/dist-BCVg7FKM.js +0 -1
- package/dist/dist-DIhK9VWh.mjs +0 -3045
- package/dist/edit-BiI2VG60.js +0 -35
- package/dist/edit-DD3iFBEh.mjs +0 -1097
- package/dist/exceptions-DICMaDcH.mjs +0 -462
- package/dist/exceptions-DpWqMNuG.js +0 -1
- package/dist/google-Bcc4XZnV.mjs +0 -4
- package/dist/google-DTSRmJ51.js +0 -1
- package/dist/googleAnalytics-BSaqRR_L.js +0 -1
- package/dist/googleAnalytics-Cg-iWblZ.mjs +0 -47
- package/dist/interpolation-B8OzkMyi.mjs +0 -131
- package/dist/interpolation-DpAqtGOW.js +0 -1
- package/dist/lib-4wSi00Vr.js +0 -1
- package/dist/lib-BZgXUui5.mjs +0 -198
- package/dist/line-DJdnFNI7.js +0 -75
- package/dist/line-tYLnEDGV.mjs +0 -1500
- package/dist/mailTemplates-BNk8fhVS.mjs +0 -23
- package/dist/mailTemplates-DswHzyQe.js +0 -1
- package/dist/orders-CIc0JlKX.mjs +0 -512
- package/dist/orders-DwPSi_pD.js +0 -1
- package/dist/payment-BsNWFaDm.js +0 -1
- package/dist/payment-Ced5_dpa.mjs +0 -718
- package/dist/productCollections-Cuvw_8zC.js +0 -1
- package/dist/productCollections-D0AxRlzr.mjs +0 -23
- package/dist/products-DUD-ZMkR.mjs +0 -22
- package/dist/products-DvX9B-Ul.js +0 -1
- package/dist/promoCodes-BCWqN6w4.mjs +0 -23
- package/dist/promoCodes-CEZ4LYot.js +0 -1
- package/dist/push-notifications-BGp4XWo9.js +0 -1
- package/dist/push-notifications-C7W7KuzR.mjs +0 -23
- package/dist/regular-BCFrS6lK.mjs +0 -908
- package/dist/regular-DBqPgT8C.js +0 -1
- package/dist/resources-DwsMmWgm.mjs +0 -669
- package/dist/resources-Dz81GkHe.js +0 -1
- package/dist/shippingOptions-C3NEJff1.mjs +0 -23
- package/dist/shippingOptions-Cy040ZW1.js +0 -1
- package/dist/single-container-BJmmqq65.mjs +0 -468
- package/dist/single-container-Xoo0Xzxv.js +0 -58
- package/dist/src/vue-shim.d.ts +0 -7
- package/dist/table-DWw0fs3S.js +0 -1
- package/dist/table-LXt5DQOL.mjs +0 -23
- package/dist/utils-CVIHqQsU.js +0 -3
- package/dist/utils-h3owcMtS.mjs +0 -37
- package/dist/vee-validate-zod-BmXMJo8W.js +0 -1
- package/dist/vee-validate-zod-D9dZzbWZ.mjs +0 -4985
- package/dist/xy-container-CuQSwrtB.mjs +0 -3180
- package/dist/xy-container-_6YpscZh.js +0 -158
package/dist/edit-DD3iFBEh.mjs
DELETED
|
@@ -1,1097 +0,0 @@
|
|
|
1
|
-
import { G as e, J as t, L as n, N as r, R as i, S as a, V as o, Z as s, _ as c, ct as l, lt as u, nt as d, o as f, q as p, r as m, s as h, st as g, tt as _, z as v } from "./context-AQKfnJ4t.mjs";
|
|
2
|
-
import { a as y, c as b, i as x, l as S, n as ee, o as C, r as w, s as T, t as E, u as te } from "./xy-container-CuQSwrtB.mjs";
|
|
3
|
-
import { t as ne } from "./EditLayout-J_DGXb8v.mjs";
|
|
4
|
-
import { n as D, r as O, t as k } from "./ReservationDetailDialog-Cdo6h0RD.mjs";
|
|
5
|
-
import { t as re } from "./_plugin-vue_export-helper-BJQSo0im.mjs";
|
|
6
|
-
import { t as ie } from "./NewReservationDialog-CN49aGcM.mjs";
|
|
7
|
-
import { n as ae } from "./core-Dhgr4ctC.mjs";
|
|
8
|
-
import { t as A } from "./OrderDetailDialog-CoVQ_rzs.mjs";
|
|
9
|
-
import { useFirebaseIntegration as oe, useModule as j, useModulePermissions as se, useModuleRoute as M } from "@oneclick.dev/cms-kit";
|
|
10
|
-
import { Fragment as N, computed as P, createBlock as F, createCommentVNode as I, createElementBlock as L, createElementVNode as R, createTextVNode as z, createVNode as B, defineComponent as V, inject as ce, isRef as H, nextTick as le, normalizeClass as U, normalizeStyle as W, onMounted as ue, onUnmounted as de, openBlock as G, provide as fe, ref as K, renderList as q, resolveComponent as J, toDisplayString as Y, unref as X, vModelText as pe, watch as Z, withCtx as Q, withDirectives as me, withModifiers as he } from "vue";
|
|
11
|
-
import { CalendarIcon as ge, ChevronDown as _e, ChevronLeft as ve, ChevronRight as ye, Clock as be, Layers as xe, RefreshCw as Se, Search as Ce, Users as we, X as Te } from "@lucide/vue";
|
|
12
|
-
import { ChartTooltipContent as Ee, componentToString as De } from "@oneclick.dev/cms-kit/charts";
|
|
13
|
-
//#region ../node_modules/.pnpm/@unovis+ts@1.6.5/node_modules/@unovis/ts/utils/path.js
|
|
14
|
-
function Oe({ x: e, y: t, w: n, h: r, tl: i = !1, tr: a = !1, bl: o = !1, br: s = !1, r: c = 0 }) {
|
|
15
|
-
let l;
|
|
16
|
-
l = `M${e + c},${t}h${n - 2 * c}`;
|
|
17
|
-
let u = a ? c : 0, d = a ? 0 : c;
|
|
18
|
-
return l += `a${u},${u} 0 0 1 ${u},${u}`, l += `h${d}v${d}`, l += `v${r - 2 * c}`, u = s ? c : 0, d = s ? 0 : c, l += `a${u},${u} 0 0 1 ${-u},${u}`, l += `v${d}h${-d}`, l += `h${2 * c - n}`, u = o ? c : 0, d = o ? 0 : c, l += `a${u},${u} 0 0 1 ${-u},${-u}`, l += `h${-d}v${-d}`, l += `v${2 * c - r}`, u = i ? c : 0, d = i ? 0 : c, l += `a${u},${u} 0 0 1 ${u},${-u}`, l += `v${-d}h${d}`, l += "z", l;
|
|
19
|
-
}
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region ../node_modules/.pnpm/@unovis+ts@1.6.5/node_modules/@unovis/ts/components/grouped-bar/config.js
|
|
22
|
-
var ke = Object.assign(Object.assign({}, T), {
|
|
23
|
-
color: void 0,
|
|
24
|
-
groupMaxWidth: void 0,
|
|
25
|
-
groupWidth: void 0,
|
|
26
|
-
dataStep: void 0,
|
|
27
|
-
groupPadding: .05,
|
|
28
|
-
barPadding: 0,
|
|
29
|
-
roundedCorners: 2,
|
|
30
|
-
barMinHeight: 2,
|
|
31
|
-
cursor: null,
|
|
32
|
-
orientation: y.Vertical
|
|
33
|
-
}), Ae = /* @__PURE__ */ u({
|
|
34
|
-
bar: () => $,
|
|
35
|
-
barGroup: () => Ne,
|
|
36
|
-
barGroupExit: () => Pe,
|
|
37
|
-
globalStyles: () => Me,
|
|
38
|
-
root: () => je
|
|
39
|
-
}), je = g`
|
|
40
|
-
label: grouped-bar-component;
|
|
41
|
-
`, Me = l`
|
|
42
|
-
:root {
|
|
43
|
-
--vis-grouped-bar-cursor: default;
|
|
44
|
-
--vis-grouped-bar-fill-color: var(--vis-color-main);
|
|
45
|
-
--vis-grouped-bar-stroke-color: none;
|
|
46
|
-
--vis-grouped-bar-stroke-width: 0px;
|
|
47
|
-
--vis-grouped-bar-hover-stroke-width: 1px;
|
|
48
|
-
--vis-grouped-bar-hover-stroke-color: none;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/* Dark Theme */
|
|
52
|
-
--vis-dark-grouped-bar-stroke-color: none;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
body.theme-dark ${`.${je}`} {
|
|
56
|
-
--vis-grouped-bar-stroke-color: var(--vis-dark-grouped-bar-stroke-color);
|
|
57
|
-
}
|
|
58
|
-
`, $ = g`
|
|
59
|
-
label: bar;
|
|
60
|
-
fill: var(--vis-grouped-bar-fill-color);
|
|
61
|
-
stroke: var(--vis-grouped-bar-stroke-color);
|
|
62
|
-
stroke-width: var(--vis-grouped-bar-stroke-width);
|
|
63
|
-
cursor: var(--vis-grouped-bar-cursor);
|
|
64
|
-
|
|
65
|
-
&:hover {
|
|
66
|
-
stroke-width: var(--vis-grouped-bar-hover-stroke-width);
|
|
67
|
-
stroke: var(--vis-grouped-bar-hover-stroke-color);
|
|
68
|
-
}
|
|
69
|
-
`, Ne = g`
|
|
70
|
-
label: barGroup;
|
|
71
|
-
`, Pe = g`
|
|
72
|
-
label: barGroupExit;
|
|
73
|
-
`, Fe = class extends C {
|
|
74
|
-
constructor(e) {
|
|
75
|
-
super(), this._defaultConfig = ke, this.config = this._defaultConfig, this.getAccessors = () => p(this.config.y) ? this.config.y : [this.config.y], this.events = {}, this._barData = [], e && this.setConfig(e);
|
|
76
|
-
}
|
|
77
|
-
get bleed() {
|
|
78
|
-
if (this._barData = this._getVisibleData(), this._barData.length === 0) return {
|
|
79
|
-
top: 0,
|
|
80
|
-
bottom: 0,
|
|
81
|
-
left: 0,
|
|
82
|
-
right: 0
|
|
83
|
-
};
|
|
84
|
-
let e = !this.isVertical() && this.dataScale.range()[0] > this.dataScale.range()[1], t = this.dataScale.domain(), n = this._getGroupWidth() / 2, r = this._barData.map((e, t) => o(e, this.config.x, t)), i = _(r), a = d(r), s = this.dataScale(i), c = this.dataScale(a), l = this.dataScale.invert(s + (e ? n : -n)), u = this.dataScale.invert(c + (e ? -n : n)), f = l <= t[0] ? this.dataScale(t[0]) - this.dataScale(l) : 0, p = u > t[1] ? this.dataScale(u) - this.dataScale(t[1]) : 0;
|
|
85
|
-
return {
|
|
86
|
-
top: this.isVertical() ? 0 : e ? -p : f,
|
|
87
|
-
bottom: this.isVertical() ? 0 : e ? -f : p,
|
|
88
|
-
left: this.isVertical() ? f : 0,
|
|
89
|
-
right: this.isVertical() ? p : 0
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
get dataScale() {
|
|
93
|
-
return this.isVertical() ? this.xScale : this.yScale;
|
|
94
|
-
}
|
|
95
|
-
get valueScale() {
|
|
96
|
-
return this.isVertical() ? this.yScale : this.xScale;
|
|
97
|
-
}
|
|
98
|
-
isVertical() {
|
|
99
|
-
return this.config.orientation === y.Vertical;
|
|
100
|
-
}
|
|
101
|
-
_render(t) {
|
|
102
|
-
let { config: n } = this, r = s(t) ? t : n.duration, i = this._getGroupWidth(), l = this.getAccessors(), u = [-i / 2, i / 2], d = S().domain(te(l.length)).range(u).paddingInner(n.barPadding).paddingOuter(n.barPadding), f = this.g.selectAll(`.${Ne}`).data(this._barData, (t, r) => `${e(t, n.id, r) ?? r}`), p = (e, t) => {
|
|
103
|
-
let r = this.dataScale(o(e, n.x, t));
|
|
104
|
-
return `translate(${this.isVertical() ? r : 0},${this.isVertical() ? 0 : r})`;
|
|
105
|
-
}, m = f.enter().append("g").attr("class", Ne).attr("transform", p).style("opacity", 1).merge(f);
|
|
106
|
-
a(m, r).attr("transform", p).style("opacity", 1);
|
|
107
|
-
let h = f.exit().attr("class", Pe);
|
|
108
|
-
a(h, r).style("opacity", 0).remove(), a(h.selectAll(`.${$}`), r).attr("transform", (e, t, n) => this.isVertical() ? `translate(0,${this.yScale(0)}) scale(1,0)` : `translate(${this.xScale(0)},0) scale(0,1)`);
|
|
109
|
-
let g = d.bandwidth(), _ = m.selectAll(`.${$}`).data((e) => l.map(() => e)), v = this._getValueAxisDirection();
|
|
110
|
-
a(_.enter().append("path").attr("class", $).attr("d", (e, t) => {
|
|
111
|
-
let n = d(t), r = this.valueScale(0), i = g;
|
|
112
|
-
return this._getBarPath(n, r, i, 0, !1, v);
|
|
113
|
-
}).style("fill", (e, t) => c(e, n.color, t)).merge(_), r).attr("d", (e, t) => {
|
|
114
|
-
let r = d(t), i = g, a = o(e, l[t]), s = a < 0, c = s ? this.valueScale(0) : this.valueScale(a || 0), u = Math.abs(this.valueScale(0) - this.valueScale(a)) || 0;
|
|
115
|
-
if (u < n.barMinHeight) {
|
|
116
|
-
let e = v === b.North ? -1 : 1;
|
|
117
|
-
c = this.valueScale(0) + e * n.barMinHeight, u = n.barMinHeight;
|
|
118
|
-
}
|
|
119
|
-
return this._getBarPath(r, c, i, u, s, v);
|
|
120
|
-
}).style("fill", (e, t) => c(e, n.color, t)).style("cursor", (t, r) => e(t, n.cursor, r)), a(_.exit(), r).remove();
|
|
121
|
-
}
|
|
122
|
-
_getValueAxisDirection() {
|
|
123
|
-
return this.valueScale.range()[0] > this.valueScale.range()[1] ? b.North : b.South;
|
|
124
|
-
}
|
|
125
|
-
_getVisibleData() {
|
|
126
|
-
let { config: e, datamodel: { data: t } } = this, n = this._getGroupWidth(), r = t.length < 2 ? 0 : n / 2, i = this.dataScale, a = Math.abs(i.invert(r) - i.invert(0));
|
|
127
|
-
return t?.filter((t, n) => {
|
|
128
|
-
let r = o(t, e.x, n), s = i.domain(), c = +s[0], l = +s[1];
|
|
129
|
-
return r >= c - a && r <= l + a;
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
_getBarPath(e, t, n, i, a, o) {
|
|
133
|
-
let { config: c } = this, l = r(c.roundedCorners ? s(c.roundedCorners) ? +c.roundedCorners : n / 2 : 0, 0, Math.min(i, n) / 2), u = o === b.North, d = this.isVertical() && a !== u, f = this.isVertical() && a === u, p = !this.isVertical() && a, m = !this.isVertical() && !a;
|
|
134
|
-
return Oe({
|
|
135
|
-
x: this.isVertical() ? e : t + (u ? 0 : -i),
|
|
136
|
-
y: this.isVertical() ? t + (u ? 0 : -i) : e,
|
|
137
|
-
w: this.isVertical() ? n : i,
|
|
138
|
-
h: this.isVertical() ? i : n,
|
|
139
|
-
tl: d || p,
|
|
140
|
-
tr: d || m,
|
|
141
|
-
bl: f || p,
|
|
142
|
-
br: f || m,
|
|
143
|
-
r: l
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
_getGroupWidth() {
|
|
147
|
-
let { config: e, datamodel: { data: n } } = this;
|
|
148
|
-
if (t(n)) return 0;
|
|
149
|
-
if (e.groupWidth) return _([e.groupWidth, e.groupMaxWidth]);
|
|
150
|
-
let r = this.dataScale.bandwidth, i = this.dataScale.domain ? this.dataScale.domain() : [], a = 1 + (r ? i.length : i[1] - i[0]) / e.dataStep || !r && n.filter((t, n) => {
|
|
151
|
-
let r = o(t, e.x, n);
|
|
152
|
-
return r >= i[0] && r <= i[1];
|
|
153
|
-
}).length || n.length;
|
|
154
|
-
return !r && a >= 2 && (a += 1), _([(a < 2 ? 1 : 1 - e.groupPadding) * (this.isVertical() ? this._width : this._height) / a, e.groupMaxWidth]);
|
|
155
|
-
}
|
|
156
|
-
getValueScaleExtent(e) {
|
|
157
|
-
let { datamodel: t } = this, n = this.getAccessors(), r = e ? this._getVisibleData() : t.data, a = v(r, ...n), o = i(r, ...n);
|
|
158
|
-
return [a > 0 ? 0 : a, o < 0 ? 0 : o];
|
|
159
|
-
}
|
|
160
|
-
getDataScaleExtent() {
|
|
161
|
-
let { config: e, datamodel: t } = this;
|
|
162
|
-
return n(t.data, e.x);
|
|
163
|
-
}
|
|
164
|
-
getYDataExtent(e) {
|
|
165
|
-
return this.isVertical() ? this.getValueScaleExtent(e) : this.getDataScaleExtent();
|
|
166
|
-
}
|
|
167
|
-
getXDataExtent() {
|
|
168
|
-
return this.isVertical() ? this.getDataScaleExtent() : this.getValueScaleExtent(!1);
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
Fe.selectors = Ae;
|
|
172
|
-
//#endregion
|
|
173
|
-
//#region ../node_modules/.pnpm/@unovis+vue@1.6.5_@unovis+ts@1.6.5_vue@3.5.34_typescript@6.0.3_/node_modules/@unovis/vue/components/grouped-bar/index.js
|
|
174
|
-
var Ie = { "data-vis-component": "" };
|
|
175
|
-
Fe.selectors;
|
|
176
|
-
var Le = /* @__PURE__ */ V({
|
|
177
|
-
__name: "index",
|
|
178
|
-
props: {
|
|
179
|
-
color: { type: [
|
|
180
|
-
Function,
|
|
181
|
-
String,
|
|
182
|
-
Array,
|
|
183
|
-
null
|
|
184
|
-
] },
|
|
185
|
-
groupWidth: {},
|
|
186
|
-
groupMaxWidth: {},
|
|
187
|
-
dataStep: {},
|
|
188
|
-
groupPadding: {},
|
|
189
|
-
barPadding: {},
|
|
190
|
-
roundedCorners: { type: [Number, Boolean] },
|
|
191
|
-
barMinHeight: {},
|
|
192
|
-
cursor: { type: [
|
|
193
|
-
Function,
|
|
194
|
-
String,
|
|
195
|
-
null
|
|
196
|
-
] },
|
|
197
|
-
orientation: {},
|
|
198
|
-
x: { type: [
|
|
199
|
-
Function,
|
|
200
|
-
Number,
|
|
201
|
-
null
|
|
202
|
-
] },
|
|
203
|
-
y: { type: [
|
|
204
|
-
Function,
|
|
205
|
-
Number,
|
|
206
|
-
null,
|
|
207
|
-
Array
|
|
208
|
-
] },
|
|
209
|
-
id: { type: Function },
|
|
210
|
-
xScale: { type: [Object, Function] },
|
|
211
|
-
yScale: { type: [Object, Function] },
|
|
212
|
-
excludeFromDomainCalculation: { type: Boolean },
|
|
213
|
-
duration: {},
|
|
214
|
-
events: {},
|
|
215
|
-
attributes: {},
|
|
216
|
-
data: {}
|
|
217
|
-
},
|
|
218
|
-
setup(e, { expose: t }) {
|
|
219
|
-
let n = ce(m), r = e, i = P(() => n.data.value ?? r.data), a = h(r), o = K();
|
|
220
|
-
return ue(() => {
|
|
221
|
-
le(() => {
|
|
222
|
-
var e;
|
|
223
|
-
o.value = new Fe(a.value), (e = o.value) == null || e.setData(i.value), n.update(o.value);
|
|
224
|
-
});
|
|
225
|
-
}), de(() => {
|
|
226
|
-
var e;
|
|
227
|
-
(e = o.value) == null || e.destroy(), n.destroy();
|
|
228
|
-
}), Z(a, (e, t) => {
|
|
229
|
-
var n;
|
|
230
|
-
f(e, t) || (n = o.value) == null || n.setConfig(a.value);
|
|
231
|
-
}), Z(i, () => {
|
|
232
|
-
var e;
|
|
233
|
-
(e = o.value) == null || e.setData(i.value);
|
|
234
|
-
}), t({ component: o }), (e, t) => (G(), L("div", Ie));
|
|
235
|
-
}
|
|
236
|
-
}), Re = { class: "flex flex-col sm:flex-row" }, ze = ["data-active"], Be = { class: "flex items-center gap-2" }, Ve = { class: "block text-muted-foreground text-xs mr-2 max-w-[120px] truncate" }, He = { class: "block text-lg leading-none font-bold sm:text-3xl" }, Ue = { class: "mx-auto w-full max-w-sm mt-2 mb-8" }, We = { class: "text-muted-foreground" }, Ge = { class: "text-muted-foreground" }, Ke = { class: "grid" }, qe = { class: "flex gap-1 overflow-hidden max-w-80" }, Je = { class: "truncate" }, Ye = /* @__PURE__ */ V({
|
|
237
|
-
__name: "ResourceSelector",
|
|
238
|
-
props: {
|
|
239
|
-
resources: {
|
|
240
|
-
type: Array,
|
|
241
|
-
required: !0
|
|
242
|
-
},
|
|
243
|
-
totals: {
|
|
244
|
-
type: Object,
|
|
245
|
-
required: !0
|
|
246
|
-
},
|
|
247
|
-
viewMode: {
|
|
248
|
-
type: String,
|
|
249
|
-
required: !0
|
|
250
|
-
},
|
|
251
|
-
activeChart: {
|
|
252
|
-
type: String,
|
|
253
|
-
required: !1
|
|
254
|
-
}
|
|
255
|
-
},
|
|
256
|
-
emits: ["update:viewMode", "update:activeChart"],
|
|
257
|
-
setup(e, { emit: t }) {
|
|
258
|
-
let n = e, r = t, i = P({
|
|
259
|
-
get: () => n.viewMode,
|
|
260
|
-
set: (e) => {
|
|
261
|
-
r("update:viewMode", e);
|
|
262
|
-
}
|
|
263
|
-
}), a = P({
|
|
264
|
-
get: () => n.activeChart,
|
|
265
|
-
set: (e) => {
|
|
266
|
-
r("update:activeChart", e);
|
|
267
|
-
}
|
|
268
|
-
}), { width: o } = ae(), s = P(() => o.value < 640), c = K(!1);
|
|
269
|
-
return (t, n) => {
|
|
270
|
-
let r = J("DrawerTitle"), o = J("DrawerDescription"), l = J("DrawerHeader"), u = J("Button"), d = J("DrawerFooter"), f = J("DrawerContent"), p = J("Drawer"), m = J("DropdownMenuTrigger"), h = J("DropdownMenuLabel"), g = J("DropdownMenuItem"), _ = J("DropdownMenuContent"), v = J("DropdownMenu");
|
|
271
|
-
return G(), L("div", Re, [e.resources.length > 1 ? (G(), L("button", {
|
|
272
|
-
key: 0,
|
|
273
|
-
"data-active": e.viewMode === "stacked",
|
|
274
|
-
class: "hover:bg-muted/50 flex flex-1 flex-col justify-center gap-2 border-t px-4 py-3 text-left sm:border-t-0 sm:border-l sm:px-6 sm:py-6 cursor-pointer",
|
|
275
|
-
onClick: n[0] ||= (e) => c.value = !0,
|
|
276
|
-
onContextmenu: n[1] ||= he((e) => c.value = !0, ["prevent"])
|
|
277
|
-
}, [R("div", Be, [e.viewMode === "stacked" ? (G(), L(N, { key: 0 }, [B(X(xe), { class: "size-3 text-muted-foreground" }), n[6] ||= R("span", { class: "block text-muted-foreground text-xs mr-2 max-w-[120px] truncate" }, "All Resources", -1)], 64)) : (G(), L(N, { key: 1 }, [R("div", {
|
|
278
|
-
class: "size-3 rounded-full mr-2",
|
|
279
|
-
style: W({ backgroundColor: e.resources.find((t) => t.id === e.activeChart)?.color || "#6b7280" })
|
|
280
|
-
}, null, 4), R("span", Ve, Y(e.resources.find((t) => t.id === e.activeChart)?.name || "Select Resource"), 1)], 64)), B(X(_e), { class: "ml-auto size-4" })]), R("span", He, Y(e.viewMode === "stacked" ? Object.values(e.totals).reduce((e, t) => e + t, 0).toLocaleString() : (e.totals[e.activeChart] || 0).toLocaleString()), 1)], 40, ze)) : I("", !0), X(s) ? (G(), F(p, {
|
|
281
|
-
key: 1,
|
|
282
|
-
open: X(c),
|
|
283
|
-
"onUpdate:open": n[3] ||= (e) => H(c) ? c.value = e : null
|
|
284
|
-
}, {
|
|
285
|
-
default: Q(() => [B(f, null, {
|
|
286
|
-
default: Q(() => [R("div", Ue, [B(l, null, {
|
|
287
|
-
default: Q(() => [B(r, null, {
|
|
288
|
-
default: Q(() => [...n[7] ||= [z("Resources", -1)]]),
|
|
289
|
-
_: 1
|
|
290
|
-
}), B(o, null, {
|
|
291
|
-
default: Q(() => [...n[8] ||= [z("Select the resources to display on the timeline.", -1)]]),
|
|
292
|
-
_: 1
|
|
293
|
-
})]),
|
|
294
|
-
_: 1
|
|
295
|
-
}), B(d, null, {
|
|
296
|
-
default: Q(() => [B(u, {
|
|
297
|
-
onClick: n[2] ||= (e) => {
|
|
298
|
-
i.value = "stacked", a.value = "", c.value = !1;
|
|
299
|
-
},
|
|
300
|
-
variant: e.viewMode === "stacked" ? "secondary" : "outline"
|
|
301
|
-
}, {
|
|
302
|
-
default: Q(() => [B(X(xe), { class: "size-3 text-muted-foreground" }), R("span", We, " All Resources (" + Y(Object.values(e.totals).reduce((e, t) => e + t, 0).toLocaleString()) + ") ", 1)]),
|
|
303
|
-
_: 1
|
|
304
|
-
}, 8, ["variant"]), (G(!0), L(N, null, q(e.resources, (t) => (G(), F(u, {
|
|
305
|
-
key: t.id,
|
|
306
|
-
onClick: (e) => {
|
|
307
|
-
i.value = "single", a.value = t.id, c.value = !1;
|
|
308
|
-
},
|
|
309
|
-
variant: e.viewMode === "single" && e.activeChart === t.id ? "secondary" : "outline"
|
|
310
|
-
}, {
|
|
311
|
-
default: Q(() => [R("div", {
|
|
312
|
-
class: "size-3 rounded-full",
|
|
313
|
-
style: W({ backgroundColor: t.color || "#6b7280" })
|
|
314
|
-
}, null, 4), R("span", Ge, Y(t.name) + " (" + Y((e.totals[t.id] || 0).toLocaleString()) + ") ", 1)]),
|
|
315
|
-
_: 2
|
|
316
|
-
}, 1032, ["onClick", "variant"]))), 128))]),
|
|
317
|
-
_: 1
|
|
318
|
-
})])]),
|
|
319
|
-
_: 1
|
|
320
|
-
})]),
|
|
321
|
-
_: 1
|
|
322
|
-
}, 8, ["open"])) : (G(), F(v, {
|
|
323
|
-
key: 2,
|
|
324
|
-
open: X(c),
|
|
325
|
-
"onUpdate:open": n[5] ||= (e) => H(c) ? c.value = e : null
|
|
326
|
-
}, {
|
|
327
|
-
default: Q(() => [B(m, { "as-child": "" }, {
|
|
328
|
-
default: Q(() => [...n[9] ||= [R("button", {
|
|
329
|
-
tabindex: "-1",
|
|
330
|
-
class: "size-0 opacity-0 self-end"
|
|
331
|
-
}, null, -1)]]),
|
|
332
|
-
_: 1
|
|
333
|
-
}), B(_, { align: "end" }, {
|
|
334
|
-
default: Q(() => [B(h, null, {
|
|
335
|
-
default: Q(() => [...n[10] ||= [z("Resources", -1)]]),
|
|
336
|
-
_: 1
|
|
337
|
-
}), R("div", Ke, [B(g, {
|
|
338
|
-
onClick: n[4] ||= (e) => {
|
|
339
|
-
i.value = "stacked", a.value = "", c.value = !1;
|
|
340
|
-
},
|
|
341
|
-
class: U(e.viewMode === "stacked" ? "bg-input" : "")
|
|
342
|
-
}, {
|
|
343
|
-
default: Q(() => [B(X(xe), { class: "size-3 text-muted-foreground" }), R("span", null, " All Resources (" + Y(Object.values(e.totals).reduce((e, t) => e + t, 0).toLocaleString()) + ") ", 1)]),
|
|
344
|
-
_: 1
|
|
345
|
-
}, 8, ["class"]), (G(!0), L(N, null, q(e.resources, (t) => (G(), F(g, {
|
|
346
|
-
key: t.id,
|
|
347
|
-
onClick: (e) => {
|
|
348
|
-
i.value = "single", a.value = t.id, c.value = !1;
|
|
349
|
-
},
|
|
350
|
-
class: U(e.viewMode === "single" && e.activeChart === t.id ? "bg-input" : "")
|
|
351
|
-
}, {
|
|
352
|
-
default: Q(() => [R("div", {
|
|
353
|
-
class: "size-3 rounded-full",
|
|
354
|
-
style: W({ backgroundColor: t.color || "#6b7280" })
|
|
355
|
-
}, null, 4), R("span", qe, [R("span", Je, Y(t.name), 1), R("span", null, "(" + Y((e.totals[t.id] || 0).toLocaleString()) + ")", 1)])]),
|
|
356
|
-
_: 2
|
|
357
|
-
}, 1032, ["onClick", "class"]))), 128))])]),
|
|
358
|
-
_: 1
|
|
359
|
-
})]),
|
|
360
|
-
_: 1
|
|
361
|
-
}, 8, ["open"]))]);
|
|
362
|
-
};
|
|
363
|
-
}
|
|
364
|
-
}), Xe = { class: "flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6" }, Ze = { class: "flex flex-col sm:flex-row sm:items-center gap-2 sm:gap-3" }, Qe = { class: "flex items-center gap-1" }, $e = { class: "timeline-date-trigger" }, et = {
|
|
365
|
-
key: 1,
|
|
366
|
-
class: "flex items-center justify-center px-6 py-4 text-muted-foreground text-sm"
|
|
367
|
-
}, tt = {
|
|
368
|
-
key: 0,
|
|
369
|
-
class: "flex items-center justify-center h-[250px]"
|
|
370
|
-
}, nt = {
|
|
371
|
-
key: 1,
|
|
372
|
-
class: "flex items-center justify-center h-[250px]"
|
|
373
|
-
}, rt = "#61616180", it = /* @__PURE__ */ re(/* @__PURE__ */ V({
|
|
374
|
-
__name: "Timeline",
|
|
375
|
-
props: {
|
|
376
|
-
modelValue: {},
|
|
377
|
-
selectedResource: {},
|
|
378
|
-
viewMode: {},
|
|
379
|
-
agendaData: {},
|
|
380
|
-
resources: {}
|
|
381
|
-
},
|
|
382
|
-
emits: [
|
|
383
|
-
"update:modelValue",
|
|
384
|
-
"update:selectedResource",
|
|
385
|
-
"update:viewMode"
|
|
386
|
-
],
|
|
387
|
-
setup(e, { emit: t }) {
|
|
388
|
-
let n = e, r = t, { params: i } = M(), { config: a } = j(), o = oe(a.project), s = K([]), c = K([]), l = K(!0), u = K(n.viewMode || "stacked"), d = K(n.selectedResource || "");
|
|
389
|
-
Z(u, (e) => {
|
|
390
|
-
r("update:viewMode", e);
|
|
391
|
-
}, { immediate: !0 }), Z(d, (e) => {
|
|
392
|
-
r("update:selectedResource", u.value === "single" ? e : null);
|
|
393
|
-
}), Z(u, (e) => {
|
|
394
|
-
r("update:selectedResource", e === "single" ? d.value : null);
|
|
395
|
-
}), Z(() => n.selectedResource, (e) => {
|
|
396
|
-
u.value === "single" && e !== d.value && (d.value = e || "");
|
|
397
|
-
});
|
|
398
|
-
let f = /* @__PURE__ */ new Date(), p = K(n.modelValue || /* @__PURE__ */ new Date()), m = K(null);
|
|
399
|
-
Z(() => n.modelValue, (e) => {
|
|
400
|
-
e && e.getTime() !== p.value.getTime() && (p.value = e);
|
|
401
|
-
}), Z(p, (e) => {
|
|
402
|
-
r("update:modelValue", e);
|
|
403
|
-
}, { immediate: !0 });
|
|
404
|
-
let h = P({
|
|
405
|
-
get: () => O(p.value),
|
|
406
|
-
set: (e) => {
|
|
407
|
-
if (!e) {
|
|
408
|
-
p.value = /* @__PURE__ */ new Date();
|
|
409
|
-
return;
|
|
410
|
-
}
|
|
411
|
-
p.value = /* @__PURE__ */ new Date(`${e}T00:00:00`);
|
|
412
|
-
}
|
|
413
|
-
}), g = () => {
|
|
414
|
-
let e = m.value;
|
|
415
|
-
if (e) {
|
|
416
|
-
if (typeof e.showPicker == "function") {
|
|
417
|
-
e.showPicker();
|
|
418
|
-
return;
|
|
419
|
-
}
|
|
420
|
-
e.focus(), e.click();
|
|
421
|
-
}
|
|
422
|
-
}, _ = P(() => {
|
|
423
|
-
let e = new Date(f);
|
|
424
|
-
e.setDate(f.getDate() - 1);
|
|
425
|
-
let t = new Date(f);
|
|
426
|
-
return t.setDate(f.getDate() + 1), p.value.toDateString() === f.toDateString() ? "Today" : p.value.toDateString() === e.toDateString() ? "Yesterday" : p.value.toDateString() === t.toDateString() ? "Tomorrow" : p.value.toLocaleDateString("en-US", {
|
|
427
|
-
weekday: "long",
|
|
428
|
-
month: "long",
|
|
429
|
-
day: "numeric",
|
|
430
|
-
year: "numeric"
|
|
431
|
-
});
|
|
432
|
-
}), v = () => {
|
|
433
|
-
let e = new Date(p.value);
|
|
434
|
-
e.setDate(e.getDate() - 1), p.value = e;
|
|
435
|
-
}, y = () => {
|
|
436
|
-
let e = new Date(p.value);
|
|
437
|
-
e.setDate(e.getDate() + 1), p.value = e;
|
|
438
|
-
}, b = () => {
|
|
439
|
-
p.value = /* @__PURE__ */ new Date();
|
|
440
|
-
}, S = P(() => n.resources?.length === 0 ? 10 : Math.max(...(n.resources || []).map((e) => e.capacity || 10))), C = P(() => (n.resources?.length || 0) === 0 ? 60 : Math.min(...(n.resources || []).map((e) => e.interval || 60))), T = P(() => {
|
|
441
|
-
let e = { total: {
|
|
442
|
-
label: "Total Reservations",
|
|
443
|
-
color: void 0
|
|
444
|
-
} };
|
|
445
|
-
return (n.resources || []).forEach((t, n) => {
|
|
446
|
-
e[t.id] = {
|
|
447
|
-
label: t.name,
|
|
448
|
-
color: t.color || `var(--chart-${n % 5 + 1})`
|
|
449
|
-
};
|
|
450
|
-
}), e;
|
|
451
|
-
});
|
|
452
|
-
Z(() => n.resources, (e) => {
|
|
453
|
-
(e?.length || 0) > 0 && !d.value && (d.value = e[0].id);
|
|
454
|
-
}, { immediate: !0 });
|
|
455
|
-
let te = P(() => [...n.resources || []].sort((e, t) => {
|
|
456
|
-
let n = D.value[e.id] || 0;
|
|
457
|
-
return (D.value[t.id] || 0) - n;
|
|
458
|
-
})), ne = P(() => {
|
|
459
|
-
let e = [];
|
|
460
|
-
return 60 / C.value, s.value.forEach((t, n) => {
|
|
461
|
-
t.time.endsWith(":00") && e.push(n);
|
|
462
|
-
}), e;
|
|
463
|
-
}), D = P(() => {
|
|
464
|
-
let e = {};
|
|
465
|
-
return n.resources?.forEach((t) => {
|
|
466
|
-
e[t.id] = c.value.filter((e) => e.resourceId === t.id).reduce((e, t) => e + (t.reserved || 0), 0);
|
|
467
|
-
}), e;
|
|
468
|
-
}), O = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, k = (e) => {
|
|
469
|
-
let [t, n] = e.split(":").map(Number);
|
|
470
|
-
return t * 60 + n;
|
|
471
|
-
}, re = (e, t) => (n.agendaData?.exceptions || []).find((n) => t >= n.startDate && t <= n.endDate ? n.resourceIds === null ? !0 : n.resourceIds?.includes(e) : !1) || null, ie = P(() => {
|
|
472
|
-
let e = O(p.value), t = p.value.getDay(), r = 1440, i = 0;
|
|
473
|
-
return (n.resources || []).forEach((n) => {
|
|
474
|
-
let a = re(n.id, e);
|
|
475
|
-
if (a) {
|
|
476
|
-
if (a.isClosed) return;
|
|
477
|
-
a.timeslots.forEach((e) => {
|
|
478
|
-
let t = k(e.startTime), n = k(e.endTime);
|
|
479
|
-
r = Math.min(r, t), i = Math.max(i, n);
|
|
480
|
-
});
|
|
481
|
-
} else (n.openingHours?.[t] || []).forEach((e) => {
|
|
482
|
-
let t = k(e.start), n = k(e.end);
|
|
483
|
-
r = Math.min(r, t), i = Math.max(i, n);
|
|
484
|
-
});
|
|
485
|
-
}), r >= i ? {
|
|
486
|
-
startMinutes: 540,
|
|
487
|
-
endMinutes: 1020
|
|
488
|
-
} : {
|
|
489
|
-
startMinutes: Math.floor(r / 60) * 60,
|
|
490
|
-
endMinutes: Math.ceil(i / 60) * 60
|
|
491
|
-
};
|
|
492
|
-
}), ae = () => {
|
|
493
|
-
let e = [], t = C.value, { startMinutes: r, endMinutes: i } = ie.value;
|
|
494
|
-
for (let a = r; a < i; a += t) {
|
|
495
|
-
let t = Math.floor(a / 60), r = a % 60, i = `${String(t).padStart(2, "0")}:${String(r).padStart(2, "0")}`, o = {
|
|
496
|
-
time: i,
|
|
497
|
-
label: i
|
|
498
|
-
};
|
|
499
|
-
n.resources?.forEach((e) => {
|
|
500
|
-
o[e.id] = 0;
|
|
501
|
-
}), e.push(o);
|
|
502
|
-
}
|
|
503
|
-
return e;
|
|
504
|
-
}, A = async () => {
|
|
505
|
-
l.value = !0;
|
|
506
|
-
try {
|
|
507
|
-
let e = `${i.value.id}_${O(p.value)}`, t = await o.get(a.reservedSpotsCollection, e);
|
|
508
|
-
c.value = [];
|
|
509
|
-
for (let e of n.resources || []) {
|
|
510
|
-
let n = t?.[e.id] || {};
|
|
511
|
-
Object.entries(n).forEach(([t, n]) => {
|
|
512
|
-
let [r, i] = t.split("-");
|
|
513
|
-
c.value.push({
|
|
514
|
-
resourceId: e.id,
|
|
515
|
-
startTime: r,
|
|
516
|
-
endTime: i,
|
|
517
|
-
reserved: n
|
|
518
|
-
});
|
|
519
|
-
});
|
|
520
|
-
}
|
|
521
|
-
let r = ae(), l = C.value, { startMinutes: u } = ie.value;
|
|
522
|
-
c.value.forEach((e) => {
|
|
523
|
-
let t = k(e.startTime), n = k(e.endTime);
|
|
524
|
-
for (let i = t; i < n; i += l) {
|
|
525
|
-
let t = Math.floor((i - u) / l);
|
|
526
|
-
if (t >= 0 && t < r.length) {
|
|
527
|
-
let n = r[t][e.resourceId];
|
|
528
|
-
typeof n == "number" && (r[t][e.resourceId] = n + (e.reserved || 0));
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
}), s.value = r;
|
|
532
|
-
} catch (e) {
|
|
533
|
-
console.error("Error loading reservation data:", e), s.value = ae(), c.value = [];
|
|
534
|
-
} finally {
|
|
535
|
-
l.value = !1;
|
|
536
|
-
}
|
|
537
|
-
};
|
|
538
|
-
return (async () => {
|
|
539
|
-
await A();
|
|
540
|
-
})(), Z(p, () => {
|
|
541
|
-
A();
|
|
542
|
-
}), Z(() => n.resources, () => {
|
|
543
|
-
(n.resources?.length || 0) > 0 && A();
|
|
544
|
-
}), (t, n) => {
|
|
545
|
-
let r = J("CardTitle"), i = J("Button"), a = J("CardDescription"), o = J("CardHeader"), c = J("ChartContainer"), f = J("CardContent"), p = J("Card");
|
|
546
|
-
return G(), F(p, { class: "py-4 sm:py-0" }, {
|
|
547
|
-
default: Q(() => [B(o, { class: "flex flex-col items-stretch border-b !p-0 sm:flex-row" }, {
|
|
548
|
-
default: Q(() => [R("div", Xe, [R("div", Ze, [B(r, null, {
|
|
549
|
-
default: Q(() => [...n[3] ||= [z("Reservations", -1)]]),
|
|
550
|
-
_: 1
|
|
551
|
-
}), R("div", Qe, [
|
|
552
|
-
B(i, {
|
|
553
|
-
variant: "outline",
|
|
554
|
-
size: "icon",
|
|
555
|
-
class: "size-8",
|
|
556
|
-
onClick: v
|
|
557
|
-
}, {
|
|
558
|
-
default: Q(() => [B(X(ve), { size: 16 })]),
|
|
559
|
-
_: 1
|
|
560
|
-
}),
|
|
561
|
-
B(i, {
|
|
562
|
-
variant: "outline",
|
|
563
|
-
size: "sm",
|
|
564
|
-
class: "h-8 px-3 text-xs",
|
|
565
|
-
onClick: b
|
|
566
|
-
}, {
|
|
567
|
-
default: Q(() => [...n[4] ||= [z(" Today ", -1)]]),
|
|
568
|
-
_: 1
|
|
569
|
-
}),
|
|
570
|
-
B(i, {
|
|
571
|
-
variant: "outline",
|
|
572
|
-
size: "icon",
|
|
573
|
-
class: "size-8",
|
|
574
|
-
onClick: y
|
|
575
|
-
}, {
|
|
576
|
-
default: Q(() => [B(X(ye), { size: 16 })]),
|
|
577
|
-
_: 1
|
|
578
|
-
})
|
|
579
|
-
])]), B(a, null, {
|
|
580
|
-
default: Q(() => [R("div", $e, [B(i, {
|
|
581
|
-
type: "button",
|
|
582
|
-
variant: "outline",
|
|
583
|
-
onClick: g
|
|
584
|
-
}, {
|
|
585
|
-
default: Q(() => [B(X(ge), { class: "size-4" }), z(" " + Y(X(_)), 1)]),
|
|
586
|
-
_: 1
|
|
587
|
-
}), me(R("input", {
|
|
588
|
-
ref_key: "dateInputRef",
|
|
589
|
-
ref: m,
|
|
590
|
-
"onUpdate:modelValue": n[0] ||= (e) => H(h) ? h.value = e : null,
|
|
591
|
-
type: "date",
|
|
592
|
-
class: "timeline-date-picker",
|
|
593
|
-
"aria-label": "Select reservation date"
|
|
594
|
-
}, null, 512), [[pe, X(h)]])])]),
|
|
595
|
-
_: 1
|
|
596
|
-
})]), e.resources.length > 0 ? (G(), F(Ye, {
|
|
597
|
-
key: 0,
|
|
598
|
-
resources: e.resources,
|
|
599
|
-
totals: X(D),
|
|
600
|
-
viewMode: X(u),
|
|
601
|
-
"onUpdate:viewMode": n[1] ||= (e) => H(u) ? u.value = e : null,
|
|
602
|
-
activeChart: X(d),
|
|
603
|
-
"onUpdate:activeChart": n[2] ||= (e) => H(d) ? d.value = e : null
|
|
604
|
-
}, null, 8, [
|
|
605
|
-
"resources",
|
|
606
|
-
"totals",
|
|
607
|
-
"viewMode",
|
|
608
|
-
"activeChart"
|
|
609
|
-
])) : (G(), L("div", et, " No resources configured "))]),
|
|
610
|
-
_: 1
|
|
611
|
-
}), B(f, { class: "px-2 sm:p-6" }, {
|
|
612
|
-
default: Q(() => [X(l) ? (G(), L("div", tt, [...n[5] ||= [R("div", { class: "text-muted-foreground" }, "Loading...", -1)]])) : e.resources.length === 0 ? (G(), L("div", nt, [...n[6] ||= [R("div", { class: "text-muted-foreground" }, "No resources to display", -1)]])) : X(u) === "stacked" ? (G(), F(c, {
|
|
613
|
-
key: 2,
|
|
614
|
-
config: X(T),
|
|
615
|
-
class: "aspect-auto h-[250px] w-full",
|
|
616
|
-
cursor: ""
|
|
617
|
-
}, {
|
|
618
|
-
default: Q(() => [B(X(E), {
|
|
619
|
-
data: X(s),
|
|
620
|
-
margin: { left: -24 },
|
|
621
|
-
"y-domain": [0, X(S)]
|
|
622
|
-
}, {
|
|
623
|
-
default: Q(() => [
|
|
624
|
-
(G(!0), L(N, null, q(X(te), (e) => (G(), F(X(Le), {
|
|
625
|
-
key: e.id,
|
|
626
|
-
x: (e, t) => t,
|
|
627
|
-
y: (t) => t[e.id] || 0,
|
|
628
|
-
color: (t) => t[e.id] > 0 ? X(T)[e.id]?.color : rt,
|
|
629
|
-
"bar-padding": .1,
|
|
630
|
-
"rounded-corners": 2
|
|
631
|
-
}, null, 8, [
|
|
632
|
-
"x",
|
|
633
|
-
"y",
|
|
634
|
-
"color"
|
|
635
|
-
]))), 128)),
|
|
636
|
-
B(X(x), {
|
|
637
|
-
type: "x",
|
|
638
|
-
x: (e, t) => t,
|
|
639
|
-
"tick-line": !1,
|
|
640
|
-
"domain-line": !1,
|
|
641
|
-
"grid-line": !1,
|
|
642
|
-
"tick-values": X(ne),
|
|
643
|
-
"tick-format": (e) => X(s)[e]?.time || ""
|
|
644
|
-
}, null, 8, [
|
|
645
|
-
"x",
|
|
646
|
-
"tick-values",
|
|
647
|
-
"tick-format"
|
|
648
|
-
]),
|
|
649
|
-
B(X(x), {
|
|
650
|
-
type: "y",
|
|
651
|
-
"num-ticks": 3,
|
|
652
|
-
"tick-line": !1,
|
|
653
|
-
"domain-line": !1
|
|
654
|
-
}),
|
|
655
|
-
B(X(ee)),
|
|
656
|
-
B(X(w), {
|
|
657
|
-
template: X(De)(X(T), X(Ee), { labelFormatter(e) {
|
|
658
|
-
let t = Math.round(e);
|
|
659
|
-
return t >= 0 && t < X(s).length && X(s)[t]?.time || "";
|
|
660
|
-
} }),
|
|
661
|
-
color: "#0000"
|
|
662
|
-
}, null, 8, ["template"])
|
|
663
|
-
]),
|
|
664
|
-
_: 1
|
|
665
|
-
}, 8, ["data", "y-domain"])]),
|
|
666
|
-
_: 1
|
|
667
|
-
}, 8, ["config"])) : (G(), F(c, {
|
|
668
|
-
key: X(d),
|
|
669
|
-
config: X(T),
|
|
670
|
-
class: "aspect-auto h-[250px] w-full",
|
|
671
|
-
cursor: ""
|
|
672
|
-
}, {
|
|
673
|
-
default: Q(() => [B(X(E), {
|
|
674
|
-
data: X(s),
|
|
675
|
-
margin: { left: -24 },
|
|
676
|
-
"y-domain": [0, X(S)]
|
|
677
|
-
}, {
|
|
678
|
-
default: Q(() => [
|
|
679
|
-
B(X(Le), {
|
|
680
|
-
x: (e, t) => t,
|
|
681
|
-
y: (e) => e[X(d)] || 0,
|
|
682
|
-
color: (e) => e[X(d)] > 0 ? X(T)[X(d)]?.color : rt,
|
|
683
|
-
"bar-padding": .1,
|
|
684
|
-
"rounded-corners": !1
|
|
685
|
-
}, null, 8, [
|
|
686
|
-
"x",
|
|
687
|
-
"y",
|
|
688
|
-
"color"
|
|
689
|
-
]),
|
|
690
|
-
B(X(x), {
|
|
691
|
-
type: "x",
|
|
692
|
-
x: (e, t) => t,
|
|
693
|
-
"tick-line": !1,
|
|
694
|
-
"domain-line": !1,
|
|
695
|
-
"grid-line": !1,
|
|
696
|
-
"tick-values": X(ne),
|
|
697
|
-
"tick-format": (e) => X(s)[e]?.time || ""
|
|
698
|
-
}, null, 8, [
|
|
699
|
-
"x",
|
|
700
|
-
"tick-values",
|
|
701
|
-
"tick-format"
|
|
702
|
-
]),
|
|
703
|
-
B(X(x), {
|
|
704
|
-
type: "y",
|
|
705
|
-
"num-ticks": 3,
|
|
706
|
-
"tick-line": !1,
|
|
707
|
-
"domain-line": !1
|
|
708
|
-
}),
|
|
709
|
-
B(X(ee)),
|
|
710
|
-
B(X(w), {
|
|
711
|
-
template: X(De)(X(T), X(Ee), { labelFormatter(e) {
|
|
712
|
-
let t = Math.round(e);
|
|
713
|
-
return t >= 0 && t < X(s).length && X(s)[t]?.time || "";
|
|
714
|
-
} }),
|
|
715
|
-
color: "#0000"
|
|
716
|
-
}, null, 8, ["template"])
|
|
717
|
-
]),
|
|
718
|
-
_: 1
|
|
719
|
-
}, 8, ["data", "y-domain"])]),
|
|
720
|
-
_: 1
|
|
721
|
-
}, 8, ["config"]))]),
|
|
722
|
-
_: 1
|
|
723
|
-
})]),
|
|
724
|
-
_: 1
|
|
725
|
-
});
|
|
726
|
-
};
|
|
727
|
-
}
|
|
728
|
-
}), [["__scopeId", "data-v-945abefa"]]), at = { class: "flex flex-row items-center justify-between gap-2" }, ot = { class: "relative mb-4" }, st = { class: "flex gap-1 mb-4 flex-wrap" }, ct = {
|
|
729
|
-
key: 0,
|
|
730
|
-
class: "mb-3 text-sm text-muted-foreground"
|
|
731
|
-
}, lt = {
|
|
732
|
-
key: 1,
|
|
733
|
-
class: "flex items-center justify-center py-8"
|
|
734
|
-
}, ut = {
|
|
735
|
-
key: 2,
|
|
736
|
-
class: "flex flex-col items-center gap-2 text-center py-8 text-muted-foreground"
|
|
737
|
-
}, dt = {
|
|
738
|
-
key: 3,
|
|
739
|
-
class: "text-center py-8 text-muted-foreground"
|
|
740
|
-
}, ft = {
|
|
741
|
-
key: 4,
|
|
742
|
-
class: "space-y-2"
|
|
743
|
-
}, pt = ["onClick"], mt = { class: "flex items-start justify-between" }, ht = { class: "flex-1" }, gt = { class: "font-medium" }, _t = { class: "text-sm text-muted-foreground" }, vt = { class: "text-sm text-muted-foreground" }, yt = { class: "flex items-center gap-4 flex-wrap" }, bt = { class: "flex items-center gap-2 mt-1 text-xs text-muted-foreground" }, xt = { class: "flex items-center gap-2 mt-1 text-xs text-muted-foreground" }, St = {
|
|
744
|
-
key: 0,
|
|
745
|
-
class: "flex items-center gap-1 mt-1 text-xs text-muted-foreground"
|
|
746
|
-
}, Ct = { class: "text-right" }, wt = {
|
|
747
|
-
key: 0,
|
|
748
|
-
class: "inline-block px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400"
|
|
749
|
-
}, Tt = {
|
|
750
|
-
key: 1,
|
|
751
|
-
class: "inline-block px-2 py-1 text-xs rounded-full bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400"
|
|
752
|
-
}, Et = {
|
|
753
|
-
key: 2,
|
|
754
|
-
class: "inline-block px-2 py-1 text-xs rounded-full bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400"
|
|
755
|
-
}, Dt = {
|
|
756
|
-
key: 3,
|
|
757
|
-
class: "inline-block px-2 py-1 text-xs rounded-full bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400"
|
|
758
|
-
}, Ot = {
|
|
759
|
-
key: 4,
|
|
760
|
-
class: "inline-block px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400"
|
|
761
|
-
}, kt = {
|
|
762
|
-
key: 5,
|
|
763
|
-
class: "text-sm font-medium mt-1"
|
|
764
|
-
}, At = /* @__PURE__ */ V({
|
|
765
|
-
__name: "BookingsList",
|
|
766
|
-
props: {
|
|
767
|
-
agendaData: {},
|
|
768
|
-
activeDate: {},
|
|
769
|
-
selectedResource: {},
|
|
770
|
-
resources: {}
|
|
771
|
-
},
|
|
772
|
-
emits: ["resetSelectedResource"],
|
|
773
|
-
setup(e, { emit: t }) {
|
|
774
|
-
let n = e, r = t, { params: i } = M(), { config: a } = j(), o = oe(a.project), s = K([]), c = K(!0), l = K(""), u = K(null), d = K(null), f = P(() => n.agendaData?.metadataSchema || []);
|
|
775
|
-
fe("event", P(() => ({
|
|
776
|
-
date: p(n.activeDate),
|
|
777
|
-
resource: null
|
|
778
|
-
})));
|
|
779
|
-
let p = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, m = P(() => {
|
|
780
|
-
let e = s.value;
|
|
781
|
-
return n.selectedResource && (e = e.filter((e) => e.resourceId === n.selectedResource)), l.value.trim() && (e = new O(e, {
|
|
782
|
-
keys: [
|
|
783
|
-
"customerInfo.firstName",
|
|
784
|
-
"customerInfo.lastName",
|
|
785
|
-
"customerInfo.email",
|
|
786
|
-
"customerInfo.phone",
|
|
787
|
-
"resourceName"
|
|
788
|
-
],
|
|
789
|
-
threshold: .3,
|
|
790
|
-
ignoreLocation: !0
|
|
791
|
-
}).search(l.value).map((e) => e.item)), e;
|
|
792
|
-
}), h = P(() => m.value.filter((e) => y.value.includes(e.reservationStatus))), g = P(() => {
|
|
793
|
-
let e = JSON.parse(JSON.stringify(s.value));
|
|
794
|
-
return n.selectedResource && (e = e.filter((e) => e.resourceId === n.selectedResource)), e.some((e) => e.reservationStatus === "approved" || e.reservationStatus === "needs_approval");
|
|
795
|
-
}), _ = P(() => ({
|
|
796
|
-
spots: s.value.reduce((e, t) => e + (t.spots || 0), 0),
|
|
797
|
-
bookings: s.value.length
|
|
798
|
-
})), v = () => {
|
|
799
|
-
l.value = "";
|
|
800
|
-
}, y = K(["needs_approval", "approved"]), b = (e) => {
|
|
801
|
-
y.value.includes(e) ? y.value = y.value.filter((t) => t !== e) : y.value.push(e);
|
|
802
|
-
}, x = (e, t, r = t.date) => {
|
|
803
|
-
let i = n.resources.find((e) => e.id === t.resourceId), a = e.id || e.orderId || t.orderId || "";
|
|
804
|
-
return {
|
|
805
|
-
customerInfo: e.customerInfo,
|
|
806
|
-
amountDue: e.amountDue,
|
|
807
|
-
amountPaid: e.amountPaid,
|
|
808
|
-
status: e.status,
|
|
809
|
-
reservationStatus: t.status,
|
|
810
|
-
subtotal: e.subtotal,
|
|
811
|
-
total: e.total,
|
|
812
|
-
discount: e.discount,
|
|
813
|
-
id: a,
|
|
814
|
-
res_id: t.id,
|
|
815
|
-
resourceId: t.resourceId,
|
|
816
|
-
spots: t.spots,
|
|
817
|
-
date: r,
|
|
818
|
-
createdAt: e.createdAt,
|
|
819
|
-
startTime: t.timeslot?.startTime,
|
|
820
|
-
endTime: t.timeslot?.endTime,
|
|
821
|
-
reservationPrice: t.totalPrice,
|
|
822
|
-
reservationBasePrice: t.basePrice,
|
|
823
|
-
reservationAddOnsPrice: t.addOnsPrice,
|
|
824
|
-
pricingOptionId: t.pricingOptionId,
|
|
825
|
-
pricingOption: t.pricingOption,
|
|
826
|
-
resourceName: i?.name || "Unknown",
|
|
827
|
-
resourceColor: i?.color,
|
|
828
|
-
metadata: e.metadata || {},
|
|
829
|
-
reservationMetadata: t.metadata || {},
|
|
830
|
-
adjustments: e.adjustments || [],
|
|
831
|
-
reservationAdjustments: t.adjustments || []
|
|
832
|
-
};
|
|
833
|
-
}, S = async () => {
|
|
834
|
-
await le(), await new Promise((e) => {
|
|
835
|
-
if (typeof requestAnimationFrame == "function") {
|
|
836
|
-
requestAnimationFrame(() => e());
|
|
837
|
-
return;
|
|
838
|
-
}
|
|
839
|
-
e();
|
|
840
|
-
});
|
|
841
|
-
}, ee = async (e) => {
|
|
842
|
-
let t = await o.get(a.reservationsCollection, e);
|
|
843
|
-
if (!t) return;
|
|
844
|
-
let n = {
|
|
845
|
-
...t,
|
|
846
|
-
id: t.id || e
|
|
847
|
-
}, r = (n.reservations || []).map((e) => x(n, e));
|
|
848
|
-
r.length && (await S(), d.value?.openDialog({
|
|
849
|
-
id: n.id,
|
|
850
|
-
customerInfo: n.customerInfo,
|
|
851
|
-
status: n.status,
|
|
852
|
-
createdAt: n.createdAt,
|
|
853
|
-
metadata: n.metadata || {},
|
|
854
|
-
reservations: r,
|
|
855
|
-
adjustments: n.adjustments || [],
|
|
856
|
-
totalPrice: typeof n.total == "number" ? n.total : r.reduce((e, t) => e + (t.reservationPrice || 0), 0),
|
|
857
|
-
totalSpots: r.reduce((e, t) => e + (t.spots || 0), 0)
|
|
858
|
-
}));
|
|
859
|
-
}, C = async (e) => {
|
|
860
|
-
await S(), u.value?.openDialog(e);
|
|
861
|
-
}, w = async () => {
|
|
862
|
-
c.value = !0, s.value = [];
|
|
863
|
-
try {
|
|
864
|
-
let e = i.value.id, t = p(n.activeDate), r = /* @__PURE__ */ new Set();
|
|
865
|
-
n.resources?.forEach((e) => {
|
|
866
|
-
let n = `${e.id}_${t}`;
|
|
867
|
-
r.add(n);
|
|
868
|
-
});
|
|
869
|
-
let c = await o.find(a.reservationsCollection, { filters: [
|
|
870
|
-
{
|
|
871
|
-
field: "agendaId",
|
|
872
|
-
operator: "==",
|
|
873
|
-
value: e
|
|
874
|
-
},
|
|
875
|
-
{
|
|
876
|
-
field: "status",
|
|
877
|
-
operator: "==",
|
|
878
|
-
value: "confirmed"
|
|
879
|
-
},
|
|
880
|
-
{
|
|
881
|
-
field: "flattenedReservationDates",
|
|
882
|
-
operator: "array-contains-any",
|
|
883
|
-
value: Array.from(r)
|
|
884
|
-
}
|
|
885
|
-
] }), l = [];
|
|
886
|
-
c.forEach((e) => {
|
|
887
|
-
(e.reservations?.filter((e) => e.date === t) || []).forEach((n) => {
|
|
888
|
-
l.push(x(e, n, t));
|
|
889
|
-
});
|
|
890
|
-
}), s.value = l.sort((e, t) => e.startTime?.localeCompare(t.startTime || "") || 0);
|
|
891
|
-
} catch (e) {
|
|
892
|
-
console.error("Error loading orders:", e), s.value = [];
|
|
893
|
-
} finally {
|
|
894
|
-
c.value = !1;
|
|
895
|
-
}
|
|
896
|
-
};
|
|
897
|
-
return (async () => {
|
|
898
|
-
await w();
|
|
899
|
-
})(), Z(() => n.activeDate, () => {
|
|
900
|
-
w();
|
|
901
|
-
}), (t, n) => {
|
|
902
|
-
let i = J("Badge"), a = J("CardTitle"), o = J("CardDescription"), p = J("Button"), x = J("CardHeader"), S = J("Input"), T = J("CardContent"), E = J("Card");
|
|
903
|
-
return G(), F(E, null, {
|
|
904
|
-
default: Q(() => [
|
|
905
|
-
B(x, null, {
|
|
906
|
-
default: Q(() => [R("div", at, [R("div", null, [B(a, { class: "flex items-center gap-2" }, {
|
|
907
|
-
default: Q(() => [n[9] ||= z(" Bookings ", -1), X(_).bookings > 0 ? (G(), F(i, {
|
|
908
|
-
key: 0,
|
|
909
|
-
variant: "secondary"
|
|
910
|
-
}, {
|
|
911
|
-
default: Q(() => [z(Y(X(_).bookings), 1)]),
|
|
912
|
-
_: 1
|
|
913
|
-
})) : I("", !0)]),
|
|
914
|
-
_: 1
|
|
915
|
-
}), B(o, { class: "flex items-center gap-2 mt-1" }, {
|
|
916
|
-
default: Q(() => [B(X(we), { size: 14 }), R("span", null, Y(X(_).spots) + " total spots", 1)]),
|
|
917
|
-
_: 1
|
|
918
|
-
})]), B(p, {
|
|
919
|
-
variant: "ghost",
|
|
920
|
-
size: "icon",
|
|
921
|
-
onClick: w,
|
|
922
|
-
disabled: X(c)
|
|
923
|
-
}, {
|
|
924
|
-
default: Q(() => [B(X(Se), {
|
|
925
|
-
size: 16,
|
|
926
|
-
class: U({ "animate-spin": X(c) })
|
|
927
|
-
}, null, 8, ["class"])]),
|
|
928
|
-
_: 1
|
|
929
|
-
}, 8, ["disabled"])])]),
|
|
930
|
-
_: 1
|
|
931
|
-
}),
|
|
932
|
-
B(T, null, {
|
|
933
|
-
default: Q(() => [
|
|
934
|
-
R("div", ot, [
|
|
935
|
-
B(X(Ce), {
|
|
936
|
-
size: 16,
|
|
937
|
-
class: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
|
|
938
|
-
}),
|
|
939
|
-
B(S, {
|
|
940
|
-
modelValue: X(l),
|
|
941
|
-
"onUpdate:modelValue": n[0] ||= (e) => H(l) ? l.value = e : null,
|
|
942
|
-
placeholder: "Search by name, email, or phone...",
|
|
943
|
-
class: "pl-9 pr-9"
|
|
944
|
-
}, null, 8, ["modelValue"]),
|
|
945
|
-
X(l) ? (G(), F(p, {
|
|
946
|
-
key: 0,
|
|
947
|
-
variant: "ghost",
|
|
948
|
-
size: "icon",
|
|
949
|
-
class: "absolute right-1 top-1/2 -translate-y-1/2 h-7 w-7",
|
|
950
|
-
onClick: v
|
|
951
|
-
}, {
|
|
952
|
-
default: Q(() => [B(X(Te), { size: 14 })]),
|
|
953
|
-
_: 1
|
|
954
|
-
})) : I("", !0)
|
|
955
|
-
]),
|
|
956
|
-
R("div", st, [
|
|
957
|
-
e.agendaData.needsApproval ? (G(), L("button", {
|
|
958
|
-
key: 0,
|
|
959
|
-
onClick: n[1] ||= (e) => b("needs_approval"),
|
|
960
|
-
class: U(["px-3 py-1.5 rounded-full text-sm bg-muted", { "opacity-50 hover:opacity-75": !X(y).includes("needs_approval") }])
|
|
961
|
-
}, " Needs Approval ", 2)) : I("", !0),
|
|
962
|
-
R("button", {
|
|
963
|
-
onClick: n[2] ||= (e) => b("approved"),
|
|
964
|
-
class: U(["px-3 py-1.5 rounded-full text-sm bg-muted", { "opacity-50 hover:opacity-75": !X(y).includes("approved") }])
|
|
965
|
-
}, " Approved ", 2),
|
|
966
|
-
R("button", {
|
|
967
|
-
onClick: n[3] ||= (e) => b("rejected"),
|
|
968
|
-
class: U(["px-3 py-1.5 rounded-full text-sm bg-muted", { "opacity-50 hover:opacity-75": !X(y).includes("rejected") }])
|
|
969
|
-
}, " Rejected ", 2),
|
|
970
|
-
R("button", {
|
|
971
|
-
onClick: n[4] ||= (e) => b("cancelled"),
|
|
972
|
-
class: U(["px-3 py-1.5 rounded-full text-sm bg-muted", { "opacity-50 hover:opacity-75": !X(y).includes("cancelled") }])
|
|
973
|
-
}, " Cancelled ", 2)
|
|
974
|
-
]),
|
|
975
|
-
X(l) ? (G(), L("div", ct, " Showing " + Y(X(m).length) + " of " + Y(X(s).length) + " bookings ", 1)) : I("", !0),
|
|
976
|
-
X(c) ? (G(), L("div", lt, [...n[10] ||= [R("div", { class: "animate-spin rounded-full h-8 w-8 border-b-2 border-primary" }, null, -1)]])) : X(h).length === 0 ? (G(), L("div", ut, [
|
|
977
|
-
n[13] ||= z(" No bookings for this day ", -1),
|
|
978
|
-
X(g) ? (G(), F(p, {
|
|
979
|
-
key: 0,
|
|
980
|
-
onClick: n[5] ||= (e) => y.value = ["needs_approval", "approved"]
|
|
981
|
-
}, {
|
|
982
|
-
default: Q(() => [...n[11] ||= [z("Reset filters", -1)]]),
|
|
983
|
-
_: 1
|
|
984
|
-
})) : I("", !0),
|
|
985
|
-
e.selectedResource === null ? I("", !0) : (G(), F(p, {
|
|
986
|
-
key: 1,
|
|
987
|
-
onClick: n[6] ||= (e) => r("resetSelectedResource")
|
|
988
|
-
}, {
|
|
989
|
-
default: Q(() => [...n[12] ||= [z("Reset resource filter", -1)]]),
|
|
990
|
-
_: 1
|
|
991
|
-
}))
|
|
992
|
-
])) : X(m).length === 0 ? (G(), L("div", dt, " No bookings match your search ")) : (G(), L("div", ft, [(G(!0), L(N, null, q(X(m), (e) => (G(), L("div", {
|
|
993
|
-
key: e.res_id || e.id,
|
|
994
|
-
class: "p-3 border rounded-lg hover:bg-muted/50 transition-colors cursor-pointer",
|
|
995
|
-
onClick: (t) => X(u)?.openDialog(e)
|
|
996
|
-
}, [R("div", mt, [R("div", ht, [
|
|
997
|
-
R("div", gt, Y(e.customerInfo.firstName + " " + e.customerInfo.lastName || "Unknown Customer"), 1),
|
|
998
|
-
R("div", _t, Y(e.customerInfo?.email), 1),
|
|
999
|
-
R("div", vt, Y(e.customerInfo?.phone), 1),
|
|
1000
|
-
R("div", yt, [
|
|
1001
|
-
R("div", bt, [B(X(be), { size: 12 }), R("span", null, Y(e.startTime) + " - " + Y(e.endTime), 1)]),
|
|
1002
|
-
R("div", xt, [B(X(we), { size: 12 }), R("span", null, Y(e.spots) + " spots", 1)]),
|
|
1003
|
-
e.resourceName ? (G(), L("div", St, [R("div", {
|
|
1004
|
-
class: "w-3 h-3 rounded-full",
|
|
1005
|
-
style: W({ backgroundColor: e.resourceColor || "#6b7280" })
|
|
1006
|
-
}, null, 4), R("span", null, Y(e.resourceName), 1)])) : I("", !0)
|
|
1007
|
-
]),
|
|
1008
|
-
B(D, {
|
|
1009
|
-
metadata: {
|
|
1010
|
-
...e.metadata,
|
|
1011
|
-
...e.reservationMetadata
|
|
1012
|
-
},
|
|
1013
|
-
schema: X(f),
|
|
1014
|
-
"display-filter": ["highlight", "badge"],
|
|
1015
|
-
compact: "",
|
|
1016
|
-
class: "mt-1"
|
|
1017
|
-
}, null, 8, ["metadata", "schema"])
|
|
1018
|
-
]), R("div", Ct, [e.reservationStatus === "needs_approval" ? (G(), L("span", wt, "Needs Approval")) : e.reservationStatus === "approved" ? (G(), L("span", Tt, "Approved")) : e.reservationStatus === "rejected" ? (G(), L("span", Et, "Rejected")) : e.reservationStatus === "cancelled" ? (G(), L("span", Dt, "Cancelled")) : (G(), L("span", Ot, "Pending")), e.reservationPrice || e.reservationPrice === 0 ? (G(), L("div", kt, " €" + Y(e.reservationPrice.toFixed(2)), 1)) : I("", !0)])])], 8, pt))), 128))]))
|
|
1019
|
-
]),
|
|
1020
|
-
_: 1
|
|
1021
|
-
}),
|
|
1022
|
-
B(k, {
|
|
1023
|
-
ref_key: "reservationDetailDialog",
|
|
1024
|
-
ref: u,
|
|
1025
|
-
agendaData: e.agendaData,
|
|
1026
|
-
"show-order-link": "",
|
|
1027
|
-
onCancelled: w,
|
|
1028
|
-
onConfirmed: w,
|
|
1029
|
-
onRejected: w,
|
|
1030
|
-
onOpenOrder: n[7] ||= (e) => ee(e)
|
|
1031
|
-
}, null, 8, ["agendaData"]),
|
|
1032
|
-
B(A, {
|
|
1033
|
-
ref_key: "orderDetailDialog",
|
|
1034
|
-
ref: d,
|
|
1035
|
-
agendaData: e.agendaData,
|
|
1036
|
-
onOpenReservation: n[8] ||= (e) => C(e)
|
|
1037
|
-
}, null, 8, ["agendaData"])
|
|
1038
|
-
]),
|
|
1039
|
-
_: 1
|
|
1040
|
-
});
|
|
1041
|
-
};
|
|
1042
|
-
}
|
|
1043
|
-
}), jt = { class: "space-y-6" }, Mt = { class: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4" }, Nt = { class: "text-2xl font-semibold tracking-tight" }, Pt = { class: "flex flex-col md:flex-row gap-2" }, Ft = { class: "grid gap-6 md:grid-cols-2 lg:grid-cols-3" }, It = { class: "md:col-span-2 lg:col-span-3" }, Lt = /* @__PURE__ */ V({
|
|
1044
|
-
__name: "index",
|
|
1045
|
-
setup(e) {
|
|
1046
|
-
let { hasPermission: t } = se(), { params: n, resolvePath: r } = M(), { config: i } = j(), a = oe(i.project), o = K(""), s = K(!0), c = K(/* @__PURE__ */ new Date()), l = K(null), u = K("stacked"), d = K(null), f = K([]);
|
|
1047
|
-
return (async () => {
|
|
1048
|
-
try {
|
|
1049
|
-
let e = await a.get(i.agendaCollection, n.value.id);
|
|
1050
|
-
o.value = e?.serviceName || "", d.value = e, f.value = e?.resources?.filter((e) => e.isActive) || [];
|
|
1051
|
-
} catch (e) {
|
|
1052
|
-
console.error("Error loading data:", e);
|
|
1053
|
-
} finally {
|
|
1054
|
-
s.value = !1;
|
|
1055
|
-
}
|
|
1056
|
-
})(), (e, n) => (G(), F(ne, null, {
|
|
1057
|
-
default: Q(() => [R("div", jt, [
|
|
1058
|
-
R("div", Mt, [R("div", null, [R("h1", Nt, Y(X(o) || "Dashboard"), 1), n[4] ||= R("p", { class: "text-muted-foreground text-sm mt-1" }, " Overview and analytics for your booking service ", -1)]), R("div", Pt, [X(t)("manage-reservations") ? (G(), F(ie, {
|
|
1059
|
-
key: 0,
|
|
1060
|
-
"agenda-data": X(d)
|
|
1061
|
-
}, null, 8, ["agenda-data"])) : I("", !0)])]),
|
|
1062
|
-
B(it, {
|
|
1063
|
-
modelValue: X(c),
|
|
1064
|
-
"onUpdate:modelValue": n[0] ||= (e) => H(c) ? c.value = e : null,
|
|
1065
|
-
"view-mode": X(u),
|
|
1066
|
-
"onUpdate:viewMode": n[1] ||= (e) => H(u) ? u.value = e : null,
|
|
1067
|
-
"selected-resource": X(l),
|
|
1068
|
-
"onUpdate:selectedResource": n[2] ||= (e) => H(l) ? l.value = e : null,
|
|
1069
|
-
"agenda-data": X(d),
|
|
1070
|
-
resources: X(f)
|
|
1071
|
-
}, null, 8, [
|
|
1072
|
-
"modelValue",
|
|
1073
|
-
"view-mode",
|
|
1074
|
-
"selected-resource",
|
|
1075
|
-
"agenda-data",
|
|
1076
|
-
"resources"
|
|
1077
|
-
]),
|
|
1078
|
-
R("div", Ft, [R("div", It, [X(f).length > 0 ? (G(), F(At, {
|
|
1079
|
-
key: 0,
|
|
1080
|
-
"agenda-data": X(d),
|
|
1081
|
-
"active-date": X(c),
|
|
1082
|
-
"selected-resource": X(l),
|
|
1083
|
-
resources: X(f),
|
|
1084
|
-
onResetSelectedResource: n[3] ||= (e) => l.value = null
|
|
1085
|
-
}, null, 8, [
|
|
1086
|
-
"agenda-data",
|
|
1087
|
-
"active-date",
|
|
1088
|
-
"selected-resource",
|
|
1089
|
-
"resources"
|
|
1090
|
-
])) : I("", !0)])])
|
|
1091
|
-
])]),
|
|
1092
|
-
_: 1
|
|
1093
|
-
}));
|
|
1094
|
-
}
|
|
1095
|
-
});
|
|
1096
|
-
//#endregion
|
|
1097
|
-
export { Lt as default };
|