@alfadocs/ui-kit-debug 0.84.1 → 0.86.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/actions-cell-renderer-DaL80uqL.js.map +1 -1
- package/dist/_chunks/{ai-consent-banner-DUhr1yNj.js → ai-consent-banner-BXD7W6FI.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-DUhr1yNj.js.map → ai-consent-banner-BXD7W6FI.js.map} +1 -1
- package/dist/_chunks/{alert-KJbsPYkI.js → alert-Cxaqd-QO.js} +12 -12
- package/dist/_chunks/alert-Cxaqd-QO.js.map +1 -0
- package/dist/_chunks/anamnesis-card-CJ5MNbkc.js.map +1 -1
- package/dist/_chunks/{audio-recorder-Cc3KuL9y.js → audio-recorder-BjnB7V8n.js} +2 -2
- package/dist/_chunks/{audio-recorder-Cc3KuL9y.js.map → audio-recorder-BjnB7V8n.js.map} +1 -1
- package/dist/_chunks/{booking-CLmeXtGv.js → booking-BvCu2XWY.js} +2 -2
- package/dist/_chunks/{booking-CLmeXtGv.js.map → booking-BvCu2XWY.js.map} +1 -1
- package/dist/_chunks/breadcrumb-agut0PwN.js.map +1 -1
- package/dist/_chunks/calendar-event-card-C6qGtywL.js.map +1 -1
- package/dist/_chunks/chat-input-QpHxBEnN.js.map +1 -1
- package/dist/_chunks/chat-message-CdjWqZjo.js.map +1 -1
- package/dist/_chunks/checkbox-group-CfqMv57d.js.map +1 -1
- package/dist/_chunks/dependent-selector-DyFpdzZV.js.map +1 -1
- package/dist/_chunks/{document-preview-nwfulDEs.js → document-preview-DXl9migE.js} +2 -2
- package/dist/_chunks/{document-preview-nwfulDEs.js.map → document-preview-DXl9migE.js.map} +1 -1
- package/dist/_chunks/{document-scanner-B6h1Ir56.js → document-scanner-cS_ispQs.js} +3 -3
- package/dist/_chunks/document-scanner-cS_ispQs.js.map +1 -0
- package/dist/_chunks/editable-currency-cell-renderer-Dus_sBvX.js.map +1 -1
- package/dist/_chunks/email-input-Dpe63k0K.js.map +1 -1
- package/dist/_chunks/{entity-summary--vP698Jn.js → entity-summary-BILN4wEG.js} +2 -2
- package/dist/_chunks/{entity-summary--vP698Jn.js.map → entity-summary-BILN4wEG.js.map} +1 -1
- package/dist/_chunks/{field-value-DHG6gEKS.js → field-value-BRVbZJej.js} +133 -144
- package/dist/_chunks/field-value-BRVbZJej.js.map +1 -0
- package/dist/_chunks/{file-manager-DLJlinIO.js → file-manager-B9LZzT5E.js} +129 -129
- package/dist/_chunks/file-manager-B9LZzT5E.js.map +1 -0
- package/dist/_chunks/{file-upload-DENvuhfs.js → file-upload-CwxdqkMK.js} +134 -146
- package/dist/_chunks/file-upload-CwxdqkMK.js.map +1 -0
- package/dist/_chunks/finished-terminal-C0_mefrf.js.map +1 -1
- package/dist/_chunks/fiscal-code-input-QP9gkyDE.js.map +1 -1
- package/dist/_chunks/form-field-M5UpX65Z.js.map +1 -1
- package/dist/_chunks/{freemium-paywall-CmV642PA.js → freemium-paywall-Dr2342_S.js} +2 -2
- package/dist/_chunks/{freemium-paywall-CmV642PA.js.map → freemium-paywall-Dr2342_S.js.map} +1 -1
- package/dist/_chunks/iban-input-DXIA8Ln_.js.map +1 -1
- package/dist/_chunks/info-tip-Bxk3w6UM.js +166 -0
- package/dist/_chunks/info-tip-Bxk3w6UM.js.map +1 -0
- package/dist/_chunks/{marketplace-app-shell-Br2yebEK.js → marketplace-app-shell-Chcj4q4z.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-Br2yebEK.js.map → marketplace-app-shell-Chcj4q4z.js.map} +1 -1
- package/dist/_chunks/message-square-Bye4ATvx.js +20 -0
- package/dist/_chunks/message-square-Bye4ATvx.js.map +1 -0
- package/dist/_chunks/{notes-panel-Cvdp818a.js → notes-panel-BLjlYBt-.js} +2 -2
- package/dist/_chunks/{notes-panel-Cvdp818a.js.map → notes-panel-BLjlYBt-.js.map} +1 -1
- package/dist/_chunks/pagination-EkD5SiCK.js.map +1 -1
- package/dist/_chunks/{patient-details-COvYWp2e.js → patient-details-B9LCdyWW.js} +2 -2
- package/dist/_chunks/{patient-details-COvYWp2e.js.map → patient-details-B9LCdyWW.js.map} +1 -1
- package/dist/_chunks/{patient-search-BaUJ_Y-N.js → patient-search-vtRTSdf6.js} +2 -2
- package/dist/_chunks/{patient-search-BaUJ_Y-N.js.map → patient-search-vtRTSdf6.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-D6kgdTNn.js → patient-summary-card-vn1H4xWj.js} +2 -2
- package/dist/_chunks/patient-summary-card-vn1H4xWj.js.map +1 -0
- package/dist/_chunks/{patient-table-BHzmUbzu.js → patient-table-B6AKMTm3.js} +182 -196
- package/dist/_chunks/patient-table-B6AKMTm3.js.map +1 -0
- package/dist/_chunks/{payment-form-DL9xk9BA.js → payment-form-BoGxEmGn.js} +2 -2
- package/dist/_chunks/{payment-form-DL9xk9BA.js.map → payment-form-BoGxEmGn.js.map} +1 -1
- package/dist/_chunks/{payment-request-card-d-RmzsUd.js → payment-request-card-CygO1anM.js} +72 -70
- package/dist/_chunks/payment-request-card-CygO1anM.js.map +1 -0
- package/dist/_chunks/{pdf-viewer-DF3VMaPo.js → pdf-viewer-CcOuR2wj.js} +2 -2
- package/dist/_chunks/{pdf-viewer-DF3VMaPo.js.map → pdf-viewer-CcOuR2wj.js.map} +1 -1
- package/dist/_chunks/postal-code-input-BznBxVxf.js.map +1 -1
- package/dist/_chunks/{practice-results-BCr7jMt1.js → practice-results-yKbwIxqa.js} +2 -2
- package/dist/_chunks/{practice-results-BCr7jMt1.js.map → practice-results-yKbwIxqa.js.map} +1 -1
- package/dist/_chunks/radio-group-CI-6SmSw.js.map +1 -1
- package/dist/_chunks/{radiograph-panel.agent-CxF9pVxd.js → radiograph-panel.agent-M9XD4ze4.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-CxF9pVxd.js.map → radiograph-panel.agent-M9XD4ze4.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-CCWjNkbx.js → rich-text-editor-RRkBN_WB.js} +2 -2
- package/dist/_chunks/rich-text-editor-RRkBN_WB.js.map +1 -0
- package/dist/_chunks/{session-countdown-C8AsE072.js → session-countdown-Bc70VXN1.js} +58 -48
- package/dist/_chunks/session-countdown-Bc70VXN1.js.map +1 -0
- package/dist/_chunks/{sign-document-Bfk0WpWV.js → sign-document-DI561d1C.js} +2 -2
- package/dist/_chunks/sign-document-DI561d1C.js.map +1 -0
- package/dist/_chunks/{signature-request-CEOrCDyk.js → signature-request-D_6jgDZd.js} +60 -77
- package/dist/_chunks/signature-request-D_6jgDZd.js.map +1 -0
- package/dist/_chunks/task-card-BUgK6yZT.js.map +1 -1
- package/dist/_chunks/{task-tray-Br3vc0O1.js → task-tray-CLIqIXUZ.js} +58 -70
- package/dist/_chunks/task-tray-CLIqIXUZ.js.map +1 -0
- package/dist/_chunks/tasks-panel-CjGAhIN8.js.map +1 -1
- package/dist/_chunks/timeline-r-8IUoBS.js.map +1 -1
- package/dist/_chunks/{toast.agent-uV8CeAy6.js → toast.agent-Iw2jWdce.js} +2 -2
- package/dist/_chunks/{toast.agent-uV8CeAy6.js.map → toast.agent-Iw2jWdce.js.map} +1 -1
- package/dist/_chunks/use-password-requirements-Bwtqx1qN.js.map +1 -1
- package/dist/_chunks/{warning-stack-BlG_Ujy3.js → warning-stack-CAHQ0xxS.js} +2 -2
- package/dist/_chunks/{warning-stack-BlG_Ujy3.js.map → warning-stack-CAHQ0xxS.js.map} +1 -1
- package/dist/_chunks/{workflow-map-C643Q43h.js → workflow-map-SIfAhmWz.js} +2 -2
- package/dist/_chunks/workflow-map-SIfAhmWz.js.map +1 -0
- package/dist/agent-catalog.json +45 -1
- package/dist/agent-i18n/en.json +9 -0
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/file-upload/file-upload.d.ts.map +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/info-tip/index.d.ts +4 -0
- package/dist/components/info-tip/index.d.ts.map +1 -0
- package/dist/components/info-tip/index.js +6 -0
- package/dist/components/info-tip/index.js.map +1 -0
- package/dist/components/info-tip/info-tip.agent.d.ts +4 -0
- package/dist/components/info-tip/info-tip.agent.d.ts.map +1 -0
- package/dist/components/info-tip/info-tip.d.ts +42 -0
- package/dist/components/info-tip/info-tip.d.ts.map +1 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/task-card/task-card.d.ts.map +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +3 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +3 -0
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +3 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +3 -0
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +3 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +3 -0
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +3 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +3 -0
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +3 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +3 -0
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +3 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +3 -0
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +3 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +3 -0
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +3 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +3 -0
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +3 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +3 -0
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +3 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +3 -0
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +3 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +3 -0
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +3 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +3 -0
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +3 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +3 -0
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +3 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +3 -0
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +3 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +3 -0
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +3 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +3 -0
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +3 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +3 -0
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +3 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +3 -0
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +715 -723
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.json +3 -0
- package/dist/locales/de.json +3 -0
- package/dist/locales/el.json +3 -0
- package/dist/locales/en.json +3 -0
- package/dist/locales/es.json +3 -0
- package/dist/locales/fr.json +3 -0
- package/dist/locales/hi.json +3 -0
- package/dist/locales/it.json +3 -0
- package/dist/locales/ja.json +3 -0
- package/dist/locales/nl.json +3 -0
- package/dist/locales/pl.json +3 -0
- package/dist/locales/pt.json +3 -0
- package/dist/locales/ro.json +3 -0
- package/dist/locales/ru.json +3 -0
- package/dist/locales/sq.json +3 -0
- package/dist/locales/sv.json +3 -0
- package/dist/locales/tr.json +3 -0
- package/dist/locales/zh.json +3 -0
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +9 -3
- package/dist/_chunks/alert-KJbsPYkI.js.map +0 -1
- package/dist/_chunks/circle-x-W8Enq3i4.js +0 -16
- package/dist/_chunks/circle-x-W8Enq3i4.js.map +0 -1
- package/dist/_chunks/document-scanner-B6h1Ir56.js.map +0 -1
- package/dist/_chunks/field-value-DHG6gEKS.js.map +0 -1
- package/dist/_chunks/file-manager-DLJlinIO.js.map +0 -1
- package/dist/_chunks/file-upload-DENvuhfs.js.map +0 -1
- package/dist/_chunks/patient-summary-card-D6kgdTNn.js.map +0 -1
- package/dist/_chunks/patient-table-BHzmUbzu.js.map +0 -1
- package/dist/_chunks/payment-request-card-d-RmzsUd.js.map +0 -1
- package/dist/_chunks/rich-text-editor-CCWjNkbx.js.map +0 -1
- package/dist/_chunks/session-countdown-C8AsE072.js.map +0 -1
- package/dist/_chunks/sign-document-Bfk0WpWV.js.map +0 -1
- package/dist/_chunks/signature-request-CEOrCDyk.js.map +0 -1
- package/dist/_chunks/task-tray-Br3vc0O1.js.map +0 -1
- package/dist/_chunks/workflow-map-C643Q43h.js.map +0 -1
|
@@ -4,66 +4,52 @@ import { useTranslation as $ } from "react-i18next";
|
|
|
4
4
|
import { a as p, T as b, A as be, d as ne, D as P, e as ge } from "./actions-cell-renderer-DaL80uqL.js";
|
|
5
5
|
import { S as Ce } from "./select-BW5ecXlX.js";
|
|
6
6
|
import { u as ve } from "./registry-DvAUVLHh.js";
|
|
7
|
-
import { I as Ne, L as we, b as L, a as _, c as U, N as H, d as F, S as R, T as
|
|
8
|
-
import { B as
|
|
7
|
+
import { I as Ne, L as we, b as L, a as _, c as U, N as H, d as F, S as R, T as ie, D as K, C as Te, g as Fe, f as Re, U as Ie, e as ye } from "./link-cell-renderer-BQGUs45d.js";
|
|
8
|
+
import { B as ae } from "./badge-DCOqV9mI.js";
|
|
9
9
|
import { c as Pe } from "./index-D2ZczOXr.js";
|
|
10
10
|
import { T as We } from "./timestamp-BV2lC-wV.js";
|
|
11
11
|
import { C as Se } from "./calendar-clock-hbObjfGY.js";
|
|
12
12
|
import { E as Ae } from "./eye-BjhN2nYf.js";
|
|
13
13
|
import { P as Be } from "./pencil-B1sKKyuT.js";
|
|
14
14
|
import { M as De } from "./mail-BqXVF2zH.js";
|
|
15
|
-
import {
|
|
15
|
+
import { M as Ve } from "./message-square-Bye4ATvx.js";
|
|
16
16
|
import { U as xe } from "./users-BjS_Gg1E.js";
|
|
17
17
|
import { T as Ee } from "./trash-2-uumy3fy1.js";
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
* This source code is licensed under the ISC license.
|
|
22
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/
|
|
24
|
-
const Oe = [
|
|
25
|
-
[
|
|
26
|
-
"path",
|
|
27
|
-
{
|
|
28
|
-
d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
|
|
29
|
-
key: "18887p"
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
], ke = Ve("message-square", Oe), Me = 5e4;
|
|
33
|
-
function Ge(e) {
|
|
34
|
-
return e === 0 ? { variant: "success", statusKey: "settled" } : e <= Me ? { variant: "warning", statusKey: "pending" } : { variant: "error", statusKey: "overdue" };
|
|
18
|
+
const Oe = 5e4;
|
|
19
|
+
function ke(e) {
|
|
20
|
+
return e === 0 ? { variant: "success", statusKey: "settled" } : e <= Oe ? { variant: "warning", statusKey: "pending" } : { variant: "error", statusKey: "overdue" };
|
|
35
21
|
}
|
|
36
|
-
function
|
|
22
|
+
function Me(e) {
|
|
37
23
|
if (e == null || e === "") return null;
|
|
38
|
-
const
|
|
39
|
-
return Number.isFinite(
|
|
24
|
+
const a = typeof e == "number" ? e : Number(e);
|
|
25
|
+
return Number.isFinite(a) ? a : null;
|
|
40
26
|
}
|
|
41
|
-
function
|
|
42
|
-
const { value:
|
|
27
|
+
function Ge(e) {
|
|
28
|
+
const { value: a, currency: d = "EUR", options: s } = e, { t: i, i18n: r } = $("ui"), c = Me(a);
|
|
43
29
|
if (c === null) return null;
|
|
44
|
-
const h =
|
|
30
|
+
const h = r.language || "en", m = new Intl.NumberFormat(h, {
|
|
45
31
|
style: "currency",
|
|
46
32
|
currency: d,
|
|
47
33
|
...s
|
|
48
|
-
}).format(c / 100), { variant: u, statusKey: C } =
|
|
49
|
-
return /* @__PURE__ */ O(
|
|
34
|
+
}).format(c / 100), { variant: u, statusKey: C } = ke(c), l = i(`patientTable.balance.status.${C}`);
|
|
35
|
+
return /* @__PURE__ */ O(ae, { variant: u, withDot: !0, size: "sm", className: "ds:tabular-nums", children: [
|
|
50
36
|
/* @__PURE__ */ g("span", { children: m }),
|
|
51
|
-
/* @__PURE__ */ g("span", { className: "ds:sr-only", children:
|
|
37
|
+
/* @__PURE__ */ g("span", { className: "ds:sr-only", children: l })
|
|
52
38
|
] });
|
|
53
39
|
}
|
|
54
|
-
const
|
|
40
|
+
const Le = {
|
|
55
41
|
accepted: "success",
|
|
56
42
|
estimate: "info",
|
|
57
43
|
none: "neutral"
|
|
58
44
|
};
|
|
59
|
-
function
|
|
45
|
+
function _e(e) {
|
|
60
46
|
return e === "accepted" || e === "estimate" || e === "none";
|
|
61
47
|
}
|
|
62
|
-
function
|
|
63
|
-
const { t:
|
|
64
|
-
if (!
|
|
65
|
-
const c =
|
|
66
|
-
return /* @__PURE__ */ g(
|
|
48
|
+
function Ue(e) {
|
|
49
|
+
const { t: a } = $("ui"), { data: d, value: s, size: i = "sm" } = e, r = (d == null ? void 0 : d.carePlanStatus) ?? s;
|
|
50
|
+
if (!_e(r)) return null;
|
|
51
|
+
const c = Le[r];
|
|
52
|
+
return /* @__PURE__ */ g(ae, { variant: c, withDot: !0, size: i, children: a(`patientTable.carePlanStatus.${r}`) });
|
|
67
53
|
}
|
|
68
54
|
const J = Pe(
|
|
69
55
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ds:whitespace-nowrap",
|
|
@@ -80,40 +66,40 @@ const J = Pe(
|
|
|
80
66
|
},
|
|
81
67
|
defaultVariants: { tone: "default" }
|
|
82
68
|
}
|
|
83
|
-
),
|
|
84
|
-
function
|
|
69
|
+
), He = 1440 * 60 * 1e3, ze = 7;
|
|
70
|
+
function $e(e) {
|
|
85
71
|
if (e == null || e === "") return null;
|
|
86
|
-
const
|
|
87
|
-
return Number.isNaN(
|
|
72
|
+
const a = e instanceof Date ? e.getTime() : typeof e == "number" ? e : new Date(String(e)).getTime();
|
|
73
|
+
return Number.isNaN(a) ? null : a;
|
|
88
74
|
}
|
|
89
|
-
function
|
|
90
|
-
if (
|
|
75
|
+
function je(e, a) {
|
|
76
|
+
if (a <= 0) return "default";
|
|
91
77
|
const d = e - Date.now();
|
|
92
|
-
return d < 0 ? "default" : d <=
|
|
78
|
+
return d < 0 ? "default" : d <= a * He ? "soon" : "default";
|
|
93
79
|
}
|
|
94
|
-
function
|
|
95
|
-
const { t:
|
|
96
|
-
if (
|
|
97
|
-
return /* @__PURE__ */ g("span", { className: J({ tone: "empty" }), children:
|
|
98
|
-
const c =
|
|
80
|
+
function Ke(e) {
|
|
81
|
+
const { t: a } = $("ui"), { data: d, value: s, soonWithinDays: i = ze } = e, r = $e((d == null ? void 0 : d.nextAppointment) ?? s);
|
|
82
|
+
if (r === null)
|
|
83
|
+
return /* @__PURE__ */ g("span", { className: J({ tone: "empty" }), children: a("patientTable.nextAppointment.none") });
|
|
84
|
+
const c = je(r, i);
|
|
99
85
|
return /* @__PURE__ */ O("span", { className: J({ tone: c }), children: [
|
|
100
86
|
c === "soon" ? /* @__PURE__ */ g(Se, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }) : null,
|
|
101
|
-
/* @__PURE__ */ g(We, { value:
|
|
87
|
+
/* @__PURE__ */ g(We, { value: r, format: "relative", shape: "bare" })
|
|
102
88
|
] });
|
|
103
89
|
}
|
|
104
90
|
function q(e) {
|
|
105
91
|
return e.responsiveTier;
|
|
106
92
|
}
|
|
107
|
-
const
|
|
108
|
-
function
|
|
109
|
-
const d = (
|
|
110
|
-
|
|
111
|
-
}, s = (
|
|
112
|
-
icon:
|
|
113
|
-
label:
|
|
114
|
-
variant:
|
|
115
|
-
onClick: d(
|
|
116
|
-
...
|
|
93
|
+
const Ye = 6;
|
|
94
|
+
function qe(e, a) {
|
|
95
|
+
const d = (i) => (r) => {
|
|
96
|
+
a == null || a(i, r);
|
|
97
|
+
}, s = (i, r) => ({
|
|
98
|
+
icon: i.icon,
|
|
99
|
+
label: i.label,
|
|
100
|
+
variant: i.variant,
|
|
101
|
+
onClick: d(i),
|
|
102
|
+
...r
|
|
117
103
|
});
|
|
118
104
|
return [
|
|
119
105
|
s(
|
|
@@ -139,17 +125,17 @@ function Xe(e, i) {
|
|
|
139
125
|
icon: x(De, { "aria-hidden": "true" })
|
|
140
126
|
},
|
|
141
127
|
// Hidden when the patient has email contact disabled (spec).
|
|
142
|
-
{ hidden: (
|
|
128
|
+
{ hidden: (i) => !i.emailEnabled }
|
|
143
129
|
),
|
|
144
130
|
s(
|
|
145
131
|
{
|
|
146
132
|
id: "sendSmsReminder",
|
|
147
133
|
label: e("patientTable.actions.sendSmsReminder"),
|
|
148
|
-
icon: x(
|
|
134
|
+
icon: x(Ve, { "aria-hidden": "true" })
|
|
149
135
|
},
|
|
150
136
|
// Hidden when no phone number is SMS-enabled (spec).
|
|
151
137
|
{
|
|
152
|
-
hidden: (
|
|
138
|
+
hidden: (i) => !(i.phoneNumbers ?? []).some((r) => r.smsEnabled)
|
|
153
139
|
}
|
|
154
140
|
),
|
|
155
141
|
s(
|
|
@@ -170,37 +156,37 @@ function Xe(e, i) {
|
|
|
170
156
|
// Disabled (with a reason) for archived patients — the row model's
|
|
171
157
|
// closest "cannot delete" signal. Surfaced as the inline tooltip.
|
|
172
158
|
{
|
|
173
|
-
disabled: (
|
|
159
|
+
disabled: (i) => !!i.isArchived,
|
|
174
160
|
disabledReason: e("patientTable.actions.deleteLocked")
|
|
175
161
|
}
|
|
176
162
|
)
|
|
177
163
|
];
|
|
178
164
|
}
|
|
179
|
-
const
|
|
180
|
-
function
|
|
165
|
+
const Qe = () => !1, B = "✓", W = "—";
|
|
166
|
+
function Xe(e) {
|
|
181
167
|
if (!e) return null;
|
|
182
|
-
const
|
|
168
|
+
const a = new Date(e), d = a.getTime();
|
|
183
169
|
if (Number.isNaN(d)) return null;
|
|
184
170
|
const s = /* @__PURE__ */ new Date();
|
|
185
|
-
let
|
|
186
|
-
const
|
|
187
|
-
return (
|
|
171
|
+
let i = s.getFullYear() - a.getFullYear();
|
|
172
|
+
const r = s.getMonth() - a.getMonth();
|
|
173
|
+
return (r < 0 || r === 0 && s.getDate() < a.getDate()) && (i -= 1), i >= 0 ? i : null;
|
|
188
174
|
}
|
|
189
|
-
function
|
|
190
|
-
return e.map((
|
|
175
|
+
function Je(e) {
|
|
176
|
+
return e.map((a) => {
|
|
191
177
|
const s = {
|
|
192
|
-
colId: `custom:${
|
|
193
|
-
headerName:
|
|
178
|
+
colId: `custom:${a.fieldName}`,
|
|
179
|
+
headerName: a.label,
|
|
194
180
|
hide: !0
|
|
195
181
|
// No tier — custom fields are opt-in via ColumnToggle only.
|
|
196
182
|
};
|
|
197
|
-
return
|
|
183
|
+
return a.type === "checkbox" ? {
|
|
198
184
|
...s,
|
|
199
|
-
valueGetter: (
|
|
200
|
-
var
|
|
201
|
-
return ((c = (
|
|
185
|
+
valueGetter: (i) => {
|
|
186
|
+
var r, c;
|
|
187
|
+
return ((c = (r = i.data) == null ? void 0 : r.customFields) == null ? void 0 : c[a.fieldName]) === !0;
|
|
202
188
|
},
|
|
203
|
-
valueFormatter: (
|
|
189
|
+
valueFormatter: (i) => i.value === !0 ? B : W,
|
|
204
190
|
filter: R,
|
|
205
191
|
floatingFilterComponent: F,
|
|
206
192
|
filterParams: {
|
|
@@ -211,26 +197,26 @@ function et(e) {
|
|
|
211
197
|
},
|
|
212
198
|
minWidth: 110,
|
|
213
199
|
width: 130
|
|
214
|
-
} :
|
|
200
|
+
} : a.type === "dropdown" ? {
|
|
215
201
|
...s,
|
|
216
202
|
// TagListCellRenderer expects an array; wrap the single value.
|
|
217
|
-
valueGetter: (
|
|
203
|
+
valueGetter: (i) => {
|
|
218
204
|
var c, h;
|
|
219
|
-
const
|
|
220
|
-
return typeof
|
|
205
|
+
const r = (h = (c = i.data) == null ? void 0 : c.customFields) == null ? void 0 : h[a.fieldName];
|
|
206
|
+
return typeof r == "string" && r ? [r] : [];
|
|
221
207
|
},
|
|
222
|
-
cellRenderer:
|
|
223
|
-
filterValueGetter: (
|
|
208
|
+
cellRenderer: ie,
|
|
209
|
+
filterValueGetter: (i) => {
|
|
224
210
|
var c, h;
|
|
225
|
-
const
|
|
226
|
-
return typeof
|
|
211
|
+
const r = (h = (c = i.data) == null ? void 0 : c.customFields) == null ? void 0 : h[a.fieldName];
|
|
212
|
+
return typeof r == "string" ? r : "";
|
|
227
213
|
},
|
|
228
214
|
filter: R,
|
|
229
215
|
floatingFilterComponent: F,
|
|
230
216
|
filterParams: {
|
|
231
|
-
options: (
|
|
232
|
-
value:
|
|
233
|
-
label:
|
|
217
|
+
options: (a.options ?? []).map((i) => ({
|
|
218
|
+
value: i,
|
|
219
|
+
label: i
|
|
234
220
|
}))
|
|
235
221
|
},
|
|
236
222
|
sortable: !1,
|
|
@@ -238,10 +224,10 @@ function et(e) {
|
|
|
238
224
|
width: 160
|
|
239
225
|
} : {
|
|
240
226
|
...s,
|
|
241
|
-
valueGetter: (
|
|
227
|
+
valueGetter: (i) => {
|
|
242
228
|
var c, h;
|
|
243
|
-
const
|
|
244
|
-
return typeof
|
|
229
|
+
const r = (h = (c = i.data) == null ? void 0 : c.customFields) == null ? void 0 : h[a.fieldName];
|
|
230
|
+
return typeof r == "string" ? r : "";
|
|
245
231
|
},
|
|
246
232
|
filter: b,
|
|
247
233
|
floatingFilterComponent: p,
|
|
@@ -250,14 +236,14 @@ function et(e) {
|
|
|
250
236
|
};
|
|
251
237
|
});
|
|
252
238
|
}
|
|
253
|
-
function
|
|
239
|
+
function Ze(e, a = {}) {
|
|
254
240
|
const {
|
|
255
241
|
hideDetails: d = !1,
|
|
256
|
-
getActionsCompact: s =
|
|
257
|
-
onRowAction:
|
|
258
|
-
identityHref:
|
|
242
|
+
getActionsCompact: s = Qe,
|
|
243
|
+
onRowAction: i,
|
|
244
|
+
identityHref: r,
|
|
259
245
|
customFields: c = []
|
|
260
|
-
} =
|
|
246
|
+
} = a, h = qe(e, i), m = {
|
|
261
247
|
m: e("patientTable.gender.m"),
|
|
262
248
|
f: e("patientTable.gender.f"),
|
|
263
249
|
x: e("patientTable.gender.x")
|
|
@@ -269,7 +255,7 @@ function tt(e, i = {}) {
|
|
|
269
255
|
[u.yes]: "success",
|
|
270
256
|
[u.no]: "error",
|
|
271
257
|
[u.notSpecified]: "neutral"
|
|
272
|
-
},
|
|
258
|
+
}, l = (t) => e(`patientTable.column.${t}`);
|
|
273
259
|
return [
|
|
274
260
|
/* ── Avatar (P0, pinned-start) ─────────────────────────────────── */
|
|
275
261
|
{
|
|
@@ -279,7 +265,7 @@ function tt(e, i = {}) {
|
|
|
279
265
|
// TEXT is clipped via the kit's `sr-only-th` convention (clips only
|
|
280
266
|
// `.ag-header-cell-text`, keeping the header-cell box in the grid chrome
|
|
281
267
|
// and the name in the a11y tree — see ag-grid-theme.css).
|
|
282
|
-
headerName:
|
|
268
|
+
headerName: l("avatar"),
|
|
283
269
|
headerClass: "sr-only-th",
|
|
284
270
|
pinned: "left",
|
|
285
271
|
cellRenderer: Ne,
|
|
@@ -303,7 +289,7 @@ function tt(e, i = {}) {
|
|
|
303
289
|
/* ── First name (P0, pinned-start) — plain text ────────────────── */
|
|
304
290
|
{
|
|
305
291
|
colId: "firstName",
|
|
306
|
-
headerName:
|
|
292
|
+
headerName: l("firstName"),
|
|
307
293
|
pinned: "left",
|
|
308
294
|
field: "firstName",
|
|
309
295
|
filter: b,
|
|
@@ -317,15 +303,15 @@ function tt(e, i = {}) {
|
|
|
317
303
|
/* ── Last name (P0, pinned-start) — the patient-detail link ────── */
|
|
318
304
|
{
|
|
319
305
|
colId: "lastName",
|
|
320
|
-
headerName:
|
|
306
|
+
headerName: l("lastName"),
|
|
321
307
|
pinned: "left",
|
|
322
308
|
field: "lastName",
|
|
323
309
|
cellRenderer: we,
|
|
324
310
|
cellRendererParams: {
|
|
325
|
-
href:
|
|
311
|
+
href: r,
|
|
326
312
|
// When no detail href is supplied the cell renders a button; route its
|
|
327
313
|
// click through the same `show` row action.
|
|
328
|
-
onClick:
|
|
314
|
+
onClick: i ? (t) => i(
|
|
329
315
|
{ id: "show", label: e("patientTable.actions.show") },
|
|
330
316
|
t
|
|
331
317
|
) : void 0
|
|
@@ -341,7 +327,7 @@ function tt(e, i = {}) {
|
|
|
341
327
|
/* ── Phone (P1) ────────────────────────────────────────────────── */
|
|
342
328
|
{
|
|
343
329
|
colId: "phone",
|
|
344
|
-
headerName:
|
|
330
|
+
headerName: l("phone"),
|
|
345
331
|
responsiveTier: "P1",
|
|
346
332
|
// The primary phone number string (prefix + number).
|
|
347
333
|
valueGetter: (t) => {
|
|
@@ -356,10 +342,10 @@ function tt(e, i = {}) {
|
|
|
356
342
|
/* ── Next appointment (P1) ─────────────────────────────────────── */
|
|
357
343
|
{
|
|
358
344
|
colId: "nextAppointment",
|
|
359
|
-
headerName:
|
|
345
|
+
headerName: l("nextAppointment"),
|
|
360
346
|
responsiveTier: "P1",
|
|
361
347
|
field: "nextAppointment",
|
|
362
|
-
cellRenderer:
|
|
348
|
+
cellRenderer: Ke,
|
|
363
349
|
filter: _,
|
|
364
350
|
floatingFilterComponent: L,
|
|
365
351
|
minWidth: 160,
|
|
@@ -368,11 +354,11 @@ function tt(e, i = {}) {
|
|
|
368
354
|
/* ── Unpaid balance (P1) ───────────────────────────────────────── */
|
|
369
355
|
{
|
|
370
356
|
colId: "unpaidBalance",
|
|
371
|
-
headerName:
|
|
357
|
+
headerName: l("unpaidBalance"),
|
|
372
358
|
responsiveTier: "P1",
|
|
373
359
|
field: "unpaidAmount",
|
|
374
360
|
type: "numericColumn",
|
|
375
|
-
cellRenderer:
|
|
361
|
+
cellRenderer: Ge,
|
|
376
362
|
filter: H,
|
|
377
363
|
floatingFilterComponent: U,
|
|
378
364
|
// Money is integer cents; the inRange filter compares cents directly.
|
|
@@ -383,7 +369,7 @@ function tt(e, i = {}) {
|
|
|
383
369
|
/* ── Email (P2) — hidden when masking ──────────────────────────── */
|
|
384
370
|
{
|
|
385
371
|
colId: "email",
|
|
386
|
-
headerName:
|
|
372
|
+
headerName: l("email"),
|
|
387
373
|
responsiveTier: "P2",
|
|
388
374
|
field: "email",
|
|
389
375
|
// Emit `hide` ONLY when masking (never a literal `hide: false`). A static
|
|
@@ -398,10 +384,10 @@ function tt(e, i = {}) {
|
|
|
398
384
|
/* ── Care-plan status (P2) ─────────────────────────────────────── */
|
|
399
385
|
{
|
|
400
386
|
colId: "carePlanStatus",
|
|
401
|
-
headerName:
|
|
387
|
+
headerName: l("carePlanStatus"),
|
|
402
388
|
responsiveTier: "P2",
|
|
403
389
|
field: "carePlanStatus",
|
|
404
|
-
cellRenderer:
|
|
390
|
+
cellRenderer: Ue,
|
|
405
391
|
filter: R,
|
|
406
392
|
floatingFilterComponent: F,
|
|
407
393
|
filterParams: {
|
|
@@ -424,7 +410,7 @@ function tt(e, i = {}) {
|
|
|
424
410
|
/* ── Fiscal code (P3, text) ────────────────────────────────────── */
|
|
425
411
|
{
|
|
426
412
|
colId: "fiscalCode",
|
|
427
|
-
headerName:
|
|
413
|
+
headerName: l("fiscalCode"),
|
|
428
414
|
responsiveTier: "P3",
|
|
429
415
|
field: "italianFiscalCode",
|
|
430
416
|
filter: b,
|
|
@@ -435,14 +421,14 @@ function tt(e, i = {}) {
|
|
|
435
421
|
/* ── Age (P3, derived numeric) ─────────────────────────────────── */
|
|
436
422
|
{
|
|
437
423
|
colId: "age",
|
|
438
|
-
headerName:
|
|
424
|
+
headerName: l("age"),
|
|
439
425
|
responsiveTier: "P3",
|
|
440
426
|
// Left-aligned like the text columns — `numericColumn` (which right-aligns
|
|
441
427
|
// header + cell) is for ledger figures, not a 2-digit age. Sort stays
|
|
442
428
|
// numeric because the valueGetter returns a number.
|
|
443
429
|
valueGetter: (t) => {
|
|
444
430
|
var n;
|
|
445
|
-
return
|
|
431
|
+
return Xe((n = t.data) == null ? void 0 : n.dateOfBirth) ?? void 0;
|
|
446
432
|
},
|
|
447
433
|
filter: H,
|
|
448
434
|
floatingFilterComponent: U,
|
|
@@ -452,7 +438,7 @@ function tt(e, i = {}) {
|
|
|
452
438
|
/* ── Gender (P3) ───────────────────────────────────────────────── */
|
|
453
439
|
{
|
|
454
440
|
colId: "gender",
|
|
455
|
-
headerName:
|
|
441
|
+
headerName: l("gender"),
|
|
456
442
|
responsiveTier: "P3",
|
|
457
443
|
// Map the raw code to a localised label for both cell + set filter.
|
|
458
444
|
valueGetter: (t) => {
|
|
@@ -474,7 +460,7 @@ function tt(e, i = {}) {
|
|
|
474
460
|
/* ── Source (P3) ───────────────────────────────────────────────── */
|
|
475
461
|
{
|
|
476
462
|
colId: "source",
|
|
477
|
-
headerName:
|
|
463
|
+
headerName: l("source"),
|
|
478
464
|
responsiveTier: "P3",
|
|
479
465
|
// TagListCellRenderer expects an array; wrap the resolved source string.
|
|
480
466
|
valueGetter: (t) => {
|
|
@@ -482,7 +468,7 @@ function tt(e, i = {}) {
|
|
|
482
468
|
const n = ((o = t.data) == null ? void 0 : o.source) ?? ((f = t.data) == null ? void 0 : f.customSource);
|
|
483
469
|
return n ? [n] : [];
|
|
484
470
|
},
|
|
485
|
-
cellRenderer:
|
|
471
|
+
cellRenderer: ie,
|
|
486
472
|
filterValueGetter: (t) => {
|
|
487
473
|
var n, o;
|
|
488
474
|
return ((n = t.data) == null ? void 0 : n.source) ?? ((o = t.data) == null ? void 0 : o.customSource) ?? "";
|
|
@@ -496,7 +482,7 @@ function tt(e, i = {}) {
|
|
|
496
482
|
/* ── Grouped: Identity — hidden by default ─────────────────────── */
|
|
497
483
|
{
|
|
498
484
|
colId: "dateOfBirth",
|
|
499
|
-
headerName:
|
|
485
|
+
headerName: l("dateOfBirth"),
|
|
500
486
|
hide: !0,
|
|
501
487
|
field: "dateOfBirth",
|
|
502
488
|
cellRenderer: K,
|
|
@@ -508,7 +494,7 @@ function tt(e, i = {}) {
|
|
|
508
494
|
},
|
|
509
495
|
{
|
|
510
496
|
colId: "placeOfBirth",
|
|
511
|
-
headerName:
|
|
497
|
+
headerName: l("placeOfBirth"),
|
|
512
498
|
hide: !0,
|
|
513
499
|
field: "placeOfBirth",
|
|
514
500
|
filter: b,
|
|
@@ -518,7 +504,7 @@ function tt(e, i = {}) {
|
|
|
518
504
|
},
|
|
519
505
|
{
|
|
520
506
|
colId: "countryOfBirth",
|
|
521
|
-
headerName:
|
|
507
|
+
headerName: l("countryOfBirth"),
|
|
522
508
|
hide: !0,
|
|
523
509
|
field: "countryOfBirth",
|
|
524
510
|
filter: b,
|
|
@@ -529,7 +515,7 @@ function tt(e, i = {}) {
|
|
|
529
515
|
/* ── Grouped: Contact — hidden by default ──────────────────────── */
|
|
530
516
|
{
|
|
531
517
|
colId: "smsReminders",
|
|
532
|
-
headerName:
|
|
518
|
+
headerName: l("smsReminders"),
|
|
533
519
|
hide: !0,
|
|
534
520
|
valueGetter: (t) => {
|
|
535
521
|
var n;
|
|
@@ -549,7 +535,7 @@ function tt(e, i = {}) {
|
|
|
549
535
|
},
|
|
550
536
|
{
|
|
551
537
|
colId: "emailReminders",
|
|
552
|
-
headerName:
|
|
538
|
+
headerName: l("emailReminders"),
|
|
553
539
|
hide: !0,
|
|
554
540
|
valueGetter: (t) => {
|
|
555
541
|
var n;
|
|
@@ -569,7 +555,7 @@ function tt(e, i = {}) {
|
|
|
569
555
|
},
|
|
570
556
|
{
|
|
571
557
|
colId: "pec",
|
|
572
|
-
headerName:
|
|
558
|
+
headerName: l("pec"),
|
|
573
559
|
hide: !0,
|
|
574
560
|
field: "pecAddress",
|
|
575
561
|
filter: b,
|
|
@@ -580,7 +566,7 @@ function tt(e, i = {}) {
|
|
|
580
566
|
/* ── Grouped: Appointments — hidden by default ─────────────────── */
|
|
581
567
|
{
|
|
582
568
|
colId: "lastVisit",
|
|
583
|
-
headerName:
|
|
569
|
+
headerName: l("lastVisit"),
|
|
584
570
|
hide: !0,
|
|
585
571
|
field: "lastAppointment",
|
|
586
572
|
cellRenderer: K,
|
|
@@ -593,7 +579,7 @@ function tt(e, i = {}) {
|
|
|
593
579
|
/* ── Grouped: Financial — hidden by default ────────────────────── */
|
|
594
580
|
{
|
|
595
581
|
colId: "billableAmount",
|
|
596
|
-
headerName:
|
|
582
|
+
headerName: l("billableAmount"),
|
|
597
583
|
hide: !0,
|
|
598
584
|
type: "numericColumn",
|
|
599
585
|
cellRenderer: Te,
|
|
@@ -609,7 +595,7 @@ function tt(e, i = {}) {
|
|
|
609
595
|
},
|
|
610
596
|
{
|
|
611
597
|
colId: "discount",
|
|
612
|
-
headerName:
|
|
598
|
+
headerName: l("discount"),
|
|
613
599
|
hide: !0,
|
|
614
600
|
field: "defaultDiscount",
|
|
615
601
|
type: "numericColumn",
|
|
@@ -622,7 +608,7 @@ function tt(e, i = {}) {
|
|
|
622
608
|
/* ── Grouped: Clinical — hidden by default ─────────────────────── */
|
|
623
609
|
{
|
|
624
610
|
colId: "diagnosis",
|
|
625
|
-
headerName:
|
|
611
|
+
headerName: l("diagnosis"),
|
|
626
612
|
hide: !0,
|
|
627
613
|
field: "diagnosis",
|
|
628
614
|
filter: b,
|
|
@@ -632,7 +618,7 @@ function tt(e, i = {}) {
|
|
|
632
618
|
},
|
|
633
619
|
{
|
|
634
620
|
colId: "insurance",
|
|
635
|
-
headerName:
|
|
621
|
+
headerName: l("insurance"),
|
|
636
622
|
hide: !0,
|
|
637
623
|
field: "defaultInsurance",
|
|
638
624
|
filter: R,
|
|
@@ -642,7 +628,7 @@ function tt(e, i = {}) {
|
|
|
642
628
|
},
|
|
643
629
|
{
|
|
644
630
|
colId: "assignedTo",
|
|
645
|
-
headerName:
|
|
631
|
+
headerName: l("assignedTo"),
|
|
646
632
|
hide: !0,
|
|
647
633
|
cellRenderer: Ie,
|
|
648
634
|
valueGetter: (t) => {
|
|
@@ -661,7 +647,7 @@ function tt(e, i = {}) {
|
|
|
661
647
|
},
|
|
662
648
|
{
|
|
663
649
|
colId: "job",
|
|
664
|
-
headerName:
|
|
650
|
+
headerName: l("job"),
|
|
665
651
|
hide: !0,
|
|
666
652
|
field: "job",
|
|
667
653
|
filter: b,
|
|
@@ -672,7 +658,7 @@ function tt(e, i = {}) {
|
|
|
672
658
|
/* ── Grouped: Admin — hidden by default ────────────────────────── */
|
|
673
659
|
{
|
|
674
660
|
colId: "marketingConsent",
|
|
675
|
-
headerName:
|
|
661
|
+
headerName: l("marketingConsent"),
|
|
676
662
|
hide: !0,
|
|
677
663
|
cellRenderer: ye,
|
|
678
664
|
cellRendererParams: {
|
|
@@ -707,7 +693,7 @@ function tt(e, i = {}) {
|
|
|
707
693
|
},
|
|
708
694
|
{
|
|
709
695
|
colId: "patientNumber",
|
|
710
|
-
headerName:
|
|
696
|
+
headerName: l("patientNumber"),
|
|
711
697
|
hide: !0,
|
|
712
698
|
// `YYYY/N` yearly numbering.
|
|
713
699
|
valueGetter: (t) => {
|
|
@@ -722,7 +708,7 @@ function tt(e, i = {}) {
|
|
|
722
708
|
},
|
|
723
709
|
{
|
|
724
710
|
colId: "portal",
|
|
725
|
-
headerName:
|
|
711
|
+
headerName: l("portal"),
|
|
726
712
|
hide: !0,
|
|
727
713
|
valueGetter: (t) => {
|
|
728
714
|
var n;
|
|
@@ -742,7 +728,7 @@ function tt(e, i = {}) {
|
|
|
742
728
|
},
|
|
743
729
|
{
|
|
744
730
|
colId: "createdAt",
|
|
745
|
-
headerName:
|
|
731
|
+
headerName: l("createdAt"),
|
|
746
732
|
hide: !0,
|
|
747
733
|
field: "createdAt",
|
|
748
734
|
cellRenderer: K,
|
|
@@ -755,7 +741,7 @@ function tt(e, i = {}) {
|
|
|
755
741
|
/* ── Grouped: Address — hidden by default ──────────────────────── */
|
|
756
742
|
{
|
|
757
743
|
colId: "city",
|
|
758
|
-
headerName:
|
|
744
|
+
headerName: l("city"),
|
|
759
745
|
hide: !0,
|
|
760
746
|
field: "city",
|
|
761
747
|
filter: b,
|
|
@@ -765,7 +751,7 @@ function tt(e, i = {}) {
|
|
|
765
751
|
},
|
|
766
752
|
{
|
|
767
753
|
colId: "province",
|
|
768
|
-
headerName:
|
|
754
|
+
headerName: l("province"),
|
|
769
755
|
hide: !0,
|
|
770
756
|
field: "province",
|
|
771
757
|
filter: b,
|
|
@@ -775,7 +761,7 @@ function tt(e, i = {}) {
|
|
|
775
761
|
},
|
|
776
762
|
{
|
|
777
763
|
colId: "postcode",
|
|
778
|
-
headerName:
|
|
764
|
+
headerName: l("postcode"),
|
|
779
765
|
hide: !0,
|
|
780
766
|
field: "postcode",
|
|
781
767
|
filter: b,
|
|
@@ -785,7 +771,7 @@ function tt(e, i = {}) {
|
|
|
785
771
|
},
|
|
786
772
|
{
|
|
787
773
|
colId: "country",
|
|
788
|
-
headerName:
|
|
774
|
+
headerName: l("country"),
|
|
789
775
|
hide: !0,
|
|
790
776
|
field: "countryCode",
|
|
791
777
|
filter: b,
|
|
@@ -795,7 +781,7 @@ function tt(e, i = {}) {
|
|
|
795
781
|
},
|
|
796
782
|
{
|
|
797
783
|
colId: "street",
|
|
798
|
-
headerName:
|
|
784
|
+
headerName: l("street"),
|
|
799
785
|
hide: !0,
|
|
800
786
|
field: "street",
|
|
801
787
|
filter: b,
|
|
@@ -804,11 +790,11 @@ function tt(e, i = {}) {
|
|
|
804
790
|
width: 220
|
|
805
791
|
},
|
|
806
792
|
/* ── Custom fields (per-practice, dynamic) — appended, hidden ──── */
|
|
807
|
-
...
|
|
793
|
+
...Je(c),
|
|
808
794
|
/* ── Actions (P0, pinned-end) ──────────────────────────────────── */
|
|
809
795
|
{
|
|
810
796
|
colId: "actions",
|
|
811
|
-
headerName:
|
|
797
|
+
headerName: l("actions"),
|
|
812
798
|
// Pinned to the inline-end edge so actions stay reachable while the field
|
|
813
799
|
// columns scroll. AG Grid `pinned` is physical — the grid's `enableRtl`
|
|
814
800
|
// flips this to the start edge under RTL. Locked: neither a header drag
|
|
@@ -840,24 +826,24 @@ function tt(e, i = {}) {
|
|
|
840
826
|
}
|
|
841
827
|
];
|
|
842
828
|
}
|
|
843
|
-
const
|
|
829
|
+
const et = [
|
|
844
830
|
{ minWidth: 0, tier: "P0" },
|
|
845
831
|
{ minWidth: 640, tier: "P1" },
|
|
846
832
|
{ minWidth: 900, tier: "P2" },
|
|
847
833
|
{ minWidth: 1200, tier: "P3" }
|
|
848
834
|
];
|
|
849
|
-
function Z(e,
|
|
835
|
+
function Z(e, a) {
|
|
850
836
|
const d = /* @__PURE__ */ new Set();
|
|
851
|
-
for (const s of
|
|
837
|
+
for (const s of a)
|
|
852
838
|
e >= s.minWidth && d.add(s.tier);
|
|
853
839
|
return d.add("P0"), d;
|
|
854
840
|
}
|
|
855
|
-
function
|
|
841
|
+
function tt(e, a) {
|
|
856
842
|
const {
|
|
857
843
|
containerRef: d,
|
|
858
844
|
enabled: s = !0,
|
|
859
|
-
breakpoints:
|
|
860
|
-
} =
|
|
845
|
+
breakpoints: i = et
|
|
846
|
+
} = a, r = k(/* @__PURE__ */ new Set()), c = k(!1);
|
|
861
847
|
return ee(() => {
|
|
862
848
|
const m = d.current;
|
|
863
849
|
if (!s || !m) return;
|
|
@@ -868,17 +854,17 @@ function at(e, i) {
|
|
|
868
854
|
if (c.current || o.source === "api") return;
|
|
869
855
|
const f = o.columns ?? (o.column ? [o.column] : []);
|
|
870
856
|
for (const v of f)
|
|
871
|
-
|
|
857
|
+
r.current.add(v.getColId());
|
|
872
858
|
};
|
|
873
|
-
let
|
|
859
|
+
let l = !1;
|
|
874
860
|
const w = (o) => {
|
|
875
|
-
if (
|
|
876
|
-
|
|
877
|
-
const f = o.getColumns(), v = m.getBoundingClientRect().width, D = Z(v,
|
|
861
|
+
if (l) return;
|
|
862
|
+
l = !0;
|
|
863
|
+
const f = o.getColumns(), v = m.getBoundingClientRect().width, D = Z(v, i);
|
|
878
864
|
if (f)
|
|
879
865
|
for (const T of f) {
|
|
880
866
|
const I = q(T.getColDef());
|
|
881
|
-
I && !T.isVisible() && D.has(I) &&
|
|
867
|
+
I && !T.isVisible() && D.has(I) && r.current.add(T.getColId());
|
|
882
868
|
}
|
|
883
869
|
o.addEventListener("columnVisible", C);
|
|
884
870
|
}, t = () => {
|
|
@@ -887,10 +873,10 @@ function at(e, i) {
|
|
|
887
873
|
w(o);
|
|
888
874
|
const f = o.getColumns();
|
|
889
875
|
if (!f) return;
|
|
890
|
-
const v = m.getBoundingClientRect().width, D = Z(v,
|
|
876
|
+
const v = m.getBoundingClientRect().width, D = Z(v, i), T = [], I = [];
|
|
891
877
|
for (const S of f) {
|
|
892
878
|
const V = S.getColId();
|
|
893
|
-
if (
|
|
879
|
+
if (r.current.has(V)) continue;
|
|
894
880
|
const A = q(S.getColDef());
|
|
895
881
|
if (!A) continue;
|
|
896
882
|
const E = D.has(A);
|
|
@@ -909,31 +895,31 @@ function at(e, i) {
|
|
|
909
895
|
var o;
|
|
910
896
|
n.disconnect(), (o = u()) == null || o.removeEventListener("columnVisible", C);
|
|
911
897
|
};
|
|
912
|
-
}, [d, s,
|
|
913
|
-
for (const u of m)
|
|
898
|
+
}, [d, s, i, e]), { lockColumns: z((m) => {
|
|
899
|
+
for (const u of m) r.current.add(u);
|
|
914
900
|
}, []) };
|
|
915
901
|
}
|
|
916
|
-
function
|
|
917
|
-
var
|
|
918
|
-
return (
|
|
902
|
+
function nt(e) {
|
|
903
|
+
var a;
|
|
904
|
+
return (a = e.data) != null && a.isArchived ? "data-table-row-archived" : void 0;
|
|
919
905
|
}
|
|
920
|
-
function
|
|
906
|
+
function it(e) {
|
|
921
907
|
return e.data.id;
|
|
922
908
|
}
|
|
923
|
-
function
|
|
909
|
+
function at({
|
|
924
910
|
views: e,
|
|
925
|
-
handleRef:
|
|
911
|
+
handleRef: a,
|
|
926
912
|
lockColumns: d,
|
|
927
913
|
label: s
|
|
928
914
|
}) {
|
|
929
|
-
const [
|
|
915
|
+
const [i, r] = te(""), c = Y(
|
|
930
916
|
() => e.map((u) => ({ value: u.id, label: u.label })),
|
|
931
917
|
[e]
|
|
932
918
|
), h = z(
|
|
933
919
|
(u) => {
|
|
934
|
-
const C = e.find((t) => t.id === u),
|
|
935
|
-
if (!C || !
|
|
936
|
-
const w =
|
|
920
|
+
const C = e.find((t) => t.id === u), l = a.current;
|
|
921
|
+
if (!C || !l) return;
|
|
922
|
+
const w = l.getRawApi();
|
|
937
923
|
if (w) {
|
|
938
924
|
const t = new Set(C.columns), n = [], o = [];
|
|
939
925
|
for (const f of w.getColumns() ?? []) {
|
|
@@ -943,12 +929,12 @@ function lt({
|
|
|
943
929
|
}
|
|
944
930
|
d([...n, ...o]), n.length > 0 && w.setColumnsVisible(n, !0), o.length > 0 && w.setColumnsVisible(o, !1);
|
|
945
931
|
}
|
|
946
|
-
|
|
932
|
+
l.setFilter(C.filterModel), l.setSort(C.sortModel), w == null || w.onFilterChanged();
|
|
947
933
|
},
|
|
948
|
-
[e,
|
|
934
|
+
[e, a, d]
|
|
949
935
|
), m = z(
|
|
950
936
|
(u) => {
|
|
951
|
-
|
|
937
|
+
r(u), u && h(u);
|
|
952
938
|
},
|
|
953
939
|
[h]
|
|
954
940
|
);
|
|
@@ -960,7 +946,7 @@ function lt({
|
|
|
960
946
|
Ce,
|
|
961
947
|
{
|
|
962
948
|
options: c,
|
|
963
|
-
value:
|
|
949
|
+
value: i,
|
|
964
950
|
onValueChange: m,
|
|
965
951
|
size: "sm",
|
|
966
952
|
"aria-label": s
|
|
@@ -968,19 +954,19 @@ function lt({
|
|
|
968
954
|
) })
|
|
969
955
|
);
|
|
970
956
|
}
|
|
971
|
-
const
|
|
957
|
+
const lt = he(
|
|
972
958
|
function({
|
|
973
|
-
rowData:
|
|
959
|
+
rowData: a,
|
|
974
960
|
columns: d,
|
|
975
961
|
gridId: s,
|
|
976
|
-
density:
|
|
977
|
-
actionsCompact:
|
|
962
|
+
density: i,
|
|
963
|
+
actionsCompact: r,
|
|
978
964
|
heightClass: c,
|
|
979
965
|
responsive: h = !0,
|
|
980
966
|
views: m,
|
|
981
967
|
onRowAction: u,
|
|
982
968
|
bulkActions: C,
|
|
983
|
-
loading:
|
|
969
|
+
loading: l = !1,
|
|
984
970
|
toolbar: w,
|
|
985
971
|
hideQuickSearch: t = !1,
|
|
986
972
|
pagination: n = !0,
|
|
@@ -991,16 +977,16 @@ const ot = he(
|
|
|
991
977
|
"aria-label": T,
|
|
992
978
|
className: I
|
|
993
979
|
}, S) {
|
|
994
|
-
const { t: V } = $("ui"), A = k(null), E = k(null), [M,
|
|
980
|
+
const { t: V } = $("ui"), A = k(null), E = k(null), [M, le] = te(null);
|
|
995
981
|
pe(
|
|
996
982
|
S,
|
|
997
983
|
() => M ?? A.current,
|
|
998
984
|
[M]
|
|
999
985
|
);
|
|
1000
|
-
const { lockColumns:
|
|
986
|
+
const { lockColumns: re } = tt(A, {
|
|
1001
987
|
containerRef: E,
|
|
1002
988
|
enabled: h
|
|
1003
|
-
}), G =
|
|
989
|
+
}), G = r ?? i === "compact", Q = k(G), X = z(() => Q.current, []);
|
|
1004
990
|
ee(() => {
|
|
1005
991
|
var y;
|
|
1006
992
|
Q.current = G;
|
|
@@ -1008,12 +994,12 @@ const ot = he(
|
|
|
1008
994
|
N && (N.setColumnWidths([
|
|
1009
995
|
{
|
|
1010
996
|
key: "actions",
|
|
1011
|
-
newWidth: G ? 88 : ne(
|
|
997
|
+
newWidth: G ? 88 : ne(Ye)
|
|
1012
998
|
}
|
|
1013
999
|
]), N.refreshCells({ force: !0 }));
|
|
1014
1000
|
}, [G, M]);
|
|
1015
1001
|
const oe = Y(
|
|
1016
|
-
() => d ??
|
|
1002
|
+
() => d ?? Ze(V, {
|
|
1017
1003
|
hideDetails: f,
|
|
1018
1004
|
onRowAction: u,
|
|
1019
1005
|
identityHref: v,
|
|
@@ -1032,11 +1018,11 @@ const ot = he(
|
|
|
1032
1018
|
), se = ((m == null ? void 0 : m.length) ?? 0) > 0, de = /* @__PURE__ */ O(P.Toolbar, { children: [
|
|
1033
1019
|
/* @__PURE__ */ O(P.Toolbar.FilterBar, { children: [
|
|
1034
1020
|
se && m ? /* @__PURE__ */ g(
|
|
1035
|
-
|
|
1021
|
+
at,
|
|
1036
1022
|
{
|
|
1037
1023
|
views: m,
|
|
1038
1024
|
handleRef: A,
|
|
1039
|
-
lockColumns:
|
|
1025
|
+
lockColumns: re,
|
|
1040
1026
|
label: V("patientTable.views.label")
|
|
1041
1027
|
}
|
|
1042
1028
|
) : null,
|
|
@@ -1060,7 +1046,7 @@ const ot = he(
|
|
|
1060
1046
|
/* @__PURE__ */ g(P.Toolbar.ColumnToggle, {}),
|
|
1061
1047
|
/* @__PURE__ */ g(P.Toolbar.ExportMenu, {})
|
|
1062
1048
|
] })
|
|
1063
|
-
] }), ce = w ?? de, ue =
|
|
1049
|
+
] }), ce = w ?? de, ue = l ? void 0 : a, me = Y(() => ({ getRowId: it }), []);
|
|
1064
1050
|
return ve(
|
|
1065
1051
|
ge,
|
|
1066
1052
|
M,
|
|
@@ -1078,7 +1064,7 @@ const ot = he(
|
|
|
1078
1064
|
P,
|
|
1079
1065
|
{
|
|
1080
1066
|
ref: (N) => {
|
|
1081
|
-
A.current = N,
|
|
1067
|
+
A.current = N, le(
|
|
1082
1068
|
(y) => y === N ? y : N
|
|
1083
1069
|
);
|
|
1084
1070
|
},
|
|
@@ -1089,8 +1075,8 @@ const ot = he(
|
|
|
1089
1075
|
pagination: n,
|
|
1090
1076
|
...c !== void 0 ? { heightClass: c } : {},
|
|
1091
1077
|
...o !== void 0 ? { paginationPageSizeSelector: o } : {},
|
|
1092
|
-
density:
|
|
1093
|
-
getRowClass:
|
|
1078
|
+
density: i,
|
|
1079
|
+
getRowClass: nt,
|
|
1094
1080
|
gridOptions: me,
|
|
1095
1081
|
className: I,
|
|
1096
1082
|
children: ce
|
|
@@ -1100,15 +1086,15 @@ const ot = he(
|
|
|
1100
1086
|
);
|
|
1101
1087
|
}
|
|
1102
1088
|
);
|
|
1103
|
-
|
|
1089
|
+
lt.displayName = "PatientTable";
|
|
1104
1090
|
export {
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1091
|
+
Ge as B,
|
|
1092
|
+
Ue as C,
|
|
1093
|
+
Ke as N,
|
|
1094
|
+
Ye as P,
|
|
1095
|
+
lt as a,
|
|
1096
|
+
Ze as b,
|
|
1111
1097
|
q as g,
|
|
1112
|
-
|
|
1098
|
+
tt as u
|
|
1113
1099
|
};
|
|
1114
|
-
//# sourceMappingURL=patient-table-
|
|
1100
|
+
//# sourceMappingURL=patient-table-B6AKMTm3.js.map
|