@gravity-ui/querieskit 1.5.1 → 1.7.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/README.md +62 -3
- package/build/cjs/components/QueryGraph/QueryGraph.css +70 -0
- package/build/cjs/components/QueryGraph/QueryGraph.css.map +1 -0
- package/build/cjs/components/QueryGraph/QueryGraph.d.ts +4 -0
- package/build/cjs/components/QueryGraph/QueryGraph.js +517 -0
- package/build/cjs/components/QueryGraph/QueryGraph.js.map +1 -0
- package/build/cjs/components/QueryGraph/QueryGraph.stories.d.ts +16 -0
- package/build/cjs/components/QueryGraph/QueryGraph.stories.js +339 -0
- package/build/cjs/components/QueryGraph/QueryGraph.stories.js.map +1 -0
- package/build/cjs/components/QueryGraph/helpers/layout.d.ts +9 -0
- package/build/cjs/components/QueryGraph/helpers/layout.js +138 -0
- package/build/cjs/components/QueryGraph/helpers/layout.js.map +1 -0
- package/build/cjs/components/QueryGraph/helpers/presentation.d.ts +18 -0
- package/build/cjs/components/QueryGraph/helpers/presentation.js +44 -0
- package/build/cjs/components/QueryGraph/helpers/presentation.js.map +1 -0
- package/build/cjs/components/QueryGraph/i18n/dicts.d.ts +55 -0
- package/build/cjs/components/QueryGraph/i18n/dicts.js +14 -0
- package/build/cjs/components/QueryGraph/i18n/dicts.js.map +1 -0
- package/build/cjs/components/QueryGraph/i18n/en.json +26 -0
- package/build/cjs/components/QueryGraph/i18n/index.d.ts +6 -0
- package/build/cjs/components/QueryGraph/i18n/index.js +11 -0
- package/build/cjs/components/QueryGraph/i18n/index.js.map +1 -0
- package/build/cjs/components/QueryGraph/i18n/ru.json +26 -0
- package/build/cjs/components/QueryGraph/index.d.ts +2 -0
- package/build/cjs/components/QueryGraph/index.js +13 -0
- package/build/cjs/components/QueryGraph/index.js.map +1 -0
- package/build/cjs/components/QueryGraph/internal/QueryGraphCanvasBlock.d.ts +24 -0
- package/build/cjs/components/QueryGraph/internal/QueryGraphCanvasBlock.js +309 -0
- package/build/cjs/components/QueryGraph/internal/QueryGraphCanvasBlock.js.map +1 -0
- package/build/cjs/components/QueryGraph/internal/QueryGraphPopup.d.ts +5 -0
- package/build/cjs/components/QueryGraph/internal/QueryGraphPopup.js +242 -0
- package/build/cjs/components/QueryGraph/internal/QueryGraphPopup.js.map +1 -0
- package/build/cjs/components/QueryGraph/internal/queryGraphIcons.d.ts +12 -0
- package/build/cjs/components/QueryGraph/internal/queryGraphIcons.js +161 -0
- package/build/cjs/components/QueryGraph/internal/queryGraphIcons.js.map +1 -0
- package/build/cjs/components/QueryGraph/internal/useQueryGraphLayout.d.ts +22 -0
- package/build/cjs/components/QueryGraph/internal/useQueryGraphLayout.js +60 -0
- package/build/cjs/components/QueryGraph/internal/useQueryGraphLayout.js.map +1 -0
- package/build/cjs/components/QueryGraph/story/largeGraphData.d.ts +3 -0
- package/build/cjs/components/QueryGraph/story/largeGraphData.js +227 -0
- package/build/cjs/components/QueryGraph/story/largeGraphData.js.map +1 -0
- package/build/cjs/components/index.d.ts +2 -0
- package/build/cjs/components/index.js +9 -1
- package/build/cjs/components/index.js.map +1 -1
- package/build/cjs/helpers/buildColumnsFromKeys.d.ts +1 -1
- package/build/cjs/helpers/buildColumnsFromKeys.js.map +1 -1
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +11 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/modules/ClustersList/ClustersList.d.ts +1 -1
- package/build/cjs/modules/ClustersList/ClustersList.js +4 -3
- package/build/cjs/modules/ClustersList/ClustersList.js.map +1 -1
- package/build/cjs/modules/HistoryHeader/HistoryHeader.js +4 -3
- package/build/cjs/modules/HistoryHeader/HistoryHeader.js.map +1 -1
- package/build/cjs/modules/HistoryRow/HistoryRow.js +12 -7
- package/build/cjs/modules/HistoryRow/HistoryRow.js.map +1 -1
- package/build/cjs/modules/HistorySearchRow/HistorySearchRow.js +8 -5
- package/build/cjs/modules/HistorySearchRow/HistorySearchRow.js.map +1 -1
- package/build/cjs/modules/HistorySearchRow/helpers/resolveMonacoLanguage.d.ts +1 -1
- package/build/cjs/modules/HistorySearchRow/helpers/resolveMonacoLanguage.js +5 -5
- package/build/cjs/modules/HistorySearchRow/helpers/resolveMonacoLanguage.js.map +1 -1
- package/build/cjs/modules/NavigationDetail/NavigationDetail.d.ts +1 -1
- package/build/cjs/modules/NavigationDetail/NavigationDetail.js +2 -2
- package/build/cjs/modules/NavigationDetail/NavigationDetail.js.map +1 -1
- package/build/cjs/modules/NavigationHeader/NavigationHeader.d.ts +1 -1
- package/build/cjs/modules/NavigationHeader/NavigationHeader.js +2 -2
- package/build/cjs/modules/NavigationHeader/NavigationHeader.js.map +1 -1
- package/build/cjs/modules/NavigationItemsList/NavigationItemsList.d.ts +1 -1
- package/build/cjs/modules/NavigationItemsList/NavigationItemsList.js +4 -3
- package/build/cjs/modules/NavigationItemsList/NavigationItemsList.js.map +1 -1
- package/build/cjs/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.d.ts +1 -1
- package/build/cjs/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.js +2 -2
- package/build/cjs/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.js.map +1 -1
- package/build/cjs/modules/NavigationMeta/NavigationMeta.js +4 -3
- package/build/cjs/modules/NavigationMeta/NavigationMeta.js.map +1 -1
- package/build/cjs/modules/NavigationMeta/i18n/index.d.ts +2 -2
- package/build/cjs/modules/NavigationPreview/NavigationPreview.d.ts +1 -1
- package/build/cjs/modules/NavigationPreview/NavigationPreview.js +6 -4
- package/build/cjs/modules/NavigationPreview/NavigationPreview.js.map +1 -1
- package/build/cjs/modules/NavigationPreview/helpers/buildPreviewColumns.d.ts +1 -1
- package/build/cjs/modules/NavigationPreview/helpers/buildPreviewColumns.js.map +1 -1
- package/build/cjs/modules/NavigationSchema/NavigationSchema.d.ts +1 -1
- package/build/cjs/modules/NavigationSchema/NavigationSchema.js +4 -3
- package/build/cjs/modules/NavigationSchema/NavigationSchema.js.map +1 -1
- package/build/cjs/modules/NavigationSchema/helpers/buildSchemaColumns.d.ts +1 -1
- package/build/cjs/modules/NavigationSchema/helpers/buildSchemaColumns.js.map +1 -1
- package/build/cjs/modules/NavigationView/NavigationView.d.ts +1 -1
- package/build/cjs/modules/NavigationView/NavigationView.js +4 -3
- package/build/cjs/modules/NavigationView/NavigationView.js.map +1 -1
- package/build/cjs/modules/NavigationView/helpers/buildViewColumns.d.ts +1 -1
- package/build/cjs/modules/NavigationView/helpers/buildViewColumns.js.map +1 -1
- package/build/cjs/modules/NavigationView/internal/NavigationViewSectionItem.d.ts +1 -1
- package/build/cjs/modules/NavigationView/internal/NavigationViewSectionItem.js +4 -3
- package/build/cjs/modules/NavigationView/internal/NavigationViewSectionItem.js.map +1 -1
- package/build/cjs/modules/QueriesList/QueriesList.js +2 -2
- package/build/cjs/modules/QueriesList/QueriesList.js.map +1 -1
- package/build/cjs/modules/QueryProgress/QueryProgress.css +64 -0
- package/build/cjs/modules/QueryProgress/QueryProgress.css.map +1 -0
- package/build/cjs/modules/QueryProgress/QueryProgress.d.ts +4 -0
- package/build/cjs/modules/QueryProgress/QueryProgress.js +135 -0
- package/build/cjs/modules/QueryProgress/QueryProgress.js.map +1 -0
- package/build/cjs/modules/QueryProgress/QueryProgress.stories.d.ts +7 -0
- package/build/cjs/modules/QueryProgress/QueryProgress.stories.js +38 -0
- package/build/cjs/modules/QueryProgress/QueryProgress.stories.js.map +1 -0
- package/build/cjs/modules/QueryProgress/i18n/dicts.d.ts +25 -0
- package/build/cjs/modules/QueryProgress/i18n/dicts.js +14 -0
- package/build/cjs/modules/QueryProgress/i18n/dicts.js.map +1 -0
- package/build/cjs/modules/QueryProgress/i18n/en.json +11 -0
- package/build/cjs/modules/QueryProgress/i18n/index.d.ts +6 -0
- package/build/cjs/modules/QueryProgress/i18n/index.js +11 -0
- package/build/cjs/modules/QueryProgress/i18n/index.js.map +1 -0
- package/build/cjs/modules/QueryProgress/i18n/ru.json +11 -0
- package/build/cjs/modules/QueryProgress/index.d.ts +2 -0
- package/build/cjs/modules/QueryProgress/index.js +13 -0
- package/build/cjs/modules/QueryProgress/index.js.map +1 -0
- package/build/cjs/modules/QueryStatistics/i18n/index.d.ts +2 -2
- package/build/cjs/modules/RowsList/RowsList.js +4 -3
- package/build/cjs/modules/RowsList/RowsList.js.map +1 -1
- package/build/cjs/modules/SavedQueryRow/SavedQueryRow.d.ts +2 -2
- package/build/cjs/modules/SavedQueryRow/SavedQueryRow.js +6 -4
- package/build/cjs/modules/SavedQueryRow/SavedQueryRow.js.map +1 -1
- package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.d.ts +2 -2
- package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.js +4 -3
- package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.js.map +1 -1
- package/build/cjs/modules/TutorialRow/TutorialRow.d.ts +4 -2
- package/build/cjs/modules/TutorialRow/TutorialRow.js +5 -3
- package/build/cjs/modules/TutorialRow/TutorialRow.js.map +1 -1
- package/build/cjs/modules/TutorialSearchRow/TutorialSearchRow.d.ts +4 -2
- package/build/cjs/modules/TutorialSearchRow/TutorialSearchRow.js +7 -4
- package/build/cjs/modules/TutorialSearchRow/TutorialSearchRow.js.map +1 -1
- package/build/cjs/modules/index.d.ts +2 -0
- package/build/cjs/modules/index.js +8 -0
- package/build/cjs/modules/index.js.map +1 -1
- package/build/cjs/types/queryGraph.d.ts +87 -0
- package/build/cjs/types/queryGraph.js +6 -0
- package/build/cjs/types/queryGraph.js.map +1 -0
- package/build/cjs/widgets/DashboardCharts/DashboardCharts.js +8 -6
- package/build/cjs/widgets/DashboardCharts/DashboardCharts.js.map +1 -1
- package/build/cjs/widgets/DashboardCharts/types.d.ts +3 -3
- package/build/cjs/widgets/DashboardCharts/types.js.map +1 -1
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.js +2 -2
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.js.map +1 -1
- package/build/cjs/widgets/QueriesHistory/internal/HistoryRowContent.js +6 -5
- package/build/cjs/widgets/QueriesHistory/internal/HistoryRowContent.js.map +1 -1
- package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.d.ts +1 -1
- package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.js +13 -9
- package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.js.map +1 -1
- package/build/cjs/widgets/QueriesNavigation/helpers/createEmptyDetailConfig.js +2 -2
- package/build/cjs/widgets/QueriesNavigation/helpers/createEmptyDetailConfig.js.map +1 -1
- package/build/cjs/widgets/QueriesNavigation/helpers/createTableDetailConfig.js +8 -5
- package/build/cjs/widgets/QueriesNavigation/helpers/createTableDetailConfig.js.map +1 -1
- package/build/cjs/widgets/QueryResults/QueryResults.js +2 -2
- package/build/cjs/widgets/QueryResults/QueryResults.js.map +1 -1
- package/build/cjs/widgets/QueryResults/i18n/index.d.ts +2 -2
- package/build/cjs/widgets/QueryResults/internal/QueryResultsSchema.js +4 -3
- package/build/cjs/widgets/QueryResults/internal/QueryResultsSchema.js.map +1 -1
- package/build/cjs/widgets/SavedQueries/SavedQueries.d.ts +2 -2
- package/build/cjs/widgets/SavedQueries/SavedQueries.js +2 -2
- package/build/cjs/widgets/SavedQueries/SavedQueries.js.map +1 -1
- package/build/cjs/widgets/SavedQueries/SavedQueryRowContent.d.ts +2 -2
- package/build/cjs/widgets/SavedQueries/SavedQueryRowContent.js +6 -5
- package/build/cjs/widgets/SavedQueries/SavedQueryRowContent.js.map +1 -1
- package/build/cjs/widgets/TutorialsHistory/TutorialRowContent.d.ts +3 -3
- package/build/cjs/widgets/TutorialsHistory/TutorialRowContent.js +12 -8
- package/build/cjs/widgets/TutorialsHistory/TutorialRowContent.js.map +1 -1
- package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.d.ts +8 -3
- package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.js +19 -7
- package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.js.map +1 -1
- package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.stories.d.ts +5 -0
- package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.stories.js +244 -1
- package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.stories.js.map +1 -1
- package/build/esm/components/QueryGraph/QueryGraph.css +70 -0
- package/build/esm/components/QueryGraph/QueryGraph.css.map +1 -0
- package/build/esm/components/QueryGraph/QueryGraph.d.ts +4 -0
- package/build/esm/components/QueryGraph/QueryGraph.js +510 -0
- package/build/esm/components/QueryGraph/QueryGraph.js.map +1 -0
- package/build/esm/components/QueryGraph/QueryGraph.scss +81 -0
- package/build/esm/components/QueryGraph/QueryGraph.stories.d.ts +16 -0
- package/build/esm/components/QueryGraph/QueryGraph.stories.js +331 -0
- package/build/esm/components/QueryGraph/QueryGraph.stories.js.map +1 -0
- package/build/esm/components/QueryGraph/helpers/layout.d.ts +9 -0
- package/build/esm/components/QueryGraph/helpers/layout.js +128 -0
- package/build/esm/components/QueryGraph/helpers/layout.js.map +1 -0
- package/build/esm/components/QueryGraph/helpers/presentation.d.ts +18 -0
- package/build/esm/components/QueryGraph/helpers/presentation.js +35 -0
- package/build/esm/components/QueryGraph/helpers/presentation.js.map +1 -0
- package/build/esm/components/QueryGraph/i18n/dicts.d.ts +55 -0
- package/build/esm/components/QueryGraph/i18n/dicts.js +7 -0
- package/build/esm/components/QueryGraph/i18n/dicts.js.map +1 -0
- package/build/esm/components/QueryGraph/i18n/en.json +26 -0
- package/build/esm/components/QueryGraph/i18n/index.d.ts +6 -0
- package/build/esm/components/QueryGraph/i18n/index.js +4 -0
- package/build/esm/components/QueryGraph/i18n/index.js.map +1 -0
- package/build/esm/components/QueryGraph/i18n/ru.json +26 -0
- package/build/esm/components/QueryGraph/index.d.ts +2 -0
- package/build/esm/components/QueryGraph/index.js +2 -0
- package/build/esm/components/QueryGraph/index.js.map +1 -0
- package/build/esm/components/QueryGraph/internal/QueryGraphCanvasBlock.d.ts +24 -0
- package/build/esm/components/QueryGraph/internal/QueryGraphCanvasBlock.js +301 -0
- package/build/esm/components/QueryGraph/internal/QueryGraphCanvasBlock.js.map +1 -0
- package/build/esm/components/QueryGraph/internal/QueryGraphPopup.d.ts +5 -0
- package/build/esm/components/QueryGraph/internal/QueryGraphPopup.js +234 -0
- package/build/esm/components/QueryGraph/internal/QueryGraphPopup.js.map +1 -0
- package/build/esm/components/QueryGraph/internal/queryGraphIcons.d.ts +12 -0
- package/build/esm/components/QueryGraph/internal/queryGraphIcons.js +150 -0
- package/build/esm/components/QueryGraph/internal/queryGraphIcons.js.map +1 -0
- package/build/esm/components/QueryGraph/internal/useQueryGraphLayout.d.ts +22 -0
- package/build/esm/components/QueryGraph/internal/useQueryGraphLayout.js +53 -0
- package/build/esm/components/QueryGraph/internal/useQueryGraphLayout.js.map +1 -0
- package/build/esm/components/QueryGraph/story/largeGraphData.d.ts +3 -0
- package/build/esm/components/QueryGraph/story/largeGraphData.js +220 -0
- package/build/esm/components/QueryGraph/story/largeGraphData.js.map +1 -0
- package/build/esm/components/index.d.ts +2 -0
- package/build/esm/components/index.js +1 -0
- package/build/esm/components/index.js.map +1 -1
- package/build/esm/helpers/buildColumnsFromKeys.d.ts +1 -1
- package/build/esm/helpers/buildColumnsFromKeys.js.map +1 -1
- package/build/esm/index.d.ts +1 -0
- package/build/esm/index.js +1 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/modules/ClustersList/ClustersList.d.ts +1 -1
- package/build/esm/modules/ClustersList/ClustersList.js +2 -1
- package/build/esm/modules/ClustersList/ClustersList.js.map +1 -1
- package/build/esm/modules/HistoryHeader/HistoryHeader.js +2 -1
- package/build/esm/modules/HistoryHeader/HistoryHeader.js.map +1 -1
- package/build/esm/modules/HistoryRow/HistoryRow.js +6 -1
- package/build/esm/modules/HistoryRow/HistoryRow.js.map +1 -1
- package/build/esm/modules/HistorySearchRow/HistorySearchRow.js +4 -1
- package/build/esm/modules/HistorySearchRow/HistorySearchRow.js.map +1 -1
- package/build/esm/modules/HistorySearchRow/helpers/resolveMonacoLanguage.d.ts +1 -1
- package/build/esm/modules/HistorySearchRow/helpers/resolveMonacoLanguage.js +1 -1
- package/build/esm/modules/HistorySearchRow/helpers/resolveMonacoLanguage.js.map +1 -1
- package/build/esm/modules/NavigationDetail/NavigationDetail.d.ts +1 -1
- package/build/esm/modules/NavigationDetail/NavigationDetail.js +1 -1
- package/build/esm/modules/NavigationDetail/NavigationDetail.js.map +1 -1
- package/build/esm/modules/NavigationHeader/NavigationHeader.d.ts +1 -1
- package/build/esm/modules/NavigationHeader/NavigationHeader.js +1 -1
- package/build/esm/modules/NavigationHeader/NavigationHeader.js.map +1 -1
- package/build/esm/modules/NavigationItemsList/NavigationItemsList.d.ts +1 -1
- package/build/esm/modules/NavigationItemsList/NavigationItemsList.js +2 -1
- package/build/esm/modules/NavigationItemsList/NavigationItemsList.js.map +1 -1
- package/build/esm/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.d.ts +1 -1
- package/build/esm/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.js +1 -1
- package/build/esm/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.js.map +1 -1
- package/build/esm/modules/NavigationMeta/NavigationMeta.js +2 -1
- package/build/esm/modules/NavigationMeta/NavigationMeta.js.map +1 -1
- package/build/esm/modules/NavigationMeta/i18n/index.d.ts +2 -2
- package/build/esm/modules/NavigationPreview/NavigationPreview.d.ts +1 -1
- package/build/esm/modules/NavigationPreview/NavigationPreview.js +3 -1
- package/build/esm/modules/NavigationPreview/NavigationPreview.js.map +1 -1
- package/build/esm/modules/NavigationPreview/helpers/buildPreviewColumns.d.ts +1 -1
- package/build/esm/modules/NavigationPreview/helpers/buildPreviewColumns.js.map +1 -1
- package/build/esm/modules/NavigationSchema/NavigationSchema.d.ts +1 -1
- package/build/esm/modules/NavigationSchema/NavigationSchema.js +2 -1
- package/build/esm/modules/NavigationSchema/NavigationSchema.js.map +1 -1
- package/build/esm/modules/NavigationSchema/helpers/buildSchemaColumns.d.ts +1 -1
- package/build/esm/modules/NavigationSchema/helpers/buildSchemaColumns.js.map +1 -1
- package/build/esm/modules/NavigationView/NavigationView.d.ts +1 -1
- package/build/esm/modules/NavigationView/NavigationView.js +2 -1
- package/build/esm/modules/NavigationView/NavigationView.js.map +1 -1
- package/build/esm/modules/NavigationView/helpers/buildViewColumns.d.ts +1 -1
- package/build/esm/modules/NavigationView/helpers/buildViewColumns.js.map +1 -1
- package/build/esm/modules/NavigationView/internal/NavigationViewSectionItem.d.ts +1 -1
- package/build/esm/modules/NavigationView/internal/NavigationViewSectionItem.js +2 -1
- package/build/esm/modules/NavigationView/internal/NavigationViewSectionItem.js.map +1 -1
- package/build/esm/modules/QueriesList/QueriesList.js +1 -1
- package/build/esm/modules/QueriesList/QueriesList.js.map +1 -1
- package/build/esm/modules/QueryProgress/QueryProgress.css +64 -0
- package/build/esm/modules/QueryProgress/QueryProgress.css.map +1 -0
- package/build/esm/modules/QueryProgress/QueryProgress.d.ts +4 -0
- package/build/esm/modules/QueryProgress/QueryProgress.js +127 -0
- package/build/esm/modules/QueryProgress/QueryProgress.js.map +1 -0
- package/build/esm/modules/QueryProgress/QueryProgress.scss +72 -0
- package/build/esm/modules/QueryProgress/QueryProgress.stories.d.ts +7 -0
- package/build/esm/modules/QueryProgress/QueryProgress.stories.js +31 -0
- package/build/esm/modules/QueryProgress/QueryProgress.stories.js.map +1 -0
- package/build/esm/modules/QueryProgress/i18n/dicts.d.ts +25 -0
- package/build/esm/modules/QueryProgress/i18n/dicts.js +7 -0
- package/build/esm/modules/QueryProgress/i18n/dicts.js.map +1 -0
- package/build/esm/modules/QueryProgress/i18n/en.json +11 -0
- package/build/esm/modules/QueryProgress/i18n/index.d.ts +6 -0
- package/build/esm/modules/QueryProgress/i18n/index.js +4 -0
- package/build/esm/modules/QueryProgress/i18n/index.js.map +1 -0
- package/build/esm/modules/QueryProgress/i18n/ru.json +11 -0
- package/build/esm/modules/QueryProgress/index.d.ts +2 -0
- package/build/esm/modules/QueryProgress/index.js +2 -0
- package/build/esm/modules/QueryProgress/index.js.map +1 -0
- package/build/esm/modules/QueryStatistics/i18n/index.d.ts +2 -2
- package/build/esm/modules/RowsList/RowsList.js +2 -1
- package/build/esm/modules/RowsList/RowsList.js.map +1 -1
- package/build/esm/modules/SavedQueryRow/SavedQueryRow.d.ts +2 -2
- package/build/esm/modules/SavedQueryRow/SavedQueryRow.js +3 -1
- package/build/esm/modules/SavedQueryRow/SavedQueryRow.js.map +1 -1
- package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.d.ts +2 -2
- package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.js +2 -1
- package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.js.map +1 -1
- package/build/esm/modules/TutorialRow/TutorialRow.d.ts +4 -2
- package/build/esm/modules/TutorialRow/TutorialRow.js +4 -2
- package/build/esm/modules/TutorialRow/TutorialRow.js.map +1 -1
- package/build/esm/modules/TutorialSearchRow/TutorialSearchRow.d.ts +4 -2
- package/build/esm/modules/TutorialSearchRow/TutorialSearchRow.js +5 -2
- package/build/esm/modules/TutorialSearchRow/TutorialSearchRow.js.map +1 -1
- package/build/esm/modules/index.d.ts +2 -0
- package/build/esm/modules/index.js +1 -0
- package/build/esm/modules/index.js.map +1 -1
- package/build/esm/types/queryGraph.d.ts +87 -0
- package/build/esm/types/queryGraph.js +2 -0
- package/build/esm/types/queryGraph.js.map +1 -0
- package/build/esm/widgets/DashboardCharts/DashboardCharts.js +4 -2
- package/build/esm/widgets/DashboardCharts/DashboardCharts.js.map +1 -1
- package/build/esm/widgets/DashboardCharts/types.d.ts +3 -3
- package/build/esm/widgets/DashboardCharts/types.js.map +1 -1
- package/build/esm/widgets/QueriesHistory/QueriesHistory.js +1 -1
- package/build/esm/widgets/QueriesHistory/QueriesHistory.js.map +1 -1
- package/build/esm/widgets/QueriesHistory/internal/HistoryRowContent.js +3 -2
- package/build/esm/widgets/QueriesHistory/internal/HistoryRowContent.js.map +1 -1
- package/build/esm/widgets/QueriesNavigation/QueriesNavigation.d.ts +1 -1
- package/build/esm/widgets/QueriesNavigation/QueriesNavigation.js +6 -2
- package/build/esm/widgets/QueriesNavigation/QueriesNavigation.js.map +1 -1
- package/build/esm/widgets/QueriesNavigation/helpers/createEmptyDetailConfig.js +1 -1
- package/build/esm/widgets/QueriesNavigation/helpers/createEmptyDetailConfig.js.map +1 -1
- package/build/esm/widgets/QueriesNavigation/helpers/createTableDetailConfig.js +4 -1
- package/build/esm/widgets/QueriesNavigation/helpers/createTableDetailConfig.js.map +1 -1
- package/build/esm/widgets/QueryResults/QueryResults.js +1 -1
- package/build/esm/widgets/QueryResults/QueryResults.js.map +1 -1
- package/build/esm/widgets/QueryResults/i18n/index.d.ts +2 -2
- package/build/esm/widgets/QueryResults/internal/QueryResultsSchema.js +2 -1
- package/build/esm/widgets/QueryResults/internal/QueryResultsSchema.js.map +1 -1
- package/build/esm/widgets/SavedQueries/SavedQueries.d.ts +2 -2
- package/build/esm/widgets/SavedQueries/SavedQueries.js +1 -1
- package/build/esm/widgets/SavedQueries/SavedQueries.js.map +1 -1
- package/build/esm/widgets/SavedQueries/SavedQueryRowContent.d.ts +2 -2
- package/build/esm/widgets/SavedQueries/SavedQueryRowContent.js +3 -2
- package/build/esm/widgets/SavedQueries/SavedQueryRowContent.js.map +1 -1
- package/build/esm/widgets/TutorialsHistory/TutorialRowContent.d.ts +3 -3
- package/build/esm/widgets/TutorialsHistory/TutorialRowContent.js +9 -5
- package/build/esm/widgets/TutorialsHistory/TutorialRowContent.js.map +1 -1
- package/build/esm/widgets/TutorialsHistory/TutorialsHistory.d.ts +8 -3
- package/build/esm/widgets/TutorialsHistory/TutorialsHistory.js +16 -4
- package/build/esm/widgets/TutorialsHistory/TutorialsHistory.js.map +1 -1
- package/build/esm/widgets/TutorialsHistory/TutorialsHistory.stories.d.ts +5 -0
- package/build/esm/widgets/TutorialsHistory/TutorialsHistory.stories.js +244 -1
- package/build/esm/widgets/TutorialsHistory/TutorialsHistory.stories.js.map +1 -1
- package/package.json +84 -5
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
.qp-query-progress {
|
|
2
|
+
min-width: 0;
|
|
3
|
+
min-height: 0;
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
|
6
|
+
.qp-query-progress__toolbar {
|
|
7
|
+
flex-shrink: 0;
|
|
8
|
+
flex-wrap: wrap;
|
|
9
|
+
}
|
|
10
|
+
.qp-query-progress__statuses {
|
|
11
|
+
margin-left: auto;
|
|
12
|
+
}
|
|
13
|
+
.qp-query-progress__status {
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: var(--g-spacing-1);
|
|
17
|
+
padding: var(--g-spacing-1) var(--g-spacing-2);
|
|
18
|
+
border-radius: var(--g-border-radius-s);
|
|
19
|
+
color: var(--g-color-text-secondary);
|
|
20
|
+
background: var(--g-color-base-background);
|
|
21
|
+
}
|
|
22
|
+
.qp-query-progress__status_status_not-started {
|
|
23
|
+
color: var(--g-color-text-primary);
|
|
24
|
+
box-shadow: inset 0 0 0 1px var(--g-color-line-generic);
|
|
25
|
+
}
|
|
26
|
+
.qp-query-progress__status_status_waiting {
|
|
27
|
+
color: var(--g-color-text-misc-heavy);
|
|
28
|
+
background: var(--g-color-base-misc-light);
|
|
29
|
+
}
|
|
30
|
+
.qp-query-progress__status_status_running {
|
|
31
|
+
color: var(--g-color-text-info);
|
|
32
|
+
background: var(--g-color-base-info-light);
|
|
33
|
+
}
|
|
34
|
+
.qp-query-progress__status_status_completed {
|
|
35
|
+
color: var(--g-color-text-positive);
|
|
36
|
+
background: var(--g-color-base-positive-light);
|
|
37
|
+
}
|
|
38
|
+
.qp-query-progress__status_status_failed {
|
|
39
|
+
color: var(--g-color-text-danger);
|
|
40
|
+
background: var(--g-color-base-danger-light);
|
|
41
|
+
}
|
|
42
|
+
.qp-query-progress__status_status_aborted {
|
|
43
|
+
color: var(--g-color-text-complementary);
|
|
44
|
+
background: var(--g-color-base-generic);
|
|
45
|
+
}
|
|
46
|
+
.qp-query-progress__content, .qp-query-progress__view {
|
|
47
|
+
flex: 1;
|
|
48
|
+
min-height: 0;
|
|
49
|
+
height: 100%;
|
|
50
|
+
}
|
|
51
|
+
.qp-query-progress__view_hidden {
|
|
52
|
+
visibility: hidden;
|
|
53
|
+
position: absolute;
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
}
|
|
56
|
+
.qp-query-progress__timeline {
|
|
57
|
+
min-height: 360px;
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
border: 1px dashed var(--g-color-line-generic);
|
|
62
|
+
border-radius: var(--g-border-radius-l);
|
|
63
|
+
}
|
|
64
|
+
/*# sourceMappingURL=QueryProgress.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["QueryProgress.scss"],"names":[],"mappings":"AAAA;EACI,YAAA;EACA,aAAA;EACA,YAAA;AACJ;AACI;EACI,cAAA;EACA,eAAA;AACR;AAEI;EACI,iBAAA;AAAR;AAGI;EACI,oBAAA;EACA,mBAAA;EACA,uBAAA;EACA,8CAAA;EACA,uCAAA;EACA,oCAAA;EACA,0CAAA;AADR;AAGQ;EACI,kCAAA;EACA,uDAAA;AADZ;AAIQ;EACI,qCAAA;EACA,0CAAA;AAFZ;AAIQ;EACI,+BAAA;EACA,0CAAA;AAFZ;AAIQ;EACI,mCAAA;EACA,8CAAA;AAFZ;AAIQ;EACI,iCAAA;EACA,4CAAA;AAFZ;AAIQ;EACI,wCAAA;EACA,uCAAA;AAFZ;AAMI;EAEI,OAAA;EACA,aAAA;EACA,YAAA;AALR;AAQI;EACI,kBAAA;EACA,kBAAA;EACA,oBAAA;AANR;AASI;EACI,iBAAA;EACA,aAAA;EACA,mBAAA;EACA,uBAAA;EACA,8CAAA;EACA,uCAAA;AAPR","file":"QueryProgress.css","sourcesContent":[".qp-query-progress {\n min-width: 0;\n min-height: 0;\n height: 100%;\n\n &__toolbar {\n flex-shrink: 0;\n flex-wrap: wrap;\n }\n\n &__statuses {\n margin-left: auto;\n }\n\n &__status {\n display: inline-flex;\n align-items: center;\n gap: var(--g-spacing-1);\n padding: var(--g-spacing-1) var(--g-spacing-2);\n border-radius: var(--g-border-radius-s);\n color: var(--g-color-text-secondary);\n background: var(--g-color-base-background);\n\n &_status_not-started {\n color: var(--g-color-text-primary);\n box-shadow: inset 0 0 0 1px var(--g-color-line-generic);\n }\n\n &_status_waiting {\n color: var(--g-color-text-misc-heavy);\n background: var(--g-color-base-misc-light);\n }\n &_status_running {\n color: var(--g-color-text-info);\n background: var(--g-color-base-info-light);\n }\n &_status_completed {\n color: var(--g-color-text-positive);\n background: var(--g-color-base-positive-light);\n }\n &_status_failed {\n color: var(--g-color-text-danger);\n background: var(--g-color-base-danger-light);\n }\n &_status_aborted {\n color: var(--g-color-text-complementary);\n background: var(--g-color-base-generic);\n }\n }\n\n &__content,\n &__view {\n flex: 1;\n min-height: 0;\n height: 100%;\n }\n\n &__view_hidden {\n visibility: hidden;\n position: absolute;\n pointer-events: none;\n }\n\n &__timeline {\n min-height: 360px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1px dashed var(--g-color-line-generic);\n border-radius: var(--g-border-radius-l);\n }\n}\n"],"sourceRoot":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { QueryProgressProps } from '../../types/queryGraph';
|
|
3
|
+
import './QueryProgress.scss';
|
|
4
|
+
export declare function QueryProgress({ graphProps, view: controlledView, defaultView, onViewChange, className, }: QueryProgressProps): React.JSX.Element;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import "core-js/modules/es.array.for-each.js";
|
|
4
|
+
import "core-js/modules/es.array.iterator.js";
|
|
5
|
+
import "core-js/modules/es.array.map.js";
|
|
6
|
+
import "core-js/modules/es.iterator.constructor.js";
|
|
7
|
+
import "core-js/modules/es.iterator.for-each.js";
|
|
8
|
+
import "core-js/modules/es.object.from-entries.js";
|
|
9
|
+
import "core-js/modules/es.object.to-string.js";
|
|
10
|
+
import "core-js/modules/es.promise.js";
|
|
11
|
+
import "core-js/modules/web.dom-collections.for-each.js";
|
|
12
|
+
import React, { Suspense, useCallback, useMemo, useState } from 'react';
|
|
13
|
+
import { Circle, CircleCheck, CircleDashed, CircleMinus, CirclePlay, CircleXmark } from '@gravity-ui/icons';
|
|
14
|
+
import { Flex, Icon, Loader, SegmentedRadioGroup, Text } from '@gravity-ui/uikit';
|
|
15
|
+
import cn from 'bem-cn-lite';
|
|
16
|
+
import i18n from "./i18n";
|
|
17
|
+
import "./QueryProgress.css";
|
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
var QueryGraph = /*#__PURE__*/React.lazy(function () {
|
|
20
|
+
return import("../../components/QueryGraph/QueryGraph").then(function (module) {
|
|
21
|
+
return {
|
|
22
|
+
"default": module.QueryGraph
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
var block = cn('qp-query-progress');
|
|
27
|
+
var statuses = ['not-started', 'waiting', 'running', 'completed', 'failed', 'aborted'];
|
|
28
|
+
var statusIcons = {
|
|
29
|
+
'not-started': CircleDashed,
|
|
30
|
+
waiting: Circle,
|
|
31
|
+
running: CirclePlay,
|
|
32
|
+
completed: CircleCheck,
|
|
33
|
+
failed: CircleXmark,
|
|
34
|
+
aborted: CircleMinus
|
|
35
|
+
};
|
|
36
|
+
export function QueryProgress(_ref) {
|
|
37
|
+
var graphProps = _ref.graphProps,
|
|
38
|
+
controlledView = _ref.view,
|
|
39
|
+
_ref$defaultView = _ref.defaultView,
|
|
40
|
+
defaultView = _ref$defaultView === void 0 ? 'graph' : _ref$defaultView,
|
|
41
|
+
onViewChange = _ref.onViewChange,
|
|
42
|
+
className = _ref.className;
|
|
43
|
+
var _useState = useState(defaultView),
|
|
44
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
45
|
+
uncontrolledView = _useState2[0],
|
|
46
|
+
setUncontrolledView = _useState2[1];
|
|
47
|
+
var view = controlledView !== null && controlledView !== void 0 ? controlledView : uncontrolledView;
|
|
48
|
+
var _useState3 = useState(view === 'graph'),
|
|
49
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
50
|
+
hasOpenedGraph = _useState4[0],
|
|
51
|
+
setHasOpenedGraph = _useState4[1];
|
|
52
|
+
var counts = useMemo(function () {
|
|
53
|
+
var result = Object.fromEntries(statuses.map(function (status) {
|
|
54
|
+
return [status, 0];
|
|
55
|
+
}));
|
|
56
|
+
graphProps.nodes.forEach(function (node) {
|
|
57
|
+
var _node$status;
|
|
58
|
+
if (node.kind === 'operation') result[(_node$status = node.status) !== null && _node$status !== void 0 ? _node$status : 'not-started']++;
|
|
59
|
+
});
|
|
60
|
+
return result;
|
|
61
|
+
}, [graphProps.nodes]);
|
|
62
|
+
var updateView = useCallback(function (value) {
|
|
63
|
+
var nextView = value;
|
|
64
|
+
if (controlledView === undefined) setUncontrolledView(nextView);
|
|
65
|
+
if (nextView === 'graph') setHasOpenedGraph(true);
|
|
66
|
+
onViewChange === null || onViewChange === void 0 || onViewChange(nextView);
|
|
67
|
+
}, [controlledView, onViewChange]);
|
|
68
|
+
return /*#__PURE__*/_jsxs(Flex, {
|
|
69
|
+
direction: "column",
|
|
70
|
+
gap: 3,
|
|
71
|
+
className: block(null, className),
|
|
72
|
+
children: [/*#__PURE__*/_jsxs(Flex, {
|
|
73
|
+
alignItems: "center",
|
|
74
|
+
gap: 4,
|
|
75
|
+
className: block('toolbar'),
|
|
76
|
+
children: [/*#__PURE__*/_jsxs(SegmentedRadioGroup, {
|
|
77
|
+
size: "m",
|
|
78
|
+
value: view,
|
|
79
|
+
onUpdate: updateView,
|
|
80
|
+
children: [/*#__PURE__*/_jsx(SegmentedRadioGroup.Option, {
|
|
81
|
+
value: "graph",
|
|
82
|
+
children: i18n('tab_graph')
|
|
83
|
+
}), /*#__PURE__*/_jsx(SegmentedRadioGroup.Option, {
|
|
84
|
+
value: "timeline",
|
|
85
|
+
children: i18n('tab_timeline')
|
|
86
|
+
})]
|
|
87
|
+
}), /*#__PURE__*/_jsx(Flex, {
|
|
88
|
+
gap: 2,
|
|
89
|
+
wrap: true,
|
|
90
|
+
className: block('statuses'),
|
|
91
|
+
children: statuses.map(function (status) {
|
|
92
|
+
return /*#__PURE__*/_jsxs("span", {
|
|
93
|
+
className: block('status', {
|
|
94
|
+
status: status
|
|
95
|
+
}),
|
|
96
|
+
children: [/*#__PURE__*/_jsx(Icon, {
|
|
97
|
+
data: statusIcons[status],
|
|
98
|
+
size: 14
|
|
99
|
+
}), i18n("status_".concat(status)), ": ", counts[status]]
|
|
100
|
+
}, status);
|
|
101
|
+
})
|
|
102
|
+
})]
|
|
103
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
104
|
+
className: block('content'),
|
|
105
|
+
children: [hasOpenedGraph && /*#__PURE__*/_jsx("div", {
|
|
106
|
+
className: block('view', {
|
|
107
|
+
hidden: view !== 'graph'
|
|
108
|
+
}),
|
|
109
|
+
children: /*#__PURE__*/_jsx(Suspense, {
|
|
110
|
+
fallback: /*#__PURE__*/_jsx(Loader, {
|
|
111
|
+
size: "m"
|
|
112
|
+
}),
|
|
113
|
+
children: /*#__PURE__*/_jsx(QueryGraph, _objectSpread(_objectSpread({}, graphProps), {}, {
|
|
114
|
+
active: view === 'graph'
|
|
115
|
+
}))
|
|
116
|
+
})
|
|
117
|
+
}), view === 'timeline' && /*#__PURE__*/_jsx("div", {
|
|
118
|
+
className: block('timeline'),
|
|
119
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
120
|
+
color: "secondary",
|
|
121
|
+
children: i18n('context_timeline-unavailable')
|
|
122
|
+
})
|
|
123
|
+
})]
|
|
124
|
+
})]
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
// #sourceMappingURL=QueryProgress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Suspense","useCallback","useMemo","useState","Circle","CircleCheck","CircleDashed","CircleMinus","CirclePlay","CircleXmark","Flex","Icon","Loader","SegmentedRadioGroup","Text","cn","i18n","jsx","_jsx","jsxs","_jsxs","QueryGraph","lazy","then","module","block","statuses","statusIcons","waiting","running","completed","failed","aborted","QueryProgress","_ref","graphProps","controlledView","view","_ref$defaultView","defaultView","onViewChange","className","_useState","_useState2","_slicedToArray","uncontrolledView","setUncontrolledView","_useState3","_useState4","hasOpenedGraph","setHasOpenedGraph","counts","result","Object","fromEntries","map","status","nodes","forEach","node","_node$status","kind","updateView","value","nextView","undefined","direction","gap","children","alignItems","size","onUpdate","Option","wrap","data","concat","hidden","fallback","_objectSpread","active","color"],"sources":["QueryProgress.tsx"],"sourcesContent":["import React, {Suspense, useCallback, useMemo, useState} from 'react';\nimport {\n Circle,\n CircleCheck,\n CircleDashed,\n CircleMinus,\n CirclePlay,\n CircleXmark,\n} from '@gravity-ui/icons';\nimport {Flex, Icon, Loader, SegmentedRadioGroup, Text} from '@gravity-ui/uikit';\nimport cn from 'bem-cn-lite';\n\nimport type {\n QueryGraphNodeStatus,\n QueryProgressProps,\n QueryProgressView,\n} from '../../types/queryGraph';\nimport i18n from './i18n';\n\nimport './QueryProgress.scss';\n\nconst QueryGraph = React.lazy(() =>\n import('../../components/QueryGraph/QueryGraph').then((module) => ({\n default: module.QueryGraph,\n })),\n);\nconst block = cn('qp-query-progress');\nconst statuses: QueryGraphNodeStatus[] = [\n 'not-started',\n 'waiting',\n 'running',\n 'completed',\n 'failed',\n 'aborted',\n];\nconst statusIcons = {\n 'not-started': CircleDashed,\n waiting: Circle,\n running: CirclePlay,\n completed: CircleCheck,\n failed: CircleXmark,\n aborted: CircleMinus,\n} satisfies Record<QueryGraphNodeStatus, typeof Circle>;\n\nexport function QueryProgress({\n graphProps,\n view: controlledView,\n defaultView = 'graph',\n onViewChange,\n className,\n}: QueryProgressProps) {\n const [uncontrolledView, setUncontrolledView] = useState(defaultView);\n const view = controlledView ?? uncontrolledView;\n const [hasOpenedGraph, setHasOpenedGraph] = useState(view === 'graph');\n const counts = useMemo(() => {\n const result = Object.fromEntries(statuses.map((status) => [status, 0])) as Record<\n QueryGraphNodeStatus,\n number\n >;\n graphProps.nodes.forEach((node) => {\n if (node.kind === 'operation') result[node.status ?? 'not-started']++;\n });\n return result;\n }, [graphProps.nodes]);\n\n const updateView = useCallback(\n (value: string) => {\n const nextView = value as QueryProgressView;\n if (controlledView === undefined) setUncontrolledView(nextView);\n if (nextView === 'graph') setHasOpenedGraph(true);\n onViewChange?.(nextView);\n },\n [controlledView, onViewChange],\n );\n\n return (\n <Flex direction=\"column\" gap={3} className={block(null, className)}>\n <Flex alignItems=\"center\" gap={4} className={block('toolbar')}>\n <SegmentedRadioGroup size=\"m\" value={view} onUpdate={updateView}>\n <SegmentedRadioGroup.Option value=\"graph\">\n {i18n('tab_graph')}\n </SegmentedRadioGroup.Option>\n <SegmentedRadioGroup.Option value=\"timeline\">\n {i18n('tab_timeline')}\n </SegmentedRadioGroup.Option>\n </SegmentedRadioGroup>\n <Flex gap={2} wrap className={block('statuses')}>\n {statuses.map((status) => (\n <span key={status} className={block('status', {status})}>\n <Icon data={statusIcons[status]} size={14} />\n {i18n(`status_${status}`)}: {counts[status]}\n </span>\n ))}\n </Flex>\n </Flex>\n <div className={block('content')}>\n {hasOpenedGraph && (\n <div className={block('view', {hidden: view !== 'graph'})}>\n <Suspense fallback={<Loader size=\"m\" />}>\n <QueryGraph {...graphProps} active={view === 'graph'} />\n </Suspense>\n </div>\n )}\n {view === 'timeline' && (\n <div className={block('timeline')}>\n <Text color=\"secondary\">{i18n('context_timeline-unavailable')}</Text>\n </div>\n )}\n </div>\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;;;;AAAA,OAAOA,KAAK,IAAGC,QAAQ,EAAEC,WAAW,EAAEC,OAAO,E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A,CAAC;IAAA,CACL,CAAC,eACPpC,KAAA;MAAKqB,SAAS,EAAEhB,KAAK,CAAC,SAAS,CAAE;MAAA2C,QAAA,GAC5BnB,cAAc,iBACX/B,IAAA;QAAKuB,SAAS,EAAEhB,KAAK,CAAC,MAAM,EAAE;UAACmD,MAAM,EAAEvC,IAAI,KAAK;QAAO,CAAC,CAAE;QAAA+B,QAAA,eACtDlD,IAAA,CAAClB,QAAQ;UAAC6E,QAAQ,eAAE3D,IAAA,CAACN,MAAM;YAAC0D,IAAI,EAAC;UAAG,CAAE,CAAE;UAAAF,QAAA,eACpClD,IAAA,CAACG,UAAU,EAAAyD,aAAA,CAAAA,aAAA,KAAK3C,UAAU;YAAE4C,MAAM,EAAE1C,IAAI,KAAK;UAAQ,EAAE;QAAC,CAClD;MAAC,CACV,CACR,EACAA,IAAI,KAAK,UAAU,iBAChBnB,IAAA;QAAKuB,SAAS,EAAEhB,KAAK,CAAC,UAAU,CAAE;QAAA2C,QAAA,eAC9BlD,IAAA,CAACJ,IAAI;UAACkE,KAAK,EAAC,WAAW;UAAAZ,QAAA,EAAEpD,IAAI,CAAC,8BAA8B;QAAC,CAAO;MAAC,CACpE,CACR;IAAA,CACA,CAAC;EAAA,CACJ,CAAC;AAEf","ignoreList":[]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
.qp-query-progress {
|
|
2
|
+
min-width: 0;
|
|
3
|
+
min-height: 0;
|
|
4
|
+
height: 100%;
|
|
5
|
+
|
|
6
|
+
&__toolbar {
|
|
7
|
+
flex-shrink: 0;
|
|
8
|
+
flex-wrap: wrap;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&__statuses {
|
|
12
|
+
margin-left: auto;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&__status {
|
|
16
|
+
display: inline-flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: var(--g-spacing-1);
|
|
19
|
+
padding: var(--g-spacing-1) var(--g-spacing-2);
|
|
20
|
+
border-radius: var(--g-border-radius-s);
|
|
21
|
+
color: var(--g-color-text-secondary);
|
|
22
|
+
background: var(--g-color-base-background);
|
|
23
|
+
|
|
24
|
+
&_status_not-started {
|
|
25
|
+
color: var(--g-color-text-primary);
|
|
26
|
+
box-shadow: inset 0 0 0 1px var(--g-color-line-generic);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&_status_waiting {
|
|
30
|
+
color: var(--g-color-text-misc-heavy);
|
|
31
|
+
background: var(--g-color-base-misc-light);
|
|
32
|
+
}
|
|
33
|
+
&_status_running {
|
|
34
|
+
color: var(--g-color-text-info);
|
|
35
|
+
background: var(--g-color-base-info-light);
|
|
36
|
+
}
|
|
37
|
+
&_status_completed {
|
|
38
|
+
color: var(--g-color-text-positive);
|
|
39
|
+
background: var(--g-color-base-positive-light);
|
|
40
|
+
}
|
|
41
|
+
&_status_failed {
|
|
42
|
+
color: var(--g-color-text-danger);
|
|
43
|
+
background: var(--g-color-base-danger-light);
|
|
44
|
+
}
|
|
45
|
+
&_status_aborted {
|
|
46
|
+
color: var(--g-color-text-complementary);
|
|
47
|
+
background: var(--g-color-base-generic);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&__content,
|
|
52
|
+
&__view {
|
|
53
|
+
flex: 1;
|
|
54
|
+
min-height: 0;
|
|
55
|
+
height: 100%;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&__view_hidden {
|
|
59
|
+
visibility: hidden;
|
|
60
|
+
position: absolute;
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&__timeline {
|
|
65
|
+
min-height: 360px;
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
border: 1px dashed var(--g-color-line-generic);
|
|
70
|
+
border-radius: var(--g-border-radius-l);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { QueryProgress } from './QueryProgress';
|
|
3
|
+
declare const meta: Meta<typeof QueryProgress>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof QueryProgress>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const TimelinePlaceholder: Story;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { demoEdges, demoNodes } from "../../components/QueryGraph/QueryGraph.stories";
|
|
3
|
+
import { QueryProgress } from "./QueryProgress";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
var meta = {
|
|
6
|
+
title: 'Modules/QueryProgress',
|
|
7
|
+
component: QueryProgress,
|
|
8
|
+
tags: ['autodocs'],
|
|
9
|
+
args: {
|
|
10
|
+
graphProps: {
|
|
11
|
+
nodes: demoNodes,
|
|
12
|
+
edges: demoEdges
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
decorators: [function (Story) {
|
|
16
|
+
return /*#__PURE__*/_jsx("div", {
|
|
17
|
+
style: {
|
|
18
|
+
height: 640
|
|
19
|
+
},
|
|
20
|
+
children: /*#__PURE__*/_jsx(Story, {})
|
|
21
|
+
});
|
|
22
|
+
}]
|
|
23
|
+
};
|
|
24
|
+
export default meta;
|
|
25
|
+
export var Default = {};
|
|
26
|
+
export var TimelinePlaceholder = {
|
|
27
|
+
args: {
|
|
28
|
+
defaultView: 'timeline'
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
// #sourceMappingURL=QueryProgress.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","demoEdges","demoNodes","QueryProgress","jsx","_jsx","meta","title","component","tags","args","graphProps","nodes","edges","decorators","Story","style","height","children","Default","TimelinePlaceholder","defaultView"],"sources":["QueryProgress.stories.tsx"],"sourcesContent":["import React from 'react';\nimport type {Meta, StoryObj} from '@storybook/react';\n\nimport {demoEdges, demoNodes} from '../../components/QueryGraph/QueryGraph.stories';\nimport {QueryProgress} from './QueryProgress';\n\nconst meta: Meta<typeof QueryProgress> = {\n title: 'Modules/QueryProgress',\n component: QueryProgress,\n tags: ['autodocs'],\n args: {graphProps: {nodes: demoNodes, edges: demoEdges}},\n decorators: [\n (Story) => (\n <div style={{height: 640}}>\n <Story />\n </div>\n ),\n ],\n};\n\nexport default meta;\ntype Story = StoryObj<typeof QueryProgress>;\n\nexport const Default: Story = {};\nexport const TimelinePlaceholder: Story = {args: {defaultView: 'timeline'}};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAGzB,SAAQC,SAAS,EAAEC,SAAS;AAC5B,SAAQC,aAAa;AAAyB,SAAAC,GAAA,IAAAC,IAAA;AAE9C,IAAMC,IAAgC,GAAG;EACrCC,KAAK,EAAE,uBAAuB;EAC9BC,SAAS,EAAEL,aAAa;EACxBM,IAAI,EAAE,CAAC,UAAU,CAAC;EAClBC,IAAI,EAAE;IAACC,UAAU,EAAE;MAACC,KAAK,EAAEV,SAAS;MAAEW,KAAK,EAAEZ;IAAS;EAAC,CAAC;EACxDa,UAAU,EAAE,CACR,UAACC,KAAK;IAAA,oBACFV,IAAA;MAAKW,KAAK,EAAE;QAACC,MAAM,EAAE;MAAG,CAAE;MAAAC,QAAA,eACtBb,IAAA,CAACU,KAAK,IAAE;IAAC,CACR,CAAC;EAAA,CACT;AAET,CAAC;AAED,eAAeT,IAAI;AAGnB,OAAO,IAAMa,OAAc,GAAG,CAAC,CAAC;AAChC,OAAO,IAAMC,mBAA0B,GAAG;EAACV,IAAI,EAAE;IAACW,WAAW,EAAE;EAAU;AAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
tab_graph: string;
|
|
4
|
+
tab_timeline: string;
|
|
5
|
+
"context_timeline-unavailable": string;
|
|
6
|
+
"status_not-started": string;
|
|
7
|
+
status_waiting: string;
|
|
8
|
+
status_running: string;
|
|
9
|
+
status_completed: string;
|
|
10
|
+
status_failed: string;
|
|
11
|
+
status_aborted: string;
|
|
12
|
+
};
|
|
13
|
+
ru: {
|
|
14
|
+
tab_graph: string;
|
|
15
|
+
tab_timeline: string;
|
|
16
|
+
"context_timeline-unavailable": string;
|
|
17
|
+
"status_not-started": string;
|
|
18
|
+
status_waiting: string;
|
|
19
|
+
status_running: string;
|
|
20
|
+
status_completed: string;
|
|
21
|
+
status_failed: string;
|
|
22
|
+
status_aborted: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["en","ru"],"sources":["dicts.ts"],"sourcesContent":["import en from './en.json';\nimport ru from './ru.json';\n\nexport default {en, ru};\n"],"mappings":"AAAA,OAAOA,EAAE;AACT,OAAOC,EAAE;AAET,eAAe;EAACD,EAAE,EAAFA,EAAE;EAAEC,EAAE,EAAFA;AAAE,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tab_graph": "Graph",
|
|
3
|
+
"tab_timeline": "Timeline",
|
|
4
|
+
"context_timeline-unavailable": "Timeline is not available yet",
|
|
5
|
+
"status_not-started": "Not started",
|
|
6
|
+
"status_waiting": "Waiting",
|
|
7
|
+
"status_running": "Running",
|
|
8
|
+
"status_completed": "Completed",
|
|
9
|
+
"status_failed": "Failed",
|
|
10
|
+
"status_aborted": "Aborted"
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: ((key: "status_running" | "status_completed" | "status_failed" | "status_aborted" | "tab_graph" | "tab_timeline" | "context_timeline-unavailable" | "status_not-started" | "status_waiting", params?: import("@gravity-ui/i18n").Params) => string) & {
|
|
2
|
+
keysetData: {
|
|
3
|
+
"qp:query-progress": Record<"status_running" | "status_completed" | "status_failed" | "status_aborted" | "tab_graph" | "tab_timeline" | "context_timeline-unavailable" | "status_not-started" | "status_waiting", import("@gravity-ui/i18n").KeyData>;
|
|
4
|
+
};
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["addI18Keysets","dicts"],"sources":["index.ts"],"sourcesContent":["import {addI18Keysets} from '../../../i18n';\nimport dicts from './dicts';\n\nexport default addI18Keysets('qp:query-progress', dicts);\n"],"mappings":"AAAA,SAAQA,aAAa;AACrB,OAAOC,KAAK;AAEZ,eAAeD,aAAa,CAAC,mBAAmB,EAAEC,KAAK,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tab_graph": "Граф",
|
|
3
|
+
"tab_timeline": "Таймлайн",
|
|
4
|
+
"context_timeline-unavailable": "Таймлайн пока недоступен",
|
|
5
|
+
"status_not-started": "Не запущено",
|
|
6
|
+
"status_waiting": "Ожидание",
|
|
7
|
+
"status_running": "Выполняется",
|
|
8
|
+
"status_completed": "Завершено",
|
|
9
|
+
"status_failed": "Ошибка",
|
|
10
|
+
"status_aborted": "Прервано"
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["QueryProgress"],"sources":["index.ts"],"sourcesContent":["export {QueryProgress} from './QueryProgress';\nexport type {QueryProgressProps, QueryProgressView} from '../../types/queryGraph';\n"],"mappings":"AAAA,SAAQA,aAAa","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default: ((key: "action_collapse-all" | "action_collapse-group" | "action_expand-all" | "action_expand-group" | "field_avg" | "
|
|
1
|
+
declare const _default: ((key: "field_count" | "action_collapse-all" | "action_collapse-group" | "action_expand-all" | "action_expand-group" | "field_avg" | "field_description" | "field_last" | "field_max" | "field_metric" | "field_min" | "field_search" | "field_sum" | "field_unit", params?: import("@gravity-ui/i18n").Params) => string) & {
|
|
2
2
|
keysetData: {
|
|
3
|
-
"qp:query-statistics": Record<"action_collapse-all" | "action_collapse-group" | "action_expand-all" | "action_expand-group" | "field_avg" | "
|
|
3
|
+
"qp:query-statistics": Record<"field_count" | "action_collapse-all" | "action_collapse-group" | "action_expand-all" | "action_expand-group" | "field_avg" | "field_description" | "field_last" | "field_max" | "field_metric" | "field_min" | "field_search" | "field_sum" | "field_unit", import("@gravity-ui/i18n").KeyData>;
|
|
4
4
|
};
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
@@ -3,7 +3,8 @@ import "core-js/modules/es.array.includes.js";
|
|
|
3
3
|
import "core-js/modules/es.string.includes.js";
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import cn from 'bem-cn-lite';
|
|
6
|
-
import { EmptyContent
|
|
6
|
+
import { EmptyContent } from "../../components/EmptyContent";
|
|
7
|
+
import { LazyList } from "../../components/LazyList";
|
|
7
8
|
import { prepareRowData } from "./helpers/prepareRowData";
|
|
8
9
|
import { SEARCH_ROW_HEIGHT } from "../../constants/row";
|
|
9
10
|
import "./RowsList.css";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","cn","EmptyContent","LazyList","prepareRowData","SEARCH_ROW_HEIGHT","jsx","_jsx","block","RowsList","_ref","items","selectedRowId","_ref$rowVariant","rowVariant","visibleFields","editing","comparison","getRowActions","renderRow","showFiltersHint","hasMore","loading","onLoadMore","renderLink","className","onItemClick","getItemHeight","item","height","selectedItemIndex","undefined","findIndex","id","handleItemClick","index","enabled","selected","comparedRowIds","includes","onChange","itemHeight","renderItem","isActive","variant","emptyContent"],"sources":["RowsList.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'bem-cn-lite';\nimport {\n QueryListComparisonConfig,\n QueryListEditingConfig,\n QueryListItem,\n QueryListLinkRenderer,\n QueryListRow,\n QueryListRowAction,\n QueryListRowRenderData,\n QueryListRowVariant,\n QueryListVisibleFieldsConfig,\n} from '../../types/queryList';\nimport {EmptyContent
|
|
1
|
+
{"version":3,"names":["React","cn","EmptyContent","LazyList","prepareRowData","SEARCH_ROW_HEIGHT","jsx","_jsx","block","RowsList","_ref","items","selectedRowId","_ref$rowVariant","rowVariant","visibleFields","editing","comparison","getRowActions","renderRow","showFiltersHint","hasMore","loading","onLoadMore","renderLink","className","onItemClick","getItemHeight","item","height","selectedItemIndex","undefined","findIndex","id","handleItemClick","index","enabled","selected","comparedRowIds","includes","onChange","itemHeight","renderItem","isActive","variant","emptyContent"],"sources":["RowsList.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'bem-cn-lite';\nimport {\n QueryListComparisonConfig,\n QueryListEditingConfig,\n QueryListItem,\n QueryListLinkRenderer,\n QueryListRow,\n QueryListRowAction,\n QueryListRowRenderData,\n QueryListRowVariant,\n QueryListVisibleFieldsConfig,\n} from '../../types/queryList';\nimport {EmptyContent} from '../../components/EmptyContent';\nimport {LazyList} from '../../components/LazyList';\nimport {prepareRowData} from './helpers/prepareRowData';\nimport {SEARCH_ROW_HEIGHT} from '../../constants/row';\nimport './RowsList.scss';\n\nconst block = cn('qp-rows-list');\n\nexport type RowsListProps<T extends QueryListRow> = {\n items: QueryListItem<T>[];\n selectedRowId?: T['id'];\n rowVariant?: QueryListRowVariant;\n visibleFields?: QueryListVisibleFieldsConfig<T>;\n editing?: QueryListEditingConfig<T>;\n comparison?: QueryListComparisonConfig<T>;\n getRowActions?: (item: T) => QueryListRowAction<T>[];\n renderRow: (data: QueryListRowRenderData<T>) => React.ReactNode;\n showFiltersHint?: boolean;\n hasMore?: boolean;\n loading?: boolean;\n onLoadMore?: () => void;\n renderLink?: QueryListLinkRenderer;\n className?: string;\n onItemClick?: (item: QueryListItem<T>, index: number) => void;\n};\n\nexport const RowsList = <T extends QueryListRow>({\n items,\n selectedRowId,\n rowVariant = 'default',\n visibleFields,\n editing,\n comparison,\n getRowActions,\n renderRow,\n showFiltersHint,\n hasMore,\n loading,\n onLoadMore,\n renderLink,\n className,\n onItemClick,\n}: RowsListProps<T>) => {\n const getItemHeight = (item: QueryListItem<T>) =>\n rowVariant === 'search' && !('header' in item) ? SEARCH_ROW_HEIGHT : item.height;\n const selectedItemIndex =\n selectedRowId === undefined\n ? undefined\n : items.findIndex((item) => !('header' in item) && item.id === selectedRowId);\n\n const handleItemClick = (item: QueryListItem<T>, index: number) => {\n if ('header' in item || !comparison?.enabled) {\n onItemClick?.(item, index);\n return;\n }\n\n const selected = comparison.comparedRowIds.includes(item.id);\n comparison.onChange(item, !selected);\n };\n\n return (\n <LazyList<QueryListItem<T>>\n className={block(null, className)}\n items={items}\n itemHeight={getItemHeight}\n renderItem={(item, isActive, index) =>\n renderRow(\n prepareRowData({\n item,\n isActive,\n index,\n variant: rowVariant,\n visibleFields,\n editing,\n comparison,\n getRowActions,\n renderLink,\n }),\n )\n }\n selectedItemIndex={selectedItemIndex}\n hasMore={hasMore}\n loading={loading}\n onLoadMore={onLoadMore}\n emptyContent={\n <EmptyContent\n variant={showFiltersHint ? 'nothing-found' : 'no-files'}\n className={className}\n />\n }\n onItemClick={handleItemClick}\n />\n );\n};\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,EAAE,MAAM,aAAa;AAY5B,SAAQC,YAAY;AACpB,SAAQC,QAAQ;AAChB,SAAQC,cAAc;AACtB,SAAQC,iBAAiB;AACzB;AAAyB,SAAAC,GAAA,IAAAC,IAAA;AAEzB,IAAMC,KAAK,GAAGP,EAAE,CAAC,cAAc,CAAC;AAoBhC,OAAO,IAAMQ,QAAQ,GAAG,SAAXA,QAAQA,CAAAC,IAAA,EAgBG;EAAA,IAfpBC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,aAAa,GAAAF,IAAA,CAAbE,aAAa;IAAAC,eAAA,GAAAH,IAAA,CACbI,UAAU;IAAVA,UAAU,GAAAD,eAAA,cAAG,SAAS,GAAAA,eAAA;IACtBE,aAAa,GAAAL,IAAA,CAAbK,aAAa;IACbC,OAAO,GAAAN,IAAA,CAAPM,OAAO;IACPC,UAAU,GAAAP,IAAA,CAAVO,UAAU;IACV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EAAEiB,SAAS,CAAE;IAClCd,KAAK,EAAEA,KAAM;IACb8B,UAAU,EAAEd,aAAc;IAC1Be,UAAU,EAAE,SAAZA,UAAUA,CAAGd,IAAI,EAAEe,QAAQ,EAAER,KAAK;MAAA,OAC9BhB,SAAS,CACLf,cAAc,CAAC;QACXwB,IAAI,EAAJA,IAAI;QACJe,QAAQ,EAARA,QAAQ;QACRR,KAAK,EAALA,KAAK;QACLS,OAAO,EAAE9B,UAAU;QACnBC,aAAa,EAAbA,aAAa;QACbC,OAAO,EAAPA,OAAO;QACPC,UAAU,EAAVA,UAAU;QACVC,aAAa,EAAbA,aAAa;QACbM,UAAU,EAAVA;MACJ,CAAC,CACL,CAAC;IAAA,CACJ;IACDM,iBAAiB,EAAEA,iBAAkB;IACrCT,OAAO,EAAEA,OAAQ;IACjBC,OAAO,EAAEA,OAAQ;IACjBC,UAAU,EAAEA,UAAW;IACvBsB,YAAY,eACRtC,IAAA,CAACL,YAAY;MACT0C,OAAO,EAAExB,eAAe,GAAG,eAAe,GAAG,UAAW;MACxDK,SAAS,EAAEA;IAAU,CACxB,CACJ;IACDC,WAAW,EAAEQ;EAAgB,CAChC,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { QueryListRowRenderData } from '../../types/queryList';
|
|
3
|
-
import { SavedQuery } from '../../types/savedQueries';
|
|
2
|
+
import type { QueryListRowRenderData } from '../../types/queryList';
|
|
3
|
+
import type { SavedQuery } from '../../types/savedQueries';
|
|
4
4
|
import './SavedQueryRow.scss';
|
|
5
5
|
export type SavedQueryRowProps<T extends SavedQuery = SavedQuery> = {
|
|
6
6
|
item: T;
|
|
@@ -3,7 +3,9 @@ import "core-js/modules/es.string.includes.js";
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Avatar, Flex, Text } from '@gravity-ui/uikit';
|
|
5
5
|
import cn from 'bem-cn-lite';
|
|
6
|
-
import { EditableRowTitle
|
|
6
|
+
import { EditableRowTitle } from "../../components/EditableRowTitle";
|
|
7
|
+
import { RowActionsMenu } from "../../components/RowActionsMenu";
|
|
8
|
+
import { RowLink } from "../../components/RowLink";
|
|
7
9
|
import { formatDateCanonical } from "../../helpers/time";
|
|
8
10
|
import "./SavedQueryRow.css";
|
|
9
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Avatar","Flex","Text","cn","EditableRowTitle","RowActionsMenu","RowLink","formatDateCanonical","jsx","_jsx","jsxs","_jsxs","block","SavedQueryRow","_ref","_renderAuthor","item","actions","isActive","comparison","editing","visibleFields","renderAuthor","author","engine","href","savedAt","isEditing","Boolean","enabled","isComparisonMode","isChecked","checked","showMenu","length","isFieldVisible","field","undefined","value","includes","authorContent","size","text","title","disabled","className","compared","children","direction","gap","justifyContent","alignItems","color"],"sources":["SavedQueryRow.tsx"],"sourcesContent":["import React from 'react';\nimport {Avatar, Flex, Text} from '@gravity-ui/uikit';\nimport cn from 'bem-cn-lite';\nimport {EditableRowTitle
|
|
1
|
+
{"version":3,"names":["React","Avatar","Flex","Text","cn","EditableRowTitle","RowActionsMenu","RowLink","formatDateCanonical","jsx","_jsx","jsxs","_jsxs","block","SavedQueryRow","_ref","_renderAuthor","item","actions","isActive","comparison","editing","visibleFields","renderAuthor","author","engine","href","savedAt","isEditing","Boolean","enabled","isComparisonMode","isChecked","checked","showMenu","length","isFieldVisible","field","undefined","value","includes","authorContent","size","text","title","disabled","className","compared","children","direction","gap","justifyContent","alignItems","color"],"sources":["SavedQueryRow.tsx"],"sourcesContent":["import React from 'react';\nimport {Avatar, Flex, Text} from '@gravity-ui/uikit';\nimport cn from 'bem-cn-lite';\nimport {EditableRowTitle} from '../../components/EditableRowTitle';\nimport {RowActionsMenu} from '../../components/RowActionsMenu';\nimport {RowLink} from '../../components/RowLink';\nimport {formatDateCanonical} from '../../helpers/time';\nimport type {QueryListRowRenderData} from '../../types/queryList';\nimport type {SavedQuery} from '../../types/savedQueries';\nimport './SavedQueryRow.scss';\n\nconst block = cn('qp-saved-query-row');\n\nexport type SavedQueryRowProps<T extends SavedQuery = SavedQuery> = {\n item: T;\n renderAuthor?: (item: T) => React.ReactNode;\n} & Omit<QueryListRowRenderData<T>, 'item' | 'variant'>;\n\nexport const SavedQueryRow = <T extends SavedQuery>({\n item,\n actions,\n isActive,\n comparison,\n editing,\n visibleFields,\n renderAuthor,\n}: SavedQueryRowProps<T>) => {\n const {author, engine, href, savedAt} = item;\n const isEditing = Boolean(editing?.enabled);\n const isComparisonMode = Boolean(comparison?.enabled);\n const isChecked = Boolean(comparison?.checked);\n const showMenu = isActive && Boolean(actions?.length) && !isComparisonMode;\n const isFieldVisible = (field: string) =>\n visibleFields === undefined || (visibleFields.value as string[]).includes(field);\n const authorContent =\n renderAuthor?.(item) ??\n (author ? <Avatar size=\"3xs\" text={author} title={author} /> : null);\n\n return (\n <RowLink\n href={href}\n disabled={isEditing || isComparisonMode}\n className={block({compared: isChecked})}\n >\n <Flex direction=\"column\" gap={1} className={block('content')}>\n <Flex justifyContent=\"space-between\" className={block('header')}>\n <EditableRowTitle item={item} editing={editing} />\n {showMenu && <RowActionsMenu item={item} actions={actions} />}\n </Flex>\n <Flex gap={2} alignItems=\"center\" className={block('metadata')}>\n {isFieldVisible('savedAt') && savedAt && (\n <Text color=\"complementary\">{formatDateCanonical(savedAt)}</Text>\n )}\n {isFieldVisible('engine') && engine && (\n <Text color=\"complementary\">{engine}</Text>\n )}\n {isFieldVisible('author') && authorContent}\n </Flex>\n </Flex>\n </RowLink>\n );\n};\n"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,MAAM,EAAEC,IAAI,EAAEC,IAAI,QAAO,mBAAmB;AACpD,OAAOC,EAAE,MAAM,aAAa;AAC5B,SAAQC,gBAAgB;AACxB,SAAQC,cAAc;AACtB,SAAQC,OAAO;AACf,SAAQC,mBAA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AAQ,CAAC,IAAIX,MAAM,iBAC/Bf,IAAA,CAACP,IAAI;UAACkD,KAAK,EAAC,eAAe;UAAAL,QAAA,EAAEvB;QAAM,CAAO,CAC7C,EACAW,cAAc,CAAC,QAAQ,CAAC,IAAIK,aAAa;MAAA,CACxC,CAAC;IAAA,CACL;EAAC,CACF,CAAC;AAElB,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { QueryListRowRenderData } from '../../types/queryList';
|
|
3
|
-
import { SavedQuery } from '../../types/savedQueries';
|
|
2
|
+
import type { QueryListRowRenderData } from '../../types/queryList';
|
|
3
|
+
import type { SavedQuery } from '../../types/savedQueries';
|
|
4
4
|
import './SavedQuerySearchRow.scss';
|
|
5
5
|
export type SavedQuerySearchRowProps<T extends SavedQuery = SavedQuery> = {
|
|
6
6
|
item: T;
|
|
@@ -3,7 +3,8 @@ import "core-js/modules/es.string.includes.js";
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Avatar, Flex, Text } from '@gravity-ui/uikit';
|
|
5
5
|
import cn from 'bem-cn-lite';
|
|
6
|
-
import { MonacoLanguage
|
|
6
|
+
import { MonacoLanguage } from "../../components/MonacoEditor";
|
|
7
|
+
import { SearchRowLayout } from "../../components/SearchRowLayout";
|
|
7
8
|
import { formatDateCanonical } from "../../helpers/time";
|
|
8
9
|
import "./SavedQuerySearchRow.css";
|
|
9
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Avatar","Flex","Text","cn","MonacoLanguage","SearchRowLayout","formatDateCanonical","jsx","_jsx","jsxs","_jsxs","block","SavedQuerySearchRow","_ref","_renderAuthor","item","comparison","editing","visibleFields","renderAuthor","author","engine","href","query","savedAt","authorContent","size","text","title","isFieldVisible","field","undefined","value","includes","language","YQL","disabled","Boolean","enabled","className","header","gap","alignItems","children","variant","ellipsis","color"],"sources":["SavedQuerySearchRow.tsx"],"sourcesContent":["import React from 'react';\nimport {Avatar, Flex, Text} from '@gravity-ui/uikit';\nimport cn from 'bem-cn-lite';\nimport {MonacoLanguage
|
|
1
|
+
{"version":3,"names":["React","Avatar","Flex","Text","cn","MonacoLanguage","SearchRowLayout","formatDateCanonical","jsx","_jsx","jsxs","_jsxs","block","SavedQuerySearchRow","_ref","_renderAuthor","item","comparison","editing","visibleFields","renderAuthor","author","engine","href","query","savedAt","authorContent","size","text","title","isFieldVisible","field","undefined","value","includes","language","YQL","disabled","Boolean","enabled","className","header","gap","alignItems","children","variant","ellipsis","color"],"sources":["SavedQuerySearchRow.tsx"],"sourcesContent":["import React from 'react';\nimport {Avatar, Flex, Text} from '@gravity-ui/uikit';\nimport cn from 'bem-cn-lite';\nimport {MonacoLanguage} from '../../components/MonacoEditor';\nimport {SearchRowLayout} from '../../components/SearchRowLayout';\nimport {formatDateCanonical} from '../../helpers/time';\nimport type {QueryListRowRenderData} from '../../types/queryList';\nimport type {SavedQuery} from '../../types/savedQueries';\nimport './SavedQuerySearchRow.scss';\n\nconst block = cn('qp-saved-query-search-row');\n\nexport type SavedQuerySearchRowProps<T extends SavedQuery = SavedQuery> = {\n item: T;\n renderAuthor?: (item: T) => React.ReactNode;\n} & Omit<QueryListRowRenderData<T>, 'item' | 'variant'>;\n\nexport const SavedQuerySearchRow = <T extends SavedQuery>({\n item,\n comparison,\n editing,\n visibleFields,\n renderAuthor,\n}: SavedQuerySearchRowProps<T>) => {\n const {author, engine, href, query, savedAt} = item;\n const authorContent =\n renderAuthor?.(item) ??\n (author ? <Avatar size=\"3xs\" text={author} title={author} /> : null);\n const isFieldVisible = (field: string) =>\n visibleFields === undefined || (visibleFields.value as string[]).includes(field);\n\n return (\n <SearchRowLayout\n query={query}\n language={MonacoLanguage.YQL}\n href={href}\n disabled={Boolean(editing?.enabled) || Boolean(comparison?.enabled)}\n className={block()}\n header={\n <Flex gap={2} alignItems=\"center\" className={block('header')}>\n <Text variant=\"subheader-1\" ellipsis className={block('title')}>\n {item.title}\n </Text>\n {isFieldVisible('savedAt') && savedAt && (\n <Text color=\"complementary\" className={block('fixed-metadata')}>\n {formatDateCanonical(savedAt)}\n </Text>\n )}\n {isFieldVisible('engine') && engine && (\n <Text color=\"complementary\" className={block('fixed-metadata')}>\n {engine}\n </Text>\n )}\n {isFieldVisible('author') && authorContent}\n </Flex>\n }\n />\n );\n};\n"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,MAAM,EAAEC,IAAI,EAAEC,IAAI,QAAO,mBAAmB;AACpD,OAAOC,EAAE,MAAM,aAAa;AAC5B,SAAQC,cAAc;AACtB,SAAQC,eAAe;AACvB,SAAQC,mBAAmB;AAG3B;AAAoC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEpC,IAAMC,KAAK,GAAGR,EAAE,CAAC,2BAA2B,CAAC;AAO7C,OAAO,IAAMS,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAC,IAAA,EAMG;EAAA,IAAAC,aAAA;EAAA,IAL/BC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,UAAU,GAAAH,IAAA,CAAVG,UAAU;IACVC,OAAO,GAAAJ,IAAA,CAAPI,OAAO;IACPC,aAAa,GAAAL,IAAA,CAAbK,aAAa;IACbC,YAAY,GAAAN,IAAA,CAAZM,YAAY;EAEZ,IAAOC,MAAM,GAAkCL,IAAI,CAA5CK,MAAM;IAAEC,MAAM,GAA0BN,IAAI,CAApCM,MAAM;IAAEC,IAAI,GAAoBP,IAAI,CAA5BO,IAAI;IAAEC,KAAK,GAAaR,IAAI,CAAtBQ,KAAK;IAAEC,OAAO,GAAIT,IAAI,CAAfS,OAAO;EAC3C,IAAMC,aAAa,IAAAX,aAAA,GACfK,YAAY,aAAZA,YAAY,uBAAZA,YAAY,CAAGJ,IAAI,CAAC,cAAAD,aAAA,cAAAA,aAAA,GACnBM,MAAM,gBAAGZ,IA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,EAAE5B,KAAK,CAAC,gBAAgB,CAAE;QAAAgC,QAAA,EAC1DtB;MAAM,CACL,CACT,EACAQ,cAAc,CAAC,QAAQ,CAAC,IAAIJ,aAAa;IAAA,CACxC;EACT,CACJ,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { QueryListLinkRenderer } from '../../types/queryList';
|
|
3
|
+
import type { TutorialHistoryRow } from '../../types/tutorial';
|
|
3
4
|
import './TutorialRow.scss';
|
|
4
5
|
export type TutorialRowProps<T extends TutorialHistoryRow = TutorialHistoryRow> = {
|
|
5
6
|
item: T;
|
|
7
|
+
renderLink?: QueryListLinkRenderer;
|
|
6
8
|
};
|
|
7
|
-
export declare const TutorialRow: <T extends TutorialHistoryRow>({ item }: TutorialRowProps<T>) => React.JSX.Element;
|
|
9
|
+
export declare const TutorialRow: <T extends TutorialHistoryRow>({ item, renderLink, }: TutorialRowProps<T>) => React.JSX.Element;
|