@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SavedQueryRow"],"sources":["index.ts"],"sourcesContent":["export {SavedQueryRow} from './SavedQueryRow';\nexport type {SavedQueryRowProps} from './SavedQueryRow';\n"],"mappings":"AAAA,SAAQA,aAAa","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,58 @@
|
|
|
1
|
+
import "core-js/modules/es.array.includes.js";
|
|
2
|
+
import "core-js/modules/es.string.includes.js";
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Avatar, Flex, Text } from '@gravity-ui/uikit';
|
|
5
|
+
import cn from 'bem-cn-lite';
|
|
6
|
+
import { MonacoLanguage, SearchRowLayout } from "../../components";
|
|
7
|
+
import { formatDateCanonical } from "../../helpers/time";
|
|
8
|
+
import "./SavedQuerySearchRow.css";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
var block = cn('qp-saved-query-search-row');
|
|
11
|
+
export var SavedQuerySearchRow = function SavedQuerySearchRow(_ref) {
|
|
12
|
+
var _renderAuthor;
|
|
13
|
+
var item = _ref.item,
|
|
14
|
+
comparison = _ref.comparison,
|
|
15
|
+
editing = _ref.editing,
|
|
16
|
+
visibleFields = _ref.visibleFields,
|
|
17
|
+
renderAuthor = _ref.renderAuthor;
|
|
18
|
+
var author = item.author,
|
|
19
|
+
engine = item.engine,
|
|
20
|
+
href = item.href,
|
|
21
|
+
query = item.query,
|
|
22
|
+
savedAt = item.savedAt;
|
|
23
|
+
var authorContent = (_renderAuthor = renderAuthor === null || renderAuthor === void 0 ? void 0 : renderAuthor(item)) !== null && _renderAuthor !== void 0 ? _renderAuthor : author ? /*#__PURE__*/_jsx(Avatar, {
|
|
24
|
+
size: "3xs",
|
|
25
|
+
text: author,
|
|
26
|
+
title: author
|
|
27
|
+
}) : null;
|
|
28
|
+
var isFieldVisible = function isFieldVisible(field) {
|
|
29
|
+
return visibleFields === undefined || visibleFields.value.includes(field);
|
|
30
|
+
};
|
|
31
|
+
return /*#__PURE__*/_jsx(SearchRowLayout, {
|
|
32
|
+
query: query,
|
|
33
|
+
language: MonacoLanguage.YQL,
|
|
34
|
+
href: href,
|
|
35
|
+
disabled: Boolean(editing === null || editing === void 0 ? void 0 : editing.enabled) || Boolean(comparison === null || comparison === void 0 ? void 0 : comparison.enabled),
|
|
36
|
+
className: block(),
|
|
37
|
+
header: /*#__PURE__*/_jsxs(Flex, {
|
|
38
|
+
gap: 2,
|
|
39
|
+
alignItems: "center",
|
|
40
|
+
className: block('header'),
|
|
41
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
42
|
+
variant: "subheader-1",
|
|
43
|
+
ellipsis: true,
|
|
44
|
+
className: block('title'),
|
|
45
|
+
children: item.title
|
|
46
|
+
}), isFieldVisible('savedAt') && savedAt && /*#__PURE__*/_jsx(Text, {
|
|
47
|
+
color: "complementary",
|
|
48
|
+
className: block('fixed-metadata'),
|
|
49
|
+
children: formatDateCanonical(savedAt)
|
|
50
|
+
}), isFieldVisible('engine') && engine && /*#__PURE__*/_jsx(Text, {
|
|
51
|
+
color: "complementary",
|
|
52
|
+
className: block('fixed-metadata'),
|
|
53
|
+
children: engine
|
|
54
|
+
}), isFieldVisible('author') && authorContent]
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
// #sourceMappingURL=SavedQuerySearchRow.js.map
|
|
@@ -0,0 +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, 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":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,MAAM,EAAEC,IAAI,EAAEC,IAAI,QAAO,mBAAmB;AACpD,OAAOC,EAAE,MAAM,aAAa;AAC5B,SAAQC,cAAc,EAAEC,eAAe;AACvC,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,IAAA,CAACR,MAAM;IAAC0B,IAAI,EAAC,KAAK;IAACC,IAAI,EAAEP,MAAO;IAACQ,KAAK,EAAER;EAAO,CAAE,CAAC,GAAG,IAAK;EACxE,IAAMS,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,KAAa;IAAA,OACjCZ,aAAa,KAAKa,SAAS,IAAKb,aAAa,CAACc,KAAK,CAAcC,QAAQ,CAACH,KAAK,CAAC;EAAA;EAEpF,oBACItB,IAAA,CAACH,eAAe;IACZkB,KAAK,EAAEA,KAAM;IACbW,QAAQ,EAAE9B,cAAc,CAAC+B,GAAI;IAC7Bb,IAAI,EAAEA,IAAK;IACXc,QAAQ,EAAEC,OAAO,CAACpB,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEqB,OAAO,CAAC,IAAID,OAAO,CAACrB,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEsB,OAAO,CAAE;IACpEC,SAAS,EAAE5B,KAAK,CAAC,CAAE;IACnB6B,MAAM,eACF9B,KAAA,CAACT,IAAI;MAACwC,GAAG,EAAE,CAAE;MAACC,UAAU,EAAC,QAAQ;MAACH,SAAS,EAAE5B,KAAK,CAAC,QAAQ,CAAE;MAAAgC,QAAA,gBACzDnC,IAAA,CAACN,IAAI;QAAC0C,OAAO,EAAC,aAAa;QAACC,QAAQ;QAACN,SAAS,EAAE5B,KAAK,CAAC,OAAO,CAAE;QAAAgC,QAAA,EAC1D5B,IAAI,CAACa;MAAK,CACT,CAAC,EACNC,cAAc,CAAC,SAAS,CAAC,IAAIL,OAAO,iBACjChB,IAAA,CAACN,IAAI;QAAC4C,KAAK,EAAC,eAAe;QAACP,SAAS,EAAE5B,KAAK,CAAC,gBAAgB,CAAE;QAAAgC,QAAA,EAC1DrC,mBAAmB,CAACkB,OAAO;MAAC,CAC3B,CACT,EACAK,cAAc,CAAC,QAAQ,CAAC,IAAIR,MAAM,iBAC/Bb,IAAA,CAACN,IAAI;QAAC4C,KAAK,EAAC,eAAe;QAACP,SAAS,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":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SavedQuerySearchRow"],"sources":["index.ts"],"sourcesContent":["export {SavedQuerySearchRow} from './SavedQuerySearchRow';\nexport type {SavedQuerySearchRowProps} from './SavedQuerySearchRow';\n"],"mappings":"AAAA,SAAQA,mBAAmB","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';
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export { HistoryHeader } from "./HistoryHeader";
|
|
2
2
|
export { HistoryLayout } from "./HistoryLayout";
|
|
3
|
+
export { HistoryComparisonActions } from "./HistoryComparisonActions";
|
|
3
4
|
export { NavigationHeader } from "./NavigationHeader";
|
|
4
5
|
export { RowsList } from "./RowsList";
|
|
6
|
+
export { QueriesList } from "./QueriesList";
|
|
5
7
|
export { HistoryRow } from "./HistoryRow";
|
|
6
|
-
export { HistoryList } from "./HistoryList";
|
|
7
8
|
export { HistorySearchRow } from "./HistorySearchRow";
|
|
9
|
+
export { SavedQueryRow } from "./SavedQueryRow";
|
|
10
|
+
export { SavedQuerySearchRow } from "./SavedQuerySearchRow";
|
|
8
11
|
export * from "./ChartEditor";
|
|
9
12
|
export { TutorialRow } from "./TutorialRow";
|
|
10
13
|
export { TutorialSearchRow } from "./TutorialSearchRow";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HistoryHeader","HistoryLayout","NavigationHeader","RowsList","
|
|
1
|
+
{"version":3,"names":["HistoryHeader","HistoryLayout","HistoryComparisonActions","NavigationHeader","RowsList","QueriesList","HistoryRow","HistorySearchRow","SavedQueryRow","SavedQuerySearchRow","TutorialRow","TutorialSearchRow","ClustersList","NavigationItemsList","NavigationDetail","NavigationSchema","buildSchemaColumns","filterSchema","NavigationPreview","buildPreviewColumns","filterPreviewRows","NavigationMeta","buildMetaGroups","NavigationView","buildViewColumns"],"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,SAAQA,aAAa;AACrB,SAAQC,aAAa;AACrB,SAAQC,wBAAwB;AAEhC,SAAQC,gBAAgB;AAGxB,SAAQC,QAAQ;AAEhB,SAAQC,WAAW;AAEnB,SAAQC,UAAU;AAClB,SAAQC,gBAAgB;AACxB,SAAQC,aAAa;AAErB,SAAQC,mBAAmB;AAE3B;AACA,SAAQC,WAAW;AAEnB,SAAQC,iBAAiB;AAEzB,SAAQC,YAAY;AAEpB,SAAQC,mBAAmB;AAE3B,SAAQC,gBAAgB;AAExB,SAAQC,gBAAgB,EAAEC,kBAAkB,EAAEC,YAAY;AAE1D,SAAQC,iBAAiB,EAAEC,mBAAmB,EAAEC,iBAAiB;AAEjE,SAAQC,cAAc,EAAEC,eAAe;AAEvC,SAAQC,cAAc,EAAEC,gBAAgB","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":[]}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { RegisteredFormFields } from './forms';
|
|
3
|
+
/** ISO 8601 date string or Unix timestamp in milliseconds. */
|
|
4
|
+
export type QueryTimestamp = string | number;
|
|
5
|
+
export type QueryListRowRenderProps = {
|
|
6
|
+
height: number;
|
|
7
|
+
};
|
|
8
|
+
export type QueryListHeader = {
|
|
9
|
+
header: string;
|
|
10
|
+
} & QueryListRowRenderProps;
|
|
11
|
+
export type QueryListRow = {
|
|
12
|
+
id: number;
|
|
13
|
+
title: string;
|
|
14
|
+
query?: string;
|
|
15
|
+
href?: string;
|
|
16
|
+
} & QueryListRowRenderProps;
|
|
17
|
+
export type QueryListItem<T extends QueryListRow = QueryListRow> = QueryListHeader | T;
|
|
18
|
+
export type QueryListRowVariant = 'default' | 'search';
|
|
19
|
+
export type QueryListRowAction<T extends QueryListRow = QueryListRow> = {
|
|
20
|
+
text: ReactNode;
|
|
21
|
+
icon?: ReactNode;
|
|
22
|
+
theme?: 'normal' | 'danger';
|
|
23
|
+
hidden?: boolean;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
onClick: (item: T) => void;
|
|
26
|
+
};
|
|
27
|
+
export type QueryListSearchConfig = {
|
|
28
|
+
value?: string;
|
|
29
|
+
fullSearch?: boolean;
|
|
30
|
+
hasClear?: boolean;
|
|
31
|
+
onUpdate: (data: {
|
|
32
|
+
value: string;
|
|
33
|
+
fullSearch: boolean;
|
|
34
|
+
}) => void;
|
|
35
|
+
};
|
|
36
|
+
export type QueryListFilterConfig = {
|
|
37
|
+
fields?: RegisteredFormFields[];
|
|
38
|
+
values?: Record<string, any>;
|
|
39
|
+
initialValues?: Record<string, any>;
|
|
40
|
+
isChanged?: boolean;
|
|
41
|
+
onApply?: (values: Record<string, any>) => void;
|
|
42
|
+
onReset?: () => void;
|
|
43
|
+
};
|
|
44
|
+
export type QueryListEditingConfig<T extends QueryListRow = QueryListRow> = {
|
|
45
|
+
rowId?: T['id'];
|
|
46
|
+
onSubmit?: (item: T, title: string) => void;
|
|
47
|
+
onCancel?: (item: T) => void;
|
|
48
|
+
};
|
|
49
|
+
export type QueryListComparisonConfig<T extends QueryListRow = QueryListRow> = {
|
|
50
|
+
enabled: boolean;
|
|
51
|
+
comparedRowIds: T['id'][];
|
|
52
|
+
onChange: (item: T, selected: boolean) => void;
|
|
53
|
+
onCancel: () => void;
|
|
54
|
+
onCompare: () => void;
|
|
55
|
+
};
|
|
56
|
+
type RowFieldKey<T extends QueryListRow> = Exclude<keyof T & string, keyof QueryListRowRenderProps>;
|
|
57
|
+
export type QueryListFieldKey<T extends QueryListRow = QueryListRow> = RowFieldKey<T> | 'duration';
|
|
58
|
+
export type QueryListFieldOption<K extends string = string> = {
|
|
59
|
+
id: K;
|
|
60
|
+
title: ReactNode;
|
|
61
|
+
};
|
|
62
|
+
export type QueryListVisibleFieldsConfig<T extends QueryListRow = QueryListRow> = {
|
|
63
|
+
value: QueryListFieldKey<T>[];
|
|
64
|
+
fields: QueryListFieldOption<QueryListFieldKey<T>>[];
|
|
65
|
+
onChange: (value: QueryListFieldKey<T>[]) => void;
|
|
66
|
+
};
|
|
67
|
+
export type QueryListEditingRenderData<T extends QueryListRow = QueryListRow> = {
|
|
68
|
+
enabled: boolean;
|
|
69
|
+
} & Pick<QueryListEditingConfig<T>, 'onSubmit' | 'onCancel'>;
|
|
70
|
+
export type QueryListRowRenderData<T extends QueryListRow = QueryListRow> = {
|
|
71
|
+
item: QueryListItem<T>;
|
|
72
|
+
index: number;
|
|
73
|
+
isActive: boolean;
|
|
74
|
+
variant: QueryListRowVariant;
|
|
75
|
+
comparison?: {
|
|
76
|
+
enabled: boolean;
|
|
77
|
+
checked: boolean;
|
|
78
|
+
};
|
|
79
|
+
visibleFields?: QueryListVisibleFieldsConfig<T>;
|
|
80
|
+
actions?: QueryListRowAction<T>[];
|
|
81
|
+
editing?: QueryListEditingRenderData<T>;
|
|
82
|
+
};
|
|
83
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["queryList.ts"],"sourcesContent":["import {ReactNode} from 'react';\nimport {RegisteredFormFields} from './forms';\n\n/** ISO 8601 date string or Unix timestamp in milliseconds. */\nexport type QueryTimestamp = string | number;\n\nexport type QueryListRowRenderProps = {height: number};\n\nexport type QueryListHeader = {header: string} & QueryListRowRenderProps;\n\nexport type QueryListRow = {\n id: number;\n title: string;\n query?: string;\n href?: string;\n} & QueryListRowRenderProps;\n\nexport type QueryListItem<T extends QueryListRow = QueryListRow> = QueryListHeader | T;\n\nexport type QueryListRowVariant = 'default' | 'search';\n\nexport type QueryListRowAction<T extends QueryListRow = QueryListRow> = {\n text: ReactNode;\n icon?: ReactNode;\n theme?: 'normal' | 'danger';\n hidden?: boolean;\n disabled?: boolean;\n onClick: (item: T) => void;\n};\n\nexport type QueryListSearchConfig = {\n value?: string;\n fullSearch?: boolean;\n hasClear?: boolean;\n onUpdate: (data: {value: string; fullSearch: boolean}) => void;\n};\n\nexport type QueryListFilterConfig = {\n fields?: RegisteredFormFields[];\n values?: Record<string, any>;\n initialValues?: Record<string, any>;\n isChanged?: boolean;\n onApply?: (values: Record<string, any>) => void;\n onReset?: () => void;\n};\n\nexport type QueryListEditingConfig<T extends QueryListRow = QueryListRow> = {\n rowId?: T['id'];\n onSubmit?: (item: T, title: string) => void;\n onCancel?: (item: T) => void;\n};\n\nexport type QueryListComparisonConfig<T extends QueryListRow = QueryListRow> = {\n enabled: boolean;\n comparedRowIds: T['id'][];\n onChange: (item: T, selected: boolean) => void;\n onCancel: () => void;\n onCompare: () => void;\n};\n\ntype RowFieldKey<T extends QueryListRow> = Exclude<keyof T & string, keyof QueryListRowRenderProps>;\n\nexport type QueryListFieldKey<T extends QueryListRow = QueryListRow> = RowFieldKey<T> | 'duration';\n\nexport type QueryListFieldOption<K extends string = string> = {\n id: K;\n title: ReactNode;\n};\n\nexport type QueryListVisibleFieldsConfig<T extends QueryListRow = QueryListRow> = {\n value: QueryListFieldKey<T>[];\n fields: QueryListFieldOption<QueryListFieldKey<T>>[];\n onChange: (value: QueryListFieldKey<T>[]) => void;\n};\n\nexport type QueryListEditingRenderData<T extends QueryListRow = QueryListRow> = {\n enabled: boolean;\n} & Pick<QueryListEditingConfig<T>, 'onSubmit' | 'onCancel'>;\n\nexport type QueryListRowRenderData<T extends QueryListRow = QueryListRow> = {\n item: QueryListItem<T>;\n index: number;\n isActive: boolean;\n variant: QueryListRowVariant;\n comparison?: {\n enabled: boolean;\n checked: boolean;\n };\n visibleFields?: QueryListVisibleFieldsConfig<T>;\n actions?: QueryListRowAction<T>[];\n editing?: QueryListEditingRenderData<T>;\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["savedQueries.ts"],"sourcesContent":["import {QueryListRow, QueryTimestamp} from './queryList';\n\nexport type SavedQuery = QueryListRow & {\n savedAt?: QueryTimestamp;\n engine?: string;\n author?: string;\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type TutorialHistoryRow =
|
|
1
|
+
import { QueryListRow } from './queryList';
|
|
2
|
+
export type TutorialHistoryRow = QueryListRow;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["tutorial.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"names":[],"sources":["tutorial.ts"],"sourcesContent":["import {QueryListRow} from './queryList';\n\nexport type TutorialHistoryRow = QueryListRow;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["QueriesHistory.scss"],"names":[],"mappings":"AAAA;EACE,YAAA;AACF
|
|
1
|
+
{"version":3,"sources":["QueriesHistory.scss"],"names":[],"mappings":"AAAA;EACE,YAAA;AACF","file":"QueriesHistory.css","sourcesContent":[".qp-query-history {\n height: 100%;\n}\n"],"sourceRoot":""}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { QueryListComparisonConfig, QueryListEditingConfig, QueryListFilterConfig, QueryListItem, QueryListRowAction, QueryListRowRenderData, QueryListSearchConfig, QueryListVisibleFieldsConfig } from '../../types/queryList';
|
|
3
|
+
import { QueryHistoryRow } from '../../types/history';
|
|
3
4
|
import './QueriesHistory.scss';
|
|
4
5
|
export type QueriesHistoryProps<T extends QueryHistoryRow = QueryHistoryRow> = {
|
|
5
6
|
className?: string;
|
|
6
7
|
title?: string;
|
|
7
8
|
logo?: React.ReactNode;
|
|
8
|
-
search:
|
|
9
|
-
filter?:
|
|
10
|
-
items:
|
|
9
|
+
search: QueryListSearchConfig;
|
|
10
|
+
filter?: QueryListFilterConfig;
|
|
11
|
+
items: QueryListItem<T>[];
|
|
11
12
|
selectedRowId?: T['id'];
|
|
12
|
-
editing?:
|
|
13
|
-
comparison?:
|
|
14
|
-
visibleFields?:
|
|
15
|
-
renderRowItem?: (data:
|
|
16
|
-
getRowActions?: (item: T) =>
|
|
17
|
-
onListItemClick?: (item:
|
|
13
|
+
editing?: QueryListEditingConfig<T>;
|
|
14
|
+
comparison?: QueryListComparisonConfig<T>;
|
|
15
|
+
visibleFields?: QueryListVisibleFieldsConfig<T>;
|
|
16
|
+
renderRowItem?: (data: QueryListRowRenderData<T>) => React.ReactNode;
|
|
17
|
+
getRowActions?: (item: T) => QueryListRowAction<T>[];
|
|
18
|
+
onListItemClick?: (item: QueryListItem<T>) => void;
|
|
18
19
|
};
|
|
19
20
|
export declare const QueriesHistory: <T extends QueryHistoryRow>({ title, logo, search, filter, items, selectedRowId, editing, comparison, visibleFields, renderRowItem, getRowActions, onListItemClick, className, }: QueriesHistoryProps<T>) => React.JSX.Element;
|
|
@@ -5,19 +5,15 @@ import "core-js/modules/es.iterator.filter.js";
|
|
|
5
5
|
import "core-js/modules/es.object.to-string.js";
|
|
6
6
|
import "core-js/modules/es.regexp.exec.js";
|
|
7
7
|
import "core-js/modules/es.string.search.js";
|
|
8
|
-
import "core-js/modules/es.string.trim.js";
|
|
9
8
|
import React from 'react';
|
|
10
|
-
import { HistoryHeader, HistoryLayout, HistoryList } from "../../modules";
|
|
11
|
-
import i18n from "./i18n";
|
|
12
|
-
import { FieldsSelector } from "../../components";
|
|
13
|
-
import { getListKey } from "../../helpers/getListKey";
|
|
14
|
-
import { ComparisonActions } from "./ComparisonActions";
|
|
15
9
|
import cn from 'bem-cn-lite';
|
|
10
|
+
import { QueriesList } from "../../modules";
|
|
11
|
+
import i18n from "./i18n";
|
|
12
|
+
import { HistoryRowContent } from "./internal/HistoryRowContent";
|
|
16
13
|
import "./QueriesHistory.css";
|
|
17
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
15
|
var block = cn('qp-query-history');
|
|
19
16
|
export var QueriesHistory = function QueriesHistory(_ref) {
|
|
20
|
-
var _search$value;
|
|
21
17
|
var title = _ref.title,
|
|
22
18
|
logo = _ref.logo,
|
|
23
19
|
search = _ref.search,
|
|
@@ -31,37 +27,22 @@ export var QueriesHistory = function QueriesHistory(_ref) {
|
|
|
31
27
|
getRowActions = _ref.getRowActions,
|
|
32
28
|
onListItemClick = _ref.onListItemClick,
|
|
33
29
|
className = _ref.className;
|
|
34
|
-
|
|
35
|
-
var rowVariant = showSearchResults ? 'search' : 'default';
|
|
36
|
-
return /*#__PURE__*/_jsx(HistoryLayout, {
|
|
30
|
+
return /*#__PURE__*/_jsx(QueriesList, {
|
|
37
31
|
className: block(null, className),
|
|
38
32
|
title: title || i18n('title_history'),
|
|
39
33
|
logo: logo,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}),
|
|
53
|
-
children: /*#__PURE__*/_jsx(HistoryList, {
|
|
54
|
-
items: items,
|
|
55
|
-
rowVariant: rowVariant,
|
|
56
|
-
selectedRowId: selectedRowId,
|
|
57
|
-
visibleFields: visibleFields,
|
|
58
|
-
editing: editing,
|
|
59
|
-
comparison: comparison,
|
|
60
|
-
renderRowItem: renderRowItem,
|
|
61
|
-
getRowActions: getRowActions,
|
|
62
|
-
showFiltersHint: Boolean(filter),
|
|
63
|
-
onItemClick: onListItemClick
|
|
64
|
-
}, getListKey(items, rowVariant))
|
|
34
|
+
search: search,
|
|
35
|
+
filter: filter,
|
|
36
|
+
items: items,
|
|
37
|
+
selectedRowId: selectedRowId,
|
|
38
|
+
visibleFields: visibleFields,
|
|
39
|
+
editing: editing,
|
|
40
|
+
comparison: comparison,
|
|
41
|
+
getRowActions: getRowActions,
|
|
42
|
+
renderRow: function renderRow(data) {
|
|
43
|
+
return renderRowItem ? renderRowItem(data) : /*#__PURE__*/_jsx(HistoryRowContent, _objectSpread({}, data));
|
|
44
|
+
},
|
|
45
|
+
onListItemClick: onListItemClick
|
|
65
46
|
});
|
|
66
47
|
};
|
|
67
48
|
// #sourceMappingURL=QueriesHistory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","cn","QueriesList","i18n","HistoryRowContent","jsx","_jsx","block","QueriesHistory","_ref","title","logo","search","filter","items","selectedRowId","editing","comparison","visibleFields","renderRowItem","getRowActions","onListItemClick","className","renderRow","data","_objectSpread"],"sources":["QueriesHistory.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'bem-cn-lite';\nimport {QueriesList} from '../../modules';\nimport i18n from './i18n';\nimport {\n QueryListComparisonConfig,\n QueryListEditingConfig,\n QueryListFilterConfig,\n QueryListItem,\n QueryListRowAction,\n QueryListRowRenderData,\n QueryListSearchConfig,\n QueryListVisibleFieldsConfig,\n} from '../../types/queryList';\nimport {QueryHistoryRow} from '../../types/history';\nimport {HistoryRowContent} from './internal/HistoryRowContent';\nimport './QueriesHistory.scss';\n\nexport type QueriesHistoryProps<T extends QueryHistoryRow = QueryHistoryRow> = {\n className?: string;\n title?: string;\n logo?: React.ReactNode;\n search: QueryListSearchConfig;\n filter?: QueryListFilterConfig;\n items: QueryListItem<T>[];\n selectedRowId?: T['id'];\n editing?: QueryListEditingConfig<T>;\n comparison?: QueryListComparisonConfig<T>;\n visibleFields?: QueryListVisibleFieldsConfig<T>;\n renderRowItem?: (data: QueryListRowRenderData<T>) => React.ReactNode;\n getRowActions?: (item: T) => QueryListRowAction<T>[];\n onListItemClick?: (item: QueryListItem<T>) => void;\n};\n\nconst block = cn('qp-query-history');\n\nexport const QueriesHistory = <T extends QueryHistoryRow>({\n title,\n logo,\n search,\n filter,\n items,\n selectedRowId,\n editing,\n comparison,\n visibleFields,\n renderRowItem,\n getRowActions,\n onListItemClick,\n className,\n}: QueriesHistoryProps<T>) => {\n return (\n <QueriesList\n className={block(null, className)}\n title={title || i18n('title_history')}\n logo={logo}\n search={search}\n filter={filter}\n items={items}\n selectedRowId={selectedRowId}\n visibleFields={visibleFields}\n editing={editing}\n comparison={comparison}\n getRowActions={getRowActions}\n renderRow={(data) =>\n renderRowItem ? renderRowItem(data) : <HistoryRowContent {...data} />\n }\n onListItemClick={onListItemClick}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,EAAE,MAAM,aAAa;AAC5B,SAAQC,WAAW;AACnB,OAAOC,IAAI;AAYX,SAAQC,iBAAiB;AACzB;AAA+B,SAAAC,GAAA,IAAAC,IAAA;AAkB/B,IAAMC,KAAK,GAAGN,EAAE,CAAC,kBAAkB,CAAC;AAEpC,OAAO,IAAMO,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAcG;EAAA,IAb1BC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,MAAM,GAAAH,IAAA,CAANG,MAAM;IACNC,MAAM,GAAAJ,IAAA,CAANI,MAAM;IACNC,KAAK,GAAAL,IAAA,CAALK,KAAK;IACLC,aAAa,GAAAN,IAAA,CAAbM,aAAa;IACbC,OAAO,GAAAP,IAAA,CAAPO,OAAO;IACPC,UAAU,GAAAR,IAAA,CAAVQ,UAAU;IACVC,aAAa,GAAAT,IAAA,CAAbS,aAAa;IACbC,aAAa,GAAAV,IAAA,CAAbU,aAAa;IACbC,aAAa,GAAAX,IAAA,CAAbW,aAAa;IACbC,eAAe,GAAAZ,IAAA,CAAfY,eAAe;IACfC,SAAS,GAAAb,IAAA,CAATa,SAAS;EAET,oBACIhB,IAAA,CAACJ,WAAW;IACRoB,SAAS,EAAEf,KAAK,CAAC,IAAI,EAAEe,SAAS,CAAE;IAClCZ,KAAK,EAAEA,KAAK,IAAIP,IAAI,CAAC,eAAe,CAAE;IACtCQ,IAAI,EAAEA,IAAK;IACXC,MAAM,EAAEA,MAAO;IACfC,MAAM,EAAEA,MAAO;IACfC,KAAK,EAAEA,KAAM;IACbC,aAAa,EAAEA,aAAc;IAC7BG,aAAa,EAAEA,aAAc;IAC7BF,OAAO,EAAEA,OAAQ;IACjBC,UAAU,EAAEA,UAAW;IACvBG,aAAa,EAAEA,aAAc;IAC7BG,SAAS,EAAE,SAAXA,SAASA,CAAGC,IAAI;MAAA,OACZL,aAAa,GAAGA,aAAa,CAACK,IAAI,CAAC,gBAAGlB,IAAA,CAACF,iBAAiB,EAAAqB,aAAA,KAAKD,IAAI,CAAG,CAAC;IAAA,CACxE;IACDH,eAAe,EAAEA;EAAgB,CACpC,CAAC;AAEV,CAAC","ignoreList":[]}
|