@applica-software-guru/react-admin 1.3.133 → 1.3.134
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/build.sh +9 -0
- package/dist/ApplicaAdmin.d.ts.map +1 -1
- package/dist/components/ra-forms/ChangePasswordForm.d.ts.map +1 -1
- package/dist/components/ra-lists/ListView.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +46 -46
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +1680 -1676
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +50 -50
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +3 -3
- package/src/ApplicaAdmin.tsx +3 -1
- package/src/components/ra-forms/ChangePasswordForm.tsx +3 -1
- package/src/components/ra-lists/ListView.tsx +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applica-software-guru/react-admin",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.134",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"simplebar-react": "3.2.4"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@applica-software-guru/crud-client": "1.1
|
|
75
|
-
"@applica-software-guru/iam-client": "1.1
|
|
74
|
+
"@applica-software-guru/crud-client": "^1.1",
|
|
75
|
+
"@applica-software-guru/iam-client": "^1.1",
|
|
76
76
|
"@testing-library/jest-dom": "^5.16.5",
|
|
77
77
|
"@testing-library/react": "^14.0.0",
|
|
78
78
|
"@types/node": "^18.7.6",
|
package/src/ApplicaAdmin.tsx
CHANGED
|
@@ -170,7 +170,9 @@ const ApplicaAdmin = ({
|
|
|
170
170
|
'Invalid prop `file` of type `string` supplied to `FileInputPreview`, expected `object`.',
|
|
171
171
|
'Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(Switch)`, expected `boolean`.',
|
|
172
172
|
'Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(SwitchBase)`, expected `boolean`.',
|
|
173
|
-
'validateDOMNesting(...): <form> cannot appear as a descendant of <form>.'
|
|
173
|
+
'validateDOMNesting(...): <form> cannot appear as a descendant of <form>.',
|
|
174
|
+
'Missing translation for key:',
|
|
175
|
+
'HttpError: '
|
|
174
176
|
];
|
|
175
177
|
const isKnowBug = knownErrors.some((knownError) => errorMessage?.includes(knownError));
|
|
176
178
|
const result = new CatchResult({
|
|
@@ -28,7 +28,9 @@ const ChangePasswordForm = ({ onSuccess, firstAccess }: ChangePasswordFormProps)
|
|
|
28
28
|
notify('ra.auth.password_changed');
|
|
29
29
|
onSuccess();
|
|
30
30
|
})
|
|
31
|
-
.catch((error:
|
|
31
|
+
.catch((error: any) => {
|
|
32
|
+
notify(error?.message || error?.toString(), { type: 'error' });
|
|
33
|
+
})
|
|
32
34
|
.finally(() => setSaving(false));
|
|
33
35
|
},
|
|
34
36
|
[authProvider, onSuccess]
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { styled } from '@mui/material/styles';
|
|
3
3
|
import { cloneElement, ReactElement, ReactNode, ElementType } from 'react';
|
|
4
|
-
import { Title, TitlePropType, Pagination as DefaultPagination, ListToolbar, ListActions as DefaultActions } from 'react-admin';
|
|
4
|
+
import { Title, TitlePropType, Pagination as DefaultPagination, ListToolbar, ListActions as DefaultActions, Empty } from 'react-admin';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { SxProps } from '@mui/system';
|
|
7
7
|
import Card from '@mui/material/Card';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import { ComponentPropType, useListContext, RaRecord } from 'ra-core';
|
|
10
10
|
|
|
11
|
-
import Empty from './Empty';
|
|
12
11
|
import Error from '../Layout/Error';
|
|
13
12
|
|
|
14
13
|
const defaultActions = <DefaultActions />;
|