@alfadocs/ui-kit 1.52.0 → 1.53.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-autocomplete-BVLoHU3E.js → address-autocomplete-Bp816Mb1.js} +2 -2
- package/dist/_chunks/{address-fields-UiEXHxEX.js → address-fields-BIL6cvLS.js} +2 -2
- package/dist/_chunks/{agenda-tray-C-_iu6Fo.js → agenda-tray-C2a8OfKC.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-DaSoA80I.js → anamnesis-summary-rows-CnHxtht-.js} +3 -3
- package/dist/_chunks/apexcharts-theme-DNoXvgnZ.js +105 -0
- package/dist/_chunks/{appointment-timeline-BZErHbD1.js → appointment-timeline-By-EwmJU.js} +2 -2
- package/dist/_chunks/{appointment-tray-DR_Zm4Gw.js → appointment-tray-7Z3A3Xz9.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-CS-iKkLM.js → balance-badge-cell-BtiFfFRY.js} +2 -2
- package/dist/_chunks/{booking-DP543-BT.js → booking-CFR7vU8X.js} +3 -3
- package/dist/_chunks/{calendar-workspace-B9MKJXER.js → calendar-workspace-LDuzo_Ie.js} +7 -7
- package/dist/_chunks/{chart-CuE30cfr.js → chart-D37VAIa-.js} +81 -81
- package/dist/_chunks/{data-table-DJvEwZZx.js → data-table-CiVyhNXx.js} +2 -2
- package/dist/_chunks/{document-preview-1CZJg6CX.js → document-preview-VXOQZZvy.js} +2 -2
- package/dist/_chunks/{empty-state-DActfjdn.js → empty-state-C62P_6kr.js} +59 -48
- package/dist/_chunks/{error-boundary--w5hYiQ-.js → error-boundary-Cvs23EzK.js} +2 -2
- package/dist/_chunks/error-page-BtxEOL6g.js +780 -0
- package/dist/_chunks/{file-manager-BGHShxn_.js → file-manager-BfG3usGk.js} +3 -3
- package/dist/_chunks/{help-me-write-templates-CGCyhAVE.js → help-me-write-templates-DcR-e_90.js} +2 -2
- package/dist/_chunks/{index.modern-Zta-A4Jm.js → index.modern-BeRXQVdc.js} +3 -2
- package/dist/_chunks/{map-view-CmNGS6Ok.js → map-view-CQmqQJwK.js} +158 -129
- package/dist/_chunks/{practice-results-DjhcggtZ.js → practice-results-B9uV0TT8.js} +3 -3
- package/dist/_chunks/{privacy-mask-noG15O9q.js → privacy-mask-CK-9sxeI.js} +2 -2
- package/dist/_chunks/{product-hub-panel-BmBzDba9.js → product-hub-panel-D87kbz5j.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-BP71J_VB.js → radiograph-panel.agent-BWBaxJ8e.js} +2 -2
- package/dist/_chunks/{reviews-panel-DDb_t7vy.js → reviews-panel-DUgqU-Wr.js} +2 -2
- package/dist/_chunks/{slot-grid-Bkg9MVXP.js → slot-grid-kq7bDdrx.js} +2 -2
- package/dist/_chunks/{sparkline-ZOxMBU76.js → sparkline-pkGPCXbl.js} +80 -80
- package/dist/_chunks/{task-card-CngF4Zee.js → task-card-Cfl08MCS.js} +2 -2
- package/dist/_chunks/{task-editor-Dz93rRXg.js → task-editor-CxF-sBnu.js} +2 -2
- package/dist/_chunks/{task-tray-CB6_BvH9.js → task-tray-rAGslT2C.js} +3 -3
- package/dist/_chunks/{tasks-panel-DHAoTQtR.js → tasks-panel-Dkm8SnmV.js} +3 -3
- package/dist/_chunks/{use-appointment-details-read-YsuJgYeB.js → use-appointment-details-read-W6h4oTHx.js} +3 -3
- package/dist/_chunks/{workflow-map-C7fHKTXL.js → workflow-map-C1OjRhM3.js} +189 -197
- package/dist/agent-catalog.json +51 -7
- package/dist/agent-i18n/en.json +9 -3
- package/dist/components/_shared/index.d.ts +1 -0
- package/dist/components/_shared/is-development.d.ts +8 -0
- package/dist/components/_shared/use-keep-apex-tooltip-inside.d.ts +3 -0
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/appointment-card/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/empty-state/empty-state.d.ts +6 -0
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/error-boundary/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +8 -5
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/error-pages/400.ar.html +41 -0
- package/dist/error-pages/400.de.html +41 -0
- package/dist/error-pages/400.el.html +41 -0
- package/dist/error-pages/400.en.html +41 -0
- package/dist/error-pages/400.es.html +41 -0
- package/dist/error-pages/400.fr.html +41 -0
- package/dist/error-pages/400.hi.html +41 -0
- package/dist/error-pages/400.html +41 -0
- package/dist/error-pages/400.it.html +41 -0
- package/dist/error-pages/400.ja.html +41 -0
- package/dist/error-pages/400.nl.html +41 -0
- package/dist/error-pages/400.pl.html +41 -0
- package/dist/error-pages/400.pt.html +41 -0
- package/dist/error-pages/400.ro.html +41 -0
- package/dist/error-pages/400.ru.html +41 -0
- package/dist/error-pages/400.sq.html +41 -0
- package/dist/error-pages/400.sv.html +41 -0
- package/dist/error-pages/400.tr.html +41 -0
- package/dist/error-pages/400.zh.html +41 -0
- package/dist/error-pages/401.ar.html +41 -0
- package/dist/error-pages/401.de.html +41 -0
- package/dist/error-pages/401.el.html +41 -0
- package/dist/error-pages/401.en.html +41 -0
- package/dist/error-pages/401.es.html +41 -0
- package/dist/error-pages/401.fr.html +41 -0
- package/dist/error-pages/401.hi.html +41 -0
- package/dist/error-pages/401.html +41 -0
- package/dist/error-pages/401.it.html +41 -0
- package/dist/error-pages/401.ja.html +41 -0
- package/dist/error-pages/401.nl.html +41 -0
- package/dist/error-pages/401.pl.html +41 -0
- package/dist/error-pages/401.pt.html +41 -0
- package/dist/error-pages/401.ro.html +41 -0
- package/dist/error-pages/401.ru.html +41 -0
- package/dist/error-pages/401.sq.html +41 -0
- package/dist/error-pages/401.sv.html +41 -0
- package/dist/error-pages/401.tr.html +41 -0
- package/dist/error-pages/401.zh.html +41 -0
- package/dist/error-pages/403.ar.html +41 -0
- package/dist/error-pages/403.de.html +41 -0
- package/dist/error-pages/403.el.html +41 -0
- package/dist/error-pages/403.en.html +41 -0
- package/dist/error-pages/403.es.html +41 -0
- package/dist/error-pages/403.fr.html +41 -0
- package/dist/error-pages/403.hi.html +41 -0
- package/dist/error-pages/403.html +41 -0
- package/dist/error-pages/403.it.html +41 -0
- package/dist/error-pages/403.ja.html +41 -0
- package/dist/error-pages/403.nl.html +41 -0
- package/dist/error-pages/403.pl.html +41 -0
- package/dist/error-pages/403.pt.html +41 -0
- package/dist/error-pages/403.ro.html +41 -0
- package/dist/error-pages/403.ru.html +41 -0
- package/dist/error-pages/403.sq.html +41 -0
- package/dist/error-pages/403.sv.html +41 -0
- package/dist/error-pages/403.tr.html +41 -0
- package/dist/error-pages/403.zh.html +41 -0
- package/dist/error-pages/404.ar.html +41 -0
- package/dist/error-pages/404.de.html +41 -0
- package/dist/error-pages/404.el.html +41 -0
- package/dist/error-pages/404.en.html +41 -0
- package/dist/error-pages/404.es.html +41 -0
- package/dist/error-pages/404.fr.html +41 -0
- package/dist/error-pages/404.hi.html +41 -0
- package/dist/error-pages/404.html +41 -0
- package/dist/error-pages/404.it.html +41 -0
- package/dist/error-pages/404.ja.html +41 -0
- package/dist/error-pages/404.nl.html +41 -0
- package/dist/error-pages/404.pl.html +41 -0
- package/dist/error-pages/404.pt.html +41 -0
- package/dist/error-pages/404.ro.html +41 -0
- package/dist/error-pages/404.ru.html +41 -0
- package/dist/error-pages/404.sq.html +41 -0
- package/dist/error-pages/404.sv.html +41 -0
- package/dist/error-pages/404.tr.html +41 -0
- package/dist/error-pages/404.zh.html +41 -0
- package/dist/error-pages/405.ar.html +41 -0
- package/dist/error-pages/405.de.html +41 -0
- package/dist/error-pages/405.el.html +41 -0
- package/dist/error-pages/405.en.html +41 -0
- package/dist/error-pages/405.es.html +41 -0
- package/dist/error-pages/405.fr.html +41 -0
- package/dist/error-pages/405.hi.html +41 -0
- package/dist/error-pages/405.html +41 -0
- package/dist/error-pages/405.it.html +41 -0
- package/dist/error-pages/405.ja.html +41 -0
- package/dist/error-pages/405.nl.html +41 -0
- package/dist/error-pages/405.pl.html +41 -0
- package/dist/error-pages/405.pt.html +41 -0
- package/dist/error-pages/405.ro.html +41 -0
- package/dist/error-pages/405.ru.html +41 -0
- package/dist/error-pages/405.sq.html +41 -0
- package/dist/error-pages/405.sv.html +41 -0
- package/dist/error-pages/405.tr.html +41 -0
- package/dist/error-pages/405.zh.html +41 -0
- package/dist/error-pages/410.ar.html +41 -0
- package/dist/error-pages/410.de.html +41 -0
- package/dist/error-pages/410.el.html +41 -0
- package/dist/error-pages/410.en.html +41 -0
- package/dist/error-pages/410.es.html +41 -0
- package/dist/error-pages/410.fr.html +41 -0
- package/dist/error-pages/410.hi.html +41 -0
- package/dist/error-pages/410.html +41 -0
- package/dist/error-pages/410.it.html +41 -0
- package/dist/error-pages/410.ja.html +41 -0
- package/dist/error-pages/410.nl.html +41 -0
- package/dist/error-pages/410.pl.html +41 -0
- package/dist/error-pages/410.pt.html +41 -0
- package/dist/error-pages/410.ro.html +41 -0
- package/dist/error-pages/410.ru.html +41 -0
- package/dist/error-pages/410.sq.html +41 -0
- package/dist/error-pages/410.sv.html +41 -0
- package/dist/error-pages/410.tr.html +41 -0
- package/dist/error-pages/410.zh.html +41 -0
- package/dist/error-pages/419.ar.html +42 -0
- package/dist/error-pages/419.de.html +42 -0
- package/dist/error-pages/419.el.html +42 -0
- package/dist/error-pages/419.en.html +42 -0
- package/dist/error-pages/419.es.html +42 -0
- package/dist/error-pages/419.fr.html +42 -0
- package/dist/error-pages/419.hi.html +42 -0
- package/dist/error-pages/419.html +42 -0
- package/dist/error-pages/419.it.html +42 -0
- package/dist/error-pages/419.ja.html +42 -0
- package/dist/error-pages/419.nl.html +42 -0
- package/dist/error-pages/419.pl.html +42 -0
- package/dist/error-pages/419.pt.html +42 -0
- package/dist/error-pages/419.ro.html +42 -0
- package/dist/error-pages/419.ru.html +42 -0
- package/dist/error-pages/419.sq.html +42 -0
- package/dist/error-pages/419.sv.html +42 -0
- package/dist/error-pages/419.tr.html +42 -0
- package/dist/error-pages/419.zh.html +42 -0
- package/dist/error-pages/429.ar.html +42 -0
- package/dist/error-pages/429.de.html +42 -0
- package/dist/error-pages/429.el.html +42 -0
- package/dist/error-pages/429.en.html +42 -0
- package/dist/error-pages/429.es.html +42 -0
- package/dist/error-pages/429.fr.html +42 -0
- package/dist/error-pages/429.hi.html +42 -0
- package/dist/error-pages/429.html +42 -0
- package/dist/error-pages/429.it.html +42 -0
- package/dist/error-pages/429.ja.html +42 -0
- package/dist/error-pages/429.nl.html +42 -0
- package/dist/error-pages/429.pl.html +42 -0
- package/dist/error-pages/429.pt.html +42 -0
- package/dist/error-pages/429.ro.html +42 -0
- package/dist/error-pages/429.ru.html +42 -0
- package/dist/error-pages/429.sq.html +42 -0
- package/dist/error-pages/429.sv.html +42 -0
- package/dist/error-pages/429.tr.html +42 -0
- package/dist/error-pages/429.zh.html +42 -0
- package/dist/error-pages/500.ar.html +41 -0
- package/dist/error-pages/500.de.html +41 -0
- package/dist/error-pages/500.el.html +41 -0
- package/dist/error-pages/500.en.html +41 -0
- package/dist/error-pages/500.es.html +41 -0
- package/dist/error-pages/500.fr.html +41 -0
- package/dist/error-pages/500.hi.html +41 -0
- package/dist/error-pages/500.html +41 -0
- package/dist/error-pages/500.it.html +41 -0
- package/dist/error-pages/500.ja.html +41 -0
- package/dist/error-pages/500.nl.html +41 -0
- package/dist/error-pages/500.pl.html +41 -0
- package/dist/error-pages/500.pt.html +41 -0
- package/dist/error-pages/500.ro.html +41 -0
- package/dist/error-pages/500.ru.html +41 -0
- package/dist/error-pages/500.sq.html +41 -0
- package/dist/error-pages/500.sv.html +41 -0
- package/dist/error-pages/500.tr.html +41 -0
- package/dist/error-pages/500.zh.html +41 -0
- package/dist/error-pages/502.ar.html +41 -0
- package/dist/error-pages/502.de.html +41 -0
- package/dist/error-pages/502.el.html +41 -0
- package/dist/error-pages/502.en.html +41 -0
- package/dist/error-pages/502.es.html +41 -0
- package/dist/error-pages/502.fr.html +41 -0
- package/dist/error-pages/502.hi.html +41 -0
- package/dist/error-pages/502.html +41 -0
- package/dist/error-pages/502.it.html +41 -0
- package/dist/error-pages/502.ja.html +41 -0
- package/dist/error-pages/502.nl.html +41 -0
- package/dist/error-pages/502.pl.html +41 -0
- package/dist/error-pages/502.pt.html +41 -0
- package/dist/error-pages/502.ro.html +41 -0
- package/dist/error-pages/502.ru.html +41 -0
- package/dist/error-pages/502.sq.html +41 -0
- package/dist/error-pages/502.sv.html +41 -0
- package/dist/error-pages/502.tr.html +41 -0
- package/dist/error-pages/502.zh.html +41 -0
- package/dist/error-pages/503.ar.html +41 -0
- package/dist/error-pages/503.de.html +41 -0
- package/dist/error-pages/503.el.html +41 -0
- package/dist/error-pages/503.en.html +41 -0
- package/dist/error-pages/503.es.html +41 -0
- package/dist/error-pages/503.fr.html +41 -0
- package/dist/error-pages/503.hi.html +41 -0
- package/dist/error-pages/503.html +41 -0
- package/dist/error-pages/503.it.html +41 -0
- package/dist/error-pages/503.ja.html +41 -0
- package/dist/error-pages/503.nl.html +41 -0
- package/dist/error-pages/503.pl.html +41 -0
- package/dist/error-pages/503.pt.html +41 -0
- package/dist/error-pages/503.ro.html +41 -0
- package/dist/error-pages/503.ru.html +41 -0
- package/dist/error-pages/503.sq.html +41 -0
- package/dist/error-pages/503.sv.html +41 -0
- package/dist/error-pages/503.tr.html +41 -0
- package/dist/error-pages/503.zh.html +41 -0
- package/dist/error-pages/504.ar.html +41 -0
- package/dist/error-pages/504.de.html +41 -0
- package/dist/error-pages/504.el.html +41 -0
- package/dist/error-pages/504.en.html +41 -0
- package/dist/error-pages/504.es.html +41 -0
- package/dist/error-pages/504.fr.html +41 -0
- package/dist/error-pages/504.hi.html +41 -0
- package/dist/error-pages/504.html +41 -0
- package/dist/error-pages/504.it.html +41 -0
- package/dist/error-pages/504.ja.html +41 -0
- package/dist/error-pages/504.nl.html +41 -0
- package/dist/error-pages/504.pl.html +41 -0
- package/dist/error-pages/504.pt.html +41 -0
- package/dist/error-pages/504.ro.html +41 -0
- package/dist/error-pages/504.ru.html +41 -0
- package/dist/error-pages/504.sq.html +41 -0
- package/dist/error-pages/504.sv.html +41 -0
- package/dist/error-pages/504.tr.html +41 -0
- package/dist/error-pages/504.zh.html +41 -0
- package/dist/error-pages/maintenance.ar.html +41 -0
- package/dist/error-pages/maintenance.de.html +41 -0
- package/dist/error-pages/maintenance.el.html +41 -0
- package/dist/error-pages/maintenance.en.html +41 -0
- package/dist/error-pages/maintenance.es.html +41 -0
- package/dist/error-pages/maintenance.fr.html +41 -0
- package/dist/error-pages/maintenance.hi.html +41 -0
- package/dist/error-pages/maintenance.html +41 -0
- package/dist/error-pages/maintenance.it.html +41 -0
- package/dist/error-pages/maintenance.ja.html +41 -0
- package/dist/error-pages/maintenance.nl.html +41 -0
- package/dist/error-pages/maintenance.pl.html +41 -0
- package/dist/error-pages/maintenance.pt.html +41 -0
- package/dist/error-pages/maintenance.ro.html +41 -0
- package/dist/error-pages/maintenance.ru.html +41 -0
- package/dist/error-pages/maintenance.sq.html +41 -0
- package/dist/error-pages/maintenance.sv.html +41 -0
- package/dist/error-pages/maintenance.tr.html +41 -0
- package/dist/error-pages/maintenance.zh.html +41 -0
- package/dist/host-compat.css +13 -1
- package/dist/i18n/locales/ar.d.ts +70 -0
- package/dist/i18n/locales/ar.js +70 -0
- package/dist/i18n/locales/de.d.ts +70 -0
- package/dist/i18n/locales/de.js +70 -0
- package/dist/i18n/locales/el.d.ts +70 -0
- package/dist/i18n/locales/el.js +70 -0
- package/dist/i18n/locales/en.d.ts +70 -0
- package/dist/i18n/locales/en.js +70 -0
- package/dist/i18n/locales/es.d.ts +70 -0
- package/dist/i18n/locales/es.js +70 -0
- package/dist/i18n/locales/fr.d.ts +70 -0
- package/dist/i18n/locales/fr.js +70 -0
- package/dist/i18n/locales/hi.d.ts +70 -0
- package/dist/i18n/locales/hi.js +70 -0
- package/dist/i18n/locales/it.d.ts +70 -0
- package/dist/i18n/locales/it.js +70 -0
- package/dist/i18n/locales/ja.d.ts +70 -0
- package/dist/i18n/locales/ja.js +70 -0
- package/dist/i18n/locales/nl.d.ts +70 -0
- package/dist/i18n/locales/nl.js +70 -0
- package/dist/i18n/locales/pl.d.ts +70 -0
- package/dist/i18n/locales/pl.js +70 -0
- package/dist/i18n/locales/pt.d.ts +70 -0
- package/dist/i18n/locales/pt.js +70 -0
- package/dist/i18n/locales/ro.d.ts +70 -0
- package/dist/i18n/locales/ro.js +70 -0
- package/dist/i18n/locales/ru.d.ts +70 -0
- package/dist/i18n/locales/ru.js +70 -0
- package/dist/i18n/locales/sq.d.ts +70 -0
- package/dist/i18n/locales/sq.js +70 -0
- package/dist/i18n/locales/sv.d.ts +70 -0
- package/dist/i18n/locales/sv.js +70 -0
- package/dist/i18n/locales/tr.d.ts +70 -0
- package/dist/i18n/locales/tr.js +70 -0
- package/dist/i18n/locales/zh.d.ts +70 -0
- package/dist/i18n/locales/zh.js +70 -0
- package/dist/index.js +143 -137
- package/dist/locales/ar.json +70 -0
- package/dist/locales/de.json +70 -0
- package/dist/locales/el.json +70 -0
- package/dist/locales/en.json +70 -0
- package/dist/locales/es.json +70 -0
- package/dist/locales/fr.json +70 -0
- package/dist/locales/hi.json +70 -0
- package/dist/locales/it.json +70 -0
- package/dist/locales/ja.json +70 -0
- package/dist/locales/nl.json +70 -0
- package/dist/locales/pl.json +70 -0
- package/dist/locales/pt.json +70 -0
- package/dist/locales/ro.json +70 -0
- package/dist/locales/ru.json +70 -0
- package/dist/locales/sq.json +70 -0
- package/dist/locales/sv.json +70 -0
- package/dist/locales/tr.json +70 -0
- package/dist/locales/zh.json +70 -0
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/error-page/error-page-illustration.d.ts +6 -0
- package/dist/patterns/error-page/error-page-locale.d.ts +32 -0
- package/dist/patterns/error-page/error-page-statuses.d.ts +16 -0
- package/dist/patterns/error-page/error-page.d.ts +48 -0
- package/dist/patterns/error-page/index.d.ts +5 -0
- package/dist/patterns/error-page/index.js +9 -0
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +9 -2
- package/dist/_chunks/apexcharts-theme-B_AxGC_h.js +0 -72
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as c, Fragment as ve } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as H, useMemo as W, useRef as M, useCallback as F, useState as ge, useImperativeHandle as be, useEffect as ke } from "react";
|
|
3
3
|
import { c as j } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as z } from "react-i18next";
|
|
@@ -16,7 +16,7 @@ import { u as _e } from "./registry-DvAUVLHh.js";
|
|
|
16
16
|
import { A as V } from "./alert-BhCstf2h.js";
|
|
17
17
|
import { B as Se } from "./button-CYPx2xFq.js";
|
|
18
18
|
import { D as N } from "./dropdown-menu-B5mgV1kV.js";
|
|
19
|
-
import { E } from "./empty-state-
|
|
19
|
+
import { E } from "./empty-state-C62P_6kr.js";
|
|
20
20
|
import { P as ne } from "./plus-DzMQ_c6b.js";
|
|
21
21
|
import { G as ie } from "./globe-sHBW1JN5.js";
|
|
22
22
|
import { U as de } from "./user-cog-BTn98Arm.js";
|
|
@@ -27,8 +27,8 @@ import { M as fe } from "./mail-BqXVF2zH.js";
|
|
|
27
27
|
import { C as me } from "./clock-Drd4Wtis.js";
|
|
28
28
|
import { C as ze } from "./chevron-up-umRGgtJA.js";
|
|
29
29
|
import { C as Me } from "./chevron-down-DWE7GSq9.js";
|
|
30
|
-
import { C as
|
|
31
|
-
import { C as
|
|
30
|
+
import { C as Ie } from "./clipboard-check-BeAGxDVT.js";
|
|
31
|
+
import { C as Ae } from "./check-DrFSN__t.js";
|
|
32
32
|
/**
|
|
33
33
|
* @license lucide-react v1.22.0 - ISC
|
|
34
34
|
*
|
|
@@ -102,18 +102,18 @@ const Re = H(
|
|
|
102
102
|
onToggleActive: a,
|
|
103
103
|
className: p
|
|
104
104
|
}, m) {
|
|
105
|
-
const { t:
|
|
106
|
-
k.stopPropagation(),
|
|
105
|
+
const { t: l } = z("ui"), i = Pe(r.status), u = r.status === "active", v = s === "compact", h = (w) => (k) => {
|
|
106
|
+
k.stopPropagation(), w == null || w();
|
|
107
107
|
}, y = /* @__PURE__ */ t(
|
|
108
108
|
ye,
|
|
109
109
|
{
|
|
110
110
|
variant: i.badgeVariant,
|
|
111
111
|
leading: i.icon,
|
|
112
112
|
withDot: !1,
|
|
113
|
-
children:
|
|
113
|
+
children: l(`workflow.status.${r.status}`)
|
|
114
114
|
}
|
|
115
|
-
), x =
|
|
116
|
-
return /* @__PURE__ */
|
|
115
|
+
), x = l("workflow.card.activeEnrollments");
|
|
116
|
+
return /* @__PURE__ */ c(
|
|
117
117
|
C,
|
|
118
118
|
{
|
|
119
119
|
ref: m,
|
|
@@ -122,8 +122,8 @@ const Re = H(
|
|
|
122
122
|
"data-component": "workflow-card",
|
|
123
123
|
"data-component-id": r.id,
|
|
124
124
|
children: [
|
|
125
|
-
/* @__PURE__ */ t(C.Header, { children: /* @__PURE__ */
|
|
126
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ t(C.Header, { children: /* @__PURE__ */ c("div", { className: "ds:flex ds:items-start ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
126
|
+
/* @__PURE__ */ c("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
127
127
|
/* @__PURE__ */ t("h3", { className: "ds:m-0 type-title-card ds:text-[color:var(--foreground)] ds:[overflow-wrap:anywhere] ds:break-words", children: o ? /* @__PURE__ */ t(
|
|
128
128
|
"button",
|
|
129
129
|
{
|
|
@@ -146,32 +146,32 @@ const Re = H(
|
|
|
146
146
|
children: r.name
|
|
147
147
|
}
|
|
148
148
|
) : r.name }),
|
|
149
|
-
v && /* @__PURE__ */
|
|
149
|
+
v && /* @__PURE__ */ c("span", { className: "ds:flex ds:items-baseline ds:gap-[var(--spacing-xs)] type-body-sm ds:text-[color:var(--muted-foreground)]", children: [
|
|
150
150
|
/* @__PURE__ */ t("span", { children: x }),
|
|
151
151
|
/* @__PURE__ */ t("span", { className: "ds:font-medium ds:text-[color:var(--foreground)]", children: r.stats.activeEnrollments })
|
|
152
152
|
] })
|
|
153
153
|
] }),
|
|
154
154
|
/* @__PURE__ */ t("div", { className: "ds:shrink-0", children: y })
|
|
155
155
|
] }) }),
|
|
156
|
-
!v && /* @__PURE__ */
|
|
156
|
+
!v && /* @__PURE__ */ c(C.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
157
157
|
/* @__PURE__ */ t(
|
|
158
158
|
Z,
|
|
159
159
|
{
|
|
160
|
-
label:
|
|
160
|
+
label: l("workflow.card.activeEnrollments"),
|
|
161
161
|
value: r.stats.activeEnrollments
|
|
162
162
|
}
|
|
163
163
|
),
|
|
164
164
|
/* @__PURE__ */ t(
|
|
165
165
|
Z,
|
|
166
166
|
{
|
|
167
|
-
label:
|
|
167
|
+
label: l("workflow.card.totalEnrollments"),
|
|
168
168
|
value: r.stats.totalEnrollments
|
|
169
169
|
}
|
|
170
170
|
)
|
|
171
171
|
] }),
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
-
/* @__PURE__ */
|
|
174
|
-
/* @__PURE__ */ t("span", { className: "ds:truncate", title: r.createdBy, children:
|
|
172
|
+
/* @__PURE__ */ c(C.Footer, { className: "ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
173
|
+
/* @__PURE__ */ c("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: [
|
|
174
|
+
/* @__PURE__ */ t("span", { className: "ds:truncate", title: r.createdBy, children: l("workflow.createdBy", { name: r.createdBy }) }),
|
|
175
175
|
r.updatedAt && /* @__PURE__ */ t(
|
|
176
176
|
xe,
|
|
177
177
|
{
|
|
@@ -183,27 +183,27 @@ const Re = H(
|
|
|
183
183
|
}
|
|
184
184
|
)
|
|
185
185
|
] }),
|
|
186
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ c("div", { className: "ds:relative ds:z-10 ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-xs)] ds:ms-auto", children: [
|
|
187
187
|
d && /* @__PURE__ */ t(
|
|
188
188
|
S,
|
|
189
189
|
{
|
|
190
190
|
icon: /* @__PURE__ */ t($, {}),
|
|
191
191
|
size: "sm",
|
|
192
192
|
intent: "ghost",
|
|
193
|
-
"aria-label":
|
|
194
|
-
onClick:
|
|
193
|
+
"aria-label": l("workflow.card.edit"),
|
|
194
|
+
onClick: h(() => d(r.id))
|
|
195
195
|
}
|
|
196
196
|
),
|
|
197
197
|
a && /* @__PURE__ */ t(
|
|
198
198
|
S,
|
|
199
199
|
{
|
|
200
|
-
icon:
|
|
200
|
+
icon: u ? /* @__PURE__ */ t(De, {}) : /* @__PURE__ */ t(Ke, {}),
|
|
201
201
|
size: "sm",
|
|
202
202
|
intent: "ghost",
|
|
203
|
-
"aria-label":
|
|
204
|
-
|
|
203
|
+
"aria-label": l(
|
|
204
|
+
u ? "workflow.card.deactivate" : "workflow.card.activate"
|
|
205
205
|
),
|
|
206
|
-
onClick:
|
|
206
|
+
onClick: h(() => a(r.id, !u))
|
|
207
207
|
}
|
|
208
208
|
),
|
|
209
209
|
n && /* @__PURE__ */ t(
|
|
@@ -212,8 +212,8 @@ const Re = H(
|
|
|
212
212
|
icon: /* @__PURE__ */ t(ae, {}),
|
|
213
213
|
size: "sm",
|
|
214
214
|
intent: "destructive",
|
|
215
|
-
"aria-label":
|
|
216
|
-
onClick:
|
|
215
|
+
"aria-label": l("workflow.card.delete"),
|
|
216
|
+
onClick: h(() => n(r.id))
|
|
217
217
|
}
|
|
218
218
|
)
|
|
219
219
|
] })
|
|
@@ -322,17 +322,17 @@ function G(e) {
|
|
|
322
322
|
if (e.nodes.length === 0) return [];
|
|
323
323
|
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();
|
|
324
324
|
for (const i of r) {
|
|
325
|
-
const
|
|
326
|
-
|
|
325
|
+
const u = a.get(i.from) ?? [];
|
|
326
|
+
u.push(i), a.set(i.from, u);
|
|
327
327
|
}
|
|
328
328
|
const p = /* @__PURE__ */ new Set(), m = [];
|
|
329
|
-
let
|
|
330
|
-
for (;
|
|
331
|
-
p.add(
|
|
332
|
-
const i = a.get(
|
|
329
|
+
let l = d;
|
|
330
|
+
for (; l && !p.has(l.id); ) {
|
|
331
|
+
p.add(l.id), m.push(l);
|
|
332
|
+
const i = a.get(l.id) ?? [];
|
|
333
333
|
i.length > 1 && typeof console < "u" && console.warn(
|
|
334
|
-
`[workflow] node ${
|
|
335
|
-
),
|
|
334
|
+
`[workflow] node ${l.id} has ${i.length} outgoing linear edges; v1 walks the first only.`
|
|
335
|
+
), l = i[0] ? n.get(i[0].to) : void 0;
|
|
336
336
|
}
|
|
337
337
|
for (const i of e.nodes)
|
|
338
338
|
p.has(i.id) || m.push(i);
|
|
@@ -383,15 +383,15 @@ function ee(e, r) {
|
|
|
383
383
|
};
|
|
384
384
|
}
|
|
385
385
|
function Fe(e, r, s) {
|
|
386
|
-
var
|
|
386
|
+
var h;
|
|
387
387
|
const o = G(e), d = o.findIndex((y) => y.id === r);
|
|
388
388
|
if (d === -1) return e;
|
|
389
389
|
const n = s === "up" ? d - 1 : d + 1;
|
|
390
390
|
if (n < 0 || n >= o.length) return e;
|
|
391
391
|
const a = o[d], p = o[n];
|
|
392
392
|
if (!a || !p) return e;
|
|
393
|
-
const m = ee(ee(e, a.id), p.id),
|
|
394
|
-
return q(v,
|
|
393
|
+
const m = ee(ee(e, a.id), p.id), l = s === "up" ? a : p, i = s === "up" ? p : a, u = ((h = o[Math.min(d, n) - 1]) == null ? void 0 : h.id) ?? null, v = q(m, u, l);
|
|
394
|
+
return q(v, l.id, i);
|
|
395
395
|
}
|
|
396
396
|
const Oe = /* @__PURE__ */ new Set([
|
|
397
397
|
"dateOfBirth",
|
|
@@ -572,7 +572,7 @@ function et({
|
|
|
572
572
|
onMove: a,
|
|
573
573
|
registerRef: p
|
|
574
574
|
}) {
|
|
575
|
-
const { t: m } = z("ui"),
|
|
575
|
+
const { t: m } = z("ui"), l = D[e.type], i = M(null), [u, v] = Ze(0), h = F(
|
|
576
576
|
(g) => {
|
|
577
577
|
var B, P;
|
|
578
578
|
const _ = (B = i.current) == null ? void 0 : B.querySelectorAll(
|
|
@@ -584,10 +584,10 @@ function et({
|
|
|
584
584
|
},
|
|
585
585
|
[v]
|
|
586
586
|
), y = (g) => {
|
|
587
|
-
g.target === g.currentTarget && (g.key === "ArrowRight" || g.key === "ArrowDown") && (g.preventDefault(),
|
|
587
|
+
g.target === g.currentTarget && (g.key === "ArrowRight" || g.key === "ArrowDown") && (g.preventDefault(), h(0));
|
|
588
588
|
}, x = (g) => {
|
|
589
|
-
g.key === "ArrowRight" ? (g.preventDefault(),
|
|
590
|
-
},
|
|
589
|
+
g.key === "ArrowRight" ? (g.preventDefault(), h(u.current + 1)) : g.key === "ArrowLeft" ? (g.preventDefault(), h(u.current - 1)) : g.key === "Home" ? (g.preventDefault(), h(0)) : g.key === "End" && (g.preventDefault(), h(Number.POSITIVE_INFINITY));
|
|
590
|
+
}, w = Ue(e.settings, m), k = m(l.labelKey), I = r > 0, A = r < s - 1, L = m("workflow.editor.position", {
|
|
591
591
|
current: r + 1,
|
|
592
592
|
total: s
|
|
593
593
|
}), T = m("workflow.editor.nodeAriaLabel", {
|
|
@@ -606,21 +606,21 @@ function et({
|
|
|
606
606
|
"aria-label": T,
|
|
607
607
|
"data-node-id": e.id,
|
|
608
608
|
className: Ye,
|
|
609
|
-
children: /* @__PURE__ */
|
|
610
|
-
/* @__PURE__ */ t(C.Header, { className: "ds:pb-[var(--spacing-sm)]", children: /* @__PURE__ */
|
|
609
|
+
children: /* @__PURE__ */ c(C, { variant: "outlined", children: [
|
|
610
|
+
/* @__PURE__ */ t(C.Header, { className: "ds:pb-[var(--spacing-sm)]", children: /* @__PURE__ */ c("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
611
611
|
/* @__PURE__ */ t(
|
|
612
612
|
"span",
|
|
613
613
|
{
|
|
614
614
|
"aria-hidden": "true",
|
|
615
615
|
className: "ds:inline-flex ds:size-8 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-[var(--radius-sm)] ds:bg-[color:var(--muted)]/20 ds:text-[color:var(--foreground)]",
|
|
616
|
-
children: /* @__PURE__ */ t(Y, { iconName:
|
|
616
|
+
children: /* @__PURE__ */ t(Y, { iconName: l.iconName, className: "ds:size-4" })
|
|
617
617
|
}
|
|
618
618
|
),
|
|
619
|
-
/* @__PURE__ */
|
|
619
|
+
/* @__PURE__ */ c("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col", children: [
|
|
620
620
|
/* @__PURE__ */ t("span", { className: "ds:text-[length:var(--font-size-sm)] ds:font-[var(--font-weight-semibold)] ds:text-[color:var(--foreground)] ds:[overflow-wrap:anywhere] ds:break-words", children: k }),
|
|
621
621
|
/* @__PURE__ */ t("span", { className: "ds:text-[length:var(--font-size-xs)] ds:text-[color:var(--muted-foreground)]", children: L })
|
|
622
622
|
] }),
|
|
623
|
-
/* @__PURE__ */
|
|
623
|
+
/* @__PURE__ */ c(
|
|
624
624
|
"div",
|
|
625
625
|
{
|
|
626
626
|
ref: i,
|
|
@@ -647,7 +647,7 @@ function et({
|
|
|
647
647
|
icon: /* @__PURE__ */ t(ze, {}),
|
|
648
648
|
size: "sm",
|
|
649
649
|
intent: "ghost",
|
|
650
|
-
disabled: o || !
|
|
650
|
+
disabled: o || !I,
|
|
651
651
|
tabIndex: -1,
|
|
652
652
|
"aria-label": m("workflow.editor.moveUp"),
|
|
653
653
|
onClick: () => a(e.id, "up")
|
|
@@ -660,7 +660,7 @@ function et({
|
|
|
660
660
|
icon: /* @__PURE__ */ t(Me, {}),
|
|
661
661
|
size: "sm",
|
|
662
662
|
intent: "ghost",
|
|
663
|
-
disabled: o || !
|
|
663
|
+
disabled: o || !A,
|
|
664
664
|
tabIndex: -1,
|
|
665
665
|
"aria-label": m("workflow.editor.moveDown"),
|
|
666
666
|
onClick: () => a(e.id, "down")
|
|
@@ -683,12 +683,12 @@ function et({
|
|
|
683
683
|
}
|
|
684
684
|
)
|
|
685
685
|
] }) }),
|
|
686
|
-
|
|
686
|
+
w ? /* @__PURE__ */ t(C.Body, { className: "ds:pt-0", children: /* @__PURE__ */ t(
|
|
687
687
|
"p",
|
|
688
688
|
{
|
|
689
689
|
className: "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)] ds:[overflow-wrap:anywhere] ds:break-words",
|
|
690
|
-
title:
|
|
691
|
-
children:
|
|
690
|
+
title: w.full,
|
|
691
|
+
children: w.text
|
|
692
692
|
}
|
|
693
693
|
) }) : null,
|
|
694
694
|
e.settings.kind === "update_patient_field" && Ve(e.settings.fieldId) ? /* @__PURE__ */ t(C.Body, { className: "ds:pt-0", children: /* @__PURE__ */ t(V, { variant: "error", "data-testid": "workflow-editor-invalid-field", children: m("workflow.editor.invalidField") }) }) : null
|
|
@@ -705,8 +705,8 @@ function oe({
|
|
|
705
705
|
compact: d = !0
|
|
706
706
|
}) {
|
|
707
707
|
const { t: n } = z("ui");
|
|
708
|
-
return /* @__PURE__ */
|
|
709
|
-
/* @__PURE__ */ t(N.Trigger, { asChild: !0, children: /* @__PURE__ */
|
|
708
|
+
return /* @__PURE__ */ c(N.Root, { children: [
|
|
709
|
+
/* @__PURE__ */ t(N.Trigger, { asChild: !0, children: /* @__PURE__ */ c(
|
|
710
710
|
"button",
|
|
711
711
|
{
|
|
712
712
|
type: "button",
|
|
@@ -719,7 +719,7 @@ function oe({
|
|
|
719
719
|
]
|
|
720
720
|
}
|
|
721
721
|
) }),
|
|
722
|
-
/* @__PURE__ */
|
|
722
|
+
/* @__PURE__ */ c(N.Content, { align: "start", sideOffset: 6, children: [
|
|
723
723
|
/* @__PURE__ */ t(N.Label, { children: n("workflow.editor.addAction") }),
|
|
724
724
|
e.map((a) => {
|
|
725
725
|
const p = D[a];
|
|
@@ -738,8 +738,8 @@ function oe({
|
|
|
738
738
|
}
|
|
739
739
|
function tt({ criteria: e, onEdit: r, disabled: s }) {
|
|
740
740
|
const { t: o } = z("ui"), d = (e == null ? void 0 : e.ruleCount) ?? 0, n = d > 0 ? o("workflow.editor.criteriaCount", { count: d }) : o("workflow.editor.noCriteria");
|
|
741
|
-
return /* @__PURE__ */ t(C, { variant: "outlined", children: /* @__PURE__ */ t(C.Header, { className: "ds:pb-[var(--spacing-sm)]", children: /* @__PURE__ */
|
|
742
|
-
/* @__PURE__ */
|
|
741
|
+
return /* @__PURE__ */ t(C, { variant: "outlined", children: /* @__PURE__ */ t(C.Header, { className: "ds:pb-[var(--spacing-sm)]", children: /* @__PURE__ */ c("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
742
|
+
/* @__PURE__ */ c("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col", children: [
|
|
743
743
|
/* @__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") }),
|
|
744
744
|
/* @__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 })
|
|
745
745
|
] }),
|
|
@@ -766,29 +766,29 @@ const rt = H(
|
|
|
766
766
|
availableActions: a,
|
|
767
767
|
onEditNode: p,
|
|
768
768
|
onDeleteNode: m,
|
|
769
|
-
className:
|
|
769
|
+
className: l
|
|
770
770
|
}, i) {
|
|
771
|
-
const { t:
|
|
771
|
+
const { t: u } = z("ui"), v = a ?? Je, h = W(() => G(r), [r]), y = M(/* @__PURE__ */ new Map()), x = M(null), w = F(
|
|
772
772
|
(f) => {
|
|
773
773
|
n || s(f);
|
|
774
774
|
},
|
|
775
775
|
[n, s]
|
|
776
776
|
), k = F((f, b) => {
|
|
777
777
|
b ? y.current.set(f, b) : y.current.delete(f);
|
|
778
|
-
}, []), [
|
|
779
|
-
L.current =
|
|
778
|
+
}, []), [I, A] = ge(null), L = M(null);
|
|
779
|
+
L.current = I;
|
|
780
780
|
const T = M(null);
|
|
781
781
|
be(i, () => T.current, []);
|
|
782
782
|
const g = W(
|
|
783
783
|
() => ({
|
|
784
|
-
getTotalSteps: () =>
|
|
784
|
+
getTotalSteps: () => h.length,
|
|
785
785
|
getCurrentStep: () => L.current,
|
|
786
786
|
gotoStep: (f) => {
|
|
787
787
|
const b = y.current.get(f);
|
|
788
|
-
b && (b.focus(),
|
|
788
|
+
b && (b.focus(), A(f));
|
|
789
789
|
}
|
|
790
790
|
}),
|
|
791
|
-
[
|
|
791
|
+
[h.length]
|
|
792
792
|
);
|
|
793
793
|
_e(We, g, void 0), ke(() => {
|
|
794
794
|
const f = x.current;
|
|
@@ -803,14 +803,14 @@ const rt = H(
|
|
|
803
803
|
type: b,
|
|
804
804
|
settings: Xe(b)
|
|
805
805
|
};
|
|
806
|
-
x.current = R.id,
|
|
806
|
+
x.current = R.id, w(q(r, f, R));
|
|
807
807
|
}, K = (f, b) => {
|
|
808
|
-
n || (x.current = f,
|
|
808
|
+
n || (x.current = f, w(Fe(r, f, b)));
|
|
809
809
|
}, B = (f) => {
|
|
810
810
|
n || !p || p(f);
|
|
811
811
|
}, P = (f) => {
|
|
812
812
|
n || !m || m(f);
|
|
813
|
-
}, J = () => n ? /* @__PURE__ */ t(V, { variant: "warning", children: /* @__PURE__ */ t(V.Title, { as: "p", children:
|
|
813
|
+
}, J = () => n ? /* @__PURE__ */ t(V, { variant: "warning", children: /* @__PURE__ */ t(V.Title, { as: "p", children: u("workflow.editor.activeLock") }) }) : null, Q = () => o || d ? /* @__PURE__ */ c(ve, { children: [
|
|
814
814
|
/* @__PURE__ */ t(
|
|
815
815
|
tt,
|
|
816
816
|
{
|
|
@@ -820,100 +820,92 @@ const rt = H(
|
|
|
820
820
|
}
|
|
821
821
|
),
|
|
822
822
|
/* @__PURE__ */ t("span", { "aria-hidden": "true", className: O })
|
|
823
|
-
] }) : null, X =
|
|
824
|
-
return X === 0 ? /* @__PURE__ */
|
|
823
|
+
] }) : null, X = h.length;
|
|
824
|
+
return X === 0 ? /* @__PURE__ */ c(
|
|
825
825
|
"div",
|
|
826
826
|
{
|
|
827
827
|
ref: T,
|
|
828
|
-
className: [re,
|
|
828
|
+
className: [re, l].filter(Boolean).join(" "),
|
|
829
829
|
children: [
|
|
830
830
|
J(),
|
|
831
831
|
Q(),
|
|
832
|
-
/* @__PURE__ */
|
|
833
|
-
E,
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
) })
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
/* @__PURE__ */ t(
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
f
|
|
902
|
-
);
|
|
903
|
-
})
|
|
904
|
-
] })
|
|
905
|
-
] }) })
|
|
906
|
-
]
|
|
907
|
-
}
|
|
908
|
-
)
|
|
832
|
+
/* @__PURE__ */ c(E, { variant: "first-use", children: [
|
|
833
|
+
/* @__PURE__ */ t(E.Illustration, { children: /* @__PURE__ */ c(
|
|
834
|
+
"svg",
|
|
835
|
+
{
|
|
836
|
+
viewBox: "0 0 120 120",
|
|
837
|
+
fill: "none",
|
|
838
|
+
"aria-hidden": "true",
|
|
839
|
+
className: "ds:w-full ds:h-full",
|
|
840
|
+
children: [
|
|
841
|
+
/* @__PURE__ */ t(
|
|
842
|
+
"circle",
|
|
843
|
+
{
|
|
844
|
+
cx: "60",
|
|
845
|
+
cy: "60",
|
|
846
|
+
r: "50",
|
|
847
|
+
fill: "var(--muted)",
|
|
848
|
+
stroke: "var(--border)",
|
|
849
|
+
strokeWidth: "2"
|
|
850
|
+
}
|
|
851
|
+
),
|
|
852
|
+
/* @__PURE__ */ t(
|
|
853
|
+
"rect",
|
|
854
|
+
{
|
|
855
|
+
x: "55",
|
|
856
|
+
y: "30",
|
|
857
|
+
width: "10",
|
|
858
|
+
height: "60",
|
|
859
|
+
rx: "5",
|
|
860
|
+
fill: "var(--primary)"
|
|
861
|
+
}
|
|
862
|
+
),
|
|
863
|
+
/* @__PURE__ */ t(
|
|
864
|
+
"rect",
|
|
865
|
+
{
|
|
866
|
+
x: "30",
|
|
867
|
+
y: "55",
|
|
868
|
+
width: "60",
|
|
869
|
+
height: "10",
|
|
870
|
+
rx: "5",
|
|
871
|
+
fill: "var(--primary)"
|
|
872
|
+
}
|
|
873
|
+
)
|
|
874
|
+
]
|
|
875
|
+
}
|
|
876
|
+
) }),
|
|
877
|
+
/* @__PURE__ */ t(E.Title, { children: u("workflow.editor.addFirstAction") }),
|
|
878
|
+
/* @__PURE__ */ t(E.Description, { children: u("workflow.editor.empty") }),
|
|
879
|
+
/* @__PURE__ */ t(E.Actions, { children: /* @__PURE__ */ c(N.Root, { children: [
|
|
880
|
+
/* @__PURE__ */ t(N.Trigger, { asChild: !0, children: /* @__PURE__ */ c(Se, { intent: "primary", disabled: n, children: [
|
|
881
|
+
/* @__PURE__ */ t(ne, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
882
|
+
/* @__PURE__ */ t("span", { children: u("workflow.editor.addFirstAction") })
|
|
883
|
+
] }) }),
|
|
884
|
+
/* @__PURE__ */ c(N.Content, { align: "center", sideOffset: 6, children: [
|
|
885
|
+
/* @__PURE__ */ t(N.Label, { children: u("workflow.editor.addAction") }),
|
|
886
|
+
v.map((f) => {
|
|
887
|
+
const b = D[f];
|
|
888
|
+
return /* @__PURE__ */ t(
|
|
889
|
+
N.Item,
|
|
890
|
+
{
|
|
891
|
+
startIcon: /* @__PURE__ */ t(Y, { iconName: b.iconName }),
|
|
892
|
+
onSelect: () => _(null, f),
|
|
893
|
+
children: u(b.labelKey)
|
|
894
|
+
},
|
|
895
|
+
f
|
|
896
|
+
);
|
|
897
|
+
})
|
|
898
|
+
] })
|
|
899
|
+
] }) })
|
|
900
|
+
] })
|
|
909
901
|
]
|
|
910
902
|
}
|
|
911
|
-
) : /* @__PURE__ */
|
|
903
|
+
) : /* @__PURE__ */ c(
|
|
912
904
|
"div",
|
|
913
905
|
{
|
|
914
906
|
ref: T,
|
|
915
907
|
"data-component": "workflow-editor",
|
|
916
|
-
className: [re,
|
|
908
|
+
className: [re, l].filter(Boolean).join(" "),
|
|
917
909
|
children: [
|
|
918
910
|
J(),
|
|
919
911
|
Q(),
|
|
@@ -922,7 +914,7 @@ const rt = H(
|
|
|
922
914
|
{
|
|
923
915
|
availableActions: v,
|
|
924
916
|
disabled: n,
|
|
925
|
-
label:
|
|
917
|
+
label: u("workflow.editor.addAction"),
|
|
926
918
|
onSelect: (f) => _(null, f)
|
|
927
919
|
}
|
|
928
920
|
) }),
|
|
@@ -930,9 +922,9 @@ const rt = H(
|
|
|
930
922
|
"ol",
|
|
931
923
|
{
|
|
932
924
|
role: "list",
|
|
933
|
-
"aria-label":
|
|
925
|
+
"aria-label": u("workflow.editor.pipeline"),
|
|
934
926
|
className: "ds:list-none ds:m-0 ds:p-0 ds:flex ds:flex-col",
|
|
935
|
-
children:
|
|
927
|
+
children: h.map((f, b) => /* @__PURE__ */ c("li", { className: "ds:list-none ds:flex ds:flex-col", children: [
|
|
936
928
|
/* @__PURE__ */ t("span", { "aria-hidden": "true", className: O }),
|
|
937
929
|
/* @__PURE__ */ t(
|
|
938
930
|
et,
|
|
@@ -953,7 +945,7 @@ const rt = H(
|
|
|
953
945
|
{
|
|
954
946
|
availableActions: v,
|
|
955
947
|
disabled: n,
|
|
956
|
-
label:
|
|
948
|
+
label: u("workflow.editor.addActionAfter"),
|
|
957
949
|
onSelect: (R) => _(f.id, R)
|
|
958
950
|
}
|
|
959
951
|
) })
|
|
@@ -1002,7 +994,7 @@ const st = {
|
|
|
1002
994
|
horizontal: "ds:flex-row ds:items-center"
|
|
1003
995
|
}
|
|
1004
996
|
}
|
|
1005
|
-
}),
|
|
997
|
+
}), he = j(
|
|
1006
998
|
[
|
|
1007
999
|
"ds:relative ds:flex ds:items-center",
|
|
1008
1000
|
"ds:gap-[var(--spacing-sm)]",
|
|
@@ -1048,7 +1040,7 @@ const st = {
|
|
|
1048
1040
|
}
|
|
1049
1041
|
}
|
|
1050
1042
|
}
|
|
1051
|
-
),
|
|
1043
|
+
), we = j(
|
|
1052
1044
|
["ds:block", "ds:border-solid", "ds:border-[color:var(--border)]"].join(" "),
|
|
1053
1045
|
{
|
|
1054
1046
|
variants: {
|
|
@@ -1140,24 +1132,24 @@ const it = H(
|
|
|
1140
1132
|
compact: a = !1,
|
|
1141
1133
|
className: p,
|
|
1142
1134
|
"aria-label": m,
|
|
1143
|
-
...
|
|
1135
|
+
...l
|
|
1144
1136
|
}, i) {
|
|
1145
|
-
const { t:
|
|
1146
|
-
() => s ? v.findIndex((
|
|
1137
|
+
const { t: u } = z("ui"), v = W(() => G(r), [r]), h = W(
|
|
1138
|
+
() => s ? v.findIndex((w) => w.id === s) : -1,
|
|
1147
1139
|
[v, s]
|
|
1148
|
-
), y = m ??
|
|
1140
|
+
), y = m ?? u("workflow.map.label", { count: v.length }), x = (w) => h === -1 ? "neutral" : w === h ? "current" : w < h ? "completed" : "pending";
|
|
1149
1141
|
return (
|
|
1150
1142
|
// 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
|
|
1151
|
-
/* @__PURE__ */
|
|
1143
|
+
/* @__PURE__ */ c(
|
|
1152
1144
|
"ol",
|
|
1153
1145
|
{
|
|
1154
1146
|
ref: i,
|
|
1155
1147
|
role: "list",
|
|
1156
1148
|
"aria-label": y,
|
|
1157
1149
|
"data-component": "workflow-map",
|
|
1158
|
-
"data-component-id":
|
|
1150
|
+
"data-component-id": l.id,
|
|
1159
1151
|
className: ot({ orientation: n, compact: a, className: p }),
|
|
1160
|
-
...
|
|
1152
|
+
...l,
|
|
1161
1153
|
children: [
|
|
1162
1154
|
d ? /* @__PURE__ */ t(
|
|
1163
1155
|
lt,
|
|
@@ -1167,19 +1159,19 @@ const it = H(
|
|
|
1167
1159
|
criteria: d
|
|
1168
1160
|
}
|
|
1169
1161
|
) : null,
|
|
1170
|
-
v.map((
|
|
1171
|
-
const
|
|
1162
|
+
v.map((w, k) => {
|
|
1163
|
+
const I = x(k), A = k === v.length - 1;
|
|
1172
1164
|
return /* @__PURE__ */ t(
|
|
1173
1165
|
dt,
|
|
1174
1166
|
{
|
|
1175
|
-
node:
|
|
1176
|
-
state:
|
|
1167
|
+
node: w,
|
|
1168
|
+
state: I,
|
|
1177
1169
|
orientation: n,
|
|
1178
1170
|
compact: a,
|
|
1179
|
-
isLast:
|
|
1171
|
+
isLast: A,
|
|
1180
1172
|
onNodeClick: o
|
|
1181
1173
|
},
|
|
1182
|
-
|
|
1174
|
+
w.id
|
|
1183
1175
|
);
|
|
1184
1176
|
})
|
|
1185
1177
|
]
|
|
@@ -1197,35 +1189,35 @@ function dt({
|
|
|
1197
1189
|
isLast: d,
|
|
1198
1190
|
onNodeClick: n
|
|
1199
1191
|
}) {
|
|
1200
|
-
const { t: a } = z("ui"), p = D[e.type], m = st[p.iconName],
|
|
1201
|
-
|
|
1192
|
+
const { t: a } = z("ui"), p = D[e.type], m = st[p.iconName], l = a(p.labelKey), i = nt(at(e.settings), a), u = typeof n == "function", v = r === "current", h = r === "completed", y = (k) => {
|
|
1193
|
+
u && (k.preventDefault(), n == null || n(e.id));
|
|
1202
1194
|
}, x = (k) => {
|
|
1203
|
-
|
|
1204
|
-
},
|
|
1195
|
+
u && (k.key === "Enter" || k.key === " ") && (k.preventDefault(), n == null || n(e.id));
|
|
1196
|
+
}, w = v ? a("workflow.map.current") : h ? a("workflow.map.completed") : r === "pending" ? a("workflow.map.pending") : null;
|
|
1205
1197
|
return (
|
|
1206
1198
|
// `<li>` has implicit role="listitem"; no explicit role needed.
|
|
1207
|
-
/* @__PURE__ */
|
|
1208
|
-
/* @__PURE__ */
|
|
1199
|
+
/* @__PURE__ */ c("li", { "data-node-id": e.id, className: pe({ orientation: s }), children: [
|
|
1200
|
+
/* @__PURE__ */ c(
|
|
1209
1201
|
"div",
|
|
1210
1202
|
{
|
|
1211
|
-
role:
|
|
1212
|
-
tabIndex:
|
|
1203
|
+
role: u ? "button" : void 0,
|
|
1204
|
+
tabIndex: u ? 0 : void 0,
|
|
1213
1205
|
"aria-current": v ? "step" : void 0,
|
|
1214
|
-
"aria-label":
|
|
1215
|
-
type:
|
|
1206
|
+
"aria-label": u && o ? i ? a("workflow.map.nodeLabelWithSummary", {
|
|
1207
|
+
type: l,
|
|
1216
1208
|
summary: i
|
|
1217
|
-
}) : a("workflow.map.nodeLabel", { type:
|
|
1209
|
+
}) : a("workflow.map.nodeLabel", { type: l }) : void 0,
|
|
1218
1210
|
title: o && i ? a("workflow.map.nodeLabelWithSummary", {
|
|
1219
|
-
type:
|
|
1211
|
+
type: l,
|
|
1220
1212
|
summary: i
|
|
1221
1213
|
}) : void 0,
|
|
1222
|
-
onClick:
|
|
1223
|
-
onKeyDown:
|
|
1224
|
-
className:
|
|
1214
|
+
onClick: u ? y : void 0,
|
|
1215
|
+
onKeyDown: u ? x : void 0,
|
|
1216
|
+
className: he({
|
|
1225
1217
|
orientation: s,
|
|
1226
1218
|
compact: o,
|
|
1227
1219
|
state: r,
|
|
1228
|
-
interactive:
|
|
1220
|
+
interactive: u
|
|
1229
1221
|
}),
|
|
1230
1222
|
"data-node-id": e.id,
|
|
1231
1223
|
"data-state": r,
|
|
@@ -1235,8 +1227,8 @@ function dt({
|
|
|
1235
1227
|
{
|
|
1236
1228
|
"aria-hidden": "true",
|
|
1237
1229
|
className: "ds:flex ds:items-center ds:justify-center ds:shrink-0 ds:size-[var(--spacing-md)] ds:text-[var(--muted-foreground)]",
|
|
1238
|
-
children:
|
|
1239
|
-
|
|
1230
|
+
children: h ? /* @__PURE__ */ t(
|
|
1231
|
+
Ae,
|
|
1240
1232
|
{
|
|
1241
1233
|
className: "ds:size-[var(--spacing-md)] ds:text-[color:var(--success)]",
|
|
1242
1234
|
"data-testid": "workflow-map-check"
|
|
@@ -1244,8 +1236,8 @@ function dt({
|
|
|
1244
1236
|
) : /* @__PURE__ */ t(m, { className: "ds:size-[var(--spacing-md)]" })
|
|
1245
1237
|
}
|
|
1246
1238
|
),
|
|
1247
|
-
/* @__PURE__ */
|
|
1248
|
-
/* @__PURE__ */ t("span", { className: o ? "type-meta ds:truncate" : "type-body-sm", children:
|
|
1239
|
+
/* @__PURE__ */ c("span", { className: "ds:flex ds:flex-col ds:min-w-0 ds:flex-1", children: [
|
|
1240
|
+
/* @__PURE__ */ t("span", { className: o ? "type-meta ds:truncate" : "type-body-sm", children: l }),
|
|
1249
1241
|
!o && i ? /* @__PURE__ */ t(
|
|
1250
1242
|
"span",
|
|
1251
1243
|
{
|
|
@@ -1255,7 +1247,7 @@ function dt({
|
|
|
1255
1247
|
}
|
|
1256
1248
|
) : null
|
|
1257
1249
|
] }),
|
|
1258
|
-
|
|
1250
|
+
w ? /* @__PURE__ */ t("span", { className: "ds:sr-only", children: w }) : null
|
|
1259
1251
|
]
|
|
1260
1252
|
}
|
|
1261
1253
|
),
|
|
@@ -1263,7 +1255,7 @@ function dt({
|
|
|
1263
1255
|
"span",
|
|
1264
1256
|
{
|
|
1265
1257
|
"aria-hidden": "true",
|
|
1266
|
-
className:
|
|
1258
|
+
className: we({ orientation: s, compact: o }),
|
|
1267
1259
|
"data-testid": "workflow-map-connector"
|
|
1268
1260
|
}
|
|
1269
1261
|
)
|
|
@@ -1276,11 +1268,11 @@ function lt({
|
|
|
1276
1268
|
criteria: s
|
|
1277
1269
|
}) {
|
|
1278
1270
|
const { t: o } = z("ui");
|
|
1279
|
-
return /* @__PURE__ */
|
|
1280
|
-
/* @__PURE__ */
|
|
1271
|
+
return /* @__PURE__ */ c("li", { className: pe({ orientation: e }), children: [
|
|
1272
|
+
/* @__PURE__ */ c(
|
|
1281
1273
|
"div",
|
|
1282
1274
|
{
|
|
1283
|
-
className:
|
|
1275
|
+
className: he({
|
|
1284
1276
|
orientation: e,
|
|
1285
1277
|
compact: r,
|
|
1286
1278
|
state: "neutral",
|
|
@@ -1293,10 +1285,10 @@ function lt({
|
|
|
1293
1285
|
{
|
|
1294
1286
|
"aria-hidden": "true",
|
|
1295
1287
|
className: "ds:flex ds:items-center ds:justify-center ds:shrink-0 ds:size-[var(--spacing-md)] ds:text-[var(--muted-foreground)]",
|
|
1296
|
-
children: /* @__PURE__ */ t(
|
|
1288
|
+
children: /* @__PURE__ */ t(Ie, { className: "ds:size-[var(--spacing-md)]" })
|
|
1297
1289
|
}
|
|
1298
1290
|
),
|
|
1299
|
-
/* @__PURE__ */
|
|
1291
|
+
/* @__PURE__ */ c("span", { className: "ds:flex ds:flex-col ds:min-w-0 ds:flex-1", children: [
|
|
1300
1292
|
/* @__PURE__ */ t("span", { className: r ? "type-meta ds:truncate" : "type-body-sm", children: o("workflow.editor.enrollmentCriteria") }),
|
|
1301
1293
|
r ? null : /* @__PURE__ */ t("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: s.summary ?? o("workflow.editor.criteriaCount", {
|
|
1302
1294
|
count: s.ruleCount
|
|
@@ -1309,7 +1301,7 @@ function lt({
|
|
|
1309
1301
|
"span",
|
|
1310
1302
|
{
|
|
1311
1303
|
"aria-hidden": "true",
|
|
1312
|
-
className:
|
|
1304
|
+
className: we({ orientation: e, compact: r })
|
|
1313
1305
|
}
|
|
1314
1306
|
)
|
|
1315
1307
|
] });
|
|
@@ -1329,4 +1321,4 @@ export {
|
|
|
1329
1321
|
ee as r,
|
|
1330
1322
|
D as w
|
|
1331
1323
|
};
|
|
1332
|
-
//# sourceMappingURL=workflow-map-
|
|
1324
|
+
//# sourceMappingURL=workflow-map-C1OjRhM3.js.map
|