@alfadocs/ui-kit 1.9.4 → 1.10.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.
@@ -16,7 +16,7 @@ import { F as Nt, a as Tt } from "./file-Cwe9VC1A.js";
16
16
  import { F as Ft } from "./file-text-5yv6r2ls.js";
17
17
  import { F as At } from "./file-spreadsheet-DmwyfV4O.js";
18
18
  import { C as Dt } from "./chevron-right-I9AeSxH2.js";
19
- import { A as Rt, d as It, D as Te } from "./actions-cell-renderer-WUTyAes8.js";
19
+ import { A as Rt, d as It, D as Te } from "./actions-cell-renderer-BbzCqcld.js";
20
20
  import { B as $e } from "./badge-sTusUqZD.js";
21
21
  import { D as Ge } from "./download-CfYKJO_j.js";
22
22
  import { P as zt } from "./pen-line-D0De5zdl.js";
@@ -1756,4 +1756,4 @@ export {
1756
1756
  yn as F,
1757
1757
  Gt as f
1758
1758
  };
1759
- //# sourceMappingURL=file-manager-lAeBBfZi.js.map
1759
+ //# sourceMappingURL=file-manager-CRxq0UIl.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.9.4",
3
+ "packageVersion": "1.10.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -24,6 +24,17 @@ export interface DataTableHandle<TData = unknown> {
24
24
  clearSelection: () => void;
25
25
  getFilter: () => Record<string, unknown>;
26
26
  setFilter: (model: Record<string, unknown>) => void;
27
+ /**
28
+ * Columns whose visibility the user set by hand (ColumnToggle, column menu,
29
+ * drag). Persisted with the column state under `gridId`; a responsive
30
+ * baseline must leave them alone.
31
+ */
32
+ getUserTouchedColumns: () => string[];
33
+ /**
34
+ * Record columns as user-set — for programmatic writes that stand in for the
35
+ * user (a saved view), so they persist and stop being auto-managed.
36
+ */
37
+ markColumnsUserTouched: (colIds: readonly string[]) => void;
27
38
  getSort: () => DataTableSortEntry[];
28
39
  setSort: (model: DataTableSortEntry[]) => void;
29
40
  getCurrentPage: () => number;
@@ -1,4 +1,4 @@
1
- import { A as r, D as l, E as t, T as s, a as d, b as n, c as o, d as i, e as R, f as C, g as T, i as F, h as g } from "../../_chunks/actions-cell-renderer-WUTyAes8.js";
1
+ import { A as r, D as l, E as t, T as s, a as d, b as n, c as o, d as i, e as R, f as C, g as T, i as F, h as g } from "../../_chunks/actions-cell-renderer-BbzCqcld.js";
2
2
  import { B as b, C as c, a as u, E as x, b as p, R as E, T as m, c as f, r as h, u as S } from "../../_chunks/editable-currency-cell-renderer-zLf_bXvL.js";
3
3
  import { D as w, a as y, b as I, I as L, L as N, N as P, c as W, S as B, d as U, e as _, T as k, f as v, g as O, U as X } from "../../_chunks/link-cell-renderer-Cp2MSlJl.js";
4
4
  export {
@@ -6,9 +6,10 @@ export interface ToolbarProviderProps {
6
6
  getApi: () => GridApi | undefined;
7
7
  selectionCount: number;
8
8
  onPrint: () => void;
9
+ markColumnsUserTouched?: (colIds: readonly string[]) => void;
9
10
  children: ReactNode;
10
11
  }
11
- export declare function ToolbarProvider({ getApi, selectionCount, onPrint, children, }: ToolbarProviderProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function ToolbarProvider({ getApi, selectionCount, onPrint, markColumnsUserTouched, children, }: ToolbarProviderProps): import("react/jsx-runtime").JSX.Element;
12
13
  export type ToolbarRootProps = HTMLAttributes<HTMLDivElement>;
13
14
  type ToolbarIconButtonProps = Omit<IconButtonProps, 'icon' | 'aria-label' | 'tooltip' | 'onClick'> & {
14
15
  /** Accessible label — becomes the tooltip text and `aria-label`. */
@@ -62,6 +62,8 @@ export interface DataTableTabsProps extends VariantProps<typeof dataTableTabsTri
62
62
  * id is deliberately not persisted.
63
63
  */
64
64
  persistKey?: string;
65
+ /** Persist the active tab id too (needs `persistKey`). Default `false`. */
66
+ persistActiveTab?: boolean;
65
67
  /** Capture/restore the quick-filter text alongside the model. Default false. */
66
68
  captureQuickFilter?: boolean;
67
69
  /** Apply the active tab's model on mount + switch. Default true. */
@@ -1,4 +1,4 @@
1
- import { D as b, d as t, a as T, b as e } from "../../_chunks/data-table-tabs-C1kRUzat.js";
1
+ import { D as b, d as t, a as T, b as e } from "../../_chunks/data-table-tabs-D24qj89A.js";
2
2
  export {
3
3
  b as DataTableTabs,
4
4
  t as dataTableTabsAgent,
@@ -35,6 +35,13 @@ export interface UseDataTableFilterTabsOptions {
35
35
  onActiveTabChange?: (id: string) => void;
36
36
  /** Opt-in localStorage persistence — disabled while `tabs` is controlled. */
37
37
  persistKey?: string;
38
+ /**
39
+ * Also persist the active tab id (needs `persistKey`), so a return to the
40
+ * page lands on the tab — and the filter — the user left. Off by default:
41
+ * the kit's baseline lands on the first tab so a stale aggressive filter is
42
+ * never re-applied silently.
43
+ */
44
+ persistActiveTab?: boolean;
38
45
  /** Capture/restore `quickFilterText` alongside the model. Default false. */
39
46
  captureQuickFilter?: boolean;
40
47
  /** Apply the active tab's model on mount + tab switch. Default true. */
@@ -1,4 +1,4 @@
1
- import { F as r, f } from "../../_chunks/file-manager-lAeBBfZi.js";
1
+ import { F as r, f } from "../../_chunks/file-manager-CRxq0UIl.js";
2
2
  export {
3
3
  r as FileManager,
4
4
  f as fileManagerAgent
@@ -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-DHTiSFyD.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-DK9wxCxW.js";
2
2
  export {
3
3
  s as BalanceBadgeCell,
4
4
  l as CarePlanStatusCell,
@@ -36,10 +36,13 @@
36
36
  * pollute the set (and we additionally guard with a re-entrancy flag).
37
37
  * 3. Once a column is user-touched, the hook leaves it alone forever this
38
38
  * session — its visibility is whatever the user chose, which is what
39
- * `data-table.tsx` then persists on unmount. The persisted choice therefore
40
- * wins on the next mount too: we seed the user-touched set from the saved
41
- * column state so a previously hidden/shown column is treated as a manual
42
- * override and not clobbered by the baseline on re-entry.
39
+ * `data-table.tsx` then persists. The persisted choice therefore wins on
40
+ * the next mount too: the DataTable persists the user-touched set with
41
+ * its column state (`getUserTouchedColumns` / `markColumnsUserTouched` on
42
+ * the handle), and every reconcile pass reads it live.
43
+ * 4. A programmatic visibility write by someone else (the DataTable restoring
44
+ * persisted state, a columnDefs update) schedules one reconcile pass, so
45
+ * the baseline is re-asserted for untouched columns without a resize.
43
46
  *
44
47
  * CONSTRAINTS: no `any` (AG Grid's `ColumnEventType` is read off the typed event,
45
48
  * tier read via the typed `getResponsiveTier` helper). No DOM `data-*` attribute
package/dist/index.js CHANGED
@@ -75,14 +75,14 @@ import { C as Hr, c as vr } from "./_chunks/carousel.agent-CLxdHEBP.js";
75
75
  import { C as Ur, c as Vr } from "./_chunks/connection-status-DRZIcMqM.js";
76
76
  import { C as Kr } from "./_chunks/contact-card-0hnFJwrz.js";
77
77
  import { C as Xr } from "./_chunks/counter-dRlTNC_y.js";
78
- import { A as zr, D as jr, E as Qr, T as Jr, a as Zr, b as $r, c as ao, d as eo, e as so, f as ro, g as oo, i as to, h as no } from "./_chunks/actions-cell-renderer-WUTyAes8.js";
78
+ import { A as zr, D as jr, E as Qr, T as Jr, a as Zr, b as $r, c as ao, d as eo, e as so, f as ro, g as oo, i as to, h as no } from "./_chunks/actions-cell-renderer-BbzCqcld.js";
79
79
  import { B as po, C as mo, a as lo, E as Ao, b as co, R as fo, T as go, c as So, r as Co, u as To } from "./_chunks/editable-currency-cell-renderer-zLf_bXvL.js";
80
80
  import { D as uo, a as Po, b as Io, I as Eo, L as Ro, N as bo, c as _o, S as No, d as ho, e as Do, T as Oo, f as Fo, g as Lo, U as Mo } from "./_chunks/link-cell-renderer-Cp2MSlJl.js";
81
- import { D as ko, d as Bo, a as Go, b as Ho } from "./_chunks/data-table-tabs-C1kRUzat.js";
81
+ import { D as ko, d as Bo, a as Go, b as Ho } from "./_chunks/data-table-tabs-D24qj89A.js";
82
82
  import { C as wo, c as Uo } from "./_chunks/clinical-note-card-BBgFd2nB.js";
83
83
  import { D as Wo } from "./_chunks/description-list-CjJqR8WK.js";
84
84
  import { E as Yo } from "./_chunks/empty-state-X0sVPfVo.js";
85
- import { F as qo, f as zo } from "./_chunks/file-manager-lAeBBfZi.js";
85
+ import { F as qo, f as zo } from "./_chunks/file-manager-CRxq0UIl.js";
86
86
  import { F as Qo, a as Jo, h as Zo } from "./_chunks/flag-DVBE6DnB.js";
87
87
  import { K as at, k as et } from "./_chunks/kbd-D855ZXIW.js";
88
88
  import { K as rt, a as ot } from "./_chunks/key-value-pair-BubG4fUa.js";
@@ -193,7 +193,7 @@ import { P as WA, p as KA } from "./_chunks/patient-details-xrqe13az.js";
193
193
  import { P as XA, p as qA } from "./_chunks/patient-search-D5ufYoRc.js";
194
194
  import { P as jA, p as QA } from "./_chunks/patient-summary-card-CBfuDvJ5.js";
195
195
  import { A as ZA, a as $A } from "./_chunks/anamnesis-summary-card-DGVKBQoq.js";
196
- import { B as ec, C as sc, N as rc, P as oc, a as tc, T as nc, b as ic, g as pc, u as mc } from "./_chunks/balance-badge-cell-DHTiSFyD.js";
196
+ import { B as ec, C as sc, N as rc, P as oc, a as tc, T as nc, b as ic, g as pc, u as mc } from "./_chunks/balance-badge-cell-DK9wxCxW.js";
197
197
  import { B as dc, M as Ac, P as cc, a as fc, b as gc, c as Sc, d as Cc, S as Tc, e as xc, f as uc, g as Pc, h as Ic, p as Ec, i as Rc, j as bc, k as _c, s as Nc, t as hc, l as Dc } from "./_chunks/periodontal-chart-BatZEFar.js";
198
198
  import { P as Fc, a as Lc, p as Mc } from "./_chunks/periodontal-chart-card-BBpY_rBc.js";
199
199
  import { D as kc, P as Bc, a as Gc, b as Hc, c as vc, S as wc, e as Uc, i as Vc, p as Wc } 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.9.4",
3
+ "version": "1.10.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",