@applica-software-guru/react-admin 1.5.263 → 1.5.264
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/components/ra-forms/TableForm/TableFormIterator.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +35 -35
- package/dist/react-admin.cjs.js.gz +0 -0
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +1483 -1475
- package/dist/react-admin.es.js.gz +0 -0
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +35 -35
- package/dist/react-admin.umd.js.gz +0 -0
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-forms/TableForm/TableFormIterator.tsx +16 -3
- package/src/components/ra-inputs/LabeledInput.tsx +1 -1
package/package.json
CHANGED
|
@@ -22,6 +22,7 @@ import * as React from 'react';
|
|
|
22
22
|
import { Children, ReactElement, ReactNode, useCallback, useMemo, useRef, useState } from 'react';
|
|
23
23
|
import { Confirm, useArrayInput } from 'react-admin';
|
|
24
24
|
import { UseFieldArrayReturn, useFormContext } from 'react-hook-form';
|
|
25
|
+
import { Tooltip } from '@/components/@extended';
|
|
25
26
|
|
|
26
27
|
/**
|
|
27
28
|
* How to use TableFormIterator:
|
|
@@ -180,11 +181,23 @@ function RawTableFormIterator(props: TableFormIteratorProps): ReactElement | nul
|
|
|
180
181
|
if (!React.isValidElement<any>(input)) {
|
|
181
182
|
return null;
|
|
182
183
|
}
|
|
184
|
+
|
|
185
|
+
const columnText = (
|
|
186
|
+
<Typography display={'flex'} variant="subtitle1" color="text.primary" textTransform="none">
|
|
187
|
+
{translateLabel({ ...input.props, resource })}
|
|
188
|
+
</Typography>
|
|
189
|
+
);
|
|
190
|
+
|
|
183
191
|
return (
|
|
184
192
|
<TableCell key={index}>
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
193
|
+
{input.props.title ? (
|
|
194
|
+
// @ts-ignore
|
|
195
|
+
<Tooltip title={input.props.title} arrow>
|
|
196
|
+
{columnText}
|
|
197
|
+
</Tooltip>
|
|
198
|
+
) : (
|
|
199
|
+
columnText
|
|
200
|
+
)}
|
|
188
201
|
</TableCell>
|
|
189
202
|
);
|
|
190
203
|
})}
|