@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
|
@@ -1,200 +1,105 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import c from "@vidispine/proptypes";
|
|
9
|
-
import { uuidv4 as l } from "../../_utils/uuidv4.js";
|
|
1
|
+
import { jsxs as l, jsx as m, Fragment as q } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as A } from "react";
|
|
3
|
+
import F from "@mui/material/List";
|
|
4
|
+
import N from "@mui/material/ListSubheader";
|
|
5
|
+
import T from "@mui/material/Typography";
|
|
6
|
+
import { styled as V } from "@mui/material/styles";
|
|
7
|
+
import { uuidv4 as n } from "../../_utils/uuidv4.js";
|
|
10
8
|
import "clsx";
|
|
11
9
|
import { showSlot as $ } from "../../_utils/showSlot.js";
|
|
12
10
|
import z from "../../collection/CollectionListItem/index.js";
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
return /* @__PURE__ */ m(F, { children: "No entities found..." });
|
|
16
|
-
}
|
|
17
|
-
const G = N(w)(() => ({
|
|
11
|
+
import a from "../../item/ItemListItem/index.js";
|
|
12
|
+
const B = () => /* @__PURE__ */ m(T, { children: "No entities found..." }), G = V(F)(() => ({
|
|
18
13
|
width: "100%"
|
|
19
14
|
})), H = {
|
|
20
15
|
Root: G,
|
|
21
|
-
ListSubheader:
|
|
16
|
+
ListSubheader: N,
|
|
22
17
|
CollectionListItem: z,
|
|
23
|
-
ItemListItem:
|
|
24
|
-
LoadingListItem:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
18
|
+
ItemListItem: a,
|
|
19
|
+
LoadingListItem: a,
|
|
20
|
+
ListItem: null
|
|
21
|
+
// for shared componentsProps
|
|
22
|
+
}, J = ({
|
|
23
|
+
entities: r,
|
|
24
|
+
header: d,
|
|
25
|
+
primary: p,
|
|
26
|
+
secondary: L,
|
|
27
|
+
avatarVariant: u,
|
|
32
28
|
dense: I,
|
|
33
|
-
amountLoading:
|
|
34
|
-
isLoading:
|
|
35
|
-
onListItemClick:
|
|
36
|
-
onListItemDelete:
|
|
37
|
-
emptySlot:
|
|
38
|
-
components:
|
|
39
|
-
componentsProps:
|
|
40
|
-
}) {
|
|
29
|
+
amountLoading: f,
|
|
30
|
+
isLoading: e,
|
|
31
|
+
onListItemClick: h,
|
|
32
|
+
onListItemDelete: c,
|
|
33
|
+
emptySlot: S,
|
|
34
|
+
components: g,
|
|
35
|
+
componentsProps: o
|
|
36
|
+
}) => {
|
|
41
37
|
const {
|
|
42
|
-
Root:
|
|
43
|
-
ListSubheader:
|
|
44
|
-
CollectionListItem:
|
|
45
|
-
ItemListItem:
|
|
46
|
-
LoadingListItem:
|
|
47
|
-
} =
|
|
48
|
-
key:
|
|
49
|
-
})),
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
38
|
+
Root: C,
|
|
39
|
+
ListSubheader: v,
|
|
40
|
+
CollectionListItem: M,
|
|
41
|
+
ItemListItem: k,
|
|
42
|
+
LoadingListItem: x
|
|
43
|
+
} = g, y = [...Array(Math.max(f, 0)).keys()].map(() => ({
|
|
44
|
+
key: n()
|
|
45
|
+
})), s = A(() => r.map((t) => ({
|
|
46
|
+
key: n(),
|
|
47
|
+
..."item" in t ? {
|
|
48
|
+
itemType: t == null ? void 0 : t.item
|
|
49
|
+
} : {},
|
|
50
|
+
..."collection" in t ? {
|
|
51
|
+
collectionType: t == null ? void 0 : t.collection
|
|
52
|
+
} : {}
|
|
53
|
+
})) || [], [r]), w = ({
|
|
54
|
+
itemType: t,
|
|
55
|
+
collectionType: i
|
|
56
|
+
}) => t ? {
|
|
57
|
+
component: k,
|
|
61
58
|
props: {
|
|
62
|
-
itemType:
|
|
63
|
-
...
|
|
64
|
-
...
|
|
59
|
+
itemType: t,
|
|
60
|
+
...o.listItem,
|
|
61
|
+
...o.itemListItem
|
|
65
62
|
}
|
|
66
|
-
} :
|
|
67
|
-
component:
|
|
63
|
+
} : i ? {
|
|
64
|
+
component: M,
|
|
68
65
|
props: {
|
|
69
|
-
collectionType:
|
|
70
|
-
...
|
|
71
|
-
...
|
|
66
|
+
collectionType: i,
|
|
67
|
+
...o.listItem,
|
|
68
|
+
...o.collectionListItem
|
|
72
69
|
}
|
|
73
70
|
} : {
|
|
74
71
|
// Default to an ItemListItem (use it as loading list)
|
|
75
|
-
component:
|
|
72
|
+
component: x,
|
|
76
73
|
props: {
|
|
77
|
-
|
|
78
|
-
...
|
|
79
|
-
...e.loadingListItem
|
|
74
|
+
...o.listItem,
|
|
75
|
+
...o.loadingListItem
|
|
80
76
|
}
|
|
81
77
|
};
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */ m(
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
!
|
|
86
|
-
(
|
|
87
|
-
key:
|
|
88
|
-
itemType:
|
|
89
|
-
collectionType:
|
|
78
|
+
return /* @__PURE__ */ l(C, { dense: I, ...o.root, children: [
|
|
79
|
+
/* @__PURE__ */ m(v, { ...o.listSubheader, children: d }),
|
|
80
|
+
/* @__PURE__ */ l(q, { children: [
|
|
81
|
+
!e && s.length === 0 && $(S),
|
|
82
|
+
(e ? y : s).map(({
|
|
83
|
+
key: t,
|
|
84
|
+
itemType: i,
|
|
85
|
+
collectionType: D
|
|
90
86
|
}) => {
|
|
91
87
|
const {
|
|
92
|
-
component:
|
|
88
|
+
component: E,
|
|
93
89
|
props: R
|
|
94
|
-
} =
|
|
95
|
-
itemType:
|
|
96
|
-
collectionType:
|
|
90
|
+
} = w({
|
|
91
|
+
itemType: i,
|
|
92
|
+
collectionType: D
|
|
97
93
|
});
|
|
98
|
-
return /* @__PURE__ */ m(
|
|
94
|
+
return /* @__PURE__ */ m(E, { primary: p, secondary: L, avatarVariant: u, isLoading: e, onClick: h, onDelete: c, ...R }, t);
|
|
99
95
|
})
|
|
100
96
|
] })
|
|
101
97
|
] });
|
|
102
|
-
}
|
|
103
|
-
const J = t.shape({
|
|
104
|
-
item: c.ItemType
|
|
105
|
-
}), K = t.shape({
|
|
106
|
-
collection: c.CollectionType
|
|
107
|
-
});
|
|
108
|
-
d.propTypes = {
|
|
109
|
-
/**
|
|
110
|
-
* The entities to show in the list
|
|
111
|
-
*
|
|
112
|
-
* `EntityItemType = { item: VidispinePropTypes.ItemType }`
|
|
113
|
-
* `EntityCollectionType = { collection: VidispinePropTypes.CollectionType }`
|
|
114
|
-
*
|
|
115
|
-
*/
|
|
116
|
-
entities: t.arrayOf(t.objectOf(t.oneOfType([J, K]))),
|
|
117
|
-
/**
|
|
118
|
-
* Add a list header
|
|
119
|
-
*/
|
|
120
|
-
header: t.string,
|
|
121
|
-
/**
|
|
122
|
-
* Primary text for the list item
|
|
123
|
-
*
|
|
124
|
-
* Set to *field name* the value should be extracted from
|
|
125
|
-
* or set *function* which will get entity as argument
|
|
126
|
-
*
|
|
127
|
-
* Defaults to id of entity
|
|
128
|
-
*/
|
|
129
|
-
primary: t.oneOfType([t.string, t.func]),
|
|
130
|
-
/**
|
|
131
|
-
* Secondary text for the list item
|
|
132
|
-
*
|
|
133
|
-
* Set to *field name* the value should be extracted from
|
|
134
|
-
* or set *function* which will get entity as argument
|
|
135
|
-
*
|
|
136
|
-
* Defaults to undefined
|
|
137
|
-
*/
|
|
138
|
-
secondary: t.oneOfType([t.string, t.func]),
|
|
139
|
-
/**
|
|
140
|
-
* Variant/shapes for the list item avatars
|
|
141
|
-
*/
|
|
142
|
-
avatarVariant: t.oneOf(["circular", "rounded", "square"]),
|
|
143
|
-
/**
|
|
144
|
-
* If list should be displayed as dense
|
|
145
|
-
*/
|
|
146
|
-
dense: t.bool,
|
|
147
|
-
/**
|
|
148
|
-
* Show skeleton list items as loading state
|
|
149
|
-
*/
|
|
150
|
-
isLoading: t.bool,
|
|
151
|
-
/**
|
|
152
|
-
* amount of list items to show when loading
|
|
153
|
-
*/
|
|
154
|
-
amountLoading: t.number,
|
|
155
|
-
/**
|
|
156
|
-
* Callback for ListItem click event
|
|
157
|
-
*
|
|
158
|
-
* Set to `undefined` to disable
|
|
159
|
-
*/
|
|
160
|
-
onListItemClick: t.func,
|
|
161
|
-
/**
|
|
162
|
-
* Callback for ListItem click event
|
|
163
|
-
*
|
|
164
|
-
* Set to `undefined` to disable
|
|
165
|
-
*/
|
|
166
|
-
onListItemDelete: t.func,
|
|
167
|
-
/**
|
|
168
|
-
* Shown when list is empty
|
|
169
|
-
*/
|
|
170
|
-
emptySlot: t.oneOfType([t.elementType, t.node]),
|
|
171
|
-
// Overrides
|
|
172
|
-
/**
|
|
173
|
-
* Replace internal components
|
|
174
|
-
*/
|
|
175
|
-
components: t.shape({
|
|
176
|
-
Root: t.elementType,
|
|
177
|
-
ListSubheader: t.elementType,
|
|
178
|
-
CollectionListItem: t.elementType,
|
|
179
|
-
ItemListItem: t.elementType,
|
|
180
|
-
LoadingListItem: t.elementType
|
|
181
|
-
}),
|
|
182
|
-
/**
|
|
183
|
-
* Add internal component props
|
|
184
|
-
*/
|
|
185
|
-
componentsProps: t.shape({
|
|
186
|
-
root: t.instanceOf(Object),
|
|
187
|
-
listSubheader: t.instanceOf(Object),
|
|
188
|
-
collectionListItem: t.instanceOf(Object),
|
|
189
|
-
itemListItem: t.instanceOf(Object),
|
|
190
|
-
loadingListItem: t.instanceOf(Object),
|
|
191
|
-
listItem: t.instanceOf(Object)
|
|
192
|
-
})
|
|
193
98
|
};
|
|
194
|
-
|
|
99
|
+
J.defaultProps = {
|
|
195
100
|
entities: [],
|
|
196
101
|
header: void 0,
|
|
197
|
-
primary:
|
|
102
|
+
primary: "id",
|
|
198
103
|
secondary: void 0,
|
|
199
104
|
avatarVariant: "square",
|
|
200
105
|
dense: !1,
|
|
@@ -207,5 +112,5 @@ d.defaultProps = {
|
|
|
207
112
|
componentsProps: void 0
|
|
208
113
|
};
|
|
209
114
|
export {
|
|
210
|
-
|
|
115
|
+
J as default
|
|
211
116
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ListItemAvatarProps as MuiListItemAvatarProps } from '@mui/material';
|
|
3
|
+
import type { CollectionType, ItemType } from '@vidispine/types';
|
|
4
|
+
import { EntityAvatarProps } from '../../EntityAvatar/EntityAvatar';
|
|
5
|
+
export interface EntityListItemAvatarProps extends Omit<MuiListItemAvatarProps, 'itemType'> {
|
|
6
|
+
itemType?: ItemType;
|
|
7
|
+
collectionType?: CollectionType;
|
|
8
|
+
entityType?: EntityAvatarProps['entityType'];
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
variant?: EntityAvatarProps['variant'];
|
|
11
|
+
entityAvatar?: EntityAvatarProps;
|
|
12
|
+
}
|
|
13
|
+
declare const EntityListItemAvatar: React.FC<EntityListItemAvatarProps>;
|
|
14
|
+
export default EntityListItemAvatar;
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import f from "@mui/material/ListItemAvatar";
|
|
3
3
|
import { parseMetadataType as l } from "@vidispine/vdt-js";
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
itemType:
|
|
7
|
-
collectionType:
|
|
8
|
-
isLoading:
|
|
4
|
+
import u from "../../EntityAvatar/index.js";
|
|
5
|
+
const c = ({
|
|
6
|
+
itemType: e,
|
|
7
|
+
collectionType: t,
|
|
8
|
+
isLoading: i,
|
|
9
9
|
variant: m,
|
|
10
10
|
entityAvatar: o,
|
|
11
11
|
...n
|
|
12
|
-
}) {
|
|
12
|
+
}) => {
|
|
13
13
|
const {
|
|
14
14
|
metadata: p
|
|
15
|
-
} =
|
|
15
|
+
} = e || t || {}, s = e && "item" || t && "collection" || t && "library", {
|
|
16
16
|
mediaType: d,
|
|
17
17
|
mimeType: a
|
|
18
18
|
} = l(p, {
|
|
19
19
|
flat: !0,
|
|
20
20
|
arrayOnSingleValue: !1
|
|
21
|
-
}),
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
-
}
|
|
21
|
+
}), y = typeof a == "string" ? a.split("/")[0] : void 0;
|
|
22
|
+
return /* @__PURE__ */ r(f, { ...n, children: /* @__PURE__ */ r(u, { entityType: s || void 0, mediaType: d || y, isLoading: i, variant: m, ...o }) });
|
|
23
|
+
};
|
|
24
|
+
c.defaultProps = {};
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
+
c as default
|
|
26
27
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ListItemButtonProps as MuiListItemButtonProps } from '@mui/material';
|
|
3
|
+
import type { ItemType, CollectionType } from '@vidispine/types';
|
|
4
|
+
import { getEntityProp } from '../../_utils';
|
|
5
|
+
export interface EntityListItemButtonProps extends Omit<MuiListItemButtonProps, 'itemType' | 'onClick'> {
|
|
6
|
+
itemType?: ItemType;
|
|
7
|
+
collectionType?: CollectionType;
|
|
8
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>, payload: ReturnType<typeof getEntityProp>) => void;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const EntityListItemButton: React.FC<EntityListItemButtonProps>;
|
|
12
|
+
export default EntityListItemButton;
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Fragment as
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment as u } from "react";
|
|
3
3
|
import f from "@mui/material/ListItemButton";
|
|
4
|
-
import { getEntityProp as
|
|
4
|
+
import { getEntityProp as s } from "../../_utils/getEntityProp.js";
|
|
5
5
|
import "@vidispine/vdt-js";
|
|
6
|
-
|
|
6
|
+
const d = ({
|
|
7
7
|
itemType: i,
|
|
8
|
-
collectionType:
|
|
8
|
+
collectionType: r,
|
|
9
9
|
onClick: o,
|
|
10
|
-
isLoading:
|
|
10
|
+
isLoading: e,
|
|
11
11
|
...t
|
|
12
|
-
}) {
|
|
13
|
-
const n = !
|
|
12
|
+
}) => {
|
|
13
|
+
const n = !e && !!o, m = n ? f : u, l = n ? {
|
|
14
14
|
role: void 0,
|
|
15
|
-
onClick: (
|
|
15
|
+
onClick: (a) => o(a, s({
|
|
16
16
|
itemType: i,
|
|
17
|
-
collectionType:
|
|
17
|
+
collectionType: r
|
|
18
18
|
})),
|
|
19
19
|
...t
|
|
20
20
|
} : {
|
|
21
21
|
children: t == null ? void 0 : t.children
|
|
22
22
|
};
|
|
23
|
-
return /* @__PURE__ */
|
|
24
|
-
}
|
|
23
|
+
return /* @__PURE__ */ c(m, { ...l });
|
|
24
|
+
};
|
|
25
|
+
d.defaultProps = {};
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
+
d as default
|
|
27
28
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ListItemSecondaryActionProps } from '@mui/material';
|
|
3
|
+
import type { ItemType, CollectionType } from '@vidispine/types';
|
|
4
|
+
import { getEntityProp } from '../../_utils';
|
|
5
|
+
export interface EntityListItemSecondaryActionProps extends Omit<ListItemSecondaryActionProps, 'itemType'> {
|
|
6
|
+
itemType?: ItemType;
|
|
7
|
+
collectionType?: CollectionType;
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
onDelete?: (event: React.MouseEvent<HTMLButtonElement>, payload: ReturnType<typeof getEntityProp>) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const EntityListItemSecondaryAction: React.FC<EntityListItemSecondaryActionProps>;
|
|
12
|
+
export default EntityListItemSecondaryAction;
|
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import d from "@mui/icons-material/esm/Delete";
|
|
3
|
+
import l from "@mui/material/IconButton";
|
|
4
|
+
import p from "@mui/material/ListItemSecondaryAction";
|
|
5
|
+
import c from "@mui/material/Skeleton";
|
|
6
6
|
import { getEntityProp as a } from "../../_utils/getEntityProp.js";
|
|
7
7
|
import "@vidispine/vdt-js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, children: /* @__PURE__ */ t(p, { width: 18, height: 36 }) });
|
|
12
|
-
}
|
|
13
|
-
function S({
|
|
8
|
+
const s = () => /* @__PURE__ */ t("div", { style: {
|
|
9
|
+
paddingRight: 10
|
|
10
|
+
}, children: /* @__PURE__ */ t(c, { width: 18, height: 36 }) }), f = ({
|
|
14
11
|
itemType: r,
|
|
15
|
-
collectionType:
|
|
12
|
+
collectionType: i,
|
|
13
|
+
isLoading: n,
|
|
16
14
|
onDelete: e,
|
|
17
|
-
isLoading: i,
|
|
18
15
|
...m
|
|
19
|
-
}) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
16
|
+
}) => /* @__PURE__ */ t(p, { ...m, children: e && (n ? /* @__PURE__ */ t(s, {}) : /* @__PURE__ */ t(l, { onClick: (o) => (o.stopPropagation(), o.preventDefault(), e(o, a({
|
|
17
|
+
itemType: r,
|
|
18
|
+
collectionType: i
|
|
19
|
+
}))), children: /* @__PURE__ */ t(d, {}) })) });
|
|
20
|
+
f.defaultProps = {};
|
|
25
21
|
export {
|
|
26
|
-
|
|
22
|
+
f as default
|
|
27
23
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ListItemTextProps as MuiListItemTextProps } from '@mui/material';
|
|
3
|
+
import type { ItemType, CollectionType } from '@vidispine/types';
|
|
4
|
+
import { getEntityText } from '../../_utils/getEntityText';
|
|
5
|
+
export interface EntityListItemTextProps extends Omit<MuiListItemTextProps, 'itemType' | 'primary' | 'secondary'> {
|
|
6
|
+
itemType?: ItemType;
|
|
7
|
+
collectionType?: CollectionType;
|
|
8
|
+
primary?: Parameters<typeof getEntityText>[0];
|
|
9
|
+
secondary?: Parameters<typeof getEntityText>[0];
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const EntityListItemText: React.FC<EntityListItemTextProps>;
|
|
13
|
+
export default EntityListItemText;
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import p from "@mui/material/ListItemText";
|
|
3
|
-
import
|
|
4
|
-
import { getEntityText as
|
|
5
|
-
|
|
6
|
-
itemType:
|
|
7
|
-
collectionType:
|
|
8
|
-
primary:
|
|
9
|
-
secondary:
|
|
10
|
-
isLoading:
|
|
3
|
+
import m from "@mui/material/Skeleton";
|
|
4
|
+
import { getEntityText as s } from "../../_utils/getEntityText.js";
|
|
5
|
+
const d = ({
|
|
6
|
+
itemType: r,
|
|
7
|
+
collectionType: o,
|
|
8
|
+
primary: i,
|
|
9
|
+
secondary: n,
|
|
10
|
+
isLoading: e,
|
|
11
11
|
...x
|
|
12
|
-
}) {
|
|
13
|
-
const {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
itemType: t,
|
|
20
|
-
collectionType: r
|
|
12
|
+
}) => {
|
|
13
|
+
const a = s(i, {
|
|
14
|
+
itemType: r,
|
|
15
|
+
collectionType: o
|
|
16
|
+
}), f = s(n, {
|
|
17
|
+
itemType: r,
|
|
18
|
+
collectionType: o
|
|
21
19
|
});
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
-
}
|
|
20
|
+
return /* @__PURE__ */ t(p, { primary: e ? /* @__PURE__ */ t(m, { width: 60 }) : a, secondary: e ? /* @__PURE__ */ t(m, { width: 120 }) : f, ...x });
|
|
21
|
+
};
|
|
22
|
+
d.defaultProps = {};
|
|
24
23
|
export {
|
|
25
|
-
|
|
24
|
+
d as default
|
|
26
25
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TableCellProps as MuiTableCellProps } from '@mui/material';
|
|
3
|
+
import type { ItemType, CollectionType } from '@vidispine/types';
|
|
4
|
+
import type { EntityAvatarProps } from '../../EntityAvatar/EntityAvatar';
|
|
5
|
+
export interface EntityTableCellAvatarProps extends Omit<MuiTableCellProps, 'itemType'> {
|
|
6
|
+
itemType?: ItemType;
|
|
7
|
+
collectionType?: CollectionType;
|
|
8
|
+
entityType?: EntityAvatarProps['entityType'];
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
avatarVariant?: EntityAvatarProps['variant'];
|
|
11
|
+
entityAvatar?: EntityAvatarProps;
|
|
12
|
+
}
|
|
13
|
+
declare const EntityTableCellAvatar: React.FC<EntityTableCellAvatarProps>;
|
|
14
|
+
export default EntityTableCellAvatar;
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { parseMetadataType as
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import y from "@mui/material/TableCell";
|
|
3
|
+
import { parseMetadataType as f } from "@vidispine/vdt-js";
|
|
4
4
|
import c from "../../EntityAvatar/index.js";
|
|
5
|
-
|
|
5
|
+
const T = ({
|
|
6
6
|
itemType: e,
|
|
7
7
|
collectionType: t,
|
|
8
8
|
isLoading: i,
|
|
9
|
-
|
|
9
|
+
avatarVariant: o,
|
|
10
10
|
entityAvatar: m,
|
|
11
11
|
...n
|
|
12
|
-
}) {
|
|
12
|
+
}) => {
|
|
13
13
|
const {
|
|
14
|
-
metadata:
|
|
15
|
-
} = e || t || {},
|
|
14
|
+
metadata: p
|
|
15
|
+
} = e || t || {}, l = e && "item" || t && "collection" || t && "library", {
|
|
16
16
|
mediaType: d,
|
|
17
17
|
mimeType: a
|
|
18
|
-
} =
|
|
18
|
+
} = f(p, {
|
|
19
19
|
flat: !0,
|
|
20
20
|
arrayOnSingleValue: !1
|
|
21
21
|
}), s = typeof a == "string" ? a.split("/")[0] : void 0;
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
-
}
|
|
22
|
+
return /* @__PURE__ */ r(y, { padding: "checkbox", ...n, children: /* @__PURE__ */ r(c, { entityType: l || void 0, mediaType: d || s, variant: o, isLoading: i, ...m || {} }) });
|
|
23
|
+
};
|
|
24
|
+
T.defaultProps = {};
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
+
T as default
|
|
26
27
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TableCellProps as MuiTableCellProps } from '@mui/material';
|
|
3
|
+
export interface EntityTableCellCheckboxProps extends Omit<MuiTableCellProps, 'itemType'> {
|
|
4
|
+
itemType?: unknown;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const EntityTableCellCheckbox: React.FC<EntityTableCellCheckboxProps>;
|
|
8
|
+
export default EntityTableCellCheckbox;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
2
|
+
import l from "@mui/material/TableCell";
|
|
3
|
+
import p from "@mui/material/Skeleton";
|
|
4
|
+
const r = ({
|
|
5
5
|
isLoading: t,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
itemType: m,
|
|
7
|
+
// ignore (exists as MUI string prop)
|
|
8
8
|
children: o,
|
|
9
9
|
...i
|
|
10
|
-
}) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
10
|
+
}) => /* @__PURE__ */ e(l, { padding: "checkbox", ...i, children: t ? /* @__PURE__ */ e(p, { sx: {
|
|
11
|
+
width: "18px",
|
|
12
|
+
height: "36px",
|
|
13
|
+
margin: "auto"
|
|
14
|
+
} }) : o });
|
|
15
|
+
r.defaultProps = {};
|
|
17
16
|
export {
|
|
18
|
-
|
|
17
|
+
r as default
|
|
19
18
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ItemType, CollectionType } from '@vidispine/types';
|
|
2
|
+
export declare const getEntityProp: (entityObject: {
|
|
3
|
+
itemType?: ItemType;
|
|
4
|
+
collectionType?: CollectionType;
|
|
5
|
+
}) => {
|
|
6
|
+
itemType?: ItemType;
|
|
7
|
+
} | {
|
|
8
|
+
collectionType?: CollectionType;
|
|
9
|
+
} | {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CollectionType, ItemType } from '@vidispine/types';
|
|
2
|
+
type EntityObject = {
|
|
3
|
+
itemType?: ItemType;
|
|
4
|
+
collectionType?: CollectionType;
|
|
5
|
+
};
|
|
6
|
+
export declare const getEntityText: (funcOrFieldName: string | ((entity: EntityObject) => string), { itemType, collectionType }: EntityObject) => any;
|
|
7
|
+
export {};
|