@alfadocs/ui-kit 0.69.0 → 0.70.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/{agenda-card-BxSFkqgY.js → agenda-card-BQ-IKAru.js} +2 -2
- package/dist/_chunks/{agenda-tray-g0kg7HwB.js → agenda-tray-CGXRk58j.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-CXlsNX1c.js → ai-consent-banner-Be-h9mRI.js} +3 -3
- package/dist/_chunks/ai-tools-rail-B5NEghsp.js +511 -0
- package/dist/_chunks/{alert-_mUKLmwA.js → alert-CHYZ96tR.js} +150 -96
- package/dist/_chunks/{anamnesis-card-DRmE24OQ.js → anamnesis-card-DvYCa16e.js} +2 -2
- package/dist/_chunks/anatomy-scheme-CJB6dI6p.js +2445 -0
- package/dist/_chunks/annotation-marker-qt5R9WZX.js +120 -0
- package/dist/_chunks/{antenatal-schedule-timeline-35ebkcZT.js → antenatal-schedule-timeline-CwXrQRm1.js} +2 -2
- package/dist/_chunks/appointment-card-C06aZqA7.js +310 -0
- package/dist/_chunks/appointment-timeline-BJM0S_Fg.js +386 -0
- package/dist/_chunks/appointment-tray-DRRw5ROi.js +193 -0
- package/dist/_chunks/{audio-recorder-DYXXnGug.js → audio-recorder-Cpdk5qpQ.js} +2 -2
- package/dist/_chunks/{badge-CqGsX32l.js → badge-DCOqV9mI.js} +32 -27
- package/dist/_chunks/{bishop-score-PJI3AXzA.js → bishop-score-DnYWtZa_.js} +2 -2
- package/dist/_chunks/{bmi-calculator-BZtIJ53x.js → bmi-calculator-zjeY4E7J.js} +2 -2
- package/dist/_chunks/{booking-C3VqFReX.js → booking-DUBI0oqt.js} +4 -4
- package/dist/_chunks/{care-plan-card-CvFGXa2z.js → care-plan-card-C5sTfY9G.js} +5 -5
- package/dist/_chunks/{care-plan-entry-card-C3E_gClk.js → care-plan-entry-card-CXnxGCWA.js} +5 -5
- package/dist/_chunks/care-plan-header-BUwqDTtz.js +206 -0
- package/dist/_chunks/clinical-note-card-BUvNMNGL.js +436 -0
- package/dist/_chunks/{contact-profile-card-Dramqa9C.js → contact-profile-card-DDPwRFiP.js} +2 -2
- package/dist/_chunks/control-room-rail-Y8ryLYsP.js +229 -0
- package/dist/_chunks/{cycle-calculator-DmRGJNaT.js → cycle-calculator-CCmPwcBl.js} +2 -2
- package/dist/_chunks/{dependent-selector-CG_FOHya.js → dependent-selector-DUV4thxX.js} +2 -2
- package/dist/_chunks/{document-scanner-CTubA0-N.js → document-scanner-C_AxLooF.js} +3 -3
- package/dist/_chunks/{due-date-calculator-BTmsIQqD.js → due-date-calculator-Brdj-euS.js} +3 -3
- package/dist/_chunks/editable-currency-cell-renderer-C9twtALM.js +328 -0
- package/dist/_chunks/email-input-DJ7EXklP.js +397 -0
- package/dist/_chunks/{entity-card-COhmqHly.js → entity-card-9_62gY7l.js} +38 -20
- package/dist/_chunks/entity-summary-BxRjFh_4.js +138 -0
- package/dist/_chunks/{fetal-weight-CRz7KE2D.js → fetal-weight-DNCkyeVo.js} +2 -2
- package/dist/_chunks/field-value-NXYczdpO.js +415 -0
- package/dist/_chunks/{file-upload-5ScQd4fE.js → file-upload-DwZcAK8D.js} +2 -1
- package/dist/_chunks/{freemium-paywall-DZ2mBS3w.js → freemium-paywall-WYlNO7yT.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-BleUdhbI.js → gestational-age-calculator-CF2ISaYQ.js} +3 -3
- package/dist/_chunks/hash-CysBBS_N.js +17 -0
- package/dist/_chunks/{hcg-doubling-CnjDXX6U.js → hcg-doubling-C7bmuaU3.js} +2 -2
- package/dist/_chunks/{actions-cell-renderer-DrcaxB0w.js → link-cell-renderer-CTXqtXV-.js} +715 -592
- package/dist/_chunks/lock-CKOIn0IK.js +15 -0
- package/dist/_chunks/{marketplace-app-shell-6T9W4Knl.js → marketplace-app-shell-Skhfp6vK.js} +3 -3
- package/dist/_chunks/notes-panel-ay8_lPrA.js +158 -0
- package/dist/_chunks/{notification-card-BiESdm8q.js → notification-card-D2jiKSJJ.js} +27 -23
- package/dist/_chunks/{notification-tray-Btb9oQeZ.js → notification-tray-AEun6DN2.js} +2 -2
- package/dist/_chunks/{operator-hero-CP2Nhupm.js → operator-hero-CR0Rqh4-.js} +3 -3
- package/dist/_chunks/patient-details-Dlhqb5ig.js +675 -0
- package/dist/_chunks/{patient-search-CBC_ySF6.js → patient-search-Be6cLrHR.js} +2 -2
- package/dist/_chunks/patient-summary-card-WySCMwwA.js +437 -0
- package/dist/_chunks/patient-table-CHxf3Oqk.js +1110 -0
- package/dist/_chunks/{payment-form-DvjwYVIT.js → payment-form-CxqIXqw7.js} +2 -2
- package/dist/_chunks/{payment-request-card-DioWKBUq.js → payment-request-card-BcZJwu9z.js} +125 -136
- package/dist/_chunks/{pdf-viewer-D6BPfW2D.js → pdf-viewer-QfebdLOd.js} +192 -214
- package/dist/_chunks/{periodontal-chart-card-BuDEMbHE.js → periodontal-chart-card-hRRJY1NN.js} +2 -2
- package/dist/_chunks/{practice-results-KrTHqZua.js → practice-results-C6qDfxos.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-DORUAOHB.js → pregnancy-dating-CRVWswD-.js} +3 -3
- package/dist/_chunks/{pregnancy-weight-gain-DVz4rr7-.js → pregnancy-weight-gain-BUNpTsH-.js} +2 -2
- package/dist/_chunks/radiograph-panel.agent-CAX-C3g3.js +558 -0
- package/dist/_chunks/{rich-text-editor-BsV7zUdg.js → rich-text-editor-DlCqPixb.js} +410 -394
- package/dist/_chunks/{sign-document-B4DeRhTe.js → sign-document-By6hMOra.js} +2 -2
- package/dist/_chunks/{stepper-accordion-Dki6r9ZE.js → stepper-accordion-DC-H-8v4.js} +38 -48
- package/dist/_chunks/tab-bar-Bv9nGNdO.js +262 -0
- package/dist/_chunks/tooth-scheme-BhQoPNBD.js +2131 -0
- package/dist/_chunks/{transaction-chip-DK84XCBU.js → transaction-chip-CscoQbxF.js} +88 -61
- package/dist/_chunks/use-clamp-overflow-DQE2kwZ9.js +20 -0
- package/dist/_chunks/use-overflow-collapse-BIOzKbni.js +32 -0
- package/dist/_chunks/use-persistent-state-nZwZAnE9.js +24 -0
- package/dist/_chunks/{warning-stack-BsgaEbL8.js → warning-stack--sTrrBDA.js} +86 -101
- package/dist/_chunks/{workflow-map-Bdam9pGp.js → workflow-map-Dy8mLCqF.js} +3 -3
- package/dist/_chunks/zoom-out-CgVtf2Wx.js +29 -0
- package/dist/agent/index.js +5 -4
- package/dist/agent/types.d.ts +19 -2
- package/dist/agent-catalog.json +1253 -86
- package/dist/agent-i18n/en.json +108 -6
- package/dist/components/_shared/entity-card/entity-card.d.ts +6 -0
- package/dist/components/_shared/entity-card/index.d.ts +1 -1
- package/dist/components/_shared/field-value.d.ts +21 -0
- package/dist/components/_shared/field-visibility-cog.d.ts +20 -0
- package/dist/components/_shared/field-visibility.d.ts +36 -0
- package/dist/components/_shared/patient-fields.d.ts +119 -0
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +75 -0
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/alert/alert.d.ts +5 -0
- package/dist/components/alert/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anatomy-scheme/anatomy-face-paths.d.ts +15 -0
- package/dist/components/anatomy-scheme/anatomy-muscle-paths.d.ts +20 -0
- package/dist/components/anatomy-scheme/anatomy-scheme-data.d.ts +121 -0
- package/dist/components/anatomy-scheme/anatomy-scheme.agent.d.ts +6 -0
- package/dist/components/anatomy-scheme/anatomy-scheme.d.ts +69 -0
- package/dist/components/anatomy-scheme/index.d.ts +6 -0
- package/dist/components/anatomy-scheme/index.js +17 -0
- package/dist/components/annotation-marker/annotation-marker.d.ts +33 -0
- package/dist/components/annotation-marker/index.d.ts +3 -0
- package/dist/components/annotation-marker/index.js +7 -0
- package/dist/components/appointment-card/appointment-card.d.ts +25 -1
- package/dist/components/appointment-card/index.js +6 -5
- package/dist/components/appointment-timeline/appointment-timeline.agent.d.ts +4 -0
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +66 -0
- package/dist/components/appointment-timeline/index.d.ts +4 -0
- package/dist/components/appointment-timeline/index.js +6 -0
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/badge/badge.d.ts +6 -2
- package/dist/components/badge/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/care-plan-header/care-plan-header.agent.d.ts +4 -0
- package/dist/components/care-plan-header/care-plan-header.d.ts +100 -0
- package/dist/components/care-plan-header/index.d.ts +4 -0
- package/dist/components/care-plan-header/index.js +6 -0
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +21 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/control-room-context.d.ts +53 -0
- package/dist/components/control-room-rail/control-room-rail.d.ts +35 -0
- package/dist/components/control-room-rail/index.d.ts +5 -0
- package/dist/components/control-room-rail/index.js +9 -0
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/cell-renderers/actions-cell-renderer.d.ts +18 -0
- package/dist/components/data-table/index.d.ts +1 -1
- package/dist/components/data-table/index.js +32 -31
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/email-input/index.js +1 -1
- package/dist/components/entity-summary/entity-summary.d.ts +43 -0
- package/dist/components/entity-summary/index.d.ts +3 -0
- package/dist/components/entity-summary/index.js +5 -0
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/index.d.ts +9 -0
- package/dist/components/notes-panel/index.d.ts +3 -0
- package/dist/components/notes-panel/index.js +5 -0
- package/dist/components/notes-panel/notes-panel.d.ts +64 -0
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/patient-details/index.d.ts +5 -0
- package/dist/components/patient-details/index.js +6 -0
- package/dist/components/patient-details/patient-details.agent.d.ts +4 -0
- package/dist/components/patient-details/patient-details.d.ts +96 -0
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-summary-card/patient-summary-card.d.ts +40 -1
- package/dist/components/patient-table/columns.d.ts +69 -40
- package/dist/components/patient-table/index.d.ts +2 -6
- package/dist/components/patient-table/index.js +8 -9
- package/dist/components/patient-table/patient-table.d.ts +38 -4
- package/dist/components/patient-table/types.d.ts +52 -2
- package/dist/components/patient-table/use-responsive-columns.d.ts +8 -6
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/radiograph-panel/index.d.ts +4 -0
- package/dist/components/radiograph-panel/index.js +7 -0
- package/dist/components/radiograph-panel/radiograph-panel.agent.d.ts +13 -0
- package/dist/components/radiograph-panel/radiograph-panel.d.ts +36 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts +18 -1
- package/dist/components/tooth-scheme/index.d.ts +2 -2
- package/dist/components/tooth-scheme/index.js +30 -23
- package/dist/components/tooth-scheme/tooth-data.d.ts +112 -1
- package/dist/components/tooth-scheme/tooth-scheme.agent.d.ts +2 -2
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +75 -11
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +2 -2
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/warning-stack/warning-stack.d.ts +10 -7
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +24 -22
- package/dist/hooks/use-clamp-overflow.d.ts +19 -0
- package/dist/hooks/use-overflow-collapse.d.ts +46 -0
- package/dist/hooks/use-persistent-state.d.ts +7 -1
- package/dist/hooks/use-scroll-overflow.d.ts +36 -0
- package/dist/i18n/locales/ar.d.ts +308 -24
- package/dist/i18n/locales/ar.js +322 -27
- package/dist/i18n/locales/de.d.ts +308 -24
- package/dist/i18n/locales/de.js +322 -27
- package/dist/i18n/locales/el.d.ts +308 -24
- package/dist/i18n/locales/el.js +322 -27
- package/dist/i18n/locales/en.d.ts +309 -32
- package/dist/i18n/locales/en.js +323 -35
- package/dist/i18n/locales/es.d.ts +308 -24
- package/dist/i18n/locales/es.js +322 -27
- package/dist/i18n/locales/fr.d.ts +308 -24
- package/dist/i18n/locales/fr.js +322 -27
- package/dist/i18n/locales/hi.d.ts +308 -24
- package/dist/i18n/locales/hi.js +322 -27
- package/dist/i18n/locales/it.d.ts +308 -24
- package/dist/i18n/locales/it.js +322 -27
- package/dist/i18n/locales/ja.d.ts +308 -24
- package/dist/i18n/locales/ja.js +322 -27
- package/dist/i18n/locales/nl.d.ts +308 -24
- package/dist/i18n/locales/nl.js +322 -27
- package/dist/i18n/locales/pl.d.ts +308 -24
- package/dist/i18n/locales/pl.js +322 -27
- package/dist/i18n/locales/pt.d.ts +308 -24
- package/dist/i18n/locales/pt.js +322 -27
- package/dist/i18n/locales/ro.d.ts +308 -24
- package/dist/i18n/locales/ro.js +322 -27
- package/dist/i18n/locales/ru.d.ts +308 -24
- package/dist/i18n/locales/ru.js +322 -27
- package/dist/i18n/locales/sq.d.ts +308 -24
- package/dist/i18n/locales/sq.js +322 -27
- package/dist/i18n/locales/sv.d.ts +308 -24
- package/dist/i18n/locales/sv.js +322 -27
- package/dist/i18n/locales/tr.d.ts +308 -24
- package/dist/i18n/locales/tr.js +322 -27
- package/dist/i18n/locales/zh.d.ts +308 -24
- package/dist/i18n/locales/zh.js +322 -27
- package/dist/index.js +672 -623
- package/dist/locales/ar.json +311 -27
- package/dist/locales/de.json +311 -27
- package/dist/locales/el.json +311 -27
- package/dist/locales/en.json +311 -27
- package/dist/locales/es.json +311 -27
- package/dist/locales/fr.json +311 -27
- package/dist/locales/hi.json +311 -27
- package/dist/locales/it.json +311 -27
- package/dist/locales/ja.json +311 -27
- package/dist/locales/nl.json +311 -27
- package/dist/locales/pl.json +311 -27
- package/dist/locales/pt.json +311 -27
- package/dist/locales/ro.json +311 -27
- package/dist/locales/ru.json +311 -27
- package/dist/locales/sq.json +311 -27
- package/dist/locales/sv.json +311 -27
- package/dist/locales/tr.json +311 -27
- package/dist/locales/zh.json +311 -27
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +37 -1
- package/dist/_chunks/ai-tools-rail-BA_sqy1A.js +0 -373
- package/dist/_chunks/appointment-tray-CZtvtaH-.js +0 -431
- package/dist/_chunks/clinical-note-card-DqQYf_D4.js +0 -333
- package/dist/_chunks/editable-currency-cell-renderer-kgqp_mIw.js +0 -448
- package/dist/_chunks/email-input-B_Y55f5G.js +0 -396
- package/dist/_chunks/patient-summary-card-B836_fDB.js +0 -435
- package/dist/_chunks/patient-table-CDuosVru.js +0 -889
- package/dist/_chunks/tab-bar-B1ovILzh.js +0 -105
- package/dist/_chunks/tooth-scheme-yBr53cvv.js +0 -1330
- package/dist/_chunks/use-persistent-state-i23OWy6G.js +0 -24
- package/dist/components/patient-table/cell-renderers/contact-cell.d.ts +0 -45
- package/dist/components/patient-table/cell-renderers/patient-identity-cell.d.ts +0 -26
|
@@ -74,11 +74,31 @@ export interface ClinicalNoteCardProps extends Omit<HTMLAttributes<HTMLDivElemen
|
|
|
74
74
|
* raw HTML and unsafe link schemes are stripped.
|
|
75
75
|
*/
|
|
76
76
|
content: string;
|
|
77
|
+
/**
|
|
78
|
+
* How `content` is authored. `'markdown'` (default) runs the small Markdown
|
|
79
|
+
* subset through the converter; `'html'` treats `content` as rich HTML
|
|
80
|
+
* (e.g. Redactor output) and renders it through SafeHtml's `rich-text`
|
|
81
|
+
* profile, so colours, sizes, tables and images survive sanitisation.
|
|
82
|
+
*/
|
|
83
|
+
contentFormat?: 'markdown' | 'html';
|
|
77
84
|
/** Pin the note to the top of a timeline — shows a "Pinned" chip. */
|
|
78
85
|
pinned?: boolean;
|
|
79
86
|
/** Flag the note for follow-up / attention — shows a "Flagged" chip. */
|
|
80
87
|
flagged?: boolean;
|
|
81
|
-
/**
|
|
88
|
+
/**
|
|
89
|
+
* When provided, the pinned chip becomes an `aria-pressed` toggle button so
|
|
90
|
+
* the note can be (un)pinned in place — the pin glyph fills and tints to the
|
|
91
|
+
* accent when pinned (no button fill). Omit for a static, display-only card.
|
|
92
|
+
*/
|
|
93
|
+
onTogglePin?: () => void;
|
|
94
|
+
/** As `onTogglePin`, for the flagged state (warning-tinted when flagged). */
|
|
95
|
+
onToggleFlag?: () => void;
|
|
96
|
+
/**
|
|
97
|
+
* Clamp the rendered body to five lines. When the body is taller than the
|
|
98
|
+
* clamp, a "Read more" / "Read less" disclosure toggles the full text in
|
|
99
|
+
* place — the note stays a read-only display surface, so this is the
|
|
100
|
+
* sighted-user escape hatch (assistive tech reads the full body regardless).
|
|
101
|
+
*/
|
|
82
102
|
truncate?: boolean;
|
|
83
103
|
/**
|
|
84
104
|
* `'elevated'` (default) wraps the note in `<Card variant="elevated">`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as _, a as O, b as o, c as r } from "../../_chunks/contact-profile-card-
|
|
1
|
+
import { C as _, a as O, b as o, c as r } from "../../_chunks/contact-profile-card-DDPwRFiP.js";
|
|
2
2
|
export {
|
|
3
3
|
_ as CONTACT_PROFILE_CARD_ROW_ICONS,
|
|
4
4
|
O as CONTACT_PROFILE_CARD_ROW_KEYS,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { AiToolsRailHandle, AiToolsRailTool } from '../ai-tools-rail';
|
|
3
|
+
export interface ControlRoomProviderProps {
|
|
4
|
+
/**
|
|
5
|
+
* Tools valid in every context (Alia, Inbox). Set once at the app shell —
|
|
6
|
+
* they pin to the rail's far end and persist across navigation. Memoise
|
|
7
|
+
* this array so it doesn't re-register every render.
|
|
8
|
+
*/
|
|
9
|
+
globalTools?: AiToolsRailTool[];
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Holds the Control Room's global tools and the registry of per-context
|
|
14
|
+
* contextual tools. Mount once at the app shell, inside the frame that also
|
|
15
|
+
* renders `<ControlRoomRail>`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function ControlRoomProvider({ globalTools, children, }: ControlRoomProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
/**
|
|
19
|
+
* Register this context's **contextual** tools (Notes, Appointments, the entity
|
|
20
|
+
* summary). They sit below the favourites divider and unregister automatically
|
|
21
|
+
* when the calling component unmounts (i.e. when you leave the context).
|
|
22
|
+
*
|
|
23
|
+
* Pass a **stable / memoised** array — like `useEffect` deps, a fresh array
|
|
24
|
+
* every render re-registers every render. Wrap it in `useMemo`.
|
|
25
|
+
*
|
|
26
|
+
* No-op when rendered outside a `<ControlRoomProvider>`.
|
|
27
|
+
*/
|
|
28
|
+
export declare function useControlRoomTools(tools: AiToolsRailTool[]): void;
|
|
29
|
+
/**
|
|
30
|
+
* The merged tool set the rail consumes: contextual tools (auto-tagged
|
|
31
|
+
* `scope: 'contextual'`) then globals (`scope: 'global'`). Scope is assigned
|
|
32
|
+
* here by which API registered the tool — `global` seeds the Control Room's
|
|
33
|
+
* default favourites (pinned on top); `contextual` falls below the divider.
|
|
34
|
+
* `ControlRoomRail` re-groups by favourite membership for the final order.
|
|
35
|
+
* Returns `[]` outside a provider.
|
|
36
|
+
*/
|
|
37
|
+
export declare function useControlRoomMergedTools(): AiToolsRailTool[];
|
|
38
|
+
/**
|
|
39
|
+
* Imperative actions to drive the rail from a page: open a tool's panel (e.g.
|
|
40
|
+
* the X-ray viewer when a tooth is clicked) or collapse it. No-ops outside a
|
|
41
|
+
* `<ControlRoomProvider>`. The functions are stable across renders.
|
|
42
|
+
*/
|
|
43
|
+
export declare function useControlRoomActions(): {
|
|
44
|
+
openTool: (id: string) => void;
|
|
45
|
+
closeTool: () => void;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Internal: the rail registers its imperative handle with the provider so
|
|
49
|
+
* `useControlRoomActions().openTool` can drive it. Returns the stable
|
|
50
|
+
* `registerRail` callback (or a no-op outside a provider).
|
|
51
|
+
*/
|
|
52
|
+
export declare function useControlRoomRailRegister(): (handle: AiToolsRailHandle | null) => void;
|
|
53
|
+
//# sourceMappingURL=control-room-context.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type AiToolsRailHandle, type AiToolsRailProps, type AiToolsRailTool } from '../ai-tools-rail';
|
|
2
|
+
/** A Control Room tool — the rail tool descriptor, `scope`-aware. */
|
|
3
|
+
export type ControlRoomTool = AiToolsRailTool;
|
|
4
|
+
/** Imperative handle — open / collapse a tool panel without the DOM. */
|
|
5
|
+
export type ControlRoomRailHandle = AiToolsRailHandle;
|
|
6
|
+
export interface ControlRoomRailProps extends Omit<AiToolsRailProps, 'tools' | 'onReorder' | 'formatReorderAnnouncement' | 'renderToolAffordance' | 'renderPanelHeader'> {
|
|
7
|
+
/**
|
|
8
|
+
* Explicit tool set. Omit to read the merged global + contextual tools from
|
|
9
|
+
* the nearest `<ControlRoomProvider>` (+ `useControlRoomTools`).
|
|
10
|
+
*/
|
|
11
|
+
tools?: ControlRoomTool[];
|
|
12
|
+
/**
|
|
13
|
+
* Enable the favourites model: a pinned top group, drag / `Alt`+Arrow
|
|
14
|
+
* reordering, and the panel-header add / remove control. Default `true`. Set
|
|
15
|
+
* `false` for the legacy flat strip (tools render in the order / `scope` you
|
|
16
|
+
* pass, no drag, no panel-header control).
|
|
17
|
+
*/
|
|
18
|
+
reorderable?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Controlled favourite tool ids, in pinned order. When set, the rail does not
|
|
21
|
+
* persist — the host owns the value and is notified via `onFavoriteIdsChange`.
|
|
22
|
+
*/
|
|
23
|
+
favoriteIds?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* Uncontrolled initial favourites. Defaults to the ids of the tools the host
|
|
26
|
+
* marked `scope: 'global'` (Alia, Inbox) — pinning them on top by default.
|
|
27
|
+
*/
|
|
28
|
+
defaultFavoriteIds?: string[];
|
|
29
|
+
/** Fires with the next favourites order whenever the user pins / reorders. */
|
|
30
|
+
onFavoriteIdsChange?: (next: string[]) => void;
|
|
31
|
+
/** localStorage key for the uncontrolled favourites. */
|
|
32
|
+
persistFavoritesKey?: string;
|
|
33
|
+
}
|
|
34
|
+
export declare const ControlRoomRail: import("react").ForwardRefExoticComponent<ControlRoomRailProps & import("react").RefAttributes<AiToolsRailHandle>>;
|
|
35
|
+
//# sourceMappingURL=control-room-rail.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ControlRoomRail } from './control-room-rail';
|
|
2
|
+
export type { ControlRoomRailProps, ControlRoomRailHandle, ControlRoomTool, } from './control-room-rail';
|
|
3
|
+
export { ControlRoomProvider, useControlRoomTools, useControlRoomMergedTools, useControlRoomActions, } from './control-room-context';
|
|
4
|
+
export type { ControlRoomProviderProps } from './control-room-context';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { C as r, a as l, u as a, b as e, c as t } from "../../_chunks/control-room-rail-Y8ryLYsP.js";
|
|
2
|
+
export {
|
|
3
|
+
r as ControlRoomProvider,
|
|
4
|
+
l as ControlRoomRail,
|
|
5
|
+
a as useControlRoomActions,
|
|
6
|
+
e as useControlRoomMergedTools,
|
|
7
|
+
t as useControlRoomTools
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -35,5 +35,23 @@ export interface ActionsCellRendererParams<TData = unknown> {
|
|
|
35
35
|
*/
|
|
36
36
|
collapsed?: boolean | (() => boolean);
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Pixel width an actions column needs so `count` inline `sm` IconButtons (32px
|
|
40
|
+
* each — whether segmented via `group` or loose) plus the data-table cell's
|
|
41
|
+
* inline padding never clip. AG Grid gives a column ONE width for every row, so
|
|
42
|
+
* pass the TOTAL number of actions (the worst case where a single row shows them
|
|
43
|
+
* all) — not the per-row visible count, which varies with `hidden` predicates.
|
|
44
|
+
*
|
|
45
|
+
* Use it as the column `width` so a fully-actioned row can't overflow:
|
|
46
|
+
*
|
|
47
|
+
* {
|
|
48
|
+
* colId: 'actions',
|
|
49
|
+
* cellRenderer: ActionsCellRenderer,
|
|
50
|
+
* cellRendererParams: { actions, group: true },
|
|
51
|
+
* width: actionsColumnWidth(actions.length),
|
|
52
|
+
* // minWidth stays at the collapsed footprint when `collapsed` is used.
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
export declare function actionsColumnWidth(count: number): number;
|
|
38
56
|
export declare function ActionsCellRenderer<TData = unknown>(props: CustomCellRendererProps<TData> & ActionsCellRendererParams<TData>): import("react/jsx-runtime").JSX.Element | null;
|
|
39
57
|
//# sourceMappingURL=actions-cell-renderer.d.ts.map
|
|
@@ -28,7 +28,7 @@ export { DateCellRenderer } from './cell-renderers/date-cell-renderer';
|
|
|
28
28
|
export type { DateCellFormat, DateCellRendererParams, } from './cell-renderers/date-cell-renderer';
|
|
29
29
|
export { CurrencyCellRenderer } from './cell-renderers/currency-cell-renderer';
|
|
30
30
|
export type { CurrencyCellRendererParams } from './cell-renderers/currency-cell-renderer';
|
|
31
|
-
export { ActionsCellRenderer } from './cell-renderers/actions-cell-renderer';
|
|
31
|
+
export { ActionsCellRenderer, actionsColumnWidth, } from './cell-renderers/actions-cell-renderer';
|
|
32
32
|
export type { ActionDef, ActionsCellRendererParams, } from './cell-renderers/actions-cell-renderer';
|
|
33
33
|
export { LinkCellRenderer } from './cell-renderers/link-cell-renderer';
|
|
34
34
|
export type { LinkCellRendererParams } from './cell-renderers/link-cell-renderer';
|
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import { A as l,
|
|
2
|
-
import { B as
|
|
1
|
+
import { A as l, C as r, D as t, a as s, b as n, c as o, I as d, L as i, N as C, d as R, S as F, e as T, f as g, T as b, g as u, h as c, i as m, j as x, k as D, l as f, U as h, m as p, n as y, o as E } from "../../_chunks/link-cell-renderer-CTXqtXV-.js";
|
|
2
|
+
import { B as A, C as L, E as N, a as k, T as B, b as I, u as P } from "../../_chunks/editable-currency-cell-renderer-C9twtALM.js";
|
|
3
3
|
export {
|
|
4
4
|
l as ActionsCellRenderer,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
5
|
+
A as BalanceCellRenderer,
|
|
6
|
+
L as ColorDotCellRenderer,
|
|
7
|
+
r as CurrencyCellRenderer,
|
|
8
|
+
t as DataTable,
|
|
9
|
+
s as DateCellRenderer,
|
|
10
|
+
n as DateRangeFilter,
|
|
11
|
+
o as DateRangeFloatingFilter,
|
|
12
|
+
N as EditableCurrencyCellRenderer,
|
|
13
|
+
k as EditableTextCellRenderer,
|
|
14
|
+
d as ImageCellRenderer,
|
|
15
|
+
i as LinkCellRenderer,
|
|
16
|
+
C as NumberFilter,
|
|
17
|
+
R as NumberFloatingFilter,
|
|
18
|
+
F as SelectFilter,
|
|
19
|
+
T as SelectFloatingFilter,
|
|
20
|
+
g as StatusCellRenderer,
|
|
21
|
+
b as TagListCellRenderer,
|
|
22
|
+
u as TextFilter,
|
|
23
|
+
c as TextFloatingFilter,
|
|
24
|
+
B as ToggleCellRenderer,
|
|
25
|
+
m as Toolbar,
|
|
26
|
+
x as ToolbarProvider,
|
|
27
|
+
I as ToothCellRenderer,
|
|
28
|
+
D as TypeaheadFilter,
|
|
29
|
+
f as TypeaheadFloatingFilter,
|
|
30
|
+
h as UserCellRenderer,
|
|
31
|
+
p as actionsColumnWidth,
|
|
32
|
+
y as dataTableAgent,
|
|
33
|
+
E as defaultExportPdf,
|
|
34
|
+
P as useTotalRow
|
|
34
35
|
};
|
|
35
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as e } from "../../_chunks/due-date-calculator-
|
|
2
|
-
import { C as r, a as o, D, G as _, M as T, T as M, c as E, b as l, g as C, p as A, r as N, d as i, t as n } from "../../_chunks/antenatal-schedule-timeline-
|
|
1
|
+
import { D as e } from "../../_chunks/due-date-calculator-Brdj-euS.js";
|
|
2
|
+
import { C as r, a as o, D, G as _, M as T, T as M, c as E, b as l, g as C, p as A, r as N, d as i, t as n } from "../../_chunks/antenatal-schedule-timeline-CwXrQRm1.js";
|
|
3
3
|
export {
|
|
4
4
|
r as CRL_DATING_MAX_MM,
|
|
5
5
|
o as CRL_DATING_MIN_MM,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
/** A corpus stat shown in the header (e.g. `{ value: 5, label: 'care plans' }`). */
|
|
3
|
+
export interface EntitySummaryStat {
|
|
4
|
+
value: string | number;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
/** One narrative section — a heading over a list of bullet items. */
|
|
8
|
+
export interface EntitySummarySection {
|
|
9
|
+
id: string;
|
|
10
|
+
heading: string;
|
|
11
|
+
/** `attention` renders the risk-flag treatment (warning-tinted, alert glyph). */
|
|
12
|
+
tone?: 'default' | 'attention';
|
|
13
|
+
/** Bullet items — `ReactNode` so consumers compose inline entity links. */
|
|
14
|
+
items: ReactNode[];
|
|
15
|
+
}
|
|
16
|
+
export interface EntitySummaryProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | 'children'> {
|
|
17
|
+
/** Panel title. Defaults to the localised "AI summary". */
|
|
18
|
+
title?: string;
|
|
19
|
+
/** Entity name shown as a link in the header. */
|
|
20
|
+
entityName?: string;
|
|
21
|
+
/** Entity href for the name link. */
|
|
22
|
+
entityHref?: string;
|
|
23
|
+
/** ISO-8601 instant the brief was generated. */
|
|
24
|
+
generatedAtIso?: string;
|
|
25
|
+
/** Corpus the brief was built from, shown as a "·"-joined line. */
|
|
26
|
+
stats?: EntitySummaryStat[];
|
|
27
|
+
/** The narrative sections, in order. */
|
|
28
|
+
sections: EntitySummarySection[];
|
|
29
|
+
/** Regenerate the brief. Omit to hide the affordance. */
|
|
30
|
+
onRegenerate?: () => void;
|
|
31
|
+
/** Regenerate-button label. */
|
|
32
|
+
regenerateLabel?: string;
|
|
33
|
+
/** Dismiss the panel. Omit to hide the close affordance. */
|
|
34
|
+
onClose?: () => void;
|
|
35
|
+
/** Footer disclaimer. Defaults to the BETA clinical-judgement note. */
|
|
36
|
+
disclaimer?: ReactNode;
|
|
37
|
+
/** BCP-47 locale for the generated-at timestamp. */
|
|
38
|
+
locale?: string;
|
|
39
|
+
/** Accessible name for the panel region (defaults to `title`). */
|
|
40
|
+
'aria-label'?: string;
|
|
41
|
+
}
|
|
42
|
+
export declare const EntitySummary: import("react").ForwardRefExoticComponent<EntitySummaryProps & import("react").RefAttributes<HTMLElement>>;
|
|
43
|
+
//# sourceMappingURL=entity-summary.d.ts.map
|
|
@@ -45,6 +45,7 @@ export * from './text-input';
|
|
|
45
45
|
export * from './time-picker';
|
|
46
46
|
export { InsertButton, svgCardToPngDataUri, svgCardToPng, type InsertButtonProps, type InsertVariant, type InsertPayload, type InsertPngResult, type InsertMode, type InsertCardData, type InsertCardField, type InsertCardGauge, type SvgCardToPngOptions, } from './_shared/insert-result';
|
|
47
47
|
export * from './accordion';
|
|
48
|
+
export * from './annotation-marker';
|
|
48
49
|
export * from './avatar';
|
|
49
50
|
export * from './badge';
|
|
50
51
|
export * from './benefit-card';
|
|
@@ -75,6 +76,7 @@ export * from './tag';
|
|
|
75
76
|
export * from './timeline';
|
|
76
77
|
export * from './timestamp';
|
|
77
78
|
export * from './ai-tools-rail';
|
|
79
|
+
export * from './control-room-rail';
|
|
78
80
|
export * from './breadcrumb';
|
|
79
81
|
export * from './command-palette';
|
|
80
82
|
export * from './header';
|
|
@@ -96,6 +98,7 @@ export * from './agenda-tray';
|
|
|
96
98
|
export * from './ai-consent-banner';
|
|
97
99
|
export * from './alert';
|
|
98
100
|
export * from './appointment-card';
|
|
101
|
+
export * from './appointment-timeline';
|
|
99
102
|
export * from './dialog';
|
|
100
103
|
export * from './dropdown-menu';
|
|
101
104
|
export * from './finished-terminal';
|
|
@@ -105,7 +108,9 @@ export * from './message-card';
|
|
|
105
108
|
export * from './message-tray';
|
|
106
109
|
export * from './notification-card';
|
|
107
110
|
export * from './notification-tray';
|
|
111
|
+
export * from './notes-panel';
|
|
108
112
|
export * from './popover';
|
|
113
|
+
export * from './radiograph-panel';
|
|
109
114
|
export * from './pregnancy-weight-gain';
|
|
110
115
|
export * from './privacy-lock';
|
|
111
116
|
export * from './product-hub-tray';
|
|
@@ -133,17 +138,21 @@ export * from './audio-visualiser';
|
|
|
133
138
|
export * from './chat-container';
|
|
134
139
|
export * from './chat-input';
|
|
135
140
|
export * from './chat-message';
|
|
141
|
+
export * from './entity-summary';
|
|
136
142
|
export * from './freemium-paywall';
|
|
137
143
|
export * from './streaming-text';
|
|
138
144
|
export * from './suggestion-chip';
|
|
139
145
|
export * from './transcript-panel';
|
|
140
146
|
export * from './typing-indicator';
|
|
141
147
|
export * from './anamnesis-card';
|
|
148
|
+
export * from './anatomy-scheme';
|
|
142
149
|
export * from './booking';
|
|
143
150
|
export * from './calendar';
|
|
144
151
|
export * from './care-plan-card';
|
|
145
152
|
export * from './care-plan-entry-card';
|
|
153
|
+
export * from './care-plan-header';
|
|
146
154
|
export * from './operator-hero';
|
|
155
|
+
export * from './patient-details';
|
|
147
156
|
export * from './patient-search';
|
|
148
157
|
export * from './patient-summary-card';
|
|
149
158
|
export * from './patient-table';
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import type { ClinicalNoteCardProps } from '../clinical-note-card';
|
|
3
|
+
import type { RichTextEditorProps, RichTextEditorToolbar, RedactorFactory } from '../rich-text-editor';
|
|
4
|
+
/** One note in the panel — the data subset of `ClinicalNoteCard`. */
|
|
5
|
+
export type NotesPanelNote = Pick<ClinicalNoteCardProps, 'id' | 'dateIso' | 'createdAtIso' | 'author' | 'clinical' | 'attachedTo' | 'content' | 'contentFormat' | 'pinned' | 'flagged'>;
|
|
6
|
+
/** Payload handed to `onAddNote` when the composer commits. */
|
|
7
|
+
export interface NotesPanelSubmission {
|
|
8
|
+
/** The note body — rich HTML (`composer='rich'`) or plain text. */
|
|
9
|
+
content: string;
|
|
10
|
+
/** Whether the "clinical note" toggle was set. */
|
|
11
|
+
clinical: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface NotesPanelProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | 'children'> {
|
|
14
|
+
/** Notes to render, newest-first by convention. Pinned notes lead. */
|
|
15
|
+
notes: NotesPanelNote[];
|
|
16
|
+
/** Commit a new note. Omit to hide the composer (read-only timeline). */
|
|
17
|
+
onAddNote?: (submission: NotesPanelSubmission) => void;
|
|
18
|
+
/**
|
|
19
|
+
* `'rich'` (default) mounts the kit `RichTextEditor` (Redactor; degrades to a
|
|
20
|
+
* textarea where Redactor is absent). `'plain'` keeps a simple `TextArea` for
|
|
21
|
+
* lightweight surfaces / deterministic tests.
|
|
22
|
+
*/
|
|
23
|
+
composer?: 'rich' | 'plain';
|
|
24
|
+
/** Toolbar preset for the rich composer. Defaults to `'standard'`. */
|
|
25
|
+
editorToolbar?: RichTextEditorToolbar;
|
|
26
|
+
/** Inject the Redactor factory for the rich composer (else `window.$R`). */
|
|
27
|
+
redactor?: RedactorFactory;
|
|
28
|
+
/** Consumer image-upload endpoint for the rich composer. */
|
|
29
|
+
imageUploadUrl?: string;
|
|
30
|
+
/** Show the "clinical note" toggle in the composer. Default `true`. */
|
|
31
|
+
showClinicalToggle?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Permission gate — when `false` the clinical toggle is disabled and shows
|
|
34
|
+
* `clinicalGatedReason` on hover/focus. Mirrors platform's
|
|
35
|
+
* `practice_add_clinical_note` permission. Default `true`.
|
|
36
|
+
*/
|
|
37
|
+
canAddClinicalNote?: boolean;
|
|
38
|
+
/** Tooltip shown when the clinical toggle is gated off. */
|
|
39
|
+
clinicalGatedReason?: string;
|
|
40
|
+
/** Initial state of the clinical toggle. Default `false`. */
|
|
41
|
+
defaultClinical?: boolean;
|
|
42
|
+
onRequestAiDraft?: RichTextEditorProps['onRequestAiDraft'];
|
|
43
|
+
aiDraftFormat?: RichTextEditorProps['aiDraftFormat'];
|
|
44
|
+
aiPrivacyNotice?: RichTextEditorProps['aiPrivacyNotice'];
|
|
45
|
+
onDictate?: RichTextEditorProps['onDictate'];
|
|
46
|
+
onProofread?: RichTextEditorProps['onProofread'];
|
|
47
|
+
onAutoFormat?: RichTextEditorProps['onAutoFormat'];
|
|
48
|
+
/** Toggle a note's pinned state — renders an inline pin button per note. */
|
|
49
|
+
onTogglePin?: (id: string) => void;
|
|
50
|
+
/** Toggle a note's flagged state — renders an inline flag button per note. */
|
|
51
|
+
onToggleFlag?: (id: string) => void;
|
|
52
|
+
/** Panel heading. Defaults to the localised "Notes". */
|
|
53
|
+
title?: string;
|
|
54
|
+
/** Composer placeholder. */
|
|
55
|
+
composerPlaceholder?: string;
|
|
56
|
+
/** Save-button label. */
|
|
57
|
+
addNoteLabel?: string;
|
|
58
|
+
/** Rendered when there are no notes. */
|
|
59
|
+
emptyState?: ReactNode;
|
|
60
|
+
/** Accessible name for the panel region (defaults to `title`). */
|
|
61
|
+
'aria-label'?: string;
|
|
62
|
+
}
|
|
63
|
+
export declare const NotesPanel: import("react").ForwardRefExoticComponent<NotesPanelProps & import("react").RefAttributes<HTMLElement>>;
|
|
64
|
+
//# sourceMappingURL=notes-panel.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { PatientDetails } from './patient-details';
|
|
2
|
+
export type { PatientDetailsProps, PatientDetailsHandle, PatientDetailsField, PatientDetailsSection, PatientDetailsFieldOption, PatientDetailsEditType, PatientDetailsEditValue, PatientDetailsDensity, } from './patient-details';
|
|
3
|
+
export type { PatientField, PatientFieldSection, PatientFieldOption, PatientFieldEditType, PatientFieldEditValue, } from '../_shared/patient-fields';
|
|
4
|
+
export { patientDetailsAgent } from './patient-details.agent';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|