@tap-payments/os-micro-frontend-shared 0.3.288 → 0.3.289-test.1794846477

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 (64) hide show
  1. package/build/_chunks/chunk-PYE5IO3O.js +1 -0
  2. package/build/_chunks/chunk-RK4UGNRY.js +1 -0
  3. package/build/_chunks/{chunk-E2Z6V4OE.js → chunk-XL3OK5YJ.js} +1 -1
  4. package/build/components/ActionMenu/ActionMenu.d.ts +4 -0
  5. package/build/components/ActionMenu/ActionMenuFlyoutRow.d.ts +4 -0
  6. package/build/components/ActionMenu/ActionMenuLeafRow.d.ts +10 -0
  7. package/build/components/ActionMenu/ActionMenuPanelContext.d.ts +4 -0
  8. package/build/components/ActionMenu/ActionMenuRow.d.ts +7 -0
  9. package/build/components/ActionMenu/ActionMenuRowLeading.d.ts +4 -0
  10. package/build/components/ActionMenu/ActionMenuRowTrailing.d.ts +6 -0
  11. package/build/components/ActionMenu/constants.d.ts +47 -0
  12. package/build/components/ActionMenu/index.d.ts +4 -0
  13. package/build/components/ActionMenu/index.js +1 -0
  14. package/build/components/ActionMenu/style.d.ts +48 -0
  15. package/build/components/ActionMenu/type.d.ts +141 -0
  16. package/build/components/ActionMenu/utils.d.ts +27 -0
  17. package/build/components/ColumnViews/index.js +1 -1
  18. package/build/components/DateFilter/index.js +1 -1
  19. package/build/components/ExportReportButton/ExportReportButton.d.ts +4 -0
  20. package/build/components/ExportReportButton/ReportFileRow.d.ts +10 -0
  21. package/build/components/ExportReportButton/ReportLoadingRow.d.ts +8 -0
  22. package/build/components/ExportReportButton/ReportRequestRow.d.ts +11 -0
  23. package/build/components/ExportReportButton/constants.d.ts +51 -0
  24. package/build/components/ExportReportButton/hooks/useReportDownload.d.ts +21 -0
  25. package/build/components/ExportReportButton/index.d.ts +6 -0
  26. package/build/components/ExportReportButton/index.js +1 -0
  27. package/build/components/ExportReportButton/style.d.ts +67 -0
  28. package/build/components/ExportReportButton/type.d.ts +147 -0
  29. package/build/components/ExportReportButton/utils.d.ts +10 -0
  30. package/build/components/FilterDropdown/index.js +1 -1
  31. package/build/components/ListColumnFilter/index.js +1 -1
  32. package/build/components/ListHeader/index.js +1 -1
  33. package/build/components/PhoneFilter/index.js +1 -1
  34. package/build/components/StatusFilter/index.js +1 -1
  35. package/build/components/StatusIcons/index.js +1 -1
  36. package/build/components/TableCells/index.js +1 -1
  37. package/build/components/index.d.ts +2 -3
  38. package/build/components/index.js +1 -1
  39. package/build/datetime/components/index.js +1 -1
  40. package/build/index.js +1 -1
  41. package/package.json +1 -1
  42. package/build/_chunks/chunk-P6WIYEZX.js +0 -1
  43. package/build/_chunks/chunk-S3BFBCVM.js +0 -1
  44. package/build/components/ActionsDropdownMenu/ActionsDropdownMenu.d.ts +0 -3
  45. package/build/components/ActionsDropdownMenu/AppMenuItem.d.ts +0 -15
  46. package/build/components/ActionsDropdownMenu/constants.d.ts +0 -1
  47. package/build/components/ActionsDropdownMenu/index.d.ts +0 -3
  48. package/build/components/ActionsDropdownMenu/index.js +0 -1
  49. package/build/components/ActionsDropdownMenu/style.d.ts +0 -16
  50. package/build/components/ActionsDropdownMenu/types.d.ts +0 -42
  51. package/build/components/TableReports/DownloadIconButton.d.ts +0 -7
  52. package/build/components/TableReports/Downloads.d.ts +0 -10
  53. package/build/components/TableReports/RecordLoading.d.ts +0 -2
  54. package/build/components/TableReports/TableReports.d.ts +0 -5
  55. package/build/components/TableReports/components/DownloadButton/DownloadButton.d.ts +0 -8
  56. package/build/components/TableReports/components/DownloadButton/index.d.ts +0 -2
  57. package/build/components/TableReports/components/DownloadButton/style.d.ts +0 -263
  58. package/build/components/TableReports/hooks/index.d.ts +0 -1
  59. package/build/components/TableReports/hooks/useDownloadReport.d.ts +0 -11
  60. package/build/components/TableReports/index.d.ts +0 -7
  61. package/build/components/TableReports/index.js +0 -1
  62. package/build/components/TableReports/style.d.ts +0 -324
  63. package/build/components/TableReports/type.d.ts +0 -37
  64. package/build/components/TableReports/utils.d.ts +0 -2
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { ActionMenuProps } from './type';
3
+ declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ActionMenuProps & import("react").RefAttributes<HTMLDivElement>>>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { ActionMenuFlyoutRowProps } from './type';
3
+ /** Row with a hover flyout submenu; nested rows go back through `ActionMenuRow`, so flyouts can nest. */
4
+ export declare function ActionMenuFlyoutRow({ item, onClose }: ActionMenuFlyoutRowProps): import("react").JSX.Element | null;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { ActionMenuLeafRowProps } from './type';
3
+ /**
4
+ * Clickable row.
5
+ * - Direct (top level): no default end; menu stays open.
6
+ * - Linked (top level): trailing dot + arrow (default `endAdornment`), closes the menu after a click.
7
+ * - Nested (inside a flyout): trailing dot, no default end; menu stays open.
8
+ * `endAdornment` replaces the default end when set (`null` hides it).
9
+ */
10
+ export declare function ActionMenuLeafRow({ item, linked, nested, onClose }: ActionMenuLeafRowProps): import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { ActionMenuPanelSize } from './type';
3
+ export declare const ActionMenuPanelContext: import("react").Context<ActionMenuPanelSize>;
4
+ export declare function useActionMenuPanelSize(): ActionMenuPanelSize;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import type { ActionMenuRowProps } from './type';
3
+ /**
4
+ * Picks the row kind at any depth: a row with `items` is a flyout parent (omitted when no nested
5
+ * item is visible); every other row is a leaf.
6
+ */
7
+ export declare function ActionMenuRow({ item, linked, nested, onClose }: ActionMenuRowProps): import("react").JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { ActionMenuRowLeadingProps } from './type';
3
+ /** Leading slot: renders `startAdornment`; nothing when it is omitted, `null`, or `false`. */
4
+ export declare function ActionMenuRowLeading({ startAdornment, disabled }: ActionMenuRowLeadingProps): import("react").JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { ActionMenuRowTrailingProps } from './type';
3
+ /** Default `endAdornment` for linked and flyout rows. */
4
+ export declare function ActionMenuArrow(): import("react").JSX.Element;
5
+ /** Trailing group: `trailingHint` dot, then the resolved end adornment (default arrow or caller content). */
6
+ export declare function ActionMenuRowTrailing({ trailingHint, endAdornment, disabled }: ActionMenuRowTrailingProps): import("react").JSX.Element | null;
@@ -0,0 +1,47 @@
1
+ export declare const actionMenuClassNamePrefix: "os-shared-ActionMenu";
2
+ export declare const actionMenuClassNames: {
3
+ readonly root: "os-shared-ActionMenu-root";
4
+ readonly popper: "os-shared-ActionMenu-popper";
5
+ readonly panel: "os-shared-ActionMenu-panel";
6
+ readonly sectionHeader: "os-shared-ActionMenu-sectionHeader";
7
+ readonly sectionDivider: "os-shared-ActionMenu-sectionDivider";
8
+ readonly item: "os-shared-ActionMenu-item";
9
+ readonly itemContent: "os-shared-ActionMenu-itemContent";
10
+ readonly itemLabel: "os-shared-ActionMenu-itemLabel";
11
+ readonly itemIcon: "os-shared-ActionMenu-itemIcon";
12
+ readonly startAdornment: "os-shared-ActionMenu-startAdornment";
13
+ readonly rowEnd: "os-shared-ActionMenu-rowEnd";
14
+ readonly endAdornment: "os-shared-ActionMenu-endAdornment";
15
+ readonly arrow: "os-shared-ActionMenu-arrow";
16
+ readonly trailingDot: "os-shared-ActionMenu-trailingDot";
17
+ readonly flyoutHost: "os-shared-ActionMenu-flyoutHost";
18
+ readonly flyoutPopper: "os-shared-ActionMenu-flyoutPopper";
19
+ };
20
+ /**
21
+ * Legacy direct-action icon keys → URLs, kept as data for callers converting `ActionCell`-style
22
+ * actions (`icon: 'refund'`). `ActionMenu` itself does not read it: pass `actionMenuIcon(ACTION_ICONS_MAPPER[key])`.
23
+ */
24
+ export declare const ACTION_ICONS_MAPPER: Record<string, string>;
25
+ /** Default scroll cap for the root menu and flyout lists (px). */
26
+ export declare const DEFAULT_ACTION_MENU_MAX_HEIGHT = 360;
27
+ /** Row labels truncate with an ellipsis above this panel width (px). */
28
+ export declare const ACTION_MENU_MAX_WIDTH = 280;
29
+ /** Panel minimum width (px). */
30
+ export declare const ACTION_MENU_MIN_WIDTH = 148;
31
+ /** Row height (px). */
32
+ export declare const ACTION_MENU_ROW_HEIGHT = 32;
33
+ /** Section header height (px). */
34
+ export declare const ACTION_MENU_SECTION_HEADER_HEIGHT = 27;
35
+ /** Gap between the anchor and the root panel (px). */
36
+ export declare const ACTION_MENU_ANCHOR_GAP = 8;
37
+ /** Row / trailing icon sizes (px). */
38
+ export declare const ACTION_MENU_ICON_SIZE = 16;
39
+ export declare const ACTION_MENU_ARROW_SIZE = 12;
40
+ export declare const ACTION_MENU_TRAILING_DOT_SIZE = 5;
41
+ /** Default trailing dot fill — no v2 token matches this grey; frozen. */
42
+ export declare const ACTION_MENU_TRAILING_DOT_DEFAULT_COLOR = "#D9D9D9";
43
+ /** Panel shadow — `drop-shadow` (not an elevation token) so it follows the rounded panel; frozen. */
44
+ export declare const ACTION_MENU_PANEL_SHADOW = "drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))";
45
+ /** Root popper sits above the invisible `Backdrop` (999); flyouts above MUI modals (1300). */
46
+ export declare const ACTION_MENU_POPPER_Z_INDEX = 1000;
47
+ export declare const ACTION_MENU_FLYOUT_POPPER_Z_INDEX = 1301;
@@ -0,0 +1,4 @@
1
+ export { default, default as ActionMenu } from './ActionMenu';
2
+ export { ACTION_ICONS_MAPPER, ACTION_MENU_MAX_WIDTH, DEFAULT_ACTION_MENU_MAX_HEIGHT, actionMenuClassNames } from './constants';
3
+ export { actionMenuIcon, buildRowActionMenuSections, compactSections, directSection, navigationAppMenuItem, titledSection } from './utils';
4
+ export type { ActionMenuItem, ActionMenuProps, ActionMenuSection, ActionMenuTrailingHint, ActionNavigationItem } from './type';
@@ -0,0 +1 @@
1
+ export{b as ACTION_ICONS_MAPPER,d as ACTION_MENU_MAX_WIDTH,k as ActionMenu,c as DEFAULT_ACTION_MENU_MAX_HEIGHT,a as actionMenuClassNames,e as actionMenuIcon,j as buildRowActionMenuSections,g as compactSections,k as default,h as directSection,f as navigationAppMenuItem,i as titledSection}from'../../_chunks/chunk-PYE5IO3O.js';import'../../_chunks/chunk-4NLQZJVN.js';import'../../_chunks/chunk-EP5VELEJ.js';import'../../_chunks/chunk-XTJZTHR6.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -0,0 +1,48 @@
1
+ /// <reference types="react" />
2
+ export declare const ActionMenuRootStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
5
+ export declare const ActionMenuPopperStyled: import("@emotion/styled").StyledComponent<import("@mui/material/Popper").PopperProps & import("react").RefAttributes<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
6
+ export declare const ActionMenuFlyoutPopperStyled: import("@emotion/styled").StyledComponent<import("@mui/material/Popper").PopperProps & import("react").RefAttributes<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
7
+ /** Scrollable panel (root menu and flyouts). */
8
+ export declare const ActionMenuListStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
9
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
10
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
11
+ $flyout?: boolean | undefined;
12
+ $maxWidth?: number | undefined;
13
+ $maxHeight?: number | undefined;
14
+ }, {}, {}>;
15
+ export declare const ActionMenuRowStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
16
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
17
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
18
+ $open?: boolean | undefined;
19
+ $disabled?: boolean | undefined;
20
+ }, {}, {}>;
21
+ export declare const ActionMenuRowContentStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
22
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
23
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
24
+ export declare const ActionMenuLabelStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
25
+ export declare const ActionMenuSectionHeaderStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
26
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
27
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
28
+ export declare const ActionMenuSectionDividerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
29
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
30
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
31
+ export declare const ActionMenuRowEndStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
32
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
33
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
34
+ export declare const ActionMenuTrailingDotHostStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
35
+ export declare const ActionMenuTrailingDotStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
36
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
37
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
38
+ $color: string;
39
+ }, {}, {}>;
40
+ /** Leading slot: caps nested media at the icon size so a large node cannot stretch the 32px row. */
41
+ export declare const ActionMenuStartAdornmentStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
42
+ $disabled?: boolean | undefined;
43
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
44
+ /** Trailing slot: default arrow or caller content. */
45
+ export declare const ActionMenuEndAdornmentStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
46
+ $disabled?: boolean | undefined;
47
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
48
+ export declare const ActionMenuArrowStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
@@ -0,0 +1,141 @@
1
+ import type React from 'react';
2
+ import type { ReactNode } from 'react';
3
+ import type { PopperProps } from '@mui/material/Popper';
4
+ import type { SxProps, Theme } from '@mui/material/styles';
5
+ /** Status or navigation hint shown as a dot (and optional arrow) at the end of a row. */
6
+ export interface ActionMenuTrailingHint {
7
+ /** Already-translated tooltip shown when the user hovers the dot. */
8
+ tooltip: string;
9
+ /**
10
+ * Dot fill. Defaults to `#D9D9D9` (grey) — use for open-in-new-window hints and inactive/no-activity states.
11
+ * Callers pass a brand color when the dot encodes status (e.g. portfolio activity classification).
12
+ */
13
+ color?: string;
14
+ }
15
+ /** One row in the menu — direct action, linked row (with arrow), or flyout parent when `items` is set. */
16
+ export interface ActionMenuItem {
17
+ /** Already-translated row label; ellipsizes when the panel is narrower than the text. */
18
+ label?: string | null;
19
+ /**
20
+ * Leading content: `actionMenuIcon(url)` for an image, or any node (SVG component, avatar, flag…).
21
+ * Omit (or `null`) for no leading content. Display only — clicks inside it still trigger the row.
22
+ */
23
+ startAdornment?: ReactNode;
24
+ /** When `false`, the row is omitted. Defaults to visible. */
25
+ isVisible?: boolean;
26
+ /** When `true`, the row is greyed out and does not fire `onClick` or open flyouts. */
27
+ disabled?: boolean;
28
+ /** Primary click handler for direct, linked, and flyout leaf rows; linked rows also call `onClose` on the menu. */
29
+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
30
+ /** Right-click handler (direct, linked, and flyout leaf rows). The browser context menu is suppressed when set. */
31
+ onRightClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
32
+ /** Optional dot (and tooltip) before the trailing arrow. Setting it on a top-level row also makes the row linked. */
33
+ trailingHint?: ActionMenuTrailingHint;
34
+ /**
35
+ * Trailing content after the `trailingHint` dot. Defaults to the arrow on linked and flyout rows (nothing on
36
+ * direct rows); a node replaces the arrow, `null` hides it. Display only — clicks inside it still trigger the row.
37
+ */
38
+ endAdornment?: ReactNode;
39
+ /**
40
+ * When set, the row opens a hover flyout submenu instead of behaving as a single action.
41
+ * A row whose `items` are empty (or all hidden) is omitted.
42
+ */
43
+ items?: ActionMenuItem[];
44
+ }
45
+ /** A titled or untitled block of rows; multiple sections render in order with optional dividers. */
46
+ export interface ActionMenuSection {
47
+ /** Already-translated section heading. Omit for an untitled block. */
48
+ title?: string;
49
+ /** Renders a divider above this section. Ignored for the first visible section. */
50
+ dividerBefore?: boolean;
51
+ /**
52
+ * Rows in this section are linked rows: trailing arrow (default `endAdornment`), and the menu closes after a click. `buildRowActionMenuSections` sets it on the linked section.
53
+ */
54
+ linked?: boolean;
55
+ /** Rows in this section, in display order (invisible rows are filtered out). */
56
+ items: ActionMenuItem[];
57
+ }
58
+ /**
59
+ * Sectioned row-actions menu. `className` and `sx` land on the scrollable panel;
60
+ * `ref` lands on the same panel. Pass `id` explicitly — no id is generated.
61
+ * The optional DOM `id` also becomes the `data-testid` when passed.
62
+ */
63
+ export interface ActionMenuProps {
64
+ /** Optional DOM id; also used as `data-testid` when provided. */
65
+ id?: string;
66
+ /** Merged onto the scrollable panel (`actionMenuClassNames.panel`). */
67
+ className?: string;
68
+ /** MUI sx overrides applied to the scrollable action panel. */
69
+ sx?: SxProps<Theme>;
70
+ /** MUI sx overrides applied to the root MUI Popper (placement layer). */
71
+ popperSx?: SxProps<Theme>;
72
+ /** Element the menu anchors to; when `null`, nothing is rendered. */
73
+ anchorEl: HTMLElement | null;
74
+ /** Called when the menu should close (backdrop click, after linked-row clicks). */
75
+ onClose: () => void;
76
+ /** Section list built with `compactSections`, `directSection`, `titledSection`, or by hand. */
77
+ sections: ActionMenuSection[];
78
+ /** Popper placement relative to `anchorEl`. Defaults to `bottom-end`. */
79
+ placement?: PopperProps['placement'];
80
+ /** Panel max width in px. Defaults to `ACTION_MENU_MAX_WIDTH` (280). Flyouts inherit the same value. */
81
+ panelMaxWidth?: number;
82
+ /** Panel max height in px before vertical scroll. Defaults to `DEFAULT_ACTION_MENU_MAX_HEIGHT` (360). */
83
+ panelMaxHeight?: number;
84
+ }
85
+ /**
86
+ * Input shape for `navigationAppMenuItem` — maps table cross-app navigation into flyout rows
87
+ * (`onContextMenu` on leaves for open-in-new-window).
88
+ */
89
+ export interface ActionNavigationItem {
90
+ /** Already-translated row label. */
91
+ label?: string | null;
92
+ /** App or action icon URL; `navigationAppMenuItem` turns it into the row's `startAdornment`. */
93
+ icon?: string;
94
+ /** When `false`, the row is omitted from the flyout. */
95
+ isVisible?: boolean;
96
+ /** Non-interactive row styling when `true`. */
97
+ disabled?: boolean;
98
+ /** Leaf click handler (optional event for navigation helpers). */
99
+ onClick?: (e?: React.MouseEvent<HTMLElement>) => void;
100
+ /** Right-click handler on flyout leaves (e.g. open in new window). */
101
+ onContextMenu?: (e: React.MouseEvent<HTMLElement>) => void;
102
+ /** Trailing status dot on the navigation row. */
103
+ trailingHint?: ActionMenuTrailingHint;
104
+ }
105
+ /** Panel size limits shared with flyouts through `ActionMenuPanelContext` (internal). */
106
+ export interface ActionMenuPanelSize {
107
+ panelMaxWidth?: number;
108
+ panelMaxHeight?: number;
109
+ }
110
+ /** Row dispatcher props (internal): flyout parent, leaf, or nothing when a flyout has no visible items. */
111
+ export interface ActionMenuRowProps {
112
+ item: ActionMenuItem;
113
+ /** Row sits in a `linked` section. */
114
+ linked?: boolean;
115
+ /** Row is rendered inside a flyout. */
116
+ nested?: boolean;
117
+ onClose: () => void;
118
+ }
119
+ /** Leaf row props (internal). */
120
+ export interface ActionMenuLeafRowProps {
121
+ item: ActionMenuItem;
122
+ linked?: boolean;
123
+ nested?: boolean;
124
+ onClose: () => void;
125
+ }
126
+ /** Flyout parent row props (internal). */
127
+ export interface ActionMenuFlyoutRowProps {
128
+ item: ActionMenuItem;
129
+ onClose: () => void;
130
+ }
131
+ /** Leading slot props (internal). */
132
+ export interface ActionMenuRowLeadingProps {
133
+ startAdornment?: ReactNode;
134
+ disabled?: boolean;
135
+ }
136
+ /** Trailing slot props (internal): `trailingHint` dot, then the resolved end adornment. */
137
+ export interface ActionMenuRowTrailingProps {
138
+ trailingHint?: ActionMenuTrailingHint;
139
+ endAdornment?: ReactNode;
140
+ disabled?: boolean;
141
+ }
@@ -0,0 +1,27 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { TextAndLang } from '../../types/index.js';
3
+ import type { ActionMenuItem, ActionMenuSection, ActionNavigationItem } from './type';
4
+ /** Linked rows: rows of a `linked` section, or top-level rows carrying a `trailingHint`. */
5
+ export declare function isLinkedMenuRow(item: ActionMenuItem, sectionLinked?: boolean): boolean;
6
+ /** Image `startAdornment` for an icon URL, sized for the leading slot. */
7
+ export declare function actionMenuIcon(src: string): ReactNode;
8
+ /** `undefined` keeps the default slot content; any other value (including `null`) replaces it. */
9
+ export declare function resolveAdornment(value: ReactNode | undefined, fallback: ReactNode): ReactNode;
10
+ export declare function visibleNestedItems(items: ActionMenuItem[] | undefined): ActionMenuItem[];
11
+ export declare function navigationAppMenuItem(section: {
12
+ appCode: string;
13
+ appName?: string;
14
+ appIcon?: string;
15
+ menuItems: ActionNavigationItem[];
16
+ }, getAppInfo: (appCode: string) => {
17
+ iconUrl?: string;
18
+ name?: TextAndLang[];
19
+ } | undefined): ActionMenuItem | undefined;
20
+ export declare function visibleSections(sections: ActionMenuSection[]): ActionMenuSection[];
21
+ export declare function compactSections(...sections: Array<ActionMenuSection | undefined | null | false>): ActionMenuSection[];
22
+ export declare function directSection(items: ActionMenuItem[]): ActionMenuSection | undefined;
23
+ export declare function titledSection(title: string, items: ActionMenuItem[], options?: {
24
+ dividerBefore?: boolean;
25
+ linked?: boolean;
26
+ }): ActionMenuSection | undefined;
27
+ export declare function buildRowActionMenuSections(directActions: ActionMenuItem[], linkedItems: ActionMenuItem[], linkedSectionTitle: string): ActionMenuSection[];
@@ -1 +1 @@
1
- export{pc as ColumnViewsPicker,rc as CreateViewDialog,nc as CustomViews,oc as DefaultViews,qc as ViewsDropdown,Jb as areAllColumnsSelected,Pb as areAllCurrentColumnsSelected,Sb as areColumnsEqual,Kb as areSomeColumnsSelected,Qb as areSomeCurrentColumnsSelected,ic as buildFullTemplateLayouts,gc as buildRequiredColumnView,qb as convertColumnsToLayoutSection,$b as convertTemplateToColumnsView,ac as convertTemplatesToColumnsView,yb as countCustomTemplates,zb as countCustomViewMenuItems,sb as createCustomViewMenuItem,Mb as deepCloneColumns,Fb as getColumnCheckState,Yb as getColumnOrder,pb as getColumnsByMode,ec as getLayoutCodesForMode,rb as getLayoutDataFromTemplates,fc as getOtherModeSectionCode,Xb as getSubmenuFromTemplateLayout,Cb as getSubmenuItems,Eb as getSubmenuItemsForDisplay,ub as getTemplateRole,Zb as handleTemplateUpdate,hc as hasLayoutSectionForMode,Db as hasSubmenu,Vb as initializeCreateColumns,Wb as initializeCreateColumnsWithCurrentState,Ub as initializeEditingColumns,dc as isCheckboxInteractionTarget,xb as isCustomTemplate,wb as isCustomView,mb as isDateColumn,nb as isIndexColumn,vb as isPresetView,Lb as isValidTemplateName,Bb as mapTemplatesToMenuItems,Rb as normalizeColumnsSelected,bc as replaceTemplateInList,Tb as resetColumnsToDefault,tb as setViewAsDefault,_b as templateToViewMenuItem,Ib as toggleAllColumns,Ob as toggleAllCurrentColumns,Gb as toggleColumn,Nb as toggleSingleColumn,Hb as toggleSubItem,ob as transformLayoutToColumns,Ab as transformTemplatesToViewMenuItems,cc as updateCurrentTemplate,mc as useCustomTableViews,lc as useSubmenuHover,jc as useViewsManager,kc as useViewsMenu}from'../../_chunks/chunk-E2Z6V4OE.js';import'../../_chunks/chunk-64OLTOQM.js';import'../../_chunks/chunk-PL5M3LK2.js';import'../../_chunks/chunk-OCHPXIEK.js';import'../../_chunks/chunk-DKBPLNEE.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-A2SC5BOB.js';import'../../_chunks/chunk-72FD3NW2.js';import'../../_chunks/chunk-TXLFAI3O.js';import'../../_chunks/chunk-5KGT5D5O.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-GVXTYXRO.js';import'../../_chunks/chunk-AE4JYS7U.js';import'../../_chunks/chunk-OHN7F4WA.js';import'../../_chunks/chunk-S3BFBCVM.js';import'../../_chunks/chunk-V5NBU5TE.js';import'../../_chunks/chunk-HRQGL7NO.js';import'../../_chunks/chunk-UVU4YIMS.js';import'../../_chunks/chunk-7GJ5PPIY.js';import'../../_chunks/chunk-AMOFAS7L.js';import'../../_chunks/chunk-C2RHW4FN.js';import'../../_chunks/chunk-SO6E7CJM.js';import'../../_chunks/chunk-L42ISYQY.js';import'../../_chunks/chunk-JMPFZOV3.js';import'../../_chunks/chunk-JUEXC7Z2.js';import'../../_chunks/chunk-XHFDGV2F.js';import'../../_chunks/chunk-RFA33XQQ.js';import'../../_chunks/chunk-KFBXVUQ5.js';import'../../_chunks/chunk-2M6UER6N.js';import'../../_chunks/chunk-6YAUL2OM.js';import'../../_chunks/chunk-MLZ63M2D.js';import'../../_chunks/chunk-6WI5CW2I.js';import'../../_chunks/chunk-HPDPFVUQ.js';import'../../_chunks/chunk-TCI6NIBC.js';import'../../_chunks/chunk-PUI6B7OY.js';import'../../_chunks/chunk-D52IZHFQ.js';import'../../_chunks/chunk-U5M6TIFS.js';import'../../_chunks/chunk-7UCD3KUZ.js';import'../../_chunks/chunk-TQIWHM5B.js';import'../../_chunks/chunk-BQ46OLDY.js';import'../../_chunks/chunk-XLFVCH5I.js';import'../../_chunks/chunk-47BHPSSP.js';import'../../_chunks/chunk-HZYY6NMO.js';import'../../_chunks/chunk-RYHHS7S3.js';import'../../_chunks/chunk-CNYQ4OI5.js';import'../../_chunks/chunk-7VUU5WEU.js';import'../../_chunks/chunk-XEYCTDD3.js';import'../../_chunks/chunk-LECTWR74.js';import'../../_chunks/chunk-MSEBSRXG.js';import'../../_chunks/chunk-MTACYUU3.js';import'../../_chunks/chunk-W3DEOBBE.js';import'../../_chunks/chunk-P6WIYEZX.js';import'../../_chunks/chunk-DN33IHNY.js';import'../../_chunks/chunk-ZGY3RIKJ.js';import'../../_chunks/chunk-NDRHRXAO.js';import'../../_chunks/chunk-NHAXRGPW.js';import'../../_chunks/chunk-WNQ3ONG2.js';import'../../_chunks/chunk-AXJZMO7Q.js';import'../../_chunks/chunk-RTKA6K5L.js';import'../../_chunks/chunk-UGX2ZY27.js';import'../../_chunks/chunk-PNRVZNL7.js';import'../../_chunks/chunk-4NLQZJVN.js';import'../../_chunks/chunk-CIB4WTBC.js';import'../../_chunks/chunk-OSXKJYUX.js';export{Db as CUSTOM_VIEW,yb as DATE_COLUMN_CONFIG,Cb as DEFAULT_VIEW,Eb as DEFAULT_VIEW_OPTIONS,tb as DIALOG_HEIGHT,sb as DIALOG_WIDTH,xb as INDEX_COLUMN_CONFIG,ub as MAX_CUSTOM_VIEWS,vb as TEMPLATE_NAME_MAX_LENGTH,wb as TableViewColumnNames}from'../../_chunks/chunk-EP5VELEJ.js';import'../../_chunks/chunk-XTJZTHR6.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{pc as ColumnViewsPicker,rc as CreateViewDialog,nc as CustomViews,oc as DefaultViews,qc as ViewsDropdown,Jb as areAllColumnsSelected,Pb as areAllCurrentColumnsSelected,Sb as areColumnsEqual,Kb as areSomeColumnsSelected,Qb as areSomeCurrentColumnsSelected,ic as buildFullTemplateLayouts,gc as buildRequiredColumnView,qb as convertColumnsToLayoutSection,$b as convertTemplateToColumnsView,ac as convertTemplatesToColumnsView,yb as countCustomTemplates,zb as countCustomViewMenuItems,sb as createCustomViewMenuItem,Mb as deepCloneColumns,Fb as getColumnCheckState,Yb as getColumnOrder,pb as getColumnsByMode,ec as getLayoutCodesForMode,rb as getLayoutDataFromTemplates,fc as getOtherModeSectionCode,Xb as getSubmenuFromTemplateLayout,Cb as getSubmenuItems,Eb as getSubmenuItemsForDisplay,ub as getTemplateRole,Zb as handleTemplateUpdate,hc as hasLayoutSectionForMode,Db as hasSubmenu,Vb as initializeCreateColumns,Wb as initializeCreateColumnsWithCurrentState,Ub as initializeEditingColumns,dc as isCheckboxInteractionTarget,xb as isCustomTemplate,wb as isCustomView,mb as isDateColumn,nb as isIndexColumn,vb as isPresetView,Lb as isValidTemplateName,Bb as mapTemplatesToMenuItems,Rb as normalizeColumnsSelected,bc as replaceTemplateInList,Tb as resetColumnsToDefault,tb as setViewAsDefault,_b as templateToViewMenuItem,Ib as toggleAllColumns,Ob as toggleAllCurrentColumns,Gb as toggleColumn,Nb as toggleSingleColumn,Hb as toggleSubItem,ob as transformLayoutToColumns,Ab as transformTemplatesToViewMenuItems,cc as updateCurrentTemplate,mc as useCustomTableViews,lc as useSubmenuHover,jc as useViewsManager,kc as useViewsMenu}from'../../_chunks/chunk-XL3OK5YJ.js';import'../../_chunks/chunk-64OLTOQM.js';import'../../_chunks/chunk-PL5M3LK2.js';import'../../_chunks/chunk-OCHPXIEK.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-DKBPLNEE.js';import'../../_chunks/chunk-A2SC5BOB.js';import'../../_chunks/chunk-72FD3NW2.js';import'../../_chunks/chunk-TXLFAI3O.js';import'../../_chunks/chunk-5KGT5D5O.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-L42ISYQY.js';import'../../_chunks/chunk-GVXTYXRO.js';import'../../_chunks/chunk-AE4JYS7U.js';import'../../_chunks/chunk-OHN7F4WA.js';import'../../_chunks/chunk-2M6UER6N.js';import'../../_chunks/chunk-V5NBU5TE.js';import'../../_chunks/chunk-HRQGL7NO.js';import'../../_chunks/chunk-UVU4YIMS.js';import'../../_chunks/chunk-7GJ5PPIY.js';import'../../_chunks/chunk-AMOFAS7L.js';import'../../_chunks/chunk-C2RHW4FN.js';import'../../_chunks/chunk-SO6E7CJM.js';import'../../_chunks/chunk-D52IZHFQ.js';import'../../_chunks/chunk-JMPFZOV3.js';import'../../_chunks/chunk-XHFDGV2F.js';import'../../_chunks/chunk-JUEXC7Z2.js';import'../../_chunks/chunk-RFA33XQQ.js';import'../../_chunks/chunk-KFBXVUQ5.js';import'../../_chunks/chunk-6YAUL2OM.js';import'../../_chunks/chunk-RYHHS7S3.js';import'../../_chunks/chunk-MLZ63M2D.js';import'../../_chunks/chunk-6WI5CW2I.js';import'../../_chunks/chunk-HPDPFVUQ.js';import'../../_chunks/chunk-TCI6NIBC.js';import'../../_chunks/chunk-PUI6B7OY.js';import'../../_chunks/chunk-W3DEOBBE.js';import'../../_chunks/chunk-7UCD3KUZ.js';import'../../_chunks/chunk-TQIWHM5B.js';import'../../_chunks/chunk-BQ46OLDY.js';import'../../_chunks/chunk-XLFVCH5I.js';import'../../_chunks/chunk-47BHPSSP.js';import'../../_chunks/chunk-HZYY6NMO.js';import'../../_chunks/chunk-RK4UGNRY.js';import'../../_chunks/chunk-CNYQ4OI5.js';import'../../_chunks/chunk-7VUU5WEU.js';import'../../_chunks/chunk-XEYCTDD3.js';import'../../_chunks/chunk-LECTWR74.js';import'../../_chunks/chunk-U5M6TIFS.js';import'../../_chunks/chunk-MTACYUU3.js';import'../../_chunks/chunk-MSEBSRXG.js';import'../../_chunks/chunk-PYE5IO3O.js';import'../../_chunks/chunk-DN33IHNY.js';import'../../_chunks/chunk-ZGY3RIKJ.js';import'../../_chunks/chunk-NDRHRXAO.js';import'../../_chunks/chunk-NHAXRGPW.js';import'../../_chunks/chunk-WNQ3ONG2.js';import'../../_chunks/chunk-AXJZMO7Q.js';import'../../_chunks/chunk-RTKA6K5L.js';import'../../_chunks/chunk-UGX2ZY27.js';import'../../_chunks/chunk-PNRVZNL7.js';import'../../_chunks/chunk-4NLQZJVN.js';import'../../_chunks/chunk-CIB4WTBC.js';import'../../_chunks/chunk-OSXKJYUX.js';export{Db as CUSTOM_VIEW,yb as DATE_COLUMN_CONFIG,Cb as DEFAULT_VIEW,Eb as DEFAULT_VIEW_OPTIONS,tb as DIALOG_HEIGHT,sb as DIALOG_WIDTH,xb as INDEX_COLUMN_CONFIG,ub as MAX_CUSTOM_VIEWS,vb as TEMPLATE_NAME_MAX_LENGTH,wb as TableViewColumnNames}from'../../_chunks/chunk-EP5VELEJ.js';import'../../_chunks/chunk-XTJZTHR6.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -1 +1 @@
1
- export{Lc as DateFilter}from'../../_chunks/chunk-E2Z6V4OE.js';import'../../_chunks/chunk-64OLTOQM.js';import'../../_chunks/chunk-PL5M3LK2.js';import'../../_chunks/chunk-OCHPXIEK.js';import'../../_chunks/chunk-DKBPLNEE.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-A2SC5BOB.js';import'../../_chunks/chunk-72FD3NW2.js';import'../../_chunks/chunk-TXLFAI3O.js';import'../../_chunks/chunk-5KGT5D5O.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-GVXTYXRO.js';import'../../_chunks/chunk-AE4JYS7U.js';import'../../_chunks/chunk-OHN7F4WA.js';import'../../_chunks/chunk-S3BFBCVM.js';import'../../_chunks/chunk-V5NBU5TE.js';import'../../_chunks/chunk-HRQGL7NO.js';import'../../_chunks/chunk-UVU4YIMS.js';import'../../_chunks/chunk-7GJ5PPIY.js';import'../../_chunks/chunk-AMOFAS7L.js';import'../../_chunks/chunk-C2RHW4FN.js';import'../../_chunks/chunk-SO6E7CJM.js';import'../../_chunks/chunk-L42ISYQY.js';import'../../_chunks/chunk-JMPFZOV3.js';import'../../_chunks/chunk-JUEXC7Z2.js';import'../../_chunks/chunk-XHFDGV2F.js';import'../../_chunks/chunk-RFA33XQQ.js';import'../../_chunks/chunk-KFBXVUQ5.js';import'../../_chunks/chunk-2M6UER6N.js';import'../../_chunks/chunk-6YAUL2OM.js';import'../../_chunks/chunk-MLZ63M2D.js';import'../../_chunks/chunk-6WI5CW2I.js';import'../../_chunks/chunk-HPDPFVUQ.js';import'../../_chunks/chunk-TCI6NIBC.js';import'../../_chunks/chunk-PUI6B7OY.js';import'../../_chunks/chunk-D52IZHFQ.js';import'../../_chunks/chunk-U5M6TIFS.js';import'../../_chunks/chunk-7UCD3KUZ.js';import'../../_chunks/chunk-TQIWHM5B.js';import'../../_chunks/chunk-BQ46OLDY.js';import'../../_chunks/chunk-XLFVCH5I.js';import'../../_chunks/chunk-47BHPSSP.js';import'../../_chunks/chunk-HZYY6NMO.js';import'../../_chunks/chunk-RYHHS7S3.js';import'../../_chunks/chunk-CNYQ4OI5.js';import'../../_chunks/chunk-7VUU5WEU.js';import'../../_chunks/chunk-XEYCTDD3.js';import'../../_chunks/chunk-LECTWR74.js';import'../../_chunks/chunk-MSEBSRXG.js';import'../../_chunks/chunk-MTACYUU3.js';import'../../_chunks/chunk-W3DEOBBE.js';import'../../_chunks/chunk-P6WIYEZX.js';import'../../_chunks/chunk-DN33IHNY.js';import'../../_chunks/chunk-ZGY3RIKJ.js';import'../../_chunks/chunk-NDRHRXAO.js';import'../../_chunks/chunk-NHAXRGPW.js';import'../../_chunks/chunk-WNQ3ONG2.js';import'../../_chunks/chunk-AXJZMO7Q.js';import'../../_chunks/chunk-RTKA6K5L.js';import'../../_chunks/chunk-UGX2ZY27.js';import'../../_chunks/chunk-PNRVZNL7.js';import'../../_chunks/chunk-4NLQZJVN.js';import'../../_chunks/chunk-CIB4WTBC.js';import'../../_chunks/chunk-OSXKJYUX.js';import'../../_chunks/chunk-EP5VELEJ.js';import'../../_chunks/chunk-XTJZTHR6.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{Lc as DateFilter}from'../../_chunks/chunk-XL3OK5YJ.js';import'../../_chunks/chunk-64OLTOQM.js';import'../../_chunks/chunk-PL5M3LK2.js';import'../../_chunks/chunk-OCHPXIEK.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-DKBPLNEE.js';import'../../_chunks/chunk-A2SC5BOB.js';import'../../_chunks/chunk-72FD3NW2.js';import'../../_chunks/chunk-TXLFAI3O.js';import'../../_chunks/chunk-5KGT5D5O.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-L42ISYQY.js';import'../../_chunks/chunk-GVXTYXRO.js';import'../../_chunks/chunk-AE4JYS7U.js';import'../../_chunks/chunk-OHN7F4WA.js';import'../../_chunks/chunk-2M6UER6N.js';import'../../_chunks/chunk-V5NBU5TE.js';import'../../_chunks/chunk-HRQGL7NO.js';import'../../_chunks/chunk-UVU4YIMS.js';import'../../_chunks/chunk-7GJ5PPIY.js';import'../../_chunks/chunk-AMOFAS7L.js';import'../../_chunks/chunk-C2RHW4FN.js';import'../../_chunks/chunk-SO6E7CJM.js';import'../../_chunks/chunk-D52IZHFQ.js';import'../../_chunks/chunk-JMPFZOV3.js';import'../../_chunks/chunk-XHFDGV2F.js';import'../../_chunks/chunk-JUEXC7Z2.js';import'../../_chunks/chunk-RFA33XQQ.js';import'../../_chunks/chunk-KFBXVUQ5.js';import'../../_chunks/chunk-6YAUL2OM.js';import'../../_chunks/chunk-RYHHS7S3.js';import'../../_chunks/chunk-MLZ63M2D.js';import'../../_chunks/chunk-6WI5CW2I.js';import'../../_chunks/chunk-HPDPFVUQ.js';import'../../_chunks/chunk-TCI6NIBC.js';import'../../_chunks/chunk-PUI6B7OY.js';import'../../_chunks/chunk-W3DEOBBE.js';import'../../_chunks/chunk-7UCD3KUZ.js';import'../../_chunks/chunk-TQIWHM5B.js';import'../../_chunks/chunk-BQ46OLDY.js';import'../../_chunks/chunk-XLFVCH5I.js';import'../../_chunks/chunk-47BHPSSP.js';import'../../_chunks/chunk-HZYY6NMO.js';import'../../_chunks/chunk-RK4UGNRY.js';import'../../_chunks/chunk-CNYQ4OI5.js';import'../../_chunks/chunk-7VUU5WEU.js';import'../../_chunks/chunk-XEYCTDD3.js';import'../../_chunks/chunk-LECTWR74.js';import'../../_chunks/chunk-U5M6TIFS.js';import'../../_chunks/chunk-MTACYUU3.js';import'../../_chunks/chunk-MSEBSRXG.js';import'../../_chunks/chunk-PYE5IO3O.js';import'../../_chunks/chunk-DN33IHNY.js';import'../../_chunks/chunk-ZGY3RIKJ.js';import'../../_chunks/chunk-NDRHRXAO.js';import'../../_chunks/chunk-NHAXRGPW.js';import'../../_chunks/chunk-WNQ3ONG2.js';import'../../_chunks/chunk-AXJZMO7Q.js';import'../../_chunks/chunk-RTKA6K5L.js';import'../../_chunks/chunk-UGX2ZY27.js';import'../../_chunks/chunk-PNRVZNL7.js';import'../../_chunks/chunk-4NLQZJVN.js';import'../../_chunks/chunk-CIB4WTBC.js';import'../../_chunks/chunk-OSXKJYUX.js';import'../../_chunks/chunk-EP5VELEJ.js';import'../../_chunks/chunk-XTJZTHR6.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { ExportReportButtonProps } from './type';
3
+ declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ExportReportButtonProps & import("react").RefAttributes<HTMLDivElement>>>;
4
+ export default _default;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { ExportReportButtonFileRowProps } from './type';
3
+ /**
4
+ * One recent-report row: file-type icon + name + formatted date + a download
5
+ * affordance cycling `idle → loading → success | error`. Exists only for
6
+ * `ExportReportButton` — imported by `./ExportReportButton` directly, never barrelled.
7
+ */
8
+ declare function ReportFileRow({ item, onDownloadReport, onDownloadError, renderIcon, formatDate }: ExportReportButtonFileRowProps): import("react").JSX.Element;
9
+ declare const _default: import("react").MemoExoticComponent<typeof ReportFileRow>;
10
+ export default _default;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Skeleton placeholder for one recent-report row. Exists only for
4
+ * `ExportReportButton` — imported by `./ExportReportButton` directly, never barrelled.
5
+ */
6
+ declare function ReportLoadingRow(): import("react").JSX.Element;
7
+ declare const _default: import("react").MemoExoticComponent<typeof ReportLoadingRow>;
8
+ export default _default;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import type { ExportReportButtonRequestRowProps } from './type';
3
+ /**
4
+ * One request-file row (`CSV`, `PDF`, …). The glyph defaults to the icon
5
+ * resolved from `row.id` as a file extension — pass `row.icon` to override,
6
+ * `null` to hide. Exists only for `ExportReportButton` — imported by
7
+ * `./ExportReportButton` directly, never barrelled.
8
+ */
9
+ declare function ReportRequestRow({ row, onSelect }: ExportReportButtonRequestRowProps): import("react").JSX.Element;
10
+ declare const _default: import("react").MemoExoticComponent<typeof ReportRequestRow>;
11
+ export default _default;
@@ -0,0 +1,51 @@
1
+ export declare const exportReportButtonClassNamePrefix: "os-shared-ExportReportButton";
2
+ export declare const exportReportButtonClassNames: {
3
+ /** Outer box — receives consumer `className` / `sx`. */
4
+ readonly root: "os-shared-ExportReportButton-root";
5
+ /** Trigger button (idle / loading / ready / failed). */
6
+ readonly trigger: "os-shared-ExportReportButton-trigger";
7
+ /** Glyph inside the trigger. */
8
+ readonly triggerIcon: "os-shared-ExportReportButton-triggerIcon";
9
+ /** Text label inside the trigger (loading / ready / failed states). */
10
+ readonly triggerLabel: "os-shared-ExportReportButton-triggerLabel";
11
+ /** Absolute progress bar pinned to the trigger's bottom edge. */
12
+ readonly triggerProgress: "os-shared-ExportReportButton-triggerProgress";
13
+ /** Request-file row at the top of the menu. */
14
+ readonly requestRow: "os-shared-ExportReportButton-requestRow";
15
+ /** Glyph inside the request row. */
16
+ readonly requestRowIcon: "os-shared-ExportReportButton-requestRowIcon";
17
+ /** Label inside the request row. */
18
+ readonly requestRowLabel: "os-shared-ExportReportButton-requestRowLabel";
19
+ /** Recent-reports list section. */
20
+ readonly fileList: "os-shared-ExportReportButton-fileList";
21
+ /** One recent-report row. */
22
+ readonly fileRow: "os-shared-ExportReportButton-fileRow";
23
+ /** File-type glyph inside a row. */
24
+ readonly fileRowIcon: "os-shared-ExportReportButton-fileRowIcon";
25
+ /** Name + time column inside a row. */
26
+ readonly fileRowInfo: "os-shared-ExportReportButton-fileRowInfo";
27
+ /** File name inside a row. */
28
+ readonly fileRowName: "os-shared-ExportReportButton-fileRowName";
29
+ /** Formatted date inside a row. */
30
+ readonly fileRowTime: "os-shared-ExportReportButton-fileRowTime";
31
+ /** Download affordance at the end of a row. */
32
+ readonly fileRowAction: "os-shared-ExportReportButton-fileRowAction";
33
+ /** Footer row (open-reports-app). Rendered only when `openAppLabel` is set. */
34
+ readonly menuFooter: "os-shared-ExportReportButton-menuFooter";
35
+ /** Skeleton row shown while the recent list loads. */
36
+ readonly loadingRow: "os-shared-ExportReportButton-loadingRow";
37
+ };
38
+ export type ExportReportButtonClassNames = (typeof exportReportButtonClassNames)[keyof typeof exportReportButtonClassNames];
39
+ /**
40
+ * Default icon sources (URL assets from shared constants). `triggerIcon` has a
41
+ * matching slot prop — pass `ReactNode` there to override per instance without
42
+ * touching this map. Request rows resolve their glyph from `row.id` (see
43
+ * `ReportRequestRow`); file rows use the extension icon unless `renderReportIcon`
44
+ * overrides it.
45
+ */
46
+ export declare const exportReportButtonDefaultIconSrcs: {
47
+ readonly trigger: string;
48
+ readonly ready: string;
49
+ readonly failed: string;
50
+ readonly download: string;
51
+ };
@@ -0,0 +1,21 @@
1
+ import type { ExportReportButtonDownload } from '../type';
2
+ /** Visual state of one row-level download. */
3
+ export type ReportDownloadState = 'idle' | 'loading' | 'success' | 'error';
4
+ export interface UseReportDownloadOptions {
5
+ /** Resolves the browser-download payload. Omit to render a no-op (row still shows its idle icon). */
6
+ onDownload?: () => Promise<ExportReportButtonDownload>;
7
+ /** Fired when `onDownload` rejects. Consumer-owned (toast, log, …) — shared never parses domain error shapes. */
8
+ onError?: (error: unknown) => void;
9
+ /** Base name (without extension) the downloaded file is saved as. */
10
+ fileNameFallback?: string;
11
+ }
12
+ /**
13
+ * Generic row-download state machine: `loading` → browser download →
14
+ * `success`, or `error` + `onError`. Success/error reset to `idle` after a
15
+ * short window so the row affordance is reusable. No toast, no error-shape
16
+ * parsing, no fetching — all consumer-owned via `onDownload` / `onError`.
17
+ */
18
+ export declare const useReportDownload: ({ onDownload, onError, fileNameFallback }: UseReportDownloadOptions) => {
19
+ state: ReportDownloadState;
20
+ handleDownload: () => void;
21
+ };
@@ -0,0 +1,6 @@
1
+ export { default } from './ExportReportButton';
2
+ export type { ExportReportButtonBadge, ExportReportButtonDownload, ExportReportButtonFileRowProps, ExportReportButtonFooterAction, ExportReportButtonItem, ExportReportButtonMenuContext, ExportReportButtonMenuProps, ExportReportButtonProps, ExportReportButtonRequestRow, ExportReportButtonRequestRowProps, ExportReportButtonStatus, } from './type';
3
+ export { exportReportButtonClassNames } from './constants';
4
+ export type { ExportReportButtonClassNames } from './constants';
5
+ export { useReportDownload } from './hooks/useReportDownload';
6
+ export type { ReportDownloadState, UseReportDownloadOptions } from './hooks/useReportDownload';
@@ -0,0 +1 @@
1
+ export{c as default,a as exportReportButtonClassNames,b as useReportDownload}from'../../_chunks/chunk-RK4UGNRY.js';import'../../_chunks/chunk-4NLQZJVN.js';import'../../_chunks/chunk-EP5VELEJ.js';import'../../_chunks/chunk-XTJZTHR6.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -0,0 +1,67 @@
1
+ /// <reference types="react" />
2
+ import type { ExportReportButtonBadge, ExportReportButtonStatus } from './type';
3
+ /** Outer box — the perceived trigger box. */
4
+ export declare const RootStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
5
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
6
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
7
+ /** Trigger button — bordered 32px box with an optional notification dot. */
8
+ export declare const TriggerStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
9
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
10
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
11
+ $status: ExportReportButtonStatus;
12
+ $badge?: ExportReportButtonBadge | null | undefined;
13
+ }, {}, {}>;
14
+ /** Progress bar pinned to the trigger's bottom edge (loading / ready / failed states). */
15
+ export declare const TriggerProgressStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
16
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
17
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
18
+ $status: ExportReportButtonStatus;
19
+ }, {}, {}>;
20
+ /** Request-file row at the top of the menu. */
21
+ export declare const RequestRowStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
22
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
23
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
24
+ /** Glyph inside the request row. */
25
+ export declare const RequestRowIconStyled: import("@emotion/styled").StyledComponent<Omit<import("../primitives").IconProps & import("react").RefAttributes<HTMLImageElement>, "ref"> & {
26
+ ref?: ((instance: HTMLImageElement | null) => void) | import("react").RefObject<HTMLImageElement> | null | undefined;
27
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
28
+ /** Uppercase label inside the request row. */
29
+ export declare const RequestRowLabelStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
30
+ ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
31
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
32
+ /** Recent-reports list section. */
33
+ export declare const FileListStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
34
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
35
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
36
+ /** One recent-report row. */
37
+ export declare const FileRowStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
38
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
39
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
40
+ /** File-type glyph inside a row. */
41
+ export declare const FileRowIconStyled: import("@emotion/styled").StyledComponent<Omit<import("../primitives").IconProps & import("react").RefAttributes<HTMLImageElement>, "ref"> & {
42
+ ref?: ((instance: HTMLImageElement | null) => void) | import("react").RefObject<HTMLImageElement> | null | undefined;
43
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
44
+ /** Name + time column inside a row. */
45
+ export declare const FileRowInfoStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
46
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
47
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
48
+ /** File name inside a row. */
49
+ export declare const FileRowNameStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
50
+ ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
51
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
52
+ /** Formatted date inside a row. */
53
+ export declare const FileRowTimeStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
54
+ ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
55
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
56
+ /** Download affordance at the end of a row. */
57
+ export declare const FileRowActionStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
58
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
59
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
60
+ /** Footer row (open-reports-app). */
61
+ export declare const MenuFooterStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
62
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
63
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
64
+ /** Skeleton row shown while the recent list loads. */
65
+ export declare const LoadingRowStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
66
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
67
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;