@alfadocs/ui-kit 1.136.0 → 1.138.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-card-BT1cMZIX.js → appointment-card-CaxFXtSn.js} +196 -184
- package/dist/_chunks/appointment-details-panel.history-DrIMDQYf.js +314 -0
- package/dist/_chunks/appointment-details-panel.identity-C20Y9xNC.js +223 -0
- package/dist/_chunks/{appointment-timeline-Dy4YQJ17.js → appointment-timeline-BEwgbYyG.js} +113 -110
- package/dist/_chunks/{appointment-tray-B3gSHL1j.js → appointment-tray-DPpeR9JT.js} +8 -8
- package/dist/_chunks/calendar-appointment-editor-dialog-SxSkOTnO.js +5519 -0
- package/dist/_chunks/calendar-editor-discard-host-DjUhoFr2.js +1336 -0
- package/dist/_chunks/calendar-editor-guard-9fShhNIA.js +31 -0
- package/dist/_chunks/calendar-waiting-list-panel-331vzAdl.js +981 -0
- package/dist/_chunks/calendar-workspace.model-B8yPwuBv.js +1557 -0
- package/dist/_chunks/calendar.sheets-aodjllWd.js +4585 -0
- package/dist/_chunks/color-picker-CC8ZfntU.js +582 -0
- package/dist/_chunks/{document-preview-DWlejd8A.js → document-preview-CirR3C_m.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-BBvU7sAo.js → fiscal-code-input-DZlpaMGg.js} +2 -2
- package/dist/_chunks/{iban-input-DuTwKok5.js → iban-input-CdSLRzQN.js} +2 -2
- package/dist/_chunks/list-todo-KWvUhmT_.js +33 -0
- package/dist/_chunks/{notes-panel-BvjAo4RQ.js → notes-panel-DsEKNtsw.js} +2 -2
- package/dist/_chunks/palettes-CKVXYTzo.js +172 -0
- package/dist/_chunks/{patient-account-settings-Bmfeclpd.js → patient-account-settings-Cs9y-pVA.js} +3 -3
- package/dist/_chunks/{patient-check-in-resume-CYZ-SvsF.js → patient-check-in-resume-4qi_klQV.js} +5 -5
- package/dist/_chunks/{patient-details-9eh9cNy7.js → patient-details-Dv7EiTCo.js} +2 -2
- package/dist/_chunks/{patient-field-row-B782eT0C.js → patient-field-row-DuHWGlLz.js} +2 -2
- package/dist/_chunks/patient-picker-BZJuOgMw.js +173 -0
- package/dist/_chunks/{patient-summary-card-K9zaMl1O.js → patient-summary-card-D-cDzOim.js} +2 -2
- package/dist/_chunks/{portal-details-DCIiGkHA.js → portal-details-BGc_FLQk.js} +3 -3
- package/dist/_chunks/{portal-documents-DVKj6Sco.js → portal-documents-BSI1U5lI.js} +3 -3
- package/dist/_chunks/{portal-parts-Br8wuala.js → portal-parts-C99CreYO.js} +2 -2
- package/dist/_chunks/{privacy-mask-C19dJFMk.js → privacy-mask-C2ZLKrMh.js} +5 -5
- package/dist/_chunks/{rich-text-editor-DjHL1b3E.js → rich-text-editor-C48omVjq.js} +2 -2
- package/dist/_chunks/task-editor-wKbFbGqW.js +1093 -0
- package/dist/_chunks/use-appointment-details-read-jGkJalX8.js +1966 -0
- package/dist/agent-catalog.json +2 -2
- package/dist/appointment-editor-panel/index.js +100 -0
- package/dist/booking-tools-data/index.js +82 -0
- package/dist/browser-support.js +1 -1
- package/dist/calendar-action-buttons/index.js +178 -0
- package/dist/components/appointment-card/appointment-card.d.ts +5 -2
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +6 -5
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +6 -0
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/color-picker/index.js +5 -4
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/iban-input/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +58 -0
- package/dist/host-legacy.css +16 -0
- package/dist/i18n/locales/ar.d.ts +0 -1
- package/dist/i18n/locales/ar.js +0 -1
- package/dist/i18n/locales/de.d.ts +0 -1
- package/dist/i18n/locales/de.js +0 -1
- package/dist/i18n/locales/el.d.ts +0 -1
- package/dist/i18n/locales/el.js +0 -1
- package/dist/i18n/locales/en.d.ts +0 -1
- package/dist/i18n/locales/en.js +0 -1
- package/dist/i18n/locales/es.d.ts +0 -1
- package/dist/i18n/locales/es.js +0 -1
- package/dist/i18n/locales/fr.d.ts +0 -1
- package/dist/i18n/locales/fr.js +0 -1
- package/dist/i18n/locales/hi.d.ts +0 -1
- package/dist/i18n/locales/hi.js +0 -1
- package/dist/i18n/locales/it.d.ts +0 -1
- package/dist/i18n/locales/it.js +0 -1
- package/dist/i18n/locales/ja.d.ts +0 -1
- package/dist/i18n/locales/ja.js +0 -1
- package/dist/i18n/locales/nl.d.ts +0 -1
- package/dist/i18n/locales/nl.js +0 -1
- package/dist/i18n/locales/pl.d.ts +0 -1
- package/dist/i18n/locales/pl.js +0 -1
- package/dist/i18n/locales/pt.d.ts +0 -1
- package/dist/i18n/locales/pt.js +0 -1
- package/dist/i18n/locales/ro.d.ts +0 -1
- package/dist/i18n/locales/ro.js +0 -1
- package/dist/i18n/locales/ru.d.ts +0 -1
- package/dist/i18n/locales/ru.js +0 -1
- package/dist/i18n/locales/sq.d.ts +0 -1
- package/dist/i18n/locales/sq.js +0 -1
- package/dist/i18n/locales/sv.d.ts +0 -1
- package/dist/i18n/locales/sv.js +0 -1
- package/dist/i18n/locales/tr.d.ts +0 -1
- package/dist/i18n/locales/tr.js +0 -1
- package/dist/i18n/locales/zh.d.ts +0 -1
- package/dist/i18n/locales/zh.js +0 -1
- package/dist/index.js +1328 -1322
- package/dist/locales/ar.json +0 -1
- package/dist/locales/de.json +0 -1
- package/dist/locales/el.json +0 -1
- package/dist/locales/en.json +0 -1
- package/dist/locales/es.json +0 -1
- package/dist/locales/fr.json +0 -1
- package/dist/locales/hi.json +0 -1
- package/dist/locales/it.json +0 -1
- package/dist/locales/ja.json +0 -1
- package/dist/locales/nl.json +0 -1
- package/dist/locales/pl.json +0 -1
- package/dist/locales/pt.json +0 -1
- package/dist/locales/ro.json +0 -1
- package/dist/locales/ru.json +0 -1
- package/dist/locales/sq.json +0 -1
- package/dist/locales/sv.json +0 -1
- package/dist/locales/tr.json +0 -1
- package/dist/locales/zh.json +0 -1
- package/dist/online-bookings-panel/index.js +69 -0
- package/dist/patterns/calendar/booking-tools/appointment-editor-panel.d.ts +46 -0
- package/dist/patterns/calendar/booking-tools/booking-tools-data.d.ts +48 -0
- package/dist/patterns/calendar/booking-tools/calendar-action-buttons.d.ts +55 -0
- package/dist/patterns/calendar/booking-tools/find-free-slots-panel.d.ts +35 -0
- package/dist/patterns/calendar/booking-tools/online-bookings-panel.d.ts +61 -0
- package/dist/patterns/calendar/booking-tools/waiting-list-panel.d.ts +58 -0
- package/dist/patterns/calendar/calendar-editor-discard-host.d.ts +20 -0
- package/dist/patterns/calendar/calendar-print-sheet.d.ts +16 -0
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +7 -0
- package/dist/patterns/calendar/calendar.model.d.ts +9 -0
- package/dist/patterns/calendar/calendar.sheets.d.ts +59 -17
- package/dist/patterns/calendar/index.js +24 -20
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +158 -0
- package/package.json +27 -2
- package/dist/_chunks/calendar-appointment-editor-dialog-CB4cQOtc.js +0 -13773
- package/dist/_chunks/color-picker-AcaWuKah.js +0 -745
- package/dist/_chunks/task-editor-BfXSn6U1.js +0 -1257
- package/dist/_chunks/use-appointment-details-read-7J0j1FP7.js +0 -2476
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as x, jsx as o, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { A as
|
|
1
|
+
import { jsxs as x, jsx as o, Fragment as Me } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Ne, useId as Fe, useMemo as j, useRef as y, useState as $, useEffect as _e, useCallback as b, useImperativeHandle as ze } from "react";
|
|
3
|
+
import { c as Ae } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as Be } from "react-i18next";
|
|
5
|
+
import { A as ae } from "./appointment-card-CaxFXtSn.js";
|
|
6
6
|
import { B as P } from "./button-DohK_Ak_.js";
|
|
7
|
-
import { B as
|
|
8
|
-
import { D as
|
|
9
|
-
import { P as
|
|
10
|
-
import { S as
|
|
11
|
-
import { E as
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import { a as
|
|
15
|
-
import { u as
|
|
16
|
-
import { C as
|
|
17
|
-
const
|
|
7
|
+
import { B as Ke } from "./button-group-DuQuuulC.js";
|
|
8
|
+
import { D as Ee } from "./date-picker-BmVBVpVu.js";
|
|
9
|
+
import { P as Ye } from "./panel-header-CbtlTe85.js";
|
|
10
|
+
import { S as $e } from "./skeleton-tTWJpvAq.js";
|
|
11
|
+
import { E as Pe } from "./empty-state-DwJ5YNzz.js";
|
|
12
|
+
import { u as ie } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
13
|
+
import { u as We } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
14
|
+
import { a as qe, u as Ge, R as Ve } from "./use-list-reflow-C7O4Uqnl.js";
|
|
15
|
+
import { u as Le } from "./registry-DvAUVLHh.js";
|
|
16
|
+
import { C as Oe } from "./calendar-days-BGWklvE-.js";
|
|
17
|
+
const Qe = {
|
|
18
18
|
id: "appointment-timeline",
|
|
19
19
|
// 'pick' backs select_item (non-persisting activation through
|
|
20
20
|
// onOpenAppointment); 'scroll' backs jump_to_today, which re-anchors the
|
|
@@ -70,13 +70,13 @@ const Oe = {
|
|
|
70
70
|
description: "Stable appointment id emitted on each rendered AppointmentCard inside the timeline."
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
},
|
|
73
|
+
}, oe = 96, Ue = Ae(
|
|
74
74
|
[
|
|
75
75
|
"ds:flex ds:flex-col ds:h-full ds:min-h-0",
|
|
76
76
|
"ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]"
|
|
77
77
|
].join(" "),
|
|
78
78
|
{ variants: { size: { sm: "", md: "" } }, defaultVariants: { size: "sm" } }
|
|
79
|
-
),
|
|
79
|
+
), Xe = [
|
|
80
80
|
"ds:flex-1 ds:min-h-0 ds:overflow-y-auto",
|
|
81
81
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
82
82
|
"ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
|
|
@@ -94,7 +94,7 @@ function k(i) {
|
|
|
94
94
|
const n = `${i.getMonth() + 1}`.padStart(2, "0"), d = `${i.getDate()}`.padStart(2, "0");
|
|
95
95
|
return `${i.getFullYear()}-${n}-${d}`;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Ze(i) {
|
|
98
98
|
const n = [...i].sort(
|
|
99
99
|
(g, m) => +new Date(g.startIso) - +new Date(m.startIso)
|
|
100
100
|
), d = /* @__PURE__ */ new Map();
|
|
@@ -109,7 +109,7 @@ function Xe(i) {
|
|
|
109
109
|
}
|
|
110
110
|
return [...d.values()];
|
|
111
111
|
}
|
|
112
|
-
const
|
|
112
|
+
const Je = Ne(
|
|
113
113
|
({
|
|
114
114
|
id: i,
|
|
115
115
|
items: n,
|
|
@@ -124,56 +124,57 @@ const Ze = Me(
|
|
|
124
124
|
onLoadEarlier: f,
|
|
125
125
|
onLoadLater: p,
|
|
126
126
|
hasMoreEarlier: _,
|
|
127
|
-
hasMoreLater:
|
|
127
|
+
hasMoreLater: re,
|
|
128
128
|
loadingEarlier: M = !1,
|
|
129
129
|
loadingLater: N = !1,
|
|
130
|
-
showFilters:
|
|
130
|
+
showFilters: le = !0,
|
|
131
131
|
onJumpToDate: F,
|
|
132
|
-
emptyTitle:
|
|
133
|
-
emptyDescription:
|
|
134
|
-
className:
|
|
135
|
-
"aria-label":
|
|
136
|
-
headerExtra:
|
|
137
|
-
hideDefaultStatus:
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
132
|
+
emptyTitle: ce,
|
|
133
|
+
emptyDescription: de,
|
|
134
|
+
className: me,
|
|
135
|
+
"aria-label": pe,
|
|
136
|
+
headerExtra: ue,
|
|
137
|
+
hideDefaultStatus: fe = !1,
|
|
138
|
+
wrapText: W = !1,
|
|
139
|
+
...ge
|
|
140
|
+
}, he) => {
|
|
141
|
+
const { t: l, i18n: ve } = Be("ui"), q = Fe(), z = We(), A = m ?? ve.language, G = g ?? l("appointmentTimeline.title"), c = j(
|
|
141
142
|
() => d ? new Date(d) : /* @__PURE__ */ new Date(),
|
|
142
143
|
[d]
|
|
143
|
-
), u = j(() =>
|
|
144
|
+
), u = j(() => Ze(n), [n]), V = z || void 0, ye = j(
|
|
144
145
|
() => u.flatMap((e) => e.items.map((t) => t.id)).join(),
|
|
145
146
|
[u]
|
|
146
|
-
), { containerRef:
|
|
147
|
-
key:
|
|
148
|
-
reduceMotion:
|
|
149
|
-
}),
|
|
150
|
-
|
|
151
|
-
const e =
|
|
147
|
+
), { containerRef: ke } = qe({
|
|
148
|
+
key: ye,
|
|
149
|
+
reduceMotion: V
|
|
150
|
+
}), L = Ge({ reduceMotion: V }), O = y(n), [Q, U] = $([]);
|
|
151
|
+
_e(() => {
|
|
152
|
+
const e = O.current;
|
|
152
153
|
if (e === n) return;
|
|
153
154
|
const t = new Set(n.map((a) => a.id)), s = e.filter((a) => !t.has(a.id));
|
|
154
|
-
s.length > 0 && (
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
s.length > 0 && (U((a) => [...a, ...s]), s.forEach((a) => {
|
|
156
|
+
L.leave(a.id, () => {
|
|
157
|
+
U((Y) => Y.filter((S) => S.id !== a.id));
|
|
157
158
|
});
|
|
158
|
-
})),
|
|
159
|
-
}, [n,
|
|
160
|
-
const
|
|
159
|
+
})), O.current = n;
|
|
160
|
+
}, [n, L]);
|
|
161
|
+
const X = _ ?? !!f, Z = re ?? !!p, B = j(() => {
|
|
161
162
|
if (u.length === 0) return;
|
|
162
163
|
const e = k(c), t = u.map((s) => s.key);
|
|
163
164
|
return t.includes(e) ? e : t.find((s) => s >= e) ?? t[t.length - 1];
|
|
164
|
-
}, [u, c]), D = y(null),
|
|
165
|
+
}, [u, c]), D = y(null), R = y(/* @__PURE__ */ new Map()), J = y(!1), K = y(void 0), ee = y(0), [Te, be] = $(!1), [xe, De] = $(!1), w = b(() => {
|
|
165
166
|
const e = D.current;
|
|
166
167
|
if (!e) return;
|
|
167
168
|
const { scrollTop: t, scrollHeight: s, clientHeight: a } = e;
|
|
168
|
-
|
|
169
|
+
be(t > 1), De(t + a < s - 1);
|
|
169
170
|
}, []), I = b(
|
|
170
171
|
(e, t) => {
|
|
171
172
|
const s = D.current;
|
|
172
173
|
if (!s) return;
|
|
173
|
-
let a =
|
|
174
|
+
let a = R.current.get(e);
|
|
174
175
|
if (!a) {
|
|
175
|
-
const S = [...
|
|
176
|
-
a =
|
|
176
|
+
const S = [...R.current.keys()].sort(), ne = S.find((He) => He >= e) ?? S[S.length - 1];
|
|
177
|
+
a = ne ? R.current.get(ne) : void 0;
|
|
177
178
|
}
|
|
178
179
|
if (!a) return;
|
|
179
180
|
const Y = a.getBoundingClientRect().top - s.getBoundingClientRect().top;
|
|
@@ -184,56 +185,56 @@ const Ze = Me(
|
|
|
184
185
|
},
|
|
185
186
|
[z]
|
|
186
187
|
);
|
|
187
|
-
|
|
188
|
+
ie(() => {
|
|
188
189
|
var s;
|
|
189
190
|
const e = D.current;
|
|
190
191
|
if (!e) return;
|
|
191
192
|
const t = (s = u[0]) == null ? void 0 : s.key;
|
|
192
|
-
if (!
|
|
193
|
-
u.length > 0 && B && (I(B, !1),
|
|
193
|
+
if (!J.current)
|
|
194
|
+
u.length > 0 && B && (I(B, !1), J.current = !0);
|
|
194
195
|
else if (K.current && t && t < K.current) {
|
|
195
|
-
const a = e.scrollHeight -
|
|
196
|
+
const a = e.scrollHeight - ee.current;
|
|
196
197
|
a > 0 && (e.scrollTop += a);
|
|
197
198
|
}
|
|
198
|
-
K.current = t,
|
|
199
|
-
}, [u, B, I,
|
|
199
|
+
K.current = t, ee.current = e.scrollHeight, w();
|
|
200
|
+
}, [u, B, I, w]), ie(() => {
|
|
200
201
|
const e = D.current;
|
|
201
202
|
if (!e || typeof ResizeObserver > "u") return;
|
|
202
|
-
const t = new ResizeObserver(
|
|
203
|
+
const t = new ResizeObserver(w);
|
|
203
204
|
return t.observe(e), () => t.disconnect();
|
|
204
|
-
}, [
|
|
205
|
-
const
|
|
206
|
-
|
|
205
|
+
}, [w]);
|
|
206
|
+
const Re = b(() => {
|
|
207
|
+
w();
|
|
207
208
|
const e = D.current;
|
|
208
209
|
if (!e) return;
|
|
209
210
|
const { scrollTop: t, scrollHeight: s, clientHeight: a } = e;
|
|
210
|
-
f &&
|
|
211
|
+
f && X && !M && t <= oe && f(), p && Z && !N && s - t - a <= oe && p();
|
|
211
212
|
}, [
|
|
212
|
-
|
|
213
|
+
w,
|
|
213
214
|
f,
|
|
214
215
|
p,
|
|
215
|
-
U,
|
|
216
216
|
X,
|
|
217
|
+
Z,
|
|
217
218
|
M,
|
|
218
219
|
N
|
|
219
220
|
]), T = b(
|
|
220
221
|
(e) => {
|
|
221
|
-
const t = k(e), s =
|
|
222
|
+
const t = k(e), s = R.current.has(t);
|
|
222
223
|
I(t, !0), s || F == null || F(e.toISOString());
|
|
223
224
|
},
|
|
224
225
|
[I, F]
|
|
225
|
-
), we = b(() => T(c), [T, c]),
|
|
226
|
+
), we = b(() => T(c), [T, c]), Ie = b(() => {
|
|
226
227
|
const e = new Date(c), t = (e.getDay() + 6) % 7;
|
|
227
228
|
e.setDate(e.getDate() - t), T(e);
|
|
228
|
-
}, [T, c]),
|
|
229
|
+
}, [T, c]), Se = b(() => {
|
|
229
230
|
T(new Date(c.getFullYear(), c.getMonth(), 1));
|
|
230
231
|
}, [T, c]), E = y(n);
|
|
231
232
|
E.current = n;
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
const
|
|
233
|
+
const te = y(null);
|
|
234
|
+
ze(he, () => te.current, []);
|
|
235
|
+
const je = j(
|
|
235
236
|
() => ({
|
|
236
|
-
getItems: () => E.current.map((e) => ({ id: e.id, state: e.state })),
|
|
237
|
+
getItems: () => E.current.map((e) => ({ id: e.id, state: e.state ?? "" })),
|
|
237
238
|
selectItem: (e) => {
|
|
238
239
|
const t = E.current.find((s) => s.id === e);
|
|
239
240
|
t && (v == null || v(t));
|
|
@@ -242,42 +243,42 @@ const Ze = Me(
|
|
|
242
243
|
}),
|
|
243
244
|
[v, I, c]
|
|
244
245
|
);
|
|
245
|
-
|
|
246
|
-
const
|
|
246
|
+
Le(Qe, je, i);
|
|
247
|
+
const Ce = u.length === 0 && !M && !N, se = (e) => /* @__PURE__ */ o(
|
|
247
248
|
"div",
|
|
248
249
|
{
|
|
249
250
|
"aria-hidden": "true",
|
|
250
251
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:py-[var(--spacing-xs)]",
|
|
251
|
-
children: /* @__PURE__ */ o(
|
|
252
|
+
children: /* @__PURE__ */ o($e, { variant: "rectangular", height: "3.5rem" })
|
|
252
253
|
},
|
|
253
254
|
e
|
|
254
255
|
);
|
|
255
256
|
return /* @__PURE__ */ x(
|
|
256
257
|
"section",
|
|
257
258
|
{
|
|
258
|
-
ref:
|
|
259
|
+
ref: te,
|
|
259
260
|
"data-component": "appointment-timeline",
|
|
260
261
|
"data-component-id": i,
|
|
261
|
-
"aria-label":
|
|
262
|
-
className:
|
|
263
|
-
...
|
|
262
|
+
"aria-label": pe ?? G,
|
|
263
|
+
className: Ue({ size: r, className: me }),
|
|
264
|
+
...ge,
|
|
264
265
|
children: [
|
|
265
266
|
/* @__PURE__ */ o(
|
|
266
|
-
|
|
267
|
+
Ye,
|
|
267
268
|
{
|
|
268
|
-
icon: /* @__PURE__ */ o(
|
|
269
|
-
title:
|
|
270
|
-
filters:
|
|
271
|
-
/* @__PURE__ */ x(
|
|
269
|
+
icon: /* @__PURE__ */ o(Oe, {}),
|
|
270
|
+
title: G,
|
|
271
|
+
filters: le ? /* @__PURE__ */ x(Me, { children: [
|
|
272
|
+
/* @__PURE__ */ x(Ke, { label: l("appointmentTimeline.filtersLabel"), children: [
|
|
272
273
|
/* @__PURE__ */ o(P, { intent: "outline", size: "sm", onClick: we, children: l("appointmentTimeline.today") }),
|
|
273
|
-
/* @__PURE__ */ o(P, { intent: "outline", size: "sm", onClick:
|
|
274
|
-
/* @__PURE__ */ o(P, { intent: "outline", size: "sm", onClick:
|
|
274
|
+
/* @__PURE__ */ o(P, { intent: "outline", size: "sm", onClick: Ie, children: l("appointmentTimeline.thisWeek") }),
|
|
275
|
+
/* @__PURE__ */ o(P, { intent: "outline", size: "sm", onClick: Se, children: l("appointmentTimeline.thisMonth") })
|
|
275
276
|
] }),
|
|
276
|
-
/* @__PURE__ */ o("label", { htmlFor:
|
|
277
|
+
/* @__PURE__ */ o("label", { htmlFor: q, className: "ds:sr-only", children: l("appointmentTimeline.jumpToDate") }),
|
|
277
278
|
/* @__PURE__ */ o(
|
|
278
|
-
|
|
279
|
+
Ee,
|
|
279
280
|
{
|
|
280
|
-
id:
|
|
281
|
+
id: q,
|
|
281
282
|
size: "sm",
|
|
282
283
|
placeholder: l("appointmentTimeline.jumpToDate"),
|
|
283
284
|
onChange: (e) => {
|
|
@@ -288,30 +289,30 @@ const Ze = Me(
|
|
|
288
289
|
] }) : void 0
|
|
289
290
|
}
|
|
290
291
|
),
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
ue,
|
|
293
|
+
Ce ? /* @__PURE__ */ o("div", { className: "ds:flex-1 ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ o(
|
|
294
|
+
Pe,
|
|
294
295
|
{
|
|
295
296
|
variant: "first-use",
|
|
296
297
|
size: "sm",
|
|
297
|
-
title:
|
|
298
|
-
description:
|
|
298
|
+
title: ce ?? l("appointmentTimeline.empty.title"),
|
|
299
|
+
description: de ?? l("appointmentTimeline.empty.description")
|
|
299
300
|
}
|
|
300
301
|
) }) : /* @__PURE__ */ x(
|
|
301
302
|
"div",
|
|
302
303
|
{
|
|
303
304
|
ref: D,
|
|
304
305
|
tabIndex: 0,
|
|
305
|
-
onScroll:
|
|
306
|
-
"data-fade-top":
|
|
307
|
-
"data-fade-bottom":
|
|
308
|
-
className:
|
|
306
|
+
onScroll: Re,
|
|
307
|
+
"data-fade-top": Te ? "true" : void 0,
|
|
308
|
+
"data-fade-bottom": xe ? "true" : void 0,
|
|
309
|
+
className: Xe,
|
|
309
310
|
children: [
|
|
310
|
-
M ?
|
|
311
|
+
M ? se("loading-earlier") : null,
|
|
311
312
|
/* @__PURE__ */ x(
|
|
312
313
|
"ol",
|
|
313
314
|
{
|
|
314
|
-
ref:
|
|
315
|
+
ref: ke,
|
|
315
316
|
role: "list",
|
|
316
317
|
className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-md)] ds:p-0",
|
|
317
318
|
children: [
|
|
@@ -319,12 +320,12 @@ const Ze = Me(
|
|
|
319
320
|
"li",
|
|
320
321
|
{
|
|
321
322
|
ref: (t) => {
|
|
322
|
-
t ?
|
|
323
|
+
t ? R.current.set(e.key, t) : R.current.delete(e.key);
|
|
323
324
|
},
|
|
324
325
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
|
|
325
326
|
children: [
|
|
326
327
|
/* @__PURE__ */ o(
|
|
327
|
-
|
|
328
|
+
et,
|
|
328
329
|
{
|
|
329
330
|
date: e.date,
|
|
330
331
|
now: c,
|
|
@@ -340,7 +341,7 @@ const Ze = Me(
|
|
|
340
341
|
role: "list",
|
|
341
342
|
className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0",
|
|
342
343
|
children: e.items.map((t) => /* @__PURE__ */ o(
|
|
343
|
-
|
|
344
|
+
ae,
|
|
344
345
|
{
|
|
345
346
|
item: t,
|
|
346
347
|
size: r,
|
|
@@ -350,10 +351,11 @@ const Ze = Me(
|
|
|
350
351
|
currency: h,
|
|
351
352
|
onActivate: v,
|
|
352
353
|
selected: t.id === H,
|
|
353
|
-
hideDefaultStatus:
|
|
354
|
+
hideDefaultStatus: fe,
|
|
355
|
+
wrapText: W,
|
|
354
356
|
"data-appointment-id": t.id,
|
|
355
357
|
"data-reflow-id": t.id,
|
|
356
|
-
className:
|
|
358
|
+
className: Ve
|
|
357
359
|
},
|
|
358
360
|
t.id
|
|
359
361
|
))
|
|
@@ -363,13 +365,14 @@ const Ze = Me(
|
|
|
363
365
|
},
|
|
364
366
|
e.key
|
|
365
367
|
)),
|
|
366
|
-
|
|
367
|
-
|
|
368
|
+
Q.length > 0 ? Q.map((e) => /* @__PURE__ */ o(
|
|
369
|
+
ae,
|
|
368
370
|
{
|
|
369
371
|
item: e,
|
|
370
372
|
size: r,
|
|
371
373
|
surface: "elevated",
|
|
372
374
|
showPatient: C,
|
|
375
|
+
wrapText: W,
|
|
373
376
|
locale: A,
|
|
374
377
|
currency: h,
|
|
375
378
|
"aria-hidden": "true",
|
|
@@ -387,7 +390,7 @@ const Ze = Me(
|
|
|
387
390
|
]
|
|
388
391
|
}
|
|
389
392
|
),
|
|
390
|
-
N ?
|
|
393
|
+
N ? se("loading-later") : null
|
|
391
394
|
]
|
|
392
395
|
}
|
|
393
396
|
)
|
|
@@ -396,8 +399,8 @@ const Ze = Me(
|
|
|
396
399
|
);
|
|
397
400
|
}
|
|
398
401
|
);
|
|
399
|
-
|
|
400
|
-
function
|
|
402
|
+
Je.displayName = "AppointmentTimeline";
|
|
403
|
+
function et({
|
|
401
404
|
date: i,
|
|
402
405
|
now: n,
|
|
403
406
|
locale: d,
|
|
@@ -446,7 +449,7 @@ function Je({
|
|
|
446
449
|
);
|
|
447
450
|
}
|
|
448
451
|
export {
|
|
449
|
-
|
|
450
|
-
|
|
452
|
+
Je as A,
|
|
453
|
+
Qe as a
|
|
451
454
|
};
|
|
452
|
-
//# sourceMappingURL=appointment-timeline-
|
|
455
|
+
//# sourceMappingURL=appointment-timeline-BEwgbYyG.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as q } from "react-i18next";
|
|
|
5
5
|
import { I as K } from "./icon-button-S8_weU3g.js";
|
|
6
6
|
import { S as V } from "./skeleton-tTWJpvAq.js";
|
|
7
7
|
import { E as W } from "./empty-state-DwJ5YNzz.js";
|
|
8
|
-
import { A as B } from "./appointment-card-
|
|
8
|
+
import { A as B } from "./appointment-card-CaxFXtSn.js";
|
|
9
9
|
import { u as D } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import { C as L } from "./calendar-days-BGWklvE-.js";
|
|
11
11
|
import { P as _ } from "./plus-DzMQ_c6b.js";
|
|
@@ -21,7 +21,7 @@ const it = {
|
|
|
21
21
|
root: {
|
|
22
22
|
attr: "data-component",
|
|
23
23
|
value: "appointment-card",
|
|
24
|
-
description: 'Marks the element as a kit AppointmentCard. The root also emits data-component-id sourced from item.id, data-state with the appointment lifecycle, and data-type with the delivery channel. When the card is interactive its activator (link or button) carries data-action="open-appointment".'
|
|
24
|
+
description: 'Marks the element as a kit AppointmentCard. The root also emits data-component-id sourced from item.id, data-state with the appointment lifecycle (left off when the appointment has no status), and data-type with the delivery channel. When the card is interactive its activator (link or button) carries data-action="open-appointment".'
|
|
25
25
|
},
|
|
26
26
|
instanceId: {
|
|
27
27
|
attr: "data-component-id",
|
|
@@ -102,8 +102,8 @@ const it = {
|
|
|
102
102
|
title: b,
|
|
103
103
|
caption: c,
|
|
104
104
|
size: m = "sm",
|
|
105
|
-
locale:
|
|
106
|
-
currency:
|
|
105
|
+
locale: w,
|
|
106
|
+
currency: x,
|
|
107
107
|
privacy: l = !1,
|
|
108
108
|
privacyTitle: d,
|
|
109
109
|
onOpenAppointment: i,
|
|
@@ -132,8 +132,8 @@ const it = {
|
|
|
132
132
|
{
|
|
133
133
|
item: t,
|
|
134
134
|
size: m,
|
|
135
|
-
locale:
|
|
136
|
-
currency:
|
|
135
|
+
locale: w,
|
|
136
|
+
currency: x,
|
|
137
137
|
privacy: l,
|
|
138
138
|
privacyTitle: l ? d == null ? void 0 : d(t) : void 0,
|
|
139
139
|
onActivate: i,
|
|
@@ -147,7 +147,7 @@ const it = {
|
|
|
147
147
|
E(C, () => g.current, []);
|
|
148
148
|
const j = H(
|
|
149
149
|
() => ({
|
|
150
|
-
getItems: () => p.current.map((t) => ({ id: t.id, state: t.state })),
|
|
150
|
+
getItems: () => p.current.map((t) => ({ id: t.id, state: t.state ?? "" })),
|
|
151
151
|
selectItem: (t) => {
|
|
152
152
|
const y = p.current.find((z) => z.id === t);
|
|
153
153
|
y && (i == null || i(y));
|
|
@@ -197,4 +197,4 @@ export {
|
|
|
197
197
|
it as a,
|
|
198
198
|
F as b
|
|
199
199
|
};
|
|
200
|
-
//# sourceMappingURL=appointment-tray-
|
|
200
|
+
//# sourceMappingURL=appointment-tray-DPpeR9JT.js.map
|