@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
package/dist/locales/ar.json
CHANGED
|
@@ -3295,7 +3295,6 @@
|
|
|
3295
3295
|
"itemLabelGeneric": "{{title}} — {{state}}",
|
|
3296
3296
|
"appointment": "موعد",
|
|
3297
3297
|
"noPatient": "لا يوجد مريض معيّن",
|
|
3298
|
-
"chair": "الكرسي {{chair}}",
|
|
3299
3298
|
"carePlan": "خطة العلاج {{number}}",
|
|
3300
3299
|
"duration_zero": "{{count}} دقيقة",
|
|
3301
3300
|
"duration_one": "دقيقة واحدة",
|
package/dist/locales/de.json
CHANGED
|
@@ -3283,7 +3283,6 @@
|
|
|
3283
3283
|
"itemLabelGeneric": "{{title}} — {{state}}",
|
|
3284
3284
|
"appointment": "Termin",
|
|
3285
3285
|
"noPatient": "Kein Patient zugewiesen",
|
|
3286
|
-
"chair": "Behandlungsstuhl {{chair}}",
|
|
3287
3286
|
"carePlan": "Behandlungsplan {{number}}",
|
|
3288
3287
|
"duration_zero": "{{count}} min",
|
|
3289
3288
|
"duration_one": "{{count}} min",
|
package/dist/locales/el.json
CHANGED
|
@@ -3283,7 +3283,6 @@
|
|
|
3283
3283
|
"itemLabelGeneric": "{{title}} — {{state}}",
|
|
3284
3284
|
"appointment": "Ραντεβού",
|
|
3285
3285
|
"noPatient": "Δεν έχει οριστεί ασθενής",
|
|
3286
|
-
"chair": "Πολυθρόνα {{chair}}",
|
|
3287
3286
|
"carePlan": "Σχέδιο θεραπείας {{number}}",
|
|
3288
3287
|
"duration_zero": "{{count}} λεπ.",
|
|
3289
3288
|
"duration_one": "{{count}} λεπ.",
|
package/dist/locales/en.json
CHANGED
|
@@ -3407,7 +3407,6 @@
|
|
|
3407
3407
|
"itemLabelGeneric": "{{title}} — {{state}}",
|
|
3408
3408
|
"appointment": "Appointment",
|
|
3409
3409
|
"noPatient": "No patient assigned",
|
|
3410
|
-
"chair": "Chair {{chair}}",
|
|
3411
3410
|
"carePlan": "Care plan {{number}}",
|
|
3412
3411
|
"duration_zero": "{{count}} min",
|
|
3413
3412
|
"duration_one": "{{count}} min",
|
package/dist/locales/es.json
CHANGED
|
@@ -3286,7 +3286,6 @@
|
|
|
3286
3286
|
"itemLabelGeneric": "{{title}} — {{state}}",
|
|
3287
3287
|
"appointment": "Cita",
|
|
3288
3288
|
"noPatient": "Sin paciente asignado",
|
|
3289
|
-
"chair": "Sillón {{chair}}",
|
|
3290
3289
|
"carePlan": "Plan de tratamiento {{number}}",
|
|
3291
3290
|
"duration_zero": "{{count}} min",
|
|
3292
3291
|
"duration_one": "{{count}} min",
|
package/dist/locales/fr.json
CHANGED
|
@@ -3286,7 +3286,6 @@
|
|
|
3286
3286
|
"itemLabelGeneric": "{{title}} — {{state}}",
|
|
3287
3287
|
"appointment": "Rendez-vous",
|
|
3288
3288
|
"noPatient": "Aucun patient attribué",
|
|
3289
|
-
"chair": "Fauteuil {{chair}}",
|
|
3290
3289
|
"carePlan": "Plan de soins {{number}}",
|
|
3291
3290
|
"duration_zero": "{{count}} min",
|
|
3292
3291
|
"duration_one": "{{count}} min",
|
package/dist/locales/hi.json
CHANGED
|
@@ -3283,7 +3283,6 @@
|
|
|
3283
3283
|
"itemLabelGeneric": "{{title}} — {{state}}",
|
|
3284
3284
|
"appointment": "अपॉइंटमेंट",
|
|
3285
3285
|
"noPatient": "कोई रोगी असाइन नहीं किया गया",
|
|
3286
|
-
"chair": "चेयर {{chair}}",
|
|
3287
3286
|
"carePlan": "उपचार योजना {{number}}",
|
|
3288
3287
|
"duration_zero": "{{count}} मिनट",
|
|
3289
3288
|
"duration_one": "{{count}} मिनट",
|
package/dist/locales/it.json
CHANGED
|
@@ -3286,7 +3286,6 @@
|
|
|
3286
3286
|
"itemLabelGeneric": "{{title}}: {{state}}",
|
|
3287
3287
|
"appointment": "Appuntamento",
|
|
3288
3288
|
"noPatient": "Nessun paziente assegnato",
|
|
3289
|
-
"chair": "Poltrona {{chair}}",
|
|
3290
3289
|
"carePlan": "Piano di cura {{number}}",
|
|
3291
3290
|
"duration_zero": "{{count}} min",
|
|
3292
3291
|
"duration_one": "{{count}} min",
|
package/dist/locales/ja.json
CHANGED
package/dist/locales/nl.json
CHANGED
|
@@ -3283,7 +3283,6 @@
|
|
|
3283
3283
|
"itemLabelGeneric": "{{title}} — {{state}}",
|
|
3284
3284
|
"appointment": "Afspraak",
|
|
3285
3285
|
"noPatient": "Geen patiënt toegewezen",
|
|
3286
|
-
"chair": "Behandelstoel {{chair}}",
|
|
3287
3286
|
"carePlan": "Behandelplan {{number}}",
|
|
3288
3287
|
"duration_zero": "{{count}} min",
|
|
3289
3288
|
"duration_one": "{{count}} min",
|
package/dist/locales/pl.json
CHANGED
|
@@ -3289,7 +3289,6 @@
|
|
|
3289
3289
|
"itemLabelGeneric": "{{title}} — {{state}}",
|
|
3290
3290
|
"appointment": "Wizyta",
|
|
3291
3291
|
"noPatient": "Brak przypisanego pacjenta",
|
|
3292
|
-
"chair": "Fotel {{chair}}",
|
|
3293
3292
|
"carePlan": "Plan leczenia {{number}}",
|
|
3294
3293
|
"duration_zero": "{{count}} min",
|
|
3295
3294
|
"duration_one": "{{count}} min",
|
package/dist/locales/pt.json
CHANGED
|
@@ -3289,7 +3289,6 @@
|
|
|
3289
3289
|
"itemLabelGeneric": "{{title}} — {{state}}",
|
|
3290
3290
|
"appointment": "Consulta",
|
|
3291
3291
|
"noPatient": "Sem paciente atribuído",
|
|
3292
|
-
"chair": "Cadeira {{chair}}",
|
|
3293
3292
|
"carePlan": "Plano de tratamento {{number}}",
|
|
3294
3293
|
"duration_zero": "{{count}} min",
|
|
3295
3294
|
"duration_one": "{{count}} min",
|
package/dist/locales/ro.json
CHANGED
|
@@ -3286,7 +3286,6 @@
|
|
|
3286
3286
|
"itemLabelGeneric": "{{title}} — {{state}}",
|
|
3287
3287
|
"appointment": "Programare",
|
|
3288
3288
|
"noPatient": "Niciun pacient atribuit",
|
|
3289
|
-
"chair": "Fotoliu {{chair}}",
|
|
3290
3289
|
"carePlan": "Plan de tratament {{number}}",
|
|
3291
3290
|
"duration_zero": "{{count}} min",
|
|
3292
3291
|
"duration_one": "{{count}} min",
|
package/dist/locales/ru.json
CHANGED
|
@@ -3289,7 +3289,6 @@
|
|
|
3289
3289
|
"itemLabelGeneric": "{{title}} — {{state}}",
|
|
3290
3290
|
"appointment": "Приём",
|
|
3291
3291
|
"noPatient": "Пациент не назначен",
|
|
3292
|
-
"chair": "Кресло {{chair}}",
|
|
3293
3292
|
"carePlan": "План лечения {{number}}",
|
|
3294
3293
|
"duration_zero": "{{count}} мин",
|
|
3295
3294
|
"duration_one": "{{count}} мин",
|
package/dist/locales/sq.json
CHANGED
|
@@ -3283,7 +3283,6 @@
|
|
|
3283
3283
|
"itemLabelGeneric": "{{title}} — {{state}}",
|
|
3284
3284
|
"appointment": "Takim",
|
|
3285
3285
|
"noPatient": "Asnjë pacient i caktuar",
|
|
3286
|
-
"chair": "Karrigja {{chair}}",
|
|
3287
3286
|
"carePlan": "Plani i trajtimit {{number}}",
|
|
3288
3287
|
"duration_zero": "{{count}} min",
|
|
3289
3288
|
"duration_one": "{{count}} min",
|
package/dist/locales/sv.json
CHANGED
|
@@ -3283,7 +3283,6 @@
|
|
|
3283
3283
|
"itemLabelGeneric": "{{title}} — {{state}}",
|
|
3284
3284
|
"appointment": "Bokning",
|
|
3285
3285
|
"noPatient": "Ingen patient tilldelad",
|
|
3286
|
-
"chair": "Behandlingsstol {{chair}}",
|
|
3287
3286
|
"carePlan": "Vårdplan {{number}}",
|
|
3288
3287
|
"duration_zero": "{{count}} min",
|
|
3289
3288
|
"duration_one": "{{count}} min",
|
package/dist/locales/tr.json
CHANGED
|
@@ -3283,7 +3283,6 @@
|
|
|
3283
3283
|
"itemLabelGeneric": "{{title}} — {{state}}",
|
|
3284
3284
|
"appointment": "Randevu",
|
|
3285
3285
|
"noPatient": "Hasta atanmadı",
|
|
3286
|
-
"chair": "Koltuk {{chair}}",
|
|
3287
3286
|
"carePlan": "Tedavi planı {{number}}",
|
|
3288
3287
|
"duration_zero": "{{count}} dk",
|
|
3289
3288
|
"duration_one": "{{count}} dk",
|
package/dist/locales/zh.json
CHANGED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useState as h, useMemo as g } from "react";
|
|
3
|
+
import { a as k } from "../_chunks/tooltip-uEBdD1-5.js";
|
|
4
|
+
import { C as v } from "../_chunks/calendar-editor-guard-9fShhNIA.js";
|
|
5
|
+
import { S as B, B as O } from "../_chunks/calendar.sheets-aodjllWd.js";
|
|
6
|
+
import { c as P, o as S } from "../_chunks/calendar-workspace.model-B8yPwuBv.js";
|
|
7
|
+
function A({
|
|
8
|
+
rows: e,
|
|
9
|
+
data: i,
|
|
10
|
+
queue: r
|
|
11
|
+
}) {
|
|
12
|
+
const [o, l] = h(
|
|
13
|
+
P
|
|
14
|
+
), s = g(
|
|
15
|
+
() => S(e, i, r, o),
|
|
16
|
+
[e, i, r, o]
|
|
17
|
+
);
|
|
18
|
+
return { bookings: s, count: s.length, filters: o, setFilters: l };
|
|
19
|
+
}
|
|
20
|
+
const x = { open: () => {
|
|
21
|
+
}, close: () => {
|
|
22
|
+
} };
|
|
23
|
+
function D({
|
|
24
|
+
data: e,
|
|
25
|
+
bookings: i,
|
|
26
|
+
locale: r,
|
|
27
|
+
status: o,
|
|
28
|
+
privacy: l,
|
|
29
|
+
filters: s,
|
|
30
|
+
onFiltersChange: t,
|
|
31
|
+
lastSeenIso: a,
|
|
32
|
+
createdAtById: m,
|
|
33
|
+
currentBookingId: c,
|
|
34
|
+
currentBookingKey: d,
|
|
35
|
+
onRetry: f,
|
|
36
|
+
onShowInCalendar: p,
|
|
37
|
+
onComplete: u
|
|
38
|
+
}) {
|
|
39
|
+
return /* @__PURE__ */ n(k, { children: /* @__PURE__ */ n(v, { value: e, children: /* @__PURE__ */ n(B, { value: x, children: /* @__PURE__ */ n(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
"data-component": "online-bookings-rail-panel",
|
|
43
|
+
className: "ds:flex ds:h-full ds:min-h-0 ds:flex-col",
|
|
44
|
+
children: /* @__PURE__ */ n(
|
|
45
|
+
O,
|
|
46
|
+
{
|
|
47
|
+
bookings: i,
|
|
48
|
+
locale: r,
|
|
49
|
+
privacy: l,
|
|
50
|
+
status: o,
|
|
51
|
+
lastSeenIso: a,
|
|
52
|
+
createdAtById: m,
|
|
53
|
+
currentBookingId: c,
|
|
54
|
+
currentBookingKey: d,
|
|
55
|
+
onRetry: f,
|
|
56
|
+
onShowInCalendar: p,
|
|
57
|
+
onComplete: u,
|
|
58
|
+
filters: s,
|
|
59
|
+
onFiltersChange: t
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
}
|
|
63
|
+
) }) }) });
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
D as OnlineBookingsRailPanel,
|
|
67
|
+
A as useOnlineBookings
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Booking tools: the appointment form (create and edit) as a rail panel.
|
|
3
|
+
*
|
|
4
|
+
* The SAME `AppointmentEditorPanel` the calendar workspace docks, with the
|
|
5
|
+
* providers it reads and nothing else: no `CalendarWorkspace`, no grid, no
|
|
6
|
+
* dashed draft card (`onDraftChange` and `slotPatch` are never passed). The
|
|
7
|
+
* host gives `data`, the prefill and `onSave`; `onClose` fires after a save,
|
|
8
|
+
* on Cancel and on the header close.
|
|
9
|
+
*
|
|
10
|
+
* `guard` is the unsaved-data guard (decision P38, rule B18). Make one with
|
|
11
|
+
* `createEditorGuard()`, read `guard.dirty` and call `guard.ask(proceed)`
|
|
12
|
+
* before a tool switch or a close of the rail: the question is shown here.
|
|
13
|
+
*/
|
|
14
|
+
import { type ComponentProps } from 'react';
|
|
15
|
+
import { type CalendarData } from '../calendar.data';
|
|
16
|
+
import type { CalendarEditorGuard } from '../calendar-editor-guard';
|
|
17
|
+
import { AppointmentEditorPanel, type EditorPlatformOptions } from '../calendar.sheets';
|
|
18
|
+
import type { CalendarEditorLoad } from './booking-tools-data';
|
|
19
|
+
type EditorPanelProps = ComponentProps<typeof AppointmentEditorPanel>;
|
|
20
|
+
export interface AppointmentEditorRailPanelProps extends Omit<EditorPanelProps, 'className' | 'closeOnSave' | 'onDraftChange' | 'slotPatch' | 'onDuplicate' | 'colorAssociation' | 'platform'> {
|
|
21
|
+
/** The practice read model: patients, operators, chairs, cares. */
|
|
22
|
+
data: CalendarData;
|
|
23
|
+
/** After a save the host accepted, on Cancel and on the header close. */
|
|
24
|
+
onClose(): void;
|
|
25
|
+
/** Host-made with `createEditorGuard()`; built here when absent. */
|
|
26
|
+
guard?: CalendarEditorGuard;
|
|
27
|
+
/** Read the canonical appointment before the form mounts (an edit). The
|
|
28
|
+
* host answers with the prefill, capabilities and series, or a refusal. */
|
|
29
|
+
load?: (eventId: string, options: {
|
|
30
|
+
signal: AbortSignal;
|
|
31
|
+
}) => Promise<CalendarEditorLoad>;
|
|
32
|
+
/** The platform's rules for the form (devices, consents, create patient). */
|
|
33
|
+
platform?: EditorPlatformOptions;
|
|
34
|
+
/** Privacy mode: stored patient data is never shown. The form is replaced
|
|
35
|
+
* by a notice when it would show some (an edit, or a new appointment that
|
|
36
|
+
* already names a patient or a booking). A blank new appointment opens. */
|
|
37
|
+
privacy?: boolean;
|
|
38
|
+
/** The notice's "turn privacy off" button. */
|
|
39
|
+
onPrivacyOff?(): void;
|
|
40
|
+
/** Show a close button in the panel header. A rail draws its own, so this
|
|
41
|
+
* is off by default. */
|
|
42
|
+
closeButton?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export declare function AppointmentEditorRailPanel({ data, onClose, guard, load, platform, privacy, onPrivacyOff, closeButton, panelTitle, prefill, capabilities, series, ...panel }: AppointmentEditorRailPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=appointment-editor-panel.d.ts.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Booking tools: the data seam and the shared names.
|
|
3
|
+
*
|
|
4
|
+
* Every booking tool of the calendar rail (the appointment form, Find free
|
|
5
|
+
* slots, the waiting list, online bookings to check) runs with NO
|
|
6
|
+
* `CalendarWorkspace` and NO calendar grid. The host hands each one a
|
|
7
|
+
* `CalendarData` through `data`, plus its own handlers.
|
|
8
|
+
*
|
|
9
|
+
* This module is the one place the other entries take their names from, so
|
|
10
|
+
* a recipe never needs the `./patterns/calendar` barrel (which would pull in
|
|
11
|
+
* FullCalendar). It also holds `createBookingToolsData`, which fills the
|
|
12
|
+
* required `CalendarData` fields a booking tool does not need, and
|
|
13
|
+
* `BookingToolsProvider` for a host that mounts several tools at once.
|
|
14
|
+
*/
|
|
15
|
+
import type { ReactNode } from 'react';
|
|
16
|
+
import { type CalendarData } from '../calendar.data';
|
|
17
|
+
import type { CalendarAppointmentEditorSnapshot } from '../calendar-editor-hydration';
|
|
18
|
+
export { createEditorGuard } from '../calendar-editor-guard';
|
|
19
|
+
export { hiddenReasons } from '../calendar-workspace.model';
|
|
20
|
+
export type { CalendarData } from '../calendar.data';
|
|
21
|
+
export type { CalendarEditorGuard } from '../calendar-editor-guard';
|
|
22
|
+
export type { EditorPlatformOptions, FindSlotsPlatformOptions, } from '../calendar.sheets';
|
|
23
|
+
export type { EditorDraft, FindSlotsSeed, EditorPrefill, WaitingEntryDraft, CalendarRow, } from '../calendar.model';
|
|
24
|
+
export type { EditorDraftExtras, BacklogGap, } from '../calendar-workspace.model';
|
|
25
|
+
export type { CalendarWaitingEntry, CalendarPatient, CalendarCreatePatient, FreeSlotQuery, } from '../calendar.types';
|
|
26
|
+
export type { CalendarOnlineBookings } from '../calendar-workspace';
|
|
27
|
+
/** What the host's `load` returns for an appointment being edited: the
|
|
28
|
+
* canonical prefill (plus capabilities and series), or a refusal. */
|
|
29
|
+
export type CalendarEditorLoad = CalendarAppointmentEditorSnapshot;
|
|
30
|
+
type RequiredFields = Pick<CalendarData, 'chairs' | 'operators' | 'cares' | 'nowIso' | 'currency'>;
|
|
31
|
+
/**
|
|
32
|
+
* A `CalendarData` for a booking tool: the five fields the tools read
|
|
33
|
+
* (`chairs`, `operators`, `cares`, `nowIso`, `currency`) plus whatever else
|
|
34
|
+
* the host knows. Everything else is filled with an empty value, so a host
|
|
35
|
+
* that has no patient search or care plans still renders.
|
|
36
|
+
*
|
|
37
|
+
* With no `businessHours` the practice has no opening hours, so Find free
|
|
38
|
+
* slots says so rather than offering time nobody works.
|
|
39
|
+
*/
|
|
40
|
+
export declare function createBookingToolsData(partial: RequiredFields & Partial<CalendarData>): CalendarData;
|
|
41
|
+
/** One provider for a host that mounts several booking tools: each tool
|
|
42
|
+
* also wraps itself, so this only saves repeating `data` and keeps one
|
|
43
|
+
* tooltip provider above them all. */
|
|
44
|
+
export declare function BookingToolsProvider({ data, children, }: {
|
|
45
|
+
data: CalendarData;
|
|
46
|
+
children?: ReactNode;
|
|
47
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
//# sourceMappingURL=booking-tools-data.d.ts.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { WORKSPACE_TOOL } from '../calendar-workspace.model';
|
|
2
|
+
export declare const ACTION_BADGE_CLASS = "ds:pointer-events-none ds:absolute ds:-top-1 ds:-end-1 ds:z-10";
|
|
3
|
+
export declare const ACCESSIBLE_TARGET_CLASS = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)]";
|
|
4
|
+
export declare const ACCESSIBLE_TARGET_SQUARE_CLASS = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-inline-size:var(--accessible-target-floor,auto)]";
|
|
5
|
+
/**
|
|
6
|
+
* A rail-tool button with a badge pinned to its corner, usable as a direct
|
|
7
|
+
* `ButtonGroup` member. The `IconButton` itself is the group's direct child
|
|
8
|
+
* (identical border, radius and sizing to every unwrapped sibling), and the
|
|
9
|
+
* `Badge` is composed into its `icon` node, positioned absolutely against
|
|
10
|
+
* the button (`ds:relative` added to the button's own className).
|
|
11
|
+
*/
|
|
12
|
+
export declare const RailToolButton: import("react").ForwardRefExoticComponent<Omit<Omit<import("../../../components").ButtonProps, "size" | "startIcon" | "endIcon" | "flipIconInRtl" | "children"> & import("class-variance-authority").VariantProps<(props?: ({
|
|
13
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
14
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
15
|
+
icon: React.ReactNode;
|
|
16
|
+
tooltip?: string;
|
|
17
|
+
'aria-label'?: string;
|
|
18
|
+
flipIconInRtl?: boolean;
|
|
19
|
+
} & import("react").RefAttributes<HTMLButtonElement> & {
|
|
20
|
+
badgeCount?: number;
|
|
21
|
+
badgeVariant?: "brand" | "warning";
|
|
22
|
+
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
/** The tool ids the buttons answer to. A button stands only while the host
|
|
24
|
+
* can back its tool with real data. */
|
|
25
|
+
export type CalendarActionToolId = typeof WORKSPACE_TOOL.waitingList | typeof WORKSPACE_TOOL.findSlots | typeof WORKSPACE_TOOL.bookings;
|
|
26
|
+
export interface CalendarActionButtonsProps {
|
|
27
|
+
/** The APPOINTMENT right is missing: New appointment is withheld. */
|
|
28
|
+
readOnly?: boolean;
|
|
29
|
+
/** Which tool buttons stand: `waiting-list`, `find-slots`,
|
|
30
|
+
* `online-bookings` (To complete). Leave one out and it is hidden, as
|
|
31
|
+
* for a user limited to own appointments (To complete). */
|
|
32
|
+
availableTools: ReadonlySet<CalendarActionToolId>;
|
|
33
|
+
/** Entries on the waiting list. */
|
|
34
|
+
waitingCount: number;
|
|
35
|
+
/** Bookings to complete. `undefined` while loading: no badge. */
|
|
36
|
+
toCompleteCount?: number;
|
|
37
|
+
onNewAppointment(): void;
|
|
38
|
+
onOpenFindSlots(): void;
|
|
39
|
+
onOpenWaitingList(): void;
|
|
40
|
+
/** The "+" next to Waiting list. */
|
|
41
|
+
onAddWaitingEntry(): void;
|
|
42
|
+
onOpenToComplete(): void;
|
|
43
|
+
/** Adds a New task button next to New appointment. Leave it out for none. */
|
|
44
|
+
onNewTask?(): void;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The two button groups as a fragment, for a host that already has its own
|
|
48
|
+
* toolbar container (the calendar surface). `ButtonGroup` clones its size
|
|
49
|
+
* onto direct children, so the fragment holds only the groups.
|
|
50
|
+
*/
|
|
51
|
+
export declare function CalendarActionButtonGroups({ readOnly, availableTools, waitingCount, toCompleteCount, onNewAppointment, onOpenFindSlots, onOpenWaitingList, onAddWaitingEntry, onOpenToComplete, onNewTask, }: CalendarActionButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
/** The action buttons in their own labelled group: drop it into the top
|
|
53
|
+
* right of the old calendar's header. */
|
|
54
|
+
export declare function CalendarActionButtons(props: CalendarActionButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
//# sourceMappingURL=calendar-action-buttons.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type CalendarData } from '../calendar.data';
|
|
2
|
+
import type { CalendarRow, EditorPrefill, FindSlotsSeed } from '../calendar.model';
|
|
3
|
+
import { type FindSlotsBookContext, type FindSlotsConnectedPractices, type FindSlotsPlatformOptions, type FindSlotsPractice, type FindSlotsSnapshot } from '../calendar.sheets';
|
|
4
|
+
export type { FindSlotsBookContext, FindSlotsConnectedPractices, FindSlotsPractice, FindSlotsSnapshot, };
|
|
5
|
+
export interface FindFreeSlotsRailPanelProps {
|
|
6
|
+
data: CalendarData;
|
|
7
|
+
/** The appointments the demo search reads. Ignored when
|
|
8
|
+
* `data.searchFreeSlots` answers. */
|
|
9
|
+
rows: CalendarRow[];
|
|
10
|
+
locale: string;
|
|
11
|
+
/** Prefill (a waiting entry's patient and care). Key the panel by it. */
|
|
12
|
+
seed?: FindSlotsSeed | null;
|
|
13
|
+
/** False without the appointment-edit right: slots list, none can book. */
|
|
14
|
+
canBook?: boolean;
|
|
15
|
+
/** Platform depth. `listOnly` is always on and cannot be turned off. */
|
|
16
|
+
platform?: Omit<FindSlotsPlatformOptions, 'listOnly'>;
|
|
17
|
+
/** A result was chosen. Move the calendar to that day and open the form.
|
|
18
|
+
* `context.practice` names the result's practice (connected practices
|
|
19
|
+
* only); when it is not the practice in use, hand off to that one. */
|
|
20
|
+
onBookSlot(prefill: EditorPrefill, context?: FindSlotsBookContext): void;
|
|
21
|
+
/** Start from this search and its results. Key the panel by the seed. */
|
|
22
|
+
restore?: FindSlotsSnapshot;
|
|
23
|
+
/** The search and results after every change: keep them to give back
|
|
24
|
+
* as `restore` when the rail swaps this tool out and back. */
|
|
25
|
+
onSnapshot?(snapshot: FindSlotsSnapshot): void;
|
|
26
|
+
/** The window a search is about to cover, raised before it runs. */
|
|
27
|
+
onSearchRange?: (range: {
|
|
28
|
+
from: Date;
|
|
29
|
+
to: Date;
|
|
30
|
+
}) => void;
|
|
31
|
+
/** Fires once, when the panel opens. */
|
|
32
|
+
onOpened?(): void;
|
|
33
|
+
}
|
|
34
|
+
export declare function FindFreeSlotsRailPanel({ data, rows, locale, seed, canBook, platform, onBookSlot, restore, onSnapshot, onSearchRange, onOpened, }: FindFreeSlotsRailPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
//# sourceMappingURL=find-free-slots-panel.d.ts.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Booking tools: online bookings to check ("To complete") as a rail panel.
|
|
3
|
+
*
|
|
4
|
+
* The SAME `BookingsPanel` the calendar workspace docks, plus
|
|
5
|
+
* `useOnlineBookings`, the workspace's own queue maths as a hook: the rows
|
|
6
|
+
* that still need a patient, an operator or a chair, shaped for the card
|
|
7
|
+
* list and narrowed by the three header switches. Run the hook ABOVE the
|
|
8
|
+
* rail so the To complete badge works while the tool is closed, and pass its
|
|
9
|
+
* `bookings` to the panel: the badge count equals the cards.
|
|
10
|
+
*
|
|
11
|
+
* Without `onComplete` the panel is review only (rule B89): the platform
|
|
12
|
+
* cannot complete the booking, so the card offers no assign or edit.
|
|
13
|
+
*/
|
|
14
|
+
import { type ReactNode } from 'react';
|
|
15
|
+
import { type CalendarData } from '../calendar.data';
|
|
16
|
+
import type { CalendarRow } from '../calendar.model';
|
|
17
|
+
import type { BookingCompleteIntent } from '../calendar-bookings-panel';
|
|
18
|
+
import type { CalendarOnlineBookings } from '../calendar-workspace';
|
|
19
|
+
import { type BacklogGap } from '../calendar-workspace.model';
|
|
20
|
+
export type OnlineBookingFilters = Readonly<Record<BacklogGap, boolean>>;
|
|
21
|
+
/**
|
|
22
|
+
* The bookings to check, and how many. `queue.rows` (the host's own query)
|
|
23
|
+
* wins over working them out of `rows`. The three switches are kept here,
|
|
24
|
+
* and applied on top of either.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useOnlineBookings({ rows, data, queue, }: {
|
|
27
|
+
rows: readonly CalendarRow[];
|
|
28
|
+
data: CalendarData;
|
|
29
|
+
queue?: CalendarOnlineBookings;
|
|
30
|
+
}): {
|
|
31
|
+
bookings: CalendarRow[];
|
|
32
|
+
count: number;
|
|
33
|
+
filters: OnlineBookingFilters;
|
|
34
|
+
setFilters(filters: OnlineBookingFilters): void;
|
|
35
|
+
};
|
|
36
|
+
export interface OnlineBookingsRailPanelProps {
|
|
37
|
+
data: CalendarData;
|
|
38
|
+
/** From `useOnlineBookings`: already narrowed by the switches. */
|
|
39
|
+
bookings: readonly CalendarRow[];
|
|
40
|
+
locale: string;
|
|
41
|
+
status?: 'loading' | 'ready' | 'error';
|
|
42
|
+
/** Masks names; the phone and WhatsApp link are hidden. */
|
|
43
|
+
privacy?: boolean;
|
|
44
|
+
/** The three switches, from `useOnlineBookings`. Leave out for no cog. */
|
|
45
|
+
filters?: OnlineBookingFilters;
|
|
46
|
+
onFiltersChange?(filters: OnlineBookingFilters): void;
|
|
47
|
+
/** Cards added since the person last looked get the New mark (rule B92). */
|
|
48
|
+
lastSeenIso?: string | null;
|
|
49
|
+
createdAtById?: Readonly<Record<string, string>>;
|
|
50
|
+
/** Scroll to and ring this booking (a click on its card on the grid). */
|
|
51
|
+
currentBookingId?: string;
|
|
52
|
+
/** Bump on every address so the same booking rings again. */
|
|
53
|
+
currentBookingKey?: string | number;
|
|
54
|
+
onRetry?: () => void;
|
|
55
|
+
/** Move the calendar to the booking. */
|
|
56
|
+
onShowInCalendar(eventId: string): void;
|
|
57
|
+
/** Open the form to complete it. Leave out for review only (rule B89). */
|
|
58
|
+
onComplete?(row: CalendarRow, intent?: BookingCompleteIntent): void;
|
|
59
|
+
}
|
|
60
|
+
export declare function OnlineBookingsRailPanel({ data, bookings, locale, status, privacy, filters, onFiltersChange, lastSeenIso, createdAtById, currentBookingId, currentBookingKey, onRetry, onShowInCalendar, onComplete, }: OnlineBookingsRailPanelProps): ReactNode;
|
|
61
|
+
//# sourceMappingURL=online-bookings-panel.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Booking tools: the waiting list as a rail panel, with its entry form.
|
|
3
|
+
*
|
|
4
|
+
* The SAME `WaitingListPanel` the calendar workspace docks. This wrapper
|
|
5
|
+
* owns what the workspace owns around it: the entry form's open state and
|
|
6
|
+
* focus restore, the read-only toast, the privacy notice, and Remove then
|
|
7
|
+
* Undo (a callback-based copy of the workspace's logic, in
|
|
8
|
+
* `calendar-workspace.tsx` under "the waiting list"; keep the two in step).
|
|
9
|
+
*
|
|
10
|
+
* The host answers with callbacks: scheduling, finding slots, saving,
|
|
11
|
+
* removing and restoring an entry. Writes resolve after they land and reject
|
|
12
|
+
* with a translated `Error`, which the wrapper shows as a toast while the
|
|
13
|
+
* form stays open. The host mounts the kit `Toaster` once.
|
|
14
|
+
*/
|
|
15
|
+
import { type ReactNode } from 'react';
|
|
16
|
+
import { type CalendarData } from '../calendar.data';
|
|
17
|
+
import type { CalendarRow, WaitingEntryDraft } from '../calendar.model';
|
|
18
|
+
import type { CalendarCreatePatient, CalendarPatient, CalendarWaitingEntry } from '../calendar.types';
|
|
19
|
+
export interface WaitingListRailPanelProps {
|
|
20
|
+
data: CalendarData;
|
|
21
|
+
entries: CalendarWaitingEntry[];
|
|
22
|
+
/** Live appointments: a linked entry shows its date, colour and care. */
|
|
23
|
+
rows: CalendarRow[];
|
|
24
|
+
locale: string;
|
|
25
|
+
status?: 'loading' | 'ready' | 'error';
|
|
26
|
+
onRetry?: () => void;
|
|
27
|
+
/** Names masked; Edit and Assign patient go to the privacy notice. */
|
|
28
|
+
privacy?: boolean;
|
|
29
|
+
/** Turns privacy off, from the notice the edit form is replaced by. */
|
|
30
|
+
onPrivacyOff?: () => void;
|
|
31
|
+
/** No appointment-edit right: Add, Edit, Assign and Remove are withheld. */
|
|
32
|
+
readOnly?: boolean;
|
|
33
|
+
/** Opens the entry form. Bump `nonce` for each press of the toolbar "+",
|
|
34
|
+
* so the same request twice opens it twice. `entry` edits that entry. */
|
|
35
|
+
entryRequest?: {
|
|
36
|
+
entry?: CalendarWaitingEntry;
|
|
37
|
+
nonce: number;
|
|
38
|
+
} | null;
|
|
39
|
+
/** Schedule or Bring forward: the host opens the form or arms a slot. */
|
|
40
|
+
onSchedule(entry: CalendarWaitingEntry): void;
|
|
41
|
+
/** Find a slot: the host opens Find free slots, seeded from the entry. */
|
|
42
|
+
onFindSlots(entry: CalendarWaitingEntry): void;
|
|
43
|
+
/** A linked entry's appointment was clicked. */
|
|
44
|
+
onOpenAppointment(eventId: string): void;
|
|
45
|
+
/** Add or edit an entry. Resolve after it lands, reject on failure. */
|
|
46
|
+
onSaveEntry(draft: WaitingEntryDraft): Promise<void>;
|
|
47
|
+
/** Remove an entry. Resolve after it lands. */
|
|
48
|
+
onRemoveEntry(entry: CalendarWaitingEntry): Promise<void>;
|
|
49
|
+
/** Undo a removal: put the entry back at `index`. */
|
|
50
|
+
onRestoreEntry(entry: CalendarWaitingEntry, index: number): Promise<void>;
|
|
51
|
+
onCreatePatient?: CalendarCreatePatient;
|
|
52
|
+
onOpenPatient?: (patient: CalendarPatient) => void;
|
|
53
|
+
onFilterUsed?: () => void;
|
|
54
|
+
onAdvancedFilterToggled?: () => void;
|
|
55
|
+
onWhatsAppClick?: (entry: CalendarWaitingEntry) => void;
|
|
56
|
+
}
|
|
57
|
+
export declare function WaitingListRailPanel({ data, entries, rows, locale, status, onRetry, privacy, onPrivacyOff, readOnly, entryRequest, onSchedule, onFindSlots, onOpenAppointment, onSaveEntry, onRemoveEntry, onRestoreEntry, onCreatePatient, onOpenPatient, onFilterUsed, onAdvancedFilterToggled, onWhatsAppClick, }: WaitingListRailPanelProps): ReactNode;
|
|
58
|
+
//# sourceMappingURL=waiting-list-panel.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The host side of the appointment editor's unsaved-data guard: the ONE
|
|
3
|
+
* implementation shared by `AppointmentEditorDialog` and the booking-tools
|
|
4
|
+
* editor panel (decision P38, rule B18).
|
|
5
|
+
*
|
|
6
|
+
* The open form writes `guard.dirty`; this hook writes `guard.ask`, which
|
|
7
|
+
* either proceeds at once or shows `CalendarSettingsDiscardDialog` and
|
|
8
|
+
* proceeds only after Discard. Focus returns to where it was on Keep.
|
|
9
|
+
*/
|
|
10
|
+
import { type ReactNode } from 'react';
|
|
11
|
+
import { type CalendarEditorGuard } from './calendar-editor-guard';
|
|
12
|
+
export interface EditorDiscardHost {
|
|
13
|
+
guard: CalendarEditorGuard;
|
|
14
|
+
/** Ask first, then run `close` (immediately when nothing is dirty). */
|
|
15
|
+
requestClose: (close: () => void) => void;
|
|
16
|
+
/** Render this beside the editor: the Keep or Discard question. */
|
|
17
|
+
discardDialog: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare function useEditorDiscardHost(provided?: CalendarEditorGuard): EditorDiscardHost;
|
|
20
|
+
//# sourceMappingURL=calendar-editor-discard-host.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type DisplaySettings, type PrintDaySection } from './calendar.model';
|
|
2
|
+
/**
|
|
3
|
+
* The call sheet itself. A portal to `document.body`: the shell's AppFrame
|
|
4
|
+
* is an `h-dvh overflow-hidden` clamp that prints one screenful, so the
|
|
5
|
+
* sheet lives outside it — hidden on screen, the only thing on paper.
|
|
6
|
+
*/
|
|
7
|
+
export declare function PrintSheet({ sections, rangeTitle, axisKind, visibleChairIds, visibleOperatorIds, privacy, locale, }: {
|
|
8
|
+
sections: PrintDaySection[];
|
|
9
|
+
rangeTitle: string;
|
|
10
|
+
axisKind: DisplaySettings['resourceKind'];
|
|
11
|
+
visibleChairIds: string[];
|
|
12
|
+
visibleOperatorIds: string[];
|
|
13
|
+
privacy: boolean;
|
|
14
|
+
locale: string;
|
|
15
|
+
}): import("react").ReactPortal | null;
|
|
16
|
+
//# sourceMappingURL=calendar-print-sheet.d.ts.map
|
|
@@ -491,6 +491,13 @@ export type BacklogGap = 'patient' | 'operator' | 'chair';
|
|
|
491
491
|
/** All three switches on by default — the uncontrolled starting point
|
|
492
492
|
* for a host that does not persist the filter state itself. */
|
|
493
493
|
export declare const DEFAULT_BACKLOG_FILTERS: Readonly<Record<BacklogGap, boolean>>;
|
|
494
|
+
/** The To complete list the workspace and the booking-tools hook share:
|
|
495
|
+
* the host's queue rows (or the gaps found in `rows`), then the switches. */
|
|
496
|
+
export declare function onlineBookingsList(rows: readonly CalendarRow[], data: CalendarData, queue: {
|
|
497
|
+
rows: readonly CalendarRow[];
|
|
498
|
+
lastSeenIso?: string | null;
|
|
499
|
+
createdAtById?: Readonly<Record<string, string>>;
|
|
500
|
+
} | undefined, filters: Readonly<Record<BacklogGap, boolean>>): CalendarRow[];
|
|
494
501
|
/** Applies the header's three switches to an already-built view list. A
|
|
495
502
|
* view is kept when it carries at least one gap left switched on — an
|
|
496
503
|
* appointment missing only a patient still shows with "Senza operatore"
|
|
@@ -687,6 +687,15 @@ export interface CalendarFreeSlot {
|
|
|
687
687
|
careId?: string;
|
|
688
688
|
/** The device a SERVER answer allocated: the host's own string. */
|
|
689
689
|
medicalDeviceId?: string;
|
|
690
|
+
/** The practice the slot belongs to. Absent: the practice in use. */
|
|
691
|
+
practice?: {
|
|
692
|
+
id: string;
|
|
693
|
+
name: string;
|
|
694
|
+
};
|
|
695
|
+
/** Names for resources the loaded practice does not hold, from the
|
|
696
|
+
* host's answer. Used before the loaded practice's own lookup fails. */
|
|
697
|
+
operatorName?: string;
|
|
698
|
+
chairName?: string;
|
|
690
699
|
}
|
|
691
700
|
/** Local ISO date (YYYY-MM-DD) — the fixtures' local-wall-clock idiom;
|
|
692
701
|
* absence lookups and shading ids key on local days, never UTC. */
|