@panneau/modal-form 3.0.162 → 3.0.164
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 +5 -2
- package/lib/index.js +5 -2
- package/package.json +7 -7
package/es/index.js
CHANGED
@@ -5,8 +5,9 @@ import { FormattedMessage } from 'react-intl';
|
|
5
5
|
import Form from '@panneau/form';
|
6
6
|
import Dialog from '@panneau/modal-dialog';
|
7
7
|
|
8
|
-
var _excluded = ["title", "name", "fields", "action", "type", "item", "onComplete", "onClose", "submitButtonLabel", "className", "children"];
|
8
|
+
var _excluded = ["id", "title", "name", "fields", "action", "type", "item", "onComplete", "onClose", "submitButtonLabel", "className", "children"];
|
9
9
|
var propTypes = {
|
10
|
+
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
10
11
|
title: PropTypes.node,
|
11
12
|
name: PropTypes.string,
|
12
13
|
fields: PropTypes.arrayOf(PropTypes.shape({})),
|
@@ -35,7 +36,8 @@ var defaultProps = {
|
|
35
36
|
children: null
|
36
37
|
};
|
37
38
|
function ModalForm(_ref) {
|
38
|
-
var
|
39
|
+
var id = _ref.id,
|
40
|
+
title = _ref.title,
|
39
41
|
name = _ref.name,
|
40
42
|
fields = _ref.fields,
|
41
43
|
action = _ref.action,
|
@@ -48,6 +50,7 @@ function ModalForm(_ref) {
|
|
48
50
|
children = _ref.children,
|
49
51
|
props = _objectWithoutProperties(_ref, _excluded);
|
50
52
|
return /*#__PURE__*/React.createElement(Dialog, {
|
53
|
+
id: id,
|
51
54
|
title: title || (name !== null ? /*#__PURE__*/React.createElement(FormattedMessage, {
|
52
55
|
id: "smqUAV",
|
53
56
|
defaultMessage: [{
|
package/lib/index.js
CHANGED
@@ -9,8 +9,9 @@ var reactIntl = require('react-intl');
|
|
9
9
|
var Form = require('@panneau/form');
|
10
10
|
var Dialog = require('@panneau/modal-dialog');
|
11
11
|
|
12
|
-
var _excluded = ["title", "name", "fields", "action", "type", "item", "onComplete", "onClose", "submitButtonLabel", "className", "children"];
|
12
|
+
var _excluded = ["id", "title", "name", "fields", "action", "type", "item", "onComplete", "onClose", "submitButtonLabel", "className", "children"];
|
13
13
|
var propTypes = {
|
14
|
+
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
14
15
|
title: PropTypes.node,
|
15
16
|
name: PropTypes.string,
|
16
17
|
fields: PropTypes.arrayOf(PropTypes.shape({})),
|
@@ -39,7 +40,8 @@ var defaultProps = {
|
|
39
40
|
children: null
|
40
41
|
};
|
41
42
|
function ModalForm(_ref) {
|
42
|
-
var
|
43
|
+
var id = _ref.id,
|
44
|
+
title = _ref.title,
|
43
45
|
name = _ref.name,
|
44
46
|
fields = _ref.fields,
|
45
47
|
action = _ref.action,
|
@@ -52,6 +54,7 @@ function ModalForm(_ref) {
|
|
52
54
|
children = _ref.children,
|
53
55
|
props = _objectWithoutProperties(_ref, _excluded);
|
54
56
|
return /*#__PURE__*/React.createElement(Dialog, {
|
57
|
+
id: id,
|
55
58
|
title: title || (name !== null ? /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
56
59
|
id: "smqUAV",
|
57
60
|
defaultMessage: [{
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@panneau/modal-form",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.164",
|
4
4
|
"description": "Resource form modal",
|
5
5
|
"keywords": [
|
6
6
|
"javascript"
|
@@ -46,11 +46,11 @@
|
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
48
|
"@babel/runtime": "^7.12.5",
|
49
|
-
"@panneau/core": "^3.0.
|
50
|
-
"@panneau/form": "^3.0.
|
51
|
-
"@panneau/intl": "^3.0.
|
52
|
-
"@panneau/modal-dialog": "^3.0.
|
53
|
-
"@panneau/themes": "^3.0.
|
49
|
+
"@panneau/core": "^3.0.164",
|
50
|
+
"@panneau/form": "^3.0.164",
|
51
|
+
"@panneau/intl": "^3.0.164",
|
52
|
+
"@panneau/modal-dialog": "^3.0.164",
|
53
|
+
"@panneau/themes": "^3.0.164",
|
54
54
|
"classnames": "^2.5.1",
|
55
55
|
"lodash": "^4.17.21",
|
56
56
|
"prop-types": "^15.7.2",
|
@@ -59,5 +59,5 @@
|
|
59
59
|
"publishConfig": {
|
60
60
|
"access": "public"
|
61
61
|
},
|
62
|
-
"gitHead": "
|
62
|
+
"gitHead": "7a1511eb7b08a09cfcf708d1ca314a12155e9bd8"
|
63
63
|
}
|