@vidispine/vdt-mui 23.2.0-pre.2 → 23.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_utils/generateBadges.js +1 -0
- package/dist/cjs/_utils/isDefinedValue.js +1 -0
- package/dist/cjs/_utils/omit.js +1 -0
- package/dist/cjs/_utils/showSlot.js +1 -0
- package/dist/cjs/_utils/uuidv4.js +1 -0
- package/dist/cjs/_utils/withOverrides.js +1 -0
- package/dist/cjs/collection/CollectionCard/CollectionCard.js +1 -0
- package/dist/cjs/collection/CollectionCard/components/CollectionCardMedia.js +1 -0
- package/dist/cjs/collection/CollectionCard/index.js +1 -0
- package/dist/cjs/collection/CollectionList/CollectionList.js +1 -0
- package/dist/cjs/collection/CollectionList/index.js +1 -0
- package/dist/cjs/collection/CollectionListItem/CollectionListItem.js +1 -0
- package/dist/cjs/collection/CollectionListItem/index.js +1 -0
- package/dist/cjs/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.js +1 -0
- package/dist/cjs/collection/CollectionRepresentativeThumbnail/index.js +1 -0
- package/dist/cjs/entity/EntityAvatar/EntityAvatar.js +1 -0
- package/dist/cjs/entity/EntityAvatar/index.js +1 -0
- package/dist/cjs/entity/EntityCard/components/EntityCardActions.js +1 -0
- package/dist/cjs/entity/EntityCard/components/EntityCardBase.js +1 -0
- package/dist/cjs/entity/EntityCard/components/EntityCardContent.js +1 -0
- package/dist/cjs/entity/EntityCard/components/EntityCardHeader.js +1 -0
- package/dist/cjs/entity/EntityIcon/EntityIcon.js +1 -0
- package/dist/cjs/entity/EntityIcon/index.js +1 -0
- package/dist/cjs/entity/EntityList/EntityList.js +1 -0
- package/dist/cjs/entity/EntityList/index.js +1 -0
- package/dist/cjs/entity/EntityListItem/components/EntityListItemAvatar.js +1 -0
- package/dist/cjs/entity/EntityListItem/components/EntityListItemButton.js +1 -0
- package/dist/cjs/entity/EntityListItem/components/EntityListItemSecondaryAction.js +1 -0
- package/dist/cjs/entity/EntityListItem/components/EntityListItemText.js +1 -0
- package/dist/cjs/entity/EntityTableRow/components/EntityTableCellAvatar.js +1 -0
- package/dist/cjs/entity/EntityTableRow/components/EntityTableCellCheckbox.js +1 -0
- package/dist/cjs/entity/_utils/getEntityProp.js +1 -0
- package/dist/cjs/entity/_utils/getEntityText.js +1 -0
- package/dist/cjs/general/AvatarMenu/AvatarMenu.js +1 -0
- package/dist/cjs/general/AvatarMenu/components/Avatar.js +1 -0
- package/dist/cjs/general/AvatarMenu/components/MenuItem.js +1 -0
- package/dist/cjs/general/AvatarMenu/index.js +1 -0
- package/dist/cjs/general/BlurredBackground/BlurredBackground.js +1 -0
- package/dist/cjs/general/BlurredBackground/index.js +1 -0
- package/dist/cjs/general/CalendarPicker/CalendarPicker.js +1 -0
- package/dist/cjs/general/CalendarPicker/components/PickersDay.js +1 -0
- package/dist/cjs/general/CalendarPicker/index.js +1 -0
- package/dist/cjs/general/CalendarPicker/utils/index.js +1 -0
- package/dist/cjs/general/CompactBadge/CompactBadge.js +1 -0
- package/dist/cjs/general/CompactBadge/index.js +1 -0
- package/dist/cjs/general/CompactLabel/CompactLabel.js +1 -0
- package/dist/cjs/general/CompactLabel/index.js +1 -0
- package/dist/cjs/general/CornerLabelPlacer/CornerLabelPlacer.js +1 -0
- package/dist/cjs/general/CornerLabelPlacer/index.js +1 -0
- package/dist/cjs/general/ExpandButton/ExpandButton.js +1 -0
- package/dist/cjs/general/ExpandButton/index.js +1 -0
- package/dist/cjs/general/Form/Form.js +1 -0
- package/dist/cjs/general/Form/index.js +1 -0
- package/dist/cjs/general/ImageCollage/ImageCollage.js +1 -0
- package/dist/cjs/general/ImageCollage/index.js +1 -0
- package/dist/cjs/general/MediaIcon/MediaIcon.js +1 -0
- package/dist/cjs/general/MediaIcon/index.js +1 -0
- package/dist/cjs/general/MenuItem/MenuItem.js +1 -0
- package/dist/cjs/general/MenuItem/index.js +1 -0
- package/dist/cjs/general/ScrubLine/ScrubLine.js +1 -0
- package/dist/cjs/general/ScrubLine/index.js +1 -0
- package/dist/cjs/general/Sort/Sort.js +1 -0
- package/dist/cjs/general/Sort/components/ButtonBase.js +1 -0
- package/dist/cjs/general/Sort/components/MenuItem.js +1 -0
- package/dist/cjs/general/Sort/index.js +1 -0
- package/dist/cjs/general/TablePagination/TablePagination.js +1 -0
- package/dist/cjs/general/TablePagination/index.js +1 -0
- package/dist/cjs/general/ThemeContext/ThemeContext.js +1 -0
- package/dist/cjs/inputs/BasicDateTimeInput/BasicDateTimeInput.js +1 -0
- package/dist/cjs/inputs/BasicDateTimeInput/index.js +1 -0
- package/dist/cjs/inputs/BooleanInput/BooleanInput.js +1 -0
- package/dist/cjs/inputs/BooleanInput/index.js +1 -0
- package/dist/cjs/inputs/CheckboxGroupInput/CheckboxGroupInput.js +1 -0
- package/dist/cjs/inputs/CheckboxGroupInput/components/CheckboxGroup.js +1 -0
- package/dist/cjs/inputs/CheckboxGroupInput/index.js +1 -0
- package/dist/cjs/inputs/DateRangeInput/DateRangeInput.js +1 -0
- package/dist/cjs/inputs/DateRangeInput/components/utils/valueManagers.js +1 -0
- package/dist/cjs/inputs/DateRangeInput/index.js +1 -0
- package/dist/cjs/inputs/DateRangeInput/utils/dateHelpers.js +1 -0
- package/dist/cjs/inputs/DateTimeInput/DateTimeInput.js +1 -0
- package/dist/cjs/inputs/DateTimeInput/index.js +1 -0
- package/dist/cjs/inputs/MaskedTextInput/MaskedTextInput.js +1 -0
- package/dist/cjs/inputs/MaskedTextInput/components/MaskedInputComponent.js +1 -0
- package/dist/cjs/inputs/MaskedTextInput/index.js +1 -0
- package/dist/cjs/inputs/NumberInput/NumberInput.js +1 -0
- package/dist/cjs/inputs/NumberInput/index.js +1 -0
- package/dist/cjs/inputs/RadioGroupInput/RadioGroupInput.js +1 -0
- package/dist/cjs/inputs/RadioGroupInput/components/RadioGroup.js +1 -0
- package/dist/cjs/inputs/RadioGroupInput/index.js +1 -0
- package/dist/cjs/inputs/SelectInput/SelectInput.js +1 -0
- package/dist/cjs/inputs/SelectInput/index.js +1 -0
- package/dist/cjs/inputs/SliderInput/SliderInput.js +1 -0
- package/dist/cjs/inputs/SliderInput/components/Slider.js +1 -0
- package/dist/cjs/inputs/SliderInput/index.js +1 -0
- package/dist/cjs/inputs/TagInput/TagInput.js +1 -0
- package/dist/cjs/inputs/TagInput/index.js +1 -0
- package/dist/cjs/inputs/TextInput/TextInput.js +1 -0
- package/dist/cjs/inputs/TextInput/index.js +1 -0
- package/dist/cjs/inputs/_components/FormControlLabel.js +1 -0
- package/dist/cjs/inputs/_components/MenuItem.js +1 -0
- package/dist/cjs/item/ItemCard/ItemCard.js +1 -0
- package/dist/cjs/item/ItemCard/components/ItemCardMedia.js +1 -0
- package/dist/cjs/item/ItemCard/index.js +1 -0
- package/dist/cjs/item/ItemList/ItemList.js +1 -0
- package/dist/cjs/item/ItemList/index.js +1 -0
- package/dist/cjs/item/ItemListItem/ItemListItem.js +1 -0
- package/dist/cjs/item/ItemListItem/index.js +1 -0
- package/dist/cjs/item/ItemPoster/ItemPoster.js +1 -0
- package/dist/cjs/item/ItemPoster/index.js +1 -0
- package/dist/cjs/item/ItemPosterList/ItemPosterList.js +1 -0
- package/dist/cjs/item/ItemPosterList/index.js +1 -0
- package/dist/cjs/item/ItemPosterViewer/ItemPosterViewer.js +1 -0
- package/dist/cjs/item/ItemPosterViewer/components/Toolbar.js +1 -0
- package/dist/cjs/item/ItemPosterViewer/index.js +1 -0
- package/dist/cjs/item/ItemTable/ItemTable.js +1 -0
- package/dist/cjs/item/ItemTable/components/ItemTableHead.js +1 -0
- package/dist/cjs/item/ItemTable/index.js +1 -0
- package/dist/cjs/item/ItemTableRow/ItemTableRow.js +1 -0
- package/dist/cjs/item/ItemTableRow/index.js +1 -0
- package/dist/cjs/item/ItemThumbnail/ItemThumbnail.js +1 -0
- package/dist/cjs/item/ItemThumbnail/index.js +1 -0
- package/dist/cjs/search/SearchFilterForm/SearchFilterForm.js +1 -0
- package/dist/cjs/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.js +1 -0
- package/dist/cjs/search/SearchFilterForm/index.js +1 -0
- package/dist/cjs/search/SearchFilterForm/utils/mapValuesToFilter.js +1 -0
- package/dist/cjs/shape/ShapeMediaBadges/ShapeMediaBadges.js +1 -0
- package/dist/cjs/shape/ShapeMediaBadges/index.js +1 -0
- package/dist/cjs/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.js +1 -0
- package/dist/cjs/transcode/TranscodePresetMediaBadges/index.js +1 -0
- package/dist/es/_utils/generateBadges.js +75 -0
- package/dist/es/_utils/isDefinedValue.js +6 -0
- package/dist/es/_utils/omit.js +9 -0
- package/dist/es/_utils/showSlot.js +4 -0
- package/dist/es/_utils/uuidv4.js +7 -0
- package/dist/es/_utils/withOverrides.js +37 -0
- package/dist/es/collection/CollectionCard/CollectionCard.js +292 -0
- package/dist/es/collection/CollectionCard/components/CollectionCardMedia.js +14 -0
- package/dist/es/collection/CollectionCard/index.js +11 -0
- package/dist/es/collection/CollectionList/CollectionList.js +159 -0
- package/dist/es/collection/CollectionList/index.js +11 -0
- package/dist/es/collection/CollectionListItem/CollectionListItem.js +122 -0
- package/dist/es/collection/CollectionListItem/index.js +11 -0
- package/dist/es/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.js +169 -0
- package/dist/es/collection/CollectionRepresentativeThumbnail/index.js +11 -0
- package/dist/es/entity/EntityAvatar/EntityAvatar.js +102 -0
- package/dist/es/entity/EntityAvatar/index.js +11 -0
- package/dist/es/entity/EntityCard/components/EntityCardActions.js +68 -0
- package/dist/es/entity/EntityCard/components/EntityCardBase.js +43 -0
- package/dist/es/entity/EntityCard/components/EntityCardContent.js +34 -0
- package/dist/es/entity/EntityCard/components/EntityCardHeader.js +115 -0
- package/dist/es/entity/EntityIcon/EntityIcon.js +107 -0
- package/dist/es/entity/EntityIcon/index.js +11 -0
- package/dist/es/entity/EntityList/EntityList.js +211 -0
- package/dist/es/entity/EntityList/index.js +11 -0
- package/dist/es/entity/EntityListItem/components/EntityListItemAvatar.js +26 -0
- package/dist/es/entity/EntityListItem/components/EntityListItemButton.js +27 -0
- package/dist/es/entity/EntityListItem/components/EntityListItemSecondaryAction.js +27 -0
- package/dist/es/entity/EntityListItem/components/EntityListItemText.js +26 -0
- package/dist/es/entity/EntityTableRow/components/EntityTableCellAvatar.js +26 -0
- package/dist/es/entity/EntityTableRow/components/EntityTableCellCheckbox.js +19 -0
- package/dist/es/entity/_utils/getEntityProp.js +11 -0
- package/dist/es/entity/_utils/getEntityText.js +34 -0
- package/dist/es/general/AvatarMenu/AvatarMenu.js +153 -0
- package/dist/es/general/AvatarMenu/components/Avatar.js +30 -0
- package/dist/es/general/AvatarMenu/components/MenuItem.js +29 -0
- package/dist/es/general/AvatarMenu/index.js +11 -0
- package/dist/es/general/BlurredBackground/BlurredBackground.js +85 -0
- package/dist/es/general/BlurredBackground/index.js +11 -0
- package/dist/es/general/CalendarPicker/CalendarPicker.js +397 -0
- package/dist/es/general/CalendarPicker/components/PickersDay.js +71 -0
- package/dist/es/general/CalendarPicker/index.js +11 -0
- package/dist/es/general/CalendarPicker/utils/index.js +17 -0
- package/dist/es/general/CompactBadge/CompactBadge.js +65 -0
- package/dist/es/general/CompactBadge/index.js +11 -0
- package/dist/es/general/CompactLabel/CompactLabel.js +70 -0
- package/dist/es/general/CompactLabel/index.js +11 -0
- package/dist/es/general/CornerLabelPlacer/CornerLabelPlacer.js +105 -0
- package/dist/es/general/CornerLabelPlacer/index.js +11 -0
- package/dist/es/general/ExpandButton/ExpandButton.js +81 -0
- package/dist/es/general/ExpandButton/index.js +11 -0
- package/dist/es/general/Form/Form.js +230 -0
- package/dist/es/general/Form/index.js +11 -0
- package/dist/es/general/ImageCollage/ImageCollage.js +151 -0
- package/dist/es/general/ImageCollage/index.js +11 -0
- package/dist/es/general/MediaIcon/MediaIcon.js +101 -0
- package/dist/es/general/MediaIcon/index.js +11 -0
- package/dist/es/general/MenuItem/MenuItem.js +91 -0
- package/dist/es/general/MenuItem/index.js +11 -0
- package/dist/es/general/ScrubLine/ScrubLine.js +141 -0
- package/dist/es/general/ScrubLine/index.js +11 -0
- package/dist/es/general/Sort/Sort.js +179 -0
- package/dist/es/general/Sort/components/ButtonBase.js +19 -0
- package/dist/es/general/Sort/components/MenuItem.js +15 -0
- package/dist/es/general/Sort/index.js +11 -0
- package/dist/es/general/TablePagination/TablePagination.js +104 -0
- package/dist/es/general/TablePagination/index.js +11 -0
- package/dist/es/general/ThemeContext/ThemeContext.js +96 -0
- package/dist/es/inputs/BasicDateTimeInput/BasicDateTimeInput.js +133 -0
- package/dist/es/inputs/BasicDateTimeInput/index.js +11 -0
- package/dist/es/inputs/BooleanInput/BooleanInput.js +196 -0
- package/dist/es/inputs/BooleanInput/index.js +11 -0
- package/dist/es/inputs/CheckboxGroupInput/CheckboxGroupInput.js +292 -0
- package/dist/es/inputs/CheckboxGroupInput/components/CheckboxGroup.js +81 -0
- package/dist/es/inputs/CheckboxGroupInput/index.js +11 -0
- package/dist/es/inputs/DateRangeInput/DateRangeInput.js +362 -0
- package/dist/es/inputs/DateRangeInput/components/utils/valueManagers.js +20 -0
- package/dist/es/inputs/DateRangeInput/index.js +11 -0
- package/dist/es/inputs/DateRangeInput/utils/dateHelpers.js +31 -0
- package/dist/es/inputs/DateTimeInput/DateTimeInput.js +250 -0
- package/dist/es/inputs/DateTimeInput/index.js +11 -0
- package/dist/es/inputs/MaskedTextInput/MaskedTextInput.js +235 -0
- package/dist/es/inputs/MaskedTextInput/components/MaskedInputComponent.js +13 -0
- package/dist/es/inputs/MaskedTextInput/index.js +11 -0
- package/dist/es/inputs/NumberInput/NumberInput.js +134 -0
- package/dist/es/inputs/NumberInput/index.js +11 -0
- package/dist/es/inputs/RadioGroupInput/RadioGroupInput.js +287 -0
- package/dist/es/inputs/RadioGroupInput/components/RadioGroup.js +72 -0
- package/dist/es/inputs/RadioGroupInput/index.js +11 -0
- package/dist/es/inputs/SelectInput/SelectInput.js +195 -0
- package/dist/es/inputs/SelectInput/index.js +11 -0
- package/dist/es/inputs/SliderInput/SliderInput.js +350 -0
- package/dist/es/inputs/SliderInput/components/Slider.js +124 -0
- package/dist/es/inputs/SliderInput/index.js +11 -0
- package/dist/es/inputs/TagInput/TagInput.js +356 -0
- package/dist/es/inputs/TagInput/index.js +11 -0
- package/dist/es/inputs/TextInput/TextInput.js +154 -0
- package/dist/es/inputs/TextInput/index.js +11 -0
- package/dist/es/inputs/_components/FormControlLabel.js +60 -0
- package/dist/es/inputs/_components/MenuItem.js +23 -0
- package/dist/es/item/ItemCard/ItemCard.js +293 -0
- package/dist/es/item/ItemCard/components/ItemCardMedia.js +20 -0
- package/dist/es/item/ItemCard/index.js +11 -0
- package/dist/es/item/ItemList/ItemList.js +158 -0
- package/dist/es/item/ItemList/index.js +11 -0
- package/dist/es/item/ItemListItem/ItemListItem.js +122 -0
- package/dist/es/item/ItemListItem/index.js +11 -0
- package/dist/es/item/ItemPoster/ItemPoster.js +132 -0
- package/dist/es/item/ItemPoster/index.js +11 -0
- package/dist/es/item/ItemPosterList/ItemPosterList.js +99 -0
- package/dist/es/item/ItemPosterList/index.js +11 -0
- package/dist/es/item/ItemPosterViewer/ItemPosterViewer.js +190 -0
- package/dist/es/item/ItemPosterViewer/components/Toolbar.js +27 -0
- package/dist/es/item/ItemPosterViewer/index.js +11 -0
- package/dist/es/item/ItemTable/ItemTable.js +201 -0
- package/dist/es/item/ItemTable/components/ItemTableHead.js +35 -0
- package/dist/es/item/ItemTable/index.js +11 -0
- package/dist/es/item/ItemTableRow/ItemTableRow.js +150 -0
- package/dist/es/item/ItemTableRow/index.js +11 -0
- package/dist/es/item/ItemThumbnail/ItemThumbnail.js +210 -0
- package/dist/es/item/ItemThumbnail/index.js +11 -0
- package/dist/es/search/SearchFilterForm/SearchFilterForm.js +138 -0
- package/dist/es/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.js +130 -0
- package/dist/es/search/SearchFilterForm/index.js +12 -0
- package/dist/es/search/SearchFilterForm/utils/mapValuesToFilter.js +84 -0
- package/dist/es/shape/ShapeMediaBadges/ShapeMediaBadges.js +78 -0
- package/dist/es/shape/ShapeMediaBadges/index.js +11 -0
- package/dist/es/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.js +78 -0
- package/dist/es/transcode/TranscodePresetMediaBadges/index.js +11 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.es.js +93 -0
- package/package.json +35 -19
- package/dist/index.js +0 -13109
- package/dist/index.umd.cjs +0 -6
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { jsxs as T, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import e from "prop-types";
|
|
3
|
+
import M from "@mui/icons-material/esm/Audiotrack";
|
|
4
|
+
import j from "@mui/icons-material/esm/Image";
|
|
5
|
+
import b from "@mui/icons-material/esm/InsertDriveFile";
|
|
6
|
+
import g from "@mui/icons-material/esm/Movie";
|
|
7
|
+
import h from "@mui/icons-material/esm/NoteAdd";
|
|
8
|
+
import D from "@mui/icons-material/esm/Article";
|
|
9
|
+
import v from "@mui/icons-material/esm/DataThresholding";
|
|
10
|
+
import A from "@mui/icons-material/esm/PictureAsPdf";
|
|
11
|
+
import x from "@mui/icons-material/esm/QuestionMark";
|
|
12
|
+
import P from "@mui/material/Box";
|
|
13
|
+
import { styled as F } from "@mui/material/styles";
|
|
14
|
+
const N = F(P)(() => ({
|
|
15
|
+
display: "flex"
|
|
16
|
+
})), R = {
|
|
17
|
+
Root: N,
|
|
18
|
+
PlaceholderIcon: h,
|
|
19
|
+
AudioIcon: M,
|
|
20
|
+
ImageIcon: j,
|
|
21
|
+
VideoIcon: g,
|
|
22
|
+
DocumentIcon: D,
|
|
23
|
+
DataIcon: v,
|
|
24
|
+
PdfIcon: A,
|
|
25
|
+
NoneIcon: x,
|
|
26
|
+
FileIcon: b
|
|
27
|
+
}, t = ["video", "audio", "image", "document", "data", "pdf", "none"];
|
|
28
|
+
function i({
|
|
29
|
+
type: I,
|
|
30
|
+
components: a,
|
|
31
|
+
componentsProps: o
|
|
32
|
+
}) {
|
|
33
|
+
const {
|
|
34
|
+
Root: d,
|
|
35
|
+
PlaceholderIcon: m,
|
|
36
|
+
AudioIcon: r,
|
|
37
|
+
ImageIcon: f,
|
|
38
|
+
VideoIcon: l,
|
|
39
|
+
DocumentIcon: p,
|
|
40
|
+
DataIcon: u,
|
|
41
|
+
PdfIcon: s,
|
|
42
|
+
NoneIcon: O,
|
|
43
|
+
FileIcon: y
|
|
44
|
+
} = a, c = (I || "").toLowerCase();
|
|
45
|
+
return /* @__PURE__ */ T(d, { component: "span", ...o.root, children: [
|
|
46
|
+
c === "video" && /* @__PURE__ */ n(l, { ...o.videoIcon }),
|
|
47
|
+
c === "audio" && /* @__PURE__ */ n(r, { ...o.audioIcon }),
|
|
48
|
+
c === "image" && /* @__PURE__ */ n(f, { ...o.imageIcon }),
|
|
49
|
+
c === "document" && /* @__PURE__ */ n(p, { ...o.documentIcon }),
|
|
50
|
+
c === "data" && /* @__PURE__ */ n(u, { ...o.dataIcon }),
|
|
51
|
+
c === "pdf" && /* @__PURE__ */ n(s, { ...o.pdfIcon }),
|
|
52
|
+
c === "none" && /* @__PURE__ */ n(O, { ...o.noneIcon }),
|
|
53
|
+
!t.includes(c) && (typeof mediaType == "string" ? /* @__PURE__ */ n(y, { ...o.fileIcon }) : /* @__PURE__ */ n(m, { ...o.placeholderIcon }))
|
|
54
|
+
] });
|
|
55
|
+
}
|
|
56
|
+
i.propTypes = {
|
|
57
|
+
/**
|
|
58
|
+
* - `FileIcon` is shown if not any of listed strings
|
|
59
|
+
* - `PlaceholderIcon` is show if not a string type
|
|
60
|
+
*/
|
|
61
|
+
type: e.oneOf(t),
|
|
62
|
+
// Overrides
|
|
63
|
+
/**
|
|
64
|
+
* Replace internal components
|
|
65
|
+
*/
|
|
66
|
+
components: e.shape({
|
|
67
|
+
Root: e.elementType,
|
|
68
|
+
PlaceholderIcon: e.elementType,
|
|
69
|
+
AudioIcon: e.elementType,
|
|
70
|
+
ImageIcon: e.elementType,
|
|
71
|
+
VideoIcon: e.elementType,
|
|
72
|
+
DocumentIcon: e.elementType,
|
|
73
|
+
DataIcon: e.elementType,
|
|
74
|
+
PdfIcon: e.elementType,
|
|
75
|
+
NoneIcon: e.elementType,
|
|
76
|
+
FileIcon: e.elementType
|
|
77
|
+
}),
|
|
78
|
+
/**
|
|
79
|
+
* Add internal component props
|
|
80
|
+
*/
|
|
81
|
+
componentsProps: e.shape({
|
|
82
|
+
root: e.instanceOf(Object),
|
|
83
|
+
placeholderIcon: e.instanceOf(Object),
|
|
84
|
+
audioIcon: e.instanceOf(Object),
|
|
85
|
+
imageIcon: e.instanceOf(Object),
|
|
86
|
+
videoIcon: e.instanceOf(Object),
|
|
87
|
+
documentIcon: e.instanceOf(Object),
|
|
88
|
+
dataIcon: e.instanceOf(Object),
|
|
89
|
+
pdfIcon: e.instanceOf(Object),
|
|
90
|
+
noneIcon: e.instanceOf(Object),
|
|
91
|
+
fileIcon: e.instanceOf(Object)
|
|
92
|
+
})
|
|
93
|
+
};
|
|
94
|
+
i.defaultProps = {
|
|
95
|
+
type: void 0,
|
|
96
|
+
components: R,
|
|
97
|
+
componentsProps: void 0
|
|
98
|
+
};
|
|
99
|
+
export {
|
|
100
|
+
i as default
|
|
101
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { styled as r } from "@mui/material/styles";
|
|
2
|
+
import { withOverrides as n } from "../../_utils/withOverrides.js";
|
|
3
|
+
import m from "./MediaIcon.js";
|
|
4
|
+
const o = "MediaIcon", e = `Vdt${o}`, i = n(e)(m), s = r(i, {
|
|
5
|
+
name: e,
|
|
6
|
+
overridesResolver: (d, t) => t.root
|
|
7
|
+
})(() => ({}));
|
|
8
|
+
s.displayName = o;
|
|
9
|
+
export {
|
|
10
|
+
s as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { jsxs as T, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import e from "prop-types";
|
|
3
|
+
import h from "@mui/material/MenuItem";
|
|
4
|
+
import g from "@mui/material/ListItemText";
|
|
5
|
+
import u from "@mui/material/Typography";
|
|
6
|
+
import { styled as x } from "@mui/material/styles";
|
|
7
|
+
const I = x(u)(({
|
|
8
|
+
theme: t
|
|
9
|
+
}) => ({
|
|
10
|
+
height: 24,
|
|
11
|
+
lineHeight: 1.7,
|
|
12
|
+
marginLeft: t.spacing(2)
|
|
13
|
+
})), b = {
|
|
14
|
+
Root: h,
|
|
15
|
+
ListItemText: g,
|
|
16
|
+
Typography: I
|
|
17
|
+
};
|
|
18
|
+
function r({
|
|
19
|
+
value: t,
|
|
20
|
+
label: p,
|
|
21
|
+
count: n,
|
|
22
|
+
selected: s,
|
|
23
|
+
onClick: m,
|
|
24
|
+
components: l,
|
|
25
|
+
componentsProps: o,
|
|
26
|
+
...c
|
|
27
|
+
}) {
|
|
28
|
+
const {
|
|
29
|
+
Root: a,
|
|
30
|
+
ListItemText: y,
|
|
31
|
+
Typography: d
|
|
32
|
+
} = l;
|
|
33
|
+
return /* @__PURE__ */ T(a, { value: t, selected: s, onClick: (f) => m(f, {
|
|
34
|
+
value: t
|
|
35
|
+
}), ...c, ...o.root, children: [
|
|
36
|
+
/* @__PURE__ */ i(y, { ...o.listItemText, children: p || t }),
|
|
37
|
+
n !== void 0 && /* @__PURE__ */ i(d, { variant: "body2", color: "text.secondary", ...o.typography, children: n })
|
|
38
|
+
] });
|
|
39
|
+
}
|
|
40
|
+
r.propTypes = {
|
|
41
|
+
/**
|
|
42
|
+
* Value for menu item
|
|
43
|
+
*/
|
|
44
|
+
value: e.string,
|
|
45
|
+
/**
|
|
46
|
+
* Label for menu item
|
|
47
|
+
*/
|
|
48
|
+
label: e.string,
|
|
49
|
+
/**
|
|
50
|
+
* Add a count to display for the menu item
|
|
51
|
+
*/
|
|
52
|
+
count: e.number,
|
|
53
|
+
/**
|
|
54
|
+
* Set if menu item is selected
|
|
55
|
+
*/
|
|
56
|
+
selected: e.bool,
|
|
57
|
+
// Callbacks
|
|
58
|
+
/**
|
|
59
|
+
* Callback when clicked
|
|
60
|
+
*/
|
|
61
|
+
onClick: e.func,
|
|
62
|
+
// Overrides
|
|
63
|
+
/**
|
|
64
|
+
* Replace internal components
|
|
65
|
+
*/
|
|
66
|
+
components: e.shape({
|
|
67
|
+
Root: e.elementType,
|
|
68
|
+
ListItemText: e.elementType,
|
|
69
|
+
Typography: e.elementType
|
|
70
|
+
}),
|
|
71
|
+
/**
|
|
72
|
+
* Add internal component props
|
|
73
|
+
*/
|
|
74
|
+
componentsProps: e.shape({
|
|
75
|
+
root: e.instanceOf(Object),
|
|
76
|
+
listItemText: e.instanceOf(Object),
|
|
77
|
+
typography: e.instanceOf(Object)
|
|
78
|
+
})
|
|
79
|
+
};
|
|
80
|
+
r.defaultProps = {
|
|
81
|
+
value: void 0,
|
|
82
|
+
label: void 0,
|
|
83
|
+
count: void 0,
|
|
84
|
+
selected: !1,
|
|
85
|
+
onClick: void 0,
|
|
86
|
+
components: b,
|
|
87
|
+
componentsProps: void 0
|
|
88
|
+
};
|
|
89
|
+
export {
|
|
90
|
+
r as default
|
|
91
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { styled as r } from "@mui/material/styles";
|
|
2
|
+
import { withOverrides as m } from "../../_utils/withOverrides.js";
|
|
3
|
+
import n from "./MenuItem.js";
|
|
4
|
+
const e = "MenuItem", o = `Vdt${e}`, s = m(o)(n), d = r(s, {
|
|
5
|
+
name: o,
|
|
6
|
+
overridesResolver: (i, t) => t.root
|
|
7
|
+
})(() => ({}));
|
|
8
|
+
d.displayName = e;
|
|
9
|
+
export {
|
|
10
|
+
d as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { jsxs as w, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as E } from "react";
|
|
3
|
+
import o from "prop-types";
|
|
4
|
+
import f from "@mui/material/Box";
|
|
5
|
+
import { styled as p } from "@mui/material/styles";
|
|
6
|
+
import R from "../CompactLabel/index.js";
|
|
7
|
+
const P = p(f)(() => ({
|
|
8
|
+
position: "relative",
|
|
9
|
+
width: "100%",
|
|
10
|
+
height: "100%"
|
|
11
|
+
})), S = p(f, {
|
|
12
|
+
shouldForwardProp: (t) => !["position", "show"].includes(t)
|
|
13
|
+
})(({
|
|
14
|
+
position: t,
|
|
15
|
+
show: i
|
|
16
|
+
}) => ({
|
|
17
|
+
position: "absolute",
|
|
18
|
+
top: 0,
|
|
19
|
+
backgroundColor: "#FFF",
|
|
20
|
+
width: "2px",
|
|
21
|
+
height: "100%",
|
|
22
|
+
zIndex: 6,
|
|
23
|
+
opacity: 0.9,
|
|
24
|
+
left: t,
|
|
25
|
+
display: i ? "block" : "none"
|
|
26
|
+
})), F = p(f)(() => ({
|
|
27
|
+
height: "inherit",
|
|
28
|
+
zIndex: 3
|
|
29
|
+
})), z = {
|
|
30
|
+
Root: P,
|
|
31
|
+
CompactLabel: R,
|
|
32
|
+
LineBox: S,
|
|
33
|
+
ContentBox: F
|
|
34
|
+
};
|
|
35
|
+
function h({
|
|
36
|
+
position: t,
|
|
37
|
+
offset: i,
|
|
38
|
+
show: x,
|
|
39
|
+
label: d,
|
|
40
|
+
children: M,
|
|
41
|
+
onMouseMove: y,
|
|
42
|
+
onMouseEnter: B,
|
|
43
|
+
onMouseLeave: b,
|
|
44
|
+
components: L,
|
|
45
|
+
componentsProps: r
|
|
46
|
+
}) {
|
|
47
|
+
var m;
|
|
48
|
+
const {
|
|
49
|
+
Root: v,
|
|
50
|
+
LineBox: C,
|
|
51
|
+
CompactLabel: O,
|
|
52
|
+
ContentBox: g
|
|
53
|
+
} = L, a = E(), s = (m = a.current) == null ? void 0 : m.offsetWidth, T = (e) => {
|
|
54
|
+
try {
|
|
55
|
+
return Math.round(e.getBoundingClientRect().left);
|
|
56
|
+
} catch {
|
|
57
|
+
return 0;
|
|
58
|
+
}
|
|
59
|
+
}, j = (e) => {
|
|
60
|
+
const n = T(e.currentTarget), u = e.clientX - n - i;
|
|
61
|
+
return u < 0 ? 0 : u > s ? s : u;
|
|
62
|
+
}, c = (e, n) => {
|
|
63
|
+
n && n(e, {
|
|
64
|
+
position: j(e),
|
|
65
|
+
contentWidth: s
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
return /* @__PURE__ */ w(v, { onMouseMove: (e) => c(e, y), onMouseEnter: (e) => c(e, B), onMouseLeave: (e) => c(e, b), ...r.root, children: [
|
|
69
|
+
/* @__PURE__ */ l(C, { position: t, show: x, ...r.lineBox, children: d && /* @__PURE__ */ l(O, { children: d }) }),
|
|
70
|
+
/* @__PURE__ */ l(g, { ref: a, ...r.contentBox, children: M })
|
|
71
|
+
] });
|
|
72
|
+
}
|
|
73
|
+
h.propTypes = {
|
|
74
|
+
/**
|
|
75
|
+
* Set the position of the scrub line
|
|
76
|
+
*/
|
|
77
|
+
position: o.number,
|
|
78
|
+
/**
|
|
79
|
+
* Custom offset the scrub line from the mouse pointer
|
|
80
|
+
*/
|
|
81
|
+
offset: o.number,
|
|
82
|
+
/**
|
|
83
|
+
* Callback for clicking expand button
|
|
84
|
+
*/
|
|
85
|
+
show: o.bool,
|
|
86
|
+
/**
|
|
87
|
+
* Add a label next to the scrub line
|
|
88
|
+
*/
|
|
89
|
+
label: o.string,
|
|
90
|
+
/**
|
|
91
|
+
* Children for component
|
|
92
|
+
*/
|
|
93
|
+
children: o.oneOfType([o.arrayOf(o.node), o.node]),
|
|
94
|
+
// Callbacks
|
|
95
|
+
/**
|
|
96
|
+
* Callback for when mouse moving over children/content
|
|
97
|
+
*/
|
|
98
|
+
onMouseMove: o.func,
|
|
99
|
+
/**
|
|
100
|
+
* Callback for mouse leaving children/content
|
|
101
|
+
*/
|
|
102
|
+
onMouseLeave: o.func,
|
|
103
|
+
/**
|
|
104
|
+
* Callback for mouse leaving children/content
|
|
105
|
+
*/
|
|
106
|
+
onMouseEnter: o.func,
|
|
107
|
+
// Overrides
|
|
108
|
+
/**
|
|
109
|
+
* Replace internal components
|
|
110
|
+
*/
|
|
111
|
+
components: o.shape({
|
|
112
|
+
Root: o.elementType,
|
|
113
|
+
LineBox: o.elementType,
|
|
114
|
+
CompactLabel: o.elementType,
|
|
115
|
+
ContentBox: o.elementType
|
|
116
|
+
}),
|
|
117
|
+
/**
|
|
118
|
+
* Add internal component props
|
|
119
|
+
*/
|
|
120
|
+
componentsProps: o.shape({
|
|
121
|
+
root: o.instanceOf(Object),
|
|
122
|
+
lineBox: o.instanceOf(Object),
|
|
123
|
+
compactLabel: o.instanceOf(Object),
|
|
124
|
+
contentBox: o.instanceOf(Object)
|
|
125
|
+
})
|
|
126
|
+
};
|
|
127
|
+
h.defaultProps = {
|
|
128
|
+
position: 0,
|
|
129
|
+
offset: 0,
|
|
130
|
+
show: !0,
|
|
131
|
+
label: void 0,
|
|
132
|
+
onMouseMove: void 0,
|
|
133
|
+
onMouseLeave: void 0,
|
|
134
|
+
onMouseEnter: void 0,
|
|
135
|
+
children: null,
|
|
136
|
+
components: z,
|
|
137
|
+
componentsProps: void 0
|
|
138
|
+
};
|
|
139
|
+
export {
|
|
140
|
+
h as default
|
|
141
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { styled as r } from "@mui/material/styles";
|
|
2
|
+
import { withOverrides as n } from "../../_utils/withOverrides.js";
|
|
3
|
+
import m from "./ScrubLine.js";
|
|
4
|
+
const o = "ScrubLine", e = `Vdt${o}`, i = n(e)(m), s = r(i, {
|
|
5
|
+
name: e,
|
|
6
|
+
overridesResolver: (d, t) => t.root
|
|
7
|
+
})(() => ({}));
|
|
8
|
+
s.displayName = o;
|
|
9
|
+
export {
|
|
10
|
+
s as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { jsxs as A, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { useState as M } from "react";
|
|
3
|
+
import e from "prop-types";
|
|
4
|
+
import E from "@mui/material/Box";
|
|
5
|
+
import P from "@mui/material/Menu";
|
|
6
|
+
import { styled as u, alpha as W } from "@mui/material/styles";
|
|
7
|
+
import D from "./components/ButtonBase.js";
|
|
8
|
+
import F from "./components/MenuItem.js";
|
|
9
|
+
const V = u(E)(({
|
|
10
|
+
theme: n
|
|
11
|
+
}) => {
|
|
12
|
+
var t;
|
|
13
|
+
return {
|
|
14
|
+
color: (t = n.palette) == null ? void 0 : t.secondary.main,
|
|
15
|
+
paddingLeft: 9,
|
|
16
|
+
paddingRight: 9,
|
|
17
|
+
borderRadius: 4
|
|
18
|
+
};
|
|
19
|
+
}), $ = u(P)(() => ({
|
|
20
|
+
minWidth: 150,
|
|
21
|
+
marginTop: 4
|
|
22
|
+
})), q = u(F)(({
|
|
23
|
+
theme: n
|
|
24
|
+
}) => {
|
|
25
|
+
var t, a, o, l;
|
|
26
|
+
return {
|
|
27
|
+
"&$selected": {
|
|
28
|
+
backgroundColor: n.palette && W((a = (t = n.palette) == null ? void 0 : t.secondary) == null ? void 0 : a.main, 0.16),
|
|
29
|
+
color: (l = (o = n.palette) == null ? void 0 : o.secondary) == null ? void 0 : l.main
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}), w = u(D, {
|
|
33
|
+
shouldForwardProp: (n) => n !== "descending"
|
|
34
|
+
})(({
|
|
35
|
+
descending: n,
|
|
36
|
+
theme: t
|
|
37
|
+
}) => {
|
|
38
|
+
var a, o;
|
|
39
|
+
return {
|
|
40
|
+
"& .MuiBox-root": {
|
|
41
|
+
marginRight: "-2px",
|
|
42
|
+
marginLeft: "4px",
|
|
43
|
+
color: (o = (a = t.palette) == null ? void 0 : a.secondary) == null ? void 0 : o.main,
|
|
44
|
+
transition: "transform .2s ease-out",
|
|
45
|
+
transform: "rotate(180deg)",
|
|
46
|
+
...n && {
|
|
47
|
+
transform: "rotate(0deg)"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}), G = {
|
|
52
|
+
Root: V,
|
|
53
|
+
Menu: $,
|
|
54
|
+
MenuItem: q,
|
|
55
|
+
ButtonBase: w
|
|
56
|
+
};
|
|
57
|
+
function B({
|
|
58
|
+
caption: n,
|
|
59
|
+
options: t,
|
|
60
|
+
sortAsc: a,
|
|
61
|
+
sortDesc: o,
|
|
62
|
+
initialSort: l,
|
|
63
|
+
onChange: p,
|
|
64
|
+
components: O,
|
|
65
|
+
componentsProps: i
|
|
66
|
+
}) {
|
|
67
|
+
var y, b;
|
|
68
|
+
const {
|
|
69
|
+
Root: S,
|
|
70
|
+
Menu: T,
|
|
71
|
+
MenuItem: x,
|
|
72
|
+
ButtonBase: C
|
|
73
|
+
} = O, [f, g] = M(null), I = (r) => {
|
|
74
|
+
g(r.currentTarget);
|
|
75
|
+
}, h = () => {
|
|
76
|
+
g(null);
|
|
77
|
+
}, [s, j] = M(l || {
|
|
78
|
+
option: {},
|
|
79
|
+
direction: o
|
|
80
|
+
}), R = (r, v) => {
|
|
81
|
+
let {
|
|
82
|
+
option: c,
|
|
83
|
+
direction: d
|
|
84
|
+
} = s;
|
|
85
|
+
v !== c.value ? c = t.find((z) => z.value === v) : d = d === o ? a : o, j({
|
|
86
|
+
option: c,
|
|
87
|
+
direction: d
|
|
88
|
+
}), p && p(r, {
|
|
89
|
+
value: c.value,
|
|
90
|
+
direction: d
|
|
91
|
+
}), h();
|
|
92
|
+
}, k = t === void 0 || t.length === 0, L = s.direction !== a;
|
|
93
|
+
return /* @__PURE__ */ A(S, { ...i.root, children: [
|
|
94
|
+
/* @__PURE__ */ m(C, { onClick: I, disabled: k, label: n, optionLabel: s.option.label || "", descending: L, ...i.buttonBase }),
|
|
95
|
+
/* @__PURE__ */ m(T, { anchorEl: f, keepMounted: !0, open: !!f, onClose: h, elevation: 1, marginThreshold: 0, PaperProps: {
|
|
96
|
+
style: {
|
|
97
|
+
minWidth: 150,
|
|
98
|
+
marginTop: 4
|
|
99
|
+
}
|
|
100
|
+
}, ...i.menu, anchorOrigin: {
|
|
101
|
+
vertical: "bottom",
|
|
102
|
+
horizontal: "left",
|
|
103
|
+
...((y = i.menu) == null ? void 0 : y.anchorOrigin) || {}
|
|
104
|
+
}, transformOrigin: {
|
|
105
|
+
vertical: "top",
|
|
106
|
+
horizontal: "left",
|
|
107
|
+
...((b = i.menu) == null ? void 0 : b.transformOrigin) || {}
|
|
108
|
+
}, children: t.map((r) => /* @__PURE__ */ m(x, { value: r.value, label: r.label, onClick: R, selected: r.value === s.option.value, ...i.menuItem }, r.value)) })
|
|
109
|
+
] });
|
|
110
|
+
}
|
|
111
|
+
B.propTypes = {
|
|
112
|
+
/**
|
|
113
|
+
* Text shown before sort options
|
|
114
|
+
*/
|
|
115
|
+
caption: e.string,
|
|
116
|
+
/**
|
|
117
|
+
* Value string for ascending sort
|
|
118
|
+
*/
|
|
119
|
+
sortAsc: e.string,
|
|
120
|
+
/**
|
|
121
|
+
* Value string for descending sort
|
|
122
|
+
*/
|
|
123
|
+
sortDesc: e.string,
|
|
124
|
+
/**
|
|
125
|
+
* Function that is called when sort option is changed
|
|
126
|
+
*/
|
|
127
|
+
onChange: e.func,
|
|
128
|
+
/**
|
|
129
|
+
* Array of sort options
|
|
130
|
+
*/
|
|
131
|
+
options: e.arrayOf(e.shape({
|
|
132
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
133
|
+
value: e.any,
|
|
134
|
+
label: e.string
|
|
135
|
+
})),
|
|
136
|
+
/**
|
|
137
|
+
* Initial sort option
|
|
138
|
+
*/
|
|
139
|
+
initialSort: e.shape({
|
|
140
|
+
option: e.shape({
|
|
141
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
142
|
+
value: e.any,
|
|
143
|
+
label: e.string
|
|
144
|
+
}),
|
|
145
|
+
direction: e.string
|
|
146
|
+
}),
|
|
147
|
+
// Overrides
|
|
148
|
+
/**
|
|
149
|
+
* Replace internal components
|
|
150
|
+
*/
|
|
151
|
+
components: e.shape({
|
|
152
|
+
Root: e.elementType,
|
|
153
|
+
Menu: e.elementType,
|
|
154
|
+
MenuItem: e.elementType,
|
|
155
|
+
ButtonBase: e.elementType
|
|
156
|
+
}),
|
|
157
|
+
/**
|
|
158
|
+
* Add internal component props
|
|
159
|
+
*/
|
|
160
|
+
componentsProps: e.shape({
|
|
161
|
+
root: e.instanceOf(Object),
|
|
162
|
+
menu: e.instanceOf(Object),
|
|
163
|
+
menuItem: e.instanceOf(Object),
|
|
164
|
+
buttonBase: e.instanceOf(Object)
|
|
165
|
+
})
|
|
166
|
+
};
|
|
167
|
+
B.defaultProps = {
|
|
168
|
+
caption: "Sort by",
|
|
169
|
+
sortAsc: "ascending",
|
|
170
|
+
sortDesc: "descending",
|
|
171
|
+
onChange: void 0,
|
|
172
|
+
initialSort: void 0,
|
|
173
|
+
options: [],
|
|
174
|
+
components: G,
|
|
175
|
+
componentsProps: void 0
|
|
176
|
+
};
|
|
177
|
+
export {
|
|
178
|
+
B as default
|
|
179
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import e from "@mui/icons-material/esm/ArrowDropDown";
|
|
3
|
+
import p from "@mui/material/Box";
|
|
4
|
+
import a from "@mui/material/ButtonBase";
|
|
5
|
+
import c from "@mui/material/Typography";
|
|
6
|
+
function h({
|
|
7
|
+
disabled: o,
|
|
8
|
+
label: t,
|
|
9
|
+
optionLabel: n,
|
|
10
|
+
...i
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ m(a, { disabled: o, ...i, children: [
|
|
13
|
+
/* @__PURE__ */ r(c, { variant: "caption", color: o ? "textSecondary" : "textPrimary", children: `${t}: ${n}` }),
|
|
14
|
+
/* @__PURE__ */ r(p, { children: /* @__PURE__ */ r(e, {}) })
|
|
15
|
+
] });
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
h as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import p from "@mui/material/MenuItem";
|
|
3
|
+
import u from "@mui/material/Typography";
|
|
4
|
+
function d({
|
|
5
|
+
value: t,
|
|
6
|
+
label: e = "",
|
|
7
|
+
selected: o,
|
|
8
|
+
onClick: n,
|
|
9
|
+
...i
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ r(p, { selected: o, onClick: (m) => n(m, t), dense: !0, ...i, children: /* @__PURE__ */ r(u, { variant: "caption", children: e }) });
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
d as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { styled as r } from "@mui/material/styles";
|
|
2
|
+
import { withOverrides as m } from "../../_utils/withOverrides.js";
|
|
3
|
+
import n from "./Sort.js";
|
|
4
|
+
const o = "Sort", t = `Vdt${o}`, s = m(t)(n), i = r(s, {
|
|
5
|
+
name: t,
|
|
6
|
+
overridesResolver: (d, e) => e.root
|
|
7
|
+
})(() => ({}));
|
|
8
|
+
i.displayName = o;
|
|
9
|
+
export {
|
|
10
|
+
i as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as w } from "react";
|
|
3
|
+
import o from "prop-types";
|
|
4
|
+
import d from "@mui/material/TablePagination";
|
|
5
|
+
import { styled as y } from "@mui/material/styles";
|
|
6
|
+
const T = y(d)(() => ({
|
|
7
|
+
overflow: "unset"
|
|
8
|
+
})), C = {
|
|
9
|
+
Root: T
|
|
10
|
+
};
|
|
11
|
+
function m({
|
|
12
|
+
count: u,
|
|
13
|
+
page: n,
|
|
14
|
+
rowsPerPage: r,
|
|
15
|
+
rowsPerPageOptions: a,
|
|
16
|
+
showFirstButton: c,
|
|
17
|
+
showLastButton: i,
|
|
18
|
+
onPageChange: p,
|
|
19
|
+
onRowsPerPageChange: l,
|
|
20
|
+
components: f,
|
|
21
|
+
componentsProps: P
|
|
22
|
+
}) {
|
|
23
|
+
const {
|
|
24
|
+
Root: g
|
|
25
|
+
} = f, h = a.includes(r) ? a : [...a, r].sort((t, e) => t - e), s = Math.ceil(u / r) - 1;
|
|
26
|
+
return w(() => {
|
|
27
|
+
n > 0 && n > s && p(null, {
|
|
28
|
+
value: s
|
|
29
|
+
});
|
|
30
|
+
}, [s, p, n]), /* @__PURE__ */ b(g, { component: "div", count: u, page: Math.max(0, Math.min(n, s)), rowsPerPage: r, onPageChange: (t, e) => p(t, {
|
|
31
|
+
value: e
|
|
32
|
+
}), onRowsPerPageChange: (t, {
|
|
33
|
+
props: {
|
|
34
|
+
value: e
|
|
35
|
+
}
|
|
36
|
+
}) => {
|
|
37
|
+
l(t, {
|
|
38
|
+
value: e
|
|
39
|
+
});
|
|
40
|
+
}, rowsPerPageOptions: h, showFirstButton: c, showLastButton: i, ...P.root });
|
|
41
|
+
}
|
|
42
|
+
m.propTypes = {
|
|
43
|
+
/**
|
|
44
|
+
* The total amount of entities
|
|
45
|
+
*/
|
|
46
|
+
count: o.number,
|
|
47
|
+
/**
|
|
48
|
+
* Current page
|
|
49
|
+
*/
|
|
50
|
+
page: o.number,
|
|
51
|
+
/**
|
|
52
|
+
* Number of rows shown per page
|
|
53
|
+
*/
|
|
54
|
+
rowsPerPage: o.number,
|
|
55
|
+
/**
|
|
56
|
+
* An array of options for how many rows should be shown per page
|
|
57
|
+
*/
|
|
58
|
+
rowsPerPageOptions: o.arrayOf(Number),
|
|
59
|
+
/**
|
|
60
|
+
* Number of rows shown per page
|
|
61
|
+
*/
|
|
62
|
+
showFirstButton: o.bool,
|
|
63
|
+
/**
|
|
64
|
+
* Number of rows shown per page
|
|
65
|
+
*/
|
|
66
|
+
showLastButton: o.bool,
|
|
67
|
+
// Callbacks
|
|
68
|
+
/**
|
|
69
|
+
* Callback for when the page changes
|
|
70
|
+
*/
|
|
71
|
+
onPageChange: o.func,
|
|
72
|
+
/**
|
|
73
|
+
* Callback for when the user selects from the rowsPerPageOptions
|
|
74
|
+
*/
|
|
75
|
+
onRowsPerPageChange: o.func,
|
|
76
|
+
// Overrides
|
|
77
|
+
/**
|
|
78
|
+
* Replace internal components
|
|
79
|
+
*/
|
|
80
|
+
components: o.shape({
|
|
81
|
+
Root: o.elementType
|
|
82
|
+
}),
|
|
83
|
+
/**
|
|
84
|
+
* Add internal component props
|
|
85
|
+
*/
|
|
86
|
+
componentsProps: o.shape({
|
|
87
|
+
root: o.instanceOf(Object)
|
|
88
|
+
})
|
|
89
|
+
};
|
|
90
|
+
m.defaultProps = {
|
|
91
|
+
count: 0,
|
|
92
|
+
page: 0,
|
|
93
|
+
rowsPerPage: 10,
|
|
94
|
+
rowsPerPageOptions: [10, 25, 50, 100],
|
|
95
|
+
showFirstButton: !0,
|
|
96
|
+
showLastButton: !0,
|
|
97
|
+
onPageChange: () => null,
|
|
98
|
+
onRowsPerPageChange: () => null,
|
|
99
|
+
components: C,
|
|
100
|
+
componentsProps: void 0
|
|
101
|
+
};
|
|
102
|
+
export {
|
|
103
|
+
m as default
|
|
104
|
+
};
|