@alfadocs/ui-kit-debug 0.47.0 → 0.48.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/{agenda-card-CFyWSX7Z.js → agenda-card-BaSfVfrL.js} +25 -29
- package/dist/_chunks/agenda-card-BaSfVfrL.js.map +1 -0
- package/dist/_chunks/{agenda-tray-Dyj9ChHC.js → agenda-tray-DQayYmQ0.js} +50 -67
- package/dist/_chunks/agenda-tray-DQayYmQ0.js.map +1 -0
- package/dist/_chunks/ai-consent-banner-DO5ingMq.js +169 -0
- package/dist/_chunks/ai-consent-banner-DO5ingMq.js.map +1 -0
- package/dist/_chunks/ai-tools-rail-CxYG04cw.js +280 -0
- package/dist/_chunks/ai-tools-rail-CxYG04cw.js.map +1 -0
- package/dist/_chunks/{alia-sidebar-CVIPrdc9.js → alia-sidebar-DlvyXgVC.js} +3 -2
- package/dist/_chunks/alia-sidebar-DlvyXgVC.js.map +1 -0
- package/dist/_chunks/anamnesis-card-CmkBVAln.js +156 -0
- package/dist/_chunks/anamnesis-card-CmkBVAln.js.map +1 -0
- package/dist/_chunks/appointment-tray-BwDHhWWC.js +419 -0
- package/dist/_chunks/appointment-tray-BwDHhWWC.js.map +1 -0
- package/dist/_chunks/{bmi-calculator-CQqXTVNL.js → bmi-calculator-DdylQzT6.js} +2 -2
- package/dist/_chunks/{bmi-calculator-CQqXTVNL.js.map → bmi-calculator-DdylQzT6.js.map} +1 -1
- package/dist/_chunks/{booking-DlDVuWMd.js → booking-WV2GSru5.js} +291 -303
- package/dist/_chunks/booking-WV2GSru5.js.map +1 -0
- package/dist/_chunks/{calculator-dialog-D-nfvteH.js → calculator-dialog-CFk4I91b.js} +2 -2
- package/dist/_chunks/{calculator-dialog-D-nfvteH.js.map → calculator-dialog-CFk4I91b.js.map} +1 -1
- package/dist/_chunks/calendar-days-C4BmpCZg.js +23 -0
- package/dist/_chunks/calendar-days-C4BmpCZg.js.map +1 -0
- package/dist/_chunks/{calendar-YHFknAGv.js → calendar-oYWOCrnf.js} +195 -210
- package/dist/_chunks/calendar-oYWOCrnf.js.map +1 -0
- package/dist/_chunks/care-plan-card-QmNpGggC.js +252 -0
- package/dist/_chunks/care-plan-card-QmNpGggC.js.map +1 -0
- package/dist/_chunks/care-plan-entry-card-Cnra7vUc.js +318 -0
- package/dist/_chunks/care-plan-entry-card-Cnra7vUc.js.map +1 -0
- package/dist/_chunks/{chat-message-B5JpFj0F.js → chat-message-Dm8U2RY1.js} +36 -35
- package/dist/_chunks/chat-message-Dm8U2RY1.js.map +1 -0
- package/dist/_chunks/clinical-note-card-BYo437dU.js +333 -0
- package/dist/_chunks/clinical-note-card-BYo437dU.js.map +1 -0
- package/dist/_chunks/{contact-profile-card-DHyuAPXM.js → contact-profile-card-DvvVfAA2.js} +102 -115
- package/dist/_chunks/contact-profile-card-DvvVfAA2.js.map +1 -0
- package/dist/_chunks/{cycle-calculator-KxA8dqDf.js → cycle-calculator-DYvGm_m1.js} +2 -2
- package/dist/_chunks/{cycle-calculator-KxA8dqDf.js.map → cycle-calculator-DYvGm_m1.js.map} +1 -1
- package/dist/_chunks/{dialog-BTpZV6It.js → dialog-DMGnSelc.js} +55 -55
- package/dist/_chunks/dialog-DMGnSelc.js.map +1 -0
- package/dist/_chunks/{due-date-calculator-mFxpHLml.js → due-date-calculator-BXd3ANj7.js} +2 -2
- package/dist/_chunks/{due-date-calculator-mFxpHLml.js.map → due-date-calculator-BXd3ANj7.js.map} +1 -1
- package/dist/_chunks/entity-card-COhmqHly.js +69 -0
- package/dist/_chunks/entity-card-COhmqHly.js.map +1 -0
- package/dist/_chunks/{gestational-age-calculator-gWI_uRA1.js → gestational-age-calculator-Crj6FgZw.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-gWI_uRA1.js.map → gestational-age-calculator-Crj6FgZw.js.map} +1 -1
- package/dist/_chunks/{insert-result-C5ABnzDl.js → insert-result-DNdi_JYW.js} +140 -168
- package/dist/_chunks/insert-result-DNdi_JYW.js.map +1 -0
- package/dist/_chunks/is-safe-url-DkETxeHz.js +7 -0
- package/dist/_chunks/is-safe-url-DkETxeHz.js.map +1 -0
- package/dist/_chunks/languages-DsVf_WzT.js +19 -0
- package/dist/_chunks/languages-DsVf_WzT.js.map +1 -0
- package/dist/_chunks/layers-pzGcbLPj.js +34 -0
- package/dist/_chunks/layers-pzGcbLPj.js.map +1 -0
- package/dist/_chunks/{message-card-DSPw5ghw.js → message-card-Dvl1TgaN.js} +15 -19
- package/dist/_chunks/message-card-Dvl1TgaN.js.map +1 -0
- package/dist/_chunks/{message-tray-hSQff9u4.js → message-tray-Dl6GQaaV.js} +2 -2
- package/dist/_chunks/{message-tray-hSQff9u4.js.map → message-tray-Dl6GQaaV.js.map} +1 -1
- package/dist/_chunks/operator-hero-CM8949Hd.js +198 -0
- package/dist/_chunks/operator-hero-CM8949Hd.js.map +1 -0
- package/dist/_chunks/patient-summary-card-BnTqxcTr.js +443 -0
- package/dist/_chunks/patient-summary-card-BnTqxcTr.js.map +1 -0
- package/dist/_chunks/payment-request-card-B_lyobd0.js +478 -0
- package/dist/_chunks/payment-request-card-B_lyobd0.js.map +1 -0
- package/dist/_chunks/{pdf-viewer-CWEXTlwq.js → pdf-viewer-G8SU6Azw.js} +3 -3
- package/dist/_chunks/pdf-viewer-G8SU6Azw.js.map +1 -0
- package/dist/_chunks/periodontal-chart-card-BYs9hax1.js +455 -0
- package/dist/_chunks/periodontal-chart-card-BYs9hax1.js.map +1 -0
- package/dist/_chunks/phone-Bi5yUm4I.js +20 -0
- package/dist/_chunks/phone-Bi5yUm4I.js.map +1 -0
- package/dist/_chunks/{practice-results-DDi-kvaD.js → practice-results-BFL_mcDW.js} +3 -2
- package/dist/_chunks/{practice-results-DDi-kvaD.js.map → practice-results-BFL_mcDW.js.map} +1 -1
- package/dist/_chunks/{pregnancy-weight-gain-BtEHaSqy.js → pregnancy-weight-gain-C7dK89jE.js} +2 -2
- package/dist/_chunks/{pregnancy-weight-gain-BtEHaSqy.js.map → pregnancy-weight-gain-C7dK89jE.js.map} +1 -1
- package/dist/_chunks/scan-line-lGioFwLC.js +18 -0
- package/dist/_chunks/scan-line-lGioFwLC.js.map +1 -0
- package/dist/_chunks/shield-check-BjCGH_Sr.js +21 -0
- package/dist/_chunks/shield-check-BjCGH_Sr.js.map +1 -0
- package/dist/_chunks/{sign-document-BCyLpFHJ.js → sign-document-DPI2pY9V.js} +2 -2
- package/dist/_chunks/{sign-document-BCyLpFHJ.js.map → sign-document-DPI2pY9V.js.map} +1 -1
- package/dist/_chunks/{transaction-chip-B8ujzowA.js → transaction-chip-BZCa6XDn.js} +8 -6
- package/dist/_chunks/{transaction-chip-B8ujzowA.js.map → transaction-chip-BZCa6XDn.js.map} +1 -1
- package/dist/_chunks/{unit-converter-u3CwNDpP.js → unit-converter-jWp3Z85y.js} +2 -2
- package/dist/_chunks/{unit-converter-u3CwNDpP.js.map → unit-converter-jWp3Z85y.js.map} +1 -1
- package/dist/_chunks/user-cog-BS_qc8nA.js +24 -0
- package/dist/_chunks/user-cog-BS_qc8nA.js.map +1 -0
- package/dist/_chunks/video-BAeICxCT.js +21 -0
- package/dist/_chunks/video-BAeICxCT.js.map +1 -0
- package/dist/_chunks/{workflow-map-Djn1QMJc.js → workflow-map-ZXw-zsZ8.js} +138 -156
- package/dist/_chunks/workflow-map-ZXw-zsZ8.js.map +1 -0
- package/dist/agent-catalog.json +324 -1
- package/dist/components/_shared/entity-card/entity-card.d.ts +40 -0
- package/dist/components/_shared/entity-card/entity-card.d.ts.map +1 -0
- package/dist/components/_shared/entity-card/index.d.ts +3 -0
- package/dist/components/_shared/entity-card/index.d.ts.map +1 -0
- package/dist/components/_shared/index.d.ts +2 -0
- package/dist/components/_shared/index.d.ts.map +1 -1
- package/dist/components/_shared/is-safe-url.d.ts +13 -0
- package/dist/components/_shared/is-safe-url.d.ts.map +1 -0
- package/dist/components/agenda-card/agenda-card.d.ts +1 -2
- package/dist/components/agenda-card/agenda-card.d.ts.map +1 -1
- package/dist/components/agenda-card/index.d.ts +2 -1
- package/dist/components/agenda-card/index.d.ts.map +1 -1
- package/dist/components/agenda-card/index.js +6 -5
- package/dist/components/agenda-card/index.js.map +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/ai-consent-banner.agent.d.ts +4 -0
- package/dist/components/ai-consent-banner/ai-consent-banner.agent.d.ts.map +1 -0
- package/dist/components/ai-consent-banner/ai-consent-banner.d.ts +45 -0
- package/dist/components/ai-consent-banner/ai-consent-banner.d.ts.map +1 -0
- package/dist/components/ai-consent-banner/index.d.ts +4 -0
- package/dist/components/ai-consent-banner/index.d.ts.map +1 -0
- package/dist/components/ai-consent-banner/index.js +6 -0
- package/dist/components/ai-consent-banner/index.js.map +1 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +4 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts.map +1 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +60 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts.map +1 -0
- package/dist/components/ai-tools-rail/index.d.ts +4 -0
- package/dist/components/ai-tools-rail/index.d.ts.map +1 -0
- package/dist/components/ai-tools-rail/index.js +6 -0
- package/dist/components/ai-tools-rail/index.js.map +1 -0
- package/dist/components/anamnesis-card/anamnesis-card.d.ts +68 -0
- package/dist/components/anamnesis-card/anamnesis-card.d.ts.map +1 -0
- package/dist/components/anamnesis-card/index.d.ts +3 -0
- package/dist/components/anamnesis-card/index.d.ts.map +1 -0
- package/dist/components/anamnesis-card/index.js +5 -0
- package/dist/components/anamnesis-card/index.js.map +1 -0
- package/dist/components/appointment-card/appointment-card.agent.d.ts +3 -0
- package/dist/components/appointment-card/appointment-card.agent.d.ts.map +1 -0
- package/dist/components/appointment-card/appointment-card.d.ts +93 -0
- package/dist/components/appointment-card/appointment-card.d.ts.map +1 -0
- package/dist/components/appointment-card/appointment-tray.agent.d.ts +4 -0
- package/dist/components/appointment-card/appointment-tray.agent.d.ts.map +1 -0
- package/dist/components/appointment-card/appointment-tray.d.ts +48 -0
- package/dist/components/appointment-card/appointment-tray.d.ts.map +1 -0
- package/dist/components/appointment-card/index.d.ts +8 -0
- package/dist/components/appointment-card/index.d.ts.map +1 -0
- package/dist/components/appointment-card/index.js +10 -0
- package/dist/components/appointment-card/index.js.map +1 -0
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/care-plan-card/care-plan-card.agent.d.ts +4 -0
- package/dist/components/care-plan-card/care-plan-card.agent.d.ts.map +1 -0
- package/dist/components/care-plan-card/care-plan-card.d.ts +102 -0
- package/dist/components/care-plan-card/care-plan-card.d.ts.map +1 -0
- package/dist/components/care-plan-card/index.d.ts +4 -0
- package/dist/components/care-plan-card/index.d.ts.map +1 -0
- package/dist/components/care-plan-card/index.js +6 -0
- package/dist/components/care-plan-card/index.js.map +1 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.agent.d.ts +4 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.agent.d.ts.map +1 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.d.ts +110 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.d.ts.map +1 -0
- package/dist/components/care-plan-entry-card/index.d.ts +4 -0
- package/dist/components/care-plan-entry-card/index.d.ts.map +1 -0
- package/dist/components/care-plan-entry-card/index.js +6 -0
- package/dist/components/care-plan-entry-card/index.js.map +1 -0
- package/dist/components/chat-message/chat-message.d.ts +7 -0
- package/dist/components/chat-message/chat-message.d.ts.map +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.agent.d.ts +4 -0
- package/dist/components/clinical-note-card/clinical-note-card.agent.d.ts.map +1 -0
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +98 -0
- package/dist/components/clinical-note-card/clinical-note-card.d.ts.map +1 -0
- package/dist/components/clinical-note-card/index.d.ts +4 -0
- package/dist/components/clinical-note-card/index.d.ts.map +1 -0
- package/dist/components/clinical-note-card/index.js +6 -0
- package/dist/components/clinical-note-card/index.js.map +1 -0
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dialog/dialog.d.ts +7 -0
- package/dist/components/dialog/dialog.d.ts.map +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/index.d.ts +10 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/message-card/index.js +5 -4
- package/dist/components/message-card/index.js.map +1 -1
- package/dist/components/message-card/message-card.d.ts +1 -2
- package/dist/components/message-card/message-card.d.ts.map +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/operator-hero/operator-hero.agent.d.ts.map +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +9 -0
- package/dist/components/operator-hero/operator-hero.d.ts.map +1 -1
- package/dist/components/patient-summary-card/index.d.ts +4 -0
- package/dist/components/patient-summary-card/index.d.ts.map +1 -0
- package/dist/components/patient-summary-card/index.js +6 -0
- package/dist/components/patient-summary-card/index.js.map +1 -0
- package/dist/components/patient-summary-card/patient-summary-card.agent.d.ts +4 -0
- package/dist/components/patient-summary-card/patient-summary-card.agent.d.ts.map +1 -0
- package/dist/components/patient-summary-card/patient-summary-card.d.ts +120 -0
- package/dist/components/patient-summary-card/patient-summary-card.d.ts.map +1 -0
- package/dist/components/payment-card/index.d.ts +7 -0
- package/dist/components/payment-card/index.d.ts.map +1 -0
- package/dist/components/payment-card/index.js +8 -0
- package/dist/components/payment-card/index.js.map +1 -0
- package/dist/components/payment-card/payment-card.agent.d.ts +4 -0
- package/dist/components/payment-card/payment-card.agent.d.ts.map +1 -0
- package/dist/components/payment-card/payment-card.d.ts +71 -0
- package/dist/components/payment-card/payment-card.d.ts.map +1 -0
- package/dist/components/payment-card/payment-request-card.agent.d.ts +4 -0
- package/dist/components/payment-card/payment-request-card.agent.d.ts.map +1 -0
- package/dist/components/payment-card/payment-request-card.d.ts +43 -0
- package/dist/components/payment-card/payment-request-card.d.ts.map +1 -0
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
- package/dist/components/periodontal-chart-card/index.d.ts +4 -0
- package/dist/components/periodontal-chart-card/index.d.ts.map +1 -0
- package/dist/components/periodontal-chart-card/index.js +7 -0
- package/dist/components/periodontal-chart-card/index.js.map +1 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.agent.d.ts +4 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.agent.d.ts.map +1 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +74 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts.map +1 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +351 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +351 -0
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +351 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +351 -0
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +351 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +351 -0
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +351 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +351 -0
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +351 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +351 -0
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +351 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +351 -0
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +351 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +351 -0
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +351 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +351 -0
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +351 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +351 -0
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +351 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +351 -0
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +351 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +351 -0
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +351 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +351 -0
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +351 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +351 -0
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +351 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +351 -0
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +351 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +351 -0
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +351 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +351 -0
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +351 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +351 -0
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +351 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +351 -0
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +527 -491
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.json +351 -0
- package/dist/locales/de.json +351 -0
- package/dist/locales/el.json +351 -0
- package/dist/locales/en.json +351 -0
- package/dist/locales/es.json +351 -0
- package/dist/locales/fr.json +351 -0
- package/dist/locales/hi.json +351 -0
- package/dist/locales/it.json +351 -0
- package/dist/locales/ja.json +351 -0
- package/dist/locales/nl.json +351 -0
- package/dist/locales/pl.json +351 -0
- package/dist/locales/pt.json +351 -0
- package/dist/locales/ro.json +351 -0
- package/dist/locales/ru.json +351 -0
- package/dist/locales/sq.json +351 -0
- package/dist/locales/sv.json +351 -0
- package/dist/locales/tr.json +351 -0
- package/dist/locales/zh.json +351 -0
- package/dist/patterns/alia-assistant/alia-chat-surface.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/alia-types.d.ts +15 -0
- package/dist/patterns/alia-assistant/alia-types.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +42 -1
- package/dist/_chunks/agenda-card-CFyWSX7Z.js.map +0 -1
- package/dist/_chunks/agenda-tray-Dyj9ChHC.js.map +0 -1
- package/dist/_chunks/alia-sidebar-CVIPrdc9.js.map +0 -1
- package/dist/_chunks/booking-DlDVuWMd.js.map +0 -1
- package/dist/_chunks/calendar-YHFknAGv.js.map +0 -1
- package/dist/_chunks/chat-message-B5JpFj0F.js.map +0 -1
- package/dist/_chunks/contact-profile-card-DHyuAPXM.js.map +0 -1
- package/dist/_chunks/dialog-BTpZV6It.js.map +0 -1
- package/dist/_chunks/insert-result-C5ABnzDl.js.map +0 -1
- package/dist/_chunks/message-card-DSPw5ghw.js.map +0 -1
- package/dist/_chunks/operator-hero-7LiiP7zi.js +0 -171
- package/dist/_chunks/operator-hero-7LiiP7zi.js.map +0 -1
- package/dist/_chunks/pdf-viewer-CWEXTlwq.js.map +0 -1
- package/dist/_chunks/shield-check-C73ma9Cs.js +0 -36
- package/dist/_chunks/shield-check-C73ma9Cs.js.map +0 -1
- package/dist/_chunks/workflow-map-Djn1QMJc.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as u, Fragment as ve } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as H, useMemo as $, useRef as A, useCallback as q, useState as ge, useImperativeHandle as be, useEffect as ke } from "react";
|
|
3
3
|
import { c as D } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as S } from "react-i18next";
|
|
5
5
|
import { C } from "./card-DPmk26CL.js";
|
|
@@ -17,10 +17,11 @@ import { D as N } from "./dropdown-menu-CUEXqKis.js";
|
|
|
17
17
|
import { E } from "./empty-state-BLy7tigq.js";
|
|
18
18
|
import { P as ae } from "./plus-CYKNmfuA.js";
|
|
19
19
|
import { G as ne } from "./globe-BkEFMNSg.js";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
20
|
+
import { U as de } from "./user-cog-BS_qc8nA.js";
|
|
21
|
+
import { M as ie } from "./message-circle-C23eicgb.js";
|
|
22
|
+
import { S as le } from "./square-check-big-Jr-0202D.js";
|
|
23
|
+
import { M as ce } from "./mail-C8irm52s.js";
|
|
24
|
+
import { C as ue } from "./clock-21AGPWJ5.js";
|
|
24
25
|
import { C as Me } from "./chevron-up-zOEDrmBB.js";
|
|
25
26
|
import { C as Se } from "./chevron-down-BX_NP2Yh.js";
|
|
26
27
|
import { C as ze } from "./check-DPdL_Sm7.js";
|
|
@@ -30,7 +31,7 @@ import { C as ze } from "./check-DPdL_Sm7.js";
|
|
|
30
31
|
* This source code is licensed under the ISC license.
|
|
31
32
|
* See the LICENSE file in the root directory of this source tree.
|
|
32
33
|
*/
|
|
33
|
-
const
|
|
34
|
+
const Ae = [
|
|
34
35
|
["path", { d: "M10.1 2.182a10 10 0 0 1 3.8 0", key: "5ilxe3" }],
|
|
35
36
|
["path", { d: "M13.9 21.818a10 10 0 0 1-3.8 0", key: "11zvb9" }],
|
|
36
37
|
["path", { d: "M17.609 3.721a10 10 0 0 1 2.69 2.7", key: "1iw5b2" }],
|
|
@@ -39,18 +40,18 @@ const je = [
|
|
|
39
40
|
["path", { d: "M21.818 10.1a10 10 0 0 1 0 3.8", key: "qkgqxc" }],
|
|
40
41
|
["path", { d: "M3.721 6.391a10 10 0 0 1 2.7-2.69", key: "1mcia2" }],
|
|
41
42
|
["path", { d: "M6.391 20.279a10 10 0 0 1-2.69-2.7", key: "1fvljs" }]
|
|
42
|
-
],
|
|
43
|
+
], Ie = z("circle-dashed", Ae);
|
|
43
44
|
/**
|
|
44
45
|
* @license lucide-react v1.8.0 - ISC
|
|
45
46
|
*
|
|
46
47
|
* This source code is licensed under the ISC license.
|
|
47
48
|
* See the LICENSE file in the root directory of this source tree.
|
|
48
49
|
*/
|
|
49
|
-
const
|
|
50
|
+
const Te = [
|
|
50
51
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
51
52
|
["line", { x1: "10", x2: "10", y1: "15", y2: "9", key: "c1nkhi" }],
|
|
52
53
|
["line", { x1: "14", x2: "14", y1: "15", y2: "9", key: "h65svq" }]
|
|
53
|
-
],
|
|
54
|
+
], je = z("circle-pause", Te);
|
|
54
55
|
/**
|
|
55
56
|
* @license lucide-react v1.8.0 - ISC
|
|
56
57
|
*
|
|
@@ -92,42 +93,23 @@ const Be = [
|
|
|
92
93
|
* This source code is licensed under the ISC license.
|
|
93
94
|
* See the LICENSE file in the root directory of this source tree.
|
|
94
95
|
*/
|
|
95
|
-
const
|
|
96
|
+
const Re = [
|
|
96
97
|
["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2", key: "1yt0o3" }],
|
|
97
98
|
["path", { d: "M12 18h.01", key: "mhygvu" }]
|
|
98
|
-
],
|
|
99
|
+
], fe = z("smartphone", Re);
|
|
99
100
|
/**
|
|
100
101
|
* @license lucide-react v1.8.0 - ISC
|
|
101
102
|
*
|
|
102
103
|
* This source code is licensed under the ISC license.
|
|
103
104
|
* See the LICENSE file in the root directory of this source tree.
|
|
104
105
|
*/
|
|
105
|
-
const
|
|
106
|
+
const We = [
|
|
106
107
|
["path", { d: "M10 11v6", key: "nco0om" }],
|
|
107
108
|
["path", { d: "M14 11v6", key: "outv1u" }],
|
|
108
109
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
109
110
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
110
111
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
111
|
-
],
|
|
112
|
-
/**
|
|
113
|
-
* @license lucide-react v1.8.0 - ISC
|
|
114
|
-
*
|
|
115
|
-
* This source code is licensed under the ISC license.
|
|
116
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
-
*/
|
|
118
|
-
const We = [
|
|
119
|
-
["path", { d: "M10 15H6a4 4 0 0 0-4 4v2", key: "1nfge6" }],
|
|
120
|
-
["path", { d: "m14.305 16.53.923-.382", key: "1itpsq" }],
|
|
121
|
-
["path", { d: "m15.228 13.852-.923-.383", key: "eplpkm" }],
|
|
122
|
-
["path", { d: "m16.852 12.228-.383-.923", key: "13v3q0" }],
|
|
123
|
-
["path", { d: "m16.852 17.772-.383.924", key: "1i8mnm" }],
|
|
124
|
-
["path", { d: "m19.148 12.228.383-.923", key: "1q8j1v" }],
|
|
125
|
-
["path", { d: "m19.53 18.696-.382-.924", key: "vk1qj3" }],
|
|
126
|
-
["path", { d: "m20.772 13.852.924-.383", key: "n880s0" }],
|
|
127
|
-
["path", { d: "m20.772 16.148.924.383", key: "1g6xey" }],
|
|
128
|
-
["circle", { cx: "18", cy: "15", r: "3", key: "gjjjvw" }],
|
|
129
|
-
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }]
|
|
130
|
-
], me = z("user-cog", We), $e = D("ds:relative ds:w-full", {
|
|
112
|
+
], me = z("trash-2", We), $e = D("ds:relative ds:w-full", {
|
|
131
113
|
variants: {
|
|
132
114
|
density: {
|
|
133
115
|
comfortable: "",
|
|
@@ -138,7 +120,7 @@ const We = [
|
|
|
138
120
|
density: "comfortable"
|
|
139
121
|
}
|
|
140
122
|
});
|
|
141
|
-
function
|
|
123
|
+
function qe(e) {
|
|
142
124
|
switch (e) {
|
|
143
125
|
case "active":
|
|
144
126
|
return {
|
|
@@ -148,17 +130,17 @@ function Fe(e) {
|
|
|
148
130
|
case "paused":
|
|
149
131
|
return {
|
|
150
132
|
badgeVariant: "warning",
|
|
151
|
-
icon: /* @__PURE__ */ t(
|
|
133
|
+
icon: /* @__PURE__ */ t(je, { "aria-hidden": "true" })
|
|
152
134
|
};
|
|
153
135
|
case "inactive":
|
|
154
136
|
default:
|
|
155
137
|
return {
|
|
156
138
|
badgeVariant: "neutral",
|
|
157
|
-
icon: /* @__PURE__ */ t(
|
|
139
|
+
icon: /* @__PURE__ */ t(Ie, { "aria-hidden": "true" })
|
|
158
140
|
};
|
|
159
141
|
}
|
|
160
142
|
}
|
|
161
|
-
const
|
|
143
|
+
const Fe = H(
|
|
162
144
|
function({
|
|
163
145
|
workflow: s,
|
|
164
146
|
density: r = "comfortable",
|
|
@@ -168,8 +150,8 @@ const Ve = O(
|
|
|
168
150
|
onToggleActive: a,
|
|
169
151
|
className: p
|
|
170
152
|
}, m) {
|
|
171
|
-
const { t: c } = S(), d =
|
|
172
|
-
|
|
153
|
+
const { t: c } = S(), d = qe(s.status), l = s.status === "active", v = r === "compact", h = (w) => (k) => {
|
|
154
|
+
k.stopPropagation(), w == null || w();
|
|
173
155
|
}, y = /* @__PURE__ */ t(
|
|
174
156
|
ye,
|
|
175
157
|
{
|
|
@@ -275,7 +257,7 @@ const Ve = O(
|
|
|
275
257
|
n && /* @__PURE__ */ t(
|
|
276
258
|
M,
|
|
277
259
|
{
|
|
278
|
-
icon: /* @__PURE__ */ t(
|
|
260
|
+
icon: /* @__PURE__ */ t(me, {}),
|
|
279
261
|
size: "sm",
|
|
280
262
|
intent: "destructive",
|
|
281
263
|
"aria-label": c("workflow.card.delete"),
|
|
@@ -289,8 +271,8 @@ const Ve = O(
|
|
|
289
271
|
);
|
|
290
272
|
}
|
|
291
273
|
);
|
|
292
|
-
|
|
293
|
-
const
|
|
274
|
+
Fe.displayName = "WorkflowCard";
|
|
275
|
+
const $t = {
|
|
294
276
|
id: "workflow-card",
|
|
295
277
|
capabilities: ["navigate"],
|
|
296
278
|
state: {},
|
|
@@ -307,7 +289,7 @@ const Wt = {
|
|
|
307
289
|
description: "Sourced from the id prop."
|
|
308
290
|
}
|
|
309
291
|
}
|
|
310
|
-
},
|
|
292
|
+
}, qt = {
|
|
311
293
|
id: "workflow-map",
|
|
312
294
|
capabilities: ["navigate"],
|
|
313
295
|
state: {},
|
|
@@ -328,7 +310,7 @@ const Wt = {
|
|
|
328
310
|
description: "Stable opaque workflow node id emitted on each step."
|
|
329
311
|
}
|
|
330
312
|
}
|
|
331
|
-
},
|
|
313
|
+
}, Ve = {
|
|
332
314
|
id: "workflow-editor",
|
|
333
315
|
capabilities: ["navigate", "expand"],
|
|
334
316
|
state: {
|
|
@@ -393,7 +375,7 @@ function G(e) {
|
|
|
393
375
|
p.has(d.id) || m.push(d);
|
|
394
376
|
return m;
|
|
395
377
|
}
|
|
396
|
-
function
|
|
378
|
+
function O(e, s, r) {
|
|
397
379
|
const o = [...e.nodes, r];
|
|
398
380
|
if (s === null) {
|
|
399
381
|
const a = e.nodes[0];
|
|
@@ -445,10 +427,10 @@ function Oe(e, s, r) {
|
|
|
445
427
|
if (n < 0 || n >= o.length) return e;
|
|
446
428
|
const a = o[i], p = o[n];
|
|
447
429
|
if (!a || !p) return e;
|
|
448
|
-
const m = ee(ee(e, a.id), p.id), c = r === "up" ? a : p, d = r === "up" ? p : a, l = ((h = o[Math.min(i, n) - 1]) == null ? void 0 : h.id) ?? null, v =
|
|
449
|
-
return
|
|
430
|
+
const m = ee(ee(e, a.id), p.id), c = r === "up" ? a : p, d = r === "up" ? p : a, l = ((h = o[Math.min(i, n) - 1]) == null ? void 0 : h.id) ?? null, v = O(m, l, c);
|
|
431
|
+
return O(v, c.id, d);
|
|
450
432
|
}
|
|
451
|
-
const
|
|
433
|
+
const He = /* @__PURE__ */ new Set([
|
|
452
434
|
"dateOfBirth",
|
|
453
435
|
"date_of_birth",
|
|
454
436
|
"firstName",
|
|
@@ -468,8 +450,8 @@ const Ue = /* @__PURE__ */ new Set([
|
|
|
468
450
|
"address",
|
|
469
451
|
"id"
|
|
470
452
|
]);
|
|
471
|
-
function
|
|
472
|
-
return
|
|
453
|
+
function Ue(e) {
|
|
454
|
+
return He.has(e);
|
|
473
455
|
}
|
|
474
456
|
const L = {
|
|
475
457
|
add_delay: {
|
|
@@ -500,27 +482,27 @@ const L = {
|
|
|
500
482
|
labelKey: "workflow.action.webhook",
|
|
501
483
|
iconName: "Globe"
|
|
502
484
|
}
|
|
503
|
-
},
|
|
504
|
-
Clock:
|
|
505
|
-
Mail:
|
|
506
|
-
Smartphone:
|
|
507
|
-
CheckSquare:
|
|
508
|
-
MessageCircle:
|
|
509
|
-
UserCog:
|
|
485
|
+
}, Ge = {
|
|
486
|
+
Clock: ue,
|
|
487
|
+
Mail: ce,
|
|
488
|
+
Smartphone: fe,
|
|
489
|
+
CheckSquare: le,
|
|
490
|
+
MessageCircle: ie,
|
|
491
|
+
UserCog: de,
|
|
510
492
|
Globe: ne
|
|
511
493
|
};
|
|
512
494
|
function Y({
|
|
513
495
|
iconName: e,
|
|
514
496
|
className: s
|
|
515
497
|
}) {
|
|
516
|
-
const r =
|
|
498
|
+
const r = Ge[e];
|
|
517
499
|
return /* @__PURE__ */ t(r, { "aria-hidden": "true", className: s ?? "ds:size-4" });
|
|
518
500
|
}
|
|
519
|
-
const
|
|
501
|
+
const Ye = 40, Je = 60;
|
|
520
502
|
function te(e, s) {
|
|
521
503
|
return e.length <= s ? e : `${e.slice(0, s - 1)}…`;
|
|
522
504
|
}
|
|
523
|
-
function
|
|
505
|
+
function Qe(e, s) {
|
|
524
506
|
switch (e.kind) {
|
|
525
507
|
case "add_delay": {
|
|
526
508
|
const r = e.days ?? 0, o = s("workflow.delay.summary", { count: r });
|
|
@@ -528,11 +510,11 @@ function Xe(e, s) {
|
|
|
528
510
|
}
|
|
529
511
|
case "send_email": {
|
|
530
512
|
const r = e.subject ?? "", i = `${s("workflow.action.sendEmail")}: ${r}`;
|
|
531
|
-
return { text: te(i,
|
|
513
|
+
return { text: te(i, Ye), full: i };
|
|
532
514
|
}
|
|
533
515
|
case "send_sms": {
|
|
534
516
|
const r = e.body ?? "";
|
|
535
|
-
return { text: te(r,
|
|
517
|
+
return { text: te(r, Je), full: r };
|
|
536
518
|
}
|
|
537
519
|
case "create_task": {
|
|
538
520
|
const r = e.title ?? "";
|
|
@@ -559,7 +541,7 @@ const se = [
|
|
|
559
541
|
"ds:border-inline-start-[var(--border-width-hairline)]",
|
|
560
542
|
"ds:border-solid",
|
|
561
543
|
"ds:border-[color:var(--border)]"
|
|
562
|
-
].join(" "),
|
|
544
|
+
].join(" "), Xe = [
|
|
563
545
|
"ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
|
|
564
546
|
"ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
|
|
565
547
|
"ds:rounded-[var(--radius-full)]",
|
|
@@ -574,21 +556,21 @@ const se = [
|
|
|
574
556
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
575
557
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
576
558
|
"ds:disabled:opacity-50 ds:disabled:cursor-not-allowed"
|
|
577
|
-
].join(" "),
|
|
559
|
+
].join(" "), Ze = [
|
|
578
560
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
579
561
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
580
562
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
581
563
|
"ds:rounded-[var(--radius-lg)]"
|
|
582
|
-
].join(" "),
|
|
564
|
+
].join(" "), et = Object.keys(
|
|
583
565
|
L
|
|
584
566
|
);
|
|
585
567
|
let re = 0;
|
|
586
|
-
function
|
|
568
|
+
function tt() {
|
|
587
569
|
re += 1;
|
|
588
570
|
const e = Math.random().toString(36).slice(2, 8);
|
|
589
571
|
return `wf-node-${Date.now()}-${re}-${e}`;
|
|
590
572
|
}
|
|
591
|
-
function
|
|
573
|
+
function st(e) {
|
|
592
574
|
switch (e) {
|
|
593
575
|
case "add_delay":
|
|
594
576
|
return { kind: "add_delay", days: 1 };
|
|
@@ -611,13 +593,13 @@ function rt(e) {
|
|
|
611
593
|
return { kind: "webhook", url: "", method: "POST" };
|
|
612
594
|
}
|
|
613
595
|
}
|
|
614
|
-
function
|
|
615
|
-
const s =
|
|
596
|
+
function rt(e = 0) {
|
|
597
|
+
const s = A(e), r = q((o) => {
|
|
616
598
|
s.current = o;
|
|
617
599
|
}, []);
|
|
618
600
|
return [s, r];
|
|
619
601
|
}
|
|
620
|
-
function
|
|
602
|
+
function ot({
|
|
621
603
|
node: e,
|
|
622
604
|
position: s,
|
|
623
605
|
total: r,
|
|
@@ -627,26 +609,26 @@ function at({
|
|
|
627
609
|
onMove: a,
|
|
628
610
|
registerRef: p
|
|
629
611
|
}) {
|
|
630
|
-
const { t: m } = S(), c = L[e.type], d =
|
|
612
|
+
const { t: m } = S(), c = L[e.type], d = A(null), [l, v] = rt(0), h = q(
|
|
631
613
|
(g) => {
|
|
632
|
-
var P,
|
|
614
|
+
var P, R;
|
|
633
615
|
const _ = (P = d.current) == null ? void 0 : P.querySelectorAll(
|
|
634
616
|
"button[data-wf-control]:not([disabled])"
|
|
635
617
|
);
|
|
636
618
|
if (!_ || _.length === 0) return;
|
|
637
619
|
const B = Math.max(0, Math.min(g, _.length - 1));
|
|
638
|
-
(
|
|
620
|
+
(R = _[B]) == null || R.focus(), v(B);
|
|
639
621
|
},
|
|
640
622
|
[v]
|
|
641
623
|
), y = (g) => {
|
|
642
624
|
g.target === g.currentTarget && (g.key === "ArrowRight" || g.key === "ArrowDown") && (g.preventDefault(), h(0));
|
|
643
625
|
}, x = (g) => {
|
|
644
626
|
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));
|
|
645
|
-
}, w =
|
|
627
|
+
}, w = Qe(e.settings, m), k = m(c.labelKey), I = s > 0, T = s < r - 1, K = m("workflow.editor.position", {
|
|
646
628
|
current: s + 1,
|
|
647
629
|
total: r
|
|
648
|
-
}),
|
|
649
|
-
type:
|
|
630
|
+
}), j = m("workflow.editor.nodeAriaLabel", {
|
|
631
|
+
type: k,
|
|
650
632
|
current: s + 1,
|
|
651
633
|
total: r
|
|
652
634
|
});
|
|
@@ -658,9 +640,9 @@ function at({
|
|
|
658
640
|
ref: (g) => p(e.id, g),
|
|
659
641
|
tabIndex: o ? -1 : 0,
|
|
660
642
|
onKeyDown: y,
|
|
661
|
-
"aria-label":
|
|
643
|
+
"aria-label": j,
|
|
662
644
|
"data-node-id": e.id,
|
|
663
|
-
className:
|
|
645
|
+
className: Ze,
|
|
664
646
|
children: /* @__PURE__ */ u(C, { variant: "outlined", children: [
|
|
665
647
|
/* @__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: [
|
|
666
648
|
/* @__PURE__ */ t(
|
|
@@ -672,7 +654,7 @@ function at({
|
|
|
672
654
|
}
|
|
673
655
|
),
|
|
674
656
|
/* @__PURE__ */ u("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col", children: [
|
|
675
|
-
/* @__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:
|
|
657
|
+
/* @__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 }),
|
|
676
658
|
/* @__PURE__ */ t("span", { className: "ds:text-[length:var(--font-size-xs)] ds:text-[color:var(--muted-foreground)]", children: K })
|
|
677
659
|
] }),
|
|
678
660
|
/* @__PURE__ */ u(
|
|
@@ -702,7 +684,7 @@ function at({
|
|
|
702
684
|
icon: /* @__PURE__ */ t(Me, {}),
|
|
703
685
|
size: "sm",
|
|
704
686
|
intent: "ghost",
|
|
705
|
-
disabled: o || !
|
|
687
|
+
disabled: o || !I,
|
|
706
688
|
tabIndex: -1,
|
|
707
689
|
"aria-label": m("workflow.editor.moveUp"),
|
|
708
690
|
onClick: () => a(e.id, "up")
|
|
@@ -715,7 +697,7 @@ function at({
|
|
|
715
697
|
icon: /* @__PURE__ */ t(Se, {}),
|
|
716
698
|
size: "sm",
|
|
717
699
|
intent: "ghost",
|
|
718
|
-
disabled: o || !
|
|
700
|
+
disabled: o || !T,
|
|
719
701
|
tabIndex: -1,
|
|
720
702
|
"aria-label": m("workflow.editor.moveDown"),
|
|
721
703
|
onClick: () => a(e.id, "down")
|
|
@@ -725,7 +707,7 @@ function at({
|
|
|
725
707
|
M,
|
|
726
708
|
{
|
|
727
709
|
"data-wf-control": "delete",
|
|
728
|
-
icon: /* @__PURE__ */ t(
|
|
710
|
+
icon: /* @__PURE__ */ t(me, {}),
|
|
729
711
|
size: "sm",
|
|
730
712
|
intent: "destructive",
|
|
731
713
|
disabled: o,
|
|
@@ -746,7 +728,7 @@ function at({
|
|
|
746
728
|
children: w.text
|
|
747
729
|
}
|
|
748
730
|
) }) : null,
|
|
749
|
-
e.settings.kind === "update_patient_field" &&
|
|
731
|
+
e.settings.kind === "update_patient_field" && Ue(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
|
|
750
732
|
] })
|
|
751
733
|
}
|
|
752
734
|
)
|
|
@@ -767,7 +749,7 @@ function oe({
|
|
|
767
749
|
type: "button",
|
|
768
750
|
disabled: r,
|
|
769
751
|
"aria-label": o,
|
|
770
|
-
className:
|
|
752
|
+
className: Xe,
|
|
771
753
|
children: [
|
|
772
754
|
/* @__PURE__ */ t(ae, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
773
755
|
i ? null : /* @__PURE__ */ t("span", { className: "ds:text-[length:var(--font-size-sm)]", children: o })
|
|
@@ -791,7 +773,7 @@ function oe({
|
|
|
791
773
|
] })
|
|
792
774
|
] });
|
|
793
775
|
}
|
|
794
|
-
function
|
|
776
|
+
function at({ criteria: e, onEdit: s, disabled: r }) {
|
|
795
777
|
const { t: o } = S(), i = (e == null ? void 0 : e.ruleCount) ?? 0, n = i > 0 ? o("workflow.editor.criteriaCount", { count: i }) : o("workflow.editor.noCriteria");
|
|
796
778
|
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: [
|
|
797
779
|
/* @__PURE__ */ u("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col", children: [
|
|
@@ -811,7 +793,7 @@ function nt({ criteria: e, onEdit: s, disabled: r }) {
|
|
|
811
793
|
) : null
|
|
812
794
|
] }) }) });
|
|
813
795
|
}
|
|
814
|
-
const
|
|
796
|
+
const nt = H(
|
|
815
797
|
function({
|
|
816
798
|
graph: s,
|
|
817
799
|
onChange: r,
|
|
@@ -823,51 +805,51 @@ const dt = O(
|
|
|
823
805
|
onDeleteNode: m,
|
|
824
806
|
className: c
|
|
825
807
|
}, d) {
|
|
826
|
-
const { t: l } = S(), v = a ??
|
|
808
|
+
const { t: l } = S(), v = a ?? et, h = $(() => G(s), [s]), y = A(/* @__PURE__ */ new Map()), x = A(null), w = q(
|
|
827
809
|
(f) => {
|
|
828
810
|
n || r(f);
|
|
829
811
|
},
|
|
830
812
|
[n, r]
|
|
831
|
-
),
|
|
832
|
-
|
|
833
|
-
}, []), [
|
|
834
|
-
K.current =
|
|
835
|
-
const
|
|
836
|
-
|
|
837
|
-
const g =
|
|
813
|
+
), k = q((f, b) => {
|
|
814
|
+
b ? y.current.set(f, b) : y.current.delete(f);
|
|
815
|
+
}, []), [I, T] = ge(null), K = A(null);
|
|
816
|
+
K.current = I;
|
|
817
|
+
const j = A(null);
|
|
818
|
+
be(d, () => j.current, []);
|
|
819
|
+
const g = $(
|
|
838
820
|
() => ({
|
|
839
821
|
getTotalSteps: () => h.length,
|
|
840
822
|
getCurrentStep: () => K.current,
|
|
841
823
|
gotoStep: (f) => {
|
|
842
|
-
const
|
|
843
|
-
|
|
824
|
+
const b = y.current.get(f);
|
|
825
|
+
b && (b.focus(), T(f));
|
|
844
826
|
}
|
|
845
827
|
}),
|
|
846
828
|
[h.length]
|
|
847
829
|
);
|
|
848
|
-
Ce(
|
|
830
|
+
Ce(Ve, g, void 0), ke(() => {
|
|
849
831
|
const f = x.current;
|
|
850
832
|
if (!f) return;
|
|
851
|
-
const
|
|
852
|
-
|
|
833
|
+
const b = y.current.get(f);
|
|
834
|
+
b && (b.focus(), x.current = null);
|
|
853
835
|
});
|
|
854
|
-
const _ = (f,
|
|
836
|
+
const _ = (f, b) => {
|
|
855
837
|
if (n) return;
|
|
856
|
-
const
|
|
857
|
-
id:
|
|
858
|
-
type:
|
|
859
|
-
settings:
|
|
838
|
+
const W = {
|
|
839
|
+
id: tt(),
|
|
840
|
+
type: b,
|
|
841
|
+
settings: st(b)
|
|
860
842
|
};
|
|
861
|
-
x.current =
|
|
862
|
-
}, B = (f,
|
|
863
|
-
n || (x.current = f, w(Oe(s, f,
|
|
843
|
+
x.current = W.id, w(O(s, f, W));
|
|
844
|
+
}, B = (f, b) => {
|
|
845
|
+
n || (x.current = f, w(Oe(s, f, b)));
|
|
864
846
|
}, P = (f) => {
|
|
865
847
|
n || !p || p(f);
|
|
866
|
-
},
|
|
848
|
+
}, R = (f) => {
|
|
867
849
|
n || !m || m(f);
|
|
868
850
|
}, J = () => n ? /* @__PURE__ */ t(V, { variant: "warning", children: /* @__PURE__ */ t(V.Title, { as: "p", children: l("workflow.editor.activeLock") }) }) : null, Q = () => o || i ? /* @__PURE__ */ u(ve, { children: [
|
|
869
851
|
/* @__PURE__ */ t(
|
|
870
|
-
|
|
852
|
+
at,
|
|
871
853
|
{
|
|
872
854
|
criteria: o,
|
|
873
855
|
onEdit: i,
|
|
@@ -879,7 +861,7 @@ const dt = O(
|
|
|
879
861
|
return X === 0 ? /* @__PURE__ */ u(
|
|
880
862
|
"div",
|
|
881
863
|
{
|
|
882
|
-
ref:
|
|
864
|
+
ref: j,
|
|
883
865
|
className: [se, c].filter(Boolean).join(" "),
|
|
884
866
|
children: [
|
|
885
867
|
J(),
|
|
@@ -945,13 +927,13 @@ const dt = O(
|
|
|
945
927
|
/* @__PURE__ */ u(N.Content, { align: "center", sideOffset: 6, children: [
|
|
946
928
|
/* @__PURE__ */ t(N.Label, { children: l("workflow.editor.addAction") }),
|
|
947
929
|
v.map((f) => {
|
|
948
|
-
const
|
|
930
|
+
const b = L[f];
|
|
949
931
|
return /* @__PURE__ */ t(
|
|
950
932
|
N.Item,
|
|
951
933
|
{
|
|
952
|
-
startIcon: /* @__PURE__ */ t(Y, { iconName:
|
|
934
|
+
startIcon: /* @__PURE__ */ t(Y, { iconName: b.iconName }),
|
|
953
935
|
onSelect: () => _(null, f),
|
|
954
|
-
children: l(
|
|
936
|
+
children: l(b.labelKey)
|
|
955
937
|
},
|
|
956
938
|
f
|
|
957
939
|
);
|
|
@@ -966,7 +948,7 @@ const dt = O(
|
|
|
966
948
|
) : /* @__PURE__ */ u(
|
|
967
949
|
"div",
|
|
968
950
|
{
|
|
969
|
-
ref:
|
|
951
|
+
ref: j,
|
|
970
952
|
"data-component": "workflow-editor",
|
|
971
953
|
className: [se, c].filter(Boolean).join(" "),
|
|
972
954
|
children: [
|
|
@@ -987,19 +969,19 @@ const dt = O(
|
|
|
987
969
|
role: "list",
|
|
988
970
|
"aria-label": l("workflow.editor.pipeline"),
|
|
989
971
|
className: "ds:list-none ds:m-0 ds:p-0 ds:flex ds:flex-col",
|
|
990
|
-
children: h.map((f,
|
|
972
|
+
children: h.map((f, b) => /* @__PURE__ */ u("li", { className: "ds:list-none ds:flex ds:flex-col", children: [
|
|
991
973
|
/* @__PURE__ */ t("span", { "aria-hidden": "true", className: F }),
|
|
992
974
|
/* @__PURE__ */ t(
|
|
993
|
-
|
|
975
|
+
ot,
|
|
994
976
|
{
|
|
995
977
|
node: f,
|
|
996
|
-
position:
|
|
978
|
+
position: b,
|
|
997
979
|
total: X,
|
|
998
980
|
disabled: n,
|
|
999
981
|
onEdit: p ? P : void 0,
|
|
1000
|
-
onDelete: m ?
|
|
982
|
+
onDelete: m ? R : void 0,
|
|
1001
983
|
onMove: B,
|
|
1002
|
-
registerRef:
|
|
984
|
+
registerRef: k
|
|
1003
985
|
}
|
|
1004
986
|
),
|
|
1005
987
|
/* @__PURE__ */ t("span", { "aria-hidden": "true", className: F }),
|
|
@@ -1009,7 +991,7 @@ const dt = O(
|
|
|
1009
991
|
availableActions: v,
|
|
1010
992
|
disabled: n,
|
|
1011
993
|
label: l("workflow.editor.addActionAfter"),
|
|
1012
|
-
onSelect: (
|
|
994
|
+
onSelect: (W) => _(f.id, W)
|
|
1013
995
|
}
|
|
1014
996
|
) })
|
|
1015
997
|
] }, f.id))
|
|
@@ -1020,16 +1002,16 @@ const dt = O(
|
|
|
1020
1002
|
);
|
|
1021
1003
|
}
|
|
1022
1004
|
);
|
|
1023
|
-
|
|
1024
|
-
const
|
|
1025
|
-
Clock:
|
|
1026
|
-
Mail:
|
|
1027
|
-
Smartphone:
|
|
1028
|
-
CheckSquare:
|
|
1029
|
-
MessageCircle:
|
|
1030
|
-
UserCog:
|
|
1005
|
+
nt.displayName = "WorkflowEditor";
|
|
1006
|
+
const dt = {
|
|
1007
|
+
Clock: ue,
|
|
1008
|
+
Mail: ce,
|
|
1009
|
+
Smartphone: fe,
|
|
1010
|
+
CheckSquare: le,
|
|
1011
|
+
MessageCircle: ie,
|
|
1012
|
+
UserCog: de,
|
|
1031
1013
|
Globe: ne
|
|
1032
|
-
},
|
|
1014
|
+
}, it = D(
|
|
1033
1015
|
// The map is a list of steps — never a list of meaningful controls.
|
|
1034
1016
|
// Layout via logical properties only; connectors are sibling spacers
|
|
1035
1017
|
// styled with border-inline-start / border-block-end (see node/spacer).
|
|
@@ -1152,7 +1134,7 @@ const it = {
|
|
|
1152
1134
|
]
|
|
1153
1135
|
}
|
|
1154
1136
|
);
|
|
1155
|
-
function
|
|
1137
|
+
function lt(e) {
|
|
1156
1138
|
switch (e.kind) {
|
|
1157
1139
|
case "add_delay":
|
|
1158
1140
|
return typeof e.days == "number" && e.days > 0 ? {
|
|
@@ -1181,11 +1163,11 @@ function ct(e) {
|
|
|
1181
1163
|
return;
|
|
1182
1164
|
}
|
|
1183
1165
|
}
|
|
1184
|
-
function
|
|
1166
|
+
function ct(e, s) {
|
|
1185
1167
|
if (e !== void 0)
|
|
1186
1168
|
return typeof e == "string" ? e : s(e.key, e.options);
|
|
1187
1169
|
}
|
|
1188
|
-
const
|
|
1170
|
+
const ut = H(
|
|
1189
1171
|
function({
|
|
1190
1172
|
graph: s,
|
|
1191
1173
|
activeNodeId: r,
|
|
@@ -1197,7 +1179,7 @@ const ft = O(
|
|
|
1197
1179
|
"aria-label": m,
|
|
1198
1180
|
...c
|
|
1199
1181
|
}, d) {
|
|
1200
|
-
const { t: l } = S(), v =
|
|
1182
|
+
const { t: l } = S(), v = $(() => G(s), [s]), h = $(
|
|
1201
1183
|
() => r ? v.findIndex((w) => w.id === r) : -1,
|
|
1202
1184
|
[v, r]
|
|
1203
1185
|
), y = m ?? l("workflow.map.label", { count: v.length }), x = (w) => h === -1 ? "neutral" : w === h ? "current" : w < h ? "completed" : "pending";
|
|
@@ -1211,27 +1193,27 @@ const ft = O(
|
|
|
1211
1193
|
"aria-label": y,
|
|
1212
1194
|
"data-component": "workflow-map",
|
|
1213
1195
|
"data-component-id": c.id,
|
|
1214
|
-
className:
|
|
1196
|
+
className: it({ orientation: n, compact: a, className: p }),
|
|
1215
1197
|
...c,
|
|
1216
1198
|
children: [
|
|
1217
1199
|
i ? /* @__PURE__ */ t(
|
|
1218
|
-
|
|
1200
|
+
mt,
|
|
1219
1201
|
{
|
|
1220
1202
|
orientation: n,
|
|
1221
1203
|
compact: a,
|
|
1222
1204
|
criteria: i
|
|
1223
1205
|
}
|
|
1224
1206
|
) : null,
|
|
1225
|
-
v.map((w,
|
|
1226
|
-
const
|
|
1207
|
+
v.map((w, k) => {
|
|
1208
|
+
const I = x(k), T = k === v.length - 1;
|
|
1227
1209
|
return /* @__PURE__ */ t(
|
|
1228
|
-
|
|
1210
|
+
ft,
|
|
1229
1211
|
{
|
|
1230
1212
|
node: w,
|
|
1231
|
-
state:
|
|
1213
|
+
state: I,
|
|
1232
1214
|
orientation: n,
|
|
1233
1215
|
compact: a,
|
|
1234
|
-
isLast:
|
|
1216
|
+
isLast: T,
|
|
1235
1217
|
onNodeClick: o
|
|
1236
1218
|
},
|
|
1237
1219
|
w.id
|
|
@@ -1243,8 +1225,8 @@ const ft = O(
|
|
|
1243
1225
|
);
|
|
1244
1226
|
}
|
|
1245
1227
|
);
|
|
1246
|
-
|
|
1247
|
-
function
|
|
1228
|
+
ut.displayName = "WorkflowMap";
|
|
1229
|
+
function ft({
|
|
1248
1230
|
node: e,
|
|
1249
1231
|
state: s,
|
|
1250
1232
|
orientation: r,
|
|
@@ -1252,10 +1234,10 @@ function mt({
|
|
|
1252
1234
|
isLast: i,
|
|
1253
1235
|
onNodeClick: n
|
|
1254
1236
|
}) {
|
|
1255
|
-
const { t: a } = S(), p = L[e.type], m =
|
|
1256
|
-
l && (
|
|
1257
|
-
}, x = (
|
|
1258
|
-
l && (
|
|
1237
|
+
const { t: a } = S(), p = L[e.type], m = dt[p.iconName], c = a(p.labelKey), d = ct(lt(e.settings), a), l = typeof n == "function", v = s === "current", h = s === "completed", y = (k) => {
|
|
1238
|
+
l && (k.preventDefault(), n == null || n(e.id));
|
|
1239
|
+
}, x = (k) => {
|
|
1240
|
+
l && (k.key === "Enter" || k.key === " ") && (k.preventDefault(), n == null || n(e.id));
|
|
1259
1241
|
}, w = v ? a("workflow.map.current") : h ? a("workflow.map.completed") : s === "pending" ? a("workflow.map.pending") : null;
|
|
1260
1242
|
return (
|
|
1261
1243
|
// `<li>` has implicit role="listitem"; no explicit role needed.
|
|
@@ -1325,7 +1307,7 @@ function mt({
|
|
|
1325
1307
|
] })
|
|
1326
1308
|
);
|
|
1327
1309
|
}
|
|
1328
|
-
function
|
|
1310
|
+
function mt({
|
|
1329
1311
|
orientation: e,
|
|
1330
1312
|
compact: s,
|
|
1331
1313
|
criteria: r
|
|
@@ -1370,18 +1352,18 @@ function pt({
|
|
|
1370
1352
|
] });
|
|
1371
1353
|
}
|
|
1372
1354
|
export {
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1355
|
+
He as C,
|
|
1356
|
+
Fe as W,
|
|
1357
|
+
nt as a,
|
|
1358
|
+
ut as b,
|
|
1359
|
+
O as c,
|
|
1360
|
+
$t as d,
|
|
1361
|
+
Ve as e,
|
|
1362
|
+
qt as f,
|
|
1363
|
+
Ue as i,
|
|
1382
1364
|
G as l,
|
|
1383
1365
|
Oe as m,
|
|
1384
1366
|
ee as r,
|
|
1385
1367
|
L as w
|
|
1386
1368
|
};
|
|
1387
|
-
//# sourceMappingURL=workflow-map-
|
|
1369
|
+
//# sourceMappingURL=workflow-map-ZXw-zsZ8.js.map
|