@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,36 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ImageList as MuiImageList, ImageListItem as MuiImageListItem } from '@mui/material';
|
|
3
|
+
import type { ItemType } from '@vidispine/types';
|
|
4
|
+
import VdtItemPoster from '../ItemPoster';
|
|
5
|
+
import type { WithOverrideProps } from '../../_types';
|
|
6
|
+
declare const StyledMuiImageList: typeof MuiImageList;
|
|
7
|
+
declare const StyledMuiImageListItem: typeof MuiImageListItem;
|
|
8
|
+
declare const StyledVdtItemPoster: typeof VdtItemPoster;
|
|
9
|
+
declare const defaultComponents: {
|
|
10
|
+
Root: typeof StyledMuiImageList;
|
|
11
|
+
ImageListItem: typeof StyledMuiImageListItem;
|
|
12
|
+
ItemPoster: typeof StyledVdtItemPoster;
|
|
13
|
+
};
|
|
14
|
+
export interface ItemPosterListProps extends WithOverrideProps<typeof defaultComponents> {
|
|
15
|
+
/**
|
|
16
|
+
* The ItemType to display as a list item
|
|
17
|
+
*/
|
|
18
|
+
itemType?: ItemType;
|
|
19
|
+
/**
|
|
20
|
+
* Number of columns.
|
|
21
|
+
*/
|
|
22
|
+
cols?: number;
|
|
23
|
+
/**
|
|
24
|
+
* The gap between items in px.
|
|
25
|
+
*/
|
|
26
|
+
gap?: number;
|
|
27
|
+
/**
|
|
28
|
+
* A function that handles a poster being clicked
|
|
29
|
+
*/
|
|
30
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>, payload: {
|
|
31
|
+
itemType: ItemType;
|
|
32
|
+
posterIndex: number;
|
|
33
|
+
}) => void;
|
|
34
|
+
}
|
|
35
|
+
declare const ItemPosterList: React.FC<ItemPosterListProps>;
|
|
36
|
+
export default ItemPosterList;
|
|
@@ -1,99 +1,47 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const O = m(L)({
|
|
2
|
+
import u from "@mui/material/ImageList";
|
|
3
|
+
import g from "@mui/material/ImageListItem";
|
|
4
|
+
import { styled as e } from "@mui/material/styles";
|
|
5
|
+
import f from "../ItemPoster/index.js";
|
|
6
|
+
const L = e(u)({
|
|
7
|
+
height: "100%",
|
|
9
8
|
width: "100%",
|
|
10
9
|
margin: "auto"
|
|
11
|
-
}),
|
|
10
|
+
}), h = e(g)({
|
|
12
11
|
cursor: "default"
|
|
13
|
-
}),
|
|
12
|
+
}), y = e(f)({
|
|
14
13
|
objectFit: "cover"
|
|
15
|
-
}),
|
|
16
|
-
Root:
|
|
17
|
-
ImageListItem:
|
|
18
|
-
ItemPoster:
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
components: d,
|
|
28
|
-
componentsProps: e
|
|
29
|
-
}) {
|
|
14
|
+
}), P = {
|
|
15
|
+
Root: L,
|
|
16
|
+
ImageListItem: h,
|
|
17
|
+
ItemPoster: y
|
|
18
|
+
}, v = ({
|
|
19
|
+
itemType: i,
|
|
20
|
+
cols: m,
|
|
21
|
+
gap: s,
|
|
22
|
+
onClick: r,
|
|
23
|
+
components: a,
|
|
24
|
+
componentsProps: t
|
|
25
|
+
}) => {
|
|
30
26
|
const {
|
|
31
|
-
Root:
|
|
32
|
-
ImageListItem:
|
|
33
|
-
ItemPoster:
|
|
34
|
-
} =
|
|
27
|
+
Root: d,
|
|
28
|
+
ImageListItem: n,
|
|
29
|
+
ItemPoster: I
|
|
30
|
+
} = a, {
|
|
35
31
|
posters: {
|
|
36
|
-
uri:
|
|
32
|
+
uri: c = []
|
|
37
33
|
} = {}
|
|
38
|
-
} =
|
|
39
|
-
return /* @__PURE__ */ o(
|
|
40
|
-
}
|
|
41
|
-
i.propTypes = {
|
|
42
|
-
/**
|
|
43
|
-
* The ItemType to display as a list item
|
|
44
|
-
*/
|
|
45
|
-
itemType: h.ItemType,
|
|
46
|
-
/**
|
|
47
|
-
* Number of columns.
|
|
48
|
-
*/
|
|
49
|
-
cols: t.number,
|
|
50
|
-
/**
|
|
51
|
-
* The gap between items in px.
|
|
52
|
-
*/
|
|
53
|
-
gap: t.number,
|
|
54
|
-
/**
|
|
55
|
-
* Set row height
|
|
56
|
-
*
|
|
57
|
-
* _Note: Mui's ImageList only support pixels or 'auto'_
|
|
58
|
-
*/
|
|
59
|
-
rowHeight: t.string,
|
|
60
|
-
/**
|
|
61
|
-
* The variant to use.
|
|
62
|
-
*/
|
|
63
|
-
variant: t.oneOf(["masonry", "standard"]),
|
|
64
|
-
// Callbacks
|
|
65
|
-
/**
|
|
66
|
-
* A function that handles a poster being clicked
|
|
67
|
-
*/
|
|
68
|
-
onClick: t.func,
|
|
69
|
-
// Overrides
|
|
70
|
-
/**
|
|
71
|
-
* Replace internal components
|
|
72
|
-
*/
|
|
73
|
-
components: t.shape({
|
|
74
|
-
Root: t.elementType,
|
|
75
|
-
ImageListItem: t.elementType,
|
|
76
|
-
ItemPoster: t.elementType
|
|
77
|
-
}),
|
|
78
|
-
/**
|
|
79
|
-
* Add internal component props
|
|
80
|
-
*/
|
|
81
|
-
componentsProps: t.shape({
|
|
82
|
-
root: t.instanceOf(Object),
|
|
83
|
-
imageListItem: t.instanceOf(Object),
|
|
84
|
-
itemPoster: t.instanceOf(Object)
|
|
85
|
-
})
|
|
34
|
+
} = i || {};
|
|
35
|
+
return /* @__PURE__ */ o(d, { cols: m, gap: s, rowHeight: "auto", ...t.root, children: c.map((l, p) => /* @__PURE__ */ o(n, { ...t.imageListItem, children: /* @__PURE__ */ o(I, { itemType: i, posterIndex: p, onClick: r, ...t.itemPoster }) }, l)) });
|
|
86
36
|
};
|
|
87
|
-
|
|
37
|
+
v.defaultProps = {
|
|
88
38
|
itemType: void 0,
|
|
89
39
|
cols: 2,
|
|
90
40
|
gap: 4,
|
|
91
|
-
rowHeight: "auto",
|
|
92
|
-
variant: "standard",
|
|
93
41
|
onClick: void 0,
|
|
94
|
-
components:
|
|
42
|
+
components: P,
|
|
95
43
|
componentsProps: void 0
|
|
96
44
|
};
|
|
97
45
|
export {
|
|
98
|
-
|
|
46
|
+
v as default
|
|
99
47
|
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Paper as MuiPaper, Box as MuiBox } from '@mui/material';
|
|
3
|
+
import type { ItemType } from '@vidispine/types';
|
|
4
|
+
import { BlurredBackground as VdtBlurredBackground } from '../../general';
|
|
5
|
+
import VdtToolbar from './components/Toolbar';
|
|
6
|
+
import type { StyledComponent, WithOverrideProps } from '../../_types';
|
|
7
|
+
type StyledMuiPaperType = StyledComponent<typeof MuiPaper, {
|
|
8
|
+
toolbarOnBottom?: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
declare const StyledMuiPaper: StyledMuiPaperType;
|
|
11
|
+
declare const StyledVdtToolbar: typeof VdtToolbar;
|
|
12
|
+
type StyledVdtBlurredBackgroundType = StyledComponent<typeof VdtBlurredBackground, {
|
|
13
|
+
toolbarOnBottom?: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
declare const StyledVdtBlurredBackground: StyledVdtBlurredBackgroundType;
|
|
16
|
+
type StyledMuiBoxImageType = StyledComponent<typeof MuiBox, {
|
|
17
|
+
image?: string;
|
|
18
|
+
backgroundSize?: React.CSSProperties['backgroundSize'];
|
|
19
|
+
}>;
|
|
20
|
+
declare const StyledMuiBoxImage: StyledMuiBoxImageType;
|
|
21
|
+
declare const defaultComponents: {
|
|
22
|
+
Root: typeof StyledMuiPaper;
|
|
23
|
+
Toolbar: typeof StyledVdtToolbar;
|
|
24
|
+
BlurredBackground: typeof StyledVdtBlurredBackground;
|
|
25
|
+
ImageBox: typeof StyledMuiBoxImage;
|
|
26
|
+
};
|
|
27
|
+
export interface ItemPosterViewerProps extends WithOverrideProps<typeof defaultComponents> {
|
|
28
|
+
/**
|
|
29
|
+
* The ItemType to display as a list item
|
|
30
|
+
*/
|
|
31
|
+
itemType?: ItemType;
|
|
32
|
+
/**
|
|
33
|
+
* The index of the current poster
|
|
34
|
+
*/
|
|
35
|
+
index?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Whether to show a blurred background behind the thumbnail or not
|
|
38
|
+
*/
|
|
39
|
+
showBlurredBackground?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Set perspective of the poster image
|
|
42
|
+
*/
|
|
43
|
+
backgroundSize?: 'auto' | 'contain' | 'cover' | React.CSSProperties['backgroundSize'];
|
|
44
|
+
/**
|
|
45
|
+
* Whether to put the toolbar on the bottom or not
|
|
46
|
+
*/
|
|
47
|
+
toolbarOnBottom?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* A function that handles clicking the previous button
|
|
50
|
+
*/
|
|
51
|
+
onPrevious?: (e: React.KeyboardEvent<HTMLDivElement> | React.MouseEvent<HTMLButtonElement>, index: number) => void;
|
|
52
|
+
/**
|
|
53
|
+
* A function that handles clicking the next button
|
|
54
|
+
*/
|
|
55
|
+
onNext?: (e: React.KeyboardEvent<HTMLDivElement> | React.MouseEvent<HTMLButtonElement>, index: number) => void;
|
|
56
|
+
/**
|
|
57
|
+
* A function that handles clicking the close button
|
|
58
|
+
*/
|
|
59
|
+
onClose?: React.MouseEventHandler<HTMLButtonElement>;
|
|
60
|
+
/**
|
|
61
|
+
* A function that handles clicking the download button
|
|
62
|
+
*/
|
|
63
|
+
onDownload?: (event: any, payload: {
|
|
64
|
+
url: string;
|
|
65
|
+
itemType: ItemType;
|
|
66
|
+
}) => void;
|
|
67
|
+
}
|
|
68
|
+
declare const ItemPosterViewer: React.FC<ItemPosterViewerProps>;
|
|
69
|
+
export default ItemPosterViewer;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import C from "@mui/material/Box";
|
|
1
|
+
import { jsxs as V, jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as E, useState as B, useCallback as F, useEffect as L } from "react";
|
|
3
|
+
import j from "@mui/material/Paper";
|
|
4
|
+
import N from "@mui/material/Box";
|
|
6
5
|
import { styled as l } from "@mui/material/styles";
|
|
7
|
-
import V from "@vidispine/proptypes";
|
|
8
6
|
import "../../general/AvatarMenu/index.js";
|
|
9
|
-
import
|
|
7
|
+
import O from "../../general/BlurredBackground/index.js";
|
|
10
8
|
import "../../general/CalendarPicker/index.js";
|
|
11
9
|
import "../../general/CompactBadge/index.js";
|
|
12
10
|
import "../../general/CompactLabel/index.js";
|
|
@@ -18,173 +16,124 @@ import "../../general/MenuItem/index.js";
|
|
|
18
16
|
import "../../general/ScrubLine/index.js";
|
|
19
17
|
import "../../general/Sort/index.js";
|
|
20
18
|
import "../../general/TablePagination/index.js";
|
|
19
|
+
import "../../general/Form/index.js";
|
|
21
20
|
import "../../general/ThemeContext/ThemeContext.js";
|
|
22
|
-
import
|
|
23
|
-
const
|
|
24
|
-
shouldForwardProp: (
|
|
21
|
+
import H from "./components/Toolbar.js";
|
|
22
|
+
const W = l(j, {
|
|
23
|
+
shouldForwardProp: (o) => o !== "toolbarOnBottom"
|
|
25
24
|
})(({
|
|
26
|
-
toolbarOnBottom:
|
|
25
|
+
toolbarOnBottom: o
|
|
27
26
|
}) => ({
|
|
28
27
|
display: "grid",
|
|
29
|
-
gridTemplateAreas:
|
|
30
|
-
gridTemplateRows:
|
|
28
|
+
gridTemplateAreas: o ? '"poster" "toolbar"' : '"toolbar" "poster"',
|
|
29
|
+
gridTemplateRows: o ? "auto min-content" : "min-content auto",
|
|
31
30
|
maxWidth: "100%",
|
|
32
31
|
width: "100%",
|
|
33
32
|
height: "100%",
|
|
34
33
|
position: "relative"
|
|
35
|
-
})),
|
|
34
|
+
})), $ = l(H)({
|
|
36
35
|
gridArea: "toolbar",
|
|
37
36
|
maxHeight: "48px",
|
|
38
37
|
zIndex: 25,
|
|
39
38
|
"&:focus-visible": {
|
|
40
39
|
outline: "none"
|
|
41
40
|
}
|
|
42
|
-
}),
|
|
43
|
-
shouldForwardProp: (
|
|
41
|
+
}), q = l(O, {
|
|
42
|
+
shouldForwardProp: (o) => o !== "toolbarOnBottom"
|
|
44
43
|
})(({
|
|
45
|
-
toolbarOnBottom:
|
|
44
|
+
toolbarOnBottom: o
|
|
46
45
|
}) => ({
|
|
46
|
+
transition: "all .6s ease-in-out",
|
|
47
47
|
height: "calc(100% - 48px)",
|
|
48
48
|
width: "100%",
|
|
49
49
|
position: "absolute",
|
|
50
50
|
zIndex: 0,
|
|
51
|
-
...
|
|
51
|
+
...o ? {
|
|
52
52
|
top: 0
|
|
53
53
|
} : {
|
|
54
54
|
bottom: 0
|
|
55
55
|
}
|
|
56
|
-
})),
|
|
57
|
-
shouldForwardProp: (
|
|
56
|
+
})), G = l(N, {
|
|
57
|
+
shouldForwardProp: (o) => !["image", "backgroundSize"].includes(o)
|
|
58
58
|
})(({
|
|
59
|
-
image:
|
|
60
|
-
backgroundSize:
|
|
59
|
+
image: o,
|
|
60
|
+
backgroundSize: i
|
|
61
61
|
}) => ({
|
|
62
62
|
height: "inherit",
|
|
63
63
|
width: "inherit",
|
|
64
64
|
position: "relative",
|
|
65
65
|
zIndex: 5,
|
|
66
66
|
transition: "all .3s ease-in-out",
|
|
67
|
-
background:
|
|
67
|
+
background: o ? `url(${o})` : "none",
|
|
68
68
|
backgroundPosition: "center",
|
|
69
69
|
backgroundRepeat: "no-repeat",
|
|
70
|
-
backgroundSize:
|
|
70
|
+
backgroundSize: i,
|
|
71
71
|
"&:focus-visible": {
|
|
72
72
|
outline: "none"
|
|
73
73
|
}
|
|
74
|
-
})),
|
|
75
|
-
Root:
|
|
76
|
-
Toolbar:
|
|
77
|
-
BlurredBackground:
|
|
78
|
-
ImageBox:
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
onPrevious:
|
|
86
|
-
onNext:
|
|
87
|
-
onClose:
|
|
88
|
-
onDownload:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}) {
|
|
74
|
+
})), J = {
|
|
75
|
+
Root: W,
|
|
76
|
+
Toolbar: $,
|
|
77
|
+
BlurredBackground: q,
|
|
78
|
+
ImageBox: G
|
|
79
|
+
}, Q = ({
|
|
80
|
+
itemType: o,
|
|
81
|
+
index: i,
|
|
82
|
+
showBlurredBackground: s,
|
|
83
|
+
backgroundSize: k,
|
|
84
|
+
toolbarOnBottom: f,
|
|
85
|
+
onPrevious: h,
|
|
86
|
+
onNext: x,
|
|
87
|
+
onClose: y,
|
|
88
|
+
onDownload: P,
|
|
89
|
+
components: S,
|
|
90
|
+
componentsProps: a
|
|
91
|
+
}) => {
|
|
93
92
|
const {
|
|
94
|
-
Root:
|
|
95
|
-
Toolbar:
|
|
96
|
-
BlurredBackground:
|
|
97
|
-
ImageBox:
|
|
98
|
-
} =
|
|
93
|
+
Root: R,
|
|
94
|
+
Toolbar: z,
|
|
95
|
+
BlurredBackground: D,
|
|
96
|
+
ImageBox: T
|
|
97
|
+
} = S, {
|
|
99
98
|
posters: {
|
|
100
99
|
uri: n = []
|
|
101
100
|
} = {}
|
|
102
|
-
} =
|
|
103
|
-
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
},
|
|
107
|
-
t.stopPropagation(), t.code === "ArrowRight" &&
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
101
|
+
} = o || {}, m = i !== void 0, c = E(0), [C, b] = B(0), d = m ? i : C, e = n[d], [A, K] = B(e), v = (t) => {
|
|
102
|
+
m || b((r) => r > 0 ? r - 1 : n.length - 1), h && h(t, d > 0 ? d - 1 : n.length - 1);
|
|
103
|
+
}, I = (t) => {
|
|
104
|
+
m || b((r) => (r + 1) % n.length), x && x(t, (d + 1) % n.length);
|
|
105
|
+
}, u = (t) => {
|
|
106
|
+
t.stopPropagation(), t.code === "ArrowRight" && I(t), t.code === "ArrowLeft" && v(t);
|
|
107
|
+
}, w = F((t) => {
|
|
108
|
+
const r = (M, U) => () => {
|
|
109
|
+
c.current === U && K(e), M.remove();
|
|
110
|
+
}, p = document.createElement("img");
|
|
111
|
+
p.src = t, c.current += 1, p.addEventListener("load", r(p, c.current));
|
|
112
|
+
}, [e]);
|
|
113
|
+
return L(() => {
|
|
114
|
+
s && w(e);
|
|
115
|
+
}, [e, s, w]), /* @__PURE__ */ V(R, { toolbarOnBottom: f, onKeyDown: u, ...a.root, children: [
|
|
116
|
+
/* @__PURE__ */ g(z, { onPrevious: v, onNext: I, onClose: y, onDownload: (t) => P(t, {
|
|
117
|
+
url: e,
|
|
118
|
+
itemType: o
|
|
119
|
+
}), tabIndex: -1, onKeyDown: u, ...a.toolbar }),
|
|
120
|
+
s && /* @__PURE__ */ g(D, { image: A, toolbarOnBottom: f, ...a.blurredBackground }),
|
|
121
|
+
/* @__PURE__ */ g(T, { component: "div", image: e, backgroundSize: k, tabIndex: -1, onKeyDown: u, ...a.imageBox })
|
|
116
122
|
] });
|
|
117
|
-
}
|
|
118
|
-
B.propTypes = {
|
|
119
|
-
/**
|
|
120
|
-
* The ItemType to display as a list item
|
|
121
|
-
*/
|
|
122
|
-
itemType: V.ItemType,
|
|
123
|
-
/**
|
|
124
|
-
* The index of the current poster
|
|
125
|
-
*/
|
|
126
|
-
index: o.number,
|
|
127
|
-
/**
|
|
128
|
-
* Whether to show a blurred background behind the thumbnail or not
|
|
129
|
-
*/
|
|
130
|
-
showBlurredBackground: o.bool,
|
|
131
|
-
/**
|
|
132
|
-
* Set perspective of the poster image
|
|
133
|
-
*/
|
|
134
|
-
backgroundSize: o.oneOf(["auto", "contain", "cover"]),
|
|
135
|
-
/**
|
|
136
|
-
* A function that handles clicking the previous button
|
|
137
|
-
*/
|
|
138
|
-
onPrevious: o.func,
|
|
139
|
-
/**
|
|
140
|
-
* A function that handles clicking the next button
|
|
141
|
-
*/
|
|
142
|
-
onNext: o.func,
|
|
143
|
-
/**
|
|
144
|
-
* A function that handles clicking the close button
|
|
145
|
-
*/
|
|
146
|
-
onClose: o.func,
|
|
147
|
-
/**
|
|
148
|
-
* A function that handles clicking the download button
|
|
149
|
-
*/
|
|
150
|
-
onDownload: o.func,
|
|
151
|
-
/**
|
|
152
|
-
* Whether to put the toolbar on the bottom or not
|
|
153
|
-
*/
|
|
154
|
-
toolbarOnBottom: o.bool,
|
|
155
|
-
// Overrides
|
|
156
|
-
/**
|
|
157
|
-
* Replace internal components
|
|
158
|
-
*/
|
|
159
|
-
components: o.shape({
|
|
160
|
-
Root: o.elementType,
|
|
161
|
-
Toolbar: o.elementType,
|
|
162
|
-
BlurredBackground: o.elementType,
|
|
163
|
-
ImageBox: o.elementType
|
|
164
|
-
}),
|
|
165
|
-
/**
|
|
166
|
-
* Add internal component props
|
|
167
|
-
*/
|
|
168
|
-
componentsProps: o.shape({
|
|
169
|
-
root: o.instanceOf(Object),
|
|
170
|
-
toolbar: o.instanceOf(Object),
|
|
171
|
-
blurredBackground: o.instanceOf(Object),
|
|
172
|
-
imageBox: o.instanceOf(Object)
|
|
173
|
-
})
|
|
174
123
|
};
|
|
175
|
-
|
|
124
|
+
Q.defaultProps = {
|
|
176
125
|
itemType: void 0,
|
|
177
126
|
index: void 0,
|
|
178
|
-
showBlurredBackground: !
|
|
127
|
+
showBlurredBackground: !0,
|
|
179
128
|
backgroundSize: "auto",
|
|
180
129
|
onPrevious: void 0,
|
|
181
130
|
onNext: void 0,
|
|
182
131
|
onClose: void 0,
|
|
183
132
|
onDownload: void 0,
|
|
184
133
|
toolbarOnBottom: !1,
|
|
185
|
-
components:
|
|
134
|
+
components: J,
|
|
186
135
|
componentsProps: void 0
|
|
187
136
|
};
|
|
188
137
|
export {
|
|
189
|
-
|
|
138
|
+
Q as default
|
|
190
139
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ToolbarProps as MuiToolbarProps } from '@mui/material';
|
|
3
|
+
export interface VdtToolbarProps extends MuiToolbarProps {
|
|
4
|
+
onPrevious?: React.MouseEventHandler<HTMLButtonElement>;
|
|
5
|
+
onNext?: React.MouseEventHandler<HTMLButtonElement>;
|
|
6
|
+
onClose?: React.MouseEventHandler<HTMLButtonElement>;
|
|
7
|
+
onDownload?: React.MouseEventHandler<HTMLButtonElement>;
|
|
8
|
+
}
|
|
9
|
+
declare const VdtToolbar: React.FC<VdtToolbarProps>;
|
|
10
|
+
export default VdtToolbar;
|
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
import { jsx as o, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
import m from "@mui/icons-material/esm/Close";
|
|
3
|
+
import a from "@mui/icons-material/esm/NavigateBefore";
|
|
4
|
+
import p from "@mui/icons-material/esm/NavigateNext";
|
|
5
|
+
import s from "@mui/icons-material/esm/SaveAlt";
|
|
6
|
+
import f from "@mui/material/Toolbar";
|
|
7
7
|
import n from "@mui/material/Box";
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
onPrevious:
|
|
8
|
+
import e from "@mui/material/IconButton";
|
|
9
|
+
const h = ({
|
|
10
|
+
onPrevious: d,
|
|
11
11
|
onNext: l,
|
|
12
|
-
onClose:
|
|
13
|
-
onDownload:
|
|
14
|
-
...
|
|
15
|
-
}) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
12
|
+
onClose: i,
|
|
13
|
+
onDownload: r,
|
|
14
|
+
...c
|
|
15
|
+
}) => /* @__PURE__ */ o(f, { ...c, children: /* @__PURE__ */ t(n, { display: "flex", justifyContent: "space-between", width: "100%", children: [
|
|
16
|
+
i ? /* @__PURE__ */ o(e, { edge: "start", onClick: i, children: /* @__PURE__ */ o(m, {}) }) : /* @__PURE__ */ o("span", {}),
|
|
17
|
+
/* @__PURE__ */ t(n, { children: [
|
|
18
|
+
/* @__PURE__ */ o(e, { onClick: d, children: /* @__PURE__ */ o(a, {}) }),
|
|
19
|
+
/* @__PURE__ */ o(e, { onClick: l, children: /* @__PURE__ */ o(p, {}) })
|
|
20
|
+
] }),
|
|
21
|
+
r ? /* @__PURE__ */ o(e, { edge: "end", onClick: r, children: /* @__PURE__ */ o(s, {}) }) : /* @__PURE__ */ o("span", {})
|
|
22
|
+
] }) });
|
|
23
|
+
h.defaultProps = {
|
|
24
|
+
onPrevious: void 0,
|
|
25
|
+
onNext: void 0,
|
|
26
|
+
onClose: void 0,
|
|
27
|
+
onDownload: void 0
|
|
28
|
+
};
|
|
25
29
|
export {
|
|
26
|
-
|
|
30
|
+
h as default
|
|
27
31
|
};
|