@oneclick.dev/cms-core-modules 0.0.114 → 0.0.116

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.
Files changed (87) hide show
  1. package/dist/{ContentEditor-MctMvN7D.js → ContentEditor-CsbOFg3a.js} +52 -52
  2. package/dist/{ContentEditor-C5yNNLeV.mjs → ContentEditor-Df5uWpVC.mjs} +10337 -8677
  3. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-gozJKXvM.js +1 -0
  4. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-pDO9b4Pv.mjs +77 -0
  5. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-BHeMJ6nr.mjs +1476 -0
  6. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-C2zwt5UF.js +1 -0
  7. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-BYSeUW_V.js +925 -0
  8. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-DwAUYR8p.mjs +5021 -0
  9. package/dist/Overview-CBahJviK.js +1 -0
  10. package/dist/Overview-CVQ1pkuD.mjs +527 -0
  11. package/dist/TableView-Csv5Lycy.mjs +6234 -0
  12. package/dist/TableView-Cwal0BPW.js +4 -0
  13. package/dist/agenda-BSdlrfxv.mjs +1253 -0
  14. package/dist/agenda-Bev1mO7E.js +1 -0
  15. package/dist/availability-ClBGVgE9.js +1 -0
  16. package/dist/availability-D8JdA4rP.mjs +274 -0
  17. package/dist/booking-data-Px7XCIfU.mjs +1024 -0
  18. package/dist/booking-data-aMS1p_3g.js +1 -0
  19. package/dist/cms-core-modules.css +1 -1
  20. package/dist/exceptions-CqityDo9.mjs +651 -0
  21. package/dist/exceptions-DXqc0Nza.js +1 -0
  22. package/dist/index-CM4eaK5T.mjs +1245 -0
  23. package/dist/index-DliTZzwI.js +35 -0
  24. package/dist/index.cjs.js +1 -1
  25. package/dist/index.mjs +12 -11
  26. package/dist/orders-1swJVKw2.js +1 -0
  27. package/dist/orders-D41GbzIa.mjs +624 -0
  28. package/dist/payment-BJHgpaeT.js +1 -0
  29. package/dist/payment-D5j-68Ig.mjs +1278 -0
  30. package/dist/refunds-D9nTeD2d.mjs +436 -0
  31. package/dist/refunds-oVB2Opib.js +1 -0
  32. package/dist/resources-8WouFvJe.js +1 -0
  33. package/dist/resources-B-D5MUhV.mjs +975 -0
  34. package/dist/server-handlers.cjs.js +1 -1
  35. package/dist/server-handlers.mjs +626 -515
  36. package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +146 -5
  37. package/dist/src/appointments/components/edit/EventDialog/CancelRefundReservationDialog.vue.d.ts +33 -0
  38. package/dist/src/appointments/components/edit/EventDialog/OrderDetailDialog.vue.d.ts +26 -8
  39. package/dist/src/appointments/components/edit/EventDialog/RefundDetailsDisplay.vue.d.ts +8 -0
  40. package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +91 -5
  41. package/dist/src/appointments/components/edit/EventDialog/TransferReservationDialog.vue.d.ts +20 -3
  42. package/dist/src/appointments/components/edit/NewReservationDialog/ReservationLines.vue.d.ts +5 -0
  43. package/dist/src/appointments/components/edit/OrderMetadataDisplay.vue.d.ts +20 -2
  44. package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +240 -0
  45. package/dist/src/appointments/composables/useAgendaMetadataSchema.d.ts +37 -0
  46. package/dist/src/appointments/pages/edit/orders.vue.d.ts +225 -0
  47. package/dist/src/appointments/pages/edit/refunds.vue.d.ts +2 -0
  48. package/dist/src/appointments/server.d.ts +2 -0
  49. package/dist/src/appointments/types.d.ts +6 -0
  50. package/dist/src/appointments/utils/printReservation.d.ts +65 -3
  51. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/Table.d.ts +36 -0
  52. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/Table.vue.d.ts +95 -0
  53. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/TableCell.d.ts +13 -0
  54. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/TableHeader.d.ts +6 -0
  55. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/TableRow.d.ts +6 -0
  56. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/index.d.ts +4 -0
  57. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/TableMenu.vue.d.ts +13 -0
  58. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +14 -0
  59. package/package.json +2 -2
  60. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs +0 -76
  61. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-kpjbVSXg.js +0 -1
  62. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Baqy-rTT.js +0 -1
  63. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dx4Bpa2m.mjs +0 -1263
  64. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-COrK1j0S.js +0 -1
  65. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-Vb3q8EVv.mjs +0 -330
  66. package/dist/Overview-98nkJUWN.mjs +0 -481
  67. package/dist/Overview-Dl8cMlsr.js +0 -1
  68. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CuwREvXD.js +0 -349
  69. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-GYNZ_yhD.mjs +0 -3077
  70. package/dist/TableView-CVfkyj1k.js +0 -4
  71. package/dist/TableView-zDx0IegJ.mjs +0 -6096
  72. package/dist/agenda-BaJu3-1c.js +0 -1
  73. package/dist/agenda-BwVY_8oM.mjs +0 -1165
  74. package/dist/availability-CMrRa5y2.mjs +0 -269
  75. package/dist/availability-Cf2YfMwM.js +0 -1
  76. package/dist/booking-data-DgJd0BcM.mjs +0 -889
  77. package/dist/booking-data-Di5GmH_8.js +0 -1
  78. package/dist/exceptions-B6P9UiCj.js +0 -1
  79. package/dist/exceptions-De9-FvdP.mjs +0 -646
  80. package/dist/index-DL6orwdK.js +0 -35
  81. package/dist/index-hH3e-IYz.mjs +0 -1187
  82. package/dist/orders-C65SlpJy.mjs +0 -618
  83. package/dist/orders-XVzWAgG1.js +0 -1
  84. package/dist/payment-C3ohkehF.mjs +0 -1080
  85. package/dist/payment-Dfr-Ro-a.js +0 -1
  86. package/dist/resources-CxeFd57z.js +0 -1
  87. package/dist/resources-DwYxn2Vi.mjs +0 -811
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),s=require("@oneclick.dev/cms-kit"),o=require("lucide-vue-next"),g={key:1,class:"@container mt-4 w-full"},k={class:"flex flex-col space-y-8 @5xl:flex-row @5xl:space-x-8 @5xl:space-y-0 w-full"},_={key:0,class:"hidden @5xl:block @5xl:w-1/4 @7xl:w-1/5"},C={class:"flex flex-col flex-1"},x={key:0,class:"@5xl:hidden"},b=e.defineComponent({__name:"EditLayout",setup(h){const{params:t,resolvePath:n}=s.useModuleRoute(),{hasPermission:l,isAdmin:c}=s.useModulePermissions(),u=s.useRoute();s.useModuleBreadcrumbs(()=>[{text:"Edit"}]);const r=e.computed(()=>{if(!l("edit-agendas"))return[];let i=[{to:n(`/edit/${t.value.id}/`),title:"Overview",icon:o.ClipboardClock,subtitle:"General info and quick details"},{to:n(`/edit/${t.value.id}/agenda`),title:"Agenda",icon:o.Calendar,subtitle:"Manage scheduled events and sessions"},{to:n(`/edit/${t.value.id}/orders`),title:"Orders",icon:o.Receipt,subtitle:"Manage orders and payments"},{title:"Settings",icon:o.CalendarCog,items:[]}].filter(Boolean),a=[l("manage-resources")?{to:n(`/edit/${t.value.id}/resources`),title:"Resource Management",icon:o.User,subtitle:"Manage resources"}:null,l("manage-overrides")?{to:n(`/edit/${t.value.id}/exceptions`),title:"Override Slots",icon:o.CalendarCog,subtitle:"Adjust or block times"}:null,l("manage-availability")?{to:n(`/edit/${t.value.id}/availability`),title:"Availability Settings",icon:o.Tickets,subtitle:"Booking rules & limits"}:null,l("manage-payment")?{to:n(`/edit/${t.value.id}/payment`),title:"Payment Settings",icon:o.HandCoins,subtitle:"Payment options & policies"}:null,c()?{to:n(`/edit/${t.value.id}/refunds`),title:"Refunds",icon:o.BadgeEuro,subtitle:"Cancel & refund flows"}:null,l("manage-booking-data")?{to:n(`/edit/${t.value.id}/booking-data`),title:"Booking Data",icon:o.FileText,subtitle:"Customer form fields & order metadata"}:null].filter(Boolean);return i.find(d=>d.title==="Settings")?.items?.push(...a),i});return(i,a)=>{const d=e.resolveComponent("NuxtLink"),m=e.resolveComponent("VerticalNav"),f=e.resolveComponent("DrawerNav"),p=e.resolveComponent("CardContent"),v=e.resolveComponent("Card");return!e.unref(l)("edit-agendas")&&!e.unref(u).fullPath.endsWith("/agenda")?(e.openBlock(),e.createBlock(d,{key:0,class:"group",to:e.unref(n)(`/edit/${e.unref(t).id}/agenda`)},{default:e.withCtx(()=>[...a[0]||(a[0]=[e.createTextVNode("You have no access to this page. ",-1),e.createElementVNode("span",{class:"group-hover:underline"},"View agenda",-1)])]),_:1},8,["to"])):(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[e.unref(l)("edit-agendas")?(e.openBlock(),e.createElementBlock("div",_,[e.createVNode(m,{links:e.unref(r)},null,8,["links"])])):e.createCommentVNode("",!0),e.createElementVNode("div",C,[e.unref(l)("edit-agendas")?(e.openBlock(),e.createElementBlock("div",x,[e.createVNode(f,{links:e.unref(r)},null,8,["links"])])):e.createCommentVNode("",!0),e.createVNode(v,{class:"flex-1 w-full"},{default:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3})]),_:3})])])]))}}});exports._sfc_main=b;
@@ -0,0 +1,77 @@
1
+ import { defineComponent as h, computed as y, resolveComponent as o, unref as n, openBlock as s, createBlock as w, withCtx as u, createTextVNode as $, createElementVNode as c, createElementBlock as m, createVNode as d, createCommentVNode as f, renderSlot as N } from "vue";
2
+ import { useModuleRoute as B, useModulePermissions as M, useRoute as V, useModuleBreadcrumbs as P } from "@oneclick.dev/cms-kit";
3
+ import { ClipboardClock as S, Calendar as E, Receipt as L, CalendarCog as g, User as R, Tickets as A, HandCoins as D, BadgeEuro as O, FileText as T } from "lucide-vue-next";
4
+ const j = {
5
+ key: 1,
6
+ class: "@container mt-4 w-full"
7
+ }, q = { class: "flex flex-col space-y-8 @5xl:flex-row @5xl:space-x-8 @5xl:space-y-0 w-full" }, F = {
8
+ key: 0,
9
+ class: "hidden @5xl:block @5xl:w-1/4 @7xl:w-1/5"
10
+ }, G = { class: "flex flex-col flex-1" }, H = {
11
+ key: 0,
12
+ class: "@5xl:hidden"
13
+ }, I = /* @__PURE__ */ h({
14
+ __name: "EditLayout",
15
+ setup(U) {
16
+ const { params: e, resolvePath: t } = B(), { hasPermission: i, isAdmin: v } = M(), _ = V();
17
+ P(() => [
18
+ { text: "Edit" }
19
+ ]);
20
+ const p = y(() => {
21
+ if (!i("edit-agendas")) return [];
22
+ let l = [
23
+ { to: t(`/edit/${e.value.id}/`), title: "Overview", icon: S, subtitle: "General info and quick details" },
24
+ { to: t(`/edit/${e.value.id}/agenda`), title: "Agenda", icon: E, subtitle: "Manage scheduled events and sessions" },
25
+ { to: t(`/edit/${e.value.id}/orders`), title: "Orders", icon: L, subtitle: "Manage orders and payments" },
26
+ { title: "Settings", icon: g, items: [] }
27
+ ].filter(Boolean), a = [
28
+ i("manage-resources") ? { to: t(`/edit/${e.value.id}/resources`), title: "Resource Management", icon: R, subtitle: "Manage resources" } : null,
29
+ i("manage-overrides") ? { to: t(`/edit/${e.value.id}/exceptions`), title: "Override Slots", icon: g, subtitle: "Adjust or block times" } : null,
30
+ i("manage-availability") ? { to: t(`/edit/${e.value.id}/availability`), title: "Availability Settings", icon: A, subtitle: "Booking rules & limits" } : null,
31
+ i("manage-payment") ? { to: t(`/edit/${e.value.id}/payment`), title: "Payment Settings", icon: D, subtitle: "Payment options & policies" } : null,
32
+ v() ? { to: t(`/edit/${e.value.id}/refunds`), title: "Refunds", icon: O, subtitle: "Cancel & refund flows" } : null,
33
+ i("manage-booking-data") ? { to: t(`/edit/${e.value.id}/booking-data`), title: "Booking Data", icon: T, subtitle: "Customer form fields & order metadata" } : null
34
+ ].filter(Boolean);
35
+ return l.find((r) => r.title === "Settings")?.items?.push(...a), l;
36
+ });
37
+ return (l, a) => {
38
+ const r = o("NuxtLink"), k = o("VerticalNav"), x = o("DrawerNav"), b = o("CardContent"), C = o("Card");
39
+ return !n(i)("edit-agendas") && !n(_).fullPath.endsWith("/agenda") ? (s(), w(r, {
40
+ key: 0,
41
+ class: "group",
42
+ to: n(t)(`/edit/${n(e).id}/agenda`)
43
+ }, {
44
+ default: u(() => [...a[0] || (a[0] = [
45
+ $("You have no access to this page. ", -1),
46
+ c("span", { class: "group-hover:underline" }, "View agenda", -1)
47
+ ])]),
48
+ _: 1
49
+ }, 8, ["to"])) : (s(), m("div", j, [
50
+ c("div", q, [
51
+ n(i)("edit-agendas") ? (s(), m("div", F, [
52
+ d(k, { links: n(p) }, null, 8, ["links"])
53
+ ])) : f("", !0),
54
+ c("div", G, [
55
+ n(i)("edit-agendas") ? (s(), m("div", H, [
56
+ d(x, { links: n(p) }, null, 8, ["links"])
57
+ ])) : f("", !0),
58
+ d(C, { class: "flex-1 w-full" }, {
59
+ default: u(() => [
60
+ d(b, null, {
61
+ default: u(() => [
62
+ N(l.$slots, "default")
63
+ ]),
64
+ _: 3
65
+ })
66
+ ]),
67
+ _: 3
68
+ })
69
+ ])
70
+ ])
71
+ ]));
72
+ };
73
+ }
74
+ });
75
+ export {
76
+ I as _
77
+ };