@alfadocs/ui-kit 1.17.0 → 1.18.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.
@@ -1,5 +1,7 @@
1
1
  import type { CustomFilterProps, CustomFloatingFilterProps } from 'ag-grid-react';
2
2
  import type { IFilter } from 'ag-grid-community';
3
+ import { dayOf, fromIsoDate, toIsoDate } from '../calendar-day';
4
+ export { dayOf, fromIsoDate, toIsoDate };
3
5
  /**
4
6
  * Custom AG Grid filter component for date *ranges*. AG Grid Community's
5
7
  * built-in `agDateColumnFilter` only handles single-date comparison —
@@ -32,26 +34,6 @@ export interface DateRangeFilterParams {
32
34
  placeholder?: string;
33
35
  commitMode?: 'auto' | 'apply';
34
36
  }
35
- /**
36
- * The model stores calendar days (`YYYY-MM-DD`), never instants: a range is
37
- * "from this day to that day" in the user's own calendar. So the day is read
38
- * off the local date parts — `toISOString()` would shift a local midnight to
39
- * the previous day anywhere east of UTC.
40
- */
41
- export declare function toIsoDate(d: Date | undefined): string | null;
42
- /** A bare day parses as LOCAL midnight; anything with a time/offset as-is. */
43
- export declare function fromIsoDate(s: string | null | undefined): Date | undefined;
44
- /**
45
- * The calendar day a cell value stands for, as `YYYY-MM-DD`.
46
- *
47
- * An ISO string is read as the day it was WRITTEN with — `2026-04-15T17:32+02:00`
48
- * is the 15th and `1933-04-04T00:00+01:00` the 4th, whatever zone the browser
49
- * runs in. (Reducing the instant to the viewer's local day would move a
50
- * practice-local timestamp across midnight for anyone in another zone, and
51
- * made the result depend on the machine running the grid.) A `Date` has no
52
- * offset of its own, so it is read in local time.
53
- */
54
- export declare function dayOf(cellValue: unknown): string | null;
55
37
  /** Whether a cell's day lies within `[dateFrom, dateTo]` (either end open). */
56
38
  export declare function dayInRange(cellValue: unknown, dateFrom: string | null | undefined, dateTo: string | null | undefined): boolean;
57
39
  export declare function DateRangeFilter(props: CustomFilterProps<unknown, unknown, DateRangeFilterModel>): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { D as r, E as l, T as t, a as s, b as d, c as o, d as n, e as i, f as R, i as C, g as T } from "../../_chunks/data-table-DC5rO3Ty.js";
2
2
  import { B as g, C as D, a as b, E as x, b as c, R as p, T as u, c as m, r as E, u as f } from "../../_chunks/editable-currency-cell-renderer-B7TVZ5ZJ.js";
3
- import { D as h, a as A, b as w, I as y, L as I, N as L, c as N, S as P, d as W, e as B, T as U, f as _, g as k, U as v } from "../../_chunks/link-cell-renderer-CIASXsVM.js";
3
+ import { D as h, a as A, b as w, I as y, L as I, N as L, c as N, S as P, d as W, e as B, T as U, f as _, g as k, U as v } from "../../_chunks/link-cell-renderer-B-xrUPew.js";
4
4
  import { A as X, a as j } from "../../_chunks/actions-cell-renderer-yy03OgRL.js";
5
5
  export {
6
6
  X as ActionsCellRenderer,
@@ -6,6 +6,12 @@ export interface TransactionChipCellParams {
6
6
  positiveState: Extract<TransactionState, 'debt' | 'credit' | 'to-invoice'>;
7
7
  /** Show the state label beside the amount. Default `true` — a table cell has no other caption. */
8
8
  showLabel?: boolean;
9
+ /**
10
+ * ISO 4217 code for the amounts in this column. Defaults to the chip's own
11
+ * `EUR`; a practice billing in another currency must pass its own, or every
12
+ * cell claims euros.
13
+ */
14
+ currency?: string;
9
15
  }
10
16
  /**
11
17
  * Money column → `TransactionChip`, the kit's one financial-state pill (PRS
@@ -106,6 +106,12 @@ export interface BuildPatientColumnsOptions {
106
106
  * {@link PatientCustomFieldDef}.
107
107
  */
108
108
  customFields?: PatientCustomFieldDef[];
109
+ /**
110
+ * ISO 4217 code for the money columns (`unpaidBalance`, `billableAmount`).
111
+ * Defaults to `EUR`; a practice billing in another currency must pass its own,
112
+ * or every amount in the grid claims euros.
113
+ */
114
+ currency?: string;
109
115
  }
110
116
  /**
111
117
  * The fixed number of per-row actions the patient grid builds (show · edit ·
@@ -1,4 +1,4 @@
1
- import { B as s, C as l, N as n, P as t, a as C, T as i, b as o, g as T, u as p } from "../../_chunks/balance-badge-cell-CgkxYO96.js";
1
+ import { B as s, C as l, N as n, P as t, a as C, T as i, b as o, g as T, u as p } from "../../_chunks/balance-badge-cell-DNjHODfP.js";
2
2
  export {
3
3
  s as BalanceBadgeCell,
4
4
  l as CarePlanStatusCell,
@@ -164,6 +164,12 @@ export interface PatientTableProps {
164
164
  * supplied (the consumer owns their columns then).
165
165
  */
166
166
  customFields?: PatientCustomFieldDef[];
167
+ /**
168
+ * ISO 4217 code for the money columns. Forwarded to `buildPatientColumns`,
169
+ * ignored when `columns` is supplied. Defaults to `EUR`; a practice billing in
170
+ * another currency must pass its own, or every amount claims euros.
171
+ */
172
+ currency?: string;
167
173
  /** Override the default region aria-label (`ui.patientTable.regionLabel`). */
168
174
  'aria-label'?: string;
169
175
  /** Extra class names merged onto the inner grid wrapper. */
package/dist/index.js CHANGED
@@ -77,7 +77,7 @@ import { C as Kr } from "./_chunks/contact-card-0hnFJwrz.js";
77
77
  import { C as Xr } from "./_chunks/counter-dRlTNC_y.js";
78
78
  import { D as zr, E as jr, T as Qr, a as Jr, b as Zr, c as $r, d as ao, e as eo, f as so, i as ro, g as oo } from "./_chunks/data-table-DC5rO3Ty.js";
79
79
  import { B as no, C as io, a as po, E as mo, b as lo, R as Ao, T as co, c as fo, r as go, u as So } from "./_chunks/editable-currency-cell-renderer-B7TVZ5ZJ.js";
80
- import { D as To, a as xo, b as uo, I as Po, L as Io, N as Eo, c as Ro, S as _o, d as bo, e as No, T as Do, f as ho, g as Oo, U as Fo } from "./_chunks/link-cell-renderer-CIASXsVM.js";
80
+ import { D as To, a as xo, b as uo, I as Po, L as Io, N as Eo, c as Ro, S as _o, d as bo, e as No, T as Do, f as ho, g as Oo, U as Fo } from "./_chunks/link-cell-renderer-B-xrUPew.js";
81
81
  import { A as Mo, a as yo } from "./_chunks/actions-cell-renderer-yy03OgRL.js";
82
82
  import { D as Bo, d as Go, a as Ho, b as vo } from "./_chunks/data-table-tabs-D24qj89A.js";
83
83
  import { C as Uo, c as Vo } from "./_chunks/clinical-note-card-BBgFd2nB.js";
@@ -195,7 +195,7 @@ import { P as YA, p as XA } from "./_chunks/patient-details-BfzvFnxQ.js";
195
195
  import { P as zA, p as jA } from "./_chunks/patient-search-HeEUB-_X.js";
196
196
  import { P as JA, p as ZA } from "./_chunks/patient-summary-card-D5Vfa321.js";
197
197
  import { A as ac, a as ec } from "./_chunks/anamnesis-summary-card-DGVKBQoq.js";
198
- import { B as rc, C as oc, N as tc, P as nc, a as ic, T as pc, b as mc, g as lc, u as dc } from "./_chunks/balance-badge-cell-CgkxYO96.js";
198
+ import { B as rc, C as oc, N as tc, P as nc, a as ic, T as pc, b as mc, g as lc, u as dc } from "./_chunks/balance-badge-cell-DNjHODfP.js";
199
199
  import { B as cc, M as fc, P as gc, a as Sc, b as Cc, c as Tc, d as xc, S as uc, e as Pc, f as Ic, g as Ec, h as Rc, p as _c, i as bc, j as Nc, k as Dc, s as hc, t as Oc, l as Fc } from "./_chunks/periodontal-chart-B9fphroR.js";
200
200
  import { P as Mc, a as yc, p as kc } from "./_chunks/periodontal-chart-card-qEZPXj83.js";
201
201
  import { D as Gc, P as Hc, a as vc, b as wc, c as Uc, S as Vc, e as Wc, i as Kc, p as Yc } from "./_chunks/periodontal-diagnosis-HrFsVi-C.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "1.17.0",
3
+ "version": "1.18.0",
4
4
  "type": "module",
5
5
  "description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
6
6
  "license": "BUSL-1.1",