@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
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { List as MuiList, ListSubheader as MuiListSubheader } from '@mui/material';
|
|
3
|
+
import type { CollectionListType, CollectionType } from '@vidispine/types';
|
|
4
|
+
import VdtCollectionListItem from '../CollectionListItem';
|
|
5
|
+
import type { PropsFrom, WithOverrideProps } from '../../_types';
|
|
6
|
+
declare const StyledMuiList: typeof MuiList;
|
|
7
|
+
declare const defaultComponents: {
|
|
8
|
+
Root: typeof StyledMuiList;
|
|
9
|
+
ListSubheader: typeof MuiListSubheader;
|
|
10
|
+
ListItem: typeof VdtCollectionListItem;
|
|
11
|
+
};
|
|
12
|
+
export interface CollectionListProps extends WithOverrideProps<typeof defaultComponents> {
|
|
13
|
+
/**
|
|
14
|
+
* The `CollectionListType` to show in the list
|
|
15
|
+
*/
|
|
16
|
+
collectionListType?: CollectionListType;
|
|
17
|
+
/**
|
|
18
|
+
* Add a list header
|
|
19
|
+
*/
|
|
20
|
+
header?: string;
|
|
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 collectionType as argument
|
|
26
|
+
*/
|
|
27
|
+
primary?: string | (({ collectionType }: {
|
|
28
|
+
collectionType: CollectionType;
|
|
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 collectionType as argument
|
|
35
|
+
*
|
|
36
|
+
* Defaults to undefined
|
|
37
|
+
*/
|
|
38
|
+
secondary?: string | (({ collectionType }: {
|
|
39
|
+
collectionType: CollectionType;
|
|
40
|
+
}) => string);
|
|
41
|
+
/**
|
|
42
|
+
* Variant/shapes for the list item avatars
|
|
43
|
+
*/
|
|
44
|
+
avatarVariant?: 'circular' | 'rounded' | 'square';
|
|
45
|
+
/**
|
|
46
|
+
* If list should be displayed as dense
|
|
47
|
+
*/
|
|
48
|
+
dense?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Show skeleton list items as loading state
|
|
51
|
+
*/
|
|
52
|
+
isLoading?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* amount of list items to show when loading
|
|
55
|
+
*/
|
|
56
|
+
amountLoading?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Callback for ListItem click event
|
|
59
|
+
*
|
|
60
|
+
* Set to `undefined` to disable
|
|
61
|
+
*/
|
|
62
|
+
onListItemClick?: PropsFrom<typeof VdtCollectionListItem>['onClick'];
|
|
63
|
+
/**
|
|
64
|
+
* Callback for ListItem delete event
|
|
65
|
+
*
|
|
66
|
+
* Set to `undefined` to disable
|
|
67
|
+
*/
|
|
68
|
+
onListItemDelete?: PropsFrom<typeof VdtCollectionListItem>['onDelete'];
|
|
69
|
+
/**
|
|
70
|
+
* Shown when list is empty
|
|
71
|
+
*/
|
|
72
|
+
emptySlot?: () => JSX.Element;
|
|
73
|
+
}
|
|
74
|
+
declare const CollectionList: React.FC<CollectionListProps>;
|
|
75
|
+
export default CollectionList;
|
|
@@ -1,148 +1,63 @@
|
|
|
1
|
-
import { jsxs as a, jsx as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
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 C } from "react";
|
|
3
|
+
import b from "@mui/material/List";
|
|
4
|
+
import x 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 collections found..." });
|
|
15
|
-
}
|
|
16
|
-
const w = D(j)(() => ({
|
|
9
|
+
import { showSlot as D } from "../../_utils/showSlot.js";
|
|
10
|
+
import R from "../CollectionListItem/index.js";
|
|
11
|
+
const q = () => /* @__PURE__ */ m(j, { children: "No collections found..." }), A = w(b)(() => ({
|
|
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: x,
|
|
17
|
+
ListItem: R
|
|
18
|
+
}, F = ({
|
|
25
19
|
collectionListType: t,
|
|
26
|
-
header:
|
|
27
|
-
primary:
|
|
28
|
-
secondary:
|
|
29
|
-
avatarVariant:
|
|
30
|
-
dense:
|
|
20
|
+
header: n,
|
|
21
|
+
primary: l,
|
|
22
|
+
secondary: p,
|
|
23
|
+
avatarVariant: u,
|
|
24
|
+
dense: f,
|
|
31
25
|
amountLoading: h,
|
|
32
|
-
isLoading:
|
|
33
|
-
onListItemClick:
|
|
34
|
-
onListItemDelete:
|
|
26
|
+
isLoading: e,
|
|
27
|
+
onListItemClick: c,
|
|
28
|
+
onListItemDelete: y,
|
|
35
29
|
emptySlot: S,
|
|
36
|
-
components:
|
|
37
|
-
componentsProps:
|
|
38
|
-
}) {
|
|
30
|
+
components: L,
|
|
31
|
+
componentsProps: i
|
|
32
|
+
}) => {
|
|
39
33
|
const {
|
|
40
|
-
Root:
|
|
41
|
-
ListSubheader:
|
|
42
|
-
ListItem:
|
|
43
|
-
} =
|
|
44
|
-
key:
|
|
45
|
-
})),
|
|
34
|
+
Root: v,
|
|
35
|
+
ListSubheader: I,
|
|
36
|
+
ListItem: M
|
|
37
|
+
} = L, g = [...Array(Math.max(h, 0)).keys()].map(() => ({
|
|
38
|
+
key: d()
|
|
39
|
+
})), s = C(() => {
|
|
46
40
|
var o;
|
|
47
41
|
return ((o = t == null ? void 0 : t.collection) == null ? void 0 : o.map((r) => ({
|
|
48
|
-
key:
|
|
42
|
+
key: d(),
|
|
49
43
|
collectionType: r
|
|
50
44
|
}))) || [];
|
|
51
45
|
}, [t.collection]);
|
|
52
|
-
return /* @__PURE__ */ a(
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */ a(
|
|
55
|
-
!
|
|
56
|
-
(
|
|
46
|
+
return /* @__PURE__ */ a(v, { dense: f, ...i.root, children: [
|
|
47
|
+
/* @__PURE__ */ m(I, { ...i.listSubheader, children: n }),
|
|
48
|
+
/* @__PURE__ */ a(k, { children: [
|
|
49
|
+
!e && s.length === 0 && D(S),
|
|
50
|
+
(e ? g : s).map(({
|
|
57
51
|
key: o,
|
|
58
52
|
collectionType: r
|
|
59
|
-
}) => /* @__PURE__ */
|
|
53
|
+
}) => /* @__PURE__ */ m(M, { collectionType: r, primary: l, secondary: p, avatarVariant: u, isLoading: e, onClick: c, onDelete: y, ...i.listItem }, o))
|
|
60
54
|
] })
|
|
61
55
|
] });
|
|
62
|
-
}
|
|
63
|
-
d.propTypes = {
|
|
64
|
-
/**
|
|
65
|
-
* The `CollectionListType` to show in the list
|
|
66
|
-
*/
|
|
67
|
-
collectionListType: P.CollectionListType,
|
|
68
|
-
// Shared
|
|
69
|
-
/**
|
|
70
|
-
* Add a list header
|
|
71
|
-
*/
|
|
72
|
-
header: e.string,
|
|
73
|
-
/**
|
|
74
|
-
* Primary text for the list item
|
|
75
|
-
*
|
|
76
|
-
* Set to *field name* the value should be extracted from
|
|
77
|
-
* or set *function* which will get collectionType as argument
|
|
78
|
-
*
|
|
79
|
-
* Defaults to id of entity
|
|
80
|
-
*/
|
|
81
|
-
primary: e.oneOfType([e.string, e.func]),
|
|
82
|
-
/**
|
|
83
|
-
* Secondary text for the list item
|
|
84
|
-
*
|
|
85
|
-
* Set to *field name* the value should be extracted from
|
|
86
|
-
* or set *function* which will get collectionType as argument
|
|
87
|
-
*
|
|
88
|
-
* Defaults to undefined
|
|
89
|
-
*/
|
|
90
|
-
secondary: e.oneOfType([e.string, e.func]),
|
|
91
|
-
/**
|
|
92
|
-
* Variant/shapes for the list item avatars
|
|
93
|
-
*/
|
|
94
|
-
avatarVariant: e.oneOf(["circular", "rounded", "square"]),
|
|
95
|
-
/**
|
|
96
|
-
* If list should be displayed as dense
|
|
97
|
-
*/
|
|
98
|
-
dense: e.bool,
|
|
99
|
-
/**
|
|
100
|
-
* Show skeleton list items as loading state
|
|
101
|
-
*/
|
|
102
|
-
isLoading: e.bool,
|
|
103
|
-
/**
|
|
104
|
-
* amount of list items to show when loading
|
|
105
|
-
*/
|
|
106
|
-
amountLoading: e.number,
|
|
107
|
-
/**
|
|
108
|
-
* Callback for ListItem click event
|
|
109
|
-
*
|
|
110
|
-
* Set to `undefined` to disable
|
|
111
|
-
*/
|
|
112
|
-
onListItemClick: e.func,
|
|
113
|
-
/**
|
|
114
|
-
* Callback for ListItem delete event
|
|
115
|
-
*
|
|
116
|
-
* Set to `undefined` to disable
|
|
117
|
-
*/
|
|
118
|
-
onListItemDelete: e.func,
|
|
119
|
-
// Slots
|
|
120
|
-
/**
|
|
121
|
-
* Shown when list is empty
|
|
122
|
-
*/
|
|
123
|
-
emptySlot: e.oneOfType([e.elementType, e.node]),
|
|
124
|
-
// Overrides
|
|
125
|
-
/**
|
|
126
|
-
* Replace internal components
|
|
127
|
-
*/
|
|
128
|
-
components: e.shape({
|
|
129
|
-
Root: e.elementType,
|
|
130
|
-
ListSubheader: e.elementType,
|
|
131
|
-
ListItem: e.elementType
|
|
132
|
-
}),
|
|
133
|
-
/**
|
|
134
|
-
* Add internal component props
|
|
135
|
-
*/
|
|
136
|
-
componentsProps: e.shape({
|
|
137
|
-
root: e.instanceOf(Object),
|
|
138
|
-
listSubheader: e.instanceOf(Object),
|
|
139
|
-
listItem: e.instanceOf(Object)
|
|
140
|
-
})
|
|
141
56
|
};
|
|
142
|
-
|
|
57
|
+
F.defaultProps = {
|
|
143
58
|
collectionListType: {},
|
|
144
59
|
header: void 0,
|
|
145
|
-
primary:
|
|
60
|
+
primary: "id",
|
|
146
61
|
secondary: void 0,
|
|
147
62
|
avatarVariant: "square",
|
|
148
63
|
dense: !1,
|
|
@@ -151,9 +66,9 @@ d.defaultProps = {
|
|
|
151
66
|
onListItemClick: void 0,
|
|
152
67
|
onListItemDelete: void 0,
|
|
153
68
|
emptySlot: q,
|
|
154
|
-
components:
|
|
69
|
+
components: E,
|
|
155
70
|
componentsProps: void 0
|
|
156
71
|
};
|
|
157
72
|
export {
|
|
158
|
-
|
|
73
|
+
F as default
|
|
159
74
|
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ListItem as MuiListItem } from '@mui/material';
|
|
3
|
+
import type { CollectionType } 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 CollectionListItemProps extends WithOverrideProps<typeof defaultComponents> {
|
|
17
|
+
/**
|
|
18
|
+
* The CollectionType to display as a list item
|
|
19
|
+
*/
|
|
20
|
+
collectionType?: CollectionType;
|
|
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 | (({ collectionType }: {
|
|
28
|
+
collectionType: CollectionType;
|
|
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 | (({ collectionType }: {
|
|
39
|
+
collectionType: CollectionType;
|
|
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
|
+
collectionType?: CollectionType;
|
|
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
|
+
collectionType?: CollectionType;
|
|
64
|
+
}) => void;
|
|
65
|
+
}
|
|
66
|
+
declare const CollectionListItem: React.FC<CollectionListItemProps>;
|
|
67
|
+
export default CollectionListItem;
|
|
@@ -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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
onClick: r,
|
|
23
|
-
onDelete: I,
|
|
24
|
-
components: f,
|
|
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 C = {
|
|
8
|
+
Root: u,
|
|
9
|
+
ListItemButton: A,
|
|
10
|
+
ListItemAvatar: y,
|
|
11
|
+
ListItemText: B,
|
|
12
|
+
ListItemSecondaryAction: x
|
|
13
|
+
}, E = ({
|
|
14
|
+
collectionType: e,
|
|
15
|
+
primary: s,
|
|
16
|
+
secondary: n,
|
|
17
|
+
avatarVariant: I,
|
|
18
|
+
isLoading: t,
|
|
19
|
+
onClick: m,
|
|
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: r,
|
|
29
|
+
ListItemSecondaryAction: f
|
|
30
|
+
} = l;
|
|
31
|
+
return /* @__PURE__ */ a(c, { disablePadding: !t && !!m && !!r, ...i.root, children: [
|
|
32
|
+
/* @__PURE__ */ a(r, { collectionType: e, onClick: m, isLoading: t, ...i.listItemButton, children: [
|
|
33
|
+
/* @__PURE__ */ o(L, { collectionType: e, variant: I, isLoading: t, ...i.listItemAvatar }),
|
|
34
|
+
/* @__PURE__ */ o(v, { collectionType: e, primary: s, secondary: n, isLoading: t, ...i.listItemText })
|
|
38
35
|
] }),
|
|
39
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ o(f, { collectionType: e, onDelete: d, isLoading: t, ...i.listItemSecondaryAction })
|
|
40
37
|
] });
|
|
41
|
-
}
|
|
42
|
-
m.propTypes = {
|
|
43
|
-
/**
|
|
44
|
-
* The CollectionType to display as a list item
|
|
45
|
-
*/
|
|
46
|
-
collectionType: T.CollectionType,
|
|
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
|
+
E.defaultProps = {
|
|
110
40
|
collectionType: 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: C,
|
|
118
48
|
componentsProps: void 0
|
|
119
49
|
};
|
|
120
50
|
export {
|
|
121
|
-
|
|
51
|
+
E as default
|
|
122
52
|
};
|
package/dist/es/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.d.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Box as MuiBox } from '@mui/material';
|
|
3
|
+
import type { CollectionType } from '@vidispine/types';
|
|
4
|
+
import { CornerLabelPlacer as VdtCornerLabelPlacer, ImageCollage as VdtImageCollage, BlurredBackground as VdtBlurredBackground } from '../../general';
|
|
5
|
+
import type { WithOverrideProps } from '../../_types';
|
|
6
|
+
declare const StyledMuiBox: typeof MuiBox;
|
|
7
|
+
declare const StyledVdtBlurredBackground: typeof VdtBlurredBackground;
|
|
8
|
+
declare const StyledVdtImageCollage: typeof VdtImageCollage;
|
|
9
|
+
declare const StyledMuiImageBox: typeof MuiBox;
|
|
10
|
+
declare const StyledVdtCornerLabelPlacer: typeof VdtCornerLabelPlacer;
|
|
11
|
+
declare const defaultComponents: {
|
|
12
|
+
Root: typeof StyledMuiBox;
|
|
13
|
+
BlurredBackground: typeof StyledVdtBlurredBackground;
|
|
14
|
+
ImageCollage: typeof StyledVdtImageCollage;
|
|
15
|
+
ImageBox: typeof StyledMuiImageBox;
|
|
16
|
+
CornerLabelPlacer: typeof StyledVdtCornerLabelPlacer;
|
|
17
|
+
};
|
|
18
|
+
export interface CollectionRepresentativeThumbnailProps extends WithOverrideProps<typeof defaultComponents> {
|
|
19
|
+
/**
|
|
20
|
+
* A VidiCore Collection
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
collectionType?: CollectionType;
|
|
24
|
+
/**
|
|
25
|
+
* Show a blurred background behind the thumbnail
|
|
26
|
+
*/
|
|
27
|
+
showBlurredBackground?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Show multiple or thumbnail combined to one
|
|
30
|
+
*/
|
|
31
|
+
showCombined?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Add a label above thumbnail
|
|
34
|
+
*/
|
|
35
|
+
label?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Add event handler when the thumbnail is clicked
|
|
38
|
+
*
|
|
39
|
+
* Set `undefined` to disable
|
|
40
|
+
*/
|
|
41
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>, payload: {
|
|
42
|
+
collectionType: CollectionType;
|
|
43
|
+
}) => void;
|
|
44
|
+
}
|
|
45
|
+
declare const CollectionRepresentativeThumbnail: React.FC<CollectionRepresentativeThumbnailProps>;
|
|
46
|
+
export default CollectionRepresentativeThumbnail;
|