@alfadocs/ui-kit-debug 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-card-CsCm7hQv.js.map → agenda-card-BmpaUG1h.js.map} +1 -1
- package/dist/_chunks/{agenda-tray-B8QZ3wEp.js → agenda-tray-DiInnVqk.js} +2 -2
- package/dist/_chunks/{agenda-tray-B8QZ3wEp.js.map → agenda-tray-DiInnVqk.js.map} +1 -1
- package/dist/_chunks/{alert-DBnawbmf.js → alert-ywPR59NE.js} +14 -1
- package/dist/_chunks/alert-ywPR59NE.js.map +1 -0
- package/dist/_chunks/{alia-sidebar-Bof6TlFx.js → alia-sidebar-CUi2UCbY.js} +3 -3
- package/dist/_chunks/{alia-sidebar-Bof6TlFx.js.map → alia-sidebar-CUi2UCbY.js.map} +1 -1
- package/dist/_chunks/{audio-recorder-DNkQLW1G.js → audio-recorder-D4xM3H5i.js} +2 -2
- package/dist/_chunks/{audio-recorder-DNkQLW1G.js.map → audio-recorder-D4xM3H5i.js.map} +1 -1
- package/dist/_chunks/{avatar-I10iCDs8.js → avatar-BpFohgWG.js} +24 -16
- package/dist/_chunks/avatar-BpFohgWG.js.map +1 -0
- package/dist/_chunks/{chat-message-ChOnwqf_.js → chat-message-W3k8rLOA.js} +2 -2
- package/dist/_chunks/{chat-message-ChOnwqf_.js.map → chat-message-W3k8rLOA.js.map} +1 -1
- package/dist/_chunks/editable-currency-cell-renderer-1t42gENX.js +1972 -0
- package/dist/_chunks/editable-currency-cell-renderer-1t42gENX.js.map +1 -0
- package/dist/_chunks/{freemium-paywall-DXc7XlGE.js → freemium-paywall-CM6V1zNf.js} +2 -2
- package/dist/_chunks/{freemium-paywall-DXc7XlGE.js.map → freemium-paywall-CM6V1zNf.js.map} +1 -1
- package/dist/_chunks/grip-vertical-Dlg0_k5C.js +19 -0
- package/dist/_chunks/grip-vertical-Dlg0_k5C.js.map +1 -0
- package/dist/_chunks/key-value-pair-DBuOCtIc.js +98 -0
- package/dist/_chunks/key-value-pair-DBuOCtIc.js.map +1 -0
- package/dist/_chunks/{message-card-c6R0-qXq.js → message-card-i61k1TGc.js} +2 -2
- package/dist/_chunks/{message-card-c6R0-qXq.js.map → message-card-i61k1TGc.js.map} +1 -1
- package/dist/_chunks/{message-tray-BNAS8al4.js → message-tray-DrV7G-wR.js} +2 -2
- package/dist/_chunks/{message-tray-BNAS8al4.js.map → message-tray-DrV7G-wR.js.map} +1 -1
- package/dist/_chunks/{patient-shell-Dr64lBp_.js → patient-shell-DavGODt9.js} +2 -2
- package/dist/_chunks/{patient-shell-Dr64lBp_.js.map → patient-shell-DavGODt9.js.map} +1 -1
- package/dist/_chunks/{payment-form-BjkuQeqR.js → payment-form-F7uh0Rqr.js} +2 -2
- package/dist/_chunks/{payment-form-BjkuQeqR.js.map → payment-form-F7uh0Rqr.js.map} +1 -1
- package/dist/_chunks/{pdf-viewer-BG_nsFT5.js → pdf-viewer-CuYaVR1I.js} +2 -2
- package/dist/_chunks/{pdf-viewer-BG_nsFT5.js.map → pdf-viewer-CuYaVR1I.js.map} +1 -1
- package/dist/_chunks/{sidebar-BqzlRBvC.js → sidebar-DkyC6GvS.js} +167 -180
- package/dist/_chunks/sidebar-DkyC6GvS.js.map +1 -0
- package/dist/_chunks/{timeline-rmls7dIh.js → timeline-Czeqr3HF.js} +2 -2
- package/dist/_chunks/{timeline-rmls7dIh.js.map → timeline-Czeqr3HF.js.map} +1 -1
- package/dist/_chunks/{warning-stack-CDH9TudY.js → warning-stack-bDicCvxs.js} +2 -2
- package/dist/_chunks/{warning-stack-CDH9TudY.js.map → warning-stack-bDicCvxs.js.map} +1 -1
- package/dist/_chunks/{whatsapp-button-Bj5FIhpC.js → whatsapp-button-CtlLwM3M.js} +14 -3
- package/dist/_chunks/whatsapp-button-CtlLwM3M.js.map +1 -0
- package/dist/_chunks/{workflow-map-BeKe23uw.js → workflow-map-712GL-8u.js} +3 -3
- package/dist/_chunks/{workflow-map-BeKe23uw.js.map → workflow-map-712GL-8u.js.map} +1 -1
- 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/alert.d.ts.map +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/avatar.d.ts.map +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/cell-renderers/balance-cell-renderer.d.ts.map +1 -1
- package/dist/components/data-table/filters/date-range-filter.d.ts +12 -1
- package/dist/components/data-table/filters/date-range-filter.d.ts.map +1 -1
- package/dist/components/data-table/filters/select-filter.d.ts +58 -0
- package/dist/components/data-table/filters/select-filter.d.ts.map +1 -0
- package/dist/components/data-table/filters/typeahead-filter.d.ts +52 -0
- package/dist/components/data-table/filters/typeahead-filter.d.ts.map +1 -0
- package/dist/components/data-table/index.d.ts +5 -1
- package/dist/components/data-table/index.d.ts.map +1 -1
- package/dist/components/data-table/index.js +23 -18
- package/dist/components/data-table/toolbar.d.ts.map +1 -1
- 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/key-value-pair/key-value-pair.d.ts.map +1 -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/whatsapp-button/whatsapp-button.d.ts.map +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/config.js +34 -4
- package/dist/i18n/config.js.map +1 -1
- package/dist/i18n/resources.d.ts +30 -0
- package/dist/i18n/resources.d.ts.map +1 -1
- 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/alert-DBnawbmf.js.map +0 -1
- package/dist/_chunks/avatar-I10iCDs8.js.map +0 -1
- package/dist/_chunks/editable-currency-cell-renderer-CqMs0Y8L.js +0 -1590
- package/dist/_chunks/editable-currency-cell-renderer-CqMs0Y8L.js.map +0 -1
- package/dist/_chunks/key-value-pair-AbrRwesr.js +0 -76
- package/dist/_chunks/key-value-pair-AbrRwesr.js.map +0 -1
- package/dist/_chunks/sidebar-BqzlRBvC.js.map +0 -1
- package/dist/_chunks/whatsapp-button-Bj5FIhpC.js.map +0 -1
package/dist/agent-catalog.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,QAAA,MAAM,aAAa;;8EAyDlB,CAAC;
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,QAAA,MAAM,aAAa;;8EAyDlB,CAAC;AAuDF,UAAU,eAAgB,SAAQ,cAAc,CAAC,kBAAkB,CAAC;IAClE,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,MAAM,CAAC;CAC7D;AAoDD,MAAM,WAAW,UACf,SACE,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,EAC5C,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACnD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,WAAW,GAAG,QAAQ,GAAG,KAAK,CAAC;CACvC;AAED,YAAY,EAAE,eAAe,EAAE,CAAC;AAgHhC,eAAO,MAAM,KAAK;;;;CAIhB,CAAC"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AACf,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AA0DlE,8HAA8H;AAC9H,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKhD;AAID,QAAA,MAAM,cAAc;;
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AACf,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AA0DlE,8HAA8H;AAC9H,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKhD;AAID,QAAA,MAAM,cAAc;;8EAiCnB,CAAC;AAIF,MAAM,WAAW,WACf,SACE,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC,EAC9C,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,sFAAsF;IACtF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAID,eAAO,MAAM,MAAM,yGAqGlB,CAAC"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"balance-cell-renderer.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/cell-renderers/balance-cell-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAG7D,MAAM,WAAW,WAAW;IAC1B,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,UAAU,EAAE,MAAM,CAAC;IACnB,kGAAkG;IAClG,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;CAC5C;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AASD,wBAAgB,mBAAmB,CAAC,KAAK,GAAG,OAAO,EACjD,KAAK,EAAE,uBAAuB,CAAC,KAAK,CAAC,GAAG,yBAAyB,
|
|
1
|
+
{"version":3,"file":"balance-cell-renderer.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/cell-renderers/balance-cell-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAG7D,MAAM,WAAW,WAAW;IAC1B,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,UAAU,EAAE,MAAM,CAAC;IACnB,kGAAkG;IAClG,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;CAC5C;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AASD;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,GAAG,OAAO,EACjD,KAAK,EAAE,uBAAuB,CAAC,KAAK,CAAC,GAAG,yBAAyB,kDA0FlE;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,iCAAiC,EAAE,QAAQ,CACtD,IAAI,CAAC,MAAM,EAAE,YAAY,GAAG,UAAU,CAAC,CAIxC,CAAC"}
|
|
@@ -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-range-filter.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/filters/date-range-filter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"date-range-filter.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/filters/date-range-filter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,yBAAyB,EAC1B,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAIjD;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAaD,wBAAgB,eAAe,CAAC,KAAK,EAAE,iBAAiB,2CAiDvD;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,yBAAyB,CAC9B,OAAO,EACP,OAAO,EACP,OAAO,EACP,oBAAoB,CACrB,2CA0BF"}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"select-filter.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/filters/select-filter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,yBAAyB,EAC1B,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,OAAO,EAAY,MAAM,mBAAmB,CAAC;AAM3D;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,KAAK,CAAC;IACZ,MAAM,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAQD,wBAAgB,YAAY,CAC1B,KAAK,EAAE,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,iBAAiB,CAAC,GAC3D,kBAAkB,2CAiIrB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,yBAAyB,CAC9B,OAAO,EACP,OAAO,EACP,OAAO,EACP,iBAAiB,CAClB,2CA0DF"}
|
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeahead-filter.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/filters/typeahead-filter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,yBAAyB,EAC1B,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,OAAO,EAAY,MAAM,mBAAmB,CAAC;AAM3D;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAClC,WAAW,CAAC,EAAE,CACZ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE;QAAE,MAAM,EAAE,WAAW,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,KAC1C,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAMD,wBAAgB,eAAe,CAC7B,KAAK,EAAE,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,oBAAoB,CAAC,GAC9D,qBAAqB,2CAsHxB;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,yBAAyB,CAC9B,OAAO,EACP,OAAO,EACP,OAAO,EACP,oBAAoB,CACrB,2CAiEF"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EACV,cAAc,EACd,eAAe,EACf,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACvE,YAAY,EACV,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,mBAAmB,GACpB,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EACV,cAAc,EACd,eAAe,EACf,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACvE,YAAY,EACV,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,mBAAmB,GACpB,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EACL,eAAe,EACf,uBAAuB,GACxB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC7E,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,eAAe,EACf,uBAAuB,GACxB,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,YAAY,EACV,YAAY,EACZ,wBAAwB,GACzB,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,YAAY,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,YAAY,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAEpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,YAAY,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAEzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,YAAY,EACV,cAAc,EACd,sBAAsB,GACvB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,YAAY,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAE1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,YAAY,EACV,SAAS,EACT,yBAAyB,GAC1B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,YAAY,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAElF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,YAAY,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAEtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,YAAY,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAE3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,YAAY,EACV,WAAW,EACX,yBAAyB,GAC1B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,YAAY,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAWL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/toolbar.tsx"],"names":[],"mappings":"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"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key-value-pair.d.ts","sourceRoot":"","sources":["../../../src/components/key-value-pair/key-value-pair.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"key-value-pair.d.ts","sourceRoot":"","sources":["../../../src/components/key-value-pair/key-value-pair.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAiBlE,QAAA,MAAM,oBAAoB;;;8EAmBxB,CAAC;AAMH,MAAM,WAAW,iBACf,SACE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EACpC,IAAI,CAAC,YAAY,CAAC,OAAO,oBAAoB,CAAC,EAAE,SAAS,CAAC;IAC5D,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,uBAAuB;IACvB,MAAM,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACnC,qCAAqC;IACrC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;CAClC;AAMD,eAAO,MAAM,YAAY,8GA4HxB,CAAC"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whatsapp-button.d.ts","sourceRoot":"","sources":["../../../src/components/whatsapp-button/whatsapp-button.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AA8BlE,QAAA,MAAM,YAAY;;;
|
|
1
|
+
{"version":3,"file":"whatsapp-button.d.ts","sourceRoot":"","sources":["../../../src/components/whatsapp-button/whatsapp-button.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AA8BlE,QAAA,MAAM,YAAY;;;8EA4FjB,CAAC;AAEF,QAAA,MAAM,gBAAgB;;8EAgBpB,CAAC;AAyCH,MAAM,WAAW,mBACf,SACE,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,EAClE,YAAY,CAAC,OAAO,YAAY,CAAC,EACjC,YAAY,CAAC,OAAO,gBAAgB,CAAC;IACvC;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAMD,eAAO,MAAM,cAAc,mHAqG1B,CAAC"}
|
|
@@ -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"],
|