@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 @@
|
|
|
1
|
+
export declare const showSlot: (slot: (props?: any) => JSX.Element, props?: any) => JSX.Element | ((props?: any) => JSX.Element);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const uuidv4: () => any;
|
package/dist/es/_utils/uuidv4.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
const t = () => (
|
|
2
|
-
//
|
|
3
|
-
(
|
|
4
|
-
|
|
1
|
+
const t = () => (
|
|
2
|
+
// @ts-expect-error (false bitwise number+number[] issue)
|
|
3
|
+
([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, (e) => (
|
|
4
|
+
// eslint-disable-next-line
|
|
5
|
+
(e ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> e / 4).toString(16)
|
|
6
|
+
))
|
|
7
|
+
);
|
|
5
8
|
export {
|
|
6
9
|
t as uuidv4
|
|
7
10
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentType, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
|
|
2
|
+
interface OverridesProps {
|
|
3
|
+
className: string;
|
|
4
|
+
components: any;
|
|
5
|
+
componentsProps: any;
|
|
6
|
+
}
|
|
7
|
+
export declare const withOverrides: (name: string) => <P extends Partial<OverridesProps> = {}>(Component: ComponentType<P>) => ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<any>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CardActionArea as MuiCardActionArea, Collapse as MuiCollapse } from '@mui/material';
|
|
3
|
+
import type { CollectionType } from '@vidispine/types';
|
|
4
|
+
import VdtCardActions from '../../entity/EntityCard/components/EntityCardActions';
|
|
5
|
+
import VdtCard from '../../entity/EntityCard/components/EntityCardBase';
|
|
6
|
+
import VdtCardContent from '../../entity/EntityCard/components/EntityCardContent';
|
|
7
|
+
import VdtCardHeader from '../../entity/EntityCard/components/EntityCardHeader';
|
|
8
|
+
import VdtCardMedia from './components/CollectionCardMedia';
|
|
9
|
+
import type { StyledComponent, WithOverrideProps } from '../../_types';
|
|
10
|
+
type StyledVdtCardType = StyledComponent<typeof VdtCard, {
|
|
11
|
+
horizontal?: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
declare const StyledVdtCard: StyledVdtCardType;
|
|
14
|
+
type StyledVdtCardHeaderType = StyledComponent<typeof VdtCardHeader, {
|
|
15
|
+
horizontal?: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
declare const StyledVdtCardHeader: StyledVdtCardHeaderType;
|
|
18
|
+
type StyledVdtCardMediaType = StyledComponent<typeof VdtCardMedia, {
|
|
19
|
+
horizontal?: boolean;
|
|
20
|
+
mediaPadding?: number;
|
|
21
|
+
mediaSize?: React.CSSProperties['width'];
|
|
22
|
+
}>;
|
|
23
|
+
declare const StyledVdtCardMedia: StyledVdtCardMediaType;
|
|
24
|
+
type StyledVdtCardContentType = StyledComponent<typeof VdtCardContent, {
|
|
25
|
+
horizontal?: boolean;
|
|
26
|
+
}>;
|
|
27
|
+
declare const StyledVdtCardContent: StyledVdtCardContentType;
|
|
28
|
+
declare const StyledVdtCardActions: typeof VdtCardActions;
|
|
29
|
+
declare const StyledMuiCardActionArea: typeof MuiCardActionArea<'button'>;
|
|
30
|
+
declare const StyledMuiCollapse: typeof MuiCollapse;
|
|
31
|
+
declare const defaultComponents: {
|
|
32
|
+
Root: typeof StyledVdtCard;
|
|
33
|
+
CardHeader: typeof StyledVdtCardHeader;
|
|
34
|
+
CardMedia: typeof StyledVdtCardMedia;
|
|
35
|
+
CardContent: typeof StyledVdtCardContent;
|
|
36
|
+
CardContentExpanded: typeof StyledVdtCardContent;
|
|
37
|
+
CardActions: typeof StyledVdtCardActions;
|
|
38
|
+
CardActionArea: typeof StyledMuiCardActionArea;
|
|
39
|
+
Collapse: typeof StyledMuiCollapse;
|
|
40
|
+
};
|
|
41
|
+
type CollectionCardAction = {
|
|
42
|
+
name?: string;
|
|
43
|
+
Icon?: (props?: any) => JSX.Element;
|
|
44
|
+
iconProps?: object;
|
|
45
|
+
};
|
|
46
|
+
type CollectionCardMenuOption = {
|
|
47
|
+
label: string;
|
|
48
|
+
secondaryLabel?: string;
|
|
49
|
+
name?: string;
|
|
50
|
+
icon?: (props: any) => JSX.Element;
|
|
51
|
+
};
|
|
52
|
+
export interface CollectionCardProps extends WithOverrideProps<typeof defaultComponents> {
|
|
53
|
+
/**
|
|
54
|
+
* The Collection to show
|
|
55
|
+
*/
|
|
56
|
+
collectionType?: CollectionType;
|
|
57
|
+
/**
|
|
58
|
+
* Title text for the collection card header
|
|
59
|
+
*
|
|
60
|
+
* Set to *field name* the value should be extracted from
|
|
61
|
+
* or set *function* which will get collectionType as argument
|
|
62
|
+
*/
|
|
63
|
+
title?: string | (({ collectionType }: {
|
|
64
|
+
collectionType: CollectionType;
|
|
65
|
+
}) => string);
|
|
66
|
+
/**
|
|
67
|
+
* Subheader text for the collection card header
|
|
68
|
+
*
|
|
69
|
+
* Set to *field name* the value should be extracted from
|
|
70
|
+
* or set *function* which will get collectionType as argument
|
|
71
|
+
*
|
|
72
|
+
* Defaults to undefined
|
|
73
|
+
*/
|
|
74
|
+
subheader?: string | (({ collectionType }: {
|
|
75
|
+
collectionType: CollectionType;
|
|
76
|
+
}) => string);
|
|
77
|
+
/**
|
|
78
|
+
* Content text for the card body
|
|
79
|
+
*
|
|
80
|
+
* Set to *field name* the value should be extracted from
|
|
81
|
+
* or set *function* which will get collectionType as argument
|
|
82
|
+
*
|
|
83
|
+
* Defaults to undefined
|
|
84
|
+
*/
|
|
85
|
+
content?: string | (({ collectionType }: {
|
|
86
|
+
collectionType: CollectionType;
|
|
87
|
+
}) => string);
|
|
88
|
+
/**
|
|
89
|
+
* Content text for the expanded card body
|
|
90
|
+
*
|
|
91
|
+
* Set to *field name* the value should be extracted from
|
|
92
|
+
* or set *function* which will get collectionType as argument
|
|
93
|
+
*
|
|
94
|
+
* Defaults to undefined which disables the expand functionality
|
|
95
|
+
*/
|
|
96
|
+
expandedContent?: string | (({ collectionType }: {
|
|
97
|
+
collectionType: CollectionType;
|
|
98
|
+
}) => string);
|
|
99
|
+
/**
|
|
100
|
+
* Add padding around media (theme spacing value)
|
|
101
|
+
*/
|
|
102
|
+
mediaPadding?: number;
|
|
103
|
+
/**
|
|
104
|
+
* Set size for the card media
|
|
105
|
+
*
|
|
106
|
+
* `width` if horizontal: true, `height` otherwise
|
|
107
|
+
*/
|
|
108
|
+
mediaSize?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Whether the media card is marked as checked or not
|
|
111
|
+
*/
|
|
112
|
+
checked?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Whether the expanded content is shown or not
|
|
115
|
+
*/
|
|
116
|
+
expanded?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Whether the card should have horizontal or standard layout
|
|
119
|
+
*/
|
|
120
|
+
horizontal?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* A list of options for the card header action
|
|
123
|
+
*/
|
|
124
|
+
menuOptions?: CollectionCardMenuOption[];
|
|
125
|
+
/**
|
|
126
|
+
* The list of actions to show
|
|
127
|
+
*/
|
|
128
|
+
actions?: CollectionCardAction[];
|
|
129
|
+
/**
|
|
130
|
+
* A function that handles the onClick event
|
|
131
|
+
*/
|
|
132
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>, payload: {
|
|
133
|
+
collectionType: CollectionType;
|
|
134
|
+
}) => void;
|
|
135
|
+
/**
|
|
136
|
+
* A function that handles the check box being clicked
|
|
137
|
+
*/
|
|
138
|
+
onCheck?: (event: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
139
|
+
collectionType: CollectionType;
|
|
140
|
+
value: boolean;
|
|
141
|
+
}) => void;
|
|
142
|
+
/**
|
|
143
|
+
* A function that handles the expand button being clicked
|
|
144
|
+
*/
|
|
145
|
+
onExpand?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, payload: {
|
|
146
|
+
collectionType: CollectionType;
|
|
147
|
+
value: boolean;
|
|
148
|
+
}) => void;
|
|
149
|
+
/**
|
|
150
|
+
* Callback for clicking on option which will get the option as argument
|
|
151
|
+
*/
|
|
152
|
+
onOptionClick?: (event: React.MouseEvent<HTMLLIElement, MouseEvent>, payload: {
|
|
153
|
+
option: CollectionCardMenuOption;
|
|
154
|
+
collectionType?: CollectionType;
|
|
155
|
+
}) => void;
|
|
156
|
+
/**
|
|
157
|
+
* Callback for clicking on an action which will get the action name as argument
|
|
158
|
+
*/
|
|
159
|
+
onActionClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, payload: {
|
|
160
|
+
action: CollectionCardAction;
|
|
161
|
+
collectionType?: CollectionType;
|
|
162
|
+
}) => void;
|
|
163
|
+
}
|
|
164
|
+
declare const CollectionCard: React.FC<CollectionCardProps>;
|
|
165
|
+
export default CollectionCard;
|
|
@@ -1,65 +1,63 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import K from "@mui/material/
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import Q from "
|
|
8
|
-
import U from "../../entity/EntityCard/components/
|
|
9
|
-
import X from "../../entity/EntityCard/components/
|
|
10
|
-
import Y from "
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const $ = d(X, {
|
|
14
|
-
shouldForwardProp: (t) => t !== "horizontal"
|
|
1
|
+
import { jsxs as G, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as v } from "react";
|
|
3
|
+
import J from "@mui/material/CardActionArea";
|
|
4
|
+
import K from "@mui/material/Collapse";
|
|
5
|
+
import { styled as i } from "@mui/material/styles";
|
|
6
|
+
import N from "../../entity/EntityCard/components/EntityCardActions.js";
|
|
7
|
+
import Q from "../../entity/EntityCard/components/EntityCardBase.js";
|
|
8
|
+
import U from "../../entity/EntityCard/components/EntityCardContent.js";
|
|
9
|
+
import X from "../../entity/EntityCard/components/EntityCardHeader.js";
|
|
10
|
+
import Y from "./components/CollectionCardMedia.js";
|
|
11
|
+
const Z = i(Q, {
|
|
12
|
+
shouldForwardProp: (d) => d !== "horizontal"
|
|
15
13
|
})(({
|
|
16
|
-
horizontal:
|
|
14
|
+
horizontal: d
|
|
17
15
|
}) => ({
|
|
18
16
|
display: "grid",
|
|
19
|
-
...
|
|
17
|
+
...d ? {
|
|
20
18
|
gridTemplateAreas: '"actionArea header" "actionArea content" "actionArea actions" "collapse collapse"',
|
|
21
19
|
gridTemplateColumns: "min-content auto"
|
|
22
20
|
} : {
|
|
23
21
|
gridTemplateAreas: '"header" "actionArea" "content" "actions" "collapse"'
|
|
24
22
|
}
|
|
25
|
-
})),
|
|
26
|
-
shouldForwardProp: (
|
|
23
|
+
})), _ = i(X, {
|
|
24
|
+
shouldForwardProp: (d) => d !== "horizontal"
|
|
27
25
|
})(({
|
|
28
|
-
horizontal:
|
|
26
|
+
horizontal: d
|
|
29
27
|
}) => ({
|
|
30
28
|
gridArea: "header",
|
|
31
|
-
...
|
|
29
|
+
...d && {
|
|
32
30
|
"& .MuiCardHeader-avatar": {
|
|
33
31
|
display: "none"
|
|
34
32
|
}
|
|
35
33
|
}
|
|
36
|
-
})),
|
|
37
|
-
shouldForwardProp: (
|
|
34
|
+
})), $ = i(Y, {
|
|
35
|
+
shouldForwardProp: (d) => !["horizontal", "mediaPadding", "mediaSize"].includes(d)
|
|
38
36
|
})(({
|
|
39
|
-
theme:
|
|
40
|
-
horizontal:
|
|
37
|
+
theme: d,
|
|
38
|
+
horizontal: e,
|
|
41
39
|
mediaPadding: C,
|
|
42
40
|
mediaSize: c
|
|
43
41
|
}) => ({
|
|
44
|
-
padding:
|
|
45
|
-
...
|
|
42
|
+
padding: d.spacing(C),
|
|
43
|
+
...e ? {
|
|
46
44
|
width: c,
|
|
47
45
|
height: "100%"
|
|
48
46
|
} : {
|
|
49
47
|
height: c,
|
|
50
48
|
width: "100%"
|
|
51
49
|
}
|
|
52
|
-
})),
|
|
53
|
-
shouldForwardProp: (
|
|
50
|
+
})), x = i(U, {
|
|
51
|
+
shouldForwardProp: (d) => d !== "horizontal"
|
|
54
52
|
})(({
|
|
55
|
-
horizontal:
|
|
56
|
-
theme:
|
|
53
|
+
horizontal: d,
|
|
54
|
+
theme: e
|
|
57
55
|
}) => ({
|
|
58
56
|
gridArea: "content",
|
|
59
|
-
paddingTop:
|
|
60
|
-
})),
|
|
57
|
+
paddingTop: d ? 0 : e.spacing(2)
|
|
58
|
+
})), T = i(N)(() => ({
|
|
61
59
|
gridArea: "actions"
|
|
62
|
-
})),
|
|
60
|
+
})), dd = i(J)(() => ({
|
|
63
61
|
gridArea: "actionArea",
|
|
64
62
|
transition: "filter 0.25s ease-in-out",
|
|
65
63
|
"&:focus": {
|
|
@@ -68,208 +66,76 @@ const $ = d(X, {
|
|
|
68
66
|
"& .MuiTouchRipple-root": {
|
|
69
67
|
zIndex: 10
|
|
70
68
|
}
|
|
71
|
-
})),
|
|
69
|
+
})), ad = i(K)(() => ({
|
|
72
70
|
gridArea: "collapse"
|
|
73
|
-
})),
|
|
74
|
-
Root:
|
|
75
|
-
CardHeader:
|
|
76
|
-
CardMedia:
|
|
77
|
-
CardContent:
|
|
78
|
-
CardContentExpanded:
|
|
79
|
-
CardActions:
|
|
80
|
-
CardActionArea:
|
|
81
|
-
Collapse:
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
title: i,
|
|
71
|
+
})), td = {
|
|
72
|
+
Root: Z,
|
|
73
|
+
CardHeader: _,
|
|
74
|
+
CardMedia: $,
|
|
75
|
+
CardContent: x,
|
|
76
|
+
CardContentExpanded: x,
|
|
77
|
+
CardActions: T,
|
|
78
|
+
CardActionArea: dd,
|
|
79
|
+
Collapse: ad
|
|
80
|
+
}, od = ({
|
|
81
|
+
collectionType: d,
|
|
82
|
+
title: e,
|
|
86
83
|
subheader: C,
|
|
87
84
|
content: c,
|
|
88
|
-
expandedContent:
|
|
89
|
-
checked:
|
|
90
|
-
expanded:
|
|
91
|
-
horizontal:
|
|
92
|
-
mediaPadding:
|
|
93
|
-
mediaSize:
|
|
94
|
-
menuOptions:
|
|
95
|
-
actions:
|
|
96
|
-
onClick:
|
|
85
|
+
expandedContent: u,
|
|
86
|
+
checked: l,
|
|
87
|
+
expanded: s,
|
|
88
|
+
horizontal: r,
|
|
89
|
+
mediaPadding: M,
|
|
90
|
+
mediaSize: E,
|
|
91
|
+
menuOptions: S,
|
|
92
|
+
actions: k,
|
|
93
|
+
onClick: A,
|
|
97
94
|
onCheck: m,
|
|
98
95
|
onExpand: h,
|
|
99
|
-
onOptionClick:
|
|
100
|
-
onActionClick:
|
|
101
|
-
components:
|
|
102
|
-
componentsProps:
|
|
103
|
-
}) {
|
|
96
|
+
onOptionClick: y,
|
|
97
|
+
onActionClick: w,
|
|
98
|
+
components: H,
|
|
99
|
+
componentsProps: a
|
|
100
|
+
}) => {
|
|
104
101
|
const {
|
|
105
|
-
Root:
|
|
106
|
-
CardHeader:
|
|
107
|
-
CardActionArea:
|
|
108
|
-
CardMedia:
|
|
109
|
-
CardContent:
|
|
110
|
-
CardContentExpanded:
|
|
111
|
-
CardActions:
|
|
112
|
-
Collapse:
|
|
113
|
-
} =
|
|
114
|
-
var
|
|
115
|
-
const
|
|
116
|
-
m && m(
|
|
117
|
-
value:
|
|
118
|
-
collectionType:
|
|
119
|
-
}),
|
|
120
|
-
},
|
|
121
|
-
value:
|
|
102
|
+
Root: b,
|
|
103
|
+
CardHeader: V,
|
|
104
|
+
CardActionArea: F,
|
|
105
|
+
CardMedia: z,
|
|
106
|
+
CardContent: L,
|
|
107
|
+
CardContentExpanded: O,
|
|
108
|
+
CardActions: R,
|
|
109
|
+
Collapse: j
|
|
110
|
+
} = H, [B, I] = v(l), [P, W] = v(s), q = (t) => {
|
|
111
|
+
var p;
|
|
112
|
+
const n = (p = t == null ? void 0 : t.target) == null ? void 0 : p.checked;
|
|
113
|
+
m && m(t, {
|
|
114
|
+
value: n,
|
|
115
|
+
collectionType: d
|
|
116
|
+
}), l === void 0 && I(n);
|
|
117
|
+
}, D = (t, {
|
|
118
|
+
value: n
|
|
122
119
|
}) => {
|
|
123
|
-
h && h(
|
|
124
|
-
value:
|
|
125
|
-
collectionType:
|
|
126
|
-
}),
|
|
127
|
-
},
|
|
128
|
-
return /* @__PURE__ */
|
|
129
|
-
/* @__PURE__ */ o(
|
|
130
|
-
/* @__PURE__ */ o(
|
|
131
|
-
collectionType:
|
|
132
|
-
}), ...
|
|
133
|
-
/* @__PURE__ */ o(
|
|
134
|
-
/* @__PURE__ */ o(
|
|
135
|
-
/* @__PURE__ */ o(
|
|
120
|
+
h && h(t, {
|
|
121
|
+
value: n,
|
|
122
|
+
collectionType: d
|
|
123
|
+
}), s === void 0 && W(n);
|
|
124
|
+
}, f = l !== void 0 ? l : B, g = s !== void 0 ? s : P;
|
|
125
|
+
return /* @__PURE__ */ G(b, { horizontal: r, checked: f, ...a.root, children: [
|
|
126
|
+
/* @__PURE__ */ o(V, { collectionType: d, title: e, subheader: C, menuOptions: S, horizontal: r, onOptionClick: y, ...a.cardHeader }),
|
|
127
|
+
/* @__PURE__ */ o(F, { disabled: A === void 0, onClick: (t) => A(t, {
|
|
128
|
+
collectionType: d
|
|
129
|
+
}), ...a.cardActionArea, children: /* @__PURE__ */ o(z, { collectionType: d, mediaSize: E, mediaPadding: M, horizontal: r, showCombined: !r, ...a.cardMedia }) }),
|
|
130
|
+
/* @__PURE__ */ o(L, { collectionType: d, content: c, horizontal: r, ...a.cardContent }),
|
|
131
|
+
/* @__PURE__ */ o(R, { collectionType: d, checked: f, expanded: g, actions: k, onCheck: m ? q : null, onExpand: u ? D : null, onActionClick: w, ...a.cardActions }),
|
|
132
|
+
/* @__PURE__ */ o(j, { in: g && u !== void 0, timeout: "auto", unmountOnExit: !0, ...a.collapse, children: /* @__PURE__ */ o(O, { collectionType: d, content: u, WebkitLineClamp: 0, ...a.cardContentExpanded }) })
|
|
136
133
|
] });
|
|
137
|
-
}
|
|
138
|
-
v.propTypes = {
|
|
139
|
-
/**
|
|
140
|
-
* The Collection to show
|
|
141
|
-
*/
|
|
142
|
-
collectionType: Q.CollectionType,
|
|
143
|
-
/**
|
|
144
|
-
* Title text for the collection card header
|
|
145
|
-
*
|
|
146
|
-
* Set to *field name* the value should be extracted from
|
|
147
|
-
* or set *function* which will get collectionType as argument
|
|
148
|
-
*
|
|
149
|
-
* Defaults to id of collection
|
|
150
|
-
*/
|
|
151
|
-
title: e.oneOfType([e.string, e.func]),
|
|
152
|
-
/**
|
|
153
|
-
* Subheader text for the collection card header
|
|
154
|
-
*
|
|
155
|
-
* Set to *field name* the value should be extracted from
|
|
156
|
-
* or set *function* which will get collectionType as argument
|
|
157
|
-
*
|
|
158
|
-
* Defaults to undefined
|
|
159
|
-
*/
|
|
160
|
-
subheader: e.oneOfType([e.string, e.func]),
|
|
161
|
-
/**
|
|
162
|
-
* Content text for the card body
|
|
163
|
-
*
|
|
164
|
-
* Set to *field name* the value should be extracted from
|
|
165
|
-
* or set *function* which will get collectionType as argument
|
|
166
|
-
*
|
|
167
|
-
* Defaults to undefined
|
|
168
|
-
*/
|
|
169
|
-
content: e.oneOfType([e.string, e.func]),
|
|
170
|
-
/**
|
|
171
|
-
* Content text for the expanded card body
|
|
172
|
-
*
|
|
173
|
-
* Set to *field name* the value should be extracted from
|
|
174
|
-
* or set *function* which will get collectionType as argument
|
|
175
|
-
*
|
|
176
|
-
* Defaults to undefined which disables the expand functionality
|
|
177
|
-
*/
|
|
178
|
-
expandedContent: e.oneOfType([e.string, e.func]),
|
|
179
|
-
/**
|
|
180
|
-
* Add padding around media (theme spacing value)
|
|
181
|
-
*/
|
|
182
|
-
mediaPadding: e.number,
|
|
183
|
-
/**
|
|
184
|
-
* Set size for the card media
|
|
185
|
-
*
|
|
186
|
-
* `width` if horizontal: true, `height` otherwise
|
|
187
|
-
*/
|
|
188
|
-
mediaSize: e.string,
|
|
189
|
-
/**
|
|
190
|
-
* Whether the media card is marked as checked or not
|
|
191
|
-
*/
|
|
192
|
-
checked: e.bool,
|
|
193
|
-
/**
|
|
194
|
-
* Whether the expanded content is shown or not
|
|
195
|
-
*/
|
|
196
|
-
expanded: e.bool,
|
|
197
|
-
/**
|
|
198
|
-
* Whether the card should have horizontal or standard layout
|
|
199
|
-
*/
|
|
200
|
-
horizontal: e.bool,
|
|
201
|
-
/**
|
|
202
|
-
* A list of options for the card header action
|
|
203
|
-
*/
|
|
204
|
-
menuOptions: e.arrayOf(e.instanceOf(Object)),
|
|
205
|
-
/**
|
|
206
|
-
* The list of actions to show
|
|
207
|
-
*/
|
|
208
|
-
actions: e.arrayOf(e.shape({
|
|
209
|
-
name: e.string,
|
|
210
|
-
Icon: e.elementType,
|
|
211
|
-
iconProps: e.instanceOf(Object)
|
|
212
|
-
})),
|
|
213
|
-
// Callbacks
|
|
214
|
-
/**
|
|
215
|
-
* A function that handles the onClick event
|
|
216
|
-
*/
|
|
217
|
-
onClick: e.func,
|
|
218
|
-
/**
|
|
219
|
-
* A function that handles the check box being clicked
|
|
220
|
-
*/
|
|
221
|
-
onCheck: e.func,
|
|
222
|
-
/**
|
|
223
|
-
* A function that handles the expand button being clicked
|
|
224
|
-
*/
|
|
225
|
-
onExpand: e.func,
|
|
226
|
-
/**
|
|
227
|
-
* Callback for clicking on option which will get the option as argument
|
|
228
|
-
*/
|
|
229
|
-
onOptionClick: e.func,
|
|
230
|
-
/**
|
|
231
|
-
* Callback for clicking on an action which will get the action name as argument
|
|
232
|
-
*/
|
|
233
|
-
onActionClick: e.func,
|
|
234
|
-
// Overrides
|
|
235
|
-
/**
|
|
236
|
-
* Replace internal components
|
|
237
|
-
*/
|
|
238
|
-
components: e.shape({
|
|
239
|
-
Root: e.elementType,
|
|
240
|
-
CardHeader: e.elementType,
|
|
241
|
-
CardActionArea: e.elementType,
|
|
242
|
-
CardMedia: e.elementType,
|
|
243
|
-
CardContent: e.elementType,
|
|
244
|
-
CardContentExpanded: e.elementType,
|
|
245
|
-
CardActions: e.elementType,
|
|
246
|
-
Collapse: e.elementType
|
|
247
|
-
}),
|
|
248
|
-
/**
|
|
249
|
-
* Add internal component props
|
|
250
|
-
*/
|
|
251
|
-
componentsProps: e.shape({
|
|
252
|
-
root: e.instanceOf(Object),
|
|
253
|
-
cardHeader: e.shape({
|
|
254
|
-
entityAvatar: e.instanceOf(Object),
|
|
255
|
-
avatarMenu: e.instanceOf(Object)
|
|
256
|
-
}),
|
|
257
|
-
cardActionArea: e.instanceOf(Object),
|
|
258
|
-
cardMedia: e.shape({
|
|
259
|
-
collectionRepresentativeThumbnail: e.instanceOf(Object)
|
|
260
|
-
}),
|
|
261
|
-
cardContent: e.instanceOf(Object),
|
|
262
|
-
cardContentExpanded: e.instanceOf(Object),
|
|
263
|
-
cardActions: e.shape({
|
|
264
|
-
expandButton: e.instanceOf(Object)
|
|
265
|
-
}),
|
|
266
|
-
collapse: e.instanceOf(Object)
|
|
267
|
-
})
|
|
268
134
|
};
|
|
269
|
-
|
|
135
|
+
od.defaultProps = {
|
|
270
136
|
collectionType: void 0,
|
|
271
137
|
onClick: void 0,
|
|
272
|
-
title:
|
|
138
|
+
title: "id",
|
|
273
139
|
subheader: void 0,
|
|
274
140
|
content: void 0,
|
|
275
141
|
expandedContent: void 0,
|
|
@@ -284,9 +150,9 @@ v.defaultProps = {
|
|
|
284
150
|
onExpand: void 0,
|
|
285
151
|
onOptionClick: void 0,
|
|
286
152
|
onActionClick: void 0,
|
|
287
|
-
components:
|
|
153
|
+
components: td,
|
|
288
154
|
componentsProps: void 0
|
|
289
155
|
};
|
|
290
156
|
export {
|
|
291
|
-
|
|
157
|
+
od as default
|
|
292
158
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CardMediaProps as MuiCardMediaProps } from '@mui/material';
|
|
3
|
+
import type { CollectionType } from '@vidispine/types';
|
|
4
|
+
import type { CollectionRepresentativeThumbnailProps } from '../../CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail';
|
|
5
|
+
export interface CollectionCardMediaProps extends MuiCardMediaProps {
|
|
6
|
+
collectionType?: CollectionType;
|
|
7
|
+
showCombined?: boolean;
|
|
8
|
+
collectionRepresentativeThumbnail?: CollectionRepresentativeThumbnailProps;
|
|
9
|
+
}
|
|
10
|
+
declare const CollectionCardMedia: React.FC<CollectionCardMediaProps>;
|
|
11
|
+
export default CollectionCardMedia;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
collectionType:
|
|
6
|
-
showCombined:
|
|
7
|
-
collectionRepresentativeThumbnail:
|
|
8
|
-
...
|
|
9
|
-
}) {
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
import r from "@mui/material/CardMedia";
|
|
3
|
+
import l from "../../CollectionRepresentativeThumbnail/index.js";
|
|
4
|
+
const n = ({
|
|
5
|
+
collectionType: e,
|
|
6
|
+
showCombined: i,
|
|
7
|
+
collectionRepresentativeThumbnail: t,
|
|
8
|
+
...d
|
|
9
|
+
}) => /* @__PURE__ */ o(r, { ...d, children: /* @__PURE__ */ o(l, { collectionType: e, showCombined: i, ...t ?? {} }) });
|
|
10
|
+
n.defaultProps = {
|
|
11
|
+
collectionType: void 0,
|
|
12
|
+
showCombined: void 0,
|
|
13
|
+
collectionRepresentativeThumbnail: void 0
|
|
14
|
+
};
|
|
12
15
|
export {
|
|
13
|
-
|
|
16
|
+
n as default
|
|
14
17
|
};
|