@gravity-ui/querieskit 1.2.0 → 1.3.1
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/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/HistoryLayout/HistoryLayout.d.ts +1 -1
- package/build/cjs/modules/HistoryLayout/HistoryLayout.js +1 -1
- package/build/cjs/modules/HistoryLayout/HistoryLayout.js.map +1 -1
- package/build/cjs/modules/NavigationPreview/NavigationPreview.css +7 -1
- package/build/cjs/modules/NavigationPreview/NavigationPreview.css.map +1 -1
- package/build/cjs/modules/NavigationPreview/NavigationPreview.d.ts +2 -2
- package/build/cjs/modules/NavigationPreview/NavigationPreview.js +37 -7
- package/build/cjs/modules/NavigationPreview/NavigationPreview.js.map +1 -1
- package/build/cjs/modules/NavigationPreview/story/NavigationPreview.stories.d.ts +1 -0
- package/build/cjs/modules/NavigationPreview/story/NavigationPreview.stories.js +25 -1
- package/build/cjs/modules/NavigationPreview/story/NavigationPreview.stories.js.map +1 -1
- package/build/cjs/modules/NavigationPreview/story/mockData.d.ts +2 -2
- package/build/cjs/modules/NavigationPreview/story/mockData.js +16 -4
- package/build/cjs/modules/NavigationPreview/story/mockData.js.map +1 -1
- package/build/cjs/modules/QueryStatistics/QueryStatistics.css +4 -0
- package/build/cjs/modules/QueryStatistics/QueryStatistics.css.map +1 -0
- package/build/cjs/modules/QueryStatistics/QueryStatistics.d.ts +4 -0
- package/build/cjs/modules/QueryStatistics/QueryStatistics.js +151 -0
- package/build/cjs/modules/QueryStatistics/QueryStatistics.js.map +1 -0
- package/build/cjs/modules/QueryStatistics/helpers.d.ts +15 -0
- package/build/cjs/modules/QueryStatistics/helpers.js +118 -0
- package/build/cjs/modules/QueryStatistics/helpers.js.map +1 -0
- package/build/cjs/modules/QueryStatistics/i18n/dicts.d.ts +35 -0
- package/build/cjs/modules/QueryStatistics/i18n/dicts.js +14 -0
- package/build/cjs/modules/QueryStatistics/i18n/dicts.js.map +1 -0
- package/build/cjs/modules/QueryStatistics/i18n/en.json +16 -0
- package/build/cjs/modules/QueryStatistics/i18n/index.d.ts +6 -0
- package/build/cjs/modules/QueryStatistics/i18n/index.js +11 -0
- package/build/cjs/modules/QueryStatistics/i18n/index.js.map +1 -0
- package/build/cjs/modules/QueryStatistics/i18n/ru.json +16 -0
- package/build/cjs/modules/QueryStatistics/index.d.ts +2 -0
- package/build/cjs/modules/QueryStatistics/index.js +13 -0
- package/build/cjs/modules/QueryStatistics/index.js.map +1 -0
- package/build/cjs/modules/QueryStatistics/internal/MetricCell.css +36 -0
- package/build/cjs/modules/QueryStatistics/internal/MetricCell.css.map +1 -0
- package/build/cjs/modules/QueryStatistics/internal/MetricCell.d.ts +9 -0
- package/build/cjs/modules/QueryStatistics/internal/MetricCell.js +121 -0
- package/build/cjs/modules/QueryStatistics/internal/MetricCell.js.map +1 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.css +21 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.css.map +1 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.d.ts +20 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.js +140 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsTable.js.map +1 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.css +5 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.css.map +1 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.d.ts +10 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.js +55 -0
- package/build/cjs/modules/QueryStatistics/internal/QueryStatisticsToolbar.js.map +1 -0
- package/build/cjs/modules/QueryStatistics/story/QueryStatistics.stories.d.ts +8 -0
- package/build/cjs/modules/QueryStatistics/story/QueryStatistics.stories.js +112 -0
- package/build/cjs/modules/QueryStatistics/story/QueryStatistics.stories.js.map +1 -0
- package/build/cjs/modules/RowsList/RowsList.css +4 -0
- package/build/cjs/modules/RowsList/RowsList.css.map +1 -1
- 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/queryList.d.ts +1 -1
- package/build/cjs/types/queryList.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/QueriesHistory/QueriesHistory.js +1 -2
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.js.map +1 -1
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.stories.d.ts +1 -0
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.stories.js +82 -1
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.stories.js.map +1 -1
- package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.stories.js +40 -35
- package/build/cjs/widgets/QueriesNavigation/QueriesNavigation.stories.js.map +1 -1
- package/build/cjs/widgets/QueriesNavigation/i18n/index.d.ts +2 -2
- package/build/cjs/widgets/QueryResults/QueryResults.css +19 -0
- package/build/cjs/widgets/QueryResults/QueryResults.css.map +1 -0
- package/build/cjs/widgets/QueryResults/QueryResults.d.ts +23 -0
- package/build/cjs/widgets/QueryResults/QueryResults.js +119 -0
- package/build/cjs/widgets/QueryResults/QueryResults.js.map +1 -0
- package/build/cjs/widgets/QueryResults/QueryResults.stories.d.ts +19 -0
- package/build/cjs/widgets/QueryResults/QueryResults.stories.js +199 -0
- package/build/cjs/widgets/QueryResults/QueryResults.stories.js.map +1 -0
- package/build/cjs/widgets/QueryResults/i18n/dicts.d.ts +25 -0
- package/build/cjs/widgets/QueryResults/i18n/dicts.js +14 -0
- package/build/cjs/widgets/QueryResults/i18n/dicts.js.map +1 -0
- package/build/cjs/widgets/QueryResults/i18n/en.json +10 -0
- package/build/cjs/widgets/QueryResults/i18n/index.d.ts +6 -0
- package/build/cjs/widgets/QueryResults/i18n/index.js +11 -0
- package/build/cjs/widgets/QueryResults/i18n/index.js.map +1 -0
- package/build/cjs/widgets/QueryResults/i18n/ru.json +12 -0
- package/build/cjs/widgets/QueryResults/index.d.ts +2 -0
- package/build/cjs/widgets/QueryResults/index.js +13 -0
- package/build/cjs/widgets/QueryResults/index.js.map +1 -0
- package/build/cjs/widgets/QueryResults/internal/QueryResultsSchema.d.ts +7 -0
- package/build/cjs/widgets/QueryResults/internal/QueryResultsSchema.js +49 -0
- package/build/cjs/widgets/QueryResults/internal/QueryResultsSchema.js.map +1 -0
- package/build/cjs/widgets/SavedQueries/SavedQueries.stories.js.map +1 -1
- package/build/cjs/widgets/index.d.ts +2 -0
- package/build/cjs/widgets/index.js +7 -0
- package/build/cjs/widgets/index.js.map +1 -1
- package/build/esm/components/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/HistoryLayout/HistoryLayout.d.ts +1 -1
- package/build/esm/modules/HistoryLayout/HistoryLayout.js +1 -1
- package/build/esm/modules/HistoryLayout/HistoryLayout.js.map +1 -1
- package/build/esm/modules/NavigationPreview/NavigationPreview.css +7 -1
- package/build/esm/modules/NavigationPreview/NavigationPreview.css.map +1 -1
- package/build/esm/modules/NavigationPreview/NavigationPreview.d.ts +2 -2
- package/build/esm/modules/NavigationPreview/NavigationPreview.js +38 -8
- package/build/esm/modules/NavigationPreview/NavigationPreview.js.map +1 -1
- package/build/esm/modules/NavigationPreview/NavigationPreview.scss +25 -17
- package/build/esm/modules/NavigationPreview/story/NavigationPreview.stories.d.ts +1 -0
- package/build/esm/modules/NavigationPreview/story/NavigationPreview.stories.js +24 -0
- package/build/esm/modules/NavigationPreview/story/NavigationPreview.stories.js.map +1 -1
- package/build/esm/modules/NavigationPreview/story/mockData.d.ts +2 -2
- package/build/esm/modules/NavigationPreview/story/mockData.js +16 -4
- package/build/esm/modules/NavigationPreview/story/mockData.js.map +1 -1
- package/build/esm/modules/QueryStatistics/QueryStatistics.css +4 -0
- package/build/esm/modules/QueryStatistics/QueryStatistics.css.map +1 -0
- package/build/esm/modules/QueryStatistics/QueryStatistics.d.ts +4 -0
- package/build/esm/modules/QueryStatistics/QueryStatistics.js +143 -0
- package/build/esm/modules/QueryStatistics/QueryStatistics.js.map +1 -0
- package/build/esm/modules/QueryStatistics/QueryStatistics.scss +3 -0
- package/build/esm/modules/QueryStatistics/helpers.d.ts +15 -0
- package/build/esm/modules/QueryStatistics/helpers.js +106 -0
- package/build/esm/modules/QueryStatistics/helpers.js.map +1 -0
- package/build/esm/modules/QueryStatistics/i18n/dicts.d.ts +35 -0
- package/build/esm/modules/QueryStatistics/i18n/dicts.js +7 -0
- package/build/esm/modules/QueryStatistics/i18n/dicts.js.map +1 -0
- package/build/esm/modules/QueryStatistics/i18n/en.json +16 -0
- package/build/esm/modules/QueryStatistics/i18n/index.d.ts +6 -0
- package/build/esm/modules/QueryStatistics/i18n/index.js +4 -0
- package/build/esm/modules/QueryStatistics/i18n/index.js.map +1 -0
- package/build/esm/modules/QueryStatistics/i18n/ru.json +16 -0
- package/build/esm/modules/QueryStatistics/index.d.ts +2 -0
- package/build/esm/modules/QueryStatistics/index.js +2 -0
- package/build/esm/modules/QueryStatistics/index.js.map +1 -0
- package/build/esm/modules/QueryStatistics/internal/MetricCell.css +36 -0
- package/build/esm/modules/QueryStatistics/internal/MetricCell.css.map +1 -0
- package/build/esm/modules/QueryStatistics/internal/MetricCell.d.ts +9 -0
- package/build/esm/modules/QueryStatistics/internal/MetricCell.js +114 -0
- package/build/esm/modules/QueryStatistics/internal/MetricCell.js.map +1 -0
- package/build/esm/modules/QueryStatistics/internal/MetricCell.scss +12 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.css +21 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.css.map +1 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.d.ts +20 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.js +132 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.js.map +1 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsTable.scss +8 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.css +5 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.css.map +1 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.d.ts +10 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.js +48 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.js.map +1 -0
- package/build/esm/modules/QueryStatistics/internal/QueryStatisticsToolbar.scss +1 -0
- package/build/esm/modules/QueryStatistics/story/QueryStatistics.stories.d.ts +8 -0
- package/build/esm/modules/QueryStatistics/story/QueryStatistics.stories.js +105 -0
- package/build/esm/modules/QueryStatistics/story/QueryStatistics.stories.js.map +1 -0
- package/build/esm/modules/RowsList/RowsList.css +4 -0
- package/build/esm/modules/RowsList/RowsList.css.map +1 -1
- package/build/esm/modules/RowsList/RowsList.scss +3 -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/queryList.d.ts +1 -1
- package/build/esm/types/queryList.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/QueriesHistory/QueriesHistory.js +1 -2
- package/build/esm/widgets/QueriesHistory/QueriesHistory.js.map +1 -1
- package/build/esm/widgets/QueriesHistory/QueriesHistory.stories.d.ts +1 -0
- package/build/esm/widgets/QueriesHistory/QueriesHistory.stories.js +81 -0
- package/build/esm/widgets/QueriesHistory/QueriesHistory.stories.js.map +1 -1
- package/build/esm/widgets/QueriesNavigation/QueriesNavigation.stories.js +40 -35
- package/build/esm/widgets/QueriesNavigation/QueriesNavigation.stories.js.map +1 -1
- package/build/esm/widgets/QueriesNavigation/i18n/index.d.ts +2 -2
- package/build/esm/widgets/QueryResults/QueryResults.css +19 -0
- package/build/esm/widgets/QueryResults/QueryResults.css.map +1 -0
- package/build/esm/widgets/QueryResults/QueryResults.d.ts +23 -0
- package/build/esm/widgets/QueryResults/QueryResults.js +111 -0
- package/build/esm/widgets/QueryResults/QueryResults.js.map +1 -0
- package/build/esm/widgets/QueryResults/QueryResults.scss +25 -0
- package/build/esm/widgets/QueryResults/QueryResults.stories.d.ts +19 -0
- package/build/esm/widgets/QueryResults/QueryResults.stories.js +191 -0
- package/build/esm/widgets/QueryResults/QueryResults.stories.js.map +1 -0
- package/build/esm/widgets/QueryResults/i18n/dicts.d.ts +25 -0
- package/build/esm/widgets/QueryResults/i18n/dicts.js +7 -0
- package/build/esm/widgets/QueryResults/i18n/dicts.js.map +1 -0
- package/build/esm/widgets/QueryResults/i18n/en.json +10 -0
- package/build/esm/widgets/QueryResults/i18n/index.d.ts +6 -0
- package/build/esm/widgets/QueryResults/i18n/index.js +4 -0
- package/build/esm/widgets/QueryResults/i18n/index.js.map +1 -0
- package/build/esm/widgets/QueryResults/i18n/ru.json +12 -0
- package/build/esm/widgets/QueryResults/index.d.ts +2 -0
- package/build/esm/widgets/QueryResults/index.js +2 -0
- package/build/esm/widgets/QueryResults/index.js.map +1 -0
- package/build/esm/widgets/QueryResults/internal/QueryResultsSchema.d.ts +7 -0
- package/build/esm/widgets/QueryResults/internal/QueryResultsSchema.js +41 -0
- package/build/esm/widgets/QueryResults/internal/QueryResultsSchema.js.map +1 -0
- package/build/esm/widgets/SavedQueries/SavedQueries.stories.js.map +1 -1
- package/build/esm/widgets/index.d.ts +2 -0
- package/build/esm/widgets/index.js +1 -0
- package/build/esm/widgets/index.js.map +1 -1
- package/package.json +29 -2
- package/.agents/skills/code-review-checklist/SKILL.md +0 -135
- package/.agents/skills/github-pr-review/SKILL.md +0 -24
- package/.agents/skills/gravity-ui/SKILL.md +0 -175
- package/.agents/skills/gravity-ui/references/icons.md +0 -60
- package/.agents/skills/gravity-ui/references/layout.md +0 -366
- package/.agents/skills/gravity-ui/references/package-routing.md +0 -424
- package/.agents/skills/gravity-ui/references/theming.md +0 -309
- package/.agents/skills/gravity-ui/rules/hallucination-traps.md +0 -361
- package/.agents/skills/gravity-ui/scripts/icon-image-search.sh +0 -63
- package/.eslintignore +0 -3
- package/.github/workflows/ci.yml +0 -25
- package/.github/workflows/main-preview.yml +0 -31
- package/.github/workflows/pr-preview-build.yml +0 -13
- package/.github/workflows/pr-preview-deploy.yml +0 -22
- package/.github/workflows/pr-title.yml +0 -27
- package/.github/workflows/release.yml +0 -20
- package/.nvmrc +0 -1
- package/.prettierrc.js +0 -1
- package/.storybook/main.ts +0 -31
- package/.storybook/preview.tsx +0 -43
- package/.storybook/redefinition.css +0 -3
- package/.storybook/tsconfig.json +0 -9
- package/.stylelintrc +0 -9
- package/AGENTS.md +0 -117
- package/CHANGELOG.md +0 -86
- package/CODEOWNERS +0 -1
- package/CONTRIBUTING.md +0 -31
- package/NOTICES.md +0 -8
- package/app-builder.config.ts +0 -9
- package/commitlint.config.cjs +0 -6
- package/eslint.config.mjs +0 -53
- package/plans/i18n-rules.md +0 -116
- package/plans/navigation-architecture.md +0 -262
- package/plans/queries-history-structure.md +0 -143
- package/plans/queries-navigation-architecture-review.md +0 -217
- package/skills-lock.json +0 -11
- package/src/components/AddChartButton/AddChartButton.scss +0 -12
- package/src/components/AddChartButton/AddChartButton.stories.tsx +0 -34
- package/src/components/AddChartButton/AddChartButton.tsx +0 -139
- package/src/components/AddChartButton/index.ts +0 -6
- package/src/components/Breadcrumbs/Breadcrumbs.scss +0 -25
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +0 -114
- package/src/components/Breadcrumbs/helpers/parsePathSegments.ts +0 -16
- package/src/components/Breadcrumbs/i18n/dicts.ts +0 -4
- package/src/components/Breadcrumbs/i18n/en.json +0 -4
- package/src/components/Breadcrumbs/i18n/index.ts +0 -5
- package/src/components/Breadcrumbs/i18n/ru.json +0 -4
- package/src/components/Breadcrumbs/index.ts +0 -2
- package/src/components/Chart/Chart.scss +0 -40
- package/src/components/Chart/Chart.stories.tsx +0 -75
- package/src/components/Chart/Chart.tsx +0 -120
- package/src/components/Chart/i18n/dicts.ts +0 -4
- package/src/components/Chart/i18n/en.json +0 -6
- package/src/components/Chart/i18n/index.ts +0 -5
- package/src/components/Chart/i18n/ru.json +0 -6
- package/src/components/Chart/index.ts +0 -2
- package/src/components/ChartEditorForm/ChartEditorForm.scss +0 -20
- package/src/components/ChartEditorForm/ChartEditorForm.stories.tsx +0 -88
- package/src/components/ChartEditorForm/ChartEditorForm.tsx +0 -120
- package/src/components/ChartEditorForm/helpers/resolveLabels.ts +0 -17
- package/src/components/ChartEditorForm/i18n/dicts.ts +0 -4
- package/src/components/ChartEditorForm/i18n/en.json +0 -12
- package/src/components/ChartEditorForm/i18n/index.ts +0 -5
- package/src/components/ChartEditorForm/i18n/ru.json +0 -12
- package/src/components/ChartEditorForm/index.ts +0 -7
- package/src/components/ChartEditorForm/internal/Field.tsx +0 -11
- package/src/components/ChartEditorForm/types.ts +0 -44
- package/src/components/ClusterRow/ClusterRow.tsx +0 -34
- package/src/components/ClusterRow/index.ts +0 -2
- package/src/components/Dashboard/Dashboard.scss +0 -4
- package/src/components/Dashboard/Dashboard.stories.scss +0 -18
- package/src/components/Dashboard/Dashboard.stories.tsx +0 -248
- package/src/components/Dashboard/Dashboard.tsx +0 -51
- package/src/components/Dashboard/helpers/createDefaultLayout.ts +0 -43
- package/src/components/Dashboard/hooks/useDashboardConfig.ts +0 -63
- package/src/components/Dashboard/index.ts +0 -2
- package/src/components/Dashboard/internal/DashPlate.scss +0 -23
- package/src/components/Dashboard/internal/DashPlate.tsx +0 -35
- package/src/components/Dashboard/internal/DashboardProvider.tsx +0 -37
- package/src/components/Dashboard/types.ts +0 -21
- package/src/components/DataTable/DataTable.scss +0 -35
- package/src/components/DataTable/DataTable.stories.tsx +0 -65
- package/src/components/DataTable/DataTable.tsx +0 -81
- package/src/components/DataTable/index.ts +0 -1
- package/src/components/EditableRowTitle/EditableRowTitle.tsx +0 -67
- package/src/components/EditableRowTitle/index.ts +0 -2
- package/src/components/EmptyContent/EmptyContent.scss +0 -3
- package/src/components/EmptyContent/EmptyContent.tsx +0 -57
- package/src/components/EmptyContent/i18n/dicts.ts +0 -4
- package/src/components/EmptyContent/i18n/en.json +0 -7
- package/src/components/EmptyContent/i18n/index.ts +0 -5
- package/src/components/EmptyContent/i18n/ru.json +0 -7
- package/src/components/EmptyContent/index.ts +0 -1
- package/src/components/FieldsSearchToolbar/FieldsSearchToolbar.tsx +0 -48
- package/src/components/FieldsSearchToolbar/index.ts +0 -2
- package/src/components/FieldsSelector/FieldsSelector.scss +0 -18
- package/src/components/FieldsSelector/FieldsSelector.stories.tsx +0 -48
- package/src/components/FieldsSelector/FieldsSelector.tsx +0 -92
- package/src/components/FieldsSelector/i18n/dicts.ts +0 -4
- package/src/components/FieldsSelector/i18n/en.json +0 -3
- package/src/components/FieldsSelector/i18n/index.ts +0 -5
- package/src/components/FieldsSelector/i18n/ru.json +0 -3
- package/src/components/FieldsSelector/index.ts +0 -2
- package/src/components/HistoryFilter/HistoryFilter.scss +0 -5
- package/src/components/HistoryFilter/HistoryFilter.stories.tsx +0 -69
- package/src/components/HistoryFilter/HistoryFilter.tsx +0 -64
- package/src/components/HistoryFilter/i18n/dicts.ts +0 -4
- package/src/components/HistoryFilter/i18n/en.json +0 -4
- package/src/components/HistoryFilter/i18n/index.ts +0 -5
- package/src/components/HistoryFilter/i18n/ru.json +0 -4
- package/src/components/HistoryFilter/index.ts +0 -1
- package/src/components/HistoryGroupHeader/HistoryGroupHeader.scss +0 -7
- package/src/components/HistoryGroupHeader/HistoryGroupHeader.tsx +0 -18
- package/src/components/HistoryGroupHeader/index.ts +0 -1
- package/src/components/HistoryPrivateIcon/HistoryPrivateIcon.scss +0 -7
- package/src/components/HistoryPrivateIcon/HistoryPrivateIcon.tsx +0 -22
- package/src/components/HistoryPrivateIcon/index.ts +0 -1
- package/src/components/LazyList/LazyList.scss +0 -13
- package/src/components/LazyList/LazyList.tsx +0 -97
- package/src/components/LazyList/index.ts +0 -2
- package/src/components/ListSpinner/ListSpinner.scss +0 -3
- package/src/components/ListSpinner/ListSpinner.tsx +0 -18
- package/src/components/ListSpinner/index.ts +0 -2
- package/src/components/MonacoEditor/MonacoEditor.tsx +0 -112
- package/src/components/MonacoEditor/MonacoEditorThemes.tsx +0 -73
- package/src/components/MonacoEditor/index.ts +0 -11
- package/src/components/MonacoEditor/monaco-yql-languages/_.contribution.ts +0 -193
- package/src/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.contribution.ts +0 -14
- package/src/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.keywords.ts +0 -146
- package/src/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.ts +0 -217
- package/src/components/MonacoEditor/monaco-yql-languages/constants.ts +0 -6
- package/src/components/MonacoEditor/monaco-yql-languages/fillers/monaco-editor-core.ts +0 -3
- package/src/components/MonacoEditor/monaco-yql-languages/index.ts +0 -1
- package/src/components/MonacoEditor/monaco-yql-languages/monaco.contribution.ts +0 -5
- package/src/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.contribution.ts +0 -14
- package/src/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.keywords.ts +0 -97
- package/src/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.ts +0 -170
- package/src/components/MonacoEditor/monaco-yql-languages/themes/themes.contribution.ts +0 -35
- package/src/components/MonacoEditor/monaco-yql-languages/yql/yql.contribution.ts +0 -14
- package/src/components/MonacoEditor/monaco-yql-languages/yql/yql.keywords.ts +0 -13
- package/src/components/MonacoEditor/monaco-yql-languages/yql/yql.ts +0 -178
- package/src/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.contribution.ts +0 -14
- package/src/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.keywords.ts +0 -45
- package/src/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.ts +0 -142
- package/src/components/NavigationActionButtons/NavigationActionButtons.tsx +0 -46
- package/src/components/NavigationActionButtons/index.ts +0 -2
- package/src/components/NavigationItemRow/NavigationItemRow.tsx +0 -28
- package/src/components/NavigationItemRow/index.ts +0 -2
- package/src/components/PathEditor/PathEditor.scss +0 -41
- package/src/components/PathEditor/PathEditor.stories.helpers.ts +0 -118
- package/src/components/PathEditor/PathEditor.stories.tsx +0 -57
- package/src/components/PathEditor/PathEditor.tsx +0 -380
- package/src/components/PathEditor/helpers/suggestions.ts +0 -40
- package/src/components/PathEditor/i18n/dicts.ts +0 -4
- package/src/components/PathEditor/i18n/en.json +0 -4
- package/src/components/PathEditor/i18n/index.ts +0 -5
- package/src/components/PathEditor/i18n/ru.json +0 -4
- package/src/components/PathEditor/index.ts +0 -2
- package/src/components/QueryDuration/QueryDuration.scss +0 -6
- package/src/components/QueryDuration/QueryDuration.stories.tsx +0 -40
- package/src/components/QueryDuration/QueryDuration.tsx +0 -21
- package/src/components/QueryDuration/index.ts +0 -1
- package/src/components/QueryDuration/useQueryDuration.ts +0 -34
- package/src/components/QueryStatusIcon/QueryStatusIcon.scss +0 -17
- package/src/components/QueryStatusIcon/QueryStatusIcon.stories.tsx +0 -50
- package/src/components/QueryStatusIcon/QueryStatusIcon.tsx +0 -37
- package/src/components/QueryStatusIcon/index.ts +0 -1
- package/src/components/RowActionsMenu/RowActionsMenu.tsx +0 -47
- package/src/components/RowActionsMenu/index.ts +0 -2
- package/src/components/RowLink/RowLink.scss +0 -8
- package/src/components/RowLink/RowLink.tsx +0 -23
- package/src/components/RowLink/index.ts +0 -2
- package/src/components/SearchRowLayout/SearchRowLayout.scss +0 -18
- package/src/components/SearchRowLayout/SearchRowLayout.tsx +0 -45
- package/src/components/SearchRowLayout/helpers/fitQueryToVisibleLines.ts +0 -10
- package/src/components/SearchRowLayout/helpers/monacoConfig.ts +0 -25
- package/src/components/SearchRowLayout/index.ts +0 -2
- package/src/components/SearchWithButtons/SearchWithButtons.scss +0 -10
- package/src/components/SearchWithButtons/SearchWithButtons.stories.tsx +0 -107
- package/src/components/SearchWithButtons/SearchWithButtons.tsx +0 -56
- package/src/components/SearchWithButtons/index.ts +0 -2
- package/src/components/SimpleForm/CheckboxGroupField.tsx +0 -53
- package/src/components/SimpleForm/RangeDatePickerField.tsx +0 -50
- package/src/components/SimpleForm/SelectField.tsx +0 -24
- package/src/components/SimpleForm/SimpleForm.stories.tsx +0 -115
- package/src/components/SimpleForm/SimpleForm.tsx +0 -65
- package/src/components/SimpleForm/SwitchField.tsx +0 -23
- package/src/components/SimpleForm/helpers/controlsRegistry.ts +0 -24
- package/src/components/SimpleForm/helpers/getInitialValues.ts +0 -10
- package/src/components/SimpleForm/helpers/index.ts +0 -2
- package/src/components/SimpleForm/index.ts +0 -7
- package/src/components/SkeletonRows/SkeletonRows.tsx +0 -24
- package/src/components/SkeletonRows/index.ts +0 -2
- package/src/components/index.ts +0 -66
- package/src/constants/query.ts +0 -10
- package/src/constants/row.ts +0 -2
- package/src/helpers/buildColumnsFromKeys.ts +0 -17
- package/src/helpers/getDefaultNavigationIcon.ts +0 -33
- package/src/helpers/getListKey.ts +0 -12
- package/src/helpers/getParentPath.ts +0 -10
- package/src/helpers/isEmptyValue.ts +0 -2
- package/src/helpers/isFieldVisible.ts +0 -20
- package/src/helpers/time.ts +0 -29
- package/src/helpers/useLoadMoreSentinel.ts +0 -31
- package/src/helpers/useToggle.ts +0 -11
- package/src/helpers/useVisibleColumns.ts +0 -26
- package/src/i18n/index.ts +0 -26
- package/src/index.ts +0 -9
- package/src/modules/ChartEditor/ChartEditor.scss +0 -12
- package/src/modules/ChartEditor/ChartEditor.tsx +0 -116
- package/src/modules/ChartEditor/i18n/dicts.ts +0 -4
- package/src/modules/ChartEditor/i18n/en.json +0 -3
- package/src/modules/ChartEditor/i18n/index.ts +0 -5
- package/src/modules/ChartEditor/i18n/ru.json +0 -3
- package/src/modules/ChartEditor/index.ts +0 -2
- package/src/modules/ChartEditor/story/ChartEditor.stories.tsx +0 -186
- package/src/modules/ChartEditor/story/mockData.ts +0 -222
- package/src/modules/ChartEditor/types.ts +0 -18
- package/src/modules/ClustersList/ClustersList.scss +0 -11
- package/src/modules/ClustersList/ClustersList.tsx +0 -49
- package/src/modules/ClustersList/index.ts +0 -2
- package/src/modules/HistoryComparisonActions/HistoryComparisonActions.scss +0 -4
- package/src/modules/HistoryComparisonActions/HistoryComparisonActions.tsx +0 -42
- package/src/modules/HistoryComparisonActions/index.ts +0 -2
- package/src/modules/HistoryHeader/HistoryHeader.stories.tsx +0 -47
- package/src/modules/HistoryHeader/HistoryHeader.tsx +0 -58
- package/src/modules/HistoryHeader/index.ts +0 -1
- package/src/modules/HistoryHeader/internal/FullSearchToggleButton.tsx +0 -16
- package/src/modules/HistoryLayout/HistoryLayout.scss +0 -7
- package/src/modules/HistoryLayout/HistoryLayout.tsx +0 -43
- package/src/modules/HistoryLayout/index.ts +0 -2
- package/src/modules/HistoryRow/HistoryRow.scss +0 -32
- package/src/modules/HistoryRow/HistoryRow.stories.tsx +0 -91
- package/src/modules/HistoryRow/HistoryRow.tsx +0 -77
- package/src/modules/HistoryRow/index.ts +0 -1
- package/src/modules/HistorySearchRow/HistorySearchRow.scss +0 -13
- package/src/modules/HistorySearchRow/HistorySearchRow.stories.tsx +0 -52
- package/src/modules/HistorySearchRow/HistorySearchRow.tsx +0 -62
- package/src/modules/HistorySearchRow/helpers/resolveMonacoLanguage.ts +0 -19
- package/src/modules/HistorySearchRow/index.ts +0 -1
- package/src/modules/NavigationDetail/NavigationDetail.scss +0 -13
- package/src/modules/NavigationDetail/NavigationDetail.tsx +0 -121
- package/src/modules/NavigationDetail/helpers/getInitialTab.ts +0 -9
- package/src/modules/NavigationDetail/helpers/getVisibleTabs.ts +0 -5
- package/src/modules/NavigationDetail/index.ts +0 -2
- package/src/modules/NavigationDetail/internal/NavigationDetailTabs.tsx +0 -32
- package/src/modules/NavigationHeader/NavigationHeader.stories.tsx +0 -118
- package/src/modules/NavigationHeader/NavigationHeader.tsx +0 -33
- package/src/modules/NavigationHeader/index.ts +0 -2
- package/src/modules/NavigationItemsList/NavigationItemsList.scss +0 -65
- package/src/modules/NavigationItemsList/NavigationItemsList.tsx +0 -92
- package/src/modules/NavigationItemsList/index.ts +0 -2
- package/src/modules/NavigationItemsList/internal/NavigationItemsListEmptyState.tsx +0 -45
- package/src/modules/NavigationItemsList/internal/NavigationItemsListHeader.scss +0 -6
- package/src/modules/NavigationItemsList/internal/NavigationItemsListHeader.tsx +0 -54
- package/src/modules/NavigationItemsList/internal/useParentRow.ts +0 -23
- package/src/modules/NavigationMeta/NavigationMeta.scss +0 -25
- package/src/modules/NavigationMeta/NavigationMeta.tsx +0 -81
- package/src/modules/NavigationMeta/helpers/buildMetaGroups.tsx +0 -27
- package/src/modules/NavigationMeta/i18n/dicts.ts +0 -4
- package/src/modules/NavigationMeta/i18n/en.json +0 -4
- package/src/modules/NavigationMeta/i18n/index.ts +0 -5
- package/src/modules/NavigationMeta/i18n/ru.json +0 -4
- package/src/modules/NavigationMeta/index.ts +0 -3
- package/src/modules/NavigationMeta/story/NavigationMeta.stories.tsx +0 -80
- package/src/modules/NavigationMeta/story/mockData.ts +0 -22
- package/src/modules/NavigationPreview/NavigationPreview.scss +0 -24
- package/src/modules/NavigationPreview/NavigationPreview.tsx +0 -110
- package/src/modules/NavigationPreview/helpers/buildPreviewColumns.tsx +0 -11
- package/src/modules/NavigationPreview/helpers/filterPreviewRows.ts +0 -29
- package/src/modules/NavigationPreview/i18n/dicts.ts +0 -4
- package/src/modules/NavigationPreview/i18n/en.json +0 -3
- package/src/modules/NavigationPreview/i18n/index.ts +0 -5
- package/src/modules/NavigationPreview/i18n/ru.json +0 -3
- package/src/modules/NavigationPreview/index.ts +0 -4
- package/src/modules/NavigationPreview/story/NavigationPreview.stories.tsx +0 -98
- package/src/modules/NavigationPreview/story/mockData.ts +0 -9
- package/src/modules/NavigationSchema/NavigationSchema.scss +0 -24
- package/src/modules/NavigationSchema/NavigationSchema.tsx +0 -118
- package/src/modules/NavigationSchema/helpers/buildSchemaColumns.tsx +0 -54
- package/src/modules/NavigationSchema/helpers/filterSchema.ts +0 -18
- package/src/modules/NavigationSchema/i18n/dicts.ts +0 -4
- package/src/modules/NavigationSchema/i18n/en.json +0 -9
- package/src/modules/NavigationSchema/i18n/index.ts +0 -5
- package/src/modules/NavigationSchema/i18n/ru.json +0 -9
- package/src/modules/NavigationSchema/index.ts +0 -4
- package/src/modules/NavigationSchema/story/NavigationSchema.stories.tsx +0 -112
- package/src/modules/NavigationSchema/story/mockData.ts +0 -9
- package/src/modules/NavigationView/NavigationView.scss +0 -44
- package/src/modules/NavigationView/NavigationView.tsx +0 -60
- package/src/modules/NavigationView/helpers/buildViewColumns.tsx +0 -11
- package/src/modules/NavigationView/i18n/dicts.ts +0 -4
- package/src/modules/NavigationView/i18n/en.json +0 -3
- package/src/modules/NavigationView/i18n/index.ts +0 -5
- package/src/modules/NavigationView/i18n/ru.json +0 -3
- package/src/modules/NavigationView/index.ts +0 -3
- package/src/modules/NavigationView/internal/NavigationViewSectionItem.tsx +0 -70
- package/src/modules/NavigationView/story/NavigationView.stories.tsx +0 -110
- package/src/modules/NavigationView/story/mockData.ts +0 -35
- package/src/modules/QueriesList/QueriesList.scss +0 -10
- package/src/modules/QueriesList/QueriesList.tsx +0 -98
- package/src/modules/QueriesList/index.ts +0 -2
- package/src/modules/RowsList/RowsList.scss +0 -5
- package/src/modules/RowsList/RowsList.tsx +0 -96
- package/src/modules/RowsList/helpers/prepareRowData.ts +0 -61
- package/src/modules/RowsList/index.ts +0 -2
- package/src/modules/SavedQueryRow/SavedQueryRow.scss +0 -20
- package/src/modules/SavedQueryRow/SavedQueryRow.tsx +0 -60
- package/src/modules/SavedQueryRow/index.ts +0 -2
- package/src/modules/SavedQuerySearchRow/SavedQuerySearchRow.scss +0 -15
- package/src/modules/SavedQuerySearchRow/SavedQuerySearchRow.tsx +0 -58
- package/src/modules/SavedQuerySearchRow/index.ts +0 -2
- package/src/modules/TutorialRow/TutorialRow.scss +0 -9
- package/src/modules/TutorialRow/TutorialRow.stories.tsx +0 -43
- package/src/modules/TutorialRow/TutorialRow.tsx +0 -25
- package/src/modules/TutorialRow/index.ts +0 -2
- package/src/modules/TutorialSearchRow/TutorialSearchRow.scss +0 -5
- package/src/modules/TutorialSearchRow/TutorialSearchRow.stories.tsx +0 -44
- package/src/modules/TutorialSearchRow/TutorialSearchRow.tsx +0 -33
- package/src/modules/TutorialSearchRow/index.ts +0 -2
- package/src/modules/index.ts +0 -36
- package/src/types/declarations.d.ts +0 -15
- package/src/types/forms.ts +0 -33
- package/src/types/history.ts +0 -12
- package/src/types/navigation.ts +0 -199
- package/src/types/pathEditor.ts +0 -29
- package/src/types/queryList.ts +0 -92
- package/src/types/savedQueries.ts +0 -7
- package/src/types/tutorial.ts +0 -3
- package/src/widgets/DashboardCharts/DashboardCharts.scss +0 -25
- package/src/widgets/DashboardCharts/DashboardCharts.tsx +0 -214
- package/src/widgets/DashboardCharts/helpers/chartTypeIcons.ts +0 -33
- package/src/widgets/DashboardCharts/i18n/dicts.ts +0 -4
- package/src/widgets/DashboardCharts/i18n/en.json +0 -7
- package/src/widgets/DashboardCharts/i18n/index.ts +0 -5
- package/src/widgets/DashboardCharts/i18n/ru.json +0 -7
- package/src/widgets/DashboardCharts/index.ts +0 -2
- package/src/widgets/DashboardCharts/internal/EmptyDashboardPlaceholder.tsx +0 -26
- package/src/widgets/DashboardCharts/story/DashboardCharts.stories.scss +0 -6
- package/src/widgets/DashboardCharts/story/DashboardCharts.stories.tsx +0 -77
- package/src/widgets/DashboardCharts/story/mockData.ts +0 -419
- package/src/widgets/DashboardCharts/types.ts +0 -30
- package/src/widgets/QueriesHistory/QueriesHistory.scss +0 -3
- package/src/widgets/QueriesHistory/QueriesHistory.stories.tsx +0 -276
- package/src/widgets/QueriesHistory/QueriesHistory.tsx +0 -71
- package/src/widgets/QueriesHistory/i18n/dicts.ts +0 -4
- package/src/widgets/QueriesHistory/i18n/en.json +0 -3
- package/src/widgets/QueriesHistory/i18n/index.ts +0 -5
- package/src/widgets/QueriesHistory/i18n/ru.json +0 -3
- package/src/widgets/QueriesHistory/index.ts +0 -2
- package/src/widgets/QueriesHistory/internal/HistoryRowContent.tsx +0 -22
- package/src/widgets/QueriesNavigation/QueriesNavigation.scss +0 -9
- package/src/widgets/QueriesNavigation/QueriesNavigation.stories.tsx +0 -400
- package/src/widgets/QueriesNavigation/QueriesNavigation.tsx +0 -195
- package/src/widgets/QueriesNavigation/helpers/createEmptyDetailConfig.tsx +0 -8
- package/src/widgets/QueriesNavigation/helpers/createNavigationDetailResolver.ts +0 -28
- package/src/widgets/QueriesNavigation/helpers/createTableDetailConfig.tsx +0 -127
- package/src/widgets/QueriesNavigation/i18n/dicts.ts +0 -4
- package/src/widgets/QueriesNavigation/i18n/en.json +0 -10
- package/src/widgets/QueriesNavigation/i18n/index.ts +0 -5
- package/src/widgets/QueriesNavigation/i18n/ru.json +0 -10
- package/src/widgets/QueriesNavigation/index.ts +0 -13
- package/src/widgets/SavedQueries/SavedQueries.scss +0 -3
- package/src/widgets/SavedQueries/SavedQueries.stories.tsx +0 -192
- package/src/widgets/SavedQueries/SavedQueries.tsx +0 -77
- package/src/widgets/SavedQueries/SavedQueryRowContent.tsx +0 -26
- package/src/widgets/SavedQueries/i18n/dicts.ts +0 -4
- package/src/widgets/SavedQueries/i18n/en.json +0 -3
- package/src/widgets/SavedQueries/i18n/index.ts +0 -4
- package/src/widgets/SavedQueries/i18n/ru.json +0 -3
- package/src/widgets/SavedQueries/index.ts +0 -2
- package/src/widgets/TutorialsHistory/TutorialRowContent.tsx +0 -16
- package/src/widgets/TutorialsHistory/TutorialsHistory.scss +0 -3
- package/src/widgets/TutorialsHistory/TutorialsHistory.stories.tsx +0 -135
- package/src/widgets/TutorialsHistory/TutorialsHistory.tsx +0 -63
- package/src/widgets/TutorialsHistory/i18n/dicts.ts +0 -4
- package/src/widgets/TutorialsHistory/i18n/en.json +0 -3
- package/src/widgets/TutorialsHistory/i18n/index.ts +0 -5
- package/src/widgets/TutorialsHistory/i18n/ru.json +0 -3
- package/src/widgets/TutorialsHistory/index.ts +0 -2
- package/src/widgets/index.ts +0 -18
- package/tsconfig.json +0 -20
- package/tsconfig.publish.json +0 -11
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.EditLinkItem = void 0;
|
|
7
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
require("core-js/modules/es.array.iterator.js");
|
|
11
|
+
require("core-js/modules/es.array.map.js");
|
|
12
|
+
require("core-js/modules/es.function.name.js");
|
|
13
|
+
require("core-js/modules/es.iterator.constructor.js");
|
|
14
|
+
require("core-js/modules/es.iterator.map.js");
|
|
15
|
+
require("core-js/modules/es.object.to-string.js");
|
|
16
|
+
require("core-js/modules/es.string.link.js");
|
|
17
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
18
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
19
|
+
var _uikit = require("@gravity-ui/uikit");
|
|
20
|
+
var _icons = require("@gravity-ui/icons");
|
|
21
|
+
var _useLabelRef2 = require("../../hooks/useLabelRef");
|
|
22
|
+
var _useKeyDownFormControl = require("../../hooks/useKeyDownFormControl");
|
|
23
|
+
var _objectLinkValidator = require("../../helpers/objectLinkValidator");
|
|
24
|
+
var _bemCnLite = _interopRequireDefault(require("bem-cn-lite"));
|
|
25
|
+
var _i18n = _interopRequireDefault(require("../../i18n"));
|
|
26
|
+
require("./EditLinkItem.css");
|
|
27
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
28
|
+
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); }
|
|
29
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
30
|
+
var block = (0, _bemCnLite.default)('edit-link-item');
|
|
31
|
+
var EditLinkItem = exports.EditLinkItem = function EditLinkItem(_ref) {
|
|
32
|
+
var cutomerLinkLabel = _ref.linkLabel,
|
|
33
|
+
customerTokenLabel = _ref.tokenLabel,
|
|
34
|
+
customeNameLabel = _ref.nameLabel,
|
|
35
|
+
onAccept = _ref.onAccept,
|
|
36
|
+
onCancel = _ref.onCancel,
|
|
37
|
+
onChange = _ref.onChange,
|
|
38
|
+
tokens = _ref.tokens,
|
|
39
|
+
customerValues = _ref.values,
|
|
40
|
+
_ref$validator = _ref.validator,
|
|
41
|
+
validator = _ref$validator === void 0 ? _objectLinkValidator.objectLinkValidator : _ref$validator,
|
|
42
|
+
defaultValues = _ref.defaultValues;
|
|
43
|
+
var _useState = (0, _react.useState)((0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
44
|
+
link: '',
|
|
45
|
+
token: '',
|
|
46
|
+
name: ''
|
|
47
|
+
}, customerValues), defaultValues !== null && defaultValues !== void 0 ? defaultValues : {})),
|
|
48
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
49
|
+
innerValues = _useState2[0],
|
|
50
|
+
setInnerValues = _useState2[1];
|
|
51
|
+
var _useState3 = (0, _react.useState)(null),
|
|
52
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
53
|
+
errors = _useState4[0],
|
|
54
|
+
setErrors = _useState4[1];
|
|
55
|
+
var linkInputId = (0, _react.useId)();
|
|
56
|
+
var linkLabel = cutomerLinkLabel !== null && cutomerLinkLabel !== void 0 ? cutomerLinkLabel : (0, _i18n.default)('field_link');
|
|
57
|
+
var tokenLabel = customerTokenLabel !== null && customerTokenLabel !== void 0 ? customerTokenLabel : (0, _i18n.default)('field_token');
|
|
58
|
+
var nameLabel = customeNameLabel !== null && customeNameLabel !== void 0 ? customeNameLabel : (0, _i18n.default)('field_name');
|
|
59
|
+
var values = customerValues !== null && customerValues !== void 0 ? customerValues : innerValues;
|
|
60
|
+
var _useLabelRef = (0, _useLabelRef2.useLabelRef)(linkLabel),
|
|
61
|
+
labelRef = _useLabelRef.labelRef,
|
|
62
|
+
labelWidth = _useLabelRef.labelWidth;
|
|
63
|
+
var wasSubmittedRef = (0, _react.useRef)(false);
|
|
64
|
+
var isTokenRequired = tokens && (tokens === null || tokens === void 0 ? void 0 : tokens.length) > 0;
|
|
65
|
+
var handleUpdate = function handleUpdate(key, patcValue) {
|
|
66
|
+
var newValues = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, values), {}, (0, _defineProperty2.default)({}, key, patcValue));
|
|
67
|
+
if (errors || wasSubmittedRef.current) {
|
|
68
|
+
setErrors(validator(newValues, isTokenRequired));
|
|
69
|
+
}
|
|
70
|
+
setInnerValues(newValues);
|
|
71
|
+
onChange === null || onChange === void 0 || onChange(newValues);
|
|
72
|
+
};
|
|
73
|
+
var handleAccept = function handleAccept() {
|
|
74
|
+
var validResult = validator(values, isTokenRequired);
|
|
75
|
+
wasSubmittedRef.current = true;
|
|
76
|
+
if (validResult) {
|
|
77
|
+
setErrors(validResult);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
onAccept === null || onAccept === void 0 || onAccept(values);
|
|
81
|
+
};
|
|
82
|
+
var handleCancel = function handleCancel() {
|
|
83
|
+
onCancel === null || onCancel === void 0 || onCancel();
|
|
84
|
+
};
|
|
85
|
+
var handleLinkScroll = function handleLinkScroll(event) {
|
|
86
|
+
if (labelRef.current) {
|
|
87
|
+
labelRef.current.style.transform = "translateY(-".concat(event.currentTarget.scrollTop, "px)");
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
var _useKeyDownFormContro = (0, _useKeyDownFormControl.useKeyDownFormControl)(handleAccept, handleCancel),
|
|
91
|
+
handleEditorKeyDown = _useKeyDownFormContro.handleEditorKeyDown,
|
|
92
|
+
handleInputKeyDown = _useKeyDownFormContro.handleInputKeyDown;
|
|
93
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
|
|
94
|
+
onKeyDown: handleEditorKeyDown,
|
|
95
|
+
className: block(),
|
|
96
|
+
width: "100%",
|
|
97
|
+
spacing: {
|
|
98
|
+
px: 4,
|
|
99
|
+
py: 3
|
|
100
|
+
},
|
|
101
|
+
direction: "column",
|
|
102
|
+
gap: 2,
|
|
103
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Box, {
|
|
104
|
+
overflow: "hidden",
|
|
105
|
+
className: block('link-field-container'),
|
|
106
|
+
position: "relative",
|
|
107
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Text, {
|
|
108
|
+
ref: labelRef,
|
|
109
|
+
as: "label",
|
|
110
|
+
htmlFor: linkInputId,
|
|
111
|
+
className: block('link-field-label'),
|
|
112
|
+
children: linkLabel
|
|
113
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.TextArea, {
|
|
114
|
+
id: linkInputId,
|
|
115
|
+
value: values.link,
|
|
116
|
+
minRows: 3,
|
|
117
|
+
maxRows: 5,
|
|
118
|
+
hasClear: true,
|
|
119
|
+
autoFocus: true,
|
|
120
|
+
error: errors === null || errors === void 0 ? void 0 : errors.link,
|
|
121
|
+
errorMessage: errors === null || errors === void 0 ? void 0 : errors.link,
|
|
122
|
+
onKeyDown: handleInputKeyDown,
|
|
123
|
+
onUpdate: function onUpdate(v) {
|
|
124
|
+
return handleUpdate('link', v);
|
|
125
|
+
},
|
|
126
|
+
controlProps: {
|
|
127
|
+
onScroll: handleLinkScroll,
|
|
128
|
+
style: {
|
|
129
|
+
textIndent: labelWidth ? labelWidth + 2 : undefined
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
})]
|
|
133
|
+
}), tokens && /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Select, {
|
|
134
|
+
filterable: true,
|
|
135
|
+
value: [values.token],
|
|
136
|
+
label: tokenLabel,
|
|
137
|
+
errorMessage: errors === null || errors === void 0 ? void 0 : errors.token,
|
|
138
|
+
validationState: errors !== null && errors !== void 0 && errors.token ? 'invalid' : undefined,
|
|
139
|
+
onUpdate: function onUpdate(v) {
|
|
140
|
+
return handleUpdate('token', v[0]);
|
|
141
|
+
},
|
|
142
|
+
children: tokens.map(function (token) {
|
|
143
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Select.Option, {
|
|
144
|
+
value: token.value,
|
|
145
|
+
content: token.title
|
|
146
|
+
}, token.value);
|
|
147
|
+
})
|
|
148
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.TextInput, {
|
|
149
|
+
value: values.name,
|
|
150
|
+
label: nameLabel,
|
|
151
|
+
hasClear: true,
|
|
152
|
+
error: errors === null || errors === void 0 ? void 0 : errors.name,
|
|
153
|
+
onKeyDown: handleInputKeyDown,
|
|
154
|
+
onUpdate: function onUpdate(v) {
|
|
155
|
+
return handleUpdate('name', v);
|
|
156
|
+
}
|
|
157
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
|
|
158
|
+
gap: 2,
|
|
159
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Button, {
|
|
160
|
+
view: "flat",
|
|
161
|
+
onClick: handleAccept,
|
|
162
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Icon, {
|
|
163
|
+
data: _icons.Check
|
|
164
|
+
}), (0, _i18n.default)('action_save')]
|
|
165
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Button, {
|
|
166
|
+
view: "flat",
|
|
167
|
+
onClick: onCancel,
|
|
168
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Icon, {
|
|
169
|
+
data: _icons.Xmark
|
|
170
|
+
}), (0, _i18n.default)('action_cancel')]
|
|
171
|
+
})]
|
|
172
|
+
})]
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
// #sourceMappingURL=EditLinkItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_uikit","_icons","_useLabelRef2","_useKeyDownFormControl","_objectLinkValidator","_bemCnLite","_interopRequireDefault","_i18n","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","block","cn","EditLinkItem","exports","_ref","cutomerLinkLabel","linkLabel","customerTokenLabel","tokenLabel","customeNameLabel","nameLabel","onAccept","onCancel","onChange","tokens","customerValues","values","_ref$validator","validator","objectLinkValidator","defaultValues","_useState","useState","_objectSpread","link","token","name","_useState2","_slicedToArray","innerValues","setInnerValues","_useState3","_useState4","errors","setErrors","linkInputId","useId","i18n","_useLabelRef","useLabelRef","labelRef","labelWidth","wasSubmittedRef","useRef","isTokenRequired","length","handleUpdate","key","patcValue","newValues","_defineProperty","current","handleAccept","validResult","handleCancel","handleLinkScroll","event","style","transform","concat","currentTarget","scrollTop","_useKeyDownFormContro","useKeyDownFormControl","handleEditorKeyDown","handleInputKeyDown","_jsxs","Flex","onKeyDown","className","width","spacing","px","py","direction","gap","children","Box","overflow","position","_jsx","Text","ref","as","htmlFor","TextArea","id","value","minRows","maxRows","hasClear","autoFocus","error","errorMessage","onUpdate","v","controlProps","onScroll","textIndent","undefined","Select","filterable","label","validationState","map","Option","content","title","TextInput","Button","view","onClick","Icon","data","Check","Xmark"],"sources":["EditLinkItem.tsx"],"sourcesContent":["import React, {useId, useRef, useState} from 'react';\nimport {Box, Button, Flex, Icon, Select, Text, TextArea, TextInput} from '@gravity-ui/uikit';\nimport {Check, Xmark} from '@gravity-ui/icons';\nimport {useLabelRef} from '../../hooks/useLabelRef';\nimport {useKeyDownFormControl} from '../../hooks/useKeyDownFormControl';\nimport {ObjectLinkValidator, objectLinkValidator} from '../../helpers/objectLinkValidator';\nimport cn from 'bem-cn-lite';\n\nimport i18n from '../../i18n';\n\nimport './EditLinkItem.scss';\n\nexport type EditLinkValues = {\n link: string;\n token: string;\n name: string;\n};\n\ntype EditLinkErrors = {\n link: string;\n token: string;\n name: string;\n};\n\nexport type EditLinkItemProps = {\n linkLabel?: string;\n tokenLabel?: string;\n nameLabel?: string;\n onAccept?: (values: EditLinkValues) => void;\n onCancel?: () => void;\n onChange?: (pathedValues: EditLinkValues) => void;\n tokens?: {value: string; title: string}[];\n values?: EditLinkValues;\n defaultValues?: EditLinkValues;\n validator?: ObjectLinkValidator;\n};\n\nconst block = cn('edit-link-item');\n\nexport const EditLinkItem = ({\n linkLabel: cutomerLinkLabel,\n tokenLabel: customerTokenLabel,\n nameLabel: customeNameLabel,\n onAccept,\n onCancel,\n onChange,\n tokens,\n values: customerValues,\n validator = objectLinkValidator,\n defaultValues,\n}: EditLinkItemProps) => {\n const [innerValues, setInnerValues] = useState<EditLinkValues>({\n link: '',\n token: '',\n name: '',\n ...customerValues,\n ...(defaultValues ?? {}),\n });\n\n const [errors, setErrors] = useState<Partial<EditLinkErrors> | null>(null);\n\n const linkInputId = useId();\n\n const linkLabel = cutomerLinkLabel ?? i18n('field_link');\n const tokenLabel = customerTokenLabel ?? i18n('field_token');\n const nameLabel = customeNameLabel ?? i18n('field_name');\n\n const values = customerValues ?? innerValues;\n\n const {labelRef, labelWidth} = useLabelRef(linkLabel);\n\n const wasSubmittedRef = useRef(false);\n\n const isTokenRequired = tokens && tokens?.length > 0;\n\n const handleUpdate = (key: string, patcValue: string) => {\n const newValues: EditLinkValues = {...values, [key]: patcValue};\n\n if (errors || wasSubmittedRef.current) {\n setErrors(validator(newValues, isTokenRequired));\n }\n\n setInnerValues(newValues);\n onChange?.(newValues);\n };\n\n const handleAccept = () => {\n const validResult = validator(values, isTokenRequired);\n\n wasSubmittedRef.current = true;\n\n if (validResult) {\n setErrors(validResult);\n return;\n }\n\n onAccept?.(values);\n };\n\n const handleCancel = () => {\n onCancel?.();\n };\n\n const handleLinkScroll = (event: React.UIEvent<HTMLTextAreaElement>) => {\n if (labelRef.current) {\n labelRef.current.style.transform = `translateY(-${event.currentTarget.scrollTop}px)`;\n }\n };\n\n const {handleEditorKeyDown, handleInputKeyDown} = useKeyDownFormControl(\n handleAccept,\n handleCancel,\n );\n\n return (\n <Flex\n onKeyDown={handleEditorKeyDown}\n className={block()}\n width=\"100%\"\n spacing={{px: 4, py: 3}}\n direction=\"column\"\n gap={2}\n >\n <Box overflow=\"hidden\" className={block('link-field-container')} position=\"relative\">\n <Text\n ref={labelRef}\n as=\"label\"\n htmlFor={linkInputId}\n className={block('link-field-label')}\n >\n {linkLabel}\n </Text>\n\n <TextArea\n id={linkInputId}\n value={values.link}\n minRows={3}\n maxRows={5}\n hasClear\n autoFocus\n error={errors?.link}\n errorMessage={errors?.link}\n onKeyDown={handleInputKeyDown}\n onUpdate={(v) => handleUpdate('link', v)}\n controlProps={{\n onScroll: handleLinkScroll,\n style: {\n textIndent: labelWidth ? labelWidth + 2 : undefined,\n },\n }}\n />\n </Box>\n\n {tokens && (\n <Select\n filterable\n value={[values.token]}\n label={tokenLabel}\n errorMessage={errors?.token}\n validationState={errors?.token ? 'invalid' : undefined}\n onUpdate={(v) => handleUpdate('token', v[0])}\n >\n {tokens.map((token) => (\n <Select.Option\n key={token.value}\n value={token.value}\n content={token.title}\n />\n ))}\n </Select>\n )}\n\n <TextInput\n value={values.name}\n label={nameLabel}\n hasClear\n error={errors?.name}\n onKeyDown={handleInputKeyDown}\n onUpdate={(v) => handleUpdate('name', v)}\n />\n\n <Flex gap={2}>\n <Button view=\"flat\" onClick={handleAccept}>\n <Icon data={Check} />\n {i18n('action_save')}\n </Button>\n <Button view=\"flat\" onClick={onCancel}>\n <Icon data={Xmark} />\n {i18n('action_cancel')}\n </Button>\n </Flex>\n </Flex>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,oBAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAC,sBAAA,CAAAP,OAAA;AAEA,IAAAQ,KAAA,GAAAD,sBAAA,CAAAP,OAAA;AAEAA,OAAA;AAA6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,KAAK,EAAEvE,MAAM,CAACU,IAAK;MACnB4E,KAAK,EAAE5F,SAAU;MACjBgF,QAAQ;MACRE,KAAK,EAAE3D,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEP,IAAK;MACpB0C,SAAS,EAAEH,kBAAmB;MAC9B6B,QAAQ,EAAE,SAAVA,QAAQA,CAAGC,CAAC;QAAA,OAAKjD,YAAY,CAAC,MAAM,EAAEiD,CAAC,CAAC;MAAA;IAAC,CAC5C,CAAC,eAEF,IAAA7B,gBAAA,EAACC,WAAI;MAACQ,GAAG,EAAE,CAAE;MAAAC,QAAA,gBACT,IAAAV,gBAAA,EAAC2C,aAAM;QAACC,IAAI,EAAC,MAAM;QAACC,OAAO,EAAE3D,YAAa;QAAAwB,QAAA,gBACtC,IAAAI,eAAA,EAACgC,WAAI;UAACC,IAAI,EAAEC;QAAM,CAAE,CAAC,EACpB,IAAA7E,aAAI,EAAC,aAAa,CAAC;MAAA,CAChB,CAAC,eACT,IAAA6B,gBAAA,EAAC2C,aAAM;QAACC,IAAI,EAAC,MAAM;QAACC,OAAO,EAAEnG,QAAS;QAAAgE,QAAA,gBAClC,IAAAI,eAAA,EAACgC,WAAI;UAACC,IAAI,EAAEE;QAAM,CAAE,CAAC,EACpB,IAAA9E,aAAI,EAAC,eAAe,CAAC;MAAA,CAClB,CAAC;IAAA,CACP,CAAC;EAAA,CACL,CAAC;AAEf,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Validator } from '../../helpers/stringRequiredValidator';
|
|
3
|
+
export type EditFileItemProps = {
|
|
4
|
+
fileName?: string;
|
|
5
|
+
fileLabel?: string;
|
|
6
|
+
defaultFileName?: string;
|
|
7
|
+
onChangeFileName?: (fileName: string) => void;
|
|
8
|
+
onAccept?: (newFileName: string) => void;
|
|
9
|
+
onCancel?: () => void;
|
|
10
|
+
validator?: Validator;
|
|
11
|
+
};
|
|
12
|
+
export declare const FileEdit: ({ fileLabel: customerFileLabel, fileName: customerFileName, defaultFileName, onChangeFileName, onAccept, onCancel, validator, }: EditFileItemProps) => React.JSX.Element;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FileEdit = void 0;
|
|
7
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _uikit = require("@gravity-ui/uikit");
|
|
10
|
+
var _icons = require("@gravity-ui/icons");
|
|
11
|
+
var _useKeyDownFormControl = require("../../hooks/useKeyDownFormControl");
|
|
12
|
+
var _stringRequiredValidator = require("../../helpers/stringRequiredValidator");
|
|
13
|
+
var _i18n = _interopRequireDefault(require("../../i18n"));
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
var FileEdit = exports.FileEdit = function FileEdit(_ref) {
|
|
18
|
+
var _ref2;
|
|
19
|
+
var customerFileLabel = _ref.fileLabel,
|
|
20
|
+
customerFileName = _ref.fileName,
|
|
21
|
+
defaultFileName = _ref.defaultFileName,
|
|
22
|
+
onChangeFileName = _ref.onChangeFileName,
|
|
23
|
+
onAccept = _ref.onAccept,
|
|
24
|
+
onCancel = _ref.onCancel,
|
|
25
|
+
_ref$validator = _ref.validator,
|
|
26
|
+
validator = _ref$validator === void 0 ? _stringRequiredValidator.stringRequiredValidator : _ref$validator;
|
|
27
|
+
var _useState = (0, _react.useState)((_ref2 = defaultFileName !== null && defaultFileName !== void 0 ? defaultFileName : customerFileName) !== null && _ref2 !== void 0 ? _ref2 : ''),
|
|
28
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
29
|
+
innerFileName = _useState2[0],
|
|
30
|
+
setInnerFileName = _useState2[1];
|
|
31
|
+
var _useState3 = (0, _react.useState)(null),
|
|
32
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
33
|
+
errorMsg = _useState4[0],
|
|
34
|
+
setErrorMsg = _useState4[1];
|
|
35
|
+
var wasSubmittedRef = (0, _react.useRef)(false);
|
|
36
|
+
var label = customerFileLabel !== null && customerFileLabel !== void 0 ? customerFileLabel : (0, _i18n.default)('field_name');
|
|
37
|
+
var fileName = customerFileName !== null && customerFileName !== void 0 ? customerFileName : innerFileName;
|
|
38
|
+
var handleChangeFileName = function handleChangeFileName(patchFileName) {
|
|
39
|
+
if (errorMsg || wasSubmittedRef.current) {
|
|
40
|
+
setErrorMsg(validator(patchFileName));
|
|
41
|
+
}
|
|
42
|
+
setInnerFileName(patchFileName);
|
|
43
|
+
onChangeFileName === null || onChangeFileName === void 0 || onChangeFileName(patchFileName);
|
|
44
|
+
};
|
|
45
|
+
var handleAccept = function handleAccept() {
|
|
46
|
+
var error = validator(fileName);
|
|
47
|
+
wasSubmittedRef.current = true;
|
|
48
|
+
if (error) {
|
|
49
|
+
setErrorMsg(error);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
onAccept === null || onAccept === void 0 || onAccept(fileName);
|
|
53
|
+
};
|
|
54
|
+
var handleCancel = function handleCancel() {
|
|
55
|
+
onCancel === null || onCancel === void 0 || onCancel();
|
|
56
|
+
};
|
|
57
|
+
var _useKeyDownFormContro = (0, _useKeyDownFormControl.useKeyDownFormControl)(handleAccept, handleCancel),
|
|
58
|
+
handleEditorKeyDown = _useKeyDownFormContro.handleEditorKeyDown,
|
|
59
|
+
handleInputKeyDown = _useKeyDownFormContro.handleInputKeyDown;
|
|
60
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
|
|
61
|
+
onKeyDown: handleEditorKeyDown,
|
|
62
|
+
spacing: {
|
|
63
|
+
px: 4,
|
|
64
|
+
py: 1
|
|
65
|
+
},
|
|
66
|
+
width: "100%",
|
|
67
|
+
gap: 2,
|
|
68
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.TextInput, {
|
|
69
|
+
autoFocus: true,
|
|
70
|
+
label: label,
|
|
71
|
+
value: fileName,
|
|
72
|
+
error: Boolean(errorMsg),
|
|
73
|
+
errorMessage: errorMsg,
|
|
74
|
+
onKeyDown: handleInputKeyDown,
|
|
75
|
+
onUpdate: handleChangeFileName
|
|
76
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Button, {
|
|
77
|
+
view: "flat",
|
|
78
|
+
onClick: handleAccept,
|
|
79
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Icon, {
|
|
80
|
+
data: _icons.Check
|
|
81
|
+
})
|
|
82
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Button, {
|
|
83
|
+
view: "flat",
|
|
84
|
+
onClick: onCancel,
|
|
85
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Icon, {
|
|
86
|
+
data: _icons.Xmark
|
|
87
|
+
})
|
|
88
|
+
})]
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
// #sourceMappingURL=FileEdit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_uikit","_icons","_useKeyDownFormControl","_stringRequiredValidator","_i18n","_interopRequireDefault","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FileEdit","exports","_ref","_ref2","customerFileLabel","fileLabel","customerFileName","fileName","defaultFileName","onChangeFileName","onAccept","onCancel","_ref$validator","validator","stringRequiredValidator","_useState","useState","_useState2","_slicedToArray","innerFileName","setInnerFileName","_useState3","_useState4","errorMsg","setErrorMsg","wasSubmittedRef","useRef","label","i18n","handleChangeFileName","patchFileName","current","handleAccept","error","handleCancel","_useKeyDownFormContro","useKeyDownFormControl","handleEditorKeyDown","handleInputKeyDown","_jsxs","Flex","onKeyDown","spacing","px","py","width","gap","children","_jsx","TextInput","autoFocus","value","Boolean","errorMessage","onUpdate","Button","view","onClick","Icon","data","Check","Xmark"],"sources":["FileEdit.tsx"],"sourcesContent":["import React, {useRef, useState} from 'react';\nimport {Button, Flex, Icon, TextInput} from '@gravity-ui/uikit';\nimport {Check, Xmark} from '@gravity-ui/icons';\nimport {useKeyDownFormControl} from '../../hooks/useKeyDownFormControl';\nimport {Validator, stringRequiredValidator} from '../../helpers/stringRequiredValidator';\n\nimport i18n from '../../i18n';\n\nexport type EditFileItemProps = {\n fileName?: string;\n fileLabel?: string;\n defaultFileName?: string;\n onChangeFileName?: (fileName: string) => void;\n onAccept?: (newFileName: string) => void;\n onCancel?: () => void;\n validator?: Validator;\n};\n\nexport const FileEdit = ({\n fileLabel: customerFileLabel,\n fileName: customerFileName,\n defaultFileName,\n onChangeFileName,\n onAccept,\n onCancel,\n validator = stringRequiredValidator,\n}: EditFileItemProps) => {\n const [innerFileName, setInnerFileName] = useState<string>(\n defaultFileName ?? customerFileName ?? '',\n );\n\n const [errorMsg, setErrorMsg] = useState<string | null>(null);\n\n const wasSubmittedRef = useRef(false);\n\n const label = customerFileLabel ?? i18n('field_name');\n\n const fileName = customerFileName ?? innerFileName;\n\n const handleChangeFileName = (patchFileName: string) => {\n if (errorMsg || wasSubmittedRef.current) {\n setErrorMsg(validator(patchFileName));\n }\n\n setInnerFileName(patchFileName);\n onChangeFileName?.(patchFileName);\n };\n\n const handleAccept = () => {\n const error = validator(fileName);\n\n wasSubmittedRef.current = true;\n\n if (error) {\n setErrorMsg(error);\n return;\n }\n\n onAccept?.(fileName);\n };\n\n const handleCancel = () => {\n onCancel?.();\n };\n\n const {handleEditorKeyDown, handleInputKeyDown} = useKeyDownFormControl(\n handleAccept,\n handleCancel,\n );\n\n return (\n <Flex onKeyDown={handleEditorKeyDown} spacing={{px: 4, py: 1}} width=\"100%\" gap={2}>\n <TextInput\n autoFocus\n label={label}\n value={fileName}\n error={Boolean(errorMsg)}\n errorMessage={errorMsg}\n onKeyDown={handleInputKeyDown}\n onUpdate={handleChangeFileName}\n />\n\n <Button view=\"flat\" onClick={handleAccept}>\n <Icon data={Check} />\n </Button>\n\n <Button view=\"flat\" onClick={onCancel}>\n <Icon data={Xmark} />\n </Button>\n </Flex>\n );\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAH,OAAA;AACA,IAAAI,wBAAA,GAAAJ,OAAA;AAEA,IAAAK,KAAA,GAAAC,sBAAA,CAAAN,OAAA;AAA8B,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,wBAAAS,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,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,C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Q,aAARA,QAAQ,eAARA,QAAQ,CAAG,CAAC;EAChB,CAAC;EAED,IAAAwB,qBAAA,GAAkD,IAAAC,4CAAqB,EACnEJ,YAAY,EACZE,YACJ,CAAC;IAHMG,mBAAmB,GAAAF,qBAAA,CAAnBE,mBAAmB;IAAEC,kBAAkB,GAAAH,qBAAA,CAAlBG,kBAAkB;EAK9C,oBACI,IAAAC,gBAAA,EAACC,WAAI;IAACC,SAAS,EAAEJ,mBAAoB;IAACK,OAAO,EAAE;MAACC,EAAE,EAAE,CAAC;MAAEC,EAAE,EAAE;IAAC,CAAE;IAACC,KAAK,EAAC,MAAM;IAACC,GAAG,EAAE,CAAE;IAAAC,QAAA,gBAC/E,IAAAC,eAAA,EAACC,gBAAS;MACNC,SAAS;MACTvB,KAAK,EAAEA,KAAM;MACbwB,KAAK,EAAE5C,QAAS;MAChB0B,KAAK,EAAEmB,OAAO,CAAC7B,QAAQ,CAAE;MACzB8B,YAAY,EAAE9B,QAAS;MACvBkB,SAAS,EAAEH,kBAAmB;MAC9BgB,QAAQ,EAAEzB;IAAqB,CAClC,CAAC,eAEF,IAAAmB,eAAA,EAACO,aAAM;MAACC,IAAI,EAAC,MAAM;MAACC,OAAO,EAAEzB,YAAa;MAAAe,QAAA,eACtC,IAAAC,eAAA,EAACU,WAAI;QAACC,IAAI,EAAEC;MAAM,CAAE;IAAC,CACjB,CAAC,eAET,IAAAZ,eAAA,EAACO,aAAM;MAACC,IAAI,EAAC,MAAM;MAACC,OAAO,EAAE9C,QAAS;MAAAoC,QAAA,eAClC,IAAAC,eAAA,EAACU,WAAI;QAACC,IAAI,EAAEE;MAAM,CAAE;IAAC,CACjB,CAAC;EAAA,CACP,CAAC;AAEf,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "EditAttachmentItem", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _EditAttachmentItem.EditAttachmentItem;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _EditAttachmentItem = require("./EditAttachmentItem");
|
|
13
|
+
// #sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_EditAttachmentItem","require"],"sources":["index.ts"],"sourcesContent":["export {EditAttachmentItem} from './EditAttachmentItem';\nexport type {EditAttachmentItemProps} from './EditAttachmentItem';\nexport type {EditLinkItemProps, EditLinkValues} from './EditLinkItem';\nexport type {EditFileItemProps} from './FileEdit';\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["AttachmentListPlaceholder.scss"],"names":[],"mappings":"AACI;EACI,8BAAA;AAAR","file":"AttachmentListPlaceholder.css","sourcesContent":[".qp-attachment-list-placeholder {\n &__doc-link {\n margin-top: var(--g-spacing-2);\n }\n}\n"],"sourceRoot":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import './AttachmentListPlaceholder.scss';
|
|
3
|
+
export type AttachmentListPlaceholderProps = {
|
|
4
|
+
title?: ReactNode;
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
linkForDoc?: string;
|
|
7
|
+
linkText?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
onAddFile?: () => void;
|
|
10
|
+
onAddLink?: () => void;
|
|
11
|
+
qa?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const AttachmentListPlaceholder: ({ title: customerTitle, description: customerDescription, linkForDoc, linkText: customerLinkText, className, onAddFile, onAddLink, qa, }: AttachmentListPlaceholderProps) => React.JSX.Element;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AttachmentListPlaceholder = void 0;
|
|
7
|
+
require("core-js/modules/es.symbol.js");
|
|
8
|
+
require("core-js/modules/es.symbol.description.js");
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _uikit = require("@gravity-ui/uikit");
|
|
11
|
+
var _illustrations = require("@gravity-ui/illustrations");
|
|
12
|
+
var _icons = require("@gravity-ui/icons");
|
|
13
|
+
var _bemCnLite = _interopRequireDefault(require("bem-cn-lite"));
|
|
14
|
+
var _i18n = _interopRequireDefault(require("./i18n"));
|
|
15
|
+
require("./AttachmentListPlaceholder.css");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
+
var block = (0, _bemCnLite.default)('qp-attachment-list-placeholder');
|
|
19
|
+
var AttachmentListPlaceholder = exports.AttachmentListPlaceholder = function AttachmentListPlaceholder(_ref) {
|
|
20
|
+
var customerTitle = _ref.title,
|
|
21
|
+
customerDescription = _ref.description,
|
|
22
|
+
linkForDoc = _ref.linkForDoc,
|
|
23
|
+
customerLinkText = _ref.linkText,
|
|
24
|
+
className = _ref.className,
|
|
25
|
+
onAddFile = _ref.onAddFile,
|
|
26
|
+
onAddLink = _ref.onAddLink,
|
|
27
|
+
qa = _ref.qa;
|
|
28
|
+
var title = customerTitle !== null && customerTitle !== void 0 ? customerTitle : (0, _i18n.default)('title_no-attachments');
|
|
29
|
+
var description = customerDescription !== null && customerDescription !== void 0 ? customerDescription : (0, _i18n.default)('context_add-attachment-for-request');
|
|
30
|
+
var linkText = customerLinkText !== null && customerLinkText !== void 0 ? customerLinkText : (0, _i18n.default)('action_attachments-help');
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
|
|
32
|
+
direction: "column",
|
|
33
|
+
alignItems: "center",
|
|
34
|
+
justifyContent: "center",
|
|
35
|
+
gap: 5,
|
|
36
|
+
width: "100%",
|
|
37
|
+
height: "100%",
|
|
38
|
+
className: block(null, className),
|
|
39
|
+
"data-qa": qa,
|
|
40
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_illustrations.Folder, {
|
|
41
|
+
height: 100,
|
|
42
|
+
width: 100
|
|
43
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
|
|
44
|
+
gap: 1,
|
|
45
|
+
direction: "column",
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Text, {
|
|
48
|
+
variant: "subheader-1",
|
|
49
|
+
children: title
|
|
50
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Text, {
|
|
51
|
+
variant: "body-1",
|
|
52
|
+
children: description
|
|
53
|
+
}), linkForDoc && /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Link, {
|
|
54
|
+
className: block('doc-link'),
|
|
55
|
+
href: linkForDoc,
|
|
56
|
+
children: linkText
|
|
57
|
+
})]
|
|
58
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Flex, {
|
|
59
|
+
gap: 2,
|
|
60
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Button, {
|
|
61
|
+
onClick: onAddFile,
|
|
62
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Icon, {
|
|
63
|
+
data: _icons.Plus
|
|
64
|
+
}), (0, _i18n.default)('action_add-file')]
|
|
65
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikit.Button, {
|
|
66
|
+
onClick: onAddLink,
|
|
67
|
+
view: "outlined",
|
|
68
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_uikit.Icon, {
|
|
69
|
+
data: _icons.Plus
|
|
70
|
+
}), (0, _i18n.default)('action_add-link')]
|
|
71
|
+
})]
|
|
72
|
+
})]
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
// #sourceMappingURL=AttachmentListPlaceholder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_uikit","_illustrations","_icons","_bemCnLite","_i18n","_jsxRuntime","e","__esModule","default","block","cn","AttachmentListPlaceholder","exports","_ref","customerTitle","title","customerDescription","description","linkForDoc","customerLinkText","linkText","className","onAddFile","onAddLink","qa","i18n","_jsxs","Flex","direction","alignItems","justifyContent","gap","width","height","children","_jsx","Folder","Text","variant","Link","href","Button","onClick","Icon","data","Plus","view"],"sources":["AttachmentListPlaceholder.tsx"],"sourcesContent":["import React, {ReactNode} from 'react';\nimport {Button, Flex, Icon, Link, Text} from '@gravity-ui/uikit';\nimport {Folder} from '@gravity-ui/illustrations';\nimport {Plus} from '@gravity-ui/icons';\nimport cn from 'bem-cn-lite';\nimport i18n from './i18n';\nimport './AttachmentListPlaceholder.scss';\n\nexport type AttachmentListPlaceholderProps = {\n title?: ReactNode;\n description?: ReactNode;\n linkForDoc?: string;\n linkText?: string;\n className?: string;\n onAddFile?: () => void;\n onAddLink?: () => void;\n qa?: string;\n};\n\nconst block = cn('qp-attachment-list-placeholder');\n\nexport const AttachmentListPlaceholder = ({\n title: customerTitle,\n description: customerDescription,\n linkForDoc,\n linkText: customerLinkText,\n className,\n onAddFile,\n onAddLink,\n qa,\n}: AttachmentListPlaceholderProps) => {\n const title = customerTitle ?? i18n('title_no-attachments');\n const description = customerDescription ?? i18n('context_add-attachment-for-request');\n const linkText = customerLinkText ?? i18n('action_attachments-help');\n\n return (\n <Flex\n direction=\"column\"\n alignItems=\"center\"\n justifyContent=\"center\"\n gap={5}\n width=\"100%\"\n height=\"100%\"\n className={block(null, className)}\n data-qa={qa}\n >\n <Folder height={100} width={100} />\n\n <Flex gap={1} direction=\"column\" alignItems=\"center\">\n <Text variant=\"subheader-1\">{title}</Text>\n <Text variant=\"body-1\">{description}</Text>\n {linkForDoc && (\n <Link className={block('doc-link')} href={linkForDoc}>\n {linkText}\n </Link>\n )}\n </Flex>\n\n <Flex gap={2}>\n <Button onClick={onAddFile}>\n <Icon data={Plus} />\n {i18n('action_add-file')}\n </Button>\n\n <Button onClick={onAddLink} view=\"outlined\">\n <Icon data={Plus} />\n {i18n('action_add-link')}\n </Button>\n </Flex>\n </Flex>\n );\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,KAAA,GAAAN,sBAAA,CAAAC,OAAA;AACAA,OAAA;AAA0C,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAa1C,IAAMG,KAAK,GAAG,IAAAC,kBAAE,EAAC,gCAAgC,CAAC;AAE3C,IAAMC,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA,GAAG,SAA5BA,yBAAyBA,CAAAE,IAAA,EASA;EAAA,IAR3BC,aAAa,GAAAD,IAAA,CAApBE,KAAK;IACQC,mBAAmB,GAAAH,IAAA,CAAhCI,WAAW;IACXC,UAAU,GAAAL,IAAA,CAAVK,UAAU;IACAC,gBAAgB,GAAAN,IAAA,CAA1BO,QAAQ;IACRC,SAAS,GAAAR,IAAA,CAATQ,SAAS;IACTC,SAAS,GAAAT,IAAA,CAATS,SAAS;IACTC,SAAS,GAAAV,IAAA,CAATU,SAAS;IACTC,EAAE,GAAAX,IAAA,CAAFW,EAAE;EAEF,IAAMT,KAAK,GAAGD,aAAa,aAAbA,aAAa,cAAbA,aAAa,GAAI,IAAAW,aAAI,EAAC,sBAAsB,C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AAA,gBACvB,IAAAC,eAAA,EAACQ,WAAI;UAACC,IAAI,EAAEC;QAAK,CAAE,CAAC,EACnB,IAAApB,aAAI,EAAC,iBAAiB,CAAC;MAAA,CACpB,CAAC,eAET,IAAAC,gBAAA,EAACe,aAAM;QAACC,OAAO,EAAEnB,SAAU;QAACuB,IAAI,EAAC,UAAU;QAAAZ,QAAA,gBACvC,IAAAC,eAAA,EAACQ,WAAI;UAACC,IAAI,EAAEC;QAAK,CAAE,CAAC,EACnB,IAAApB,aAAI,EAAC,iBAAiB,CAAC;MAAA,CACpB,CAAC;IAAA,CACP,CAAC;EAAA,CACL,CAAC;AAEf,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ title: customerTitle, description: customerDescription, linkForDoc, linkText: customerLinkText, className, onAddFile, onAddLink, qa, }: import("./AttachmentListPlaceholder").AttachmentListPlaceholderProps) => React.JSX.Element;
|
|
6
|
+
tags: string[];
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
11
|
+
title?: React.ReactNode;
|
|
12
|
+
description?: React.ReactNode;
|
|
13
|
+
linkForDoc?: string | undefined;
|
|
14
|
+
linkText?: string | undefined;
|
|
15
|
+
className?: string | undefined;
|
|
16
|
+
onAddFile?: (() => void) | undefined;
|
|
17
|
+
onAddLink?: (() => void) | undefined;
|
|
18
|
+
qa?: string | undefined;
|
|
19
|
+
}>) => React.JSX.Element)[];
|
|
20
|
+
args: {
|
|
21
|
+
title: string;
|
|
22
|
+
description: string;
|
|
23
|
+
linkForDoc: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export default meta;
|
|
27
|
+
type Story = StoryObj<typeof meta>;
|
|
28
|
+
/** Empty state with documentation and two secondary actions, matching the Figma example. */
|
|
29
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _AttachmentListPlaceholder = require("./AttachmentListPlaceholder");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
var meta = {
|
|
12
|
+
title: 'Components/AttachmentListPlaceholder',
|
|
13
|
+
component: _AttachmentListPlaceholder.AttachmentListPlaceholder,
|
|
14
|
+
tags: ['autodocs'],
|
|
15
|
+
parameters: {
|
|
16
|
+
layout: 'centered'
|
|
17
|
+
},
|
|
18
|
+
decorators: [function (Story) {
|
|
19
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20
|
+
style: {
|
|
21
|
+
width: 324,
|
|
22
|
+
height: 622
|
|
23
|
+
},
|
|
24
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Story, {})
|
|
25
|
+
});
|
|
26
|
+
}],
|
|
27
|
+
args: {
|
|
28
|
+
title: 'No attachments',
|
|
29
|
+
description: 'Add attachment for use in the request',
|
|
30
|
+
linkForDoc: '#attachments-help'
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
var _default = exports.default = meta;
|
|
34
|
+
/** Empty state with documentation and two secondary actions, matching the Figma example. */
|
|
35
|
+
var Default = exports.Default = {};
|
|
36
|
+
// #sourceMappingURL=AttachmentListPlaceholder.stories.js.map
|
package/build/cjs/components/AttachmentListPlaceholder/AttachmentListPlaceholder.stories.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_AttachmentListPlaceholder","_jsxRuntime","e","__esModule","default","meta","title","component","AttachmentListPlaceholder","tags","parameters","layout","decorators","Story","_jsx","style","width","height","children","args","description","linkForDoc","_default","exports","Default"],"sources":["AttachmentListPlaceholder.stories.tsx"],"sourcesContent":["import React from 'react';\nimport {AttachmentListPlaceholder} from './AttachmentListPlaceholder';\nimport type {Meta, StoryObj} from '@storybook/react';\n\nconst meta = {\n title: 'Components/AttachmentListPlaceholder',\n component: AttachmentListPlaceholder,\n tags: ['autodocs'],\n parameters: {\n layout: 'centered',\n },\n decorators: [\n (Story) => (\n <div style={{width: 324, height: 622}}>\n <Story />\n </div>\n ),\n ],\n args: {\n title: 'No attachments',\n description: 'Add attachment for use in the request',\n linkForDoc: '#attachments-help',\n },\n} satisfies Meta<typeof AttachmentListPlaceholder>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\n/** Empty state with documentation and two secondary actions, matching the Figma example. */\nexport const Default: Story = {};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,0BAAA,GAAAD,OAAA;AAAsE,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGtE,IAAMG,IAAI,GAAG;EACTC,KAAK,EAAE,sCAAsC;EAC7CC,SAAS,EAAEC,oDAAyB;EACpCC,IAAI,EAAE,CAAC,UAAU,CAAC;EAClBC,UAAU,EAAE;IACRC,MAAM,EAAE;EACZ,CAAC;EACDC,UAAU,EAAE,CACR,UAACC,KAAK;IAAA,oBACF,IAAAC,eAAA;MAAKC,KAAK,EAAE;QAACC,KAAK,EAAE,GAAG;QAAEC,MAAM,EAAE;MAAG,CAAE;MAAAC,QAAA,eAClC,IAAAJ,eAAA,EAACD,KAAK,IAAE;IAAC,CACR,CAAC;EAAA,CACT,CACJ;EACDM,IAAI,EAAE;IACFb,KAAK,EAAE,gBAAgB;IACvBc,WAAW,EAAE,uCAAuC;IACpDC,UAAU,EAAE;EAChB;AACJ,CAAkD;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAnB,OAAA,GAEnCC,IAAI;AAGnB;AACO,IAAMmB,OAAc,GAAAD,OAAA,CAAAC,OAAA,GAAG,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
"title_no-attachments": string;
|
|
4
|
+
"context_add-attachment-for-request": string;
|
|
5
|
+
"action_attachments-help": string;
|
|
6
|
+
"action_add-file": string;
|
|
7
|
+
"action_add-link": string;
|
|
8
|
+
};
|
|
9
|
+
ru: {
|
|
10
|
+
"title_no-attachments": string;
|
|
11
|
+
"context_add-attachment-for-request": string;
|
|
12
|
+
"action_attachments-help": string;
|
|
13
|
+
"action_add-file": string;
|
|
14
|
+
"action_add-link": string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _en = _interopRequireDefault(require("./en.json"));
|
|
8
|
+
var _ru = _interopRequireDefault(require("./ru.json"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
var _default = exports.default = {
|
|
11
|
+
en: _en.default,
|
|
12
|
+
ru: _ru.default
|
|
13
|
+
};
|
|
14
|
+
// #sourceMappingURL=dicts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_en","_interopRequireDefault","require","_ru","e","__esModule","default","_default","exports","en","ru"],"sources":["dicts.ts"],"sourcesContent":["import en from './en.json';\nimport ru from './ru.json';\n\nexport default {en, ru};\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAS,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAEM;EAACG,EAAE,EAAFA,WAAE;EAAEC,EAAE,EAAFA;AAAE,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: ((key: "title_no-attachments" | "context_add-attachment-for-request" | "action_attachments-help" | "action_add-file" | "action_add-link", params?: import("@gravity-ui/i18n").Params) => string) & {
|
|
2
|
+
keysetData: {
|
|
3
|
+
"qp:attachment-list-placeholder": Record<"title_no-attachments" | "context_add-attachment-for-request" | "action_attachments-help" | "action_add-file" | "action_add-link", import("@gravity-ui/i18n").KeyData>;
|
|
4
|
+
};
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _i18n = require("../../../i18n");
|
|
8
|
+
var _dicts = _interopRequireDefault(require("./dicts"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
var _default = exports.default = (0, _i18n.addI18Keysets)('qp:attachment-list-placeholder', _dicts.default);
|
|
11
|
+
// #sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_i18n","require","_dicts","_interopRequireDefault","e","__esModule","default","_default","exports","addI18Keysets","dicts"],"sources":["index.ts"],"sourcesContent":["import {addI18Keysets} from '../../../i18n';\n\nimport dicts from './dicts';\n\nexport default addI18Keysets('qp:attachment-list-placeholder', dicts);\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAY,SAAAE,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAEG,IAAAG,mBAAa,EAAC,gCAAgC,EAAEC,cAAK,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title_no-attachments": "Нет вложений",
|
|
3
|
+
"context_add-attachment-for-request": "Добавьте вложение, чтобы использовать его в запросе",
|
|
4
|
+
"action_attachments-help": "Как работать с вложениями",
|
|
5
|
+
"action_add-file": "Добавить файл",
|
|
6
|
+
"action_add-link": "Добавить ссылку"
|
|
7
|
+
}
|