@gravity-ui/querieskit 1.2.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 +17 -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/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/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/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/index.d.ts +5 -0
- package/build/cjs/components/index.js +48 -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/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/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 +3 -0
- package/build/cjs/index.js +33 -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/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/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/index.d.ts +3 -0
- package/build/cjs/modules/index.js +20 -0
- 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/navigation.d.ts +8 -1
- package/build/cjs/types/navigation.js.map +1 -1
- 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/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/index.d.ts +2 -0
- package/build/cjs/widgets/index.js +7 -0
- package/build/cjs/widgets/index.js.map +1 -1
- package/build/esm/components/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/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/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/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/index.d.ts +5 -0
- package/build/esm/components/index.js +4 -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/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/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 +3 -0
- package/build/esm/index.js +3 -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/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/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/index.d.ts +3 -0
- package/build/esm/modules/index.js +2 -0
- 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/navigation.d.ts +8 -1
- package/build/esm/types/navigation.js.map +1 -1
- 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/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/index.d.ts +2 -0
- package/build/esm/widgets/index.js +1 -0
- package/build/esm/widgets/index.js.map +1 -1
- package/package.json +1 -1
- package/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/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/Icons/LogoCPlusPlus.tsx +34 -0
- package/src/components/Icons/index.ts +1 -0
- 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/index.ts +5 -0
- package/src/helpers/createUuid.ts +3 -0
- package/src/helpers/isObjectEqual.ts +15 -0
- package/src/helpers/useDebouncedValue.ts +14 -0
- package/src/index.ts +3 -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/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/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/index.ts +14 -0
- package/src/types/declarations.d.ts +10 -0
- package/src/types/errorTree.ts +30 -0
- package/src/types/navigation.ts +11 -1
- package/src/types/queryResults.ts +48 -0
- package/src/types/queryStatistics.ts +67 -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/index.ts +2 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type {Meta, StoryObj} from '@storybook/react';
|
|
3
|
+
import {Text} from '@gravity-ui/uikit';
|
|
4
|
+
import {action} from 'storybook/actions';
|
|
5
|
+
|
|
6
|
+
import type {ErrorTreeItem} from '../../types/errorTree';
|
|
7
|
+
import {ErrorTree} from './ErrorTree';
|
|
8
|
+
|
|
9
|
+
const root: ErrorTreeItem = {
|
|
10
|
+
id: 'root',
|
|
11
|
+
severity: 'error',
|
|
12
|
+
message: 'Missing value for parameter: $h',
|
|
13
|
+
code: 2,
|
|
14
|
+
attributes: {severity: 'Error', queryId: '7d1d'},
|
|
15
|
+
children: [
|
|
16
|
+
{
|
|
17
|
+
id: 'nested-error',
|
|
18
|
+
severity: 'error',
|
|
19
|
+
message: 'Missing value for parameter: $h',
|
|
20
|
+
code: 2,
|
|
21
|
+
position: {row: 1, column: 0},
|
|
22
|
+
attributes: {severity: 'Error'},
|
|
23
|
+
children: [
|
|
24
|
+
{
|
|
25
|
+
id: 'intermediate-1',
|
|
26
|
+
severity: 'warning',
|
|
27
|
+
message: 'Intermediate parser message',
|
|
28
|
+
children: [
|
|
29
|
+
{
|
|
30
|
+
id: 'intermediate-2',
|
|
31
|
+
severity: 'warning',
|
|
32
|
+
message: 'Intermediate optimizer message',
|
|
33
|
+
children: [
|
|
34
|
+
{
|
|
35
|
+
id: 'terminal-error',
|
|
36
|
+
severity: 'error',
|
|
37
|
+
message:
|
|
38
|
+
'At function: RemovePrefixMembers, At function: OrderedSqlProject',
|
|
39
|
+
code: 2,
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: 'warning',
|
|
49
|
+
severity: 'warning',
|
|
50
|
+
message: 'Query can be optimized further',
|
|
51
|
+
code: 0,
|
|
52
|
+
children: [
|
|
53
|
+
{
|
|
54
|
+
id: 'info',
|
|
55
|
+
severity: 'info',
|
|
56
|
+
message: 'Consider adding a filter before the join',
|
|
57
|
+
position: {row: 47, column: 6},
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const meta: Meta<typeof ErrorTree> = {
|
|
65
|
+
title: 'Components/ErrorTree',
|
|
66
|
+
component: ErrorTree,
|
|
67
|
+
tags: ['autodocs'],
|
|
68
|
+
parameters: {layout: 'padded'},
|
|
69
|
+
args: {
|
|
70
|
+
root,
|
|
71
|
+
onPositionClick: action('onPositionClick'),
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export default meta;
|
|
76
|
+
type Story = StoryObj<typeof ErrorTree>;
|
|
77
|
+
|
|
78
|
+
export const Default: Story = {};
|
|
79
|
+
|
|
80
|
+
export const CustomAttributes: Story = {
|
|
81
|
+
args: {
|
|
82
|
+
renderAttributes: (attributes) => (
|
|
83
|
+
<Text variant="body-2">{String(attributes.severity)}</Text>
|
|
84
|
+
),
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export const Narrow: Story = {
|
|
89
|
+
render: (args) => (
|
|
90
|
+
<div style={{width: 420}}>
|
|
91
|
+
<ErrorTree {...args} />
|
|
92
|
+
</div>
|
|
93
|
+
),
|
|
94
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import cn from 'bem-cn-lite';
|
|
3
|
+
|
|
4
|
+
import type {ErrorTreeProps} from '../../types/errorTree';
|
|
5
|
+
import {ErrorTreeNode} from './internal/ErrorTreeNode';
|
|
6
|
+
|
|
7
|
+
const block = cn('qp-error-tree');
|
|
8
|
+
|
|
9
|
+
export function ErrorTree({
|
|
10
|
+
root,
|
|
11
|
+
className,
|
|
12
|
+
defaultExpanded = true,
|
|
13
|
+
defaultInfoExpanded = false,
|
|
14
|
+
renderAttributes,
|
|
15
|
+
onPositionClick,
|
|
16
|
+
}: ErrorTreeProps) {
|
|
17
|
+
return (
|
|
18
|
+
<div className={block(null, className)}>
|
|
19
|
+
<ErrorTreeNode
|
|
20
|
+
item={root}
|
|
21
|
+
level={0}
|
|
22
|
+
defaultNodeExpanded={defaultExpanded}
|
|
23
|
+
defaultExpanded={defaultExpanded}
|
|
24
|
+
defaultInfoExpanded={defaultInfoExpanded}
|
|
25
|
+
renderAttributes={renderAttributes}
|
|
26
|
+
onPositionClick={onPositionClick}
|
|
27
|
+
/>
|
|
28
|
+
</div>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type {ErrorTreeItem} from '../../../types/errorTree';
|
|
2
|
+
|
|
3
|
+
export type IntermediateChain = {
|
|
4
|
+
hiddenItems: ErrorTreeItem[];
|
|
5
|
+
terminalItem: ErrorTreeItem;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export function getIntermediateChain(item: ErrorTreeItem): IntermediateChain {
|
|
9
|
+
const items = [item];
|
|
10
|
+
let current = item;
|
|
11
|
+
|
|
12
|
+
while (current.children?.length === 1) {
|
|
13
|
+
current = current.children[0];
|
|
14
|
+
items.push(current);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return {
|
|
18
|
+
hiddenItems: items.slice(0, -1),
|
|
19
|
+
terminalItem: items[items.length - 1],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"field_attributes": "Attributes",
|
|
3
|
+
"field_code": "Code",
|
|
4
|
+
"action_show-all": "Show all",
|
|
5
|
+
"action_show-parent": "Show parent",
|
|
6
|
+
"context_intermediate-messages": {
|
|
7
|
+
"one": "{{count}} intermediate message",
|
|
8
|
+
"other": "{{count}} intermediate messages"
|
|
9
|
+
},
|
|
10
|
+
"context_attributes-unavailable": "Attributes cannot be displayed"
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"field_attributes": "Атрибуты",
|
|
3
|
+
"field_code": "Код",
|
|
4
|
+
"action_show-all": "Показать все",
|
|
5
|
+
"action_show-parent": "Показать родителя",
|
|
6
|
+
"context_intermediate-messages": {
|
|
7
|
+
"one": "{{count}} промежуточное сообщение",
|
|
8
|
+
"few": "{{count}} промежуточных сообщения",
|
|
9
|
+
"many": "{{count}} промежуточных сообщений",
|
|
10
|
+
"other": "{{count}} промежуточного сообщения"
|
|
11
|
+
},
|
|
12
|
+
"context_attributes-unavailable": "Не удалось показать атрибуты"
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {ErrorTree} from './ErrorTree';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import type {ErrorTreeItem, ErrorTreeProps} from '../../../types/errorTree';
|
|
4
|
+
import {IntermediateMessages} from './IntermediateMessages';
|
|
5
|
+
|
|
6
|
+
import './ErrorTreeChildren.scss';
|
|
7
|
+
|
|
8
|
+
type ErrorTreeChildrenProps = Pick<
|
|
9
|
+
ErrorTreeProps,
|
|
10
|
+
'defaultExpanded' | 'defaultInfoExpanded' | 'renderAttributes' | 'onPositionClick'
|
|
11
|
+
> & {
|
|
12
|
+
className?: string;
|
|
13
|
+
items: ErrorTreeItem[];
|
|
14
|
+
level: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export function ErrorTreeChildren({className, items, ...props}: ErrorTreeChildrenProps) {
|
|
18
|
+
return (
|
|
19
|
+
<div className={className}>
|
|
20
|
+
{items.map((item) => (
|
|
21
|
+
<IntermediateMessages key={item.id} item={item} {...props} />
|
|
22
|
+
))}
|
|
23
|
+
</div>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
.qp-error-tree {
|
|
2
|
+
&__node {
|
|
3
|
+
margin-block-end: var(--g-spacing-2);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&__summary,
|
|
7
|
+
&__line {
|
|
8
|
+
min-inline-size: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&__expand-button {
|
|
12
|
+
flex: 0 0 auto;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&__expand-placeholder {
|
|
16
|
+
flex: 0 0 28px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__line {
|
|
20
|
+
flex: 1 1 auto;
|
|
21
|
+
min-inline-size: 0;
|
|
22
|
+
padding-block: 2px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__severity-icon {
|
|
26
|
+
flex: 0 0 auto;
|
|
27
|
+
|
|
28
|
+
&_error {
|
|
29
|
+
color: var(--g-color-text-danger);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&_warning {
|
|
33
|
+
color: var(--g-color-text-warning);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&_info {
|
|
37
|
+
color: var(--g-color-text-info);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&__attributes-button,
|
|
42
|
+
&__show-parent {
|
|
43
|
+
flex: 0 0 auto;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__position {
|
|
47
|
+
flex: 0 0 auto;
|
|
48
|
+
padding-block: 4px;
|
|
49
|
+
color: var(--g-color-text-secondary);
|
|
50
|
+
font-family: var(--g-font-family-monospace);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__message,
|
|
54
|
+
&__message-button {
|
|
55
|
+
flex: 1 1 auto;
|
|
56
|
+
min-inline-size: 0;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
padding-block: 4px;
|
|
59
|
+
color: var(--g-color-text-primary);
|
|
60
|
+
font-family: var(--g-font-family-monospace);
|
|
61
|
+
font-size: var(--g-text-code-2-font-size);
|
|
62
|
+
line-height: var(--g-text-code-2-line-height);
|
|
63
|
+
text-align: start;
|
|
64
|
+
text-overflow: ellipsis;
|
|
65
|
+
white-space: nowrap;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&__message-button {
|
|
69
|
+
justify-content: flex-start;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&__code {
|
|
73
|
+
flex: 0 0 auto;
|
|
74
|
+
padding-block: 4px;
|
|
75
|
+
color: var(--g-color-text-complementary);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&__attributes {
|
|
79
|
+
margin-block-start: var(--g-spacing-1);
|
|
80
|
+
margin-inline-start: 28px;
|
|
81
|
+
overflow: auto;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&__attributes-content {
|
|
85
|
+
margin: 0;
|
|
86
|
+
padding: var(--g-spacing-2);
|
|
87
|
+
border-radius: var(--g-border-radius-s);
|
|
88
|
+
background: var(--g-color-base-generic-ultralight);
|
|
89
|
+
color: var(--g-color-text-primary);
|
|
90
|
+
font-family: var(--g-font-family-monospace);
|
|
91
|
+
font-size: var(--g-text-code-2-font-size);
|
|
92
|
+
line-height: var(--g-text-code-2-line-height);
|
|
93
|
+
white-space: pre-wrap;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import React, {useState} from 'react';
|
|
2
|
+
import ChevronDownIcon from '@gravity-ui/icons/svgs/chevron-down.svg';
|
|
3
|
+
import ChevronUpIcon from '@gravity-ui/icons/svgs/chevron-up.svg';
|
|
4
|
+
import CircleInfoIcon from '@gravity-ui/icons/svgs/circle-info.svg';
|
|
5
|
+
import SquareExclamationIcon from '@gravity-ui/icons/svgs/square-exclamation.svg';
|
|
6
|
+
import TriangleExclamationIcon from '@gravity-ui/icons/svgs/triangle-exclamation.svg';
|
|
7
|
+
import ArrowUpIcon from '@gravity-ui/icons/svgs/arrow-up.svg';
|
|
8
|
+
import {Button, Disclosure, Flex, Icon, Text} from '@gravity-ui/uikit';
|
|
9
|
+
import cn from 'bem-cn-lite';
|
|
10
|
+
|
|
11
|
+
import type {ErrorTreeItem, ErrorTreeProps} from '../../../types/errorTree';
|
|
12
|
+
import {formatAttributes} from '../helpers/formatAttributes';
|
|
13
|
+
import i18n from '../i18n';
|
|
14
|
+
import {ErrorTreeChildren} from './ErrorTreeChildren';
|
|
15
|
+
|
|
16
|
+
import './ErrorTreeNode.scss';
|
|
17
|
+
|
|
18
|
+
const block = cn('qp-error-tree');
|
|
19
|
+
|
|
20
|
+
const SEVERITY_ICONS = {
|
|
21
|
+
error: TriangleExclamationIcon,
|
|
22
|
+
warning: SquareExclamationIcon,
|
|
23
|
+
info: CircleInfoIcon,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
type ErrorTreeNodeProps = Pick<
|
|
27
|
+
ErrorTreeProps,
|
|
28
|
+
'defaultExpanded' | 'defaultInfoExpanded' | 'renderAttributes' | 'onPositionClick'
|
|
29
|
+
> & {
|
|
30
|
+
className?: string;
|
|
31
|
+
item: ErrorTreeItem;
|
|
32
|
+
level: number;
|
|
33
|
+
defaultNodeExpanded: boolean;
|
|
34
|
+
renderChildren?: (className: string) => React.ReactNode;
|
|
35
|
+
onShowParent?: () => void;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export function ErrorTreeNode({
|
|
39
|
+
className,
|
|
40
|
+
item,
|
|
41
|
+
level,
|
|
42
|
+
defaultExpanded = true,
|
|
43
|
+
defaultInfoExpanded = false,
|
|
44
|
+
defaultNodeExpanded,
|
|
45
|
+
renderAttributes,
|
|
46
|
+
onPositionClick,
|
|
47
|
+
renderChildren,
|
|
48
|
+
onShowParent,
|
|
49
|
+
}: ErrorTreeNodeProps) {
|
|
50
|
+
const [attributesExpanded, setAttributesExpanded] = useState(false);
|
|
51
|
+
const children = item.children ?? [];
|
|
52
|
+
const hasChildren = children.length > 0;
|
|
53
|
+
const hasAttributes = item.attributes !== undefined;
|
|
54
|
+
const position = item.position;
|
|
55
|
+
const hasCode = item.code !== undefined;
|
|
56
|
+
const formattedAttributes = hasAttributes ? formatAttributes(item.attributes) : null;
|
|
57
|
+
|
|
58
|
+
let attributesContent: React.ReactNode = null;
|
|
59
|
+
|
|
60
|
+
if (hasAttributes) {
|
|
61
|
+
if (renderAttributes) {
|
|
62
|
+
attributesContent = renderAttributes(item.attributes as Record<string, unknown>, item);
|
|
63
|
+
} else if (formattedAttributes === null) {
|
|
64
|
+
attributesContent = (
|
|
65
|
+
<Text color="secondary">{i18n('context_attributes-unavailable')}</Text>
|
|
66
|
+
);
|
|
67
|
+
} else {
|
|
68
|
+
attributesContent = (
|
|
69
|
+
<pre className={block('attributes-content')}>{formattedAttributes}</pre>
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const line = (
|
|
75
|
+
<Flex alignItems="center" gap={2} className={block('line')}>
|
|
76
|
+
{onShowParent && (
|
|
77
|
+
<Button
|
|
78
|
+
view="flat-secondary"
|
|
79
|
+
size="s"
|
|
80
|
+
title={i18n('action_show-parent')}
|
|
81
|
+
aria-label={i18n('action_show-parent')}
|
|
82
|
+
className={block('show-parent')}
|
|
83
|
+
onClick={onShowParent}
|
|
84
|
+
>
|
|
85
|
+
<Icon data={ArrowUpIcon} size={16} />
|
|
86
|
+
</Button>
|
|
87
|
+
)}
|
|
88
|
+
<Icon
|
|
89
|
+
data={SEVERITY_ICONS[item.severity]}
|
|
90
|
+
size={16}
|
|
91
|
+
className={block('severity-icon', {[item.severity]: true})}
|
|
92
|
+
/>
|
|
93
|
+
{hasAttributes && (
|
|
94
|
+
<Button
|
|
95
|
+
view="flat-secondary"
|
|
96
|
+
size="s"
|
|
97
|
+
className={block('attributes-button')}
|
|
98
|
+
onClick={() => setAttributesExpanded((expanded) => !expanded)}
|
|
99
|
+
>
|
|
100
|
+
{i18n('field_attributes')}
|
|
101
|
+
<Icon data={attributesExpanded ? ChevronUpIcon : ChevronDownIcon} size={16} />
|
|
102
|
+
</Button>
|
|
103
|
+
)}
|
|
104
|
+
{position && (
|
|
105
|
+
<span className={block('position')}>{`${position.row}:${position.column}`}</span>
|
|
106
|
+
)}
|
|
107
|
+
{position && onPositionClick ? (
|
|
108
|
+
<Button
|
|
109
|
+
view="flat-secondary"
|
|
110
|
+
size="s"
|
|
111
|
+
className={block('message-button')}
|
|
112
|
+
title={item.message}
|
|
113
|
+
onClick={() => onPositionClick(item, position)}
|
|
114
|
+
>
|
|
115
|
+
{item.message}
|
|
116
|
+
</Button>
|
|
117
|
+
) : (
|
|
118
|
+
<span className={block('message')} title={item.message}>
|
|
119
|
+
{item.message}
|
|
120
|
+
</span>
|
|
121
|
+
)}
|
|
122
|
+
{hasCode && (
|
|
123
|
+
<span className={block('code')}>{`${i18n('field_code')}: ${item.code}`}</span>
|
|
124
|
+
)}
|
|
125
|
+
</Flex>
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
const details = (
|
|
129
|
+
<>
|
|
130
|
+
{attributesExpanded && <div className={block('attributes')}>{attributesContent}</div>}
|
|
131
|
+
{hasChildren && (
|
|
132
|
+
<>
|
|
133
|
+
{renderChildren ? (
|
|
134
|
+
renderChildren(block('children'))
|
|
135
|
+
) : (
|
|
136
|
+
<ErrorTreeChildren
|
|
137
|
+
className={block('children')}
|
|
138
|
+
items={children}
|
|
139
|
+
level={level + 1}
|
|
140
|
+
defaultExpanded={defaultExpanded}
|
|
141
|
+
defaultInfoExpanded={defaultInfoExpanded}
|
|
142
|
+
renderAttributes={renderAttributes}
|
|
143
|
+
onPositionClick={onPositionClick}
|
|
144
|
+
/>
|
|
145
|
+
)}
|
|
146
|
+
</>
|
|
147
|
+
)}
|
|
148
|
+
</>
|
|
149
|
+
);
|
|
150
|
+
|
|
151
|
+
if (!hasChildren) {
|
|
152
|
+
return (
|
|
153
|
+
<div className={block('node', className)}>
|
|
154
|
+
<Flex alignItems="center" gap={1} className={block('summary')}>
|
|
155
|
+
<span className={block('expand-placeholder')} />
|
|
156
|
+
{line}
|
|
157
|
+
</Flex>
|
|
158
|
+
{attributesExpanded && (
|
|
159
|
+
<div className={block('attributes')}>{attributesContent}</div>
|
|
160
|
+
)}
|
|
161
|
+
</div>
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
return (
|
|
166
|
+
<Disclosure defaultExpanded={defaultNodeExpanded} className={block('node', className)}>
|
|
167
|
+
<Disclosure.Summary>
|
|
168
|
+
{(_props, defaultButton) => (
|
|
169
|
+
<Flex alignItems="center" gap={1} className={block('summary')}>
|
|
170
|
+
<span className={block('expand-button')}>{defaultButton}</span>
|
|
171
|
+
{line}
|
|
172
|
+
</Flex>
|
|
173
|
+
)}
|
|
174
|
+
</Disclosure.Summary>
|
|
175
|
+
<Disclosure.Details>{details}</Disclosure.Details>
|
|
176
|
+
</Disclosure>
|
|
177
|
+
);
|
|
178
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import React, {useCallback, useMemo, useState} from 'react';
|
|
2
|
+
import {Button, Disclosure, Flex, Text} from '@gravity-ui/uikit';
|
|
3
|
+
import cn from 'bem-cn-lite';
|
|
4
|
+
|
|
5
|
+
import type {ErrorTreeItem, ErrorTreeProps} from '../../../types/errorTree';
|
|
6
|
+
import {getIntermediateChain} from '../helpers/getIntermediateChain';
|
|
7
|
+
import i18n from '../i18n';
|
|
8
|
+
import {ErrorTreeNode} from './ErrorTreeNode';
|
|
9
|
+
|
|
10
|
+
import './IntermediateMessages.scss';
|
|
11
|
+
|
|
12
|
+
const block = cn('qp-error-tree');
|
|
13
|
+
|
|
14
|
+
type IntermediateMessagesProps = Pick<
|
|
15
|
+
ErrorTreeProps,
|
|
16
|
+
'defaultExpanded' | 'defaultInfoExpanded' | 'renderAttributes' | 'onPositionClick'
|
|
17
|
+
> & {
|
|
18
|
+
item: ErrorTreeItem;
|
|
19
|
+
level: number;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export function IntermediateMessages({
|
|
23
|
+
item,
|
|
24
|
+
level,
|
|
25
|
+
defaultExpanded = true,
|
|
26
|
+
defaultInfoExpanded = false,
|
|
27
|
+
renderAttributes,
|
|
28
|
+
onPositionClick,
|
|
29
|
+
}: IntermediateMessagesProps) {
|
|
30
|
+
const {hiddenItems, terminalItem} = useMemo(() => getIntermediateChain(item), [item]);
|
|
31
|
+
const nodeDefaultExpanded =
|
|
32
|
+
terminalItem.severity === 'info' ? defaultInfoExpanded : defaultExpanded;
|
|
33
|
+
const [revealedParents, setRevealedParents] = useState(0);
|
|
34
|
+
const [expanded, setExpanded] = useState(nodeDefaultExpanded);
|
|
35
|
+
const [showAllVersion, setShowAllVersion] = useState(0);
|
|
36
|
+
const isCompact = hiddenItems.length > 1;
|
|
37
|
+
|
|
38
|
+
const renderChain = useCallback(
|
|
39
|
+
(itemIndex: number, className?: string): React.ReactNode => {
|
|
40
|
+
const currentItem =
|
|
41
|
+
itemIndex < hiddenItems.length ? hiddenItems[itemIndex] : terminalItem;
|
|
42
|
+
const hasHiddenParent = itemIndex > 0;
|
|
43
|
+
const hasNextItem = itemIndex < hiddenItems.length;
|
|
44
|
+
const currentDefaultExpanded =
|
|
45
|
+
currentItem.severity === 'info' ? defaultInfoExpanded : defaultExpanded;
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<ErrorTreeNode
|
|
49
|
+
key={`${currentItem.id}-${showAllVersion}`}
|
|
50
|
+
className={className}
|
|
51
|
+
item={currentItem}
|
|
52
|
+
level={level + itemIndex}
|
|
53
|
+
defaultNodeExpanded={showAllVersion > 0 || currentDefaultExpanded}
|
|
54
|
+
defaultExpanded={defaultExpanded}
|
|
55
|
+
defaultInfoExpanded={defaultInfoExpanded}
|
|
56
|
+
renderAttributes={renderAttributes}
|
|
57
|
+
onPositionClick={onPositionClick}
|
|
58
|
+
onShowParent={
|
|
59
|
+
hasHiddenParent ? () => setRevealedParents((value) => value + 1) : undefined
|
|
60
|
+
}
|
|
61
|
+
renderChildren={
|
|
62
|
+
hasNextItem
|
|
63
|
+
? (childClassName) => renderChain(itemIndex + 1, childClassName)
|
|
64
|
+
: undefined
|
|
65
|
+
}
|
|
66
|
+
/>
|
|
67
|
+
);
|
|
68
|
+
},
|
|
69
|
+
[
|
|
70
|
+
defaultExpanded,
|
|
71
|
+
defaultInfoExpanded,
|
|
72
|
+
hiddenItems,
|
|
73
|
+
level,
|
|
74
|
+
onPositionClick,
|
|
75
|
+
renderAttributes,
|
|
76
|
+
showAllVersion,
|
|
77
|
+
terminalItem,
|
|
78
|
+
],
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
if (!isCompact) {
|
|
82
|
+
return (
|
|
83
|
+
<ErrorTreeNode
|
|
84
|
+
item={item}
|
|
85
|
+
level={level}
|
|
86
|
+
defaultNodeExpanded={
|
|
87
|
+
item.severity === 'info' ? defaultInfoExpanded : defaultExpanded
|
|
88
|
+
}
|
|
89
|
+
defaultExpanded={defaultExpanded}
|
|
90
|
+
defaultInfoExpanded={defaultInfoExpanded}
|
|
91
|
+
renderAttributes={renderAttributes}
|
|
92
|
+
onPositionClick={onPositionClick}
|
|
93
|
+
/>
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const firstVisibleItemIndex = Math.max(hiddenItems.length - revealedParents, 0);
|
|
98
|
+
|
|
99
|
+
return (
|
|
100
|
+
<Disclosure expanded={expanded} onUpdate={setExpanded} className={block('intermediate')}>
|
|
101
|
+
<Disclosure.Summary>
|
|
102
|
+
{(_props, defaultButton) => (
|
|
103
|
+
<Flex alignItems="center" gap={2} className={block('intermediate-summary')}>
|
|
104
|
+
{defaultButton}
|
|
105
|
+
<Text color="secondary">
|
|
106
|
+
{i18n('context_intermediate-messages', {count: hiddenItems.length})}
|
|
107
|
+
</Text>
|
|
108
|
+
<Button
|
|
109
|
+
view="flat-secondary"
|
|
110
|
+
size="s"
|
|
111
|
+
onClick={() => {
|
|
112
|
+
setExpanded(true);
|
|
113
|
+
setRevealedParents(hiddenItems.length);
|
|
114
|
+
setShowAllVersion((version) => version + 1);
|
|
115
|
+
}}
|
|
116
|
+
>
|
|
117
|
+
{i18n('action_show-all')}
|
|
118
|
+
</Button>
|
|
119
|
+
</Flex>
|
|
120
|
+
)}
|
|
121
|
+
</Disclosure.Summary>
|
|
122
|
+
<Disclosure.Details>
|
|
123
|
+
{renderChain(firstVisibleItemIndex, block('intermediate-details'))}
|
|
124
|
+
</Disclosure.Details>
|
|
125
|
+
</Disclosure>
|
|
126
|
+
);
|
|
127
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const LogoCPlusPlus = () => {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
width="15"
|
|
7
|
+
height="13"
|
|
8
|
+
viewBox="0 0 15 13"
|
|
9
|
+
fill="none"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
d="M5.40812 7.43123V4.93123C5.40812 4.51702 5.74391 4.18123 6.15812 4.18123C6.57234 4.18123 6.90812 4.51702 6.90812 4.93123V7.43123C6.90812 7.84545 6.57234 8.18123 6.15812 8.18123C5.74391 8.18123 5.40812 7.84545 5.40812 7.43123Z"
|
|
14
|
+
fill="black"
|
|
15
|
+
/>
|
|
16
|
+
<path
|
|
17
|
+
d="M4.90812 5.43123H7.40812C7.82234 5.43123 8.15812 5.76702 8.15812 6.18123C8.15812 6.59545 7.82234 6.93123 7.40812 6.93123H4.90812C4.49391 6.93123 4.15812 6.59545 4.15812 6.18123C4.15812 5.76702 4.49391 5.43123 4.90812 5.43123Z"
|
|
18
|
+
fill="black"
|
|
19
|
+
/>
|
|
20
|
+
<path
|
|
21
|
+
d="M11.0146 8.18123V4.18123C11.0146 3.76702 11.3504 3.43123 11.7646 3.43123C12.1788 3.43123 12.5146 3.76702 12.5146 4.18123V8.18123C12.5146 8.59545 12.1788 8.93123 11.7646 8.93123C11.3504 8.93123 11.0146 8.59545 11.0146 8.18123Z"
|
|
22
|
+
fill="black"
|
|
23
|
+
/>
|
|
24
|
+
<path
|
|
25
|
+
d="M9.76458 5.43123L13.7646 5.43123C14.1788 5.43123 14.5146 5.76702 14.5146 6.18123C14.5146 6.59545 14.1788 6.93123 13.7646 6.93123L9.76458 6.93123C9.35036 6.93123 9.01458 6.59545 9.01458 6.18123C9.01458 5.76702 9.35036 5.43123 9.76458 5.43123Z"
|
|
26
|
+
fill="black"
|
|
27
|
+
/>
|
|
28
|
+
<path
|
|
29
|
+
d="M9.09349 2.44504C8.38789 1.91768 7.54953 1.59693 6.67212 1.51861C5.79464 1.44033 4.91236 1.60751 4.12448 2.00167C3.33664 2.39583 2.67372 3.00143 2.21021 3.75057C1.74675 4.49969 1.50109 5.36305 1.50001 6.24394C1.49894 7.12491 1.74267 7.98906 2.20437 8.73935C2.66606 9.4896 3.32736 10.0969 4.11423 10.4929C4.90112 10.889 5.78281 11.0585 6.66046 10.9823C7.53807 10.9062 8.37721 10.5872 9.08412 10.0616C9.41651 9.81441 9.88663 9.88339 10.1338 10.2158C10.3809 10.5482 10.3115 11.018 9.9792 11.2652C9.04903 11.9568 7.9447 12.376 6.7899 12.4762C5.63512 12.5764 4.47526 12.3534 3.4399 11.8323C2.40454 11.3112 1.53425 10.5126 0.92677 9.52547C0.319272 8.53824 -0.00140641 7.40122 4.63663e-06 6.24205C0.00144048 5.08294 0.324902 3.94699 0.934769 2.96129C1.54467 1.97554 2.41702 1.17894 3.45369 0.660306C4.49033 0.141726 5.65084 -0.0782676 6.80537 0.0247355C7.95989 0.127767 9.06304 0.549624 9.99149 1.24355C10.3233 1.49152 10.3912 1.96151 10.1432 2.29329C9.89526 2.62508 9.42527 2.69302 9.09349 2.44504Z"
|
|
30
|
+
fill="black"
|
|
31
|
+
/>
|
|
32
|
+
</svg>
|
|
33
|
+
);
|
|
34
|
+
};
|