@alfadocs/ui-kit 1.25.1-calendar.9 → 1.26.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/{address-fields-jFfjxOQR.js → address-fields-CZ0pEdEI.js} +3 -3
- package/dist/_chunks/{appointment-card-CvUFFEdS.js → appointment-card-Dzr3GeVz.js} +6 -8
- package/dist/_chunks/{appointment-timeline-DsMZY7U9.js → appointment-timeline-DhHwmHo1.js} +2 -2
- package/dist/_chunks/{appointment-tray-Z2GaOIYQ.js → appointment-tray-4FUu_5NX.js} +2 -2
- package/dist/_chunks/{booking-B8C7jMrn.js → booking-BtSOKjQu.js} +401 -384
- package/dist/_chunks/{calendar-CBqU-UIR.js → calendar-CI9MINcR.js} +2 -4
- package/dist/_chunks/calendar-workspace-CTXjHC4R.js +7506 -0
- package/dist/_chunks/{color-picker-Bl5f0iK1.js → color-picker-CU303VjY.js} +25 -28
- package/dist/_chunks/{combobox-DnSdYssy.js → combobox-D7_NLE2Z.js} +215 -216
- package/dist/_chunks/{country-select-CfDNFG5c.js → country-select-DzbPFktV.js} +2 -2
- package/dist/_chunks/{face-scheme-l-CQyLs-.js → face-scheme-DA2vjqaM.js} +2 -2
- package/dist/_chunks/{notes-panel-D4S2VwDx.js → notes-panel-CTNpsByN.js} +2 -2
- package/dist/_chunks/{patient-details-CdfursHt.js → patient-details-DYAmq76G.js} +3 -3
- package/dist/_chunks/{province-select-BaUnkg4S.js → province-select-BBc7s7vR.js} +2 -2
- package/dist/_chunks/{rich-text-editor-VJATL1Tk.js → rich-text-editor-lSCiE0Zz.js} +2 -2
- package/dist/_chunks/signature-status-chip-n57D-hhv.js +179 -0
- package/dist/agent-catalog.json +3 -6
- package/dist/agent-i18n/en.json +2 -2
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +0 -5
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/face-scheme/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/province-select/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/signature-status-chip/index.d.ts +2 -2
- package/dist/components/signature-status-chip/index.js +4 -3
- package/dist/components/signature-status-chip/signature-status-chip.d.ts +100 -1
- package/dist/i18n/locales/ar.d.ts +13 -0
- package/dist/i18n/locales/ar.js +17 -1
- package/dist/i18n/locales/de.d.ts +13 -0
- package/dist/i18n/locales/de.js +17 -1
- package/dist/i18n/locales/el.d.ts +13 -0
- package/dist/i18n/locales/el.js +17 -1
- package/dist/i18n/locales/en.d.ts +13 -0
- package/dist/i18n/locales/en.js +17 -1
- package/dist/i18n/locales/es.d.ts +13 -0
- package/dist/i18n/locales/es.js +17 -1
- package/dist/i18n/locales/fr.d.ts +13 -0
- package/dist/i18n/locales/fr.js +17 -1
- package/dist/i18n/locales/hi.d.ts +13 -0
- package/dist/i18n/locales/hi.js +13 -1
- package/dist/i18n/locales/it.d.ts +13 -0
- package/dist/i18n/locales/it.js +17 -1
- package/dist/i18n/locales/ja.d.ts +13 -0
- package/dist/i18n/locales/ja.js +17 -1
- package/dist/i18n/locales/nl.d.ts +13 -0
- package/dist/i18n/locales/nl.js +17 -1
- package/dist/i18n/locales/pl.d.ts +13 -0
- package/dist/i18n/locales/pl.js +17 -1
- package/dist/i18n/locales/pt.d.ts +13 -0
- package/dist/i18n/locales/pt.js +17 -1
- package/dist/i18n/locales/ro.d.ts +13 -0
- package/dist/i18n/locales/ro.js +17 -1
- package/dist/i18n/locales/ru.d.ts +13 -0
- package/dist/i18n/locales/ru.js +17 -1
- package/dist/i18n/locales/sq.d.ts +13 -0
- package/dist/i18n/locales/sq.js +17 -1
- package/dist/i18n/locales/sv.d.ts +13 -0
- package/dist/i18n/locales/sv.js +17 -1
- package/dist/i18n/locales/tr.d.ts +13 -0
- package/dist/i18n/locales/tr.js +17 -1
- package/dist/i18n/locales/zh.d.ts +13 -0
- package/dist/i18n/locales/zh.js +13 -1
- package/dist/index.js +281 -280
- package/dist/locales/ar.json +14 -1
- package/dist/locales/de.json +14 -1
- package/dist/locales/el.json +14 -1
- package/dist/locales/en.json +14 -1
- package/dist/locales/es.json +14 -1
- package/dist/locales/fr.json +14 -1
- package/dist/locales/hi.json +14 -1
- package/dist/locales/it.json +14 -1
- package/dist/locales/ja.json +14 -1
- package/dist/locales/nl.json +14 -1
- package/dist/locales/pl.json +14 -1
- package/dist/locales/pt.json +14 -1
- package/dist/locales/ro.json +14 -1
- package/dist/locales/ru.json +14 -1
- package/dist/locales/sq.json +14 -1
- package/dist/locales/sv.json +14 -1
- package/dist/locales/tr.json +14 -1
- package/dist/locales/zh.json +14 -1
- package/dist/patterns/calendar/calendar-workspace.d.ts +1 -21
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +3 -1
- package/dist/patterns/calendar/calendar.data.d.ts +0 -17
- package/dist/patterns/calendar/calendar.journey.d.ts +1 -3
- package/dist/patterns/calendar/calendar.model.d.ts +0 -9
- package/dist/patterns/calendar/calendar.sheets.d.ts +4 -12
- package/dist/patterns/calendar/calendar.surface.d.ts +1 -3
- package/dist/patterns/calendar/index.d.ts +2 -3
- package/dist/patterns/calendar/index.js +1 -1
- package/package.json +2 -3
- package/dist/_chunks/calendar-workspace-DR-P6fWV.js +0 -7883
- package/dist/_chunks/signature-status-chip-DqrPIJtH.js +0 -97
- package/dist/patterns/calendar/calendar-editor-hydration.d.ts +0 -36
- package/dist/patterns/calendar/calendar-patient-picker.d.ts +0 -11
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { jsx as q } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as C } from "react";
|
|
3
|
-
import { useTranslation as R } from "react-i18next";
|
|
4
|
-
import { B as V } from "./badge-sTusUqZD.js";
|
|
5
|
-
function T(e, n) {
|
|
6
|
-
const t = [e, n].filter((i) => i !== "notRequired");
|
|
7
|
-
if (t.length === 0) return "notRequired";
|
|
8
|
-
const s = t.filter((i) => i === "signed").length;
|
|
9
|
-
return s === 0 ? "unsigned" : s === t.length ? "signed" : "partial";
|
|
10
|
-
}
|
|
11
|
-
const A = {
|
|
12
|
-
// Traffic light: green when everyone required has signed, amber when one
|
|
13
|
-
// party is still missing, red when nobody has.
|
|
14
|
-
signed: "success",
|
|
15
|
-
partial: "warning",
|
|
16
|
-
unsigned: "error",
|
|
17
|
-
notRequired: "neutral"
|
|
18
|
-
}, b = {
|
|
19
|
-
operator: "Operator",
|
|
20
|
-
patient: "Patient"
|
|
21
|
-
}, w = {
|
|
22
|
-
signed: "signed",
|
|
23
|
-
pending: "pending"
|
|
24
|
-
};
|
|
25
|
-
function y(e, n) {
|
|
26
|
-
const t = [];
|
|
27
|
-
return e !== "notRequired" && t.push({ party: "operator", standing: e }), n !== "notRequired" && t.push({ party: "patient", standing: n }), t;
|
|
28
|
-
}
|
|
29
|
-
const N = C(
|
|
30
|
-
({
|
|
31
|
-
operator: e,
|
|
32
|
-
patient: n,
|
|
33
|
-
size: t = "md",
|
|
34
|
-
detail: s = !1,
|
|
35
|
-
id: i,
|
|
36
|
-
className: p,
|
|
37
|
-
"aria-label": c,
|
|
38
|
-
title: f,
|
|
39
|
-
...m
|
|
40
|
-
}, h) => {
|
|
41
|
-
const { t: a } = R(), o = T(e, n), r = (() => {
|
|
42
|
-
switch (o) {
|
|
43
|
-
case "signed":
|
|
44
|
-
return a("signatureStatusChip.signed", { defaultValue: "Signed" });
|
|
45
|
-
case "unsigned":
|
|
46
|
-
return a("signatureStatusChip.unsigned", {
|
|
47
|
-
defaultValue: "Not signed"
|
|
48
|
-
});
|
|
49
|
-
case "notRequired":
|
|
50
|
-
return a("signatureStatusChip.notRequired", {
|
|
51
|
-
defaultValue: "No signature required"
|
|
52
|
-
});
|
|
53
|
-
case "partial":
|
|
54
|
-
return e === "pending" ? a("signatureStatusChip.missingOperator", {
|
|
55
|
-
defaultValue: "Operator signature missing"
|
|
56
|
-
}) : a("signatureStatusChip.missingPatient", {
|
|
57
|
-
defaultValue: "Patient signature missing"
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
})(), u = y(e, n).map(
|
|
61
|
-
({ party: g, standing: l }) => a("signatureStatusChip.breakdownItem", {
|
|
62
|
-
defaultValue: "{{party}} {{state}}",
|
|
63
|
-
party: a(`signatureStatusChip.party.${g}`, {
|
|
64
|
-
defaultValue: b[g]
|
|
65
|
-
}),
|
|
66
|
-
state: a(`signatureStatusChip.state.${l}`, {
|
|
67
|
-
defaultValue: w[l]
|
|
68
|
-
})
|
|
69
|
-
})
|
|
70
|
-
).join(" · "), d = u ? `${r}, ${u}` : r, S = s && u ? `${r} · ${u}` : r;
|
|
71
|
-
return /* @__PURE__ */ q(
|
|
72
|
-
V,
|
|
73
|
-
{
|
|
74
|
-
ref: h,
|
|
75
|
-
variant: A[o],
|
|
76
|
-
size: t,
|
|
77
|
-
withDot: !0,
|
|
78
|
-
role: "img",
|
|
79
|
-
"aria-label": c ?? d,
|
|
80
|
-
title: f ?? d,
|
|
81
|
-
"data-component": "signature-status-chip",
|
|
82
|
-
"data-status": o,
|
|
83
|
-
"data-component-id": i,
|
|
84
|
-
id: i,
|
|
85
|
-
className: p,
|
|
86
|
-
...m,
|
|
87
|
-
children: S
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
);
|
|
92
|
-
N.displayName = "SignatureStatusChip";
|
|
93
|
-
export {
|
|
94
|
-
N as S,
|
|
95
|
-
T as s
|
|
96
|
-
};
|
|
97
|
-
//# sourceMappingURL=signature-status-chip-DqrPIJtH.js.map
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import type { CalendarEditorCapabilities, CalendarRow, EditorPrefill } from './calendar.model';
|
|
3
|
-
export type CalendarAppointmentEditorSnapshot = {
|
|
4
|
-
status: 'ready';
|
|
5
|
-
prefill: EditorPrefill & {
|
|
6
|
-
editEventId: string;
|
|
7
|
-
date: Date;
|
|
8
|
-
time: {
|
|
9
|
-
hours: number;
|
|
10
|
-
minutes: number;
|
|
11
|
-
};
|
|
12
|
-
durationMin: number;
|
|
13
|
-
};
|
|
14
|
-
capabilities?: CalendarEditorCapabilities;
|
|
15
|
-
} | {
|
|
16
|
-
status: 'refused';
|
|
17
|
-
reason: string;
|
|
18
|
-
retryable?: boolean;
|
|
19
|
-
};
|
|
20
|
-
export type CalendarAppointmentEditorLoader = (eventId: string, options: {
|
|
21
|
-
signal: AbortSignal;
|
|
22
|
-
}) => Promise<CalendarAppointmentEditorSnapshot>;
|
|
23
|
-
type ReadySnapshot = Extract<CalendarAppointmentEditorSnapshot, {
|
|
24
|
-
status: 'ready';
|
|
25
|
-
}>;
|
|
26
|
-
/** The editor is not mounted until the host returns its canonical data.
|
|
27
|
-
* Mounting this boundary per open also reloads a previously closed editor. */
|
|
28
|
-
export declare function CalendarEditorHydration({ eventId, load, children, }: {
|
|
29
|
-
eventId?: string;
|
|
30
|
-
load?: CalendarAppointmentEditorLoader;
|
|
31
|
-
children: (snapshot?: ReadySnapshot) => ReactNode;
|
|
32
|
-
}): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
33
|
-
/** Display-only projection. It never reaches journey.setRows. */
|
|
34
|
-
export declare function rowWithCanonicalEditor(row: CalendarRow, snapshot: ReadySnapshot, patientName: string): CalendarRow;
|
|
35
|
-
export {};
|
|
36
|
-
//# sourceMappingURL=calendar-editor-hydration.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface PatientPickerProps {
|
|
2
|
-
value: string;
|
|
3
|
-
onValueChange: (value: string) => void;
|
|
4
|
-
selectedLabel?: string;
|
|
5
|
-
size?: 'sm' | 'md';
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
}
|
|
8
|
-
/** One id-valued patient control for the editor and waiting surfaces. */
|
|
9
|
-
export declare function CalendarPatientPicker(props: PatientPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=calendar-patient-picker.d.ts.map
|