@vidispine/vdt-mui 23.2.0-pre.1 → 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 (391) 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 +43 -30
  262. package/dist/_utils/generateBadges.js +0 -7
  263. package/dist/_utils/isDefinedValue.js +0 -5
  264. package/dist/_utils/omit.js +0 -5
  265. package/dist/_utils/showSlot.js +0 -3
  266. package/dist/_utils/uuidv4.js +0 -4
  267. package/dist/_utils/withOverrides.js +0 -11
  268. package/dist/collection/CollectionCard/CollectionCard.js +0 -14
  269. package/dist/collection/CollectionCard/components/CollectionCardMedia.js +0 -9
  270. package/dist/collection/CollectionCard/index.js +0 -7
  271. package/dist/collection/CollectionList/CollectionList.js +0 -12
  272. package/dist/collection/CollectionList/index.js +0 -7
  273. package/dist/collection/CollectionListItem/CollectionListItem.js +0 -11
  274. package/dist/collection/CollectionListItem/index.js +0 -7
  275. package/dist/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.js +0 -12
  276. package/dist/collection/CollectionRepresentativeThumbnail/index.js +0 -7
  277. package/dist/entity/EntityAvatar/EntityAvatar.js +0 -8
  278. package/dist/entity/EntityAvatar/index.js +0 -7
  279. package/dist/entity/EntityCard/components/EntityCardActions.js +0 -10
  280. package/dist/entity/EntityCard/components/EntityCardBase.js +0 -9
  281. package/dist/entity/EntityCard/components/EntityCardContent.js +0 -10
  282. package/dist/entity/EntityCard/components/EntityCardHeader.js +0 -13
  283. package/dist/entity/EntityIcon/EntityIcon.js +0 -9
  284. package/dist/entity/EntityIcon/index.js +0 -7
  285. package/dist/entity/EntityList/EntityList.js +0 -14
  286. package/dist/entity/EntityList/index.js +0 -7
  287. package/dist/entity/EntityListItem/components/EntityListItemAvatar.js +0 -10
  288. package/dist/entity/EntityListItem/components/EntityListItemButton.js +0 -10
  289. package/dist/entity/EntityListItem/components/EntityListItemSecondaryAction.js +0 -10
  290. package/dist/entity/EntityListItem/components/EntityListItemText.js +0 -9
  291. package/dist/entity/EntityTableRow/components/EntityTableCellAvatar.js +0 -10
  292. package/dist/entity/EntityTableRow/components/EntityTableCellCheckbox.js +0 -8
  293. package/dist/entity/_utils/getEntityProp.js +0 -3
  294. package/dist/entity/_utils/getEntityText.js +0 -5
  295. package/dist/general/AvatarMenu/AvatarMenu.js +0 -12
  296. package/dist/general/AvatarMenu/components/Avatar.js +0 -9
  297. package/dist/general/AvatarMenu/components/MenuItem.js +0 -8
  298. package/dist/general/AvatarMenu/index.js +0 -7
  299. package/dist/general/BlurredBackground/BlurredBackground.js +0 -7
  300. package/dist/general/BlurredBackground/index.js +0 -7
  301. package/dist/general/CalendarPicker/CalendarPicker.js +0 -22
  302. package/dist/general/CalendarPicker/components/PickersDay.js +0 -11
  303. package/dist/general/CalendarPicker/index.js +0 -7
  304. package/dist/general/CalendarPicker/utils/index.js +0 -7
  305. package/dist/general/CompactBadge/CompactBadge.js +0 -7
  306. package/dist/general/CompactBadge/index.js +0 -7
  307. package/dist/general/CompactLabel/CompactLabel.js +0 -7
  308. package/dist/general/CompactLabel/index.js +0 -7
  309. package/dist/general/CornerLabelPlacer/CornerLabelPlacer.js +0 -8
  310. package/dist/general/CornerLabelPlacer/index.js +0 -7
  311. package/dist/general/ExpandButton/ExpandButton.js +0 -8
  312. package/dist/general/ExpandButton/index.js +0 -7
  313. package/dist/general/Form/Form.js +0 -12
  314. package/dist/general/Form/index.js +0 -7
  315. package/dist/general/ImageCollage/ImageCollage.js +0 -8
  316. package/dist/general/ImageCollage/index.js +0 -7
  317. package/dist/general/MediaIcon/MediaIcon.js +0 -8
  318. package/dist/general/MediaIcon/index.js +0 -7
  319. package/dist/general/MenuItem/MenuItem.js +0 -8
  320. package/dist/general/MenuItem/index.js +0 -7
  321. package/dist/general/ScrubLine/ScrubLine.js +0 -9
  322. package/dist/general/ScrubLine/index.js +0 -7
  323. package/dist/general/Sort/Sort.js +0 -11
  324. package/dist/general/Sort/components/ButtonBase.js +0 -9
  325. package/dist/general/Sort/components/MenuItem.js +0 -8
  326. package/dist/general/Sort/index.js +0 -7
  327. package/dist/general/TablePagination/TablePagination.js +0 -10
  328. package/dist/general/TablePagination/index.js +0 -7
  329. package/dist/general/ThemeContext/ThemeContext.js +0 -13
  330. package/dist/index.js +0 -45
  331. package/dist/inputs/BasicDateTimeInput/BasicDateTimeInput.js +0 -7
  332. package/dist/inputs/BasicDateTimeInput/index.js +0 -7
  333. package/dist/inputs/BooleanInput/BooleanInput.js +0 -8
  334. package/dist/inputs/BooleanInput/index.js +0 -7
  335. package/dist/inputs/CheckboxGroupInput/CheckboxGroupInput.js +0 -17
  336. package/dist/inputs/CheckboxGroupInput/components/CheckboxGroup.js +0 -11
  337. package/dist/inputs/CheckboxGroupInput/index.js +0 -7
  338. package/dist/inputs/DateRangeInput/DateRangeInput.js +0 -25
  339. package/dist/inputs/DateRangeInput/components/utils/valueManagers.js +0 -5
  340. package/dist/inputs/DateRangeInput/index.js +0 -7
  341. package/dist/inputs/DateRangeInput/utils/dateHelpers.js +0 -6
  342. package/dist/inputs/DateTimeInput/DateTimeInput.js +0 -21
  343. package/dist/inputs/DateTimeInput/index.js +0 -7
  344. package/dist/inputs/MaskedTextInput/MaskedTextInput.js +0 -9
  345. package/dist/inputs/MaskedTextInput/components/MaskedInputComponent.js +0 -9
  346. package/dist/inputs/MaskedTextInput/index.js +0 -7
  347. package/dist/inputs/NumberInput/NumberInput.js +0 -7
  348. package/dist/inputs/NumberInput/index.js +0 -7
  349. package/dist/inputs/RadioGroupInput/RadioGroupInput.js +0 -16
  350. package/dist/inputs/RadioGroupInput/components/RadioGroup.js +0 -9
  351. package/dist/inputs/RadioGroupInput/index.js +0 -7
  352. package/dist/inputs/SelectInput/SelectInput.js +0 -9
  353. package/dist/inputs/SelectInput/index.js +0 -7
  354. package/dist/inputs/SliderInput/SliderInput.js +0 -18
  355. package/dist/inputs/SliderInput/components/Slider.js +0 -14
  356. package/dist/inputs/SliderInput/index.js +0 -7
  357. package/dist/inputs/TagInput/TagInput.js +0 -19
  358. package/dist/inputs/TagInput/index.js +0 -7
  359. package/dist/inputs/TextInput/TextInput.js +0 -7
  360. package/dist/inputs/TextInput/index.js +0 -7
  361. package/dist/inputs/_components/FormControlLabel.js +0 -9
  362. package/dist/inputs/_components/MenuItem.js +0 -8
  363. package/dist/item/ItemCard/ItemCard.js +0 -14
  364. package/dist/item/ItemCard/components/ItemCardMedia.js +0 -10
  365. package/dist/item/ItemCard/index.js +0 -7
  366. package/dist/item/ItemList/ItemList.js +0 -12
  367. package/dist/item/ItemList/index.js +0 -7
  368. package/dist/item/ItemListItem/ItemListItem.js +0 -11
  369. package/dist/item/ItemListItem/index.js +0 -7
  370. package/dist/item/ItemPoster/ItemPoster.js +0 -8
  371. package/dist/item/ItemPoster/index.js +0 -7
  372. package/dist/item/ItemPosterList/ItemPosterList.js +0 -8
  373. package/dist/item/ItemPosterList/index.js +0 -7
  374. package/dist/item/ItemPosterViewer/ItemPosterViewer.js +0 -11
  375. package/dist/item/ItemPosterViewer/components/Toolbar.js +0 -9
  376. package/dist/item/ItemPosterViewer/index.js +0 -7
  377. package/dist/item/ItemTable/ItemTable.js +0 -14
  378. package/dist/item/ItemTable/components/ItemTableHead.js +0 -8
  379. package/dist/item/ItemTable/index.js +0 -7
  380. package/dist/item/ItemTableRow/ItemTableRow.js +0 -14
  381. package/dist/item/ItemTableRow/index.js +0 -7
  382. package/dist/item/ItemThumbnail/ItemThumbnail.js +0 -10
  383. package/dist/item/ItemThumbnail/index.js +0 -7
  384. package/dist/search/SearchFilterForm/SearchFilterForm.js +0 -10
  385. package/dist/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.js +0 -14
  386. package/dist/search/SearchFilterForm/index.js +0 -7
  387. package/dist/search/SearchFilterForm/utils/mapValuesToFilter.js +0 -8
  388. package/dist/shape/ShapeMediaBadges/ShapeMediaBadges.js +0 -10
  389. package/dist/shape/ShapeMediaBadges/index.js +0 -7
  390. package/dist/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.js +0 -10
  391. package/dist/transcode/TranscodePresetMediaBadges/index.js +0 -7
@@ -0,0 +1,12 @@
1
+ import { styled as m } from "@mui/material/styles";
2
+ import { withOverrides as n } from "../../_utils/withOverrides.js";
3
+ import i from "./SearchFilterForm.js";
4
+ const e = "SearchFilterForm", o = `Vdt${e}`, s = n(o)(i), r = m(s, {
5
+ name: o,
6
+ overridesResolver: (a, t) => t.root
7
+ })(() => ({}));
8
+ r.displayName = e;
9
+ r.name = e;
10
+ export {
11
+ r as default
12
+ };
@@ -0,0 +1,84 @@
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "clsx";
4
+ import "@mui/material/styles";
5
+ import { isDefinedValue as N } from "../../../_utils/isDefinedValue.js";
6
+ const w = (a, i) => {
7
+ const d = i == null ? void 0 : i.filter(({
8
+ options: t
9
+ }) => t == null ? void 0 : t.some((r) => !!(r != null && r.rangeValues))), g = (t) => t.every((r) => typeof r == "number"), f = (t) => {
10
+ if (!t)
11
+ return !1;
12
+ const r = new Date(t);
13
+ return r instanceof Date && !Number.isNaN(r.getTime());
14
+ }, S = (t) => f(t == null ? void 0 : t.start) || f(t == null ? void 0 : t.end), o = (t, r, m, s) => {
15
+ var c, D;
16
+ if (Array.isArray(t))
17
+ return g(t) ? {
18
+ range: [{
19
+ value: [((c = r == null ? void 0 : r.find((e) => e.value === t[0])) == null ? void 0 : c.rangeValues[0]) || t[0], ((D = r == null ? void 0 : r.find((e) => e.value === t[1])) == null ? void 0 : D.rangeValues[1]) || t[1]].map((e) => e === Number.MIN_SAFE_INTEGER && {
20
+ minimum: !0
21
+ } || e === Number.MAX_SAFE_INTEGER && {
22
+ maximum: !0
23
+ } || {
24
+ value: e
25
+ })
26
+ }]
27
+ } : {
28
+ value: t.map((n) => ({
29
+ value: n
30
+ }))
31
+ };
32
+ if (m) {
33
+ const n = new Date(t), e = new Date(t);
34
+ return e.setDate(e.getDate() + 1), {
35
+ range: [{
36
+ value: [{
37
+ value: n.toISOString()
38
+ }, {
39
+ value: e.toISOString()
40
+ }]
41
+ }]
42
+ };
43
+ }
44
+ if (s) {
45
+ const n = (t == null ? void 0 : t.start) && new Date(t == null ? void 0 : t.start), e = (t == null ? void 0 : t.end) && new Date(t == null ? void 0 : t.end);
46
+ return e && e.setDate(e.getDate() + 1), {
47
+ range: [{
48
+ value: [n ? {
49
+ value: n.toISOString()
50
+ } : {
51
+ minimum: !0
52
+ }, e ? {
53
+ value: e.toISOString()
54
+ } : {
55
+ maximum: !0
56
+ }]
57
+ }]
58
+ };
59
+ }
60
+ return {
61
+ value: [{
62
+ value: t
63
+ }]
64
+ };
65
+ };
66
+ return {
67
+ filter: Object.entries(a).filter(([, t]) => N(t, {
68
+ includeDateRange: !0
69
+ })).map(([t, r]) => {
70
+ var m;
71
+ return {
72
+ name: t,
73
+ field: [{
74
+ name: t,
75
+ ...o(r, (m = d.find((s) => s.name === t)) == null ? void 0 : m.options, f(r), S(r))
76
+ }]
77
+ };
78
+ }),
79
+ values: a
80
+ };
81
+ };
82
+ export {
83
+ w as default
84
+ };
@@ -0,0 +1,78 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import e from "prop-types";
3
+ import l from "@mui/material/Stack";
4
+ import { styled as u } from "@mui/material/styles";
5
+ import y from "@vidispine/proptypes";
6
+ import { parseShapeType as B } from "@vidispine/vdt-js";
7
+ import { generateBadges as S } from "../../_utils/generateBadges.js";
8
+ import h from "../../general/CompactBadge/index.js";
9
+ const T = u(l)(() => ({
10
+ alignItems: "center"
11
+ })), v = {
12
+ Root: T,
13
+ CompactBadge: h
14
+ };
15
+ function n({
16
+ shape: a,
17
+ direction: i,
18
+ spacing: o,
19
+ dividerSlot: m,
20
+ generateBadges: s,
21
+ components: c,
22
+ componentsProps: t
23
+ }) {
24
+ const {
25
+ Root: d,
26
+ CompactBadge: f
27
+ } = c, g = s(B(a));
28
+ return /* @__PURE__ */ r(d, { direction: i, spacing: o > 0 ? o : 0, divider: m, ...t.root, children: g.map((p) => /* @__PURE__ */ r(f, { text: p, ...t.compactBadge }, p)) });
29
+ }
30
+ n.propTypes = {
31
+ /**
32
+ * A shape type to generate badges from
33
+ */
34
+ shape: y.ShapeType,
35
+ /**
36
+ * Direction the badges should be displayed
37
+ */
38
+ direction: e.oneOf(["column", "row"]),
39
+ /**
40
+ * Defines the space between immediate children.
41
+ */
42
+ spacing: e.number,
43
+ /**
44
+ * Add a divider component between badges
45
+ */
46
+ dividerSlot: e.node,
47
+ /**
48
+ * Replace the function that generates the badges
49
+ */
50
+ generateBadges: e.func,
51
+ // Overrides
52
+ /**
53
+ * Replace internal components
54
+ */
55
+ components: e.shape({
56
+ Root: e.elementType,
57
+ CompactBadge: e.elementType
58
+ }),
59
+ /**
60
+ * Add internal component props
61
+ */
62
+ componentsProps: e.shape({
63
+ root: e.instanceOf(Object),
64
+ compactBadge: e.instanceOf(Object)
65
+ })
66
+ };
67
+ n.defaultProps = {
68
+ shape: {},
69
+ direction: "row",
70
+ spacing: 1,
71
+ dividerSlot: void 0,
72
+ generateBadges: S,
73
+ components: v,
74
+ componentsProps: void 0
75
+ };
76
+ export {
77
+ n as default
78
+ };
@@ -0,0 +1,11 @@
1
+ import { styled as r } from "@mui/material/styles";
2
+ import { withOverrides as s } from "../../_utils/withOverrides.js";
3
+ import a from "./ShapeMediaBadges.js";
4
+ const e = "ShapeMediaBadges", o = `Vdt${e}`, d = s(o)(a), m = r(d, {
5
+ name: o,
6
+ overridesResolver: (i, t) => t.root
7
+ })(() => ({}));
8
+ m.displayName = e;
9
+ export {
10
+ m as default
11
+ };
@@ -0,0 +1,78 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import e from "prop-types";
3
+ import l from "@mui/material/Stack";
4
+ import { styled as u } from "@mui/material/styles";
5
+ import y from "@vidispine/proptypes";
6
+ import { parseTranscodePreset as B } from "@vidispine/vdt-js";
7
+ import { generateBadges as P } from "../../_utils/generateBadges.js";
8
+ import T from "../../general/CompactBadge/index.js";
9
+ const S = u(l)(() => ({
10
+ alignItems: "center"
11
+ })), v = {
12
+ Root: S,
13
+ CompactBadge: T
14
+ };
15
+ function s({
16
+ transcodePreset: a,
17
+ direction: p,
18
+ spacing: o,
19
+ dividerSlot: c,
20
+ generateBadges: d,
21
+ components: i,
22
+ componentsProps: t
23
+ }) {
24
+ const {
25
+ Root: m,
26
+ CompactBadge: f
27
+ } = i, g = d(B(a));
28
+ return /* @__PURE__ */ n(m, { direction: p, spacing: o > 0 ? o : 0, divider: c, ...t.root, children: g.map((r) => /* @__PURE__ */ n(f, { text: r, ...t.compactBadge }, r)) });
29
+ }
30
+ s.propTypes = {
31
+ /**
32
+ * A transcode preset type to generate badges from
33
+ */
34
+ transcodePreset: y.TranscodePresetType,
35
+ /**
36
+ * Direction the badges should be displayed
37
+ */
38
+ direction: e.oneOf(["column", "row"]),
39
+ /**
40
+ * Defines the space between immediate children.
41
+ */
42
+ spacing: e.number,
43
+ /**
44
+ * Add a divider component between badges
45
+ */
46
+ dividerSlot: e.node,
47
+ /**
48
+ * Replace the function that generates the badges
49
+ */
50
+ generateBadges: e.func,
51
+ // Overrides
52
+ /**
53
+ * Replace internal components
54
+ */
55
+ components: e.shape({
56
+ Root: e.elementType,
57
+ CompactBadge: e.elementType
58
+ }),
59
+ /**
60
+ * Add internal component props
61
+ */
62
+ componentsProps: e.shape({
63
+ root: e.instanceOf(Object),
64
+ compactBadge: e.instanceOf(Object)
65
+ })
66
+ };
67
+ s.defaultProps = {
68
+ transcodePreset: void 0,
69
+ direction: "row",
70
+ spacing: 1,
71
+ dividerSlot: void 0,
72
+ generateBadges: P,
73
+ components: v,
74
+ componentsProps: void 0
75
+ };
76
+ export {
77
+ s as default
78
+ };
@@ -0,0 +1,11 @@
1
+ import { styled as r } from "@mui/material/styles";
2
+ import { withOverrides as s } from "../../_utils/withOverrides.js";
3
+ import d from "./TranscodePresetMediaBadges.js";
4
+ const e = "TranscodePresetMediaBadges", o = `Vdt${e}`, n = s(o)(d), a = r(n, {
5
+ name: o,
6
+ overridesResolver: (m, t) => t.root
7
+ })(() => ({}));
8
+ a.displayName = e;
9
+ export {
10
+ a as default
11
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./cjs/collection/CollectionList/index.js"),r=require("./cjs/collection/CollectionListItem/index.js"),i=require("./cjs/collection/CollectionRepresentativeThumbnail/index.js"),t=require("./cjs/collection/CollectionCard/index.js"),o=require("./cjs/entity/EntityIcon/index.js"),u=require("./cjs/entity/EntityAvatar/index.js"),s=require("./cjs/entity/EntityList/index.js"),c=require("./cjs/general/AvatarMenu/index.js"),d=require("./cjs/general/BlurredBackground/index.js"),x=require("./cjs/general/CalendarPicker/index.js"),a=require("./cjs/general/CompactBadge/index.js"),q=require("./cjs/general/CompactLabel/index.js"),$=require("./cjs/general/CornerLabelPlacer/index.js"),l=require("./cjs/general/ExpandButton/index.js"),m=require("./cjs/general/ImageCollage/index.js"),I=require("./cjs/general/MediaIcon/index.js"),p=require("./cjs/general/MenuItem/index.js"),T=require("./cjs/general/ScrubLine/index.js"),C=require("./cjs/general/Sort/index.js"),b=require("./cjs/general/TablePagination/index.js"),e=require("./cjs/general/ThemeContext/ThemeContext.js"),g=require("./cjs/item/ItemList/index.js"),h=require("./cjs/item/ItemListItem/index.js"),P=require("./cjs/item/ItemThumbnail/index.js"),B=require("./cjs/item/ItemCard/index.js"),L=require("./cjs/item/ItemTable/index.js"),S=require("./cjs/item/ItemTableRow/index.js"),v=require("./cjs/item/ItemPoster/index.js"),M=require("./cjs/item/ItemPosterViewer/index.js"),y=require("./cjs/item/ItemPosterList/index.js"),k=require("./cjs/inputs/BasicDateTimeInput/index.js"),E=require("./cjs/inputs/BooleanInput/index.js"),D=require("./cjs/inputs/CheckboxGroupInput/index.js"),R=require("./cjs/inputs/DateRangeInput/index.js"),w=require("./cjs/inputs/DateTimeInput/index.js"),A=require("./cjs/inputs/MaskedTextInput/index.js"),F=require("./cjs/inputs/NumberInput/index.js"),G=require("./cjs/inputs/RadioGroupInput/index.js"),f=require("./cjs/inputs/SelectInput/index.js"),j=require("./cjs/inputs/SliderInput/index.js"),z=require("./cjs/inputs/TagInput/index.js"),H=require("./cjs/inputs/TextInput/index.js"),N=require("./cjs/shape/ShapeMediaBadges/index.js"),O=require("./cjs/search/SearchFilterForm/index.js"),V=require("./cjs/transcode/TranscodePresetMediaBadges/index.js");exports.CollectionList=n;exports.CollectionListItem=r;exports.CollectionRepresentativeThumbnail=i;exports.CollectionCard=t;exports.EntityIcon=o;exports.EntityAvatar=u;exports.EntityList=s;exports.AvatarMenu=c;exports.BlurredBackground=d;exports.CalendarPicker=x;exports.CompactBadge=a;exports.CompactLabel=q;exports.CornerLabelPlacer=$;exports.ExpandButton=l;exports.ImageCollage=m;exports.MediaIcon=I;exports.MenuItem=p;exports.ScrubLine=T;exports.Sort=C;exports.TablePagination=b;exports.ThemeProvider=e.ThemeProvider;exports.useThemeContext=e.useThemeContext;exports.ItemList=g;exports.ItemListItem=h;exports.ItemThumbnail=P;exports.ItemCard=B;exports.ItemTable=L;exports.ItemTableRow=S;exports.ItemPoster=v;exports.ItemPosterViewer=M;exports.ItemPosterList=y;exports.BasicDateTimeInput=k;exports.BooleanInput=E;exports.CheckboxGroupInput=D;exports.DateRangeInput=R;exports.DateTimeInput=w;exports.MaskedTextInput=A;exports.NumberInput=F;exports.RadioGroupInput=G;exports.SelectInput=f;exports.SliderInput=j;exports.TagInput=z;exports.TextInput=H;exports.ShapeMediaBadges=N;exports.SearchFilterForm=O;exports.TranscodePresetMediaBadges=V;
@@ -0,0 +1,93 @@
1
+ import { default as a } from "./es/collection/CollectionList/index.js";
2
+ import { default as r } from "./es/collection/CollectionListItem/index.js";
3
+ import { default as l } from "./es/collection/CollectionRepresentativeThumbnail/index.js";
4
+ import { default as u } from "./es/collection/CollectionCard/index.js";
5
+ import { default as d } from "./es/entity/EntityIcon/index.js";
6
+ import { default as x } from "./es/entity/EntityAvatar/index.js";
7
+ import { default as i } from "./es/entity/EntityList/index.js";
8
+ import { default as c } from "./es/general/AvatarMenu/index.js";
9
+ import { default as T } from "./es/general/BlurredBackground/index.js";
10
+ import { default as g } from "./es/general/CalendarPicker/index.js";
11
+ import { default as B } from "./es/general/CompactBadge/index.js";
12
+ import { default as h } from "./es/general/CompactLabel/index.js";
13
+ import { default as S } from "./es/general/CornerLabelPlacer/index.js";
14
+ import { default as v } from "./es/general/ExpandButton/index.js";
15
+ import { default as R } from "./es/general/ImageCollage/index.js";
16
+ import { default as D } from "./es/general/MediaIcon/index.js";
17
+ import { default as A } from "./es/general/MenuItem/index.js";
18
+ import { default as G } from "./es/general/ScrubLine/index.js";
19
+ import { default as V } from "./es/general/Sort/index.js";
20
+ import { default as q } from "./es/general/TablePagination/index.js";
21
+ import { ThemeProvider as H, useThemeContext as J } from "./es/general/ThemeContext/ThemeContext.js";
22
+ import { default as O } from "./es/item/ItemList/index.js";
23
+ import { default as U } from "./es/item/ItemListItem/index.js";
24
+ import { default as X } from "./es/item/ItemThumbnail/index.js";
25
+ import { default as Z } from "./es/item/ItemCard/index.js";
26
+ import { default as $ } from "./es/item/ItemTable/index.js";
27
+ import { default as te } from "./es/item/ItemTableRow/index.js";
28
+ import { default as oe } from "./es/item/ItemPoster/index.js";
29
+ import { default as fe } from "./es/item/ItemPosterViewer/index.js";
30
+ import { default as me } from "./es/item/ItemPosterList/index.js";
31
+ import { default as pe } from "./es/inputs/BasicDateTimeInput/index.js";
32
+ import { default as se } from "./es/inputs/BooleanInput/index.js";
33
+ import { default as ne } from "./es/inputs/CheckboxGroupInput/index.js";
34
+ import { default as Ie } from "./es/inputs/DateRangeInput/index.js";
35
+ import { default as Ce } from "./es/inputs/DateTimeInput/index.js";
36
+ import { default as be } from "./es/inputs/MaskedTextInput/index.js";
37
+ import { default as Le } from "./es/inputs/NumberInput/index.js";
38
+ import { default as Pe } from "./es/inputs/RadioGroupInput/index.js";
39
+ import { default as Me } from "./es/inputs/SelectInput/index.js";
40
+ import { default as ke } from "./es/inputs/SliderInput/index.js";
41
+ import { default as Ee } from "./es/inputs/TagInput/index.js";
42
+ import { default as ye } from "./es/inputs/TextInput/index.js";
43
+ import { default as we } from "./es/shape/ShapeMediaBadges/index.js";
44
+ import { default as Fe } from "./es/search/SearchFilterForm/index.js";
45
+ import { default as Ne } from "./es/transcode/TranscodePresetMediaBadges/index.js";
46
+ export {
47
+ c as AvatarMenu,
48
+ pe as BasicDateTimeInput,
49
+ T as BlurredBackground,
50
+ se as BooleanInput,
51
+ g as CalendarPicker,
52
+ ne as CheckboxGroupInput,
53
+ u as CollectionCard,
54
+ a as CollectionList,
55
+ r as CollectionListItem,
56
+ l as CollectionRepresentativeThumbnail,
57
+ B as CompactBadge,
58
+ h as CompactLabel,
59
+ S as CornerLabelPlacer,
60
+ Ie as DateRangeInput,
61
+ Ce as DateTimeInput,
62
+ x as EntityAvatar,
63
+ d as EntityIcon,
64
+ i as EntityList,
65
+ v as ExpandButton,
66
+ R as ImageCollage,
67
+ Z as ItemCard,
68
+ O as ItemList,
69
+ U as ItemListItem,
70
+ oe as ItemPoster,
71
+ me as ItemPosterList,
72
+ fe as ItemPosterViewer,
73
+ $ as ItemTable,
74
+ te as ItemTableRow,
75
+ X as ItemThumbnail,
76
+ be as MaskedTextInput,
77
+ D as MediaIcon,
78
+ A as MenuItem,
79
+ Le as NumberInput,
80
+ Pe as RadioGroupInput,
81
+ G as ScrubLine,
82
+ Fe as SearchFilterForm,
83
+ Me as SelectInput,
84
+ we as ShapeMediaBadges,
85
+ ke as SliderInput,
86
+ V as Sort,
87
+ q as TablePagination,
88
+ Ee as TagInput,
89
+ ye as TextInput,
90
+ H as ThemeProvider,
91
+ Ne as TranscodePresetMediaBadges,
92
+ J as useThemeContext
93
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vidispine/vdt-mui",
3
- "version": "23.2.0-pre.1",
3
+ "version": "23.2.0",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -12,27 +12,36 @@
12
12
  "url": "https://github.com/vidispine/vdt.git",
13
13
  "directory": "packages/vdt-mui"
14
14
  },
15
- "main": "dist/index.js",
16
- "module": "dist/index.js",
17
- "sideEffects": false,
15
+ "type": "module",
16
+ "main": "./dist/index.cjs.js",
17
+ "module": "./dist/index.es.js",
18
+ "exports": {
19
+ ".": {
20
+ "import": "./dist/index.es.js",
21
+ "require": "./dist/index.cjs.js"
22
+ }
23
+ },
18
24
  "files": [
19
25
  "dist"
20
26
  ],
21
27
  "scripts": {
22
- "build": "rimraf dist && rollup -c",
23
- "build:watch": "yarn build -w --environment DEVELOPMENT",
24
- "lint": "eslint . --max-warnings=0",
28
+ "build": "yarn vite build",
29
+ "build:watch": "yarn vite build --watch --mode development",
30
+ "test": "jest --config ./tests/jest.config.cjs",
31
+ "test:watch": "yarn test --watchAll",
32
+ "lint": "eslint . --cache --max-warnings=0 --ext .js,.jsx,.ts,.tsx,.md,.mdx",
25
33
  "format": "prettier . --check",
26
34
  "new:component": "hygen new component"
27
35
  },
28
36
  "dependencies": {
29
- "@babel/runtime": "^7.21.0",
30
37
  "@mui/icons-material": "^5.11.9",
31
38
  "@mui/lab": "^5.0.0-alpha.120",
32
39
  "@mui/material": "^5.11.10",
33
- "@vidispine/vdt-api": "23.2.0-pre.1",
34
- "@vidispine/vdt-js": "23.2.0-pre.1",
35
- "@vidispine/vdt-react": "23.2.0-pre.1",
40
+ "@vidispine/proptypes": "23.2.0",
41
+ "@vidispine/types": "23.2.0",
42
+ "@vidispine/vdt-api": "23.2.0",
43
+ "@vidispine/vdt-js": "23.2.0",
44
+ "@vidispine/vdt-react": "23.2.0",
36
45
  "clsx": "^1.2.1"
37
46
  },
38
47
  "peerDependencies": {
@@ -44,29 +53,20 @@
44
53
  "react-imask": "^6.4.3"
45
54
  },
46
55
  "devDependencies": {
47
- "@babel/core": "7.21.0",
48
- "@babel/plugin-transform-runtime": "7.21.0",
49
- "@babel/preset-env": "7.20.2",
50
- "@babel/preset-react": "7.18.6",
51
- "@rollup/plugin-babel": "5.3.1",
52
- "@rollup/plugin-commonjs": "21.1.0",
53
- "@rollup/plugin-node-resolve": "13.3.0",
54
- "@svgr/rollup": "6.5.1",
55
- "@testing-library/jest-dom": "5.16.5",
56
- "@testing-library/react": "12.1.5",
57
- "@vidispine/eslint-config-mdx": "23.2.0-pre.1",
58
- "@vidispine/eslint-config-react": "23.2.0-pre.1",
59
- "@vidispine/eslint-config-storybook": "23.2.0-pre.1",
60
- "@vidispine/prettier-config": "23.2.0-pre.1",
61
- "@vidispine/proptypes": "23.2.0-pre.1",
62
- "babel-plugin-transform-react-remove-prop-types": "0.4.24",
56
+ "@vidispine/eslint-config-mdx": "23.2.0",
57
+ "@vidispine/eslint-config-react": "23.2.0",
58
+ "@vidispine/eslint-config-storybook": "23.2.0",
59
+ "@vidispine/prettier-config": "23.2.0",
60
+ "@vidispine/proptypes": "23.2.0",
61
+ "@vidispine/tests": "23.2.0",
62
+ "@vitejs/plugin-react": "3.1.0",
63
+ "babel-plugin-transform-import": "1.5.4",
63
64
  "eslint": "8.34.0",
64
65
  "hygen": "6.2.11",
65
66
  "prettier": "2.8.4",
66
67
  "prop-types": "15.8.1",
67
- "react-hook-form": "^7.39.7",
68
68
  "rimraf": "3.0.2",
69
- "rollup": "2.79.1"
69
+ "vite": "4.3.1"
70
70
  },
71
71
  "eslintConfig": {
72
72
  "extends": [
@@ -125,7 +125,20 @@
125
125
  "newlines-between": "always"
126
126
  }
127
127
  ]
128
- }
128
+ },
129
+ "overrides": [
130
+ {
131
+ "files": [
132
+ "*.test.[jt]s?(x)"
133
+ ],
134
+ "extends": [
135
+ "plugin:testing-library/react"
136
+ ],
137
+ "rules": {
138
+ "testing-library/no-debugging-utils": "warn"
139
+ }
140
+ }
141
+ ]
129
142
  },
130
143
  "prettier": "@vidispine/prettier-config"
131
144
  }
@@ -1,7 +0,0 @@
1
- import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
2
-
3
- var generateBadges=function generateBadges(input){var _ref=input||{},containerFormat=_ref.containerFormat,videoFormat=_ref.videoFormat,audioFormat=_ref.audioFormat,videoCodec=_ref.videoCodec,audioCodec=_ref.audioCodec,height=_ref.height,fieldOrder=_ref.fieldOrder,audioChannels=_ref.audioChannels,colorPrimaries=_ref.colorPrimaries,textFormat=_ref.textFormat,frameRate=_ref.frameRate,aspectRatio=_ref.aspectRatio;var badges=[];if(containerFormat)badges.push(containerFormat);if(videoFormat)badges.push(videoFormat);else if(videoCodec)badges.push(videoCodec);if(audioFormat)badges.push(audioFormat);else if(audioCodec)badges.push(audioCodec);if(height){var heightFieldOrder="".concat(height).concat(fieldOrder?fieldOrder[0]:'px');switch(height){case 720:badges.push('HD Ready');break;case 1080:badges.push('Full HD');break;case 1440:badges.push('Quad HD');break;case 2160:badges.push('4K UHD');break;case 4320:badges.push('8K UHD');break;}if(height>0&&height<720){badges.push('SD');}badges.push(heightFieldOrder);}if(audioChannels){switch(audioChannels){case 1:badges.push('Mono');break;case 2:badges.push('Stereo');break;case 3:badges.push('2.1');break;case 6:badges.push('5.1');break;case 8:badges.push('7.1');break;}}if(colorPrimaries){switch(colorPrimaries){case'BT.2020':case'REC.2020':badges.push('HDR');break;case'BT.709':case'REC.709':badges.push('SDR');break;}}if(textFormat){badges.push('CC');}if(frameRate){try{if(frameRate.match(/\d/)){badges.push("".concat(frameRate,"fps"));}else {badges.push(frameRate);}}catch(e){// Figure out which to really throw on
4
- }}if(aspectRatio)badges.push(aspectRatio);return _toConsumableArray(new Set(badges));// remove duplicates
5
- };
6
-
7
- export { generateBadges };
@@ -1,5 +0,0 @@
1
- import _typeof from '@babel/runtime/helpers/typeof';
2
-
3
- var isDefinedValue=function isDefinedValue(v){var _ref=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref$includeDateRange=_ref.includeDateRange,includeDateRange=_ref$includeDateRange===void 0?false:_ref$includeDateRange;if(Array.isArray(v)){return v.length!==0&&v.every(function(value){return ![null,undefined].includes(value);});}if(includeDateRange&&_typeof(v)==='object'){return !!(v!==null&&v!==void 0&&v.start)||!!(v!==null&&v!==void 0&&v.end);}return ![null,undefined].includes(v);};
4
-
5
- export { isDefinedValue };
@@ -1,5 +0,0 @@
1
- import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
2
-
3
- var omit=function omit(obj){if(!obj)return {};for(var _len=arguments.length,k=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){k[_key-1]=arguments[_key];}var keys=k.flat();return Object.fromEntries(Object.entries(obj).filter(function(_ref){var _ref2=_slicedToArray(_ref,1),key=_ref2[0];return !keys.includes(key);}));};
4
-
5
- export { omit };
@@ -1,3 +0,0 @@
1
- var showSlot=function showSlot(slot,props){return ![null,undefined].includes(slot)&&typeof slot==='function'?slot(props):slot;};
2
-
3
- export { showSlot };
@@ -1,4 +0,0 @@
1
- var uuidv4=function uuidv4(){return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(c){return(// eslint-disable-next-line
2
- (c^crypto.getRandomValues(new Uint8Array(1))[0]&15>>c/4).toString(16));});};
3
-
4
- export { uuidv4 };
@@ -1,11 +0,0 @@
1
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
- import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
- import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
4
- import { forwardRef, Fragment } from 'react';
5
- import clsx from 'clsx';
6
- import { useThemeProps } from '@mui/material';
7
- import { jsx } from 'react/jsx-runtime';
8
-
9
- var _excluded=["components","componentsProps","className"];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;}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(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;}var pascalToCamelCase=function pascalToCamelCase(str){if(str===undefined||typeof str!=='string')return undefined;return str[0].toLowerCase()+str.substring(1);};var withOverrides=function withOverrides(name){return function(Component){return/*#__PURE__*/forwardRef(function(compProps,ref){var _Component$defaultPro;var props=useThemeProps({props:compProps,name:name});var defaultComponents=((_Component$defaultPro=Component.defaultProps)===null||_Component$defaultPro===void 0?void 0:_Component$defaultPro.components)||{};var _ref=props||{},components=_ref.components,componentsProps=_ref.componentsProps,className=_ref.className,other=_objectWithoutProperties(_ref,_excluded);var componentsWithOverrides=Object.fromEntries(Object.entries(defaultComponents).map(function(_ref2){var _ref3=_slicedToArray(_ref2,2),componentName=_ref3[0],defaultComponent=_ref3[1];var overriddenComponent=(components===null||components===void 0?void 0:components[componentName])===null?function(){return Fragment;}:components===null||components===void 0?void 0:components[componentName];return [componentName,overriddenComponent!==null&&overriddenComponent!==void 0?overriddenComponent:defaultComponent];}));var componentsPropsWithOverrides=Object.fromEntries(Object.keys(defaultComponents).map(function(componentName){var slotName=pascalToCamelCase(componentName);var slotProps=(componentsProps===null||componentsProps===void 0?void 0:componentsProps[pascalToCamelCase(componentName)])||{};return [slotName,_objectSpread(_objectSpread({},slotProps),slotName==='root'?{ref:ref,className:clsx(className,"".concat(name,"-").concat(slotName),slotProps.className)}:{className:clsx("".concat(name,"-").concat(slotName),slotProps.className)})];}));return/*#__PURE__*/jsx(Component,_objectSpread({components:componentsWithOverrides,componentsProps:componentsPropsWithOverrides},other));});};};
10
-
11
- export { withOverrides };
@@ -1,14 +0,0 @@
1
- import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
2
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
3
- import { useState } from 'react';
4
- import { styled, CardActionArea, Collapse } from '@mui/material';
5
- import EntityCardActions from '../../entity/EntityCard/components/EntityCardActions.js';
6
- import EntityCardBase from '../../entity/EntityCard/components/EntityCardBase.js';
7
- import EntityCardContent from '../../entity/EntityCard/components/EntityCardContent.js';
8
- import EntityCardHeader from '../../entity/EntityCard/components/EntityCardHeader.js';
9
- import CollectionCardMedia from './components/CollectionCardMedia.js';
10
- import { jsxs, jsx } from 'react/jsx-runtime';
11
-
12
- 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;}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(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;}var StyledMuiCard=styled(EntityCardBase,{shouldForwardProp:function shouldForwardProp(prop){return prop!=='horizontal';}})(function(_ref){var horizontal=_ref.horizontal;return _objectSpread({display:'grid'},horizontal?{gridTemplateAreas:"\"actionArea header\" \"actionArea content\" \"actionArea actions\" \"collapse collapse\"",gridTemplateColumns:'min-content auto'}:{gridTemplateAreas:"\"header\" \"actionArea\" \"content\" \"actions\" \"collapse\""});});var StyledVdtCardHeader=styled(EntityCardHeader,{shouldForwardProp:function shouldForwardProp(prop){return prop!=='horizontal';}})(function(_ref2){var horizontal=_ref2.horizontal;return _objectSpread({gridArea:'header'},horizontal&&{'& .MuiCardHeader-avatar':{display:'none'}});});var StyledVdtCardMedia=styled(CollectionCardMedia,{shouldForwardProp:function shouldForwardProp(prop){return !['horizontal','mediaPadding','mediaSize'].includes(prop);}})(function(_ref3){var theme=_ref3.theme,horizontal=_ref3.horizontal,mediaPadding=_ref3.mediaPadding,mediaSize=_ref3.mediaSize;return _objectSpread({padding:theme.spacing(mediaPadding)},horizontal?{width:mediaSize,height:'100%'}:{height:mediaSize,width:'100%'});});var StyledVdtCardContent=styled(EntityCardContent,{shouldForwardProp:function shouldForwardProp(prop){return prop!=='horizontal';}})(function(_ref4){var horizontal=_ref4.horizontal,theme=_ref4.theme;return {gridArea:'content',paddingTop:horizontal?0:theme.spacing(2)};});var StyledVdtCardActions=styled(EntityCardActions)(function(){return {gridArea:'actions'};});var StyledMuiCardActionArea=styled(CardActionArea)(function(){return {gridArea:'actionArea',transition:'filter 0.25s ease-in-out','&:focus':{filter:'brightness(120%)'},'& .MuiTouchRipple-root':{zIndex:10}};});var StyledMuiCollapse=styled(Collapse)(function(){return {gridArea:'collapse'};});var defaultComponents={Root:StyledMuiCard,CardHeader:StyledVdtCardHeader,CardMedia:StyledVdtCardMedia,CardContent:StyledVdtCardContent,CardContentExpanded:StyledVdtCardContent,CardActions:StyledVdtCardActions,CardActionArea:StyledMuiCardActionArea,Collapse:StyledMuiCollapse};function CollectionCard(_ref5){var collectionType=_ref5.collectionType,title=_ref5.title,subheader=_ref5.subheader,content=_ref5.content,expandedContent=_ref5.expandedContent,propChecked=_ref5.checked,propExpanded=_ref5.expanded,horizontal=_ref5.horizontal,mediaPadding=_ref5.mediaPadding,mediaSize=_ref5.mediaSize,menuOptions=_ref5.menuOptions,actions=_ref5.actions,_onClick=_ref5.onClick,onCheck=_ref5.onCheck,onExpand=_ref5.onExpand,onOptionClick=_ref5.onOptionClick,onActionClick=_ref5.onActionClick,components=_ref5.components,componentsProps=_ref5.componentsProps;var Card=components.Root,CardHeader=components.CardHeader,CardActionArea=components.CardActionArea,CardMedia=components.CardMedia,CardContent=components.CardContent,CardContentExpanded=components.CardContentExpanded,CardActions=components.CardActions,Collapse=components.Collapse;var _useState=useState(propChecked),_useState2=_slicedToArray(_useState,2),localChecked=_useState2[0],setLocalChecked=_useState2[1];var _useState3=useState(propExpanded),_useState4=_slicedToArray(_useState3,2),localExpanded=_useState4[0],setLocalExpanded=_useState4[1];var handleCheck=function handleCheck(event){var _event$target;var value=event===null||event===void 0?void 0:(_event$target=event.target)===null||_event$target===void 0?void 0:_event$target.checked;if(onCheck)onCheck(event,{value:value,collectionType:collectionType});if(propChecked===undefined)setLocalChecked(value);};var handleExpand=function handleExpand(event,_ref6){var value=_ref6.value;if(onExpand)onExpand(event,{value:value,collectionType:collectionType});if(propExpanded===undefined)setLocalExpanded(value);};var checked=propChecked!==undefined?propChecked:localChecked;var expanded=propExpanded!==undefined?propExpanded:localExpanded;return/*#__PURE__*/jsxs(Card,_objectSpread(_objectSpread({horizontal:horizontal,checked:checked},componentsProps.root),{},{children:[/*#__PURE__*/jsx(CardHeader,_objectSpread({collectionType:collectionType,title:title,subheader:subheader,menuOptions:menuOptions,horizontal:horizontal,onOptionClick:onOptionClick},componentsProps.cardHeader)),/*#__PURE__*/jsx(CardActionArea,_objectSpread(_objectSpread({disabled:_onClick===undefined,onClick:function onClick(e){return _onClick(e,{collectionType:collectionType});}},componentsProps.cardActionArea),{},{children:/*#__PURE__*/jsx(CardMedia,_objectSpread({collectionType:collectionType,mediaSize:mediaSize,mediaPadding:mediaPadding,horizontal:horizontal},componentsProps.cardMedia))})),/*#__PURE__*/jsx(CardContent,_objectSpread({collectionType:collectionType,content:content,horizontal:horizontal},componentsProps.cardContent)),/*#__PURE__*/jsx(CardActions,_objectSpread({collectionType:collectionType,checked:checked,expanded:expanded,actions:actions,onCheck:onCheck?handleCheck:null,onExpand:expandedContent?handleExpand:null,onActionClick:onActionClick},componentsProps.cardActions)),/*#__PURE__*/jsx(Collapse,_objectSpread(_objectSpread({"in":expanded&&expandedContent!==undefined,timeout:"auto",unmountOnExit:true},componentsProps.collapse),{},{children:/*#__PURE__*/jsx(CardContentExpanded,_objectSpread({collectionType:collectionType,content:expandedContent,WebkitLineClamp:0},componentsProps.cardContentExpanded))}))]}));}CollectionCard.defaultProps={collectionType:undefined,onClick:undefined,title:undefined,subheader:undefined,content:undefined,expandedContent:undefined,checked:undefined,expanded:undefined,horizontal:false,mediaSize:'200px',mediaPadding:0,menuOptions:undefined,actions:undefined,onCheck:undefined,onExpand:undefined,onOptionClick:undefined,onActionClick:undefined,components:defaultComponents,componentsProps:undefined};
13
-
14
- export { CollectionCard as default };
@@ -1,9 +0,0 @@
1
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
- import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
- import { CardMedia } from '@mui/material';
4
- import CollectionRepresentativeThumbnail from '../../CollectionRepresentativeThumbnail/index.js';
5
- import { jsx } from 'react/jsx-runtime';
6
-
7
- var _excluded=["collectionType","showCombined","collectionRepresentativeThumbnail"];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;}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(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;}function CollectionCardMedia(_ref){var collectionType=_ref.collectionType;_ref.showCombined;var _ref$collectionRepres=_ref.collectionRepresentativeThumbnail,collectionRepresentativeThumbnail=_ref$collectionRepres===void 0?{}:_ref$collectionRepres,props=_objectWithoutProperties(_ref,_excluded);return/*#__PURE__*/jsx(CardMedia,_objectSpread(_objectSpread({},props),{},{children:/*#__PURE__*/jsx(CollectionRepresentativeThumbnail,_objectSpread({collectionType:collectionType,showCombined:true},collectionRepresentativeThumbnail))}));}
8
-
9
- export { CollectionCardMedia as default };
@@ -1,7 +0,0 @@
1
- import { styled } from '@mui/material';
2
- import CollectionCard from './CollectionCard.js';
3
- import { withOverrides } from '../../_utils/withOverrides.js';
4
-
5
- var componentName='CollectionCard';var name="Vdt".concat(componentName);var ComponentWithOverrides=withOverrides(name)(CollectionCard);var StyledComponent=styled(ComponentWithOverrides,{name:name,overridesResolver:function overridesResolver(_,styles){return styles.root;}})(function(){return {};});StyledComponent.displayName=componentName;var StyledComponent$1 = StyledComponent;
6
-
7
- export { StyledComponent$1 as default };
@@ -1,12 +0,0 @@
1
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
- import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
3
- import { useMemo } from 'react';
4
- import { styled, List, Typography, ListSubheader } from '@mui/material';
5
- import VdtCollectionListItem from '../CollectionListItem/index.js';
6
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
7
- import { uuidv4 } from '../../_utils/uuidv4.js';
8
- import { showSlot } from '../../_utils/showSlot.js';
9
-
10
- 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;}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(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;}function EmptySlot(){return/*#__PURE__*/jsx(Typography,{children:"No collections found..."});}var StyledMuiList=styled(List)(function(){return {width:'100%',padding:0};});var defaultComponents={Root:StyledMuiList,ListSubheader:ListSubheader,ListItem:VdtCollectionListItem};function CollectionList(_ref){var collectionListType=_ref.collectionListType,header=_ref.header,primary=_ref.primary,secondary=_ref.secondary,avatarVariant=_ref.avatarVariant,dense=_ref.dense,amountLoading=_ref.amountLoading,isLoading=_ref.isLoading,onListItemClick=_ref.onListItemClick,onListItemDelete=_ref.onListItemDelete,emptySlot=_ref.emptySlot,components=_ref.components,componentsProps=_ref.componentsProps;var List=components.Root,ListSubheader=components.ListSubheader,ListItem=components.ListItem;var loadingListItems=_toConsumableArray(Array(Math.max(amountLoading,0)).keys()).map(function(){return {key:uuidv4()};});var listItems=useMemo(function(){var _collectionListType$c;return (collectionListType===null||collectionListType===void 0?void 0:(_collectionListType$c=collectionListType.collection)===null||_collectionListType$c===void 0?void 0:_collectionListType$c.map(function(collectionType){return {key:uuidv4(),collectionType:collectionType};}))||[];},[collectionListType.collection]);return/*#__PURE__*/jsxs(List,_objectSpread(_objectSpread({dense:dense},componentsProps.root),{},{children:[/*#__PURE__*/jsx(ListSubheader,_objectSpread(_objectSpread({},componentsProps.listSubheader),{},{children:header})),/*#__PURE__*/jsxs(Fragment,{children:[!isLoading&&listItems.length===0&&showSlot(emptySlot),(isLoading?loadingListItems:listItems).map(function(_ref2){var key=_ref2.key,collectionType=_ref2.collectionType;return/*#__PURE__*/jsx(ListItem,_objectSpread({collectionType:collectionType,primary:primary,secondary:secondary,avatarVariant:avatarVariant,isLoading:isLoading,onClick:onListItemClick,onDelete:onListItemDelete},componentsProps.listItem),key);})]})]}));}CollectionList.defaultProps={collectionListType:{},header:undefined,primary:undefined,secondary:undefined,avatarVariant:'square',dense:false,isLoading:false,amountLoading:3,onListItemClick:undefined,onListItemDelete:undefined,emptySlot:EmptySlot,components:defaultComponents,componentsProps:undefined};
11
-
12
- export { CollectionList as default };
@@ -1,7 +0,0 @@
1
- import { styled } from '@mui/material';
2
- import CollectionList from './CollectionList.js';
3
- import { withOverrides } from '../../_utils/withOverrides.js';
4
-
5
- var componentName='CollectionList';var name="Vdt".concat(componentName);var ComponentWithOverrides=withOverrides(name)(CollectionList);var StyledComponent=styled(ComponentWithOverrides,{name:name,overridesResolver:function overridesResolver(_,styles){return styles.root;}})(function(){return {};});StyledComponent.displayName=componentName;var StyledComponent$1 = StyledComponent;
6
-
7
- export { StyledComponent$1 as default };