@gravity-ui/querieskit 1.1.0 → 1.3.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/.agents/skills/code-review-checklist/SKILL.md +62 -103
- package/AGENTS.md +12 -0
- package/CHANGELOG.md +29 -0
- package/CODEOWNERS +2 -1
- package/build/cjs/components/AttachmentList/AttachmentList.css +22 -0
- package/build/cjs/components/AttachmentList/AttachmentList.css.map +1 -0
- package/build/cjs/components/AttachmentList/AttachmentList.d.ts +17 -0
- package/build/cjs/components/AttachmentList/AttachmentList.js +75 -0
- package/build/cjs/components/AttachmentList/AttachmentList.js.map +1 -0
- package/build/cjs/components/AttachmentList/AttachmentList.stories.d.ts +93 -0
- package/build/cjs/components/AttachmentList/AttachmentList.stories.js +323 -0
- package/build/cjs/components/AttachmentList/AttachmentList.stories.js.map +1 -0
- package/build/cjs/components/AttachmentList/helpers/getIconByAttachmentName.d.ts +2 -0
- package/build/cjs/components/AttachmentList/helpers/getIconByAttachmentName.js +36 -0
- package/build/cjs/components/AttachmentList/helpers/getIconByAttachmentName.js.map +1 -0
- package/build/cjs/components/AttachmentList/helpers/objectLinkValidator.d.ts +11 -0
- package/build/cjs/components/AttachmentList/helpers/objectLinkValidator.js +30 -0
- package/build/cjs/components/AttachmentList/helpers/objectLinkValidator.js.map +1 -0
- package/build/cjs/components/AttachmentList/helpers/stringRequiredValidator.d.ts +2 -0
- package/build/cjs/components/AttachmentList/helpers/stringRequiredValidator.js +26 -0
- package/build/cjs/components/AttachmentList/helpers/stringRequiredValidator.js.map +1 -0
- package/build/cjs/components/AttachmentList/hooks/useKeyDownFormControl.d.ts +4 -0
- package/build/cjs/components/AttachmentList/hooks/useKeyDownFormControl.js +27 -0
- package/build/cjs/components/AttachmentList/hooks/useKeyDownFormControl.js.map +1 -0
- package/build/cjs/components/AttachmentList/hooks/useLabelRef.d.ts +4 -0
- package/build/cjs/components/AttachmentList/hooks/useLabelRef.js +35 -0
- package/build/cjs/components/AttachmentList/hooks/useLabelRef.js.map +1 -0
- package/build/cjs/components/AttachmentList/i18n/dicts.d.ts +23 -0
- package/build/cjs/components/AttachmentList/i18n/dicts.js +14 -0
- package/build/cjs/components/AttachmentList/i18n/dicts.js.map +1 -0
- package/build/cjs/components/AttachmentList/i18n/en.json +10 -0
- package/build/cjs/components/AttachmentList/i18n/index.d.ts +6 -0
- package/build/cjs/components/AttachmentList/i18n/index.js +11 -0
- package/build/cjs/components/AttachmentList/i18n/index.js.map +1 -0
- package/build/cjs/components/AttachmentList/i18n/ru.json +10 -0
- package/build/cjs/components/AttachmentList/index.d.ts +4 -0
- package/build/cjs/components/AttachmentList/index.js +40 -0
- package/build/cjs/components/AttachmentList/index.js.map +1 -0
- package/build/cjs/components/AttachmentList/internal/AttachmentItem/AttachmentItem.css +18 -0
- package/build/cjs/components/AttachmentList/internal/AttachmentItem/AttachmentItem.css.map +1 -0
- package/build/cjs/components/AttachmentList/internal/AttachmentItem/AttachmentItem.d.ts +16 -0
- package/build/cjs/components/AttachmentList/internal/AttachmentItem/AttachmentItem.js +106 -0
- package/build/cjs/components/AttachmentList/internal/AttachmentItem/AttachmentItem.js.map +1 -0
- package/build/cjs/components/AttachmentList/internal/AttachmentItem/index.d.ts +2 -0
- package/build/cjs/components/AttachmentList/internal/AttachmentItem/index.js +13 -0
- package/build/cjs/components/AttachmentList/internal/AttachmentItem/index.js.map +1 -0
- package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/EditAttachmentItem.d.ts +9 -0
- package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/EditAttachmentItem.js +22 -0
- package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/EditAttachmentItem.js.map +1 -0
- package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.css +17 -0
- package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.css.map +1 -0
- package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.d.ts +24 -0
- package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.js +175 -0
- package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.js.map +1 -0
- package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/FileEdit.d.ts +12 -0
- package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/FileEdit.js +91 -0
- package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/FileEdit.js.map +1 -0
- package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/index.d.ts +4 -0
- package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/index.js +13 -0
- package/build/cjs/components/AttachmentList/internal/EditAttachmentItem/index.js.map +1 -0
- package/build/cjs/components/AttachmentListPlaceholder/AttachmentListPlaceholder.css +4 -0
- package/build/cjs/components/AttachmentListPlaceholder/AttachmentListPlaceholder.css.map +1 -0
- package/build/cjs/components/AttachmentListPlaceholder/AttachmentListPlaceholder.d.ts +13 -0
- package/build/cjs/components/AttachmentListPlaceholder/AttachmentListPlaceholder.js +75 -0
- package/build/cjs/components/AttachmentListPlaceholder/AttachmentListPlaceholder.js.map +1 -0
- package/build/cjs/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.d.ts +29 -0
- package/build/cjs/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.js +36 -0
- package/build/cjs/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.js.map +1 -0
- package/build/cjs/components/AttachmentListPlaceholder/i18n/dicts.d.ts +17 -0
- package/build/cjs/components/AttachmentListPlaceholder/i18n/dicts.js +14 -0
- package/build/cjs/components/AttachmentListPlaceholder/i18n/dicts.js.map +1 -0
- package/build/cjs/components/AttachmentListPlaceholder/i18n/en.json +7 -0
- package/build/cjs/components/AttachmentListPlaceholder/i18n/index.d.ts +6 -0
- package/build/cjs/components/AttachmentListPlaceholder/i18n/index.js +11 -0
- package/build/cjs/components/AttachmentListPlaceholder/i18n/index.js.map +1 -0
- package/build/cjs/components/AttachmentListPlaceholder/i18n/ru.json +7 -0
- package/build/cjs/components/AttachmentListPlaceholder/index.d.ts +2 -0
- package/build/cjs/components/AttachmentListPlaceholder/index.js +13 -0
- package/build/cjs/components/AttachmentListPlaceholder/index.js.map +1 -0
- package/build/cjs/components/DataTable/DataTable.css +0 -7
- package/build/cjs/components/DataTable/DataTable.css.map +1 -1
- package/build/cjs/components/DataTable/DataTable.js +12 -5
- package/build/cjs/components/DataTable/DataTable.js.map +1 -1
- 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/ErrorTree/ErrorTree.d.ts +3 -0
- package/build/cjs/components/ErrorTree/ErrorTree.js +35 -0
- package/build/cjs/components/ErrorTree/ErrorTree.js.map +1 -0
- package/build/cjs/components/ErrorTree/ErrorTree.stories.d.ts +8 -0
- package/build/cjs/components/ErrorTree/ErrorTree.stories.js +101 -0
- package/build/cjs/components/ErrorTree/ErrorTree.stories.js.map +1 -0
- package/build/cjs/components/ErrorTree/helpers/formatAttributes.d.ts +2 -0
- package/build/cjs/components/ErrorTree/helpers/formatAttributes.js +16 -0
- package/build/cjs/components/ErrorTree/helpers/formatAttributes.js.map +1 -0
- package/build/cjs/components/ErrorTree/helpers/getIntermediateChain.d.ts +6 -0
- package/build/cjs/components/ErrorTree/helpers/getIntermediateChain.js +22 -0
- package/build/cjs/components/ErrorTree/helpers/getIntermediateChain.js.map +1 -0
- package/build/cjs/components/ErrorTree/i18n/dicts.d.ts +27 -0
- package/build/cjs/components/ErrorTree/i18n/dicts.js +14 -0
- package/build/cjs/components/ErrorTree/i18n/dicts.js.map +1 -0
- package/build/cjs/components/ErrorTree/i18n/en.json +11 -0
- package/build/cjs/components/ErrorTree/i18n/index.d.ts +6 -0
- package/build/cjs/components/ErrorTree/i18n/index.js +11 -0
- package/build/cjs/components/ErrorTree/i18n/index.js.map +1 -0
- package/build/cjs/components/ErrorTree/i18n/ru.json +13 -0
- package/build/cjs/components/ErrorTree/index.d.ts +1 -0
- package/build/cjs/components/ErrorTree/index.js +13 -0
- package/build/cjs/components/ErrorTree/index.js.map +1 -0
- package/build/cjs/components/ErrorTree/internal/ErrorTreeChildren.css +4 -0
- package/build/cjs/components/ErrorTree/internal/ErrorTreeChildren.css.map +1 -0
- package/build/cjs/components/ErrorTree/internal/ErrorTreeChildren.d.ts +10 -0
- package/build/cjs/components/ErrorTree/internal/ErrorTreeChildren.js +32 -0
- package/build/cjs/components/ErrorTree/internal/ErrorTreeChildren.js.map +1 -0
- package/build/cjs/components/ErrorTree/internal/ErrorTreeNode.css +80 -0
- package/build/cjs/components/ErrorTree/internal/ErrorTreeNode.css.map +1 -0
- package/build/cjs/components/ErrorTree/internal/ErrorTreeNode.d.ts +13 -0
- package/build/cjs/components/ErrorTree/internal/ErrorTreeNode.js +274 -0
- package/build/cjs/components/ErrorTree/internal/ErrorTreeNode.js.map +1 -0
- package/build/cjs/components/ErrorTree/internal/IntermediateMessages.css +10 -0
- package/build/cjs/components/ErrorTree/internal/IntermediateMessages.css.map +1 -0
- package/build/cjs/components/ErrorTree/internal/IntermediateMessages.d.ts +9 -0
- package/build/cjs/components/ErrorTree/internal/IntermediateMessages.js +118 -0
- package/build/cjs/components/ErrorTree/internal/IntermediateMessages.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/Icons/LogoCPlusPlus.d.ts +2 -0
- package/build/cjs/components/Icons/LogoCPlusPlus.js +35 -0
- package/build/cjs/components/Icons/LogoCPlusPlus.js.map +1 -0
- package/build/cjs/components/Icons/index.d.ts +1 -0
- package/build/cjs/components/Icons/index.js +13 -0
- package/build/cjs/components/Icons/index.js.map +1 -0
- package/build/cjs/components/LazyList/LazyList.css +0 -2
- package/build/cjs/components/LazyList/LazyList.css.map +1 -1
- package/build/cjs/components/QueryResultsTable/QueryResultsTable.css +53 -0
- package/build/cjs/components/QueryResultsTable/QueryResultsTable.css.map +1 -0
- package/build/cjs/components/QueryResultsTable/QueryResultsTable.d.ts +24 -0
- package/build/cjs/components/QueryResultsTable/QueryResultsTable.js +104 -0
- package/build/cjs/components/QueryResultsTable/QueryResultsTable.js.map +1 -0
- package/build/cjs/components/QueryResultsTable/helpers/formatQueryResultType.d.ts +3 -0
- package/build/cjs/components/QueryResultsTable/helpers/formatQueryResultType.js +90 -0
- package/build/cjs/components/QueryResultsTable/helpers/formatQueryResultType.js.map +1 -0
- package/build/cjs/components/QueryResultsTable/helpers/formatQueryResultValue.d.ts +11 -0
- package/build/cjs/components/QueryResultsTable/helpers/formatQueryResultValue.js +40 -0
- package/build/cjs/components/QueryResultsTable/helpers/formatQueryResultValue.js.map +1 -0
- package/build/cjs/components/QueryResultsTable/i18n/dicts.d.ts +13 -0
- package/build/cjs/components/QueryResultsTable/i18n/dicts.js +14 -0
- package/build/cjs/components/QueryResultsTable/i18n/dicts.js.map +1 -0
- package/build/cjs/components/QueryResultsTable/i18n/en.json +5 -0
- package/build/cjs/components/QueryResultsTable/i18n/index.d.ts +6 -0
- package/build/cjs/components/QueryResultsTable/i18n/index.js +11 -0
- package/build/cjs/components/QueryResultsTable/i18n/index.js.map +1 -0
- package/build/cjs/components/QueryResultsTable/i18n/ru.json +5 -0
- package/build/cjs/components/QueryResultsTable/index.d.ts +3 -0
- package/build/cjs/components/QueryResultsTable/index.js +20 -0
- package/build/cjs/components/QueryResultsTable/index.js.map +1 -0
- package/build/cjs/components/QueryResultsTable/internal/QueryResultCell.d.ts +11 -0
- package/build/cjs/components/QueryResultsTable/internal/QueryResultCell.js +79 -0
- package/build/cjs/components/QueryResultsTable/internal/QueryResultCell.js.map +1 -0
- 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 +9 -0
- package/build/cjs/components/index.js +64 -1
- package/build/cjs/components/index.js.map +1 -1
- package/build/cjs/helpers/createUuid.d.ts +1 -0
- package/build/cjs/helpers/createUuid.js +12 -0
- package/build/cjs/helpers/createUuid.js.map +1 -0
- 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/isObjectEqual.d.ts +1 -0
- package/build/cjs/helpers/isObjectEqual.js +30 -0
- package/build/cjs/helpers/isObjectEqual.js.map +1 -0
- 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/helpers/useDebouncedValue.d.ts +2 -0
- package/build/cjs/helpers/useDebouncedValue.js +27 -0
- package/build/cjs/helpers/useDebouncedValue.js.map +1 -0
- package/build/cjs/index.d.ts +5 -0
- package/build/cjs/index.js +44 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/modules/Attachments/Attachments.css +8 -0
- package/build/cjs/modules/Attachments/Attachments.css.map +1 -0
- package/build/cjs/modules/Attachments/Attachments.d.ts +22 -0
- package/build/cjs/modules/Attachments/Attachments.js +381 -0
- package/build/cjs/modules/Attachments/Attachments.js.map +1 -0
- package/build/cjs/modules/Attachments/Attachments.stories.d.ts +41 -0
- package/build/cjs/modules/Attachments/Attachments.stories.js +123 -0
- package/build/cjs/modules/Attachments/Attachments.stories.js.map +1 -0
- package/build/cjs/modules/Attachments/i18n/dicts.d.ts +13 -0
- package/build/cjs/modules/Attachments/i18n/dicts.js +14 -0
- package/build/cjs/modules/Attachments/i18n/dicts.js.map +1 -0
- package/build/cjs/modules/Attachments/i18n/en.json +5 -0
- package/build/cjs/modules/Attachments/i18n/index.d.ts +6 -0
- package/build/cjs/modules/Attachments/i18n/index.js +11 -0
- package/build/cjs/modules/Attachments/i18n/index.js.map +1 -0
- package/build/cjs/modules/Attachments/i18n/ru.json +5 -0
- package/build/cjs/modules/Attachments/index.d.ts +2 -0
- package/build/cjs/modules/Attachments/index.js +13 -0
- package/build/cjs/modules/Attachments/index.js.map +1 -0
- 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/NavigationPreview/NavigationPreview.css +7 -1
- package/build/cjs/modules/NavigationPreview/NavigationPreview.css.map +1 -1
- package/build/cjs/modules/NavigationPreview/NavigationPreview.d.ts +2 -2
- package/build/cjs/modules/NavigationPreview/NavigationPreview.js +37 -7
- package/build/cjs/modules/NavigationPreview/NavigationPreview.js.map +1 -1
- package/build/cjs/modules/NavigationPreview/story/NavigationPreview.stories.d.ts +1 -0
- package/build/cjs/modules/NavigationPreview/story/NavigationPreview.stories.js +25 -1
- package/build/cjs/modules/NavigationPreview/story/NavigationPreview.stories.js.map +1 -1
- package/build/cjs/modules/NavigationPreview/story/mockData.d.ts +2 -2
- package/build/cjs/modules/NavigationPreview/story/mockData.js +16 -4
- package/build/cjs/modules/NavigationPreview/story/mockData.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/QueryStatistics/QueryStatistics.css +4 -0
- package/build/cjs/modules/QueryStatistics/QueryStatistics.css.map +1 -0
- package/build/cjs/modules/QueryStatistics/QueryStatistics.d.ts +4 -0
- package/build/cjs/modules/QueryStatistics/QueryStatistics.js +151 -0
- package/build/cjs/modules/QueryStatistics/QueryStatistics.js.map +1 -0
- package/build/cjs/modules/QueryStatistics/helpers.d.ts +15 -0
- package/build/cjs/modules/QueryStatistics/helpers.js +118 -0
- package/build/cjs/modules/QueryStatistics/helpers.js.map +1 -0
- package/build/cjs/modules/QueryStatistics/i18n/dicts.d.ts +35 -0
- package/build/cjs/modules/QueryStatistics/i18n/dicts.js +14 -0
- package/build/cjs/modules/QueryStatistics/i18n/dicts.js.map +1 -0
- package/build/cjs/modules/QueryStatistics/i18n/en.json +16 -0
- package/build/cjs/modules/QueryStatistics/i18n/index.d.ts +6 -0
- package/build/cjs/modules/QueryStatistics/i18n/index.js +11 -0
- package/build/cjs/modules/QueryStatistics/i18n/index.js.map +1 -0
- package/build/cjs/modules/QueryStatistics/i18n/ru.json +16 -0
- package/build/cjs/modules/QueryStatistics/index.d.ts +2 -0
- package/build/cjs/modules/QueryStatistics/index.js +13 -0
- package/build/cjs/modules/QueryStatistics/index.js.map +1 -0
- package/build/cjs/modules/QueryStatistics/internal/MetricCell.css +36 -0
- package/build/cjs/modules/QueryStatistics/internal/MetricCell.css.map +1 -0
- package/build/cjs/modules/QueryStatistics/internal/MetricCell.d.ts +9 -0
- package/build/cjs/modules/QueryStatistics/internal/MetricCell.js +121 -0
- package/build/cjs/modules/QueryStatistics/internal/MetricCell.js.map +1 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.css +21 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.css.map +1 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.d.ts +20 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.js +140 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.js.map +1 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.css +5 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.css.map +1 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.d.ts +10 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.js +55 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.js.map +1 -0
- package/build/cjs/modules/QueryStatistics/story/QueryStatistics.stories.d.ts +8 -0
- package/build/cjs/modules/QueryStatistics/story/QueryStatistics.stories.js +112 -0
- package/build/cjs/modules/QueryStatistics/story/QueryStatistics.stories.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 +11 -2
- package/build/cjs/modules/index.js +52 -8
- package/build/cjs/modules/index.js.map +1 -1
- package/build/cjs/types/declarations.d.ts +10 -0
- package/build/cjs/types/errorTree.d.ts +23 -0
- package/build/cjs/types/errorTree.js +6 -0
- package/build/cjs/types/errorTree.js.map +1 -0
- package/build/cjs/types/history.d.ts +4 -85
- package/build/cjs/types/history.js.map +1 -1
- package/build/cjs/types/navigation.d.ts +8 -1
- package/build/cjs/types/navigation.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/queryResults.d.ts +34 -0
- package/build/cjs/types/queryResults.js +6 -0
- package/build/cjs/types/queryResults.js.map +1 -0
- package/build/cjs/types/queryStatistics.d.ts +54 -0
- package/build/cjs/types/queryStatistics.js +6 -0
- package/build/cjs/types/queryStatistics.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/QueriesNavigation/QueriesNavigation.stories.js +40 -35
- package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.stories.js.map +1 -1
- package/build/cjs/widgets/QueriesNavigation/i18n/index.d.ts +2 -2
- package/build/cjs/widgets/QueryResults/QueryResults.css +19 -0
- package/build/cjs/widgets/QueryResults/QueryResults.css.map +1 -0
- package/build/cjs/widgets/QueryResults/QueryResults.d.ts +23 -0
- package/build/cjs/widgets/QueryResults/QueryResults.js +119 -0
- package/build/cjs/widgets/QueryResults/QueryResults.js.map +1 -0
- package/build/cjs/widgets/QueryResults/QueryResults.stories.d.ts +19 -0
- package/build/cjs/widgets/QueryResults/QueryResults.stories.js +199 -0
- package/build/cjs/widgets/QueryResults/QueryResults.stories.js.map +1 -0
- package/build/cjs/widgets/QueryResults/i18n/dicts.d.ts +25 -0
- package/build/cjs/widgets/QueryResults/i18n/dicts.js +14 -0
- package/build/cjs/widgets/QueryResults/i18n/dicts.js.map +1 -0
- package/build/cjs/widgets/QueryResults/i18n/en.json +10 -0
- package/build/cjs/widgets/QueryResults/i18n/index.d.ts +6 -0
- package/build/cjs/widgets/QueryResults/i18n/index.js +11 -0
- package/build/cjs/widgets/QueryResults/i18n/index.js.map +1 -0
- package/build/cjs/widgets/QueryResults/i18n/ru.json +12 -0
- package/build/cjs/widgets/QueryResults/index.d.ts +2 -0
- package/build/cjs/widgets/QueryResults/index.js +13 -0
- package/build/cjs/widgets/QueryResults/index.js.map +1 -0
- package/build/cjs/widgets/QueryResults/internal/QueryResultsSchema.d.ts +7 -0
- package/build/cjs/widgets/QueryResults/internal/QueryResultsSchema.js +49 -0
- package/build/cjs/widgets/QueryResults/internal/QueryResultsSchema.js.map +1 -0
- 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 +4 -0
- package/build/cjs/widgets/index.js +14 -0
- package/build/cjs/widgets/index.js.map +1 -1
- package/build/esm/components/AttachmentList/AttachmentList.css +22 -0
- package/build/esm/components/AttachmentList/AttachmentList.css.map +1 -0
- package/build/esm/components/AttachmentList/AttachmentList.d.ts +17 -0
- package/build/esm/components/AttachmentList/AttachmentList.js +67 -0
- package/build/esm/components/AttachmentList/AttachmentList.js.map +1 -0
- package/build/esm/components/AttachmentList/AttachmentList.scss +25 -0
- package/build/esm/components/AttachmentList/AttachmentList.stories.d.ts +93 -0
- package/build/esm/components/AttachmentList/AttachmentList.stories.js +315 -0
- package/build/esm/components/AttachmentList/AttachmentList.stories.js.map +1 -0
- package/build/esm/components/AttachmentList/helpers/getIconByAttachmentName.d.ts +2 -0
- package/build/esm/components/AttachmentList/helpers/getIconByAttachmentName.js +30 -0
- package/build/esm/components/AttachmentList/helpers/getIconByAttachmentName.js.map +1 -0
- package/build/esm/components/AttachmentList/helpers/objectLinkValidator.d.ts +11 -0
- package/build/esm/components/AttachmentList/helpers/objectLinkValidator.js +24 -0
- package/build/esm/components/AttachmentList/helpers/objectLinkValidator.js.map +1 -0
- package/build/esm/components/AttachmentList/helpers/stringRequiredValidator.d.ts +2 -0
- package/build/esm/components/AttachmentList/helpers/stringRequiredValidator.js +19 -0
- package/build/esm/components/AttachmentList/helpers/stringRequiredValidator.js.map +1 -0
- package/build/esm/components/AttachmentList/hooks/useKeyDownFormControl.d.ts +4 -0
- package/build/esm/components/AttachmentList/hooks/useKeyDownFormControl.js +21 -0
- package/build/esm/components/AttachmentList/hooks/useKeyDownFormControl.js.map +1 -0
- package/build/esm/components/AttachmentList/hooks/useLabelRef.d.ts +4 -0
- package/build/esm/components/AttachmentList/hooks/useLabelRef.js +28 -0
- package/build/esm/components/AttachmentList/hooks/useLabelRef.js.map +1 -0
- package/build/esm/components/AttachmentList/i18n/dicts.d.ts +23 -0
- package/build/esm/components/AttachmentList/i18n/dicts.js +7 -0
- package/build/esm/components/AttachmentList/i18n/dicts.js.map +1 -0
- package/build/esm/components/AttachmentList/i18n/en.json +10 -0
- package/build/esm/components/AttachmentList/i18n/index.d.ts +6 -0
- package/build/esm/components/AttachmentList/i18n/index.js +4 -0
- package/build/esm/components/AttachmentList/i18n/index.js.map +1 -0
- package/build/esm/components/AttachmentList/i18n/ru.json +10 -0
- package/build/esm/components/AttachmentList/index.d.ts +4 -0
- package/build/esm/components/AttachmentList/index.js +4 -0
- package/build/esm/components/AttachmentList/index.js.map +1 -0
- package/build/esm/components/AttachmentList/internal/AttachmentItem/AttachmentItem.css +18 -0
- package/build/esm/components/AttachmentList/internal/AttachmentItem/AttachmentItem.css.map +1 -0
- package/build/esm/components/AttachmentList/internal/AttachmentItem/AttachmentItem.d.ts +16 -0
- package/build/esm/components/AttachmentList/internal/AttachmentItem/AttachmentItem.js +98 -0
- package/build/esm/components/AttachmentList/internal/AttachmentItem/AttachmentItem.js.map +1 -0
- package/build/esm/components/AttachmentList/internal/AttachmentItem/AttachmentItem.scss +23 -0
- package/build/esm/components/AttachmentList/internal/AttachmentItem/index.d.ts +2 -0
- package/build/esm/components/AttachmentList/internal/AttachmentItem/index.js +2 -0
- package/build/esm/components/AttachmentList/internal/AttachmentItem/index.js.map +1 -0
- package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditAttachmentItem.d.ts +9 -0
- package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditAttachmentItem.js +15 -0
- package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditAttachmentItem.js.map +1 -0
- package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.css +17 -0
- package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.css.map +1 -0
- package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.d.ts +24 -0
- package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.js +167 -0
- package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.js.map +1 -0
- package/build/esm/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.scss +21 -0
- package/build/esm/components/AttachmentList/internal/EditAttachmentItem/FileEdit.d.ts +12 -0
- package/build/esm/components/AttachmentList/internal/EditAttachmentItem/FileEdit.js +83 -0
- package/build/esm/components/AttachmentList/internal/EditAttachmentItem/FileEdit.js.map +1 -0
- package/build/esm/components/AttachmentList/internal/EditAttachmentItem/index.d.ts +4 -0
- package/build/esm/components/AttachmentList/internal/EditAttachmentItem/index.js +2 -0
- package/build/esm/components/AttachmentList/internal/EditAttachmentItem/index.js.map +1 -0
- package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.css +4 -0
- package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.css.map +1 -0
- package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.d.ts +13 -0
- package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.js +68 -0
- package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.js.map +1 -0
- package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.scss +5 -0
- package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.d.ts +29 -0
- package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.js +29 -0
- package/build/esm/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.js.map +1 -0
- package/build/esm/components/AttachmentListPlaceholder/i18n/dicts.d.ts +17 -0
- package/build/esm/components/AttachmentListPlaceholder/i18n/dicts.js +7 -0
- package/build/esm/components/AttachmentListPlaceholder/i18n/dicts.js.map +1 -0
- package/build/esm/components/AttachmentListPlaceholder/i18n/en.json +7 -0
- package/build/esm/components/AttachmentListPlaceholder/i18n/index.d.ts +6 -0
- package/build/esm/components/AttachmentListPlaceholder/i18n/index.js +4 -0
- package/build/esm/components/AttachmentListPlaceholder/i18n/index.js.map +1 -0
- package/build/esm/components/AttachmentListPlaceholder/i18n/ru.json +7 -0
- package/build/esm/components/AttachmentListPlaceholder/index.d.ts +2 -0
- package/build/esm/components/AttachmentListPlaceholder/index.js +2 -0
- package/build/esm/components/AttachmentListPlaceholder/index.js.map +1 -0
- package/build/esm/components/DataTable/DataTable.css +0 -7
- package/build/esm/components/DataTable/DataTable.css.map +1 -1
- package/build/esm/components/DataTable/DataTable.js +12 -5
- package/build/esm/components/DataTable/DataTable.js.map +1 -1
- package/build/esm/components/DataTable/DataTable.scss +18 -26
- 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/ErrorTree/ErrorTree.d.ts +3 -0
- package/build/esm/components/ErrorTree/ErrorTree.js +28 -0
- package/build/esm/components/ErrorTree/ErrorTree.js.map +1 -0
- package/build/esm/components/ErrorTree/ErrorTree.stories.d.ts +8 -0
- package/build/esm/components/ErrorTree/ErrorTree.stories.js +94 -0
- package/build/esm/components/ErrorTree/ErrorTree.stories.js.map +1 -0
- package/build/esm/components/ErrorTree/helpers/formatAttributes.d.ts +2 -0
- package/build/esm/components/ErrorTree/helpers/formatAttributes.js +10 -0
- package/build/esm/components/ErrorTree/helpers/formatAttributes.js.map +1 -0
- package/build/esm/components/ErrorTree/helpers/getIntermediateChain.d.ts +6 -0
- package/build/esm/components/ErrorTree/helpers/getIntermediateChain.js +16 -0
- package/build/esm/components/ErrorTree/helpers/getIntermediateChain.js.map +1 -0
- package/build/esm/components/ErrorTree/i18n/dicts.d.ts +27 -0
- package/build/esm/components/ErrorTree/i18n/dicts.js +7 -0
- package/build/esm/components/ErrorTree/i18n/dicts.js.map +1 -0
- package/build/esm/components/ErrorTree/i18n/en.json +11 -0
- package/build/esm/components/ErrorTree/i18n/index.d.ts +6 -0
- package/build/esm/components/ErrorTree/i18n/index.js +4 -0
- package/build/esm/components/ErrorTree/i18n/index.js.map +1 -0
- package/build/esm/components/ErrorTree/i18n/ru.json +13 -0
- package/build/esm/components/ErrorTree/index.d.ts +1 -0
- package/build/esm/components/ErrorTree/index.js +2 -0
- package/build/esm/components/ErrorTree/index.js.map +1 -0
- package/build/esm/components/ErrorTree/internal/ErrorTreeChildren.css +4 -0
- package/build/esm/components/ErrorTree/internal/ErrorTreeChildren.css.map +1 -0
- package/build/esm/components/ErrorTree/internal/ErrorTreeChildren.d.ts +10 -0
- package/build/esm/components/ErrorTree/internal/ErrorTreeChildren.js +25 -0
- package/build/esm/components/ErrorTree/internal/ErrorTreeChildren.js.map +1 -0
- package/build/esm/components/ErrorTree/internal/ErrorTreeChildren.scss +5 -0
- package/build/esm/components/ErrorTree/internal/ErrorTreeNode.css +80 -0
- package/build/esm/components/ErrorTree/internal/ErrorTreeNode.css.map +1 -0
- package/build/esm/components/ErrorTree/internal/ErrorTreeNode.d.ts +13 -0
- package/build/esm/components/ErrorTree/internal/ErrorTreeNode.js +266 -0
- package/build/esm/components/ErrorTree/internal/ErrorTreeNode.js.map +1 -0
- package/build/esm/components/ErrorTree/internal/ErrorTreeNode.scss +95 -0
- package/build/esm/components/ErrorTree/internal/IntermediateMessages.css +10 -0
- package/build/esm/components/ErrorTree/internal/IntermediateMessages.css.map +1 -0
- package/build/esm/components/ErrorTree/internal/IntermediateMessages.d.ts +9 -0
- package/build/esm/components/ErrorTree/internal/IntermediateMessages.js +110 -0
- package/build/esm/components/ErrorTree/internal/IntermediateMessages.js.map +1 -0
- package/build/esm/components/ErrorTree/internal/IntermediateMessages.scss +13 -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/Icons/LogoCPlusPlus.d.ts +2 -0
- package/build/esm/components/Icons/LogoCPlusPlus.js +28 -0
- package/build/esm/components/Icons/LogoCPlusPlus.js.map +1 -0
- package/build/esm/components/Icons/index.d.ts +1 -0
- package/build/esm/components/Icons/index.js +2 -0
- package/build/esm/components/Icons/index.js.map +1 -0
- 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/QueryResultsTable/QueryResultsTable.css +53 -0
- package/build/esm/components/QueryResultsTable/QueryResultsTable.css.map +1 -0
- package/build/esm/components/QueryResultsTable/QueryResultsTable.d.ts +24 -0
- package/build/esm/components/QueryResultsTable/QueryResultsTable.js +96 -0
- package/build/esm/components/QueryResultsTable/QueryResultsTable.js.map +1 -0
- package/build/esm/components/QueryResultsTable/QueryResultsTable.scss +65 -0
- package/build/esm/components/QueryResultsTable/helpers/formatQueryResultType.d.ts +3 -0
- package/build/esm/components/QueryResultsTable/helpers/formatQueryResultType.js +82 -0
- package/build/esm/components/QueryResultsTable/helpers/formatQueryResultType.js.map +1 -0
- package/build/esm/components/QueryResultsTable/helpers/formatQueryResultValue.d.ts +11 -0
- package/build/esm/components/QueryResultsTable/helpers/formatQueryResultValue.js +33 -0
- package/build/esm/components/QueryResultsTable/helpers/formatQueryResultValue.js.map +1 -0
- package/build/esm/components/QueryResultsTable/i18n/dicts.d.ts +13 -0
- package/build/esm/components/QueryResultsTable/i18n/dicts.js +7 -0
- package/build/esm/components/QueryResultsTable/i18n/dicts.js.map +1 -0
- package/build/esm/components/QueryResultsTable/i18n/en.json +5 -0
- package/build/esm/components/QueryResultsTable/i18n/index.d.ts +6 -0
- package/build/esm/components/QueryResultsTable/i18n/index.js +4 -0
- package/build/esm/components/QueryResultsTable/i18n/index.js.map +1 -0
- package/build/esm/components/QueryResultsTable/i18n/ru.json +5 -0
- package/build/esm/components/QueryResultsTable/index.d.ts +3 -0
- package/build/esm/components/QueryResultsTable/index.js +3 -0
- package/build/esm/components/QueryResultsTable/index.js.map +1 -0
- package/build/esm/components/QueryResultsTable/internal/QueryResultCell.d.ts +11 -0
- package/build/esm/components/QueryResultsTable/internal/QueryResultCell.js +71 -0
- package/build/esm/components/QueryResultsTable/internal/QueryResultCell.js.map +1 -0
- 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 +9 -0
- package/build/esm/components/index.js +6 -0
- package/build/esm/components/index.js.map +1 -1
- package/build/esm/helpers/createUuid.d.ts +1 -0
- package/build/esm/helpers/createUuid.js +6 -0
- package/build/esm/helpers/createUuid.js.map +1 -0
- 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/isObjectEqual.d.ts +1 -0
- package/build/esm/helpers/isObjectEqual.js +23 -0
- package/build/esm/helpers/isObjectEqual.js.map +1 -0
- 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/helpers/useDebouncedValue.d.ts +2 -0
- package/build/esm/helpers/useDebouncedValue.js +21 -0
- package/build/esm/helpers/useDebouncedValue.js.map +1 -0
- package/build/esm/index.d.ts +5 -0
- package/build/esm/index.js +5 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/modules/Attachments/Attachments.css +8 -0
- package/build/esm/modules/Attachments/Attachments.css.map +1 -0
- package/build/esm/modules/Attachments/Attachments.d.ts +22 -0
- package/build/esm/modules/Attachments/Attachments.js +373 -0
- package/build/esm/modules/Attachments/Attachments.js.map +1 -0
- package/build/esm/modules/Attachments/Attachments.scss +10 -0
- package/build/esm/modules/Attachments/Attachments.stories.d.ts +41 -0
- package/build/esm/modules/Attachments/Attachments.stories.js +115 -0
- package/build/esm/modules/Attachments/Attachments.stories.js.map +1 -0
- package/build/esm/modules/Attachments/i18n/dicts.d.ts +13 -0
- package/build/esm/modules/Attachments/i18n/dicts.js +7 -0
- package/build/esm/modules/Attachments/i18n/dicts.js.map +1 -0
- package/build/esm/modules/Attachments/i18n/en.json +5 -0
- package/build/esm/modules/Attachments/i18n/index.d.ts +6 -0
- package/build/esm/modules/Attachments/i18n/index.js +4 -0
- package/build/esm/modules/Attachments/i18n/index.js.map +1 -0
- package/build/esm/modules/Attachments/i18n/ru.json +5 -0
- package/build/esm/modules/Attachments/index.d.ts +2 -0
- package/build/esm/modules/Attachments/index.js +2 -0
- package/build/esm/modules/Attachments/index.js.map +1 -0
- 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/NavigationPreview/NavigationPreview.css +7 -1
- package/build/esm/modules/NavigationPreview/NavigationPreview.css.map +1 -1
- package/build/esm/modules/NavigationPreview/NavigationPreview.d.ts +2 -2
- package/build/esm/modules/NavigationPreview/NavigationPreview.js +38 -8
- package/build/esm/modules/NavigationPreview/NavigationPreview.js.map +1 -1
- package/build/esm/modules/NavigationPreview/NavigationPreview.scss +25 -17
- package/build/esm/modules/NavigationPreview/story/NavigationPreview.stories.d.ts +1 -0
- package/build/esm/modules/NavigationPreview/story/NavigationPreview.stories.js +24 -0
- package/build/esm/modules/NavigationPreview/story/NavigationPreview.stories.js.map +1 -1
- package/build/esm/modules/NavigationPreview/story/mockData.d.ts +2 -2
- package/build/esm/modules/NavigationPreview/story/mockData.js +16 -4
- package/build/esm/modules/NavigationPreview/story/mockData.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/QueryStatistics/QueryStatistics.css +4 -0
- package/build/esm/modules/QueryStatistics/QueryStatistics.css.map +1 -0
- package/build/esm/modules/QueryStatistics/QueryStatistics.d.ts +4 -0
- package/build/esm/modules/QueryStatistics/QueryStatistics.js +143 -0
- package/build/esm/modules/QueryStatistics/QueryStatistics.js.map +1 -0
- package/build/esm/modules/QueryStatistics/QueryStatistics.scss +3 -0
- package/build/esm/modules/QueryStatistics/helpers.d.ts +15 -0
- package/build/esm/modules/QueryStatistics/helpers.js +106 -0
- package/build/esm/modules/QueryStatistics/helpers.js.map +1 -0
- package/build/esm/modules/QueryStatistics/i18n/dicts.d.ts +35 -0
- package/build/esm/modules/QueryStatistics/i18n/dicts.js +7 -0
- package/build/esm/modules/QueryStatistics/i18n/dicts.js.map +1 -0
- package/build/esm/modules/QueryStatistics/i18n/en.json +16 -0
- package/build/esm/modules/QueryStatistics/i18n/index.d.ts +6 -0
- package/build/esm/modules/QueryStatistics/i18n/index.js +4 -0
- package/build/esm/modules/QueryStatistics/i18n/index.js.map +1 -0
- package/build/esm/modules/QueryStatistics/i18n/ru.json +16 -0
- package/build/esm/modules/QueryStatistics/index.d.ts +2 -0
- package/build/esm/modules/QueryStatistics/index.js +2 -0
- package/build/esm/modules/QueryStatistics/index.js.map +1 -0
- package/build/esm/modules/QueryStatistics/internal/MetricCell.css +36 -0
- package/build/esm/modules/QueryStatistics/internal/MetricCell.css.map +1 -0
- package/build/esm/modules/QueryStatistics/internal/MetricCell.d.ts +9 -0
- package/build/esm/modules/QueryStatistics/internal/MetricCell.js +114 -0
- package/build/esm/modules/QueryStatistics/internal/MetricCell.js.map +1 -0
- package/build/esm/modules/QueryStatistics/internal/MetricCell.scss +12 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.css +21 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.css.map +1 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.d.ts +20 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.js +132 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.js.map +1 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.scss +8 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.css +5 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.css.map +1 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.d.ts +10 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.js +48 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.js.map +1 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.scss +1 -0
- package/build/esm/modules/QueryStatistics/story/QueryStatistics.stories.d.ts +8 -0
- package/build/esm/modules/QueryStatistics/story/QueryStatistics.stories.js +105 -0
- package/build/esm/modules/QueryStatistics/story/QueryStatistics.stories.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 +11 -2
- package/build/esm/modules/index.js +6 -1
- package/build/esm/modules/index.js.map +1 -1
- package/build/esm/types/declarations.d.ts +10 -0
- package/build/esm/types/errorTree.d.ts +23 -0
- package/build/esm/types/errorTree.js +2 -0
- package/build/esm/types/errorTree.js.map +1 -0
- package/build/esm/types/history.d.ts +4 -85
- package/build/esm/types/history.js.map +1 -1
- package/build/esm/types/navigation.d.ts +8 -1
- package/build/esm/types/navigation.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/queryResults.d.ts +34 -0
- package/build/esm/types/queryResults.js +2 -0
- package/build/esm/types/queryResults.js.map +1 -0
- package/build/esm/types/queryStatistics.d.ts +54 -0
- package/build/esm/types/queryStatistics.js +2 -0
- package/build/esm/types/queryStatistics.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/QueriesNavigation/QueriesNavigation.stories.js +40 -35
- package/build/esm/widgets/QueriesNavigation/QueriesNavigation.stories.js.map +1 -1
- package/build/esm/widgets/QueriesNavigation/i18n/index.d.ts +2 -2
- package/build/esm/widgets/QueryResults/QueryResults.css +19 -0
- package/build/esm/widgets/QueryResults/QueryResults.css.map +1 -0
- package/build/esm/widgets/QueryResults/QueryResults.d.ts +23 -0
- package/build/esm/widgets/QueryResults/QueryResults.js +111 -0
- package/build/esm/widgets/QueryResults/QueryResults.js.map +1 -0
- package/build/esm/widgets/QueryResults/QueryResults.scss +25 -0
- package/build/esm/widgets/QueryResults/QueryResults.stories.d.ts +19 -0
- package/build/esm/widgets/QueryResults/QueryResults.stories.js +191 -0
- package/build/esm/widgets/QueryResults/QueryResults.stories.js.map +1 -0
- package/build/esm/widgets/QueryResults/i18n/dicts.d.ts +25 -0
- package/build/esm/widgets/QueryResults/i18n/dicts.js +7 -0
- package/build/esm/widgets/QueryResults/i18n/dicts.js.map +1 -0
- package/build/esm/widgets/QueryResults/i18n/en.json +10 -0
- package/build/esm/widgets/QueryResults/i18n/index.d.ts +6 -0
- package/build/esm/widgets/QueryResults/i18n/index.js +4 -0
- package/build/esm/widgets/QueryResults/i18n/index.js.map +1 -0
- package/build/esm/widgets/QueryResults/i18n/ru.json +12 -0
- package/build/esm/widgets/QueryResults/index.d.ts +2 -0
- package/build/esm/widgets/QueryResults/index.js +2 -0
- package/build/esm/widgets/QueryResults/index.js.map +1 -0
- package/build/esm/widgets/QueryResults/internal/QueryResultsSchema.d.ts +7 -0
- package/build/esm/widgets/QueryResults/internal/QueryResultsSchema.js +41 -0
- package/build/esm/widgets/QueryResults/internal/QueryResultsSchema.js.map +1 -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 +4 -0
- package/build/esm/widgets/index.js +2 -0
- package/build/esm/widgets/index.js.map +1 -1
- package/package.json +1 -1
- package/plans/styles-rules.md +137 -0
- package/src/components/AttachmentList/AttachmentList.scss +25 -0
- package/src/components/AttachmentList/AttachmentList.stories.tsx +243 -0
- package/src/components/AttachmentList/AttachmentList.tsx +67 -0
- package/src/components/AttachmentList/helpers/getIconByAttachmentName.ts +36 -0
- package/src/components/AttachmentList/helpers/objectLinkValidator.ts +40 -0
- package/src/components/AttachmentList/helpers/stringRequiredValidator.ts +24 -0
- package/src/components/AttachmentList/hooks/useKeyDownFormControl.ts +22 -0
- package/src/components/AttachmentList/hooks/useLabelRef.ts +25 -0
- package/src/components/AttachmentList/i18n/dicts.ts +4 -0
- package/src/components/AttachmentList/i18n/en.json +10 -0
- package/src/components/AttachmentList/i18n/index.ts +5 -0
- package/src/components/AttachmentList/i18n/ru.json +10 -0
- package/src/components/AttachmentList/index.ts +4 -0
- package/src/components/AttachmentList/internal/AttachmentItem/AttachmentItem.scss +23 -0
- package/src/components/AttachmentList/internal/AttachmentItem/AttachmentItem.tsx +75 -0
- package/src/components/AttachmentList/internal/AttachmentItem/index.ts +2 -0
- package/src/components/AttachmentList/internal/EditAttachmentItem/EditAttachmentItem.tsx +21 -0
- package/src/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.scss +21 -0
- package/src/components/AttachmentList/internal/EditAttachmentItem/EditLinkItem.tsx +194 -0
- package/src/components/AttachmentList/internal/EditAttachmentItem/FileEdit.tsx +92 -0
- package/src/components/AttachmentList/internal/EditAttachmentItem/index.ts +4 -0
- package/src/components/AttachmentListPlaceholder/AttachmentListPlaceholder.scss +5 -0
- package/src/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.tsx +30 -0
- package/src/components/AttachmentListPlaceholder/AttachmentListPlaceholder.tsx +72 -0
- package/src/components/AttachmentListPlaceholder/assets/empty-attachments.svg +14 -0
- package/src/components/AttachmentListPlaceholder/i18n/dicts.ts +4 -0
- package/src/components/AttachmentListPlaceholder/i18n/en.json +7 -0
- package/src/components/AttachmentListPlaceholder/i18n/index.ts +5 -0
- package/src/components/AttachmentListPlaceholder/i18n/ru.json +7 -0
- package/src/components/AttachmentListPlaceholder/index.ts +2 -0
- package/src/components/DataTable/DataTable.scss +18 -26
- package/src/components/DataTable/DataTable.tsx +23 -4
- package/src/{modules/HistoryRow/HistoryRowTitle.tsx → components/EditableRowTitle/EditableRowTitle.tsx} +10 -12
- package/src/components/EditableRowTitle/index.ts +2 -0
- package/src/components/ErrorTree/ErrorTree.stories.tsx +94 -0
- package/src/components/ErrorTree/ErrorTree.tsx +30 -0
- package/src/components/ErrorTree/helpers/formatAttributes.ts +9 -0
- package/src/components/ErrorTree/helpers/getIntermediateChain.ts +21 -0
- package/src/components/ErrorTree/i18n/dicts.ts +4 -0
- package/src/components/ErrorTree/i18n/en.json +11 -0
- package/src/components/ErrorTree/i18n/index.ts +5 -0
- package/src/components/ErrorTree/i18n/ru.json +13 -0
- package/src/components/ErrorTree/index.ts +1 -0
- package/src/components/ErrorTree/internal/ErrorTreeChildren.scss +5 -0
- package/src/components/ErrorTree/internal/ErrorTreeChildren.tsx +25 -0
- package/src/components/ErrorTree/internal/ErrorTreeNode.scss +95 -0
- package/src/components/ErrorTree/internal/ErrorTreeNode.tsx +178 -0
- package/src/components/ErrorTree/internal/IntermediateMessages.scss +13 -0
- package/src/components/ErrorTree/internal/IntermediateMessages.tsx +127 -0
- package/src/components/HistoryFilter/HistoryFilter.tsx +2 -2
- package/src/components/Icons/LogoCPlusPlus.tsx +34 -0
- package/src/components/Icons/index.ts +1 -0
- package/src/components/LazyList/LazyList.scss +6 -6
- package/src/components/QueryResultsTable/QueryResultsTable.scss +65 -0
- package/src/components/QueryResultsTable/QueryResultsTable.tsx +112 -0
- package/src/components/QueryResultsTable/helpers/formatQueryResultType.ts +76 -0
- package/src/components/QueryResultsTable/helpers/formatQueryResultValue.ts +38 -0
- package/src/components/QueryResultsTable/i18n/dicts.ts +4 -0
- package/src/components/QueryResultsTable/i18n/en.json +5 -0
- package/src/components/QueryResultsTable/i18n/index.ts +4 -0
- package/src/components/QueryResultsTable/i18n/ru.json +5 -0
- package/src/components/QueryResultsTable/index.ts +3 -0
- package/src/components/QueryResultsTable/internal/QueryResultCell.tsx +63 -0
- package/src/components/RowActionsMenu/RowActionsMenu.tsx +47 -0
- package/src/components/RowActionsMenu/index.ts +2 -0
- package/src/components/index.ts +9 -0
- package/src/helpers/createUuid.ts +3 -0
- package/src/helpers/getListKey.ts +4 -4
- package/src/helpers/isFieldVisible.ts +5 -4
- package/src/helpers/isObjectEqual.ts +15 -0
- package/src/helpers/time.ts +4 -0
- package/src/helpers/useDebouncedValue.ts +14 -0
- package/src/index.ts +5 -0
- package/src/modules/Attachments/Attachments.scss +10 -0
- package/src/modules/Attachments/Attachments.stories.tsx +112 -0
- package/src/modules/Attachments/Attachments.tsx +336 -0
- package/src/modules/Attachments/i18n/dicts.ts +4 -0
- package/src/modules/Attachments/i18n/en.json +5 -0
- package/src/modules/Attachments/i18n/index.ts +5 -0
- package/src/modules/Attachments/i18n/ru.json +5 -0
- package/src/modules/Attachments/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/NavigationPreview/NavigationPreview.scss +25 -17
- package/src/modules/NavigationPreview/NavigationPreview.tsx +62 -17
- package/src/modules/NavigationPreview/story/NavigationPreview.stories.tsx +26 -1
- package/src/modules/NavigationPreview/story/mockData.ts +10 -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/QueryStatistics/QueryStatistics.scss +3 -0
- package/src/modules/QueryStatistics/QueryStatistics.tsx +125 -0
- package/src/modules/QueryStatistics/helpers.ts +96 -0
- package/src/modules/QueryStatistics/i18n/dicts.ts +4 -0
- package/src/modules/QueryStatistics/i18n/en.json +16 -0
- package/src/modules/QueryStatistics/i18n/index.ts +4 -0
- package/src/modules/QueryStatistics/i18n/ru.json +16 -0
- package/src/modules/QueryStatistics/index.ts +13 -0
- package/src/modules/QueryStatistics/internal/MetricCell.scss +12 -0
- package/src/modules/QueryStatistics/internal/MetricCell.tsx +99 -0
- package/src/modules/QueryStatistics/internal/QueryStatisticsTable.scss +8 -0
- package/src/modules/QueryStatistics/internal/QueryStatisticsTable.tsx +135 -0
- package/src/modules/QueryStatistics/internal/QueryStatisticsToolbar.scss +1 -0
- package/src/modules/QueryStatistics/internal/QueryStatisticsToolbar.tsx +61 -0
- package/src/modules/QueryStatistics/story/QueryStatistics.stories.tsx +71 -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 +22 -2
- package/src/types/declarations.d.ts +10 -0
- package/src/types/errorTree.ts +30 -0
- package/src/types/history.ts +4 -95
- package/src/types/navigation.ts +11 -1
- package/src/types/queryList.ts +92 -0
- package/src/types/queryResults.ts +48 -0
- package/src/types/queryStatistics.ts +67 -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/QueriesNavigation/QueriesNavigation.stories.tsx +42 -33
- package/src/widgets/QueryResults/QueryResults.scss +25 -0
- package/src/widgets/QueryResults/QueryResults.stories.tsx +155 -0
- package/src/widgets/QueryResults/QueryResults.tsx +121 -0
- package/src/widgets/QueryResults/i18n/dicts.ts +4 -0
- package/src/widgets/QueryResults/i18n/en.json +10 -0
- package/src/widgets/QueryResults/i18n/index.ts +4 -0
- package/src/widgets/QueryResults/i18n/ru.json +12 -0
- package/src/widgets/QueryResults/index.ts +2 -0
- package/src/widgets/QueryResults/internal/QueryResultsSchema.tsx +41 -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 +4 -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,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FileEdit = void 0;
|
|
7
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _uikit = require("@gravity-ui/uikit");
|
|
10
|
+
var _icons = require("@gravity-ui/icons");
|
|
11
|
+
var _useKeyDownFormControl = require("../../hooks/useKeyDownFormControl");
|
|
12
|
+
var _stringRequiredValidator = require("../../helpers/stringRequiredValidator");
|
|
13
|
+
var _i18n = _interopRequireDefault(require("../../i18n"));
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
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); }
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
var FileEdit = exports.FileEdit = function FileEdit(_ref) {
|
|
18
|
+
var _ref2;
|
|
19
|
+
var customerFileLabel = _ref.fileLabel,
|
|
20
|
+
customerFileName = _ref.fileName,
|
|
21
|
+
defaultFileName = _ref.defaultFileName,
|
|
22
|
+
onChangeFileName = _ref.onChangeFileName,
|
|
23
|
+
onAccept = _ref.onAccept,
|
|
24
|
+
onCancel = _ref.onCancel,
|
|
25
|
+
_ref$validator = _ref.validator,
|
|
26
|
+
validator = _ref$validator === void 0 ? _stringRequiredValidator.stringRequiredValidator : _ref$validator;
|
|
27
|
+
var _useState = (0, _react.useState)((_ref2 = defaultFileName !== null && defaultFileName !== void 0 ? defaultFileName : customerFileName) !== null && _ref2 !== void 0 ? _ref2 : ''),
|
|
28
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
29
|
+
innerFileName = _useState2[0],
|
|
30
|
+
setInnerFileName = _useState2[1];
|
|
31
|
+
var _useState3 = (0, _react.useState)(null),
|
|
32
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
33
|
+
errorMsg = _useState4[0],
|
|
34
|
+
setErrorMsg = _useState4[1];
|
|
35
|
+
var wasSubmittedRef = (0, _react.useRef)(false);
|
|
36
|
+
var label = customerFileLabel !== null && customerFileLabel !== void 0 ? customerFileLabel : (0, _i18n.default)('field_name');
|
|
37
|
+
var fileName = customerFileName !== null && customerFileName !== void 0 ? customerFileName : innerFileName;
|
|
38
|
+
var handleChangeFileName = function handleChangeFileName(patchFileName) {
|
|
39
|
+
if (errorMsg || wasSubmittedRef.current) {
|
|
40
|
+
setErrorMsg(validator(patchFileName));
|
|
41
|
+
}
|
|
42
|
+
setInnerFileName(patchFileName);
|
|
43
|
+
onChangeFileName === null || onChangeFileName === void 0 || onChangeFileName(patchFileName);
|
|
44
|
+
};
|
|
45
|
+
var handleAccept = function handleAccept() {
|
|
46
|
+
var error = validator(fileName);
|
|
47
|
+
wasSubmittedRef.current = true;
|
|
48
|
+
if (error) {
|
|
49
|
+
setErrorMsg(error);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
onAccept === null || onAccept === void 0 || onAccept(fileName);
|
|
53
|
+
};
|
|
54
|
+
var handleCancel = function handleCancel() {
|
|
55
|
+
onCancel === null || onCancel === void 0 || onCancel();
|
|
56
|
+
};
|
|
57
|
+
var _useKeyDownFormContro = (0, _useKeyDownFormControl.useKeyDownFormControl)(handleAccept, handleCancel),
|
|
58
|
+
handleEditorKeyDown = _useKeyDownFormContro.handleEditorKeyDown,
|
|
59
|
+
handleInputKeyDown = _useKeyDownFormContro.handleInputKeyDown;
|
|
60
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
|
|
61
|
+
onKeyDown: handleEditorKeyDown,
|
|
62
|
+
spacing: {
|
|
63
|
+
px: 4,
|
|
64
|
+
py: 1
|
|
65
|
+
},
|
|
66
|
+
width: "100%",
|
|
67
|
+
gap: 2,
|
|
68
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.TextInput, {
|
|
69
|
+
autoFocus: true,
|
|
70
|
+
label: label,
|
|
71
|
+
value: fileName,
|
|
72
|
+
error: Boolean(errorMsg),
|
|
73
|
+
errorMessage: errorMsg,
|
|
74
|
+
onKeyDown: handleInputKeyDown,
|
|
75
|
+
onUpdate: handleChangeFileName
|
|
76
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Button, {
|
|
77
|
+
view: "flat",
|
|
78
|
+
onClick: handleAccept,
|
|
79
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Icon, {
|
|
80
|
+
data: _icons.Check
|
|
81
|
+
})
|
|
82
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Button, {
|
|
83
|
+
view: "flat",
|
|
84
|
+
onClick: onCancel,
|
|
85
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Icon, {
|
|
86
|
+
data: _icons.Xmark
|
|
87
|
+
})
|
|
88
|
+
})]
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
// #sourceMappingURL=FileEdit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_uikit","_icons","_useKeyDownFormControl","_stringRequiredValidator","_i18n","_interopRequireDefault","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FileEdit","exports","_ref","_ref2","customerFileLabel","fileLabel","customerFileName","fileName","defaultFileName","onChangeFileName","onAccept","onCancel","_ref$validator","validator","stringRequiredValidator","_useState","useState","_useState2","_slicedToArray","innerFileName","setInnerFileName","_useState3","_useState4","errorMsg","setErrorMsg","wasSubmittedRef","useRef","label","i18n","handleChangeFileName","patchFileName","current","handleAccept","error","handleCancel","_useKeyDownFormContro","useKeyDownFormControl","handleEditorKeyDown","handleInputKeyDown","_jsxs","Flex","onKeyDown","spacing","px","py","width","gap","children","_jsx","TextInput","autoFocus","value","Boolean","errorMessage","onUpdate","Button","view","onClick","Icon","data","Check","Xmark"],"sources":["FileEdit.tsx"],"sourcesContent":["import React, {useRef, useState} from 'react';\nimport {Button, Flex, Icon, TextInput} from '@gravity-ui/uikit';\nimport {Check, Xmark} from '@gravity-ui/icons';\nimport {useKeyDownFormControl} from '../../hooks/useKeyDownFormControl';\nimport {Validator, stringRequiredValidator} from '../../helpers/stringRequiredValidator';\n\nimport i18n from '../../i18n';\n\nexport type EditFileItemProps = {\n fileName?: string;\n fileLabel?: string;\n defaultFileName?: string;\n onChangeFileName?: (fileName: string) => void;\n onAccept?: (newFileName: string) => void;\n onCancel?: () => void;\n validator?: Validator;\n};\n\nexport const FileEdit = ({\n fileLabel: customerFileLabel,\n fileName: customerFileName,\n defaultFileName,\n onChangeFileName,\n onAccept,\n onCancel,\n validator = stringRequiredValidator,\n}: EditFileItemProps) => {\n const [innerFileName, setInnerFileName] = useState<string>(\n defaultFileName ?? customerFileName ?? '',\n );\n\n const [errorMsg, setErrorMsg] = useState<string | null>(null);\n\n const wasSubmittedRef = useRef(false);\n\n const label = customerFileLabel ?? i18n('field_name');\n\n const fileName = customerFileName ?? innerFileName;\n\n const handleChangeFileName = (patchFileName: string) => {\n if (errorMsg || wasSubmittedRef.current) {\n setErrorMsg(validator(patchFileName));\n }\n\n setInnerFileName(patchFileName);\n onChangeFileName?.(patchFileName);\n };\n\n const handleAccept = () => {\n const error = validator(fileName);\n\n wasSubmittedRef.current = true;\n\n if (error) {\n setErrorMsg(error);\n return;\n }\n\n onAccept?.(fileName);\n };\n\n const handleCancel = () => {\n onCancel?.();\n };\n\n const {handleEditorKeyDown, handleInputKeyDown} = useKeyDownFormControl(\n handleAccept,\n handleCancel,\n );\n\n return (\n <Flex onKeyDown={handleEditorKeyDown} spacing={{px: 4, py: 1}} width=\"100%\" gap={2}>\n <TextInput\n autoFocus\n label={label}\n value={fileName}\n error={Boolean(errorMsg)}\n errorMessage={errorMsg}\n onKeyDown={handleInputKeyDown}\n onUpdate={handleChangeFileName}\n />\n\n <Button view=\"flat\" onClick={handleAccept}>\n <Icon data={Check} />\n </Button>\n\n <Button view=\"flat\" onClick={onCancel}>\n <Icon data={Xmark} />\n </Button>\n </Flex>\n );\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAH,OAAA;AACA,IAAAI,wBAAA,GAAAJ,OAAA;AAEA,IAAAK,KAAA,GAAAC,sBAAA,CAAAN,OAAA;AAA8B,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,wBAAAS,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uB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AI,EAAEE;MAAM,CAAE;IAAC,CACjB,CAAC;EAAA,CACP,CAAC;AAEf,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "EditAttachmentItem", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _EditAttachmentItem.EditAttachmentItem;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _EditAttachmentItem = require("./EditAttachmentItem");
|
|
13
|
+
// #sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_EditAttachmentItem","require"],"sources":["index.ts"],"sourcesContent":["export {EditAttachmentItem} from './EditAttachmentItem';\nexport type {EditAttachmentItemProps} from './EditAttachmentItem';\nexport type {EditLinkItemProps, EditLinkValues} from './EditLinkItem';\nexport type {EditFileItemProps} from './FileEdit';\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["AttachmentListPlaceholder.scss"],"names":[],"mappings":"AACI;EACI,8BAAA;AAAR","file":"AttachmentListPlaceholder.css","sourcesContent":[".qp-attachment-list-placeholder {\n &__doc-link {\n margin-top: var(--g-spacing-2);\n }\n}\n"],"sourceRoot":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import './AttachmentListPlaceholder.scss';
|
|
3
|
+
export type AttachmentListPlaceholderProps = {
|
|
4
|
+
title?: ReactNode;
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
linkForDoc?: string;
|
|
7
|
+
linkText?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
onAddFile?: () => void;
|
|
10
|
+
onAddLink?: () => void;
|
|
11
|
+
qa?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const AttachmentListPlaceholder: ({ title: customerTitle, description: customerDescription, linkForDoc, linkText: customerLinkText, className, onAddFile, onAddLink, qa, }: AttachmentListPlaceholderProps) => React.JSX.Element;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AttachmentListPlaceholder = void 0;
|
|
7
|
+
require("core-js/modules/es.symbol.js");
|
|
8
|
+
require("core-js/modules/es.symbol.description.js");
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _uikit = require("@gravity-ui/uikit");
|
|
11
|
+
var _icons = require("@gravity-ui/icons");
|
|
12
|
+
var _bemCnLite = _interopRequireDefault(require("bem-cn-lite"));
|
|
13
|
+
var _emptyAttachments = _interopRequireDefault(require("./assets/empty-attachments.svg"));
|
|
14
|
+
var _i18n = _interopRequireDefault(require("./i18n"));
|
|
15
|
+
require("./AttachmentListPlaceholder.css");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
+
var block = (0, _bemCnLite.default)('qp-attachment-list-placeholder');
|
|
19
|
+
var AttachmentListPlaceholder = exports.AttachmentListPlaceholder = function AttachmentListPlaceholder(_ref) {
|
|
20
|
+
var customerTitle = _ref.title,
|
|
21
|
+
customerDescription = _ref.description,
|
|
22
|
+
linkForDoc = _ref.linkForDoc,
|
|
23
|
+
customerLinkText = _ref.linkText,
|
|
24
|
+
className = _ref.className,
|
|
25
|
+
onAddFile = _ref.onAddFile,
|
|
26
|
+
onAddLink = _ref.onAddLink,
|
|
27
|
+
qa = _ref.qa;
|
|
28
|
+
var title = customerTitle !== null && customerTitle !== void 0 ? customerTitle : (0, _i18n.default)('title_no-attachments');
|
|
29
|
+
var description = customerDescription !== null && customerDescription !== void 0 ? customerDescription : (0, _i18n.default)('context_add-attachment-for-request');
|
|
30
|
+
var linkText = customerLinkText !== null && customerLinkText !== void 0 ? customerLinkText : (0, _i18n.default)('action_attachments-help');
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
|
|
32
|
+
direction: "column",
|
|
33
|
+
alignItems: "center",
|
|
34
|
+
justifyContent: "center",
|
|
35
|
+
gap: 5,
|
|
36
|
+
width: "100%",
|
|
37
|
+
height: "100%",
|
|
38
|
+
className: block(null, className),
|
|
39
|
+
"data-qa": qa,
|
|
40
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
41
|
+
src: "".concat(_emptyAttachments.default),
|
|
42
|
+
alt: "empty-attachments-image"
|
|
43
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
|
|
44
|
+
gap: 1,
|
|
45
|
+
direction: "column",
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Text, {
|
|
48
|
+
variant: "subheader-1",
|
|
49
|
+
children: title
|
|
50
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Text, {
|
|
51
|
+
variant: "body-1",
|
|
52
|
+
children: description
|
|
53
|
+
}), linkForDoc && /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Link, {
|
|
54
|
+
className: block('doc-link'),
|
|
55
|
+
href: linkForDoc,
|
|
56
|
+
children: linkText
|
|
57
|
+
})]
|
|
58
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
|
|
59
|
+
gap: 2,
|
|
60
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Button, {
|
|
61
|
+
onClick: onAddFile,
|
|
62
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Icon, {
|
|
63
|
+
data: _icons.Plus
|
|
64
|
+
}), (0, _i18n.default)('action_add-file')]
|
|
65
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Button, {
|
|
66
|
+
onClick: onAddLink,
|
|
67
|
+
view: "outlined",
|
|
68
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Icon, {
|
|
69
|
+
data: _icons.Plus
|
|
70
|
+
}), (0, _i18n.default)('action_add-link')]
|
|
71
|
+
})]
|
|
72
|
+
})]
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
// #sourceMappingURL=AttachmentListPlaceholder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_uikit","_icons","_bemCnLite","_emptyAttachments","_i18n","_jsxRuntime","e","__esModule","default","block","cn","AttachmentListPlaceholder","exports","_ref","customerTitle","title","customerDescription","description","linkForDoc","customerLinkText","linkText","className","onAddFile","onAddLink","qa","i18n","_jsxs","Flex","direction","alignItems","justifyContent","gap","width","height","children","_jsx","src","concat","image","alt","Text","variant","Link","href","Button","onClick","Icon","data","Plus","view"],"sources":["AttachmentListPlaceholder.tsx"],"sourcesContent":["import React, {ReactNode} from 'react';\nimport {Button, Flex, Icon, Link, Text} from '@gravity-ui/uikit';\nimport {Plus} from '@gravity-ui/icons';\nimport cn from 'bem-cn-lite';\nimport image from './assets/empty-attachments.svg';\nimport i18n from './i18n';\nimport './AttachmentListPlaceholder.scss';\n\nexport type AttachmentListPlaceholderProps = {\n title?: ReactNode;\n description?: ReactNode;\n linkForDoc?: string;\n linkText?: string;\n className?: string;\n onAddFile?: () => void;\n onAddLink?: () => void;\n qa?: string;\n};\n\nconst block = cn('qp-attachment-list-placeholder');\n\nexport const AttachmentListPlaceholder = ({\n title: customerTitle,\n description: customerDescription,\n linkForDoc,\n linkText: customerLinkText,\n className,\n onAddFile,\n onAddLink,\n qa,\n}: AttachmentListPlaceholderProps) => {\n const title = customerTitle ?? i18n('title_no-attachments');\n const description = customerDescription ?? i18n('context_add-attachment-for-request');\n const linkText = customerLinkText ?? i18n('action_attachments-help');\n\n return (\n <Flex\n direction=\"column\"\n alignItems=\"center\"\n justifyContent=\"center\"\n gap={5}\n width=\"100%\"\n height=\"100%\"\n className={block(null, className)}\n data-qa={qa}\n >\n <img src={`${image}`} alt=\"empty-attachments-image\" />\n\n <Flex gap={1} direction=\"column\" alignItems=\"center\">\n <Text variant=\"subheader-1\">{title}</Text>\n <Text variant=\"body-1\">{description}</Text>\n {linkForDoc && (\n <Link className={block('doc-link')} href={linkForDoc}>\n {linkText}\n </Link>\n )}\n </Flex>\n\n <Flex gap={2}>\n <Button onClick={onAddFile}>\n <Icon data={Plus} />\n {i18n('action_add-file')}\n </Button>\n\n <Button onClick={onAddLink} view=\"outlined\">\n <Icon data={Plus} />\n {i18n('action_add-link')}\n </Button>\n </Flex>\n </Flex>\n );\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,iBAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,KAAA,GAAAN,sBAAA,CAAAC,OAAA;AACAA,OAAA;AAA0C,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAa1C,IAAMG,KAAK,GAAG,IAAAC,kBAAE,EAAC,gCAAgC,CAAC;AAE3C,IAAMC,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA,GAAG,SAA5BA,yBAAyBA,CAAAE,IAAA,EASA;EAAA,IAR3BC,aAAa,GAAAD,IAAA,CAApBE,KAAK;IACQC,mBAAmB,GAAAH,IAAA,CAAhCI,WAAW;IACXC,UAAU,GAAA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AAC,EAC1CC,UAAU,iBACP,IAAAiB,eAAA,EAACO,WAAI;QAACrB,SAAS,EAAEZ,KAAK,CAAC,UAAU,CAAE;QAACkC,IAAI,EAAEzB,UAAW;QAAAgB,QAAA,EAChDd;MAAQ,CACP,CACT;IAAA,CACC,CAAC,eAEP,IAAAM,gBAAA,EAACC,WAAI;MAACI,GAAG,EAAE,CAAE;MAAAG,QAAA,gBACT,IAAAR,gBAAA,EAACkB,aAAM;QAACC,OAAO,EAAEvB,SAAU;QAAAY,QAAA,gBACvB,IAAAC,eAAA,EAACW,WAAI;UAACC,IAAI,EAAEC;QAAK,CAAE,CAAC,EACnB,IAAAvB,aAAI,EAAC,iBAAiB,CAAC;MAAA,CACpB,CAAC,eAET,IAAAC,gBAAA,EAACkB,aAAM;QAACC,OAAO,EAAEtB,SAAU;QAAC0B,IAAI,EAAC,UAAU;QAAAf,QAAA,gBACvC,IAAAC,eAAA,EAACW,WAAI;UAACC,IAAI,EAAEC;QAAK,CAAE,CAAC,EACnB,IAAAvB,aAAI,EAAC,iBAAiB,CAAC;MAAA,CACpB,CAAC;IAAA,CACP,CAAC;EAAA,CACL,CAAC;AAEf,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ title: customerTitle, description: customerDescription, linkForDoc, linkText: customerLinkText, className, onAddFile, onAddLink, qa, }: import("./AttachmentListPlaceholder").AttachmentListPlaceholderProps) => React.JSX.Element;
|
|
6
|
+
tags: string[];
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
11
|
+
title?: React.ReactNode;
|
|
12
|
+
description?: React.ReactNode;
|
|
13
|
+
linkForDoc?: string | undefined;
|
|
14
|
+
linkText?: string | undefined;
|
|
15
|
+
className?: string | undefined;
|
|
16
|
+
onAddFile?: (() => void) | undefined;
|
|
17
|
+
onAddLink?: (() => void) | undefined;
|
|
18
|
+
qa?: string | undefined;
|
|
19
|
+
}>) => React.JSX.Element)[];
|
|
20
|
+
args: {
|
|
21
|
+
title: string;
|
|
22
|
+
description: string;
|
|
23
|
+
linkForDoc: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export default meta;
|
|
27
|
+
type Story = StoryObj<typeof meta>;
|
|
28
|
+
/** Empty state with documentation and two secondary actions, matching the Figma example. */
|
|
29
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _AttachmentListPlaceholder = require("./AttachmentListPlaceholder");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
var meta = {
|
|
12
|
+
title: 'Components/AttachmentListPlaceholder',
|
|
13
|
+
component: _AttachmentListPlaceholder.AttachmentListPlaceholder,
|
|
14
|
+
tags: ['autodocs'],
|
|
15
|
+
parameters: {
|
|
16
|
+
layout: 'centered'
|
|
17
|
+
},
|
|
18
|
+
decorators: [function (Story) {
|
|
19
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20
|
+
style: {
|
|
21
|
+
width: 324,
|
|
22
|
+
height: 622
|
|
23
|
+
},
|
|
24
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Story, {})
|
|
25
|
+
});
|
|
26
|
+
}],
|
|
27
|
+
args: {
|
|
28
|
+
title: 'No attachments',
|
|
29
|
+
description: 'Add attachment for use in the request',
|
|
30
|
+
linkForDoc: '#attachments-help'
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
var _default = exports.default = meta;
|
|
34
|
+
/** Empty state with documentation and two secondary actions, matching the Figma example. */
|
|
35
|
+
var Default = exports.Default = {};
|
|
36
|
+
// #sourceMappingURL=AttachmentListPlaceholder.stories.js.map
|
package/build/cjs/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_AttachmentListPlaceholder","_jsxRuntime","e","__esModule","default","meta","title","component","AttachmentListPlaceholder","tags","parameters","layout","decorators","Story","_jsx","style","width","height","children","args","description","linkForDoc","_default","exports","Default"],"sources":["AttachmentListPlaceholder.stories.tsx"],"sourcesContent":["import React from 'react';\nimport {AttachmentListPlaceholder} from './AttachmentListPlaceholder';\nimport type {Meta, StoryObj} from '@storybook/react';\n\nconst meta = {\n title: 'Components/AttachmentListPlaceholder',\n component: AttachmentListPlaceholder,\n tags: ['autodocs'],\n parameters: {\n layout: 'centered',\n },\n decorators: [\n (Story) => (\n <div style={{width: 324, height: 622}}>\n <Story />\n </div>\n ),\n ],\n args: {\n title: 'No attachments',\n description: 'Add attachment for use in the request',\n linkForDoc: '#attachments-help',\n },\n} satisfies Meta<typeof AttachmentListPlaceholder>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\n/** Empty state with documentation and two secondary actions, matching the Figma example. */\nexport const Default: Story = {};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,0BAAA,GAAAD,OAAA;AAAsE,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGtE,IAAMG,IAAI,GAAG;EACTC,KAAK,EAAE,sCAAsC;EAC7CC,SAAS,EAAEC,oDAAyB;EACpCC,IAAI,EAAE,CAAC,UAAU,CAAC;EAClBC,UAAU,EAAE;IACRC,MAAM,EAAE;EACZ,CAAC;EACDC,UAAU,EAAE,CACR,UAACC,KAAK;IAAA,oBACF,IAAAC,eAAA;MAAKC,KAAK,EAAE;QAACC,KAAK,EAAE,GAAG;QAAEC,MAAM,EAAE;MAAG,CAAE;MAAAC,QAAA,eAClC,IAAAJ,eAAA,EAACD,KAAK,IAAE;IAAC,CACR,CAAC;EAAA,CACT,CACJ;EACDM,IAAI,EAAE;IACFb,KAAK,EAAE,gBAAgB;IACvBc,WAAW,EAAE,uCAAuC;IACpDC,UAAU,EAAE;EAChB;AACJ,CAAkD;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAnB,OAAA,GAEnCC,IAAI;AAGnB;AACO,IAAMmB,OAAc,GAAAD,OAAA,CAAAC,OAAA,GAAG,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
"title_no-attachments": string;
|
|
4
|
+
"context_add-attachment-for-request": string;
|
|
5
|
+
"action_attachments-help": string;
|
|
6
|
+
"action_add-file": string;
|
|
7
|
+
"action_add-link": string;
|
|
8
|
+
};
|
|
9
|
+
ru: {
|
|
10
|
+
"title_no-attachments": string;
|
|
11
|
+
"context_add-attachment-for-request": string;
|
|
12
|
+
"action_attachments-help": string;
|
|
13
|
+
"action_add-file": string;
|
|
14
|
+
"action_add-link": string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _en = _interopRequireDefault(require("./en.json"));
|
|
8
|
+
var _ru = _interopRequireDefault(require("./ru.json"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
var _default = exports.default = {
|
|
11
|
+
en: _en.default,
|
|
12
|
+
ru: _ru.default
|
|
13
|
+
};
|
|
14
|
+
// #sourceMappingURL=dicts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_en","_interopRequireDefault","require","_ru","e","__esModule","default","_default","exports","en","ru"],"sources":["dicts.ts"],"sourcesContent":["import en from './en.json';\nimport ru from './ru.json';\n\nexport default {en, ru};\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAS,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAEM;EAACG,EAAE,EAAFA,WAAE;EAAEC,EAAE,EAAFA;AAAE,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: ((key: "title_no-attachments" | "context_add-attachment-for-request" | "action_attachments-help" | "action_add-file" | "action_add-link", params?: import("@gravity-ui/i18n").Params) => string) & {
|
|
2
|
+
keysetData: {
|
|
3
|
+
"qp:attachment-list-placeholder": Record<"title_no-attachments" | "context_add-attachment-for-request" | "action_attachments-help" | "action_add-file" | "action_add-link", import("@gravity-ui/i18n").KeyData>;
|
|
4
|
+
};
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _i18n = require("../../../i18n");
|
|
8
|
+
var _dicts = _interopRequireDefault(require("./dicts"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
var _default = exports.default = (0, _i18n.addI18Keysets)('qp:attachment-list-placeholder', _dicts.default);
|
|
11
|
+
// #sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_i18n","require","_dicts","_interopRequireDefault","e","__esModule","default","_default","exports","addI18Keysets","dicts"],"sources":["index.ts"],"sourcesContent":["import {addI18Keysets} from '../../../i18n';\n\nimport dicts from './dicts';\n\nexport default addI18Keysets('qp:attachment-list-placeholder', dicts);\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAY,SAAAE,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAEG,IAAAG,mBAAa,EAAC,gCAAgC,EAAEC,cAAK,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title_no-attachments": "Нет вложений",
|
|
3
|
+
"context_add-attachment-for-request": "Добавьте вложение, чтобы использовать его в запросе",
|
|
4
|
+
"action_attachments-help": "Как работать с вложениями",
|
|
5
|
+
"action_add-file": "Добавить файл",
|
|
6
|
+
"action_add-link": "Добавить ссылку"
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "AttachmentListPlaceholder", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _AttachmentListPlaceholder.AttachmentListPlaceholder;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _AttachmentListPlaceholder = require("./AttachmentListPlaceholder");
|
|
13
|
+
// #sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_AttachmentListPlaceholder","require"],"sources":["index.ts"],"sourcesContent":["export {AttachmentListPlaceholder} from './AttachmentListPlaceholder';\nexport type {AttachmentListPlaceholderProps} from './AttachmentListPlaceholder';\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,0BAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -18,11 +18,4 @@
|
|
|
18
18
|
.qp-data-table__content_empty.qp-data-table__content_align_center {
|
|
19
19
|
justify-content: center;
|
|
20
20
|
}
|
|
21
|
-
.qp-data-table__no-data-placeholder {
|
|
22
|
-
width: 100%;
|
|
23
|
-
max-width: 120px;
|
|
24
|
-
height: var(--g-text-body-1-line-height);
|
|
25
|
-
border-radius: 4px;
|
|
26
|
-
background-color: var(--g-color-base-generic);
|
|
27
|
-
}
|
|
28
21
|
/*# sourceMappingURL=DataTable.css.map */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["DataTable.scss"],"names":[],"mappings":"AAAA;
|
|
1
|
+
{"version":3,"sources":["DataTable.scss"],"names":[],"mappings":"AAAA;EACI,aAAA;EACA,sBAAA;EACA,YAAA;AACJ;AACI;EACI,OAAA;AACR;AAGQ;EACI,oDAAA;AADZ;AAKI;EACI,aAAA;AAHR;AAKQ;EACI,yBAAA;AAHZ;AAMQ;EACI,uBAAA;AAJZ","file":"DataTable.css","sourcesContent":[".qp-data-table {\n display: flex;\n flex-direction: column;\n height: 100%;\n\n &__empty {\n flex: 1;\n }\n\n &__tr_empty {\n .qp-data-table__td_empty {\n border-bottom: 1px solid var(--g-color-line-generic);\n }\n }\n\n &__content_empty {\n display: flex;\n\n &.qp-data-table__content_align_right {\n justify-content: flex-end;\n }\n\n &.qp-data-table__content_align_center {\n justify-content: center;\n }\n }\n}\n"],"sourceRoot":""}
|
|
@@ -11,10 +11,12 @@ require("core-js/modules/es.array.map.js");
|
|
|
11
11
|
require("core-js/modules/es.function.name.js");
|
|
12
12
|
require("core-js/modules/es.iterator.constructor.js");
|
|
13
13
|
require("core-js/modules/es.iterator.map.js");
|
|
14
|
+
require("core-js/modules/es.number.constructor.js");
|
|
14
15
|
require("core-js/modules/es.object.to-string.js");
|
|
15
16
|
require("core-js/modules/es.string.iterator.js");
|
|
16
17
|
var _react = _interopRequireDefault(require("react"));
|
|
17
18
|
var _reactDataTable = _interopRequireDefault(require("@gravity-ui/react-data-table"));
|
|
19
|
+
var _uikit = require("@gravity-ui/uikit");
|
|
18
20
|
var _bemCnLite = _interopRequireDefault(require("bem-cn-lite"));
|
|
19
21
|
var _EmptyContent = require("../EmptyContent");
|
|
20
22
|
require("./DataTable.css");
|
|
@@ -23,7 +25,11 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
23
25
|
var _excluded = ["loading", "loaded", "className", "emptyVariant", "columns", "data", "settings"];
|
|
24
26
|
var block = (0, _bemCnLite.default)('qp-data-table');
|
|
25
27
|
var SKELETON_ROWS_COUNT = 4;
|
|
26
|
-
function
|
|
28
|
+
function getSkeletonWidth(rowIndex, columnIndex) {
|
|
29
|
+
var widths = [72, 120, 180, 96];
|
|
30
|
+
return widths[(rowIndex + columnIndex) % widths.length];
|
|
31
|
+
}
|
|
32
|
+
function renderEmptyCell(key, rowIndex, columnIndex, align) {
|
|
27
33
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("td", {
|
|
28
34
|
className: block('td', {
|
|
29
35
|
empty: true
|
|
@@ -33,8 +39,9 @@ function renderEmptyCell(key, align) {
|
|
|
33
39
|
empty: true,
|
|
34
40
|
align: align
|
|
35
41
|
}),
|
|
36
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
37
|
-
|
|
42
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Skeleton, {
|
|
43
|
+
variant: "text",
|
|
44
|
+
width: getSkeletonWidth(rowIndex, columnIndex)
|
|
38
45
|
})
|
|
39
46
|
})
|
|
40
47
|
}, key);
|
|
@@ -47,8 +54,8 @@ function renderLoadingSkeleton(columns, displayIndices) {
|
|
|
47
54
|
className: block('tr', {
|
|
48
55
|
empty: true
|
|
49
56
|
}),
|
|
50
|
-
children: [displayIndices && renderEmptyCell('__index'), columns.map(function (column) {
|
|
51
|
-
return renderEmptyCell(column.name, column.align);
|
|
57
|
+
children: [displayIndices && renderEmptyCell('__index', index, 0), columns.map(function (column, columnIndex) {
|
|
58
|
+
return renderEmptyCell(column.name, index, columnIndex + Number(displayIndices), column.align);
|
|
52
59
|
})]
|
|
53
60
|
}, index);
|
|
54
61
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactDataTable","_bemCnLite","_EmptyContent","_jsxRuntime","e","__esModule","default","block","cn","SKELETON_ROWS_COUNT","renderEmptyCell","key","align","_jsx","className","empty","children","renderLoadingSkeleton","columns","displayIndices","Array","from","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactDataTable","_uikit","_bemCnLite","_EmptyContent","_jsxRuntime","e","__esModule","default","block","cn","SKELETON_ROWS_COUNT","getSkeletonWidth","rowIndex","columnIndex","widths","length","renderEmptyCell","key","align","_jsx","className","empty","children","Skeleton","variant","width","renderLoadingSkeleton","columns","displayIndices","Array","from","_","index","_jsxs","map","column","name","Number","DataTable","props","loading","loaded","_props$emptyVariant","emptyVariant","data","settings","rest","_objectWithoutProperties","_excluded","isEmpty","renderEmptyRow","BaseDataTable","_objectSpread","theme","emptyDataMessage","EmptyContent"],"sources":["DataTable.tsx"],"sourcesContent":["import React from 'react';\nimport BaseDataTable, {\n DataTableProps as BaseDataTableProps,\n Column,\n} from '@gravity-ui/react-data-table';\nimport {Skeleton} from '@gravity-ui/uikit';\nimport cn from 'bem-cn-lite';\n\nimport {EmptyContent, EmptyContentVariant} from '../EmptyContent';\n\nimport './DataTable.scss';\n\nexport type {Column};\n\nconst block = cn('qp-data-table');\n\nconst SKELETON_ROWS_COUNT = 4;\n\nexport type DataTableProps<T> = {\n loading?: boolean;\n loaded?: boolean;\n className?: string;\n emptyVariant?: EmptyContentVariant;\n} & Omit<BaseDataTableProps<T>, 'theme'>;\n\nfunction getSkeletonWidth(rowIndex: number, columnIndex: number) {\n const widths = [72, 120, 180, 96];\n\n return widths[(rowIndex + columnIndex) % widths.length];\n}\n\nfunction renderEmptyCell(\n key: string,\n rowIndex: number,\n columnIndex: number,\n align?: Column<unknown>['align'],\n) {\n return (\n <td key={key} className={block('td', {empty: true})}>\n <div className={block('content', {empty: true, align})}>\n <Skeleton variant=\"text\" width={getSkeletonWidth(rowIndex, columnIndex)} />\n </div>\n </td>\n );\n}\n\nfunction renderLoadingSkeleton<T>(columns: Array<Column<T>>, displayIndices: boolean) {\n return Array.from({length: SKELETON_ROWS_COUNT}, (_, index) => (\n <tr key={index} className={block('tr', {empty: true})}>\n {displayIndices && renderEmptyCell('__index', index, 0)}\n {columns.map((column, columnIndex) =>\n renderEmptyCell(\n column.name,\n index,\n columnIndex + Number(displayIndices),\n column.align,\n ),\n )}\n </tr>\n ));\n}\n\nexport function DataTable<T>(props: DataTableProps<T>) {\n const {\n loading,\n loaded,\n className,\n emptyVariant = 'no-data',\n columns,\n data,\n settings,\n ...rest\n } = props;\n\n const isEmpty = loaded && data.length === 0;\n const displayIndices = settings?.displayIndices !== false;\n\n const renderEmptyRow = () => {\n if (loading && !loaded) {\n return renderLoadingSkeleton(columns, displayIndices);\n }\n\n return null;\n };\n\n return (\n <div className={block(null, className)}>\n <BaseDataTable\n {...rest}\n columns={columns}\n data={data}\n settings={settings}\n theme=\"yandex-cloud\"\n emptyDataMessage=\"\"\n renderEmptyRow={renderEmptyRow}\n />\n {isEmpty && <EmptyContent variant={emptyVariant} className={block('empty')} />}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,eAA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,EAAEC,cAAc,CAAC;IACzD;IAEA,OAAO,IAAI;EACf,CAAC;EAED,oBACI,IAAAK,gBAAA;IAAKb,SAAS,EAAEZ,KAAK,CAAC,IAAI,EAAEY,SAAS,CAAE;IAAAE,QAAA,gBACnC,IAAAH,eAAA,EAACgC,uBAAa,MAAAC,sBAAA,MAAAA,sBAAA,MACNN,IAAI;MACRnB,OAAO,EAAEA,OAAQ;MACjBiB,IAAI,EAAEA,IAAK;MACXC,QAAQ,EAAEA,QAAS;MACnBQ,KAAK,EAAC,cAAc;MACpBC,gBAAgB,EAAC,EAAE;MACnBJ,cAAc,EAAEA;IAAe,EAClC,CAAC,EACDD,OAAO,iBAAI,IAAA9B,eAAA,EAACoC,0BAAY;MAAC/B,OAAO,EAAEmB,YAAa;MAACvB,SAAS,EAAEZ,KAAK,CAAC,OAAO;IAAE,CAAE,CAAC;EAAA,CAC7E,CAAC;AAEd","ignoreList":[]}
|
|
@@ -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,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,C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