@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,101 +1,99 @@
|
|
|
1
|
-
import { jsxs as k, jsx as c, Fragment as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import "clsx";
|
|
8
|
-
import "@mui/material/styles";
|
|
9
|
-
import { showSlot as U } from "../../_utils/showSlot.js";
|
|
1
|
+
import { jsxs as k, jsx as c, Fragment as D } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as G, useState as J } from "react";
|
|
3
|
+
import K from "@mui/material/Table";
|
|
4
|
+
import O from "@mui/material/TableBody";
|
|
5
|
+
import Q from "@mui/material/TableRow";
|
|
6
|
+
import U from "@mui/material/TableCell";
|
|
10
7
|
import W from "../ItemTableRow/index.js";
|
|
11
8
|
import X from "./components/ItemTableHead.js";
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
import { showSlot as Y } from "../../_utils/showSlot.js";
|
|
10
|
+
const Z = ({
|
|
11
|
+
rows: r,
|
|
14
12
|
onCheck: d
|
|
15
|
-
}) => /* @__PURE__ */ c(
|
|
13
|
+
}) => /* @__PURE__ */ c(Q, { children: /* @__PURE__ */ c(U, { colSpan: r.length + (d ? 1 : 0), sx: {
|
|
16
14
|
borderBottom: "none"
|
|
17
|
-
}, children: "No items found..." }) }),
|
|
18
|
-
Root:
|
|
15
|
+
}, children: "No items found..." }) }), _ = {
|
|
16
|
+
Root: K,
|
|
19
17
|
TableHead: X,
|
|
20
|
-
TableBody:
|
|
18
|
+
TableBody: O,
|
|
21
19
|
TableRow: W
|
|
22
|
-
},
|
|
23
|
-
itemListType:
|
|
20
|
+
}, w = ({
|
|
21
|
+
itemListType: r,
|
|
24
22
|
rows: d,
|
|
25
23
|
size: C,
|
|
26
|
-
avatarVariant:
|
|
27
|
-
stickyHeader:
|
|
24
|
+
avatarVariant: R,
|
|
25
|
+
stickyHeader: x,
|
|
28
26
|
showAvatar: h,
|
|
29
|
-
onRowClick:
|
|
27
|
+
onRowClick: g,
|
|
30
28
|
checked: m,
|
|
31
29
|
onCheck: l,
|
|
32
30
|
isLoading: i,
|
|
33
|
-
amountLoading:
|
|
34
|
-
emptySlot:
|
|
35
|
-
components:
|
|
31
|
+
amountLoading: I,
|
|
32
|
+
emptySlot: M,
|
|
33
|
+
components: S,
|
|
36
34
|
componentsProps: A
|
|
37
35
|
}) => {
|
|
38
36
|
const {
|
|
39
37
|
Root: B,
|
|
40
38
|
TableHead: H,
|
|
41
|
-
TableBody:
|
|
39
|
+
TableBody: V,
|
|
42
40
|
TableRow: j
|
|
43
|
-
} =
|
|
44
|
-
key:
|
|
45
|
-
})), u =
|
|
46
|
-
var
|
|
47
|
-
return ((
|
|
41
|
+
} = S, P = [...Array(Math.max(I, 0)).keys()].map((n) => ({
|
|
42
|
+
key: n
|
|
43
|
+
})), u = G(() => {
|
|
44
|
+
var n;
|
|
45
|
+
return ((n = r == null ? void 0 : r.item) == null ? void 0 : n.map((o) => ({
|
|
48
46
|
key: o == null ? void 0 : o.id,
|
|
49
47
|
itemType: o
|
|
50
48
|
}))) || [];
|
|
51
|
-
}, [
|
|
49
|
+
}, [r]), [q, b] = J([]), e = m === void 0 ? q : m, z = l ? (n, {
|
|
52
50
|
value: o
|
|
53
51
|
}) => {
|
|
54
52
|
const {
|
|
55
53
|
item: a = []
|
|
56
|
-
} =
|
|
54
|
+
} = r || {}, t = o === !0 ? [...e, ...a].filter(
|
|
57
55
|
// Remove duplicates
|
|
58
|
-
(s, f,
|
|
59
|
-
id:
|
|
60
|
-
}) => s.id ===
|
|
56
|
+
(s, f, N) => f === N.findIndex(({
|
|
57
|
+
id: p
|
|
58
|
+
}) => s.id === p)
|
|
61
59
|
) : e.filter(({
|
|
62
60
|
id: s
|
|
63
61
|
}) => !a.some((f) => f.id === s));
|
|
64
|
-
m === void 0 && b(() => t), l(
|
|
62
|
+
m === void 0 && b(() => t), l(n, {
|
|
65
63
|
itemListType: {
|
|
66
64
|
item: t
|
|
67
65
|
}
|
|
68
66
|
});
|
|
69
|
-
} : void 0,
|
|
67
|
+
} : void 0, E = l ? (n, {
|
|
70
68
|
value: o,
|
|
71
69
|
itemType: a
|
|
72
70
|
}) => {
|
|
73
71
|
const t = o === !0 ? [...e, a] : e.filter(({
|
|
74
72
|
id: s
|
|
75
73
|
}) => a.id !== s);
|
|
76
|
-
m === void 0 && b(() => t), l(
|
|
74
|
+
m === void 0 && b(() => t), l(n, {
|
|
77
75
|
itemListType: {
|
|
78
76
|
item: t
|
|
79
77
|
}
|
|
80
78
|
});
|
|
81
|
-
} : void 0, v = (e == null ? void 0 : e.length) > 0 && ((
|
|
82
|
-
return /* @__PURE__ */ k(B, { size: C, stickyHeader:
|
|
83
|
-
/* @__PURE__ */ c(H, { rows: d, isLoading: i, checked: v, showAvatar: h, indeterminate:
|
|
84
|
-
/* @__PURE__ */ c(
|
|
85
|
-
!i && u.length === 0 &&
|
|
79
|
+
} : void 0, v = (e == null ? void 0 : e.length) > 0 && ((r == null ? void 0 : r.item) || []).every((n) => e.some((o) => n.id === o.id)), F = !v && (e == null ? void 0 : e.length) > 0 && ((r == null ? void 0 : r.item) || []).some((n) => e.some((o) => n.id === o.id));
|
|
80
|
+
return /* @__PURE__ */ k(B, { size: C, stickyHeader: x, ...A.root, children: [
|
|
81
|
+
/* @__PURE__ */ c(H, { rows: d, isLoading: i, checked: v, showAvatar: h, indeterminate: F, onCheck: z }),
|
|
82
|
+
/* @__PURE__ */ c(V, { children: /* @__PURE__ */ k(D, { children: [
|
|
83
|
+
!i && u.length === 0 && Y(M, {
|
|
86
84
|
onCheck: l,
|
|
87
85
|
rows: d
|
|
88
86
|
}),
|
|
89
|
-
(i ?
|
|
90
|
-
key:
|
|
87
|
+
(i ? P : u).map(({
|
|
88
|
+
key: n,
|
|
91
89
|
itemType: o
|
|
92
|
-
}) => /* @__PURE__ */ c(j, { itemType: o, rows: d, isLoading: i, onClick:
|
|
90
|
+
}) => /* @__PURE__ */ c(j, { itemType: o, rows: d, isLoading: i, onClick: g, showAvatar: h, avatarVariant: R, checked: Array.isArray(e) && e.some(({
|
|
93
91
|
id: a
|
|
94
|
-
}) => a === (o == null ? void 0 : o.id)), onCheck:
|
|
92
|
+
}) => a === (o == null ? void 0 : o.id)), onCheck: E }, n))
|
|
95
93
|
] }) })
|
|
96
94
|
] });
|
|
97
95
|
};
|
|
98
|
-
|
|
96
|
+
w.defaultProps = {
|
|
99
97
|
itemListType: void 0,
|
|
100
98
|
rows: [],
|
|
101
99
|
size: "medium",
|
|
@@ -107,10 +105,11 @@ _.defaultProps = {
|
|
|
107
105
|
amountLoading: 3,
|
|
108
106
|
onCheck: void 0,
|
|
109
107
|
onRowClick: void 0,
|
|
110
|
-
emptySlot:
|
|
111
|
-
components:
|
|
108
|
+
emptySlot: Z,
|
|
109
|
+
components: _,
|
|
112
110
|
componentsProps: void 0
|
|
113
111
|
};
|
|
112
|
+
const lo = w;
|
|
114
113
|
export {
|
|
115
|
-
|
|
114
|
+
lo as default
|
|
116
115
|
};
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import f from "@mui/material/Checkbox";
|
|
3
|
-
import
|
|
3
|
+
import s from "@mui/material/Skeleton";
|
|
4
4
|
import t from "@mui/material/TableCell";
|
|
5
5
|
import x from "@mui/material/TableHead";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
rows:
|
|
9
|
-
isLoading:
|
|
6
|
+
import g from "@mui/material/TableRow";
|
|
7
|
+
const i = ({
|
|
8
|
+
rows: m,
|
|
9
|
+
isLoading: c,
|
|
10
10
|
checked: p,
|
|
11
|
-
showAvatar:
|
|
12
|
-
indeterminate:
|
|
13
|
-
onCheck:
|
|
14
|
-
...
|
|
15
|
-
}) => /* @__PURE__ */
|
|
16
|
-
|
|
11
|
+
showAvatar: h,
|
|
12
|
+
indeterminate: a,
|
|
13
|
+
onCheck: d,
|
|
14
|
+
...l
|
|
15
|
+
}) => /* @__PURE__ */ e(x, { ...l, children: /* @__PURE__ */ n(g, { children: [
|
|
16
|
+
d && /* @__PURE__ */ e(t, { padding: "checkbox", children: c ? /* @__PURE__ */ e(s, { sx: {
|
|
17
17
|
width: "18px",
|
|
18
18
|
height: "36px",
|
|
19
19
|
margin: "auto"
|
|
20
|
-
} }) : /* @__PURE__ */
|
|
21
|
-
var
|
|
22
|
-
return
|
|
23
|
-
value: (
|
|
20
|
+
} }) : /* @__PURE__ */ e(f, { checked: p || a, indeterminate: a, onChange: (o) => {
|
|
21
|
+
var r;
|
|
22
|
+
return d(o, {
|
|
23
|
+
value: (r = o == null ? void 0 : o.target) == null ? void 0 : r.checked
|
|
24
24
|
});
|
|
25
25
|
} }) }),
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
h && /* @__PURE__ */ e(t, { padding: "checkbox" }),
|
|
27
|
+
m.map(({
|
|
28
28
|
label: o
|
|
29
|
-
},
|
|
29
|
+
}, r) => /* @__PURE__ */ e(t, { children: o }, typeof o == "string" ? o : r))
|
|
30
30
|
] }) });
|
|
31
|
-
|
|
31
|
+
i.defaultProps = {};
|
|
32
|
+
const w = i;
|
|
32
33
|
export {
|
|
33
|
-
|
|
34
|
+
w as default
|
|
34
35
|
};
|
|
@@ -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 "./ItemTable.js";
|
|
3
|
+
import { withOverrides as s } from "../../_utils/withOverrides.js";
|
|
4
|
+
const o = "ItemTable", 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 c = t;
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
c as default
|
|
11
12
|
};
|
|
@@ -1,68 +1,67 @@
|
|
|
1
1
|
import { jsxs as y, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import { useMemo as E, useState as M } from "react";
|
|
3
|
+
import g from "@mui/material/TableRow";
|
|
4
|
+
import S from "@mui/material/TableCell";
|
|
5
|
+
import V from "@mui/material/Skeleton";
|
|
6
6
|
import j from "@mui/material/Checkbox";
|
|
7
7
|
import { styled as I } from "@mui/material/styles";
|
|
8
|
-
import {
|
|
9
|
-
import "
|
|
10
|
-
import { getEntityText as H } from "../../entity/_utils/getEntityText.js";
|
|
11
|
-
import V from "../../entity/EntityTableRow/components/EntityTableCellAvatar.js";
|
|
8
|
+
import { getEntityText as q } from "../../entity/_utils/getEntityText.js";
|
|
9
|
+
import H from "../../entity/EntityTableRow/components/EntityTableCellAvatar.js";
|
|
12
10
|
import z from "../../entity/EntityTableRow/components/EntityTableCellCheckbox.js";
|
|
13
|
-
|
|
11
|
+
import { uuidv4 as B } from "../../_utils/uuidv4.js";
|
|
12
|
+
const D = I(g)(({
|
|
14
13
|
onClick: o
|
|
15
14
|
}) => ({
|
|
16
15
|
...o ? {
|
|
17
16
|
cursor: "pointer"
|
|
18
17
|
} : {}
|
|
19
|
-
})),
|
|
20
|
-
Root:
|
|
21
|
-
TableCell:
|
|
22
|
-
TableCellAvatar:
|
|
18
|
+
})), F = {
|
|
19
|
+
Root: D,
|
|
20
|
+
TableCell: S,
|
|
21
|
+
TableCellAvatar: H,
|
|
23
22
|
TableCellCheckbox: z,
|
|
24
23
|
Checkbox: j
|
|
25
|
-
},
|
|
24
|
+
}, s = ({
|
|
26
25
|
itemType: o,
|
|
27
|
-
rows:
|
|
26
|
+
rows: i,
|
|
28
27
|
defaultValue: n,
|
|
29
28
|
checked: a,
|
|
30
|
-
showAvatar:
|
|
31
|
-
avatarVariant:
|
|
29
|
+
showAvatar: m,
|
|
30
|
+
avatarVariant: h,
|
|
32
31
|
isLoading: r,
|
|
33
|
-
onClick:
|
|
32
|
+
onClick: d,
|
|
34
33
|
onCheck: C,
|
|
35
|
-
components:
|
|
34
|
+
components: u,
|
|
36
35
|
componentsProps: t
|
|
37
36
|
}) => {
|
|
38
37
|
const {
|
|
39
|
-
Root:
|
|
40
|
-
TableCell:
|
|
41
|
-
TableCellAvatar:
|
|
42
|
-
TableCellCheckbox:
|
|
43
|
-
Checkbox:
|
|
44
|
-
} =
|
|
38
|
+
Root: v,
|
|
39
|
+
TableCell: k,
|
|
40
|
+
TableCellAvatar: p,
|
|
41
|
+
TableCellCheckbox: x,
|
|
42
|
+
Checkbox: T
|
|
43
|
+
} = u, R = E(() => i.map(({
|
|
45
44
|
value: e
|
|
46
|
-
} = {}) =>
|
|
45
|
+
} = {}) => q(e, {
|
|
47
46
|
itemType: o
|
|
48
|
-
})
|
|
49
|
-
const
|
|
47
|
+
}) ?? n), [o, n, i]), [w, A] = M(!1), c = a === void 0 ? w : a, b = typeof C != "function" ? void 0 : (e) => {
|
|
48
|
+
const f = !c;
|
|
50
49
|
C(e, {
|
|
51
|
-
value:
|
|
50
|
+
value: f,
|
|
52
51
|
itemType: o
|
|
53
|
-
}), a === void 0 &&
|
|
52
|
+
}), a === void 0 && A(f);
|
|
54
53
|
};
|
|
55
|
-
return /* @__PURE__ */ y(
|
|
56
|
-
e.target instanceof HTMLInputElement ||
|
|
54
|
+
return /* @__PURE__ */ y(v, { hover: !0, selected: c, onClick: typeof d != "function" ? void 0 : (e) => {
|
|
55
|
+
e.target instanceof HTMLInputElement || d(e, {
|
|
57
56
|
itemType: o
|
|
58
57
|
});
|
|
59
58
|
}, ...t.root, children: [
|
|
60
|
-
b && /* @__PURE__ */ l(
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
b && /* @__PURE__ */ l(x, { itemType: o, isLoading: r, ...t.tableCellCheckbox, children: /* @__PURE__ */ l(T, { checked: c, onChange: b, ...t.checkbox }) }),
|
|
60
|
+
m && /* @__PURE__ */ l(p, { itemType: o, isLoading: r, avatarVariant: h, ...t.tableCellAvatar }),
|
|
61
|
+
R.map((e) => /* @__PURE__ */ l(k, { ...t.tableCell, children: r ? /* @__PURE__ */ l(V, {}) : typeof e == "string" && e || "" }, B()))
|
|
63
62
|
] });
|
|
64
63
|
};
|
|
65
|
-
|
|
64
|
+
s.defaultProps = {
|
|
66
65
|
itemType: void 0,
|
|
67
66
|
defaultValue: void 0,
|
|
68
67
|
rows: [],
|
|
@@ -72,9 +71,10 @@ F.defaultProps = {
|
|
|
72
71
|
isLoading: !1,
|
|
73
72
|
onClick: void 0,
|
|
74
73
|
onCheck: void 0,
|
|
75
|
-
components:
|
|
74
|
+
components: F,
|
|
76
75
|
componentsProps: void 0
|
|
77
76
|
};
|
|
77
|
+
const _ = s;
|
|
78
78
|
export {
|
|
79
|
-
|
|
79
|
+
_ as default
|
|
80
80
|
};
|
|
@@ -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 "./ItemTableRow.js";
|
|
4
|
-
|
|
3
|
+
import { withOverrides as s } from "../../_utils/withOverrides.js";
|
|
4
|
+
const o = "ItemTableRow", e = `Vdt${o}`, d = s(e)(n), t = r(d, {
|
|
5
5
|
name: e,
|
|
6
|
-
overridesResolver: (
|
|
6
|
+
overridesResolver: (i, 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,22 +1,10 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
1
|
+
import { jsx as i, jsxs as M } from "react/jsx-runtime";
|
|
2
2
|
import c from "@mui/material/Box";
|
|
3
|
-
import { styled as
|
|
4
|
-
import "../../general/
|
|
5
|
-
import
|
|
6
|
-
import "../../general/
|
|
7
|
-
|
|
8
|
-
import "../../general/CompactLabel/index.js";
|
|
9
|
-
import z from "../../general/CornerLabelPlacer/index.js";
|
|
10
|
-
import "../../general/ExpandButton/index.js";
|
|
11
|
-
import "../../general/ImageCollage/index.js";
|
|
12
|
-
import "../../general/MediaIcon/index.js";
|
|
13
|
-
import "../../general/MenuItem/index.js";
|
|
14
|
-
import P from "../../general/ScrubLine/index.js";
|
|
15
|
-
import "../../general/Sort/index.js";
|
|
16
|
-
import "../../general/TablePagination/index.js";
|
|
17
|
-
import "../../general/Form/index.js";
|
|
18
|
-
import "../../general/ThemeContext/ThemeContext.js";
|
|
19
|
-
const R = t(c)(({
|
|
3
|
+
import { styled as r } from "@mui/material/styles";
|
|
4
|
+
import z from "../../general/ScrubLine/index.js";
|
|
5
|
+
import P from "../../general/CornerLabelPlacer/index.js";
|
|
6
|
+
import V from "../../general/BlurredBackground/index.js";
|
|
7
|
+
const R = r(c)(({
|
|
20
8
|
onClick: o
|
|
21
9
|
}) => ({
|
|
22
10
|
height: "100%",
|
|
@@ -24,26 +12,26 @@ const R = t(c)(({
|
|
|
24
12
|
...o && {
|
|
25
13
|
cursor: "pointer"
|
|
26
14
|
}
|
|
27
|
-
})),
|
|
15
|
+
})), j = r(z)(() => ({
|
|
28
16
|
position: "relative",
|
|
29
17
|
zIndex: 10
|
|
30
|
-
})),
|
|
18
|
+
})), E = r(P)(() => ({
|
|
31
19
|
height: "100%",
|
|
32
20
|
width: "100%",
|
|
33
21
|
position: "absolute",
|
|
34
22
|
zIndex: 15,
|
|
35
23
|
top: 0
|
|
36
|
-
})),
|
|
24
|
+
})), F = r(V)(() => ({
|
|
37
25
|
height: "100%",
|
|
38
26
|
width: "100%",
|
|
39
27
|
position: "absolute",
|
|
40
28
|
zIndex: 0,
|
|
41
29
|
top: 0
|
|
42
|
-
})),
|
|
30
|
+
})), T = r(c, {
|
|
43
31
|
shouldForwardProp: (o) => !["image", "cover"].includes(o)
|
|
44
32
|
})(({
|
|
45
33
|
image: o,
|
|
46
|
-
cover:
|
|
34
|
+
cover: t
|
|
47
35
|
}) => ({
|
|
48
36
|
height: "inherit",
|
|
49
37
|
width: "inherit",
|
|
@@ -53,56 +41,56 @@ const R = t(c)(({
|
|
|
53
41
|
background: o ? `url(${o})` : "none",
|
|
54
42
|
backgroundPosition: "center",
|
|
55
43
|
backgroundRepeat: "no-repeat",
|
|
56
|
-
...
|
|
44
|
+
...t ? {
|
|
57
45
|
backgroundSize: "cover"
|
|
58
46
|
} : {
|
|
59
47
|
backgroundSize: "contain"
|
|
60
48
|
}
|
|
61
|
-
})),
|
|
49
|
+
})), $ = {
|
|
62
50
|
Root: R,
|
|
63
|
-
ScrubLine:
|
|
64
|
-
CornerLabelPlacer:
|
|
65
|
-
BlurredBackground:
|
|
66
|
-
ImageBox:
|
|
67
|
-
},
|
|
51
|
+
ScrubLine: j,
|
|
52
|
+
CornerLabelPlacer: E,
|
|
53
|
+
BlurredBackground: F,
|
|
54
|
+
ImageBox: T
|
|
55
|
+
}, u = ({
|
|
68
56
|
itemType: o,
|
|
69
|
-
thumbnailIndex:
|
|
70
|
-
placeholderImage:
|
|
71
|
-
showBlurredBackground:
|
|
72
|
-
label:
|
|
73
|
-
cover:
|
|
74
|
-
showScrub:
|
|
75
|
-
scrubLabel:
|
|
76
|
-
scrubPosition:
|
|
57
|
+
thumbnailIndex: t,
|
|
58
|
+
placeholderImage: s,
|
|
59
|
+
showBlurredBackground: b,
|
|
60
|
+
label: h,
|
|
61
|
+
cover: g,
|
|
62
|
+
showScrub: m,
|
|
63
|
+
scrubLabel: p,
|
|
64
|
+
scrubPosition: B,
|
|
77
65
|
onClick: d,
|
|
78
66
|
onMouseMove: v,
|
|
79
|
-
onMouseEnter:
|
|
80
|
-
onMouseLeave:
|
|
67
|
+
onMouseEnter: f,
|
|
68
|
+
onMouseLeave: k,
|
|
81
69
|
components: x,
|
|
82
70
|
componentsProps: e
|
|
83
71
|
}) => {
|
|
84
|
-
var
|
|
72
|
+
var l;
|
|
85
73
|
const {
|
|
86
|
-
Root:
|
|
87
|
-
ScrubLine:
|
|
88
|
-
BlurredBackground:
|
|
89
|
-
ImageBox:
|
|
90
|
-
CornerLabelPlacer:
|
|
74
|
+
Root: L,
|
|
75
|
+
ScrubLine: S,
|
|
76
|
+
BlurredBackground: C,
|
|
77
|
+
ImageBox: I,
|
|
78
|
+
CornerLabelPlacer: w
|
|
91
79
|
} = x, {
|
|
92
80
|
thumbnails: n
|
|
93
|
-
} = o || {},
|
|
94
|
-
return /* @__PURE__ */ i(
|
|
95
|
-
d(
|
|
81
|
+
} = o || {}, a = ((l = n == null ? void 0 : n.uri) == null ? void 0 : l[t]) || s;
|
|
82
|
+
return /* @__PURE__ */ i(L, { onClick: typeof d != "function" ? void 0 : (y) => {
|
|
83
|
+
d(y, {
|
|
96
84
|
itemType: o,
|
|
97
|
-
thumbnailIndex:
|
|
85
|
+
thumbnailIndex: t
|
|
98
86
|
});
|
|
99
|
-
}, ...e.root, children: /* @__PURE__ */
|
|
100
|
-
|
|
101
|
-
/* @__PURE__ */ i(
|
|
102
|
-
/* @__PURE__ */ i(
|
|
87
|
+
}, ...e.root, children: /* @__PURE__ */ M(S, { show: m, label: p, position: B, onMouseMove: v, onMouseEnter: f, onMouseLeave: k, ...e.scrubLine, children: [
|
|
88
|
+
b && /* @__PURE__ */ i(C, { image: a, ...e.blurredBackground }),
|
|
89
|
+
/* @__PURE__ */ i(I, { component: "div", image: a, cover: g, ...e.imageBox }),
|
|
90
|
+
/* @__PURE__ */ i(w, { labelBottomRight: h, ...e.cornerLabelPlacer })
|
|
103
91
|
] }) });
|
|
104
92
|
};
|
|
105
|
-
|
|
93
|
+
u.defaultProps = {
|
|
106
94
|
itemType: void 0,
|
|
107
95
|
thumbnailIndex: 0,
|
|
108
96
|
label: void 0,
|
|
@@ -116,9 +104,10 @@ T.defaultProps = {
|
|
|
116
104
|
onMouseMove: void 0,
|
|
117
105
|
onMouseEnter: void 0,
|
|
118
106
|
onMouseLeave: void 0,
|
|
119
|
-
components:
|
|
107
|
+
components: $,
|
|
120
108
|
componentsProps: void 0
|
|
121
109
|
};
|
|
110
|
+
const N = u;
|
|
122
111
|
export {
|
|
123
|
-
|
|
112
|
+
N as default
|
|
124
113
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const o = "ItemThumbnail",
|
|
5
|
-
name:
|
|
6
|
-
overridesResolver: (
|
|
1
|
+
import { styled as n } from "@mui/material/styles";
|
|
2
|
+
import r from "./ItemThumbnail.js";
|
|
3
|
+
import { withOverrides as s } from "../../_utils/withOverrides.js";
|
|
4
|
+
const o = "ItemThumbnail", t = `Vdt${o}`, i = s(t)(r), e = n(i, {
|
|
5
|
+
name: t,
|
|
6
|
+
overridesResolver: (p, m) => m.root
|
|
7
7
|
})({});
|
|
8
|
-
|
|
8
|
+
e.displayName = o;
|
|
9
|
+
const c = e;
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
c as default
|
|
11
12
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { MetadataGroupValueType } from '@vidispine/types';
|
|
3
|
+
import { WithOverrideProps } from '../../_types';
|
|
4
|
+
declare const defaultComponents: {
|
|
5
|
+
Root: any;
|
|
6
|
+
GroupTreeItem: any;
|
|
7
|
+
FieldTreeItem: any;
|
|
8
|
+
};
|
|
9
|
+
export interface MetadataGroupTreeViewProps extends WithOverrideProps<typeof defaultComponents> {
|
|
10
|
+
/**
|
|
11
|
+
* Root group to display in tree view
|
|
12
|
+
*/
|
|
13
|
+
group?: MetadataGroupValueType;
|
|
14
|
+
}
|
|
15
|
+
declare const MetadataGroupTreeView: React.FC<MetadataGroupTreeViewProps>;
|
|
16
|
+
export default MetadataGroupTreeView;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsx as t, jsxs as a, Fragment as M } from "react/jsx-runtime";
|
|
2
|
+
import x from "@mui/icons-material/esm/ChevronRight";
|
|
3
|
+
import b from "@mui/icons-material/esm/ExpandMore";
|
|
4
|
+
import g from "@mui/lab/TreeItem";
|
|
5
|
+
import C from "@mui/lab/TreeView";
|
|
6
|
+
import { styled as i } from "@mui/material/styles";
|
|
7
|
+
import { parseFieldList as F } from "@vidispine/vdt-js";
|
|
8
|
+
const m = i(g)(() => ({
|
|
9
|
+
userSelect: "all",
|
|
10
|
+
"&:focus, &:hover, &.Mui-selected": {
|
|
11
|
+
"& > .MuiTreeItem-content, .MuiTreeItem-label": {
|
|
12
|
+
backgroundColor: "unset",
|
|
13
|
+
cursor: "default"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"& .Mui-selected": {
|
|
17
|
+
backgroundColor: "unset !important"
|
|
18
|
+
}
|
|
19
|
+
})), v = {
|
|
20
|
+
Root: C,
|
|
21
|
+
GroupTreeItem: m,
|
|
22
|
+
FieldTreeItem: m
|
|
23
|
+
}, s = i("span")(() => ({
|
|
24
|
+
fontWeight: 600,
|
|
25
|
+
fontSize: ".75rem"
|
|
26
|
+
})), S = i("span")(() => ({
|
|
27
|
+
fontSize: ".75rem"
|
|
28
|
+
})), c = ({
|
|
29
|
+
group: n,
|
|
30
|
+
components: f,
|
|
31
|
+
componentsProps: r
|
|
32
|
+
}) => {
|
|
33
|
+
const {
|
|
34
|
+
Root: p,
|
|
35
|
+
GroupTreeItem: I,
|
|
36
|
+
FieldTreeItem: h
|
|
37
|
+
} = f, T = (e = {}) => /* @__PURE__ */ t(h, { nodeId: e.uuid, label: /* @__PURE__ */ a(M, { children: [
|
|
38
|
+
/* @__PURE__ */ t(s, { children: `${e.name}: ` }),
|
|
39
|
+
/* @__PURE__ */ t(S, { children: e.value.join(", ") })
|
|
40
|
+
] }), ...r.fieldTreeItem }, e.uuid), l = (e = {}) => {
|
|
41
|
+
var d, u;
|
|
42
|
+
return /* @__PURE__ */ a(I, { nodeId: e.uuid, label: /* @__PURE__ */ t(s, { children: e.name }), ...r.groupTreeItem, children: [
|
|
43
|
+
((d = e.field) == null ? void 0 : d.length) > 0 ? F(e.field, {
|
|
44
|
+
includeFieldAttributes: !0,
|
|
45
|
+
fieldAsList: !0,
|
|
46
|
+
arrayOnSingleValue: !0
|
|
47
|
+
}).map((o) => T(o)) : null,
|
|
48
|
+
((u = e.group) == null ? void 0 : u.length) > 0 ? e.group.map((o) => l(o)) : null
|
|
49
|
+
] }, e.uuid);
|
|
50
|
+
};
|
|
51
|
+
return /* @__PURE__ */ t(p, { defaultCollapseIcon: /* @__PURE__ */ t(b, {}), defaultExpanded: [n == null ? void 0 : n.uuid], defaultExpandIcon: /* @__PURE__ */ t(x, {}), sx: {
|
|
52
|
+
maxWidth: 400
|
|
53
|
+
}, ...r.root, children: l(n) });
|
|
54
|
+
};
|
|
55
|
+
c.defaultProps = {
|
|
56
|
+
group: void 0,
|
|
57
|
+
components: v,
|
|
58
|
+
componentsProps: void 0
|
|
59
|
+
};
|
|
60
|
+
const k = c;
|
|
61
|
+
export {
|
|
62
|
+
k as default
|
|
63
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { styled as n } from "@mui/material/styles";
|
|
2
|
+
import m from "./MetadataGroupTreeView.js";
|
|
3
|
+
import { withOverrides as a } from "../../_utils/withOverrides.js";
|
|
4
|
+
const e = "MetadataGroupTreeView", o = `Vdt${e}`, s = a(o)(m), t = n(s, {
|
|
5
|
+
name: o,
|
|
6
|
+
overridesResolver: (d, r) => r.root
|
|
7
|
+
})(() => ({}));
|
|
8
|
+
t.displayName = e;
|
|
9
|
+
const l = t;
|
|
10
|
+
export {
|
|
11
|
+
l as default
|
|
12
|
+
};
|