@panneau/medias 3.0.246 → 3.0.248

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.
Files changed (2) hide show
  1. package/es/index.js +18 -3
  2. package/package.json +4 -4
package/es/index.js CHANGED
@@ -263,7 +263,22 @@ var defaultFields = [{
263
263
  }),
264
264
  type: 'text',
265
265
  component: 'text'
266
- }, {
266
+ },
267
+ // Creatable example
268
+ // {
269
+ // name: 'tags',
270
+ // label: <FormattedMessage defaultMessage="Tags" description="Field name" />,
271
+ // type: 'array',
272
+ // component: 'select',
273
+ // requestUrl: '/api/tags',
274
+ // optionLabelPath: 'label',
275
+ // optionValuePath: 'id', // Uses taggable so change the logic here
276
+ // valueIsOption: true,
277
+ // multiple: true,
278
+ // paginated: false,
279
+ // creatable: true, // TODO
280
+ // },
281
+ {
267
282
  id: 'info',
268
283
  component: 'fields',
269
284
  label: /*#__PURE__*/React.createElement(FormattedMessage, {
@@ -1341,7 +1356,7 @@ function MediasBrowser(_ref) {
1341
1356
  onOpenMedia(it);
1342
1357
  }
1343
1358
  },
1344
- selectable: selectable,
1359
+ selectable: selectable && !showTrashed,
1345
1360
  selectedItems: selectedItems,
1346
1361
  onSelectionChange: uploadProcessing ? null : onSelectionChange,
1347
1362
  multipleSelection: multipleSelection,
@@ -1358,7 +1373,7 @@ function MediasBrowser(_ref) {
1358
1373
  displayPlaceholder: /*#__PURE__*/React.createElement("span", {
1359
1374
  className: "text-secondary text-opacity-75"
1360
1375
  }, "\u2014"),
1361
- selectable: selectable,
1376
+ selectable: selectable && !showTrashed,
1362
1377
  selectedItems: selectedItems,
1363
1378
  onSelectionChange: uploadProcessing ? null : onSelectionChange,
1364
1379
  multipleSelection: multipleSelection,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/medias",
3
- "version": "3.0.246",
3
+ "version": "3.0.248",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -64,8 +64,8 @@
64
64
  "@panneau/element-media-player": "^3.0.244",
65
65
  "@panneau/element-pagination": "^3.0.244",
66
66
  "@panneau/element-table": "^3.0.244",
67
- "@panneau/field-upload": "^3.0.245",
68
- "@panneau/filter-filters": "^3.0.244",
67
+ "@panneau/field-upload": "^3.0.248",
68
+ "@panneau/filter-filters": "^3.0.248",
69
69
  "classnames": "^2.5.1",
70
70
  "lodash": "^4.17.21",
71
71
  "prop-types": "^15.7.2",
@@ -74,5 +74,5 @@
74
74
  "publishConfig": {
75
75
  "access": "public"
76
76
  },
77
- "gitHead": "ff4eb6478ed963f29c9686e4463ffbf4d3791bcb"
77
+ "gitHead": "d3e8e2a73c98ba9389a62f6f28fda85c6d302a83"
78
78
  }