@vidispine/vdt-materialui 22.2.0-pre.1 → 22.2.0-pre.4
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 +33 -14
- package/dist/index.js +33 -14
- package/package.json +20 -10
package/dist/index.es.js
CHANGED
|
@@ -21502,14 +21502,20 @@ function CollectionContentCollection(_ref3) {
|
|
|
21502
21502
|
_ref3$PaperProps = _ref3.PaperProps,
|
|
21503
21503
|
PaperProps = _ref3$PaperProps === void 0 ? {} : _ref3$PaperProps,
|
|
21504
21504
|
_ref3$IconComponent = _ref3.IconComponent,
|
|
21505
|
-
IconComponent = _ref3$IconComponent === void 0 ? Component$O : _ref3$IconComponent
|
|
21505
|
+
IconComponent = _ref3$IconComponent === void 0 ? Component$O : _ref3$IconComponent,
|
|
21506
|
+
_ref3$onRouteChange = _ref3.onRouteChange,
|
|
21507
|
+
onRouteChange = _ref3$onRouteChange === void 0 ? function () {} : _ref3$onRouteChange;
|
|
21506
21508
|
var isSelected = selected && selected.entityType === 'collection' && selected.entityId === collectionId;
|
|
21507
21509
|
|
|
21508
|
-
var onClickListItem = function onClickListItem() {
|
|
21509
|
-
|
|
21510
|
-
|
|
21511
|
-
|
|
21512
|
-
|
|
21510
|
+
var onClickListItem = function onClickListItem(e) {
|
|
21511
|
+
if (e.detail === 2) {
|
|
21512
|
+
onRouteChange(collectionId);
|
|
21513
|
+
} else {
|
|
21514
|
+
onClick({
|
|
21515
|
+
entityType: entityType,
|
|
21516
|
+
entityId: collectionId
|
|
21517
|
+
});
|
|
21518
|
+
}
|
|
21513
21519
|
};
|
|
21514
21520
|
|
|
21515
21521
|
return /*#__PURE__*/jsxs(ListItemComponent, _objectSpread$1t(_objectSpread$1t({
|
|
@@ -21538,7 +21544,14 @@ function CollectionContentCollection(_ref3) {
|
|
|
21538
21544
|
classes: classes,
|
|
21539
21545
|
collectionType: collectionType,
|
|
21540
21546
|
collectionId: collectionId
|
|
21541
|
-
}, ListItemTextProps)),
|
|
21547
|
+
}, ListItemTextProps)), /*#__PURE__*/jsx(IconButton$1, {
|
|
21548
|
+
onClick: function onClick() {
|
|
21549
|
+
return onRouteChange(collectionId);
|
|
21550
|
+
},
|
|
21551
|
+
className: classes.Menu,
|
|
21552
|
+
disableRipple: true,
|
|
21553
|
+
children: /*#__PURE__*/jsx(FolderIcon, {})
|
|
21554
|
+
}), ListItemMenuComponent && /*#__PURE__*/jsx(ListItemMenuComponent, _objectSpread$1t({
|
|
21542
21555
|
className: classes.Menu,
|
|
21543
21556
|
entityId: collectionId,
|
|
21544
21557
|
entityType: entityType
|
|
@@ -22075,7 +22088,7 @@ var CollectionContentSkeleton$1 = withStyles(styles$1r, {
|
|
|
22075
22088
|
name: 'VdtCollectionContentSkeleton'
|
|
22076
22089
|
})(CollectionContentSkeleton);
|
|
22077
22090
|
|
|
22078
|
-
var _excluded$K = ["classes", "className", "selectedCollectionId", "collectionContentType", "onClick", "onRemoveCollectionEntity", "selected", "ItemEntityComponent", "ItemContentProps", "CollectionEntityComponent", "CollectionEntityProps", "LoadingEntityComponent", "LoadingEntityProps"];
|
|
22091
|
+
var _excluded$K = ["classes", "className", "selectedCollectionId", "collectionContentType", "onClick", "onRemoveCollectionEntity", "selected", "ItemEntityComponent", "ItemContentProps", "CollectionEntityComponent", "CollectionEntityProps", "LoadingEntityComponent", "LoadingEntityProps", "onRouteChange"];
|
|
22079
22092
|
|
|
22080
22093
|
function ownKeys$1q(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; }
|
|
22081
22094
|
|
|
@@ -22101,6 +22114,7 @@ function CollectionContentEntity(_ref) {
|
|
|
22101
22114
|
LoadingEntityComponent = _ref$LoadingEntityCom === void 0 ? CollectionContentSkeleton$1 : _ref$LoadingEntityCom,
|
|
22102
22115
|
_ref$LoadingEntityPro = _ref.LoadingEntityProps,
|
|
22103
22116
|
LoadingEntityProps = _ref$LoadingEntityPro === void 0 ? {} : _ref$LoadingEntityPro,
|
|
22117
|
+
onRouteChange = _ref.onRouteChange,
|
|
22104
22118
|
EntityProps = _objectWithoutProperties(_ref, _excluded$K);
|
|
22105
22119
|
|
|
22106
22120
|
var entityId = collectionContentType.id,
|
|
@@ -22150,7 +22164,8 @@ function CollectionContentEntity(_ref) {
|
|
|
22150
22164
|
entityType: entityType,
|
|
22151
22165
|
simpleMetadataType: simpleMetadataType,
|
|
22152
22166
|
onClick: onClick,
|
|
22153
|
-
selected: selected
|
|
22167
|
+
selected: selected,
|
|
22168
|
+
onRouteChange: onRouteChange
|
|
22154
22169
|
}, CollectionEntityProps))
|
|
22155
22170
|
}[entityType];
|
|
22156
22171
|
}
|
|
@@ -22265,7 +22280,8 @@ function CollectionContent(_ref3) {
|
|
|
22265
22280
|
} : _ref3$onDrop,
|
|
22266
22281
|
onChange = _ref3.onChange,
|
|
22267
22282
|
selected = _ref3.selected,
|
|
22268
|
-
onError = _ref3.onError
|
|
22283
|
+
onError = _ref3.onError,
|
|
22284
|
+
onRouteChange = _ref3.onRouteChange;
|
|
22269
22285
|
|
|
22270
22286
|
var _useGetCollection = useGetCollection({
|
|
22271
22287
|
collectionId: collectionId
|
|
@@ -22381,6 +22397,7 @@ function CollectionContent(_ref3) {
|
|
|
22381
22397
|
onClick: onClick,
|
|
22382
22398
|
onSort: onSort,
|
|
22383
22399
|
callbackOnDrop: handleOnChange,
|
|
22400
|
+
onRouteChange: onRouteChange,
|
|
22384
22401
|
ListItemMenuProps: _objectSpread$1p({
|
|
22385
22402
|
onRemoveCollectionEntity: onRemoveCollectionEntity,
|
|
22386
22403
|
onAddAsRepresentativeItem: onAddAsRepresentativeItem,
|
|
@@ -28789,8 +28806,8 @@ function SavedSearchRow(_ref) {
|
|
|
28789
28806
|
ShareComponent = _ref$ShareComponent === void 0 ? ShareSearch$1 : _ref$ShareComponent,
|
|
28790
28807
|
_ref$ShareProps = _ref.ShareProps,
|
|
28791
28808
|
ShareProps = _ref$ShareProps === void 0 ? {} : _ref$ShareProps,
|
|
28792
|
-
_ref$
|
|
28793
|
-
|
|
28809
|
+
_ref$addFolderText = _ref.addFolderText,
|
|
28810
|
+
addFolderText = _ref$addFolderText === void 0 ? 'Add folder' : _ref$addFolderText,
|
|
28794
28811
|
_ref$addSearchText = _ref.addSearchText,
|
|
28795
28812
|
addSearchText = _ref$addSearchText === void 0 ? 'Add search' : _ref$addSearchText,
|
|
28796
28813
|
_ref$editTitleText = _ref.editTitleText,
|
|
@@ -29002,7 +29019,7 @@ function SavedSearchRow(_ref) {
|
|
|
29002
29019
|
children: [CreateFolderIcon ? /*#__PURE__*/jsx(ListItemIcon$1, {
|
|
29003
29020
|
children: /*#__PURE__*/jsx(CreateFolderIcon, {})
|
|
29004
29021
|
}) : null, /*#__PURE__*/jsx(ListItemText, {
|
|
29005
|
-
primary:
|
|
29022
|
+
primary: addFolderText
|
|
29006
29023
|
})]
|
|
29007
29024
|
}, 1), allowListAccess(searchMetadata) && type === 'folder' && /*#__PURE__*/jsxs(MenuItem, {
|
|
29008
29025
|
dense: true,
|
|
@@ -30099,6 +30116,8 @@ function AddFolderRow(_ref) {
|
|
|
30099
30116
|
createFolder = _ref.createFolder,
|
|
30100
30117
|
itemSearchDocument = _ref.itemSearchDocument,
|
|
30101
30118
|
newField = _ref.newField,
|
|
30119
|
+
_ref$markerField = _ref.markerField,
|
|
30120
|
+
markerField = _ref$markerField === void 0 ? 'saved_search_folder' : _ref$markerField,
|
|
30102
30121
|
_ref$markerValue = _ref.markerValue,
|
|
30103
30122
|
markerValue = _ref$markerValue === void 0 ? 'SubFolder' : _ref$markerValue,
|
|
30104
30123
|
_ref$folderNameText = _ref.folderNameText,
|
|
@@ -30123,7 +30142,7 @@ function AddFolderRow(_ref) {
|
|
|
30123
30142
|
|
|
30124
30143
|
var handleCreateFolder = function handleCreateFolder() {
|
|
30125
30144
|
if (inputValue) {
|
|
30126
|
-
createFolder(id, markerValue, inputValue, closeNewRow);
|
|
30145
|
+
createFolder(id, markerField, markerValue, inputValue, closeNewRow);
|
|
30127
30146
|
}
|
|
30128
30147
|
};
|
|
30129
30148
|
|
package/dist/index.js
CHANGED
|
@@ -21691,14 +21691,20 @@ function CollectionContentCollection(_ref3) {
|
|
|
21691
21691
|
_ref3$PaperProps = _ref3.PaperProps,
|
|
21692
21692
|
PaperProps = _ref3$PaperProps === void 0 ? {} : _ref3$PaperProps,
|
|
21693
21693
|
_ref3$IconComponent = _ref3.IconComponent,
|
|
21694
|
-
IconComponent = _ref3$IconComponent === void 0 ? Component$O : _ref3$IconComponent
|
|
21694
|
+
IconComponent = _ref3$IconComponent === void 0 ? Component$O : _ref3$IconComponent,
|
|
21695
|
+
_ref3$onRouteChange = _ref3.onRouteChange,
|
|
21696
|
+
onRouteChange = _ref3$onRouteChange === void 0 ? function () {} : _ref3$onRouteChange;
|
|
21695
21697
|
var isSelected = selected && selected.entityType === 'collection' && selected.entityId === collectionId;
|
|
21696
21698
|
|
|
21697
|
-
var onClickListItem = function onClickListItem() {
|
|
21698
|
-
|
|
21699
|
-
|
|
21700
|
-
|
|
21701
|
-
|
|
21699
|
+
var onClickListItem = function onClickListItem(e) {
|
|
21700
|
+
if (e.detail === 2) {
|
|
21701
|
+
onRouteChange(collectionId);
|
|
21702
|
+
} else {
|
|
21703
|
+
onClick({
|
|
21704
|
+
entityType: entityType,
|
|
21705
|
+
entityId: collectionId
|
|
21706
|
+
});
|
|
21707
|
+
}
|
|
21702
21708
|
};
|
|
21703
21709
|
|
|
21704
21710
|
return /*#__PURE__*/jsxRuntime.jsxs(ListItemComponent, _objectSpread$1t(_objectSpread$1t({
|
|
@@ -21727,7 +21733,14 @@ function CollectionContentCollection(_ref3) {
|
|
|
21727
21733
|
classes: classes,
|
|
21728
21734
|
collectionType: collectionType,
|
|
21729
21735
|
collectionId: collectionId
|
|
21730
|
-
}, ListItemTextProps)),
|
|
21736
|
+
}, ListItemTextProps)), /*#__PURE__*/jsxRuntime.jsx(core.IconButton, {
|
|
21737
|
+
onClick: function onClick() {
|
|
21738
|
+
return onRouteChange(collectionId);
|
|
21739
|
+
},
|
|
21740
|
+
className: classes.Menu,
|
|
21741
|
+
disableRipple: true,
|
|
21742
|
+
children: /*#__PURE__*/jsxRuntime.jsx(FolderIcon__default["default"], {})
|
|
21743
|
+
}), ListItemMenuComponent && /*#__PURE__*/jsxRuntime.jsx(ListItemMenuComponent, _objectSpread$1t({
|
|
21731
21744
|
className: classes.Menu,
|
|
21732
21745
|
entityId: collectionId,
|
|
21733
21746
|
entityType: entityType
|
|
@@ -22264,7 +22277,7 @@ var CollectionContentSkeleton$1 = styles$2B.withStyles(styles$1r, {
|
|
|
22264
22277
|
name: 'VdtCollectionContentSkeleton'
|
|
22265
22278
|
})(CollectionContentSkeleton);
|
|
22266
22279
|
|
|
22267
|
-
var _excluded$K = ["classes", "className", "selectedCollectionId", "collectionContentType", "onClick", "onRemoveCollectionEntity", "selected", "ItemEntityComponent", "ItemContentProps", "CollectionEntityComponent", "CollectionEntityProps", "LoadingEntityComponent", "LoadingEntityProps"];
|
|
22280
|
+
var _excluded$K = ["classes", "className", "selectedCollectionId", "collectionContentType", "onClick", "onRemoveCollectionEntity", "selected", "ItemEntityComponent", "ItemContentProps", "CollectionEntityComponent", "CollectionEntityProps", "LoadingEntityComponent", "LoadingEntityProps", "onRouteChange"];
|
|
22268
22281
|
|
|
22269
22282
|
function ownKeys$1q(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; }
|
|
22270
22283
|
|
|
@@ -22290,6 +22303,7 @@ function CollectionContentEntity(_ref) {
|
|
|
22290
22303
|
LoadingEntityComponent = _ref$LoadingEntityCom === void 0 ? CollectionContentSkeleton$1 : _ref$LoadingEntityCom,
|
|
22291
22304
|
_ref$LoadingEntityPro = _ref.LoadingEntityProps,
|
|
22292
22305
|
LoadingEntityProps = _ref$LoadingEntityPro === void 0 ? {} : _ref$LoadingEntityPro,
|
|
22306
|
+
onRouteChange = _ref.onRouteChange,
|
|
22293
22307
|
EntityProps = _objectWithoutProperties__default["default"](_ref, _excluded$K);
|
|
22294
22308
|
|
|
22295
22309
|
var entityId = collectionContentType.id,
|
|
@@ -22339,7 +22353,8 @@ function CollectionContentEntity(_ref) {
|
|
|
22339
22353
|
entityType: entityType,
|
|
22340
22354
|
simpleMetadataType: simpleMetadataType,
|
|
22341
22355
|
onClick: onClick,
|
|
22342
|
-
selected: selected
|
|
22356
|
+
selected: selected,
|
|
22357
|
+
onRouteChange: onRouteChange
|
|
22343
22358
|
}, CollectionEntityProps))
|
|
22344
22359
|
}[entityType];
|
|
22345
22360
|
}
|
|
@@ -22454,7 +22469,8 @@ function CollectionContent(_ref3) {
|
|
|
22454
22469
|
} : _ref3$onDrop,
|
|
22455
22470
|
onChange = _ref3.onChange,
|
|
22456
22471
|
selected = _ref3.selected,
|
|
22457
|
-
onError = _ref3.onError
|
|
22472
|
+
onError = _ref3.onError,
|
|
22473
|
+
onRouteChange = _ref3.onRouteChange;
|
|
22458
22474
|
|
|
22459
22475
|
var _useGetCollection = vdtReact.useGetCollection({
|
|
22460
22476
|
collectionId: collectionId
|
|
@@ -22570,6 +22586,7 @@ function CollectionContent(_ref3) {
|
|
|
22570
22586
|
onClick: onClick,
|
|
22571
22587
|
onSort: onSort,
|
|
22572
22588
|
callbackOnDrop: handleOnChange,
|
|
22589
|
+
onRouteChange: onRouteChange,
|
|
22573
22590
|
ListItemMenuProps: _objectSpread$1p({
|
|
22574
22591
|
onRemoveCollectionEntity: onRemoveCollectionEntity,
|
|
22575
22592
|
onAddAsRepresentativeItem: onAddAsRepresentativeItem,
|
|
@@ -28978,8 +28995,8 @@ function SavedSearchRow(_ref) {
|
|
|
28978
28995
|
ShareComponent = _ref$ShareComponent === void 0 ? ShareSearch$1 : _ref$ShareComponent,
|
|
28979
28996
|
_ref$ShareProps = _ref.ShareProps,
|
|
28980
28997
|
ShareProps = _ref$ShareProps === void 0 ? {} : _ref$ShareProps,
|
|
28981
|
-
_ref$
|
|
28982
|
-
|
|
28998
|
+
_ref$addFolderText = _ref.addFolderText,
|
|
28999
|
+
addFolderText = _ref$addFolderText === void 0 ? 'Add folder' : _ref$addFolderText,
|
|
28983
29000
|
_ref$addSearchText = _ref.addSearchText,
|
|
28984
29001
|
addSearchText = _ref$addSearchText === void 0 ? 'Add search' : _ref$addSearchText,
|
|
28985
29002
|
_ref$editTitleText = _ref.editTitleText,
|
|
@@ -29191,7 +29208,7 @@ function SavedSearchRow(_ref) {
|
|
|
29191
29208
|
children: [CreateFolderIcon ? /*#__PURE__*/jsxRuntime.jsx(ListItemIcon__default["default"], {
|
|
29192
29209
|
children: /*#__PURE__*/jsxRuntime.jsx(CreateFolderIcon, {})
|
|
29193
29210
|
}) : null, /*#__PURE__*/jsxRuntime.jsx(ListItemText__default["default"], {
|
|
29194
|
-
primary:
|
|
29211
|
+
primary: addFolderText
|
|
29195
29212
|
})]
|
|
29196
29213
|
}, 1), allowListAccess(searchMetadata) && type === 'folder' && /*#__PURE__*/jsxRuntime.jsxs(MenuItem__default["default"], {
|
|
29197
29214
|
dense: true,
|
|
@@ -30288,6 +30305,8 @@ function AddFolderRow(_ref) {
|
|
|
30288
30305
|
createFolder = _ref.createFolder,
|
|
30289
30306
|
itemSearchDocument = _ref.itemSearchDocument,
|
|
30290
30307
|
newField = _ref.newField,
|
|
30308
|
+
_ref$markerField = _ref.markerField,
|
|
30309
|
+
markerField = _ref$markerField === void 0 ? 'saved_search_folder' : _ref$markerField,
|
|
30291
30310
|
_ref$markerValue = _ref.markerValue,
|
|
30292
30311
|
markerValue = _ref$markerValue === void 0 ? 'SubFolder' : _ref$markerValue,
|
|
30293
30312
|
_ref$folderNameText = _ref.folderNameText,
|
|
@@ -30312,7 +30331,7 @@ function AddFolderRow(_ref) {
|
|
|
30312
30331
|
|
|
30313
30332
|
var handleCreateFolder = function handleCreateFolder() {
|
|
30314
30333
|
if (inputValue) {
|
|
30315
|
-
createFolder(id, markerValue, inputValue, closeNewRow);
|
|
30334
|
+
createFolder(id, markerField, markerValue, inputValue, closeNewRow);
|
|
30316
30335
|
}
|
|
30317
30336
|
};
|
|
30318
30337
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vidispine/vdt-materialui",
|
|
3
|
-
"version": "22.2.0-pre.
|
|
3
|
+
"version": "22.2.0-pre.4",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"private": false,
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"description": "Materialui (v4) library for VidiCore",
|
|
10
|
+
"homepage": "https://vidispine.github.io/vdt/?path=/docs/vdt-materialui",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/vidispine/vdt.git",
|
|
14
|
+
"directory": "packages/vdt-materialui"
|
|
15
|
+
},
|
|
6
16
|
"main": "dist/index.js",
|
|
7
17
|
"module": "dist/index.es.js",
|
|
8
18
|
"files": [
|
|
@@ -17,10 +27,10 @@
|
|
|
17
27
|
},
|
|
18
28
|
"dependencies": {
|
|
19
29
|
"@babel/runtime": "^7.17.0",
|
|
20
|
-
"@vidispine/vdt-api": "
|
|
21
|
-
"@vidispine/vdt-js": "
|
|
22
|
-
"@vidispine/vdt-react": "
|
|
23
|
-
"@vidispine/vdt-videojs-react": "
|
|
30
|
+
"@vidispine/vdt-api": "22.2.0-pre.4",
|
|
31
|
+
"@vidispine/vdt-js": "22.2.0-pre.4",
|
|
32
|
+
"@vidispine/vdt-react": "22.2.0-pre.4",
|
|
33
|
+
"@vidispine/vdt-videojs-react": "22.2.0-pre.4",
|
|
24
34
|
"clsx": "^1.1.1",
|
|
25
35
|
"core-js": "^3.8.3",
|
|
26
36
|
"filesize": "^6.1.0",
|
|
@@ -62,10 +72,10 @@
|
|
|
62
72
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
63
73
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
64
74
|
"@svgr/rollup": "^6.2.1",
|
|
65
|
-
"@vidispine/eslint-config-react": "
|
|
66
|
-
"@vidispine/eslint-config-storybook": "
|
|
67
|
-
"@vidispine/prettier-config": "
|
|
68
|
-
"@vidispine/proptypes": "
|
|
75
|
+
"@vidispine/eslint-config-react": "22.2.0-pre.4",
|
|
76
|
+
"@vidispine/eslint-config-storybook": "22.2.0-pre.4",
|
|
77
|
+
"@vidispine/prettier-config": "22.2.0-pre.4",
|
|
78
|
+
"@vidispine/proptypes": "22.2.0-pre.4",
|
|
69
79
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.6",
|
|
70
80
|
"axios-mock-adapter": "^1.20.0",
|
|
71
81
|
"enzyme": "^3.11.0",
|
|
@@ -100,5 +110,5 @@
|
|
|
100
110
|
}
|
|
101
111
|
},
|
|
102
112
|
"prettier": "@vidispine/prettier-config",
|
|
103
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "d97ba828955f3f3b318ccaa793f550aaad1c633c"
|
|
104
114
|
}
|