@vidispine/vdt-mui 23.3.0-pre.3 → 23.3.0-pre.5
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,35 +1,35 @@
|
|
|
1
1
|
import { jsx as B, jsxs as I } from "react/jsx-runtime";
|
|
2
2
|
import x from "@mui/material/Box";
|
|
3
3
|
import { styled as d } from "@mui/material/styles";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import v from "../BlurredBackground/index.js";
|
|
5
|
+
const b = ({
|
|
6
6
|
amountOfImages: o,
|
|
7
7
|
maxColumns: n
|
|
8
8
|
}) => {
|
|
9
|
-
const r = Math.min(n, o),
|
|
9
|
+
const r = Math.min(n, o), c = Math.ceil(o / r), s = o % r || r;
|
|
10
10
|
return {
|
|
11
11
|
amountOfImages: o,
|
|
12
12
|
amountOfColumns: r,
|
|
13
|
-
amountOfRows:
|
|
14
|
-
amountOfImagesOnLastRow:
|
|
13
|
+
amountOfRows: c,
|
|
14
|
+
amountOfImagesOnLastRow: s
|
|
15
15
|
};
|
|
16
|
-
},
|
|
16
|
+
}, $ = (o, n, {
|
|
17
17
|
amountOfImages: r,
|
|
18
|
-
amountOfColumns:
|
|
19
|
-
amountOfRows:
|
|
18
|
+
amountOfColumns: c,
|
|
19
|
+
amountOfRows: s,
|
|
20
20
|
amountOfImagesOnLastRow: e
|
|
21
21
|
}) => {
|
|
22
|
-
const
|
|
23
|
-
return `${100 / Math.max(Math.min(
|
|
24
|
-
},
|
|
22
|
+
const u = Math.ceil((o + 1) / c) === s;
|
|
23
|
+
return `${100 / Math.max(Math.min(u && n ? e : c, r), 1)}%`;
|
|
24
|
+
}, j = d(x)(() => ({
|
|
25
25
|
width: "inherit",
|
|
26
26
|
height: "100%",
|
|
27
27
|
display: "flex",
|
|
28
28
|
flexWrap: "wrap"
|
|
29
|
-
})),
|
|
29
|
+
})), E = d(x)(() => ({
|
|
30
30
|
pointerEvents: "none",
|
|
31
31
|
position: "relative"
|
|
32
|
-
})),
|
|
32
|
+
})), L = d(x, {
|
|
33
33
|
shouldForwardProp: (o) => o !== "amountOfImages" && o !== "showSingleStretched"
|
|
34
34
|
})(({
|
|
35
35
|
amountOfImages: o,
|
|
@@ -40,47 +40,47 @@ const v = ({
|
|
|
40
40
|
position: "relative",
|
|
41
41
|
zIndex: 2,
|
|
42
42
|
objectFit: o === 1 && n ? "contain" : "cover"
|
|
43
|
-
})),
|
|
43
|
+
})), O = d(v)(() => ({
|
|
44
44
|
top: 0,
|
|
45
45
|
position: "absolute",
|
|
46
46
|
zIndex: 1
|
|
47
|
-
})),
|
|
48
|
-
Root:
|
|
49
|
-
ContainerBox:
|
|
50
|
-
ImageBox:
|
|
51
|
-
BlurredBackground:
|
|
52
|
-
},
|
|
47
|
+
})), z = {
|
|
48
|
+
Root: j,
|
|
49
|
+
ContainerBox: E,
|
|
50
|
+
ImageBox: L,
|
|
51
|
+
BlurredBackground: O
|
|
52
|
+
}, i = ({
|
|
53
53
|
images: o,
|
|
54
54
|
maxImages: n,
|
|
55
55
|
maxColumns: r,
|
|
56
|
-
showSingleStretched:
|
|
57
|
-
showLastRowStretched:
|
|
56
|
+
showSingleStretched: c,
|
|
57
|
+
showLastRowStretched: s,
|
|
58
58
|
showBlurredBackground: e,
|
|
59
|
-
onError:
|
|
59
|
+
onError: u,
|
|
60
60
|
components: p,
|
|
61
|
-
componentsProps:
|
|
61
|
+
componentsProps: h
|
|
62
62
|
}) => {
|
|
63
63
|
const {
|
|
64
|
-
Root:
|
|
65
|
-
ContainerBox:
|
|
64
|
+
Root: f,
|
|
65
|
+
ContainerBox: a,
|
|
66
66
|
ImageBox: M,
|
|
67
67
|
BlurredBackground: S
|
|
68
68
|
} = p;
|
|
69
69
|
if (!(o != null && o.length) || n < 0 || r < 0)
|
|
70
70
|
return null;
|
|
71
|
-
const w = Math.min(n, o.length), l =
|
|
71
|
+
const w = Math.min(n, o.length), l = b({
|
|
72
72
|
amountOfImages: w,
|
|
73
73
|
maxColumns: r
|
|
74
|
-
}),
|
|
75
|
-
return /* @__PURE__ */ B(
|
|
76
|
-
const
|
|
77
|
-
return /* @__PURE__ */ I(
|
|
78
|
-
e && /* @__PURE__ */ B(S, { image: t == null ? void 0 : t.src, blur: 30, grayscale: 0, ...
|
|
79
|
-
/* @__PURE__ */ B(M, { component: "img", src: t == null ? void 0 : t.src, alt: (t == null ? void 0 : t.alt) || (t == null ? void 0 : t.src), amountOfImages: w, showSingleStretched:
|
|
74
|
+
}), y = `${100 / ((l == null ? void 0 : l.amountOfRows) || 1)}%`;
|
|
75
|
+
return /* @__PURE__ */ B(f, { ...h.root, children: o.slice(0, n).map((t, R) => {
|
|
76
|
+
const k = $(R, s, l);
|
|
77
|
+
return /* @__PURE__ */ I(a, { width: k, height: y, ...h.containerBox, children: [
|
|
78
|
+
e && /* @__PURE__ */ B(S, { image: t == null ? void 0 : t.src, blur: 30, grayscale: 0, ...h.blurredBackground }),
|
|
79
|
+
/* @__PURE__ */ B(M, { component: "img", src: t == null ? void 0 : t.src, alt: (t == null ? void 0 : t.alt) || (t == null ? void 0 : t.src), amountOfImages: w, showSingleStretched: c, onError: (C) => u(C, t) })
|
|
80
80
|
] }, `${t == null ? void 0 : t.src}-${t == null ? void 0 : t.alt}`);
|
|
81
81
|
}) });
|
|
82
82
|
};
|
|
83
|
-
|
|
83
|
+
i.defaultProps = {
|
|
84
84
|
images: [],
|
|
85
85
|
maxColumns: 2,
|
|
86
86
|
maxImages: 4,
|
|
@@ -88,9 +88,10 @@ z.defaultProps = {
|
|
|
88
88
|
showLastRowStretched: !0,
|
|
89
89
|
showBlurredBackground: !1,
|
|
90
90
|
onError: () => null,
|
|
91
|
-
components:
|
|
91
|
+
components: z,
|
|
92
92
|
componentsProps: void 0
|
|
93
93
|
};
|
|
94
|
+
const P = i;
|
|
94
95
|
export {
|
|
95
|
-
|
|
96
|
+
P as default
|
|
96
97
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { styled as r } from "@mui/material/styles";
|
|
2
|
-
import { withOverrides as m } from "../../_utils/withOverrides.js";
|
|
3
2
|
import n from "./ImageCollage.js";
|
|
4
|
-
|
|
3
|
+
import { withOverrides as s } from "../../_utils/withOverrides.js";
|
|
4
|
+
const o = "ImageCollage", e = `Vdt${o}`, a = s(e)(n), t = r(a, {
|
|
5
5
|
name: e,
|
|
6
|
-
overridesResolver: (
|
|
6
|
+
overridesResolver: (d, m) => m.root
|
|
7
7
|
})({});
|
|
8
|
-
|
|
8
|
+
t.displayName = o;
|
|
9
|
+
const c = t;
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
c as default
|
|
11
12
|
};
|
|
@@ -1,61 +1,62 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as s, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import g from "@mui/icons-material/esm/Audiotrack";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
3
|
+
import D from "@mui/icons-material/esm/Image";
|
|
4
|
+
import v from "@mui/icons-material/esm/InsertDriveFile";
|
|
5
|
+
import x from "@mui/icons-material/esm/Movie";
|
|
6
|
+
import A from "@mui/icons-material/esm/NoteAdd";
|
|
7
|
+
import h from "@mui/icons-material/esm/Article";
|
|
8
|
+
import y from "@mui/icons-material/esm/DataThresholding";
|
|
9
|
+
import T from "@mui/icons-material/esm/PictureAsPdf";
|
|
10
|
+
import C from "@mui/icons-material/esm/QuestionMark";
|
|
11
11
|
import B from "@mui/material/Box";
|
|
12
|
-
import { styled as
|
|
13
|
-
const
|
|
12
|
+
import { styled as E } from "@mui/material/styles";
|
|
13
|
+
const F = E(B)(() => ({
|
|
14
14
|
display: "flex"
|
|
15
|
-
})),
|
|
16
|
-
Root:
|
|
17
|
-
PlaceholderIcon:
|
|
15
|
+
})), N = {
|
|
16
|
+
Root: F,
|
|
17
|
+
PlaceholderIcon: A,
|
|
18
18
|
AudioIcon: g,
|
|
19
|
-
ImageIcon:
|
|
20
|
-
VideoIcon:
|
|
21
|
-
DocumentIcon:
|
|
22
|
-
DataIcon:
|
|
23
|
-
PdfIcon:
|
|
24
|
-
NoneIcon:
|
|
25
|
-
FileIcon:
|
|
26
|
-
},
|
|
19
|
+
ImageIcon: D,
|
|
20
|
+
VideoIcon: x,
|
|
21
|
+
DocumentIcon: h,
|
|
22
|
+
DataIcon: y,
|
|
23
|
+
PdfIcon: T,
|
|
24
|
+
NoneIcon: C,
|
|
25
|
+
FileIcon: v
|
|
26
|
+
}, R = ["video", "audio", "image", "document", "data", "pdf", "none"], c = ({
|
|
27
27
|
type: e,
|
|
28
|
-
components:
|
|
28
|
+
components: t,
|
|
29
29
|
componentsProps: o
|
|
30
30
|
}) => {
|
|
31
31
|
const {
|
|
32
|
-
Root:
|
|
33
|
-
PlaceholderIcon:
|
|
34
|
-
AudioIcon:
|
|
35
|
-
ImageIcon:
|
|
36
|
-
VideoIcon:
|
|
37
|
-
DocumentIcon:
|
|
38
|
-
DataIcon:
|
|
39
|
-
PdfIcon:
|
|
40
|
-
NoneIcon:
|
|
41
|
-
FileIcon:
|
|
42
|
-
} =
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
!
|
|
32
|
+
Root: I,
|
|
33
|
+
PlaceholderIcon: d,
|
|
34
|
+
AudioIcon: a,
|
|
35
|
+
ImageIcon: r,
|
|
36
|
+
VideoIcon: m,
|
|
37
|
+
DocumentIcon: u,
|
|
38
|
+
DataIcon: f,
|
|
39
|
+
PdfIcon: l,
|
|
40
|
+
NoneIcon: M,
|
|
41
|
+
FileIcon: p
|
|
42
|
+
} = t, i = (e || "").toLowerCase();
|
|
43
|
+
return /* @__PURE__ */ s(I, { component: "span", ...o.root, children: [
|
|
44
|
+
i === "video" && /* @__PURE__ */ n(m, { ...o.videoIcon }),
|
|
45
|
+
i === "audio" && /* @__PURE__ */ n(a, { ...o.audioIcon }),
|
|
46
|
+
i === "image" && /* @__PURE__ */ n(r, { ...o.imageIcon }),
|
|
47
|
+
i === "document" && /* @__PURE__ */ n(u, { ...o.documentIcon }),
|
|
48
|
+
i === "data" && /* @__PURE__ */ n(f, { ...o.dataIcon }),
|
|
49
|
+
i === "pdf" && /* @__PURE__ */ n(l, { ...o.pdfIcon }),
|
|
50
|
+
i === "none" && /* @__PURE__ */ n(M, { ...o.noneIcon }),
|
|
51
|
+
!R.includes(i) && (typeof e == "string" ? /* @__PURE__ */ n(p, { ...o.fileIcon }) : /* @__PURE__ */ n(d, { ...o.placeholderIcon }))
|
|
52
52
|
] });
|
|
53
53
|
};
|
|
54
|
-
|
|
54
|
+
c.defaultProps = {
|
|
55
55
|
type: void 0,
|
|
56
|
-
components:
|
|
56
|
+
components: N,
|
|
57
57
|
componentsProps: void 0
|
|
58
58
|
};
|
|
59
|
+
const b = c;
|
|
59
60
|
export {
|
|
60
|
-
|
|
61
|
+
b as default
|
|
61
62
|
};
|
|
@@ -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 "./MediaIcon.js";
|
|
4
|
-
|
|
3
|
+
import { withOverrides as s } from "../../_utils/withOverrides.js";
|
|
4
|
+
const o = "MediaIcon", e = `Vdt${o}`, d = s(e)(m), t = r(d, {
|
|
5
5
|
name: e,
|
|
6
|
-
overridesResolver: (
|
|
6
|
+
overridesResolver: (i, n) => n.root
|
|
7
7
|
})(() => ({}));
|
|
8
|
-
|
|
8
|
+
t.displayName = o;
|
|
9
|
+
const l = t;
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
l as default
|
|
11
12
|
};
|
|
@@ -1,53 +1,54 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { styled as
|
|
6
|
-
const
|
|
1
|
+
import { jsxs as h, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import f from "@mui/material/MenuItem";
|
|
3
|
+
import g from "@mui/material/ListItemText";
|
|
4
|
+
import u from "@mui/material/Typography";
|
|
5
|
+
import { styled as x } from "@mui/material/styles";
|
|
6
|
+
const T = x(u)(({
|
|
7
7
|
theme: t
|
|
8
8
|
}) => ({
|
|
9
9
|
height: 24,
|
|
10
10
|
lineHeight: 1.7,
|
|
11
11
|
marginLeft: t.spacing(2)
|
|
12
|
-
})),
|
|
13
|
-
Root:
|
|
14
|
-
ListItemText:
|
|
15
|
-
Typography:
|
|
16
|
-
},
|
|
12
|
+
})), I = {
|
|
13
|
+
Root: f,
|
|
14
|
+
ListItemText: g,
|
|
15
|
+
Typography: T
|
|
16
|
+
}, r = ({
|
|
17
17
|
value: t,
|
|
18
|
-
label:
|
|
18
|
+
label: n,
|
|
19
19
|
count: e,
|
|
20
|
-
selected:
|
|
21
|
-
onClick:
|
|
22
|
-
components:
|
|
20
|
+
selected: m,
|
|
21
|
+
onClick: p,
|
|
22
|
+
components: s,
|
|
23
23
|
componentsProps: o,
|
|
24
24
|
/* Special case:
|
|
25
25
|
* Spreads additional props to root element.
|
|
26
26
|
* Mui's Menu relies on being passed several DOM props to function properly within inputs
|
|
27
27
|
*/
|
|
28
|
-
...
|
|
28
|
+
...d
|
|
29
29
|
}) => {
|
|
30
30
|
const {
|
|
31
|
-
Root:
|
|
32
|
-
ListItemText:
|
|
33
|
-
Typography:
|
|
34
|
-
} =
|
|
35
|
-
return /* @__PURE__ */
|
|
31
|
+
Root: l,
|
|
32
|
+
ListItemText: a,
|
|
33
|
+
Typography: c
|
|
34
|
+
} = s;
|
|
35
|
+
return /* @__PURE__ */ h(l, { value: t, selected: m, onClick: (y) => p(y, {
|
|
36
36
|
value: t
|
|
37
|
-
}), ...
|
|
38
|
-
/* @__PURE__ */ i(
|
|
39
|
-
e !== void 0 && /* @__PURE__ */ i(
|
|
37
|
+
}), ...d, ...o.root, children: [
|
|
38
|
+
/* @__PURE__ */ i(a, { ...o.listItemText, children: n || t }),
|
|
39
|
+
e !== void 0 && /* @__PURE__ */ i(c, { variant: "body2", color: "text.secondary", ...o.typography, children: e })
|
|
40
40
|
] });
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
r.defaultProps = {
|
|
43
43
|
value: void 0,
|
|
44
44
|
label: void 0,
|
|
45
45
|
count: void 0,
|
|
46
46
|
selected: !1,
|
|
47
47
|
onClick: void 0,
|
|
48
|
-
components:
|
|
48
|
+
components: I,
|
|
49
49
|
componentsProps: void 0
|
|
50
50
|
};
|
|
51
|
+
const j = r;
|
|
51
52
|
export {
|
|
52
|
-
|
|
53
|
+
j as default
|
|
53
54
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
name:
|
|
6
|
-
overridesResolver: (
|
|
1
|
+
import { styled as m } from "@mui/material/styles";
|
|
2
|
+
import r from "./MenuItem.js";
|
|
3
|
+
import { withOverrides as s } from "../../_utils/withOverrides.js";
|
|
4
|
+
const o = "MenuItem", e = `Vdt${o}`, p = s(e)(r), t = m(p, {
|
|
5
|
+
name: e,
|
|
6
|
+
overridesResolver: (d, n) => n.root
|
|
7
7
|
})({});
|
|
8
|
-
|
|
8
|
+
t.displayName = o;
|
|
9
|
+
const l = t;
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
l as default
|
|
11
12
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import
|
|
4
|
-
import { styled as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { jsxs as S, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as w } from "react";
|
|
3
|
+
import c from "@mui/material/Box";
|
|
4
|
+
import { styled as u } from "@mui/material/styles";
|
|
5
|
+
import F from "../CompactLabel/index.js";
|
|
6
|
+
const W = u(c)(() => ({
|
|
7
7
|
position: "relative",
|
|
8
8
|
width: "100%",
|
|
9
9
|
height: "100%"
|
|
10
|
-
})),
|
|
10
|
+
})), j = u(c)(() => ({
|
|
11
11
|
position: "absolute",
|
|
12
12
|
top: 0,
|
|
13
13
|
backgroundColor: "#FFF",
|
|
@@ -15,55 +15,55 @@ const F = c(u)(() => ({
|
|
|
15
15
|
height: "100%",
|
|
16
16
|
zIndex: 6,
|
|
17
17
|
opacity: 0.9
|
|
18
|
-
})),
|
|
18
|
+
})), z = u(c)(() => ({
|
|
19
19
|
height: "inherit",
|
|
20
20
|
zIndex: 3
|
|
21
|
-
})),
|
|
22
|
-
Root:
|
|
23
|
-
CompactLabel:
|
|
24
|
-
LineBox:
|
|
25
|
-
ContentBox:
|
|
26
|
-
},
|
|
27
|
-
position:
|
|
21
|
+
})), I = {
|
|
22
|
+
Root: W,
|
|
23
|
+
CompactLabel: F,
|
|
24
|
+
LineBox: j,
|
|
25
|
+
ContentBox: z
|
|
26
|
+
}, h = ({
|
|
27
|
+
position: a,
|
|
28
28
|
offset: p,
|
|
29
|
-
show:
|
|
29
|
+
show: m,
|
|
30
30
|
label: d,
|
|
31
|
-
children:
|
|
32
|
-
onMouseMove:
|
|
33
|
-
onMouseEnter:
|
|
34
|
-
onMouseLeave:
|
|
35
|
-
components:
|
|
31
|
+
children: x,
|
|
32
|
+
onMouseMove: M,
|
|
33
|
+
onMouseEnter: v,
|
|
34
|
+
onMouseLeave: B,
|
|
35
|
+
components: L,
|
|
36
36
|
componentsProps: e
|
|
37
37
|
}) => {
|
|
38
38
|
var l;
|
|
39
39
|
const {
|
|
40
|
-
Root:
|
|
40
|
+
Root: C,
|
|
41
41
|
LineBox: g,
|
|
42
|
-
CompactLabel:
|
|
43
|
-
ContentBox:
|
|
44
|
-
} =
|
|
42
|
+
CompactLabel: y,
|
|
43
|
+
ContentBox: b
|
|
44
|
+
} = L, f = w({
|
|
45
45
|
offsetWidth: void 0
|
|
46
|
-
}), n = (l = f.current) == null ? void 0 : l.offsetWidth,
|
|
46
|
+
}), n = (l = f.current) == null ? void 0 : l.offsetWidth, E = (o) => {
|
|
47
47
|
try {
|
|
48
48
|
return Math.round(o.getBoundingClientRect().left);
|
|
49
49
|
} catch {
|
|
50
50
|
return 0;
|
|
51
51
|
}
|
|
52
|
-
},
|
|
53
|
-
const t =
|
|
52
|
+
}, R = (o) => {
|
|
53
|
+
const t = E(o.currentTarget), r = o.clientX - t - p;
|
|
54
54
|
return r < 0 ? 0 : r > n ? n : r;
|
|
55
55
|
}, i = (o, t) => {
|
|
56
56
|
t && t(o, {
|
|
57
|
-
position:
|
|
57
|
+
position: R(o),
|
|
58
58
|
contentWidth: n
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
|
-
return /* @__PURE__ */
|
|
62
|
-
/* @__PURE__ */ s(g, { left:
|
|
63
|
-
/* @__PURE__ */ s(
|
|
61
|
+
return /* @__PURE__ */ S(C, { onMouseMove: (o) => i(o, M), onMouseEnter: (o) => i(o, v), onMouseLeave: (o) => i(o, B), ...e.root, children: [
|
|
62
|
+
/* @__PURE__ */ s(g, { left: a, display: m ? "block" : "none", ...e.lineBox, children: d && /* @__PURE__ */ s(y, { children: d }) }),
|
|
63
|
+
/* @__PURE__ */ s(b, { ref: f, ...e.contentBox, children: x })
|
|
64
64
|
] });
|
|
65
65
|
};
|
|
66
|
-
|
|
66
|
+
h.defaultProps = {
|
|
67
67
|
position: 0,
|
|
68
68
|
offset: 0,
|
|
69
69
|
show: !0,
|
|
@@ -72,9 +72,10 @@ I.defaultProps = {
|
|
|
72
72
|
onMouseLeave: void 0,
|
|
73
73
|
onMouseEnter: void 0,
|
|
74
74
|
children: null,
|
|
75
|
-
components:
|
|
75
|
+
components: I,
|
|
76
76
|
componentsProps: void 0
|
|
77
77
|
};
|
|
78
|
+
const X = h;
|
|
78
79
|
export {
|
|
79
|
-
|
|
80
|
+
X as default
|
|
80
81
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
import { withOverrides as n } from "../../_utils/withOverrides.js";
|
|
1
|
+
import { styled as n } from "@mui/material/styles";
|
|
3
2
|
import m from "./ScrubLine.js";
|
|
4
|
-
|
|
3
|
+
import { withOverrides as s } from "../../_utils/withOverrides.js";
|
|
4
|
+
const o = "ScrubLine", e = `Vdt${o}`, i = s(e)(m), t = n(i, {
|
|
5
5
|
name: e,
|
|
6
|
-
overridesResolver: (d,
|
|
6
|
+
overridesResolver: (d, r) => r.root
|
|
7
7
|
})({});
|
|
8
|
-
|
|
8
|
+
t.displayName = o;
|
|
9
|
+
const l = t;
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
l as default
|
|
11
12
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as V, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { useState as b } from "react";
|
|
3
3
|
import j from "@mui/material/Box";
|
|
4
4
|
import z from "@mui/material/Menu";
|
|
5
5
|
import { styled as u, alpha as E } from "@mui/material/styles";
|
|
@@ -21,7 +21,7 @@ const r = {
|
|
|
21
21
|
}), F = u(z)(() => ({
|
|
22
22
|
minWidth: 150,
|
|
23
23
|
marginTop: 4
|
|
24
|
-
})),
|
|
24
|
+
})), $ = u(A)(({
|
|
25
25
|
theme: t
|
|
26
26
|
}) => {
|
|
27
27
|
var e, a, n, l;
|
|
@@ -31,7 +31,7 @@ const r = {
|
|
|
31
31
|
color: (l = (n = t.palette) == null ? void 0 : n.secondary) == null ? void 0 : l.main
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
}),
|
|
34
|
+
}), q = u(W, {
|
|
35
35
|
shouldForwardProp: (t) => t !== "descending"
|
|
36
36
|
})(({
|
|
37
37
|
theme: t,
|
|
@@ -50,12 +50,12 @@ const r = {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
}),
|
|
53
|
+
}), w = {
|
|
54
54
|
Root: D,
|
|
55
55
|
Menu: F,
|
|
56
|
-
MenuItem:
|
|
57
|
-
ButtonBase:
|
|
58
|
-
},
|
|
56
|
+
MenuItem: $,
|
|
57
|
+
ButtonBase: q
|
|
58
|
+
}, B = ({
|
|
59
59
|
caption: t,
|
|
60
60
|
options: e,
|
|
61
61
|
initialSort: a,
|
|
@@ -65,36 +65,36 @@ const r = {
|
|
|
65
65
|
}) => {
|
|
66
66
|
var v, h;
|
|
67
67
|
const {
|
|
68
|
-
Root:
|
|
69
|
-
Menu:
|
|
70
|
-
MenuItem:
|
|
71
|
-
ButtonBase:
|
|
72
|
-
} = l, [g, p] =
|
|
68
|
+
Root: S,
|
|
69
|
+
Menu: y,
|
|
70
|
+
MenuItem: x,
|
|
71
|
+
ButtonBase: C
|
|
72
|
+
} = l, [g, p] = b(null), I = (o) => {
|
|
73
73
|
p(o.currentTarget);
|
|
74
74
|
}, f = () => {
|
|
75
75
|
p(null);
|
|
76
|
-
}, [d,
|
|
76
|
+
}, [d, O] = b(a || {
|
|
77
77
|
option: {
|
|
78
78
|
value: void 0,
|
|
79
79
|
label: void 0
|
|
80
80
|
},
|
|
81
81
|
direction: r.descending
|
|
82
|
-
}),
|
|
82
|
+
}), R = (o, M) => {
|
|
83
83
|
let {
|
|
84
84
|
option: s,
|
|
85
85
|
direction: c
|
|
86
86
|
} = d;
|
|
87
|
-
M !== s.value ? s = e.find((
|
|
87
|
+
M !== s.value ? s = e.find((L) => L.value === M) : c = c === r.descending ? r.ascending : r.descending, O({
|
|
88
88
|
option: s,
|
|
89
89
|
direction: c
|
|
90
90
|
}), n && n(o, {
|
|
91
91
|
value: s.value,
|
|
92
92
|
direction: c
|
|
93
93
|
}), f();
|
|
94
|
-
},
|
|
95
|
-
return /* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */ m(
|
|
97
|
-
/* @__PURE__ */ m(
|
|
94
|
+
}, k = e === void 0 || e.length === 0, T = d.direction !== r.ascending;
|
|
95
|
+
return /* @__PURE__ */ V(S, { ...i.root, children: [
|
|
96
|
+
/* @__PURE__ */ m(C, { onClick: I, disabled: k, label: t, optionLabel: d.option.label || "", descending: T, ...i.buttonBase }),
|
|
97
|
+
/* @__PURE__ */ m(y, { anchorEl: g, keepMounted: !0, open: !!g, onClose: f, elevation: 1, marginThreshold: 0, PaperProps: {
|
|
98
98
|
style: {
|
|
99
99
|
minWidth: 150,
|
|
100
100
|
marginTop: 4
|
|
@@ -107,17 +107,18 @@ const r = {
|
|
|
107
107
|
vertical: "top",
|
|
108
108
|
horizontal: "left",
|
|
109
109
|
...((h = i.menu) == null ? void 0 : h.transformOrigin) || {}
|
|
110
|
-
}, children: e.map((o) => /* @__PURE__ */ m(
|
|
110
|
+
}, children: e.map((o) => /* @__PURE__ */ m(x, { value: o.value, label: o.label, onClick: R, selected: o.value === d.option.value, ...i.menuItem }, o.value)) })
|
|
111
111
|
] });
|
|
112
112
|
};
|
|
113
|
-
|
|
113
|
+
B.defaultProps = {
|
|
114
114
|
caption: "Sort by",
|
|
115
115
|
onChange: void 0,
|
|
116
116
|
initialSort: void 0,
|
|
117
117
|
options: [],
|
|
118
|
-
components:
|
|
118
|
+
components: w,
|
|
119
119
|
componentsProps: void 0
|
|
120
120
|
};
|
|
121
|
+
const U = B;
|
|
121
122
|
export {
|
|
122
|
-
|
|
123
|
+
U as default
|
|
123
124
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { jsxs as m, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import a from "@mui/icons-material/esm/ArrowDropDown";
|
|
3
|
+
import e from "@mui/material/Box";
|
|
4
|
+
import p from "@mui/material/ButtonBase";
|
|
5
5
|
import c from "@mui/material/Typography";
|
|
6
|
-
const
|
|
6
|
+
const s = ({
|
|
7
7
|
disabled: r,
|
|
8
8
|
label: t,
|
|
9
|
-
optionLabel:
|
|
10
|
-
...
|
|
11
|
-
}) => /* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */ o(c, { variant: "caption", color: r ? "textSecondary" : "textPrimary", children: `${t}: ${
|
|
13
|
-
/* @__PURE__ */ o(
|
|
14
|
-
] });
|
|
9
|
+
optionLabel: n,
|
|
10
|
+
...i
|
|
11
|
+
}) => /* @__PURE__ */ m(p, { disabled: r, ...i, children: [
|
|
12
|
+
/* @__PURE__ */ o(c, { variant: "caption", color: r ? "textSecondary" : "textPrimary", children: `${t}: ${n}` }),
|
|
13
|
+
/* @__PURE__ */ o(e, { children: /* @__PURE__ */ o(a, {}) })
|
|
14
|
+
] }), h = s;
|
|
15
15
|
export {
|
|
16
16
|
h as default
|
|
17
17
|
};
|