@ynput/ayon-frontend-shared 0.1.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/EmptyPlaceholderFlex.styled-C3tjIk5V.mjs +121 -0
- package/dist/EmptyPlaceholderFlex.styled-C3tjIk5V.mjs.map +1 -0
- package/dist/EmptyPlaceholderFlex.styled-D_9k5mMH.js +78 -0
- package/dist/EmptyPlaceholderFlex.styled-D_9k5mMH.js.map +1 -0
- package/dist/ThumbnailSimple-DbSmXCNa.js +34 -0
- package/dist/ThumbnailSimple-DbSmXCNa.js.map +1 -0
- package/dist/ThumbnailSimple-DotCInch.mjs +78 -0
- package/dist/ThumbnailSimple-DotCInch.mjs.map +1 -0
- package/dist/ayon-frontend-shared.css +1 -0
- package/dist/confirmDelete-BSaFL2RH.mjs +6279 -0
- package/dist/confirmDelete-BSaFL2RH.mjs.map +1 -0
- package/dist/confirmDelete-BoRH88hw.js +43 -0
- package/dist/confirmDelete-BoRH88hw.js.map +1 -0
- package/dist/csstransition.esm-CzUZfsIt.mjs +3101 -0
- package/dist/csstransition.esm-CzUZfsIt.mjs.map +1 -0
- package/dist/csstransition.esm-Riwtyc4r.js +32 -0
- package/dist/csstransition.esm-Riwtyc4r.js.map +1 -0
- package/dist/format-DUCu0Y-3.mjs +1289 -0
- package/dist/format-DUCu0Y-3.mjs.map +1 -0
- package/dist/format-v4Hpvya-.js +2 -0
- package/dist/format-v4Hpvya-.js.map +1 -0
- package/dist/getEntityTypeIcon-BvwosBHR.js +2 -0
- package/dist/getEntityTypeIcon-BvwosBHR.js.map +1 -0
- package/dist/getEntityTypeIcon-BxTCKGSi.mjs +50 -0
- package/dist/getEntityTypeIcon-BxTCKGSi.mjs.map +1 -0
- package/dist/index.cjs.js +2 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.cjs2.js +2 -0
- package/dist/index.cjs2.js.map +1 -0
- package/dist/index.cjs3.js +2 -0
- package/dist/index.cjs3.js.map +1 -0
- package/dist/index.cjs4.js +2 -0
- package/dist/index.cjs4.js.map +1 -0
- package/dist/index.cjs5.js +2 -0
- package/dist/index.cjs5.js.map +1 -0
- package/dist/index.cjs6.js +2 -0
- package/dist/index.cjs6.js.map +1 -0
- package/dist/index.cjs7.js +29 -0
- package/dist/index.cjs7.js.map +1 -0
- package/dist/index.cjs8.js +549 -0
- package/dist/index.cjs8.js.map +1 -0
- package/dist/index.cjs9.js +1753 -0
- package/dist/index.cjs9.js.map +1 -0
- package/dist/index.es.js +8 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.es2.js +11 -0
- package/dist/index.es2.js.map +1 -0
- package/dist/index.es3.js +12 -0
- package/dist/index.es3.js.map +1 -0
- package/dist/index.es4.js +5 -0
- package/dist/index.es4.js.map +1 -0
- package/dist/index.es5.js +5 -0
- package/dist/index.es5.js.map +1 -0
- package/dist/index.es6.js +37 -0
- package/dist/index.es6.js.map +1 -0
- package/dist/index.es7.js +361 -0
- package/dist/index.es7.js.map +1 -0
- package/dist/index.es8.js +4340 -0
- package/dist/index.es8.js.map +1 -0
- package/dist/index.es9.js +56950 -0
- package/dist/index.es9.js.map +1 -0
- package/dist/jsx-runtime-Drh4NO5G.mjs +634 -0
- package/dist/jsx-runtime-Drh4NO5G.mjs.map +1 -0
- package/dist/jsx-runtime-qcKc-DpB.js +31 -0
- package/dist/jsx-runtime-qcKc-DpB.js.map +1 -0
- package/dist/platform-C5rgawOb.js +2 -0
- package/dist/platform-C5rgawOb.js.map +1 -0
- package/dist/platform-DNAvZtra.mjs +36 -0
- package/dist/platform-DNAvZtra.mjs.map +1 -0
- package/dist/types/ContextMenu.d.ts +1 -0
- package/dist/types/Feed.d.ts +1 -0
- package/dist/types/ProjectTreeTable.d.ts +1 -0
- package/dist/types/Slicer.d.ts +1 -0
- package/dist/types/api/activities/index.d.ts +1 -0
- package/dist/types/api/activities/transformations.d.ts +0 -0
- package/dist/types/api/activities/types.d.ts +10 -0
- package/dist/types/api/graphql.d.ts +2096 -0
- package/dist/types/api/index.d.ts +2 -0
- package/dist/types/api.d.ts +1 -0
- package/dist/types/components/EmptyPlaceholder/EmptyPlaceholder.d.ts +11 -0
- package/dist/types/components/EmptyPlaceholder/EmptyPlaceholderFlex.styled.d.ts +2 -0
- package/dist/types/components/EmptyPlaceholder/index.d.ts +4 -0
- package/dist/types/components/ThumbnailSimple/ThumbnailSimple.d.ts +15 -0
- package/dist/types/components/ThumbnailSimple/index.d.ts +3 -0
- package/dist/types/components/UserImage/UserImage.d.ts +11 -0
- package/dist/types/components/UserImage/index.d.ts +3 -0
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/components.d.ts +1 -0
- package/dist/types/containers/ContextMenu/ContextMenuContext.d.ts +21 -0
- package/dist/types/containers/ContextMenu/ContextMenuItem.d.ts +27 -0
- package/dist/types/containers/ContextMenu/GlobalContextMenu.d.ts +1 -0
- package/dist/types/containers/ContextMenu/index.d.ts +4 -0
- package/dist/types/containers/ContextMenu/useCreateContextMenu.d.ts +17 -0
- package/dist/types/containers/Feed/Feed.d.ts +10 -0
- package/dist/types/containers/Feed/Feed.styled.d.ts +5 -0
- package/dist/types/containers/Feed/components/ActivityAssigneeChange/ActivityAssigneeChange.d.ts +15 -0
- package/dist/types/containers/Feed/components/ActivityAssigneeChange/ActivityAssigneeChange.styled.d.ts +3 -0
- package/dist/types/containers/Feed/components/ActivityAssigneeChange/index.d.ts +3 -0
- package/dist/types/containers/Feed/components/ActivityCheckbox/ActivityCheckbox.d.ts +6 -0
- package/dist/types/containers/Feed/components/ActivityCheckbox/ActivityCheckbox.styled.d.ts +1 -0
- package/dist/types/containers/Feed/components/ActivityCheckbox/index.d.ts +3 -0
- package/dist/types/containers/Feed/components/ActivityComment/ActivityComment.d.ts +24 -0
- package/dist/types/containers/Feed/components/ActivityComment/ActivityComment.styled.d.ts +14 -0
- package/dist/types/containers/Feed/components/ActivityComment/ActivityMarkdownComponents.d.ts +43 -0
- package/dist/types/containers/Feed/components/ActivityComment/CommentWrapper.d.ts +5 -0
- package/dist/types/containers/Feed/components/ActivityComment/mappers.d.ts +9 -0
- package/dist/types/containers/Feed/components/ActivityDate.d.ts +7 -0
- package/dist/types/containers/Feed/components/ActivityGroup/ActivityGroup.d.ts +9 -0
- package/dist/types/containers/Feed/components/ActivityGroup/ActivityGroup.styled.d.ts +2 -0
- package/dist/types/containers/Feed/components/ActivityHeader/ActivityHeader.d.ts +40 -0
- package/dist/types/containers/Feed/components/ActivityHeader/ActivityHeader.styled.d.ts +4 -0
- package/dist/types/containers/Feed/components/ActivityItem.d.ts +27 -0
- package/dist/types/containers/Feed/components/ActivityReference/ActivityReference.d.ts +14 -0
- package/dist/types/containers/Feed/components/ActivityReference/ActivityReference.styled.d.ts +3 -0
- package/dist/types/containers/Feed/components/ActivityReferenceTooltip/ActivityReferenceTooltip.d.ts +4 -0
- package/dist/types/containers/Feed/components/ActivityReferenceTooltip/index.d.ts +2 -0
- package/dist/types/containers/Feed/components/ActivityStatus/ActivityStatus.d.ts +9 -0
- package/dist/types/containers/Feed/components/ActivityStatusChange/ActivityStatusChange.d.ts +18 -0
- package/dist/types/containers/Feed/components/ActivityStatusChange/ActivityStatusChange.styled.d.ts +3 -0
- package/dist/types/containers/Feed/components/ActivityStatusChange/hooks/getContextParents.d.ts +2 -0
- package/dist/types/containers/Feed/components/ActivityVersions/ActivityVersions.d.ts +24 -0
- package/dist/types/containers/Feed/components/ActivityVersions/ActivityVersions.styled.d.ts +6 -0
- package/dist/types/containers/Feed/components/CommentInput/CommentInput.d.ts +26 -0
- package/dist/types/containers/Feed/components/CommentInput/CommentInput.styled.d.ts +7 -0
- package/dist/types/containers/Feed/components/CommentInput/InputMarkdownConvert.d.ts +11 -0
- package/dist/types/containers/Feed/components/CommentInput/helpers.d.ts +4 -0
- package/dist/types/containers/Feed/components/CommentInput/hooks/useAnnotationsSync.d.ts +14 -0
- package/dist/types/containers/Feed/components/CommentInput/hooks/useAnnotationsUpload.d.ts +6 -0
- package/dist/types/containers/Feed/components/CommentInput/hooks/useInitialValue.d.ts +11 -0
- package/dist/types/containers/Feed/components/CommentInput/hooks/useMentionLink.d.ts +7 -0
- package/dist/types/containers/Feed/components/CommentInput/hooks/useSetCursorEnd.d.ts +7 -0
- package/dist/types/containers/Feed/components/CommentInput/index.d.ts +0 -0
- package/dist/types/containers/Feed/components/CommentInput/modules/ImageUploader.d.ts +8 -0
- package/dist/types/containers/Feed/components/CommentInput/modules/index.d.ts +12 -0
- package/dist/types/containers/Feed/components/CommentInput/quillToMarkdown.d.ts +5 -0
- package/dist/types/containers/Feed/components/CommentMentionSelect/CommentMentionSelect.d.ts +28 -0
- package/dist/types/containers/Feed/components/CommentMentionSelect/CommentMentionSelect.styled.d.ts +6 -0
- package/dist/types/containers/Feed/components/FileUploadCard/FileUploadCard.d.ts +14 -0
- package/dist/types/containers/Feed/components/FileUploadCard/FileUploadCard.styled.d.ts +4 -0
- package/dist/types/containers/Feed/components/FileUploadCard/index.d.ts +3 -0
- package/dist/types/containers/Feed/components/FileUploadPreview/FileUploadPreview.d.ts +22 -0
- package/dist/types/containers/Feed/components/FileUploadPreview/FileUploadPreview.styled.d.ts +4 -0
- package/dist/types/containers/Feed/components/FileUploadPreview/Mimes/ImageMime.d.ts +9 -0
- package/dist/types/containers/Feed/components/FileUploadPreview/Mimes/TextMime.d.ts +10 -0
- package/dist/types/containers/Feed/components/FileUploadPreview/hooks/useAttachmentNavigation.d.ts +19 -0
- package/dist/types/containers/Feed/components/FileUploadPreview/index.d.ts +3 -0
- package/dist/types/containers/Feed/components/FilesGrid/FilesGrid.d.ts +17 -0
- package/dist/types/containers/Feed/components/FilesGrid/FilesGrid.styled.d.ts +1 -0
- package/dist/types/containers/Feed/components/FilesGrid/index.d.ts +3 -0
- package/dist/types/containers/Feed/components/ReactionContainer/ExistingReactions.d.ts +7 -0
- package/dist/types/containers/Feed/components/ReactionContainer/Reaction.d.ts +10 -0
- package/dist/types/containers/Feed/components/ReactionContainer/ReactionPanelOpener.d.ts +7 -0
- package/dist/types/containers/Feed/components/ReactionContainer/Reactions.d.ts +8 -0
- package/dist/types/containers/Feed/components/ReactionContainer/Reactions.styled.d.ts +7 -0
- package/dist/types/containers/Feed/components/ReactionContainer/helpers.d.ts +11 -0
- package/dist/types/containers/Feed/components/ReactionContainer/types.d.ts +8 -0
- package/dist/types/containers/Feed/components/Tooltips/EntityTooltip/EntityTooltip.d.ts +12 -0
- package/dist/types/containers/Feed/components/Tooltips/EntityTooltip/EntityTooltip.styled.d.ts +3 -0
- package/dist/types/containers/Feed/components/Tooltips/UserTooltip/UserTooltip.d.ts +10 -0
- package/dist/types/containers/Feed/components/Tooltips/UserTooltip/UserTooltip.styled.d.ts +2 -0
- package/dist/types/containers/Feed/context/FeedContext.d.ts +58 -0
- package/dist/types/containers/Feed/feedHelpers.d.ts +1 -0
- package/dist/types/containers/Feed/helpers/groupActivityVersions.d.ts +2 -0
- package/dist/types/containers/Feed/helpers/groupMinorActivities.d.ts +2 -0
- package/dist/types/containers/Feed/helpers/mergeSimilarActivities.d.ts +2 -0
- package/dist/types/containers/Feed/hooks/useCommentMutations.d.ts +30 -0
- package/dist/types/containers/Feed/hooks/useReferenceTooltip.d.ts +3 -0
- package/dist/types/containers/Feed/hooks/useSaveScrollPos.d.ts +13 -0
- package/dist/types/containers/Feed/hooks/useScrollOnInputOpen.d.ts +8 -0
- package/dist/types/containers/Feed/hooks/useScrollToHighlighted.d.ts +10 -0
- package/dist/types/containers/Feed/hooks/useTableKeyboardNavigation.d.ts +22 -0
- package/dist/types/containers/Feed/hooks/useTransformActivities.d.ts +4 -0
- package/dist/types/containers/Feed/index.d.ts +7 -0
- package/dist/types/containers/Feed/mentionHelpers/getMentionOptions.d.ts +2 -0
- package/dist/types/containers/Feed/mentionHelpers/getMentionTasks.d.ts +10 -0
- package/dist/types/containers/Feed/mentionHelpers/getMentionUsers.d.ts +8 -0
- package/dist/types/containers/Feed/mentionHelpers/getMentionVersions.d.ts +12 -0
- package/dist/types/containers/ProjectTreeTable/ProjectTreeTable.d.ts +15 -0
- package/dist/types/containers/ProjectTreeTable/ProjectTreeTable.styled.d.ts +14 -0
- package/dist/types/containers/ProjectTreeTable/ProjectTreeTableColumns.d.ts +16 -0
- package/dist/types/containers/ProjectTreeTable/components/HeaderActionButton.d.ts +6 -0
- package/dist/types/containers/ProjectTreeTable/components/RowSelectionHeader.d.ts +3 -0
- package/dist/types/containers/ProjectTreeTable/components/SelectionCell.d.ts +5 -0
- package/dist/types/containers/ProjectTreeTable/context/CellEditingContext.d.ts +18 -0
- package/dist/types/containers/ProjectTreeTable/context/ClipboardContext.d.ts +4 -0
- package/dist/types/containers/ProjectTreeTable/context/ColumnSettingsContext.d.ts +30 -0
- package/dist/types/containers/ProjectTreeTable/context/ProjectTableContext.d.ts +76 -0
- package/dist/types/containers/ProjectTreeTable/context/ProjectTableQueriesContext.d.ts +21 -0
- package/dist/types/containers/ProjectTreeTable/context/SelectedRowsContext.d.ts +15 -0
- package/dist/types/containers/ProjectTreeTable/context/SelectionContext.d.ts +35 -0
- package/dist/types/containers/ProjectTreeTable/context/clipboard/clipboardTypes.d.ts +27 -0
- package/dist/types/containers/ProjectTreeTable/context/clipboard/clipboardUtils.d.ts +6 -0
- package/dist/types/containers/ProjectTreeTable/context/clipboard/clipboardValidation.d.ts +12 -0
- package/dist/types/containers/ProjectTreeTable/context/clipboard/index.d.ts +3 -0
- package/dist/types/containers/ProjectTreeTable/context/index.d.ts +8 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useCellContextMenu.d.ts +10 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useColumnVirtualization.d.ts +17 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useCustomColumnWidthVars.d.ts +6 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useDeleteEntities.d.ts +5 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useFolderRelationships.d.ts +29 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useHistory.d.ts +17 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useKeyboardNavigation.d.ts +10 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useOverviewTable.d.ts +32 -0
- package/dist/types/containers/ProjectTreeTable/hooks/usePrefetchFolderTasks.d.ts +4 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useUpdateOverview.d.ts +30 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useValidateUpdates.d.ts +3 -0
- package/dist/types/containers/ProjectTreeTable/index.d.ts +14 -0
- package/dist/types/containers/ProjectTreeTable/types/folders.d.ts +14 -0
- package/dist/types/containers/ProjectTreeTable/types/index.d.ts +62 -0
- package/dist/types/containers/ProjectTreeTable/types/operations.d.ts +99 -0
- package/dist/types/containers/ProjectTreeTable/types/project.d.ts +223 -0
- package/dist/types/containers/ProjectTreeTable/types/table.d.ts +83 -0
- package/dist/types/containers/ProjectTreeTable/utils/cellUtils.d.ts +42 -0
- package/dist/types/containers/ProjectTreeTable/utils/clientFilterToQueryFilter.d.ts +4 -0
- package/dist/types/containers/ProjectTreeTable/utils/index.d.ts +3 -0
- package/dist/types/containers/ProjectTreeTable/utils/loadingUtils.d.ts +36 -0
- package/dist/types/containers/ProjectTreeTable/widgets/BooleanWidget.d.ts +7 -0
- package/dist/types/containers/ProjectTreeTable/widgets/CellWidget.d.ts +24 -0
- package/dist/types/containers/ProjectTreeTable/widgets/CollapsedWidget.d.ts +5 -0
- package/dist/types/containers/ProjectTreeTable/widgets/DateWidget.d.ts +8 -0
- package/dist/types/containers/ProjectTreeTable/widgets/DateWidgetInput.d.ts +8 -0
- package/dist/types/containers/ProjectTreeTable/widgets/EntityNameWidget.d.ts +14 -0
- package/dist/types/containers/ProjectTreeTable/widgets/EnumWidget.d.ts +28 -0
- package/dist/types/containers/ProjectTreeTable/widgets/TextWidget.d.ts +10 -0
- package/dist/types/containers/ProjectTreeTable/widgets/TextWidgetInput.d.ts +9 -0
- package/dist/types/containers/ProjectTreeTable/widgets/index.d.ts +7 -0
- package/dist/types/containers/Slicer/createFilterFromSlicer.d.ts +6 -0
- package/dist/types/containers/Slicer/index.d.ts +2 -0
- package/dist/types/containers/Slicer/types.d.ts +18 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useLocalStorage.d.ts +1 -0
- package/dist/types/hooks.d.ts +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/util/confirmDelete.d.ts +13 -0
- package/dist/types/util/getEntityTypeIcon.d.ts +1 -0
- package/dist/types/util/index.d.ts +5 -0
- package/dist/types/util/platform.d.ts +8 -0
- package/dist/types/util/productTypes.d.ts +8 -0
- package/dist/types/util.d.ts +1 -0
- package/dist/useCreateContextMenu-CDRv1ybg.js +2 -0
- package/dist/useCreateContextMenu-CDRv1ybg.js.map +1 -0
- package/dist/useCreateContextMenu-DvOhPycB.mjs +118 -0
- package/dist/useCreateContextMenu-DvOhPycB.mjs.map +1 -0
- package/dist/useLocalStorage-BQSzWJ4Q.mjs +39 -0
- package/dist/useLocalStorage-BQSzWJ4Q.mjs.map +1 -0
- package/dist/useLocalStorage-BRHTBlxR.js +2 -0
- package/dist/useLocalStorage-BRHTBlxR.js.map +1 -0
- package/package.json +91 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export type EventOperationsApiResponse = any;
|
|
2
|
+
export type EventOperationsApiArg = {
|
|
3
|
+
eventOperationModel: EventOperationModel;
|
|
4
|
+
};
|
|
5
|
+
export type ActivitiesOperationsApiResponse =
|
|
6
|
+
/** status 200 Successful Response */ ActivityOperationsResponseModel;
|
|
7
|
+
export type ActivitiesOperationsApiArg = {
|
|
8
|
+
projectName: string;
|
|
9
|
+
'x-sender'?: string;
|
|
10
|
+
'x-sender-type'?: string;
|
|
11
|
+
activityOperationsRequestModel: ActivityOperationsRequestModel;
|
|
12
|
+
};
|
|
13
|
+
export type OperationsApiResponse = OperationsResponseModel;
|
|
14
|
+
export type OperationsApiArg = {
|
|
15
|
+
projectName: string;
|
|
16
|
+
'x-sender'?: string;
|
|
17
|
+
'x-sender-type'?: string;
|
|
18
|
+
operationsRequestModel: OperationsRequestModel;
|
|
19
|
+
};
|
|
20
|
+
export type ValidationError = {
|
|
21
|
+
loc: (string | number)[];
|
|
22
|
+
msg: string;
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
export type HttpValidationError = {
|
|
26
|
+
detail?: ValidationError[];
|
|
27
|
+
};
|
|
28
|
+
export type QueryCondition = {
|
|
29
|
+
/** Path to the key separated by slashes */
|
|
30
|
+
key: string;
|
|
31
|
+
/** Value to compare against */
|
|
32
|
+
value?: string | number | number | string[] | number[] | number[];
|
|
33
|
+
/** Comparison operator */
|
|
34
|
+
operator?: 'eq' | 'like' | 'lt' | 'gt' | 'lte' | 'gte' | 'ne' | 'isnull' | 'notnull' | 'in' | 'notin' | 'includes' | 'excludes' | 'includesall' | 'excludesall' | 'includesany' | 'excludesany';
|
|
35
|
+
};
|
|
36
|
+
export type QueryFilter = {
|
|
37
|
+
/** List of conditions to be evaluated */
|
|
38
|
+
conditions?: (QueryCondition | QueryFilter)[];
|
|
39
|
+
/** Operator to use when joining conditions */
|
|
40
|
+
operator?: 'and' | 'or';
|
|
41
|
+
};
|
|
42
|
+
export type EventOperationModel = {
|
|
43
|
+
type: 'delete' | 'restart' | 'abort';
|
|
44
|
+
/** Filter source events */
|
|
45
|
+
filter: QueryFilter;
|
|
46
|
+
};
|
|
47
|
+
export type ActivityOperationResponseModel = {
|
|
48
|
+
id: string;
|
|
49
|
+
type: 'create' | 'update' | 'delete';
|
|
50
|
+
success: boolean;
|
|
51
|
+
status?: number;
|
|
52
|
+
detail?: string;
|
|
53
|
+
/** `None` if type is `create` and the operation fails. */
|
|
54
|
+
activityId?: string;
|
|
55
|
+
};
|
|
56
|
+
export type ActivityOperationsResponseModel = {
|
|
57
|
+
operations?: ActivityOperationResponseModel[];
|
|
58
|
+
success: boolean;
|
|
59
|
+
};
|
|
60
|
+
export type ActivityOperationModel = {
|
|
61
|
+
/** identifier manually or automatically assigned to each operation */
|
|
62
|
+
id?: string;
|
|
63
|
+
type: 'create' | 'update' | 'delete';
|
|
64
|
+
/** ID of the activity. None for create */
|
|
65
|
+
activityId?: string;
|
|
66
|
+
/** Data to be used for create or update. Ignored for delete.See create/patch activity endpoint for details */
|
|
67
|
+
data?: object;
|
|
68
|
+
};
|
|
69
|
+
export type ActivityOperationsRequestModel = {
|
|
70
|
+
operations?: ActivityOperationModel[];
|
|
71
|
+
canFail?: boolean;
|
|
72
|
+
};
|
|
73
|
+
export type OperationResponseModel = {
|
|
74
|
+
id: string;
|
|
75
|
+
type: 'create' | 'update' | 'delete';
|
|
76
|
+
entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile';
|
|
77
|
+
entityId?: string;
|
|
78
|
+
success: boolean;
|
|
79
|
+
status: number;
|
|
80
|
+
errorCode?: string;
|
|
81
|
+
detail?: string;
|
|
82
|
+
};
|
|
83
|
+
export type OperationsResponseModel = {
|
|
84
|
+
operations?: OperationResponseModel[];
|
|
85
|
+
success: boolean;
|
|
86
|
+
};
|
|
87
|
+
export type OperationModel = {
|
|
88
|
+
id?: string;
|
|
89
|
+
type: 'create' | 'update' | 'delete';
|
|
90
|
+
entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile';
|
|
91
|
+
entityId?: string;
|
|
92
|
+
data?: object;
|
|
93
|
+
force?: boolean;
|
|
94
|
+
asUser?: string;
|
|
95
|
+
};
|
|
96
|
+
export type OperationsRequestModel = {
|
|
97
|
+
operations?: OperationModel[];
|
|
98
|
+
canFail?: boolean;
|
|
99
|
+
};
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
export type ActivityResponseModel = {
|
|
2
|
+
/** Activity per day normalized to 0-100 */
|
|
3
|
+
activity: number[];
|
|
4
|
+
};
|
|
5
|
+
export type ProjectTeamsResponseModel = {
|
|
6
|
+
/** Number of active team members */
|
|
7
|
+
teamSizeActive?: number;
|
|
8
|
+
/** Total number of team members */
|
|
9
|
+
teamSizeTotal?: number;
|
|
10
|
+
/** Number of active users */
|
|
11
|
+
usersWithAccessActive?: number;
|
|
12
|
+
/** Total number of users */
|
|
13
|
+
usersWithAccessTotal?: number;
|
|
14
|
+
/** Number of users per role */
|
|
15
|
+
roles: {
|
|
16
|
+
[key: string]: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export type Root = {
|
|
20
|
+
name: string;
|
|
21
|
+
windows?: string;
|
|
22
|
+
linux?: string;
|
|
23
|
+
darwin?: string;
|
|
24
|
+
};
|
|
25
|
+
export type WorkTemplate = {
|
|
26
|
+
name: string;
|
|
27
|
+
directory: string;
|
|
28
|
+
file: string;
|
|
29
|
+
};
|
|
30
|
+
export type PublishTemplate = {
|
|
31
|
+
name: string;
|
|
32
|
+
directory: string;
|
|
33
|
+
file: string;
|
|
34
|
+
};
|
|
35
|
+
export type HeroTemplate = {
|
|
36
|
+
name: string;
|
|
37
|
+
directory: string;
|
|
38
|
+
file: string;
|
|
39
|
+
};
|
|
40
|
+
export type DeliveryTemplate = {
|
|
41
|
+
name: string;
|
|
42
|
+
directory: string;
|
|
43
|
+
file: string;
|
|
44
|
+
};
|
|
45
|
+
export type StagingDirectory = {
|
|
46
|
+
name: string;
|
|
47
|
+
directory?: string;
|
|
48
|
+
};
|
|
49
|
+
export type CustomTemplate = {
|
|
50
|
+
name: string;
|
|
51
|
+
value?: string;
|
|
52
|
+
};
|
|
53
|
+
export type Templates = {
|
|
54
|
+
version_padding?: number;
|
|
55
|
+
version?: string;
|
|
56
|
+
frame_padding?: number;
|
|
57
|
+
frame?: string;
|
|
58
|
+
work?: WorkTemplate[];
|
|
59
|
+
publish?: PublishTemplate[];
|
|
60
|
+
hero?: HeroTemplate[];
|
|
61
|
+
delivery?: DeliveryTemplate[];
|
|
62
|
+
staging?: StagingDirectory[];
|
|
63
|
+
others?: CustomTemplate[];
|
|
64
|
+
};
|
|
65
|
+
export type ProjectAttribModel = {
|
|
66
|
+
priority?: 'urgent' | 'high' | 'normal' | 'low';
|
|
67
|
+
/** Frame rate */
|
|
68
|
+
fps?: number;
|
|
69
|
+
/** Horizontal resolution */
|
|
70
|
+
resolutionWidth?: number;
|
|
71
|
+
/** Vertical resolution */
|
|
72
|
+
resolutionHeight?: number;
|
|
73
|
+
pixelAspect?: number;
|
|
74
|
+
clipIn?: number;
|
|
75
|
+
clipOut?: number;
|
|
76
|
+
frameStart?: number;
|
|
77
|
+
frameEnd?: number;
|
|
78
|
+
handleStart?: number;
|
|
79
|
+
handleEnd?: number;
|
|
80
|
+
/** Date and time when the project or task or asset was started */
|
|
81
|
+
startDate?: string;
|
|
82
|
+
/** Deadline date and time */
|
|
83
|
+
endDate?: string;
|
|
84
|
+
/** Textual description of the entity */
|
|
85
|
+
description?: string;
|
|
86
|
+
applications?: string[];
|
|
87
|
+
tools?: string[];
|
|
88
|
+
};
|
|
89
|
+
export type FolderType = {
|
|
90
|
+
name: string;
|
|
91
|
+
original_name?: string;
|
|
92
|
+
shortName?: string;
|
|
93
|
+
icon?: string;
|
|
94
|
+
};
|
|
95
|
+
export type TaskType = {
|
|
96
|
+
name: string;
|
|
97
|
+
original_name?: string;
|
|
98
|
+
shortName?: string;
|
|
99
|
+
color?: string;
|
|
100
|
+
icon?: string;
|
|
101
|
+
};
|
|
102
|
+
export type LinkType = {
|
|
103
|
+
link_type: string;
|
|
104
|
+
input_type: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile';
|
|
105
|
+
output_type: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile';
|
|
106
|
+
color?: string;
|
|
107
|
+
style?: 'solid' | 'dashed';
|
|
108
|
+
};
|
|
109
|
+
export type Status = {
|
|
110
|
+
name: string;
|
|
111
|
+
original_name?: string;
|
|
112
|
+
shortName?: string;
|
|
113
|
+
state?: 'not_started' | 'in_progress' | 'done' | 'blocked';
|
|
114
|
+
icon?: string;
|
|
115
|
+
color?: string;
|
|
116
|
+
/** Limit the status to specific entity types. */
|
|
117
|
+
scope?: string[];
|
|
118
|
+
};
|
|
119
|
+
export type Tag = {
|
|
120
|
+
name: string;
|
|
121
|
+
original_name?: string;
|
|
122
|
+
color?: string;
|
|
123
|
+
};
|
|
124
|
+
export type Anatomy = {
|
|
125
|
+
/** Setup root paths for the project */
|
|
126
|
+
roots?: Root[];
|
|
127
|
+
/** Path templates configuration */
|
|
128
|
+
templates?: Templates;
|
|
129
|
+
/** Attributes configuration */
|
|
130
|
+
attributes?: ProjectAttribModel;
|
|
131
|
+
/** Folder types configuration */
|
|
132
|
+
folder_types?: FolderType[];
|
|
133
|
+
/** Task types configuration */
|
|
134
|
+
task_types?: TaskType[];
|
|
135
|
+
/** Link types configuration */
|
|
136
|
+
link_types?: LinkType[];
|
|
137
|
+
/** Statuses configuration */
|
|
138
|
+
statuses?: Status[];
|
|
139
|
+
/** Tags configuration */
|
|
140
|
+
tags?: Tag[];
|
|
141
|
+
};
|
|
142
|
+
export type ListProjectsItemModel = {
|
|
143
|
+
name: string;
|
|
144
|
+
code: string;
|
|
145
|
+
active: boolean;
|
|
146
|
+
createdAt: string;
|
|
147
|
+
updatedAt: string;
|
|
148
|
+
};
|
|
149
|
+
export type ListProjectsResponseModel = {
|
|
150
|
+
detail?: string;
|
|
151
|
+
/** Total count of projects (regardless the pagination) */
|
|
152
|
+
count?: number;
|
|
153
|
+
/** List of projects */
|
|
154
|
+
projects?: ListProjectsItemModel[];
|
|
155
|
+
};
|
|
156
|
+
export type LinkTypeModel = {
|
|
157
|
+
/** Name of the link type */
|
|
158
|
+
name: string;
|
|
159
|
+
/** Type of the link */
|
|
160
|
+
linkType: string;
|
|
161
|
+
/** Input entity type */
|
|
162
|
+
inputType: string;
|
|
163
|
+
/** Output entity type */
|
|
164
|
+
outputType: string;
|
|
165
|
+
/** Additional link type data */
|
|
166
|
+
data?: object;
|
|
167
|
+
};
|
|
168
|
+
export type ProjectAttribModel2 = {
|
|
169
|
+
priority?: 'urgent' | 'high' | 'normal' | 'low';
|
|
170
|
+
/** Frame rate */
|
|
171
|
+
fps?: number;
|
|
172
|
+
/** Horizontal resolution */
|
|
173
|
+
resolutionWidth?: number;
|
|
174
|
+
/** Vertical resolution */
|
|
175
|
+
resolutionHeight?: number;
|
|
176
|
+
pixelAspect?: number;
|
|
177
|
+
clipIn?: number;
|
|
178
|
+
clipOut?: number;
|
|
179
|
+
frameStart?: number;
|
|
180
|
+
frameEnd?: number;
|
|
181
|
+
handleStart?: number;
|
|
182
|
+
handleEnd?: number;
|
|
183
|
+
/** Date and time when the project or task or asset was started */
|
|
184
|
+
startDate?: string;
|
|
185
|
+
/** Deadline date and time */
|
|
186
|
+
endDate?: string;
|
|
187
|
+
/** Textual description of the entity */
|
|
188
|
+
description?: string;
|
|
189
|
+
applications?: string[];
|
|
190
|
+
tools?: string[];
|
|
191
|
+
};
|
|
192
|
+
export type ProjectModel = {
|
|
193
|
+
/** Name is an unique id of the {entity_name} */
|
|
194
|
+
name: string;
|
|
195
|
+
code: string;
|
|
196
|
+
library?: boolean;
|
|
197
|
+
folderTypes?: FolderType[];
|
|
198
|
+
taskTypes?: TaskType[];
|
|
199
|
+
linkTypes?: LinkTypeModel[];
|
|
200
|
+
statuses?: Status[];
|
|
201
|
+
tags?: Tag[];
|
|
202
|
+
config?: object;
|
|
203
|
+
attrib?: ProjectAttribModel2;
|
|
204
|
+
data?: object;
|
|
205
|
+
/** Whether the project is active */
|
|
206
|
+
active?: boolean;
|
|
207
|
+
ownAttrib?: string[];
|
|
208
|
+
/** Time of creation */
|
|
209
|
+
createdAt?: string;
|
|
210
|
+
/** Time of last update */
|
|
211
|
+
updatedAt?: string;
|
|
212
|
+
};
|
|
213
|
+
export type UriResponseItem = {
|
|
214
|
+
id: string;
|
|
215
|
+
uri: string;
|
|
216
|
+
};
|
|
217
|
+
export type GetUrisResponse = {
|
|
218
|
+
uris?: UriResponseItem[];
|
|
219
|
+
};
|
|
220
|
+
export type GetUrisRequest = {
|
|
221
|
+
entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile';
|
|
222
|
+
ids?: string[];
|
|
223
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export type FolderListItem = {
|
|
2
|
+
id: string;
|
|
3
|
+
path: string;
|
|
4
|
+
parentId?: string;
|
|
5
|
+
parents: string[];
|
|
6
|
+
name: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
folderType: string;
|
|
9
|
+
hasTasks?: boolean;
|
|
10
|
+
hasChildren?: boolean;
|
|
11
|
+
taskNames?: string[];
|
|
12
|
+
tags?: string[];
|
|
13
|
+
status: string;
|
|
14
|
+
attrib?: object;
|
|
15
|
+
ownAttrib?: string[];
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
};
|
|
18
|
+
export type GetTasksByParentQuery = {
|
|
19
|
+
__typename?: 'Query';
|
|
20
|
+
project: {
|
|
21
|
+
__typename?: 'ProjectNode';
|
|
22
|
+
name: string;
|
|
23
|
+
tasks: {
|
|
24
|
+
__typename?: 'TasksConnection';
|
|
25
|
+
edges: Array<{
|
|
26
|
+
__typename?: 'TaskEdge';
|
|
27
|
+
node: {
|
|
28
|
+
__typename?: 'TaskNode';
|
|
29
|
+
id: string;
|
|
30
|
+
folderId: string;
|
|
31
|
+
label?: string | null;
|
|
32
|
+
name: string;
|
|
33
|
+
ownAttrib: Array<string>;
|
|
34
|
+
status: string;
|
|
35
|
+
tags: Array<string>;
|
|
36
|
+
taskType: string;
|
|
37
|
+
updatedAt: any;
|
|
38
|
+
active: boolean;
|
|
39
|
+
assignees: Array<string>;
|
|
40
|
+
allAttrib: string;
|
|
41
|
+
folder: {
|
|
42
|
+
__typename?: 'FolderNode';
|
|
43
|
+
path?: string | null;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export type TableRow = {
|
|
51
|
+
id: string;
|
|
52
|
+
parentId?: string;
|
|
53
|
+
name: string;
|
|
54
|
+
label: string;
|
|
55
|
+
icon: string | null;
|
|
56
|
+
color: string | null;
|
|
57
|
+
img: string | null;
|
|
58
|
+
startContent?: JSX.Element;
|
|
59
|
+
subRows: TableRow[];
|
|
60
|
+
status?: string;
|
|
61
|
+
assignees?: string[];
|
|
62
|
+
tags: string[];
|
|
63
|
+
attrib?: Record<string, any>;
|
|
64
|
+
childOnlyMatch?: boolean;
|
|
65
|
+
subType?: string | null;
|
|
66
|
+
entityType: string;
|
|
67
|
+
ownAttrib: string[];
|
|
68
|
+
path: string | null | undefined;
|
|
69
|
+
isLoading?: boolean;
|
|
70
|
+
};
|
|
71
|
+
export type MatchingFolder = FolderListItem & {
|
|
72
|
+
childOnlyMatch?: boolean;
|
|
73
|
+
entityType?: 'folder';
|
|
74
|
+
};
|
|
75
|
+
export type FolderNodeMap = Map<string, MatchingFolder>;
|
|
76
|
+
type TaskNode = GetTasksByParentQuery['project']['tasks']['edges'][0]['node'];
|
|
77
|
+
export type EditorTaskNode = TaskNode & {
|
|
78
|
+
attrib: Record<string, any>;
|
|
79
|
+
entityType?: 'task';
|
|
80
|
+
};
|
|
81
|
+
export type TaskNodeMap = Map<string, EditorTaskNode>;
|
|
82
|
+
export type TasksByFolderMap = Map<string, string[]>;
|
|
83
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared cell utilities for table operations
|
|
3
|
+
*/
|
|
4
|
+
export type CellId = string;
|
|
5
|
+
export type RowId = string;
|
|
6
|
+
export type ColId = string;
|
|
7
|
+
export interface CellPosition {
|
|
8
|
+
rowId: RowId;
|
|
9
|
+
colId: ColId;
|
|
10
|
+
}
|
|
11
|
+
export declare enum BorderPosition {
|
|
12
|
+
None = 0,
|
|
13
|
+
Top = 1,
|
|
14
|
+
Right = 2,
|
|
15
|
+
Bottom = 4,
|
|
16
|
+
Left = 8,
|
|
17
|
+
All = 15
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Create a standardized cell ID from row and column IDs
|
|
21
|
+
*/
|
|
22
|
+
export declare const getCellId: (rowId: RowId, colId: ColId) => CellId;
|
|
23
|
+
/**
|
|
24
|
+
* Parse a cell ID to extract row and column IDs
|
|
25
|
+
* @returns CellPosition or null if invalid format
|
|
26
|
+
*/
|
|
27
|
+
export declare const parseCellId: (cellId: CellId) => CellPosition | null;
|
|
28
|
+
export declare const getCellValue: (obj: any, path: string) => any;
|
|
29
|
+
/**
|
|
30
|
+
* Determines which borders to display for a selected cell
|
|
31
|
+
* based on its position within the selection grid
|
|
32
|
+
*
|
|
33
|
+
* @param rowIndex Current cell's row index
|
|
34
|
+
* @param colIndex Current cell's column index
|
|
35
|
+
* @param selectedCells 2D array representing selection state (true = selected)
|
|
36
|
+
* @returns BorderPosition flags indicating which borders to display
|
|
37
|
+
*/
|
|
38
|
+
export declare const getCellBorders: (rowIndex: number, colIndex: number, selectedCells: boolean[][]) => BorderPosition;
|
|
39
|
+
/**
|
|
40
|
+
* Converts border position flags to CSS classes for shadow styling
|
|
41
|
+
*/
|
|
42
|
+
export declare const getBorderClasses: (borders: BorderPosition) => string[];
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { TableRow, FolderNodeMap } from '../types/table';
|
|
2
|
+
import { AttributeModel, LoadingTasks } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Generates an array of placeholder rows for loading state
|
|
5
|
+
* @param attribs - Attribute models used to populate empty attribute fields
|
|
6
|
+
* @param count - Number of loading rows to generate (default: 50)
|
|
7
|
+
* @returns Array of TableRow objects with loading state
|
|
8
|
+
*/
|
|
9
|
+
export declare const generateLoadingRows: (attribs: {
|
|
10
|
+
name: string;
|
|
11
|
+
}[], count?: number, { type, parentId }?: {
|
|
12
|
+
type?: string;
|
|
13
|
+
parentId?: string;
|
|
14
|
+
}) => TableRow[];
|
|
15
|
+
/**
|
|
16
|
+
* Generates an array of dummy attribute models for loading states
|
|
17
|
+
* @param count - Number of dummy attributes to generate (default: 10)
|
|
18
|
+
* @returns Array of AttributeModel objects
|
|
19
|
+
*/
|
|
20
|
+
export declare const generateDummyAttributes: (count?: number) => AttributeModel[];
|
|
21
|
+
/**
|
|
22
|
+
* Parameters for determineLoadingTaskFolders function
|
|
23
|
+
*/
|
|
24
|
+
export type DetermineLoadingTaskFoldersParams = {
|
|
25
|
+
expandedFoldersTasks: {
|
|
26
|
+
folderId: string | null;
|
|
27
|
+
}[];
|
|
28
|
+
expandedParentIds: string[];
|
|
29
|
+
foldersMap: FolderNodeMap;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Determines which folders are currently loading tasks
|
|
33
|
+
* @param params - Object containing parameters for determining loading folders
|
|
34
|
+
* @returns Array of folder IDs that are in loading state
|
|
35
|
+
*/
|
|
36
|
+
export declare const determineLoadingTaskFolders: ({ expandedFoldersTasks, expandedParentIds, foldersMap, }: DetermineLoadingTaskFoldersParams) => LoadingTasks;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WidgetBaseProps } from './CellWidget';
|
|
2
|
+
interface BooleanWidgetProps extends Omit<React.HTMLAttributes<HTMLInputElement>, 'onChange'>, WidgetBaseProps {
|
|
3
|
+
value: boolean;
|
|
4
|
+
isReadOnly?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const BooleanWidget: import('react').ForwardRefExoticComponent<BooleanWidgetProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AttributeData, AttributeEnumItem } from '../types';
|
|
2
|
+
type WidgetAttributeData = Pick<AttributeData, 'type'>;
|
|
3
|
+
export type CellValue = string | number | boolean;
|
|
4
|
+
interface EditorCellProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
5
|
+
rowId: string;
|
|
6
|
+
columnId: string;
|
|
7
|
+
value: CellValue | CellValue[];
|
|
8
|
+
attributeData?: WidgetAttributeData;
|
|
9
|
+
options?: AttributeEnumItem[];
|
|
10
|
+
isCollapsed?: boolean;
|
|
11
|
+
isInherited?: boolean;
|
|
12
|
+
isPlaceholder?: boolean;
|
|
13
|
+
isFocused?: boolean;
|
|
14
|
+
isReadOnly?: boolean;
|
|
15
|
+
enableCustomValues?: boolean;
|
|
16
|
+
onChange?: (value: CellValue | CellValue[], key?: 'Enter' | 'Click' | 'Escape') => void;
|
|
17
|
+
}
|
|
18
|
+
export interface WidgetBaseProps {
|
|
19
|
+
isEditing?: boolean;
|
|
20
|
+
onChange: Required<EditorCellProps>['onChange'];
|
|
21
|
+
onCancelEdit?: () => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const CellWidget: import('react').NamedExoticComponent<EditorCellProps>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WidgetBaseProps } from './CellWidget';
|
|
2
|
+
interface DateWidgetProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'onChange'>, WidgetBaseProps {
|
|
3
|
+
value: string;
|
|
4
|
+
isReadOnly?: boolean;
|
|
5
|
+
isInherited?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const DateWidget: import('react').ForwardRefExoticComponent<DateWidgetProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WidgetBaseProps } from './CellWidget';
|
|
2
|
+
interface DateWidgetInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'>, WidgetBaseProps {
|
|
3
|
+
value: string;
|
|
4
|
+
onCancel?: () => void;
|
|
5
|
+
autoFocus?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const DateWidgetInput: import('react').ForwardRefExoticComponent<DateWidgetInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type EntityNameWidgetProps = {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
name: string;
|
|
5
|
+
path?: string | null;
|
|
6
|
+
showHierarchy?: boolean;
|
|
7
|
+
icon: string | null;
|
|
8
|
+
type: string;
|
|
9
|
+
isExpanded: boolean;
|
|
10
|
+
toggleExpandAll: (id: string) => void;
|
|
11
|
+
toggleExpanded: () => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const EntityNameWidget: ({ id, label, name, path, showHierarchy, icon, type, isExpanded, toggleExpandAll, toggleExpanded, }: EntityNameWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DropdownProps } from '@ynput/ayon-react-components';
|
|
2
|
+
import { WidgetBaseProps } from './CellWidget';
|
|
3
|
+
import { AttributeData, AttributeEnumItem } from '../types';
|
|
4
|
+
interface EnumWidgetProps extends Omit<DropdownProps, 'onChange' | 'value'>, WidgetBaseProps {
|
|
5
|
+
value: (string | number | boolean)[];
|
|
6
|
+
options: AttributeEnumItem[];
|
|
7
|
+
type?: AttributeData['type'];
|
|
8
|
+
autoOpen?: boolean;
|
|
9
|
+
isReadOnly?: boolean;
|
|
10
|
+
enableCustomValues?: boolean;
|
|
11
|
+
pt?: {
|
|
12
|
+
template?: Partial<EnumTemplateProps>;
|
|
13
|
+
};
|
|
14
|
+
onOpen?: () => void;
|
|
15
|
+
onNext?: () => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const EnumWidget: import('react').ForwardRefExoticComponent<EnumWidgetProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
18
|
+
interface EnumTemplateProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
19
|
+
selectedOptions: AttributeEnumItem[];
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
hasMultipleValues: boolean;
|
|
22
|
+
isMultiSelect?: boolean;
|
|
23
|
+
isOpen?: boolean;
|
|
24
|
+
isItem?: boolean;
|
|
25
|
+
isSelected?: boolean;
|
|
26
|
+
isReadOnly?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WidgetBaseProps } from './CellWidget';
|
|
2
|
+
import { AttributeData } from '../types';
|
|
3
|
+
type AttributeType = AttributeData['type'];
|
|
4
|
+
export type TextWidgetType = Extract<AttributeType, 'string' | 'integer' | 'float'>;
|
|
5
|
+
interface TextWidgetProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'onChange'>, WidgetBaseProps {
|
|
6
|
+
value: string;
|
|
7
|
+
isInherited?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const TextWidget: import('react').ForwardRefExoticComponent<TextWidgetProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WidgetBaseProps } from './CellWidget';
|
|
2
|
+
interface TextWidgetInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
3
|
+
value: string;
|
|
4
|
+
onCancel?: () => void;
|
|
5
|
+
onChange: WidgetBaseProps['onChange'];
|
|
6
|
+
autoFocus?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const TextWidgetInput: import('react').ForwardRefExoticComponent<TextWidgetInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { CollapsedWidget } from './CollapsedWidget';
|
|
2
|
+
export { DateWidget } from './DateWidget';
|
|
3
|
+
export { EnumWidget } from './EnumWidget';
|
|
4
|
+
export { TextWidget } from './TextWidget';
|
|
5
|
+
export { BooleanWidget } from './BooleanWidget';
|
|
6
|
+
export { CellWidget } from './CellWidget';
|
|
7
|
+
export { EntityNameWidget } from './EntityNameWidget';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SelectionData, SliceFilter, SliceType } from './types';
|
|
2
|
+
export type CreateFilterFromSlicer = ({ selection, type, }: {
|
|
3
|
+
selection: SelectionData;
|
|
4
|
+
type: SliceType;
|
|
5
|
+
}) => SliceFilter | null;
|
|
6
|
+
export declare const createFilterFromSlicer: CreateFilterFromSlicer;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FilterValue } from '@ynput/ayon-react-components';
|
|
2
|
+
export type SliceType = 'hierarchy' | 'assignees' | 'status' | 'type' | 'taskType';
|
|
3
|
+
export type SliceDataItem = {
|
|
4
|
+
id: string;
|
|
5
|
+
name?: string | null;
|
|
6
|
+
label?: string | null;
|
|
7
|
+
subType?: string | null;
|
|
8
|
+
};
|
|
9
|
+
export type SelectionData = Record<string, SliceDataItem>;
|
|
10
|
+
export interface SliceFilter extends FilterValue {
|
|
11
|
+
values: {
|
|
12
|
+
id: string;
|
|
13
|
+
label: string;
|
|
14
|
+
}[];
|
|
15
|
+
}
|
|
16
|
+
export type FilterBySliceData = {
|
|
17
|
+
filter: SliceFilter | null;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useLocalStorage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useLocalStorage<T>(key: string, defaultValue: T): [T, (value: T) => void];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|