@alfadocs/ui-kit 0.69.0 → 0.71.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/address-fields-CPbFJ8e8.js +246 -0
- package/dist/_chunks/{agenda-card-BxSFkqgY.js → agenda-card-BQ-IKAru.js} +2 -2
- package/dist/_chunks/{agenda-tray-g0kg7HwB.js → agenda-tray-CGXRk58j.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-CXlsNX1c.js → ai-consent-banner-Be-h9mRI.js} +3 -3
- package/dist/_chunks/{ai-prompt-input-CuhTo9mh.js → ai-prompt-input-V4DdOeqv.js} +2 -2
- package/dist/_chunks/{alert-_mUKLmwA.js → alert-CHYZ96tR.js} +150 -96
- package/dist/_chunks/{alia-sidebar-B47qRQb5.js → alia-sidebar-DvIUzIX9.js} +107 -106
- package/dist/_chunks/{anamnesis-card-DRmE24OQ.js → anamnesis-card-DvYCa16e.js} +2 -2
- package/dist/_chunks/anatomy-scheme-CXSk11UJ.js +2445 -0
- package/dist/_chunks/annotation-marker-qt5R9WZX.js +120 -0
- package/dist/_chunks/{antenatal-schedule-timeline-35ebkcZT.js → antenatal-schedule-timeline-CwXrQRm1.js} +2 -2
- package/dist/_chunks/{app-frame-BYx1gcV7.js → app-frame-DIEMIC5V.js} +67 -56
- package/dist/_chunks/appointment-card-DVaeJNVB.js +294 -0
- package/dist/_chunks/appointment-timeline-PJgnrjFb.js +388 -0
- package/dist/_chunks/appointment-tray-B16QPGbm.js +193 -0
- package/dist/_chunks/{audio-recorder-DYXXnGug.js → audio-recorder-DNDsOLqO.js} +3 -3
- package/dist/_chunks/{autocomplete-DOeGouCL.js → autocomplete-BrONKN8l.js} +168 -146
- package/dist/_chunks/{badge-CqGsX32l.js → badge-DCOqV9mI.js} +32 -27
- package/dist/_chunks/{bishop-score-PJI3AXzA.js → bishop-score-Cym_TeQY.js} +3 -3
- package/dist/_chunks/{bmi-calculator-BZtIJ53x.js → bmi-calculator-zjeY4E7J.js} +2 -2
- package/dist/_chunks/{booking-C3VqFReX.js → booking-C7do4vaR.js} +7 -7
- package/dist/_chunks/{button-group-Ciq6J4IW.js → button-group-CvEnVzY7.js} +32 -35
- package/dist/_chunks/{care-plan-card-CvFGXa2z.js → care-plan-card-DzPDYgtK.js} +5 -5
- package/dist/_chunks/{care-plan-entry-card-C3E_gClk.js → care-plan-entry-card-CEnQy7YP.js} +5 -5
- package/dist/_chunks/care-plan-header-DcXFXWit.js +198 -0
- package/dist/_chunks/{chat-message-3V54YipB.js → chat-message-DzpcJR-q.js} +25 -23
- package/dist/_chunks/city-input-Dkgaak7I.js +169 -0
- package/dist/_chunks/clinical-note-card-BUvNMNGL.js +436 -0
- package/dist/_chunks/clipboard-list-S7s-MXQq.js +25 -0
- package/dist/_chunks/{combobox-Clum7gJ1.js → combobox-DnqSF0IH.js} +131 -114
- package/dist/_chunks/connection-status-CY1HV8Wg.js +108 -0
- package/dist/_chunks/{contact-profile-card-Dramqa9C.js → contact-profile-card-DDPwRFiP.js} +2 -2
- package/dist/_chunks/control-room-rail-FAQZrGVL.js +333 -0
- package/dist/_chunks/country-select-BwUZQvTa.js +709 -0
- package/dist/_chunks/{cycle-calculator-DmRGJNaT.js → cycle-calculator-CCmPwcBl.js} +2 -2
- package/dist/_chunks/{dependent-selector-CG_FOHya.js → dependent-selector-DUV4thxX.js} +2 -2
- package/dist/_chunks/{document-scanner-CTubA0-N.js → document-scanner-C_AxLooF.js} +3 -3
- package/dist/_chunks/{due-date-calculator-BTmsIQqD.js → due-date-calculator-Brdj-euS.js} +3 -3
- package/dist/_chunks/editable-currency-cell-renderer-CGELrkIj.js +410 -0
- package/dist/_chunks/email-input-DJ7EXklP.js +397 -0
- package/dist/_chunks/{entity-card-COhmqHly.js → entity-card-DmrgYSEX.js} +38 -20
- package/dist/_chunks/entity-summary-CaM1Y-xE.js +291 -0
- package/dist/_chunks/{fetal-weight-CRz7KE2D.js → fetal-weight-DNCkyeVo.js} +2 -2
- package/dist/_chunks/field-array-siUZzfYe.js +146 -0
- package/dist/_chunks/field-value-3jMM0uDx.js +415 -0
- package/dist/_chunks/{file-upload-5ScQd4fE.js → file-upload-DwZcAK8D.js} +2 -1
- package/dist/_chunks/{freemium-paywall-DZ2mBS3w.js → freemium-paywall-WYlNO7yT.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-BleUdhbI.js → gestational-age-calculator-DKzEV5Qi.js} +4 -4
- package/dist/_chunks/hash-CysBBS_N.js +17 -0
- package/dist/_chunks/{hcg-doubling-CnjDXX6U.js → hcg-doubling-C7bmuaU3.js} +2 -2
- package/dist/_chunks/iban-input-B0TWzR1R.js +436 -0
- package/dist/_chunks/icon-picker-0B7KhrF1.js +272 -0
- package/dist/_chunks/image-cropper-D9jqJy19.js +367 -0
- package/dist/_chunks/{actions-cell-renderer-DrcaxB0w.js → link-cell-renderer-De_SLjSq.js} +792 -668
- package/dist/_chunks/list-checks-BUs75d_o.js +18 -0
- package/dist/_chunks/lock-CKOIn0IK.js +15 -0
- package/dist/_chunks/{marketplace-app-shell-6T9W4Knl.js → marketplace-app-shell-BGqkywsi.js} +5 -5
- package/dist/_chunks/message-card-DsHFFiL1.js +319 -0
- package/dist/_chunks/{message-tray-DwrBLJlf.js → message-tray-C0a6CL1_.js} +172 -135
- package/dist/_chunks/{multi-select-BdHHDrRN.js → multi-select-WE4S9FIF.js} +75 -63
- package/dist/_chunks/nav-grid-9xphY3FM.js +169 -0
- package/dist/_chunks/notes-panel-DXiMfuvp.js +320 -0
- package/dist/_chunks/notification-card-BMqNzCIt.js +290 -0
- package/dist/_chunks/{notification-tray-Btb9oQeZ.js → notification-tray-BmUlCx3g.js} +201 -166
- package/dist/_chunks/{operator-hero-CP2Nhupm.js → operator-hero-BO8TqzX2.js} +3 -3
- package/dist/_chunks/panel-header-D313n_9-.js +105 -0
- package/dist/_chunks/patient-details-DgfTJimE.js +759 -0
- package/dist/_chunks/{patient-search-CBC_ySF6.js → patient-search-CSWQKOSP.js} +3 -3
- package/dist/_chunks/{patient-shell-DV3XEtIB.js → patient-shell-BMwsIKlW.js} +3 -3
- package/dist/_chunks/patient-summary-card-D4NdgYJB.js +452 -0
- package/dist/_chunks/patient-table-CERknpd8.js +1110 -0
- package/dist/_chunks/{payment-form-DvjwYVIT.js → payment-form-CxqIXqw7.js} +2 -2
- package/dist/_chunks/{payment-request-card-DioWKBUq.js → payment-request-card-Blf-MFNY.js} +125 -136
- package/dist/_chunks/{pdf-viewer-D6BPfW2D.js → pdf-viewer-QfebdLOd.js} +192 -214
- package/dist/_chunks/{periodontal-chart-card-BuDEMbHE.js → periodontal-chart-card-hRRJY1NN.js} +2 -2
- package/dist/_chunks/permission-matrix-Bw5oexUt.js +174 -0
- package/dist/_chunks/position-grid-CcvqHaKN.js +169 -0
- package/dist/_chunks/postal-code-input-UCOYuRY2.js +192 -0
- package/dist/_chunks/{practice-results-KrTHqZua.js → practice-results-El5Z-oVp.js} +4 -4
- package/dist/_chunks/{pregnancy-dating-DORUAOHB.js → pregnancy-dating-CunHrOpO.js} +4 -4
- package/dist/_chunks/{pregnancy-weight-gain-DVz4rr7-.js → pregnancy-weight-gain-BUNpTsH-.js} +2 -2
- package/dist/_chunks/{product-hub-panel-e6pW220e.js → product-hub-panel-DtU7KXxm.js} +257 -217
- package/dist/_chunks/province-select-D_TZvix3.js +261 -0
- package/dist/_chunks/{public-header.agent-DqkqA-ca.js → public-header.agent-TxmC_x1I.js} +2 -2
- package/dist/_chunks/radiograph-panel.agent-tWjN2nHX.js +553 -0
- package/dist/_chunks/reviews-panel-DxkSrgMl.js +559 -0
- package/dist/_chunks/rich-text-editor-C8tyGjfb.js +2621 -0
- package/dist/_chunks/{scroll-area-5wNK0Cyz.js → scroll-area-BZOvUhwQ.js} +2 -2
- package/dist/_chunks/{select-DMLG44F5.js → select-KsyRr8WH.js} +114 -102
- package/dist/_chunks/{sheet-BxsE7eQm.js → sheet-umkfZjF6.js} +53 -42
- package/dist/_chunks/{sidebar-DY9jGjgt.js → sidebar-QCp9wHNP.js} +125 -113
- package/dist/_chunks/{sign-document-B4DeRhTe.js → sign-document-By6hMOra.js} +2 -2
- package/dist/_chunks/{stepper-accordion-Dki6r9ZE.js → stepper-accordion-DC-H-8v4.js} +38 -48
- package/dist/_chunks/tab-bar-Bv9nGNdO.js +262 -0
- package/dist/_chunks/{tabs-BxcOziCo.js → tabs-CYZVKKDl.js} +2 -2
- package/dist/_chunks/task-card-DCdsI0ZT.js +189 -0
- package/dist/_chunks/{task-tray-qOEQflu4.js → task-tray-DNVejijD.js} +2 -2
- package/dist/_chunks/tasks-panel-C9odmawT.js +757 -0
- package/dist/_chunks/token-insert-menu-CFQqTe_n.js +147 -0
- package/dist/_chunks/tool-rail-BZx0-yIr.js +524 -0
- package/dist/_chunks/tooth-scheme-DJZtzfeY.js +2133 -0
- package/dist/_chunks/{transaction-chip-DK84XCBU.js → transaction-chip-CscoQbxF.js} +88 -61
- package/dist/_chunks/{transcript-panel-3THQX6nJ.js → transcript-panel-CHGHHHdT.js} +95 -83
- package/dist/_chunks/{unit-converter-YEpD9evj.js → unit-converter-CwlZbfdn.js} +2 -2
- package/dist/_chunks/use-clamp-overflow-DQE2kwZ9.js +20 -0
- package/dist/_chunks/use-overflow-collapse-BIOzKbni.js +32 -0
- package/dist/_chunks/use-persistent-state-nZwZAnE9.js +24 -0
- package/dist/_chunks/{warning-stack-BsgaEbL8.js → warning-stack--sTrrBDA.js} +86 -101
- package/dist/_chunks/{workflow-map-Bdam9pGp.js → workflow-map-M8MBBHQm.js} +107 -119
- package/dist/_chunks/zoom-out-CgVtf2Wx.js +29 -0
- package/dist/agent/index.js +5 -4
- package/dist/agent/types.d.ts +19 -2
- package/dist/agent-catalog.json +3325 -322
- package/dist/agent-i18n/en.json +314 -14
- package/dist/components/_shared/entity-card/entity-card.d.ts +6 -0
- package/dist/components/_shared/entity-card/index.d.ts +1 -1
- package/dist/components/_shared/field-value.d.ts +21 -0
- package/dist/components/_shared/field-visibility-cog.d.ts +20 -0
- package/dist/components/_shared/field-visibility.d.ts +36 -0
- package/dist/components/_shared/option.d.ts +2 -0
- package/dist/components/_shared/patient-fields.d.ts +119 -0
- package/dist/components/address-fields/address-fields.agent.d.ts +9 -0
- package/dist/components/address-fields/address-fields.d.ts +29 -0
- package/dist/components/address-fields/index.d.ts +5 -0
- package/dist/components/address-fields/index.js +6 -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/alert.d.ts +5 -0
- package/dist/components/alert/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anatomy-scheme/anatomy-face-paths.d.ts +15 -0
- package/dist/components/anatomy-scheme/anatomy-muscle-paths.d.ts +20 -0
- package/dist/components/anatomy-scheme/anatomy-scheme-data.d.ts +121 -0
- package/dist/components/anatomy-scheme/anatomy-scheme.agent.d.ts +6 -0
- package/dist/components/anatomy-scheme/anatomy-scheme.d.ts +69 -0
- package/dist/components/anatomy-scheme/index.d.ts +6 -0
- package/dist/components/anatomy-scheme/index.js +17 -0
- package/dist/components/annotation-marker/annotation-marker.d.ts +33 -0
- package/dist/components/annotation-marker/index.d.ts +3 -0
- package/dist/components/annotation-marker/index.js +7 -0
- package/dist/components/app-frame/app-frame.d.ts +2 -2
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +25 -1
- package/dist/components/appointment-card/index.js +6 -5
- package/dist/components/appointment-timeline/appointment-timeline.agent.d.ts +4 -0
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +66 -0
- package/dist/components/appointment-timeline/index.d.ts +4 -0
- package/dist/components/appointment-timeline/index.js +6 -0
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/autocomplete.d.ts +10 -0
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/badge/badge.d.ts +6 -2
- 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-group/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/care-plan-header.agent.d.ts +4 -0
- package/dist/components/care-plan-header/care-plan-header.d.ts +111 -0
- package/dist/components/care-plan-header/index.d.ts +4 -0
- package/dist/components/care-plan-header/index.js +6 -0
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/city-input/city-input.agent.d.ts +8 -0
- package/dist/components/city-input/city-input.d.ts +57 -0
- package/dist/components/city-input/index.d.ts +5 -0
- package/dist/components/city-input/index.js +6 -0
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +21 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +17 -0
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/connection-status/connection-status.agent.d.ts +4 -0
- package/dist/components/connection-status/connection-status.d.ts +36 -0
- package/dist/components/connection-status/index.d.ts +4 -0
- package/dist/components/connection-status/index.js +6 -0
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/control-room-context.d.ts +53 -0
- package/dist/components/control-room-rail/control-room-rail.agent.d.ts +4 -0
- package/dist/components/control-room-rail/control-room-rail.d.ts +35 -0
- package/dist/components/control-room-rail/index.d.ts +6 -0
- package/dist/components/control-room-rail/index.js +10 -0
- package/dist/components/counter/counter.d.ts +1 -1
- package/dist/components/country-select/country-select.agent.d.ts +8 -0
- package/dist/components/country-select/country-select.d.ts +51 -0
- package/dist/components/country-select/index.d.ts +6 -0
- package/dist/components/country-select/index.js +9 -0
- package/dist/components/country-select/iso-3166.d.ts +15 -0
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/cell-renderers/actions-cell-renderer.d.ts +18 -0
- package/dist/components/data-table/cell-renderers/reorder-cell-renderer.d.ts +34 -0
- package/dist/components/data-table/index.d.ts +3 -1
- package/dist/components/data-table/index.js +35 -32
- package/dist/components/dependent-selector/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/email-input/index.js +1 -1
- package/dist/components/entity-summary/entity-summary.agent.d.ts +4 -0
- package/dist/components/entity-summary/entity-summary.d.ts +92 -0
- package/dist/components/entity-summary/index.d.ts +3 -0
- package/dist/components/entity-summary/index.js +5 -0
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/field-array/field-array.agent.d.ts +4 -0
- package/dist/components/field-array/field-array.d.ts +45 -0
- package/dist/components/field-array/index.d.ts +4 -0
- package/dist/components/field-array/index.js +6 -0
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/freemium-paywall.d.ts +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/iban-input/iban-input.agent.d.ts +4 -0
- package/dist/components/iban-input/iban-input.d.ts +51 -0
- package/dist/components/iban-input/index.d.ts +5 -0
- package/dist/components/iban-input/index.js +13 -0
- package/dist/components/iban-input/is-valid-iban.d.ts +31 -0
- package/dist/components/icon-picker/icon-picker.agent.d.ts +4 -0
- package/dist/components/icon-picker/icon-picker.d.ts +41 -0
- package/dist/components/icon-picker/index.d.ts +4 -0
- package/dist/components/icon-picker/index.js +6 -0
- package/dist/components/image-cropper/crop-geometry.d.ts +30 -0
- package/dist/components/image-cropper/image-cropper.agent.d.ts +4 -0
- package/dist/components/image-cropper/image-cropper.d.ts +32 -0
- package/dist/components/image-cropper/index.d.ts +5 -0
- package/dist/components/image-cropper/index.js +11 -0
- package/dist/components/index.d.ts +25 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-card/message-card.d.ts +14 -0
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/message-tray/message-tray.d.ts +4 -0
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/nav-grid/index.d.ts +4 -0
- package/dist/components/nav-grid/index.js +7 -0
- package/dist/components/nav-grid/nav-grid.agent.d.ts +4 -0
- package/dist/components/nav-grid/nav-grid.d.ts +41 -0
- package/dist/components/notes-panel/index.d.ts +3 -0
- package/dist/components/notes-panel/index.js +5 -0
- package/dist/components/notes-panel/notes-panel.agent.d.ts +4 -0
- package/dist/components/notes-panel/notes-panel.d.ts +94 -0
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-card/notification-card.d.ts +15 -0
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/notification-tray/notification-tray.d.ts +4 -0
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/panel-header/index.d.ts +3 -0
- package/dist/components/panel-header/index.js +7 -0
- package/dist/components/panel-header/panel-header.d.ts +41 -0
- package/dist/components/patient-details/index.d.ts +5 -0
- package/dist/components/patient-details/index.js +6 -0
- package/dist/components/patient-details/patient-details.agent.d.ts +4 -0
- package/dist/components/patient-details/patient-details.d.ts +96 -0
- 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 +40 -1
- package/dist/components/patient-table/columns.d.ts +69 -40
- package/dist/components/patient-table/index.d.ts +2 -6
- package/dist/components/patient-table/index.js +8 -9
- package/dist/components/patient-table/patient-table.d.ts +38 -4
- package/dist/components/patient-table/types.d.ts +52 -2
- package/dist/components/patient-table/use-responsive-columns.d.ts +8 -6
- 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-card/index.js +1 -1
- package/dist/components/permission-matrix/index.d.ts +4 -0
- package/dist/components/permission-matrix/index.js +7 -0
- package/dist/components/permission-matrix/permission-matrix.agent.d.ts +4 -0
- package/dist/components/permission-matrix/permission-matrix.d.ts +47 -0
- package/dist/components/position-grid/index.d.ts +4 -0
- package/dist/components/position-grid/index.js +7 -0
- package/dist/components/position-grid/position-grid.agent.d.ts +4 -0
- package/dist/components/position-grid/position-grid.d.ts +39 -0
- package/dist/components/postal-code-input/index.d.ts +5 -0
- package/dist/components/postal-code-input/index.js +6 -0
- package/dist/components/postal-code-input/postal-code-input.agent.d.ts +8 -0
- package/dist/components/postal-code-input/postal-code-input.d.ts +27 -0
- 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/product-hub-tray/index.js +1 -1
- package/dist/components/product-hub-tray/product-hub-tray.d.ts +13 -1
- package/dist/components/province-select/index.d.ts +6 -0
- package/dist/components/province-select/index.js +7 -0
- package/dist/components/province-select/it-provinces.d.ts +8 -0
- package/dist/components/province-select/province-select.agent.d.ts +8 -0
- package/dist/components/province-select/province-select.d.ts +38 -0
- package/dist/components/public-footer/public-footer.d.ts +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radiograph-panel/index.d.ts +4 -0
- package/dist/components/radiograph-panel/index.js +7 -0
- package/dist/components/radiograph-panel/radiograph-panel.agent.d.ts +13 -0
- package/dist/components/radiograph-panel/radiograph-panel.d.ts +36 -0
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +17 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +8 -2
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +2 -2
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/skeleton/skeleton.d.ts +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts +18 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-card/task-card.d.ts +14 -6
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.d.ts +4 -0
- package/dist/components/tasks-panel/index.js +6 -0
- package/dist/components/tasks-panel/tasks-panel.agent.d.ts +4 -0
- package/dist/components/tasks-panel/tasks-panel.d.ts +152 -0
- package/dist/components/token-insert-menu/index.d.ts +4 -0
- package/dist/components/token-insert-menu/index.js +6 -0
- package/dist/components/token-insert-menu/token-insert-menu.agent.d.ts +4 -0
- package/dist/components/token-insert-menu/token-insert-menu.d.ts +33 -0
- package/dist/components/tool-rail/index.d.ts +4 -0
- package/dist/components/tool-rail/index.js +6 -0
- package/dist/components/tool-rail/tool-rail.agent.d.ts +4 -0
- package/dist/components/tool-rail/tool-rail.d.ts +160 -0
- package/dist/components/tooth-scheme/index.d.ts +2 -2
- package/dist/components/tooth-scheme/index.js +30 -23
- package/dist/components/tooth-scheme/tooth-data.d.ts +112 -1
- package/dist/components/tooth-scheme/tooth-scheme.agent.d.ts +2 -2
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +84 -11
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +2 -2
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/transcript-panel/transcript-panel.d.ts +2 -2
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/warning-stack/warning-stack.d.ts +10 -7
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +24 -22
- package/dist/hooks/use-clamp-overflow.d.ts +19 -0
- package/dist/hooks/use-edge-resize.d.ts +2 -2
- package/dist/hooks/use-overflow-collapse.d.ts +46 -0
- package/dist/hooks/use-persistent-state.d.ts +7 -1
- package/dist/hooks/use-scroll-overflow.d.ts +36 -0
- package/dist/i18n/locales/ar.d.ts +475 -26
- package/dist/i18n/locales/ar.js +478 -31
- package/dist/i18n/locales/de.d.ts +475 -26
- package/dist/i18n/locales/de.js +480 -31
- package/dist/i18n/locales/el.d.ts +475 -26
- package/dist/i18n/locales/el.js +485 -31
- package/dist/i18n/locales/en.d.ts +476 -34
- package/dist/i18n/locales/en.js +492 -39
- package/dist/i18n/locales/es.d.ts +475 -26
- package/dist/i18n/locales/es.js +477 -31
- package/dist/i18n/locales/fr.d.ts +475 -26
- package/dist/i18n/locales/fr.js +480 -31
- package/dist/i18n/locales/hi.d.ts +475 -26
- package/dist/i18n/locales/hi.js +476 -31
- package/dist/i18n/locales/it.d.ts +475 -26
- package/dist/i18n/locales/it.js +480 -31
- package/dist/i18n/locales/ja.d.ts +475 -26
- package/dist/i18n/locales/ja.js +481 -31
- package/dist/i18n/locales/nl.d.ts +475 -26
- package/dist/i18n/locales/nl.js +473 -31
- package/dist/i18n/locales/pl.d.ts +475 -26
- package/dist/i18n/locales/pl.js +481 -31
- package/dist/i18n/locales/pt.d.ts +475 -26
- package/dist/i18n/locales/pt.js +485 -31
- package/dist/i18n/locales/ro.d.ts +475 -26
- package/dist/i18n/locales/ro.js +485 -31
- package/dist/i18n/locales/ru.d.ts +475 -26
- package/dist/i18n/locales/ru.js +478 -31
- package/dist/i18n/locales/sq.d.ts +475 -26
- package/dist/i18n/locales/sq.js +482 -31
- package/dist/i18n/locales/sv.d.ts +475 -26
- package/dist/i18n/locales/sv.js +480 -31
- package/dist/i18n/locales/tr.d.ts +475 -26
- package/dist/i18n/locales/tr.js +478 -31
- package/dist/i18n/locales/zh.d.ts +475 -26
- package/dist/i18n/locales/zh.js +473 -31
- package/dist/index.js +826 -709
- package/dist/locales/ar.json +480 -31
- package/dist/locales/de.json +480 -31
- package/dist/locales/el.json +480 -31
- package/dist/locales/en.json +480 -31
- package/dist/locales/es.json +480 -31
- package/dist/locales/fr.json +480 -31
- package/dist/locales/hi.json +480 -31
- package/dist/locales/it.json +480 -31
- package/dist/locales/ja.json +480 -31
- package/dist/locales/nl.json +480 -31
- package/dist/locales/pl.json +480 -31
- package/dist/locales/pt.json +480 -31
- package/dist/locales/ro.json +480 -31
- package/dist/locales/ru.json +480 -31
- package/dist/locales/sq.json +480 -31
- package/dist/locales/sv.json +480 -31
- package/dist/locales/tr.json +480 -31
- package/dist/locales/zh.json +480 -31
- package/dist/patterns/alia-assistant/alia-types.d.ts +9 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +9 -1
- package/package.json +101 -5
- package/dist/_chunks/ai-tools-rail-BA_sqy1A.js +0 -373
- package/dist/_chunks/appointment-tray-CZtvtaH-.js +0 -431
- package/dist/_chunks/clinical-note-card-DqQYf_D4.js +0 -333
- package/dist/_chunks/editable-currency-cell-renderer-kgqp_mIw.js +0 -448
- package/dist/_chunks/email-input-B_Y55f5G.js +0 -396
- package/dist/_chunks/message-card-Bx4GmLvf.js +0 -277
- package/dist/_chunks/notification-card-BiESdm8q.js +0 -255
- package/dist/_chunks/patient-summary-card-B836_fDB.js +0 -435
- package/dist/_chunks/patient-table-CDuosVru.js +0 -889
- package/dist/_chunks/reviews-panel-Dq7LMDcH.js +0 -555
- package/dist/_chunks/rich-text-editor-BsV7zUdg.js +0 -2142
- package/dist/_chunks/tab-bar-B1ovILzh.js +0 -105
- package/dist/_chunks/task-card-BwY9jaV1.js +0 -124
- package/dist/_chunks/tooth-scheme-yBr53cvv.js +0 -1330
- package/dist/_chunks/use-persistent-state-i23OWy6G.js +0 -24
- package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +0 -4
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +0 -68
- package/dist/components/ai-tools-rail/index.d.ts +0 -4
- package/dist/components/ai-tools-rail/index.js +0 -6
- package/dist/components/patient-table/cell-renderers/contact-cell.d.ts +0 -45
- package/dist/components/patient-table/cell-renderers/patient-identity-cell.d.ts +0 -26
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as t, jsxs as u, Fragment as ve } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as H, useMemo as
|
|
3
|
-
import { c as
|
|
2
|
+
import { forwardRef as H, useMemo as F, useRef as z, useCallback as q, useState as ge, useImperativeHandle as be, useEffect as ke } from "react";
|
|
3
|
+
import { c as j } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as M } from "react-i18next";
|
|
5
5
|
import { C } from "./card-DPmk26CL.js";
|
|
6
|
-
import { B as ye } from "./badge-
|
|
6
|
+
import { B as ye } from "./badge-DCOqV9mI.js";
|
|
7
7
|
import { a as Z } from "./key-value-pair-BrgbMfbF.js";
|
|
8
8
|
import { T as xe } from "./timestamp-BV2lC-wV.js";
|
|
9
9
|
import { I as S } from "./icon-button-LqoiKcUN.js";
|
|
10
10
|
import { P as U } from "./pencil-CfQX-0Qc.js";
|
|
11
|
-
import { c as
|
|
11
|
+
import { c as L } from "./createLucideIcon-CrFbzy84.js";
|
|
12
12
|
import { T as ae } from "./trash-2-rPAKaRgB.js";
|
|
13
13
|
import { C as Ne } from "./circle-BkqTgYmt.js";
|
|
14
14
|
import { u as Ce } from "./registry-DvAUVLHh.js";
|
|
15
|
-
import { A as
|
|
15
|
+
import { A as $ } from "./alert-CHYZ96tR.js";
|
|
16
16
|
import { B as _e } from "./button-DD_0Xdmr.js";
|
|
17
17
|
import { D as N } from "./dropdown-menu-qrxjymfw.js";
|
|
18
18
|
import { E } from "./empty-state-BLy7tigq.js";
|
|
@@ -25,14 +25,15 @@ import { M as ue } from "./mail-C8irm52s.js";
|
|
|
25
25
|
import { C as fe } from "./clock-21AGPWJ5.js";
|
|
26
26
|
import { C as Se } from "./chevron-up-zOEDrmBB.js";
|
|
27
27
|
import { C as Me } from "./chevron-down-BX_NP2Yh.js";
|
|
28
|
-
import {
|
|
28
|
+
import { L as ze } from "./list-checks-BUs75d_o.js";
|
|
29
|
+
import { C as Ae } from "./check-DPdL_Sm7.js";
|
|
29
30
|
/**
|
|
30
31
|
* @license lucide-react v1.8.0 - ISC
|
|
31
32
|
*
|
|
32
33
|
* This source code is licensed under the ISC license.
|
|
33
34
|
* See the LICENSE file in the root directory of this source tree.
|
|
34
35
|
*/
|
|
35
|
-
const
|
|
36
|
+
const Ie = [
|
|
36
37
|
["path", { d: "M10.1 2.182a10 10 0 0 1 3.8 0", key: "5ilxe3" }],
|
|
37
38
|
["path", { d: "M13.9 21.818a10 10 0 0 1-3.8 0", key: "11zvb9" }],
|
|
38
39
|
["path", { d: "M17.609 3.721a10 10 0 0 1 2.69 2.7", key: "1iw5b2" }],
|
|
@@ -41,31 +42,18 @@ const Ae = [
|
|
|
41
42
|
["path", { d: "M21.818 10.1a10 10 0 0 1 0 3.8", key: "qkgqxc" }],
|
|
42
43
|
["path", { d: "M3.721 6.391a10 10 0 0 1 2.7-2.69", key: "1mcia2" }],
|
|
43
44
|
["path", { d: "M6.391 20.279a10 10 0 0 1-2.69-2.7", key: "1fvljs" }]
|
|
44
|
-
],
|
|
45
|
+
], Te = L("circle-dashed", Ie);
|
|
45
46
|
/**
|
|
46
47
|
* @license lucide-react v1.8.0 - ISC
|
|
47
48
|
*
|
|
48
49
|
* This source code is licensed under the ISC license.
|
|
49
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
50
51
|
*/
|
|
51
|
-
const
|
|
52
|
+
const Ee = [
|
|
52
53
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
53
54
|
["line", { x1: "10", x2: "10", y1: "15", y2: "9", key: "c1nkhi" }],
|
|
54
55
|
["line", { x1: "14", x2: "14", y1: "15", y2: "9", key: "h65svq" }]
|
|
55
|
-
], je =
|
|
56
|
-
/**
|
|
57
|
-
* @license lucide-react v1.8.0 - ISC
|
|
58
|
-
*
|
|
59
|
-
* This source code is licensed under the ISC license.
|
|
60
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/
|
|
62
|
-
const Ee = [
|
|
63
|
-
["path", { d: "M13 5h8", key: "a7qcls" }],
|
|
64
|
-
["path", { d: "M13 12h8", key: "h98zly" }],
|
|
65
|
-
["path", { d: "M13 19h8", key: "c3s6r1" }],
|
|
66
|
-
["path", { d: "m3 17 2 2 4-4", key: "1jhpwq" }],
|
|
67
|
-
["path", { d: "m3 7 2 2 4-4", key: "1obspn" }]
|
|
68
|
-
], De = A("list-checks", Ee);
|
|
56
|
+
], je = L("circle-pause", Ee);
|
|
69
57
|
/**
|
|
70
58
|
* @license lucide-react v1.8.0 - ISC
|
|
71
59
|
*
|
|
@@ -77,27 +65,27 @@ const Le = [
|
|
|
77
65
|
["path", { d: "M6.16 6.16a9 9 0 1 0 12.68 12.68", key: "1x7qb5" }],
|
|
78
66
|
["path", { d: "M12 2v4", key: "3427ic" }],
|
|
79
67
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
80
|
-
],
|
|
68
|
+
], De = L("power-off", Le);
|
|
81
69
|
/**
|
|
82
70
|
* @license lucide-react v1.8.0 - ISC
|
|
83
71
|
*
|
|
84
72
|
* This source code is licensed under the ISC license.
|
|
85
73
|
* See the LICENSE file in the root directory of this source tree.
|
|
86
74
|
*/
|
|
87
|
-
const
|
|
75
|
+
const Ke = [
|
|
88
76
|
["path", { d: "M12 2v10", key: "mnfbl" }],
|
|
89
77
|
["path", { d: "M18.4 6.6a9 9 0 1 1-12.77.04", key: "obofu9" }]
|
|
90
|
-
],
|
|
78
|
+
], Be = L("power", Ke);
|
|
91
79
|
/**
|
|
92
80
|
* @license lucide-react v1.8.0 - ISC
|
|
93
81
|
*
|
|
94
82
|
* This source code is licensed under the ISC license.
|
|
95
83
|
* See the LICENSE file in the root directory of this source tree.
|
|
96
84
|
*/
|
|
97
|
-
const
|
|
85
|
+
const Pe = [
|
|
98
86
|
["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2", key: "1yt0o3" }],
|
|
99
87
|
["path", { d: "M12 18h.01", key: "mhygvu" }]
|
|
100
|
-
], me =
|
|
88
|
+
], me = L("smartphone", Pe), Re = j("ds:relative ds:w-full", {
|
|
101
89
|
variants: {
|
|
102
90
|
density: {
|
|
103
91
|
comfortable: "",
|
|
@@ -108,7 +96,7 @@ const Re = [
|
|
|
108
96
|
density: "comfortable"
|
|
109
97
|
}
|
|
110
98
|
});
|
|
111
|
-
function
|
|
99
|
+
function We(e) {
|
|
112
100
|
switch (e) {
|
|
113
101
|
case "active":
|
|
114
102
|
return {
|
|
@@ -124,7 +112,7 @@ function qe(e) {
|
|
|
124
112
|
default:
|
|
125
113
|
return {
|
|
126
114
|
badgeVariant: "neutral",
|
|
127
|
-
icon: /* @__PURE__ */ t(
|
|
115
|
+
icon: /* @__PURE__ */ t(Te, { "aria-hidden": "true" })
|
|
128
116
|
};
|
|
129
117
|
}
|
|
130
118
|
}
|
|
@@ -138,7 +126,7 @@ const Fe = H(
|
|
|
138
126
|
onToggleActive: a,
|
|
139
127
|
className: p
|
|
140
128
|
}, m) {
|
|
141
|
-
const { t: c } = M(), i =
|
|
129
|
+
const { t: c } = M(), i = We(s.status), l = s.status === "active", v = r === "compact", h = (w) => (k) => {
|
|
142
130
|
k.stopPropagation(), w == null || w();
|
|
143
131
|
}, y = /* @__PURE__ */ t(
|
|
144
132
|
ye,
|
|
@@ -154,7 +142,7 @@ const Fe = H(
|
|
|
154
142
|
{
|
|
155
143
|
ref: m,
|
|
156
144
|
variant: "default",
|
|
157
|
-
className:
|
|
145
|
+
className: Re({ density: r, className: p }),
|
|
158
146
|
"data-component": "workflow-card",
|
|
159
147
|
"data-component-id": s.id,
|
|
160
148
|
children: [
|
|
@@ -233,7 +221,7 @@ const Fe = H(
|
|
|
233
221
|
a && /* @__PURE__ */ t(
|
|
234
222
|
S,
|
|
235
223
|
{
|
|
236
|
-
icon: l ? /* @__PURE__ */ t(
|
|
224
|
+
icon: l ? /* @__PURE__ */ t(De, {}) : /* @__PURE__ */ t(Be, {}),
|
|
237
225
|
size: "sm",
|
|
238
226
|
intent: "ghost",
|
|
239
227
|
"aria-label": c(
|
|
@@ -260,7 +248,7 @@ const Fe = H(
|
|
|
260
248
|
}
|
|
261
249
|
);
|
|
262
250
|
Fe.displayName = "WorkflowCard";
|
|
263
|
-
const
|
|
251
|
+
const Ft = {
|
|
264
252
|
id: "workflow-card",
|
|
265
253
|
// Presentational summary card — no agent-facing action or state. Navigation
|
|
266
254
|
// is owned by the host pattern, so no capability is declared here.
|
|
@@ -279,7 +267,7 @@ const qt = {
|
|
|
279
267
|
description: "Sourced from the id prop."
|
|
280
268
|
}
|
|
281
269
|
}
|
|
282
|
-
},
|
|
270
|
+
}, qt = {
|
|
283
271
|
id: "workflow-map",
|
|
284
272
|
// Presentational linear visualisation — no agent-facing action or state.
|
|
285
273
|
capabilities: [],
|
|
@@ -301,7 +289,7 @@ const qt = {
|
|
|
301
289
|
description: "Stable opaque workflow node id emitted on each step."
|
|
302
290
|
}
|
|
303
291
|
}
|
|
304
|
-
},
|
|
292
|
+
}, qe = {
|
|
305
293
|
id: "workflow-editor",
|
|
306
294
|
// `goto_step` focuses a node (navigation). No `expand` capability: the
|
|
307
295
|
// WorkflowEditorHandle exposes no expand/collapse method to back it.
|
|
@@ -429,7 +417,7 @@ function Oe(e, s, r) {
|
|
|
429
417
|
const m = ee(ee(e, a.id), p.id), c = r === "up" ? a : p, i = r === "up" ? p : a, l = ((h = o[Math.min(d, n) - 1]) == null ? void 0 : h.id) ?? null, v = V(m, l, c);
|
|
430
418
|
return V(v, c.id, i);
|
|
431
419
|
}
|
|
432
|
-
const
|
|
420
|
+
const $e = /* @__PURE__ */ new Set([
|
|
433
421
|
"dateOfBirth",
|
|
434
422
|
"date_of_birth",
|
|
435
423
|
"firstName",
|
|
@@ -449,10 +437,10 @@ const Ve = /* @__PURE__ */ new Set([
|
|
|
449
437
|
"address",
|
|
450
438
|
"id"
|
|
451
439
|
]);
|
|
452
|
-
function
|
|
453
|
-
return
|
|
440
|
+
function Ve(e) {
|
|
441
|
+
return $e.has(e);
|
|
454
442
|
}
|
|
455
|
-
const
|
|
443
|
+
const D = {
|
|
456
444
|
add_delay: {
|
|
457
445
|
labelKey: "workflow.action.addDelay",
|
|
458
446
|
iconName: "Clock"
|
|
@@ -481,7 +469,7 @@ const L = {
|
|
|
481
469
|
labelKey: "workflow.action.webhook",
|
|
482
470
|
iconName: "Globe"
|
|
483
471
|
}
|
|
484
|
-
},
|
|
472
|
+
}, He = {
|
|
485
473
|
Clock: fe,
|
|
486
474
|
Mail: ue,
|
|
487
475
|
Smartphone: me,
|
|
@@ -494,14 +482,14 @@ function Y({
|
|
|
494
482
|
iconName: e,
|
|
495
483
|
className: s
|
|
496
484
|
}) {
|
|
497
|
-
const r =
|
|
485
|
+
const r = He[e];
|
|
498
486
|
return /* @__PURE__ */ t(r, { "aria-hidden": "true", className: s ?? "ds:size-4" });
|
|
499
487
|
}
|
|
500
|
-
const
|
|
488
|
+
const Ue = 40, Ge = 60;
|
|
501
489
|
function te(e, s) {
|
|
502
490
|
return e.length <= s ? e : `${e.slice(0, s - 1)}…`;
|
|
503
491
|
}
|
|
504
|
-
function
|
|
492
|
+
function Ye(e, s) {
|
|
505
493
|
switch (e.kind) {
|
|
506
494
|
case "add_delay": {
|
|
507
495
|
const r = e.days ?? 0, o = s("workflow.delay.summary", { count: r });
|
|
@@ -509,11 +497,11 @@ function Je(e, s) {
|
|
|
509
497
|
}
|
|
510
498
|
case "send_email": {
|
|
511
499
|
const r = e.subject ?? "", d = `${s("workflow.action.sendEmail")}: ${r}`;
|
|
512
|
-
return { text: te(d,
|
|
500
|
+
return { text: te(d, Ue), full: d };
|
|
513
501
|
}
|
|
514
502
|
case "send_sms": {
|
|
515
503
|
const r = e.body ?? "";
|
|
516
|
-
return { text: te(r,
|
|
504
|
+
return { text: te(r, Ge), full: r };
|
|
517
505
|
}
|
|
518
506
|
case "create_task": {
|
|
519
507
|
const r = e.title ?? "";
|
|
@@ -532,7 +520,7 @@ const se = [
|
|
|
532
520
|
"ds:w-full",
|
|
533
521
|
"ds:text-start",
|
|
534
522
|
"ds:gap-[var(--spacing-sm)]"
|
|
535
|
-
].join(" "),
|
|
523
|
+
].join(" "), O = [
|
|
536
524
|
"ds:block",
|
|
537
525
|
"ds:self-start",
|
|
538
526
|
"ds:h-[var(--spacing-md)]",
|
|
@@ -540,7 +528,7 @@ const se = [
|
|
|
540
528
|
"ds:border-inline-start-[var(--border-width-hairline)]",
|
|
541
529
|
"ds:border-solid",
|
|
542
530
|
"ds:border-[color:var(--border)]"
|
|
543
|
-
].join(" "),
|
|
531
|
+
].join(" "), Je = [
|
|
544
532
|
"ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
|
|
545
533
|
"ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
|
|
546
534
|
"ds:rounded-[var(--radius-full)]",
|
|
@@ -555,21 +543,21 @@ const se = [
|
|
|
555
543
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
556
544
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
557
545
|
"ds:disabled:opacity-50 ds:disabled:cursor-not-allowed"
|
|
558
|
-
].join(" "),
|
|
546
|
+
].join(" "), Qe = [
|
|
559
547
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
560
548
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
561
549
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
562
550
|
"ds:rounded-[var(--radius-lg)]"
|
|
563
|
-
].join(" "),
|
|
564
|
-
|
|
551
|
+
].join(" "), Xe = Object.keys(
|
|
552
|
+
D
|
|
565
553
|
);
|
|
566
554
|
let re = 0;
|
|
567
|
-
function
|
|
555
|
+
function Ze() {
|
|
568
556
|
re += 1;
|
|
569
557
|
const e = Math.random().toString(36).slice(2, 8);
|
|
570
558
|
return `wf-node-${Date.now()}-${re}-${e}`;
|
|
571
559
|
}
|
|
572
|
-
function
|
|
560
|
+
function et(e) {
|
|
573
561
|
switch (e) {
|
|
574
562
|
case "add_delay":
|
|
575
563
|
return { kind: "add_delay", days: 1 };
|
|
@@ -592,13 +580,13 @@ function tt(e) {
|
|
|
592
580
|
return { kind: "webhook", url: "", method: "POST" };
|
|
593
581
|
}
|
|
594
582
|
}
|
|
595
|
-
function
|
|
596
|
-
const s = z(e), r =
|
|
583
|
+
function tt(e = 0) {
|
|
584
|
+
const s = z(e), r = q((o) => {
|
|
597
585
|
s.current = o;
|
|
598
586
|
}, []);
|
|
599
587
|
return [s, r];
|
|
600
588
|
}
|
|
601
|
-
function
|
|
589
|
+
function st({
|
|
602
590
|
node: e,
|
|
603
591
|
position: s,
|
|
604
592
|
total: r,
|
|
@@ -608,7 +596,7 @@ function rt({
|
|
|
608
596
|
onMove: a,
|
|
609
597
|
registerRef: p
|
|
610
598
|
}) {
|
|
611
|
-
const { t: m } = M(), c =
|
|
599
|
+
const { t: m } = M(), c = D[e.type], i = z(null), [l, v] = tt(0), h = q(
|
|
612
600
|
(g) => {
|
|
613
601
|
var P, R;
|
|
614
602
|
const _ = (P = i.current) == null ? void 0 : P.querySelectorAll(
|
|
@@ -623,10 +611,10 @@ function rt({
|
|
|
623
611
|
g.target === g.currentTarget && (g.key === "ArrowRight" || g.key === "ArrowDown") && (g.preventDefault(), h(0));
|
|
624
612
|
}, x = (g) => {
|
|
625
613
|
g.key === "ArrowRight" ? (g.preventDefault(), h(l.current + 1)) : g.key === "ArrowLeft" ? (g.preventDefault(), h(l.current - 1)) : g.key === "Home" ? (g.preventDefault(), h(0)) : g.key === "End" && (g.preventDefault(), h(Number.POSITIVE_INFINITY));
|
|
626
|
-
}, w =
|
|
614
|
+
}, w = Ye(e.settings, m), k = m(c.labelKey), A = s > 0, I = s < r - 1, K = m("workflow.editor.position", {
|
|
627
615
|
current: s + 1,
|
|
628
616
|
total: r
|
|
629
|
-
}),
|
|
617
|
+
}), T = m("workflow.editor.nodeAriaLabel", {
|
|
630
618
|
type: k,
|
|
631
619
|
current: s + 1,
|
|
632
620
|
total: r
|
|
@@ -639,9 +627,9 @@ function rt({
|
|
|
639
627
|
ref: (g) => p(e.id, g),
|
|
640
628
|
tabIndex: o ? -1 : 0,
|
|
641
629
|
onKeyDown: y,
|
|
642
|
-
"aria-label":
|
|
630
|
+
"aria-label": T,
|
|
643
631
|
"data-node-id": e.id,
|
|
644
|
-
className:
|
|
632
|
+
className: Qe,
|
|
645
633
|
children: /* @__PURE__ */ u(C, { variant: "outlined", children: [
|
|
646
634
|
/* @__PURE__ */ t(C.Header, { className: "ds:pb-[var(--spacing-sm)]", children: /* @__PURE__ */ u("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
647
635
|
/* @__PURE__ */ t(
|
|
@@ -683,7 +671,7 @@ function rt({
|
|
|
683
671
|
icon: /* @__PURE__ */ t(Se, {}),
|
|
684
672
|
size: "sm",
|
|
685
673
|
intent: "ghost",
|
|
686
|
-
disabled: o || !
|
|
674
|
+
disabled: o || !A,
|
|
687
675
|
tabIndex: -1,
|
|
688
676
|
"aria-label": m("workflow.editor.moveUp"),
|
|
689
677
|
onClick: () => a(e.id, "up")
|
|
@@ -696,7 +684,7 @@ function rt({
|
|
|
696
684
|
icon: /* @__PURE__ */ t(Me, {}),
|
|
697
685
|
size: "sm",
|
|
698
686
|
intent: "ghost",
|
|
699
|
-
disabled: o || !
|
|
687
|
+
disabled: o || !I,
|
|
700
688
|
tabIndex: -1,
|
|
701
689
|
"aria-label": m("workflow.editor.moveDown"),
|
|
702
690
|
onClick: () => a(e.id, "down")
|
|
@@ -727,7 +715,7 @@ function rt({
|
|
|
727
715
|
children: w.text
|
|
728
716
|
}
|
|
729
717
|
) }) : null,
|
|
730
|
-
e.settings.kind === "update_patient_field" &&
|
|
718
|
+
e.settings.kind === "update_patient_field" && Ve(e.settings.fieldId) ? /* @__PURE__ */ t(C.Body, { className: "ds:pt-0", children: /* @__PURE__ */ t($, { variant: "error", "data-testid": "workflow-editor-invalid-field", children: m("workflow.editor.invalidField") }) }) : null
|
|
731
719
|
] })
|
|
732
720
|
}
|
|
733
721
|
)
|
|
@@ -748,7 +736,7 @@ function oe({
|
|
|
748
736
|
type: "button",
|
|
749
737
|
disabled: r,
|
|
750
738
|
"aria-label": o,
|
|
751
|
-
className:
|
|
739
|
+
className: Je,
|
|
752
740
|
children: [
|
|
753
741
|
/* @__PURE__ */ t(ne, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
754
742
|
d ? null : /* @__PURE__ */ t("span", { className: "ds:text-[length:var(--font-size-sm)]", children: o })
|
|
@@ -758,7 +746,7 @@ function oe({
|
|
|
758
746
|
/* @__PURE__ */ u(N.Content, { align: "start", sideOffset: 6, children: [
|
|
759
747
|
/* @__PURE__ */ t(N.Label, { children: n("workflow.editor.addAction") }),
|
|
760
748
|
e.map((a) => {
|
|
761
|
-
const p =
|
|
749
|
+
const p = D[a];
|
|
762
750
|
return /* @__PURE__ */ t(
|
|
763
751
|
N.Item,
|
|
764
752
|
{
|
|
@@ -772,7 +760,7 @@ function oe({
|
|
|
772
760
|
] })
|
|
773
761
|
] });
|
|
774
762
|
}
|
|
775
|
-
function
|
|
763
|
+
function rt({ criteria: e, onEdit: s, disabled: r }) {
|
|
776
764
|
const { t: o } = M(), d = (e == null ? void 0 : e.ruleCount) ?? 0, n = d > 0 ? o("workflow.editor.criteriaCount", { count: d }) : o("workflow.editor.noCriteria");
|
|
777
765
|
return /* @__PURE__ */ t(C, { variant: "outlined", children: /* @__PURE__ */ t(C.Header, { className: "ds:pb-[var(--spacing-sm)]", children: /* @__PURE__ */ u("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
778
766
|
/* @__PURE__ */ u("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col", children: [
|
|
@@ -792,7 +780,7 @@ function ot({ criteria: e, onEdit: s, disabled: r }) {
|
|
|
792
780
|
) : null
|
|
793
781
|
] }) }) });
|
|
794
782
|
}
|
|
795
|
-
const
|
|
783
|
+
const ot = H(
|
|
796
784
|
function({
|
|
797
785
|
graph: s,
|
|
798
786
|
onChange: r,
|
|
@@ -804,29 +792,29 @@ const at = H(
|
|
|
804
792
|
onDeleteNode: m,
|
|
805
793
|
className: c
|
|
806
794
|
}, i) {
|
|
807
|
-
const { t: l } = M(), v = a ??
|
|
795
|
+
const { t: l } = M(), v = a ?? Xe, h = F(() => G(s), [s]), y = z(/* @__PURE__ */ new Map()), x = z(null), w = q(
|
|
808
796
|
(f) => {
|
|
809
797
|
n || r(f);
|
|
810
798
|
},
|
|
811
799
|
[n, r]
|
|
812
|
-
), k =
|
|
800
|
+
), k = q((f, b) => {
|
|
813
801
|
b ? y.current.set(f, b) : y.current.delete(f);
|
|
814
|
-
}, []), [
|
|
815
|
-
K.current =
|
|
816
|
-
const
|
|
817
|
-
be(i, () =>
|
|
818
|
-
const g =
|
|
802
|
+
}, []), [A, I] = ge(null), K = z(null);
|
|
803
|
+
K.current = A;
|
|
804
|
+
const T = z(null);
|
|
805
|
+
be(i, () => T.current, []);
|
|
806
|
+
const g = F(
|
|
819
807
|
() => ({
|
|
820
808
|
getTotalSteps: () => h.length,
|
|
821
809
|
getCurrentStep: () => K.current,
|
|
822
810
|
gotoStep: (f) => {
|
|
823
811
|
const b = y.current.get(f);
|
|
824
|
-
b && (b.focus(),
|
|
812
|
+
b && (b.focus(), I(f));
|
|
825
813
|
}
|
|
826
814
|
}),
|
|
827
815
|
[h.length]
|
|
828
816
|
);
|
|
829
|
-
Ce(
|
|
817
|
+
Ce(qe, g, void 0), ke(() => {
|
|
830
818
|
const f = x.current;
|
|
831
819
|
if (!f) return;
|
|
832
820
|
const b = y.current.get(f);
|
|
@@ -835,9 +823,9 @@ const at = H(
|
|
|
835
823
|
const _ = (f, b) => {
|
|
836
824
|
if (n) return;
|
|
837
825
|
const W = {
|
|
838
|
-
id:
|
|
826
|
+
id: Ze(),
|
|
839
827
|
type: b,
|
|
840
|
-
settings:
|
|
828
|
+
settings: et(b)
|
|
841
829
|
};
|
|
842
830
|
x.current = W.id, w(V(s, f, W));
|
|
843
831
|
}, B = (f, b) => {
|
|
@@ -846,21 +834,21 @@ const at = H(
|
|
|
846
834
|
n || !p || p(f);
|
|
847
835
|
}, R = (f) => {
|
|
848
836
|
n || !m || m(f);
|
|
849
|
-
}, J = () => n ? /* @__PURE__ */ t(
|
|
837
|
+
}, J = () => n ? /* @__PURE__ */ t($, { variant: "warning", children: /* @__PURE__ */ t($.Title, { as: "p", children: l("workflow.editor.activeLock") }) }) : null, Q = () => o || d ? /* @__PURE__ */ u(ve, { children: [
|
|
850
838
|
/* @__PURE__ */ t(
|
|
851
|
-
|
|
839
|
+
rt,
|
|
852
840
|
{
|
|
853
841
|
criteria: o,
|
|
854
842
|
onEdit: d,
|
|
855
843
|
disabled: n
|
|
856
844
|
}
|
|
857
845
|
),
|
|
858
|
-
/* @__PURE__ */ t("span", { "aria-hidden": "true", className:
|
|
846
|
+
/* @__PURE__ */ t("span", { "aria-hidden": "true", className: O })
|
|
859
847
|
] }) : null, X = h.length;
|
|
860
848
|
return X === 0 ? /* @__PURE__ */ u(
|
|
861
849
|
"div",
|
|
862
850
|
{
|
|
863
|
-
ref:
|
|
851
|
+
ref: T,
|
|
864
852
|
className: [se, c].filter(Boolean).join(" "),
|
|
865
853
|
children: [
|
|
866
854
|
J(),
|
|
@@ -926,7 +914,7 @@ const at = H(
|
|
|
926
914
|
/* @__PURE__ */ u(N.Content, { align: "center", sideOffset: 6, children: [
|
|
927
915
|
/* @__PURE__ */ t(N.Label, { children: l("workflow.editor.addAction") }),
|
|
928
916
|
v.map((f) => {
|
|
929
|
-
const b =
|
|
917
|
+
const b = D[f];
|
|
930
918
|
return /* @__PURE__ */ t(
|
|
931
919
|
N.Item,
|
|
932
920
|
{
|
|
@@ -947,7 +935,7 @@ const at = H(
|
|
|
947
935
|
) : /* @__PURE__ */ u(
|
|
948
936
|
"div",
|
|
949
937
|
{
|
|
950
|
-
ref:
|
|
938
|
+
ref: T,
|
|
951
939
|
"data-component": "workflow-editor",
|
|
952
940
|
className: [se, c].filter(Boolean).join(" "),
|
|
953
941
|
children: [
|
|
@@ -969,9 +957,9 @@ const at = H(
|
|
|
969
957
|
"aria-label": l("workflow.editor.pipeline"),
|
|
970
958
|
className: "ds:list-none ds:m-0 ds:p-0 ds:flex ds:flex-col",
|
|
971
959
|
children: h.map((f, b) => /* @__PURE__ */ u("li", { className: "ds:list-none ds:flex ds:flex-col", children: [
|
|
972
|
-
/* @__PURE__ */ t("span", { "aria-hidden": "true", className:
|
|
960
|
+
/* @__PURE__ */ t("span", { "aria-hidden": "true", className: O }),
|
|
973
961
|
/* @__PURE__ */ t(
|
|
974
|
-
|
|
962
|
+
st,
|
|
975
963
|
{
|
|
976
964
|
node: f,
|
|
977
965
|
position: b,
|
|
@@ -983,7 +971,7 @@ const at = H(
|
|
|
983
971
|
registerRef: k
|
|
984
972
|
}
|
|
985
973
|
),
|
|
986
|
-
/* @__PURE__ */ t("span", { "aria-hidden": "true", className:
|
|
974
|
+
/* @__PURE__ */ t("span", { "aria-hidden": "true", className: O }),
|
|
987
975
|
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
988
976
|
oe,
|
|
989
977
|
{
|
|
@@ -1001,8 +989,8 @@ const at = H(
|
|
|
1001
989
|
);
|
|
1002
990
|
}
|
|
1003
991
|
);
|
|
1004
|
-
|
|
1005
|
-
const
|
|
992
|
+
ot.displayName = "WorkflowEditor";
|
|
993
|
+
const at = {
|
|
1006
994
|
Clock: fe,
|
|
1007
995
|
Mail: ue,
|
|
1008
996
|
Smartphone: me,
|
|
@@ -1010,7 +998,7 @@ const nt = {
|
|
|
1010
998
|
MessageCircle: le,
|
|
1011
999
|
UserCog: de,
|
|
1012
1000
|
Globe: ie
|
|
1013
|
-
},
|
|
1001
|
+
}, nt = j(
|
|
1014
1002
|
// The map is a list of steps — never a list of meaningful controls.
|
|
1015
1003
|
// Layout via logical properties only; connectors are sibling spacers
|
|
1016
1004
|
// styled with border-inline-start / border-block-end (see node/spacer).
|
|
@@ -1031,14 +1019,14 @@ const nt = {
|
|
|
1031
1019
|
compact: !1
|
|
1032
1020
|
}
|
|
1033
1021
|
}
|
|
1034
|
-
), pe =
|
|
1022
|
+
), pe = j("ds:flex", {
|
|
1035
1023
|
variants: {
|
|
1036
1024
|
orientation: {
|
|
1037
1025
|
vertical: "ds:flex-col ds:items-stretch",
|
|
1038
1026
|
horizontal: "ds:flex-row ds:items-center"
|
|
1039
1027
|
}
|
|
1040
1028
|
}
|
|
1041
|
-
}), he =
|
|
1029
|
+
}), he = j(
|
|
1042
1030
|
[
|
|
1043
1031
|
"ds:relative ds:flex ds:items-center",
|
|
1044
1032
|
"ds:gap-[var(--spacing-sm)]",
|
|
@@ -1084,7 +1072,7 @@ const nt = {
|
|
|
1084
1072
|
}
|
|
1085
1073
|
}
|
|
1086
1074
|
}
|
|
1087
|
-
), we =
|
|
1075
|
+
), we = j(
|
|
1088
1076
|
["ds:block", "ds:border-solid", "ds:border-[color:var(--border)]"].join(" "),
|
|
1089
1077
|
{
|
|
1090
1078
|
variants: {
|
|
@@ -1133,7 +1121,7 @@ const nt = {
|
|
|
1133
1121
|
]
|
|
1134
1122
|
}
|
|
1135
1123
|
);
|
|
1136
|
-
function
|
|
1124
|
+
function it(e) {
|
|
1137
1125
|
switch (e.kind) {
|
|
1138
1126
|
case "add_delay":
|
|
1139
1127
|
return typeof e.days == "number" && e.days > 0 ? {
|
|
@@ -1162,11 +1150,11 @@ function dt(e) {
|
|
|
1162
1150
|
return;
|
|
1163
1151
|
}
|
|
1164
1152
|
}
|
|
1165
|
-
function
|
|
1153
|
+
function dt(e, s) {
|
|
1166
1154
|
if (e !== void 0)
|
|
1167
1155
|
return typeof e == "string" ? e : s(e.key, e.options);
|
|
1168
1156
|
}
|
|
1169
|
-
const
|
|
1157
|
+
const lt = H(
|
|
1170
1158
|
function({
|
|
1171
1159
|
graph: s,
|
|
1172
1160
|
activeNodeId: r,
|
|
@@ -1178,7 +1166,7 @@ const ct = H(
|
|
|
1178
1166
|
"aria-label": m,
|
|
1179
1167
|
...c
|
|
1180
1168
|
}, i) {
|
|
1181
|
-
const { t: l } = M(), v =
|
|
1169
|
+
const { t: l } = M(), v = F(() => G(s), [s]), h = F(
|
|
1182
1170
|
() => r ? v.findIndex((w) => w.id === r) : -1,
|
|
1183
1171
|
[v, r]
|
|
1184
1172
|
), y = m ?? l("workflow.map.label", { count: v.length }), x = (w) => h === -1 ? "neutral" : w === h ? "current" : w < h ? "completed" : "pending";
|
|
@@ -1192,11 +1180,11 @@ const ct = H(
|
|
|
1192
1180
|
"aria-label": y,
|
|
1193
1181
|
"data-component": "workflow-map",
|
|
1194
1182
|
"data-component-id": c.id,
|
|
1195
|
-
className:
|
|
1183
|
+
className: nt({ orientation: n, compact: a, className: p }),
|
|
1196
1184
|
...c,
|
|
1197
1185
|
children: [
|
|
1198
1186
|
d ? /* @__PURE__ */ t(
|
|
1199
|
-
|
|
1187
|
+
ut,
|
|
1200
1188
|
{
|
|
1201
1189
|
orientation: n,
|
|
1202
1190
|
compact: a,
|
|
@@ -1204,15 +1192,15 @@ const ct = H(
|
|
|
1204
1192
|
}
|
|
1205
1193
|
) : null,
|
|
1206
1194
|
v.map((w, k) => {
|
|
1207
|
-
const
|
|
1195
|
+
const A = x(k), I = k === v.length - 1;
|
|
1208
1196
|
return /* @__PURE__ */ t(
|
|
1209
|
-
|
|
1197
|
+
ct,
|
|
1210
1198
|
{
|
|
1211
1199
|
node: w,
|
|
1212
|
-
state:
|
|
1200
|
+
state: A,
|
|
1213
1201
|
orientation: n,
|
|
1214
1202
|
compact: a,
|
|
1215
|
-
isLast:
|
|
1203
|
+
isLast: I,
|
|
1216
1204
|
onNodeClick: o
|
|
1217
1205
|
},
|
|
1218
1206
|
w.id
|
|
@@ -1224,8 +1212,8 @@ const ct = H(
|
|
|
1224
1212
|
);
|
|
1225
1213
|
}
|
|
1226
1214
|
);
|
|
1227
|
-
|
|
1228
|
-
function
|
|
1215
|
+
lt.displayName = "WorkflowMap";
|
|
1216
|
+
function ct({
|
|
1229
1217
|
node: e,
|
|
1230
1218
|
state: s,
|
|
1231
1219
|
orientation: r,
|
|
@@ -1233,7 +1221,7 @@ function ut({
|
|
|
1233
1221
|
isLast: d,
|
|
1234
1222
|
onNodeClick: n
|
|
1235
1223
|
}) {
|
|
1236
|
-
const { t: a } = M(), p =
|
|
1224
|
+
const { t: a } = M(), p = D[e.type], m = at[p.iconName], c = a(p.labelKey), i = dt(it(e.settings), a), l = typeof n == "function", v = s === "current", h = s === "completed", y = (k) => {
|
|
1237
1225
|
l && (k.preventDefault(), n == null || n(e.id));
|
|
1238
1226
|
}, x = (k) => {
|
|
1239
1227
|
l && (k.key === "Enter" || k.key === " ") && (k.preventDefault(), n == null || n(e.id));
|
|
@@ -1272,7 +1260,7 @@ function ut({
|
|
|
1272
1260
|
"aria-hidden": "true",
|
|
1273
1261
|
className: "ds:flex ds:items-center ds:justify-center ds:shrink-0 ds:size-[var(--spacing-md)] ds:text-[var(--muted-foreground)]",
|
|
1274
1262
|
children: h ? /* @__PURE__ */ t(
|
|
1275
|
-
|
|
1263
|
+
Ae,
|
|
1276
1264
|
{
|
|
1277
1265
|
className: "ds:size-[var(--spacing-md)] ds:text-[color:var(--success)]",
|
|
1278
1266
|
"data-testid": "workflow-map-check"
|
|
@@ -1306,7 +1294,7 @@ function ut({
|
|
|
1306
1294
|
] })
|
|
1307
1295
|
);
|
|
1308
1296
|
}
|
|
1309
|
-
function
|
|
1297
|
+
function ut({
|
|
1310
1298
|
orientation: e,
|
|
1311
1299
|
compact: s,
|
|
1312
1300
|
criteria: r
|
|
@@ -1329,7 +1317,7 @@ function ft({
|
|
|
1329
1317
|
{
|
|
1330
1318
|
"aria-hidden": "true",
|
|
1331
1319
|
className: "ds:flex ds:items-center ds:justify-center ds:shrink-0 ds:size-[var(--spacing-md)] ds:text-[var(--muted-foreground)]",
|
|
1332
|
-
children: /* @__PURE__ */ t(
|
|
1320
|
+
children: /* @__PURE__ */ t(ze, { className: "ds:size-[var(--spacing-md)]" })
|
|
1333
1321
|
}
|
|
1334
1322
|
),
|
|
1335
1323
|
/* @__PURE__ */ u("span", { className: "ds:flex ds:flex-col ds:min-w-0 ds:flex-1", children: [
|
|
@@ -1351,18 +1339,18 @@ function ft({
|
|
|
1351
1339
|
] });
|
|
1352
1340
|
}
|
|
1353
1341
|
export {
|
|
1354
|
-
|
|
1342
|
+
$e as C,
|
|
1355
1343
|
Fe as W,
|
|
1356
|
-
|
|
1357
|
-
|
|
1344
|
+
ot as a,
|
|
1345
|
+
lt as b,
|
|
1358
1346
|
V as c,
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1347
|
+
Ft as d,
|
|
1348
|
+
qe as e,
|
|
1349
|
+
qt as f,
|
|
1350
|
+
Ve as i,
|
|
1363
1351
|
G as l,
|
|
1364
1352
|
Oe as m,
|
|
1365
1353
|
ee as r,
|
|
1366
|
-
|
|
1354
|
+
D as w
|
|
1367
1355
|
};
|
|
1368
|
-
//# sourceMappingURL=workflow-map-
|
|
1356
|
+
//# sourceMappingURL=workflow-map-M8MBBHQm.js.map
|