@panneau/medias 3.0.213 → 3.0.215
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 +11 -3
- package/lib/index.js +11 -3
- package/package.json +17 -17
package/es/index.js
CHANGED
@@ -384,6 +384,7 @@ var propTypes$7 = {
|
|
384
384
|
onSave: PropTypes.func,
|
385
385
|
onDelete: PropTypes.func,
|
386
386
|
onClose: PropTypes.func,
|
387
|
+
withDelete: PropTypes.bool,
|
387
388
|
withTrash: PropTypes.bool,
|
388
389
|
className: PropTypes.string,
|
389
390
|
children: PropTypes.node
|
@@ -395,6 +396,7 @@ var defaultProps$7 = {
|
|
395
396
|
onSave: null,
|
396
397
|
onDelete: null,
|
397
398
|
onClose: null,
|
399
|
+
withDelete: false,
|
398
400
|
withTrash: false,
|
399
401
|
className: null,
|
400
402
|
children: null
|
@@ -406,6 +408,7 @@ function MediaForm(_ref) {
|
|
406
408
|
onSave = _ref.onSave,
|
407
409
|
onDelete = _ref.onDelete,
|
408
410
|
onClose = _ref.onClose,
|
411
|
+
withDelete = _ref.withDelete,
|
409
412
|
withTrash = _ref.withTrash,
|
410
413
|
className = _ref.className,
|
411
414
|
children = _ref.children;
|
@@ -513,7 +516,7 @@ function MediaForm(_ref) {
|
|
513
516
|
className: "d-inline text-truncate mb-0"
|
514
517
|
}, name), /*#__PURE__*/React.createElement("span", {
|
515
518
|
className: "mx-2"
|
516
|
-
}, type)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
519
|
+
}, type)), /*#__PURE__*/React.createElement("div", null, withDelete ? /*#__PURE__*/React.createElement(Button, {
|
517
520
|
className: "me-2 mb-1 mt-1",
|
518
521
|
theme: "danger",
|
519
522
|
icon: withTrash && deletedAt !== null ? 'trash-fill' : 'trash',
|
@@ -532,7 +535,7 @@ function MediaForm(_ref) {
|
|
532
535
|
"type": 0,
|
533
536
|
"value": "Delete"
|
534
537
|
}]
|
535
|
-
})), onSave !== null ? /*#__PURE__*/React.createElement(Button, {
|
538
|
+
})) : null, onSave !== null ? /*#__PURE__*/React.createElement(Button, {
|
536
539
|
className: "mb-1 mt-1",
|
537
540
|
theme: "primary",
|
538
541
|
icon: changed ? 'check' : 'check',
|
@@ -729,7 +732,7 @@ var defaultColumns = [{
|
|
729
732
|
"value": "Actions"
|
730
733
|
}]
|
731
734
|
}),
|
732
|
-
actions: ['edit'
|
735
|
+
actions: ['edit']
|
733
736
|
// component: ItemActions,
|
734
737
|
// label: 'Edit',
|
735
738
|
// url: '/edit/1',
|
@@ -841,6 +844,7 @@ var propTypes$5 = {
|
|
841
844
|
onSelectionChange: PropTypes.func,
|
842
845
|
multipleSelection: PropTypes.bool,
|
843
846
|
uppyConfig: PropTypes.shape({}),
|
847
|
+
withDelete: PropTypes.bool,
|
844
848
|
withTrash: PropTypes.bool,
|
845
849
|
withStickySelection: PropTypes.bool,
|
846
850
|
withoutUpload: PropTypes.bool,
|
@@ -879,6 +883,7 @@ var defaultProps$5 = {
|
|
879
883
|
onSelectionChange: null,
|
880
884
|
multipleSelection: false,
|
881
885
|
uppyConfig: null,
|
886
|
+
withDelete: false,
|
882
887
|
withTrash: false,
|
883
888
|
withStickySelection: false,
|
884
889
|
withoutUpload: false,
|
@@ -907,6 +912,7 @@ function MediasBrowser(_ref) {
|
|
907
912
|
onSelectionChange = _ref.onSelectionChange,
|
908
913
|
multipleSelection = _ref.multipleSelection,
|
909
914
|
uppyConfig = _ref.uppyConfig,
|
915
|
+
withDelete = _ref.withDelete,
|
910
916
|
withTrash = _ref.withTrash,
|
911
917
|
withStickySelection = _ref.withStickySelection,
|
912
918
|
withoutUpload = _ref.withoutUpload,
|
@@ -1215,6 +1221,7 @@ function MediasBrowser(_ref) {
|
|
1215
1221
|
onSave: onSaveMedia,
|
1216
1222
|
onClose: onCloseMedia,
|
1217
1223
|
onDelete: onDeleteMedia,
|
1224
|
+
withDelete: withDelete,
|
1218
1225
|
withTrash: withTrash
|
1219
1226
|
}, formChildren) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
1220
1227
|
className: classNames(['d-flex', 'justify-content-between'])
|
@@ -1235,6 +1242,7 @@ function MediasBrowser(_ref) {
|
|
1235
1242
|
onChange: onUploadComplete,
|
1236
1243
|
disabled: uploadProcessing,
|
1237
1244
|
loading: uploadProcessing,
|
1245
|
+
outline: false,
|
1238
1246
|
closeAfterFinish: true
|
1239
1247
|
}) : null), /*#__PURE__*/React.createElement("div", {
|
1240
1248
|
className: classNames(['d-flex', 'mt-1', 'mb-3', {
|
package/lib/index.js
CHANGED
@@ -386,6 +386,7 @@ var propTypes$7 = {
|
|
386
386
|
onSave: PropTypes.func,
|
387
387
|
onDelete: PropTypes.func,
|
388
388
|
onClose: PropTypes.func,
|
389
|
+
withDelete: PropTypes.bool,
|
389
390
|
withTrash: PropTypes.bool,
|
390
391
|
className: PropTypes.string,
|
391
392
|
children: PropTypes.node
|
@@ -397,6 +398,7 @@ var defaultProps$7 = {
|
|
397
398
|
onSave: null,
|
398
399
|
onDelete: null,
|
399
400
|
onClose: null,
|
401
|
+
withDelete: false,
|
400
402
|
withTrash: false,
|
401
403
|
className: null,
|
402
404
|
children: null
|
@@ -408,6 +410,7 @@ function MediaForm(_ref) {
|
|
408
410
|
onSave = _ref.onSave,
|
409
411
|
onDelete = _ref.onDelete,
|
410
412
|
onClose = _ref.onClose,
|
413
|
+
withDelete = _ref.withDelete,
|
411
414
|
withTrash = _ref.withTrash,
|
412
415
|
className = _ref.className,
|
413
416
|
children = _ref.children;
|
@@ -515,7 +518,7 @@ function MediaForm(_ref) {
|
|
515
518
|
className: "d-inline text-truncate mb-0"
|
516
519
|
}, name), /*#__PURE__*/React.createElement("span", {
|
517
520
|
className: "mx-2"
|
518
|
-
}, type)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
521
|
+
}, type)), /*#__PURE__*/React.createElement("div", null, withDelete ? /*#__PURE__*/React.createElement(Button, {
|
519
522
|
className: "me-2 mb-1 mt-1",
|
520
523
|
theme: "danger",
|
521
524
|
icon: withTrash && deletedAt !== null ? 'trash-fill' : 'trash',
|
@@ -534,7 +537,7 @@ function MediaForm(_ref) {
|
|
534
537
|
"type": 0,
|
535
538
|
"value": "Delete"
|
536
539
|
}]
|
537
|
-
})), onSave !== null ? /*#__PURE__*/React.createElement(Button, {
|
540
|
+
})) : null, onSave !== null ? /*#__PURE__*/React.createElement(Button, {
|
538
541
|
className: "mb-1 mt-1",
|
539
542
|
theme: "primary",
|
540
543
|
icon: changed ? 'check' : 'check',
|
@@ -731,7 +734,7 @@ var defaultColumns = [{
|
|
731
734
|
"value": "Actions"
|
732
735
|
}]
|
733
736
|
}),
|
734
|
-
actions: ['edit'
|
737
|
+
actions: ['edit']
|
735
738
|
// component: ItemActions,
|
736
739
|
// label: 'Edit',
|
737
740
|
// url: '/edit/1',
|
@@ -843,6 +846,7 @@ var propTypes$5 = {
|
|
843
846
|
onSelectionChange: PropTypes.func,
|
844
847
|
multipleSelection: PropTypes.bool,
|
845
848
|
uppyConfig: PropTypes.shape({}),
|
849
|
+
withDelete: PropTypes.bool,
|
846
850
|
withTrash: PropTypes.bool,
|
847
851
|
withStickySelection: PropTypes.bool,
|
848
852
|
withoutUpload: PropTypes.bool,
|
@@ -881,6 +885,7 @@ var defaultProps$5 = {
|
|
881
885
|
onSelectionChange: null,
|
882
886
|
multipleSelection: false,
|
883
887
|
uppyConfig: null,
|
888
|
+
withDelete: false,
|
884
889
|
withTrash: false,
|
885
890
|
withStickySelection: false,
|
886
891
|
withoutUpload: false,
|
@@ -909,6 +914,7 @@ function MediasBrowser(_ref) {
|
|
909
914
|
onSelectionChange = _ref.onSelectionChange,
|
910
915
|
multipleSelection = _ref.multipleSelection,
|
911
916
|
uppyConfig = _ref.uppyConfig,
|
917
|
+
withDelete = _ref.withDelete,
|
912
918
|
withTrash = _ref.withTrash,
|
913
919
|
withStickySelection = _ref.withStickySelection,
|
914
920
|
withoutUpload = _ref.withoutUpload,
|
@@ -1217,6 +1223,7 @@ function MediasBrowser(_ref) {
|
|
1217
1223
|
onSave: onSaveMedia,
|
1218
1224
|
onClose: onCloseMedia,
|
1219
1225
|
onDelete: onDeleteMedia,
|
1226
|
+
withDelete: withDelete,
|
1220
1227
|
withTrash: withTrash
|
1221
1228
|
}, formChildren) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
1222
1229
|
className: classNames(['d-flex', 'justify-content-between'])
|
@@ -1237,6 +1244,7 @@ function MediasBrowser(_ref) {
|
|
1237
1244
|
onChange: onUploadComplete,
|
1238
1245
|
disabled: uploadProcessing,
|
1239
1246
|
loading: uploadProcessing,
|
1247
|
+
outline: false,
|
1240
1248
|
closeAfterFinish: true
|
1241
1249
|
}) : null), /*#__PURE__*/React.createElement("div", {
|
1242
1250
|
className: classNames(['d-flex', 'mt-1', 'mb-3', {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@panneau/medias",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.215",
|
4
4
|
"description": "",
|
5
5
|
"keywords": [
|
6
6
|
"javascript"
|
@@ -46,21 +46,21 @@
|
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
48
|
"@babel/runtime": "^7.12.5",
|
49
|
-
"@panneau/core": "^3.0.
|
50
|
-
"@panneau/data": "^3.0.
|
51
|
-
"@panneau/display-image": "^3.0.
|
52
|
-
"@panneau/element-button": "^3.0.
|
53
|
-
"@panneau/element-buttons": "^3.0.
|
54
|
-
"@panneau/element-form": "^3.0.
|
55
|
-
"@panneau/element-form-status": "^3.0.
|
56
|
-
"@panneau/element-grid": "^3.0.
|
57
|
-
"@panneau/element-icon": "^3.0.
|
58
|
-
"@panneau/element-media-card": "^3.0.
|
59
|
-
"@panneau/element-media-player": "^3.0.
|
60
|
-
"@panneau/element-pagination": "^3.0.
|
61
|
-
"@panneau/element-table": "^3.0.
|
62
|
-
"@panneau/field-upload": "^3.0.
|
63
|
-
"@panneau/filter-filters": "^3.0.
|
49
|
+
"@panneau/core": "^3.0.215",
|
50
|
+
"@panneau/data": "^3.0.215",
|
51
|
+
"@panneau/display-image": "^3.0.215",
|
52
|
+
"@panneau/element-button": "^3.0.215",
|
53
|
+
"@panneau/element-buttons": "^3.0.215",
|
54
|
+
"@panneau/element-form": "^3.0.215",
|
55
|
+
"@panneau/element-form-status": "^3.0.215",
|
56
|
+
"@panneau/element-grid": "^3.0.215",
|
57
|
+
"@panneau/element-icon": "^3.0.215",
|
58
|
+
"@panneau/element-media-card": "^3.0.215",
|
59
|
+
"@panneau/element-media-player": "^3.0.215",
|
60
|
+
"@panneau/element-pagination": "^3.0.215",
|
61
|
+
"@panneau/element-table": "^3.0.215",
|
62
|
+
"@panneau/field-upload": "^3.0.215",
|
63
|
+
"@panneau/filter-filters": "^3.0.215",
|
64
64
|
"classnames": "^2.5.1",
|
65
65
|
"lodash": "^4.17.21",
|
66
66
|
"prop-types": "^15.7.2",
|
@@ -69,5 +69,5 @@
|
|
69
69
|
"publishConfig": {
|
70
70
|
"access": "public"
|
71
71
|
},
|
72
|
-
"gitHead": "
|
72
|
+
"gitHead": "c7bcfdc9627d4b224ac1d046966e0ec3985db229"
|
73
73
|
}
|