@vidispine/vdt-mui 23.3.0-pre.4 → 23.3.0-pre.6
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/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 -1
- 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/event/EventList/EventList.js +1 -0
- package/dist/cjs/event/EventList/components/EventListHeader.js +1 -0
- package/dist/cjs/event/EventList/index.js +1 -0
- package/dist/cjs/event/EventListItem/EventListItem.js +1 -0
- package/dist/cjs/event/EventListItem/index.js +1 -0
- 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/MediaIcon/index.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/VirtualizedList/VirtualizedList.js +1 -0
- package/dist/cjs/general/VirtualizedList/index.js +1 -0
- package/dist/cjs/index.js +1 -1
- 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/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/metadata/MetadataGroupTreeView/MetadataGroupTreeView.js +1 -0
- package/dist/cjs/metadata/MetadataGroupTreeView/index.js +1 -0
- 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/collection/CollectionCard/CollectionCard.js +61 -60
- package/dist/es/collection/CollectionCard/components/CollectionCardMedia.js +10 -9
- package/dist/es/collection/CollectionCard/index.js +7 -6
- package/dist/es/collection/CollectionList/CollectionList.js +30 -30
- package/dist/es/collection/CollectionList/index.js +7 -6
- package/dist/es/collection/CollectionListItem/CollectionListItem.js +32 -31
- package/dist/es/collection/CollectionListItem/index.js +8 -7
- package/dist/es/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.js +50 -61
- package/dist/es/collection/CollectionRepresentativeThumbnail/index.js +7 -6
- package/dist/es/entity/EntityAvatar/EntityAvatar.js +25 -24
- package/dist/es/entity/EntityAvatar/index.js +7 -6
- package/dist/es/entity/EntityCard/_components/Typography.js +5 -5
- package/dist/es/entity/EntityCard/components/EntityCardActions.js +37 -51
- package/dist/es/entity/EntityCard/components/EntityCardBase.js +9 -8
- package/dist/es/entity/EntityCard/components/EntityCardContent.js +20 -19
- package/dist/es/entity/EntityCard/components/EntityCardHeader.js +30 -45
- package/dist/es/entity/EntityIcon/EntityIcon.js +38 -51
- package/dist/es/entity/EntityIcon/index.js +7 -6
- package/dist/es/entity/EntityList/EntityList.js +42 -42
- package/dist/es/entity/EntityList/index.js +8 -7
- package/dist/es/entity/EntityListItem/components/EntityListItemAvatar.js +17 -16
- package/dist/es/entity/EntityListItem/components/EntityListItemButton.js +16 -16
- package/dist/es/entity/EntityListItem/components/EntityListItemSecondaryAction.js +13 -13
- package/dist/es/entity/EntityListItem/components/EntityListItemText.js +14 -13
- package/dist/es/entity/EntityTableRow/components/EntityTableCellAvatar.js +18 -17
- package/dist/es/entity/EntityTableRow/components/EntityTableCellCheckbox.js +11 -10
- package/dist/es/entity/_utils/getEntityText.d.ts +1 -1
- package/dist/es/event/EventList/EventList.d.ts +67 -0
- package/dist/es/event/EventList/EventList.js +113 -0
- package/dist/es/event/EventList/components/EventListHeader.d.ts +8 -0
- package/dist/es/event/EventList/components/EventListHeader.js +29 -0
- package/dist/es/event/EventList/index.d.ts +2 -0
- package/dist/es/event/EventList/index.js +13 -0
- package/dist/es/event/EventListItem/EventListItem.d.ts +58 -0
- package/dist/es/event/EventListItem/EventListItem.js +203 -0
- package/dist/es/event/EventListItem/index.d.ts +2 -0
- package/dist/es/event/EventListItem/index.js +13 -0
- package/dist/es/event/index.d.ts +2 -0
- package/dist/es/general/AvatarMenu/AvatarMenu.js +27 -26
- package/dist/es/general/AvatarMenu/components/Avatar.js +15 -14
- package/dist/es/general/AvatarMenu/components/MenuItem.js +14 -14
- package/dist/es/general/AvatarMenu/index.js +8 -7
- package/dist/es/general/BlurredBackground/BlurredBackground.js +14 -13
- package/dist/es/general/BlurredBackground/index.js +8 -7
- package/dist/es/general/CalendarPicker/CalendarPicker.js +59 -58
- package/dist/es/general/CalendarPicker/components/PickersDay.js +18 -17
- package/dist/es/general/CalendarPicker/index.js +8 -7
- package/dist/es/general/CompactBadge/CompactBadge.js +17 -16
- package/dist/es/general/CompactBadge/index.js +7 -6
- package/dist/es/general/CompactLabel/CompactLabel.js +19 -18
- package/dist/es/general/CompactLabel/index.js +7 -6
- package/dist/es/general/CornerLabelPlacer/CornerLabelPlacer.js +30 -29
- package/dist/es/general/CornerLabelPlacer/index.js +8 -7
- package/dist/es/general/ExpandButton/ExpandButton.js +21 -20
- package/dist/es/general/ExpandButton/index.js +7 -6
- package/dist/es/general/Form/Form.js +52 -51
- package/dist/es/general/Form/index.js +8 -7
- package/dist/es/general/ImageCollage/ImageCollage.js +37 -36
- package/dist/es/general/ImageCollage/index.js +6 -5
- package/dist/es/general/MediaIcon/MediaIcon.js +47 -46
- package/dist/es/general/MediaIcon/index.js +6 -5
- package/dist/es/general/MenuItem/MenuItem.js +28 -27
- package/dist/es/general/MenuItem/index.js +9 -8
- package/dist/es/general/ScrubLine/ScrubLine.js +36 -35
- package/dist/es/general/ScrubLine/index.js +7 -6
- package/dist/es/general/Sort/Sort.js +25 -24
- package/dist/es/general/Sort/components/ButtonBase.js +11 -11
- package/dist/es/general/Sort/components/MenuItem.js +10 -10
- package/dist/es/general/Sort/index.js +7 -6
- package/dist/es/general/TablePagination/TablePagination.js +27 -26
- package/dist/es/general/TablePagination/index.js +9 -8
- package/dist/es/general/ThemeContext/ThemeContext.d.ts +2 -14
- package/dist/es/general/VirtualizedList/VirtualizedList.d.ts +56 -0
- package/dist/es/general/VirtualizedList/VirtualizedList.js +90 -0
- package/dist/es/general/VirtualizedList/index.d.ts +3 -0
- package/dist/es/general/VirtualizedList/index.js +12 -0
- package/dist/es/general/index.d.ts +1 -0
- package/dist/es/index.d.ts +1 -0
- package/dist/es/index.js +67 -61
- package/dist/es/inputs/BasicDateTimeInput/BasicDateTimeInput.js +30 -29
- package/dist/es/inputs/BasicDateTimeInput/index.js +8 -7
- package/dist/es/inputs/BooleanInput/BooleanInput.js +48 -47
- package/dist/es/inputs/BooleanInput/index.js +8 -7
- package/dist/es/inputs/CheckboxGroupInput/CheckboxGroupInput.js +64 -63
- package/dist/es/inputs/CheckboxGroupInput/components/CheckboxGroup.js +37 -36
- package/dist/es/inputs/CheckboxGroupInput/index.js +7 -6
- package/dist/es/inputs/DateRangeInput/DateRangeInput.js +84 -84
- package/dist/es/inputs/DateRangeInput/index.js +8 -7
- package/dist/es/inputs/DateTimeInput/DateTimeInput.js +60 -59
- package/dist/es/inputs/DateTimeInput/index.js +8 -7
- package/dist/es/inputs/MaskedTextInput/MaskedTextInput.js +34 -33
- package/dist/es/inputs/MaskedTextInput/components/MaskedInputComponent.js +9 -8
- package/dist/es/inputs/MaskedTextInput/index.js +7 -6
- package/dist/es/inputs/NumberInput/NumberInput.js +25 -24
- package/dist/es/inputs/NumberInput/index.js +8 -7
- package/dist/es/inputs/RadioGroupInput/RadioGroupInput.js +62 -61
- package/dist/es/inputs/RadioGroupInput/components/RadioGroup.js +27 -26
- package/dist/es/inputs/RadioGroupInput/index.js +6 -5
- package/dist/es/inputs/SelectInput/SelectInput.js +36 -35
- package/dist/es/inputs/SelectInput/index.js +6 -5
- package/dist/es/inputs/SliderInput/SliderInput.js +75 -76
- package/dist/es/inputs/SliderInput/components/Slider.js +38 -38
- package/dist/es/inputs/SliderInput/index.js +8 -7
- package/dist/es/inputs/TagInput/TagInput.js +88 -87
- package/dist/es/inputs/TagInput/index.js +6 -5
- package/dist/es/inputs/TextInput/TextInput.js +32 -31
- package/dist/es/inputs/TextInput/index.js +6 -5
- package/dist/es/inputs/_components/FormControlLabel.js +11 -10
- package/dist/es/inputs/_components/MenuItem.js +18 -17
- package/dist/es/item/ItemCard/ItemCard.js +56 -55
- package/dist/es/item/ItemCard/components/ItemCardMedia.js +14 -13
- package/dist/es/item/ItemCard/index.js +8 -7
- package/dist/es/item/ItemList/ItemList.js +39 -39
- package/dist/es/item/ItemList/index.js +9 -8
- package/dist/es/item/ItemListItem/ItemListItem.js +32 -31
- package/dist/es/item/ItemListItem/index.js +9 -8
- package/dist/es/item/ItemPoster/ItemPoster.js +32 -45
- package/dist/es/item/ItemPoster/index.js +9 -8
- package/dist/es/item/ItemPosterList/ItemPosterList.js +27 -26
- package/dist/es/item/ItemPosterList/index.js +7 -6
- package/dist/es/item/ItemPosterViewer/ItemPosterViewer.js +47 -60
- package/dist/es/item/ItemPosterViewer/components/Toolbar.js +18 -17
- package/dist/es/item/ItemPosterViewer/index.js +9 -8
- package/dist/es/item/ItemTable/ItemTable.js +49 -50
- package/dist/es/item/ItemTable/components/ItemTableHead.js +22 -21
- package/dist/es/item/ItemTable/index.js +9 -8
- package/dist/es/item/ItemTableRow/ItemTableRow.js +38 -38
- package/dist/es/item/ItemTableRow/index.js +6 -5
- package/dist/es/item/ItemThumbnail/ItemThumbnail.js +46 -57
- package/dist/es/item/ItemThumbnail/index.js +9 -8
- package/dist/es/metadata/MetadataGroupTreeView/MetadataGroupTreeView.d.ts +16 -0
- package/dist/es/metadata/MetadataGroupTreeView/MetadataGroupTreeView.js +63 -0
- package/dist/es/metadata/MetadataGroupTreeView/index.d.ts +2 -0
- package/dist/es/metadata/MetadataGroupTreeView/index.js +12 -0
- package/dist/es/metadata/index.d.ts +1 -0
- package/dist/es/search/SearchFilterForm/SearchFilterForm.js +34 -33
- package/dist/es/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.js +75 -75
- package/dist/es/search/SearchFilterForm/index.js +8 -7
- package/dist/es/search/SearchFilterForm/utils/mapValuesToFilter.js +11 -15
- package/dist/es/shape/ShapeMediaBadges/ShapeMediaBadges.js +22 -21
- package/dist/es/shape/ShapeMediaBadges/index.js +7 -6
- package/dist/es/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.js +21 -20
- package/dist/es/transcode/TranscodePresetMediaBadges/index.js +8 -7
- package/package.json +14 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const l=require("react/jsx-runtime"),i=require("react"),U=require("@mui/material/Paper"),E=require("@mui/material/Box"),c=require("@mui/material/styles"),F=require("./components/Toolbar.js"),L=require("../../general/BlurredBackground/index.js"),V=c.styled(U,{shouldForwardProp:o=>o!=="toolbarOnBottom"})(({toolbarOnBottom:o})=>({display:"grid",gridTemplateAreas:o?'"poster" "toolbar"':'"toolbar" "poster"',gridTemplateRows:o?"auto min-content":"min-content auto",maxWidth:"100%",width:"100%",height:"100%",position:"relative"})),N=c.styled(F)({gridArea:"toolbar",maxHeight:"48px",zIndex:25,"&:focus-visible":{outline:"none"}}),O=c.styled(L,{shouldForwardProp:o=>o!=="toolbarOnBottom"})(({toolbarOnBottom:o})=>({transition:"all .6s ease-in-out",height:"calc(100% - 48px)",width:"100%",position:"absolute",zIndex:0,...o?{top:0}:{bottom:0}})),H=c.styled(E,{shouldForwardProp:o=>!["image","backgroundSize"].includes(o)})(({image:o,backgroundSize:a})=>({height:"inherit",width:"inherit",position:"relative",zIndex:5,transition:"all .3s ease-in-out",background:o?`url(${o})`:"none",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:a,"&:focus-visible":{outline:"none"}})),W={Root:V,Toolbar:N,BlurredBackground:O,ImageBox:H},B=({itemType:o,index:a,showBlurredBackground:u,backgroundSize:k,toolbarOnBottom:h,onPrevious:b,onNext:f,onClose:P,onDownload:R,components:S,componentsProps:s})=>{const{Root:q,Toolbar:z,BlurredBackground:D,ImageBox:T}=S,{posters:{uri:r=[]}={}}=o||{},g=a!==void 0,m=i.useRef(0),[j,v]=i.useState(0),d=g?a:j,t=r[d],[C,A]=i.useState(t),I=e=>{g||v(n=>n>0?n-1:r.length-1),b&&b(e,d>0?d-1:r.length-1)},w=e=>{g||v(n=>(n+1)%r.length),f&&f(e,(d+1)%r.length)},x=e=>{e.stopPropagation(),e.code==="ArrowRight"&&w(e),e.code==="ArrowLeft"&&I(e)},y=i.useCallback(e=>{const n=(K,M)=>()=>{m.current===M&&A(t),K.remove()},p=document.createElement("img");p.src=e,m.current+=1,p.addEventListener("load",n(p,m.current))},[t]);return i.useEffect(()=>{u&&y(t)},[t,u,y]),l.jsxs(q,{toolbarOnBottom:h,onKeyDown:x,...s.root,children:[l.jsx(z,{onPrevious:I,onNext:w,onClose:P,onDownload:e=>R(e,{url:t,itemType:o}),tabIndex:-1,onKeyDown:x,...s.toolbar}),u&&l.jsx(D,{image:C,toolbarOnBottom:h,...s.blurredBackground}),l.jsx(T,{component:"div",image:t,backgroundSize:k,tabIndex:-1,onKeyDown:x,...s.imageBox})]})};B.defaultProps={itemType:void 0,index:void 0,showBlurredBackground:!0,backgroundSize:"auto",onPrevious:void 0,onNext:void 0,onClose:void 0,onDownload:void 0,toolbarOnBottom:!1,components:W,componentsProps:void 0};const $=B;module.exports=$;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),l=require("@mui/icons-material/esm/Close"),x=require("@mui/icons-material/esm/NavigateBefore"),j=require("@mui/icons-material/esm/NavigateNext"),u=require("@mui/icons-material/esm/SaveAlt"),a=require("@mui/material/Toolbar"),i=require("@mui/material/Box"),o=require("@mui/material/IconButton"),r=({onPrevious:t,onNext:c,onClose:s,onDownload:n,...d})=>e.jsx(a,{...d,children:e.jsxs(i,{display:"flex",justifyContent:"space-between",width:"100%",children:[s?e.jsx(o,{edge:"start",onClick:s,children:e.jsx(l,{})}):e.jsx("span",{}),e.jsxs(i,{children:[e.jsx(o,{onClick:t,children:e.jsx(x,{})}),e.jsx(o,{onClick:c,children:e.jsx(j,{})})]}),n?e.jsx(o,{edge:"end",onClick:n,children:e.jsx(u,{})}):e.jsx("span",{})]})});r.defaultProps={onPrevious:void 0,onNext:void 0,onClose:void 0,onDownload:void 0};const h=r;module.exports=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const s=require("@mui/material/styles"),n=require("./ItemPosterViewer.js"),i=require("../../_utils/withOverrides.js"),e="ItemPosterViewer",t=`Vdt${e}`,c=i.withOverrides(t)(n),o=s.styled(c,{name:t,overridesResolver:(m,r)=>r.root})({});o.displayName=e;const d=o;module.exports=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),k=require("react"),G=require("@mui/material/Table"),J=require("@mui/material/TableBody"),K=require("@mui/material/TableRow"),O=require("@mui/material/TableCell"),Q=require("../ItemTableRow/index.js"),U=require("./components/ItemTableHead.js"),W=require("../../_utils/showSlot.js"),X=({rows:s,onCheck:d})=>r.jsx(K,{children:r.jsx(O,{colSpan:s.length+(d?1:0),sx:{borderBottom:"none"},children:"No items found..."})}),Y={Root:G,TableHead:U,TableBody:J,TableRow:Q},m=({itemListType:s,rows:d,size:q,avatarVariant:w,stickyHeader:C,showAvatar:b,onRowClick:R,checked:u,onCheck:c,isLoading:i,amountLoading:j,emptySlot:S,components:g,componentsProps:M})=>{const{Root:A,TableHead:B,TableBody:H,TableRow:I}=g,P=[...Array(Math.max(j,0)).keys()].map(n=>({key:n})),v=k.useMemo(()=>{var n;return((n=s==null?void 0:s.item)==null?void 0:n.map(o=>({key:o==null?void 0:o.id,itemType:o})))||[]},[s]),[z,x]=k.useState([]),e=u===void 0?z:u,E=c?(n,{value:o})=>{const{item:a=[]}=s||{},l=o===!0?[...e,...a].filter((t,h,V)=>h===V.findIndex(({id:D})=>t.id===D)):e.filter(({id:t})=>!a.some(h=>h.id===t));u===void 0&&x(()=>l),c(n,{itemListType:{item:l}})}:void 0,F=c?(n,{value:o,itemType:a})=>{const l=o===!0?[...e,a]:e.filter(({id:t})=>a.id!==t);u===void 0&&x(()=>l),c(n,{itemListType:{item:l}})}:void 0,f=(e==null?void 0:e.length)>0&&((s==null?void 0:s.item)||[]).every(n=>e.some(o=>n.id===o.id)),N=!f&&(e==null?void 0:e.length)>0&&((s==null?void 0:s.item)||[]).some(n=>e.some(o=>n.id===o.id));return r.jsxs(A,{size:q,stickyHeader:C,...M.root,children:[r.jsx(B,{rows:d,isLoading:i,checked:f,showAvatar:b,indeterminate:N,onCheck:E}),r.jsx(H,{children:r.jsxs(r.Fragment,{children:[!i&&v.length===0&&W.showSlot(S,{onCheck:c,rows:d}),(i?P:v).map(({key:n,itemType:o})=>r.jsx(I,{itemType:o,rows:d,isLoading:i,onClick:R,showAvatar:b,avatarVariant:w,checked:Array.isArray(e)&&e.some(({id:a})=>a===(o==null?void 0:o.id)),onCheck:F},n))]})})]})};m.defaultProps={itemListType:void 0,rows:[],size:"medium",avatarVariant:"square",stickyHeader:!1,checked:void 0,showAvatar:!0,isLoading:!1,amountLoading:3,onCheck:void 0,onRowClick:void 0,emptySlot:X,components:Y,componentsProps:void 0};const Z=m;module.exports=Z;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),u=require("@mui/material/Checkbox"),l=require("@mui/material/Skeleton"),c=require("@mui/material/TableCell"),j=require("@mui/material/TableHead"),p=require("@mui/material/TableRow"),n=({rows:o,isLoading:
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),u=require("@mui/material/Checkbox"),l=require("@mui/material/Skeleton"),c=require("@mui/material/TableCell"),j=require("@mui/material/TableHead"),p=require("@mui/material/TableRow"),n=({rows:o,isLoading:d,checked:x,showAvatar:a,indeterminate:r,onCheck:i,...h})=>s.jsx(j,{...h,children:s.jsxs(p,{children:[i&&s.jsx(c,{padding:"checkbox",children:d?s.jsx(l,{sx:{width:"18px",height:"36px",margin:"auto"}}):s.jsx(u,{checked:x||r,indeterminate:r,onChange:e=>{var t;return i(e,{value:(t=e==null?void 0:e.target)==null?void 0:t.checked})}})}),a&&s.jsx(c,{padding:"checkbox"}),o.map(({label:e},t)=>s.jsx(c,{children:e},typeof e=="string"?e:t))]})});n.defaultProps={};const g=n;module.exports=g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("@mui/material/styles"),n=require("
|
|
1
|
+
"use strict";const r=require("@mui/material/styles"),n=require("./ItemTable.js"),i=require("../../_utils/withOverrides.js"),e="ItemTable",t=`Vdt${e}`,c=i.withOverrides(t)(n),o=r.styled(c,{name:t,overridesResolver:(m,s)=>s.root})({});o.displayName=e;const d=o;module.exports=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),d=require("react"),
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),d=require("react"),g=require("@mui/material/TableRow"),M=require("@mui/material/TableCell"),S=require("@mui/material/Skeleton"),m=require("@mui/material/Checkbox"),p=require("@mui/material/styles"),I=require("../../entity/_utils/getEntityText.js"),H=require("../../entity/EntityTableRow/components/EntityTableCellAvatar.js"),V=require("../../entity/EntityTableRow/components/EntityTableCellCheckbox.js"),z=require("../../_utils/uuidv4.js"),B=p.styled(g)(({onClick:t})=>({...t?{cursor:"pointer"}:{}})),D={Root:B,TableCell:M,TableCellAvatar:H,TableCellCheckbox:V,Checkbox:m},h=({itemType:t,rows:r,defaultValue:s,checked:c,showAvatar:v,avatarVariant:x,isLoading:n,onClick:i,onCheck:u,components:k,componentsProps:l})=>{const{Root:f,TableCell:q,TableCellAvatar:T,TableCellCheckbox:j,Checkbox:R}=k,y=d.useMemo(()=>r.map(({value:e}={})=>I.getEntityText(e,{itemType:t})??s),[t,s,r]),[w,A]=d.useState(!1),a=c===void 0?w:c,C=typeof u!="function"?void 0:e=>{const b=!a;u(e,{value:b,itemType:t}),c===void 0&&A(b)},E=typeof i!="function"?void 0:e=>{e.target instanceof HTMLInputElement||i(e,{itemType:t})};return o.jsxs(f,{hover:!0,selected:a,onClick:E,...l.root,children:[C&&o.jsx(j,{itemType:t,isLoading:n,...l.tableCellCheckbox,children:o.jsx(R,{checked:a,onChange:C,...l.checkbox})}),v&&o.jsx(T,{itemType:t,isLoading:n,avatarVariant:x,...l.tableCellAvatar}),y.map(e=>o.jsx(q,{...l.tableCell,children:n?o.jsx(S,{}):typeof e=="string"&&e||""},z.uuidv4()))]})};h.defaultProps={itemType:void 0,defaultValue:void 0,rows:[],checked:void 0,showAvatar:!0,avatarVariant:"square",isLoading:!1,onClick:void 0,onCheck:void 0,components:D,componentsProps:void 0};const F=h;module.exports=F;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("@mui/material/styles"),n=require("
|
|
1
|
+
"use strict";const r=require("@mui/material/styles"),n=require("./ItemTableRow.js"),i=require("../../_utils/withOverrides.js"),e="ItemTableRow",t=`Vdt${e}`,c=i.withOverrides(t)(n),o=r.styled(c,{name:t,overridesResolver:(m,s)=>s.root})({});o.displayName=e;const d=o;module.exports=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),l=require("@mui/material/Box"),n=require("@mui/material/styles"),j=require("../../general/ScrubLine/index.js"),q=require("../../general/CornerLabelPlacer/index.js"),z=require("../../general/BlurredBackground/index.js"),P=n.styled(l)(({onClick:e})=>({height:"100%",width:"100%",...e&&{cursor:"pointer"}})),R=n.styled(j)(()=>({position:"relative",zIndex:10})),V=n.styled(q)(()=>({height:"100%",width:"100%",position:"absolute",zIndex:15,top:0})),$=n.styled(z)(()=>({height:"100%",width:"100%",position:"absolute",zIndex:0,top:0})),E=n.styled(l,{shouldForwardProp:e=>!["image","cover"].includes(e)})(({image:e,cover:r})=>({height:"inherit",width:"inherit",position:"relative",zIndex:5,transition:"all .3s ease-in-out",background:e?`url(${e})`:"none",backgroundPosition:"center",backgroundRepeat:"no-repeat",...r?{backgroundSize:"cover"}:{backgroundSize:"contain"}})),F={Root:P,ScrubLine:R,CornerLabelPlacer:V,BlurredBackground:$,ImageBox:E},u=({itemType:e,thumbnailIndex:r,placeholderImage:a,showBlurredBackground:b,label:h,cover:g,showScrub:x,scrubLabel:v,scrubPosition:B,onClick:d,onMouseMove:p,onMouseEnter:k,onMouseLeave:y,components:S,componentsProps:o})=>{var c;const{Root:m,ScrubLine:L,BlurredBackground:I,ImageBox:w,CornerLabelPlacer:f}=S,{thumbnails:i}=e||{},s=((c=i==null?void 0:i.uri)==null?void 0:c[r])||a,C=typeof d!="function"?void 0:M=>{d(M,{itemType:e,thumbnailIndex:r})};return t.jsx(m,{onClick:C,...o.root,children:t.jsxs(L,{show:x,label:v,position:B,onMouseMove:p,onMouseEnter:k,onMouseLeave:y,...o.scrubLine,children:[b&&t.jsx(I,{image:s,...o.blurredBackground}),t.jsx(w,{component:"div",image:s,cover:g,...o.imageBox}),t.jsx(f,{labelBottomRight:h,...o.cornerLabelPlacer})]})})};u.defaultProps={itemType:void 0,thumbnailIndex:0,label:void 0,placeholderImage:void 0,showBlurredBackground:!1,cover:!1,showScrub:!1,scrubLabel:void 0,scrubPosition:0,onClick:void 0,onMouseMove:void 0,onMouseEnter:void 0,onMouseLeave:void 0,components:F,componentsProps:void 0};const T=u;module.exports=T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const n=require("@mui/material/styles"),r=require("./ItemThumbnail.js"),i=require("../../_utils/withOverrides.js"),e="ItemThumbnail",t=`Vdt${e}`,m=i.withOverrides(t)(r),s=n.styled(m,{name:t,overridesResolver:(d,o)=>o.root})({});s.displayName=e;const c=s;module.exports=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),T=require("@mui/icons-material/esm/ChevronRight"),j=require("@mui/icons-material/esm/ExpandMore"),p=require("@mui/lab/TreeItem"),M=require("@mui/lab/TreeView"),i=require("@mui/material/styles"),b=require("@vidispine/vdt-js"),o=i.styled(p)(()=>({userSelect:"all","&:focus, &:hover, &.Mui-selected":{"& > .MuiTreeItem-content, .MuiTreeItem-label":{backgroundColor:"unset",cursor:"default"}},"& .Mui-selected":{backgroundColor:"unset !important"}})),g={Root:M,GroupTreeItem:o,FieldTreeItem:o},c=i.styled("span")(()=>({fontWeight:600,fontSize:".75rem"})),q=i.styled("span")(()=>({fontSize:".75rem"})),a=({group:n,components:m,componentsProps:r})=>{const{Root:I,GroupTreeItem:x,FieldTreeItem:f}=m,h=(e={})=>t.jsx(f,{nodeId:e.uuid,label:t.jsxs(t.Fragment,{children:[t.jsx(c,{children:`${e.name}: `}),t.jsx(q,{children:e.value.join(", ")})]}),...r.fieldTreeItem},e.uuid),l=(e={})=>{var u,d;return t.jsxs(x,{nodeId:e.uuid,label:t.jsx(c,{children:e.name}),...r.groupTreeItem,children:[((u=e.field)==null?void 0:u.length)>0?b.parseFieldList(e.field,{includeFieldAttributes:!0,fieldAsList:!0,arrayOnSingleValue:!0}).map(s=>h(s)):null,((d=e.group)==null?void 0:d.length)>0?e.group.map(s=>l(s)):null]},e.uuid)};return t.jsx(I,{defaultCollapseIcon:t.jsx(j,{}),defaultExpanded:[n==null?void 0:n.uuid],defaultExpandIcon:t.jsx(T,{}),sx:{maxWidth:400},...r.root,children:l(n)})};a.defaultProps={group:void 0,components:g,componentsProps:void 0};const v=a;module.exports=v;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("@mui/material/styles"),i=require("./MetadataGroupTreeView.js"),n=require("../../_utils/withOverrides.js"),e="MetadataGroupTreeView",t=`Vdt${e}`,a=n.withOverrides(t)(i),r=s.styled(a,{name:t,overridesResolver:(c,o)=>o.root})(()=>({}));r.displayName=e;const d=r;module.exports=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const p=require("react/jsx-runtime"),j=require("@mui/material/Box"),P=require("../../general/Form/index.js"),g=require("./hooks/UseSearchFilterFormInputs.js"),B=require("./utils/mapValuesToFilter.js"),E={Root:j,Form:P},f=({fieldList:u,facetList:a,dataToPropsMap:h,includeFacetsAsOptions:m,inputsProps:v,mapValuesToFilter:n,onClear:i,onReset:r,onChange:s,onSubmit:c,onError:d,components:x,componentsProps:l})=>{const{Root:C,Form:F}=x,e=g({fieldList:u,facetList:a,dataToPropsMap:h,includeFacetsAsOptions:m,inputsProps:v}),q=typeof i!="function"?void 0:(t,o)=>{i(t,{values:o,filter:n(o,e)})},y=typeof r!="function"?void 0:(t,o)=>{r(t,{values:o,filter:n(o,e)})},R=typeof s!="function"?void 0:(t,o)=>{s(t,{values:o,filter:n(o,e)})},b=typeof c!="function"?void 0:(t,o)=>{c(t,{values:o,filter:n(o,e)})},S=typeof d!="function"?void 0:d;return p.jsx(C,{...l.root,children:p.jsx(F,{inputs:e,onClear:q,onReset:y,onChange:R,onSubmit:b,onError:S,...l.form})})};f.defaultProps={fieldList:void 0,facetList:void 0,includeFacetsAsOptions:!0,dataToPropsMap:{label:"label",helperText:"description",placeholder:"placeholder"},inputsProps:void 0,mapValuesToFilter:B,onClear:void 0,onReset:void 0,onChange:void 0,onSubmit:void 0,onError:void 0,components:E,componentsProps:void 0};const L=f;module.exports=L;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("react"),L=require("@vidispine/vdt-js"),V=require("../../../inputs/DateRangeInput/index.js"),W=require("../../../inputs/SliderInput/index.js"),X=require("../../../inputs/TagInput/index.js"),z=require("../../../inputs/TextInput/index.js"),B="Invalid value",H={TextInput:z,TagInput:X,SliderInput:W,DateRangeInput:V},O=({fieldList:N,facetList:R,includeFacetsAsOptions:g,dataToPropsMap:h,errorMessages:i,inputsProps:l})=>{const{TextInput:S,TagInput:T,SliderInput:d,DateRangeInput:q}=H,f=c.useMemo(()=>L.parseFieldDefinitionList(N),[N]),o=c.useMemo(()=>L.parseFacetList(R),[R]),
|
|
1
|
+
"use strict";const c=require("react"),L=require("@vidispine/vdt-js"),V=require("../../../inputs/DateRangeInput/index.js"),W=require("../../../inputs/SliderInput/index.js"),X=require("../../../inputs/TagInput/index.js"),z=require("../../../inputs/TextInput/index.js"),B="Invalid value",H={TextInput:z,TagInput:X,SliderInput:W,DateRangeInput:V},O=({fieldList:N,facetList:R,includeFacetsAsOptions:g,dataToPropsMap:h,errorMessages:i,inputsProps:l})=>{const{TextInput:S,TagInput:T,SliderInput:d,DateRangeInput:q}=H,f=c.useMemo(()=>L.parseFieldDefinitionList(N),[N]),o=c.useMemo(()=>L.parseFacetList(R),[R]),s=c.useCallback(e=>{const n=t=>{const u=e==null?void 0:e[t],r=i==null?void 0:i[t];if(u!==void 0)return{value:u,message:(typeof r=="function"?r(t):r)||B}};return{required:n("required"),minLength:n("minLength"),maxLength:n("maxLength"),min:n("minInclusive"),max:n("maxInclusive"),pattern:n("pattern")}},[i]),D=c.useCallback((e,n)=>n===void 0?e:e==null?void 0:e.map(t=>{const u=n==null?void 0:n[t.value];return{...t,...u?{count:u}:{}}}),[]),F=c.useCallback(({count:e,range:n},t)=>e?[...t,...Object.entries(e||{}).filter(([u])=>!(t!=null&&t.some(r=>r.value===u))).map(([u,r])=>({label:u,value:u,...r?{count:r}:{}}))]:n?[...t,...n.map(({start:u,end:r,count:m},b)=>{const E=(()=>u==="*"&&r==="*"?"*":u==="*"?`<= ${r}`:r==="*"?`>= ${u}`:`${u} - ${r}`)(),v=[u==="*"?Number.MIN_SAFE_INTEGER:Number(u),r==="*"?Number.MAX_SAFE_INTEGER:Number(r)];return{label:E,value:b+1,...u!==void 0&&r!==void 0?{rangeValues:v}:{},...m?{count:m}:{}}})]:t,[]),_=e=>["float","integer","long"].includes(e),I=e=>["string","string-exact"].includes(e),$=e=>e==="date",k=c.useCallback(({type:e,options:n})=>I(e)?{freeSolo:!0,multiple:!0,placeholder:"",showChipCount:!0}:_(e)?{range:!0,valueLabelDisplay:"auto",showMarks:!1,...n!=null&&n.length?{}:{step:1,infiniteMin:!0,infiniteMax:!0}}:$(e)?{}:{},[]),x=c.useCallback(({type:e})=>I(e)?T:_(e)?d:$(e)?q:S,[q,d,T,S]);return c.useMemo(()=>f==null?void 0:f.map(({name:e,restrictions:n,options:t,type:u,data:r,defaultValue:m})=>{var M,j;const b={...(l==null?void 0:l[u])||{},...(l==null?void 0:l[e])||{}},E=s(n),v=(M=o==null?void 0:o.find(a=>a.fieldName===e))==null?void 0:M.count,U=(j=o==null?void 0:o.find(a=>a.fieldName===e))==null?void 0:j.range,C=D(t,v),A=g===!0?F({count:v,range:U},C):C,w={defaultValue:m&&I(u)?[m]:void 0,options:A,rules:E,...Object.fromEntries(Object.entries(h).map(([a,G])=>r[G]?[a,r[G]]:void 0).filter(a=>!!a)),...b},J={...k({type:u,options:A}),...w};return{name:e,Component:x({type:u}),...J}}),[D,F,h,x,k,s,g,l,o,f])},Q=O;module.exports=Q;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("@mui/material/styles"),
|
|
1
|
+
"use strict";const s=require("@mui/material/styles"),n=require("./SearchFilterForm.js"),i=require("../../_utils/withOverrides.js"),e="SearchFilterForm",t=`Vdt${e}`,c=i.withOverrides(t)(n),r=s.styled(c,{name:t,overridesResolver:(m,o)=>o.root})({});r.displayName=e;const d=r;module.exports=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const N=require("../../../_utils/isDefinedValue.js"),I=(D,i)=>{const d=i==null?void 0:i.filter(({options:t})=>t==null?void 0:t.some(e=>!!(e!=null&&e.rangeValues))),V=t=>t.every(e=>typeof e=="number"),m=t=>{if(!t)return!1;const e=new Date(t);return e instanceof Date&&!Number.isNaN(e.getTime())},g=t=>m(t==null?void 0:t.start)||m(t==null?void 0:t.end),S=(t,e,s,a)=>{var c,f;if(Array.isArray(t))return V(t)?{range:[{value:[((c=e==null?void 0:e.find(r=>r.value===t[0]))==null?void 0:c.rangeValues[0])||t[0],((f=e==null?void 0:e.find(r=>r.value===t[1]))==null?void 0:f.rangeValues[1])||t[1]].map(r=>r===Number.MIN_SAFE_INTEGER&&{minimum:!0}||r===Number.MAX_SAFE_INTEGER&&{maximum:!0}||{value:r})}]}:{value:t.map(n=>({value:n}))};if(s){const n=new Date(t),r=new Date(t);return r.setDate(r.getDate()+1),{range:[{value:[{value:n.toISOString()},{value:r.toISOString()}]}]}}if(a){const n=(t==null?void 0:t.start)&&new Date(t==null?void 0:t.start),r=(t==null?void 0:t.end)&&new Date(t==null?void 0:t.end);return r&&r.setDate(r.getDate()+1),{range:[{value:[n?{value:n.toISOString()}:{minimum:!0},r?{value:r.toISOString()}:{maximum:!0}]}]}}return{value:[{value:t}]}};return Object.entries(D).filter(([,t])=>N.isDefinedValue(t,{includeDateRange:!0})).map(([t,e])=>{var s;return{name:t,field:[{name:t,...S(e,(s=d.find(a=>a.name===t))==null?void 0:s.options,m(e),g(e))}]}})},b=I;module.exports=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),m=require("@mui/material/Stack"),l=require("@mui/material/styles"),B=require("@vidispine/vdt-js"),q=require("../../_utils/generateBadges.js"),x=require("../../general/CompactBadge/index.js"),S=l.styled(m)(()=>({alignItems:"center"})),v={Root:S,CompactBadge:x},n=({shape:r,direction:a,spacing:e,dividerSlot:c,generateBadges:i,components:d,componentsProps:t})=>{const{Root:p,CompactBadge:u}=d,g=i(B.parseShapeType(r));return s.jsx(p,{direction:a,spacing:e>0?e:0,divider:c,...t.root,children:g.map(o=>s.jsx(u,{text:o,...t.compactBadge},o))})};n.defaultProps={shape:{},direction:"row",spacing:1,dividerSlot:void 0,generateBadges:q.generateBadges,components:v,componentsProps:void 0};const h=n;module.exports=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("@mui/material/styles"),
|
|
1
|
+
"use strict";const r=require("@mui/material/styles"),n=require("./ShapeMediaBadges.js"),i=require("../../_utils/withOverrides.js"),e="ShapeMediaBadges",t=`Vdt${e}`,d=i.withOverrides(t)(n),s=r.styled(d,{name:t,overridesResolver:(c,o)=>o.root})({});s.displayName=e;const a=s;module.exports=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),m=require("@mui/material/Stack"),l=require("@mui/material/styles"),B=require("@vidispine/vdt-js"),q=require("../../_utils/generateBadges.js"),v=require("../../general/CompactBadge/index.js"),x=l.styled(m)(()=>({alignItems:"center"})),S={Root:x,CompactBadge:v},r=({transcodePreset:n,direction:c,spacing:e,dividerSlot:a,generateBadges:d,components:i,componentsProps:t})=>{const{Root:u,CompactBadge:g}=i,p=d(B.parseTranscodePreset(n));return o.jsx(u,{direction:c,spacing:e>0?e:0,divider:a,...t.root,children:p.map(s=>o.jsx(g,{text:s,...t.compactBadge},s))})};r.defaultProps={transcodePreset:void 0,direction:"row",spacing:1,dividerSlot:void 0,generateBadges:q.generateBadges,components:S,componentsProps:void 0};const C=r;module.exports=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("@mui/material/styles"),n=require("./TranscodePresetMediaBadges.js"),d=require("../../_utils/withOverrides.js"),e="TranscodePresetMediaBadges",s=`Vdt${e}`,i=d.withOverrides(s)(n),t=r.styled(i,{name:s,overridesResolver:(a,o)=>o.root})({});t.displayName=e;const c=t;module.exports=c;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as J, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as v } from "react";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import K from "@mui/material/CardActionArea";
|
|
4
|
+
import N from "@mui/material/Collapse";
|
|
5
5
|
import { styled as i } from "@mui/material/styles";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const
|
|
6
|
+
import Q from "../../entity/EntityCard/components/EntityCardActions.js";
|
|
7
|
+
import U from "../../entity/EntityCard/components/EntityCardBase.js";
|
|
8
|
+
import X from "../../entity/EntityCard/components/EntityCardContent.js";
|
|
9
|
+
import Y from "../../entity/EntityCard/components/EntityCardHeader.js";
|
|
10
|
+
import Z from "./components/CollectionCardMedia.js";
|
|
11
|
+
const _ = i(U, {
|
|
12
12
|
shouldForwardProp: (d) => d !== "horizontal"
|
|
13
13
|
})(({
|
|
14
14
|
horizontal: d
|
|
@@ -20,7 +20,7 @@ const Z = i(Q, {
|
|
|
20
20
|
} : {
|
|
21
21
|
gridTemplateAreas: '"header" "actionArea" "content" "actions" "collapse"'
|
|
22
22
|
}
|
|
23
|
-
})),
|
|
23
|
+
})), $ = i(Y, {
|
|
24
24
|
shouldForwardProp: (d) => d !== "horizontal"
|
|
25
25
|
})(({
|
|
26
26
|
horizontal: d
|
|
@@ -31,7 +31,7 @@ const Z = i(Q, {
|
|
|
31
31
|
display: "none"
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
})),
|
|
34
|
+
})), T = i(Z, {
|
|
35
35
|
shouldForwardProp: (d) => !["horizontal", "mediaPadding", "mediaSize"].includes(d)
|
|
36
36
|
})(({
|
|
37
37
|
theme: d,
|
|
@@ -47,7 +47,7 @@ const Z = i(Q, {
|
|
|
47
47
|
height: c,
|
|
48
48
|
width: "100%"
|
|
49
49
|
}
|
|
50
|
-
})), x = i(
|
|
50
|
+
})), x = i(X, {
|
|
51
51
|
shouldForwardProp: (d) => d !== "horizontal"
|
|
52
52
|
})(({
|
|
53
53
|
horizontal: d,
|
|
@@ -55,9 +55,9 @@ const Z = i(Q, {
|
|
|
55
55
|
}) => ({
|
|
56
56
|
gridArea: "content",
|
|
57
57
|
paddingTop: d ? 0 : e.spacing(2)
|
|
58
|
-
})),
|
|
58
|
+
})), dd = i(Q)(() => ({
|
|
59
59
|
gridArea: "actions"
|
|
60
|
-
})),
|
|
60
|
+
})), ad = i(K)(() => ({
|
|
61
61
|
gridArea: "actionArea",
|
|
62
62
|
transition: "filter 0.25s ease-in-out",
|
|
63
63
|
"&:focus": {
|
|
@@ -66,73 +66,73 @@ const Z = i(Q, {
|
|
|
66
66
|
"& .MuiTouchRipple-root": {
|
|
67
67
|
zIndex: 10
|
|
68
68
|
}
|
|
69
|
-
})),
|
|
69
|
+
})), td = i(N)(() => ({
|
|
70
70
|
gridArea: "collapse"
|
|
71
|
-
})),
|
|
72
|
-
Root:
|
|
73
|
-
CardHeader:
|
|
74
|
-
CardMedia:
|
|
71
|
+
})), od = {
|
|
72
|
+
Root: _,
|
|
73
|
+
CardHeader: $,
|
|
74
|
+
CardMedia: T,
|
|
75
75
|
CardContent: x,
|
|
76
76
|
CardContentExpanded: x,
|
|
77
|
-
CardActions:
|
|
78
|
-
CardActionArea:
|
|
79
|
-
Collapse:
|
|
80
|
-
},
|
|
77
|
+
CardActions: dd,
|
|
78
|
+
CardActionArea: ad,
|
|
79
|
+
Collapse: td
|
|
80
|
+
}, M = ({
|
|
81
81
|
collectionType: d,
|
|
82
82
|
title: e,
|
|
83
83
|
subheader: C,
|
|
84
84
|
content: c,
|
|
85
|
-
expandedContent:
|
|
86
|
-
checked:
|
|
87
|
-
expanded:
|
|
85
|
+
expandedContent: m,
|
|
86
|
+
checked: s,
|
|
87
|
+
expanded: l,
|
|
88
88
|
horizontal: r,
|
|
89
|
-
mediaPadding:
|
|
90
|
-
mediaSize:
|
|
91
|
-
menuOptions:
|
|
92
|
-
actions:
|
|
89
|
+
mediaPadding: V,
|
|
90
|
+
mediaSize: S,
|
|
91
|
+
menuOptions: k,
|
|
92
|
+
actions: w,
|
|
93
93
|
onClick: A,
|
|
94
|
-
onCheck:
|
|
94
|
+
onCheck: u,
|
|
95
95
|
onExpand: h,
|
|
96
|
-
onOptionClick:
|
|
97
|
-
onActionClick:
|
|
98
|
-
components:
|
|
96
|
+
onOptionClick: H,
|
|
97
|
+
onActionClick: b,
|
|
98
|
+
components: E,
|
|
99
99
|
componentsProps: a
|
|
100
100
|
}) => {
|
|
101
101
|
const {
|
|
102
|
-
Root:
|
|
103
|
-
CardHeader:
|
|
104
|
-
CardActionArea:
|
|
105
|
-
CardMedia:
|
|
106
|
-
CardContent:
|
|
107
|
-
CardContentExpanded:
|
|
108
|
-
CardActions:
|
|
109
|
-
Collapse:
|
|
110
|
-
} =
|
|
111
|
-
var
|
|
112
|
-
const n = (
|
|
113
|
-
|
|
102
|
+
Root: y,
|
|
103
|
+
CardHeader: F,
|
|
104
|
+
CardActionArea: z,
|
|
105
|
+
CardMedia: L,
|
|
106
|
+
CardContent: O,
|
|
107
|
+
CardContentExpanded: R,
|
|
108
|
+
CardActions: j,
|
|
109
|
+
Collapse: I
|
|
110
|
+
} = E, [P, W] = v(s), [q, B] = v(l), D = (t) => {
|
|
111
|
+
var g;
|
|
112
|
+
const n = (g = t == null ? void 0 : t.target) == null ? void 0 : g.checked;
|
|
113
|
+
u && u(t, {
|
|
114
114
|
value: n,
|
|
115
115
|
collectionType: d
|
|
116
|
-
}),
|
|
117
|
-
},
|
|
116
|
+
}), s === void 0 && W(n);
|
|
117
|
+
}, G = (t, {
|
|
118
118
|
value: n
|
|
119
119
|
}) => {
|
|
120
120
|
h && h(t, {
|
|
121
121
|
value: n,
|
|
122
122
|
collectionType: d
|
|
123
|
-
}),
|
|
124
|
-
}, f =
|
|
125
|
-
return /* @__PURE__ */
|
|
126
|
-
/* @__PURE__ */ o(
|
|
127
|
-
/* @__PURE__ */ o(
|
|
123
|
+
}), l === void 0 && B(n);
|
|
124
|
+
}, f = s !== void 0 ? s : P, p = l !== void 0 ? l : q;
|
|
125
|
+
return /* @__PURE__ */ J(y, { horizontal: r, checked: f, ...a.root, children: [
|
|
126
|
+
/* @__PURE__ */ o(F, { collectionType: d, title: e, subheader: C, menuOptions: k, horizontal: r, onOptionClick: H, ...a.cardHeader }),
|
|
127
|
+
/* @__PURE__ */ o(z, { disabled: A === void 0, onClick: (t) => A(t, {
|
|
128
128
|
collectionType: d
|
|
129
|
-
}), ...a.cardActionArea, children: /* @__PURE__ */ o(
|
|
130
|
-
/* @__PURE__ */ o(
|
|
131
|
-
/* @__PURE__ */ o(
|
|
132
|
-
/* @__PURE__ */ o(
|
|
129
|
+
}), ...a.cardActionArea, children: /* @__PURE__ */ o(L, { collectionType: d, mediaSize: S, mediaPadding: V, horizontal: r, showCombined: !r, ...a.cardMedia }) }),
|
|
130
|
+
/* @__PURE__ */ o(O, { collectionType: d, content: c, horizontal: r, ...a.cardContent }),
|
|
131
|
+
/* @__PURE__ */ o(j, { collectionType: d, checked: f, expanded: p, actions: w, onCheck: u ? D : null, onExpand: m ? G : null, onActionClick: b, ...a.cardActions }),
|
|
132
|
+
/* @__PURE__ */ o(I, { in: p && m !== void 0, timeout: "auto", unmountOnExit: !0, ...a.collapse, children: /* @__PURE__ */ o(R, { collectionType: d, content: m, WebkitLineClamp: 0, ...a.cardContentExpanded }) })
|
|
133
133
|
] });
|
|
134
134
|
};
|
|
135
|
-
|
|
135
|
+
M.defaultProps = {
|
|
136
136
|
collectionType: void 0,
|
|
137
137
|
onClick: void 0,
|
|
138
138
|
title: "id",
|
|
@@ -150,9 +150,10 @@ od.defaultProps = {
|
|
|
150
150
|
onExpand: void 0,
|
|
151
151
|
onOptionClick: void 0,
|
|
152
152
|
onActionClick: void 0,
|
|
153
|
-
components:
|
|
153
|
+
components: od,
|
|
154
154
|
componentsProps: void 0
|
|
155
155
|
};
|
|
156
|
+
const Ad = M;
|
|
156
157
|
export {
|
|
157
|
-
|
|
158
|
+
Ad as default
|
|
158
159
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import a from "@mui/material/CardMedia";
|
|
3
3
|
import l from "../../CollectionRepresentativeThumbnail/index.js";
|
|
4
|
-
const
|
|
5
|
-
collectionType:
|
|
6
|
-
showCombined:
|
|
7
|
-
collectionRepresentativeThumbnail:
|
|
8
|
-
...
|
|
9
|
-
}) => /* @__PURE__ */ o(
|
|
10
|
-
|
|
4
|
+
const e = ({
|
|
5
|
+
collectionType: i,
|
|
6
|
+
showCombined: t,
|
|
7
|
+
collectionRepresentativeThumbnail: d,
|
|
8
|
+
...r
|
|
9
|
+
}) => /* @__PURE__ */ o(a, { ...r, children: /* @__PURE__ */ o(l, { collectionType: i, showCombined: t, ...d ?? {} }) });
|
|
10
|
+
e.defaultProps = {
|
|
11
11
|
collectionType: void 0,
|
|
12
12
|
showCombined: void 0,
|
|
13
13
|
collectionRepresentativeThumbnail: void 0
|
|
14
14
|
};
|
|
15
|
+
const p = e;
|
|
15
16
|
export {
|
|
16
|
-
|
|
17
|
+
p as default
|
|
17
18
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { styled as r } from "@mui/material/styles";
|
|
2
|
-
import { withOverrides as n } from "../../_utils/withOverrides.js";
|
|
3
2
|
import m from "./CollectionCard.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { withOverrides as s } from "../../_utils/withOverrides.js";
|
|
4
|
+
const o = "CollectionCard", t = `Vdt${o}`, d = s(t)(m), e = r(d, {
|
|
5
|
+
name: t,
|
|
6
|
+
overridesResolver: (i, n) => n.root
|
|
7
7
|
})({});
|
|
8
|
-
|
|
8
|
+
e.displayName = o;
|
|
9
|
+
const c = e;
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
c as default
|
|
11
12
|
};
|
|
@@ -1,60 +1,59 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { styled as
|
|
7
|
-
import { uuidv4 as d } from "../../_utils/uuidv4.js";
|
|
8
|
-
import "clsx";
|
|
9
|
-
import { showSlot as D } from "../../_utils/showSlot.js";
|
|
1
|
+
import { jsxs as n, jsx as m, Fragment as k } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as b } from "react";
|
|
3
|
+
import x from "@mui/material/List";
|
|
4
|
+
import j from "@mui/material/ListSubheader";
|
|
5
|
+
import w from "@mui/material/Typography";
|
|
6
|
+
import { styled as D } from "@mui/material/styles";
|
|
10
7
|
import R from "../CollectionListItem/index.js";
|
|
11
|
-
|
|
8
|
+
import { uuidv4 as a } from "../../_utils/uuidv4.js";
|
|
9
|
+
import { showSlot as V } from "../../_utils/showSlot.js";
|
|
10
|
+
const q = () => /* @__PURE__ */ m(w, { children: "No collections found..." }), A = D(x)(() => ({
|
|
12
11
|
width: "100%",
|
|
13
12
|
padding: 0
|
|
14
13
|
})), E = {
|
|
15
14
|
Root: A,
|
|
16
|
-
ListSubheader:
|
|
15
|
+
ListSubheader: j,
|
|
17
16
|
ListItem: R
|
|
18
|
-
},
|
|
17
|
+
}, d = ({
|
|
19
18
|
collectionListType: t,
|
|
20
|
-
header:
|
|
21
|
-
primary:
|
|
19
|
+
header: l,
|
|
20
|
+
primary: u,
|
|
22
21
|
secondary: p,
|
|
23
|
-
avatarVariant:
|
|
22
|
+
avatarVariant: c,
|
|
24
23
|
dense: f,
|
|
25
24
|
amountLoading: h,
|
|
26
25
|
isLoading: e,
|
|
27
|
-
onListItemClick:
|
|
26
|
+
onListItemClick: L,
|
|
28
27
|
onListItemDelete: y,
|
|
29
|
-
emptySlot:
|
|
30
|
-
components:
|
|
28
|
+
emptySlot: I,
|
|
29
|
+
components: S,
|
|
31
30
|
componentsProps: i
|
|
32
31
|
}) => {
|
|
33
32
|
const {
|
|
34
33
|
Root: v,
|
|
35
|
-
ListSubheader:
|
|
34
|
+
ListSubheader: C,
|
|
36
35
|
ListItem: M
|
|
37
|
-
} =
|
|
38
|
-
key:
|
|
39
|
-
})), s =
|
|
36
|
+
} = S, g = [...Array(Math.max(h, 0)).keys()].map(() => ({
|
|
37
|
+
key: a()
|
|
38
|
+
})), s = b(() => {
|
|
40
39
|
var o;
|
|
41
40
|
return ((o = t == null ? void 0 : t.collection) == null ? void 0 : o.map((r) => ({
|
|
42
|
-
key:
|
|
41
|
+
key: a(),
|
|
43
42
|
collectionType: r
|
|
44
43
|
}))) || [];
|
|
45
44
|
}, [t.collection]);
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */ m(
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
!e && s.length === 0 &&
|
|
45
|
+
return /* @__PURE__ */ n(v, { dense: f, ...i.root, children: [
|
|
46
|
+
/* @__PURE__ */ m(C, { ...i.listSubheader, children: l }),
|
|
47
|
+
/* @__PURE__ */ n(k, { children: [
|
|
48
|
+
!e && s.length === 0 && V(I),
|
|
50
49
|
(e ? g : s).map(({
|
|
51
50
|
key: o,
|
|
52
51
|
collectionType: r
|
|
53
|
-
}) => /* @__PURE__ */ m(M, { collectionType: r, primary:
|
|
52
|
+
}) => /* @__PURE__ */ m(M, { collectionType: r, primary: u, secondary: p, avatarVariant: c, isLoading: e, onClick: L, onDelete: y, ...i.listItem }, o))
|
|
54
53
|
] })
|
|
55
54
|
] });
|
|
56
55
|
};
|
|
57
|
-
|
|
56
|
+
d.defaultProps = {
|
|
58
57
|
collectionListType: {},
|
|
59
58
|
header: void 0,
|
|
60
59
|
primary: "id",
|
|
@@ -69,6 +68,7 @@ F.defaultProps = {
|
|
|
69
68
|
components: E,
|
|
70
69
|
componentsProps: void 0
|
|
71
70
|
};
|
|
71
|
+
const P = d;
|
|
72
72
|
export {
|
|
73
|
-
|
|
73
|
+
P as default
|
|
74
74
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { styled as r } from "@mui/material/styles";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const o = "CollectionList", t = `Vdt${o}`,
|
|
2
|
+
import m from "./CollectionList.js";
|
|
3
|
+
import { withOverrides as s } from "../../_utils/withOverrides.js";
|
|
4
|
+
const o = "CollectionList", t = `Vdt${o}`, i = s(t)(m), e = r(i, {
|
|
5
5
|
name: t,
|
|
6
|
-
overridesResolver: (
|
|
6
|
+
overridesResolver: (p, n) => n.root
|
|
7
7
|
})({});
|
|
8
|
-
|
|
8
|
+
e.displayName = o;
|
|
9
|
+
const a = e;
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
a as default
|
|
11
12
|
};
|