@alfadocs/ui-kit 1.135.0 → 1.137.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/{ai-prompt-input-JIPbrTF3.js → ai-prompt-input-CVNeusoW.js} +2 -2
- package/dist/_chunks/ai-summary-panel-BhCo2vZF.js +1045 -0
- package/dist/_chunks/{alia-sidebar-CtwhdASP.js → alia-sidebar-CVBlKur9.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-rows-CCNmkq55.js → anamnesis-summary-rows-Dr2V1Rtf.js} +3 -3
- package/dist/_chunks/appointment-details-panel.history-DrIMDQYf.js +314 -0
- package/dist/_chunks/appointment-details-panel.identity-C20Y9xNC.js +223 -0
- package/dist/_chunks/{audio-recorder-CsnM_WDy.js → audio-recorder-BOF5YYoC.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DTiMdnCZ.js → balance-badge-cell-BSB02Bwo.js} +4 -4
- package/dist/_chunks/{bill-line-table-DHKb_O7c.js → bill-line-table-By-YL2ms.js} +2 -2
- package/dist/_chunks/{bishop-score-CKztphVz.js → bishop-score-DWGESRP9.js} +2 -2
- package/dist/_chunks/calendar-appointment-editor-dialog-D0n_bVsT.js +5518 -0
- package/dist/_chunks/calendar-editor-discard-host-1UfmMOEb.js +1336 -0
- package/dist/_chunks/calendar-editor-guard-9fShhNIA.js +31 -0
- package/dist/_chunks/calendar-waiting-list-panel-Ckd6tSeu.js +981 -0
- package/dist/_chunks/calendar-workspace.model-DrOoxY1b.js +1557 -0
- package/dist/_chunks/calendar.sheets-Datc0-IT.js +4585 -0
- package/dist/_chunks/call-status-chip-pajxN5eZ.js +180 -0
- package/dist/_chunks/calls-panel-BIfatK90.js +1094 -0
- package/dist/_chunks/{chat-input-CX4dxBq7.js → chat-input-BmvnuZqj.js} +114 -109
- package/dist/_chunks/{chat-message-CfIyXrxA.js → chat-message-B4TMeZ2m.js} +35 -30
- package/dist/_chunks/circle-x-W8Enq3i4.js +16 -0
- package/dist/_chunks/color-picker-CC8ZfntU.js +582 -0
- package/dist/_chunks/communications-panel-SQ-55e3V.js +1079 -0
- package/dist/_chunks/{data-grid-B2oaI7Lt.js → data-grid-CxKz8flO.js} +2 -2
- package/dist/_chunks/{data-table-FTV3uRjX.js → data-table-_tgj0C_T.js} +2 -2
- package/dist/_chunks/{default-tabs-DbebYO04.js → default-tabs-oDWQzbN7.js} +3 -3
- package/dist/_chunks/{document-preview-DLVIrOYV.js → document-preview-CirR3C_m.js} +3 -3
- package/dist/_chunks/entity-summary-CPUHzyil.js +297 -0
- package/dist/_chunks/{file-manager-Bzr5NK1t.js → file-manager-CEi4z2i0.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-BBvU7sAo.js → fiscal-code-input-DZlpaMGg.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-mB6brTlp.js → gestational-age-calculator-CHbpC4vL.js} +2 -2
- package/dist/_chunks/{heatmap-C5gJin_F.js → heatmap-_546qI2V.js} +2 -2
- package/dist/_chunks/{iban-input-DuTwKok5.js → iban-input-CdSLRzQN.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-B5aMffTy.js → invoice-upload-list-CQI9MUl6.js} +3 -3
- package/dist/_chunks/{kit-extensions-DUaIYyMD.js → kit-extensions-BNBf4m8O.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-D3JLPURZ.js → link-cell-renderer-Xx5T8u5Q.js} +3 -3
- package/dist/_chunks/list-todo-KWvUhmT_.js +33 -0
- package/dist/_chunks/{muscle-scheme-BGJD62op.js → muscle-scheme-D_rSyGDj.js} +2 -2
- package/dist/_chunks/{notes-panel-BvjAo4RQ.js → notes-panel-DsEKNtsw.js} +2 -2
- package/dist/_chunks/{optical-prescription-Da_r8pMr.js → optical-prescription-DaSbsh4p.js} +2 -2
- package/dist/_chunks/palettes-CKVXYTzo.js +172 -0
- package/dist/_chunks/{patient-account-settings-B2XbN_Fe.js → patient-account-settings-COybehKx.js} +3 -3
- package/dist/_chunks/{patient-card-DTh3QTyS.js → patient-card-Cpr8iD19.js} +4 -4
- package/dist/_chunks/{patient-check-in-resume-B7NY-6KI.js → patient-check-in-resume-DZnyYDKH.js} +40 -40
- package/dist/_chunks/{patient-details-DBtEITfE.js → patient-details-Dv7EiTCo.js} +2 -2
- package/dist/_chunks/{patient-field-row-a5d4QijH.js → patient-field-row-DuHWGlLz.js} +3 -3
- package/dist/_chunks/patient-picker-BZJuOgMw.js +173 -0
- package/dist/_chunks/{patient-sign-in-pin-CDBqV254.js → patient-sign-in-pin-DmMBwWet.js} +2 -2
- package/dist/_chunks/{patient-sign-in-steps-C2JSqlok.js → patient-sign-in-steps-BKcxNkdY.js} +37 -59
- package/dist/_chunks/{patient-summary-card-Bl2NknPe.js → patient-summary-card-D-cDzOim.js} +2 -2
- package/dist/_chunks/phone-off-DQSTLz4l.js +28 -0
- package/dist/_chunks/{portal-details-DCIiGkHA.js → portal-details-DdzvroYP.js} +2 -2
- package/dist/_chunks/{portal-documents-DJOH8pZx.js → portal-documents-CNmoYWFc.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-BNI32qNw.js → pregnancy-dating-lJbzai73.js} +2 -2
- package/dist/_chunks/{privacy-mask-C19dJFMk.js → privacy-mask-C2ZLKrMh.js} +5 -5
- package/dist/_chunks/{registration-form-DS3RuKHu.js → registration-form-CuLiTA52.js} +2 -2
- package/dist/_chunks/{reserved.agent-DOzOBUW7.js → reserved.agent-CabZHFJC.js} +2 -2
- package/dist/_chunks/{rich-text-editor-DjHL1b3E.js → rich-text-editor-C48omVjq.js} +2 -2
- package/dist/_chunks/{select-uESzXTX6.js → select-CIXKyUMw.js} +172 -149
- package/dist/_chunks/{session-countdown-DOx1IBUB.js → session-countdown-StcyUU5O.js} +56 -66
- package/dist/_chunks/{signature-request-CHsM_iWi.js → signature-request-vJDSHZld.js} +2 -2
- package/dist/_chunks/{tabs-CRIDBLP7.js → tabs-Czkmw5ou.js} +2 -2
- package/dist/_chunks/task-editor-wKbFbGqW.js +1093 -0
- package/dist/_chunks/{tasks-panel-6EzdnwT8.js → tasks-panel-DbtJS4QI.js} +2 -2
- package/dist/_chunks/{toolbar-CfdoJzMV.js → toolbar-DjG-cpD_.js} +2 -2
- package/dist/_chunks/{unit-converter-YKlHyUC2.js → unit-converter-CUAUTu2B.js} +2 -2
- package/dist/_chunks/use-appointment-details-read-jGkJalX8.js +1966 -0
- package/dist/_chunks/{voice-control-panel-Be_c0CQ0.js → voice-control-panel-Cp4vs1iy.js} +2 -2
- package/dist/agent-catalog.json +282 -6
- package/dist/agent-i18n/en.json +26 -4
- package/dist/appointment-editor-panel/index.js +100 -0
- package/dist/booking-tools-data/index.js +82 -0
- package/dist/browser-support.js +1 -1
- package/dist/calendar-action-buttons/index.js +178 -0
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +68 -5
- package/dist/components/ai-summary-panel/index.d.ts +1 -1
- package/dist/components/ai-summary-panel/index.js +1 -1
- package/dist/components/ai-summary-panel/summary-markdown.d.ts +15 -0
- package/dist/components/appointment-details-panel/index.js +6 -5
- package/dist/components/audio-recorder/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/call-status-chip/call-status-chip.d.ts +30 -0
- package/dist/components/call-status-chip/index.d.ts +3 -0
- package/dist/components/call-status-chip/index.js +5 -0
- package/dist/components/calls-panel/calls-panel.agent.d.ts +4 -0
- package/dist/components/calls-panel/calls-panel.d.ts +153 -0
- package/dist/components/calls-panel/index.d.ts +4 -0
- package/dist/components/calls-panel/index.js +6 -0
- package/dist/components/chat-input/chat-input.d.ts +17 -0
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/color-picker/index.js +5 -4
- package/dist/components/communications-panel/communications-panel.d.ts +15 -3
- package/dist/components/communications-panel/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/entity-summary/entity-summary.d.ts +29 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/fiscal-code-input/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/iban-input/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/invoice-upload-list/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-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/rich-text-editor/index.js +2 -2
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +8 -0
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- 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/voice-control-panel/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +58 -0
- package/dist/host-compat.css +4 -1
- package/dist/i18n/locales/ar.d.ts +72 -3
- package/dist/i18n/locales/ar.js +74 -5
- package/dist/i18n/locales/de.d.ts +72 -3
- package/dist/i18n/locales/de.js +74 -5
- package/dist/i18n/locales/el.d.ts +72 -3
- package/dist/i18n/locales/el.js +74 -5
- package/dist/i18n/locales/en.d.ts +72 -3
- package/dist/i18n/locales/en.js +73 -4
- package/dist/i18n/locales/es.d.ts +72 -3
- package/dist/i18n/locales/es.js +74 -5
- package/dist/i18n/locales/fr.d.ts +72 -3
- package/dist/i18n/locales/fr.js +74 -5
- package/dist/i18n/locales/hi.d.ts +72 -3
- package/dist/i18n/locales/hi.js +74 -5
- package/dist/i18n/locales/it.d.ts +83 -14
- package/dist/i18n/locales/it.js +84 -15
- package/dist/i18n/locales/ja.d.ts +72 -3
- package/dist/i18n/locales/ja.js +74 -5
- package/dist/i18n/locales/nl.d.ts +72 -3
- package/dist/i18n/locales/nl.js +74 -5
- package/dist/i18n/locales/pl.d.ts +72 -3
- package/dist/i18n/locales/pl.js +74 -5
- package/dist/i18n/locales/pt.d.ts +72 -3
- package/dist/i18n/locales/pt.js +74 -5
- package/dist/i18n/locales/ro.d.ts +72 -3
- package/dist/i18n/locales/ro.js +74 -5
- package/dist/i18n/locales/ru.d.ts +72 -3
- package/dist/i18n/locales/ru.js +74 -5
- package/dist/i18n/locales/sq.d.ts +72 -3
- package/dist/i18n/locales/sq.js +74 -5
- package/dist/i18n/locales/sv.d.ts +72 -3
- package/dist/i18n/locales/sv.js +74 -5
- package/dist/i18n/locales/tr.d.ts +72 -3
- package/dist/i18n/locales/tr.js +74 -5
- package/dist/i18n/locales/zh.d.ts +72 -3
- package/dist/i18n/locales/zh.js +74 -5
- package/dist/index.js +1329 -1318
- package/dist/locales/ar.json +74 -5
- package/dist/locales/de.json +74 -5
- package/dist/locales/el.json +74 -5
- package/dist/locales/en.json +73 -4
- package/dist/locales/es.json +74 -5
- package/dist/locales/fr.json +74 -5
- package/dist/locales/hi.json +74 -5
- package/dist/locales/it.json +84 -15
- package/dist/locales/ja.json +74 -5
- package/dist/locales/nl.json +74 -5
- package/dist/locales/pl.json +74 -5
- package/dist/locales/pt.json +74 -5
- package/dist/locales/ro.json +74 -5
- package/dist/locales/ru.json +74 -5
- package/dist/locales/sq.json +74 -5
- package/dist/locales/sv.json +74 -5
- package/dist/locales/tr.json +74 -5
- package/dist/locales/zh.json +74 -5
- package/dist/online-bookings-panel/index.js +69 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/booking-tools/appointment-editor-panel.d.ts +46 -0
- package/dist/patterns/calendar/booking-tools/booking-tools-data.d.ts +48 -0
- package/dist/patterns/calendar/booking-tools/calendar-action-buttons.d.ts +55 -0
- package/dist/patterns/calendar/booking-tools/find-free-slots-panel.d.ts +35 -0
- package/dist/patterns/calendar/booking-tools/online-bookings-panel.d.ts +61 -0
- package/dist/patterns/calendar/booking-tools/waiting-list-panel.d.ts +58 -0
- package/dist/patterns/calendar/calendar-editor-discard-host.d.ts +20 -0
- package/dist/patterns/calendar/calendar-print-sheet.d.ts +16 -0
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +7 -0
- package/dist/patterns/calendar/calendar.model.d.ts +9 -0
- package/dist/patterns/calendar/calendar.sheets.d.ts +59 -17
- package/dist/patterns/calendar/index.js +24 -20
- 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/patient-sign-in/index.js +2 -2
- package/dist/patterns/registration-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 +158 -0
- package/package.json +35 -2
- package/dist/_chunks/ai-summary-panel-B70S2lgC.js +0 -455
- package/dist/_chunks/calendar-appointment-editor-dialog-I5PfWudy.js +0 -13773
- package/dist/_chunks/color-picker-AcaWuKah.js +0 -745
- package/dist/_chunks/communications-panel-BKPHCiMB.js +0 -973
- package/dist/_chunks/entity-summary-CpNk6ybN.js +0 -266
- package/dist/_chunks/task-editor-DvwqPfFR.js +0 -1257
- package/dist/_chunks/use-appointment-details-read-6_OmOwUs.js +0 -2476
package/dist/locales/tr.json
CHANGED
|
@@ -7357,7 +7357,6 @@
|
|
|
7357
7357
|
"send": "Gönder",
|
|
7358
7358
|
"sending": "Gönderiliyor…",
|
|
7359
7359
|
"sent": "Mesaj gönderildi",
|
|
7360
|
-
"emptyDraft": "Önce bir mesaj yazın",
|
|
7361
7360
|
"emptyTitle": "Henüz mesaj yok",
|
|
7362
7361
|
"emptyDescription": "Bu hastayla henüz mesajlaşmadınız. Aşağıdan ilk mesajı gönderin.",
|
|
7363
7362
|
"loading": "Mesajlar yükleniyor",
|
|
@@ -7396,14 +7395,15 @@
|
|
|
7396
7395
|
"smsCount_two": "{{chars}} karakter, {{parts}} SMS",
|
|
7397
7396
|
"smsCount_few": "{{chars}} karakter, {{parts}} SMS",
|
|
7398
7397
|
"smsCount_many": "{{chars}} karakter, {{parts}} SMS",
|
|
7399
|
-
"smsCount_other": "{{chars}} karakter, {{parts}} SMS"
|
|
7398
|
+
"smsCount_other": "{{chars}} karakter, {{parts}} SMS",
|
|
7399
|
+
"openAttachment": "{{name}} dosyasını aç"
|
|
7400
7400
|
},
|
|
7401
7401
|
"aiSummaryPanel": {
|
|
7402
7402
|
"title": "Yapay zekâ özeti",
|
|
7403
7403
|
"regionLabel": "Hastanın yapay zekâ özeti",
|
|
7404
7404
|
"consentTitle": "Yapay zekâ asistanı",
|
|
7405
7405
|
"consentDescription": "Yapay zekâ, özet yazmak için bu hastanın dosyasını okur.",
|
|
7406
|
-
"consentCheckbox": "Hastayı bilgilendirdim ve kabul ediyor",
|
|
7406
|
+
"consentCheckbox": "Hastayı verilerinin nasıl kullanıldığı konusunda bilgilendirdim ve kabul ediyor.",
|
|
7407
7407
|
"generate": "Yapay zekâ özeti oluştur",
|
|
7408
7408
|
"regenerate": "Yeniden oluştur",
|
|
7409
7409
|
"loading": "Hasta dosyası okunuyor",
|
|
@@ -7421,9 +7421,78 @@
|
|
|
7421
7421
|
"errorTitle": "Özet oluşturulamadı",
|
|
7422
7422
|
"retry": "Tekrar dene",
|
|
7423
7423
|
"consentSaveFailed": "Onay kaydedilemedi. Tekrar deneyin.",
|
|
7424
|
-
"disclaimer": "Yapay zekâ hata yapabilir.
|
|
7424
|
+
"disclaimer": "Bu araç bir tıbbi cihaz değildir ve klinik muhakemenin yerini almaz. Bu özet yapay zekâ tarafından oluşturulmuştur. Yapay zekâ hata yapabilir. Kullanmadan önce tüm bilgileri kontrol edin.",
|
|
7425
7425
|
"statusReady": "Özet hazır",
|
|
7426
7426
|
"privacyTitle": "Özet gizli",
|
|
7427
|
-
"privacyDescription": "Özeti okumak için gizlilik modunu kapatın."
|
|
7427
|
+
"privacyDescription": "Özeti okumak için gizlilik modunu kapatın.",
|
|
7428
|
+
"notGeneratedTitle": "Henüz özet yok",
|
|
7429
|
+
"notGeneratedDescription": "Hasta dosyasından bir özet oluşturun. Bu işlem yapay zekâ kredisi kullanır.",
|
|
7430
|
+
"sectionEmpty": "Bu bölüm için veri yok.",
|
|
7431
|
+
"sectionLoading": "Oluşturuluyor: {{section}}",
|
|
7432
|
+
"sectionError": "Bu bölüm oluşturulamadı.",
|
|
7433
|
+
"sectionRetryNamed": "Tekrar dene: {{section}}",
|
|
7434
|
+
"sectionStale": "Bu bölüm güncel değil.",
|
|
7435
|
+
"sectionRegenerate": "Yeniden oluştur: {{section}}",
|
|
7436
|
+
"sectionsProgress_zero": "{{count}} bölümden {{ready}} tanesi hazır",
|
|
7437
|
+
"sectionsProgress_one": "{{count}} bölümden {{ready}} tanesi hazır",
|
|
7438
|
+
"sectionsProgress_two": "{{count}} bölümden {{ready}} tanesi hazır",
|
|
7439
|
+
"sectionsProgress_few": "{{count}} bölümden {{ready}} tanesi hazır",
|
|
7440
|
+
"sectionsProgress_many": "{{count}} bölümden {{ready}} tanesi hazır",
|
|
7441
|
+
"sectionsProgress_other": "{{count}} bölümden {{ready}} tanesi hazır"
|
|
7442
|
+
},
|
|
7443
|
+
"callsPanel": {
|
|
7444
|
+
"title": "Aramalar",
|
|
7445
|
+
"listLabel": "Kayıtlı aramalar",
|
|
7446
|
+
"logCall": "Arama ekle",
|
|
7447
|
+
"formTitle": "Arama ekle",
|
|
7448
|
+
"back": "Aramalara dön",
|
|
7449
|
+
"dateLabel": "Tarih ve saat",
|
|
7450
|
+
"dateRequired": "Bir tarih ve saat seçin.",
|
|
7451
|
+
"purposeLabel": "Amaç",
|
|
7452
|
+
"outcomeLabel": "Sonuç",
|
|
7453
|
+
"notSet": "Ayarlanmadı",
|
|
7454
|
+
"descriptionLabel": "Açıklama",
|
|
7455
|
+
"descriptionPlaceholder": "Aramayı açıklayın…",
|
|
7456
|
+
"save": "Aramayı kaydet",
|
|
7457
|
+
"saving": "Kaydediliyor…",
|
|
7458
|
+
"cancel": "İptal",
|
|
7459
|
+
"saved": "Arama kaydedildi",
|
|
7460
|
+
"saveFailed": "Arama kaydedilemedi. Metniniz hâlâ burada.",
|
|
7461
|
+
"emptyTitle": "Henüz kayıtlı arama yok",
|
|
7462
|
+
"emptyDescription": "Bu hastaya yaptığınız aramaları ekleyerek kayıt altında tutun.",
|
|
7463
|
+
"loading": "Aramalar yükleniyor",
|
|
7464
|
+
"errorTitle": "Aramalar yüklenemedi",
|
|
7465
|
+
"retry": "Tekrar dene",
|
|
7466
|
+
"noDescription": "Açıklama yok",
|
|
7467
|
+
"showMore": "Daha fazla göster",
|
|
7468
|
+
"showLess": "Daha az göster",
|
|
7469
|
+
"addedOn": "Eklenme: {{date}}",
|
|
7470
|
+
"edit": "Açıklamayı düzenle",
|
|
7471
|
+
"editNamed": "{{date}} tarihli aramanın açıklamasını düzenle",
|
|
7472
|
+
"editLabel": "{{date}} tarihli aramanın açıklaması",
|
|
7473
|
+
"editSave": "Açıklamayı kaydet",
|
|
7474
|
+
"editCancel": "İptal",
|
|
7475
|
+
"editRequired": "Bir açıklama yazın.",
|
|
7476
|
+
"updated": "Açıklama kaydedildi",
|
|
7477
|
+
"updateFailed": "Açıklama kaydedilemedi. Metniniz hâlâ burada.",
|
|
7478
|
+
"delete": "Aramayı sil",
|
|
7479
|
+
"deleteNamed": "{{date}} tarihli aramayı sil",
|
|
7480
|
+
"deleteTitle": "Bu arama silinsin mi?",
|
|
7481
|
+
"deleteBody": "{{date}} tarihli arama kayıttan kaldırılacak.",
|
|
7482
|
+
"deleteConfirm": "Aramayı sil",
|
|
7483
|
+
"deleteCancel": "Aramayı tut",
|
|
7484
|
+
"deleting": "Siliniyor…",
|
|
7485
|
+
"deleted": "Arama silindi",
|
|
7486
|
+
"deleteFailed": "Arama silinemedi.",
|
|
7487
|
+
"privacyTitle": "Aramalar gizli",
|
|
7488
|
+
"privacyDescription": "Aramaları okumak veya eklemek için gizlilik modunu kapatın.",
|
|
7489
|
+
"incoming": "Gelen",
|
|
7490
|
+
"outgoing": "Giden",
|
|
7491
|
+
"missedCall": "Cevapsız arama",
|
|
7492
|
+
"takenBy": "İlgilenen: {{name}}",
|
|
7493
|
+
"loggedAutomatically": "Otomatik olarak kaydedildi",
|
|
7494
|
+
"loggedAutomaticallyBy": "{{app}} tarafından otomatik olarak kaydedildi",
|
|
7495
|
+
"recording": "Ses kaydı",
|
|
7496
|
+
"transcript": "Döküm"
|
|
7428
7497
|
}
|
|
7429
7498
|
}
|
package/dist/locales/zh.json
CHANGED
|
@@ -7357,7 +7357,6 @@
|
|
|
7357
7357
|
"send": "发送",
|
|
7358
7358
|
"sending": "正在发送…",
|
|
7359
7359
|
"sent": "消息已发送",
|
|
7360
|
-
"emptyDraft": "请先写一条消息",
|
|
7361
7360
|
"emptyTitle": "暂无消息",
|
|
7362
7361
|
"emptyDescription": "您还没有与这位患者互发过消息。请在下方发送第一条。",
|
|
7363
7362
|
"loading": "正在加载消息",
|
|
@@ -7396,14 +7395,15 @@
|
|
|
7396
7395
|
"smsCount_two": "{{chars}} 个字符,{{parts}} 条短信",
|
|
7397
7396
|
"smsCount_few": "{{chars}} 个字符,{{parts}} 条短信",
|
|
7398
7397
|
"smsCount_many": "{{chars}} 个字符,{{parts}} 条短信",
|
|
7399
|
-
"smsCount_other": "{{chars}} 个字符,{{parts}} 条短信"
|
|
7398
|
+
"smsCount_other": "{{chars}} 个字符,{{parts}} 条短信",
|
|
7399
|
+
"openAttachment": "打开 {{name}}"
|
|
7400
7400
|
},
|
|
7401
7401
|
"aiSummaryPanel": {
|
|
7402
7402
|
"title": "AI 摘要",
|
|
7403
7403
|
"regionLabel": "患者的 AI 摘要",
|
|
7404
7404
|
"consentTitle": "AI 助手",
|
|
7405
7405
|
"consentDescription": "AI 会读取这位患者的病历来撰写摘要。",
|
|
7406
|
-
"consentCheckbox": "
|
|
7406
|
+
"consentCheckbox": "我已告知患者其数据的使用方式,患者同意。",
|
|
7407
7407
|
"generate": "生成 AI 摘要",
|
|
7408
7408
|
"regenerate": "重新生成",
|
|
7409
7409
|
"loading": "正在读取患者病历",
|
|
@@ -7421,9 +7421,78 @@
|
|
|
7421
7421
|
"errorTitle": "无法生成摘要",
|
|
7422
7422
|
"retry": "重试",
|
|
7423
7423
|
"consentSaveFailed": "无法保存同意记录。请重试。",
|
|
7424
|
-
"disclaimer": "AI
|
|
7424
|
+
"disclaimer": "本工具不是医疗器械,不能替代临床判断。本摘要由 AI 生成。AI 可能出错。使用前请核对所有信息。",
|
|
7425
7425
|
"statusReady": "摘要已就绪",
|
|
7426
7426
|
"privacyTitle": "摘要已隐藏",
|
|
7427
|
-
"privacyDescription": "请关闭隐私模式以阅读摘要。"
|
|
7427
|
+
"privacyDescription": "请关闭隐私模式以阅读摘要。",
|
|
7428
|
+
"notGeneratedTitle": "暂无摘要",
|
|
7429
|
+
"notGeneratedDescription": "根据患者病历生成摘要。此操作会消耗 AI 额度。",
|
|
7430
|
+
"sectionEmpty": "此部分暂无可用数据。",
|
|
7431
|
+
"sectionLoading": "正在生成:{{section}}",
|
|
7432
|
+
"sectionError": "无法生成此部分。",
|
|
7433
|
+
"sectionRetryNamed": "重试:{{section}}",
|
|
7434
|
+
"sectionStale": "此部分已过时。",
|
|
7435
|
+
"sectionRegenerate": "重新生成:{{section}}",
|
|
7436
|
+
"sectionsProgress_zero": "{{count}} 个部分中已有 {{ready}} 个就绪",
|
|
7437
|
+
"sectionsProgress_one": "{{count}} 个部分中已有 {{ready}} 个就绪",
|
|
7438
|
+
"sectionsProgress_two": "{{count}} 个部分中已有 {{ready}} 个就绪",
|
|
7439
|
+
"sectionsProgress_few": "{{count}} 个部分中已有 {{ready}} 个就绪",
|
|
7440
|
+
"sectionsProgress_many": "{{count}} 个部分中已有 {{ready}} 个就绪",
|
|
7441
|
+
"sectionsProgress_other": "{{count}} 个部分中已有 {{ready}} 个就绪"
|
|
7442
|
+
},
|
|
7443
|
+
"callsPanel": {
|
|
7444
|
+
"title": "通话",
|
|
7445
|
+
"listLabel": "已记录的通话",
|
|
7446
|
+
"logCall": "记录通话",
|
|
7447
|
+
"formTitle": "记录通话",
|
|
7448
|
+
"back": "返回通话",
|
|
7449
|
+
"dateLabel": "日期和时间",
|
|
7450
|
+
"dateRequired": "请选择日期和时间。",
|
|
7451
|
+
"purposeLabel": "目的",
|
|
7452
|
+
"outcomeLabel": "结果",
|
|
7453
|
+
"notSet": "未设置",
|
|
7454
|
+
"descriptionLabel": "描述",
|
|
7455
|
+
"descriptionPlaceholder": "描述这次通话…",
|
|
7456
|
+
"save": "保存通话",
|
|
7457
|
+
"saving": "正在保存…",
|
|
7458
|
+
"cancel": "取消",
|
|
7459
|
+
"saved": "通话已记录",
|
|
7460
|
+
"saveFailed": "无法保存通话。您输入的内容仍保留在此。",
|
|
7461
|
+
"emptyTitle": "暂无通话记录",
|
|
7462
|
+
"emptyDescription": "记录您对这位患者的通话,以便留档。",
|
|
7463
|
+
"loading": "正在加载通话",
|
|
7464
|
+
"errorTitle": "无法加载通话",
|
|
7465
|
+
"retry": "重试",
|
|
7466
|
+
"noDescription": "无描述",
|
|
7467
|
+
"showMore": "显示更多",
|
|
7468
|
+
"showLess": "显示更少",
|
|
7469
|
+
"addedOn": "添加于 {{date}}",
|
|
7470
|
+
"edit": "编辑描述",
|
|
7471
|
+
"editNamed": "编辑 {{date}} 通话的描述",
|
|
7472
|
+
"editLabel": "{{date}} 通话的描述",
|
|
7473
|
+
"editSave": "保存描述",
|
|
7474
|
+
"editCancel": "取消",
|
|
7475
|
+
"editRequired": "请填写描述。",
|
|
7476
|
+
"updated": "描述已保存",
|
|
7477
|
+
"updateFailed": "无法保存描述。您输入的内容仍保留在此。",
|
|
7478
|
+
"delete": "删除通话",
|
|
7479
|
+
"deleteNamed": "删除 {{date}} 的通话",
|
|
7480
|
+
"deleteTitle": "删除此通话?",
|
|
7481
|
+
"deleteBody": "{{date}} 的通话将从档案中删除。",
|
|
7482
|
+
"deleteConfirm": "删除通话",
|
|
7483
|
+
"deleteCancel": "保留通话",
|
|
7484
|
+
"deleting": "正在删除…",
|
|
7485
|
+
"deleted": "通话已删除",
|
|
7486
|
+
"deleteFailed": "无法删除通话。",
|
|
7487
|
+
"privacyTitle": "通话已隐藏",
|
|
7488
|
+
"privacyDescription": "请关闭隐私模式以阅读或记录通话。",
|
|
7489
|
+
"incoming": "来电",
|
|
7490
|
+
"outgoing": "去电",
|
|
7491
|
+
"missedCall": "未接来电",
|
|
7492
|
+
"takenBy": "处理人:{{name}}",
|
|
7493
|
+
"loggedAutomatically": "自动记录",
|
|
7494
|
+
"loggedAutomaticallyBy": "由 {{app}} 自动记录",
|
|
7495
|
+
"recording": "录音",
|
|
7496
|
+
"transcript": "转录"
|
|
7428
7497
|
}
|
|
7429
7498
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useState as h, useMemo as g } from "react";
|
|
3
|
+
import { a as k } from "../_chunks/tooltip-uEBdD1-5.js";
|
|
4
|
+
import { C as v } from "../_chunks/calendar-editor-guard-9fShhNIA.js";
|
|
5
|
+
import { S as B, B as O } from "../_chunks/calendar.sheets-Datc0-IT.js";
|
|
6
|
+
import { c as P, o as S } from "../_chunks/calendar-workspace.model-DrOoxY1b.js";
|
|
7
|
+
function A({
|
|
8
|
+
rows: e,
|
|
9
|
+
data: i,
|
|
10
|
+
queue: r
|
|
11
|
+
}) {
|
|
12
|
+
const [o, l] = h(
|
|
13
|
+
P
|
|
14
|
+
), s = g(
|
|
15
|
+
() => S(e, i, r, o),
|
|
16
|
+
[e, i, r, o]
|
|
17
|
+
);
|
|
18
|
+
return { bookings: s, count: s.length, filters: o, setFilters: l };
|
|
19
|
+
}
|
|
20
|
+
const x = { open: () => {
|
|
21
|
+
}, close: () => {
|
|
22
|
+
} };
|
|
23
|
+
function D({
|
|
24
|
+
data: e,
|
|
25
|
+
bookings: i,
|
|
26
|
+
locale: r,
|
|
27
|
+
status: o,
|
|
28
|
+
privacy: l,
|
|
29
|
+
filters: s,
|
|
30
|
+
onFiltersChange: t,
|
|
31
|
+
lastSeenIso: a,
|
|
32
|
+
createdAtById: m,
|
|
33
|
+
currentBookingId: c,
|
|
34
|
+
currentBookingKey: d,
|
|
35
|
+
onRetry: f,
|
|
36
|
+
onShowInCalendar: p,
|
|
37
|
+
onComplete: u
|
|
38
|
+
}) {
|
|
39
|
+
return /* @__PURE__ */ n(k, { children: /* @__PURE__ */ n(v, { value: e, children: /* @__PURE__ */ n(B, { value: x, children: /* @__PURE__ */ n(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
"data-component": "online-bookings-rail-panel",
|
|
43
|
+
className: "ds:flex ds:h-full ds:min-h-0 ds:flex-col",
|
|
44
|
+
children: /* @__PURE__ */ n(
|
|
45
|
+
O,
|
|
46
|
+
{
|
|
47
|
+
bookings: i,
|
|
48
|
+
locale: r,
|
|
49
|
+
privacy: l,
|
|
50
|
+
status: o,
|
|
51
|
+
lastSeenIso: a,
|
|
52
|
+
createdAtById: m,
|
|
53
|
+
currentBookingId: c,
|
|
54
|
+
currentBookingKey: d,
|
|
55
|
+
onRetry: f,
|
|
56
|
+
onShowInCalendar: p,
|
|
57
|
+
onComplete: u,
|
|
58
|
+
filters: s,
|
|
59
|
+
onFiltersChange: t
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
}
|
|
63
|
+
) }) }) });
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
D as OnlineBookingsRailPanel,
|
|
67
|
+
A as useOnlineBookings
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AliaAsteroidIcon as e } from "../../alia-asteroid-icon/index.js";
|
|
2
|
-
import { A as r, a as A, b as d, c as l } from "../../_chunks/alia-sidebar-
|
|
2
|
+
import { A as r, a as A, b as d, c as l } from "../../_chunks/alia-sidebar-CVBlKur9.js";
|
|
3
3
|
export {
|
|
4
4
|
e as AliaAsteroidIcon,
|
|
5
5
|
r as AliaChatSurface,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as i, L as r, P as n, S as o, T as t, b as l, c as d, d as g, e as A, f as m, g as c, h as E, i as P, j as f, k as S, l as h, m as u, n as T, o as I, p as N, r as R, q as _, s as C, t as L, u as b } from "../../_chunks/anamnesis-summary-rows-
|
|
1
|
+
import { A as e, a as i, L as r, P as n, S as o, T as t, b as l, c as d, d as g, e as A, f as m, g as c, h as E, i as P, j as f, k as S, l as h, m as u, n as T, o as I, p as N, r as R, q as _, s as C, t as L, u as b } from "../../_chunks/anamnesis-summary-rows-Dr2V1Rtf.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Anamnesis,
|
|
4
4
|
i as AnamnesisConfigEditor,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Booking tools: the appointment form (create and edit) as a rail panel.
|
|
3
|
+
*
|
|
4
|
+
* The SAME `AppointmentEditorPanel` the calendar workspace docks, with the
|
|
5
|
+
* providers it reads and nothing else: no `CalendarWorkspace`, no grid, no
|
|
6
|
+
* dashed draft card (`onDraftChange` and `slotPatch` are never passed). The
|
|
7
|
+
* host gives `data`, the prefill and `onSave`; `onClose` fires after a save,
|
|
8
|
+
* on Cancel and on the header close.
|
|
9
|
+
*
|
|
10
|
+
* `guard` is the unsaved-data guard (decision P38, rule B18). Make one with
|
|
11
|
+
* `createEditorGuard()`, read `guard.dirty` and call `guard.ask(proceed)`
|
|
12
|
+
* before a tool switch or a close of the rail: the question is shown here.
|
|
13
|
+
*/
|
|
14
|
+
import { type ComponentProps } from 'react';
|
|
15
|
+
import { type CalendarData } from '../calendar.data';
|
|
16
|
+
import type { CalendarEditorGuard } from '../calendar-editor-guard';
|
|
17
|
+
import { AppointmentEditorPanel, type EditorPlatformOptions } from '../calendar.sheets';
|
|
18
|
+
import type { CalendarEditorLoad } from './booking-tools-data';
|
|
19
|
+
type EditorPanelProps = ComponentProps<typeof AppointmentEditorPanel>;
|
|
20
|
+
export interface AppointmentEditorRailPanelProps extends Omit<EditorPanelProps, 'className' | 'closeOnSave' | 'onDraftChange' | 'slotPatch' | 'onDuplicate' | 'colorAssociation' | 'platform'> {
|
|
21
|
+
/** The practice read model: patients, operators, chairs, cares. */
|
|
22
|
+
data: CalendarData;
|
|
23
|
+
/** After a save the host accepted, on Cancel and on the header close. */
|
|
24
|
+
onClose(): void;
|
|
25
|
+
/** Host-made with `createEditorGuard()`; built here when absent. */
|
|
26
|
+
guard?: CalendarEditorGuard;
|
|
27
|
+
/** Read the canonical appointment before the form mounts (an edit). The
|
|
28
|
+
* host answers with the prefill, capabilities and series, or a refusal. */
|
|
29
|
+
load?: (eventId: string, options: {
|
|
30
|
+
signal: AbortSignal;
|
|
31
|
+
}) => Promise<CalendarEditorLoad>;
|
|
32
|
+
/** The platform's rules for the form (devices, consents, create patient). */
|
|
33
|
+
platform?: EditorPlatformOptions;
|
|
34
|
+
/** Privacy mode: stored patient data is never shown. The form is replaced
|
|
35
|
+
* by a notice when it would show some (an edit, or a new appointment that
|
|
36
|
+
* already names a patient or a booking). A blank new appointment opens. */
|
|
37
|
+
privacy?: boolean;
|
|
38
|
+
/** The notice's "turn privacy off" button. */
|
|
39
|
+
onPrivacyOff?(): void;
|
|
40
|
+
/** Show a close button in the panel header. A rail draws its own, so this
|
|
41
|
+
* is off by default. */
|
|
42
|
+
closeButton?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export declare function AppointmentEditorRailPanel({ data, onClose, guard, load, platform, privacy, onPrivacyOff, closeButton, panelTitle, prefill, capabilities, series, ...panel }: AppointmentEditorRailPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=appointment-editor-panel.d.ts.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Booking tools: the data seam and the shared names.
|
|
3
|
+
*
|
|
4
|
+
* Every booking tool of the calendar rail (the appointment form, Find free
|
|
5
|
+
* slots, the waiting list, online bookings to check) runs with NO
|
|
6
|
+
* `CalendarWorkspace` and NO calendar grid. The host hands each one a
|
|
7
|
+
* `CalendarData` through `data`, plus its own handlers.
|
|
8
|
+
*
|
|
9
|
+
* This module is the one place the other entries take their names from, so
|
|
10
|
+
* a recipe never needs the `./patterns/calendar` barrel (which would pull in
|
|
11
|
+
* FullCalendar). It also holds `createBookingToolsData`, which fills the
|
|
12
|
+
* required `CalendarData` fields a booking tool does not need, and
|
|
13
|
+
* `BookingToolsProvider` for a host that mounts several tools at once.
|
|
14
|
+
*/
|
|
15
|
+
import type { ReactNode } from 'react';
|
|
16
|
+
import { type CalendarData } from '../calendar.data';
|
|
17
|
+
import type { CalendarAppointmentEditorSnapshot } from '../calendar-editor-hydration';
|
|
18
|
+
export { createEditorGuard } from '../calendar-editor-guard';
|
|
19
|
+
export { hiddenReasons } from '../calendar-workspace.model';
|
|
20
|
+
export type { CalendarData } from '../calendar.data';
|
|
21
|
+
export type { CalendarEditorGuard } from '../calendar-editor-guard';
|
|
22
|
+
export type { EditorPlatformOptions, FindSlotsPlatformOptions, } from '../calendar.sheets';
|
|
23
|
+
export type { EditorDraft, FindSlotsSeed, EditorPrefill, WaitingEntryDraft, CalendarRow, } from '../calendar.model';
|
|
24
|
+
export type { EditorDraftExtras, BacklogGap, } from '../calendar-workspace.model';
|
|
25
|
+
export type { CalendarWaitingEntry, CalendarPatient, CalendarCreatePatient, FreeSlotQuery, } from '../calendar.types';
|
|
26
|
+
export type { CalendarOnlineBookings } from '../calendar-workspace';
|
|
27
|
+
/** What the host's `load` returns for an appointment being edited: the
|
|
28
|
+
* canonical prefill (plus capabilities and series), or a refusal. */
|
|
29
|
+
export type CalendarEditorLoad = CalendarAppointmentEditorSnapshot;
|
|
30
|
+
type RequiredFields = Pick<CalendarData, 'chairs' | 'operators' | 'cares' | 'nowIso' | 'currency'>;
|
|
31
|
+
/**
|
|
32
|
+
* A `CalendarData` for a booking tool: the five fields the tools read
|
|
33
|
+
* (`chairs`, `operators`, `cares`, `nowIso`, `currency`) plus whatever else
|
|
34
|
+
* the host knows. Everything else is filled with an empty value, so a host
|
|
35
|
+
* that has no patient search or care plans still renders.
|
|
36
|
+
*
|
|
37
|
+
* With no `businessHours` the practice has no opening hours, so Find free
|
|
38
|
+
* slots says so rather than offering time nobody works.
|
|
39
|
+
*/
|
|
40
|
+
export declare function createBookingToolsData(partial: RequiredFields & Partial<CalendarData>): CalendarData;
|
|
41
|
+
/** One provider for a host that mounts several booking tools: each tool
|
|
42
|
+
* also wraps itself, so this only saves repeating `data` and keeps one
|
|
43
|
+
* tooltip provider above them all. */
|
|
44
|
+
export declare function BookingToolsProvider({ data, children, }: {
|
|
45
|
+
data: CalendarData;
|
|
46
|
+
children?: ReactNode;
|
|
47
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
//# sourceMappingURL=booking-tools-data.d.ts.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { WORKSPACE_TOOL } from '../calendar-workspace.model';
|
|
2
|
+
export declare const ACTION_BADGE_CLASS = "ds:pointer-events-none ds:absolute ds:-top-1 ds:-end-1 ds:z-10";
|
|
3
|
+
export declare const ACCESSIBLE_TARGET_CLASS = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)]";
|
|
4
|
+
export declare const ACCESSIBLE_TARGET_SQUARE_CLASS = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-inline-size:var(--accessible-target-floor,auto)]";
|
|
5
|
+
/**
|
|
6
|
+
* A rail-tool button with a badge pinned to its corner, usable as a direct
|
|
7
|
+
* `ButtonGroup` member. The `IconButton` itself is the group's direct child
|
|
8
|
+
* (identical border, radius and sizing to every unwrapped sibling), and the
|
|
9
|
+
* `Badge` is composed into its `icon` node, positioned absolutely against
|
|
10
|
+
* the button (`ds:relative` added to the button's own className).
|
|
11
|
+
*/
|
|
12
|
+
export declare const RailToolButton: import("react").ForwardRefExoticComponent<Omit<Omit<import("../../../components").ButtonProps, "size" | "startIcon" | "endIcon" | "flipIconInRtl" | "children"> & import("class-variance-authority").VariantProps<(props?: ({
|
|
13
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
14
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
15
|
+
icon: React.ReactNode;
|
|
16
|
+
tooltip?: string;
|
|
17
|
+
'aria-label'?: string;
|
|
18
|
+
flipIconInRtl?: boolean;
|
|
19
|
+
} & import("react").RefAttributes<HTMLButtonElement> & {
|
|
20
|
+
badgeCount?: number;
|
|
21
|
+
badgeVariant?: "brand" | "warning";
|
|
22
|
+
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
/** The tool ids the buttons answer to. A button stands only while the host
|
|
24
|
+
* can back its tool with real data. */
|
|
25
|
+
export type CalendarActionToolId = typeof WORKSPACE_TOOL.waitingList | typeof WORKSPACE_TOOL.findSlots | typeof WORKSPACE_TOOL.bookings;
|
|
26
|
+
export interface CalendarActionButtonsProps {
|
|
27
|
+
/** The APPOINTMENT right is missing: New appointment is withheld. */
|
|
28
|
+
readOnly?: boolean;
|
|
29
|
+
/** Which tool buttons stand: `waiting-list`, `find-slots`,
|
|
30
|
+
* `online-bookings` (To complete). Leave one out and it is hidden, as
|
|
31
|
+
* for a user limited to own appointments (To complete). */
|
|
32
|
+
availableTools: ReadonlySet<CalendarActionToolId>;
|
|
33
|
+
/** Entries on the waiting list. */
|
|
34
|
+
waitingCount: number;
|
|
35
|
+
/** Bookings to complete. `undefined` while loading: no badge. */
|
|
36
|
+
toCompleteCount?: number;
|
|
37
|
+
onNewAppointment(): void;
|
|
38
|
+
onOpenFindSlots(): void;
|
|
39
|
+
onOpenWaitingList(): void;
|
|
40
|
+
/** The "+" next to Waiting list. */
|
|
41
|
+
onAddWaitingEntry(): void;
|
|
42
|
+
onOpenToComplete(): void;
|
|
43
|
+
/** Adds a New task button next to New appointment. Leave it out for none. */
|
|
44
|
+
onNewTask?(): void;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The two button groups as a fragment, for a host that already has its own
|
|
48
|
+
* toolbar container (the calendar surface). `ButtonGroup` clones its size
|
|
49
|
+
* onto direct children, so the fragment holds only the groups.
|
|
50
|
+
*/
|
|
51
|
+
export declare function CalendarActionButtonGroups({ readOnly, availableTools, waitingCount, toCompleteCount, onNewAppointment, onOpenFindSlots, onOpenWaitingList, onAddWaitingEntry, onOpenToComplete, onNewTask, }: CalendarActionButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
/** The action buttons in their own labelled group: drop it into the top
|
|
53
|
+
* right of the old calendar's header. */
|
|
54
|
+
export declare function CalendarActionButtons(props: CalendarActionButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
//# sourceMappingURL=calendar-action-buttons.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type CalendarData } from '../calendar.data';
|
|
2
|
+
import type { CalendarRow, EditorPrefill, FindSlotsSeed } from '../calendar.model';
|
|
3
|
+
import { type FindSlotsBookContext, type FindSlotsConnectedPractices, type FindSlotsPlatformOptions, type FindSlotsPractice, type FindSlotsSnapshot } from '../calendar.sheets';
|
|
4
|
+
export type { FindSlotsBookContext, FindSlotsConnectedPractices, FindSlotsPractice, FindSlotsSnapshot, };
|
|
5
|
+
export interface FindFreeSlotsRailPanelProps {
|
|
6
|
+
data: CalendarData;
|
|
7
|
+
/** The appointments the demo search reads. Ignored when
|
|
8
|
+
* `data.searchFreeSlots` answers. */
|
|
9
|
+
rows: CalendarRow[];
|
|
10
|
+
locale: string;
|
|
11
|
+
/** Prefill (a waiting entry's patient and care). Key the panel by it. */
|
|
12
|
+
seed?: FindSlotsSeed | null;
|
|
13
|
+
/** False without the appointment-edit right: slots list, none can book. */
|
|
14
|
+
canBook?: boolean;
|
|
15
|
+
/** Platform depth. `listOnly` is always on and cannot be turned off. */
|
|
16
|
+
platform?: Omit<FindSlotsPlatformOptions, 'listOnly'>;
|
|
17
|
+
/** A result was chosen. Move the calendar to that day and open the form.
|
|
18
|
+
* `context.practice` names the result's practice (connected practices
|
|
19
|
+
* only); when it is not the practice in use, hand off to that one. */
|
|
20
|
+
onBookSlot(prefill: EditorPrefill, context?: FindSlotsBookContext): void;
|
|
21
|
+
/** Start from this search and its results. Key the panel by the seed. */
|
|
22
|
+
restore?: FindSlotsSnapshot;
|
|
23
|
+
/** The search and results after every change: keep them to give back
|
|
24
|
+
* as `restore` when the rail swaps this tool out and back. */
|
|
25
|
+
onSnapshot?(snapshot: FindSlotsSnapshot): void;
|
|
26
|
+
/** The window a search is about to cover, raised before it runs. */
|
|
27
|
+
onSearchRange?: (range: {
|
|
28
|
+
from: Date;
|
|
29
|
+
to: Date;
|
|
30
|
+
}) => void;
|
|
31
|
+
/** Fires once, when the panel opens. */
|
|
32
|
+
onOpened?(): void;
|
|
33
|
+
}
|
|
34
|
+
export declare function FindFreeSlotsRailPanel({ data, rows, locale, seed, canBook, platform, onBookSlot, restore, onSnapshot, onSearchRange, onOpened, }: FindFreeSlotsRailPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
//# sourceMappingURL=find-free-slots-panel.d.ts.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Booking tools: online bookings to check ("To complete") as a rail panel.
|
|
3
|
+
*
|
|
4
|
+
* The SAME `BookingsPanel` the calendar workspace docks, plus
|
|
5
|
+
* `useOnlineBookings`, the workspace's own queue maths as a hook: the rows
|
|
6
|
+
* that still need a patient, an operator or a chair, shaped for the card
|
|
7
|
+
* list and narrowed by the three header switches. Run the hook ABOVE the
|
|
8
|
+
* rail so the To complete badge works while the tool is closed, and pass its
|
|
9
|
+
* `bookings` to the panel: the badge count equals the cards.
|
|
10
|
+
*
|
|
11
|
+
* Without `onComplete` the panel is review only (rule B89): the platform
|
|
12
|
+
* cannot complete the booking, so the card offers no assign or edit.
|
|
13
|
+
*/
|
|
14
|
+
import { type ReactNode } from 'react';
|
|
15
|
+
import { type CalendarData } from '../calendar.data';
|
|
16
|
+
import type { CalendarRow } from '../calendar.model';
|
|
17
|
+
import type { BookingCompleteIntent } from '../calendar-bookings-panel';
|
|
18
|
+
import type { CalendarOnlineBookings } from '../calendar-workspace';
|
|
19
|
+
import { type BacklogGap } from '../calendar-workspace.model';
|
|
20
|
+
export type OnlineBookingFilters = Readonly<Record<BacklogGap, boolean>>;
|
|
21
|
+
/**
|
|
22
|
+
* The bookings to check, and how many. `queue.rows` (the host's own query)
|
|
23
|
+
* wins over working them out of `rows`. The three switches are kept here,
|
|
24
|
+
* and applied on top of either.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useOnlineBookings({ rows, data, queue, }: {
|
|
27
|
+
rows: readonly CalendarRow[];
|
|
28
|
+
data: CalendarData;
|
|
29
|
+
queue?: CalendarOnlineBookings;
|
|
30
|
+
}): {
|
|
31
|
+
bookings: CalendarRow[];
|
|
32
|
+
count: number;
|
|
33
|
+
filters: OnlineBookingFilters;
|
|
34
|
+
setFilters(filters: OnlineBookingFilters): void;
|
|
35
|
+
};
|
|
36
|
+
export interface OnlineBookingsRailPanelProps {
|
|
37
|
+
data: CalendarData;
|
|
38
|
+
/** From `useOnlineBookings`: already narrowed by the switches. */
|
|
39
|
+
bookings: readonly CalendarRow[];
|
|
40
|
+
locale: string;
|
|
41
|
+
status?: 'loading' | 'ready' | 'error';
|
|
42
|
+
/** Masks names; the phone and WhatsApp link are hidden. */
|
|
43
|
+
privacy?: boolean;
|
|
44
|
+
/** The three switches, from `useOnlineBookings`. Leave out for no cog. */
|
|
45
|
+
filters?: OnlineBookingFilters;
|
|
46
|
+
onFiltersChange?(filters: OnlineBookingFilters): void;
|
|
47
|
+
/** Cards added since the person last looked get the New mark (rule B92). */
|
|
48
|
+
lastSeenIso?: string | null;
|
|
49
|
+
createdAtById?: Readonly<Record<string, string>>;
|
|
50
|
+
/** Scroll to and ring this booking (a click on its card on the grid). */
|
|
51
|
+
currentBookingId?: string;
|
|
52
|
+
/** Bump on every address so the same booking rings again. */
|
|
53
|
+
currentBookingKey?: string | number;
|
|
54
|
+
onRetry?: () => void;
|
|
55
|
+
/** Move the calendar to the booking. */
|
|
56
|
+
onShowInCalendar(eventId: string): void;
|
|
57
|
+
/** Open the form to complete it. Leave out for review only (rule B89). */
|
|
58
|
+
onComplete?(row: CalendarRow, intent?: BookingCompleteIntent): void;
|
|
59
|
+
}
|
|
60
|
+
export declare function OnlineBookingsRailPanel({ data, bookings, locale, status, privacy, filters, onFiltersChange, lastSeenIso, createdAtById, currentBookingId, currentBookingKey, onRetry, onShowInCalendar, onComplete, }: OnlineBookingsRailPanelProps): ReactNode;
|
|
61
|
+
//# sourceMappingURL=online-bookings-panel.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Booking tools: the waiting list as a rail panel, with its entry form.
|
|
3
|
+
*
|
|
4
|
+
* The SAME `WaitingListPanel` the calendar workspace docks. This wrapper
|
|
5
|
+
* owns what the workspace owns around it: the entry form's open state and
|
|
6
|
+
* focus restore, the read-only toast, the privacy notice, and Remove then
|
|
7
|
+
* Undo (a callback-based copy of the workspace's logic, in
|
|
8
|
+
* `calendar-workspace.tsx` under "the waiting list"; keep the two in step).
|
|
9
|
+
*
|
|
10
|
+
* The host answers with callbacks: scheduling, finding slots, saving,
|
|
11
|
+
* removing and restoring an entry. Writes resolve after they land and reject
|
|
12
|
+
* with a translated `Error`, which the wrapper shows as a toast while the
|
|
13
|
+
* form stays open. The host mounts the kit `Toaster` once.
|
|
14
|
+
*/
|
|
15
|
+
import { type ReactNode } from 'react';
|
|
16
|
+
import { type CalendarData } from '../calendar.data';
|
|
17
|
+
import type { CalendarRow, WaitingEntryDraft } from '../calendar.model';
|
|
18
|
+
import type { CalendarCreatePatient, CalendarPatient, CalendarWaitingEntry } from '../calendar.types';
|
|
19
|
+
export interface WaitingListRailPanelProps {
|
|
20
|
+
data: CalendarData;
|
|
21
|
+
entries: CalendarWaitingEntry[];
|
|
22
|
+
/** Live appointments: a linked entry shows its date, colour and care. */
|
|
23
|
+
rows: CalendarRow[];
|
|
24
|
+
locale: string;
|
|
25
|
+
status?: 'loading' | 'ready' | 'error';
|
|
26
|
+
onRetry?: () => void;
|
|
27
|
+
/** Names masked; Edit and Assign patient go to the privacy notice. */
|
|
28
|
+
privacy?: boolean;
|
|
29
|
+
/** Turns privacy off, from the notice the edit form is replaced by. */
|
|
30
|
+
onPrivacyOff?: () => void;
|
|
31
|
+
/** No appointment-edit right: Add, Edit, Assign and Remove are withheld. */
|
|
32
|
+
readOnly?: boolean;
|
|
33
|
+
/** Opens the entry form. Bump `nonce` for each press of the toolbar "+",
|
|
34
|
+
* so the same request twice opens it twice. `entry` edits that entry. */
|
|
35
|
+
entryRequest?: {
|
|
36
|
+
entry?: CalendarWaitingEntry;
|
|
37
|
+
nonce: number;
|
|
38
|
+
} | null;
|
|
39
|
+
/** Schedule or Bring forward: the host opens the form or arms a slot. */
|
|
40
|
+
onSchedule(entry: CalendarWaitingEntry): void;
|
|
41
|
+
/** Find a slot: the host opens Find free slots, seeded from the entry. */
|
|
42
|
+
onFindSlots(entry: CalendarWaitingEntry): void;
|
|
43
|
+
/** A linked entry's appointment was clicked. */
|
|
44
|
+
onOpenAppointment(eventId: string): void;
|
|
45
|
+
/** Add or edit an entry. Resolve after it lands, reject on failure. */
|
|
46
|
+
onSaveEntry(draft: WaitingEntryDraft): Promise<void>;
|
|
47
|
+
/** Remove an entry. Resolve after it lands. */
|
|
48
|
+
onRemoveEntry(entry: CalendarWaitingEntry): Promise<void>;
|
|
49
|
+
/** Undo a removal: put the entry back at `index`. */
|
|
50
|
+
onRestoreEntry(entry: CalendarWaitingEntry, index: number): Promise<void>;
|
|
51
|
+
onCreatePatient?: CalendarCreatePatient;
|
|
52
|
+
onOpenPatient?: (patient: CalendarPatient) => void;
|
|
53
|
+
onFilterUsed?: () => void;
|
|
54
|
+
onAdvancedFilterToggled?: () => void;
|
|
55
|
+
onWhatsAppClick?: (entry: CalendarWaitingEntry) => void;
|
|
56
|
+
}
|
|
57
|
+
export declare function WaitingListRailPanel({ data, entries, rows, locale, status, onRetry, privacy, onPrivacyOff, readOnly, entryRequest, onSchedule, onFindSlots, onOpenAppointment, onSaveEntry, onRemoveEntry, onRestoreEntry, onCreatePatient, onOpenPatient, onFilterUsed, onAdvancedFilterToggled, onWhatsAppClick, }: WaitingListRailPanelProps): ReactNode;
|
|
58
|
+
//# sourceMappingURL=waiting-list-panel.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The host side of the appointment editor's unsaved-data guard: the ONE
|
|
3
|
+
* implementation shared by `AppointmentEditorDialog` and the booking-tools
|
|
4
|
+
* editor panel (decision P38, rule B18).
|
|
5
|
+
*
|
|
6
|
+
* The open form writes `guard.dirty`; this hook writes `guard.ask`, which
|
|
7
|
+
* either proceeds at once or shows `CalendarSettingsDiscardDialog` and
|
|
8
|
+
* proceeds only after Discard. Focus returns to where it was on Keep.
|
|
9
|
+
*/
|
|
10
|
+
import { type ReactNode } from 'react';
|
|
11
|
+
import { type CalendarEditorGuard } from './calendar-editor-guard';
|
|
12
|
+
export interface EditorDiscardHost {
|
|
13
|
+
guard: CalendarEditorGuard;
|
|
14
|
+
/** Ask first, then run `close` (immediately when nothing is dirty). */
|
|
15
|
+
requestClose: (close: () => void) => void;
|
|
16
|
+
/** Render this beside the editor: the Keep or Discard question. */
|
|
17
|
+
discardDialog: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare function useEditorDiscardHost(provided?: CalendarEditorGuard): EditorDiscardHost;
|
|
20
|
+
//# sourceMappingURL=calendar-editor-discard-host.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type DisplaySettings, type PrintDaySection } from './calendar.model';
|
|
2
|
+
/**
|
|
3
|
+
* The call sheet itself. A portal to `document.body`: the shell's AppFrame
|
|
4
|
+
* is an `h-dvh overflow-hidden` clamp that prints one screenful, so the
|
|
5
|
+
* sheet lives outside it — hidden on screen, the only thing on paper.
|
|
6
|
+
*/
|
|
7
|
+
export declare function PrintSheet({ sections, rangeTitle, axisKind, visibleChairIds, visibleOperatorIds, privacy, locale, }: {
|
|
8
|
+
sections: PrintDaySection[];
|
|
9
|
+
rangeTitle: string;
|
|
10
|
+
axisKind: DisplaySettings['resourceKind'];
|
|
11
|
+
visibleChairIds: string[];
|
|
12
|
+
visibleOperatorIds: string[];
|
|
13
|
+
privacy: boolean;
|
|
14
|
+
locale: string;
|
|
15
|
+
}): import("react").ReactPortal | null;
|
|
16
|
+
//# sourceMappingURL=calendar-print-sheet.d.ts.map
|