@panneau/field-resource-item 4.0.4 → 4.0.6
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 -3
- package/package.json +12 -12
package/es/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import Select from '@panneau/element-select';
|
|
|
17
17
|
import ResourceForm from '@panneau/form-resource';
|
|
18
18
|
import { useResourceValues } from '@panneau/intl';
|
|
19
19
|
import Dialog from '@panneau/modal-dialog';
|
|
20
|
-
import
|
|
20
|
+
import ModalResourceItems from '@panneau/modal-resource-items';
|
|
21
21
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
22
22
|
|
|
23
23
|
function ResourceItemField(_ref) {
|
|
@@ -252,7 +252,7 @@ function ResourceItemField(_ref) {
|
|
|
252
252
|
setFormOpen(false);
|
|
253
253
|
}, [onChange, multiple, value, setFormOpen, resourceType]);
|
|
254
254
|
var onOpenList = useCallback(function () {
|
|
255
|
-
setListOpen(false); // TODO: fix this
|
|
255
|
+
setListOpen(false); // TODO: fix this, see Upload Field
|
|
256
256
|
}, [setListOpen]);
|
|
257
257
|
var onCloseList = useCallback(function () {
|
|
258
258
|
setListOpen(false);
|
|
@@ -387,7 +387,7 @@ function ResourceItemField(_ref) {
|
|
|
387
387
|
size: "lg",
|
|
388
388
|
onClose: onCloseForm,
|
|
389
389
|
children: form
|
|
390
|
-
}) : null, listOpen ? /*#__PURE__*/jsx(
|
|
390
|
+
}) : null, listOpen ? /*#__PURE__*/jsx(ModalResourceItems, {
|
|
391
391
|
resource: resourceId,
|
|
392
392
|
onClose: onCloseList,
|
|
393
393
|
listProps: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/field-resource-item",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.6",
|
|
4
4
|
"description": "An item mapping a resource",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -49,16 +49,16 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/runtime": "^7.12.5",
|
|
52
|
-
"@panneau/core": "^4.0.
|
|
53
|
-
"@panneau/data": "^4.0.
|
|
54
|
-
"@panneau/element-button": "^4.0.
|
|
55
|
-
"@panneau/element-resource-card": "^4.0.
|
|
56
|
-
"@panneau/element-select": "^4.0.
|
|
57
|
-
"@panneau/form-resource": "^4.0.
|
|
58
|
-
"@panneau/intl": "^4.0.
|
|
59
|
-
"@panneau/modal-dialog": "^4.0.
|
|
60
|
-
"@panneau/modal-resource-form": "^4.0.
|
|
61
|
-
"@panneau/modal-resource-items": "^4.0.
|
|
52
|
+
"@panneau/core": "^4.0.6",
|
|
53
|
+
"@panneau/data": "^4.0.6",
|
|
54
|
+
"@panneau/element-button": "^4.0.6",
|
|
55
|
+
"@panneau/element-resource-card": "^4.0.6",
|
|
56
|
+
"@panneau/element-select": "^4.0.6",
|
|
57
|
+
"@panneau/form-resource": "^4.0.6",
|
|
58
|
+
"@panneau/intl": "^4.0.6",
|
|
59
|
+
"@panneau/modal-dialog": "^4.0.6",
|
|
60
|
+
"@panneau/modal-resource-form": "^4.0.6",
|
|
61
|
+
"@panneau/modal-resource-items": "^4.0.6",
|
|
62
62
|
"classnames": "^2.5.1",
|
|
63
63
|
"lodash-es": "^4.17.21",
|
|
64
64
|
"prop-types": "^15.7.2",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "bd99a563382eeec6e02a9aca4f3b0ea38ce5efe1"
|
|
71
71
|
}
|