@oneclick.dev/cms-core-modules 0.0.59 → 0.0.60

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 (147) hide show
  1. package/dist/{Components-D9yIIosM.mjs → Components-C83O-xlF.mjs} +1 -1
  2. package/dist/{ContentEditor-DCmt_y_R.js → ContentEditor-BAepN3Yd.js} +51 -34
  3. package/dist/{ContentEditor-CtGeIzC4.mjs → ContentEditor-BPjWW3d1.mjs} +12341 -10099
  4. package/dist/Create-Bh4g6QW4.js +1 -0
  5. package/dist/{Create-Bwf1RXdG.mjs → Create-Cf7pvh5G.mjs} +38 -39
  6. package/dist/DateFormatter-BPPBZp1j.js +1 -0
  7. package/dist/{CalendarDate-CRT2Viyt.mjs → DateFormatter-DsmlAuYV.mjs} +353 -256
  8. package/dist/{Detail-CpfOQChd.mjs → Detail-B4b_FLDa.mjs} +2 -2
  9. package/dist/{Detail-B-PnkcXD.mjs → Detail-BGD75ul4.mjs} +2 -2
  10. package/dist/{Detail-Dd_OkpcN.js → Detail-BayNaAg9.js} +1 -1
  11. package/dist/{Detail-C4E1T87K.mjs → Detail-Byk781b4.mjs} +3 -3
  12. package/dist/{Detail-Cd5CBVN0.js → Detail-CnK-qbhE.js} +1 -1
  13. package/dist/Detail-CtbWzq-R.js +1 -0
  14. package/dist/{Detail-CNfTDUE5.js → Detail-Cxd2VMOl.js} +1 -1
  15. package/dist/{Detail-BVlGSjOq.mjs → Detail-D10shmpK.mjs} +6 -7
  16. package/dist/{Detail-CwagT6gQ.mjs → Detail-U0mgLKt6.mjs} +2 -2
  17. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-CcysXzmW.mjs +75 -0
  18. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-Czu6Dcde.js +1 -0
  19. package/dist/{Entries-zyhycw1M.mjs → Entries-C6Di46My.mjs} +1 -1
  20. package/dist/{Find-BPR0uU-Z.mjs → Find-B4sAEx0B.mjs} +2 -2
  21. package/dist/{Find-BidEQJxT.js → Find-Ds6OvuH6.js} +1 -1
  22. package/dist/{GlobalStyling-BLQ_1W2y.mjs → GlobalStyling-C9VthHWK.mjs} +1 -1
  23. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-BJitmbPE.mjs +396 -0
  24. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-D50uTpZY.js +1 -0
  25. package/dist/Overview-B-8TLLjh.js +1 -0
  26. package/dist/{Overview-CDN88OSM.mjs → Overview-BCpJNiEB.mjs} +1 -1
  27. package/dist/Overview-B_99j5eA.js +1 -0
  28. package/dist/{Overview-BLsZMHNW.mjs → Overview-CIa1E-HH.mjs} +1 -1
  29. package/dist/{Overview-D1nJLBe1.mjs → Overview-CgViRnNc.mjs} +1 -1
  30. package/dist/Overview-DtWvKB3W.mjs +327 -0
  31. package/dist/Overview-HvlDEgqi.mjs +862 -0
  32. package/dist/{Overview-BH3NwvNX.mjs → Overview-Su8ZUbMs.mjs} +3 -3
  33. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CI8YgHdU.js +345 -0
  34. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-P-MWwcVh.mjs +2093 -0
  35. package/dist/{TableView-CS13LLxk.mjs → TableView-B8iLWWcP.mjs} +48394 -36321
  36. package/dist/TableView-BxK6R8v3.js +312 -0
  37. package/dist/{TemplateList.vue_vue_type_script_setup_true_lang-BiLAkhIA.mjs → TemplateList.vue_vue_type_script_setup_true_lang-Cmovy7kk.mjs} +5 -5
  38. package/dist/{View-C7axVP9t.mjs → View-DDXN0tKD.mjs} +7 -7
  39. package/dist/View-DfzaVOzS.js +1 -0
  40. package/dist/agenda-D81m29_4.mjs +1135 -0
  41. package/dist/agenda-uzPPxgsW.js +1 -0
  42. package/dist/availability-B-tRp8hB.mjs +629 -0
  43. package/dist/availability-BiBbzEIM.js +1 -0
  44. package/dist/{exceptions-D3b18TiY.mjs → exceptions-BFchkR06.mjs} +70 -71
  45. package/dist/exceptions-C-DPRNQa.js +1 -0
  46. package/dist/index-4tjmIans.js +1 -0
  47. package/dist/index-AmUV8LZQ.mjs +176 -0
  48. package/dist/index-BDaVYdkD.mjs +7763 -0
  49. package/dist/{index-DT1wWnUk.mjs → index-BWDwEd8D.mjs} +1 -1
  50. package/dist/{index-CImCyE3L.mjs → index-BfBBm9uY.mjs} +1 -1
  51. package/dist/{index-DMoyoaks.mjs → index-Bkq58CeQ.mjs} +2 -2
  52. package/dist/{index-DI6mydpm.mjs → index-CABh6Qn6.mjs} +2 -2
  53. package/dist/{index-CQiY-oTN.mjs → index-CQkOH2_3.mjs} +1 -1
  54. package/dist/{index-Bwi1mtkq.mjs → index-CU-tbS5W.mjs} +1 -1
  55. package/dist/{index-BzuHN-r8.mjs → index-Cpnn_Pxd.mjs} +1 -1
  56. package/dist/index-CxETuRsG.js +1 -0
  57. package/dist/{index-DyCHxFp3.mjs → index-DRqJOqUR.mjs} +502 -449
  58. package/dist/index-DTago6vW-Bhr8E1Y6.js +88 -0
  59. package/dist/index-DTago6vW-CnomHQ_S.mjs +4123 -0
  60. package/dist/index-DfV8-6ON.js +245 -0
  61. package/dist/index-Dnn2SCSl.js +1 -0
  62. package/dist/{index-BEGU8Kme.mjs → index-Dpl9sU6a.mjs} +2 -2
  63. package/dist/index-Uf7TwBuW.mjs +110 -0
  64. package/dist/index-YMaY4uuk-BgpTtr73.js +1 -0
  65. package/dist/{index-CKPshlZ8-BQiiP6r_.mjs → index-YMaY4uuk-C_xV5K9Z.mjs} +399 -363
  66. package/dist/{index--jjEzba7.mjs → index-cOnxXTbF.mjs} +1 -1
  67. package/dist/index-hlylYYgy.mjs +24 -0
  68. package/dist/index.cjs.js +1 -1
  69. package/dist/index.mjs +98 -81
  70. package/dist/orders-Bh8w0ueq.mjs +346 -0
  71. package/dist/orders-Dt0zMz97.js +1 -0
  72. package/dist/payment-BQaAqQ5q.js +1 -0
  73. package/dist/payment-BbWByERf.mjs +1080 -0
  74. package/dist/regular-1LXNPviB.js +1 -0
  75. package/dist/regular-_05oq5Tx.mjs +1101 -0
  76. package/dist/regular-slots-Bs3WJB3U.js +1 -0
  77. package/dist/regular-slots-C2NYxLPn.mjs +222 -0
  78. package/dist/resources-DgPnEv76.mjs +811 -0
  79. package/dist/resources-eb0pivDL.js +1 -0
  80. package/dist/src/appointments/components/edit/EditLayout.vue.d.ts +2 -2
  81. package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +92 -0
  82. package/dist/src/appointments/components/edit/EventDialog/CancelReservationDialog.vue.d.ts +8 -0
  83. package/dist/src/appointments/components/edit/EventDialog/EventDialog.vue.d.ts +10 -0
  84. package/dist/src/appointments/components/edit/{EventDialog.vue.d.ts → EventDialog/ResendConfirmationDialog.vue.d.ts} +1 -1
  85. package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +51 -0
  86. package/dist/src/appointments/components/edit/EventDialog/TimelineChart.vue.d.ts +24 -0
  87. package/dist/src/appointments/components/edit/EventDialog/TransferReservationDialog.vue.d.ts +4 -0
  88. package/dist/src/appointments/components/edit/EventTimeline.vue.d.ts +15 -7
  89. package/dist/src/appointments/components/edit/NewReservationDialog/NewReservationDialog.vue.d.ts +2 -0
  90. package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +68 -0
  91. package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +15 -0
  92. package/dist/src/appointments/components/edit/dashboard/timeline/ResourceSelector.vue.d.ts +50 -0
  93. package/dist/src/appointments/config.d.ts +30 -0
  94. package/dist/src/appointments/index.d.ts +32 -5
  95. package/dist/src/appointments/pages/edit/agenda.vue.d.ts +1 -1
  96. package/dist/src/appointments/pages/edit/availability.vue.d.ts +1 -1
  97. package/dist/src/appointments/pages/edit/index.vue.d.ts +1 -1
  98. package/dist/src/appointments/pages/edit/orders.vue.d.ts +64 -0
  99. package/dist/src/appointments/pages/edit/payment.vue.d.ts +1 -1
  100. package/dist/src/appointments/pages/edit/regular-slots.vue.d.ts +1 -1
  101. package/dist/src/appointments/pages/edit/resources.vue.d.ts +1 -1
  102. package/dist/src/appointments/routes.d.ts +2 -5
  103. package/dist/src/appointments/types.d.ts +16 -0
  104. package/dist/src/appointments/utils/printReservation.d.ts +45 -0
  105. package/dist/src/content-manager/components/content-editor/ContentStructuredContentSections.vue.d.ts +4 -0
  106. package/dist/src/content-manager/components/content-editor/PageSettings.vue.d.ts +2 -0
  107. package/dist/src/content-manager/components/content-editor/SidebarSectionWrapper.vue.d.ts +11 -1
  108. package/dist/src/content-manager/types.d.ts +5 -0
  109. package/dist/{vee-validate-zod-BPQyEfpF.js → vee-validate-zod-ByykgYKJ.js} +1 -1
  110. package/dist/{vee-validate-zod-IXkfh-6Q.mjs → vee-validate-zod-CcOwoF6y.mjs} +4 -4
  111. package/package.json +4 -2
  112. package/dist/CalendarDate-CWtpXgpD.js +0 -1
  113. package/dist/Create-BP8TX6rj.js +0 -1
  114. package/dist/DateFormatter-BbcSwTs4.js +0 -1
  115. package/dist/DateFormatter-CbO0PVUK.mjs +0 -99
  116. package/dist/Detail-DUo6qKqO.js +0 -1
  117. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-BWuKVkvV.js +0 -1
  118. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-D0-EcU0_.mjs +0 -55
  119. package/dist/Overview-BNMZ9MUK.js +0 -1
  120. package/dist/Overview-CEPodGCn.mjs +0 -311
  121. package/dist/Overview-CvquDPhB.js +0 -1
  122. package/dist/Overview-D67UjG6n.mjs +0 -947
  123. package/dist/RegularSlotEditor.vue_vue_type_script_setup_true_lang-0xZSq0rx.js +0 -1
  124. package/dist/RegularSlotEditor.vue_vue_type_script_setup_true_lang-Bj_PVLLV.mjs +0 -392
  125. package/dist/TableView-Dv4YXBD1.js +0 -111
  126. package/dist/View-7qb_ohVo.js +0 -1
  127. package/dist/agenda-B49oKGeh.mjs +0 -706
  128. package/dist/agenda-DipQ5IWP.js +0 -1
  129. package/dist/availability-C7q9tq6l.js +0 -1
  130. package/dist/availability-DeCkqiu8.mjs +0 -613
  131. package/dist/exceptions-DJ9zWX3k.js +0 -1
  132. package/dist/index-CKPshlZ8-CIz1tDwX.js +0 -1
  133. package/dist/index-DUeFrD-B.js +0 -1
  134. package/dist/index-DsnoK4ia.mjs +0 -579
  135. package/dist/index-WL1P6d3j.js +0 -1
  136. package/dist/index-_mG-aU3Z.mjs +0 -87
  137. package/dist/index-_sQDF1pH.js +0 -1
  138. package/dist/index-klI238nT.mjs +0 -24
  139. package/dist/payment-kTjsV0Jj.js +0 -1
  140. package/dist/payment-zpCM0LD-.mjs +0 -981
  141. package/dist/regular-C4_3YXqx.mjs +0 -602
  142. package/dist/regular-DFwPEbZO.js +0 -1
  143. package/dist/regular-slots-4ooEpICB.mjs +0 -67
  144. package/dist/regular-slots-BAVGbomI.js +0 -1
  145. package/dist/resources-MpQkSstv.mjs +0 -563
  146. package/dist/resources-iM28T3dD.js +0 -1
  147. package/dist/src/appointments/components/edit/RegularSlotEditor.vue.d.ts +0 -16
@@ -0,0 +1,176 @@
1
+ import { t as E, i as y, a as O, b as W, c as z, p as M, d as R, e as B } from "./index-Uf7TwBuW.mjs";
2
+ import { computed as b, shallowRef as p, watch as S, toValue as w, watchEffect as H, hasInjectionContext as C, unref as N, getCurrentInstance as T, onMounted as L } from "vue";
3
+ const g = y ? window : void 0;
4
+ function m(o) {
5
+ var e;
6
+ const u = w(o);
7
+ return (e = u?.$el) != null ? e : u;
8
+ }
9
+ function I(...o) {
10
+ const e = [], u = () => {
11
+ e.forEach((t) => t()), e.length = 0;
12
+ }, f = (t, i, s, c) => (t.addEventListener(i, s, c), () => t.removeEventListener(i, s, c)), d = b(() => {
13
+ const t = W(w(o[0])).filter((i) => i != null);
14
+ return t.every((i) => typeof i != "string") ? t : void 0;
15
+ }), h = z(
16
+ () => {
17
+ var t, i;
18
+ return [
19
+ (i = (t = d.value) == null ? void 0 : t.map((s) => m(s))) != null ? i : [g].filter((s) => s != null),
20
+ W(w(d.value ? o[1] : o[0])),
21
+ W(N(d.value ? o[2] : o[1])),
22
+ // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
23
+ w(d.value ? o[3] : o[2])
24
+ ];
25
+ },
26
+ ([t, i, s, c]) => {
27
+ if (u(), !t?.length || !i?.length || !s?.length)
28
+ return;
29
+ const n = B(c) ? { ...c } : c;
30
+ e.push(
31
+ ...t.flatMap(
32
+ (a) => i.flatMap(
33
+ (v) => s.map((r) => f(a, v, r, n))
34
+ )
35
+ )
36
+ );
37
+ },
38
+ { flush: "post" }
39
+ ), l = () => {
40
+ h(), u();
41
+ };
42
+ return O(u), l;
43
+ }
44
+ // @__NO_SIDE_EFFECTS__
45
+ function P() {
46
+ const o = p(!1), e = T();
47
+ return e && L(() => {
48
+ o.value = !0;
49
+ }, e), o;
50
+ }
51
+ // @__NO_SIDE_EFFECTS__
52
+ function V(o) {
53
+ const e = /* @__PURE__ */ P();
54
+ return b(() => (e.value, !!o()));
55
+ }
56
+ const j = /* @__PURE__ */ Symbol("vueuse-ssr-width");
57
+ // @__NO_SIDE_EFFECTS__
58
+ function A() {
59
+ const o = C() ? R(j, null) : null;
60
+ return typeof o == "number" ? o : void 0;
61
+ }
62
+ function F(o, e = {}) {
63
+ const { window: u = g, ssrWidth: f = /* @__PURE__ */ A() } = e, d = /* @__PURE__ */ V(() => u && "matchMedia" in u && typeof u.matchMedia == "function"), h = p(typeof f == "number"), l = p(), t = p(!1), i = (s) => {
64
+ t.value = s.matches;
65
+ };
66
+ return H(() => {
67
+ if (h.value) {
68
+ h.value = !d.value;
69
+ const s = w(o).split(",");
70
+ t.value = s.some((c) => {
71
+ const n = c.includes("not all"), a = c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), v = c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
72
+ let r = !!(a || v);
73
+ return a && r && (r = f >= M(a[1])), v && r && (r = f <= M(v[1])), n ? !r : r;
74
+ });
75
+ return;
76
+ }
77
+ d.value && (l.value = u.matchMedia(w(o)), t.value = l.value.matches);
78
+ }), I(l, "change", i, { passive: !0 }), b(() => t.value);
79
+ }
80
+ function Q(o, e, u = {}) {
81
+ const { window: f = g, ...d } = u;
82
+ let h;
83
+ const l = /* @__PURE__ */ V(() => f && "ResizeObserver" in f), t = () => {
84
+ h && (h.disconnect(), h = void 0);
85
+ }, i = b(() => {
86
+ const n = w(o);
87
+ return Array.isArray(n) ? n.map((a) => m(a)) : [m(n)];
88
+ }), s = S(
89
+ i,
90
+ (n) => {
91
+ if (t(), l.value && f) {
92
+ h = new ResizeObserver(e);
93
+ for (const a of n)
94
+ a && h.observe(a, d);
95
+ }
96
+ },
97
+ { immediate: !0, flush: "post" }
98
+ ), c = () => {
99
+ t(), s();
100
+ };
101
+ return O(c), {
102
+ isSupported: l,
103
+ stop: c
104
+ };
105
+ }
106
+ function D(o, e = { width: 0, height: 0 }, u = {}) {
107
+ const { window: f = g, box: d = "content-box" } = u, h = b(() => {
108
+ var n, a;
109
+ return (a = (n = m(o)) == null ? void 0 : n.namespaceURI) == null ? void 0 : a.includes("svg");
110
+ }), l = p(e.width), t = p(e.height), { stop: i } = Q(
111
+ o,
112
+ ([n]) => {
113
+ const a = d === "border-box" ? n.borderBoxSize : d === "content-box" ? n.contentBoxSize : n.devicePixelContentBoxSize;
114
+ if (f && h.value) {
115
+ const v = m(o);
116
+ if (v) {
117
+ const r = v.getBoundingClientRect();
118
+ l.value = r.width, t.value = r.height;
119
+ }
120
+ } else if (a) {
121
+ const v = W(a);
122
+ l.value = v.reduce((r, { inlineSize: x }) => r + x, 0), t.value = v.reduce((r, { blockSize: x }) => r + x, 0);
123
+ } else
124
+ l.value = n.contentRect.width, t.value = n.contentRect.height;
125
+ },
126
+ u
127
+ );
128
+ E(() => {
129
+ const n = m(o);
130
+ n && (l.value = "offsetWidth" in n ? n.offsetWidth : e.width, t.value = "offsetHeight" in n ? n.offsetHeight : e.height);
131
+ });
132
+ const s = S(
133
+ () => m(o),
134
+ (n) => {
135
+ l.value = n ? e.width : 0, t.value = n ? e.height : 0;
136
+ }
137
+ );
138
+ function c() {
139
+ i(), s();
140
+ }
141
+ return {
142
+ width: l,
143
+ height: t,
144
+ stop: c
145
+ };
146
+ }
147
+ // @__NO_SIDE_EFFECTS__
148
+ function G(o = {}) {
149
+ const {
150
+ window: e = g,
151
+ initialWidth: u = Number.POSITIVE_INFINITY,
152
+ initialHeight: f = Number.POSITIVE_INFINITY,
153
+ listenOrientation: d = !0,
154
+ includeScrollbar: h = !0,
155
+ type: l = "inner"
156
+ } = o, t = p(u), i = p(f), s = () => {
157
+ if (e)
158
+ if (l === "outer")
159
+ t.value = e.outerWidth, i.value = e.outerHeight;
160
+ else if (l === "visual" && e.visualViewport) {
161
+ const { width: n, height: a, scale: v } = e.visualViewport;
162
+ t.value = Math.round(n * v), i.value = Math.round(a * v);
163
+ } else h ? (t.value = e.innerWidth, i.value = e.innerHeight) : (t.value = e.document.documentElement.clientWidth, i.value = e.document.documentElement.clientHeight);
164
+ };
165
+ s(), E(s);
166
+ const c = { passive: !0 };
167
+ if (I("resize", s, c), e && l === "visual" && e.visualViewport && I(e.visualViewport, "resize", s, c), d) {
168
+ const n = F("(orientation: portrait)");
169
+ S(n, () => s());
170
+ }
171
+ return { width: t, height: i };
172
+ }
173
+ export {
174
+ G as a,
175
+ D as u
176
+ };