@ynput/ayon-frontend-shared 0.2.20 → 0.2.21
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/DetailsPanel.cjs.js +4 -3
- package/dist/DetailsPanel.cjs.js.map +1 -1
- package/dist/DetailsPanel.es.js +4 -3
- package/dist/DetailsPanel.es.js.map +1 -1
- package/dist/ProjectTreeTable.cjs.js +2 -2
- package/dist/ProjectTreeTable.es.js +2 -2
- package/dist/Views.cjs.js +41 -0
- package/dist/Views.cjs.js.map +1 -0
- package/dist/Views.es.js +41 -0
- package/dist/Views.es.js.map +1 -0
- package/dist/_virtual/index.cjs5.js +5 -3
- package/dist/_virtual/index.cjs5.js.map +1 -1
- package/dist/_virtual/index.cjs6.js +3 -5
- package/dist/_virtual/index.cjs6.js.map +1 -1
- package/dist/_virtual/index.es5.js +5 -2
- package/dist/_virtual/index.es5.js.map +1 -1
- package/dist/_virtual/index.es6.js +2 -5
- package/dist/_virtual/index.es6.js.map +1 -1
- package/dist/api.cjs.js +6 -1
- package/dist/api.cjs.js.map +1 -1
- package/dist/api.es.js +8 -3
- package/dist/components.cjs.js +0 -17
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.es.js +1 -18
- package/dist/components.es.js.map +1 -1
- package/dist/index.cjs.js +4 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4 -3
- package/dist/index.es.js.map +1 -1
- package/dist/node_modules/rehype-prism-plus/dist/index.es.cjs.js +1 -1
- package/dist/node_modules/rehype-prism-plus/dist/index.es.es.js +1 -1
- package/dist/node_modules/remove-accents/index.cjs.js +1 -1
- package/dist/node_modules/remove-accents/index.es.js +1 -1
- package/dist/shared/node_modules/uuid/dist/esm-browser/native.cjs.js +3 -1
- package/dist/shared/node_modules/uuid/dist/esm-browser/native.cjs.js.map +1 -1
- package/dist/shared/node_modules/uuid/dist/esm-browser/native.es.js +3 -1
- package/dist/shared/node_modules/uuid/dist/esm-browser/native.es.js.map +1 -1
- package/dist/shared/node_modules/uuid/dist/esm-browser/rng.cjs.js +2 -2
- package/dist/shared/node_modules/uuid/dist/esm-browser/rng.cjs.js.map +1 -1
- package/dist/shared/node_modules/uuid/dist/esm-browser/rng.es.js +2 -2
- package/dist/shared/node_modules/uuid/dist/esm-browser/rng.es.js.map +1 -1
- package/dist/shared/node_modules/uuid/dist/esm-browser/stringify.cjs.js +1 -1
- package/dist/shared/node_modules/uuid/dist/esm-browser/stringify.cjs.js.map +1 -1
- package/dist/shared/node_modules/uuid/dist/esm-browser/stringify.es.js +1 -1
- package/dist/shared/node_modules/uuid/dist/esm-browser/stringify.es.js.map +1 -1
- package/dist/shared/node_modules/uuid/dist/esm-browser/v1.cjs.js +41 -58
- package/dist/shared/node_modules/uuid/dist/esm-browser/v1.cjs.js.map +1 -1
- package/dist/shared/node_modules/uuid/dist/esm-browser/v1.es.js +41 -57
- package/dist/shared/node_modules/uuid/dist/esm-browser/v1.es.js.map +1 -1
- package/dist/shared/node_modules/uuid/dist/esm-browser/v4.cjs.js +1 -5
- package/dist/shared/node_modules/uuid/dist/esm-browser/v4.cjs.js.map +1 -1
- package/dist/shared/node_modules/uuid/dist/esm-browser/v4.es.js +1 -5
- package/dist/shared/node_modules/uuid/dist/esm-browser/v4.es.js.map +1 -1
- package/dist/shared/src/api/generated/views.cjs.js +30 -2
- package/dist/shared/src/api/generated/views.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/views.es.js +30 -2
- package/dist/shared/src/api/generated/views.es.js.map +1 -1
- package/dist/shared/src/api/queries/views/getViews.cjs.js +29 -5
- package/dist/shared/src/api/queries/views/getViews.cjs.js.map +1 -1
- package/dist/shared/src/api/queries/views/getViews.es.js +29 -5
- package/dist/shared/src/api/queries/views/getViews.es.js.map +1 -1
- package/dist/shared/src/api/queries/views/updateViews.cjs.js +169 -9
- package/dist/shared/src/api/queries/views/updateViews.cjs.js.map +1 -1
- package/dist/shared/src/api/queries/views/updateViews.es.js +170 -10
- package/dist/shared/src/api/queries/views/updateViews.es.js.map +1 -1
- package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploader.cjs.js +4 -3
- package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploader.cjs.js.map +1 -1
- package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploader.es.js +4 -3
- package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploader.es.js.map +1 -1
- package/dist/shared/src/components/Feedback/FeedbackContext.cjs.js +1 -0
- package/dist/shared/src/components/Feedback/FeedbackContext.cjs.js.map +1 -1
- package/dist/shared/src/components/Feedback/FeedbackContext.es.js +1 -0
- package/dist/shared/src/components/Feedback/FeedbackContext.es.js.map +1 -1
- package/dist/shared/src/components/Powerpack/PowerpackDialog.cjs.js +4 -3
- package/dist/shared/src/components/Powerpack/PowerpackDialog.cjs.js.map +1 -1
- package/dist/shared/src/components/Powerpack/PowerpackDialog.es.js +4 -3
- package/dist/shared/src/components/Powerpack/PowerpackDialog.es.js.map +1 -1
- package/dist/shared/src/components/ProjectTableSettings/TableSettingsFallback.cjs.js +4 -3
- package/dist/shared/src/components/ProjectTableSettings/TableSettingsFallback.cjs.js.map +1 -1
- package/dist/shared/src/components/ProjectTableSettings/TableSettingsFallback.es.js +4 -3
- package/dist/shared/src/components/ProjectTableSettings/TableSettingsFallback.es.js.map +1 -1
- package/dist/shared/src/components/ReviewablesList/ReviewablesList.cjs.js +4 -3
- package/dist/shared/src/components/ReviewablesList/ReviewablesList.cjs.js.map +1 -1
- package/dist/shared/src/components/ReviewablesList/ReviewablesList.es.js +4 -3
- package/dist/shared/src/components/ReviewablesList/ReviewablesList.es.js.map +1 -1
- package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.cjs.js +4 -3
- package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.cjs.js.map +1 -1
- package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.es.js +4 -3
- package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.es.js.map +1 -1
- package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.cjs.js +4 -3
- package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.cjs.js.map +1 -1
- package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.es.js +4 -3
- package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.es.js.map +1 -1
- package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.cjs.js +4 -3
- package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.cjs.js.map +1 -1
- package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.es.js +4 -3
- package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.es.js.map +1 -1
- package/dist/shared/src/components/VersionUploader/components/UploadVersionForm.cjs.js +4 -3
- package/dist/shared/src/components/VersionUploader/components/UploadVersionForm.cjs.js.map +1 -1
- package/dist/shared/src/components/VersionUploader/components/UploadVersionForm.es.js +4 -3
- package/dist/shared/src/components/VersionUploader/components/UploadVersionForm.es.js.map +1 -1
- package/dist/shared/src/containers/Actions/ActionConfigDialog.cjs.js +4 -3
- package/dist/shared/src/containers/Actions/ActionConfigDialog.cjs.js.map +1 -1
- package/dist/shared/src/containers/Actions/ActionConfigDialog.es.js +4 -3
- package/dist/shared/src/containers/Actions/ActionConfigDialog.es.js.map +1 -1
- package/dist/shared/src/containers/Actions/InteractiveActionDialog.cjs.js +4 -3
- package/dist/shared/src/containers/Actions/InteractiveActionDialog.cjs.js.map +1 -1
- package/dist/shared/src/containers/Actions/InteractiveActionDialog.es.js +4 -3
- package/dist/shared/src/containers/Actions/InteractiveActionDialog.es.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.cjs.js +4 -3
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.cjs.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.es.js +4 -3
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.es.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFiles/DetailsPanelFiles.cjs.js +4 -3
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFiles/DetailsPanelFiles.cjs.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFiles/DetailsPanelFiles.es.js +4 -3
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFiles/DetailsPanelFiles.es.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFloating/DetailsPanelFloating.cjs.js +4 -3
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFloating/DetailsPanelFloating.cjs.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFloating/DetailsPanelFloating.es.js +4 -3
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFloating/DetailsPanelFloating.es.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.cjs.js +4 -3
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.cjs.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.es.js +4 -3
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/hooks/useCommentMutations.cjs.js +1 -1
- package/dist/shared/src/containers/Feed/hooks/useCommentMutations.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js +10 -11
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js +10 -11
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.cjs.js +4 -3
- package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.es.js +4 -3
- package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsContext.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsContext.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.cjs.js +69 -21
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.es.js +69 -21
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ProjectTableContext.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ProjectTableContext.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ProjectTableProvider.cjs.js +0 -5
- package/dist/shared/src/containers/ProjectTreeTable/context/ProjectTableProvider.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ProjectTableProvider.es.js +0 -5
- package/dist/shared/src/containers/ProjectTreeTable/context/ProjectTableProvider.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useFetchOverviewData.cjs.js +3 -5
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useFetchOverviewData.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useFetchOverviewData.es.js +3 -5
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useFetchOverviewData.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useProjectTableModules.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useProjectTableModules.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useProjectTableModules.es.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useProjectTableModules.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useQueryFilters.cjs.js +18 -10
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useQueryFilters.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useQueryFilters.es.js +18 -10
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useQueryFilters.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/utils/queryFilterToClientFilter.cjs.js +106 -0
- package/dist/shared/src/containers/ProjectTreeTable/utils/queryFilterToClientFilter.cjs.js.map +1 -0
- package/dist/shared/src/containers/ProjectTreeTable/utils/queryFilterToClientFilter.es.js +106 -0
- package/dist/shared/src/containers/ProjectTreeTable/utils/queryFilterToClientFilter.es.js.map +1 -0
- package/dist/shared/src/containers/RepresentationsList/RepresentationsList.cjs.js +4 -3
- package/dist/shared/src/containers/RepresentationsList/RepresentationsList.cjs.js.map +1 -1
- package/dist/shared/src/containers/RepresentationsList/RepresentationsList.es.js +4 -3
- package/dist/shared/src/containers/RepresentationsList/RepresentationsList.es.js.map +1 -1
- package/dist/shared/src/containers/Views/ViewItem/ViewItem.cjs.js +49 -0
- package/dist/shared/src/containers/Views/ViewItem/ViewItem.cjs.js.map +1 -0
- package/dist/shared/src/containers/Views/ViewItem/ViewItem.es.js +49 -0
- package/dist/shared/src/containers/Views/ViewItem/ViewItem.es.js.map +1 -0
- package/dist/shared/src/{components → containers}/Views/ViewItem/ViewItem.styled.cjs.js +24 -12
- package/dist/shared/src/containers/Views/ViewItem/ViewItem.styled.cjs.js.map +1 -0
- package/dist/shared/src/{components → containers}/Views/ViewItem/ViewItem.styled.es.js +24 -12
- package/dist/shared/src/containers/Views/ViewItem/ViewItem.styled.es.js.map +1 -0
- package/dist/shared/src/{components → containers}/Views/Views.cjs.js +6 -10
- package/dist/shared/src/containers/Views/Views.cjs.js.map +1 -0
- package/dist/shared/src/{components → containers}/Views/Views.es.js +7 -11
- package/dist/shared/src/containers/Views/Views.es.js.map +1 -0
- package/dist/shared/src/{components → containers}/Views/Views.styled.cjs.js +4 -3
- package/dist/shared/src/containers/Views/Views.styled.cjs.js.map +1 -0
- package/dist/shared/src/{components → containers}/Views/Views.styled.es.js +4 -3
- package/dist/shared/src/containers/Views/Views.styled.es.js.map +1 -0
- package/dist/shared/src/{components → containers}/Views/ViewsButton/ViewsButton.cjs.js +11 -2
- package/dist/shared/src/containers/Views/ViewsButton/ViewsButton.cjs.js.map +1 -0
- package/dist/shared/src/{components → containers}/Views/ViewsButton/ViewsButton.es.js +11 -2
- package/dist/shared/src/containers/Views/ViewsButton/ViewsButton.es.js.map +1 -0
- package/dist/shared/src/containers/Views/ViewsDialogContainer/ViewFormDialogFallback.cjs.js +4 -0
- package/dist/shared/src/containers/Views/ViewsDialogContainer/ViewFormDialogFallback.cjs.js.map +1 -0
- package/dist/shared/src/containers/Views/ViewsDialogContainer/ViewFormDialogFallback.es.js +5 -0
- package/dist/shared/src/containers/Views/ViewsDialogContainer/ViewFormDialogFallback.es.js.map +1 -0
- package/dist/shared/src/{components/Views/context/ViewsContext.cjs.js → containers/Views/ViewsDialogContainer/ViewsDialogContainer.cjs.js} +67 -58
- package/dist/shared/src/containers/Views/ViewsDialogContainer/ViewsDialogContainer.cjs.js.map +1 -0
- package/dist/shared/src/{components/Views/context/ViewsContext.es.js → containers/Views/ViewsDialogContainer/ViewsDialogContainer.es.js} +66 -57
- package/dist/shared/src/containers/Views/ViewsDialogContainer/ViewsDialogContainer.es.js.map +1 -0
- package/dist/shared/src/{components → containers}/Views/ViewsMenu/ViewsMenu.cjs.js +1 -0
- package/dist/shared/src/containers/Views/ViewsMenu/ViewsMenu.cjs.js.map +1 -0
- package/dist/shared/src/{components → containers}/Views/ViewsMenu/ViewsMenu.es.js +1 -0
- package/dist/shared/src/containers/Views/ViewsMenu/ViewsMenu.es.js.map +1 -0
- package/dist/shared/src/{components → containers}/Views/ViewsMenu/ViewsMenu.styled.cjs.js.map +1 -1
- package/dist/shared/src/{components → containers}/Views/ViewsMenu/ViewsMenu.styled.es.js.map +1 -1
- package/dist/shared/src/containers/Views/ViewsMenuContainer/ViewsMenuContainer.cjs.js +105 -0
- package/dist/shared/src/containers/Views/ViewsMenuContainer/ViewsMenuContainer.cjs.js.map +1 -0
- package/dist/shared/src/containers/Views/ViewsMenuContainer/ViewsMenuContainer.es.js +105 -0
- package/dist/shared/src/containers/Views/ViewsMenuContainer/ViewsMenuContainer.es.js.map +1 -0
- package/dist/shared/src/containers/Views/context/ViewsContext.cjs.js +211 -0
- package/dist/shared/src/containers/Views/context/ViewsContext.cjs.js.map +1 -0
- package/dist/shared/src/containers/Views/context/ViewsContext.es.js +211 -0
- package/dist/shared/src/containers/Views/context/ViewsContext.es.js.map +1 -0
- package/dist/shared/src/containers/Views/hooks/pages/useListsViewSettings.cjs.js +52 -0
- package/dist/shared/src/containers/Views/hooks/pages/useListsViewSettings.cjs.js.map +1 -0
- package/dist/shared/src/containers/Views/hooks/pages/useListsViewSettings.es.js +52 -0
- package/dist/shared/src/containers/Views/hooks/pages/useListsViewSettings.es.js.map +1 -0
- package/dist/shared/src/containers/Views/hooks/pages/useOverviewViewSettings.cjs.js +69 -0
- package/dist/shared/src/containers/Views/hooks/pages/useOverviewViewSettings.cjs.js.map +1 -0
- package/dist/shared/src/containers/Views/hooks/pages/useOverviewViewSettings.es.js +69 -0
- package/dist/shared/src/containers/Views/hooks/pages/useOverviewViewSettings.es.js.map +1 -0
- package/dist/shared/src/containers/Views/hooks/pages/useTaskProgressViewSettings.cjs.js +44 -0
- package/dist/shared/src/containers/Views/hooks/pages/useTaskProgressViewSettings.cjs.js.map +1 -0
- package/dist/shared/src/containers/Views/hooks/pages/useTaskProgressViewSettings.es.js +44 -0
- package/dist/shared/src/containers/Views/hooks/pages/useTaskProgressViewSettings.es.js.map +1 -0
- package/dist/shared/src/{components → containers}/Views/hooks/useBuildViewMenuItems.cjs.js +58 -32
- package/dist/shared/src/containers/Views/hooks/useBuildViewMenuItems.cjs.js.map +1 -0
- package/dist/shared/src/{components → containers}/Views/hooks/useBuildViewMenuItems.es.js +59 -33
- package/dist/shared/src/containers/Views/hooks/useBuildViewMenuItems.es.js.map +1 -0
- package/dist/shared/src/containers/Views/hooks/useSaveViewFromCurrent.cjs.js +33 -0
- package/dist/shared/src/containers/Views/hooks/useSaveViewFromCurrent.cjs.js.map +1 -0
- package/dist/shared/src/containers/Views/hooks/useSaveViewFromCurrent.es.js +33 -0
- package/dist/shared/src/containers/Views/hooks/useSaveViewFromCurrent.es.js.map +1 -0
- package/dist/shared/src/{components/Views/ViewForm/ViewFormContainer.cjs.js → containers/Views/hooks/useSelectedView.cjs.js} +33 -114
- package/dist/shared/src/containers/Views/hooks/useSelectedView.cjs.js.map +1 -0
- package/dist/shared/src/containers/Views/hooks/useSelectedView.es.js +108 -0
- package/dist/shared/src/containers/Views/hooks/useSelectedView.es.js.map +1 -0
- package/dist/shared/src/containers/Views/hooks/useViewSettingsChanged.cjs.js +19 -0
- package/dist/shared/src/containers/Views/hooks/useViewSettingsChanged.cjs.js.map +1 -0
- package/dist/shared/src/containers/Views/hooks/useViewSettingsChanged.es.js +19 -0
- package/dist/shared/src/containers/Views/hooks/useViewSettingsChanged.es.js.map +1 -0
- package/dist/shared/src/containers/Views/hooks/useViewsMutations.cjs.js +143 -0
- package/dist/shared/src/containers/Views/hooks/useViewsMutations.cjs.js.map +1 -0
- package/dist/shared/src/containers/Views/hooks/useViewsMutations.es.js +143 -0
- package/dist/shared/src/containers/Views/hooks/useViewsMutations.es.js.map +1 -0
- package/dist/shared/src/containers/Views/hooks/useViewsShortcuts.cjs.js +67 -0
- package/dist/shared/src/containers/Views/hooks/useViewsShortcuts.cjs.js.map +1 -0
- package/dist/shared/src/containers/Views/hooks/useViewsShortcuts.es.js +67 -0
- package/dist/shared/src/containers/Views/hooks/useViewsShortcuts.es.js.map +1 -0
- package/dist/shared/src/containers/Views/utils/generateWorkingView.cjs.js +13 -0
- package/dist/shared/src/containers/Views/utils/generateWorkingView.cjs.js.map +1 -0
- package/dist/shared/src/containers/Views/utils/generateWorkingView.es.js +13 -0
- package/dist/shared/src/containers/Views/utils/generateWorkingView.es.js.map +1 -0
- package/dist/shared/src/containers/Views/utils/getCustomViewsFallback.cjs.js.map +1 -0
- package/dist/shared/src/containers/Views/utils/getCustomViewsFallback.es.js.map +1 -0
- package/dist/shared/src/{components → containers}/Views/utils/portalUtils.cjs.js +1 -1
- package/dist/shared/src/{components → containers}/Views/utils/portalUtils.cjs.js.map +1 -1
- package/dist/shared/src/{components → containers}/Views/utils/portalUtils.es.js +1 -1
- package/dist/shared/src/{components → containers}/Views/utils/portalUtils.es.js.map +1 -1
- package/dist/shared/src/containers/Views/utils/viewUpdateHelper.cjs.js +125 -0
- package/dist/shared/src/containers/Views/utils/viewUpdateHelper.cjs.js.map +1 -0
- package/dist/shared/src/{components/Views/ViewForm/ViewFormContainer.es.js → containers/Views/utils/viewUpdateHelper.es.js} +48 -112
- package/dist/shared/src/containers/Views/utils/viewUpdateHelper.es.js.map +1 -0
- package/dist/shared/src/context/PowerpackContext.cjs.js +9 -3
- package/dist/shared/src/context/PowerpackContext.cjs.js.map +1 -1
- package/dist/shared/src/context/PowerpackContext.es.js +9 -3
- package/dist/shared/src/context/PowerpackContext.es.js.map +1 -1
- package/dist/shared/src/hooks/useLoadModule.cjs.js +1 -1
- package/dist/shared/src/hooks/useLoadModule.cjs.js.map +1 -1
- package/dist/shared/src/hooks/useLoadModule.es.js +1 -1
- package/dist/shared/src/hooks/useLoadModule.es.js.map +1 -1
- package/dist/shared/src/util/columnConfigConverter.cjs.js +116 -0
- package/dist/shared/src/util/columnConfigConverter.cjs.js.map +1 -0
- package/dist/shared/src/util/columnConfigConverter.es.js +116 -0
- package/dist/shared/src/util/columnConfigConverter.es.js.map +1 -0
- package/dist/types/Views.d.ts +2 -0
- package/dist/types/api/generated/powerPack1.1.1Views.d.ts +25 -0
- package/dist/types/api/generated/views.d.ts +130 -22
- package/dist/types/api/queries/views/getViews.d.ts +161 -22
- package/dist/types/api/queries/views/updateViews.d.ts +500 -13
- package/dist/types/components/index.d.ts +0 -1
- package/dist/types/containers/ProjectTreeTable/context/ColumnSettingsContext.d.ts +15 -5
- package/dist/types/containers/ProjectTreeTable/context/ColumnSettingsProvider.d.ts +1 -1
- package/dist/types/containers/ProjectTreeTable/context/ProjectTableContext.d.ts +0 -2
- package/dist/types/containers/ProjectTreeTable/context/ProjectTableProvider.d.ts +2 -4
- package/dist/types/containers/ProjectTreeTable/hooks/index.d.ts +0 -1
- package/dist/types/containers/ProjectTreeTable/hooks/useFetchOverviewData.d.ts +3 -5
- package/dist/types/containers/ProjectTreeTable/hooks/useProjectTableModules.d.ts +2 -5
- package/dist/types/containers/ProjectTreeTable/hooks/useQueryFilters.d.ts +5 -3
- package/dist/types/containers/ProjectTreeTable/types/index.d.ts +1 -0
- package/dist/types/containers/ProjectTreeTable/types/overviewContext.d.ts +5 -6
- package/dist/types/containers/ProjectTreeTable/utils/index.d.ts +1 -0
- package/dist/types/containers/ProjectTreeTable/utils/queryFilterToClientFilter.d.ts +24 -0
- package/dist/types/{components → containers}/Views/ViewItem/ViewItem.d.ts +3 -1
- package/dist/types/{components → containers}/Views/ViewItem/ViewItem.styled.d.ts +1 -1
- package/dist/types/containers/Views/Views.d.ts +2 -0
- package/dist/types/containers/Views/ViewsDialogContainer/ViewFormDialogFallback.d.ts +24 -0
- package/dist/types/containers/Views/ViewsDialogContainer/ViewsDialogContainer.d.ts +6 -0
- package/dist/types/{components → containers}/Views/ViewsMenu/ViewsMenu.d.ts +1 -2
- package/dist/types/{components → containers}/Views/ViewsMenuContainer/ViewsMenuContainer.d.ts +1 -1
- package/dist/types/containers/Views/context/ViewsContext.d.ts +46 -0
- package/dist/types/containers/Views/hooks/index.d.ts +5 -0
- package/dist/types/containers/Views/hooks/pages/useListsViewSettings.d.ts +9 -0
- package/dist/types/containers/Views/hooks/pages/useOverviewViewSettings.d.ts +12 -0
- package/dist/types/containers/Views/hooks/pages/useTaskProgressViewSettings.d.ts +10 -0
- package/dist/types/containers/Views/hooks/pages/viewUpdateHelper.d.ts +0 -0
- package/dist/types/containers/Views/hooks/useBuildViewMenuItems.d.ts +22 -0
- package/dist/types/containers/Views/hooks/useOverviewViewSettings.d.ts +0 -0
- package/dist/types/containers/Views/hooks/useSaveViewFromCurrent.d.ts +12 -0
- package/dist/types/containers/Views/hooks/useSelectedView.d.ts +12 -0
- package/dist/types/containers/Views/hooks/useViewSettingsChanged.d.ts +6 -0
- package/dist/types/containers/Views/hooks/useViewsMutations.d.ts +13 -0
- package/dist/types/containers/Views/hooks/useViewsShortcuts.d.ts +13 -0
- package/dist/types/containers/Views/index.d.ts +19 -0
- package/dist/types/containers/Views/utils/generateWorkingView.d.ts +3 -0
- package/dist/types/{components → containers}/Views/utils/getCustomViewsFallback.d.ts +3 -2
- package/dist/types/{components → containers}/Views/utils/portalUtils.d.ts +1 -1
- package/dist/types/containers/Views/utils/viewUpdateHelper.d.ts +17 -0
- package/dist/types/containers/index.d.ts +1 -0
- package/dist/types/context/PowerpackContext.d.ts +4 -1
- package/dist/types/util/columnConfigConverter.d.ts +15 -0
- package/dist/types/util/index.d.ts +1 -0
- package/dist/util.cjs.js +3 -0
- package/dist/util.cjs.js.map +1 -1
- package/dist/util.es.js +3 -0
- package/dist/util.es.js.map +1 -1
- package/package.json +6 -1
- package/dist/shared/src/components/Views/ViewForm/ViewForm.cjs.js +0 -164
- package/dist/shared/src/components/Views/ViewForm/ViewForm.cjs.js.map +0 -1
- package/dist/shared/src/components/Views/ViewForm/ViewForm.es.js +0 -164
- package/dist/shared/src/components/Views/ViewForm/ViewForm.es.js.map +0 -1
- package/dist/shared/src/components/Views/ViewForm/ViewForm.styled.cjs.js +0 -71
- package/dist/shared/src/components/Views/ViewForm/ViewForm.styled.cjs.js.map +0 -1
- package/dist/shared/src/components/Views/ViewForm/ViewForm.styled.es.js +0 -71
- package/dist/shared/src/components/Views/ViewForm/ViewForm.styled.es.js.map +0 -1
- package/dist/shared/src/components/Views/ViewForm/ViewFormContainer.cjs.js.map +0 -1
- package/dist/shared/src/components/Views/ViewForm/ViewFormContainer.es.js.map +0 -1
- package/dist/shared/src/components/Views/ViewItem/ViewItem.cjs.js +0 -36
- package/dist/shared/src/components/Views/ViewItem/ViewItem.cjs.js.map +0 -1
- package/dist/shared/src/components/Views/ViewItem/ViewItem.es.js +0 -36
- package/dist/shared/src/components/Views/ViewItem/ViewItem.es.js.map +0 -1
- package/dist/shared/src/components/Views/ViewItem/ViewItem.styled.cjs.js.map +0 -1
- package/dist/shared/src/components/Views/ViewItem/ViewItem.styled.es.js.map +0 -1
- package/dist/shared/src/components/Views/Views.cjs.js.map +0 -1
- package/dist/shared/src/components/Views/Views.es.js.map +0 -1
- package/dist/shared/src/components/Views/Views.styled.cjs.js.map +0 -1
- package/dist/shared/src/components/Views/Views.styled.es.js.map +0 -1
- package/dist/shared/src/components/Views/ViewsButton/ViewsButton.cjs.js.map +0 -1
- package/dist/shared/src/components/Views/ViewsButton/ViewsButton.es.js.map +0 -1
- package/dist/shared/src/components/Views/ViewsMenu/ViewsMenu.cjs.js.map +0 -1
- package/dist/shared/src/components/Views/ViewsMenu/ViewsMenu.es.js.map +0 -1
- package/dist/shared/src/components/Views/ViewsMenuContainer/ViewsMenuContainer.cjs.js +0 -132
- package/dist/shared/src/components/Views/ViewsMenuContainer/ViewsMenuContainer.cjs.js.map +0 -1
- package/dist/shared/src/components/Views/ViewsMenuContainer/ViewsMenuContainer.es.js +0 -132
- package/dist/shared/src/components/Views/ViewsMenuContainer/ViewsMenuContainer.es.js.map +0 -1
- package/dist/shared/src/components/Views/context/ViewsContext.cjs.js.map +0 -1
- package/dist/shared/src/components/Views/context/ViewsContext.es.js.map +0 -1
- package/dist/shared/src/components/Views/hooks/useBuildViewMenuItems.cjs.js.map +0 -1
- package/dist/shared/src/components/Views/hooks/useBuildViewMenuItems.es.js.map +0 -1
- package/dist/shared/src/components/Views/utils/generatePersonalView.cjs.js +0 -13
- package/dist/shared/src/components/Views/utils/generatePersonalView.cjs.js.map +0 -1
- package/dist/shared/src/components/Views/utils/generatePersonalView.es.js +0 -13
- package/dist/shared/src/components/Views/utils/generatePersonalView.es.js.map +0 -1
- package/dist/shared/src/components/Views/utils/getCustomViewsFallback.cjs.js.map +0 -1
- package/dist/shared/src/components/Views/utils/getCustomViewsFallback.es.js.map +0 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useColumnSorting.cjs.js +0 -24
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useColumnSorting.cjs.js.map +0 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useColumnSorting.es.js +0 -24
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useColumnSorting.es.js.map +0 -1
- package/dist/types/components/Views/ViewForm/ViewForm.d.ts +0 -14
- package/dist/types/components/Views/ViewForm/ViewForm.styled.d.ts +0 -9
- package/dist/types/components/Views/ViewForm/ViewFormContainer.d.ts +0 -15
- package/dist/types/components/Views/Views.d.ts +0 -8
- package/dist/types/components/Views/context/ViewsContext.d.ts +0 -31
- package/dist/types/components/Views/hooks/useBuildViewMenuItems.d.ts +0 -14
- package/dist/types/components/Views/index.d.ts +0 -11
- package/dist/types/components/Views/utils/generatePersonalView.d.ts +0 -3
- package/dist/types/containers/ProjectTreeTable/hooks/useColumnSorting.d.ts +0 -12
- /package/dist/shared/src/{components → containers}/Views/ViewsMenu/ViewsMenu.styled.cjs.js +0 -0
- /package/dist/shared/src/{components → containers}/Views/ViewsMenu/ViewsMenu.styled.es.js +0 -0
- /package/dist/shared/src/{components → containers}/Views/utils/getCustomViewsFallback.cjs.js +0 -0
- /package/dist/shared/src/{components → containers}/Views/utils/getCustomViewsFallback.es.js +0 -0
- /package/dist/types/{components → containers}/Views/Views.styled.d.ts +0 -0
- /package/dist/types/{components → containers}/Views/ViewsButton/ViewsButton.d.ts +0 -0
- /package/dist/types/{components → containers}/Views/ViewsMenu/ViewsMenu.styled.d.ts +0 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
function convertColumnConfigToTanstackStates(settings) {
|
|
2
|
+
const { columns = [], groupBy: groupByField, showEmptyGroups, sortBy, sortDesc } = settings || {};
|
|
3
|
+
const columnVisibility = {};
|
|
4
|
+
const columnPinning = { left: [], right: [] };
|
|
5
|
+
const columnOrder = [];
|
|
6
|
+
const columnSizing = {};
|
|
7
|
+
columns.forEach((column) => {
|
|
8
|
+
var _a;
|
|
9
|
+
const { name, visible, pinned, width } = column;
|
|
10
|
+
columnVisibility[name] = visible !== false;
|
|
11
|
+
columnOrder.push(name);
|
|
12
|
+
if (pinned) {
|
|
13
|
+
(_a = columnPinning.left) == null ? void 0 : _a.push(name);
|
|
14
|
+
}
|
|
15
|
+
if (width !== void 0) {
|
|
16
|
+
columnSizing[name] = width;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const sorting = sortBy ? [{ id: sortBy, desc: sortDesc || false }] : [];
|
|
20
|
+
const groupBy = groupByField ? { id: groupByField, desc: false } : void 0;
|
|
21
|
+
const groupByConfig = {
|
|
22
|
+
showEmpty: showEmptyGroups || false
|
|
23
|
+
};
|
|
24
|
+
return {
|
|
25
|
+
columnVisibility,
|
|
26
|
+
columnPinning,
|
|
27
|
+
columnOrder,
|
|
28
|
+
columnSizing,
|
|
29
|
+
sorting,
|
|
30
|
+
groupBy,
|
|
31
|
+
groupByConfig
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function determineColumnOrder(columnOrder, allColumnIds, columnsWithState) {
|
|
35
|
+
const orderedColumns = [...columnOrder];
|
|
36
|
+
const remainingColumns = allColumnIds.filter(
|
|
37
|
+
(columnId) => !columnOrder.includes(columnId) && columnsWithState.has(columnId)
|
|
38
|
+
);
|
|
39
|
+
return [...orderedColumns, ...remainingColumns];
|
|
40
|
+
}
|
|
41
|
+
function collectColumnsWithState(columnVisibility, columnSizing, columnPinning, allColumnIds) {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
const columnsWithState = /* @__PURE__ */ new Set();
|
|
44
|
+
Object.keys(columnVisibility).forEach((col) => columnsWithState.add(col));
|
|
45
|
+
Object.keys(columnSizing).forEach((col) => columnsWithState.add(col));
|
|
46
|
+
(_a = columnPinning.left) == null ? void 0 : _a.forEach((col) => columnsWithState.add(col));
|
|
47
|
+
(_b = columnPinning.right) == null ? void 0 : _b.forEach((col) => columnsWithState.add(col));
|
|
48
|
+
allColumnIds == null ? void 0 : allColumnIds.forEach((col) => columnsWithState.add(col));
|
|
49
|
+
return columnsWithState;
|
|
50
|
+
}
|
|
51
|
+
function createColumnItem(columnName, columnVisibility, columnPinning, columnSizing) {
|
|
52
|
+
var _a, _b;
|
|
53
|
+
const column = {
|
|
54
|
+
name: columnName
|
|
55
|
+
};
|
|
56
|
+
if (columnVisibility.hasOwnProperty(columnName)) {
|
|
57
|
+
column.visible = columnVisibility[columnName];
|
|
58
|
+
}
|
|
59
|
+
const isPinnedLeft = (_a = columnPinning.left) == null ? void 0 : _a.includes(columnName);
|
|
60
|
+
const isPinnedRight = (_b = columnPinning.right) == null ? void 0 : _b.includes(columnName);
|
|
61
|
+
if (isPinnedLeft || isPinnedRight) {
|
|
62
|
+
column.pinned = true;
|
|
63
|
+
}
|
|
64
|
+
if (columnSizing[columnName] !== void 0) {
|
|
65
|
+
column.width = columnSizing[columnName];
|
|
66
|
+
}
|
|
67
|
+
return column;
|
|
68
|
+
}
|
|
69
|
+
function convertTanstackStatesToColumnConfig(states, allColumnIds) {
|
|
70
|
+
const {
|
|
71
|
+
columnVisibility,
|
|
72
|
+
columnPinning,
|
|
73
|
+
columnOrder,
|
|
74
|
+
columnSizing,
|
|
75
|
+
sorting,
|
|
76
|
+
groupBy,
|
|
77
|
+
groupByConfig
|
|
78
|
+
} = states;
|
|
79
|
+
const columnsWithState = collectColumnsWithState(
|
|
80
|
+
columnVisibility,
|
|
81
|
+
columnSizing,
|
|
82
|
+
columnPinning,
|
|
83
|
+
allColumnIds || []
|
|
84
|
+
);
|
|
85
|
+
const finalColumnOrder = determineColumnOrder(columnOrder, allColumnIds || [], columnsWithState);
|
|
86
|
+
const columns = finalColumnOrder.map(
|
|
87
|
+
(columnName) => createColumnItem(columnName, columnVisibility, columnPinning, columnSizing)
|
|
88
|
+
);
|
|
89
|
+
const result = {
|
|
90
|
+
columns
|
|
91
|
+
};
|
|
92
|
+
if (groupBy) {
|
|
93
|
+
result.groupBy = groupBy.id;
|
|
94
|
+
} else {
|
|
95
|
+
result.groupBy = void 0;
|
|
96
|
+
}
|
|
97
|
+
if ((groupByConfig == null ? void 0 : groupByConfig.showEmpty) !== void 0) {
|
|
98
|
+
result.showEmptyGroups = groupByConfig.showEmpty;
|
|
99
|
+
}
|
|
100
|
+
if (sorting) {
|
|
101
|
+
if (sorting.length > 0) {
|
|
102
|
+
const firstSort = sorting[0];
|
|
103
|
+
result.sortBy = firstSort.id;
|
|
104
|
+
result.sortDesc = firstSort.desc;
|
|
105
|
+
} else {
|
|
106
|
+
result.sortBy = void 0;
|
|
107
|
+
result.sortDesc = void 0;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return result;
|
|
111
|
+
}
|
|
112
|
+
export {
|
|
113
|
+
convertColumnConfigToTanstackStates,
|
|
114
|
+
convertTanstackStatesToColumnConfig
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=columnConfigConverter.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"columnConfigConverter.es.js","sources":["../../../../src/util/columnConfigConverter.ts"],"sourcesContent":["import {\n VisibilityState,\n ColumnPinningState,\n ColumnOrderState,\n ColumnSizingState,\n SortingState,\n} from '@tanstack/react-table'\nimport { ColumnItemModel, OverviewSettings } from '@shared/api/generated/views'\nimport { ColumnsConfig, TableGroupBy } from '@shared/containers'\nimport { GroupByConfig } from '@shared/containers/ProjectTreeTable/components/GroupSettingsFallback'\n\n/**\n * Converts ColumnItemModel array from OverviewSettings to TanStack table states\n */\nexport function convertColumnConfigToTanstackStates(settings: OverviewSettings): ColumnsConfig {\n const { columns = [], groupBy: groupByField, showEmptyGroups, sortBy, sortDesc } = settings || {}\n\n // Initialize state objects\n const columnVisibility: VisibilityState = {}\n const columnPinning: ColumnPinningState = { left: [], right: [] }\n const columnOrder: ColumnOrderState = []\n const columnSizing: ColumnSizingState = {}\n\n // Process each column from the settings\n columns.forEach((column) => {\n const { name, visible, pinned, width } = column\n\n // Column visibility: if visible is undefined, default to true\n columnVisibility[name] = visible !== false\n\n // Column order: maintain the order from the settings\n columnOrder.push(name)\n\n // Column pinning: assuming pinned: true means left pinning\n if (pinned) {\n columnPinning.left?.push(name)\n }\n\n // Column sizing: set width if provided\n if (width !== undefined) {\n columnSizing[name] = width\n }\n })\n\n // Handle sorting\n const sorting: SortingState = sortBy ? [{ id: sortBy, desc: sortDesc || false }] : []\n\n // Handle grouping\n const groupBy: TableGroupBy | undefined = groupByField\n ? { id: groupByField, desc: false }\n : undefined\n\n const groupByConfig: GroupByConfig = {\n showEmpty: showEmptyGroups || false,\n }\n\n return {\n columnVisibility,\n columnPinning,\n columnOrder,\n columnSizing,\n sorting,\n groupBy,\n groupByConfig,\n }\n}\n\n/**\n * Determines the final column order based on columnOrder and allColumnIds\n * - Columns in columnOrder come first (in their specified order)\n * - Remaining columns follow the order from allColumnIds\n */\nfunction determineColumnOrder(\n columnOrder: ColumnOrderState,\n allColumnIds: string[],\n columnsWithState: Set<string>,\n): string[] {\n // Start with columns from columnOrder (these have explicit positioning)\n const orderedColumns = [...columnOrder]\n\n // Add remaining columns from allColumnIds that aren't already in columnOrder\n const remainingColumns = allColumnIds.filter(\n (columnId) => !columnOrder.includes(columnId) && columnsWithState.has(columnId),\n )\n\n return [...orderedColumns, ...remainingColumns]\n}\n\n/**\n * Collects all columns that have any state (visibility, sizing, pinning, etc.)\n */\nfunction collectColumnsWithState(\n columnVisibility: VisibilityState,\n columnSizing: ColumnSizingState,\n columnPinning: ColumnPinningState,\n allColumnIds: string[],\n): Set<string> {\n const columnsWithState = new Set<string>()\n\n // Add columns with visibility state\n Object.keys(columnVisibility).forEach((col) => columnsWithState.add(col))\n\n // Add columns with sizing state\n Object.keys(columnSizing).forEach((col) => columnsWithState.add(col))\n\n // Add pinned columns\n columnPinning.left?.forEach((col) => columnsWithState.add(col))\n columnPinning.right?.forEach((col) => columnsWithState.add(col))\n\n // Add any additional columns from allColumnIds\n allColumnIds?.forEach((col) => columnsWithState.add(col))\n\n return columnsWithState\n}\n\n/**\n * Creates a ColumnItemModel for a given column name with all applicable state\n */\nfunction createColumnItem(\n columnName: string,\n columnVisibility: VisibilityState,\n columnPinning: ColumnPinningState,\n columnSizing: ColumnSizingState,\n): ColumnItemModel {\n const column: ColumnItemModel = {\n name: columnName,\n }\n\n // Set visibility if defined in state\n if (columnVisibility.hasOwnProperty(columnName)) {\n column.visible = columnVisibility[columnName]\n }\n\n // Set pinning if column is pinned\n const isPinnedLeft = columnPinning.left?.includes(columnName)\n const isPinnedRight = columnPinning.right?.includes(columnName)\n\n if (isPinnedLeft || isPinnedRight) {\n column.pinned = true\n }\n\n // Set width if defined in state\n if (columnSizing[columnName] !== undefined) {\n column.width = columnSizing[columnName]\n }\n\n return column\n}\n\n/**\n * Converts TanStack table states back to OverviewSettings format\n *\n * Column ordering logic:\n * 1. Columns in columnOrder appear first (in their specified order)\n * 2. Remaining columns follow the order from allColumnIds\n * 3. Only columns with state (visibility, sizing, pinning) or in allColumnIds are included\n */\nexport function convertTanstackStatesToColumnConfig(\n states: ColumnsConfig,\n allColumnIds?: string[],\n): OverviewSettings {\n const {\n columnVisibility,\n columnPinning,\n columnOrder,\n columnSizing,\n sorting,\n groupBy,\n groupByConfig,\n } = states\n\n // Collect all columns that have any state\n const columnsWithState = collectColumnsWithState(\n columnVisibility,\n columnSizing,\n columnPinning,\n allColumnIds || [],\n )\n\n // Determine the final column order\n const finalColumnOrder = determineColumnOrder(columnOrder, allColumnIds || [], columnsWithState)\n\n // Create ColumnItemModel for each column in the determined order\n const columns: ColumnItemModel[] = finalColumnOrder.map((columnName) =>\n createColumnItem(columnName, columnVisibility, columnPinning, columnSizing),\n )\n\n // Build the result object\n const result: OverviewSettings = {\n columns,\n }\n\n // Add grouping information if present\n if (groupBy) {\n result.groupBy = groupBy.id\n } else {\n result.groupBy = undefined\n }\n\n if (groupByConfig?.showEmpty !== undefined) {\n result.showEmptyGroups = groupByConfig.showEmpty\n }\n\n // Add sorting information if present\n if (sorting) {\n if (sorting.length > 0) {\n // find the column that is being sorted\n const firstSort = sorting[0]\n result.sortBy = firstSort.id\n result.sortDesc = firstSort.desc\n } else {\n // remove sorting\n result.sortBy = undefined\n result.sortDesc = undefined\n }\n }\n\n return result\n}\n"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const injectedRtkApi: import('@reduxjs/toolkit/query').Api<import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError>, {
|
|
2
|
+
powerpack111ViewsShareView: import('@reduxjs/toolkit/query').MutationDefinition<Powerpack111ViewsShareViewApiArg, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError>, string, any, "restApi", unknown>;
|
|
3
|
+
}, "restApi", string, typeof import('@reduxjs/toolkit/query').coreModuleName | typeof import('@reduxjs/toolkit/dist/query/react').reactHooksModuleName>;
|
|
4
|
+
export { injectedRtkApi as api };
|
|
5
|
+
export type Powerpack111ViewsShareViewApiResponse = any;
|
|
6
|
+
export type Powerpack111ViewsShareViewApiArg = {
|
|
7
|
+
viewType: string;
|
|
8
|
+
viewId: string;
|
|
9
|
+
projectName?: string;
|
|
10
|
+
shareRequest: ShareRequest;
|
|
11
|
+
};
|
|
12
|
+
export type ValidationError = {
|
|
13
|
+
loc: (string | number)[];
|
|
14
|
+
msg: string;
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
export type HttpValidationError = {
|
|
18
|
+
detail?: ValidationError[];
|
|
19
|
+
};
|
|
20
|
+
export type ShareRequest = {
|
|
21
|
+
visibility?: 'private' | 'public';
|
|
22
|
+
access?: {
|
|
23
|
+
[key: string]: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
declare const injectedRtkApi: import('@reduxjs/toolkit/query').Api<import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError>, {
|
|
2
2
|
listViews: import('@reduxjs/toolkit/query').QueryDefinition<ListViewsApiArg, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError>, string, ViewListModel, "restApi", unknown>;
|
|
3
3
|
createView: import('@reduxjs/toolkit/query').MutationDefinition<CreateViewApiArg, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError>, string, EntityIdResponse, "restApi", unknown>;
|
|
4
|
-
|
|
4
|
+
getWorkingView: import('@reduxjs/toolkit/query').QueryDefinition<GetWorkingViewApiArg, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError>, string, GetWorkingViewApiResponse, "restApi", unknown>;
|
|
5
|
+
getDefaultView: import('@reduxjs/toolkit/query').QueryDefinition<GetDefaultViewApiArg, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError>, string, GetDefaultViewApiResponse, "restApi", unknown>;
|
|
6
|
+
setDefaultView: import('@reduxjs/toolkit/query').MutationDefinition<SetDefaultViewApiArg, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError>, string, any, "restApi", unknown>;
|
|
5
7
|
getView: import('@reduxjs/toolkit/query').QueryDefinition<GetViewApiArg, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError>, string, GetViewApiResponse, "restApi", unknown>;
|
|
6
8
|
deleteView: import('@reduxjs/toolkit/query').MutationDefinition<DeleteViewApiArg, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError>, string, any, "restApi", unknown>;
|
|
9
|
+
updateView: import('@reduxjs/toolkit/query').MutationDefinition<UpdateViewApiArg, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError>, string, any, "restApi", unknown>;
|
|
7
10
|
}, "restApi", string, typeof import('@reduxjs/toolkit/query').coreModuleName | typeof import('@reduxjs/toolkit/dist/query/react').reactHooksModuleName>;
|
|
8
11
|
export { injectedRtkApi as api };
|
|
9
12
|
export type ListViewsApiResponse = ViewListModel;
|
|
@@ -15,14 +18,25 @@ export type CreateViewApiResponse = EntityIdResponse;
|
|
|
15
18
|
export type CreateViewApiArg = {
|
|
16
19
|
viewType: string;
|
|
17
20
|
projectName?: string;
|
|
18
|
-
payload: OverviewViewPostModel | TaskProgressViewPostModel;
|
|
21
|
+
payload: OverviewViewPostModel | TaskProgressViewPostModel | ListsViewPostModel;
|
|
19
22
|
};
|
|
20
|
-
export type
|
|
21
|
-
export type
|
|
23
|
+
export type GetWorkingViewApiResponse = OverviewViewModel | TaskProgressViewModel | ListsViewModel;
|
|
24
|
+
export type GetWorkingViewApiArg = {
|
|
22
25
|
viewType: string;
|
|
23
26
|
projectName?: string;
|
|
24
27
|
};
|
|
25
|
-
export type
|
|
28
|
+
export type GetDefaultViewApiResponse = OverviewViewModel | TaskProgressViewModel | ListsViewModel;
|
|
29
|
+
export type GetDefaultViewApiArg = {
|
|
30
|
+
viewType: string;
|
|
31
|
+
projectName?: string;
|
|
32
|
+
};
|
|
33
|
+
export type SetDefaultViewApiResponse = any;
|
|
34
|
+
export type SetDefaultViewApiArg = {
|
|
35
|
+
viewType: string;
|
|
36
|
+
projectName?: string;
|
|
37
|
+
setDefaultViewRequestModel: SetDefaultViewRequestModel;
|
|
38
|
+
};
|
|
39
|
+
export type GetViewApiResponse = OverviewViewModel | TaskProgressViewModel | ListsViewModel;
|
|
26
40
|
export type GetViewApiArg = {
|
|
27
41
|
viewType: string;
|
|
28
42
|
viewId: string;
|
|
@@ -34,14 +48,29 @@ export type DeleteViewApiArg = {
|
|
|
34
48
|
viewId: string;
|
|
35
49
|
projectName?: string;
|
|
36
50
|
};
|
|
51
|
+
export type UpdateViewApiResponse = any;
|
|
52
|
+
export type UpdateViewApiArg = {
|
|
53
|
+
viewType: string;
|
|
54
|
+
viewId: string;
|
|
55
|
+
projectName?: string;
|
|
56
|
+
payload: OverviewViewPatchModel | TaskProgressViewPatchModel | ListsViewPatchModel;
|
|
57
|
+
};
|
|
37
58
|
export type ViewListItemModel = {
|
|
59
|
+
/** Unique identifier for the view within the given scope. */
|
|
38
60
|
id?: string;
|
|
61
|
+
/** Human-readable name of the view. */
|
|
39
62
|
label: string;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
63
|
+
/** Determines whether the view is only available for the given project or for all projects (studio). */
|
|
64
|
+
scope: 'project' | 'studio';
|
|
65
|
+
/** Name of the user who created the view. Owners have full control over the view, */
|
|
66
|
+
owner: string;
|
|
67
|
+
/** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */
|
|
68
|
+
visibility: 'public' | 'private';
|
|
69
|
+
access: object;
|
|
70
|
+
/** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */
|
|
71
|
+
working: boolean;
|
|
72
|
+
position: number;
|
|
73
|
+
editable: boolean;
|
|
45
74
|
};
|
|
46
75
|
export type ViewListModel = {
|
|
47
76
|
views: ViewListItemModel[];
|
|
@@ -74,49 +103,128 @@ export type QueryFilter = {
|
|
|
74
103
|
};
|
|
75
104
|
export type ColumnItemModel = {
|
|
76
105
|
name: string;
|
|
106
|
+
visible?: boolean;
|
|
77
107
|
pinned?: boolean;
|
|
78
108
|
width?: number;
|
|
79
109
|
};
|
|
80
110
|
export type OverviewSettings = {
|
|
81
111
|
showHierarchy?: boolean;
|
|
82
112
|
groupBy?: string;
|
|
113
|
+
showEmptyGroups?: boolean;
|
|
114
|
+
sortBy?: string;
|
|
115
|
+
sortDesc?: boolean;
|
|
83
116
|
filter?: QueryFilter;
|
|
84
117
|
columns?: ColumnItemModel[];
|
|
85
118
|
};
|
|
86
119
|
export type OverviewViewPostModel = {
|
|
120
|
+
/** Unique identifier for the view within the given scope. */
|
|
87
121
|
id?: string;
|
|
122
|
+
/** Human-readable name of the view. */
|
|
88
123
|
label: string;
|
|
89
|
-
|
|
124
|
+
/** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */
|
|
125
|
+
working?: boolean;
|
|
90
126
|
settings: OverviewSettings;
|
|
91
127
|
};
|
|
92
128
|
export type TaskProgressSettings = {
|
|
93
129
|
filter?: QueryFilter;
|
|
130
|
+
columns?: ColumnItemModel[];
|
|
94
131
|
};
|
|
95
132
|
export type TaskProgressViewPostModel = {
|
|
133
|
+
/** Unique identifier for the view within the given scope. */
|
|
96
134
|
id?: string;
|
|
135
|
+
/** Human-readable name of the view. */
|
|
97
136
|
label: string;
|
|
98
|
-
|
|
137
|
+
/** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */
|
|
138
|
+
working?: boolean;
|
|
99
139
|
settings: TaskProgressSettings;
|
|
100
140
|
};
|
|
141
|
+
export type ListsSettings = {
|
|
142
|
+
sortBy?: string;
|
|
143
|
+
sortDesc?: boolean;
|
|
144
|
+
filter?: QueryFilter;
|
|
145
|
+
columns?: ColumnItemModel[];
|
|
146
|
+
};
|
|
147
|
+
export type ListsViewPostModel = {
|
|
148
|
+
/** Unique identifier for the view within the given scope. */
|
|
149
|
+
id?: string;
|
|
150
|
+
/** Human-readable name of the view. */
|
|
151
|
+
label: string;
|
|
152
|
+
/** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */
|
|
153
|
+
working?: boolean;
|
|
154
|
+
settings: ListsSettings;
|
|
155
|
+
};
|
|
101
156
|
export type OverviewViewModel = {
|
|
157
|
+
/** Unique identifier for the view within the given scope. */
|
|
102
158
|
id?: string;
|
|
159
|
+
/** Human-readable name of the view. */
|
|
103
160
|
label: string;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
161
|
+
/** Determines whether the view is only available for the given project or for all projects (studio). */
|
|
162
|
+
scope: 'project' | 'studio';
|
|
163
|
+
/** Name of the user who created the view. Owners have full control over the view, */
|
|
164
|
+
owner: string;
|
|
165
|
+
/** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */
|
|
166
|
+
visibility: 'public' | 'private';
|
|
167
|
+
access: object;
|
|
168
|
+
/** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */
|
|
169
|
+
working: boolean;
|
|
170
|
+
position: number;
|
|
171
|
+
editable: boolean;
|
|
109
172
|
settings: OverviewSettings;
|
|
110
173
|
viewType?: 'overview';
|
|
111
174
|
};
|
|
112
175
|
export type TaskProgressViewModel = {
|
|
176
|
+
/** Unique identifier for the view within the given scope. */
|
|
113
177
|
id?: string;
|
|
178
|
+
/** Human-readable name of the view. */
|
|
114
179
|
label: string;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
180
|
+
/** Determines whether the view is only available for the given project or for all projects (studio). */
|
|
181
|
+
scope: 'project' | 'studio';
|
|
182
|
+
/** Name of the user who created the view. Owners have full control over the view, */
|
|
183
|
+
owner: string;
|
|
184
|
+
/** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */
|
|
185
|
+
visibility: 'public' | 'private';
|
|
186
|
+
access: object;
|
|
187
|
+
/** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */
|
|
188
|
+
working: boolean;
|
|
189
|
+
position: number;
|
|
190
|
+
editable: boolean;
|
|
120
191
|
settings: TaskProgressSettings;
|
|
121
192
|
viewType?: 'taskProgress';
|
|
122
193
|
};
|
|
194
|
+
export type ListsViewModel = {
|
|
195
|
+
/** Unique identifier for the view within the given scope. */
|
|
196
|
+
id?: string;
|
|
197
|
+
/** Human-readable name of the view. */
|
|
198
|
+
label: string;
|
|
199
|
+
/** Determines whether the view is only available for the given project or for all projects (studio). */
|
|
200
|
+
scope: 'project' | 'studio';
|
|
201
|
+
/** Name of the user who created the view. Owners have full control over the view, */
|
|
202
|
+
owner: string;
|
|
203
|
+
/** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */
|
|
204
|
+
visibility: 'public' | 'private';
|
|
205
|
+
access: object;
|
|
206
|
+
/** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */
|
|
207
|
+
working: boolean;
|
|
208
|
+
position: number;
|
|
209
|
+
editable: boolean;
|
|
210
|
+
settings: ListsSettings;
|
|
211
|
+
viewType?: 'lists';
|
|
212
|
+
};
|
|
213
|
+
export type SetDefaultViewRequestModel = {
|
|
214
|
+
viewId: string;
|
|
215
|
+
};
|
|
216
|
+
export type OverviewViewPatchModel = {
|
|
217
|
+
label?: string;
|
|
218
|
+
owner?: string;
|
|
219
|
+
settings?: OverviewSettings;
|
|
220
|
+
};
|
|
221
|
+
export type TaskProgressViewPatchModel = {
|
|
222
|
+
label?: string;
|
|
223
|
+
owner?: string;
|
|
224
|
+
settings?: TaskProgressSettings;
|
|
225
|
+
};
|
|
226
|
+
export type ListsViewPatchModel = {
|
|
227
|
+
label?: string;
|
|
228
|
+
owner?: string;
|
|
229
|
+
settings?: ListsSettings;
|
|
230
|
+
};
|