@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,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.QueryStatisticsTable = QueryStatisticsTable;
|
|
7
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
8
|
+
require("core-js/modules/es.array.concat.js");
|
|
9
|
+
require("core-js/modules/es.array.map.js");
|
|
10
|
+
require("core-js/modules/es.iterator.constructor.js");
|
|
11
|
+
require("core-js/modules/es.iterator.map.js");
|
|
12
|
+
require("core-js/modules/es.number.is-finite.js");
|
|
13
|
+
require("core-js/modules/es.object.to-string.js");
|
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
+
var _reactDataTable = _interopRequireDefault(require("@gravity-ui/react-data-table"));
|
|
16
|
+
var _components = require("../../../components");
|
|
17
|
+
var _helpers = require("../helpers");
|
|
18
|
+
var _i18n = _interopRequireDefault(require("../i18n"));
|
|
19
|
+
var _MetricCell = require("./MetricCell");
|
|
20
|
+
require("./QueryStatisticsTable.css");
|
|
21
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
23
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
24
|
+
var NO_VALUE = '—';
|
|
25
|
+
var block = 'qp-query-statistics-table';
|
|
26
|
+
var COLUMN_TITLES = {
|
|
27
|
+
min: function min() {
|
|
28
|
+
return (0, _i18n.default)('field_min');
|
|
29
|
+
},
|
|
30
|
+
max: function max() {
|
|
31
|
+
return (0, _i18n.default)('field_max');
|
|
32
|
+
},
|
|
33
|
+
avg: function avg() {
|
|
34
|
+
return (0, _i18n.default)('field_avg');
|
|
35
|
+
},
|
|
36
|
+
sum: function sum() {
|
|
37
|
+
return (0, _i18n.default)('field_sum');
|
|
38
|
+
},
|
|
39
|
+
count: function count() {
|
|
40
|
+
return (0, _i18n.default)('field_count');
|
|
41
|
+
},
|
|
42
|
+
last: function last() {
|
|
43
|
+
return (0, _i18n.default)('field_last');
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
function QueryStatisticsTable(_ref) {
|
|
47
|
+
var rows = _ref.rows,
|
|
48
|
+
visibleColumns = _ref.visibleColumns,
|
|
49
|
+
columnConfig = _ref.columnConfig,
|
|
50
|
+
extraColumns = _ref.extraColumns,
|
|
51
|
+
expandedIds = _ref.expandedIds,
|
|
52
|
+
fixedHeader = _ref.fixedHeader,
|
|
53
|
+
virtual = _ref.virtual,
|
|
54
|
+
formatValue = _ref.formatValue,
|
|
55
|
+
isSearching = _ref.isSearching,
|
|
56
|
+
onToggleGroup = _ref.onToggleGroup;
|
|
57
|
+
var numberFormatter = (0, _react.useMemo)(function () {
|
|
58
|
+
return new Intl.NumberFormat(undefined, {
|
|
59
|
+
maximumFractionDigits: 6
|
|
60
|
+
});
|
|
61
|
+
}, []);
|
|
62
|
+
var columns = (0, _react.useMemo)(function () {
|
|
63
|
+
var metricColumn = {
|
|
64
|
+
name: 'metric',
|
|
65
|
+
header: (0, _i18n.default)('field_metric'),
|
|
66
|
+
className: "".concat(block, "__metric-column"),
|
|
67
|
+
width: '40%',
|
|
68
|
+
sortable: false,
|
|
69
|
+
render: function render(_ref2) {
|
|
70
|
+
var row = _ref2.row;
|
|
71
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MetricCell.MetricCell, {
|
|
72
|
+
row: row,
|
|
73
|
+
expanded: (0, _helpers.isQueryStatisticsGroup)(row.item) && expandedIds.has(row.item.id),
|
|
74
|
+
onToggle: onToggleGroup
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
var valueColumns = visibleColumns.map(function (column) {
|
|
79
|
+
var _columnConfig$column$, _columnConfig$column, _columnConfig$column$2, _columnConfig$column2;
|
|
80
|
+
return {
|
|
81
|
+
name: column,
|
|
82
|
+
header: (_columnConfig$column$ = columnConfig === null || columnConfig === void 0 || (_columnConfig$column = columnConfig[column]) === null || _columnConfig$column === void 0 ? void 0 : _columnConfig$column.title) !== null && _columnConfig$column$ !== void 0 ? _columnConfig$column$ : COLUMN_TITLES[column](),
|
|
83
|
+
className: "".concat(block, "__value-column"),
|
|
84
|
+
width: (_columnConfig$column$2 = columnConfig === null || columnConfig === void 0 || (_columnConfig$column2 = columnConfig[column]) === null || _columnConfig$column2 === void 0 ? void 0 : _columnConfig$column2.width) !== null && _columnConfig$column$2 !== void 0 ? _columnConfig$column$2 : '12%',
|
|
85
|
+
align: _reactDataTable.default.RIGHT,
|
|
86
|
+
sortable: false,
|
|
87
|
+
render: function render(_ref3) {
|
|
88
|
+
var row = _ref3.row;
|
|
89
|
+
if (!(0, _helpers.isQueryStatisticsMetric)(row.item)) return NO_VALUE;
|
|
90
|
+
var value = (0, _helpers.getQueryStatisticsValue)(row.item, column);
|
|
91
|
+
if (formatValue) return formatValue(value, {
|
|
92
|
+
column: column,
|
|
93
|
+
item: row.item
|
|
94
|
+
});
|
|
95
|
+
return value === undefined || !Number.isFinite(value) ? NO_VALUE : numberFormatter.format(value);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
});
|
|
99
|
+
var customColumns = (extraColumns !== null && extraColumns !== void 0 ? extraColumns : []).map(function (column) {
|
|
100
|
+
var _column$width;
|
|
101
|
+
return {
|
|
102
|
+
name: column.id,
|
|
103
|
+
header: column.title,
|
|
104
|
+
width: (_column$width = column.width) !== null && _column$width !== void 0 ? _column$width : '12%',
|
|
105
|
+
className: "".concat(block, "__value-column"),
|
|
106
|
+
sortable: false,
|
|
107
|
+
render: function render(_ref4) {
|
|
108
|
+
var row = _ref4.row;
|
|
109
|
+
return column.render({
|
|
110
|
+
item: row.item,
|
|
111
|
+
level: row.level
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
});
|
|
116
|
+
return [metricColumn].concat((0, _toConsumableArray2.default)(valueColumns), (0, _toConsumableArray2.default)(customColumns));
|
|
117
|
+
}, [columnConfig, expandedIds, extraColumns, formatValue, numberFormatter, onToggleGroup, visibleColumns]);
|
|
118
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
119
|
+
className: block + (fixedHeader ? " ".concat(block, "_fixed") : ''),
|
|
120
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.DataTable, {
|
|
121
|
+
columns: columns,
|
|
122
|
+
data: rows,
|
|
123
|
+
loaded: true,
|
|
124
|
+
emptyVariant: isSearching ? 'nothing-found' : 'no-data',
|
|
125
|
+
rowKey: function rowKey(row) {
|
|
126
|
+
return row.item.id;
|
|
127
|
+
},
|
|
128
|
+
settings: {
|
|
129
|
+
displayIndices: false,
|
|
130
|
+
sortable: false,
|
|
131
|
+
stripedRows: false,
|
|
132
|
+
dynamicRender: virtual,
|
|
133
|
+
dynamicRenderType: 'uniform',
|
|
134
|
+
stickyHead: fixedHeader ? _reactDataTable.default.MOVING : undefined,
|
|
135
|
+
syncHeadOnResize: fixedHeader
|
|
136
|
+
}
|
|
137
|
+
})
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
// #sourceMappingURL=QueryStatisticsTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactDataTable","_interopRequireDefault","_components","_helpers","_i18n","_MetricCell","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","NO_VALUE","block","COLUMN_TITLES","min","i18n","max","avg","sum","count","last","QueryStatisticsTable","_ref","rows","visibleColumns","columnConfig","extraColumns","expandedIds","fixedHeader","virtual","formatValue","isSearching","onToggleGroup","numberFormatter","useMemo","Intl","NumberFormat","undefined","maximumFractionDigits","columns","metricColumn","name","header","className","concat","width","sortable","render","_ref2","row","_jsx","MetricCell","expanded","isQueryStatisticsGroup","item","id","onToggle","valueColumns","map","column","_columnConfig$column$","_columnConfig$column","_columnConfig$column$2","_columnConfig$column2","title","align","BaseDataTable","RIGHT","_ref3","isQueryStatisticsMetric","value","getQueryStatisticsValue","Number","isFinite","format","customColumns","_column$width","_ref4","level","_toConsumableArray","children","DataTable","data","loaded","emptyVariant","rowKey","settings","displayIndices","stripedRows","dynamicRender","dynamicRenderType","stickyHead","MOVING","syncHeadOnResize"],"sources":["QueryStatisticsTable.tsx"],"sourcesContent":["import React, {useMemo} from 'react';\nimport BaseDataTable, {type Column} from '@gravity-ui/react-data-table';\nimport {DataTable} from '../../../components';\nimport type {\n QueryStatisticsColumn,\n QueryStatisticsExtraColumn,\n QueryStatisticsFormatValueContext,\n} from '../../../types/queryStatistics';\nimport {\n type QueryStatisticsRow,\n getQueryStatisticsValue,\n isQueryStatisticsGroup,\n isQueryStatisticsMetric,\n} from '../helpers';\nimport i18n from '../i18n';\nimport {MetricCell} from './MetricCell';\n\nimport './QueryStatisticsTable.scss';\n\nconst NO_VALUE = '—';\nconst block = 'qp-query-statistics-table';\nconst COLUMN_TITLES: Record<QueryStatisticsColumn, () => string> = {\n min: () => i18n('field_min'),\n max: () => i18n('field_max'),\n avg: () => i18n('field_avg'),\n sum: () => i18n('field_sum'),\n count: () => i18n('field_count'),\n last: () => i18n('field_last'),\n};\n\nexport type QueryStatisticsTableProps = {\n rows: QueryStatisticsRow[];\n visibleColumns: QueryStatisticsColumn[];\n columnConfig?: Partial<\n Record<QueryStatisticsColumn, {title?: React.ReactNode; width?: string}>\n >;\n extraColumns?: QueryStatisticsExtraColumn[];\n expandedIds: Set<string>;\n fixedHeader: boolean;\n virtual: boolean;\n formatValue?: (\n value: number | undefined,\n context: QueryStatisticsFormatValueContext,\n ) => React.ReactNode;\n isSearching: boolean;\n onToggleGroup: (id: string) => void;\n};\n\nexport function QueryStatisticsTable({\n rows,\n visibleColumns,\n columnConfig,\n extraColumns,\n expandedIds,\n fixedHeader,\n virtual,\n formatValue,\n isSearching,\n onToggleGroup,\n}: QueryStatisticsTableProps) {\n const numberFormatter = useMemo(\n () => new Intl.NumberFormat(undefined, {maximumFractionDigits: 6}),\n [],\n );\n const columns = useMemo<Array<Column<QueryStatisticsRow>>>(() => {\n const metricColumn: Column<QueryStatisticsRow> = {\n name: 'metric',\n header: i18n('field_metric'),\n className: `${block}__metric-column`,\n width: '40%',\n sortable: false,\n render: ({row}) => (\n <MetricCell\n row={row}\n expanded={isQueryStatisticsGroup(row.item) && expandedIds.has(row.item.id)}\n onToggle={onToggleGroup}\n />\n ),\n };\n const valueColumns = visibleColumns.map<Column<QueryStatisticsRow>>((column) => ({\n name: column,\n header: columnConfig?.[column]?.title ?? COLUMN_TITLES[column](),\n className: `${block}__value-column`,\n width: columnConfig?.[column]?.width ?? '12%',\n align: BaseDataTable.RIGHT,\n sortable: false,\n render: ({row}) => {\n if (!isQueryStatisticsMetric(row.item)) return NO_VALUE;\n const value = getQueryStatisticsValue(row.item, column);\n if (formatValue) return formatValue(value, {column, item: row.item});\n return value === undefined || !Number.isFinite(value)\n ? NO_VALUE\n : numberFormatter.format(value);\n },\n }));\n const customColumns = (extraColumns ?? []).map<Column<QueryStatisticsRow>>((column) => ({\n name: column.id,\n header: column.title,\n width: column.width ?? '12%',\n className: `${block}__value-column`,\n sortable: false,\n render: ({row}) => column.render({item: row.item, level: row.level}),\n }));\n return [metricColumn, ...valueColumns, ...customColumns];\n }, [\n columnConfig,\n expandedIds,\n extraColumns,\n formatValue,\n numberFormatter,\n onToggleGroup,\n visibleColumns,\n ]);\n\n return (\n <div className={block + (fixedHeader ? ` ${block}_fixed` : '')}>\n <DataTable<QueryStatisticsRow>\n columns={columns}\n data={rows}\n loaded\n emptyVariant={isSearching ? 'nothing-found' : 'no-data'}\n rowKey={(row) => row.item.id}\n settings={{\n displayIndices: false,\n sortable: false,\n stripedRows: false,\n dynamicRender: virtual,\n dynamicRenderType: 'uniform',\n stickyHead: fixedHeader ? BaseDataTable.MOVING : undefined,\n syncHeadOnResize: fixedHeader,\n }}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAMA,IAAAI,QAAA,GAAAJ,OAAA;AAMA,IAAAK,KAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AAEAA,OAAA;AAAqC,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,wBAAAS,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uBAAA,YAAAA,CAAAS,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,C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,CAAC0B,MAAM,GAAGvD,SAAS;QAC1DwD,gBAAgB,EAAEjE;MACtB;IAAE,CACL;EAAC,CACD,CAAC;AAEd","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["QueryStatisticsToolbar.scss"],"names":[],"mappings":"AAAA;EAA+B,iCAAA;EAAsC,gBAAA;AAGrE","file":"QueryStatisticsToolbar.css","sourcesContent":[".qp-query-statistics-toolbar { margin-block-end: var(--g-spacing-4); max-width: 34rem; }\n"],"sourceRoot":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './QueryStatisticsToolbar.scss';
|
|
3
|
+
export type QueryStatisticsToolbarProps = {
|
|
4
|
+
search: string;
|
|
5
|
+
hasGroups: boolean;
|
|
6
|
+
onSearchUpdate: (value: string) => void;
|
|
7
|
+
onExpandAll: () => void;
|
|
8
|
+
onCollapseAll: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function QueryStatisticsToolbar({ search, hasGroups, onSearchUpdate, onExpandAll, onCollapseAll, }: QueryStatisticsToolbarProps): React.JSX.Element;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.QueryStatisticsToolbar = QueryStatisticsToolbar;
|
|
7
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
8
|
+
require("core-js/modules/es.string.search.js");
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _icons = require("@gravity-ui/icons");
|
|
11
|
+
var _uikit = require("@gravity-ui/uikit");
|
|
12
|
+
var _bemCnLite = _interopRequireDefault(require("bem-cn-lite"));
|
|
13
|
+
var _components = require("../../../components");
|
|
14
|
+
var _i18n = _interopRequireDefault(require("../i18n"));
|
|
15
|
+
require("./QueryStatisticsToolbar.css");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
+
var block = (0, _bemCnLite.default)('qp-query-statistics-toolbar');
|
|
19
|
+
function QueryStatisticsToolbar(_ref) {
|
|
20
|
+
var search = _ref.search,
|
|
21
|
+
hasGroups = _ref.hasGroups,
|
|
22
|
+
onSearchUpdate = _ref.onSearchUpdate,
|
|
23
|
+
onExpandAll = _ref.onExpandAll,
|
|
24
|
+
onCollapseAll = _ref.onCollapseAll;
|
|
25
|
+
var buttons = [/*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Button, {
|
|
26
|
+
size: "m",
|
|
27
|
+
"aria-label": (0, _i18n.default)('action_expand-all'),
|
|
28
|
+
title: (0, _i18n.default)('action_expand-all'),
|
|
29
|
+
disabled: !hasGroups,
|
|
30
|
+
onClick: onExpandAll,
|
|
31
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Icon, {
|
|
32
|
+
data: _icons.ChevronsDown,
|
|
33
|
+
size: 16
|
|
34
|
+
})
|
|
35
|
+
}, "expand"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Button, {
|
|
36
|
+
size: "m",
|
|
37
|
+
"aria-label": (0, _i18n.default)('action_collapse-all'),
|
|
38
|
+
title: (0, _i18n.default)('action_collapse-all'),
|
|
39
|
+
disabled: !hasGroups,
|
|
40
|
+
onClick: onCollapseAll,
|
|
41
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Icon, {
|
|
42
|
+
data: _icons.ChevronsUp,
|
|
43
|
+
size: 16
|
|
44
|
+
})
|
|
45
|
+
}, "collapse")];
|
|
46
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SearchWithButtons, {
|
|
47
|
+
value: search,
|
|
48
|
+
placeholder: (0, _i18n.default)('field_search'),
|
|
49
|
+
hasClear: true,
|
|
50
|
+
onUpdate: onSearchUpdate,
|
|
51
|
+
endButtons: buttons,
|
|
52
|
+
className: block()
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
// #sourceMappingURL=QueryStatisticsToolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_icons","_uikit","_bemCnLite","_components","_i18n","_jsxRuntime","e","__esModule","default","block","cn","QueryStatisticsToolbar","_ref","search","hasGroups","onSearchUpdate","onExpandAll","onCollapseAll","buttons","_jsx","Button","size","i18n","title","disabled","onClick","children","Icon","data","ChevronsDown","ChevronsUp","SearchWithButtons","value","placeholder","hasClear","onUpdate","endButtons","className"],"sources":["QueryStatisticsToolbar.tsx"],"sourcesContent":["import React from 'react';\nimport {ChevronsDown, ChevronsUp} from '@gravity-ui/icons';\nimport {Button, Icon} from '@gravity-ui/uikit';\nimport cn from 'bem-cn-lite';\n\nimport {SearchWithButtons} from '../../../components';\nimport i18n from '../i18n';\n\nimport './QueryStatisticsToolbar.scss';\n\nconst block = cn('qp-query-statistics-toolbar');\n\nexport type QueryStatisticsToolbarProps = {\n search: string;\n hasGroups: boolean;\n onSearchUpdate: (value: string) => void;\n onExpandAll: () => void;\n onCollapseAll: () => void;\n};\n\nexport function QueryStatisticsToolbar({\n search,\n hasGroups,\n onSearchUpdate,\n onExpandAll,\n onCollapseAll,\n}: QueryStatisticsToolbarProps) {\n const buttons = [\n <Button\n key=\"expand\"\n size=\"m\"\n aria-label={i18n('action_expand-all')}\n title={i18n('action_expand-all')}\n disabled={!hasGroups}\n onClick={onExpandAll}\n >\n <Icon data={ChevronsDown} size={16} />\n </Button>,\n <Button\n key=\"collapse\"\n size=\"m\"\n aria-label={i18n('action_collapse-all')}\n title={i18n('action_collapse-all')}\n disabled={!hasGroups}\n onClick={onCollapseAll}\n >\n <Icon data={ChevronsUp} size={16} />\n </Button>,\n ];\n\n return (\n <SearchWithButtons\n value={search}\n placeholder={i18n('field_search')}\n hasClear\n onUpdate={onSearchUpdate}\n endButtons={buttons}\n className={block()}\n />\n );\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E;IACnCE,QAAQ,EAAE,CAACV,SAAU;IACrBW,OAAO,EAAER,aAAc;IAAAS,QAAA,eAEvB,IAAAP,eAAA,EAACQ,WAAI;MAACC,IAAI,EAAEE,iBAAW;MAACT,IAAI,EAAE;IAAG,CAAE;EAAC,GAPhC,UAQA,CAAC,CACZ;EAED,oBACI,IAAAF,eAAA,EAACY,6BAAiB;IACdC,KAAK,EAAEnB,MAAO;IACdoB,WAAW,EAAE,IAAAX,aAAI,EAAC,cAAc,CAAE;IAClCY,QAAQ;IACRC,QAAQ,EAAEpB,cAAe;IACzBqB,UAAU,EAAElB,OAAQ;IACpBmB,SAAS,EAAE5B,KAAK,CAAC;EAAE,CACtB,CAAC;AAEV","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { QueryStatistics } from '../QueryStatistics';
|
|
3
|
+
declare const meta: Meta<typeof QueryStatistics>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof QueryStatistics>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const ConfiguredColumns: Story;
|
|
8
|
+
export declare const VirtualAndFixed: Story;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.VirtualAndFixed = exports.Default = exports.ConfiguredColumns = void 0;
|
|
7
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
8
|
+
require("core-js/modules/es.array.concat.js");
|
|
9
|
+
require("core-js/modules/es.array.from.js");
|
|
10
|
+
require("core-js/modules/es.string.iterator.js");
|
|
11
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var _QueryStatistics = require("../QueryStatistics");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
var data = [{
|
|
16
|
+
id: 'input',
|
|
17
|
+
name: 'Input',
|
|
18
|
+
children: [{
|
|
19
|
+
id: 'input.rows',
|
|
20
|
+
name: 'Rows',
|
|
21
|
+
description: 'Number of rows read from the input',
|
|
22
|
+
values: {
|
|
23
|
+
min: 0,
|
|
24
|
+
max: 1600,
|
|
25
|
+
sum: 4200,
|
|
26
|
+
count: 4,
|
|
27
|
+
last: 1400
|
|
28
|
+
}
|
|
29
|
+
}, {
|
|
30
|
+
id: 'input.weight',
|
|
31
|
+
name: 'Data weight',
|
|
32
|
+
unit: 'bytes',
|
|
33
|
+
values: {
|
|
34
|
+
min: 1024,
|
|
35
|
+
max: 1048576,
|
|
36
|
+
avg: 120000.25,
|
|
37
|
+
sum: 2097152,
|
|
38
|
+
count: 4
|
|
39
|
+
}
|
|
40
|
+
}]
|
|
41
|
+
}];
|
|
42
|
+
var largeData = Array.from({
|
|
43
|
+
length: 12
|
|
44
|
+
}, function (_group, groupIndex) {
|
|
45
|
+
return {
|
|
46
|
+
id: "group-".concat(groupIndex),
|
|
47
|
+
name: "Group ".concat(groupIndex + 1, " with a deliberately long name for horizontal scrolling"),
|
|
48
|
+
children: Array.from({
|
|
49
|
+
length: 25
|
|
50
|
+
}, function (_metric, metricIndex) {
|
|
51
|
+
return {
|
|
52
|
+
id: "group-".concat(groupIndex, ".metric-").concat(metricIndex),
|
|
53
|
+
name: "Metric ".concat(metricIndex + 1),
|
|
54
|
+
values: {
|
|
55
|
+
min: metricIndex,
|
|
56
|
+
max: metricIndex * 10,
|
|
57
|
+
sum: metricIndex * 100,
|
|
58
|
+
count: metricIndex + 1,
|
|
59
|
+
last: metricIndex * 5
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
})
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
var meta = {
|
|
66
|
+
title: 'Modules/QueryStatistics',
|
|
67
|
+
component: _QueryStatistics.QueryStatistics,
|
|
68
|
+
tags: ['autodocs'],
|
|
69
|
+
args: {
|
|
70
|
+
data: data
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
var _default = exports.default = meta;
|
|
74
|
+
var Default = exports.Default = {};
|
|
75
|
+
var ConfiguredColumns = exports.ConfiguredColumns = {
|
|
76
|
+
args: {
|
|
77
|
+
visibleColumns: ['last', 'avg', 'count'],
|
|
78
|
+
columnConfig: {
|
|
79
|
+
last: {
|
|
80
|
+
title: 'Latest value',
|
|
81
|
+
width: '20%'
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
extraColumns: [{
|
|
85
|
+
id: 'unit',
|
|
86
|
+
title: 'Unit',
|
|
87
|
+
render: function render(_ref) {
|
|
88
|
+
var _item$unit;
|
|
89
|
+
var item = _ref.item;
|
|
90
|
+
return (_item$unit = item.unit) !== null && _item$unit !== void 0 ? _item$unit : '—';
|
|
91
|
+
}
|
|
92
|
+
}]
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
var VirtualAndFixed = exports.VirtualAndFixed = {
|
|
96
|
+
args: {
|
|
97
|
+
data: largeData,
|
|
98
|
+
virtual: true,
|
|
99
|
+
fixedHeader: true
|
|
100
|
+
},
|
|
101
|
+
render: function render(args) {
|
|
102
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
103
|
+
style: {
|
|
104
|
+
height: 360,
|
|
105
|
+
maxWidth: 1100,
|
|
106
|
+
overflow: 'auto'
|
|
107
|
+
},
|
|
108
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_QueryStatistics.QueryStatistics, (0, _objectSpread2.default)({}, args))
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
// #sourceMappingURL=QueryStatistics.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_QueryStatistics","_jsxRuntime","e","__esModule","default","data","id","name","children","description","values","min","max","sum","count","last","unit","avg","largeData","Array","from","length","_group","groupIndex","concat","_metric","metricIndex","meta","title","component","QueryStatistics","tags","args","_default","exports","Default","ConfiguredColumns","visibleColumns","columnConfig","width","extraColumns","render","_ref","_item$unit","item","VirtualAndFixed","virtual","fixedHeader","_jsx","style","height","maxWidth","overflow","_objectSpread"],"sources":["QueryStatistics.stories.tsx"],"sourcesContent":["import React from 'react';\nimport type {Meta, StoryObj} from '@storybook/react';\n\nimport type {QueryStatisticsItem} from '../../../types/queryStatistics';\nimport {QueryStatistics} from '../QueryStatistics';\n\nconst data: QueryStatisticsItem[] = [\n {\n id: 'input',\n name: 'Input',\n children: [\n {\n id: 'input.rows',\n name: 'Rows',\n description: 'Number of rows read from the input',\n values: {min: 0, max: 1600, sum: 4200, count: 4, last: 1400},\n },\n {\n id: 'input.weight',\n name: 'Data weight',\n unit: 'bytes',\n values: {min: 1024, max: 1048576, avg: 120000.25, sum: 2097152, count: 4},\n },\n ],\n },\n];\n\nconst largeData: QueryStatisticsItem[] = Array.from({length: 12}, (_group, groupIndex) => ({\n id: `group-${groupIndex}`,\n name: `Group ${groupIndex + 1} with a deliberately long name for horizontal scrolling`,\n children: Array.from({length: 25}, (_metric, metricIndex) => ({\n id: `group-${groupIndex}.metric-${metricIndex}`,\n name: `Metric ${metricIndex + 1}`,\n values: {\n min: metricIndex,\n max: metricIndex * 10,\n sum: metricIndex * 100,\n count: metricIndex + 1,\n last: metricIndex * 5,\n },\n })),\n}));\n\nconst meta: Meta<typeof QueryStatistics> = {\n title: 'Modules/QueryStatistics',\n component: QueryStatistics,\n tags: ['autodocs'],\n args: {data},\n};\n\nexport default meta;\ntype Story = StoryObj<typeof QueryStatistics>;\n\nexport const Default: Story = {};\n\nexport const ConfiguredColumns: Story = {\n args: {\n visibleColumns: ['last', 'avg', 'count'],\n columnConfig: {last: {title: 'Latest value', width: '20%'}},\n extraColumns: [{id: 'unit', title: 'Unit', render: ({item}) => item.unit ?? '—'}],\n },\n};\n\nexport const VirtualAndFixed: Story = {\n args: {data: largeData, virtual: true, fixedHeader: true},\n render: (args) => (\n <div style={{height: 360, maxWidth: 1100, overflow: 'auto'}}>\n <QueryStatistics {...args} />\n </div>\n ),\n};\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAIA,IAAAC,gBAAA,GAAAD,OAAA;AAAmD,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEnD,IAAMG,IAA2B,GAAG,CAChC;EACIC,EAAE,EAAE,OAAO;EACXC,IAAI,EAAE,OAAO;EACbC,QAAQ,EAAE,CACN;IACIF,EAAE,EAAE,YAAY;IAChBC,IAAI,EAAE,MAAM;IACZE,WAAW,EAAE,oCAAoC;IACjDC,MAAM,EAAE;MAACC,GAAG,EAAE,CAAC;MAAEC,GAAG,EAAE,IAAI;MAAEC,GAAG,EAAE,IAAI;MAAEC,KAAK,EAAE,CAAC;MAAEC,IAAI,EAAE;IAAI;EAC/D,CAAC,EACD;IACIT,EAAE,EAAE,cAAc;IAClBC,IAAI,EAAE,aAAa;IACnBS,IAAI,EAAE,OAAO;IACbN,MAAM,EAAE;MAACC,GAAG,EAAE,IAAI;MAAEC,GAAG,EAAE,OAAO;MAAEK,GAAG,EAAE,SAAS;MAAEJ,GAAG,EAAE,OAAO;MAAEC,KAAK,EAAE;IAAC;EAC5E,CAAC;AAET,CAAC,CACJ;AAED,IAAMI,SAAgC,GAAGC,KAAK,CAACC,IAAI,CAAC;EAACC,MAAM,EAAE;AAAE,CAAC,EAAE,UAACC,MAAM,EAAEC,UAAU;EAAA,OAAM;IACvFjB,EAAE,WAAAkB,MAAA,CAAWD,UAAU,CAAE;IACzBhB,IAAI,WAAAiB,MAAA,CAAWD,UAAU,GAAG,CAAC,4DAAyD;IACtFf,QAAQ,EAAEW,KAAK,CA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AAMC,IAAI,CAAC5B,IAAI,cAAA2B,UAAA,cAAAA,UAAA,GAAI,GAAG;MAAA;IAAA,CAAC;EACpF;AACJ,CAAC;AAEM,IAAME,eAAsB,GAAAX,OAAA,CAAAW,eAAA,GAAG;EAClCb,IAAI,EAAE;IAAC3B,IAAI,EAAEa,SAAS;IAAE4B,OAAO,EAAE,IAAI;IAAEC,WAAW,EAAE;EAAI,CAAC;EACzDN,MAAM,EAAE,SAARA,MAAMA,CAAGT,IAAI;IAAA,oBACT,IAAAgB,eAAA;MAAKC,KAAK,EAAE;QAACC,MAAM,EAAE,GAAG;QAAEC,QAAQ,EAAE,IAAI;QAAEC,QAAQ,EAAE;MAAM,CAAE;MAAA5C,QAAA,eACxD,IAAAwC,eAAA,EAAClB,gCAAe,MAAAuB,sBAAA,MAAKrB,IAAI,CAAG;IAAC,CAC5B,CAAC;EAAA;AAEd,CAAC","ignoreList":[]}
|
|
@@ -16,6 +16,7 @@ export type { SavedQueryRowProps } from './SavedQueryRow';
|
|
|
16
16
|
export { SavedQuerySearchRow } from './SavedQuerySearchRow';
|
|
17
17
|
export type { SavedQuerySearchRowProps } from './SavedQuerySearchRow';
|
|
18
18
|
export * from './ChartEditor';
|
|
19
|
+
export * from './Attachments';
|
|
19
20
|
export { TutorialRow } from './TutorialRow';
|
|
20
21
|
export type { TutorialRowProps } from './TutorialRow';
|
|
21
22
|
export { TutorialSearchRow } from './TutorialSearchRow';
|
|
@@ -28,6 +29,8 @@ export { NavigationDetail } from './NavigationDetail';
|
|
|
28
29
|
export type { NavigationDetailProps } from './NavigationDetail';
|
|
29
30
|
export { NavigationSchema, buildSchemaColumns, filterSchema } from './NavigationSchema';
|
|
30
31
|
export type { NavigationSchemaProps, NavigationSchemaViewConfig } from './NavigationSchema';
|
|
32
|
+
export { QueryStatistics } from './QueryStatistics';
|
|
33
|
+
export type { QueryStatisticsColumn, QueryStatisticsColumnConfig, QueryStatisticsExtraColumn, QueryStatisticsExtraColumnContext, QueryStatisticsFormatValueContext, QueryStatisticsGroup, QueryStatisticsItem, QueryStatisticsMetric, QueryStatisticsProps, QueryStatisticsValues, } from './QueryStatistics';
|
|
31
34
|
export { NavigationPreview, buildPreviewColumns, filterPreviewRows } from './NavigationPreview';
|
|
32
35
|
export type { NavigationPreviewProps, NavigationPreviewViewConfig } from './NavigationPreview';
|
|
33
36
|
export { NavigationMeta, buildMetaGroups } from './NavigationMeta';
|
|
@@ -22,6 +22,7 @@ var _exportNames = {
|
|
|
22
22
|
NavigationSchema: true,
|
|
23
23
|
buildSchemaColumns: true,
|
|
24
24
|
filterSchema: true,
|
|
25
|
+
QueryStatistics: true,
|
|
25
26
|
NavigationPreview: true,
|
|
26
27
|
buildPreviewColumns: true,
|
|
27
28
|
filterPreviewRows: true,
|
|
@@ -114,6 +115,12 @@ Object.defineProperty(exports, "QueriesList", {
|
|
|
114
115
|
return _QueriesList.QueriesList;
|
|
115
116
|
}
|
|
116
117
|
});
|
|
118
|
+
Object.defineProperty(exports, "QueryStatistics", {
|
|
119
|
+
enumerable: true,
|
|
120
|
+
get: function () {
|
|
121
|
+
return _QueryStatistics.QueryStatistics;
|
|
122
|
+
}
|
|
123
|
+
});
|
|
117
124
|
Object.defineProperty(exports, "RowsList", {
|
|
118
125
|
enumerable: true,
|
|
119
126
|
get: function () {
|
|
@@ -202,12 +209,25 @@ Object.keys(_ChartEditor).forEach(function (key) {
|
|
|
202
209
|
}
|
|
203
210
|
});
|
|
204
211
|
});
|
|
212
|
+
var _Attachments = require("./Attachments");
|
|
213
|
+
Object.keys(_Attachments).forEach(function (key) {
|
|
214
|
+
if (key === "default" || key === "__esModule") return;
|
|
215
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
216
|
+
if (key in exports && exports[key] === _Attachments[key]) return;
|
|
217
|
+
Object.defineProperty(exports, key, {
|
|
218
|
+
enumerable: true,
|
|
219
|
+
get: function () {
|
|
220
|
+
return _Attachments[key];
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
});
|
|
205
224
|
var _TutorialRow = require("./TutorialRow");
|
|
206
225
|
var _TutorialSearchRow = require("./TutorialSearchRow");
|
|
207
226
|
var _ClustersList = require("./ClustersList");
|
|
208
227
|
var _NavigationItemsList = require("./NavigationItemsList");
|
|
209
228
|
var _NavigationDetail = require("./NavigationDetail");
|
|
210
229
|
var _NavigationSchema = require("./NavigationSchema");
|
|
230
|
+
var _QueryStatistics = require("./QueryStatistics");
|
|
211
231
|
var _NavigationPreview = require("./NavigationPreview");
|
|
212
232
|
var _NavigationMeta = require("./NavigationMeta");
|
|
213
233
|
var _NavigationView = require("./NavigationView");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_HistoryHeader","require","_HistoryLayout","_HistoryComparisonActions","_NavigationHeader","_RowsList","_QueriesList","_HistoryRow","_HistorySearchRow","_SavedQueryRow","_SavedQuerySearchRow","_ChartEditor","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_TutorialRow","_TutorialSearchRow","_ClustersList","_NavigationItemsList","_NavigationDetail","_NavigationSchema","_NavigationPreview","_NavigationMeta","_NavigationView"],"sources":["index.ts"],"sourcesContent":["export {HistoryHeader} from './HistoryHeader';\nexport {HistoryLayout} from './HistoryLayout';\nexport {HistoryComparisonActions} from './HistoryComparisonActions';\nexport type {HistoryComparisonActionsProps} from './HistoryComparisonActions';\nexport {NavigationHeader} from './NavigationHeader';\nexport type {NavigationHeaderProps} from './NavigationHeader';\nexport type {HistoryLayoutProps} from './HistoryLayout';\nexport {RowsList} from './RowsList';\nexport type {RowsListProps} from './RowsList';\nexport {QueriesList} from './QueriesList';\nexport type {QueriesListProps} from './QueriesList';\nexport {HistoryRow} from './HistoryRow';\nexport {HistorySearchRow} from './HistorySearchRow';\nexport {SavedQueryRow} from './SavedQueryRow';\nexport type {SavedQueryRowProps} from './SavedQueryRow';\nexport {SavedQuerySearchRow} from './SavedQuerySearchRow';\nexport type {SavedQuerySearchRowProps} from './SavedQuerySearchRow';\nexport * from './ChartEditor';\nexport {TutorialRow} from './TutorialRow';\nexport type {TutorialRowProps} from './TutorialRow';\nexport {TutorialSearchRow} from './TutorialSearchRow';\nexport type {TutorialSearchRowProps} from './TutorialSearchRow';\nexport {ClustersList} from './ClustersList';\nexport type {ClustersListProps} from './ClustersList';\nexport {NavigationItemsList} from './NavigationItemsList';\nexport type {NavigationItemsListProps} from './NavigationItemsList';\nexport {NavigationDetail} from './NavigationDetail';\nexport type {NavigationDetailProps} from './NavigationDetail';\nexport {NavigationSchema, buildSchemaColumns, filterSchema} from './NavigationSchema';\nexport type {NavigationSchemaProps, NavigationSchemaViewConfig} from './NavigationSchema';\nexport {NavigationPreview, buildPreviewColumns, filterPreviewRows} from './NavigationPreview';\nexport type {NavigationPreviewProps, NavigationPreviewViewConfig} from './NavigationPreview';\nexport {NavigationMeta, buildMetaGroups} from './NavigationMeta';\nexport type {NavigationMetaProps, NavigationMetaViewConfig} from './NavigationMeta';\nexport {NavigationView, buildViewColumns} from './NavigationView';\nexport type {NavigationViewProps, NavigationViewViewConfig} from './NavigationView';\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_HistoryHeader","require","_HistoryLayout","_HistoryComparisonActions","_NavigationHeader","_RowsList","_QueriesList","_HistoryRow","_HistorySearchRow","_SavedQueryRow","_SavedQuerySearchRow","_ChartEditor","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Attachments","_TutorialRow","_TutorialSearchRow","_ClustersList","_NavigationItemsList","_NavigationDetail","_NavigationSchema","_QueryStatistics","_NavigationPreview","_NavigationMeta","_NavigationView"],"sources":["index.ts"],"sourcesContent":["export {HistoryHeader} from './HistoryHeader';\nexport {HistoryLayout} from './HistoryLayout';\nexport {HistoryComparisonActions} from './HistoryComparisonActions';\nexport type {HistoryComparisonActionsProps} from './HistoryComparisonActions';\nexport {NavigationHeader} from './NavigationHeader';\nexport type {NavigationHeaderProps} from './NavigationHeader';\nexport type {HistoryLayoutProps} from './HistoryLayout';\nexport {RowsList} from './RowsList';\nexport type {RowsListProps} from './RowsList';\nexport {QueriesList} from './QueriesList';\nexport type {QueriesListProps} from './QueriesList';\nexport {HistoryRow} from './HistoryRow';\nexport {HistorySearchRow} from './HistorySearchRow';\nexport {SavedQueryRow} from './SavedQueryRow';\nexport type {SavedQueryRowProps} from './SavedQueryRow';\nexport {SavedQuerySearchRow} from './SavedQuerySearchRow';\nexport type {SavedQuerySearchRowProps} from './SavedQuerySearchRow';\nexport * from './ChartEditor';\nexport * from './Attachments';\nexport {TutorialRow} from './TutorialRow';\nexport type {TutorialRowProps} from './TutorialRow';\nexport {TutorialSearchRow} from './TutorialSearchRow';\nexport type {TutorialSearchRowProps} from './TutorialSearchRow';\nexport {ClustersList} from './ClustersList';\nexport type {ClustersListProps} from './ClustersList';\nexport {NavigationItemsList} from './NavigationItemsList';\nexport type {NavigationItemsListProps} from './NavigationItemsList';\nexport {NavigationDetail} from './NavigationDetail';\nexport type {NavigationDetailProps} from './NavigationDetail';\nexport {NavigationSchema, buildSchemaColumns, filterSchema} from './NavigationSchema';\nexport type {NavigationSchemaProps, NavigationSchemaViewConfig} from './NavigationSchema';\nexport {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 './QueryStatistics';\nexport {NavigationPreview, buildPreviewColumns, filterPreviewRows} from './NavigationPreview';\nexport type {NavigationPreviewProps, NavigationPreviewViewConfig} from './NavigationPreview';\nexport {NavigationMeta, buildMetaGroups} from './NavigationMeta';\nexport type {NavigationMetaProps, NavigationMetaViewConfig} from './NavigationMeta';\nexport {NavigationView, buildViewColumns} from './NavigationView';\nexport type {NavigationViewProps, NavigationViewViewConfig} from './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J,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,YAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,YAAA,CAAAT,GAAA;IAAA;EAAA;AAAA;AACA,IAAAU,YAAA,GAAAxB,OAAA;AAEA,IAAAyB,kBAAA,GAAAzB,OAAA;AAEA,IAAA0B,aAAA,GAAA1B,OAAA;AAEA,IAAA2B,oBAAA,GAAA3B,OAAA;AAEA,IAAA4B,iBAAA,GAAA5B,OAAA;AAEA,IAAA6B,iBAAA,GAAA7B,OAAA;AAEA,IAAA8B,gBAAA,GAAA9B,OAAA;AAaA,IAAA+B,kBAAA,GAAA/B,OAAA;AAEA,IAAAgC,eAAA,GAAAhC,OAAA;AAEA,IAAAiC,eAAA,GAAAjC,OAAA","ignoreList":[]}
|
|
@@ -13,3 +13,13 @@ declare module '*.svg' {
|
|
|
13
13
|
const ReactComponent: FC<React.SVGProps<SVGSVGElement>>;
|
|
14
14
|
export default ReactComponent;
|
|
15
15
|
}
|
|
16
|
+
|
|
17
|
+
declare module '@gravity-ui/unipika' {
|
|
18
|
+
type UnipikaSettings = Record<string, unknown>;
|
|
19
|
+
|
|
20
|
+
type Unipika = {
|
|
21
|
+
formatFromYQL(data: [unknown, unknown], settings?: UnipikaSettings): string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export default function createUnipika(settings?: UnipikaSettings): Unipika;
|
|
25
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export type ErrorTreeSeverity = 'error' | 'warning' | 'info';
|
|
3
|
+
export type ErrorTreePosition = {
|
|
4
|
+
row: number;
|
|
5
|
+
column: number;
|
|
6
|
+
};
|
|
7
|
+
export type ErrorTreeItem = {
|
|
8
|
+
id: string;
|
|
9
|
+
severity: ErrorTreeSeverity;
|
|
10
|
+
message: string;
|
|
11
|
+
code?: string | number;
|
|
12
|
+
position?: ErrorTreePosition;
|
|
13
|
+
attributes?: Record<string, unknown>;
|
|
14
|
+
children?: ErrorTreeItem[];
|
|
15
|
+
};
|
|
16
|
+
export type ErrorTreeProps = {
|
|
17
|
+
root: ErrorTreeItem;
|
|
18
|
+
className?: string;
|
|
19
|
+
defaultExpanded?: boolean;
|
|
20
|
+
defaultInfoExpanded?: boolean;
|
|
21
|
+
renderAttributes?: (attributes: Record<string, unknown>, item: ErrorTreeItem) => React.ReactNode;
|
|
22
|
+
onPositionClick?: (item: ErrorTreeItem, position: ErrorTreePosition) => void;
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["errorTree.ts"],"sourcesContent":["import type React from 'react';\n\nexport type ErrorTreeSeverity = 'error' | 'warning' | 'info';\n\nexport type ErrorTreePosition = {\n row: number;\n column: number;\n};\n\nexport type ErrorTreeItem = {\n id: string;\n severity: ErrorTreeSeverity;\n message: string;\n code?: string | number;\n position?: ErrorTreePosition;\n attributes?: Record<string, unknown>;\n children?: ErrorTreeItem[];\n};\n\nexport type ErrorTreeProps = {\n root: ErrorTreeItem;\n className?: string;\n defaultExpanded?: boolean;\n defaultInfoExpanded?: boolean;\n renderAttributes?: (\n attributes: Record<string, unknown>,\n item: ErrorTreeItem,\n ) => React.ReactNode;\n onPositionClick?: (item: ErrorTreeItem, position: ErrorTreePosition) => void;\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import type { QueryResultColumn, QueryResultFormatterSettings } from './queryResults';
|
|
2
3
|
import type { LoadPathSuggestions } from './pathEditor';
|
|
3
4
|
export type NavigationLocation = {
|
|
4
5
|
cluster: string | undefined;
|
|
@@ -77,10 +78,16 @@ export type NavigationSchemaConfig<TColumn extends NavigationSchemaColumn = Navi
|
|
|
77
78
|
};
|
|
78
79
|
export type NavigationCellValue = ReactNode;
|
|
79
80
|
export type NavigationPreviewRow = Record<string, NavigationCellValue>;
|
|
81
|
+
export type NavigationPreviewColumn<TRow extends NavigationPreviewRow = NavigationPreviewRow> = string | QueryResultColumn<TRow>;
|
|
80
82
|
export type NavigationPreviewConfig<TRow extends NavigationPreviewRow = NavigationPreviewRow> = NavigationAsyncConfig & {
|
|
81
|
-
columns:
|
|
83
|
+
columns: Array<NavigationPreviewColumn<TRow>>;
|
|
82
84
|
rows: TRow[];
|
|
83
85
|
};
|
|
86
|
+
export type NavigationPreviewFormatterConfig = {
|
|
87
|
+
/** Applied when every displayed preview column declares a YQL type. */
|
|
88
|
+
formatterSettings?: QueryResultFormatterSettings;
|
|
89
|
+
maxVisibleLines?: number;
|
|
90
|
+
};
|
|
84
91
|
export type NavigationViewRow = NavigationPreviewRow;
|
|
85
92
|
export type NavigationViewSectionAction<TRow extends NavigationViewRow = NavigationViewRow> = NavigationAction<NavigationViewSection<TRow>>;
|
|
86
93
|
export type NavigationViewSection<TRow extends NavigationViewRow = NavigationViewRow> = NavigationAsyncConfig & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["navigation.ts"],"sourcesContent":["import {ReactNode} from 'react';\nimport type {LoadPathSuggestions} from './pathEditor';\n\nexport type NavigationLocation = {\n cluster: string | undefined;\n path: string | undefined;\n};\n\nexport type NavigationAction<TArg> = {\n id: string;\n title: string;\n content: ReactNode;\n hidden?: boolean;\n disabled?: boolean;\n qa?: string;\n onClick: (arg: TArg) => void;\n};\n\nexport type NavigationHeaderAction = NavigationAction<NavigationLocation>;\n\nexport type NavigationCluster = {\n id: string;\n title: string;\n icon?: ReactNode;\n color?: string;\n backgroundColor?: string;\n description?: string;\n};\n\nexport type NavigationItemKind = 'folder' | 'file' | 'table' | 'link' | 'unknown';\n\nexport type NavigationItem = {\n path: string;\n title: string;\n icon?: ReactNode;\n kind?: NavigationItemKind;\n targetPathBroken?: boolean;\n hasChildren?: boolean;\n disabled?: boolean;\n};\n\nexport type NavigationSortOrder = 'asc' | 'desc';\n\nexport type NavigationItemRowRenderData<T extends NavigationItem = NavigationItem> = {\n item: T;\n index: number;\n isActive: boolean;\n isParentRow: boolean;\n};\n\nexport type NavigationClusterRowRenderData<T extends NavigationCluster = NavigationCluster> = {\n cluster: T;\n index: number;\n isActive: boolean;\n};\n\nexport type RenderNavigationItem<T extends NavigationItem = NavigationItem> = (\n data: NavigationItemRowRenderData<T>,\n) => ReactNode;\n\nexport type RenderNavigationCluster<T extends NavigationCluster = NavigationCluster> = (\n data: NavigationClusterRowRenderData<T>,\n) => ReactNode;\n\nexport type NavigationDetailTabRenderContext = {\n search: string;\n onSearchUpdate?: (value: string) => void;\n searchPlaceholder?: string;\n};\n\nexport type NavigationDetailTab = {\n id: string;\n title: string;\n content?: ReactNode;\n renderContent?: (ctx: NavigationDetailTabRenderContext) => ReactNode;\n hidden?: boolean;\n disabled?: boolean;\n};\n\nexport type NavigationAsyncConfig = {\n loading?: boolean;\n loaded?: boolean;\n errorContent?: ReactNode;\n};\n\nexport type NavigationSchemaSortOrder = 'ascending' | 'descending';\n\nexport type NavigationSchemaColumn = {\n name: string;\n type?: string;\n sortOrder?: NavigationSchemaSortOrder;\n required?: boolean;\n [key: string]: unknown;\n};\n\nexport type NavigationSchemaConfig<\n TColumn extends NavigationSchemaColumn = NavigationSchemaColumn,\n> = NavigationAsyncConfig & {\n columns: TColumn[];\n};\n\nexport type NavigationCellValue = ReactNode;\n\nexport type NavigationPreviewRow = Record<string, NavigationCellValue>;\n\nexport type NavigationPreviewConfig<TRow extends NavigationPreviewRow = NavigationPreviewRow> =\n NavigationAsyncConfig & {\n columns:
|
|
1
|
+
{"version":3,"names":[],"sources":["navigation.ts"],"sourcesContent":["import {ReactNode} from 'react';\nimport type {QueryResultColumn, QueryResultFormatterSettings} from './queryResults';\nimport type {LoadPathSuggestions} from './pathEditor';\n\nexport type NavigationLocation = {\n cluster: string | undefined;\n path: string | undefined;\n};\n\nexport type NavigationAction<TArg> = {\n id: string;\n title: string;\n content: ReactNode;\n hidden?: boolean;\n disabled?: boolean;\n qa?: string;\n onClick: (arg: TArg) => void;\n};\n\nexport type NavigationHeaderAction = NavigationAction<NavigationLocation>;\n\nexport type NavigationCluster = {\n id: string;\n title: string;\n icon?: ReactNode;\n color?: string;\n backgroundColor?: string;\n description?: string;\n};\n\nexport type NavigationItemKind = 'folder' | 'file' | 'table' | 'link' | 'unknown';\n\nexport type NavigationItem = {\n path: string;\n title: string;\n icon?: ReactNode;\n kind?: NavigationItemKind;\n targetPathBroken?: boolean;\n hasChildren?: boolean;\n disabled?: boolean;\n};\n\nexport type NavigationSortOrder = 'asc' | 'desc';\n\nexport type NavigationItemRowRenderData<T extends NavigationItem = NavigationItem> = {\n item: T;\n index: number;\n isActive: boolean;\n isParentRow: boolean;\n};\n\nexport type NavigationClusterRowRenderData<T extends NavigationCluster = NavigationCluster> = {\n cluster: T;\n index: number;\n isActive: boolean;\n};\n\nexport type RenderNavigationItem<T extends NavigationItem = NavigationItem> = (\n data: NavigationItemRowRenderData<T>,\n) => ReactNode;\n\nexport type RenderNavigationCluster<T extends NavigationCluster = NavigationCluster> = (\n data: NavigationClusterRowRenderData<T>,\n) => ReactNode;\n\nexport type NavigationDetailTabRenderContext = {\n search: string;\n onSearchUpdate?: (value: string) => void;\n searchPlaceholder?: string;\n};\n\nexport type NavigationDetailTab = {\n id: string;\n title: string;\n content?: ReactNode;\n renderContent?: (ctx: NavigationDetailTabRenderContext) => ReactNode;\n hidden?: boolean;\n disabled?: boolean;\n};\n\nexport type NavigationAsyncConfig = {\n loading?: boolean;\n loaded?: boolean;\n errorContent?: ReactNode;\n};\n\nexport type NavigationSchemaSortOrder = 'ascending' | 'descending';\n\nexport type NavigationSchemaColumn = {\n name: string;\n type?: string;\n sortOrder?: NavigationSchemaSortOrder;\n required?: boolean;\n [key: string]: unknown;\n};\n\nexport type NavigationSchemaConfig<\n TColumn extends NavigationSchemaColumn = NavigationSchemaColumn,\n> = NavigationAsyncConfig & {\n columns: TColumn[];\n};\n\nexport type NavigationCellValue = ReactNode;\n\nexport type NavigationPreviewRow = Record<string, NavigationCellValue>;\n\nexport type NavigationPreviewColumn<TRow extends NavigationPreviewRow = NavigationPreviewRow> =\n string | QueryResultColumn<TRow>;\n\nexport type NavigationPreviewConfig<TRow extends NavigationPreviewRow = NavigationPreviewRow> =\n NavigationAsyncConfig & {\n columns: Array<NavigationPreviewColumn<TRow>>;\n rows: TRow[];\n };\n\nexport type NavigationPreviewFormatterConfig = {\n /** Applied when every displayed preview column declares a YQL type. */\n formatterSettings?: QueryResultFormatterSettings;\n maxVisibleLines?: number;\n};\n\nexport type NavigationViewRow = NavigationPreviewRow;\n\nexport type NavigationViewSectionAction<TRow extends NavigationViewRow = NavigationViewRow> =\n NavigationAction<NavigationViewSection<TRow>>;\n\nexport type NavigationViewSection<TRow extends NavigationViewRow = NavigationViewRow> =\n NavigationAsyncConfig & {\n id: string;\n title: ReactNode;\n columns: string[];\n rows: TRow[];\n expanded?: boolean;\n defaultExpanded?: boolean;\n onExpandedChange?: (expanded: boolean) => void;\n actions?: Array<NavigationViewSectionAction<TRow>>;\n };\n\nexport type NavigationViewConfig<TRow extends NavigationViewRow = NavigationViewRow> =\n NavigationAsyncConfig & {\n sections: Array<NavigationViewSection<TRow>>;\n };\n\nexport type NavigationMetaItem = {\n name: string;\n value: NavigationCellValue;\n [key: string]: unknown;\n};\n\nexport type NavigationMetaGroup<TItem extends NavigationMetaItem = NavigationMetaItem> = {\n title?: string;\n items: TItem[];\n};\n\nexport type NavigationMetaConfig<TItem extends NavigationMetaItem = NavigationMetaItem> =\n NavigationAsyncConfig & {\n groups: Array<NavigationMetaGroup<TItem>>;\n };\n\nexport type NavigationDetailConfig = {\n tabs: NavigationDetailTab[];\n defaultTab?: string;\n hasSearch?: boolean;\n searchPlaceholder?: string;\n actions?: NavigationHeaderAction[];\n emptyContent?: ReactNode;\n};\n\nexport type ResolveNavigationDetail<T extends NavigationItem = NavigationItem> = (\n item: T,\n) => NavigationDetailConfig | undefined;\n\nexport type NavigationDetailConfigFactory<T extends NavigationItem = NavigationItem> = (\n item: T,\n) => NavigationDetailConfig;\n\nexport type NavigationSearchConfig = {\n value?: string;\n onUpdate?: (value: string) => void;\n};\n\nexport type NavigationSortConfig = {\n value?: NavigationSortOrder;\n onUpdate?: (sort: NavigationSortOrder) => void;\n};\n\nexport type NavigationListStateConfig = {\n loading?: boolean;\n error?: boolean | ReactNode;\n hasMore?: boolean;\n onLoadMore?: () => void;\n};\n\nexport type NavigationHeaderConfig = {\n actions?: NavigationHeaderAction[];\n onLoadSuggestions?: LoadPathSuggestions;\n};\n\nexport type NavigationDetailPanelConfig<TItem extends NavigationItem = NavigationItem> = {\n openedItem?: TItem;\n onItemOpen?: (item: TItem) => void;\n onClose?: () => void;\n resolve?: ResolveNavigationDetail<TItem>;\n search?: string;\n onSearchUpdate?: (value: string) => void;\n activeTab?: string;\n onTabUpdate?: (tab: string) => void;\n actions?: NavigationHeaderAction[];\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { AlignType } from '@gravity-ui/react-data-table';
|
|
3
|
+
export type QueryResultDataTypeParameter = string | number | boolean | null | QueryResultDataType | readonly QueryResultDataType[] | readonly [string, QueryResultDataType][];
|
|
4
|
+
/** A YQL type tuple accepted by @gravity-ui/unipika. */
|
|
5
|
+
export type QueryResultDataType = readonly [string, ...QueryResultDataTypeParameter[]];
|
|
6
|
+
export type QueryResultFormatterSettings = {
|
|
7
|
+
escapeWhitespace?: boolean;
|
|
8
|
+
decodeUTF8?: boolean;
|
|
9
|
+
showDecoded?: boolean;
|
|
10
|
+
binaryAsHex?: boolean;
|
|
11
|
+
escapeYQLStrings?: boolean;
|
|
12
|
+
omitStructNull?: boolean;
|
|
13
|
+
maxListSize?: number;
|
|
14
|
+
maxStringSize?: number;
|
|
15
|
+
compact?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type QueryResultColumn<TRow extends Record<string, unknown>> = {
|
|
18
|
+
name: Extract<keyof TRow, string> | string;
|
|
19
|
+
type: QueryResultDataType;
|
|
20
|
+
header?: ReactNode;
|
|
21
|
+
width?: number | string;
|
|
22
|
+
align?: AlignType;
|
|
23
|
+
render?: (context: QueryResultCellRenderContext<TRow>) => ReactNode;
|
|
24
|
+
};
|
|
25
|
+
export type QueryResultCellRenderContext<TRow extends Record<string, unknown>> = {
|
|
26
|
+
row: TRow;
|
|
27
|
+
value: unknown;
|
|
28
|
+
index: number;
|
|
29
|
+
column: QueryResultColumn<TRow>;
|
|
30
|
+
};
|
|
31
|
+
export type QueryResultsView = 'result' | 'schema';
|
|
32
|
+
export type QueryResultsSchemaRenderContext<TRow extends Record<string, unknown>> = {
|
|
33
|
+
columns: Array<QueryResultColumn<TRow>>;
|
|
34
|
+
};
|