@alfadocs/ui-kit 1.133.0 → 1.135.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{agenda-card-B8hV3dZV.js → agenda-card-B9wgX_Ed.js} +2 -2
- package/dist/_chunks/{agenda-tray-Bu46s3dI.js → agenda-tray-CGcS_qoM.js} +2 -2
- package/dist/_chunks/ai-summary-panel-B70S2lgC.js +455 -0
- package/dist/_chunks/{alia-sidebar-CK1zw_Bc.js → alia-sidebar-CtwhdASP.js} +3 -3
- package/dist/_chunks/appointment-card-BT1cMZIX.js +504 -0
- package/dist/_chunks/{appointment-peek-DZa6xyUb.js → appointment-peek-BP_ACFz5.js} +3 -3
- package/dist/_chunks/{appointment-timeline-DQePqpyH.js → appointment-timeline-Dy4YQJ17.js} +2 -2
- package/dist/_chunks/appointment-tray-B3gSHL1j.js +200 -0
- package/dist/_chunks/{appointment-workflow-status-DMjuIK90.js → appointment-workflow-status-S-lx81Yz.js} +2 -2
- package/dist/_chunks/ban-CiSCCcOE.js +15 -0
- package/dist/_chunks/{calendar-BIoOeBTT.js → calendar-CyLtLBNP.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BHx6kUhX.js → calendar-appointment-editor-dialog-I5PfWudy.js} +15 -15
- package/dist/_chunks/{calendar-event-card-BNEzkjm-.js → calendar-event-card-BJifpYZQ.js} +7 -6
- package/dist/_chunks/{care-plan-card-DKScH9Ss.js → care-plan-card-CjHq6PLo.js} +6 -6
- package/dist/_chunks/{care-plan-entry-card-AG1y3nyW.js → care-plan-entry-card-DY1toF6E.js} +2 -2
- package/dist/_chunks/{care-plan-header-Dx5OMkc9.js → care-plan-header-CeFXUDnL.js} +6 -6
- package/dist/_chunks/{chat-container-B83b4hut.js → chat-container-CoOT7dzB.js} +37 -36
- package/dist/_chunks/{chat-input-DwQ4_WXK.js → chat-input-CX4dxBq7.js} +85 -84
- package/dist/_chunks/check-in-documents-CEVcgcYZ.js +136 -0
- package/dist/_chunks/{clinical-note-card-pPaeWWnu.js → clinical-note-card-D--IwbZa.js} +2 -2
- package/dist/_chunks/communications-panel-BKPHCiMB.js +973 -0
- package/dist/_chunks/document-preview-DLVIrOYV.js +385 -0
- package/dist/_chunks/{entity-card-fpm-KUKc.js → entity-card-p-LANpYt.js} +18 -17
- package/dist/_chunks/{entity-summary-KHM0PnSI.js → entity-summary-CpNk6ybN.js} +70 -69
- package/dist/_chunks/{error-page-B0fGNTRB.js → error-page-WLhmWUTq.js} +100 -115
- package/dist/_chunks/finished-terminal-unDnXT4j.js +191 -0
- package/dist/_chunks/get-error-message-DbFUzuja.js +7 -0
- package/dist/_chunks/handled-rejection-C-6Dq0As.js +9 -0
- package/dist/_chunks/house-DGCypGTo.js +21 -0
- package/dist/_chunks/is-safe-url-CEy9CEml.js +8 -0
- package/dist/_chunks/keypad-DBH_keVs.js +152 -0
- package/dist/_chunks/keypad-button-mOaPQRrH.js +114 -0
- package/dist/_chunks/megaphone-CzeTT9B3.js +22 -0
- package/dist/_chunks/{message-card-BG3_3nN1.js → message-card-Bw_q1qKx.js} +2 -2
- package/dist/_chunks/{message-tray-BjZv0Fsk.js → message-tray-pLGgLmoG.js} +2 -2
- package/dist/_chunks/{note-attachment-MNTIqdSz.js → note-attachment-JTIy9iXN.js} +2 -2
- package/dist/_chunks/{note-timeline-BQeW0VZY.js → note-timeline-BbjHMhkL.js} +2 -2
- package/dist/_chunks/{notes-panel-Cm-_pCRJ.js → notes-panel-BvjAo4RQ.js} +6 -5
- package/dist/_chunks/{operator-hero-CnfWckNQ.js → operator-hero-D4wfVu2l.js} +2 -2
- package/dist/_chunks/otp-input-BNOTlxq3.js +342 -0
- package/dist/_chunks/patient-account-settings-B2XbN_Fe.js +546 -0
- package/dist/_chunks/patient-card-DTh3QTyS.js +125 -0
- package/dist/_chunks/patient-check-in-resume-B7NY-6KI.js +742 -0
- package/dist/_chunks/patient-sign-in-pin-CDBqV254.js +432 -0
- package/dist/_chunks/patient-sign-in-steps-C2JSqlok.js +199 -0
- package/dist/_chunks/{patient-summary-card-BUcZ-gaL.js → patient-summary-card-Bl2NknPe.js} +2 -2
- package/dist/_chunks/{payment-request-card-Dv4WbRBe.js → payment-request-card-CNW00DCx.js} +6 -6
- package/dist/_chunks/{pdf-viewer-BnBKdx0y.js → pdf-viewer-TRC5jEm5.js} +472 -425
- package/dist/_chunks/pin-entry-BugWQMOS.js +219 -0
- package/dist/_chunks/pin-indicator-Cb-n40UI.js +124 -0
- package/dist/_chunks/portal-details-DCIiGkHA.js +478 -0
- package/dist/_chunks/portal-documents-DJOH8pZx.js +902 -0
- package/dist/_chunks/portal-parts-Br8wuala.js +285 -0
- package/dist/_chunks/{privacy-mask-DJ1gee4c.js → privacy-mask-C19dJFMk.js} +5 -5
- package/dist/_chunks/{product-hub-panel-a8wdVOUt.js → product-hub-panel-K4QbULG7.js} +2 -2
- package/dist/_chunks/{registration-form-CwbhtKcy.js → registration-form-DS3RuKHu.js} +2 -2
- package/dist/_chunks/{reserved.agent-W8mR179D.js → reserved.agent-DOzOBUW7.js} +2 -2
- package/dist/_chunks/session-countdown-DOx1IBUB.js +232 -0
- package/dist/_chunks/{sign-document-CQZVzfpk.js → sign-document-DDZbmYHu.js} +2 -2
- package/dist/_chunks/{signature-field-DjabvRZm.js → signature-field-BjlY_yXH.js} +39 -34
- package/dist/_chunks/{signature-request-4pGq3YBe.js → signature-request-CHsM_iWi.js} +2 -2
- package/dist/_chunks/{signature-status-chip-pIoQjvH8.js → signature-status-chip-DS9hHwIt.js} +66 -69
- package/dist/_chunks/signing-end-screen-BdhbkPKO.js +1355 -0
- package/dist/_chunks/sms-code-entry-Dgp4GwlM.js +316 -0
- package/dist/_chunks/step-up-dialog-C2JqJmCA.js +132 -0
- package/dist/_chunks/{task-editor-BL2hHxNz.js → task-editor-DvwqPfFR.js} +40 -39
- package/dist/_chunks/{tasks-panel-BE3zaayj.js → tasks-panel-6EzdnwT8.js} +155 -171
- package/dist/_chunks/{use-appointment-details-read-_b7FRB1x.js → use-appointment-details-read-6_OmOwUs.js} +115 -114
- package/dist/_chunks/use-zoom-drilldown-Cr1baU5X.js +221 -0
- package/dist/_chunks/{user-x-DYszNtIg.js → user-x-BJZg4kaP.js} +8 -19
- package/dist/_chunks/{verify-identity-types-CxtrBXsZ.js → verify-identity-types-C6Bam8v6.js} +2 -2
- package/dist/_chunks/{workflow-status-D1WgGVTP.js → workflow-status-CO0mxXs2.js} +3 -2
- package/dist/agent-catalog.json +933 -324
- package/dist/agent-i18n/en.json +103 -18
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/is-safe-url.d.ts +3 -1
- package/dist/components/_shared/sms-segments.d.ts +43 -0
- package/dist/components/agenda-card/index.js +2 -2
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-summary-panel/ai-summary-panel.agent.d.ts +4 -0
- package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +71 -0
- package/dist/components/ai-summary-panel/index.d.ts +4 -0
- package/dist/components/ai-summary-panel/index.js +6 -0
- package/dist/components/appointment-card/appointment-card.d.ts +45 -0
- package/dist/components/appointment-card/appointment-tray.d.ts +11 -0
- package/dist/components/appointment-card/index.js +3 -3
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chat-container/chat-container.d.ts +7 -0
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/chat-input.d.ts +3 -0
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/communications-panel/communications-panel.agent.d.ts +4 -0
- package/dist/components/communications-panel/communications-panel.d.ts +136 -0
- package/dist/components/communications-panel/index.d.ts +6 -0
- package/dist/components/communications-panel/index.js +7 -0
- package/dist/components/document-preview/document-preview.d.ts +61 -7
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/entity-summary/entity-summary.d.ts +8 -0
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/finished-terminal/finished-terminal.d.ts +63 -6
- package/dist/components/finished-terminal/index.d.ts +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/index.d.ts +14 -0
- package/dist/components/keypad/index.d.ts +3 -0
- package/dist/components/keypad/index.js +6 -0
- package/dist/components/keypad/keypad.d.ts +54 -0
- package/dist/components/keypad-button/index.d.ts +3 -0
- package/dist/components/keypad-button/index.js +6 -0
- package/dist/components/keypad-button/keypad-button.d.ts +33 -0
- package/dist/components/message-card/index.js +2 -2
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.d.ts +11 -0
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +7 -0
- package/dist/components/pin-entry/index.d.ts +3 -0
- package/dist/components/pin-entry/index.js +5 -0
- package/dist/components/pin-entry/pin-entry.agent.d.ts +4 -0
- package/dist/components/pin-entry/pin-entry.d.ts +64 -0
- package/dist/components/pin-indicator/index.d.ts +3 -0
- package/dist/components/pin-indicator/index.js +9 -0
- package/dist/components/pin-indicator/pin-indicator.d.ts +34 -0
- package/dist/components/product-hub-tray/index.js +2 -2
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/session-countdown/session-countdown.d.ts +19 -0
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/signature-field/signature-field.d.ts +17 -6
- package/dist/components/signature-status-chip/index.js +1 -1
- package/dist/components/signature-status-chip/signature-status-chip.d.ts +3 -2
- package/dist/components/sms-code-entry/index.d.ts +3 -0
- package/dist/components/sms-code-entry/index.js +5 -0
- package/dist/components/sms-code-entry/sms-code-entry.agent.d.ts +4 -0
- package/dist/components/sms-code-entry/sms-code-entry.d.ts +156 -0
- package/dist/components/step-up-dialog/index.d.ts +3 -0
- package/dist/components/step-up-dialog/index.js +5 -0
- package/dist/components/step-up-dialog/step-up-dialog.d.ts +108 -0
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/workflow-status/index.js +2 -2
- package/dist/core.css +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-signing-session.d.ts +7 -2
- package/dist/host-compat.css +18 -3
- package/dist/i18n/locales/ar.d.ts +605 -1
- package/dist/i18n/locales/ar.js +603 -3
- package/dist/i18n/locales/de.d.ts +605 -1
- package/dist/i18n/locales/de.js +611 -4
- package/dist/i18n/locales/el.d.ts +605 -1
- package/dist/i18n/locales/el.js +606 -4
- package/dist/i18n/locales/en.d.ts +607 -1
- package/dist/i18n/locales/en.js +614 -4
- package/dist/i18n/locales/es.d.ts +605 -1
- package/dist/i18n/locales/es.js +604 -4
- package/dist/i18n/locales/fr.d.ts +605 -1
- package/dist/i18n/locales/fr.js +604 -4
- package/dist/i18n/locales/hi.d.ts +605 -1
- package/dist/i18n/locales/hi.js +604 -4
- package/dist/i18n/locales/it.d.ts +605 -1
- package/dist/i18n/locales/it.js +611 -4
- package/dist/i18n/locales/ja.d.ts +605 -1
- package/dist/i18n/locales/ja.js +604 -4
- package/dist/i18n/locales/nl.d.ts +605 -1
- package/dist/i18n/locales/nl.js +611 -4
- package/dist/i18n/locales/pl.d.ts +605 -1
- package/dist/i18n/locales/pl.js +611 -4
- package/dist/i18n/locales/pt.d.ts +605 -1
- package/dist/i18n/locales/pt.js +611 -4
- package/dist/i18n/locales/ro.d.ts +605 -1
- package/dist/i18n/locales/ro.js +611 -4
- package/dist/i18n/locales/ru.d.ts +605 -1
- package/dist/i18n/locales/ru.js +603 -3
- package/dist/i18n/locales/sq.d.ts +605 -1
- package/dist/i18n/locales/sq.js +604 -4
- package/dist/i18n/locales/sv.d.ts +605 -1
- package/dist/i18n/locales/sv.js +604 -4
- package/dist/i18n/locales/tr.d.ts +605 -1
- package/dist/i18n/locales/tr.js +606 -4
- package/dist/i18n/locales/zh.d.ts +605 -1
- package/dist/i18n/locales/zh.js +604 -4
- package/dist/index.js +1305 -1231
- package/dist/locales/ar.json +606 -2
- package/dist/locales/de.json +607 -3
- package/dist/locales/el.json +607 -3
- package/dist/locales/en.json +607 -3
- package/dist/locales/es.json +607 -3
- package/dist/locales/fr.json +607 -3
- package/dist/locales/hi.json +607 -3
- package/dist/locales/it.json +607 -3
- package/dist/locales/ja.json +607 -3
- package/dist/locales/nl.json +607 -3
- package/dist/locales/pl.json +607 -3
- package/dist/locales/pt.json +607 -3
- package/dist/locales/ro.json +607 -3
- package/dist/locales/ru.json +606 -2
- package/dist/locales/sq.json +607 -3
- package/dist/locales/sv.json +607 -3
- package/dist/locales/tr.json +607 -3
- package/dist/locales/zh.json +607 -3
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/calendar/calendar.journey.d.ts +7 -0
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/check-in-documents/check-in-documents.d.ts +61 -0
- package/dist/patterns/check-in-documents/check-in-signable-document.d.ts +32 -0
- package/dist/patterns/check-in-documents/index.d.ts +4 -0
- package/dist/patterns/check-in-documents/index.js +5 -0
- package/dist/patterns/error-page/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.d.ts +4 -0
- package/dist/patterns/patient-account-settings/index.js +5 -0
- package/dist/patterns/patient-account-settings/patient-account-settings-panels.d.ts +36 -0
- package/dist/patterns/patient-account-settings/patient-account-settings.d.ts +94 -0
- package/dist/patterns/patient-account-settings/patient-account-settings.types.d.ts +91 -0
- package/dist/patterns/patient-check-in/index.d.ts +20 -0
- package/dist/patterns/patient-check-in/index.js +13 -0
- package/dist/patterns/patient-check-in/patient-check-in-changed.d.ts +33 -0
- package/dist/patterns/patient-check-in/patient-check-in-connection-notice.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-done.d.ts +25 -0
- package/dist/patterns/patient-check-in/patient-check-in-entry.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-hub-empty.d.ts +23 -0
- package/dist/patterns/patient-check-in/patient-check-in-hub.d.ts +61 -0
- package/dist/patterns/patient-check-in/patient-check-in-personal-data.d.ts +73 -0
- package/dist/patterns/patient-check-in/patient-check-in-privacy.d.ts +9 -0
- package/dist/patterns/patient-check-in/patient-check-in-resume.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-shell.d.ts +60 -0
- package/dist/patterns/patient-check-in/patient-check-in-types.d.ts +92 -0
- package/dist/patterns/patient-portal/index.d.ts +12 -0
- package/dist/patterns/patient-portal/index.js +13 -0
- package/dist/patterns/patient-portal/portal-appointments.d.ts +70 -0
- package/dist/patterns/patient-portal/portal-details.d.ts +148 -0
- package/dist/patterns/patient-portal/portal-documents.d.ts +74 -0
- package/dist/patterns/patient-portal/portal-format.d.ts +14 -0
- package/dist/patterns/patient-portal/portal-home.d.ts +71 -0
- package/dist/patterns/patient-portal/portal-parts.d.ts +107 -0
- package/dist/patterns/patient-portal/portal-shell.d.ts +84 -0
- package/dist/patterns/patient-portal/portal-types.d.ts +157 -0
- package/dist/patterns/patient-sign-in/index.d.ts +7 -0
- package/dist/patterns/patient-sign-in/index.js +15 -0
- package/dist/patterns/patient-sign-in/patient-card.d.ts +74 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-email.d.ts +109 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-pin.d.ts +157 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-steps.d.ts +143 -0
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signing/index.d.ts +26 -0
- package/dist/patterns/signing/index.js +16 -0
- package/dist/patterns/signing/multi-field-signer.d.ts +138 -0
- package/dist/patterns/signing/signing-awaiting-screen.d.ts +25 -0
- package/dist/patterns/signing/signing-checkbox-pill.d.ts +66 -0
- package/dist/patterns/signing/signing-checkbox-sheet.d.ts +16 -0
- package/dist/patterns/signing/signing-chrome.d.ts +30 -0
- package/dist/patterns/signing/signing-document-screen.d.ts +104 -0
- package/dist/patterns/signing/signing-end-screen.d.ts +27 -0
- package/dist/patterns/signing/signing-finished-screen.d.ts +34 -0
- package/dist/patterns/signing/signing-footer.d.ts +56 -0
- package/dist/patterns/signing/signing-handoff-screen.d.ts +37 -0
- package/dist/patterns/signing/signing-message-dialog.d.ts +29 -0
- package/dist/patterns/signing/signing-progress-chip.d.ts +27 -0
- package/dist/patterns/signing/signing-roster.d.ts +44 -0
- package/dist/patterns/signing/signing-staff-id-confirmation.d.ts +49 -0
- package/dist/patterns/verify-identity/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +57 -1
- package/dist/_chunks/appointment-card-OAOur8lH.js +0 -434
- package/dist/_chunks/appointment-tray-DSFqO5Rm.js +0 -193
- package/dist/_chunks/document-preview-_kQ9QvZV.js +0 -291
- package/dist/_chunks/finished-terminal-FR8uc_Ws.js +0 -122
- package/dist/_chunks/handled-rejection-6gqCf5vt.js +0 -13
- package/dist/_chunks/is-safe-url-DkETxeHz.js +0 -7
- package/dist/_chunks/otp-input-gV1446Dw.js +0 -301
- package/dist/_chunks/session-countdown-C4tzbJVc.js +0 -223
- package/dist/_chunks/use-zoom-drilldown-qCX34w9I.js +0 -210
|
@@ -7,9 +7,9 @@ import { B as Te } from "./button-DohK_Ak_.js";
|
|
|
7
7
|
import { I as We } from "./icon-button-S8_weU3g.js";
|
|
8
8
|
import { C as Qe } from "./combobox-BBCVQS-S.js";
|
|
9
9
|
import { D as de } from "./dialog-CVTxyR0v.js";
|
|
10
|
-
import { D as
|
|
10
|
+
import { D as Ft } from "./date-picker-BmVBVpVu.js";
|
|
11
11
|
import { F as H } from "./form-field-CyHfOVKF.js";
|
|
12
|
-
import { I as
|
|
12
|
+
import { I as Pt } from "./icon-button-group-SmkdVCNx.js";
|
|
13
13
|
import { P as Ot } from "./panel-header-CbtlTe85.js";
|
|
14
14
|
import { P as jt } from "./panel-subview-DCyvn-49.js";
|
|
15
15
|
import { R as je } from "./radio-BZQs6_36.js";
|
|
@@ -26,8 +26,9 @@ import { u as Lt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
|
26
26
|
import { c as Ut } from "./compose-refs-C0k0tdqF.js";
|
|
27
27
|
import { E as Wt, a as Kt } from "./compact-editor-fields-cP6yh7xv.js";
|
|
28
28
|
import { n as Ht } from "./normalize-diacritics-BNGbFNlJ.js";
|
|
29
|
-
import {
|
|
30
|
-
import { g as $e
|
|
29
|
+
import { a as Gt } from "./privacy-mask-C19dJFMk.js";
|
|
30
|
+
import { g as $e } from "./get-error-message-DbFUzuja.js";
|
|
31
|
+
import { h as Qt } from "./handled-rejection-C-6Dq0As.js";
|
|
31
32
|
import { L as Yt } from "./lock-ClAFG1gy.js";
|
|
32
33
|
import { X as Xt } from "./x-B5YnXwCz.js";
|
|
33
34
|
import { C as Jt } from "./circle-off-DuT9pVy2.js";
|
|
@@ -143,7 +144,7 @@ function ln({
|
|
|
143
144
|
clearTimeout(u), m.abort();
|
|
144
145
|
};
|
|
145
146
|
}, [U, G, J]);
|
|
146
|
-
const pe = (j == null ? void 0 : j.query) === U && j.source === G,
|
|
147
|
+
const pe = (j == null ? void 0 : j.query) === U && j.source === G, F = U ? pe ? j.status : "loading" : "idle", N = pe && F === "ready" ? j.patients : [], ae = F === "loading" ? A("inputs.search.loading") : F === "error" ? A("emptyState.error.description") : F === "idle" ? D : N.length === 0 ? A("inputs.combobox.empty") : "", we = !!T && !o && !R, me = N.map((m) => ({
|
|
147
148
|
value: m.id,
|
|
148
149
|
label: m.name
|
|
149
150
|
}));
|
|
@@ -155,7 +156,7 @@ function ln({
|
|
|
155
156
|
{
|
|
156
157
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
157
158
|
"data-component": "patient-picker",
|
|
158
|
-
"data-status":
|
|
159
|
+
"data-status": F,
|
|
159
160
|
children: [
|
|
160
161
|
/* @__PURE__ */ n(
|
|
161
162
|
Qe,
|
|
@@ -172,7 +173,7 @@ function ln({
|
|
|
172
173
|
L.current = m, w(m);
|
|
173
174
|
},
|
|
174
175
|
onOpenChange: (m) => {
|
|
175
|
-
!m &&
|
|
176
|
+
!m && F !== "error" && w("");
|
|
176
177
|
},
|
|
177
178
|
filter: (m) => !U || N.some((f) => Ht(f.id) === m) ? 1 : 0,
|
|
178
179
|
size: O,
|
|
@@ -184,7 +185,7 @@ function ln({
|
|
|
184
185
|
),
|
|
185
186
|
/* @__PURE__ */ n("p", { role: "status", className: "type-body-sm ds:text-muted-foreground", children: ae }),
|
|
186
187
|
we && T ? /* @__PURE__ */ n(vt, { action: T, typedRef: L }) : null,
|
|
187
|
-
|
|
188
|
+
F === "error" ? /* @__PURE__ */ n(
|
|
188
189
|
Te,
|
|
189
190
|
{
|
|
190
191
|
size: "sm",
|
|
@@ -390,7 +391,7 @@ function hn({
|
|
|
390
391
|
readOnly: L,
|
|
391
392
|
withheld: U,
|
|
392
393
|
maskPatient: pe,
|
|
393
|
-
fallbackError:
|
|
394
|
+
fallbackError: F
|
|
394
395
|
}) {
|
|
395
396
|
var Ce;
|
|
396
397
|
const N = o === "edit", [ae, we] = V(0), [me, m] = V(D);
|
|
@@ -399,14 +400,14 @@ function hn({
|
|
|
399
400
|
() => ut(v)
|
|
400
401
|
), [Y, Ee] = V(lt), [I, r] = V(), E = (e) => Ee((i) => ({ ...i, ...e })), fe = (e) => ie((i) => ({ ...i, ...e })), [he, te] = V(f);
|
|
401
402
|
he !== f && (te(f), ie(ut(v)), Ee(lt), r(void 0));
|
|
402
|
-
const
|
|
403
|
+
const P = S({
|
|
403
404
|
subject: f,
|
|
404
405
|
saving: !1,
|
|
405
406
|
deleting: !1,
|
|
406
407
|
donePending: !1,
|
|
407
408
|
accepted: !1
|
|
408
409
|
});
|
|
409
|
-
|
|
410
|
+
P.current.subject !== f && (P.current = {
|
|
410
411
|
subject: f,
|
|
411
412
|
saving: !1,
|
|
412
413
|
deleting: !1,
|
|
@@ -417,7 +418,7 @@ function hn({
|
|
|
417
418
|
qe(() => (ge.current = !0, () => {
|
|
418
419
|
ge.current = !1;
|
|
419
420
|
}), []);
|
|
420
|
-
const B = (e) => ge.current &&
|
|
421
|
+
const B = (e) => ge.current && P.current === e, ce = S(J);
|
|
421
422
|
ce.current = J;
|
|
422
423
|
const c = !!J, [x, l] = V(0), [d, h] = V(null), ke = S(d);
|
|
423
424
|
ke.current = d;
|
|
@@ -425,7 +426,7 @@ function hn({
|
|
|
425
426
|
qe(() => {
|
|
426
427
|
const e = ce.current;
|
|
427
428
|
if (!ve || !s || !e) return;
|
|
428
|
-
const i =
|
|
429
|
+
const i = P.current, g = ke.current;
|
|
429
430
|
if ((g == null ? void 0 : g.subject) === i.subject && g.status === "ready")
|
|
430
431
|
return;
|
|
431
432
|
const p = new AbortController();
|
|
@@ -443,7 +444,7 @@ function hn({
|
|
|
443
444
|
p.signal.aborted || !B(i) || h({
|
|
444
445
|
subject: i.subject,
|
|
445
446
|
status: "error",
|
|
446
|
-
message: $e(y,
|
|
447
|
+
message: $e(y, F)
|
|
447
448
|
});
|
|
448
449
|
}
|
|
449
450
|
), () => p.abort();
|
|
@@ -480,7 +481,7 @@ function hn({
|
|
|
480
481
|
done: Y.confirmedDone
|
|
481
482
|
} : void 0;
|
|
482
483
|
}, C = (e) => Qt(new Error(`TaskEditor: ${e}`)), Be = () => {
|
|
483
|
-
const e =
|
|
484
|
+
const e = P.current;
|
|
484
485
|
if ($ !== "ready") return C(`cannot save while ${$}.`);
|
|
485
486
|
if (!ye) return C("the host gave no save seam.");
|
|
486
487
|
if (e.accepted) return C("this task was already saved.");
|
|
@@ -504,7 +505,7 @@ function hn({
|
|
|
504
505
|
e.accepted = !0, B(e) && (E({ accepted: !0 }), y && (M == null || M(y)));
|
|
505
506
|
}
|
|
506
507
|
} catch (y) {
|
|
507
|
-
throw B(e) && E({ saveError: $e(y,
|
|
508
|
+
throw B(e) && E({ saveError: $e(y, F) }), y;
|
|
508
509
|
} finally {
|
|
509
510
|
e.saving = !1, B(e) && E({ saving: !1 });
|
|
510
511
|
}
|
|
@@ -512,7 +513,7 @@ function hn({
|
|
|
512
513
|
return p.catch(() => {
|
|
513
514
|
}), p;
|
|
514
515
|
}, xe = (e) => {
|
|
515
|
-
const i =
|
|
516
|
+
const i = P.current;
|
|
516
517
|
if ($ !== "ready")
|
|
517
518
|
return C(`cannot change Done while ${$}.`);
|
|
518
519
|
if (!N || !s || !j || L)
|
|
@@ -531,7 +532,7 @@ function hn({
|
|
|
531
532
|
} catch (W) {
|
|
532
533
|
throw B(i) && E({
|
|
533
534
|
done: g,
|
|
534
|
-
doneError: $e(W,
|
|
535
|
+
doneError: $e(W, F)
|
|
535
536
|
}), W;
|
|
536
537
|
} finally {
|
|
537
538
|
i.donePending = !1, B(i) && E({ donePending: !1 });
|
|
@@ -540,7 +541,7 @@ function hn({
|
|
|
540
541
|
return y.catch(() => {
|
|
541
542
|
}), y;
|
|
542
543
|
}, Ae = () => {
|
|
543
|
-
const e =
|
|
544
|
+
const e = P.current;
|
|
544
545
|
if ($ !== "ready") return C(`cannot delete while ${$}.`);
|
|
545
546
|
if (!N || !s || !ee || L)
|
|
546
547
|
return C("the host gave no delete seam.");
|
|
@@ -552,7 +553,7 @@ function hn({
|
|
|
552
553
|
try {
|
|
553
554
|
await ee(i), e.accepted = !0, B(e) && (E({ accepted: !0, confirmDeleteOpen: !1 }), re == null || re(i));
|
|
554
555
|
} catch (p) {
|
|
555
|
-
throw B(e) && E({ deleteError: $e(p,
|
|
556
|
+
throw B(e) && E({ deleteError: $e(p, F) }), p;
|
|
556
557
|
} finally {
|
|
557
558
|
e.deleting = !1, B(e) && E({ deleting: !1 });
|
|
558
559
|
}
|
|
@@ -599,7 +600,7 @@ function hn({
|
|
|
599
600
|
p.date = W, p.time = Ye(W);
|
|
600
601
|
}
|
|
601
602
|
e.note !== void 0 && (p.note = e.note), e.typeId !== void 0 && (p.typeId = e.typeId), e.assigneeId !== void 0 && (p.assigneeId = e.assigneeId ?? _), e.about !== void 0 && (p.about = e.about), e.patientId !== void 0 && (p.patientId = e.patientId, p.about = "patient"), e.companyId !== void 0 && (p.companyId = e.companyId, p.about = "company"), e.operatorId !== void 0 && (p.operatorId = e.operatorId, p.about = "operator"), fe(p);
|
|
602
|
-
},
|
|
603
|
+
}, Fe = () => {
|
|
603
604
|
const e = Se();
|
|
604
605
|
return {
|
|
605
606
|
mode: o,
|
|
@@ -633,14 +634,14 @@ function hn({
|
|
|
633
634
|
ui: Y,
|
|
634
635
|
patchUi: E,
|
|
635
636
|
/** True once a save or delete landed in this session. */
|
|
636
|
-
isAccepted: () =>
|
|
637
|
+
isAccepted: () => P.current.accepted,
|
|
637
638
|
/** A save or delete is in flight: closing now would lose its outcome. */
|
|
638
|
-
isBusy: () =>
|
|
639
|
+
isBusy: () => P.current.saving || P.current.deleting,
|
|
639
640
|
submit: Be,
|
|
640
641
|
setDone: xe,
|
|
641
642
|
remove: Ae,
|
|
642
643
|
applyPatch: be,
|
|
643
|
-
draftState:
|
|
644
|
+
draftState: Fe
|
|
644
645
|
};
|
|
645
646
|
}
|
|
646
647
|
const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
@@ -702,7 +703,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
702
703
|
loadTask: L,
|
|
703
704
|
onCreateTask: U,
|
|
704
705
|
onUpdateTask: pe,
|
|
705
|
-
onDeleteTask:
|
|
706
|
+
onDeleteTask: F,
|
|
706
707
|
onSetTaskDone: N,
|
|
707
708
|
onCancel: ae,
|
|
708
709
|
onSaved: we,
|
|
@@ -714,11 +715,11 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
714
715
|
className: Y,
|
|
715
716
|
...Ee
|
|
716
717
|
}, I) => {
|
|
717
|
-
const { t: r } = gt("ui"), E = At(), fe = o ?? E, he = s === "edit", te = O === "subview",
|
|
718
|
+
const { t: r } = gt("ui"), E = At(), fe = o ?? E, he = s === "edit", te = O === "subview", P = !te || R, ge = f && he && u === "notice", B = f && !ge, [ce] = V(() => /* @__PURE__ */ new Map()), c = hn({
|
|
718
719
|
mode: s,
|
|
719
720
|
taskId: v,
|
|
720
721
|
initialDate: D,
|
|
721
|
-
active:
|
|
722
|
+
active: P,
|
|
722
723
|
taskTypes: T,
|
|
723
724
|
assignees: A,
|
|
724
725
|
companies: z,
|
|
@@ -729,7 +730,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
729
730
|
loadTask: L,
|
|
730
731
|
onCreateTask: U,
|
|
731
732
|
onUpdateTask: pe,
|
|
732
|
-
onDeleteTask:
|
|
733
|
+
onDeleteTask: F,
|
|
733
734
|
onSetTaskDone: N,
|
|
734
735
|
onSaved: we,
|
|
735
736
|
onDeleted: me,
|
|
@@ -768,7 +769,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
768
769
|
}),
|
|
769
770
|
[]
|
|
770
771
|
);
|
|
771
|
-
zt(un,
|
|
772
|
+
zt(un, P ? Ve : null, fe);
|
|
772
773
|
const ue = S(null), ye = Oe(
|
|
773
774
|
() => Ut(I, ue),
|
|
774
775
|
[I]
|
|
@@ -781,11 +782,11 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
781
782
|
var st;
|
|
782
783
|
const t = ue.current, b = t == null ? void 0 : t.parentElement;
|
|
783
784
|
if (!te || !R || !t || !b) return;
|
|
784
|
-
const K = C.current, oe = K && b.contains(K) && !t.contains(K) ? K : null, Tt = Ae.current, De = (oe == null ? void 0 : oe.closest("[data-task-id]")) ?? Ge(b, t).find((
|
|
785
|
+
const K = C.current, oe = K && b.contains(K) && !t.contains(K) ? K : null, Tt = Ae.current, De = (oe == null ? void 0 : oe.closest("[data-task-id]")) ?? Ge(b, t).find((Pe) => Pe.dataset.taskId === Tt), rt = De == null ? void 0 : De.dataset.taskId, at = (st = oe == null ? void 0 : oe.closest("[data-action]")) == null ? void 0 : st.dataset.action, it = De ? Ge(b, t).indexOf(De) : -1;
|
|
785
786
|
return () => {
|
|
786
787
|
if (xe.current && t.isConnected) return;
|
|
787
|
-
const
|
|
788
|
-
if (!b.isConnected ||
|
|
788
|
+
const Pe = document.activeElement;
|
|
789
|
+
if (!b.isConnected || Pe && Pe !== document.body) return;
|
|
789
790
|
const Ue = Ge(b, t), Bt = [
|
|
790
791
|
...ft(
|
|
791
792
|
Ue.find((Ie) => rt !== void 0 && Ie.dataset.taskId === rt),
|
|
@@ -801,7 +802,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
801
802
|
return;
|
|
802
803
|
};
|
|
803
804
|
}, [R, te]);
|
|
804
|
-
const se = S(null), be = S(!1),
|
|
805
|
+
const se = S(null), be = S(!1), Fe = (t) => () => {
|
|
805
806
|
be.current = !0, t();
|
|
806
807
|
};
|
|
807
808
|
Lt(() => {
|
|
@@ -889,7 +890,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
889
890
|
}
|
|
890
891
|
) : null,
|
|
891
892
|
/* @__PURE__ */ k(
|
|
892
|
-
|
|
893
|
+
Pt,
|
|
893
894
|
{
|
|
894
895
|
role: "toolbar",
|
|
895
896
|
"aria-label": r(a("actionsLabel")),
|
|
@@ -968,7 +969,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
968
969
|
ref: se,
|
|
969
970
|
intent: "outline",
|
|
970
971
|
"data-action": "retry-load",
|
|
971
|
-
onClick:
|
|
972
|
+
onClick: Fe(c.retry),
|
|
972
973
|
children: r("emptyState.error.cta")
|
|
973
974
|
}
|
|
974
975
|
)
|
|
@@ -986,7 +987,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
986
987
|
) }) : l.patientId ? /* @__PURE__ */ n(H, { label: r(a("aboutPatient")), children: /* @__PURE__ */ n(Me, { value: y(l.patientId), disabled: !0, readOnly: !0 }) }) : null, et = /* @__PURE__ */ k("fieldset", { disabled: m, className: mt(), children: [
|
|
987
988
|
m ? Xe : null,
|
|
988
989
|
/* @__PURE__ */ n(H, { label: r(a("date")), children: /* @__PURE__ */ n(
|
|
989
|
-
|
|
990
|
+
Ft,
|
|
990
991
|
{
|
|
991
992
|
value: l.date,
|
|
992
993
|
onChange: (t) => c.patchFields({ date: t })
|
|
@@ -1144,12 +1145,12 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1144
1145
|
] }), tt = x === "loading" ? St : x === "error" ? Ct : x === "locked" ? Dt : x === "withheld" ? /* @__PURE__ */ n(
|
|
1145
1146
|
Gt,
|
|
1146
1147
|
{
|
|
1147
|
-
onTurnOff: ie ?
|
|
1148
|
+
onTurnOff: ie ? Fe(ie) : void 0
|
|
1148
1149
|
}
|
|
1149
1150
|
) : te ? et : /* @__PURE__ */ n($t, { orientation: "vertical", className: "ds:min-h-0 ds:flex-1", children: et }), Le = x === "ready" ? Ze(!0) : x === "locked" || x === "withheld" ? Ze(!1) : null, Rt = x === "ready" && c.showDelete, nt = he ? /* @__PURE__ */ n(
|
|
1150
1151
|
de,
|
|
1151
1152
|
{
|
|
1152
|
-
open: d.confirmDeleteOpen &&
|
|
1153
|
+
open: d.confirmDeleteOpen && P,
|
|
1153
1154
|
onOpenChange: (t) => {
|
|
1154
1155
|
d.deleting || c.patchUi(
|
|
1155
1156
|
t ? { confirmDeleteOpen: !0 } : { confirmDeleteOpen: !1, deleteError: void 0 }
|
|
@@ -1253,4 +1254,4 @@ export {
|
|
|
1253
1254
|
yn as T,
|
|
1254
1255
|
un as t
|
|
1255
1256
|
};
|
|
1256
|
-
//# sourceMappingURL=task-editor-
|
|
1257
|
+
//# sourceMappingURL=task-editor-DvwqPfFR.js.map
|