@alfadocs/ui-kit 1.47.0 → 1.48.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-B5m9lwgC.js → actions-cell-renderer-DMittsR3.js} +4 -4
- package/dist/_chunks/{address-autocomplete-Bq-1n1UX.js → address-autocomplete-Dp5uMvKP.js} +61 -60
- package/dist/_chunks/{address-fields-jFfjxOQR.js → address-fields-QfC-N3pw.js} +5 -5
- package/dist/_chunks/{agenda-card-DyQtHb9z.js → agenda-card-C4h0xMGi.js} +2 -2
- package/dist/_chunks/{agenda-tray-CBaJASb5.js → agenda-tray-DNZYW2xt.js} +4 -4
- package/dist/_chunks/{ai-credits-notice-xszqOZTC.js → ai-credits-notice-C-kz_RrY.js} +3 -3
- package/dist/_chunks/{ai-permission-notice-D7I2U-cz.js → ai-permission-notice-BRZeS3mT.js} +3 -3
- package/dist/_chunks/{ai-prompt-input-DXknpQCB.js → ai-prompt-input-CxvnXsAs.js} +82 -82
- package/dist/_chunks/{alia-sidebar-CUqaJNPQ.js → alia-sidebar-Crn8OGPF.js} +7 -7
- package/dist/_chunks/{anamnesis-card-xtEhyojD.js → anamnesis-card-D8Si-2GV.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-card-CclBbiXg.js → anamnesis-summary-card-DPyScUMM.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-DI-UX5r6.js → anamnesis-summary-rows-CZirLRuv.js} +12 -12
- package/dist/_chunks/{antenatal-schedule-timeline-CXk_tzWG.js → antenatal-schedule-timeline-8fm3vPSV.js} +2 -2
- package/dist/_chunks/{appointment-card-DluZy8Iv.js → appointment-card-CvGU0QP6.js} +5 -5
- package/dist/_chunks/{appointment-peek-BsfCpiJs.js → appointment-peek--dmWznLZ.js} +5 -5
- package/dist/_chunks/{appointment-timeline-Cs5f9viN.js → appointment-timeline-y9uYZMUd.js} +6 -6
- package/dist/_chunks/{appointment-tray-CLrGGnKR.js → appointment-tray-BTecNeSb.js} +4 -4
- package/dist/_chunks/appointment-workflow-status-CS8ufF1f.js +66 -0
- package/dist/_chunks/{audio-recorder-B7dT-Y3v.js → audio-recorder-DZBtAvLH.js} +4 -4
- package/dist/_chunks/{autocomplete-MpBhz-fG.js → autocomplete-DSasZUf6.js} +65 -64
- package/dist/_chunks/{badge-BudgzTe_.js → badge-BAkd6_Pj.js} +24 -17
- package/dist/_chunks/{balance-badge-cell-YGrYdrvR.js → balance-badge-cell-CA0YNJMR.js} +6 -6
- package/dist/_chunks/{bishop-score-Cu70iv9C.js → bishop-score-BMLRvXYF.js} +4 -4
- package/dist/_chunks/{bmi-calculator-C9N19aLX.js → bmi-calculator-DUhRyyrA.js} +3 -3
- package/dist/_chunks/{booking-C4MwImkS.js → booking-BQYFDcrz.js} +10 -10
- package/dist/_chunks/{breadcrumb-agut0PwN.js → breadcrumb-D3boYzD4.js} +50 -49
- package/dist/_chunks/{button-CaUe1uyd.js → button-18oBsI3n.js} +54 -50
- package/dist/_chunks/button-group-BSDqso_C.js +408 -0
- package/dist/_chunks/{calendar-OzSeTb4V.js → calendar-DjoJ9ovF.js} +11 -17
- package/dist/_chunks/{calendar-event-card-B6N5h1dO.js → calendar-event-card-BUbKBPv_.js} +55 -73
- package/dist/_chunks/calendar-workspace-D8zX9JWm.js +10423 -0
- package/dist/_chunks/{care-plan-card-BOv0NRle.js → care-plan-card-ciBaaguw.js} +4 -4
- package/dist/_chunks/{care-plan-entry-card-d-rZD4li.js → care-plan-entry-card-D7A0whiZ.js} +5 -5
- package/dist/_chunks/{care-plan-header-CEmBXn6-.js → care-plan-header-DKV1gLqv.js} +4 -4
- package/dist/_chunks/{carousel.agent-z1yLBpyC.js → carousel.agent-DqDGR2yH.js} +2 -2
- package/dist/_chunks/{chart-D8ucl8hH.js → chart-VjuXDXOZ.js} +3 -3
- package/dist/_chunks/{chat-input-Cj7ZYQr5.js → chat-input-BVho_SqP.js} +2 -2
- package/dist/_chunks/{chat-message-BMVxiUIX.js → chat-message-Co_NRGM4.js} +3 -3
- package/dist/_chunks/{smartphone-DaPcFw-X.js → circle-dashed-CUj6o2cA.js} +3 -14
- package/dist/_chunks/{city-input-DaQc-Hbj.js → city-input-BGYc4lRV.js} +2 -2
- package/dist/_chunks/{clinical-note-card-DdsGYMmI.js → clinical-note-card-DYDQ3q2x.js} +89 -74
- package/dist/_chunks/{code-block-BB-viuTn.js → code-block-C_eNHWaa.js} +2 -2
- package/dist/_chunks/combobox-B_rLwmSv.js +578 -0
- package/dist/_chunks/{command-palette-DQl_SNEv.js → command-palette-DhgGo7GJ.js} +82 -80
- package/dist/_chunks/{connection-status-BmA9T0UO.js → connection-status-Cfux3TvH.js} +4 -4
- package/dist/_chunks/{contact-profile-card-C0WpwpVV.js → contact-profile-card-Dj4NgBL-.js} +3 -3
- package/dist/_chunks/control-room-rail-DAO0qfOI.js +379 -0
- package/dist/_chunks/{copy-field-B8XRVmQv.js → copy-field-Cm4y5Bff.js} +2 -2
- package/dist/_chunks/{country-select-CfDNFG5c.js → country-select-C5jZjO8O.js} +2 -2
- package/dist/_chunks/{cycle-calculator-BH2StWoT.js → cycle-calculator-B9lBRNiZ.js} +3 -3
- package/dist/_chunks/{dashboard-grid-BcXWL5S9.js → dashboard-grid-uX7x1ePj.js} +2 -2
- package/dist/_chunks/{data-table-DnKOmEVw.js → data-table-DWOSxlsy.js} +9 -9
- package/dist/_chunks/{data-table-tabs-B9SXA5VP.js → data-table-tabs-CzYYKp2_.js} +3 -3
- package/dist/_chunks/{dependent-selector-BHDP0nBB.js → dependent-selector-BR_8D2Qu.js} +2 -2
- package/dist/_chunks/{description-list-BsJ_6CQE.js → description-list-1A2DEbE6.js} +2 -2
- package/dist/_chunks/{document-preview-COV0BC6n.js → document-preview-Od2Hz4z5.js} +13 -12
- package/dist/_chunks/{document-scanner-B1abl-A4.js → document-scanner-p0aGlzCy.js} +3 -3
- package/dist/_chunks/{dropdown-menu-DU-Hrf33.js → dropdown-menu-C8PaW3lR.js} +110 -96
- package/dist/_chunks/{due-date-calculator-Buh_mVHq.js → due-date-calculator-BVqJaxzd.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-OUkUv7U4.js → editable-currency-cell-renderer-D_G2Ap61.js} +4 -4
- package/dist/_chunks/{editable-description-ADMVFPUz.js → editable-description-B4NVdjvd.js} +3 -3
- package/dist/_chunks/{editor-overlay-DwNKaI22.js → editor-overlay-BDiBvQmL.js} +2 -2
- package/dist/_chunks/{empty-state-BUN_UAWf.js → empty-state-DTBZ1ENT.js} +2 -2
- package/dist/_chunks/{entity-card-I-Gio5wo.js → entity-card-D1Yrh9wf.js} +2 -1
- package/dist/_chunks/{entity-summary-DXejuQ8i.js → entity-summary-Ckz_U00H.js} +3 -3
- package/dist/_chunks/{error-boundary-BNT2iQ1w.js → error-boundary-BxTqEXqj.js} +2 -2
- package/dist/_chunks/euro-Dsuz4ixO.js +22 -0
- package/dist/_chunks/{face-scheme-mIhwrQXt.js → face-scheme-fku-RShg.js} +71 -71
- package/dist/_chunks/{fetal-weight-wx4ycKc6.js → fetal-weight-B69yOS9W.js} +3 -3
- package/dist/_chunks/{field-array-BW9KeeXG.js → field-array-lIXrFWS0.js} +3 -3
- package/dist/_chunks/file-BuG1VMAy.js +21 -0
- package/dist/_chunks/{file-Cwe9VC1A.js → file-image-cDgE-BTy.js} +2 -19
- package/dist/_chunks/{file-manager-DOcJGIx2.js → file-manager-CqgxLqoA.js} +15 -14
- package/dist/_chunks/{file-upload-BDpb08GM.js → file-upload-B242a_Y1.js} +53 -52
- package/dist/_chunks/{finished-terminal-DJd7Z_po.js → finished-terminal-B2oqXO0Y.js} +2 -2
- package/dist/_chunks/fiscal-code-input-BEF8eKIG.js +572 -0
- package/dist/_chunks/{freemium-paywall-BaW5ODc9.js → freemium-paywall-B6JITu4l.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-CwbecTul.js → gestational-age-calculator-DsGN6_HS.js} +5 -5
- package/dist/_chunks/handled-rejection-6gqCf5vt.js +13 -0
- package/dist/_chunks/{hcg-doubling-BcXriXJe.js → hcg-doubling-D2SH-e7t.js} +3 -3
- package/dist/_chunks/{header-3o9o9v_T.js → header-CCjp5GvE.js} +2 -2
- package/dist/_chunks/{header-settings-BEfx_-TF.js → header-settings-ZXa6hXuu.js} +5 -5
- package/dist/_chunks/{help-me-write-templates-DHIwa4xR.js → help-me-write-templates-DQtT1qs_.js} +5 -5
- package/dist/_chunks/history-CK2JaU2g.js +16 -0
- package/dist/_chunks/{hover-card-nUae8NPJ.js → hover-card-BplP5SzQ.js} +2 -2
- package/dist/_chunks/{icon-button-CehAeZoP.js → icon-button-CY7GU_Se.js} +2 -2
- package/dist/_chunks/icon-button-group-B_426QN_.js +431 -0
- package/dist/_chunks/{icon-picker-DMEelg9v.js → icon-picker-ZLebyB0U.js} +3 -3
- package/dist/_chunks/{image-cropper-BjPjT7wU.js → image-cropper-_HiNN79d.js} +2 -2
- package/dist/_chunks/{info-tip-iP2Pm9dh.js → info-tip-laBxZhKu.js} +2 -2
- package/dist/_chunks/{insert-result-DPnOBD85.js → insert-result-CSuPQyKL.js} +2 -2
- package/dist/_chunks/{key-value-pair-DaQI_LZB.js → key-value-pair-Dcdl3Gni.js} +2 -2
- package/dist/_chunks/{kit-extensions-DuoFF1R3.js → kit-extensions-BTJSnM_H.js} +6 -6
- package/dist/_chunks/{link-cell-renderer-s3oHzOwi.js → link-cell-renderer-Tswqf6BT.js} +7 -7
- package/dist/_chunks/{locale-picker-CH3kfrIG.js → locale-picker-DGkQmhV9.js} +170 -180
- package/dist/_chunks/{map-view-CHw4RL6w.js → map-view-Bb7ClKSF.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-PB89Dkk_.js → marketplace-app-shell-Dehuxbi-.js} +6 -6
- package/dist/_chunks/menu-row-BAr8bx1I.js +95 -0
- package/dist/_chunks/{message-card-V3sFPiQI.js → message-card-DKOtnBHy.js} +3 -3
- package/dist/_chunks/{message-tray-CrRIHfiQ.js → message-tray-COMEtmyr.js} +4 -4
- package/dist/_chunks/{multi-select-CtPd7g4x.js → multi-select-N4Smh-gj.js} +114 -113
- package/dist/_chunks/{muscle-scheme-UVz_x4iE.js → muscle-scheme-Co0NIgbU.js} +3 -3
- package/dist/_chunks/{note-attachment-CwDir3kK.js → note-attachment-CGjNTrAC.js} +2 -2
- package/dist/_chunks/{note-timeline-Dn_XTo1s.js → note-timeline-CVnKL0p6.js} +2 -2
- package/dist/_chunks/notes-panel-BiOxZL_0.js +1111 -0
- package/dist/_chunks/{notification-card-B2gLO6dK.js → notification-card-DDzBCi8l.js} +3 -3
- package/dist/_chunks/{notification-tray-BOEKegVV.js → notification-tray-PnH2PBlZ.js} +4 -4
- package/dist/_chunks/{operator-hero-XIdwDmN2.js → operator-hero-5061fkY5.js} +3 -3
- package/dist/_chunks/{optical-prescription-LGgmtcST.js → optical-prescription-DUufWXfZ.js} +3 -3
- package/dist/_chunks/{pagination-EkD5SiCK.js → pagination-B0N2qGy_.js} +83 -82
- package/dist/_chunks/panel-subview-CzHutkA8.js +217 -0
- package/dist/_chunks/{patient-details-yrgkSeEY.js → patient-details-C23Hdm8v.js} +3 -3
- package/dist/_chunks/{patient-field-row-DCMkFGqI.js → patient-field-row-DElFbpKc.js} +12 -12
- package/dist/_chunks/{patient-search-5QcmQKJD.js → patient-search-DgXdGkhK.js} +4 -4
- package/dist/_chunks/{patient-summary-card-CmEFflGS.js → patient-summary-card-C36L3h7h.js} +7 -7
- package/dist/_chunks/{payment-automation-upsell-BKmBXU4i.js → payment-automation-upsell-ugi4np1l.js} +3 -3
- package/dist/_chunks/{payment-request-card-Cer6XXCn.js → payment-request-card-DMJB57Tv.js} +5 -5
- package/dist/_chunks/{periodontal-chart-DJoZS_o7.js → periodontal-chart-DbGzKDj7.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-Nd1ZoYWb.js → periodontal-chart-card-DvHyP47v.js} +3 -3
- package/dist/_chunks/{periodontal-diagnosis-C7pfPOct.js → periodontal-diagnosis-B8WqI0eU.js} +2 -2
- package/dist/_chunks/{periodontal-risk-chart-B2tNFa15.js → periodontal-risk-chart-DsFRFFSz.js} +2 -2
- package/dist/_chunks/{phone-input-IWrGOCwm.js → phone-input-sQj-zi59.js} +85 -86
- package/dist/_chunks/{popover-DO-pssF3.js → popover-Dvb40vPH.js} +2 -2
- package/dist/_chunks/{practice-profile-hero-DxoLlQr5.js → practice-profile-hero-CPy5h2yI.js} +2 -2
- package/dist/_chunks/{practice-results-D11Zpt27.js → practice-results-t2BHht91.js} +7 -7
- package/dist/_chunks/{pregnancy-dating-DcyV9ZRD.js → pregnancy-dating-lfjjZVZH.js} +5 -5
- package/dist/_chunks/{pregnancy-weight-gain-Bfq4Kwt5.js → pregnancy-weight-gain-WpNt-S0q.js} +3 -3
- package/dist/_chunks/{privacy-lock-CbFCAMM3.js → privacy-lock-D6gq0GDg.js} +3 -3
- package/dist/_chunks/privacy-mask-BC5lw2zB.js +81 -0
- package/dist/_chunks/{product-hub-panel-w40-_-1s.js → product-hub-panel-CKeSCSeE.js} +3 -3
- package/dist/_chunks/{province-select-BaUnkg4S.js → province-select-BiszMRRY.js} +2 -2
- package/dist/_chunks/{public-header.agent-D-EBVskf.js → public-header.agent-B9wDmUeB.js} +3 -3
- package/dist/_chunks/{radiograph-panel.agent-LrILY2lN.js → radiograph-panel.agent-TmyIvTOa.js} +6 -6
- package/dist/_chunks/{reviews-panel-2GVuxGeT.js → reviews-panel-BdwFp_0c.js} +4 -4
- package/dist/_chunks/{rich-text-editor-BwDV2XkZ.js → rich-text-editor-y6ML0KeV.js} +12 -11
- package/dist/_chunks/{search-bar-CCmViqaa.js → search-bar-6bHatpYJ.js} +69 -67
- package/dist/_chunks/{select-CLSUnKjF.js → select-upNAltly.js} +89 -88
- package/dist/_chunks/{session-countdown-BqppPrw6.js → session-countdown-ACJyTXH2.js} +2 -2
- package/dist/_chunks/{sheet-C8WIDFS8.js → sheet-D0Lh0KR2.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-DWwBJtyE.js → sign-in-with-alfadocs-button-CDyJAIzW.js} +2 -2
- package/dist/_chunks/{signature-request-D_j2aQu1.js → signature-request-15D363w5.js} +6 -6
- package/dist/_chunks/{signature-status-chip-D4NsrdeI.js → signature-status-chip-Dz6sS2oA.js} +2 -2
- package/dist/_chunks/{slot-grid-B3eOPkKD.js → slot-grid-4fWH3Euk.js} +4 -4
- package/dist/_chunks/smartphone-C0rFF2if.js +15 -0
- package/dist/_chunks/{streaming-text-CE1u_oGa.js → streaming-text-eRiizArc.js} +2 -2
- package/dist/_chunks/{tab-bar-Cw9UK18Z.js → tab-bar-BHFf6knq.js} +9 -9
- package/dist/_chunks/{tabs-BnRaLT0y.js → tabs-CFsuMQ5H.js} +82 -81
- package/dist/_chunks/{tag-Ci3xJPcH.js → tag-B65tLWvD.js} +24 -21
- package/dist/_chunks/{task-card-qTKD1fIT.js → task-card-CTTQfPS6.js} +72 -55
- package/dist/_chunks/task-editor-DlvTwAfv.js +1243 -0
- package/dist/_chunks/{task-tray-DIwjAIes.js → task-tray-JA-qp_pB.js} +4 -4
- package/dist/_chunks/tasks-panel-C_dVDQKJ.js +1243 -0
- package/dist/_chunks/{theme-toggle-BP0XRGMM.js → theme-toggle-LUBxlNDm.js} +4 -4
- package/dist/_chunks/{toast-ZZfhA5u0.js → toast-CT8hjr9r.js} +2 -2
- package/dist/_chunks/{token-insert-menu-A9B5AJw6.js → token-insert-menu-klwbxVKh.js} +3 -3
- package/dist/_chunks/{tool-rail-CCFqDfAn.js → tool-rail-DEeX4PdN.js} +144 -137
- package/dist/_chunks/{tooth-scheme-DPAq0vQK.js → tooth-scheme-BkjhkI8g.js} +4 -4
- package/dist/_chunks/{treatment-receipt-DU0OewqH.js → treatment-receipt-C-gWZ6uv.js} +3 -3
- package/dist/_chunks/{unit-converter-C-LpGzrN.js → unit-converter-Dp_KDxE6.js} +3 -3
- package/dist/_chunks/use-appointment-details-read-D2FH-cHF.js +2045 -0
- package/dist/_chunks/use-list-reflow-C7O4Uqnl.js +133 -0
- package/dist/_chunks/use-priority-overflow-Cdmb5EiR.js +108 -0
- package/dist/_chunks/{variables-menu-vXUaSBj4.js → variables-menu-aJLKJ_cu.js} +127 -136
- package/dist/_chunks/{warning-stack-C0glSB7p.js → warning-stack-CEgYkI1z.js} +3 -3
- package/dist/_chunks/{widget-picker-B1sj6uyf.js → widget-picker-CilQvcNL.js} +2 -2
- package/dist/_chunks/{workflow-map-DhR_h5yw.js → workflow-map-qGkQTNvS.js} +30 -29
- package/dist/_chunks/{workflow-status-CuJAOuKL.js → workflow-status-ClHfz4Kr.js} +209 -167
- package/dist/agent-catalog.json +371 -26
- package/dist/agent-i18n/en.json +41 -9
- package/dist/components/_shared/appointment-format.d.ts +52 -0
- package/dist/{patterns/calendar/calendar-editor-fields.d.ts → components/_shared/compact-editor-fields.d.ts} +6 -5
- package/dist/components/_shared/handled-rejection.d.ts +2 -0
- package/dist/components/_shared/menu-row.d.ts +17 -0
- package/dist/components/_shared/patient-identity.d.ts +7 -0
- package/dist/components/_shared/patient-picker.d.ts +24 -0
- package/dist/components/_shared/privacy-mask.d.ts +29 -0
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/ai-prompt-input/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/appointment-details-panel.agent.d.ts +4 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +134 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.focus.d.ts +7 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.history.d.ts +12 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.identity.d.ts +41 -0
- package/dist/{patterns/calendar/calendar-info-hover.d.ts → components/appointment-details-panel/appointment-details-panel.info-hover.d.ts} +1 -1
- package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +51 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +326 -0
- package/dist/components/appointment-details-panel/index.d.ts +8 -0
- package/dist/components/appointment-details-panel/index.js +8 -0
- package/dist/components/appointment-details-panel/use-appointment-details-read.d.ts +32 -0
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/badge/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/breadcrumb/index.js +1 -1
- package/dist/components/button/button.d.ts +2 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/button-group/button-group.d.ts +19 -2
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/calendar.d.ts +5 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +13 -5
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +9 -4
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/control-room-rail.d.ts +21 -3
- package/dist/components/control-room-rail/index.d.ts +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/copy-field/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-table/index.js +4 -4
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editable-description/index.js +1 -1
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-boundary/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/field-array/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/fiscal-code-input/fiscal-code-input.d.ts +7 -0
- package/dist/components/fiscal-code-input/index.d.ts +1 -1
- package/dist/components/fiscal-code-input/index.js +8 -7
- package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts +19 -4
- package/dist/components/freemium-paywall/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/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.d.ts +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +102 -26
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/panel-subview/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/phone-input/index.js +1 -1
- package/dist/components/popover/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/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/public-header/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/search-bar/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-field/signature-field.d.ts +1 -1
- package/dist/components/signature-status-chip/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +17 -17
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-card/task-card.d.ts +6 -0
- package/dist/components/task-editor/index.d.ts +4 -0
- package/dist/components/task-editor/index.js +6 -0
- package/dist/components/task-editor/task-editor.agent.d.ts +4 -0
- package/dist/components/task-editor/task-editor.d.ts +240 -0
- package/dist/components/task-editor/use-task-editor-form.d.ts +101 -0
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.d.ts +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/tasks-panel/tasks-panel.d.ts +84 -12
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/variables-menu/index.js +1 -1
- package/dist/components/warning-stack/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/appointment-workflow-status.d.ts +55 -0
- package/dist/components/workflow-status/index.d.ts +2 -0
- package/dist/components/workflow-status/index.js +7 -2
- package/dist/components/workflow-status/workflow-status.d.ts +35 -0
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/use-exit-transition.d.ts +5 -0
- package/dist/hooks/use-priority-overflow.d.ts +11 -2
- package/dist/host-compat.css +7 -1
- package/dist/i18n/locales/ar.d.ts +29 -10
- package/dist/i18n/locales/ar.js +33 -14
- package/dist/i18n/locales/de.d.ts +29 -10
- package/dist/i18n/locales/de.js +33 -14
- package/dist/i18n/locales/el.d.ts +29 -10
- package/dist/i18n/locales/el.js +33 -14
- package/dist/i18n/locales/en.d.ts +29 -10
- package/dist/i18n/locales/en.js +33 -14
- package/dist/i18n/locales/es.d.ts +29 -10
- package/dist/i18n/locales/es.js +33 -14
- package/dist/i18n/locales/fr.d.ts +29 -10
- package/dist/i18n/locales/fr.js +33 -14
- package/dist/i18n/locales/hi.d.ts +29 -10
- package/dist/i18n/locales/hi.js +33 -14
- package/dist/i18n/locales/it.d.ts +29 -10
- package/dist/i18n/locales/it.js +33 -14
- package/dist/i18n/locales/ja.d.ts +29 -10
- package/dist/i18n/locales/ja.js +33 -14
- package/dist/i18n/locales/nl.d.ts +29 -10
- package/dist/i18n/locales/nl.js +33 -14
- package/dist/i18n/locales/pl.d.ts +29 -10
- package/dist/i18n/locales/pl.js +33 -14
- package/dist/i18n/locales/pt.d.ts +29 -10
- package/dist/i18n/locales/pt.js +33 -14
- package/dist/i18n/locales/ro.d.ts +29 -10
- package/dist/i18n/locales/ro.js +33 -14
- package/dist/i18n/locales/ru.d.ts +29 -10
- package/dist/i18n/locales/ru.js +33 -14
- package/dist/i18n/locales/sq.d.ts +29 -10
- package/dist/i18n/locales/sq.js +33 -14
- package/dist/i18n/locales/sv.d.ts +29 -10
- package/dist/i18n/locales/sv.js +33 -14
- package/dist/i18n/locales/tr.d.ts +29 -10
- package/dist/i18n/locales/tr.js +33 -14
- package/dist/i18n/locales/zh.d.ts +29 -10
- package/dist/i18n/locales/zh.js +33 -14
- package/dist/i18n/registerUiBundle.d.ts +5 -9
- package/dist/index.js +742 -728
- package/dist/locales/ar.json +33 -14
- package/dist/locales/de.json +33 -14
- package/dist/locales/el.json +33 -14
- package/dist/locales/en.json +33 -14
- package/dist/locales/es.json +33 -14
- package/dist/locales/fr.json +33 -14
- package/dist/locales/hi.json +33 -14
- package/dist/locales/it.json +33 -14
- package/dist/locales/ja.json +33 -14
- package/dist/locales/nl.json +33 -14
- package/dist/locales/pl.json +33 -14
- package/dist/locales/pt.json +33 -14
- package/dist/locales/ro.json +33 -14
- package/dist/locales/ru.json +33 -14
- package/dist/locales/sq.json +33 -14
- package/dist/locales/sv.json +33 -14
- package/dist/locales/tr.json +33 -14
- package/dist/locales/zh.json +33 -14
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/calendar-appointment-details.d.ts +25 -95
- package/dist/patterns/calendar/calendar-patient-picker.d.ts +4 -3
- package/dist/patterns/calendar/calendar-privacy.d.ts +1 -22
- package/dist/patterns/calendar/calendar-sticky-offset.d.ts +20 -13
- package/dist/patterns/calendar/calendar-task-editor.d.ts +9 -13
- package/dist/patterns/calendar/calendar-workspace.d.ts +160 -1
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +17 -12
- package/dist/patterns/calendar/calendar.journey.d.ts +40 -4
- package/dist/patterns/calendar/calendar.model.d.ts +10 -17
- package/dist/patterns/calendar/calendar.sheets.d.ts +18 -14
- package/dist/patterns/calendar/calendar.surface.d.ts +6 -1
- package/dist/patterns/calendar/calendar.types.d.ts +24 -100
- package/dist/patterns/calendar/index.d.ts +4 -3
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/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/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +22 -5
- package/dist/_chunks/button-group-CA1tmu39.js +0 -325
- package/dist/_chunks/calendar-workspace-DDnQmiIL.js +0 -12427
- package/dist/_chunks/combobox-DnSdYssy.js +0 -522
- package/dist/_chunks/control-room-rail-Cv7GpMqX.js +0 -354
- package/dist/_chunks/fiscal-code-input-ODQRd_Sw.js +0 -553
- package/dist/_chunks/icon-button-group-DZKC6KGf.js +0 -428
- package/dist/_chunks/notes-panel-CHbDDMx8.js +0 -683
- package/dist/_chunks/panel-subview-CYnuX-KR.js +0 -171
- package/dist/_chunks/tasks-panel-DncuBPIZ.js +0 -844
- package/dist/_chunks/use-list-reflow-Cw43nxw5.js +0 -100
- package/dist/_chunks/use-priority-overflow-c9SjxZkZ.js +0 -101
- package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +0 -37
|
@@ -1,844 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as m, Fragment as we } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as Pt, useId as Pe, useMemo as O, useState as h, useCallback as f, useRef as V, useImperativeHandle as xt } from "react";
|
|
3
|
-
import { c as Nt } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as _t } from "react-i18next";
|
|
5
|
-
import { B as Dt } from "./badge-BudgzTe_.js";
|
|
6
|
-
import { B as oe } from "./button-CaUe1uyd.js";
|
|
7
|
-
import { I as ne } from "./icon-button-CehAeZoP.js";
|
|
8
|
-
import { B as xe } from "./button-group-CA1tmu39.js";
|
|
9
|
-
import { P as Rt } from "./panel-header-D_mTdhUp.js";
|
|
10
|
-
import { S as Ne } from "./select-CLSUnKjF.js";
|
|
11
|
-
import { S as Tt } from "./switch-OILsBLWo.js";
|
|
12
|
-
import { S as St } from "./skeleton-B1KTdJ4N.js";
|
|
13
|
-
import { E as re } from "./empty-state-BUN_UAWf.js";
|
|
14
|
-
import { T as zt } from "./task-card-qTKD1fIT.js";
|
|
15
|
-
import { u as Et } from "./use-check-animation--I3cS00X.js";
|
|
16
|
-
import { a as It, u as _e, R as Re } from "./use-list-reflow-Cw43nxw5.js";
|
|
17
|
-
import { u as jt } from "./use-theme-CAuo6EYT.js";
|
|
18
|
-
import { u as De } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
19
|
-
import { u as Bt } from "./registry-DvAUVLHh.js";
|
|
20
|
-
import { P as At } from "./plus-DzMQ_c6b.js";
|
|
21
|
-
import { C as Ht } from "./clipboard-check-BeAGxDVT.js";
|
|
22
|
-
import { P as qt } from "./pencil-B1sKKyuT.js";
|
|
23
|
-
import { X as Wt } from "./x-B5YnXwCz.js";
|
|
24
|
-
import { c as G } from "./createLucideIcon-DhHxpK9K.js";
|
|
25
|
-
/**
|
|
26
|
-
* @license lucide-react v1.22.0 - ISC
|
|
27
|
-
*
|
|
28
|
-
* This source code is licensed under the ISC license.
|
|
29
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/
|
|
31
|
-
const $t = [
|
|
32
|
-
["path", { d: "M13.744 17.736a6 6 0 1 1-7.48-7.48", key: "bq4yh3" }],
|
|
33
|
-
["path", { d: "M15 6h1v4", key: "11y1tn" }],
|
|
34
|
-
["path", { d: "m6.134 14.768.866-.5 2 3.464", key: "17snzx" }],
|
|
35
|
-
["circle", { cx: "16", cy: "8", r: "6", key: "14bfc9" }]
|
|
36
|
-
], Ct = G("coins", $t);
|
|
37
|
-
/**
|
|
38
|
-
* @license lucide-react v1.22.0 - ISC
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the ISC license.
|
|
41
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/
|
|
43
|
-
const Lt = [
|
|
44
|
-
["path", { d: "M10.5 3 8 9l4 13 4-13-2.5-6", key: "b3dvk1" }],
|
|
45
|
-
[
|
|
46
|
-
"path",
|
|
47
|
-
{
|
|
48
|
-
d: "M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z",
|
|
49
|
-
key: "7w4byz"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
["path", { d: "M2 9h20", key: "16fsjt" }]
|
|
53
|
-
], Mt = G("gem", Lt);
|
|
54
|
-
/**
|
|
55
|
-
* @license lucide-react v1.22.0 - ISC
|
|
56
|
-
*
|
|
57
|
-
* This source code is licensed under the ISC license.
|
|
58
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/
|
|
60
|
-
const Kt = [
|
|
61
|
-
[
|
|
62
|
-
"path",
|
|
63
|
-
{
|
|
64
|
-
d: "M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",
|
|
65
|
-
key: "q8bfy3"
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
["path", { d: "M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14", key: "1853fq" }],
|
|
69
|
-
["path", { d: "M8 6v8", key: "15ugcq" }]
|
|
70
|
-
], Ot = G("megaphone", Kt);
|
|
71
|
-
/**
|
|
72
|
-
* @license lucide-react v1.22.0 - ISC
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the ISC license.
|
|
75
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/
|
|
77
|
-
const Vt = [
|
|
78
|
-
[
|
|
79
|
-
"path",
|
|
80
|
-
{
|
|
81
|
-
d: "M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",
|
|
82
|
-
key: "vktsd0"
|
|
83
|
-
}
|
|
84
|
-
],
|
|
85
|
-
["circle", { cx: "7.5", cy: "7.5", r: ".5", fill: "currentColor", key: "kqv944" }]
|
|
86
|
-
], Te = G("tag", Vt), Gt = {
|
|
87
|
-
id: "tasks-panel",
|
|
88
|
-
// 'pick' backs select_item (non-persisting activation, matching
|
|
89
|
-
// AppointmentTimeline); 'dismiss' backs dismiss; 'scroll' backs
|
|
90
|
-
// jump_to_overdue (re-anchors the viewport); 'filter' backs set_filter (the
|
|
91
|
-
// status / type / assignee / overdue filter bar is genuinely stateful);
|
|
92
|
-
// 'view_change' backs change_scope (the patient ↔ mine segment); 'paginate'
|
|
93
|
-
// backs load_more (append the next page of tasks).
|
|
94
|
-
capabilities: [
|
|
95
|
-
"pick",
|
|
96
|
-
"dismiss",
|
|
97
|
-
"scroll",
|
|
98
|
-
"filter",
|
|
99
|
-
"view_change",
|
|
100
|
-
"paginate"
|
|
101
|
-
],
|
|
102
|
-
state: {
|
|
103
|
-
items: {
|
|
104
|
-
type: "Array<{ id: string; status: string }>",
|
|
105
|
-
descriptionKey: "ui.agent.tasksPanel.state.items",
|
|
106
|
-
description: "Currently-rendered tasks. Ids + status only — never task note / patient.",
|
|
107
|
-
read: (s) => s.getItems()
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
actions: {
|
|
111
|
-
select_item: {
|
|
112
|
-
safety: "read",
|
|
113
|
-
argsType: "{ id: string }",
|
|
114
|
-
argsSchema: {
|
|
115
|
-
type: "object",
|
|
116
|
-
properties: { id: { type: "string" } },
|
|
117
|
-
required: ["id"]
|
|
118
|
-
},
|
|
119
|
-
idempotent: !0,
|
|
120
|
-
descriptionKey: "ui.agent.tasksPanel.actions.selectItem",
|
|
121
|
-
description: "Activate the task with the given id.",
|
|
122
|
-
invoke: (s, n) => {
|
|
123
|
-
s.selectItem(n.id);
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
toggle_done: {
|
|
127
|
-
safety: "write",
|
|
128
|
-
argsType: "{ id: string }",
|
|
129
|
-
argsSchema: {
|
|
130
|
-
type: "object",
|
|
131
|
-
properties: { id: { type: "string" } },
|
|
132
|
-
required: ["id"]
|
|
133
|
-
},
|
|
134
|
-
descriptionKey: "ui.agent.tasksPanel.actions.toggleDone",
|
|
135
|
-
description: "Request the host to toggle the done state of a task.",
|
|
136
|
-
invoke: (s, n) => {
|
|
137
|
-
s.toggleDone(n.id);
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
dismiss: {
|
|
141
|
-
safety: "destructive",
|
|
142
|
-
argsType: "{ id: string }",
|
|
143
|
-
argsSchema: {
|
|
144
|
-
type: "object",
|
|
145
|
-
properties: { id: { type: "string" } },
|
|
146
|
-
required: ["id"]
|
|
147
|
-
},
|
|
148
|
-
idempotent: !0,
|
|
149
|
-
descriptionKey: "ui.agent.tasksPanel.actions.dismiss",
|
|
150
|
-
description: "Request the host to dismiss / remove the task with the given id.",
|
|
151
|
-
invoke: (s, n) => {
|
|
152
|
-
s.dismiss(n.id);
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
jump_to_overdue: {
|
|
156
|
-
safety: "read",
|
|
157
|
-
idempotent: !0,
|
|
158
|
-
descriptionKey: "ui.agent.tasksPanel.actions.jumpToOverdue",
|
|
159
|
-
description: "Re-anchor the panel scroll on the overdue tasks.",
|
|
160
|
-
invoke: (s) => {
|
|
161
|
-
s.jumpToOverdue();
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
set_filter: {
|
|
165
|
-
safety: "read",
|
|
166
|
-
argsType: "{ status?: 'todo' | 'done' | 'all'; type?: string | null; assignee?: string | null; overdueOnly?: boolean }",
|
|
167
|
-
argsSchema: {
|
|
168
|
-
type: "object",
|
|
169
|
-
properties: {
|
|
170
|
-
status: { type: "string", enum: ["todo", "done", "all"] },
|
|
171
|
-
type: { type: ["string", "null"] },
|
|
172
|
-
assignee: { type: ["string", "null"] },
|
|
173
|
-
overdueOnly: { type: "boolean" }
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
idempotent: !0,
|
|
177
|
-
descriptionKey: "ui.agent.tasksPanel.actions.setFilter",
|
|
178
|
-
description: "Set the task filters (status segment, type, assignee, overdue-only). Omitted keys are left unchanged.",
|
|
179
|
-
invoke: (s, n) => {
|
|
180
|
-
s.setFilter(n);
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
change_scope: {
|
|
184
|
-
safety: "read",
|
|
185
|
-
argsType: "{ scope: 'patient' | 'mine' }",
|
|
186
|
-
argsSchema: {
|
|
187
|
-
type: "object",
|
|
188
|
-
properties: { scope: { type: "string", enum: ["patient", "mine"] } },
|
|
189
|
-
required: ["scope"]
|
|
190
|
-
},
|
|
191
|
-
idempotent: !0,
|
|
192
|
-
descriptionKey: "ui.agent.tasksPanel.actions.changeScope",
|
|
193
|
-
description: "Switch the task scope segment between this patient ('patient') and the operator's own tasks ('mine'). The host re-feeds the items.",
|
|
194
|
-
invoke: (s, n) => {
|
|
195
|
-
s.changeScope(n.scope);
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
load_more: {
|
|
199
|
-
safety: "read",
|
|
200
|
-
// Requests the host to append the next page — not idempotent (each call
|
|
201
|
-
// advances the page) and reaches the host data source.
|
|
202
|
-
openWorld: !0,
|
|
203
|
-
descriptionKey: "ui.agent.tasksPanel.actions.loadMore",
|
|
204
|
-
description: "Request the host to append the next page of tasks.",
|
|
205
|
-
invoke: (s) => {
|
|
206
|
-
s.loadMore();
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
domHooks: {
|
|
211
|
-
root: {
|
|
212
|
-
attr: "data-component",
|
|
213
|
-
value: "tasks-panel",
|
|
214
|
-
description: "Marks the TasksPanel wrapper."
|
|
215
|
-
},
|
|
216
|
-
instanceId: {
|
|
217
|
-
attr: "data-component-id",
|
|
218
|
-
sourceProp: "id",
|
|
219
|
-
description: "Sourced from the id prop. Required to address a specific panel from the agent."
|
|
220
|
-
},
|
|
221
|
-
item: {
|
|
222
|
-
attr: "data-task-id",
|
|
223
|
-
description: "Stable task id emitted on each rendered TaskCard inside the panel."
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}, Yt = 96, Ut = Nt(
|
|
227
|
-
[
|
|
228
|
-
"ds:flex ds:flex-col ds:h-full ds:min-h-0",
|
|
229
|
-
"ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]"
|
|
230
|
-
].join(" "),
|
|
231
|
-
{
|
|
232
|
-
variants: { size: { xs: "", sm: "", md: "" } },
|
|
233
|
-
defaultVariants: { size: "sm" }
|
|
234
|
-
}
|
|
235
|
-
), Xt = [
|
|
236
|
-
"ds:flex-1 ds:min-h-0 ds:overflow-y-auto",
|
|
237
|
-
"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
238
|
-
"ds:px-[var(--spacing-md)] ds:py-[var(--spacing-xs)]",
|
|
239
|
-
"ds:[--tpl-mask-top:black] ds:[--tpl-mask-bottom:black]",
|
|
240
|
-
"ds:data-[fade-top=true]:[--tpl-mask-top:transparent]",
|
|
241
|
-
"ds:data-[fade-bottom=true]:[--tpl-mask-bottom:transparent]",
|
|
242
|
-
"ds:[mask-image:linear-gradient(to_bottom,var(--tpl-mask-top)_0,black_var(--tpl-fade-distance,var(--spacing-lg)),black_calc(100%-var(--tpl-fade-distance,var(--spacing-lg))),var(--tpl-mask-bottom)_100%)]",
|
|
243
|
-
"ds:motion-reduce:[mask-image:none]",
|
|
244
|
-
"ds:[.theme-accessible_&]:[mask-image:none]",
|
|
245
|
-
"ds:forced-colors:[mask-image:none]",
|
|
246
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
247
|
-
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:[outline-offset:-2px]",
|
|
248
|
-
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
249
|
-
].join(" "), Jt = [
|
|
250
|
-
"ds:shadow-[var(--shadow-card)] ds:bg-[color:var(--card)]",
|
|
251
|
-
// Declared at rest, not only while leaving: a transition added at the
|
|
252
|
-
// same moment as the value it animates has nothing to move from.
|
|
253
|
-
"ds:transition-opacity ds:duration-[var(--animation-duration)]",
|
|
254
|
-
"ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
|
|
255
|
-
].join(" "), Se = "ds:opacity-0", Qt = 12;
|
|
256
|
-
function Zt({
|
|
257
|
-
item: s,
|
|
258
|
-
label: n,
|
|
259
|
-
labelChecked: l,
|
|
260
|
-
reduceMotion: u,
|
|
261
|
-
onToggle: c
|
|
262
|
-
}) {
|
|
263
|
-
const { checked: r, drawing: i, toggle: k } = Et({
|
|
264
|
-
checked: s.status === "done",
|
|
265
|
-
reduceMotion: u
|
|
266
|
-
}), y = r ? (
|
|
267
|
-
// `--accent` is magenta-700 in light, the step that clears AA there.
|
|
268
|
-
"ds:text-[color:var(--accent)]"
|
|
269
|
-
) : s.priority === "high" ? "ds:text-[color:var(--destructive)]" : "ds:text-[color:var(--muted-foreground)]";
|
|
270
|
-
return /* @__PURE__ */ a(
|
|
271
|
-
"button",
|
|
272
|
-
{
|
|
273
|
-
type: "button",
|
|
274
|
-
role: "checkbox",
|
|
275
|
-
"aria-checked": r,
|
|
276
|
-
"aria-label": r ? l : n,
|
|
277
|
-
"data-action": "toggle-done",
|
|
278
|
-
"data-drawing": i ? "" : void 0,
|
|
279
|
-
onClick: () => {
|
|
280
|
-
k(), c(s);
|
|
281
|
-
},
|
|
282
|
-
className: `ds:group/check ds:flex ds:items-center ds:justify-center ds:rounded-[var(--radius-sm)] ds:p-[var(--spacing-2xs)] ds:hover:bg-[color:var(--muted)]/40 ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)] ds:forced-colors:focus-visible:outline-[CanvasText] ${y}`,
|
|
283
|
-
children: /* @__PURE__ */ m(
|
|
284
|
-
"svg",
|
|
285
|
-
{
|
|
286
|
-
viewBox: "0 0 18 18",
|
|
287
|
-
"aria-hidden": "true",
|
|
288
|
-
className: "ds:size-4 ds:transition-transform ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)] ds:group-data-[drawing]/check:scale-110 ds:motion-reduce:transition-none",
|
|
289
|
-
children: [
|
|
290
|
-
/* @__PURE__ */ a(
|
|
291
|
-
"rect",
|
|
292
|
-
{
|
|
293
|
-
x: "1.5",
|
|
294
|
-
y: "1.5",
|
|
295
|
-
width: "15",
|
|
296
|
-
height: "15",
|
|
297
|
-
rx: "4",
|
|
298
|
-
className: "ds:fill-none ds:stroke-current ds:[stroke-width:1.5]"
|
|
299
|
-
}
|
|
300
|
-
),
|
|
301
|
-
/* @__PURE__ */ a(
|
|
302
|
-
"path",
|
|
303
|
-
{
|
|
304
|
-
d: "M5 9.25 L7.75 12 L13 6.25",
|
|
305
|
-
strokeDashoffset: r ? 0 : Qt,
|
|
306
|
-
className: "ds:fill-none ds:stroke-current ds:[stroke-width:2] ds:[stroke-linecap:round] ds:[stroke-linejoin:round] ds:[stroke-dasharray:12] ds:transition-[stroke-dashoffset] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
|
|
307
|
-
}
|
|
308
|
-
)
|
|
309
|
-
]
|
|
310
|
-
}
|
|
311
|
-
)
|
|
312
|
-
}
|
|
313
|
-
);
|
|
314
|
-
}
|
|
315
|
-
const Ft = {
|
|
316
|
-
recall: { variant: "info", Icon: Ot },
|
|
317
|
-
payment: { variant: "warning", Icon: Mt },
|
|
318
|
-
collection: { variant: "error", Icon: Ct },
|
|
319
|
-
other: { variant: "neutral", Icon: Te }
|
|
320
|
-
}, es = [
|
|
321
|
-
"overdue",
|
|
322
|
-
"today",
|
|
323
|
-
"tomorrow",
|
|
324
|
-
"thisWeek",
|
|
325
|
-
"later",
|
|
326
|
-
"done"
|
|
327
|
-
];
|
|
328
|
-
function ts(s) {
|
|
329
|
-
return new Date(s.getFullYear(), s.getMonth(), s.getDate());
|
|
330
|
-
}
|
|
331
|
-
function ze(s) {
|
|
332
|
-
const n = ts(s), l = new Date(n);
|
|
333
|
-
l.setDate(n.getDate() + 1);
|
|
334
|
-
const u = new Date(n);
|
|
335
|
-
u.setDate(n.getDate() + 2);
|
|
336
|
-
const c = (n.getDay() + 6) % 7, r = new Date(n);
|
|
337
|
-
return r.setDate(n.getDate() + (7 - c)), {
|
|
338
|
-
startOfToday: +n,
|
|
339
|
-
startOfTomorrow: +l,
|
|
340
|
-
startOfDayAfter: +u,
|
|
341
|
-
startOfNextWeek: +r
|
|
342
|
-
};
|
|
343
|
-
}
|
|
344
|
-
function ss(s, n) {
|
|
345
|
-
if (s.status === "done") return "done";
|
|
346
|
-
const { startOfToday: l, startOfTomorrow: u, startOfDayAfter: c, startOfNextWeek: r } = ze(n), i = +new Date(s.dueIso);
|
|
347
|
-
return i < l ? "overdue" : i < u ? "today" : i < c ? "tomorrow" : i < r ? "thisWeek" : "later";
|
|
348
|
-
}
|
|
349
|
-
function as(s, n) {
|
|
350
|
-
return s.status === "done" ? !1 : +new Date(s.dueIso) < ze(n).startOfTomorrow;
|
|
351
|
-
}
|
|
352
|
-
function os(s, n) {
|
|
353
|
-
const l = /* @__PURE__ */ new Map();
|
|
354
|
-
for (const c of s) {
|
|
355
|
-
const r = ss(c, n), i = l.get(r);
|
|
356
|
-
i ? i.push(c) : l.set(r, [c]);
|
|
357
|
-
}
|
|
358
|
-
const u = [];
|
|
359
|
-
for (const c of es) {
|
|
360
|
-
const r = l.get(c);
|
|
361
|
-
!r || r.length === 0 || (r.sort((i, k) => +new Date(i.dueIso) - +new Date(k.dueIso)), u.push({ key: c, items: r }));
|
|
362
|
-
}
|
|
363
|
-
return u;
|
|
364
|
-
}
|
|
365
|
-
const ns = Pt(
|
|
366
|
-
({
|
|
367
|
-
id: s,
|
|
368
|
-
items: n,
|
|
369
|
-
nowIso: l,
|
|
370
|
-
title: u,
|
|
371
|
-
size: c = "sm",
|
|
372
|
-
onOpenTask: r,
|
|
373
|
-
onToggleDone: i,
|
|
374
|
-
onEditTask: k,
|
|
375
|
-
onDismissTask: y,
|
|
376
|
-
onAddTask: ie,
|
|
377
|
-
readOnly: z = !1,
|
|
378
|
-
renderItemActions: Y,
|
|
379
|
-
scope: U,
|
|
380
|
-
defaultScope: Ee,
|
|
381
|
-
onScopeChange: E,
|
|
382
|
-
availableScopes: g,
|
|
383
|
-
onLoadMore: p,
|
|
384
|
-
hasMore: Ie,
|
|
385
|
-
loadingMore: I = !1,
|
|
386
|
-
loading: X = !1,
|
|
387
|
-
error: x = !1,
|
|
388
|
-
showFilters: de = !0,
|
|
389
|
-
statusFilter: J,
|
|
390
|
-
defaultStatusFilter: je,
|
|
391
|
-
onStatusFilterChange: j,
|
|
392
|
-
typeOptions: Q,
|
|
393
|
-
typeFilter: B,
|
|
394
|
-
onTypeFilterChange: A,
|
|
395
|
-
assigneeOptions: Z,
|
|
396
|
-
assigneeFilter: H,
|
|
397
|
-
onAssigneeFilterChange: q,
|
|
398
|
-
overdueOnly: F,
|
|
399
|
-
defaultOverdueOnly: Be,
|
|
400
|
-
onOverdueOnlyChange: W,
|
|
401
|
-
emptyTitle: Ae,
|
|
402
|
-
emptyDescription: He,
|
|
403
|
-
emptyAction: qe,
|
|
404
|
-
className: We,
|
|
405
|
-
"aria-label": ce,
|
|
406
|
-
...$e
|
|
407
|
-
}, Ce) => {
|
|
408
|
-
const { t: o } = _t(), le = Pe(), Le = Pe(), Me = u ?? o("tasksPanel.title"), Ke = {
|
|
409
|
-
todo: o("tasksPanel.status.todo"),
|
|
410
|
-
done: o("tasksPanel.status.done"),
|
|
411
|
-
all: o("tasksPanel.status.all")
|
|
412
|
-
}, Oe = {
|
|
413
|
-
patient: o("tasksPanel.scope.patient"),
|
|
414
|
-
mine: o("tasksPanel.scope.mine")
|
|
415
|
-
}, Ve = {
|
|
416
|
-
overdue: o("tasksPanel.buckets.overdue"),
|
|
417
|
-
today: o("tasksPanel.buckets.today"),
|
|
418
|
-
tomorrow: o("tasksPanel.buckets.tomorrow"),
|
|
419
|
-
thisWeek: o("tasksPanel.buckets.thisWeek"),
|
|
420
|
-
later: o("tasksPanel.buckets.later"),
|
|
421
|
-
done: o("tasksPanel.buckets.done")
|
|
422
|
-
}, Ge = {
|
|
423
|
-
recall: o("tasksPanel.types.recall"),
|
|
424
|
-
payment: o("tasksPanel.types.payment"),
|
|
425
|
-
collection: o("tasksPanel.types.collection"),
|
|
426
|
-
other: o("tasksPanel.types.other")
|
|
427
|
-
}, $ = O(
|
|
428
|
-
() => l ? new Date(l) : /* @__PURE__ */ new Date(),
|
|
429
|
-
[l]
|
|
430
|
-
), [Ye, Ue] = h(
|
|
431
|
-
Ee ?? (g == null ? void 0 : g[0]) ?? "patient"
|
|
432
|
-
), Xe = U ?? Ye, ee = f(
|
|
433
|
-
(e) => {
|
|
434
|
-
U === void 0 && Ue(e), E == null || E(e);
|
|
435
|
-
},
|
|
436
|
-
[U, E]
|
|
437
|
-
), [Je, Qe] = h(
|
|
438
|
-
je ?? "todo"
|
|
439
|
-
), b = J ?? Je, N = f(
|
|
440
|
-
(e) => {
|
|
441
|
-
J === void 0 && Qe(e), j == null || j(e);
|
|
442
|
-
},
|
|
443
|
-
[J, j]
|
|
444
|
-
), [Ze, Fe] = h(null), C = B !== void 0 ? B : Ze, _ = f(
|
|
445
|
-
(e) => {
|
|
446
|
-
B === void 0 && Fe(e), A == null || A(e);
|
|
447
|
-
},
|
|
448
|
-
[B, A]
|
|
449
|
-
), [et, tt] = h(null), L = H !== void 0 ? H : et, D = f(
|
|
450
|
-
(e) => {
|
|
451
|
-
H === void 0 && tt(e), q == null || q(e);
|
|
452
|
-
},
|
|
453
|
-
[H, q]
|
|
454
|
-
), [st, at] = h(
|
|
455
|
-
Be ?? !1
|
|
456
|
-
), te = F ?? st, R = f(
|
|
457
|
-
(e) => {
|
|
458
|
-
F === void 0 && at(e), W == null || W(e);
|
|
459
|
-
},
|
|
460
|
-
[F, W]
|
|
461
|
-
), ot = f(() => {
|
|
462
|
-
N("todo"), _(null), D(null), R(!1);
|
|
463
|
-
}, [N, _, D, R]), M = O(() => n.filter((e) => {
|
|
464
|
-
const t = e.status === "done";
|
|
465
|
-
return !(b === "todo" && t || b === "done" && !t || C && e.type !== C || L && (e.assignee ?? "") !== L || te && !as(e, $));
|
|
466
|
-
}), [
|
|
467
|
-
n,
|
|
468
|
-
b,
|
|
469
|
-
C,
|
|
470
|
-
L,
|
|
471
|
-
te,
|
|
472
|
-
$
|
|
473
|
-
]), ue = O(
|
|
474
|
-
() => os(M, $),
|
|
475
|
-
[M, $]
|
|
476
|
-
), T = V(null), pe = V(null), [nt, rt] = h(!1), [it, dt] = h(!1), w = f(() => {
|
|
477
|
-
const e = T.current;
|
|
478
|
-
if (!e) return;
|
|
479
|
-
const { scrollTop: t, scrollHeight: d, clientHeight: v } = e;
|
|
480
|
-
rt(t > 1), dt(t + v < d - 1);
|
|
481
|
-
}, []);
|
|
482
|
-
De(() => {
|
|
483
|
-
w();
|
|
484
|
-
}, [ue, w]), De(() => {
|
|
485
|
-
const e = T.current;
|
|
486
|
-
if (!e || typeof ResizeObserver > "u") return;
|
|
487
|
-
const t = new ResizeObserver(w);
|
|
488
|
-
return t.observe(e), () => t.disconnect();
|
|
489
|
-
}, [w]);
|
|
490
|
-
const se = Ie ?? !!p, ct = f(() => {
|
|
491
|
-
w();
|
|
492
|
-
const e = T.current;
|
|
493
|
-
if (!e) return;
|
|
494
|
-
const { scrollTop: t, scrollHeight: d, clientHeight: v } = e;
|
|
495
|
-
p && se && !I && d - t - v <= Yt && p();
|
|
496
|
-
}, [w, p, se, I]), { resolvedTheme: lt } = jt(), K = lt.endsWith("-accessible") || void 0, { containerRef: ut } = It({
|
|
497
|
-
key: M.map((e) => e.id).join(),
|
|
498
|
-
reduceMotion: K
|
|
499
|
-
}), fe = _e({ delayMs: 200, reduceMotion: K }), me = _e({ reduceMotion: K }), ae = (e) => fe.isLeaving(e) || me.isLeaving(e), ve = (e) => {
|
|
500
|
-
if (!i) return;
|
|
501
|
-
const t = e.status === "done";
|
|
502
|
-
b === "todo" && !t || b === "done" && t ? fe.leave(e.id, () => i(e)) : i(e);
|
|
503
|
-
}, ge = (e) => {
|
|
504
|
-
y && me.leave(e.id, () => y(e));
|
|
505
|
-
}, he = f(() => {
|
|
506
|
-
const e = T.current, t = pe.current;
|
|
507
|
-
if (!e || !t) {
|
|
508
|
-
e == null || e.scrollTo({ top: 0 });
|
|
509
|
-
return;
|
|
510
|
-
}
|
|
511
|
-
const d = t.getBoundingClientRect().top - e.getBoundingClientRect().top;
|
|
512
|
-
e.scrollTo({ top: e.scrollTop + d });
|
|
513
|
-
}, []), S = V(n);
|
|
514
|
-
S.current = n;
|
|
515
|
-
const ke = V(null);
|
|
516
|
-
xt(Ce, () => ke.current, []);
|
|
517
|
-
const pt = O(
|
|
518
|
-
() => ({
|
|
519
|
-
getItems: () => S.current.map((e) => ({
|
|
520
|
-
id: e.id,
|
|
521
|
-
status: e.status ?? "open"
|
|
522
|
-
})),
|
|
523
|
-
selectItem: (e) => {
|
|
524
|
-
const t = S.current.find((d) => d.id === e);
|
|
525
|
-
t && (r == null || r(t));
|
|
526
|
-
},
|
|
527
|
-
toggleDone: (e) => {
|
|
528
|
-
const t = S.current.find((d) => d.id === e);
|
|
529
|
-
t && ve(t);
|
|
530
|
-
},
|
|
531
|
-
dismiss: (e) => {
|
|
532
|
-
const t = S.current.find((d) => d.id === e);
|
|
533
|
-
t && ge(t);
|
|
534
|
-
},
|
|
535
|
-
jumpToOverdue: he,
|
|
536
|
-
setFilter: (e) => {
|
|
537
|
-
e.status !== void 0 && N(e.status), e.type !== void 0 && _(e.type), e.assignee !== void 0 && D(e.assignee), e.overdueOnly !== void 0 && R(e.overdueOnly);
|
|
538
|
-
},
|
|
539
|
-
changeScope: ee,
|
|
540
|
-
loadMore: () => p == null ? void 0 : p()
|
|
541
|
-
}),
|
|
542
|
-
[
|
|
543
|
-
r,
|
|
544
|
-
i,
|
|
545
|
-
y,
|
|
546
|
-
he,
|
|
547
|
-
N,
|
|
548
|
-
_,
|
|
549
|
-
D,
|
|
550
|
-
R,
|
|
551
|
-
ee,
|
|
552
|
-
p
|
|
553
|
-
]
|
|
554
|
-
);
|
|
555
|
-
Bt(Gt, pt, s);
|
|
556
|
-
const ft = (e) => {
|
|
557
|
-
if (!e.type) return null;
|
|
558
|
-
const t = Ft[e.type], d = (t == null ? void 0 : t.variant) ?? "neutral", v = (t == null ? void 0 : t.Icon) ?? Te, wt = e.typeLabel ?? Ge[e.type] ?? e.type;
|
|
559
|
-
return /* @__PURE__ */ a(
|
|
560
|
-
Dt,
|
|
561
|
-
{
|
|
562
|
-
variant: d,
|
|
563
|
-
size: "sm",
|
|
564
|
-
leading: /* @__PURE__ */ a(v, { "aria-hidden": "true" }),
|
|
565
|
-
children: wt
|
|
566
|
-
}
|
|
567
|
-
);
|
|
568
|
-
}, mt = (e) => z ? null : /* @__PURE__ */ m(we, { children: [
|
|
569
|
-
k ? /* @__PURE__ */ a(
|
|
570
|
-
ne,
|
|
571
|
-
{
|
|
572
|
-
icon: /* @__PURE__ */ a(qt, {}),
|
|
573
|
-
intent: "ghost",
|
|
574
|
-
size: "sm",
|
|
575
|
-
"aria-label": o("tasksPanel.edit"),
|
|
576
|
-
onClick: () => k(e)
|
|
577
|
-
}
|
|
578
|
-
) : null,
|
|
579
|
-
y ? /* @__PURE__ */ a(
|
|
580
|
-
ne,
|
|
581
|
-
{
|
|
582
|
-
icon: /* @__PURE__ */ a(Wt, {}),
|
|
583
|
-
intent: "ghost",
|
|
584
|
-
size: "sm",
|
|
585
|
-
"aria-label": o("tasksPanel.dismiss"),
|
|
586
|
-
onClick: () => ge(e)
|
|
587
|
-
}
|
|
588
|
-
) : null
|
|
589
|
-
] }), vt = (e) => {
|
|
590
|
-
const d = (z ? null : Y == null ? void 0 : Y(e)) ?? mt(e), v = ft(e);
|
|
591
|
-
if (!(!v && !d))
|
|
592
|
-
return /* @__PURE__ */ m(we, { children: [
|
|
593
|
-
v,
|
|
594
|
-
d
|
|
595
|
-
] });
|
|
596
|
-
}, gt = !X && !x && n.length === 0, ht = !X && !x && n.length > 0 && M.length === 0, ye = (e) => /* @__PURE__ */ a(
|
|
597
|
-
"div",
|
|
598
|
-
{
|
|
599
|
-
"aria-hidden": "true",
|
|
600
|
-
className: "ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
|
|
601
|
-
children: /* @__PURE__ */ a(St, { variant: "rectangular", height: "3.5rem" })
|
|
602
|
-
},
|
|
603
|
-
e
|
|
604
|
-
);
|
|
605
|
-
let P;
|
|
606
|
-
x ? P = /* @__PURE__ */ a("div", { className: "ds:flex-1 ds:min-h-0 ds:p-[var(--spacing-md)]", children: typeof x == "boolean" ? /* @__PURE__ */ a(
|
|
607
|
-
re,
|
|
608
|
-
{
|
|
609
|
-
variant: "error",
|
|
610
|
-
size: "sm",
|
|
611
|
-
title: o("tasksPanel.error.title"),
|
|
612
|
-
description: o("tasksPanel.error.description")
|
|
613
|
-
}
|
|
614
|
-
) : x }) : X ? P = /* @__PURE__ */ a("div", { className: "ds:flex-1 ds:min-h-0 ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [0, 1, 2, 3].map((e) => ye(`skeleton-${e}`)) }) : gt ? P = /* @__PURE__ */ a("div", { className: "ds:flex-1 ds:min-h-0 ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ a(
|
|
615
|
-
re,
|
|
616
|
-
{
|
|
617
|
-
variant: "first-use",
|
|
618
|
-
size: "sm",
|
|
619
|
-
title: Ae ?? o("tasksPanel.empty.title"),
|
|
620
|
-
description: He ?? o("tasksPanel.empty.description"),
|
|
621
|
-
primaryAction: qe
|
|
622
|
-
}
|
|
623
|
-
) }) : ht ? P = /* @__PURE__ */ a("div", { className: "ds:flex-1 ds:min-h-0 ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ a(
|
|
624
|
-
re,
|
|
625
|
-
{
|
|
626
|
-
variant: "no-results",
|
|
627
|
-
size: "sm",
|
|
628
|
-
title: o("tasksPanel.filteredEmpty.title"),
|
|
629
|
-
description: o("tasksPanel.filteredEmpty.description"),
|
|
630
|
-
primaryAction: {
|
|
631
|
-
label: o("tasksPanel.filteredEmpty.clear"),
|
|
632
|
-
onClick: ot
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
) }) : P = /* @__PURE__ */ m(
|
|
636
|
-
"div",
|
|
637
|
-
{
|
|
638
|
-
ref: (e) => {
|
|
639
|
-
T.current = e, ut.current = e;
|
|
640
|
-
},
|
|
641
|
-
tabIndex: 0,
|
|
642
|
-
onScroll: ct,
|
|
643
|
-
"data-fade-top": nt ? "true" : void 0,
|
|
644
|
-
"data-fade-bottom": it ? "true" : void 0,
|
|
645
|
-
className: Xt,
|
|
646
|
-
children: [
|
|
647
|
-
/* @__PURE__ */ a("ol", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-md)] ds:p-0", children: ue.map((e) => /* @__PURE__ */ m(
|
|
648
|
-
"li",
|
|
649
|
-
{
|
|
650
|
-
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
|
|
651
|
-
children: [
|
|
652
|
-
/* @__PURE__ */ a(
|
|
653
|
-
rs,
|
|
654
|
-
{
|
|
655
|
-
bucketKey: e.key,
|
|
656
|
-
count: e.items.length,
|
|
657
|
-
label: Ve[e.key],
|
|
658
|
-
headerRef: e.key === "overdue" ? pe : void 0,
|
|
659
|
-
reflowId: `bucket-${e.key}`,
|
|
660
|
-
leaving: e.items.every((t) => ae(t.id))
|
|
661
|
-
}
|
|
662
|
-
),
|
|
663
|
-
/* @__PURE__ */ a("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0", children: e.items.map((t) => /* @__PURE__ */ a(
|
|
664
|
-
zt,
|
|
665
|
-
{
|
|
666
|
-
item: t,
|
|
667
|
-
size: c,
|
|
668
|
-
onActivate: r ? () => r(t) : void 0,
|
|
669
|
-
actions: vt(t),
|
|
670
|
-
leading: i && !z ? /* @__PURE__ */ a(
|
|
671
|
-
Zt,
|
|
672
|
-
{
|
|
673
|
-
item: t,
|
|
674
|
-
label: o("tasksPanel.markDone"),
|
|
675
|
-
labelChecked: o("tasksPanel.markNotDone"),
|
|
676
|
-
reduceMotion: K,
|
|
677
|
-
onToggle: ve
|
|
678
|
-
}
|
|
679
|
-
) : void 0,
|
|
680
|
-
className: `${Jt} ${Re}${ae(t.id) ? ` ${Se}` : ""}`,
|
|
681
|
-
"data-leaving": ae(t.id) ? "" : void 0,
|
|
682
|
-
"data-reflow-id": t.id,
|
|
683
|
-
"data-task-id": t.id
|
|
684
|
-
},
|
|
685
|
-
t.id
|
|
686
|
-
)) })
|
|
687
|
-
]
|
|
688
|
-
},
|
|
689
|
-
e.key
|
|
690
|
-
)) }),
|
|
691
|
-
I ? ye("loading-more") : null,
|
|
692
|
-
!I && se && p ? /* @__PURE__ */ a("div", { className: "ds:flex ds:justify-center ds:py-[var(--spacing-sm)]", children: /* @__PURE__ */ a(oe, { intent: "ghost", size: "sm", onClick: p, children: o("tasksPanel.loadMore") }) }) : null
|
|
693
|
-
]
|
|
694
|
-
}
|
|
695
|
-
);
|
|
696
|
-
const be = ((g == null ? void 0 : g.length) ?? 0) > 1, kt = ["todo", "done", "all"], yt = ie && !z ? /* @__PURE__ */ a(
|
|
697
|
-
ne,
|
|
698
|
-
{
|
|
699
|
-
icon: /* @__PURE__ */ a(At, {}),
|
|
700
|
-
intent: "outline",
|
|
701
|
-
size: "sm",
|
|
702
|
-
"aria-label": o("tasksPanel.add"),
|
|
703
|
-
onClick: ie
|
|
704
|
-
}
|
|
705
|
-
) : void 0, bt = be || de ? /* @__PURE__ */ m("div", { className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
706
|
-
be ? /* @__PURE__ */ a(xe, { label: o("tasksPanel.scope.label"), children: g.map((e) => {
|
|
707
|
-
const t = Xe === e;
|
|
708
|
-
return /* @__PURE__ */ a(
|
|
709
|
-
oe,
|
|
710
|
-
{
|
|
711
|
-
intent: t ? "primary" : "outline",
|
|
712
|
-
size: "sm",
|
|
713
|
-
"aria-pressed": t,
|
|
714
|
-
onClick: () => ee(e),
|
|
715
|
-
children: Oe[e]
|
|
716
|
-
},
|
|
717
|
-
e
|
|
718
|
-
);
|
|
719
|
-
}) }) : null,
|
|
720
|
-
de ? /* @__PURE__ */ m("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
721
|
-
/* @__PURE__ */ a(xe, { label: o("tasksPanel.status.label"), children: kt.map((e) => {
|
|
722
|
-
const t = b === e;
|
|
723
|
-
return /* @__PURE__ */ a(
|
|
724
|
-
oe,
|
|
725
|
-
{
|
|
726
|
-
intent: t ? "primary" : "outline",
|
|
727
|
-
size: "sm",
|
|
728
|
-
"aria-pressed": t,
|
|
729
|
-
onClick: () => N(e),
|
|
730
|
-
children: Ke[e]
|
|
731
|
-
},
|
|
732
|
-
e
|
|
733
|
-
);
|
|
734
|
-
}) }),
|
|
735
|
-
Q && Q.length > 0 ? /* @__PURE__ */ a(
|
|
736
|
-
Ne,
|
|
737
|
-
{
|
|
738
|
-
size: "sm",
|
|
739
|
-
clearable: !0,
|
|
740
|
-
"aria-label": o("tasksPanel.type.label"),
|
|
741
|
-
placeholder: o("tasksPanel.type.placeholder"),
|
|
742
|
-
options: Q,
|
|
743
|
-
value: C ?? "",
|
|
744
|
-
onValueChange: (e) => _(e || null)
|
|
745
|
-
}
|
|
746
|
-
) : null,
|
|
747
|
-
Z && Z.length > 0 ? /* @__PURE__ */ a(
|
|
748
|
-
Ne,
|
|
749
|
-
{
|
|
750
|
-
size: "sm",
|
|
751
|
-
clearable: !0,
|
|
752
|
-
"aria-label": o("tasksPanel.assignee.label"),
|
|
753
|
-
placeholder: o("tasksPanel.assignee.placeholder"),
|
|
754
|
-
options: Z,
|
|
755
|
-
value: L ?? "",
|
|
756
|
-
onValueChange: (e) => D(e || null)
|
|
757
|
-
}
|
|
758
|
-
) : null,
|
|
759
|
-
/* @__PURE__ */ a(
|
|
760
|
-
Tt,
|
|
761
|
-
{
|
|
762
|
-
id: Le,
|
|
763
|
-
size: "sm",
|
|
764
|
-
label: o("tasksPanel.overdueOnly"),
|
|
765
|
-
checked: te,
|
|
766
|
-
onCheckedChange: R
|
|
767
|
-
}
|
|
768
|
-
)
|
|
769
|
-
] }) : null
|
|
770
|
-
] }) : void 0;
|
|
771
|
-
return /* @__PURE__ */ m(
|
|
772
|
-
"section",
|
|
773
|
-
{
|
|
774
|
-
ref: ke,
|
|
775
|
-
"data-component": "tasks-panel",
|
|
776
|
-
"data-component-id": s,
|
|
777
|
-
"aria-labelledby": ce ? void 0 : le,
|
|
778
|
-
"aria-label": ce,
|
|
779
|
-
className: Ut({ size: c, className: We }),
|
|
780
|
-
...$e,
|
|
781
|
-
children: [
|
|
782
|
-
/* @__PURE__ */ a(
|
|
783
|
-
Rt,
|
|
784
|
-
{
|
|
785
|
-
title: Me,
|
|
786
|
-
icon: /* @__PURE__ */ a(Ht, {}),
|
|
787
|
-
headingId: le,
|
|
788
|
-
actions: yt,
|
|
789
|
-
filters: bt
|
|
790
|
-
}
|
|
791
|
-
),
|
|
792
|
-
P
|
|
793
|
-
]
|
|
794
|
-
}
|
|
795
|
-
);
|
|
796
|
-
}
|
|
797
|
-
);
|
|
798
|
-
ns.displayName = "TasksPanel";
|
|
799
|
-
function rs({
|
|
800
|
-
bucketKey: s,
|
|
801
|
-
count: n,
|
|
802
|
-
label: l,
|
|
803
|
-
headerRef: u,
|
|
804
|
-
reflowId: c,
|
|
805
|
-
leaving: r = !1
|
|
806
|
-
}) {
|
|
807
|
-
return /* @__PURE__ */ m(
|
|
808
|
-
"div",
|
|
809
|
-
{
|
|
810
|
-
ref: u,
|
|
811
|
-
"data-bucket": s,
|
|
812
|
-
"data-reflow-id": c,
|
|
813
|
-
"data-leaving": r ? "" : void 0,
|
|
814
|
-
className: [
|
|
815
|
-
"ds:sticky ds:top-0 ds:z-[2] ds:bg-[color:var(--card)] ds:py-[var(--spacing-2xs)]",
|
|
816
|
-
"ds:flex ds:items-center ds:gap-[var(--spacing-2xs)] type-eyebrow",
|
|
817
|
-
// A header travels with its bucket, and leaves with it: a heading
|
|
818
|
-
// left standing over nothing, or snapping while its rows glide,
|
|
819
|
-
// reads as two lists rather than one.
|
|
820
|
-
Re,
|
|
821
|
-
"ds:transition-opacity ds:duration-[var(--animation-duration)]",
|
|
822
|
-
"ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none",
|
|
823
|
-
r ? Se : "",
|
|
824
|
-
s === "overdue" ? "ds:text-[color:var(--destructive)] ds:font-semibold" : s === "today" ? "ds:text-[color:var(--primary)] ds:font-semibold" : "ds:text-[color:var(--muted-foreground)]"
|
|
825
|
-
].filter(Boolean).join(" "),
|
|
826
|
-
children: [
|
|
827
|
-
s === "today" ? /* @__PURE__ */ a(
|
|
828
|
-
"span",
|
|
829
|
-
{
|
|
830
|
-
"aria-hidden": "true",
|
|
831
|
-
className: "ds:size-1.5 ds:shrink-0 ds:rounded-[var(--radius-full)] ds:bg-[color:var(--primary)]"
|
|
832
|
-
}
|
|
833
|
-
) : null,
|
|
834
|
-
l,
|
|
835
|
-
/* @__PURE__ */ a("span", { className: "ds:text-[color:var(--muted-foreground)]", children: `(${n})` })
|
|
836
|
-
]
|
|
837
|
-
}
|
|
838
|
-
);
|
|
839
|
-
}
|
|
840
|
-
export {
|
|
841
|
-
ns as T,
|
|
842
|
-
Gt as t
|
|
843
|
-
};
|
|
844
|
-
//# sourceMappingURL=tasks-panel-DncuBPIZ.js.map
|