@vidispine/vdt-materialui 22.3.0-pre.1 → 22.3.0-pre.2
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/dist/index.es.js +60 -8
- package/dist/index.js +59 -7
- package/package.json +10 -10
package/dist/index.es.js
CHANGED
|
@@ -47,7 +47,7 @@ import Paper from '@material-ui/core/Paper';
|
|
|
47
47
|
import { parseFacetType, parseNowDate, formatSeconds, roles, parseShapeType, parseTranscodePreset, parseTimespan, formatTimeBase, formatSmpte, createMetadataType, formatTimeCodeText, formatTimeCodeType, parseMetadataType, parseAudioComponent, parseContainerComponent, parseVideoComponent, parseSimpleMetadataType, findNearestThumbnail, parseHighlightTimespanList, metadataTypeToWebVtt, filterShapeSource, getShapeMediaType, getDocumentType } from '@vidispine/vdt-js';
|
|
48
48
|
import IconButton from '@material-ui/core/IconButton';
|
|
49
49
|
import CancelIcon from '@material-ui/icons/Cancel';
|
|
50
|
-
import { Cancel, CheckCircle, Replay, ExpandLess, Label, Search, Delete, Block, ExpandMore, Folder, Wallpaper, Add, Visibility as Visibility$1, VisibilityOff as VisibilityOff$1 } from '@material-ui/icons';
|
|
50
|
+
import { Cancel, CheckCircle, Replay, ExpandLess, Label, Search, Delete, Block, ExpandMore, Folder, ArrowDropUp, ArrowDropDown, Wallpaper, Add, Visibility as Visibility$1, VisibilityOff as VisibilityOff$1 } from '@material-ui/icons';
|
|
51
51
|
import moment from 'moment';
|
|
52
52
|
import { red, green, grey as grey$1 } from '@material-ui/core/colors';
|
|
53
53
|
import Chip$1 from '@material-ui/core/Chip';
|
|
@@ -9274,7 +9274,8 @@ var toCapsCase$1 = function toCapsCase(string) {
|
|
|
9274
9274
|
function EntityAccessMenu(_ref) {
|
|
9275
9275
|
var _ref$className = _ref.className,
|
|
9276
9276
|
className = _ref$className === void 0 ? 'VdtEntityAccessMenu-root' : _ref$className,
|
|
9277
|
-
classes = _ref.classes,
|
|
9277
|
+
_ref$classes = _ref.classes,
|
|
9278
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
9278
9279
|
onRemove = _ref.onRemove,
|
|
9279
9280
|
accessType = _ref.accessType,
|
|
9280
9281
|
entityType = _ref.entityType,
|
|
@@ -20625,6 +20626,8 @@ function SearchInput(_ref2) {
|
|
|
20625
20626
|
onChange = _ref2.onChange,
|
|
20626
20627
|
SuggestionsComponent = _ref2.SuggestionsComponent,
|
|
20627
20628
|
SuggestionsProps = _ref2.SuggestionsProps,
|
|
20629
|
+
TopSearchesComponent = _ref2.TopSearchesComponent,
|
|
20630
|
+
TopSearchesProps = _ref2.TopSearchesProps,
|
|
20628
20631
|
ButtonProps = _ref2.ButtonProps,
|
|
20629
20632
|
InputBaseProps = _ref2.InputBaseProps,
|
|
20630
20633
|
SearchIconComponent = _ref2.SearchIconComponent,
|
|
@@ -20645,6 +20648,12 @@ function SearchInput(_ref2) {
|
|
|
20645
20648
|
canClear = _useState6[0],
|
|
20646
20649
|
setCanClear = _useState6[1];
|
|
20647
20650
|
|
|
20651
|
+
useEffect(function () {
|
|
20652
|
+
if (defaultValue !== '') {
|
|
20653
|
+
setCanClear(true);
|
|
20654
|
+
}
|
|
20655
|
+
}, [defaultValue]);
|
|
20656
|
+
|
|
20648
20657
|
var handleOnChange = function handleOnChange(val) {
|
|
20649
20658
|
onChange(val);
|
|
20650
20659
|
setCanClear(inputRef.current.value.length > 0);
|
|
@@ -20682,7 +20691,17 @@ function SearchInput(_ref2) {
|
|
|
20682
20691
|
anchorEl = _useState8[0],
|
|
20683
20692
|
setAnchorEl = _useState8[1];
|
|
20684
20693
|
|
|
20694
|
+
var _useState9 = useState(false),
|
|
20695
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
20696
|
+
isTopSearchesOpen = _useState10[0],
|
|
20697
|
+
setIsTopSearchesOpen = _useState10[1];
|
|
20698
|
+
|
|
20685
20699
|
var suggestionsVisible = Boolean(anchorEl) && isFocused && canClear;
|
|
20700
|
+
var topSearchesVisible = Boolean(anchorEl) && isTopSearchesOpen;
|
|
20701
|
+
|
|
20702
|
+
var onOpenTopSearch = function onOpenTopSearch() {
|
|
20703
|
+
setIsTopSearchesOpen(!isTopSearchesOpen);
|
|
20704
|
+
};
|
|
20686
20705
|
|
|
20687
20706
|
var _useSuggestionsNaviga = useSuggestionsNavigation({
|
|
20688
20707
|
suggestions: suggestions,
|
|
@@ -20719,6 +20738,16 @@ function SearchInput(_ref2) {
|
|
|
20719
20738
|
children: [/*#__PURE__*/jsx(CloseIconComponent, {
|
|
20720
20739
|
className: canClear ? classes.closeButton : classes.closeButtonHidden,
|
|
20721
20740
|
onClick: onClear
|
|
20741
|
+
}), TopSearchesComponent && /*#__PURE__*/jsx(IconButton$1, {
|
|
20742
|
+
onClick: onOpenTopSearch,
|
|
20743
|
+
style: {
|
|
20744
|
+
borderRadius: '50%'
|
|
20745
|
+
},
|
|
20746
|
+
children: topSearchesVisible ? /*#__PURE__*/jsx(ArrowDropUp, {
|
|
20747
|
+
fontSize: "small"
|
|
20748
|
+
}) : /*#__PURE__*/jsx(ArrowDropDown, {
|
|
20749
|
+
fontSize: "small"
|
|
20750
|
+
})
|
|
20722
20751
|
}), /*#__PURE__*/jsx(Button$1, _objectSpread$1w(_objectSpread$1w({
|
|
20723
20752
|
size: "small",
|
|
20724
20753
|
type: "submit",
|
|
@@ -20741,7 +20770,9 @@ function SearchInput(_ref2) {
|
|
|
20741
20770
|
onHover: onHoverSuggestion,
|
|
20742
20771
|
focused: focusedSuggestion,
|
|
20743
20772
|
anchorEl: anchorEl
|
|
20744
|
-
}, SuggestionsProps))
|
|
20773
|
+
}, SuggestionsProps)), topSearchesVisible && TopSearchesComponent && /*#__PURE__*/jsx(TopSearchesComponent, _objectSpread$1w({
|
|
20774
|
+
anchorEl: anchorEl
|
|
20775
|
+
}, TopSearchesProps))]
|
|
20745
20776
|
});
|
|
20746
20777
|
}
|
|
20747
20778
|
SearchInput.propTypes = {
|
|
@@ -20758,6 +20789,8 @@ SearchInput.propTypes = {
|
|
|
20758
20789
|
onChange: PropTypes$1.func,
|
|
20759
20790
|
SuggestionsComponent: PropTypes$1.elementType,
|
|
20760
20791
|
SuggestionsProps: PropTypes$1.objectOf(PropTypes$1.any),
|
|
20792
|
+
TopSearchesComponent: PropTypes$1.elementType,
|
|
20793
|
+
TopSearchesProps: PropTypes$1.objectOf(PropTypes$1.any),
|
|
20761
20794
|
ButtonProps: PropTypes$1.objectOf(PropTypes$1.any),
|
|
20762
20795
|
InputBaseProps: PropTypes$1.objectOf(PropTypes$1.any),
|
|
20763
20796
|
SearchIconComponent: PropTypes$1.elementType,
|
|
@@ -20779,6 +20812,8 @@ SearchInput.defaultProps = {
|
|
|
20779
20812
|
onChange: function onChange() {},
|
|
20780
20813
|
SuggestionsComponent: null,
|
|
20781
20814
|
SuggestionsProps: {},
|
|
20815
|
+
TopSearchesComponent: null,
|
|
20816
|
+
TopSearchesProps: {},
|
|
20782
20817
|
ButtonProps: {},
|
|
20783
20818
|
InputBaseProps: {},
|
|
20784
20819
|
SearchIconComponent: SearchIcon,
|
|
@@ -28750,6 +28785,7 @@ var styles$10 = function styles(theme) {
|
|
|
28750
28785
|
disabled: {
|
|
28751
28786
|
opacity: 1
|
|
28752
28787
|
},
|
|
28788
|
+
menuContext: {},
|
|
28753
28789
|
menuExpand: {
|
|
28754
28790
|
minWidth: theme.breakpoints.values.sm / 2
|
|
28755
28791
|
},
|
|
@@ -28782,6 +28818,8 @@ function SavedSearchRow(_ref) {
|
|
|
28782
28818
|
disableDeletion = _ref.disableDeletion,
|
|
28783
28819
|
type = _ref.type,
|
|
28784
28820
|
accessTranslate = _ref.accessTranslate,
|
|
28821
|
+
_ref$extraMenuItems = _ref.extraMenuItems,
|
|
28822
|
+
extraMenuItems = _ref$extraMenuItems === void 0 ? [] : _ref$extraMenuItems,
|
|
28785
28823
|
_ref$isFolderRow = _ref.isFolderRow,
|
|
28786
28824
|
isFolderRow = _ref$isFolderRow === void 0 ? false : _ref$isFolderRow,
|
|
28787
28825
|
_ref$hideSubFolderSha = _ref.hideSubFolderSharing,
|
|
@@ -29074,7 +29112,17 @@ function SavedSearchRow(_ref) {
|
|
|
29074
29112
|
}) : null, /*#__PURE__*/jsx(ListItemText, {
|
|
29075
29113
|
primary: deleteText
|
|
29076
29114
|
})]
|
|
29077
|
-
}, 6)
|
|
29115
|
+
}, 6), extraMenuItems.map(function (item) {
|
|
29116
|
+
return /*#__PURE__*/jsxs(MenuItem, {
|
|
29117
|
+
dense: true,
|
|
29118
|
+
onClick: item["function"],
|
|
29119
|
+
children: [/*#__PURE__*/jsx(ListItemIcon$1, {
|
|
29120
|
+
children: /*#__PURE__*/jsx(item.icon, {})
|
|
29121
|
+
}), /*#__PURE__*/jsx(ListItemText, {
|
|
29122
|
+
primary: item.name
|
|
29123
|
+
})]
|
|
29124
|
+
});
|
|
29125
|
+
})]
|
|
29078
29126
|
})
|
|
29079
29127
|
}), /*#__PURE__*/jsx(Popover, {
|
|
29080
29128
|
open: expandedView !== null,
|
|
@@ -29121,7 +29169,7 @@ var SavedSearchRow$1 = withStyles(styles$10, {
|
|
|
29121
29169
|
name: 'VdtSavedSearchRow'
|
|
29122
29170
|
})(SavedSearchRow);
|
|
29123
29171
|
|
|
29124
|
-
var _excluded$t = ["searchProps", "searchPlaceholderText", "onSelect", "onDelete", "onUpdateSearchMetadata", "RowComponent", "RowProps", "accessTranslate"];
|
|
29172
|
+
var _excluded$t = ["searchProps", "searchPlaceholderText", "onSelect", "onDelete", "onUpdateSearchMetadata", "RowComponent", "RowProps", "accessTranslate", "extraMenuItems"];
|
|
29125
29173
|
|
|
29126
29174
|
function ownKeys$V(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29127
29175
|
|
|
@@ -29140,6 +29188,7 @@ function SavedSearchList(_ref) {
|
|
|
29140
29188
|
_ref$RowProps = _ref.RowProps,
|
|
29141
29189
|
RowProps = _ref$RowProps === void 0 ? {} : _ref$RowProps,
|
|
29142
29190
|
accessTranslate = _ref.accessTranslate,
|
|
29191
|
+
extraMenuItems = _ref.extraMenuItems,
|
|
29143
29192
|
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
29144
29193
|
|
|
29145
29194
|
return /*#__PURE__*/jsx(Component$A, _objectSpread$V({
|
|
@@ -29170,7 +29219,8 @@ function SavedSearchList(_ref) {
|
|
|
29170
29219
|
metadataDocument: metadataDocument
|
|
29171
29220
|
}).then(onRefresh));
|
|
29172
29221
|
},
|
|
29173
|
-
accessTranslate: accessTranslate
|
|
29222
|
+
accessTranslate: accessTranslate,
|
|
29223
|
+
extraMenuItems: extraMenuItems
|
|
29174
29224
|
}, RowProps), collectionType.id);
|
|
29175
29225
|
})
|
|
29176
29226
|
});
|
|
@@ -29290,7 +29340,8 @@ function SavedSearch(_ref) {
|
|
|
29290
29340
|
SearchFormComponent = _ref$SearchFormCompon === void 0 ? SaveSearchForm$1 : _ref$SearchFormCompon,
|
|
29291
29341
|
_ref$SearchFormProps = _ref.SearchFormProps,
|
|
29292
29342
|
SearchFormProps = _ref$SearchFormProps === void 0 ? {} : _ref$SearchFormProps,
|
|
29293
|
-
accessTranslate = _ref.accessTranslate
|
|
29343
|
+
accessTranslate = _ref.accessTranslate,
|
|
29344
|
+
extraMenuItems = _ref.extraMenuItems;
|
|
29294
29345
|
|
|
29295
29346
|
var _useSavedSearch = useSavedSearch({
|
|
29296
29347
|
markerField: markerField,
|
|
@@ -29326,7 +29377,8 @@ function SavedSearch(_ref) {
|
|
|
29326
29377
|
onDelete: onDeleteSearch,
|
|
29327
29378
|
onUpdateSearchMetadata: onUpdateSearchMetadata,
|
|
29328
29379
|
searchProps: searchProps,
|
|
29329
|
-
accessTranslate: accessTranslate
|
|
29380
|
+
accessTranslate: accessTranslate,
|
|
29381
|
+
extraMenuItems: extraMenuItems
|
|
29330
29382
|
}, SearchListProps))]
|
|
29331
29383
|
});
|
|
29332
29384
|
}
|
package/dist/index.js
CHANGED
|
@@ -9463,7 +9463,8 @@ var toCapsCase$1 = function toCapsCase(string) {
|
|
|
9463
9463
|
function EntityAccessMenu(_ref) {
|
|
9464
9464
|
var _ref$className = _ref.className,
|
|
9465
9465
|
className = _ref$className === void 0 ? 'VdtEntityAccessMenu-root' : _ref$className,
|
|
9466
|
-
classes = _ref.classes,
|
|
9466
|
+
_ref$classes = _ref.classes,
|
|
9467
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
9467
9468
|
onRemove = _ref.onRemove,
|
|
9468
9469
|
accessType = _ref.accessType,
|
|
9469
9470
|
entityType = _ref.entityType,
|
|
@@ -20814,6 +20815,8 @@ function SearchInput(_ref2) {
|
|
|
20814
20815
|
onChange = _ref2.onChange,
|
|
20815
20816
|
SuggestionsComponent = _ref2.SuggestionsComponent,
|
|
20816
20817
|
SuggestionsProps = _ref2.SuggestionsProps,
|
|
20818
|
+
TopSearchesComponent = _ref2.TopSearchesComponent,
|
|
20819
|
+
TopSearchesProps = _ref2.TopSearchesProps,
|
|
20817
20820
|
ButtonProps = _ref2.ButtonProps,
|
|
20818
20821
|
InputBaseProps = _ref2.InputBaseProps,
|
|
20819
20822
|
SearchIconComponent = _ref2.SearchIconComponent,
|
|
@@ -20834,6 +20837,12 @@ function SearchInput(_ref2) {
|
|
|
20834
20837
|
canClear = _useState6[0],
|
|
20835
20838
|
setCanClear = _useState6[1];
|
|
20836
20839
|
|
|
20840
|
+
React.useEffect(function () {
|
|
20841
|
+
if (defaultValue !== '') {
|
|
20842
|
+
setCanClear(true);
|
|
20843
|
+
}
|
|
20844
|
+
}, [defaultValue]);
|
|
20845
|
+
|
|
20837
20846
|
var handleOnChange = function handleOnChange(val) {
|
|
20838
20847
|
onChange(val);
|
|
20839
20848
|
setCanClear(inputRef.current.value.length > 0);
|
|
@@ -20871,7 +20880,17 @@ function SearchInput(_ref2) {
|
|
|
20871
20880
|
anchorEl = _useState8[0],
|
|
20872
20881
|
setAnchorEl = _useState8[1];
|
|
20873
20882
|
|
|
20883
|
+
var _useState9 = React.useState(false),
|
|
20884
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
20885
|
+
isTopSearchesOpen = _useState10[0],
|
|
20886
|
+
setIsTopSearchesOpen = _useState10[1];
|
|
20887
|
+
|
|
20874
20888
|
var suggestionsVisible = Boolean(anchorEl) && isFocused && canClear;
|
|
20889
|
+
var topSearchesVisible = Boolean(anchorEl) && isTopSearchesOpen;
|
|
20890
|
+
|
|
20891
|
+
var onOpenTopSearch = function onOpenTopSearch() {
|
|
20892
|
+
setIsTopSearchesOpen(!isTopSearchesOpen);
|
|
20893
|
+
};
|
|
20875
20894
|
|
|
20876
20895
|
var _useSuggestionsNaviga = useSuggestionsNavigation({
|
|
20877
20896
|
suggestions: suggestions,
|
|
@@ -20908,6 +20927,16 @@ function SearchInput(_ref2) {
|
|
|
20908
20927
|
children: [/*#__PURE__*/jsxRuntime.jsx(CloseIconComponent, {
|
|
20909
20928
|
className: canClear ? classes.closeButton : classes.closeButtonHidden,
|
|
20910
20929
|
onClick: onClear
|
|
20930
|
+
}), TopSearchesComponent && /*#__PURE__*/jsxRuntime.jsx(core.IconButton, {
|
|
20931
|
+
onClick: onOpenTopSearch,
|
|
20932
|
+
style: {
|
|
20933
|
+
borderRadius: '50%'
|
|
20934
|
+
},
|
|
20935
|
+
children: topSearchesVisible ? /*#__PURE__*/jsxRuntime.jsx(icons.ArrowDropUp, {
|
|
20936
|
+
fontSize: "small"
|
|
20937
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(icons.ArrowDropDown, {
|
|
20938
|
+
fontSize: "small"
|
|
20939
|
+
})
|
|
20911
20940
|
}), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], _objectSpread$1w(_objectSpread$1w({
|
|
20912
20941
|
size: "small",
|
|
20913
20942
|
type: "submit",
|
|
@@ -20930,7 +20959,9 @@ function SearchInput(_ref2) {
|
|
|
20930
20959
|
onHover: onHoverSuggestion,
|
|
20931
20960
|
focused: focusedSuggestion,
|
|
20932
20961
|
anchorEl: anchorEl
|
|
20933
|
-
}, SuggestionsProps))
|
|
20962
|
+
}, SuggestionsProps)), topSearchesVisible && TopSearchesComponent && /*#__PURE__*/jsxRuntime.jsx(TopSearchesComponent, _objectSpread$1w({
|
|
20963
|
+
anchorEl: anchorEl
|
|
20964
|
+
}, TopSearchesProps))]
|
|
20934
20965
|
});
|
|
20935
20966
|
}
|
|
20936
20967
|
SearchInput.propTypes = {
|
|
@@ -20947,6 +20978,8 @@ SearchInput.propTypes = {
|
|
|
20947
20978
|
onChange: PropTypes$1.func,
|
|
20948
20979
|
SuggestionsComponent: PropTypes$1.elementType,
|
|
20949
20980
|
SuggestionsProps: PropTypes$1.objectOf(PropTypes$1.any),
|
|
20981
|
+
TopSearchesComponent: PropTypes$1.elementType,
|
|
20982
|
+
TopSearchesProps: PropTypes$1.objectOf(PropTypes$1.any),
|
|
20950
20983
|
ButtonProps: PropTypes$1.objectOf(PropTypes$1.any),
|
|
20951
20984
|
InputBaseProps: PropTypes$1.objectOf(PropTypes$1.any),
|
|
20952
20985
|
SearchIconComponent: PropTypes$1.elementType,
|
|
@@ -20968,6 +21001,8 @@ SearchInput.defaultProps = {
|
|
|
20968
21001
|
onChange: function onChange() {},
|
|
20969
21002
|
SuggestionsComponent: null,
|
|
20970
21003
|
SuggestionsProps: {},
|
|
21004
|
+
TopSearchesComponent: null,
|
|
21005
|
+
TopSearchesProps: {},
|
|
20971
21006
|
ButtonProps: {},
|
|
20972
21007
|
InputBaseProps: {},
|
|
20973
21008
|
SearchIconComponent: SearchIcon__default["default"],
|
|
@@ -28939,6 +28974,7 @@ var styles$10 = function styles(theme) {
|
|
|
28939
28974
|
disabled: {
|
|
28940
28975
|
opacity: 1
|
|
28941
28976
|
},
|
|
28977
|
+
menuContext: {},
|
|
28942
28978
|
menuExpand: {
|
|
28943
28979
|
minWidth: theme.breakpoints.values.sm / 2
|
|
28944
28980
|
},
|
|
@@ -28971,6 +29007,8 @@ function SavedSearchRow(_ref) {
|
|
|
28971
29007
|
disableDeletion = _ref.disableDeletion,
|
|
28972
29008
|
type = _ref.type,
|
|
28973
29009
|
accessTranslate = _ref.accessTranslate,
|
|
29010
|
+
_ref$extraMenuItems = _ref.extraMenuItems,
|
|
29011
|
+
extraMenuItems = _ref$extraMenuItems === void 0 ? [] : _ref$extraMenuItems,
|
|
28974
29012
|
_ref$isFolderRow = _ref.isFolderRow,
|
|
28975
29013
|
isFolderRow = _ref$isFolderRow === void 0 ? false : _ref$isFolderRow,
|
|
28976
29014
|
_ref$hideSubFolderSha = _ref.hideSubFolderSharing,
|
|
@@ -29263,7 +29301,17 @@ function SavedSearchRow(_ref) {
|
|
|
29263
29301
|
}) : null, /*#__PURE__*/jsxRuntime.jsx(ListItemText__default["default"], {
|
|
29264
29302
|
primary: deleteText
|
|
29265
29303
|
})]
|
|
29266
|
-
}, 6)
|
|
29304
|
+
}, 6), extraMenuItems.map(function (item) {
|
|
29305
|
+
return /*#__PURE__*/jsxRuntime.jsxs(MenuItem__default["default"], {
|
|
29306
|
+
dense: true,
|
|
29307
|
+
onClick: item["function"],
|
|
29308
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(ListItemIcon__default["default"], {
|
|
29309
|
+
children: /*#__PURE__*/jsxRuntime.jsx(item.icon, {})
|
|
29310
|
+
}), /*#__PURE__*/jsxRuntime.jsx(ListItemText__default["default"], {
|
|
29311
|
+
primary: item.name
|
|
29312
|
+
})]
|
|
29313
|
+
});
|
|
29314
|
+
})]
|
|
29267
29315
|
})
|
|
29268
29316
|
}), /*#__PURE__*/jsxRuntime.jsx(Popover__default["default"], {
|
|
29269
29317
|
open: expandedView !== null,
|
|
@@ -29310,7 +29358,7 @@ var SavedSearchRow$1 = styles$2B.withStyles(styles$10, {
|
|
|
29310
29358
|
name: 'VdtSavedSearchRow'
|
|
29311
29359
|
})(SavedSearchRow);
|
|
29312
29360
|
|
|
29313
|
-
var _excluded$t = ["searchProps", "searchPlaceholderText", "onSelect", "onDelete", "onUpdateSearchMetadata", "RowComponent", "RowProps", "accessTranslate"];
|
|
29361
|
+
var _excluded$t = ["searchProps", "searchPlaceholderText", "onSelect", "onDelete", "onUpdateSearchMetadata", "RowComponent", "RowProps", "accessTranslate", "extraMenuItems"];
|
|
29314
29362
|
|
|
29315
29363
|
function ownKeys$V(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29316
29364
|
|
|
@@ -29329,6 +29377,7 @@ function SavedSearchList(_ref) {
|
|
|
29329
29377
|
_ref$RowProps = _ref.RowProps,
|
|
29330
29378
|
RowProps = _ref$RowProps === void 0 ? {} : _ref$RowProps,
|
|
29331
29379
|
accessTranslate = _ref.accessTranslate,
|
|
29380
|
+
extraMenuItems = _ref.extraMenuItems,
|
|
29332
29381
|
props = _objectWithoutProperties__default["default"](_ref, _excluded$t);
|
|
29333
29382
|
|
|
29334
29383
|
return /*#__PURE__*/jsxRuntime.jsx(Component$A, _objectSpread$V({
|
|
@@ -29359,7 +29408,8 @@ function SavedSearchList(_ref) {
|
|
|
29359
29408
|
metadataDocument: metadataDocument
|
|
29360
29409
|
}).then(onRefresh));
|
|
29361
29410
|
},
|
|
29362
|
-
accessTranslate: accessTranslate
|
|
29411
|
+
accessTranslate: accessTranslate,
|
|
29412
|
+
extraMenuItems: extraMenuItems
|
|
29363
29413
|
}, RowProps), collectionType.id);
|
|
29364
29414
|
})
|
|
29365
29415
|
});
|
|
@@ -29479,7 +29529,8 @@ function SavedSearch(_ref) {
|
|
|
29479
29529
|
SearchFormComponent = _ref$SearchFormCompon === void 0 ? SaveSearchForm$1 : _ref$SearchFormCompon,
|
|
29480
29530
|
_ref$SearchFormProps = _ref.SearchFormProps,
|
|
29481
29531
|
SearchFormProps = _ref$SearchFormProps === void 0 ? {} : _ref$SearchFormProps,
|
|
29482
|
-
accessTranslate = _ref.accessTranslate
|
|
29532
|
+
accessTranslate = _ref.accessTranslate,
|
|
29533
|
+
extraMenuItems = _ref.extraMenuItems;
|
|
29483
29534
|
|
|
29484
29535
|
var _useSavedSearch = vdtReact.useSavedSearch({
|
|
29485
29536
|
markerField: markerField,
|
|
@@ -29515,7 +29566,8 @@ function SavedSearch(_ref) {
|
|
|
29515
29566
|
onDelete: onDeleteSearch,
|
|
29516
29567
|
onUpdateSearchMetadata: onUpdateSearchMetadata,
|
|
29517
29568
|
searchProps: searchProps,
|
|
29518
|
-
accessTranslate: accessTranslate
|
|
29569
|
+
accessTranslate: accessTranslate,
|
|
29570
|
+
extraMenuItems: extraMenuItems
|
|
29519
29571
|
}, SearchListProps))]
|
|
29520
29572
|
});
|
|
29521
29573
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vidispine/vdt-materialui",
|
|
3
|
-
"version": "22.3.0-pre.
|
|
3
|
+
"version": "22.3.0-pre.2",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@babel/runtime": "^7.17.0",
|
|
30
|
-
"@vidispine/vdt-api": "22.3.0-pre.
|
|
31
|
-
"@vidispine/vdt-js": "22.3.0-pre.
|
|
32
|
-
"@vidispine/vdt-react": "22.3.0-pre.
|
|
33
|
-
"@vidispine/vdt-videojs-react": "22.3.0-pre.
|
|
30
|
+
"@vidispine/vdt-api": "22.3.0-pre.2",
|
|
31
|
+
"@vidispine/vdt-js": "22.3.0-pre.2",
|
|
32
|
+
"@vidispine/vdt-react": "22.3.0-pre.2",
|
|
33
|
+
"@vidispine/vdt-videojs-react": "22.3.0-pre.2",
|
|
34
34
|
"clsx": "^1.1.1",
|
|
35
35
|
"core-js": "^3.8.3",
|
|
36
36
|
"filesize": "^6.1.0",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
73
73
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
74
74
|
"@svgr/rollup": "^6.2.1",
|
|
75
|
-
"@vidispine/eslint-config-react": "22.3.0-pre.
|
|
76
|
-
"@vidispine/eslint-config-storybook": "22.3.0-pre.
|
|
77
|
-
"@vidispine/prettier-config": "22.3.0-pre.
|
|
78
|
-
"@vidispine/proptypes": "22.3.0-pre.
|
|
75
|
+
"@vidispine/eslint-config-react": "22.3.0-pre.2",
|
|
76
|
+
"@vidispine/eslint-config-storybook": "22.3.0-pre.2",
|
|
77
|
+
"@vidispine/prettier-config": "22.3.0-pre.2",
|
|
78
|
+
"@vidispine/proptypes": "22.3.0-pre.2",
|
|
79
79
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.6",
|
|
80
80
|
"axios-mock-adapter": "^1.20.0",
|
|
81
81
|
"enzyme": "^3.11.0",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
"prettier": "@vidispine/prettier-config",
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "ff7ae2bb82262231c53eb1438e5e171f051303d8"
|
|
114
114
|
}
|