@alfadocs/ui-kit 1.146.0 → 1.147.1
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/{prescription-history-CYCg6nxp.js → prescription-history-CFs3JMIE.js} +718 -717
- package/dist/_chunks/registry-connection-panel-ACOsXu3F.js +529 -0
- package/dist/agent-catalog.json +4 -4
- package/dist/agent-i18n/en.json +2 -2
- package/dist/browser-support.js +1 -1
- package/dist/components/registry-connection-panel/index.js +1 -1
- package/dist/components/registry-connection-panel/registry-connection-panel.d.ts +14 -0
- package/dist/i18n/locales/ar.d.ts +1 -0
- package/dist/i18n/locales/ar.js +1 -0
- package/dist/i18n/locales/de.d.ts +1 -0
- package/dist/i18n/locales/de.js +1 -0
- package/dist/i18n/locales/el.d.ts +1 -0
- package/dist/i18n/locales/el.js +1 -0
- package/dist/i18n/locales/en.d.ts +1 -0
- package/dist/i18n/locales/en.js +1 -0
- package/dist/i18n/locales/es.d.ts +1 -0
- package/dist/i18n/locales/es.js +1 -0
- package/dist/i18n/locales/fr.d.ts +1 -0
- package/dist/i18n/locales/fr.js +1 -0
- package/dist/i18n/locales/hi.d.ts +1 -0
- package/dist/i18n/locales/hi.js +1 -0
- package/dist/i18n/locales/it.d.ts +1 -0
- package/dist/i18n/locales/it.js +1 -0
- package/dist/i18n/locales/ja.d.ts +1 -0
- package/dist/i18n/locales/ja.js +1 -0
- package/dist/i18n/locales/nl.d.ts +1 -0
- package/dist/i18n/locales/nl.js +1 -0
- package/dist/i18n/locales/pl.d.ts +1 -0
- package/dist/i18n/locales/pl.js +1 -0
- package/dist/i18n/locales/pt.d.ts +1 -0
- package/dist/i18n/locales/pt.js +1 -0
- package/dist/i18n/locales/ro.d.ts +1 -0
- package/dist/i18n/locales/ro.js +1 -0
- package/dist/i18n/locales/ru.d.ts +1 -0
- package/dist/i18n/locales/ru.js +1 -0
- package/dist/i18n/locales/sq.d.ts +1 -0
- package/dist/i18n/locales/sq.js +1 -0
- package/dist/i18n/locales/sv.d.ts +1 -0
- package/dist/i18n/locales/sv.js +1 -0
- package/dist/i18n/locales/tr.d.ts +1 -0
- package/dist/i18n/locales/tr.js +1 -0
- package/dist/i18n/locales/zh.d.ts +1 -0
- package/dist/i18n/locales/zh.js +1 -0
- package/dist/index.js +2 -2
- package/dist/locales/ar.json +1 -0
- package/dist/locales/de.json +1 -0
- package/dist/locales/el.json +1 -0
- package/dist/locales/en.json +1 -0
- package/dist/locales/es.json +1 -0
- package/dist/locales/fr.json +1 -0
- package/dist/locales/hi.json +1 -0
- package/dist/locales/it.json +1 -0
- package/dist/locales/ja.json +1 -0
- package/dist/locales/nl.json +1 -0
- package/dist/locales/pl.json +1 -0
- package/dist/locales/pt.json +1 -0
- package/dist/locales/ro.json +1 -0
- package/dist/locales/ru.json +1 -0
- package/dist/locales/sq.json +1 -0
- package/dist/locales/sv.json +1 -0
- package/dist/locales/tr.json +1 -0
- package/dist/locales/zh.json +1 -0
- package/dist/patterns/prescription/index.js +1 -1
- package/dist/patterns/prescription/prescription-composer.d.ts +2 -0
- package/package.json +1 -1
- package/dist/_chunks/registry-connection-panel-BEAkwivy.js +0 -503
|
@@ -38,11 +38,24 @@ export interface RegistryConnectionPanelProps {
|
|
|
38
38
|
values: Readonly<Record<string, string>>;
|
|
39
39
|
/** Host messages per field name, shown under the field. */
|
|
40
40
|
fieldErrors?: Readonly<Record<string, string>>;
|
|
41
|
+
/**
|
|
42
|
+
* May return a promise. A fulfilled promise means it worked: the panel
|
|
43
|
+
* empties the secret fields it sent. A rejected promise means the registry
|
|
44
|
+
* or the host's server refused: the panel keeps what the user typed and
|
|
45
|
+
* stays where it is. The host shows the reason through `error` and
|
|
46
|
+
* `fieldErrors`. A handler that returns nothing counts as done.
|
|
47
|
+
* A host message under a field is hidden once the user edits that field.
|
|
48
|
+
*/
|
|
41
49
|
onSaveSettings: (values: Record<string, string>) => void | Promise<void>;
|
|
42
50
|
/** Host text above the code field. */
|
|
43
51
|
codeExplanation?: string;
|
|
44
52
|
/** Absent: the connect view has no "Send me the code" button. */
|
|
45
53
|
onRequestCode?: () => void | Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Same contract as `onSaveSettings`. A fulfilled promise while `status` is
|
|
56
|
+
* `'connected'` closes the code step. A rejected one keeps the step and the
|
|
57
|
+
* code.
|
|
58
|
+
*/
|
|
46
59
|
onConnect: (code: string) => void | Promise<void>;
|
|
47
60
|
/** Controlled view. Use with `onViewChange`. */
|
|
48
61
|
view?: RegistryConnectionView;
|
|
@@ -57,6 +70,7 @@ export interface RegistryConnectionPanelProps {
|
|
|
57
70
|
export interface RegistryConnectionPanelHandle {
|
|
58
71
|
getStatus(): RegistryConnectionStatus;
|
|
59
72
|
getView(): RegistryConnectionView;
|
|
73
|
+
/** Ignores `'connect'` while the status is `'incomplete'`, as the UI does. */
|
|
60
74
|
setView(view: RegistryConnectionView): void;
|
|
61
75
|
/** Checks the required fields, then calls `onSaveSettings` with what the panel holds. */
|
|
62
76
|
saveSettings(): Promise<void>;
|
|
@@ -7652,6 +7652,7 @@ export declare const arUi: {
|
|
|
7652
7652
|
};
|
|
7653
7653
|
readonly composer: {
|
|
7654
7654
|
readonly title: "وصفة طبية جديدة";
|
|
7655
|
+
readonly editTitle: "تعديل الوصفة الطبية";
|
|
7655
7656
|
readonly patient: "المريض";
|
|
7656
7657
|
readonly patientPlaceholder: "ابحث بالاسم الأول أو اسم العائلة";
|
|
7657
7658
|
readonly choosePatientTitle: "اختر مريضاً";
|
package/dist/i18n/locales/ar.js
CHANGED
|
@@ -7613,6 +7613,7 @@ export declare const deUi: {
|
|
|
7613
7613
|
};
|
|
7614
7614
|
readonly composer: {
|
|
7615
7615
|
readonly title: "Neues Rezept";
|
|
7616
|
+
readonly editTitle: "Rezept bearbeiten";
|
|
7616
7617
|
readonly patient: "Patient";
|
|
7617
7618
|
readonly patientPlaceholder: "Nach Vor- oder Nachname suchen";
|
|
7618
7619
|
readonly choosePatientTitle: "Patient auswählen";
|
package/dist/i18n/locales/de.js
CHANGED
|
@@ -7610,6 +7610,7 @@ export declare const elUi: {
|
|
|
7610
7610
|
};
|
|
7611
7611
|
readonly composer: {
|
|
7612
7612
|
readonly title: "Νέα συνταγή";
|
|
7613
|
+
readonly editTitle: "Επεξεργασία συνταγής";
|
|
7613
7614
|
readonly patient: "Ασθενής";
|
|
7614
7615
|
readonly patientPlaceholder: "Αναζήτηση με όνομα ή επώνυμο";
|
|
7615
7616
|
readonly choosePatientTitle: "Επιλέξτε ασθενή";
|
package/dist/i18n/locales/el.js
CHANGED
|
@@ -7615,6 +7615,7 @@ export declare const enUi: {
|
|
|
7615
7615
|
};
|
|
7616
7616
|
readonly composer: {
|
|
7617
7617
|
readonly title: "New prescription";
|
|
7618
|
+
readonly editTitle: "Edit prescription";
|
|
7618
7619
|
readonly patient: "Patient";
|
|
7619
7620
|
readonly patientPlaceholder: "Search by first or last name";
|
|
7620
7621
|
readonly choosePatientTitle: "Choose a patient";
|
package/dist/i18n/locales/en.js
CHANGED
|
@@ -7613,6 +7613,7 @@ export declare const esUi: {
|
|
|
7613
7613
|
};
|
|
7614
7614
|
readonly composer: {
|
|
7615
7615
|
readonly title: "Nueva receta";
|
|
7616
|
+
readonly editTitle: "Editar receta";
|
|
7616
7617
|
readonly patient: "Paciente";
|
|
7617
7618
|
readonly patientPlaceholder: "Buscar por nombre o apellidos";
|
|
7618
7619
|
readonly choosePatientTitle: "Elija un paciente";
|
package/dist/i18n/locales/es.js
CHANGED
|
@@ -7613,6 +7613,7 @@ export declare const frUi: {
|
|
|
7613
7613
|
};
|
|
7614
7614
|
readonly composer: {
|
|
7615
7615
|
readonly title: "Nouvelle ordonnance";
|
|
7616
|
+
readonly editTitle: "Modifier l’ordonnance";
|
|
7616
7617
|
readonly patient: "Patient";
|
|
7617
7618
|
readonly patientPlaceholder: "Rechercher par prénom ou nom";
|
|
7618
7619
|
readonly choosePatientTitle: "Choisir un patient";
|
package/dist/i18n/locales/fr.js
CHANGED
|
@@ -7610,6 +7610,7 @@ export declare const hiUi: {
|
|
|
7610
7610
|
};
|
|
7611
7611
|
readonly composer: {
|
|
7612
7612
|
readonly title: "नया नुस्खा";
|
|
7613
|
+
readonly editTitle: "नुस्खा संपादित करें";
|
|
7613
7614
|
readonly patient: "रोगी";
|
|
7614
7615
|
readonly patientPlaceholder: "पहले नाम या उपनाम से खोजें";
|
|
7615
7616
|
readonly choosePatientTitle: "रोगी चुनें";
|
package/dist/i18n/locales/hi.js
CHANGED
|
@@ -7610,6 +7610,7 @@ export declare const itUi: {
|
|
|
7610
7610
|
};
|
|
7611
7611
|
readonly composer: {
|
|
7612
7612
|
readonly title: "Nuova prescrizione";
|
|
7613
|
+
readonly editTitle: "Modifica prescrizione";
|
|
7613
7614
|
readonly patient: "Paziente";
|
|
7614
7615
|
readonly patientPlaceholder: "Cerca per nome o cognome";
|
|
7615
7616
|
readonly choosePatientTitle: "Scegli un paziente";
|
package/dist/i18n/locales/it.js
CHANGED
|
@@ -7610,6 +7610,7 @@ export declare const jaUi: {
|
|
|
7610
7610
|
};
|
|
7611
7611
|
readonly composer: {
|
|
7612
7612
|
readonly title: "新規処方箋";
|
|
7613
|
+
readonly editTitle: "処方箋を編集";
|
|
7613
7614
|
readonly patient: "患者";
|
|
7614
7615
|
readonly patientPlaceholder: "姓または名で検索";
|
|
7615
7616
|
readonly choosePatientTitle: "患者を選択してください";
|
package/dist/i18n/locales/ja.js
CHANGED
|
@@ -7610,6 +7610,7 @@ export declare const nlUi: {
|
|
|
7610
7610
|
};
|
|
7611
7611
|
readonly composer: {
|
|
7612
7612
|
readonly title: "Nieuw recept";
|
|
7613
|
+
readonly editTitle: "Recept bewerken";
|
|
7613
7614
|
readonly patient: "Patiënt";
|
|
7614
7615
|
readonly patientPlaceholder: "Zoek op voor- of achternaam";
|
|
7615
7616
|
readonly choosePatientTitle: "Kies een patiënt";
|
package/dist/i18n/locales/nl.js
CHANGED
|
@@ -7625,6 +7625,7 @@ export declare const plUi: {
|
|
|
7625
7625
|
};
|
|
7626
7626
|
readonly composer: {
|
|
7627
7627
|
readonly title: "Nowa recepta";
|
|
7628
|
+
readonly editTitle: "Edytuj receptę";
|
|
7628
7629
|
readonly patient: "Pacjent";
|
|
7629
7630
|
readonly patientPlaceholder: "Szukaj według imienia lub nazwiska";
|
|
7630
7631
|
readonly choosePatientTitle: "Wybierz pacjenta";
|
package/dist/i18n/locales/pl.js
CHANGED
|
@@ -7617,6 +7617,7 @@ export declare const ptUi: {
|
|
|
7617
7617
|
};
|
|
7618
7618
|
readonly composer: {
|
|
7619
7619
|
readonly title: "Nova receita";
|
|
7620
|
+
readonly editTitle: "Editar receita";
|
|
7620
7621
|
readonly patient: "Paciente";
|
|
7621
7622
|
readonly patientPlaceholder: "Pesquisar por nome próprio ou apelido";
|
|
7622
7623
|
readonly choosePatientTitle: "Escolha um paciente";
|
package/dist/i18n/locales/pt.js
CHANGED
|
@@ -7622,6 +7622,7 @@ export declare const roUi: {
|
|
|
7622
7622
|
};
|
|
7623
7623
|
readonly composer: {
|
|
7624
7624
|
readonly title: "Rețetă nouă";
|
|
7625
|
+
readonly editTitle: "Editează rețeta";
|
|
7625
7626
|
readonly patient: "Pacient";
|
|
7626
7627
|
readonly patientPlaceholder: "Caută după prenume sau nume";
|
|
7627
7628
|
readonly choosePatientTitle: "Alegeți un pacient";
|
package/dist/i18n/locales/ro.js
CHANGED
|
@@ -7625,6 +7625,7 @@ export declare const ruUi: {
|
|
|
7625
7625
|
};
|
|
7626
7626
|
readonly composer: {
|
|
7627
7627
|
readonly title: "Новый рецепт";
|
|
7628
|
+
readonly editTitle: "Изменить рецепт";
|
|
7628
7629
|
readonly patient: "Пациент";
|
|
7629
7630
|
readonly patientPlaceholder: "Поиск по имени или фамилии";
|
|
7630
7631
|
readonly choosePatientTitle: "Выберите пациента";
|
package/dist/i18n/locales/ru.js
CHANGED
|
@@ -7610,6 +7610,7 @@ export declare const sqUi: {
|
|
|
7610
7610
|
};
|
|
7611
7611
|
readonly composer: {
|
|
7612
7612
|
readonly title: "Recetë e re";
|
|
7613
|
+
readonly editTitle: "Modifiko recetën";
|
|
7613
7614
|
readonly patient: "Pacienti";
|
|
7614
7615
|
readonly patientPlaceholder: "Kërko sipas emrit ose mbiemrit";
|
|
7615
7616
|
readonly choosePatientTitle: "Zgjidhni një pacient";
|
package/dist/i18n/locales/sq.js
CHANGED
|
@@ -7610,6 +7610,7 @@ export declare const svUi: {
|
|
|
7610
7610
|
};
|
|
7611
7611
|
readonly composer: {
|
|
7612
7612
|
readonly title: "Nytt recept";
|
|
7613
|
+
readonly editTitle: "Redigera recept";
|
|
7613
7614
|
readonly patient: "Patient";
|
|
7614
7615
|
readonly patientPlaceholder: "Sök på förnamn eller efternamn";
|
|
7615
7616
|
readonly choosePatientTitle: "Välj en patient";
|
package/dist/i18n/locales/sv.js
CHANGED
|
@@ -7610,6 +7610,7 @@ export declare const trUi: {
|
|
|
7610
7610
|
};
|
|
7611
7611
|
readonly composer: {
|
|
7612
7612
|
readonly title: "Yeni reçete";
|
|
7613
|
+
readonly editTitle: "Reçeteyi düzenle";
|
|
7613
7614
|
readonly patient: "Hasta";
|
|
7614
7615
|
readonly patientPlaceholder: "Ada veya soyada göre ara";
|
|
7615
7616
|
readonly choosePatientTitle: "Hasta seçin";
|
package/dist/i18n/locales/tr.js
CHANGED
package/dist/i18n/locales/zh.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -194,7 +194,7 @@ import { n as Yd } from "./_chunks/notification-card.agent-DxGBZb8T.js";
|
|
|
194
194
|
import { N as qd, n as jd } from "./_chunks/notification-tray-BnC5OItw.js";
|
|
195
195
|
import { N as zd, n as Zd } from "./_chunks/notice-group-B-trhof8.js";
|
|
196
196
|
import { N as $d } from "./_chunks/notes-panel-C9aB1Cma.js";
|
|
197
|
-
import { R as eS } from "./_chunks/registry-connection-panel-
|
|
197
|
+
import { R as eS } from "./_chunks/registry-connection-panel-ACOsXu3F.js";
|
|
198
198
|
import { C as rS, c as oS, s as tS } from "./_chunks/communications-panel-DDzUyoHi.js";
|
|
199
199
|
import { C as iS } from "./_chunks/call-status-chip-pajxN5eZ.js";
|
|
200
200
|
import { C as mS, c as lS } from "./_chunks/calls-panel-BTTfHnPD.js";
|
|
@@ -315,7 +315,7 @@ import { P as m_, a as l_, b as A_ } from "./_chunks/portal-details-CKF4yFHs.js"
|
|
|
315
315
|
import { P as S_, a as c_, b as f_, c as g_, d as T_ } from "./_chunks/patient-sign-in-pin-da7C8DOd.js";
|
|
316
316
|
import { P as I_, a as x_, b as P_, c as E_, d as u_ } from "./_chunks/patient-sign-in-steps-kS2ktytw.js";
|
|
317
317
|
import { P as R_ } from "./_chunks/payment-automation-upsell-N1A_IIw0.js";
|
|
318
|
-
import { E as D_, P as N_, a as b_, b as O_, c as h_, i as F_, d as M_, n as y_, v as B_ } from "./_chunks/prescription-history-
|
|
318
|
+
import { E as D_, P as N_, a as b_, b as O_, c as h_, i as F_, d as M_, n as y_, v as B_ } from "./_chunks/prescription-history-CFs3JMIE.js";
|
|
319
319
|
import { R as G_, a as v_ } from "./_chunks/registration-form-AtRCt8n5.js";
|
|
320
320
|
import { R as H_, a as W_ } from "./_chunks/reset-password-form-AMUxqdAS.js";
|
|
321
321
|
import { S as w_, a as K_ } from "./_chunks/send-registration-link-form-D1lPdOPC.js";
|
package/dist/locales/ar.json
CHANGED
package/dist/locales/de.json
CHANGED
package/dist/locales/el.json
CHANGED
package/dist/locales/en.json
CHANGED
package/dist/locales/es.json
CHANGED
package/dist/locales/fr.json
CHANGED
package/dist/locales/hi.json
CHANGED
package/dist/locales/it.json
CHANGED
package/dist/locales/ja.json
CHANGED
package/dist/locales/nl.json
CHANGED
package/dist/locales/pl.json
CHANGED
package/dist/locales/pt.json
CHANGED
package/dist/locales/ro.json
CHANGED
package/dist/locales/ru.json
CHANGED
package/dist/locales/sq.json
CHANGED
package/dist/locales/sv.json
CHANGED
package/dist/locales/tr.json
CHANGED
package/dist/locales/zh.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as s, P as a, a as t, b as e, c as o, i as P, d as n, n as p, v as c } from "../../_chunks/prescription-history-
|
|
1
|
+
import { E as s, P as a, a as t, b as e, c as o, i as P, d as n, n as p, v as c } from "../../_chunks/prescription-history-CFs3JMIE.js";
|
|
2
2
|
export {
|
|
3
3
|
s as EMPTY_PRESCRIPTION_ITEM,
|
|
4
4
|
a as PrescriptionComposer,
|
|
@@ -64,6 +64,8 @@ export interface PrescriptionComposerProps extends Omit<HTMLAttributes<HTMLDivEl
|
|
|
64
64
|
* normal picker shows. Default false.
|
|
65
65
|
*/
|
|
66
66
|
lockPatient?: boolean;
|
|
67
|
+
/** The form edits a saved prescription, for example one the registry refused. The heading reads "Edit prescription" instead of "New prescription". Nothing else changes: the submit label is still `submitLabel`. Default `false`. */
|
|
68
|
+
editing?: boolean;
|
|
67
69
|
/** Text of the submit button, already translated. Default "Save prescription". A host that sends on save passes, say, "Send to Sistema TS". */
|
|
68
70
|
submitLabel?: string;
|
|
69
71
|
id?: string;
|
package/package.json
CHANGED