@alfadocs/ui-kit 1.13.0 → 1.15.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.
Files changed (110) hide show
  1. package/dist/_chunks/actions-cell-renderer-yy03OgRL.js +137 -0
  2. package/dist/_chunks/{balance-badge-cell--iQ_gtmi.js → balance-badge-cell-CgkxYO96.js} +7 -6
  3. package/dist/_chunks/{calendar-B4Gnyu1C.js → calendar-CHT9Rm3M.js} +2 -2
  4. package/dist/_chunks/{calendar-event-card-Bjdbik8G.js → calendar-event-card-BjdHZaqz.js} +18 -14
  5. package/dist/_chunks/calendar-plus-BFrIRE4r.js +19 -0
  6. package/dist/_chunks/calendar-workspace-CGuY4kmv.js +7480 -0
  7. package/dist/_chunks/clipboard-list-rSzfIYZB.js +25 -0
  8. package/dist/_chunks/{color-picker-oZ6zYks8.js → color-picker-CU303VjY.js} +4 -2
  9. package/dist/_chunks/data-table-DC5rO3Ty.js +1817 -0
  10. package/dist/_chunks/{field-value-DG8zaZvo.js → field-value-D-vkX9uL.js} +120 -140
  11. package/dist/_chunks/{file-manager-UsD8e_AB.js → file-manager-DJMeB3V8.js} +138 -153
  12. package/dist/_chunks/folder-plus-CutOs4DP.js +22 -0
  13. package/dist/_chunks/hourglass-BEAzW1wE.js +26 -0
  14. package/dist/_chunks/{notes-panel-CymneXtl.js → notes-panel-DYAtlq_i.js} +2 -2
  15. package/dist/_chunks/{patient-details-BQaUzPqp.js → patient-details-BfzvFnxQ.js} +73 -92
  16. package/dist/_chunks/{patient-summary-card-CvDxhbBR.js → patient-summary-card-D5Vfa321.js} +2 -2
  17. package/dist/_chunks/{practice-results-D7ygCj_W.js → practice-results-DL_ExLYE.js} +159 -172
  18. package/dist/_chunks/{rich-text-editor-BDfFtK4H.js → rich-text-editor-DtbcA6s1.js} +2 -2
  19. package/dist/_chunks/signature-CpFNpsVK.js +21 -0
  20. package/dist/_chunks/{signature-field-0rFODJlW.js → signature-field-CEiPe-vX.js} +19 -34
  21. package/dist/_chunks/smartphone-C0rFF2if.js +15 -0
  22. package/dist/_chunks/{toast.agent-D1tdg6DS.js → toast-YZz2sBzB.js} +160 -212
  23. package/dist/_chunks/toast.agent-DNQ0JYGv.js +56 -0
  24. package/dist/_chunks/{workflow-map-wcw3t6g4.js → workflow-map-dNzJjBWG.js} +103 -112
  25. package/dist/agent-catalog.json +867 -1
  26. package/dist/agent-i18n/en.json +27 -0
  27. package/dist/components/calendar/index.js +1 -1
  28. package/dist/components/calendar-event-card/index.js +1 -1
  29. package/dist/components/color-picker/index.js +1 -1
  30. package/dist/components/data-table/index.js +39 -38
  31. package/dist/components/file-manager/index.js +1 -1
  32. package/dist/components/index.d.ts +1 -0
  33. package/dist/components/notes-panel/index.js +1 -1
  34. package/dist/components/patient-details/index.js +1 -1
  35. package/dist/components/patient-summary-card/index.js +1 -1
  36. package/dist/components/patient-table/index.js +1 -1
  37. package/dist/components/practice-results/index.js +1 -1
  38. package/dist/components/rich-text-editor/index.js +1 -1
  39. package/dist/components/signature-field/index.js +1 -1
  40. package/dist/components/toast/index.js +7 -6
  41. package/dist/components/workflow/index.js +1 -1
  42. package/dist/i18n/locales/ar.d.ts +680 -0
  43. package/dist/i18n/locales/ar.js +680 -0
  44. package/dist/i18n/locales/de.d.ts +680 -0
  45. package/dist/i18n/locales/de.js +680 -0
  46. package/dist/i18n/locales/el.d.ts +680 -0
  47. package/dist/i18n/locales/el.js +680 -0
  48. package/dist/i18n/locales/en.d.ts +680 -0
  49. package/dist/i18n/locales/en.js +680 -0
  50. package/dist/i18n/locales/es.d.ts +680 -0
  51. package/dist/i18n/locales/es.js +680 -0
  52. package/dist/i18n/locales/fr.d.ts +680 -0
  53. package/dist/i18n/locales/fr.js +680 -0
  54. package/dist/i18n/locales/hi.d.ts +680 -0
  55. package/dist/i18n/locales/hi.js +680 -0
  56. package/dist/i18n/locales/it.d.ts +680 -0
  57. package/dist/i18n/locales/it.js +680 -0
  58. package/dist/i18n/locales/ja.d.ts +680 -0
  59. package/dist/i18n/locales/ja.js +680 -0
  60. package/dist/i18n/locales/nl.d.ts +680 -0
  61. package/dist/i18n/locales/nl.js +680 -0
  62. package/dist/i18n/locales/pl.d.ts +680 -0
  63. package/dist/i18n/locales/pl.js +680 -0
  64. package/dist/i18n/locales/pt.d.ts +680 -0
  65. package/dist/i18n/locales/pt.js +680 -0
  66. package/dist/i18n/locales/ro.d.ts +680 -0
  67. package/dist/i18n/locales/ro.js +680 -0
  68. package/dist/i18n/locales/ru.d.ts +680 -0
  69. package/dist/i18n/locales/ru.js +680 -0
  70. package/dist/i18n/locales/sq.d.ts +680 -0
  71. package/dist/i18n/locales/sq.js +680 -0
  72. package/dist/i18n/locales/sv.d.ts +680 -0
  73. package/dist/i18n/locales/sv.js +680 -0
  74. package/dist/i18n/locales/tr.d.ts +680 -0
  75. package/dist/i18n/locales/tr.js +680 -0
  76. package/dist/i18n/locales/zh.d.ts +680 -0
  77. package/dist/i18n/locales/zh.js +680 -0
  78. package/dist/index.js +821 -803
  79. package/dist/locales/ar.json +680 -0
  80. package/dist/locales/de.json +680 -0
  81. package/dist/locales/el.json +680 -0
  82. package/dist/locales/en.json +680 -0
  83. package/dist/locales/es.json +680 -0
  84. package/dist/locales/fr.json +680 -0
  85. package/dist/locales/hi.json +680 -0
  86. package/dist/locales/it.json +680 -0
  87. package/dist/locales/ja.json +680 -0
  88. package/dist/locales/nl.json +680 -0
  89. package/dist/locales/pl.json +680 -0
  90. package/dist/locales/pt.json +680 -0
  91. package/dist/locales/ro.json +680 -0
  92. package/dist/locales/ru.json +680 -0
  93. package/dist/locales/sq.json +680 -0
  94. package/dist/locales/sv.json +680 -0
  95. package/dist/locales/tr.json +680 -0
  96. package/dist/locales/zh.json +680 -0
  97. package/dist/patterns/calendar/calendar-workspace.d.ts +82 -0
  98. package/dist/patterns/calendar/calendar-workspace.model.d.ts +380 -0
  99. package/dist/patterns/calendar/calendar.data.d.ts +122 -0
  100. package/dist/patterns/calendar/calendar.host.d.ts +10 -0
  101. package/dist/patterns/calendar/calendar.journey.d.ts +119 -0
  102. package/dist/patterns/calendar/calendar.model.d.ts +684 -0
  103. package/dist/patterns/calendar/calendar.preferences.d.ts +74 -0
  104. package/dist/patterns/calendar/calendar.sheets.d.ts +398 -0
  105. package/dist/patterns/calendar/calendar.surface.d.ts +85 -0
  106. package/dist/patterns/calendar/calendar.types.d.ts +413 -0
  107. package/dist/patterns/calendar/index.d.ts +13 -0
  108. package/dist/patterns/calendar/index.js +19 -0
  109. package/package.json +5 -1
  110. package/dist/_chunks/actions-cell-renderer-ReurEy5i.js +0 -1945
@@ -0,0 +1,119 @@
1
+ /**
2
+ * Calendar pattern — the JOURNEY contract: the domain state and every
3
+ * mutating handler the workspace, its panels and its surface consume
4
+ * (rows, cog display settings, grid focus, waiting list, modification
5
+ * history, signature requests, patient notes, the editor / Backlog /
6
+ * finder seeds, the draft-slot mirror, the goto seam and the
7
+ * availability projection).
8
+ * Transcribed member by member from the demo's `useCalendarJourneyState`
9
+ * so the host owns the implementation: the demos keep their fixture-backed
10
+ * hook, the platform island wires the same shape to `/internalApi/...`.
11
+ * No implementation lives here.
12
+ */
13
+ import type { Dispatch, SetStateAction } from 'react';
14
+ import type { NotesPanelNote, NotesPanelProps, NotesPanelSubmission } from '../../components/notes-panel';
15
+ import type { AvailabilityContext, BacklogFilter, BacklogItem, CalendarFreeSlot, CalendarRow, DisplaySettings, DraftSlot, EditorDraft, EditorPrefill, FindSlotsSeed, HistoryInput, RailFocus, SlotPatch, WaitingEntryDraft } from './calendar.model';
16
+ import type { CalendarHistoryEntry, CalendarSignChannel, CalendarWaitingEntry } from './calendar.types';
17
+ export interface CalendarJourney {
18
+ rows: CalendarRow[];
19
+ setRows: Dispatch<SetStateAction<CalendarRow[]>>;
20
+ display: DisplaySettings;
21
+ setDisplay: Dispatch<SetStateAction<DisplaySettings>>;
22
+ focus: RailFocus;
23
+ setFocus: Dispatch<SetStateAction<RailFocus>>;
24
+ waitingList: CalendarWaitingEntry[];
25
+ /** A dialog host restores a removed entry from its Undo toast. */
26
+ setWaitingList: Dispatch<SetStateAction<CalendarWaitingEntry[]>>;
27
+ history: Record<string, CalendarHistoryEntry[]>;
28
+ /**
29
+ * The patient notes the host holds for this page load, by patient id.
30
+ * Seeded from `CalendarData.patientNotes(id)` and owned here after
31
+ * that, exactly like `history`: a patient absent from this map has
32
+ * not been written to yet and the panel falls back to the read model.
33
+ * The notes sub-view RENDERS this — it keeps no copy of its own — so
34
+ * an add, edit, delete or pin outlives the panel unmounting instead
35
+ * of being silently dropped.
36
+ */
37
+ notesByPatient: Record<string, NotesPanelNote[]>;
38
+ signRequests: Record<string, CalendarSignChannel>;
39
+ editorSeed: {
40
+ tick: number;
41
+ prefill?: EditorPrefill;
42
+ };
43
+ backlogSeed: {
44
+ tick: number;
45
+ type: BacklogFilter;
46
+ };
47
+ visibleRange: {
48
+ start: number;
49
+ end: number;
50
+ } | null;
51
+ backlogItems: BacklogItem[];
52
+ draftSlot: DraftSlot | null;
53
+ setDraftSlot: Dispatch<SetStateAction<DraftSlot | null>>;
54
+ slotPatch: SlotPatch | null;
55
+ gotoRequest: {
56
+ tick: number;
57
+ date: Date;
58
+ } | null;
59
+ availability: CalendarFreeSlot[] | null;
60
+ availabilityContext: AvailabilityContext | null;
61
+ findSlotsSeed: FindSlotsSeed | null;
62
+ logHistory: (eventId: string, entry: HistoryInput) => void;
63
+ handleRequestSignature: (eventId: string, channel: CalendarSignChannel) => void;
64
+ handleComposeNew: () => void;
65
+ handleScheduleWaiting: (entry: CalendarWaitingEntry) => void;
66
+ handleRemoveWaiting: (entry: CalendarWaitingEntry) => void;
67
+ handleUpsertWaiting: (draft: WaitingEntryDraft) => void;
68
+ handleConfirmAppointment: (eventId: string) => void;
69
+ handleOpenBacklog: (type: BacklogFilter) => void;
70
+ handleVisibleRangeChange: (range: {
71
+ start: number;
72
+ end: number;
73
+ }) => void;
74
+ handleDeleteAppointment: (eventId: string) => void;
75
+ handleDuplicateAppointment: (prefill: EditorPrefill) => void;
76
+ handleDraftMoved: (next: {
77
+ date: Date;
78
+ time: {
79
+ hours: number;
80
+ minutes: number;
81
+ };
82
+ chairId?: string;
83
+ operatorId?: string;
84
+ }) => void;
85
+ handleDraftResized: (durationMin: number) => void;
86
+ handleBookSlot: (prefill: EditorPrefill) => void;
87
+ handleShowAvailability: (slots: CalendarFreeSlot[] | null, fromDate?: Date, context?: AvailabilityContext) => void;
88
+ handleFocusEvent: (eventId: string) => void;
89
+ handleRevealAppointment: (eventId: string) => void;
90
+ handleFindSlotsForWaiting: (entry: CalendarWaitingEntry) => void;
91
+ clearFindSlotsSeed: () => void;
92
+ handleBookSlotFromFinder: (prefill: EditorPrefill) => void;
93
+ handleCreateAppointment: (draft: EditorDraft) => void;
94
+ /**
95
+ * Commit a new note on the patient's record. The HOST builds the
96
+ * stored note — its id, its timestamp and its AUTHOR, who is the
97
+ * signed-in operator the host knows and the kit does not. The panel
98
+ * hands over only what was typed, so no name the kit invented can
99
+ * ever be attributed to a clinical note.
100
+ */
101
+ handleAddNote: (patientId: string, submission: NotesPanelSubmission) => void;
102
+ /** Replace a note's body with the text typed in the edit dialog. */
103
+ handleEditNote: (patientId: string, noteId: string, content: string) => void;
104
+ handleDeleteNote: (patientId: string, noteId: string) => void;
105
+ handleToggleNotePin: (patientId: string, noteId: string) => void;
106
+ /**
107
+ * The practice's OWN drafting endpoint, behind the composer's AI
108
+ * affordance. Omit it and the affordance is not offered: the kit
109
+ * ships no draft prose of its own, and must never put words it
110
+ * invented into a patient's record.
111
+ */
112
+ requestNoteAiDraft?: NotesPanelProps['onRequestAiDraft'];
113
+ /**
114
+ * The host's live transcription. Omit it and no microphone is
115
+ * offered — the kit transcribes nothing.
116
+ */
117
+ dictateNote?: NotesPanelProps['onDictate'];
118
+ }
119
+ //# sourceMappingURL=calendar.journey.d.ts.map