@alfadocs/ui-kit 1.138.0 → 1.139.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-DvSWdeR0.js → address-fields-Bh9JZJHZ.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-CVNeusoW.js → ai-prompt-input-B2QFwuJ1.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-Dr2V1Rtf.js → anamnesis-summary-rows-BgfBnjp0.js} +4 -4
- package/dist/_chunks/{audio-recorder-BOF5YYoC.js → audio-recorder-6dUq8I38.js} +2 -2
- package/dist/_chunks/autocomplete-HZNW7_Pa.js +642 -0
- package/dist/_chunks/{balance-badge-cell-BSB02Bwo.js → balance-badge-cell-CRrIv2hy.js} +4 -4
- package/dist/_chunks/{bill-line-table-By-YL2ms.js → bill-line-table-DCqxhode.js} +3 -3
- package/dist/_chunks/{bishop-score-DWGESRP9.js → bishop-score-M7Fi-ykx.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-SxSkOTnO.js → calendar-appointment-editor-dialog-GdnaPIOV.js} +7 -7
- package/dist/_chunks/{calendar-editor-discard-host-DjUhoFr2.js → calendar-editor-discard-host-BcMEgVEq.js} +2 -2
- package/dist/_chunks/{calendar-waiting-list-panel-331vzAdl.js → calendar-waiting-list-panel-CkZBAv_E.js} +3 -3
- package/dist/_chunks/{calendar.sheets-aodjllWd.js → calendar.sheets-B0jP2Yt0.js} +112 -111
- package/dist/_chunks/{calls-panel-BIfatK90.js → calls-panel-CtxJAzkJ.js} +2 -2
- package/dist/_chunks/{city-input-DXipzTfZ.js → city-input-DARVDJhH.js} +2 -2
- package/dist/_chunks/{combobox-BBCVQS-S.js → combobox-BYl6mY4c.js} +12 -13
- package/dist/_chunks/{communications-panel-SQ-55e3V.js → communications-panel-DBWM9II9.js} +2 -2
- package/dist/_chunks/{country-select-C2GdvRtS.js → country-select-BPISkYVU.js} +3 -3
- package/dist/_chunks/{data-grid-CxKz8flO.js → data-grid-bQ6iFm10.js} +15 -7
- package/dist/_chunks/{data-table-_tgj0C_T.js → data-table-CnLfOwxg.js} +2 -2
- package/dist/_chunks/{default-tabs-oDWQzbN7.js → default-tabs-Dm_vk6hd.js} +3 -3
- package/dist/_chunks/{document-preview-CirR3C_m.js → document-preview-FTCHXYhk.js} +2 -2
- package/dist/_chunks/{face-scheme-D_Y1StPl.js → face-scheme-Bxt7ZnJn.js} +2 -2
- package/dist/_chunks/{file-manager-CEi4z2i0.js → file-manager-Bsccb8Jj.js} +2 -2
- package/dist/_chunks/{forgot-password-form-YvI9vX-G.js → forgot-password-form-B4ufmBFn.js} +5 -4
- package/dist/_chunks/{gestational-age-calculator-CHbpC4vL.js → gestational-age-calculator-DXSPWG8u.js} +2 -2
- package/dist/_chunks/{heatmap-_546qI2V.js → heatmap-CFPaEKD_.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-CQI9MUl6.js → invoice-upload-list-Dz3CXHPP.js} +3 -3
- package/dist/_chunks/{kit-extensions-BNBf4m8O.js → kit-extensions-BB_ksnVl.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-Xx5T8u5Q.js → link-cell-renderer-CSA0KKPe.js} +5 -5
- package/dist/_chunks/{login-dev-card-Dz3ezx1o.js → login-dev-card-oRh9h7N2.js} +18 -17
- package/dist/_chunks/medication-I6QvOq6k.js +21 -0
- package/dist/_chunks/medication-line-CHdlh-F7.js +222 -0
- package/dist/_chunks/medication-search-DoEDakoM.js +380 -0
- package/dist/_chunks/{multi-select-Df3R8lv_.js → multi-select-DeMiHm8T.js} +4 -5
- package/dist/_chunks/{muscle-scheme-D_rSyGDj.js → muscle-scheme-BB2eBfww.js} +2 -2
- package/dist/_chunks/normalize-diacritics-DhJjQ3Bp.js +7 -0
- package/dist/_chunks/{notes-panel-DsEKNtsw.js → notes-panel-CnmQqhwq.js} +2 -2
- package/dist/_chunks/{optical-prescription-DaSbsh4p.js → optical-prescription-C4jpDFOE.js} +2 -2
- package/dist/_chunks/{option-row-Dc7BrbK8.js → option-row-DpCnuUqo.js} +25 -12
- package/dist/_chunks/{patient-account-settings-Cs9y-pVA.js → patient-account-settings-DfEPHmCh.js} +2 -2
- package/dist/_chunks/{patient-check-in-resume-4qi_klQV.js → patient-check-in-resume-TWs8CPQr.js} +3 -3
- package/dist/_chunks/{patient-details-Dv7EiTCo.js → patient-details-DQTxSWY4.js} +2 -2
- package/dist/_chunks/{patient-field-row-DuHWGlLz.js → patient-field-row-CXuWQeQJ.js} +6 -6
- package/dist/_chunks/patient-picker-CQNsqYn2.js +163 -0
- package/dist/_chunks/{patient-search-DBvLFArV.js → patient-search-aTFd7p9s.js} +2 -2
- package/dist/_chunks/{patient-summary-card-D-cDzOim.js → patient-summary-card-j5u7c5Us.js} +2 -2
- package/dist/_chunks/{phone-input-BL8Sj6OG.js → phone-input-DRKcJUi4.js} +2 -2
- package/dist/_chunks/{portal-details-BGc_FLQk.js → portal-details-VfeOI4PB.js} +2 -2
- package/dist/_chunks/{portal-documents-BSI1U5lI.js → portal-documents-hGHlwmbv.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-lJbzai73.js → pregnancy-dating-C-3NLI6K.js} +2 -2
- package/dist/_chunks/prescription-history-748qDVwZ.js +1544 -0
- package/dist/_chunks/print-sheet-CSeqkM3_.js +318 -0
- package/dist/_chunks/{province-select-CTM8A9SM.js → province-select-D-iY9bQG.js} +3 -3
- package/dist/_chunks/{registration-form-CuLiTA52.js → registration-form-Cs9o6e5q.js} +7 -6
- package/dist/_chunks/{reserved.agent-CabZHFJC.js → reserved.agent-L2ElYPuj.js} +7 -7
- package/dist/_chunks/{reset-password-form-D_TePSM1.js → reset-password-form-DwtSNhnA.js} +18 -17
- package/dist/_chunks/{rich-text-editor-C48omVjq.js → rich-text-editor-DFsH5RAj.js} +2 -2
- package/dist/_chunks/save-Dn8uje3f.js +22 -0
- package/dist/_chunks/{search-bar-CQ9_V3EJ.js → search-bar-k1mS5yZl.js} +2 -2
- package/dist/_chunks/{select-CIXKyUMw.js → select-Bm8s3q-X.js} +16 -17
- package/dist/_chunks/{send-registration-link-form-BjkXr0TD.js → send-registration-link-form-C1vw6H1M.js} +6 -5
- package/dist/_chunks/{signature-request-vJDSHZld.js → signature-request-D3sLLOM6.js} +2 -2
- package/dist/_chunks/sync-tray-BhnkgXKK.js +567 -0
- package/dist/_chunks/{tabs-Czkmw5ou.js → tabs-BXr5XeGq.js} +2 -2
- package/dist/_chunks/{task-editor-wKbFbGqW.js → task-editor-DDVDPKJf.js} +26 -25
- package/dist/_chunks/{tasks-panel-DbtJS4QI.js → tasks-panel-BHXaPNOZ.js} +2 -2
- package/dist/_chunks/{toolbar-DjG-cpD_.js → toolbar-Dz_hAUIZ.js} +2 -2
- package/dist/_chunks/{unit-converter-CUAUTu2B.js → unit-converter-CBy7S4Tl.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-jGkJalX8.js → use-appointment-details-read-CBSpX4DI.js} +2 -2
- package/dist/_chunks/use-error-summary-CecJZo6w.js +32 -0
- package/dist/_chunks/use-registration-submit-CVukOAQk.js +84 -0
- package/dist/_chunks/{variables-menu-DQl8H4Gh.js → variables-menu-C4NcClKi.js} +2 -2
- package/dist/_chunks/{voice-control-panel-Cp4vs1iy.js → voice-control-panel-Dc_NFH2R.js} +2 -2
- package/dist/agent-catalog.json +455 -1
- package/dist/agent-i18n/en.json +53 -0
- package/dist/appointment-editor-panel/index.js +2 -2
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/medication.d.ts +28 -0
- package/dist/components/_shared/normalize-diacritics.d.ts +5 -0
- package/dist/components/_shared/patient-picker.d.ts +7 -0
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/autocomplete.d.ts +50 -0
- package/dist/components/autocomplete/index.d.ts +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calls-panel/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/communications-panel/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +5 -0
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/medication-line/index.d.ts +6 -0
- package/dist/components/medication-line/index.js +7 -0
- package/dist/components/medication-line/medication-line.agent.d.ts +14 -0
- package/dist/components/medication-line/medication-line.d.ts +40 -0
- package/dist/components/medication-search/index.d.ts +6 -0
- package/dist/components/medication-search/index.js +10 -0
- package/dist/components/medication-search/medication-search.agent.d.ts +15 -0
- package/dist/components/medication-search/medication-search.d.ts +49 -0
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/print-sheet/index.d.ts +5 -0
- package/dist/components/print-sheet/index.js +6 -0
- package/dist/components/print-sheet/print-isolation.d.ts +17 -0
- package/dist/components/print-sheet/print-sheet.agent.d.ts +19 -0
- package/dist/components/print-sheet/print-sheet.d.ts +54 -0
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/sync-tray/index.d.ts +4 -0
- package/dist/components/sync-tray/index.js +7 -0
- package/dist/components/sync-tray/sync-tray.agent.d.ts +15 -0
- package/dist/components/sync-tray/sync-tray.d.ts +77 -0
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/variables-menu/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/host-compat.css +13 -1
- package/dist/i18n/locales/ar.d.ts +134 -0
- package/dist/i18n/locales/ar.js +134 -0
- package/dist/i18n/locales/de.d.ts +134 -0
- package/dist/i18n/locales/de.js +134 -0
- package/dist/i18n/locales/el.d.ts +134 -0
- package/dist/i18n/locales/el.js +134 -0
- package/dist/i18n/locales/en.d.ts +134 -0
- package/dist/i18n/locales/en.js +134 -0
- package/dist/i18n/locales/es.d.ts +134 -0
- package/dist/i18n/locales/es.js +134 -0
- package/dist/i18n/locales/fr.d.ts +134 -0
- package/dist/i18n/locales/fr.js +134 -0
- package/dist/i18n/locales/hi.d.ts +134 -0
- package/dist/i18n/locales/hi.js +134 -0
- package/dist/i18n/locales/it.d.ts +134 -0
- package/dist/i18n/locales/it.js +134 -0
- package/dist/i18n/locales/ja.d.ts +134 -0
- package/dist/i18n/locales/ja.js +134 -0
- package/dist/i18n/locales/nl.d.ts +134 -0
- package/dist/i18n/locales/nl.js +134 -0
- package/dist/i18n/locales/pl.d.ts +134 -0
- package/dist/i18n/locales/pl.js +134 -0
- package/dist/i18n/locales/pt.d.ts +134 -0
- package/dist/i18n/locales/pt.js +134 -0
- package/dist/i18n/locales/ro.d.ts +134 -0
- package/dist/i18n/locales/ro.js +134 -0
- package/dist/i18n/locales/ru.d.ts +134 -0
- package/dist/i18n/locales/ru.js +134 -0
- package/dist/i18n/locales/sq.d.ts +134 -0
- package/dist/i18n/locales/sq.js +134 -0
- package/dist/i18n/locales/sv.d.ts +134 -0
- package/dist/i18n/locales/sv.js +134 -0
- package/dist/i18n/locales/tr.d.ts +134 -0
- package/dist/i18n/locales/tr.js +134 -0
- package/dist/i18n/locales/zh.d.ts +134 -0
- package/dist/i18n/locales/zh.js +134 -0
- package/dist/index.js +1002 -974
- package/dist/locales/ar.json +134 -0
- package/dist/locales/de.json +134 -0
- package/dist/locales/el.json +134 -0
- package/dist/locales/en.json +134 -0
- package/dist/locales/es.json +134 -0
- package/dist/locales/fr.json +134 -0
- package/dist/locales/hi.json +134 -0
- package/dist/locales/it.json +134 -0
- package/dist/locales/ja.json +134 -0
- package/dist/locales/nl.json +134 -0
- package/dist/locales/pl.json +134 -0
- package/dist/locales/pt.json +134 -0
- package/dist/locales/ro.json +134 -0
- package/dist/locales/ru.json +134 -0
- package/dist/locales/sq.json +134 -0
- package/dist/locales/sv.json +134 -0
- package/dist/locales/tr.json +134 -0
- package/dist/locales/zh.json +134 -0
- package/dist/online-bookings-panel/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +3 -3
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- 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/patterns/prescription/index.d.ts +11 -0
- package/dist/patterns/prescription/index.js +13 -0
- package/dist/patterns/prescription/prescription-composer-errors.d.ts +6 -0
- package/dist/patterns/prescription/prescription-composer-item.d.ts +34 -0
- package/dist/patterns/prescription/prescription-composer.d.ts +89 -0
- package/dist/patterns/prescription/prescription-history.d.ts +48 -0
- package/dist/patterns/prescription/prescription-patient-block.d.ts +13 -0
- package/dist/patterns/prescription/prescription-sheet.d.ts +52 -0
- package/dist/patterns/prescription/prescription-status-badge.d.ts +5 -0
- package/dist/patterns/prescription/prescription-types.d.ts +97 -0
- package/dist/patterns/prescription/prescription-validation.d.ts +40 -0
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/reset-password-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +2 -2
- package/package.json +21 -1
- package/dist/_chunks/autocomplete-D10ydpgi.js +0 -562
- package/dist/_chunks/group-options-BvKhQ3xb.js +0 -16
- package/dist/_chunks/normalize-diacritics-BNGbFNlJ.js +0 -7
- package/dist/_chunks/patient-picker-BZJuOgMw.js +0 -173
- package/dist/_chunks/use-registration-submit-CLGHxwoT.js +0 -112
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, C as l, N as n, P as t, a as C, T as i, b as o, g as T, u as p } from "../../_chunks/balance-badge-cell-
|
|
1
|
+
import { B as s, C as l, N as n, P as t, a as C, T as i, b as o, g as T, u as p } from "../../_chunks/balance-badge-cell-CRrIv2hy.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BalanceBadgeCell,
|
|
4
4
|
l as CarePlanStatusCell,
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { PrintSheet } from './print-sheet';
|
|
2
|
+
export type { PrintSheetProps, PrintSheetSignature, PrintSheetSize, } from './print-sheet';
|
|
3
|
+
export { printSheetAgent } from './print-sheet.agent';
|
|
4
|
+
export type { PrintSheetHandle } from './print-sheet.agent';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface PrintSheetEntry {
|
|
2
|
+
/** The sheet's root element, or null before mount. */
|
|
3
|
+
getElement: () => HTMLElement | null;
|
|
4
|
+
/** Whether a print started by the browser includes this sheet. */
|
|
5
|
+
isolate: () => boolean;
|
|
6
|
+
/** Runs once the page is marked for print. */
|
|
7
|
+
before: () => void;
|
|
8
|
+
/** Runs once the page is restored. */
|
|
9
|
+
after: () => void;
|
|
10
|
+
}
|
|
11
|
+
/** Registers a mounted sheet. Returns the cleanup for unmount. */
|
|
12
|
+
export declare function registerSheet(entry: PrintSheetEntry): () => void;
|
|
13
|
+
/** Prints only this sheet through the browser's print dialog. */
|
|
14
|
+
export declare function printSheet(entry: PrintSheetEntry): void;
|
|
15
|
+
/** Whether this sheet is marked for print right now. */
|
|
16
|
+
export declare function isSheetPrinting(entry: PrintSheetEntry): boolean;
|
|
17
|
+
//# sourceMappingURL=print-isolation.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AgentAdapter } from '../../agent/types';
|
|
2
|
+
/**
|
|
3
|
+
* Imperative handle for PrintSheet. Also what a consumer holds through
|
|
4
|
+
* `ref` to print the sheet from a button outside it.
|
|
5
|
+
*/
|
|
6
|
+
export interface PrintSheetHandle {
|
|
7
|
+
/** Print only this sheet through the browser's print dialog. */
|
|
8
|
+
print: () => void;
|
|
9
|
+
/** True while this sheet is marked for print. */
|
|
10
|
+
isPrinting: () => boolean;
|
|
11
|
+
/** The paper size of the sheet. */
|
|
12
|
+
getSize: () => 'a4' | 'a5';
|
|
13
|
+
/** The sheet's root element, or null before mount. */
|
|
14
|
+
getElement: () => HTMLElement | null;
|
|
15
|
+
/** Moves focus to the title heading, after a change of view. Does nothing without a title. */
|
|
16
|
+
focusTitle: () => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const printSheetAgent: AgentAdapter<PrintSheetHandle>;
|
|
19
|
+
//# sourceMappingURL=print-sheet.agent.d.ts.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import { type PrintSheetHandle } from './print-sheet.agent';
|
|
3
|
+
export type PrintSheetSize = 'a4' | 'a5';
|
|
4
|
+
export interface PrintSheetSignature {
|
|
5
|
+
/** Printed under the signature line, for example the prescriber's name. */
|
|
6
|
+
name: string;
|
|
7
|
+
/** Second line, for example a specialty or role. */
|
|
8
|
+
detail?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PrintSheetProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {
|
|
11
|
+
/** Paper size. Default 'a4'. */
|
|
12
|
+
size?: PrintSheetSize;
|
|
13
|
+
/** 'compact' tightens the page padding and gaps. Default 'default'. */
|
|
14
|
+
density?: 'default' | 'compact';
|
|
15
|
+
/** Optional slot at the top, for example a practice letterhead. */
|
|
16
|
+
header?: ReactNode;
|
|
17
|
+
/** Document title, rendered as a heading. */
|
|
18
|
+
title?: ReactNode;
|
|
19
|
+
/** Heading level of the title. Default 2. */
|
|
20
|
+
headingLevel?: 1 | 2 | 3 | 4;
|
|
21
|
+
/**
|
|
22
|
+
* Document date, shown in the footer with the label `printSheet.date`,
|
|
23
|
+
* formatted for the active locale. A date-only string such as
|
|
24
|
+
* `2026-11-18` is read as that calendar day, not as UTC midnight.
|
|
25
|
+
*/
|
|
26
|
+
date?: string | number | Date;
|
|
27
|
+
/** Footer signature block: a signature line, then name and detail. */
|
|
28
|
+
signature?: PrintSheetSignature;
|
|
29
|
+
/** Extra footer content, rendered before the date and signature. */
|
|
30
|
+
footer?: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Opt in to print only this sheet when a print starts from the browser
|
|
33
|
+
* (Ctrl or Cmd+P) or from another component's `window.print()`. Only a
|
|
34
|
+
* sheet that is rendered and visible at that moment is isolated, so a sheet
|
|
35
|
+
* in a hidden tab panel is skipped. Default false: the page prints as it
|
|
36
|
+
* would without the sheet. `handle.print()` always isolates the sheet,
|
|
37
|
+
* whatever this says.
|
|
38
|
+
*/
|
|
39
|
+
isolateBrowserPrint?: boolean;
|
|
40
|
+
/** Fires once the page is marked for print. */
|
|
41
|
+
onBeforePrint?: () => void;
|
|
42
|
+
/** Fires once the page is restored. */
|
|
43
|
+
onAfterPrint?: () => void;
|
|
44
|
+
/**
|
|
45
|
+
* Accessible name of the region. Default `printSheet.label`, or the title
|
|
46
|
+
* when one is given.
|
|
47
|
+
*/
|
|
48
|
+
'aria-label'?: string;
|
|
49
|
+
id?: string;
|
|
50
|
+
/** The body of the document. */
|
|
51
|
+
children: ReactNode;
|
|
52
|
+
}
|
|
53
|
+
export declare const PrintSheet: import("react").ForwardRefExoticComponent<PrintSheetProps & import("react").RefAttributes<PrintSheetHandle>>;
|
|
54
|
+
//# sourceMappingURL=print-sheet.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as i, r as o, w as a } from "../../_chunks/rich-text-editor-
|
|
2
|
-
import { k as s } from "../../_chunks/kit-extensions-
|
|
1
|
+
import { R as i, r as o, w as a } from "../../_chunks/rich-text-editor-DFsH5RAj.js";
|
|
2
|
+
import { k as s } from "../../_chunks/kit-extensions-BB_ksnVl.js";
|
|
3
3
|
export {
|
|
4
4
|
i as RichTextEditor,
|
|
5
5
|
s as kitEditorExtensions,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as a, a as l, b as S, c, d as s, e as o, f as r, g as p, h as g, i, j as m } from "../../_chunks/select-
|
|
1
|
+
import { S as a, a as l, b as S, c, d as s, e as o, f as r, g as p, h as g, i, j as m } from "../../_chunks/select-Bm8s3q-X.js";
|
|
2
2
|
export {
|
|
3
3
|
a as Select,
|
|
4
4
|
l as SelectContent,
|
|
@@ -5,7 +5,7 @@ import { c as T1 } from "../../_chunks/index-D2ZczOXr.js";
|
|
|
5
5
|
import { useTranslation as N1 } from "react-i18next";
|
|
6
6
|
import { u as E1 } from "../../_chunks/registry-DvAUVLHh.js";
|
|
7
7
|
import { m as R1, A as _1 } from "../../_chunks/annotation-marker-D-M7y4R1.js";
|
|
8
|
-
import { T as A } from "../../_chunks/tabs-
|
|
8
|
+
import { T as A } from "../../_chunks/tabs-BXr5XeGq.js";
|
|
9
9
|
import { a as V1, Z as C1 } from "../../_chunks/zoom-out-Dnif4kJx.js";
|
|
10
10
|
import { M as F1 } from "../../_chunks/maximize-2-BYd2Kti7.js";
|
|
11
11
|
const I = {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AgentAdapter } from '../../agent/types';
|
|
2
|
+
export interface SyncTrayAgentHandle {
|
|
3
|
+
open: () => void;
|
|
4
|
+
close: () => void;
|
|
5
|
+
isOpen: () => boolean;
|
|
6
|
+
getFailedCount: () => number;
|
|
7
|
+
/** Ids of the items the tray lists, across destinations. */
|
|
8
|
+
getItemIds: () => string[];
|
|
9
|
+
/** Ask the host to send a failed item again (calls `onRetry`). */
|
|
10
|
+
retry: (id: string) => void;
|
|
11
|
+
/** Activate an item (calls `onOpenItem`). */
|
|
12
|
+
openItem: (id: string) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const syncTrayAgent: AgentAdapter<SyncTrayAgentHandle>;
|
|
15
|
+
//# sourceMappingURL=sync-tray.agent.d.ts.map
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
export type SyncStatus = 'sent' | 'pending' | 'failed' | 'scheduled';
|
|
3
|
+
/** Where things are sent. The host passes only the destinations that are enabled for the practice. */
|
|
4
|
+
export interface SyncDestination {
|
|
5
|
+
id: string;
|
|
6
|
+
/** Already translated or a proper name, for example "Sistema TS". */
|
|
7
|
+
label: string;
|
|
8
|
+
/** One line under the label, for example what is sent there. */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** ISO instant of the last successful send. Omitted: "Nothing sent yet". */
|
|
11
|
+
lastSentAt?: string;
|
|
12
|
+
/** ISO date or instant the next send is due (a monthly deadline). */
|
|
13
|
+
nextDueAt?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface SyncItem {
|
|
16
|
+
id: string;
|
|
17
|
+
destinationId: string;
|
|
18
|
+
/** What was sent, in the host's words. Never a patient's name. */
|
|
19
|
+
title: string;
|
|
20
|
+
/** Optional second line, host text. */
|
|
21
|
+
detail?: string;
|
|
22
|
+
status: SyncStatus;
|
|
23
|
+
/** ISO instant it was sent, attempted, or is scheduled for. */
|
|
24
|
+
at?: string;
|
|
25
|
+
/** Host message shown on a failed item. */
|
|
26
|
+
error?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface SyncTrayHandle {
|
|
29
|
+
open: () => void;
|
|
30
|
+
close: () => void;
|
|
31
|
+
isOpen: () => boolean;
|
|
32
|
+
getFailedCount: () => number;
|
|
33
|
+
retry: (id: string) => void;
|
|
34
|
+
/** Activate an item, as a click would (calls `onOpenItem`). */
|
|
35
|
+
openItem: (id: string) => void;
|
|
36
|
+
}
|
|
37
|
+
export interface SyncTrayProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick' | 'children' | 'role' | 'id'> {
|
|
38
|
+
/** Stable instance id, surfaced as `data-component-id`. */
|
|
39
|
+
id?: string;
|
|
40
|
+
/** The enabled destinations, in display order. None: nothing renders. */
|
|
41
|
+
destinations: readonly SyncDestination[];
|
|
42
|
+
/** Any order; shown newest first within each destination. */
|
|
43
|
+
items: readonly SyncItem[];
|
|
44
|
+
/**
|
|
45
|
+
* `popover` (default): an icon button with a badge that opens the panel,
|
|
46
|
+
* like NotificationTray. `inline`: the panel alone, for a tool rail or a
|
|
47
|
+
* page, like TaskTray.
|
|
48
|
+
*/
|
|
49
|
+
variant?: 'popover' | 'inline';
|
|
50
|
+
/** Controlled open state (popover only). */
|
|
51
|
+
open?: boolean;
|
|
52
|
+
/** Initial open state when uncontrolled (popover only). */
|
|
53
|
+
defaultOpen?: boolean;
|
|
54
|
+
/** Fires when the open state changes (popover only). */
|
|
55
|
+
onOpenChange?: (open: boolean) => void;
|
|
56
|
+
/** Activating an item (click, Enter, Space). Omitted: rows are not interactive. */
|
|
57
|
+
onOpenItem?: (item: SyncItem) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Given: failed items show a "Try again" button. A returned promise shows
|
|
60
|
+
* the button's loading state until it settles.
|
|
61
|
+
*/
|
|
62
|
+
onRetry?: (item: SyncItem) => void | Promise<void>;
|
|
63
|
+
/** Given: a "View all" action per destination. */
|
|
64
|
+
onViewAll?: (destination: SyncDestination) => void;
|
|
65
|
+
/** At most this many items per destination, newest first. Default 5. */
|
|
66
|
+
maxItemsPerDestination?: number;
|
|
67
|
+
/** Show skeleton rows and announce that the status is loading. */
|
|
68
|
+
loading?: boolean;
|
|
69
|
+
/** Panel heading. Default `syncTray.title`. */
|
|
70
|
+
title?: string;
|
|
71
|
+
/** Heading level of the panel title. Destination labels sit one level below. Default 2. */
|
|
72
|
+
headingLevel?: 2 | 3 | 4;
|
|
73
|
+
}
|
|
74
|
+
declare const syncTrayVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
75
|
+
export declare const SyncTray: import("react").ForwardRefExoticComponent<SyncTrayProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
76
|
+
export { syncTrayVariants };
|
|
77
|
+
//# sourceMappingURL=sync-tray.d.ts.map
|