@vidispine/vdt-mui 22.4.0-pre.6 → 22.4.0-pre.7
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 +1486 -504
- package/dist/index.js +1525 -537
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var styles$
|
|
5
|
+
var styles$p = require('@mui/styles');
|
|
6
6
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
8
8
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
@@ -17,6 +17,7 @@ var vdtJs = require('@vidispine/vdt-js');
|
|
|
17
17
|
var iconsMaterial = require('@mui/icons-material');
|
|
18
18
|
var CssBaseline = require('@mui/material/CssBaseline');
|
|
19
19
|
var useMediaQuery = require('@mui/material/useMediaQuery');
|
|
20
|
+
var styles$q = require('@mui/material/styles');
|
|
20
21
|
|
|
21
22
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
22
23
|
|
|
@@ -38,11 +39,11 @@ var uuidv4 = function uuidv4() {
|
|
|
38
39
|
});
|
|
39
40
|
};
|
|
40
41
|
|
|
41
|
-
var _excluded$
|
|
42
|
+
var _excluded$g = ["className", "classes", "components", "componentProps"];
|
|
42
43
|
|
|
43
|
-
function ownKeys$
|
|
44
|
+
function ownKeys$D(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; }
|
|
44
45
|
|
|
45
|
-
function _objectSpread$
|
|
46
|
+
function _objectSpread$D(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$D(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$D(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
46
47
|
|
|
47
48
|
var pascalToCamelCase = function pascalToCamelCase(str) {
|
|
48
49
|
if (str === undefined || typeof str !== 'string') return undefined;
|
|
@@ -70,9 +71,9 @@ var withOverrideRef = function withOverrideRef(Component) {
|
|
|
70
71
|
return /*#__PURE__*/react.forwardRef(function (props, ref) {
|
|
71
72
|
var _props$componentProps;
|
|
72
73
|
|
|
73
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$
|
|
74
|
-
componentProps: _objectSpread$
|
|
75
|
-
root: _objectSpread$
|
|
74
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$D({
|
|
75
|
+
componentProps: _objectSpread$D(_objectSpread$D({}, (props === null || props === void 0 ? void 0 : props.componentProps) || {}), {}, {
|
|
76
|
+
root: _objectSpread$D(_objectSpread$D({}, (props === null || props === void 0 ? void 0 : (_props$componentProps = props.componentProps) === null || _props$componentProps === void 0 ? void 0 : _props$componentProps.root) || {}), {}, {
|
|
76
77
|
ref: ref
|
|
77
78
|
})
|
|
78
79
|
})
|
|
@@ -87,7 +88,7 @@ var withOverrides = function withOverrides(defaultComponents, _ref2) {
|
|
|
87
88
|
classes = props.classes,
|
|
88
89
|
components = props.components,
|
|
89
90
|
componentProps = props.componentProps,
|
|
90
|
-
rest = _objectWithoutProperties__default["default"](props, _excluded$
|
|
91
|
+
rest = _objectWithoutProperties__default["default"](props, _excluded$g);
|
|
91
92
|
|
|
92
93
|
var childComponents = Object.entries(defaultComponents || {}).map(function (_ref3) {
|
|
93
94
|
var _ref4 = _slicedToArray__default["default"](_ref3, 2),
|
|
@@ -99,7 +100,7 @@ var withOverrides = function withOverrides(defaultComponents, _ref2) {
|
|
|
99
100
|
} : components === null || components === void 0 ? void 0 : components[componentName];
|
|
100
101
|
return _defineProperty__default["default"]({}, componentName, overriddenComponent || defaultComponent);
|
|
101
102
|
}).reduce(function (curr, obj) {
|
|
102
|
-
return _objectSpread$
|
|
103
|
+
return _objectSpread$D(_objectSpread$D({}, curr), obj);
|
|
103
104
|
}, {});
|
|
104
105
|
var childComponentsProps = Object.entries(childComponents).map(function (_ref6) {
|
|
105
106
|
var _ref7 = _slicedToArray__default["default"](_ref6, 1),
|
|
@@ -112,13 +113,13 @@ var withOverrides = function withOverrides(defaultComponents, _ref2) {
|
|
|
112
113
|
className: className,
|
|
113
114
|
classes: classes
|
|
114
115
|
});
|
|
115
|
-
return _defineProperty__default["default"]({}, pascalToCamelCase(componentName), _objectSpread$
|
|
116
|
+
return _defineProperty__default["default"]({}, pascalToCamelCase(componentName), _objectSpread$D(_objectSpread$D({}, overrideProps), {}, {
|
|
116
117
|
className: overrideClassName
|
|
117
118
|
}));
|
|
118
119
|
}).reduce(function (curr, obj) {
|
|
119
|
-
return _objectSpread$
|
|
120
|
+
return _objectSpread$D(_objectSpread$D({}, curr), obj);
|
|
120
121
|
}, {});
|
|
121
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$
|
|
122
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$D({
|
|
122
123
|
components: childComponents,
|
|
123
124
|
componentProps: childComponentsProps
|
|
124
125
|
}, rest));
|
|
@@ -126,23 +127,23 @@ var withOverrides = function withOverrides(defaultComponents, _ref2) {
|
|
|
126
127
|
};
|
|
127
128
|
};
|
|
128
129
|
|
|
129
|
-
var _excluded$
|
|
130
|
+
var _excluded$f = ["mediaType"];
|
|
130
131
|
|
|
131
|
-
function ownKeys$
|
|
132
|
+
function ownKeys$C(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; }
|
|
132
133
|
|
|
133
|
-
function _objectSpread$
|
|
134
|
+
function _objectSpread$C(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$C(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$C(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
134
135
|
|
|
135
136
|
function CollectionEntityIcon(_ref) {
|
|
136
137
|
_ref.mediaType;
|
|
137
|
-
var props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
138
|
+
var props = _objectWithoutProperties__default["default"](_ref, _excluded$f);
|
|
138
139
|
|
|
139
|
-
return /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.Folder, _objectSpread$
|
|
140
|
+
return /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.Folder, _objectSpread$C({}, props));
|
|
140
141
|
}
|
|
141
142
|
|
|
142
|
-
function ownKeys$
|
|
143
|
+
function ownKeys$B(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; }
|
|
143
144
|
|
|
144
|
-
function _objectSpread$
|
|
145
|
-
var styles$
|
|
145
|
+
function _objectSpread$B(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$B(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$B(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
146
|
+
var styles$o = function styles() {
|
|
146
147
|
return {
|
|
147
148
|
root: {
|
|
148
149
|
display: 'flex'
|
|
@@ -155,11 +156,11 @@ var styles$i = function styles() {
|
|
|
155
156
|
};
|
|
156
157
|
};
|
|
157
158
|
var MediaIconRoot = /*#__PURE__*/react.forwardRef(function (props, ref) {
|
|
158
|
-
return /*#__PURE__*/react.createElement('span', _objectSpread$
|
|
159
|
+
return /*#__PURE__*/react.createElement('span', _objectSpread$B({
|
|
159
160
|
ref: ref
|
|
160
161
|
}, props));
|
|
161
162
|
});
|
|
162
|
-
var defaultComponents$
|
|
163
|
+
var defaultComponents$o = {
|
|
163
164
|
Root: MediaIconRoot,
|
|
164
165
|
PlaceholderIcon: iconsMaterial.NoteAdd,
|
|
165
166
|
AudioIcon: iconsMaterial.Audiotrack,
|
|
@@ -167,7 +168,7 @@ var defaultComponents$i = {
|
|
|
167
168
|
VideoIcon: iconsMaterial.Movie,
|
|
168
169
|
FileIcon: iconsMaterial.InsertDriveFile
|
|
169
170
|
};
|
|
170
|
-
var name$
|
|
171
|
+
var name$o = 'VdtMediaIcon';
|
|
171
172
|
function MediaIcon(_ref) {
|
|
172
173
|
var type = _ref.type,
|
|
173
174
|
components = _ref.components,
|
|
@@ -179,8 +180,8 @@ function MediaIcon(_ref) {
|
|
|
179
180
|
VideoIcon = components.VideoIcon,
|
|
180
181
|
FileIcon = components.FileIcon;
|
|
181
182
|
var lowerCaseType = (type || '').toLowerCase();
|
|
182
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Root, _objectSpread$
|
|
183
|
-
children: [lowerCaseType === 'video' && /*#__PURE__*/jsxRuntime.jsx(VideoIcon, _objectSpread$
|
|
183
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Root, _objectSpread$B(_objectSpread$B({}, componentProps.root), {}, {
|
|
184
|
+
children: [lowerCaseType === 'video' && /*#__PURE__*/jsxRuntime.jsx(VideoIcon, _objectSpread$B({}, componentProps.videoIcon)), lowerCaseType === 'audio' && /*#__PURE__*/jsxRuntime.jsx(AudioIcon, _objectSpread$B({}, componentProps.audioIcon)), lowerCaseType === 'image' && /*#__PURE__*/jsxRuntime.jsx(ImageIcon, _objectSpread$B({}, componentProps.imageIcon)), !['video', 'audio', 'image'].includes(lowerCaseType) && (typeof mediaType === 'string' ? /*#__PURE__*/jsxRuntime.jsx(FileIcon, _objectSpread$B({}, componentProps.fileIcon)) : /*#__PURE__*/jsxRuntime.jsx(PlaceholderIcon, _objectSpread$B({}, componentProps.placeholderIcon)))]
|
|
184
185
|
}));
|
|
185
186
|
}
|
|
186
187
|
MediaIcon.propTypes = {
|
|
@@ -233,40 +234,40 @@ MediaIcon.defaultProps = {
|
|
|
233
234
|
componentProps: undefined
|
|
234
235
|
};
|
|
235
236
|
|
|
236
|
-
var ComponentWithOverrides$
|
|
237
|
-
name: name$
|
|
237
|
+
var ComponentWithOverrides$o = withOverrides(defaultComponents$o, {
|
|
238
|
+
name: name$o
|
|
238
239
|
})(MediaIcon);
|
|
239
|
-
var Component$
|
|
240
|
-
name: name$
|
|
241
|
-
})(ComponentWithOverrides$
|
|
242
|
-
Component$
|
|
240
|
+
var Component$o = styles$p.withStyles(styles$o, {
|
|
241
|
+
name: name$o
|
|
242
|
+
})(ComponentWithOverrides$o);
|
|
243
|
+
Component$o.displayName = 'MediaIcon';
|
|
243
244
|
|
|
244
|
-
var _excluded$
|
|
245
|
+
var _excluded$e = ["mediaType"];
|
|
245
246
|
|
|
246
|
-
function ownKeys$
|
|
247
|
+
function ownKeys$A(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; }
|
|
247
248
|
|
|
248
|
-
function _objectSpread$
|
|
249
|
+
function _objectSpread$A(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$A(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$A(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
249
250
|
|
|
250
251
|
function ItemEntityIcon(_ref) {
|
|
251
252
|
var mediaType = _ref.mediaType,
|
|
252
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
253
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$e);
|
|
253
254
|
|
|
254
|
-
return mediaType && typeof mediaType === 'string' ? /*#__PURE__*/jsxRuntime.jsx(Component$
|
|
255
|
+
return mediaType && typeof mediaType === 'string' ? /*#__PURE__*/jsxRuntime.jsx(Component$o, _objectSpread$A({
|
|
255
256
|
type: mediaType
|
|
256
|
-
}, props)) : /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.InsertDriveFile, _objectSpread$
|
|
257
|
+
}, props)) : /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.InsertDriveFile, _objectSpread$A({}, props));
|
|
257
258
|
}
|
|
258
259
|
|
|
259
|
-
var _excluded$
|
|
260
|
+
var _excluded$d = ["mediaType"];
|
|
260
261
|
|
|
261
|
-
function ownKeys$
|
|
262
|
+
function ownKeys$z(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; }
|
|
262
263
|
|
|
263
|
-
function _objectSpread$
|
|
264
|
+
function _objectSpread$z(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$z(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$z(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
264
265
|
|
|
265
266
|
function LibraryEntityIcon(_ref) {
|
|
266
267
|
var mediaType = _ref.mediaType,
|
|
267
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
268
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$d);
|
|
268
269
|
|
|
269
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component$
|
|
270
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component$o, _objectSpread$z({
|
|
270
271
|
type: mediaType,
|
|
271
272
|
components: {
|
|
272
273
|
PlaceholderIcon: iconsMaterial.LibraryBooks,
|
|
@@ -278,23 +279,23 @@ function LibraryEntityIcon(_ref) {
|
|
|
278
279
|
}, props));
|
|
279
280
|
}
|
|
280
281
|
|
|
281
|
-
var _excluded$
|
|
282
|
+
var _excluded$c = ["mediaType"];
|
|
282
283
|
|
|
283
|
-
function ownKeys$
|
|
284
|
+
function ownKeys$y(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; }
|
|
284
285
|
|
|
285
|
-
function _objectSpread$
|
|
286
|
+
function _objectSpread$y(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$y(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$y(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
286
287
|
|
|
287
288
|
function PlaceholderEntityIcon(_ref) {
|
|
288
289
|
_ref.mediaType;
|
|
289
|
-
var props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
290
|
+
var props = _objectWithoutProperties__default["default"](_ref, _excluded$c);
|
|
290
291
|
|
|
291
|
-
return /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.NoteAdd, _objectSpread$
|
|
292
|
+
return /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.NoteAdd, _objectSpread$y({}, props));
|
|
292
293
|
}
|
|
293
294
|
|
|
294
|
-
function ownKeys$
|
|
295
|
+
function ownKeys$x(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; }
|
|
295
296
|
|
|
296
|
-
function _objectSpread$
|
|
297
|
-
var styles$
|
|
297
|
+
function _objectSpread$x(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$x(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$x(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
298
|
+
var styles$n = function styles(theme) {
|
|
298
299
|
return {
|
|
299
300
|
root: {
|
|
300
301
|
display: 'flex',
|
|
@@ -307,18 +308,18 @@ var styles$h = function styles(theme) {
|
|
|
307
308
|
};
|
|
308
309
|
};
|
|
309
310
|
var EntityIconRoot = /*#__PURE__*/react.forwardRef(function (props, ref) {
|
|
310
|
-
return /*#__PURE__*/react.createElement('span', _objectSpread$
|
|
311
|
+
return /*#__PURE__*/react.createElement('span', _objectSpread$x({
|
|
311
312
|
ref: ref
|
|
312
313
|
}, props));
|
|
313
314
|
});
|
|
314
|
-
var defaultComponents$
|
|
315
|
+
var defaultComponents$n = {
|
|
315
316
|
Root: EntityIconRoot,
|
|
316
317
|
PlaceholderIcon: PlaceholderEntityIcon,
|
|
317
318
|
ItemIcon: ItemEntityIcon,
|
|
318
319
|
CollectionIcon: CollectionEntityIcon,
|
|
319
320
|
LibraryIcon: LibraryEntityIcon
|
|
320
321
|
};
|
|
321
|
-
var name$
|
|
322
|
+
var name$n = 'VdtEntityIcon';
|
|
322
323
|
function EntityIcon(_ref) {
|
|
323
324
|
var entityType = _ref.entityType,
|
|
324
325
|
mediaType = _ref.mediaType,
|
|
@@ -330,14 +331,14 @@ function EntityIcon(_ref) {
|
|
|
330
331
|
CollectionIcon = components.CollectionIcon,
|
|
331
332
|
LibraryIcon = components.LibraryIcon;
|
|
332
333
|
var lowerCaseEntityType = entityType === null || entityType === void 0 ? void 0 : entityType.toLowerCase();
|
|
333
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Root, _objectSpread$
|
|
334
|
-
children: [lowerCaseEntityType === 'item' && /*#__PURE__*/jsxRuntime.jsx(ItemIcon, _objectSpread$
|
|
334
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Root, _objectSpread$x(_objectSpread$x({}, componentProps.root), {}, {
|
|
335
|
+
children: [lowerCaseEntityType === 'item' && /*#__PURE__*/jsxRuntime.jsx(ItemIcon, _objectSpread$x({
|
|
335
336
|
mediaType: mediaType
|
|
336
|
-
}, componentProps.itemIcon)), lowerCaseEntityType === 'collection' && /*#__PURE__*/jsxRuntime.jsx(CollectionIcon, _objectSpread$
|
|
337
|
+
}, componentProps.itemIcon)), lowerCaseEntityType === 'collection' && /*#__PURE__*/jsxRuntime.jsx(CollectionIcon, _objectSpread$x({
|
|
337
338
|
mediaType: mediaType
|
|
338
|
-
}, componentProps.collectionIcon)), lowerCaseEntityType === 'library' && /*#__PURE__*/jsxRuntime.jsx(LibraryIcon, _objectSpread$
|
|
339
|
+
}, componentProps.collectionIcon)), lowerCaseEntityType === 'library' && /*#__PURE__*/jsxRuntime.jsx(LibraryIcon, _objectSpread$x({
|
|
339
340
|
mediaType: mediaType
|
|
340
|
-
}, componentProps.libraryIcon)), !['item', 'collection', 'library'].includes(lowerCaseEntityType) && /*#__PURE__*/jsxRuntime.jsx(PlaceholderIcon, _objectSpread$
|
|
341
|
+
}, componentProps.libraryIcon)), !['item', 'collection', 'library'].includes(lowerCaseEntityType) && /*#__PURE__*/jsxRuntime.jsx(PlaceholderIcon, _objectSpread$x({}, componentProps.placeholderIcon))]
|
|
341
342
|
}));
|
|
342
343
|
}
|
|
343
344
|
EntityIcon.propTypes = {
|
|
@@ -393,17 +394,17 @@ EntityIcon.defaultProps = {
|
|
|
393
394
|
componentProps: undefined
|
|
394
395
|
};
|
|
395
396
|
|
|
396
|
-
var ComponentWithOverrides$
|
|
397
|
-
name: name$
|
|
397
|
+
var ComponentWithOverrides$n = withOverrides(defaultComponents$n, {
|
|
398
|
+
name: name$n
|
|
398
399
|
})(EntityIcon);
|
|
399
|
-
var Component$
|
|
400
|
-
name: name$
|
|
401
|
-
})(ComponentWithOverrides$
|
|
402
|
-
Component$
|
|
400
|
+
var Component$n = styles$p.withStyles(styles$n, {
|
|
401
|
+
name: name$n
|
|
402
|
+
})(ComponentWithOverrides$n);
|
|
403
|
+
Component$n.displayName = 'EntityIcon';
|
|
403
404
|
|
|
404
|
-
function ownKeys$
|
|
405
|
+
function ownKeys$w(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; }
|
|
405
406
|
|
|
406
|
-
function _objectSpread$
|
|
407
|
+
function _objectSpread$w(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$w(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$w(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
407
408
|
|
|
408
409
|
function LoadingSlot(_ref) {
|
|
409
410
|
var variant = _ref.variant;
|
|
@@ -417,7 +418,7 @@ function LoadingSlot(_ref) {
|
|
|
417
418
|
});
|
|
418
419
|
}
|
|
419
420
|
|
|
420
|
-
var styles$
|
|
421
|
+
var styles$m = function styles(theme) {
|
|
421
422
|
return {
|
|
422
423
|
root: {
|
|
423
424
|
transition: 'background-color .2s ease-out',
|
|
@@ -428,11 +429,11 @@ var styles$g = function styles(theme) {
|
|
|
428
429
|
}
|
|
429
430
|
};
|
|
430
431
|
};
|
|
431
|
-
var defaultComponents$
|
|
432
|
+
var defaultComponents$m = {
|
|
432
433
|
Root: material.Avatar,
|
|
433
|
-
Icon: Component$
|
|
434
|
+
Icon: Component$n
|
|
434
435
|
};
|
|
435
|
-
var name$
|
|
436
|
+
var name$m = 'VdtEntityAvatar';
|
|
436
437
|
function EntityAvatar(_ref2) {
|
|
437
438
|
var entityType = _ref2.entityType,
|
|
438
439
|
mediaType = _ref2.mediaType,
|
|
@@ -443,7 +444,7 @@ function EntityAvatar(_ref2) {
|
|
|
443
444
|
componentProps = _ref2.componentProps;
|
|
444
445
|
var Avatar = components.Root,
|
|
445
446
|
Icon = components.Icon;
|
|
446
|
-
return /*#__PURE__*/jsxRuntime.jsx(Avatar, _objectSpread$
|
|
447
|
+
return /*#__PURE__*/jsxRuntime.jsx(Avatar, _objectSpread$w(_objectSpread$w({
|
|
447
448
|
variant: variant,
|
|
448
449
|
sx: isLoading ? {
|
|
449
450
|
backgroundColor: 'unset !important'
|
|
@@ -451,7 +452,7 @@ function EntityAvatar(_ref2) {
|
|
|
451
452
|
}, componentProps.root), {}, {
|
|
452
453
|
children: isLoading ? loadingSlot && loadingSlot({
|
|
453
454
|
variant: variant
|
|
454
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(Icon, _objectSpread$
|
|
455
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(Icon, _objectSpread$w(_objectSpread$w({
|
|
455
456
|
entityType: entityType
|
|
456
457
|
}, mediaType ? {
|
|
457
458
|
mediaType: mediaType
|
|
@@ -524,26 +525,26 @@ EntityAvatar.defaultProps = {
|
|
|
524
525
|
componentProps: undefined
|
|
525
526
|
};
|
|
526
527
|
|
|
527
|
-
var ComponentWithOverrides$
|
|
528
|
-
name: name$
|
|
528
|
+
var ComponentWithOverrides$m = withOverrides(defaultComponents$m, {
|
|
529
|
+
name: name$m
|
|
529
530
|
})(EntityAvatar);
|
|
530
|
-
var Component$
|
|
531
|
-
name: name$
|
|
532
|
-
})(ComponentWithOverrides$
|
|
533
|
-
Component$
|
|
531
|
+
var Component$m = styles$p.withStyles(styles$m, {
|
|
532
|
+
name: name$m
|
|
533
|
+
})(ComponentWithOverrides$m);
|
|
534
|
+
Component$m.displayName = 'EntityAvatar';
|
|
534
535
|
|
|
535
|
-
var _excluded$
|
|
536
|
+
var _excluded$b = ["itemType", "collectionType", "isLoading", "variant"];
|
|
536
537
|
|
|
537
|
-
function ownKeys$
|
|
538
|
+
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; }
|
|
538
539
|
|
|
539
|
-
function _objectSpread$
|
|
540
|
+
function _objectSpread$v(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$v(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$v(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
540
541
|
|
|
541
542
|
function EntityListItemAvatar(_ref) {
|
|
542
543
|
var itemType = _ref.itemType,
|
|
543
544
|
collectionType = _ref.collectionType,
|
|
544
545
|
isLoading = _ref.isLoading,
|
|
545
546
|
variant = _ref.variant,
|
|
546
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
547
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$b);
|
|
547
548
|
|
|
548
549
|
var _ref2 = itemType || collectionType || {},
|
|
549
550
|
metadata = _ref2.metadata;
|
|
@@ -557,8 +558,8 @@ function EntityListItemAvatar(_ref) {
|
|
|
557
558
|
mimeType = _parseMetadataType.mimeType;
|
|
558
559
|
|
|
559
560
|
var mediaType = typeof mimeType === 'string' ? mimeType.split('/')[0] : undefined;
|
|
560
|
-
return /*#__PURE__*/jsxRuntime.jsx(material.ListItemAvatar, _objectSpread$
|
|
561
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Component$
|
|
561
|
+
return /*#__PURE__*/jsxRuntime.jsx(material.ListItemAvatar, _objectSpread$v(_objectSpread$v({}, props), {}, {
|
|
562
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Component$m, {
|
|
562
563
|
entityType: entityType,
|
|
563
564
|
mediaType: mediaType,
|
|
564
565
|
isLoading: isLoading,
|
|
@@ -567,18 +568,18 @@ function EntityListItemAvatar(_ref) {
|
|
|
567
568
|
}));
|
|
568
569
|
}
|
|
569
570
|
|
|
570
|
-
var _excluded$
|
|
571
|
+
var _excluded$a = ["itemType", "collectionType", "onClick", "isLoading"];
|
|
571
572
|
|
|
572
|
-
function ownKeys$
|
|
573
|
+
function ownKeys$u(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; }
|
|
573
574
|
|
|
574
|
-
function _objectSpread$
|
|
575
|
+
function _objectSpread$u(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$u(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$u(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
575
576
|
|
|
576
577
|
function EntityListItemButton(_ref) {
|
|
577
578
|
var itemType = _ref.itemType,
|
|
578
579
|
collectionType = _ref.collectionType,
|
|
579
580
|
_onClick = _ref.onClick,
|
|
580
581
|
isLoading = _ref.isLoading,
|
|
581
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
582
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$a);
|
|
582
583
|
|
|
583
584
|
var entity = itemType && {
|
|
584
585
|
itemType: itemType
|
|
@@ -587,7 +588,7 @@ function EntityListItemButton(_ref) {
|
|
|
587
588
|
};
|
|
588
589
|
var isClickable = !isLoading && !!_onClick;
|
|
589
590
|
var OptionalButtonComponent = isClickable ? material.ListItemButton : react.Fragment;
|
|
590
|
-
var OptionalButtonProps = isClickable ? _objectSpread$
|
|
591
|
+
var OptionalButtonProps = isClickable ? _objectSpread$u({
|
|
591
592
|
role: undefined,
|
|
592
593
|
onClick: function onClick(e) {
|
|
593
594
|
return _onClick(e, entity);
|
|
@@ -595,14 +596,14 @@ function EntityListItemButton(_ref) {
|
|
|
595
596
|
}, props) : {
|
|
596
597
|
children: props === null || props === void 0 ? void 0 : props.children
|
|
597
598
|
};
|
|
598
|
-
return /*#__PURE__*/jsxRuntime.jsx(OptionalButtonComponent, _objectSpread$
|
|
599
|
+
return /*#__PURE__*/jsxRuntime.jsx(OptionalButtonComponent, _objectSpread$u({}, OptionalButtonProps));
|
|
599
600
|
}
|
|
600
601
|
|
|
601
|
-
var _excluded$
|
|
602
|
+
var _excluded$9 = ["itemType", "collectionType", "onDelete", "isLoading"];
|
|
602
603
|
|
|
603
|
-
function ownKeys$
|
|
604
|
+
function ownKeys$t(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; }
|
|
604
605
|
|
|
605
|
-
function _objectSpread$
|
|
606
|
+
function _objectSpread$t(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$t(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$t(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
606
607
|
|
|
607
608
|
function LoadingDelete() {
|
|
608
609
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
@@ -621,7 +622,7 @@ function EntityListItemSecondaryAction(_ref) {
|
|
|
621
622
|
collectionType = _ref.collectionType,
|
|
622
623
|
onDelete = _ref.onDelete,
|
|
623
624
|
isLoading = _ref.isLoading,
|
|
624
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
625
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$9);
|
|
625
626
|
|
|
626
627
|
var entity = itemType && {
|
|
627
628
|
itemType: itemType
|
|
@@ -635,7 +636,7 @@ function EntityListItemSecondaryAction(_ref) {
|
|
|
635
636
|
return onDelete(e, entity);
|
|
636
637
|
};
|
|
637
638
|
|
|
638
|
-
return /*#__PURE__*/jsxRuntime.jsx(material.ListItemSecondaryAction, _objectSpread$
|
|
639
|
+
return /*#__PURE__*/jsxRuntime.jsx(material.ListItemSecondaryAction, _objectSpread$t(_objectSpread$t({}, props), {}, {
|
|
639
640
|
children: onDelete && (isLoading ? /*#__PURE__*/jsxRuntime.jsx(LoadingDelete, {}) : /*#__PURE__*/jsxRuntime.jsx(material.IconButton, {
|
|
640
641
|
onClick: handleDelete,
|
|
641
642
|
children: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.Delete, {})
|
|
@@ -643,11 +644,11 @@ function EntityListItemSecondaryAction(_ref) {
|
|
|
643
644
|
}));
|
|
644
645
|
}
|
|
645
646
|
|
|
646
|
-
var _excluded$
|
|
647
|
+
var _excluded$8 = ["itemType", "collectionType", "primary", "secondary", "isLoading"];
|
|
647
648
|
|
|
648
|
-
function ownKeys$
|
|
649
|
+
function ownKeys$s(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; }
|
|
649
650
|
|
|
650
|
-
function _objectSpread$
|
|
651
|
+
function _objectSpread$s(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$s(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$s(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
651
652
|
|
|
652
653
|
function EntityListItemText(_ref) {
|
|
653
654
|
var itemType = _ref.itemType,
|
|
@@ -655,7 +656,7 @@ function EntityListItemText(_ref) {
|
|
|
655
656
|
primary = _ref.primary,
|
|
656
657
|
secondary = _ref.secondary,
|
|
657
658
|
isLoading = _ref.isLoading,
|
|
658
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
659
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$8);
|
|
659
660
|
|
|
660
661
|
var _ref2 = itemType || collectionType || {},
|
|
661
662
|
id = _ref2.id;
|
|
@@ -693,7 +694,7 @@ function EntityListItemText(_ref) {
|
|
|
693
694
|
|
|
694
695
|
var primaryText = getText(primary);
|
|
695
696
|
var secondaryText = getText(secondary);
|
|
696
|
-
return /*#__PURE__*/jsxRuntime.jsx(material.ListItemText, _objectSpread$
|
|
697
|
+
return /*#__PURE__*/jsxRuntime.jsx(material.ListItemText, _objectSpread$s({
|
|
697
698
|
primary: isLoading ? /*#__PURE__*/jsxRuntime.jsx(material.Skeleton, {
|
|
698
699
|
width: 60
|
|
699
700
|
}) : primaryText || id,
|
|
@@ -703,10 +704,10 @@ function EntityListItemText(_ref) {
|
|
|
703
704
|
}, props));
|
|
704
705
|
}
|
|
705
706
|
|
|
706
|
-
function ownKeys$
|
|
707
|
+
function ownKeys$r(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; }
|
|
707
708
|
|
|
708
|
-
function _objectSpread$
|
|
709
|
-
var styles$
|
|
709
|
+
function _objectSpread$r(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$r(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$r(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
710
|
+
var styles$l = function styles() {
|
|
710
711
|
return {
|
|
711
712
|
root: {},
|
|
712
713
|
listItemButton: {},
|
|
@@ -715,14 +716,14 @@ var styles$f = function styles() {
|
|
|
715
716
|
listItemSecondaryAction: {}
|
|
716
717
|
};
|
|
717
718
|
};
|
|
718
|
-
var defaultComponents$
|
|
719
|
+
var defaultComponents$l = {
|
|
719
720
|
Root: material.ListItem,
|
|
720
721
|
ListItemButton: EntityListItemButton,
|
|
721
722
|
ListItemAvatar: EntityListItemAvatar,
|
|
722
723
|
ListItemText: EntityListItemText,
|
|
723
724
|
ListItemSecondaryAction: EntityListItemSecondaryAction
|
|
724
725
|
};
|
|
725
|
-
var name$
|
|
726
|
+
var name$l = 'VdtCollectionListItem';
|
|
726
727
|
function CollectionListItem(_ref) {
|
|
727
728
|
var collectionType = _ref.collectionType,
|
|
728
729
|
primary = _ref.primary,
|
|
@@ -739,25 +740,25 @@ function CollectionListItem(_ref) {
|
|
|
739
740
|
ListItemButton = components.ListItemButton,
|
|
740
741
|
ListItemSecondaryAction = components.ListItemSecondaryAction;
|
|
741
742
|
var isClickable = !isLoading && !!onClick && !!ListItemButton;
|
|
742
|
-
return /*#__PURE__*/jsxRuntime.jsxs(ListItem, _objectSpread$
|
|
743
|
+
return /*#__PURE__*/jsxRuntime.jsxs(ListItem, _objectSpread$r(_objectSpread$r({
|
|
743
744
|
disablePadding: isClickable
|
|
744
745
|
}, componentProps.root), {}, {
|
|
745
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs(ListItemButton, _objectSpread$
|
|
746
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(ListItemButton, _objectSpread$r(_objectSpread$r({
|
|
746
747
|
collectionType: collectionType,
|
|
747
748
|
onClick: onClick,
|
|
748
749
|
isLoading: isLoading
|
|
749
750
|
}, componentProps.listItemButton), {}, {
|
|
750
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(ListItemAvatar, _objectSpread$
|
|
751
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(ListItemAvatar, _objectSpread$r({
|
|
751
752
|
collectionType: collectionType,
|
|
752
753
|
variant: avatarVariant,
|
|
753
754
|
isLoading: isLoading
|
|
754
|
-
}, componentProps.listItemAvatar)), /*#__PURE__*/jsxRuntime.jsx(ListItemText, _objectSpread$
|
|
755
|
+
}, componentProps.listItemAvatar)), /*#__PURE__*/jsxRuntime.jsx(ListItemText, _objectSpread$r({
|
|
755
756
|
collectionType: collectionType,
|
|
756
757
|
primary: primary,
|
|
757
758
|
secondary: secondary,
|
|
758
759
|
isLoading: isLoading
|
|
759
760
|
}, componentProps.listItemText))]
|
|
760
|
-
})), /*#__PURE__*/jsxRuntime.jsx(ListItemSecondaryAction, _objectSpread$
|
|
761
|
+
})), /*#__PURE__*/jsxRuntime.jsx(ListItemSecondaryAction, _objectSpread$r({
|
|
761
762
|
collectionType: collectionType,
|
|
762
763
|
onDelete: onDelete,
|
|
763
764
|
isLoading: isLoading
|
|
@@ -861,17 +862,17 @@ CollectionListItem.defaultProps = {
|
|
|
861
862
|
componentProps: undefined
|
|
862
863
|
};
|
|
863
864
|
|
|
864
|
-
var ComponentWithOverrides$
|
|
865
|
-
name: name$
|
|
865
|
+
var ComponentWithOverrides$l = withOverrides(defaultComponents$l, {
|
|
866
|
+
name: name$l
|
|
866
867
|
})(CollectionListItem);
|
|
867
|
-
var Component$
|
|
868
|
-
name: name$
|
|
869
|
-
})(ComponentWithOverrides$
|
|
870
|
-
Component$
|
|
868
|
+
var Component$l = styles$p.withStyles(styles$l, {
|
|
869
|
+
name: name$l
|
|
870
|
+
})(ComponentWithOverrides$l);
|
|
871
|
+
Component$l.displayName = 'CollectionListItem';
|
|
871
872
|
|
|
872
|
-
function ownKeys$
|
|
873
|
+
function ownKeys$q(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; }
|
|
873
874
|
|
|
874
|
-
function _objectSpread$
|
|
875
|
+
function _objectSpread$q(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$q(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$q(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
875
876
|
|
|
876
877
|
function EmptySlot$2() {
|
|
877
878
|
return /*#__PURE__*/jsxRuntime.jsx(material.Typography, {
|
|
@@ -879,7 +880,7 @@ function EmptySlot$2() {
|
|
|
879
880
|
});
|
|
880
881
|
}
|
|
881
882
|
|
|
882
|
-
var styles$
|
|
883
|
+
var styles$k = function styles() {
|
|
883
884
|
return {
|
|
884
885
|
root: {
|
|
885
886
|
width: '100%'
|
|
@@ -888,12 +889,12 @@ var styles$e = function styles() {
|
|
|
888
889
|
listItem: {}
|
|
889
890
|
};
|
|
890
891
|
};
|
|
891
|
-
var defaultComponents$
|
|
892
|
+
var defaultComponents$k = {
|
|
892
893
|
Root: material.List,
|
|
893
894
|
ListSubheader: material.ListSubheader,
|
|
894
|
-
ListItem: Component$
|
|
895
|
+
ListItem: Component$l
|
|
895
896
|
};
|
|
896
|
-
var name$
|
|
897
|
+
var name$k = 'VdtCollectionList';
|
|
897
898
|
function CollectionList(_ref) {
|
|
898
899
|
var collectionListType = _ref.collectionListType,
|
|
899
900
|
primary = _ref.primary,
|
|
@@ -927,14 +928,14 @@ function CollectionList(_ref) {
|
|
|
927
928
|
};
|
|
928
929
|
})) || [];
|
|
929
930
|
}, [collectionListType.collection]);
|
|
930
|
-
return /*#__PURE__*/jsxRuntime.jsxs(List, _objectSpread$
|
|
931
|
+
return /*#__PURE__*/jsxRuntime.jsxs(List, _objectSpread$q(_objectSpread$q({
|
|
931
932
|
dense: dense
|
|
932
933
|
}, componentProps.root), {}, {
|
|
933
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(ListSubheader, _objectSpread$
|
|
934
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(ListSubheader, _objectSpread$q({}, componentProps.listSubheader)), /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
934
935
|
children: [!isLoading && listItems.length === 0 && showSlot(emptySlot), (isLoading ? loadingListItems : listItems).map(function (_ref2) {
|
|
935
936
|
var key = _ref2.key,
|
|
936
937
|
collectionType = _ref2.collectionType;
|
|
937
|
-
return /*#__PURE__*/jsxRuntime.jsx(ListItem, _objectSpread$
|
|
938
|
+
return /*#__PURE__*/jsxRuntime.jsx(ListItem, _objectSpread$q({
|
|
938
939
|
collectionType: collectionType,
|
|
939
940
|
primary: primary,
|
|
940
941
|
secondary: secondary,
|
|
@@ -1060,18 +1061,18 @@ CollectionList.defaultProps = {
|
|
|
1060
1061
|
componentProps: undefined
|
|
1061
1062
|
};
|
|
1062
1063
|
|
|
1063
|
-
var ComponentWithOverrides$
|
|
1064
|
-
name: name$
|
|
1064
|
+
var ComponentWithOverrides$k = withOverrides(defaultComponents$k, {
|
|
1065
|
+
name: name$k
|
|
1065
1066
|
})(CollectionList);
|
|
1066
|
-
var Component$
|
|
1067
|
-
name: name$
|
|
1068
|
-
})(ComponentWithOverrides$
|
|
1069
|
-
Component$
|
|
1067
|
+
var Component$k = styles$p.withStyles(styles$k, {
|
|
1068
|
+
name: name$k
|
|
1069
|
+
})(ComponentWithOverrides$k);
|
|
1070
|
+
Component$k.displayName = 'CollectionList';
|
|
1070
1071
|
|
|
1071
|
-
function ownKeys$
|
|
1072
|
+
function ownKeys$p(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; }
|
|
1072
1073
|
|
|
1073
|
-
function _objectSpread$
|
|
1074
|
-
var styles$
|
|
1074
|
+
function _objectSpread$p(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$p(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$p(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1075
|
+
var styles$j = function styles() {
|
|
1075
1076
|
return {
|
|
1076
1077
|
root: {},
|
|
1077
1078
|
listItemButton: {},
|
|
@@ -1080,14 +1081,14 @@ var styles$d = function styles() {
|
|
|
1080
1081
|
listItemSecondaryAction: {}
|
|
1081
1082
|
};
|
|
1082
1083
|
};
|
|
1083
|
-
var defaultComponents$
|
|
1084
|
+
var defaultComponents$j = {
|
|
1084
1085
|
Root: material.ListItem,
|
|
1085
1086
|
ListItemButton: EntityListItemButton,
|
|
1086
1087
|
ListItemAvatar: EntityListItemAvatar,
|
|
1087
1088
|
ListItemText: EntityListItemText,
|
|
1088
1089
|
ListItemSecondaryAction: EntityListItemSecondaryAction
|
|
1089
1090
|
};
|
|
1090
|
-
var name$
|
|
1091
|
+
var name$j = 'VdtItemListItem';
|
|
1091
1092
|
function ItemListItem(_ref) {
|
|
1092
1093
|
var itemType = _ref.itemType,
|
|
1093
1094
|
primary = _ref.primary,
|
|
@@ -1104,25 +1105,25 @@ function ItemListItem(_ref) {
|
|
|
1104
1105
|
ListItemButton = components.ListItemButton,
|
|
1105
1106
|
ListItemSecondaryAction = components.ListItemSecondaryAction;
|
|
1106
1107
|
var isClickable = !isLoading && !!onClick && !!ListItemButton;
|
|
1107
|
-
return /*#__PURE__*/jsxRuntime.jsxs(ListItem, _objectSpread$
|
|
1108
|
+
return /*#__PURE__*/jsxRuntime.jsxs(ListItem, _objectSpread$p(_objectSpread$p({
|
|
1108
1109
|
disablePadding: isClickable
|
|
1109
1110
|
}, componentProps.root), {}, {
|
|
1110
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs(ListItemButton, _objectSpread$
|
|
1111
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(ListItemButton, _objectSpread$p(_objectSpread$p({
|
|
1111
1112
|
itemType: itemType,
|
|
1112
1113
|
onClick: onClick,
|
|
1113
1114
|
isLoading: isLoading
|
|
1114
1115
|
}, componentProps.listItemButton), {}, {
|
|
1115
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(ListItemAvatar, _objectSpread$
|
|
1116
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(ListItemAvatar, _objectSpread$p({
|
|
1116
1117
|
itemType: itemType,
|
|
1117
1118
|
variant: avatarVariant,
|
|
1118
1119
|
isLoading: isLoading
|
|
1119
|
-
}, componentProps.listItemAvatar)), /*#__PURE__*/jsxRuntime.jsx(ListItemText, _objectSpread$
|
|
1120
|
+
}, componentProps.listItemAvatar)), /*#__PURE__*/jsxRuntime.jsx(ListItemText, _objectSpread$p({
|
|
1120
1121
|
itemType: itemType,
|
|
1121
1122
|
primary: primary,
|
|
1122
1123
|
secondary: secondary,
|
|
1123
1124
|
isLoading: isLoading
|
|
1124
1125
|
}, componentProps.listItemText))]
|
|
1125
|
-
})), /*#__PURE__*/jsxRuntime.jsx(ListItemSecondaryAction, _objectSpread$
|
|
1126
|
+
})), /*#__PURE__*/jsxRuntime.jsx(ListItemSecondaryAction, _objectSpread$p({
|
|
1126
1127
|
itemType: itemType,
|
|
1127
1128
|
onDelete: onDelete,
|
|
1128
1129
|
isLoading: isLoading
|
|
@@ -1226,17 +1227,17 @@ ItemListItem.defaultProps = {
|
|
|
1226
1227
|
componentProps: undefined
|
|
1227
1228
|
};
|
|
1228
1229
|
|
|
1229
|
-
var ComponentWithOverrides$
|
|
1230
|
-
name: name$
|
|
1230
|
+
var ComponentWithOverrides$j = withOverrides(defaultComponents$j, {
|
|
1231
|
+
name: name$j
|
|
1231
1232
|
})(ItemListItem);
|
|
1232
|
-
var Component$
|
|
1233
|
-
name: name$
|
|
1234
|
-
})(ComponentWithOverrides$
|
|
1235
|
-
Component$
|
|
1233
|
+
var Component$j = styles$p.withStyles(styles$j, {
|
|
1234
|
+
name: name$j
|
|
1235
|
+
})(ComponentWithOverrides$j);
|
|
1236
|
+
Component$j.displayName = 'ItemListItem';
|
|
1236
1237
|
|
|
1237
|
-
function ownKeys$
|
|
1238
|
+
function ownKeys$o(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; }
|
|
1238
1239
|
|
|
1239
|
-
function _objectSpread$
|
|
1240
|
+
function _objectSpread$o(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1240
1241
|
|
|
1241
1242
|
function EmptySlot$1() {
|
|
1242
1243
|
return /*#__PURE__*/jsxRuntime.jsx(material.Typography, {
|
|
@@ -1244,7 +1245,7 @@ function EmptySlot$1() {
|
|
|
1244
1245
|
});
|
|
1245
1246
|
}
|
|
1246
1247
|
|
|
1247
|
-
var styles$
|
|
1248
|
+
var styles$i = function styles() {
|
|
1248
1249
|
return {
|
|
1249
1250
|
root: {
|
|
1250
1251
|
width: '100%'
|
|
@@ -1255,15 +1256,15 @@ var styles$c = function styles() {
|
|
|
1255
1256
|
collectionListItem: {}
|
|
1256
1257
|
};
|
|
1257
1258
|
};
|
|
1258
|
-
var defaultComponents$
|
|
1259
|
+
var defaultComponents$i = {
|
|
1259
1260
|
Root: material.List,
|
|
1260
1261
|
ListSubheader: material.ListSubheader,
|
|
1261
1262
|
ListItem: null,
|
|
1262
1263
|
// Override either CollectionListItem or ItemListItem
|
|
1263
|
-
CollectionListItem: withOverrideRef(Component$
|
|
1264
|
-
ItemListItem: withOverrideRef(Component$
|
|
1264
|
+
CollectionListItem: withOverrideRef(Component$l),
|
|
1265
|
+
ItemListItem: withOverrideRef(Component$j)
|
|
1265
1266
|
};
|
|
1266
|
-
var name$
|
|
1267
|
+
var name$i = 'VdtEntityList';
|
|
1267
1268
|
function EntityList(_ref) {
|
|
1268
1269
|
var entities = _ref.entities,
|
|
1269
1270
|
primary = _ref.primary,
|
|
@@ -1307,7 +1308,7 @@ function EntityList(_ref) {
|
|
|
1307
1308
|
if (itemType) {
|
|
1308
1309
|
return {
|
|
1309
1310
|
component: ItemListItem,
|
|
1310
|
-
props: _objectSpread$
|
|
1311
|
+
props: _objectSpread$o(_objectSpread$o({
|
|
1311
1312
|
itemType: itemType
|
|
1312
1313
|
}, componentProps.listItem), componentProps.itemListItem)
|
|
1313
1314
|
};
|
|
@@ -1316,7 +1317,7 @@ function EntityList(_ref) {
|
|
|
1316
1317
|
if (collectionType) {
|
|
1317
1318
|
return {
|
|
1318
1319
|
component: CollectionListItem,
|
|
1319
|
-
props: _objectSpread$
|
|
1320
|
+
props: _objectSpread$o(_objectSpread$o({
|
|
1320
1321
|
collectionType: collectionType
|
|
1321
1322
|
}, componentProps.listItem), componentProps.collectionListItem)
|
|
1322
1323
|
};
|
|
@@ -1329,10 +1330,10 @@ function EntityList(_ref) {
|
|
|
1329
1330
|
};
|
|
1330
1331
|
};
|
|
1331
1332
|
|
|
1332
|
-
return /*#__PURE__*/jsxRuntime.jsxs(List, _objectSpread$
|
|
1333
|
+
return /*#__PURE__*/jsxRuntime.jsxs(List, _objectSpread$o(_objectSpread$o({
|
|
1333
1334
|
dense: dense
|
|
1334
1335
|
}, componentProps.root), {}, {
|
|
1335
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(ListSubheader, _objectSpread$
|
|
1336
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(ListSubheader, _objectSpread$o({}, componentProps.listSubheader)), /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1336
1337
|
children: [!isLoading && listItems.length === 0 && showSlot(emptySlot), (isLoading ? loadingListItems : listItems).map(function (_ref4) {
|
|
1337
1338
|
var key = _ref4.key,
|
|
1338
1339
|
itemType = _ref4.itemType,
|
|
@@ -1345,7 +1346,7 @@ function EntityList(_ref) {
|
|
|
1345
1346
|
ListItemComponent = _getListItem.component,
|
|
1346
1347
|
listItemProps = _getListItem.props;
|
|
1347
1348
|
|
|
1348
|
-
return /*#__PURE__*/jsxRuntime.jsx(ListItemComponent, _objectSpread$
|
|
1349
|
+
return /*#__PURE__*/jsxRuntime.jsx(ListItemComponent, _objectSpread$o({
|
|
1349
1350
|
primary: primary,
|
|
1350
1351
|
secondary: secondary,
|
|
1351
1352
|
avatarVariant: avatarVariant,
|
|
@@ -1481,19 +1482,19 @@ EntityList.defaultProps = {
|
|
|
1481
1482
|
componentProps: undefined
|
|
1482
1483
|
};
|
|
1483
1484
|
|
|
1484
|
-
var ComponentWithOverrides$
|
|
1485
|
-
name: name$
|
|
1485
|
+
var ComponentWithOverrides$i = withOverrides(defaultComponents$i, {
|
|
1486
|
+
name: name$i
|
|
1486
1487
|
})(EntityList);
|
|
1487
|
-
var Component$
|
|
1488
|
-
name: name$
|
|
1489
|
-
})(ComponentWithOverrides$
|
|
1490
|
-
Component$
|
|
1488
|
+
var Component$i = styles$p.withStyles(styles$i, {
|
|
1489
|
+
name: name$i
|
|
1490
|
+
})(ComponentWithOverrides$i);
|
|
1491
|
+
Component$i.displayName = 'EntityList';
|
|
1491
1492
|
|
|
1492
|
-
var _excluded$
|
|
1493
|
+
var _excluded$7 = ["themes", "defaultPaletteKey", "lightPaletteKey", "darkPaletteKey", "systemPaletteKey", "localStoragePaletteKey", "MuiThemeProviderProps", "CssBaselineProps", "children"];
|
|
1493
1494
|
|
|
1494
|
-
function ownKeys$
|
|
1495
|
+
function ownKeys$n(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; }
|
|
1495
1496
|
|
|
1496
|
-
function _objectSpread$
|
|
1497
|
+
function _objectSpread$n(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1497
1498
|
var light = material.createTheme({
|
|
1498
1499
|
palette: {
|
|
1499
1500
|
type: 'light'
|
|
@@ -1516,7 +1517,7 @@ function ThemeProvider(_ref) {
|
|
|
1516
1517
|
MuiThemeProviderProps = _ref.MuiThemeProviderProps,
|
|
1517
1518
|
CssBaselineProps = _ref.CssBaselineProps,
|
|
1518
1519
|
children = _ref.children,
|
|
1519
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
1520
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$7);
|
|
1520
1521
|
|
|
1521
1522
|
var prefersDarkMode = useMediaQuery__default["default"]('(prefers-color-scheme: dark)');
|
|
1522
1523
|
var preferredMode = react.useMemo(function () {
|
|
@@ -1563,7 +1564,7 @@ function ThemeProvider(_ref) {
|
|
|
1563
1564
|
}, [palette, themes, updatePalette]);
|
|
1564
1565
|
var isDefaultPalette = palette === defaultPaletteKey;
|
|
1565
1566
|
var contextValue = react.useMemo(function () {
|
|
1566
|
-
return _objectSpread$
|
|
1567
|
+
return _objectSpread$n({
|
|
1567
1568
|
theme: theme,
|
|
1568
1569
|
palette: palette,
|
|
1569
1570
|
updatePalette: updatePalette,
|
|
@@ -1575,10 +1576,10 @@ function ThemeProvider(_ref) {
|
|
|
1575
1576
|
}, [isDefaultPalette, palette, theme, themes, togglePalette, updatePalette]);
|
|
1576
1577
|
return /*#__PURE__*/jsxRuntime.jsx(ThemeContext.Provider, {
|
|
1577
1578
|
value: contextValue,
|
|
1578
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(material.ThemeProvider, _objectSpread$
|
|
1579
|
-
theme: material.createTheme(_objectSpread$
|
|
1579
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(material.ThemeProvider, _objectSpread$n(_objectSpread$n({
|
|
1580
|
+
theme: material.createTheme(_objectSpread$n(_objectSpread$n({}, theme), props))
|
|
1580
1581
|
}, MuiThemeProviderProps), {}, {
|
|
1581
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(CssBaseline__default["default"], _objectSpread$
|
|
1582
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(CssBaseline__default["default"], _objectSpread$n({
|
|
1582
1583
|
enableColorScheme: true
|
|
1583
1584
|
}, CssBaselineProps)), children]
|
|
1584
1585
|
}))
|
|
@@ -1621,166 +1622,491 @@ ThemeProvider.defaultProps = {
|
|
|
1621
1622
|
children: null
|
|
1622
1623
|
};
|
|
1623
1624
|
|
|
1624
|
-
function ownKeys$
|
|
1625
|
-
|
|
1626
|
-
function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1627
|
-
var styles$b = {
|
|
1628
|
-
root: {
|
|
1629
|
-
display: 'flex',
|
|
1630
|
-
flexWrap: 'wrap',
|
|
1631
|
-
pointerEvents: 'none',
|
|
1632
|
-
width: 'inherit',
|
|
1633
|
-
height: '100%'
|
|
1634
|
-
}
|
|
1635
|
-
};
|
|
1636
|
-
function ImageSlot(_ref) {
|
|
1637
|
-
var image = _ref.image,
|
|
1638
|
-
height = _ref.height,
|
|
1639
|
-
width = _ref.width,
|
|
1640
|
-
amountOfImages = _ref.amountOfImages,
|
|
1641
|
-
showSingleStretched = _ref.showSingleStretched,
|
|
1642
|
-
_onError = _ref.onError;
|
|
1643
|
-
var src = image.src,
|
|
1644
|
-
alt = image.alt;
|
|
1645
|
-
var objectFit = amountOfImages === 1 && showSingleStretched ? 'contain' : 'cover';
|
|
1646
|
-
return /*#__PURE__*/jsxRuntime.jsx("img", {
|
|
1647
|
-
src: src,
|
|
1648
|
-
alt: alt || src,
|
|
1649
|
-
style: {
|
|
1650
|
-
width: width,
|
|
1651
|
-
height: height,
|
|
1652
|
-
objectFit: objectFit
|
|
1653
|
-
},
|
|
1654
|
-
onError: function onError(e) {
|
|
1655
|
-
return _onError(e, image);
|
|
1656
|
-
}
|
|
1657
|
-
}, "".concat(src, "-").concat(alt));
|
|
1658
|
-
}
|
|
1625
|
+
function ownKeys$m(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; }
|
|
1659
1626
|
|
|
1660
|
-
var
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
var amountOfColumns = Math.min(maxColumns, amountOfImages);
|
|
1664
|
-
var amountOfRows = Math.ceil(amountOfImages / amountOfColumns);
|
|
1665
|
-
var amountOfImagesOnLastRow = amountOfImages % amountOfColumns || amountOfColumns;
|
|
1627
|
+
function _objectSpread$m(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1628
|
+
var styles$h = function styles(theme) {
|
|
1629
|
+
var isLight = theme.palette.mode === 'light';
|
|
1666
1630
|
return {
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1631
|
+
root: {
|
|
1632
|
+
height: '1rem',
|
|
1633
|
+
borderColor: theme.palette.primary.main,
|
|
1634
|
+
borderWidth: 1.45,
|
|
1635
|
+
borderStyle: 'solid',
|
|
1636
|
+
backgroundColor: isLight ? 'unset' : 'rgba(0, 0, 0, .15)',
|
|
1637
|
+
padding: '0 4px',
|
|
1638
|
+
borderRadius: 2.5,
|
|
1639
|
+
whiteSpace: 'nowrap',
|
|
1640
|
+
fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
|
|
1641
|
+
fontWeight: 900,
|
|
1642
|
+
fontSize: '0.7rem',
|
|
1643
|
+
letterSpacing: '0.08em',
|
|
1644
|
+
textTransform: 'uppercase',
|
|
1645
|
+
minWidth: 32,
|
|
1646
|
+
textAlign: 'center',
|
|
1647
|
+
userSelect: 'none'
|
|
1648
|
+
}
|
|
1671
1649
|
};
|
|
1672
1650
|
};
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
var amountOfImages = _ref3.amountOfImages,
|
|
1676
|
-
amountOfColumns = _ref3.amountOfColumns,
|
|
1677
|
-
amountOfRows = _ref3.amountOfRows,
|
|
1678
|
-
amountOfImagesOnLastRow = _ref3.amountOfImagesOnLastRow;
|
|
1679
|
-
var isLastRow = Math.ceil((index + 1) / amountOfColumns) === amountOfRows;
|
|
1680
|
-
var width = "".concat(100 / Math.max(Math.min(isLastRow && showLastRowStretched ? amountOfImagesOnLastRow : amountOfColumns, amountOfImages), 1), "%");
|
|
1681
|
-
return width;
|
|
1682
|
-
};
|
|
1683
|
-
|
|
1684
|
-
var ImageCollageRoot = /*#__PURE__*/react.forwardRef(function (props, ref) {
|
|
1685
|
-
return /*#__PURE__*/react.createElement('div', _objectSpread$e({
|
|
1686
|
-
ref: ref
|
|
1687
|
-
}, props));
|
|
1688
|
-
});
|
|
1689
|
-
var defaultComponents$b = {
|
|
1690
|
-
Root: ImageCollageRoot
|
|
1651
|
+
var defaultComponents$h = {
|
|
1652
|
+
Root: material.Box
|
|
1691
1653
|
};
|
|
1692
|
-
var name$
|
|
1693
|
-
function
|
|
1694
|
-
var
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
componentProps = _ref4.componentProps;
|
|
1703
|
-
var Root = components.Root;
|
|
1704
|
-
|
|
1705
|
-
if (!(images !== null && images !== void 0 && images.length) || maxImages < 0 || maxColumns < 0) {
|
|
1706
|
-
return null;
|
|
1707
|
-
}
|
|
1708
|
-
|
|
1709
|
-
var amountOfImages = Math.min(maxImages, images.length);
|
|
1710
|
-
var amounts = getAmounts({
|
|
1711
|
-
amountOfImages: amountOfImages,
|
|
1712
|
-
maxColumns: maxColumns
|
|
1713
|
-
});
|
|
1714
|
-
var height = "".concat(100 / ((amounts === null || amounts === void 0 ? void 0 : amounts.amountOfRows) || 1), "%");
|
|
1715
|
-
return /*#__PURE__*/jsxRuntime.jsx(Root, _objectSpread$e(_objectSpread$e({}, componentProps.root), {}, {
|
|
1716
|
-
children: images.slice(0, maxImages).map(function (image, index) {
|
|
1717
|
-
var width = getImageWidth(index, showLastRowStretched, amounts);
|
|
1718
|
-
return showSlot(imageSlot, {
|
|
1719
|
-
image: image,
|
|
1720
|
-
height: height,
|
|
1721
|
-
width: width,
|
|
1722
|
-
amountOfImages: amountOfImages,
|
|
1723
|
-
showSingleStretched: showSingleStretched,
|
|
1724
|
-
onError: onError
|
|
1725
|
-
});
|
|
1726
|
-
})
|
|
1654
|
+
var name$h = 'MediaBadge';
|
|
1655
|
+
function MediaBadge(_ref) {
|
|
1656
|
+
var text = _ref.text,
|
|
1657
|
+
components = _ref.components,
|
|
1658
|
+
componentProps = _ref.componentProps;
|
|
1659
|
+
var Box = components.Root;
|
|
1660
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, _objectSpread$m(_objectSpread$m({
|
|
1661
|
+
component: "span"
|
|
1662
|
+
}, componentProps.root), {}, {
|
|
1663
|
+
children: text
|
|
1727
1664
|
}));
|
|
1728
1665
|
}
|
|
1729
|
-
|
|
1730
|
-
/**
|
|
1731
|
-
* Image urls to show
|
|
1732
|
-
*/
|
|
1733
|
-
images: PropTypes__default["default"].arrayOf(PropTypes__default["default"].shape({
|
|
1734
|
-
url: PropTypes__default["default"].string,
|
|
1735
|
-
alt: PropTypes__default["default"].string
|
|
1736
|
-
})),
|
|
1737
|
-
|
|
1738
|
-
/**
|
|
1739
|
-
* Max amount of columns to display
|
|
1740
|
-
*/
|
|
1741
|
-
maxColumns: PropTypes__default["default"].number,
|
|
1742
|
-
|
|
1666
|
+
MediaBadge.propTypes = {
|
|
1743
1667
|
/**
|
|
1744
|
-
*
|
|
1745
|
-
*/
|
|
1746
|
-
maxImages: PropTypes__default["default"].number,
|
|
1747
|
-
|
|
1748
|
-
/**
|
|
1749
|
-
* Whether to stretch full width or follow height for single image
|
|
1750
|
-
*/
|
|
1751
|
-
showSingleStretched: PropTypes__default["default"].bool,
|
|
1752
|
-
|
|
1753
|
-
/**
|
|
1754
|
-
* Whether to stretch full width or follow height for last images
|
|
1755
|
-
*/
|
|
1756
|
-
showLastRowStretched: PropTypes__default["default"].bool,
|
|
1757
|
-
|
|
1758
|
-
/**
|
|
1759
|
-
* Callback for error
|
|
1668
|
+
* Text to show as badge
|
|
1760
1669
|
*/
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
/**
|
|
1764
|
-
* Slot to show image
|
|
1765
|
-
*/
|
|
1766
|
-
imageSlot: PropTypes__default["default"].oneOfType([PropTypes__default["default"].elementType, PropTypes__default["default"].node]),
|
|
1670
|
+
text: PropTypes__default["default"].string,
|
|
1767
1671
|
// Overrides
|
|
1768
1672
|
|
|
1769
1673
|
/**
|
|
1770
|
-
* Override
|
|
1674
|
+
* Override styles with className
|
|
1771
1675
|
*/
|
|
1772
|
-
|
|
1676
|
+
className: PropTypes__default["default"].string,
|
|
1773
1677
|
|
|
1774
1678
|
/**
|
|
1775
|
-
* Override styles
|
|
1679
|
+
* Override or extend the styles applied to the component
|
|
1776
1680
|
*/
|
|
1777
|
-
|
|
1681
|
+
classes: PropTypes__default["default"].instanceOf(Object),
|
|
1778
1682
|
|
|
1779
1683
|
/**
|
|
1780
1684
|
* Replace internal components
|
|
1781
1685
|
*/
|
|
1782
1686
|
components: PropTypes__default["default"].shape({
|
|
1783
|
-
Root: PropTypes__default["default"].elementType
|
|
1687
|
+
Root: PropTypes__default["default"].elementType,
|
|
1688
|
+
Badge: PropTypes__default["default"].elementType
|
|
1689
|
+
}),
|
|
1690
|
+
|
|
1691
|
+
/**
|
|
1692
|
+
* Add internal component props
|
|
1693
|
+
*/
|
|
1694
|
+
componentProps: PropTypes__default["default"].shape({
|
|
1695
|
+
root: PropTypes__default["default"].instanceOf(Object),
|
|
1696
|
+
badge: PropTypes__default["default"].instanceOf(Object)
|
|
1697
|
+
})
|
|
1698
|
+
};
|
|
1699
|
+
MediaBadge.defaultProps = {
|
|
1700
|
+
text: undefined,
|
|
1701
|
+
classes: undefined,
|
|
1702
|
+
className: undefined,
|
|
1703
|
+
components: undefined,
|
|
1704
|
+
componentProps: undefined
|
|
1705
|
+
};
|
|
1706
|
+
|
|
1707
|
+
var ComponentWithOverrides$h = withOverrides(defaultComponents$h, {
|
|
1708
|
+
name: name$h
|
|
1709
|
+
})(MediaBadge);
|
|
1710
|
+
var Component$h = styles$p.withStyles(styles$h, {
|
|
1711
|
+
name: name$h
|
|
1712
|
+
})(ComponentWithOverrides$h);
|
|
1713
|
+
Component$h.displayName = 'MediaBadge';
|
|
1714
|
+
|
|
1715
|
+
function ownKeys$l(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; }
|
|
1716
|
+
|
|
1717
|
+
function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1718
|
+
var styles$g = function styles() {
|
|
1719
|
+
return {
|
|
1720
|
+
root: {
|
|
1721
|
+
alignItems: 'center'
|
|
1722
|
+
},
|
|
1723
|
+
mediaBadge: {}
|
|
1724
|
+
};
|
|
1725
|
+
};
|
|
1726
|
+
var defaultComponents$g = {
|
|
1727
|
+
Root: material.Stack,
|
|
1728
|
+
MediaBadge: Component$h
|
|
1729
|
+
};
|
|
1730
|
+
var name$g = 'MediaBadgeStack';
|
|
1731
|
+
var defaultGenerateBadges = function defaultGenerateBadges(input) {
|
|
1732
|
+
var _ref = input || {},
|
|
1733
|
+
containerFormat = _ref.containerFormat,
|
|
1734
|
+
videoFormat = _ref.videoFormat,
|
|
1735
|
+
audioFormat = _ref.audioFormat,
|
|
1736
|
+
videoCodec = _ref.videoCodec,
|
|
1737
|
+
audioCodec = _ref.audioCodec,
|
|
1738
|
+
height = _ref.height,
|
|
1739
|
+
fieldOrder = _ref.fieldOrder,
|
|
1740
|
+
audioChannels = _ref.audioChannels,
|
|
1741
|
+
colorPrimaries = _ref.colorPrimaries,
|
|
1742
|
+
textFormat = _ref.textFormat,
|
|
1743
|
+
frameRate = _ref.frameRate,
|
|
1744
|
+
aspectRatio = _ref.aspectRatio;
|
|
1745
|
+
|
|
1746
|
+
var badges = [];
|
|
1747
|
+
if (containerFormat) badges.push(containerFormat);
|
|
1748
|
+
if (videoFormat) badges.push(videoFormat);else if (videoCodec) badges.push(videoCodec);
|
|
1749
|
+
if (audioFormat) badges.push(audioFormat);else if (audioCodec) badges.push(audioCodec);
|
|
1750
|
+
|
|
1751
|
+
if (height) {
|
|
1752
|
+
var heightFieldOrder = "".concat(height).concat(fieldOrder ? fieldOrder[0] : 'px');
|
|
1753
|
+
|
|
1754
|
+
switch (height) {
|
|
1755
|
+
case 720:
|
|
1756
|
+
badges.push('HD Ready');
|
|
1757
|
+
break;
|
|
1758
|
+
|
|
1759
|
+
case 1080:
|
|
1760
|
+
badges.push('Full HD');
|
|
1761
|
+
break;
|
|
1762
|
+
|
|
1763
|
+
case 1440:
|
|
1764
|
+
badges.push('Quad HD');
|
|
1765
|
+
break;
|
|
1766
|
+
|
|
1767
|
+
case 2160:
|
|
1768
|
+
badges.push('4K UHD');
|
|
1769
|
+
break;
|
|
1770
|
+
|
|
1771
|
+
case 4320:
|
|
1772
|
+
badges.push('8K UHD');
|
|
1773
|
+
break;
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
if (height > 0 && height < 720) {
|
|
1777
|
+
badges.push('SD');
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
badges.push(heightFieldOrder);
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
if (audioChannels) {
|
|
1784
|
+
switch (audioChannels) {
|
|
1785
|
+
case 1:
|
|
1786
|
+
badges.push('Mono');
|
|
1787
|
+
break;
|
|
1788
|
+
|
|
1789
|
+
case 2:
|
|
1790
|
+
badges.push('Stereo');
|
|
1791
|
+
break;
|
|
1792
|
+
|
|
1793
|
+
case 3:
|
|
1794
|
+
badges.push('2.1');
|
|
1795
|
+
break;
|
|
1796
|
+
|
|
1797
|
+
case 6:
|
|
1798
|
+
badges.push('5.1');
|
|
1799
|
+
break;
|
|
1800
|
+
|
|
1801
|
+
case 8:
|
|
1802
|
+
badges.push('7.1');
|
|
1803
|
+
break;
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
if (colorPrimaries) {
|
|
1808
|
+
switch (colorPrimaries) {
|
|
1809
|
+
case 'BT.2020':
|
|
1810
|
+
case 'REC.2020':
|
|
1811
|
+
badges.push('HDR');
|
|
1812
|
+
break;
|
|
1813
|
+
|
|
1814
|
+
case 'BT.709':
|
|
1815
|
+
case 'REC.709':
|
|
1816
|
+
badges.push('SDR');
|
|
1817
|
+
break;
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
if (textFormat) {
|
|
1822
|
+
badges.push('CC');
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
if (frameRate) {
|
|
1826
|
+
try {
|
|
1827
|
+
if (frameRate.match(/\d/)) {
|
|
1828
|
+
badges.push("".concat(frameRate, "fps"));
|
|
1829
|
+
} else {
|
|
1830
|
+
badges.push(frameRate);
|
|
1831
|
+
}
|
|
1832
|
+
} catch (e) {// Figure out which to really throw on
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
if (aspectRatio) badges.push(aspectRatio);
|
|
1837
|
+
return _toConsumableArray__default["default"](new Set(badges)); // remove duplicates
|
|
1838
|
+
};
|
|
1839
|
+
function MediaBadgeStack(_ref2) {
|
|
1840
|
+
var input = _ref2.input,
|
|
1841
|
+
direction = _ref2.direction,
|
|
1842
|
+
spacing = _ref2.spacing,
|
|
1843
|
+
dividerSlot = _ref2.dividerSlot,
|
|
1844
|
+
generateBadges = _ref2.generateBadges,
|
|
1845
|
+
components = _ref2.components,
|
|
1846
|
+
componentProps = _ref2.componentProps;
|
|
1847
|
+
var Root = components.Root,
|
|
1848
|
+
MediaBadge = components.MediaBadge;
|
|
1849
|
+
var badges = react.useMemo(function () {
|
|
1850
|
+
return generateBadges(input);
|
|
1851
|
+
}, // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1852
|
+
[input]);
|
|
1853
|
+
return /*#__PURE__*/jsxRuntime.jsx(Root, _objectSpread$l(_objectSpread$l({
|
|
1854
|
+
direction: direction,
|
|
1855
|
+
spacing: spacing > 0 ? spacing : 0,
|
|
1856
|
+
divider: dividerSlot
|
|
1857
|
+
}, componentProps.root), {}, {
|
|
1858
|
+
children: badges.map(function (badge) {
|
|
1859
|
+
return /*#__PURE__*/jsxRuntime.jsx(MediaBadge, _objectSpread$l({
|
|
1860
|
+
text: badge
|
|
1861
|
+
}, componentProps.mediaBadge), badge);
|
|
1862
|
+
})
|
|
1863
|
+
}));
|
|
1864
|
+
}
|
|
1865
|
+
MediaBadgeStack.propTypes = {
|
|
1866
|
+
/**
|
|
1867
|
+
* The input to create badges of
|
|
1868
|
+
*/
|
|
1869
|
+
input: PropTypes__default["default"].shape({
|
|
1870
|
+
containerFormat: PropTypes__default["default"].string,
|
|
1871
|
+
videoFormat: PropTypes__default["default"].string,
|
|
1872
|
+
audioFormat: PropTypes__default["default"].string,
|
|
1873
|
+
videoCodec: PropTypes__default["default"].string,
|
|
1874
|
+
height: PropTypes__default["default"].number,
|
|
1875
|
+
fieldOrder: PropTypes__default["default"].string,
|
|
1876
|
+
audioChannels: PropTypes__default["default"].number,
|
|
1877
|
+
colorPrimaries: PropTypes__default["default"].string,
|
|
1878
|
+
textFormat: PropTypes__default["default"].string,
|
|
1879
|
+
frameRate: PropTypes__default["default"].string,
|
|
1880
|
+
aspectRatio: PropTypes__default["default"].string
|
|
1881
|
+
}),
|
|
1882
|
+
|
|
1883
|
+
/**
|
|
1884
|
+
* Direction the badges should be displayed
|
|
1885
|
+
*/
|
|
1886
|
+
direction: PropTypes__default["default"].oneOf(['column', 'row']),
|
|
1887
|
+
|
|
1888
|
+
/**
|
|
1889
|
+
* Defines the space between immediate children.
|
|
1890
|
+
*/
|
|
1891
|
+
spacing: PropTypes__default["default"].number,
|
|
1892
|
+
|
|
1893
|
+
/**
|
|
1894
|
+
* Add a divider component between badges
|
|
1895
|
+
*/
|
|
1896
|
+
dividerSlot: PropTypes__default["default"].node,
|
|
1897
|
+
|
|
1898
|
+
/**
|
|
1899
|
+
* Replace the function that generates the badges
|
|
1900
|
+
*/
|
|
1901
|
+
generateBadges: PropTypes__default["default"].func,
|
|
1902
|
+
// Overrides
|
|
1903
|
+
|
|
1904
|
+
/**
|
|
1905
|
+
* Override styles with className
|
|
1906
|
+
*/
|
|
1907
|
+
className: PropTypes__default["default"].string,
|
|
1908
|
+
|
|
1909
|
+
/**
|
|
1910
|
+
* Override or extend the styles applied to the component
|
|
1911
|
+
*/
|
|
1912
|
+
classes: PropTypes__default["default"].instanceOf(Object),
|
|
1913
|
+
|
|
1914
|
+
/**
|
|
1915
|
+
* Replace internal components
|
|
1916
|
+
*/
|
|
1917
|
+
components: PropTypes__default["default"].shape({
|
|
1918
|
+
Root: PropTypes__default["default"].elementType,
|
|
1919
|
+
MediaBadge: PropTypes__default["default"].elementType
|
|
1920
|
+
}),
|
|
1921
|
+
|
|
1922
|
+
/**
|
|
1923
|
+
* Add internal component props
|
|
1924
|
+
*/
|
|
1925
|
+
componentProps: PropTypes__default["default"].shape({
|
|
1926
|
+
root: PropTypes__default["default"].instanceOf(Object),
|
|
1927
|
+
mediaBadge: PropTypes__default["default"].instanceOf(Object)
|
|
1928
|
+
})
|
|
1929
|
+
};
|
|
1930
|
+
MediaBadgeStack.defaultProps = {
|
|
1931
|
+
input: {},
|
|
1932
|
+
direction: 'row',
|
|
1933
|
+
spacing: 1,
|
|
1934
|
+
dividerSlot: undefined,
|
|
1935
|
+
generateBadges: defaultGenerateBadges,
|
|
1936
|
+
classes: undefined,
|
|
1937
|
+
className: undefined,
|
|
1938
|
+
components: undefined,
|
|
1939
|
+
componentProps: undefined
|
|
1940
|
+
};
|
|
1941
|
+
|
|
1942
|
+
var ComponentWithOverrides$g = withOverrides(defaultComponents$g, {
|
|
1943
|
+
name: name$g
|
|
1944
|
+
})(MediaBadgeStack);
|
|
1945
|
+
var Component$g = styles$p.withStyles(styles$g, {
|
|
1946
|
+
name: name$g
|
|
1947
|
+
})(ComponentWithOverrides$g);
|
|
1948
|
+
Component$g.displayName = 'MediaBadgeStack';
|
|
1949
|
+
|
|
1950
|
+
function ownKeys$k(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; }
|
|
1951
|
+
|
|
1952
|
+
function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1953
|
+
var styles$f = {
|
|
1954
|
+
root: {
|
|
1955
|
+
display: 'flex',
|
|
1956
|
+
flexWrap: 'wrap',
|
|
1957
|
+
pointerEvents: 'none',
|
|
1958
|
+
width: 'inherit',
|
|
1959
|
+
height: '100%'
|
|
1960
|
+
}
|
|
1961
|
+
};
|
|
1962
|
+
function ImageSlot(_ref) {
|
|
1963
|
+
var image = _ref.image,
|
|
1964
|
+
height = _ref.height,
|
|
1965
|
+
width = _ref.width,
|
|
1966
|
+
amountOfImages = _ref.amountOfImages,
|
|
1967
|
+
showSingleStretched = _ref.showSingleStretched,
|
|
1968
|
+
_onError = _ref.onError;
|
|
1969
|
+
var src = image.src,
|
|
1970
|
+
alt = image.alt;
|
|
1971
|
+
var objectFit = amountOfImages === 1 && showSingleStretched ? 'contain' : 'cover';
|
|
1972
|
+
return /*#__PURE__*/jsxRuntime.jsx("img", {
|
|
1973
|
+
src: src,
|
|
1974
|
+
alt: alt || src,
|
|
1975
|
+
style: {
|
|
1976
|
+
width: width,
|
|
1977
|
+
height: height,
|
|
1978
|
+
objectFit: objectFit
|
|
1979
|
+
},
|
|
1980
|
+
onError: function onError(e) {
|
|
1981
|
+
return _onError(e, image);
|
|
1982
|
+
}
|
|
1983
|
+
}, "".concat(src, "-").concat(alt));
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1986
|
+
var getAmounts = function getAmounts(_ref2) {
|
|
1987
|
+
var amountOfImages = _ref2.amountOfImages,
|
|
1988
|
+
maxColumns = _ref2.maxColumns;
|
|
1989
|
+
var amountOfColumns = Math.min(maxColumns, amountOfImages);
|
|
1990
|
+
var amountOfRows = Math.ceil(amountOfImages / amountOfColumns);
|
|
1991
|
+
var amountOfImagesOnLastRow = amountOfImages % amountOfColumns || amountOfColumns;
|
|
1992
|
+
return {
|
|
1993
|
+
amountOfImages: amountOfImages,
|
|
1994
|
+
amountOfColumns: amountOfColumns,
|
|
1995
|
+
amountOfRows: amountOfRows,
|
|
1996
|
+
amountOfImagesOnLastRow: amountOfImagesOnLastRow
|
|
1997
|
+
};
|
|
1998
|
+
};
|
|
1999
|
+
|
|
2000
|
+
var getImageWidth = function getImageWidth(index, showLastRowStretched, _ref3) {
|
|
2001
|
+
var amountOfImages = _ref3.amountOfImages,
|
|
2002
|
+
amountOfColumns = _ref3.amountOfColumns,
|
|
2003
|
+
amountOfRows = _ref3.amountOfRows,
|
|
2004
|
+
amountOfImagesOnLastRow = _ref3.amountOfImagesOnLastRow;
|
|
2005
|
+
var isLastRow = Math.ceil((index + 1) / amountOfColumns) === amountOfRows;
|
|
2006
|
+
var width = "".concat(100 / Math.max(Math.min(isLastRow && showLastRowStretched ? amountOfImagesOnLastRow : amountOfColumns, amountOfImages), 1), "%");
|
|
2007
|
+
return width;
|
|
2008
|
+
};
|
|
2009
|
+
|
|
2010
|
+
var ImageCollageRoot = /*#__PURE__*/react.forwardRef(function (props, ref) {
|
|
2011
|
+
return /*#__PURE__*/react.createElement('div', _objectSpread$k({
|
|
2012
|
+
ref: ref
|
|
2013
|
+
}, props));
|
|
2014
|
+
});
|
|
2015
|
+
var defaultComponents$f = {
|
|
2016
|
+
Root: ImageCollageRoot
|
|
2017
|
+
};
|
|
2018
|
+
var name$f = 'VdtImageCollage';
|
|
2019
|
+
function ImageCollage(_ref4) {
|
|
2020
|
+
var images = _ref4.images,
|
|
2021
|
+
maxImages = _ref4.maxImages,
|
|
2022
|
+
maxColumns = _ref4.maxColumns,
|
|
2023
|
+
showSingleStretched = _ref4.showSingleStretched,
|
|
2024
|
+
showLastRowStretched = _ref4.showLastRowStretched,
|
|
2025
|
+
imageSlot = _ref4.imageSlot,
|
|
2026
|
+
onError = _ref4.onError,
|
|
2027
|
+
components = _ref4.components,
|
|
2028
|
+
componentProps = _ref4.componentProps;
|
|
2029
|
+
var Root = components.Root;
|
|
2030
|
+
|
|
2031
|
+
if (!(images !== null && images !== void 0 && images.length) || maxImages < 0 || maxColumns < 0) {
|
|
2032
|
+
return null;
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
var amountOfImages = Math.min(maxImages, images.length);
|
|
2036
|
+
var amounts = getAmounts({
|
|
2037
|
+
amountOfImages: amountOfImages,
|
|
2038
|
+
maxColumns: maxColumns
|
|
2039
|
+
});
|
|
2040
|
+
var height = "".concat(100 / ((amounts === null || amounts === void 0 ? void 0 : amounts.amountOfRows) || 1), "%");
|
|
2041
|
+
return /*#__PURE__*/jsxRuntime.jsx(Root, _objectSpread$k(_objectSpread$k({}, componentProps.root), {}, {
|
|
2042
|
+
children: images.slice(0, maxImages).map(function (image, index) {
|
|
2043
|
+
var width = getImageWidth(index, showLastRowStretched, amounts);
|
|
2044
|
+
return showSlot(imageSlot, {
|
|
2045
|
+
image: image,
|
|
2046
|
+
height: height,
|
|
2047
|
+
width: width,
|
|
2048
|
+
amountOfImages: amountOfImages,
|
|
2049
|
+
showSingleStretched: showSingleStretched,
|
|
2050
|
+
onError: onError
|
|
2051
|
+
});
|
|
2052
|
+
})
|
|
2053
|
+
}));
|
|
2054
|
+
}
|
|
2055
|
+
ImageCollage.propTypes = {
|
|
2056
|
+
/**
|
|
2057
|
+
* Image urls to show
|
|
2058
|
+
*/
|
|
2059
|
+
images: PropTypes__default["default"].arrayOf(PropTypes__default["default"].shape({
|
|
2060
|
+
url: PropTypes__default["default"].string,
|
|
2061
|
+
alt: PropTypes__default["default"].string
|
|
2062
|
+
})),
|
|
2063
|
+
|
|
2064
|
+
/**
|
|
2065
|
+
* Max amount of columns to display
|
|
2066
|
+
*/
|
|
2067
|
+
maxColumns: PropTypes__default["default"].number,
|
|
2068
|
+
|
|
2069
|
+
/**
|
|
2070
|
+
* Max amount of images to display
|
|
2071
|
+
*/
|
|
2072
|
+
maxImages: PropTypes__default["default"].number,
|
|
2073
|
+
|
|
2074
|
+
/**
|
|
2075
|
+
* Whether to stretch full width or follow height for single image
|
|
2076
|
+
*/
|
|
2077
|
+
showSingleStretched: PropTypes__default["default"].bool,
|
|
2078
|
+
|
|
2079
|
+
/**
|
|
2080
|
+
* Whether to stretch full width or follow height for last images
|
|
2081
|
+
*/
|
|
2082
|
+
showLastRowStretched: PropTypes__default["default"].bool,
|
|
2083
|
+
|
|
2084
|
+
/**
|
|
2085
|
+
* Callback for error
|
|
2086
|
+
*/
|
|
2087
|
+
onError: PropTypes__default["default"].func,
|
|
2088
|
+
|
|
2089
|
+
/**
|
|
2090
|
+
* Slot to show image
|
|
2091
|
+
*/
|
|
2092
|
+
imageSlot: PropTypes__default["default"].oneOfType([PropTypes__default["default"].elementType, PropTypes__default["default"].node]),
|
|
2093
|
+
// Overrides
|
|
2094
|
+
|
|
2095
|
+
/**
|
|
2096
|
+
* Override or extend the styles applied to the component
|
|
2097
|
+
*/
|
|
2098
|
+
classes: PropTypes__default["default"].objectOf(PropTypes__default["default"].string),
|
|
2099
|
+
|
|
2100
|
+
/**
|
|
2101
|
+
* Override styles with className
|
|
2102
|
+
*/
|
|
2103
|
+
className: PropTypes__default["default"].string,
|
|
2104
|
+
|
|
2105
|
+
/**
|
|
2106
|
+
* Replace internal components
|
|
2107
|
+
*/
|
|
2108
|
+
components: PropTypes__default["default"].shape({
|
|
2109
|
+
Root: PropTypes__default["default"].elementType
|
|
1784
2110
|
}),
|
|
1785
2111
|
|
|
1786
2112
|
/**
|
|
@@ -1790,33 +2116,509 @@ ImageCollage.propTypes = {
|
|
|
1790
2116
|
root: PropTypes__default["default"].instanceOf(Object)
|
|
1791
2117
|
})
|
|
1792
2118
|
};
|
|
1793
|
-
ImageCollage.defaultProps = {
|
|
1794
|
-
images: [],
|
|
1795
|
-
maxColumns: 2,
|
|
1796
|
-
maxImages: 4,
|
|
1797
|
-
showSingleStretched: true,
|
|
1798
|
-
showLastRowStretched: true,
|
|
1799
|
-
onError: function onError() {
|
|
2119
|
+
ImageCollage.defaultProps = {
|
|
2120
|
+
images: [],
|
|
2121
|
+
maxColumns: 2,
|
|
2122
|
+
maxImages: 4,
|
|
2123
|
+
showSingleStretched: true,
|
|
2124
|
+
showLastRowStretched: true,
|
|
2125
|
+
onError: function onError() {
|
|
2126
|
+
return null;
|
|
2127
|
+
},
|
|
2128
|
+
imageSlot: ImageSlot,
|
|
2129
|
+
className: undefined,
|
|
2130
|
+
classes: undefined,
|
|
2131
|
+
components: undefined,
|
|
2132
|
+
componentProps: undefined
|
|
2133
|
+
};
|
|
2134
|
+
|
|
2135
|
+
var ComponentWithOverrides$f = withOverrides(defaultComponents$f, {
|
|
2136
|
+
name: name$f
|
|
2137
|
+
})(ImageCollage);
|
|
2138
|
+
var Component$f = styles$p.withStyles(styles$f, {
|
|
2139
|
+
name: name$f
|
|
2140
|
+
})(ComponentWithOverrides$f);
|
|
2141
|
+
Component$f.displayName = 'ImageCollage';
|
|
2142
|
+
|
|
2143
|
+
function TablePaginationActions(_ref) {
|
|
2144
|
+
var className = _ref.className,
|
|
2145
|
+
count = _ref.count,
|
|
2146
|
+
page = _ref.page,
|
|
2147
|
+
rowsPerPage = _ref.rowsPerPage,
|
|
2148
|
+
onPageChange = _ref.onPageChange;
|
|
2149
|
+
return /*#__PURE__*/jsxRuntime.jsxs(material.Box, {
|
|
2150
|
+
className: className,
|
|
2151
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(material.IconButton, {
|
|
2152
|
+
onClick: function onClick(e) {
|
|
2153
|
+
return onPageChange(e, {
|
|
2154
|
+
value: 0
|
|
2155
|
+
});
|
|
2156
|
+
},
|
|
2157
|
+
disabled: page === 0,
|
|
2158
|
+
children: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.FirstPage, {})
|
|
2159
|
+
}), /*#__PURE__*/jsxRuntime.jsx(material.IconButton, {
|
|
2160
|
+
onClick: function onClick(e) {
|
|
2161
|
+
return onPageChange(e, {
|
|
2162
|
+
value: page - 1
|
|
2163
|
+
});
|
|
2164
|
+
},
|
|
2165
|
+
disabled: page === 0,
|
|
2166
|
+
children: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.KeyboardArrowLeft, {})
|
|
2167
|
+
}), /*#__PURE__*/jsxRuntime.jsx(material.IconButton, {
|
|
2168
|
+
onClick: function onClick(e) {
|
|
2169
|
+
return onPageChange(e, {
|
|
2170
|
+
value: page + 1
|
|
2171
|
+
});
|
|
2172
|
+
},
|
|
2173
|
+
disabled: page >= Math.ceil(count / rowsPerPage) - 1,
|
|
2174
|
+
children: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.KeyboardArrowRight, {})
|
|
2175
|
+
}), /*#__PURE__*/jsxRuntime.jsx(material.IconButton, {
|
|
2176
|
+
onClick: function onClick(e) {
|
|
2177
|
+
return onPageChange(e, {
|
|
2178
|
+
value: Math.max(0, Math.ceil(count / rowsPerPage) - 1)
|
|
2179
|
+
});
|
|
2180
|
+
},
|
|
2181
|
+
disabled: page >= Math.ceil(count / rowsPerPage) - 1,
|
|
2182
|
+
children: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.LastPage, {})
|
|
2183
|
+
})]
|
|
2184
|
+
});
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
function ownKeys$j(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; }
|
|
2188
|
+
|
|
2189
|
+
function _objectSpread$j(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2190
|
+
var styles$e = function styles() {
|
|
2191
|
+
return {
|
|
2192
|
+
root: {
|
|
2193
|
+
'& .MuiTablePagination-spacer': {
|
|
2194
|
+
flex: 'none'
|
|
2195
|
+
}
|
|
2196
|
+
},
|
|
2197
|
+
tablePaginationActions: {}
|
|
2198
|
+
};
|
|
2199
|
+
};
|
|
2200
|
+
var defaultComponents$e = {
|
|
2201
|
+
Root: material.TablePagination,
|
|
2202
|
+
TablePaginationActions: TablePaginationActions
|
|
2203
|
+
};
|
|
2204
|
+
var name$e = 'VdtTablePagination';
|
|
2205
|
+
function TablePagination(_ref) {
|
|
2206
|
+
var count = _ref.count,
|
|
2207
|
+
page = _ref.page,
|
|
2208
|
+
rowsPerPage = _ref.rowsPerPage,
|
|
2209
|
+
initialRowsPerPageOptions = _ref.rowsPerPageOptions,
|
|
2210
|
+
onPageChange = _ref.onPageChange,
|
|
2211
|
+
_onRowsPerPageChange = _ref.onRowsPerPageChange,
|
|
2212
|
+
components = _ref.components,
|
|
2213
|
+
componentProps = _ref.componentProps;
|
|
2214
|
+
var Root = components.Root,
|
|
2215
|
+
TablePaginationActions = components.TablePaginationActions;
|
|
2216
|
+
var rowsPerPageOptions = !initialRowsPerPageOptions.includes(rowsPerPage) ? [].concat(_toConsumableArray__default["default"](initialRowsPerPageOptions), [rowsPerPage]).sort(function (a, b) {
|
|
2217
|
+
return a - b;
|
|
2218
|
+
}) : initialRowsPerPageOptions;
|
|
2219
|
+
var maxPage = Math.ceil(count / rowsPerPage) - 1;
|
|
2220
|
+
return /*#__PURE__*/jsxRuntime.jsx(Root, _objectSpread$j({
|
|
2221
|
+
component: "div",
|
|
2222
|
+
count: count,
|
|
2223
|
+
page: Math.max(0, Math.min(page, maxPage)),
|
|
2224
|
+
rowsPerPage: rowsPerPage,
|
|
2225
|
+
onPageChange: onPageChange,
|
|
2226
|
+
onRowsPerPageChange: function onRowsPerPageChange(e, _ref2) {
|
|
2227
|
+
var value = _ref2.props.value;
|
|
2228
|
+
|
|
2229
|
+
_onRowsPerPageChange(e, {
|
|
2230
|
+
value: value
|
|
2231
|
+
});
|
|
2232
|
+
},
|
|
2233
|
+
ActionsComponent: TablePaginationActions,
|
|
2234
|
+
rowsPerPageOptions: rowsPerPageOptions
|
|
2235
|
+
}, componentProps.root));
|
|
2236
|
+
}
|
|
2237
|
+
TablePagination.propTypes = {
|
|
2238
|
+
/**
|
|
2239
|
+
* The total amount of entities
|
|
2240
|
+
*/
|
|
2241
|
+
count: PropTypes__default["default"].number,
|
|
2242
|
+
|
|
2243
|
+
/**
|
|
2244
|
+
* Current page
|
|
2245
|
+
*/
|
|
2246
|
+
page: PropTypes__default["default"].number,
|
|
2247
|
+
|
|
2248
|
+
/**
|
|
2249
|
+
* Number of rows shown per page
|
|
2250
|
+
*/
|
|
2251
|
+
rowsPerPage: PropTypes__default["default"].number,
|
|
2252
|
+
|
|
2253
|
+
/**
|
|
2254
|
+
* An array of options for how many rows should be shown per page
|
|
2255
|
+
*/
|
|
2256
|
+
rowsPerPageOptions: PropTypes__default["default"].arrayOf(Number),
|
|
2257
|
+
|
|
2258
|
+
/**
|
|
2259
|
+
* Callback for when the page changes
|
|
2260
|
+
*/
|
|
2261
|
+
onPageChange: PropTypes__default["default"].func,
|
|
2262
|
+
|
|
2263
|
+
/**
|
|
2264
|
+
* Callback for when the user selects from the rowsPerPageOptions
|
|
2265
|
+
*/
|
|
2266
|
+
onRowsPerPageChange: PropTypes__default["default"].func,
|
|
2267
|
+
// Overrides
|
|
2268
|
+
|
|
2269
|
+
/**
|
|
2270
|
+
* Override styles with className
|
|
2271
|
+
*/
|
|
2272
|
+
className: PropTypes__default["default"].string,
|
|
2273
|
+
|
|
2274
|
+
/**
|
|
2275
|
+
* Override or extend the styles applied to the component
|
|
2276
|
+
*/
|
|
2277
|
+
classes: PropTypes__default["default"].instanceOf(Object),
|
|
2278
|
+
|
|
2279
|
+
/**
|
|
2280
|
+
* Replace internal components
|
|
2281
|
+
*/
|
|
2282
|
+
components: PropTypes__default["default"].shape({
|
|
2283
|
+
Root: PropTypes__default["default"].elementType,
|
|
2284
|
+
TablePaginationActions: PropTypes__default["default"].elementType
|
|
2285
|
+
}),
|
|
2286
|
+
|
|
2287
|
+
/**
|
|
2288
|
+
* Add internal component props
|
|
2289
|
+
*/
|
|
2290
|
+
componentProps: PropTypes__default["default"].shape({
|
|
2291
|
+
root: PropTypes__default["default"].instanceOf(Object),
|
|
2292
|
+
tablePaginationActions: PropTypes__default["default"].instanceOf(Object)
|
|
2293
|
+
})
|
|
2294
|
+
};
|
|
2295
|
+
TablePagination.defaultProps = {
|
|
2296
|
+
count: 0,
|
|
2297
|
+
page: 0,
|
|
2298
|
+
rowsPerPage: 10,
|
|
2299
|
+
rowsPerPageOptions: [10, 25, 50, 100],
|
|
2300
|
+
onPageChange: function onPageChange() {
|
|
2301
|
+
return null;
|
|
2302
|
+
},
|
|
2303
|
+
onRowsPerPageChange: function onRowsPerPageChange() {
|
|
1800
2304
|
return null;
|
|
1801
2305
|
},
|
|
1802
|
-
imageSlot: ImageSlot,
|
|
1803
2306
|
className: undefined,
|
|
1804
2307
|
classes: undefined,
|
|
1805
2308
|
components: undefined,
|
|
1806
2309
|
componentProps: undefined
|
|
1807
2310
|
};
|
|
1808
2311
|
|
|
1809
|
-
var ComponentWithOverrides$
|
|
1810
|
-
name: name$
|
|
1811
|
-
})(
|
|
1812
|
-
var Component$
|
|
1813
|
-
name: name$
|
|
1814
|
-
})(ComponentWithOverrides$
|
|
1815
|
-
Component$
|
|
2312
|
+
var ComponentWithOverrides$e = withOverrides(defaultComponents$e, {
|
|
2313
|
+
name: name$e
|
|
2314
|
+
})(TablePagination);
|
|
2315
|
+
var Component$e = styles$p.withStyles(styles$e, {
|
|
2316
|
+
name: name$e
|
|
2317
|
+
})(ComponentWithOverrides$e);
|
|
2318
|
+
Component$e.displayName = 'TablePagination';
|
|
1816
2319
|
|
|
1817
|
-
|
|
2320
|
+
var _excluded$6 = ["classes", "onClick", "disabled", "label", "optionLabel", "descending"];
|
|
1818
2321
|
|
|
1819
|
-
function
|
|
2322
|
+
function ownKeys$i(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; }
|
|
2323
|
+
|
|
2324
|
+
function _objectSpread$i(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2325
|
+
|
|
2326
|
+
function SortButtonBase(_ref) {
|
|
2327
|
+
_ref.classes;
|
|
2328
|
+
var onClick = _ref.onClick,
|
|
2329
|
+
disabled = _ref.disabled,
|
|
2330
|
+
label = _ref.label,
|
|
2331
|
+
optionLabel = _ref.optionLabel,
|
|
2332
|
+
descending = _ref.descending,
|
|
2333
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$6);
|
|
2334
|
+
|
|
2335
|
+
return /*#__PURE__*/jsxRuntime.jsxs(material.ButtonBase, _objectSpread$i(_objectSpread$i({
|
|
2336
|
+
onClick: onClick,
|
|
2337
|
+
disabled: disabled
|
|
2338
|
+
}, props), {}, {
|
|
2339
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(material.Typography, {
|
|
2340
|
+
variant: "caption",
|
|
2341
|
+
color: disabled ? 'textSecondary' : 'textPrimary',
|
|
2342
|
+
children: "".concat(label, ": ").concat(optionLabel)
|
|
2343
|
+
}), /*#__PURE__*/jsxRuntime.jsx(material.Box, {
|
|
2344
|
+
sx: [function (theme) {
|
|
2345
|
+
var _theme$palette, _theme$palette$second;
|
|
2346
|
+
|
|
2347
|
+
return _objectSpread$i({
|
|
2348
|
+
marginRight: '-2px',
|
|
2349
|
+
marginLeft: '4px',
|
|
2350
|
+
color: (_theme$palette = theme.palette) === null || _theme$palette === void 0 ? void 0 : (_theme$palette$second = _theme$palette.secondary) === null || _theme$palette$second === void 0 ? void 0 : _theme$palette$second.main,
|
|
2351
|
+
transition: 'transform .2s ease-out'
|
|
2352
|
+
}, props.sx || {});
|
|
2353
|
+
}, !descending && {
|
|
2354
|
+
transform: 'rotate(180deg)'
|
|
2355
|
+
}],
|
|
2356
|
+
children: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.ArrowDropDown, {})
|
|
2357
|
+
})]
|
|
2358
|
+
}));
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2361
|
+
var _excluded$5 = ["value", "label", "selected", "onClick"];
|
|
2362
|
+
|
|
2363
|
+
function ownKeys$h(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; }
|
|
2364
|
+
|
|
2365
|
+
function _objectSpread$h(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2366
|
+
function SortMenuItem(_ref) {
|
|
2367
|
+
var value = _ref.value,
|
|
2368
|
+
_ref$label = _ref.label,
|
|
2369
|
+
label = _ref$label === void 0 ? '' : _ref$label,
|
|
2370
|
+
selected = _ref.selected,
|
|
2371
|
+
_onClick = _ref.onClick,
|
|
2372
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$5);
|
|
2373
|
+
|
|
2374
|
+
return /*#__PURE__*/jsxRuntime.jsx(material.MenuItem, _objectSpread$h(_objectSpread$h({
|
|
2375
|
+
selected: selected,
|
|
2376
|
+
onClick: function onClick(e) {
|
|
2377
|
+
return _onClick(e, value);
|
|
2378
|
+
},
|
|
2379
|
+
dense: true,
|
|
2380
|
+
sx: function sx(theme) {
|
|
2381
|
+
var _theme$palette, _theme$palette$second, _theme$palette2, _theme$palette2$secon;
|
|
2382
|
+
|
|
2383
|
+
return _objectSpread$h({
|
|
2384
|
+
'&$selected': {
|
|
2385
|
+
backgroundColor: theme.palette && styles$q.alpha((_theme$palette = theme.palette) === null || _theme$palette === void 0 ? void 0 : (_theme$palette$second = _theme$palette.secondary) === null || _theme$palette$second === void 0 ? void 0 : _theme$palette$second.main, 0.16),
|
|
2386
|
+
color: (_theme$palette2 = theme.palette) === null || _theme$palette2 === void 0 ? void 0 : (_theme$palette2$secon = _theme$palette2.secondary) === null || _theme$palette2$secon === void 0 ? void 0 : _theme$palette2$secon.main
|
|
2387
|
+
}
|
|
2388
|
+
}, props.sx || {});
|
|
2389
|
+
}
|
|
2390
|
+
}, props), {}, {
|
|
2391
|
+
children: /*#__PURE__*/jsxRuntime.jsx(material.Typography, {
|
|
2392
|
+
variant: "caption",
|
|
2393
|
+
children: label
|
|
2394
|
+
})
|
|
2395
|
+
}));
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2398
|
+
function ownKeys$g(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; }
|
|
2399
|
+
|
|
2400
|
+
function _objectSpread$g(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2401
|
+
var styles$d = function styles(theme) {
|
|
2402
|
+
var _theme$palette;
|
|
2403
|
+
|
|
2404
|
+
return {
|
|
2405
|
+
root: {
|
|
2406
|
+
color: (_theme$palette = theme.palette) === null || _theme$palette === void 0 ? void 0 : _theme$palette.secondary.main,
|
|
2407
|
+
paddingLeft: 9,
|
|
2408
|
+
paddingRight: 9,
|
|
2409
|
+
borderRadius: 4
|
|
2410
|
+
},
|
|
2411
|
+
menu: {
|
|
2412
|
+
minWidth: 150,
|
|
2413
|
+
marginTop: 4
|
|
2414
|
+
},
|
|
2415
|
+
menuItem: {},
|
|
2416
|
+
buttonBase: {}
|
|
2417
|
+
};
|
|
2418
|
+
};
|
|
2419
|
+
var defaultComponents$d = {
|
|
2420
|
+
Root: material.Box,
|
|
2421
|
+
Menu: material.Menu,
|
|
2422
|
+
MenuItem: SortMenuItem,
|
|
2423
|
+
ButtonBase: SortButtonBase
|
|
2424
|
+
};
|
|
2425
|
+
var name$d = 'VdtSort';
|
|
2426
|
+
function Sort(_ref) {
|
|
2427
|
+
var caption = _ref.caption,
|
|
2428
|
+
options = _ref.options,
|
|
2429
|
+
sortAsc = _ref.sortAsc,
|
|
2430
|
+
sortDesc = _ref.sortDesc,
|
|
2431
|
+
initialSort = _ref.initialSort,
|
|
2432
|
+
onChange = _ref.onChange,
|
|
2433
|
+
components = _ref.components,
|
|
2434
|
+
componentProps = _ref.componentProps;
|
|
2435
|
+
var Root = components.Root,
|
|
2436
|
+
Menu = components.Menu,
|
|
2437
|
+
MenuItem = components.MenuItem,
|
|
2438
|
+
ButtonBase = components.ButtonBase;
|
|
2439
|
+
|
|
2440
|
+
var _useState = react.useState(null),
|
|
2441
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
2442
|
+
anchorEl = _useState2[0],
|
|
2443
|
+
setAnchorEl = _useState2[1];
|
|
2444
|
+
|
|
2445
|
+
var handleOpen = function handleOpen(event) {
|
|
2446
|
+
setAnchorEl(event.currentTarget);
|
|
2447
|
+
};
|
|
2448
|
+
|
|
2449
|
+
var handleClose = function handleClose() {
|
|
2450
|
+
setAnchorEl(null);
|
|
2451
|
+
};
|
|
2452
|
+
|
|
2453
|
+
var _useState3 = react.useState(initialSort || {
|
|
2454
|
+
option: {},
|
|
2455
|
+
direction: sortDesc
|
|
2456
|
+
}),
|
|
2457
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
2458
|
+
sortState = _useState4[0],
|
|
2459
|
+
setSortState = _useState4[1];
|
|
2460
|
+
|
|
2461
|
+
var handleMenuItemClick = function handleMenuItemClick(event, newValue) {
|
|
2462
|
+
var option = sortState.option,
|
|
2463
|
+
direction = sortState.direction;
|
|
2464
|
+
|
|
2465
|
+
if (newValue !== option.value) {
|
|
2466
|
+
option = options.find(function (o) {
|
|
2467
|
+
return o.value === newValue;
|
|
2468
|
+
});
|
|
2469
|
+
} else {
|
|
2470
|
+
direction = direction === sortDesc ? sortAsc : sortDesc;
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2473
|
+
setSortState({
|
|
2474
|
+
option: option,
|
|
2475
|
+
direction: direction
|
|
2476
|
+
});
|
|
2477
|
+
if (onChange) onChange(event, {
|
|
2478
|
+
value: option.value,
|
|
2479
|
+
direction: direction
|
|
2480
|
+
});
|
|
2481
|
+
handleClose();
|
|
2482
|
+
};
|
|
2483
|
+
|
|
2484
|
+
var isDisabled = options === undefined || options.length === 0;
|
|
2485
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Root, _objectSpread$g(_objectSpread$g({}, componentProps.root), {}, {
|
|
2486
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(ButtonBase, _objectSpread$g({
|
|
2487
|
+
onClick: handleOpen,
|
|
2488
|
+
disabled: isDisabled,
|
|
2489
|
+
label: caption,
|
|
2490
|
+
optionLabel: sortState.option.label || '',
|
|
2491
|
+
descending: sortState.direction !== sortAsc
|
|
2492
|
+
}, componentProps.buttonBase)), /*#__PURE__*/jsxRuntime.jsx(Menu, _objectSpread$g(_objectSpread$g({
|
|
2493
|
+
anchorEl: anchorEl,
|
|
2494
|
+
keepMounted: true,
|
|
2495
|
+
open: Boolean(anchorEl),
|
|
2496
|
+
onClose: handleClose,
|
|
2497
|
+
elevation: 1,
|
|
2498
|
+
marginThreshold: 0,
|
|
2499
|
+
anchorOrigin: {
|
|
2500
|
+
vertical: 'bottom',
|
|
2501
|
+
horizontal: 'left'
|
|
2502
|
+
},
|
|
2503
|
+
transformOrigin: {
|
|
2504
|
+
vertical: 'top',
|
|
2505
|
+
horizontal: 'left'
|
|
2506
|
+
},
|
|
2507
|
+
PaperProps: {
|
|
2508
|
+
style: {
|
|
2509
|
+
minWidth: 150,
|
|
2510
|
+
marginTop: 4
|
|
2511
|
+
}
|
|
2512
|
+
}
|
|
2513
|
+
}, componentProps.menu), {}, {
|
|
2514
|
+
children: options.map(function (option) {
|
|
2515
|
+
return /*#__PURE__*/jsxRuntime.jsx(MenuItem, _objectSpread$g({
|
|
2516
|
+
value: option.value,
|
|
2517
|
+
label: option.label,
|
|
2518
|
+
onClick: handleMenuItemClick,
|
|
2519
|
+
selected: option.value === sortState.option.value
|
|
2520
|
+
}, componentProps.menuItem), option.value);
|
|
2521
|
+
})
|
|
2522
|
+
}))]
|
|
2523
|
+
}));
|
|
2524
|
+
}
|
|
2525
|
+
Sort.propTypes = {
|
|
2526
|
+
/**
|
|
2527
|
+
* Text shown before sort options
|
|
2528
|
+
*/
|
|
2529
|
+
caption: PropTypes__default["default"].string,
|
|
2530
|
+
|
|
2531
|
+
/**
|
|
2532
|
+
* Value string for ascending sort
|
|
2533
|
+
*/
|
|
2534
|
+
sortAsc: PropTypes__default["default"].string,
|
|
2535
|
+
|
|
2536
|
+
/**
|
|
2537
|
+
* Value string for descending sort
|
|
2538
|
+
*/
|
|
2539
|
+
sortDesc: PropTypes__default["default"].string,
|
|
2540
|
+
|
|
2541
|
+
/**
|
|
2542
|
+
* Function that is called when sort option is changed
|
|
2543
|
+
*/
|
|
2544
|
+
onChange: PropTypes__default["default"].func,
|
|
2545
|
+
|
|
2546
|
+
/**
|
|
2547
|
+
* Array of sort options
|
|
2548
|
+
*/
|
|
2549
|
+
options: PropTypes__default["default"].arrayOf(PropTypes__default["default"].shape({
|
|
2550
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
2551
|
+
value: PropTypes__default["default"].any,
|
|
2552
|
+
label: PropTypes__default["default"].string
|
|
2553
|
+
})),
|
|
2554
|
+
|
|
2555
|
+
/**
|
|
2556
|
+
* Initial sort option
|
|
2557
|
+
*/
|
|
2558
|
+
initialSort: PropTypes__default["default"].shape({
|
|
2559
|
+
option: PropTypes__default["default"].shape({
|
|
2560
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
2561
|
+
value: PropTypes__default["default"].any,
|
|
2562
|
+
label: PropTypes__default["default"].string
|
|
2563
|
+
}),
|
|
2564
|
+
direction: PropTypes__default["default"].string
|
|
2565
|
+
}),
|
|
2566
|
+
// Overrides
|
|
2567
|
+
|
|
2568
|
+
/**
|
|
2569
|
+
* Override styles with className
|
|
2570
|
+
*/
|
|
2571
|
+
className: PropTypes__default["default"].string,
|
|
2572
|
+
|
|
2573
|
+
/**
|
|
2574
|
+
* Override or extend the styles applied to the component
|
|
2575
|
+
*/
|
|
2576
|
+
classes: PropTypes__default["default"].instanceOf(Object),
|
|
2577
|
+
|
|
2578
|
+
/**
|
|
2579
|
+
* Replace internal components
|
|
2580
|
+
*/
|
|
2581
|
+
components: PropTypes__default["default"].shape({
|
|
2582
|
+
Root: PropTypes__default["default"].elementType,
|
|
2583
|
+
Menu: PropTypes__default["default"].elementType,
|
|
2584
|
+
MenuItem: PropTypes__default["default"].elementType,
|
|
2585
|
+
ButtonBase: PropTypes__default["default"].elementType
|
|
2586
|
+
}),
|
|
2587
|
+
|
|
2588
|
+
/**
|
|
2589
|
+
* Add internal component props
|
|
2590
|
+
*/
|
|
2591
|
+
componentProps: PropTypes__default["default"].shape({
|
|
2592
|
+
root: PropTypes__default["default"].instanceOf(Object),
|
|
2593
|
+
menu: PropTypes__default["default"].instanceOf(Object),
|
|
2594
|
+
menuItem: PropTypes__default["default"].instanceOf(Object),
|
|
2595
|
+
buttonBase: PropTypes__default["default"].instanceOf(Object)
|
|
2596
|
+
})
|
|
2597
|
+
};
|
|
2598
|
+
Sort.defaultProps = {
|
|
2599
|
+
caption: 'Sort by',
|
|
2600
|
+
sortAsc: 'ascending',
|
|
2601
|
+
sortDesc: 'descending',
|
|
2602
|
+
onChange: undefined,
|
|
2603
|
+
initialSort: undefined,
|
|
2604
|
+
options: [],
|
|
2605
|
+
className: undefined,
|
|
2606
|
+
classes: undefined,
|
|
2607
|
+
components: undefined,
|
|
2608
|
+
componentProps: undefined
|
|
2609
|
+
};
|
|
2610
|
+
|
|
2611
|
+
var ComponentWithOverrides$d = withOverrides(defaultComponents$d, {
|
|
2612
|
+
name: name$d
|
|
2613
|
+
})(Sort);
|
|
2614
|
+
var Component$d = styles$p.withStyles(styles$d, {
|
|
2615
|
+
name: name$d
|
|
2616
|
+
})(ComponentWithOverrides$d);
|
|
2617
|
+
Component$d.displayName = 'Sort';
|
|
2618
|
+
|
|
2619
|
+
function ownKeys$f(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; }
|
|
2620
|
+
|
|
2621
|
+
function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1820
2622
|
|
|
1821
2623
|
function EmptySlot() {
|
|
1822
2624
|
return /*#__PURE__*/jsxRuntime.jsx(material.Typography, {
|
|
@@ -1824,7 +2626,7 @@ function EmptySlot() {
|
|
|
1824
2626
|
});
|
|
1825
2627
|
}
|
|
1826
2628
|
|
|
1827
|
-
var styles$
|
|
2629
|
+
var styles$c = function styles() {
|
|
1828
2630
|
return {
|
|
1829
2631
|
root: {
|
|
1830
2632
|
width: '100%'
|
|
@@ -1833,12 +2635,12 @@ var styles$a = function styles() {
|
|
|
1833
2635
|
listItem: {}
|
|
1834
2636
|
};
|
|
1835
2637
|
};
|
|
1836
|
-
var defaultComponents$
|
|
2638
|
+
var defaultComponents$c = {
|
|
1837
2639
|
Root: material.List,
|
|
1838
2640
|
ListSubheader: material.ListSubheader,
|
|
1839
|
-
ListItem: Component$
|
|
2641
|
+
ListItem: Component$j
|
|
1840
2642
|
};
|
|
1841
|
-
var name$
|
|
2643
|
+
var name$c = 'VdtItemList';
|
|
1842
2644
|
function ItemList(_ref) {
|
|
1843
2645
|
var itemListType = _ref.itemListType,
|
|
1844
2646
|
primary = _ref.primary,
|
|
@@ -1872,14 +2674,14 @@ function ItemList(_ref) {
|
|
|
1872
2674
|
};
|
|
1873
2675
|
})) || [];
|
|
1874
2676
|
}, [itemListType.item]);
|
|
1875
|
-
return /*#__PURE__*/jsxRuntime.jsxs(List, _objectSpread$
|
|
2677
|
+
return /*#__PURE__*/jsxRuntime.jsxs(List, _objectSpread$f(_objectSpread$f({
|
|
1876
2678
|
dense: dense
|
|
1877
2679
|
}, componentProps.root), {}, {
|
|
1878
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(ListSubheader, _objectSpread$
|
|
2680
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(ListSubheader, _objectSpread$f({}, componentProps.listSubheader)), /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1879
2681
|
children: [!isLoading && listItems.length === 0 && showSlot(emptySlot), (isLoading ? loadingListItems : listItems).map(function (_ref2) {
|
|
1880
2682
|
var key = _ref2.key,
|
|
1881
2683
|
itemType = _ref2.itemType;
|
|
1882
|
-
return /*#__PURE__*/jsxRuntime.jsx(ListItem, _objectSpread$
|
|
2684
|
+
return /*#__PURE__*/jsxRuntime.jsx(ListItem, _objectSpread$f({
|
|
1883
2685
|
itemType: itemType,
|
|
1884
2686
|
primary: primary,
|
|
1885
2687
|
secondary: secondary,
|
|
@@ -2004,21 +2806,21 @@ ItemList.defaultProps = {
|
|
|
2004
2806
|
componentProps: undefined
|
|
2005
2807
|
};
|
|
2006
2808
|
|
|
2007
|
-
var ComponentWithOverrides$
|
|
2008
|
-
name: name$
|
|
2809
|
+
var ComponentWithOverrides$c = withOverrides(defaultComponents$c, {
|
|
2810
|
+
name: name$c
|
|
2009
2811
|
})(ItemList);
|
|
2010
|
-
var Component$
|
|
2011
|
-
name: name$
|
|
2012
|
-
})(ComponentWithOverrides$
|
|
2013
|
-
Component$
|
|
2812
|
+
var Component$c = styles$p.withStyles(styles$c, {
|
|
2813
|
+
name: name$c
|
|
2814
|
+
})(ComponentWithOverrides$c);
|
|
2815
|
+
Component$c.displayName = 'ItemList';
|
|
2014
2816
|
|
|
2015
|
-
var _excluded$
|
|
2817
|
+
var _excluded$4 = ["id", "value", "defaultValue", "required", "disabled", "options", "fullWidth", "orientation", "labelPlacement", "justifyContent", "size", "onChange", "FormControlLabelComponent", "formControlLabelProps", "CheckboxComponent", "checkboxProps"],
|
|
2016
2818
|
_excluded2$2 = ["vdtClassNames", "className", "autoComplete", "autoFocus", "rows", "type"],
|
|
2017
2819
|
_excluded3$1 = ["name", "value", "label", "disabled"];
|
|
2018
2820
|
|
|
2019
|
-
function ownKeys$
|
|
2821
|
+
function ownKeys$e(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; }
|
|
2020
2822
|
|
|
2021
|
-
function _objectSpread$
|
|
2823
|
+
function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2022
2824
|
var CheckboxGroup = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
2023
2825
|
var id = _ref.id,
|
|
2024
2826
|
value = _ref.value,
|
|
@@ -2040,7 +2842,7 @@ var CheckboxGroup = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
2040
2842
|
CheckboxComponent = _ref$CheckboxComponen === void 0 ? material.Checkbox : _ref$CheckboxComponen,
|
|
2041
2843
|
_ref$checkboxProps = _ref.checkboxProps,
|
|
2042
2844
|
checkboxProps = _ref$checkboxProps === void 0 ? {} : _ref$checkboxProps,
|
|
2043
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
2845
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$4);
|
|
2044
2846
|
|
|
2045
2847
|
var className = props.vdtClassNames;
|
|
2046
2848
|
props.className;
|
|
@@ -2062,8 +2864,8 @@ var CheckboxGroup = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
2062
2864
|
return v !== checkboxValue;
|
|
2063
2865
|
}) : [].concat(_toConsumableArray__default["default"](localValue), [checkboxValue]);
|
|
2064
2866
|
valueRef.current = newValue;
|
|
2065
|
-
onChange(_objectSpread$
|
|
2066
|
-
target: _objectSpread$
|
|
2867
|
+
onChange(_objectSpread$e(_objectSpread$e({}, e), {}, {
|
|
2868
|
+
target: _objectSpread$e(_objectSpread$e({}, e.target), {}, {
|
|
2067
2869
|
value: newValue
|
|
2068
2870
|
})
|
|
2069
2871
|
}), {
|
|
@@ -2072,14 +2874,14 @@ var CheckboxGroup = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
2072
2874
|
};
|
|
2073
2875
|
|
|
2074
2876
|
var isControlled = value !== undefined;
|
|
2075
|
-
return /*#__PURE__*/jsxRuntime.jsx(material.FormGroup, _objectSpread$
|
|
2877
|
+
return /*#__PURE__*/jsxRuntime.jsx(material.FormGroup, _objectSpread$e(_objectSpread$e({
|
|
2076
2878
|
ref: ref,
|
|
2077
2879
|
className: className,
|
|
2078
2880
|
row: orientation === 'horizontal',
|
|
2079
2881
|
onChange: handleOnChange,
|
|
2080
2882
|
role: "group",
|
|
2081
2883
|
sx: {
|
|
2082
|
-
'&': _objectSpread$
|
|
2884
|
+
'&': _objectSpread$e({
|
|
2083
2885
|
width: '100%'
|
|
2084
2886
|
}, orientation === 'horizontal' && justifyContent ? {
|
|
2085
2887
|
justifyContent: justifyContent
|
|
@@ -2093,7 +2895,7 @@ var CheckboxGroup = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
2093
2895
|
optionDisabled = _ref2.disabled,
|
|
2094
2896
|
optionProps = _objectWithoutProperties__default["default"](_ref2, _excluded3$1);
|
|
2095
2897
|
|
|
2096
|
-
return /*#__PURE__*/jsxRuntime.jsx(FormControlLabelComponent, _objectSpread$
|
|
2898
|
+
return /*#__PURE__*/jsxRuntime.jsx(FormControlLabelComponent, _objectSpread$e({
|
|
2097
2899
|
label: optionLabel || optionValue,
|
|
2098
2900
|
labelPlacement: labelPlacement,
|
|
2099
2901
|
size: size,
|
|
@@ -2101,7 +2903,7 @@ var CheckboxGroup = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
2101
2903
|
'&': {
|
|
2102
2904
|
overflow: 'hidden'
|
|
2103
2905
|
},
|
|
2104
|
-
'& .MuiFormControlLabel-label': _objectSpread$
|
|
2906
|
+
'& .MuiFormControlLabel-label': _objectSpread$e(_objectSpread$e(_objectSpread$e({}, size === 'small' ? {
|
|
2105
2907
|
fontSize: '0.8rem'
|
|
2106
2908
|
} : {}), orientation === 'horizontal' ? {
|
|
2107
2909
|
textAlign: 'center',
|
|
@@ -2112,7 +2914,7 @@ var CheckboxGroup = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
2112
2914
|
textOverflow: 'ellipsis'
|
|
2113
2915
|
})
|
|
2114
2916
|
},
|
|
2115
|
-
control: /*#__PURE__*/jsxRuntime.jsx(CheckboxComponent, _objectSpread$
|
|
2917
|
+
control: /*#__PURE__*/jsxRuntime.jsx(CheckboxComponent, _objectSpread$e(_objectSpread$e(_objectSpread$e({
|
|
2116
2918
|
id: "".concat(id, "-").concat(optionName || optionValue),
|
|
2117
2919
|
value: optionValue
|
|
2118
2920
|
}, isControlled ? {
|
|
@@ -2128,10 +2930,10 @@ var CheckboxGroup = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
2128
2930
|
}));
|
|
2129
2931
|
});
|
|
2130
2932
|
|
|
2131
|
-
function ownKeys$
|
|
2933
|
+
function ownKeys$d(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; }
|
|
2132
2934
|
|
|
2133
|
-
function _objectSpread$
|
|
2134
|
-
var styles$
|
|
2935
|
+
function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2936
|
+
var styles$b = function styles() {
|
|
2135
2937
|
return {
|
|
2136
2938
|
root: {},
|
|
2137
2939
|
formHelperText: {},
|
|
@@ -2202,7 +3004,7 @@ var styles$9 = function styles() {
|
|
|
2202
3004
|
checkbox: {}
|
|
2203
3005
|
};
|
|
2204
3006
|
};
|
|
2205
|
-
var defaultComponents$
|
|
3007
|
+
var defaultComponents$b = {
|
|
2206
3008
|
Root: material.FormControl,
|
|
2207
3009
|
FormHelperText: material.FormHelperText,
|
|
2208
3010
|
InputLabel: material.InputLabel,
|
|
@@ -2213,7 +3015,7 @@ var defaultComponents$9 = {
|
|
|
2213
3015
|
FormControlLabel: material.FormControlLabel,
|
|
2214
3016
|
Checkbox: material.Checkbox
|
|
2215
3017
|
};
|
|
2216
|
-
var name$
|
|
3018
|
+
var name$b = 'VdtCheckboxGroupInput';
|
|
2217
3019
|
function CheckboxGroupInput(_ref) {
|
|
2218
3020
|
var inputName = _ref.name,
|
|
2219
3021
|
label = _ref.label,
|
|
@@ -2250,40 +3052,40 @@ function CheckboxGroupInput(_ref) {
|
|
|
2250
3052
|
outlined: OutlinedInput
|
|
2251
3053
|
}[variant];
|
|
2252
3054
|
var inputComponentProps = {
|
|
2253
|
-
standard: _objectSpread$
|
|
3055
|
+
standard: _objectSpread$d({
|
|
2254
3056
|
disableUnderline: true
|
|
2255
3057
|
}, componentProps.input),
|
|
2256
|
-
filled: _objectSpread$
|
|
3058
|
+
filled: _objectSpread$d({
|
|
2257
3059
|
disableUnderline: true
|
|
2258
3060
|
}, componentProps.filledInput),
|
|
2259
|
-
outlined: _objectSpread$
|
|
3061
|
+
outlined: _objectSpread$d({
|
|
2260
3062
|
label: label,
|
|
2261
3063
|
notched: true
|
|
2262
3064
|
}, componentProps.outlinedInput)
|
|
2263
3065
|
}[variant];
|
|
2264
3066
|
var isError = !!error;
|
|
2265
3067
|
var errorText = (error || '').trim();
|
|
2266
|
-
return /*#__PURE__*/jsxRuntime.jsxs(FormControl, _objectSpread$
|
|
3068
|
+
return /*#__PURE__*/jsxRuntime.jsxs(FormControl, _objectSpread$d(_objectSpread$d({
|
|
2267
3069
|
error: isError,
|
|
2268
3070
|
required: required,
|
|
2269
3071
|
disabled: disabled,
|
|
2270
3072
|
variant: variant,
|
|
2271
3073
|
fullWidth: fullWidth
|
|
2272
3074
|
}, componentProps.root), {}, {
|
|
2273
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(InputLabel, _objectSpread$
|
|
3075
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(InputLabel, _objectSpread$d(_objectSpread$d({
|
|
2274
3076
|
htmlFor: inputName,
|
|
2275
3077
|
id: "".concat(inputName, "-label"),
|
|
2276
3078
|
shrink: true
|
|
2277
3079
|
}, componentProps.inputLabel), {}, {
|
|
2278
3080
|
children: label
|
|
2279
|
-
})), /*#__PURE__*/jsxRuntime.jsx(InputComponent, _objectSpread$
|
|
3081
|
+
})), /*#__PURE__*/jsxRuntime.jsx(InputComponent, _objectSpread$d({
|
|
2280
3082
|
id: inputName,
|
|
2281
3083
|
name: inputName,
|
|
2282
3084
|
fullWidth: fullWidth,
|
|
2283
3085
|
size: size,
|
|
2284
3086
|
inputComponent: FormGroup,
|
|
2285
3087
|
"aria-describedby": "".concat(inputName, "-describedby"),
|
|
2286
|
-
inputProps: _objectSpread$
|
|
3088
|
+
inputProps: _objectSpread$d({
|
|
2287
3089
|
value: value,
|
|
2288
3090
|
defaultValue: defaultValue,
|
|
2289
3091
|
options: options,
|
|
@@ -2300,7 +3102,7 @@ function CheckboxGroupInput(_ref) {
|
|
|
2300
3102
|
checkboxProps: componentProps.checkbox,
|
|
2301
3103
|
vdtClassNames: componentProps.formGroup.className
|
|
2302
3104
|
}, componentProps.formGroup)
|
|
2303
|
-
}, inputComponentProps)), (errorText || helperText) && /*#__PURE__*/jsxRuntime.jsx(FormHelperText, _objectSpread$
|
|
3105
|
+
}, inputComponentProps)), (errorText || helperText) && /*#__PURE__*/jsxRuntime.jsx(FormHelperText, _objectSpread$d(_objectSpread$d({
|
|
2304
3106
|
id: "".concat(inputName, "-describedby")
|
|
2305
3107
|
}, componentProps.formHelperText), {}, {
|
|
2306
3108
|
children: isError ? errorText : helperText
|
|
@@ -2473,18 +3275,18 @@ CheckboxGroupInput.defaultProps = {
|
|
|
2473
3275
|
componentProps: undefined
|
|
2474
3276
|
};
|
|
2475
3277
|
|
|
2476
|
-
var ComponentWithOverrides$
|
|
2477
|
-
name: name$
|
|
3278
|
+
var ComponentWithOverrides$b = withOverrides(defaultComponents$b, {
|
|
3279
|
+
name: name$b
|
|
2478
3280
|
})(CheckboxGroupInput);
|
|
2479
|
-
var Component$
|
|
2480
|
-
name: name$
|
|
2481
|
-
})(ComponentWithOverrides$
|
|
2482
|
-
Component$
|
|
3281
|
+
var Component$b = styles$p.withStyles(styles$b, {
|
|
3282
|
+
name: name$b
|
|
3283
|
+
})(ComponentWithOverrides$b);
|
|
3284
|
+
Component$b.displayName = 'CheckboxGroupInput';
|
|
2483
3285
|
|
|
2484
|
-
function ownKeys$
|
|
3286
|
+
function ownKeys$c(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; }
|
|
2485
3287
|
|
|
2486
|
-
function _objectSpread$
|
|
2487
|
-
var styles$
|
|
3288
|
+
function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3289
|
+
var styles$a = function styles() {
|
|
2488
3290
|
return {
|
|
2489
3291
|
root: {
|
|
2490
3292
|
// Show label correctly with ellipsis
|
|
@@ -2497,11 +3299,11 @@ var styles$8 = function styles() {
|
|
|
2497
3299
|
menuItem: {}
|
|
2498
3300
|
};
|
|
2499
3301
|
};
|
|
2500
|
-
var defaultComponents$
|
|
3302
|
+
var defaultComponents$a = {
|
|
2501
3303
|
Root: material.TextField,
|
|
2502
3304
|
MenuItem: material.MenuItem
|
|
2503
3305
|
};
|
|
2504
|
-
var name$
|
|
3306
|
+
var name$a = 'VdtSelectInput';
|
|
2505
3307
|
function SelectInput(_ref) {
|
|
2506
3308
|
var inputName = _ref.name,
|
|
2507
3309
|
label = _ref.label,
|
|
@@ -2538,7 +3340,7 @@ function SelectInput(_ref) {
|
|
|
2538
3340
|
var isControlled = value !== undefined;
|
|
2539
3341
|
var isError = !!error;
|
|
2540
3342
|
var errorText = (error || '').trim();
|
|
2541
|
-
return /*#__PURE__*/jsxRuntime.jsx(TextField, _objectSpread$
|
|
3343
|
+
return /*#__PURE__*/jsxRuntime.jsx(TextField, _objectSpread$c(_objectSpread$c(_objectSpread$c({
|
|
2542
3344
|
id: inputName,
|
|
2543
3345
|
name: inputName,
|
|
2544
3346
|
label: label
|
|
@@ -2565,7 +3367,7 @@ function SelectInput(_ref) {
|
|
|
2565
3367
|
onFocus: onFocus
|
|
2566
3368
|
}, componentProps.root), {}, {
|
|
2567
3369
|
children: options === null || options === void 0 ? void 0 : options.map(function (option) {
|
|
2568
|
-
return /*#__PURE__*/jsxRuntime.jsx(MenuItem, _objectSpread$
|
|
3370
|
+
return /*#__PURE__*/jsxRuntime.jsx(MenuItem, _objectSpread$c(_objectSpread$c(_objectSpread$c({}, option), componentProps.menuItem), {}, {
|
|
2569
3371
|
children: (option === null || option === void 0 ? void 0 : option.label) || (option === null || option === void 0 ? void 0 : option.value)
|
|
2570
3372
|
}), option === null || option === void 0 ? void 0 : option.value);
|
|
2571
3373
|
})
|
|
@@ -2720,26 +3522,26 @@ SelectInput.defaultProps = {
|
|
|
2720
3522
|
componentProps: undefined
|
|
2721
3523
|
};
|
|
2722
3524
|
|
|
2723
|
-
var ComponentWithOverrides$
|
|
2724
|
-
name: name$
|
|
3525
|
+
var ComponentWithOverrides$a = withOverrides(defaultComponents$a, {
|
|
3526
|
+
name: name$a
|
|
2725
3527
|
})(SelectInput);
|
|
2726
|
-
var Component$
|
|
2727
|
-
name: name$
|
|
2728
|
-
})(ComponentWithOverrides$
|
|
2729
|
-
Component$
|
|
3528
|
+
var Component$a = styles$p.withStyles(styles$a, {
|
|
3529
|
+
name: name$a
|
|
3530
|
+
})(ComponentWithOverrides$a);
|
|
3531
|
+
Component$a.displayName = 'SelectInput';
|
|
2730
3532
|
|
|
2731
|
-
function ownKeys$
|
|
3533
|
+
function ownKeys$b(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; }
|
|
2732
3534
|
|
|
2733
|
-
function _objectSpread$
|
|
2734
|
-
var styles$
|
|
3535
|
+
function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3536
|
+
var styles$9 = function styles() {
|
|
2735
3537
|
return {
|
|
2736
3538
|
root: {}
|
|
2737
3539
|
};
|
|
2738
3540
|
};
|
|
2739
|
-
var defaultComponents$
|
|
3541
|
+
var defaultComponents$9 = {
|
|
2740
3542
|
Root: material.TextField
|
|
2741
3543
|
};
|
|
2742
|
-
var name$
|
|
3544
|
+
var name$9 = 'VdtTextInput';
|
|
2743
3545
|
function TextInput(_ref) {
|
|
2744
3546
|
var inputName = _ref.name,
|
|
2745
3547
|
label = _ref.label,
|
|
@@ -2772,7 +3574,7 @@ function TextInput(_ref) {
|
|
|
2772
3574
|
var isControlled = value !== undefined;
|
|
2773
3575
|
var isError = !!error;
|
|
2774
3576
|
var errorText = (error || '').trim();
|
|
2775
|
-
return /*#__PURE__*/jsxRuntime.jsx(TextField, _objectSpread$
|
|
3577
|
+
return /*#__PURE__*/jsxRuntime.jsx(TextField, _objectSpread$b(_objectSpread$b({
|
|
2776
3578
|
id: inputName,
|
|
2777
3579
|
name: inputName,
|
|
2778
3580
|
label: label
|
|
@@ -2928,18 +3730,18 @@ TextInput.defaultProps = {
|
|
|
2928
3730
|
componentProps: undefined
|
|
2929
3731
|
};
|
|
2930
3732
|
|
|
2931
|
-
var ComponentWithOverrides$
|
|
2932
|
-
name: name$
|
|
3733
|
+
var ComponentWithOverrides$9 = withOverrides(defaultComponents$9, {
|
|
3734
|
+
name: name$9
|
|
2933
3735
|
})(TextInput);
|
|
2934
|
-
var Component$
|
|
2935
|
-
name: name$
|
|
2936
|
-
})(ComponentWithOverrides$
|
|
2937
|
-
Component$
|
|
3736
|
+
var Component$9 = styles$p.withStyles(styles$9, {
|
|
3737
|
+
name: name$9
|
|
3738
|
+
})(ComponentWithOverrides$9);
|
|
3739
|
+
Component$9.displayName = 'TextInput';
|
|
2938
3740
|
|
|
2939
|
-
function ownKeys$
|
|
3741
|
+
function ownKeys$a(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; }
|
|
2940
3742
|
|
|
2941
|
-
function _objectSpread$
|
|
2942
|
-
var styles$
|
|
3743
|
+
function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3744
|
+
var styles$8 = function styles() {
|
|
2943
3745
|
return {
|
|
2944
3746
|
root: {},
|
|
2945
3747
|
formHelperText: {},
|
|
@@ -3051,14 +3853,14 @@ var styles$6 = function styles() {
|
|
|
3051
3853
|
chip: {}
|
|
3052
3854
|
};
|
|
3053
3855
|
};
|
|
3054
|
-
var defaultComponents$
|
|
3856
|
+
var defaultComponents$8 = {
|
|
3055
3857
|
Root: material.FormControl,
|
|
3056
3858
|
FormHelperText: material.FormHelperText,
|
|
3057
3859
|
Autocomplete: material.Autocomplete,
|
|
3058
3860
|
TextField: material.TextField,
|
|
3059
3861
|
Chip: material.Chip
|
|
3060
3862
|
};
|
|
3061
|
-
var name$
|
|
3863
|
+
var name$8 = 'VdtTagInput';
|
|
3062
3864
|
function TagInput(_ref) {
|
|
3063
3865
|
var inputName = _ref.name,
|
|
3064
3866
|
label = _ref.label,
|
|
@@ -3118,12 +3920,12 @@ function TagInput(_ref) {
|
|
|
3118
3920
|
var isControlled = value !== undefined;
|
|
3119
3921
|
var isError = !!error;
|
|
3120
3922
|
var errorText = (error || '').trim();
|
|
3121
|
-
return /*#__PURE__*/jsxRuntime.jsxs(FormControl, _objectSpread$
|
|
3923
|
+
return /*#__PURE__*/jsxRuntime.jsxs(FormControl, _objectSpread$a(_objectSpread$a({
|
|
3122
3924
|
error: isError,
|
|
3123
3925
|
required: required,
|
|
3124
3926
|
fullWidth: fullWidth
|
|
3125
3927
|
}, componentProps.root), {}, {
|
|
3126
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Autocomplete, _objectSpread$
|
|
3928
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Autocomplete, _objectSpread$a(_objectSpread$a({
|
|
3127
3929
|
id: inputName,
|
|
3128
3930
|
name: inputName,
|
|
3129
3931
|
value: value
|
|
@@ -3159,7 +3961,7 @@ function TagInput(_ref) {
|
|
|
3159
3961
|
disableClearable: true,
|
|
3160
3962
|
renderTags: function renderTags(values, getTagProps) {
|
|
3161
3963
|
return values.map(function (v, index) {
|
|
3162
|
-
return /*#__PURE__*/jsxRuntime.jsx(Chip, _objectSpread$
|
|
3964
|
+
return /*#__PURE__*/jsxRuntime.jsx(Chip, _objectSpread$a(_objectSpread$a({
|
|
3163
3965
|
label: _getOptionLabel(v) || v,
|
|
3164
3966
|
size: size
|
|
3165
3967
|
}, getTagProps({
|
|
@@ -3170,13 +3972,13 @@ function TagInput(_ref) {
|
|
|
3170
3972
|
renderInput: function renderInput(params) {
|
|
3171
3973
|
var _componentProps$textF;
|
|
3172
3974
|
|
|
3173
|
-
return /*#__PURE__*/jsxRuntime.jsx(TextField, _objectSpread$
|
|
3975
|
+
return /*#__PURE__*/jsxRuntime.jsx(TextField, _objectSpread$a(_objectSpread$a({}, params), {}, {
|
|
3174
3976
|
label: label,
|
|
3175
3977
|
error: isError,
|
|
3176
3978
|
required: required,
|
|
3177
3979
|
variant: variant,
|
|
3178
3980
|
size: size,
|
|
3179
|
-
InputProps: _objectSpread$
|
|
3981
|
+
InputProps: _objectSpread$a(_objectSpread$a({}, params.InputProps), {}, {
|
|
3180
3982
|
endAdornment: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
3181
3983
|
children: [loading ? /*#__PURE__*/jsxRuntime.jsx(material.CircularProgress, {
|
|
3182
3984
|
color: "inherit",
|
|
@@ -3187,7 +3989,7 @@ function TagInput(_ref) {
|
|
|
3187
3989
|
fullWidth: true
|
|
3188
3990
|
}, componentProps.textField));
|
|
3189
3991
|
}
|
|
3190
|
-
}, componentProps.autocomplete)), (errorText || helperText) && /*#__PURE__*/jsxRuntime.jsx(FormHelperText, _objectSpread$
|
|
3992
|
+
}, componentProps.autocomplete)), (errorText || helperText) && /*#__PURE__*/jsxRuntime.jsx(FormHelperText, _objectSpread$a(_objectSpread$a({}, componentProps.formHelperText), {}, {
|
|
3191
3993
|
children: isError ? errorText : helperText
|
|
3192
3994
|
}))]
|
|
3193
3995
|
}));
|
|
@@ -3364,21 +4166,21 @@ TagInput.defaultProps = {
|
|
|
3364
4166
|
componentProps: undefined
|
|
3365
4167
|
};
|
|
3366
4168
|
|
|
3367
|
-
var ComponentWithOverrides$
|
|
3368
|
-
name: name$
|
|
4169
|
+
var ComponentWithOverrides$8 = withOverrides(defaultComponents$8, {
|
|
4170
|
+
name: name$8
|
|
3369
4171
|
})(TagInput);
|
|
3370
|
-
var Component$
|
|
3371
|
-
name: name$
|
|
3372
|
-
})(ComponentWithOverrides$
|
|
3373
|
-
Component$
|
|
4172
|
+
var Component$8 = styles$p.withStyles(styles$8, {
|
|
4173
|
+
name: name$8
|
|
4174
|
+
})(ComponentWithOverrides$8);
|
|
4175
|
+
Component$8.displayName = 'TagInput';
|
|
3374
4176
|
|
|
3375
|
-
var _excluded$
|
|
4177
|
+
var _excluded$3 = ["id", "value", "defaultValue", "disabled", "options", "orientation", "labelPlacement", "justifyContent", "size", "onChange", "FormControlLabelComponent", "formControlLabelProps", "RadioComponent", "radioProps"],
|
|
3376
4178
|
_excluded2$1 = ["vdtClassNames", "className", "autoComplete", "autoFocus", "rows", "type"],
|
|
3377
4179
|
_excluded3 = ["name", "value", "label", "disabled"];
|
|
3378
4180
|
|
|
3379
|
-
function ownKeys$
|
|
4181
|
+
function ownKeys$9(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; }
|
|
3380
4182
|
|
|
3381
|
-
function _objectSpread$
|
|
4183
|
+
function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3382
4184
|
var RadioGroup = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
3383
4185
|
var id = _ref.id,
|
|
3384
4186
|
value = _ref.value,
|
|
@@ -3398,7 +4200,7 @@ var RadioGroup = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
3398
4200
|
RadioComponent = _ref$RadioComponent === void 0 ? material.Radio : _ref$RadioComponent,
|
|
3399
4201
|
_ref$radioProps = _ref.radioProps,
|
|
3400
4202
|
radioProps = _ref$radioProps === void 0 ? {} : _ref$radioProps,
|
|
3401
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
4203
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$3);
|
|
3402
4204
|
|
|
3403
4205
|
var className = props.vdtClassNames;
|
|
3404
4206
|
props.className;
|
|
@@ -3417,7 +4219,7 @@ var RadioGroup = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
3417
4219
|
};
|
|
3418
4220
|
|
|
3419
4221
|
var isControlled = value !== undefined;
|
|
3420
|
-
return /*#__PURE__*/jsxRuntime.jsx(material.RadioGroup, _objectSpread$
|
|
4222
|
+
return /*#__PURE__*/jsxRuntime.jsx(material.RadioGroup, _objectSpread$9(_objectSpread$9(_objectSpread$9({
|
|
3421
4223
|
ref: ref,
|
|
3422
4224
|
id: id,
|
|
3423
4225
|
className: className
|
|
@@ -3430,7 +4232,7 @@ var RadioGroup = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
3430
4232
|
size: size,
|
|
3431
4233
|
onChange: handleChange,
|
|
3432
4234
|
sx: {
|
|
3433
|
-
'&': _objectSpread$
|
|
4235
|
+
'&': _objectSpread$9({
|
|
3434
4236
|
width: '100%'
|
|
3435
4237
|
}, orientation === 'horizontal' && justifyContent ? {
|
|
3436
4238
|
justifyContent: justifyContent
|
|
@@ -3444,7 +4246,7 @@ var RadioGroup = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
3444
4246
|
optionDisabled = _ref2.disabled,
|
|
3445
4247
|
optionProps = _objectWithoutProperties__default["default"](_ref2, _excluded3);
|
|
3446
4248
|
|
|
3447
|
-
return /*#__PURE__*/jsxRuntime.jsx(FormControlLabelComponent, _objectSpread$
|
|
4249
|
+
return /*#__PURE__*/jsxRuntime.jsx(FormControlLabelComponent, _objectSpread$9({
|
|
3448
4250
|
label: optionLabel,
|
|
3449
4251
|
labelPlacement: labelPlacement,
|
|
3450
4252
|
size: size,
|
|
@@ -3452,7 +4254,7 @@ var RadioGroup = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
3452
4254
|
'&': {
|
|
3453
4255
|
overflow: 'hidden'
|
|
3454
4256
|
},
|
|
3455
|
-
'& .MuiFormControlLabel-label': _objectSpread$
|
|
4257
|
+
'& .MuiFormControlLabel-label': _objectSpread$9(_objectSpread$9(_objectSpread$9({}, size === 'small' ? {
|
|
3456
4258
|
fontSize: '0.8rem'
|
|
3457
4259
|
} : {}), orientation === 'horizontal' ? {
|
|
3458
4260
|
textAlign: 'center',
|
|
@@ -3463,7 +4265,7 @@ var RadioGroup = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
3463
4265
|
textOverflow: 'ellipsis'
|
|
3464
4266
|
})
|
|
3465
4267
|
},
|
|
3466
|
-
control: /*#__PURE__*/jsxRuntime.jsx(RadioComponent, _objectSpread$
|
|
4268
|
+
control: /*#__PURE__*/jsxRuntime.jsx(RadioComponent, _objectSpread$9(_objectSpread$9({
|
|
3467
4269
|
id: "".concat(id, "-").concat(optionName || optionValue),
|
|
3468
4270
|
value: optionValue,
|
|
3469
4271
|
disabled: optionDisabled || disabled,
|
|
@@ -3474,10 +4276,10 @@ var RadioGroup = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
3474
4276
|
}));
|
|
3475
4277
|
});
|
|
3476
4278
|
|
|
3477
|
-
function ownKeys$
|
|
4279
|
+
function ownKeys$8(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; }
|
|
3478
4280
|
|
|
3479
|
-
function _objectSpread$
|
|
3480
|
-
var styles$
|
|
4281
|
+
function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4282
|
+
var styles$7 = function styles() {
|
|
3481
4283
|
return {
|
|
3482
4284
|
root: {},
|
|
3483
4285
|
formHelperText: {},
|
|
@@ -3550,7 +4352,7 @@ var styles$5 = function styles() {
|
|
|
3550
4352
|
radio: {}
|
|
3551
4353
|
};
|
|
3552
4354
|
};
|
|
3553
|
-
var defaultComponents$
|
|
4355
|
+
var defaultComponents$7 = {
|
|
3554
4356
|
Root: material.FormControl,
|
|
3555
4357
|
FormHelperText: material.FormHelperText,
|
|
3556
4358
|
InputLabel: material.InputLabel,
|
|
@@ -3561,7 +4363,7 @@ var defaultComponents$5 = {
|
|
|
3561
4363
|
FormControlLabel: material.FormControlLabel,
|
|
3562
4364
|
Radio: material.Radio
|
|
3563
4365
|
};
|
|
3564
|
-
var name$
|
|
4366
|
+
var name$7 = 'VdtRadioGroupInput';
|
|
3565
4367
|
function RadioGroupInput(_ref) {
|
|
3566
4368
|
var inputName = _ref.name,
|
|
3567
4369
|
label = _ref.label,
|
|
@@ -3598,39 +4400,39 @@ function RadioGroupInput(_ref) {
|
|
|
3598
4400
|
outlined: OutlinedInput
|
|
3599
4401
|
}[variant];
|
|
3600
4402
|
var inputComponentProps = {
|
|
3601
|
-
standard: _objectSpread$
|
|
4403
|
+
standard: _objectSpread$8({
|
|
3602
4404
|
disableUnderline: true
|
|
3603
4405
|
}, componentProps.input),
|
|
3604
|
-
filled: _objectSpread$
|
|
4406
|
+
filled: _objectSpread$8({
|
|
3605
4407
|
disableUnderline: true
|
|
3606
4408
|
}, componentProps.filledInput),
|
|
3607
|
-
outlined: _objectSpread$
|
|
4409
|
+
outlined: _objectSpread$8({
|
|
3608
4410
|
label: label,
|
|
3609
4411
|
notched: true
|
|
3610
4412
|
}, componentProps.outlinedInput)
|
|
3611
4413
|
}[variant];
|
|
3612
4414
|
var isError = !!error;
|
|
3613
4415
|
var errorText = (error || '').trim();
|
|
3614
|
-
return /*#__PURE__*/jsxRuntime.jsxs(FormControl, _objectSpread$
|
|
4416
|
+
return /*#__PURE__*/jsxRuntime.jsxs(FormControl, _objectSpread$8(_objectSpread$8({
|
|
3615
4417
|
error: isError,
|
|
3616
4418
|
required: required,
|
|
3617
4419
|
disabled: disabled,
|
|
3618
4420
|
variant: variant,
|
|
3619
4421
|
fullWidth: fullWidth
|
|
3620
4422
|
}, componentProps.root), {}, {
|
|
3621
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(InputLabel, _objectSpread$
|
|
4423
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(InputLabel, _objectSpread$8(_objectSpread$8({
|
|
3622
4424
|
htmlFor: inputName,
|
|
3623
4425
|
id: "".concat(inputName, "-label"),
|
|
3624
4426
|
shrink: true
|
|
3625
4427
|
}, componentProps.inputLabel), {}, {
|
|
3626
4428
|
children: label
|
|
3627
|
-
})), /*#__PURE__*/jsxRuntime.jsx(InputComponent, _objectSpread$
|
|
4429
|
+
})), /*#__PURE__*/jsxRuntime.jsx(InputComponent, _objectSpread$8({
|
|
3628
4430
|
id: inputName,
|
|
3629
4431
|
name: inputName,
|
|
3630
4432
|
fullWidth: fullWidth,
|
|
3631
4433
|
size: size,
|
|
3632
4434
|
inputComponent: RadioGroup,
|
|
3633
|
-
inputProps: _objectSpread$
|
|
4435
|
+
inputProps: _objectSpread$8({
|
|
3634
4436
|
value: value,
|
|
3635
4437
|
defaultValue: defaultValue,
|
|
3636
4438
|
options: options,
|
|
@@ -3647,7 +4449,7 @@ function RadioGroupInput(_ref) {
|
|
|
3647
4449
|
radioProps: componentProps.radio,
|
|
3648
4450
|
vdtClassNames: componentProps.radioGroup.className
|
|
3649
4451
|
}, componentProps.radioGroup)
|
|
3650
|
-
}, inputComponentProps)), (errorText || helperText) && /*#__PURE__*/jsxRuntime.jsx(FormHelperText, _objectSpread$
|
|
4452
|
+
}, inputComponentProps)), (errorText || helperText) && /*#__PURE__*/jsxRuntime.jsx(FormHelperText, _objectSpread$8(_objectSpread$8({}, componentProps.formHelperText), {}, {
|
|
3651
4453
|
children: isError ? errorText : helperText
|
|
3652
4454
|
}))]
|
|
3653
4455
|
}));
|
|
@@ -3819,18 +4621,18 @@ RadioGroupInput.defaultProps = {
|
|
|
3819
4621
|
componentProps: undefined
|
|
3820
4622
|
};
|
|
3821
4623
|
|
|
3822
|
-
var ComponentWithOverrides$
|
|
3823
|
-
name: name$
|
|
4624
|
+
var ComponentWithOverrides$7 = withOverrides(defaultComponents$7, {
|
|
4625
|
+
name: name$7
|
|
3824
4626
|
})(RadioGroupInput);
|
|
3825
|
-
var Component$
|
|
3826
|
-
name: name$
|
|
3827
|
-
})(ComponentWithOverrides$
|
|
3828
|
-
Component$
|
|
4627
|
+
var Component$7 = styles$p.withStyles(styles$7, {
|
|
4628
|
+
name: name$7
|
|
4629
|
+
})(ComponentWithOverrides$7);
|
|
4630
|
+
Component$7.displayName = 'RadioGroupInput';
|
|
3829
4631
|
|
|
3830
|
-
function ownKeys$
|
|
4632
|
+
function ownKeys$7(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; }
|
|
3831
4633
|
|
|
3832
|
-
function _objectSpread$
|
|
3833
|
-
var styles$
|
|
4634
|
+
function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4635
|
+
var styles$6 = function styles(theme) {
|
|
3834
4636
|
return {
|
|
3835
4637
|
root: {},
|
|
3836
4638
|
formControlLabel: {
|
|
@@ -3842,13 +4644,13 @@ var styles$4 = function styles(theme) {
|
|
|
3842
4644
|
"switch": {}
|
|
3843
4645
|
};
|
|
3844
4646
|
};
|
|
3845
|
-
var defaultComponents$
|
|
4647
|
+
var defaultComponents$6 = {
|
|
3846
4648
|
Root: material.FormControl,
|
|
3847
4649
|
FormControlLabel: material.FormControlLabel,
|
|
3848
4650
|
FormHelperText: material.FormHelperText,
|
|
3849
4651
|
Switch: material.Switch
|
|
3850
4652
|
};
|
|
3851
|
-
var name$
|
|
4653
|
+
var name$6 = 'VdtSwitchInput';
|
|
3852
4654
|
function SwitchInput(_ref) {
|
|
3853
4655
|
var inputName = _ref.name,
|
|
3854
4656
|
label = _ref.label,
|
|
@@ -3886,16 +4688,16 @@ function SwitchInput(_ref) {
|
|
|
3886
4688
|
|
|
3887
4689
|
var isError = !!error;
|
|
3888
4690
|
var errorText = (error || '').trim();
|
|
3889
|
-
return /*#__PURE__*/jsxRuntime.jsxs(FormControl, _objectSpread$
|
|
4691
|
+
return /*#__PURE__*/jsxRuntime.jsxs(FormControl, _objectSpread$7(_objectSpread$7({
|
|
3890
4692
|
error: isError,
|
|
3891
4693
|
required: required,
|
|
3892
4694
|
disabled: disabled,
|
|
3893
4695
|
fullWidth: fullWidth
|
|
3894
4696
|
}, componentProps.root), {}, {
|
|
3895
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(FormControlLabel, _objectSpread$
|
|
4697
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(FormControlLabel, _objectSpread$7({
|
|
3896
4698
|
label: required ? "".concat(label, " *") : label,
|
|
3897
4699
|
labelPlacement: !label ? 'end' : labelPlacement,
|
|
3898
|
-
control: /*#__PURE__*/jsxRuntime.jsx(Switch, _objectSpread$
|
|
4700
|
+
control: /*#__PURE__*/jsxRuntime.jsx(Switch, _objectSpread$7(_objectSpread$7({
|
|
3899
4701
|
id: inputName,
|
|
3900
4702
|
name: inputName,
|
|
3901
4703
|
checked: value,
|
|
@@ -3908,7 +4710,7 @@ function SwitchInput(_ref) {
|
|
|
3908
4710
|
onBlur: onBlur,
|
|
3909
4711
|
onFocus: onFocus
|
|
3910
4712
|
}, componentProps["switch"]))
|
|
3911
|
-
}, componentProps.formControlLabel)), (errorText || helperText) && /*#__PURE__*/jsxRuntime.jsx(FormHelperText, _objectSpread$
|
|
4713
|
+
}, componentProps.formControlLabel)), (errorText || helperText) && /*#__PURE__*/jsxRuntime.jsx(FormHelperText, _objectSpread$7(_objectSpread$7({
|
|
3912
4714
|
sx: fullWidth ? {
|
|
3913
4715
|
textAlign: mapLabelPlacementToTextAlign[labelPlacement]
|
|
3914
4716
|
} : {}
|
|
@@ -4037,18 +4839,18 @@ SwitchInput.defaultProps = {
|
|
|
4037
4839
|
componentProps: undefined
|
|
4038
4840
|
};
|
|
4039
4841
|
|
|
4040
|
-
var ComponentWithOverrides$
|
|
4041
|
-
name: name$
|
|
4842
|
+
var ComponentWithOverrides$6 = withOverrides(defaultComponents$6, {
|
|
4843
|
+
name: name$6
|
|
4042
4844
|
})(SwitchInput);
|
|
4043
|
-
var Component$
|
|
4044
|
-
name: name$
|
|
4045
|
-
})(ComponentWithOverrides$
|
|
4046
|
-
Component$
|
|
4845
|
+
var Component$6 = styles$p.withStyles(styles$6, {
|
|
4846
|
+
name: name$6
|
|
4847
|
+
})(ComponentWithOverrides$6);
|
|
4848
|
+
Component$6.displayName = 'SwitchInput';
|
|
4047
4849
|
|
|
4048
|
-
function ownKeys$
|
|
4850
|
+
function ownKeys$6(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; }
|
|
4049
4851
|
|
|
4050
|
-
function _objectSpread$
|
|
4051
|
-
var styles$
|
|
4852
|
+
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4853
|
+
var styles$5 = function styles(theme) {
|
|
4052
4854
|
return {
|
|
4053
4855
|
root: {},
|
|
4054
4856
|
formControlLabel: {
|
|
@@ -4060,13 +4862,13 @@ var styles$3 = function styles(theme) {
|
|
|
4060
4862
|
checkbox: {}
|
|
4061
4863
|
};
|
|
4062
4864
|
};
|
|
4063
|
-
var defaultComponents$
|
|
4865
|
+
var defaultComponents$5 = {
|
|
4064
4866
|
Root: material.FormControl,
|
|
4065
4867
|
FormControlLabel: material.FormControlLabel,
|
|
4066
4868
|
FormHelperText: material.FormHelperText,
|
|
4067
4869
|
Checkbox: material.Checkbox
|
|
4068
4870
|
};
|
|
4069
|
-
var name$
|
|
4871
|
+
var name$5 = 'VdtCheckboxInput';
|
|
4070
4872
|
function CheckboxInput(_ref) {
|
|
4071
4873
|
var inputName = _ref.name,
|
|
4072
4874
|
label = _ref.label,
|
|
@@ -4111,16 +4913,16 @@ function CheckboxInput(_ref) {
|
|
|
4111
4913
|
var isControlled = value !== undefined;
|
|
4112
4914
|
var isError = !!error;
|
|
4113
4915
|
var errorText = (error || '').trim();
|
|
4114
|
-
return /*#__PURE__*/jsxRuntime.jsxs(FormControl, _objectSpread$
|
|
4916
|
+
return /*#__PURE__*/jsxRuntime.jsxs(FormControl, _objectSpread$6(_objectSpread$6({
|
|
4115
4917
|
error: isError,
|
|
4116
4918
|
required: required,
|
|
4117
4919
|
disabled: disabled,
|
|
4118
4920
|
fullWidth: fullWidth
|
|
4119
4921
|
}, componentProps.root), {}, {
|
|
4120
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(FormControlLabel, _objectSpread$
|
|
4922
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(FormControlLabel, _objectSpread$6({
|
|
4121
4923
|
label: required ? "".concat(label, " *") : label,
|
|
4122
4924
|
labelPlacement: !label ? 'end' : labelPlacement,
|
|
4123
|
-
control: /*#__PURE__*/jsxRuntime.jsx(Checkbox, _objectSpread$
|
|
4925
|
+
control: /*#__PURE__*/jsxRuntime.jsx(Checkbox, _objectSpread$6(_objectSpread$6(_objectSpread$6({
|
|
4124
4926
|
id: inputName,
|
|
4125
4927
|
name: inputName
|
|
4126
4928
|
}, isControlled ? {
|
|
@@ -4136,7 +4938,7 @@ function CheckboxInput(_ref) {
|
|
|
4136
4938
|
onBlur: onBlur,
|
|
4137
4939
|
onFocus: onFocus
|
|
4138
4940
|
}, componentProps.checkbox))
|
|
4139
|
-
}, componentProps.formControlLabel)), (errorText || helperText) && /*#__PURE__*/jsxRuntime.jsx(FormHelperText, _objectSpread$
|
|
4941
|
+
}, componentProps.formControlLabel)), (errorText || helperText) && /*#__PURE__*/jsxRuntime.jsx(FormHelperText, _objectSpread$6(_objectSpread$6({
|
|
4140
4942
|
sx: fullWidth ? {
|
|
4141
4943
|
textAlign: mapLabelPlacementToTextAlign[labelPlacement]
|
|
4142
4944
|
} : {}
|
|
@@ -4273,26 +5075,26 @@ CheckboxInput.defaultProps = {
|
|
|
4273
5075
|
componentProps: undefined
|
|
4274
5076
|
};
|
|
4275
5077
|
|
|
4276
|
-
var ComponentWithOverrides$
|
|
4277
|
-
name: name$
|
|
5078
|
+
var ComponentWithOverrides$5 = withOverrides(defaultComponents$5, {
|
|
5079
|
+
name: name$5
|
|
4278
5080
|
})(CheckboxInput);
|
|
4279
|
-
var Component$
|
|
4280
|
-
name: name$
|
|
4281
|
-
})(ComponentWithOverrides$
|
|
4282
|
-
Component$
|
|
5081
|
+
var Component$5 = styles$p.withStyles(styles$5, {
|
|
5082
|
+
name: name$5
|
|
5083
|
+
})(ComponentWithOverrides$5);
|
|
5084
|
+
Component$5.displayName = 'CheckboxInput';
|
|
4283
5085
|
|
|
4284
|
-
function ownKeys$
|
|
5086
|
+
function ownKeys$5(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; }
|
|
4285
5087
|
|
|
4286
|
-
function _objectSpread$
|
|
4287
|
-
var styles$
|
|
5088
|
+
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5089
|
+
var styles$4 = function styles() {
|
|
4288
5090
|
return {
|
|
4289
5091
|
root: {}
|
|
4290
5092
|
};
|
|
4291
5093
|
};
|
|
4292
|
-
var defaultComponents$
|
|
5094
|
+
var defaultComponents$4 = {
|
|
4293
5095
|
Root: material.TextField
|
|
4294
5096
|
};
|
|
4295
|
-
var name$
|
|
5097
|
+
var name$4 = 'VdtDateTimeInput';
|
|
4296
5098
|
function DateTimeInput(_ref) {
|
|
4297
5099
|
var inputName = _ref.name,
|
|
4298
5100
|
label = _ref.label,
|
|
@@ -4322,7 +5124,7 @@ function DateTimeInput(_ref) {
|
|
|
4322
5124
|
|
|
4323
5125
|
var isControlled = value !== undefined;
|
|
4324
5126
|
var isError = !!error;
|
|
4325
|
-
return /*#__PURE__*/jsxRuntime.jsx(TextField, _objectSpread$
|
|
5127
|
+
return /*#__PURE__*/jsxRuntime.jsx(TextField, _objectSpread$5(_objectSpread$5({
|
|
4326
5128
|
id: inputName,
|
|
4327
5129
|
name: inputName,
|
|
4328
5130
|
label: label
|
|
@@ -4466,20 +5268,20 @@ DateTimeInput.defaultProps = {
|
|
|
4466
5268
|
componentProps: undefined
|
|
4467
5269
|
};
|
|
4468
5270
|
|
|
4469
|
-
var ComponentWithOverrides$
|
|
4470
|
-
name: name$
|
|
5271
|
+
var ComponentWithOverrides$4 = withOverrides(defaultComponents$4, {
|
|
5272
|
+
name: name$4
|
|
4471
5273
|
})(DateTimeInput);
|
|
4472
|
-
var Component$
|
|
4473
|
-
name: name$
|
|
4474
|
-
})(ComponentWithOverrides$
|
|
4475
|
-
Component$
|
|
5274
|
+
var Component$4 = styles$p.withStyles(styles$4, {
|
|
5275
|
+
name: name$4
|
|
5276
|
+
})(ComponentWithOverrides$4);
|
|
5277
|
+
Component$4.displayName = 'DateTimeInput';
|
|
4476
5278
|
|
|
4477
|
-
var _excluded = ["id", "value", "defaultValue", "options", "range", "min", "max", "step", "marks", "infiniteMin", "infiniteMax", "infiniteDiff", "showMarks", "showTooltip", "valueFromOptions", "onChange"],
|
|
5279
|
+
var _excluded$2 = ["id", "value", "defaultValue", "options", "range", "min", "max", "step", "marks", "infiniteMin", "infiniteMax", "infiniteDiff", "showMarks", "showTooltip", "valueFromOptions", "onChange"],
|
|
4478
5280
|
_excluded2 = ["vdtClassNames", "className", "autoComplete", "rows", "type"];
|
|
4479
5281
|
|
|
4480
|
-
function ownKeys$
|
|
5282
|
+
function ownKeys$4(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; }
|
|
4481
5283
|
|
|
4482
|
-
function _objectSpread$
|
|
5284
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4483
5285
|
var INFINITE_MIN_LABEL = 'Min';
|
|
4484
5286
|
var INFINITE_MIN_VALUE = -Number.MAX_SAFE_INTEGER;
|
|
4485
5287
|
var INFINITE_MAX_LABEL = 'Max';
|
|
@@ -4507,7 +5309,7 @@ var Slider = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
4507
5309
|
showTooltip = _ref.showTooltip,
|
|
4508
5310
|
valueFromOptions = _ref.valueFromOptions,
|
|
4509
5311
|
onChange = _ref.onChange,
|
|
4510
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
5312
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$2);
|
|
4511
5313
|
|
|
4512
5314
|
var className = props.vdtClassNames;
|
|
4513
5315
|
props.className;
|
|
@@ -4619,7 +5421,7 @@ var Slider = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
4619
5421
|
|
|
4620
5422
|
var isControlled = value !== undefined;
|
|
4621
5423
|
var localValue = isControlled ? range && [Math.min.apply(Math, _toConsumableArray__default["default"](value || valueRef.current)), Math.max.apply(Math, _toConsumableArray__default["default"](value || valueRef.current))] || value : valueRef.current;
|
|
4622
|
-
return /*#__PURE__*/jsxRuntime.jsx(material.Slider, _objectSpread$
|
|
5424
|
+
return /*#__PURE__*/jsxRuntime.jsx(material.Slider, _objectSpread$4(_objectSpread$4(_objectSpread$4({
|
|
4623
5425
|
id: id,
|
|
4624
5426
|
ref: ref,
|
|
4625
5427
|
className: className
|
|
@@ -4677,10 +5479,10 @@ var Slider = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
4677
5479
|
}, sliderProps));
|
|
4678
5480
|
});
|
|
4679
5481
|
|
|
4680
|
-
function ownKeys$
|
|
5482
|
+
function ownKeys$3(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; }
|
|
4681
5483
|
|
|
4682
|
-
function _objectSpread$
|
|
4683
|
-
var styles$
|
|
5484
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5485
|
+
var styles$3 = function styles() {
|
|
4684
5486
|
return {
|
|
4685
5487
|
root: {},
|
|
4686
5488
|
formHelperText: {},
|
|
@@ -4731,7 +5533,7 @@ var styles$1 = function styles() {
|
|
|
4731
5533
|
}
|
|
4732
5534
|
};
|
|
4733
5535
|
};
|
|
4734
|
-
var defaultComponents$
|
|
5536
|
+
var defaultComponents$3 = {
|
|
4735
5537
|
Root: material.FormControl,
|
|
4736
5538
|
FormHelperText: material.FormHelperText,
|
|
4737
5539
|
InputLabel: material.InputLabel,
|
|
@@ -4740,7 +5542,7 @@ var defaultComponents$1 = {
|
|
|
4740
5542
|
OutlinedInput: material.OutlinedInput,
|
|
4741
5543
|
Slider: Slider
|
|
4742
5544
|
};
|
|
4743
|
-
var name$
|
|
5545
|
+
var name$3 = 'VdtSliderInput';
|
|
4744
5546
|
function SliderInput(_ref) {
|
|
4745
5547
|
var inputName = _ref.name,
|
|
4746
5548
|
label = _ref.label,
|
|
@@ -4782,20 +5584,20 @@ function SliderInput(_ref) {
|
|
|
4782
5584
|
outlined: OutlinedInput
|
|
4783
5585
|
}[variant];
|
|
4784
5586
|
var inputComponentProps = {
|
|
4785
|
-
standard: _objectSpread$
|
|
5587
|
+
standard: _objectSpread$3({
|
|
4786
5588
|
disableUnderline: true
|
|
4787
5589
|
}, componentProps.input),
|
|
4788
|
-
filled: _objectSpread$
|
|
5590
|
+
filled: _objectSpread$3({
|
|
4789
5591
|
disableUnderline: true
|
|
4790
5592
|
}, componentProps.filledInput),
|
|
4791
|
-
outlined: _objectSpread$
|
|
5593
|
+
outlined: _objectSpread$3({
|
|
4792
5594
|
label: label,
|
|
4793
5595
|
notched: true
|
|
4794
5596
|
}, componentProps.outlinedInput)
|
|
4795
5597
|
}[variant];
|
|
4796
5598
|
var isError = !!error;
|
|
4797
5599
|
var errorText = (error || '').trim();
|
|
4798
|
-
return /*#__PURE__*/jsxRuntime.jsxs(FormControl, _objectSpread$
|
|
5600
|
+
return /*#__PURE__*/jsxRuntime.jsxs(FormControl, _objectSpread$3(_objectSpread$3({
|
|
4799
5601
|
error: isError,
|
|
4800
5602
|
required: required,
|
|
4801
5603
|
disabled: disabled,
|
|
@@ -4803,18 +5605,18 @@ function SliderInput(_ref) {
|
|
|
4803
5605
|
size: size,
|
|
4804
5606
|
fullWidth: true
|
|
4805
5607
|
}, componentProps.root), {}, {
|
|
4806
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(InputLabel, _objectSpread$
|
|
5608
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(InputLabel, _objectSpread$3(_objectSpread$3({
|
|
4807
5609
|
htmlFor: inputName,
|
|
4808
5610
|
id: "".concat(inputName, "-label"),
|
|
4809
5611
|
shrink: true
|
|
4810
5612
|
}, componentProps.inputLabel), {}, {
|
|
4811
5613
|
children: label
|
|
4812
|
-
})), /*#__PURE__*/jsxRuntime.jsx(InputComponent, _objectSpread$
|
|
5614
|
+
})), /*#__PURE__*/jsxRuntime.jsx(InputComponent, _objectSpread$3({
|
|
4813
5615
|
id: inputName,
|
|
4814
5616
|
name: inputName,
|
|
4815
5617
|
size: size,
|
|
4816
5618
|
inputComponent: Slider,
|
|
4817
|
-
inputProps: _objectSpread$
|
|
5619
|
+
inputProps: _objectSpread$3({
|
|
4818
5620
|
value: value,
|
|
4819
5621
|
defaultValue: defaultValue,
|
|
4820
5622
|
options: options,
|
|
@@ -4836,7 +5638,7 @@ function SliderInput(_ref) {
|
|
|
4836
5638
|
'aria-labelledby': "".concat(inputName, "-label"),
|
|
4837
5639
|
vdtClassNames: componentProps.slider.className
|
|
4838
5640
|
}, componentProps.slider)
|
|
4839
|
-
}, inputComponentProps)), (errorText || helperText) && /*#__PURE__*/jsxRuntime.jsx(FormHelperText, _objectSpread$
|
|
5641
|
+
}, inputComponentProps)), (errorText || helperText) && /*#__PURE__*/jsxRuntime.jsx(FormHelperText, _objectSpread$3(_objectSpread$3({}, componentProps.formHelperText), {}, {
|
|
4840
5642
|
children: isError ? errorText : helperText
|
|
4841
5643
|
}))]
|
|
4842
5644
|
}));
|
|
@@ -5063,26 +5865,26 @@ SliderInput.defaultProps = {
|
|
|
5063
5865
|
componentProps: undefined
|
|
5064
5866
|
};
|
|
5065
5867
|
|
|
5066
|
-
var ComponentWithOverrides$
|
|
5067
|
-
name: name$
|
|
5868
|
+
var ComponentWithOverrides$3 = withOverrides(defaultComponents$3, {
|
|
5869
|
+
name: name$3
|
|
5068
5870
|
})(SliderInput);
|
|
5069
|
-
var Component$
|
|
5070
|
-
name: name$
|
|
5071
|
-
})(ComponentWithOverrides$
|
|
5072
|
-
Component$
|
|
5871
|
+
var Component$3 = styles$p.withStyles(styles$3, {
|
|
5872
|
+
name: name$3
|
|
5873
|
+
})(ComponentWithOverrides$3);
|
|
5874
|
+
Component$3.displayName = 'SliderInput';
|
|
5073
5875
|
|
|
5074
|
-
function ownKeys(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; }
|
|
5876
|
+
function ownKeys$2(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; }
|
|
5075
5877
|
|
|
5076
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5077
|
-
var styles = function styles() {
|
|
5878
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5879
|
+
var styles$2 = function styles() {
|
|
5078
5880
|
return {
|
|
5079
5881
|
root: {}
|
|
5080
5882
|
};
|
|
5081
5883
|
};
|
|
5082
|
-
var defaultComponents = {
|
|
5884
|
+
var defaultComponents$2 = {
|
|
5083
5885
|
Root: material.TextField
|
|
5084
5886
|
};
|
|
5085
|
-
var name = 'VdtNumberInput';
|
|
5887
|
+
var name$2 = 'VdtNumberInput';
|
|
5086
5888
|
function NumberInput(_ref) {
|
|
5087
5889
|
var inputName = _ref.name,
|
|
5088
5890
|
label = _ref.label,
|
|
@@ -5114,7 +5916,7 @@ function NumberInput(_ref) {
|
|
|
5114
5916
|
var isControlled = value !== undefined;
|
|
5115
5917
|
var isError = !!error;
|
|
5116
5918
|
var errorText = (error || '').trim();
|
|
5117
|
-
return /*#__PURE__*/jsxRuntime.jsx(TextField, _objectSpread(_objectSpread({
|
|
5919
|
+
return /*#__PURE__*/jsxRuntime.jsx(TextField, _objectSpread$2(_objectSpread$2({
|
|
5118
5920
|
id: inputName,
|
|
5119
5921
|
name: inputName,
|
|
5120
5922
|
label: label
|
|
@@ -5259,32 +6061,218 @@ NumberInput.defaultProps = {
|
|
|
5259
6061
|
componentProps: undefined
|
|
5260
6062
|
};
|
|
5261
6063
|
|
|
6064
|
+
var ComponentWithOverrides$2 = withOverrides(defaultComponents$2, {
|
|
6065
|
+
name: name$2
|
|
6066
|
+
})(NumberInput);
|
|
6067
|
+
var Component$2 = styles$p.withStyles(styles$2, {
|
|
6068
|
+
name: name$2
|
|
6069
|
+
})(ComponentWithOverrides$2);
|
|
6070
|
+
Component$2.displayName = 'NumberInput';
|
|
6071
|
+
|
|
6072
|
+
var _excluded$1 = ["shape", "components", "componentProps"];
|
|
6073
|
+
|
|
6074
|
+
function ownKeys$1(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; }
|
|
6075
|
+
|
|
6076
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6077
|
+
var styles$1 = function styles() {
|
|
6078
|
+
return {
|
|
6079
|
+
root: {}
|
|
6080
|
+
};
|
|
6081
|
+
};
|
|
6082
|
+
var defaultComponents$1 = {
|
|
6083
|
+
Root: Component$g
|
|
6084
|
+
};
|
|
6085
|
+
var name$1 = 'ShapeMediaBadges';
|
|
6086
|
+
function ShapeMediaBadges(_ref) {
|
|
6087
|
+
var shape = _ref.shape,
|
|
6088
|
+
components = _ref.components,
|
|
6089
|
+
componentProps = _ref.componentProps,
|
|
6090
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$1);
|
|
6091
|
+
|
|
6092
|
+
var Root = components.Root;
|
|
6093
|
+
return /*#__PURE__*/jsxRuntime.jsx(Root, _objectSpread$1(_objectSpread$1({
|
|
6094
|
+
input: vdtJs.parseShapeType(shape)
|
|
6095
|
+
}, props), componentProps.root));
|
|
6096
|
+
}
|
|
6097
|
+
ShapeMediaBadges.propTypes = {
|
|
6098
|
+
/**
|
|
6099
|
+
* A shape type to generate badges from
|
|
6100
|
+
*/
|
|
6101
|
+
shape: VidispinePropTypes__default["default"].ShapeType,
|
|
6102
|
+
|
|
6103
|
+
/**
|
|
6104
|
+
* Direction the badges should be displayed
|
|
6105
|
+
*/
|
|
6106
|
+
direction: PropTypes__default["default"].oneOf(['column', 'row']),
|
|
6107
|
+
|
|
6108
|
+
/**
|
|
6109
|
+
* Defines the space between immediate children.
|
|
6110
|
+
*/
|
|
6111
|
+
spacing: PropTypes__default["default"].number,
|
|
6112
|
+
|
|
6113
|
+
/**
|
|
6114
|
+
* Add a divider component between badges
|
|
6115
|
+
*/
|
|
6116
|
+
dividerSlot: PropTypes__default["default"].node,
|
|
6117
|
+
// Overrides
|
|
6118
|
+
|
|
6119
|
+
/**
|
|
6120
|
+
* Override styles with className
|
|
6121
|
+
*/
|
|
6122
|
+
className: PropTypes__default["default"].string,
|
|
6123
|
+
|
|
6124
|
+
/**
|
|
6125
|
+
* Override or extend the styles applied to the component
|
|
6126
|
+
*/
|
|
6127
|
+
classes: PropTypes__default["default"].instanceOf(Object),
|
|
6128
|
+
|
|
6129
|
+
/**
|
|
6130
|
+
* Replace internal components
|
|
6131
|
+
*/
|
|
6132
|
+
components: PropTypes__default["default"].shape({
|
|
6133
|
+
Root: PropTypes__default["default"].elementType
|
|
6134
|
+
}),
|
|
6135
|
+
|
|
6136
|
+
/**
|
|
6137
|
+
* Add internal component props
|
|
6138
|
+
*/
|
|
6139
|
+
componentProps: PropTypes__default["default"].shape({
|
|
6140
|
+
root: PropTypes__default["default"].instanceOf(Object)
|
|
6141
|
+
})
|
|
6142
|
+
};
|
|
6143
|
+
ShapeMediaBadges.defaultProps = {
|
|
6144
|
+
shape: {},
|
|
6145
|
+
direction: 'row',
|
|
6146
|
+
spacing: 1,
|
|
6147
|
+
dividerSlot: undefined,
|
|
6148
|
+
classes: undefined,
|
|
6149
|
+
className: undefined,
|
|
6150
|
+
components: undefined,
|
|
6151
|
+
componentProps: undefined
|
|
6152
|
+
};
|
|
6153
|
+
|
|
6154
|
+
var ComponentWithOverrides$1 = withOverrides(defaultComponents$1, {
|
|
6155
|
+
name: name$1
|
|
6156
|
+
})(ShapeMediaBadges);
|
|
6157
|
+
var Component$1 = styles$p.withStyles(styles$1, {
|
|
6158
|
+
name: name$1
|
|
6159
|
+
})(ComponentWithOverrides$1);
|
|
6160
|
+
Component$1.displayName = 'ShapeMediaBadges';
|
|
6161
|
+
|
|
6162
|
+
var _excluded = ["transcodePreset", "components", "componentProps"];
|
|
6163
|
+
|
|
6164
|
+
function ownKeys(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; }
|
|
6165
|
+
|
|
6166
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6167
|
+
var styles = function styles() {
|
|
6168
|
+
return {
|
|
6169
|
+
root: {}
|
|
6170
|
+
};
|
|
6171
|
+
};
|
|
6172
|
+
var defaultComponents = {
|
|
6173
|
+
Root: Component$g
|
|
6174
|
+
};
|
|
6175
|
+
var name = 'TranscodePresetMediaBadges';
|
|
6176
|
+
function TranscodePresetMediaBadges(_ref) {
|
|
6177
|
+
var transcodePreset = _ref.transcodePreset,
|
|
6178
|
+
components = _ref.components,
|
|
6179
|
+
componentProps = _ref.componentProps,
|
|
6180
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
6181
|
+
|
|
6182
|
+
var Root = components.Root;
|
|
6183
|
+
return /*#__PURE__*/jsxRuntime.jsx(Root, _objectSpread(_objectSpread({
|
|
6184
|
+
input: vdtJs.parseTranscodePreset(transcodePreset)
|
|
6185
|
+
}, props), componentProps.root));
|
|
6186
|
+
}
|
|
6187
|
+
TranscodePresetMediaBadges.propTypes = {
|
|
6188
|
+
/**
|
|
6189
|
+
* A transcode preset type to generate badges from
|
|
6190
|
+
*/
|
|
6191
|
+
transcodePreset: VidispinePropTypes__default["default"].TranscodePresetType,
|
|
6192
|
+
|
|
6193
|
+
/**
|
|
6194
|
+
* Direction the badges should be displayed
|
|
6195
|
+
*/
|
|
6196
|
+
direction: PropTypes__default["default"].oneOf(['column', 'row']),
|
|
6197
|
+
|
|
6198
|
+
/**
|
|
6199
|
+
* Defines the space between immediate children.
|
|
6200
|
+
*/
|
|
6201
|
+
spacing: PropTypes__default["default"].number,
|
|
6202
|
+
|
|
6203
|
+
/**
|
|
6204
|
+
* Add a divider component between badges
|
|
6205
|
+
*/
|
|
6206
|
+
dividerSlot: PropTypes__default["default"].node,
|
|
6207
|
+
// Overrides
|
|
6208
|
+
|
|
6209
|
+
/**
|
|
6210
|
+
* Override styles with className
|
|
6211
|
+
*/
|
|
6212
|
+
className: PropTypes__default["default"].string,
|
|
6213
|
+
|
|
6214
|
+
/**
|
|
6215
|
+
* Override or extend the styles applied to the component
|
|
6216
|
+
*/
|
|
6217
|
+
classes: PropTypes__default["default"].instanceOf(Object),
|
|
6218
|
+
|
|
6219
|
+
/**
|
|
6220
|
+
* Replace internal components
|
|
6221
|
+
*/
|
|
6222
|
+
components: PropTypes__default["default"].shape({
|
|
6223
|
+
Root: PropTypes__default["default"].elementType
|
|
6224
|
+
}),
|
|
6225
|
+
|
|
6226
|
+
/**
|
|
6227
|
+
* Add internal component props
|
|
6228
|
+
*/
|
|
6229
|
+
componentProps: PropTypes__default["default"].shape({
|
|
6230
|
+
root: PropTypes__default["default"].instanceOf(Object)
|
|
6231
|
+
})
|
|
6232
|
+
};
|
|
6233
|
+
TranscodePresetMediaBadges.defaultProps = {
|
|
6234
|
+
transcodePreset: undefined,
|
|
6235
|
+
direction: 'row',
|
|
6236
|
+
spacing: 1,
|
|
6237
|
+
dividerSlot: undefined,
|
|
6238
|
+
classes: undefined,
|
|
6239
|
+
className: undefined,
|
|
6240
|
+
components: undefined,
|
|
6241
|
+
componentProps: undefined
|
|
6242
|
+
};
|
|
6243
|
+
|
|
5262
6244
|
var ComponentWithOverrides = withOverrides(defaultComponents, {
|
|
5263
6245
|
name: name
|
|
5264
|
-
})(
|
|
5265
|
-
var Component = styles$
|
|
6246
|
+
})(TranscodePresetMediaBadges);
|
|
6247
|
+
var Component = styles$p.withStyles(styles, {
|
|
5266
6248
|
name: name
|
|
5267
6249
|
})(ComponentWithOverrides);
|
|
5268
|
-
Component.displayName = '
|
|
5269
|
-
|
|
5270
|
-
exports.CheckboxGroupInput = Component$
|
|
5271
|
-
exports.CheckboxInput = Component$
|
|
5272
|
-
exports.CollectionList = Component$
|
|
5273
|
-
exports.CollectionListItem = Component$
|
|
5274
|
-
exports.DateTimeInput = Component$
|
|
5275
|
-
exports.EntityAvatar = Component$
|
|
5276
|
-
exports.EntityIcon = Component$
|
|
5277
|
-
exports.EntityList = Component$
|
|
5278
|
-
exports.ImageCollage = Component$
|
|
5279
|
-
exports.ItemList = Component$
|
|
5280
|
-
exports.ItemListItem = Component$
|
|
5281
|
-
exports.
|
|
5282
|
-
exports.
|
|
5283
|
-
exports.
|
|
5284
|
-
exports.
|
|
5285
|
-
exports.
|
|
5286
|
-
exports.
|
|
5287
|
-
exports.
|
|
5288
|
-
exports.
|
|
6250
|
+
Component.displayName = 'TranscodePresetMediaBadges';
|
|
6251
|
+
|
|
6252
|
+
exports.CheckboxGroupInput = Component$b;
|
|
6253
|
+
exports.CheckboxInput = Component$5;
|
|
6254
|
+
exports.CollectionList = Component$k;
|
|
6255
|
+
exports.CollectionListItem = Component$l;
|
|
6256
|
+
exports.DateTimeInput = Component$4;
|
|
6257
|
+
exports.EntityAvatar = Component$m;
|
|
6258
|
+
exports.EntityIcon = Component$n;
|
|
6259
|
+
exports.EntityList = Component$i;
|
|
6260
|
+
exports.ImageCollage = Component$f;
|
|
6261
|
+
exports.ItemList = Component$c;
|
|
6262
|
+
exports.ItemListItem = Component$j;
|
|
6263
|
+
exports.MediaBadge = Component$h;
|
|
6264
|
+
exports.MediaBadgeStack = Component$g;
|
|
6265
|
+
exports.MediaIcon = Component$o;
|
|
6266
|
+
exports.NumberInput = Component$2;
|
|
6267
|
+
exports.RadioGroupInput = Component$7;
|
|
6268
|
+
exports.SelectInput = Component$a;
|
|
6269
|
+
exports.ShapeMediaBadges = Component$1;
|
|
6270
|
+
exports.SliderInput = Component$3;
|
|
6271
|
+
exports.Sort = Component$d;
|
|
6272
|
+
exports.SwitchInput = Component$6;
|
|
6273
|
+
exports.TablePagination = Component$e;
|
|
6274
|
+
exports.TagInput = Component$8;
|
|
6275
|
+
exports.TextInput = Component$9;
|
|
5289
6276
|
exports.ThemeProvider = ThemeProvider;
|
|
6277
|
+
exports.TranscodePresetMediaBadges = Component;
|
|
5290
6278
|
exports.useThemeContext = useThemeContext;
|