@alfadocs/ui-kit 1.137.0 → 1.139.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{address-fields-DvSWdeR0.js → address-fields-Bh9JZJHZ.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-CVNeusoW.js → ai-prompt-input-B2QFwuJ1.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-Dr2V1Rtf.js → anamnesis-summary-rows-BgfBnjp0.js} +4 -4
- package/dist/_chunks/{appointment-card-BT1cMZIX.js → appointment-card-CaxFXtSn.js} +196 -184
- package/dist/_chunks/{appointment-timeline-Dy4YQJ17.js → appointment-timeline-BEwgbYyG.js} +113 -110
- package/dist/_chunks/{appointment-tray-B3gSHL1j.js → appointment-tray-DPpeR9JT.js} +8 -8
- package/dist/_chunks/{audio-recorder-BOF5YYoC.js → audio-recorder-6dUq8I38.js} +2 -2
- package/dist/_chunks/autocomplete-HZNW7_Pa.js +642 -0
- package/dist/_chunks/{balance-badge-cell-BSB02Bwo.js → balance-badge-cell-CRrIv2hy.js} +4 -4
- package/dist/_chunks/{bill-line-table-By-YL2ms.js → bill-line-table-DCqxhode.js} +3 -3
- package/dist/_chunks/{bishop-score-DWGESRP9.js → bishop-score-M7Fi-ykx.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-D0n_bVsT.js → calendar-appointment-editor-dialog-GdnaPIOV.js} +537 -536
- package/dist/_chunks/{calendar-editor-discard-host-1UfmMOEb.js → calendar-editor-discard-host-BcMEgVEq.js} +3 -3
- package/dist/_chunks/{calendar-waiting-list-panel-Ckd6tSeu.js → calendar-waiting-list-panel-CkZBAv_E.js} +4 -4
- package/dist/_chunks/{calendar-workspace.model-DrOoxY1b.js → calendar-workspace.model-B8yPwuBv.js} +2 -2
- package/dist/_chunks/{calendar.sheets-Datc0-IT.js → calendar.sheets-B0jP2Yt0.js} +113 -112
- package/dist/_chunks/{calls-panel-BIfatK90.js → calls-panel-CtxJAzkJ.js} +2 -2
- package/dist/_chunks/{city-input-DXipzTfZ.js → city-input-DARVDJhH.js} +2 -2
- package/dist/_chunks/{combobox-BBCVQS-S.js → combobox-BYl6mY4c.js} +12 -13
- package/dist/_chunks/{communications-panel-SQ-55e3V.js → communications-panel-DBWM9II9.js} +2 -2
- package/dist/_chunks/{country-select-C2GdvRtS.js → country-select-BPISkYVU.js} +3 -3
- package/dist/_chunks/{data-grid-CxKz8flO.js → data-grid-bQ6iFm10.js} +15 -7
- package/dist/_chunks/{data-table-_tgj0C_T.js → data-table-CnLfOwxg.js} +2 -2
- package/dist/_chunks/{default-tabs-oDWQzbN7.js → default-tabs-Dm_vk6hd.js} +3 -3
- package/dist/_chunks/{document-preview-CirR3C_m.js → document-preview-FTCHXYhk.js} +2 -2
- package/dist/_chunks/{face-scheme-D_Y1StPl.js → face-scheme-Bxt7ZnJn.js} +2 -2
- package/dist/_chunks/{file-manager-CEi4z2i0.js → file-manager-Bsccb8Jj.js} +2 -2
- package/dist/_chunks/{forgot-password-form-YvI9vX-G.js → forgot-password-form-B4ufmBFn.js} +5 -4
- package/dist/_chunks/{gestational-age-calculator-CHbpC4vL.js → gestational-age-calculator-DXSPWG8u.js} +2 -2
- package/dist/_chunks/{heatmap-_546qI2V.js → heatmap-CFPaEKD_.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-CQI9MUl6.js → invoice-upload-list-Dz3CXHPP.js} +3 -3
- package/dist/_chunks/{kit-extensions-BNBf4m8O.js → kit-extensions-BB_ksnVl.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-Xx5T8u5Q.js → link-cell-renderer-CSA0KKPe.js} +5 -5
- package/dist/_chunks/{login-dev-card-Dz3ezx1o.js → login-dev-card-oRh9h7N2.js} +18 -17
- package/dist/_chunks/medication-I6QvOq6k.js +21 -0
- package/dist/_chunks/medication-line-CHdlh-F7.js +222 -0
- package/dist/_chunks/medication-search-DoEDakoM.js +380 -0
- package/dist/_chunks/{multi-select-Df3R8lv_.js → multi-select-DeMiHm8T.js} +4 -5
- package/dist/_chunks/{muscle-scheme-D_rSyGDj.js → muscle-scheme-BB2eBfww.js} +2 -2
- package/dist/_chunks/normalize-diacritics-DhJjQ3Bp.js +7 -0
- package/dist/_chunks/{notes-panel-DsEKNtsw.js → notes-panel-CnmQqhwq.js} +2 -2
- package/dist/_chunks/{optical-prescription-DaSbsh4p.js → optical-prescription-C4jpDFOE.js} +2 -2
- package/dist/_chunks/{option-row-Dc7BrbK8.js → option-row-DpCnuUqo.js} +25 -12
- package/dist/_chunks/{patient-account-settings-COybehKx.js → patient-account-settings-DfEPHmCh.js} +3 -3
- package/dist/_chunks/{patient-check-in-resume-DZnyYDKH.js → patient-check-in-resume-TWs8CPQr.js} +5 -5
- package/dist/_chunks/{patient-details-Dv7EiTCo.js → patient-details-DQTxSWY4.js} +2 -2
- package/dist/_chunks/{patient-field-row-DuHWGlLz.js → patient-field-row-CXuWQeQJ.js} +6 -6
- package/dist/_chunks/patient-picker-CQNsqYn2.js +163 -0
- package/dist/_chunks/{patient-search-DBvLFArV.js → patient-search-aTFd7p9s.js} +2 -2
- package/dist/_chunks/{patient-summary-card-D-cDzOim.js → patient-summary-card-j5u7c5Us.js} +2 -2
- package/dist/_chunks/{phone-input-BL8Sj6OG.js → phone-input-DRKcJUi4.js} +2 -2
- package/dist/_chunks/{portal-details-DdzvroYP.js → portal-details-VfeOI4PB.js} +3 -3
- package/dist/_chunks/{portal-documents-CNmoYWFc.js → portal-documents-hGHlwmbv.js} +3 -3
- package/dist/_chunks/{portal-parts-Br8wuala.js → portal-parts-C99CreYO.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-lJbzai73.js → pregnancy-dating-C-3NLI6K.js} +2 -2
- package/dist/_chunks/prescription-history-748qDVwZ.js +1544 -0
- package/dist/_chunks/print-sheet-CSeqkM3_.js +318 -0
- package/dist/_chunks/{province-select-CTM8A9SM.js → province-select-D-iY9bQG.js} +3 -3
- package/dist/_chunks/{registration-form-CuLiTA52.js → registration-form-Cs9o6e5q.js} +7 -6
- package/dist/_chunks/{reserved.agent-CabZHFJC.js → reserved.agent-L2ElYPuj.js} +7 -7
- package/dist/_chunks/{reset-password-form-D_TePSM1.js → reset-password-form-DwtSNhnA.js} +18 -17
- package/dist/_chunks/{rich-text-editor-C48omVjq.js → rich-text-editor-DFsH5RAj.js} +2 -2
- package/dist/_chunks/save-Dn8uje3f.js +22 -0
- package/dist/_chunks/{search-bar-CQ9_V3EJ.js → search-bar-k1mS5yZl.js} +2 -2
- package/dist/_chunks/{select-CIXKyUMw.js → select-Bm8s3q-X.js} +16 -17
- package/dist/_chunks/{send-registration-link-form-BjkXr0TD.js → send-registration-link-form-C1vw6H1M.js} +6 -5
- package/dist/_chunks/{signature-request-vJDSHZld.js → signature-request-D3sLLOM6.js} +2 -2
- package/dist/_chunks/sync-tray-BhnkgXKK.js +567 -0
- package/dist/_chunks/{tabs-Czkmw5ou.js → tabs-BXr5XeGq.js} +2 -2
- package/dist/_chunks/{task-editor-wKbFbGqW.js → task-editor-DDVDPKJf.js} +26 -25
- package/dist/_chunks/{tasks-panel-DbtJS4QI.js → tasks-panel-BHXaPNOZ.js} +2 -2
- package/dist/_chunks/{toolbar-DjG-cpD_.js → toolbar-Dz_hAUIZ.js} +2 -2
- package/dist/_chunks/{unit-converter-CUAUTu2B.js → unit-converter-CBy7S4Tl.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-jGkJalX8.js → use-appointment-details-read-CBSpX4DI.js} +2 -2
- package/dist/_chunks/use-error-summary-CecJZo6w.js +32 -0
- package/dist/_chunks/use-registration-submit-CVukOAQk.js +84 -0
- package/dist/_chunks/{variables-menu-DQl8H4Gh.js → variables-menu-C4NcClKi.js} +2 -2
- package/dist/_chunks/{voice-control-panel-Cp4vs1iy.js → voice-control-panel-Dc_NFH2R.js} +2 -2
- package/dist/agent-catalog.json +456 -2
- package/dist/agent-i18n/en.json +53 -0
- package/dist/appointment-editor-panel/index.js +2 -2
- package/dist/booking-tools-data/index.js +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/calendar-action-buttons/index.js +1 -1
- package/dist/components/_shared/medication.d.ts +28 -0
- package/dist/components/_shared/normalize-diacritics.d.ts +5 -0
- package/dist/components/_shared/patient-picker.d.ts +7 -0
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +5 -2
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +6 -0
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/autocomplete.d.ts +50 -0
- package/dist/components/autocomplete/index.d.ts +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calls-panel/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/communications-panel/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +5 -0
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/medication-line/index.d.ts +6 -0
- package/dist/components/medication-line/index.js +7 -0
- package/dist/components/medication-line/medication-line.agent.d.ts +14 -0
- package/dist/components/medication-line/medication-line.d.ts +40 -0
- package/dist/components/medication-search/index.d.ts +6 -0
- package/dist/components/medication-search/index.js +10 -0
- package/dist/components/medication-search/medication-search.agent.d.ts +15 -0
- package/dist/components/medication-search/medication-search.d.ts +49 -0
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/print-sheet/index.d.ts +5 -0
- package/dist/components/print-sheet/index.js +6 -0
- package/dist/components/print-sheet/print-isolation.d.ts +17 -0
- package/dist/components/print-sheet/print-sheet.agent.d.ts +19 -0
- package/dist/components/print-sheet/print-sheet.d.ts +54 -0
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/sync-tray/index.d.ts +4 -0
- package/dist/components/sync-tray/index.js +7 -0
- package/dist/components/sync-tray/sync-tray.agent.d.ts +15 -0
- package/dist/components/sync-tray/sync-tray.d.ts +77 -0
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/variables-menu/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/host-compat.css +13 -1
- package/dist/host-legacy.css +16 -0
- package/dist/i18n/locales/ar.d.ts +134 -1
- package/dist/i18n/locales/ar.js +134 -1
- package/dist/i18n/locales/de.d.ts +134 -1
- package/dist/i18n/locales/de.js +134 -1
- package/dist/i18n/locales/el.d.ts +134 -1
- package/dist/i18n/locales/el.js +134 -1
- package/dist/i18n/locales/en.d.ts +134 -1
- package/dist/i18n/locales/en.js +134 -1
- package/dist/i18n/locales/es.d.ts +134 -1
- package/dist/i18n/locales/es.js +134 -1
- package/dist/i18n/locales/fr.d.ts +134 -1
- package/dist/i18n/locales/fr.js +134 -1
- package/dist/i18n/locales/hi.d.ts +134 -1
- package/dist/i18n/locales/hi.js +134 -1
- package/dist/i18n/locales/it.d.ts +134 -1
- package/dist/i18n/locales/it.js +134 -1
- package/dist/i18n/locales/ja.d.ts +134 -1
- package/dist/i18n/locales/ja.js +134 -1
- package/dist/i18n/locales/nl.d.ts +134 -1
- package/dist/i18n/locales/nl.js +134 -1
- package/dist/i18n/locales/pl.d.ts +134 -1
- package/dist/i18n/locales/pl.js +134 -1
- package/dist/i18n/locales/pt.d.ts +134 -1
- package/dist/i18n/locales/pt.js +134 -1
- package/dist/i18n/locales/ro.d.ts +134 -1
- package/dist/i18n/locales/ro.js +134 -1
- package/dist/i18n/locales/ru.d.ts +134 -1
- package/dist/i18n/locales/ru.js +134 -1
- package/dist/i18n/locales/sq.d.ts +134 -1
- package/dist/i18n/locales/sq.js +134 -1
- package/dist/i18n/locales/sv.d.ts +134 -1
- package/dist/i18n/locales/sv.js +134 -1
- package/dist/i18n/locales/tr.d.ts +134 -1
- package/dist/i18n/locales/tr.js +134 -1
- package/dist/i18n/locales/zh.d.ts +134 -1
- package/dist/i18n/locales/zh.js +134 -1
- package/dist/index.js +1004 -976
- package/dist/locales/ar.json +134 -1
- package/dist/locales/de.json +134 -1
- package/dist/locales/el.json +134 -1
- package/dist/locales/en.json +134 -1
- package/dist/locales/es.json +134 -1
- package/dist/locales/fr.json +134 -1
- package/dist/locales/hi.json +134 -1
- package/dist/locales/it.json +134 -1
- package/dist/locales/ja.json +134 -1
- package/dist/locales/nl.json +134 -1
- package/dist/locales/pl.json +134 -1
- package/dist/locales/pt.json +134 -1
- package/dist/locales/ro.json +134 -1
- package/dist/locales/ru.json +134 -1
- package/dist/locales/sq.json +134 -1
- package/dist/locales/sv.json +134 -1
- package/dist/locales/tr.json +134 -1
- package/dist/locales/zh.json +134 -1
- package/dist/online-bookings-panel/index.js +2 -2
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +4 -4
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/patterns/prescription/index.d.ts +11 -0
- package/dist/patterns/prescription/index.js +13 -0
- package/dist/patterns/prescription/prescription-composer-errors.d.ts +6 -0
- package/dist/patterns/prescription/prescription-composer-item.d.ts +34 -0
- package/dist/patterns/prescription/prescription-composer.d.ts +89 -0
- package/dist/patterns/prescription/prescription-history.d.ts +48 -0
- package/dist/patterns/prescription/prescription-patient-block.d.ts +13 -0
- package/dist/patterns/prescription/prescription-sheet.d.ts +52 -0
- package/dist/patterns/prescription/prescription-status-badge.d.ts +5 -0
- package/dist/patterns/prescription/prescription-types.d.ts +97 -0
- package/dist/patterns/prescription/prescription-validation.d.ts +40 -0
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/reset-password-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +2 -2
- package/package.json +21 -1
- package/dist/_chunks/autocomplete-D10ydpgi.js +0 -562
- package/dist/_chunks/group-options-BvKhQ3xb.js +0 -16
- package/dist/_chunks/normalize-diacritics-BNGbFNlJ.js +0 -7
- package/dist/_chunks/patient-picker-BZJuOgMw.js +0 -173
- package/dist/_chunks/use-registration-submit-CLGHxwoT.js +0 -112
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as x, jsx as o, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { A as
|
|
1
|
+
import { jsxs as x, jsx as o, Fragment as Me } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Ne, useId as Fe, useMemo as j, useRef as y, useState as $, useEffect as _e, useCallback as b, useImperativeHandle as ze } from "react";
|
|
3
|
+
import { c as Ae } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as Be } from "react-i18next";
|
|
5
|
+
import { A as ae } from "./appointment-card-CaxFXtSn.js";
|
|
6
6
|
import { B as P } from "./button-DohK_Ak_.js";
|
|
7
|
-
import { B as
|
|
8
|
-
import { D as
|
|
9
|
-
import { P as
|
|
10
|
-
import { S as
|
|
11
|
-
import { E as
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import { a as
|
|
15
|
-
import { u as
|
|
16
|
-
import { C as
|
|
17
|
-
const
|
|
7
|
+
import { B as Ke } from "./button-group-DuQuuulC.js";
|
|
8
|
+
import { D as Ee } from "./date-picker-BmVBVpVu.js";
|
|
9
|
+
import { P as Ye } from "./panel-header-CbtlTe85.js";
|
|
10
|
+
import { S as $e } from "./skeleton-tTWJpvAq.js";
|
|
11
|
+
import { E as Pe } from "./empty-state-DwJ5YNzz.js";
|
|
12
|
+
import { u as ie } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
13
|
+
import { u as We } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
14
|
+
import { a as qe, u as Ge, R as Ve } from "./use-list-reflow-C7O4Uqnl.js";
|
|
15
|
+
import { u as Le } from "./registry-DvAUVLHh.js";
|
|
16
|
+
import { C as Oe } from "./calendar-days-BGWklvE-.js";
|
|
17
|
+
const Qe = {
|
|
18
18
|
id: "appointment-timeline",
|
|
19
19
|
// 'pick' backs select_item (non-persisting activation through
|
|
20
20
|
// onOpenAppointment); 'scroll' backs jump_to_today, which re-anchors the
|
|
@@ -70,13 +70,13 @@ const Oe = {
|
|
|
70
70
|
description: "Stable appointment id emitted on each rendered AppointmentCard inside the timeline."
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
},
|
|
73
|
+
}, oe = 96, Ue = Ae(
|
|
74
74
|
[
|
|
75
75
|
"ds:flex ds:flex-col ds:h-full ds:min-h-0",
|
|
76
76
|
"ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]"
|
|
77
77
|
].join(" "),
|
|
78
78
|
{ variants: { size: { sm: "", md: "" } }, defaultVariants: { size: "sm" } }
|
|
79
|
-
),
|
|
79
|
+
), Xe = [
|
|
80
80
|
"ds:flex-1 ds:min-h-0 ds:overflow-y-auto",
|
|
81
81
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
82
82
|
"ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
|
|
@@ -94,7 +94,7 @@ function k(i) {
|
|
|
94
94
|
const n = `${i.getMonth() + 1}`.padStart(2, "0"), d = `${i.getDate()}`.padStart(2, "0");
|
|
95
95
|
return `${i.getFullYear()}-${n}-${d}`;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Ze(i) {
|
|
98
98
|
const n = [...i].sort(
|
|
99
99
|
(g, m) => +new Date(g.startIso) - +new Date(m.startIso)
|
|
100
100
|
), d = /* @__PURE__ */ new Map();
|
|
@@ -109,7 +109,7 @@ function Xe(i) {
|
|
|
109
109
|
}
|
|
110
110
|
return [...d.values()];
|
|
111
111
|
}
|
|
112
|
-
const
|
|
112
|
+
const Je = Ne(
|
|
113
113
|
({
|
|
114
114
|
id: i,
|
|
115
115
|
items: n,
|
|
@@ -124,56 +124,57 @@ const Ze = Me(
|
|
|
124
124
|
onLoadEarlier: f,
|
|
125
125
|
onLoadLater: p,
|
|
126
126
|
hasMoreEarlier: _,
|
|
127
|
-
hasMoreLater:
|
|
127
|
+
hasMoreLater: re,
|
|
128
128
|
loadingEarlier: M = !1,
|
|
129
129
|
loadingLater: N = !1,
|
|
130
|
-
showFilters:
|
|
130
|
+
showFilters: le = !0,
|
|
131
131
|
onJumpToDate: F,
|
|
132
|
-
emptyTitle:
|
|
133
|
-
emptyDescription:
|
|
134
|
-
className:
|
|
135
|
-
"aria-label":
|
|
136
|
-
headerExtra:
|
|
137
|
-
hideDefaultStatus:
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
132
|
+
emptyTitle: ce,
|
|
133
|
+
emptyDescription: de,
|
|
134
|
+
className: me,
|
|
135
|
+
"aria-label": pe,
|
|
136
|
+
headerExtra: ue,
|
|
137
|
+
hideDefaultStatus: fe = !1,
|
|
138
|
+
wrapText: W = !1,
|
|
139
|
+
...ge
|
|
140
|
+
}, he) => {
|
|
141
|
+
const { t: l, i18n: ve } = Be("ui"), q = Fe(), z = We(), A = m ?? ve.language, G = g ?? l("appointmentTimeline.title"), c = j(
|
|
141
142
|
() => d ? new Date(d) : /* @__PURE__ */ new Date(),
|
|
142
143
|
[d]
|
|
143
|
-
), u = j(() =>
|
|
144
|
+
), u = j(() => Ze(n), [n]), V = z || void 0, ye = j(
|
|
144
145
|
() => u.flatMap((e) => e.items.map((t) => t.id)).join(),
|
|
145
146
|
[u]
|
|
146
|
-
), { containerRef:
|
|
147
|
-
key:
|
|
148
|
-
reduceMotion:
|
|
149
|
-
}),
|
|
150
|
-
|
|
151
|
-
const e =
|
|
147
|
+
), { containerRef: ke } = qe({
|
|
148
|
+
key: ye,
|
|
149
|
+
reduceMotion: V
|
|
150
|
+
}), L = Ge({ reduceMotion: V }), O = y(n), [Q, U] = $([]);
|
|
151
|
+
_e(() => {
|
|
152
|
+
const e = O.current;
|
|
152
153
|
if (e === n) return;
|
|
153
154
|
const t = new Set(n.map((a) => a.id)), s = e.filter((a) => !t.has(a.id));
|
|
154
|
-
s.length > 0 && (
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
s.length > 0 && (U((a) => [...a, ...s]), s.forEach((a) => {
|
|
156
|
+
L.leave(a.id, () => {
|
|
157
|
+
U((Y) => Y.filter((S) => S.id !== a.id));
|
|
157
158
|
});
|
|
158
|
-
})),
|
|
159
|
-
}, [n,
|
|
160
|
-
const
|
|
159
|
+
})), O.current = n;
|
|
160
|
+
}, [n, L]);
|
|
161
|
+
const X = _ ?? !!f, Z = re ?? !!p, B = j(() => {
|
|
161
162
|
if (u.length === 0) return;
|
|
162
163
|
const e = k(c), t = u.map((s) => s.key);
|
|
163
164
|
return t.includes(e) ? e : t.find((s) => s >= e) ?? t[t.length - 1];
|
|
164
|
-
}, [u, c]), D = y(null),
|
|
165
|
+
}, [u, c]), D = y(null), R = y(/* @__PURE__ */ new Map()), J = y(!1), K = y(void 0), ee = y(0), [Te, be] = $(!1), [xe, De] = $(!1), w = b(() => {
|
|
165
166
|
const e = D.current;
|
|
166
167
|
if (!e) return;
|
|
167
168
|
const { scrollTop: t, scrollHeight: s, clientHeight: a } = e;
|
|
168
|
-
|
|
169
|
+
be(t > 1), De(t + a < s - 1);
|
|
169
170
|
}, []), I = b(
|
|
170
171
|
(e, t) => {
|
|
171
172
|
const s = D.current;
|
|
172
173
|
if (!s) return;
|
|
173
|
-
let a =
|
|
174
|
+
let a = R.current.get(e);
|
|
174
175
|
if (!a) {
|
|
175
|
-
const S = [...
|
|
176
|
-
a =
|
|
176
|
+
const S = [...R.current.keys()].sort(), ne = S.find((He) => He >= e) ?? S[S.length - 1];
|
|
177
|
+
a = ne ? R.current.get(ne) : void 0;
|
|
177
178
|
}
|
|
178
179
|
if (!a) return;
|
|
179
180
|
const Y = a.getBoundingClientRect().top - s.getBoundingClientRect().top;
|
|
@@ -184,56 +185,56 @@ const Ze = Me(
|
|
|
184
185
|
},
|
|
185
186
|
[z]
|
|
186
187
|
);
|
|
187
|
-
|
|
188
|
+
ie(() => {
|
|
188
189
|
var s;
|
|
189
190
|
const e = D.current;
|
|
190
191
|
if (!e) return;
|
|
191
192
|
const t = (s = u[0]) == null ? void 0 : s.key;
|
|
192
|
-
if (!
|
|
193
|
-
u.length > 0 && B && (I(B, !1),
|
|
193
|
+
if (!J.current)
|
|
194
|
+
u.length > 0 && B && (I(B, !1), J.current = !0);
|
|
194
195
|
else if (K.current && t && t < K.current) {
|
|
195
|
-
const a = e.scrollHeight -
|
|
196
|
+
const a = e.scrollHeight - ee.current;
|
|
196
197
|
a > 0 && (e.scrollTop += a);
|
|
197
198
|
}
|
|
198
|
-
K.current = t,
|
|
199
|
-
}, [u, B, I,
|
|
199
|
+
K.current = t, ee.current = e.scrollHeight, w();
|
|
200
|
+
}, [u, B, I, w]), ie(() => {
|
|
200
201
|
const e = D.current;
|
|
201
202
|
if (!e || typeof ResizeObserver > "u") return;
|
|
202
|
-
const t = new ResizeObserver(
|
|
203
|
+
const t = new ResizeObserver(w);
|
|
203
204
|
return t.observe(e), () => t.disconnect();
|
|
204
|
-
}, [
|
|
205
|
-
const
|
|
206
|
-
|
|
205
|
+
}, [w]);
|
|
206
|
+
const Re = b(() => {
|
|
207
|
+
w();
|
|
207
208
|
const e = D.current;
|
|
208
209
|
if (!e) return;
|
|
209
210
|
const { scrollTop: t, scrollHeight: s, clientHeight: a } = e;
|
|
210
|
-
f &&
|
|
211
|
+
f && X && !M && t <= oe && f(), p && Z && !N && s - t - a <= oe && p();
|
|
211
212
|
}, [
|
|
212
|
-
|
|
213
|
+
w,
|
|
213
214
|
f,
|
|
214
215
|
p,
|
|
215
|
-
U,
|
|
216
216
|
X,
|
|
217
|
+
Z,
|
|
217
218
|
M,
|
|
218
219
|
N
|
|
219
220
|
]), T = b(
|
|
220
221
|
(e) => {
|
|
221
|
-
const t = k(e), s =
|
|
222
|
+
const t = k(e), s = R.current.has(t);
|
|
222
223
|
I(t, !0), s || F == null || F(e.toISOString());
|
|
223
224
|
},
|
|
224
225
|
[I, F]
|
|
225
|
-
), we = b(() => T(c), [T, c]),
|
|
226
|
+
), we = b(() => T(c), [T, c]), Ie = b(() => {
|
|
226
227
|
const e = new Date(c), t = (e.getDay() + 6) % 7;
|
|
227
228
|
e.setDate(e.getDate() - t), T(e);
|
|
228
|
-
}, [T, c]),
|
|
229
|
+
}, [T, c]), Se = b(() => {
|
|
229
230
|
T(new Date(c.getFullYear(), c.getMonth(), 1));
|
|
230
231
|
}, [T, c]), E = y(n);
|
|
231
232
|
E.current = n;
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
const
|
|
233
|
+
const te = y(null);
|
|
234
|
+
ze(he, () => te.current, []);
|
|
235
|
+
const je = j(
|
|
235
236
|
() => ({
|
|
236
|
-
getItems: () => E.current.map((e) => ({ id: e.id, state: e.state })),
|
|
237
|
+
getItems: () => E.current.map((e) => ({ id: e.id, state: e.state ?? "" })),
|
|
237
238
|
selectItem: (e) => {
|
|
238
239
|
const t = E.current.find((s) => s.id === e);
|
|
239
240
|
t && (v == null || v(t));
|
|
@@ -242,42 +243,42 @@ const Ze = Me(
|
|
|
242
243
|
}),
|
|
243
244
|
[v, I, c]
|
|
244
245
|
);
|
|
245
|
-
|
|
246
|
-
const
|
|
246
|
+
Le(Qe, je, i);
|
|
247
|
+
const Ce = u.length === 0 && !M && !N, se = (e) => /* @__PURE__ */ o(
|
|
247
248
|
"div",
|
|
248
249
|
{
|
|
249
250
|
"aria-hidden": "true",
|
|
250
251
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:py-[var(--spacing-xs)]",
|
|
251
|
-
children: /* @__PURE__ */ o(
|
|
252
|
+
children: /* @__PURE__ */ o($e, { variant: "rectangular", height: "3.5rem" })
|
|
252
253
|
},
|
|
253
254
|
e
|
|
254
255
|
);
|
|
255
256
|
return /* @__PURE__ */ x(
|
|
256
257
|
"section",
|
|
257
258
|
{
|
|
258
|
-
ref:
|
|
259
|
+
ref: te,
|
|
259
260
|
"data-component": "appointment-timeline",
|
|
260
261
|
"data-component-id": i,
|
|
261
|
-
"aria-label":
|
|
262
|
-
className:
|
|
263
|
-
...
|
|
262
|
+
"aria-label": pe ?? G,
|
|
263
|
+
className: Ue({ size: r, className: me }),
|
|
264
|
+
...ge,
|
|
264
265
|
children: [
|
|
265
266
|
/* @__PURE__ */ o(
|
|
266
|
-
|
|
267
|
+
Ye,
|
|
267
268
|
{
|
|
268
|
-
icon: /* @__PURE__ */ o(
|
|
269
|
-
title:
|
|
270
|
-
filters:
|
|
271
|
-
/* @__PURE__ */ x(
|
|
269
|
+
icon: /* @__PURE__ */ o(Oe, {}),
|
|
270
|
+
title: G,
|
|
271
|
+
filters: le ? /* @__PURE__ */ x(Me, { children: [
|
|
272
|
+
/* @__PURE__ */ x(Ke, { label: l("appointmentTimeline.filtersLabel"), children: [
|
|
272
273
|
/* @__PURE__ */ o(P, { intent: "outline", size: "sm", onClick: we, children: l("appointmentTimeline.today") }),
|
|
273
|
-
/* @__PURE__ */ o(P, { intent: "outline", size: "sm", onClick:
|
|
274
|
-
/* @__PURE__ */ o(P, { intent: "outline", size: "sm", onClick:
|
|
274
|
+
/* @__PURE__ */ o(P, { intent: "outline", size: "sm", onClick: Ie, children: l("appointmentTimeline.thisWeek") }),
|
|
275
|
+
/* @__PURE__ */ o(P, { intent: "outline", size: "sm", onClick: Se, children: l("appointmentTimeline.thisMonth") })
|
|
275
276
|
] }),
|
|
276
|
-
/* @__PURE__ */ o("label", { htmlFor:
|
|
277
|
+
/* @__PURE__ */ o("label", { htmlFor: q, className: "ds:sr-only", children: l("appointmentTimeline.jumpToDate") }),
|
|
277
278
|
/* @__PURE__ */ o(
|
|
278
|
-
|
|
279
|
+
Ee,
|
|
279
280
|
{
|
|
280
|
-
id:
|
|
281
|
+
id: q,
|
|
281
282
|
size: "sm",
|
|
282
283
|
placeholder: l("appointmentTimeline.jumpToDate"),
|
|
283
284
|
onChange: (e) => {
|
|
@@ -288,30 +289,30 @@ const Ze = Me(
|
|
|
288
289
|
] }) : void 0
|
|
289
290
|
}
|
|
290
291
|
),
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
ue,
|
|
293
|
+
Ce ? /* @__PURE__ */ o("div", { className: "ds:flex-1 ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ o(
|
|
294
|
+
Pe,
|
|
294
295
|
{
|
|
295
296
|
variant: "first-use",
|
|
296
297
|
size: "sm",
|
|
297
|
-
title:
|
|
298
|
-
description:
|
|
298
|
+
title: ce ?? l("appointmentTimeline.empty.title"),
|
|
299
|
+
description: de ?? l("appointmentTimeline.empty.description")
|
|
299
300
|
}
|
|
300
301
|
) }) : /* @__PURE__ */ x(
|
|
301
302
|
"div",
|
|
302
303
|
{
|
|
303
304
|
ref: D,
|
|
304
305
|
tabIndex: 0,
|
|
305
|
-
onScroll:
|
|
306
|
-
"data-fade-top":
|
|
307
|
-
"data-fade-bottom":
|
|
308
|
-
className:
|
|
306
|
+
onScroll: Re,
|
|
307
|
+
"data-fade-top": Te ? "true" : void 0,
|
|
308
|
+
"data-fade-bottom": xe ? "true" : void 0,
|
|
309
|
+
className: Xe,
|
|
309
310
|
children: [
|
|
310
|
-
M ?
|
|
311
|
+
M ? se("loading-earlier") : null,
|
|
311
312
|
/* @__PURE__ */ x(
|
|
312
313
|
"ol",
|
|
313
314
|
{
|
|
314
|
-
ref:
|
|
315
|
+
ref: ke,
|
|
315
316
|
role: "list",
|
|
316
317
|
className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-md)] ds:p-0",
|
|
317
318
|
children: [
|
|
@@ -319,12 +320,12 @@ const Ze = Me(
|
|
|
319
320
|
"li",
|
|
320
321
|
{
|
|
321
322
|
ref: (t) => {
|
|
322
|
-
t ?
|
|
323
|
+
t ? R.current.set(e.key, t) : R.current.delete(e.key);
|
|
323
324
|
},
|
|
324
325
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
|
|
325
326
|
children: [
|
|
326
327
|
/* @__PURE__ */ o(
|
|
327
|
-
|
|
328
|
+
et,
|
|
328
329
|
{
|
|
329
330
|
date: e.date,
|
|
330
331
|
now: c,
|
|
@@ -340,7 +341,7 @@ const Ze = Me(
|
|
|
340
341
|
role: "list",
|
|
341
342
|
className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0",
|
|
342
343
|
children: e.items.map((t) => /* @__PURE__ */ o(
|
|
343
|
-
|
|
344
|
+
ae,
|
|
344
345
|
{
|
|
345
346
|
item: t,
|
|
346
347
|
size: r,
|
|
@@ -350,10 +351,11 @@ const Ze = Me(
|
|
|
350
351
|
currency: h,
|
|
351
352
|
onActivate: v,
|
|
352
353
|
selected: t.id === H,
|
|
353
|
-
hideDefaultStatus:
|
|
354
|
+
hideDefaultStatus: fe,
|
|
355
|
+
wrapText: W,
|
|
354
356
|
"data-appointment-id": t.id,
|
|
355
357
|
"data-reflow-id": t.id,
|
|
356
|
-
className:
|
|
358
|
+
className: Ve
|
|
357
359
|
},
|
|
358
360
|
t.id
|
|
359
361
|
))
|
|
@@ -363,13 +365,14 @@ const Ze = Me(
|
|
|
363
365
|
},
|
|
364
366
|
e.key
|
|
365
367
|
)),
|
|
366
|
-
|
|
367
|
-
|
|
368
|
+
Q.length > 0 ? Q.map((e) => /* @__PURE__ */ o(
|
|
369
|
+
ae,
|
|
368
370
|
{
|
|
369
371
|
item: e,
|
|
370
372
|
size: r,
|
|
371
373
|
surface: "elevated",
|
|
372
374
|
showPatient: C,
|
|
375
|
+
wrapText: W,
|
|
373
376
|
locale: A,
|
|
374
377
|
currency: h,
|
|
375
378
|
"aria-hidden": "true",
|
|
@@ -387,7 +390,7 @@ const Ze = Me(
|
|
|
387
390
|
]
|
|
388
391
|
}
|
|
389
392
|
),
|
|
390
|
-
N ?
|
|
393
|
+
N ? se("loading-later") : null
|
|
391
394
|
]
|
|
392
395
|
}
|
|
393
396
|
)
|
|
@@ -396,8 +399,8 @@ const Ze = Me(
|
|
|
396
399
|
);
|
|
397
400
|
}
|
|
398
401
|
);
|
|
399
|
-
|
|
400
|
-
function
|
|
402
|
+
Je.displayName = "AppointmentTimeline";
|
|
403
|
+
function et({
|
|
401
404
|
date: i,
|
|
402
405
|
now: n,
|
|
403
406
|
locale: d,
|
|
@@ -446,7 +449,7 @@ function Je({
|
|
|
446
449
|
);
|
|
447
450
|
}
|
|
448
451
|
export {
|
|
449
|
-
|
|
450
|
-
|
|
452
|
+
Je as A,
|
|
453
|
+
Qe as a
|
|
451
454
|
};
|
|
452
|
-
//# sourceMappingURL=appointment-timeline-
|
|
455
|
+
//# sourceMappingURL=appointment-timeline-BEwgbYyG.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as q } from "react-i18next";
|
|
|
5
5
|
import { I as K } from "./icon-button-S8_weU3g.js";
|
|
6
6
|
import { S as V } from "./skeleton-tTWJpvAq.js";
|
|
7
7
|
import { E as W } from "./empty-state-DwJ5YNzz.js";
|
|
8
|
-
import { A as B } from "./appointment-card-
|
|
8
|
+
import { A as B } from "./appointment-card-CaxFXtSn.js";
|
|
9
9
|
import { u as D } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import { C as L } from "./calendar-days-BGWklvE-.js";
|
|
11
11
|
import { P as _ } from "./plus-DzMQ_c6b.js";
|
|
@@ -21,7 +21,7 @@ const it = {
|
|
|
21
21
|
root: {
|
|
22
22
|
attr: "data-component",
|
|
23
23
|
value: "appointment-card",
|
|
24
|
-
description: 'Marks the element as a kit AppointmentCard. The root also emits data-component-id sourced from item.id, data-state with the appointment lifecycle, and data-type with the delivery channel. When the card is interactive its activator (link or button) carries data-action="open-appointment".'
|
|
24
|
+
description: 'Marks the element as a kit AppointmentCard. The root also emits data-component-id sourced from item.id, data-state with the appointment lifecycle (left off when the appointment has no status), and data-type with the delivery channel. When the card is interactive its activator (link or button) carries data-action="open-appointment".'
|
|
25
25
|
},
|
|
26
26
|
instanceId: {
|
|
27
27
|
attr: "data-component-id",
|
|
@@ -102,8 +102,8 @@ const it = {
|
|
|
102
102
|
title: b,
|
|
103
103
|
caption: c,
|
|
104
104
|
size: m = "sm",
|
|
105
|
-
locale:
|
|
106
|
-
currency:
|
|
105
|
+
locale: w,
|
|
106
|
+
currency: x,
|
|
107
107
|
privacy: l = !1,
|
|
108
108
|
privacyTitle: d,
|
|
109
109
|
onOpenAppointment: i,
|
|
@@ -132,8 +132,8 @@ const it = {
|
|
|
132
132
|
{
|
|
133
133
|
item: t,
|
|
134
134
|
size: m,
|
|
135
|
-
locale:
|
|
136
|
-
currency:
|
|
135
|
+
locale: w,
|
|
136
|
+
currency: x,
|
|
137
137
|
privacy: l,
|
|
138
138
|
privacyTitle: l ? d == null ? void 0 : d(t) : void 0,
|
|
139
139
|
onActivate: i,
|
|
@@ -147,7 +147,7 @@ const it = {
|
|
|
147
147
|
E(C, () => g.current, []);
|
|
148
148
|
const j = H(
|
|
149
149
|
() => ({
|
|
150
|
-
getItems: () => p.current.map((t) => ({ id: t.id, state: t.state })),
|
|
150
|
+
getItems: () => p.current.map((t) => ({ id: t.id, state: t.state ?? "" })),
|
|
151
151
|
selectItem: (t) => {
|
|
152
152
|
const y = p.current.find((z) => z.id === t);
|
|
153
153
|
y && (i == null || i(y));
|
|
@@ -197,4 +197,4 @@ export {
|
|
|
197
197
|
it as a,
|
|
198
198
|
F as b
|
|
199
199
|
};
|
|
200
|
-
//# sourceMappingURL=appointment-tray-
|
|
200
|
+
//# sourceMappingURL=appointment-tray-DPpeR9JT.js.map
|
|
@@ -4,7 +4,7 @@ import { c as oe } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as ue } from "react-i18next";
|
|
5
5
|
import { B as G } from "./button-DohK_Ak_.js";
|
|
6
6
|
import { I as D } from "./icon-button-S8_weU3g.js";
|
|
7
|
-
import { S as pe } from "./select-
|
|
7
|
+
import { S as pe } from "./select-Bm8s3q-X.js";
|
|
8
8
|
import { A as le } from "./audio-visualiser-CK2JyQW1.js";
|
|
9
9
|
import { A as F } from "./alert-C4WKViaS.js";
|
|
10
10
|
import { u as me } from "./registry-DvAUVLHh.js";
|
|
@@ -446,4 +446,4 @@ export {
|
|
|
446
446
|
De as A,
|
|
447
447
|
Re as a
|
|
448
448
|
};
|
|
449
|
-
//# sourceMappingURL=audio-recorder-
|
|
449
|
+
//# sourceMappingURL=audio-recorder-6dUq8I38.js.map
|