@vidispine/vdt-mui 23.3.0-pre.2 → 23.3.0-pre.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_utils/generateBadges.js +1 -1
- package/dist/cjs/_utils/isDefinedValue.js +1 -1
- package/dist/cjs/_utils/showSlot.js +1 -1
- package/dist/cjs/collection/CollectionCard/CollectionCard.js +1 -1
- package/dist/cjs/collection/CollectionCard/components/CollectionCardMedia.js +1 -1
- package/dist/cjs/collection/CollectionCard/index.js +1 -1
- package/dist/cjs/collection/CollectionList/CollectionList.js +1 -1
- package/dist/cjs/collection/CollectionList/index.js +1 -1
- package/dist/cjs/collection/CollectionListItem/CollectionListItem.js +1 -1
- package/dist/cjs/collection/CollectionListItem/index.js +1 -1
- package/dist/cjs/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.js +1 -1
- package/dist/cjs/collection/CollectionRepresentativeThumbnail/index.js +1 -1
- package/dist/cjs/entity/EntityAvatar/EntityAvatar.js +1 -1
- package/dist/cjs/entity/EntityAvatar/index.js +1 -1
- package/dist/cjs/entity/EntityCard/_components/Typography.js +1 -0
- package/dist/cjs/entity/EntityCard/components/EntityCardActions.js +1 -1
- package/dist/cjs/entity/EntityCard/components/EntityCardBase.js +1 -1
- package/dist/cjs/entity/EntityCard/components/EntityCardContent.js +1 -1
- package/dist/cjs/entity/EntityCard/components/EntityCardHeader.js +1 -1
- package/dist/cjs/entity/EntityIcon/EntityIcon.js +1 -1
- package/dist/cjs/entity/EntityIcon/index.js +1 -1
- package/dist/cjs/entity/EntityList/EntityList.js +1 -1
- package/dist/cjs/entity/EntityList/index.js +1 -1
- package/dist/cjs/entity/EntityListItem/components/EntityListItemAvatar.js +1 -1
- package/dist/cjs/entity/EntityListItem/components/EntityListItemButton.js +1 -1
- package/dist/cjs/entity/EntityListItem/components/EntityListItemSecondaryAction.js +1 -1
- package/dist/cjs/entity/EntityListItem/components/EntityListItemText.js +1 -1
- package/dist/cjs/entity/EntityTableRow/components/EntityTableCellAvatar.js +1 -1
- package/dist/cjs/entity/EntityTableRow/components/EntityTableCellCheckbox.js +1 -1
- package/dist/cjs/entity/_utils/getEntityText.js +1 -1
- package/dist/cjs/general/AvatarMenu/AvatarMenu.js +1 -1
- package/dist/cjs/general/AvatarMenu/components/Avatar.js +1 -1
- package/dist/cjs/general/AvatarMenu/components/MenuItem.js +1 -1
- package/dist/cjs/general/AvatarMenu/index.js +1 -1
- package/dist/cjs/general/BlurredBackground/BlurredBackground.js +1 -1
- package/dist/cjs/general/BlurredBackground/index.js +1 -1
- package/dist/cjs/general/CalendarPicker/CalendarPicker.js +1 -1
- package/dist/cjs/general/CalendarPicker/components/PickersDay.js +1 -1
- package/dist/cjs/general/CalendarPicker/index.js +1 -1
- package/dist/cjs/general/CompactBadge/CompactBadge.js +1 -1
- package/dist/cjs/general/CompactBadge/index.js +1 -1
- package/dist/cjs/general/CompactLabel/CompactLabel.js +1 -1
- package/dist/cjs/general/CompactLabel/index.js +1 -1
- package/dist/cjs/general/CornerLabelPlacer/CornerLabelPlacer.js +1 -1
- package/dist/cjs/general/CornerLabelPlacer/index.js +1 -1
- package/dist/cjs/general/ExpandButton/ExpandButton.js +1 -1
- package/dist/cjs/general/ExpandButton/index.js +1 -1
- package/dist/cjs/general/Form/Form.js +1 -1
- package/dist/cjs/general/Form/index.js +1 -1
- package/dist/cjs/general/ImageCollage/ImageCollage.js +1 -1
- package/dist/cjs/general/ImageCollage/index.js +1 -1
- package/dist/cjs/general/MediaIcon/MediaIcon.js +1 -1
- package/dist/cjs/general/MenuItem/MenuItem.js +1 -1
- package/dist/cjs/general/MenuItem/index.js +1 -1
- package/dist/cjs/general/ScrubLine/ScrubLine.js +1 -1
- package/dist/cjs/general/ScrubLine/index.js +1 -1
- package/dist/cjs/general/Sort/Sort.js +1 -1
- package/dist/cjs/general/Sort/components/ButtonBase.js +1 -1
- package/dist/cjs/general/Sort/components/MenuItem.js +1 -1
- package/dist/cjs/general/Sort/index.js +1 -1
- package/dist/cjs/general/TablePagination/TablePagination.js +1 -1
- package/dist/cjs/general/TablePagination/index.js +1 -1
- package/dist/cjs/general/ThemeContext/ThemeContext.js +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/inputs/BasicDateTimeInput/BasicDateTimeInput.js +1 -1
- package/dist/cjs/inputs/BasicDateTimeInput/index.js +1 -1
- package/dist/cjs/inputs/BooleanInput/BooleanInput.js +1 -1
- package/dist/cjs/inputs/BooleanInput/index.js +1 -1
- package/dist/cjs/inputs/CheckboxGroupInput/CheckboxGroupInput.js +1 -1
- package/dist/cjs/inputs/CheckboxGroupInput/components/CheckboxGroup.js +1 -1
- package/dist/cjs/inputs/CheckboxGroupInput/index.js +1 -1
- package/dist/cjs/inputs/DateRangeInput/DateRangeInput.js +1 -1
- package/dist/cjs/inputs/DateRangeInput/index.js +1 -1
- package/dist/cjs/inputs/DateRangeInput/utils/valueManagers.js +1 -0
- package/dist/cjs/inputs/DateTimeInput/DateTimeInput.js +1 -1
- package/dist/cjs/inputs/DateTimeInput/index.js +1 -1
- package/dist/cjs/inputs/MaskedTextInput/MaskedTextInput.js +1 -1
- package/dist/cjs/inputs/MaskedTextInput/components/MaskedInputComponent.js +1 -1
- package/dist/cjs/inputs/MaskedTextInput/index.js +1 -1
- package/dist/cjs/inputs/NumberInput/NumberInput.js +1 -1
- package/dist/cjs/inputs/NumberInput/index.js +1 -1
- package/dist/cjs/inputs/RadioGroupInput/RadioGroupInput.js +1 -1
- package/dist/cjs/inputs/RadioGroupInput/components/RadioGroup.js +1 -1
- package/dist/cjs/inputs/RadioGroupInput/index.js +1 -1
- package/dist/cjs/inputs/SelectInput/SelectInput.js +1 -1
- package/dist/cjs/inputs/SelectInput/index.js +1 -1
- package/dist/cjs/inputs/SliderInput/SliderInput.js +1 -1
- package/dist/cjs/inputs/SliderInput/components/Slider.js +1 -1
- package/dist/cjs/inputs/SliderInput/index.js +1 -1
- package/dist/cjs/inputs/TagInput/TagInput.js +1 -1
- package/dist/cjs/inputs/TagInput/index.js +1 -1
- package/dist/cjs/inputs/TextInput/TextInput.js +1 -1
- package/dist/cjs/inputs/TextInput/index.js +1 -1
- package/dist/cjs/inputs/_components/FormControlLabel.js +1 -1
- package/dist/cjs/inputs/_components/MenuItem.js +1 -1
- package/dist/cjs/item/ItemCard/ItemCard.js +1 -1
- package/dist/cjs/item/ItemCard/components/ItemCardMedia.js +1 -1
- package/dist/cjs/item/ItemCard/index.js +1 -1
- package/dist/cjs/item/ItemList/ItemList.js +1 -1
- package/dist/cjs/item/ItemList/index.js +1 -1
- package/dist/cjs/item/ItemListItem/ItemListItem.js +1 -1
- package/dist/cjs/item/ItemListItem/index.js +1 -1
- package/dist/cjs/item/ItemPoster/ItemPoster.js +1 -1
- package/dist/cjs/item/ItemPoster/index.js +1 -1
- package/dist/cjs/item/ItemPosterList/ItemPosterList.js +1 -1
- package/dist/cjs/item/ItemPosterList/index.js +1 -1
- package/dist/cjs/item/ItemPosterViewer/ItemPosterViewer.js +1 -1
- package/dist/cjs/item/ItemPosterViewer/components/Toolbar.js +1 -1
- package/dist/cjs/item/ItemPosterViewer/index.js +1 -1
- package/dist/cjs/item/ItemTable/ItemTable.js +1 -1
- package/dist/cjs/item/ItemTable/components/ItemTableHead.js +1 -1
- package/dist/cjs/item/ItemTable/index.js +1 -1
- package/dist/cjs/item/ItemTableRow/ItemTableRow.js +1 -1
- package/dist/cjs/item/ItemTableRow/index.js +1 -1
- package/dist/cjs/item/ItemThumbnail/ItemThumbnail.js +1 -1
- package/dist/cjs/item/ItemThumbnail/index.js +1 -1
- package/dist/cjs/search/SearchFilterForm/SearchFilterForm.js +1 -1
- package/dist/cjs/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.js +1 -1
- package/dist/cjs/search/SearchFilterForm/index.js +1 -1
- package/dist/cjs/search/SearchFilterForm/utils/mapValuesToFilter.js +1 -1
- package/dist/cjs/shape/ShapeMediaBadges/ShapeMediaBadges.js +1 -1
- package/dist/cjs/shape/ShapeMediaBadges/index.js +1 -1
- package/dist/cjs/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.js +1 -1
- package/dist/cjs/transcode/TranscodePresetMediaBadges/index.js +1 -1
- package/dist/es/_consts/ENTITY_TYPES.d.ts +6 -0
- package/dist/es/_consts/index.d.ts +1 -0
- package/dist/es/_types.d.ts +21 -0
- package/dist/es/_utils/generateBadges.d.ts +2 -0
- package/dist/es/_utils/generateBadges.js +23 -22
- package/dist/es/_utils/index.d.ts +6 -0
- package/dist/es/_utils/isDefinedValue.d.ts +3 -0
- package/dist/es/_utils/isDefinedValue.js +2 -2
- package/dist/es/_utils/omit.d.ts +3 -0
- package/dist/es/_utils/showSlot.d.ts +1 -0
- package/dist/es/_utils/showSlot.js +2 -2
- package/dist/es/_utils/uuidv4.d.ts +1 -0
- package/dist/es/_utils/uuidv4.js +7 -4
- package/dist/es/_utils/withOverrides.d.ts +8 -0
- package/dist/es/collection/CollectionCard/CollectionCard.d.ts +165 -0
- package/dist/es/collection/CollectionCard/CollectionCard.js +92 -226
- package/dist/es/collection/CollectionCard/components/CollectionCardMedia.d.ts +11 -0
- package/dist/es/collection/CollectionCard/components/CollectionCardMedia.js +14 -11
- package/dist/es/collection/CollectionCard/index.d.ts +3 -0
- package/dist/es/collection/CollectionCard/index.js +1 -1
- package/dist/es/collection/CollectionList/CollectionList.d.ts +75 -0
- package/dist/es/collection/CollectionList/CollectionList.js +43 -128
- package/dist/es/collection/CollectionList/index.d.ts +3 -0
- package/dist/es/collection/CollectionList/index.js +1 -1
- package/dist/es/collection/CollectionListItem/CollectionListItem.d.ts +67 -0
- package/dist/es/collection/CollectionListItem/CollectionListItem.js +37 -107
- package/dist/es/collection/CollectionListItem/index.d.ts +3 -0
- package/dist/es/collection/CollectionListItem/index.js +1 -1
- package/dist/es/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.d.ts +46 -0
- package/dist/es/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.js +55 -112
- package/dist/es/collection/CollectionRepresentativeThumbnail/index.d.ts +3 -0
- package/dist/es/collection/CollectionRepresentativeThumbnail/index.js +6 -6
- package/dist/es/collection/index.d.ts +4 -0
- package/dist/es/entity/EntityAvatar/EntityAvatar.d.ts +39 -0
- package/dist/es/entity/EntityAvatar/EntityAvatar.js +43 -86
- package/dist/es/entity/EntityAvatar/index.d.ts +3 -0
- package/dist/es/entity/EntityAvatar/index.js +1 -1
- package/dist/es/entity/EntityCard/_components/Typography.d.ts +7 -0
- package/dist/es/entity/EntityCard/_components/Typography.js +15 -0
- package/dist/es/entity/EntityCard/components/EntityCardActions.d.ts +30 -0
- package/dist/es/entity/EntityCard/components/EntityCardActions.js +35 -28
- package/dist/es/entity/EntityCard/components/EntityCardBase.d.ts +7 -0
- package/dist/es/entity/EntityCard/components/EntityCardBase.js +9 -11
- package/dist/es/entity/EntityCard/components/EntityCardContent.d.ts +15 -0
- package/dist/es/entity/EntityCard/components/EntityCardContent.js +33 -31
- package/dist/es/entity/EntityCard/components/EntityCardHeader.d.ts +29 -0
- package/dist/es/entity/EntityCard/components/EntityCardHeader.js +37 -38
- package/dist/es/entity/EntityIcon/EntityIcon.d.ts +27 -0
- package/dist/es/entity/EntityIcon/EntityIcon.js +49 -83
- package/dist/es/entity/EntityIcon/index.d.ts +3 -0
- package/dist/es/entity/EntityIcon/index.js +1 -1
- package/dist/es/entity/EntityList/EntityList.d.ts +93 -0
- package/dist/es/entity/EntityList/EntityList.js +75 -170
- package/dist/es/entity/EntityList/index.d.ts +3 -0
- package/dist/es/entity/EntityList/index.js +1 -1
- package/dist/es/entity/EntityListItem/components/EntityListItemAvatar.d.ts +14 -0
- package/dist/es/entity/EntityListItem/components/EntityListItemAvatar.js +14 -13
- package/dist/es/entity/EntityListItem/components/EntityListItemButton.d.ts +12 -0
- package/dist/es/entity/EntityListItem/components/EntityListItemButton.js +14 -13
- package/dist/es/entity/EntityListItem/components/EntityListItemSecondaryAction.d.ts +12 -0
- package/dist/es/entity/EntityListItem/components/EntityListItemSecondaryAction.js +15 -19
- package/dist/es/entity/EntityListItem/components/EntityListItemText.d.ts +13 -0
- package/dist/es/entity/EntityListItem/components/EntityListItemText.js +20 -21
- package/dist/es/entity/EntityTableRow/components/EntityTableCellAvatar.d.ts +14 -0
- package/dist/es/entity/EntityTableRow/components/EntityTableCellAvatar.js +13 -12
- package/dist/es/entity/EntityTableRow/components/EntityTableCellCheckbox.d.ts +8 -0
- package/dist/es/entity/EntityTableRow/components/EntityTableCellCheckbox.js +12 -13
- package/dist/es/entity/_utils/getEntityProp.d.ts +9 -0
- package/dist/es/entity/_utils/getEntityText.d.ts +7 -0
- package/dist/es/entity/_utils/getEntityText.js +24 -24
- package/dist/es/entity/_utils/index.d.ts +2 -0
- package/dist/es/entity/index.d.ts +3 -0
- package/dist/es/general/AvatarMenu/AvatarMenu.d.ts +59 -0
- package/dist/es/general/AvatarMenu/AvatarMenu.js +50 -111
- package/dist/es/general/AvatarMenu/components/Avatar.d.ts +8 -0
- package/dist/es/general/AvatarMenu/components/Avatar.js +18 -13
- package/dist/es/general/AvatarMenu/components/MenuItem.d.ts +11 -0
- package/dist/es/general/AvatarMenu/components/MenuItem.js +12 -13
- package/dist/es/general/AvatarMenu/index.d.ts +3 -0
- package/dist/es/general/AvatarMenu/index.js +1 -1
- package/dist/es/general/BlurredBackground/BlurredBackground.d.ts +35 -0
- package/dist/es/general/BlurredBackground/BlurredBackground.js +26 -66
- package/dist/es/general/BlurredBackground/index.d.ts +3 -0
- package/dist/es/general/BlurredBackground/index.js +1 -1
- package/dist/es/general/CalendarPicker/CalendarPicker.d.ts +134 -0
- package/dist/es/general/CalendarPicker/CalendarPicker.js +170 -267
- package/dist/es/general/CalendarPicker/components/PickersDay.d.ts +15 -0
- package/dist/es/general/CalendarPicker/components/PickersDay.js +28 -23
- package/dist/es/general/CalendarPicker/index.d.ts +3 -0
- package/dist/es/general/CalendarPicker/index.js +5 -5
- package/dist/es/general/CalendarPicker/utils/index.d.ts +9 -0
- package/dist/es/general/CompactBadge/CompactBadge.d.ts +16 -0
- package/dist/es/general/CompactBadge/CompactBadge.js +19 -40
- package/dist/es/general/CompactBadge/index.d.ts +3 -0
- package/dist/es/general/CompactBadge/index.js +1 -1
- package/dist/es/general/CompactLabel/CompactLabel.d.ts +22 -0
- package/dist/es/general/CompactLabel/CompactLabel.js +20 -45
- package/dist/es/general/CompactLabel/index.d.ts +3 -0
- package/dist/es/general/CompactLabel/index.js +1 -1
- package/dist/es/general/CornerLabelPlacer/CornerLabelPlacer.d.ts +29 -0
- package/dist/es/general/CornerLabelPlacer/CornerLabelPlacer.js +35 -76
- package/dist/es/general/CornerLabelPlacer/index.d.ts +3 -0
- package/dist/es/general/CornerLabelPlacer/index.js +1 -1
- package/dist/es/general/ExpandButton/ExpandButton.d.ts +29 -0
- package/dist/es/general/ExpandButton/ExpandButton.js +31 -60
- package/dist/es/general/ExpandButton/index.d.ts +3 -0
- package/dist/es/general/ExpandButton/index.js +1 -1
- package/dist/es/general/Form/Form.d.ts +138 -0
- package/dist/es/general/Form/Form.js +90 -171
- package/dist/es/general/Form/index.d.ts +3 -0
- package/dist/es/general/Form/index.js +1 -1
- package/dist/es/general/ImageCollage/ImageCollage.d.ts +53 -0
- package/dist/es/general/ImageCollage/ImageCollage.js +50 -105
- package/dist/es/general/ImageCollage/index.d.ts +3 -0
- package/dist/es/general/ImageCollage/index.js +1 -1
- package/dist/es/general/MediaIcon/MediaIcon.d.ts +23 -0
- package/dist/es/general/MediaIcon/MediaIcon.js +50 -90
- package/dist/es/general/MediaIcon/index.d.ts +3 -0
- package/dist/es/general/MenuItem/MenuItem.d.ts +35 -0
- package/dist/es/general/MenuItem/MenuItem.js +30 -68
- package/dist/es/general/MenuItem/index.d.ts +3 -0
- package/dist/es/general/MenuItem/index.js +1 -1
- package/dist/es/general/ScrubLine/ScrubLine.d.ts +58 -0
- package/dist/es/general/ScrubLine/ScrubLine.js +45 -106
- package/dist/es/general/ScrubLine/index.d.ts +3 -0
- package/dist/es/general/ScrubLine/index.js +1 -1
- package/dist/es/general/Sort/Sort.d.ts +50 -0
- package/dist/es/general/Sort/Sort.js +75 -131
- package/dist/es/general/Sort/components/ButtonBase.d.ts +9 -0
- package/dist/es/general/Sort/components/ButtonBase.js +12 -14
- package/dist/es/general/Sort/components/MenuItem.d.ts +10 -0
- package/dist/es/general/Sort/components/MenuItem.js +9 -11
- package/dist/es/general/Sort/index.d.ts +3 -0
- package/dist/es/general/Sort/index.js +1 -1
- package/dist/es/general/TablePagination/TablePagination.d.ts +47 -0
- package/dist/es/general/TablePagination/TablePagination.js +48 -84
- package/dist/es/general/TablePagination/index.d.ts +3 -0
- package/dist/es/general/TablePagination/index.js +1 -1
- package/dist/es/general/ThemeContext/ThemeContext.d.ts +43 -0
- package/dist/es/general/ThemeContext/ThemeContext.js +58 -67
- package/dist/es/general/ThemeContext/index.d.ts +1 -0
- package/dist/es/general/index.d.ts +15 -0
- package/dist/es/index.d.ts +8 -0
- package/dist/es/index.js +95 -0
- package/dist/es/inputs/BasicDateTimeInput/BasicDateTimeInput.d.ts +68 -0
- package/dist/es/inputs/BasicDateTimeInput/BasicDateTimeInput.js +31 -105
- package/dist/es/inputs/BasicDateTimeInput/index.d.ts +3 -0
- package/dist/es/inputs/BasicDateTimeInput/index.js +1 -1
- package/dist/es/inputs/BooleanInput/BooleanInput.d.ts +85 -0
- package/dist/es/inputs/BooleanInput/BooleanInput.js +51 -137
- package/dist/es/inputs/BooleanInput/index.d.ts +3 -0
- package/dist/es/inputs/BooleanInput/index.js +1 -1
- package/dist/es/inputs/CheckboxGroupInput/CheckboxGroupInput.d.ts +106 -0
- package/dist/es/inputs/CheckboxGroupInput/CheckboxGroupInput.js +84 -196
- package/dist/es/inputs/CheckboxGroupInput/components/CheckboxGroup.d.ts +42 -0
- package/dist/es/inputs/CheckboxGroupInput/components/CheckboxGroup.js +64 -48
- package/dist/es/inputs/CheckboxGroupInput/index.d.ts +3 -0
- package/dist/es/inputs/CheckboxGroupInput/index.js +1 -1
- package/dist/es/inputs/DateRangeInput/DateRangeInput.d.ts +150 -0
- package/dist/es/inputs/DateRangeInput/DateRangeInput.js +134 -277
- package/dist/es/inputs/DateRangeInput/index.d.ts +3 -0
- package/dist/es/inputs/DateRangeInput/index.js +1 -1
- package/dist/es/inputs/DateRangeInput/utils/dateHelpers.d.ts +10 -0
- package/dist/es/inputs/DateRangeInput/utils/valueManagers.d.ts +10 -0
- package/dist/es/inputs/DateRangeInput/{components/utils → utils}/valueManagers.js +1 -1
- package/dist/es/inputs/DateTimeInput/DateTimeInput.d.ts +105 -0
- package/dist/es/inputs/DateTimeInput/DateTimeInput.js +96 -195
- package/dist/es/inputs/DateTimeInput/index.d.ts +3 -0
- package/dist/es/inputs/DateTimeInput/index.js +1 -1
- package/dist/es/inputs/MaskedTextInput/MaskedTextInput.d.ts +131 -0
- package/dist/es/inputs/MaskedTextInput/MaskedTextInput.js +58 -193
- package/dist/es/inputs/MaskedTextInput/components/MaskedInputComponent.d.ts +16 -0
- package/dist/es/inputs/MaskedTextInput/components/MaskedInputComponent.js +11 -7
- package/dist/es/inputs/MaskedTextInput/index.d.ts +3 -0
- package/dist/es/inputs/MaskedTextInput/index.js +1 -1
- package/dist/es/inputs/NumberInput/NumberInput.d.ts +70 -0
- package/dist/es/inputs/NumberInput/NumberInput.js +30 -106
- package/dist/es/inputs/NumberInput/index.d.ts +3 -0
- package/dist/es/inputs/NumberInput/index.js +1 -1
- package/dist/es/inputs/RadioGroupInput/RadioGroupInput.d.ts +106 -0
- package/dist/es/inputs/RadioGroupInput/RadioGroupInput.js +74 -187
- package/dist/es/inputs/RadioGroupInput/components/RadioGroup.d.ts +42 -0
- package/dist/es/inputs/RadioGroupInput/components/RadioGroup.js +49 -33
- package/dist/es/inputs/RadioGroupInput/index.d.ts +3 -0
- package/dist/es/inputs/RadioGroupInput/index.js +1 -1
- package/dist/es/inputs/SelectInput/SelectInput.d.ts +95 -0
- package/dist/es/inputs/SelectInput/SelectInput.js +52 -152
- package/dist/es/inputs/SelectInput/index.d.ts +3 -0
- package/dist/es/inputs/SelectInput/index.js +1 -1
- package/dist/es/inputs/SliderInput/SliderInput.d.ts +141 -0
- package/dist/es/inputs/SliderInput/SliderInput.js +94 -241
- package/dist/es/inputs/SliderInput/components/Slider.d.ts +30 -0
- package/dist/es/inputs/SliderInput/components/Slider.js +52 -50
- package/dist/es/inputs/SliderInput/index.d.ts +3 -0
- package/dist/es/inputs/SliderInput/index.js +1 -1
- package/dist/es/inputs/TagInput/TagInput.d.ts +118 -0
- package/dist/es/inputs/TagInput/TagInput.js +123 -215
- package/dist/es/inputs/TagInput/index.d.ts +3 -0
- package/dist/es/inputs/TagInput/index.js +1 -1
- package/dist/es/inputs/TextInput/TextInput.d.ts +80 -0
- package/dist/es/inputs/TextInput/TextInput.js +37 -123
- package/dist/es/inputs/TextInput/index.d.ts +3 -0
- package/dist/es/inputs/TextInput/index.js +1 -1
- package/dist/es/inputs/_components/FormControlLabel.d.ts +10 -0
- package/dist/es/inputs/_components/FormControlLabel.js +23 -23
- package/dist/es/inputs/_components/MenuItem.d.ts +11 -0
- package/dist/es/inputs/_components/MenuItem.js +11 -10
- package/dist/es/inputs/index.d.ts +12 -0
- package/dist/es/item/ItemCard/ItemCard.d.ts +165 -0
- package/dist/es/item/ItemCard/ItemCard.js +95 -230
- package/dist/es/item/ItemCard/components/ItemCardMedia.d.ts +12 -0
- package/dist/es/item/ItemCard/components/ItemCardMedia.js +16 -14
- package/dist/es/item/ItemCard/index.d.ts +3 -0
- package/dist/es/item/ItemCard/index.js +1 -1
- package/dist/es/item/ItemList/ItemList.d.ts +75 -0
- package/dist/es/item/ItemList/ItemList.js +47 -131
- package/dist/es/item/ItemList/index.d.ts +3 -0
- package/dist/es/item/ItemList/index.js +1 -1
- package/dist/es/item/ItemListItem/ItemListItem.d.ts +67 -0
- package/dist/es/item/ItemListItem/ItemListItem.js +36 -106
- package/dist/es/item/ItemListItem/index.d.ts +3 -0
- package/dist/es/item/ItemListItem/index.js +1 -1
- package/dist/es/item/ItemPoster/ItemPoster.d.ts +44 -0
- package/dist/es/item/ItemPoster/ItemPoster.js +37 -78
- package/dist/es/item/ItemPoster/index.d.ts +3 -0
- package/dist/es/item/ItemPoster/index.js +1 -1
- package/dist/es/item/ItemPosterList/ItemPosterList.d.ts +36 -0
- package/dist/es/item/ItemPosterList/ItemPosterList.js +30 -82
- package/dist/es/item/ItemPosterList/index.d.ts +3 -0
- package/dist/es/item/ItemPosterList/index.js +1 -1
- package/dist/es/item/ItemPosterViewer/ItemPosterViewer.d.ts +69 -0
- package/dist/es/item/ItemPosterViewer/ItemPosterViewer.js +72 -123
- package/dist/es/item/ItemPosterViewer/components/Toolbar.d.ts +10 -0
- package/dist/es/item/ItemPosterViewer/components/Toolbar.js +26 -22
- package/dist/es/item/ItemPosterViewer/index.d.ts +3 -0
- package/dist/es/item/ItemPosterViewer/index.js +1 -1
- package/dist/es/item/ItemTable/ItemTable.d.ts +79 -0
- package/dist/es/item/ItemTable/ItemTable.js +65 -150
- package/dist/es/item/ItemTable/components/ItemTableHead.d.ts +16 -0
- package/dist/es/item/ItemTable/components/ItemTableHead.js +30 -31
- package/dist/es/item/ItemTable/index.d.ts +3 -0
- package/dist/es/item/ItemTable/index.js +1 -1
- package/dist/es/item/ItemTableRow/ItemTableRow.d.ts +66 -0
- package/dist/es/item/ItemTableRow/ItemTableRow.js +56 -126
- package/dist/es/item/ItemTableRow/index.d.ts +3 -0
- package/dist/es/item/ItemTableRow/index.js +1 -1
- package/dist/es/item/ItemThumbnail/ItemThumbnail.d.ts +88 -0
- package/dist/es/item/ItemThumbnail/ItemThumbnail.js +46 -132
- package/dist/es/item/ItemThumbnail/index.d.ts +3 -0
- package/dist/es/item/ItemThumbnail/index.js +1 -1
- package/dist/es/item/index.d.ts +9 -0
- package/dist/es/search/SearchFilterForm/SearchFilterForm.d.ts +90 -0
- package/dist/es/search/SearchFilterForm/SearchFilterForm.js +57 -118
- package/dist/es/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.d.ts +100 -0
- package/dist/es/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.js +44 -40
- package/dist/es/search/SearchFilterForm/index.d.ts +3 -0
- package/dist/es/search/SearchFilterForm/index.js +8 -9
- package/dist/es/search/SearchFilterForm/utils/mapValuesToFilter.d.ts +15 -0
- package/dist/es/search/SearchFilterForm/utils/mapValuesToFilter.js +30 -33
- package/dist/es/search/index.d.ts +1 -0
- package/dist/es/shape/ShapeMediaBadges/ShapeMediaBadges.d.ts +35 -0
- package/dist/es/shape/ShapeMediaBadges/ShapeMediaBadges.js +21 -61
- package/dist/es/shape/ShapeMediaBadges/index.d.ts +3 -0
- package/dist/es/shape/ShapeMediaBadges/index.js +1 -1
- package/dist/es/shape/index.d.ts +1 -0
- package/dist/es/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.d.ts +35 -0
- package/dist/es/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.js +20 -60
- package/dist/es/transcode/TranscodePresetMediaBadges/index.d.ts +3 -0
- package/dist/es/transcode/TranscodePresetMediaBadges/index.js +1 -1
- package/dist/es/transcode/index.d.ts +1 -0
- package/package.json +28 -22
- package/dist/cjs/inputs/DateRangeInput/components/utils/valueManagers.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -93
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CardContentProps as MuiCardContentProps } from '@mui/material';
|
|
3
|
+
import type { CollectionType, ItemType } from '@vidispine/types';
|
|
4
|
+
export interface EntityCardContentProps extends Omit<MuiCardContentProps, 'itemType'> {
|
|
5
|
+
itemType?: ItemType;
|
|
6
|
+
collectionType?: CollectionType;
|
|
7
|
+
content?: string | (({ itemType, collectionType, }: {
|
|
8
|
+
itemType?: ItemType;
|
|
9
|
+
collectionType?: CollectionType;
|
|
10
|
+
}) => string);
|
|
11
|
+
showTooltip?: boolean;
|
|
12
|
+
WebkitLineClamp?: React.CSSProperties['WebkitLineClamp'];
|
|
13
|
+
}
|
|
14
|
+
declare const EntityCardContent: React.FC<EntityCardContentProps>;
|
|
15
|
+
export default EntityCardContent;
|
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import f from "
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import m from "@mui/material/CardContent";
|
|
3
|
+
import a from "@mui/material/Tooltip";
|
|
4
|
+
import d from "@mui/material/Box";
|
|
5
|
+
import { getEntityText as f } from "../../_utils/getEntityText.js";
|
|
6
|
+
import c from "../_components/Typography.js";
|
|
7
|
+
const s = ({
|
|
8
|
+
itemType: e,
|
|
9
|
+
collectionType: n,
|
|
10
|
+
content: o,
|
|
11
|
+
showTooltip: i,
|
|
12
|
+
WebkitLineClamp: p,
|
|
13
|
+
...l
|
|
14
|
+
}) => {
|
|
15
|
+
const r = f(o, {
|
|
16
|
+
itemType: e,
|
|
17
|
+
collectionType: n
|
|
29
18
|
});
|
|
30
|
-
return
|
|
31
|
-
|
|
19
|
+
return o ? /* @__PURE__ */ t(m, { ...l, children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(a, { title: r || "", enterDelay: 500, open: i, children: /* @__PURE__ */ t(
|
|
20
|
+
c,
|
|
21
|
+
{
|
|
22
|
+
webkitLineClamp: p,
|
|
23
|
+
variant: "body2",
|
|
24
|
+
color: "textSecondary",
|
|
25
|
+
component: "p",
|
|
26
|
+
children: r
|
|
27
|
+
}
|
|
28
|
+
) }) }) }) : null;
|
|
29
|
+
};
|
|
30
|
+
s.defaultProps = {
|
|
31
|
+
showTooltip: !1,
|
|
32
|
+
WebkitLineClamp: 3
|
|
33
|
+
};
|
|
32
34
|
export {
|
|
33
|
-
|
|
35
|
+
s as default
|
|
34
36
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CardHeaderProps as MuiCardHeaderProps } from '@mui/material';
|
|
3
|
+
import type { CollectionType, ItemType } from '@vidispine/types';
|
|
4
|
+
import { EntityAvatarProps } from '../../EntityAvatar/EntityAvatar';
|
|
5
|
+
import type { AvatarMenuProps } from '../../../general/AvatarMenu/AvatarMenu';
|
|
6
|
+
export interface EntityCardHeaderProps extends Omit<MuiCardHeaderProps, 'itemType' | 'title' | 'subheader'> {
|
|
7
|
+
itemType?: ItemType;
|
|
8
|
+
collectionType?: CollectionType;
|
|
9
|
+
title?: string | (({ itemType, collectionType, }: {
|
|
10
|
+
itemType?: ItemType;
|
|
11
|
+
collectionType?: CollectionType;
|
|
12
|
+
}) => string);
|
|
13
|
+
subheader?: string | (({ itemType, collectionType, }: {
|
|
14
|
+
itemType?: ItemType;
|
|
15
|
+
collectionType?: CollectionType;
|
|
16
|
+
}) => string);
|
|
17
|
+
menuOptions?: AvatarMenuProps['options'];
|
|
18
|
+
onOptionClick?: (event: React.MouseEvent<HTMLLIElement, MouseEvent>, payload: {
|
|
19
|
+
option: AvatarMenuProps['options'][number];
|
|
20
|
+
} & ({
|
|
21
|
+
itemType?: ItemType;
|
|
22
|
+
} | {
|
|
23
|
+
collectionType?: CollectionType;
|
|
24
|
+
})) => void;
|
|
25
|
+
entityAvatar?: EntityAvatarProps;
|
|
26
|
+
avatarMenu?: AvatarMenuProps;
|
|
27
|
+
}
|
|
28
|
+
declare const EntityCardHeader: React.FC<EntityCardHeaderProps>;
|
|
29
|
+
export default EntityCardHeader;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { styled as
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import k from "@mui/material/CardHeader";
|
|
3
|
+
import { styled as m } from "@mui/material/styles";
|
|
4
4
|
import "../../EntityIcon/index.js";
|
|
5
|
-
import
|
|
5
|
+
import H from "../../EntityAvatar/index.js";
|
|
6
6
|
import "../../EntityList/index.js";
|
|
7
7
|
import S from "../../../general/AvatarMenu/index.js";
|
|
8
8
|
import "../../../general/BlurredBackground/index.js";
|
|
@@ -17,14 +17,15 @@ import "../../../general/MenuItem/index.js";
|
|
|
17
17
|
import "../../../general/ScrubLine/index.js";
|
|
18
18
|
import "../../../general/Sort/index.js";
|
|
19
19
|
import "../../../general/TablePagination/index.js";
|
|
20
|
+
import "../../../general/Form/index.js";
|
|
20
21
|
import "../../../general/ThemeContext/ThemeContext.js";
|
|
21
22
|
import { getEntityProp as W } from "../../_utils/getEntityProp.js";
|
|
22
|
-
import { getEntityText as
|
|
23
|
-
const E =
|
|
23
|
+
import { getEntityText as i } from "../../_utils/getEntityText.js";
|
|
24
|
+
const E = m(k)(({
|
|
24
25
|
avatar: t,
|
|
25
|
-
action:
|
|
26
|
+
action: r
|
|
26
27
|
}) => {
|
|
27
|
-
const
|
|
28
|
+
const e = t ? 56 : 0, p = r ? 40 + 16 : 0;
|
|
28
29
|
return {
|
|
29
30
|
display: "inline-block",
|
|
30
31
|
padding: 16,
|
|
@@ -34,7 +35,7 @@ const E = p(H)(({
|
|
|
34
35
|
},
|
|
35
36
|
"& .MuiCardHeader-content": {
|
|
36
37
|
float: "left",
|
|
37
|
-
width: `calc(100% - ${
|
|
38
|
+
width: `calc(100% - ${e}px - ${p}px)`
|
|
38
39
|
},
|
|
39
40
|
"& .MuiCardHeader-action": {
|
|
40
41
|
marginTop: 0,
|
|
@@ -42,11 +43,11 @@ const E = p(H)(({
|
|
|
42
43
|
},
|
|
43
44
|
float: "none"
|
|
44
45
|
};
|
|
45
|
-
}),
|
|
46
|
+
}), A = m(H)(({
|
|
46
47
|
theme: t
|
|
47
48
|
}) => ({
|
|
48
49
|
backgroundColor: t.palette.mode === "light" ? "rgba(0, 0, 0, 0.54)" : "#fff"
|
|
49
|
-
})),
|
|
50
|
+
})), O = m(S)(({
|
|
50
51
|
theme: t
|
|
51
52
|
}) => ({
|
|
52
53
|
marginLeft: 16,
|
|
@@ -57,45 +58,42 @@ const E = p(H)(({
|
|
|
57
58
|
backgroundColor: "rgba(255, 255, 255, 0.08)"
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
|
-
}))
|
|
61
|
-
function Z({
|
|
61
|
+
})), T = ({
|
|
62
62
|
itemType: t,
|
|
63
|
-
collectionType:
|
|
64
|
-
title:
|
|
65
|
-
subheader:
|
|
66
|
-
menuOptions:
|
|
63
|
+
collectionType: r,
|
|
64
|
+
title: e,
|
|
65
|
+
subheader: p,
|
|
66
|
+
menuOptions: a,
|
|
67
67
|
onOptionClick: c,
|
|
68
|
-
entityAvatar: f
|
|
69
|
-
avatarMenu:
|
|
68
|
+
entityAvatar: f,
|
|
69
|
+
avatarMenu: o,
|
|
70
70
|
...h
|
|
71
|
-
}) {
|
|
71
|
+
}) => {
|
|
72
72
|
var d, l, s;
|
|
73
|
-
const {
|
|
74
|
-
id: g
|
|
75
|
-
} = t || o || {}, u = r(i, {
|
|
73
|
+
const g = i(e, {
|
|
76
74
|
itemType: t,
|
|
77
|
-
collectionType:
|
|
78
|
-
}),
|
|
75
|
+
collectionType: r
|
|
76
|
+
}), y = i(p, {
|
|
79
77
|
itemType: t,
|
|
80
|
-
collectionType:
|
|
81
|
-
}),
|
|
78
|
+
collectionType: r
|
|
79
|
+
}), C = (l = (d = i("mimeType", {
|
|
82
80
|
itemType: t
|
|
83
|
-
})) == null ? void 0 : d.split("/")) == null ? void 0 : l[0],
|
|
81
|
+
})) == null ? void 0 : d.split("/")) == null ? void 0 : l[0], b = i("mediaType", {
|
|
84
82
|
itemType: t
|
|
85
|
-
}) ||
|
|
83
|
+
}) || C, u = (x, P) => {
|
|
86
84
|
c(x, {
|
|
87
|
-
option:
|
|
85
|
+
option: P,
|
|
88
86
|
...W({
|
|
89
87
|
itemType: t,
|
|
90
|
-
collectionType:
|
|
88
|
+
collectionType: r
|
|
91
89
|
})
|
|
92
90
|
});
|
|
93
91
|
};
|
|
94
|
-
return /* @__PURE__ */
|
|
92
|
+
return /* @__PURE__ */ n(E, { title: g, subheader: y, titleTypographyProps: {
|
|
95
93
|
noWrap: !0
|
|
96
94
|
}, subheaderTypographyProps: {
|
|
97
95
|
noWrap: !0
|
|
98
|
-
}, avatar: /* @__PURE__ */
|
|
96
|
+
}, avatar: /* @__PURE__ */ n(A, { entityType: t && "item" || r && "collection" || "library", mediaType: b, ...f ?? {} }), action: a && /* @__PURE__ */ n(O, { minWidth: "unset", options: a, onOptionClick: u, componentsProps: {
|
|
99
97
|
menu: {
|
|
100
98
|
anchorOrigin: {
|
|
101
99
|
vertical: "bottom",
|
|
@@ -105,11 +103,12 @@ function Z({
|
|
|
105
103
|
vertical: "top",
|
|
106
104
|
horizontal: "right"
|
|
107
105
|
},
|
|
108
|
-
...((s =
|
|
106
|
+
...((s = o == null ? void 0 : o.componentsProps) == null ? void 0 : s.menu) || {}
|
|
109
107
|
},
|
|
110
|
-
...
|
|
111
|
-
}, ...
|
|
112
|
-
}
|
|
108
|
+
...(o == null ? void 0 : o.componentsProps) || {}
|
|
109
|
+
}, ...o ?? {} }), ...h });
|
|
110
|
+
};
|
|
111
|
+
T.defaultProps = {};
|
|
113
112
|
export {
|
|
114
|
-
|
|
113
|
+
T as default
|
|
115
114
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Folder as MuiFolderIcon, NoteAdd as MuiNoteAddIcon } from '@mui/icons-material';
|
|
3
|
+
import { Box as MuiBox } from '@mui/material';
|
|
4
|
+
import { MediaIcon as VdtMediaIcon } from '../../general';
|
|
5
|
+
import type { StyledComponent, WithOverrideProps } from '../../_types';
|
|
6
|
+
declare const StyledMuiBox: typeof MuiBox;
|
|
7
|
+
declare const StyledMuiNoteAddIcon: StyledComponent<typeof MuiNoteAddIcon>;
|
|
8
|
+
declare const StyledMuiFolderIcon: StyledComponent<typeof MuiFolderIcon>;
|
|
9
|
+
declare const defaultComponents: {
|
|
10
|
+
Root: typeof StyledMuiBox;
|
|
11
|
+
ItemIcon: typeof VdtMediaIcon;
|
|
12
|
+
LibraryIcon: typeof VdtMediaIcon;
|
|
13
|
+
PlaceholderIcon: typeof StyledMuiNoteAddIcon;
|
|
14
|
+
CollectionIcon: typeof StyledMuiFolderIcon;
|
|
15
|
+
};
|
|
16
|
+
export interface EntityIconProps extends WithOverrideProps<typeof defaultComponents> {
|
|
17
|
+
/**
|
|
18
|
+
* `placeholderIcon` is shown if entityType is undefined or not a string
|
|
19
|
+
*/
|
|
20
|
+
entityType?: 'item' | 'collection' | 'library';
|
|
21
|
+
/**
|
|
22
|
+
* Optional, use mediaType icon for item and library
|
|
23
|
+
*/
|
|
24
|
+
mediaType?: 'video' | 'audio' | 'image' | 'document' | 'data' | 'pdf' | 'none' | string;
|
|
25
|
+
}
|
|
26
|
+
declare const EntityIcon: React.FC<EntityIconProps>;
|
|
27
|
+
export default EntityIcon;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { styled as c } from "@mui/material/styles";
|
|
1
|
+
import { jsxs as u, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import y from "@mui/icons-material/esm/Folder";
|
|
3
|
+
import f from "@mui/icons-material/esm/NoteAdd";
|
|
4
|
+
import m from "@mui/icons-material/esm/LibraryBooks";
|
|
5
|
+
import b from "@mui/icons-material/esm/LibraryMusic";
|
|
6
|
+
import h from "@mui/icons-material/esm/PhotoLibrary";
|
|
7
|
+
import x from "@mui/icons-material/esm/VideoLibrary";
|
|
8
|
+
import L from "@mui/material/Box";
|
|
9
|
+
import { styled as n } from "@mui/material/styles";
|
|
11
10
|
import "../../general/AvatarMenu/index.js";
|
|
12
11
|
import "../../general/BlurredBackground/index.js";
|
|
13
12
|
import "../../general/CalendarPicker/index.js";
|
|
@@ -16,92 +15,59 @@ import "../../general/CompactLabel/index.js";
|
|
|
16
15
|
import "../../general/CornerLabelPlacer/index.js";
|
|
17
16
|
import "../../general/ExpandButton/index.js";
|
|
18
17
|
import "../../general/ImageCollage/index.js";
|
|
19
|
-
import
|
|
18
|
+
import e from "../../general/MediaIcon/index.js";
|
|
20
19
|
import "../../general/MenuItem/index.js";
|
|
21
20
|
import "../../general/ScrubLine/index.js";
|
|
22
21
|
import "../../general/Sort/index.js";
|
|
23
22
|
import "../../general/TablePagination/index.js";
|
|
23
|
+
import "../../general/Form/index.js";
|
|
24
24
|
import "../../general/ThemeContext/ThemeContext.js";
|
|
25
|
-
const
|
|
26
|
-
theme:
|
|
25
|
+
const M = n(L)(({
|
|
26
|
+
theme: o
|
|
27
27
|
}) => ({
|
|
28
28
|
display: "flex",
|
|
29
|
-
color:
|
|
30
|
-
})),
|
|
31
|
-
shouldForwardProp: (
|
|
32
|
-
})(() => ({})),
|
|
33
|
-
shouldForwardProp: (
|
|
34
|
-
})(() => ({})),
|
|
35
|
-
Root:
|
|
36
|
-
ItemIcon:
|
|
37
|
-
LibraryIcon:
|
|
38
|
-
PlaceholderIcon:
|
|
39
|
-
CollectionIcon:
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}) {
|
|
29
|
+
color: o.palette.primary.main
|
|
30
|
+
})), C = n(f, {
|
|
31
|
+
shouldForwardProp: (o) => o !== "mediaType"
|
|
32
|
+
})(() => ({})), F = n(y, {
|
|
33
|
+
shouldForwardProp: (o) => o !== "mediaType"
|
|
34
|
+
})(() => ({})), w = {
|
|
35
|
+
Root: M,
|
|
36
|
+
ItemIcon: e,
|
|
37
|
+
LibraryIcon: e,
|
|
38
|
+
PlaceholderIcon: C,
|
|
39
|
+
CollectionIcon: F
|
|
40
|
+
}, B = ({
|
|
41
|
+
entityType: o,
|
|
42
|
+
mediaType: t,
|
|
43
|
+
components: l,
|
|
44
|
+
componentsProps: r
|
|
45
|
+
}) => {
|
|
47
46
|
const {
|
|
48
|
-
Root:
|
|
47
|
+
Root: p,
|
|
49
48
|
PlaceholderIcon: I,
|
|
50
|
-
ItemIcon:
|
|
51
|
-
CollectionIcon:
|
|
52
|
-
LibraryIcon:
|
|
53
|
-
} =
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
PlaceholderIcon:
|
|
59
|
-
FileIcon:
|
|
60
|
-
AudioIcon:
|
|
61
|
-
VideoIcon:
|
|
62
|
-
ImageIcon:
|
|
63
|
-
...
|
|
49
|
+
ItemIcon: d,
|
|
50
|
+
CollectionIcon: a,
|
|
51
|
+
LibraryIcon: s
|
|
52
|
+
} = l, i = o == null ? void 0 : o.toLowerCase();
|
|
53
|
+
return /* @__PURE__ */ u(p, { component: "span", ...r.root, children: [
|
|
54
|
+
i === "item" && /* @__PURE__ */ c(d, { type: t, ...r.itemIcon }),
|
|
55
|
+
i === "collection" && /* @__PURE__ */ c(a, { type: t, ...r.collectionIcon }),
|
|
56
|
+
i === "library" && /* @__PURE__ */ c(s, { type: t, ...r.libraryIcon, components: {
|
|
57
|
+
PlaceholderIcon: m,
|
|
58
|
+
FileIcon: m,
|
|
59
|
+
AudioIcon: b,
|
|
60
|
+
VideoIcon: x,
|
|
61
|
+
ImageIcon: h,
|
|
62
|
+
...r.libraryIcon.components || {}
|
|
64
63
|
} }),
|
|
65
|
-
!["item", "collection", "library"].includes(
|
|
64
|
+
!["item", "collection", "library"].includes(i) && /* @__PURE__ */ c(I, { type: t, ...r.placeholderIcon })
|
|
66
65
|
] });
|
|
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
66
|
};
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
mediaType: void 0,
|
|
102
|
-
components: P,
|
|
67
|
+
B.defaultProps = {
|
|
68
|
+
components: w,
|
|
103
69
|
componentsProps: void 0
|
|
104
70
|
};
|
|
105
71
|
export {
|
|
106
|
-
|
|
72
|
+
B as default
|
|
107
73
|
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { List as MuiList, ListSubheader as MuiListSubheader } from '@mui/material';
|
|
3
|
+
import type { ItemType, CollectionType } from '@vidispine/types';
|
|
4
|
+
import VdtCollectionListItem from '../../collection/CollectionListItem';
|
|
5
|
+
import VdtItemListItem from '../../item/ItemListItem';
|
|
6
|
+
import type { PropsFrom, WithOverrideProps } from '../../_types';
|
|
7
|
+
declare const StyledMuiList: typeof MuiList;
|
|
8
|
+
declare const defaultComponents: {
|
|
9
|
+
Root: typeof StyledMuiList;
|
|
10
|
+
ListSubheader: typeof MuiListSubheader;
|
|
11
|
+
CollectionListItem: typeof VdtCollectionListItem;
|
|
12
|
+
ItemListItem: typeof VdtItemListItem;
|
|
13
|
+
LoadingListItem: typeof VdtItemListItem;
|
|
14
|
+
ListItem: (props?: PropsFrom<typeof VdtItemListItem> & PropsFrom<typeof VdtCollectionListItem>) => null;
|
|
15
|
+
};
|
|
16
|
+
export interface EntityListProps extends WithOverrideProps<typeof defaultComponents> {
|
|
17
|
+
/**
|
|
18
|
+
* The entities to show in the list
|
|
19
|
+
*/
|
|
20
|
+
entities?: ({
|
|
21
|
+
item?: ItemType;
|
|
22
|
+
} | {
|
|
23
|
+
collection?: CollectionType;
|
|
24
|
+
})[];
|
|
25
|
+
/**
|
|
26
|
+
* Add a list header
|
|
27
|
+
*/
|
|
28
|
+
header?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Primary text for the list item
|
|
31
|
+
*
|
|
32
|
+
* Set to *field name* the value should be extracted from
|
|
33
|
+
* or set *function* which will get entity as argument
|
|
34
|
+
*/
|
|
35
|
+
primary?: string | (({ itemType }: {
|
|
36
|
+
itemType: ItemType;
|
|
37
|
+
}) => string) | (({ collectionType }: {
|
|
38
|
+
collectionType: CollectionType;
|
|
39
|
+
}) => string);
|
|
40
|
+
/**
|
|
41
|
+
* Secondary text for the list item
|
|
42
|
+
*
|
|
43
|
+
* Set to *field name* the value should be extracted from
|
|
44
|
+
* or set *function* which will get entity as argument
|
|
45
|
+
*
|
|
46
|
+
* Defaults to undefined
|
|
47
|
+
*/
|
|
48
|
+
secondary?: string | (({ itemType }: {
|
|
49
|
+
itemType: ItemType;
|
|
50
|
+
}) => string) | (({ collectionType }: {
|
|
51
|
+
collectionType: CollectionType;
|
|
52
|
+
}) => string);
|
|
53
|
+
/**
|
|
54
|
+
* Variant/shapes for the list item avatars
|
|
55
|
+
*/
|
|
56
|
+
avatarVariant?: 'circular' | 'rounded' | 'square';
|
|
57
|
+
/**
|
|
58
|
+
* If list should be displayed as dense
|
|
59
|
+
*/
|
|
60
|
+
dense?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Show skeleton list items as loading state
|
|
63
|
+
*/
|
|
64
|
+
isLoading?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* amount of list items to show when loading
|
|
67
|
+
*/
|
|
68
|
+
amountLoading?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Callback for ListItem click event
|
|
71
|
+
*
|
|
72
|
+
* Set to `undefined` to disable
|
|
73
|
+
*/
|
|
74
|
+
onListItemClick?: (event: React.MouseEvent<HTMLDivElement>, payload: {
|
|
75
|
+
itemType?: ItemType;
|
|
76
|
+
collectionType?: CollectionType;
|
|
77
|
+
}) => void;
|
|
78
|
+
/**
|
|
79
|
+
* Callback for ListItem click event
|
|
80
|
+
*
|
|
81
|
+
* Set to `undefined` to disable
|
|
82
|
+
*/
|
|
83
|
+
onListItemDelete?: (event: React.MouseEvent<HTMLButtonElement>, payload: {
|
|
84
|
+
itemType?: ItemType;
|
|
85
|
+
collectionType?: CollectionType;
|
|
86
|
+
}) => void;
|
|
87
|
+
/**
|
|
88
|
+
* Shown when list is empty
|
|
89
|
+
*/
|
|
90
|
+
emptySlot?: () => JSX.Element;
|
|
91
|
+
}
|
|
92
|
+
declare const EntityList: React.FC<EntityListProps>;
|
|
93
|
+
export default EntityList;
|