@panneau/medias 3.0.130 → 3.0.133
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 +58 -18
- package/lib/index.js +58 -18
- package/package.json +13 -13
package/es/index.js
CHANGED
@@ -162,6 +162,18 @@ var useMediaUpdate = function useMediaUpdate() {
|
|
162
162
|
var useMediaUpdate$1 = useMediaUpdate;
|
163
163
|
|
164
164
|
var defaultColumns = [{
|
165
|
+
id: 'image',
|
166
|
+
label: /*#__PURE__*/React.createElement(FormattedMessage, {
|
167
|
+
id: "UbxbKP",
|
168
|
+
defaultMessage: [{
|
169
|
+
"type": 0,
|
170
|
+
"value": "Preview"
|
171
|
+
}]
|
172
|
+
}),
|
173
|
+
component: 'image',
|
174
|
+
path: 'thumbnail_url',
|
175
|
+
sortable: false
|
176
|
+
}, {
|
165
177
|
id: 'name',
|
166
178
|
label: /*#__PURE__*/React.createElement(FormattedMessage, {
|
167
179
|
id: "WX83V9",
|
@@ -170,10 +182,40 @@ var defaultColumns = [{
|
|
170
182
|
"value": "File name"
|
171
183
|
}]
|
172
184
|
}),
|
173
|
-
component: 'text',
|
185
|
+
component: 'text-description',
|
174
186
|
path: 'name',
|
175
|
-
|
176
|
-
|
187
|
+
descriptionPath: 'type',
|
188
|
+
descriptionValues: {
|
189
|
+
image: /*#__PURE__*/React.createElement(FormattedMessage, {
|
190
|
+
id: "AwDQvD",
|
191
|
+
defaultMessage: [{
|
192
|
+
"type": 0,
|
193
|
+
"value": "Image"
|
194
|
+
}]
|
195
|
+
}),
|
196
|
+
video: /*#__PURE__*/React.createElement(FormattedMessage, {
|
197
|
+
id: "mQiyAm",
|
198
|
+
defaultMessage: [{
|
199
|
+
"type": 0,
|
200
|
+
"value": "Video"
|
201
|
+
}]
|
202
|
+
}),
|
203
|
+
audio: /*#__PURE__*/React.createElement(FormattedMessage, {
|
204
|
+
id: "XnyI69",
|
205
|
+
defaultMessage: [{
|
206
|
+
"type": 0,
|
207
|
+
"value": "Audio"
|
208
|
+
}]
|
209
|
+
}),
|
210
|
+
document: /*#__PURE__*/React.createElement(FormattedMessage, {
|
211
|
+
id: "1dqmFw",
|
212
|
+
defaultMessage: [{
|
213
|
+
"type": 0,
|
214
|
+
"value": "Document"
|
215
|
+
}]
|
216
|
+
})
|
217
|
+
},
|
218
|
+
sortable: true
|
177
219
|
}, {
|
178
220
|
id: 'created_at',
|
179
221
|
label: /*#__PURE__*/React.createElement(FormattedMessage, {
|
@@ -183,8 +225,9 @@ var defaultColumns = [{
|
|
183
225
|
"value": "Created at"
|
184
226
|
}]
|
185
227
|
}),
|
186
|
-
component: '
|
228
|
+
component: 'date',
|
187
229
|
path: 'created_at',
|
230
|
+
format: 'yyyy-MM-dd hh:ss',
|
188
231
|
sortable: true
|
189
232
|
}, {
|
190
233
|
id: 'dimensions',
|
@@ -231,20 +274,17 @@ var defaultColumns = [{
|
|
231
274
|
"value": "Added by"
|
232
275
|
}]
|
233
276
|
}),
|
234
|
-
component: '
|
235
|
-
path: 'metadata.author
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
component: 'text',
|
246
|
-
path: 'metadata.status'
|
247
|
-
}];
|
277
|
+
component: 'avatar',
|
278
|
+
path: 'metadata.author',
|
279
|
+
namePath: 'name'
|
280
|
+
}
|
281
|
+
// {
|
282
|
+
// id: 'status',
|
283
|
+
// label: <FormattedMessage defaultMessage="Status" description="Field name" />,
|
284
|
+
// component: 'text',
|
285
|
+
// path: 'metadata.status',
|
286
|
+
// },
|
287
|
+
];
|
248
288
|
|
249
289
|
var defaultFilters = [{
|
250
290
|
id: 'type',
|
package/lib/index.js
CHANGED
@@ -166,6 +166,18 @@ var useMediaUpdate = function useMediaUpdate() {
|
|
166
166
|
var useMediaUpdate$1 = useMediaUpdate;
|
167
167
|
|
168
168
|
var defaultColumns = [{
|
169
|
+
id: 'image',
|
170
|
+
label: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
171
|
+
id: "UbxbKP",
|
172
|
+
defaultMessage: [{
|
173
|
+
"type": 0,
|
174
|
+
"value": "Preview"
|
175
|
+
}]
|
176
|
+
}),
|
177
|
+
component: 'image',
|
178
|
+
path: 'thumbnail_url',
|
179
|
+
sortable: false
|
180
|
+
}, {
|
169
181
|
id: 'name',
|
170
182
|
label: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
171
183
|
id: "WX83V9",
|
@@ -174,10 +186,40 @@ var defaultColumns = [{
|
|
174
186
|
"value": "File name"
|
175
187
|
}]
|
176
188
|
}),
|
177
|
-
component: 'text',
|
189
|
+
component: 'text-description',
|
178
190
|
path: 'name',
|
179
|
-
|
180
|
-
|
191
|
+
descriptionPath: 'type',
|
192
|
+
descriptionValues: {
|
193
|
+
image: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
194
|
+
id: "AwDQvD",
|
195
|
+
defaultMessage: [{
|
196
|
+
"type": 0,
|
197
|
+
"value": "Image"
|
198
|
+
}]
|
199
|
+
}),
|
200
|
+
video: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
201
|
+
id: "mQiyAm",
|
202
|
+
defaultMessage: [{
|
203
|
+
"type": 0,
|
204
|
+
"value": "Video"
|
205
|
+
}]
|
206
|
+
}),
|
207
|
+
audio: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
208
|
+
id: "XnyI69",
|
209
|
+
defaultMessage: [{
|
210
|
+
"type": 0,
|
211
|
+
"value": "Audio"
|
212
|
+
}]
|
213
|
+
}),
|
214
|
+
document: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
215
|
+
id: "1dqmFw",
|
216
|
+
defaultMessage: [{
|
217
|
+
"type": 0,
|
218
|
+
"value": "Document"
|
219
|
+
}]
|
220
|
+
})
|
221
|
+
},
|
222
|
+
sortable: true
|
181
223
|
}, {
|
182
224
|
id: 'created_at',
|
183
225
|
label: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
@@ -187,8 +229,9 @@ var defaultColumns = [{
|
|
187
229
|
"value": "Created at"
|
188
230
|
}]
|
189
231
|
}),
|
190
|
-
component: '
|
232
|
+
component: 'date',
|
191
233
|
path: 'created_at',
|
234
|
+
format: 'yyyy-MM-dd hh:ss',
|
192
235
|
sortable: true
|
193
236
|
}, {
|
194
237
|
id: 'dimensions',
|
@@ -235,20 +278,17 @@ var defaultColumns = [{
|
|
235
278
|
"value": "Added by"
|
236
279
|
}]
|
237
280
|
}),
|
238
|
-
component: '
|
239
|
-
path: 'metadata.author
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
component: 'text',
|
250
|
-
path: 'metadata.status'
|
251
|
-
}];
|
281
|
+
component: 'avatar',
|
282
|
+
path: 'metadata.author',
|
283
|
+
namePath: 'name'
|
284
|
+
}
|
285
|
+
// {
|
286
|
+
// id: 'status',
|
287
|
+
// label: <FormattedMessage defaultMessage="Status" description="Field name" />,
|
288
|
+
// component: 'text',
|
289
|
+
// path: 'metadata.status',
|
290
|
+
// },
|
291
|
+
];
|
252
292
|
|
253
293
|
var defaultFilters = [{
|
254
294
|
id: 'type',
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@panneau/medias",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.133",
|
4
4
|
"description": "",
|
5
5
|
"keywords": [
|
6
6
|
"javascript"
|
@@ -46,17 +46,17 @@
|
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
48
|
"@babel/runtime": "^7.12.5",
|
49
|
-
"@panneau/core": "^3.0.
|
50
|
-
"@panneau/data": "^3.0.
|
51
|
-
"@panneau/element-button": "^3.0.
|
52
|
-
"@panneau/element-buttons": "^3.0.
|
53
|
-
"@panneau/element-grid": "^3.0.
|
54
|
-
"@panneau/element-icon": "^3.0.
|
55
|
-
"@panneau/element-media-card": "^3.0.
|
56
|
-
"@panneau/element-pagination": "^3.0.
|
57
|
-
"@panneau/element-table": "^3.0.
|
58
|
-
"@panneau/filter-filters": "^3.0.
|
59
|
-
"classnames": "^2.
|
49
|
+
"@panneau/core": "^3.0.133",
|
50
|
+
"@panneau/data": "^3.0.133",
|
51
|
+
"@panneau/element-button": "^3.0.133",
|
52
|
+
"@panneau/element-buttons": "^3.0.133",
|
53
|
+
"@panneau/element-grid": "^3.0.133",
|
54
|
+
"@panneau/element-icon": "^3.0.133",
|
55
|
+
"@panneau/element-media-card": "^3.0.133",
|
56
|
+
"@panneau/element-pagination": "^3.0.133",
|
57
|
+
"@panneau/element-table": "^3.0.133",
|
58
|
+
"@panneau/filter-filters": "^3.0.133",
|
59
|
+
"classnames": "^2.5.1",
|
60
60
|
"lodash": "^4.17.21",
|
61
61
|
"prop-types": "^15.7.2",
|
62
62
|
"react-intl": "^5.15.8||^6.0.0"
|
@@ -64,5 +64,5 @@
|
|
64
64
|
"publishConfig": {
|
65
65
|
"access": "public"
|
66
66
|
},
|
67
|
-
"gitHead": "
|
67
|
+
"gitHead": "75cf7713976a4b1c04991285984ab634f767b4e6"
|
68
68
|
}
|