@alfadocs/ui-kit 1.139.0 → 1.141.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/{anamnesis-summary-rows-BgfBnjp0.js → anamnesis-summary-rows-YJGs2uWD.js} +2 -2
- package/dist/_chunks/{appointment-card-CaxFXtSn.js → appointment-card-r0OZm77v.js} +170 -168
- package/dist/_chunks/appointment-timeline-Bs-rTMzi.js +689 -0
- package/dist/_chunks/{appointment-tray-DPpeR9JT.js → appointment-tray-t_ltp-Yi.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-CRrIv2hy.js → balance-badge-cell-CRStPNDd.js} +2 -2
- package/dist/_chunks/{bill-line-table-DCqxhode.js → bill-line-table-DTqXdBED.js} +2 -2
- package/dist/_chunks/{bmi-calculator-rri5vvMt.js → bmi-calculator-rq3ZsKp0.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-GdnaPIOV.js → calendar-appointment-editor-dialog-CuXpgLCw.js} +5 -5
- package/dist/_chunks/{calendar-waiting-list-panel-CkZBAv_E.js → calendar-waiting-list-panel-BNQrUndD.js} +2 -2
- package/dist/_chunks/{calendar.sheets-B0jP2Yt0.js → calendar.sheets-DcW8A3DI.js} +3 -3
- package/dist/_chunks/calls-panel-CJNQm7r8.js +1446 -0
- package/dist/_chunks/{cycle-calculator-WFhMfJHt.js → cycle-calculator-Cb66X2Pf.js} +2 -2
- package/dist/_chunks/{data-grid-bQ6iFm10.js → data-grid-CRUSZcVT.js} +2 -2
- package/dist/_chunks/{default-tabs-Dm_vk6hd.js → default-tabs-CRbVCDSU.js} +3 -3
- package/dist/_chunks/{due-date-calculator-CALlODZe.js → due-date-calculator-Dlqegxx9.js} +2 -2
- package/dist/_chunks/{fetal-weight-D0KofJJw.js → fetal-weight-DWj-_ME8.js} +2 -2
- package/dist/_chunks/{hcg-doubling-Dhdt3Jyd.js → hcg-doubling-Dqbj6PQj.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-Dz3CXHPP.js → invoice-upload-list-BR6vycF7.js} +3 -3
- package/dist/_chunks/{kit-extensions-BB_ksnVl.js → kit-extensions-QddOSnIq.js} +6 -6
- package/dist/_chunks/{link-cell-renderer-CSA0KKPe.js → link-cell-renderer-hAJplRFF.js} +2 -2
- package/dist/_chunks/medication-line-BohqbCYD.js +238 -0
- package/dist/_chunks/{notes-panel-CnmQqhwq.js → notes-panel-C4HSUudf.js} +2 -2
- package/dist/_chunks/{number-input-DUSvP7Dq.js → number-input-Bi5Yk6PX.js} +135 -133
- package/dist/_chunks/{optical-prescription-C4jpDFOE.js → optical-prescription-GzeK_2cf.js} +2 -2
- package/dist/_chunks/{patient-account-settings-DfEPHmCh.js → patient-account-settings-nSvNKKOL.js} +2 -2
- package/dist/_chunks/{patient-check-in-resume-TWs8CPQr.js → patient-check-in-resume-Cj2wg_NQ.js} +4 -4
- package/dist/_chunks/{patient-details-DQTxSWY4.js → patient-details-D0PjzALT.js} +2 -2
- package/dist/_chunks/{patient-field-row-CXuWQeQJ.js → patient-field-row-DlpIModg.js} +2 -2
- package/dist/_chunks/{patient-summary-card-j5u7c5Us.js → patient-summary-card-BP_K7g_q.js} +2 -2
- package/dist/_chunks/{portal-details-VfeOI4PB.js → portal-details-Cnyqf9kY.js} +2 -2
- package/dist/_chunks/{portal-documents-hGHlwmbv.js → portal-documents-g109Dl0O.js} +2 -2
- package/dist/_chunks/{portal-parts-C99CreYO.js → portal-parts-DgDFuED8.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-C-3NLI6K.js → pregnancy-dating-a6WIg4oy.js} +2 -2
- package/dist/_chunks/{pregnancy-weight-gain-DkGcEc_l.js → pregnancy-weight-gain-DmrVHk9y.js} +2 -2
- package/dist/_chunks/prescription-history-Bp_JHhdF.js +1719 -0
- package/dist/_chunks/{print-sheet-CSeqkM3_.js → print-sheet-gaxObGcm.js} +110 -100
- package/dist/_chunks/{rich-text-editor-DFsH5RAj.js → rich-text-editor-orJ-hPgm.js} +1323 -1308
- package/dist/_chunks/{toolbar-Dz_hAUIZ.js → toolbar-B7UHCMSr.js} +2 -2
- package/dist/_chunks/{unit-converter-CBy7S4Tl.js → unit-converter-OBhSDXee.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-CBSpX4DI.js → use-appointment-details-read-DeQnmmZw.js} +2 -2
- package/dist/agent-catalog.json +141 -16
- package/dist/agent-i18n/en.json +11 -5
- package/dist/appointment-editor-panel/index.js +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +4 -0
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +51 -0
- package/dist/components/appointment-timeline/index.d.ts +1 -1
- package/dist/components/appointment-timeline/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/bmi-calculator/index.js +1 -1
- package/dist/components/calls-panel/calls-panel.d.ts +91 -0
- package/dist/components/calls-panel/index.d.ts +1 -1
- package/dist/components/calls-panel/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/medication-line/index.js +1 -1
- package/dist/components/medication-line/medication-line.d.ts +6 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/number-input/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-summary-card/index.js +1 -1
- package/dist/components/patient-table/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/print-sheet/index.js +1 -1
- package/dist/components/print-sheet/print-sheet.d.ts +7 -0
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/unit-converter/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 +18 -1
- package/dist/i18n/locales/ar.d.ts +72 -10
- package/dist/i18n/locales/ar.js +76 -17
- package/dist/i18n/locales/de.d.ts +72 -10
- package/dist/i18n/locales/de.js +76 -17
- package/dist/i18n/locales/el.d.ts +72 -10
- package/dist/i18n/locales/el.js +79 -17
- package/dist/i18n/locales/en.d.ts +64 -10
- package/dist/i18n/locales/en.js +71 -17
- package/dist/i18n/locales/es.d.ts +72 -10
- package/dist/i18n/locales/es.js +76 -17
- package/dist/i18n/locales/fr.d.ts +72 -10
- package/dist/i18n/locales/fr.js +76 -17
- package/dist/i18n/locales/hi.d.ts +72 -10
- package/dist/i18n/locales/hi.js +79 -17
- package/dist/i18n/locales/it.d.ts +72 -10
- package/dist/i18n/locales/it.js +76 -17
- package/dist/i18n/locales/ja.d.ts +72 -10
- package/dist/i18n/locales/ja.js +79 -17
- package/dist/i18n/locales/nl.d.ts +72 -10
- package/dist/i18n/locales/nl.js +76 -17
- package/dist/i18n/locales/pl.d.ts +72 -10
- package/dist/i18n/locales/pl.js +79 -17
- package/dist/i18n/locales/pt.d.ts +72 -10
- package/dist/i18n/locales/pt.js +76 -17
- package/dist/i18n/locales/ro.d.ts +72 -10
- package/dist/i18n/locales/ro.js +76 -17
- package/dist/i18n/locales/ru.d.ts +72 -10
- package/dist/i18n/locales/ru.js +76 -17
- package/dist/i18n/locales/sq.d.ts +72 -10
- package/dist/i18n/locales/sq.js +79 -17
- package/dist/i18n/locales/sv.d.ts +72 -10
- package/dist/i18n/locales/sv.js +76 -17
- package/dist/i18n/locales/tr.d.ts +72 -10
- package/dist/i18n/locales/tr.js +76 -17
- package/dist/i18n/locales/zh.d.ts +72 -10
- package/dist/i18n/locales/zh.js +76 -17
- package/dist/index.js +37 -37
- package/dist/locales/ar.json +79 -17
- package/dist/locales/de.json +79 -17
- package/dist/locales/el.json +79 -17
- package/dist/locales/en.json +71 -17
- package/dist/locales/es.json +79 -17
- package/dist/locales/fr.json +79 -17
- package/dist/locales/hi.json +79 -17
- package/dist/locales/it.json +79 -17
- package/dist/locales/ja.json +79 -17
- package/dist/locales/nl.json +79 -17
- package/dist/locales/pl.json +79 -17
- package/dist/locales/pt.json +79 -17
- package/dist/locales/ro.json +79 -17
- package/dist/locales/ru.json +79 -17
- package/dist/locales/sq.json +79 -17
- package/dist/locales/sv.json +79 -17
- package/dist/locales/tr.json +79 -17
- package/dist/locales/zh.json +79 -17
- package/dist/online-bookings-panel/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +2 -2
- 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 +1 -1
- package/dist/patterns/prescription/index.js +1 -1
- package/dist/patterns/prescription/prescription-composer-item.d.ts +8 -1
- package/dist/patterns/prescription/prescription-composer.d.ts +14 -9
- package/dist/patterns/prescription/prescription-sheet.d.ts +23 -4
- package/dist/patterns/prescription/prescription-types.d.ts +35 -10
- package/dist/patterns/prescription/prescription-validation.d.ts +17 -11
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +2 -2
- package/package.json +1 -1
- package/dist/_chunks/appointment-timeline-BEwgbYyG.js +0 -455
- package/dist/_chunks/calls-panel-CtxJAzkJ.js +0 -1094
- package/dist/_chunks/medication-line-CHdlh-F7.js +0 -222
- package/dist/_chunks/prescription-history-748qDVwZ.js +0 -1544
|
@@ -1,35 +1,41 @@
|
|
|
1
|
-
import type { PrescriptionDraft, PrescriptionItem,
|
|
2
|
-
/** Why a field was refused. `invalid` is a
|
|
3
|
-
*
|
|
1
|
+
import type { PrescriptionDraft, PrescriptionItem, PrescriptionTreatmentOption } from './prescription-types';
|
|
2
|
+
/** Why a field was refused. `invalid` is a treatment that is not one of the
|
|
3
|
+
* patient's treatments. */
|
|
4
4
|
export type PrescriptionFieldError = 'required' | 'invalid';
|
|
5
5
|
export interface PrescriptionItemErrors {
|
|
6
6
|
medicationId?: 'required';
|
|
7
7
|
dosage?: 'required';
|
|
8
|
+
/** `required`: empty or not a number. `invalid`: below 1 or not whole. */
|
|
9
|
+
quantity?: PrescriptionFieldError;
|
|
8
10
|
}
|
|
9
11
|
export interface PrescriptionDraftErrors {
|
|
10
12
|
patientId?: 'required';
|
|
11
13
|
prescriberId?: 'required';
|
|
12
|
-
|
|
14
|
+
treatmentId?: PrescriptionFieldError;
|
|
13
15
|
/** No line names a medication. */
|
|
14
16
|
items?: 'required';
|
|
15
17
|
/** One entry per draft line, in order; `undefined` for a valid line. */
|
|
16
18
|
itemErrors?: (PrescriptionItemErrors | undefined)[];
|
|
17
19
|
}
|
|
18
20
|
export interface PrescriptionValidationOptions {
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
/** The chosen patient's treatments. When given, a treatment that is not in
|
|
22
|
+
* the list is `invalid`. */
|
|
23
|
+
treatmentOptions?: readonly PrescriptionTreatmentOption[];
|
|
24
|
+
/**
|
|
25
|
+
* The patient `treatmentOptions` belongs to. While the host reloads the list
|
|
26
|
+
* after a patient change, the list is still the previous patient's: when this
|
|
27
|
+
* differs from the draft's `patientId`, a non-empty treatment is `invalid`.
|
|
28
|
+
*/
|
|
29
|
+
treatmentOptionsPatientId?: string;
|
|
24
30
|
}
|
|
25
31
|
/** True for a line the user has not touched: nothing to validate or save. */
|
|
26
32
|
export declare function isBlankPrescriptionItem(item: PrescriptionItem): boolean;
|
|
27
33
|
/**
|
|
28
34
|
* Checks a draft. Returns an empty object when it can be saved.
|
|
29
35
|
*
|
|
30
|
-
* Rules: a patient, a prescriber, a
|
|
36
|
+
* Rules: a patient, a prescriber, a treatment of the patient and
|
|
31
37
|
* at least one medication line. Every line that is not blank needs a
|
|
32
|
-
* medication and a
|
|
38
|
+
* medication, a dosage and a whole number of packs of 1 or more. Blank lines are ignored, except that a draft of
|
|
33
39
|
* only blank lines has no medication at all, and its first line is marked.
|
|
34
40
|
*/
|
|
35
41
|
export declare function validatePrescriptionDraft(draft: PrescriptionDraft, options?: PrescriptionValidationOptions): PrescriptionDraftErrors;
|