@panneau/modal-resource-form 4.0.2 → 4.0.3
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/es/index.js +13 -11
- package/package.json +4 -4
package/es/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { FormattedMessage } from 'react-intl';
|
|
|
2
2
|
import ResourceForm from '@panneau/form-resource';
|
|
3
3
|
import { useResourceValues } from '@panneau/intl';
|
|
4
4
|
import Dialog from '@panneau/modal-dialog';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
6
|
|
|
6
7
|
function ModalResourceForm(_ref) {
|
|
7
8
|
var id = _ref.id,
|
|
@@ -20,9 +21,9 @@ function ModalResourceForm(_ref) {
|
|
|
20
21
|
_ref$className = _ref.className,
|
|
21
22
|
className = _ref$className === void 0 ? null : _ref$className;
|
|
22
23
|
var resourceValues = useResourceValues(resource);
|
|
23
|
-
return /*#__PURE__*/
|
|
24
|
+
return /*#__PURE__*/jsx(Dialog, {
|
|
24
25
|
id: id,
|
|
25
|
-
title: !isCreate !== null ? /*#__PURE__*/
|
|
26
|
+
title: !isCreate !== null ? /*#__PURE__*/jsx(FormattedMessage, {
|
|
26
27
|
values: resourceValues,
|
|
27
28
|
id: "mCfzkJ",
|
|
28
29
|
defaultMessage: [{
|
|
@@ -32,7 +33,7 @@ function ModalResourceForm(_ref) {
|
|
|
32
33
|
"type": 1,
|
|
33
34
|
"value": "a_singular"
|
|
34
35
|
}]
|
|
35
|
-
}) : /*#__PURE__*/
|
|
36
|
+
}) : /*#__PURE__*/jsx(FormattedMessage, {
|
|
36
37
|
values: resourceValues,
|
|
37
38
|
id: "6viUpq",
|
|
38
39
|
defaultMessage: [{
|
|
@@ -45,14 +46,15 @@ function ModalResourceForm(_ref) {
|
|
|
45
46
|
}),
|
|
46
47
|
size: "lg",
|
|
47
48
|
onClose: onClose,
|
|
48
|
-
className: className
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
className: className,
|
|
50
|
+
children: /*#__PURE__*/jsx(ResourceForm, {
|
|
51
|
+
resource: resource,
|
|
52
|
+
type: type,
|
|
53
|
+
item: item,
|
|
54
|
+
onSuccess: onSuccess,
|
|
55
|
+
isModal: true
|
|
56
|
+
})
|
|
57
|
+
});
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
export { ModalResourceForm as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/modal-resource-form",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "Resource form modal",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/runtime": "^7.12.5",
|
|
52
52
|
"@panneau/core": "^4.0.2",
|
|
53
|
-
"@panneau/form-resource": "^4.0.
|
|
54
|
-
"@panneau/intl": "^4.0.
|
|
53
|
+
"@panneau/form-resource": "^4.0.3",
|
|
54
|
+
"@panneau/intl": "^4.0.3",
|
|
55
55
|
"@panneau/modal-dialog": "^4.0.2",
|
|
56
56
|
"@panneau/themes": "^4.0.2",
|
|
57
57
|
"classnames": "^2.5.1",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "26b5ab7536b0e8c3197d40d302fc2681e7c7122e"
|
|
66
66
|
}
|