@alfadocs/ui-kit 1.147.1 → 1.148.0
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/_chunks/{appointment-details-panel.history-eqPMKmW0.js → appointment-details-panel.history-BxNqcA-r.js} +109 -110
- package/dist/_chunks/{appointment-timeline-D5qbZ7in.js → appointment-timeline-CuZW-CGT.js} +2 -2
- package/dist/_chunks/{bill-line-table-DnkFqMnM.js → bill-line-table-B8Cc2pTH.js} +2 -2
- package/dist/_chunks/button-group-CHQD8GJ0.js +449 -0
- package/dist/_chunks/{calendar-appointment-editor-dialog-sY-k0GGW.js → calendar-appointment-editor-dialog-Cz8F2H4M.js} +6 -6
- package/dist/_chunks/{calendar-waiting-list-panel-Bm7NAZdk.js → calendar-waiting-list-panel-C4T85b4q.js} +3 -3
- package/dist/_chunks/{calendar.sheets-CCvdZF-R.js → calendar.sheets-DsgPdycU.js} +4 -4
- package/dist/_chunks/{data-grid-CujX-2tF.js → data-grid-CkzbCZSo.js} +486 -476
- package/dist/_chunks/{default-tabs-CqP1uWdx.js → default-tabs-C45FVzsG.js} +3 -3
- package/dist/_chunks/editable-description-BsSjLnSx.js +193 -0
- package/dist/_chunks/{editable-description.agent-Bm_LBV2j.js → editable-description.agent-zyyR_hxB.js} +2 -2
- package/dist/_chunks/{face-scheme-ByYeboH9.js → face-scheme-BC2whb1S.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-srvWy5_d.js → invoice-upload-list-BReimsvV.js} +3 -3
- package/dist/_chunks/{notes-panel-C9aB1Cma.js → notes-panel-BHMnLbEH.js} +2 -2
- package/dist/_chunks/prescription-history-CQuJmd4H.js +1846 -0
- package/dist/_chunks/{rich-text-editor-CJXc5GgH.js → rich-text-editor-BAcJq1PO.js} +445 -437
- package/dist/_chunks/{tasks-panel-DsjfS_k5.js → tasks-panel-DufAoAxG.js} +2 -2
- package/dist/_chunks/{toolbar-z_6tE7zG.js → toolbar-B9oh9XY9.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-Dod21IxM.js → use-appointment-details-read-kYp-gfhb.js} +417 -422
- package/dist/agent-catalog.json +2 -2
- package/dist/appointment-editor-panel/index.js +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/calendar-action-buttons/index.js +1 -1
- package/dist/components/appointment-details-panel/appointment-details-panel.history.d.ts +4 -6
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/button-group/button-group.d.ts +2 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/data-grid/data-grid.variants.d.ts +7 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/editable-description/editable-description.d.ts +2 -1
- package/dist/components/editable-description/index.js +2 -2
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/host-compat.css +7 -1
- package/dist/i18n/locales/ar.d.ts +0 -1
- package/dist/i18n/locales/ar.js +1 -2
- package/dist/i18n/locales/de.d.ts +0 -1
- package/dist/i18n/locales/de.js +1 -2
- package/dist/i18n/locales/el.d.ts +0 -1
- package/dist/i18n/locales/el.js +1 -2
- package/dist/i18n/locales/en.d.ts +0 -1
- package/dist/i18n/locales/en.js +1 -2
- package/dist/i18n/locales/es.d.ts +0 -1
- package/dist/i18n/locales/es.js +1 -2
- package/dist/i18n/locales/fr.d.ts +0 -1
- package/dist/i18n/locales/fr.js +1 -2
- package/dist/i18n/locales/hi.d.ts +0 -1
- package/dist/i18n/locales/hi.js +1 -2
- package/dist/i18n/locales/it.d.ts +0 -1
- package/dist/i18n/locales/it.js +1 -2
- package/dist/i18n/locales/ja.d.ts +0 -1
- package/dist/i18n/locales/ja.js +1 -2
- package/dist/i18n/locales/nl.d.ts +0 -1
- package/dist/i18n/locales/nl.js +1 -2
- package/dist/i18n/locales/pl.d.ts +0 -1
- package/dist/i18n/locales/pl.js +1 -2
- package/dist/i18n/locales/pt.d.ts +0 -1
- package/dist/i18n/locales/pt.js +1 -2
- package/dist/i18n/locales/ro.d.ts +0 -1
- package/dist/i18n/locales/ro.js +1 -2
- package/dist/i18n/locales/ru.d.ts +0 -1
- package/dist/i18n/locales/ru.js +1 -2
- package/dist/i18n/locales/sq.d.ts +0 -1
- package/dist/i18n/locales/sq.js +1 -2
- package/dist/i18n/locales/sv.d.ts +0 -1
- package/dist/i18n/locales/sv.js +1 -2
- package/dist/i18n/locales/tr.d.ts +0 -1
- package/dist/i18n/locales/tr.js +1 -2
- package/dist/i18n/locales/zh.d.ts +0 -1
- package/dist/i18n/locales/zh.js +1 -2
- package/dist/index.js +17 -17
- package/dist/locales/ar.json +1 -2
- package/dist/locales/de.json +1 -2
- package/dist/locales/el.json +1 -2
- package/dist/locales/en.json +1 -2
- package/dist/locales/es.json +1 -2
- package/dist/locales/fr.json +1 -2
- package/dist/locales/hi.json +1 -2
- package/dist/locales/it.json +1 -2
- package/dist/locales/ja.json +1 -2
- package/dist/locales/nl.json +1 -2
- package/dist/locales/pl.json +1 -2
- package/dist/locales/pt.json +1 -2
- package/dist/locales/ro.json +1 -2
- package/dist/locales/ru.json +1 -2
- package/dist/locales/sq.json +1 -2
- package/dist/locales/sv.json +1 -2
- package/dist/locales/tr.json +1 -2
- package/dist/locales/zh.json +1 -2
- package/dist/online-bookings-panel/index.js +1 -1
- package/dist/patterns/calendar/index.js +2 -2
- package/dist/patterns/prescription/index.d.ts +1 -1
- package/dist/patterns/prescription/index.js +1 -1
- package/dist/patterns/prescription/prescription-history.d.ts +28 -0
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +2 -2
- package/package.json +1 -1
- package/dist/_chunks/button-group-N60L3HMa.js +0 -408
- package/dist/_chunks/editable-description-BQauSuCG.js +0 -142
- package/dist/_chunks/prescription-history-CFs3JMIE.js +0 -1773
|
@@ -1,72 +1,71 @@
|
|
|
1
1
|
import { c as A } from "./createLucideIcon-DhHxpK9K.js";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { s as
|
|
5
|
-
import { E as
|
|
6
|
-
import { T as
|
|
7
|
-
import { a as
|
|
8
|
-
import { u as
|
|
9
|
-
import { C as
|
|
10
|
-
import { T as
|
|
2
|
+
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
3
|
+
import { useTranslation as E } from "react-i18next";
|
|
4
|
+
import { s as P, D as F } from "./appointment-details-panel.identity--_j07UG1.js";
|
|
5
|
+
import { E as $ } from "./empty-state-5REM7oDM.js";
|
|
6
|
+
import { T as y } from "./timeline-BzGi_3GQ.js";
|
|
7
|
+
import { a as L } from "./workflow-status-Cg7yjnye.js";
|
|
8
|
+
import { u as W } from "./appointment-workflow-status-S-lx81Yz.js";
|
|
9
|
+
import { C as j } from "./calendar-clock-hbObjfGY.js";
|
|
10
|
+
import { T as R } from "./trash-2-uumy3fy1.js";
|
|
11
11
|
import { A as z } from "./entity-card-p-LANpYt.js";
|
|
12
|
-
import { C as
|
|
13
|
-
import { C as
|
|
12
|
+
import { C as B } from "./copy-vRpqqHtY.js";
|
|
13
|
+
import { C as H } from "./calendar-plus-BFrIRE4r.js";
|
|
14
14
|
import { P as k } from "./pencil-B1sKKyuT.js";
|
|
15
|
-
import { C as
|
|
16
|
-
import { A as
|
|
15
|
+
import { C as x } from "./clock-Drd4Wtis.js";
|
|
16
|
+
import { A as G } from "./arrow-right-KsIrLdt0.js";
|
|
17
17
|
/**
|
|
18
18
|
* @license lucide-react v1.22.0 - ISC
|
|
19
19
|
*
|
|
20
20
|
* This source code is licensed under the ISC license.
|
|
21
21
|
* See the LICENSE file in the root directory of this source tree.
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const K = [
|
|
24
24
|
["path", { d: "M11 14h10", key: "1w8e9d" }],
|
|
25
25
|
["path", { d: "M16 4h2a2 2 0 0 1 2 2v1.344", key: "1e62lh" }],
|
|
26
26
|
["path", { d: "m17 18 4-4-4-4", key: "z2g111" }],
|
|
27
27
|
["path", { d: "M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113", key: "bjbb7m" }],
|
|
28
28
|
["rect", { x: "8", y: "2", width: "8", height: "4", rx: "1", key: "ublpy" }]
|
|
29
|
-
],
|
|
29
|
+
], ut = A("clipboard-paste", K);
|
|
30
30
|
/**
|
|
31
31
|
* @license lucide-react v1.22.0 - ISC
|
|
32
32
|
*
|
|
33
33
|
* This source code is licensed under the ISC license.
|
|
34
34
|
* See the LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
|
-
const
|
|
36
|
+
const Y = [
|
|
37
37
|
["path", { d: "M12 2v20", key: "t6zp3m" }],
|
|
38
38
|
["path", { d: "m15 19-3 3-3-3", key: "11eu04" }],
|
|
39
39
|
["path", { d: "m19 9 3 3-3 3", key: "1mg7y2" }],
|
|
40
40
|
["path", { d: "M2 12h20", key: "9i4pu4" }],
|
|
41
41
|
["path", { d: "m5 9-3 3 3 3", key: "j64kie" }],
|
|
42
42
|
["path", { d: "m9 5 3-3 3 3", key: "l8vdw6" }]
|
|
43
|
-
], C = A("move",
|
|
44
|
-
switch (
|
|
43
|
+
], C = A("move", Y), i = (s) => `calendarWorkspace.details.${s}`, U = /* @__PURE__ */ new Set(["patient", "care"]), S = /^#?(?:[0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i, V = (s) => {
|
|
44
|
+
switch (s.field) {
|
|
45
45
|
case "time":
|
|
46
|
-
return !!(
|
|
46
|
+
return !!(s.fromIso || s.toIso);
|
|
47
47
|
case "duration":
|
|
48
|
-
return
|
|
48
|
+
return s.fromMin !== void 0 || s.toMin !== void 0;
|
|
49
49
|
default:
|
|
50
|
-
return !!(
|
|
50
|
+
return !!(s.from || s.to);
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
function
|
|
54
|
-
const f =
|
|
55
|
-
|
|
56
|
-
),
|
|
53
|
+
function X(s) {
|
|
54
|
+
const f = s.kind === "moved" ? [{ field: "time", fromIso: s.fromIso, toIso: s.toIso }] : s.kind === "resized" ? [{ field: "duration", fromMin: s.fromMin, toMin: s.toMin }] : s.kind === "status" ? [{ field: "status", from: s.from, to: s.to }] : [], w = ("changes" in s ? s.changes ?? [] : []).filter(
|
|
55
|
+
V
|
|
56
|
+
), o = new Set(f.map((p) => p.field));
|
|
57
57
|
return [
|
|
58
58
|
...f,
|
|
59
|
-
...w.filter((
|
|
59
|
+
...w.filter((p) => o.has(p.field) ? !1 : (o.add(p.field), !0))
|
|
60
60
|
];
|
|
61
61
|
}
|
|
62
|
-
const
|
|
63
|
-
function
|
|
64
|
-
history:
|
|
62
|
+
const q = (s, f) => s.getFullYear() === f.getFullYear() && s.getMonth() === f.getMonth() && s.getDate() === f.getDate();
|
|
63
|
+
function pt({
|
|
64
|
+
history: s,
|
|
65
65
|
locale: f,
|
|
66
|
-
|
|
67
|
-
privacy: y = !1
|
|
66
|
+
privacy: w = !1
|
|
68
67
|
}) {
|
|
69
|
-
const { t:
|
|
68
|
+
const { t: o, i18n: p } = E("ui"), { optionFor: I } = W(null), g = f ?? p.language, M = (t, d) => {
|
|
70
69
|
try {
|
|
71
70
|
return new Intl.DateTimeFormat(g, d).format(
|
|
72
71
|
new Date(t)
|
|
@@ -74,7 +73,7 @@ function ht({
|
|
|
74
73
|
} catch {
|
|
75
74
|
return t;
|
|
76
75
|
}
|
|
77
|
-
},
|
|
76
|
+
}, N = (t) => M(t, F), b = o(i("history.notSet")), T = (t) => {
|
|
78
77
|
switch (t.field) {
|
|
79
78
|
case "status":
|
|
80
79
|
return {
|
|
@@ -82,32 +81,32 @@ function ht({
|
|
|
82
81
|
to: t.to && I(t.to).label
|
|
83
82
|
};
|
|
84
83
|
case "time": {
|
|
85
|
-
const d = t.fromIso && new Date(t.fromIso), a = t.toIso && new Date(t.toIso), l = d && a &&
|
|
84
|
+
const d = t.fromIso && new Date(t.fromIso), a = t.toIso && new Date(t.toIso), l = d && a && q(d, a) ? M(t.toIso, {
|
|
86
85
|
hour: "2-digit",
|
|
87
86
|
minute: "2-digit"
|
|
88
87
|
}) : void 0;
|
|
89
88
|
return {
|
|
90
|
-
from: t.fromIso &&
|
|
91
|
-
to: l ?? (t.toIso &&
|
|
89
|
+
from: t.fromIso && N(t.fromIso),
|
|
90
|
+
to: l ?? (t.toIso && N(t.toIso))
|
|
92
91
|
};
|
|
93
92
|
}
|
|
94
93
|
case "duration":
|
|
95
94
|
return {
|
|
96
|
-
from: t.fromMin === void 0 ? void 0 :
|
|
97
|
-
to: t.toMin === void 0 ? void 0 :
|
|
95
|
+
from: t.fromMin === void 0 ? void 0 : o(i("history.minutes"), { n: t.fromMin }),
|
|
96
|
+
to: t.toMin === void 0 ? void 0 : o(i("history.minutes"), { n: t.toMin })
|
|
98
97
|
};
|
|
99
98
|
default:
|
|
100
99
|
return { from: t.from || void 0, to: t.to || void 0 };
|
|
101
100
|
}
|
|
102
|
-
},
|
|
103
|
-
const d =
|
|
104
|
-
return t.field === "colour" && [a, l].some((u) => u && S.test(u)) ?
|
|
101
|
+
}, D = (t) => {
|
|
102
|
+
const d = o(i(`history.fields.${t.field}`)), { from: a, to: l } = T(t);
|
|
103
|
+
return t.field === "colour" && [a, l].some((u) => u && S.test(u)) ? o(i("history.changed.colour")) : a && !l ? o(i("history.changeCleared"), { field: d, from: a }) : !a && l ? o(i("history.changeSet"), { field: d, to: l }) : o(i("history.changeFromTo"), {
|
|
105
104
|
field: d,
|
|
106
105
|
from: a ?? b,
|
|
107
106
|
to: l ?? b
|
|
108
107
|
});
|
|
109
|
-
},
|
|
110
|
-
const d = (n, c) => n && t.field === "colour" && S.test(n) ? /* @__PURE__ */
|
|
108
|
+
}, v = (t) => {
|
|
109
|
+
const d = (n, c) => n && t.field === "colour" && S.test(n) ? /* @__PURE__ */ e(
|
|
111
110
|
"span",
|
|
112
111
|
{
|
|
113
112
|
className: "ds:inline-block ds:size-4 ds:shrink-0 ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--border)] ds:[background-color:var(--history-swatch)] ds:forced-colors:[forced-color-adjust:none]",
|
|
@@ -115,31 +114,31 @@ function ht({
|
|
|
115
114
|
"--history-swatch": n.startsWith("#") ? n : `#${n}`
|
|
116
115
|
}
|
|
117
116
|
}
|
|
118
|
-
) : n ? /* @__PURE__ */
|
|
117
|
+
) : n ? /* @__PURE__ */ e(
|
|
119
118
|
"span",
|
|
120
119
|
{
|
|
121
120
|
className: c ? "ds:min-w-0 ds:font-[var(--font-weight-medium)] ds:text-[color:var(--foreground)]" : "ds:min-w-0 ds:text-[color:var(--muted-foreground)]",
|
|
122
121
|
children: n
|
|
123
122
|
}
|
|
124
|
-
) : /* @__PURE__ */
|
|
125
|
-
|
|
123
|
+
) : /* @__PURE__ */ e("span", { className: "ds:min-w-0 ds:text-[color:var(--muted-foreground)]", children: b }), a = (n) => n ? /* @__PURE__ */ e(
|
|
124
|
+
L,
|
|
126
125
|
{
|
|
127
126
|
value: n,
|
|
128
127
|
option: I(n),
|
|
129
128
|
size: "sm"
|
|
130
129
|
}
|
|
131
|
-
) : d(void 0, !1), { from: l, to: u } =
|
|
132
|
-
return /* @__PURE__ */
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */
|
|
130
|
+
) : d(void 0, !1), { from: l, to: u } = T(t);
|
|
131
|
+
return /* @__PURE__ */ h("div", { className: "ds:min-w-0", "data-history-change": t.field, children: [
|
|
132
|
+
/* @__PURE__ */ e("span", { className: "ds:sr-only", children: D(t) }),
|
|
133
|
+
/* @__PURE__ */ h(
|
|
135
134
|
"div",
|
|
136
135
|
{
|
|
137
136
|
"aria-hidden": "true",
|
|
138
137
|
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
139
138
|
children: [
|
|
140
139
|
t.field === "status" ? a(t.from) : d(l, !1),
|
|
141
|
-
/* @__PURE__ */
|
|
142
|
-
|
|
140
|
+
/* @__PURE__ */ e(
|
|
141
|
+
G,
|
|
143
142
|
{
|
|
144
143
|
className: "ds:size-4 ds:shrink-0 ds:text-[color:var(--muted-foreground)] ds:rtl:rotate-180",
|
|
145
144
|
"aria-hidden": "true"
|
|
@@ -150,154 +149,154 @@ function ht({
|
|
|
150
149
|
}
|
|
151
150
|
)
|
|
152
151
|
] });
|
|
153
|
-
},
|
|
152
|
+
}, O = (t) => {
|
|
154
153
|
switch (t.kind) {
|
|
155
154
|
case "created":
|
|
156
155
|
return {
|
|
157
|
-
title:
|
|
156
|
+
title: o(i("history.created")),
|
|
158
157
|
type: "success",
|
|
159
|
-
icon: /* @__PURE__ */
|
|
158
|
+
icon: /* @__PURE__ */ e(H, { size: 16, "aria-hidden": "true" })
|
|
160
159
|
};
|
|
161
160
|
case "copied":
|
|
162
161
|
return {
|
|
163
|
-
title:
|
|
162
|
+
title: o(i("history.copied")),
|
|
164
163
|
type: "success",
|
|
165
|
-
icon: /* @__PURE__ */
|
|
164
|
+
icon: /* @__PURE__ */ e(B, { size: 16, "aria-hidden": "true" })
|
|
166
165
|
};
|
|
167
166
|
case "confirmedByPatient": {
|
|
168
167
|
const r = z.confirmed.Icon;
|
|
169
168
|
return {
|
|
170
|
-
title:
|
|
169
|
+
title: o(i("history.confirmedByPatient")),
|
|
171
170
|
type: "success",
|
|
172
|
-
icon: /* @__PURE__ */
|
|
171
|
+
icon: /* @__PURE__ */ e(r, { size: 16, "aria-hidden": "true" })
|
|
173
172
|
};
|
|
174
173
|
}
|
|
175
174
|
case "deleted":
|
|
176
175
|
return {
|
|
177
|
-
title:
|
|
176
|
+
title: o(i("history.deleted")),
|
|
178
177
|
type: "error",
|
|
179
|
-
icon: /* @__PURE__ */
|
|
178
|
+
icon: /* @__PURE__ */ e(R, { size: 16, "aria-hidden": "true" })
|
|
180
179
|
};
|
|
181
180
|
}
|
|
182
|
-
const d =
|
|
181
|
+
const d = X(t), a = w ? d.filter((r) => !U.has(r.field)) : d, l = new Set(a.map((r) => r.field)), u = [
|
|
183
182
|
...t.kind === "edited" ? t.fields : [],
|
|
184
183
|
...d.filter((r) => !l.has(r.field)).map((r) => r.field)
|
|
185
184
|
].filter(
|
|
186
|
-
(r, m,
|
|
187
|
-
), n = u.length > 0 ?
|
|
188
|
-
fields: u.map((r) =>
|
|
185
|
+
(r, m, _) => r !== "status" && !l.has(r) && _.indexOf(r) === m
|
|
186
|
+
), n = u.length > 0 ? o(i("history.editedDetail"), {
|
|
187
|
+
fields: u.map((r) => o(i(`history.fields.${r}`))).join(", ")
|
|
189
188
|
}) : void 0, [c] = a;
|
|
190
189
|
if (a.length === 1 && c && !n)
|
|
191
190
|
switch (c.field) {
|
|
192
191
|
case "status": {
|
|
193
192
|
const { to: r } = c, m = r ? z[r].Icon : k;
|
|
194
193
|
return {
|
|
195
|
-
title:
|
|
194
|
+
title: o(i("history.status")),
|
|
196
195
|
type: r === "cancelled" || r === "absent" ? "warning" : "neutral",
|
|
197
|
-
icon: /* @__PURE__ */
|
|
198
|
-
detail:
|
|
196
|
+
icon: /* @__PURE__ */ e(m, { size: 16, "aria-hidden": "true" }),
|
|
197
|
+
detail: v(c)
|
|
199
198
|
};
|
|
200
199
|
}
|
|
201
200
|
case "time":
|
|
202
201
|
return {
|
|
203
|
-
title:
|
|
202
|
+
title: o(i("history.moved")),
|
|
204
203
|
type: "info",
|
|
205
|
-
icon: /* @__PURE__ */
|
|
206
|
-
detail:
|
|
204
|
+
icon: /* @__PURE__ */ e(C, { size: 16, "aria-hidden": "true" }),
|
|
205
|
+
detail: v(c)
|
|
207
206
|
};
|
|
208
207
|
case "duration":
|
|
209
208
|
return {
|
|
210
|
-
title:
|
|
209
|
+
title: o(i("history.resized")),
|
|
211
210
|
type: "info",
|
|
212
|
-
icon: /* @__PURE__ */
|
|
213
|
-
detail:
|
|
211
|
+
icon: /* @__PURE__ */ e(x, { size: 16, "aria-hidden": "true" }),
|
|
212
|
+
detail: v(c)
|
|
214
213
|
};
|
|
215
214
|
default:
|
|
216
215
|
return {
|
|
217
|
-
title:
|
|
216
|
+
title: o(i(`history.changed.${c.field}`)),
|
|
218
217
|
type: "neutral",
|
|
219
|
-
icon: /* @__PURE__ */
|
|
220
|
-
detail:
|
|
218
|
+
icon: /* @__PURE__ */ e(k, { size: 16, "aria-hidden": "true" }),
|
|
219
|
+
detail: v(c)
|
|
221
220
|
};
|
|
222
221
|
}
|
|
223
222
|
if (a.length > 0) {
|
|
224
223
|
const r = t.kind === "moved" ? {
|
|
225
224
|
title: "history.moved",
|
|
226
|
-
icon: /* @__PURE__ */
|
|
225
|
+
icon: /* @__PURE__ */ e(C, { size: 16, "aria-hidden": "true" })
|
|
227
226
|
} : t.kind === "resized" ? {
|
|
228
227
|
title: "history.resized",
|
|
229
|
-
icon: /* @__PURE__ */
|
|
228
|
+
icon: /* @__PURE__ */ e(x, { size: 16, "aria-hidden": "true" })
|
|
230
229
|
} : t.kind === "status" ? {
|
|
231
230
|
title: "history.status",
|
|
232
231
|
icon: (() => {
|
|
233
232
|
const m = z[t.to].Icon;
|
|
234
|
-
return /* @__PURE__ */
|
|
233
|
+
return /* @__PURE__ */ e(m, { size: 16, "aria-hidden": "true" });
|
|
235
234
|
})()
|
|
236
235
|
} : {
|
|
237
236
|
title: "history.edited",
|
|
238
|
-
icon: /* @__PURE__ */
|
|
237
|
+
icon: /* @__PURE__ */ e(k, { size: 16, "aria-hidden": "true" })
|
|
239
238
|
};
|
|
240
239
|
return {
|
|
241
|
-
title:
|
|
240
|
+
title: o(i(r.title)),
|
|
242
241
|
type: t.kind === "moved" || t.kind === "resized" ? "info" : t.kind === "status" && (t.to === "cancelled" || t.to === "absent") ? "warning" : "neutral",
|
|
243
242
|
icon: r.icon,
|
|
244
|
-
detail: /* @__PURE__ */
|
|
245
|
-
/* @__PURE__ */
|
|
243
|
+
detail: /* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
244
|
+
/* @__PURE__ */ e(
|
|
246
245
|
"dl",
|
|
247
246
|
{
|
|
248
|
-
"aria-label":
|
|
247
|
+
"aria-label": o(i("history.changesLabel")),
|
|
249
248
|
className: "ds:m-0 ds:grid ds:grid-cols-[auto_minmax(0,1fr)] ds:items-baseline ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-xs)]",
|
|
250
|
-
children: a.map((m) => /* @__PURE__ */
|
|
251
|
-
/* @__PURE__ */
|
|
252
|
-
/* @__PURE__ */
|
|
249
|
+
children: a.map((m) => /* @__PURE__ */ h("div", { className: "ds:contents", children: [
|
|
250
|
+
/* @__PURE__ */ e("dt", { className: "type-label ds:text-[color:var(--muted-foreground)]", children: o(i(`history.fields.${m.field}`)) }),
|
|
251
|
+
/* @__PURE__ */ e("dd", { className: "ds:m-0 ds:min-w-0", children: v(m) })
|
|
253
252
|
] }, m.field))
|
|
254
253
|
}
|
|
255
254
|
),
|
|
256
|
-
n ? /* @__PURE__ */
|
|
255
|
+
n ? /* @__PURE__ */ e("p", { className: "ds:m-0", children: n }) : null
|
|
257
256
|
] })
|
|
258
257
|
};
|
|
259
258
|
}
|
|
260
259
|
return {
|
|
261
|
-
title:
|
|
260
|
+
title: o(i("history.edited")),
|
|
262
261
|
type: "neutral",
|
|
263
|
-
icon: /* @__PURE__ */
|
|
264
|
-
detail: n
|
|
262
|
+
icon: /* @__PURE__ */ e(k, { size: 16, "aria-hidden": "true" }),
|
|
263
|
+
detail: n ?? void 0
|
|
265
264
|
};
|
|
266
265
|
};
|
|
267
|
-
return
|
|
268
|
-
|
|
266
|
+
return s.length === 0 ? /* @__PURE__ */ e(
|
|
267
|
+
$,
|
|
269
268
|
{
|
|
270
269
|
variant: "first-use",
|
|
271
270
|
size: "sm",
|
|
272
|
-
title:
|
|
271
|
+
title: o(i("historyEmpty"))
|
|
273
272
|
}
|
|
274
|
-
) : /* @__PURE__ */
|
|
275
|
-
const d =
|
|
276
|
-
return /* @__PURE__ */
|
|
277
|
-
|
|
273
|
+
) : /* @__PURE__ */ e(y, { order: "newest-first", "aria-label": o(i("historyTitle")), children: P(s).map((t) => {
|
|
274
|
+
const d = O(t);
|
|
275
|
+
return /* @__PURE__ */ h(
|
|
276
|
+
y.Event,
|
|
278
277
|
{
|
|
279
278
|
eventId: t.id,
|
|
280
279
|
type: d.type,
|
|
281
280
|
className: "ds:[column-gap:var(--spacing-sm)] ds:[padding-block-end:var(--spacing-lg)] ds:before:bg-[var(--primary)]",
|
|
282
281
|
children: [
|
|
283
|
-
/* @__PURE__ */
|
|
284
|
-
/* @__PURE__ */
|
|
285
|
-
|
|
282
|
+
/* @__PURE__ */ e(y.Dot, { icon: d.icon }),
|
|
283
|
+
/* @__PURE__ */ e(
|
|
284
|
+
y.Content,
|
|
286
285
|
{
|
|
287
286
|
title: d.title,
|
|
288
287
|
description: d.detail,
|
|
289
288
|
className: "ds:[padding-block-end:0] ds:[&>[data-component=card]]:border-[color:var(--card-border)] ds:[&>[data-component=card]]:shadow-[var(--shadow-card)]",
|
|
290
289
|
actor: t.actor.trim() ? { name: t.actor } : void 0,
|
|
291
|
-
children: /* @__PURE__ */
|
|
292
|
-
/* @__PURE__ */
|
|
293
|
-
|
|
290
|
+
children: /* @__PURE__ */ h("span", { className: "ds:mt-[var(--spacing-sm)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
291
|
+
/* @__PURE__ */ e(
|
|
292
|
+
j,
|
|
294
293
|
{
|
|
295
294
|
"aria-hidden": "true",
|
|
296
295
|
className: "ds:size-4 ds:shrink-0 ds:text-[color:var(--muted-foreground)]"
|
|
297
296
|
}
|
|
298
297
|
),
|
|
299
|
-
/* @__PURE__ */
|
|
300
|
-
|
|
298
|
+
/* @__PURE__ */ e(
|
|
299
|
+
y.Timestamp,
|
|
301
300
|
{
|
|
302
301
|
date: t.atIso,
|
|
303
302
|
relative: !1,
|
|
@@ -314,8 +313,8 @@ function ht({
|
|
|
314
313
|
}) });
|
|
315
314
|
}
|
|
316
315
|
export {
|
|
317
|
-
|
|
318
|
-
|
|
316
|
+
pt as A,
|
|
317
|
+
ut as C,
|
|
319
318
|
C as M
|
|
320
319
|
};
|
|
321
|
-
//# sourceMappingURL=appointment-details-panel.history-
|
|
320
|
+
//# sourceMappingURL=appointment-details-panel.history-BxNqcA-r.js.map
|
|
@@ -10,7 +10,7 @@ import { I as tt } from "./icon-button-u9VMQn3x.js";
|
|
|
10
10
|
import { M as ss } from "./multi-select-DeMiHm8T.js";
|
|
11
11
|
import { S as ns } from "./search-input-CRAMo1CA.js";
|
|
12
12
|
import { B as le } from "./button-Dp4j9ygh.js";
|
|
13
|
-
import { B as st } from "./button-group-
|
|
13
|
+
import { B as st } from "./button-group-CHQD8GJ0.js";
|
|
14
14
|
import { D as nt } from "./date-picker-CD-PBzXM.js";
|
|
15
15
|
import { P as as } from "./panel-header-CbtlTe85.js";
|
|
16
16
|
import { S as rs } from "./skeleton-tTWJpvAq.js";
|
|
@@ -773,4 +773,4 @@ export {
|
|
|
773
773
|
Ts as A,
|
|
774
774
|
fs as a
|
|
775
775
|
};
|
|
776
|
-
//# sourceMappingURL=appointment-timeline-
|
|
776
|
+
//# sourceMappingURL=appointment-timeline-CuZW-CGT.js.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as w, jsx as l, Fragment as ot } from "react/jsx-runtime";
|
|
|
2
2
|
import { createContext as Jt, useContext as we, useRef as A, useLayoutEffect as Kn, useMemo as E, forwardRef as Pn, useEffect as Ae, useState as qe, useCallback as B, useImperativeHandle as $n, useId as Fn } from "react";
|
|
3
3
|
import { useTranslation as Pe } from "react-i18next";
|
|
4
4
|
import { u as zn } from "./registry-DvAUVLHh.js";
|
|
5
|
-
import { e as Yn } from "./data-grid-
|
|
5
|
+
import { e as Yn } from "./data-grid-CkzbCZSo.js";
|
|
6
6
|
import { a as K } from "./format-number-DdzqwMs1.js";
|
|
7
7
|
import { i as Vt } from "./is-development-CLUAnsU7.js";
|
|
8
8
|
import { B as st } from "./badge-BUk4RjTS.js";
|
|
@@ -1997,4 +1997,4 @@ export {
|
|
|
1997
1997
|
Ci as u,
|
|
1998
1998
|
Yt as v
|
|
1999
1999
|
};
|
|
2000
|
-
//# sourceMappingURL=bill-line-table-
|
|
2000
|
+
//# sourceMappingURL=bill-line-table-B8Cc2pTH.js.map
|