@oneclick.dev/cms-core-modules 0.0.115 → 0.0.117
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-FV3QpaUX.mjs → Acquisition-X5-eksDw.mjs} +2 -2
- package/dist/{Audience-ka0b7YPE.mjs → Audience-CXryJ8tc.mjs} +2 -2
- package/dist/{ContentEditor-C5yNNLeV.mjs → ContentEditor-CUe6-NwF.mjs} +17650 -14456
- package/dist/{ContentEditor-MctMvN7D.js → ContentEditor-DWoXc0T_.js} +52 -52
- package/dist/{Create-BXNLRQag.mjs → Create-BPA2ywrd.mjs} +1 -1
- package/dist/{DateFormatter-qbhRYxI_.mjs → DateFormatter-BkKoSf_l.mjs} +5 -5
- package/dist/{Detail-BCOcP2ql.mjs → Detail-C1Blq61w.mjs} +1 -1
- package/dist/{Detail-ChD5XurA.mjs → Detail-CfsPwl4s.mjs} +17 -17
- package/dist/{Detail-DnX7tsqN.mjs → Detail-CtItxMX4.mjs} +1 -1
- package/dist/{Detail-Btzwo0Y3.mjs → Detail-Dnpnmy4-.mjs} +1 -1
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-gozJKXvM.js +1 -0
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-pDO9b4Pv.mjs +77 -0
- package/dist/{Find-zN_dKz4p.mjs → Find-BAvaNf90.mjs} +1 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-BXTkYCm_.mjs +1476 -0
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-C2zwt5UF.js +1 -0
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-BYSeUW_V.js +925 -0
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-DwAUYR8p.mjs +5021 -0
- package/dist/{Overview-BR_y8x3W.mjs → Overview-BWLxUksJ.mjs} +1 -1
- package/dist/{Overview-MpgkLB6m.mjs → Overview-Bjvu9Lfc.mjs} +3 -3
- package/dist/Overview-CBahJviK.js +1 -0
- package/dist/Overview-CVQ1pkuD.mjs +527 -0
- package/dist/{SeoHealth-bVQj_Xgm.mjs → SeoHealth-I2mqiuLm.mjs} +3 -3
- package/dist/TableView-BQI3CWll.mjs +6234 -0
- package/dist/TableView-Cwal0BPW.js +4 -0
- package/dist/agenda-B3nj388v.mjs +1253 -0
- package/dist/agenda-Bev1mO7E.js +1 -0
- package/dist/availability-ClBGVgE9.js +1 -0
- package/dist/availability-D8JdA4rP.mjs +274 -0
- package/dist/booking-data-Px7XCIfU.mjs +1024 -0
- package/dist/booking-data-aMS1p_3g.js +1 -0
- package/dist/cms-core-modules.css +1 -1
- package/dist/exceptions-DXqc0Nza.js +1 -0
- package/dist/exceptions-Dgj54ULn.mjs +651 -0
- package/dist/{index-DZV720u-.mjs → index-52nwosIs.mjs} +45 -45
- package/dist/{index-CkVwMqpn.mjs → index-Bnn9LahC.mjs} +52 -52
- package/dist/{index-B8GvmAwh.mjs → index-DiTIA8Sh.mjs} +27 -27
- package/dist/index-Djp4EBb0.mjs +1245 -0
- package/dist/index-DliTZzwI.js +35 -0
- package/dist/{index-L54VBzwJ.mjs → index-ar4tbR3i.mjs} +8 -8
- package/dist/{index-BIF2RB7k.mjs → index-cC_2cw31.mjs} +4 -4
- package/dist/{index-CFzn2Lus.mjs → index-hMp4p5qA.mjs} +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +26 -25
- package/dist/{math-BJ-oX_IM.mjs → math-Bkw6u412.mjs} +11 -11
- package/dist/orders-1swJVKw2.js +1 -0
- package/dist/orders-D41GbzIa.mjs +624 -0
- package/dist/payment-BJHgpaeT.js +1 -0
- package/dist/payment-D5j-68Ig.mjs +1278 -0
- package/dist/refunds-D9nTeD2d.mjs +436 -0
- package/dist/refunds-oVB2Opib.js +1 -0
- package/dist/resources-8WouFvJe.js +1 -0
- package/dist/resources-CK0oWssj.mjs +975 -0
- package/dist/server-handlers.cjs.js +1 -1
- package/dist/server-handlers.mjs +626 -515
- package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +146 -5
- package/dist/src/appointments/components/edit/EventDialog/CancelRefundReservationDialog.vue.d.ts +33 -0
- package/dist/src/appointments/components/edit/EventDialog/OrderDetailDialog.vue.d.ts +26 -8
- package/dist/src/appointments/components/edit/EventDialog/RefundDetailsDisplay.vue.d.ts +8 -0
- package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +91 -5
- package/dist/src/appointments/components/edit/EventDialog/TransferReservationDialog.vue.d.ts +20 -3
- package/dist/src/appointments/components/edit/NewReservationDialog/ReservationLines.vue.d.ts +5 -0
- package/dist/src/appointments/components/edit/OrderMetadataDisplay.vue.d.ts +20 -2
- package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +240 -0
- package/dist/src/appointments/composables/useAgendaMetadataSchema.d.ts +37 -0
- package/dist/src/appointments/pages/edit/orders.vue.d.ts +225 -0
- package/dist/src/appointments/pages/edit/refunds.vue.d.ts +2 -0
- package/dist/src/appointments/server.d.ts +2 -0
- package/dist/src/appointments/types.d.ts +6 -0
- package/dist/src/appointments/utils/printReservation.d.ts +65 -3
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/Table.d.ts +36 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/Table.vue.d.ts +95 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/TableCell.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/TableHeader.d.ts +6 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/TableRow.d.ts +6 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/index.d.ts +4 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/TableMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +14 -0
- package/dist/{vee-validate-zod-DNjTLCgh.mjs → vee-validate-zod-CcOwoF6y.mjs} +6 -6
- package/package.json +2 -2
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs +0 -76
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-kpjbVSXg.js +0 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Baqy-rTT.js +0 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dx4Bpa2m.mjs +0 -1263
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-COrK1j0S.js +0 -1
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-Vb3q8EVv.mjs +0 -330
- package/dist/Overview-98nkJUWN.mjs +0 -481
- package/dist/Overview-Dl8cMlsr.js +0 -1
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CuwREvXD.js +0 -349
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-GYNZ_yhD.mjs +0 -3077
- package/dist/TableView-CVfkyj1k.js +0 -4
- package/dist/TableView-zDx0IegJ.mjs +0 -6096
- package/dist/agenda-BaJu3-1c.js +0 -1
- package/dist/agenda-BwVY_8oM.mjs +0 -1165
- package/dist/availability-CMrRa5y2.mjs +0 -269
- package/dist/availability-Cf2YfMwM.js +0 -1
- package/dist/booking-data-DgJd0BcM.mjs +0 -889
- package/dist/booking-data-Di5GmH_8.js +0 -1
- package/dist/exceptions-B6P9UiCj.js +0 -1
- package/dist/exceptions-De9-FvdP.mjs +0 -646
- package/dist/index-DL6orwdK.js +0 -35
- package/dist/index-hH3e-IYz.mjs +0 -1187
- package/dist/orders-C65SlpJy.mjs +0 -618
- package/dist/orders-XVzWAgG1.js +0 -1
- package/dist/payment-C3ohkehF.mjs +0 -1080
- package/dist/payment-Dfr-Ro-a.js +0 -1
- package/dist/resources-CxeFd57z.js +0 -1
- package/dist/resources-DwYxn2Vi.mjs +0 -811
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as ht, toRefs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
class te extends
|
|
1
|
+
import { defineComponent as ht, toRefs as Et, reactive as Ot, ref as pt, watchEffect as Dt, watch as lt, onUnmounted as mt, provide as nt, openBlock as vt, createElementBlock as bt, renderSlot as Tt, toRaw as at, inject as zt, computed as Nt, onMounted as Wt, nextTick as Gt } from "vue";
|
|
2
|
+
import { C as Ht, d as Bt, X as it, u as et, l as Ft, I as yt, i as Mt, f as K, q as $t, m as Pt, S as jt, E as ut, B as It, h as Yt, Y as Ut, J as At, K as xt, N as Xt, O as Vt, P as qt } from "./index-Bnn9LahC.mjs";
|
|
3
|
+
import { a as dt, b as P, s as B, c as k, h as ct, p as Jt, e as E, t as tt, d as J, m as ot, f as gt, g as S, i as Kt, j as ft, k as Qt } from "./math-Bkw6u412.mjs";
|
|
4
|
+
const Zt = Object.assign(Object.assign({}, Ht), { tooltip: void 0, annotations: void 0 });
|
|
5
|
+
class te extends Bt {
|
|
6
6
|
constructor(e, n, i) {
|
|
7
7
|
var r;
|
|
8
|
-
super(e), this._defaultConfig =
|
|
8
|
+
super(e), this._defaultConfig = Zt, this.config = this._defaultConfig, n && (this.updateContainer(n, !0), this.component = n.component), i && this.setData(i, !0), !((r = this.component) === null || r === void 0) && r.datamodel.data && this.render();
|
|
9
9
|
}
|
|
10
10
|
setData(e, n) {
|
|
11
11
|
var i;
|
|
@@ -82,12 +82,12 @@ function oe(u) {
|
|
|
82
82
|
}
|
|
83
83
|
function le(u, e, n, i, r, d, l, t) {
|
|
84
84
|
var s = n - u, a = i - e, m = l - r, h = t - d, c = h * s - m * a;
|
|
85
|
-
if (!(c * c <
|
|
85
|
+
if (!(c * c < E))
|
|
86
86
|
return c = (m * (e - d) - h * (u - r)) / c, [u + c * s, e + c * a];
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
var t = u - n, s = e - i, a = (l ? d : -d) /
|
|
90
|
-
return g * g + p * p > W * W + G * G && (N =
|
|
88
|
+
function Z(u, e, n, i, r, d, l) {
|
|
89
|
+
var t = u - n, s = e - i, a = (l ? d : -d) / J(t * t + s * s), m = a * s, h = -a * t, c = u + m, v = e + h, b = n + m, _ = i + h, o = (c + b) / 2, C = (v + _) / 2, A = b - c, x = _ - v, y = A * A + x * x, L = r - d, R = c * _ - b * v, z = (x < 0 ? -1 : 1) * J(Kt(0, L * L * y - R * R)), N = (R * x - A * z) / y, w = (-R * A - x * z) / y, O = (R * x + A * z) / y, D = (-R * A + x * z) / y, g = N - o, p = w - C, W = O - o, G = D - C;
|
|
90
|
+
return g * g + p * p > W * W + G * G && (N = O, w = D), {
|
|
91
91
|
cx: N,
|
|
92
92
|
cy: w,
|
|
93
93
|
x01: -m,
|
|
@@ -100,30 +100,30 @@ function se() {
|
|
|
100
100
|
var u = ee, e = ne, n = k(0), i = null, r = ae, d = ie, l = oe, t = null;
|
|
101
101
|
function s() {
|
|
102
102
|
var a, m, h = +u.apply(this, arguments), c = +e.apply(this, arguments), v = r.apply(this, arguments) - ct, b = d.apply(this, arguments) - ct, _ = gt(b - v), o = b > v;
|
|
103
|
-
if (t || (t = a =
|
|
104
|
-
else if (_ > tt -
|
|
105
|
-
t.moveTo(c *
|
|
103
|
+
if (t || (t = a = Jt()), c < h && (m = c, c = h, h = m), !(c > E)) t.moveTo(0, 0);
|
|
104
|
+
else if (_ > tt - E)
|
|
105
|
+
t.moveTo(c * P(v), c * B(v)), t.arc(0, 0, c, v, b, !o), h > E && (t.moveTo(h * P(b), h * B(b)), t.arc(0, 0, h, b, v, o));
|
|
106
106
|
else {
|
|
107
|
-
var C = v, A = b, x = v, y = b, L = _, R = _, z = l.apply(this, arguments) / 2, N = z >
|
|
108
|
-
if (N >
|
|
109
|
-
var W = ft(N / h *
|
|
110
|
-
(L -= W * 2) >
|
|
107
|
+
var C = v, A = b, x = v, y = b, L = _, R = _, z = l.apply(this, arguments) / 2, N = z > E && (i ? +i.apply(this, arguments) : J(h * h + c * c)), w = ot(gt(c - h) / 2, +n.apply(this, arguments)), O = w, D = w, g, p;
|
|
108
|
+
if (N > E) {
|
|
109
|
+
var W = ft(N / h * B(z)), G = ft(N / c * B(z));
|
|
110
|
+
(L -= W * 2) > E ? (W *= o ? 1 : -1, x += W, y -= W) : (L = 0, x = y = (v + b) / 2), (R -= G * 2) > E ? (G *= o ? 1 : -1, C += G, A -= G) : (R = 0, C = A = (v + b) / 2);
|
|
111
111
|
}
|
|
112
|
-
var F = c *
|
|
113
|
-
if (w >
|
|
114
|
-
var $ = c *
|
|
115
|
-
if (_ < dt && (H = le(F,
|
|
116
|
-
var X = F - H[0], V =
|
|
117
|
-
|
|
112
|
+
var F = c * P(C), M = c * B(C), Q = h * P(y), j = h * B(y);
|
|
113
|
+
if (w > E) {
|
|
114
|
+
var $ = c * P(A), I = c * B(A), Y = h * P(x), U = h * B(x), H;
|
|
115
|
+
if (_ < dt && (H = le(F, M, Y, U, $, I, Q, j))) {
|
|
116
|
+
var X = F - H[0], V = M - H[1], f = $ - H[0], T = I - H[1], q = 1 / B(Qt((X * f + V * T) / (J(X * X + V * V) * J(f * f + T * T))) / 2), rt = J(H[0] * H[0] + H[1] * H[1]);
|
|
117
|
+
O = ot(w, (h - rt) / (q - 1)), D = ot(w, (c - rt) / (q + 1));
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
R >
|
|
120
|
+
R > E ? D > E ? (g = Z(Y, U, F, M, c, D, o), p = Z($, I, Q, j, c, D, o), t.moveTo(g.cx + g.x01, g.cy + g.y01), D < w ? t.arc(g.cx, g.cy, D, S(g.y01, g.x01), S(p.y01, p.x01), !o) : (t.arc(g.cx, g.cy, D, S(g.y01, g.x01), S(g.y11, g.x11), !o), t.arc(0, 0, c, S(g.cy + g.y11, g.cx + g.x11), S(p.cy + p.y11, p.cx + p.x11), !o), t.arc(p.cx, p.cy, D, S(p.y11, p.x11), S(p.y01, p.x01), !o))) : (t.moveTo(F, M), t.arc(0, 0, c, C, A, !o)) : t.moveTo(F, M), !(h > E) || !(L > E) ? t.lineTo(Q, j) : O > E ? (g = Z(Q, j, $, I, h, -O, o), p = Z(F, M, Y, U, h, -O, o), t.lineTo(g.cx + g.x01, g.cy + g.y01), O < w ? t.arc(g.cx, g.cy, O, S(g.y01, g.x01), S(p.y01, p.x01), !o) : (t.arc(g.cx, g.cy, O, S(g.y01, g.x01), S(g.y11, g.x11), !o), t.arc(0, 0, h, S(g.cy + g.y11, g.cx + g.x11), S(p.cy + p.y11, p.cx + p.x11), o), t.arc(p.cx, p.cy, O, S(p.y11, p.x11), S(p.y01, p.x01), !o))) : t.arc(0, 0, h, y, x, o);
|
|
121
121
|
}
|
|
122
122
|
if (t.closePath(), a) return t = null, a + "" || null;
|
|
123
123
|
}
|
|
124
124
|
return s.centroid = function() {
|
|
125
125
|
var a = (+u.apply(this, arguments) + +e.apply(this, arguments)) / 2, m = (+r.apply(this, arguments) + +d.apply(this, arguments)) / 2 - dt / 2;
|
|
126
|
-
return [
|
|
126
|
+
return [P(m) * a, B(m) * a];
|
|
127
127
|
}, s.innerRadius = function(a) {
|
|
128
128
|
return arguments.length ? (u = typeof a == "function" ? a : k(+a), s) : u;
|
|
129
129
|
}, s.outerRadius = function(a) {
|
|
@@ -209,7 +209,7 @@ function fe(u, e, n, i) {
|
|
|
209
209
|
innerRadius: l.innerRadius,
|
|
210
210
|
outerRadius: l.outerRadius,
|
|
211
211
|
padAngle: l.padAngle
|
|
212
|
-
}, h =
|
|
212
|
+
}, h = Mt(a._animState, m);
|
|
213
213
|
return (c) => (a._animState = h(c), n(a._animState));
|
|
214
214
|
}) : u.attr("d", n).style("opacity", r);
|
|
215
215
|
}
|
|
@@ -219,7 +219,7 @@ function he(u, e) {
|
|
|
219
219
|
const Rt = Array.from({ length: 4 }, (u, e) => {
|
|
220
220
|
const n = -Math.PI / 2 + e * Math.PI / 2;
|
|
221
221
|
return [n, n + Math.PI];
|
|
222
|
-
}), [xe, Re, _e, Le] = Rt, _t =
|
|
222
|
+
}), [xe, Re, _e, Le] = Rt, _t = K`
|
|
223
223
|
label: donut-component;
|
|
224
224
|
`, pe = $t`
|
|
225
225
|
:root {
|
|
@@ -251,16 +251,16 @@ const Rt = Array.from({ length: 4 }, (u, e) => {
|
|
|
251
251
|
--vis-donut-central-sub-label-text-color: var(--vis-dark-donut-central-sub-label-text-color);
|
|
252
252
|
--vis-donut-background-color: var(--vis-dark-donut-background-color);
|
|
253
253
|
}
|
|
254
|
-
`, Lt =
|
|
254
|
+
`, Lt = K`
|
|
255
255
|
label: background;
|
|
256
256
|
fill: var(--vis-donut-background-color);
|
|
257
|
-
`, st =
|
|
257
|
+
`, st = K`
|
|
258
258
|
label: segment;
|
|
259
259
|
stroke-width: var(--vis-donut-segment-stroke-width);
|
|
260
260
|
stroke: var(--vis-donut-segment-stroke-color, var(--vis-donut-background-color));
|
|
261
|
-
`, St =
|
|
261
|
+
`, St = K`
|
|
262
262
|
label: segment-exit;
|
|
263
|
-
`, wt =
|
|
263
|
+
`, wt = K`
|
|
264
264
|
label: central-label;
|
|
265
265
|
text-anchor: middle;
|
|
266
266
|
dominant-baseline: middle;
|
|
@@ -268,7 +268,7 @@ const Rt = Array.from({ length: 4 }, (u, e) => {
|
|
|
268
268
|
font-family: var(--vis-donut-central-label-font-family, var(--vis-font-family));
|
|
269
269
|
font-weight: var(--vis-donut-central-label-font-weight);
|
|
270
270
|
fill: var(--vis-donut-central-label-text-color);
|
|
271
|
-
`, kt =
|
|
271
|
+
`, kt = K`
|
|
272
272
|
label: central-label;
|
|
273
273
|
text-anchor: middle;
|
|
274
274
|
dominant-baseline: middle;
|
|
@@ -286,9 +286,9 @@ const Rt = Array.from({ length: 4 }, (u, e) => {
|
|
|
286
286
|
segmentExit: St,
|
|
287
287
|
variables: pe
|
|
288
288
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
289
|
-
class Ct extends
|
|
289
|
+
class Ct extends Pt {
|
|
290
290
|
constructor(e) {
|
|
291
|
-
super(), this._defaultConfig = ce, this.config = this._defaultConfig, this.datamodel = new
|
|
291
|
+
super(), this._defaultConfig = ce, this.config = this._defaultConfig, this.datamodel = new jt(), this.arcGen = se(), this.events = {}, e && this.setConfig(e), this.arcBackground = this.g.append("path"), this.arcGroup = this.g.append("g"), this.centralLabel = this.g.append("text").attr("class", wt), this.centralSubLabel = this.g.append("text").attr("class", kt);
|
|
292
292
|
}
|
|
293
293
|
get bleed() {
|
|
294
294
|
return { top: 0, bottom: 0, left: 0, right: 0 };
|
|
@@ -298,9 +298,9 @@ class Ct extends jt {
|
|
|
298
298
|
const { config: o, datamodel: C, bleed: A } = this, x = C.data.map((f, T) => ({
|
|
299
299
|
index: T,
|
|
300
300
|
datum: f
|
|
301
|
-
})).filter((f) => o.showEmptySegments || ut(f.datum, o.value, f.index)), y = It(e) ? e : o.duration, [L, R, z, N] = Rt.map((f) => o.angleRange && o.angleRange[0] === f[0] && o.angleRange[1] === f[1]), w = L || z,
|
|
302
|
-
this.arcGroup.attr("transform",
|
|
303
|
-
const
|
|
301
|
+
})).filter((f) => o.showEmptySegments || ut(f.datum, o.value, f.index)), y = It(e) ? e : o.duration, [L, R, z, N] = Rt.map((f) => o.angleRange && o.angleRange[0] === f[0] && o.angleRange[1] === f[1]), w = L || z, O = R || N, D = this._width * (O ? 2 : 1), g = this._height * (w ? 2 : 1), p = o.radius || Math.min(D - A.left - A.right, g - A.top - A.bottom) / 2, W = o.arcWidth === 0 ? 0 : Yt(p - o.arcWidth, 0, p - 1), G = this._height / 2 + (L ? p / 2 : z ? -p / 2 : 0), F = this._width / 2 + (N ? p / 2 : R ? -p / 2 : 0), M = `translate(${F},${G})`;
|
|
302
|
+
this.arcGroup.attr("transform", M), this.arcGen.startAngle((f) => f.startAngle).endAngle((f) => f.endAngle).innerRadius((f) => f.innerRadius).outerRadius((f) => f.outerRadius).padAngle((f) => f.padAngle).cornerRadius(o.cornerRadius);
|
|
303
|
+
const j = de().startAngle((i = (n = o.angleRange) === null || n === void 0 ? void 0 : n[0]) !== null && i !== void 0 ? i : 0).endAngle((d = (r = o.angleRange) === null || r === void 0 ? void 0 : r[1]) !== null && d !== void 0 ? d : 2 * Math.PI).padAngle(o.padAngle).value((f) => ut(f.datum, o.value, f.index) || 0).sort((f, T) => {
|
|
304
304
|
var q;
|
|
305
305
|
return (q = o.sortFunction) === null || q === void 0 ? void 0 : q.call(o, f.datum, T.datum);
|
|
306
306
|
})(x).map((f) => {
|
|
@@ -311,15 +311,15 @@ class Ct extends jt {
|
|
|
311
311
|
outerRadius: p
|
|
312
312
|
});
|
|
313
313
|
return o.showEmptySegments && f.endAngle - f.startAngle - f.padAngle <= Number.EPSILON && (T.endAngle = f.startAngle + Math.max(o.emptySegmentAngle, o.padAngle), T.padAngle = f.padAngle / 2), T;
|
|
314
|
-
}), $ = this.arcGroup.selectAll(`.${st}`).data(
|
|
315
|
-
|
|
316
|
-
const
|
|
317
|
-
this.centralLabel.attr("dy", o.centralSubLabel ? "-0.55em" : null).style("text-anchor",
|
|
314
|
+
}), $ = this.arcGroup.selectAll(`.${st}`).data(j, (f) => o.id(f.data, f.index)), I = $.enter().append("path").attr("class", st).call(ge, o), Y = $.merge(I);
|
|
315
|
+
Y.call(fe, o, this.arcGen, y), Y.sort((f, T) => T.value - f.value), $.exit().attr("class", St).call(he, y);
|
|
316
|
+
const U = R ? "start" : N ? "end" : "middle";
|
|
317
|
+
this.centralLabel.attr("dy", o.centralSubLabel ? "-0.55em" : null).style("text-anchor", U).text((l = o.centralLabel) !== null && l !== void 0 ? l : null), this.centralSubLabel.attr("dy", o.centralLabel ? "0.55em" : null).style("text-anchor", U).text((t = o.centralSubLabel) !== null && t !== void 0 ? t : null), o.centralSubLabelWrap && Ut(this.centralSubLabel, W * 1.9);
|
|
318
318
|
const H = (o.centralLabelOffsetX || 0) + F;
|
|
319
319
|
let X = (o.centralLabelOffsetY || 0) + G;
|
|
320
320
|
w && o.centralLabelOffsetX === void 0 && o.centralLabelOffsetY === void 0 && (X = (L ? -this.centralSubLabel.node().getBoundingClientRect().height : z ? this.centralLabel.node().getBoundingClientRect().height : 0) + G);
|
|
321
321
|
const V = `translate(${H},${X})`;
|
|
322
|
-
this.centralLabel.attr("transform", V), this.centralSubLabel.attr("transform", V), this.arcBackground.attr("class", Lt).attr("visibility", o.showBackground ? null : "hidden").attr("transform",
|
|
322
|
+
this.centralLabel.attr("transform", V), this.centralSubLabel.attr("transform", V), this.arcBackground.attr("class", Lt).attr("visibility", o.showBackground ? null : "hidden").attr("transform", M), et(this.arcBackground, y).attr("d", this.arcGen({
|
|
323
323
|
startAngle: (h = (a = (s = o.backgroundAngleRange) === null || s === void 0 ? void 0 : s[0]) !== null && a !== void 0 ? a : (m = o.angleRange) === null || m === void 0 ? void 0 : m[0]) !== null && h !== void 0 ? h : 0,
|
|
324
324
|
endAngle: (_ = (v = (c = o.backgroundAngleRange) === null || c === void 0 ? void 0 : c[1]) !== null && v !== void 0 ? v : (b = o.angleRange) === null || b === void 0 ? void 0 : b[1]) !== null && _ !== void 0 ? _ : 2 * Math.PI,
|
|
325
325
|
innerRadius: W,
|
|
@@ -345,16 +345,16 @@ const Se = /* @__PURE__ */ ht({
|
|
|
345
345
|
data: {}
|
|
346
346
|
},
|
|
347
347
|
setup(u, { expose: e }) {
|
|
348
|
-
const n = u, { data: i } =
|
|
348
|
+
const n = u, { data: i } = Et(n), r = At(n);
|
|
349
349
|
let d;
|
|
350
|
-
const l =
|
|
350
|
+
const l = Ot({
|
|
351
351
|
component: void 0,
|
|
352
352
|
tooltip: void 0,
|
|
353
353
|
annotations: void 0
|
|
354
354
|
}), t = pt(), s = () => {
|
|
355
355
|
d || t.value && l.component && (d = new te(t.value, { ...at(l) }, i.value));
|
|
356
356
|
};
|
|
357
|
-
return
|
|
357
|
+
return Dt(() => {
|
|
358
358
|
var a;
|
|
359
359
|
s(), (a = l.component) == null || a.config, d?.updateContainer({ ...at(r.value), ...at(l) });
|
|
360
360
|
}), lt(i, () => {
|
|
@@ -3798,60 +3798,60 @@ function Au(t) {
|
|
|
3798
3798
|
}
|
|
3799
3799
|
})();
|
|
3800
3800
|
export {
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3801
|
+
tu as $,
|
|
3802
|
+
yt as A,
|
|
3803
|
+
Ie as B,
|
|
3804
|
+
Js as C,
|
|
3805
|
+
au as D,
|
|
3806
|
+
U as E,
|
|
3807
3807
|
Dn as F,
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3808
|
+
Jn as G,
|
|
3809
|
+
ru as H,
|
|
3810
|
+
du as I,
|
|
3811
|
+
Au as J,
|
|
3812
|
+
mu as K,
|
|
3813
|
+
_u as L,
|
|
3814
|
+
wu as M,
|
|
3815
|
+
yu as N,
|
|
3816
|
+
xu as O,
|
|
3817
|
+
bu as P,
|
|
3818
|
+
Ts as Q,
|
|
3819
|
+
Qn as R,
|
|
3820
3820
|
hu as S,
|
|
3821
|
-
|
|
3822
|
-
|
|
3821
|
+
it as T,
|
|
3822
|
+
iu as U,
|
|
3823
3823
|
mt as V,
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3824
|
+
nu as W,
|
|
3825
|
+
at as X,
|
|
3826
|
+
gu as Y,
|
|
3827
|
+
Qe as Z,
|
|
3828
|
+
Je as _,
|
|
3829
|
+
he as a,
|
|
3830
|
+
Cs as a0,
|
|
3831
|
+
$s as a1,
|
|
3832
|
+
ws as b,
|
|
3833
|
+
L as c,
|
|
3834
|
+
Kt as d,
|
|
3835
|
+
Mr as e,
|
|
3836
|
+
cu as f,
|
|
3837
|
+
Ba as g,
|
|
3838
|
+
en as h,
|
|
3839
|
+
$r as i,
|
|
3840
|
+
eu as j,
|
|
3841
|
+
Es as k,
|
|
3842
|
+
Ic as l,
|
|
3843
|
+
lu as m,
|
|
3844
|
+
su as n,
|
|
3845
3845
|
ou as o,
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3846
|
+
De as p,
|
|
3847
|
+
Da as q,
|
|
3848
|
+
wt as r,
|
|
3849
|
+
be as s,
|
|
3850
|
+
tn as t,
|
|
3851
|
+
fu as u,
|
|
3852
|
+
Yt as v,
|
|
3853
|
+
Er as w,
|
|
3854
|
+
pu as x,
|
|
3855
|
+
vu as y,
|
|
3856
|
+
uu as z
|
|
3857
3857
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as gt, inject as bt, computed as mt, ref as kt, onMounted as St, nextTick as wt, onUnmounted as Tt, watch as L, openBlock as Ot, createElementBlock as Nt } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { f as T, q as Pt, B as H, p as U, E as F, I as j, Q as Ct, s as At, R as te, u as D, U as ee, o as ie, W as ne, K as Mt, J as jt, P as Dt } from "./index-Bnn9LahC.mjs";
|
|
3
|
+
import { X as Et, a as Rt, D as q } from "./index-cC_2cw31.mjs";
|
|
4
|
+
import { c as k, p as Bt, e as _t } from "./math-Bkw6u412.mjs";
|
|
5
5
|
function $t(t) {
|
|
6
6
|
this._context = t;
|
|
7
7
|
}
|
|
@@ -119,10 +119,10 @@ function I(t, e, i) {
|
|
|
119
119
|
(t._y0 + 4 * t._y1 + i) / 6
|
|
120
120
|
);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function V(t) {
|
|
123
123
|
this._context = t;
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
V.prototype = {
|
|
126
126
|
areaStart: function() {
|
|
127
127
|
this._line = 0;
|
|
128
128
|
},
|
|
@@ -162,7 +162,7 @@ G.prototype = {
|
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
function oe(t) {
|
|
165
|
-
return new
|
|
165
|
+
return new V(t);
|
|
166
166
|
}
|
|
167
167
|
function It(t) {
|
|
168
168
|
this._context = t;
|
|
@@ -253,7 +253,7 @@ function ae(t) {
|
|
|
253
253
|
return new Xt(t);
|
|
254
254
|
}
|
|
255
255
|
function Yt(t, e) {
|
|
256
|
-
this._basis = new
|
|
256
|
+
this._basis = new V(t), this._beta = e;
|
|
257
257
|
}
|
|
258
258
|
Yt.prototype = {
|
|
259
259
|
lineStart: function() {
|
|
@@ -275,7 +275,7 @@ Yt.prototype = {
|
|
|
275
275
|
};
|
|
276
276
|
const le = (function t(e) {
|
|
277
277
|
function i(n) {
|
|
278
|
-
return e === 1 ? new
|
|
278
|
+
return e === 1 ? new V(n) : new Yt(n, e);
|
|
279
279
|
}
|
|
280
280
|
return i.beta = function(n) {
|
|
281
281
|
return t(+n);
|
|
@@ -449,10 +449,10 @@ function ht(t, e, i) {
|
|
|
449
449
|
}
|
|
450
450
|
t._context.bezierCurveTo(n, s, o, a, t._x2, t._y2);
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function Gt(t, e) {
|
|
453
453
|
this._context = t, this._alpha = e;
|
|
454
454
|
}
|
|
455
|
-
|
|
455
|
+
Gt.prototype = {
|
|
456
456
|
areaStart: function() {
|
|
457
457
|
this._line = 0;
|
|
458
458
|
},
|
|
@@ -497,16 +497,16 @@ zt.prototype = {
|
|
|
497
497
|
};
|
|
498
498
|
const ue = (function t(e) {
|
|
499
499
|
function i(n) {
|
|
500
|
-
return e ? new
|
|
500
|
+
return e ? new Gt(n, e) : new rt(n, 0);
|
|
501
501
|
}
|
|
502
502
|
return i.alpha = function(n) {
|
|
503
503
|
return t(+n);
|
|
504
504
|
}, i;
|
|
505
505
|
})(0.5);
|
|
506
|
-
function
|
|
506
|
+
function Vt(t, e) {
|
|
507
507
|
this._context = t, this._alpha = e;
|
|
508
508
|
}
|
|
509
|
-
|
|
509
|
+
Vt.prototype = {
|
|
510
510
|
areaStart: w,
|
|
511
511
|
areaEnd: w,
|
|
512
512
|
lineStart: function() {
|
|
@@ -552,16 +552,16 @@ Gt.prototype = {
|
|
|
552
552
|
};
|
|
553
553
|
const fe = (function t(e) {
|
|
554
554
|
function i(n) {
|
|
555
|
-
return e ? new
|
|
555
|
+
return e ? new Vt(n, e) : new at(n, 0);
|
|
556
556
|
}
|
|
557
557
|
return i.alpha = function(n) {
|
|
558
558
|
return t(+n);
|
|
559
559
|
}, i;
|
|
560
560
|
})(0.5);
|
|
561
|
-
function
|
|
561
|
+
function zt(t, e) {
|
|
562
562
|
this._context = t, this._alpha = e;
|
|
563
563
|
}
|
|
564
|
-
|
|
564
|
+
zt.prototype = {
|
|
565
565
|
areaStart: function() {
|
|
566
566
|
this._line = 0;
|
|
567
567
|
},
|
|
@@ -601,7 +601,7 @@ Vt.prototype = {
|
|
|
601
601
|
};
|
|
602
602
|
const pe = (function t(e) {
|
|
603
603
|
function i(n) {
|
|
604
|
-
return e ? new
|
|
604
|
+
return e ? new zt(n, e) : new lt(n, 0);
|
|
605
605
|
}
|
|
606
606
|
return i.alpha = function(n) {
|
|
607
607
|
return t(+n);
|
|
@@ -753,10 +753,10 @@ function pt(t) {
|
|
|
753
753
|
function xe(t) {
|
|
754
754
|
return new Qt(t);
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function z(t, e) {
|
|
757
757
|
this._context = t, this._t = e;
|
|
758
758
|
}
|
|
759
|
-
|
|
759
|
+
z.prototype = {
|
|
760
760
|
areaStart: function() {
|
|
761
761
|
this._line = 0;
|
|
762
762
|
},
|
|
@@ -791,13 +791,13 @@ V.prototype = {
|
|
|
791
791
|
}
|
|
792
792
|
};
|
|
793
793
|
function ge(t) {
|
|
794
|
-
return new
|
|
794
|
+
return new z(t, 0.5);
|
|
795
795
|
}
|
|
796
796
|
function be(t) {
|
|
797
|
-
return new
|
|
797
|
+
return new z(t, 0);
|
|
798
798
|
}
|
|
799
799
|
function me(t) {
|
|
800
|
-
return new
|
|
800
|
+
return new z(t, 1);
|
|
801
801
|
}
|
|
802
802
|
function yt(t, e) {
|
|
803
803
|
var i = Object.keys(t);
|
|
@@ -836,15 +836,15 @@ function Se(t, e, i) {
|
|
|
836
836
|
writable: !0
|
|
837
837
|
}) : t[e] = i, t;
|
|
838
838
|
}
|
|
839
|
-
function
|
|
840
|
-
return
|
|
839
|
+
function G() {
|
|
840
|
+
return G = Object.assign || function(t) {
|
|
841
841
|
for (var e = 1; e < arguments.length; e++) {
|
|
842
842
|
var i = arguments[e];
|
|
843
843
|
for (var n in i)
|
|
844
844
|
Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]);
|
|
845
845
|
}
|
|
846
846
|
return t;
|
|
847
|
-
},
|
|
847
|
+
}, G.apply(this, arguments);
|
|
848
848
|
}
|
|
849
849
|
function we(t, e) {
|
|
850
850
|
if (t) {
|
|
@@ -984,7 +984,7 @@ function je(t, e, i) {
|
|
|
984
984
|
if (e.type === "L" || e.type === "Q" || e.type === "C")
|
|
985
985
|
n = n.concat(Pe(t, e, i));
|
|
986
986
|
else {
|
|
987
|
-
var s =
|
|
987
|
+
var s = G({}, t);
|
|
988
988
|
s.type === "M" && (s.type = "L"), n = n.concat(J(i - 1).map(function() {
|
|
989
989
|
return s;
|
|
990
990
|
})), n.push(e);
|
|
@@ -1001,7 +1001,7 @@ function vt(t, e, i) {
|
|
|
1001
1001
|
return l[h] = (l[h] || 0) + 1, l;
|
|
1002
1002
|
}, []), r = a.reduce(function(l, y, _) {
|
|
1003
1003
|
if (_ === t.length - 1) {
|
|
1004
|
-
var h = J(y,
|
|
1004
|
+
var h = J(y, G({}, t[t.length - 1]));
|
|
1005
1005
|
return h[0].type === "M" && h.forEach(function(c) {
|
|
1006
1006
|
c.type = "L";
|
|
1007
1007
|
}), l.concat(h);
|