@alfadocs/ui-kit 1.141.0 → 1.143.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-C-l_ppP6.js → actions-cell-renderer-CPNyF6ye.js} +3 -3
- package/dist/_chunks/{ai-credits-notice-BNFcQoXo.js → ai-credits-notice-D_Zm_N2A.js} +2 -2
- package/dist/_chunks/{ai-permission-notice-C-xR2_iS.js → ai-permission-notice-CEDEWE2-.js} +19 -11
- package/dist/_chunks/{ai-prompt-input-B2QFwuJ1.js → ai-prompt-input-y4-dtQIT.js} +2 -2
- package/dist/_chunks/{ai-summary-panel-BhCo2vZF.js → ai-summary-panel-CJVOjr2I.js} +3 -3
- package/dist/_chunks/{alia-sidebar-CVBlKur9.js → alia-sidebar-AKz42_XE.js} +3 -3
- package/dist/_chunks/{anamnesis-card-sUFT0dpF.js → anamnesis-card-W8ZaDytS.js} +15 -14
- package/dist/_chunks/{anamnesis-summary-rows-YJGs2uWD.js → anamnesis-summary-rows-wUl7oXBO.js} +9 -9
- package/dist/_chunks/{appointment-card-r0OZm77v.js → appointment-card-HOZrABrQ.js} +3 -3
- package/dist/_chunks/{appointment-details-panel.history-DrIMDQYf.js → appointment-details-panel.history-B8R8XfGe.js} +37 -30
- package/dist/_chunks/{appointment-peek-BP_ACFz5.js → appointment-peek-BCzekfWh.js} +3 -3
- package/dist/_chunks/appointment-timeline-CMc_3C74.js +776 -0
- package/dist/_chunks/{appointment-tray-t_ltp-Yi.js → appointment-tray-D8k5YKLU.js} +2 -2
- package/dist/_chunks/{audio-recorder-6dUq8I38.js → audio-recorder-DxhCiLqG.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-CRStPNDd.js → balance-badge-cell-10BdaOQ8.js} +6 -6
- package/dist/_chunks/{bill-line-table-DTqXdBED.js → bill-line-table-qAdmV19W.js} +2 -2
- package/dist/_chunks/{bishop-score-M7Fi-ykx.js → bishop-score-DbvfBlBM.js} +2 -2
- package/dist/_chunks/{button-group-DuQuuulC.js → button-group-DoKG16Fy.js} +2 -2
- package/dist/_chunks/{calculator-dialog-Cg3GjaRf.js → calculator-dialog-BWizCwN5.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-CuXpgLCw.js → calendar-appointment-editor-dialog-9kVppi9f.js} +18 -18
- package/dist/_chunks/{calendar-editor-discard-host-BcMEgVEq.js → calendar-editor-discard-host-BblBxMqT.js} +5 -5
- package/dist/_chunks/{calendar-waiting-list-panel-BNQrUndD.js → calendar-waiting-list-panel-CSFJw5np.js} +6 -6
- package/dist/_chunks/{calendar.sheets-DcW8A3DI.js → calendar.sheets-DZh3p8HE.js} +13 -13
- package/dist/_chunks/{calls-panel-CJNQm7r8.js → calls-panel-CnjAKFgA.js} +92 -90
- package/dist/_chunks/{care-plan-card-CjHq6PLo.js → care-plan-card-CkRqA58O.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-DY1toF6E.js → care-plan-entry-card-DurPuYAP.js} +3 -3
- package/dist/_chunks/{care-plan-header-CeFXUDnL.js → care-plan-header-C4i93i8H.js} +2 -2
- package/dist/_chunks/{chart-D0EeFWst.js → chart-ChNsJf9_.js} +2 -2
- package/dist/_chunks/{chat-message-B4TMeZ2m.js → chat-message-IG9uRq6y.js} +2 -2
- package/dist/_chunks/{clinical-note-card-D--IwbZa.js → clinical-note-card-D-9xmRpf.js} +68 -52
- package/dist/_chunks/{color-picker-CC8ZfntU.js → color-picker-5FKOk_z1.js} +2 -2
- package/dist/_chunks/{communications-panel-DBWM9II9.js → communications-panel-MgAuWYBy.js} +5 -5
- package/dist/_chunks/{control-room-rail-DcJpHbp4.js → control-room-rail-DBmNpbDE.js} +2 -2
- package/dist/_chunks/{cycle-calculator-Cb66X2Pf.js → cycle-calculator-BUCGfEcy.js} +2 -2
- package/dist/_chunks/{dashboard-grid-2uVXEe9e.js → dashboard-grid-D2egA1Zu.js} +2 -2
- package/dist/_chunks/{data-grid-tabs-D9Y4DeeH.js → data-grid-tabs-Mbj6bSK2.js} +2 -2
- package/dist/_chunks/{data-grid-CRUSZcVT.js → data-grid-tyE2kGfx.js} +5 -5
- package/dist/_chunks/{data-table-CnLfOwxg.js → data-table-Huk4CNHs.js} +118 -118
- package/dist/_chunks/{data-table-tabs-NYLhD8_Z.js → data-table-tabs-D5ujdK56.js} +2 -2
- package/dist/_chunks/{date-picker-BmVBVpVu.js → date-picker-CD-PBzXM.js} +2 -2
- package/dist/_chunks/{date-range-panel-CT9Pk-HF.js → date-range-panel-BOgfP_V3.js} +2 -2
- package/dist/_chunks/{date-range-picker-2Up_FRrM.js → date-range-picker-Z-hI5Vb7.js} +2 -2
- package/dist/_chunks/{date-time-picker-C6b_Vymc.js → date-time-picker-DHza1SEH.js} +2 -2
- package/dist/_chunks/{default-tabs-CRbVCDSU.js → default-tabs-ChkVzOL8.js} +7 -7
- package/dist/_chunks/dialog-239Geb7Z.js +431 -0
- package/dist/_chunks/dialog-container-DHR0byah.js +17 -0
- package/dist/_chunks/{document-preview-FTCHXYhk.js → document-preview-x_S8V7VC.js} +3 -3
- package/dist/_chunks/{dropdown-menu-DBWaW4pq.js → dropdown-menu-Bm1KALnk.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Dlqegxx9.js → due-date-calculator-DpN0Z9p4.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-CZMQ5xRT.js → editable-currency-cell-renderer-C6z6ABN_.js} +2 -2
- package/dist/_chunks/{entity-summary-CPUHzyil.js → entity-summary-DgZSdp6d.js} +2 -2
- package/dist/_chunks/{face-scheme-Bxt7ZnJn.js → face-scheme-S88jbOzl.js} +3 -3
- package/dist/_chunks/{file-manager-Bsccb8Jj.js → file-manager-kdPsJq_k.js} +5 -5
- package/dist/_chunks/{gestational-age-calculator-DXSPWG8u.js → gestational-age-calculator-CCDIhSMV.js} +3 -3
- package/dist/_chunks/{hcg-doubling-Dqbj6PQj.js → hcg-doubling-BekuksBv.js} +2 -2
- package/dist/_chunks/{header-settings-Cu-MKOsO.js → header-settings-CvZ7Qii6.js} +3 -3
- package/dist/_chunks/{heatmap-CFPaEKD_.js → heatmap-Cb4JSpv_.js} +3 -3
- package/dist/_chunks/{help-me-write-templates-DO6vJeP4.js → help-me-write-templates-C84_4iwX.js} +2 -2
- package/dist/_chunks/{hover-card-CuRIA4wN.js → hover-card-CIiPOlyM.js} +2 -2
- package/dist/_chunks/{icon-button-group-SmkdVCNx.js → icon-button-group-CLhC7wjU.js} +2 -2
- package/dist/_chunks/{icon-picker-BmU6gpZT.js → icon-picker-Ct6n8GTa.js} +2 -2
- package/dist/_chunks/{info-tip-B3cn3fY2.js → info-tip-CkH2En-i.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-BR6vycF7.js → invoice-upload-list-CZ1B9yWh.js} +4 -4
- package/dist/_chunks/{kit-extensions-QddOSnIq.js → kit-extensions-C_oZ7WOq.js} +4 -4
- package/dist/_chunks/{link-cell-renderer-hAJplRFF.js → link-cell-renderer-Bt_sl4iP.js} +5 -5
- package/dist/_chunks/{locale-picker-C86h8Yt1.js → locale-picker-OrojXX6E.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-dMmxI6MT.js → marketplace-app-shell-DnL187-U.js} +4 -4
- package/dist/_chunks/{message-card-Bw_q1qKx.js → message-card-DvBjcZgH.js} +10 -9
- package/dist/_chunks/{message-tray-pLGgLmoG.js → message-tray-BHaE254g.js} +3 -3
- package/dist/_chunks/{muscle-scheme-BB2eBfww.js → muscle-scheme-vNd8wU7V.js} +2 -2
- package/dist/_chunks/{non-modal-tab-exit-j3CPOuE3.js → non-modal-tab-exit-DqJao_E-.js} +2 -1
- package/dist/_chunks/{notes-panel-C4HSUudf.js → notes-panel-DCKbuZqS.js} +400 -397
- package/dist/_chunks/{notification-card-DRMv2_pW.js → notification-card-CDuzAytQ.js} +11 -10
- package/dist/_chunks/{notification-tray-mlCfxNRH.js → notification-tray-CnPV8jDA.js} +3 -3
- package/dist/_chunks/{optical-prescription-GzeK_2cf.js → optical-prescription-CWwrW4YQ.js} +2 -2
- package/dist/_chunks/{pagination-C7N_NiRN.js → pagination-BpXG5jVk.js} +2 -2
- package/dist/_chunks/{parts-BOnDDU3E.js → parts-IFiXO68Y.js} +3 -3
- package/dist/_chunks/{patient-account-settings-nSvNKKOL.js → patient-account-settings-BQ9bMsJS.js} +3 -3
- package/dist/_chunks/{patient-check-in-resume-Cj2wg_NQ.js → patient-check-in-resume-v5lYhMsh.js} +5 -5
- package/dist/_chunks/{patient-details-D0PjzALT.js → patient-details-6uJZ27ZL.js} +2 -2
- package/dist/_chunks/{patient-field-row-DlpIModg.js → patient-field-row-D8Cu_MQp.js} +5 -5
- package/dist/_chunks/{patient-search-aTFd7p9s.js → patient-search-C6-INPjs.js} +2 -2
- package/dist/_chunks/{patient-summary-card-BP_K7g_q.js → patient-summary-card-NYjO0IfN.js} +3 -3
- package/dist/_chunks/{pdf-viewer-TRC5jEm5.js → pdf-viewer-C8no312t.js} +2 -2
- package/dist/_chunks/{phone-input-DRKcJUi4.js → phone-input-DHiYJZ9v.js} +2 -2
- package/dist/_chunks/{popover-CN5IsOeS.js → popover-CkvP3rHZ.js} +2 -2
- package/dist/_chunks/{popup-region-qz_5_A0V.js → popup-region-BgZ8oeUB.js} +2 -2
- package/dist/_chunks/{portal-details-Cnyqf9kY.js → portal-details-CwX3VNxh.js} +2 -2
- package/dist/_chunks/{portal-documents-g109Dl0O.js → portal-documents-BWdXhWpZ.js} +5 -5
- package/dist/_chunks/{portal-parts-DgDFuED8.js → portal-parts-DbCMuZVl.js} +3 -3
- package/dist/_chunks/{practice-results-DaxGw9_f.js → practice-results-BUEsl2Pj.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-a6WIg4oy.js → pregnancy-dating-wc9iCN0f.js} +3 -3
- package/dist/_chunks/{prescription-history-Bp_JHhdF.js → prescription-history-DPjqflwJ.js} +9 -9
- package/dist/_chunks/{product-hub-panel-K4QbULG7.js → product-hub-panel-DiWjSIR2.js} +3 -3
- package/dist/_chunks/{public-header.agent-DaeDfLfy.js → public-header.agent-Dsl9zhA2.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-88VjqlG7.js → radiograph-panel.agent-CSpr2paU.js} +4 -4
- package/dist/_chunks/{recaptcha-widget-iglUBIF3.js → recaptcha-widget-D6RwGg8B.js} +35 -35
- package/dist/_chunks/{registration-form-Cs9o6e5q.js → registration-form-BEsIjznv.js} +4 -4
- package/dist/_chunks/{reserved.agent-L2ElYPuj.js → reserved.agent-C_pr0bHy.js} +4 -4
- package/dist/_chunks/{rich-text-editor-orJ-hPgm.js → rich-text-editor-DoCaj0qc.js} +8 -8
- package/dist/_chunks/{row-actions-BF2-uizV.js → row-actions-C6d6vy5z.js} +3 -3
- package/dist/_chunks/{saved-view-tabs-DLWm88Eq.js → saved-view-tabs-CVUM3Nqz.js} +2 -2
- package/dist/_chunks/{select-Bm8s3q-X.js → select-Bw5FvGJ7.js} +2 -2
- package/dist/_chunks/{send-registration-link-form-C1vw6H1M.js → send-registration-link-form-D-NkS__p.js} +3 -3
- package/dist/_chunks/{sheet-BdhYeQQT.js → sheet-BIAhwdyS.js} +2 -2
- package/dist/_chunks/{sign-document-DDZbmYHu.js → sign-document-BUhWw-7S.js} +2 -2
- package/dist/_chunks/{signature-request-D3sLLOM6.js → signature-request-BfKo3vOz.js} +4 -4
- package/dist/_chunks/{signing-end-screen-BdhbkPKO.js → signing-end-screen-Pmda6tCH.js} +4 -4
- package/dist/_chunks/{step-up-dialog-C2JqJmCA.js → step-up-dialog-C1O8ctoh.js} +2 -2
- package/dist/_chunks/{sync-tray-BhnkgXKK.js → sync-tray-BgrO4QjH.js} +56 -54
- package/dist/_chunks/{tab-bar-CeC2QOwB.js → tab-bar-C6tPDq9s.js} +2 -2
- package/dist/_chunks/{tabs-BXr5XeGq.js → tabs-BOf9OO--.js} +3 -3
- package/dist/_chunks/{task-editor-DDVDPKJf.js → task-editor-DNkrLbgK.js} +7 -6
- package/dist/_chunks/{tasks-panel-BHXaPNOZ.js → tasks-panel-CDFHAHrN.js} +139 -139
- package/dist/_chunks/{theme-toggle-BQDFxvVS.js → theme-toggle-C2LPw3xr.js} +3 -3
- package/dist/_chunks/{timeline-DXko0M1t.js → timeline-BzGi_3GQ.js} +2 -2
- package/dist/_chunks/timestamp-UMF1llBs.js +113 -0
- package/dist/_chunks/{token-insert-menu-BLtfMTJd.js → token-insert-menu-sGtftx4Y.js} +2 -2
- package/dist/_chunks/{tool-rail-Kup1b7xI.js → tool-rail-mWmYNRCV.js} +226 -222
- package/dist/_chunks/{toolbar-B7UHCMSr.js → toolbar-JTR20W-U.js} +3 -3
- package/dist/_chunks/{tooth-scheme-BtnFgugP.js → tooth-scheme-DpgciFU8.js} +2 -2
- package/dist/_chunks/{unit-converter-OBhSDXee.js → unit-converter-D1e1wZRE.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-DeQnmmZw.js → use-appointment-details-read-xj0PyEhI.js} +591 -576
- package/dist/_chunks/use-resolved-theme-B0f1_oyq.js +32 -0
- package/dist/_chunks/{verify-identity-types-C6Bam8v6.js → verify-identity-types-CpeJIc9F.js} +2 -2
- package/dist/_chunks/{voice-control-panel-Dc_NFH2R.js → voice-control-panel-DqvvZN2A.js} +4 -4
- package/dist/_chunks/{widget-picker-D3T7e8a4.js → widget-picker-Ddl0lDWV.js} +2 -2
- package/dist/_chunks/{workflow-map-DaZFP9SJ.js → workflow-map-CwfLHuiD.js} +3 -3
- package/dist/_chunks/{workflow-status-CO0mxXs2.js → workflow-status-Cg7yjnye.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-BsGSh3h9.js → workflow-webhook-action-BUWc2txJ.js} +2 -2
- package/dist/agent-catalog.json +10 -7
- package/dist/agent-i18n/en.json +3 -3
- package/dist/appointment-editor-panel/index.js +2 -2
- package/dist/browser-support.js +1 -1
- package/dist/calendar-action-buttons/index.js +1 -1
- package/dist/components/_shared/non-modal-tab-exit.d.ts +1 -0
- 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/ai-summary-panel/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +3 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +5 -0
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +27 -0
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/calls-panel/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/chart/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +2 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/communications-panel/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-grid-tabs/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/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/dialog/dialog-container.d.ts +27 -0
- package/dist/components/dialog/dialog.d.ts +12 -2
- package/dist/components/dialog/index.d.ts +3 -1
- package/dist/components/dialog/index.js +5 -3
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/hover-card/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/info-tip/index.js +1 -1
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/locale-picker/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/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +5 -4
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/pagination/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/pdf-viewer/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-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/product-hub-tray/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/recaptcha-widget/index.js +1 -1
- package/dist/components/recaptcha-widget/recaptcha-widget.d.ts +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/row-actions/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/step-up-dialog/index.js +1 -1
- package/dist/components/sync-tray/index.js +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/timestamp/index.js +1 -1
- package/dist/components/timestamp/timestamp.d.ts +6 -0
- 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/unit-converter/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +58 -56
- package/dist/hooks/use-resolved-theme.d.ts +20 -0
- package/dist/i18n/locales/ar.d.ts +5 -0
- package/dist/i18n/locales/ar.js +5 -0
- package/dist/i18n/locales/de.d.ts +5 -0
- package/dist/i18n/locales/de.js +5 -0
- package/dist/i18n/locales/el.d.ts +5 -0
- package/dist/i18n/locales/el.js +5 -0
- package/dist/i18n/locales/en.d.ts +5 -0
- package/dist/i18n/locales/en.js +5 -0
- package/dist/i18n/locales/es.d.ts +5 -0
- package/dist/i18n/locales/es.js +5 -0
- package/dist/i18n/locales/fr.d.ts +5 -0
- package/dist/i18n/locales/fr.js +5 -0
- package/dist/i18n/locales/hi.d.ts +5 -0
- package/dist/i18n/locales/hi.js +5 -0
- package/dist/i18n/locales/it.d.ts +5 -0
- package/dist/i18n/locales/it.js +5 -0
- package/dist/i18n/locales/ja.d.ts +5 -0
- package/dist/i18n/locales/ja.js +5 -0
- package/dist/i18n/locales/nl.d.ts +5 -0
- package/dist/i18n/locales/nl.js +5 -0
- package/dist/i18n/locales/pl.d.ts +5 -0
- package/dist/i18n/locales/pl.js +5 -0
- package/dist/i18n/locales/pt.d.ts +5 -0
- package/dist/i18n/locales/pt.js +5 -0
- package/dist/i18n/locales/ro.d.ts +5 -0
- package/dist/i18n/locales/ro.js +5 -0
- package/dist/i18n/locales/ru.d.ts +5 -0
- package/dist/i18n/locales/ru.js +5 -0
- package/dist/i18n/locales/sq.d.ts +5 -0
- package/dist/i18n/locales/sq.js +5 -0
- package/dist/i18n/locales/sv.d.ts +5 -0
- package/dist/i18n/locales/sv.js +5 -0
- package/dist/i18n/locales/tr.d.ts +5 -0
- package/dist/i18n/locales/tr.js +5 -0
- package/dist/i18n/locales/zh.d.ts +5 -0
- package/dist/i18n/locales/zh.js +5 -0
- package/dist/index.js +949 -947
- package/dist/locales/ar.json +5 -0
- package/dist/locales/de.json +5 -0
- package/dist/locales/el.json +5 -0
- package/dist/locales/en.json +5 -0
- package/dist/locales/es.json +5 -0
- package/dist/locales/fr.json +5 -0
- package/dist/locales/hi.json +5 -0
- package/dist/locales/it.json +5 -0
- package/dist/locales/ja.json +5 -0
- package/dist/locales/nl.json +5 -0
- package/dist/locales/pl.json +5 -0
- package/dist/locales/pt.json +5 -0
- package/dist/locales/ro.json +5 -0
- package/dist/locales/ru.json +5 -0
- package/dist/locales/sq.json +5 -0
- package/dist/locales/sv.json +5 -0
- package/dist/locales/tr.json +5 -0
- package/dist/locales/zh.json +5 -0
- package/dist/online-bookings-panel/index.js +1 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +3 -3
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/patterns/prescription/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signing/index.js +1 -1
- package/dist/patterns/verify-identity/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +2 -2
- package/package.json +1 -1
- package/dist/_chunks/appointment-timeline-Bs-rTMzi.js +0 -689
- package/dist/_chunks/dialog-CVTxyR0v.js +0 -349
- package/dist/_chunks/timestamp-DPLDWdxA.js +0 -109
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsx as c, jsxs as b, Fragment as we } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as Ms, useId as Rt, useMemo as z, useState as R, useCallback as Me, useRef as v, useEffect as G, useImperativeHandle as Is } from "react";
|
|
3
3
|
import { c as Hs } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as
|
|
4
|
+
import { useTranslation as $s } from "react-i18next";
|
|
5
5
|
import { A as Ie } from "./alert-C4WKViaS.js";
|
|
6
|
-
import { B as
|
|
6
|
+
import { B as qs } from "./badge-BUk4RjTS.js";
|
|
7
7
|
import { B as Pe } from "./button-DohK_Ak_.js";
|
|
8
8
|
import { I as He } from "./icon-button-S8_weU3g.js";
|
|
9
|
-
import { B as Et } from "./button-group-
|
|
10
|
-
import { P as
|
|
11
|
-
import { S as Ot } from "./select-
|
|
9
|
+
import { B as Et } from "./button-group-DoKG16Fy.js";
|
|
10
|
+
import { P as Ws } from "./panel-header-CbtlTe85.js";
|
|
11
|
+
import { S as Ot } from "./select-Bw5FvGJ7.js";
|
|
12
12
|
import { S as Ks } from "./switch-DO6uC4HJ.js";
|
|
13
13
|
import { S as Vs } from "./skeleton-tTWJpvAq.js";
|
|
14
|
-
import { E as
|
|
14
|
+
import { E as $e } from "./empty-state-DwJ5YNzz.js";
|
|
15
15
|
import { T as Cs } from "./task-card-BNbkwIYM.js";
|
|
16
16
|
import { V as Gs } from "./visually-hidden-BHxEUGyT.js";
|
|
17
17
|
import { u as Us } from "./use-check-animation--I3cS00X.js";
|
|
18
18
|
import { a as Ys, u as Dt, R as At } from "./use-list-reflow-C7O4Uqnl.js";
|
|
19
|
-
import { u as Fs } from "./use-theme-
|
|
20
|
-
import { u as
|
|
19
|
+
import { u as Fs } from "./use-resolved-theme-B0f1_oyq.js";
|
|
20
|
+
import { u as qe } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
21
21
|
import { u as Qs } from "./registry-DvAUVLHh.js";
|
|
22
22
|
import { P as Xs } from "./plus-DzMQ_c6b.js";
|
|
23
23
|
import { C as Js } from "./clipboard-check-BeAGxDVT.js";
|
|
@@ -215,7 +215,7 @@ const an = [
|
|
|
215
215
|
assignee: null,
|
|
216
216
|
overdueOnly: !1
|
|
217
217
|
}, Nt = /* @__PURE__ */ new Map(), jt = /* @__PURE__ */ new Set();
|
|
218
|
-
function
|
|
218
|
+
function We(a) {
|
|
219
219
|
return a.map((o) => `${o.id}:${o.status ?? "open"}`).join("|");
|
|
220
220
|
}
|
|
221
221
|
function un(a, o) {
|
|
@@ -250,7 +250,7 @@ const vn = Hs(
|
|
|
250
250
|
variants: { size: { xs: "", sm: "", md: "" } },
|
|
251
251
|
defaultVariants: { size: "sm" }
|
|
252
252
|
}
|
|
253
|
-
),
|
|
253
|
+
), gn = [
|
|
254
254
|
"ds:flex-1 ds:min-h-0 ds:overflow-y-auto",
|
|
255
255
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
256
256
|
"ds:px-[var(--spacing-md)] ds:py-[var(--spacing-xs)]",
|
|
@@ -263,7 +263,7 @@ const vn = Hs(
|
|
|
263
263
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
264
264
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:[outline-offset:-2px]",
|
|
265
265
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
266
|
-
].join(" "),
|
|
266
|
+
].join(" "), hn = [
|
|
267
267
|
"ds:shadow-[var(--shadow-card)] ds:bg-[color:var(--card)]",
|
|
268
268
|
// Declared at rest, not only while leaving: a transition added at the
|
|
269
269
|
// same moment as the value it animates has nothing to move from.
|
|
@@ -273,8 +273,8 @@ const vn = Hs(
|
|
|
273
273
|
function kn({
|
|
274
274
|
item: a,
|
|
275
275
|
checked: o,
|
|
276
|
-
pending:
|
|
277
|
-
label:
|
|
276
|
+
pending: g,
|
|
277
|
+
label: h,
|
|
278
278
|
reduceMotion: k,
|
|
279
279
|
onToggle: u
|
|
280
280
|
}) {
|
|
@@ -287,7 +287,7 @@ function kn({
|
|
|
287
287
|
reduceMotion: k
|
|
288
288
|
}), D = v({ shown: f, checked: o, toggle: E });
|
|
289
289
|
D.current = { shown: f, checked: o, toggle: E };
|
|
290
|
-
const
|
|
290
|
+
const oe = f ? (
|
|
291
291
|
// `--accent` is magenta-700 in light, the step that clears AA there.
|
|
292
292
|
"ds:text-[color:var(--accent)]"
|
|
293
293
|
) : a.priority === "high" ? "ds:text-[color:var(--destructive)]" : "ds:text-[color:var(--muted-foreground)]";
|
|
@@ -297,12 +297,12 @@ function kn({
|
|
|
297
297
|
type: "button",
|
|
298
298
|
role: "checkbox",
|
|
299
299
|
"aria-checked": f,
|
|
300
|
-
"aria-label":
|
|
301
|
-
"aria-disabled":
|
|
300
|
+
"aria-label": h,
|
|
301
|
+
"aria-disabled": g || void 0,
|
|
302
302
|
"data-action": "toggle-done",
|
|
303
303
|
"data-drawing": y ? "" : void 0,
|
|
304
304
|
onClick: () => {
|
|
305
|
-
if (
|
|
305
|
+
if (g) return;
|
|
306
306
|
const N = !f, U = u(a, N);
|
|
307
307
|
U.started && (E(), U.result.catch(() => {
|
|
308
308
|
const S = D.current;
|
|
@@ -317,7 +317,7 @@ function kn({
|
|
|
317
317
|
"ds:[min-block-size:var(--accessible-target-floor,auto)] ds:[min-inline-size:var(--accessible-target-floor,auto)]",
|
|
318
318
|
"ds:hover:bg-[color:var(--muted)]/40 ds:aria-disabled:cursor-progress",
|
|
319
319
|
"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]",
|
|
320
|
-
|
|
320
|
+
oe
|
|
321
321
|
].join(" "),
|
|
322
322
|
children: /* @__PURE__ */ b(
|
|
323
323
|
"svg",
|
|
@@ -368,35 +368,35 @@ function Pn(a) {
|
|
|
368
368
|
return new Date(a.getFullYear(), a.getMonth(), a.getDate());
|
|
369
369
|
}
|
|
370
370
|
function Bt(a) {
|
|
371
|
-
const o = Pn(a),
|
|
372
|
-
|
|
373
|
-
const
|
|
374
|
-
|
|
371
|
+
const o = Pn(a), g = new Date(o);
|
|
372
|
+
g.setDate(o.getDate() + 1);
|
|
373
|
+
const h = new Date(o);
|
|
374
|
+
h.setDate(o.getDate() + 2);
|
|
375
375
|
const k = (o.getDay() + 6) % 7, u = new Date(o);
|
|
376
376
|
return u.setDate(o.getDate() + (7 - k)), {
|
|
377
377
|
startOfToday: +o,
|
|
378
|
-
startOfTomorrow: +
|
|
379
|
-
startOfDayAfter: +
|
|
378
|
+
startOfTomorrow: +g,
|
|
379
|
+
startOfDayAfter: +h,
|
|
380
380
|
startOfNextWeek: +u
|
|
381
381
|
};
|
|
382
382
|
}
|
|
383
|
-
function xn(a, o,
|
|
383
|
+
function xn(a, o, g) {
|
|
384
384
|
if (o) return "done";
|
|
385
|
-
const { startOfToday:
|
|
386
|
-
return y <
|
|
385
|
+
const { startOfToday: h, startOfTomorrow: k, startOfDayAfter: u, startOfNextWeek: f } = Bt(g), y = +new Date(a.dueIso);
|
|
386
|
+
return y < h ? "overdue" : y < k ? "today" : y < u ? "tomorrow" : y < f ? "thisWeek" : "later";
|
|
387
387
|
}
|
|
388
388
|
function Sn(a, o) {
|
|
389
389
|
return a.status === "done" ? !1 : +new Date(a.dueIso) < Bt(o).startOfTomorrow;
|
|
390
390
|
}
|
|
391
|
-
function Tn(a, o,
|
|
392
|
-
const
|
|
391
|
+
function Tn(a, o, g) {
|
|
392
|
+
const h = /* @__PURE__ */ new Map();
|
|
393
393
|
for (const u of a) {
|
|
394
|
-
const f = xn(u,
|
|
395
|
-
y ? y.push(u) :
|
|
394
|
+
const f = xn(u, g(u), o), y = h.get(f);
|
|
395
|
+
y ? y.push(u) : h.set(f, [u]);
|
|
396
396
|
}
|
|
397
397
|
const k = [];
|
|
398
398
|
for (const u of wn) {
|
|
399
|
-
const f =
|
|
399
|
+
const f = h.get(u);
|
|
400
400
|
!f || f.length === 0 || (f.sort((y, E) => +new Date(y.dueIso) - +new Date(E.dueIso)), k.push({ key: u, items: f }));
|
|
401
401
|
}
|
|
402
402
|
return k;
|
|
@@ -405,15 +405,15 @@ const Rn = Ms(
|
|
|
405
405
|
({
|
|
406
406
|
id: a,
|
|
407
407
|
items: o,
|
|
408
|
-
nowIso:
|
|
409
|
-
title:
|
|
408
|
+
nowIso: g,
|
|
409
|
+
title: h,
|
|
410
410
|
icon: k,
|
|
411
411
|
totalCount: u,
|
|
412
412
|
size: f = "sm",
|
|
413
413
|
filtering: y = "client",
|
|
414
414
|
onOpenTask: E,
|
|
415
415
|
onToggleDone: D,
|
|
416
|
-
onEditTask:
|
|
416
|
+
onEditTask: oe,
|
|
417
417
|
onDismissTask: N,
|
|
418
418
|
onAddTask: U,
|
|
419
419
|
readOnly: S = !1,
|
|
@@ -421,41 +421,41 @@ const Rn = Ms(
|
|
|
421
421
|
renderItemExtraActions: Te,
|
|
422
422
|
scope: Re,
|
|
423
423
|
defaultScope: Lt,
|
|
424
|
-
onScopeChange:
|
|
424
|
+
onScopeChange: ae,
|
|
425
425
|
availableScopes: B,
|
|
426
426
|
onLoadMore: H,
|
|
427
427
|
hasMore: Ee,
|
|
428
428
|
loadingMore: Y = !1,
|
|
429
429
|
loading: w = !1,
|
|
430
430
|
error: P = !1,
|
|
431
|
-
onRetry:
|
|
431
|
+
onRetry: ie,
|
|
432
432
|
showFilters: Mt = !0,
|
|
433
433
|
defaultFilters: It,
|
|
434
434
|
onFiltersChange: L,
|
|
435
435
|
statusFilter: Ve,
|
|
436
436
|
defaultStatusFilter: Ht,
|
|
437
|
-
onStatusFilterChange:
|
|
438
|
-
typeOptions:
|
|
437
|
+
onStatusFilterChange: ce,
|
|
438
|
+
typeOptions: de,
|
|
439
439
|
typeFilter: Oe,
|
|
440
|
-
onTypeFilterChange:
|
|
441
|
-
assigneeOptions:
|
|
440
|
+
onTypeFilterChange: le,
|
|
441
|
+
assigneeOptions: ue,
|
|
442
442
|
assigneeFilter: De,
|
|
443
|
-
onAssigneeFilterChange:
|
|
443
|
+
onAssigneeFilterChange: fe,
|
|
444
444
|
overdueOnly: Ce,
|
|
445
|
-
defaultOverdueOnly:
|
|
446
|
-
onOverdueOnlyChange:
|
|
447
|
-
emptyTitle:
|
|
448
|
-
emptyDescription:
|
|
445
|
+
defaultOverdueOnly: $t,
|
|
446
|
+
onOverdueOnlyChange: pe,
|
|
447
|
+
emptyTitle: qt,
|
|
448
|
+
emptyDescription: Wt,
|
|
449
449
|
emptyAction: Kt,
|
|
450
450
|
className: Vt,
|
|
451
451
|
"aria-label": Ge,
|
|
452
452
|
...Ct
|
|
453
453
|
}, Gt) => {
|
|
454
|
-
const { t: d, i18n: Ue } =
|
|
455
|
-
status: !p || !!L || !!
|
|
456
|
-
type: !p || !!L || !!
|
|
457
|
-
assignee: !p || !!L || !!
|
|
458
|
-
overdueOnly: !p || !!L || !!
|
|
454
|
+
const { t: d, i18n: Ue } = $s("ui"), Ye = Rt(), Ut = Rt(), Ne = h ?? d("tasksPanel.title"), p = y === "server", $ = {
|
|
455
|
+
status: !p || !!L || !!ce,
|
|
456
|
+
type: !p || !!L || !!le,
|
|
457
|
+
assignee: !p || !!L || !!fe,
|
|
458
|
+
overdueOnly: !p || !!L || !!pe
|
|
459
459
|
}, Yt = {
|
|
460
460
|
todo: d("tasksPanel.status.todo"),
|
|
461
461
|
done: d("tasksPanel.status.done"),
|
|
@@ -475,9 +475,9 @@ const Rn = Ms(
|
|
|
475
475
|
payment: d("tasksPanel.types.payment"),
|
|
476
476
|
collection: d("tasksPanel.types.collection"),
|
|
477
477
|
other: d("tasksPanel.types.other")
|
|
478
|
-
},
|
|
479
|
-
() =>
|
|
480
|
-
[
|
|
478
|
+
}, me = z(
|
|
479
|
+
() => g ? new Date(g) : /* @__PURE__ */ new Date(),
|
|
480
|
+
[g]
|
|
481
481
|
), Fe = z(
|
|
482
482
|
() => pn(Ue.language),
|
|
483
483
|
[Ue.language]
|
|
@@ -485,38 +485,38 @@ const Rn = Ms(
|
|
|
485
485
|
Lt ?? (B == null ? void 0 : B[0]) ?? "patient"
|
|
486
486
|
), es = Re ?? Jt, Xe = Me(
|
|
487
487
|
(e) => {
|
|
488
|
-
Re === void 0 && Zt(e),
|
|
488
|
+
Re === void 0 && Zt(e), ae == null || ae(e);
|
|
489
489
|
},
|
|
490
|
-
[Re,
|
|
490
|
+
[Re, ae]
|
|
491
491
|
), j = It ?? ln, [ts, ss] = R(
|
|
492
492
|
Ht ?? j.status
|
|
493
493
|
), [ns, rs] = R(j.type), [os, as] = R(
|
|
494
494
|
j.assignee
|
|
495
495
|
), [is, cs] = R(
|
|
496
|
-
|
|
497
|
-
), O = Ve ?? ts, M = Oe !== void 0 ? Oe : ns, I = De !== void 0 ? De : os,
|
|
496
|
+
$t ?? j.overdueOnly
|
|
497
|
+
), O = Ve ?? ts, M = Oe !== void 0 ? Oe : ns, I = De !== void 0 ? De : os, q = Ce ?? is, Je = p ? q && O !== "done" : q, ve = v({
|
|
498
498
|
status: O,
|
|
499
499
|
type: M,
|
|
500
500
|
assignee: I,
|
|
501
|
-
overdueOnly:
|
|
501
|
+
overdueOnly: q
|
|
502
502
|
});
|
|
503
|
-
|
|
503
|
+
ve.current = {
|
|
504
504
|
status: O,
|
|
505
505
|
type: M,
|
|
506
506
|
assignee: I,
|
|
507
|
-
overdueOnly:
|
|
507
|
+
overdueOnly: q
|
|
508
508
|
};
|
|
509
|
-
const
|
|
509
|
+
const W = (e) => {
|
|
510
510
|
const t = Object.fromEntries(
|
|
511
511
|
Object.entries(e).filter(
|
|
512
|
-
([l]) =>
|
|
512
|
+
([l]) => $[l]
|
|
513
513
|
)
|
|
514
514
|
);
|
|
515
515
|
if (Object.keys(e).length > 0 && Object.keys(t).length === 0)
|
|
516
516
|
return;
|
|
517
|
-
const s =
|
|
518
|
-
r !== s && i.add("overdueOnly"), p && n.status === "done" && n.overdueOnly && (t.status !== void 0 ? (n.overdueOnly = !1, i.add("overdueOnly")) : (n.status = j.status === "done" ? "todo" : j.status, i.add("status"))),
|
|
519
|
-
}, ds = () =>
|
|
517
|
+
const s = ve.current, r = p && s.status === "done" && s.overdueOnly ? { ...s, overdueOnly: !1 } : s, n = { ...r, ...t }, i = new Set(Object.keys(t));
|
|
518
|
+
r !== s && i.add("overdueOnly"), p && n.status === "done" && n.overdueOnly && (t.status !== void 0 ? (n.overdueOnly = !1, i.add("overdueOnly")) : (n.status = j.status === "done" ? "todo" : j.status, i.add("status"))), ve.current = n, Ve === void 0 && ss(n.status), Oe === void 0 && rs(n.type), De === void 0 && as(n.assignee), Ce === void 0 && cs(n.overdueOnly), i.has("status") && (ce == null || ce(n.status)), i.has("type") && (le == null || le(n.type)), i.has("assignee") && (fe == null || fe(n.assignee)), i.has("overdueOnly") && (pe == null || pe(n.overdueOnly)), un(s, n) || L == null || L(n);
|
|
519
|
+
}, ds = () => W({ ...j }), [F, ls] = R(Nt), T = v(Nt), [Ze, us] = R(jt), Q = v(jt), X = v(!0), je = v(/* @__PURE__ */ new Set());
|
|
520
520
|
G(() => {
|
|
521
521
|
X.current = !0;
|
|
522
522
|
const e = je.current;
|
|
@@ -534,7 +534,7 @@ const Rn = Ms(
|
|
|
534
534
|
e(t), Q.current = t, us(t);
|
|
535
535
|
}, K = z(() => p ? o.filter((e) => !Ze.has(e.id)) : o.filter((e) => {
|
|
536
536
|
const t = e.status === "done";
|
|
537
|
-
return !(O === "todo" && t || O === "done" && !t || M && e.type !== M || I && (e.assignee ?? "") !== I ||
|
|
537
|
+
return !(O === "todo" && t || O === "done" && !t || M && e.type !== M || I && (e.assignee ?? "") !== I || q && !Sn(e, me));
|
|
538
538
|
}), [
|
|
539
539
|
p,
|
|
540
540
|
Ze,
|
|
@@ -542,27 +542,27 @@ const Rn = Ms(
|
|
|
542
542
|
O,
|
|
543
543
|
M,
|
|
544
544
|
I,
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
]),
|
|
545
|
+
q,
|
|
546
|
+
me
|
|
547
|
+
]), ge = z(() => Tn(K, me, (t) => {
|
|
548
548
|
if (p) {
|
|
549
549
|
const s = F.get(t.id);
|
|
550
550
|
if ((s == null ? void 0 : s.kind) === "done" && s.next !== void 0 && !s.leaves)
|
|
551
551
|
return s.next;
|
|
552
552
|
}
|
|
553
553
|
return t.status === "done";
|
|
554
|
-
}), [K,
|
|
555
|
-
() =>
|
|
556
|
-
[
|
|
554
|
+
}), [K, me, p, F]), _e = z(
|
|
555
|
+
() => ge.flatMap((e) => e.items.map((t) => t.id)),
|
|
556
|
+
[ge]
|
|
557
557
|
), J = v(null), et = v(null), [fs, ps] = R(!1), [ms, vs] = R(!1), Z = Me(() => {
|
|
558
558
|
const e = J.current;
|
|
559
559
|
if (!e) return;
|
|
560
560
|
const { scrollTop: t, scrollHeight: s, clientHeight: r } = e;
|
|
561
561
|
ps(t > 1), vs(t + r < s - 1);
|
|
562
562
|
}, []);
|
|
563
|
-
|
|
563
|
+
qe(() => {
|
|
564
564
|
Z();
|
|
565
|
-
}, [
|
|
565
|
+
}, [ge, Z]), qe(() => {
|
|
566
566
|
const e = J.current;
|
|
567
567
|
if (!e || typeof ResizeObserver > "u") return;
|
|
568
568
|
const t = new ResizeObserver(Z);
|
|
@@ -570,7 +570,7 @@ const Rn = Ms(
|
|
|
570
570
|
}, [Z]);
|
|
571
571
|
const tt = p ? Ee === !0 : Ee ?? !!H, _ = v(o);
|
|
572
572
|
_.current = o;
|
|
573
|
-
const
|
|
573
|
+
const gs = z(() => We(o), [o]), he = z(
|
|
574
574
|
() => o.map((e) => e.id).join("|"),
|
|
575
575
|
[o]
|
|
576
576
|
), st = v(he);
|
|
@@ -579,28 +579,28 @@ const Rn = Ms(
|
|
|
579
579
|
G(() => {
|
|
580
580
|
nt.current && !w && !P && (ee.current += 1), nt.current = w;
|
|
581
581
|
}, [w, P]);
|
|
582
|
-
const
|
|
583
|
-
|
|
582
|
+
const ye = v(!0), rt = v(""), ot = v(0), ze = () => {
|
|
583
|
+
ye.current = !1, rt.current = st.current, ot.current = ee.current, H == null || H();
|
|
584
584
|
};
|
|
585
585
|
G(() => {
|
|
586
|
-
|
|
586
|
+
ye.current || (he !== rt.current || ee.current > ot.current) && (ye.current = !0);
|
|
587
587
|
}, [he, w, P]);
|
|
588
|
-
const
|
|
588
|
+
const hs = () => {
|
|
589
589
|
Z();
|
|
590
590
|
const e = J.current;
|
|
591
591
|
if (!e) return;
|
|
592
592
|
const { scrollTop: t, scrollHeight: s, clientHeight: r } = e;
|
|
593
|
-
H && tt && !w && !Y &&
|
|
594
|
-
}, {
|
|
593
|
+
H && tt && !w && !Y && ye.current && s - t - r <= dn && ze();
|
|
594
|
+
}, te = v(null), { isAccessible: ys } = Fs(te), ke = ys || void 0, { containerRef: ks } = Ys({
|
|
595
595
|
key: _e.join(),
|
|
596
|
-
reduceMotion:
|
|
597
|
-
}),
|
|
598
|
-
const { status: t, overdueOnly: s } =
|
|
596
|
+
reduceMotion: ke
|
|
597
|
+
}), se = Dt({ delayMs: 200, reduceMotion: ke }), ne = Dt({ reduceMotion: ke }), Be = (e) => se.isLeaving(e) || ne.isLeaving(e), bs = (e) => {
|
|
598
|
+
const { status: t, overdueOnly: s } = ve.current;
|
|
599
599
|
return t === "todo" && e || t === "done" && !e || (p ? s && t !== "done" : s) && e;
|
|
600
600
|
}, at = (e) => {
|
|
601
|
-
T.current.has(e) && A((t) => t.delete(e)), Q.current.has(e) && Ae((t) => t.delete(e)),
|
|
601
|
+
T.current.has(e) && A((t) => t.delete(e)), Q.current.has(e) && Ae((t) => t.delete(e)), se.cancel(e), ne.cancel(e);
|
|
602
602
|
}, it = () => {
|
|
603
|
-
const e = _.current, t =
|
|
603
|
+
const e = _.current, t = We(e), s = new Map(e.map((i) => [i.id, i])), r = [], n = [];
|
|
604
604
|
T.current.forEach((i, l) => {
|
|
605
605
|
const m = s.get(l);
|
|
606
606
|
if (!m) {
|
|
@@ -611,7 +611,7 @@ const Rn = Ms(
|
|
|
611
611
|
const Bs = i.kind === "done" && m.status === "done" === i.next, Ls = ee.current > i.edgeAtSettle || t !== i.sigAtSettle;
|
|
612
612
|
(Bs || Ls) && (r.push(l), n.push(l));
|
|
613
613
|
}), r.length !== 0 && (A((i) => r.forEach((l) => i.delete(l))), r.some((i) => Q.current.has(i)) && Ae((i) => r.forEach((l) => i.delete(l))), n.forEach((i) => {
|
|
614
|
-
|
|
614
|
+
se.cancel(i), ne.cancel(i);
|
|
615
615
|
}));
|
|
616
616
|
}, ws = (e) => {
|
|
617
617
|
const t = T.current.get(e);
|
|
@@ -620,13 +620,13 @@ const Rn = Ms(
|
|
|
620
620
|
...t,
|
|
621
621
|
settled: !0,
|
|
622
622
|
edgeAtSettle: ee.current,
|
|
623
|
-
sigAtSettle:
|
|
623
|
+
sigAtSettle: We(_.current)
|
|
624
624
|
})
|
|
625
625
|
), it());
|
|
626
626
|
};
|
|
627
627
|
G(() => {
|
|
628
628
|
p && it();
|
|
629
|
-
}, [p,
|
|
629
|
+
}, [p, gs, w, P]);
|
|
630
630
|
const ct = (e, t, s, r) => {
|
|
631
631
|
const n = e.id;
|
|
632
632
|
A((m) => m.set(n, t));
|
|
@@ -651,7 +651,7 @@ const Rn = Ms(
|
|
|
651
651
|
}, V = (e) => ({
|
|
652
652
|
started: !1,
|
|
653
653
|
result: xe(new Error(`TasksPanel: ${e}`))
|
|
654
|
-
}),
|
|
654
|
+
}), re = (e) => {
|
|
655
655
|
X.current && T.current.has(e) && A((t) => t.delete(e));
|
|
656
656
|
}, dt = (e, t, s) => {
|
|
657
657
|
let r, n;
|
|
@@ -665,15 +665,15 @@ const Rn = Ms(
|
|
|
665
665
|
try {
|
|
666
666
|
l = s();
|
|
667
667
|
} catch (m) {
|
|
668
|
-
|
|
668
|
+
re(e), n(m);
|
|
669
669
|
return;
|
|
670
670
|
}
|
|
671
671
|
Promise.resolve(l).then(
|
|
672
672
|
() => {
|
|
673
|
-
|
|
673
|
+
re(e), r();
|
|
674
674
|
},
|
|
675
675
|
(m) => {
|
|
676
|
-
|
|
676
|
+
re(e), n(m);
|
|
677
677
|
}
|
|
678
678
|
);
|
|
679
679
|
}), i;
|
|
@@ -696,7 +696,7 @@ const Rn = Ms(
|
|
|
696
696
|
sigAtSettle: ""
|
|
697
697
|
},
|
|
698
698
|
() => D(e, r),
|
|
699
|
-
|
|
699
|
+
se
|
|
700
700
|
);
|
|
701
701
|
if (!n) {
|
|
702
702
|
let i;
|
|
@@ -714,8 +714,8 @@ const Rn = Ms(
|
|
|
714
714
|
sigAtSettle: ""
|
|
715
715
|
})
|
|
716
716
|
), i.then(
|
|
717
|
-
() =>
|
|
718
|
-
() =>
|
|
717
|
+
() => re(s),
|
|
718
|
+
() => re(s)
|
|
719
719
|
)), { started: !0, result: mn(i) };
|
|
720
720
|
}
|
|
721
721
|
return A(
|
|
@@ -729,7 +729,7 @@ const Rn = Ms(
|
|
|
729
729
|
})
|
|
730
730
|
), {
|
|
731
731
|
started: !0,
|
|
732
|
-
result: dt(s,
|
|
732
|
+
result: dt(s, se, () => D(e, r))
|
|
733
733
|
};
|
|
734
734
|
}, ut = (e) => {
|
|
735
735
|
if (S) return V("the panel is read-only.");
|
|
@@ -748,10 +748,10 @@ const Rn = Ms(
|
|
|
748
748
|
e,
|
|
749
749
|
s,
|
|
750
750
|
() => N(e),
|
|
751
|
-
|
|
751
|
+
ne
|
|
752
752
|
) : (A((r) => r.set(t, s)), {
|
|
753
753
|
started: !0,
|
|
754
|
-
result: dt(t,
|
|
754
|
+
result: dt(t, ne, () => N(e))
|
|
755
755
|
});
|
|
756
756
|
}, ft = Me(() => {
|
|
757
757
|
const e = J.current, t = et.current;
|
|
@@ -761,11 +761,11 @@ const Rn = Ms(
|
|
|
761
761
|
}
|
|
762
762
|
const s = t.getBoundingClientRect().top - e.getBoundingClientRect().top;
|
|
763
763
|
e.scrollTo({ top: e.scrollTop + s });
|
|
764
|
-
}, [])
|
|
765
|
-
Is(Gt, () =>
|
|
764
|
+
}, []);
|
|
765
|
+
Is(Gt, () => te.current, []);
|
|
766
766
|
const C = v(null), be = v(_e);
|
|
767
767
|
be.current = _e, G(() => {
|
|
768
|
-
const e =
|
|
768
|
+
const e = te.current;
|
|
769
769
|
if (!e) return;
|
|
770
770
|
const t = (r) => {
|
|
771
771
|
var l, m;
|
|
@@ -793,8 +793,8 @@ const Rn = Ms(
|
|
|
793
793
|
return e.addEventListener("focusin", t), e.addEventListener("focusout", s), () => {
|
|
794
794
|
e.removeEventListener("focusin", t), e.removeEventListener("focusout", s);
|
|
795
795
|
};
|
|
796
|
-
}, []),
|
|
797
|
-
const e = C.current, t =
|
|
796
|
+
}, []), qe(() => {
|
|
797
|
+
const e = C.current, t = te.current;
|
|
798
798
|
if (!e || !t) return;
|
|
799
799
|
if (e.el.isConnected) {
|
|
800
800
|
e.rowId && (e.index = be.current.indexOf(e.rowId));
|
|
@@ -817,7 +817,7 @@ const Rn = Ms(
|
|
|
817
817
|
onOpenTask: E,
|
|
818
818
|
loadMore: ze,
|
|
819
819
|
changeScope: Xe,
|
|
820
|
-
commitFilters:
|
|
820
|
+
commitFilters: W,
|
|
821
821
|
serverMode: p
|
|
822
822
|
};
|
|
823
823
|
const Ps = z(() => {
|
|
@@ -857,7 +857,7 @@ const Rn = Ms(
|
|
|
857
857
|
if (!e.type) return null;
|
|
858
858
|
const t = bn[e.type], s = (t == null ? void 0 : t.variant) ?? "neutral", r = (t == null ? void 0 : t.Icon) ?? _t, n = e.typeLabel || Xt[e.type] || d("tasksPanel.types.other");
|
|
859
859
|
return /* @__PURE__ */ c(
|
|
860
|
-
|
|
860
|
+
qs,
|
|
861
861
|
{
|
|
862
862
|
variant: s,
|
|
863
863
|
size: "sm",
|
|
@@ -866,7 +866,7 @@ const Rn = Ms(
|
|
|
866
866
|
}
|
|
867
867
|
);
|
|
868
868
|
}, Ss = (e) => S ? null : /* @__PURE__ */ b(we, { children: [
|
|
869
|
-
|
|
869
|
+
oe ? /* @__PURE__ */ c(
|
|
870
870
|
He,
|
|
871
871
|
{
|
|
872
872
|
icon: /* @__PURE__ */ c(Zs, {}),
|
|
@@ -874,7 +874,7 @@ const Rn = Ms(
|
|
|
874
874
|
size: "sm",
|
|
875
875
|
"aria-label": d("tasksPanel.edit"),
|
|
876
876
|
"data-action": "edit-task",
|
|
877
|
-
onClick: () =>
|
|
877
|
+
onClick: () => oe(e)
|
|
878
878
|
}
|
|
879
879
|
) : null,
|
|
880
880
|
N ? /* @__PURE__ */ c(
|
|
@@ -907,25 +907,25 @@ const Rn = Ms(
|
|
|
907
907
|
},
|
|
908
908
|
e
|
|
909
909
|
), vt = /* @__PURE__ */ c("div", { className: "ds:flex-1 ds:min-h-0 ds:p-[var(--spacing-md)]", children: typeof P == "boolean" ? /* @__PURE__ */ c(
|
|
910
|
-
|
|
910
|
+
$e,
|
|
911
911
|
{
|
|
912
912
|
variant: "error",
|
|
913
913
|
size: "sm",
|
|
914
914
|
title: d("tasksPanel.error.title"),
|
|
915
915
|
description: d("tasksPanel.error.description"),
|
|
916
|
-
primaryAction:
|
|
916
|
+
primaryAction: ie ? { label: d("emptyState.error.cta"), onClick: ie } : void 0
|
|
917
917
|
}
|
|
918
|
-
) : P }), Le = /* @__PURE__ */ c("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) => mt(`skeleton-${e}`)) }),
|
|
919
|
-
|
|
918
|
+
) : P }), Le = /* @__PURE__ */ c("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) => mt(`skeleton-${e}`)) }), gt = /* @__PURE__ */ c("div", { className: "ds:flex-1 ds:min-h-0 ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ c(
|
|
919
|
+
$e,
|
|
920
920
|
{
|
|
921
921
|
variant: "first-use",
|
|
922
922
|
size: "sm",
|
|
923
|
-
title:
|
|
924
|
-
description:
|
|
923
|
+
title: qt ?? d("tasksPanel.empty.title"),
|
|
924
|
+
description: Wt ?? d("tasksPanel.empty.description"),
|
|
925
925
|
primaryAction: Kt
|
|
926
926
|
}
|
|
927
|
-
) }), Es = Object.values(
|
|
928
|
-
|
|
927
|
+
) }), Es = Object.values($).some(Boolean), ht = /* @__PURE__ */ c("div", { className: "ds:flex-1 ds:min-h-0 ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ c(
|
|
928
|
+
$e,
|
|
929
929
|
{
|
|
930
930
|
variant: "no-results",
|
|
931
931
|
size: "sm",
|
|
@@ -938,7 +938,7 @@ const Rn = Ms(
|
|
|
938
938
|
}
|
|
939
939
|
) }), Os = p && P ? /* @__PURE__ */ c("div", { className: "ds:shrink-0 ds:px-[var(--spacing-md)] ds:pt-[var(--spacing-xs)]", children: typeof P == "boolean" ? /* @__PURE__ */ b(Ie, { variant: "error", children: [
|
|
940
940
|
/* @__PURE__ */ c(Ie.Title, { as: "p", children: d("tasksPanel.error.title") }),
|
|
941
|
-
|
|
941
|
+
ie ? /* @__PURE__ */ c(Ie.Action, { children: /* @__PURE__ */ c(Pe, { intent: "outline", size: "sm", onClick: ie, children: d("emptyState.error.cta") }) }) : null
|
|
942
942
|
] }) : P }) : null, yt = /* @__PURE__ */ b(we, { children: [
|
|
943
943
|
Os,
|
|
944
944
|
/* @__PURE__ */ b(
|
|
@@ -948,18 +948,18 @@ const Rn = Ms(
|
|
|
948
948
|
J.current = e, ks.current = e;
|
|
949
949
|
},
|
|
950
950
|
tabIndex: 0,
|
|
951
|
-
onScroll:
|
|
951
|
+
onScroll: hs,
|
|
952
952
|
"data-tasks-panel-region": "",
|
|
953
953
|
"data-fade-top": fs ? "true" : void 0,
|
|
954
954
|
"data-fade-bottom": ms ? "true" : void 0,
|
|
955
|
-
className:
|
|
955
|
+
className: gn,
|
|
956
956
|
children: [
|
|
957
957
|
/* @__PURE__ */ c(
|
|
958
958
|
"ol",
|
|
959
959
|
{
|
|
960
960
|
"aria-busy": w || void 0,
|
|
961
961
|
className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-md)] ds:p-0",
|
|
962
|
-
children:
|
|
962
|
+
children: ge.map((e) => /* @__PURE__ */ b(
|
|
963
963
|
"li",
|
|
964
964
|
{
|
|
965
965
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
|
|
@@ -994,11 +994,11 @@ const Rn = Ms(
|
|
|
994
994
|
label: d("tasksPanel.doneItem", {
|
|
995
995
|
title: t.title
|
|
996
996
|
}),
|
|
997
|
-
reduceMotion:
|
|
997
|
+
reduceMotion: ke,
|
|
998
998
|
onToggle: Rs
|
|
999
999
|
}
|
|
1000
1000
|
) : void 0,
|
|
1001
|
-
className: `${
|
|
1001
|
+
className: `${hn} ${At}${Be(t.id) ? ` ${zt}` : ""}`,
|
|
1002
1002
|
"data-leaving": Be(t.id) ? "" : void 0,
|
|
1003
1003
|
"data-reflow-id": t.id,
|
|
1004
1004
|
"data-task-id": t.id
|
|
@@ -1041,8 +1041,8 @@ const Rn = Ms(
|
|
|
1041
1041
|
},
|
|
1042
1042
|
j
|
|
1043
1043
|
);
|
|
1044
|
-
P && K.length === 0 ? x = vt : K.length === 0 && (w || e) ? x = Le : K.length === 0 ? x = t ?
|
|
1045
|
-
} else P ? x = vt : w ? x = Le : o.length === 0 ? x =
|
|
1044
|
+
P && K.length === 0 ? x = vt : K.length === 0 && (w || e) ? x = Le : K.length === 0 ? x = t ? ht : gt : x = yt;
|
|
1045
|
+
} else P ? x = vt : w ? x = Le : o.length === 0 ? x = gt : K.length === 0 ? x = ht : x = yt;
|
|
1046
1046
|
const kt = x === Le, [Ds, Ns] = R(!1);
|
|
1047
1047
|
G(() => {
|
|
1048
1048
|
Ns(kt);
|
|
@@ -1069,7 +1069,7 @@ const Rn = Ms(
|
|
|
1069
1069
|
"data-action": "add-task",
|
|
1070
1070
|
onClick: U
|
|
1071
1071
|
}
|
|
1072
|
-
) : void 0, wt =
|
|
1072
|
+
) : void 0, wt = $.status, Pt = !!(de != null && de.length) && $.type, xt = !!(ue != null && ue.length) && $.assignee, St = $.overdueOnly, Tt = Mt && (wt || Pt || xt || St), zs = bt || Tt ? /* @__PURE__ */ b("div", { className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1073
1073
|
bt ? /* @__PURE__ */ c(Et, { label: d("tasksPanel.scope.label"), children: B.map((e) => {
|
|
1074
1074
|
const t = es === e;
|
|
1075
1075
|
return /* @__PURE__ */ c(
|
|
@@ -1094,7 +1094,7 @@ const Rn = Ms(
|
|
|
1094
1094
|
size: "sm",
|
|
1095
1095
|
"aria-pressed": t,
|
|
1096
1096
|
"data-status-filter": e,
|
|
1097
|
-
onClick: () =>
|
|
1097
|
+
onClick: () => W({ status: e }),
|
|
1098
1098
|
children: Yt[e]
|
|
1099
1099
|
},
|
|
1100
1100
|
e
|
|
@@ -1107,9 +1107,9 @@ const Rn = Ms(
|
|
|
1107
1107
|
clearable: !0,
|
|
1108
1108
|
"aria-label": d("tasksPanel.type.label"),
|
|
1109
1109
|
placeholder: d("tasksPanel.type.placeholder"),
|
|
1110
|
-
options:
|
|
1110
|
+
options: de,
|
|
1111
1111
|
value: M ?? "",
|
|
1112
|
-
onValueChange: (e) =>
|
|
1112
|
+
onValueChange: (e) => W({ type: e || null })
|
|
1113
1113
|
}
|
|
1114
1114
|
) : null,
|
|
1115
1115
|
xt ? /* @__PURE__ */ c(
|
|
@@ -1119,9 +1119,9 @@ const Rn = Ms(
|
|
|
1119
1119
|
clearable: !0,
|
|
1120
1120
|
"aria-label": d("tasksPanel.assignee.label"),
|
|
1121
1121
|
placeholder: d("tasksPanel.assignee.placeholder"),
|
|
1122
|
-
options:
|
|
1122
|
+
options: ue,
|
|
1123
1123
|
value: I ?? "",
|
|
1124
|
-
onValueChange: (e) =>
|
|
1124
|
+
onValueChange: (e) => W({ assignee: e || null })
|
|
1125
1125
|
}
|
|
1126
1126
|
) : null,
|
|
1127
1127
|
St ? /* @__PURE__ */ c(
|
|
@@ -1132,7 +1132,7 @@ const Rn = Ms(
|
|
|
1132
1132
|
label: d("tasksPanel.overdueOnly"),
|
|
1133
1133
|
checked: Je,
|
|
1134
1134
|
disabled: p && O === "done",
|
|
1135
|
-
onCheckedChange: (e) =>
|
|
1135
|
+
onCheckedChange: (e) => W({ overdueOnly: e })
|
|
1136
1136
|
}
|
|
1137
1137
|
) : null
|
|
1138
1138
|
] }) : null
|
|
@@ -1140,7 +1140,7 @@ const Rn = Ms(
|
|
|
1140
1140
|
return /* @__PURE__ */ b(
|
|
1141
1141
|
"section",
|
|
1142
1142
|
{
|
|
1143
|
-
ref:
|
|
1143
|
+
ref: te,
|
|
1144
1144
|
"data-component": "tasks-panel",
|
|
1145
1145
|
"data-component-id": a,
|
|
1146
1146
|
"aria-labelledby": Ge ? void 0 : Ye,
|
|
@@ -1149,7 +1149,7 @@ const Rn = Ms(
|
|
|
1149
1149
|
...Ct,
|
|
1150
1150
|
children: [
|
|
1151
1151
|
/* @__PURE__ */ c(
|
|
1152
|
-
|
|
1152
|
+
Ws,
|
|
1153
1153
|
{
|
|
1154
1154
|
title: js,
|
|
1155
1155
|
titleTooltip: u === void 0 ? void 0 : d("tasksPanel.titleWithCount", {
|
|
@@ -1173,8 +1173,8 @@ Rn.displayName = "TasksPanel";
|
|
|
1173
1173
|
function En({
|
|
1174
1174
|
bucketKey: a,
|
|
1175
1175
|
countLabel: o,
|
|
1176
|
-
showCount:
|
|
1177
|
-
label:
|
|
1176
|
+
showCount: g = !0,
|
|
1177
|
+
label: h,
|
|
1178
1178
|
headerRef: k,
|
|
1179
1179
|
reflowId: u,
|
|
1180
1180
|
leaving: f = !1
|
|
@@ -1206,8 +1206,8 @@ function En({
|
|
|
1206
1206
|
className: "ds:size-1.5 ds:shrink-0 ds:rounded-[var(--radius-full)] ds:bg-[color:var(--primary)]"
|
|
1207
1207
|
}
|
|
1208
1208
|
) : null,
|
|
1209
|
-
|
|
1210
|
-
|
|
1209
|
+
h,
|
|
1210
|
+
g ? /* @__PURE__ */ c(
|
|
1211
1211
|
"span",
|
|
1212
1212
|
{
|
|
1213
1213
|
"data-bucket-count": "",
|
|
@@ -1223,4 +1223,4 @@ export {
|
|
|
1223
1223
|
Rn as T,
|
|
1224
1224
|
cn as t
|
|
1225
1225
|
};
|
|
1226
|
-
//# sourceMappingURL=tasks-panel-
|
|
1226
|
+
//# sourceMappingURL=tasks-panel-CDFHAHrN.js.map
|