@panneau/medias 3.0.150 → 3.0.152
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 +35 -6
- package/lib/index.js +35 -6
- package/package.json +15 -15
package/es/index.js
CHANGED
@@ -779,6 +779,15 @@ var defaultFilters = [{
|
|
779
779
|
}]
|
780
780
|
}),
|
781
781
|
value: 'audio'
|
782
|
+
}, {
|
783
|
+
label: /*#__PURE__*/React.createElement(FormattedMessage, {
|
784
|
+
id: "8INLfU",
|
785
|
+
defaultMessage: [{
|
786
|
+
"type": 0,
|
787
|
+
"value": "Document"
|
788
|
+
}]
|
789
|
+
}),
|
790
|
+
value: 'document'
|
782
791
|
}],
|
783
792
|
multiple: true
|
784
793
|
}, {
|
@@ -822,6 +831,14 @@ var propTypes$5 = {
|
|
822
831
|
query: PropTypes.shape({}),
|
823
832
|
baseUrl: PropTypes.string,
|
824
833
|
fields: PropTypes$1.fields,
|
834
|
+
metadatas: PropTypes.shape({
|
835
|
+
sections: PropTypes.arrayOf(PropTypes.shape({
|
836
|
+
id: PropTypes.string
|
837
|
+
})),
|
838
|
+
displays: PropTypes.arrayOf(PropTypes.shape({
|
839
|
+
id: PropTypes.string
|
840
|
+
}))
|
841
|
+
}),
|
825
842
|
layout: PropTypes.string,
|
826
843
|
layouts: PropTypes.arrayOf(PropTypes.shape({})),
|
827
844
|
theme: PropTypes.string,
|
@@ -839,6 +856,10 @@ var defaultProps$5 = {
|
|
839
856
|
filters: defaultFilters,
|
840
857
|
columns: defaultColumns,
|
841
858
|
fields: defaultFields,
|
859
|
+
metadatas: {
|
860
|
+
sections: defaultSections,
|
861
|
+
displays: defaultDisplays
|
862
|
+
},
|
842
863
|
query: null,
|
843
864
|
baseUrl: null,
|
844
865
|
layout: 'table',
|
@@ -868,6 +889,8 @@ function MediasBrowser(_ref) {
|
|
868
889
|
buttons = _ref.buttons,
|
869
890
|
filters = _ref.filters,
|
870
891
|
columns = _ref.columns,
|
892
|
+
fields = _ref.fields,
|
893
|
+
metadatas = _ref.metadatas,
|
871
894
|
initialQuery = _ref.query,
|
872
895
|
initialLayout = _ref.layout,
|
873
896
|
layouts = _ref.layouts,
|
@@ -879,6 +902,9 @@ function MediasBrowser(_ref) {
|
|
879
902
|
selectedCount = _ref.selectedCount,
|
880
903
|
onClearSelected = _ref.onClearSelected,
|
881
904
|
className = _ref.className;
|
905
|
+
var _ref2 = metadatas || {},
|
906
|
+
sections = _ref2.sections,
|
907
|
+
displays = _ref2.displays;
|
882
908
|
var baseQuery = useMemo(function () {
|
883
909
|
return initialQuery;
|
884
910
|
}, [initialQuery]);
|
@@ -888,12 +914,12 @@ function MediasBrowser(_ref) {
|
|
888
914
|
onQueryChange = _useQuery.onQueryChange,
|
889
915
|
onQueryReset = _useQuery.onQueryReset;
|
890
916
|
var _useMemo = useMemo(function () {
|
891
|
-
var
|
892
|
-
|
893
|
-
fullQueryPage =
|
894
|
-
|
895
|
-
fullQueryCount =
|
896
|
-
params = _objectWithoutProperties(
|
917
|
+
var _ref3 = fullQuery || {},
|
918
|
+
_ref3$page = _ref3.page,
|
919
|
+
fullQueryPage = _ref3$page === void 0 ? null : _ref3$page,
|
920
|
+
_ref3$count = _ref3.count,
|
921
|
+
fullQueryCount = _ref3$count === void 0 ? null : _ref3$count,
|
922
|
+
params = _objectWithoutProperties(_ref3, _excluded$5);
|
897
923
|
return {
|
898
924
|
page: fullQueryPage,
|
899
925
|
count: fullQueryCount,
|
@@ -972,6 +998,9 @@ function MediasBrowser(_ref) {
|
|
972
998
|
}]
|
973
999
|
}))), /*#__PURE__*/React.createElement(MediaForm, {
|
974
1000
|
value: media,
|
1001
|
+
fields: fields,
|
1002
|
+
sections: sections,
|
1003
|
+
displays: displays,
|
975
1004
|
onClose: onCloseMedia
|
976
1005
|
})) : /*#__PURE__*/React.createElement(React.Fragment, null, buttons !== null ? /*#__PURE__*/React.createElement(Buttons, {
|
977
1006
|
items: buttons,
|
package/lib/index.js
CHANGED
@@ -781,6 +781,15 @@ var defaultFilters = [{
|
|
781
781
|
}]
|
782
782
|
}),
|
783
783
|
value: 'audio'
|
784
|
+
}, {
|
785
|
+
label: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
786
|
+
id: "8INLfU",
|
787
|
+
defaultMessage: [{
|
788
|
+
"type": 0,
|
789
|
+
"value": "Document"
|
790
|
+
}]
|
791
|
+
}),
|
792
|
+
value: 'document'
|
784
793
|
}],
|
785
794
|
multiple: true
|
786
795
|
}, {
|
@@ -824,6 +833,14 @@ var propTypes$5 = {
|
|
824
833
|
query: PropTypes.shape({}),
|
825
834
|
baseUrl: PropTypes.string,
|
826
835
|
fields: core.PropTypes.fields,
|
836
|
+
metadatas: PropTypes.shape({
|
837
|
+
sections: PropTypes.arrayOf(PropTypes.shape({
|
838
|
+
id: PropTypes.string
|
839
|
+
})),
|
840
|
+
displays: PropTypes.arrayOf(PropTypes.shape({
|
841
|
+
id: PropTypes.string
|
842
|
+
}))
|
843
|
+
}),
|
827
844
|
layout: PropTypes.string,
|
828
845
|
layouts: PropTypes.arrayOf(PropTypes.shape({})),
|
829
846
|
theme: PropTypes.string,
|
@@ -841,6 +858,10 @@ var defaultProps$5 = {
|
|
841
858
|
filters: defaultFilters,
|
842
859
|
columns: defaultColumns,
|
843
860
|
fields: defaultFields,
|
861
|
+
metadatas: {
|
862
|
+
sections: defaultSections,
|
863
|
+
displays: defaultDisplays
|
864
|
+
},
|
844
865
|
query: null,
|
845
866
|
baseUrl: null,
|
846
867
|
layout: 'table',
|
@@ -870,6 +891,8 @@ function MediasBrowser(_ref) {
|
|
870
891
|
buttons = _ref.buttons,
|
871
892
|
filters = _ref.filters,
|
872
893
|
columns = _ref.columns,
|
894
|
+
fields = _ref.fields,
|
895
|
+
metadatas = _ref.metadatas,
|
873
896
|
initialQuery = _ref.query,
|
874
897
|
initialLayout = _ref.layout,
|
875
898
|
layouts = _ref.layouts,
|
@@ -881,6 +904,9 @@ function MediasBrowser(_ref) {
|
|
881
904
|
selectedCount = _ref.selectedCount,
|
882
905
|
onClearSelected = _ref.onClearSelected,
|
883
906
|
className = _ref.className;
|
907
|
+
var _ref2 = metadatas || {},
|
908
|
+
sections = _ref2.sections,
|
909
|
+
displays = _ref2.displays;
|
884
910
|
var baseQuery = React.useMemo(function () {
|
885
911
|
return initialQuery;
|
886
912
|
}, [initialQuery]);
|
@@ -890,12 +916,12 @@ function MediasBrowser(_ref) {
|
|
890
916
|
onQueryChange = _useQuery.onQueryChange,
|
891
917
|
onQueryReset = _useQuery.onQueryReset;
|
892
918
|
var _useMemo = React.useMemo(function () {
|
893
|
-
var
|
894
|
-
|
895
|
-
fullQueryPage =
|
896
|
-
|
897
|
-
fullQueryCount =
|
898
|
-
params = _objectWithoutProperties(
|
919
|
+
var _ref3 = fullQuery || {},
|
920
|
+
_ref3$page = _ref3.page,
|
921
|
+
fullQueryPage = _ref3$page === void 0 ? null : _ref3$page,
|
922
|
+
_ref3$count = _ref3.count,
|
923
|
+
fullQueryCount = _ref3$count === void 0 ? null : _ref3$count,
|
924
|
+
params = _objectWithoutProperties(_ref3, _excluded$5);
|
899
925
|
return {
|
900
926
|
page: fullQueryPage,
|
901
927
|
count: fullQueryCount,
|
@@ -974,6 +1000,9 @@ function MediasBrowser(_ref) {
|
|
974
1000
|
}]
|
975
1001
|
}))), /*#__PURE__*/React.createElement(MediaForm, {
|
976
1002
|
value: media,
|
1003
|
+
fields: fields,
|
1004
|
+
sections: sections,
|
1005
|
+
displays: displays,
|
977
1006
|
onClose: onCloseMedia
|
978
1007
|
})) : /*#__PURE__*/React.createElement(React.Fragment, null, buttons !== null ? /*#__PURE__*/React.createElement(Buttons, {
|
979
1008
|
items: buttons,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@panneau/medias",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.152",
|
4
4
|
"description": "",
|
5
5
|
"keywords": [
|
6
6
|
"javascript"
|
@@ -46,19 +46,19 @@
|
|
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-form": "^3.0.
|
54
|
-
"@panneau/element-grid": "^3.0.
|
55
|
-
"@panneau/element-icon": "^3.0.
|
56
|
-
"@panneau/element-media-card": "^3.0.
|
57
|
-
"@panneau/element-media-player": "^3.0.
|
58
|
-
"@panneau/element-media-preview": "^3.0.
|
59
|
-
"@panneau/element-pagination": "^3.0.
|
60
|
-
"@panneau/element-table": "^3.0.
|
61
|
-
"@panneau/filter-filters": "^3.0.
|
49
|
+
"@panneau/core": "^3.0.152",
|
50
|
+
"@panneau/data": "^3.0.152",
|
51
|
+
"@panneau/element-button": "^3.0.152",
|
52
|
+
"@panneau/element-buttons": "^3.0.152",
|
53
|
+
"@panneau/element-form": "^3.0.152",
|
54
|
+
"@panneau/element-grid": "^3.0.152",
|
55
|
+
"@panneau/element-icon": "^3.0.152",
|
56
|
+
"@panneau/element-media-card": "^3.0.152",
|
57
|
+
"@panneau/element-media-player": "^3.0.152",
|
58
|
+
"@panneau/element-media-preview": "^3.0.152",
|
59
|
+
"@panneau/element-pagination": "^3.0.152",
|
60
|
+
"@panneau/element-table": "^3.0.152",
|
61
|
+
"@panneau/filter-filters": "^3.0.152",
|
62
62
|
"classnames": "^2.5.1",
|
63
63
|
"lodash": "^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": "a42fc2c7e7dc36502823846954bc2a3f20f164f6"
|
71
71
|
}
|