@alfadocs/ui-kit 1.115.0 → 1.117.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/accessible-target-D3j6F-AG.js +7 -0
- package/dist/_chunks/{actions-cell-renderer-bI27uXXC.js → actions-cell-renderer-DTaIQKp9.js} +3 -3
- package/dist/_chunks/{address-autocomplete-DC-H-MZw.js → address-autocomplete-Bnc9ieKO.js} +2 -2
- package/dist/_chunks/{address-fields-D5Ije0S2.js → address-fields-RIaGnpnm.js} +4 -4
- package/dist/_chunks/{anamnesis-card-Ddnrdfx3.js → anamnesis-card-sUFT0dpF.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-card-S1H_AARG.js → anamnesis-summary-card-BtFPpegp.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-BZ36ULQk.js → anamnesis-summary-rows-BbAREK-3.js} +7 -7
- package/dist/_chunks/{antenatal-schedule-timeline-va9zx7tJ.js → antenatal-schedule-timeline-86YVlMYJ.js} +2 -2
- package/dist/_chunks/{appointment-card-D_-aBrx5.js → appointment-card-0PebvrOS.js} +3 -3
- package/dist/_chunks/{appointment-peek-DWfcpoGy.js → appointment-peek-DdUhqfEi.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DxLu3afn.js → appointment-timeline-CC7nmBOH.js} +3 -3
- package/dist/_chunks/{appointment-tray-BhXOJpIJ.js → appointment-tray-B04zKY7g.js} +2 -2
- package/dist/_chunks/arrow-down-left-DECv-dJt.js +15 -0
- package/dist/_chunks/{balance-badge-cell-CXHihM22.js → balance-badge-cell-DPjab0eJ.js} +6 -6
- package/dist/_chunks/bill-line-table-vCnVo7_a.js +1565 -0
- package/dist/_chunks/{bishop-score-QJu-sM1y.js → bishop-score-CKztphVz.js} +2 -2
- package/dist/_chunks/{bmi-calculator-Ba4yoR31.js → bmi-calculator-rri5vvMt.js} +3 -3
- package/dist/_chunks/{button-group-CUnNnt8a.js → button-group-B2MJo0Se.js} +2 -2
- package/dist/_chunks/{calculator-dialog-D4TyJwqy.js → calculator-dialog-BGX5XQCM.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BVzFi4hH.js → calendar-appointment-editor-dialog-BEmBcb61.js} +18 -18
- package/dist/_chunks/{card-DVO3x8E-.js → card-n6W6LW-N.js} +78 -47
- package/dist/_chunks/{care-plan-card-BA3MfdfZ.js → care-plan-card-bGTIliXc.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-CUtFZ813.js → care-plan-entry-card-cdojypxu.js} +3 -3
- package/dist/_chunks/{chart-DebrFZ6L.js → chart-Aue_2dMb.js} +2 -2
- package/dist/_chunks/circle-off-DuT9pVy2.js +16 -0
- package/dist/_chunks/{clinical-note-card-Zz5_GEz-.js → clinical-note-card-DHn5W_bv.js} +2 -2
- package/dist/_chunks/combobox-BBCVQS-S.js +935 -0
- package/dist/_chunks/{compact-editor-fields-cP6yh7xv.js → compact-editor-fields-6sTWRLtf.js} +3 -3
- package/dist/_chunks/{connection-status-DjarASoU.js → connection-status-DWClakYw.js} +2 -2
- package/dist/_chunks/{contact-card-Cv-Nwvac.js → contact-card-CGpbYuxl.js} +2 -2
- package/dist/_chunks/{contact-profile-card-DMXWBBkU.js → contact-profile-card-BubJPyRB.js} +3 -3
- package/dist/_chunks/{country-select-CUuGOAoZ.js → country-select-C2GdvRtS.js} +2 -2
- package/dist/_chunks/{cycle-calculator-C68V9rdH.js → cycle-calculator-C8nWAeTk.js} +3 -3
- package/dist/_chunks/{dashboard-grid-DrOkTtya.js → dashboard-grid-CaxgaEgI.js} +2 -2
- package/dist/_chunks/{toolbar-Bc3pjfG5.js → data-grid-DiBSbN2Y.js} +3017 -3106
- package/dist/_chunks/{data-grid-tabs-CsLbIv0h.js → data-grid-tabs-D9Y4DeeH.js} +2 -2
- package/dist/_chunks/{data-table-DXaE2Ret.js → data-table-DhYx-hCD.js} +101 -100
- package/dist/_chunks/{date-range-panel-CBFfkgmz.js → date-range-panel-CT6nXjRM.js} +7 -7
- package/dist/_chunks/default-tabs-CD285u0C.js +2250 -0
- package/dist/_chunks/dialog-CIUn5oLb.js +348 -0
- package/dist/_chunks/{document-preview-WvJKHJOP.js → document-preview-BWDTCEHI.js} +3 -3
- package/dist/_chunks/dropdown-menu-Dw6sgQwJ.js +679 -0
- package/dist/_chunks/{due-date-calculator-C1UA5jpS.js → due-date-calculator-c1NJPw9F.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-CtlMhLai.js → editable-currency-cell-renderer-BlK-8A7b.js} +2 -2
- package/dist/_chunks/{entity-summary-DGCBQDt1.js → entity-summary-BanguTa6.js} +2 -2
- package/dist/_chunks/export-files-BByoK9Cg.js +248 -0
- package/dist/_chunks/{face-scheme-DkoxiDCh.js → face-scheme-Bt07zQJU.js} +20 -19
- package/dist/_chunks/{fetal-weight-DmZzMRzB.js → fetal-weight-D0KofJJw.js} +3 -3
- package/dist/_chunks/{file-manager-DFFExyym.js → file-manager-CV1_GtjC.js} +5 -5
- package/dist/_chunks/{finished-terminal-BKTFUk3S.js → finished-terminal-FR8uc_Ws.js} +2 -2
- package/dist/_chunks/{forgot-password-form-Bc_UPax6.js → forgot-password-form-YvI9vX-G.js} +2 -2
- package/dist/_chunks/format-price-CIX0YJZn.js +179 -0
- package/dist/_chunks/{gestational-age-calculator-60y1RyQL.js → gestational-age-calculator-Cg4Gq42R.js} +3 -3
- package/dist/_chunks/{grid-context-AwsLJRhH.js → grid-context-jn9y8tNE.js} +4 -4
- package/dist/_chunks/{hcg-doubling-CC-dbKE8.js → hcg-doubling-BjTa_77t.js} +3 -3
- package/dist/_chunks/{header-settings-Df9q1uHt.js → header-settings-DsvheAOt.js} +160 -147
- package/dist/_chunks/{heatmap-eXdtmEoU.js → heatmap-BurtKmeu.js} +3 -3
- package/dist/_chunks/{help-me-write-templates-CWxgjDZl.js → help-me-write-templates-C28E_rOt.js} +2 -2
- package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
- package/dist/_chunks/{icon-button-group-C9mPK-bX.js → icon-button-group-BKtkVZ1W.js} +2 -2
- package/dist/_chunks/{kit-extensions-CzG0RmhQ.js → kit-extensions-C3oL0WTp.js} +7 -7
- package/dist/_chunks/{link-cell-renderer-Ditt5mvT.js → link-cell-renderer-NFNGdAGt.js} +4 -4
- package/dist/_chunks/{login-dev-card-CPndtWdz.js → login-dev-card-Dz3ezx1o.js} +2 -2
- package/dist/_chunks/map-view-Frj8vE7n.js +1105 -0
- package/dist/_chunks/{maps-core-gate-DkNqGkm3.js → maps-core-gate-Dgs7jXxy.js} +6 -6
- package/dist/_chunks/{marketplace-app-shell-CcEHJgDd.js → marketplace-app-shell-BOBWmzoT.js} +6 -6
- package/dist/_chunks/money-OE6_oDPH.js +138 -0
- package/dist/_chunks/{muscle-scheme-BkmDUTmk.js → muscle-scheme-C9dnSxzw.js} +2 -2
- package/dist/_chunks/{notes-panel-BVYG_MJE.js → notes-panel-CHR-Jv6N.js} +5 -5
- package/dist/_chunks/{notification-card-CPW4poUr.js → notification-card-DRMv2_pW.js} +20 -20
- package/dist/_chunks/{notification-tray-CQK3lw87.js → notification-tray-mlCfxNRH.js} +2 -2
- package/dist/_chunks/number-input-DUSvP7Dq.js +625 -0
- package/dist/_chunks/{operator-hero-BWayX73x.js → operator-hero-CnfWckNQ.js} +2 -2
- package/dist/_chunks/{optical-prescription-CvbN8yD2.js → optical-prescription-Da_r8pMr.js} +2 -2
- package/dist/_chunks/parts-CcyRkB8t.js +869 -0
- package/dist/_chunks/{patient-details-DlT-vpSe.js → patient-details-C4dHR4iu.js} +3 -3
- package/dist/_chunks/{patient-field-row-B54uzvu-.js → patient-field-row-0QP8KCVp.js} +5 -5
- package/dist/_chunks/{patient-search-DDRDCjZi.js → patient-search-D_S7joff.js} +3 -3
- package/dist/_chunks/{patient-summary-card-Dy9-CzON.js → patient-summary-card-x0-AhCyC.js} +4 -4
- package/dist/_chunks/{payment-automation-upsell-D7yaD4u1.js → payment-automation-upsell-CGdG2Mwk.js} +2 -2
- package/dist/_chunks/{payment-request-card-BmV2pLoM.js → payment-request-card-CEIalOtr.js} +15 -14
- package/dist/_chunks/{periodontal-chart-Bjz7O4wT.js → periodontal-chart-DqHrQY4e.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-CxEXHl2x.js → periodontal-chart-card-q9WSHRC2.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-DnZuZD14.js → periodontal-diagnosis-CJPWluQU.js} +2 -2
- package/dist/_chunks/{periodontal-risk-chart-BBPB9wf1.js → periodontal-risk-chart-CKkyOROk.js} +2 -2
- package/dist/_chunks/{practice-profile-hero-Cw4NZp0A.js → practice-profile-hero-BFS6lO2a.js} +2 -2
- package/dist/_chunks/{practice-results-BlxfBx-D.js → practice-results-CzHWprX4.js} +922 -787
- package/dist/_chunks/{pregnancy-dating-qZpw3zj8.js → pregnancy-dating-BO6diQMZ.js} +4 -4
- package/dist/_chunks/{pregnancy-weight-gain-DQoOM8QV.js → pregnancy-weight-gain-DkGcEc_l.js} +3 -3
- package/dist/_chunks/{privacy-mask-BlJK51MD.js → privacy-mask-DJ1gee4c.js} +2 -2
- package/dist/_chunks/{province-select-cVOlwEc5.js → province-select-CTM8A9SM.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-C1LGeX-G.js → radiograph-panel.agent-9jwXlOXB.js} +2 -2
- package/dist/_chunks/{registration-form-DW-0X7S4.js → registration-form-CMXefBnC.js} +2 -2
- package/dist/_chunks/{reserved.agent-6p3Hm4oH.js → reserved.agent-TaZfI3yj.js} +5 -5
- package/dist/_chunks/{reset-password-form-C93SH0Tx.js → reset-password-form-D_TePSM1.js} +2 -2
- package/dist/_chunks/{reviews-panel-CfJPEkH7.js → reviews-panel-CdHUSndF.js} +2 -2
- package/dist/_chunks/{rich-text-editor-efaMWbYz.js → rich-text-editor-CMPA5Wgy.js} +12 -11
- package/dist/_chunks/row-actions-Dpf9CrCP.js +213 -0
- package/dist/_chunks/{section-card-DFr2wGal.js → section-card-CYfeQ6EQ.js} +2 -2
- package/dist/_chunks/{send-registration-link-form-DWxWa_cJ.js → send-registration-link-form-DuZQuKnI.js} +2 -2
- package/dist/_chunks/{signature-request-BnTihryS.js → signature-request-Dzs0jZsd.js} +3 -3
- package/dist/_chunks/{tab-bar-C_pggqVr.js → tab-bar-CF8R38Og.js} +2 -2
- package/dist/_chunks/{tabs-CXYjr_8O.js → tabs-P4qFmxk5.js} +2 -2
- package/dist/_chunks/{task-editor-CSa6vQ9r.js → task-editor-WdDCqbIL.js} +168 -178
- package/dist/_chunks/{tasks-panel-CVjY1d7Q.js → tasks-panel-DBSm3WjK.js} +2 -2
- package/dist/_chunks/{theme-toggle-CObX2Ffa.js → theme-toggle-CeKl8f_f.js} +3 -3
- package/dist/_chunks/{timeline-AMqE-c2T.js → timeline-DXko0M1t.js} +2 -2
- package/dist/_chunks/{token-insert-menu-Dl3x2ekR.js → token-insert-menu-BrK5NQIq.js} +2 -2
- package/dist/_chunks/toolbar-z8vXnpXz.js +159 -0
- package/dist/_chunks/{tooth-scheme-C-ALCHaV.js → tooth-scheme-DHRxV2sE.js} +2 -2
- package/dist/_chunks/{transaction-chip-CohY6sTA.js → transaction-chip-CkYd-3ky.js} +47 -57
- package/dist/_chunks/{treatment-receipt-BydbojdD.js → treatment-receipt-1VnuinhY.js} +2 -2
- package/dist/_chunks/undo-2-EBxWjj1W.js +15 -0
- package/dist/_chunks/{unit-converter-D77vmlzN.js → unit-converter-YKlHyUC2.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-BMAiQYo6.js → use-appointment-details-read-B-SXnszJ.js} +10 -10
- package/dist/_chunks/{verify-identity-types-C85EXNzy.js → verify-identity-types-D_LdByCp.js} +2 -2
- package/dist/_chunks/{widget-picker-U4JsEhQE.js → widget-picker-DrxJjEkv.js} +2 -2
- package/dist/_chunks/{workflow-map-B4XkcET0.js → workflow-map-DCjkRuS_.js} +3 -3
- package/dist/_chunks/{workflow-status-9wb7iWUd.js → workflow-status-D0avpoeS.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-DNSe65yd.js → workflow-webhook-action-dgUjv9T7.js} +3 -3
- package/dist/agent-catalog.json +1080 -1
- package/dist/agent-i18n/en.json +50 -0
- package/dist/browser-support.js +2 -0
- package/dist/components/_shared/accessible-target.d.ts +19 -0
- package/dist/components/_shared/decimal.d.ts +171 -0
- package/dist/components/_shared/focus-visible.d.ts +8 -0
- package/dist/components/_shared/format-price.d.ts +54 -2
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- 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/bill-line-table/bill-line-table.agent.d.ts +4 -0
- package/dist/components/bill-line-table/bill-line-table.columns.d.ts +49 -0
- package/dist/components/bill-line-table/bill-line-table.d.ts +4 -0
- package/dist/components/bill-line-table/bill-line-table.model.d.ts +173 -0
- package/dist/components/bill-line-table/bill-line-table.types.d.ts +443 -0
- package/dist/components/bill-line-table/bill-line-table.variants.d.ts +36 -0
- package/dist/components/bill-line-table/index.d.ts +6 -0
- package/dist/components/bill-line-table/index.js +23 -0
- package/dist/components/bill-table/bill-table.agent.d.ts +4 -0
- package/dist/components/bill-table/bill-table.d.ts +13 -0
- package/dist/components/bill-table/bill-table.variants.d.ts +55 -0
- package/dist/components/bill-table/cells.d.ts +89 -0
- package/dist/components/bill-table/columns.d.ts +21 -0
- package/dist/components/bill-table/default-tabs.d.ts +21 -0
- package/dist/components/bill-table/handle.d.ts +19 -0
- package/dist/components/bill-table/index.d.ts +7 -0
- package/dist/components/bill-table/index.js +19 -0
- package/dist/components/bill-table/model.d.ts +103 -0
- package/dist/components/bill-table/row-actions.d.ts +27 -0
- package/dist/components/bill-table/status-maps.d.ts +225 -0
- package/dist/components/bill-table/types.d.ts +542 -0
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/card/card.d.ts +9 -2
- package/dist/components/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/chart/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +59 -1
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-grid/body.d.ts +6 -0
- package/dist/components/data-grid/data-grid.variants.d.ts +1 -9
- package/dist/components/data-grid/editors.d.ts +7 -1
- package/dist/components/data-grid/index.js +9 -8
- package/dist/components/data-grid/selection.d.ts +10 -0
- package/dist/components/data-grid/types.d.ts +61 -11
- package/dist/components/data-grid-tabs/index.js +1 -1
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/dialog/focus-return.d.ts +12 -0
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -0
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header-settings/header-settings.d.ts +7 -3
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/map-view/index.d.ts +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +48 -0
- package/dist/components/money/index.js +1 -1
- package/dist/components/money/money.d.ts +39 -6
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-card/notification-card.d.ts +2 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.d.ts +43 -2
- package/dist/components/number-input/use-locale-number.d.ts +67 -3
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +20 -0
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/row-actions/index.d.ts +3 -0
- package/dist/components/row-actions/index.js +5 -0
- package/dist/components/row-actions/row-actions.d.ts +63 -0
- package/dist/components/section-card/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/smart-date/smart-date.d.ts +1 -1
- package/dist/components/tab-bar/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/theme-toggle/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/decimal/index.js +149 -0
- package/dist/host-compat.css +7 -1
- package/dist/i18n/locales/ar.d.ts +262 -0
- package/dist/i18n/locales/ar.js +263 -1
- package/dist/i18n/locales/de.d.ts +262 -0
- package/dist/i18n/locales/de.js +263 -1
- package/dist/i18n/locales/el.d.ts +262 -0
- package/dist/i18n/locales/el.js +263 -1
- package/dist/i18n/locales/en.d.ts +262 -0
- package/dist/i18n/locales/en.js +263 -1
- package/dist/i18n/locales/es.d.ts +262 -0
- package/dist/i18n/locales/es.js +263 -1
- package/dist/i18n/locales/fr.d.ts +262 -0
- package/dist/i18n/locales/fr.js +263 -1
- package/dist/i18n/locales/hi.d.ts +262 -0
- package/dist/i18n/locales/hi.js +263 -1
- package/dist/i18n/locales/it.d.ts +262 -0
- package/dist/i18n/locales/it.js +263 -1
- package/dist/i18n/locales/ja.d.ts +262 -0
- package/dist/i18n/locales/ja.js +263 -1
- package/dist/i18n/locales/nl.d.ts +262 -0
- package/dist/i18n/locales/nl.js +263 -1
- package/dist/i18n/locales/pl.d.ts +262 -0
- package/dist/i18n/locales/pl.js +263 -1
- package/dist/i18n/locales/pt.d.ts +262 -0
- package/dist/i18n/locales/pt.js +263 -1
- package/dist/i18n/locales/ro.d.ts +262 -0
- package/dist/i18n/locales/ro.js +263 -1
- package/dist/i18n/locales/ru.d.ts +262 -0
- package/dist/i18n/locales/ru.js +263 -1
- package/dist/i18n/locales/sq.d.ts +262 -0
- package/dist/i18n/locales/sq.js +263 -1
- package/dist/i18n/locales/sv.d.ts +262 -0
- package/dist/i18n/locales/sv.js +263 -1
- package/dist/i18n/locales/tr.d.ts +262 -0
- package/dist/i18n/locales/tr.js +263 -1
- package/dist/i18n/locales/zh.d.ts +262 -0
- package/dist/i18n/locales/zh.js +263 -1
- package/dist/index.js +1298 -1246
- package/dist/locales/ar.json +263 -1
- package/dist/locales/de.json +263 -1
- package/dist/locales/el.json +263 -1
- package/dist/locales/en.json +263 -1
- package/dist/locales/es.json +263 -1
- package/dist/locales/fr.json +263 -1
- package/dist/locales/hi.json +263 -1
- package/dist/locales/it.json +263 -1
- package/dist/locales/ja.json +263 -1
- package/dist/locales/nl.json +263 -1
- package/dist/locales/pl.json +263 -1
- package/dist/locales/pt.json +263 -1
- package/dist/locales/ro.json +263 -1
- package/dist/locales/ru.json +263 -1
- package/dist/locales/sq.json +263 -1
- package/dist/locales/sv.json +263 -1
- package/dist/locales/tr.json +263 -1
- package/dist/locales/zh.json +263 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/reset-password-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/verify-identity/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +22 -3
- package/dist/_chunks/combobox-duuDRI1t.js +0 -688
- package/dist/_chunks/dialog-BTjSQjdY.js +0 -274
- package/dist/_chunks/dropdown-menu-CqxBthww.js +0 -595
- package/dist/_chunks/format-price-BcFBa-WP.js +0 -52
- package/dist/_chunks/map-view-Bny79cWa.js +0 -856
- package/dist/_chunks/money-Tsczpjfz.js +0 -102
- package/dist/_chunks/number-input-CVwI1ltI.js +0 -423
- package/dist/_chunks/parts-Wz2LeGnH.js +0 -1113
- package/dist/_chunks/undo-2-CYNAzclj.js +0 -26
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { jsx as n, jsxs as k, Fragment as
|
|
2
|
-
import { useState as q, useRef as C, useEffect as qe, forwardRef as
|
|
1
|
+
import { jsx as n, jsxs as k, Fragment as Te } from "react/jsx-runtime";
|
|
2
|
+
import { useState as q, useRef as C, useEffect as qe, forwardRef as At, useId as Bt, useMemo as Pe } from "react";
|
|
3
3
|
import { c as ht } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as gt } from "react-i18next";
|
|
5
5
|
import { A as $ } from "./alert-C4WKViaS.js";
|
|
6
6
|
import { B as $e } from "./button-DohK_Ak_.js";
|
|
7
7
|
import { I as We } from "./icon-button-S8_weU3g.js";
|
|
8
|
-
import { C as Qe } from "./combobox-
|
|
9
|
-
import { D as le } from "./dialog-
|
|
10
|
-
import { D as
|
|
8
|
+
import { C as Qe } from "./combobox-BBCVQS-S.js";
|
|
9
|
+
import { D as le } from "./dialog-CIUn5oLb.js";
|
|
10
|
+
import { D as Ft } from "./date-picker-DBVTj6lO.js";
|
|
11
11
|
import { F as H } from "./form-field-CyHfOVKF.js";
|
|
12
|
-
import { I as
|
|
13
|
-
import { P as
|
|
14
|
-
import { P as
|
|
12
|
+
import { I as xt } from "./icon-button-group-BKtkVZ1W.js";
|
|
13
|
+
import { P as Pt } from "./panel-header-CbtlTe85.js";
|
|
14
|
+
import { P as Ot } from "./panel-subview-DCyvn-49.js";
|
|
15
15
|
import { R as Oe } from "./radio-BZQs6_36.js";
|
|
16
16
|
import { R as jt } from "./radio-group-ChIKyeSJ.js";
|
|
17
|
-
import { S as
|
|
17
|
+
import { S as Mt } from "./scroll-area-CY5SLYNw.js";
|
|
18
18
|
import { S as Ke } from "./select-uESzXTX6.js";
|
|
19
19
|
import { S as He } from "./skeleton-tTWJpvAq.js";
|
|
20
|
-
import { S as
|
|
21
|
-
import { T as
|
|
22
|
-
import { T as
|
|
20
|
+
import { S as $t } from "./switch-DO6uC4HJ.js";
|
|
21
|
+
import { T as qt } from "./text-area-COMVJ1yE.js";
|
|
22
|
+
import { T as je } from "./text-input-B6iAgCr3.js";
|
|
23
23
|
import { T as Vt } from "./time-picker-DDr5vhwQ.js";
|
|
24
|
-
import { u as
|
|
25
|
-
import { u as
|
|
26
|
-
import { c as
|
|
27
|
-
import {
|
|
28
|
-
import { n as
|
|
29
|
-
import { P as
|
|
30
|
-
import { g as
|
|
31
|
-
import { L as
|
|
32
|
-
import { X as
|
|
33
|
-
import {
|
|
24
|
+
import { u as _t } from "./registry-DvAUVLHh.js";
|
|
25
|
+
import { u as zt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
26
|
+
import { c as Lt } from "./compose-refs-C0k0tdqF.js";
|
|
27
|
+
import { a as Ut, E as Wt } from "./compact-editor-fields-6sTWRLtf.js";
|
|
28
|
+
import { n as Kt } from "./normalize-diacritics-BNGbFNlJ.js";
|
|
29
|
+
import { P as Ht } from "./privacy-mask-DJ1gee4c.js";
|
|
30
|
+
import { g as Me, h as Gt } from "./handled-rejection-6gqCf5vt.js";
|
|
31
|
+
import { L as Qt } from "./lock-ClAFG1gy.js";
|
|
32
|
+
import { X as Yt } from "./x-B5YnXwCz.js";
|
|
33
|
+
import { C as Xt } from "./circle-off-DuT9pVy2.js";
|
|
34
34
|
import { U as Jt } from "./user-B12p7bVF.js";
|
|
35
35
|
import { B as Zt } from "./building-2-D33bLCWL.js";
|
|
36
36
|
import { S as en } from "./stethoscope-sZXGC43m.js";
|
|
@@ -38,24 +38,14 @@ import { T as dt } from "./trash-2-uumy3fy1.js";
|
|
|
38
38
|
import { S as lt } from "./square-check-big-dj0o8yA3.js";
|
|
39
39
|
import { p as tn } from "./privacy-mask-text-B8YfzB7L.js";
|
|
40
40
|
import { L as nn } from "./loader-circle-BECIU_8N.js";
|
|
41
|
+
import { c as on } from "./createLucideIcon-DhHxpK9K.js";
|
|
41
42
|
/**
|
|
42
43
|
* @license lucide-react v1.22.0 - ISC
|
|
43
44
|
*
|
|
44
45
|
* This source code is licensed under the ISC license.
|
|
45
46
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
47
|
*/
|
|
47
|
-
const
|
|
48
|
-
["path", { d: "m2 2 20 20", key: "1ooewy" }],
|
|
49
|
-
["path", { d: "M8.35 2.69A10 10 0 0 1 21.3 15.65", key: "1pfsoa" }],
|
|
50
|
-
["path", { d: "M19.08 19.08A10 10 0 1 1 4.92 4.92", key: "1ablyi" }]
|
|
51
|
-
], rn = vt("circle-off", on);
|
|
52
|
-
/**
|
|
53
|
-
* @license lucide-react v1.22.0 - ISC
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the ISC license.
|
|
56
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/
|
|
58
|
-
const an = [
|
|
48
|
+
const rn = [
|
|
59
49
|
[
|
|
60
50
|
"path",
|
|
61
51
|
{
|
|
@@ -65,14 +55,14 @@ const an = [
|
|
|
65
55
|
],
|
|
66
56
|
["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
|
|
67
57
|
["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
|
|
68
|
-
],
|
|
69
|
-
function
|
|
58
|
+
], an = on("save", rn);
|
|
59
|
+
function sn({
|
|
70
60
|
patients: o = [],
|
|
71
61
|
searchPatients: l,
|
|
72
62
|
...I
|
|
73
63
|
}) {
|
|
74
64
|
if (l)
|
|
75
|
-
return /* @__PURE__ */ n(
|
|
65
|
+
return /* @__PURE__ */ n(dn, { ...I, searchPatients: l });
|
|
76
66
|
const { value: y, onValueChange: x, selectedLabel: B, placeholder: Y, size: D, disabled: X } = I;
|
|
77
67
|
return /* @__PURE__ */ n(
|
|
78
68
|
Qe,
|
|
@@ -80,8 +70,8 @@ function dn({
|
|
|
80
70
|
value: y,
|
|
81
71
|
onValueChange: x,
|
|
82
72
|
options: [
|
|
83
|
-
...y && !o.some((
|
|
84
|
-
...o.map((
|
|
73
|
+
...y && !o.some((T) => T.id === y) ? [{ value: y, label: B ?? "" }] : [],
|
|
74
|
+
...o.map((T) => ({ value: T.id, label: T.name }))
|
|
85
75
|
],
|
|
86
76
|
placeholder: Y,
|
|
87
77
|
size: D,
|
|
@@ -90,7 +80,7 @@ function dn({
|
|
|
90
80
|
}
|
|
91
81
|
);
|
|
92
82
|
}
|
|
93
|
-
function
|
|
83
|
+
function dn({
|
|
94
84
|
value: o,
|
|
95
85
|
onValueChange: l,
|
|
96
86
|
selectedLabel: I,
|
|
@@ -99,7 +89,7 @@ function ln({
|
|
|
99
89
|
disabled: B,
|
|
100
90
|
searchPatients: Y
|
|
101
91
|
}) {
|
|
102
|
-
const { t: D } = gt("ui"), [X,
|
|
92
|
+
const { t: D } = gt("ui"), [X, T] = q(""), [J, Z] = q(0), [P, se] = q(), [N, ee] = q(), _ = C(null), O = X.trim();
|
|
103
93
|
qe(() => {
|
|
104
94
|
if (!O) return;
|
|
105
95
|
const m = new AbortController(), S = { query: O, source: Y };
|
|
@@ -118,11 +108,11 @@ function ln({
|
|
|
118
108
|
clearTimeout(ce), m.abort();
|
|
119
109
|
};
|
|
120
110
|
}, [O, Y, J]);
|
|
121
|
-
const z = (
|
|
111
|
+
const z = (N == null ? void 0 : N.query) === O && N.source === Y, L = O ? z ? N.status : "loading" : "idle", te = z && L === "ready" ? N.patients : [], ne = L === "loading" ? D("inputs.search.loading") : L === "error" ? D("emptyState.error.description") : L === "idle" ? y : te.length === 0 ? D("inputs.combobox.empty") : "", j = te.map((m) => ({
|
|
122
112
|
value: m.id,
|
|
123
113
|
label: m.name
|
|
124
114
|
}));
|
|
125
|
-
return o && !te.some((m) => m.id === o) &&
|
|
115
|
+
return o && !te.some((m) => m.id === o) && j.push({
|
|
126
116
|
value: o,
|
|
127
117
|
label: (P == null ? void 0 : P.id) === o ? P.name : I ?? ""
|
|
128
118
|
}), /* @__PURE__ */ k(
|
|
@@ -135,19 +125,19 @@ function ln({
|
|
|
135
125
|
/* @__PURE__ */ n(
|
|
136
126
|
Qe,
|
|
137
127
|
{
|
|
138
|
-
ref:
|
|
139
|
-
options:
|
|
128
|
+
ref: _,
|
|
129
|
+
options: j,
|
|
140
130
|
value: o,
|
|
141
131
|
onValueChange: (m) => {
|
|
142
132
|
se(
|
|
143
133
|
(S) => te.find((ce) => ce.id === m) ?? ((S == null ? void 0 : S.id) === m ? S : void 0)
|
|
144
134
|
), l(m);
|
|
145
135
|
},
|
|
146
|
-
onQueryChange:
|
|
136
|
+
onQueryChange: T,
|
|
147
137
|
onOpenChange: (m) => {
|
|
148
|
-
!m && L !== "error" &&
|
|
138
|
+
!m && L !== "error" && T("");
|
|
149
139
|
},
|
|
150
|
-
filter: (m) => !O || te.some((S) =>
|
|
140
|
+
filter: (m) => !O || te.some((S) => Kt(S.id) === m) ? 1 : 0,
|
|
151
141
|
size: x,
|
|
152
142
|
disabled: B,
|
|
153
143
|
placeholder: y,
|
|
@@ -163,7 +153,7 @@ function ln({
|
|
|
163
153
|
intent: "ghost",
|
|
164
154
|
onClick: () => {
|
|
165
155
|
var m;
|
|
166
|
-
Z((S) => S + 1), (m =
|
|
156
|
+
Z((S) => S + 1), (m = _.current) == null || m.focus();
|
|
167
157
|
},
|
|
168
158
|
children: D("emptyState.error.cta")
|
|
169
159
|
}
|
|
@@ -172,7 +162,7 @@ function ln({
|
|
|
172
162
|
}
|
|
173
163
|
);
|
|
174
164
|
}
|
|
175
|
-
const
|
|
165
|
+
const ln = {
|
|
176
166
|
id: "task-editor",
|
|
177
167
|
// set_value backs set_fields and set_done; submit backs save; dismiss
|
|
178
168
|
// backs cancel.
|
|
@@ -285,7 +275,7 @@ const cn = {
|
|
|
285
275
|
description: "Sourced from the id prop, or generated. Addresses one editor from the agent. [data-component-id] reaches the footer actions in both variants."
|
|
286
276
|
}
|
|
287
277
|
}
|
|
288
|
-
},
|
|
278
|
+
}, V = "none", ct = {
|
|
289
279
|
showError: !1,
|
|
290
280
|
saving: !1,
|
|
291
281
|
saveError: void 0,
|
|
@@ -298,7 +288,7 @@ const cn = {
|
|
|
298
288
|
confirmDeleteOpen: !1,
|
|
299
289
|
accepted: !1
|
|
300
290
|
};
|
|
301
|
-
function
|
|
291
|
+
function cn(o) {
|
|
302
292
|
return o.patientId ? "patient" : o.companyId ? "company" : o.operatorId ? "operator" : "nobody";
|
|
303
293
|
}
|
|
304
294
|
function Ye(o) {
|
|
@@ -310,37 +300,37 @@ function ut(o) {
|
|
|
310
300
|
date: l,
|
|
311
301
|
time: Ye(l),
|
|
312
302
|
note: "",
|
|
313
|
-
operatorId:
|
|
303
|
+
operatorId: V,
|
|
314
304
|
typeId: "",
|
|
315
|
-
assigneeId:
|
|
305
|
+
assigneeId: V,
|
|
316
306
|
about: "nobody",
|
|
317
307
|
patientId: "",
|
|
318
308
|
companyId: ""
|
|
319
309
|
};
|
|
320
310
|
}
|
|
321
|
-
function
|
|
311
|
+
function un(o) {
|
|
322
312
|
const l = new Date(o.dateIso);
|
|
323
313
|
return {
|
|
324
314
|
date: l,
|
|
325
315
|
time: Ye(l),
|
|
326
316
|
note: o.note,
|
|
327
317
|
/* `||`, not `??`: a host's '' is unset, like patient and company. */
|
|
328
|
-
operatorId: o.operatorId ||
|
|
318
|
+
operatorId: o.operatorId || V,
|
|
329
319
|
/* A stored type wins. With none, '' falls through to the first entry. */
|
|
330
320
|
typeId: o.typeId ?? "",
|
|
331
321
|
/* `||` too: '' would become a Select option with an empty value. */
|
|
332
|
-
assigneeId: o.assigneeId ||
|
|
333
|
-
about:
|
|
322
|
+
assigneeId: o.assigneeId || V,
|
|
323
|
+
about: cn(o),
|
|
334
324
|
patientId: o.patientId ?? "",
|
|
335
325
|
companyId: o.companyId ?? ""
|
|
336
326
|
};
|
|
337
327
|
}
|
|
338
|
-
const
|
|
328
|
+
const pn = [
|
|
339
329
|
["patientId", "patient"],
|
|
340
330
|
["companyId", "company"],
|
|
341
331
|
["operatorId", "operator"]
|
|
342
332
|
];
|
|
343
|
-
function
|
|
333
|
+
function mn({
|
|
344
334
|
mode: o,
|
|
345
335
|
taskId: l,
|
|
346
336
|
initialDate: I,
|
|
@@ -350,14 +340,14 @@ function fn({
|
|
|
350
340
|
companies: Y,
|
|
351
341
|
operators: D,
|
|
352
342
|
patients: X,
|
|
353
|
-
searchedPatients:
|
|
343
|
+
searchedPatients: T,
|
|
354
344
|
resolvePatientLabel: J,
|
|
355
345
|
loadTask: Z,
|
|
356
346
|
onCreateTask: P,
|
|
357
347
|
onUpdateTask: se,
|
|
358
|
-
onDeleteTask:
|
|
348
|
+
onDeleteTask: N,
|
|
359
349
|
onSetTaskDone: ee,
|
|
360
|
-
onSaved:
|
|
350
|
+
onSaved: _,
|
|
361
351
|
onDeleted: O,
|
|
362
352
|
readOnly: z,
|
|
363
353
|
withheld: L,
|
|
@@ -365,7 +355,7 @@ function fn({
|
|
|
365
355
|
fallbackError: ne
|
|
366
356
|
}) {
|
|
367
357
|
var Ce;
|
|
368
|
-
const
|
|
358
|
+
const j = o === "edit", [m, S] = q(0), [ce, oe] = q(y);
|
|
369
359
|
ce !== y && (oe(y), y && S((e) => e + 1));
|
|
370
360
|
const U = `${o}|${l ?? ""}|${m}`, [p, fe] = q(
|
|
371
361
|
() => ut(I)
|
|
@@ -393,7 +383,7 @@ function fn({
|
|
|
393
383
|
ue.current = Z;
|
|
394
384
|
const d = !!Z, [A, c] = q(0), [s, f] = q(null), ke = C(s);
|
|
395
385
|
ke.current = s;
|
|
396
|
-
const ye = y &&
|
|
386
|
+
const ye = y && j && !!l && d && !L;
|
|
397
387
|
qe(() => {
|
|
398
388
|
const e = ue.current;
|
|
399
389
|
if (!ye || !l || !e) return;
|
|
@@ -409,21 +399,21 @@ function fn({
|
|
|
409
399
|
)
|
|
410
400
|
).then(
|
|
411
401
|
(g) => {
|
|
412
|
-
u.signal.aborted || !R(i) || (fe(
|
|
402
|
+
u.signal.aborted || !R(i) || (fe(un(g)), w({ done: g.done, confirmedDone: g.done }), r(g), f({ subject: i.subject, status: "ready" }));
|
|
413
403
|
},
|
|
414
404
|
(g) => {
|
|
415
405
|
u.signal.aborted || !R(i) || f({
|
|
416
406
|
subject: i.subject,
|
|
417
407
|
status: "error",
|
|
418
|
-
message:
|
|
408
|
+
message: Me(g, ne)
|
|
419
409
|
});
|
|
420
410
|
}
|
|
421
411
|
), () => u.abort();
|
|
422
412
|
}, [ye, U, A]);
|
|
423
|
-
const
|
|
424
|
-
|
|
425
|
-
}, pe = p.typeId || (((Ce = x[0]) == null ? void 0 : Ce.id) ?? ""),
|
|
426
|
-
(x.length === 0 || pe !== "") && !G.saving && !G.donePending, be =
|
|
413
|
+
const M = j ? !l || !d ? "locked" : L ? "withheld" : (s == null ? void 0 : s.subject) === U ? s.status : "loading" : "ready", Q = () => {
|
|
414
|
+
M === "error" && (f(null), c((e) => e + 1));
|
|
415
|
+
}, pe = p.typeId || (((Ce = x[0]) == null ? void 0 : Ce.id) ?? ""), Ve = p.about === "nobody" || p.about === "patient" && p.patientId !== "" || p.about === "company" && p.companyId !== "" || p.about === "operator" && p.operatorId !== V, me = !z && p.note.trim() !== "" && p.date !== void 0 && Ve && /* Required whenever the host offers a list. */
|
|
416
|
+
(x.length === 0 || pe !== "") && !G.saving && !G.donePending, be = j ? se : P, Se = () => {
|
|
427
417
|
const { date: e, time: i } = p;
|
|
428
418
|
return e ? {
|
|
429
419
|
dateIso: new Date(
|
|
@@ -440,20 +430,20 @@ function fn({
|
|
|
440
430
|
longer resolves: a real link must survive a Save that never
|
|
441
431
|
offered to change it. */
|
|
442
432
|
typeId: pe === "" ? void 0 : pe,
|
|
443
|
-
assigneeId: p.assigneeId ===
|
|
433
|
+
assigneeId: p.assigneeId === V ? void 0 : p.assigneeId,
|
|
444
434
|
/* ONE counterpart, decided by `about` alone: the platform refuses a
|
|
445
435
|
task carrying two. Never gated on a list being loaded, or a list
|
|
446
436
|
that empties mid-edit would unlink the task on Save. */
|
|
447
437
|
patientId: p.about === "patient" && p.patientId ? p.patientId : void 0,
|
|
448
438
|
companyId: p.about === "company" && p.companyId ? p.companyId : void 0,
|
|
449
|
-
operatorId: p.about === "operator" && p.operatorId !==
|
|
439
|
+
operatorId: p.about === "operator" && p.operatorId !== V ? p.operatorId : void 0,
|
|
450
440
|
/* The last CONFIRMED value only, never an optimistic or rolled-back
|
|
451
441
|
toggle. */
|
|
452
442
|
done: G.confirmedDone
|
|
453
443
|
} : void 0;
|
|
454
|
-
}, E = (e) =>
|
|
444
|
+
}, E = (e) => Gt(new Error(`TaskEditor: ${e}`)), Re = () => {
|
|
455
445
|
const e = F.current;
|
|
456
|
-
if (
|
|
446
|
+
if (M !== "ready") return E(`cannot save while ${M}.`);
|
|
457
447
|
if (!be) return E("the host gave no save seam.");
|
|
458
448
|
if (e.accepted) return E("this task was already saved.");
|
|
459
449
|
if (e.deleting) return E("a delete is in flight.");
|
|
@@ -465,18 +455,18 @@ function fn({
|
|
|
465
455
|
e.saving = !0, w({ saving: !0, saveError: void 0 });
|
|
466
456
|
const u = (async () => {
|
|
467
457
|
try {
|
|
468
|
-
if (
|
|
469
|
-
await (se == null ? void 0 : se(h, i)), e.accepted = !0, R(e) && (w({ accepted: !0 }),
|
|
458
|
+
if (j)
|
|
459
|
+
await (se == null ? void 0 : se(h, i)), e.accepted = !0, R(e) && (w({ accepted: !0 }), _ == null || _({
|
|
470
460
|
...i,
|
|
471
461
|
id: h,
|
|
472
462
|
done: i.done ?? !1
|
|
473
463
|
}));
|
|
474
464
|
else {
|
|
475
465
|
const g = await (P == null ? void 0 : P(i));
|
|
476
|
-
e.accepted = !0, R(e) && (w({ accepted: !0 }), g && (
|
|
466
|
+
e.accepted = !0, R(e) && (w({ accepted: !0 }), g && (_ == null || _(g)));
|
|
477
467
|
}
|
|
478
468
|
} catch (g) {
|
|
479
|
-
throw R(e) && w({ saveError:
|
|
469
|
+
throw R(e) && w({ saveError: Me(g, ne) }), g;
|
|
480
470
|
} finally {
|
|
481
471
|
e.saving = !1, R(e) && w({ saving: !1 });
|
|
482
472
|
}
|
|
@@ -485,9 +475,9 @@ function fn({
|
|
|
485
475
|
}), u;
|
|
486
476
|
}, Ae = (e) => {
|
|
487
477
|
const i = F.current;
|
|
488
|
-
if (
|
|
489
|
-
return E(`cannot change Done while ${
|
|
490
|
-
if (!
|
|
478
|
+
if (M !== "ready")
|
|
479
|
+
return E(`cannot change Done while ${M}.`);
|
|
480
|
+
if (!j || !l || !ee || z)
|
|
491
481
|
return E("the host gave no Done seam.");
|
|
492
482
|
if (i.donePending) return E("a Done change is already pending.");
|
|
493
483
|
if (i.saving || i.deleting)
|
|
@@ -503,7 +493,7 @@ function fn({
|
|
|
503
493
|
} catch (W) {
|
|
504
494
|
throw R(i) && w({
|
|
505
495
|
done: h,
|
|
506
|
-
doneError:
|
|
496
|
+
doneError: Me(W, ne)
|
|
507
497
|
}), W;
|
|
508
498
|
} finally {
|
|
509
499
|
i.donePending = !1, R(i) && w({ donePending: !1 });
|
|
@@ -513,8 +503,8 @@ function fn({
|
|
|
513
503
|
}), g;
|
|
514
504
|
}, Be = () => {
|
|
515
505
|
const e = F.current;
|
|
516
|
-
if (
|
|
517
|
-
if (!
|
|
506
|
+
if (M !== "ready") return E(`cannot delete while ${M}.`);
|
|
507
|
+
if (!j || !l || !N || z)
|
|
518
508
|
return E("the host gave no delete seam.");
|
|
519
509
|
if (e.saving || e.accepted || e.deleting)
|
|
520
510
|
return E("the task cannot be deleted now.");
|
|
@@ -522,9 +512,9 @@ function fn({
|
|
|
522
512
|
e.deleting = !0, w({ deleting: !0, deleteError: void 0 });
|
|
523
513
|
const h = (async () => {
|
|
524
514
|
try {
|
|
525
|
-
await
|
|
515
|
+
await N(i), e.accepted = !0, R(e) && (w({ accepted: !0, confirmDeleteOpen: !1 }), O == null || O(i));
|
|
526
516
|
} catch (u) {
|
|
527
|
-
throw R(e) && w({ deleteError:
|
|
517
|
+
throw R(e) && w({ deleteError: Me(u, ne) }), u;
|
|
528
518
|
} finally {
|
|
529
519
|
e.deleting = !1, R(e) && w({ deleting: !1 });
|
|
530
520
|
}
|
|
@@ -536,10 +526,10 @@ function fn({
|
|
|
536
526
|
i !== "" && (i === h || e.some((u) => u.id === i))
|
|
537
527
|
), Ie = (e) => {
|
|
538
528
|
var g;
|
|
539
|
-
if (
|
|
540
|
-
throw new Error(`TaskEditor: cannot set fields while ${
|
|
529
|
+
if (M !== "ready")
|
|
530
|
+
throw new Error(`TaskEditor: cannot set fields while ${M}.`);
|
|
541
531
|
if (z) throw new Error("TaskEditor: the task is read-only.");
|
|
542
|
-
const i =
|
|
532
|
+
const i = pn.filter(([W]) => e[W] !== void 0);
|
|
543
533
|
if (i.length > 1)
|
|
544
534
|
throw new Error(
|
|
545
535
|
"TaskEditor: set at most one of patientId, companyId and operatorId."
|
|
@@ -560,7 +550,7 @@ function fn({
|
|
|
560
550
|
if (e.patientId !== void 0) {
|
|
561
551
|
if (te)
|
|
562
552
|
throw new Error("TaskEditor: no patient can be set in privacy mode.");
|
|
563
|
-
if (!(de(X, e.patientId, b == null ? void 0 : b.patientId) ||
|
|
553
|
+
if (!(de(X, e.patientId, b == null ? void 0 : b.patientId) || T.has(e.patientId) || (J == null ? void 0 : J(e.patientId)) !== void 0))
|
|
564
554
|
throw new Error(`TaskEditor: unknown patientId "${e.patientId}".`);
|
|
565
555
|
}
|
|
566
556
|
const u = {};
|
|
@@ -570,7 +560,7 @@ function fn({
|
|
|
570
560
|
throw new Error(`TaskEditor: "${e.dateIso}" is not a date.`);
|
|
571
561
|
u.date = W, u.time = Ye(W);
|
|
572
562
|
}
|
|
573
|
-
e.note !== void 0 && (u.note = e.note), e.typeId !== void 0 && (u.typeId = e.typeId), e.assigneeId !== void 0 && (u.assigneeId = e.assigneeId ??
|
|
563
|
+
e.note !== void 0 && (u.note = e.note), e.typeId !== void 0 && (u.typeId = e.typeId), e.assigneeId !== void 0 && (u.assigneeId = e.assigneeId ?? V), e.about !== void 0 && (u.about = e.about), e.patientId !== void 0 && (u.patientId = e.patientId, u.about = "patient"), e.companyId !== void 0 && (u.companyId = e.companyId, u.about = "company"), e.operatorId !== void 0 && (u.operatorId = e.operatorId, u.about = "operator"), he(u);
|
|
574
564
|
}, Fe = () => {
|
|
575
565
|
const e = Se();
|
|
576
566
|
return {
|
|
@@ -588,7 +578,7 @@ function fn({
|
|
|
588
578
|
};
|
|
589
579
|
};
|
|
590
580
|
return {
|
|
591
|
-
status:
|
|
581
|
+
status: M,
|
|
592
582
|
loadError: (s == null ? void 0 : s.subject) === U ? s.message : void 0,
|
|
593
583
|
retry: Q,
|
|
594
584
|
fields: p,
|
|
@@ -598,10 +588,10 @@ function fn({
|
|
|
598
588
|
canSave: me,
|
|
599
589
|
/** What the agent's `canSave` reports: the button's rule plus the
|
|
600
590
|
* status, the seam and a save that has not landed yet. */
|
|
601
|
-
agentCanSave:
|
|
591
|
+
agentCanSave: M === "ready" && !!be && me && !G.accepted,
|
|
602
592
|
showSave: !z && !!be,
|
|
603
|
-
showDelete:
|
|
604
|
-
showDone:
|
|
593
|
+
showDelete: j && !z && !!N && !!l,
|
|
594
|
+
showDone: j && !z && !!ee,
|
|
605
595
|
ui: G,
|
|
606
596
|
patchUi: w,
|
|
607
597
|
/** True once a save or delete landed in this session. */
|
|
@@ -628,7 +618,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
628
618
|
},
|
|
629
619
|
defaultVariants: { variant: "panel" }
|
|
630
620
|
}), mt = ht(
|
|
631
|
-
`ds:m-0 ds:min-w-0 ds:border-0 ds:p-[var(--spacing-md)] ${
|
|
621
|
+
`ds:m-0 ds:min-w-0 ds:border-0 ds:p-[var(--spacing-md)] ${Wt}`,
|
|
632
622
|
{
|
|
633
623
|
variants: {
|
|
634
624
|
/** 'form': the fields in a column. 'notice': the locked notice. */
|
|
@@ -639,9 +629,9 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
639
629
|
},
|
|
640
630
|
defaultVariants: { layout: "form" }
|
|
641
631
|
}
|
|
642
|
-
), a = (o) => `calendarWorkspace.taskEditor.${o}`,
|
|
632
|
+
), a = (o) => `calendarWorkspace.taskEditor.${o}`, fn = (o, l, I) => I.includes(l) ? 1 : 0, Ne = [], Ge = (o, l) => Array.from(o.querySelectorAll("[data-task-id]")).filter(
|
|
643
633
|
(I) => !l.contains(I)
|
|
644
|
-
),
|
|
634
|
+
), hn = 'button:not([disabled]), a[href], input:not([disabled]), [tabindex]:not([tabindex="-1"])', ft = (o, l) => {
|
|
645
635
|
if (!o) return [];
|
|
646
636
|
const I = Array.from(
|
|
647
637
|
o.querySelectorAll("[data-action]")
|
|
@@ -649,9 +639,9 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
649
639
|
return [
|
|
650
640
|
...I.filter((y) => l && y.dataset.action === l),
|
|
651
641
|
...I.filter((y) => y.dataset.action === "open-task"),
|
|
652
|
-
...Array.from(o.querySelectorAll(
|
|
642
|
+
...Array.from(o.querySelectorAll(hn))
|
|
653
643
|
];
|
|
654
|
-
},
|
|
644
|
+
}, gn = At(
|
|
655
645
|
({
|
|
656
646
|
id: o,
|
|
657
647
|
mode: l,
|
|
@@ -660,22 +650,22 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
660
650
|
variant: x = "panel",
|
|
661
651
|
open: B = !0,
|
|
662
652
|
onExited: Y,
|
|
663
|
-
taskTypes: D =
|
|
664
|
-
assignees: X =
|
|
665
|
-
companies:
|
|
666
|
-
operators: J =
|
|
667
|
-
patients: Z =
|
|
653
|
+
taskTypes: D = Ne,
|
|
654
|
+
assignees: X = Ne,
|
|
655
|
+
companies: T = Ne,
|
|
656
|
+
operators: J = Ne,
|
|
657
|
+
patients: Z = Ne,
|
|
668
658
|
searchPatients: P,
|
|
669
659
|
patientLabel: se,
|
|
670
|
-
resolvePatientLabel:
|
|
660
|
+
resolvePatientLabel: N,
|
|
671
661
|
companyLabel: ee,
|
|
672
|
-
operatorLabel:
|
|
662
|
+
operatorLabel: _,
|
|
673
663
|
backLabel: O,
|
|
674
664
|
loadTask: z,
|
|
675
665
|
onCreateTask: L,
|
|
676
666
|
onUpdateTask: te,
|
|
677
667
|
onDeleteTask: ne,
|
|
678
|
-
onSetTaskDone:
|
|
668
|
+
onSetTaskDone: j,
|
|
679
669
|
onCancel: m,
|
|
680
670
|
onSaved: S,
|
|
681
671
|
onDeleted: ce,
|
|
@@ -686,23 +676,23 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
686
676
|
className: G,
|
|
687
677
|
...Ee
|
|
688
678
|
}, b) => {
|
|
689
|
-
const { t: r } = gt("ui"), w =
|
|
679
|
+
const { t: r } = gt("ui"), w = Bt(), he = o ?? w, ge = l === "edit", re = x === "subview", F = !re || B, ve = U && ge && p === "notice", R = U && !ve, [ue] = q(() => /* @__PURE__ */ new Map()), d = mn({
|
|
690
680
|
mode: l,
|
|
691
681
|
taskId: I,
|
|
692
682
|
initialDate: y,
|
|
693
683
|
active: F,
|
|
694
684
|
taskTypes: D,
|
|
695
685
|
assignees: X,
|
|
696
|
-
companies:
|
|
686
|
+
companies: T,
|
|
697
687
|
operators: J,
|
|
698
688
|
patients: Z,
|
|
699
689
|
searchedPatients: ue,
|
|
700
|
-
resolvePatientLabel:
|
|
690
|
+
resolvePatientLabel: N,
|
|
701
691
|
loadTask: z,
|
|
702
692
|
onCreateTask: L,
|
|
703
693
|
onUpdateTask: te,
|
|
704
694
|
onDeleteTask: ne,
|
|
705
|
-
onSetTaskDone:
|
|
695
|
+
onSetTaskDone: j,
|
|
706
696
|
onSaved: S,
|
|
707
697
|
onDeleted: ce,
|
|
708
698
|
readOnly: oe,
|
|
@@ -711,7 +701,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
711
701
|
fallbackError: r("emptyState.error.title")
|
|
712
702
|
}), { status: A, fields: c, ui: s, stored: f } = d, ke = C(P);
|
|
713
703
|
ke.current = P;
|
|
714
|
-
const ye = !!P,
|
|
704
|
+
const ye = !!P, M = Pe(
|
|
715
705
|
() => ye ? async (t, v) => {
|
|
716
706
|
const K = await ke.current(t, v);
|
|
717
707
|
for (const ie of K)
|
|
@@ -723,7 +713,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
723
713
|
Q.current = d;
|
|
724
714
|
const pe = C(m);
|
|
725
715
|
pe.current = m;
|
|
726
|
-
const
|
|
716
|
+
const Ve = Pe(
|
|
727
717
|
() => ({
|
|
728
718
|
getStatus: () => Q.current.status,
|
|
729
719
|
getDraft: () => Q.current.draftState(),
|
|
@@ -740,9 +730,9 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
740
730
|
}),
|
|
741
731
|
[]
|
|
742
732
|
);
|
|
743
|
-
|
|
733
|
+
_t(ln, F ? Ve : null, he);
|
|
744
734
|
const me = C(null), be = Pe(
|
|
745
|
-
() =>
|
|
735
|
+
() => Lt(b, me),
|
|
746
736
|
[b]
|
|
747
737
|
), Se = C(null), E = C(null), Re = C(!1);
|
|
748
738
|
re && B && !Re.current && (E.current = typeof document < "u" && document.activeElement instanceof HTMLElement ? document.activeElement : null), Re.current = re && B;
|
|
@@ -753,12 +743,12 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
753
743
|
var st;
|
|
754
744
|
const t = me.current, v = t == null ? void 0 : t.parentElement;
|
|
755
745
|
if (!re || !B || !t || !v) return;
|
|
756
|
-
const K = E.current, ie = K && v.contains(K) && !t.contains(K) ? K : null,
|
|
746
|
+
const K = E.current, ie = K && v.contains(K) && !t.contains(K) ? K : null, Nt = Be.current, De = (ie == null ? void 0 : ie.closest("[data-task-id]")) ?? Ge(v, t).find((xe) => xe.dataset.taskId === Nt), rt = De == null ? void 0 : De.dataset.taskId, at = (st = ie == null ? void 0 : ie.closest("[data-action]")) == null ? void 0 : st.dataset.action, it = De ? Ge(v, t).indexOf(De) : -1;
|
|
757
747
|
return () => {
|
|
758
748
|
if (Ae.current && t.isConnected) return;
|
|
759
749
|
const xe = document.activeElement;
|
|
760
750
|
if (!v.isConnected || xe && xe !== document.body) return;
|
|
761
|
-
const Ue = Ge(v, t),
|
|
751
|
+
const Ue = Ge(v, t), Rt = [
|
|
762
752
|
...ft(
|
|
763
753
|
Ue.find((we) => rt !== void 0 && we.dataset.taskId === rt),
|
|
764
754
|
at
|
|
@@ -768,7 +758,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
768
758
|
v.querySelector('[data-action="add-task"]'),
|
|
769
759
|
v.querySelector("[data-tasks-panel-region]")
|
|
770
760
|
];
|
|
771
|
-
for (const we of
|
|
761
|
+
for (const we of Rt)
|
|
772
762
|
if (!(!we || t.contains(we)) && (we.focus(), document.activeElement === we))
|
|
773
763
|
return;
|
|
774
764
|
};
|
|
@@ -776,7 +766,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
776
766
|
const de = C(null), Ie = C(!1), Fe = (t) => () => {
|
|
777
767
|
Ie.current = !0, t();
|
|
778
768
|
};
|
|
779
|
-
|
|
769
|
+
zt(() => {
|
|
780
770
|
var K;
|
|
781
771
|
if (!Ie.current) return;
|
|
782
772
|
const t = me.current, v = document.activeElement;
|
|
@@ -788,28 +778,28 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
788
778
|
preventScroll: !0
|
|
789
779
|
});
|
|
790
780
|
}, [A]);
|
|
791
|
-
const Ce = r(a(ge ? "editTitle" : "title")), e =
|
|
792
|
-
() =>
|
|
793
|
-
[
|
|
781
|
+
const Ce = r(a(ge ? "editTitle" : "title")), e = T.length > 0, i = J.length > 0, h = ye || Z.length > 0, u = Pe(
|
|
782
|
+
() => T.map((t) => ({ value: t.id, label: t.label })),
|
|
783
|
+
[T]
|
|
794
784
|
), g = (t) => {
|
|
795
785
|
var v;
|
|
796
|
-
return (
|
|
797
|
-
}, W = (t) => t === (f == null ? void 0 : f.operatorId) &&
|
|
798
|
-
{ value:
|
|
786
|
+
return (N == null ? void 0 : N(t)) ?? ((v = Z.find((K) => K.id === t)) == null ? void 0 : v.name) ?? ue.get(t) ?? (t === (f == null ? void 0 : f.patientId) ? se : void 0) ?? r("calendarWorkspace.details.patientNotLoaded");
|
|
787
|
+
}, W = (t) => t === (f == null ? void 0 : f.operatorId) && _ ? _ : r(a("operatorUnresolved"), { id: t }), vt = [
|
|
788
|
+
{ value: V, label: r(a("operatorNone")) },
|
|
799
789
|
...J.map((t) => ({ value: t.id, label: t.label })),
|
|
800
790
|
/* An operator the roster no longer lists is still a real link, so it
|
|
801
791
|
stays pickable and survives a Save. */
|
|
802
|
-
...c.operatorId !==
|
|
792
|
+
...c.operatorId !== V && !J.some((t) => t.id === c.operatorId) ? [
|
|
803
793
|
{
|
|
804
794
|
value: c.operatorId,
|
|
805
795
|
label: W(c.operatorId)
|
|
806
796
|
}
|
|
807
797
|
] : []
|
|
808
|
-
],
|
|
798
|
+
], yt = D.some((t) => t.custom) && D.some((t) => !t.custom), bt = [
|
|
809
799
|
...D.map((t) => ({
|
|
810
800
|
value: t.id,
|
|
811
801
|
label: t.label,
|
|
812
|
-
group:
|
|
802
|
+
group: yt ? r(a(t.custom ? "typeGroupCustom" : "typeGroupStandard")) : void 0
|
|
813
803
|
})),
|
|
814
804
|
/* An id the list no longer resolves is still a real link: offered as
|
|
815
805
|
its own option so Save re-sends it. */
|
|
@@ -819,33 +809,33 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
819
809
|
label: r(a("typeUnresolved"), { id: d.chosenTypeId })
|
|
820
810
|
}
|
|
821
811
|
] : []
|
|
822
|
-
],
|
|
823
|
-
{ value:
|
|
812
|
+
], It = [
|
|
813
|
+
{ value: V, label: r(a("assigneeNone")) },
|
|
824
814
|
...X.map((t) => ({ value: t.id, label: t.label })),
|
|
825
|
-
...c.assigneeId !==
|
|
815
|
+
...c.assigneeId !== V && !X.some((t) => t.id === c.assigneeId) ? [
|
|
826
816
|
{
|
|
827
817
|
value: c.assigneeId,
|
|
828
818
|
label: r(a("assigneeUnresolved"), { id: c.assigneeId })
|
|
829
819
|
}
|
|
830
820
|
] : []
|
|
831
|
-
], ae = c.about === "company" && c.companyId && !
|
|
821
|
+
], ae = c.about === "company" && c.companyId && !T.some((t) => t.id === c.companyId) ? c.companyId : void 0, wt = ae && ae === (f == null ? void 0 : f.companyId) && ee ? ee : r(a("companyUnresolved"), { id: ae }), Xe = /* @__PURE__ */ k($, { variant: "info", announce: "off", icon: /* @__PURE__ */ n(Qt, { "aria-hidden": "true" }), children: [
|
|
832
822
|
/* @__PURE__ */ n($.Title, { as: "p", children: r("calendarWorkspace.details.readOnlyTitle") }),
|
|
833
823
|
/* @__PURE__ */ n($.Description, { children: r(a("readOnlyBody")) })
|
|
834
|
-
] }),
|
|
824
|
+
] }), _e = s.saving || s.deleting, Je = () => {
|
|
835
825
|
d.isBusy() || m();
|
|
836
|
-
},
|
|
826
|
+
}, Et = /* @__PURE__ */ n(
|
|
837
827
|
We,
|
|
838
828
|
{
|
|
839
829
|
size: "sm",
|
|
840
830
|
intent: "outline",
|
|
841
|
-
icon: /* @__PURE__ */ n(
|
|
831
|
+
icon: /* @__PURE__ */ n(Yt, { "aria-hidden": "true" }),
|
|
842
832
|
"aria-label": r(a("cancel")),
|
|
843
833
|
tooltip: r(a("cancel")),
|
|
844
834
|
"data-action": "cancel-task",
|
|
845
|
-
disabled:
|
|
835
|
+
disabled: _e,
|
|
846
836
|
onClick: Je
|
|
847
837
|
}
|
|
848
|
-
), ze = s.saving || s.accepted, Ze = (t) => /* @__PURE__ */ k(
|
|
838
|
+
), ze = s.saving || s.accepted, Ze = (t) => /* @__PURE__ */ k(Te, { children: [
|
|
849
839
|
t && d.showDelete ? /* @__PURE__ */ n(
|
|
850
840
|
We,
|
|
851
841
|
{
|
|
@@ -856,18 +846,18 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
856
846
|
"aria-label": r(a("delete")),
|
|
857
847
|
tooltip: r(a("delete")),
|
|
858
848
|
"data-action": "delete-task",
|
|
859
|
-
disabled:
|
|
849
|
+
disabled: _e || s.accepted,
|
|
860
850
|
onClick: () => d.patchUi({ confirmDeleteOpen: !0, deleteError: void 0 })
|
|
861
851
|
}
|
|
862
852
|
) : null,
|
|
863
853
|
/* @__PURE__ */ k(
|
|
864
|
-
|
|
854
|
+
xt,
|
|
865
855
|
{
|
|
866
856
|
role: "toolbar",
|
|
867
857
|
"aria-label": r(a("actionsLabel")),
|
|
868
858
|
className: "ds:ms-auto",
|
|
869
859
|
children: [
|
|
870
|
-
|
|
860
|
+
Et,
|
|
871
861
|
t && d.showSave ? /* @__PURE__ */ n(
|
|
872
862
|
We,
|
|
873
863
|
{
|
|
@@ -879,7 +869,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
879
869
|
"aria-hidden": "true",
|
|
880
870
|
className: "ds:animate-spin ds:motion-reduce:animate-none"
|
|
881
871
|
}
|
|
882
|
-
) : /* @__PURE__ */ n(
|
|
872
|
+
) : /* @__PURE__ */ n(an, { "aria-hidden": "true" }),
|
|
883
873
|
"aria-label": r(a("save")),
|
|
884
874
|
tooltip: r(a("save")),
|
|
885
875
|
disabled: !ze && !d.canSave,
|
|
@@ -898,7 +888,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
898
888
|
/* Out of flow, so it never moves the footer's two ends. */
|
|
899
889
|
/* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: s.saving ? r(a("saving")) : "" })
|
|
900
890
|
) : null
|
|
901
|
-
] }),
|
|
891
|
+
] }), kt = /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
|
|
902
892
|
/* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: r("common.loading") }),
|
|
903
893
|
/* @__PURE__ */ k(
|
|
904
894
|
"div",
|
|
@@ -932,7 +922,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
932
922
|
]
|
|
933
923
|
}
|
|
934
924
|
)
|
|
935
|
-
] }),
|
|
925
|
+
] }), St = /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
936
926
|
/* @__PURE__ */ n($, { variant: "error", children: /* @__PURE__ */ n($.Description, { children: d.loadError }) }),
|
|
937
927
|
/* @__PURE__ */ n(
|
|
938
928
|
$e,
|
|
@@ -944,21 +934,21 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
944
934
|
children: r("emptyState.error.cta")
|
|
945
935
|
}
|
|
946
936
|
)
|
|
947
|
-
] }),
|
|
948
|
-
|
|
937
|
+
] }), Ct = /* @__PURE__ */ n("fieldset", { disabled: !0, className: mt({ layout: "notice" }), children: Xe }), Dt = () => c.about !== "patient" ? null : R ? /* @__PURE__ */ n(H, { label: r(a("aboutPatient")), children: /* @__PURE__ */ n(je, { value: tn(), disabled: !0, readOnly: !0 }) }) : h ? /* @__PURE__ */ n(H, { label: r(a("aboutPatient")), children: /* @__PURE__ */ n(
|
|
938
|
+
sn,
|
|
949
939
|
{
|
|
950
940
|
value: c.patientId,
|
|
951
941
|
onValueChange: (t) => d.patchFields({ patientId: t }),
|
|
952
942
|
patients: Z,
|
|
953
|
-
searchPatients:
|
|
943
|
+
searchPatients: M,
|
|
954
944
|
selectedLabel: c.patientId ? g(c.patientId) : void 0,
|
|
955
945
|
placeholder: r("calendarWorkspace.editor.patientSearch"),
|
|
956
946
|
disabled: oe
|
|
957
947
|
}
|
|
958
|
-
) }) : c.patientId ? /* @__PURE__ */ n(H, { label: r(a("aboutPatient")), children: /* @__PURE__ */ n(
|
|
948
|
+
) }) : c.patientId ? /* @__PURE__ */ n(H, { label: r(a("aboutPatient")), children: /* @__PURE__ */ n(je, { value: g(c.patientId), disabled: !0, readOnly: !0 }) }) : null, et = /* @__PURE__ */ k("fieldset", { disabled: oe, className: mt(), children: [
|
|
959
949
|
oe ? Xe : null,
|
|
960
950
|
/* @__PURE__ */ n(H, { label: r(a("date")), children: /* @__PURE__ */ n(
|
|
961
|
-
|
|
951
|
+
Ft,
|
|
962
952
|
{
|
|
963
953
|
value: c.date,
|
|
964
954
|
onChange: (t) => d.patchFields({ date: t })
|
|
@@ -978,7 +968,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
978
968
|
required: !0,
|
|
979
969
|
error: s.showError && c.note.trim() === "" ? r(a("noteRequired")) : void 0,
|
|
980
970
|
children: /* @__PURE__ */ n(
|
|
981
|
-
|
|
971
|
+
qt,
|
|
982
972
|
{
|
|
983
973
|
value: c.note,
|
|
984
974
|
onChange: (t) => {
|
|
@@ -993,7 +983,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
993
983
|
D.length > 0 ? /* @__PURE__ */ n(H, { label: r(a("type")), required: !0, children: /* @__PURE__ */ n(
|
|
994
984
|
Ke,
|
|
995
985
|
{
|
|
996
|
-
options:
|
|
986
|
+
options: bt,
|
|
997
987
|
value: d.chosenTypeId,
|
|
998
988
|
onValueChange: (t) => t && d.patchFields({ typeId: t })
|
|
999
989
|
}
|
|
@@ -1001,7 +991,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1001
991
|
X.length > 0 ? /* @__PURE__ */ n(H, { label: r(a("assignee")), children: /* @__PURE__ */ n(
|
|
1002
992
|
Ke,
|
|
1003
993
|
{
|
|
1004
|
-
options:
|
|
994
|
+
options: It,
|
|
1005
995
|
value: c.assigneeId,
|
|
1006
996
|
onValueChange: (t) => t && d.patchFields({ assigneeId: t })
|
|
1007
997
|
}
|
|
@@ -1011,7 +1001,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1011
1001
|
{
|
|
1012
1002
|
label: r(a("about")),
|
|
1013
1003
|
variant: "segmented",
|
|
1014
|
-
className:
|
|
1004
|
+
className: Ut,
|
|
1015
1005
|
value: c.about,
|
|
1016
1006
|
onValueChange: (t) => d.patchFields({ about: t }),
|
|
1017
1007
|
children: [
|
|
@@ -1020,7 +1010,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1020
1010
|
{
|
|
1021
1011
|
value: "nobody",
|
|
1022
1012
|
label: r(a("aboutNobody")),
|
|
1023
|
-
icon: /* @__PURE__ */ n(
|
|
1013
|
+
icon: /* @__PURE__ */ n(Xt, { "aria-hidden": "true" })
|
|
1024
1014
|
}
|
|
1025
1015
|
),
|
|
1026
1016
|
h || c.about === "patient" || f != null && f.patientId ? /* @__PURE__ */ n(
|
|
@@ -1050,9 +1040,9 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1050
1040
|
]
|
|
1051
1041
|
}
|
|
1052
1042
|
),
|
|
1053
|
-
|
|
1054
|
-
c.about === "company" ? /* @__PURE__ */ k(
|
|
1055
|
-
ae ? /* @__PURE__ */ n(H, { label: r(a("companyName")), children: /* @__PURE__ */ n(
|
|
1043
|
+
Dt(),
|
|
1044
|
+
c.about === "company" ? /* @__PURE__ */ k(Te, { children: [
|
|
1045
|
+
ae ? /* @__PURE__ */ n(H, { label: r(a("companyName")), children: /* @__PURE__ */ n(je, { value: wt, disabled: !0, readOnly: !0 }) }) : null,
|
|
1056
1046
|
e ? /* @__PURE__ */ n(
|
|
1057
1047
|
H,
|
|
1058
1048
|
{
|
|
@@ -1066,7 +1056,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1066
1056
|
value: ae ? "" : c.companyId,
|
|
1067
1057
|
onValueChange: (t) => ae ? t && d.patchFields({ companyId: t }) : d.patchFields({ companyId: t }),
|
|
1068
1058
|
clearable: !ae && !oe,
|
|
1069
|
-
filter:
|
|
1059
|
+
filter: fn,
|
|
1070
1060
|
placeholder: r(a("companySearch")),
|
|
1071
1061
|
"aria-label": r(
|
|
1072
1062
|
a(ae ? "companyReplace" : "companyName")
|
|
@@ -1079,14 +1069,14 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1079
1069
|
c.about === "operator" ? i ? /* @__PURE__ */ n(H, { label: r(a("operator")), children: /* @__PURE__ */ n(
|
|
1080
1070
|
Ke,
|
|
1081
1071
|
{
|
|
1082
|
-
options:
|
|
1072
|
+
options: vt,
|
|
1083
1073
|
value: c.operatorId,
|
|
1084
1074
|
onValueChange: (t) => t && d.patchFields({ operatorId: t })
|
|
1085
1075
|
}
|
|
1086
|
-
) }) : c.operatorId !==
|
|
1076
|
+
) }) : c.operatorId !== V ? (
|
|
1087
1077
|
/* No roster to pick from: name the link read-only. */
|
|
1088
1078
|
/* @__PURE__ */ n(H, { label: r(a("operator")), children: /* @__PURE__ */ n(
|
|
1089
|
-
|
|
1079
|
+
je,
|
|
1090
1080
|
{
|
|
1091
1081
|
value: W(c.operatorId),
|
|
1092
1082
|
disabled: !0,
|
|
@@ -1094,13 +1084,13 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1094
1084
|
}
|
|
1095
1085
|
) })
|
|
1096
1086
|
) : null : null,
|
|
1097
|
-
d.showDone ? /* @__PURE__ */ k(
|
|
1087
|
+
d.showDone ? /* @__PURE__ */ k(Te, { children: [
|
|
1098
1088
|
/* @__PURE__ */ n(
|
|
1099
|
-
|
|
1089
|
+
$t,
|
|
1100
1090
|
{
|
|
1101
1091
|
label: r(a("done")),
|
|
1102
1092
|
checked: s.done,
|
|
1103
|
-
disabled:
|
|
1093
|
+
disabled: _e || s.accepted,
|
|
1104
1094
|
"aria-disabled": s.donePending || void 0,
|
|
1105
1095
|
"aria-busy": s.donePending || void 0,
|
|
1106
1096
|
className: "ds:aria-disabled:cursor-progress",
|
|
@@ -1113,12 +1103,12 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1113
1103
|
] }) : null,
|
|
1114
1104
|
s.saveError ? /* @__PURE__ */ n($, { variant: "error", children: /* @__PURE__ */ n($.Description, { children: s.saveError }) }) : null,
|
|
1115
1105
|
s.deleteError && !s.confirmDeleteOpen ? /* @__PURE__ */ n($, { variant: "error", children: /* @__PURE__ */ n($.Description, { children: s.deleteError }) }) : null
|
|
1116
|
-
] }), tt = A === "loading" ?
|
|
1117
|
-
|
|
1106
|
+
] }), tt = A === "loading" ? kt : A === "error" ? St : A === "locked" ? Ct : A === "withheld" ? /* @__PURE__ */ n(
|
|
1107
|
+
Ht,
|
|
1118
1108
|
{
|
|
1119
1109
|
onTurnOff: fe ? Fe(fe) : void 0
|
|
1120
1110
|
}
|
|
1121
|
-
) : re ? et : /* @__PURE__ */ n(
|
|
1111
|
+
) : re ? et : /* @__PURE__ */ n(Mt, { orientation: "vertical", className: "ds:min-h-0 ds:flex-1", children: et }), Le = A === "ready" ? Ze(!0) : A === "locked" || A === "withheld" ? Ze(!1) : null, Tt = A === "ready" && d.showDelete, nt = ge ? /* @__PURE__ */ n(
|
|
1122
1112
|
le,
|
|
1123
1113
|
{
|
|
1124
1114
|
open: s.confirmDeleteOpen && F,
|
|
@@ -1168,9 +1158,9 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1168
1158
|
"data-variant": x,
|
|
1169
1159
|
"data-status": A
|
|
1170
1160
|
};
|
|
1171
|
-
return re ? /* @__PURE__ */ k(
|
|
1161
|
+
return re ? /* @__PURE__ */ k(Te, { children: [
|
|
1172
1162
|
/* @__PURE__ */ n(
|
|
1173
|
-
|
|
1163
|
+
Ot,
|
|
1174
1164
|
{
|
|
1175
1165
|
...Ee,
|
|
1176
1166
|
"data-component-id": he,
|
|
@@ -1190,7 +1180,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1190
1180
|
}
|
|
1191
1181
|
),
|
|
1192
1182
|
nt
|
|
1193
|
-
] }) : /* @__PURE__ */ k(
|
|
1183
|
+
] }) : /* @__PURE__ */ k(Te, { children: [
|
|
1194
1184
|
/* @__PURE__ */ k(
|
|
1195
1185
|
"div",
|
|
1196
1186
|
{
|
|
@@ -1201,7 +1191,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1201
1191
|
className: pt({ variant: x, className: G }),
|
|
1202
1192
|
children: [
|
|
1203
1193
|
/* @__PURE__ */ n(
|
|
1204
|
-
|
|
1194
|
+
Pt,
|
|
1205
1195
|
{
|
|
1206
1196
|
title: Ce,
|
|
1207
1197
|
icon: /* @__PURE__ */ n(lt, { "aria-hidden": "true" }),
|
|
@@ -1218,11 +1208,11 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1218
1208
|
] });
|
|
1219
1209
|
}
|
|
1220
1210
|
);
|
|
1221
|
-
|
|
1211
|
+
gn.displayName = "TaskEditor";
|
|
1222
1212
|
export {
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1213
|
+
sn as P,
|
|
1214
|
+
an as S,
|
|
1215
|
+
gn as T,
|
|
1216
|
+
ln as t
|
|
1227
1217
|
};
|
|
1228
|
-
//# sourceMappingURL=task-editor-
|
|
1218
|
+
//# sourceMappingURL=task-editor-WdDCqbIL.js.map
|