@alfadocs/ui-kit 0.70.0 → 0.72.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/{accordion-DnIa7OHX.js → accordion-C11v9ouP.js} +2 -2
- package/dist/_chunks/{address-autocomplete-BEX9PXty.js → address-autocomplete-Bq-1n1UX.js} +2 -2
- package/dist/_chunks/address-fields-COyjgqxA.js +246 -0
- package/dist/_chunks/{agenda-card-BQ-IKAru.js → agenda-card-BCGaQazD.js} +2 -2
- package/dist/_chunks/{agenda-tray-CGXRk58j.js → agenda-tray-loL2A3Cx.js} +4 -4
- package/dist/_chunks/{ai-consent-banner-Be-h9mRI.js → ai-consent-banner-Bke9m8VS.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-CuhTo9mh.js → ai-prompt-input-TVI95hJD.js} +4 -4
- package/dist/_chunks/{alert-CHYZ96tR.js → alert-KJbsPYkI.js} +8 -8
- package/dist/_chunks/{alia-sidebar-B47qRQb5.js → alia-sidebar-BV5lBSFR.js} +299 -242
- package/dist/_chunks/{anamnesis-card-DvYCa16e.js → anamnesis-card-CWO4Ui9c.js} +4 -4
- package/dist/_chunks/{antenatal-schedule-timeline-CwXrQRm1.js → antenatal-schedule-timeline-CY-VsLok.js} +3 -3
- package/dist/_chunks/{app-frame-BYx1gcV7.js → app-frame-DIEMIC5V.js} +67 -56
- package/dist/_chunks/{appointment-card-C06aZqA7.js → appointment-card-Cy4FOkGP.js} +40 -39
- package/dist/_chunks/{appointment-timeline-BJM0S_Fg.js → appointment-timeline-BWAPPk8F.js} +159 -157
- package/dist/_chunks/{appointment-tray-DRRw5ROi.js → appointment-tray-D3mk04TT.js} +4 -4
- package/dist/_chunks/{ar-Cn5Fq48Z.js → ar-BOqyIfoY.js} +2 -2
- package/dist/_chunks/astroid-BN4f5VXU.js +20 -0
- package/dist/_chunks/{audio-recorder-Cpdk5qpQ.js → audio-recorder-BbjG55dP.js} +9 -9
- package/dist/_chunks/{autocomplete-DOeGouCL.js → autocomplete-BrONKN8l.js} +168 -146
- package/dist/_chunks/{bishop-score-DnYWtZa_.js → bishop-score-C6eoak_j.js} +4 -4
- package/dist/_chunks/{bmi-calculator-zjeY4E7J.js → bmi-calculator-BmQfoEGP.js} +5 -5
- package/dist/_chunks/{booking-DUBI0oqt.js → booking-B62CMY5k.js} +205 -221
- package/dist/_chunks/{breadcrumb-CchdeG7d.js → breadcrumb-agut0PwN.js} +3 -3
- package/dist/_chunks/{button-group-Ciq6J4IW.js → button-group-CvEnVzY7.js} +32 -35
- package/dist/_chunks/{calculator-dialog-BR5iU0kf.js → calculator-dialog-DuXMQSdm.js} +2 -2
- package/dist/_chunks/{calendar-CZUjL8SZ.js → calendar-DeAlFPsF.js} +15 -15
- package/dist/_chunks/{calendar-clock-CYkcqdwl.js → calendar-clock-hbObjfGY.js} +3 -3
- package/dist/_chunks/{calendar-days-C4BmpCZg.js → calendar-days-BGWklvE-.js} +3 -3
- package/dist/_chunks/{care-plan-card-C5sTfY9G.js → care-plan-card-DhXbfGzE.js} +5 -5
- package/dist/_chunks/{care-plan-entry-card-CXnxGCWA.js → care-plan-entry-card-D3YGD6rj.js} +5 -5
- package/dist/_chunks/care-plan-header-DtQxyfOb.js +198 -0
- package/dist/_chunks/{carousel.agent-4v8Emr9E.js → carousel.agent-j7hWxJWr.js} +3 -3
- package/dist/_chunks/{chat-container-DWho5hPR.js → chat-container-BVCoN06N.js} +2 -2
- package/dist/_chunks/{chat-input-BcXTetgM.js → chat-input-Btq_uuMZ.js} +5 -5
- package/dist/_chunks/{chat-message-3V54YipB.js → chat-message-DXjjM8z9.js} +31 -29
- package/dist/_chunks/{check-DPdL_Sm7.js → check-DrFSN__t.js} +3 -3
- package/dist/_chunks/{checkbox-group-PqNmQ-cE.js → checkbox-group-CfqMv57d.js} +2 -2
- package/dist/_chunks/{chevron-down-BX_NP2Yh.js → chevron-down-DWE7GSq9.js} +3 -3
- package/dist/_chunks/{chevron-left-CX1jqD2M.js → chevron-left-B8cOyH-V.js} +3 -3
- package/dist/_chunks/{chevron-right-BrpYejk0.js → chevron-right-I9AeSxH2.js} +3 -3
- package/dist/_chunks/{chevron-up-zOEDrmBB.js → chevron-up-umRGgtJA.js} +3 -3
- package/dist/_chunks/{chevrons-right-d9MwesPG.js → chevrons-right-DIHg7Xqi.js} +4 -4
- package/dist/_chunks/{circle-alert-ChA9opNA.js → circle-alert-rGDZ73Wh.js} +3 -3
- package/dist/_chunks/{circle-check-9AeSgJD_.js → circle-check-BN6rz4NV.js} +3 -3
- package/dist/_chunks/{circle-BkqTgYmt.js → circle-j7oZoouK.js} +3 -3
- package/dist/_chunks/{circle-x-Du2CmjaU.js → circle-x-W8Enq3i4.js} +3 -3
- package/dist/_chunks/city-input-towzBenY.js +169 -0
- package/dist/_chunks/{clinical-note-card-BUvNMNGL.js → clinical-note-card-C7F_24IC.js} +9 -9
- package/dist/_chunks/clipboard-check-BeAGxDVT.js +22 -0
- package/dist/_chunks/{clock-21AGPWJ5.js → clock-Drd4Wtis.js} +3 -3
- package/dist/_chunks/{code-block-BBWHhIc8.js → code-block-Cwi7e3HM.js} +3 -3
- package/dist/_chunks/{color-picker-C_fZl6sA.js → color-picker-D-tUwxxT.js} +3 -3
- package/dist/_chunks/{columns-2-BTOBZbep.js → columns-2-8lq4-b8e.js} +3 -3
- package/dist/_chunks/{combobox-Clum7gJ1.js → combobox-DiMLItyu.js} +131 -114
- package/dist/_chunks/{command-palette-CJzmc5pC.js → command-palette-DQl_SNEv.js} +2 -2
- package/dist/_chunks/connection-status-0HajXMXM.js +108 -0
- package/dist/_chunks/{contact-card-Cf8Ktyt3.js → contact-card-0hnFJwrz.js} +3 -3
- package/dist/_chunks/{contact-profile-card-DDPwRFiP.js → contact-profile-card-IggiUVpN.js} +14 -14
- package/dist/_chunks/control-room-rail-DaGcsdZ6.js +333 -0
- package/dist/_chunks/{copy-field-Bjw9u2cV.js → copy-field-PAp0-Wr5.js} +3 -3
- package/dist/_chunks/{copy-B00HK7tj.js → copy-vRpqqHtY.js} +3 -3
- package/dist/_chunks/country-select-DYHDLEjG.js +709 -0
- package/dist/_chunks/{createLucideIcon-CrFbzy84.js → createLucideIcon-DhHxpK9K.js} +8 -8
- package/dist/_chunks/{cycle-calculator-CCmPwcBl.js → cycle-calculator-BNILyVas.js} +10 -10
- package/dist/_chunks/{date-picker-Dl9RKxaV.js → date-picker-CVkD_lOi.js} +3 -3
- package/dist/_chunks/{date-picker-variants-DAcSLTua.js → date-picker-variants-DLg-ZrIo.js} +20 -20
- package/dist/_chunks/{date-range-picker-CTUeR6Bj.js → date-range-picker-Dw12DgV8.js} +4 -4
- package/dist/_chunks/{date-time-picker-BhoogS5Q.js → date-time-picker-Cd_OJtOy.js} +3 -3
- package/dist/_chunks/{de-CrJs4ZsX.js → de-DFLsUxeV.js} +2 -2
- package/dist/_chunks/{dependent-selector-DUV4thxX.js → dependent-selector-DyFpdzZV.js} +2 -2
- package/dist/_chunks/{description-list-gkNGWk5G.js → description-list-CmBVxIF5.js} +3 -3
- package/dist/_chunks/{dialog-ZNuboNmy.js → dialog-UbKJCi1X.js} +2 -2
- package/dist/_chunks/{document-scanner-C_AxLooF.js → document-scanner-B23j4w7X.js} +8 -8
- package/dist/_chunks/{download-CDF1sbL9.js → download-CfYKJO_j.js} +3 -3
- package/dist/_chunks/{dropdown-menu-qrxjymfw.js → dropdown-menu-DU-Hrf33.js} +3 -3
- package/dist/_chunks/{due-date-calculator-Brdj-euS.js → due-date-calculator-CmdAl_JO.js} +7 -7
- package/dist/_chunks/editable-currency-cell-renderer-z9fJFw6Z.js +410 -0
- package/dist/_chunks/{editor-overlay-wYm22wZK.js → editor-overlay-BIOzr8v7.js} +2 -2
- package/dist/_chunks/{el-DHdMOIhL.js → el-OVjBKytp.js} +2 -2
- package/dist/_chunks/{ellipsis-rgGdiK_9.js → ellipsis-dRo9ouSU.js} +3 -3
- package/dist/_chunks/{email-input-DJ7EXklP.js → email-input-Dpe63k0K.js} +3 -3
- package/dist/_chunks/entity-summary-DpGziDv5.js +277 -0
- package/dist/_chunks/{es-DCATCfqo.js → es-DKDNrHXG.js} +2 -2
- package/dist/_chunks/{external-link-C6F25E6k.js → external-link-CY6zAXXU.js} +3 -3
- package/dist/_chunks/{eye-LHlSU38h.js → eye-BjhN2nYf.js} +3 -3
- package/dist/_chunks/{eye-off-xEXDAh5z.js → eye-off-C_4xkbRP.js} +3 -3
- package/dist/_chunks/face-scheme-DOZO3M_c.js +1450 -0
- package/dist/_chunks/face_detection_yunet_2023mar-BnsRs4bD.js +5 -0
- package/dist/_chunks/{fetal-weight-DNCkyeVo.js → fetal-weight-CVAH8sJ3.js} +4 -4
- package/dist/_chunks/field-array-CDzc3hTM.js +146 -0
- package/dist/_chunks/{field-value-NXYczdpO.js → field-value-Dj3i52H2.js} +14 -14
- package/dist/_chunks/{file-spreadsheet-zUkY8rJ2.js → file-spreadsheet-DmwyfV4O.js} +3 -3
- package/dist/_chunks/{file-text-DSNuv2B8.js → file-text-5yv6r2ls.js} +3 -3
- package/dist/_chunks/{file-upload-DwZcAK8D.js → file-upload-Kw1rdvFw.js} +13 -13
- package/dist/_chunks/{finished-terminal-VjZ_-eDD.js → finished-terminal-Di4gtZ50.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-Cf-8O4Fj.js → fiscal-code-input-DKNXFXs3.js} +5 -5
- package/dist/_chunks/{form-field-BOm9hK35.js → form-field-M5UpX65Z.js} +2 -2
- package/dist/_chunks/{fr-BfGEMshF.js → fr-BfMvQh-v.js} +2 -2
- package/dist/_chunks/{freemium-paywall-WYlNO7yT.js → freemium-paywall-DFoeedwh.js} +4 -4
- package/dist/_chunks/{gestational-age-calculator-CF2ISaYQ.js → gestational-age-calculator-BwCBPAGX.js} +9 -9
- package/dist/_chunks/{globe-BkEFMNSg.js → globe-sHBW1JN5.js} +3 -3
- package/dist/_chunks/{grip-vertical-Dlg0_k5C.js → grip-vertical-onSb1JXO.js} +3 -3
- package/dist/_chunks/{hash-CysBBS_N.js → hash-CSQ9SChR.js} +3 -3
- package/dist/_chunks/{hcg-doubling-C7bmuaU3.js → hcg-doubling-CSsWxEJc.js} +5 -5
- package/dist/_chunks/{header-CNszv2WQ.js → header-DaXWDw0M.js} +2 -2
- package/dist/_chunks/{header-settings-DJqoAl5m.js → header-settings-B0G_u-wV.js} +6 -6
- package/dist/_chunks/{heart-C0faivFf.js → heart--qCA4ffe.js} +3 -3
- package/dist/_chunks/{heart-pulse-CvuyFKHB.js → heart-pulse-BCppJyN2.js} +3 -3
- package/dist/_chunks/{hi-CBFRXEIm.js → hi-C0GEMwlD.js} +2 -2
- package/dist/_chunks/iban-input-DXIA8Ln_.js +436 -0
- package/dist/_chunks/icon-picker-Di6uYDG-.js +272 -0
- package/dist/_chunks/{image-C6RM5hfF.js → image-B_5MNK0x.js} +3 -3
- package/dist/_chunks/image-cropper-CdmWFrMC.js +367 -0
- package/dist/_chunks/{info-B9XNKn05.js → info-CGn22peZ.js} +3 -3
- package/dist/_chunks/{insert-result-njqBthzT.js → insert-result-C7xSDb8q.js} +5 -5
- package/dist/_chunks/{isSameWeek-I3DfXUp1.js → isSameWeek-HddDAyJG.js} +2 -2
- package/dist/_chunks/{it-nz6vAKwG.js → it-5f4hiT2e.js} +3 -3
- package/dist/_chunks/{ja-DQcqdAEJ.js → ja-U0_2inl_.js} +2 -2
- package/dist/_chunks/{key-value-pair-BrgbMfbF.js → key-value-pair-Byyyc_9J.js} +3 -3
- package/dist/_chunks/{languages-DsVf_WzT.js → languages-CGLX6Qpe.js} +3 -3
- package/dist/_chunks/{layers-pzGcbLPj.js → layers-DcAENmsZ.js} +3 -3
- package/dist/_chunks/{link-DrD_cRUg.js → link-CPb_pZPr.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-CTXqtXV-.js → link-cell-renderer-BCppbMec.js} +277 -276
- package/dist/_chunks/{locale-picker-ChYYSX2N.js → locale-picker-DzF7Q5Y8.js} +5 -5
- package/dist/_chunks/{lock-CKOIn0IK.js → lock-ClAFG1gy.js} +3 -3
- package/dist/_chunks/{log-out-616hnn2-.js → log-out-oDS6zO5d.js} +3 -3
- package/dist/_chunks/{mail-C8irm52s.js → mail-BqXVF2zH.js} +3 -3
- package/dist/_chunks/{map-pin-B8STOPMJ.js → map-pin-BaY37-Km.js} +3 -3
- package/dist/_chunks/{map-view-BkOoGoX2.js → map-view-ByPvWG_9.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-Skhfp6vK.js → marketplace-app-shell-BCYiOvKZ.js} +10 -10
- package/dist/_chunks/{maximize-2-Cm9OUQ2m.js → maximize-2-BYd2Kti7.js} +3 -3
- package/dist/_chunks/{menu-XRhW3_99.js → menu-Op71AWIC.js} +3 -3
- package/dist/_chunks/message-card-BZnnffyB.js +319 -0
- package/dist/_chunks/{message-circle-C23eicgb.js → message-circle-Bepl9JT5.js} +3 -3
- package/dist/_chunks/{message-tray-DwrBLJlf.js → message-tray-cUHOCdU0.js} +172 -135
- package/dist/_chunks/{mic-B4Gog3Gi.js → mic-CUklMZGF.js} +3 -3
- package/dist/_chunks/{monitor-D-SFdbrU.js → monitor-xXSrufmP.js} +3 -3
- package/dist/_chunks/{multi-select-BdHHDrRN.js → multi-select-D5QLBJM1.js} +77 -65
- package/dist/_chunks/{anatomy-scheme-CJB6dI6p.js → muscle-scheme-B9MIkuj0.js} +415 -1146
- package/dist/_chunks/nav-grid-gRudLsPX.js +169 -0
- package/dist/_chunks/{navigation-menu-DRUi6sSj.js → navigation-menu-D3VndouD.js} +2 -2
- package/dist/_chunks/{nl-L5SuDjyl.js → nl-CDVnnx1U.js} +2 -2
- package/dist/_chunks/notes-panel-CMyjUXD4.js +324 -0
- package/dist/_chunks/notification-card-BHJ07FkH.js +290 -0
- package/dist/_chunks/{notification-tray-AEun6DN2.js → notification-tray-Dzm1c3Wy.js} +202 -167
- package/dist/_chunks/{number-input-DxphVG_A.js → number-input-DjWzmlEY.js} +3 -3
- package/dist/_chunks/{operator-hero-CR0Rqh4-.js → operator-hero-DVy0RGoD.js} +2 -2
- package/dist/_chunks/optical-prescription-Bmlbuopi.js +653 -0
- package/dist/_chunks/{pagination-D58kglCr.js → pagination-EkD5SiCK.js} +6 -6
- package/dist/_chunks/panel-header-D313n_9-.js +105 -0
- package/dist/_chunks/{patient-details-Dlhqb5ig.js → patient-details-pU_E5xM2.js} +309 -206
- package/dist/_chunks/{patient-search-Be6cLrHR.js → patient-search-X9SUZGpy.js} +11 -11
- package/dist/_chunks/{patient-shell-DV3XEtIB.js → patient-shell-oiIRqEAl.js} +8 -8
- package/dist/_chunks/{patient-summary-card-WySCMwwA.js → patient-summary-card--t3BjTdU.js} +41 -26
- package/dist/_chunks/{patient-table-CHxf3Oqk.js → patient-table-BgWgNIMf.js} +11 -11
- package/dist/_chunks/{payment-form-CxqIXqw7.js → payment-form-DL9xk9BA.js} +2 -2
- package/dist/_chunks/{payment-request-card-BcZJwu9z.js → payment-request-card-2ts7ITxd.js} +14 -14
- package/dist/_chunks/{pdf-viewer-QfebdLOd.js → pdf-viewer-DF3VMaPo.js} +8 -8
- package/dist/_chunks/{pencil-CfQX-0Qc.js → pencil-B1sKKyuT.js} +3 -3
- package/dist/_chunks/{periodontal-chart-card-hRRJY1NN.js → periodontal-chart-card-6c6Lt4ws.js} +2 -2
- package/dist/_chunks/permission-matrix-BIJrGEmz.js +174 -0
- package/dist/_chunks/{phone-Bi5yUm4I.js → phone-FceYcIFQ.js} +3 -3
- package/dist/_chunks/{phone-input-DjU-XmO_.js → phone-input-dtnrvnZf.js} +2 -2
- package/dist/_chunks/{pl-YAn5z2wR.js → pl-BWNumNrg.js} +3 -3
- package/dist/_chunks/{plus-CYKNmfuA.js → plus-DzMQ_c6b.js} +3 -3
- package/dist/_chunks/{popover-B2qCDhJC.js → popover-uJ6BvEU3.js} +2 -2
- package/dist/_chunks/position-grid-CcvqHaKN.js +169 -0
- package/dist/_chunks/postal-code-input-BznBxVxf.js +192 -0
- package/dist/_chunks/{practice-results-C6qDfxos.js → practice-results-CSEHTH2V.js} +15 -15
- package/dist/_chunks/{pregnancy-dating-CRVWswD-.js → pregnancy-dating-CxVAA6_4.js} +10 -10
- package/dist/_chunks/{pregnancy-weight-gain-BUNpTsH-.js → pregnancy-weight-gain-C7zyrwow.js} +5 -5
- package/dist/_chunks/{printer-CeVEWfQq.js → printer-rkK0T1gi.js} +3 -3
- package/dist/_chunks/{privacy-lock-BzMLQu-j.js → privacy-lock-DrRmK8C7.js} +4 -4
- package/dist/_chunks/{product-hub-panel-e6pW220e.js → product-hub-panel-CaZqttvm.js} +258 -218
- package/dist/_chunks/province-select-BDywtmL-.js +261 -0
- package/dist/_chunks/{pt-D9xdT5KQ.js → pt-zqdQuryr.js} +2 -2
- package/dist/_chunks/{public-footer.agent-D0cFbjWl.js → public-footer.agent-BKkK3T3V.js} +3 -3
- package/dist/_chunks/{public-header.agent-DqkqA-ca.js → public-header.agent-C-opZaOw.js} +5 -5
- package/dist/_chunks/{radio-group-BPt7pKZW.js → radio-group-CI-6SmSw.js} +2 -2
- package/dist/_chunks/radiograph-panel.agent-D1x33moc.js +553 -0
- package/dist/_chunks/{rating-BRD7O74e.js → rating-BYbUowdK.js} +2 -2
- package/dist/_chunks/{refresh-cw-CC8jSKMr.js → refresh-cw-DnI0cLFC.js} +3 -3
- package/dist/_chunks/reviews-panel-liUj6OPX.js +559 -0
- package/dist/_chunks/rich-text-editor-DUgznqOf.js +2621 -0
- package/dist/_chunks/{ro-Cp--52bT.js → ro-CornQr64.js} +2 -2
- package/dist/_chunks/{rotate-ccw-BWANpitO.js → rotate-ccw-BBQnIVTr.js} +3 -3
- package/dist/_chunks/{ru-BM8eX_Zz.js → ru-CKAXNYVD.js} +3 -3
- package/dist/_chunks/{scan-line-lGioFwLC.js → scan-line-CNseIHQ0.js} +3 -3
- package/dist/_chunks/{scroll-area-5wNK0Cyz.js → scroll-area-BZOvUhwQ.js} +2 -2
- package/dist/_chunks/{search-BonnQsHv.js → search-QbWPlY5f.js} +3 -3
- package/dist/_chunks/{search-bar-C_T3pBJn.js → search-bar-CJj6sI9m.js} +3 -3
- package/dist/_chunks/{search-input-DQvGxR74.js → search-input-B7GmlPIE.js} +4 -4
- package/dist/_chunks/{select-DMLG44F5.js → select-BmCbJMJS.js} +117 -105
- package/dist/_chunks/{send-CySZIRPJ.js → send-C5kDJ-Mz.js} +3 -3
- package/dist/_chunks/{session-countdown-X1Ki6i0M.js → session-countdown-qr8EO5QY.js} +5 -5
- package/dist/_chunks/{settings-ca2Yi9R8.js → settings-d25ju_6L.js} +3 -3
- package/dist/_chunks/{sheet-BxsE7eQm.js → sheet-B_X54aZo.js} +53 -42
- package/dist/_chunks/{shield-check-BjCGH_Sr.js → shield-check-DCJALLVh.js} +3 -3
- package/dist/_chunks/{sidebar-DY9jGjgt.js → sidebar-B0OBmJrC.js} +131 -119
- package/dist/_chunks/{sign-document-By6hMOra.js → sign-document-nK03S73h.js} +3 -3
- package/dist/_chunks/{signature-field-Dy1JRjzE.js → signature-field-jgwYgUhO.js} +4 -4
- package/dist/_chunks/{smart-date-CWikAqZx.js → smart-date-CsPlilQA.js} +7 -7
- package/dist/_chunks/{sq-XRpr0r49.js → sq-CIIvqXZv.js} +2 -2
- package/dist/_chunks/{square-CZoGU14v.js → square-DASBRZ0U.js} +3 -3
- package/dist/_chunks/{square-check-big-Jr-0202D.js → square-check-big-dj0o8yA3.js} +3 -3
- package/dist/_chunks/{star-vav0SJ9e.js → star-Bf9L2Uot.js} +3 -3
- package/dist/_chunks/{stepper-accordion-DC-H-8v4.js → stepper-accordion-BeVMZPuG.js} +3 -3
- package/dist/_chunks/{stethoscope-DT5qCW8Y.js → stethoscope-sZXGC43m.js} +3 -3
- package/dist/_chunks/{streaming-text-BB9mvK4m.js → streaming-text-Cedc05ya.js} +2 -2
- package/dist/_chunks/subDays-DGSOp9d9.js +8 -0
- package/dist/_chunks/{sun-BuXE0xUS.js → sun-Bj9Mr553.js} +4 -4
- package/dist/_chunks/{sv-Z3APomE8.js → sv-Kpk1pzjz.js} +2 -2
- package/dist/_chunks/{tab-bar-Bv9nGNdO.js → tab-bar-Axhk6xzx.js} +6 -6
- package/dist/_chunks/{tabs-BxcOziCo.js → tabs-DVQ941Sj.js} +4 -4
- package/dist/_chunks/{tag-BQXwuJq1.js → tag-3wgkwwDB.js} +2 -2
- package/dist/_chunks/task-card-BUgK6yZT.js +189 -0
- package/dist/_chunks/{task-tray-qOEQflu4.js → task-tray-DP5A3Qnc.js} +5 -5
- package/dist/_chunks/tasks-panel-BuxaYtEF.js +757 -0
- package/dist/_chunks/{text-input-B-OWQ1Je.js → text-input-CUvCb6ST.js} +2 -2
- package/dist/_chunks/{theme-toggle-XB6o_lgs.js → theme-toggle-dtdy5EaL.js} +4 -4
- package/dist/_chunks/{timeline-CqA4nKTI.js → timeline-r-8IUoBS.js} +6 -6
- package/dist/_chunks/{toast.agent-57UzyR9U.js → toast.agent-BSxl057x.js} +6 -6
- package/dist/_chunks/token-insert-menu-Pok4nExI.js +147 -0
- package/dist/_chunks/{ai-tools-rail-B5NEghsp.js → tool-rail-BZx0-yIr.js} +152 -139
- package/dist/_chunks/{tooth-scheme-BhQoPNBD.js → tooth-scheme-D_rso4uu.js} +470 -468
- package/dist/_chunks/{tr-e0-P4FON.js → tr-DHaeLFxG.js} +2 -2
- package/dist/_chunks/{transaction-chip-CscoQbxF.js → transaction-chip-B6iWoVmU.js} +8 -8
- package/dist/_chunks/{transcript-panel-3THQX6nJ.js → transcript-panel-BGkEhvHO.js} +95 -83
- package/dist/_chunks/{trash-2-rPAKaRgB.js → trash-2-uumy3fy1.js} +3 -3
- package/dist/_chunks/{triangle-alert-CBPUIzQo.js → triangle-alert-CBnO6nq_.js} +3 -3
- package/dist/_chunks/{unit-converter-YEpD9evj.js → unit-converter-fEqluT8b.js} +5 -5
- package/dist/_chunks/{use-password-requirements-BXvS2MBS.js → use-password-requirements-Bwtqx1qN.js} +7 -7
- package/dist/_chunks/{user-CPxpqFjJ.js → user-B12p7bVF.js} +3 -3
- package/dist/_chunks/{user-cog-BS_qc8nA.js → user-cog-BTn98Arm.js} +3 -3
- package/dist/_chunks/{users-MBVtUzwd.js → users-BjS_Gg1E.js} +3 -3
- package/dist/_chunks/{video-BAeICxCT.js → video-BheNGvsu.js} +3 -3
- package/dist/_chunks/{warning-stack--sTrrBDA.js → warning-stack-BaMI7-n7.js} +4 -4
- package/dist/_chunks/{workflow-map-Dy8mLCqF.js → workflow-map-qWsgCldq.js} +213 -225
- package/dist/_chunks/{x-CCcI3eJp.js → x-B5YnXwCz.js} +3 -3
- package/dist/_chunks/{zh-CN-B-igM5gY.js → zh-CN-BncsTBwM.js} +3 -3
- package/dist/_chunks/{zoom-out-CgVtf2Wx.js → zoom-out-Dnif4kJx.js} +4 -4
- package/dist/agent-catalog.json +6621 -3629
- package/dist/agent-i18n/en.json +313 -23
- package/dist/components/_shared/option.d.ts +2 -0
- package/dist/components/_shared/patient-fields.d.ts +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/address-autocomplete/index.js +1 -1
- 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/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/annotation-marker/annotation-marker.d.ts +1 -1
- 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/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/autocomplete/autocomplete.d.ts +10 -0
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/calendar/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.d.ts +16 -5
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/chat-message.d.ts +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/checkbox-group/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/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +17 -0
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/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-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/control-room-context.d.ts +5 -5
- 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 +5 -5
- package/dist/components/control-room-rail/index.d.ts +1 -0
- package/dist/components/control-room-rail/index.js +4 -3
- package/dist/components/copy-field/index.js +1 -1
- 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/reorder-cell-renderer.d.ts +34 -0
- package/dist/components/data-table/index.d.ts +2 -0
- package/dist/components/data-table/index.js +13 -11
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editor-overlay/index.js +1 -1
- 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 +53 -4
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/detect-face-landmarks.d.ts +26 -0
- package/dist/components/face-scheme/detect-face-yunet.d.ts +28 -0
- package/dist/components/face-scheme/face-scheme-data.d.ts +113 -0
- package/dist/components/face-scheme/face-scheme-zones.d.ts +11 -0
- package/dist/components/face-scheme/face-scheme.agent.d.ts +4 -0
- package/dist/components/face-scheme/face-scheme.d.ts +144 -0
- package/dist/components/face-scheme/index.d.ts +7 -0
- package/dist/components/face-scheme/index.js +17 -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/finished-terminal/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/form-field/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/header/index.js +1 -1
- package/dist/components/header-settings/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 +19 -2
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-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/muscle-scheme/index.d.ts +6 -0
- package/dist/components/muscle-scheme/index.js +16 -0
- package/dist/components/{anatomy-scheme/anatomy-muscle-paths.d.ts → muscle-scheme/muscle-paths.d.ts} +3 -1
- package/dist/components/muscle-scheme/muscle-scheme-data.d.ts +107 -0
- package/dist/components/muscle-scheme/muscle-scheme.agent.d.ts +6 -0
- package/dist/components/{anatomy-scheme/anatomy-scheme.d.ts → muscle-scheme/muscle-scheme.d.ts} +24 -27
- 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/navigation-menu/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.agent.d.ts +4 -0
- package/dist/components/notes-panel/notes-panel.d.ts +30 -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/number-input/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/optical-prescription/index.d.ts +6 -0
- package/dist/components/optical-prescription/index.js +38 -0
- package/dist/components/optical-prescription/optical-prescription-data.d.ts +106 -0
- package/dist/components/optical-prescription/optical-prescription.agent.d.ts +6 -0
- package/dist/components/optical-prescription/optical-prescription.d.ts +43 -0
- package/dist/components/pagination/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/password-input/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/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/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- 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/privacy-lock/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/index.js +1 -1
- package/dist/components/public-footer/public-footer.d.ts +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rating/index.js +1 -1
- 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/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +8 -2
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/skeleton/skeleton.d.ts +1 -1
- package/dist/components/smart-date/index.js +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-card/task-card.d.ts +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/text-input/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- 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/{ai-tools-rail/ai-tools-rail.d.ts → tool-rail/tool-rail.d.ts} +29 -12
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +9 -0
- package/dist/components/transaction-chip/index.js +1 -1
- 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/workflow/index.js +1 -1
- package/dist/hooks/use-edge-resize.d.ts +2 -2
- package/dist/i18n/locales/ar.d.ts +306 -100
- package/dist/i18n/locales/ar.js +298 -112
- package/dist/i18n/locales/de.d.ts +306 -100
- package/dist/i18n/locales/de.js +300 -112
- package/dist/i18n/locales/el.d.ts +306 -100
- package/dist/i18n/locales/el.js +305 -112
- package/dist/i18n/locales/en.d.ts +306 -100
- package/dist/i18n/locales/en.js +311 -112
- package/dist/i18n/locales/es.d.ts +306 -100
- package/dist/i18n/locales/es.js +297 -112
- package/dist/i18n/locales/fr.d.ts +306 -100
- package/dist/i18n/locales/fr.js +300 -112
- package/dist/i18n/locales/hi.d.ts +306 -100
- package/dist/i18n/locales/hi.js +296 -112
- package/dist/i18n/locales/it.d.ts +306 -100
- package/dist/i18n/locales/it.js +300 -112
- package/dist/i18n/locales/ja.d.ts +306 -100
- package/dist/i18n/locales/ja.js +301 -112
- package/dist/i18n/locales/nl.d.ts +306 -100
- package/dist/i18n/locales/nl.js +293 -112
- package/dist/i18n/locales/pl.d.ts +306 -100
- package/dist/i18n/locales/pl.js +301 -112
- package/dist/i18n/locales/pt.d.ts +306 -100
- package/dist/i18n/locales/pt.js +305 -112
- package/dist/i18n/locales/ro.d.ts +306 -100
- package/dist/i18n/locales/ro.js +305 -112
- package/dist/i18n/locales/ru.d.ts +306 -100
- package/dist/i18n/locales/ru.js +298 -112
- package/dist/i18n/locales/sq.d.ts +306 -100
- package/dist/i18n/locales/sq.js +302 -112
- package/dist/i18n/locales/sv.d.ts +306 -100
- package/dist/i18n/locales/sv.js +300 -112
- package/dist/i18n/locales/tr.d.ts +306 -100
- package/dist/i18n/locales/tr.js +298 -112
- package/dist/i18n/locales/zh.d.ts +306 -100
- package/dist/i18n/locales/zh.js +293 -112
- package/dist/index.js +881 -765
- package/dist/locales/ar.json +311 -105
- package/dist/locales/de.json +311 -105
- package/dist/locales/el.json +311 -105
- package/dist/locales/en.json +311 -105
- package/dist/locales/es.json +311 -105
- package/dist/locales/fr.json +311 -105
- package/dist/locales/hi.json +311 -105
- package/dist/locales/it.json +311 -105
- package/dist/locales/ja.json +311 -105
- package/dist/locales/nl.json +311 -105
- package/dist/locales/pl.json +311 -105
- package/dist/locales/pt.json +311 -105
- package/dist/locales/ro.json +311 -105
- package/dist/locales/ru.json +311 -105
- package/dist/locales/sq.json +311 -105
- package/dist/locales/sv.json +311 -105
- package/dist/locales/tr.json +311 -105
- package/dist/locales/zh.json +311 -105
- package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts +18 -0
- 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 +15 -1
- package/package.json +77 -9
- package/dist/_chunks/calendar-B6soK1Yb.js +0 -17
- package/dist/_chunks/care-plan-header-BUwqDTtz.js +0 -206
- package/dist/_chunks/control-room-rail-Y8ryLYsP.js +0 -229
- package/dist/_chunks/editable-currency-cell-renderer-C9twtALM.js +0 -328
- package/dist/_chunks/entity-summary-BxRjFh_4.js +0 -138
- package/dist/_chunks/message-card-Bx4GmLvf.js +0 -277
- package/dist/_chunks/notes-panel-ay8_lPrA.js +0 -158
- package/dist/_chunks/notification-card-D2jiKSJJ.js +0 -259
- package/dist/_chunks/radiograph-panel.agent-CAX-C3g3.js +0 -558
- package/dist/_chunks/reviews-panel-Dq7LMDcH.js +0 -555
- package/dist/_chunks/rich-text-editor-DlCqPixb.js +0 -2158
- package/dist/_chunks/sparkles-CuYXqQLg.js +0 -23
- package/dist/_chunks/subDays-BcYv1Lxi.js +0 -8
- package/dist/_chunks/task-card-BwY9jaV1.js +0 -124
- package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +0 -4
- package/dist/components/ai-tools-rail/index.d.ts +0 -4
- package/dist/components/ai-tools-rail/index.js +0 -6
- package/dist/components/anatomy-scheme/anatomy-face-paths.d.ts +0 -15
- package/dist/components/anatomy-scheme/anatomy-scheme-data.d.ts +0 -121
- package/dist/components/anatomy-scheme/anatomy-scheme.agent.d.ts +0 -6
- package/dist/components/anatomy-scheme/index.d.ts +0 -6
- package/dist/components/anatomy-scheme/index.js +0 -17
|
@@ -1,38 +1,39 @@
|
|
|
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
6
|
import { B as ye } from "./badge-DCOqV9mI.js";
|
|
7
|
-
import { a as Z } from "./key-value-pair-
|
|
7
|
+
import { a as Z } from "./key-value-pair-Byyyc_9J.js";
|
|
8
8
|
import { T as xe } from "./timestamp-BV2lC-wV.js";
|
|
9
9
|
import { I as S } from "./icon-button-LqoiKcUN.js";
|
|
10
|
-
import { P as U } from "./pencil-
|
|
11
|
-
import { c as
|
|
12
|
-
import { T as ae } from "./trash-2-
|
|
13
|
-
import { C as Ne } from "./circle-
|
|
10
|
+
import { P as U } from "./pencil-B1sKKyuT.js";
|
|
11
|
+
import { c as D } from "./createLucideIcon-DhHxpK9K.js";
|
|
12
|
+
import { T as ae } from "./trash-2-uumy3fy1.js";
|
|
13
|
+
import { C as Ne } from "./circle-j7oZoouK.js";
|
|
14
14
|
import { u as Ce } from "./registry-DvAUVLHh.js";
|
|
15
|
-
import { A as
|
|
15
|
+
import { A as $ } from "./alert-KJbsPYkI.js";
|
|
16
16
|
import { B as _e } from "./button-DD_0Xdmr.js";
|
|
17
|
-
import { D as N } from "./dropdown-menu-
|
|
17
|
+
import { D as N } from "./dropdown-menu-DU-Hrf33.js";
|
|
18
18
|
import { E } from "./empty-state-BLy7tigq.js";
|
|
19
|
-
import { P as ne } from "./plus-
|
|
20
|
-
import { G as ie } from "./globe-
|
|
21
|
-
import { U as de } from "./user-cog-
|
|
22
|
-
import { M as le } from "./message-circle-
|
|
23
|
-
import { S as ce } from "./square-check-big-
|
|
24
|
-
import { M as ue } from "./mail-
|
|
25
|
-
import { C as fe } from "./clock-
|
|
26
|
-
import { C as Se } from "./chevron-up-
|
|
27
|
-
import { C as Me } from "./chevron-down-
|
|
28
|
-
import { C as ze } from "./check-
|
|
19
|
+
import { P as ne } from "./plus-DzMQ_c6b.js";
|
|
20
|
+
import { G as ie } from "./globe-sHBW1JN5.js";
|
|
21
|
+
import { U as de } from "./user-cog-BTn98Arm.js";
|
|
22
|
+
import { M as le } from "./message-circle-Bepl9JT5.js";
|
|
23
|
+
import { S as ce } from "./square-check-big-dj0o8yA3.js";
|
|
24
|
+
import { M as ue } from "./mail-BqXVF2zH.js";
|
|
25
|
+
import { C as fe } from "./clock-Drd4Wtis.js";
|
|
26
|
+
import { C as Se } from "./chevron-up-umRGgtJA.js";
|
|
27
|
+
import { C as Me } from "./chevron-down-DWE7GSq9.js";
|
|
28
|
+
import { C as ze } from "./clipboard-check-BeAGxDVT.js";
|
|
29
|
+
import { C as Ae } from "./check-DrFSN__t.js";
|
|
29
30
|
/**
|
|
30
|
-
* @license lucide-react v1.
|
|
31
|
+
* @license lucide-react v1.22.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,63 +42,50 @@ 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 = D("circle-dashed", Ie);
|
|
45
46
|
/**
|
|
46
|
-
* @license lucide-react v1.
|
|
47
|
+
* @license lucide-react v1.22.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 = D("circle-pause", Ee);
|
|
69
57
|
/**
|
|
70
|
-
* @license lucide-react v1.
|
|
58
|
+
* @license lucide-react v1.22.0 - ISC
|
|
71
59
|
*
|
|
72
60
|
* This source code is licensed under the ISC license.
|
|
73
61
|
* See the LICENSE file in the root directory of this source tree.
|
|
74
62
|
*/
|
|
75
|
-
const
|
|
63
|
+
const De = [
|
|
76
64
|
["path", { d: "M18.36 6.64A9 9 0 0 1 20.77 15", key: "dxknvb" }],
|
|
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
|
+
], Le = D("power-off", De);
|
|
81
69
|
/**
|
|
82
|
-
* @license lucide-react v1.
|
|
70
|
+
* @license lucide-react v1.22.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 = D("power", Ke);
|
|
91
79
|
/**
|
|
92
|
-
* @license lucide-react v1.
|
|
80
|
+
* @license lucide-react v1.22.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 = D("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,21 +112,21 @@ 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
|
}
|
|
131
119
|
const Fe = H(
|
|
132
120
|
function({
|
|
133
|
-
workflow:
|
|
134
|
-
density:
|
|
121
|
+
workflow: r,
|
|
122
|
+
density: s = "comfortable",
|
|
135
123
|
onView: o,
|
|
136
124
|
onEdit: d,
|
|
137
125
|
onDelete: n,
|
|
138
126
|
onToggleActive: a,
|
|
139
127
|
className: p
|
|
140
128
|
}, m) {
|
|
141
|
-
const { t: c } = M(), i =
|
|
129
|
+
const { t: c } = M(), i = We(r.status), l = r.status === "active", v = s === "compact", h = (w) => (k) => {
|
|
142
130
|
k.stopPropagation(), w == null || w();
|
|
143
131
|
}, y = /* @__PURE__ */ t(
|
|
144
132
|
ye,
|
|
@@ -146,7 +134,7 @@ const Fe = H(
|
|
|
146
134
|
variant: i.badgeVariant,
|
|
147
135
|
leading: i.icon,
|
|
148
136
|
withDot: !1,
|
|
149
|
-
children: c(`workflow.status.${
|
|
137
|
+
children: c(`workflow.status.${r.status}`)
|
|
150
138
|
}
|
|
151
139
|
), x = c("workflow.card.activeEnrollments");
|
|
152
140
|
return /* @__PURE__ */ u(
|
|
@@ -154,9 +142,9 @@ const Fe = H(
|
|
|
154
142
|
{
|
|
155
143
|
ref: m,
|
|
156
144
|
variant: "default",
|
|
157
|
-
className:
|
|
145
|
+
className: Re({ density: s, className: p }),
|
|
158
146
|
"data-component": "workflow-card",
|
|
159
|
-
"data-component-id":
|
|
147
|
+
"data-component-id": r.id,
|
|
160
148
|
children: [
|
|
161
149
|
/* @__PURE__ */ t(C.Header, { children: /* @__PURE__ */ u("div", { className: "ds:flex ds:items-start ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
162
150
|
/* @__PURE__ */ u("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
@@ -164,7 +152,7 @@ const Fe = H(
|
|
|
164
152
|
"button",
|
|
165
153
|
{
|
|
166
154
|
type: "button",
|
|
167
|
-
onClick: () => o(
|
|
155
|
+
onClick: () => o(r.id),
|
|
168
156
|
className: [
|
|
169
157
|
"ds:text-start ds:font-inherit ds:text-inherit",
|
|
170
158
|
// Inset overlay that turns the whole card into a
|
|
@@ -179,12 +167,12 @@ const Fe = H(
|
|
|
179
167
|
"ds:focus-visible:after:outline-[color:var(--ring)]",
|
|
180
168
|
"ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]"
|
|
181
169
|
].join(" "),
|
|
182
|
-
children:
|
|
170
|
+
children: r.name
|
|
183
171
|
}
|
|
184
|
-
) :
|
|
172
|
+
) : r.name }),
|
|
185
173
|
v && /* @__PURE__ */ u("span", { className: "ds:flex ds:items-baseline ds:gap-[var(--spacing-xs)] type-body-sm ds:text-[color:var(--muted-foreground)]", children: [
|
|
186
174
|
/* @__PURE__ */ t("span", { children: x }),
|
|
187
|
-
/* @__PURE__ */ t("span", { className: "ds:font-medium ds:text-[color:var(--foreground)]", children:
|
|
175
|
+
/* @__PURE__ */ t("span", { className: "ds:font-medium ds:text-[color:var(--foreground)]", children: r.stats.activeEnrollments })
|
|
188
176
|
] })
|
|
189
177
|
] }),
|
|
190
178
|
/* @__PURE__ */ t("div", { className: "ds:shrink-0", children: y })
|
|
@@ -194,24 +182,24 @@ const Fe = H(
|
|
|
194
182
|
Z,
|
|
195
183
|
{
|
|
196
184
|
label: c("workflow.card.activeEnrollments"),
|
|
197
|
-
value:
|
|
185
|
+
value: r.stats.activeEnrollments
|
|
198
186
|
}
|
|
199
187
|
),
|
|
200
188
|
/* @__PURE__ */ t(
|
|
201
189
|
Z,
|
|
202
190
|
{
|
|
203
191
|
label: c("workflow.card.totalEnrollments"),
|
|
204
|
-
value:
|
|
192
|
+
value: r.stats.totalEnrollments
|
|
205
193
|
}
|
|
206
194
|
)
|
|
207
195
|
] }),
|
|
208
196
|
/* @__PURE__ */ u(C.Footer, { className: "ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
209
197
|
/* @__PURE__ */ u("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)] type-body-sm ds:text-[color:var(--muted-foreground)]", children: [
|
|
210
|
-
/* @__PURE__ */ t("span", { className: "ds:truncate", title:
|
|
211
|
-
|
|
198
|
+
/* @__PURE__ */ t("span", { className: "ds:truncate", title: r.createdBy, children: c("workflow.createdBy", { name: r.createdBy }) }),
|
|
199
|
+
r.updatedAt && /* @__PURE__ */ t(
|
|
212
200
|
xe,
|
|
213
201
|
{
|
|
214
|
-
value:
|
|
202
|
+
value: r.updatedAt,
|
|
215
203
|
format: "absolute",
|
|
216
204
|
shape: "bare",
|
|
217
205
|
absoluteFormat: { dateStyle: "medium" },
|
|
@@ -227,19 +215,19 @@ const Fe = H(
|
|
|
227
215
|
size: "sm",
|
|
228
216
|
intent: "ghost",
|
|
229
217
|
"aria-label": c("workflow.card.edit"),
|
|
230
|
-
onClick: h(() => d(
|
|
218
|
+
onClick: h(() => d(r.id))
|
|
231
219
|
}
|
|
232
220
|
),
|
|
233
221
|
a && /* @__PURE__ */ t(
|
|
234
222
|
S,
|
|
235
223
|
{
|
|
236
|
-
icon: l ? /* @__PURE__ */ t(
|
|
224
|
+
icon: l ? /* @__PURE__ */ t(Le, {}) : /* @__PURE__ */ t(Be, {}),
|
|
237
225
|
size: "sm",
|
|
238
226
|
intent: "ghost",
|
|
239
227
|
"aria-label": c(
|
|
240
228
|
l ? "workflow.card.deactivate" : "workflow.card.activate"
|
|
241
229
|
),
|
|
242
|
-
onClick: h(() => a(
|
|
230
|
+
onClick: h(() => a(r.id, !l))
|
|
243
231
|
}
|
|
244
232
|
),
|
|
245
233
|
n && /* @__PURE__ */ t(
|
|
@@ -249,7 +237,7 @@ const Fe = H(
|
|
|
249
237
|
size: "sm",
|
|
250
238
|
intent: "destructive",
|
|
251
239
|
"aria-label": c("workflow.card.delete"),
|
|
252
|
-
onClick: h(() => n(
|
|
240
|
+
onClick: h(() => n(r.id))
|
|
253
241
|
}
|
|
254
242
|
)
|
|
255
243
|
] })
|
|
@@ -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.
|
|
@@ -332,8 +320,8 @@ const qt = {
|
|
|
332
320
|
idempotent: !0,
|
|
333
321
|
descriptionKey: "ui.agent.workflowEditor.actions.gotoStep",
|
|
334
322
|
description: "Focus a node by its opaque id.",
|
|
335
|
-
invoke: (e,
|
|
336
|
-
e.gotoStep(
|
|
323
|
+
invoke: (e, r) => {
|
|
324
|
+
e.gotoStep(r.id);
|
|
337
325
|
}
|
|
338
326
|
}
|
|
339
327
|
},
|
|
@@ -356,8 +344,8 @@ const qt = {
|
|
|
356
344
|
};
|
|
357
345
|
function G(e) {
|
|
358
346
|
if (e.nodes.length === 0) return [];
|
|
359
|
-
const
|
|
360
|
-
for (const i of
|
|
347
|
+
const r = e.edges.filter((i) => i.condition == null), s = new Set(r.map((i) => i.to)), d = e.nodes.filter((i) => !s.has(i.id))[0] ?? e.nodes[0], n = new Map(e.nodes.map((i) => [i.id, i])), a = /* @__PURE__ */ new Map();
|
|
348
|
+
for (const i of r) {
|
|
361
349
|
const l = a.get(i.from) ?? [];
|
|
362
350
|
l.push(i), a.set(i.from, l);
|
|
363
351
|
}
|
|
@@ -374,27 +362,27 @@ function G(e) {
|
|
|
374
362
|
p.has(i.id) || m.push(i);
|
|
375
363
|
return m;
|
|
376
364
|
}
|
|
377
|
-
function V(e,
|
|
378
|
-
const o = [...e.nodes,
|
|
379
|
-
if (
|
|
365
|
+
function V(e, r, s) {
|
|
366
|
+
const o = [...e.nodes, s];
|
|
367
|
+
if (r === null) {
|
|
380
368
|
const a = e.nodes[0];
|
|
381
369
|
return a ? {
|
|
382
370
|
nodes: o,
|
|
383
371
|
edges: [
|
|
384
|
-
{ from:
|
|
372
|
+
{ from: s.id, to: a.id, condition: null },
|
|
385
373
|
...e.edges
|
|
386
374
|
]
|
|
387
375
|
} : { nodes: o, edges: [] };
|
|
388
376
|
}
|
|
389
377
|
const d = e.edges.find(
|
|
390
|
-
(a) => a.from ===
|
|
378
|
+
(a) => a.from === r && a.condition == null
|
|
391
379
|
);
|
|
392
380
|
if (!d)
|
|
393
381
|
return {
|
|
394
382
|
nodes: o,
|
|
395
383
|
edges: [
|
|
396
384
|
...e.edges,
|
|
397
|
-
{ from:
|
|
385
|
+
{ from: r, to: s.id, condition: null }
|
|
398
386
|
]
|
|
399
387
|
};
|
|
400
388
|
const n = e.edges.filter((a) => a !== d);
|
|
@@ -402,34 +390,34 @@ function V(e, s, r) {
|
|
|
402
390
|
nodes: o,
|
|
403
391
|
edges: [
|
|
404
392
|
...n,
|
|
405
|
-
{ from:
|
|
406
|
-
{ from:
|
|
393
|
+
{ from: r, to: s.id, condition: null },
|
|
394
|
+
{ from: s.id, to: d.to, condition: null }
|
|
407
395
|
]
|
|
408
396
|
};
|
|
409
397
|
}
|
|
410
|
-
function ee(e,
|
|
411
|
-
const
|
|
412
|
-
(a) => a.to ===
|
|
398
|
+
function ee(e, r) {
|
|
399
|
+
const s = e.edges.find(
|
|
400
|
+
(a) => a.to === r && a.condition == null
|
|
413
401
|
), o = e.edges.find(
|
|
414
|
-
(a) => a.from ===
|
|
415
|
-
), d = e.edges.filter((a) => a.from !==
|
|
402
|
+
(a) => a.from === r && a.condition == null
|
|
403
|
+
), d = e.edges.filter((a) => a.from !== r && a.to !== r), n = s && o ? [...d, { from: s.from, to: o.to, condition: null }] : d;
|
|
416
404
|
return {
|
|
417
|
-
nodes: e.nodes.filter((a) => a.id !==
|
|
405
|
+
nodes: e.nodes.filter((a) => a.id !== r),
|
|
418
406
|
edges: n
|
|
419
407
|
};
|
|
420
408
|
}
|
|
421
|
-
function Oe(e,
|
|
409
|
+
function Oe(e, r, s) {
|
|
422
410
|
var h;
|
|
423
|
-
const o = G(e), d = o.findIndex((y) => y.id ===
|
|
411
|
+
const o = G(e), d = o.findIndex((y) => y.id === r);
|
|
424
412
|
if (d === -1) return e;
|
|
425
|
-
const n =
|
|
413
|
+
const n = s === "up" ? d - 1 : d + 1;
|
|
426
414
|
if (n < 0 || n >= o.length) return e;
|
|
427
415
|
const a = o[d], p = o[n];
|
|
428
416
|
if (!a || !p) return e;
|
|
429
|
-
const m = ee(ee(e, a.id), p.id), c =
|
|
417
|
+
const m = ee(ee(e, a.id), p.id), c = s === "up" ? a : p, i = s === "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,8 +437,8 @@ 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
443
|
const L = {
|
|
456
444
|
add_delay: {
|
|
@@ -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,
|
|
@@ -492,32 +480,32 @@ const L = {
|
|
|
492
480
|
};
|
|
493
481
|
function Y({
|
|
494
482
|
iconName: e,
|
|
495
|
-
className:
|
|
483
|
+
className: r
|
|
496
484
|
}) {
|
|
497
|
-
const
|
|
498
|
-
return /* @__PURE__ */ t(
|
|
485
|
+
const s = He[e];
|
|
486
|
+
return /* @__PURE__ */ t(s, { "aria-hidden": "true", className: r ?? "ds:size-4" });
|
|
499
487
|
}
|
|
500
|
-
const
|
|
501
|
-
function te(e,
|
|
502
|
-
return e.length <=
|
|
488
|
+
const Ue = 40, Ge = 60;
|
|
489
|
+
function te(e, r) {
|
|
490
|
+
return e.length <= r ? e : `${e.slice(0, r - 1)}…`;
|
|
503
491
|
}
|
|
504
|
-
function
|
|
492
|
+
function Ye(e, r) {
|
|
505
493
|
switch (e.kind) {
|
|
506
494
|
case "add_delay": {
|
|
507
|
-
const
|
|
495
|
+
const s = e.days ?? 0, o = r("workflow.delay.summary", { count: s });
|
|
508
496
|
return { text: o, full: o };
|
|
509
497
|
}
|
|
510
498
|
case "send_email": {
|
|
511
|
-
const
|
|
512
|
-
return { text: te(d,
|
|
499
|
+
const s = e.subject ?? "", d = `${r("workflow.action.sendEmail")}: ${s}`;
|
|
500
|
+
return { text: te(d, Ue), full: d };
|
|
513
501
|
}
|
|
514
502
|
case "send_sms": {
|
|
515
|
-
const
|
|
516
|
-
return { text: te(
|
|
503
|
+
const s = e.body ?? "";
|
|
504
|
+
return { text: te(s, Ge), full: s };
|
|
517
505
|
}
|
|
518
506
|
case "create_task": {
|
|
519
|
-
const
|
|
520
|
-
return { text:
|
|
507
|
+
const s = e.title ?? "";
|
|
508
|
+
return { text: s, full: s };
|
|
521
509
|
}
|
|
522
510
|
// v2 types — generic fallback (no bespoke summariser yet).
|
|
523
511
|
case "send_whatsapp":
|
|
@@ -527,12 +515,12 @@ function Je(e, s) {
|
|
|
527
515
|
return null;
|
|
528
516
|
}
|
|
529
517
|
}
|
|
530
|
-
const
|
|
518
|
+
const re = [
|
|
531
519
|
"ds:flex ds:flex-col",
|
|
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(" "),
|
|
551
|
+
].join(" "), Xe = Object.keys(
|
|
564
552
|
L
|
|
565
553
|
);
|
|
566
|
-
let
|
|
567
|
-
function
|
|
568
|
-
|
|
554
|
+
let se = 0;
|
|
555
|
+
function Ze() {
|
|
556
|
+
se += 1;
|
|
569
557
|
const e = Math.random().toString(36).slice(2, 8);
|
|
570
|
-
return `wf-node-${Date.now()}-${
|
|
558
|
+
return `wf-node-${Date.now()}-${se}-${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,23 +580,23 @@ function tt(e) {
|
|
|
592
580
|
return { kind: "webhook", url: "", method: "POST" };
|
|
593
581
|
}
|
|
594
582
|
}
|
|
595
|
-
function
|
|
596
|
-
const
|
|
597
|
-
|
|
583
|
+
function tt(e = 0) {
|
|
584
|
+
const r = z(e), s = q((o) => {
|
|
585
|
+
r.current = o;
|
|
598
586
|
}, []);
|
|
599
|
-
return [
|
|
587
|
+
return [r, s];
|
|
600
588
|
}
|
|
601
589
|
function rt({
|
|
602
590
|
node: e,
|
|
603
|
-
position:
|
|
604
|
-
total:
|
|
591
|
+
position: r,
|
|
592
|
+
total: s,
|
|
605
593
|
disabled: o,
|
|
606
594
|
onEdit: d,
|
|
607
595
|
onDelete: n,
|
|
608
596
|
onMove: a,
|
|
609
597
|
registerRef: p
|
|
610
598
|
}) {
|
|
611
|
-
const { t: m } = M(), c = L[e.type], i = z(null), [l, v] =
|
|
599
|
+
const { t: m } = M(), c = L[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,13 +611,13 @@ 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 =
|
|
627
|
-
current:
|
|
628
|
-
total:
|
|
629
|
-
}),
|
|
614
|
+
}, w = Ye(e.settings, m), k = m(c.labelKey), A = r > 0, I = r < s - 1, K = m("workflow.editor.position", {
|
|
615
|
+
current: r + 1,
|
|
616
|
+
total: s
|
|
617
|
+
}), T = m("workflow.editor.nodeAriaLabel", {
|
|
630
618
|
type: k,
|
|
631
|
-
current:
|
|
632
|
-
total:
|
|
619
|
+
current: r + 1,
|
|
620
|
+
total: s
|
|
633
621
|
});
|
|
634
622
|
return (
|
|
635
623
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions -- node card is keyboard-actionable via roving tabindex; pipeline keys handled in onKeyDown
|
|
@@ -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
|
)
|
|
@@ -735,8 +723,8 @@ function rt({
|
|
|
735
723
|
}
|
|
736
724
|
function oe({
|
|
737
725
|
availableActions: e,
|
|
738
|
-
onSelect:
|
|
739
|
-
disabled:
|
|
726
|
+
onSelect: r,
|
|
727
|
+
disabled: s,
|
|
740
728
|
label: o,
|
|
741
729
|
compact: d = !0
|
|
742
730
|
}) {
|
|
@@ -746,9 +734,9 @@ function oe({
|
|
|
746
734
|
"button",
|
|
747
735
|
{
|
|
748
736
|
type: "button",
|
|
749
|
-
disabled:
|
|
737
|
+
disabled: s,
|
|
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 })
|
|
@@ -763,7 +751,7 @@ function oe({
|
|
|
763
751
|
N.Item,
|
|
764
752
|
{
|
|
765
753
|
startIcon: /* @__PURE__ */ t(Y, { iconName: p.iconName }),
|
|
766
|
-
onSelect: () =>
|
|
754
|
+
onSelect: () => r(a),
|
|
767
755
|
children: n(p.labelKey)
|
|
768
756
|
},
|
|
769
757
|
a
|
|
@@ -772,30 +760,30 @@ function oe({
|
|
|
772
760
|
] })
|
|
773
761
|
] });
|
|
774
762
|
}
|
|
775
|
-
function
|
|
763
|
+
function st({ criteria: e, onEdit: r, disabled: s }) {
|
|
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: [
|
|
779
767
|
/* @__PURE__ */ t("span", { className: "ds:text-[length:var(--font-size-sm)] ds:font-[var(--font-weight-semibold)] ds:text-[color:var(--foreground)]", children: o("workflow.editor.enrollmentCriteria") }),
|
|
780
768
|
/* @__PURE__ */ t("span", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)] ds:[overflow-wrap:anywhere] ds:break-words", children: (e == null ? void 0 : e.summary) ?? n })
|
|
781
769
|
] }),
|
|
782
|
-
|
|
770
|
+
r ? /* @__PURE__ */ t(
|
|
783
771
|
S,
|
|
784
772
|
{
|
|
785
773
|
icon: /* @__PURE__ */ t(U, {}),
|
|
786
774
|
size: "sm",
|
|
787
775
|
intent: "ghost",
|
|
788
|
-
disabled:
|
|
776
|
+
disabled: s,
|
|
789
777
|
"aria-label": o("workflow.editor.editCriteria"),
|
|
790
|
-
onClick:
|
|
778
|
+
onClick: r
|
|
791
779
|
}
|
|
792
780
|
) : null
|
|
793
781
|
] }) }) });
|
|
794
782
|
}
|
|
795
|
-
const
|
|
783
|
+
const ot = H(
|
|
796
784
|
function({
|
|
797
|
-
graph:
|
|
798
|
-
onChange:
|
|
785
|
+
graph: r,
|
|
786
|
+
onChange: s,
|
|
799
787
|
enrollmentCriteria: o,
|
|
800
788
|
onEditEnrollmentCriteria: d,
|
|
801
789
|
isActive: n = !1,
|
|
@@ -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(r), [r]), y = z(/* @__PURE__ */ new Map()), x = z(null), w = q(
|
|
808
796
|
(f) => {
|
|
809
|
-
n ||
|
|
797
|
+
n || s(f);
|
|
810
798
|
},
|
|
811
|
-
[n,
|
|
812
|
-
), k =
|
|
799
|
+
[n, s]
|
|
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,33 +823,33 @@ 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
|
-
x.current = W.id, w(V(
|
|
830
|
+
x.current = W.id, w(V(r, f, W));
|
|
843
831
|
}, B = (f, b) => {
|
|
844
|
-
n || (x.current = f, w(Oe(
|
|
832
|
+
n || (x.current = f, w(Oe(r, f, b)));
|
|
845
833
|
}, P = (f) => {
|
|
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
|
+
st,
|
|
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:
|
|
864
|
-
className: [
|
|
851
|
+
ref: T,
|
|
852
|
+
className: [re, c].filter(Boolean).join(" "),
|
|
865
853
|
children: [
|
|
866
854
|
J(),
|
|
867
855
|
Q(),
|
|
@@ -947,9 +935,9 @@ const at = H(
|
|
|
947
935
|
) : /* @__PURE__ */ u(
|
|
948
936
|
"div",
|
|
949
937
|
{
|
|
950
|
-
ref:
|
|
938
|
+
ref: T,
|
|
951
939
|
"data-component": "workflow-editor",
|
|
952
|
-
className: [
|
|
940
|
+
className: [re, c].filter(Boolean).join(" "),
|
|
953
941
|
children: [
|
|
954
942
|
J(),
|
|
955
943
|
Q(),
|
|
@@ -969,7 +957,7 @@ 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
|
rt,
|
|
975
963
|
{
|
|
@@ -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,14 +1150,14 @@ function dt(e) {
|
|
|
1162
1150
|
return;
|
|
1163
1151
|
}
|
|
1164
1152
|
}
|
|
1165
|
-
function
|
|
1153
|
+
function dt(e, r) {
|
|
1166
1154
|
if (e !== void 0)
|
|
1167
|
-
return typeof e == "string" ? e :
|
|
1155
|
+
return typeof e == "string" ? e : r(e.key, e.options);
|
|
1168
1156
|
}
|
|
1169
|
-
const
|
|
1157
|
+
const lt = H(
|
|
1170
1158
|
function({
|
|
1171
|
-
graph:
|
|
1172
|
-
activeNodeId:
|
|
1159
|
+
graph: r,
|
|
1160
|
+
activeNodeId: s,
|
|
1173
1161
|
onNodeClick: o,
|
|
1174
1162
|
enrollmentCriteria: d,
|
|
1175
1163
|
orientation: n = "vertical",
|
|
@@ -1178,9 +1166,9 @@ const ct = H(
|
|
|
1178
1166
|
"aria-label": m,
|
|
1179
1167
|
...c
|
|
1180
1168
|
}, i) {
|
|
1181
|
-
const { t: l } = M(), v =
|
|
1182
|
-
() =>
|
|
1183
|
-
[v,
|
|
1169
|
+
const { t: l } = M(), v = F(() => G(r), [r]), h = F(
|
|
1170
|
+
() => s ? v.findIndex((w) => w.id === s) : -1,
|
|
1171
|
+
[v, s]
|
|
1184
1172
|
), y = m ?? l("workflow.map.label", { count: v.length }), x = (w) => h === -1 ? "neutral" : w === h ? "current" : w < h ? "completed" : "pending";
|
|
1185
1173
|
return (
|
|
1186
1174
|
// eslint-disable-next-line jsx-a11y/no-redundant-roles -- Safari strips the implicit list role on <ol> with list-style:none; this guard puts it back in the accessibility tree
|
|
@@ -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,23 +1212,23 @@ const ct = H(
|
|
|
1224
1212
|
);
|
|
1225
1213
|
}
|
|
1226
1214
|
);
|
|
1227
|
-
|
|
1228
|
-
function
|
|
1215
|
+
lt.displayName = "WorkflowMap";
|
|
1216
|
+
function ct({
|
|
1229
1217
|
node: e,
|
|
1230
|
-
state:
|
|
1231
|
-
orientation:
|
|
1218
|
+
state: r,
|
|
1219
|
+
orientation: s,
|
|
1232
1220
|
compact: o,
|
|
1233
1221
|
isLast: d,
|
|
1234
1222
|
onNodeClick: n
|
|
1235
1223
|
}) {
|
|
1236
|
-
const { t: a } = M(), p = L[e.type], m =
|
|
1224
|
+
const { t: a } = M(), p = L[e.type], m = at[p.iconName], c = a(p.labelKey), i = dt(it(e.settings), a), l = typeof n == "function", v = r === "current", h = r === "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));
|
|
1240
|
-
}, w = v ? a("workflow.map.current") : h ? a("workflow.map.completed") :
|
|
1228
|
+
}, w = v ? a("workflow.map.current") : h ? a("workflow.map.completed") : r === "pending" ? a("workflow.map.pending") : null;
|
|
1241
1229
|
return (
|
|
1242
1230
|
// `<li>` has implicit role="listitem"; no explicit role needed.
|
|
1243
|
-
/* @__PURE__ */ u("li", { "data-node-id": e.id, className: pe({ orientation:
|
|
1231
|
+
/* @__PURE__ */ u("li", { "data-node-id": e.id, className: pe({ orientation: s }), children: [
|
|
1244
1232
|
/* @__PURE__ */ u(
|
|
1245
1233
|
"div",
|
|
1246
1234
|
{
|
|
@@ -1258,13 +1246,13 @@ function ut({
|
|
|
1258
1246
|
onClick: l ? y : void 0,
|
|
1259
1247
|
onKeyDown: l ? x : void 0,
|
|
1260
1248
|
className: he({
|
|
1261
|
-
orientation:
|
|
1249
|
+
orientation: s,
|
|
1262
1250
|
compact: o,
|
|
1263
|
-
state:
|
|
1251
|
+
state: r,
|
|
1264
1252
|
interactive: l
|
|
1265
1253
|
}),
|
|
1266
1254
|
"data-node-id": e.id,
|
|
1267
|
-
"data-state":
|
|
1255
|
+
"data-state": r,
|
|
1268
1256
|
children: [
|
|
1269
1257
|
/* @__PURE__ */ t(
|
|
1270
1258
|
"span",
|
|
@@ -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"
|
|
@@ -1299,17 +1287,17 @@ function ut({
|
|
|
1299
1287
|
"span",
|
|
1300
1288
|
{
|
|
1301
1289
|
"aria-hidden": "true",
|
|
1302
|
-
className: we({ orientation:
|
|
1290
|
+
className: we({ orientation: s, compact: o }),
|
|
1303
1291
|
"data-testid": "workflow-map-connector"
|
|
1304
1292
|
}
|
|
1305
1293
|
)
|
|
1306
1294
|
] })
|
|
1307
1295
|
);
|
|
1308
1296
|
}
|
|
1309
|
-
function
|
|
1297
|
+
function ut({
|
|
1310
1298
|
orientation: e,
|
|
1311
|
-
compact:
|
|
1312
|
-
criteria:
|
|
1299
|
+
compact: r,
|
|
1300
|
+
criteria: s
|
|
1313
1301
|
}) {
|
|
1314
1302
|
const { t: o } = M();
|
|
1315
1303
|
return /* @__PURE__ */ u("li", { className: pe({ orientation: e }), children: [
|
|
@@ -1318,7 +1306,7 @@ function ft({
|
|
|
1318
1306
|
{
|
|
1319
1307
|
className: he({
|
|
1320
1308
|
orientation: e,
|
|
1321
|
-
compact:
|
|
1309
|
+
compact: r,
|
|
1322
1310
|
state: "neutral",
|
|
1323
1311
|
interactive: !1
|
|
1324
1312
|
}),
|
|
@@ -1329,13 +1317,13 @@ 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: [
|
|
1336
|
-
/* @__PURE__ */ t("span", { className:
|
|
1337
|
-
|
|
1338
|
-
count:
|
|
1324
|
+
/* @__PURE__ */ t("span", { className: r ? "type-meta ds:truncate" : "type-body-sm", children: o("workflow.editor.enrollmentCriteria") }),
|
|
1325
|
+
r ? null : /* @__PURE__ */ t("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: s.summary ?? o("workflow.editor.criteriaCount", {
|
|
1326
|
+
count: s.ruleCount
|
|
1339
1327
|
}) })
|
|
1340
1328
|
] })
|
|
1341
1329
|
]
|
|
@@ -1345,24 +1333,24 @@ function ft({
|
|
|
1345
1333
|
"span",
|
|
1346
1334
|
{
|
|
1347
1335
|
"aria-hidden": "true",
|
|
1348
|
-
className: we({ orientation: e, compact:
|
|
1336
|
+
className: we({ orientation: e, compact: r })
|
|
1349
1337
|
}
|
|
1350
1338
|
)
|
|
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
|
L as w
|
|
1367
1355
|
};
|
|
1368
|
-
//# sourceMappingURL=workflow-map-
|
|
1356
|
+
//# sourceMappingURL=workflow-map-qWsgCldq.js.map
|