@vidispine/vdt-mui 23.2.0-pre.2 → 23.2.0

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.
Files changed (263) hide show
  1. package/dist/cjs/_utils/generateBadges.js +1 -0
  2. package/dist/cjs/_utils/isDefinedValue.js +1 -0
  3. package/dist/cjs/_utils/omit.js +1 -0
  4. package/dist/cjs/_utils/showSlot.js +1 -0
  5. package/dist/cjs/_utils/uuidv4.js +1 -0
  6. package/dist/cjs/_utils/withOverrides.js +1 -0
  7. package/dist/cjs/collection/CollectionCard/CollectionCard.js +1 -0
  8. package/dist/cjs/collection/CollectionCard/components/CollectionCardMedia.js +1 -0
  9. package/dist/cjs/collection/CollectionCard/index.js +1 -0
  10. package/dist/cjs/collection/CollectionList/CollectionList.js +1 -0
  11. package/dist/cjs/collection/CollectionList/index.js +1 -0
  12. package/dist/cjs/collection/CollectionListItem/CollectionListItem.js +1 -0
  13. package/dist/cjs/collection/CollectionListItem/index.js +1 -0
  14. package/dist/cjs/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.js +1 -0
  15. package/dist/cjs/collection/CollectionRepresentativeThumbnail/index.js +1 -0
  16. package/dist/cjs/entity/EntityAvatar/EntityAvatar.js +1 -0
  17. package/dist/cjs/entity/EntityAvatar/index.js +1 -0
  18. package/dist/cjs/entity/EntityCard/components/EntityCardActions.js +1 -0
  19. package/dist/cjs/entity/EntityCard/components/EntityCardBase.js +1 -0
  20. package/dist/cjs/entity/EntityCard/components/EntityCardContent.js +1 -0
  21. package/dist/cjs/entity/EntityCard/components/EntityCardHeader.js +1 -0
  22. package/dist/cjs/entity/EntityIcon/EntityIcon.js +1 -0
  23. package/dist/cjs/entity/EntityIcon/index.js +1 -0
  24. package/dist/cjs/entity/EntityList/EntityList.js +1 -0
  25. package/dist/cjs/entity/EntityList/index.js +1 -0
  26. package/dist/cjs/entity/EntityListItem/components/EntityListItemAvatar.js +1 -0
  27. package/dist/cjs/entity/EntityListItem/components/EntityListItemButton.js +1 -0
  28. package/dist/cjs/entity/EntityListItem/components/EntityListItemSecondaryAction.js +1 -0
  29. package/dist/cjs/entity/EntityListItem/components/EntityListItemText.js +1 -0
  30. package/dist/cjs/entity/EntityTableRow/components/EntityTableCellAvatar.js +1 -0
  31. package/dist/cjs/entity/EntityTableRow/components/EntityTableCellCheckbox.js +1 -0
  32. package/dist/cjs/entity/_utils/getEntityProp.js +1 -0
  33. package/dist/cjs/entity/_utils/getEntityText.js +1 -0
  34. package/dist/cjs/general/AvatarMenu/AvatarMenu.js +1 -0
  35. package/dist/cjs/general/AvatarMenu/components/Avatar.js +1 -0
  36. package/dist/cjs/general/AvatarMenu/components/MenuItem.js +1 -0
  37. package/dist/cjs/general/AvatarMenu/index.js +1 -0
  38. package/dist/cjs/general/BlurredBackground/BlurredBackground.js +1 -0
  39. package/dist/cjs/general/BlurredBackground/index.js +1 -0
  40. package/dist/cjs/general/CalendarPicker/CalendarPicker.js +1 -0
  41. package/dist/cjs/general/CalendarPicker/components/PickersDay.js +1 -0
  42. package/dist/cjs/general/CalendarPicker/index.js +1 -0
  43. package/dist/cjs/general/CalendarPicker/utils/index.js +1 -0
  44. package/dist/cjs/general/CompactBadge/CompactBadge.js +1 -0
  45. package/dist/cjs/general/CompactBadge/index.js +1 -0
  46. package/dist/cjs/general/CompactLabel/CompactLabel.js +1 -0
  47. package/dist/cjs/general/CompactLabel/index.js +1 -0
  48. package/dist/cjs/general/CornerLabelPlacer/CornerLabelPlacer.js +1 -0
  49. package/dist/cjs/general/CornerLabelPlacer/index.js +1 -0
  50. package/dist/cjs/general/ExpandButton/ExpandButton.js +1 -0
  51. package/dist/cjs/general/ExpandButton/index.js +1 -0
  52. package/dist/cjs/general/Form/Form.js +1 -0
  53. package/dist/cjs/general/Form/index.js +1 -0
  54. package/dist/cjs/general/ImageCollage/ImageCollage.js +1 -0
  55. package/dist/cjs/general/ImageCollage/index.js +1 -0
  56. package/dist/cjs/general/MediaIcon/MediaIcon.js +1 -0
  57. package/dist/cjs/general/MediaIcon/index.js +1 -0
  58. package/dist/cjs/general/MenuItem/MenuItem.js +1 -0
  59. package/dist/cjs/general/MenuItem/index.js +1 -0
  60. package/dist/cjs/general/ScrubLine/ScrubLine.js +1 -0
  61. package/dist/cjs/general/ScrubLine/index.js +1 -0
  62. package/dist/cjs/general/Sort/Sort.js +1 -0
  63. package/dist/cjs/general/Sort/components/ButtonBase.js +1 -0
  64. package/dist/cjs/general/Sort/components/MenuItem.js +1 -0
  65. package/dist/cjs/general/Sort/index.js +1 -0
  66. package/dist/cjs/general/TablePagination/TablePagination.js +1 -0
  67. package/dist/cjs/general/TablePagination/index.js +1 -0
  68. package/dist/cjs/general/ThemeContext/ThemeContext.js +1 -0
  69. package/dist/cjs/inputs/BasicDateTimeInput/BasicDateTimeInput.js +1 -0
  70. package/dist/cjs/inputs/BasicDateTimeInput/index.js +1 -0
  71. package/dist/cjs/inputs/BooleanInput/BooleanInput.js +1 -0
  72. package/dist/cjs/inputs/BooleanInput/index.js +1 -0
  73. package/dist/cjs/inputs/CheckboxGroupInput/CheckboxGroupInput.js +1 -0
  74. package/dist/cjs/inputs/CheckboxGroupInput/components/CheckboxGroup.js +1 -0
  75. package/dist/cjs/inputs/CheckboxGroupInput/index.js +1 -0
  76. package/dist/cjs/inputs/DateRangeInput/DateRangeInput.js +1 -0
  77. package/dist/cjs/inputs/DateRangeInput/components/utils/valueManagers.js +1 -0
  78. package/dist/cjs/inputs/DateRangeInput/index.js +1 -0
  79. package/dist/cjs/inputs/DateRangeInput/utils/dateHelpers.js +1 -0
  80. package/dist/cjs/inputs/DateTimeInput/DateTimeInput.js +1 -0
  81. package/dist/cjs/inputs/DateTimeInput/index.js +1 -0
  82. package/dist/cjs/inputs/MaskedTextInput/MaskedTextInput.js +1 -0
  83. package/dist/cjs/inputs/MaskedTextInput/components/MaskedInputComponent.js +1 -0
  84. package/dist/cjs/inputs/MaskedTextInput/index.js +1 -0
  85. package/dist/cjs/inputs/NumberInput/NumberInput.js +1 -0
  86. package/dist/cjs/inputs/NumberInput/index.js +1 -0
  87. package/dist/cjs/inputs/RadioGroupInput/RadioGroupInput.js +1 -0
  88. package/dist/cjs/inputs/RadioGroupInput/components/RadioGroup.js +1 -0
  89. package/dist/cjs/inputs/RadioGroupInput/index.js +1 -0
  90. package/dist/cjs/inputs/SelectInput/SelectInput.js +1 -0
  91. package/dist/cjs/inputs/SelectInput/index.js +1 -0
  92. package/dist/cjs/inputs/SliderInput/SliderInput.js +1 -0
  93. package/dist/cjs/inputs/SliderInput/components/Slider.js +1 -0
  94. package/dist/cjs/inputs/SliderInput/index.js +1 -0
  95. package/dist/cjs/inputs/TagInput/TagInput.js +1 -0
  96. package/dist/cjs/inputs/TagInput/index.js +1 -0
  97. package/dist/cjs/inputs/TextInput/TextInput.js +1 -0
  98. package/dist/cjs/inputs/TextInput/index.js +1 -0
  99. package/dist/cjs/inputs/_components/FormControlLabel.js +1 -0
  100. package/dist/cjs/inputs/_components/MenuItem.js +1 -0
  101. package/dist/cjs/item/ItemCard/ItemCard.js +1 -0
  102. package/dist/cjs/item/ItemCard/components/ItemCardMedia.js +1 -0
  103. package/dist/cjs/item/ItemCard/index.js +1 -0
  104. package/dist/cjs/item/ItemList/ItemList.js +1 -0
  105. package/dist/cjs/item/ItemList/index.js +1 -0
  106. package/dist/cjs/item/ItemListItem/ItemListItem.js +1 -0
  107. package/dist/cjs/item/ItemListItem/index.js +1 -0
  108. package/dist/cjs/item/ItemPoster/ItemPoster.js +1 -0
  109. package/dist/cjs/item/ItemPoster/index.js +1 -0
  110. package/dist/cjs/item/ItemPosterList/ItemPosterList.js +1 -0
  111. package/dist/cjs/item/ItemPosterList/index.js +1 -0
  112. package/dist/cjs/item/ItemPosterViewer/ItemPosterViewer.js +1 -0
  113. package/dist/cjs/item/ItemPosterViewer/components/Toolbar.js +1 -0
  114. package/dist/cjs/item/ItemPosterViewer/index.js +1 -0
  115. package/dist/cjs/item/ItemTable/ItemTable.js +1 -0
  116. package/dist/cjs/item/ItemTable/components/ItemTableHead.js +1 -0
  117. package/dist/cjs/item/ItemTable/index.js +1 -0
  118. package/dist/cjs/item/ItemTableRow/ItemTableRow.js +1 -0
  119. package/dist/cjs/item/ItemTableRow/index.js +1 -0
  120. package/dist/cjs/item/ItemThumbnail/ItemThumbnail.js +1 -0
  121. package/dist/cjs/item/ItemThumbnail/index.js +1 -0
  122. package/dist/cjs/search/SearchFilterForm/SearchFilterForm.js +1 -0
  123. package/dist/cjs/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.js +1 -0
  124. package/dist/cjs/search/SearchFilterForm/index.js +1 -0
  125. package/dist/cjs/search/SearchFilterForm/utils/mapValuesToFilter.js +1 -0
  126. package/dist/cjs/shape/ShapeMediaBadges/ShapeMediaBadges.js +1 -0
  127. package/dist/cjs/shape/ShapeMediaBadges/index.js +1 -0
  128. package/dist/cjs/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.js +1 -0
  129. package/dist/cjs/transcode/TranscodePresetMediaBadges/index.js +1 -0
  130. package/dist/es/_utils/generateBadges.js +75 -0
  131. package/dist/es/_utils/isDefinedValue.js +6 -0
  132. package/dist/es/_utils/omit.js +9 -0
  133. package/dist/es/_utils/showSlot.js +4 -0
  134. package/dist/es/_utils/uuidv4.js +7 -0
  135. package/dist/es/_utils/withOverrides.js +37 -0
  136. package/dist/es/collection/CollectionCard/CollectionCard.js +292 -0
  137. package/dist/es/collection/CollectionCard/components/CollectionCardMedia.js +14 -0
  138. package/dist/es/collection/CollectionCard/index.js +11 -0
  139. package/dist/es/collection/CollectionList/CollectionList.js +159 -0
  140. package/dist/es/collection/CollectionList/index.js +11 -0
  141. package/dist/es/collection/CollectionListItem/CollectionListItem.js +122 -0
  142. package/dist/es/collection/CollectionListItem/index.js +11 -0
  143. package/dist/es/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.js +169 -0
  144. package/dist/es/collection/CollectionRepresentativeThumbnail/index.js +11 -0
  145. package/dist/es/entity/EntityAvatar/EntityAvatar.js +102 -0
  146. package/dist/es/entity/EntityAvatar/index.js +11 -0
  147. package/dist/es/entity/EntityCard/components/EntityCardActions.js +68 -0
  148. package/dist/es/entity/EntityCard/components/EntityCardBase.js +43 -0
  149. package/dist/es/entity/EntityCard/components/EntityCardContent.js +34 -0
  150. package/dist/es/entity/EntityCard/components/EntityCardHeader.js +115 -0
  151. package/dist/es/entity/EntityIcon/EntityIcon.js +107 -0
  152. package/dist/es/entity/EntityIcon/index.js +11 -0
  153. package/dist/es/entity/EntityList/EntityList.js +211 -0
  154. package/dist/es/entity/EntityList/index.js +11 -0
  155. package/dist/es/entity/EntityListItem/components/EntityListItemAvatar.js +26 -0
  156. package/dist/es/entity/EntityListItem/components/EntityListItemButton.js +27 -0
  157. package/dist/es/entity/EntityListItem/components/EntityListItemSecondaryAction.js +27 -0
  158. package/dist/es/entity/EntityListItem/components/EntityListItemText.js +26 -0
  159. package/dist/es/entity/EntityTableRow/components/EntityTableCellAvatar.js +26 -0
  160. package/dist/es/entity/EntityTableRow/components/EntityTableCellCheckbox.js +19 -0
  161. package/dist/es/entity/_utils/getEntityProp.js +11 -0
  162. package/dist/es/entity/_utils/getEntityText.js +34 -0
  163. package/dist/es/general/AvatarMenu/AvatarMenu.js +153 -0
  164. package/dist/es/general/AvatarMenu/components/Avatar.js +30 -0
  165. package/dist/es/general/AvatarMenu/components/MenuItem.js +29 -0
  166. package/dist/es/general/AvatarMenu/index.js +11 -0
  167. package/dist/es/general/BlurredBackground/BlurredBackground.js +85 -0
  168. package/dist/es/general/BlurredBackground/index.js +11 -0
  169. package/dist/es/general/CalendarPicker/CalendarPicker.js +397 -0
  170. package/dist/es/general/CalendarPicker/components/PickersDay.js +71 -0
  171. package/dist/es/general/CalendarPicker/index.js +11 -0
  172. package/dist/es/general/CalendarPicker/utils/index.js +17 -0
  173. package/dist/es/general/CompactBadge/CompactBadge.js +65 -0
  174. package/dist/es/general/CompactBadge/index.js +11 -0
  175. package/dist/es/general/CompactLabel/CompactLabel.js +70 -0
  176. package/dist/es/general/CompactLabel/index.js +11 -0
  177. package/dist/es/general/CornerLabelPlacer/CornerLabelPlacer.js +105 -0
  178. package/dist/es/general/CornerLabelPlacer/index.js +11 -0
  179. package/dist/es/general/ExpandButton/ExpandButton.js +81 -0
  180. package/dist/es/general/ExpandButton/index.js +11 -0
  181. package/dist/es/general/Form/Form.js +230 -0
  182. package/dist/es/general/Form/index.js +11 -0
  183. package/dist/es/general/ImageCollage/ImageCollage.js +151 -0
  184. package/dist/es/general/ImageCollage/index.js +11 -0
  185. package/dist/es/general/MediaIcon/MediaIcon.js +101 -0
  186. package/dist/es/general/MediaIcon/index.js +11 -0
  187. package/dist/es/general/MenuItem/MenuItem.js +91 -0
  188. package/dist/es/general/MenuItem/index.js +11 -0
  189. package/dist/es/general/ScrubLine/ScrubLine.js +141 -0
  190. package/dist/es/general/ScrubLine/index.js +11 -0
  191. package/dist/es/general/Sort/Sort.js +179 -0
  192. package/dist/es/general/Sort/components/ButtonBase.js +19 -0
  193. package/dist/es/general/Sort/components/MenuItem.js +15 -0
  194. package/dist/es/general/Sort/index.js +11 -0
  195. package/dist/es/general/TablePagination/TablePagination.js +104 -0
  196. package/dist/es/general/TablePagination/index.js +11 -0
  197. package/dist/es/general/ThemeContext/ThemeContext.js +96 -0
  198. package/dist/es/inputs/BasicDateTimeInput/BasicDateTimeInput.js +133 -0
  199. package/dist/es/inputs/BasicDateTimeInput/index.js +11 -0
  200. package/dist/es/inputs/BooleanInput/BooleanInput.js +196 -0
  201. package/dist/es/inputs/BooleanInput/index.js +11 -0
  202. package/dist/es/inputs/CheckboxGroupInput/CheckboxGroupInput.js +292 -0
  203. package/dist/es/inputs/CheckboxGroupInput/components/CheckboxGroup.js +81 -0
  204. package/dist/es/inputs/CheckboxGroupInput/index.js +11 -0
  205. package/dist/es/inputs/DateRangeInput/DateRangeInput.js +362 -0
  206. package/dist/es/inputs/DateRangeInput/components/utils/valueManagers.js +20 -0
  207. package/dist/es/inputs/DateRangeInput/index.js +11 -0
  208. package/dist/es/inputs/DateRangeInput/utils/dateHelpers.js +31 -0
  209. package/dist/es/inputs/DateTimeInput/DateTimeInput.js +250 -0
  210. package/dist/es/inputs/DateTimeInput/index.js +11 -0
  211. package/dist/es/inputs/MaskedTextInput/MaskedTextInput.js +235 -0
  212. package/dist/es/inputs/MaskedTextInput/components/MaskedInputComponent.js +13 -0
  213. package/dist/es/inputs/MaskedTextInput/index.js +11 -0
  214. package/dist/es/inputs/NumberInput/NumberInput.js +134 -0
  215. package/dist/es/inputs/NumberInput/index.js +11 -0
  216. package/dist/es/inputs/RadioGroupInput/RadioGroupInput.js +287 -0
  217. package/dist/es/inputs/RadioGroupInput/components/RadioGroup.js +72 -0
  218. package/dist/es/inputs/RadioGroupInput/index.js +11 -0
  219. package/dist/es/inputs/SelectInput/SelectInput.js +195 -0
  220. package/dist/es/inputs/SelectInput/index.js +11 -0
  221. package/dist/es/inputs/SliderInput/SliderInput.js +350 -0
  222. package/dist/es/inputs/SliderInput/components/Slider.js +124 -0
  223. package/dist/es/inputs/SliderInput/index.js +11 -0
  224. package/dist/es/inputs/TagInput/TagInput.js +356 -0
  225. package/dist/es/inputs/TagInput/index.js +11 -0
  226. package/dist/es/inputs/TextInput/TextInput.js +154 -0
  227. package/dist/es/inputs/TextInput/index.js +11 -0
  228. package/dist/es/inputs/_components/FormControlLabel.js +60 -0
  229. package/dist/es/inputs/_components/MenuItem.js +23 -0
  230. package/dist/es/item/ItemCard/ItemCard.js +293 -0
  231. package/dist/es/item/ItemCard/components/ItemCardMedia.js +20 -0
  232. package/dist/es/item/ItemCard/index.js +11 -0
  233. package/dist/es/item/ItemList/ItemList.js +158 -0
  234. package/dist/es/item/ItemList/index.js +11 -0
  235. package/dist/es/item/ItemListItem/ItemListItem.js +122 -0
  236. package/dist/es/item/ItemListItem/index.js +11 -0
  237. package/dist/es/item/ItemPoster/ItemPoster.js +132 -0
  238. package/dist/es/item/ItemPoster/index.js +11 -0
  239. package/dist/es/item/ItemPosterList/ItemPosterList.js +99 -0
  240. package/dist/es/item/ItemPosterList/index.js +11 -0
  241. package/dist/es/item/ItemPosterViewer/ItemPosterViewer.js +190 -0
  242. package/dist/es/item/ItemPosterViewer/components/Toolbar.js +27 -0
  243. package/dist/es/item/ItemPosterViewer/index.js +11 -0
  244. package/dist/es/item/ItemTable/ItemTable.js +201 -0
  245. package/dist/es/item/ItemTable/components/ItemTableHead.js +35 -0
  246. package/dist/es/item/ItemTable/index.js +11 -0
  247. package/dist/es/item/ItemTableRow/ItemTableRow.js +150 -0
  248. package/dist/es/item/ItemTableRow/index.js +11 -0
  249. package/dist/es/item/ItemThumbnail/ItemThumbnail.js +210 -0
  250. package/dist/es/item/ItemThumbnail/index.js +11 -0
  251. package/dist/es/search/SearchFilterForm/SearchFilterForm.js +138 -0
  252. package/dist/es/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.js +130 -0
  253. package/dist/es/search/SearchFilterForm/index.js +12 -0
  254. package/dist/es/search/SearchFilterForm/utils/mapValuesToFilter.js +84 -0
  255. package/dist/es/shape/ShapeMediaBadges/ShapeMediaBadges.js +78 -0
  256. package/dist/es/shape/ShapeMediaBadges/index.js +11 -0
  257. package/dist/es/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.js +78 -0
  258. package/dist/es/transcode/TranscodePresetMediaBadges/index.js +11 -0
  259. package/dist/index.cjs.js +1 -0
  260. package/dist/index.es.js +93 -0
  261. package/package.json +35 -19
  262. package/dist/index.js +0 -13109
  263. package/dist/index.umd.cjs +0 -6
@@ -0,0 +1,169 @@
1
+ import { jsxs as u, jsx as a, Fragment as I } from "react/jsx-runtime";
2
+ import { useMemo as v } from "react";
3
+ import e from "prop-types";
4
+ import g from "@mui/material/Box";
5
+ import { styled as n } from "@mui/material/styles";
6
+ import O from "@vidispine/proptypes";
7
+ import { parseMetadataType as j } from "@vidispine/vdt-js";
8
+ import "../../general/AvatarMenu/index.js";
9
+ import S from "../../general/BlurredBackground/index.js";
10
+ import "../../general/CalendarPicker/index.js";
11
+ import "../../general/CompactBadge/index.js";
12
+ import "../../general/CompactLabel/index.js";
13
+ import w from "../../general/CornerLabelPlacer/index.js";
14
+ import "../../general/ExpandButton/index.js";
15
+ import L from "../../general/ImageCollage/index.js";
16
+ import "../../general/MediaIcon/index.js";
17
+ import "../../general/MenuItem/index.js";
18
+ import "../../general/ScrubLine/index.js";
19
+ import "../../general/Sort/index.js";
20
+ import "../../general/TablePagination/index.js";
21
+ import "../../general/ThemeContext/ThemeContext.js";
22
+ const M = n(g)(({
23
+ onClick: l
24
+ }) => ({
25
+ position: "relative",
26
+ height: "100%",
27
+ width: "100%",
28
+ ...l ? {
29
+ cursor: "pointer"
30
+ } : {}
31
+ })), R = n(S)(() => ({
32
+ top: 0,
33
+ position: "absolute",
34
+ zIndex: 1
35
+ })), z = n(L)(() => ({
36
+ position: "absolute",
37
+ zIndex: 2,
38
+ top: "50%",
39
+ left: "50%",
40
+ height: "100%",
41
+ width: "100%",
42
+ transform: "translate(-50%, -50%)",
43
+ objectFit: "cover"
44
+ })), P = n(g)(() => ({
45
+ position: "absolute",
46
+ zIndex: 2,
47
+ top: "50%",
48
+ left: "50%",
49
+ height: "100%",
50
+ width: "100%",
51
+ transform: "translate(-50%, -50%)",
52
+ objectFit: "cover"
53
+ })), V = n(w)(() => ({
54
+ top: 0,
55
+ position: "absolute",
56
+ zIndex: 3
57
+ })), F = {
58
+ Root: M,
59
+ BlurredBackground: R,
60
+ ImageCollage: z,
61
+ ImageBox: P,
62
+ CornerLabelPlacer: V
63
+ };
64
+ function b({
65
+ collectionType: l,
66
+ showBlurredBackground: i,
67
+ showCombined: f,
68
+ label: B,
69
+ onClick: m,
70
+ components: C,
71
+ componentsProps: o
72
+ }) {
73
+ var s;
74
+ const {
75
+ Root: h,
76
+ BlurredBackground: c,
77
+ ImageCollage: y,
78
+ CornerLabelPlacer: x,
79
+ ImageBox: k
80
+ } = C, {
81
+ id: d,
82
+ metadata: p
83
+ } = l || {}, t = v(() => {
84
+ const {
85
+ __representativeThumbnailsNoAuth: r
86
+ } = j(p, {
87
+ flatTimespan: !0
88
+ });
89
+ return r == null ? void 0 : r.map((T) => ({
90
+ src: T,
91
+ alt: `Representative Thumbnail for Collection ${d}`
92
+ }));
93
+ }, [d, p]);
94
+ return /* @__PURE__ */ u(h, { onClick: typeof m != "function" ? void 0 : (r) => m(r, {
95
+ collectionType: l
96
+ }), ...o.root, children: [
97
+ f ? /* @__PURE__ */ a(y, { images: t, showBlurredBackground: i, ...o.imageCollage, components: {
98
+ ...o.imageCollage.components || {},
99
+ BlurredBackground: ((s = o.imageCollage.components) == null ? void 0 : s.BlurredBackground) || c
100
+ }, componentsProps: {
101
+ ...o,
102
+ blurredBackground: {
103
+ ...o.blurredBackground
104
+ }
105
+ } }) : (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ u(I, { children: [
106
+ i && /* @__PURE__ */ a(c, { ...o.blurredBackground }),
107
+ /* @__PURE__ */ a(k, { ...(t == null ? void 0 : t[0]) || {}, component: "img", ...o.imageBox })
108
+ ] }),
109
+ /* @__PURE__ */ a(x, { labelBottomRight: B, ...o.cornerLabelPlacer })
110
+ ] });
111
+ }
112
+ b.propTypes = {
113
+ /**
114
+ * A VidiCore Collection
115
+ *
116
+ */
117
+ collectionType: O.CollectionType,
118
+ /**
119
+ * Show a blurred background behind the thumbnail
120
+ */
121
+ showBlurredBackground: e.bool,
122
+ /**
123
+ * Show multiple or thumbnail combined to one
124
+ */
125
+ showCombined: e.bool,
126
+ /**
127
+ * Add a label above thumbnail
128
+ */
129
+ label: e.string,
130
+ /**
131
+ * Add event handler when the thumbnail is clicked
132
+ *
133
+ * Set `undefined` to disable
134
+ */
135
+ onClick: e.func,
136
+ // Overrides
137
+ /**
138
+ * Replace internal components
139
+ */
140
+ components: e.shape({
141
+ Root: e.elementType,
142
+ BlurredBackground: e.elementType,
143
+ ImageCollage: e.elementType,
144
+ CornerLabelPlacer: e.elementType,
145
+ ImageBox: e.elementType
146
+ }),
147
+ /**
148
+ * Add internal component props
149
+ */
150
+ componentsProps: e.shape({
151
+ root: e.instanceOf(Object),
152
+ blurredBackground: e.instanceOf(Object),
153
+ imageCollage: e.instanceOf(Object),
154
+ cornerLabelPlacer: e.instanceOf(Object),
155
+ imageBox: e.instanceOf(Object)
156
+ })
157
+ };
158
+ b.defaultProps = {
159
+ collectionType: void 0,
160
+ showBlurredBackground: void 0,
161
+ showCombined: !1,
162
+ label: void 0,
163
+ onClick: void 0,
164
+ components: F,
165
+ componentsProps: void 0
166
+ };
167
+ export {
168
+ b as default
169
+ };
@@ -0,0 +1,11 @@
1
+ import { styled as n } from "@mui/material/styles";
2
+ import { withOverrides as r } from "../../_utils/withOverrides.js";
3
+ import m from "./CollectionRepresentativeThumbnail.js";
4
+ const o = "CollectionRepresentativeThumbnail", e = `Vdt${o}`, i = r(e)(m), s = n(i, {
5
+ name: e,
6
+ overridesResolver: (p, t) => t.root
7
+ })(() => ({}));
8
+ s.displayName = o;
9
+ export {
10
+ s as default
11
+ };
@@ -0,0 +1,102 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import o from "prop-types";
3
+ import u from "@mui/material/Skeleton";
4
+ import f from "@mui/material/Avatar";
5
+ import { styled as d } from "@mui/material/styles";
6
+ import y from "../EntityIcon/index.js";
7
+ function g({
8
+ variant: t
9
+ }) {
10
+ return /* @__PURE__ */ n(u, { sx: {
11
+ height: "100%",
12
+ width: "100%"
13
+ }, variant: t === "square" ? "rect" : t, "data-testid": "skeleton" });
14
+ }
15
+ const v = d(f, {
16
+ shouldForwardProp: (t) => t !== "isLoading"
17
+ })(({
18
+ theme: t,
19
+ isLoading: e
20
+ }) => ({
21
+ transition: "background-color .2s ease-out",
22
+ backgroundColor: t.palette.primary.main,
23
+ ...e ? {
24
+ backgroundColor: "unset"
25
+ } : {}
26
+ })), T = d(y)(({
27
+ theme: t
28
+ }) => ({
29
+ color: t.palette.background.paper
30
+ })), b = {
31
+ Root: v,
32
+ Icon: T
33
+ };
34
+ function s({
35
+ entityType: t,
36
+ mediaType: e,
37
+ variant: r,
38
+ isLoading: a,
39
+ loadingSlot: i,
40
+ components: c,
41
+ componentsProps: p
42
+ }) {
43
+ const {
44
+ Root: l,
45
+ Icon: m
46
+ } = c;
47
+ return /* @__PURE__ */ n(l, { variant: r, isLoading: a, ...p.root, children: a ? i && i({
48
+ variant: r
49
+ }) : /* @__PURE__ */ n(m, { entityType: t, ...e ? {
50
+ mediaType: e
51
+ } : {}, ...p.icon }) });
52
+ }
53
+ s.propTypes = {
54
+ /**
55
+ * Type of icon for the Avatar
56
+ */
57
+ entityType: o.oneOf(["item", "collection", "library"]),
58
+ /**
59
+ * Optional, use mediaType icon for item and library
60
+ */
61
+ mediaType: o.oneOf(["audio", "video", "image", "document", "data", "pdf", "none"]),
62
+ /**
63
+ * Variant/shapes for the Avatar
64
+ */
65
+ variant: o.oneOf(["circular", "rounded", "square"]),
66
+ /**
67
+ * Show loading state
68
+ */
69
+ isLoading: o.bool,
70
+ // Slots
71
+ /**
72
+ * Shown when avatar is loading
73
+ */
74
+ loadingSlot: o.oneOfType([o.elementType, o.node]),
75
+ // Overrides
76
+ /**
77
+ * Replace internal components
78
+ */
79
+ components: o.shape({
80
+ Root: o.elementType,
81
+ Icon: o.elementType
82
+ }),
83
+ /**
84
+ * Add internal component props
85
+ */
86
+ componentsProps: o.shape({
87
+ root: o.instanceOf(Object),
88
+ icon: o.instanceOf(Object)
89
+ })
90
+ };
91
+ s.defaultProps = {
92
+ entityType: void 0,
93
+ mediaType: void 0,
94
+ variant: "square",
95
+ isLoading: !1,
96
+ loadingSlot: g,
97
+ components: b,
98
+ componentsProps: void 0
99
+ };
100
+ export {
101
+ s as default
102
+ };
@@ -0,0 +1,11 @@
1
+ import { styled as r } from "@mui/material/styles";
2
+ import { withOverrides as n } from "../../_utils/withOverrides.js";
3
+ import m from "./EntityAvatar.js";
4
+ const t = "EntityAvatar", o = `Vdt${t}`, i = n(o)(m), s = r(i, {
5
+ name: o,
6
+ overridesResolver: (a, e) => e.root
7
+ })(() => ({}));
8
+ s.displayName = t;
9
+ export {
10
+ s as default
11
+ };
@@ -0,0 +1,68 @@
1
+ import { jsxs as h, jsx as r } from "react/jsx-runtime";
2
+ import S from "@mui/material/Checkbox";
3
+ import x from "@mui/material/CardActions";
4
+ import A from "@mui/material/IconButton";
5
+ import { styled as n } from "@mui/material/styles";
6
+ import "../../../general/AvatarMenu/index.js";
7
+ import "../../../general/BlurredBackground/index.js";
8
+ import "../../../general/CalendarPicker/index.js";
9
+ import "../../../general/CompactBadge/index.js";
10
+ import "../../../general/CompactLabel/index.js";
11
+ import "../../../general/CornerLabelPlacer/index.js";
12
+ import I from "../../../general/ExpandButton/index.js";
13
+ import "../../../general/ImageCollage/index.js";
14
+ import "../../../general/MediaIcon/index.js";
15
+ import "../../../general/MenuItem/index.js";
16
+ import "../../../general/ScrubLine/index.js";
17
+ import "../../../general/Sort/index.js";
18
+ import "../../../general/TablePagination/index.js";
19
+ import "../../../general/ThemeContext/ThemeContext.js";
20
+ import { getEntityProp as b } from "../../_utils/getEntityProp.js";
21
+ import "@vidispine/vdt-js";
22
+ const k = n(x)(() => ({
23
+ alignItems: "flex-end",
24
+ padding: 8
25
+ })), B = n(A)(() => ({
26
+ transition: "color .2s ease-out"
27
+ })), j = n(S)(() => ({
28
+ marginLeft: "auto",
29
+ transition: "color .2s ease-out"
30
+ }));
31
+ function X({
32
+ itemType: p,
33
+ collectionType: l,
34
+ classes: P,
35
+ checked: s = !1,
36
+ expanded: d = !1,
37
+ actions: t = [],
38
+ onActionClick: f = () => null,
39
+ onExpand: i,
40
+ onCheck: m,
41
+ expandButton: u = {},
42
+ ...c
43
+ }) {
44
+ const a = (o, e) => {
45
+ f(o, {
46
+ action: e,
47
+ ...b({
48
+ itemType: p,
49
+ collectionType: l
50
+ })
51
+ });
52
+ };
53
+ return !(t != null && t.length) && !m && !i ? null : /* @__PURE__ */ h(k, { disableSpacing: !0, ...c, children: [
54
+ t == null ? void 0 : t.map((o) => {
55
+ const {
56
+ name: e,
57
+ iconButtonProps: C,
58
+ Icon: g
59
+ } = o || {};
60
+ return /* @__PURE__ */ r(B, { onClick: (y) => a(y, o), ...C, children: /* @__PURE__ */ r(g, {}) }, e);
61
+ }),
62
+ m && /* @__PURE__ */ r(j, { checked: s, onChange: m }),
63
+ i && /* @__PURE__ */ r(I, { expanded: d, onClick: i, ...u })
64
+ ] });
65
+ }
66
+ export {
67
+ X as default
68
+ };
@@ -0,0 +1,43 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import a from "@mui/material/Card";
3
+ import { styled as i } from "@mui/material/styles";
4
+ const e = i(a, {
5
+ shouldForwardProp: (o) => o !== "checked"
6
+ })(({
7
+ checked: o,
8
+ theme: r
9
+ }) => ({
10
+ width: "100%",
11
+ padding: 0,
12
+ height: "100%",
13
+ borderWidth: 0.7,
14
+ borderStyle: "solid",
15
+ transition: "border-color .2s ease-out",
16
+ "&:hover": {
17
+ "& .MuiIconButton-root": {
18
+ color: r.palette.primary.main
19
+ },
20
+ "& .MuiAvatar-root": {
21
+ color: r.palette.primary.main
22
+ },
23
+ "& .MuiCheckbox-root": {
24
+ color: r.palette.primary.main
25
+ },
26
+ "& .VdtEntityAvatar-root": {
27
+ backgroundColor: r.palette.primary.main
28
+ }
29
+ },
30
+ borderColor: o ? r.palette.primary.main : "transparent",
31
+ backgroundImage: "unset",
32
+ // remove "opacity" from card elevation
33
+ overflow: "unset"
34
+ }));
35
+ function p({
36
+ children: o,
37
+ ...r
38
+ }) {
39
+ return /* @__PURE__ */ t(e, { ...r, children: o });
40
+ }
41
+ export {
42
+ p as default
43
+ };
@@ -0,0 +1,34 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import d from "@mui/material/CardContent";
3
+ import m from "@mui/material/Tooltip";
4
+ import a from "@mui/material/Typography";
5
+ import f from "@mui/material/Box";
6
+ import { styled as y } from "@mui/material/styles";
7
+ import { getEntityText as c } from "../../_utils/getEntityText.js";
8
+ const h = y(a, {
9
+ shouldForwardProp: (t) => t !== "WebkitLineClamp"
10
+ })(({
11
+ WebkitLineClamp: t
12
+ }) => ({
13
+ display: "-webkit-box",
14
+ WebkitBoxOrient: "vertical",
15
+ overflow: "hidden",
16
+ WebkitLineClamp: t
17
+ }));
18
+ function k({
19
+ itemType: t,
20
+ collectionType: i,
21
+ content: r,
22
+ showTooltip: n = !1,
23
+ WebkitLineClamp: l = 3,
24
+ ...p
25
+ }) {
26
+ const e = c(r, {
27
+ itemType: t,
28
+ collectionType: i
29
+ });
30
+ return r ? /* @__PURE__ */ o(d, { ...p, children: /* @__PURE__ */ o(f, { children: /* @__PURE__ */ o(m, { title: e || "", enterDelay: 500, open: n, children: /* @__PURE__ */ o(h, { WebkitLineClamp: l, variant: "body2", color: "textSecondary", component: "p", children: e }) }) }) }) : null;
31
+ }
32
+ export {
33
+ k as default
34
+ };
@@ -0,0 +1,115 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import H from "@mui/material/CardHeader";
3
+ import { styled as p } from "@mui/material/styles";
4
+ import "../../EntityIcon/index.js";
5
+ import P from "../../EntityAvatar/index.js";
6
+ import "../../EntityList/index.js";
7
+ import S from "../../../general/AvatarMenu/index.js";
8
+ import "../../../general/BlurredBackground/index.js";
9
+ import "../../../general/CalendarPicker/index.js";
10
+ import "../../../general/CompactBadge/index.js";
11
+ import "../../../general/CompactLabel/index.js";
12
+ import "../../../general/CornerLabelPlacer/index.js";
13
+ import "../../../general/ExpandButton/index.js";
14
+ import "../../../general/ImageCollage/index.js";
15
+ import "../../../general/MediaIcon/index.js";
16
+ import "../../../general/MenuItem/index.js";
17
+ import "../../../general/ScrubLine/index.js";
18
+ import "../../../general/Sort/index.js";
19
+ import "../../../general/TablePagination/index.js";
20
+ import "../../../general/ThemeContext/ThemeContext.js";
21
+ import { getEntityProp as W } from "../../_utils/getEntityProp.js";
22
+ import { getEntityText as r } from "../../_utils/getEntityText.js";
23
+ const E = p(H)(({
24
+ avatar: t,
25
+ action: o
26
+ }) => {
27
+ const i = t ? 56 : 0, a = o ? 40 + 16 : 0;
28
+ return {
29
+ display: "inline-block",
30
+ padding: 16,
31
+ width: "inherit",
32
+ "& .MuiCardHeader-avatar": {
33
+ float: "left"
34
+ },
35
+ "& .MuiCardHeader-content": {
36
+ float: "left",
37
+ width: `calc(100% - ${i}px - ${a}px)`
38
+ },
39
+ "& .MuiCardHeader-action": {
40
+ marginTop: 0,
41
+ float: "right"
42
+ },
43
+ float: "none"
44
+ };
45
+ }), M = p(P)(({
46
+ theme: t
47
+ }) => ({
48
+ backgroundColor: t.palette.mode === "light" ? "rgba(0, 0, 0, 0.54)" : "#fff"
49
+ })), A = p(S)(({
50
+ theme: t
51
+ }) => ({
52
+ marginLeft: 16,
53
+ "& .MuiAvatar-root": {
54
+ color: t.palette.mode === "light" ? "rgba(0, 0, 0, 0.54)" : "#fff",
55
+ backgroundColor: "transparent",
56
+ "&:hover": {
57
+ backgroundColor: "rgba(255, 255, 255, 0.08)"
58
+ }
59
+ }
60
+ }));
61
+ function Z({
62
+ itemType: t,
63
+ collectionType: o,
64
+ title: i,
65
+ subheader: a,
66
+ menuOptions: m,
67
+ onOptionClick: c,
68
+ entityAvatar: f = {},
69
+ avatarMenu: n = {},
70
+ ...h
71
+ }) {
72
+ var d, l, s;
73
+ const {
74
+ id: g
75
+ } = t || o || {}, u = r(i, {
76
+ itemType: t,
77
+ collectionType: o
78
+ }), C = r(a, {
79
+ itemType: t,
80
+ collectionType: o
81
+ }), b = (l = (d = r("mimeType", {
82
+ itemType: t
83
+ })) == null ? void 0 : d.split("/")) == null ? void 0 : l[0], y = r("mediaType", {
84
+ itemType: t
85
+ }) || b, v = (x, k) => {
86
+ c(x, {
87
+ option: k,
88
+ ...W({
89
+ itemType: t,
90
+ collectionType: o
91
+ })
92
+ });
93
+ };
94
+ return /* @__PURE__ */ e(E, { title: u || g, subheader: C, titleTypographyProps: {
95
+ noWrap: !0
96
+ }, subheaderTypographyProps: {
97
+ noWrap: !0
98
+ }, avatar: /* @__PURE__ */ e(M, { entityType: t && "item" || o && "collection", mediaType: y, ...f }), action: m && /* @__PURE__ */ e(A, { minWidth: "unset", options: m, onOptionClick: v, componentsProps: {
99
+ menu: {
100
+ anchorOrigin: {
101
+ vertical: "bottom",
102
+ horizontal: "right"
103
+ },
104
+ transformOrigin: {
105
+ vertical: "top",
106
+ horizontal: "right"
107
+ },
108
+ ...((s = n.componentsProps) == null ? void 0 : s.menu) || {}
109
+ },
110
+ ...n.componentsProps || {}
111
+ }, ...n }), ...h });
112
+ }
113
+ export {
114
+ Z as default
115
+ };
@@ -0,0 +1,107 @@
1
+ import { jsxs as b, jsx as i } from "react/jsx-runtime";
2
+ import o from "prop-types";
3
+ import u from "@mui/icons-material/esm/Folder";
4
+ import h from "@mui/icons-material/esm/NoteAdd";
5
+ import l from "@mui/icons-material/esm/LibraryBooks";
6
+ import O from "@mui/icons-material/esm/LibraryMusic";
7
+ import L from "@mui/icons-material/esm/PhotoLibrary";
8
+ import j from "@mui/icons-material/esm/VideoLibrary";
9
+ import x from "@mui/material/Box";
10
+ import { styled as c } from "@mui/material/styles";
11
+ import "../../general/AvatarMenu/index.js";
12
+ import "../../general/BlurredBackground/index.js";
13
+ import "../../general/CalendarPicker/index.js";
14
+ import "../../general/CompactBadge/index.js";
15
+ import "../../general/CompactLabel/index.js";
16
+ import "../../general/CornerLabelPlacer/index.js";
17
+ import "../../general/ExpandButton/index.js";
18
+ import "../../general/ImageCollage/index.js";
19
+ import m from "../../general/MediaIcon/index.js";
20
+ import "../../general/MenuItem/index.js";
21
+ import "../../general/ScrubLine/index.js";
22
+ import "../../general/Sort/index.js";
23
+ import "../../general/TablePagination/index.js";
24
+ import "../../general/ThemeContext/ThemeContext.js";
25
+ const C = c(x)(({
26
+ theme: e
27
+ }) => ({
28
+ display: "flex",
29
+ color: e.palette.primary.main
30
+ })), M = c(h, {
31
+ shouldForwardProp: (e) => e !== "mediaType"
32
+ })(() => ({})), T = c(u, {
33
+ shouldForwardProp: (e) => e !== "mediaType"
34
+ })(() => ({})), P = {
35
+ Root: C,
36
+ ItemIcon: m,
37
+ LibraryIcon: m,
38
+ PlaceholderIcon: M,
39
+ CollectionIcon: T
40
+ };
41
+ function p({
42
+ entityType: e,
43
+ mediaType: r,
44
+ components: a,
45
+ componentsProps: t
46
+ }) {
47
+ const {
48
+ Root: d,
49
+ PlaceholderIcon: I,
50
+ ItemIcon: s,
51
+ CollectionIcon: y,
52
+ LibraryIcon: f
53
+ } = a, n = e == null ? void 0 : e.toLowerCase();
54
+ return /* @__PURE__ */ b(d, { component: "span", ...t.root, children: [
55
+ n === "item" && /* @__PURE__ */ i(s, { type: r, ...t.itemIcon }),
56
+ n === "collection" && /* @__PURE__ */ i(y, { mediaType: r, ...t.collectionIcon }),
57
+ n === "library" && /* @__PURE__ */ i(f, { type: r, ...t.libraryIcon, components: {
58
+ PlaceholderIcon: l,
59
+ FileIcon: l,
60
+ AudioIcon: O,
61
+ VideoIcon: j,
62
+ ImageIcon: L,
63
+ ...t.libraryIcon.components || {}
64
+ } }),
65
+ !["item", "collection", "library"].includes(n) && /* @__PURE__ */ i(I, { mediaType: r, ...t.placeholderIcon })
66
+ ] });
67
+ }
68
+ p.propTypes = {
69
+ /**
70
+ * `placeholderIcon` is shown if entityType is undefined or not a string
71
+ */
72
+ entityType: o.oneOf(["item", "collection", "library"]),
73
+ /**
74
+ * Optional, use mediaType icon for item and library
75
+ */
76
+ mediaType: o.oneOf(["audio", "video", "image", "document", "data", "pdf", "none"]),
77
+ // Overrides
78
+ /**
79
+ * Replace internal components
80
+ */
81
+ components: o.shape({
82
+ Root: o.elementType,
83
+ PlaceholderIcon: o.elementType,
84
+ ItemIcon: o.elementType,
85
+ CollectionIcon: o.elementType,
86
+ LibraryIcon: o.elementType
87
+ }),
88
+ /**
89
+ * Add internal component props
90
+ */
91
+ componentsProps: o.shape({
92
+ root: o.instanceOf(Object),
93
+ placeholderIcon: o.instanceOf(Object),
94
+ itemIcon: o.instanceOf(Object),
95
+ collectionIcon: o.instanceOf(Object),
96
+ libraryIcon: o.instanceOf(Object)
97
+ })
98
+ };
99
+ p.defaultProps = {
100
+ entityType: void 0,
101
+ mediaType: void 0,
102
+ components: P,
103
+ componentsProps: void 0
104
+ };
105
+ export {
106
+ p as default
107
+ };
@@ -0,0 +1,11 @@
1
+ import { styled as n } from "@mui/material/styles";
2
+ import { withOverrides as r } from "../../_utils/withOverrides.js";
3
+ import m from "./EntityIcon.js";
4
+ const o = "EntityIcon", t = `Vdt${o}`, i = r(t)(m), s = n(i, {
5
+ name: t,
6
+ overridesResolver: (d, e) => e.root
7
+ })(() => ({}));
8
+ s.displayName = o;
9
+ export {
10
+ s as default
11
+ };