@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,143 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import "core-js/modules/es.array.concat.js";
|
|
4
|
+
import "core-js/modules/es.array.every.js";
|
|
5
|
+
import "core-js/modules/es.array.filter.js";
|
|
6
|
+
import "core-js/modules/es.array.for-each.js";
|
|
7
|
+
import "core-js/modules/es.array.from.js";
|
|
8
|
+
import "core-js/modules/es.array.iterator.js";
|
|
9
|
+
import "core-js/modules/es.iterator.constructor.js";
|
|
10
|
+
import "core-js/modules/es.iterator.every.js";
|
|
11
|
+
import "core-js/modules/es.iterator.filter.js";
|
|
12
|
+
import "core-js/modules/es.iterator.for-each.js";
|
|
13
|
+
import "core-js/modules/es.object.to-string.js";
|
|
14
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
15
|
+
import "core-js/modules/es.set.js";
|
|
16
|
+
import "core-js/modules/es.set.difference.v2.js";
|
|
17
|
+
import "core-js/modules/es.set.intersection.v2.js";
|
|
18
|
+
import "core-js/modules/es.set.is-disjoint-from.v2.js";
|
|
19
|
+
import "core-js/modules/es.set.is-subset-of.v2.js";
|
|
20
|
+
import "core-js/modules/es.set.is-superset-of.v2.js";
|
|
21
|
+
import "core-js/modules/es.set.symmetric-difference.v2.js";
|
|
22
|
+
import "core-js/modules/es.set.union.v2.js";
|
|
23
|
+
import "core-js/modules/es.string.iterator.js";
|
|
24
|
+
import "core-js/modules/es.string.search.js";
|
|
25
|
+
import "core-js/modules/web.dom-collections.for-each.js";
|
|
26
|
+
import "core-js/modules/web.dom-collections.iterator.js";
|
|
27
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
28
|
+
import cn from 'bem-cn-lite';
|
|
29
|
+
import { useDebouncedValue } from "../../helpers/useDebouncedValue";
|
|
30
|
+
import { collectQueryStatisticsGroupIds, filterQueryStatistics, flattenQueryStatistics } from "./helpers";
|
|
31
|
+
import { QueryStatisticsTable } from "./internal/QueryStatisticsTable";
|
|
32
|
+
import { QueryStatisticsToolbar } from "./internal/QueryStatisticsToolbar";
|
|
33
|
+
import "./QueryStatistics.css";
|
|
34
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
35
|
+
var block = cn('qp-query-statistics');
|
|
36
|
+
var DEFAULT_VISIBLE_COLUMNS = ['min', 'max', 'avg', 'sum', 'count'];
|
|
37
|
+
var DEFAULT_SEARCH_DEBOUNCE_MS = 500;
|
|
38
|
+
function setsEqual(left, right) {
|
|
39
|
+
return left.size === right.size && Array.from(left).every(function (value) {
|
|
40
|
+
return right.has(value);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
export function QueryStatistics(_ref) {
|
|
44
|
+
var data = _ref.data,
|
|
45
|
+
_ref$visibleColumns = _ref.visibleColumns,
|
|
46
|
+
visibleColumns = _ref$visibleColumns === void 0 ? DEFAULT_VISIBLE_COLUMNS : _ref$visibleColumns,
|
|
47
|
+
columnConfig = _ref.columnConfig,
|
|
48
|
+
extraColumns = _ref.extraColumns,
|
|
49
|
+
className = _ref.className,
|
|
50
|
+
_ref$virtual = _ref.virtual,
|
|
51
|
+
virtual = _ref$virtual === void 0 ? false : _ref$virtual,
|
|
52
|
+
_ref$fixedHeader = _ref.fixedHeader,
|
|
53
|
+
fixedHeader = _ref$fixedHeader === void 0 ? false : _ref$fixedHeader,
|
|
54
|
+
formatValue = _ref.formatValue,
|
|
55
|
+
controlledSearch = _ref.search,
|
|
56
|
+
_ref$defaultSearch = _ref.defaultSearch,
|
|
57
|
+
defaultSearch = _ref$defaultSearch === void 0 ? '' : _ref$defaultSearch,
|
|
58
|
+
onSearchUpdate = _ref.onSearchUpdate,
|
|
59
|
+
controlledExpandedIds = _ref.expandedIds,
|
|
60
|
+
defaultExpandedIds = _ref.defaultExpandedIds,
|
|
61
|
+
onExpandedIdsChange = _ref.onExpandedIdsChange,
|
|
62
|
+
_ref$searchDebounceMs = _ref.searchDebounceMs,
|
|
63
|
+
searchDebounceMs = _ref$searchDebounceMs === void 0 ? DEFAULT_SEARCH_DEBOUNCE_MS : _ref$searchDebounceMs;
|
|
64
|
+
var groupIds = useMemo(function () {
|
|
65
|
+
return collectQueryStatisticsGroupIds(data);
|
|
66
|
+
}, [data]);
|
|
67
|
+
var knownGroupIdsRef = useRef(new Set(groupIds));
|
|
68
|
+
var _useState = useState(function () {
|
|
69
|
+
return new Set(defaultExpandedIds !== null && defaultExpandedIds !== void 0 ? defaultExpandedIds : groupIds);
|
|
70
|
+
}),
|
|
71
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
72
|
+
uncontrolledExpandedIds = _useState2[0],
|
|
73
|
+
setUncontrolledExpandedIds = _useState2[1];
|
|
74
|
+
var _useState3 = useState(defaultSearch),
|
|
75
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
76
|
+
uncontrolledSearch = _useState4[0],
|
|
77
|
+
setUncontrolledSearch = _useState4[1];
|
|
78
|
+
var search = controlledSearch !== null && controlledSearch !== void 0 ? controlledSearch : uncontrolledSearch;
|
|
79
|
+
var expandedIds = useMemo(function () {
|
|
80
|
+
return new Set(controlledExpandedIds !== null && controlledExpandedIds !== void 0 ? controlledExpandedIds : uncontrolledExpandedIds);
|
|
81
|
+
}, [controlledExpandedIds, uncontrolledExpandedIds]);
|
|
82
|
+
var debouncedSearch = useDebouncedValue(search, searchDebounceMs);
|
|
83
|
+
var updateSearch = useCallback(function (value) {
|
|
84
|
+
if (controlledSearch === undefined) setUncontrolledSearch(value);
|
|
85
|
+
onSearchUpdate === null || onSearchUpdate === void 0 || onSearchUpdate(value);
|
|
86
|
+
}, [controlledSearch, onSearchUpdate]);
|
|
87
|
+
var updateExpandedIds = useCallback(function (next) {
|
|
88
|
+
if (controlledExpandedIds === undefined) setUncontrolledExpandedIds(next);
|
|
89
|
+
onExpandedIdsChange === null || onExpandedIdsChange === void 0 || onExpandedIdsChange(Array.from(next));
|
|
90
|
+
}, [controlledExpandedIds, onExpandedIdsChange]);
|
|
91
|
+
useEffect(function () {
|
|
92
|
+
var currentGroupIds = new Set(groupIds);
|
|
93
|
+
var previousGroupIds = knownGroupIdsRef.current;
|
|
94
|
+
var next = new Set(Array.from(expandedIds).filter(function (id) {
|
|
95
|
+
return currentGroupIds.has(id);
|
|
96
|
+
}));
|
|
97
|
+
groupIds.forEach(function (id) {
|
|
98
|
+
if (!previousGroupIds.has(id)) next.add(id);
|
|
99
|
+
});
|
|
100
|
+
if (!setsEqual(expandedIds, next)) updateExpandedIds(next);
|
|
101
|
+
knownGroupIdsRef.current = currentGroupIds;
|
|
102
|
+
}, [expandedIds, groupIds, updateExpandedIds]);
|
|
103
|
+
var filtered = useMemo(function () {
|
|
104
|
+
return filterQueryStatistics(data, debouncedSearch);
|
|
105
|
+
}, [data, debouncedSearch]);
|
|
106
|
+
var effectiveExpandedIds = useMemo(function () {
|
|
107
|
+
return new Set([].concat(_toConsumableArray(expandedIds), _toConsumableArray(filtered.forcedExpandedIds)));
|
|
108
|
+
}, [expandedIds, filtered.forcedExpandedIds]);
|
|
109
|
+
var rows = useMemo(function () {
|
|
110
|
+
return flattenQueryStatistics(filtered.data, effectiveExpandedIds);
|
|
111
|
+
}, [effectiveExpandedIds, filtered.data]);
|
|
112
|
+
var toggleGroup = useCallback(function (id) {
|
|
113
|
+
var next = new Set(expandedIds);
|
|
114
|
+
if (next.has(id)) next["delete"](id);else next.add(id);
|
|
115
|
+
updateExpandedIds(next);
|
|
116
|
+
}, [expandedIds, updateExpandedIds]);
|
|
117
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
118
|
+
className: block(null, className),
|
|
119
|
+
children: [/*#__PURE__*/_jsx(QueryStatisticsToolbar, {
|
|
120
|
+
search: search,
|
|
121
|
+
hasGroups: Boolean(groupIds.length),
|
|
122
|
+
onSearchUpdate: updateSearch,
|
|
123
|
+
onExpandAll: function onExpandAll() {
|
|
124
|
+
return updateExpandedIds(new Set(groupIds));
|
|
125
|
+
},
|
|
126
|
+
onCollapseAll: function onCollapseAll() {
|
|
127
|
+
return updateExpandedIds(new Set());
|
|
128
|
+
}
|
|
129
|
+
}), /*#__PURE__*/_jsx(QueryStatisticsTable, {
|
|
130
|
+
rows: rows,
|
|
131
|
+
visibleColumns: visibleColumns,
|
|
132
|
+
columnConfig: columnConfig,
|
|
133
|
+
extraColumns: extraColumns,
|
|
134
|
+
expandedIds: effectiveExpandedIds,
|
|
135
|
+
fixedHeader: fixedHeader,
|
|
136
|
+
virtual: virtual,
|
|
137
|
+
formatValue: formatValue,
|
|
138
|
+
isSearching: Boolean(search),
|
|
139
|
+
onToggleGroup: toggleGroup
|
|
140
|
+
})]
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
// #sourceMappingURL=QueryStatistics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useEffect","useMemo","useRef","useState","cn","useDebouncedValue","collectQueryStatisticsGroupIds","filterQueryStatistics","flattenQueryStatistics","QueryStatisticsTable","QueryStatisticsToolbar","jsx","_jsx","jsxs","_jsxs","block","DEFAULT_VISIBLE_COLUMNS","DEFAULT_SEARCH_DEBOUNCE_MS","setsEqual","left","right","size","Array","from","every","value","has","QueryStatistics","_ref","data","_ref$visibleColumns","visibleColumns","columnConfig","extraColumns","className","_ref$virtual","virtual","_ref$fixedHeader","fixedHeader","formatValue","controlledSearch","search","_ref$defaultSearch","defaultSearch","onSearchUpdate","controlledExpandedIds","expandedIds","defaultExpandedIds","onExpandedIdsChange","_ref$searchDebounceMs","searchDebounceMs","groupIds","knownGroupIdsRef","Set","_useState","_useState2","_slicedToArray","uncontrolledExpandedIds","setUncontrolledExpandedIds","_useState3","_useState4","uncontrolledSearch","setUncontrolledSearch","debouncedSearch","updateSearch","undefined","updateExpandedIds","next","currentGroupIds","previousGroupIds","current","filter","id","forEach","add","filtered","effectiveExpandedIds","concat","_toConsumableArray","forcedExpandedIds","rows","toggleGroup","children","hasGroups","Boolean","length","onExpandAll","onCollapseAll","isSearching","onToggleGroup"],"sources":["QueryStatistics.tsx"],"sourcesContent":["import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react';\nimport cn from 'bem-cn-lite';\n\nimport {useDebouncedValue} from '../../helpers/useDebouncedValue';\nimport type {QueryStatisticsColumn, QueryStatisticsProps} from '../../types/queryStatistics';\nimport {\n collectQueryStatisticsGroupIds,\n filterQueryStatistics,\n flattenQueryStatistics,\n} from './helpers';\nimport {QueryStatisticsTable} from './internal/QueryStatisticsTable';\nimport {QueryStatisticsToolbar} from './internal/QueryStatisticsToolbar';\n\nimport './QueryStatistics.scss';\n\nconst block = cn('qp-query-statistics');\nconst DEFAULT_VISIBLE_COLUMNS: QueryStatisticsColumn[] = ['min', 'max', 'avg', 'sum', 'count'];\nconst DEFAULT_SEARCH_DEBOUNCE_MS = 500;\n\nfunction setsEqual(left: Set<string>, right: Set<string>) {\n return left.size === right.size && Array.from(left).every((value) => right.has(value));\n}\n\nexport function QueryStatistics({\n data,\n visibleColumns = DEFAULT_VISIBLE_COLUMNS,\n columnConfig,\n extraColumns,\n className,\n virtual = false,\n fixedHeader = false,\n formatValue,\n search: controlledSearch,\n defaultSearch = '',\n onSearchUpdate,\n expandedIds: controlledExpandedIds,\n defaultExpandedIds,\n onExpandedIdsChange,\n searchDebounceMs = DEFAULT_SEARCH_DEBOUNCE_MS,\n}: QueryStatisticsProps) {\n const groupIds = useMemo(() => collectQueryStatisticsGroupIds(data), [data]);\n const knownGroupIdsRef = useRef(new Set(groupIds));\n const [uncontrolledExpandedIds, setUncontrolledExpandedIds] = useState(\n () => new Set(defaultExpandedIds ?? groupIds),\n );\n const [uncontrolledSearch, setUncontrolledSearch] = useState(defaultSearch);\n const search = controlledSearch ?? uncontrolledSearch;\n const expandedIds = useMemo(\n () => new Set(controlledExpandedIds ?? uncontrolledExpandedIds),\n [controlledExpandedIds, uncontrolledExpandedIds],\n );\n const debouncedSearch = useDebouncedValue(search, searchDebounceMs);\n\n const updateSearch = useCallback(\n (value: string) => {\n if (controlledSearch === undefined) setUncontrolledSearch(value);\n onSearchUpdate?.(value);\n },\n [controlledSearch, onSearchUpdate],\n );\n const updateExpandedIds = useCallback(\n (next: Set<string>) => {\n if (controlledExpandedIds === undefined) setUncontrolledExpandedIds(next);\n onExpandedIdsChange?.(Array.from(next));\n },\n [controlledExpandedIds, onExpandedIdsChange],\n );\n\n useEffect(() => {\n const currentGroupIds = new Set(groupIds);\n const previousGroupIds = knownGroupIdsRef.current;\n const next = new Set(Array.from(expandedIds).filter((id) => currentGroupIds.has(id)));\n groupIds.forEach((id) => {\n if (!previousGroupIds.has(id)) next.add(id);\n });\n if (!setsEqual(expandedIds, next)) updateExpandedIds(next);\n knownGroupIdsRef.current = currentGroupIds;\n }, [expandedIds, groupIds, updateExpandedIds]);\n\n const filtered = useMemo(\n () => filterQueryStatistics(data, debouncedSearch),\n [data, debouncedSearch],\n );\n const effectiveExpandedIds = useMemo(\n () => new Set([...expandedIds, ...filtered.forcedExpandedIds]),\n [expandedIds, filtered.forcedExpandedIds],\n );\n const rows = useMemo(\n () => flattenQueryStatistics(filtered.data, effectiveExpandedIds),\n [effectiveExpandedIds, filtered.data],\n );\n const toggleGroup = useCallback(\n (id: string) => {\n const next = new Set(expandedIds);\n if (next.has(id)) next.delete(id);\n else next.add(id);\n updateExpandedIds(next);\n },\n [expandedIds, updateExpandedIds],\n );\n\n return (\n <div className={block(null, className)}>\n <QueryStatisticsToolbar\n search={search}\n hasGroups={Boolean(groupIds.length)}\n onSearchUpdate={updateSearch}\n onExpandAll={() => updateExpandedIds(new Set(groupIds))}\n onCollapseAll={() => updateExpandedIds(new Set())}\n />\n <QueryStatisticsTable\n rows={rows}\n visibleColumns={visibleColumns}\n columnConfig={columnConfig}\n extraColumns={extraColumns}\n expandedIds={effectiveExpandedIds}\n fixedHeader={fixedHeader}\n virtual={virtual}\n formatValue={formatValue}\n isSearching={Boolean(search)}\n onToggleGroup={toggleGroup}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAK,IAAGC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAO,OAAO;AAC9E,OAAOC,EAAE,MAAM,aAAa;AA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pCzC,cAAc,EAAEoB,YAAa;MAC7BsB,WAAW,EAAE,SAAbA,WAAWA,CAAA;QAAA,OAAQpB,iBAAiB,CAAC,IAAIb,GAAG,CAACF,QAAQ,CAAC,CAAC;MAAA,CAAC;MACxDoC,aAAa,EAAE,SAAfA,aAAaA,CAAA;QAAA,OAAQrB,iBAAiB,CAAC,IAAIb,GAAG,CAAC,CAAC,CAAC;MAAA;IAAC,CACrD,CAAC,eACFzC,IAAA,CAACH,oBAAoB;MACjBuE,IAAI,EAAEA,IAAK;MACXjD,cAAc,EAAEA,cAAe;MAC/BC,YAAY,EAAEA,YAAa;MAC3BC,YAAY,EAAEA,YAAa;MAC3Ba,WAAW,EAAE8B,oBAAqB;MAClCtC,WAAW,EAAEA,WAAY;MACzBF,OAAO,EAAEA,OAAQ;MACjBG,WAAW,EAAEA,WAAY;MACzBiD,WAAW,EAAEJ,OAAO,CAAC3C,MAAM,CAAE;MAC7BgD,aAAa,EAAER;IAAY,CAC9B,CAAC;EAAA,CACD,CAAC;AAEd","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { QueryStatisticsGroup, QueryStatisticsItem, QueryStatisticsMetric } from '../../types/queryStatistics';
|
|
2
|
+
export type QueryStatisticsRow = {
|
|
3
|
+
item: QueryStatisticsItem;
|
|
4
|
+
level: number;
|
|
5
|
+
};
|
|
6
|
+
export type FilterQueryStatisticsResult = {
|
|
7
|
+
data: QueryStatisticsItem[];
|
|
8
|
+
forcedExpandedIds: Set<string>;
|
|
9
|
+
};
|
|
10
|
+
export declare function isQueryStatisticsGroup(item: QueryStatisticsItem): item is QueryStatisticsGroup;
|
|
11
|
+
export declare function isQueryStatisticsMetric(item: QueryStatisticsItem): item is QueryStatisticsMetric;
|
|
12
|
+
export declare function getQueryStatisticsValue(item: QueryStatisticsMetric, column: keyof QueryStatisticsMetric['values']): number | undefined;
|
|
13
|
+
export declare function collectQueryStatisticsGroupIds(data: QueryStatisticsItem[]): string[];
|
|
14
|
+
export declare function filterQueryStatistics(data: QueryStatisticsItem[], search: string): FilterQueryStatisticsResult;
|
|
15
|
+
export declare function flattenQueryStatistics(data: QueryStatisticsItem[], expandedIds: Set<string>, level?: number): QueryStatisticsRow[];
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
|
+
import "core-js/modules/es.symbol.js";
|
|
4
|
+
import "core-js/modules/es.symbol.description.js";
|
|
5
|
+
import "core-js/modules/es.array.concat.js";
|
|
6
|
+
import "core-js/modules/es.array.filter.js";
|
|
7
|
+
import "core-js/modules/es.array.flat-map.js";
|
|
8
|
+
import "core-js/modules/es.array.for-each.js";
|
|
9
|
+
import "core-js/modules/es.array.includes.js";
|
|
10
|
+
import "core-js/modules/es.array.is-array.js";
|
|
11
|
+
import "core-js/modules/es.array.iterator.js";
|
|
12
|
+
import "core-js/modules/es.array.some.js";
|
|
13
|
+
import "core-js/modules/es.array.unscopables.flat-map.js";
|
|
14
|
+
import "core-js/modules/es.function.name.js";
|
|
15
|
+
import "core-js/modules/es.iterator.constructor.js";
|
|
16
|
+
import "core-js/modules/es.iterator.flat-map.js";
|
|
17
|
+
import "core-js/modules/es.iterator.for-each.js";
|
|
18
|
+
import "core-js/modules/es.iterator.some.js";
|
|
19
|
+
import "core-js/modules/es.object.to-string.js";
|
|
20
|
+
import "core-js/modules/es.set.js";
|
|
21
|
+
import "core-js/modules/es.set.difference.v2.js";
|
|
22
|
+
import "core-js/modules/es.set.intersection.v2.js";
|
|
23
|
+
import "core-js/modules/es.set.is-disjoint-from.v2.js";
|
|
24
|
+
import "core-js/modules/es.set.is-subset-of.v2.js";
|
|
25
|
+
import "core-js/modules/es.set.is-superset-of.v2.js";
|
|
26
|
+
import "core-js/modules/es.set.symmetric-difference.v2.js";
|
|
27
|
+
import "core-js/modules/es.set.union.v2.js";
|
|
28
|
+
import "core-js/modules/es.string.includes.js";
|
|
29
|
+
import "core-js/modules/es.string.iterator.js";
|
|
30
|
+
import "core-js/modules/es.string.trim.js";
|
|
31
|
+
import "core-js/modules/web.dom-collections.for-each.js";
|
|
32
|
+
import "core-js/modules/web.dom-collections.iterator.js";
|
|
33
|
+
export function isQueryStatisticsGroup(item) {
|
|
34
|
+
return Array.isArray(item.children);
|
|
35
|
+
}
|
|
36
|
+
export function isQueryStatisticsMetric(item) {
|
|
37
|
+
return !isQueryStatisticsGroup(item);
|
|
38
|
+
}
|
|
39
|
+
export function getQueryStatisticsValue(item, column) {
|
|
40
|
+
if (column !== 'avg' || item.values.avg !== undefined) {
|
|
41
|
+
return item.values[column];
|
|
42
|
+
}
|
|
43
|
+
var _item$values = item.values,
|
|
44
|
+
count = _item$values.count,
|
|
45
|
+
sum = _item$values.sum;
|
|
46
|
+
return count === undefined || count === 0 || sum === undefined ? undefined : sum / count;
|
|
47
|
+
}
|
|
48
|
+
export function collectQueryStatisticsGroupIds(data) {
|
|
49
|
+
return data.flatMap(function (item) {
|
|
50
|
+
return isQueryStatisticsGroup(item) && item.children.length > 0 ? [item.id].concat(_toConsumableArray(collectQueryStatisticsGroupIds(item.children))) : [];
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function addSubtreeGroupIds(item, target) {
|
|
54
|
+
if (item.children.length > 0) {
|
|
55
|
+
target.add(item.id);
|
|
56
|
+
}
|
|
57
|
+
item.children.forEach(function (child) {
|
|
58
|
+
if (isQueryStatisticsGroup(child)) {
|
|
59
|
+
addSubtreeGroupIds(child, target);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function matchesSearch(item, search) {
|
|
64
|
+
return [item.name, item.description, item.unit].filter(Boolean).some(function (value) {
|
|
65
|
+
return value === null || value === void 0 ? void 0 : value.toLocaleLowerCase().includes(search);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
export function filterQueryStatistics(data, search) {
|
|
69
|
+
var normalizedSearch = search.trim().toLocaleLowerCase();
|
|
70
|
+
if (!normalizedSearch) return {
|
|
71
|
+
data: data,
|
|
72
|
+
forcedExpandedIds: new Set()
|
|
73
|
+
};
|
|
74
|
+
var forcedExpandedIds = new Set();
|
|
75
|
+
var _filterItems = function filterItems(items) {
|
|
76
|
+
return items.flatMap(function (item) {
|
|
77
|
+
if (!isQueryStatisticsGroup(item)) {
|
|
78
|
+
return matchesSearch(item, normalizedSearch) ? [item] : [];
|
|
79
|
+
}
|
|
80
|
+
if (matchesSearch(item, normalizedSearch)) {
|
|
81
|
+
addSubtreeGroupIds(item, forcedExpandedIds);
|
|
82
|
+
return [item];
|
|
83
|
+
}
|
|
84
|
+
var children = _filterItems(item.children);
|
|
85
|
+
if (!children.length) return [];
|
|
86
|
+
if (item.children.length > 0) forcedExpandedIds.add(item.id);
|
|
87
|
+
return [_objectSpread(_objectSpread({}, item), {}, {
|
|
88
|
+
children: children
|
|
89
|
+
})];
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
return {
|
|
93
|
+
data: _filterItems(data),
|
|
94
|
+
forcedExpandedIds: forcedExpandedIds
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
export function flattenQueryStatistics(data, expandedIds) {
|
|
98
|
+
var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
99
|
+
return data.flatMap(function (item) {
|
|
100
|
+
return [{
|
|
101
|
+
item: item,
|
|
102
|
+
level: level
|
|
103
|
+
}].concat(_toConsumableArray(isQueryStatisticsGroup(item) && expandedIds.has(item.id) ? flattenQueryStatistics(item.children, expandedIds, level + 1) : []));
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
// #sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["isQueryStatisticsGroup","item","Array","isArray","children","isQueryStatisticsMetric","getQueryStatisticsValue","column","values","avg","undefined","_item$values","count","sum","collectQueryStatisticsGroupIds","data","flatMap","length","id","concat","_toConsumableArray","addSubtreeGroupIds","target","add","forEach","child","matchesSearch","search","name","description","unit","filter","Boolean","some","value","toLocaleLowerCase","includes","filterQueryStatistics","normalizedSearch","trim","forcedExpandedIds","Set","filterItems","items","_objectSpread","flattenQueryStatistics","expandedIds","level","arguments","has"],"sources":["helpers.ts"],"sourcesContent":["import type {\n QueryStatisticsGroup,\n QueryStatisticsItem,\n QueryStatisticsMetric,\n} from '../../types/queryStatistics';\n\nexport type QueryStatisticsRow = {item: QueryStatisticsItem; level: number};\n\nexport type FilterQueryStatisticsResult = {\n data: QueryStatisticsItem[];\n forcedExpandedIds: Set<string>;\n};\n\nexport function isQueryStatisticsGroup(item: QueryStatisticsItem): item is QueryStatisticsGroup {\n return Array.isArray(item.children);\n}\n\nexport function isQueryStatisticsMetric(item: QueryStatisticsItem): item is QueryStatisticsMetric {\n return !isQueryStatisticsGroup(item);\n}\n\nexport function getQueryStatisticsValue(\n item: QueryStatisticsMetric,\n column: keyof QueryStatisticsMetric['values'],\n) {\n if (column !== 'avg' || item.values.avg !== undefined) {\n return item.values[column];\n }\n\n const {count, sum} = item.values;\n return count === undefined || count === 0 || sum === undefined ? undefined : sum / count;\n}\n\nexport function collectQueryStatisticsGroupIds(data: QueryStatisticsItem[]): string[] {\n return data.flatMap((item) =>\n isQueryStatisticsGroup(item) && item.children.length > 0\n ? [item.id, ...collectQueryStatisticsGroupIds(item.children)]\n : [],\n );\n}\n\nfunction addSubtreeGroupIds(item: QueryStatisticsGroup, target: Set<string>) {\n if (item.children.length > 0) {\n target.add(item.id);\n }\n item.children.forEach((child) => {\n if (isQueryStatisticsGroup(child)) {\n addSubtreeGroupIds(child, target);\n }\n });\n}\n\nfunction matchesSearch(item: QueryStatisticsItem, search: string) {\n return [item.name, item.description, item.unit]\n .filter(Boolean)\n .some((value) => value?.toLocaleLowerCase().includes(search));\n}\n\nexport function filterQueryStatistics(\n data: QueryStatisticsItem[],\n search: string,\n): FilterQueryStatisticsResult {\n const normalizedSearch = search.trim().toLocaleLowerCase();\n if (!normalizedSearch) return {data, forcedExpandedIds: new Set()};\n\n const forcedExpandedIds = new Set<string>();\n const filterItems = (items: QueryStatisticsItem[]): QueryStatisticsItem[] =>\n items.flatMap<QueryStatisticsItem>((item) => {\n if (!isQueryStatisticsGroup(item)) {\n return matchesSearch(item, normalizedSearch) ? [item] : [];\n }\n if (matchesSearch(item, normalizedSearch)) {\n addSubtreeGroupIds(item, forcedExpandedIds);\n return [item];\n }\n const children = filterItems(item.children);\n if (!children.length) return [];\n if (item.children.length > 0) forcedExpandedIds.add(item.id);\n return [{...item, children}];\n });\n\n return {data: filterItems(data), forcedExpandedIds};\n}\n\nexport function flattenQueryStatistics(\n data: QueryStatisticsItem[],\n expandedIds: Set<string>,\n level = 0,\n): QueryStatisticsRow[] {\n return data.flatMap((item) => [\n {item, level},\n ...(isQueryStatisticsGroup(item) && expandedIds.has(item.id)\n ? flattenQueryStatistics(item.children, expandedIds, level + 1)\n : []),\n ]);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,OAAO,SAASA,sBAAsBA,CAACC,IAAyB,EAAgC;EAC5F,OAAOC,KAAK,CAACC,OAAO,CAACF,IAAI,CAACG,QAAQ,CAAC;AACvC;AAEA,OAAO,SAASC,uBAAuBA,CAACJ,IAAyB,EAAiC;EAC9F,OAAO,CAACD,sBAAsB,CAACC,IAAI,CAAC;AACxC;AAEA,OAAO,SAASK,uBAAuBA,CACnCL,IAA2B,EAC3BM,MAA6C,EAC/C;EACE,IAAIA,MAAM,KAAK,KAAK,IAAIN,IAAI,CAACO,MAAM,CAACC,GAAG,KAAKC,SAAS,EAAE;IACnD,OAAOT,IAAI,CAACO,MAAM,CAACD,MAAM,CAAC;EAC9B;EAEA,IAAAI,YAAA,GAAqBV,IAAI,CAACO,MAAM;IAAzBI,KAAK,GAAAD,YAAA,CAALC,KAAK;IAAEC,GAAG,GAAAF,YAAA,CAAHE,GAAG;EACjB,OAAOD,KAAK,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,CAAA/B,MAAA,QAAA+B,SAAA,QAAAtC,SAAA,GAAAsC,SAAA,MAAG,CAAC;EAET,OAAOjC,IAAI,CAACC,OAAO,CAAC,UAACf,IAAI;IAAA,QACrB;MAACA,IAAI,EAAJA,IAAI;MAAE8C,KAAK,EAALA;IAAK,CAAC,EAAA5B,MAAA,CAAAC,kBAAA,CACTpB,sBAAsB,CAACC,IAAI,CAAC,IAAI6C,WAAW,CAACG,GAAG,CAAChD,IAAI,CAACiB,EAAE,CAAC,GACtD2B,sBAAsB,CAAC5C,IAAI,CAACG,QAAQ,EAAE0C,WAAW,EAAEC,KAAK,GAAG,CAAC,CAAC,GAC7D,EAAE;EAAA,CACX,CAAC;AACN","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
"action_collapse-all": string;
|
|
4
|
+
"action_collapse-group": string;
|
|
5
|
+
"action_expand-all": string;
|
|
6
|
+
"action_expand-group": string;
|
|
7
|
+
field_avg: string;
|
|
8
|
+
field_count: string;
|
|
9
|
+
field_description: string;
|
|
10
|
+
field_last: string;
|
|
11
|
+
field_max: string;
|
|
12
|
+
field_metric: string;
|
|
13
|
+
field_min: string;
|
|
14
|
+
field_search: string;
|
|
15
|
+
field_sum: string;
|
|
16
|
+
field_unit: string;
|
|
17
|
+
};
|
|
18
|
+
ru: {
|
|
19
|
+
"action_collapse-all": string;
|
|
20
|
+
"action_collapse-group": string;
|
|
21
|
+
"action_expand-all": string;
|
|
22
|
+
"action_expand-group": string;
|
|
23
|
+
field_avg: string;
|
|
24
|
+
field_count: string;
|
|
25
|
+
field_description: string;
|
|
26
|
+
field_last: string;
|
|
27
|
+
field_max: string;
|
|
28
|
+
field_metric: string;
|
|
29
|
+
field_min: string;
|
|
30
|
+
field_search: string;
|
|
31
|
+
field_sum: string;
|
|
32
|
+
field_unit: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["en","ru"],"sources":["dicts.ts"],"sourcesContent":["import en from './en.json';\nimport ru from './ru.json';\n\nexport default {en, ru};\n"],"mappings":"AAAA,OAAOA,EAAE;AACT,OAAOC,EAAE;AAET,eAAe;EAACD,EAAE,EAAFA,EAAE;EAAEC,EAAE,EAAFA;AAAE,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"action_collapse-all": "Collapse all",
|
|
3
|
+
"action_collapse-group": "Collapse group",
|
|
4
|
+
"action_expand-all": "Expand all",
|
|
5
|
+
"action_expand-group": "Expand group",
|
|
6
|
+
"field_avg": "Avg",
|
|
7
|
+
"field_count": "Count",
|
|
8
|
+
"field_description": "Description",
|
|
9
|
+
"field_last": "Last",
|
|
10
|
+
"field_max": "Max",
|
|
11
|
+
"field_metric": "Metric",
|
|
12
|
+
"field_min": "Min",
|
|
13
|
+
"field_search": "Search",
|
|
14
|
+
"field_sum": "Sum",
|
|
15
|
+
"field_unit": "Unit"
|
|
16
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: ((key: "action_collapse-all" | "action_collapse-group" | "action_expand-all" | "action_expand-group" | "field_avg" | "field_count" | "field_description" | "field_last" | "field_max" | "field_metric" | "field_min" | "field_search" | "field_sum" | "field_unit", params?: import("@gravity-ui/i18n").Params) => string) & {
|
|
2
|
+
keysetData: {
|
|
3
|
+
"qp:query-statistics": Record<"action_collapse-all" | "action_collapse-group" | "action_expand-all" | "action_expand-group" | "field_avg" | "field_count" | "field_description" | "field_last" | "field_max" | "field_metric" | "field_min" | "field_search" | "field_sum" | "field_unit", import("@gravity-ui/i18n").KeyData>;
|
|
4
|
+
};
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["addI18Keysets","dicts"],"sources":["index.ts"],"sourcesContent":["import {addI18Keysets} from '../../../i18n';\nimport dicts from './dicts';\n\nexport default addI18Keysets('qp:query-statistics', dicts);\n"],"mappings":"AAAA,SAAQA,aAAa;AACrB,OAAOC,KAAK;AAEZ,eAAeD,aAAa,CAAC,qBAAqB,EAAEC,KAAK,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"action_collapse-all": "Свернуть все",
|
|
3
|
+
"action_collapse-group": "Свернуть группу",
|
|
4
|
+
"action_expand-all": "Развернуть все",
|
|
5
|
+
"action_expand-group": "Развернуть группу",
|
|
6
|
+
"field_avg": "Среднее",
|
|
7
|
+
"field_count": "Количество",
|
|
8
|
+
"field_description": "Описание",
|
|
9
|
+
"field_last": "Последнее",
|
|
10
|
+
"field_max": "Максимум",
|
|
11
|
+
"field_metric": "Метрика",
|
|
12
|
+
"field_min": "Минимум",
|
|
13
|
+
"field_search": "Поиск",
|
|
14
|
+
"field_sum": "Сумма",
|
|
15
|
+
"field_unit": "Единица измерения"
|
|
16
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { QueryStatistics } from './QueryStatistics';
|
|
2
|
+
export type { QueryStatisticsColumn, QueryStatisticsColumnConfig, QueryStatisticsExtraColumn, QueryStatisticsExtraColumnContext, QueryStatisticsFormatValueContext, QueryStatisticsGroup, QueryStatisticsItem, QueryStatisticsMetric, QueryStatisticsProps, QueryStatisticsValues, } from '../../types/queryStatistics';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["QueryStatistics"],"sources":["index.ts"],"sourcesContent":["export {QueryStatistics} from './QueryStatistics';\nexport type {\n QueryStatisticsColumn,\n QueryStatisticsColumnConfig,\n QueryStatisticsExtraColumn,\n QueryStatisticsExtraColumnContext,\n QueryStatisticsFormatValueContext,\n QueryStatisticsGroup,\n QueryStatisticsItem,\n QueryStatisticsMetric,\n QueryStatisticsProps,\n QueryStatisticsValues,\n} from '../../types/queryStatistics';\n"],"mappings":"AAAA,SAAQA,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.qp-query-statistics-metric-cell__indent {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
flex-shrink: 0;
|
|
4
|
+
}
|
|
5
|
+
.qp-query-statistics-metric-cell__indent-step {
|
|
6
|
+
width: var(--g-spacing-10);
|
|
7
|
+
flex-shrink: 0;
|
|
8
|
+
}
|
|
9
|
+
.qp-query-statistics-metric-cell__row-button, .qp-query-statistics-metric-cell__row-icon, .qp-query-statistics-metric-cell__info-icon {
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
}
|
|
12
|
+
.qp-query-statistics-metric-cell__name {
|
|
13
|
+
min-width: 0;
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
}
|
|
16
|
+
.qp-query-statistics-metric-cell__info-icon {
|
|
17
|
+
margin-left: var(--g-spacing-1);
|
|
18
|
+
color: var(--g-color-text-secondary);
|
|
19
|
+
vertical-align: text-bottom;
|
|
20
|
+
}
|
|
21
|
+
.qp-query-statistics-metric-cell__tooltip {
|
|
22
|
+
display: grid;
|
|
23
|
+
grid-gap: var(--g-spacing-2);
|
|
24
|
+
gap: var(--g-spacing-2);
|
|
25
|
+
max-width: 24rem;
|
|
26
|
+
}
|
|
27
|
+
.qp-query-statistics-metric-cell__tooltip-row {
|
|
28
|
+
display: grid;
|
|
29
|
+
grid-template-columns: max-content minmax(0, 1fr);
|
|
30
|
+
grid-gap: var(--g-spacing-2);
|
|
31
|
+
gap: var(--g-spacing-2);
|
|
32
|
+
}
|
|
33
|
+
.qp-query-statistics-metric-cell__tooltip-label {
|
|
34
|
+
color: var(--g-color-text-secondary);
|
|
35
|
+
}
|
|
36
|
+
/*# sourceMappingURL=MetricCell.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["MetricCell.scss"],"names":[],"mappings":"AACI;EAAY,oBAAA;EAAsB,cAAA;AAEtC;AADI;EAAiB,0BAAA;EAA4B,cAAA;AAKjD;AAJI;EAEe,cAAA;AAKnB;AAJI;EAAU,YAAA;EAAc,mBAAA;AAQ5B;AAPI;EAAe,+BAAA;EAAyC,oCAAA;EAAsC,2BAAA;AAYlG;AAXI;EAAa,aAAA;EAAe,4BAAA;EAAA,uBAAA;EAAyB,gBAAA;AAgBzD;AAfI;EAAiB,aAAA;EAAe,iDAAA;EAAmD,4BAAA;EAAA,uBAAA;AAoBvF;AAnBI;EAAmB,oCAAA;AAsBvB","file":"MetricCell.css","sourcesContent":[".qp-query-statistics-metric-cell {\n &__indent { display: inline-flex; flex-shrink: 0; }\n &__indent-step { width: var(--g-spacing-10); flex-shrink: 0; }\n &__row-button,\n &__row-icon,\n &__info-icon { flex-shrink: 0; }\n &__name { min-width: 0; white-space: nowrap; }\n &__info-icon { margin-inline-start: var(--g-spacing-1); color: var(--g-color-text-secondary); vertical-align: text-bottom; }\n &__tooltip { display: grid; gap: var(--g-spacing-2); max-width: 24rem; }\n &__tooltip-row { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--g-spacing-2); }\n &__tooltip-label { color: var(--g-color-text-secondary); }\n}\n"],"sourceRoot":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type QueryStatisticsRow } from '../helpers';
|
|
3
|
+
import './MetricCell.scss';
|
|
4
|
+
export type MetricCellProps = {
|
|
5
|
+
row: QueryStatisticsRow;
|
|
6
|
+
expanded: boolean;
|
|
7
|
+
onToggle: (id: string) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function MetricCell({ row, expanded, onToggle }: MetricCellProps): React.JSX.Element;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import "core-js/modules/es.symbol.js";
|
|
2
|
+
import "core-js/modules/es.symbol.description.js";
|
|
3
|
+
import "core-js/modules/es.array.from.js";
|
|
4
|
+
import "core-js/modules/es.function.name.js";
|
|
5
|
+
import "core-js/modules/es.string.iterator.js";
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { ChartLine, ChevronDown, ChevronRight, CircleQuestion, FolderArrowRight } from '@gravity-ui/icons';
|
|
8
|
+
import { Button, Flex, Icon, Tooltip } from '@gravity-ui/uikit';
|
|
9
|
+
import cn from 'bem-cn-lite';
|
|
10
|
+
import { isQueryStatisticsGroup } from "../helpers";
|
|
11
|
+
import i18n from "../i18n";
|
|
12
|
+
import "./MetricCell.css";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
var block = cn('qp-query-statistics-metric-cell');
|
|
15
|
+
function MetricInfo(_ref) {
|
|
16
|
+
var item = _ref.item;
|
|
17
|
+
var hasInfo = Boolean(item.description || item.unit);
|
|
18
|
+
var content = /*#__PURE__*/_jsxs("span", {
|
|
19
|
+
className: block('name'),
|
|
20
|
+
tabIndex: hasInfo ? 0 : undefined,
|
|
21
|
+
children: [item.name, hasInfo && /*#__PURE__*/_jsx(Icon, {
|
|
22
|
+
data: CircleQuestion,
|
|
23
|
+
size: 14,
|
|
24
|
+
className: block('info-icon')
|
|
25
|
+
})]
|
|
26
|
+
});
|
|
27
|
+
if (!hasInfo) return content;
|
|
28
|
+
return /*#__PURE__*/_jsx(Tooltip, {
|
|
29
|
+
content: /*#__PURE__*/_jsx(MetricTooltip, {
|
|
30
|
+
item: item
|
|
31
|
+
}),
|
|
32
|
+
children: content
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function MetricTooltip(_ref2) {
|
|
36
|
+
var item = _ref2.item;
|
|
37
|
+
return /*#__PURE__*/_jsxs("span", {
|
|
38
|
+
className: block('tooltip'),
|
|
39
|
+
children: [item.description && /*#__PURE__*/_jsxs("span", {
|
|
40
|
+
className: block('tooltip-row'),
|
|
41
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
42
|
+
className: block('tooltip-label'),
|
|
43
|
+
children: i18n('field_description')
|
|
44
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
45
|
+
children: item.description
|
|
46
|
+
})]
|
|
47
|
+
}), item.unit && /*#__PURE__*/_jsxs("span", {
|
|
48
|
+
className: block('tooltip-row'),
|
|
49
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
50
|
+
className: block('tooltip-label'),
|
|
51
|
+
children: i18n('field_unit')
|
|
52
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
53
|
+
children: item.unit
|
|
54
|
+
})]
|
|
55
|
+
})]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function Indent(_ref3) {
|
|
59
|
+
var level = _ref3.level;
|
|
60
|
+
if (!level) return null;
|
|
61
|
+
return /*#__PURE__*/_jsx("span", {
|
|
62
|
+
className: block('indent'),
|
|
63
|
+
"aria-hidden": "true",
|
|
64
|
+
children: Array.from({
|
|
65
|
+
length: level
|
|
66
|
+
}, function (_, index) {
|
|
67
|
+
return /*#__PURE__*/_jsx("span", {
|
|
68
|
+
className: block('indent-step')
|
|
69
|
+
}, index);
|
|
70
|
+
})
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
export function MetricCell(_ref4) {
|
|
74
|
+
var row = _ref4.row,
|
|
75
|
+
expanded = _ref4.expanded,
|
|
76
|
+
onToggle = _ref4.onToggle;
|
|
77
|
+
var item = row.item,
|
|
78
|
+
level = row.level;
|
|
79
|
+
var isGroup = isQueryStatisticsGroup(item);
|
|
80
|
+
return /*#__PURE__*/_jsxs(Flex, {
|
|
81
|
+
alignItems: "center",
|
|
82
|
+
gap: 2,
|
|
83
|
+
className: block(),
|
|
84
|
+
children: [/*#__PURE__*/_jsx(Indent, {
|
|
85
|
+
level: level
|
|
86
|
+
}), isGroup ? /*#__PURE__*/_jsxs(React.Fragment, {
|
|
87
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
88
|
+
view: "flat",
|
|
89
|
+
size: "xs",
|
|
90
|
+
"aria-label": expanded ? i18n('action_collapse-group') : i18n('action_expand-group'),
|
|
91
|
+
"aria-expanded": expanded,
|
|
92
|
+
onClick: function onClick() {
|
|
93
|
+
return onToggle(item.id);
|
|
94
|
+
},
|
|
95
|
+
className: block('row-button'),
|
|
96
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
97
|
+
data: expanded ? ChevronDown : ChevronRight,
|
|
98
|
+
size: 16
|
|
99
|
+
})
|
|
100
|
+
}), /*#__PURE__*/_jsx(Icon, {
|
|
101
|
+
data: FolderArrowRight,
|
|
102
|
+
size: 16,
|
|
103
|
+
className: block('row-icon')
|
|
104
|
+
})]
|
|
105
|
+
}) : /*#__PURE__*/_jsx(Icon, {
|
|
106
|
+
data: ChartLine,
|
|
107
|
+
size: 16,
|
|
108
|
+
className: block('row-icon')
|
|
109
|
+
}), /*#__PURE__*/_jsx(MetricInfo, {
|
|
110
|
+
item: item
|
|
111
|
+
})]
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
// #sourceMappingURL=MetricCell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ChartLine","ChevronDown","ChevronRight","CircleQuestion","FolderArrowRight","Button","Flex","Icon","Tooltip","cn","isQueryStatisticsGroup","i18n","jsx","_jsx","jsxs","_jsxs","block","MetricInfo","_ref","item","hasInfo","Boolean","description","unit","content","className","tabIndex","undefined","children","name","data","size","MetricTooltip","_ref2","Indent","_ref3","level","Array","from","length","_","index","MetricCell","_ref4","row","expanded","onToggle","isGroup","alignItems","gap","Fragment","view","onClick","id"],"sources":["MetricCell.tsx"],"sourcesContent":["import React from 'react';\nimport {\n ChartLine,\n ChevronDown,\n ChevronRight,\n CircleQuestion,\n FolderArrowRight,\n} from '@gravity-ui/icons';\nimport {Button, Flex, Icon, Tooltip} from '@gravity-ui/uikit';\nimport cn from 'bem-cn-lite';\n\nimport type {QueryStatisticsItem} from '../../../types/queryStatistics';\nimport {type QueryStatisticsRow, isQueryStatisticsGroup} from '../helpers';\nimport i18n from '../i18n';\n\nimport './MetricCell.scss';\n\nconst block = cn('qp-query-statistics-metric-cell');\n\nfunction MetricInfo({item}: {item: QueryStatisticsItem}) {\n const hasInfo = Boolean(item.description || item.unit);\n const content = (\n <span className={block('name')} tabIndex={hasInfo ? 0 : undefined}>\n {item.name}\n {hasInfo && <Icon data={CircleQuestion} size={14} className={block('info-icon')} />}\n </span>\n );\n\n if (!hasInfo) return content;\n\n return <Tooltip content={<MetricTooltip item={item} />}>{content}</Tooltip>;\n}\n\nfunction MetricTooltip({item}: {item: QueryStatisticsItem}) {\n return (\n <span className={block('tooltip')}>\n {item.description && (\n <span className={block('tooltip-row')}>\n <span className={block('tooltip-label')}>{i18n('field_description')}</span>\n <span>{item.description}</span>\n </span>\n )}\n {item.unit && (\n <span className={block('tooltip-row')}>\n <span className={block('tooltip-label')}>{i18n('field_unit')}</span>\n <span>{item.unit}</span>\n </span>\n )}\n </span>\n );\n}\n\nfunction Indent({level}: {level: number}) {\n if (!level) return null;\n return (\n <span className={block('indent')} aria-hidden=\"true\">\n {Array.from({length: level}, (_, index) => (\n <span className={block('indent-step')} key={index} />\n ))}\n </span>\n );\n}\n\nexport type MetricCellProps = {\n row: QueryStatisticsRow;\n expanded: boolean;\n onToggle: (id: string) => void;\n};\n\nexport function MetricCell({row, expanded, onToggle}: MetricCellProps) {\n const {item, level} = row;\n const isGroup = isQueryStatisticsGroup(item);\n\n return (\n <Flex alignItems=\"center\" gap={2} className={block()}>\n <Indent level={level} />\n {isGroup ? (\n <React.Fragment>\n <Button\n view=\"flat\"\n size=\"xs\"\n aria-label={\n expanded ? i18n('action_collapse-group') : i18n('action_expand-group')\n }\n aria-expanded={expanded}\n onClick={() => onToggle(item.id)}\n className={block('row-button')}\n >\n <Icon data={expanded ? ChevronDown : ChevronRight} size={16} />\n </Button>\n <Icon data={FolderArrowRight} size={16} className={block('row-icon')} />\n </React.Fragment>\n ) : (\n <Icon data={ChartLine} size={16} className={block('row-icon')} />\n )}\n <MetricInfo item={item} />\n </Flex>\n );\n}\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACIC,SAAS,EACTC,WAAW,EACXC,Y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|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
.qp-query-statistics-metric-cell {
|
|
2
|
+
&__indent { display: inline-flex; flex-shrink: 0; }
|
|
3
|
+
&__indent-step { width: var(--g-spacing-10); flex-shrink: 0; }
|
|
4
|
+
&__row-button,
|
|
5
|
+
&__row-icon,
|
|
6
|
+
&__info-icon { flex-shrink: 0; }
|
|
7
|
+
&__name { min-width: 0; white-space: nowrap; }
|
|
8
|
+
&__info-icon { margin-inline-start: var(--g-spacing-1); color: var(--g-color-text-secondary); vertical-align: text-bottom; }
|
|
9
|
+
&__tooltip { display: grid; gap: var(--g-spacing-2); max-width: 24rem; }
|
|
10
|
+
&__tooltip-row { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--g-spacing-2); }
|
|
11
|
+
&__tooltip-label { color: var(--g-color-text-secondary); }
|
|
12
|
+
}
|