@alfadocs/ui-kit 1.35.0 → 1.36.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-yy03OgRL.js → actions-cell-renderer-CUn1pqEq.js} +3 -3
- package/dist/_chunks/{agenda-card-DVz3jwTf.js → agenda-card-DyQtHb9z.js} +2 -2
- package/dist/_chunks/{agenda-tray-1oDWCJdB.js → agenda-tray-DYGCTIWB.js} +3 -3
- package/dist/_chunks/{ai-consent-banner-OggpS5hW.js → ai-consent-banner-De4gzSBZ.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-Dt7tpCBh.js → ai-prompt-input-DdxlaI7q.js} +2 -2
- package/dist/_chunks/{alert-CiJT540z.js → alert-CiQ5Pa3Q.js} +2 -2
- package/dist/_chunks/{alia-sidebar-D18kp3p9.js → alia-sidebar-B6bXlZZk.js} +6 -6
- package/dist/_chunks/{anamnesis-card-NTi4LLzI.js → anamnesis-card-DGwINeNn.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-card-DGVKBQoq.js → anamnesis-summary-card-GYHa7VGp.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-rows-BYgyp_i2.js → anamnesis-summary-rows-Cxtgo2ok.js} +12 -12
- package/dist/_chunks/{antenatal-schedule-timeline-sXfIp5lp.js → antenatal-schedule-timeline-CXk_tzWG.js} +2 -2
- package/dist/_chunks/{appointment-card-Bh_CIlc6.js → appointment-card-WsDGBBut.js} +120 -126
- package/dist/_chunks/{appointment-timeline-De-Wqdkw.js → appointment-timeline-ByfovxqR.js} +5 -5
- package/dist/_chunks/{appointment-tray-4I9wTAi4.js → appointment-tray-D6UyJHej.js} +3 -3
- package/dist/_chunks/arrow-right-KsIrLdt0.js +15 -0
- package/dist/_chunks/{audio-recorder-11wClczr.js → audio-recorder-BlQBC7N_.js} +3 -3
- package/dist/_chunks/{badge-sTusUqZD.js → badge-BudgzTe_.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DhBtFRoW.js → balance-badge-cell-B0Z8Dwn8.js} +6 -6
- package/dist/_chunks/{bishop-score-CAl7C5hm.js → bishop-score-D5b8tktp.js} +2 -2
- package/dist/_chunks/{bmi-calculator-Dwkih9a4.js → bmi-calculator-dOKP-vW4.js} +4 -4
- package/dist/_chunks/{booking-BqkEtsKx.js → booking-Dp-9qR6F.js} +9 -9
- package/dist/_chunks/button-group-QmN1VdUW.js +307 -0
- package/dist/_chunks/{calendar-Dgvl5L4T.js → calendar-7GAUlsNO.js} +3 -3
- package/dist/_chunks/{calendar-event-card-DSh-69HT.js → calendar-event-card-DKUnT9Be.js} +91 -134
- package/dist/_chunks/{calendar-workspace-UywR5gUl.js → calendar-workspace-Duv_5B4j.js} +2494 -2415
- package/dist/_chunks/{care-plan-card-DHVhBcvs.js → care-plan-card-COFOI-fI.js} +5 -5
- package/dist/_chunks/{care-plan-entry-card-Dx6IdTcR.js → care-plan-entry-card-BOKn0KW-.js} +6 -6
- package/dist/_chunks/{care-plan-header-UTX5ZD74.js → care-plan-header-CbuOuVBw.js} +4 -4
- package/dist/_chunks/{carousel.agent-CLxdHEBP.js → carousel.agent-Dv4a4M8L.js} +2 -2
- package/dist/_chunks/{chart-C6eHTxkO.js → chart-iWl76PXv.js} +3 -3
- package/dist/_chunks/{chat-input-BsB5Umpj.js → chat-input-qM5QpUSq.js} +2 -2
- package/dist/_chunks/{chat-message-C-8UU2av.js → chat-message-RniXtrCH.js} +2 -2
- package/dist/_chunks/{checkbox-BuZ1u__2.js → checkbox-CZkipDn7.js} +2 -2
- package/dist/_chunks/{checkbox-group-CfqMv57d.js → checkbox-group-DomUzpkF.js} +2 -2
- package/dist/_chunks/clinical-note-card-DdsGYMmI.js +325 -0
- package/dist/_chunks/{code-block-BIkpRLkl.js → code-block-uVjNSI9g.js} +2 -2
- package/dist/_chunks/{connection-status-DRZIcMqM.js → connection-status-OEsWjmRk.js} +3 -3
- package/dist/_chunks/{contact-profile-card-DSI9uumA.js → contact-profile-card--My1H2UD.js} +3 -3
- package/dist/_chunks/{control-room-rail-5MbhjsxN.js → control-room-rail-Ds45_g4f.js} +4 -4
- package/dist/_chunks/{counter-dRlTNC_y.js → counter-WsvRuum1.js} +50 -15
- package/dist/_chunks/{cycle-calculator-DVgxBfP0.js → cycle-calculator-BJeaXiZv.js} +3 -3
- package/dist/_chunks/{dashboard-grid-BFtdHqfn.js → dashboard-grid-B23BFzRl.js} +2 -2
- package/dist/_chunks/{data-table-DC96JJIq.js → data-table-BYGK-gUJ.js} +6 -6
- package/dist/_chunks/{data-table-tabs-DVIFkqx_.js → data-table-tabs-BMR0zsVQ.js} +3 -3
- package/dist/_chunks/{date-picker-B6NW_PS5.js → date-picker-6tFnKFty.js} +14 -14
- package/dist/_chunks/{dependent-selector-yTKKsuc9.js → dependent-selector-BHDP0nBB.js} +3 -3
- package/dist/_chunks/{description-list-CjJqR8WK.js → description-list-C1RXMDZ_.js} +2 -2
- package/dist/_chunks/{document-preview-BrhMHNh8.js → document-preview-DsEyRcNd.js} +4 -4
- package/dist/_chunks/{document-scanner-C5Vrbu21.js → document-scanner-CbWVtm7u.js} +53 -52
- package/dist/_chunks/{due-date-calculator-CxgK8vzt.js → due-date-calculator-Dhc9Ljkb.js} +6 -6
- package/dist/_chunks/{editable-currency-cell-renderer-B7TVZ5ZJ.js → editable-currency-cell-renderer-D7blbDFY.js} +4 -4
- package/dist/_chunks/{editor-overlay-DEc5yYwo.js → editor-overlay-8fKAcRsm.js} +2 -2
- package/dist/_chunks/{entity-card-9_62gY7l.js → entity-card-I-Gio5wo.js} +36 -32
- package/dist/_chunks/{entity-summary-5o768XLU.js → entity-summary-BbW0mIzU.js} +4 -4
- package/dist/_chunks/{face-scheme-l-CQyLs-.js → face-scheme-uFvhqz6h.js} +4 -4
- package/dist/_chunks/{fetal-weight-Dqy0T1fP.js → fetal-weight-C6SxchOv.js} +2 -2
- package/dist/_chunks/{field-array-BjkXZzSr.js → field-array-C9dmRaIM.js} +2 -2
- package/dist/_chunks/{file-manager-CI2Qn8qW.js → file-manager-DvkFgj7d.js} +7 -7
- package/dist/_chunks/{file-upload-CwxdqkMK.js → file-upload-BDpb08GM.js} +71 -78
- package/dist/_chunks/{fiscal-code-input-B_nYMSEM.js → fiscal-code-input-CkwIdB1y.js} +2 -2
- package/dist/_chunks/{freemium-paywall-DrXzYfv-.js → freemium-paywall-BqGk_SBU.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-CZHVrERT.js → gestational-age-calculator-DDOGaPvg.js} +6 -6
- package/dist/_chunks/{hcg-doubling-C2fQxfXd.js → hcg-doubling-Bb_n6tEa.js} +2 -2
- package/dist/_chunks/{header-DUXRIPyM.js → header-BZ4pZlJV.js} +2 -2
- package/dist/_chunks/{header-settings-DvjZNMhD.js → header-settings-B8mLc03Q.js} +4 -4
- package/dist/_chunks/hover-card-Bcku1GQu.js +511 -0
- package/dist/_chunks/{icon-button-DA2CAGHZ.js → icon-button-8xqRnkdG.js} +2 -2
- package/dist/_chunks/{icon-button-group-VCCod3Hz.js → icon-button-group-Dj6CRoYR.js} +2 -2
- package/dist/_chunks/{icon-picker-DOa89vn3.js → icon-picker-CTWzlHJr.js} +2 -2
- package/dist/_chunks/{info-tip-CADik6WN.js → info-tip-ey_Pon2y.js} +2 -2
- package/dist/_chunks/{key-value-pair-BIBdZBLg.js → key-value-pair-DczGb4yz.js} +42 -41
- package/dist/_chunks/{link-cell-renderer-BEpMNtAa.js → link-cell-renderer-BNa8x6oJ.js} +6 -6
- package/dist/_chunks/loader-circle-BECIU_8N.js +12 -0
- package/dist/_chunks/{locale-picker-CwFtqSkt.js → locale-picker-BLeHbFSc.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-CK_ND8Tr.js → marketplace-app-shell-BwH6Aruw.js} +6 -6
- package/dist/_chunks/{message-card-BUMv16un.js → message-card-Dm5Xshup.js} +2 -2
- package/dist/_chunks/{message-tray-0zsv27xX.js → message-tray-BcLyaO-G.js} +3 -3
- package/dist/_chunks/{multi-select-DYOvx2SJ.js → multi-select-CtPd7g4x.js} +15 -15
- package/dist/_chunks/note-attachment-CwDir3kK.js +124 -0
- package/dist/_chunks/note-timeline-CXfSV3yX.js +231 -0
- package/dist/_chunks/{notes-panel-BjLt-kiP.js → notes-panel-Co8D3uDd.js} +7 -7
- package/dist/_chunks/{notification-card-CtrzoTUO.js → notification-card-ChcK9Wat.js} +2 -2
- package/dist/_chunks/{notification-tray-BiRzXHDf.js → notification-tray-CJ8jOe-U.js} +4 -4
- package/dist/_chunks/{operator-hero-aG_qyn6g.js → operator-hero-XIdwDmN2.js} +3 -3
- package/dist/_chunks/{optical-prescription-DUJOhKz_.js → optical-prescription-cphK41eP.js} +2 -2
- package/dist/_chunks/panel-header-D_mTdhUp.js +128 -0
- package/dist/_chunks/patient-details-f7SSXkTJ.js +371 -0
- package/dist/_chunks/patient-field-row-BQZoP4m2.js +787 -0
- package/dist/_chunks/{patient-search-HeEUB-_X.js → patient-search-D08b6jgj.js} +2 -2
- package/dist/_chunks/patient-summary-card-Bz7KdUin.js +533 -0
- package/dist/_chunks/{payment-automation-upsell-DwQW2fRp.js → payment-automation-upsell-BLTdE2em.js} +50 -59
- package/dist/_chunks/{payment-form-Ds1I9KqB.js → payment-form-BHMDqW9C.js} +2 -2
- package/dist/_chunks/{payment-request-card-DvEsWEkC.js → payment-request-card-BxcdvxKR.js} +6 -6
- package/dist/_chunks/{pdf-viewer-DUIsV9s5.js → pdf-viewer-DUKdn5iq.js} +2 -2
- package/dist/_chunks/{periodontal-chart-B9fphroR.js → periodontal-chart-BF_e3wZp.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-qEZPXj83.js → periodontal-chart-card-BJEuJuzh.js} +3 -3
- package/dist/_chunks/{periodontal-diagnosis-lEwA8wqX.js → periodontal-diagnosis-C7pfPOct.js} +5 -5
- package/dist/_chunks/{periodontal-risk-chart-0x7KVZjL.js → periodontal-risk-chart-B2tNFa15.js} +2 -2
- package/dist/_chunks/{permission-matrix-BIJrGEmz.js → permission-matrix-VdAXjjHU.js} +3 -3
- package/dist/_chunks/{popover-DP6WCVwm.js → popover-DzR5QYxp.js} +24 -24
- package/dist/_chunks/{practice-profile-hero-DQyDvpJL.js → practice-profile-hero-DxoLlQr5.js} +2 -2
- package/dist/_chunks/{practice-results-kayDEorM.js → practice-results-DOcORTkP.js} +4 -4
- package/dist/_chunks/{pregnancy-dating-n5j5dAKy.js → pregnancy-dating-nV1_S6w0.js} +6 -6
- package/dist/_chunks/{pregnancy-weight-gain-D5A8vPjj.js → pregnancy-weight-gain-tRecShAD.js} +4 -4
- package/dist/_chunks/{privacy-lock-CkAUo6Dz.js → privacy-lock-Be39vQUN.js} +2 -2
- package/dist/_chunks/{product-hub-panel-BScCotGD.js → product-hub-panel-C0TO69P7.js} +2 -2
- package/dist/_chunks/{public-header.agent-kth2SdXn.js → public-header.agent-Bl1KFwSE.js} +3 -3
- package/dist/_chunks/{radio-DNRe6H_8.js → radio-6fml-pWk.js} +2 -2
- package/dist/_chunks/{radio-group-DyVBgnA3.js → radio-group-CIjmyioi.js} +3 -3
- package/dist/_chunks/{radiograph-panel.agent-o4jwEJPC.js → radiograph-panel.agent-k0G7JuoM.js} +6 -6
- package/dist/_chunks/{reviews-panel-BKHEfqVQ.js → reviews-panel-BaHZb_ai.js} +3 -3
- package/dist/_chunks/{rich-text-editor-CCI-Y3DN.js → rich-text-editor-BTXlorm5.js} +7 -7
- package/dist/_chunks/{search-bar-CJj6sI9m.js → search-bar-CCmViqaa.js} +46 -46
- package/dist/_chunks/section-card.agent-W18CHEgX.js +74 -0
- package/dist/_chunks/{sheet-BSznOyJs.js → sheet-hm04DGFd.js} +2 -2
- package/dist/_chunks/{sign-document-jF4fZDJ5.js → sign-document-CRQuAn4W.js} +2 -2
- package/dist/_chunks/{signature-request-vihDT8On.js → signature-request-Dej2g86d.js} +5 -5
- package/dist/_chunks/{signature-status-chip-T5fyS-k9.js → signature-status-chip-D4NsrdeI.js} +3 -3
- package/dist/_chunks/{slot-grid-BuZOKfcd.js → slot-grid-8Ko6thzz.js} +2 -2
- package/dist/_chunks/{streaming-text-CvsjIQ7S.js → streaming-text-DjFqLSt_.js} +2 -2
- package/dist/_chunks/{tab-bar-DvFJIQfL.js → tab-bar-rDkLiaA6.js} +2 -2
- package/dist/_chunks/{tag-3wgkwwDB.js → tag-Ci3xJPcH.js} +2 -2
- package/dist/_chunks/{task-tray-COo-RlDv.js → task-tray-wl9eti6J.js} +2 -2
- package/dist/_chunks/{tasks-panel-DLKpSNoE.js → tasks-panel-BDNB7hsZ.js} +5 -5
- package/dist/_chunks/{theme-toggle-uEwoKjl3.js → theme-toggle-CMz8YfC1.js} +3 -3
- package/dist/_chunks/{timeline-Bs9Erxlo.js → timeline-61AihzYz.js} +47 -47
- package/dist/_chunks/{toast-YZz2sBzB.js → toast-8jqtbfAB.js} +2 -2
- package/dist/_chunks/{tool-rail-ONaV-Nzz.js → tool-rail-Bq5eiFMG.js} +3 -3
- package/dist/_chunks/{tooltip-DvmfrNvB.js → tooltip-Cp-PLePW.js} +41 -41
- package/dist/_chunks/{tooth-scheme-Qe7LO5Di.js → tooth-scheme-BWkYxxjR.js} +3 -3
- package/dist/_chunks/{transaction-chip-DJCstquX.js → transaction-chip-Dth1nThY.js} +49 -48
- package/dist/_chunks/{transcript-panel-BGkEhvHO.js → transcript-panel-u2HHxZB6.js} +2 -2
- package/dist/_chunks/user-x-DYszNtIg.js +45 -0
- package/dist/_chunks/{warning-stack-DQz0Jyir.js → warning-stack-BW5Dwb3z.js} +3 -3
- package/dist/_chunks/{widget-picker-DvUkBemi.js → widget-picker-B1sj6uyf.js} +2 -2
- package/dist/_chunks/{workflow-map-dNzJjBWG.js → workflow-map-D-LEni11.js} +5 -5
- package/dist/_chunks/workflow-status-xeaJTzD3.js +476 -0
- package/dist/agent-catalog.json +185 -1
- package/dist/agent-i18n/en.json +27 -0
- package/dist/components/_shared/entity-card/entity-card.d.ts +44 -0
- package/dist/components/_shared/entity-card/index.d.ts +1 -1
- package/dist/components/_shared/note-attachment.d.ts +41 -0
- package/dist/components/_shared/note-markdown.d.ts +3 -0
- package/dist/components/_shared/patient-field-row.d.ts +40 -0
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/alert/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-timeline/index.js +1 -1
- package/dist/components/audio-recorder/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/button/index.js +1 -1
- package/dist/components/button-group/button-group.d.ts +20 -0
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/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/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +2 -34
- package/dist/components/clinical-note-card/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/index.js +1 -1
- package/dist/components/counter/counter.d.ts +6 -0
- package/dist/components/counter/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/date-picker/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/due-date-calculator/index.js +2 -2
- package/dist/components/editor-overlay/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/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/fiscal-code-input/index.js +1 -1
- 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/hover-card.agent.d.ts +4 -0
- package/dist/components/hover-card/hover-card.d.ts +80 -0
- package/dist/components/hover-card/index.d.ts +4 -0
- package/dist/components/hover-card/index.js +6 -0
- 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/index.d.ts +4 -0
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/key-value-pair/key-value-pair.d.ts +8 -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/multi-select/index.js +1 -1
- package/dist/components/note-timeline/index.d.ts +4 -0
- package/dist/components/note-timeline/index.js +6 -0
- package/dist/components/note-timeline/note-timeline.agent.d.ts +4 -0
- package/dist/components/note-timeline/note-timeline.d.ts +77 -0
- package/dist/components/notes-panel/index.js +1 -1
- 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/panel-header/index.js +1 -1
- package/dist/components/panel-header/panel-header.d.ts +7 -0
- 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-summary-card/patient-summary-card.d.ts +54 -0
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/permission-matrix/index.js +1 -1
- package/dist/components/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/public-header/index.js +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-group/index.js +2 -2
- 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 +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/section-card/index.d.ts +4 -0
- package/dist/components/section-card/index.js +6 -0
- package/dist/components/section-card/section-card.agent.d.ts +3 -0
- package/dist/components/section-card/section-card.d.ts +30 -0
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/signature-status-chip/index.js +1 -1
- 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/tag/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/timeline/timeline.d.ts +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +11 -0
- package/dist/components/transcript-panel/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/index.d.ts +4 -0
- package/dist/components/workflow-status/index.js +7 -0
- package/dist/components/workflow-status/workflow-status.agent.d.ts +4 -0
- package/dist/components/workflow-status/workflow-status.d.ts +52 -0
- package/dist/host-compat.css +4 -1
- package/dist/i18n/locales/ar.d.ts +12 -0
- package/dist/i18n/locales/ar.js +12 -0
- package/dist/i18n/locales/de.d.ts +12 -0
- package/dist/i18n/locales/de.js +12 -0
- package/dist/i18n/locales/el.d.ts +12 -0
- package/dist/i18n/locales/el.js +12 -0
- package/dist/i18n/locales/en.d.ts +12 -0
- package/dist/i18n/locales/en.js +12 -0
- package/dist/i18n/locales/es.d.ts +12 -0
- package/dist/i18n/locales/es.js +12 -0
- package/dist/i18n/locales/fr.d.ts +12 -0
- package/dist/i18n/locales/fr.js +12 -0
- package/dist/i18n/locales/hi.d.ts +12 -0
- package/dist/i18n/locales/hi.js +12 -0
- package/dist/i18n/locales/it.d.ts +12 -0
- package/dist/i18n/locales/it.js +12 -0
- package/dist/i18n/locales/ja.d.ts +12 -0
- package/dist/i18n/locales/ja.js +12 -0
- package/dist/i18n/locales/nl.d.ts +12 -0
- package/dist/i18n/locales/nl.js +12 -0
- package/dist/i18n/locales/pl.d.ts +12 -0
- package/dist/i18n/locales/pl.js +12 -0
- package/dist/i18n/locales/pt.d.ts +12 -0
- package/dist/i18n/locales/pt.js +12 -0
- package/dist/i18n/locales/ro.d.ts +12 -0
- package/dist/i18n/locales/ro.js +12 -0
- package/dist/i18n/locales/ru.d.ts +12 -0
- package/dist/i18n/locales/ru.js +12 -0
- package/dist/i18n/locales/sq.d.ts +12 -0
- package/dist/i18n/locales/sq.js +12 -0
- package/dist/i18n/locales/sv.d.ts +12 -0
- package/dist/i18n/locales/sv.js +12 -0
- package/dist/i18n/locales/tr.d.ts +12 -0
- package/dist/i18n/locales/tr.js +12 -0
- package/dist/i18n/locales/zh.d.ts +12 -0
- package/dist/i18n/locales/zh.js +12 -0
- package/dist/index.js +929 -916
- package/dist/locales/ar.json +12 -0
- package/dist/locales/de.json +12 -0
- package/dist/locales/el.json +12 -0
- package/dist/locales/en.json +12 -0
- package/dist/locales/es.json +12 -0
- package/dist/locales/fr.json +12 -0
- package/dist/locales/hi.json +12 -0
- package/dist/locales/it.json +12 -0
- package/dist/locales/ja.json +12 -0
- package/dist/locales/nl.json +12 -0
- package/dist/locales/pl.json +12 -0
- package/dist/locales/pt.json +12 -0
- package/dist/locales/ro.json +12 -0
- package/dist/locales/ru.json +12 -0
- package/dist/locales/sq.json +12 -0
- package/dist/locales/sv.json +12 -0
- package/dist/locales/tr.json +12 -0
- package/dist/locales/zh.json +12 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/calendar.model.d.ts +2 -0
- package/dist/patterns/calendar/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 +17 -1
- package/dist/_chunks/button-group-CaxRJsNG.js +0 -289
- package/dist/_chunks/clinical-note-card-CTRzmqvv.js +0 -438
- package/dist/_chunks/field-value-BetdWMA2.js +0 -384
- package/dist/_chunks/panel-header-D313n_9-.js +0 -105
- package/dist/_chunks/patient-details-BGiawUHd.js +0 -760
- package/dist/_chunks/patient-summary-card--CT_gbaQ.js +0 -454
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
import { jsxs as i, jsx as s, Fragment as se } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as I, useId as re, useRef as ae, useCallback as te, useMemo as oe, useImperativeHandle as ne } from "react";
|
|
3
|
+
import { c as f } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as L } from "react-i18next";
|
|
5
|
+
import { u as de } from "./registry-DvAUVLHh.js";
|
|
6
|
+
import { u as ie } from "./use-controllable-state-BiY4xTzM.js";
|
|
7
|
+
import { a as N } from "./input-surface-xyERuLU_.js";
|
|
8
|
+
import { D as p } from "./dropdown-menu-DU-Hrf33.js";
|
|
9
|
+
import { C as T } from "./circle-alert-rGDZ73Wh.js";
|
|
10
|
+
import { L as le } from "./loader-circle-BECIU_8N.js";
|
|
11
|
+
import { C as ce } from "./chevron-down-DWE7GSq9.js";
|
|
12
|
+
const ue = {
|
|
13
|
+
id: "workflow-status",
|
|
14
|
+
capabilities: ["select_single", "set_value", "open", "close"],
|
|
15
|
+
state: {
|
|
16
|
+
value: {
|
|
17
|
+
type: "string",
|
|
18
|
+
descriptionKey: "ui.agent.workflowStatus.state.value",
|
|
19
|
+
description: "The current non-sensitive workflow status key.",
|
|
20
|
+
read: (r) => r.getValue()
|
|
21
|
+
},
|
|
22
|
+
isOpen: {
|
|
23
|
+
type: "boolean",
|
|
24
|
+
descriptionKey: "ui.agent.workflowStatus.state.isOpen",
|
|
25
|
+
description: "Whether the permitted workflow status list is open.",
|
|
26
|
+
read: (r) => r.getIsOpen()
|
|
27
|
+
},
|
|
28
|
+
isSaving: {
|
|
29
|
+
type: "boolean",
|
|
30
|
+
descriptionKey: "ui.agent.workflowStatus.state.isSaving",
|
|
31
|
+
description: "Whether the host is saving a workflow status change.",
|
|
32
|
+
read: (r) => r.getIsSaving()
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
actions: {
|
|
36
|
+
set_value: {
|
|
37
|
+
safety: "write",
|
|
38
|
+
argsType: "{ value: string }",
|
|
39
|
+
argsSchema: {
|
|
40
|
+
type: "object",
|
|
41
|
+
properties: {
|
|
42
|
+
value: {
|
|
43
|
+
type: "string",
|
|
44
|
+
description: "Permitted workflow status key to select."
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
required: ["value"]
|
|
48
|
+
},
|
|
49
|
+
idempotent: !0,
|
|
50
|
+
openWorld: !1,
|
|
51
|
+
errors: [
|
|
52
|
+
"The status is not in the host-provided transition list.",
|
|
53
|
+
"The status is disabled.",
|
|
54
|
+
"A status change is already being saved."
|
|
55
|
+
],
|
|
56
|
+
examples: [{ args: { value: "review" } }],
|
|
57
|
+
descriptionKey: "ui.agent.workflowStatus.actions.setValue",
|
|
58
|
+
description: "Request a permitted workflow status through the host-owned change callback.",
|
|
59
|
+
invoke: (r, a) => r.setValue(a.value)
|
|
60
|
+
},
|
|
61
|
+
open: {
|
|
62
|
+
safety: "read",
|
|
63
|
+
idempotent: !0,
|
|
64
|
+
descriptionKey: "ui.agent.workflowStatus.actions.open",
|
|
65
|
+
description: "Open the permitted workflow status list.",
|
|
66
|
+
invoke: (r) => r.open()
|
|
67
|
+
},
|
|
68
|
+
close: {
|
|
69
|
+
safety: "read",
|
|
70
|
+
idempotent: !0,
|
|
71
|
+
descriptionKey: "ui.agent.workflowStatus.actions.close",
|
|
72
|
+
description: "Close the workflow status list.",
|
|
73
|
+
invoke: (r) => r.close()
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
domHooks: {
|
|
77
|
+
root: {
|
|
78
|
+
attr: "data-component",
|
|
79
|
+
value: "workflow-status",
|
|
80
|
+
description: "Marks the WorkflowStatus boundary."
|
|
81
|
+
},
|
|
82
|
+
instanceId: {
|
|
83
|
+
attr: "data-component-id",
|
|
84
|
+
sourceProp: "id",
|
|
85
|
+
description: "Sourced from the id prop."
|
|
86
|
+
},
|
|
87
|
+
item: {
|
|
88
|
+
attr: "data-option-id",
|
|
89
|
+
description: "Non-sensitive workflow status key for a permitted option."
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}, O = f(
|
|
93
|
+
"ds:inline-flex ds:max-w-full ds:flex-col ds:items-start ds:gap-[var(--spacing-2xs)]",
|
|
94
|
+
{
|
|
95
|
+
variants: {
|
|
96
|
+
size: {
|
|
97
|
+
sm: "",
|
|
98
|
+
md: "",
|
|
99
|
+
lg: ""
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
defaultVariants: { size: "md" }
|
|
103
|
+
}
|
|
104
|
+
), R = f(
|
|
105
|
+
[
|
|
106
|
+
"ds:group/workflow-status ds:inline-grid ds:max-w-full ds:w-fit ds:items-center",
|
|
107
|
+
"ds:overflow-hidden ds:text-start",
|
|
108
|
+
"ds:rounded-[var(--radius-md)] ds:border ds:border-border",
|
|
109
|
+
"ds:bg-transparent ds:text-foreground",
|
|
110
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)]",
|
|
111
|
+
"ds:motion-reduce:transition-none",
|
|
112
|
+
"ds:forced-colors:border-[ButtonBorder]"
|
|
113
|
+
].join(" "),
|
|
114
|
+
{
|
|
115
|
+
variants: {
|
|
116
|
+
size: {
|
|
117
|
+
sm: `${N.sm} ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-2xs)] ds:pe-[var(--spacing-sm)]`,
|
|
118
|
+
md: `${N.md} ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-2xs)] ds:pe-[var(--spacing-sm)]`,
|
|
119
|
+
lg: `${N.lg} ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-md)]`
|
|
120
|
+
},
|
|
121
|
+
interactive: {
|
|
122
|
+
true: [
|
|
123
|
+
"ds:grid-cols-[auto_minmax(0,1fr)_auto] ds:appearance-none ds:cursor-pointer",
|
|
124
|
+
"ds:hover:enabled:bg-muted/10 ds:active:enabled:bg-muted/20",
|
|
125
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
126
|
+
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
127
|
+
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
128
|
+
"ds:data-[open]:bg-muted/20 ds:data-[open]:border-[color:var(--primary)]",
|
|
129
|
+
"ds:forced-colors:data-[open]:border-[Highlight]"
|
|
130
|
+
].join(" "),
|
|
131
|
+
false: "ds:grid-cols-[auto_minmax(0,1fr)] ds:cursor-default"
|
|
132
|
+
},
|
|
133
|
+
operation: {
|
|
134
|
+
idle: "",
|
|
135
|
+
disabled: "ds:cursor-not-allowed ds:opacity-50",
|
|
136
|
+
saving: "ds:cursor-wait ds:border-[color:var(--info-foreground)]",
|
|
137
|
+
error: "ds:border-[color:var(--error-foreground)]"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
defaultVariants: {
|
|
141
|
+
size: "md",
|
|
142
|
+
interactive: !1,
|
|
143
|
+
operation: "idle"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
), B = f(
|
|
147
|
+
[
|
|
148
|
+
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
149
|
+
"ds:rounded-[var(--radius-full)] ds:border ds:[&>svg]:block",
|
|
150
|
+
"ds:forced-colors:bg-transparent ds:forced-colors:border-[CanvasText]"
|
|
151
|
+
].join(" "),
|
|
152
|
+
{
|
|
153
|
+
variants: {
|
|
154
|
+
tone: {
|
|
155
|
+
neutral: "ds:bg-muted ds:text-muted-foreground ds:border-[color:var(--border)]",
|
|
156
|
+
info: "ds:bg-info/15 ds:text-[color:var(--info-foreground)] ds:border-[color:var(--info-foreground)]",
|
|
157
|
+
success: "ds:bg-success/15 ds:text-[color:var(--success-foreground)] ds:border-[color:var(--success-foreground)]",
|
|
158
|
+
warning: "ds:bg-warning/15 ds:text-[color:var(--warning-foreground)] ds:border-[color:var(--warning-foreground)]",
|
|
159
|
+
error: "ds:bg-destructive/15 ds:text-[color:var(--error-foreground)] ds:border-[color:var(--error-foreground)]",
|
|
160
|
+
accent: "ds:bg-[color:color-mix(in_srgb,var(--accent)_15%,transparent)] ds:text-[color:color-mix(in_srgb,var(--accent)_40%,var(--foreground))] ds:border-[color:color-mix(in_srgb,var(--accent)_40%,var(--foreground))]"
|
|
161
|
+
},
|
|
162
|
+
/* The ball is a SETTING for the glyph, not a container it fills: at
|
|
163
|
+
the old 24px/16px the icon took two thirds of the circle and the two
|
|
164
|
+
read as one crowded blob. Each step is smaller overall and gives the
|
|
165
|
+
glyph roughly half its diameter, so the ring stays legible as a ring
|
|
166
|
+
and the status colour has room to register. */
|
|
167
|
+
size: {
|
|
168
|
+
sm: "ds:size-5 ds:[&>svg]:size-3",
|
|
169
|
+
md: "ds:size-[var(--spacing-lg)] ds:[&>svg]:size-3.5",
|
|
170
|
+
lg: "ds:size-7 ds:[&>svg]:size-[var(--icon-size-sm)]",
|
|
171
|
+
menu: "ds:size-5 ds:[&>svg]:size-3"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
defaultVariants: { tone: "neutral", size: "md" }
|
|
175
|
+
}
|
|
176
|
+
), fe = f(
|
|
177
|
+
"ds:flex ds:min-w-0 ds:flex-col ds:justify-center ds:text-start",
|
|
178
|
+
{
|
|
179
|
+
variants: {
|
|
180
|
+
size: {
|
|
181
|
+
sm: "ds:gap-0",
|
|
182
|
+
md: "ds:gap-0",
|
|
183
|
+
lg: "ds:gap-0"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
defaultVariants: { size: "md" }
|
|
187
|
+
}
|
|
188
|
+
), pe = f(
|
|
189
|
+
"ds:block ds:min-w-0 ds:truncate ds:font-[var(--font-weight-semibold)] ds:text-[color:var(--foreground)]",
|
|
190
|
+
{
|
|
191
|
+
variants: {
|
|
192
|
+
size: {
|
|
193
|
+
sm: "type-body-sm",
|
|
194
|
+
md: "type-label",
|
|
195
|
+
lg: "type-body"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
defaultVariants: { size: "md" }
|
|
199
|
+
}
|
|
200
|
+
), me = f(
|
|
201
|
+
[
|
|
202
|
+
"ds:inline-flex ds:self-stretch ds:items-center ds:justify-center",
|
|
203
|
+
"ds:gap-[var(--spacing-2xs)] ds:border-s ds:border-border",
|
|
204
|
+
"ds:text-[color:var(--muted-foreground)]",
|
|
205
|
+
"ds:forced-colors:border-[ButtonBorder]"
|
|
206
|
+
].join(" "),
|
|
207
|
+
{
|
|
208
|
+
variants: {
|
|
209
|
+
size: {
|
|
210
|
+
sm: "ds:ps-[var(--spacing-xs)]",
|
|
211
|
+
md: "ds:ps-[var(--spacing-sm)]",
|
|
212
|
+
lg: "ds:ps-[var(--spacing-md)]"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
defaultVariants: { size: "md" }
|
|
216
|
+
}
|
|
217
|
+
), ge = f(
|
|
218
|
+
[
|
|
219
|
+
"ds:flex ds:max-w-full ds:items-start ds:gap-[var(--spacing-xs)]",
|
|
220
|
+
"type-meta ds:text-[color:var(--error-foreground)]",
|
|
221
|
+
"ds:[&>svg]:mt-[var(--spacing-2xs)] ds:[&>svg]:size-[var(--spacing-md)] ds:[&>svg]:shrink-0",
|
|
222
|
+
"ds:forced-colors:text-[CanvasText]"
|
|
223
|
+
].join(" ")
|
|
224
|
+
);
|
|
225
|
+
function A({
|
|
226
|
+
option: r,
|
|
227
|
+
workflowLabel: a,
|
|
228
|
+
size: t = "md",
|
|
229
|
+
interactive: n,
|
|
230
|
+
operation: l = "idle",
|
|
231
|
+
error: c
|
|
232
|
+
}) {
|
|
233
|
+
return /* @__PURE__ */ i(se, { children: [
|
|
234
|
+
/* @__PURE__ */ s(
|
|
235
|
+
"span",
|
|
236
|
+
{
|
|
237
|
+
"aria-hidden": "true",
|
|
238
|
+
"data-workflow-status-icon": "",
|
|
239
|
+
"data-tone": r.tone,
|
|
240
|
+
className: B({ tone: r.tone, size: t }),
|
|
241
|
+
children: r.icon
|
|
242
|
+
}
|
|
243
|
+
),
|
|
244
|
+
/* @__PURE__ */ i("span", { className: fe({ size: t }), children: [
|
|
245
|
+
t !== "sm" ? /* @__PURE__ */ s("span", { className: "type-meta ds:font-[var(--font-weight-medium)] ds:text-[color:var(--muted-foreground)]", children: a }) : null,
|
|
246
|
+
/* @__PURE__ */ s(
|
|
247
|
+
"span",
|
|
248
|
+
{
|
|
249
|
+
"data-workflow-status-value": "",
|
|
250
|
+
title: r.label,
|
|
251
|
+
className: pe({ size: t }),
|
|
252
|
+
children: r.label
|
|
253
|
+
}
|
|
254
|
+
)
|
|
255
|
+
] }),
|
|
256
|
+
n ? /* @__PURE__ */ i("span", { className: me({ size: t }), "aria-hidden": "true", children: [
|
|
257
|
+
c ? /* @__PURE__ */ s(
|
|
258
|
+
T,
|
|
259
|
+
{
|
|
260
|
+
"data-testid": "workflow-status-error-icon",
|
|
261
|
+
className: "ds:size-[var(--spacing-md)] ds:shrink-0"
|
|
262
|
+
}
|
|
263
|
+
) : null,
|
|
264
|
+
l === "saving" ? /* @__PURE__ */ s(le, { className: "ds:size-[var(--spacing-md)] ds:shrink-0 ds:animate-spin ds:motion-reduce:animate-none" }) : /* @__PURE__ */ s(
|
|
265
|
+
ce,
|
|
266
|
+
{
|
|
267
|
+
"data-testid": "workflow-status-chevron",
|
|
268
|
+
className: "ds:size-[var(--spacing-md)] ds:shrink-0 ds:transition-transform ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none ds:group-data-[open]/workflow-status:rotate-180"
|
|
269
|
+
}
|
|
270
|
+
)
|
|
271
|
+
] }) : null
|
|
272
|
+
] });
|
|
273
|
+
}
|
|
274
|
+
const ve = I(function({ value: a, option: t, size: n = "md", workflowLabel: l, id: c, className: o, dir: h }, v) {
|
|
275
|
+
const { t: k } = L(), x = l ?? k("workflowStatus.label", "Workflow");
|
|
276
|
+
return /* @__PURE__ */ s(
|
|
277
|
+
"div",
|
|
278
|
+
{
|
|
279
|
+
ref: v,
|
|
280
|
+
id: c,
|
|
281
|
+
dir: h,
|
|
282
|
+
"data-component": "workflow-status",
|
|
283
|
+
"data-component-id": c,
|
|
284
|
+
"data-state": a,
|
|
285
|
+
"data-variant": "display",
|
|
286
|
+
className: O({ size: n, className: o }),
|
|
287
|
+
children: /* @__PURE__ */ s("div", { className: R({ size: n, interactive: !1 }), children: /* @__PURE__ */ s(
|
|
288
|
+
A,
|
|
289
|
+
{
|
|
290
|
+
option: t,
|
|
291
|
+
workflowLabel: x,
|
|
292
|
+
size: n,
|
|
293
|
+
interactive: !1,
|
|
294
|
+
error: !1
|
|
295
|
+
}
|
|
296
|
+
) })
|
|
297
|
+
}
|
|
298
|
+
);
|
|
299
|
+
});
|
|
300
|
+
ve.displayName = "WorkflowStatusDisplay";
|
|
301
|
+
const we = I(function({
|
|
302
|
+
value: a,
|
|
303
|
+
options: t,
|
|
304
|
+
onValueChange: n,
|
|
305
|
+
size: l = "md",
|
|
306
|
+
disabled: c = !1,
|
|
307
|
+
saving: o = !1,
|
|
308
|
+
error: h = !1,
|
|
309
|
+
errorMessage: v,
|
|
310
|
+
workflowLabel: k,
|
|
311
|
+
menuLabel: x,
|
|
312
|
+
savingLabel: D,
|
|
313
|
+
open: E,
|
|
314
|
+
defaultOpen: K = !1,
|
|
315
|
+
onOpenChange: $,
|
|
316
|
+
id: u,
|
|
317
|
+
className: H,
|
|
318
|
+
dir: V,
|
|
319
|
+
"aria-label": M,
|
|
320
|
+
"aria-describedby": q
|
|
321
|
+
}, F) {
|
|
322
|
+
const { t: m } = L(), G = re(), z = ae(null), y = t.find((e) => e.value === a);
|
|
323
|
+
if (!y)
|
|
324
|
+
throw new Error(
|
|
325
|
+
`WorkflowStatusControl requires an option matching value "${a}".`
|
|
326
|
+
);
|
|
327
|
+
const P = k ?? m("workflowStatus.label", "Workflow"), U = x ?? m("workflowStatus.menuLabel", "Workflow statuses"), J = D ?? m("workflowStatus.saving", "Saving workflow status"), Q = v ?? m(
|
|
328
|
+
"workflowStatus.saveFailed",
|
|
329
|
+
"Could not change workflow status. The previous status is still shown."
|
|
330
|
+
), X = M ?? m("workflowStatus.changeLabel", "Change workflow status: {{status}}", {
|
|
331
|
+
status: y.label
|
|
332
|
+
}), g = h || !!v, d = c || o, W = u ? `${u}-error` : G, Y = [q, g ? W : void 0].filter(Boolean).join(" ") || void 0, _ = o ? "saving" : c ? "disabled" : g ? "error" : "idle", [Z, w] = ie({
|
|
333
|
+
value: E,
|
|
334
|
+
defaultValue: K,
|
|
335
|
+
onChange: $
|
|
336
|
+
}), b = !!Z && !d, S = te(
|
|
337
|
+
(e) => {
|
|
338
|
+
if (d || e === a) return;
|
|
339
|
+
const j = t.find((ee) => ee.value === e);
|
|
340
|
+
if (!(!j || j.disabled))
|
|
341
|
+
return n(e);
|
|
342
|
+
},
|
|
343
|
+
[d, n, t, a]
|
|
344
|
+
), C = oe(
|
|
345
|
+
() => ({
|
|
346
|
+
getValue: () => a,
|
|
347
|
+
getIsOpen: () => b,
|
|
348
|
+
getIsSaving: () => o,
|
|
349
|
+
setValue: S,
|
|
350
|
+
open: () => {
|
|
351
|
+
d || w(!0);
|
|
352
|
+
},
|
|
353
|
+
close: () => w(!1),
|
|
354
|
+
focus: () => {
|
|
355
|
+
var e;
|
|
356
|
+
return (e = z.current) == null ? void 0 : e.focus();
|
|
357
|
+
}
|
|
358
|
+
}),
|
|
359
|
+
[S, d, b, o, w, a]
|
|
360
|
+
);
|
|
361
|
+
return ne(F, () => C, [C]), de(ue, C, u), /* @__PURE__ */ i(
|
|
362
|
+
"div",
|
|
363
|
+
{
|
|
364
|
+
id: u,
|
|
365
|
+
dir: V,
|
|
366
|
+
"data-component": "workflow-status",
|
|
367
|
+
"data-component-id": u,
|
|
368
|
+
"data-state": a,
|
|
369
|
+
"data-variant": "control",
|
|
370
|
+
"data-saving": o ? "" : void 0,
|
|
371
|
+
"data-error": g ? "" : void 0,
|
|
372
|
+
className: O({ size: l, className: H }),
|
|
373
|
+
children: [
|
|
374
|
+
/* @__PURE__ */ i(
|
|
375
|
+
p.Root,
|
|
376
|
+
{
|
|
377
|
+
dir: V,
|
|
378
|
+
open: b,
|
|
379
|
+
onOpenChange: (e) => {
|
|
380
|
+
e && d || w(e);
|
|
381
|
+
},
|
|
382
|
+
children: [
|
|
383
|
+
/* @__PURE__ */ s(p.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
|
|
384
|
+
"button",
|
|
385
|
+
{
|
|
386
|
+
ref: z,
|
|
387
|
+
id: u ? `${u}-trigger` : void 0,
|
|
388
|
+
type: "button",
|
|
389
|
+
disabled: d,
|
|
390
|
+
"aria-label": X,
|
|
391
|
+
"aria-describedby": Y,
|
|
392
|
+
"aria-busy": o,
|
|
393
|
+
"data-open": b ? "" : void 0,
|
|
394
|
+
className: R({
|
|
395
|
+
size: l,
|
|
396
|
+
interactive: !0,
|
|
397
|
+
operation: _
|
|
398
|
+
}),
|
|
399
|
+
children: /* @__PURE__ */ s(
|
|
400
|
+
A,
|
|
401
|
+
{
|
|
402
|
+
option: y,
|
|
403
|
+
workflowLabel: P,
|
|
404
|
+
size: l,
|
|
405
|
+
interactive: !0,
|
|
406
|
+
operation: _,
|
|
407
|
+
error: g
|
|
408
|
+
}
|
|
409
|
+
)
|
|
410
|
+
}
|
|
411
|
+
) }),
|
|
412
|
+
/* @__PURE__ */ i(p.Content, { align: "start", children: [
|
|
413
|
+
/* @__PURE__ */ s(p.Label, { children: U }),
|
|
414
|
+
/* @__PURE__ */ s(
|
|
415
|
+
p.RadioGroup,
|
|
416
|
+
{
|
|
417
|
+
value: a,
|
|
418
|
+
onValueChange: (e) => {
|
|
419
|
+
S(e);
|
|
420
|
+
},
|
|
421
|
+
children: t.map((e) => /* @__PURE__ */ s(
|
|
422
|
+
p.RadioItem,
|
|
423
|
+
{
|
|
424
|
+
value: e.value,
|
|
425
|
+
disabled: d || e.disabled,
|
|
426
|
+
"data-option-id": e.value,
|
|
427
|
+
children: /* @__PURE__ */ i("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
428
|
+
/* @__PURE__ */ s(
|
|
429
|
+
"span",
|
|
430
|
+
{
|
|
431
|
+
"aria-hidden": "true",
|
|
432
|
+
"data-workflow-status-icon": "",
|
|
433
|
+
"data-tone": e.tone,
|
|
434
|
+
className: B({
|
|
435
|
+
tone: e.tone,
|
|
436
|
+
size: "menu"
|
|
437
|
+
}),
|
|
438
|
+
children: e.icon
|
|
439
|
+
}
|
|
440
|
+
),
|
|
441
|
+
/* @__PURE__ */ s("span", { className: "ds:min-w-0 ds:truncate", title: e.label, children: e.label })
|
|
442
|
+
] })
|
|
443
|
+
},
|
|
444
|
+
e.value
|
|
445
|
+
))
|
|
446
|
+
}
|
|
447
|
+
)
|
|
448
|
+
] })
|
|
449
|
+
]
|
|
450
|
+
}
|
|
451
|
+
),
|
|
452
|
+
/* @__PURE__ */ s(
|
|
453
|
+
"span",
|
|
454
|
+
{
|
|
455
|
+
role: "status",
|
|
456
|
+
"aria-live": "polite",
|
|
457
|
+
"aria-atomic": "true",
|
|
458
|
+
className: "ds:sr-only",
|
|
459
|
+
children: o ? J : ""
|
|
460
|
+
}
|
|
461
|
+
),
|
|
462
|
+
g ? /* @__PURE__ */ i("div", { id: W, role: "alert", className: ge(), children: [
|
|
463
|
+
/* @__PURE__ */ s(T, { "aria-hidden": "true" }),
|
|
464
|
+
/* @__PURE__ */ s("span", { children: Q })
|
|
465
|
+
] }) : null
|
|
466
|
+
]
|
|
467
|
+
}
|
|
468
|
+
);
|
|
469
|
+
});
|
|
470
|
+
we.displayName = "WorkflowStatusControl";
|
|
471
|
+
export {
|
|
472
|
+
we as W,
|
|
473
|
+
ve as a,
|
|
474
|
+
ue as w
|
|
475
|
+
};
|
|
476
|
+
//# sourceMappingURL=workflow-status-xeaJTzD3.js.map
|
package/dist/agent-catalog.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"packageVersion": "1.
|
|
3
|
+
"packageVersion": "1.36.0",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"kind": "component",
|
|
@@ -6228,6 +6228,49 @@
|
|
|
6228
6228
|
}
|
|
6229
6229
|
}
|
|
6230
6230
|
},
|
|
6231
|
+
{
|
|
6232
|
+
"kind": "component",
|
|
6233
|
+
"id": "hover-card",
|
|
6234
|
+
"capabilities": [
|
|
6235
|
+
"open",
|
|
6236
|
+
"close"
|
|
6237
|
+
],
|
|
6238
|
+
"state": [
|
|
6239
|
+
{
|
|
6240
|
+
"name": "isOpen",
|
|
6241
|
+
"type": "boolean",
|
|
6242
|
+
"description": "True when the hover card is currently open.",
|
|
6243
|
+
"descriptionKey": "ui.agent.hoverCard.state.isOpen"
|
|
6244
|
+
}
|
|
6245
|
+
],
|
|
6246
|
+
"actions": [
|
|
6247
|
+
{
|
|
6248
|
+
"name": "open",
|
|
6249
|
+
"safety": "read",
|
|
6250
|
+
"idempotent": true,
|
|
6251
|
+
"description": "Open the hover card without moving focus into it.",
|
|
6252
|
+
"descriptionKey": "ui.agent.hoverCard.actions.open"
|
|
6253
|
+
},
|
|
6254
|
+
{
|
|
6255
|
+
"name": "close",
|
|
6256
|
+
"safety": "read",
|
|
6257
|
+
"idempotent": true,
|
|
6258
|
+
"description": "Close the hover card.",
|
|
6259
|
+
"descriptionKey": "ui.agent.hoverCard.actions.close"
|
|
6260
|
+
}
|
|
6261
|
+
],
|
|
6262
|
+
"domHooks": {
|
|
6263
|
+
"root": {
|
|
6264
|
+
"attr": "data-component",
|
|
6265
|
+
"value": "hover-card"
|
|
6266
|
+
},
|
|
6267
|
+
"instanceId": {
|
|
6268
|
+
"attr": "data-component-id",
|
|
6269
|
+
"sourceProp": "id",
|
|
6270
|
+
"description": "Sourced from the id prop on HoverCard.Root."
|
|
6271
|
+
}
|
|
6272
|
+
}
|
|
6273
|
+
},
|
|
6231
6274
|
{
|
|
6232
6275
|
"kind": "component",
|
|
6233
6276
|
"id": "iban-input",
|
|
@@ -7610,6 +7653,38 @@
|
|
|
7610
7653
|
}
|
|
7611
7654
|
}
|
|
7612
7655
|
},
|
|
7656
|
+
{
|
|
7657
|
+
"kind": "component",
|
|
7658
|
+
"id": "note-timeline",
|
|
7659
|
+
"capabilities": [],
|
|
7660
|
+
"state": [
|
|
7661
|
+
{
|
|
7662
|
+
"name": "notes",
|
|
7663
|
+
"type": "Array<{ id?: string; pinned: boolean; flagged: boolean; clinical: boolean }>",
|
|
7664
|
+
"description": "Structural snapshot of the rendered rows: ids and flags only, never note content or author.",
|
|
7665
|
+
"descriptionKey": "ui.agent.noteTimeline.state.notes"
|
|
7666
|
+
},
|
|
7667
|
+
{
|
|
7668
|
+
"name": "visibleCount",
|
|
7669
|
+
"type": "number",
|
|
7670
|
+
"description": "How many notes are rendered, after the maxItems cap is applied.",
|
|
7671
|
+
"descriptionKey": "ui.agent.noteTimeline.state.visibleCount"
|
|
7672
|
+
}
|
|
7673
|
+
],
|
|
7674
|
+
"actions": [],
|
|
7675
|
+
"domHooks": {
|
|
7676
|
+
"root": {
|
|
7677
|
+
"attr": "data-component",
|
|
7678
|
+
"value": "note-timeline",
|
|
7679
|
+
"description": "Marks the NoteTimeline root. Emits data-empty when there is nothing to show."
|
|
7680
|
+
},
|
|
7681
|
+
"instanceId": {
|
|
7682
|
+
"attr": "data-component-id",
|
|
7683
|
+
"sourceProp": "id",
|
|
7684
|
+
"description": "Sourced from the id prop — addresses a specific timeline."
|
|
7685
|
+
}
|
|
7686
|
+
}
|
|
7687
|
+
},
|
|
7613
7688
|
{
|
|
7614
7689
|
"kind": "component",
|
|
7615
7690
|
"id": "notes-panel",
|
|
@@ -11892,6 +11967,20 @@
|
|
|
11892
11967
|
}
|
|
11893
11968
|
}
|
|
11894
11969
|
},
|
|
11970
|
+
{
|
|
11971
|
+
"kind": "component",
|
|
11972
|
+
"id": "section-card",
|
|
11973
|
+
"capabilities": [],
|
|
11974
|
+
"state": [],
|
|
11975
|
+
"actions": [],
|
|
11976
|
+
"domHooks": {
|
|
11977
|
+
"root": {
|
|
11978
|
+
"attr": "data-component",
|
|
11979
|
+
"value": "section-card",
|
|
11980
|
+
"description": "Marks the element as a kit SectionCard."
|
|
11981
|
+
}
|
|
11982
|
+
}
|
|
11983
|
+
},
|
|
11895
11984
|
{
|
|
11896
11985
|
"kind": "component",
|
|
11897
11986
|
"id": "select",
|
|
@@ -15450,6 +15539,101 @@
|
|
|
15450
15539
|
"description": "Stable opaque workflow node id emitted on each step."
|
|
15451
15540
|
}
|
|
15452
15541
|
}
|
|
15542
|
+
},
|
|
15543
|
+
{
|
|
15544
|
+
"kind": "component",
|
|
15545
|
+
"id": "workflow-status",
|
|
15546
|
+
"capabilities": [
|
|
15547
|
+
"select_single",
|
|
15548
|
+
"set_value",
|
|
15549
|
+
"open",
|
|
15550
|
+
"close"
|
|
15551
|
+
],
|
|
15552
|
+
"state": [
|
|
15553
|
+
{
|
|
15554
|
+
"name": "value",
|
|
15555
|
+
"type": "string",
|
|
15556
|
+
"description": "The current non-sensitive workflow status key.",
|
|
15557
|
+
"descriptionKey": "ui.agent.workflowStatus.state.value"
|
|
15558
|
+
},
|
|
15559
|
+
{
|
|
15560
|
+
"name": "isOpen",
|
|
15561
|
+
"type": "boolean",
|
|
15562
|
+
"description": "Whether the permitted workflow status list is open.",
|
|
15563
|
+
"descriptionKey": "ui.agent.workflowStatus.state.isOpen"
|
|
15564
|
+
},
|
|
15565
|
+
{
|
|
15566
|
+
"name": "isSaving",
|
|
15567
|
+
"type": "boolean",
|
|
15568
|
+
"description": "Whether the host is saving a workflow status change.",
|
|
15569
|
+
"descriptionKey": "ui.agent.workflowStatus.state.isSaving"
|
|
15570
|
+
}
|
|
15571
|
+
],
|
|
15572
|
+
"actions": [
|
|
15573
|
+
{
|
|
15574
|
+
"name": "set_value",
|
|
15575
|
+
"safety": "write",
|
|
15576
|
+
"argsType": "{ value: string }",
|
|
15577
|
+
"argsSchema": {
|
|
15578
|
+
"type": "object",
|
|
15579
|
+
"properties": {
|
|
15580
|
+
"value": {
|
|
15581
|
+
"type": "string",
|
|
15582
|
+
"description": "Permitted workflow status key to select."
|
|
15583
|
+
}
|
|
15584
|
+
},
|
|
15585
|
+
"required": [
|
|
15586
|
+
"value"
|
|
15587
|
+
]
|
|
15588
|
+
},
|
|
15589
|
+
"idempotent": true,
|
|
15590
|
+
"openWorld": false,
|
|
15591
|
+
"errors": [
|
|
15592
|
+
"The status is not in the host-provided transition list.",
|
|
15593
|
+
"The status is disabled.",
|
|
15594
|
+
"A status change is already being saved."
|
|
15595
|
+
],
|
|
15596
|
+
"examples": [
|
|
15597
|
+
{
|
|
15598
|
+
"args": {
|
|
15599
|
+
"value": "review"
|
|
15600
|
+
}
|
|
15601
|
+
}
|
|
15602
|
+
],
|
|
15603
|
+
"description": "Request a permitted workflow status through the host-owned change callback.",
|
|
15604
|
+
"descriptionKey": "ui.agent.workflowStatus.actions.setValue"
|
|
15605
|
+
},
|
|
15606
|
+
{
|
|
15607
|
+
"name": "open",
|
|
15608
|
+
"safety": "read",
|
|
15609
|
+
"idempotent": true,
|
|
15610
|
+
"description": "Open the permitted workflow status list.",
|
|
15611
|
+
"descriptionKey": "ui.agent.workflowStatus.actions.open"
|
|
15612
|
+
},
|
|
15613
|
+
{
|
|
15614
|
+
"name": "close",
|
|
15615
|
+
"safety": "read",
|
|
15616
|
+
"idempotent": true,
|
|
15617
|
+
"description": "Close the workflow status list.",
|
|
15618
|
+
"descriptionKey": "ui.agent.workflowStatus.actions.close"
|
|
15619
|
+
}
|
|
15620
|
+
],
|
|
15621
|
+
"domHooks": {
|
|
15622
|
+
"root": {
|
|
15623
|
+
"attr": "data-component",
|
|
15624
|
+
"value": "workflow-status",
|
|
15625
|
+
"description": "Marks the WorkflowStatus boundary."
|
|
15626
|
+
},
|
|
15627
|
+
"instanceId": {
|
|
15628
|
+
"attr": "data-component-id",
|
|
15629
|
+
"sourceProp": "id",
|
|
15630
|
+
"description": "Sourced from the id prop."
|
|
15631
|
+
},
|
|
15632
|
+
"item": {
|
|
15633
|
+
"attr": "data-option-id",
|
|
15634
|
+
"description": "Non-sensitive workflow status key for a permitted option."
|
|
15635
|
+
}
|
|
15636
|
+
}
|
|
15453
15637
|
}
|
|
15454
15638
|
],
|
|
15455
15639
|
"patterns": [
|