@panneau/form-resource 3.0.289 → 3.0.290
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 +3 -6
- package/package.json +9 -9
package/es/index.js
CHANGED
|
@@ -130,7 +130,6 @@ var DeleteForm = function DeleteForm(_ref) {
|
|
|
130
130
|
};
|
|
131
131
|
DeleteForm.propTypes = propTypes$2;
|
|
132
132
|
DeleteForm.defaultProps = defaultProps$2;
|
|
133
|
-
var DeleteForm$1 = DeleteForm;
|
|
134
133
|
|
|
135
134
|
var _excluded$1 = ["resource", "action", "previous", "status", "value", "onSubmit", "errors", "generalError", "loading", "className"];
|
|
136
135
|
var propTypes$1 = {
|
|
@@ -245,7 +244,6 @@ var DuplicateForm = function DuplicateForm(_ref) {
|
|
|
245
244
|
};
|
|
246
245
|
DuplicateForm.propTypes = propTypes$1;
|
|
247
246
|
DuplicateForm.defaultProps = defaultProps$1;
|
|
248
|
-
var DuplicateForm$1 = DuplicateForm;
|
|
249
247
|
|
|
250
248
|
var _excluded = ["component", "resource", "onSuccess", "item", "type", "isDelete", "isDuplicate"];
|
|
251
249
|
var propTypes = {
|
|
@@ -399,10 +397,10 @@ var ResourceForm = function ResourceForm(_ref) {
|
|
|
399
397
|
var defaultFormName = isDelete || isDuplicate ? component || formComponent || null : component || formComponent || defaultComponent || 'normal';
|
|
400
398
|
var finalComponent = component;
|
|
401
399
|
if (isDelete) {
|
|
402
|
-
finalComponent = DeleteForm
|
|
400
|
+
finalComponent = DeleteForm;
|
|
403
401
|
}
|
|
404
402
|
if (isDuplicate) {
|
|
405
|
-
finalComponent = DuplicateForm
|
|
403
|
+
finalComponent = DuplicateForm;
|
|
406
404
|
}
|
|
407
405
|
|
|
408
406
|
// Form component
|
|
@@ -432,6 +430,5 @@ var ResourceForm = function ResourceForm(_ref) {
|
|
|
432
430
|
};
|
|
433
431
|
ResourceForm.propTypes = propTypes;
|
|
434
432
|
ResourceForm.defaultProps = defaultProps;
|
|
435
|
-
var Resource = ResourceForm;
|
|
436
433
|
|
|
437
|
-
export {
|
|
434
|
+
export { ResourceForm as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/form-resource",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.290",
|
|
4
4
|
"description": "Default resource forms",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/runtime": "^7.12.5",
|
|
52
|
-
"@panneau/core": "^3.0.
|
|
53
|
-
"@panneau/data": "^3.0.
|
|
54
|
-
"@panneau/element-button": "^3.0.
|
|
55
|
-
"@panneau/element-form": "^3.0.
|
|
56
|
-
"@panneau/field-fields": "^3.0.
|
|
57
|
-
"@panneau/intl": "^3.0.
|
|
58
|
-
"@panneau/themes": "^3.0.
|
|
52
|
+
"@panneau/core": "^3.0.290",
|
|
53
|
+
"@panneau/data": "^3.0.290",
|
|
54
|
+
"@panneau/element-button": "^3.0.290",
|
|
55
|
+
"@panneau/element-form": "^3.0.290",
|
|
56
|
+
"@panneau/field-fields": "^3.0.290",
|
|
57
|
+
"@panneau/intl": "^3.0.290",
|
|
58
|
+
"@panneau/themes": "^3.0.290",
|
|
59
59
|
"classnames": "^2.5.1",
|
|
60
60
|
"lodash-es": "^4.17.21",
|
|
61
61
|
"prop-types": "^15.7.2",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "682156ae8f9e789cca229bd2aab2c8f3228b5ffe"
|
|
68
68
|
}
|