@gravity-ui/querieskit 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/build/cjs/components/EditableRowTitle/EditableRowTitle.d.ts +7 -0
- package/build/cjs/{modules/HistoryRow/HistoryRowTitle.js → components/EditableRowTitle/EditableRowTitle.js} +4 -6
- package/build/cjs/components/EditableRowTitle/EditableRowTitle.js.map +1 -0
- package/build/cjs/components/EditableRowTitle/index.d.ts +2 -0
- package/build/cjs/components/EditableRowTitle/index.js +13 -0
- package/build/cjs/components/EditableRowTitle/index.js.map +1 -0
- package/build/cjs/components/HistoryFilter/HistoryFilter.d.ts +2 -2
- package/build/cjs/components/HistoryFilter/HistoryFilter.js.map +1 -1
- package/build/cjs/components/LazyList/LazyList.css +0 -2
- package/build/cjs/components/LazyList/LazyList.css.map +1 -1
- package/build/cjs/components/RowActionsMenu/RowActionsMenu.d.ts +7 -0
- package/build/cjs/{modules/HistoryRow/HistoryRowMenu.js → components/RowActionsMenu/RowActionsMenu.js} +9 -6
- package/build/cjs/components/RowActionsMenu/RowActionsMenu.js.map +1 -0
- package/build/cjs/components/RowActionsMenu/index.d.ts +2 -0
- package/build/cjs/components/RowActionsMenu/index.js +13 -0
- package/build/cjs/components/RowActionsMenu/index.js.map +1 -0
- package/build/cjs/components/index.d.ts +4 -0
- package/build/cjs/components/index.js +16 -0
- package/build/cjs/components/index.js.map +1 -1
- package/build/cjs/helpers/getListKey.d.ts +2 -2
- package/build/cjs/helpers/getListKey.js.map +1 -1
- package/build/cjs/helpers/isFieldVisible.d.ts +5 -4
- package/build/cjs/helpers/isFieldVisible.js +2 -2
- package/build/cjs/helpers/isFieldVisible.js.map +1 -1
- package/build/cjs/helpers/time.d.ts +1 -0
- package/build/cjs/helpers/time.js +7 -3
- package/build/cjs/helpers/time.js.map +1 -1
- package/build/cjs/index.d.ts +2 -0
- package/build/cjs/index.js +11 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/modules/HistoryComparisonActions/HistoryComparisonActions.css +5 -0
- package/build/cjs/modules/HistoryComparisonActions/HistoryComparisonActions.css.map +1 -0
- package/build/cjs/modules/HistoryComparisonActions/HistoryComparisonActions.d.ts +8 -0
- package/build/cjs/{widgets/QueriesHistory/ComparisonActions.js → modules/HistoryComparisonActions/HistoryComparisonActions.js} +11 -11
- package/build/cjs/modules/HistoryComparisonActions/HistoryComparisonActions.js.map +1 -0
- package/build/cjs/modules/HistoryComparisonActions/index.d.ts +2 -0
- package/build/cjs/modules/HistoryComparisonActions/index.js +13 -0
- package/build/cjs/modules/HistoryComparisonActions/index.js.map +1 -0
- package/build/cjs/modules/HistoryHeader/HistoryHeader.d.ts +2 -2
- package/build/cjs/modules/HistoryHeader/HistoryHeader.js.map +1 -1
- package/build/cjs/modules/HistoryRow/HistoryRow.d.ts +3 -2
- package/build/cjs/modules/HistoryRow/HistoryRow.js +2 -4
- package/build/cjs/modules/HistoryRow/HistoryRow.js.map +1 -1
- package/build/cjs/modules/HistoryRow/HistoryRow.stories.js.map +1 -1
- package/build/cjs/modules/HistorySearchRow/HistorySearchRow.d.ts +3 -2
- package/build/cjs/modules/HistorySearchRow/HistorySearchRow.js.map +1 -1
- package/build/cjs/modules/NavigationItemsList/internal/NavigationItemsListHeader.js +1 -7
- package/build/cjs/modules/NavigationItemsList/internal/NavigationItemsListHeader.js.map +1 -1
- package/build/cjs/modules/QueriesList/QueriesList.css +10 -0
- package/build/cjs/modules/QueriesList/QueriesList.css.map +1 -0
- package/build/cjs/modules/QueriesList/QueriesList.d.ts +19 -0
- package/build/cjs/modules/QueriesList/QueriesList.js +75 -0
- package/build/cjs/modules/QueriesList/QueriesList.js.map +1 -0
- package/build/cjs/modules/QueriesList/index.d.ts +2 -0
- package/build/cjs/modules/QueriesList/index.js +13 -0
- package/build/cjs/modules/QueriesList/index.js.map +1 -0
- package/build/cjs/modules/RowsList/RowsList.d.ts +11 -11
- package/build/cjs/modules/RowsList/RowsList.js +5 -1
- package/build/cjs/modules/RowsList/RowsList.js.map +1 -1
- package/build/cjs/modules/RowsList/helpers/prepareRowData.d.ts +9 -9
- package/build/cjs/modules/RowsList/helpers/prepareRowData.js.map +1 -1
- package/build/cjs/modules/SavedQueryRow/SavedQueryRow.css +17 -0
- package/build/cjs/modules/SavedQueryRow/SavedQueryRow.css.map +1 -0
- package/build/cjs/modules/SavedQueryRow/SavedQueryRow.d.ts +9 -0
- package/build/cjs/modules/SavedQueryRow/SavedQueryRow.js +78 -0
- package/build/cjs/modules/SavedQueryRow/SavedQueryRow.js.map +1 -0
- package/build/cjs/modules/SavedQueryRow/index.d.ts +2 -0
- package/build/cjs/modules/SavedQueryRow/index.js +13 -0
- package/build/cjs/modules/SavedQueryRow/index.js.map +1 -0
- package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.css +12 -0
- package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.css.map +1 -0
- package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.d.ts +9 -0
- package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.js +65 -0
- package/build/cjs/modules/SavedQuerySearchRow/SavedQuerySearchRow.js.map +1 -0
- package/build/cjs/modules/SavedQuerySearchRow/index.d.ts +2 -0
- package/build/cjs/modules/SavedQuerySearchRow/index.js +13 -0
- package/build/cjs/modules/SavedQuerySearchRow/index.js.map +1 -0
- package/build/cjs/modules/index.d.ts +8 -2
- package/build/cjs/modules/index.js +32 -8
- package/build/cjs/modules/index.js.map +1 -1
- package/build/cjs/types/history.d.ts +4 -85
- package/build/cjs/types/history.js.map +1 -1
- package/build/cjs/types/queryList.d.ts +83 -0
- package/build/cjs/types/queryList.js +6 -0
- package/build/cjs/types/queryList.js.map +1 -0
- package/build/cjs/types/savedQueries.d.ts +6 -0
- package/build/cjs/types/savedQueries.js +6 -0
- package/build/cjs/types/savedQueries.js.map +1 -0
- package/build/cjs/types/tutorial.d.ts +2 -2
- package/build/cjs/types/tutorial.js.map +1 -1
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.css +0 -6
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.css.map +1 -1
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.d.ts +11 -10
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.js +15 -34
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.js.map +1 -1
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.stories.js.map +1 -1
- package/build/cjs/widgets/QueriesHistory/internal/HistoryRowContent.d.ts +4 -0
- package/build/cjs/{modules/HistoryList → widgets/QueriesHistory/internal}/HistoryRowContent.js +4 -5
- package/build/cjs/widgets/QueriesHistory/internal/HistoryRowContent.js.map +1 -0
- package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.css +3 -0
- package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.css.map +1 -1
- package/build/cjs/widgets/SavedQueries/SavedQueries.css +4 -0
- package/build/cjs/widgets/SavedQueries/SavedQueries.css.map +1 -0
- package/build/cjs/widgets/SavedQueries/SavedQueries.d.ts +21 -0
- package/build/cjs/widgets/SavedQueries/SavedQueries.js +58 -0
- package/build/cjs/widgets/SavedQueries/SavedQueries.js.map +1 -0
- package/build/cjs/widgets/SavedQueries/SavedQueries.stories.d.ts +8 -0
- package/build/cjs/widgets/SavedQueries/SavedQueries.stories.js +286 -0
- package/build/cjs/widgets/SavedQueries/SavedQueries.stories.js.map +1 -0
- package/build/cjs/widgets/SavedQueries/SavedQueryRowContent.d.ts +8 -0
- package/build/cjs/widgets/SavedQueries/SavedQueryRowContent.js +33 -0
- package/build/cjs/widgets/SavedQueries/SavedQueryRowContent.js.map +1 -0
- package/build/cjs/widgets/SavedQueries/i18n/dicts.d.ts +9 -0
- package/build/cjs/widgets/SavedQueries/i18n/dicts.js +14 -0
- package/build/cjs/widgets/SavedQueries/i18n/dicts.js.map +1 -0
- package/build/cjs/widgets/SavedQueries/i18n/en.json +3 -0
- package/build/cjs/widgets/SavedQueries/i18n/index.d.ts +6 -0
- package/build/cjs/widgets/SavedQueries/i18n/index.js +11 -0
- package/build/cjs/widgets/SavedQueries/i18n/index.js.map +1 -0
- package/build/cjs/widgets/SavedQueries/i18n/ru.json +3 -0
- package/build/cjs/widgets/SavedQueries/index.d.ts +2 -0
- package/build/cjs/widgets/SavedQueries/index.js +13 -0
- package/build/cjs/widgets/SavedQueries/index.js.map +1 -0
- package/build/cjs/widgets/TutorialsHistory/TutorialRowContent.d.ts +2 -2
- package/build/cjs/widgets/TutorialsHistory/TutorialRowContent.js.map +1 -1
- package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.d.ts +5 -5
- package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.js.map +1 -1
- package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.stories.js.map +1 -1
- package/build/cjs/widgets/index.d.ts +2 -0
- package/build/cjs/widgets/index.js +7 -0
- package/build/cjs/widgets/index.js.map +1 -1
- package/build/esm/components/EditableRowTitle/EditableRowTitle.d.ts +7 -0
- package/build/esm/{modules/HistoryRow/HistoryRowTitle.js → components/EditableRowTitle/EditableRowTitle.js} +4 -6
- package/build/esm/components/EditableRowTitle/EditableRowTitle.js.map +1 -0
- package/build/esm/components/EditableRowTitle/index.d.ts +2 -0
- package/build/esm/components/EditableRowTitle/index.js +2 -0
- package/build/esm/components/EditableRowTitle/index.js.map +1 -0
- package/build/esm/components/HistoryFilter/HistoryFilter.d.ts +2 -2
- package/build/esm/components/HistoryFilter/HistoryFilter.js.map +1 -1
- package/build/esm/components/LazyList/LazyList.css +0 -2
- package/build/esm/components/LazyList/LazyList.css.map +1 -1
- package/build/esm/components/LazyList/LazyList.scss +6 -6
- package/build/esm/components/RowActionsMenu/RowActionsMenu.d.ts +7 -0
- package/build/esm/{modules/HistoryRow/HistoryRowMenu.js → components/RowActionsMenu/RowActionsMenu.js} +8 -5
- package/build/esm/components/RowActionsMenu/RowActionsMenu.js.map +1 -0
- package/build/esm/components/RowActionsMenu/index.d.ts +2 -0
- package/build/esm/components/RowActionsMenu/index.js +2 -0
- package/build/esm/components/RowActionsMenu/index.js.map +1 -0
- package/build/esm/components/index.d.ts +4 -0
- package/build/esm/components/index.js +2 -0
- package/build/esm/components/index.js.map +1 -1
- package/build/esm/helpers/getListKey.d.ts +2 -2
- package/build/esm/helpers/getListKey.js.map +1 -1
- package/build/esm/helpers/isFieldVisible.d.ts +5 -4
- package/build/esm/helpers/isFieldVisible.js +2 -2
- package/build/esm/helpers/isFieldVisible.js.map +1 -1
- package/build/esm/helpers/time.d.ts +1 -0
- package/build/esm/helpers/time.js +6 -2
- package/build/esm/helpers/time.js.map +1 -1
- package/build/esm/index.d.ts +2 -0
- package/build/esm/index.js +2 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/modules/HistoryComparisonActions/HistoryComparisonActions.css +5 -0
- package/build/esm/modules/HistoryComparisonActions/HistoryComparisonActions.css.map +1 -0
- package/build/esm/modules/HistoryComparisonActions/HistoryComparisonActions.d.ts +8 -0
- package/build/esm/{widgets/QueriesHistory/ComparisonActions.js → modules/HistoryComparisonActions/HistoryComparisonActions.js} +10 -10
- package/build/esm/modules/HistoryComparisonActions/HistoryComparisonActions.js.map +1 -0
- package/build/esm/{widgets/QueriesHistory/ComparisonActions.scss → modules/HistoryComparisonActions/HistoryComparisonActions.scss} +2 -2
- package/build/esm/modules/HistoryComparisonActions/index.d.ts +2 -0
- package/build/esm/modules/HistoryComparisonActions/index.js +2 -0
- package/build/esm/modules/HistoryComparisonActions/index.js.map +1 -0
- package/build/esm/modules/HistoryHeader/HistoryHeader.d.ts +2 -2
- package/build/esm/modules/HistoryHeader/HistoryHeader.js.map +1 -1
- package/build/esm/modules/HistoryRow/HistoryRow.d.ts +3 -2
- package/build/esm/modules/HistoryRow/HistoryRow.js +3 -5
- package/build/esm/modules/HistoryRow/HistoryRow.js.map +1 -1
- package/build/esm/modules/HistoryRow/HistoryRow.stories.js.map +1 -1
- package/build/esm/modules/HistorySearchRow/HistorySearchRow.d.ts +3 -2
- package/build/esm/modules/HistorySearchRow/HistorySearchRow.js.map +1 -1
- package/build/esm/modules/NavigationItemsList/internal/NavigationItemsListHeader.js +1 -7
- package/build/esm/modules/NavigationItemsList/internal/NavigationItemsListHeader.js.map +1 -1
- package/build/esm/modules/QueriesList/QueriesList.css +10 -0
- package/build/esm/modules/QueriesList/QueriesList.css.map +1 -0
- package/build/esm/modules/QueriesList/QueriesList.d.ts +19 -0
- package/build/esm/modules/QueriesList/QueriesList.js +68 -0
- package/build/esm/modules/QueriesList/QueriesList.js.map +1 -0
- package/build/esm/modules/QueriesList/QueriesList.scss +10 -0
- package/build/esm/modules/QueriesList/index.d.ts +2 -0
- package/build/esm/modules/QueriesList/index.js +2 -0
- package/build/esm/modules/QueriesList/index.js.map +1 -0
- package/build/esm/modules/RowsList/RowsList.d.ts +11 -11
- package/build/esm/modules/RowsList/RowsList.js +5 -1
- package/build/esm/modules/RowsList/RowsList.js.map +1 -1
- package/build/esm/modules/RowsList/helpers/prepareRowData.d.ts +9 -9
- package/build/esm/modules/RowsList/helpers/prepareRowData.js.map +1 -1
- package/build/esm/modules/SavedQueryRow/SavedQueryRow.css +17 -0
- package/build/esm/modules/SavedQueryRow/SavedQueryRow.css.map +1 -0
- package/build/esm/modules/SavedQueryRow/SavedQueryRow.d.ts +9 -0
- package/build/esm/modules/SavedQueryRow/SavedQueryRow.js +71 -0
- package/build/esm/modules/SavedQueryRow/SavedQueryRow.js.map +1 -0
- package/build/esm/modules/SavedQueryRow/SavedQueryRow.scss +20 -0
- package/build/esm/modules/SavedQueryRow/index.d.ts +2 -0
- package/build/esm/modules/SavedQueryRow/index.js +2 -0
- package/build/esm/modules/SavedQueryRow/index.js.map +1 -0
- package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.css +12 -0
- package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.css.map +1 -0
- package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.d.ts +9 -0
- package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.js +58 -0
- package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.js.map +1 -0
- package/build/esm/modules/SavedQuerySearchRow/SavedQuerySearchRow.scss +15 -0
- package/build/esm/modules/SavedQuerySearchRow/index.d.ts +2 -0
- package/build/esm/modules/SavedQuerySearchRow/index.js +2 -0
- package/build/esm/modules/SavedQuerySearchRow/index.js.map +1 -0
- package/build/esm/modules/index.d.ts +8 -2
- package/build/esm/modules/index.js +4 -1
- package/build/esm/modules/index.js.map +1 -1
- package/build/esm/types/history.d.ts +4 -85
- package/build/esm/types/history.js.map +1 -1
- package/build/esm/types/queryList.d.ts +83 -0
- package/build/esm/types/queryList.js +2 -0
- package/build/esm/types/queryList.js.map +1 -0
- package/build/esm/types/savedQueries.d.ts +6 -0
- package/build/esm/types/savedQueries.js +2 -0
- package/build/esm/types/savedQueries.js.map +1 -0
- package/build/esm/types/tutorial.d.ts +2 -2
- package/build/esm/types/tutorial.js.map +1 -1
- package/build/esm/widgets/QueriesHistory/QueriesHistory.css +0 -6
- package/build/esm/widgets/QueriesHistory/QueriesHistory.css.map +1 -1
- package/build/esm/widgets/QueriesHistory/QueriesHistory.d.ts +11 -10
- package/build/esm/widgets/QueriesHistory/QueriesHistory.js +16 -35
- package/build/esm/widgets/QueriesHistory/QueriesHistory.js.map +1 -1
- package/build/esm/widgets/QueriesHistory/QueriesHistory.scss +1 -8
- package/build/esm/widgets/QueriesHistory/QueriesHistory.stories.js.map +1 -1
- package/build/esm/widgets/QueriesHistory/internal/HistoryRowContent.d.ts +4 -0
- package/build/esm/{modules/HistoryList → widgets/QueriesHistory/internal}/HistoryRowContent.js +2 -3
- package/build/esm/widgets/QueriesHistory/internal/HistoryRowContent.js.map +1 -0
- package/build/esm/widgets/QueriesNavigation/QueriesNavigation.css +3 -0
- package/build/esm/widgets/QueriesNavigation/QueriesNavigation.css.map +1 -1
- package/build/esm/widgets/QueriesNavigation/QueriesNavigation.scss +2 -0
- package/build/esm/widgets/SavedQueries/SavedQueries.css +4 -0
- package/build/esm/widgets/SavedQueries/SavedQueries.css.map +1 -0
- package/build/esm/widgets/SavedQueries/SavedQueries.d.ts +21 -0
- package/build/esm/widgets/SavedQueries/SavedQueries.js +51 -0
- package/build/esm/widgets/SavedQueries/SavedQueries.js.map +1 -0
- package/build/esm/widgets/SavedQueries/SavedQueries.scss +3 -0
- package/build/esm/widgets/SavedQueries/SavedQueries.stories.d.ts +8 -0
- package/build/esm/widgets/SavedQueries/SavedQueries.stories.js +278 -0
- package/build/esm/widgets/SavedQueries/SavedQueries.stories.js.map +1 -0
- package/build/esm/widgets/SavedQueries/SavedQueryRowContent.d.ts +8 -0
- package/build/esm/widgets/SavedQueries/SavedQueryRowContent.js +26 -0
- package/build/esm/widgets/SavedQueries/SavedQueryRowContent.js.map +1 -0
- package/build/esm/widgets/SavedQueries/i18n/dicts.d.ts +9 -0
- package/build/esm/widgets/SavedQueries/i18n/dicts.js +7 -0
- package/build/esm/widgets/SavedQueries/i18n/dicts.js.map +1 -0
- package/build/esm/widgets/SavedQueries/i18n/en.json +3 -0
- package/build/esm/widgets/SavedQueries/i18n/index.d.ts +6 -0
- package/build/esm/widgets/SavedQueries/i18n/index.js +4 -0
- package/build/esm/widgets/SavedQueries/i18n/index.js.map +1 -0
- package/build/esm/widgets/SavedQueries/i18n/ru.json +3 -0
- package/build/esm/widgets/SavedQueries/index.d.ts +2 -0
- package/build/esm/widgets/SavedQueries/index.js +2 -0
- package/build/esm/widgets/SavedQueries/index.js.map +1 -0
- package/build/esm/widgets/TutorialsHistory/TutorialRowContent.d.ts +2 -2
- package/build/esm/widgets/TutorialsHistory/TutorialRowContent.js.map +1 -1
- package/build/esm/widgets/TutorialsHistory/TutorialsHistory.d.ts +5 -5
- package/build/esm/widgets/TutorialsHistory/TutorialsHistory.js.map +1 -1
- package/build/esm/widgets/TutorialsHistory/TutorialsHistory.stories.js.map +1 -1
- package/build/esm/widgets/index.d.ts +2 -0
- package/build/esm/widgets/index.js +1 -0
- package/build/esm/widgets/index.js.map +1 -1
- package/package.json +1 -1
- package/src/{modules/HistoryRow/HistoryRowTitle.tsx → components/EditableRowTitle/EditableRowTitle.tsx} +10 -12
- package/src/components/EditableRowTitle/index.ts +2 -0
- package/src/components/HistoryFilter/HistoryFilter.tsx +2 -2
- package/src/components/LazyList/LazyList.scss +6 -6
- package/src/components/RowActionsMenu/RowActionsMenu.tsx +47 -0
- package/src/components/RowActionsMenu/index.ts +2 -0
- package/src/components/index.ts +4 -0
- package/src/helpers/getListKey.ts +4 -4
- package/src/helpers/isFieldVisible.ts +5 -4
- package/src/helpers/time.ts +4 -0
- package/src/index.ts +2 -0
- package/src/{widgets/QueriesHistory/ComparisonActions.scss → modules/HistoryComparisonActions/HistoryComparisonActions.scss} +2 -2
- package/src/{widgets/QueriesHistory/ComparisonActions.tsx → modules/HistoryComparisonActions/HistoryComparisonActions.tsx} +8 -8
- package/src/modules/HistoryComparisonActions/index.ts +2 -0
- package/src/modules/HistoryHeader/HistoryHeader.tsx +2 -2
- package/src/modules/HistoryRow/HistoryRow.stories.tsx +3 -2
- package/src/modules/HistoryRow/HistoryRow.tsx +13 -7
- package/src/modules/HistorySearchRow/HistorySearchRow.tsx +3 -2
- package/src/modules/NavigationItemsList/internal/NavigationItemsListHeader.tsx +1 -5
- package/src/modules/QueriesList/QueriesList.scss +10 -0
- package/src/modules/QueriesList/QueriesList.tsx +98 -0
- package/src/modules/QueriesList/index.ts +2 -0
- package/src/modules/RowsList/RowsList.tsx +27 -23
- package/src/modules/RowsList/helpers/prepareRowData.ts +18 -18
- package/src/modules/SavedQueryRow/SavedQueryRow.scss +20 -0
- package/src/modules/SavedQueryRow/SavedQueryRow.tsx +60 -0
- package/src/modules/SavedQueryRow/index.ts +2 -0
- package/src/modules/SavedQuerySearchRow/SavedQuerySearchRow.scss +15 -0
- package/src/modules/SavedQuerySearchRow/SavedQuerySearchRow.tsx +58 -0
- package/src/modules/SavedQuerySearchRow/index.ts +2 -0
- package/src/modules/index.ts +8 -2
- package/src/types/history.ts +4 -95
- package/src/types/queryList.ts +92 -0
- package/src/types/savedQueries.ts +7 -0
- package/src/types/tutorial.ts +2 -2
- package/src/widgets/QueriesHistory/QueriesHistory.scss +1 -8
- package/src/widgets/QueriesHistory/QueriesHistory.stories.tsx +11 -11
- package/src/widgets/QueriesHistory/QueriesHistory.tsx +35 -61
- package/src/{modules/HistoryList → widgets/QueriesHistory/internal}/HistoryRowContent.tsx +5 -5
- package/src/widgets/QueriesNavigation/QueriesNavigation.scss +2 -0
- package/src/widgets/SavedQueries/SavedQueries.scss +3 -0
- package/src/widgets/SavedQueries/SavedQueries.stories.tsx +192 -0
- package/src/widgets/SavedQueries/SavedQueries.tsx +77 -0
- package/src/widgets/SavedQueries/SavedQueryRowContent.tsx +26 -0
- package/src/widgets/SavedQueries/i18n/dicts.ts +4 -0
- package/src/widgets/SavedQueries/i18n/en.json +3 -0
- package/src/widgets/SavedQueries/i18n/index.ts +4 -0
- package/src/widgets/SavedQueries/i18n/ru.json +3 -0
- package/src/widgets/SavedQueries/index.ts +2 -0
- package/src/widgets/TutorialsHistory/TutorialRowContent.tsx +2 -2
- package/src/widgets/TutorialsHistory/TutorialsHistory.stories.tsx +3 -3
- package/src/widgets/TutorialsHistory/TutorialsHistory.tsx +5 -9
- package/src/widgets/index.ts +2 -0
- package/build/cjs/modules/HistoryList/HistoryList.d.ts +0 -16
- package/build/cjs/modules/HistoryList/HistoryList.js +0 -24
- package/build/cjs/modules/HistoryList/HistoryList.js.map +0 -1
- package/build/cjs/modules/HistoryList/HistoryList.stories.d.ts +0 -14
- package/build/cjs/modules/HistoryList/HistoryList.stories.js +0 -245
- package/build/cjs/modules/HistoryList/HistoryList.stories.js.map +0 -1
- package/build/cjs/modules/HistoryList/HistoryRowContent.d.ts +0 -3
- package/build/cjs/modules/HistoryList/HistoryRowContent.js.map +0 -1
- package/build/cjs/modules/HistoryList/index.d.ts +0 -2
- package/build/cjs/modules/HistoryList/index.js +0 -13
- package/build/cjs/modules/HistoryList/index.js.map +0 -1
- package/build/cjs/modules/HistoryRow/HistoryRowMenu.d.ts +0 -8
- package/build/cjs/modules/HistoryRow/HistoryRowMenu.js.map +0 -1
- package/build/cjs/modules/HistoryRow/HistoryRowTitle.d.ts +0 -8
- package/build/cjs/modules/HistoryRow/HistoryRowTitle.js.map +0 -1
- package/build/cjs/widgets/QueriesHistory/ComparisonActions.css +0 -5
- package/build/cjs/widgets/QueriesHistory/ComparisonActions.css.map +0 -1
- package/build/cjs/widgets/QueriesHistory/ComparisonActions.d.ts +0 -9
- package/build/cjs/widgets/QueriesHistory/ComparisonActions.js.map +0 -1
- package/build/esm/modules/HistoryList/HistoryList.d.ts +0 -16
- package/build/esm/modules/HistoryList/HistoryList.js +0 -17
- package/build/esm/modules/HistoryList/HistoryList.js.map +0 -1
- package/build/esm/modules/HistoryList/HistoryList.stories.d.ts +0 -14
- package/build/esm/modules/HistoryList/HistoryList.stories.js +0 -237
- package/build/esm/modules/HistoryList/HistoryList.stories.js.map +0 -1
- package/build/esm/modules/HistoryList/HistoryRowContent.d.ts +0 -3
- package/build/esm/modules/HistoryList/HistoryRowContent.js.map +0 -1
- package/build/esm/modules/HistoryList/index.d.ts +0 -2
- package/build/esm/modules/HistoryList/index.js +0 -2
- package/build/esm/modules/HistoryList/index.js.map +0 -1
- package/build/esm/modules/HistoryRow/HistoryRowMenu.d.ts +0 -8
- package/build/esm/modules/HistoryRow/HistoryRowMenu.js.map +0 -1
- package/build/esm/modules/HistoryRow/HistoryRowTitle.d.ts +0 -8
- package/build/esm/modules/HistoryRow/HistoryRowTitle.js.map +0 -1
- package/build/esm/widgets/QueriesHistory/ComparisonActions.css +0 -5
- package/build/esm/widgets/QueriesHistory/ComparisonActions.css.map +0 -1
- package/build/esm/widgets/QueriesHistory/ComparisonActions.d.ts +0 -9
- package/build/esm/widgets/QueriesHistory/ComparisonActions.js.map +0 -1
- package/src/modules/HistoryList/HistoryList.stories.tsx +0 -181
- package/src/modules/HistoryList/HistoryList.tsx +0 -41
- package/src/modules/HistoryList/index.ts +0 -2
- package/src/modules/HistoryRow/HistoryRowMenu.tsx +0 -47
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type Props<T extends
|
|
3
|
-
item:
|
|
1
|
+
import { QueryListComparisonConfig, QueryListEditingConfig, QueryListItem, QueryListRow, QueryListRowAction, QueryListRowRenderData, QueryListRowVariant, QueryListVisibleFieldsConfig } from '../../../types/queryList';
|
|
2
|
+
type Props<T extends QueryListRow> = {
|
|
3
|
+
item: QueryListItem<T>;
|
|
4
4
|
isActive: boolean;
|
|
5
5
|
index: number;
|
|
6
|
-
variant:
|
|
7
|
-
visibleFields?:
|
|
8
|
-
editing?:
|
|
9
|
-
comparison?:
|
|
10
|
-
getRowActions?: (item: T) =>
|
|
6
|
+
variant: QueryListRowVariant;
|
|
7
|
+
visibleFields?: QueryListVisibleFieldsConfig<T>;
|
|
8
|
+
editing?: QueryListEditingConfig<T>;
|
|
9
|
+
comparison?: QueryListComparisonConfig<T>;
|
|
10
|
+
getRowActions?: (item: T) => QueryListRowAction<T>[];
|
|
11
11
|
};
|
|
12
|
-
export declare const prepareRowData: <T extends
|
|
12
|
+
export declare const prepareRowData: <T extends QueryListRow>({ item, isActive, index, variant, visibleFields, editing, comparison, getRowActions, }: Props<T>) => QueryListRowRenderData<T>;
|
|
13
13
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["prepareRowData","exports","_ref","item","isActive","index","variant","visibleFields","editing","comparison","getRowActions","isRow","actions","undefined","editingData","enabled","rowId","id","onSubmit","onCancel","comparisonData","checked","comparedRowIds","includes"],"sources":["prepareRowData.ts"],"sourcesContent":["import {\n
|
|
1
|
+
{"version":3,"names":["prepareRowData","exports","_ref","item","isActive","index","variant","visibleFields","editing","comparison","getRowActions","isRow","actions","undefined","editingData","enabled","rowId","id","onSubmit","onCancel","comparisonData","checked","comparedRowIds","includes"],"sources":["prepareRowData.ts"],"sourcesContent":["import {\n QueryListComparisonConfig,\n QueryListEditingConfig,\n QueryListItem,\n QueryListRow,\n QueryListRowAction,\n QueryListRowRenderData,\n QueryListRowVariant,\n QueryListVisibleFieldsConfig,\n} from '../../../types/queryList';\n\ntype Props<T extends QueryListRow> = {\n item: QueryListItem<T>;\n isActive: boolean;\n index: number;\n variant: QueryListRowVariant;\n visibleFields?: QueryListVisibleFieldsConfig<T>;\n editing?: QueryListEditingConfig<T>;\n comparison?: QueryListComparisonConfig<T>;\n getRowActions?: (item: T) => QueryListRowAction<T>[];\n};\n\nexport const prepareRowData = <T extends QueryListRow>({\n item,\n isActive,\n index,\n variant,\n visibleFields,\n editing,\n comparison,\n getRowActions,\n}: Props<T>): QueryListRowRenderData<T> => {\n const isRow = !('header' in item);\n const actions = isRow && getRowActions ? getRowActions(item) : undefined;\n const editingData =\n isRow && editing\n ? {\n enabled: editing.rowId === item.id,\n onSubmit: editing.onSubmit,\n onCancel: editing.onCancel,\n }\n : undefined;\n const comparisonData =\n isRow && comparison && comparison.enabled\n ? {\n enabled: true,\n checked: comparison.comparedRowIds.includes(item.id),\n }\n : undefined;\n\n return {\n item,\n index,\n isActive,\n variant,\n visibleFields,\n actions,\n editing: editingData,\n comparison: comparisonData,\n };\n};\n"],"mappings":";;;;;;;;AAsBO,IAAMA,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,SAAjBA,cAAcA,CAAAE,IAAA,EASgB;EAAA,IARvCC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACRC,KAAK,GAAAH,IAAA,CAALG,KAAK;IACLC,OAAO,GAAAJ,IAAA,CAAPI,OAAO;IACPC,aAAa,GAAAL,IAAA,CAAbK,aAAa;IACbC,OAAO,GAAAN,IAAA,CAAPM,OAAO;IACPC,UAAU,GAAAP,IAAA,CAAVO,UAAU;IACVC,aAAa,GAAAR,IAAA,CAAbQ,aAAa;EAEb,IAAMC,KAAK,GAAG,EAAE,QAAQ,IAAIR,IAAI,CAAC;EACjC,IAAMS,OAAO,GAAGD,KAAK,IAAID,aAAa,GAAGA,aAAa,CAACP,IAAI,CAAC,GAAGU,SAAS;EACxE,IAAMC,WAAW,GACbH,KAAK,IAAIH,OAAO,GACV;IACIO,OAAO,EAAEP,OAAO,CAACQ,KAAK,KAAKb,IAAI,CAACc,EAAE;IAClCC,QAAQ,EAAEV,OAAO,CAACU,QAAQ;IAC1BC,QAAQ,EAAEX,OAAO,CAACW;EACtB,CAAC,GACDN,SAAS;EACnB,IAAMO,cAAc,GAChBT,KAAK,IAAIF,UAAU,IAAIA,UAAU,CAACM,OAAO,GACnC;IACIA,OAAO,EAAE,IAAI;IACbM,OAAO,EAAEZ,UAAU,CAACa,cAAc,CAACC,QAAQ,CAACpB,IAAI,CAACc,EAAE;EACvD,CAAC,GACDJ,SAAS;EAEnB,OAAO;IACHV,IAAI,EAAJA,IAAI;IACJE,KAAK,EAALA,KAAK;IACLD,QAAQ,EAARA,QAAQ;IACRE,OAAO,EAAPA,OAAO;IACPC,aAAa,EAAbA,aAAa;IACbK,OAAO,EAAPA,OAAO;IACPJ,OAAO,EAAEM,WAAW;IACpBL,UAAU,EAAEW;EAChB,CAAC;AACL,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.qp-saved-query-row {
|
|
2
|
+
height: 100%;
|
|
3
|
+
}
|
|
4
|
+
.qp-saved-query-row_compared {
|
|
5
|
+
background-color: var(--g-color-base-utility-light);
|
|
6
|
+
}
|
|
7
|
+
.qp-saved-query-row__content {
|
|
8
|
+
min-width: 0;
|
|
9
|
+
}
|
|
10
|
+
.qp-saved-query-row__header {
|
|
11
|
+
height: 20px;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
}
|
|
14
|
+
.qp-saved-query-row__metadata {
|
|
15
|
+
min-width: 0;
|
|
16
|
+
}
|
|
17
|
+
/*# sourceMappingURL=SavedQueryRow.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["SavedQueryRow.scss"],"names":[],"mappings":"AAAA;EACE,YAAA;AACF;AACE;EACE,mDAAA;AACJ;AAEE;EACE,YAAA;AAAJ;AAGE;EACE,YAAA;EACA,YAAA;AADJ;AAIE;EACE,YAAA;AAFJ","file":"SavedQueryRow.css","sourcesContent":[".qp-saved-query-row {\n height: 100%;\n\n &_compared {\n background-color: var(--g-color-base-utility-light);\n }\n\n &__content {\n min-width: 0;\n }\n\n &__header {\n height: 20px;\n min-width: 0;\n }\n\n &__metadata {\n min-width: 0;\n }\n}\n"],"sourceRoot":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QueryListRowRenderData } from '../../types/queryList';
|
|
3
|
+
import { SavedQuery } from '../../types/savedQueries';
|
|
4
|
+
import './SavedQueryRow.scss';
|
|
5
|
+
export type SavedQueryRowProps<T extends SavedQuery = SavedQuery> = {
|
|
6
|
+
item: T;
|
|
7
|
+
renderAuthor?: (item: T) => React.ReactNode;
|
|
8
|
+
} & Omit<QueryListRowRenderData<T>, 'item' | 'variant'>;
|
|
9
|
+
export declare const SavedQueryRow: <T extends SavedQuery>({ item, actions, isActive, comparison, editing, visibleFields, renderAuthor, }: SavedQueryRowProps<T>) => React.JSX.Element;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SavedQueryRow = void 0;
|
|
7
|
+
require("core-js/modules/es.array.includes.js");
|
|
8
|
+
require("core-js/modules/es.string.includes.js");
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _uikit = require("@gravity-ui/uikit");
|
|
11
|
+
var _bemCnLite = _interopRequireDefault(require("bem-cn-lite"));
|
|
12
|
+
var _components = require("../../components");
|
|
13
|
+
var _time = require("../../helpers/time");
|
|
14
|
+
require("./SavedQueryRow.css");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
var block = (0, _bemCnLite.default)('qp-saved-query-row');
|
|
18
|
+
var SavedQueryRow = exports.SavedQueryRow = function SavedQueryRow(_ref) {
|
|
19
|
+
var _renderAuthor;
|
|
20
|
+
var item = _ref.item,
|
|
21
|
+
actions = _ref.actions,
|
|
22
|
+
isActive = _ref.isActive,
|
|
23
|
+
comparison = _ref.comparison,
|
|
24
|
+
editing = _ref.editing,
|
|
25
|
+
visibleFields = _ref.visibleFields,
|
|
26
|
+
renderAuthor = _ref.renderAuthor;
|
|
27
|
+
var author = item.author,
|
|
28
|
+
engine = item.engine,
|
|
29
|
+
href = item.href,
|
|
30
|
+
savedAt = item.savedAt;
|
|
31
|
+
var isEditing = Boolean(editing === null || editing === void 0 ? void 0 : editing.enabled);
|
|
32
|
+
var isComparisonMode = Boolean(comparison === null || comparison === void 0 ? void 0 : comparison.enabled);
|
|
33
|
+
var isChecked = Boolean(comparison === null || comparison === void 0 ? void 0 : comparison.checked);
|
|
34
|
+
var showMenu = isActive && Boolean(actions === null || actions === void 0 ? void 0 : actions.length) && !isComparisonMode;
|
|
35
|
+
var isFieldVisible = function isFieldVisible(field) {
|
|
36
|
+
return visibleFields === undefined || visibleFields.value.includes(field);
|
|
37
|
+
};
|
|
38
|
+
var authorContent = (_renderAuthor = renderAuthor === null || renderAuthor === void 0 ? void 0 : renderAuthor(item)) !== null && _renderAuthor !== void 0 ? _renderAuthor : author ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Avatar, {
|
|
39
|
+
size: "3xs",
|
|
40
|
+
text: author,
|
|
41
|
+
title: author
|
|
42
|
+
}) : null;
|
|
43
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.RowLink, {
|
|
44
|
+
href: href,
|
|
45
|
+
disabled: isEditing || isComparisonMode,
|
|
46
|
+
className: block({
|
|
47
|
+
compared: isChecked
|
|
48
|
+
}),
|
|
49
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
|
|
50
|
+
direction: "column",
|
|
51
|
+
gap: 1,
|
|
52
|
+
className: block('content'),
|
|
53
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
|
|
54
|
+
justifyContent: "space-between",
|
|
55
|
+
className: block('header'),
|
|
56
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.EditableRowTitle, {
|
|
57
|
+
item: item,
|
|
58
|
+
editing: editing
|
|
59
|
+
}), showMenu && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.RowActionsMenu, {
|
|
60
|
+
item: item,
|
|
61
|
+
actions: actions
|
|
62
|
+
})]
|
|
63
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
|
|
64
|
+
gap: 2,
|
|
65
|
+
alignItems: "center",
|
|
66
|
+
className: block('metadata'),
|
|
67
|
+
children: [isFieldVisible('savedAt') && savedAt && /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Text, {
|
|
68
|
+
color: "complementary",
|
|
69
|
+
children: (0, _time.formatDateCanonical)(savedAt)
|
|
70
|
+
}), isFieldVisible('engine') && engine && /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Text, {
|
|
71
|
+
color: "complementary",
|
|
72
|
+
children: engine
|
|
73
|
+
}), isFieldVisible('author') && authorContent]
|
|
74
|
+
})]
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
// #sourceMappingURL=SavedQueryRow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_uikit","_bemCnLite","_components","_time","_jsxRuntime","e","__esModule","default","block","cn","SavedQueryRow","exports","_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","_jsx","Avatar","size","text","title","RowLink","disabled","className","compared","children","_jsxs","Flex","direction","gap","justifyContent","EditableRowTitle","RowActionsMenu","alignItems","Text","color","formatDateCanonical"],"sources":["SavedQueryRow.tsx"],"sourcesContent":["import React from 'react';\nimport {Avatar, Flex, Text} from '@gravity-ui/uikit';\nimport cn from 'bem-cn-lite';\nimport {EditableRowTitle, RowActionsMenu, RowLink} from '../../components';\nimport {formatDateCanonical} from '../../helpers/time';\nimport {QueryListRowRenderData} from '../../types/queryList';\nimport {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":"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","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "SavedQueryRow", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _SavedQueryRow.SavedQueryRow;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _SavedQueryRow = require("./SavedQueryRow");
|
|
13
|
+
// #sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_SavedQueryRow","require"],"sources":["index.ts"],"sourcesContent":["export {SavedQueryRow} from './SavedQueryRow';\nexport type {SavedQueryRowProps} from './SavedQueryRow';\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
.qp-saved-query-search-row__header {
|
|
2
|
+
min-width: 0;
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
.qp-saved-query-search-row__title {
|
|
6
|
+
flex: 1;
|
|
7
|
+
min-width: 0;
|
|
8
|
+
}
|
|
9
|
+
.qp-saved-query-search-row__fixed-metadata {
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
}
|
|
12
|
+
/*# sourceMappingURL=SavedQuerySearchRow.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["SavedQuerySearchRow.scss"],"names":[],"mappings":"AACE;EACE,YAAA;EACA,WAAA;AAAJ;AAGE;EACE,OAAA;EACA,YAAA;AADJ;AAIE;EACE,cAAA;AAFJ","file":"SavedQuerySearchRow.css","sourcesContent":[".qp-saved-query-search-row {\n &__header {\n min-width: 0;\n width: 100%;\n }\n\n &__title {\n flex: 1;\n min-width: 0;\n }\n\n &__fixed-metadata {\n flex-shrink: 0;\n }\n}\n"],"sourceRoot":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QueryListRowRenderData } from '../../types/queryList';
|
|
3
|
+
import { SavedQuery } from '../../types/savedQueries';
|
|
4
|
+
import './SavedQuerySearchRow.scss';
|
|
5
|
+
export type SavedQuerySearchRowProps<T extends SavedQuery = SavedQuery> = {
|
|
6
|
+
item: T;
|
|
7
|
+
renderAuthor?: (item: T) => React.ReactNode;
|
|
8
|
+
} & Omit<QueryListRowRenderData<T>, 'item' | 'variant'>;
|
|
9
|
+
export declare const SavedQuerySearchRow: <T extends SavedQuery>({ item, comparison, editing, visibleFields, renderAuthor, }: SavedQuerySearchRowProps<T>) => React.JSX.Element;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SavedQuerySearchRow = void 0;
|
|
7
|
+
require("core-js/modules/es.array.includes.js");
|
|
8
|
+
require("core-js/modules/es.string.includes.js");
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _uikit = require("@gravity-ui/uikit");
|
|
11
|
+
var _bemCnLite = _interopRequireDefault(require("bem-cn-lite"));
|
|
12
|
+
var _components = require("../../components");
|
|
13
|
+
var _time = require("../../helpers/time");
|
|
14
|
+
require("./SavedQuerySearchRow.css");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
var block = (0, _bemCnLite.default)('qp-saved-query-search-row');
|
|
18
|
+
var SavedQuerySearchRow = exports.SavedQuerySearchRow = function SavedQuerySearchRow(_ref) {
|
|
19
|
+
var _renderAuthor;
|
|
20
|
+
var item = _ref.item,
|
|
21
|
+
comparison = _ref.comparison,
|
|
22
|
+
editing = _ref.editing,
|
|
23
|
+
visibleFields = _ref.visibleFields,
|
|
24
|
+
renderAuthor = _ref.renderAuthor;
|
|
25
|
+
var author = item.author,
|
|
26
|
+
engine = item.engine,
|
|
27
|
+
href = item.href,
|
|
28
|
+
query = item.query,
|
|
29
|
+
savedAt = item.savedAt;
|
|
30
|
+
var authorContent = (_renderAuthor = renderAuthor === null || renderAuthor === void 0 ? void 0 : renderAuthor(item)) !== null && _renderAuthor !== void 0 ? _renderAuthor : author ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Avatar, {
|
|
31
|
+
size: "3xs",
|
|
32
|
+
text: author,
|
|
33
|
+
title: author
|
|
34
|
+
}) : null;
|
|
35
|
+
var isFieldVisible = function isFieldVisible(field) {
|
|
36
|
+
return visibleFields === undefined || visibleFields.value.includes(field);
|
|
37
|
+
};
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SearchRowLayout, {
|
|
39
|
+
query: query,
|
|
40
|
+
language: _components.MonacoLanguage.YQL,
|
|
41
|
+
href: href,
|
|
42
|
+
disabled: Boolean(editing === null || editing === void 0 ? void 0 : editing.enabled) || Boolean(comparison === null || comparison === void 0 ? void 0 : comparison.enabled),
|
|
43
|
+
className: block(),
|
|
44
|
+
header: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
|
|
45
|
+
gap: 2,
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
className: block('header'),
|
|
48
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Text, {
|
|
49
|
+
variant: "subheader-1",
|
|
50
|
+
ellipsis: true,
|
|
51
|
+
className: block('title'),
|
|
52
|
+
children: item.title
|
|
53
|
+
}), isFieldVisible('savedAt') && savedAt && /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Text, {
|
|
54
|
+
color: "complementary",
|
|
55
|
+
className: block('fixed-metadata'),
|
|
56
|
+
children: (0, _time.formatDateCanonical)(savedAt)
|
|
57
|
+
}), isFieldVisible('engine') && engine && /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Text, {
|
|
58
|
+
color: "complementary",
|
|
59
|
+
className: block('fixed-metadata'),
|
|
60
|
+
children: engine
|
|
61
|
+
}), isFieldVisible('author') && authorContent]
|
|
62
|
+
})
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
// #sourceMappingURL=SavedQuerySearchRow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_uikit","_bemCnLite","_components","_time","_jsxRuntime","e","__esModule","default","block","cn","SavedQuerySearchRow","exports","_ref","_renderAuthor","item","comparison","editing","visibleFields","renderAuthor","author","engine","href","query","savedAt","authorContent","_jsx","Avatar","size","text","title","isFieldVisible","field","undefined","value","includes","SearchRowLayout","language","MonacoLanguage","YQL","disabled","Boolean","enabled","className","header","_jsxs","Flex","gap","alignItems","children","Text","variant","ellipsis","color","formatDateCanonical"],"sources":["SavedQuerySearchRow.tsx"],"sourcesContent":["import React from 'react';\nimport {Avatar, Flex, Text} from '@gravity-ui/uikit';\nimport cn from 'bem-cn-lite';\nimport {MonacoLanguage, SearchRowLayout} from '../../components';\nimport {formatDateCanonical} from '../../helpers/time';\nimport {QueryListRowRenderData} from '../../types/queryList';\nimport {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":"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","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "SavedQuerySearchRow", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _SavedQuerySearchRow.SavedQuerySearchRow;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _SavedQuerySearchRow = require("./SavedQuerySearchRow");
|
|
13
|
+
// #sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_SavedQuerySearchRow","require"],"sources":["index.ts"],"sourcesContent":["export {SavedQuerySearchRow} from './SavedQuerySearchRow';\nexport type {SavedQuerySearchRowProps} from './SavedQuerySearchRow';\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
export { HistoryHeader } from './HistoryHeader';
|
|
2
2
|
export { HistoryLayout } from './HistoryLayout';
|
|
3
|
+
export { HistoryComparisonActions } from './HistoryComparisonActions';
|
|
4
|
+
export type { HistoryComparisonActionsProps } from './HistoryComparisonActions';
|
|
3
5
|
export { NavigationHeader } from './NavigationHeader';
|
|
4
6
|
export type { NavigationHeaderProps } from './NavigationHeader';
|
|
5
7
|
export type { HistoryLayoutProps } from './HistoryLayout';
|
|
6
8
|
export { RowsList } from './RowsList';
|
|
7
9
|
export type { RowsListProps } from './RowsList';
|
|
10
|
+
export { QueriesList } from './QueriesList';
|
|
11
|
+
export type { QueriesListProps } from './QueriesList';
|
|
8
12
|
export { HistoryRow } from './HistoryRow';
|
|
9
|
-
export { HistoryList } from './HistoryList';
|
|
10
|
-
export type { HistoryListProps } from './HistoryList';
|
|
11
13
|
export { HistorySearchRow } from './HistorySearchRow';
|
|
14
|
+
export { SavedQueryRow } from './SavedQueryRow';
|
|
15
|
+
export type { SavedQueryRowProps } from './SavedQueryRow';
|
|
16
|
+
export { SavedQuerySearchRow } from './SavedQuerySearchRow';
|
|
17
|
+
export type { SavedQuerySearchRowProps } from './SavedQuerySearchRow';
|
|
12
18
|
export * from './ChartEditor';
|
|
13
19
|
export { TutorialRow } from './TutorialRow';
|
|
14
20
|
export type { TutorialRowProps } from './TutorialRow';
|
|
@@ -6,11 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _exportNames = {
|
|
7
7
|
HistoryHeader: true,
|
|
8
8
|
HistoryLayout: true,
|
|
9
|
+
HistoryComparisonActions: true,
|
|
9
10
|
NavigationHeader: true,
|
|
10
11
|
RowsList: true,
|
|
12
|
+
QueriesList: true,
|
|
11
13
|
HistoryRow: true,
|
|
12
|
-
HistoryList: true,
|
|
13
14
|
HistorySearchRow: true,
|
|
15
|
+
SavedQueryRow: true,
|
|
16
|
+
SavedQuerySearchRow: true,
|
|
14
17
|
TutorialRow: true,
|
|
15
18
|
TutorialSearchRow: true,
|
|
16
19
|
ClustersList: true,
|
|
@@ -33,22 +36,22 @@ Object.defineProperty(exports, "ClustersList", {
|
|
|
33
36
|
return _ClustersList.ClustersList;
|
|
34
37
|
}
|
|
35
38
|
});
|
|
36
|
-
Object.defineProperty(exports, "
|
|
39
|
+
Object.defineProperty(exports, "HistoryComparisonActions", {
|
|
37
40
|
enumerable: true,
|
|
38
41
|
get: function () {
|
|
39
|
-
return
|
|
42
|
+
return _HistoryComparisonActions.HistoryComparisonActions;
|
|
40
43
|
}
|
|
41
44
|
});
|
|
42
|
-
Object.defineProperty(exports, "
|
|
45
|
+
Object.defineProperty(exports, "HistoryHeader", {
|
|
43
46
|
enumerable: true,
|
|
44
47
|
get: function () {
|
|
45
|
-
return
|
|
48
|
+
return _HistoryHeader.HistoryHeader;
|
|
46
49
|
}
|
|
47
50
|
});
|
|
48
|
-
Object.defineProperty(exports, "
|
|
51
|
+
Object.defineProperty(exports, "HistoryLayout", {
|
|
49
52
|
enumerable: true,
|
|
50
53
|
get: function () {
|
|
51
|
-
return
|
|
54
|
+
return _HistoryLayout.HistoryLayout;
|
|
52
55
|
}
|
|
53
56
|
});
|
|
54
57
|
Object.defineProperty(exports, "HistoryRow", {
|
|
@@ -105,12 +108,30 @@ Object.defineProperty(exports, "NavigationView", {
|
|
|
105
108
|
return _NavigationView.NavigationView;
|
|
106
109
|
}
|
|
107
110
|
});
|
|
111
|
+
Object.defineProperty(exports, "QueriesList", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function () {
|
|
114
|
+
return _QueriesList.QueriesList;
|
|
115
|
+
}
|
|
116
|
+
});
|
|
108
117
|
Object.defineProperty(exports, "RowsList", {
|
|
109
118
|
enumerable: true,
|
|
110
119
|
get: function () {
|
|
111
120
|
return _RowsList.RowsList;
|
|
112
121
|
}
|
|
113
122
|
});
|
|
123
|
+
Object.defineProperty(exports, "SavedQueryRow", {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function () {
|
|
126
|
+
return _SavedQueryRow.SavedQueryRow;
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
Object.defineProperty(exports, "SavedQuerySearchRow", {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function () {
|
|
132
|
+
return _SavedQuerySearchRow.SavedQuerySearchRow;
|
|
133
|
+
}
|
|
134
|
+
});
|
|
114
135
|
Object.defineProperty(exports, "TutorialRow", {
|
|
115
136
|
enumerable: true,
|
|
116
137
|
get: function () {
|
|
@@ -161,11 +182,14 @@ Object.defineProperty(exports, "filterSchema", {
|
|
|
161
182
|
});
|
|
162
183
|
var _HistoryHeader = require("./HistoryHeader");
|
|
163
184
|
var _HistoryLayout = require("./HistoryLayout");
|
|
185
|
+
var _HistoryComparisonActions = require("./HistoryComparisonActions");
|
|
164
186
|
var _NavigationHeader = require("./NavigationHeader");
|
|
165
187
|
var _RowsList = require("./RowsList");
|
|
188
|
+
var _QueriesList = require("./QueriesList");
|
|
166
189
|
var _HistoryRow = require("./HistoryRow");
|
|
167
|
-
var _HistoryList = require("./HistoryList");
|
|
168
190
|
var _HistorySearchRow = require("./HistorySearchRow");
|
|
191
|
+
var _SavedQueryRow = require("./SavedQueryRow");
|
|
192
|
+
var _SavedQuerySearchRow = require("./SavedQuerySearchRow");
|
|
169
193
|
var _ChartEditor = require("./ChartEditor");
|
|
170
194
|
Object.keys(_ChartEditor).forEach(function (key) {
|
|
171
195
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_HistoryHeader","require","_HistoryLayout","_NavigationHeader","_RowsList","
|
|
1
|
+
{"version":3,"names":["_HistoryHeader","require","_HistoryLayout","_HistoryComparisonActions","_NavigationHeader","_RowsList","_QueriesList","_HistoryRow","_HistorySearchRow","_SavedQueryRow","_SavedQuerySearchRow","_ChartEditor","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_TutorialRow","_TutorialSearchRow","_ClustersList","_NavigationItemsList","_NavigationDetail","_NavigationSchema","_NavigationPreview","_NavigationMeta","_NavigationView"],"sources":["index.ts"],"sourcesContent":["export {HistoryHeader} from './HistoryHeader';\nexport {HistoryLayout} from './HistoryLayout';\nexport {HistoryComparisonActions} from './HistoryComparisonActions';\nexport type {HistoryComparisonActionsProps} from './HistoryComparisonActions';\nexport {NavigationHeader} from './NavigationHeader';\nexport type {NavigationHeaderProps} from './NavigationHeader';\nexport type {HistoryLayoutProps} from './HistoryLayout';\nexport {RowsList} from './RowsList';\nexport type {RowsListProps} from './RowsList';\nexport {QueriesList} from './QueriesList';\nexport type {QueriesListProps} from './QueriesList';\nexport {HistoryRow} from './HistoryRow';\nexport {HistorySearchRow} from './HistorySearchRow';\nexport {SavedQueryRow} from './SavedQueryRow';\nexport type {SavedQueryRowProps} from './SavedQueryRow';\nexport {SavedQuerySearchRow} from './SavedQuerySearchRow';\nexport type {SavedQuerySearchRowProps} from './SavedQuerySearchRow';\nexport * from './ChartEditor';\nexport {TutorialRow} from './TutorialRow';\nexport type {TutorialRowProps} from './TutorialRow';\nexport {TutorialSearchRow} from './TutorialSearchRow';\nexport type {TutorialSearchRowProps} from './TutorialSearchRow';\nexport {ClustersList} from './ClustersList';\nexport type {ClustersListProps} from './ClustersList';\nexport {NavigationItemsList} from './NavigationItemsList';\nexport type {NavigationItemsListProps} from './NavigationItemsList';\nexport {NavigationDetail} from './NavigationDetail';\nexport type {NavigationDetailProps} from './NavigationDetail';\nexport {NavigationSchema, buildSchemaColumns, filterSchema} from './NavigationSchema';\nexport type {NavigationSchemaProps, NavigationSchemaViewConfig} from './NavigationSchema';\nexport {NavigationPreview, buildPreviewColumns, filterPreviewRows} from './NavigationPreview';\nexport type {NavigationPreviewProps, NavigationPreviewViewConfig} from './NavigationPreview';\nexport {NavigationMeta, buildMetaGroups} from './NavigationMeta';\nexport type {NavigationMetaProps, NavigationMetaViewConfig} from './NavigationMeta';\nexport {NavigationView, buildViewColumns} from './NavigationView';\nexport type {NavigationViewProps, NavigationViewViewConfig} from './NavigationView';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,yBAAA,GAAAF,OAAA;AAEA,IAAAG,iBAAA,GAAAH,OAAA;AAGA,IAAAI,SAAA,GAAAJ,OAAA;AAEA,IAAAK,YAAA,GAAAL,OAAA;AAEA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,iBAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AAEA,IAAAS,oBAAA,GAAAT,OAAA;AAEA,IAAAU,YAAA,GAAAV,OAAA;AAAAW,MAAA,CAAAC,IAAA,CAAAF,YAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,YAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,YAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,YAAA,GAAAvB,OAAA;AAEA,IAAAwB,kBAAA,GAAAxB,OAAA;AAEA,IAAAyB,aAAA,GAAAzB,OAAA;AAEA,IAAA0B,oBAAA,GAAA1B,OAAA;AAEA,IAAA2B,iBAAA,GAAA3B,OAAA;AAEA,IAAA4B,iBAAA,GAAA5B,OAAA;AAEA,IAAA6B,kBAAA,GAAA7B,OAAA;AAEA,IAAA8B,eAAA,GAAA9B,OAAA;AAEA,IAAA+B,eAAA,GAAA/B,OAAA","ignoreList":[]}
|
|
@@ -1,91 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { RegisteredFormFields } from './forms';
|
|
1
|
+
import { QueryListRow, QueryTimestamp } from './queryList';
|
|
3
2
|
export type QueryStatus = 'completed' | 'failed' | 'aborted' | 'draft' | 'running';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
height: number;
|
|
8
|
-
};
|
|
9
|
-
export type QueryHistoryHeader = {
|
|
10
|
-
header: string;
|
|
11
|
-
} & HistoryRowRenderProps;
|
|
12
|
-
export type BaseHistoryRow = {
|
|
13
|
-
id: number;
|
|
14
|
-
title: string;
|
|
15
|
-
query?: string;
|
|
16
|
-
href?: string;
|
|
17
|
-
} & HistoryRowRenderProps;
|
|
18
|
-
export type QueryHistoryRow = BaseHistoryRow & {
|
|
19
|
-
startTime?: QueryHistoryTimestamp;
|
|
20
|
-
endTime?: QueryHistoryTimestamp;
|
|
3
|
+
export type QueryHistoryRow = QueryListRow & {
|
|
4
|
+
startTime?: QueryTimestamp;
|
|
5
|
+
endTime?: QueryTimestamp;
|
|
21
6
|
engine?: string;
|
|
22
7
|
mode?: string;
|
|
23
8
|
isPrivate?: boolean;
|
|
24
9
|
status: QueryStatus;
|
|
25
10
|
};
|
|
26
|
-
export type QueryHistoryItem<T extends BaseHistoryRow = BaseHistoryRow> = QueryHistoryHeader | T;
|
|
27
|
-
export type QueryHistoryRowVariant = 'default' | 'search';
|
|
28
|
-
export type QueryHistoryRowAction<T extends BaseHistoryRow = BaseHistoryRow> = {
|
|
29
|
-
text: ReactNode;
|
|
30
|
-
icon?: ReactNode;
|
|
31
|
-
hidden?: boolean;
|
|
32
|
-
disabled?: boolean;
|
|
33
|
-
onClick: (item: T) => void;
|
|
34
|
-
};
|
|
35
|
-
export type QueryHistorySearchConfig = {
|
|
36
|
-
value?: string;
|
|
37
|
-
fullSearch?: boolean;
|
|
38
|
-
hasClear?: boolean;
|
|
39
|
-
onUpdate: (data: {
|
|
40
|
-
value: string;
|
|
41
|
-
fullSearch: boolean;
|
|
42
|
-
}) => void;
|
|
43
|
-
};
|
|
44
|
-
export type QueryHistoryFilterConfig = {
|
|
45
|
-
fields?: RegisteredFormFields[];
|
|
46
|
-
values?: Record<string, any>;
|
|
47
|
-
initialValues?: Record<string, any>;
|
|
48
|
-
isChanged?: boolean;
|
|
49
|
-
onApply?: (values: Record<string, any>) => void;
|
|
50
|
-
onReset?: () => void;
|
|
51
|
-
};
|
|
52
|
-
export type QueryHistoryEditingConfig<T extends BaseHistoryRow = BaseHistoryRow> = {
|
|
53
|
-
rowId?: T['id'];
|
|
54
|
-
onSubmit?: (item: T, title: string) => void;
|
|
55
|
-
onCancel?: (item: T) => void;
|
|
56
|
-
};
|
|
57
|
-
export type QueryHistoryComparisonConfig<T extends BaseHistoryRow = BaseHistoryRow> = {
|
|
58
|
-
enabled: boolean;
|
|
59
|
-
comparedRowIds: T['id'][];
|
|
60
|
-
onChange: (item: T, selected: boolean) => void;
|
|
61
|
-
onCancel: () => void;
|
|
62
|
-
onCompare: () => void;
|
|
63
|
-
};
|
|
64
|
-
type RowFieldKey<T extends BaseHistoryRow> = Exclude<keyof T & string, keyof HistoryRowRenderProps>;
|
|
65
|
-
export type QueryHistoryFieldKey<T extends BaseHistoryRow = BaseHistoryRow> = RowFieldKey<T> | 'duration';
|
|
66
|
-
export type QueryHistoryFieldOption<K extends string = string> = {
|
|
67
|
-
id: K;
|
|
68
|
-
title: ReactNode;
|
|
69
|
-
};
|
|
70
|
-
export type QueryHistoryVisibleFieldsConfig<T extends BaseHistoryRow = BaseHistoryRow> = {
|
|
71
|
-
value: QueryHistoryFieldKey<T>[];
|
|
72
|
-
fields: QueryHistoryFieldOption<QueryHistoryFieldKey<T>>[];
|
|
73
|
-
onChange: (value: QueryHistoryFieldKey<T>[]) => void;
|
|
74
|
-
};
|
|
75
|
-
export type QueryHistoryEditingRenderData<T extends BaseHistoryRow = BaseHistoryRow> = {
|
|
76
|
-
enabled: boolean;
|
|
77
|
-
} & Pick<QueryHistoryEditingConfig<T>, 'onSubmit' | 'onCancel'>;
|
|
78
|
-
export type QueryHistoryRowRenderData<T extends BaseHistoryRow = BaseHistoryRow> = {
|
|
79
|
-
item: QueryHistoryItem<T>;
|
|
80
|
-
index: number;
|
|
81
|
-
isActive: boolean;
|
|
82
|
-
variant: QueryHistoryRowVariant;
|
|
83
|
-
comparison?: {
|
|
84
|
-
enabled: boolean;
|
|
85
|
-
checked: boolean;
|
|
86
|
-
};
|
|
87
|
-
visibleFields?: QueryHistoryVisibleFieldsConfig<T>;
|
|
88
|
-
actions?: QueryHistoryRowAction<T>[];
|
|
89
|
-
editing?: QueryHistoryEditingRenderData<T>;
|
|
90
|
-
};
|
|
91
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["history.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"names":[],"sources":["history.ts"],"sourcesContent":["import {QueryListRow, QueryTimestamp} from './queryList';\n\nexport type QueryStatus = 'completed' | 'failed' | 'aborted' | 'draft' | 'running';\n\nexport type QueryHistoryRow = QueryListRow & {\n startTime?: QueryTimestamp;\n endTime?: QueryTimestamp;\n engine?: string;\n mode?: string;\n isPrivate?: boolean;\n status: QueryStatus;\n};\n"],"mappings":"","ignoreList":[]}
|