@zealicsolutions/web-ui 1.1.63 → 1.1.64

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 (111) hide show
  1. package/dist/cjs/containers/ExpandableContainer.d.ts +8 -0
  2. package/dist/cjs/containers/TabsContainer.d.ts +22 -0
  3. package/dist/cjs/containers/index.d.ts +2 -0
  4. package/dist/cjs/containers/styles.d.ts +49 -0
  5. package/dist/cjs/containers/types/moleculeTypes.d.ts +24 -4
  6. package/dist/cjs/containers/types/types.d.ts +71 -2
  7. package/dist/cjs/index.css +265 -0
  8. package/dist/cjs/index.d.ts +2 -0
  9. package/dist/cjs/index.js +124 -124
  10. package/dist/cjs/index.js.map +1 -1
  11. package/dist/cjs/molecules/Breadcrumbs/Breadcrumbs.d.ts +42 -0
  12. package/dist/cjs/molecules/Progress/Progress.d.ts +34 -0
  13. package/dist/cjs/molecules/index.d.ts +2 -0
  14. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/ApplicationCard.d.ts +26 -0
  15. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/Custom.d.ts +23 -0
  16. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/FourItems.d.ts +24 -0
  17. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/NotificationCard.d.ts +22 -0
  18. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/StudyCard.d.ts +34 -0
  19. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/SubjectCard.d.ts +29 -0
  20. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/VisitCard.d.ts +22 -0
  21. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/VisitCardCheck.d.ts +22 -0
  22. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/registry.d.ts +15 -0
  23. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/utils.d.ts +20 -0
  24. package/dist/cjs/organisms/DataGrid/config/toolDescriptor/toolbarStyles.d.ts +27 -0
  25. package/dist/cjs/organisms/DataGrid/queries/useDataGridRows.d.ts +17 -0
  26. package/dist/cjs/organisms/DataGrid/renderers/ActionButtonCell.d.ts +12 -0
  27. package/dist/cjs/organisms/DataGrid/renderers/AvatarTextCell.d.ts +7 -0
  28. package/dist/cjs/organisms/DataGrid/renderers/BooleanIconCell.d.ts +7 -0
  29. package/dist/cjs/organisms/DataGrid/renderers/CurrencyCell.d.ts +7 -0
  30. package/dist/cjs/organisms/DataGrid/renderers/DateCell.d.ts +6 -0
  31. package/dist/cjs/organisms/DataGrid/renderers/DefaultTextCell.d.ts +5 -0
  32. package/dist/cjs/organisms/DataGrid/renderers/EmailLinkCell.d.ts +5 -0
  33. package/dist/cjs/organisms/DataGrid/renderers/PhoneLinkCell.d.ts +5 -0
  34. package/dist/cjs/organisms/DataGrid/renderers/RatingCell.d.ts +6 -0
  35. package/dist/cjs/organisms/DataGrid/renderers/StatusChipCell.d.ts +11 -0
  36. package/dist/cjs/organisms/DataGrid/renderers/index.d.ts +11 -0
  37. package/dist/cjs/organisms/DataGrid/renderers/rendererRegistry.d.ts +3 -0
  38. package/dist/cjs/organisms/DataGrid/types/hostTypes.d.ts +16 -0
  39. package/dist/cjs/organisms/DataGrid/types/types.d.ts +242 -0
  40. package/dist/cjs/organisms/DataGridCustomOrganism/DataGridCustomOrganism.d.ts +3 -0
  41. package/dist/cjs/organisms/DataGridCustomOrganism/index.d.ts +2 -0
  42. package/dist/cjs/organisms/DataGridCustomOrganism/types/hostTypes.d.ts +14 -0
  43. package/dist/cjs/organisms/DataGridListOrganism/DataGridListOrganism.d.ts +3 -0
  44. package/dist/cjs/organisms/DataGridListOrganism/hooks/useDataGridTemplateRuntime.d.ts +39 -0
  45. package/dist/cjs/organisms/DataGridListOrganism/index.d.ts +2 -0
  46. package/dist/cjs/organisms/DataGridListOrganism/types/hostTypes.d.ts +14 -0
  47. package/dist/cjs/organisms/DataGridListOrganism/utils/slotResolvers.d.ts +22 -0
  48. package/dist/cjs/organisms/Organism/Organism.d.ts +5 -0
  49. package/dist/cjs/organisms/Organism/mockData.d.ts +410 -0
  50. package/dist/cjs/organisms/index.d.ts +2 -0
  51. package/dist/cjs/organisms/types.d.ts +1 -1
  52. package/dist/cjs/queries/federatedSearch/useOrganismData.d.ts +305 -0
  53. package/dist/cjs/setup/muiXLicense.d.ts +1 -0
  54. package/dist/cjs/theme/index.d.ts +5 -0
  55. package/dist/cjs/theme/provider.d.ts +7 -0
  56. package/dist/cjs/theme/theme.d.ts +2 -0
  57. package/dist/cjs/theme/toastStyles.d.ts +1 -0
  58. package/dist/cjs/theme/types.d.ts +19 -0
  59. package/dist/cjs/theme/useMediaQuery.d.ts +2 -0
  60. package/dist/esm/containers/Container.js +12 -12
  61. package/dist/esm/containers/Container.js.map +1 -1
  62. package/dist/esm/containers/ExpandableContainer.d.ts +8 -0
  63. package/dist/esm/containers/ExpandableContainer.js +2 -0
  64. package/dist/esm/containers/ExpandableContainer.js.map +1 -0
  65. package/dist/esm/containers/OrganismItem.js +1 -1
  66. package/dist/esm/containers/OrganismItem.js.map +1 -1
  67. package/dist/esm/containers/TabsContainer.d.ts +22 -0
  68. package/dist/esm/containers/TabsContainer.js +2 -0
  69. package/dist/esm/containers/TabsContainer.js.map +1 -0
  70. package/dist/esm/containers/index.d.ts +2 -0
  71. package/dist/esm/containers/styles.d.ts +49 -0
  72. package/dist/esm/containers/types/moleculeTypes.d.ts +24 -4
  73. package/dist/esm/containers/types/types.d.ts +71 -2
  74. package/dist/esm/index.d.ts +2 -0
  75. package/dist/esm/index.js +1 -1
  76. package/dist/esm/molecules/BaseMolecule.js +1 -1
  77. package/dist/esm/molecules/BaseMolecule.js.map +1 -1
  78. package/dist/esm/molecules/Breadcrumbs/Breadcrumbs.d.ts +42 -0
  79. package/dist/esm/molecules/Breadcrumbs/Breadcrumbs.js +2 -0
  80. package/dist/esm/molecules/Breadcrumbs/Breadcrumbs.js.map +1 -0
  81. package/dist/esm/molecules/Progress/Progress.d.ts +34 -0
  82. package/dist/esm/molecules/Progress/Progress.js +2 -0
  83. package/dist/esm/molecules/Progress/Progress.js.map +1 -0
  84. package/dist/esm/molecules/index.d.ts +2 -0
  85. package/dist/esm/node_modules/@mui/material/esm/Breadcrumbs/BreadcrumbCollapsed.js +2 -0
  86. package/dist/esm/node_modules/@mui/material/esm/Breadcrumbs/BreadcrumbCollapsed.js.map +1 -0
  87. package/dist/esm/node_modules/@mui/material/esm/Breadcrumbs/Breadcrumbs.js +2 -0
  88. package/dist/esm/node_modules/@mui/material/esm/Breadcrumbs/Breadcrumbs.js.map +1 -0
  89. package/dist/esm/node_modules/@mui/material/esm/Breadcrumbs/breadcrumbsClasses.js +2 -0
  90. package/dist/esm/node_modules/@mui/material/esm/Breadcrumbs/breadcrumbsClasses.js.map +1 -0
  91. package/dist/esm/node_modules/@mui/material/esm/internal/svg-icons/MoreHoriz.js +2 -0
  92. package/dist/esm/node_modules/@mui/material/esm/internal/svg-icons/MoreHoriz.js.map +1 -0
  93. package/dist/esm/organisms/DataGridCustomOrganism/DataGridCustomOrganism.d.ts +3 -0
  94. package/dist/esm/organisms/DataGridCustomOrganism/DataGridCustomOrganism.js +2 -0
  95. package/dist/esm/organisms/DataGridCustomOrganism/DataGridCustomOrganism.js.map +1 -0
  96. package/dist/esm/organisms/DataGridCustomOrganism/index.d.ts +2 -0
  97. package/dist/esm/organisms/DataGridCustomOrganism/types/hostTypes.d.ts +14 -0
  98. package/dist/esm/organisms/DataGridListOrganism/DataGridListOrganism.d.ts +3 -0
  99. package/dist/esm/organisms/DataGridListOrganism/DataGridListOrganism.js +2 -0
  100. package/dist/esm/organisms/DataGridListOrganism/DataGridListOrganism.js.map +1 -0
  101. package/dist/esm/organisms/DataGridListOrganism/hooks/useDataGridTemplateRuntime.d.ts +39 -0
  102. package/dist/esm/organisms/DataGridListOrganism/hooks/useDataGridTemplateRuntime.js +2 -0
  103. package/dist/esm/organisms/DataGridListOrganism/hooks/useDataGridTemplateRuntime.js.map +1 -0
  104. package/dist/esm/organisms/DataGridListOrganism/index.d.ts +2 -0
  105. package/dist/esm/organisms/DataGridListOrganism/types/hostTypes.d.ts +14 -0
  106. package/dist/esm/organisms/DataGridListOrganism/utils/slotResolvers.d.ts +22 -0
  107. package/dist/esm/organisms/DataGridListOrganism/utils/slotResolvers.js +2 -0
  108. package/dist/esm/organisms/DataGridListOrganism/utils/slotResolvers.js.map +1 -0
  109. package/dist/esm/organisms/index.d.ts +2 -0
  110. package/dist/esm/organisms/types.d.ts +1 -1
  111. package/package.json +1 -1
@@ -0,0 +1,42 @@
1
+ import { SxProps, Theme, TypographyProps } from '@mui/material';
2
+ import { ConfigurationItemInfo, LinkProperties } from 'containers';
3
+ import React from 'react';
4
+ export interface BreadcrumbItem {
5
+ id?: string;
6
+ text: string;
7
+ link?: LinkProperties;
8
+ disabled?: boolean;
9
+ iconName?: string;
10
+ sx?: SxProps<Theme>;
11
+ }
12
+ export interface BreadcrumbsMoleculeProps {
13
+ text?: string;
14
+ items?: BreadcrumbItem[];
15
+ separator?: string;
16
+ maxItems?: number;
17
+ expandText?: string;
18
+ textColor?: string;
19
+ activeTextColor?: string;
20
+ separatorColor?: string;
21
+ fontSize?: number | string;
22
+ fontFamily?: TypographyProps['fontFamily'];
23
+ fontWeight?: TypographyProps['fontWeight'];
24
+ iconColor?: string;
25
+ iconSize?: number | string;
26
+ wrap?: boolean;
27
+ marginTop?: string | number;
28
+ marginRight?: string | number;
29
+ marginBottom?: string | number;
30
+ marginLeft?: string | number;
31
+ paddingTop?: string | number;
32
+ paddingRight?: string | number;
33
+ paddingBottom?: string | number;
34
+ paddingLeft?: string | number;
35
+ width?: string | number;
36
+ height?: string | number;
37
+ sx?: SxProps<Theme>;
38
+ moleculeId?: string;
39
+ configurationItemInfo?: ConfigurationItemInfo;
40
+ onNavigate?: (link?: LinkProperties, item?: BreadcrumbItem) => void;
41
+ }
42
+ export declare const BreadcrumbsMolecule: React.FC<BreadcrumbsMoleculeProps>;
@@ -0,0 +1,34 @@
1
+ import { LinearProgressProps, SxProps, Theme } from '@mui/material';
2
+ import { ConfigurationItemInfo } from 'containers';
3
+ import React from 'react';
4
+ export interface ProgressMoleculeProps extends Omit<LinearProgressProps, 'value' | 'valueBuffer'> {
5
+ text?: string;
6
+ value?: number;
7
+ valueBuffer?: number;
8
+ showValueLabel?: boolean;
9
+ valueLabelSuffix?: string;
10
+ trackColor?: string;
11
+ barColor?: string;
12
+ thickness?: number;
13
+ borderRadius?: string | number;
14
+ textColor?: string;
15
+ fontSize?: number | string;
16
+ fontFamily?: string;
17
+ fontWeight?: string | number;
18
+ marginTop?: string | number;
19
+ marginRight?: string | number;
20
+ marginBottom?: string | number;
21
+ marginLeft?: string | number;
22
+ paddingTop?: string | number;
23
+ paddingRight?: string | number;
24
+ paddingBottom?: string | number;
25
+ paddingLeft?: string | number;
26
+ width?: string | number;
27
+ minWidth?: string | number;
28
+ maxWidth?: string | number;
29
+ sx?: SxProps<Theme>;
30
+ moleculeId?: string;
31
+ configurationItemInfo?: ConfigurationItemInfo;
32
+ sourceDataModelField?: string;
33
+ }
34
+ export declare const ProgressMolecule: React.FC<ProgressMoleculeProps>;
@@ -4,6 +4,7 @@ export * from './Avatar/Avatar';
4
4
  export * from './Badge/Badge';
5
5
  export * from './BasicTextField/BasicTextField';
6
6
  export * from './BinaryRadioButtons/BinaryRadioButtons';
7
+ export * from './Breadcrumbs/Breadcrumbs';
7
8
  export * from './Button';
8
9
  export * from './Checkbox/Checkbox';
9
10
  export * from './Checklist/Checklist';
@@ -25,6 +26,7 @@ export * from './NumericInputField/NumericInputField';
25
26
  export * from './PasswordSetup/PasswordSetup';
26
27
  export { passwordValidationMapper } from './PasswordSetup/utils';
27
28
  export * from './PhoneNumberInputField/PhoneNumberInputField';
29
+ export * from './Progress/Progress';
28
30
  export * from './Rating/Rating';
29
31
  export * from './RichText/TextMolecule';
30
32
  export * from './Select/Select';
@@ -0,0 +1,26 @@
1
+ import type { GridRenderCellParams } from '@mui/x-data-grid-pro';
2
+ import type { ColumnCfg } from '../types';
3
+ type ApplicationCardConfig = {
4
+ backgroundColor?: string;
5
+ borderColor?: string;
6
+ borderRadius?: number;
7
+ imageSize?: number;
8
+ imageBorderRadius?: number;
9
+ textColor?: string;
10
+ secondaryTextColor?: string;
11
+ statusColors?: {
12
+ ACTIVE?: string;
13
+ INACTIVE?: string;
14
+ [key: string]: string | undefined;
15
+ };
16
+ };
17
+ type Props = {
18
+ params: GridRenderCellParams;
19
+ cfgCols: ColumnCfg[];
20
+ columns: Array<{
21
+ field: string;
22
+ }>;
23
+ config?: ApplicationCardConfig;
24
+ };
25
+ export declare const ApplicationCard: ({ params, cfgCols, columns, config }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
26
+ export {};
@@ -0,0 +1,23 @@
1
+ import type { GridRenderCellParams } from '@mui/x-data-grid-pro';
2
+ import type { ColumnCfg, TemplateAreas } from '../types';
3
+ type Layout = {
4
+ gap: number;
5
+ verticalGap: number;
6
+ trailingDirection: 'horizontal' | 'vertical';
7
+ templateColumns?: string;
8
+ item?: {
9
+ padding?: number;
10
+ backgroundColor?: string;
11
+ borderColor?: string;
12
+ borderRadius?: number;
13
+ boxShadow?: string;
14
+ };
15
+ };
16
+ type Props = {
17
+ params: GridRenderCellParams;
18
+ items?: ColumnCfg[];
19
+ areas?: TemplateAreas;
20
+ layout: Layout;
21
+ };
22
+ export declare const Custom: ({ params, items, areas, layout }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -0,0 +1,24 @@
1
+ import type { GridRenderCellParams } from '@mui/x-data-grid-pro';
2
+ import type { ColumnCfg } from '../types';
3
+ type Layout = {
4
+ gap: number;
5
+ verticalGap: number;
6
+ trailingDirection: 'horizontal' | 'vertical';
7
+ item?: {
8
+ padding?: number;
9
+ backgroundColor?: string;
10
+ borderColor?: string;
11
+ borderRadius?: number;
12
+ boxShadow?: string;
13
+ };
14
+ };
15
+ type Props = {
16
+ params: GridRenderCellParams;
17
+ cfgCols: ColumnCfg[];
18
+ columns: Array<{
19
+ field: string;
20
+ }>;
21
+ layout: Layout;
22
+ };
23
+ export declare const FourItems: ({ params, cfgCols, layout }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
24
+ export {};
@@ -0,0 +1,22 @@
1
+ import type { GridRenderCellParams } from '@mui/x-data-grid-pro';
2
+ import type { ColumnCfg } from '../types';
3
+ type Props = {
4
+ params: GridRenderCellParams;
5
+ cfgCols: ColumnCfg[];
6
+ columns: Array<{
7
+ field: string;
8
+ }>;
9
+ config?: NotificationCardConfig;
10
+ onDismiss?: (row: Record<string, unknown>) => void;
11
+ };
12
+ type NotificationCardConfig = {
13
+ backgroundColor?: string;
14
+ borderColor?: string;
15
+ borderRadius?: number;
16
+ textColor?: string;
17
+ secondaryTextColor?: string;
18
+ priorityIndicatorColor?: string;
19
+ priorityIndicatorTextColor?: string;
20
+ };
21
+ export declare const NotificationCard: ({ params, cfgCols, columns, config, onDismiss }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
22
+ export {};
@@ -0,0 +1,34 @@
1
+ import type { GridRenderCellParams } from '@mui/x-data-grid-pro';
2
+ type Props = {
3
+ params: GridRenderCellParams;
4
+ borderRadius?: number;
5
+ backgroundColor?: string;
6
+ borderColor?: string;
7
+ avatarBackgroundColor?: string;
8
+ avatarTextColor?: string;
9
+ stripeColor?: string;
10
+ titleColor?: string;
11
+ subtitleColor?: string;
12
+ companyColor?: string;
13
+ statusMapping?: Record<string, {
14
+ label: string;
15
+ color?: 'default' | 'success' | 'error' | 'warning' | 'info';
16
+ }>;
17
+ columns?: Array<{
18
+ field: string;
19
+ }>;
20
+ };
21
+ /**
22
+ * StudyCard Template Component
23
+ *
24
+ * Reads data from row object using UUID-based column field names:
25
+ * - Column 0: Title (uuid-col-0)
26
+ * - Column 1: Status (uuid-col-1)
27
+ * - Column 2: Sponsor (uuid-col-2) - used for avatar initials
28
+ * - Column 3: Subtitle (uuid-col-3)
29
+ * - Column 4: Company (uuid-col-4)
30
+ *
31
+ * The component handles object values by extracting .value, .label, .name, .text, etc.
32
+ */
33
+ export declare const StudyCard: ({ params, borderRadius, backgroundColor, borderColor, avatarBackgroundColor, avatarTextColor, stripeColor, titleColor, subtitleColor, companyColor, statusMapping, columns, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
34
+ export {};
@@ -0,0 +1,29 @@
1
+ import type { GridRenderCellParams } from '@mui/x-data-grid-pro';
2
+ import type { ColumnCfg } from '../types';
3
+ type SubjectCardConfig = {
4
+ backgroundColor?: string;
5
+ borderColor?: string;
6
+ borderRadius?: number;
7
+ avatarBgColor?: string;
8
+ avatarTextColor?: string;
9
+ textColor?: string;
10
+ secondaryTextColor?: string;
11
+ statusColors?: {
12
+ ACTIVE?: string;
13
+ INACTIVE?: string;
14
+ [key: string]: string | undefined;
15
+ };
16
+ };
17
+ type Props = {
18
+ params: GridRenderCellParams;
19
+ cfgCols: ColumnCfg[];
20
+ columns: Array<{
21
+ field: string;
22
+ }>;
23
+ config?: SubjectCardConfig;
24
+ onEdit?: (row: Record<string, unknown>) => void;
25
+ onDelete?: (row: Record<string, unknown>) => void;
26
+ onView?: (row: Record<string, unknown>) => void;
27
+ };
28
+ export declare const SubjectCard: ({ params, cfgCols, columns, config, onEdit, onDelete, onView, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
29
+ export {};
@@ -0,0 +1,22 @@
1
+ import type { GridRenderCellParams } from '@mui/x-data-grid-pro';
2
+ type Props = {
3
+ params: GridRenderCellParams;
4
+ columns: Array<{
5
+ field: string;
6
+ }>;
7
+ layout?: {
8
+ item?: {
9
+ padding?: number;
10
+ paddingX?: number;
11
+ paddingY?: number;
12
+ marginX?: number;
13
+ marginY?: number;
14
+ backgroundColor?: string;
15
+ borderColor?: string;
16
+ borderRadius?: number | string;
17
+ boxShadow?: string;
18
+ };
19
+ };
20
+ };
21
+ export declare const VisitCard: ({ params, columns, layout }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
22
+ export {};
@@ -0,0 +1,22 @@
1
+ import type { GridRenderCellParams } from '@mui/x-data-grid-pro';
2
+ type Props = {
3
+ params: GridRenderCellParams;
4
+ columns: Array<{
5
+ field: string;
6
+ }>;
7
+ layout?: {
8
+ item?: {
9
+ padding?: number;
10
+ paddingX?: number;
11
+ paddingY?: number;
12
+ marginX?: number;
13
+ marginY?: number;
14
+ backgroundColor?: string;
15
+ borderColor?: string;
16
+ borderRadius?: number | string;
17
+ boxShadow?: string;
18
+ };
19
+ };
20
+ };
21
+ export declare const VisitCardCheck: ({ params, columns, layout }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
22
+ export {};
@@ -0,0 +1,15 @@
1
+ import type { GridColDef, GridListViewColDef } from '@mui/x-data-grid-pro';
2
+ import type { ColumnCfg, ListTemplateId, TemplateAreas } from './types';
3
+ export declare const buildTemplateRenderer: (templateType: ListTemplateId, _areas: TemplateAreas, _layout: {
4
+ gap: number;
5
+ verticalGap: number;
6
+ trailingDirection: 'horizontal' | 'vertical';
7
+ templateColumns?: string;
8
+ item?: {
9
+ padding?: number;
10
+ backgroundColor?: string;
11
+ borderColor?: string;
12
+ borderRadius?: number;
13
+ boxShadow?: string;
14
+ };
15
+ }, cfgCols: ColumnCfg[], hiddenColumns: GridColDef[]) => GridListViewColDef | undefined;
@@ -0,0 +1,20 @@
1
+ import type { GridColDef } from '@mui/x-data-grid-pro';
2
+ import type { ColumnCfg, LayoutCfg, ListTemplateId, Mapping, TemplateAreas } from './types';
3
+ export declare const pickById: (cols: ColumnCfg[], id?: string) => ColumnCfg | undefined;
4
+ export declare const getTemplateAreas: (templateType: ListTemplateId, cfgCols: ColumnCfg[], mapping: Mapping) => TemplateAreas;
5
+ export declare const getTemplateLayout: (templateType: ListTemplateId, layoutCfg: LayoutCfg) => {
6
+ gap: number;
7
+ verticalGap: number;
8
+ trailingDirection: 'horizontal' | 'vertical';
9
+ templateColumns?: string | undefined;
10
+ item?: {
11
+ padding?: number | undefined;
12
+ backgroundColor?: string | undefined;
13
+ borderColor?: string | undefined;
14
+ borderRadius?: number | undefined;
15
+ boxShadow?: string | undefined;
16
+ } | undefined;
17
+ };
18
+ export declare const hiddenToSimpleColumns: (hiddenColumns: GridColDef[]) => Array<{
19
+ field: string;
20
+ }>;
@@ -0,0 +1,27 @@
1
+ export declare const toolbarStylesGroup: {
2
+ readonly id: "toolbarStyles";
3
+ readonly tool: "custom";
4
+ readonly titleKey: "config.datagrid.group.toolbarStyles";
5
+ readonly collapsible: true;
6
+ readonly initiallyExpanded: false;
7
+ readonly pathBase: "props.toolbarContainer.sx";
8
+ readonly fields: readonly [{
9
+ readonly type: "color";
10
+ readonly captureName: "backgroundColor";
11
+ readonly labelKey: "config.datagrid.toolbarStyles.background";
12
+ }, {
13
+ readonly type: "color";
14
+ readonly captureName: "borderColor";
15
+ readonly labelKey: "config.datagrid.toolbarStyles.borderColor";
16
+ }, {
17
+ readonly type: "number";
18
+ readonly captureName: "borderRadius";
19
+ readonly labelKey: "config.datagrid.toolbarStyles.borderRadius";
20
+ readonly defaultValue: 8;
21
+ }, {
22
+ readonly type: "number";
23
+ readonly captureName: "gap";
24
+ readonly labelKey: "config.datagrid.toolbarStyles.gap";
25
+ readonly defaultValue: 1.5;
26
+ }];
27
+ };
@@ -0,0 +1,17 @@
1
+ import type { DataGridQuery } from '../types/types';
2
+ type Params = {
3
+ organismId: string;
4
+ query: DataGridQuery;
5
+ previewMode?: boolean;
6
+ organismConfig?: Record<string, unknown>;
7
+ sourceDataPointerId?: string;
8
+ };
9
+ export declare const useDataGridRows: ({ organismId, query, previewMode, organismConfig, sourceDataPointerId, }: Params) => {
10
+ rows: any[];
11
+ total: number;
12
+ isLoading: boolean;
13
+ error: null;
14
+ refetch: () => Promise<void>;
15
+ refreshSignal: number;
16
+ };
17
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { FC } from 'react';
2
+ export type ActionButtonCellProps = {
3
+ tooltip?: string;
4
+ label?: string;
5
+ icon?: React.ReactNode | string;
6
+ variant?: 'text' | 'outlined' | 'contained';
7
+ color?: 'primary' | 'secondary' | 'error' | 'info' | 'inherit';
8
+ size?: 'small' | 'medium';
9
+ disabled?: boolean;
10
+ onClick?: () => void;
11
+ };
12
+ export declare const ActionButtonCell: FC<ActionButtonCellProps>;
@@ -0,0 +1,7 @@
1
+ import { type FC } from 'react';
2
+ export type AvatarTextCellProps = {
3
+ row: Record<string, unknown>;
4
+ avatarField: string;
5
+ textField: string;
6
+ };
7
+ export declare const AvatarTextCell: FC<AvatarTextCellProps>;
@@ -0,0 +1,7 @@
1
+ import type { FC } from 'react';
2
+ export type BooleanIconCellProps = {
3
+ value: boolean | string | number | null | undefined | object;
4
+ trueLabel?: string;
5
+ falseLabel?: string;
6
+ };
7
+ export declare const BooleanIconCell: FC<BooleanIconCellProps>;
@@ -0,0 +1,7 @@
1
+ import type { FC } from 'react';
2
+ export type CurrencyCellProps = {
3
+ value: number | string | null | undefined | object;
4
+ currency?: string;
5
+ locale?: string;
6
+ };
7
+ export declare const CurrencyCell: FC<CurrencyCellProps>;
@@ -0,0 +1,6 @@
1
+ import { type FC } from 'react';
2
+ export type DateCellProps = {
3
+ value: string | number | Date | null | undefined | object;
4
+ formatString?: string;
5
+ };
6
+ export declare const DateCell: FC<DateCellProps>;
@@ -0,0 +1,5 @@
1
+ import { type FC } from 'react';
2
+ export type DefaultTextCellProps = {
3
+ value: string | number | boolean | null | undefined | object;
4
+ };
5
+ export declare const DefaultTextCell: FC<DefaultTextCellProps>;
@@ -0,0 +1,5 @@
1
+ import type { FC } from 'react';
2
+ export type EmailLinkCellProps = {
3
+ value: string | null | undefined | object;
4
+ };
5
+ export declare const EmailLinkCell: FC<EmailLinkCellProps>;
@@ -0,0 +1,5 @@
1
+ import type { FC } from 'react';
2
+ export type PhoneLinkCellProps = {
3
+ value: string | number | null | undefined | object;
4
+ };
5
+ export declare const PhoneLinkCell: FC<PhoneLinkCellProps>;
@@ -0,0 +1,6 @@
1
+ import type { FC } from 'react';
2
+ export type RatingCellProps = {
3
+ value: number | string | null | undefined | object;
4
+ max?: number;
5
+ };
6
+ export declare const RatingCell: FC<RatingCellProps>;
@@ -0,0 +1,11 @@
1
+ import { type FC } from 'react';
2
+ export type StatusChipCellProps = {
3
+ value: string;
4
+ mapping?: Record<string, {
5
+ label: string;
6
+ color?: 'default' | 'success' | 'error' | 'warning' | 'info';
7
+ bgColor?: string;
8
+ textColor?: string;
9
+ }>;
10
+ };
11
+ export declare const StatusChipCell: FC<StatusChipCellProps>;
@@ -0,0 +1,11 @@
1
+ export { ActionButtonCell } from './ActionButtonCell';
2
+ export { AvatarTextCell } from './AvatarTextCell';
3
+ export { BooleanIconCell } from './BooleanIconCell';
4
+ export { CurrencyCell } from './CurrencyCell';
5
+ export { DateCell } from './DateCell';
6
+ export { DefaultTextCell } from './DefaultTextCell';
7
+ export { EmailLinkCell } from './EmailLinkCell';
8
+ export { PhoneLinkCell } from './PhoneLinkCell';
9
+ export { RatingCell } from './RatingCell';
10
+ export { CellRendererRegistry } from './rendererRegistry';
11
+ export { StatusChipCell } from './StatusChipCell';
@@ -0,0 +1,3 @@
1
+ import type { FC } from 'react';
2
+ export type RendererComponent = FC<Record<string, unknown>>;
3
+ export declare const CellRendererRegistry: Record<string, RendererComponent>;
@@ -0,0 +1,16 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { OrganismDTO } from '../../types';
3
+ import type { ColumnActionConfig, DataGridOrganismConfig } from './types';
4
+ export interface DataGridOrganismHostProps {
5
+ organism: OrganismDTO & {
6
+ config: {
7
+ dataGrid: DataGridOrganismConfig;
8
+ };
9
+ };
10
+ onAction?: (payload: {
11
+ action: ColumnActionConfig;
12
+ row: Record<string, unknown>;
13
+ }) => void;
14
+ errorState?: (error: Error) => ReactNode;
15
+ previewMode?: boolean;
16
+ }