@alfadocs/ui-kit 1.117.0 → 1.119.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.
Files changed (148) hide show
  1. package/dist/_chunks/{address-autocomplete-Bnc9ieKO.js → address-autocomplete-zLygkxFc.js} +2 -2
  2. package/dist/_chunks/{address-fields-RIaGnpnm.js → address-fields-Dl1ALKhP.js} +2 -2
  3. package/dist/_chunks/bill-line-table-DUMEHnQ4.js +1754 -0
  4. package/dist/_chunks/{calendar-appointment-editor-dialog-BEmBcb61.js → calendar-appointment-editor-dialog-rw02sXGw.js} +4 -4
  5. package/dist/_chunks/{compact-editor-fields-6sTWRLtf.js → compact-editor-fields-cP6yh7xv.js} +3 -3
  6. package/dist/_chunks/counts-BXtzNv_G.js +92 -0
  7. package/dist/_chunks/{data-grid-DiBSbN2Y.js → data-grid-Bbf8t4z3.js} +2 -2
  8. package/dist/_chunks/{default-tabs-CD285u0C.js → default-tabs-Cxkw1Ws0.js} +332 -368
  9. package/dist/_chunks/{document-scanner-5p-Uu8dy.js → document-scanner-CETscDea.js} +2 -2
  10. package/dist/_chunks/file-code-Cf-_gSzd.js +23 -0
  11. package/dist/_chunks/{file-manager-CV1_GtjC.js → file-manager-DNq-sEsy.js} +2 -2
  12. package/dist/_chunks/{file-upload-CxjCs7TX.js → file-upload-DQc0LsBM.js} +385 -311
  13. package/dist/_chunks/invoice-upload-list-CsFsRgbt.js +952 -0
  14. package/dist/_chunks/map-view-CHeGd94F.js +1443 -0
  15. package/dist/_chunks/maps-MpMxTBov.js +63 -0
  16. package/dist/_chunks/{maps-core-gate-Dgs7jXxy.js → maps-core-gate-C4dyo1ic.js} +5 -5
  17. package/dist/_chunks/{notes-panel-CHR-Jv6N.js → notes-panel-BOwlTz2-.js} +2 -2
  18. package/dist/_chunks/package-plus-CTecQK3x.js +25 -0
  19. package/dist/_chunks/{practice-results-CzHWprX4.js → practice-results-b3uchdBn.js} +40 -39
  20. package/dist/_chunks/{public-footer-CB7ruuLI.js → public-footer-C8UIzqLJ.js} +326 -243
  21. package/dist/_chunks/{radiograph-panel.agent-9jwXlOXB.js → radiograph-panel.agent-Dcv16n7u.js} +2 -2
  22. package/dist/_chunks/{reserved.agent-TaZfI3yj.js → reserved.agent-V2Eqoabh.js} +2 -2
  23. package/dist/_chunks/{rich-text-editor-CMPA5Wgy.js → rich-text-editor-BLEdXJ0l.js} +2 -2
  24. package/dist/_chunks/{signed-out-frame-bh7fn_Px.js → signed-out-frame-fUf7tqs3.js} +2 -2
  25. package/dist/_chunks/{task-editor-WdDCqbIL.js → task-editor-Czcx9B-3.js} +2 -2
  26. package/dist/_chunks/{toolbar-z8vXnpXz.js → toolbar-DoKcoE2q.js} +2 -2
  27. package/dist/_chunks/types-BrJRsnSG.js +291 -0
  28. package/dist/_chunks/warehouse-load-summary-D88M4Ii7.js +255 -0
  29. package/dist/agent-catalog.json +360 -14
  30. package/dist/agent-i18n/en.json +31 -2
  31. package/dist/browser-support.js +1 -1
  32. package/dist/components/_shared/warehouse-load/counts.d.ts +82 -0
  33. package/dist/components/_shared/warehouse-load/index.d.ts +4 -0
  34. package/dist/components/_shared/warehouse-load/maps.d.ts +67 -0
  35. package/dist/components/_shared/warehouse-load/types.d.ts +18 -0
  36. package/dist/components/address-autocomplete/index.js +1 -1
  37. package/dist/components/address-fields/index.js +1 -1
  38. package/dist/components/bill-line-table/bill-line-table.columns.d.ts +2 -0
  39. package/dist/components/bill-line-table/bill-line-table.header.d.ts +7 -0
  40. package/dist/components/bill-line-table/bill-line-table.model.d.ts +10 -1
  41. package/dist/components/bill-line-table/bill-line-table.types.d.ts +66 -1
  42. package/dist/components/bill-line-table/bill-line-table.variants.d.ts +12 -0
  43. package/dist/components/bill-line-table/index.d.ts +2 -2
  44. package/dist/components/bill-line-table/index.js +10 -8
  45. package/dist/components/bill-table/index.js +1 -1
  46. package/dist/components/booking/index.js +1 -1
  47. package/dist/components/data-grid/data-grid.variants.d.ts +1 -1
  48. package/dist/components/data-grid/index.js +2 -2
  49. package/dist/components/document-scanner/index.js +1 -1
  50. package/dist/components/file-manager/index.js +1 -1
  51. package/dist/components/file-upload/file-upload.d.ts +30 -1
  52. package/dist/components/file-upload/index.js +1 -1
  53. package/dist/components/flag/flag-view.d.ts +1 -1
  54. package/dist/components/index.d.ts +3 -0
  55. package/dist/components/invoice-upload/index.d.ts +5 -0
  56. package/dist/components/invoice-upload/index.js +7 -0
  57. package/dist/components/invoice-upload/invoice-upload.agent.d.ts +4 -0
  58. package/dist/components/invoice-upload/invoice-upload.d.ts +3 -0
  59. package/dist/components/invoice-upload/types.d.ts +72 -0
  60. package/dist/components/invoice-upload-list/cells.d.ts +36 -0
  61. package/dist/components/invoice-upload-list/columns.d.ts +14 -0
  62. package/dist/components/invoice-upload-list/handle.d.ts +18 -0
  63. package/dist/components/invoice-upload-list/index.d.ts +5 -0
  64. package/dist/components/invoice-upload-list/index.js +10 -0
  65. package/dist/components/invoice-upload-list/invoice-upload-list.agent.d.ts +4 -0
  66. package/dist/components/invoice-upload-list/invoice-upload-list.d.ts +10 -0
  67. package/dist/components/invoice-upload-list/invoice-upload-list.variants.d.ts +28 -0
  68. package/dist/components/invoice-upload-list/model.d.ts +40 -0
  69. package/dist/components/invoice-upload-list/types.d.ts +154 -0
  70. package/dist/components/map-view/index.js +1 -1
  71. package/dist/components/map-view/map-view-cluster.d.ts +42 -0
  72. package/dist/components/map-view/map-view.d.ts +39 -0
  73. package/dist/components/notes-panel/index.js +1 -1
  74. package/dist/components/practice-results/index.js +1 -1
  75. package/dist/components/public-footer/index.js +1 -1
  76. package/dist/components/public-footer/public-footer.d.ts +24 -0
  77. package/dist/components/public-header/public-header.d.ts +1 -1
  78. package/dist/components/radiograph-panel/index.js +1 -1
  79. package/dist/components/rich-text-editor/index.js +1 -1
  80. package/dist/components/task-editor/index.js +1 -1
  81. package/dist/components/warehouse-load-summary/index.d.ts +4 -0
  82. package/dist/components/warehouse-load-summary/index.js +6 -0
  83. package/dist/components/warehouse-load-summary/model.d.ts +8 -0
  84. package/dist/components/warehouse-load-summary/types.d.ts +50 -0
  85. package/dist/components/warehouse-load-summary/warehouse-load-summary.agent.d.ts +4 -0
  86. package/dist/components/warehouse-load-summary/warehouse-load-summary.d.ts +7 -0
  87. package/dist/core.css +1 -1
  88. package/dist/i18n/locales/ar.d.ts +210 -0
  89. package/dist/i18n/locales/ar.js +204 -4
  90. package/dist/i18n/locales/de.d.ts +210 -0
  91. package/dist/i18n/locales/de.js +208 -4
  92. package/dist/i18n/locales/el.d.ts +210 -0
  93. package/dist/i18n/locales/el.js +208 -4
  94. package/dist/i18n/locales/en.d.ts +210 -0
  95. package/dist/i18n/locales/en.js +210 -0
  96. package/dist/i18n/locales/es.d.ts +210 -0
  97. package/dist/i18n/locales/es.js +206 -4
  98. package/dist/i18n/locales/fr.d.ts +210 -0
  99. package/dist/i18n/locales/fr.js +206 -4
  100. package/dist/i18n/locales/hi.d.ts +210 -0
  101. package/dist/i18n/locales/hi.js +204 -4
  102. package/dist/i18n/locales/it.d.ts +210 -0
  103. package/dist/i18n/locales/it.js +204 -4
  104. package/dist/i18n/locales/ja.d.ts +210 -0
  105. package/dist/i18n/locales/ja.js +204 -4
  106. package/dist/i18n/locales/nl.d.ts +210 -0
  107. package/dist/i18n/locales/nl.js +204 -4
  108. package/dist/i18n/locales/pl.d.ts +210 -0
  109. package/dist/i18n/locales/pl.js +204 -4
  110. package/dist/i18n/locales/pt.d.ts +210 -0
  111. package/dist/i18n/locales/pt.js +206 -4
  112. package/dist/i18n/locales/ro.d.ts +210 -0
  113. package/dist/i18n/locales/ro.js +204 -4
  114. package/dist/i18n/locales/ru.d.ts +210 -0
  115. package/dist/i18n/locales/ru.js +204 -4
  116. package/dist/i18n/locales/sq.d.ts +210 -0
  117. package/dist/i18n/locales/sq.js +206 -4
  118. package/dist/i18n/locales/sv.d.ts +210 -0
  119. package/dist/i18n/locales/sv.js +204 -4
  120. package/dist/i18n/locales/tr.d.ts +210 -0
  121. package/dist/i18n/locales/tr.js +204 -4
  122. package/dist/i18n/locales/zh.d.ts +210 -0
  123. package/dist/i18n/locales/zh.js +204 -4
  124. package/dist/index.js +1190 -1174
  125. package/dist/locales/ar.json +214 -4
  126. package/dist/locales/de.json +214 -4
  127. package/dist/locales/el.json +214 -4
  128. package/dist/locales/en.json +210 -0
  129. package/dist/locales/es.json +214 -4
  130. package/dist/locales/fr.json +214 -4
  131. package/dist/locales/hi.json +214 -4
  132. package/dist/locales/it.json +214 -4
  133. package/dist/locales/ja.json +214 -4
  134. package/dist/locales/nl.json +214 -4
  135. package/dist/locales/pl.json +214 -4
  136. package/dist/locales/pt.json +214 -4
  137. package/dist/locales/ro.json +214 -4
  138. package/dist/locales/ru.json +214 -4
  139. package/dist/locales/sq.json +214 -4
  140. package/dist/locales/sv.json +214 -4
  141. package/dist/locales/tr.json +214 -4
  142. package/dist/locales/zh.json +214 -4
  143. package/dist/patterns/calendar/index.js +1 -1
  144. package/dist/patterns/signed-out-frame/index.js +1 -1
  145. package/dist/tokens.css +1 -1
  146. package/package.json +13 -1
  147. package/dist/_chunks/bill-line-table-vCnVo7_a.js +0 -1565
  148. package/dist/_chunks/map-view-Frj8vE7n.js +0 -1105
@@ -0,0 +1,72 @@
1
+ import type { ReactNode } from 'react';
2
+ /** Where one chosen file stands. The host owns it; InvoiceUpload only shows it. */
3
+ export type InvoiceUploadFileState = 'waiting' | 'reading' | 'read' | 'error';
4
+ /** One row of the host-controlled file list. */
5
+ export interface InvoiceUploadFile {
6
+ /** The id InvoiceUpload emitted for this file in `onFilesChosen`. */
7
+ id: string;
8
+ /** File name as chosen. Shown, never parsed. */
9
+ name: string;
10
+ /** Size in bytes. */
11
+ size: number;
12
+ state: InvoiceUploadFileState;
13
+ /** The platform's translated message for state `error`. Host text: shown
14
+ * as given, also in privacy mode. */
15
+ error?: string;
16
+ /** Invoices found in the file, once `read`. */
17
+ invoiceCount?: number;
18
+ }
19
+ export declare const INVOICE_UPLOAD_REJECTION_REASONS: readonly ["file-invalid-type", "file-too-large", "too-many-files", "total-too-large"];
20
+ export type InvoiceUploadRejectionReason = (typeof INVOICE_UPLOAD_REJECTION_REASONS)[number];
21
+ /** A file the limits refused. Name and size only, never the file. */
22
+ export interface InvoiceUploadRejection {
23
+ name: string;
24
+ size: number;
25
+ reason: InvoiceUploadRejectionReason;
26
+ }
27
+ export type InvoiceUploadMode = 'single' | 'multiple';
28
+ export interface InvoiceUploadProps {
29
+ /** Opaque instance id, emitted as `data-component-id` for the agent registry. */
30
+ id?: string;
31
+ /** `single` (default) replaces the old file; `multiple` appends. */
32
+ mode?: InvoiceUploadMode;
33
+ /** Accepted extensions. Default `['.xml', '.p7m']`. */
34
+ accept?: readonly string[];
35
+ /** Largest size of one file, in bytes. */
36
+ maxFileSize?: number;
37
+ /** Most files in the list (multiple mode; single mode is always 1). */
38
+ maxFiles?: number;
39
+ /** Largest total size of the listed files, in bytes. */
40
+ maxTotalSize?: number;
41
+ /** The controlled list. The host owns every state. */
42
+ files?: readonly InvoiceUploadFile[];
43
+ /** New files, each with a fresh id (unique even for same-name files).
44
+ * The host reads them and updates `files`. */
45
+ onFilesChosen?: (files: Array<{
46
+ id: string;
47
+ file: File;
48
+ }>) => void;
49
+ onRemove?: (id: string) => void;
50
+ /** Files the limits refused. Over the file count or the total size, the
51
+ * whole drop is refused; by type or size, only the offending files. */
52
+ onReject?: (rejections: InvoiceUploadRejection[]) => void;
53
+ disabled?: boolean;
54
+ /** Why it is disabled; shown under the dropzone. */
55
+ disabledReason?: string;
56
+ /** The practice has no warehouse module: shown instead of the dropzone. */
57
+ upsell?: ReactNode;
58
+ className?: string;
59
+ }
60
+ /** Curated agent handle: ids and metadata, never file content. Agents
61
+ * cannot open the native picker. */
62
+ export interface InvoiceUploadHandle {
63
+ getFiles: () => Array<{
64
+ id: string;
65
+ name: string;
66
+ size: number;
67
+ state: InvoiceUploadFileState;
68
+ }>;
69
+ removeFile: (id: string) => void;
70
+ clear: () => void;
71
+ }
72
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,36 @@
1
+ import type { UploadedInvoice } from './types';
2
+ export declare function FileNameCell({ invoice }: {
3
+ invoice: UploadedInvoice;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ /** Never rendered for a masked cell: under privacy mode DataGrid shows its
6
+ * mask instead. */
7
+ export declare function SupplierCell({ invoice }: {
8
+ invoice: UploadedInvoice;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ export declare function InvoiceNumberCell({ invoice }: {
11
+ invoice: UploadedInvoice;
12
+ }): import("react/jsx-runtime").JSX.Element;
13
+ export declare function DateCell({ invoice }: {
14
+ invoice: UploadedInvoice;
15
+ }): import("react/jsx-runtime").JSX.Element;
16
+ export declare function LineCountCell({ invoice }: {
17
+ invoice: UploadedInvoice;
18
+ }): import("react/jsx-runtime").JSX.Element;
19
+ /** Money on its exact decimal path. Text that does not parse shows as
20
+ * written, never as a rounded figure. */
21
+ export declare function TotalCell({ invoice }: {
22
+ invoice: UploadedInvoice;
23
+ }): import("react/jsx-runtime").JSX.Element;
24
+ export interface StatusCellProps {
25
+ invoice: UploadedInvoice;
26
+ loading: boolean;
27
+ privacyMode: boolean;
28
+ }
29
+ /**
30
+ * The status badge. An error row shows its message as a second line and
31
+ * blocks nothing else. A loading row shows a spinner with its words in
32
+ * place of the badge. Under privacy mode a person-supplier row never shows
33
+ * the host's error text (it may name the person); kit copy stands in.
34
+ */
35
+ export declare function StatusCell({ invoice, loading, privacyMode }: StatusCellProps): import("react/jsx-runtime").JSX.Element;
36
+ //# sourceMappingURL=cells.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { type MutableRefObject } from 'react';
2
+ import type { DataGridColumn } from '../data-grid/types';
3
+ import { type RowActionDef } from '../row-actions/row-actions';
4
+ import { type InvoiceUploadListCallbacks } from './model';
5
+ import type { UploadedInvoice } from './types';
6
+ /** The Review row action: one inline button, off on an error row. */
7
+ export declare function useInvoiceRowActions(callbacksRef: MutableRefObject<InvoiceUploadListCallbacks>, available: boolean): RowActionDef<UploadedInvoice>[];
8
+ export interface UseInvoiceUploadListColumnsOptions {
9
+ privacyMode: boolean;
10
+ loadingIds: ReadonlySet<string>;
11
+ rowActions: readonly RowActionDef<UploadedInvoice>[];
12
+ }
13
+ export declare function useInvoiceUploadListColumns({ privacyMode, loadingIds, rowActions, }: UseInvoiceUploadListColumnsOptions): DataGridColumn<UploadedInvoice>[];
14
+ //# sourceMappingURL=columns.d.ts.map
@@ -0,0 +1,18 @@
1
+ import type { DataGridHandle } from '../data-grid/types';
2
+ import { type InvoiceUploadListCallbacks } from './model';
3
+ import { type InvoiceUploadListFeatureInfo, type InvoiceUploadListHandle, type UploadedInvoice } from './types';
4
+ /** What the handle reads from the last render. */
5
+ export interface InvoiceUploadListLive {
6
+ invoices: readonly UploadedInvoice[];
7
+ callbacks: InvoiceUploadListCallbacks;
8
+ loadingIds: ReadonlySet<string>;
9
+ privacyMode: boolean;
10
+ status: InvoiceUploadListFeatureInfo['status'];
11
+ selectable: boolean;
12
+ }
13
+ export declare function createInvoiceUploadListHandle(gridRef: {
14
+ readonly current: DataGridHandle | null;
15
+ }, liveRef: {
16
+ readonly current: InvoiceUploadListLive;
17
+ }): InvoiceUploadListHandle;
18
+ //# sourceMappingURL=handle.d.ts.map
@@ -0,0 +1,5 @@
1
+ export { InvoiceUploadList } from './invoice-upload-list';
2
+ export { invoiceUploadListAgent } from './invoice-upload-list.agent';
3
+ export { INVOICE_DOCUMENT_KINDS, INVOICE_SUPPLIER_KINDS, INVOICE_UPLOAD_LIST_COLUMNS, INVOICE_UPLOAD_LIST_SORT_COLUMNS, } from './types';
4
+ export type { InvoiceDocumentKind, InvoiceSupplierKind, InvoiceUploadListColumnId, InvoiceUploadListColumnInfo, InvoiceUploadListError, InvoiceUploadListFeatureInfo, InvoiceUploadListHandle, InvoiceUploadListProps, InvoiceUploadListSortColumn, InvoiceUploadListSortEntry, InvoiceUploadReviewDisabledReason, InvoiceUploadRowSummary, UploadedInvoice, WarehouseInvoiceStatus, } from './types';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { I as O, a, b as L, c as N, d as s, i as S } from "../../_chunks/invoice-upload-list-CsFsRgbt.js";
2
+ export {
3
+ O as INVOICE_DOCUMENT_KINDS,
4
+ a as INVOICE_SUPPLIER_KINDS,
5
+ L as INVOICE_UPLOAD_LIST_COLUMNS,
6
+ N as INVOICE_UPLOAD_LIST_SORT_COLUMNS,
7
+ s as InvoiceUploadList,
8
+ S as invoiceUploadListAgent
9
+ };
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,4 @@
1
+ import type { AgentAdapter } from '../../agent/types';
2
+ import type { InvoiceUploadListHandle } from './types';
3
+ export declare const invoiceUploadListAgent: AgentAdapter<InvoiceUploadListHandle>;
4
+ //# sourceMappingURL=invoice-upload-list.agent.d.ts.map
@@ -0,0 +1,10 @@
1
+ import type { InvoiceUploadListHandle, InvoiceUploadListProps } from './types';
2
+ export type { InvoiceUploadListProps, InvoiceUploadListHandle } from './types';
3
+ /**
4
+ * The uploaded invoices of a warehouse load. Pass `invoices` with the
5
+ * status the platform worked out for each; react to `onReview`,
6
+ * `onLoadAllReady` and `onLoadSelected`. `ref` gives the curated
7
+ * `InvoiceUploadListHandle`.
8
+ */
9
+ export declare const InvoiceUploadList: import("react").ForwardRefExoticComponent<InvoiceUploadListProps & import("react").RefAttributes<InvoiceUploadListHandle>>;
10
+ //# sourceMappingURL=invoice-upload-list.d.ts.map
@@ -0,0 +1,28 @@
1
+ /** The root around the DataGrid frame and the count footer. With
2
+ * `height: 'fill'` it is a flex column that fills its flex parent, so the
3
+ * grid becomes the bounded scroll container (virtualised rows). */
4
+ export declare const invoiceUploadListVariants: (props?: ({
5
+ height?: "auto" | "fill" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ /** Lines stacked in one cell (a value and its muted second line). */
8
+ export declare const cellStackVariants: (props?: ({
9
+ align?: "end" | "start" | null | undefined;
10
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
+ /** A muted second line ("Credit note"). */
12
+ export declare const secondaryTextVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
13
+ /** The error message under the Error badge. It wraps: a platform message
14
+ * is a sentence, not a word. */
15
+ export declare const errorTextVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
16
+ /** One line of text that truncates; the full text stays in the DOM. */
17
+ export declare const truncatedTextVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
18
+ /** The file name: the row header. */
19
+ export declare const fileNameVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
20
+ /** Digits that line up. */
21
+ export declare const figureVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
22
+ /** A spinner beside its words. */
23
+ export declare const loadingGroupVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
24
+ /** The decorative spinner of a loading row. */
25
+ export declare const loadingSpinnerVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
26
+ /** The count footer under the grid: counts per status. */
27
+ export declare const countsFooterVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
28
+ //# sourceMappingURL=invoice-upload-list.variants.d.ts.map
@@ -0,0 +1,40 @@
1
+ import type { ScaledDecimal } from '../_shared/decimal';
2
+ import { type WarehouseInvoiceStatus } from '../_shared/warehouse-load';
3
+ import type { InvoiceUploadRowSummary, UploadedInvoice, InvoiceUploadListSortEntry, InvoiceUploadListSortColumn } from './types';
4
+ export declare const INVOICE_UPLOAD_LIST_DEFAULT_ID = "warehouse-invoice-upload-list";
5
+ /** Reading order of the statuses: work to do first. Used to sort. */
6
+ export declare const INVOICE_STATUS_RANK: Record<WarehouseInvoiceStatus, number>;
7
+ /** Amounts here arrive as decimal text, signed (a credit note is negative),
8
+ * up to 11 integer digits and 8 decimals. `null` when it does not parse. */
9
+ export declare function readInvoiceTotal(total: string | null): ScaledDecimal | null;
10
+ /** Is this supplier masked right now? Only people, only in privacy mode. */
11
+ export declare function isSupplierMasked(invoice: Pick<UploadedInvoice, 'supplier'>, privacyMode: boolean): boolean;
12
+ export declare function isPersonSupplier(invoice: UploadedInvoice): boolean;
13
+ /** A row can be ticked when it is ready and not being loaded. */
14
+ export declare function isInvoiceSelectable(invoice: UploadedInvoice, loading: ReadonlySet<string>): boolean;
15
+ /** Ids a "load all ready" sends: ready and not already loading, in the
16
+ * order given. */
17
+ export declare function readyInvoiceIds(invoices: readonly UploadedInvoice[], loading: ReadonlySet<string>): string[];
18
+ export declare function countByStatus(invoices: readonly UploadedInvoice[]): Record<WarehouseInvoiceStatus, number>;
19
+ /** Row name for row-scoped controls: the file, then the invoice number
20
+ * when the file holds more than one. Not personal data. */
21
+ export declare function invoiceRowLabel(invoice: UploadedInvoice): string;
22
+ /** The agent-safe projection of one invoice. */
23
+ export declare function summariseInvoice(invoice: UploadedInvoice, privacyMode: boolean, loading: ReadonlySet<string>, canReview: boolean): InvoiceUploadRowSummary;
24
+ /** A calendar day `YYYY-MM-DD` in the UI language, medium style, read and
25
+ * formatted in UTC so it never moves with the time zone. Other text is
26
+ * returned as given. */
27
+ export declare function formatInvoiceDay(day: string, language: string): string;
28
+ export declare function isInvoiceSortColumn(id: string): id is InvoiceUploadListSortColumn;
29
+ /** DataGrid sort entries to the list's own, dropping other columns. */
30
+ export declare function toInvoiceSortEntries(entries: ReadonlyArray<{
31
+ colId: string;
32
+ sort: 'asc' | 'desc';
33
+ }>): InvoiceUploadListSortEntry[];
34
+ /** Callbacks the handle and the UI share. */
35
+ export interface InvoiceUploadListCallbacks {
36
+ onReview?: (invoice: UploadedInvoice) => void;
37
+ onLoadAllReady?: (ids: string[]) => void;
38
+ onLoadSelected?: (ids: string[]) => void;
39
+ }
40
+ //# sourceMappingURL=model.d.ts.map
@@ -0,0 +1,154 @@
1
+ import type { DecimalString } from '../_shared/decimal';
2
+ import type { WarehouseBadgeVariant, WarehouseInvoiceStatus } from '../_shared/warehouse-load';
3
+ export type { DecimalString, WarehouseBadgeVariant, WarehouseInvoiceStatus };
4
+ /** Column ids, in display order. `select` is the grid's own checkbox. */
5
+ export declare const INVOICE_UPLOAD_LIST_COLUMNS: readonly ["fileName", "supplier", "invoiceNumber", "date", "lineCount", "total", "status", "actions"];
6
+ export type InvoiceUploadListColumnId = (typeof INVOICE_UPLOAD_LIST_COLUMNS)[number];
7
+ /** Columns the list sorts by. */
8
+ export declare const INVOICE_UPLOAD_LIST_SORT_COLUMNS: readonly ["fileName", "supplier", "invoiceNumber", "date", "lineCount", "total", "status"];
9
+ export type InvoiceUploadListSortColumn = (typeof INVOICE_UPLOAD_LIST_SORT_COLUMNS)[number];
10
+ export declare const INVOICE_SUPPLIER_KINDS: readonly ["company", "person"];
11
+ export type InvoiceSupplierKind = (typeof INVOICE_SUPPLIER_KINDS)[number];
12
+ export declare const INVOICE_DOCUMENT_KINDS: readonly ["invoice", "creditNote"];
13
+ export type InvoiceDocumentKind = (typeof INVOICE_DOCUMENT_KINDS)[number];
14
+ /** One invoice body. A file may hold several, so a file name can repeat. */
15
+ export interface UploadedInvoice {
16
+ /** The only row value in the DOM (`data-row-id`). Unique per invoice. */
17
+ id: string;
18
+ /** The `InvoiceUpload` file id this invoice came from. */
19
+ fileId: string;
20
+ /** File name as chosen; shown, never parsed. Names the row. */
21
+ fileName: string;
22
+ /** Who issued it. `person` is masked under privacy mode; a company
23
+ * stays visible. `null` when the platform found no supplier. */
24
+ supplier: {
25
+ name: string;
26
+ kind: InvoiceSupplierKind;
27
+ } | null;
28
+ invoiceNumber: string | null;
29
+ /** Calendar day `YYYY-MM-DD` of this invoice body; shown in UTC. */
30
+ date: string | null;
31
+ lineCount: number | null;
32
+ /** FatturaPA `ImportoTotaleDocumento` as decimal text ("1234.50"). */
33
+ total: DecimalString | null;
34
+ /** ISO 4217 code for `total`. */
35
+ currency: string;
36
+ /** Default `invoice`. A credit note shows a muted "Credit note" line. */
37
+ documentKind?: InvoiceDocumentKind;
38
+ status: WarehouseInvoiceStatus;
39
+ /** Platform text for status `error`, already translated. It is host
40
+ * text: under privacy mode it gives way to kit copy on a row whose
41
+ * supplier is a person. */
42
+ error?: string;
43
+ }
44
+ /** Error panel copy and retry for `status="error"`. */
45
+ export interface InvoiceUploadListError {
46
+ title?: string;
47
+ description?: string;
48
+ onRetry?: () => void;
49
+ }
50
+ export interface InvoiceUploadListProps {
51
+ /** Instance id: the saved column state key and `data-component-id`. */
52
+ id?: string;
53
+ invoices: readonly UploadedInvoice[];
54
+ /** `loading` with no invoices shows skeleton rows. Default `ready`. */
55
+ status?: 'ready' | 'loading' | 'error';
56
+ error?: InvoiceUploadListError;
57
+ /** Ids of the selected invoices. Only `readyToLoad` rows are selectable.
58
+ * Checkboxes show when any selection prop or `onLoadSelected` is set. */
59
+ selection?: readonly string[];
60
+ defaultSelection?: readonly string[];
61
+ onSelectionChange?: (ids: string[]) => void;
62
+ /** Row action "Review". Disabled, with a reason, on error rows. */
63
+ onReview?: (invoice: UploadedInvoice) => void;
64
+ /** Toolbar "Load all ready (N)": every `readyToLoad` invoice that is not
65
+ * already loading, whatever the search or sort. */
66
+ onLoadAllReady?: (ids: string[]) => void;
67
+ /** Bulk action on the selection. */
68
+ onLoadSelected?: (ids: string[]) => void;
69
+ /** Invoices being loaded now: a spinner, and not selectable. */
70
+ loadingIds?: readonly string[];
71
+ /** Hides the supplier of every `person`; companies stay visible. */
72
+ privacyMode?: boolean;
73
+ /** Table caption. Default "Uploaded invoices". */
74
+ caption?: string;
75
+ density?: 'default' | 'compact';
76
+ /** `fill` makes the grid the bounded scroll container of a flex column
77
+ * parent (200 invoices virtualise). Default `auto`. */
78
+ height?: 'auto' | 'fill';
79
+ persistColumnState?: boolean;
80
+ className?: string;
81
+ 'aria-label'?: string;
82
+ 'aria-labelledby'?: string;
83
+ 'aria-describedby'?: string;
84
+ }
85
+ export interface InvoiceUploadListSortEntry {
86
+ colId: InvoiceUploadListSortColumn;
87
+ sort: 'asc' | 'desc';
88
+ }
89
+ export interface InvoiceUploadListFeatureInfo {
90
+ privacyMode: boolean;
91
+ status: 'ready' | 'loading' | 'error';
92
+ selectable: boolean;
93
+ readyCount: number;
94
+ }
95
+ export interface InvoiceUploadListColumnInfo {
96
+ id: InvoiceUploadListColumnId;
97
+ label: string;
98
+ visible: boolean;
99
+ canHide: boolean;
100
+ sortable: boolean;
101
+ masked: boolean;
102
+ }
103
+ /** Why Review is off. `error`: the file could not be read. */
104
+ export type InvoiceUploadReviewDisabledReason = 'error';
105
+ /** The agent-safe projection of one row: ids, enums and counts. A supplier
106
+ * name is given only when it is not masked; a host error text is never
107
+ * given (`hasError` instead). */
108
+ export interface InvoiceUploadRowSummary {
109
+ id: string;
110
+ fileId: string;
111
+ fileName: string;
112
+ status: WarehouseInvoiceStatus;
113
+ supplierKind: InvoiceSupplierKind | null;
114
+ supplierName?: string;
115
+ invoiceNumber: string | null;
116
+ date: string | null;
117
+ lineCount: number | null;
118
+ loading: boolean;
119
+ hasError: boolean;
120
+ selectable: boolean;
121
+ review: 'enabled' | {
122
+ disabled: InvoiceUploadReviewDisabledReason;
123
+ } | null;
124
+ }
125
+ /** The `ref` of InvoiceUploadList. Ids and kit shapes only: never the
126
+ * DataGrid handle, a row object or a DOM node. A refused call throws an
127
+ * Error whose message starts with its code. */
128
+ export interface InvoiceUploadListHandle {
129
+ getFeatures(): InvoiceUploadListFeatureInfo;
130
+ /** Ids of the rows showing now: the search and filters apply. */
131
+ getRowIds(): string[];
132
+ /** Is this invoice in the list at all, shown or not? */
133
+ hasRow(id: string): boolean;
134
+ getRowSummaries(): InvoiceUploadRowSummary[];
135
+ /** Invoices per status, every status present. */
136
+ getCounts(): Record<WarehouseInvoiceStatus, number>;
137
+ getSelection(): string[];
138
+ setSelection(ids: readonly string[]): void;
139
+ /** Selects every ready, not-loading invoice; returns the selection. */
140
+ selectReady(): string[];
141
+ clearSelection(): void;
142
+ getSort(): InvoiceUploadListSortEntry[];
143
+ setSort(model: readonly InvoiceUploadListSortEntry[]): void;
144
+ getColumns(): InvoiceUploadListColumnInfo[];
145
+ scrollToRow(id: string): void;
146
+ focusRow(id: string): void;
147
+ /** Same host callback as the Review button. */
148
+ review(id: string): void;
149
+ /** Same host callback as "Load all ready". Returns the ids sent. */
150
+ loadAllReady(): string[];
151
+ /** Same host callback as the bulk action. Returns the ids sent. */
152
+ loadSelected(): string[];
153
+ }
154
+ //# sourceMappingURL=types.d.ts.map
@@ -1,4 +1,4 @@
1
- import { M as o } from "../../_chunks/map-view-Frj8vE7n.js";
1
+ import { M as o } from "../../_chunks/map-view-CHeGd94F.js";
2
2
  export {
3
3
  o as MapView
4
4
  };
@@ -0,0 +1,42 @@
1
+ export interface ClusterInput {
2
+ id: string;
3
+ position: {
4
+ lat: number;
5
+ lng: number;
6
+ };
7
+ }
8
+ export interface MarkerCluster<T extends ClusterInput> {
9
+ /** Id of the first member: unique across clusters, so safe as a React key. */
10
+ id: string;
11
+ /** Average position of the members. */
12
+ position: {
13
+ lat: number;
14
+ lng: number;
15
+ };
16
+ members: T[];
17
+ }
18
+ export interface ClusterResult<T extends ClusterInput> {
19
+ /** Markers that stay on their own pin. */
20
+ singles: T[];
21
+ /** Groups of two or more. */
22
+ clusters: MarkerCluster<T>[];
23
+ }
24
+ /** More markers than this and `clusterMarkers="auto"` clusters. */
25
+ export declare const CLUSTER_AUTO_THRESHOLD = 30;
26
+ /** Markers closer than this on screen, in px, share a cluster. */
27
+ export declare const CLUSTER_RADIUS_PX = 56;
28
+ /**
29
+ * From this zoom on nothing clusters: street level, where two pins that are
30
+ * still together are in the same building and a cluster could never split.
31
+ */
32
+ export declare const CLUSTER_OFF_ZOOM = 17;
33
+ /** Whether `clusterMarkers` asks for clustering of this many markers. */
34
+ export declare function shouldCluster(setting: boolean | 'auto', markerCount: number): boolean;
35
+ /**
36
+ * Groups `markers` that fall within `radiusPx` of each other at `zoom`.
37
+ * Greedy and order-independent (the points are sorted first, so re-sorting
38
+ * the results never reshuffles the clusters). At or above
39
+ * `CLUSTER_OFF_ZOOM` every marker is a single.
40
+ */
41
+ export declare function clusterMarkerSet<T extends ClusterInput>(markers: readonly T[], zoom: number, radiusPx?: number): ClusterResult<T>;
42
+ //# sourceMappingURL=map-view-cluster.d.ts.map
@@ -239,6 +239,36 @@ export interface MapViewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onCl
239
239
  * level. Default 15.
240
240
  */
241
241
  fitMaxZoom?: number;
242
+ /**
243
+ * Group nearby pins into numbered clusters that split as the map zooms in.
244
+ * `'auto'` (default) clusters only above 30 markers, so a map with a few
245
+ * pins looks and behaves as before. `true` clusters any set of two or
246
+ * more; `false` never does.
247
+ *
248
+ * - A cluster is a button named by its count ("12 practices"), at least
249
+ * `--min-target-size` square. Click, Enter or Space zooms to its pins.
250
+ * - The `selectedMarkerId` and `hoveredMarkerId` pins always stay out of
251
+ * clusters, so a chosen or hovered practice is never hidden.
252
+ * - From zoom 17 (street level) pins no longer cluster.
253
+ * - It runs only inside the consented, loaded map: no Google request is
254
+ * made for it.
255
+ */
256
+ clusterMarkers?: boolean | 'auto';
257
+ /**
258
+ * The name of a cluster, by its pin count: a string with `{count}` in it,
259
+ * or a function. Defaults to the kit's translated "12 practices". Set it
260
+ * when the pins are not practices ("12 offices").
261
+ */
262
+ clusterLabel?: string | ((count: number) => string);
263
+ /**
264
+ * A cluster was activated: the map zooms to its pins. The host can track
265
+ * it. The zoom is not reported as a patient pan, so `onBoundsChange` says
266
+ * `userInteraction: false` for it.
267
+ */
268
+ onClusterClick?: (details: {
269
+ count: number;
270
+ markerIds: string[];
271
+ }) => void;
242
272
  }
243
273
  declare const mapViewVariants: (props?: ({
244
274
  size?: "fill" | "sm" | "md" | "lg" | null | undefined;
@@ -253,6 +283,15 @@ export declare function cameraForPoints(points: MapLatLng[], width: number, heig
253
283
  center: MapLatLng;
254
284
  zoom: number;
255
285
  };
286
+ /**
287
+ * The look of a cluster: a round `--map-marker-color` marker with the count. It is the
288
+ * content of a Google marker, which carries the name, the focus and the click,
289
+ * so it is hidden from assistive technology itself. Exported for the story
290
+ * specimens; MapView draws it by itself.
291
+ */
292
+ export declare function MapClusterMarker({ count }: {
293
+ count: number;
294
+ }): ReactNode;
256
295
  /** What the map area shows while Google's map library is on its way.
257
296
  * Exported for its story; not part of the public API. */
258
297
  export declare function MapViewLoading(): ReactNode;
@@ -1,4 +1,4 @@
1
- import { N as a } from "../../_chunks/notes-panel-CHR-Jv6N.js";
1
+ import { N as a } from "../../_chunks/notes-panel-BOwlTz2-.js";
2
2
  export {
3
3
  a as NotesPanel
4
4
  };
@@ -1,4 +1,4 @@
1
- import { P as t, p as a } from "../../_chunks/practice-results-CzHWprX4.js";
1
+ import { P as t, p as a } from "../../_chunks/practice-results-b3uchdBn.js";
2
2
  export {
3
3
  t as PracticeResults,
4
4
  a as practiceResultsAgent
@@ -1,4 +1,4 @@
1
- import { D as s, a as e, P as r, S as A, c as L } from "../../_chunks/public-footer-CB7ruuLI.js";
1
+ import { D as s, a as e, P as r, S as A, c as L } from "../../_chunks/public-footer-C8UIzqLJ.js";
2
2
  import { p as _ } from "../../_chunks/public-footer.agent-CRZCrq3_.js";
3
3
  export {
4
4
  s as DEFAULT_MARKETING_BASE_URL,
@@ -35,6 +35,11 @@ export interface PublicFooterLinkSection {
35
35
  links: PublicFooterLinkSectionLink[];
36
36
  /** Optional "see all" link, shown under the group's links. */
37
37
  more?: PublicFooterLinkSectionLink;
38
+ /**
39
+ * How many columns the links fill inside the group, on every width.
40
+ * Default: 2.
41
+ */
42
+ columns?: 1 | 2;
38
43
  }
39
44
  export interface PublicFooterSocial {
40
45
  network: SocialNetwork;
@@ -72,6 +77,25 @@ export interface PublicFooterProps {
72
77
  * matches no group keeps the Legal column. Default: unset, Legal column.
73
78
  */
74
79
  contactsGroup?: string;
80
+ /**
81
+ * `full` variant: host link lists shown beside the logo and description,
82
+ * in the top row (before any `linkGroups` columns). Each entry is a
83
+ * heading (an `h3`), a list of real `<a href>` links in one or two columns
84
+ * and an optional "view all" link under them. Two lists sit side by side
85
+ * from `md`, stacked on phones, always open (no accordion). The host
86
+ * supplies every text, already translated, so the kit adds no strings.
87
+ * With no `linkGroups`, the top row holds only the brand and these lists.
88
+ * Default: none.
89
+ */
90
+ brandLinks?: PublicFooterLinkSection[];
91
+ /**
92
+ * `full` variant: put the Contacts link in the bottom legal bar, after
93
+ * Privacy and Terms and before `extraNavSlot`, and render no Legal column
94
+ * and no Contacts link in any host column. Pair it with `brandLinks` for a
95
+ * footer that has no link columns at all. Default: false (existing
96
+ * behaviour: a Legal column, or `contactsGroup`).
97
+ */
98
+ contactsInLegalBar?: boolean;
75
99
  /**
76
100
  * `full` variant: a short line under the logo describing the product,
77
101
  * already translated plain text. Default: none.
@@ -81,7 +81,7 @@ export interface PublicHeaderDropdownLinkProps extends Omit<AnchorHTMLAttributes
81
81
  }
82
82
  declare const rootVariants: (props?: ({
83
83
  variant?: "dark" | "transparent" | "brand" | "pill" | null | undefined;
84
- sticky?: "top" | "none" | "scroll-up" | null | undefined;
84
+ sticky?: "none" | "top" | "scroll-up" | null | undefined;
85
85
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
86
86
  export declare const PublicHeader: import("react").ForwardRefExoticComponent<PublicHeaderProps & import("react").RefAttributes<HTMLElement>> & {
87
87
  NavLink: import("react").ForwardRefExoticComponent<PublicHeaderNavLinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -1,4 +1,4 @@
1
- import { R as o, I as e, r as n } from "../../_chunks/radiograph-panel.agent-9jwXlOXB.js";
1
+ import { R as o, I as e, r as n } from "../../_chunks/radiograph-panel.agent-Dcv16n7u.js";
2
2
  export {
3
3
  o as RadiographPanel,
4
4
  e as RadiographPanelIcon,
@@ -1,4 +1,4 @@
1
- import { R as i, r as o, w as a } from "../../_chunks/rich-text-editor-CMPA5Wgy.js";
1
+ import { R as i, r as o, w as a } from "../../_chunks/rich-text-editor-BLEdXJ0l.js";
2
2
  import { k as s } from "../../_chunks/kit-extensions-C3oL0WTp.js";
3
3
  export {
4
4
  i as RichTextEditor,
@@ -1,4 +1,4 @@
1
- import { T as o, t as r } from "../../_chunks/task-editor-WdDCqbIL.js";
1
+ import { T as o, t as r } from "../../_chunks/task-editor-Czcx9B-3.js";
2
2
  export {
3
3
  o as TaskEditor,
4
4
  r as taskEditorAgent
@@ -0,0 +1,4 @@
1
+ export { WarehouseLoadSummary } from './warehouse-load-summary';
2
+ export { warehouseLoadSummaryAgent } from './warehouse-load-summary.agent';
3
+ export type { WarehouseCountKey, WarehouseLoadCounts, WarehouseLoadFailedFile, WarehouseLoadOutcome, WarehouseLoadScope, WarehouseLoadSummaryHandle, WarehouseLoadSummaryProps, } from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { W as o, w as r } from "../../_chunks/warehouse-load-summary-D88M4Ii7.js";
2
+ export {
3
+ o as WarehouseLoadSummary,
4
+ r as warehouseLoadSummaryAgent
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,8 @@
1
+ import type { WarehouseCountKey, WarehouseLoadCounts, WarehouseLoadFailedFile, WarehouseLoadOutcome, WarehouseLoadScope } from './types';
2
+ /** The counts to show, in vocabulary order. */
3
+ export declare function visibleCounts(counts: WarehouseLoadCounts, scope: WarehouseLoadScope): Array<{
4
+ key: WarehouseCountKey;
5
+ count: number;
6
+ }>;
7
+ export declare function resolveOutcome(outcome: WarehouseLoadOutcome | undefined, counts: WarehouseLoadCounts, failedFiles: ReadonlyArray<WarehouseLoadFailedFile>): WarehouseLoadOutcome;
8
+ //# sourceMappingURL=model.d.ts.map