@vidispine/vdt-mui 23.3.0-pre.2 → 23.3.0-pre.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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
|
@@ -1,147 +1,63 @@
|
|
|
1
|
-
import { jsxs as a, jsx as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import
|
|
4
|
-
import C from "@mui/material/
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import P from "@vidispine/proptypes";
|
|
9
|
-
import { uuidv4 as p } from "../../_utils/uuidv4.js";
|
|
1
|
+
import { jsxs as a, jsx as m, Fragment as k } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as b } from "react";
|
|
3
|
+
import x from "@mui/material/List";
|
|
4
|
+
import C from "@mui/material/ListSubheader";
|
|
5
|
+
import j from "@mui/material/Typography";
|
|
6
|
+
import { styled as w } from "@mui/material/styles";
|
|
7
|
+
import { uuidv4 as d } from "../../_utils/uuidv4.js";
|
|
10
8
|
import "clsx";
|
|
11
|
-
import { showSlot as
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
return /* @__PURE__ */ s(x, { children: "No items found..." });
|
|
15
|
-
}
|
|
16
|
-
const w = D(C)(() => ({
|
|
9
|
+
import { showSlot as D } from "../../_utils/showSlot.js";
|
|
10
|
+
import R from "../ItemListItem/index.js";
|
|
11
|
+
const q = () => /* @__PURE__ */ m(j, { children: "No items found..." }), A = w(x)(() => ({
|
|
17
12
|
width: "100%",
|
|
18
13
|
padding: 0
|
|
19
|
-
})),
|
|
20
|
-
Root:
|
|
21
|
-
ListSubheader:
|
|
22
|
-
ListItem:
|
|
23
|
-
}
|
|
24
|
-
function d({
|
|
14
|
+
})), E = {
|
|
15
|
+
Root: A,
|
|
16
|
+
ListSubheader: C,
|
|
17
|
+
ListItem: R
|
|
18
|
+
}, F = ({
|
|
25
19
|
itemListType: t,
|
|
26
|
-
header:
|
|
27
|
-
primary:
|
|
28
|
-
secondary:
|
|
29
|
-
avatarVariant:
|
|
30
|
-
dense:
|
|
31
|
-
amountLoading:
|
|
32
|
-
isLoading:
|
|
33
|
-
onListItemClick:
|
|
34
|
-
onListItemDelete:
|
|
35
|
-
emptySlot:
|
|
36
|
-
components:
|
|
37
|
-
componentsProps:
|
|
38
|
-
}) {
|
|
20
|
+
header: n,
|
|
21
|
+
primary: l,
|
|
22
|
+
secondary: p,
|
|
23
|
+
avatarVariant: u,
|
|
24
|
+
dense: f,
|
|
25
|
+
amountLoading: c,
|
|
26
|
+
isLoading: e,
|
|
27
|
+
onListItemClick: h,
|
|
28
|
+
onListItemDelete: y,
|
|
29
|
+
emptySlot: S,
|
|
30
|
+
components: I,
|
|
31
|
+
componentsProps: r
|
|
32
|
+
}) => {
|
|
39
33
|
const {
|
|
40
|
-
Root:
|
|
41
|
-
ListSubheader:
|
|
42
|
-
ListItem:
|
|
43
|
-
} =
|
|
44
|
-
key:
|
|
45
|
-
})),
|
|
34
|
+
Root: L,
|
|
35
|
+
ListSubheader: v,
|
|
36
|
+
ListItem: M
|
|
37
|
+
} = I, g = [...Array(Math.max(c, 0)).keys()].map(() => ({
|
|
38
|
+
key: d()
|
|
39
|
+
})), s = b(() => {
|
|
46
40
|
var o;
|
|
47
|
-
return ((o = t == null ? void 0 : t.item) == null ? void 0 : o.map((
|
|
48
|
-
key:
|
|
49
|
-
itemType:
|
|
41
|
+
return ((o = t == null ? void 0 : t.item) == null ? void 0 : o.map((i) => ({
|
|
42
|
+
key: d(),
|
|
43
|
+
itemType: i
|
|
50
44
|
}))) || [];
|
|
51
45
|
}, [t.item]);
|
|
52
|
-
return /* @__PURE__ */ a(
|
|
53
|
-
/* @__PURE__ */
|
|
46
|
+
return /* @__PURE__ */ a(L, { dense: f, ...r.root, children: [
|
|
47
|
+
/* @__PURE__ */ m(v, { ...r.listSubheader, children: n }),
|
|
54
48
|
/* @__PURE__ */ a(k, { children: [
|
|
55
|
-
!
|
|
56
|
-
(
|
|
49
|
+
!e && s.length === 0 && D(S),
|
|
50
|
+
(e ? g : s).map(({
|
|
57
51
|
key: o,
|
|
58
|
-
itemType:
|
|
59
|
-
}) => /* @__PURE__ */
|
|
52
|
+
itemType: i
|
|
53
|
+
}) => /* @__PURE__ */ m(M, { itemType: i, primary: l, secondary: p, avatarVariant: u, isLoading: e, onClick: h, onDelete: y, ...r.listItem }, o))
|
|
60
54
|
] })
|
|
61
55
|
] });
|
|
62
|
-
}
|
|
63
|
-
d.propTypes = {
|
|
64
|
-
/**
|
|
65
|
-
* The `ItemListType` to show in the list
|
|
66
|
-
*/
|
|
67
|
-
itemListType: P.ItemListType,
|
|
68
|
-
/**
|
|
69
|
-
* Add a list header
|
|
70
|
-
*/
|
|
71
|
-
header: e.string,
|
|
72
|
-
/**
|
|
73
|
-
* Primary text for the list item
|
|
74
|
-
*
|
|
75
|
-
* Set to *field name* the value should be extracted from
|
|
76
|
-
* or set *function* which will get itemType as argument
|
|
77
|
-
*
|
|
78
|
-
* Defaults to id of entity
|
|
79
|
-
*/
|
|
80
|
-
primary: e.oneOfType([e.string, e.func]),
|
|
81
|
-
/**
|
|
82
|
-
* Secondary text for the list item
|
|
83
|
-
*
|
|
84
|
-
* Set to *field name* the value should be extracted from
|
|
85
|
-
* or set *function* which will get itemType as argument
|
|
86
|
-
*
|
|
87
|
-
* Defaults to undefined
|
|
88
|
-
*/
|
|
89
|
-
secondary: e.oneOfType([e.string, e.func]),
|
|
90
|
-
/**
|
|
91
|
-
* Variant/shapes for the list item avatars
|
|
92
|
-
*/
|
|
93
|
-
avatarVariant: e.oneOf(["circular", "rounded", "square"]),
|
|
94
|
-
/**
|
|
95
|
-
* If list should be displayed as dense
|
|
96
|
-
*/
|
|
97
|
-
dense: e.bool,
|
|
98
|
-
/**
|
|
99
|
-
* Show skeleton list items as loading state
|
|
100
|
-
*/
|
|
101
|
-
isLoading: e.bool,
|
|
102
|
-
/**
|
|
103
|
-
* amount of list items to show when loading
|
|
104
|
-
*/
|
|
105
|
-
amountLoading: e.number,
|
|
106
|
-
/**
|
|
107
|
-
* Callback for ListItem click event
|
|
108
|
-
*
|
|
109
|
-
* Set to `undefined` to disable
|
|
110
|
-
*/
|
|
111
|
-
onListItemClick: e.func,
|
|
112
|
-
/**
|
|
113
|
-
* Callback for ListItem delete event
|
|
114
|
-
*
|
|
115
|
-
* Set to `undefined` to disable
|
|
116
|
-
*/
|
|
117
|
-
onListItemDelete: e.func,
|
|
118
|
-
// Slots
|
|
119
|
-
/**
|
|
120
|
-
* Shown when list is empty
|
|
121
|
-
*/
|
|
122
|
-
emptySlot: e.oneOfType([e.elementType, e.node]),
|
|
123
|
-
// Overrides
|
|
124
|
-
/**
|
|
125
|
-
* Replace internal components
|
|
126
|
-
*/
|
|
127
|
-
components: e.shape({
|
|
128
|
-
Root: e.elementType,
|
|
129
|
-
ListSubheader: e.elementType,
|
|
130
|
-
ListItem: e.elementType
|
|
131
|
-
}),
|
|
132
|
-
/**
|
|
133
|
-
* Add internal component props
|
|
134
|
-
*/
|
|
135
|
-
componentsProps: e.shape({
|
|
136
|
-
root: e.instanceOf(Object),
|
|
137
|
-
listSubheader: e.instanceOf(Object),
|
|
138
|
-
listItem: e.instanceOf(Object)
|
|
139
|
-
})
|
|
140
56
|
};
|
|
141
|
-
|
|
57
|
+
F.defaultProps = {
|
|
142
58
|
itemListType: {},
|
|
143
59
|
header: void 0,
|
|
144
|
-
primary:
|
|
60
|
+
primary: "id",
|
|
145
61
|
secondary: void 0,
|
|
146
62
|
avatarVariant: "square",
|
|
147
63
|
dense: !1,
|
|
@@ -150,9 +66,9 @@ d.defaultProps = {
|
|
|
150
66
|
onListItemClick: void 0,
|
|
151
67
|
onListItemDelete: void 0,
|
|
152
68
|
emptySlot: q,
|
|
153
|
-
components:
|
|
69
|
+
components: E,
|
|
154
70
|
componentsProps: void 0
|
|
155
71
|
};
|
|
156
72
|
export {
|
|
157
|
-
|
|
73
|
+
F as default
|
|
158
74
|
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ListItem as MuiListItem } from '@mui/material';
|
|
3
|
+
import type { ItemType } from '@vidispine/types';
|
|
4
|
+
import VdtListItemAvatar from '../../entity/EntityListItem/components/EntityListItemAvatar';
|
|
5
|
+
import VdtListItemButton from '../../entity/EntityListItem/components/EntityListItemButton';
|
|
6
|
+
import VdtListItemSecondaryAction from '../../entity/EntityListItem/components/EntityListItemSecondaryAction';
|
|
7
|
+
import VdtListItemText from '../../entity/EntityListItem/components/EntityListItemText';
|
|
8
|
+
import type { WithOverrideProps } from '../../_types';
|
|
9
|
+
declare const defaultComponents: {
|
|
10
|
+
Root: typeof MuiListItem;
|
|
11
|
+
ListItemButton: typeof VdtListItemButton;
|
|
12
|
+
ListItemAvatar: typeof VdtListItemAvatar;
|
|
13
|
+
ListItemText: typeof VdtListItemText;
|
|
14
|
+
ListItemSecondaryAction: typeof VdtListItemSecondaryAction;
|
|
15
|
+
};
|
|
16
|
+
export interface ItemListItemProps extends WithOverrideProps<typeof defaultComponents> {
|
|
17
|
+
/**
|
|
18
|
+
* The ItemType to display as a list item
|
|
19
|
+
*/
|
|
20
|
+
itemType?: ItemType;
|
|
21
|
+
/**
|
|
22
|
+
* Primary text for the list item
|
|
23
|
+
*
|
|
24
|
+
* Set to *field name* the value should be extracted from
|
|
25
|
+
* or set *function* which will get entity as argument
|
|
26
|
+
*/
|
|
27
|
+
primary?: string | (({ itemType }: {
|
|
28
|
+
itemType: ItemType;
|
|
29
|
+
}) => string);
|
|
30
|
+
/**
|
|
31
|
+
* Secondary text for the list item
|
|
32
|
+
*
|
|
33
|
+
* Set to *field name* the value should be extracted from
|
|
34
|
+
* or set *function* which will get entity as argument
|
|
35
|
+
*
|
|
36
|
+
* Defaults to undefined
|
|
37
|
+
*/
|
|
38
|
+
secondary?: string | (({ itemType }: {
|
|
39
|
+
itemType: ItemType;
|
|
40
|
+
}) => string);
|
|
41
|
+
/**
|
|
42
|
+
* Variant/shapes for the Avatar
|
|
43
|
+
*/
|
|
44
|
+
avatarVariant?: 'circular' | 'rounded' | 'square';
|
|
45
|
+
/**
|
|
46
|
+
* Set true to show a skeleton placeholder
|
|
47
|
+
*/
|
|
48
|
+
isLoading?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Add event handler when list item is clicked
|
|
51
|
+
*
|
|
52
|
+
* Set `undefined` to disable
|
|
53
|
+
*/
|
|
54
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>, payload: {
|
|
55
|
+
itemType?: ItemType;
|
|
56
|
+
}) => void;
|
|
57
|
+
/**
|
|
58
|
+
* Show a delete icon as secondary action
|
|
59
|
+
*
|
|
60
|
+
* Set `undefined` to hide
|
|
61
|
+
*/
|
|
62
|
+
onDelete?: (event: React.MouseEvent<HTMLButtonElement>, payload: {
|
|
63
|
+
itemType?: ItemType;
|
|
64
|
+
}) => void;
|
|
65
|
+
}
|
|
66
|
+
declare const ItemListItem: React.FC<ItemListItemProps>;
|
|
67
|
+
export default ItemListItem;
|
|
@@ -1,122 +1,52 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
secondary: l,
|
|
20
|
-
avatarVariant: p,
|
|
21
|
-
isLoading: e,
|
|
1
|
+
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import u from "@mui/material/ListItem";
|
|
3
|
+
import y from "../../entity/EntityListItem/components/EntityListItemAvatar.js";
|
|
4
|
+
import A from "../../entity/EntityListItem/components/EntityListItemButton.js";
|
|
5
|
+
import x from "../../entity/EntityListItem/components/EntityListItemSecondaryAction.js";
|
|
6
|
+
import B from "../../entity/EntityListItem/components/EntityListItemText.js";
|
|
7
|
+
const E = {
|
|
8
|
+
Root: u,
|
|
9
|
+
ListItemButton: A,
|
|
10
|
+
ListItemAvatar: y,
|
|
11
|
+
ListItemText: B,
|
|
12
|
+
ListItemSecondaryAction: x
|
|
13
|
+
}, S = ({
|
|
14
|
+
itemType: e,
|
|
15
|
+
primary: s,
|
|
16
|
+
secondary: n,
|
|
17
|
+
avatarVariant: I,
|
|
18
|
+
isLoading: t,
|
|
22
19
|
onClick: r,
|
|
23
|
-
onDelete:
|
|
24
|
-
components:
|
|
20
|
+
onDelete: d,
|
|
21
|
+
components: l,
|
|
25
22
|
componentsProps: i
|
|
26
|
-
}) {
|
|
23
|
+
}) => {
|
|
27
24
|
const {
|
|
28
|
-
Root:
|
|
29
|
-
ListItemAvatar:
|
|
30
|
-
ListItemText:
|
|
31
|
-
ListItemButton:
|
|
32
|
-
ListItemSecondaryAction:
|
|
33
|
-
} =
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */
|
|
25
|
+
Root: c,
|
|
26
|
+
ListItemAvatar: L,
|
|
27
|
+
ListItemText: v,
|
|
28
|
+
ListItemButton: m,
|
|
29
|
+
ListItemSecondaryAction: f
|
|
30
|
+
} = l;
|
|
31
|
+
return /* @__PURE__ */ a(c, { disablePadding: !t && !!r && !!m, ...i.root, children: [
|
|
32
|
+
/* @__PURE__ */ a(m, { itemType: e, onClick: r, isLoading: t, ...i.listItemButton, children: [
|
|
33
|
+
/* @__PURE__ */ o(L, { itemType: e, variant: I, isLoading: t, ...i.listItemAvatar }),
|
|
34
|
+
/* @__PURE__ */ o(v, { itemType: e, primary: s, secondary: n, isLoading: t, ...i.listItemText })
|
|
38
35
|
] }),
|
|
39
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ o(f, { itemType: e, onDelete: d, isLoading: t, ...i.listItemSecondaryAction })
|
|
40
37
|
] });
|
|
41
|
-
}
|
|
42
|
-
m.propTypes = {
|
|
43
|
-
/**
|
|
44
|
-
* The ItemType to display as a list item
|
|
45
|
-
*/
|
|
46
|
-
itemType: T.ItemType,
|
|
47
|
-
/**
|
|
48
|
-
* Primary text for the list item
|
|
49
|
-
*
|
|
50
|
-
* Set to *field name* the value should be extracted from
|
|
51
|
-
* or set *function* which will get entity as argument
|
|
52
|
-
*
|
|
53
|
-
* Defaults to id of entity
|
|
54
|
-
*/
|
|
55
|
-
primary: t.oneOfType([t.string, t.func]),
|
|
56
|
-
/**
|
|
57
|
-
* Secondary text for the list item
|
|
58
|
-
*
|
|
59
|
-
* Set to *field name* the value should be extracted from
|
|
60
|
-
* or set *function* which will get entity as argument
|
|
61
|
-
*
|
|
62
|
-
* Defaults to undefined
|
|
63
|
-
*/
|
|
64
|
-
secondary: t.oneOfType([t.string, t.func]),
|
|
65
|
-
/**
|
|
66
|
-
* Variant/shapes for the Avatar
|
|
67
|
-
*/
|
|
68
|
-
avatarVariant: t.oneOf(["circular", "rounded", "square"]),
|
|
69
|
-
/**
|
|
70
|
-
* Set true to show a skeleton placeholder
|
|
71
|
-
*/
|
|
72
|
-
isLoading: t.bool,
|
|
73
|
-
/**
|
|
74
|
-
* Add event handler when list item is clicked
|
|
75
|
-
*
|
|
76
|
-
* Set `undefined` to disable
|
|
77
|
-
*/
|
|
78
|
-
onClick: t.func,
|
|
79
|
-
/**
|
|
80
|
-
* Show a delete icon as secondary action
|
|
81
|
-
*
|
|
82
|
-
* Set `undefined` to hide
|
|
83
|
-
*/
|
|
84
|
-
onDelete: t.func,
|
|
85
|
-
// Overrides
|
|
86
|
-
/**
|
|
87
|
-
* Replace internal components
|
|
88
|
-
*/
|
|
89
|
-
components: t.shape({
|
|
90
|
-
Root: t.elementType,
|
|
91
|
-
ListItemButton: t.elementType,
|
|
92
|
-
ListItemAvatar: t.elementType,
|
|
93
|
-
ListItemText: t.elementType,
|
|
94
|
-
ListItemSecondaryAction: t.elementType
|
|
95
|
-
}),
|
|
96
|
-
/**
|
|
97
|
-
* Add internal component props
|
|
98
|
-
*/
|
|
99
|
-
componentsProps: t.shape({
|
|
100
|
-
root: t.instanceOf(Object),
|
|
101
|
-
listItemButton: t.instanceOf(Object),
|
|
102
|
-
listItemAvatar: t.shape({
|
|
103
|
-
entityAvatar: t.instanceOf(Object)
|
|
104
|
-
}),
|
|
105
|
-
listItemText: t.instanceOf(Object),
|
|
106
|
-
listItemSecondaryAction: t.instanceOf(Object)
|
|
107
|
-
})
|
|
108
38
|
};
|
|
109
|
-
|
|
39
|
+
S.defaultProps = {
|
|
110
40
|
itemType: void 0,
|
|
111
|
-
primary:
|
|
41
|
+
primary: "id",
|
|
112
42
|
secondary: void 0,
|
|
113
43
|
avatarVariant: "square",
|
|
114
44
|
isLoading: !1,
|
|
115
45
|
onClick: void 0,
|
|
116
46
|
onDelete: void 0,
|
|
117
|
-
components:
|
|
47
|
+
components: E,
|
|
118
48
|
componentsProps: void 0
|
|
119
49
|
};
|
|
120
50
|
export {
|
|
121
|
-
|
|
51
|
+
S as default
|
|
122
52
|
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Box as MuiBox } from '@mui/material';
|
|
3
|
+
import type { ItemType } from '@vidispine/types';
|
|
4
|
+
import { BlurredBackground as VdtBlurredBackground } from '../../general';
|
|
5
|
+
import type { StyledComponent, WithOverrideProps } from '../../_types';
|
|
6
|
+
declare const StyledMuiBox: typeof MuiBox;
|
|
7
|
+
declare const StyledVdtBlurredBackground: typeof VdtBlurredBackground;
|
|
8
|
+
type StyledMuiBoxImageType = StyledComponent<typeof MuiBox, {
|
|
9
|
+
image?: string;
|
|
10
|
+
backgroundSize?: React.CSSProperties['backgroundSize'];
|
|
11
|
+
}>;
|
|
12
|
+
declare const StyledMuiBoxImage: StyledMuiBoxImageType;
|
|
13
|
+
declare const defaultComponents: {
|
|
14
|
+
Root: typeof StyledMuiBox;
|
|
15
|
+
BlurredBackground: typeof StyledVdtBlurredBackground;
|
|
16
|
+
ImageBox: typeof StyledMuiBoxImage;
|
|
17
|
+
};
|
|
18
|
+
export interface ItemPosterProps extends WithOverrideProps<typeof defaultComponents> {
|
|
19
|
+
/**
|
|
20
|
+
* The ItemType to display as a list item
|
|
21
|
+
*/
|
|
22
|
+
itemType?: ItemType;
|
|
23
|
+
/**
|
|
24
|
+
* The index of the poster
|
|
25
|
+
*/
|
|
26
|
+
posterIndex?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Cover the whole width/height of container
|
|
29
|
+
*/
|
|
30
|
+
backgroundSize?: 'cover' | 'contain' | 'auto' | React.CSSProperties['backgroundSize'];
|
|
31
|
+
/**
|
|
32
|
+
* Whether to show a blurred background behind the thumbnail or not
|
|
33
|
+
*/
|
|
34
|
+
showBlurredBackground?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* A function that handles the poster being clicked
|
|
37
|
+
*/
|
|
38
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>, payload: {
|
|
39
|
+
itemType: ItemType;
|
|
40
|
+
posterIndex: number;
|
|
41
|
+
}) => void;
|
|
42
|
+
}
|
|
43
|
+
declare const ItemPoster: React.FC<ItemPosterProps>;
|
|
44
|
+
export default ItemPoster;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { styled as n } from "@mui/material/styles";
|
|
5
|
-
import b from "@vidispine/proptypes";
|
|
1
|
+
import { jsxs as k, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import p from "@mui/material/Box";
|
|
3
|
+
import { styled as e } from "@mui/material/styles";
|
|
6
4
|
import "../../general/AvatarMenu/index.js";
|
|
7
|
-
import
|
|
5
|
+
import x from "../../general/BlurredBackground/index.js";
|
|
8
6
|
import "../../general/CalendarPicker/index.js";
|
|
9
7
|
import "../../general/CompactBadge/index.js";
|
|
10
8
|
import "../../general/CompactLabel/index.js";
|
|
@@ -16,26 +14,27 @@ import "../../general/MenuItem/index.js";
|
|
|
16
14
|
import "../../general/ScrubLine/index.js";
|
|
17
15
|
import "../../general/Sort/index.js";
|
|
18
16
|
import "../../general/TablePagination/index.js";
|
|
17
|
+
import "../../general/Form/index.js";
|
|
19
18
|
import "../../general/ThemeContext/ThemeContext.js";
|
|
20
|
-
const
|
|
21
|
-
onClick:
|
|
19
|
+
const f = e(p)(({
|
|
20
|
+
onClick: o
|
|
22
21
|
}) => ({
|
|
23
22
|
height: "100%",
|
|
24
23
|
width: "100%",
|
|
25
24
|
position: "relative",
|
|
26
|
-
...
|
|
25
|
+
...o && {
|
|
27
26
|
cursor: "pointer"
|
|
28
27
|
}
|
|
29
|
-
})), v =
|
|
28
|
+
})), v = e(x)(() => ({
|
|
30
29
|
height: "100%",
|
|
31
30
|
width: "100%",
|
|
32
31
|
position: "absolute",
|
|
33
32
|
zIndex: 0,
|
|
34
33
|
top: 0
|
|
35
|
-
})),
|
|
36
|
-
shouldForwardProp: (
|
|
34
|
+
})), b = e(p, {
|
|
35
|
+
shouldForwardProp: (o) => !["image", "backgroundSize"].includes(o)
|
|
37
36
|
})(({
|
|
38
|
-
image:
|
|
37
|
+
image: o,
|
|
39
38
|
backgroundSize: t
|
|
40
39
|
}) => ({
|
|
41
40
|
height: "inherit",
|
|
@@ -43,90 +42,50 @@ const I = n(a)(({
|
|
|
43
42
|
position: "relative",
|
|
44
43
|
zIndex: 5,
|
|
45
44
|
transition: "all .3s ease-in",
|
|
46
|
-
background:
|
|
45
|
+
background: o ? `url(${o})` : "none",
|
|
47
46
|
backgroundPosition: "center",
|
|
48
47
|
backgroundRepeat: "no-repeat",
|
|
49
48
|
backgroundSize: t
|
|
50
|
-
})),
|
|
51
|
-
Root:
|
|
49
|
+
})), y = {
|
|
50
|
+
Root: f,
|
|
52
51
|
BlurredBackground: v,
|
|
53
|
-
ImageBox:
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
itemType: e,
|
|
52
|
+
ImageBox: b
|
|
53
|
+
}, I = ({
|
|
54
|
+
itemType: o,
|
|
57
55
|
posterIndex: t,
|
|
58
|
-
showBlurredBackground:
|
|
59
|
-
backgroundSize:
|
|
60
|
-
onClick:
|
|
61
|
-
components:
|
|
56
|
+
showBlurredBackground: c,
|
|
57
|
+
backgroundSize: u,
|
|
58
|
+
onClick: n,
|
|
59
|
+
components: l,
|
|
62
60
|
componentsProps: r
|
|
63
|
-
}) {
|
|
64
|
-
var
|
|
61
|
+
}) => {
|
|
62
|
+
var a;
|
|
65
63
|
const {
|
|
66
|
-
Root:
|
|
67
|
-
BlurredBackground:
|
|
68
|
-
ImageBox:
|
|
69
|
-
} =
|
|
64
|
+
Root: s,
|
|
65
|
+
BlurredBackground: g,
|
|
66
|
+
ImageBox: h
|
|
67
|
+
} = l, {
|
|
70
68
|
posters: i
|
|
71
|
-
} =
|
|
72
|
-
return /* @__PURE__ */
|
|
73
|
-
|
|
74
|
-
itemType:
|
|
69
|
+
} = o || {}, d = (a = i == null ? void 0 : i.uri) == null ? void 0 : a[t];
|
|
70
|
+
return /* @__PURE__ */ k(s, { onClick: typeof n != "function" ? void 0 : (B) => {
|
|
71
|
+
n(B, {
|
|
72
|
+
itemType: o,
|
|
75
73
|
posterIndex: t
|
|
76
74
|
});
|
|
77
75
|
}, ...r.root, children: [
|
|
78
|
-
|
|
79
|
-
/* @__PURE__ */
|
|
76
|
+
c && /* @__PURE__ */ m(g, { image: d, ...r.blurredBackground }),
|
|
77
|
+
/* @__PURE__ */ m(h, { component: "div", image: d, backgroundSize: u, ...r.imageBox })
|
|
80
78
|
] });
|
|
81
|
-
}
|
|
82
|
-
s.propTypes = {
|
|
83
|
-
/**
|
|
84
|
-
* The ItemType to display as a list item
|
|
85
|
-
*/
|
|
86
|
-
itemType: b.ItemType,
|
|
87
|
-
/**
|
|
88
|
-
* The index of the poster
|
|
89
|
-
*/
|
|
90
|
-
posterIndex: o.number,
|
|
91
|
-
/**
|
|
92
|
-
* Cover the whole width/height of container
|
|
93
|
-
*/
|
|
94
|
-
backgroundSize: o.string,
|
|
95
|
-
/**
|
|
96
|
-
* Whether to show a blurred background behind the thumbnail or not
|
|
97
|
-
*/
|
|
98
|
-
showBlurredBackground: o.bool,
|
|
99
|
-
/**
|
|
100
|
-
* A function that handles the poster being clicked
|
|
101
|
-
*/
|
|
102
|
-
onClick: o.func,
|
|
103
|
-
// Overrides
|
|
104
|
-
/**
|
|
105
|
-
* Replace internal components
|
|
106
|
-
*/
|
|
107
|
-
components: o.shape({
|
|
108
|
-
Root: o.elementType,
|
|
109
|
-
BlurredBackground: o.elementType,
|
|
110
|
-
ImageBox: o.elementType
|
|
111
|
-
}),
|
|
112
|
-
/**
|
|
113
|
-
* Add internal component props
|
|
114
|
-
*/
|
|
115
|
-
componentsProps: o.shape({
|
|
116
|
-
root: o.instanceOf(Object),
|
|
117
|
-
blurredBackground: o.instanceOf(Object),
|
|
118
|
-
imageBox: o.instanceOf(Object)
|
|
119
|
-
})
|
|
120
79
|
};
|
|
121
|
-
|
|
80
|
+
I.defaultProps = {
|
|
122
81
|
itemType: void 0,
|
|
123
82
|
posterIndex: 0,
|
|
124
83
|
showBlurredBackground: !1,
|
|
125
84
|
backgroundSize: "cover",
|
|
126
85
|
onClick: void 0,
|
|
127
|
-
components:
|
|
86
|
+
components: y,
|
|
128
87
|
componentsProps: void 0
|
|
129
88
|
};
|
|
130
89
|
export {
|
|
131
|
-
|
|
90
|
+
I as default
|
|
132
91
|
};
|