@alfadocs/ui-kit 0.64.0 → 0.66.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-tray-DA6qj8BL.js → agenda-tray-Bh1KfEOG.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-DBKV27je.js → ai-consent-banner-Btzmk8OH.js} +3 -2
- package/dist/_chunks/{ai-prompt-input-Dx8eXoPm.js → ai-prompt-input-BwEACCPm.js} +2 -2
- package/dist/_chunks/{ai-tools-rail-7tC3GT4h.js → ai-tools-rail-DAfaW8eA.js} +65 -56
- package/dist/_chunks/{alia-sidebar-DlvyXgVC.js → alia-sidebar-CN8pA6c-.js} +7 -7
- package/dist/_chunks/{anamnesis-card-CmkBVAln.js → anamnesis-card-qeLYRG79.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-CdiqkF05.js → antenatal-schedule-timeline-BfzFjEyb.js} +3 -3
- package/dist/_chunks/{appointment-tray-BwDHhWWC.js → appointment-tray-BQnJEora.js} +2 -2
- package/dist/_chunks/{ar-C68WKG5a.js → ar-Cn5Fq48Z.js} +2 -2
- package/dist/_chunks/{audio-recorder-CdXuT9ln.js → audio-recorder-DjXLP4aF.js} +2 -2
- package/dist/_chunks/{autocomplete-CDqxB68B.js → autocomplete-CcCFlVf-.js} +4 -4
- package/dist/_chunks/{bishop-score-CzjSx-dm.js → bishop-score-DPN4Ched.js} +2 -2
- package/dist/_chunks/{bmi-calculator-DA2NGmVK.js → bmi-calculator-DuUneHuZ.js} +2 -2
- package/dist/_chunks/{booking-ChfvWy3P.js → booking-L8-YP8BJ.js} +148 -148
- package/dist/_chunks/calendar-B6soK1Yb.js +17 -0
- package/dist/_chunks/{calendar-CkuJIg3s.js → calendar-oYWOCrnf.js} +1 -1
- package/dist/_chunks/{care-plan-card-DhZNoXs4.js → care-plan-card-D42WD4-T.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-DW70yBOD.js → care-plan-entry-card-BukNI7Uy.js} +2 -2
- package/dist/_chunks/{carousel.agent-DrX96W-1.js → carousel.agent-vt21A_el.js} +2 -2
- package/dist/_chunks/{chat-input-CFwc7JxL.js → chat-input-B5zjNEUN.js} +2 -2
- package/dist/_chunks/{chat-message-Dm8U2RY1.js → chat-message-3V54YipB.js} +2 -2
- package/dist/_chunks/{code-block-HoddNOKJ.js → code-block-BBWHhIc8.js} +2 -2
- package/dist/_chunks/columns-2-BTOBZbep.js +15 -0
- package/dist/_chunks/{contact-profile-card-DvvVfAA2.js → contact-profile-card-CCeJmjbd.js} +2 -2
- package/dist/_chunks/{cycle-calculator-C_t1Hs8V.js → cycle-calculator-D6LTmtQt.js} +4 -4
- package/dist/_chunks/{date-picker-BfHblqwA.js → date-picker-oGg5BnXL.js} +12 -11
- package/dist/_chunks/{date-picker-variants-CXEAx3O_.js → date-picker-variants-DAcSLTua.js} +358 -372
- package/dist/_chunks/{date-range-picker-hcAMs1wO.js → date-range-picker-C5BWfH_T.js} +34 -25
- package/dist/_chunks/{date-time-picker-H-3Pwqlb.js → date-time-picker-Ze1My59T.js} +18 -17
- package/dist/_chunks/{de-DK4A9_a8.js → de-CrJs4ZsX.js} +2 -2
- package/dist/_chunks/{description-list-BEbK2g93.js → description-list-gkNGWk5G.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Q8MIwEVV.js → due-date-calculator-CIG194vq.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-BQgaKFCz.js → editable-currency-cell-renderer-f3d0Rhue.js} +535 -535
- package/dist/_chunks/editor-overlay-wYm22wZK.js +88 -0
- package/dist/_chunks/{el-B29HXhG5.js → el-DHdMOIhL.js} +6 -6
- package/dist/_chunks/{es-BOwPVwWn.js → es-DCATCfqo.js} +2 -2
- package/dist/_chunks/{fetal-weight-D1a6BmM-.js → fetal-weight-Xf8-ZoDy.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-BZ0FxwUl.js → fiscal-code-input-DPtqluVb.js} +2 -2
- package/dist/_chunks/{fr-DoDBtn0T.js → fr-BfGEMshF.js} +2 -2
- package/dist/_chunks/{freemium-paywall-gHGA44dW.js → freemium-paywall-CkWjv3o6.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-D85E8lGN.js → gestational-age-calculator-BGsZaWXW.js} +6 -6
- package/dist/_chunks/{hcg-doubling-Dg0Hr7ey.js → hcg-doubling-LH5i6oM7.js} +3 -3
- package/dist/_chunks/{header-Ce1Br27u.js → header-CNszv2WQ.js} +2 -2
- package/dist/_chunks/{header-settings-D5Z2B_Yz.js → header-settings-CNOqIhoW.js} +3 -3
- package/dist/_chunks/{hi-DGByrKby.js → hi-CBFRXEIm.js} +2 -2
- package/dist/_chunks/icon-button-LqoiKcUN.js +78 -0
- package/dist/_chunks/image-C6RM5hfF.js +16 -0
- package/dist/_chunks/{insert-result-C1SYdueh.js → insert-result-njqBthzT.js} +115 -125
- package/dist/_chunks/{isSameWeek-B1odL2vR.js → isSameWeek-I3DfXUp1.js} +2 -2
- package/dist/_chunks/{it-B16rEecm.js → it-nz6vAKwG.js} +7 -7
- package/dist/_chunks/{ja-B0viOgft.js → ja-DQcqdAEJ.js} +2 -2
- package/dist/_chunks/{key-value-pair-CkQIb9EG.js → key-value-pair-BrgbMfbF.js} +2 -2
- package/dist/_chunks/{locale-picker-D99UyZVJ.js → locale-picker-C9JmBht3.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-C4OYAC22.js → marketplace-app-shell-Cou6XnMJ.js} +5 -5
- package/dist/_chunks/{message-card-Dvl1TgaN.js → message-card-Bgcvfj6-.js} +2 -2
- package/dist/_chunks/{message-tray-Dl6GQaaV.js → message-tray-saAVMeHP.js} +3 -3
- package/dist/_chunks/{multi-select-DOLO3K_z.js → multi-select-BcPylvHR.js} +100 -90
- package/dist/_chunks/{nl-cBxEX2QU.js → nl-L5SuDjyl.js} +2 -2
- package/dist/_chunks/{notification-card-CObnGdJu.js → notification-card-BiESdm8q.js} +2 -2
- package/dist/_chunks/{notification-tray-BWHDIjgd.js → notification-tray-DlgenTEe.js} +3 -3
- package/dist/_chunks/{patient-search-CArmRKeg.js → patient-search-Bw9ONucF.js} +2 -2
- package/dist/_chunks/{patient-shell-Coarf346.js → patient-shell-Tgpv0HND.js} +4 -4
- package/dist/_chunks/{patient-summary-card-BnTqxcTr.js → patient-summary-card-Bgso0p_l.js} +2 -2
- package/dist/_chunks/{payment-form-DJ9vnzrT.js → payment-form-nXocS_MX.js} +11 -4
- package/dist/_chunks/{payment-request-card-B_lyobd0.js → payment-request-card-DBz3hVDz.js} +3 -3
- package/dist/_chunks/{pdf-viewer-chMpwpA4.js → pdf-viewer-GsfNqeeT.js} +3 -3
- package/dist/_chunks/{periodontal-chart-card-BYs9hax1.js → periodontal-chart-card-AYyHtU9K.js} +2 -2
- package/dist/_chunks/phone-input-DVXhNlIl.js +563 -0
- package/dist/_chunks/{pl-DtS08ioY.js → pl-YAn5z2wR.js} +3 -3
- package/dist/_chunks/{popover-Devce-tT.js → popover-DTbfAuR0.js} +2 -2
- package/dist/_chunks/{practice-results-CtfciF2v.js → practice-results-CVAgY2RZ.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-7NUaAfob.js → pregnancy-dating-f9aJbiAk.js} +6 -6
- package/dist/_chunks/{pregnancy-weight-gain-DI7X-0JX.js → pregnancy-weight-gain-BMRBeA8V.js} +2 -2
- package/dist/_chunks/{privacy-lock-BN3L-alb.js → privacy-lock-C7JyMf0y.js} +2 -2
- package/dist/_chunks/{product-hub-panel-CkfZBA3t.js → product-hub-panel-CAXDFeGP.js} +2 -2
- package/dist/_chunks/{pt-yFXs1VvH.js → pt-D9xdT5KQ.js} +6 -6
- package/dist/_chunks/{public-header.agent-CYQK6T6F.js → public-header.agent-BOhJgZEU.js} +3 -3
- package/dist/_chunks/{reviews-panel-CPrXu5TX.js → reviews-panel-DBktKm7i.js} +2 -2
- package/dist/_chunks/rich-text-editor-B5XQNxe8.js +1586 -0
- package/dist/_chunks/{ro-DsCzSrzR.js → ro-Cp--52bT.js} +2 -2
- package/dist/_chunks/{ru-DgDxL0pc.js → ru-BM8eX_Zz.js} +3 -3
- package/dist/_chunks/{search-bar-CvN_S0jW.js → search-bar-SY2BcV2N.js} +2 -2
- package/dist/_chunks/{search-input-D3aMvi4l.js → search-input-DbxrnHkW.js} +3 -3
- package/dist/_chunks/{sheet-xbzu4YiY.js → sheet-taJer-Ha.js} +2 -2
- package/dist/_chunks/{sidebar-DPEHzxLZ.js → sidebar-BFwbx74W.js} +12 -1
- package/dist/_chunks/{sign-document--nr5cxsB.js → sign-document-CdAiHiCh.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-BpAjVmsI.js → sign-in-with-alfadocs-button-LppxjlFt.js} +2 -2
- package/dist/_chunks/{signature-field-DbhbpLha.js → signature-field-Dy1JRjzE.js} +10 -3
- package/dist/_chunks/{slot-grid-BlHHP9Qy.js → slot-grid-FsqumOaS.js} +2 -2
- package/dist/_chunks/smart-date-CWikAqZx.js +114 -0
- package/dist/_chunks/{social-sign-in-button-uJYLM366.js → social-sign-in-button-dlpPI5l7.js} +2 -2
- package/dist/_chunks/{spinner-OjQNn8oN.js → spinner-hbwuKwMf.js} +10 -10
- package/dist/_chunks/{sq-DHlCYN67.js → sq-XRpr0r49.js} +6 -6
- package/dist/_chunks/{streaming-text-CfhDqtIT.js → streaming-text-BB9mvK4m.js} +2 -2
- package/dist/_chunks/subDays-BcYv1Lxi.js +8 -0
- package/dist/_chunks/{sv-O0QaQs_s.js → sv-Z3APomE8.js} +2 -2
- package/dist/_chunks/{task-tray-Cb_hK4yb.js → task-tray-CAncV-QQ.js} +2 -2
- package/dist/_chunks/{theme-toggle-DAW7uC0B.js → theme-toggle-DETmSu_h.js} +2 -2
- package/dist/_chunks/{toast.agent-B0MCsvdZ.js → toast.agent-vuLRRn2a.js} +2 -2
- package/dist/_chunks/{tooth-scheme-CiphQaON.js → tooth-scheme-BIx1O2aJ.js} +3 -3
- package/dist/_chunks/{tr-BmNDRuio.js → tr-e0-P4FON.js} +2 -2
- package/dist/_chunks/{transcript-panel-B4HiC7ed.js → transcript-panel-CLHmv83g.js} +2 -2
- package/dist/_chunks/trash-2-rPAKaRgB.js +18 -0
- package/dist/_chunks/{unit-converter-BIbXHIQA.js → unit-converter-C1V3ACM9.js} +2 -2
- package/dist/_chunks/{wallet-pay-button-DuDPBlCO.js → wallet-pay-button--dnR6NfJ.js} +2 -2
- package/dist/_chunks/{workflow-map-BJDUNYlX.js → workflow-map-Bt4Of5dT.js} +137 -149
- package/dist/_chunks/{zh-CN-CgVJZEzz.js → zh-CN-B-igM5gY.js} +3 -3
- package/dist/agent-catalog.json +32 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editor-overlay/editor-overlay.d.ts +19 -0
- package/dist/components/editor-overlay/index.d.ts +3 -0
- package/dist/components/editor-overlay/index.js +5 -0
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.d.ts +9 -0
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +26 -0
- package/dist/components/rich-text-editor/help-me-write-overlay.d.ts +25 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +43 -0
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/smart-date/index.d.ts +3 -0
- package/dist/components/smart-date/index.js +5 -0
- package/dist/components/smart-date/smart-date.d.ts +32 -0
- package/dist/components/social-sign-in-button/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/wallet-pay-button/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +60 -0
- package/dist/i18n/locales/ar.js +61 -1
- package/dist/i18n/locales/de.d.ts +60 -0
- package/dist/i18n/locales/de.js +61 -1
- package/dist/i18n/locales/el.d.ts +60 -0
- package/dist/i18n/locales/el.js +61 -1
- package/dist/i18n/locales/en.d.ts +60 -0
- package/dist/i18n/locales/en.js +65 -1
- package/dist/i18n/locales/es.d.ts +60 -0
- package/dist/i18n/locales/es.js +61 -1
- package/dist/i18n/locales/fr.d.ts +60 -0
- package/dist/i18n/locales/fr.js +61 -1
- package/dist/i18n/locales/hi.d.ts +60 -0
- package/dist/i18n/locales/hi.js +61 -1
- package/dist/i18n/locales/it.d.ts +60 -0
- package/dist/i18n/locales/it.js +61 -1
- package/dist/i18n/locales/ja.d.ts +60 -0
- package/dist/i18n/locales/ja.js +61 -1
- package/dist/i18n/locales/nl.d.ts +60 -0
- package/dist/i18n/locales/nl.js +61 -1
- package/dist/i18n/locales/pl.d.ts +60 -0
- package/dist/i18n/locales/pl.js +61 -1
- package/dist/i18n/locales/pt.d.ts +60 -0
- package/dist/i18n/locales/pt.js +61 -1
- package/dist/i18n/locales/ro.d.ts +60 -0
- package/dist/i18n/locales/ro.js +61 -1
- package/dist/i18n/locales/ru.d.ts +60 -0
- package/dist/i18n/locales/ru.js +61 -1
- package/dist/i18n/locales/sq.d.ts +60 -0
- package/dist/i18n/locales/sq.js +61 -1
- package/dist/i18n/locales/sv.d.ts +60 -0
- package/dist/i18n/locales/sv.js +61 -1
- package/dist/i18n/locales/tr.d.ts +60 -0
- package/dist/i18n/locales/tr.js +61 -1
- package/dist/i18n/locales/zh.d.ts +60 -0
- package/dist/i18n/locales/zh.js +61 -1
- package/dist/index.js +494 -490
- package/dist/locales/ar.json +61 -1
- package/dist/locales/de.json +61 -1
- package/dist/locales/el.json +61 -1
- package/dist/locales/en.json +61 -1
- package/dist/locales/es.json +61 -1
- package/dist/locales/fr.json +61 -1
- package/dist/locales/hi.json +61 -1
- package/dist/locales/it.json +61 -1
- package/dist/locales/ja.json +61 -1
- package/dist/locales/nl.json +61 -1
- package/dist/locales/pl.json +61 -1
- package/dist/locales/pt.json +61 -1
- package/dist/locales/ro.json +61 -1
- package/dist/locales/ru.json +61 -1
- package/dist/locales/sq.json +61 -1
- package/dist/locales/sv.json +61 -1
- package/dist/locales/tr.json +61 -1
- package/dist/locales/zh.json +61 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +36 -22
- package/package.json +10 -1
- package/dist/_chunks/icon-button-CKEOrN37.js +0 -70
- package/dist/_chunks/phone-input-DfZbPPvh.js +0 -525
- package/dist/_chunks/rich-text-editor-B03qM22-.js +0 -334
- package/dist/_chunks/subDays-Bs00akhK.js +0 -8
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import { jsx as t, jsxs as u, Fragment as ve } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as H, useMemo as
|
|
2
|
+
import { forwardRef as H, useMemo as q, useRef as z, useCallback as F, useState as ge, useImperativeHandle as be, useEffect as ke } from "react";
|
|
3
3
|
import { c as D } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as
|
|
4
|
+
import { useTranslation as M } from "react-i18next";
|
|
5
5
|
import { C } from "./card-DPmk26CL.js";
|
|
6
6
|
import { B as ye } from "./badge-zsf5i5bH.js";
|
|
7
|
-
import { a as Z } from "./key-value-pair-
|
|
7
|
+
import { a as Z } from "./key-value-pair-BrgbMfbF.js";
|
|
8
8
|
import { T as xe } from "./timestamp-BV2lC-wV.js";
|
|
9
|
-
import { I as
|
|
9
|
+
import { I as S } from "./icon-button-LqoiKcUN.js";
|
|
10
10
|
import { P as U } from "./pencil-CfQX-0Qc.js";
|
|
11
|
-
import { c as
|
|
11
|
+
import { c as A } from "./createLucideIcon-CrFbzy84.js";
|
|
12
|
+
import { T as ae } from "./trash-2-rPAKaRgB.js";
|
|
12
13
|
import { C as Ne } from "./circle-BkqTgYmt.js";
|
|
13
14
|
import { u as Ce } from "./registry-nPAVE19X.js";
|
|
14
|
-
import { A as
|
|
15
|
+
import { A as O } from "./alert-_mUKLmwA.js";
|
|
15
16
|
import { B as _e } from "./button-DD_0Xdmr.js";
|
|
16
17
|
import { D as N } from "./dropdown-menu-DwwPovMZ.js";
|
|
17
|
-
import { E } from "./empty-state-BLy7tigq.js";
|
|
18
|
-
import { P as
|
|
19
|
-
import { G as
|
|
20
|
-
import { U as
|
|
21
|
-
import { M as
|
|
22
|
-
import { S as
|
|
23
|
-
import { M as
|
|
24
|
-
import { C as
|
|
25
|
-
import { C as
|
|
26
|
-
import { C as
|
|
18
|
+
import { E as j } from "./empty-state-BLy7tigq.js";
|
|
19
|
+
import { P as ne } from "./plus-CYKNmfuA.js";
|
|
20
|
+
import { G as de } from "./globe-BkEFMNSg.js";
|
|
21
|
+
import { U as ie } from "./user-cog-BS_qc8nA.js";
|
|
22
|
+
import { M as le } from "./message-circle-C23eicgb.js";
|
|
23
|
+
import { S as ce } from "./square-check-big-Jr-0202D.js";
|
|
24
|
+
import { M as ue } from "./mail-C8irm52s.js";
|
|
25
|
+
import { C as fe } from "./clock-21AGPWJ5.js";
|
|
26
|
+
import { C as Se } from "./chevron-up-zOEDrmBB.js";
|
|
27
|
+
import { C as Me } from "./chevron-down-BX_NP2Yh.js";
|
|
27
28
|
import { C as ze } from "./check-DPdL_Sm7.js";
|
|
28
29
|
/**
|
|
29
30
|
* @license lucide-react v1.8.0 - ISC
|
|
@@ -40,7 +41,7 @@ const Ae = [
|
|
|
40
41
|
["path", { d: "M21.818 10.1a10 10 0 0 1 0 3.8", key: "qkgqxc" }],
|
|
41
42
|
["path", { d: "M3.721 6.391a10 10 0 0 1 2.7-2.69", key: "1mcia2" }],
|
|
42
43
|
["path", { d: "M6.391 20.279a10 10 0 0 1-2.69-2.7", key: "1fvljs" }]
|
|
43
|
-
], Ie =
|
|
44
|
+
], Ie = A("circle-dashed", Ae);
|
|
44
45
|
/**
|
|
45
46
|
* @license lucide-react v1.8.0 - ISC
|
|
46
47
|
*
|
|
@@ -51,20 +52,20 @@ const Te = [
|
|
|
51
52
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
52
53
|
["line", { x1: "10", x2: "10", y1: "15", y2: "9", key: "c1nkhi" }],
|
|
53
54
|
["line", { x1: "14", x2: "14", y1: "15", y2: "9", key: "h65svq" }]
|
|
54
|
-
],
|
|
55
|
+
], Ee = A("circle-pause", Te);
|
|
55
56
|
/**
|
|
56
57
|
* @license lucide-react v1.8.0 - ISC
|
|
57
58
|
*
|
|
58
59
|
* This source code is licensed under the ISC license.
|
|
59
60
|
* See the LICENSE file in the root directory of this source tree.
|
|
60
61
|
*/
|
|
61
|
-
const
|
|
62
|
+
const je = [
|
|
62
63
|
["path", { d: "M13 5h8", key: "a7qcls" }],
|
|
63
64
|
["path", { d: "M13 12h8", key: "h98zly" }],
|
|
64
65
|
["path", { d: "M13 19h8", key: "c3s6r1" }],
|
|
65
66
|
["path", { d: "m3 17 2 2 4-4", key: "1jhpwq" }],
|
|
66
67
|
["path", { d: "m3 7 2 2 4-4", key: "1obspn" }]
|
|
67
|
-
], De =
|
|
68
|
+
], De = A("list-checks", je);
|
|
68
69
|
/**
|
|
69
70
|
* @license lucide-react v1.8.0 - ISC
|
|
70
71
|
*
|
|
@@ -76,7 +77,7 @@ const Le = [
|
|
|
76
77
|
["path", { d: "M6.16 6.16a9 9 0 1 0 12.68 12.68", key: "1x7qb5" }],
|
|
77
78
|
["path", { d: "M12 2v4", key: "3427ic" }],
|
|
78
79
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
79
|
-
], Ke =
|
|
80
|
+
], Ke = A("power-off", Le);
|
|
80
81
|
/**
|
|
81
82
|
* @license lucide-react v1.8.0 - ISC
|
|
82
83
|
*
|
|
@@ -86,7 +87,7 @@ const Le = [
|
|
|
86
87
|
const Be = [
|
|
87
88
|
["path", { d: "M12 2v10", key: "mnfbl" }],
|
|
88
89
|
["path", { d: "M18.4 6.6a9 9 0 1 1-12.77.04", key: "obofu9" }]
|
|
89
|
-
], Pe =
|
|
90
|
+
], Pe = A("power", Be);
|
|
90
91
|
/**
|
|
91
92
|
* @license lucide-react v1.8.0 - ISC
|
|
92
93
|
*
|
|
@@ -96,20 +97,7 @@ const Be = [
|
|
|
96
97
|
const Re = [
|
|
97
98
|
["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2", key: "1yt0o3" }],
|
|
98
99
|
["path", { d: "M12 18h.01", key: "mhygvu" }]
|
|
99
|
-
],
|
|
100
|
-
/**
|
|
101
|
-
* @license lucide-react v1.8.0 - ISC
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the ISC license.
|
|
104
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/
|
|
106
|
-
const We = [
|
|
107
|
-
["path", { d: "M10 11v6", key: "nco0om" }],
|
|
108
|
-
["path", { d: "M14 11v6", key: "outv1u" }],
|
|
109
|
-
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
110
|
-
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
111
|
-
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
112
|
-
], me = z("trash-2", We), $e = D("ds:relative ds:w-full", {
|
|
100
|
+
], me = A("smartphone", Re), We = D("ds:relative ds:w-full", {
|
|
113
101
|
variants: {
|
|
114
102
|
density: {
|
|
115
103
|
comfortable: "",
|
|
@@ -130,7 +118,7 @@ function qe(e) {
|
|
|
130
118
|
case "paused":
|
|
131
119
|
return {
|
|
132
120
|
badgeVariant: "warning",
|
|
133
|
-
icon: /* @__PURE__ */ t(
|
|
121
|
+
icon: /* @__PURE__ */ t(Ee, { "aria-hidden": "true" })
|
|
134
122
|
};
|
|
135
123
|
case "inactive":
|
|
136
124
|
default:
|
|
@@ -150,7 +138,7 @@ const Fe = H(
|
|
|
150
138
|
onToggleActive: a,
|
|
151
139
|
className: p
|
|
152
140
|
}, m) {
|
|
153
|
-
const { t: c } =
|
|
141
|
+
const { t: c } = M(), d = qe(s.status), l = s.status === "active", v = r === "compact", h = (w) => (k) => {
|
|
154
142
|
k.stopPropagation(), w == null || w();
|
|
155
143
|
}, y = /* @__PURE__ */ t(
|
|
156
144
|
ye,
|
|
@@ -166,7 +154,7 @@ const Fe = H(
|
|
|
166
154
|
{
|
|
167
155
|
ref: m,
|
|
168
156
|
variant: "default",
|
|
169
|
-
className:
|
|
157
|
+
className: We({ density: r, className: p }),
|
|
170
158
|
"data-component": "workflow-card",
|
|
171
159
|
"data-component-id": s.id,
|
|
172
160
|
children: [
|
|
@@ -233,7 +221,7 @@ const Fe = H(
|
|
|
233
221
|
] }),
|
|
234
222
|
/* @__PURE__ */ u("div", { className: "ds:relative ds:z-10 ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-xs)] ds:ms-auto", children: [
|
|
235
223
|
i && /* @__PURE__ */ t(
|
|
236
|
-
|
|
224
|
+
S,
|
|
237
225
|
{
|
|
238
226
|
icon: /* @__PURE__ */ t(U, {}),
|
|
239
227
|
size: "sm",
|
|
@@ -243,7 +231,7 @@ const Fe = H(
|
|
|
243
231
|
}
|
|
244
232
|
),
|
|
245
233
|
a && /* @__PURE__ */ t(
|
|
246
|
-
|
|
234
|
+
S,
|
|
247
235
|
{
|
|
248
236
|
icon: l ? /* @__PURE__ */ t(Ke, {}) : /* @__PURE__ */ t(Pe, {}),
|
|
249
237
|
size: "sm",
|
|
@@ -255,9 +243,9 @@ const Fe = H(
|
|
|
255
243
|
}
|
|
256
244
|
),
|
|
257
245
|
n && /* @__PURE__ */ t(
|
|
258
|
-
|
|
246
|
+
S,
|
|
259
247
|
{
|
|
260
|
-
icon: /* @__PURE__ */ t(
|
|
248
|
+
icon: /* @__PURE__ */ t(ae, {}),
|
|
261
249
|
size: "sm",
|
|
262
250
|
intent: "destructive",
|
|
263
251
|
"aria-label": c("workflow.card.delete"),
|
|
@@ -272,7 +260,7 @@ const Fe = H(
|
|
|
272
260
|
}
|
|
273
261
|
);
|
|
274
262
|
Fe.displayName = "WorkflowCard";
|
|
275
|
-
const
|
|
263
|
+
const qt = {
|
|
276
264
|
id: "workflow-card",
|
|
277
265
|
capabilities: ["navigate"],
|
|
278
266
|
state: {},
|
|
@@ -289,7 +277,7 @@ const $t = {
|
|
|
289
277
|
description: "Sourced from the id prop."
|
|
290
278
|
}
|
|
291
279
|
}
|
|
292
|
-
},
|
|
280
|
+
}, Ft = {
|
|
293
281
|
id: "workflow-map",
|
|
294
282
|
capabilities: ["navigate"],
|
|
295
283
|
state: {},
|
|
@@ -310,7 +298,7 @@ const $t = {
|
|
|
310
298
|
description: "Stable opaque workflow node id emitted on each step."
|
|
311
299
|
}
|
|
312
300
|
}
|
|
313
|
-
},
|
|
301
|
+
}, $e = {
|
|
314
302
|
id: "workflow-editor",
|
|
315
303
|
capabilities: ["navigate", "expand"],
|
|
316
304
|
state: {
|
|
@@ -375,7 +363,7 @@ function G(e) {
|
|
|
375
363
|
p.has(d.id) || m.push(d);
|
|
376
364
|
return m;
|
|
377
365
|
}
|
|
378
|
-
function
|
|
366
|
+
function V(e, s, r) {
|
|
379
367
|
const o = [...e.nodes, r];
|
|
380
368
|
if (s === null) {
|
|
381
369
|
const a = e.nodes[0];
|
|
@@ -427,10 +415,10 @@ function Oe(e, s, r) {
|
|
|
427
415
|
if (n < 0 || n >= o.length) return e;
|
|
428
416
|
const a = o[i], p = o[n];
|
|
429
417
|
if (!a || !p) return e;
|
|
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 =
|
|
431
|
-
return
|
|
418
|
+
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 = V(m, l, c);
|
|
419
|
+
return V(v, c.id, d);
|
|
432
420
|
}
|
|
433
|
-
const
|
|
421
|
+
const Ve = /* @__PURE__ */ new Set([
|
|
434
422
|
"dateOfBirth",
|
|
435
423
|
"date_of_birth",
|
|
436
424
|
"firstName",
|
|
@@ -450,8 +438,8 @@ const He = /* @__PURE__ */ new Set([
|
|
|
450
438
|
"address",
|
|
451
439
|
"id"
|
|
452
440
|
]);
|
|
453
|
-
function
|
|
454
|
-
return
|
|
441
|
+
function He(e) {
|
|
442
|
+
return Ve.has(e);
|
|
455
443
|
}
|
|
456
444
|
const L = {
|
|
457
445
|
add_delay: {
|
|
@@ -482,27 +470,27 @@ const L = {
|
|
|
482
470
|
labelKey: "workflow.action.webhook",
|
|
483
471
|
iconName: "Globe"
|
|
484
472
|
}
|
|
485
|
-
},
|
|
486
|
-
Clock:
|
|
487
|
-
Mail:
|
|
488
|
-
Smartphone:
|
|
489
|
-
CheckSquare:
|
|
490
|
-
MessageCircle:
|
|
491
|
-
UserCog:
|
|
492
|
-
Globe:
|
|
473
|
+
}, Ue = {
|
|
474
|
+
Clock: fe,
|
|
475
|
+
Mail: ue,
|
|
476
|
+
Smartphone: me,
|
|
477
|
+
CheckSquare: ce,
|
|
478
|
+
MessageCircle: le,
|
|
479
|
+
UserCog: ie,
|
|
480
|
+
Globe: de
|
|
493
481
|
};
|
|
494
482
|
function Y({
|
|
495
483
|
iconName: e,
|
|
496
484
|
className: s
|
|
497
485
|
}) {
|
|
498
|
-
const r =
|
|
486
|
+
const r = Ue[e];
|
|
499
487
|
return /* @__PURE__ */ t(r, { "aria-hidden": "true", className: s ?? "ds:size-4" });
|
|
500
488
|
}
|
|
501
|
-
const
|
|
489
|
+
const Ge = 40, Ye = 60;
|
|
502
490
|
function te(e, s) {
|
|
503
491
|
return e.length <= s ? e : `${e.slice(0, s - 1)}…`;
|
|
504
492
|
}
|
|
505
|
-
function
|
|
493
|
+
function Je(e, s) {
|
|
506
494
|
switch (e.kind) {
|
|
507
495
|
case "add_delay": {
|
|
508
496
|
const r = e.days ?? 0, o = s("workflow.delay.summary", { count: r });
|
|
@@ -510,11 +498,11 @@ function Qe(e, s) {
|
|
|
510
498
|
}
|
|
511
499
|
case "send_email": {
|
|
512
500
|
const r = e.subject ?? "", i = `${s("workflow.action.sendEmail")}: ${r}`;
|
|
513
|
-
return { text: te(i,
|
|
501
|
+
return { text: te(i, Ge), full: i };
|
|
514
502
|
}
|
|
515
503
|
case "send_sms": {
|
|
516
504
|
const r = e.body ?? "";
|
|
517
|
-
return { text: te(r,
|
|
505
|
+
return { text: te(r, Ye), full: r };
|
|
518
506
|
}
|
|
519
507
|
case "create_task": {
|
|
520
508
|
const r = e.title ?? "";
|
|
@@ -533,7 +521,7 @@ const se = [
|
|
|
533
521
|
"ds:w-full",
|
|
534
522
|
"ds:text-start",
|
|
535
523
|
"ds:gap-[var(--spacing-sm)]"
|
|
536
|
-
].join(" "),
|
|
524
|
+
].join(" "), $ = [
|
|
537
525
|
"ds:block",
|
|
538
526
|
"ds:self-start",
|
|
539
527
|
"ds:h-[var(--spacing-md)]",
|
|
@@ -541,7 +529,7 @@ const se = [
|
|
|
541
529
|
"ds:border-inline-start-[var(--border-width-hairline)]",
|
|
542
530
|
"ds:border-solid",
|
|
543
531
|
"ds:border-[color:var(--border)]"
|
|
544
|
-
].join(" "),
|
|
532
|
+
].join(" "), Qe = [
|
|
545
533
|
"ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
|
|
546
534
|
"ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
|
|
547
535
|
"ds:rounded-[var(--radius-full)]",
|
|
@@ -556,21 +544,21 @@ const se = [
|
|
|
556
544
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
557
545
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
558
546
|
"ds:disabled:opacity-50 ds:disabled:cursor-not-allowed"
|
|
559
|
-
].join(" "),
|
|
547
|
+
].join(" "), Xe = [
|
|
560
548
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
561
549
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
562
550
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
563
551
|
"ds:rounded-[var(--radius-lg)]"
|
|
564
|
-
].join(" "),
|
|
552
|
+
].join(" "), Ze = Object.keys(
|
|
565
553
|
L
|
|
566
554
|
);
|
|
567
555
|
let re = 0;
|
|
568
|
-
function
|
|
556
|
+
function et() {
|
|
569
557
|
re += 1;
|
|
570
558
|
const e = Math.random().toString(36).slice(2, 8);
|
|
571
559
|
return `wf-node-${Date.now()}-${re}-${e}`;
|
|
572
560
|
}
|
|
573
|
-
function
|
|
561
|
+
function tt(e) {
|
|
574
562
|
switch (e) {
|
|
575
563
|
case "add_delay":
|
|
576
564
|
return { kind: "add_delay", days: 1 };
|
|
@@ -593,13 +581,13 @@ function st(e) {
|
|
|
593
581
|
return { kind: "webhook", url: "", method: "POST" };
|
|
594
582
|
}
|
|
595
583
|
}
|
|
596
|
-
function
|
|
597
|
-
const s =
|
|
584
|
+
function st(e = 0) {
|
|
585
|
+
const s = z(e), r = F((o) => {
|
|
598
586
|
s.current = o;
|
|
599
587
|
}, []);
|
|
600
588
|
return [s, r];
|
|
601
589
|
}
|
|
602
|
-
function
|
|
590
|
+
function rt({
|
|
603
591
|
node: e,
|
|
604
592
|
position: s,
|
|
605
593
|
total: r,
|
|
@@ -609,7 +597,7 @@ function ot({
|
|
|
609
597
|
onMove: a,
|
|
610
598
|
registerRef: p
|
|
611
599
|
}) {
|
|
612
|
-
const { t: m } =
|
|
600
|
+
const { t: m } = M(), c = L[e.type], d = z(null), [l, v] = st(0), h = F(
|
|
613
601
|
(g) => {
|
|
614
602
|
var P, R;
|
|
615
603
|
const _ = (P = d.current) == null ? void 0 : P.querySelectorAll(
|
|
@@ -624,10 +612,10 @@ function ot({
|
|
|
624
612
|
g.target === g.currentTarget && (g.key === "ArrowRight" || g.key === "ArrowDown") && (g.preventDefault(), h(0));
|
|
625
613
|
}, x = (g) => {
|
|
626
614
|
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));
|
|
627
|
-
}, w =
|
|
615
|
+
}, w = Je(e.settings, m), k = m(c.labelKey), I = s > 0, T = s < r - 1, K = m("workflow.editor.position", {
|
|
628
616
|
current: s + 1,
|
|
629
617
|
total: r
|
|
630
|
-
}),
|
|
618
|
+
}), E = m("workflow.editor.nodeAriaLabel", {
|
|
631
619
|
type: k,
|
|
632
620
|
current: s + 1,
|
|
633
621
|
total: r
|
|
@@ -640,9 +628,9 @@ function ot({
|
|
|
640
628
|
ref: (g) => p(e.id, g),
|
|
641
629
|
tabIndex: o ? -1 : 0,
|
|
642
630
|
onKeyDown: y,
|
|
643
|
-
"aria-label":
|
|
631
|
+
"aria-label": E,
|
|
644
632
|
"data-node-id": e.id,
|
|
645
|
-
className:
|
|
633
|
+
className: Xe,
|
|
646
634
|
children: /* @__PURE__ */ u(C, { variant: "outlined", children: [
|
|
647
635
|
/* @__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: [
|
|
648
636
|
/* @__PURE__ */ t(
|
|
@@ -665,7 +653,7 @@ function ot({
|
|
|
665
653
|
className: "ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-xs)] ds:ms-auto",
|
|
666
654
|
children: [
|
|
667
655
|
i ? /* @__PURE__ */ t(
|
|
668
|
-
|
|
656
|
+
S,
|
|
669
657
|
{
|
|
670
658
|
"data-wf-control": "edit",
|
|
671
659
|
icon: /* @__PURE__ */ t(U, {}),
|
|
@@ -678,10 +666,10 @@ function ot({
|
|
|
678
666
|
}
|
|
679
667
|
) : null,
|
|
680
668
|
/* @__PURE__ */ t(
|
|
681
|
-
|
|
669
|
+
S,
|
|
682
670
|
{
|
|
683
671
|
"data-wf-control": "up",
|
|
684
|
-
icon: /* @__PURE__ */ t(
|
|
672
|
+
icon: /* @__PURE__ */ t(Se, {}),
|
|
685
673
|
size: "sm",
|
|
686
674
|
intent: "ghost",
|
|
687
675
|
disabled: o || !I,
|
|
@@ -691,10 +679,10 @@ function ot({
|
|
|
691
679
|
}
|
|
692
680
|
),
|
|
693
681
|
/* @__PURE__ */ t(
|
|
694
|
-
|
|
682
|
+
S,
|
|
695
683
|
{
|
|
696
684
|
"data-wf-control": "down",
|
|
697
|
-
icon: /* @__PURE__ */ t(
|
|
685
|
+
icon: /* @__PURE__ */ t(Me, {}),
|
|
698
686
|
size: "sm",
|
|
699
687
|
intent: "ghost",
|
|
700
688
|
disabled: o || !T,
|
|
@@ -704,10 +692,10 @@ function ot({
|
|
|
704
692
|
}
|
|
705
693
|
),
|
|
706
694
|
n ? /* @__PURE__ */ t(
|
|
707
|
-
|
|
695
|
+
S,
|
|
708
696
|
{
|
|
709
697
|
"data-wf-control": "delete",
|
|
710
|
-
icon: /* @__PURE__ */ t(
|
|
698
|
+
icon: /* @__PURE__ */ t(ae, {}),
|
|
711
699
|
size: "sm",
|
|
712
700
|
intent: "destructive",
|
|
713
701
|
disabled: o,
|
|
@@ -728,7 +716,7 @@ function ot({
|
|
|
728
716
|
children: w.text
|
|
729
717
|
}
|
|
730
718
|
) }) : null,
|
|
731
|
-
e.settings.kind === "update_patient_field" &&
|
|
719
|
+
e.settings.kind === "update_patient_field" && He(e.settings.fieldId) ? /* @__PURE__ */ t(C.Body, { className: "ds:pt-0", children: /* @__PURE__ */ t(O, { variant: "error", "data-testid": "workflow-editor-invalid-field", children: m("workflow.editor.invalidField") }) }) : null
|
|
732
720
|
] })
|
|
733
721
|
}
|
|
734
722
|
)
|
|
@@ -741,7 +729,7 @@ function oe({
|
|
|
741
729
|
label: o,
|
|
742
730
|
compact: i = !0
|
|
743
731
|
}) {
|
|
744
|
-
const { t: n } =
|
|
732
|
+
const { t: n } = M();
|
|
745
733
|
return /* @__PURE__ */ u(N.Root, { children: [
|
|
746
734
|
/* @__PURE__ */ t(N.Trigger, { asChild: !0, children: /* @__PURE__ */ u(
|
|
747
735
|
"button",
|
|
@@ -749,9 +737,9 @@ function oe({
|
|
|
749
737
|
type: "button",
|
|
750
738
|
disabled: r,
|
|
751
739
|
"aria-label": o,
|
|
752
|
-
className:
|
|
740
|
+
className: Qe,
|
|
753
741
|
children: [
|
|
754
|
-
/* @__PURE__ */ t(
|
|
742
|
+
/* @__PURE__ */ t(ne, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
755
743
|
i ? null : /* @__PURE__ */ t("span", { className: "ds:text-[length:var(--font-size-sm)]", children: o })
|
|
756
744
|
]
|
|
757
745
|
}
|
|
@@ -773,15 +761,15 @@ function oe({
|
|
|
773
761
|
] })
|
|
774
762
|
] });
|
|
775
763
|
}
|
|
776
|
-
function
|
|
777
|
-
const { t: o } =
|
|
764
|
+
function ot({ criteria: e, onEdit: s, disabled: r }) {
|
|
765
|
+
const { t: o } = M(), i = (e == null ? void 0 : e.ruleCount) ?? 0, n = i > 0 ? o("workflow.editor.criteriaCount", { count: i }) : o("workflow.editor.noCriteria");
|
|
778
766
|
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: [
|
|
779
767
|
/* @__PURE__ */ u("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col", children: [
|
|
780
768
|
/* @__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") }),
|
|
781
769
|
/* @__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 })
|
|
782
770
|
] }),
|
|
783
771
|
s ? /* @__PURE__ */ t(
|
|
784
|
-
|
|
772
|
+
S,
|
|
785
773
|
{
|
|
786
774
|
icon: /* @__PURE__ */ t(U, {}),
|
|
787
775
|
size: "sm",
|
|
@@ -793,7 +781,7 @@ function at({ criteria: e, onEdit: s, disabled: r }) {
|
|
|
793
781
|
) : null
|
|
794
782
|
] }) }) });
|
|
795
783
|
}
|
|
796
|
-
const
|
|
784
|
+
const at = H(
|
|
797
785
|
function({
|
|
798
786
|
graph: s,
|
|
799
787
|
onChange: r,
|
|
@@ -805,18 +793,18 @@ const nt = H(
|
|
|
805
793
|
onDeleteNode: m,
|
|
806
794
|
className: c
|
|
807
795
|
}, d) {
|
|
808
|
-
const { t: l } =
|
|
796
|
+
const { t: l } = M(), v = a ?? Ze, h = q(() => G(s), [s]), y = z(/* @__PURE__ */ new Map()), x = z(null), w = F(
|
|
809
797
|
(f) => {
|
|
810
798
|
n || r(f);
|
|
811
799
|
},
|
|
812
800
|
[n, r]
|
|
813
|
-
), k =
|
|
801
|
+
), k = F((f, b) => {
|
|
814
802
|
b ? y.current.set(f, b) : y.current.delete(f);
|
|
815
|
-
}, []), [I, T] = ge(null), K =
|
|
803
|
+
}, []), [I, T] = ge(null), K = z(null);
|
|
816
804
|
K.current = I;
|
|
817
|
-
const
|
|
818
|
-
be(d, () =>
|
|
819
|
-
const g =
|
|
805
|
+
const E = z(null);
|
|
806
|
+
be(d, () => E.current, []);
|
|
807
|
+
const g = q(
|
|
820
808
|
() => ({
|
|
821
809
|
getTotalSteps: () => h.length,
|
|
822
810
|
getCurrentStep: () => K.current,
|
|
@@ -827,7 +815,7 @@ const nt = H(
|
|
|
827
815
|
}),
|
|
828
816
|
[h.length]
|
|
829
817
|
);
|
|
830
|
-
Ce(
|
|
818
|
+
Ce($e, g, void 0), ke(() => {
|
|
831
819
|
const f = x.current;
|
|
832
820
|
if (!f) return;
|
|
833
821
|
const b = y.current.get(f);
|
|
@@ -836,44 +824,44 @@ const nt = H(
|
|
|
836
824
|
const _ = (f, b) => {
|
|
837
825
|
if (n) return;
|
|
838
826
|
const W = {
|
|
839
|
-
id:
|
|
827
|
+
id: et(),
|
|
840
828
|
type: b,
|
|
841
|
-
settings:
|
|
829
|
+
settings: tt(b)
|
|
842
830
|
};
|
|
843
|
-
x.current = W.id, w(
|
|
831
|
+
x.current = W.id, w(V(s, f, W));
|
|
844
832
|
}, B = (f, b) => {
|
|
845
833
|
n || (x.current = f, w(Oe(s, f, b)));
|
|
846
834
|
}, P = (f) => {
|
|
847
835
|
n || !p || p(f);
|
|
848
836
|
}, R = (f) => {
|
|
849
837
|
n || !m || m(f);
|
|
850
|
-
}, J = () => n ? /* @__PURE__ */ t(
|
|
838
|
+
}, J = () => n ? /* @__PURE__ */ t(O, { variant: "warning", children: /* @__PURE__ */ t(O.Title, { as: "p", children: l("workflow.editor.activeLock") }) }) : null, Q = () => o || i ? /* @__PURE__ */ u(ve, { children: [
|
|
851
839
|
/* @__PURE__ */ t(
|
|
852
|
-
|
|
840
|
+
ot,
|
|
853
841
|
{
|
|
854
842
|
criteria: o,
|
|
855
843
|
onEdit: i,
|
|
856
844
|
disabled: n
|
|
857
845
|
}
|
|
858
846
|
),
|
|
859
|
-
/* @__PURE__ */ t("span", { "aria-hidden": "true", className:
|
|
847
|
+
/* @__PURE__ */ t("span", { "aria-hidden": "true", className: $ })
|
|
860
848
|
] }) : null, X = h.length;
|
|
861
849
|
return X === 0 ? /* @__PURE__ */ u(
|
|
862
850
|
"div",
|
|
863
851
|
{
|
|
864
|
-
ref:
|
|
852
|
+
ref: E,
|
|
865
853
|
className: [se, c].filter(Boolean).join(" "),
|
|
866
854
|
children: [
|
|
867
855
|
J(),
|
|
868
856
|
Q(),
|
|
869
857
|
/* @__PURE__ */ u(
|
|
870
|
-
|
|
858
|
+
j,
|
|
871
859
|
{
|
|
872
860
|
variant: "first-use",
|
|
873
861
|
title: l("workflow.editor.addFirstAction"),
|
|
874
862
|
description: l("workflow.editor.empty"),
|
|
875
863
|
children: [
|
|
876
|
-
/* @__PURE__ */ t(
|
|
864
|
+
/* @__PURE__ */ t(j.Illustration, { children: /* @__PURE__ */ u(
|
|
877
865
|
"svg",
|
|
878
866
|
{
|
|
879
867
|
viewBox: "0 0 120 120",
|
|
@@ -917,11 +905,11 @@ const nt = H(
|
|
|
917
905
|
]
|
|
918
906
|
}
|
|
919
907
|
) }),
|
|
920
|
-
/* @__PURE__ */ t(
|
|
921
|
-
/* @__PURE__ */ t(
|
|
922
|
-
/* @__PURE__ */ t(
|
|
908
|
+
/* @__PURE__ */ t(j.Title, { children: l("workflow.editor.addFirstAction") }),
|
|
909
|
+
/* @__PURE__ */ t(j.Description, { children: l("workflow.editor.empty") }),
|
|
910
|
+
/* @__PURE__ */ t(j.Actions, { children: /* @__PURE__ */ u(N.Root, { children: [
|
|
923
911
|
/* @__PURE__ */ t(N.Trigger, { asChild: !0, children: /* @__PURE__ */ u(_e, { intent: "primary", disabled: n, children: [
|
|
924
|
-
/* @__PURE__ */ t(
|
|
912
|
+
/* @__PURE__ */ t(ne, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
925
913
|
/* @__PURE__ */ t("span", { children: l("workflow.editor.addFirstAction") })
|
|
926
914
|
] }) }),
|
|
927
915
|
/* @__PURE__ */ u(N.Content, { align: "center", sideOffset: 6, children: [
|
|
@@ -948,7 +936,7 @@ const nt = H(
|
|
|
948
936
|
) : /* @__PURE__ */ u(
|
|
949
937
|
"div",
|
|
950
938
|
{
|
|
951
|
-
ref:
|
|
939
|
+
ref: E,
|
|
952
940
|
"data-component": "workflow-editor",
|
|
953
941
|
className: [se, c].filter(Boolean).join(" "),
|
|
954
942
|
children: [
|
|
@@ -970,9 +958,9 @@ const nt = H(
|
|
|
970
958
|
"aria-label": l("workflow.editor.pipeline"),
|
|
971
959
|
className: "ds:list-none ds:m-0 ds:p-0 ds:flex ds:flex-col",
|
|
972
960
|
children: h.map((f, b) => /* @__PURE__ */ u("li", { className: "ds:list-none ds:flex ds:flex-col", children: [
|
|
973
|
-
/* @__PURE__ */ t("span", { "aria-hidden": "true", className:
|
|
961
|
+
/* @__PURE__ */ t("span", { "aria-hidden": "true", className: $ }),
|
|
974
962
|
/* @__PURE__ */ t(
|
|
975
|
-
|
|
963
|
+
rt,
|
|
976
964
|
{
|
|
977
965
|
node: f,
|
|
978
966
|
position: b,
|
|
@@ -984,7 +972,7 @@ const nt = H(
|
|
|
984
972
|
registerRef: k
|
|
985
973
|
}
|
|
986
974
|
),
|
|
987
|
-
/* @__PURE__ */ t("span", { "aria-hidden": "true", className:
|
|
975
|
+
/* @__PURE__ */ t("span", { "aria-hidden": "true", className: $ }),
|
|
988
976
|
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
989
977
|
oe,
|
|
990
978
|
{
|
|
@@ -1002,16 +990,16 @@ const nt = H(
|
|
|
1002
990
|
);
|
|
1003
991
|
}
|
|
1004
992
|
);
|
|
1005
|
-
|
|
1006
|
-
const
|
|
1007
|
-
Clock:
|
|
1008
|
-
Mail:
|
|
1009
|
-
Smartphone:
|
|
1010
|
-
CheckSquare:
|
|
1011
|
-
MessageCircle:
|
|
1012
|
-
UserCog:
|
|
1013
|
-
Globe:
|
|
1014
|
-
},
|
|
993
|
+
at.displayName = "WorkflowEditor";
|
|
994
|
+
const nt = {
|
|
995
|
+
Clock: fe,
|
|
996
|
+
Mail: ue,
|
|
997
|
+
Smartphone: me,
|
|
998
|
+
CheckSquare: ce,
|
|
999
|
+
MessageCircle: le,
|
|
1000
|
+
UserCog: ie,
|
|
1001
|
+
Globe: de
|
|
1002
|
+
}, dt = D(
|
|
1015
1003
|
// The map is a list of steps — never a list of meaningful controls.
|
|
1016
1004
|
// Layout via logical properties only; connectors are sibling spacers
|
|
1017
1005
|
// styled with border-inline-start / border-block-end (see node/spacer).
|
|
@@ -1134,7 +1122,7 @@ const dt = {
|
|
|
1134
1122
|
]
|
|
1135
1123
|
}
|
|
1136
1124
|
);
|
|
1137
|
-
function
|
|
1125
|
+
function it(e) {
|
|
1138
1126
|
switch (e.kind) {
|
|
1139
1127
|
case "add_delay":
|
|
1140
1128
|
return typeof e.days == "number" && e.days > 0 ? {
|
|
@@ -1163,11 +1151,11 @@ function lt(e) {
|
|
|
1163
1151
|
return;
|
|
1164
1152
|
}
|
|
1165
1153
|
}
|
|
1166
|
-
function
|
|
1154
|
+
function lt(e, s) {
|
|
1167
1155
|
if (e !== void 0)
|
|
1168
1156
|
return typeof e == "string" ? e : s(e.key, e.options);
|
|
1169
1157
|
}
|
|
1170
|
-
const
|
|
1158
|
+
const ct = H(
|
|
1171
1159
|
function({
|
|
1172
1160
|
graph: s,
|
|
1173
1161
|
activeNodeId: r,
|
|
@@ -1179,7 +1167,7 @@ const ut = H(
|
|
|
1179
1167
|
"aria-label": m,
|
|
1180
1168
|
...c
|
|
1181
1169
|
}, d) {
|
|
1182
|
-
const { t: l } =
|
|
1170
|
+
const { t: l } = M(), v = q(() => G(s), [s]), h = q(
|
|
1183
1171
|
() => r ? v.findIndex((w) => w.id === r) : -1,
|
|
1184
1172
|
[v, r]
|
|
1185
1173
|
), y = m ?? l("workflow.map.label", { count: v.length }), x = (w) => h === -1 ? "neutral" : w === h ? "current" : w < h ? "completed" : "pending";
|
|
@@ -1193,11 +1181,11 @@ const ut = H(
|
|
|
1193
1181
|
"aria-label": y,
|
|
1194
1182
|
"data-component": "workflow-map",
|
|
1195
1183
|
"data-component-id": c.id,
|
|
1196
|
-
className:
|
|
1184
|
+
className: dt({ orientation: n, compact: a, className: p }),
|
|
1197
1185
|
...c,
|
|
1198
1186
|
children: [
|
|
1199
1187
|
i ? /* @__PURE__ */ t(
|
|
1200
|
-
|
|
1188
|
+
ft,
|
|
1201
1189
|
{
|
|
1202
1190
|
orientation: n,
|
|
1203
1191
|
compact: a,
|
|
@@ -1207,7 +1195,7 @@ const ut = H(
|
|
|
1207
1195
|
v.map((w, k) => {
|
|
1208
1196
|
const I = x(k), T = k === v.length - 1;
|
|
1209
1197
|
return /* @__PURE__ */ t(
|
|
1210
|
-
|
|
1198
|
+
ut,
|
|
1211
1199
|
{
|
|
1212
1200
|
node: w,
|
|
1213
1201
|
state: I,
|
|
@@ -1225,8 +1213,8 @@ const ut = H(
|
|
|
1225
1213
|
);
|
|
1226
1214
|
}
|
|
1227
1215
|
);
|
|
1228
|
-
|
|
1229
|
-
function
|
|
1216
|
+
ct.displayName = "WorkflowMap";
|
|
1217
|
+
function ut({
|
|
1230
1218
|
node: e,
|
|
1231
1219
|
state: s,
|
|
1232
1220
|
orientation: r,
|
|
@@ -1234,7 +1222,7 @@ function ft({
|
|
|
1234
1222
|
isLast: i,
|
|
1235
1223
|
onNodeClick: n
|
|
1236
1224
|
}) {
|
|
1237
|
-
const { t: a } =
|
|
1225
|
+
const { t: a } = M(), p = L[e.type], m = nt[p.iconName], c = a(p.labelKey), d = lt(it(e.settings), a), l = typeof n == "function", v = s === "current", h = s === "completed", y = (k) => {
|
|
1238
1226
|
l && (k.preventDefault(), n == null || n(e.id));
|
|
1239
1227
|
}, x = (k) => {
|
|
1240
1228
|
l && (k.key === "Enter" || k.key === " ") && (k.preventDefault(), n == null || n(e.id));
|
|
@@ -1307,12 +1295,12 @@ function ft({
|
|
|
1307
1295
|
] })
|
|
1308
1296
|
);
|
|
1309
1297
|
}
|
|
1310
|
-
function
|
|
1298
|
+
function ft({
|
|
1311
1299
|
orientation: e,
|
|
1312
1300
|
compact: s,
|
|
1313
1301
|
criteria: r
|
|
1314
1302
|
}) {
|
|
1315
|
-
const { t: o } =
|
|
1303
|
+
const { t: o } = M();
|
|
1316
1304
|
return /* @__PURE__ */ u("li", { className: pe({ orientation: e }), children: [
|
|
1317
1305
|
/* @__PURE__ */ u(
|
|
1318
1306
|
"div",
|
|
@@ -1352,18 +1340,18 @@ function mt({
|
|
|
1352
1340
|
] });
|
|
1353
1341
|
}
|
|
1354
1342
|
export {
|
|
1355
|
-
|
|
1343
|
+
Ve as C,
|
|
1356
1344
|
Fe as W,
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1345
|
+
at as a,
|
|
1346
|
+
ct as b,
|
|
1347
|
+
V as c,
|
|
1348
|
+
qt as d,
|
|
1349
|
+
$e as e,
|
|
1350
|
+
Ft as f,
|
|
1351
|
+
He as i,
|
|
1364
1352
|
G as l,
|
|
1365
1353
|
Oe as m,
|
|
1366
1354
|
ee as r,
|
|
1367
1355
|
L as w
|
|
1368
1356
|
};
|
|
1369
|
-
//# sourceMappingURL=workflow-map-
|
|
1357
|
+
//# sourceMappingURL=workflow-map-Bt4Of5dT.js.map
|