@alfadocs/ui-kit 0.20.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{agenda-card-CsCm7hQv.js → agenda-card-BmpaUG1h.js} +2 -2
- package/dist/_chunks/{agenda-tray-B8QZ3wEp.js → agenda-tray-DiInnVqk.js} +2 -2
- package/dist/_chunks/{alert-DBnawbmf.js → alert-ywPR59NE.js} +14 -1
- package/dist/_chunks/{alia-sidebar-Bof6TlFx.js → alia-sidebar-CUi2UCbY.js} +3 -3
- package/dist/_chunks/{audio-recorder-DNkQLW1G.js → audio-recorder-D4xM3H5i.js} +2 -2
- package/dist/_chunks/{avatar-I10iCDs8.js → avatar-BpFohgWG.js} +24 -16
- package/dist/_chunks/{chat-message-ChOnwqf_.js → chat-message-W3k8rLOA.js} +2 -2
- package/dist/_chunks/editable-currency-cell-renderer-1t42gENX.js +1972 -0
- package/dist/_chunks/{freemium-paywall-DXc7XlGE.js → freemium-paywall-CM6V1zNf.js} +2 -2
- package/dist/_chunks/grip-vertical-Dlg0_k5C.js +19 -0
- package/dist/_chunks/key-value-pair-DBuOCtIc.js +98 -0
- package/dist/_chunks/{message-card-c6R0-qXq.js → message-card-i61k1TGc.js} +2 -2
- package/dist/_chunks/{message-tray-BNAS8al4.js → message-tray-DrV7G-wR.js} +2 -2
- package/dist/_chunks/{patient-shell-Dr64lBp_.js → patient-shell-DavGODt9.js} +2 -2
- package/dist/_chunks/{payment-form-BjkuQeqR.js → payment-form-F7uh0Rqr.js} +2 -2
- package/dist/_chunks/{pdf-viewer-BG_nsFT5.js → pdf-viewer-CuYaVR1I.js} +2 -2
- package/dist/_chunks/{sidebar-BqzlRBvC.js → sidebar-DkyC6GvS.js} +167 -180
- package/dist/_chunks/{timeline-rmls7dIh.js → timeline-Czeqr3HF.js} +2 -2
- package/dist/_chunks/{warning-stack-CDH9TudY.js → warning-stack-bDicCvxs.js} +2 -2
- package/dist/_chunks/{whatsapp-button-Bj5FIhpC.js → whatsapp-button-CtlLwM3M.js} +14 -3
- package/dist/_chunks/{workflow-map-BeKe23uw.js → workflow-map-712GL-8u.js} +3 -3
- package/dist/agent-catalog.json +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/data-table/cell-renderers/balance-cell-renderer.d.ts +37 -0
- package/dist/components/data-table/filters/date-range-filter.d.ts +12 -1
- package/dist/components/data-table/filters/select-filter.d.ts +58 -0
- package/dist/components/data-table/filters/typeahead-filter.d.ts +52 -0
- package/dist/components/data-table/index.d.ts +5 -1
- package/dist/components/data-table/index.js +23 -18
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/key-value-pair/key-value-pair.d.ts +19 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/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/sidebar/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/whatsapp-button/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/config.js +34 -4
- package/dist/i18n/resources.d.ts +30 -0
- package/dist/index.js +399 -394
- package/dist/locales/de.json +10 -0
- package/dist/locales/en.json +10 -0
- package/dist/locales/it.json +10 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +2 -2
- package/package.json +1 -1
- package/dist/_chunks/editable-currency-cell-renderer-CqMs0Y8L.js +0 -1590
- package/dist/_chunks/key-value-pair-AbrRwesr.js +0 -76
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as m, useMemo as p, useRef as w, useState as V, useCallback as I, useImperativeHandle as O, useContext as v, createContext as C } from "react";
|
|
3
3
|
import { c as b } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as A } from "react-i18next";
|
|
5
|
-
import { A as P } from "./avatar-
|
|
5
|
+
import { A as P } from "./avatar-BpFohgWG.js";
|
|
6
6
|
import { C as N } from "./card-CWzuTLYE.js";
|
|
7
7
|
import { T as B } from "./timestamp-BV2lC-wV.js";
|
|
8
8
|
import { u as H } from "./registry-C9nwlNyL.js";
|
|
@@ -276,4 +276,4 @@ export {
|
|
|
276
276
|
le as T,
|
|
277
277
|
K as t
|
|
278
278
|
};
|
|
279
|
-
//# sourceMappingURL=timeline-
|
|
279
|
+
//# sourceMappingURL=timeline-Czeqr3HF.js.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as M, useId as N, useState as O, useRef as y, useEffect as V, useMemo as _, useCallback as j } from "react";
|
|
3
3
|
import { c as W } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as q } from "react-i18next";
|
|
5
|
-
import { A as u } from "./alert-
|
|
5
|
+
import { A as u } from "./alert-ywPR59NE.js";
|
|
6
6
|
import { B as F } from "./button-DD_0Xdmr.js";
|
|
7
7
|
import { C as H } from "./chevron-down-BX_NP2Yh.js";
|
|
8
8
|
const L = W(
|
|
@@ -176,4 +176,4 @@ P.displayName = "WarningStack";
|
|
|
176
176
|
export {
|
|
177
177
|
P as W
|
|
178
178
|
};
|
|
179
|
-
//# sourceMappingURL=warning-stack-
|
|
179
|
+
//# sourceMappingURL=warning-stack-bDicCvxs.js.map
|
|
@@ -17,7 +17,13 @@ function u({ className: a }) {
|
|
|
17
17
|
}
|
|
18
18
|
const _ = m(
|
|
19
19
|
[
|
|
20
|
-
|
|
20
|
+
// `position` is provided by `positionVariants` below — `static`
|
|
21
|
+
// sets `ds:relative` (so the pseudo-element touch-target anchors),
|
|
22
|
+
// `bottom-end` / `bottom-start` set `ds:fixed`. Keeping `relative`
|
|
23
|
+
// off the base avoids the cascade conflict that made `position:
|
|
24
|
+
// relative` win against `position: fixed` in the compiled CSS
|
|
25
|
+
// (booking-website was patching with `style={{position:'fixed'}}`).
|
|
26
|
+
"ds:inline-flex ds:items-center ds:justify-center",
|
|
21
27
|
"ds:font-medium ds:whitespace-nowrap",
|
|
22
28
|
"ds:bg-[var(--brand-whatsapp)] ds:text-[var(--brand-whatsapp-foreground)]",
|
|
23
29
|
"ds:hover:bg-[var(--brand-whatsapp-hover)]",
|
|
@@ -100,7 +106,12 @@ const _ = m(
|
|
|
100
106
|
), j = m("", {
|
|
101
107
|
variants: {
|
|
102
108
|
position: {
|
|
103
|
-
|
|
109
|
+
// `relative` so the `::before` pseudo touch-target (defined in
|
|
110
|
+
// the `pill sm` / `fab sm` compound variants) anchors to the
|
|
111
|
+
// button's box. The fixed-positioning variants below don't need
|
|
112
|
+
// this — `position: fixed` is itself a positioning context for
|
|
113
|
+
// descendants and pseudo-elements.
|
|
114
|
+
static: "ds:relative",
|
|
104
115
|
"bottom-end": "ds:fixed ds:z-[var(--z-fixed)] ds:bottom-[calc(var(--spacing-lg)+env(safe-area-inset-bottom,0px))] ds:end-[var(--spacing-lg)]",
|
|
105
116
|
"bottom-start": "ds:fixed ds:z-[var(--z-fixed)] ds:bottom-[calc(var(--spacing-lg)+env(safe-area-inset-bottom,0px))] ds:start-[var(--spacing-lg)]"
|
|
106
117
|
}
|
|
@@ -172,4 +183,4 @@ N.displayName = "WhatsAppButton";
|
|
|
172
183
|
export {
|
|
173
184
|
N as W
|
|
174
185
|
};
|
|
175
|
-
//# sourceMappingURL=whatsapp-button-
|
|
186
|
+
//# sourceMappingURL=whatsapp-button-CtlLwM3M.js.map
|
|
@@ -4,13 +4,13 @@ import { c as L } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as z } from "react-i18next";
|
|
5
5
|
import { C } from "./card-CWzuTLYE.js";
|
|
6
6
|
import { B as be } from "./badge-cLYVGlMh.js";
|
|
7
|
-
import { K as Z } from "./key-value-pair-
|
|
7
|
+
import { K as Z } from "./key-value-pair-DBuOCtIc.js";
|
|
8
8
|
import { T as xe } from "./timestamp-BV2lC-wV.js";
|
|
9
9
|
import { I as S } from "./icon-button-C4CGcYuz.js";
|
|
10
10
|
import { c as _ } from "./createLucideIcon-CrFbzy84.js";
|
|
11
11
|
import { C as Ne } from "./circle-BkqTgYmt.js";
|
|
12
12
|
import { u as Ce } from "./registry-C9nwlNyL.js";
|
|
13
|
-
import { A as V } from "./alert-
|
|
13
|
+
import { A as V } from "./alert-ywPR59NE.js";
|
|
14
14
|
import { B as _e } from "./button-DD_0Xdmr.js";
|
|
15
15
|
import { D as N } from "./dropdown-menu-DZxwF23X.js";
|
|
16
16
|
import { E } from "./empty-state-3CLJIXSj.js";
|
|
@@ -1412,4 +1412,4 @@ export {
|
|
|
1412
1412
|
ee as r,
|
|
1413
1413
|
D as w
|
|
1414
1414
|
};
|
|
1415
|
-
//# sourceMappingURL=workflow-map-
|
|
1415
|
+
//# sourceMappingURL=workflow-map-712GL-8u.js.map
|
package/dist/agent-catalog.json
CHANGED
|
@@ -9,7 +9,7 @@ export declare function nameToColorClass(name: string): string;
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function getInitials(name: string): string;
|
|
11
11
|
declare const avatarVariants: (props?: ({
|
|
12
|
-
size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
|
|
12
|
+
size?: "sm" | "md" | "lg" | "xl" | "xs" | "2xl" | "3xl" | null | undefined;
|
|
13
13
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
14
14
|
export interface AvatarProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'color'>, VariantProps<typeof avatarVariants> {
|
|
15
15
|
/** Image source URL. When provided and loads successfully, the image is displayed. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ColDef } from 'ag-grid-community';
|
|
1
2
|
import type { CustomCellRendererProps } from 'ag-grid-react';
|
|
2
3
|
export interface BalanceLine {
|
|
3
4
|
/** User-visible label for this line. */
|
|
@@ -14,5 +15,41 @@ export interface BalanceCellRendererParams {
|
|
|
14
15
|
/** Apply destructive color to negative values. */
|
|
15
16
|
highlightNegative?: boolean;
|
|
16
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Renders a compact set of label / value pairs inside a single AG Grid cell.
|
|
20
|
+
*
|
|
21
|
+
* Layout is **horizontal** with middle-dot separators so the cell fits
|
|
22
|
+
* inside the default AG Grid row height without spilling into the row
|
|
23
|
+
* below. Use the SALDI / Listini patterns (Totale · Incassato · Da Incassare)
|
|
24
|
+
* as the canonical example.
|
|
25
|
+
*
|
|
26
|
+
* If a consumer's content wraps (long localized labels, narrow columns)
|
|
27
|
+
* they can opt into row auto-growth by spreading
|
|
28
|
+
* {@link balanceCellRendererColDefDefaults} onto the column definition.
|
|
29
|
+
*/
|
|
17
30
|
export declare function BalanceCellRenderer<TData = unknown>(props: CustomCellRendererProps<TData> & BalanceCellRendererParams): import("react/jsx-runtime").JSX.Element | null;
|
|
31
|
+
/**
|
|
32
|
+
* Column-definition defaults consumers can spread onto a `ColDef` when they
|
|
33
|
+
* want the renderer's wrapped / multi-line behaviour to grow the row.
|
|
34
|
+
*
|
|
35
|
+
* The default compact horizontal layout is engineered to fit the standard
|
|
36
|
+
* AG Grid row height, so this opt-in is only needed when a long label set
|
|
37
|
+
* wraps across two or more lines and the consumer would rather grow the
|
|
38
|
+
* row than wrap silently.
|
|
39
|
+
*
|
|
40
|
+
* AG Grid does NOT auto-grow row height to fit a tall cell unless
|
|
41
|
+
* `autoHeight` and `wrapText` are set on the colDef itself — a cell
|
|
42
|
+
* renderer can't impose that from inside.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* {
|
|
47
|
+
* headerName: 'Saldi',
|
|
48
|
+
* cellRenderer: BalanceCellRenderer,
|
|
49
|
+
* cellRendererParams: { lines, currency: 'EUR' },
|
|
50
|
+
* ...balanceCellRendererColDefDefaults,
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
export declare const balanceCellRendererColDefDefaults: Readonly<Pick<ColDef, 'autoHeight' | 'wrapText'>>;
|
|
18
55
|
//# sourceMappingURL=balance-cell-renderer.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { CustomFilterProps } from 'ag-grid-react';
|
|
1
|
+
import type { CustomFilterProps, CustomFloatingFilterProps } from 'ag-grid-react';
|
|
2
|
+
import type { IFilter } from 'ag-grid-community';
|
|
2
3
|
/**
|
|
3
4
|
* Custom AG Grid filter component for date *ranges*. AG Grid Community's
|
|
4
5
|
* built-in `agDateColumnFilter` only handles single-date comparison —
|
|
@@ -19,4 +20,14 @@ export interface DateRangeFilterModel {
|
|
|
19
20
|
dateTo: string | null;
|
|
20
21
|
}
|
|
21
22
|
export declare function DateRangeFilter(props: CustomFilterProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
/**
|
|
24
|
+
* Floating-filter companion for `DateRangeFilter`.
|
|
25
|
+
*
|
|
26
|
+
* Renders the kit's `<DateRangePicker>` directly as the floating-filter
|
|
27
|
+
* input — its built-in trigger button + calendar popover IS the filter
|
|
28
|
+
* UI. Earlier versions wrapped the picker in a second `<Popover>`,
|
|
29
|
+
* producing the "click → empty popover with another trigger → click
|
|
30
|
+
* again → calendar" double-step that read as duplicated UI.
|
|
31
|
+
*/
|
|
32
|
+
export declare function DateRangeFloatingFilter(props: CustomFloatingFilterProps<IFilter, unknown, unknown, DateRangeFilterModel>): import("react/jsx-runtime").JSX.Element;
|
|
22
33
|
//# sourceMappingURL=date-range-filter.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { CustomFilterProps, CustomFloatingFilterProps } from 'ag-grid-react';
|
|
2
|
+
import type { IFilter } from 'ag-grid-community';
|
|
3
|
+
/**
|
|
4
|
+
* Custom AG Grid filter component — multi-select facet filter.
|
|
5
|
+
*
|
|
6
|
+
* The Community-friendly equivalent of AG Grid Enterprise's
|
|
7
|
+
* `agSetColumnFilter`. Surfaces a checkbox list of every value the column
|
|
8
|
+
* can take, so users tick to include / untick to exclude. Much faster than
|
|
9
|
+
* the default `agTextColumnFilter` for closed enums (status, room,
|
|
10
|
+
* operator).
|
|
11
|
+
*
|
|
12
|
+
* Wire on a colDef:
|
|
13
|
+
* ```tsx
|
|
14
|
+
* {
|
|
15
|
+
* field: 'status',
|
|
16
|
+
* filter: SelectFilter,
|
|
17
|
+
* filterParams: {
|
|
18
|
+
* options: [
|
|
19
|
+
* { value: 'open', label: 'Aperte' },
|
|
20
|
+
* { value: 'paid', label: 'Pagate' },
|
|
21
|
+
* ],
|
|
22
|
+
* },
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* Model shape `{ type: 'set', values: Array<string | number> }` matches
|
|
27
|
+
* AG Grid Enterprise's set-filter convention so server-side adapters can
|
|
28
|
+
* read either implementation the same way.
|
|
29
|
+
*/
|
|
30
|
+
export interface SelectFilterOption {
|
|
31
|
+
value: string | number;
|
|
32
|
+
label: string;
|
|
33
|
+
}
|
|
34
|
+
export interface SelectFilterModel {
|
|
35
|
+
type: 'set';
|
|
36
|
+
values: Array<string | number>;
|
|
37
|
+
}
|
|
38
|
+
export interface SelectFilterParams {
|
|
39
|
+
options?: SelectFilterOption[];
|
|
40
|
+
placeholder?: string;
|
|
41
|
+
}
|
|
42
|
+
export declare function SelectFilter(props: CustomFilterProps<unknown, unknown, SelectFilterModel> & SelectFilterParams): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
/**
|
|
44
|
+
* Floating-filter companion for `SelectFilter`.
|
|
45
|
+
*
|
|
46
|
+
* Renders the kit's `<MultiSelect>` directly as the floating-filter
|
|
47
|
+
* input — its built-in trigger + checkbox dropdown IS the filter UI.
|
|
48
|
+
* Earlier versions wrapped MultiSelect in another `<Popover>`,
|
|
49
|
+
* producing the "click trigger → empty popover with another trigger →
|
|
50
|
+
* click → checkbox list" double-step that read as duplicated UI.
|
|
51
|
+
*
|
|
52
|
+
* MultiSelect's options use `string` values; we string-convert the
|
|
53
|
+
* model's `(string | number)[]` for the trigger and parse back on
|
|
54
|
+
* apply. The grid model still tracks the original primitive types so
|
|
55
|
+
* `doesFilterPass` keeps matching numeric columns correctly.
|
|
56
|
+
*/
|
|
57
|
+
export declare function SelectFloatingFilter(props: CustomFloatingFilterProps<IFilter, unknown, unknown, SelectFilterModel>): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
//# sourceMappingURL=select-filter.d.ts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { CustomFilterProps, CustomFloatingFilterProps } from 'ag-grid-react';
|
|
2
|
+
import type { IFilter } from 'ag-grid-community';
|
|
3
|
+
/**
|
|
4
|
+
* Custom AG Grid filter component — single-select typeahead filter.
|
|
5
|
+
*
|
|
6
|
+
* Wraps the kit's existing `<Autocomplete>` so the user types to filter a
|
|
7
|
+
* bounded-but-large set of values (e.g. patient names), picks one
|
|
8
|
+
* suggestion, and the grid filters to rows matching that value exactly.
|
|
9
|
+
*
|
|
10
|
+
* Wire on a colDef:
|
|
11
|
+
* ```tsx
|
|
12
|
+
* {
|
|
13
|
+
* field: 'patient',
|
|
14
|
+
* filter: TypeaheadFilter,
|
|
15
|
+
* filterParams: {
|
|
16
|
+
* options: PATIENTS.map(p => ({ value: p.name, label: p.name })),
|
|
17
|
+
* },
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* Model shape `{ type: 'equals', value: string }` matches AG Grid's
|
|
22
|
+
* text-filter `equals` convention so server-side adapters can read either
|
|
23
|
+
* implementation the same way.
|
|
24
|
+
*/
|
|
25
|
+
export interface TypeaheadFilterOption {
|
|
26
|
+
value: string;
|
|
27
|
+
label: string;
|
|
28
|
+
}
|
|
29
|
+
export interface TypeaheadFilterModel {
|
|
30
|
+
type: 'equals';
|
|
31
|
+
value: string;
|
|
32
|
+
}
|
|
33
|
+
export interface TypeaheadFilterParams {
|
|
34
|
+
options?: TypeaheadFilterOption[];
|
|
35
|
+
loadOptions?: (input: string, opts: {
|
|
36
|
+
signal: AbortSignal;
|
|
37
|
+
locale: string;
|
|
38
|
+
}) => Promise<TypeaheadFilterOption[]>;
|
|
39
|
+
placeholder?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare function TypeaheadFilter(props: CustomFilterProps<unknown, unknown, TypeaheadFilterModel> & TypeaheadFilterParams): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
/**
|
|
43
|
+
* Floating-filter companion for `TypeaheadFilter`.
|
|
44
|
+
*
|
|
45
|
+
* Renders the kit's `<Autocomplete>` directly as the floating-filter
|
|
46
|
+
* input — its built-in text input + portaled dropdown IS the filter
|
|
47
|
+
* UI. Earlier versions wrapped Autocomplete in a second `<Popover>`,
|
|
48
|
+
* producing the "click trigger → popover with another search input →
|
|
49
|
+
* type → list appears" double-step that read as duplicated UI.
|
|
50
|
+
*/
|
|
51
|
+
export declare function TypeaheadFloatingFilter(props: CustomFloatingFilterProps<IFilter, unknown, unknown, TypeaheadFilterModel>): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
//# sourceMappingURL=typeahead-filter.d.ts.map
|
|
@@ -4,8 +4,12 @@ export { dataTableAgent } from './data-table.agent';
|
|
|
4
4
|
export { Toolbar, ToolbarProvider, defaultExportPdf } from './toolbar';
|
|
5
5
|
export type { ToolbarProviderProps, ToolbarRootProps, ExportCsvProps, ExportPdfProps, PrintProps, ColumnToggleProps, BulkActionProps, QuickSearchProps, RefreshButtonProps, FacetFilterOption, FacetFilterProps, ExportFormat, ExportMenuProps, ExportMenuItemProps, } from './toolbar';
|
|
6
6
|
export { useTotalRow } from './hooks/use-total-row';
|
|
7
|
-
export { DateRangeFilter } from './filters/date-range-filter';
|
|
7
|
+
export { DateRangeFilter, DateRangeFloatingFilter, } from './filters/date-range-filter';
|
|
8
8
|
export type { DateRangeFilterModel } from './filters/date-range-filter';
|
|
9
|
+
export { SelectFilter, SelectFloatingFilter } from './filters/select-filter';
|
|
10
|
+
export type { SelectFilterModel, SelectFilterOption, SelectFilterParams, } from './filters/select-filter';
|
|
11
|
+
export { TypeaheadFilter, TypeaheadFloatingFilter, } from './filters/typeahead-filter';
|
|
12
|
+
export type { TypeaheadFilterModel, TypeaheadFilterOption, TypeaheadFilterParams, } from './filters/typeahead-filter';
|
|
9
13
|
export { StatusCellRenderer } from './cell-renderers/status-cell-renderer';
|
|
10
14
|
export type { BadgeVariant, StatusCellRendererParams, } from './cell-renderers/status-cell-renderer';
|
|
11
15
|
export { UserCellRenderer } from './cell-renderers/user-cell-renderer';
|
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as l, B as r, C as s, a as t, D as n, b as d, c as o, d as C, E as i, e as R, I as g, L as T, S as F, f as b, g as c, T as u, h as D, i as f, j as p, k as y, l as E, U as S, m as h, n as m, u as x } from "../../_chunks/editable-currency-cell-renderer-1t42gENX.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
l as ActionsCellRenderer,
|
|
4
|
+
r as BalanceCellRenderer,
|
|
5
5
|
s as ColorDotCellRenderer,
|
|
6
|
-
|
|
6
|
+
t as CurrencyCellRenderer,
|
|
7
7
|
n as DataTable,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
d as DateCellRenderer,
|
|
9
|
+
o as DateRangeFilter,
|
|
10
|
+
C as DateRangeFloatingFilter,
|
|
11
|
+
i as EditableCurrencyCellRenderer,
|
|
11
12
|
R as EditableTextCellRenderer,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
D as
|
|
19
|
-
f as
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
g as ImageCellRenderer,
|
|
14
|
+
T as LinkCellRenderer,
|
|
15
|
+
F as SelectFilter,
|
|
16
|
+
b as SelectFloatingFilter,
|
|
17
|
+
c as StatusCellRenderer,
|
|
18
|
+
u as TagListCellRenderer,
|
|
19
|
+
D as ToggleCellRenderer,
|
|
20
|
+
f as Toolbar,
|
|
21
|
+
p as ToolbarProvider,
|
|
22
|
+
y as TypeaheadFilter,
|
|
23
|
+
E as TypeaheadFloatingFilter,
|
|
24
|
+
S as UserCellRenderer,
|
|
25
|
+
h as dataTableAgent,
|
|
26
|
+
m as defaultExportPdf,
|
|
27
|
+
x as useTotalRow
|
|
23
28
|
};
|
|
24
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
declare const keyValuePairVariants: (props?: ({
|
|
3
3
|
layout?: "horizontal" | "vertical" | null | undefined;
|
|
4
|
+
hasIcon?: boolean | null | undefined;
|
|
4
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
|
-
export interface KeyValuePairProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof keyValuePairVariants> {
|
|
6
|
+
export interface KeyValuePairProps extends React.HTMLAttributes<HTMLDivElement>, Omit<VariantProps<typeof keyValuePairVariants>, 'hasIcon'> {
|
|
6
7
|
/** The label (term) */
|
|
7
8
|
label: string;
|
|
8
9
|
/** The value — accepts plain text, Badge, Tag, monospace code, any ReactNode */
|
|
@@ -15,6 +16,23 @@ export interface KeyValuePairProps extends React.HTMLAttributes<HTMLDivElement>,
|
|
|
15
16
|
copyable?: boolean;
|
|
16
17
|
/** The text to copy — defaults to `value` if value is a string */
|
|
17
18
|
copyText?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Optional decorative icon rendered at the leading edge of the pair.
|
|
21
|
+
* Pass a `lucide-react` icon (or any single React element) for
|
|
22
|
+
* visual consistency. The wrapper applies `aria-hidden="true"` and
|
|
23
|
+
* paints the icon with `var(--key-value-pair-icon-color)` (defaults
|
|
24
|
+
* to `--muted-foreground`); consumers can recolour the slot via
|
|
25
|
+
* that token without forking the component.
|
|
26
|
+
*
|
|
27
|
+
* Cap-height alignment with the label is automatic — the wrapper
|
|
28
|
+
* uses `mt-0.5` so the glyph rides the label row, not the
|
|
29
|
+
* geometric centre of a wrapping value.
|
|
30
|
+
*
|
|
31
|
+
* Type is `ReactElement` (not the broader `ReactNode`) so the
|
|
32
|
+
* intent is clear at the call site: this slot is for a single
|
|
33
|
+
* SVG/icon, not arbitrary fragments, strings, or numbers.
|
|
34
|
+
*/
|
|
35
|
+
icon?: React.ReactElement | null;
|
|
18
36
|
}
|
|
19
37
|
export declare const KeyValuePair: import("react").ForwardRefExoticComponent<KeyValuePairProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
38
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as r, f as s, p as m, a as e, s as n, b as o, c as i } from "../../_chunks/payment-form-
|
|
1
|
+
import { P as r, f as s, p as m, a as e, s as n, b as o, c as i } from "../../_chunks/payment-form-F7uh0Rqr.js";
|
|
2
2
|
export {
|
|
3
3
|
r as PaymentForm,
|
|
4
4
|
s as formatPaymentAmount,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as r, a as i, b as s, c as d, d as S, e as b, f as t, g as o, h as m, i as n, j as l, k as c, l as p, m as u, n as I, o as g, p as P, s as f, u as B } from "../../_chunks/sidebar-
|
|
1
|
+
import { S as r, a as i, b as s, c as d, d as S, e as b, f as t, g as o, h as m, i as n, j as l, k as c, l as p, m as u, n as I, o as g, p as P, s as f, u as B } from "../../_chunks/sidebar-DkyC6GvS.js";
|
|
2
2
|
import { u as h } from "../../_chunks/use-persistent-state-i23OWy6G.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Sidebar,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as r, W as e, a as s, b as d, c as w, i as t, l as f, m as l, r as i, w as k, d as n, e as A, f as C } from "../../_chunks/workflow-map-
|
|
1
|
+
import { C as r, W as e, a as s, b as d, c as w, i as t, l as f, m as l, r as i, w as k, d as n, e as A, f as C } from "../../_chunks/workflow-map-712GL-8u.js";
|
|
2
2
|
export {
|
|
3
3
|
r as CORE_PATIENT_FIELDS,
|
|
4
4
|
e as WorkflowCard,
|
package/dist/i18n/config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import t from "i18next";
|
|
2
2
|
import { default as f } from "i18next";
|
|
3
|
-
import { initReactI18next as
|
|
3
|
+
import { initReactI18next as s } from "react-i18next";
|
|
4
4
|
const a = {
|
|
5
5
|
common: {
|
|
6
6
|
save: "Save",
|
|
@@ -375,6 +375,16 @@ const a = {
|
|
|
375
375
|
resetFilter: "Reset",
|
|
376
376
|
noRowsToShow: "No rows to show",
|
|
377
377
|
selectAll: "Select all"
|
|
378
|
+
},
|
|
379
|
+
selectFilter: {
|
|
380
|
+
all: "All",
|
|
381
|
+
selectedCount: "{{count}} selected",
|
|
382
|
+
clear: "Clear",
|
|
383
|
+
apply: "Apply"
|
|
384
|
+
},
|
|
385
|
+
typeaheadFilter: {
|
|
386
|
+
placeholder: "Search…",
|
|
387
|
+
clear: "Clear"
|
|
378
388
|
}
|
|
379
389
|
},
|
|
380
390
|
emptyState: {
|
|
@@ -1416,6 +1426,16 @@ const a = {
|
|
|
1416
1426
|
resetFilter: "Reimposta",
|
|
1417
1427
|
noRowsToShow: "Nessuna riga da mostrare",
|
|
1418
1428
|
selectAll: "Seleziona tutto"
|
|
1429
|
+
},
|
|
1430
|
+
selectFilter: {
|
|
1431
|
+
all: "Tutti",
|
|
1432
|
+
selectedCount: "{{count}} selezionati",
|
|
1433
|
+
clear: "Rimuovi",
|
|
1434
|
+
apply: "Applica"
|
|
1435
|
+
},
|
|
1436
|
+
typeaheadFilter: {
|
|
1437
|
+
placeholder: "Cerca…",
|
|
1438
|
+
clear: "Rimuovi"
|
|
1419
1439
|
}
|
|
1420
1440
|
},
|
|
1421
1441
|
emptyState: {
|
|
@@ -2408,6 +2428,16 @@ const a = {
|
|
|
2408
2428
|
resetFilter: "Zurücksetzen",
|
|
2409
2429
|
noRowsToShow: "Keine Zeilen anzuzeigen",
|
|
2410
2430
|
selectAll: "Alle auswählen"
|
|
2431
|
+
},
|
|
2432
|
+
selectFilter: {
|
|
2433
|
+
all: "Alle",
|
|
2434
|
+
selectedCount: "{{count}} ausgewählt",
|
|
2435
|
+
clear: "Zurücksetzen",
|
|
2436
|
+
apply: "Anwenden"
|
|
2437
|
+
},
|
|
2438
|
+
typeaheadFilter: {
|
|
2439
|
+
placeholder: "Suchen …",
|
|
2440
|
+
clear: "Zurücksetzen"
|
|
2411
2441
|
}
|
|
2412
2442
|
},
|
|
2413
2443
|
emptyState: {
|
|
@@ -3058,11 +3088,11 @@ const a = {
|
|
|
3058
3088
|
de: i,
|
|
3059
3089
|
ar: o
|
|
3060
3090
|
};
|
|
3061
|
-
function g(r,
|
|
3091
|
+
function g(r, l) {
|
|
3062
3092
|
t.addResourceBundle(
|
|
3063
3093
|
r,
|
|
3064
3094
|
"ui",
|
|
3065
|
-
|
|
3095
|
+
l,
|
|
3066
3096
|
/* deep */
|
|
3067
3097
|
!0,
|
|
3068
3098
|
/* overwrite */
|
|
@@ -3070,7 +3100,7 @@ function g(r, s) {
|
|
|
3070
3100
|
);
|
|
3071
3101
|
}
|
|
3072
3102
|
const c = {}, e = typeof import.meta < "u" && typeof c < "u" && !1;
|
|
3073
|
-
t.use(
|
|
3103
|
+
t.use(s).init({
|
|
3074
3104
|
lng: "en",
|
|
3075
3105
|
fallbackLng: "en",
|
|
3076
3106
|
ns: ["ui"],
|
package/dist/i18n/resources.d.ts
CHANGED
|
@@ -394,6 +394,16 @@ export declare const enUi: {
|
|
|
394
394
|
readonly noRowsToShow: "No rows to show";
|
|
395
395
|
readonly selectAll: "Select all";
|
|
396
396
|
};
|
|
397
|
+
readonly selectFilter: {
|
|
398
|
+
readonly all: "All";
|
|
399
|
+
readonly selectedCount: "{{count}} selected";
|
|
400
|
+
readonly clear: "Clear";
|
|
401
|
+
readonly apply: "Apply";
|
|
402
|
+
};
|
|
403
|
+
readonly typeaheadFilter: {
|
|
404
|
+
readonly placeholder: "Search…";
|
|
405
|
+
readonly clear: "Clear";
|
|
406
|
+
};
|
|
397
407
|
};
|
|
398
408
|
readonly emptyState: {
|
|
399
409
|
readonly firstUse: {
|
|
@@ -1451,6 +1461,16 @@ export declare const itUi: {
|
|
|
1451
1461
|
readonly noRowsToShow: "Nessuna riga da mostrare";
|
|
1452
1462
|
readonly selectAll: "Seleziona tutto";
|
|
1453
1463
|
};
|
|
1464
|
+
readonly selectFilter: {
|
|
1465
|
+
readonly all: "Tutti";
|
|
1466
|
+
readonly selectedCount: "{{count}} selezionati";
|
|
1467
|
+
readonly clear: "Rimuovi";
|
|
1468
|
+
readonly apply: "Applica";
|
|
1469
|
+
};
|
|
1470
|
+
readonly typeaheadFilter: {
|
|
1471
|
+
readonly placeholder: "Cerca…";
|
|
1472
|
+
readonly clear: "Rimuovi";
|
|
1473
|
+
};
|
|
1454
1474
|
};
|
|
1455
1475
|
readonly emptyState: {
|
|
1456
1476
|
readonly firstUse: {
|
|
@@ -2468,6 +2488,16 @@ export declare const deUi: {
|
|
|
2468
2488
|
readonly noRowsToShow: "Keine Zeilen anzuzeigen";
|
|
2469
2489
|
readonly selectAll: "Alle auswählen";
|
|
2470
2490
|
};
|
|
2491
|
+
readonly selectFilter: {
|
|
2492
|
+
readonly all: "Alle";
|
|
2493
|
+
readonly selectedCount: "{{count}} ausgewählt";
|
|
2494
|
+
readonly clear: "Zurücksetzen";
|
|
2495
|
+
readonly apply: "Anwenden";
|
|
2496
|
+
};
|
|
2497
|
+
readonly typeaheadFilter: {
|
|
2498
|
+
readonly placeholder: "Suchen …";
|
|
2499
|
+
readonly clear: "Zurücksetzen";
|
|
2500
|
+
};
|
|
2471
2501
|
};
|
|
2472
2502
|
readonly emptyState: {
|
|
2473
2503
|
readonly firstUse: {
|