@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.
- package/dist/cjs/containers/ExpandableContainer.d.ts +8 -0
- package/dist/cjs/containers/TabsContainer.d.ts +22 -0
- package/dist/cjs/containers/index.d.ts +2 -0
- package/dist/cjs/containers/styles.d.ts +49 -0
- package/dist/cjs/containers/types/moleculeTypes.d.ts +24 -4
- package/dist/cjs/containers/types/types.d.ts +71 -2
- package/dist/cjs/index.css +265 -0
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +124 -124
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/Breadcrumbs/Breadcrumbs.d.ts +42 -0
- package/dist/cjs/molecules/Progress/Progress.d.ts +34 -0
- package/dist/cjs/molecules/index.d.ts +2 -0
- package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/ApplicationCard.d.ts +26 -0
- package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/Custom.d.ts +23 -0
- package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/FourItems.d.ts +24 -0
- package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/NotificationCard.d.ts +22 -0
- package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/StudyCard.d.ts +34 -0
- package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/SubjectCard.d.ts +29 -0
- package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/VisitCard.d.ts +22 -0
- package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/VisitCardCheck.d.ts +22 -0
- package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/registry.d.ts +15 -0
- package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/utils.d.ts +20 -0
- package/dist/cjs/organisms/DataGrid/config/toolDescriptor/toolbarStyles.d.ts +27 -0
- package/dist/cjs/organisms/DataGrid/queries/useDataGridRows.d.ts +17 -0
- package/dist/cjs/organisms/DataGrid/renderers/ActionButtonCell.d.ts +12 -0
- package/dist/cjs/organisms/DataGrid/renderers/AvatarTextCell.d.ts +7 -0
- package/dist/cjs/organisms/DataGrid/renderers/BooleanIconCell.d.ts +7 -0
- package/dist/cjs/organisms/DataGrid/renderers/CurrencyCell.d.ts +7 -0
- package/dist/cjs/organisms/DataGrid/renderers/DateCell.d.ts +6 -0
- package/dist/cjs/organisms/DataGrid/renderers/DefaultTextCell.d.ts +5 -0
- package/dist/cjs/organisms/DataGrid/renderers/EmailLinkCell.d.ts +5 -0
- package/dist/cjs/organisms/DataGrid/renderers/PhoneLinkCell.d.ts +5 -0
- package/dist/cjs/organisms/DataGrid/renderers/RatingCell.d.ts +6 -0
- package/dist/cjs/organisms/DataGrid/renderers/StatusChipCell.d.ts +11 -0
- package/dist/cjs/organisms/DataGrid/renderers/index.d.ts +11 -0
- package/dist/cjs/organisms/DataGrid/renderers/rendererRegistry.d.ts +3 -0
- package/dist/cjs/organisms/DataGrid/types/hostTypes.d.ts +16 -0
- package/dist/cjs/organisms/DataGrid/types/types.d.ts +242 -0
- package/dist/cjs/organisms/DataGridCustomOrganism/DataGridCustomOrganism.d.ts +3 -0
- package/dist/cjs/organisms/DataGridCustomOrganism/index.d.ts +2 -0
- package/dist/cjs/organisms/DataGridCustomOrganism/types/hostTypes.d.ts +14 -0
- package/dist/cjs/organisms/DataGridListOrganism/DataGridListOrganism.d.ts +3 -0
- package/dist/cjs/organisms/DataGridListOrganism/hooks/useDataGridTemplateRuntime.d.ts +39 -0
- package/dist/cjs/organisms/DataGridListOrganism/index.d.ts +2 -0
- package/dist/cjs/organisms/DataGridListOrganism/types/hostTypes.d.ts +14 -0
- package/dist/cjs/organisms/DataGridListOrganism/utils/slotResolvers.d.ts +22 -0
- package/dist/cjs/organisms/Organism/Organism.d.ts +5 -0
- package/dist/cjs/organisms/Organism/mockData.d.ts +410 -0
- package/dist/cjs/organisms/index.d.ts +2 -0
- package/dist/cjs/organisms/types.d.ts +1 -1
- package/dist/cjs/queries/federatedSearch/useOrganismData.d.ts +305 -0
- package/dist/cjs/setup/muiXLicense.d.ts +1 -0
- package/dist/cjs/theme/index.d.ts +5 -0
- package/dist/cjs/theme/provider.d.ts +7 -0
- package/dist/cjs/theme/theme.d.ts +2 -0
- package/dist/cjs/theme/toastStyles.d.ts +1 -0
- package/dist/cjs/theme/types.d.ts +19 -0
- package/dist/cjs/theme/useMediaQuery.d.ts +2 -0
- package/dist/esm/containers/Container.js +12 -12
- package/dist/esm/containers/Container.js.map +1 -1
- package/dist/esm/containers/ExpandableContainer.d.ts +8 -0
- package/dist/esm/containers/ExpandableContainer.js +2 -0
- package/dist/esm/containers/ExpandableContainer.js.map +1 -0
- package/dist/esm/containers/OrganismItem.js +1 -1
- package/dist/esm/containers/OrganismItem.js.map +1 -1
- package/dist/esm/containers/TabsContainer.d.ts +22 -0
- package/dist/esm/containers/TabsContainer.js +2 -0
- package/dist/esm/containers/TabsContainer.js.map +1 -0
- package/dist/esm/containers/index.d.ts +2 -0
- package/dist/esm/containers/styles.d.ts +49 -0
- package/dist/esm/containers/types/moleculeTypes.d.ts +24 -4
- package/dist/esm/containers/types/types.d.ts +71 -2
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/molecules/BaseMolecule.js +1 -1
- package/dist/esm/molecules/BaseMolecule.js.map +1 -1
- package/dist/esm/molecules/Breadcrumbs/Breadcrumbs.d.ts +42 -0
- package/dist/esm/molecules/Breadcrumbs/Breadcrumbs.js +2 -0
- package/dist/esm/molecules/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/dist/esm/molecules/Progress/Progress.d.ts +34 -0
- package/dist/esm/molecules/Progress/Progress.js +2 -0
- package/dist/esm/molecules/Progress/Progress.js.map +1 -0
- package/dist/esm/molecules/index.d.ts +2 -0
- package/dist/esm/node_modules/@mui/material/esm/Breadcrumbs/BreadcrumbCollapsed.js +2 -0
- package/dist/esm/node_modules/@mui/material/esm/Breadcrumbs/BreadcrumbCollapsed.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/esm/Breadcrumbs/Breadcrumbs.js +2 -0
- package/dist/esm/node_modules/@mui/material/esm/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/esm/Breadcrumbs/breadcrumbsClasses.js +2 -0
- package/dist/esm/node_modules/@mui/material/esm/Breadcrumbs/breadcrumbsClasses.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/esm/internal/svg-icons/MoreHoriz.js +2 -0
- package/dist/esm/node_modules/@mui/material/esm/internal/svg-icons/MoreHoriz.js.map +1 -0
- package/dist/esm/organisms/DataGridCustomOrganism/DataGridCustomOrganism.d.ts +3 -0
- package/dist/esm/organisms/DataGridCustomOrganism/DataGridCustomOrganism.js +2 -0
- package/dist/esm/organisms/DataGridCustomOrganism/DataGridCustomOrganism.js.map +1 -0
- package/dist/esm/organisms/DataGridCustomOrganism/index.d.ts +2 -0
- package/dist/esm/organisms/DataGridCustomOrganism/types/hostTypes.d.ts +14 -0
- package/dist/esm/organisms/DataGridListOrganism/DataGridListOrganism.d.ts +3 -0
- package/dist/esm/organisms/DataGridListOrganism/DataGridListOrganism.js +2 -0
- package/dist/esm/organisms/DataGridListOrganism/DataGridListOrganism.js.map +1 -0
- package/dist/esm/organisms/DataGridListOrganism/hooks/useDataGridTemplateRuntime.d.ts +39 -0
- package/dist/esm/organisms/DataGridListOrganism/hooks/useDataGridTemplateRuntime.js +2 -0
- package/dist/esm/organisms/DataGridListOrganism/hooks/useDataGridTemplateRuntime.js.map +1 -0
- package/dist/esm/organisms/DataGridListOrganism/index.d.ts +2 -0
- package/dist/esm/organisms/DataGridListOrganism/types/hostTypes.d.ts +14 -0
- package/dist/esm/organisms/DataGridListOrganism/utils/slotResolvers.d.ts +22 -0
- package/dist/esm/organisms/DataGridListOrganism/utils/slotResolvers.js +2 -0
- package/dist/esm/organisms/DataGridListOrganism/utils/slotResolvers.js.map +1 -0
- package/dist/esm/organisms/index.d.ts +2 -0
- package/dist/esm/organisms/types.d.ts +1 -1
- 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';
|
package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/ApplicationCard.d.ts
ADDED
|
@@ -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 {};
|
package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/NotificationCard.d.ts
ADDED
|
@@ -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 {};
|
package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/VisitCardCheck.d.ts
ADDED
|
@@ -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,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,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
|
+
}
|