@alfadocs/ui-kit 1.113.0 → 1.115.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/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-bI27uXXC.js} +2 -2
- package/dist/_chunks/{ai-permission-notice-BkgcGmu8.js → ai-permission-notice-C-xR2_iS.js} +2 -2
- package/dist/_chunks/{alia-sidebar-CKkg3gc8.js → alia-sidebar-BBxbMRmX.js} +2 -2
- package/dist/_chunks/{anamnesis-card-BzuluoD1.js → anamnesis-card-Ddnrdfx3.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-card-DdTRdNrQ.js → anamnesis-summary-card-S1H_AARG.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-DfDulR_c.js → anamnesis-summary-rows-BZ36ULQk.js} +5 -5
- package/dist/_chunks/{antenatal-schedule-timeline-DmsY5g28.js → antenatal-schedule-timeline-va9zx7tJ.js} +12 -12
- package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-D_-aBrx5.js} +2 -2
- package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-DxLu3afn.js} +3 -3
- package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-BhXOJpIJ.js} +2 -2
- package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
- package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-CXHihM22.js} +28 -27
- package/dist/_chunks/{bishop-score-CnIft4eV.js → bishop-score-QJu-sM1y.js} +2 -2
- package/dist/_chunks/{bmi-calculator-NMkXc079.js → bmi-calculator-Ba4yoR31.js} +2 -2
- package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
- package/dist/_chunks/{calendar-appointment-editor-dialog-CaZm5wGR.js → calendar-appointment-editor-dialog-BVzFi4hH.js} +520 -532
- package/dist/_chunks/{card-C85_Ndhb.js → card-DVO3x8E-.js} +23 -19
- package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-BA3MfdfZ.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-CUtFZ813.js} +2 -2
- package/dist/_chunks/{chart-bddVIElM.js → chart-DebrFZ6L.js} +2 -2
- package/dist/_chunks/{chat-container-baxzy8k8.js → chat-container-B83b4hut.js} +2 -2
- package/dist/_chunks/checkbox-DV4sNDeB.js +282 -0
- package/dist/_chunks/{checkbox-group-eGdv9fZc.js → checkbox-group-EfinQS1h.js} +2 -2
- package/dist/_chunks/chevrons-up-down-CgiVAHb7.js +15 -0
- package/dist/_chunks/{clinical-note-card-BVkxGiGl.js → clinical-note-card-Zz5_GEz-.js} +2 -2
- package/dist/_chunks/compact-editor-fields-cP6yh7xv.js +21 -0
- package/dist/_chunks/{connection-status-CWSU3eiq.js → connection-status-DjarASoU.js} +2 -2
- package/dist/_chunks/{contact-card-CymtNvy3.js → contact-card-Cv-Nwvac.js} +2 -2
- package/dist/_chunks/{contact-profile-card-CAL66GaH.js → contact-profile-card-DMXWBBkU.js} +2 -2
- package/dist/_chunks/{cycle-calculator-ZMDvToIm.js → cycle-calculator-C68V9rdH.js} +6 -6
- package/dist/_chunks/data-grid-tabs-CsLbIv0h.js +365 -0
- package/dist/_chunks/data-table-DXaE2Ret.js +1693 -0
- package/dist/_chunks/data-table-tabs-NYLhD8_Z.js +242 -0
- package/dist/_chunks/date-locale-OG-MupVD.js +83 -0
- package/dist/_chunks/{date-picker-CdhXlgVI.js → date-picker-DBVTj6lO.js} +21 -20
- package/dist/_chunks/{date-picker-variants-Dt6UbonG.js → date-picker-variants-J1EeAhIH.js} +601 -678
- package/dist/_chunks/date-range-panel-CBFfkgmz.js +62 -0
- package/dist/_chunks/{date-range-picker-DCADIR8o.js → date-range-picker-PTRpDkXT.js} +72 -70
- package/dist/_chunks/{date-time-picker-CT2bC7-A.js → date-time-picker-CJnqiQoT.js} +22 -21
- package/dist/_chunks/{de-B1B3PIgY.js → de-i9wbjGPc.js} +2 -2
- package/dist/_chunks/{document-preview-5xs64jME.js → document-preview-WvJKHJOP.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Dr2cDa64.js → due-date-calculator-C1UA5jpS.js} +7 -7
- package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-CtlMhLai.js} +3 -3
- package/dist/_chunks/{el-iLqGpapg.js → el-Cm-rWthb.js} +20 -20
- package/dist/_chunks/{en-GB-CxPRQbD6.js → en-GB-BHn82gW8.js} +11 -10
- package/dist/_chunks/en-US-C4QKhzhA.js +46 -0
- package/dist/_chunks/{entity-summary-BbqqYqF1.js → entity-summary-DGCBQDt1.js} +2 -2
- package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
- package/dist/_chunks/{face-scheme-e2M2HJGz.js → face-scheme-DkoxiDCh.js} +3 -3
- package/dist/_chunks/{fetal-weight-CkIwJgiH.js → fetal-weight-DmZzMRzB.js} +2 -2
- package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DFFExyym.js} +4 -4
- package/dist/_chunks/{finished-terminal-DXVAfhRr.js → finished-terminal-BKTFUk3S.js} +2 -2
- package/dist/_chunks/{forgot-password-form-YQVzSskq.js → forgot-password-form-Bc_UPax6.js} +2 -2
- package/dist/_chunks/format-ql5WTsYT.js +846 -0
- package/dist/_chunks/{fr-DpGxyOGI.js → fr-gTba51QO.js} +7 -7
- package/dist/_chunks/funnel-DpPV3Qkd.js +20 -0
- package/dist/_chunks/{gestational-age-calculator-Dv3IePb-.js → gestational-age-calculator-60y1RyQL.js} +8 -8
- package/dist/_chunks/grid-context-AwsLJRhH.js +46 -0
- package/dist/_chunks/{hcg-doubling-DdyUt4gz.js → hcg-doubling-CC-dbKE8.js} +7 -6
- package/dist/_chunks/{heatmap-BiwC7Gdx.js → heatmap-eXdtmEoU.js} +4 -4
- package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
- package/dist/_chunks/icon-button-group-C9mPK-bX.js +442 -0
- package/dist/_chunks/{index-CJE9uQmb.js → index-Bze5jCG_.js} +2 -1
- package/dist/_chunks/{isSameWeek-DyVftHWi.js → isSameWeek-CZOtDcsd.js} +2 -2
- package/dist/_chunks/{it-Cp0CA13d.js → it-DaCPWJ9Y.js} +11 -11
- package/dist/_chunks/{ja-9FOyR1lb.js → ja-BRCpkD95.js} +26 -26
- package/dist/_chunks/{kit-extensions-BOsUgWnE.js → kit-extensions-CzG0RmhQ.js} +7 -7
- package/dist/_chunks/link-cell-renderer-Ditt5mvT.js +800 -0
- package/dist/_chunks/{login-dev-card-B6-zCFq3.js → login-dev-card-CPndtWdz.js} +3 -3
- package/dist/_chunks/map-view-Bny79cWa.js +856 -0
- package/dist/_chunks/{marketplace-app-shell-C-4QF6mp.js → marketplace-app-shell-CcEHJgDd.js} +3 -3
- package/dist/_chunks/match-BATShpSX.js +336 -0
- package/dist/_chunks/motion-is-off-BvAuNV5O.js +15 -0
- package/dist/_chunks/{nl-sfx-zJgR.js → nl-5tAwYo00.js} +6 -6
- package/dist/_chunks/normalizeDates-BBNNIR-v.js +36 -0
- package/dist/_chunks/{notes-panel-Cz621DWV.js → notes-panel-BVYG_MJE.js} +4 -4
- package/dist/_chunks/{operator-hero-BELhrv9o.js → operator-hero-BWayX73x.js} +71 -62
- package/dist/_chunks/{parse-B0s7bY4d.js → parse-BLBWPIgE.js} +63 -61
- package/dist/_chunks/{parseISO-DZZ5a-zK.js → parseISO-Dl4T9peU.js} +2 -2
- package/dist/_chunks/parts-Wz2LeGnH.js +1113 -0
- package/dist/_chunks/{patient-details-RsT3SaYh.js → patient-details-DlT-vpSe.js} +3 -3
- package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-B54uzvu-.js} +3 -3
- package/dist/_chunks/{patient-search-CxuqVUTB.js → patient-search-DDRDCjZi.js} +439 -482
- package/dist/_chunks/{patient-summary-card-BjZErlbt.js → patient-summary-card-Dy9-CzON.js} +4 -4
- package/dist/_chunks/{payment-automation-upsell-u5EuFyCY.js → payment-automation-upsell-D7yaD4u1.js} +3 -3
- package/dist/_chunks/{payment-request-card-IR83TJax.js → payment-request-card-BmV2pLoM.js} +2 -2
- package/dist/_chunks/{periodontal-chart-DqdUEFxK.js → periodontal-chart-Bjz7O4wT.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-CCkzStlm.js → periodontal-chart-card-CxEXHl2x.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-CF1d_0yl.js → periodontal-diagnosis-DnZuZD14.js} +3 -3
- package/dist/_chunks/{periodontal-risk-chart-D2zyID0H.js → periodontal-risk-chart-BBPB9wf1.js} +2 -2
- package/dist/_chunks/{permission-matrix-BJ6sg3Zp.js → permission-matrix-BXmhICzN.js} +3 -3
- package/dist/_chunks/{pl-BLh7KO-s.js → pl-mLYbfByR.js} +7 -7
- package/dist/_chunks/{practice-profile-hero-Bb4YyxHA.js → practice-profile-hero-Cw4NZp0A.js} +2 -2
- package/dist/_chunks/practice-results-BlxfBx-D.js +2181 -0
- package/dist/_chunks/{pregnancy-dating-Cs8xpZA8.js → pregnancy-dating-qZpw3zj8.js} +8 -8
- package/dist/_chunks/{pregnancy-weight-gain-B_Zldlzq.js → pregnancy-weight-gain-DQoOM8QV.js} +2 -2
- package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
- package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
- package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
- package/dist/_chunks/{public-footer-DGjLTtNK.js → public-footer-CB7ruuLI.js} +295 -260
- package/dist/_chunks/{public-header.agent-_ArDD1Xr.js → public-header.agent-Db4wm6_S.js} +203 -193
- package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-C1LGeX-G.js} +3 -3
- package/dist/_chunks/{registration-form-Cq5_OSIL.js → registration-form-DW-0X7S4.js} +3 -3
- package/dist/_chunks/{reserved.agent-BMkapgom.js → reserved.agent-6p3Hm4oH.js} +29 -39
- package/dist/_chunks/{reset-password-form-BVsL2fOJ.js → reset-password-form-C93SH0Tx.js} +2 -2
- package/dist/_chunks/{reviews-panel-B03auSpQ.js → reviews-panel-CfJPEkH7.js} +2 -2
- package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-efaMWbYz.js} +3 -3
- package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
- package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
- package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
- package/dist/_chunks/{section-card-D1sV4Voz.js → section-card-DFr2wGal.js} +2 -2
- package/dist/_chunks/{send-registration-link-form-OgPomrZN.js → send-registration-link-form-DWxWa_cJ.js} +6 -6
- package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
- package/dist/_chunks/{signed-out-frame-CPow3aCZ.js → signed-out-frame-bh7fn_Px.js} +2 -2
- package/dist/_chunks/{slot-grid-BhjaLJ0o.js → slot-grid-b4eZXokb.js} +3 -3
- package/dist/_chunks/{sq-D4c7olaV.js → sq-B0Ree_9P.js} +2 -2
- package/dist/_chunks/{stat-BFKZV50y.js → stat-WGLdn5Vn.js} +113 -107
- package/dist/_chunks/subDays-Bsoy023P.js +8 -0
- package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
- package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
- package/dist/_chunks/{task-card-TSJjuuDe.js → task-card-BNbkwIYM.js} +2 -2
- package/dist/_chunks/{task-editor-gqWF1jI6.js → task-editor-CSa6vQ9r.js} +377 -391
- package/dist/_chunks/{task-tray-DrXfMCuf.js → task-tray-Bmi9wCHq.js} +2 -2
- package/dist/_chunks/{tasks-panel-OuIaydK5.js → tasks-panel-CVjY1d7Q.js} +2 -2
- package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-CObX2Ffa.js} +2 -2
- package/dist/_chunks/{timeline-CKUaBZOx.js → timeline-AMqE-c2T.js} +2 -2
- package/dist/_chunks/toolbar-Bc3pjfG5.js +9907 -0
- package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
- package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
- package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-BydbojdD.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-DvK7Looa.js → use-appointment-details-read-BMAiQYo6.js} +6 -6
- package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
- package/dist/_chunks/{workflow-map-DWk-rZse.js → workflow-map-B4XkcET0.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-DILFqAVd.js → workflow-webhook-action-DNSe65yd.js} +3 -3
- package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
- package/dist/agent-catalog.json +722 -11
- package/dist/agent-i18n/en.json +52 -4
- package/dist/components/_shared/motion-is-off.d.ts +7 -0
- package/dist/components/_shared/privacy-mask-text.d.ts +4 -0
- package/dist/components/_shared/privacy-mask.d.ts +2 -4
- package/dist/components/_shared/saved-view-tabs/saved-tab.d.ts +54 -0
- package/dist/components/_shared/saved-view-tabs/saved-view-tabs.d.ts +93 -0
- package/dist/components/_shared/saved-view-tabs/use-saved-view-tabs.d.ts +59 -0
- package/dist/components/_shared/saved-view-tabs/view-adapter.d.ts +69 -0
- package/dist/components/_shared/table-filters/calendar-day.d.ts +27 -0
- package/dist/components/_shared/table-filters/predicates.d.ts +56 -0
- package/dist/components/_shared/table-toolbar/context.d.ts +28 -0
- package/dist/components/_shared/table-toolbar/describe-filter.d.ts +42 -0
- package/dist/components/_shared/table-toolbar/export-files.d.ts +47 -0
- package/dist/components/{data-table/xlsx-export.d.ts → _shared/table-toolbar/export-xlsx.d.ts} +2 -2
- package/dist/components/_shared/table-toolbar/parts.d.ts +125 -0
- package/dist/components/_shared/table-toolbar/seam.d.ts +261 -0
- package/dist/components/ai-permission-notice/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-timeline/index.js +1 -1
- 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/booking/step-focus.d.ts +0 -6
- 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/chat-container/index.js +1 -1
- package/dist/components/checkbox/checkbox.d.ts +66 -6
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/clinical-note-card/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/cycle-calculator/index.js +1 -1
- package/dist/components/data-grid/announcer.d.ts +27 -0
- package/dist/components/data-grid/body.d.ts +95 -0
- package/dist/components/data-grid/columns.d.ts +96 -0
- package/dist/components/data-grid/data-grid.agent.d.ts +2 -1
- package/dist/components/data-grid/data-grid.d.ts +11 -27
- package/dist/components/data-grid/data-grid.variants.d.ts +118 -0
- package/dist/components/data-grid/editors.d.ts +8 -0
- package/dist/components/data-grid/export-snapshot.d.ts +3 -0
- package/dist/components/data-grid/features.d.ts +56 -0
- package/dist/components/data-grid/filter-fns.d.ts +23 -0
- package/dist/components/data-grid/filters/date-range-panel.d.ts +8 -0
- package/dist/components/data-grid/filters/filter-panels.d.ts +27 -0
- package/dist/components/data-grid/filters/filter-trigger.d.ts +7 -0
- package/dist/components/data-grid/footer.d.ts +10 -0
- package/dist/components/data-grid/grid-context.d.ts +18 -0
- package/dist/components/data-grid/handle.d.ts +60 -0
- package/dist/components/data-grid/header.d.ts +12 -0
- package/dist/components/data-grid/index.d.ts +3 -0
- package/dist/components/data-grid/index.js +10 -3
- package/dist/components/data-grid/keyboard.d.ts +76 -0
- package/dist/components/data-grid/pager.d.ts +18 -0
- package/dist/components/data-grid/persistence.d.ts +60 -0
- package/dist/components/data-grid/print.d.ts +10 -0
- package/dist/components/data-grid/responsive.d.ts +36 -0
- package/dist/components/data-grid/selection.d.ts +58 -0
- package/dist/components/data-grid/state.d.ts +119 -0
- package/dist/components/data-grid/states.d.ts +34 -0
- package/dist/components/data-grid/toolbar-seam.d.ts +7 -0
- package/dist/components/data-grid/toolbar.d.ts +41 -0
- package/dist/components/data-grid/types.d.ts +1346 -0
- package/dist/components/data-grid/use-data-grid-engine.d.ts +9 -0
- package/dist/components/data-grid/virtual-rows.d.ts +43 -0
- package/dist/components/data-grid-tabs/data-grid-tabs.agent.d.ts +9 -0
- package/dist/components/data-grid-tabs/data-grid-tabs.d.ts +4 -0
- package/dist/components/data-grid-tabs/grid-view-adapter.d.ts +15 -0
- package/dist/components/data-grid-tabs/index.d.ts +5 -0
- package/dist/components/data-grid-tabs/index.js +8 -0
- package/dist/components/data-grid-tabs/types.d.ts +220 -0
- package/dist/components/data-table/ag-toolbar-seam.d.ts +35 -0
- package/dist/components/data-table/calendar-day.d.ts +4 -21
- package/dist/components/data-table/data-table.d.ts +10 -6
- package/dist/components/data-table/filters/date-range-filter.d.ts +5 -9
- package/dist/components/data-table/filters/filter-kind.d.ts +6 -0
- package/dist/components/data-table/filters/number-filter.d.ts +6 -10
- package/dist/components/data-table/filters/select-filter.d.ts +2 -4
- package/dist/components/data-table/filters/text-filter.d.ts +2 -5
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table/toolbar.d.ts +25 -21
- package/dist/components/data-table-tabs/ag-view-adapter.d.ts +17 -0
- package/dist/components/data-table-tabs/data-table-tabs.d.ts +34 -33
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +11 -66
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/document-preview/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/heatmap/index.js +1 -1
- package/dist/components/icon-button-group/icon-button-group.d.ts +19 -1
- package/dist/components/icon-button-group/index.d.ts +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +16 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/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-search/patient-search.d.ts +6 -2
- 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/permission-matrix/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 +15 -2
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-footer/public-footer.d.ts +23 -0
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +7 -0
- 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/section-card/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stat/stat.d.ts +7 -0
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/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/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/host-compat.css +36 -2
- package/dist/i18n/locales/ar.d.ts +95 -0
- package/dist/i18n/locales/ar.js +98 -3
- package/dist/i18n/locales/de.d.ts +95 -0
- package/dist/i18n/locales/de.js +98 -3
- package/dist/i18n/locales/el.d.ts +95 -0
- package/dist/i18n/locales/el.js +98 -3
- package/dist/i18n/locales/en.d.ts +95 -0
- package/dist/i18n/locales/en.js +98 -2
- package/dist/i18n/locales/es.d.ts +95 -0
- package/dist/i18n/locales/es.js +98 -3
- package/dist/i18n/locales/fr.d.ts +95 -0
- package/dist/i18n/locales/fr.js +98 -3
- package/dist/i18n/locales/hi.d.ts +95 -0
- package/dist/i18n/locales/hi.js +98 -3
- package/dist/i18n/locales/it.d.ts +95 -0
- package/dist/i18n/locales/it.js +98 -3
- package/dist/i18n/locales/ja.d.ts +95 -0
- package/dist/i18n/locales/ja.js +98 -3
- package/dist/i18n/locales/nl.d.ts +95 -0
- package/dist/i18n/locales/nl.js +98 -3
- package/dist/i18n/locales/pl.d.ts +95 -0
- package/dist/i18n/locales/pl.js +98 -3
- package/dist/i18n/locales/pt.d.ts +95 -0
- package/dist/i18n/locales/pt.js +98 -3
- package/dist/i18n/locales/ro.d.ts +95 -0
- package/dist/i18n/locales/ro.js +98 -3
- package/dist/i18n/locales/ru.d.ts +95 -0
- package/dist/i18n/locales/ru.js +98 -3
- package/dist/i18n/locales/sq.d.ts +95 -0
- package/dist/i18n/locales/sq.js +98 -3
- package/dist/i18n/locales/sv.d.ts +95 -0
- package/dist/i18n/locales/sv.js +98 -3
- package/dist/i18n/locales/tr.d.ts +95 -0
- package/dist/i18n/locales/tr.js +98 -3
- package/dist/i18n/locales/zh.d.ts +95 -0
- package/dist/i18n/locales/zh.js +98 -3
- package/dist/index.js +1048 -1036
- package/dist/locales/ar.json +98 -3
- package/dist/locales/de.json +98 -3
- package/dist/locales/el.json +98 -3
- package/dist/locales/en.json +97 -2
- package/dist/locales/es.json +98 -3
- package/dist/locales/fr.json +98 -3
- package/dist/locales/hi.json +98 -3
- package/dist/locales/it.json +98 -3
- package/dist/locales/ja.json +98 -3
- package/dist/locales/nl.json +98 -3
- package/dist/locales/pl.json +98 -3
- package/dist/locales/pt.json +98 -3
- package/dist/locales/ro.json +98 -3
- package/dist/locales/ru.json +98 -3
- package/dist/locales/sq.json +98 -3
- package/dist/locales/sv.json +98 -3
- package/dist/locales/tr.json +98 -3
- package/dist/locales/zh.json +98 -3
- package/dist/patterns/alia-assistant/index.js +1 -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/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/signed-out-frame/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
- package/dist/_chunks/data-grid.agent-CASyEAnb.js +0 -1773
- package/dist/_chunks/data-table-C9idMvs0.js +0 -2042
- package/dist/_chunks/data-table-tabs-Db7zToFD.js +0 -728
- package/dist/_chunks/format--x5jypvH.js +0 -1319
- package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
- package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
- package/dist/_chunks/map-view-Dn7aXZJw.js +0 -731
- package/dist/_chunks/practice-results-BByRCIuR.js +0 -1977
- package/dist/_chunks/privacy-mask-DbEKI-Jv.js +0 -81
- package/dist/_chunks/subDays-DKISP2nE.js +0 -8
|
@@ -1,59 +1,61 @@
|
|
|
1
|
-
import { jsx as n, jsxs as k, Fragment as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as n, jsxs as k, Fragment as Ne } from "react/jsx-runtime";
|
|
2
|
+
import { useState as q, useRef as C, useEffect as qe, forwardRef as Bt, useId as Ft, 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
|
-
import { A as
|
|
6
|
-
import { B as
|
|
5
|
+
import { A as $ } from "./alert-C4WKViaS.js";
|
|
6
|
+
import { B as $e } 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-duuDRI1t.js";
|
|
9
|
-
import { D as
|
|
10
|
-
import { D as
|
|
9
|
+
import { D as le } from "./dialog-BTjSQjdY.js";
|
|
10
|
+
import { D as xt } 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
|
|
15
|
-
import { R as
|
|
12
|
+
import { I as Pt } from "./icon-button-group-C9mPK-bX.js";
|
|
13
|
+
import { P as Ot } from "./panel-header-CbtlTe85.js";
|
|
14
|
+
import { P as Mt } from "./panel-subview-DCyvn-49.js";
|
|
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 $t } 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
|
|
23
|
-
import { T as
|
|
24
|
-
import { u as
|
|
20
|
+
import { S as qt } from "./switch-DO6uC4HJ.js";
|
|
21
|
+
import { T as _t } from "./text-area-COMVJ1yE.js";
|
|
22
|
+
import { T as Me } from "./text-input-B6iAgCr3.js";
|
|
23
|
+
import { T as Vt } from "./time-picker-DDr5vhwQ.js";
|
|
24
|
+
import { u as zt } from "./registry-DvAUVLHh.js";
|
|
25
25
|
import { u as Lt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
26
26
|
import { c as Ut } from "./compose-refs-C0k0tdqF.js";
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
27
|
+
import { E as Wt, a as Kt } from "./compact-editor-fields-cP6yh7xv.js";
|
|
28
|
+
import { n as Ht } from "./normalize-diacritics-BNGbFNlJ.js";
|
|
29
|
+
import { P as Gt } from "./privacy-mask-BlJK51MD.js";
|
|
30
|
+
import { g as je, h as Qt } from "./handled-rejection-6gqCf5vt.js";
|
|
31
|
+
import { L as Yt } from "./lock-ClAFG1gy.js";
|
|
32
|
+
import { X as Xt } from "./x-B5YnXwCz.js";
|
|
32
33
|
import { c as vt } from "./createLucideIcon-DhHxpK9K.js";
|
|
33
|
-
import { U as
|
|
34
|
-
import { B as
|
|
35
|
-
import { S as
|
|
34
|
+
import { U as Jt } from "./user-B12p7bVF.js";
|
|
35
|
+
import { B as Zt } from "./building-2-D33bLCWL.js";
|
|
36
|
+
import { S as en } from "./stethoscope-sZXGC43m.js";
|
|
36
37
|
import { T as dt } from "./trash-2-uumy3fy1.js";
|
|
37
|
-
import { S as
|
|
38
|
-
import {
|
|
38
|
+
import { S as lt } from "./square-check-big-dj0o8yA3.js";
|
|
39
|
+
import { p as tn } from "./privacy-mask-text-B8YfzB7L.js";
|
|
40
|
+
import { L as nn } from "./loader-circle-BECIU_8N.js";
|
|
39
41
|
/**
|
|
40
42
|
* @license lucide-react v1.22.0 - ISC
|
|
41
43
|
*
|
|
42
44
|
* This source code is licensed under the ISC license.
|
|
43
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
44
46
|
*/
|
|
45
|
-
const
|
|
47
|
+
const on = [
|
|
46
48
|
["path", { d: "m2 2 20 20", key: "1ooewy" }],
|
|
47
49
|
["path", { d: "M8.35 2.69A10 10 0 0 1 21.3 15.65", key: "1pfsoa" }],
|
|
48
50
|
["path", { d: "M19.08 19.08A10 10 0 1 1 4.92 4.92", key: "1ablyi" }]
|
|
49
|
-
],
|
|
51
|
+
], rn = vt("circle-off", on);
|
|
50
52
|
/**
|
|
51
53
|
* @license lucide-react v1.22.0 - ISC
|
|
52
54
|
*
|
|
53
55
|
* This source code is licensed under the ISC license.
|
|
54
56
|
* See the LICENSE file in the root directory of this source tree.
|
|
55
57
|
*/
|
|
56
|
-
const
|
|
58
|
+
const an = [
|
|
57
59
|
[
|
|
58
60
|
"path",
|
|
59
61
|
{
|
|
@@ -63,62 +65,47 @@ const on = [
|
|
|
63
65
|
],
|
|
64
66
|
["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
|
|
65
67
|
["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
|
|
66
|
-
],
|
|
67
|
-
"ds:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker],[data-component=number-input])]:h-8",
|
|
68
|
-
"ds:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker],[data-component=number-input])]:rounded-[var(--radius-md)]",
|
|
69
|
-
"ds:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker],[data-component=number-input])]:[min-block-size:var(--accessible-target-floor,auto)]",
|
|
70
|
-
"ds:max-sm:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker],[data-component=number-input])]:[min-block-size:var(--min-target-size)]",
|
|
71
|
-
/* Multi-line notes keep their height but share the corners. */
|
|
72
|
-
"ds:[&_[data-component=text-area]_textarea]:rounded-[var(--radius-md)]",
|
|
73
|
-
/* The time field's hour and minute segments are 32px at the kit default;
|
|
74
|
-
inside a 32px box they take the kit's `sm` segment height instead,
|
|
75
|
-
and get the default back wherever the field is raised. */
|
|
76
|
-
"ds:[&_[data-component=time-picker]_[role=spinbutton]]:h-[calc(var(--ds-spacing)*(6+2*var(--accessible-on,0)))]",
|
|
77
|
-
"ds:max-sm:[&_[data-component=time-picker]_[role=spinbutton]]:h-8"
|
|
78
|
-
].join(" "), sn = [
|
|
79
|
-
"ds:h-[var(--accessible-auto,calc(var(--ds-spacing)*8))] ds:[&_[role=radio]]:[min-block-size:var(--accessible-target-floor,0px)]",
|
|
80
|
-
"ds:max-sm:h-auto ds:max-sm:[&_[role=radio]]:min-h-[var(--min-target-size)]"
|
|
81
|
-
].join(" ");
|
|
68
|
+
], sn = vt("save", an);
|
|
82
69
|
function dn({
|
|
83
70
|
patients: o = [],
|
|
84
|
-
searchPatients:
|
|
71
|
+
searchPatients: l,
|
|
85
72
|
...I
|
|
86
73
|
}) {
|
|
87
|
-
if (
|
|
88
|
-
return /* @__PURE__ */ n(
|
|
89
|
-
const { value:
|
|
74
|
+
if (l)
|
|
75
|
+
return /* @__PURE__ */ n(ln, { ...I, searchPatients: l });
|
|
76
|
+
const { value: y, onValueChange: x, selectedLabel: B, placeholder: Y, size: D, disabled: X } = I;
|
|
90
77
|
return /* @__PURE__ */ n(
|
|
91
78
|
Qe,
|
|
92
79
|
{
|
|
93
|
-
value:
|
|
94
|
-
onValueChange:
|
|
80
|
+
value: y,
|
|
81
|
+
onValueChange: x,
|
|
95
82
|
options: [
|
|
96
|
-
...
|
|
97
|
-
...o.map((
|
|
83
|
+
...y && !o.some((N) => N.id === y) ? [{ value: y, label: B ?? "" }] : [],
|
|
84
|
+
...o.map((N) => ({ value: N.id, label: N.name }))
|
|
98
85
|
],
|
|
99
86
|
placeholder: Y,
|
|
100
|
-
size:
|
|
87
|
+
size: D,
|
|
101
88
|
disabled: X,
|
|
102
89
|
clearable: !0
|
|
103
90
|
}
|
|
104
91
|
);
|
|
105
92
|
}
|
|
106
|
-
function
|
|
93
|
+
function ln({
|
|
107
94
|
value: o,
|
|
108
|
-
onValueChange:
|
|
95
|
+
onValueChange: l,
|
|
109
96
|
selectedLabel: I,
|
|
110
|
-
placeholder:
|
|
111
|
-
size:
|
|
112
|
-
disabled:
|
|
97
|
+
placeholder: y,
|
|
98
|
+
size: x,
|
|
99
|
+
disabled: B,
|
|
113
100
|
searchPatients: Y
|
|
114
101
|
}) {
|
|
115
|
-
const { t:
|
|
116
|
-
|
|
117
|
-
if (!
|
|
118
|
-
const m = new AbortController(), S = { query:
|
|
102
|
+
const { t: D } = gt("ui"), [X, N] = q(""), [J, Z] = q(0), [P, se] = q(), [T, ee] = q(), V = C(null), O = X.trim();
|
|
103
|
+
qe(() => {
|
|
104
|
+
if (!O) return;
|
|
105
|
+
const m = new AbortController(), S = { query: O, source: Y };
|
|
119
106
|
ee({ ...S, status: "loading", patients: [] });
|
|
120
|
-
const
|
|
121
|
-
Promise.resolve().then(() => Y(
|
|
107
|
+
const ce = setTimeout(() => {
|
|
108
|
+
Promise.resolve().then(() => Y(O, { signal: m.signal })).then(
|
|
122
109
|
(oe) => {
|
|
123
110
|
m.signal.aborted || ee({ ...S, status: "ready", patients: oe });
|
|
124
111
|
},
|
|
@@ -128,16 +115,16 @@ function cn({
|
|
|
128
115
|
);
|
|
129
116
|
}, 250);
|
|
130
117
|
return () => {
|
|
131
|
-
clearTimeout(
|
|
118
|
+
clearTimeout(ce), m.abort();
|
|
132
119
|
};
|
|
133
|
-
}, [
|
|
134
|
-
const
|
|
120
|
+
}, [O, Y, J]);
|
|
121
|
+
const z = (T == null ? void 0 : T.query) === O && T.source === Y, L = O ? z ? T.status : "loading" : "idle", te = z && L === "ready" ? T.patients : [], ne = L === "loading" ? D("inputs.search.loading") : L === "error" ? D("emptyState.error.description") : L === "idle" ? y : te.length === 0 ? D("inputs.combobox.empty") : "", M = te.map((m) => ({
|
|
135
122
|
value: m.id,
|
|
136
123
|
label: m.name
|
|
137
124
|
}));
|
|
138
|
-
return o && !te.some((m) => m.id === o) &&
|
|
125
|
+
return o && !te.some((m) => m.id === o) && M.push({
|
|
139
126
|
value: o,
|
|
140
|
-
label: (
|
|
127
|
+
label: (P == null ? void 0 : P.id) === o ? P.name : I ?? ""
|
|
141
128
|
}), /* @__PURE__ */ k(
|
|
142
129
|
"div",
|
|
143
130
|
{
|
|
@@ -148,44 +135,44 @@ function cn({
|
|
|
148
135
|
/* @__PURE__ */ n(
|
|
149
136
|
Qe,
|
|
150
137
|
{
|
|
151
|
-
ref:
|
|
152
|
-
options:
|
|
138
|
+
ref: V,
|
|
139
|
+
options: M,
|
|
153
140
|
value: o,
|
|
154
141
|
onValueChange: (m) => {
|
|
155
142
|
se(
|
|
156
|
-
(S) => te.find((
|
|
157
|
-
),
|
|
143
|
+
(S) => te.find((ce) => ce.id === m) ?? ((S == null ? void 0 : S.id) === m ? S : void 0)
|
|
144
|
+
), l(m);
|
|
158
145
|
},
|
|
159
|
-
onQueryChange:
|
|
146
|
+
onQueryChange: N,
|
|
160
147
|
onOpenChange: (m) => {
|
|
161
|
-
!m && L !== "error" &&
|
|
148
|
+
!m && L !== "error" && N("");
|
|
162
149
|
},
|
|
163
|
-
filter: (m) => !
|
|
164
|
-
size:
|
|
165
|
-
disabled:
|
|
166
|
-
placeholder:
|
|
150
|
+
filter: (m) => !O || te.some((S) => Ht(S.id) === m) ? 1 : 0,
|
|
151
|
+
size: x,
|
|
152
|
+
disabled: B,
|
|
153
|
+
placeholder: y,
|
|
167
154
|
emptyMessage: ne || void 0,
|
|
168
155
|
clearable: !0
|
|
169
156
|
}
|
|
170
157
|
),
|
|
171
158
|
/* @__PURE__ */ n("p", { role: "status", className: "type-body-sm ds:text-muted-foreground", children: ne }),
|
|
172
159
|
L === "error" ? /* @__PURE__ */ n(
|
|
173
|
-
|
|
160
|
+
$e,
|
|
174
161
|
{
|
|
175
162
|
size: "sm",
|
|
176
163
|
intent: "ghost",
|
|
177
164
|
onClick: () => {
|
|
178
165
|
var m;
|
|
179
|
-
Z((S) => S + 1), (m =
|
|
166
|
+
Z((S) => S + 1), (m = V.current) == null || m.focus();
|
|
180
167
|
},
|
|
181
|
-
children:
|
|
168
|
+
children: D("emptyState.error.cta")
|
|
182
169
|
}
|
|
183
170
|
) : null
|
|
184
171
|
]
|
|
185
172
|
}
|
|
186
173
|
);
|
|
187
174
|
}
|
|
188
|
-
const
|
|
175
|
+
const cn = {
|
|
189
176
|
id: "task-editor",
|
|
190
177
|
// set_value backs set_fields and set_done; submit backs save; dismiss
|
|
191
178
|
// backs cancel.
|
|
@@ -238,8 +225,8 @@ const ln = {
|
|
|
238
225
|
],
|
|
239
226
|
descriptionKey: "ui.agent.taskEditor.actions.setFields",
|
|
240
227
|
description: "Set draft fields. Ids must come from the host lists, a patient the host search returned, or equal the stored one. At most one counterpart per call, and it selects its branch; assigneeId null is nobody. Nothing is saved.",
|
|
241
|
-
invoke: (o,
|
|
242
|
-
o.setFields(
|
|
228
|
+
invoke: (o, l) => {
|
|
229
|
+
o.setFields(l);
|
|
243
230
|
}
|
|
244
231
|
},
|
|
245
232
|
save: {
|
|
@@ -266,7 +253,7 @@ const ln = {
|
|
|
266
253
|
],
|
|
267
254
|
descriptionKey: "ui.agent.taskEditor.actions.setDone",
|
|
268
255
|
description: "Mark an existing task done or not done through the host. A rejection rolls the switch back.",
|
|
269
|
-
invoke: (o,
|
|
256
|
+
invoke: (o, l) => o.setDone(l.done)
|
|
270
257
|
},
|
|
271
258
|
delete: {
|
|
272
259
|
safety: "destructive",
|
|
@@ -298,7 +285,7 @@ const ln = {
|
|
|
298
285
|
description: "Sourced from the id prop, or generated. Addresses one editor from the agent. [data-component-id] reaches the footer actions in both variants."
|
|
299
286
|
}
|
|
300
287
|
}
|
|
301
|
-
},
|
|
288
|
+
}, _ = "none", ct = {
|
|
302
289
|
showError: !1,
|
|
303
290
|
saving: !1,
|
|
304
291
|
saveError: void 0,
|
|
@@ -318,31 +305,31 @@ function Ye(o) {
|
|
|
318
305
|
return { hours: o.getHours(), minutes: o.getMinutes() };
|
|
319
306
|
}
|
|
320
307
|
function ut(o) {
|
|
321
|
-
const
|
|
308
|
+
const l = o ?? /* @__PURE__ */ new Date();
|
|
322
309
|
return {
|
|
323
|
-
date:
|
|
324
|
-
time: Ye(
|
|
310
|
+
date: l,
|
|
311
|
+
time: Ye(l),
|
|
325
312
|
note: "",
|
|
326
|
-
operatorId:
|
|
313
|
+
operatorId: _,
|
|
327
314
|
typeId: "",
|
|
328
|
-
assigneeId:
|
|
315
|
+
assigneeId: _,
|
|
329
316
|
about: "nobody",
|
|
330
317
|
patientId: "",
|
|
331
318
|
companyId: ""
|
|
332
319
|
};
|
|
333
320
|
}
|
|
334
321
|
function pn(o) {
|
|
335
|
-
const
|
|
322
|
+
const l = new Date(o.dateIso);
|
|
336
323
|
return {
|
|
337
|
-
date:
|
|
338
|
-
time: Ye(
|
|
324
|
+
date: l,
|
|
325
|
+
time: Ye(l),
|
|
339
326
|
note: o.note,
|
|
340
327
|
/* `||`, not `??`: a host's '' is unset, like patient and company. */
|
|
341
|
-
operatorId: o.operatorId ||
|
|
328
|
+
operatorId: o.operatorId || _,
|
|
342
329
|
/* A stored type wins. With none, '' falls through to the first entry. */
|
|
343
330
|
typeId: o.typeId ?? "",
|
|
344
331
|
/* `||` too: '' would become a Select option with an empty value. */
|
|
345
|
-
assigneeId: o.assigneeId ||
|
|
332
|
+
assigneeId: o.assigneeId || _,
|
|
346
333
|
about: un(o),
|
|
347
334
|
patientId: o.patientId ?? "",
|
|
348
335
|
companyId: o.companyId ?? ""
|
|
@@ -355,62 +342,62 @@ const mn = [
|
|
|
355
342
|
];
|
|
356
343
|
function fn({
|
|
357
344
|
mode: o,
|
|
358
|
-
taskId:
|
|
345
|
+
taskId: l,
|
|
359
346
|
initialDate: I,
|
|
360
|
-
active:
|
|
361
|
-
taskTypes:
|
|
362
|
-
assignees:
|
|
347
|
+
active: y,
|
|
348
|
+
taskTypes: x,
|
|
349
|
+
assignees: B,
|
|
363
350
|
companies: Y,
|
|
364
|
-
operators:
|
|
351
|
+
operators: D,
|
|
365
352
|
patients: X,
|
|
366
|
-
searchedPatients:
|
|
353
|
+
searchedPatients: N,
|
|
367
354
|
resolvePatientLabel: J,
|
|
368
355
|
loadTask: Z,
|
|
369
|
-
onCreateTask:
|
|
356
|
+
onCreateTask: P,
|
|
370
357
|
onUpdateTask: se,
|
|
371
|
-
onDeleteTask:
|
|
358
|
+
onDeleteTask: T,
|
|
372
359
|
onSetTaskDone: ee,
|
|
373
|
-
onSaved:
|
|
374
|
-
onDeleted:
|
|
375
|
-
readOnly:
|
|
360
|
+
onSaved: V,
|
|
361
|
+
onDeleted: O,
|
|
362
|
+
readOnly: z,
|
|
376
363
|
withheld: L,
|
|
377
364
|
maskPatient: te,
|
|
378
365
|
fallbackError: ne
|
|
379
366
|
}) {
|
|
380
|
-
var
|
|
381
|
-
const
|
|
382
|
-
|
|
383
|
-
const U = `${o}|${
|
|
367
|
+
var Ce;
|
|
368
|
+
const M = o === "edit", [m, S] = q(0), [ce, oe] = q(y);
|
|
369
|
+
ce !== y && (oe(y), y && S((e) => e + 1));
|
|
370
|
+
const U = `${o}|${l ?? ""}|${m}`, [p, fe] = q(
|
|
384
371
|
() => ut(I)
|
|
385
|
-
), [G, Ee] =
|
|
386
|
-
ge !== U && (
|
|
387
|
-
const
|
|
372
|
+
), [G, Ee] = q(ct), [b, r] = q(), w = (e) => Ee((i) => ({ ...i, ...e })), he = (e) => fe((i) => ({ ...i, ...e })), [ge, re] = q(U);
|
|
373
|
+
ge !== U && (re(U), fe(ut(I)), Ee(ct), r(void 0));
|
|
374
|
+
const F = C({
|
|
388
375
|
subject: U,
|
|
389
376
|
saving: !1,
|
|
390
377
|
deleting: !1,
|
|
391
378
|
donePending: !1,
|
|
392
379
|
accepted: !1
|
|
393
380
|
});
|
|
394
|
-
|
|
381
|
+
F.current.subject !== U && (F.current = {
|
|
395
382
|
subject: U,
|
|
396
383
|
saving: !1,
|
|
397
384
|
deleting: !1,
|
|
398
385
|
donePending: !1,
|
|
399
386
|
accepted: !1
|
|
400
387
|
});
|
|
401
|
-
const ve =
|
|
402
|
-
|
|
388
|
+
const ve = C(!0);
|
|
389
|
+
qe(() => (ve.current = !0, () => {
|
|
403
390
|
ve.current = !1;
|
|
404
391
|
}), []);
|
|
405
|
-
const
|
|
392
|
+
const R = (e) => ve.current && F.current === e, ue = C(Z);
|
|
406
393
|
ue.current = Z;
|
|
407
|
-
const d = !!Z, [
|
|
394
|
+
const d = !!Z, [A, c] = q(0), [s, f] = q(null), ke = C(s);
|
|
408
395
|
ke.current = s;
|
|
409
|
-
const
|
|
410
|
-
|
|
396
|
+
const ye = y && M && !!l && d && !L;
|
|
397
|
+
qe(() => {
|
|
411
398
|
const e = ue.current;
|
|
412
|
-
if (!
|
|
413
|
-
const i =
|
|
399
|
+
if (!ye || !l || !e) return;
|
|
400
|
+
const i = F.current, h = ke.current;
|
|
414
401
|
if ((h == null ? void 0 : h.subject) === i.subject && h.status === "ready")
|
|
415
402
|
return;
|
|
416
403
|
const u = new AbortController();
|
|
@@ -418,25 +405,25 @@ function fn({
|
|
|
418
405
|
() => (
|
|
419
406
|
/* Cleaned up before this ran (StrictMode's replay, a quick re-run):
|
|
420
407
|
never call the host with a signal already aborted. */
|
|
421
|
-
u.signal.aborted ? Promise.reject(u.signal.reason) : e(
|
|
408
|
+
u.signal.aborted ? Promise.reject(u.signal.reason) : e(l, { signal: u.signal })
|
|
422
409
|
)
|
|
423
410
|
).then(
|
|
424
411
|
(g) => {
|
|
425
|
-
u.signal.aborted || !
|
|
412
|
+
u.signal.aborted || !R(i) || (fe(pn(g)), w({ done: g.done, confirmedDone: g.done }), r(g), f({ subject: i.subject, status: "ready" }));
|
|
426
413
|
},
|
|
427
414
|
(g) => {
|
|
428
|
-
u.signal.aborted || !
|
|
415
|
+
u.signal.aborted || !R(i) || f({
|
|
429
416
|
subject: i.subject,
|
|
430
417
|
status: "error",
|
|
431
418
|
message: je(g, ne)
|
|
432
419
|
});
|
|
433
420
|
}
|
|
434
421
|
), () => u.abort();
|
|
435
|
-
}, [
|
|
436
|
-
const j =
|
|
437
|
-
j === "error" && (f(null),
|
|
438
|
-
}, pe = p.typeId || (((
|
|
439
|
-
(
|
|
422
|
+
}, [ye, U, A]);
|
|
423
|
+
const j = M ? !l || !d ? "locked" : L ? "withheld" : (s == null ? void 0 : s.subject) === U ? s.status : "loading" : "ready", Q = () => {
|
|
424
|
+
j === "error" && (f(null), c((e) => e + 1));
|
|
425
|
+
}, pe = p.typeId || (((Ce = x[0]) == null ? void 0 : Ce.id) ?? ""), _e = p.about === "nobody" || p.about === "patient" && p.patientId !== "" || p.about === "company" && p.companyId !== "" || p.about === "operator" && p.operatorId !== _, me = !z && p.note.trim() !== "" && p.date !== void 0 && _e && /* Required whenever the host offers a list. */
|
|
426
|
+
(x.length === 0 || pe !== "") && !G.saving && !G.donePending, be = M ? se : P, Se = () => {
|
|
440
427
|
const { date: e, time: i } = p;
|
|
441
428
|
return e ? {
|
|
442
429
|
dateIso: new Date(
|
|
@@ -453,54 +440,54 @@ function fn({
|
|
|
453
440
|
longer resolves: a real link must survive a Save that never
|
|
454
441
|
offered to change it. */
|
|
455
442
|
typeId: pe === "" ? void 0 : pe,
|
|
456
|
-
assigneeId: p.assigneeId ===
|
|
443
|
+
assigneeId: p.assigneeId === _ ? void 0 : p.assigneeId,
|
|
457
444
|
/* ONE counterpart, decided by `about` alone: the platform refuses a
|
|
458
445
|
task carrying two. Never gated on a list being loaded, or a list
|
|
459
446
|
that empties mid-edit would unlink the task on Save. */
|
|
460
447
|
patientId: p.about === "patient" && p.patientId ? p.patientId : void 0,
|
|
461
448
|
companyId: p.about === "company" && p.companyId ? p.companyId : void 0,
|
|
462
|
-
operatorId: p.about === "operator" && p.operatorId !==
|
|
449
|
+
operatorId: p.about === "operator" && p.operatorId !== _ ? p.operatorId : void 0,
|
|
463
450
|
/* The last CONFIRMED value only, never an optimistic or rolled-back
|
|
464
451
|
toggle. */
|
|
465
452
|
done: G.confirmedDone
|
|
466
453
|
} : void 0;
|
|
467
|
-
}, E = (e) =>
|
|
468
|
-
const e =
|
|
454
|
+
}, E = (e) => Qt(new Error(`TaskEditor: ${e}`)), Re = () => {
|
|
455
|
+
const e = F.current;
|
|
469
456
|
if (j !== "ready") return E(`cannot save while ${j}.`);
|
|
470
|
-
if (!
|
|
457
|
+
if (!be) return E("the host gave no save seam.");
|
|
471
458
|
if (e.accepted) return E("this task was already saved.");
|
|
472
459
|
if (e.deleting) return E("a delete is in flight.");
|
|
473
460
|
if (e.saving || !me) return E("the task cannot be saved.");
|
|
474
461
|
const i = Se();
|
|
475
462
|
if (!i)
|
|
476
463
|
return w({ showError: !0 }), E("the task has no date.");
|
|
477
|
-
const h =
|
|
464
|
+
const h = l;
|
|
478
465
|
e.saving = !0, w({ saving: !0, saveError: void 0 });
|
|
479
466
|
const u = (async () => {
|
|
480
467
|
try {
|
|
481
|
-
if (
|
|
482
|
-
await (se == null ? void 0 : se(h, i)), e.accepted = !0,
|
|
468
|
+
if (M)
|
|
469
|
+
await (se == null ? void 0 : se(h, i)), e.accepted = !0, R(e) && (w({ accepted: !0 }), V == null || V({
|
|
483
470
|
...i,
|
|
484
471
|
id: h,
|
|
485
472
|
done: i.done ?? !1
|
|
486
473
|
}));
|
|
487
474
|
else {
|
|
488
|
-
const g = await (
|
|
489
|
-
e.accepted = !0,
|
|
475
|
+
const g = await (P == null ? void 0 : P(i));
|
|
476
|
+
e.accepted = !0, R(e) && (w({ accepted: !0 }), g && (V == null || V(g)));
|
|
490
477
|
}
|
|
491
478
|
} catch (g) {
|
|
492
|
-
throw
|
|
479
|
+
throw R(e) && w({ saveError: je(g, ne) }), g;
|
|
493
480
|
} finally {
|
|
494
|
-
e.saving = !1,
|
|
481
|
+
e.saving = !1, R(e) && w({ saving: !1 });
|
|
495
482
|
}
|
|
496
483
|
})();
|
|
497
484
|
return u.catch(() => {
|
|
498
485
|
}), u;
|
|
499
|
-
},
|
|
500
|
-
const i =
|
|
486
|
+
}, Ae = (e) => {
|
|
487
|
+
const i = F.current;
|
|
501
488
|
if (j !== "ready")
|
|
502
489
|
return E(`cannot change Done while ${j}.`);
|
|
503
|
-
if (!
|
|
490
|
+
if (!M || !l || !ee || z)
|
|
504
491
|
return E("the host gave no Done seam.");
|
|
505
492
|
if (i.donePending) return E("a Done change is already pending.");
|
|
506
493
|
if (i.saving || i.deleting)
|
|
@@ -508,38 +495,38 @@ function fn({
|
|
|
508
495
|
if (i.accepted)
|
|
509
496
|
return E("this task was already saved or deleted.");
|
|
510
497
|
if (e === G.done) return Promise.resolve();
|
|
511
|
-
const h = G.confirmedDone, u =
|
|
498
|
+
const h = G.confirmedDone, u = l;
|
|
512
499
|
i.donePending = !0, w({ done: e, donePending: !0, doneError: void 0 });
|
|
513
500
|
const g = (async () => {
|
|
514
501
|
try {
|
|
515
|
-
await ee(u, e),
|
|
502
|
+
await ee(u, e), R(i) && w({ confirmedDone: e });
|
|
516
503
|
} catch (W) {
|
|
517
|
-
throw
|
|
504
|
+
throw R(i) && w({
|
|
518
505
|
done: h,
|
|
519
506
|
doneError: je(W, ne)
|
|
520
507
|
}), W;
|
|
521
508
|
} finally {
|
|
522
|
-
i.donePending = !1,
|
|
509
|
+
i.donePending = !1, R(i) && w({ donePending: !1 });
|
|
523
510
|
}
|
|
524
511
|
})();
|
|
525
512
|
return g.catch(() => {
|
|
526
513
|
}), g;
|
|
527
|
-
},
|
|
528
|
-
const e =
|
|
514
|
+
}, Be = () => {
|
|
515
|
+
const e = F.current;
|
|
529
516
|
if (j !== "ready") return E(`cannot delete while ${j}.`);
|
|
530
|
-
if (!
|
|
517
|
+
if (!M || !l || !T || z)
|
|
531
518
|
return E("the host gave no delete seam.");
|
|
532
519
|
if (e.saving || e.accepted || e.deleting)
|
|
533
520
|
return E("the task cannot be deleted now.");
|
|
534
|
-
const i =
|
|
521
|
+
const i = l;
|
|
535
522
|
e.deleting = !0, w({ deleting: !0, deleteError: void 0 });
|
|
536
523
|
const h = (async () => {
|
|
537
524
|
try {
|
|
538
|
-
await
|
|
525
|
+
await T(i), e.accepted = !0, R(e) && (w({ accepted: !0, confirmDeleteOpen: !1 }), O == null || O(i));
|
|
539
526
|
} catch (u) {
|
|
540
|
-
throw
|
|
527
|
+
throw R(e) && w({ deleteError: je(u, ne) }), u;
|
|
541
528
|
} finally {
|
|
542
|
-
e.deleting = !1,
|
|
529
|
+
e.deleting = !1, R(e) && w({ deleting: !1 });
|
|
543
530
|
}
|
|
544
531
|
})();
|
|
545
532
|
return h.catch(() => {
|
|
@@ -551,7 +538,7 @@ function fn({
|
|
|
551
538
|
var g;
|
|
552
539
|
if (j !== "ready")
|
|
553
540
|
throw new Error(`TaskEditor: cannot set fields while ${j}.`);
|
|
554
|
-
if (
|
|
541
|
+
if (z) throw new Error("TaskEditor: the task is read-only.");
|
|
555
542
|
const i = mn.filter(([W]) => e[W] !== void 0);
|
|
556
543
|
if (i.length > 1)
|
|
557
544
|
throw new Error(
|
|
@@ -562,18 +549,18 @@ function fn({
|
|
|
562
549
|
throw new Error(
|
|
563
550
|
`TaskEditor: about "${e.about}" does not match the ${h} id.`
|
|
564
551
|
);
|
|
565
|
-
if (e.typeId !== void 0 && !de(
|
|
552
|
+
if (e.typeId !== void 0 && !de(x, e.typeId, b == null ? void 0 : b.typeId))
|
|
566
553
|
throw new Error(`TaskEditor: unknown typeId "${e.typeId}".`);
|
|
567
|
-
if (e.assigneeId !== void 0 && e.assigneeId !== null && !de(
|
|
554
|
+
if (e.assigneeId !== void 0 && e.assigneeId !== null && !de(B, e.assigneeId, b == null ? void 0 : b.assigneeId))
|
|
568
555
|
throw new Error(`TaskEditor: unknown assigneeId "${e.assigneeId}".`);
|
|
569
|
-
if (e.companyId !== void 0 && !de(Y, e.companyId,
|
|
556
|
+
if (e.companyId !== void 0 && !de(Y, e.companyId, b == null ? void 0 : b.companyId))
|
|
570
557
|
throw new Error(`TaskEditor: unknown companyId "${e.companyId}".`);
|
|
571
|
-
if (e.operatorId !== void 0 && !de(
|
|
558
|
+
if (e.operatorId !== void 0 && !de(D, e.operatorId, b == null ? void 0 : b.operatorId))
|
|
572
559
|
throw new Error(`TaskEditor: unknown operatorId "${e.operatorId}".`);
|
|
573
560
|
if (e.patientId !== void 0) {
|
|
574
561
|
if (te)
|
|
575
562
|
throw new Error("TaskEditor: no patient can be set in privacy mode.");
|
|
576
|
-
if (!(de(X, e.patientId,
|
|
563
|
+
if (!(de(X, e.patientId, b == null ? void 0 : b.patientId) || N.has(e.patientId) || (J == null ? void 0 : J(e.patientId)) !== void 0))
|
|
577
564
|
throw new Error(`TaskEditor: unknown patientId "${e.patientId}".`);
|
|
578
565
|
}
|
|
579
566
|
const u = {};
|
|
@@ -583,8 +570,8 @@ function fn({
|
|
|
583
570
|
throw new Error(`TaskEditor: "${e.dateIso}" is not a date.`);
|
|
584
571
|
u.date = W, u.time = Ye(W);
|
|
585
572
|
}
|
|
586
|
-
e.note !== void 0 && (u.note = e.note), e.typeId !== void 0 && (u.typeId = e.typeId), e.assigneeId !== void 0 && (u.assigneeId = e.assigneeId ??
|
|
587
|
-
},
|
|
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 ?? _), 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
|
+
}, Fe = () => {
|
|
588
575
|
const e = Se();
|
|
589
576
|
return {
|
|
590
577
|
mode: o,
|
|
@@ -606,26 +593,26 @@ function fn({
|
|
|
606
593
|
retry: Q,
|
|
607
594
|
fields: p,
|
|
608
595
|
patchFields: he,
|
|
609
|
-
stored:
|
|
596
|
+
stored: b,
|
|
610
597
|
chosenTypeId: pe,
|
|
611
598
|
canSave: me,
|
|
612
599
|
/** What the agent's `canSave` reports: the button's rule plus the
|
|
613
600
|
* status, the seam and a save that has not landed yet. */
|
|
614
|
-
agentCanSave: j === "ready" && !!
|
|
615
|
-
showSave: !
|
|
616
|
-
showDelete:
|
|
617
|
-
showDone:
|
|
601
|
+
agentCanSave: j === "ready" && !!be && me && !G.accepted,
|
|
602
|
+
showSave: !z && !!be,
|
|
603
|
+
showDelete: M && !z && !!T && !!l,
|
|
604
|
+
showDone: M && !z && !!ee,
|
|
618
605
|
ui: G,
|
|
619
606
|
patchUi: w,
|
|
620
607
|
/** True once a save or delete landed in this session. */
|
|
621
|
-
isAccepted: () =>
|
|
608
|
+
isAccepted: () => F.current.accepted,
|
|
622
609
|
/** A save or delete is in flight: closing now would lose its outcome. */
|
|
623
|
-
isBusy: () =>
|
|
624
|
-
submit:
|
|
625
|
-
setDone:
|
|
626
|
-
remove:
|
|
610
|
+
isBusy: () => F.current.saving || F.current.deleting,
|
|
611
|
+
submit: Re,
|
|
612
|
+
setDone: Ae,
|
|
613
|
+
remove: Be,
|
|
627
614
|
applyPatch: Ie,
|
|
628
|
-
draftState:
|
|
615
|
+
draftState: Fe
|
|
629
616
|
};
|
|
630
617
|
}
|
|
631
618
|
const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
@@ -641,7 +628,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
641
628
|
},
|
|
642
629
|
defaultVariants: { variant: "panel" }
|
|
643
630
|
}), mt = ht(
|
|
644
|
-
`ds:m-0 ds:min-w-0 ds:border-0 ds:p-[var(--spacing-md)] ${
|
|
631
|
+
`ds:m-0 ds:min-w-0 ds:border-0 ds:p-[var(--spacing-md)] ${Kt}`,
|
|
645
632
|
{
|
|
646
633
|
variants: {
|
|
647
634
|
/** 'form': the fields in a column. 'notice': the locked notice. */
|
|
@@ -652,91 +639,91 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
652
639
|
},
|
|
653
640
|
defaultVariants: { layout: "form" }
|
|
654
641
|
}
|
|
655
|
-
),
|
|
656
|
-
(I) => !
|
|
657
|
-
), gn = 'button:not([disabled]), a[href], input:not([disabled]), [tabindex]:not([tabindex="-1"])', ft = (o,
|
|
642
|
+
), a = (o) => `calendarWorkspace.taskEditor.${o}`, hn = (o, l, I) => I.includes(l) ? 1 : 0, Te = [], Ge = (o, l) => Array.from(o.querySelectorAll("[data-task-id]")).filter(
|
|
643
|
+
(I) => !l.contains(I)
|
|
644
|
+
), gn = 'button:not([disabled]), a[href], input:not([disabled]), [tabindex]:not([tabindex="-1"])', ft = (o, l) => {
|
|
658
645
|
if (!o) return [];
|
|
659
646
|
const I = Array.from(
|
|
660
647
|
o.querySelectorAll("[data-action]")
|
|
661
648
|
);
|
|
662
649
|
return [
|
|
663
|
-
...I.filter((
|
|
664
|
-
...I.filter((
|
|
650
|
+
...I.filter((y) => l && y.dataset.action === l),
|
|
651
|
+
...I.filter((y) => y.dataset.action === "open-task"),
|
|
665
652
|
...Array.from(o.querySelectorAll(gn))
|
|
666
653
|
];
|
|
667
|
-
}, vn =
|
|
654
|
+
}, vn = Bt(
|
|
668
655
|
({
|
|
669
656
|
id: o,
|
|
670
|
-
mode:
|
|
657
|
+
mode: l,
|
|
671
658
|
taskId: I,
|
|
672
|
-
initialDate:
|
|
673
|
-
variant:
|
|
674
|
-
open:
|
|
659
|
+
initialDate: y,
|
|
660
|
+
variant: x = "panel",
|
|
661
|
+
open: B = !0,
|
|
675
662
|
onExited: Y,
|
|
676
|
-
taskTypes:
|
|
677
|
-
assignees: X =
|
|
678
|
-
companies:
|
|
679
|
-
operators: J =
|
|
680
|
-
patients: Z =
|
|
681
|
-
searchPatients:
|
|
663
|
+
taskTypes: D = Te,
|
|
664
|
+
assignees: X = Te,
|
|
665
|
+
companies: N = Te,
|
|
666
|
+
operators: J = Te,
|
|
667
|
+
patients: Z = Te,
|
|
668
|
+
searchPatients: P,
|
|
682
669
|
patientLabel: se,
|
|
683
|
-
resolvePatientLabel:
|
|
670
|
+
resolvePatientLabel: T,
|
|
684
671
|
companyLabel: ee,
|
|
685
|
-
operatorLabel:
|
|
686
|
-
backLabel:
|
|
687
|
-
loadTask:
|
|
672
|
+
operatorLabel: V,
|
|
673
|
+
backLabel: O,
|
|
674
|
+
loadTask: z,
|
|
688
675
|
onCreateTask: L,
|
|
689
676
|
onUpdateTask: te,
|
|
690
677
|
onDeleteTask: ne,
|
|
691
|
-
onSetTaskDone:
|
|
678
|
+
onSetTaskDone: M,
|
|
692
679
|
onCancel: m,
|
|
693
680
|
onSaved: S,
|
|
694
|
-
onDeleted:
|
|
681
|
+
onDeleted: ce,
|
|
695
682
|
readOnly: oe = !1,
|
|
696
683
|
privacy: U = !1,
|
|
697
684
|
privacyMode: p = "notice",
|
|
698
685
|
onPrivacyOff: fe,
|
|
699
686
|
className: G,
|
|
700
687
|
...Ee
|
|
701
|
-
},
|
|
702
|
-
const { t:
|
|
703
|
-
mode:
|
|
688
|
+
}, b) => {
|
|
689
|
+
const { t: r } = gt("ui"), w = Ft(), 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 = fn({
|
|
690
|
+
mode: l,
|
|
704
691
|
taskId: I,
|
|
705
|
-
initialDate:
|
|
706
|
-
active:
|
|
707
|
-
taskTypes:
|
|
692
|
+
initialDate: y,
|
|
693
|
+
active: F,
|
|
694
|
+
taskTypes: D,
|
|
708
695
|
assignees: X,
|
|
709
|
-
companies:
|
|
696
|
+
companies: N,
|
|
710
697
|
operators: J,
|
|
711
698
|
patients: Z,
|
|
712
699
|
searchedPatients: ue,
|
|
713
|
-
resolvePatientLabel:
|
|
714
|
-
loadTask:
|
|
700
|
+
resolvePatientLabel: T,
|
|
701
|
+
loadTask: z,
|
|
715
702
|
onCreateTask: L,
|
|
716
703
|
onUpdateTask: te,
|
|
717
704
|
onDeleteTask: ne,
|
|
718
|
-
onSetTaskDone:
|
|
705
|
+
onSetTaskDone: M,
|
|
719
706
|
onSaved: S,
|
|
720
|
-
onDeleted:
|
|
707
|
+
onDeleted: ce,
|
|
721
708
|
readOnly: oe,
|
|
722
709
|
withheld: ve,
|
|
723
|
-
maskPatient:
|
|
724
|
-
fallbackError:
|
|
725
|
-
}), { status:
|
|
726
|
-
ke.current =
|
|
727
|
-
const
|
|
728
|
-
() =>
|
|
710
|
+
maskPatient: R,
|
|
711
|
+
fallbackError: r("emptyState.error.title")
|
|
712
|
+
}), { status: A, fields: c, ui: s, stored: f } = d, ke = C(P);
|
|
713
|
+
ke.current = P;
|
|
714
|
+
const ye = !!P, j = Pe(
|
|
715
|
+
() => ye ? async (t, v) => {
|
|
729
716
|
const K = await ke.current(t, v);
|
|
730
717
|
for (const ie of K)
|
|
731
718
|
ue.set(ie.id, ie.name);
|
|
732
719
|
return K;
|
|
733
720
|
} : void 0,
|
|
734
|
-
[
|
|
735
|
-
), Q =
|
|
721
|
+
[ye, ue]
|
|
722
|
+
), Q = C(d);
|
|
736
723
|
Q.current = d;
|
|
737
|
-
const pe =
|
|
724
|
+
const pe = C(m);
|
|
738
725
|
pe.current = m;
|
|
739
|
-
const
|
|
726
|
+
const _e = Pe(
|
|
740
727
|
() => ({
|
|
741
728
|
getStatus: () => Q.current.status,
|
|
742
729
|
getDraft: () => Q.current.draftState(),
|
|
@@ -753,40 +740,40 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
753
740
|
}),
|
|
754
741
|
[]
|
|
755
742
|
);
|
|
756
|
-
|
|
757
|
-
const me =
|
|
758
|
-
() => Ut(
|
|
759
|
-
[
|
|
760
|
-
), Se =
|
|
761
|
-
|
|
762
|
-
const
|
|
763
|
-
|
|
764
|
-
const
|
|
765
|
-
|
|
743
|
+
zt(cn, F ? _e : null, he);
|
|
744
|
+
const me = C(null), be = Pe(
|
|
745
|
+
() => Ut(b, me),
|
|
746
|
+
[b]
|
|
747
|
+
), Se = C(null), E = C(null), Re = C(!1);
|
|
748
|
+
re && B && !Re.current && (E.current = typeof document < "u" && document.activeElement instanceof HTMLElement ? document.activeElement : null), Re.current = re && B;
|
|
749
|
+
const Ae = C(B);
|
|
750
|
+
Ae.current = B;
|
|
751
|
+
const Be = C(I);
|
|
752
|
+
Be.current = ge ? I : void 0, qe(() => {
|
|
766
753
|
var st;
|
|
767
754
|
const t = me.current, v = t == null ? void 0 : t.parentElement;
|
|
768
|
-
if (!
|
|
769
|
-
const K = E.current, ie = K && v.contains(K) && !t.contains(K) ? K : null,
|
|
755
|
+
if (!re || !B || !t || !v) return;
|
|
756
|
+
const K = E.current, ie = K && v.contains(K) && !t.contains(K) ? K : null, Rt = Be.current, De = (ie == null ? void 0 : ie.closest("[data-task-id]")) ?? Ge(v, t).find((xe) => xe.dataset.taskId === Rt), 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;
|
|
770
757
|
return () => {
|
|
771
|
-
if (
|
|
772
|
-
const
|
|
773
|
-
if (!v.isConnected ||
|
|
774
|
-
const Ue = Ge(v, t),
|
|
758
|
+
if (Ae.current && t.isConnected) return;
|
|
759
|
+
const xe = document.activeElement;
|
|
760
|
+
if (!v.isConnected || xe && xe !== document.body) return;
|
|
761
|
+
const Ue = Ge(v, t), At = [
|
|
775
762
|
...ft(
|
|
776
|
-
Ue.find((we) =>
|
|
777
|
-
|
|
763
|
+
Ue.find((we) => rt !== void 0 && we.dataset.taskId === rt),
|
|
764
|
+
at
|
|
778
765
|
),
|
|
779
766
|
/* The row that took its place, or the last row when it was last. */
|
|
780
|
-
...it >= 0 ? ft(Ue[Math.min(it, Ue.length - 1)],
|
|
767
|
+
...it >= 0 ? ft(Ue[Math.min(it, Ue.length - 1)], at) : [],
|
|
781
768
|
v.querySelector('[data-action="add-task"]'),
|
|
782
769
|
v.querySelector("[data-tasks-panel-region]")
|
|
783
770
|
];
|
|
784
|
-
for (const we of
|
|
771
|
+
for (const we of At)
|
|
785
772
|
if (!(!we || t.contains(we)) && (we.focus(), document.activeElement === we))
|
|
786
773
|
return;
|
|
787
774
|
};
|
|
788
|
-
}, [
|
|
789
|
-
const de =
|
|
775
|
+
}, [B, re]);
|
|
776
|
+
const de = C(null), Ie = C(!1), Fe = (t) => () => {
|
|
790
777
|
Ie.current = !0, t();
|
|
791
778
|
};
|
|
792
779
|
Lt(() => {
|
|
@@ -797,68 +784,68 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
797
784
|
Ie.current = !1;
|
|
798
785
|
return;
|
|
799
786
|
}
|
|
800
|
-
|
|
787
|
+
A !== "loading" && (Ie.current = !1), (K = A === "error" ? de.current : t) == null || K.focus({
|
|
801
788
|
preventScroll: !0
|
|
802
789
|
});
|
|
803
|
-
}, [
|
|
804
|
-
const
|
|
805
|
-
() =>
|
|
806
|
-
[
|
|
790
|
+
}, [A]);
|
|
791
|
+
const Ce = r(a(ge ? "editTitle" : "title")), e = N.length > 0, i = J.length > 0, h = ye || Z.length > 0, u = Pe(
|
|
792
|
+
() => N.map((t) => ({ value: t.id, label: t.label })),
|
|
793
|
+
[N]
|
|
807
794
|
), g = (t) => {
|
|
808
795
|
var v;
|
|
809
|
-
return (
|
|
810
|
-
}, W = (t) => t === (f == null ? void 0 : f.operatorId) &&
|
|
811
|
-
{ value:
|
|
796
|
+
return (T == null ? void 0 : T(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");
|
|
797
|
+
}, W = (t) => t === (f == null ? void 0 : f.operatorId) && V ? V : r(a("operatorUnresolved"), { id: t }), yt = [
|
|
798
|
+
{ value: _, label: r(a("operatorNone")) },
|
|
812
799
|
...J.map((t) => ({ value: t.id, label: t.label })),
|
|
813
800
|
/* An operator the roster no longer lists is still a real link, so it
|
|
814
801
|
stays pickable and survives a Save. */
|
|
815
|
-
...
|
|
802
|
+
...c.operatorId !== _ && !J.some((t) => t.id === c.operatorId) ? [
|
|
816
803
|
{
|
|
817
|
-
value:
|
|
818
|
-
label: W(
|
|
804
|
+
value: c.operatorId,
|
|
805
|
+
label: W(c.operatorId)
|
|
819
806
|
}
|
|
820
807
|
] : []
|
|
821
|
-
],
|
|
822
|
-
...
|
|
808
|
+
], bt = D.some((t) => t.custom) && D.some((t) => !t.custom), It = [
|
|
809
|
+
...D.map((t) => ({
|
|
823
810
|
value: t.id,
|
|
824
811
|
label: t.label,
|
|
825
|
-
group:
|
|
812
|
+
group: bt ? r(a(t.custom ? "typeGroupCustom" : "typeGroupStandard")) : void 0
|
|
826
813
|
})),
|
|
827
814
|
/* An id the list no longer resolves is still a real link: offered as
|
|
828
815
|
its own option so Save re-sends it. */
|
|
829
|
-
...d.chosenTypeId && !
|
|
816
|
+
...d.chosenTypeId && !D.some((t) => t.id === d.chosenTypeId) ? [
|
|
830
817
|
{
|
|
831
818
|
value: d.chosenTypeId,
|
|
832
|
-
label: a(
|
|
819
|
+
label: r(a("typeUnresolved"), { id: d.chosenTypeId })
|
|
833
820
|
}
|
|
834
821
|
] : []
|
|
835
822
|
], wt = [
|
|
836
|
-
{ value:
|
|
823
|
+
{ value: _, label: r(a("assigneeNone")) },
|
|
837
824
|
...X.map((t) => ({ value: t.id, label: t.label })),
|
|
838
|
-
...
|
|
825
|
+
...c.assigneeId !== _ && !X.some((t) => t.id === c.assigneeId) ? [
|
|
839
826
|
{
|
|
840
|
-
value:
|
|
841
|
-
label: a(
|
|
827
|
+
value: c.assigneeId,
|
|
828
|
+
label: r(a("assigneeUnresolved"), { id: c.assigneeId })
|
|
842
829
|
}
|
|
843
830
|
] : []
|
|
844
|
-
],
|
|
845
|
-
/* @__PURE__ */ n(
|
|
846
|
-
/* @__PURE__ */ n(
|
|
847
|
-
] }),
|
|
831
|
+
], ae = c.about === "company" && c.companyId && !N.some((t) => t.id === c.companyId) ? c.companyId : void 0, Et = 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(Yt, { "aria-hidden": "true" }), children: [
|
|
832
|
+
/* @__PURE__ */ n($.Title, { as: "p", children: r("calendarWorkspace.details.readOnlyTitle") }),
|
|
833
|
+
/* @__PURE__ */ n($.Description, { children: r(a("readOnlyBody")) })
|
|
834
|
+
] }), Ve = s.saving || s.deleting, Je = () => {
|
|
848
835
|
d.isBusy() || m();
|
|
849
836
|
}, kt = /* @__PURE__ */ n(
|
|
850
837
|
We,
|
|
851
838
|
{
|
|
852
839
|
size: "sm",
|
|
853
840
|
intent: "outline",
|
|
854
|
-
icon: /* @__PURE__ */ n(
|
|
855
|
-
"aria-label": a(
|
|
856
|
-
tooltip: a(
|
|
841
|
+
icon: /* @__PURE__ */ n(Xt, { "aria-hidden": "true" }),
|
|
842
|
+
"aria-label": r(a("cancel")),
|
|
843
|
+
tooltip: r(a("cancel")),
|
|
857
844
|
"data-action": "cancel-task",
|
|
858
|
-
disabled:
|
|
845
|
+
disabled: Ve,
|
|
859
846
|
onClick: Je
|
|
860
847
|
}
|
|
861
|
-
),
|
|
848
|
+
), ze = s.saving || s.accepted, Ze = (t) => /* @__PURE__ */ k(Ne, { children: [
|
|
862
849
|
t && d.showDelete ? /* @__PURE__ */ n(
|
|
863
850
|
We,
|
|
864
851
|
{
|
|
@@ -866,18 +853,18 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
866
853
|
size: "sm",
|
|
867
854
|
intent: "destructiveOutline",
|
|
868
855
|
icon: /* @__PURE__ */ n(dt, { "aria-hidden": "true" }),
|
|
869
|
-
"aria-label": a(
|
|
870
|
-
tooltip: a(
|
|
856
|
+
"aria-label": r(a("delete")),
|
|
857
|
+
tooltip: r(a("delete")),
|
|
871
858
|
"data-action": "delete-task",
|
|
872
|
-
disabled:
|
|
859
|
+
disabled: Ve || s.accepted,
|
|
873
860
|
onClick: () => d.patchUi({ confirmDeleteOpen: !0, deleteError: void 0 })
|
|
874
861
|
}
|
|
875
862
|
) : null,
|
|
876
863
|
/* @__PURE__ */ k(
|
|
877
|
-
|
|
864
|
+
Pt,
|
|
878
865
|
{
|
|
879
866
|
role: "toolbar",
|
|
880
|
-
"aria-label": a(
|
|
867
|
+
"aria-label": r(a("actionsLabel")),
|
|
881
868
|
className: "ds:ms-auto",
|
|
882
869
|
children: [
|
|
883
870
|
kt,
|
|
@@ -887,20 +874,20 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
887
874
|
size: "sm",
|
|
888
875
|
intent: "primary",
|
|
889
876
|
icon: s.saving ? /* @__PURE__ */ n(
|
|
890
|
-
|
|
877
|
+
nn,
|
|
891
878
|
{
|
|
892
879
|
"aria-hidden": "true",
|
|
893
880
|
className: "ds:animate-spin ds:motion-reduce:animate-none"
|
|
894
881
|
}
|
|
895
|
-
) : /* @__PURE__ */ n(
|
|
896
|
-
"aria-label": a(
|
|
897
|
-
tooltip: a(
|
|
898
|
-
disabled: !
|
|
899
|
-
"aria-disabled":
|
|
882
|
+
) : /* @__PURE__ */ n(sn, { "aria-hidden": "true" }),
|
|
883
|
+
"aria-label": r(a("save")),
|
|
884
|
+
tooltip: r(a("save")),
|
|
885
|
+
disabled: !ze && !d.canSave,
|
|
886
|
+
"aria-disabled": ze || void 0,
|
|
900
887
|
"aria-busy": s.saving || void 0,
|
|
901
888
|
"data-action": "save-task",
|
|
902
889
|
onClick: () => {
|
|
903
|
-
|
|
890
|
+
ze || d.submit();
|
|
904
891
|
}
|
|
905
892
|
}
|
|
906
893
|
) : null
|
|
@@ -909,10 +896,10 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
909
896
|
),
|
|
910
897
|
t && d.showSave ? (
|
|
911
898
|
/* Out of flow, so it never moves the footer's two ends. */
|
|
912
|
-
/* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: s.saving ? a(
|
|
899
|
+
/* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: s.saving ? r(a("saving")) : "" })
|
|
913
900
|
) : null
|
|
914
901
|
] }), St = /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
|
|
915
|
-
/* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children:
|
|
902
|
+
/* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: r("common.loading") }),
|
|
916
903
|
/* @__PURE__ */ k(
|
|
917
904
|
"div",
|
|
918
905
|
{
|
|
@@ -945,55 +932,55 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
945
932
|
]
|
|
946
933
|
}
|
|
947
934
|
)
|
|
948
|
-
] }),
|
|
949
|
-
/* @__PURE__ */ n(
|
|
935
|
+
] }), Ct = /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
936
|
+
/* @__PURE__ */ n($, { variant: "error", children: /* @__PURE__ */ n($.Description, { children: d.loadError }) }),
|
|
950
937
|
/* @__PURE__ */ n(
|
|
951
|
-
|
|
938
|
+
$e,
|
|
952
939
|
{
|
|
953
940
|
ref: de,
|
|
954
941
|
intent: "outline",
|
|
955
942
|
"data-action": "retry-load",
|
|
956
|
-
onClick:
|
|
957
|
-
children:
|
|
943
|
+
onClick: Fe(d.retry),
|
|
944
|
+
children: r("emptyState.error.cta")
|
|
958
945
|
}
|
|
959
946
|
)
|
|
960
|
-
] }),
|
|
947
|
+
] }), Dt = /* @__PURE__ */ n("fieldset", { disabled: !0, className: mt({ layout: "notice" }), children: Xe }), Nt = () => c.about !== "patient" ? null : R ? /* @__PURE__ */ n(H, { label: r(a("aboutPatient")), children: /* @__PURE__ */ n(Me, { value: tn(), disabled: !0, readOnly: !0 }) }) : h ? /* @__PURE__ */ n(H, { label: r(a("aboutPatient")), children: /* @__PURE__ */ n(
|
|
961
948
|
dn,
|
|
962
949
|
{
|
|
963
|
-
value:
|
|
950
|
+
value: c.patientId,
|
|
964
951
|
onValueChange: (t) => d.patchFields({ patientId: t }),
|
|
965
952
|
patients: Z,
|
|
966
953
|
searchPatients: j,
|
|
967
|
-
selectedLabel:
|
|
968
|
-
placeholder:
|
|
954
|
+
selectedLabel: c.patientId ? g(c.patientId) : void 0,
|
|
955
|
+
placeholder: r("calendarWorkspace.editor.patientSearch"),
|
|
969
956
|
disabled: oe
|
|
970
957
|
}
|
|
971
|
-
) }) :
|
|
958
|
+
) }) : c.patientId ? /* @__PURE__ */ n(H, { label: r(a("aboutPatient")), children: /* @__PURE__ */ n(Me, { value: g(c.patientId), disabled: !0, readOnly: !0 }) }) : null, et = /* @__PURE__ */ k("fieldset", { disabled: oe, className: mt(), children: [
|
|
972
959
|
oe ? Xe : null,
|
|
973
|
-
/* @__PURE__ */ n(H, { label: a(
|
|
974
|
-
|
|
960
|
+
/* @__PURE__ */ n(H, { label: r(a("date")), children: /* @__PURE__ */ n(
|
|
961
|
+
xt,
|
|
975
962
|
{
|
|
976
|
-
value:
|
|
963
|
+
value: c.date,
|
|
977
964
|
onChange: (t) => d.patchFields({ date: t })
|
|
978
965
|
}
|
|
979
966
|
) }),
|
|
980
|
-
/* @__PURE__ */ n(H, { label: a(
|
|
981
|
-
|
|
967
|
+
/* @__PURE__ */ n(H, { label: r(a("time")), children: /* @__PURE__ */ n(
|
|
968
|
+
Vt,
|
|
982
969
|
{
|
|
983
|
-
value:
|
|
970
|
+
value: c.time,
|
|
984
971
|
onChange: (t) => d.patchFields({ time: t })
|
|
985
972
|
}
|
|
986
973
|
) }),
|
|
987
974
|
/* @__PURE__ */ n(
|
|
988
975
|
H,
|
|
989
976
|
{
|
|
990
|
-
label: a(
|
|
977
|
+
label: r(a("note")),
|
|
991
978
|
required: !0,
|
|
992
|
-
error: s.showError &&
|
|
979
|
+
error: s.showError && c.note.trim() === "" ? r(a("noteRequired")) : void 0,
|
|
993
980
|
children: /* @__PURE__ */ n(
|
|
994
|
-
|
|
981
|
+
_t,
|
|
995
982
|
{
|
|
996
|
-
value:
|
|
983
|
+
value: c.note,
|
|
997
984
|
onChange: (t) => {
|
|
998
985
|
d.patchFields({ note: t.target.value }), d.patchUi({ showError: !1 });
|
|
999
986
|
},
|
|
@@ -1003,7 +990,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1003
990
|
)
|
|
1004
991
|
}
|
|
1005
992
|
),
|
|
1006
|
-
|
|
993
|
+
D.length > 0 ? /* @__PURE__ */ n(H, { label: r(a("type")), required: !0, children: /* @__PURE__ */ n(
|
|
1007
994
|
Ke,
|
|
1008
995
|
{
|
|
1009
996
|
options: It,
|
|
@@ -1011,109 +998,109 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1011
998
|
onValueChange: (t) => t && d.patchFields({ typeId: t })
|
|
1012
999
|
}
|
|
1013
1000
|
) }) : null,
|
|
1014
|
-
X.length > 0 ? /* @__PURE__ */ n(H, { label: a(
|
|
1001
|
+
X.length > 0 ? /* @__PURE__ */ n(H, { label: r(a("assignee")), children: /* @__PURE__ */ n(
|
|
1015
1002
|
Ke,
|
|
1016
1003
|
{
|
|
1017
1004
|
options: wt,
|
|
1018
|
-
value:
|
|
1005
|
+
value: c.assigneeId,
|
|
1019
1006
|
onValueChange: (t) => t && d.patchFields({ assigneeId: t })
|
|
1020
1007
|
}
|
|
1021
1008
|
) }) : null,
|
|
1022
1009
|
/* @__PURE__ */ k(
|
|
1023
1010
|
jt,
|
|
1024
1011
|
{
|
|
1025
|
-
label: a(
|
|
1012
|
+
label: r(a("about")),
|
|
1026
1013
|
variant: "segmented",
|
|
1027
|
-
className:
|
|
1028
|
-
value:
|
|
1014
|
+
className: Wt,
|
|
1015
|
+
value: c.about,
|
|
1029
1016
|
onValueChange: (t) => d.patchFields({ about: t }),
|
|
1030
1017
|
children: [
|
|
1031
1018
|
/* @__PURE__ */ n(
|
|
1032
|
-
|
|
1019
|
+
Oe,
|
|
1033
1020
|
{
|
|
1034
1021
|
value: "nobody",
|
|
1035
|
-
label: a(
|
|
1036
|
-
icon: /* @__PURE__ */ n(
|
|
1022
|
+
label: r(a("aboutNobody")),
|
|
1023
|
+
icon: /* @__PURE__ */ n(rn, { "aria-hidden": "true" })
|
|
1037
1024
|
}
|
|
1038
1025
|
),
|
|
1039
|
-
h ||
|
|
1040
|
-
|
|
1026
|
+
h || c.about === "patient" || f != null && f.patientId ? /* @__PURE__ */ n(
|
|
1027
|
+
Oe,
|
|
1041
1028
|
{
|
|
1042
1029
|
value: "patient",
|
|
1043
|
-
label: a(
|
|
1044
|
-
icon: /* @__PURE__ */ n(
|
|
1030
|
+
label: r(a("aboutPatient")),
|
|
1031
|
+
icon: /* @__PURE__ */ n(Jt, { "aria-hidden": "true" })
|
|
1045
1032
|
}
|
|
1046
1033
|
) : null,
|
|
1047
|
-
e ||
|
|
1048
|
-
|
|
1034
|
+
e || c.about === "company" || f != null && f.companyId ? /* @__PURE__ */ n(
|
|
1035
|
+
Oe,
|
|
1049
1036
|
{
|
|
1050
1037
|
value: "company",
|
|
1051
|
-
label: a(
|
|
1052
|
-
icon: /* @__PURE__ */ n(
|
|
1038
|
+
label: r(a("aboutCompany")),
|
|
1039
|
+
icon: /* @__PURE__ */ n(Zt, { "aria-hidden": "true" })
|
|
1053
1040
|
}
|
|
1054
1041
|
) : null,
|
|
1055
|
-
i ||
|
|
1056
|
-
|
|
1042
|
+
i || c.about === "operator" || f != null && f.operatorId ? /* @__PURE__ */ n(
|
|
1043
|
+
Oe,
|
|
1057
1044
|
{
|
|
1058
1045
|
value: "operator",
|
|
1059
|
-
label: a(
|
|
1060
|
-
icon: /* @__PURE__ */ n(
|
|
1046
|
+
label: r(a("aboutOperator")),
|
|
1047
|
+
icon: /* @__PURE__ */ n(en, { "aria-hidden": "true" })
|
|
1061
1048
|
}
|
|
1062
1049
|
) : null
|
|
1063
1050
|
]
|
|
1064
1051
|
}
|
|
1065
1052
|
),
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1053
|
+
Nt(),
|
|
1054
|
+
c.about === "company" ? /* @__PURE__ */ k(Ne, { children: [
|
|
1055
|
+
ae ? /* @__PURE__ */ n(H, { label: r(a("companyName")), children: /* @__PURE__ */ n(Me, { value: Et, disabled: !0, readOnly: !0 }) }) : null,
|
|
1069
1056
|
e ? /* @__PURE__ */ n(
|
|
1070
1057
|
H,
|
|
1071
1058
|
{
|
|
1072
|
-
label:
|
|
1073
|
-
|
|
1059
|
+
label: r(
|
|
1060
|
+
a(ae ? "companyReplace" : "companyName")
|
|
1074
1061
|
),
|
|
1075
1062
|
children: /* @__PURE__ */ n(
|
|
1076
1063
|
Qe,
|
|
1077
1064
|
{
|
|
1078
1065
|
options: u,
|
|
1079
|
-
value:
|
|
1080
|
-
onValueChange: (t) =>
|
|
1081
|
-
clearable: !
|
|
1066
|
+
value: ae ? "" : c.companyId,
|
|
1067
|
+
onValueChange: (t) => ae ? t && d.patchFields({ companyId: t }) : d.patchFields({ companyId: t }),
|
|
1068
|
+
clearable: !ae && !oe,
|
|
1082
1069
|
filter: hn,
|
|
1083
|
-
placeholder: a(
|
|
1084
|
-
"aria-label":
|
|
1085
|
-
|
|
1070
|
+
placeholder: r(a("companySearch")),
|
|
1071
|
+
"aria-label": r(
|
|
1072
|
+
a(ae ? "companyReplace" : "companyName")
|
|
1086
1073
|
)
|
|
1087
1074
|
}
|
|
1088
1075
|
)
|
|
1089
1076
|
}
|
|
1090
1077
|
) : null
|
|
1091
1078
|
] }) : null,
|
|
1092
|
-
|
|
1079
|
+
c.about === "operator" ? i ? /* @__PURE__ */ n(H, { label: r(a("operator")), children: /* @__PURE__ */ n(
|
|
1093
1080
|
Ke,
|
|
1094
1081
|
{
|
|
1095
|
-
options:
|
|
1096
|
-
value:
|
|
1082
|
+
options: yt,
|
|
1083
|
+
value: c.operatorId,
|
|
1097
1084
|
onValueChange: (t) => t && d.patchFields({ operatorId: t })
|
|
1098
1085
|
}
|
|
1099
|
-
) }) :
|
|
1086
|
+
) }) : c.operatorId !== _ ? (
|
|
1100
1087
|
/* No roster to pick from: name the link read-only. */
|
|
1101
|
-
/* @__PURE__ */ n(H, { label: a(
|
|
1102
|
-
|
|
1088
|
+
/* @__PURE__ */ n(H, { label: r(a("operator")), children: /* @__PURE__ */ n(
|
|
1089
|
+
Me,
|
|
1103
1090
|
{
|
|
1104
|
-
value: W(
|
|
1091
|
+
value: W(c.operatorId),
|
|
1105
1092
|
disabled: !0,
|
|
1106
1093
|
readOnly: !0
|
|
1107
1094
|
}
|
|
1108
1095
|
) })
|
|
1109
1096
|
) : null : null,
|
|
1110
|
-
d.showDone ? /* @__PURE__ */ k(
|
|
1097
|
+
d.showDone ? /* @__PURE__ */ k(Ne, { children: [
|
|
1111
1098
|
/* @__PURE__ */ n(
|
|
1112
|
-
|
|
1099
|
+
qt,
|
|
1113
1100
|
{
|
|
1114
|
-
label: a(
|
|
1101
|
+
label: r(a("done")),
|
|
1115
1102
|
checked: s.done,
|
|
1116
|
-
disabled:
|
|
1103
|
+
disabled: Ve || s.accepted,
|
|
1117
1104
|
"aria-disabled": s.donePending || void 0,
|
|
1118
1105
|
"aria-busy": s.donePending || void 0,
|
|
1119
1106
|
className: "ds:aria-disabled:cursor-progress",
|
|
@@ -1122,26 +1109,26 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1122
1109
|
}
|
|
1123
1110
|
}
|
|
1124
1111
|
),
|
|
1125
|
-
s.doneError ? /* @__PURE__ */ n(
|
|
1112
|
+
s.doneError ? /* @__PURE__ */ n($, { variant: "error", children: /* @__PURE__ */ n($.Description, { children: s.doneError }) }) : null
|
|
1126
1113
|
] }) : null,
|
|
1127
|
-
s.saveError ? /* @__PURE__ */ n(
|
|
1128
|
-
s.deleteError && !s.confirmDeleteOpen ? /* @__PURE__ */ n(
|
|
1129
|
-
] }), tt =
|
|
1130
|
-
|
|
1114
|
+
s.saveError ? /* @__PURE__ */ n($, { variant: "error", children: /* @__PURE__ */ n($.Description, { children: s.saveError }) }) : null,
|
|
1115
|
+
s.deleteError && !s.confirmDeleteOpen ? /* @__PURE__ */ n($, { variant: "error", children: /* @__PURE__ */ n($.Description, { children: s.deleteError }) }) : null
|
|
1116
|
+
] }), tt = A === "loading" ? St : A === "error" ? Ct : A === "locked" ? Dt : A === "withheld" ? /* @__PURE__ */ n(
|
|
1117
|
+
Gt,
|
|
1131
1118
|
{
|
|
1132
|
-
onTurnOff: fe ?
|
|
1119
|
+
onTurnOff: fe ? Fe(fe) : void 0
|
|
1133
1120
|
}
|
|
1134
|
-
) :
|
|
1135
|
-
|
|
1121
|
+
) : re ? et : /* @__PURE__ */ n($t, { 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
|
+
le,
|
|
1136
1123
|
{
|
|
1137
|
-
open: s.confirmDeleteOpen &&
|
|
1124
|
+
open: s.confirmDeleteOpen && F,
|
|
1138
1125
|
onOpenChange: (t) => {
|
|
1139
1126
|
s.deleting || d.patchUi(
|
|
1140
1127
|
t ? { confirmDeleteOpen: !0 } : { confirmDeleteOpen: !1, deleteError: void 0 }
|
|
1141
1128
|
);
|
|
1142
1129
|
},
|
|
1143
1130
|
children: /* @__PURE__ */ k(
|
|
1144
|
-
|
|
1131
|
+
le.Content,
|
|
1145
1132
|
{
|
|
1146
1133
|
size: "sm",
|
|
1147
1134
|
variant: "alert",
|
|
@@ -1150,15 +1137,15 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1150
1137
|
t.preventDefault(), d.isAccepted() || (v = Se.current) == null || v.focus();
|
|
1151
1138
|
},
|
|
1152
1139
|
children: [
|
|
1153
|
-
/* @__PURE__ */ k(
|
|
1154
|
-
/* @__PURE__ */ n(
|
|
1155
|
-
/* @__PURE__ */ n(
|
|
1140
|
+
/* @__PURE__ */ k(le.Header, { children: [
|
|
1141
|
+
/* @__PURE__ */ n(le.Title, { children: r(a("deleteConfirmTitle")) }),
|
|
1142
|
+
/* @__PURE__ */ n(le.Description, { children: r(a("deleteConfirmBody")) })
|
|
1156
1143
|
] }),
|
|
1157
|
-
s.deleteError ? /* @__PURE__ */ n(
|
|
1158
|
-
/* @__PURE__ */ k(
|
|
1159
|
-
/* @__PURE__ */ n(
|
|
1144
|
+
s.deleteError ? /* @__PURE__ */ n(le.Body, { children: /* @__PURE__ */ n($, { variant: "error", children: /* @__PURE__ */ n($.Description, { children: s.deleteError }) }) }) : null,
|
|
1145
|
+
/* @__PURE__ */ k(le.Footer, { divider: !0, children: [
|
|
1146
|
+
/* @__PURE__ */ n(le.Close, { asChild: !0, children: /* @__PURE__ */ n($e, { intent: "outline", "aria-disabled": s.deleting || void 0, children: r(a("deleteCancel")) }) }),
|
|
1160
1147
|
/* @__PURE__ */ n(
|
|
1161
|
-
|
|
1148
|
+
$e,
|
|
1162
1149
|
{
|
|
1163
1150
|
intent: "destructive",
|
|
1164
1151
|
startIcon: /* @__PURE__ */ n(dt, { "aria-hidden": "true" }),
|
|
@@ -1167,7 +1154,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1167
1154
|
onClick: () => {
|
|
1168
1155
|
s.deleting || d.remove();
|
|
1169
1156
|
},
|
|
1170
|
-
children: a(
|
|
1157
|
+
children: r(a("deleteConfirm"))
|
|
1171
1158
|
}
|
|
1172
1159
|
)
|
|
1173
1160
|
] })
|
|
@@ -1178,46 +1165,46 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1178
1165
|
) : null, ot = {
|
|
1179
1166
|
"data-component": "task-editor",
|
|
1180
1167
|
"data-component-id": he,
|
|
1181
|
-
"data-variant":
|
|
1182
|
-
"data-status":
|
|
1168
|
+
"data-variant": x,
|
|
1169
|
+
"data-status": A
|
|
1183
1170
|
};
|
|
1184
|
-
return
|
|
1171
|
+
return re ? /* @__PURE__ */ k(Ne, { children: [
|
|
1185
1172
|
/* @__PURE__ */ n(
|
|
1186
|
-
|
|
1173
|
+
Mt,
|
|
1187
1174
|
{
|
|
1188
1175
|
...Ee,
|
|
1189
1176
|
"data-component-id": he,
|
|
1190
|
-
"data-variant":
|
|
1191
|
-
"data-status":
|
|
1192
|
-
ref:
|
|
1193
|
-
open:
|
|
1177
|
+
"data-variant": x,
|
|
1178
|
+
"data-status": A,
|
|
1179
|
+
ref: be,
|
|
1180
|
+
open: B,
|
|
1194
1181
|
onBack: Je,
|
|
1195
1182
|
onExited: Y,
|
|
1196
|
-
title:
|
|
1197
|
-
icon: /* @__PURE__ */ n(
|
|
1198
|
-
backLabel:
|
|
1183
|
+
title: Ce,
|
|
1184
|
+
icon: /* @__PURE__ */ n(lt, { "aria-hidden": "true" }),
|
|
1185
|
+
backLabel: O ?? r(a("back")),
|
|
1199
1186
|
footer: Le,
|
|
1200
|
-
footerAlign:
|
|
1187
|
+
footerAlign: Tt ? "between" : "end",
|
|
1201
1188
|
className: G,
|
|
1202
|
-
children: /* @__PURE__ */ n("div", { ...ot, className: pt({ variant:
|
|
1189
|
+
children: /* @__PURE__ */ n("div", { ...ot, className: pt({ variant: x }), children: tt })
|
|
1203
1190
|
}
|
|
1204
1191
|
),
|
|
1205
1192
|
nt
|
|
1206
|
-
] }) : /* @__PURE__ */ k(
|
|
1193
|
+
] }) : /* @__PURE__ */ k(Ne, { children: [
|
|
1207
1194
|
/* @__PURE__ */ k(
|
|
1208
1195
|
"div",
|
|
1209
1196
|
{
|
|
1210
1197
|
tabIndex: -1,
|
|
1211
1198
|
...Ee,
|
|
1212
1199
|
...ot,
|
|
1213
|
-
ref:
|
|
1214
|
-
className: pt({ variant:
|
|
1200
|
+
ref: be,
|
|
1201
|
+
className: pt({ variant: x, className: G }),
|
|
1215
1202
|
children: [
|
|
1216
1203
|
/* @__PURE__ */ n(
|
|
1217
|
-
|
|
1204
|
+
Ot,
|
|
1218
1205
|
{
|
|
1219
|
-
title:
|
|
1220
|
-
icon: /* @__PURE__ */ n(
|
|
1206
|
+
title: Ce,
|
|
1207
|
+
icon: /* @__PURE__ */ n(lt, { "aria-hidden": "true" }),
|
|
1221
1208
|
sticky: !0,
|
|
1222
1209
|
divider: !0
|
|
1223
1210
|
}
|
|
@@ -1233,10 +1220,9 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1233
1220
|
);
|
|
1234
1221
|
vn.displayName = "TaskEditor";
|
|
1235
1222
|
export {
|
|
1236
|
-
rn as E,
|
|
1237
1223
|
dn as P,
|
|
1238
|
-
|
|
1224
|
+
sn as S,
|
|
1239
1225
|
vn as T,
|
|
1240
|
-
|
|
1226
|
+
cn as t
|
|
1241
1227
|
};
|
|
1242
|
-
//# sourceMappingURL=task-editor-
|
|
1228
|
+
//# sourceMappingURL=task-editor-CSa6vQ9r.js.map
|