@evoke-platform/ui-components 1.5.0-testing.7 → 1.5.0-testing.9

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.
@@ -66,46 +66,48 @@ export const DocumentViewerCell = (props) => {
66
66
  fontWeight: 400,
67
67
  fontSize: '14px',
68
68
  } }, isLoading ? 'Preparing document...' : 'View Document')),
69
- React.createElement(Menu, { id: `document-menu-${instance.id}-${propertyId}`, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: () => {
70
- setAnchorEl(null);
71
- }, sx: {
72
- '& .MuiPaper-root': {
73
- borderRadius: '12px',
74
- boxShadow: 'rgba(145, 158, 171, 0.2)',
75
- },
76
- }, variant: 'menu', slotProps: {
77
- paper: {
78
- style: {
79
- maxHeight: 200,
80
- maxWidth: 300,
81
- minWidth: 300,
69
+ React.createElement("section", { role: "region", "aria-label": "Document Menu" },
70
+ React.createElement(Menu, { id: `document-menu-${instance.id}-${propertyId}`, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: () => {
71
+ setAnchorEl(null);
72
+ }, sx: {
73
+ '& .MuiPaper-root': {
74
+ borderRadius: '12px',
75
+ boxShadow: 'rgba(145, 158, 171, 0.2)',
82
76
  },
83
- },
84
- } }, instance[propertyId].map((document) => (React.createElement(MenuItem, { key: document.id, onClick: async (e) => {
85
- setAnchorEl(null);
86
- await downloadDocument(document, instance);
87
- }, "aria-label": document.name },
88
- React.createElement(Grid, { item: true, sx: {
89
- display: 'flex',
90
- justifyContent: 'center',
91
- padding: '7px',
92
- } },
93
- React.createElement(FileWithExtension, { fontFamily: "Arial", fileExtension: document.name?.split('.')?.pop() ?? '', sx: {
94
- height: '1rem',
95
- width: '1rem',
96
- } })),
97
- React.createElement(Grid, { item: true, xs: 12, sx: {
98
- width: '100%',
99
- overflow: 'hidden',
100
- textOverflow: 'ellipsis',
101
- } },
102
- React.createElement(Typography, { noWrap: true, sx: {
103
- fontSize: '14px',
104
- fontWeight: 700,
105
- color: '#212B36',
106
- lineHeight: '15px',
77
+ }, variant: 'menu', slotProps: {
78
+ paper: {
79
+ tabIndex: 0,
80
+ style: {
81
+ maxHeight: 200,
82
+ maxWidth: 300,
83
+ minWidth: 300,
84
+ },
85
+ },
86
+ } }, instance[propertyId].map((document) => (React.createElement(MenuItem, { key: document.id, onClick: async (e) => {
87
+ setAnchorEl(null);
88
+ await downloadDocument(document, instance);
89
+ }, "aria-label": document.name },
90
+ React.createElement(Grid, { item: true, sx: {
91
+ display: 'flex',
92
+ justifyContent: 'center',
93
+ padding: '7px',
94
+ } },
95
+ React.createElement(FileWithExtension, { fontFamily: "Arial", fileExtension: document.name?.split('.')?.pop() ?? '', sx: {
96
+ height: '1rem',
97
+ width: '1rem',
98
+ } })),
99
+ React.createElement(Grid, { item: true, xs: 12, sx: {
107
100
  width: '100%',
108
- } }, document.name)))))))) : (React.createElement(Typography, { sx: {
101
+ overflow: 'hidden',
102
+ textOverflow: 'ellipsis',
103
+ } },
104
+ React.createElement(Typography, { noWrap: true, sx: {
105
+ fontSize: '14px',
106
+ fontWeight: 700,
107
+ color: '#212B36',
108
+ lineHeight: '15px',
109
+ width: '100%',
110
+ } }, document.name))))))))) : (React.createElement(Typography, { sx: {
109
111
  fontStyle: 'italic',
110
112
  marginLeft: '12px',
111
113
  fontSize: '14px',
@@ -127,7 +127,7 @@ export function convertFormToComponents(entries, parameters, object) {
127
127
  conditional: convertVisibilityToConditional(entry.visibility),
128
128
  };
129
129
  }
130
- else {
130
+ else if (entry.type === 'input') {
131
131
  const displayOptions = entry.display;
132
132
  const parameter = parameters.find((parameter) => parameter.id === entry.parameterId);
133
133
  if (!parameter) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.5.0-testing.7",
3
+ "version": "1.5.0-testing.9",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",
@@ -84,7 +84,7 @@
84
84
  "webpack": "^5.74.0"
85
85
  },
86
86
  "peerDependencies": {
87
- "@evoke-platform/context": "^1.1.0-testing.5",
87
+ "@evoke-platform/context": "^1.2.0-0",
88
88
  "react": "^18.1.0",
89
89
  "react-dom": "^18.1.0"
90
90
  },