@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.2.0](https://github.com/gravity-ui/querieskit/compare/v1.1.0...v1.2.0) (2026-08-31)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **UI:** saved queries [YTFRONT-5935] ([6d7094e](https://github.com/gravity-ui/querieskit/commit/6d7094ee8916a85c04f564972d43537f01295c4b))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **UI:** navigation [YTFRONT-5935] ([b00c29f](https://github.com/gravity-ui/querieskit/commit/b00c29f0f45dc1e324a84bbf80c0c5e9d7e94a5d))
|
|
14
|
+
|
|
3
15
|
## [1.1.0](https://github.com/gravity-ui/querieskit/compare/v1.0.4...v1.1.0) (2026-08-28)
|
|
4
16
|
|
|
5
17
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QueryListEditingRenderData, QueryListRow } from '../../types/queryList';
|
|
3
|
+
export type EditableRowTitleProps<T extends QueryListRow = QueryListRow> = {
|
|
4
|
+
item: T;
|
|
5
|
+
editing?: QueryListEditingRenderData<T>;
|
|
6
|
+
};
|
|
7
|
+
export declare const EditableRowTitle: <T extends QueryListRow>({ item, editing, }: EditableRowTitleProps<T>) => React.JSX.Element;
|
|
@@ -3,16 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.EditableRowTitle = void 0;
|
|
7
7
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
8
8
|
require("core-js/modules/es.string.trim.js");
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _uikit = require("@gravity-ui/uikit");
|
|
11
|
-
require("./HistoryRow.css");
|
|
12
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
-
var
|
|
14
|
+
var EditableRowTitle = exports.EditableRowTitle = function EditableRowTitle(_ref) {
|
|
16
15
|
var item = _ref.item,
|
|
17
16
|
editing = _ref.editing;
|
|
18
17
|
var _useState = (0, _react.useState)(item.title),
|
|
@@ -21,7 +20,7 @@ var HistoryRowTitle = exports.HistoryRowTitle = function HistoryRowTitle(_ref) {
|
|
|
21
20
|
setTitle = _useState2[1];
|
|
22
21
|
var isEditing = Boolean(editing === null || editing === void 0 ? void 0 : editing.enabled);
|
|
23
22
|
var isTitleEmpty = !title.trim();
|
|
24
|
-
_react.
|
|
23
|
+
(0, _react.useEffect)(function () {
|
|
25
24
|
setTitle(item.title);
|
|
26
25
|
}, [item.id, item.title]);
|
|
27
26
|
var handleKeyDown = function handleKeyDown(event) {
|
|
@@ -66,9 +65,8 @@ var HistoryRowTitle = exports.HistoryRowTitle = function HistoryRowTitle(_ref) {
|
|
|
66
65
|
});
|
|
67
66
|
}
|
|
68
67
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Text, {
|
|
69
|
-
variant: "subheader-1",
|
|
70
68
|
ellipsis: true,
|
|
71
69
|
children: item.title
|
|
72
70
|
});
|
|
73
71
|
};
|
|
74
|
-
// #sourceMappingURL=
|
|
72
|
+
// #sourceMappingURL=EditableRowTitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_uikit","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_interopRequireDefault","EditableRowTitle","exports","_ref","item","editing","_useState","useState","title","_useState2","_slicedToArray","setTitle","isEditing","Boolean","enabled","isTitleEmpty","trim","useEffect","id","handleKeyDown","event","stopPropagation","key","_editing$onSubmit","preventDefault","nextTitle","_editing$onCancel","onCancel","onSubmit","_editing$onCancel2","_jsx","onClick","onMouseDown","children","TextInput","autoFocus","value","size","validationState","undefined","onKeyDown","onUpdate","Text","ellipsis"],"sources":["EditableRowTitle.tsx"],"sourcesContent":["import React, {KeyboardEvent, useEffect, useState} from 'react';\nimport {Text, TextInput} from '@gravity-ui/uikit';\nimport {QueryListEditingRenderData, QueryListRow} from '../../types/queryList';\n\nexport type EditableRowTitleProps<T extends QueryListRow = QueryListRow> = {\n item: T;\n editing?: QueryListEditingRenderData<T>;\n};\n\nexport const EditableRowTitle = <T extends QueryListRow>({\n item,\n editing,\n}: EditableRowTitleProps<T>) => {\n const [title, setTitle] = useState(item.title);\n const isEditing = Boolean(editing?.enabled);\n const isTitleEmpty = !title.trim();\n\n useEffect(() => {\n setTitle(item.title);\n }, [item.id, item.title]);\n\n const handleKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {\n event.stopPropagation();\n\n if (event.key === 'Enter') {\n event.preventDefault();\n const nextTitle = title.trim();\n\n if (!nextTitle) {\n return;\n }\n\n if (nextTitle === item.title) {\n editing?.onCancel?.(item);\n setTitle(item.title);\n return;\n }\n\n editing?.onSubmit?.(item, nextTitle);\n }\n\n if (event.key === 'Escape') {\n editing?.onCancel?.(item);\n setTitle(item.title);\n }\n };\n\n if (isEditing) {\n return (\n <div\n onClick={(event) => event.stopPropagation()}\n onMouseDown={(event) => event.stopPropagation()}\n >\n <TextInput\n autoFocus\n value={title}\n size=\"s\"\n validationState={isTitleEmpty ? 'invalid' : undefined}\n onKeyDown={handleKeyDown}\n onUpdate={setTitle}\n />\n </div>\n );\n }\n\n return <Text ellipsis>{item.title}</Text>;\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAkD,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,CAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CA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,CAAC;EAEd;EAEA,oBAAO,IAAAmB,eAAA,EAACY,WAAI;IAACC,QAAQ;IAAAV,QAAA,EAAE7B,IAAI,CAACI;EAAK,CAAO,CAAC;AAC7C,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "EditableRowTitle", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _EditableRowTitle.EditableRowTitle;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _EditableRowTitle = require("./EditableRowTitle");
|
|
13
|
+
// #sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_EditableRowTitle","require"],"sources":["index.ts"],"sourcesContent":["export {EditableRowTitle} from './EditableRowTitle';\nexport type {EditableRowTitleProps} from './EditableRowTitle';\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { QueryListFilterConfig } from '../../types/queryList';
|
|
3
3
|
import './HistoryFilter.scss';
|
|
4
|
-
export declare const HistoryFilter: FC<
|
|
4
|
+
export declare const HistoryFilter: FC<QueryListFilterConfig>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_uikit","_useToggle3","_bemCnLite","_interopRequireDefault","_SimpleForm","_i18n","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FunnelIcon","props","_jsx","_objectSpread","children","fill","fillRule","d","clipRule","defaultProps","xmlns","width","height","viewBox","ArrowRotateLeftIcon","block","cn","HistoryFilter","exports","_ref","_ref2","_ref$fields","fields","values","initialValues","isChanged","onApply","onReset","_useState","useState","_useState2","_slicedToArray","buttonElement","setButtonElement","_useToggle","useToggle","_useToggle2","open","toggleOpen","valuesRef","useRef","_jsxs","_Fragment","Button","ref","onClick","view","Icon","data","size","Popup","anchorElement","onOpenChange","className","placement","SimpleForm","onValuesChange","nextValues","current","Flex","gap","i18n"],"sources":["HistoryFilter.tsx"],"sourcesContent":["import React, {FC, useRef, useState} from 'react';\nimport {Button, Flex, Icon, Popup} from '@gravity-ui/uikit';\nimport FunnelIcon from '@gravity-ui/icons/svgs/funnel.svg';\nimport ArrowRotateLeftIcon from '@gravity-ui/icons/svgs/arrow-rotate-left.svg';\nimport {useToggle} from '../../helpers/useToggle';\nimport {
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_uikit","_useToggle3","_bemCnLite","_interopRequireDefault","_SimpleForm","_i18n","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FunnelIcon","props","_jsx","_objectSpread","children","fill","fillRule","d","clipRule","defaultProps","xmlns","width","height","viewBox","ArrowRotateLeftIcon","block","cn","HistoryFilter","exports","_ref","_ref2","_ref$fields","fields","values","initialValues","isChanged","onApply","onReset","_useState","useState","_useState2","_slicedToArray","buttonElement","setButtonElement","_useToggle","useToggle","_useToggle2","open","toggleOpen","valuesRef","useRef","_jsxs","_Fragment","Button","ref","onClick","view","Icon","data","size","Popup","anchorElement","onOpenChange","className","placement","SimpleForm","onValuesChange","nextValues","current","Flex","gap","i18n"],"sources":["HistoryFilter.tsx"],"sourcesContent":["import React, {FC, useRef, useState} from 'react';\nimport {Button, Flex, Icon, Popup} from '@gravity-ui/uikit';\nimport FunnelIcon from '@gravity-ui/icons/svgs/funnel.svg';\nimport ArrowRotateLeftIcon from '@gravity-ui/icons/svgs/arrow-rotate-left.svg';\nimport {useToggle} from '../../helpers/useToggle';\nimport {QueryListFilterConfig} from '../../types/queryList';\nimport cn from 'bem-cn-lite';\nimport {SimpleForm} from '../SimpleForm';\nimport i18n from './i18n';\nimport './HistoryFilter.scss';\n\nconst block = cn('qp-history-filter');\n\nexport const HistoryFilter: FC<QueryListFilterConfig> = ({\n fields = [],\n values,\n initialValues,\n isChanged,\n onApply,\n onReset,\n}) => {\n const [buttonElement, setButtonElement] = useState<HTMLButtonElement | null>(null);\n const [open, toggleOpen] = useToggle(false);\n const valuesRef = useRef<Record<string, any>>(values ?? initialValues ?? {});\n\n return (\n <>\n <Button\n ref={setButtonElement}\n onClick={toggleOpen}\n view={isChanged ? 'action' : 'normal'}\n >\n <Icon data={FunnelIcon} size={16} />\n </Button>\n <Popup\n anchorElement={buttonElement}\n open={open}\n onOpenChange={toggleOpen}\n className={block()}\n placement=\"bottom-start\"\n >\n <div className={block('container')}>\n <SimpleForm\n fields={fields}\n values={values}\n initialValues={initialValues}\n onValuesChange={(nextValues) => {\n valuesRef.current = nextValues;\n }}\n />\n </div>\n <Flex gap={3} className={block('container')}>\n <Button view=\"action\" onClick={() => onApply?.(valuesRef.current)}>\n {i18n('action_apply')}\n </Button>\n <Button onClick={onReset}>\n <Icon data={ArrowRotateLeftIcon} size={16} />\n {i18n('action_reset')}\n </Button>\n </Flex>\n </Popup>\n </>\n );\n};\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAGA,IAAAE,WAAA,GAAAF,OAAA;AAEA,IAAAG,UAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAF,sBAAA,CAAAJ,OAAA;AACAA,OAAA;AAA8B,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,wBAAAS,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAA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Ac;QAAC,CACjB,CAAC,eACT,IAAApB,gBAAA,EAACE,aAAM;UAACE,OAAO,EAAElB,OAAQ;UAAAvB,QAAA,gBACrB,IAAAF,eAAA,EAAC6C,WAAI;YAACC,IAAI,EAAElC,mBAAoB;YAACmC,IAAI,EAAE;UAAG,CAAE,CAAC,EAC5C,IAAAY,aAAI,EAAC,cAAc,CAAC;QAAA,CACjB,CAAC;MAAA,CACP,CAAC;IAAA,CACJ,CAAC;EAAA,CACV,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["LazyList.scss"],"names":[],"mappings":"AACE;EACE,qDAAA;AAAJ
|
|
1
|
+
{"version":3,"sources":["LazyList.scss"],"names":[],"mappings":"AACE;EACE,qDAAA;AAAJ;AAGE;EACE,WAAA;AADJ;AAIE;EACE,YAAA;AAFJ","file":"LazyList.css","sourcesContent":[".qp-lazy-list {\n .g-list__item_selected:hover {\n background-color: var(--g-color-base-selection-hover);\n }\n\n &__sentinel {\n height: 1px;\n }\n\n &__spinner {\n height: 100%;\n }\n}\n"],"sourceRoot":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QueryListRow, QueryListRowAction } from '../../types/queryList';
|
|
3
|
+
export type RowActionsMenuProps<T extends QueryListRow = QueryListRow> = {
|
|
4
|
+
item: T;
|
|
5
|
+
actions?: QueryListRowAction<T>[];
|
|
6
|
+
};
|
|
7
|
+
export declare const RowActionsMenu: <T extends QueryListRow>({ item, actions }: RowActionsMenuProps<T>) => React.JSX.Element | null;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.RowActionsMenu = void 0;
|
|
7
7
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
8
8
|
require("core-js/modules/es.array.map.js");
|
|
9
9
|
require("core-js/modules/es.iterator.constructor.js");
|
|
@@ -31,18 +31,20 @@ EllipsisIcon.defaultProps = {
|
|
|
31
31
|
fill: "none",
|
|
32
32
|
viewBox: "0 0 16 16"
|
|
33
33
|
};
|
|
34
|
-
var
|
|
34
|
+
var RowActionsMenu = exports.RowActionsMenu = function RowActionsMenu(_ref) {
|
|
35
35
|
var item = _ref.item,
|
|
36
36
|
actions = _ref.actions;
|
|
37
37
|
var items = (0, _react.useMemo)(function () {
|
|
38
38
|
return actions === null || actions === void 0 ? void 0 : actions.map(function (_ref2) {
|
|
39
39
|
var icon = _ref2.icon,
|
|
40
40
|
text = _ref2.text,
|
|
41
|
+
theme = _ref2.theme,
|
|
41
42
|
hidden = _ref2.hidden,
|
|
42
43
|
disabled = _ref2.disabled,
|
|
43
44
|
onClick = _ref2.onClick;
|
|
44
45
|
return {
|
|
45
46
|
text: text,
|
|
47
|
+
theme: theme,
|
|
46
48
|
hidden: hidden,
|
|
47
49
|
disabled: disabled,
|
|
48
50
|
iconStart: icon,
|
|
@@ -52,9 +54,10 @@ var HistoryRowMenu = exports.HistoryRowMenu = function HistoryRowMenu(_ref) {
|
|
|
52
54
|
};
|
|
53
55
|
});
|
|
54
56
|
}, [actions, item]);
|
|
55
|
-
if (!actions
|
|
56
|
-
var handleClick = function handleClick(
|
|
57
|
-
|
|
57
|
+
if (!(actions !== null && actions !== void 0 && actions.length)) return null;
|
|
58
|
+
var handleClick = function handleClick(event) {
|
|
59
|
+
event.preventDefault();
|
|
60
|
+
event.stopPropagation();
|
|
58
61
|
};
|
|
59
62
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
60
63
|
onClick: handleClick,
|
|
@@ -73,4 +76,4 @@ var HistoryRowMenu = exports.HistoryRowMenu = function HistoryRowMenu(_ref) {
|
|
|
73
76
|
})
|
|
74
77
|
});
|
|
75
78
|
};
|
|
76
|
-
// #sourceMappingURL=
|
|
79
|
+
// #sourceMappingURL=RowActionsMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_uikit","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_interopRequireDefault","EllipsisIcon","props","_jsx","_objectSpread","children","fill","fillRule","d","clipRule","defaultProps","xmlns","width","height","viewBox","RowActionsMenu","exports","_ref","item","actions","items","useMemo","map","_ref2","icon","text","theme","hidden","disabled","onClick","iconStart","action","length","handleClick","event","preventDefault","stopPropagation","DropdownMenu","size","renderSwitcher","Button","Icon","data"],"sources":["RowActionsMenu.tsx"],"sourcesContent":["import React, {MouseEvent, useMemo} from 'react';\nimport {Button, DropdownMenu, DropdownMenuItem, Icon} from '@gravity-ui/uikit';\nimport EllipsisIcon from '@gravity-ui/icons/svgs/ellipsis.svg';\nimport {QueryListRow, QueryListRowAction} from '../../types/queryList';\n\nexport type RowActionsMenuProps<T extends QueryListRow = QueryListRow> = {\n item: T;\n actions?: QueryListRowAction<T>[];\n};\n\nexport const RowActionsMenu = <T extends QueryListRow>({item, actions}: RowActionsMenuProps<T>) => {\n const items = useMemo(() => {\n return actions?.map<DropdownMenuItem>(({icon, text, theme, hidden, disabled, onClick}) => {\n return {\n text,\n theme,\n hidden,\n disabled,\n iconStart: icon,\n action: () => {\n onClick(item);\n },\n };\n });\n }, [actions, item]);\n\n if (!actions?.length) return null;\n\n const handleClick = (event: MouseEvent<HTMLDivElement>) => {\n event.preventDefault();\n event.stopPropagation();\n };\n\n return (\n <div onClick={handleClick}>\n <DropdownMenu\n size=\"s\"\n renderSwitcher={(props) => (\n <Button {...props} size=\"xs\">\n <Icon data={EllipsisIcon} size={12} />\n </Button>\n )}\n items={items}\n />\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAA+E,IAAAE,W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;EAC3B,CAAC;EAED,oBACI,IAAAjC,eAAA;IAAK0B,OAAO,EAAEI,WAAY;IAAA5B,QAAA,eACtB,IAAAF,eAAA,EAACkC,mBAAY;MACTC,IAAI,EAAC,GAAG;MACRC,cAAc,EAAE,SAAhBA,cAAcA,CAAGrC,KAAK;QAAA,oBAClB,IAAAC,eAAA,EAACqC,aAAM,MAAApC,sBAAA,MAAAA,sBAAA,MAAKF,KAAK;UAAEoC,IAAI,EAAC,IAAI;UAAAjC,QAAA,eACxB,IAAAF,eAAA,EAACsC,WAAI;YAACC,IAAI,EAAEzC,YAAa;YAACqC,IAAI,EAAE;UAAG,CAAE;QAAC,EAClC,CAAC;MAAA,CACX;MACFlB,KAAK,EAAEA;IAAM,CAChB;EAAC,CACD,CAAC;AAEd,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "RowActionsMenu", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _RowActionsMenu.RowActionsMenu;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _RowActionsMenu = require("./RowActionsMenu");
|
|
13
|
+
// #sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_RowActionsMenu","require"],"sources":["index.ts"],"sourcesContent":["export {RowActionsMenu} from './RowActionsMenu';\nexport type {RowActionsMenuProps} from './RowActionsMenu';\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -14,6 +14,10 @@ export { HistoryFilter } from './HistoryFilter';
|
|
|
14
14
|
export { HistoryPrivateIcon } from './HistoryPrivateIcon';
|
|
15
15
|
export { FieldsSelector } from './FieldsSelector';
|
|
16
16
|
export type { FieldsSelectorOption, FieldsSelectorProps } from './FieldsSelector';
|
|
17
|
+
export { EditableRowTitle } from './EditableRowTitle';
|
|
18
|
+
export type { EditableRowTitleProps } from './EditableRowTitle';
|
|
19
|
+
export { RowActionsMenu } from './RowActionsMenu';
|
|
20
|
+
export type { RowActionsMenuProps } from './RowActionsMenu';
|
|
17
21
|
export { FieldsSearchToolbar } from './FieldsSearchToolbar';
|
|
18
22
|
export type { FieldsSearchToolbarProps } from './FieldsSearchToolbar';
|
|
19
23
|
export { HistoryGroupHeader } from './HistoryGroupHeader';
|
|
@@ -14,6 +14,8 @@ var _exportNames = {
|
|
|
14
14
|
HistoryFilter: true,
|
|
15
15
|
HistoryPrivateIcon: true,
|
|
16
16
|
FieldsSelector: true,
|
|
17
|
+
EditableRowTitle: true,
|
|
18
|
+
RowActionsMenu: true,
|
|
17
19
|
FieldsSearchToolbar: true,
|
|
18
20
|
HistoryGroupHeader: true,
|
|
19
21
|
EmptyContent: true,
|
|
@@ -78,6 +80,12 @@ Object.defineProperty(exports, "DataTable", {
|
|
|
78
80
|
return _DataTable.DataTable;
|
|
79
81
|
}
|
|
80
82
|
});
|
|
83
|
+
Object.defineProperty(exports, "EditableRowTitle", {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
get: function () {
|
|
86
|
+
return _EditableRowTitle.EditableRowTitle;
|
|
87
|
+
}
|
|
88
|
+
});
|
|
81
89
|
Object.defineProperty(exports, "EmptyContent", {
|
|
82
90
|
enumerable: true,
|
|
83
91
|
get: function () {
|
|
@@ -174,6 +182,12 @@ Object.defineProperty(exports, "QueryStatusIcon", {
|
|
|
174
182
|
return _QueryStatusIcon.QueryStatusIcon;
|
|
175
183
|
}
|
|
176
184
|
});
|
|
185
|
+
Object.defineProperty(exports, "RowActionsMenu", {
|
|
186
|
+
enumerable: true,
|
|
187
|
+
get: function () {
|
|
188
|
+
return _RowActionsMenu.RowActionsMenu;
|
|
189
|
+
}
|
|
190
|
+
});
|
|
177
191
|
Object.defineProperty(exports, "RowLink", {
|
|
178
192
|
enumerable: true,
|
|
179
193
|
get: function () {
|
|
@@ -232,6 +246,8 @@ var _PathEditor = require("./PathEditor");
|
|
|
232
246
|
var _HistoryFilter = require("./HistoryFilter");
|
|
233
247
|
var _HistoryPrivateIcon = require("./HistoryPrivateIcon");
|
|
234
248
|
var _FieldsSelector = require("./FieldsSelector");
|
|
249
|
+
var _EditableRowTitle = require("./EditableRowTitle");
|
|
250
|
+
var _RowActionsMenu = require("./RowActionsMenu");
|
|
235
251
|
var _FieldsSearchToolbar = require("./FieldsSearchToolbar");
|
|
236
252
|
var _HistoryGroupHeader = require("./HistoryGroupHeader");
|
|
237
253
|
var _EmptyContent = require("./EmptyContent");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_DataTable","require","_QueryStatusIcon","_QueryDuration","_LazyList","_ListSpinner","_Breadcrumbs","_PathEditor","_HistoryFilter","_HistoryPrivateIcon","_FieldsSelector","_FieldsSearchToolbar","_HistoryGroupHeader","_EmptyContent","_ClusterRow","_NavigationItemRow","_NavigationActionButtons","_SkeletonRows","_RowLink","_SearchRowLayout","_SearchWithButtons","_MonacoEditor","_AddChartButton","_ChartEditorForm","_Dashboard","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Chart"],"sources":["index.ts"],"sourcesContent":["export {DataTable} from './DataTable';\nexport type {DataTableProps, Column} from './DataTable';\nexport {QueryStatusIcon} from './QueryStatusIcon';\nexport {QueryDuration} from './QueryDuration';\nexport {LazyList} from './LazyList';\nexport type {LazyListProps} from './LazyList';\nexport {ListSpinner} from './ListSpinner';\nexport type {ListSpinnerProps} from './ListSpinner';\nexport {Breadcrumbs} from './Breadcrumbs';\nexport type {BreadcrumbsProps} from './Breadcrumbs';\nexport {PathEditor} from './PathEditor';\nexport type {PathEditorProps} from './PathEditor';\nexport {HistoryFilter} from './HistoryFilter';\nexport {HistoryPrivateIcon} from './HistoryPrivateIcon';\nexport {FieldsSelector} from './FieldsSelector';\nexport type {FieldsSelectorOption, FieldsSelectorProps} from './FieldsSelector';\nexport {FieldsSearchToolbar} from './FieldsSearchToolbar';\nexport type {FieldsSearchToolbarProps} from './FieldsSearchToolbar';\nexport {HistoryGroupHeader} from './HistoryGroupHeader';\nexport {EmptyContent} from './EmptyContent';\nexport type {EmptyContentProps, EmptyContentVariant} from './EmptyContent';\nexport {ClusterRow} from './ClusterRow';\nexport type {ClusterRowProps} from './ClusterRow';\nexport {NavigationItemRow} from './NavigationItemRow';\nexport type {NavigationItemRowProps} from './NavigationItemRow';\nexport {NavigationActionButtons} from './NavigationActionButtons';\nexport type {NavigationActionButtonsProps} from './NavigationActionButtons';\nexport {SkeletonRows} from './SkeletonRows';\nexport type {SkeletonRowsProps} from './SkeletonRows';\nexport {RowLink} from './RowLink';\nexport type {RowLinkProps} from './RowLink';\nexport {SearchRowLayout} from './SearchRowLayout';\nexport type {SearchRowLayoutProps} from './SearchRowLayout';\nexport {SearchWithButtons} from './SearchWithButtons';\nexport type {SearchWithButtonsProps} from './SearchWithButtons';\nexport {MonacoEditor} from './MonacoEditor';\nexport type {MonacoEditorConfig} from './MonacoEditor';\nexport {AddChartButton, DEFAULT_ADD_CHART_BUTTON_OPTIONS} from './AddChartButton';\nexport type {\n AddChartButtonOption,\n AddChartButtonProps,\n DefaultAddChartButtonValue,\n} from './AddChartButton';\nexport {ChartEditorForm} from './ChartEditorForm';\nexport type {\n ChartEditorFormProps,\n ChartEditorFormValues,\n ChartEditorLabels,\n ChartEditorOption,\n} from './ChartEditorForm';\nexport * from './Dashboard';\nexport {Chart} from './Chart';\nexport type {ChartAction, ChartProps} from './Chart';\nexport {\n MonacoLanguage,\n YT_DARK_HC_MONACO_THEME,\n YT_DARK_MONACO_THEME,\n YT_LIGHT_HC_MONACO_THEME,\n YT_LIGHT_MONACO_THEME,\n MONACO_THEME_BY_UI,\n} from './MonacoEditor';\nexport type {MonacoThemeName} from './MonacoEditor';\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_DataTable","require","_QueryStatusIcon","_QueryDuration","_LazyList","_ListSpinner","_Breadcrumbs","_PathEditor","_HistoryFilter","_HistoryPrivateIcon","_FieldsSelector","_EditableRowTitle","_RowActionsMenu","_FieldsSearchToolbar","_HistoryGroupHeader","_EmptyContent","_ClusterRow","_NavigationItemRow","_NavigationActionButtons","_SkeletonRows","_RowLink","_SearchRowLayout","_SearchWithButtons","_MonacoEditor","_AddChartButton","_ChartEditorForm","_Dashboard","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Chart"],"sources":["index.ts"],"sourcesContent":["export {DataTable} from './DataTable';\nexport type {DataTableProps, Column} from './DataTable';\nexport {QueryStatusIcon} from './QueryStatusIcon';\nexport {QueryDuration} from './QueryDuration';\nexport {LazyList} from './LazyList';\nexport type {LazyListProps} from './LazyList';\nexport {ListSpinner} from './ListSpinner';\nexport type {ListSpinnerProps} from './ListSpinner';\nexport {Breadcrumbs} from './Breadcrumbs';\nexport type {BreadcrumbsProps} from './Breadcrumbs';\nexport {PathEditor} from './PathEditor';\nexport type {PathEditorProps} from './PathEditor';\nexport {HistoryFilter} from './HistoryFilter';\nexport {HistoryPrivateIcon} from './HistoryPrivateIcon';\nexport {FieldsSelector} from './FieldsSelector';\nexport type {FieldsSelectorOption, FieldsSelectorProps} from './FieldsSelector';\nexport {EditableRowTitle} from './EditableRowTitle';\nexport type {EditableRowTitleProps} from './EditableRowTitle';\nexport {RowActionsMenu} from './RowActionsMenu';\nexport type {RowActionsMenuProps} from './RowActionsMenu';\nexport {FieldsSearchToolbar} from './FieldsSearchToolbar';\nexport type {FieldsSearchToolbarProps} from './FieldsSearchToolbar';\nexport {HistoryGroupHeader} from './HistoryGroupHeader';\nexport {EmptyContent} from './EmptyContent';\nexport type {EmptyContentProps, EmptyContentVariant} from './EmptyContent';\nexport {ClusterRow} from './ClusterRow';\nexport type {ClusterRowProps} from './ClusterRow';\nexport {NavigationItemRow} from './NavigationItemRow';\nexport type {NavigationItemRowProps} from './NavigationItemRow';\nexport {NavigationActionButtons} from './NavigationActionButtons';\nexport type {NavigationActionButtonsProps} from './NavigationActionButtons';\nexport {SkeletonRows} from './SkeletonRows';\nexport type {SkeletonRowsProps} from './SkeletonRows';\nexport {RowLink} from './RowLink';\nexport type {RowLinkProps} from './RowLink';\nexport {SearchRowLayout} from './SearchRowLayout';\nexport type {SearchRowLayoutProps} from './SearchRowLayout';\nexport {SearchWithButtons} from './SearchWithButtons';\nexport type {SearchWithButtonsProps} from './SearchWithButtons';\nexport {MonacoEditor} from './MonacoEditor';\nexport type {MonacoEditorConfig} from './MonacoEditor';\nexport {AddChartButton, DEFAULT_ADD_CHART_BUTTON_OPTIONS} from './AddChartButton';\nexport type {\n AddChartButtonOption,\n AddChartButtonProps,\n DefaultAddChartButtonValue,\n} from './AddChartButton';\nexport {ChartEditorForm} from './ChartEditorForm';\nexport type {\n ChartEditorFormProps,\n ChartEditorFormValues,\n ChartEditorLabels,\n ChartEditorOption,\n} from './ChartEditorForm';\nexport * from './Dashboard';\nexport {Chart} from './Chart';\nexport type {ChartAction, ChartProps} from './Chart';\nexport {\n MonacoLanguage,\n YT_DARK_HC_MONACO_THEME,\n YT_DARK_MONACO_THEME,\n YT_LIGHT_HC_MONACO_THEME,\n YT_LIGHT_MONACO_THEME,\n MONACO_THEME_BY_UI,\n} from './MonacoEditor';\nexport type {MonacoThemeName} from './MonacoEditor';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,gBAAA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AAA;AAAA;AACA,IAAAS,MAAA,GAAAtC,OAAA","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getListKey: <T extends
|
|
1
|
+
import { QueryListItem, QueryListRow, QueryListRowVariant } from '../types/queryList';
|
|
2
|
+
export declare const getListKey: <T extends QueryListRow>(items: QueryListItem<T>[], variant: QueryListRowVariant) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getListKey","exports","items","variant","itemsKey","map","item","concat","header","id","join"],"sources":["getListKey.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"names":["getListKey","exports","items","variant","itemsKey","map","item","concat","header","id","join"],"sources":["getListKey.ts"],"sourcesContent":["import {QueryListItem, QueryListRow, QueryListRowVariant} from '../types/queryList';\n\nexport const getListKey = <T extends QueryListRow>(\n items: QueryListItem<T>[],\n variant: QueryListRowVariant,\n): string => {\n const itemsKey = items\n .map((item) => ('header' in item ? `h:${item.header}` : `r:${item.id}`))\n .join(',');\n\n return `${variant}:${itemsKey}`;\n};\n"],"mappings":";;;;;;;;;;;;AAEO,IAAMA,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,SAAbA,UAAUA,CACnBE,KAAyB,EACzBC,OAA4B,EACnB;EACT,IAAMC,QAAQ,GAAGF,KAAK,CACjBG,GAAG,CAAC,UAACC,IAAI;IAAA,OAAM,QAAQ,IAAIA,IAAI,QAAAC,MAAA,CAAQD,IAAI,CAACE,MAAM,SAAAD,MAAA,CAAUD,IAAI,CAACG,EAAE,CAAE;EAAA,CAAC,CAAC,CACvEC,IAAI,CAAC,GAAG,CAAC;EAEd,UAAAH,MAAA,CAAUJ,OAAO,OAAAI,MAAA,CAAIH,QAAQ;AACjC,CAAC","ignoreList":[]}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QueryListFieldKey } from '../types/queryList';
|
|
2
|
+
import { QueryHistoryRow } from '../types/history';
|
|
2
3
|
/**
|
|
3
4
|
* A field is visible either when no `visibleFields` config is provided
|
|
4
5
|
* (the consumer doesn't opt into the feature — everything is shown), or when
|
|
5
6
|
* the field key is explicitly included in `visibleFields.value`.
|
|
6
7
|
*
|
|
7
8
|
* `visibleFields` is accepted loosely as `{value: string[]}` (rather than the
|
|
8
|
-
* generic `
|
|
9
|
+
* generic `QueryListVisibleFieldsConfig<T>`) so this helper works for any
|
|
9
10
|
* `T extends QueryHistoryRow` without fighting TS variance on generic key
|
|
10
|
-
* unions; `field` still uses `
|
|
11
|
+
* unions; `field` still uses `QueryListFieldKey<QueryHistoryRow>` to keep
|
|
11
12
|
* typo-protection for the built-in fields checked by the row renderers.
|
|
12
13
|
*/
|
|
13
14
|
export declare const isFieldVisible: (visibleFields: {
|
|
14
15
|
value: string[];
|
|
15
|
-
} | undefined, field:
|
|
16
|
+
} | undefined, field: QueryListFieldKey<QueryHistoryRow>) => boolean;
|
|
@@ -12,9 +12,9 @@ require("core-js/modules/es.string.includes.js");
|
|
|
12
12
|
* the field key is explicitly included in `visibleFields.value`.
|
|
13
13
|
*
|
|
14
14
|
* `visibleFields` is accepted loosely as `{value: string[]}` (rather than the
|
|
15
|
-
* generic `
|
|
15
|
+
* generic `QueryListVisibleFieldsConfig<T>`) so this helper works for any
|
|
16
16
|
* `T extends QueryHistoryRow` without fighting TS variance on generic key
|
|
17
|
-
* unions; `field` still uses `
|
|
17
|
+
* unions; `field` still uses `QueryListFieldKey<QueryHistoryRow>` to keep
|
|
18
18
|
* typo-protection for the built-in fields checked by the row renderers.
|
|
19
19
|
*/
|
|
20
20
|
var isFieldVisible = exports.isFieldVisible = function isFieldVisible(visibleFields, field) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isFieldVisible","exports","visibleFields","field","undefined","value","includes"],"sources":["isFieldVisible.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"names":["isFieldVisible","exports","visibleFields","field","undefined","value","includes"],"sources":["isFieldVisible.ts"],"sourcesContent":["import {QueryListFieldKey} from '../types/queryList';\nimport {QueryHistoryRow} from '../types/history';\n\n/**\n * A field is visible either when no `visibleFields` config is provided\n * (the consumer doesn't opt into the feature — everything is shown), or when\n * the field key is explicitly included in `visibleFields.value`.\n *\n * `visibleFields` is accepted loosely as `{value: string[]}` (rather than the\n * generic `QueryListVisibleFieldsConfig<T>`) so this helper works for any\n * `T extends QueryHistoryRow` without fighting TS variance on generic key\n * unions; `field` still uses `QueryListFieldKey<QueryHistoryRow>` to keep\n * typo-protection for the built-in fields checked by the row renderers.\n */\nexport const isFieldVisible = (\n visibleFields: {value: string[]} | undefined,\n field: QueryListFieldKey<QueryHistoryRow>,\n): boolean => {\n return visibleFields === undefined || visibleFields.value.includes(field);\n};\n"],"mappings":";;;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMA,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,SAAjBA,cAAcA,CACvBE,aAA4C,EAC5CC,KAAyC,EAC/B;EACV,OAAOD,aAAa,KAAKE,SAAS,IAAIF,aAAa,CAACG,KAAK,CAACC,QAAQ,CAACH,KAAK,CAAC;AAC7E,CAAC","ignoreList":[]}
|
|
@@ -3,5 +3,6 @@ type Date = DateTime | string | number | undefined;
|
|
|
3
3
|
export declare const formatTime: (date: Date) => string | undefined;
|
|
4
4
|
export declare const durationDates: (date1: Date, date2: Date) => string | undefined;
|
|
5
5
|
export declare const formatTimeCanonical: (ts: Date) => string | undefined;
|
|
6
|
+
export declare const formatDateCanonical: (ts: Date) => string | undefined;
|
|
6
7
|
export declare const getTimestampFromDate: (date: Date) => number | undefined;
|
|
7
8
|
export {};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getTimestampFromDate = exports.formatTimeCanonical = exports.formatTime = exports.durationDates = void 0;
|
|
6
|
+
exports.getTimestampFromDate = exports.formatTimeCanonical = exports.formatTime = exports.formatDateCanonical = exports.durationDates = void 0;
|
|
7
7
|
var _dateUtils = require("@gravity-ui/date-utils");
|
|
8
8
|
var formatTime = exports.formatTime = function formatTime(date) {
|
|
9
9
|
var _dateTimeParse;
|
|
@@ -21,8 +21,12 @@ var formatTimeCanonical = exports.formatTimeCanonical = function formatTimeCanon
|
|
|
21
21
|
var _dateTimeParse3;
|
|
22
22
|
return (_dateTimeParse3 = (0, _dateUtils.dateTimeParse)(ts)) === null || _dateTimeParse3 === void 0 ? void 0 : _dateTimeParse3.format('DD.MM.YYYY, HH:mm');
|
|
23
23
|
};
|
|
24
|
-
var
|
|
24
|
+
var formatDateCanonical = exports.formatDateCanonical = function formatDateCanonical(ts) {
|
|
25
25
|
var _dateTimeParse4;
|
|
26
|
-
return (_dateTimeParse4 = (0, _dateUtils.dateTimeParse)(
|
|
26
|
+
return (_dateTimeParse4 = (0, _dateUtils.dateTimeParse)(ts)) === null || _dateTimeParse4 === void 0 ? void 0 : _dateTimeParse4.format('DD.MM.YYYY');
|
|
27
|
+
};
|
|
28
|
+
var getTimestampFromDate = exports.getTimestampFromDate = function getTimestampFromDate(date) {
|
|
29
|
+
var _dateTimeParse5;
|
|
30
|
+
return (_dateTimeParse5 = (0, _dateUtils.dateTimeParse)(date)) === null || _dateTimeParse5 === void 0 ? void 0 : _dateTimeParse5.valueOf();
|
|
27
31
|
};
|
|
28
32
|
// #sourceMappingURL=time.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_dateUtils","require","formatTime","exports","date","_dateTimeParse","dateTimeParse","format","durationDates","date1","date2","_dateTimeParse2","start","dateTime","end","diff","formatTimeCanonical","ts","_dateTimeParse3","
|
|
1
|
+
{"version":3,"names":["_dateUtils","require","formatTime","exports","date","_dateTimeParse","dateTimeParse","format","durationDates","date1","date2","_dateTimeParse2","start","dateTime","end","diff","formatTimeCanonical","ts","_dateTimeParse3","formatDateCanonical","_dateTimeParse4","getTimestampFromDate","_dateTimeParse5","valueOf"],"sources":["time.ts"],"sourcesContent":["import {DateTime, dateTime, dateTimeParse} from '@gravity-ui/date-utils';\n\ntype Date = DateTime | string | number | undefined;\n\nexport const formatTime = (date: Date) => {\n return dateTimeParse(date)?.format('HH:mm');\n};\n\nexport const durationDates = (date1: Date, date2: Date) => {\n if (!date1 && !date2) return '--:--';\n\n const start = dateTimeParse(date1) || dateTime();\n const end = dateTimeParse(date2) || dateTime();\n const diff = end?.diff(start);\n\n return dateTimeParse(diff)?.format('HH:mm');\n};\n\nexport const formatTimeCanonical = (ts: Date) => {\n return dateTimeParse(ts)?.format('DD.MM.YYYY, HH:mm');\n};\n\nexport const formatDateCanonical = (ts: Date) => {\n return dateTimeParse(ts)?.format('DD.MM.YYYY');\n};\n\nexport const getTimestampFromDate = (date: Date) => {\n return dateTimeParse(date)?.valueOf();\n};\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAIO,IAAMC,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,SAAbA,UAAUA,CAAIE,IAAU,EAAK;EAAA,IAAAC,cAAA;EACtC,QAAAA,cAAA,GAAO,IAAAC,wBAAa,EAACF,IAAI,CAAC,cAAAC,cAAA,uBAAnBA,cAAA,CAAqBE,MAAM,CAAC,OAAO,CAAC;AAC/C,CAAC;AAEM,IAAMC,aAAa,GAAAL,OAAA,CAAAK,aAAA,GAAG,SAAhBA,aAAaA,CAAIC,KAAW,EAAEC,KAAW,EAAK;EAAA,IAAAC,eAAA;EACvD,IAAI,CAACF,KAAK,IAAI,CAACC,KAAK,EAAE,OAAO,OAAO;EAEpC,IAAME,KAAK,GAAG,IAAAN,wBAAa,EAACG,KAAK,CAAC,IAAI,IAAAI,mBAAQ,EAAC,CAAC;EAChD,IAAMC,GAAG,GAAG,IAAAR,wBAAa,EAACI,KAAK,CAAC,IAAI,IAAAG,mBAAQ,EAAC,CAAC;EAC9C,IAAME,IAAI,GAAGD,GAAG,aAAHA,GAAG,uBAAHA,GAAG,CAAEC,IAAI,CAACH,KAAK,CAAC;EAE7B,QAAAD,eAAA,GAAO,IAAAL,wBAAa,EAACS,IAAI,CAAC,cAAAJ,eAAA,uBAAnBA,eAAA,CAAqBJ,MAAM,CAAC,OAAO,CAAC;AAC/C,CAAC;AAEM,IAAMS,mBAAmB,GAAAb,OAAA,CAAAa,mBAAA,GAAG,SAAtBA,mBAAmBA,CAAIC,EAAQ,EAAK;EAAA,IAAAC,eAAA;EAC7C,QAAAA,eAAA,GAAO,IAAAZ,wBAAa,EAACW,EAAE,CAAC,cAAAC,eAAA,uBAAjBA,eAAA,CAAmBX,MAAM,CAAC,mBAAmB,CAAC;AACzD,CAAC;AAEM,IAAMY,mBAAmB,GAAAhB,OAAA,CAAAgB,mBAAA,GAAG,SAAtBA,mBAAmBA,CAAIF,EAAQ,EAAK;EAAA,IAAAG,eAAA;EAC7C,QAAAA,eAAA,GAAO,IAAAd,wBAAa,EAACW,EAAE,CAAC,cAAAG,eAAA,uBAAjBA,eAAA,CAAmBb,MAAM,CAAC,YAAY,CAAC;AAClD,CAAC;AAEM,IAAMc,oBAAoB,GAAAlB,OAAA,CAAAkB,oBAAA,GAAG,SAAvBA,oBAAoBA,CAAIjB,IAAU,EAAK;EAAA,IAAAkB,eAAA;EAChD,QAAAA,eAAA,GAAO,IAAAhB,wBAAa,EAACF,IAAI,CAAC,cAAAkB,eAAA,uBAAnBA,eAAA,CAAqBC,OAAO,CAAC,CAAC;AACzC,CAAC","ignoreList":[]}
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from './components';
|
|
2
2
|
export * from './modules';
|
|
3
3
|
export * from './widgets';
|
|
4
|
+
export * from './types/queryList';
|
|
4
5
|
export * from './types/history';
|
|
6
|
+
export type { SavedQuery } from './types/savedQueries';
|
|
5
7
|
export * from './types/tutorial';
|
|
6
8
|
export * from './types/navigation';
|
|
7
9
|
export * from './types/pathEditor';
|
package/build/cjs/index.js
CHANGED
|
@@ -36,6 +36,17 @@ Object.keys(_widgets).forEach(function (key) {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
|
+
var _queryList = require("./types/queryList");
|
|
40
|
+
Object.keys(_queryList).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _queryList[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _queryList[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
39
50
|
var _history = require("./types/history");
|
|
40
51
|
Object.keys(_history).forEach(function (key) {
|
|
41
52
|
if (key === "default" || key === "__esModule") return;
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_components","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_modules","_widgets","_history","_tutorial","_navigation","_pathEditor"],"sources":["index.ts"],"sourcesContent":["export * from './components';\nexport * from './modules';\nexport * from './widgets';\nexport * from './types/history';\nexport * from './types/tutorial';\nexport * from './types/navigation';\nexport * from './types/pathEditor';\n"],"mappings":";;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,WAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,QAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,QAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,QAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,QAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,QAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,QAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,QAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,QAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,
|
|
1
|
+
{"version":3,"names":["_components","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_modules","_widgets","_queryList","_history","_tutorial","_navigation","_pathEditor"],"sources":["index.ts"],"sourcesContent":["export * from './components';\nexport * from './modules';\nexport * from './widgets';\nexport * from './types/queryList';\nexport * from './types/history';\nexport type {SavedQuery} from './types/savedQueries';\nexport * from './types/tutorial';\nexport * from './types/navigation';\nexport * from './types/pathEditor';\n"],"mappings":";;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CA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AAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAO,WAAA,CAAAX,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["HistoryComparisonActions.scss"],"names":[],"mappings":"AAAA;EACE,kBAAA;EACA,0CAAA;AACF","file":"HistoryComparisonActions.css","sourcesContent":[".qp-history-comparison-actions {\n padding: 12px 20px;\n background: var(--g-color-base-background);\n}\n"],"sourceRoot":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QueryListComparisonConfig, QueryListRow } from '../../types/queryList';
|
|
3
|
+
import './HistoryComparisonActions.scss';
|
|
4
|
+
export type HistoryComparisonActionsProps<T extends QueryListRow = QueryListRow> = {
|
|
5
|
+
comparison: QueryListComparisonConfig<T>;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const HistoryComparisonActions: <T extends QueryListRow>({ comparison: { enabled, comparedRowIds, onCompare, onCancel }, className, }: HistoryComparisonActionsProps<T>) => React.JSX.Element | null;
|