@retailcrm/datalens-ui 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AccessErrorPage.js +18 -0
- package/AdvancedChartWidget.js +253 -0
- package/AppearanceSettings.js +45 -0
- package/Body.js +2328 -0
- package/CreateProfilePage.js +142 -0
- package/HighchartsMapWidget.js +602 -0
- package/LICENSE +203 -0
- package/MainPage.js +121 -0
- package/MarkupWidget.js +33 -0
- package/MetricWidget.js +579 -0
- package/StyledSplitPane.js +41 -0
- package/UserProfilePage.js +44 -0
- package/UsersList.js +306 -0
- package/YandexMapWidget.js +2698 -0
- package/assets/images/dark/403.js +4 -0
- package/assets/images/dark/404.js +4 -0
- package/assets/images/dark/500.js +4 -0
- package/assets/images/dark/bad_request.js +4 -0
- package/assets/images/dark/empty_directory.js +4 -0
- package/assets/images/dark/empty_state.js +4 -0
- package/assets/images/dark/no_accounts.js +4 -0
- package/assets/images/dark/no_permission.js +4 -0
- package/assets/images/dark/project.js +4 -0
- package/assets/images/dark/success_operation.js +4 -0
- package/assets/images/light/403.js +4 -0
- package/assets/images/light/404.js +4 -0
- package/assets/images/light/500.js +4 -0
- package/assets/images/light/bad_request.js +4 -0
- package/assets/images/light/empty_directory.js +4 -0
- package/assets/images/light/empty_state.js +4 -0
- package/assets/images/light/no_accounts.js +4 -0
- package/assets/images/light/no_permission.js +4 -0
- package/assets/images/light/project.js +4 -0
- package/assets/images/light/success_operation.js +4 -0
- package/components/AccessRights.js +5908 -0
- package/components/ActionPanel.js +3507 -0
- package/components/AdaptiveDialog.js +45 -0
- package/components/AnimateBlock.js +38 -0
- package/components/AsideHeaderAdapter.js +632 -0
- package/components/AsyncImage.js +77 -0
- package/components/AutogeneratedPaletteIcon.js +53 -0
- package/components/BetaMark.js +9 -0
- package/components/Breadcrumbs.js +70 -0
- package/components/BreadcrumbsItemLink.js +16 -0
- package/components/ButtonAttach.js +32 -0
- package/components/Collapse.js +159 -0
- package/components/CollectionFilters.js +340 -0
- package/components/CollectionIcon.js +14 -0
- package/components/CollectionsStructure.js +3262 -0
- package/components/ColorPaletteEditorContainer.js +1091 -0
- package/components/ColorPaletteSelect.js +120 -0
- package/components/ColorPickerInput.js +199 -0
- package/components/ConnectorIcon.js +65 -0
- package/components/ControlComponents.js +24341 -0
- package/components/CopyEntriesToWorkbookDialog.js +414 -0
- package/components/DashKit.js +4026 -0
- package/components/DataTypeIcon.js +68 -0
- package/components/DatasetFieldList.js +51 -0
- package/components/DebouncedInput.js +47 -0
- package/components/DialogAddSharedEntryFromLink.js +146 -0
- package/components/DialogChartWidget.js +1265 -0
- package/components/DialogCommon.js +91 -0
- package/components/DialogConfirm.js +69 -0
- package/components/DialogDefault.js +78 -0
- package/components/DialogEditItem.js +183 -0
- package/components/DialogEntryDescription.js +175 -0
- package/components/DialogErrorWithTabs.js +373 -0
- package/components/DialogExternalControl.js +108 -0
- package/components/DialogFieldEditor.js +45 -0
- package/components/DialogFilter.js +3735 -0
- package/components/DialogGroupControl.js +926 -0
- package/components/DialogImageWidget.js +203 -0
- package/components/DialogManager.js +42 -0
- package/components/DialogNoRights.js +19 -0
- package/components/DialogParameter.js +560 -0
- package/components/DialogQLParameter.js +71 -0
- package/components/DialogRelatedEntities.js +230 -0
- package/components/DialogRelations.js +3389 -0
- package/components/DialogSelectSharedEntry.js +129 -0
- package/components/DialogSharedEntryBindings.js +496 -0
- package/components/DialogSharedEntryPermissions.js +147 -0
- package/components/DialogSharedEntryUnbind.js +124 -0
- package/components/DialogSharedRelatedEntities.js +196 -0
- package/components/DialogSuccessWithAction.js +23 -0
- package/components/DialogTextWidget.js +211 -0
- package/components/DialogTitleWidget.js +580 -0
- package/components/DialogWarning.js +51 -0
- package/components/DropdownAction.js +13 -0
- package/components/DropdownNavigation.js +173 -0
- package/components/EditableText.js +56 -0
- package/components/EntitiesList.js +54 -0
- package/components/EntityIcon.js +47 -0
- package/components/EntityLink.js +14 -0
- package/components/EntityRow.js +99 -0
- package/components/EntriesList.js +55 -0
- package/components/EntryBreadcrumbs.js +111 -0
- package/components/EntryContextMenu.js +792 -0
- package/components/EntryDialogues.js +2515 -0
- package/components/EntryIcon.js +102 -0
- package/components/EntryRow.js +99 -0
- package/components/EntryTitle.js +57 -0
- package/components/ErrorBoundary.js +24 -0
- package/components/ErrorContent.js +249 -0
- package/components/ErrorPage.js +30 -0
- package/components/ExpandablePanel.js +67 -0
- package/components/FieldEditor.js +2240 -0
- package/components/FieldWrapper.js +15 -0
- package/components/FloatMenu.js +41 -0
- package/components/FormSection.js +16 -0
- package/components/FormattedValue.js +1 -0
- package/components/IamAccessDialog.js +15 -0
- package/components/IconById.js +14 -0
- package/components/Illustration.js +94 -0
- package/components/InaccessibleOnMobileInset.js +39 -0
- package/components/Interpolate.js +32 -0
- package/components/InterpolatedText.js +47 -0
- package/components/LandingPage.js +50 -0
- package/components/ListWithMenu.js +191 -0
- package/components/ListWithRemove.js +42 -0
- package/components/LocationChange.js +23 -0
- package/components/MarkdownControl.js +21 -0
- package/components/MarkdownHelpPopover.js +77 -0
- package/components/Markup.js +200 -0
- package/components/MigrateToWorkbookDialog.js +498 -0
- package/components/MobileHeader.js +142 -0
- package/components/MobileTocToggle.js +16 -0
- package/components/Monaco.js +112 -0
- package/components/Navigation.js +2675 -0
- package/components/NavigationPrompt.js +18 -0
- package/components/NavigationTabs.js +84 -0
- package/components/NumberFormatSettings.js +193 -0
- package/components/OpenDialogNeedReset.js +49 -0
- package/components/OrderBySelect.js +51 -0
- package/components/PageTitle.js +53 -0
- package/components/PaletteIcon.js +25 -0
- package/components/PaletteItem.js +44 -0
- package/components/PathSelect.js +113 -0
- package/components/PlaceholderIllustration.js +37 -0
- package/components/Progress.js +47 -0
- package/components/ProgressBar.js +19 -0
- package/components/RelativeDatesPicker.js +675 -0
- package/components/RevisionStatusPoint.js +25 -0
- package/components/Revisions.js +314 -0
- package/components/RevisionsPanel.js +278 -0
- package/components/SectionWrapper.js +52 -0
- package/components/Select.js +404 -0
- package/components/SelectComponents.js +12 -0
- package/components/SelectMigrationToWorkbookDialog.js +162 -0
- package/components/SharedBindingsList.js +93 -0
- package/components/SharedEntryIcon.js +22 -0
- package/components/SlugifyUrl.js +22 -0
- package/components/SmartLoader.js +28 -0
- package/components/TabMenu.js +356 -0
- package/components/Tabs.js +66 -0
- package/components/TagInput.js +142 -0
- package/components/TemplateTextPaper.js +32 -0
- package/components/TextEditor.js +41 -0
- package/components/UserAvatar.js +233 -0
- package/components/UserMenu.js +54 -0
- package/components/ValuesList.js +55 -0
- package/components/Veil.js +19 -0
- package/components/ViewAsync.js +45 -0
- package/components/ViewError.js +115 -0
- package/components/ViewLoader.js +17 -0
- package/components/WidgetRoundingsInput.js +47 -0
- package/components/Widgets.js +3964 -0
- package/components/WorkbookIcon.js +63 -0
- package/components/WorkbookNavigationMinimal.js +345 -0
- package/components/YfmWrapper.js +144 -0
- package/components/common.js +4451 -0
- package/highcharts.js +380 -0
- package/index.css +24402 -0
- package/index.js +24 -0
- package/main.js +5018 -0
- package/markdown.js +362 -0
- package/package.json +107 -0
- package/pages/AuthPage.js +604 -0
- package/pages/CollectionsNavigationPage.js +2579 -0
- package/pages/ConnectionsPage.js +11918 -0
- package/pages/DashAndWizardQLPages.js +67 -0
- package/pages/DashPage.js +16470 -0
- package/pages/DatasetPage.js +9986 -0
- package/pages/FallbackPage.js +8 -0
- package/pages/LandingPage.js +8 -0
- package/pages/OwnUserProfilePage.js +878 -0
- package/pages/PreviewPage.js +284 -0
- package/pages/QLPage.js +9628 -0
- package/pages/ServiceSettingsPage.js +180 -0
- package/pages/WizardPage.js +2774 -0
- package/perfomance.js +23 -0
- package/serviceSettings.js +117 -0
- package/types/i18n/constants.d.ts +4 -0
- package/types/i18n/index.d.ts +6 -0
- package/types/i18n/prepare-keysets/constants.d.ts +2 -0
- package/types/i18n/prepare-keysets/index.d.ts +1 -0
- package/types/i18n/prepare-keysets/prepare-keysets.d.ts +1 -0
- package/types/i18n/prepare-keysets/utils.d.ts +22 -0
- package/types/i18n/read-keysets.d.ts +5 -0
- package/types/i18n/types.d.ts +11 -0
- package/types/i18n/utils.d.ts +12 -0
- package/types/index.d.ts +2 -0
- package/types/server/app-env.d.ts +10 -0
- package/types/server/callbacks/index.d.ts +4 -0
- package/types/server/callbacks/page-error.d.ts +3 -0
- package/types/server/components/api-docs/constants.d.ts +1 -0
- package/types/server/components/api-docs/index.d.ts +1 -0
- package/types/server/components/api-docs/types.d.ts +11 -0
- package/types/server/components/app-layout/app-layout-settings.d.ts +3 -0
- package/types/server/components/app-layout/plugins/layout/index.d.ts +2 -0
- package/types/server/components/auth/callbacks/auth-layout.d.ts +3 -0
- package/types/server/components/auth/callbacks/index.d.ts +4 -0
- package/types/server/components/auth/middlewares/auth/api-auth.d.ts +2 -0
- package/types/server/components/auth/middlewares/auth/constants.d.ts +2 -0
- package/types/server/components/auth/middlewares/auth/index.d.ts +2 -0
- package/types/server/components/auth/middlewares/auth/ui-auth.d.ts +2 -0
- package/types/server/components/auth/routes.d.ts +4 -0
- package/types/server/components/auth/types/token.d.ts +10 -0
- package/types/server/components/auth/types/user.d.ts +14 -0
- package/types/server/components/axios.d.ts +3 -0
- package/types/server/components/cache-client.d.ts +30 -0
- package/types/server/components/chart-editor-developer-mode-access-check.d.ts +2 -0
- package/types/server/components/charts-engine/components/chart-generator.d.ts +70 -0
- package/types/server/components/charts-engine/components/chart-validator.d.ts +6 -0
- package/types/server/components/charts-engine/components/error-handler.d.ts +15 -0
- package/types/server/components/charts-engine/components/markdown.d.ts +6 -0
- package/types/server/components/charts-engine/components/processor/chart-api-context.d.ts +14 -0
- package/types/server/components/charts-engine/components/processor/comments-fetcher.d.ts +72 -0
- package/types/server/components/charts-engine/components/processor/console.d.ts +13 -0
- package/types/server/components/charts-engine/components/processor/control-builder.d.ts +10 -0
- package/types/server/components/charts-engine/components/processor/data-fetcher.d.ts +110 -0
- package/types/server/components/charts-engine/components/processor/hooks.d.ts +48 -0
- package/types/server/components/charts-engine/components/processor/index.d.ts +84 -0
- package/types/server/components/charts-engine/components/processor/paramsUtils.d.ts +17 -0
- package/types/server/components/charts-engine/components/processor/sources.d.ts +10 -0
- package/types/server/components/charts-engine/components/processor/stack-trace-prepaper.d.ts +3 -0
- package/types/server/components/charts-engine/components/processor/types.d.ts +169 -0
- package/types/server/components/charts-engine/components/processor/utils.d.ts +12 -0
- package/types/server/components/charts-engine/components/processor/worker-chart-builder.d.ts +26 -0
- package/types/server/components/charts-engine/components/request/axios.d.ts +54 -0
- package/types/server/components/charts-engine/components/request/index.d.ts +36 -0
- package/types/server/components/charts-engine/components/storage/base.d.ts +76 -0
- package/types/server/components/charts-engine/components/storage/index.d.ts +7 -0
- package/types/server/components/charts-engine/components/storage/types.d.ts +94 -0
- package/types/server/components/charts-engine/components/storage/united-storage/index.d.ts +3 -0
- package/types/server/components/charts-engine/components/storage/united-storage/provider.d.ts +115 -0
- package/types/server/components/charts-engine/components/utils.d.ts +26 -0
- package/types/server/components/charts-engine/components/wizard-worker/index.d.ts +1 -0
- package/types/server/components/charts-engine/components/wizard-worker/types.d.ts +72 -0
- package/types/server/components/charts-engine/components/wizard-worker/utils.d.ts +3 -0
- package/types/server/components/charts-engine/constants/index.d.ts +53 -0
- package/types/server/components/charts-engine/controllers/charts.d.ts +49 -0
- package/types/server/components/charts-engine/controllers/config.d.ts +3 -0
- package/types/server/components/charts-engine/controllers/csvConverter.d.ts +13 -0
- package/types/server/components/charts-engine/controllers/embedded-entry.d.ts +2 -0
- package/types/server/components/charts-engine/controllers/embeds.d.ts +3 -0
- package/types/server/components/charts-engine/controllers/export.d.ts +2 -0
- package/types/server/components/charts-engine/controllers/markdown.d.ts +5 -0
- package/types/server/components/charts-engine/controllers/run.d.ts +10 -0
- package/types/server/components/charts-engine/controllers/utils.d.ts +29 -0
- package/types/server/components/charts-engine/index.d.ts +49 -0
- package/types/server/components/charts-engine/runners/common.d.ts +59 -0
- package/types/server/components/charts-engine/runners/control.d.ts +2 -0
- package/types/server/components/charts-engine/runners/index.d.ts +25 -0
- package/types/server/components/charts-engine/runners/utils.d.ts +1 -0
- package/types/server/components/charts-engine/runners/wizard.d.ts +2 -0
- package/types/server/components/charts-engine/runners/worker.d.ts +8 -0
- package/types/server/components/charts-engine/types.d.ts +169 -0
- package/types/server/components/features/features-list/AsideHeaderEnabled.d.ts +3 -0
- package/types/server/components/features/features-list/AuthUpdateWithTimeout.d.ts +3 -0
- package/types/server/components/features/features-list/ChartEditorDeveloperModeCheck.d.ts +3 -0
- package/types/server/components/features/features-list/ChartkitAlerts.d.ts +3 -0
- package/types/server/components/features/features-list/CollectionsAccessEnabled.d.ts +3 -0
- package/types/server/components/features/features-list/CollectionsEnabled.d.ts +3 -0
- package/types/server/components/features/features-list/Comments.d.ts +3 -0
- package/types/server/components/features/features-list/ConnectionBasedControl.d.ts +3 -0
- package/types/server/components/features/features-list/CopyEntriesToWorkbook.d.ts +3 -0
- package/types/server/components/features/features-list/DashBoardSupportDescription.d.ts +3 -0
- package/types/server/components/features/features-list/DashBoardWidgetParamsStrictValidation.d.ts +3 -0
- package/types/server/components/features/features-list/DashServerMigrationEnable.d.ts +3 -0
- package/types/server/components/features/features-list/DashServerValidationEnabled.d.ts +3 -0
- package/types/server/components/features/features-list/DatasetsRLS.d.ts +3 -0
- package/types/server/components/features/features-list/DisableFnAndHtml.d.ts +3 -0
- package/types/server/components/features/features-list/EnableAutocreateDataset.d.ts +3 -0
- package/types/server/components/features/features-list/EnableChartEditorDocs.d.ts +3 -0
- package/types/server/components/features/features-list/EnableCommonChartDashSettings.d.ts +3 -0
- package/types/server/components/features/features-list/EnableCustomDashMargins.d.ts +3 -0
- package/types/server/components/features/features-list/EnableCustomMonitoring.d.ts +3 -0
- package/types/server/components/features/features-list/EnableDLRebranding.d.ts +3 -0
- package/types/server/components/features/features-list/EnableDashAutoFocus.d.ts +3 -0
- package/types/server/components/features/features-list/EnableDashChartStat.d.ts +3 -0
- package/types/server/components/features/features-list/EnableDashColorPickersByTheme.d.ts +3 -0
- package/types/server/components/features/features-list/EnableDatasetSourcesPagination.d.ts +3 -0
- package/types/server/components/features/features-list/EnableEmbedsInDialogShare.d.ts +3 -0
- package/types/server/components/features/features-list/EnableEntryMenuItemShare.d.ts +3 -0
- package/types/server/components/features/features-list/EnableExportSettings.d.ts +3 -0
- package/types/server/components/features/features-list/EnableExportWorkbookFile.d.ts +3 -0
- package/types/server/components/features/features-list/EnableFileUploadingByPresignedUrl.d.ts +3 -0
- package/types/server/components/features/features-list/EnableFooter.d.ts +3 -0
- package/types/server/components/features/features-list/EnableGlobalSelectors.d.ts +3 -0
- package/types/server/components/features/features-list/EnableMobileFixedHeader.d.ts +3 -0
- package/types/server/components/features/features-list/EnableMobileHeader.d.ts +3 -0
- package/types/server/components/features/features-list/EnableNewDashSettings.d.ts +3 -0
- package/types/server/components/features/features-list/EnableNewServiceSettings.d.ts +3 -0
- package/types/server/components/features/features-list/EnablePublishEntry.d.ts +3 -0
- package/types/server/components/features/features-list/EnableRLSV2.d.ts +3 -0
- package/types/server/components/features/features-list/EnableSaveAsEditorScript.d.ts +3 -0
- package/types/server/components/features/features-list/EnableSecureParamsV2.d.ts +3 -0
- package/types/server/components/features/features-list/EnableServerlessEditor.d.ts +3 -0
- package/types/server/components/features/features-list/EnableSharedEntries.d.ts +3 -0
- package/types/server/components/features/features-list/EnableUpdatingDsSettingsByAction.d.ts +3 -0
- package/types/server/components/features/features-list/EntryMenuItemCopy.d.ts +3 -0
- package/types/server/components/features/features-list/EntryMenuItemMove.d.ts +3 -0
- package/types/server/components/features/features-list/ExternalSelectors.d.ts +3 -0
- package/types/server/components/features/features-list/FetchDocumentation.d.ts +3 -0
- package/types/server/components/features/features-list/FieldEditorDocSection.d.ts +3 -0
- package/types/server/components/features/features-list/GravityChartsForBarYAndScatter.d.ts +3 -0
- package/types/server/components/features/features-list/GravityChartsForLineAreaAndBarX.d.ts +3 -0
- package/types/server/components/features/features-list/GravityChartsForPieAndTreemap.d.ts +3 -0
- package/types/server/components/features/features-list/HideMultitenant.d.ts +3 -0
- package/types/server/components/features/features-list/HolidaysOnChart.d.ts +3 -0
- package/types/server/components/features/features-list/MassRemoveCollectionsWorkbooks.d.ts +3 -0
- package/types/server/components/features/features-list/MenuItemsFlatView.d.ts +3 -0
- package/types/server/components/features/features-list/MultiDatasets.d.ts +3 -0
- package/types/server/components/features/features-list/MultipleColorsInVisualization.d.ts +3 -0
- package/types/server/components/features/features-list/NewTableWidgetForCE.d.ts +3 -0
- package/types/server/components/features/features-list/NoJsonFn.d.ts +3 -0
- package/types/server/components/features/features-list/QLMonitoring.d.ts +3 -0
- package/types/server/components/features/features-list/QLPrometheus.d.ts +3 -0
- package/types/server/components/features/features-list/QlAutoExecuteMonitoringChart.d.ts +3 -0
- package/types/server/components/features/features-list/ReadOnlyMode.d.ts +3 -0
- package/types/server/components/features/features-list/RevisionsListNoLimit.d.ts +3 -0
- package/types/server/components/features/features-list/ShouldCheckEditorAccess.d.ts +3 -0
- package/types/server/components/features/features-list/ShowChartsEngineDebugInfo.d.ts +3 -0
- package/types/server/components/features/features-list/ShowCreateEntryWithMenu.d.ts +3 -0
- package/types/server/components/features/features-list/ShowInspectorDetails.d.ts +3 -0
- package/types/server/components/features/features-list/UseAxiosRequest.d.ts +3 -0
- package/types/server/components/features/features-list/UseChartsEngineLogin.d.ts +3 -0
- package/types/server/components/features/features-list/UseChartsEngineResponseConfig.d.ts +3 -0
- package/types/server/components/features/features-list/UseComponentHeader.d.ts +3 -0
- package/types/server/components/features/features-list/UseConfigurableChartkit.d.ts +3 -0
- package/types/server/components/features/features-list/UsePublicDistincts.d.ts +3 -0
- package/types/server/components/features/features-list/UseYqlFolderKey.d.ts +3 -0
- package/types/server/components/features/features-list/XlsxChartExportEnabled.d.ts +3 -0
- package/types/server/components/features/features-list/XlsxFilesEnabled.d.ts +3 -0
- package/types/server/components/features/features-list/index.d.ts +3 -0
- package/types/server/components/features/index.d.ts +2 -0
- package/types/server/components/features/utils.d.ts +15 -0
- package/types/server/components/gateway-auth-helpers/bi-auth-helpers.d.ts +9 -0
- package/types/server/components/gateway-auth-helpers/index.d.ts +2 -0
- package/types/server/components/gateway-auth-helpers/us-auth-helpers.d.ts +9 -0
- package/types/server/components/index.d.ts +4 -0
- package/types/server/components/layout/index.d.ts +2 -0
- package/types/server/components/layout/landing-layout.d.ts +3 -0
- package/types/server/components/layout/opensource-layout-config.d.ts +2 -0
- package/types/server/components/layout/utils.d.ts +9 -0
- package/types/server/components/metrika-data-formatter.d.ts +2 -0
- package/types/server/components/public-api/config/index.d.ts +1 -0
- package/types/server/components/public-api/config/v1.d.ts +330 -0
- package/types/server/components/public-api/constants/common.d.ts +21 -0
- package/types/server/components/public-api/constants/index.d.ts +1 -0
- package/types/server/components/public-api/index.d.ts +2 -0
- package/types/server/components/public-api/types.d.ts +39 -0
- package/types/server/components/public-api/utils/index.d.ts +3 -0
- package/types/server/components/public-api/utils/init-public-api-swagger.d.ts +2 -0
- package/types/server/components/public-api/utils/prepare-public-api-base-config.d.ts +4 -0
- package/types/server/components/public-api/utils/register-action-to-open-api.d.ts +9 -0
- package/types/server/components/resolve-entry-by-link.d.ts +9 -0
- package/types/server/components/sdk/dash.d.ts +32 -0
- package/types/server/components/sdk/index.d.ts +2 -0
- package/types/server/components/sdk/us.d.ts +22 -0
- package/types/server/components/workbook-transfer/charts.d.ts +56 -0
- package/types/server/components/workbook-transfer/create-transfer-notifications.d.ts +21 -0
- package/types/server/components/workbook-transfer/dash.d.ts +35 -0
- package/types/server/components/zitadel/init-zitadel.d.ts +6 -0
- package/types/server/components/zitadel/routes.d.ts +8 -0
- package/types/server/components/zitadel/utils.d.ts +23 -0
- package/types/server/configs/common.d.ts +24 -0
- package/types/server/configs/opensource/common.d.ts +115 -0
- package/types/server/configs/opensource/development.d.ts +4 -0
- package/types/server/configs/secrets.d.ts +3 -0
- package/types/server/configs/shared/control-dash-chart-template.d.ts +8 -0
- package/types/server/configs/shared/datalens-chart-template.d.ts +9 -0
- package/types/server/configs/shared/ql-chart-template.d.ts +11 -0
- package/types/server/constants/axios.d.ts +6 -0
- package/types/server/constants/index.d.ts +23 -0
- package/types/server/constants/public-api.d.ts +1 -0
- package/types/server/controllers/api.d.ts +4 -0
- package/types/server/controllers/dl-main.d.ts +2 -0
- package/types/server/controllers/index.d.ts +6 -0
- package/types/server/controllers/navigate.d.ts +2 -0
- package/types/server/controllers/navigation.d.ts +2 -0
- package/types/server/controllers/ping.d.ts +2 -0
- package/types/server/controllers/public-api/constants.d.ts +10 -0
- package/types/server/controllers/public-api/index.d.ts +3 -0
- package/types/server/controllers/public-api/utils.d.ts +14 -0
- package/types/server/controllers/stats.d.ts +2 -0
- package/types/server/controllers/utils/handle-entry-redirect.d.ts +3 -0
- package/types/server/controllers/workbook-transfer.d.ts +34 -0
- package/types/server/controllers/xlsx-converter.d.ts +9 -0
- package/types/server/controllers/zitadel.d.ts +2 -0
- package/types/server/expresskit.d.ts +7 -0
- package/types/server/index.d.ts +0 -0
- package/types/server/lib/validation/index.d.ts +3 -0
- package/types/server/lib/validation/types.d.ts +12 -0
- package/types/server/local-dev.d.ts +1 -0
- package/types/server/middlewares/app-layout.d.ts +9 -0
- package/types/server/middlewares/auth-zitadel.d.ts +2 -0
- package/types/server/middlewares/before-auth-defaults.d.ts +2 -0
- package/types/server/middlewares/connector-icons.d.ts +10 -0
- package/types/server/middlewares/ctx.d.ts +2 -0
- package/types/server/middlewares/index.d.ts +9 -0
- package/types/server/middlewares/patch-logger.d.ts +2 -0
- package/types/server/middlewares/scr-requests.d.ts +2 -0
- package/types/server/middlewares/server-feature-with-bounded-context.d.ts +2 -0
- package/types/server/middlewares/tenant-settings.d.ts +2 -0
- package/types/server/middlewares/x-dl-context.d.ts +6 -0
- package/types/server/modes/charts/init-charts-engine.d.ts +18 -0
- package/types/server/modes/charts/plugins/constants/middleware-urls.d.ts +3 -0
- package/types/server/modes/charts/plugins/constants/misc.d.ts +10 -0
- package/types/server/modes/charts/plugins/control/constants/misc.d.ts +1 -0
- package/types/server/modes/charts/plugins/control/controls/index.d.ts +4 -0
- package/types/server/modes/charts/plugins/control/helpers/misc.d.ts +13 -0
- package/types/server/modes/charts/plugins/control/index.d.ts +19 -0
- package/types/server/modes/charts/plugins/control/js/helpers/dataset/process-dataset-content.d.ts +8 -0
- package/types/server/modes/charts/plugins/control/js/helpers/dataset/process-fields.d.ts +3 -0
- package/types/server/modes/charts/plugins/control/js/helpers/process-content.d.ts +11 -0
- package/types/server/modes/charts/plugins/control/js/helpers/typed-query/process-typed-query-content.d.ts +3 -0
- package/types/server/modes/charts/plugins/control/js/helpers/typed-query/process-typed-query-parameters.d.ts +6 -0
- package/types/server/modes/charts/plugins/control/js/index.d.ts +9 -0
- package/types/server/modes/charts/plugins/control/js/types.d.ts +10 -0
- package/types/server/modes/charts/plugins/control/types.d.ts +50 -0
- package/types/server/modes/charts/plugins/control/url/constants.d.ts +9 -0
- package/types/server/modes/charts/plugins/control/url/distincts/build-distincts-body.d.ts +10 -0
- package/types/server/modes/charts/plugins/control/url/distincts/index.d.ts +2 -0
- package/types/server/modes/charts/plugins/control/url/fields/index.d.ts +4 -0
- package/types/server/modes/charts/plugins/control/url/index.d.ts +2 -0
- package/types/server/modes/charts/plugins/control/url/typed-query/index.d.ts +2 -0
- package/types/server/modes/charts/plugins/control/url/types.d.ts +27 -0
- package/types/server/modes/charts/plugins/dash-api.d.ts +14 -0
- package/types/server/modes/charts/plugins/data-api-json-schema.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/chart-editor-module.d.ts +136 -0
- package/types/server/modes/charts/plugins/datalens/config/constants.d.ts +5 -0
- package/types/server/modes/charts/plugins/datalens/config/index.d.ts +58 -0
- package/types/server/modes/charts/plugins/datalens/config/types.d.ts +57 -0
- package/types/server/modes/charts/plugins/datalens/gravity-charts/utils/dataLabels.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/gravity-charts/utils/format.d.ts +5 -0
- package/types/server/modes/charts/plugins/datalens/gravity-charts/utils/index.d.ts +14 -0
- package/types/server/modes/charts/plugins/datalens/gravity-charts/utils/range-slider.d.ts +13 -0
- package/types/server/modes/charts/plugins/datalens/highcharts.d.ts +12 -0
- package/types/server/modes/charts/plugins/datalens/js/constants/errors.d.ts +6 -0
- package/types/server/modes/charts/plugins/datalens/js/helpers/colors/index.d.ts +10 -0
- package/types/server/modes/charts/plugins/datalens/js/helpers/errors/oversize-error/index.d.ts +5 -0
- package/types/server/modes/charts/plugins/datalens/js/helpers/errors/oversize-error/types.d.ts +14 -0
- package/types/server/modes/charts/plugins/datalens/js/helpers/errors/oversize-error/utils.d.ts +8 -0
- package/types/server/modes/charts/plugins/datalens/js/helpers/layer-chart/index.d.ts +19 -0
- package/types/server/modes/charts/plugins/datalens/js/helpers/layer-chart/types.d.ts +7 -0
- package/types/server/modes/charts/plugins/datalens/js/helpers/misc/prepare-single-result.d.ts +20 -0
- package/types/server/modes/charts/plugins/datalens/js/helpers/notifications/index.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/js/helpers/totals/index.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/js/helpers/totals/types.d.ts +13 -0
- package/types/server/modes/charts/plugins/datalens/js/js-v1.5-private.d.ts +12 -0
- package/types/server/modes/charts/plugins/datalens/js/js.d.ts +11 -0
- package/types/server/modes/charts/plugins/datalens/preparers/area/index.d.ts +3 -0
- package/types/server/modes/charts/plugins/datalens/preparers/backend-pivot-table/constants/misc.d.ts +1 -0
- package/types/server/modes/charts/plugins/datalens/preparers/backend-pivot-table/helpers/backgroundColor.d.ts +41 -0
- package/types/server/modes/charts/plugins/datalens/preparers/backend-pivot-table/helpers/color.d.ts +24 -0
- package/types/server/modes/charts/plugins/datalens/preparers/backend-pivot-table/helpers/misc.d.ts +29 -0
- package/types/server/modes/charts/plugins/datalens/preparers/backend-pivot-table/helpers/sort.d.ts +10 -0
- package/types/server/modes/charts/plugins/datalens/preparers/backend-pivot-table/helpers/totals.d.ts +10 -0
- package/types/server/modes/charts/plugins/datalens/preparers/backend-pivot-table/helpers/types.d.ts +6 -0
- package/types/server/modes/charts/plugins/datalens/preparers/backend-pivot-table/index.d.ts +9 -0
- package/types/server/modes/charts/plugins/datalens/preparers/backend-pivot-table/table-head-generator.d.ts +53 -0
- package/types/server/modes/charts/plugins/datalens/preparers/backend-pivot-table/table-rows-generator.d.ts +19 -0
- package/types/server/modes/charts/plugins/datalens/preparers/backend-pivot-table/types.d.ts +125 -0
- package/types/server/modes/charts/plugins/datalens/preparers/bar-x/gravity-charts.d.ts +3 -0
- package/types/server/modes/charts/plugins/datalens/preparers/bar-x/highcharts.d.ts +19 -0
- package/types/server/modes/charts/plugins/datalens/preparers/bar-x/index.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/preparers/bar-x/prepare-bar-x.d.ts +19 -0
- package/types/server/modes/charts/plugins/datalens/preparers/bar-y/gravity-charts.d.ts +3 -0
- package/types/server/modes/charts/plugins/datalens/preparers/bar-y/highcharts.d.ts +22 -0
- package/types/server/modes/charts/plugins/datalens/preparers/bar-y/index.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/preparers/bar-y/prepare-bar-y-data.d.ts +22 -0
- package/types/server/modes/charts/plugins/datalens/preparers/flat-table/helpers/background-settings/get-background-colors-map-by-continuous-column.d.ts +9 -0
- package/types/server/modes/charts/plugins/datalens/preparers/flat-table/helpers/background-settings/get-flat-table-background-styles.d.ts +11 -0
- package/types/server/modes/charts/plugins/datalens/preparers/flat-table/helpers/background-settings/index.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/preparers/flat-table/helpers/background-settings/types.d.ts +39 -0
- package/types/server/modes/charts/plugins/datalens/preparers/flat-table/helpers/footer/index.d.ts +11 -0
- package/types/server/modes/charts/plugins/datalens/preparers/flat-table/helpers/footer/types.d.ts +29 -0
- package/types/server/modes/charts/plugins/datalens/preparers/flat-table/helpers/misc.d.ts +9 -0
- package/types/server/modes/charts/plugins/datalens/preparers/flat-table/index.d.ts +43 -0
- package/types/server/modes/charts/plugins/datalens/preparers/geopoint/constants.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/preparers/geopoint/index.d.ts +37 -0
- package/types/server/modes/charts/plugins/datalens/preparers/geopoint/types.d.ts +41 -0
- package/types/server/modes/charts/plugins/datalens/preparers/geopoint-with-cluster.d.ts +35 -0
- package/types/server/modes/charts/plugins/datalens/preparers/geopolygon.d.ts +33 -0
- package/types/server/modes/charts/plugins/datalens/preparers/heatmap.d.ts +22 -0
- package/types/server/modes/charts/plugins/datalens/preparers/helpers/action-params.d.ts +3 -0
- package/types/server/modes/charts/plugins/datalens/preparers/helpers/axis/addAxisFormatter.d.ts +9 -0
- package/types/server/modes/charts/plugins/datalens/preparers/helpers/axis/addAxisFormatting.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/preparers/helpers/axis/get-axis-formatting.d.ts +7 -0
- package/types/server/modes/charts/plugins/datalens/preparers/helpers/axis/getAxisType.d.ts +9 -0
- package/types/server/modes/charts/plugins/datalens/preparers/helpers/axis/index.d.ts +5 -0
- package/types/server/modes/charts/plugins/datalens/preparers/helpers/axis/isAxisLabelDateFormat.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/preparers/helpers/backgroundSettings/misc.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/preparers/helpers/barsSettings/index.d.ts +16 -0
- package/types/server/modes/charts/plugins/datalens/preparers/helpers/barsSettings/types.d.ts +6 -0
- package/types/server/modes/charts/plugins/datalens/preparers/helpers/colors.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/preparers/helpers/columnSettings.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/preparers/helpers/get-formatted-value.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/preparers/helpers/highcharts.d.ts +4 -0
- package/types/server/modes/charts/plugins/datalens/preparers/helpers/layers.d.ts +3 -0
- package/types/server/modes/charts/plugins/datalens/preparers/helpers/legend.d.ts +12 -0
- package/types/server/modes/charts/plugins/datalens/preparers/helpers/segments.d.ts +3 -0
- package/types/server/modes/charts/plugins/datalens/preparers/helpers/visualizations.d.ts +4 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/gravity-charts.d.ts +3 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/axis/getLayerPlaceholderWithItems.d.ts +3 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/axis/types.d.ts +3 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/color-helpers/colorizeByGradient.d.ts +3 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/color-helpers/types.d.ts +6 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/getSortedCategories.d.ts +3 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/getSortedLineKeys.d.ts +9 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/getXAxisValue.d.ts +3 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/index.d.ts +11 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/line-mappers/getColoredLineLegendTitle.d.ts +9 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/line-mappers/helpers.d.ts +7 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/line-mappers/mapDataToDimensionColoredLines.d.ts +6 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/line-mappers/mapDataToLines.d.ts +6 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/line-mappers/mapDataToMeasureColoredLines.d.ts +7 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/line-mappers/prepareLines.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/line-mappers/types.d.ts +142 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/segments/getSegmentName.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/segments/getSegmentsIndexInOrder.d.ts +3 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/segments/getSegmentsList.d.ts +3 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/segments/getSegmentsMap.d.ts +3 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/segments/getSegmentsYAxis.d.ts +15 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/segments/types.d.ts +20 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/types.d.ts +67 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/helpers/utils.d.ts +5 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/highcharts.d.ts +19 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/index.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/prepare-line-data.d.ts +19 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line/types.d.ts +36 -0
- package/types/server/modes/charts/plugins/datalens/preparers/line-time/index.d.ts +4 -0
- package/types/server/modes/charts/plugins/datalens/preparers/metric/index.d.ts +56 -0
- package/types/server/modes/charts/plugins/datalens/preparers/metric/utils.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/preparers/metric/variants/basic.d.ts +25 -0
- package/types/server/modes/charts/plugins/datalens/preparers/metric/variants/markup.d.ts +44 -0
- package/types/server/modes/charts/plugins/datalens/preparers/old-pivot-table/old-pivot-table.d.ts +14 -0
- package/types/server/modes/charts/plugins/datalens/preparers/pie/gravity-charts.d.ts +35 -0
- package/types/server/modes/charts/plugins/datalens/preparers/pie/highcharts.d.ts +6 -0
- package/types/server/modes/charts/plugins/datalens/preparers/pie/index.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/preparers/pie/prepare-pie-data.d.ts +35 -0
- package/types/server/modes/charts/plugins/datalens/preparers/pie/utils.d.ts +4 -0
- package/types/server/modes/charts/plugins/datalens/preparers/polyline.d.ts +36 -0
- package/types/server/modes/charts/plugins/datalens/preparers/scatter/gravity-charts.d.ts +4 -0
- package/types/server/modes/charts/plugins/datalens/preparers/scatter/helpers/shape.d.ts +7 -0
- package/types/server/modes/charts/plugins/datalens/preparers/scatter/helpers/tooltip.d.ts +14 -0
- package/types/server/modes/charts/plugins/datalens/preparers/scatter/highcharts.d.ts +12 -0
- package/types/server/modes/charts/plugins/datalens/preparers/scatter/index.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/preparers/scatter/prepare-scatter.d.ts +28 -0
- package/types/server/modes/charts/plugins/datalens/preparers/scatter/types.d.ts +18 -0
- package/types/server/modes/charts/plugins/datalens/preparers/treemap/gravity-charts.d.ts +3 -0
- package/types/server/modes/charts/plugins/datalens/preparers/treemap/highcharts.d.ts +40 -0
- package/types/server/modes/charts/plugins/datalens/preparers/treemap/index.d.ts +2 -0
- package/types/server/modes/charts/plugins/datalens/preparers/types.d.ts +74 -0
- package/types/server/modes/charts/plugins/datalens/preparers/utils.d.ts +11 -0
- package/types/server/modes/charts/plugins/datalens/private-module.d.ts +85 -0
- package/types/server/modes/charts/plugins/datalens/types.d.ts +72 -0
- package/types/server/modes/charts/plugins/datalens/url/build-request-body/constants.d.ts +1 -0
- package/types/server/modes/charts/plugins/datalens/url/build-request-body/default-request.d.ts +19 -0
- package/types/server/modes/charts/plugins/datalens/url/build-request-body/index.d.ts +40 -0
- package/types/server/modes/charts/plugins/datalens/url/build-request-body/pivot-request/helpers/index.d.ts +9 -0
- package/types/server/modes/charts/plugins/datalens/url/build-request-body/pivot-request/helpers/totals.d.ts +7 -0
- package/types/server/modes/charts/plugins/datalens/url/build-request-body/pivot-request/helpers/types.d.ts +42 -0
- package/types/server/modes/charts/plugins/datalens/url/build-request-body/pivot-request/index.d.ts +8 -0
- package/types/server/modes/charts/plugins/datalens/url/build-sources.d.ts +5 -0
- package/types/server/modes/charts/plugins/datalens/url/helpers/fields.d.ts +9 -0
- package/types/server/modes/charts/plugins/datalens/url/helpers/filters.d.ts +7 -0
- package/types/server/modes/charts/plugins/datalens/url/helpers/index.d.ts +3 -0
- package/types/server/modes/charts/plugins/datalens/url/helpers/misc.d.ts +4 -0
- package/types/server/modes/charts/plugins/datalens/url/helpers/parameters.d.ts +16 -0
- package/types/server/modes/charts/plugins/datalens/url/helpers/table-settings.d.ts +10 -0
- package/types/server/modes/charts/plugins/datalens/url/types.d.ts +37 -0
- package/types/server/modes/charts/plugins/datalens/utils/axis-helpers.d.ts +10 -0
- package/types/server/modes/charts/plugins/datalens/utils/color-helpers.d.ts +93 -0
- package/types/server/modes/charts/plugins/datalens/utils/config-helpers.d.ts +9 -0
- package/types/server/modes/charts/plugins/datalens/utils/constants.d.ts +37 -0
- package/types/server/modes/charts/plugins/datalens/utils/export-helpers.d.ts +7 -0
- package/types/server/modes/charts/plugins/datalens/utils/geo-helpers.d.ts +57 -0
- package/types/server/modes/charts/plugins/datalens/utils/get-gradient-stops.d.ts +12 -0
- package/types/server/modes/charts/plugins/datalens/utils/hierarchy-helpers.d.ts +10 -0
- package/types/server/modes/charts/plugins/datalens/utils/markup-helpers.d.ts +26 -0
- package/types/server/modes/charts/plugins/datalens/utils/misc-helpers.d.ts +88 -0
- package/types/server/modes/charts/plugins/datalens/utils/pivot-table/totals.d.ts +13 -0
- package/types/server/modes/charts/plugins/datalens/utils/shape-helpers.d.ts +9 -0
- package/types/server/modes/charts/plugins/dataset/v2.d.ts +71 -0
- package/types/server/modes/charts/plugins/helpers/color-palettes.d.ts +30 -0
- package/types/server/modes/charts/plugins/helpers/misc.d.ts +11 -0
- package/types/server/modes/charts/plugins/logins-blacklist.d.ts +8 -0
- package/types/server/modes/charts/plugins/ql/index.d.ts +2 -0
- package/types/server/modes/charts/plugins/ql/module/chart-editor-module.d.ts +69 -0
- package/types/server/modes/charts/plugins/ql/module/config/build-chart-config.d.ts +16 -0
- package/types/server/modes/charts/plugins/ql/module/config/index.d.ts +45 -0
- package/types/server/modes/charts/plugins/ql/module/highcharts.d.ts +8 -0
- package/types/server/modes/charts/plugins/ql/module/js/build-graph.d.ts +14 -0
- package/types/server/modes/charts/plugins/ql/module/library-config/build-library-config.d.ts +14 -0
- package/types/server/modes/charts/plugins/ql/module/library-config/index.d.ts +12 -0
- package/types/server/modes/charts/plugins/ql/module/private-module.d.ts +13 -0
- package/types/server/modes/charts/plugins/ql/module/url/build-sources.d.ts +4 -0
- package/types/server/modes/charts/plugins/ql/module/url/index.d.ts +8 -0
- package/types/server/modes/charts/plugins/ql/module/url/types.d.ts +9 -0
- package/types/server/modes/charts/plugins/ql/preparers/line-time.d.ts +10 -0
- package/types/server/modes/charts/plugins/ql/preparers/line.d.ts +11 -0
- package/types/server/modes/charts/plugins/ql/preparers/metric.d.ts +10 -0
- package/types/server/modes/charts/plugins/ql/preparers/pie.d.ts +11 -0
- package/types/server/modes/charts/plugins/ql/preparers/preview-table.d.ts +9 -0
- package/types/server/modes/charts/plugins/ql/preparers/table.d.ts +10 -0
- package/types/server/modes/charts/plugins/ql/ql-chart-runner.d.ts +2 -0
- package/types/server/modes/charts/plugins/ql/types.d.ts +4 -0
- package/types/server/modes/charts/plugins/ql/utils/autofill-helpers.d.ts +38 -0
- package/types/server/modes/charts/plugins/ql/utils/colors.d.ts +19 -0
- package/types/server/modes/charts/plugins/ql/utils/connection.d.ts +5 -0
- package/types/server/modes/charts/plugins/ql/utils/constants.d.ts +8 -0
- package/types/server/modes/charts/plugins/ql/utils/identify-params.d.ts +6 -0
- package/types/server/modes/charts/plugins/ql/utils/migrate-helpers.d.ts +30 -0
- package/types/server/modes/charts/plugins/ql/utils/misc-helpers.d.ts +139 -0
- package/types/server/modes/charts/plugins/ql/utils/value-helpers.d.ts +5 -0
- package/types/server/modes/charts/plugins/ql/utils/visualization-utils.d.ts +21 -0
- package/types/server/modes/charts/plugins/ql/worker.d.ts +1 -0
- package/types/server/modes/charts/plugins/ql/yagr.d.ts +7 -0
- package/types/server/modes/charts/plugins/request-with-dataset/index.d.ts +26 -0
- package/types/server/modes/charts/plugins/request-with-dataset/middlewareAdapters/charts-with-dataset.d.ts +15 -0
- package/types/server/modes/charts/plugins/request-with-dataset/middlewareAdapters/controls-with-dataset.d.ts +13 -0
- package/types/server/modes/charts/plugins/request-with-dataset/request-dataset.d.ts +24 -0
- package/types/server/modes/charts/plugins/runner-key-adapter.d.ts +8 -0
- package/types/server/modes/charts/plugins/types.d.ts +62 -0
- package/types/server/modes/charts/telemetry.d.ts +3 -0
- package/types/server/modes/opensource/app.d.ts +3 -0
- package/types/server/modes/opensource/middlewares/index.d.ts +1 -0
- package/types/server/modes/opensource/middlewares/subrequest-headers.d.ts +2 -0
- package/types/server/modes/opensource/routes.d.ts +12 -0
- package/types/server/nodekit.d.ts +3 -0
- package/types/server/registry/index.d.ts +114 -0
- package/types/server/registry/units/common/auth-functions-map.d.ts +10 -0
- package/types/server/registry/units/common/functions-map.d.ts +16 -0
- package/types/server/registry/units/common/index.d.ts +70 -0
- package/types/server/registry/units/common/register.d.ts +1 -0
- package/types/server/registry/utils/register-app-plugins.d.ts +1 -0
- package/types/server/types/app-layout.d.ts +18 -0
- package/types/server/types/connections.d.ts +2 -0
- package/types/server/types/controllers.d.ts +16 -0
- package/types/server/types/gateway.d.ts +7 -0
- package/types/server/types/xlsxConverter.d.ts +9 -0
- package/types/server/utils/axios.d.ts +3 -0
- package/types/server/utils/env-utils.d.ts +1 -0
- package/types/server/utils/gateway.d.ts +9 -0
- package/types/server/utils/index.d.ts +43 -0
- package/types/server/utils/language.d.ts +18 -0
- package/types/server/utils/redis.d.ts +20 -0
- package/types/server/utils/routes.d.ts +2 -0
- package/types/server/utils/schema-validate.d.ts +1 -0
- package/types/shared/components/auth/constants/cookie.d.ts +2 -0
- package/types/shared/components/auth/constants/role.d.ts +7 -0
- package/types/shared/components/auth/constants/token.d.ts +1 -0
- package/types/shared/components/auth/constants/url.d.ts +1 -0
- package/types/shared/components/auth/types/layout.d.ts +6 -0
- package/types/shared/components/public-api/utils/index.d.ts +1 -0
- package/types/shared/constants/api-v2.d.ts +4 -0
- package/types/shared/constants/chartkit-handlers.d.ts +13 -0
- package/types/shared/constants/charts.d.ts +6 -0
- package/types/shared/constants/collections.d.ts +5 -0
- package/types/shared/constants/colors/common/classic-20.d.ts +3 -0
- package/types/shared/constants/colors/common/datalens.d.ts +3 -0
- package/types/shared/constants/colors/common/default-20.d.ts +3 -0
- package/types/shared/constants/colors/common/emerald-20.d.ts +3 -0
- package/types/shared/constants/colors/common/golden-20.d.ts +3 -0
- package/types/shared/constants/colors/common/neutral-20.d.ts +3 -0
- package/types/shared/constants/colors/common/oceanic-20.d.ts +3 -0
- package/types/shared/constants/colors/common/traffic-light-9.d.ts +3 -0
- package/types/shared/constants/colors/index.d.ts +24 -0
- package/types/shared/constants/colors/tableau/blue-red-12.d.ts +3 -0
- package/types/shared/constants/colors/tableau/blue-red-6.d.ts +3 -0
- package/types/shared/constants/colors/tableau/color-blind-10.d.ts +3 -0
- package/types/shared/constants/colors/tableau/gray-5.d.ts +3 -0
- package/types/shared/constants/colors/tableau/green-orange-12.d.ts +3 -0
- package/types/shared/constants/colors/tableau/green-orange-6.d.ts +3 -0
- package/types/shared/constants/colors/tableau/purpure-gray-12.d.ts +3 -0
- package/types/shared/constants/colors/tableau/purpure-gray-6.d.ts +3 -0
- package/types/shared/constants/colors/tableau/tableau-10-light.d.ts +3 -0
- package/types/shared/constants/colors/tableau/tableau-10-medium.d.ts +3 -0
- package/types/shared/constants/colors/tableau/tableau-10.d.ts +3 -0
- package/types/shared/constants/colors/tableau/tableau-20.d.ts +3 -0
- package/types/shared/constants/colors/tableau/traffic-light.d.ts +3 -0
- package/types/shared/constants/colors/types.d.ts +71 -0
- package/types/shared/constants/common.d.ts +107 -0
- package/types/shared/constants/connections.d.ts +94 -0
- package/types/shared/constants/cookie.d.ts +2 -0
- package/types/shared/constants/dash.d.ts +32 -0
- package/types/shared/constants/datasets.d.ts +4 -0
- package/types/shared/constants/datepicker/relative-datepicker.d.ts +11 -0
- package/types/shared/constants/entry.d.ts +65 -0
- package/types/shared/constants/error/index.d.ts +10 -0
- package/types/shared/constants/error-codes.d.ts +61 -0
- package/types/shared/constants/exports.d.ts +15 -0
- package/types/shared/constants/gradients/default.d.ts +14 -0
- package/types/shared/constants/gradients/index.d.ts +132 -0
- package/types/shared/constants/gradients/three-point/blue-gray-red.d.ts +5 -0
- package/types/shared/constants/gradients/three-point/blue-yellow-red.d.ts +5 -0
- package/types/shared/constants/gradients/three-point/orange-blue-green.d.ts +5 -0
- package/types/shared/constants/gradients/three-point/orange-gray-blue.d.ts +5 -0
- package/types/shared/constants/gradients/three-point/orange-violet-blue.d.ts +5 -0
- package/types/shared/constants/gradients/three-point/pink-gray-green.d.ts +5 -0
- package/types/shared/constants/gradients/three-point/red-orange-green.d.ts +5 -0
- package/types/shared/constants/gradients/three-point/traffic-light.d.ts +5 -0
- package/types/shared/constants/gradients/three-point/violet-blue-green.d.ts +5 -0
- package/types/shared/constants/gradients/three-point/yellow-green-blue.d.ts +5 -0
- package/types/shared/constants/gradients/three-point-gradients.d.ts +48 -0
- package/types/shared/constants/gradients/two-point/blue.d.ts +5 -0
- package/types/shared/constants/gradients/two-point/cyan.d.ts +5 -0
- package/types/shared/constants/gradients/two-point/golden.d.ts +5 -0
- package/types/shared/constants/gradients/two-point/gray.d.ts +5 -0
- package/types/shared/constants/gradients/two-point/green-blue.d.ts +5 -0
- package/types/shared/constants/gradients/two-point/green.d.ts +5 -0
- package/types/shared/constants/gradients/two-point/oceanic.d.ts +5 -0
- package/types/shared/constants/gradients/two-point/orange-yellow.d.ts +5 -0
- package/types/shared/constants/gradients/two-point/red-blue.d.ts +5 -0
- package/types/shared/constants/gradients/two-point/red.d.ts +5 -0
- package/types/shared/constants/gradients/two-point/violet-orange.d.ts +5 -0
- package/types/shared/constants/gradients/two-point/violet.d.ts +5 -0
- package/types/shared/constants/gradients/two-point/yellow.d.ts +5 -0
- package/types/shared/constants/gradients/two-point-gradients.d.ts +60 -0
- package/types/shared/constants/header.d.ts +42 -0
- package/types/shared/constants/index.d.ts +33 -0
- package/types/shared/constants/markdown.d.ts +1 -0
- package/types/shared/constants/markup.d.ts +1 -0
- package/types/shared/constants/navigation.d.ts +20 -0
- package/types/shared/constants/old-schema.d.ts +3 -0
- package/types/shared/constants/placeholder.d.ts +28 -0
- package/types/shared/constants/print.d.ts +2 -0
- package/types/shared/constants/qa/action-panel.d.ts +14 -0
- package/types/shared/constants/qa/chart.d.ts +53 -0
- package/types/shared/constants/qa/collections.d.ts +11 -0
- package/types/shared/constants/qa/components.d.ts +176 -0
- package/types/shared/constants/qa/connections.d.ts +32 -0
- package/types/shared/constants/qa/control.d.ts +76 -0
- package/types/shared/constants/qa/dash.d.ts +97 -0
- package/types/shared/constants/qa/datasets.d.ts +53 -0
- package/types/shared/constants/qa/dl-navigation.d.ts +9 -0
- package/types/shared/constants/qa/field-editor.d.ts +3 -0
- package/types/shared/constants/qa/index.d.ts +16 -0
- package/types/shared/constants/qa/ql.d.ts +28 -0
- package/types/shared/constants/qa/settings.d.ts +11 -0
- package/types/shared/constants/qa/sign-in.d.ts +5 -0
- package/types/shared/constants/qa/uikit.d.ts +7 -0
- package/types/shared/constants/qa/visualization.d.ts +18 -0
- package/types/shared/constants/qa/wizard.d.ts +174 -0
- package/types/shared/constants/qa/workbooks.d.ts +18 -0
- package/types/shared/constants/ql.d.ts +27 -0
- package/types/shared/constants/shapes/index.d.ts +2 -0
- package/types/shared/constants/shapes/lines/index.d.ts +42 -0
- package/types/shared/constants/shapes/points/index.d.ts +8 -0
- package/types/shared/constants/themes.d.ts +17 -0
- package/types/shared/constants/timeout.d.ts +9 -0
- package/types/shared/constants/ui-sandbox.d.ts +1 -0
- package/types/shared/constants/url.d.ts +5 -0
- package/types/shared/constants/user.d.ts +4 -0
- package/types/shared/constants/visualization.d.ts +36 -0
- package/types/shared/constants/widgets.d.ts +30 -0
- package/types/shared/constants/wizard.d.ts +55 -0
- package/types/shared/constants/workbook-transfer.d.ts +17 -0
- package/types/shared/constants/workbooks.d.ts +7 -0
- package/types/shared/constants/yfm.d.ts +20 -0
- package/types/shared/endpoints/constants/index.d.ts +2 -0
- package/types/shared/endpoints/constants/opensource.d.ts +62 -0
- package/types/shared/endpoints/index.d.ts +62 -0
- package/types/shared/endpoints/schema/index.d.ts +2 -0
- package/types/shared/endpoints/schema/opensource.d.ts +40 -0
- package/types/shared/endpoints/sources/index.d.ts +19 -0
- package/types/shared/endpoints/sources/opensource.d.ts +2 -0
- package/types/shared/endpoints/sources/types.d.ts +27 -0
- package/types/shared/endpoints/types.d.ts +14 -0
- package/types/shared/endpoints/utils.d.ts +1 -0
- package/types/shared/index.d.ts +6 -0
- package/types/shared/modules/bi-api/index.d.ts +1 -0
- package/types/shared/modules/bi-api/mappers/index.d.ts +1 -0
- package/types/shared/modules/bi-api/mappers/v2.d.ts +14 -0
- package/types/shared/modules/charts-shared.d.ts +71 -0
- package/types/shared/modules/colors/common-helpers.d.ts +7 -0
- package/types/shared/modules/colors/distincts-helpers.d.ts +2 -0
- package/types/shared/modules/config/ql/index.d.ts +1 -0
- package/types/shared/modules/config/ql/mapQlConfigToLatestVersion.d.ts +7 -0
- package/types/shared/modules/config/ql/v1/mapUndefinedConfigToV1.d.ts +3 -0
- package/types/shared/modules/config/ql/v2/mapV1ConfigToV2.d.ts +4 -0
- package/types/shared/modules/config/ql/v3/mapV2ConfigToV3.d.ts +3 -0
- package/types/shared/modules/config/ql/v4/mapV3ConfigToV4.d.ts +3 -0
- package/types/shared/modules/config/ql/v5/mapV4ConfigToV5.d.ts +3 -0
- package/types/shared/modules/config/ql/v6/mapV5ConfigToV6.d.ts +3 -0
- package/types/shared/modules/config/ql/v7/mapV6ConfigToV7.d.ts +3 -0
- package/types/shared/modules/config/utils.d.ts +1 -0
- package/types/shared/modules/config/wizard/index.d.ts +1 -0
- package/types/shared/modules/config/wizard/mapChartsConfigToLatestVersion.d.ts +4 -0
- package/types/shared/modules/config/wizard/mocks/v4.mock.d.ts +21 -0
- package/types/shared/modules/config/wizard/v1/mapV1ConfigToV2.d.ts +3 -0
- package/types/shared/modules/config/wizard/v10/mapV10ConfigToV11.d.ts +2 -0
- package/types/shared/modules/config/wizard/v11/mapV11ConfigToV12.d.ts +2 -0
- package/types/shared/modules/config/wizard/v12/mapV12ConfigToV13.d.ts +2 -0
- package/types/shared/modules/config/wizard/v13/mapV13ConfigToV14.d.ts +3 -0
- package/types/shared/modules/config/wizard/v14/mapV14ConfigToV15.d.ts +3 -0
- package/types/shared/modules/config/wizard/v2/mapV2ConfigToV3.d.ts +3 -0
- package/types/shared/modules/config/wizard/v3/mapV3ConfigToV4.d.ts +4 -0
- package/types/shared/modules/config/wizard/v4/mapV4ConfigToV5.d.ts +2 -0
- package/types/shared/modules/config/wizard/v5/mapV5ConfigToV6.d.ts +2 -0
- package/types/shared/modules/config/wizard/v6/mapV6ConfigToV7.d.ts +2 -0
- package/types/shared/modules/config/wizard/v7/mapV7ConfigToV8.d.ts +2 -0
- package/types/shared/modules/config/wizard/v8/mapV8ConfigToV9.d.ts +2 -0
- package/types/shared/modules/config/wizard/v9/mapV9ConfigToV10.d.ts +2 -0
- package/types/shared/modules/control/typed-query-helpers.d.ts +2 -0
- package/types/shared/modules/dash-scheme-converter.d.ts +15 -0
- package/types/shared/modules/entry.d.ts +6 -0
- package/types/shared/modules/fields.d.ts +12 -0
- package/types/shared/modules/format-units/formatUnit.d.ts +5 -0
- package/types/shared/modules/format-units/i18n/en.json.d.ts +20 -0
- package/types/shared/modules/format-units/i18n/i18n.d.ts +5 -0
- package/types/shared/modules/format-units/i18n/ru.json.d.ts +20 -0
- package/types/shared/modules/format-units/index.d.ts +1 -0
- package/types/shared/modules/format-units/types.d.ts +14 -0
- package/types/shared/modules/helpers.d.ts +38 -0
- package/types/shared/modules/index.d.ts +19 -0
- package/types/shared/modules/language.d.ts +2 -0
- package/types/shared/modules/markdown/emoji-defs.d.ts +1 -0
- package/types/shared/modules/markdown/markdown-plugins/unify-terms.d.ts +4 -0
- package/types/shared/modules/markdown/markdown.d.ts +12 -0
- package/types/shared/modules/markup.d.ts +2 -0
- package/types/shared/modules/qa-helpers.d.ts +5 -0
- package/types/shared/modules/ql-helpers.d.ts +22 -0
- package/types/shared/modules/sleep.d.ts +1 -0
- package/types/shared/modules/slugify.d.ts +3 -0
- package/types/shared/modules/tenant.d.ts +3 -0
- package/types/shared/modules/transliterate.d.ts +1 -0
- package/types/shared/modules/typed-query-api/helpers/parameters.d.ts +2 -0
- package/types/shared/modules/typed-query-api/index.d.ts +1 -0
- package/types/shared/modules/typed-query-api/mappers/parameters.d.ts +3 -0
- package/types/shared/modules/url.d.ts +1 -0
- package/types/shared/modules/user.d.ts +4 -0
- package/types/shared/modules/visualization/placeholder.d.ts +3 -0
- package/types/shared/modules/wizard/axis-mode.d.ts +8 -0
- package/types/shared/modules/wizard/axis-settings.d.ts +2 -0
- package/types/shared/modules/wizard/config.d.ts +2 -0
- package/types/shared/modules/wizard/index.d.ts +3 -0
- package/types/shared/modules/wizard-helpers.d.ts +51 -0
- package/types/shared/old-schema/charts.d.ts +131 -0
- package/types/shared/old-schema/index.d.ts +113 -0
- package/types/shared/schema/auth/actions.d.ts +22 -0
- package/types/shared/schema/auth/index.d.ts +27 -0
- package/types/shared/schema/auth/types/common.d.ts +3 -0
- package/types/shared/schema/auth/types/users.d.ts +86 -0
- package/types/shared/schema/auth-schema/auth/actions.d.ts +12 -0
- package/types/shared/schema/auth-schema/auth/index.d.ts +17 -0
- package/types/shared/schema/auth-schema/auth/types.d.ts +11 -0
- package/types/shared/schema/auth-schema/index.d.ts +18 -0
- package/types/shared/schema/bi/actions/connections.d.ts +31 -0
- package/types/shared/schema/bi/actions/datasets.d.ts +43 -0
- package/types/shared/schema/bi/actions/index.d.ts +66 -0
- package/types/shared/schema/bi/actions/oauth.d.ts +10 -0
- package/types/shared/schema/bi/helpers/datasets.d.ts +58 -0
- package/types/shared/schema/bi/helpers/index.d.ts +1 -0
- package/types/shared/schema/bi/index.d.ts +71 -0
- package/types/shared/schema/bi/schemas/connections.d.ts +20 -0
- package/types/shared/schema/bi/schemas/datasets.d.ts +24 -0
- package/types/shared/schema/bi/schemas/index.d.ts +1 -0
- package/types/shared/schema/bi/types/common.d.ts +5 -0
- package/types/shared/schema/bi/types/connections.d.ts +145 -0
- package/types/shared/schema/bi/types/datasets.d.ts +246 -0
- package/types/shared/schema/bi/types/forms.d.ts +182 -0
- package/types/shared/schema/bi/types/index.d.ts +4 -0
- package/types/shared/schema/bi/types/oauth.d.ts +18 -0
- package/types/shared/schema/bi-converter/actions/index.d.ts +18 -0
- package/types/shared/schema/bi-converter/index.d.ts +23 -0
- package/types/shared/schema/bi-converter/types/index.d.ts +181 -0
- package/types/shared/schema/extensions/actions/iam-access-dialog.d.ts +100 -0
- package/types/shared/schema/extensions/actions/index.d.ts +100 -0
- package/types/shared/schema/extensions/index.d.ts +104 -0
- package/types/shared/schema/extensions/types/iam-access-dialog.d.ts +123 -0
- package/types/shared/schema/extensions/types/index.d.ts +1 -0
- package/types/shared/schema/gateway-utils.d.ts +34 -0
- package/types/shared/schema/googleapis/actions.d.ts +1 -0
- package/types/shared/schema/index.d.ts +3363 -0
- package/types/shared/schema/meta-manager/actions/export.d.ts +12 -0
- package/types/shared/schema/meta-manager/actions/import.d.ts +10 -0
- package/types/shared/schema/meta-manager/actions/index.d.ts +14 -0
- package/types/shared/schema/meta-manager/index.d.ts +19 -0
- package/types/shared/schema/meta-manager/types/export.d.ts +33 -0
- package/types/shared/schema/meta-manager/types/import.d.ts +21 -0
- package/types/shared/schema/meta-manager/types/index.d.ts +2 -0
- package/types/shared/schema/mix/actions/dash/create-dashboard-v1.d.ts +723 -0
- package/types/shared/schema/mix/actions/dash/delete-dashboard.d.ts +9 -0
- package/types/shared/schema/mix/actions/dash/get-dashboard-v1.d.ts +515 -0
- package/types/shared/schema/mix/actions/dash/index.d.ts +1959 -0
- package/types/shared/schema/mix/actions/dash/update-dashboard-v1.d.ts +722 -0
- package/types/shared/schema/mix/actions/editor.d.ts +10 -0
- package/types/shared/schema/mix/actions/entries.d.ts +18 -0
- package/types/shared/schema/mix/actions/index.d.ts +2067 -0
- package/types/shared/schema/mix/actions/markdown.d.ts +11 -0
- package/types/shared/schema/mix/actions/navigation.d.ts +9 -0
- package/types/shared/schema/mix/actions/ql/create-ql-chart.d.ts +23 -0
- package/types/shared/schema/mix/actions/ql/delete-ql-chart.d.ts +8 -0
- package/types/shared/schema/mix/actions/ql/get-ql-chart.d.ts +14 -0
- package/types/shared/schema/mix/actions/ql/index.d.ts +54 -0
- package/types/shared/schema/mix/actions/ql/update-ql-chart.d.ts +22 -0
- package/types/shared/schema/mix/actions/wizard/create-wizard-chart.d.ts +23 -0
- package/types/shared/schema/mix/actions/wizard/delete-wizard-chart.d.ts +8 -0
- package/types/shared/schema/mix/actions/wizard/get-wizard-chart.d.ts +14 -0
- package/types/shared/schema/mix/actions/wizard/index.d.ts +54 -0
- package/types/shared/schema/mix/actions/wizard/update-wizard-chart.d.ts +22 -0
- package/types/shared/schema/mix/helpers/dash/index.d.ts +69 -0
- package/types/shared/schema/mix/helpers/dash/migrate-dash-to-v1.d.ts +2 -0
- package/types/shared/schema/mix/helpers/editor/index.d.ts +6 -0
- package/types/shared/schema/mix/helpers/editor/validation.d.ts +2 -0
- package/types/shared/schema/mix/helpers/entries.d.ts +54 -0
- package/types/shared/schema/mix/helpers/index.d.ts +2 -0
- package/types/shared/schema/mix/helpers/validation.d.ts +1 -0
- package/types/shared/schema/mix/index.d.ts +2071 -0
- package/types/shared/schema/mix/schemas/dash/create-dashboard-v1.d.ts +497 -0
- package/types/shared/schema/mix/schemas/dash/dash-v1.d.ts +255 -0
- package/types/shared/schema/mix/schemas/dash/delete-dashboard.d.ts +6 -0
- package/types/shared/schema/mix/schemas/dash/get-dashboard-v1.d.ts +275 -0
- package/types/shared/schema/mix/schemas/dash/update-dashboard-v1.d.ts +496 -0
- package/types/shared/schema/mix/schemas/ql.d.ts +18 -0
- package/types/shared/schema/mix/schemas/wizard.d.ts +18 -0
- package/types/shared/schema/mix/types/dash/index.d.ts +53 -0
- package/types/shared/schema/mix/types/entries.d.ts +91 -0
- package/types/shared/schema/mix/types/index.d.ts +6 -0
- package/types/shared/schema/mix/types/markdown.d.ts +15 -0
- package/types/shared/schema/mix/types/navigation.d.ts +12 -0
- package/types/shared/schema/mix/types/ql.d.ts +4 -0
- package/types/shared/schema/mix/types/wizard.d.ts +4 -0
- package/types/shared/schema/stat-api/types/index.d.ts +11 -0
- package/types/shared/schema/types.d.ts +5 -0
- package/types/shared/schema/us/actions/collections/create-collection.d.ts +93 -0
- package/types/shared/schema/us/actions/collections/delete-collection.d.ts +52 -0
- package/types/shared/schema/us/actions/collections/delete-collections.d.ts +52 -0
- package/types/shared/schema/us/actions/collections/get-collection-breadcrumbs.d.ts +86 -0
- package/types/shared/schema/us/actions/collections/get-collection.d.ts +90 -0
- package/types/shared/schema/us/actions/collections/get-root-collection-permissions.d.ts +17 -0
- package/types/shared/schema/us/actions/collections/get-structure-items.d.ts +7 -0
- package/types/shared/schema/us/actions/collections/index.d.ts +335 -0
- package/types/shared/schema/us/actions/collections/move-collection.d.ts +48 -0
- package/types/shared/schema/us/actions/collections/move-collections.d.ts +53 -0
- package/types/shared/schema/us/actions/collections/update-collection.d.ts +48 -0
- package/types/shared/schema/us/actions/color-palettes.d.ts +13 -0
- package/types/shared/schema/us/actions/editor.d.ts +10 -0
- package/types/shared/schema/us/actions/embeds.d.ts +11 -0
- package/types/shared/schema/us/actions/entries/create-entry.d.ts +7 -0
- package/types/shared/schema/us/actions/entries/get-entries-relations.d.ts +78 -0
- package/types/shared/schema/us/actions/entries/get-entries.d.ts +100 -0
- package/types/shared/schema/us/actions/entries/get-entry.d.ts +7 -0
- package/types/shared/schema/us/actions/entries/index.d.ts +298 -0
- package/types/shared/schema/us/actions/entries/list-directory.d.ts +101 -0
- package/types/shared/schema/us/actions/entries/update-entry.d.ts +7 -0
- package/types/shared/schema/us/actions/favorites.d.ts +12 -0
- package/types/shared/schema/us/actions/index.d.ts +1064 -0
- package/types/shared/schema/us/actions/locks.d.ts +11 -0
- package/types/shared/schema/us/actions/operations.d.ts +37 -0
- package/types/shared/schema/us/actions/presets.d.ts +10 -0
- package/types/shared/schema/us/actions/private.d.ts +9 -0
- package/types/shared/schema/us/actions/state.d.ts +10 -0
- package/types/shared/schema/us/actions/template.d.ts +9 -0
- package/types/shared/schema/us/actions/tenant.d.ts +9 -0
- package/types/shared/schema/us/actions/user.d.ts +20 -0
- package/types/shared/schema/us/actions/workbooks/copy-workbook.d.ts +7 -0
- package/types/shared/schema/us/actions/workbooks/create-workbook.d.ts +106 -0
- package/types/shared/schema/us/actions/workbooks/delete-workbook.d.ts +59 -0
- package/types/shared/schema/us/actions/workbooks/delete-workbooks.d.ts +65 -0
- package/types/shared/schema/us/actions/workbooks/get-workbook-entries.d.ts +7 -0
- package/types/shared/schema/us/actions/workbooks/get-workbook-shared-entries.d.ts +7 -0
- package/types/shared/schema/us/actions/workbooks/get-workbook.d.ts +100 -0
- package/types/shared/schema/us/actions/workbooks/get-workbooks-list.d.ts +75 -0
- package/types/shared/schema/us/actions/workbooks/index.d.ts +384 -0
- package/types/shared/schema/us/actions/workbooks/migrate-entries-to-workbook-by-copy.d.ts +7 -0
- package/types/shared/schema/us/actions/workbooks/migrate-entries-to-workbook-by-transfer.d.ts +7 -0
- package/types/shared/schema/us/actions/workbooks/move-workbook.d.ts +61 -0
- package/types/shared/schema/us/actions/workbooks/move-workbooks.d.ts +66 -0
- package/types/shared/schema/us/actions/workbooks/update-workbook.d.ts +61 -0
- package/types/shared/schema/us/index.d.ts +1069 -0
- package/types/shared/schema/us/schemas/collections/index.d.ts +27 -0
- package/types/shared/schema/us/schemas/entries/get-entries.d.ts +172 -0
- package/types/shared/schema/us/schemas/entries/list-directory.d.ts +171 -0
- package/types/shared/schema/us/schemas/operation/index.d.ts +16 -0
- package/types/shared/schema/us/schemas/workbooks/index.d.ts +33 -0
- package/types/shared/schema/us/types/access-bindings.d.ts +0 -0
- package/types/shared/schema/us/types/collections.d.ts +80 -0
- package/types/shared/schema/us/types/color-palettes.d.ts +24 -0
- package/types/shared/schema/us/types/common.d.ts +16 -0
- package/types/shared/schema/us/types/editor.d.ts +32 -0
- package/types/shared/schema/us/types/embeds.d.ts +37 -0
- package/types/shared/schema/us/types/entries.d.ts +292 -0
- package/types/shared/schema/us/types/favorites.d.ts +48 -0
- package/types/shared/schema/us/types/fields.d.ts +133 -0
- package/types/shared/schema/us/types/index.d.ts +17 -0
- package/types/shared/schema/us/types/locks.d.ts +34 -0
- package/types/shared/schema/us/types/operations.d.ts +6 -0
- package/types/shared/schema/us/types/presets.d.ts +5 -0
- package/types/shared/schema/us/types/private.d.ts +2 -0
- package/types/shared/schema/us/types/sort.d.ts +3 -0
- package/types/shared/schema/us/types/state.d.ts +18 -0
- package/types/shared/schema/us/types/template.d.ts +13 -0
- package/types/shared/schema/us/types/tenant.d.ts +14 -0
- package/types/shared/schema/us/types/workbooks.d.ts +95 -0
- package/types/shared/schema/us-private/actions/entries.d.ts +12 -0
- package/types/shared/schema/us-private/actions/index.d.ts +13 -0
- package/types/shared/schema/us-private/actions/tenant.d.ts +10 -0
- package/types/shared/schema/us-private/index.d.ts +20 -0
- package/types/shared/schema/us-private/types/entries.d.ts +18 -0
- package/types/shared/schema/us-private/types/index.d.ts +1 -0
- package/types/shared/schema/utils.d.ts +14 -0
- package/types/shared/server/axios.d.ts +8 -0
- package/types/shared/types/bi-api/index.d.ts +1 -0
- package/types/shared/types/bi-api/v2.d.ts +178 -0
- package/types/shared/types/chartkit/common.d.ts +34 -0
- package/types/shared/types/chartkit/dl-chartkit.d.ts +30 -0
- package/types/shared/types/chartkit/gravity-charts/index.d.ts +9 -0
- package/types/shared/types/chartkit/gravity-charts/scatter.d.ts +24 -0
- package/types/shared/types/chartkit/index.d.ts +4 -0
- package/types/shared/types/chartkit/table.d.ts +134 -0
- package/types/shared/types/charts.d.ts +273 -0
- package/types/shared/types/color-palettes.d.ts +7 -0
- package/types/shared/types/common-update.d.ts +13 -0
- package/types/shared/types/common.d.ts +301 -0
- package/types/shared/types/config/ql/index.d.ts +22 -0
- package/types/shared/types/config/ql/v1.d.ts +78 -0
- package/types/shared/types/config/ql/v2.d.ts +79 -0
- package/types/shared/types/config/ql/v3.d.ts +79 -0
- package/types/shared/types/config/ql/v4.d.ts +80 -0
- package/types/shared/types/config/ql/v5.d.ts +80 -0
- package/types/shared/types/config/ql/v6.d.ts +80 -0
- package/types/shared/types/config/ql/v7.d.ts +80 -0
- package/types/shared/types/config/wizard/index.d.ts +58 -0
- package/types/shared/types/config/wizard/v10.d.ts +262 -0
- package/types/shared/types/config/wizard/v11.d.ts +276 -0
- package/types/shared/types/config/wizard/v12.d.ts +283 -0
- package/types/shared/types/config/wizard/v13.d.ts +282 -0
- package/types/shared/types/config/wizard/v14.d.ts +283 -0
- package/types/shared/types/config/wizard/v15.d.ts +283 -0
- package/types/shared/types/config/wizard/v2.d.ts +239 -0
- package/types/shared/types/config/wizard/v3.d.ts +242 -0
- package/types/shared/types/config/wizard/v4.d.ts +253 -0
- package/types/shared/types/config/wizard/v5.d.ts +253 -0
- package/types/shared/types/config/wizard/v6.d.ts +253 -0
- package/types/shared/types/config/wizard/v7.d.ts +254 -0
- package/types/shared/types/config/wizard/v8.d.ts +258 -0
- package/types/shared/types/config/wizard/v9.d.ts +260 -0
- package/types/shared/types/configs/index.d.ts +1 -0
- package/types/shared/types/connections.d.ts +21 -0
- package/types/shared/types/dash.d.ts +324 -0
- package/types/shared/types/dataset.d.ts +325 -0
- package/types/shared/types/entry.d.ts +14 -0
- package/types/shared/types/feature.d.ts +102 -0
- package/types/shared/types/formatting.d.ts +22 -0
- package/types/shared/types/index.d.ts +28 -0
- package/types/shared/types/language.d.ts +1 -0
- package/types/shared/types/menu.d.ts +27 -0
- package/types/shared/types/meta-manager.d.ts +11 -0
- package/types/shared/types/metrica.d.ts +5 -0
- package/types/shared/types/notification.d.ts +5 -0
- package/types/shared/types/permissions.d.ts +3 -0
- package/types/shared/types/ql/common.d.ts +158 -0
- package/types/shared/types/ql/versions.d.ts +9 -0
- package/types/shared/types/typed-query-api/index.d.ts +1 -0
- package/types/shared/types/typed-query-api/v1.d.ts +29 -0
- package/types/shared/types/ui-sandbox.d.ts +5 -0
- package/types/shared/types/utility-types.d.ts +28 -0
- package/types/shared/types/widget.d.ts +47 -0
- package/types/shared/types/wizard/background-settings.d.ts +14 -0
- package/types/shared/types/wizard/bars.d.ts +54 -0
- package/types/shared/types/wizard/column.d.ts +14 -0
- package/types/shared/types/wizard/export.d.ts +10 -0
- package/types/shared/types/wizard/field.d.ts +112 -0
- package/types/shared/types/wizard/index.d.ts +421 -0
- package/types/shared/types/wizard/misc.d.ts +58 -0
- package/types/shared/types/wizard/placeholder.d.ts +50 -0
- package/types/shared/types/wizard/sub-totals.d.ts +3 -0
- package/types/shared/types/wizard/versions.d.ts +17 -0
- package/types/shared/utils/array/assert-non-empty-array.d.ts +1 -0
- package/types/shared/utils/array/index.d.ts +1 -0
- package/types/shared/utils/dash.d.ts +6 -0
- package/types/shared/utils/dataset.d.ts +12 -0
- package/types/shared/utils/date-time.d.ts +2 -0
- package/types/shared/utils/entry.d.ts +3 -0
- package/types/shared/utils/feature.d.ts +8 -0
- package/types/shared/utils/functions-registry.d.ts +5 -0
- package/types/shared/utils/index.d.ts +8 -0
- package/types/shared/utils/makeFunctionTemplate.d.ts +3 -0
- package/types/shared/utils/manualError.d.ts +23 -0
- package/types/shared/utils/markdown.d.ts +4 -0
- package/types/shared/utils/markup.d.ts +4 -0
- package/types/shared/utils/openapi/index.d.ts +1 -0
- package/types/shared/utils/palettes.d.ts +6 -0
- package/types/shared/utils/ui-sandbox.d.ts +5 -0
- package/types/shared/utils/visualization-check.d.ts +12 -0
- package/types/shared/utils/wizard.d.ts +4 -0
- package/types/shared/zod-schemas/dash.d.ts +231 -0
- package/types/shared/zod-schemas/entry.d.ts +6 -0
- package/types/shared/zod-schemas/permissions.d.ts +7 -0
- package/types/shared/zod-schemas/shared-entry-permissions.d.ts +13 -0
- package/types/ui/capabilities/capabilities.d.ts +13 -0
- package/types/ui/capabilities/index.d.ts +9 -0
- package/types/ui/components/AccessRights/AccessRightsUrlOpen.d.ts +2 -0
- package/types/ui/components/ActionPanel/ActionPanel.d.ts +101 -0
- package/types/ui/components/ActionPanel/ActionPanelHelpers.d.ts +5 -0
- package/types/ui/components/ActionPanel/components/ChartSaveControls/ChartSaveControl.d.ts +24 -0
- package/types/ui/components/ActionPanel/components/ChartSaveControls/components/SaveButton/SaveButton.d.ts +10 -0
- package/types/ui/components/ActionPanel/components/ChartSaveControls/components/SaveDropdown/SaveDropdown.d.ts +8 -0
- package/types/ui/components/ActionPanel/components/ChartSaveControls/types.d.ts +20 -0
- package/types/ui/components/ActionPanel/components/ChartSaveControls/useAdditionalItems.d.ts +6 -0
- package/types/ui/components/ActionPanel/components/EntryPanel/EntryPanel.d.ts +199 -0
- package/types/ui/components/ActionPanel/index.d.ts +2 -0
- package/types/ui/components/ActionPanel/utils.d.ts +4 -0
- package/types/ui/components/AdaptiveDialog/AdaptiveDialog.d.ts +19 -0
- package/types/ui/components/AnimateBlock/AnimateBlock.d.ts +8 -0
- package/types/ui/components/AnimateBlock/index.d.ts +1 -0
- package/types/ui/components/AsideHeaderAdapter/AsideHeaderAdapter.d.ts +19 -0
- package/types/ui/components/AsideHeaderAdapter/LogoText/LogoText.d.ts +7 -0
- package/types/ui/components/AsideHeaderAdapter/Settings/Appearance/HighcontrastSettings.d.ts +7 -0
- package/types/ui/components/AsideHeaderAdapter/Settings/Appearance/ThemeSettings.d.ts +6 -0
- package/types/ui/components/AsideHeaderAdapter/Settings/ItemField/ItemField.d.ts +9 -0
- package/types/ui/components/AsideHeaderAdapter/Settings/LanguageSettings.d.ts +3 -0
- package/types/ui/components/AsideHeaderAdapter/Settings/Settings.d.ts +1 -0
- package/types/ui/components/AsideHeaderAdapter/Settings/types.d.ts +9 -0
- package/types/ui/components/AsideHeaderAdapter/Settings/utils.d.ts +16 -0
- package/types/ui/components/AsideHeaderAdapter/VersionDialog/VersionDialog.d.ts +12 -0
- package/types/ui/components/AsideHeaderAdapter/constants.d.ts +1 -0
- package/types/ui/components/AsideHeaderAdapter/helpers.d.ts +1 -0
- package/types/ui/components/AsideHeaderAdapter/index.d.ts +2 -0
- package/types/ui/components/AsyncImage/AsyncImage.d.ts +11 -0
- package/types/ui/components/AutogeneratedPaletteIcon/AutogeneratedPaletteIcon.d.ts +9 -0
- package/types/ui/components/BetaMark/BetaMark.d.ts +6 -0
- package/types/ui/components/Breadcrumbs/CollectionsStructureBreadcrumbs/CollectionsStructureBreadcrumbs.d.ts +6 -0
- package/types/ui/components/BreadcrumbsItemLink/BreadcrumbsItemLink.d.ts +6 -0
- package/types/ui/components/ButtonAttach/ButtonAttach.d.ts +14 -0
- package/types/ui/components/Collapse/Collapse.d.ts +2 -0
- package/types/ui/components/Collapse/types.d.ts +22 -0
- package/types/ui/components/CollectionFilters/CollectionFilters.d.ts +31 -0
- package/types/ui/components/CollectionFilters/index.d.ts +1 -0
- package/types/ui/components/CollectionIcon/CollectionIcon.d.ts +8 -0
- package/types/ui/components/CollectionsStructure/CollectionDialog/CollectionDialog.d.ts +20 -0
- package/types/ui/components/CollectionsStructure/CollectionDialog/index.d.ts +1 -0
- package/types/ui/components/CollectionsStructure/CollectionNoCreatePermissionDialog/CollectionNoCreatePermissionDialog.d.ts +13 -0
- package/types/ui/components/CollectionsStructure/CollectionNoCreatePermissionDialog/index.d.ts +1 -0
- package/types/ui/components/CollectionsStructure/CollectionStructureDialog/CollectionStructureDialog.d.ts +30 -0
- package/types/ui/components/CollectionsStructure/CollectionStructureDialog/CreateEntityDialog/CreateEntityDialog.d.ts +10 -0
- package/types/ui/components/CollectionsStructure/CollectionStructureDialog/NewTitleDialog/NewTitleDialog.d.ts +10 -0
- package/types/ui/components/CollectionsStructure/CollectionStructureDialog/StructureItemSelect/Item/Item.d.ts +10 -0
- package/types/ui/components/CollectionsStructure/CollectionStructureDialog/StructureItemSelect/Item/index.d.ts +1 -0
- package/types/ui/components/CollectionsStructure/CollectionStructureDialog/StructureItemSelect/StructureItemSelect.d.ts +24 -0
- package/types/ui/components/CollectionsStructure/CollectionStructureDialog/StructureItemSelect/index.d.ts +1 -0
- package/types/ui/components/CollectionsStructure/CollectionStructureDialog/index.d.ts +1 -0
- package/types/ui/components/CollectionsStructure/CopyEntriesDialog.d.ts +13 -0
- package/types/ui/components/CollectionsStructure/CopyWorkbookDialog.d.ts +15 -0
- package/types/ui/components/CollectionsStructure/CreateCollectionDialog.d.ts +15 -0
- package/types/ui/components/CollectionsStructure/CreateEntryInWorkbookDialog.d.ts +15 -0
- package/types/ui/components/CollectionsStructure/CreateWorkbookDialog/CreateWorkbookDialog.d.ts +26 -0
- package/types/ui/components/CollectionsStructure/CreateWorkbookDialog/ImportFileField/ImportFileField.d.ts +9 -0
- package/types/ui/components/CollectionsStructure/CreateWorkbookDialog/ImportWorkbookView/ImportWorkbookView.d.ts +7 -0
- package/types/ui/components/CollectionsStructure/CreateWorkbookDialog/utils.d.ts +4 -0
- package/types/ui/components/CollectionsStructure/DeleteCollectionDialog.d.ts +15 -0
- package/types/ui/components/CollectionsStructure/DeleteCollectionsWorkbooksContent/DeleteCollectionsWorkbooksContent.d.ts +5 -0
- package/types/ui/components/CollectionsStructure/DeleteCollectionsWorkbooksContent/index.d.ts +1 -0
- package/types/ui/components/CollectionsStructure/DeleteCollectionsWorkbooksDialog.d.ts +16 -0
- package/types/ui/components/CollectionsStructure/DeleteDialog/DeleteDialog.d.ts +11 -0
- package/types/ui/components/CollectionsStructure/DeleteDialog/index.d.ts +1 -0
- package/types/ui/components/CollectionsStructure/DeleteWorkbookDialog.d.ts +15 -0
- package/types/ui/components/CollectionsStructure/EditCollectionDialog.d.ts +17 -0
- package/types/ui/components/CollectionsStructure/EditSharedEntryDialog.d.ts +15 -0
- package/types/ui/components/CollectionsStructure/EditWorkbookDialog.d.ts +17 -0
- package/types/ui/components/CollectionsStructure/ExportWorkbookDialog/ExportInfo/ExportInfo.d.ts +1 -0
- package/types/ui/components/CollectionsStructure/ExportWorkbookDialog/ExportWorkbookDialog.d.ts +13 -0
- package/types/ui/components/CollectionsStructure/ExportWorkbookDialog/utils.d.ts +5 -0
- package/types/ui/components/CollectionsStructure/MigrateEntryToWorkbookDialog.d.ts +12 -0
- package/types/ui/components/CollectionsStructure/MoveCollectionDialog.d.ts +15 -0
- package/types/ui/components/CollectionsStructure/MoveCollectionsWorkbooksDialog.d.ts +15 -0
- package/types/ui/components/CollectionsStructure/MoveSharedEntryDialog.d.ts +15 -0
- package/types/ui/components/CollectionsStructure/MoveWorkbookDialog.d.ts +15 -0
- package/types/ui/components/CollectionsStructure/WorkbookDialog/WorkbookDialog.d.ts +26 -0
- package/types/ui/components/CollectionsStructure/WorkbookDialog/index.d.ts +2 -0
- package/types/ui/components/CollectionsStructure/WorkbookDialog/types.d.ts +4 -0
- package/types/ui/components/CollectionsStructure/components/EntriesNotificationCut/EntriesNotificationCut.d.ts +27 -0
- package/types/ui/components/CollectionsStructure/components/EntriesNotificationCut/helpers.d.ts +7 -0
- package/types/ui/components/CollectionsStructure/components/EntriesNotificationCut/types.d.ts +12 -0
- package/types/ui/components/CollectionsStructure/hooks/useCollectionEntityDialogState.d.ts +8 -0
- package/types/ui/components/CollectionsStructure/hooks/useCollectionStructureDialogState.d.ts +19 -0
- package/types/ui/components/CollectionsStructure/hooks/useNotificationsAndDetails.d.ts +12 -0
- package/types/ui/components/CollectionsStructure/index.d.ts +17 -0
- package/types/ui/components/CollectionsStructure/types.d.ts +7 -0
- package/types/ui/components/ColorPaletteEditorContainer/ColorPaletteCharkitPreview/ColorPaletteChartkitPreview.d.ts +3 -0
- package/types/ui/components/ColorPaletteEditorContainer/ColorPaletteCharkitPreview/types.d.ts +4 -0
- package/types/ui/components/ColorPaletteEditorContainer/ColorPaletteCharkitPreview/utils.d.ts +3 -0
- package/types/ui/components/ColorPaletteEditorContainer/ColorPaletteEditorContainer.d.ts +52 -0
- package/types/ui/components/ColorPaletteEditorContainer/ColorPalettesCard/ColorPalettesCard.d.ts +16 -0
- package/types/ui/components/ColorPaletteEditorContainer/ColorPalettesCard/DefaultPaletteSelect/DefaultPaletteSelect.d.ts +7 -0
- package/types/ui/components/ColorPaletteEditorContainer/ColorTextInput/ColorTextInput.d.ts +11 -0
- package/types/ui/components/ColorPaletteEditorContainer/GradientPaletteEditor/GradientPaletteEditor.d.ts +46 -0
- package/types/ui/components/ColorPaletteEditorContainer/PaletteEditor/PaletteEditor.d.ts +49 -0
- package/types/ui/components/ColorPaletteSelect/ColorPaletteSelect.d.ts +12 -0
- package/types/ui/components/ColorPickerInput/ColorPickerInput.d.ts +22 -0
- package/types/ui/components/ColorPickerInput/utils.d.ts +11 -0
- package/types/ui/components/ConnectorIcon/ConnectorIcon.d.ts +7 -0
- package/types/ui/components/ControlComponents/BackButton/BackButton.d.ts +3 -0
- package/types/ui/components/ControlComponents/Dialog/Dialog.d.ts +11 -0
- package/types/ui/components/ControlComponents/Sections/AppearanceSection/AppearanceSection.d.ts +2 -0
- package/types/ui/components/ControlComponents/Sections/AppearanceSection/Rows/ColorAccentRow/ColorAccentRow.d.ts +3 -0
- package/types/ui/components/ControlComponents/Sections/AppearanceSection/Rows/HintRow/HintRow.d.ts +3 -0
- package/types/ui/components/ControlComponents/Sections/AppearanceSection/Rows/InnerTitleRow/InnerTitleRow.d.ts +3 -0
- package/types/ui/components/ControlComponents/Sections/AppearanceSection/Rows/TitlePlacementRow/TitlePlacementRow.d.ts +3 -0
- package/types/ui/components/ControlComponents/Sections/AppearanceSection/Rows/TitleRow/TitleRow.d.ts +3 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/CommonGroupSettingsSection.d.ts +6 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/ConnectionSettings/ConnectionSettings.d.ts +6 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/ConnectionSettings/components/ConnectionSelector/ConnectionSelector.d.ts +5 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/ConnectionSettings/components/ConnectionSelector/helpers.d.ts +5 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/ConnectionSettings/components/QueryTypeControl/QueryTypeControl.d.ts +7 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/ConnectionSettings/components/QueryTypeControl/components/EditLabelControl/EditLabelControl.d.ts +1 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/ConnectionSettings/components/QueryTypeControl/components/EditQueryControl/EditQueryControl.d.ts +2 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/ConnectionSettings/components/QueryTypeControl/helpers.d.ts +5 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/ConnectionSettings/helpers/get-distincts-by-typed-query.d.ts +12 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/DatasetSelectorSettings/DatasetSelectorSettings.d.ts +7 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/EntrySelector/EntrySelector.d.ts +23 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/ExternalSelectorSettings/ExternalSelectorSettings.d.ts +9 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/ImpactTypeSelect/CurrentTabOption/CurrentTabOption.d.ts +9 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/ImpactTypeSelect/ImpactTypeSelect.d.ts +11 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/ImpactTypeSelect/SelectedTabsOption/SelectedTabsOption.d.ts +4 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/ImpactTypeSelect/constants.d.ts +5 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/ImpactTypeSelect/helpers.d.ts +18 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/ImpactTypeSelect/useTabVisibilityValidation.d.ts +13 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/InputTypeSelector/InputTypeSelector.d.ts +4 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/ParameterNameInput/ParameterNameInput.d.ts +7 -0
- package/types/ui/components/ControlComponents/Sections/CommonSettingsSection/helpers/input-type-select.d.ts +2 -0
- package/types/ui/components/ControlComponents/Sections/Date/Acceptable/Acceptable.d.ts +24 -0
- package/types/ui/components/ControlComponents/Sections/Date/Default/Default.d.ts +40 -0
- package/types/ui/components/ControlComponents/Sections/OperationSelector/OperationSelector.d.ts +4 -0
- package/types/ui/components/ControlComponents/Sections/ParametersSection/ParametersSection.d.ts +1 -0
- package/types/ui/components/ControlComponents/Sections/Switchers/Button/Button.d.ts +10 -0
- package/types/ui/components/ControlComponents/Sections/Switchers/DatasetField/DatasetField.d.ts +40 -0
- package/types/ui/components/ControlComponents/Sections/ValueSelector/ListValueControl/Acceptable/Acceptable.d.ts +1 -0
- package/types/ui/components/ControlComponents/Sections/ValueSelector/ListValueControl/Acceptable/SelectorValuesDialogBody.d.ts +13 -0
- package/types/ui/components/ControlComponents/Sections/ValueSelector/ListValueControl/ListValueControl.d.ts +12 -0
- package/types/ui/components/ControlComponents/Sections/ValueSelector/ListValueControl/MultiselectableCheckbox.d.ts +3 -0
- package/types/ui/components/ControlComponents/Sections/ValueSelector/ListValueControl/ValueSelector/DynamicValueSelect.d.ts +6 -0
- package/types/ui/components/ControlComponents/Sections/ValueSelector/ListValueControl/ValueSelector/StaticValueSelect.d.ts +2 -0
- package/types/ui/components/ControlComponents/Sections/ValueSelector/ListValueControl/ValueSelector/hooks.d.ts +4 -0
- package/types/ui/components/ControlComponents/Sections/ValueSelector/ListValueControl/ValueSelector/types.d.ts +19 -0
- package/types/ui/components/ControlComponents/Sections/ValueSelector/ListValueControl/ValueSelector/utils.d.ts +1 -0
- package/types/ui/components/ControlComponents/Sections/ValueSelector/RequiredValueCheckbox/RequiredValueCheckbox.d.ts +3 -0
- package/types/ui/components/ControlComponents/Sections/ValueSelector/ValueSelector.d.ts +5 -0
- package/types/ui/components/ControlComponents/Sections/ValueSelector/helpers/get-distincts-by-dataset-field.d.ts +22 -0
- package/types/ui/components/ControlComponents/Sections/Wrapper/Wrapper.d.ts +7 -0
- package/types/ui/components/ControlComponents/SelectorPreview/SelectorPreview.d.ts +2 -0
- package/types/ui/components/ControlComponents/SelectorTypeSelect/SelectorTypeSelect.d.ts +6 -0
- package/types/ui/components/CopyEntriesToWorkbookDialog/CopyEntriesToWorkbookDialog.d.ts +13 -0
- package/types/ui/components/CopyEntriesToWorkbookDialog/components/Body/Body.d.ts +7 -0
- package/types/ui/components/CopyEntriesToWorkbookDialog/components/Body/index.d.ts +1 -0
- package/types/ui/components/CopyEntriesToWorkbookDialog/components/EntriesGroup/EntriesGroup.d.ts +10 -0
- package/types/ui/components/CopyEntriesToWorkbookDialog/components/EntriesGroup/index.d.ts +1 -0
- package/types/ui/components/CopyEntriesToWorkbookDialog/components/EntryRow/EntryRow.d.ts +16 -0
- package/types/ui/components/CopyEntriesToWorkbookDialog/components/EntryRow/index.d.ts +1 -0
- package/types/ui/components/CopyEntriesToWorkbookDialog/index.d.ts +1 -0
- package/types/ui/components/CopyEntriesToWorkbookDialog/utils.d.ts +4 -0
- package/types/ui/components/DNDPane/DNDItem/DNDItem.d.ts +2 -0
- package/types/ui/components/DNDPane/DNDPane.d.ts +13 -0
- package/types/ui/components/DashKit/DashKit.d.ts +32 -0
- package/types/ui/components/DashKit/constants.d.ts +22 -0
- package/types/ui/components/DashKit/context/WidgetContext.d.ts +17 -0
- package/types/ui/components/DashKit/helpers.d.ts +27 -0
- package/types/ui/components/DashKit/plugins/Control/Control.d.ts +20 -0
- package/types/ui/components/DashKit/plugins/Control/ControlItems/ControlItemSelect.d.ts +30 -0
- package/types/ui/components/DashKit/plugins/Control/Error/Error.d.ts +7 -0
- package/types/ui/components/DashKit/plugins/Control/constants.d.ts +9 -0
- package/types/ui/components/DashKit/plugins/Control/prerenderMiddleware.d.ts +2 -0
- package/types/ui/components/DashKit/plugins/Control/types.d.ts +134 -0
- package/types/ui/components/DashKit/plugins/Control/utils.d.ts +75 -0
- package/types/ui/components/DashKit/plugins/DebugInfoTool/DebugInfoTool.d.ts +12 -0
- package/types/ui/components/DashKit/plugins/GroupControl/Control/Control.d.ts +27 -0
- package/types/ui/components/DashKit/plugins/GroupControl/Control/store/reducer.d.ts +3 -0
- package/types/ui/components/DashKit/plugins/GroupControl/Control/store/types.d.ts +75 -0
- package/types/ui/components/DashKit/plugins/GroupControl/GroupControl.d.ts +18 -0
- package/types/ui/components/DashKit/plugins/GroupControl/types.d.ts +28 -0
- package/types/ui/components/DashKit/plugins/GroupControl/utils.d.ts +19 -0
- package/types/ui/components/DashKit/plugins/Image/Image.d.ts +12 -0
- package/types/ui/components/DashKit/plugins/RendererWrapper/RendererWrapper.d.ts +13 -0
- package/types/ui/components/DashKit/plugins/Text/Text.d.ts +9 -0
- package/types/ui/components/DashKit/plugins/Title/AnchorLink/AnchorLink.d.ts +6 -0
- package/types/ui/components/DashKit/plugins/Title/Title.d.ts +14 -0
- package/types/ui/components/DashKit/plugins/Title/constants.d.ts +2 -0
- package/types/ui/components/DashKit/plugins/Title/utils.d.ts +12 -0
- package/types/ui/components/DashKit/plugins/Widget/WidgetPlugin.d.ts +10 -0
- package/types/ui/components/DashKit/plugins/Widget/components/Footer.d.ts +7 -0
- package/types/ui/components/DashKit/plugins/Widget/components/Header.d.ts +15 -0
- package/types/ui/components/DashKit/plugins/Widget/components/helpers.d.ts +3 -0
- package/types/ui/components/DashKit/plugins/Widget/store/actions.d.ts +17 -0
- package/types/ui/components/DashKit/plugins/Widget/store/reducer.d.ts +3 -0
- package/types/ui/components/DashKit/plugins/Widget/types.d.ts +50 -0
- package/types/ui/components/DashKit/plugins/types.d.ts +41 -0
- package/types/ui/components/DashKit/utils.d.ts +39 -0
- package/types/ui/components/DataTypeIcon/DataTypeIcon.d.ts +10 -0
- package/types/ui/components/DatasetFieldList/DatasetFieldList.d.ts +10 -0
- package/types/ui/components/DebouncedInput/DebouncedInput.d.ts +28 -0
- package/types/ui/components/DebouncedInput/index.d.ts +1 -0
- package/types/ui/components/DialogAddSharedEntryFromLink/DialogAddSharedEntryFromLink.d.ts +15 -0
- package/types/ui/components/DialogChartWidget/DialogChartWidget.d.ts +30 -0
- package/types/ui/components/DialogCommon/DialogCommon.d.ts +74 -0
- package/types/ui/components/DialogConfirm/DialogConfirm.d.ts +84 -0
- package/types/ui/components/DialogDefault/DialogDefault.d.ts +23 -0
- package/types/ui/components/DialogEditItem/DialogEditItem.d.ts +69 -0
- package/types/ui/components/DialogEntryDescription/DialogEntryDescription.d.ts +3 -0
- package/types/ui/components/DialogEntryDescription/DialogEntryDescriptionWrapper.d.ts +7 -0
- package/types/ui/components/DialogEntryDescription/EntryDescriptionButton.d.ts +13 -0
- package/types/ui/components/DialogEntryDescription/index.d.ts +3 -0
- package/types/ui/components/DialogErrorWithTabs/DebugInfo/DebugInfo.d.ts +9 -0
- package/types/ui/components/DialogErrorWithTabs/DialogErrorWithTabs.d.ts +20 -0
- package/types/ui/components/DialogErrorWithTabs/ErrorText/ErrorText.d.ts +7 -0
- package/types/ui/components/DialogErrorWithTabs/Tabs/DatabaseRequestTab/DatabaseRequestTab.d.ts +6 -0
- package/types/ui/components/DialogErrorWithTabs/Tabs/DatabaseResponseTab/DatabaseResponseTab.d.ts +6 -0
- package/types/ui/components/DialogErrorWithTabs/Tabs/DebugTab/DebugTab.d.ts +8 -0
- package/types/ui/components/DialogErrorWithTabs/Tabs/DebugTab/utils.d.ts +1 -0
- package/types/ui/components/DialogErrorWithTabs/Tabs/DocumentationTab/DocumentationTab.d.ts +6 -0
- package/types/ui/components/DialogExternalControl/DialogExternalControl.d.ts +66 -0
- package/types/ui/components/DialogFieldEditor/DialogFieldEditor.d.ts +24 -0
- package/types/ui/components/DialogFilter/BooleanFilter/BooleanFilter.d.ts +8 -0
- package/types/ui/components/DialogFilter/DateFilter/DateFilter.d.ts +12 -0
- package/types/ui/components/DialogFilter/DialogFilter.d.ts +88 -0
- package/types/ui/components/DialogFilter/InputFilter/InputFilter.d.ts +9 -0
- package/types/ui/components/DialogFilter/SelectFilter/SelectFilter.d.ts +35 -0
- package/types/ui/components/DialogFilter/constants.d.ts +15 -0
- package/types/ui/components/DialogFilter/typings.d.ts +8 -0
- package/types/ui/components/DialogFilter/utils.d.ts +6 -0
- package/types/ui/components/DialogGroupControl/DialogGroupControl.d.ts +19 -0
- package/types/ui/components/DialogGroupControl/GroupControlBody/GroupControlBody.d.ts +7 -0
- package/types/ui/components/DialogGroupControl/GroupControlBody/SimilarSelectorsBlock/SimilarSelectorsBlock.d.ts +1 -0
- package/types/ui/components/DialogGroupControl/GroupControlFooter/GroupControlFooter.d.ts +7 -0
- package/types/ui/components/DialogGroupControl/GroupControlSidebar/GroupControlSidebar.d.ts +6 -0
- package/types/ui/components/DialogGroupControl/GroupControlSidebar/TabItemWrapper/TabItemWrapper.d.ts +6 -0
- package/types/ui/components/DialogGroupControl/GroupExtendedSettings/ControlPlacementRow.d.ts +13 -0
- package/types/ui/components/DialogGroupControl/GroupExtendedSettings/GroupExtendedSettings.d.ts +11 -0
- package/types/ui/components/DialogGroupControl/hooks/useSimilarSelectorsActions.d.ts +12 -0
- package/types/ui/components/DialogImageWidget/DialogImageWidget.d.ts +18 -0
- package/types/ui/components/DialogImageWidget/index.d.ts +1 -0
- package/types/ui/components/DialogManager/DialogManager.d.ts +6 -0
- package/types/ui/components/DialogManager/DialogManagerContainer.d.ts +2 -0
- package/types/ui/components/DialogNoRights/DialogNoRights.d.ts +11 -0
- package/types/ui/components/DialogParameter/DefaultValueSection.d.ts +9 -0
- package/types/ui/components/DialogParameter/DialogParameter.d.ts +15 -0
- package/types/ui/components/DialogParameter/TemplateSection.d.ts +8 -0
- package/types/ui/components/DialogParameter/helpers.d.ts +7 -0
- package/types/ui/components/DialogParameter/useParameterForm.d.ts +20 -0
- package/types/ui/components/DialogParameter/useParameterTooltipMarkdown.d.ts +5 -0
- package/types/ui/components/DialogParameter/useValidationErrors.d.ts +8 -0
- package/types/ui/components/DialogQLParameter/DialogQLParameter.d.ts +27 -0
- package/types/ui/components/DialogRelatedEntities/DialogRelatedEntities.d.ts +7 -0
- package/types/ui/components/DialogRelatedEntities/constants.d.ts +5 -0
- package/types/ui/components/DialogRelations/DialogRelations.d.ts +21 -0
- package/types/ui/components/DialogRelations/components/Content/Content.d.ts +17 -0
- package/types/ui/components/DialogRelations/components/Content/Row.d.ts +35 -0
- package/types/ui/components/DialogRelations/components/Content/helpers.d.ts +7 -0
- package/types/ui/components/DialogRelations/components/DialogAliases/DialogAliases.d.ts +12 -0
- package/types/ui/components/DialogRelations/components/DialogAliases/components/AddAliases/AddAliases.d.ts +14 -0
- package/types/ui/components/DialogRelations/components/DialogAliases/components/AddAliases/helpers.d.ts +26 -0
- package/types/ui/components/DialogRelations/components/DialogAliases/components/AliasesDetail/AliasesDetail.d.ts +11 -0
- package/types/ui/components/DialogRelations/components/DialogAliases/components/AliasesList/AliasesInvalidList.d.ts +10 -0
- package/types/ui/components/DialogRelations/components/DialogAliases/components/AliasesList/AliasesList.d.ts +32 -0
- package/types/ui/components/DialogRelations/components/Filters/Filters.d.ts +6 -0
- package/types/ui/components/DialogRelations/constants.d.ts +26 -0
- package/types/ui/components/DialogRelations/helpers.d.ts +37 -0
- package/types/ui/components/DialogRelations/hooks/helpers.d.ts +109 -0
- package/types/ui/components/DialogRelations/hooks/helpersChart.d.ts +30 -0
- package/types/ui/components/DialogRelations/hooks/helpersControls.d.ts +25 -0
- package/types/ui/components/DialogRelations/hooks/helpersDatasets.d.ts +6 -0
- package/types/ui/components/DialogRelations/hooks/useFilteredRelations.d.ts +11 -0
- package/types/ui/components/DialogRelations/hooks/useRelations.d.ts +20 -0
- package/types/ui/components/DialogRelations/types.d.ts +81 -0
- package/types/ui/components/DialogSelectSharedEntry/DialogSelectSharedEntry.d.ts +16 -0
- package/types/ui/components/DialogSharedEntryBindings/DialogSharedEntryBindings.d.ts +16 -0
- package/types/ui/components/DialogSharedEntryBindings/components/DeleteAlert.d.ts +11 -0
- package/types/ui/components/DialogSharedEntryBindings/components/DirectionControl.d.ts +7 -0
- package/types/ui/components/DialogSharedEntryBindings/components/Relations.d.ts +18 -0
- package/types/ui/components/DialogSharedEntryBindings/components/SharedBindingsFooter.d.ts +9 -0
- package/types/ui/components/DialogSharedEntryBindings/components/SharedBindingsHeader.d.ts +7 -0
- package/types/ui/components/DialogSharedEntryBindings/constants.d.ts +9 -0
- package/types/ui/components/DialogSharedEntryBindings/hooks/useSharedEntryBindings.d.ts +21 -0
- package/types/ui/components/DialogSharedEntryBindings/types.d.ts +9 -0
- package/types/ui/components/DialogSharedEntryBindings/utils.d.ts +5 -0
- package/types/ui/components/DialogSharedEntryPermissions/DialogSharedEntryPermissions.d.ts +18 -0
- package/types/ui/components/DialogSharedEntryPermissions/components/PermissionButton/PermissionButton.d.ts +11 -0
- package/types/ui/components/DialogSharedEntryUnbind/DialogSharedEntryUnbind.d.ts +17 -0
- package/types/ui/components/DialogSharedEntryUnbind/constants.d.ts +21 -0
- package/types/ui/components/DialogSharedRelatedEntities/DialogSharedRelatedEntities.d.ts +21 -0
- package/types/ui/components/DialogSuccessWithAction/DialogSuccessWithAction.d.ts +8 -0
- package/types/ui/components/DialogTextWidget/DialogTextWidget.d.ts +19 -0
- package/types/ui/components/DialogTextWidget/index.d.ts +2 -0
- package/types/ui/components/DialogTitleWidget/DialogTitleWidget.d.ts +22 -0
- package/types/ui/components/DialogTitleWidget/useColorSettings.d.ts +41 -0
- package/types/ui/components/DialogWarning/DialogWarning.d.ts +80 -0
- package/types/ui/components/DragAndDrop/DragAndDrop.d.ts +6 -0
- package/types/ui/components/DropdownAction/DropdownAction.d.ts +9 -0
- package/types/ui/components/DropdownNavigation/DropdownNavigation.d.ts +44 -0
- package/types/ui/components/EditableText/EditableText.d.ts +8 -0
- package/types/ui/components/EntitiesList/EntitiesList.d.ts +2 -0
- package/types/ui/components/EntitiesList/types.d.ts +27 -0
- package/types/ui/components/EntityIcon/EntityIcon.d.ts +33 -0
- package/types/ui/components/EntityLink/EntityLink.d.ts +8 -0
- package/types/ui/components/EntityRow/EntityRow.d.ts +11 -0
- package/types/ui/components/EntriesList/EntriesList.d.ts +7 -0
- package/types/ui/components/EntriesList/Item/Item.d.ts +8 -0
- package/types/ui/components/EntriesList/types.d.ts +5 -0
- package/types/ui/components/EntryBreadcrumbs/EntryBreadcrumbs.d.ts +2 -0
- package/types/ui/components/EntryBreadcrumbs/helpers.d.ts +11 -0
- package/types/ui/components/EntryContextMenu/EntryContextMenu.d.ts +65 -0
- package/types/ui/components/EntryContextMenu/EntryContextMenuBase/EntryContextMenuBase.d.ts +17 -0
- package/types/ui/components/EntryContextMenu/constants.d.ts +32 -0
- package/types/ui/components/EntryContextMenu/helpers.d.ts +48 -0
- package/types/ui/components/EntryContextMenu/index.d.ts +3 -0
- package/types/ui/components/EntryContextMenu/types.d.ts +37 -0
- package/types/ui/components/EntryContextMenu/utils.d.ts +2 -0
- package/types/ui/components/EntryContextMenu/withConfiguredEntryContextMenu/helpers.d.ts +2 -0
- package/types/ui/components/EntryContextMenu/withConfiguredEntryContextMenu/withConfiguredEntryContextMenu.d.ts +14 -0
- package/types/ui/components/EntryDialogues/DialogAccess/DialogAccess.d.ts +8 -0
- package/types/ui/components/EntryDialogues/DialogAccessDescription/DialogAccessDescription.d.ts +16 -0
- package/types/ui/components/EntryDialogues/DialogCopyEntry/DialogCopyEntry.d.ts +42 -0
- package/types/ui/components/EntryDialogues/DialogCopyEntry/index.d.ts +2 -0
- package/types/ui/components/EntryDialogues/DialogCreateDashboard/DialogCreateDashboard.d.ts +32 -0
- package/types/ui/components/EntryDialogues/DialogCreateDashboard/index.d.ts +2 -0
- package/types/ui/components/EntryDialogues/DialogCreateEditorChart/DialogCreateEditorChart.d.ts +33 -0
- package/types/ui/components/EntryDialogues/DialogCreateEditorChart/index.d.ts +2 -0
- package/types/ui/components/EntryDialogues/DialogCreateFolder/DialogCreateFolder.d.ts +27 -0
- package/types/ui/components/EntryDialogues/DialogCreateFolder/index.d.ts +2 -0
- package/types/ui/components/EntryDialogues/DialogCreateQLChart/DialogCreateQLChart.d.ts +35 -0
- package/types/ui/components/EntryDialogues/DialogCreateQLChart/index.d.ts +2 -0
- package/types/ui/components/EntryDialogues/DialogCreateWizardChart/DialogCreateWizardChart.d.ts +35 -0
- package/types/ui/components/EntryDialogues/DialogCreateWizardChart/index.d.ts +2 -0
- package/types/ui/components/EntryDialogues/DialogCreateWorkbookEntry/DialogCreateWorkbookEntry.d.ts +51 -0
- package/types/ui/components/EntryDialogues/DialogDeleteEntry/DialogDeleteEntry.d.ts +38 -0
- package/types/ui/components/EntryDialogues/DialogDeleteEntry/index.d.ts +2 -0
- package/types/ui/components/EntryDialogues/DialogEditFavoritesAlias/DialogEditFavoritesAlias.d.ts +7 -0
- package/types/ui/components/EntryDialogues/DialogEditFavoritesAlias/index.d.ts +1 -0
- package/types/ui/components/EntryDialogues/DialogEditWarning/DialogEditWarning.d.ts +22 -0
- package/types/ui/components/EntryDialogues/DialogEntrySaveAsNew/DialogEntrySaveAsNew.d.ts +33 -0
- package/types/ui/components/EntryDialogues/DialogEntrySaveAsNew/index.d.ts +2 -0
- package/types/ui/components/EntryDialogues/DialogMakeActualConfirm/DialogMakeActualConfirm.d.ts +25 -0
- package/types/ui/components/EntryDialogues/DialogMigrateToWorkbook/DialogMigrateToWorkbook.d.ts +6 -0
- package/types/ui/components/EntryDialogues/DialogMigrateToWorkbook/index.d.ts +1 -0
- package/types/ui/components/EntryDialogues/DialogMoveEntry/DialogMoveEntry.d.ts +28 -0
- package/types/ui/components/EntryDialogues/DialogMoveEntry/index.d.ts +2 -0
- package/types/ui/components/EntryDialogues/DialogRenameEntry/DialogRenameEntry.d.ts +40 -0
- package/types/ui/components/EntryDialogues/DialogRenameEntry/index.d.ts +2 -0
- package/types/ui/components/EntryDialogues/DialogShareEntry/DialogShareEntry.d.ts +6 -0
- package/types/ui/components/EntryDialogues/DialogShareEntry/index.d.ts +1 -0
- package/types/ui/components/EntryDialogues/DialogSwitchPublic/DialogPublic/AlertTooltip/AlertTooltip.d.ts +8 -0
- package/types/ui/components/EntryDialogues/DialogSwitchPublic/DialogPublic/AuthorSection/AuthorSection.d.ts +15 -0
- package/types/ui/components/EntryDialogues/DialogSwitchPublic/DialogPublic/ContentError/ContentError.d.ts +9 -0
- package/types/ui/components/EntryDialogues/DialogSwitchPublic/DialogPublic/ContentLoader/ContentLoader.d.ts +4 -0
- package/types/ui/components/EntryDialogues/DialogSwitchPublic/DialogPublic/CurrentEntrySection/CurrentEntrySection.d.ts +12 -0
- package/types/ui/components/EntryDialogues/DialogSwitchPublic/DialogPublic/DialogAlert/DialogAlert.d.ts +67 -0
- package/types/ui/components/EntryDialogues/DialogSwitchPublic/DialogPublic/DialogPublic.d.ts +8 -0
- package/types/ui/components/EntryDialogues/DialogSwitchPublic/DialogPublic/RelationsList/RelationsList.d.ts +13 -0
- package/types/ui/components/EntryDialogues/DialogSwitchPublic/DialogPublic/SharedLink/SharedLink.d.ts +8 -0
- package/types/ui/components/EntryDialogues/DialogSwitchPublic/DialogPublic/constants.d.ts +9 -0
- package/types/ui/components/EntryDialogues/DialogSwitchPublic/DialogPublic/helpers.d.ts +1 -0
- package/types/ui/components/EntryDialogues/DialogSwitchPublic/DialogPublic/types.d.ts +111 -0
- package/types/ui/components/EntryDialogues/DialogSwitchPublic/DialogPublic/useDialogPublicState.d.ts +36 -0
- package/types/ui/components/EntryDialogues/DialogSwitchPublic/DialogSwitchPublic.d.ts +7 -0
- package/types/ui/components/EntryDialogues/DialogSwitchPublic/index.d.ts +2 -0
- package/types/ui/components/EntryDialogues/DialogUnlock/DialogUnlock.d.ts +8 -0
- package/types/ui/components/EntryDialogues/DialogUnlock/index.d.ts +2 -0
- package/types/ui/components/EntryDialogues/EntryDialogBase/EntryDialogBase.d.ts +62 -0
- package/types/ui/components/EntryDialogues/EntryDialogues.d.ts +95 -0
- package/types/ui/components/EntryDialogues/constants.d.ts +4 -0
- package/types/ui/components/EntryDialogues/index.d.ts +6 -0
- package/types/ui/components/EntryDialogues/types.d.ts +12 -0
- package/types/ui/components/EntryDialogues/utils.d.ts +1 -0
- package/types/ui/components/EntryIcon/EntryIcon.d.ts +17 -0
- package/types/ui/components/EntryRow/EntryRow.d.ts +31 -0
- package/types/ui/components/EntrySuggest/EntrySuggest.d.ts +10 -0
- package/types/ui/components/EntrySuggest/types.d.ts +12 -0
- package/types/ui/components/EntryTitle/EntryTitle.d.ts +13 -0
- package/types/ui/components/EntryTitle/index.d.ts +2 -0
- package/types/ui/components/EntryTitle/types.d.ts +6 -0
- package/types/ui/components/EntryTitle/utils.d.ts +2 -0
- package/types/ui/components/ErrorBoundary/ErrorBoundary.d.ts +17 -0
- package/types/ui/components/ErrorContent/DebugInfo/DebugInfo.d.ts +7 -0
- package/types/ui/components/ErrorContent/ErrorContent.d.ts +70 -0
- package/types/ui/components/ErrorPage/ErrorPage.d.ts +13 -0
- package/types/ui/components/ErrorPage/withErrorPage.d.ts +63 -0
- package/types/ui/components/ExpandablePanel/ExpandablePanel.d.ts +10 -0
- package/types/ui/components/FieldEditor/FieldEditor.d.ts +81 -0
- package/types/ui/components/FieldEditor/components/DocSection.d.ts +44 -0
- package/types/ui/components/FieldEditor/components/FormulaSection.d.ts +39 -0
- package/types/ui/components/FieldEditor/components/NameHeader.d.ts +6 -0
- package/types/ui/components/FieldEditor/components/Settings.d.ts +15 -0
- package/types/ui/components/FieldEditor/components/SourceSection.d.ts +14 -0
- package/types/ui/components/FieldEditor/components/helpers.d.ts +4 -0
- package/types/ui/components/FieldEditor/constants.d.ts +18 -0
- package/types/ui/components/FieldEditor/index.d.ts +17 -0
- package/types/ui/components/FieldEditor/typings.d.ts +13 -0
- package/types/ui/components/FieldEditor/utils.d.ts +8 -0
- package/types/ui/components/FieldWrapper/FieldWrapper.d.ts +7 -0
- package/types/ui/components/FloatMenu/FloatMenu.d.ts +8 -0
- package/types/ui/components/FormSection/FormSection.d.ts +9 -0
- package/types/ui/components/FormattedValue/FormattedValue.d.ts +18 -0
- package/types/ui/components/IamAccessDialog/AccessList/AccessList.d.ts +18 -0
- package/types/ui/components/IamAccessDialog/AccessList/ActionPanel/ActionPanel.d.ts +11 -0
- package/types/ui/components/IamAccessDialog/AccessList/Block/Block.d.ts +10 -0
- package/types/ui/components/IamAccessDialog/AccessList/DirectAccessesTable/Controls/Controls.d.ts +15 -0
- package/types/ui/components/IamAccessDialog/AccessList/DirectAccessesTable/DirectAccessesTable.d.ts +17 -0
- package/types/ui/components/IamAccessDialog/AccessList/DirectAccessesTable/utils.d.ts +2 -0
- package/types/ui/components/IamAccessDialog/AccessList/Filters/Filters.d.ts +11 -0
- package/types/ui/components/IamAccessDialog/AccessList/InheritedAccessesTable/InheritedAccessesTable.d.ts +13 -0
- package/types/ui/components/IamAccessDialog/AddSubjects/ActionPanel/ActionPanel.d.ts +14 -0
- package/types/ui/components/IamAccessDialog/AddSubjects/AddSubjects.d.ts +12 -0
- package/types/ui/components/IamAccessDialog/AddSubjects/SubjectsList/SubjectsList.d.ts +7 -0
- package/types/ui/components/IamAccessDialog/IamAccessDialog.d.ts +8 -0
- package/types/ui/components/IamAccessDialog/IamAccessDialogComponent.d.ts +3 -0
- package/types/ui/components/IamAccessDialog/ResourceInfo/ResourceInfo.d.ts +8 -0
- package/types/ui/components/IamAccessDialog/constants.d.ts +1 -0
- package/types/ui/components/IamAccessDialog/index.d.ts +1 -0
- package/types/ui/components/IamAccessDialog/utils.d.ts +10 -0
- package/types/ui/components/IconById/IconById.d.ts +6 -0
- package/types/ui/components/Illustration/Illustration.d.ts +2 -0
- package/types/ui/components/Illustration/context.d.ts +2 -0
- package/types/ui/components/Illustration/getIllustrationStore.d.ts +28 -0
- package/types/ui/components/Illustration/getRebrandingIllustrationStore.d.ts +28 -0
- package/types/ui/components/Illustration/types.d.ts +14 -0
- package/types/ui/components/Illustration/utils.d.ts +2 -0
- package/types/ui/components/InaccessibleOnMobileInset/InaccessibleOnMobileInset.d.ts +1 -0
- package/types/ui/components/Interpolate/Interpolate.d.ts +8 -0
- package/types/ui/components/Interpolate/index.d.ts +2 -0
- package/types/ui/components/Interpolate/utils.d.ts +3 -0
- package/types/ui/components/InterpolatedText/InterpolatedText.d.ts +11 -0
- package/types/ui/components/LandingPage/LandingPage.d.ts +1 -0
- package/types/ui/components/ListWithMenu/ListWithMenu.d.ts +22 -0
- package/types/ui/components/ListWithRemove/ListWithRemove.d.ts +10 -0
- package/types/ui/components/LocationChange/LocationChange.d.ts +6 -0
- package/types/ui/components/MarkdownControl/MarkdownControl.d.ts +2 -0
- package/types/ui/components/MarkdownHelpPopover/Content.d.ts +6 -0
- package/types/ui/components/MarkdownHelpPopover/MarkdownHelpPopover.d.ts +10 -0
- package/types/ui/components/Markup/Markup.d.ts +9 -0
- package/types/ui/components/Markup/components/MarkupTooltip/MarkupTooltip.d.ts +11 -0
- package/types/ui/components/Markup/components/UserInfo/UserInfo.d.ts +9 -0
- package/types/ui/components/Markup/components/index.d.ts +2 -0
- package/types/ui/components/Markup/index.d.ts +1 -0
- package/types/ui/components/Markup/types.d.ts +9 -0
- package/types/ui/components/Markup/utils.d.ts +1 -0
- package/types/ui/components/MigrateToWorkbookDialog/MigrateToWorkbookDialog.d.ts +14 -0
- package/types/ui/components/MigrateToWorkbookDialog/components/Body/Body.d.ts +10 -0
- package/types/ui/components/MigrateToWorkbookDialog/components/Body/index.d.ts +1 -0
- package/types/ui/components/MigrateToWorkbookDialog/components/EntriesGroup/EntriesGroup.d.ts +10 -0
- package/types/ui/components/MigrateToWorkbookDialog/components/EntriesGroup/index.d.ts +1 -0
- package/types/ui/components/MigrateToWorkbookDialog/components/EntryRow/EntryRow.d.ts +15 -0
- package/types/ui/components/MigrateToWorkbookDialog/components/EntryRow/index.d.ts +1 -0
- package/types/ui/components/MigrateToWorkbookDialog/index.d.ts +1 -0
- package/types/ui/components/MobileHeader/MobileHeader.d.ts +1 -0
- package/types/ui/components/MobileHeader/MobileHeaderComponent/BurgerMenuFooter/BurgerMenuFooter.d.ts +1 -0
- package/types/ui/components/MobileHeader/MobileHeaderComponent/MobileHeaderComponent.d.ts +2 -0
- package/types/ui/components/MobileHeader/MobileHeaderComponent/UserPanel/UserPanel.d.ts +1 -0
- package/types/ui/components/MobileHeader/constants.d.ts +1 -0
- package/types/ui/components/MobileTocToggle/MobileTocToggle.d.ts +3 -0
- package/types/ui/components/Monaco/LazyMonaco.d.ts +5 -0
- package/types/ui/components/Monaco/Monaco.d.ts +19 -0
- package/types/ui/components/Navigation/Base/NavigationBase.d.ts +85 -0
- package/types/ui/components/Navigation/Base/configure.d.ts +133 -0
- package/types/ui/components/Navigation/Base/types.d.ts +8 -0
- package/types/ui/components/Navigation/Base/utils.d.ts +1 -0
- package/types/ui/components/Navigation/Core/CreateEntry/CreateEntry.d.ts +18 -0
- package/types/ui/components/Navigation/Core/CreateEntry/getCreateEntryItems.d.ts +3 -0
- package/types/ui/components/Navigation/Core/EntryContextButton/EntryContextButton.d.ts +14 -0
- package/types/ui/components/Navigation/Core/ErrorView/ErrorView.d.ts +7 -0
- package/types/ui/components/Navigation/Core/FavoritesNameWithAliasItem/FavoritesNameWithAliasItem.d.ts +11 -0
- package/types/ui/components/Navigation/Core/NavigationBreadcrumbs/BreadcrumbMenu.d.ts +17 -0
- package/types/ui/components/Navigation/Core/NavigationBreadcrumbs/NavigationBreadcrumbs.d.ts +25 -0
- package/types/ui/components/Navigation/Core/NavigationEntries.d.ts +113 -0
- package/types/ui/components/Navigation/Core/NavigationInline.d.ts +33 -0
- package/types/ui/components/Navigation/Core/NavigationMinimal.d.ts +43 -0
- package/types/ui/components/Navigation/Core/NavigationModal.d.ts +54 -0
- package/types/ui/components/Navigation/Core/OrderSelect/OrderSelect.d.ts +9 -0
- package/types/ui/components/Navigation/Core/SearchInput/SearchInput.d.ts +13 -0
- package/types/ui/components/Navigation/Core/Sidebar/Sidebar.d.ts +22 -0
- package/types/ui/components/Navigation/Core/TableView/BatchDialog/BatchDialog.d.ts +12 -0
- package/types/ui/components/Navigation/Core/TableView/List/List.d.ts +15 -0
- package/types/ui/components/Navigation/Core/TableView/Row/Row.d.ts +25 -0
- package/types/ui/components/Navigation/Core/TableView/Row/RowHeader.d.ts +4 -0
- package/types/ui/components/Navigation/Core/TableView/TableView.d.ts +2 -0
- package/types/ui/components/Navigation/Core/TableView/types.d.ts +47 -0
- package/types/ui/components/Navigation/Core/TableView/useBatchSelect.d.ts +4 -0
- package/types/ui/components/Navigation/NavigationMinimal.d.ts +32 -0
- package/types/ui/components/Navigation/NavigationModal.d.ts +13 -0
- package/types/ui/components/Navigation/PlaceSelect/PlaceSelect.d.ts +21 -0
- package/types/ui/components/Navigation/components/BatchPanel/BatchPanel.d.ts +8 -0
- package/types/ui/components/Navigation/components/EmptyState/EmptyState.d.ts +9 -0
- package/types/ui/components/Navigation/components/EmptyState/utils.d.ts +2 -0
- package/types/ui/components/Navigation/constants.d.ts +24 -0
- package/types/ui/components/Navigation/dialogs/BatchMove/AccessError/AccessError.d.ts +9 -0
- package/types/ui/components/Navigation/dialogs/BatchMove/BatchMove.d.ts +9 -0
- package/types/ui/components/Navigation/dialogs/BatchMove/MoveError/MoveError.d.ts +9 -0
- package/types/ui/components/Navigation/dialogs/BatchMove/SelectDestination/SelectDestination.d.ts +7 -0
- package/types/ui/components/Navigation/dialogs/BatchMove/types.d.ts +5 -0
- package/types/ui/components/Navigation/hoc/resolveNavigationPath.d.ts +10 -0
- package/types/ui/components/Navigation/index.d.ts +4 -0
- package/types/ui/components/Navigation/settings.d.ts +11 -0
- package/types/ui/components/Navigation/types.d.ts +48 -0
- package/types/ui/components/Navigation/util.d.ts +10 -0
- package/types/ui/components/NavigationPrompt/NavigationPrompt.d.ts +6 -0
- package/types/ui/components/NavigationTabs/NavigationTabs.d.ts +12 -0
- package/types/ui/components/NumberFormatSettings/NumberFormatSettings.d.ts +10 -0
- package/types/ui/components/NumberFormatSettings/NumberInput/NumberInput.d.ts +10 -0
- package/types/ui/components/OpenDialogNeedReset/OpenDialogNeedReset.d.ts +5 -0
- package/types/ui/components/OrderBySelect/OrderBySelect.d.ts +12 -0
- package/types/ui/components/OrderBySelect/constants.d.ts +6 -0
- package/types/ui/components/OrderBySelect/index.d.ts +3 -0
- package/types/ui/components/OrderBySelect/types.d.ts +10 -0
- package/types/ui/components/PageTitle/PageTitle.d.ts +11 -0
- package/types/ui/components/PageTitle/index.d.ts +2 -0
- package/types/ui/components/PageTitle/usePageTitle.d.ts +13 -0
- package/types/ui/components/PaletteIcon/PaletteIcon.d.ts +12 -0
- package/types/ui/components/PaletteItem/PaletteItem.d.ts +15 -0
- package/types/ui/components/PathSelect/PathSelect.d.ts +34 -0
- package/types/ui/components/Picture/Picture.d.ts +7 -0
- package/types/ui/components/PlaceholderIllustration/PlaceholderIllustration.d.ts +2 -0
- package/types/ui/components/PlaceholderIllustration/types.d.ts +11 -0
- package/types/ui/components/Progress/DialogCounterProgress.d.ts +10 -0
- package/types/ui/components/ProgressBar/ProgressBar.d.ts +8 -0
- package/types/ui/components/RelativeDatesPicker/RelativeDatesPicker.d.ts +29 -0
- package/types/ui/components/RelativeDatesPicker/constants.d.ts +27 -0
- package/types/ui/components/RelativeDatesPicker/types.d.ts +42 -0
- package/types/ui/components/RelativeDatesPicker/utils.d.ts +42 -0
- package/types/ui/components/RevisionStatusPoint/RevisionStatusPoint.d.ts +5 -0
- package/types/ui/components/Revisions/Revisions.d.ts +75 -0
- package/types/ui/components/Revisions/RevisionsList/RevisionsList.d.ts +27 -0
- package/types/ui/components/Revisions/helpers.d.ts +7 -0
- package/types/ui/components/Revisions/types.d.ts +14 -0
- package/types/ui/components/RevisionsPanel/RevisionsPanel.d.ts +30 -0
- package/types/ui/components/RevisionsPanel/components/RevisionsControls.d.ts +13 -0
- package/types/ui/components/RevisionsPanel/utils.d.ts +10 -0
- package/types/ui/components/ScrollableWithShadow/ScrollableWithShadow.d.ts +13 -0
- package/types/ui/components/SectionWrapper/SectionWrapper.d.ts +14 -0
- package/types/ui/components/Select/constants/SelectStyles.d.ts +3 -0
- package/types/ui/components/Select/hooks/useSelectAsyncFetch/useIntersection.d.ts +6 -0
- package/types/ui/components/Select/hooks/useSelectAsyncFetch/useSelectAsyncFetch.d.ts +15 -0
- package/types/ui/components/Select/hooks/useSelectInfinityFetch/types.d.ts +5 -0
- package/types/ui/components/Select/hooks/useSelectInfinityFetch/useSelectInfinityFetch.d.ts +11 -0
- package/types/ui/components/Select/hooks/useSelectOptionsEnhancer.d.ts +2 -0
- package/types/ui/components/Select/hooks/useSelectRenderEmptyOptions/useSelectRenderEmptyOptions.d.ts +8 -0
- package/types/ui/components/Select/hooks/useSelectRenderError.d.ts +8 -0
- package/types/ui/components/Select/hooks/useSelectRenderFilter/useSelectRenderFilter.d.ts +16 -0
- package/types/ui/components/Select/wrappers/SelectAsync.d.ts +5 -0
- package/types/ui/components/Select/wrappers/SelectFeatured.d.ts +10 -0
- package/types/ui/components/Select/wrappers/SelectFeaturedAsync.d.ts +7 -0
- package/types/ui/components/SelectComponents/components/SelectOptionWithIcon/SelectOptionWithIcon.d.ts +10 -0
- package/types/ui/components/SelectComponents/index.d.ts +1 -0
- package/types/ui/components/SelectMigrationToWorkbookDialog/Body/Body.d.ts +18 -0
- package/types/ui/components/SelectMigrationToWorkbookDialog/SelectMigrationToWorkbookDialog.d.ts +13 -0
- package/types/ui/components/SelectMigrationToWorkbookDialog/constants.d.ts +25 -0
- package/types/ui/components/SelectMigrationToWorkbookDialog/index.d.ts +1 -0
- package/types/ui/components/SharedBindingsList/ListSearch.d.ts +11 -0
- package/types/ui/components/SharedBindingsList/SharedBindingsList.d.ts +14 -0
- package/types/ui/components/SharedEntryIcon/SharedEntryIcon.d.ts +9 -0
- package/types/ui/components/SlugifyUrl/SlugifyUrl.d.ts +6 -0
- package/types/ui/components/SlugifyUrl/index.d.ts +1 -0
- package/types/ui/components/SmartLoader/SmartLoader.d.ts +8 -0
- package/types/ui/components/TabMenu/TabMenu.d.ts +2 -0
- package/types/ui/components/TabMenu/types.d.ts +46 -0
- package/types/ui/components/Tabs/Tabs.d.ts +7 -0
- package/types/ui/components/Tabs/withDatalensSpecific.d.ts +9 -0
- package/types/ui/components/TagInput/TagInput.d.ts +13 -0
- package/types/ui/components/TemplateTextPaper/TemplateTextPaper.d.ts +7 -0
- package/types/ui/components/TextEditor/TextEditor.d.ts +11 -0
- package/types/ui/components/UserAvatar/UserAvatarById.d.ts +2 -0
- package/types/ui/components/UserMenu/UserAvatar.d.ts +4 -0
- package/types/ui/components/UserMenu/UserMenu.d.ts +3 -0
- package/types/ui/components/UsersSuggest/UsersSuggest.d.ts +9 -0
- package/types/ui/components/UsersSuggest/types.d.ts +10 -0
- package/types/ui/components/ValuesList/ValuesList.d.ts +12 -0
- package/types/ui/components/Veil/Veil.d.ts +14 -0
- package/types/ui/components/ViewAsync/ViewAsync.d.ts +23 -0
- package/types/ui/components/ViewError/ViewError.d.ts +22 -0
- package/types/ui/components/ViewLoader/ViewLoader.d.ts +8 -0
- package/types/ui/components/WidgetRoundingsInput/WidgetRoundingsInput.d.ts +6 -0
- package/types/ui/components/Widgets/Chart/Chart.d.ts +7 -0
- package/types/ui/components/Widgets/Chart/ChartAlert.d.ts +7 -0
- package/types/ui/components/Widgets/Chart/ChartSelector.d.ts +7 -0
- package/types/ui/components/Widgets/Chart/ChartWidget.d.ts +7 -0
- package/types/ui/components/Widgets/Chart/ChartWidgetWithProvider.d.ts +8 -0
- package/types/ui/components/Widgets/Chart/components/ChartInfoIcon.d.ts +5 -0
- package/types/ui/components/Widgets/Chart/components/Content.d.ts +2 -0
- package/types/ui/components/Widgets/Chart/components/Header.d.ts +13 -0
- package/types/ui/components/Widgets/Chart/components/WidgetFooter.d.ts +10 -0
- package/types/ui/components/Widgets/Chart/components/WidgetHeader.d.ts +53 -0
- package/types/ui/components/Widgets/Chart/helpers/helpers.d.ts +139 -0
- package/types/ui/components/Widgets/Chart/helpers/yandex-map.d.ts +12 -0
- package/types/ui/components/Widgets/Chart/hooks/useAutoHeightResizeObserver.d.ts +12 -0
- package/types/ui/components/Widgets/Chart/hooks/useChartActivities.d.ts +15 -0
- package/types/ui/components/Widgets/Chart/hooks/useIntersectionObserver.d.ts +8 -0
- package/types/ui/components/Widgets/Chart/hooks/useLoadingChart.d.ts +203 -0
- package/types/ui/components/Widgets/Chart/hooks/useLoadingChartSelector.d.ts +184 -0
- package/types/ui/components/Widgets/Chart/hooks/useLoadingChartWidget.d.ts +195 -0
- package/types/ui/components/Widgets/Chart/hooks/useMemoCallback.d.ts +6 -0
- package/types/ui/components/Widgets/Chart/store/reducer.d.ts +3 -0
- package/types/ui/components/Widgets/Chart/store/types.d.ts +58 -0
- package/types/ui/components/Widgets/Chart/types.d.ts +260 -0
- package/types/ui/components/Widgets/Chart/utils.d.ts +5 -0
- package/types/ui/components/WorkbookIcon/WorkbookIcon.d.ts +8 -0
- package/types/ui/components/WorkbookNavigationMinimal/WorkbookNavigationMinimal.d.ts +47 -0
- package/types/ui/components/WorkbookNavigationMinimal/components/ListWithSharedEntries.d.ts +13 -0
- package/types/ui/components/WorkbookNavigationMinimal/constants.d.ts +1 -0
- package/types/ui/components/WorkbookNavigationMinimal/types.d.ts +10 -0
- package/types/ui/components/YfmWrapper/YfmWrapper.d.ts +3 -0
- package/types/ui/components/YfmWrapper/YfmWrapperContent.d.ts +8 -0
- package/types/ui/components/common/Datepicker/Calendar/Calendar.d.ts +51 -0
- package/types/ui/components/common/Datepicker/Datepicker.d.ts +36 -0
- package/types/ui/components/common/Datepicker/Month/Month.d.ts +61 -0
- package/types/ui/components/common/Datepicker/Months/Months.d.ts +29 -0
- package/types/ui/components/common/Datepicker/PopupContent/PopupContent.d.ts +25 -0
- package/types/ui/components/common/Datepicker/Presets/Presets.d.ts +18 -0
- package/types/ui/components/common/Datepicker/Quarters/Quarters.d.ts +28 -0
- package/types/ui/components/common/Datepicker/YearSwitcher/YearSwitcher.d.ts +21 -0
- package/types/ui/components/common/Datepicker/Years/Years.d.ts +27 -0
- package/types/ui/components/common/Datepicker/constants.d.ts +46 -0
- package/types/ui/components/common/Datepicker/index.d.ts +4 -0
- package/types/ui/components/common/Datepicker/utils.d.ts +34 -0
- package/types/ui/components/common/DatepickerControl/DatepickerControl.d.ts +5 -0
- package/types/ui/components/common/RangeInputPicker/RangeInputPicker.d.ts +60 -0
- package/types/ui/components/common/RangeInputPicker/constants.d.ts +3 -0
- package/types/ui/components/common/RangeInputPicker/index.d.ts +1 -0
- package/types/ui/components/common/RangeInputPicker/types.d.ts +32 -0
- package/types/ui/components/common/RangeInputPicker/utils.d.ts +15 -0
- package/types/ui/components/common/YCSelect/Item/Item.d.ts +52 -0
- package/types/ui/components/common/YCSelect/Items/Items.d.ts +76 -0
- package/types/ui/components/common/YCSelect/Search/Search.d.ts +20 -0
- package/types/ui/components/common/YCSelect/YCSelect.d.ts +96 -0
- package/types/ui/components/common/YCSelect/constants.d.ts +2 -0
- package/types/ui/components/common/YCSelect/index.d.ts +4 -0
- package/types/ui/components/common/YCSelect/isBothEmpty.d.ts +1 -0
- package/types/ui/components/common/YCSelect/utils.d.ts +16 -0
- package/types/ui/configs/common/icons.d.ts +25 -0
- package/types/ui/configs/index.d.ts +27 -0
- package/types/ui/constants/common.d.ts +197 -0
- package/types/ui/constants/connections.d.ts +6 -0
- package/types/ui/constants/dialogs.d.ts +24 -0
- package/types/ui/constants/embedded.d.ts +4 -0
- package/types/ui/constants/index.d.ts +6 -0
- package/types/ui/constants/misc.d.ts +77 -0
- package/types/ui/constants/mobile.d.ts +8 -0
- package/types/ui/constants/navigation.d.ts +1 -0
- package/types/ui/constants/operations.d.ts +37 -0
- package/types/ui/constants/visualizations/combined-chart.d.ts +2 -0
- package/types/ui/constants/visualizations/donut.d.ts +2 -0
- package/types/ui/constants/visualizations/flatTable.d.ts +9 -0
- package/types/ui/constants/visualizations/geolayer.d.ts +2 -0
- package/types/ui/constants/visualizations/geopoint.d.ts +3 -0
- package/types/ui/constants/visualizations/geopolygon.d.ts +2 -0
- package/types/ui/constants/visualizations/heatmap.d.ts +2 -0
- package/types/ui/constants/visualizations/index.d.ts +347 -0
- package/types/ui/constants/visualizations/line.d.ts +8 -0
- package/types/ui/constants/visualizations/metric.d.ts +2 -0
- package/types/ui/constants/visualizations/pie.d.ts +2 -0
- package/types/ui/constants/visualizations/pivotTable.d.ts +2 -0
- package/types/ui/constants/visualizations/polyline.d.ts +2 -0
- package/types/ui/constants/visualizations/scatter.d.ts +2 -0
- package/types/ui/constants/visualizations/treemap.d.ts +13 -0
- package/types/ui/constants/visualizations/utils.d.ts +2 -0
- package/types/ui/constants/workbooks.d.ts +2 -0
- package/types/ui/constants/yfm.d.ts +4 -0
- package/types/ui/datalens/helpers.d.ts +2 -0
- package/types/ui/datalens/hooks.d.ts +1 -0
- package/types/ui/datalens/index.d.ts +9 -0
- package/types/ui/datalens/pages/AuthPage/AuthPage.d.ts +3 -0
- package/types/ui/datalens/pages/CollectionsNavigationPage/CollectionsNavigationPage.d.ts +2 -0
- package/types/ui/datalens/pages/ConnectionsPage/ConnectionsPage.d.ts +2 -0
- package/types/ui/datalens/pages/DashAndWizardQLPages/DashAndWizardQLPages.d.ts +29 -0
- package/types/ui/datalens/pages/DashPage/DashPage.d.ts +2 -0
- package/types/ui/datalens/pages/DatasetPage/DatasetPage.d.ts +2 -0
- package/types/ui/datalens/pages/FallbackPage/FallbackPage.d.ts +5 -0
- package/types/ui/datalens/pages/LandingPage/LandingPage.d.ts +2 -0
- package/types/ui/datalens/pages/MainPage/MainPage.d.ts +2 -0
- package/types/ui/datalens/pages/OwnUserProfilePage/OwnUserProfilePage.d.ts +2 -0
- package/types/ui/datalens/pages/PreviewPage/PreviewPage.d.ts +2 -0
- package/types/ui/datalens/pages/QLPage/QLPage.d.ts +5 -0
- package/types/ui/datalens/pages/ServiceSettingsPage/ServiceSettingsPage.d.ts +2 -0
- package/types/ui/datalens/pages/WizardPage/WizardPage.d.ts +2 -0
- package/types/ui/datalens/render.d.ts +8 -0
- package/types/ui/entries/dl-main.d.ts +0 -0
- package/types/ui/entries/main.d.ts +3 -0
- package/types/ui/hoc/index.d.ts +1 -0
- package/types/ui/hoc/withEnabledFeature.d.ts +5 -0
- package/types/ui/hoc/withHiddenUnmount.d.ts +59 -0
- package/types/ui/hoc/withHotkeysContext.d.ts +5 -0
- package/types/ui/hoc/withInaccessibleOnMobile.d.ts +61 -0
- package/types/ui/hoc/withPromiseOpen.d.ts +66 -0
- package/types/ui/hooks/index.d.ts +7 -0
- package/types/ui/hooks/useBeforeLoad.d.ts +1 -0
- package/types/ui/hooks/useBindHotkey.d.ts +17 -0
- package/types/ui/hooks/useChangedProp.d.ts +1 -0
- package/types/ui/hooks/useEffectOnce.d.ts +2 -0
- package/types/ui/hooks/useEnterClick.d.ts +2 -0
- package/types/ui/hooks/useHover.d.ts +7 -0
- package/types/ui/hooks/useLocalStorageFallback.d.ts +9 -0
- package/types/ui/hooks/useMarkdown.d.ts +9 -0
- package/types/ui/hooks/useMountedState.d.ts +2 -0
- package/types/ui/hooks/useOutsideClick.d.ts +2 -0
- package/types/ui/hooks/usePrevious.d.ts +1 -0
- package/types/ui/hooks/useRefMounted.d.ts +2 -0
- package/types/ui/hooks/useSetState.d.ts +1 -0
- package/types/ui/hooks/useShallowEqualSelector.d.ts +2 -0
- package/types/ui/hooks/useSyncedState.d.ts +2 -0
- package/types/ui/hooks/useTitle.d.ts +1 -0
- package/types/ui/index.d.ts +76 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/ChartKit.d.ts +34 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/ChartKitAdapter.d.ts +27 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/ChartKitTooltip/ChartKitTooltip.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Error/Error.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/IconRenderer.d.ts +9 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/Icons/CirclePointIcon.d.ts +3 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/Icons/DashDotLineIcon.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/Icons/DashLineIcon.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/Icons/DiamondPointIcon.d.ts +3 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/Icons/DotLineIcon.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/Icons/LongDashDotDotLineIcon.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/Icons/LongDashDotLineIcon.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/Icons/LongDashLineIcon.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/Icons/ShortDashDotDotLineIcon.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/Icons/ShortDashDotLineIcon.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/Icons/ShortDashLineIcon.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/Icons/ShortDotLineIcon.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/Icons/SolidLineIcon.d.ts +3 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/Icons/SquarePointIcon.d.ts +3 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/Icons/TriangleDownPointIcon.d.ts +3 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/Icons/TrianglePointIcon.d.ts +3 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/constants.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/renderTooltipIcon.d.ts +6 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/template-icons/DashDotLineIcon.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/template-icons/DashLineIcon.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/template-icons/DotLineIcon.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/template-icons/LongDashDotDotLineIcon.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/template-icons/LongDashDotLineIcon.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/template-icons/LongDashLineIcon.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/template-icons/ShortDashDotDotLineIcon.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/template-icons/ShortDashDotLineIcon.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/template-icons/ShortDashLineIcon.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/template-icons/ShortDotLineIcon.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/template-icons/SolidLineIcon.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/template-icons/index.d.ts +11 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/types.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/IconRenderer/utils.d.ts +7 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Loader/Loader.d.ts +7 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/Widget.d.ts +29 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/AlertWidget/AlertWidget.d.ts +38 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/AlertWidget/utils.d.ts +76 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/Markdown/Markdown.d.ts +6 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/Table/Bar/Bar.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/Table/Bar/types.d.ts +55 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/Table/Bar/utils.d.ts +13 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/Table/Paginator/Paginator.d.ts +11 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/Table/Table.d.ts +24 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/Table/WrappedHTMLNode.d.ts +9 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/Table/types.d.ts +6 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/Table/utils/action-params.d.ts +32 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/Table/utils/event-handlers.d.ts +19 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/Table/utils/index.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/Table/utils/misc.d.ts +28 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/Table/utils/render.d.ts +39 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/Table/utils/types.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/Table/utils/validation.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/constants.d.ts +6 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/Widget/components/index.d.ts +3 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/components/index.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/helpers/action-params-handlers.d.ts +28 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/helpers/apply-hc-handlers.d.ts +19 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/helpers/chartkit-adapter.d.ts +59 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/helpers/chartkitAdapter.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/helpers/constants.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/helpers/getRandomCKId.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/helpers/gravity-charts/chart-to-table.d.ts +7 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/helpers/gravity-charts/chartkit-adapter.d.ts +15 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/helpers/gravity-charts/comments.d.ts +13 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/helpers/gravity-charts/event-handlers.d.ts +12 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/helpers/gravity-charts/holidays.d.ts +8 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/helpers/gravity-charts/utils.d.ts +15 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/helpers/tooltip.d.ts +15 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/helpers/types.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/helpers/utils.d.ts +12 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/helpers/wait-for-content.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/init.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/chartkit-custom-error/chartkit-custom-error.d.ts +34 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/comments/drawing.d.ts +11 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/config.d.ts +576 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/handleLegendItemClick.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/options.d.ts +465 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/utils/addShowInNavigatorToSeries.d.ts +10 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/utils/buildNavigatorFallback.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/utils/calculatePrecision.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/utils/concatStrings.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/utils/getChartKitFormattedValue.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/utils/getFormatOptionsFromLine.d.ts +3 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/utils/getXAxisThresholdValue.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/utils/index.d.ts +11 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/utils/isSafari.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/utils/isTooltipShared.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/utils/localStorage.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/utils/mergeArrayWithObject.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/utils/numberFormat.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/utils/setNavigatorDefaultPeriod.d.ts +13 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/graph.d.ts +541 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/prepare-data.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/tooltip/helpers.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/tooltip/tooltip.d.ts +12 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/tooltip/types.d.ts +102 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/graph/types/index.d.ts +35 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/highcharts/colors.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/highcharts/helpers/calcucalteClosestPointManually.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/highcharts/helpers/index.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/highcharts/highcharts.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/i18n/i18n.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/i18n/keysets/en.d.ts +58 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/i18n/keysets/ru.d.ts +59 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/map/map.d.ts +84 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/map/options.d.ts +38 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/map/tooltip/tooltip.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/perfomance.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/helpers/fetch-script.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/helpers/index.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/helpers/number-format.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/Canvas.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/DataConverter.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/Heatmap.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/TileUrlsGenerator.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/gridmap/Gridmap.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/gridmap/index.d.ts +0 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/gridmap/utils/hexagonGrid.d.ts +28 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/gridmap/utils/squareGrid.d.ts +14 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/polygonmap/Polygonmap.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/polygonmap/utils/colorLegend.d.ts +21 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/polygonmap/utils/colorize.d.ts +44 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/polygonmap/utils/colorize.test.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/polygonmap/utils/defaultBalloonContent.d.ts +7 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/polygonmap/utils/defaultFilter.d.ts +9 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/polygonmap/utils/defaultFilter.test.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/polygonmap/utils/defaultMapper.d.ts +9 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/polygonmap/utils/defaultMapper.test.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/polygonmap/utils/defaultOnClick.d.ts +13 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/polygonmap/utils/defaultOnMouseEnter.d.ts +8 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/polygonmap/utils/defaultOnMouseLeave.d.ts +8 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/polygonmap/utils/inside.d.ts +9 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/polygonmap/utils/inside.test.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/polygonmap/utils/normalizeFeature.d.ts +10 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/components/polygonmap/utils/normalizeFeature.test.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/modules/modules.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/modules/yandex-map/yandex-map.d.ts +30 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/AdvancedChart/index.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/AdvancedChart/renderer/AdvancedChartWidget.d.ts +3 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/AdvancedChart/renderer/components/Tooltip/Tooltip.d.ts +9 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/AdvancedChart/renderer/types.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/AdvancedChart/renderer/utils.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/AdvancedChart/types.d.ts +31 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/HighchartsMap/index.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/HighchartsMap/renderer/HighchartsMapComponent.d.ts +108 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/HighchartsMap/renderer/HighchartsMapWidget.d.ts +11 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/HighchartsMap/types.d.ts +24 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Markup/index.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Markup/renderer/MarkupWidget.d.ts +20 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Markup/types.d.ts +8 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Metric/index.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Metric/renderer/MetricTile.d.ts +7 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Metric/renderer/MetricWidget.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Metric/renderer/metricHelpers.d.ts +89 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Metric/types.d.ts +54 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/index.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/TableWidget.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/components/BarCell/BarCell.d.ts +7 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/components/DiffCell/DiffCell.d.ts +9 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/components/HtmlCell/HtmlCell.d.ts +8 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/components/MarkupCell/MarkupCell.d.ts +6 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/components/SortIcon/SortIcon.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/components/Table/BackgroundTable.d.ts +14 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/components/Table/Table.d.ts +15 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/components/Table/TableBody.d.ts +10 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/components/Table/TableFooter.d.ts +8 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/components/Table/TableHead.d.ts +9 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/components/Table/cell-width.d.ts +7 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/components/Table/types.d.ts +150 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/components/Table/usePreparedTableData.d.ts +19 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/components/Table/utils.d.ts +20 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/components/TableTitleView/TableTitleView.d.ts +6 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/components/TreeCell/TreeCell.d.ts +6 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/types.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/utils/action-params.d.ts +29 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/utils/drill-down.d.ts +12 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/utils/index.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/utils/math.d.ts +6 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/utils/migrate-to-old-format.d.ts +8 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/utils/renderer.d.ts +26 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/renderer/utils/tree.d.ts +12 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/Table/types.d.ts +16 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/YandexMap/index.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/YandexMap/renderer/Legend/Icons/EyeSlashIcon.d.ts +3 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/YandexMap/renderer/Legend/Icons/SizeIcon.d.ts +3 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/YandexMap/renderer/Legend/Layer/Layer.d.ts +21 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/YandexMap/renderer/Legend/Legend.d.ts +8 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/YandexMap/renderer/YandexMapComponent.d.ts +68 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/YandexMap/renderer/YandexMapWidget.d.ts +17 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/YandexMap/renderer/events.d.ts +12 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/YandexMap/renderer/types.d.ts +51 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/YandexMap/renderer/utils.d.ts +11 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/YandexMap/types.d.ts +24 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/chart-storage.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/components/StyledSplitPane/StyledSplitPane.d.ts +9 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/components/index.d.ts +3 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/components/withSplitPane/withSplitPane.d.ts +9 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/plugins/index.d.ts +9 -0
- package/types/ui/libs/DatalensChartkit/ChartKit/types.d.ts +56 -0
- package/types/ui/libs/DatalensChartkit/DatalensChartKitOld.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/Error/Error.d.ts +3 -0
- package/types/ui/libs/DatalensChartkit/Error/getAdditionalChartkitErrorContent.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/ChartKitBase.d.ts +130 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Chart/Chart.d.ts +13 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/ChartkitError/ChartkitError.d.ts +10 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Content/store/reducer.d.ts +3 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Content/store/types.d.ts +43 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Control/Control.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/Header.d.ts +26 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/ChartsInsights/ChartsInsights.d.ts +6 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/ChartsInsights/components/ChartsInsightsIcon/ChartsInsightsIcon.d.ts +7 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/ChartsInsights/components/ChartsInsightsIcon/getIconData.d.ts +3 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/ChartsInsights/components/TooltipContent/TooltipContent.d.ts +10 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/ChartsInsights/helpers/getIconLevel.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/ButtonSpin/ButtonSpin.d.ts +19 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/ButtonSpinInput/ButtonSpinInput.d.ts +35 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/ChartsModal/ChartsModal.d.ts +60 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/ChartsModalMenu/ChartsModalMenu.d.ts +16 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/DownloadCsv/DownloadCsv.d.ts +16 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/Export/CsvExport/CsvExport.d.ts +3 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/Export/Export.d.ts +14 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/Export/ToastContent/ToastContent.d.ts +3 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/Export/types.d.ts +32 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/Export/utils.d.ts +12 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/Inspector/Inspector.d.ts +14 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/Inspector/SourceMeta/Datalens.d.ts +8 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/Inspector/Sources/Source/Source.d.ts +18 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/Inspector/Sources/SourceError/SourceError.d.ts +9 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/Inspector/Sources/SourceSuccess/SourceSuccess.d.ts +9 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/Inspector/Sources/Sources.d.ts +7 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/Inspector/Timings/Timings.d.ts +7 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/Inspector/types.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/Modal/Body/Body.d.ts +12 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/Modal/Context/Context.d.ts +12 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/Modal/Footer/Footer.d.ts +17 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/Modal/Header/Header.d.ts +12 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/Modal/Modal.d.ts +18 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/PopupMessage/PopupMessage.d.ts +26 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/constants.d.ts +6 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Items/helpers.d.ts +11 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/Menu/Menu.d.ts +71 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/MenuWithErrorBoundary/MenuWithErrorBoundary.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Header/components/index.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/components/Loader/Loader.d.ts +12 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/helpers.d.ts +7 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitBase/types.d.ts +105 -0
- package/types/ui/libs/DatalensChartkit/components/ChartKitIcon/ChartKitIcon.d.ts +25 -0
- package/types/ui/libs/DatalensChartkit/components/Control/Control.d.ts +38 -0
- package/types/ui/libs/DatalensChartkit/components/Control/Items/Items.d.ts +28 -0
- package/types/ui/libs/DatalensChartkit/components/Control/Items/withWrapForControls.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/components/Control/types.d.ts +38 -0
- package/types/ui/libs/DatalensChartkit/components/DeferredInitializer/DeferredInitializer.d.ts +26 -0
- package/types/ui/libs/DatalensChartkit/components/Drill/Drill.d.ts +24 -0
- package/types/ui/libs/DatalensChartkit/components/Error/Error.d.ts +11 -0
- package/types/ui/libs/DatalensChartkit/components/Error/More/More.d.ts +18 -0
- package/types/ui/libs/DatalensChartkit/components/ErrorBoundary/ErrorBoundary.d.ts +18 -0
- package/types/ui/libs/DatalensChartkit/components/ErrorBoundary/withErrorBoundary.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/components/Palette/Attach/Attach.d.ts +6 -0
- package/types/ui/libs/DatalensChartkit/components/Palette/ColorItem/ColorItem.d.ts +15 -0
- package/types/ui/libs/DatalensChartkit/components/Palette/DraggableModalHOC/DraggableModalHOC.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/components/Palette/PaletteEditor/PaletteEditor.d.ts +26 -0
- package/types/ui/libs/DatalensChartkit/components/Palette/PaletteSettings/PaletteSettings.d.ts +16 -0
- package/types/ui/libs/DatalensChartkit/components/SideMarkdown/SideMarkdown.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/extensions/alert.d.ts +6 -0
- package/types/ui/libs/DatalensChartkit/extensions/control.d.ts +6 -0
- package/types/ui/libs/DatalensChartkit/extensions/markdown.d.ts +6 -0
- package/types/ui/libs/DatalensChartkit/extensions/table.d.ts +6 -0
- package/types/ui/libs/DatalensChartkit/helpers/convert-data-to-table.d.ts +7 -0
- package/types/ui/libs/DatalensChartkit/helpers/helpers.d.ts +8 -0
- package/types/ui/libs/DatalensChartkit/index.d.ts +11 -0
- package/types/ui/libs/DatalensChartkit/menu/Menu.d.ts +31 -0
- package/types/ui/libs/DatalensChartkit/menu/MenuItems.d.ts +55 -0
- package/types/ui/libs/DatalensChartkit/menu/constants.d.ts +9 -0
- package/types/ui/libs/DatalensChartkit/menu/helpers.d.ts +37 -0
- package/types/ui/libs/DatalensChartkit/modules/axios/axios.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/modules/axios/axiosConcurrency.d.ts +23 -0
- package/types/ui/libs/DatalensChartkit/modules/constants/constants.d.ts +31 -0
- package/types/ui/libs/DatalensChartkit/modules/data-provider/charts/chartkit-handlers.d.ts +34 -0
- package/types/ui/libs/DatalensChartkit/modules/data-provider/charts/get-graph/get-graph.d.ts +37 -0
- package/types/ui/libs/DatalensChartkit/modules/data-provider/charts/get-graph/prepare-config.d.ts +38 -0
- package/types/ui/libs/DatalensChartkit/modules/data-provider/charts/get-graph/prepare-data.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/modules/data-provider/charts/helpers/getChartsInsightsData.d.ts +16 -0
- package/types/ui/libs/DatalensChartkit/modules/data-provider/charts/helpers/index.d.ts +1 -0
- package/types/ui/libs/DatalensChartkit/modules/data-provider/charts/index.d.ts +125 -0
- package/types/ui/libs/DatalensChartkit/modules/data-provider/charts/node.d.ts +9 -0
- package/types/ui/libs/DatalensChartkit/modules/data-provider/charts/types.d.ts +478 -0
- package/types/ui/libs/DatalensChartkit/modules/data-provider/charts/ui-sandbox-runtime.d.ts +38 -0
- package/types/ui/libs/DatalensChartkit/modules/data-provider/charts/ui-sandbox.d.ts +29 -0
- package/types/ui/libs/DatalensChartkit/modules/data-provider/charts/utils.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/modules/data-provider/charts/wizard.d.ts +17 -0
- package/types/ui/libs/DatalensChartkit/modules/data-provider/example.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/modules/data-provider/helpers.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/modules/data-provider/withDataProvider.d.ts +12 -0
- package/types/ui/libs/DatalensChartkit/modules/datalens-chartkit-custom-error/datalens-chartkit-custom-error.d.ts +61 -0
- package/types/ui/libs/DatalensChartkit/modules/export/export.d.ts +35 -0
- package/types/ui/libs/DatalensChartkit/modules/extensions-manager/extensions-manager.d.ts +8 -0
- package/types/ui/libs/DatalensChartkit/modules/html-generator/constants.d.ts +12 -0
- package/types/ui/libs/DatalensChartkit/modules/html-generator/index.d.ts +9 -0
- package/types/ui/libs/DatalensChartkit/modules/html-generator/utils.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/modules/localStorage.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/modules/menu/menu.d.ts +8 -0
- package/types/ui/libs/DatalensChartkit/modules/perfomance.d.ts +5 -0
- package/types/ui/libs/DatalensChartkit/modules/settings/settings.d.ts +21 -0
- package/types/ui/libs/DatalensChartkit/modules/table.d.ts +2 -0
- package/types/ui/libs/DatalensChartkit/types/common.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/types/control.d.ts +73 -0
- package/types/ui/libs/DatalensChartkit/types/dataProvider.d.ts +43 -0
- package/types/ui/libs/DatalensChartkit/types/index.d.ts +4 -0
- package/types/ui/libs/DatalensChartkit/types/menu.d.ts +37 -0
- package/types/ui/libs/DatalensChartkit/types/widget.d.ts +324 -0
- package/types/ui/libs/auth/refreshToken.d.ts +1 -0
- package/types/ui/libs/axios/axios.d.ts +5 -0
- package/types/ui/libs/axios/interceptors.d.ts +4 -0
- package/types/ui/libs/datasetHelper/index.d.ts +3 -0
- package/types/ui/libs/datasetSdk/index.d.ts +35 -0
- package/types/ui/libs/google-analytics/index.d.ts +1 -0
- package/types/ui/libs/index.d.ts +7 -0
- package/types/ui/libs/logger/index.d.ts +5 -0
- package/types/ui/libs/metrica/index.d.ts +21 -0
- package/types/ui/libs/monaco/constants.d.ts +2 -0
- package/types/ui/libs/monaco/dl-lang/constants.d.ts +17 -0
- package/types/ui/libs/monaco/dl-lang/index.d.ts +3 -0
- package/types/ui/libs/monaco/index.d.ts +6 -0
- package/types/ui/libs/monaco/load-monaco-core.d.ts +18 -0
- package/types/ui/libs/monaco/ql-lang/constants.d.ts +3 -0
- package/types/ui/libs/monaco/ql-lang/index.d.ts +8 -0
- package/types/ui/libs/monaco/theme-mappers.d.ts +5 -0
- package/types/ui/libs/monaco/types.d.ts +4 -0
- package/types/ui/libs/monaco/utils.d.ts +23 -0
- package/types/ui/libs/navigateHelper/index.d.ts +16 -0
- package/types/ui/libs/schematic-sdk/decorator.d.ts +10 -0
- package/types/ui/libs/schematic-sdk/index.d.ts +32 -0
- package/types/ui/libs/schematic-sdk/parse-error.d.ts +17 -0
- package/types/ui/libs/sdk/index.d.ts +69 -0
- package/types/ui/libs/sdk/types.d.ts +22 -0
- package/types/ui/libs/userSettings/index.d.ts +8 -0
- package/types/ui/modules/index.d.ts +1 -0
- package/types/ui/modules/markdownProvider.d.ts +13 -0
- package/types/ui/navigation/history.d.ts +3 -0
- package/types/ui/navigation/index.d.ts +7 -0
- package/types/ui/navigation/router.d.ts +58 -0
- package/types/ui/registry/components/DefaultEmpty.d.ts +2 -0
- package/types/ui/registry/functions/example-function.d.ts +1 -0
- package/types/ui/registry/index.d.ts +1071 -0
- package/types/ui/registry/libs/index.d.ts +9 -0
- package/types/ui/registry/libs/registryLibsPlugins.d.ts +7 -0
- package/types/ui/registry/libs/schematic-sdk/index.d.ts +6 -0
- package/types/ui/registry/units/auth/components-map.d.ts +9 -0
- package/types/ui/registry/units/auth/functions-map.d.ts +10 -0
- package/types/ui/registry/units/auth/index.d.ts +51 -0
- package/types/ui/registry/units/auth/register.d.ts +1 -0
- package/types/ui/registry/units/auth/types/components/AdditionalProfileSections.d.ts +4 -0
- package/types/ui/registry/units/auth/types/components/AdditionalUsersFilters.d.ts +4 -0
- package/types/ui/registry/units/auth/types/components/Signin.d.ts +3 -0
- package/types/ui/registry/units/auth/types/functions/getAdditionalAddProfileFields.d.ts +14 -0
- package/types/ui/registry/units/auth/types/functions/getAdditionalProfileFields.d.ts +6 -0
- package/types/ui/registry/units/auth/types/functions/getUsersListColumns.d.ts +3 -0
- package/types/ui/registry/units/auth/types/functions/getUsersRoles.d.ts +2 -0
- package/types/ui/registry/units/chart/components-map.d.ts +7 -0
- package/types/ui/registry/units/chart/functions-map.d.ts +26 -0
- package/types/ui/registry/units/chart/index.d.ts +79 -0
- package/types/ui/registry/units/chart/register.d.ts +1 -0
- package/types/ui/registry/units/chart/types/components/AlertDialog.d.ts +7 -0
- package/types/ui/registry/units/chart/types/components/ChartActionPanelButton.d.ts +11 -0
- package/types/ui/registry/units/chart/types/functions/get-chartkit-holidays.d.ts +2 -0
- package/types/ui/registry/units/chart/types/functions/getChartkitMenuByType.d.ts +22 -0
- package/types/ui/registry/units/chart/types/functions/getDefaultChartMenu.d.ts +9 -0
- package/types/ui/registry/units/chart/types/functions/getPanePreviewChartMenu.d.ts +4 -0
- package/types/ui/registry/units/chart/types/functions/getVisualSelectorBottomPlaceholder.d.ts +5 -0
- package/types/ui/registry/units/chart/types/functions/getWizardChartMenu.d.ts +8 -0
- package/types/ui/registry/units/collections/components-map.d.ts +5 -0
- package/types/ui/registry/units/collections/functionts-map.d.ts +10 -0
- package/types/ui/registry/units/collections/index.d.ts +47 -0
- package/types/ui/registry/units/collections/register.d.ts +1 -0
- package/types/ui/registry/units/collections/types/customizeEmptyPlaceholder.d.ts +17 -0
- package/types/ui/registry/units/collections/types/customizeNoCreatePermissionDialog.d.ts +6 -0
- package/types/ui/registry/units/collections/types/index.d.ts +3 -0
- package/types/ui/registry/units/collections/types/useCreateWorkbookDialogHandlers.d.ts +16 -0
- package/types/ui/registry/units/common/components/Example/Example.d.ts +12 -0
- package/types/ui/registry/units/common/components-map.d.ts +68 -0
- package/types/ui/registry/units/common/constants/components.d.ts +1 -0
- package/types/ui/registry/units/common/constants/functions.d.ts +1 -0
- package/types/ui/registry/units/common/functions-map.d.ts +128 -0
- package/types/ui/registry/units/common/index.d.ts +452 -0
- package/types/ui/registry/units/common/register.d.ts +1 -0
- package/types/ui/registry/units/common/types/components/AccessRights.d.ts +9 -0
- package/types/ui/registry/units/common/types/components/AccessRightsUrlOpen.d.ts +4 -0
- package/types/ui/registry/units/common/types/components/AclSubject.d.ts +4 -0
- package/types/ui/registry/units/common/types/components/AclSubjectSuggest.d.ts +11 -0
- package/types/ui/registry/units/common/types/components/ActionPanelEntrySelect.d.ts +3 -0
- package/types/ui/registry/units/common/types/components/AsideHeaderAdapter.d.ts +4 -0
- package/types/ui/registry/units/common/types/components/ButtonFavorite.d.ts +5 -0
- package/types/ui/registry/units/common/types/components/DialogAddParticipants.d.ts +11 -0
- package/types/ui/registry/units/common/types/components/DialogEntryDescription.d.ts +13 -0
- package/types/ui/registry/units/common/types/components/DialogImageWidgetLinkHint.d.ts +4 -0
- package/types/ui/registry/units/common/types/components/DialogRelatedEntitiesRadioHint.d.ts +5 -0
- package/types/ui/registry/units/common/types/components/DialogShare.d.ts +20 -0
- package/types/ui/registry/units/common/types/components/DownloadScreenshot.d.ts +6 -0
- package/types/ui/registry/units/common/types/components/EntryBreadcrumbs.d.ts +16 -0
- package/types/ui/registry/units/common/types/components/IamAccessDialog.d.ts +16 -0
- package/types/ui/registry/units/common/types/components/LoginById.d.ts +5 -0
- package/types/ui/registry/units/common/types/components/MarkdownControl.d.ts +7 -0
- package/types/ui/registry/units/common/types/components/MarkupShareLink.d.ts +5 -0
- package/types/ui/registry/units/common/types/components/MarkupUserInfo.d.ts +6 -0
- package/types/ui/registry/units/common/types/components/MobileHeaderComponent.d.ts +7 -0
- package/types/ui/registry/units/common/types/components/OAuthTokenButton.d.ts +6 -0
- package/types/ui/registry/units/common/types/components/PlaceholderIllustrationImage.d.ts +7 -0
- package/types/ui/registry/units/common/types/components/RangeInputPicker.d.ts +1 -0
- package/types/ui/registry/units/common/types/components/ReportButton.d.ts +11 -0
- package/types/ui/registry/units/common/types/components/UserAvatarById.d.ts +5 -0
- package/types/ui/registry/units/common/types/components/YfmWrapper.d.ts +10 -0
- package/types/ui/registry/units/common/types/functions/GetUsersById.d.ts +2 -0
- package/types/ui/registry/units/common/types/functions/checkCreateEntryButtonVisibility.d.ts +1 -0
- package/types/ui/registry/units/common/types/functions/fetchDocumentation.d.ts +9 -0
- package/types/ui/registry/units/common/types/functions/fetchFunctionsDocumentation.d.ts +4 -0
- package/types/ui/registry/units/common/types/functions/getAdditionalChartkitErrorContent.d.ts +8 -0
- package/types/ui/registry/units/common/types/functions/getBasicActionPanelItems.d.ts +6 -0
- package/types/ui/registry/units/common/types/functions/getFunctionsDocumentation.d.ts +35 -0
- package/types/ui/registry/units/common/types/functions/getGloballyEntrySettings.d.ts +4 -0
- package/types/ui/registry/units/common/types/functions/getHeaderWithoutHelpCenterErrorContentTypes.d.ts +1 -0
- package/types/ui/registry/units/common/types/functions/getHeaderWithoutNavigationErrorContentTypes.d.ts +1 -0
- package/types/ui/registry/units/common/types/functions/getIllustrationStore.d.ts +2 -0
- package/types/ui/registry/units/common/types/functions/getImageNameFromErrorContentType.d.ts +2 -0
- package/types/ui/registry/units/common/types/functions/getLoginById.d.ts +2 -0
- package/types/ui/registry/units/common/types/functions/getLogoIcon.d.ts +4 -0
- package/types/ui/registry/units/common/types/functions/getNotAuthenticatedErrorContentTypes.d.ts +1 -0
- package/types/ui/registry/units/common/types/functions/getShouldShowAIAssistant.d.ts +4 -0
- package/types/ui/registry/units/common/types/functions/getUIEntryRoute.d.ts +8 -0
- package/types/ui/registry/units/common/types/functions/isValidLogoUrl.d.ts +5 -0
- package/types/ui/registry/units/common/types/functions/openDialogOrganizationInvite.d.ts +2 -0
- package/types/ui/registry/units/common/types/functions/openDialogOrganizationInviteUsers.d.ts +2 -0
- package/types/ui/registry/units/common/types/functions/renderDialogRelatedEntitiesAlertHint.d.ts +6 -0
- package/types/ui/registry/units/common/types/functions/resolveUsersByIds.d.ts +3 -0
- package/types/ui/registry/units/common/types/functions/setEntryKey.d.ts +7 -0
- package/types/ui/registry/units/common/types/functions/useSubjectsListId.d.ts +4 -0
- package/types/ui/registry/units/connections/components-map.d.ts +7 -0
- package/types/ui/registry/units/connections/functions-map.d.ts +19 -0
- package/types/ui/registry/units/connections/index.d.ts +66 -0
- package/types/ui/registry/units/connections/register.d.ts +1 -0
- package/types/ui/registry/units/connections/types/CreateEditorChartButtonProps.d.ts +5 -0
- package/types/ui/registry/units/connections/types/PreparedRowItem.d.ts +4 -0
- package/types/ui/registry/units/connections/types/beforeConnectorFormUnmount.d.ts +2 -0
- package/types/ui/registry/units/connections/types/getConnectionItemRender.d.ts +2 -0
- package/types/ui/registry/units/connections/types/getFakeEntry.d.ts +3 -0
- package/types/ui/registry/units/connections/types/getIsShowCreateConnectionButton.d.ts +2 -0
- package/types/ui/registry/units/connections/types/getMockedForm.d.ts +4 -0
- package/types/ui/registry/units/connections/types/getNewConnectionDestination.d.ts +4 -0
- package/types/ui/registry/units/connections/types/getRenderConnectionSettingsPopup.d.ts +2 -0
- package/types/ui/registry/units/dash/components-map.d.ts +13 -0
- package/types/ui/registry/units/dash/functions-map.d.ts +17 -0
- package/types/ui/registry/units/dash/index.d.ts +77 -0
- package/types/ui/registry/units/dash/register.d.ts +1 -0
- package/types/ui/registry/units/dash/types/BeforeCloseDialogItem.d.ts +3 -0
- package/types/ui/registry/units/dash/types/BeforeOpenDialogItem.d.ts +4 -0
- package/types/ui/registry/units/dash/types/DashActionPanelAdditionalButtons.d.ts +5 -0
- package/types/ui/registry/units/dash/types/DialogDashOtherSettingsPrepend.d.ts +6 -0
- package/types/ui/registry/units/dash/types/GetExtendedItemData.d.ts +4 -0
- package/types/ui/registry/units/datasets/functions-map.d.ts +6 -0
- package/types/ui/registry/units/datasets/index.d.ts +19 -0
- package/types/ui/registry/units/datasets/register.d.ts +1 -0
- package/types/ui/registry/units/datasets/types/functions/getRenderDatasetSettingsPopup.d.ts +2 -0
- package/types/ui/registry/units/datasets/types/functions/renderRLSDialog.d.ts +3 -0
- package/types/ui/registry/units/docs/functions-map.d.ts +3 -0
- package/types/ui/registry/units/docs/index.d.ts +23 -0
- package/types/ui/registry/units/docs/register.d.ts +1 -0
- package/types/ui/registry/units/editor/components-map.d.ts +5 -0
- package/types/ui/registry/units/editor/constants/components.d.ts +1 -0
- package/types/ui/registry/units/editor/constants/functions.d.ts +1 -0
- package/types/ui/registry/units/editor/functions-map.d.ts +6 -0
- package/types/ui/registry/units/editor/index.d.ts +35 -0
- package/types/ui/registry/units/editor/types/components/ActionPanelButton.d.ts +9 -0
- package/types/ui/registry/units/editor/types/functions/fetchEditorDocumentation.d.ts +4 -0
- package/types/ui/registry/units/editor/types/functions/getEditorTemplates.d.ts +10 -0
- package/types/ui/registry/units/fieldEditor/components-map.d.ts +21 -0
- package/types/ui/registry/units/fieldEditor/index.d.ts +24 -0
- package/types/ui/registry/units/main/components-map.d.ts +4 -0
- package/types/ui/registry/units/main/index.d.ts +23 -0
- package/types/ui/registry/units/main/register.d.ts +1 -0
- package/types/ui/registry/units/preview/components-map.d.ts +4 -0
- package/types/ui/registry/units/preview/index.d.ts +23 -0
- package/types/ui/registry/units/preview/register.d.ts +1 -0
- package/types/ui/registry/units/public/components-map.d.ts +5 -0
- package/types/ui/registry/units/public/index.d.ts +24 -0
- package/types/ui/registry/units/public/register.d.ts +1 -0
- package/types/ui/registry/units/public/types/components/Header.d.ts +4 -0
- package/types/ui/registry/units/ql/components-map.d.ts +5 -0
- package/types/ui/registry/units/ql/functions-map.d.ts +5 -0
- package/types/ui/registry/units/ql/index.d.ts +36 -0
- package/types/ui/registry/units/ql/register.d.ts +1 -0
- package/types/ui/registry/units/wizard/components-map.d.ts +5 -0
- package/types/ui/registry/units/wizard/index.d.ts +24 -0
- package/types/ui/registry/units/wizard/register.d.ts +1 -0
- package/types/ui/registry/units/wizard/types/components/WizardActionPanelExtension.d.ts +3 -0
- package/types/ui/registry/units/workbooks/components-map.d.ts +6 -0
- package/types/ui/registry/units/workbooks/functions-map.d.ts +30 -0
- package/types/ui/registry/units/workbooks/index.d.ts +98 -0
- package/types/ui/registry/units/workbooks/register.d.ts +1 -0
- package/types/ui/registry/units/workbooks/types/components/workbookTableRowExtendedContent.d.ts +7 -0
- package/types/ui/registry/units/workbooks/types/functions/checkWbCreateEntryButtonVisibility.d.ts +3 -0
- package/types/ui/registry/utils/components-registry.d.ts +11 -0
- package/types/ui/registry/utils/register-app-plugins.d.ts +5 -0
- package/types/ui/store/actions/asideHeader/index.d.ts +46 -0
- package/types/ui/store/actions/asideHeader/navigation.d.ts +15 -0
- package/types/ui/store/actions/chartWidget.d.ts +38 -0
- package/types/ui/store/actions/collectionsStructure/common.d.ts +531 -0
- package/types/ui/store/actions/collectionsStructure/export.d.ts +108 -0
- package/types/ui/store/actions/collectionsStructure/index.d.ts +10 -0
- package/types/ui/store/actions/collectionsStructure/showCollectionEntityErrorToast.d.ts +2 -0
- package/types/ui/store/actions/collectionsStructure/templates.d.ts +23 -0
- package/types/ui/store/actions/colorPaletteEditor.d.ts +23 -0
- package/types/ui/store/actions/controlDialog/controlDialog.d.ts +123 -0
- package/types/ui/store/actions/controlDialog/helpers.d.ts +12 -0
- package/types/ui/store/actions/copyEntriesToWorkbook.d.ts +51 -0
- package/types/ui/store/actions/dialog.d.ts +75 -0
- package/types/ui/store/actions/editHistory.d.ts +66 -0
- package/types/ui/store/actions/entryContent.d.ts +74 -0
- package/types/ui/store/actions/iamAccessDialog.d.ts +143 -0
- package/types/ui/store/actions/landing.d.ts +8 -0
- package/types/ui/store/actions/localStorageFallback.d.ts +11 -0
- package/types/ui/store/actions/migrationToWorkbook.d.ts +65 -0
- package/types/ui/store/actions/openDialogTypes.d.ts +65 -0
- package/types/ui/store/actions/toaster.d.ts +16 -0
- package/types/ui/store/actions/user.d.ts +30 -0
- package/types/ui/store/actions/usersByIds.d.ts +2 -0
- package/types/ui/store/configure.d.ts +4 -0
- package/types/ui/store/constants/collectionsStructure.d.ts +80 -0
- package/types/ui/store/constants/controlDialog.d.ts +50 -0
- package/types/ui/store/constants/copyEntriesToWorkbook.d.ts +10 -0
- package/types/ui/store/constants/editHistory.d.ts +5 -0
- package/types/ui/store/constants/iamAccessDialog.d.ts +17 -0
- package/types/ui/store/constants/migrationToWorkbook.d.ts +13 -0
- package/types/ui/store/index.d.ts +7 -0
- package/types/ui/store/reducer-registry.d.ts +19 -0
- package/types/ui/store/reducers/asideHeader.d.ts +7 -0
- package/types/ui/store/reducers/collectionsStructure.d.ts +128 -0
- package/types/ui/store/reducers/colorPaletteEditor.d.ts +8 -0
- package/types/ui/store/reducers/controlDialog/controlDialog.d.ts +58 -0
- package/types/ui/store/reducers/controlDialog/helpers.d.ts +18 -0
- package/types/ui/store/reducers/copyEntriesToWorkbook.d.ts +36 -0
- package/types/ui/store/reducers/dialog.d.ts +9 -0
- package/types/ui/store/reducers/editHistory.d.ts +19 -0
- package/types/ui/store/reducers/entryContent.d.ts +14 -0
- package/types/ui/store/reducers/iamAccessDialog.d.ts +33 -0
- package/types/ui/store/reducers/index.d.ts +280 -0
- package/types/ui/store/reducers/landing.d.ts +10 -0
- package/types/ui/store/reducers/localStorageFallback.d.ts +3 -0
- package/types/ui/store/reducers/migrationToWorkbook.d.ts +25 -0
- package/types/ui/store/reducers/user.d.ts +4 -0
- package/types/ui/store/selectors/asideHeader.d.ts +11 -0
- package/types/ui/store/selectors/collectionsStructure.d.ts +564 -0
- package/types/ui/store/selectors/colorPaletteEditor.d.ts +14 -0
- package/types/ui/store/selectors/controlDialog.d.ts +49 -0
- package/types/ui/store/selectors/copyEntriesToWorkbook.d.ts +81 -0
- package/types/ui/store/selectors/editHistory.d.ts +7 -0
- package/types/ui/store/selectors/entryContent.d.ts +27 -0
- package/types/ui/store/selectors/iamAccessDialog.d.ts +142 -0
- package/types/ui/store/selectors/landing.d.ts +2 -0
- package/types/ui/store/selectors/localStorageFallback.d.ts +2 -0
- package/types/ui/store/selectors/migrationToWorkbook.d.ts +113 -0
- package/types/ui/store/selectors/user.d.ts +47 -0
- package/types/ui/store/toolkit/chartkit/api.d.ts +8 -0
- package/types/ui/store/toolkit/chartkit/types.d.ts +4 -0
- package/types/ui/store/toolkit/index.d.ts +1 -0
- package/types/ui/store/typings/asideHeader.d.ts +23 -0
- package/types/ui/store/typings/controlDialog.d.ts +129 -0
- package/types/ui/store/typings/entryContent.d.ts +19 -0
- package/types/ui/store/typings/iamAccessDialog.d.ts +7 -0
- package/types/ui/store/typings/user.d.ts +12 -0
- package/types/ui/store/utils/asideHeader.d.ts +3 -0
- package/types/ui/store/utils/collectionStructure.d.ts +14 -0
- package/types/ui/store/utils/controlDialog.d.ts +44 -0
- package/types/ui/store/utils/jdp.d.ts +5 -0
- package/types/ui/store/utils/user.d.ts +3 -0
- package/types/ui/typings/common.d.ts +38 -0
- package/types/ui/typings/components.d.ts +7 -0
- package/types/ui/typings/error.d.ts +25 -0
- package/types/ui/typings/index.d.ts +3 -0
- package/types/ui/units/auth/components/AuthPage/AuthPage.d.ts +7 -0
- package/types/ui/units/auth/components/AuthPage/useAuthPageInit.d.ts +1 -0
- package/types/ui/units/auth/components/ChangePasswordDialog/ChangePasswordDialog.d.ts +9 -0
- package/types/ui/units/auth/components/ChangeUserRoleDialog/ChangeUserRoleDialog.d.ts +10 -0
- package/types/ui/units/auth/components/DeleteUserDialog/DeleteUserDialog.d.ts +8 -0
- package/types/ui/units/auth/components/EditUserProfileDialog/EditUserProfileDialog.d.ts +11 -0
- package/types/ui/units/auth/components/LoginById/LoginById.d.ts +2 -0
- package/types/ui/units/auth/components/LoginById/utils.d.ts +2 -0
- package/types/ui/units/auth/components/Logout/Logout.d.ts +1 -0
- package/types/ui/units/auth/components/Reload/Reload.d.ts +1 -0
- package/types/ui/units/auth/components/Signin/Signin.d.ts +2 -0
- package/types/ui/units/auth/components/Signin/components/Login.d.ts +5 -0
- package/types/ui/units/auth/components/Signin/components/Password.d.ts +5 -0
- package/types/ui/units/auth/components/Signup/Signup.d.ts +1 -0
- package/types/ui/units/auth/components/Signup/components/Back.d.ts +1 -0
- package/types/ui/units/auth/components/UserProfile/UserProfile.d.ts +14 -0
- package/types/ui/units/auth/components/UserRoleLabel/UserRoleLabel.d.ts +8 -0
- package/types/ui/units/auth/components/formControls/CustomRow.d.ts +7 -0
- package/types/ui/units/auth/components/formControls/Email.d.ts +2 -0
- package/types/ui/units/auth/components/formControls/FirstName.d.ts +2 -0
- package/types/ui/units/auth/components/formControls/GeneratePasswordButton.d.ts +3 -0
- package/types/ui/units/auth/components/formControls/LastName.d.ts +2 -0
- package/types/ui/units/auth/components/formControls/Login.d.ts +2 -0
- package/types/ui/units/auth/components/formControls/Password.d.ts +8 -0
- package/types/ui/units/auth/components/formControls/RepeatPassword.d.ts +2 -0
- package/types/ui/units/auth/components/formControls/Roles.d.ts +2 -0
- package/types/ui/units/auth/components/formControls/RowButton.d.ts +2 -0
- package/types/ui/units/auth/components/formControls/types.d.ts +8 -0
- package/types/ui/units/auth/components/formControls/utils.d.ts +1 -0
- package/types/ui/units/auth/constants/errors.d.ts +3 -0
- package/types/ui/units/auth/constants/routes.d.ts +7 -0
- package/types/ui/units/auth/containers/UserProfile/UserProfile.d.ts +4 -0
- package/types/ui/units/auth/hooks/useClearReloadedQuery.d.ts +1 -0
- package/types/ui/units/auth/hooks/useUserById.d.ts +10 -0
- package/types/ui/units/auth/store/actions/common.d.ts +15 -0
- package/types/ui/units/auth/store/actions/index.d.ts +6 -0
- package/types/ui/units/auth/store/actions/logout.d.ts +9 -0
- package/types/ui/units/auth/store/actions/signin.d.ts +20 -0
- package/types/ui/units/auth/store/actions/userInfoForm.d.ts +32 -0
- package/types/ui/units/auth/store/actions/userProfile.d.ts +95 -0
- package/types/ui/units/auth/store/actions/usersByIds.d.ts +21 -0
- package/types/ui/units/auth/store/constants/common.d.ts +2 -0
- package/types/ui/units/auth/store/constants/signin.d.ts +1 -0
- package/types/ui/units/auth/store/constants/userInfoForm.d.ts +4 -0
- package/types/ui/units/auth/store/constants/userProfile.d.ts +17 -0
- package/types/ui/units/auth/store/constants/usersByIds.d.ts +2 -0
- package/types/ui/units/auth/store/reducers/common.d.ts +6 -0
- package/types/ui/units/auth/store/reducers/index.d.ts +41 -0
- package/types/ui/units/auth/store/reducers/signin.d.ts +6 -0
- package/types/ui/units/auth/store/reducers/userInfoForm.d.ts +8 -0
- package/types/ui/units/auth/store/reducers/userProfile.d.ts +28 -0
- package/types/ui/units/auth/store/reducers/usersByIds.d.ts +3 -0
- package/types/ui/units/auth/store/selectors/common.d.ts +3 -0
- package/types/ui/units/auth/store/selectors/signin.d.ts +5 -0
- package/types/ui/units/auth/store/selectors/userInfoForm.d.ts +16 -0
- package/types/ui/units/auth/store/selectors/userProfile.d.ts +9 -0
- package/types/ui/units/auth/store/selectors/usersByIds.d.ts +14 -0
- package/types/ui/units/auth/store/typings/userInfoForm.d.ts +11 -0
- package/types/ui/units/auth/store/typings/usersByIds.d.ts +39 -0
- package/types/ui/units/auth/utils/fields.d.ts +1 -0
- package/types/ui/units/auth/utils/getUsersRoles.d.ts +1 -0
- package/types/ui/units/auth/utils/userProfile.d.ts +4 -0
- package/types/ui/units/auth/utils/validation.d.ts +39 -0
- package/types/ui/units/collections/components/CollectionActions/CollectionActions.d.ts +11 -0
- package/types/ui/units/collections/components/CollectionActions/components/SharedEntryNotice/SharedEntryNotice.d.ts +1 -0
- package/types/ui/units/collections/components/CollectionActions/index.d.ts +1 -0
- package/types/ui/units/collections/components/CollectionActions/utils.d.ts +23 -0
- package/types/ui/units/collections/components/CollectionBatchPanel/CollectionBatchPanel.d.ts +9 -0
- package/types/ui/units/collections/components/CollectionContent/CollectionContent.d.ts +31 -0
- package/types/ui/units/collections/components/CollectionContent/hooks/index.d.ts +1 -0
- package/types/ui/units/collections/components/CollectionContent/hooks/useActions.d.ts +8 -0
- package/types/ui/units/collections/components/CollectionContent/index.d.ts +1 -0
- package/types/ui/units/collections/components/CollectionContent/utils.d.ts +8 -0
- package/types/ui/units/collections/components/CollectionContentGrid/CollectionContentGrid.d.ts +12 -0
- package/types/ui/units/collections/components/CollectionContentGrid/CollectionItemIcon.d.ts +6 -0
- package/types/ui/units/collections/components/CollectionContentGrid/index.d.ts +1 -0
- package/types/ui/units/collections/components/CollectionContentTable/CollectionContentTable.d.ts +14 -0
- package/types/ui/units/collections/components/CollectionContentTable/TableComponents/CollectionCheckboxCell.d.ts +10 -0
- package/types/ui/units/collections/components/CollectionContentTable/TableComponents/CollectionLinkRow.d.ts +10 -0
- package/types/ui/units/collections/components/CollectionContentTable/TableComponents/CollectionTitleCell.d.ts +6 -0
- package/types/ui/units/collections/components/CollectionContentTable/helpers.d.ts +7 -0
- package/types/ui/units/collections/components/CollectionContentTable/index.d.ts +1 -0
- package/types/ui/units/collections/components/CollectionPage/CollectionPage.d.ts +2 -0
- package/types/ui/units/collections/components/CollectionPage/hooks/index.d.ts +5 -0
- package/types/ui/units/collections/components/CollectionPage/hooks/useCreateWorkbookDialogHandlers.d.ts +2 -0
- package/types/ui/units/collections/components/CollectionPage/hooks/useData.d.ts +14 -0
- package/types/ui/units/collections/components/CollectionPage/hooks/useFilters.d.ts +11 -0
- package/types/ui/units/collections/components/CollectionPage/hooks/useLayout.d.ts +22 -0
- package/types/ui/units/collections/components/CollectionPage/hooks/useOpenCreateWorkbookDialog.d.ts +7 -0
- package/types/ui/units/collections/components/CollectionPage/hooks/useSelection.d.ts +28 -0
- package/types/ui/units/collections/components/CollectionPage/hooks/useViewMode.d.ts +12 -0
- package/types/ui/units/collections/components/CollectionPage/index.d.ts +1 -0
- package/types/ui/units/collections/components/CollectionPage/utils.d.ts +9 -0
- package/types/ui/units/collections/components/constants.d.ts +111 -0
- package/types/ui/units/collections/components/helpers.d.ts +6 -0
- package/types/ui/units/collections/components/types.d.ts +7 -0
- package/types/ui/units/collections/hooks/useRefreshPageAfterImport.d.ts +9 -0
- package/types/ui/units/collections/store/actions/index.d.ts +125 -0
- package/types/ui/units/collections/store/constants/index.d.ts +16 -0
- package/types/ui/units/collections/store/reducers/index.d.ts +21 -0
- package/types/ui/units/collections/store/selectors/index.d.ts +82 -0
- package/types/ui/units/collections-navigation/components/CollectionBreadcrumbs/CollectionBreadcrumbs.d.ts +14 -0
- package/types/ui/units/collections-navigation/components/CollectionBreadcrumbs/index.d.ts +2 -0
- package/types/ui/units/collections-navigation/components/CollectionBreadcrumbs/utils.d.ts +27 -0
- package/types/ui/units/collections-navigation/components/CollectionsNavigationApp/CollectionsNavigationApp.d.ts +1 -0
- package/types/ui/units/collections-navigation/components/CollectionsNavigationApp/index.d.ts +1 -0
- package/types/ui/units/collections-navigation/components/CollectionsNavigationLayout/CollectionsNavigationLayout.d.ts +9 -0
- package/types/ui/units/collections-navigation/components/CollectionsNavigationLayout/index.d.ts +1 -0
- package/types/ui/units/collections-navigation/constants/index.d.ts +2 -0
- package/types/ui/units/collections-navigation/contexts/LayoutContext.d.ts +31 -0
- package/types/ui/units/collections-navigation/store/actions/index.d.ts +91 -0
- package/types/ui/units/collections-navigation/store/constants/index.d.ts +5 -0
- package/types/ui/units/collections-navigation/store/reducers/index.d.ts +10 -0
- package/types/ui/units/collections-navigation/store/selectors/index.d.ts +80 -0
- package/types/ui/units/collections-navigation/utils/index.d.ts +2 -0
- package/types/ui/units/connections/components/ConnectorForm/ConnectorForm.d.ts +7 -0
- package/types/ui/units/connections/components/ConnectorForm/ErrorActions/ErrorActions.d.ts +8 -0
- package/types/ui/units/connections/components/ConnectorForm/FormActions/CheckParamsButton/CheckParamsButton.d.ts +9 -0
- package/types/ui/units/connections/components/ConnectorForm/FormActions/FormActions.d.ts +35 -0
- package/types/ui/units/connections/components/ConnectorForm/FormActions/SubmitButton/SubmitButton.d.ts +6 -0
- package/types/ui/units/connections/components/ConnectorForm/FormActions/selectors.d.ts +3 -0
- package/types/ui/units/connections/components/ConnectorForm/FormActions/utils.d.ts +3 -0
- package/types/ui/units/connections/components/ConnectorForm/FormRow/FormItem.d.ts +5 -0
- package/types/ui/units/connections/components/ConnectorForm/FormRow/FormRow.d.ts +56 -0
- package/types/ui/units/connections/components/ConnectorForm/FormRow/PreparedRowItem.d.ts +2 -0
- package/types/ui/units/connections/components/ConnectorForm/components/Checkbox/Checkbox.d.ts +29 -0
- package/types/ui/units/connections/components/ConnectorForm/components/Datepicker/Datepicker.d.ts +518 -0
- package/types/ui/units/connections/components/ConnectorForm/components/Description/Description.d.ts +4 -0
- package/types/ui/units/connections/components/ConnectorForm/components/FileInput/FileInput.d.ts +602 -0
- package/types/ui/units/connections/components/ConnectorForm/components/FileInput/utils.d.ts +6 -0
- package/types/ui/units/connections/components/ConnectorForm/components/Input/Input.d.ts +549 -0
- package/types/ui/units/connections/components/ConnectorForm/components/KeyValue/KeyValue.d.ts +2 -0
- package/types/ui/units/connections/components/ConnectorForm/components/KeyValue/hooks.d.ts +24 -0
- package/types/ui/units/connections/components/ConnectorForm/components/KeyValue/types.d.ts +8 -0
- package/types/ui/units/connections/components/ConnectorForm/components/Label/Label.d.ts +4 -0
- package/types/ui/units/connections/components/ConnectorForm/components/MarkdownItem/MarkdownItem.d.ts +29 -0
- package/types/ui/units/connections/components/ConnectorForm/components/PlainText/PlainText.d.ts +6 -0
- package/types/ui/units/connections/components/ConnectorForm/components/RadioButton/RadioButton.d.ts +487 -0
- package/types/ui/units/connections/components/ConnectorForm/components/RadioGroup/RadioGroup.d.ts +29 -0
- package/types/ui/units/connections/components/ConnectorForm/components/Select/Select.d.ts +550 -0
- package/types/ui/units/connections/components/ConnectorForm/components/index.d.ts +13 -0
- package/types/ui/units/connections/components/ConnectorForm/components/withControlWrap/withControlWrap.d.ts +64 -0
- package/types/ui/units/connections/components/ConnectorForm/preparedRows/CacheTtlRow/CacheTtlRow.d.ts +29 -0
- package/types/ui/units/connections/components/ConnectorForm/preparedRows/CollapseRow/CollapseRow.d.ts +25 -0
- package/types/ui/units/connections/components/ConnectorForm/preparedRows/RawSQLLevelRow/RawSQLLevelRow.d.ts +4 -0
- package/types/ui/units/connections/components/ConnectorForm/preparedRows/index.d.ts +3 -0
- package/types/ui/units/connections/components/ConnectorForm/utils/index.d.ts +9 -0
- package/types/ui/units/connections/components/ConnectorsList/ConnectorsList.d.ts +9 -0
- package/types/ui/units/connections/components/ConnectorsList/ListItem.d.ts +43 -0
- package/types/ui/units/connections/components/ConnectorsList/utils/index.d.ts +8 -0
- package/types/ui/units/connections/components/ConnectorsList/utils/listItemRender.d.ts +2 -0
- package/types/ui/units/connections/components/ErrorView/ErrorView.d.ts +21 -0
- package/types/ui/units/connections/components/FormTitle/FormTitle.d.ts +11 -0
- package/types/ui/units/connections/components/Page/ConnPanelActions.d.ts +9 -0
- package/types/ui/units/connections/components/Page/Page.d.ts +2 -0
- package/types/ui/units/connections/components/Page/components/ConnSettings.d.ts +4 -0
- package/types/ui/units/connections/components/Page/components/CreateDatasetButton.d.ts +33 -0
- package/types/ui/units/connections/components/Page/components/CreateQlChartButton.d.ts +24 -0
- package/types/ui/units/connections/components/Page/components/DescriptionButton.d.ts +3 -0
- package/types/ui/units/connections/components/Page/components/S3BasedConnButton.d.ts +28 -0
- package/types/ui/units/connections/components/Page/components/UnloadConfirmation.d.ts +1 -0
- package/types/ui/units/connections/components/Page/components/index.d.ts +5 -0
- package/types/ui/units/connections/components/Page/constants.d.ts +2 -0
- package/types/ui/units/connections/components/Page/filterContextMenuItems.d.ts +9 -0
- package/types/ui/units/connections/components/Page/useAdditionalContextMenuItems.d.ts +11 -0
- package/types/ui/units/connections/components/Page/useApiErrors.d.ts +12 -0
- package/types/ui/units/connections/components/Page/utils.d.ts +11 -0
- package/types/ui/units/connections/components/Router/Router.d.ts +9 -0
- package/types/ui/units/connections/components/WrappedLoader/WrappedLoader.d.ts +6 -0
- package/types/ui/units/connections/components/custom-forms/ChOverYT/ChOverYT.d.ts +6 -0
- package/types/ui/units/connections/components/custom-forms/ChOverYT/ChoicePage.d.ts +6 -0
- package/types/ui/units/connections/components/custom-forms/ChOverYT/ConnectorCard.d.ts +8 -0
- package/types/ui/units/connections/components/custom-forms/ChOverYT/Notification.d.ts +5 -0
- package/types/ui/units/connections/components/custom-forms/ChOverYT/constants.d.ts +5 -0
- package/types/ui/units/connections/components/custom-forms/File/File.d.ts +32 -0
- package/types/ui/units/connections/components/custom-forms/File/components/AddFileButton.d.ts +1 -0
- package/types/ui/units/connections/components/custom-forms/File/components/FilesList.d.ts +10 -0
- package/types/ui/units/connections/components/custom-forms/File/components/ListItem/FileItem.d.ts +3 -0
- package/types/ui/units/connections/components/custom-forms/File/components/ListItem/ListItem.d.ts +3 -0
- package/types/ui/units/connections/components/custom-forms/File/components/ListItem/SourceItem.d.ts +2 -0
- package/types/ui/units/connections/components/custom-forms/File/components/ReplaceSourceButton.d.ts +1 -0
- package/types/ui/units/connections/components/custom-forms/File/components/Workspace/ColumnFilter.d.ts +6 -0
- package/types/ui/units/connections/components/custom-forms/File/components/Workspace/FileSettings.d.ts +8 -0
- package/types/ui/units/connections/components/custom-forms/File/components/Workspace/TypeSelect.d.ts +8 -0
- package/types/ui/units/connections/components/custom-forms/File/components/Workspace/Workspace.d.ts +7 -0
- package/types/ui/units/connections/components/custom-forms/File/components/index.d.ts +3 -0
- package/types/ui/units/connections/components/custom-forms/File/context.d.ts +22 -0
- package/types/ui/units/connections/components/custom-forms/File/types.d.ts +20 -0
- package/types/ui/units/connections/components/custom-forms/File/useHandlers.d.ts +22 -0
- package/types/ui/units/connections/components/custom-forms/File/utils.d.ts +25 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/GSheetsV2.d.ts +1 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/components/AddSection.d.ts +11 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/components/AdditionalTitleContent/GAuthButton.d.ts +7 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/components/AdditionalTitleContent/index.d.ts +13 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/components/GSheetListItemView/GSheetSourceInfoView.d.ts +10 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/components/GSheetListItemView/GSheetSourceView.d.ts +12 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/components/GSheetListItemView/UploadedGSheetView.d.ts +10 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/components/GSheetListItemView/index.d.ts +10 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/components/SheetsList.d.ts +16 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/components/Workspace/EmptyWorkspace.d.ts +1 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/components/Workspace/GSheetSourceInfoWorkspace.d.ts +7 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/components/Workspace/GSheetSourceWorkspace.d.ts +11 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/components/Workspace/GSheetWorkspace.d.ts +7 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/components/Workspace/Workspace.d.ts +12 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/components/Workspace/utils.d.ts +9 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/components/index.d.ts +3 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/containers/ActionBarContainer.d.ts +1 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/containers/SheetsListContainer.d.ts +1 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/containers/WorkspaceContainer.d.ts +1 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/containers/index.d.ts +3 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/containers/useGSheetDialogs.d.ts +26 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/containers/useGoogleAuth.d.ts +4 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/containers/utils.d.ts +6 -0
- package/types/ui/units/connections/components/custom-forms/GSheetsV2/types.d.ts +7 -0
- package/types/ui/units/connections/components/custom-forms/Yadocs/Yadocs.d.ts +1 -0
- package/types/ui/units/connections/components/custom-forms/Yadocs/components/AdditionalTitleContent.d.ts +11 -0
- package/types/ui/units/connections/components/custom-forms/Yadocs/components/DialogAddDocument/DialogAddDocument.d.ts +22 -0
- package/types/ui/units/connections/components/custom-forms/Yadocs/components/DocsList.d.ts +14 -0
- package/types/ui/units/connections/components/custom-forms/Yadocs/components/Workspace.d.ts +16 -0
- package/types/ui/units/connections/components/custom-forms/Yadocs/components/YadocListItemView/UploadedYadocView.d.ts +11 -0
- package/types/ui/units/connections/components/custom-forms/Yadocs/components/YadocListItemView/YadocSourceInfoView.d.ts +10 -0
- package/types/ui/units/connections/components/custom-forms/Yadocs/components/YadocListItemView/YadocSourceView.d.ts +13 -0
- package/types/ui/units/connections/components/custom-forms/Yadocs/components/YadocListItemView/index.d.ts +11 -0
- package/types/ui/units/connections/components/custom-forms/Yadocs/components/index.d.ts +4 -0
- package/types/ui/units/connections/components/custom-forms/Yadocs/containers/ActionBarContainer.d.ts +1 -0
- package/types/ui/units/connections/components/custom-forms/Yadocs/containers/DocsListContainer.d.ts +1 -0
- package/types/ui/units/connections/components/custom-forms/Yadocs/containers/WorkspaceContainer.d.ts +1 -0
- package/types/ui/units/connections/components/custom-forms/Yadocs/containers/index.d.ts +3 -0
- package/types/ui/units/connections/components/custom-forms/Yadocs/containers/useYadocsDialogs.d.ts +26 -0
- package/types/ui/units/connections/components/custom-forms/Yadocs/types.d.ts +4 -0
- package/types/ui/units/connections/components/custom-forms/components/ButtonLogout/ButtonLogout.d.ts +7 -0
- package/types/ui/units/connections/components/custom-forms/components/ColumnFilter/ColumnFilter.d.ts +6 -0
- package/types/ui/units/connections/components/custom-forms/components/ColumnsHeaderSwitcher/ColumnsHeaderSwitcher.d.ts +6 -0
- package/types/ui/units/connections/components/custom-forms/components/DialogWithInput/DialogWithInput.d.ts +2 -0
- package/types/ui/units/connections/components/custom-forms/components/DialogWithInput/index.d.ts +6 -0
- package/types/ui/units/connections/components/custom-forms/components/DialogWithInput/types.d.ts +22 -0
- package/types/ui/units/connections/components/custom-forms/components/ListItem/ActionDeleteView.d.ts +4 -0
- package/types/ui/units/connections/components/custom-forms/components/ListItem/ActionErrorView.d.ts +4 -0
- package/types/ui/units/connections/components/custom-forms/components/ListItem/ActionMoreView.d.ts +3 -0
- package/types/ui/units/connections/components/custom-forms/components/ListItem/ListItem.d.ts +2 -0
- package/types/ui/units/connections/components/custom-forms/components/ListItem/ListItemActions.d.ts +6 -0
- package/types/ui/units/connections/components/custom-forms/components/ListItem/types.d.ts +25 -0
- package/types/ui/units/connections/components/custom-forms/components/index.d.ts +6 -0
- package/types/ui/units/connections/components/custom-forms/hooks/useFileSourceTableWidgetData.d.ts +18 -0
- package/types/ui/units/connections/components/custom-forms/index.d.ts +4 -0
- package/types/ui/units/connections/components/custom-forms/utils/render.d.ts +12 -0
- package/types/ui/units/connections/components/dialogs/Confirm/Confirm.d.ts +2 -0
- package/types/ui/units/connections/components/dialogs/Confirm/index.d.ts +6 -0
- package/types/ui/units/connections/components/dialogs/Confirm/types.d.ts +10 -0
- package/types/ui/units/connections/components/dialogs/CreateConnection/CreateConnection.d.ts +9 -0
- package/types/ui/units/connections/components/dialogs/CreateConnectionInWbOrCollection/CreateConnectionInWbOrCollection.d.ts +11 -0
- package/types/ui/units/connections/components/dialogs/S3Source/DialogS3Source.d.ts +2 -0
- package/types/ui/units/connections/components/dialogs/S3Source/ListHeader.d.ts +10 -0
- package/types/ui/units/connections/components/dialogs/S3Source/ListItem.d.ts +9 -0
- package/types/ui/units/connections/components/dialogs/S3Source/index.d.ts +6 -0
- package/types/ui/units/connections/components/dialogs/S3Source/types.d.ts +12 -0
- package/types/ui/units/connections/components/dialogs/S3Source/utils.d.ts +13 -0
- package/types/ui/units/connections/components/dialogs/index.d.ts +4 -0
- package/types/ui/units/connections/components/hooks/index.d.ts +1 -0
- package/types/ui/units/connections/components/hooks/useCreationHandler/index.d.ts +10 -0
- package/types/ui/units/connections/components/index.d.ts +9 -0
- package/types/ui/units/connections/constants/form.d.ts +43 -0
- package/types/ui/units/connections/constants/index.d.ts +11 -0
- package/types/ui/units/connections/constants/validation.d.ts +6 -0
- package/types/ui/units/connections/index.d.ts +108 -0
- package/types/ui/units/connections/store/actions/api.d.ts +103 -0
- package/types/ui/units/connections/store/actions/base.d.ts +74 -0
- package/types/ui/units/connections/store/actions/file.d.ts +13 -0
- package/types/ui/units/connections/store/actions/gsheet/index.d.ts +14 -0
- package/types/ui/units/connections/store/actions/gsheet/misc-actions.d.ts +29 -0
- package/types/ui/units/connections/store/actions/gsheet/utils.d.ts +33 -0
- package/types/ui/units/connections/store/actions/index.d.ts +34 -0
- package/types/ui/units/connections/store/actions/s3-based.d.ts +9 -0
- package/types/ui/units/connections/store/actions/yadoc/index.d.ts +14 -0
- package/types/ui/units/connections/store/actions/yadoc/misc-actions.d.ts +29 -0
- package/types/ui/units/connections/store/actions/yadoc/utils.d.ts +29 -0
- package/types/ui/units/connections/store/constants.d.ts +2 -0
- package/types/ui/units/connections/store/index.d.ts +4 -0
- package/types/ui/units/connections/store/reducers/index.d.ts +3 -0
- package/types/ui/units/connections/store/selectors/connection-data.d.ts +7 -0
- package/types/ui/units/connections/store/selectors/form.d.ts +10 -0
- package/types/ui/units/connections/store/selectors/gsheet.d.ts +8 -0
- package/types/ui/units/connections/store/selectors/index.d.ts +26 -0
- package/types/ui/units/connections/store/selectors/initial-form.d.ts +3 -0
- package/types/ui/units/connections/store/selectors/inner-form.d.ts +4 -0
- package/types/ui/units/connections/store/selectors/yadocs.d.ts +7 -0
- package/types/ui/units/connections/store/typings/file.d.ts +34 -0
- package/types/ui/units/connections/store/typings/gsheet.d.ts +74 -0
- package/types/ui/units/connections/store/typings/index.d.ts +293 -0
- package/types/ui/units/connections/store/typings/s3-based.d.ts +15 -0
- package/types/ui/units/connections/store/typings/yadocs.d.ts +75 -0
- package/types/ui/units/connections/store/utils/connectors.d.ts +12 -0
- package/types/ui/units/connections/store/utils/entry.d.ts +2 -0
- package/types/ui/units/connections/store/utils/file.d.ts +6 -0
- package/types/ui/units/connections/store/utils/forms.d.ts +26 -0
- package/types/ui/units/connections/store/utils/index.d.ts +5 -0
- package/types/ui/units/connections/store/utils/validation.d.ts +11 -0
- package/types/ui/units/connections/typings/common.d.ts +1 -0
- package/types/ui/units/connections/typings/form.d.ts +7 -0
- package/types/ui/units/connections/typings/index.d.ts +2 -0
- package/types/ui/units/connections/utils/common.d.ts +4 -0
- package/types/ui/units/connections/utils/connectors.d.ts +10 -0
- package/types/ui/units/connections/utils/entry.d.ts +4 -0
- package/types/ui/units/connections/utils/gsheet.d.ts +9 -0
- package/types/ui/units/connections/utils/i18n.d.ts +2 -0
- package/types/ui/units/connections/utils/index.d.ts +7 -0
- package/types/ui/units/connections/utils/validation.d.ts +4 -0
- package/types/ui/units/connections/utils/yadocs.d.ts +9 -0
- package/types/ui/units/dash/components/DashActionPanel/DashActionPanel.d.ts +118 -0
- package/types/ui/units/dash/components/DashActionPanel/DashActionPanelMobile.d.ts +10 -0
- package/types/ui/units/dash/components/DashActionPanel/Description/Description.d.ts +8 -0
- package/types/ui/units/dash/components/DashActionPanel/EditControls/EditControls.d.ts +25 -0
- package/types/ui/units/dash/components/DashActionPanel/SaveDropDown/SaveDropDown.d.ts +8 -0
- package/types/ui/units/dash/components/DashActionPanel/ViewControls/ViewControls.d.ts +14 -0
- package/types/ui/units/dash/components/DashActionPanel/helpers.d.ts +9 -0
- package/types/ui/units/dash/components/EmptyState/EmptyState.d.ts +12 -0
- package/types/ui/units/dash/components/GlobalSelectorIcon/GlobalSelectorIcon.d.ts +9 -0
- package/types/ui/units/dash/components/Loader/Loader.d.ts +8 -0
- package/types/ui/units/dash/components/NavigationInput/InputLink/InputLink.d.ts +29 -0
- package/types/ui/units/dash/components/NavigationInput/NavigationInput.d.ts +41 -0
- package/types/ui/units/dash/components/ParamsSettings/ParamsRow.d.ts +15 -0
- package/types/ui/units/dash/components/ParamsSettings/ParamsSettings.d.ts +2 -0
- package/types/ui/units/dash/components/ParamsSettings/helpers.d.ts +8 -0
- package/types/ui/units/dash/components/ParamsSettings/types.d.ts +15 -0
- package/types/ui/units/dash/components/ShareButton/ShareButton.d.ts +15 -0
- package/types/ui/units/dash/containers/App/App.d.ts +2 -0
- package/types/ui/units/dash/containers/Body/Body.d.ts +25 -0
- package/types/ui/units/dash/containers/Body/LazyBody.d.ts +3 -0
- package/types/ui/units/dash/containers/Body/components/Content/Content.d.ts +49 -0
- package/types/ui/units/dash/containers/Body/components/Content/hooks/useCopiedData.d.ts +5 -0
- package/types/ui/units/dash/containers/Body/components/DashkitWrapper/DashkitWrapper.d.ts +37 -0
- package/types/ui/units/dash/containers/Body/components/DashkitWrapper/hooks/useConfig.d.ts +2 -0
- package/types/ui/units/dash/containers/Body/components/DashkitWrapper/hooks/useDashKitContext.d.ts +14 -0
- package/types/ui/units/dash/containers/Body/components/DashkitWrapper/hooks/useDashkitRef.d.ts +3 -0
- package/types/ui/units/dash/containers/Body/components/DashkitWrapper/hooks/useDataProviderContext.d.ts +3 -0
- package/types/ui/units/dash/containers/Body/components/DashkitWrapper/hooks/useHashStates.d.ts +11 -0
- package/types/ui/units/dash/containers/Body/components/DashkitWrapper/hooks/useOverlay/getGearGlobalIcon.d.ts +9 -0
- package/types/ui/units/dash/containers/Body/components/DashkitWrapper/hooks/useOverlay/helpers.d.ts +5 -0
- package/types/ui/units/dash/containers/Body/components/DashkitWrapper/hooks/useOverlay/useOverlay.d.ts +23 -0
- package/types/ui/units/dash/containers/Body/components/DashkitWrapper/hooks/usePreparedCopyItemOptions.d.ts +5 -0
- package/types/ui/units/dash/containers/Body/context.d.ts +20 -0
- package/types/ui/units/dash/containers/Dash/Dash.d.ts +146 -0
- package/types/ui/units/dash/containers/DashError/DashError.d.ts +5 -0
- package/types/ui/units/dash/containers/DashHotkes/DashHotkeys.d.ts +10 -0
- package/types/ui/units/dash/containers/Dialogs/DialogEditQuery/DialogEditQuery.d.ts +5 -0
- package/types/ui/units/dash/containers/Dialogs/DialogEditQuery/QueryEditor/QueryEditor.d.ts +7 -0
- package/types/ui/units/dash/containers/Dialogs/DialogEditQuery/QueryError/QueryError.d.ts +6 -0
- package/types/ui/units/dash/containers/Dialogs/DialogEditQuery/helpers/validate-query.d.ts +2 -0
- package/types/ui/units/dash/containers/Dialogs/Dialogs.d.ts +2 -0
- package/types/ui/units/dash/containers/Dialogs/Settings/Settings.d.ts +2 -0
- package/types/ui/units/dash/containers/Dialogs/Settings/components/AutoRefresh.d.ts +13 -0
- package/types/ui/units/dash/containers/Dialogs/Settings/components/Display.d.ts +14 -0
- package/types/ui/units/dash/containers/Dialogs/Settings/components/LoadPriority.d.ts +7 -0
- package/types/ui/units/dash/containers/Dialogs/Settings/components/MaxConnection.d.ts +7 -0
- package/types/ui/units/dash/containers/Dialogs/Settings/components/OtherSettings.d.ts +20 -0
- package/types/ui/units/dash/containers/Dialogs/Settings/components/Params.d.ts +7 -0
- package/types/ui/units/dash/containers/Dialogs/Settings/components/Row.d.ts +6 -0
- package/types/ui/units/dash/containers/Dialogs/Settings/components/Title.d.ts +7 -0
- package/types/ui/units/dash/containers/Dialogs/Settings/utils.d.ts +1 -0
- package/types/ui/units/dash/containers/Dialogs/Tabs/EditedTabItem.d.ts +8 -0
- package/types/ui/units/dash/containers/Dialogs/Tabs/PopupWidgetsOrder/PopupWidgetsOrder.d.ts +15 -0
- package/types/ui/units/dash/containers/Dialogs/Tabs/PopupWidgetsOrder/helpers.d.ts +91 -0
- package/types/ui/units/dash/containers/Dialogs/Tabs/TabItem.d.ts +75 -0
- package/types/ui/units/dash/containers/Dialogs/Tabs/Tabs.d.ts +51 -0
- package/types/ui/units/dash/containers/Dialogs/components/ColorInputsGroup/ColorInputsGroup.d.ts +15 -0
- package/types/ui/units/dash/containers/Dialogs/components/ColorPalette/ColorItem/ColorItem.d.ts +10 -0
- package/types/ui/units/dash/containers/Dialogs/components/ColorPalette/ColorPalette.d.ts +13 -0
- package/types/ui/units/dash/containers/Dialogs/components/ColorPicker/ColorPicker.d.ts +12 -0
- package/types/ui/units/dash/containers/Dialogs/components/ColorPickerInputWithPreset/ColorPickerInputWithPreset.d.ts +7 -0
- package/types/ui/units/dash/containers/Dialogs/components/PaletteBackground/PaletteBackground.d.ts +16 -0
- package/types/ui/units/dash/containers/Dialogs/components/PaletteText/PaletteText.d.ts +14 -0
- package/types/ui/units/dash/containers/Dialogs/constants.d.ts +23 -0
- package/types/ui/units/dash/containers/Dialogs/utils.d.ts +2 -0
- package/types/ui/units/dash/containers/FixedHeader/FixedHeader.d.ts +27 -0
- package/types/ui/units/dash/containers/FixedHeader/FixedHeaderMobile.d.ts +7 -0
- package/types/ui/units/dash/containers/Header/Header.d.ts +53 -0
- package/types/ui/units/dash/containers/MobileFloatMenu/MobileFloatMenu.d.ts +15 -0
- package/types/ui/units/dash/containers/TableOfContent/TableOfContent.d.ts +6 -0
- package/types/ui/units/dash/containers/TableOfContent/helpers.d.ts +5 -0
- package/types/ui/units/dash/containers/Tabs/Tabs.d.ts +32 -0
- package/types/ui/units/dash/hooks/useIframeFeatures.d.ts +7 -0
- package/types/ui/units/dash/modules/constants.d.ts +70 -0
- package/types/ui/units/dash/modules/helpers.d.ts +199 -0
- package/types/ui/units/dash/modules/markdownProvider.d.ts +11 -0
- package/types/ui/units/dash/modules/postMessage.d.ts +16 -0
- package/types/ui/units/dash/modules/pushStats.d.ts +4 -0
- package/types/ui/units/dash/store/actions/base/actions.d.ts +28 -0
- package/types/ui/units/dash/store/actions/base/helpers.d.ts +7 -0
- package/types/ui/units/dash/store/actions/dash.d.ts +2 -0
- package/types/ui/units/dash/store/actions/dashTyped.d.ts +337 -0
- package/types/ui/units/dash/store/actions/dialogs/actions.d.ts +35 -0
- package/types/ui/units/dash/store/actions/dialogs/dialog-edit-query.d.ts +2 -0
- package/types/ui/units/dash/store/actions/helpers.d.ts +60 -0
- package/types/ui/units/dash/store/actions/index.d.ts +10 -0
- package/types/ui/units/dash/store/actions/relations/actions.d.ts +12 -0
- package/types/ui/units/dash/store/constants/dashActionTypes.d.ts +5 -0
- package/types/ui/units/dash/store/constants/index.d.ts +2 -0
- package/types/ui/units/dash/store/reducers/dash.d.ts +61 -0
- package/types/ui/units/dash/store/reducers/dashHelpers.d.ts +48 -0
- package/types/ui/units/dash/store/reducers/dashTypedReducer.d.ts +48 -0
- package/types/ui/units/dash/store/selectors/dash.d.ts +0 -0
- package/types/ui/units/dash/store/selectors/dashTypedSelectors.d.ts +232 -0
- package/types/ui/units/dash/store/typings/dash.d.ts +43 -0
- package/types/ui/units/dash/store/utils.d.ts +28 -0
- package/types/ui/units/dash/typings/context.d.ts +16 -0
- package/types/ui/units/dash/typings/dash.d.ts +20 -0
- package/types/ui/units/dash/typings/entry.d.ts +3 -0
- package/types/ui/units/dash/utils/context.d.ts +3 -0
- package/types/ui/units/dash/utils/customEvents.d.ts +1 -0
- package/types/ui/units/dash/utils/dashkitProps.d.ts +3 -0
- package/types/ui/units/dash/utils/getTabId.d.ts +2 -0
- package/types/ui/units/dash/utils/scrollUtils.d.ts +1 -0
- package/types/ui/units/dash/utils/selectors.d.ts +35 -0
- package/types/ui/units/dash/utils/url.d.ts +6 -0
- package/types/ui/units/datasets/components/Avatar/Avatar.d.ts +29 -0
- package/types/ui/units/datasets/components/ColorsDialog/ColorsDialog.d.ts +15 -0
- package/types/ui/units/datasets/components/ContainerLoader/ContainerLoader.d.ts +23 -0
- package/types/ui/units/datasets/components/DatasetPanel/DatasetPanel.d.ts +51 -0
- package/types/ui/units/datasets/components/DatasetPanel/helpers.d.ts +5 -0
- package/types/ui/units/datasets/components/DatasetRouter/DatasetRouter.d.ts +406 -0
- package/types/ui/units/datasets/components/DatasetRouter/UnloadConfirmation.d.ts +1 -0
- package/types/ui/units/datasets/components/DatasetTabFieldList/DatasetTabFieldList.d.ts +15 -0
- package/types/ui/units/datasets/components/DatasetTabFieldList/components/FieldRow/FieldRow.d.ts +14 -0
- package/types/ui/units/datasets/components/DatasetTabFieldList/components/TitleColumn/TitleColumn.d.ts +7 -0
- package/types/ui/units/datasets/components/DatasetTabFieldList/components/TypeColumn/TypeColumn.d.ts +7 -0
- package/types/ui/units/datasets/components/DatasetTabFieldList/components/ValidationColumn/ValidationColumn.d.ts +4 -0
- package/types/ui/units/datasets/components/DatasetTabFieldList/components/ValueColumn/ValueColumn.d.ts +5 -0
- package/types/ui/units/datasets/components/DatasetTabFieldList/constants.d.ts +8 -0
- package/types/ui/units/datasets/components/DatasetTabFieldList/helpers.d.ts +4 -0
- package/types/ui/units/datasets/components/DatasetTabFieldList/types.d.ts +76 -0
- package/types/ui/units/datasets/components/DatasetTabSection/DatasetTabSection.d.ts +22 -0
- package/types/ui/units/datasets/components/DatasetTable/DatasetTable.d.ts +81 -0
- package/types/ui/units/datasets/components/DatasetTable/columns/Aggregation.d.ts +9 -0
- package/types/ui/units/datasets/components/DatasetTable/columns/Cast.d.ts +9 -0
- package/types/ui/units/datasets/components/DatasetTable/columns/Description.d.ts +10 -0
- package/types/ui/units/datasets/components/DatasetTable/columns/FieldSettings.d.ts +8 -0
- package/types/ui/units/datasets/components/DatasetTable/columns/Hidden.d.ts +8 -0
- package/types/ui/units/datasets/components/DatasetTable/columns/Id.d.ts +11 -0
- package/types/ui/units/datasets/components/DatasetTable/columns/IndexColumn.d.ts +12 -0
- package/types/ui/units/datasets/components/DatasetTable/columns/More.d.ts +11 -0
- package/types/ui/units/datasets/components/DatasetTable/columns/Rls.d.ts +9 -0
- package/types/ui/units/datasets/components/DatasetTable/columns/Source.d.ts +10 -0
- package/types/ui/units/datasets/components/DatasetTable/columns/Title.d.ts +11 -0
- package/types/ui/units/datasets/components/DatasetTable/columns/index.d.ts +10 -0
- package/types/ui/units/datasets/components/DatasetTable/components/AggregationSelect/AggregationSelect.d.ts +44 -0
- package/types/ui/units/datasets/components/DatasetTable/components/BatchActionPanel/BatchActionPanel.d.ts +8 -0
- package/types/ui/units/datasets/components/DatasetTable/components/BatchActionPanel/components/DialogChangeDatasetFields/DialogChangeDatasetFields.d.ts +21 -0
- package/types/ui/units/datasets/components/DatasetTable/components/DisplaySettings.d.ts +2 -0
- package/types/ui/units/datasets/components/DatasetTable/components/FieldActionsPopup.d.ts +14 -0
- package/types/ui/units/datasets/components/DatasetTable/components/ObservedDataTable.d.ts +9 -0
- package/types/ui/units/datasets/components/DatasetTable/components/TableTextInput.d.ts +10 -0
- package/types/ui/units/datasets/components/DatasetTable/components/TypeSelect/TypeSelect.d.ts +30 -0
- package/types/ui/units/datasets/components/DatasetTable/components/index.d.ts +5 -0
- package/types/ui/units/datasets/components/DatasetTable/constants.d.ts +21 -0
- package/types/ui/units/datasets/components/DatasetTable/types.d.ts +23 -0
- package/types/ui/units/datasets/components/DatasetTable/utils.d.ts +44 -0
- package/types/ui/units/datasets/components/DescriptionButton/DescriptionButton.d.ts +3 -0
- package/types/ui/units/datasets/components/DialogCreateDataset/DialogCreateDataset.d.ts +20 -0
- package/types/ui/units/datasets/components/DragAndDrop/DragAndDrop.d.ts +6 -0
- package/types/ui/units/datasets/components/ErrorView/ErrorView.d.ts +12 -0
- package/types/ui/units/datasets/components/FieldSettingsDialog/FieldSettingsDialog.d.ts +13 -0
- package/types/ui/units/datasets/components/FilterSection/FilterSection.d.ts +18 -0
- package/types/ui/units/datasets/components/FilterSection/helpers.d.ts +10 -0
- package/types/ui/units/datasets/components/FilterSection/types.d.ts +3 -0
- package/types/ui/units/datasets/components/FilterSection/useFilterSection.d.ts +24 -0
- package/types/ui/units/datasets/components/ParametersSection/ParametersSection.d.ts +10 -0
- package/types/ui/units/datasets/components/ParametersSection/components/CopyToClipboard/CopyToClipboardMenuItem.d.ts +2 -0
- package/types/ui/units/datasets/components/ParametersSection/components/HeaderWithTooltip/HeaderWithTooltip.d.ts +1 -0
- package/types/ui/units/datasets/components/ParametersSection/helpers.d.ts +5 -0
- package/types/ui/units/datasets/components/ParametersSection/useParametersSection.d.ts +12 -0
- package/types/ui/units/datasets/components/PreviewHeader/PreviewHeader.d.ts +24 -0
- package/types/ui/units/datasets/components/PreviewHeader/constants.d.ts +1 -0
- package/types/ui/units/datasets/components/PreviewHeader/utils.d.ts +1 -0
- package/types/ui/units/datasets/components/PreviewTable/PreviewTable.d.ts +35 -0
- package/types/ui/units/datasets/components/RLSDialog/RLSDialog.d.ts +51 -0
- package/types/ui/units/datasets/components/RelationDialog/RelationDialog.d.ts +69 -0
- package/types/ui/units/datasets/components/RelationsMap/RelationsMap.d.ts +5 -0
- package/types/ui/units/datasets/components/SelectSourcePrototypes/SelectSourcePrototypes.d.ts +63 -0
- package/types/ui/units/datasets/components/SelectSourcePrototypes/SourcesTable.d.ts +21 -0
- package/types/ui/units/datasets/components/SelectSourcePrototypes/constants.d.ts +3 -0
- package/types/ui/units/datasets/components/SelectSourcePrototypes/utils.d.ts +2 -0
- package/types/ui/units/datasets/components/Source/Source.d.ts +27 -0
- package/types/ui/units/datasets/components/SourceEditorDialog/SourceEditorDialog.d.ts +32 -0
- package/types/ui/units/datasets/components/SourceEditorDialog/components/EditorFormItem.d.ts +12 -0
- package/types/ui/units/datasets/components/SourceEditorDialog/components/Form.d.ts +14 -0
- package/types/ui/units/datasets/components/SourceEditorDialog/components/InputFormItem.d.ts +13 -0
- package/types/ui/units/datasets/components/SourceEditorDialog/components/ParamSelector.d.ts +17 -0
- package/types/ui/units/datasets/components/SourceEditorDialog/components/SelectFormItem.d.ts +10 -0
- package/types/ui/units/datasets/components/SourceEditorDialog/components/SourceError.d.ts +9 -0
- package/types/ui/units/datasets/components/SourceEditorDialog/components/SourceHelpTooltip.d.ts +7 -0
- package/types/ui/units/datasets/components/SourceEditorDialog/components/SourceSwitcher.d.ts +10 -0
- package/types/ui/units/datasets/components/SourceEditorDialog/components/index.d.ts +5 -0
- package/types/ui/units/datasets/components/SourceEditorDialog/types.d.ts +8 -0
- package/types/ui/units/datasets/components/SourceEditorDialog/utils/helpers.d.ts +19 -0
- package/types/ui/units/datasets/components/SourceEditorDialog/utils/index.d.ts +2 -0
- package/types/ui/units/datasets/components/SourceEditorDialog/utils/validation.d.ts +7 -0
- package/types/ui/units/datasets/components/UserName/UserName.d.ts +9 -0
- package/types/ui/units/datasets/components/Veil/Veil.d.ts +10 -0
- package/types/ui/units/datasets/components/dialogs/DatasetFieldInspector/DatasetFieldInspector.d.ts +10 -0
- package/types/ui/units/datasets/components/dialogs/index.d.ts +1 -0
- package/types/ui/units/datasets/components/hoc/AvatarDnD.d.ts +12 -0
- package/types/ui/units/datasets/constants/datasets.d.ts +22 -0
- package/types/ui/units/datasets/constants/index.d.ts +138 -0
- package/types/ui/units/datasets/containers/Dataset/ActionPanelRightItems.d.ts +9 -0
- package/types/ui/units/datasets/containers/Dataset/Dataset.d.ts +475 -0
- package/types/ui/units/datasets/containers/Dataset/constants.d.ts +1 -0
- package/types/ui/units/datasets/containers/Dataset/getAdditionalContextMenuItems.d.ts +18 -0
- package/types/ui/units/datasets/containers/Dataset/useHistoryActions.d.ts +1 -0
- package/types/ui/units/datasets/containers/DatasetEditor/DatasetEditor.d.ts +101 -0
- package/types/ui/units/datasets/containers/DatasetEditor/utils.d.ts +9 -0
- package/types/ui/units/datasets/containers/DatasetError/DatasetError.d.ts +41 -0
- package/types/ui/units/datasets/containers/DatasetFilters/DatasetFilters.d.ts +6 -0
- package/types/ui/units/datasets/containers/DatasetPage/DatasetPage.d.ts +27 -0
- package/types/ui/units/datasets/containers/DatasetPage/createDatasetPageContext.d.ts +7 -0
- package/types/ui/units/datasets/containers/DatasetParameters/DatasetParameters.d.ts +5 -0
- package/types/ui/units/datasets/containers/DatasetPreview/DatasetPreview.d.ts +3 -0
- package/types/ui/units/datasets/containers/DatasetSources/DatasetSources.d.ts +546 -0
- package/types/ui/units/datasets/containers/DatasetTabViewer/DatasetTabViewer.d.ts +15 -0
- package/types/ui/units/datasets/helpers/dataset-error-helpers.d.ts +8 -0
- package/types/ui/units/datasets/helpers/datasets.d.ts +5 -0
- package/types/ui/units/datasets/helpers/utils.d.ts +52 -0
- package/types/ui/units/datasets/helpers/validation.d.ts +10 -0
- package/types/ui/units/datasets/store/actions/creators/datasetTyped.d.ts +215 -0
- package/types/ui/units/datasets/store/actions/creators/dialogs.d.ts +11 -0
- package/types/ui/units/datasets/store/actions/creators/index.d.ts +2 -0
- package/types/ui/units/datasets/store/actions/creators/utils.d.ts +9 -0
- package/types/ui/units/datasets/store/actions/types/dataset.d.ts +83 -0
- package/types/ui/units/datasets/store/constants.d.ts +11 -0
- package/types/ui/units/datasets/store/edit-history-middleware.d.ts +2 -0
- package/types/ui/units/datasets/store/reducers/dataset.d.ts +1544 -0
- package/types/ui/units/datasets/store/reducers/index.d.ts +1544 -0
- package/types/ui/units/datasets/store/reducers/utils/index.d.ts +8 -0
- package/types/ui/units/datasets/store/reducers/utils/mocks.d.ts +2 -0
- package/types/ui/units/datasets/store/selectors/dataset.d.ts +240 -0
- package/types/ui/units/datasets/store/selectors/datasetTyped.d.ts +3 -0
- package/types/ui/units/datasets/store/selectors/index.d.ts +2 -0
- package/types/ui/units/datasets/store/types/dataset.d.ts +681 -0
- package/types/ui/units/datasets/store/types/index.d.ts +1 -0
- package/types/ui/units/datasets/typings/dataset.d.ts +20 -0
- package/types/ui/units/datasets/typings/redux.d.ts +20 -0
- package/types/ui/units/preview/components/App/App.d.ts +24 -0
- package/types/ui/units/preview/components/IndexPage/IndexPage.d.ts +2 -0
- package/types/ui/units/preview/components/Preview/Preview.d.ts +14 -0
- package/types/ui/units/preview/hooks/useChartAutoupdate.d.ts +4 -0
- package/types/ui/units/preview/modules/constants/constants.d.ts +2 -0
- package/types/ui/units/preview/modules/helpers.d.ts +1 -0
- package/types/ui/units/ql/components/DND/DNDContainer.d.ts +33 -0
- package/types/ui/units/ql/components/DND/DNDItem.d.ts +2 -0
- package/types/ui/units/ql/components/DND/DNDLayer.d.ts +61 -0
- package/types/ui/units/ql/components/Dialogs/Settings/Settings.d.ts +67 -0
- package/types/ui/units/ql/components/Grid/Grid.d.ts +26 -0
- package/types/ui/units/ql/components/Grid/GridPane/GridPane.d.ts +11 -0
- package/types/ui/units/ql/components/Grid/GridPane/GridPaneView/GridPaneView.d.ts +36 -0
- package/types/ui/units/ql/components/Grid/GridPane/GridPaneView/GridPaneViewContent.d.ts +16 -0
- package/types/ui/units/ql/configs/chart-types.d.ts +10 -0
- package/types/ui/units/ql/constants/index.d.ts +47 -0
- package/types/ui/units/ql/containers/App/App.d.ts +302 -0
- package/types/ui/units/ql/containers/PaneMain/PaneMain.d.ts +13 -0
- package/types/ui/units/ql/containers/PaneMain/ScreenEditor/ScreenEditor.d.ts +9 -0
- package/types/ui/units/ql/containers/PaneMain/ScreenEditor/TabParams/DefaultValue.d.ts +25 -0
- package/types/ui/units/ql/containers/PaneMain/ScreenEditor/TabParams/OverridenValue.d.ts +7 -0
- package/types/ui/units/ql/containers/PaneMain/ScreenEditor/TabParams/TabParams.d.ts +6 -0
- package/types/ui/units/ql/containers/PaneMain/ScreenEditor/TabParams/utils.d.ts +8 -0
- package/types/ui/units/ql/containers/PaneMain/ScreenEditor/TabQuery/ScreenPromQL/ScreenPromQL.d.ts +13 -0
- package/types/ui/units/ql/containers/PaneMain/ScreenEditor/TabQuery/ScreenSQL/ScreenSQL.d.ts +9 -0
- package/types/ui/units/ql/containers/PaneMain/ScreenEditor/TabQuery/TabQuery.d.ts +11 -0
- package/types/ui/units/ql/containers/PanePreview/PanePreview.d.ts +12 -0
- package/types/ui/units/ql/containers/PaneTablePreview/PaneTablePreview.d.ts +12 -0
- package/types/ui/units/ql/containers/PaneVisualization/PaneVisualization.d.ts +7 -0
- package/types/ui/units/ql/containers/QL/QL.d.ts +12 -0
- package/types/ui/units/ql/containers/QL/QLActionPanel/QLActionPanel.d.ts +15 -0
- package/types/ui/units/ql/containers/QL/QLActionPanel/useQLActionPanel.d.ts +6 -0
- package/types/ui/units/ql/containers/QL/ViewSetup/ViewSetup.d.ts +3 -0
- package/types/ui/units/ql/modules/helpers.d.ts +4 -0
- package/types/ui/units/ql/store/actions/dialog.d.ts +13 -0
- package/types/ui/units/ql/store/actions/ql.d.ts +284 -0
- package/types/ui/units/ql/store/reducers/index.d.ts +219 -0
- package/types/ui/units/ql/store/reducers/ql.d.ts +873 -0
- package/types/ui/units/ql/store/typings/index.d.ts +1 -0
- package/types/ui/units/ql/store/typings/ql.d.ts +289 -0
- package/types/ui/units/ql/store/utils/grid.d.ts +81 -0
- package/types/ui/units/ql/store/utils/monitoring.d.ts +572 -0
- package/types/ui/units/ql/utils/chart-settings.d.ts +3 -0
- package/types/ui/units/ql/utils/connectionts.d.ts +2 -0
- package/types/ui/units/ql/utils/query.d.ts +3 -0
- package/types/ui/units/ql/utils/visualization/getAvailableQlVisualizations.d.ts +2 -0
- package/types/ui/units/ql/utils/visualization/getDefaultQlVisualization.d.ts +2 -0
- package/types/ui/units/ql/utils/visualization/getQlVisualization.d.ts +2 -0
- package/types/ui/units/ql/utils/visualization/index.d.ts +3 -0
- package/types/ui/units/service-settings/components/AppearanceSettings/AppearanceSettings.d.ts +7 -0
- package/types/ui/units/service-settings/components/CreateUserForm/CreateUserForm.d.ts +1 -0
- package/types/ui/units/service-settings/components/SectionGroup/SectionGroup.d.ts +7 -0
- package/types/ui/units/service-settings/components/UsersList/LabelsList/LabelsList.d.ts +9 -0
- package/types/ui/units/service-settings/components/UsersList/UsersFilters/UsersFilters.d.ts +5 -0
- package/types/ui/units/service-settings/components/UsersList/UsersList.d.ts +2 -0
- package/types/ui/units/service-settings/components/UsersList/constants.d.ts +7 -0
- package/types/ui/units/service-settings/components/UsersList/utils.d.ts +3 -0
- package/types/ui/units/service-settings/containers/AccessErrorPage/AccessErrorPage.d.ts +2 -0
- package/types/ui/units/service-settings/containers/App/App.d.ts +7 -0
- package/types/ui/units/service-settings/containers/CreateProfilePage/CreateProfilePage.d.ts +2 -0
- package/types/ui/units/service-settings/containers/MainPage/MainPage.d.ts +18 -0
- package/types/ui/units/service-settings/containers/UserProfilePage/UserProfilePage.d.ts +2 -0
- package/types/ui/units/service-settings/store/actions/serviceSettings.d.ts +64 -0
- package/types/ui/units/service-settings/store/constants/serviceSettings.d.ts +10 -0
- package/types/ui/units/service-settings/store/reducers/serviceSettings.d.ts +34 -0
- package/types/ui/units/service-settings/store/selectors/serviceSettings.d.ts +10 -0
- package/types/ui/units/service-settings/store/typings/serviceSettings.d.ts +17 -0
- package/types/ui/units/wizard/actions/dataset.d.ts +106 -0
- package/types/ui/units/wizard/actions/dialog.d.ts +70 -0
- package/types/ui/units/wizard/actions/dialogColor.d.ts +58 -0
- package/types/ui/units/wizard/actions/dndItems.d.ts +68 -0
- package/types/ui/units/wizard/actions/hierarchyEditor.d.ts +14 -0
- package/types/ui/units/wizard/actions/index.d.ts +714 -0
- package/types/ui/units/wizard/actions/placeholder.d.ts +31 -0
- package/types/ui/units/wizard/actions/preview.d.ts +88 -0
- package/types/ui/units/wizard/actions/settings.d.ts +36 -0
- package/types/ui/units/wizard/actions/tooltip.d.ts +7 -0
- package/types/ui/units/wizard/actions/utils/getDatasetUpdates.d.ts +25 -0
- package/types/ui/units/wizard/actions/utils/index.d.ts +3 -0
- package/types/ui/units/wizard/actions/utils/mutateAndValidateItem.d.ts +6 -0
- package/types/ui/units/wizard/actions/utils/placeholders.d.ts +2 -0
- package/types/ui/units/wizard/actions/visualization.d.ts +199 -0
- package/types/ui/units/wizard/actions/widget.d.ts +60 -0
- package/types/ui/units/wizard/components/AddField/AddField.d.ts +22 -0
- package/types/ui/units/wizard/components/DND/DNDContainer.d.ts +33 -0
- package/types/ui/units/wizard/components/DND/DNDItem.d.ts +32 -0
- package/types/ui/units/wizard/components/DND/DragAndDrop.d.ts +6 -0
- package/types/ui/units/wizard/components/DatasetSelect/DatasetSelect.d.ts +31 -0
- package/types/ui/units/wizard/components/DatasetSelect/DatasetSelectItem.d.ts +17 -0
- package/types/ui/units/wizard/components/Dialogs/DialogColor/ColorSettingsContainer/ColorSettingsContainer.d.ts +55 -0
- package/types/ui/units/wizard/components/Dialogs/DialogColor/DialogColor.d.ts +249 -0
- package/types/ui/units/wizard/components/Dialogs/DialogColor/DialogColorGradient/DialogColorGradient.d.ts +38 -0
- package/types/ui/units/wizard/components/Dialogs/DialogColor/DialogColorPalette/DialogColorPalette.d.ts +35 -0
- package/types/ui/units/wizard/components/Dialogs/DialogColumnSettings/DialogColumnSettings.d.ts +28 -0
- package/types/ui/units/wizard/components/Dialogs/DialogColumnSettings/components/ColumnWidthSetting/ColumnWidthSetting.d.ts +11 -0
- package/types/ui/units/wizard/components/Dialogs/DialogColumnSettings/components/ColumnWidthSettingsSection/ColumnWidthSettingsSection.d.ts +13 -0
- package/types/ui/units/wizard/components/Dialogs/DialogColumnSettings/components/FieldInfo/FieldInfo.d.ts +9 -0
- package/types/ui/units/wizard/components/Dialogs/DialogColumnSettings/components/Subheader/Subheader.d.ts +6 -0
- package/types/ui/units/wizard/components/Dialogs/DialogColumnSettings/hooks/useDialogColumnSettingsState.d.ts +28 -0
- package/types/ui/units/wizard/components/Dialogs/DialogColumnSettings/utils/index.d.ts +14 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/DialogField.d.ts +44 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/BackgroundSettings/BackgroundSettings.d.ts +11 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/BackgroundSettings/hooks/helpers.d.ts +18 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/BackgroundSettings/hooks/useBackgrounColorFieldSelect.d.ts +17 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/BackgroundSettings/hooks/useBackgroundColorModeRadioButtons.d.ts +20 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/BackgroundSettings/hooks/useBackgroundNullModeSettings.d.ts +8 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/BackgroundSettings/hooks/useBackgroundSettings.d.ts +14 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/BackgroundSettings/hooks/useBackgroundSettingsButtonColorDialog.d.ts +24 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/BackgroundSettings/hooks/useBackgroundSettingsSwitch.d.ts +9 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/BarsSettings/BarsSettings.d.ts +9 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/BarsSettings/components/ColorControls/ColorsControl.d.ts +13 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/BarsSettings/components/GradientColorControl/GradientColorControl.d.ts +11 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/BarsSettings/components/MinMaxInputs/MinMaxInputs.d.ts +19 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/BarsSettings/components/PaletteColorControl/PaletteColorControl.d.ts +16 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/BarsSettings/useBarsSettings/helpers.d.ts +4 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/BarsSettings/useBarsSettings/useBarsSettings.d.ts +16 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/ButtonColorDialog/ButtonColorDialog.d.ts +16 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/DialogFieldInput/DialogFieldInput.d.ts +9 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/DialogFieldMainSection/DialogFieldMainSection.d.ts +46 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/DialogFieldRow/DialogFieldRow.d.ts +10 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/DialogFieldSelect/DialogFieldSelect.d.ts +13 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/DialogFieldSettingTitle/DialogFieldSettingTitle.d.ts +6 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/components/SubTotalsSettings/SubTotalsSettings.d.ts +8 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/utils/backgroundSettings.d.ts +9 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/utils/barsSettings.d.ts +2 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/utils/misc.d.ts +12 -0
- package/types/ui/units/wizard/components/Dialogs/DialogField/utils/subTotals.d.ts +4 -0
- package/types/ui/units/wizard/components/Dialogs/DialogFieldInspector/DialogFieldInspector.d.ts +10 -0
- package/types/ui/units/wizard/components/Dialogs/DialogGeolayer/DialogGeolayer.d.ts +63 -0
- package/types/ui/units/wizard/components/Dialogs/DialogLabelSettings/DialogLabelSettings.d.ts +18 -0
- package/types/ui/units/wizard/components/Dialogs/DialogLink.d.ts +67 -0
- package/types/ui/units/wizard/components/Dialogs/DialogMetricSettings/DialogMetricSettings.d.ts +14 -0
- package/types/ui/units/wizard/components/Dialogs/DialogMultidataset.d.ts +16 -0
- package/types/ui/units/wizard/components/Dialogs/DialogNoRights.d.ts +11 -0
- package/types/ui/units/wizard/components/Dialogs/DialogPlaceholder/DialogPlaceholder.d.ts +19 -0
- package/types/ui/units/wizard/components/Dialogs/DialogPlaceholder/components/DialogPlaceholderRow/DialogPlaceholderRow.d.ts +5 -0
- package/types/ui/units/wizard/components/Dialogs/DialogPlaceholder/constants/radio-buttons.d.ts +15 -0
- package/types/ui/units/wizard/components/Dialogs/DialogPlaceholder/utils.d.ts +2 -0
- package/types/ui/units/wizard/components/Dialogs/DialogPointsSize.d.ts +14 -0
- package/types/ui/units/wizard/components/Dialogs/DialogShapes/DialogShapes.d.ts +27 -0
- package/types/ui/units/wizard/components/Dialogs/DialogShapes/DialogShapesPalette/DialogShapesPalette.d.ts +21 -0
- package/types/ui/units/wizard/components/Dialogs/DialogTooltipSettings/DialogTooltipSettings.d.ts +12 -0
- package/types/ui/units/wizard/components/Dialogs/Settings/CenterSetting/CenterSetting.d.ts +11 -0
- package/types/ui/units/wizard/components/Dialogs/Settings/IndicatorTitleSetting/IndicatorTitleSetting.d.ts +12 -0
- package/types/ui/units/wizard/components/Dialogs/Settings/LimitInput/LimitInput.d.ts +9 -0
- package/types/ui/units/wizard/components/Dialogs/Settings/SettingFeed/SettingFeed.d.ts +7 -0
- package/types/ui/units/wizard/components/Dialogs/Settings/SettingNavigator/NavigatorSubSettings/NavigatorSubSettings.d.ts +18 -0
- package/types/ui/units/wizard/components/Dialogs/Settings/SettingNavigator/SettingNavigator.d.ts +8 -0
- package/types/ui/units/wizard/components/Dialogs/Settings/SettingPagination/SettingPagination.d.ts +17 -0
- package/types/ui/units/wizard/components/Dialogs/Settings/SettingSwitcher/SettingSwitcher.d.ts +22 -0
- package/types/ui/units/wizard/components/Dialogs/Settings/SettingTitleMode/SettingTitleMode.d.ts +9 -0
- package/types/ui/units/wizard/components/Dialogs/Settings/Settings.d.ts +24 -0
- package/types/ui/units/wizard/components/Dialogs/Settings/ZoomSetting/ZoomSetting.d.ts +11 -0
- package/types/ui/units/wizard/components/Dialogs/components/DialogRadioButtons/DialogRadioButtons.d.ts +12 -0
- package/types/ui/units/wizard/components/Dialogs/components/DialogRow/DialogRow.d.ts +10 -0
- package/types/ui/units/wizard/components/Dialogs/components/TitleWithTooltip/TitleWithTooltip.d.ts +7 -0
- package/types/ui/units/wizard/components/GeolayersSelect/GeolayersSelect.d.ts +37 -0
- package/types/ui/units/wizard/components/GradientPalettePreview/GradientPalettePreview.d.ts +6 -0
- package/types/ui/units/wizard/components/HierarchyEditor/HierarchyEditor.d.ts +25 -0
- package/types/ui/units/wizard/components/MinifiedPalette/MinifiedPalette.d.ts +17 -0
- package/types/ui/units/wizard/components/Palette/Palette.d.ts +18 -0
- package/types/ui/units/wizard/components/PlaceholderActionIcon/PlaceholderActionIcon.d.ts +17 -0
- package/types/ui/units/wizard/components/SearchInput/SearchInput.d.ts +10 -0
- package/types/ui/units/wizard/components/ValuesList/ValuesList.d.ts +62 -0
- package/types/ui/units/wizard/components/VisualizationItemTitleWithAggregation/VisualizationItemTitleWithAggregation.d.ts +7 -0
- package/types/ui/units/wizard/constants/aggregations.d.ts +12 -0
- package/types/ui/units/wizard/constants/dialogColor.d.ts +30 -0
- package/types/ui/units/wizard/constants/formats.d.ts +11 -0
- package/types/ui/units/wizard/constants/grouping.d.ts +3 -0
- package/types/ui/units/wizard/constants/index.d.ts +9 -0
- package/types/ui/units/wizard/constants/paletteTypes.d.ts +5 -0
- package/types/ui/units/wizard/constants/placeholders.d.ts +2 -0
- package/types/ui/units/wizard/containers/App.d.ts +109 -0
- package/types/ui/units/wizard/containers/Wizard/SectionDataset/DatasetItem/DatasetItem.d.ts +80 -0
- package/types/ui/units/wizard/containers/Wizard/SectionDataset/FieldsContainer/FieldsContainer.d.ts +9 -0
- package/types/ui/units/wizard/containers/Wizard/SectionDataset/FieldsContainer/ParametersContainer/ParametersContainer.d.ts +5 -0
- package/types/ui/units/wizard/containers/Wizard/SectionDataset/FieldsContainer/components/SectionContainer/SectionContainer.d.ts +10 -0
- package/types/ui/units/wizard/containers/Wizard/SectionDataset/HierarchyEditor/HierarchyEditor.d.ts +261 -0
- package/types/ui/units/wizard/containers/Wizard/SectionDataset/SectionDataset.d.ts +336 -0
- package/types/ui/units/wizard/containers/Wizard/SectionPreview/SectionPreview.d.ts +57 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/AddField/AddField.d.ts +28 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/PlaceholdersContainer/AvailablePlaceholder/AvailablePlaceholder.d.ts +32 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/PlaceholdersContainer/ColorsPlaceholder/ColorsPlaceholder.d.ts +47 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/PlaceholdersContainer/DashboardFiltersPlaceholder/DashboardFiltersPlaceholder.d.ts +56 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/PlaceholdersContainer/DashboardParametersPlaceholder/DashboardParametersPlaceholder.d.ts +51 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/PlaceholdersContainer/FiltersPlaceholder/FiltersPlaceholder.d.ts +40 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/PlaceholdersContainer/LabelsPlaceholder/LabelsPlaceholder.d.ts +50 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/PlaceholdersContainer/LayerFiltersPlaceholder/LayerFiltersPlaceholder.d.ts +40 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/PlaceholdersContainer/Placeholder/Placeholder.d.ts +478 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/PlaceholdersContainer/PlaceholdersContainer.d.ts +58 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/PlaceholdersContainer/SegmentsPlaceholder/SegmentsPlaceholder.d.ts +34 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/PlaceholdersContainer/ShapesPlaceholder/ShapesPlaceholder.d.ts +40 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/PlaceholdersContainer/SortPlaceholder/SortPlaceholder.d.ts +408 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/PlaceholdersContainer/TooltipsPlaceholder/TooltipsPlaceholder.d.ts +38 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/PlaceholdersContainer/VisualizationPlaceholder/VisualizationPlaceholder.d.ts +462 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/PlaceholdersContainer/VisualizationPlaceholder/constants.d.ts +2 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/PlaceholdersContainer/utils.d.ts +186 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/SectionVisualization.d.ts +381 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/VisualizationItem/VisualizationItem.d.ts +82 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/VisualizationLayersControl/CombinedChartLayerTypeSwitcher.d.ts +4 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/VisualizationLayersControl/VisualizationLayersControl.d.ts +31 -0
- package/types/ui/units/wizard/containers/Wizard/SectionVisualization/VisualizationSelector/VisualizationSelector.d.ts +45 -0
- package/types/ui/units/wizard/containers/Wizard/Wizard.d.ts +8 -0
- package/types/ui/units/wizard/containers/Wizard/WizardActionPanel/WizardActionPanel.d.ts +20 -0
- package/types/ui/units/wizard/containers/Wizard/WizardActionPanel/useWizardActionPanel.d.ts +11 -0
- package/types/ui/units/wizard/reducers/dataset.d.ts +19 -0
- package/types/ui/units/wizard/reducers/dialogColor.d.ts +6 -0
- package/types/ui/units/wizard/reducers/hierarchyEditor.d.ts +8 -0
- package/types/ui/units/wizard/reducers/index.d.ts +31 -0
- package/types/ui/units/wizard/reducers/preview.d.ts +38 -0
- package/types/ui/units/wizard/reducers/revisions/reducers.d.ts +8 -0
- package/types/ui/units/wizard/reducers/settings.d.ts +10 -0
- package/types/ui/units/wizard/reducers/utils/checkTableColor.d.ts +2 -0
- package/types/ui/units/wizard/reducers/utils/clearUnusedVisualizationItems.d.ts +21 -0
- package/types/ui/units/wizard/reducers/utils/getConfigData.d.ts +3 -0
- package/types/ui/units/wizard/reducers/utils/getPlaceholdersWithMergedSettings.d.ts +14 -0
- package/types/ui/units/wizard/reducers/utils/index.d.ts +2 -0
- package/types/ui/units/wizard/reducers/utils/updateColorHierarchies.d.ts +189 -0
- package/types/ui/units/wizard/reducers/visualization.d.ts +26 -0
- package/types/ui/units/wizard/reducers/widget.d.ts +12 -0
- package/types/ui/units/wizard/selectors/dataset.d.ts +41 -0
- package/types/ui/units/wizard/selectors/dialogColor.d.ts +10 -0
- package/types/ui/units/wizard/selectors/gradient.d.ts +3 -0
- package/types/ui/units/wizard/selectors/index.d.ts +11 -0
- package/types/ui/units/wizard/selectors/preview.d.ts +40 -0
- package/types/ui/units/wizard/selectors/settings.d.ts +15 -0
- package/types/ui/units/wizard/selectors/visualization.d.ts +705 -0
- package/types/ui/units/wizard/selectors/widget.d.ts +9 -0
- package/types/ui/units/wizard/typings/index.d.ts +1 -0
- package/types/ui/units/wizard/typings/wizard.d.ts +33 -0
- package/types/ui/units/wizard/utils/colors.d.ts +2 -0
- package/types/ui/units/wizard/utils/filters.d.ts +7 -0
- package/types/ui/units/wizard/utils/helpers.d.ts +224 -0
- package/types/ui/units/wizard/utils/mappers/mapChartsToClientConfig.d.ts +4 -0
- package/types/ui/units/wizard/utils/mappers/mapClientToChartsConfig.d.ts +4 -0
- package/types/ui/units/wizard/utils/palette.d.ts +5 -0
- package/types/ui/units/wizard/utils/placeholder.d.ts +21 -0
- package/types/ui/units/wizard/utils/shapes.d.ts +2 -0
- package/types/ui/units/wizard/utils/table.d.ts +2 -0
- package/types/ui/units/wizard/utils/visualization.d.ts +232 -0
- package/types/ui/units/wizard/utils/wizard.d.ts +150 -0
- package/types/ui/units/workbooks/components/CreateEntry/CreateEntry.d.ts +13 -0
- package/types/ui/units/workbooks/components/CreateEntry/utils.d.ts +13 -0
- package/types/ui/units/workbooks/components/CreateEntryDialog/CreateEntryDialog.d.ts +2 -0
- package/types/ui/units/workbooks/components/CreateEntryDialog/utils.d.ts +3 -0
- package/types/ui/units/workbooks/components/DeleteEntryDialog/DeleteEntryDialog.d.ts +11 -0
- package/types/ui/units/workbooks/components/DuplicateEntryDialog/DuplicateEntryDialog.d.ts +13 -0
- package/types/ui/units/workbooks/components/EmptyWorkbook/EmptyWorkbook.d.ts +11 -0
- package/types/ui/units/workbooks/components/EmptyWorkbook/EmptyWorkbookContainer.d.ts +5 -0
- package/types/ui/units/workbooks/components/EmptyWorkbook/utils.d.ts +5 -0
- package/types/ui/units/workbooks/components/EntryActions/EntryActions.d.ts +15 -0
- package/types/ui/units/workbooks/components/EntryActions/utils.d.ts +2 -0
- package/types/ui/units/workbooks/components/RenameEntryDialog/RenameEntryDialog.d.ts +11 -0
- package/types/ui/units/workbooks/components/Table/WorkbookEntriesTable/ChunkGroup/ChunkGroup.d.ts +7 -0
- package/types/ui/units/workbooks/components/Table/WorkbookEntriesTable/MainTabContent/MainTabContent.d.ts +20 -0
- package/types/ui/units/workbooks/components/Table/WorkbookEntriesTable/Row/Row.d.ts +20 -0
- package/types/ui/units/workbooks/components/Table/WorkbookEntriesTable/WorkbookEntriesTable.d.ts +27 -0
- package/types/ui/units/workbooks/components/Table/WorkbookEntriesTable/WorkbookEntriesTableTabs.d.ts +29 -0
- package/types/ui/units/workbooks/components/Table/WorkbookEntriesTable/constants.d.ts +8 -0
- package/types/ui/units/workbooks/components/Table/WorkbookEntriesTable/types.d.ts +13 -0
- package/types/ui/units/workbooks/components/Table/WorkbookEntriesTable/utils.d.ts +3 -0
- package/types/ui/units/workbooks/components/WorkbookActions/WorkbookActions.d.ts +8 -0
- package/types/ui/units/workbooks/components/WorkbookActions/utils.d.ts +2 -0
- package/types/ui/units/workbooks/components/WorkbookFilters/WorkbookFilters.d.ts +8 -0
- package/types/ui/units/workbooks/components/WorkbookMainTabContent/WorkbookMainTabContent.d.ts +10 -0
- package/types/ui/units/workbooks/components/WorkbookMainTabContent/useChunkedEntries.d.ts +7 -0
- package/types/ui/units/workbooks/components/WorkbookPage/WorkbookPage.d.ts +1 -0
- package/types/ui/units/workbooks/components/WorkbookPage/hooks/useLayout.d.ts +6 -0
- package/types/ui/units/workbooks/components/WorkbookTabContent/WorkbookTabContent.d.ts +12 -0
- package/types/ui/units/workbooks/components/WorkbookTabContent/useChunkedEntries.d.ts +7 -0
- package/types/ui/units/workbooks/components/WorkbookTabs/WorkbookTabs.d.ts +6 -0
- package/types/ui/units/workbooks/components/WorkbookTabs/constants.d.ts +1 -0
- package/types/ui/units/workbooks/components/WorkbookTabs/types.d.ts +7 -0
- package/types/ui/units/workbooks/components/WorkbookTabs/utils.d.ts +3 -0
- package/types/ui/units/workbooks/constants/index.d.ts +10 -0
- package/types/ui/units/workbooks/store/actions/index.d.ts +246 -0
- package/types/ui/units/workbooks/store/constants/index.d.ts +39 -0
- package/types/ui/units/workbooks/store/reducers/index.d.ts +230 -0
- package/types/ui/units/workbooks/store/reducers/workbook-page.d.ts +278 -0
- package/types/ui/units/workbooks/store/selectors/index.d.ts +242 -0
- package/types/ui/units/workbooks/types/index.d.ts +25 -0
- package/types/ui/units/workbooks/utils/entry.d.ts +2 -0
- package/types/ui/utils/absurd.d.ts +26 -0
- package/types/ui/utils/collectionFiltersStorage.d.ts +13 -0
- package/types/ui/utils/colors.d.ts +6 -0
- package/types/ui/utils/connections/icons.d.ts +4 -0
- package/types/ui/utils/connections/index.d.ts +1 -0
- package/types/ui/utils/copyItems.d.ts +47 -0
- package/types/ui/utils/copyText.d.ts +6 -0
- package/types/ui/utils/custom-export-menu-item.d.ts +8 -0
- package/types/ui/utils/date.d.ts +3 -0
- package/types/ui/utils/docs/helpers.d.ts +1 -0
- package/types/ui/utils/docs/index.d.ts +4 -0
- package/types/ui/utils/embedded.d.ts +5 -0
- package/types/ui/utils/errorContentTypes.d.ts +6 -0
- package/types/ui/utils/errors/errorByCode.d.ts +17 -0
- package/types/ui/utils/errors/manual.d.ts +1 -0
- package/types/ui/utils/errors/parse.d.ts +13 -0
- package/types/ui/utils/getActionPanelItems.d.ts +23 -0
- package/types/ui/utils/getAllEntryScopes.d.ts +2 -0
- package/types/ui/utils/getBasicActionPanelItems.d.ts +10 -0
- package/types/ui/utils/getCurrentUserRights.d.ts +3 -0
- package/types/ui/utils/getOverridedTheme.d.ts +2 -0
- package/types/ui/utils/getRestrictedParamNames.d.ts +1 -0
- package/types/ui/utils/getRevisionsPanelEntryScopesTexts.d.ts +22 -0
- package/types/ui/utils/getScopeTypeIcon.d.ts +1 -0
- package/types/ui/utils/getTopLevelEntryScopes.d.ts +2 -0
- package/types/ui/utils/getTypeSelectOptions.d.ts +3 -0
- package/types/ui/utils/gridStorage.d.ts +18 -0
- package/types/ui/utils/helpers.d.ts +17 -0
- package/types/ui/utils/icons.d.ts +2 -0
- package/types/ui/utils/index.d.ts +18 -0
- package/types/ui/utils/isEnabledFeature.d.ts +1 -0
- package/types/ui/utils/markdown/get-render-markdown-fn.d.ts +1 -0
- package/types/ui/utils/markdown/get-render-yfm-fn.d.ts +2 -0
- package/types/ui/utils/markdown/index.d.ts +2 -0
- package/types/ui/utils/markup.d.ts +2 -0
- package/types/ui/utils/migrateItemDataOnPaste.d.ts +17 -0
- package/types/ui/utils/mobile.d.ts +15 -0
- package/types/ui/utils/os.d.ts +14 -0
- package/types/ui/utils/palettes.d.ts +2 -0
- package/types/ui/utils/readOnly.d.ts +1 -0
- package/types/ui/utils/revisions.d.ts +13 -0
- package/types/ui/utils/scrollableContainerContext.d.ts +10 -0
- package/types/ui/utils/sdkRequests.d.ts +8 -0
- package/types/ui/utils/setEntryKey.d.ts +2 -0
- package/types/ui/utils/shared-entries/get-is-shared-entry.d.ts +2 -0
- package/types/ui/utils/shared-entries/index.d.ts +1 -0
- package/types/ui/utils/stringUtils.d.ts +2 -0
- package/types/ui/utils/urlUtils.d.ts +4 -0
- package/types/ui/utils/utils.d.ts +62 -0
- package/types/ui/utils/validation.d.ts +8 -0
- package/types/ui/utils/visualizations/line.d.ts +22 -0
- package/types/ui/utils/visualizations/placeholders/colors.d.ts +16 -0
- package/types/ui/utils/visualizations/placeholders/common-measures.d.ts +11 -0
- package/types/ui/utils/waitOperation.d.ts +24 -0
- package/types/ui/utils/widgetColors.d.ts +9 -0
- package/types/ui/utils/workbooks.d.ts +1 -0
|
@@ -0,0 +1,3389 @@
|
|
|
1
|
+
import { useDispatch, useSelector, batch } from "react-redux";
|
|
2
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
+
import React__default from "react";
|
|
4
|
+
import { Xmark, Magnifier, TrashBin, ChevronDown, TriangleExclamationFill, Check, Plus } from "@gravity-ui/icons";
|
|
5
|
+
import { TextInput, Button, Icon, DropdownMenu, Popover, Loader, Dialog, Select, Popup, Link, HelpMark, Alert } from "@gravity-ui/uikit";
|
|
6
|
+
import block from "bem-cn-lite";
|
|
7
|
+
import { D as DialogManager } from "./DialogManager.js";
|
|
8
|
+
import { l as I18n, u as DashTabItemType, ah as DashTabItemControlSourceType, j as i18n$9, bs as DashCommonQa, c4 as DashRelationTypes, D as DL } from "./AccessRights.js";
|
|
9
|
+
import intersection from "lodash/intersection";
|
|
10
|
+
import isEmpty from "lodash/isEmpty";
|
|
11
|
+
import isEqual from "lodash/isEqual";
|
|
12
|
+
import { a as selectDebugMode } from "./AsideHeaderAdapter.js";
|
|
13
|
+
import { S as SelectOptionWithIcon } from "./SelectComponents.js";
|
|
14
|
+
import { D as DASH_WIDGET_TYPES, aB as DASH_FILTERING_CHARTS_WIDGET_TYPES, aC as DASH_ACCEPT_FILTERING_CHARTS_WIDGET_TYPES, aD as CONNECTION_KIND, aE as getAllTabItems, l as isGlobalWidgetVisibleByMainSetting, m as isGroupItemVisibleOnTab, ak as selectCurrentTabId, aF as selectCurrentTabAliases, e as selectDashWorkbookId, aG as selectCurrentTabRelationDataItems, aH as selectWidgetsCurrentTab, aI as updateCurrentTabData, aJ as selectDashkitRef } from "./ControlComponents.js";
|
|
15
|
+
import { C as Collapse } from "./Collapse.js";
|
|
16
|
+
import iconEditorChart from "@gravity-ui/icons/svgs/curly-brackets.svg";
|
|
17
|
+
import LogoMarkdownIcon from "@gravity-ui/icons/svgs/logo-markdown.svg";
|
|
18
|
+
import cloneDeep from "lodash/cloneDeep";
|
|
19
|
+
import { V as VISUALIZATIONS_BY_ID } from "./DialogFilter.js";
|
|
20
|
+
import { I as IconById } from "./IconById.js";
|
|
21
|
+
import { g as getSdk, o as openDialog, c as closeDialog } from "./ActionPanel.js";
|
|
22
|
+
import { I as Interpolate } from "./Interpolate.js";
|
|
23
|
+
import { P as PlaceholderIllustration } from "./PlaceholderIllustration.js";
|
|
24
|
+
import { i as iconInfo } from "./CollectionsStructure.js";
|
|
25
|
+
const iconFlatTable = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.083%204.167h3.333c.23%200%20.417.187.417.417v.833c0%20.23-.186.417-.417.417H2.083a.417.417%200%200%201-.417-.417v-.833c0-.23.187-.417.417-.417Zm5.833%200h3.334c.23%200%20.416.187.416.417v.833c0%20.23-.186.417-.416.417H7.917a.417.417%200%200%201-.417-.417v-.833c0-.23.186-.417.417-.417Zm5.834%200h3.333c.23%200%20.417.187.417.417v.833c0%20.23-.187.417-.417.417H13.75a.417.417%200%200%201-.417-.417v-.833c0-.23.187-.417.417-.417ZM2.083%207.5h3.333c.23%200%20.417.187.417.417v2.5c0%20.23-.186.416-.417.416H2.083a.417.417%200%200%201-.417-.416v-2.5c0-.23.187-.417.417-.417Zm5.833%200h3.334c.23%200%20.416.187.416.417v2.5c0%20.23-.186.416-.416.416H7.917a.417.417%200%200%201-.417-.416v-2.5c0-.23.186-.417.417-.417Zm5.834%200h3.333c.23%200%20.417.187.417.417v2.5c0%20.23-.187.416-.417.416H13.75a.417.417%200%200%201-.417-.416v-2.5c0-.23.187-.417.417-.417ZM2.083%2012.5h3.333c.23%200%20.417.187.417.417v2.5c0%20.23-.186.416-.417.416H2.083a.417.417%200%200%201-.417-.416v-2.5c0-.23.187-.417.417-.417Zm5.833%200h3.334c.23%200%20.416.187.416.417v2.5c0%20.23-.186.416-.416.416H7.917a.417.417%200%200%201-.417-.416v-2.5c0-.23.186-.417.417-.417Zm5.834%200h3.333c.23%200%20.417.187.417.417v2.5c0%20.23-.187.416-.417.416H13.75a.417.417%200%200%201-.417-.416v-2.5c0-.23.187-.417.417-.417Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
26
|
+
const iconGeolayers = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.75%203.947V3.75h8.125l-.818%202.026-.39.965L3.75%203.947Zm0%201.124v5.616l3.61%201.46.964.389.39-.965.391-.966%201.17-2.897L3.75%205.071Zm0%206.74v4.439h3.074l1.11-2.748-4.184-1.69Zm4.197%204.439h8.303v-1.635l-5.604-2.264-.964-.39-.39.966-.39.965H8.9l-.953%202.358Zm8.303-2.759V3.75H13l-1.367%203.381-.39.966-1.171%202.898.966.39%205.212%202.106ZM3.542%202.5A1.042%201.042%200%200%200%202.5%203.542v12.916A1.042%201.042%200%200%200%203.542%2017.5h12.916a1.041%201.041%200%200%200%201.042-1.042V3.542A1.041%201.041%200%200%200%2016.458%202.5H3.542Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
27
|
+
const iconMetric = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.584%2015.376a.75.75%200%201%200%20.832%201.248l-.832-1.248Zm1.788-.29.416.623-.416-.624Zm3.484-.467.237-.712-.237.712Zm1.41.47-.238.71.237-.71Zm4.464-1.395.6.45-.6-.45Zm1.87-1.244a.75.75%200%201%200-1.2-.9l1.2.9ZM3.416%2016.624l1.372-.915-.832-1.248-1.372.915.832%201.248Zm1.373-.915a3.25%203.25%200%200%201%202.83-.379l.474-1.423a4.75%204.75%200%200%200-4.137.554l.833%201.248Zm2.83-.379%201.409.47.474-1.423-1.409-.47-.474%201.423Zm1.409.47a4.75%204.75%200%200%200%205.302-1.656l-1.2-.9a3.25%203.25%200%200%201-3.628%201.133L9.028%2015.8Zm5.302-1.656%201.27-1.694-1.2-.9-1.27%201.694%201.2.9ZM3.722%2010H2.338V5.816L1.202%206.888V5.696L2.538%204.44h1.184V10Zm1.574.064a.674.674%200%200%201-.496-.2.674.674%200%200%201-.2-.496.683.683%200%200%201%20.696-.704c.192%200%20.355.067.488.2a.67.67%200%200%201%20.208.504.66.66%200%200%201-.208.496.664.664%200%200%201-.488.2ZM10.361%2010H6.53v-.816c.411-.347.766-.653%201.064-.92.3-.267.544-.512.736-.736a2.66%202.66%200%200%200%20.432-.656%201.53%201.53%200%200%200%20.144-.648c0-.31-.082-.547-.248-.712-.165-.165-.41-.248-.736-.248-.154%200-.298.019-.432.056a1.69%201.69%200%200%200-.36.144%201.563%201.563%200%200%200-.288.184%202.45%202.45%200%200%200-.2.176v-.928c.043-.048.107-.101.192-.16.091-.059.206-.115.344-.168.14-.059.302-.107.488-.144.192-.037.414-.056.664-.056.326%200%20.611.043.856.128.251.08.46.197.624.352.171.15.3.33.384.544.086.208.128.443.128.704%200%20.304-.053.59-.16.856a3.057%203.057%200%200%201-.456.76c-.192.24-.429.477-.712.712-.277.23-.589.467-.936.712h2.304V10Zm6.874-4.008-1.288%203.336h-1l-1.28-3.416V10h-1.032V4.44h1.688l1.312%203.384%201.288-3.384h1.736V10h-1.424V5.992Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
28
|
+
const iconAnyChart = "data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M.818%203.084a1.545%201.545%200%200%201%201.546-1.545h11.272a1.545%201.545%200%200%201%201.546%201.545v11.273a1.546%201.546%200%200%201-1.546%201.545H2.364a1.546%201.546%200%200%201-1.546-1.545V3.084Zm1.288-.257A.364.364%200%200%200%202%203.084v11.273a.364.364%200%200%200%20.364.363h11.272a.364.364%200%200%200%20.364-.363V3.084a.364.364%200%200%200-.364-.364H2.364a.364.364%200%200%200-.258.107Z'%20fill='currentColor'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.464%2010.754h-1.37a30.184%2030.184%200%200%201-.005-.36c0-.444.074-.81.22-1.096.147-.286.441-.608.881-.966.44-.359.704-.593.79-.704a.94.94%200%200%200%20.199-.58.977.977%200%200%200-.352-.755c-.235-.21-.55-.314-.948-.314-.383%200-.704.11-.962.328-.257.218-.435.551-.531.999L5%207.134c.04-.641.312-1.185.82-1.633.506-.448%201.17-.671%201.994-.671.867%200%201.556.226%202.068.679.512.453.768.98.768%201.582%200%20.333-.094.648-.282.945-.188.297-.59.702-1.205%201.214-.32.265-.517.478-.594.64-.077.16-.112.448-.105.864ZM7.095%2012.784v-1.51h1.509v1.51h-1.51Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
29
|
+
const iconControls = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20opacity='.01'%20fill='currentColor'%20d='M0%200h20v20H0z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.125%206.125a1.5%201.5%200%201%201-3%200%201.5%201.5%200%200%201%203%200Zm1.47.977a3.126%203.126%200%200%201-5.932.023h-8.1a.813.813%200%200%201%200-1.625h8a3.126%203.126%200%200%201%206.126.006.82.82%200%200%201%20.096-.006h.652a.813.813%200%200%201%200%201.625h-.652a.815.815%200%200%201-.19-.023ZM5.875%2013.875a1.5%201.5%200%201%200%203%200%201.5%201.5%200%200%200-3%200Zm-1.461%201a3.126%203.126%200%200%200%205.923%200h7.1a.813.813%200%200%200%200-1.625h-7a3.126%203.126%200%200%200-6.124%200h-1.75a.813.813%200%200%200%200%201.625h1.85Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
30
|
+
const RELATIONS_CHARTS_ICONS_DICT = {
|
|
31
|
+
control: iconControls,
|
|
32
|
+
table: iconFlatTable,
|
|
33
|
+
widget: iconAnyChart,
|
|
34
|
+
metric: iconMetric,
|
|
35
|
+
metric2: iconMetric,
|
|
36
|
+
ymap: iconGeolayers,
|
|
37
|
+
markdown: LogoMarkdownIcon,
|
|
38
|
+
markup: iconMetric,
|
|
39
|
+
"blank-chart": iconEditorChart,
|
|
40
|
+
"advanced-chart": iconEditorChart,
|
|
41
|
+
d3: iconEditorChart
|
|
42
|
+
};
|
|
43
|
+
const DEFAULT_ALIAS_NAMESPACE = "default";
|
|
44
|
+
const DEFAULT_ICON_SIZE = 16;
|
|
45
|
+
const RELATION_TYPES = {
|
|
46
|
+
ignore: "ignore",
|
|
47
|
+
input: "input",
|
|
48
|
+
output: "output",
|
|
49
|
+
both: "both",
|
|
50
|
+
unknown: "unknown"
|
|
51
|
+
};
|
|
52
|
+
const TEXT_LIMIT = 20;
|
|
53
|
+
const FULL_RELATIONS = [
|
|
54
|
+
RELATION_TYPES.both,
|
|
55
|
+
RELATION_TYPES.input,
|
|
56
|
+
RELATION_TYPES.output,
|
|
57
|
+
RELATION_TYPES.ignore
|
|
58
|
+
];
|
|
59
|
+
const INPUT_RELATIONS = [RELATION_TYPES.input, RELATION_TYPES.ignore];
|
|
60
|
+
const OUTPUT_RELATIONS = [RELATION_TYPES.output, RELATION_TYPES.ignore];
|
|
61
|
+
const b$9 = block("dialog-relations-filters");
|
|
62
|
+
const i18n$8 = I18n.keyset("component.dialog-relations.view");
|
|
63
|
+
const DEFAULT_FILTERS = ["input", "output", "none"];
|
|
64
|
+
const getFilterProps = ({
|
|
65
|
+
currentType,
|
|
66
|
+
filters
|
|
67
|
+
}) => {
|
|
68
|
+
const isActive = filters.includes(currentType);
|
|
69
|
+
return {
|
|
70
|
+
isActive,
|
|
71
|
+
buttonType: isActive ? "normal" : "outlined"
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
const Filters = ({
|
|
75
|
+
onChangeInput,
|
|
76
|
+
onChangeButtons
|
|
77
|
+
}) => {
|
|
78
|
+
const [searchValue, setSearchValue] = React__default.useState("");
|
|
79
|
+
const [activeFilters, setActiveFilters] = React__default.useState([]);
|
|
80
|
+
const handleSearchValue = React__default.useCallback(
|
|
81
|
+
(value) => {
|
|
82
|
+
onChangeInput(value);
|
|
83
|
+
setSearchValue(value);
|
|
84
|
+
},
|
|
85
|
+
[onChangeInput]
|
|
86
|
+
);
|
|
87
|
+
const handleButtonClick = React__default.useCallback(
|
|
88
|
+
(type) => {
|
|
89
|
+
let newFilters = [];
|
|
90
|
+
if (activeFilters.includes(type)) {
|
|
91
|
+
newFilters = activeFilters.filter((item) => item !== type);
|
|
92
|
+
} else {
|
|
93
|
+
newFilters = [...activeFilters, type];
|
|
94
|
+
}
|
|
95
|
+
setActiveFilters(newFilters);
|
|
96
|
+
onChangeButtons(newFilters);
|
|
97
|
+
},
|
|
98
|
+
[activeFilters, onChangeButtons]
|
|
99
|
+
);
|
|
100
|
+
const inputButtonProps = getFilterProps({ currentType: "input", filters: activeFilters });
|
|
101
|
+
const outputButtonProps = getFilterProps({ currentType: "output", filters: activeFilters });
|
|
102
|
+
const noneButtonProps = getFilterProps({ currentType: "none", filters: activeFilters });
|
|
103
|
+
return /* @__PURE__ */ jsxs("div", { className: b$9("top"), children: [
|
|
104
|
+
/* @__PURE__ */ jsx(
|
|
105
|
+
TextInput,
|
|
106
|
+
{
|
|
107
|
+
value: searchValue,
|
|
108
|
+
onUpdate: handleSearchValue,
|
|
109
|
+
placeholder: i18n$8("label_placeholder-search"),
|
|
110
|
+
className: b$9("search"),
|
|
111
|
+
hasClear: true
|
|
112
|
+
}
|
|
113
|
+
),
|
|
114
|
+
/* @__PURE__ */ jsx(
|
|
115
|
+
Button,
|
|
116
|
+
{
|
|
117
|
+
view: inputButtonProps.buttonType,
|
|
118
|
+
className: b$9("button"),
|
|
119
|
+
selected: inputButtonProps.isActive,
|
|
120
|
+
onClick: () => handleButtonClick("input"),
|
|
121
|
+
children: i18n$8("button_incoming")
|
|
122
|
+
}
|
|
123
|
+
),
|
|
124
|
+
/* @__PURE__ */ jsx(
|
|
125
|
+
Button,
|
|
126
|
+
{
|
|
127
|
+
view: outputButtonProps.buttonType,
|
|
128
|
+
className: b$9("button"),
|
|
129
|
+
selected: outputButtonProps.isActive,
|
|
130
|
+
onClick: () => handleButtonClick("output"),
|
|
131
|
+
children: i18n$8("button_outcoming")
|
|
132
|
+
}
|
|
133
|
+
),
|
|
134
|
+
/* @__PURE__ */ jsx(
|
|
135
|
+
Button,
|
|
136
|
+
{
|
|
137
|
+
view: noneButtonProps.buttonType,
|
|
138
|
+
className: b$9("button"),
|
|
139
|
+
selected: noneButtonProps.isActive,
|
|
140
|
+
onClick: () => handleButtonClick("none"),
|
|
141
|
+
children: i18n$8("button_not-linked")
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
] });
|
|
145
|
+
};
|
|
146
|
+
const mapFieldsListGuid = (list, result) => {
|
|
147
|
+
list.forEach((listItem) => {
|
|
148
|
+
if (!result[listItem.guid]) {
|
|
149
|
+
result[listItem.guid] = listItem.title || "";
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
const getDatasetItemFlatFields = (data) => {
|
|
154
|
+
if (!data) {
|
|
155
|
+
return {};
|
|
156
|
+
}
|
|
157
|
+
let result = {};
|
|
158
|
+
if (Array.isArray(data.fields)) {
|
|
159
|
+
mapFieldsListGuid(data.fields, result);
|
|
160
|
+
} else {
|
|
161
|
+
result = { ...data.fields };
|
|
162
|
+
}
|
|
163
|
+
if (data.fieldsList) {
|
|
164
|
+
mapFieldsListGuid(data.fieldsList, result);
|
|
165
|
+
}
|
|
166
|
+
return result;
|
|
167
|
+
};
|
|
168
|
+
const getDatasetsFlatItems = (datasets) => {
|
|
169
|
+
if (!datasets) {
|
|
170
|
+
return {};
|
|
171
|
+
}
|
|
172
|
+
let result = {};
|
|
173
|
+
datasets.forEach((item) => {
|
|
174
|
+
const fields = getDatasetItemFlatFields(item);
|
|
175
|
+
result = { ...result, ...fields };
|
|
176
|
+
});
|
|
177
|
+
return result;
|
|
178
|
+
};
|
|
179
|
+
const getDatasetsListWithFlatFields = (datasets) => {
|
|
180
|
+
if (!datasets) {
|
|
181
|
+
return {};
|
|
182
|
+
}
|
|
183
|
+
const flatDatasetFields = {};
|
|
184
|
+
for (const [id, data] of Object.entries(datasets)) {
|
|
185
|
+
flatDatasetFields[id] = data.fields.reduce(
|
|
186
|
+
(result, { guid, title }) => {
|
|
187
|
+
result[guid] = title;
|
|
188
|
+
return result;
|
|
189
|
+
},
|
|
190
|
+
{}
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
return flatDatasetFields;
|
|
194
|
+
};
|
|
195
|
+
const getMappedConnectedControlField = ({
|
|
196
|
+
item,
|
|
197
|
+
datasets,
|
|
198
|
+
itemDefaults
|
|
199
|
+
}) => {
|
|
200
|
+
if (!isControl(item)) {
|
|
201
|
+
return null;
|
|
202
|
+
}
|
|
203
|
+
if (item?.datasets?.length && !item.isQL) {
|
|
204
|
+
return Object.keys(itemDefaults || item.defaultParams).map((paramItem) => {
|
|
205
|
+
const allFields = getDatasetsFlatItems(item.datasets);
|
|
206
|
+
return allFields[paramItem] || "";
|
|
207
|
+
}).filter(Boolean);
|
|
208
|
+
} else {
|
|
209
|
+
const datasetFlatFields = getDatasetsListWithFlatFields(datasets);
|
|
210
|
+
if (datasetFlatFields && item?.datasetId && datasetFlatFields[item?.datasetId]) {
|
|
211
|
+
return Object.keys(itemDefaults || item.defaultParams).map(
|
|
212
|
+
(paramItem) => datasetFlatFields[item.datasetId] && datasetFlatFields[item.datasetId][paramItem]
|
|
213
|
+
).filter(Boolean);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
return null;
|
|
217
|
+
};
|
|
218
|
+
const isControl = (item) => item.type === DASH_WIDGET_TYPES.CONTROL;
|
|
219
|
+
const isManualControl = (item) => isControl(item) && !item.datasetId && !item.chartId;
|
|
220
|
+
const isDatasetControl = (item) => isControl(item) && item.datasetId;
|
|
221
|
+
const isExternalControl = (item) => isControl(item) && item.chartId;
|
|
222
|
+
const hasCommonUsedParamsWithDefaults = (widgetParams, usedParams) => {
|
|
223
|
+
return Boolean(intersection(Object.keys(widgetParams || {}), usedParams).length);
|
|
224
|
+
};
|
|
225
|
+
const hasCommonDefaultsWithDefaults = (widgetParams, itemWidgetParams) => {
|
|
226
|
+
return Boolean(
|
|
227
|
+
intersection(Object.keys(widgetParams || {}), Object.keys(itemWidgetParams || {})).length
|
|
228
|
+
);
|
|
229
|
+
};
|
|
230
|
+
const getControlToControlRelations = ({
|
|
231
|
+
byUsedParams,
|
|
232
|
+
relationType,
|
|
233
|
+
relations,
|
|
234
|
+
widget,
|
|
235
|
+
row,
|
|
236
|
+
datasets
|
|
237
|
+
}) => {
|
|
238
|
+
let newRelationType = relationType;
|
|
239
|
+
let availableRelations = [];
|
|
240
|
+
let byFields = [];
|
|
241
|
+
let hasDataset = false;
|
|
242
|
+
let forceAddAlias = false;
|
|
243
|
+
let hasRelation = false;
|
|
244
|
+
const isIndirectRelation = !relations.isIgnored && !relations.isIgnoring;
|
|
245
|
+
if (isManualControl(widget) && isManualControl(row)) {
|
|
246
|
+
if (relations.byAliases.length || byUsedParams.length) {
|
|
247
|
+
newRelationType = relationType || getDefaultTypeByIgnore(relations);
|
|
248
|
+
} else {
|
|
249
|
+
newRelationType = RELATION_TYPES.ignore;
|
|
250
|
+
forceAddAlias = true;
|
|
251
|
+
}
|
|
252
|
+
availableRelations = [...FULL_RELATIONS];
|
|
253
|
+
} else if (isDatasetControl(widget) && isManualControl(row) || isDatasetControl(row) && isManualControl(widget)) {
|
|
254
|
+
hasDataset = true;
|
|
255
|
+
byFields = getMappedConnectedControlField({
|
|
256
|
+
item: isDatasetControl(widget) ? widget : row,
|
|
257
|
+
itemDefaults: isDatasetControl(widget) ? row.defaultParams : widget.defaultParams,
|
|
258
|
+
datasets
|
|
259
|
+
}) || byUsedParams;
|
|
260
|
+
if (relations.byAliases.length || byUsedParams.length) {
|
|
261
|
+
newRelationType = relationType || getDefaultTypeByIgnore(relations);
|
|
262
|
+
} else if (isIndirectRelation && relations.indirectAliases.length) {
|
|
263
|
+
newRelationType = RELATION_TYPES.unknown;
|
|
264
|
+
forceAddAlias = true;
|
|
265
|
+
} else {
|
|
266
|
+
newRelationType = RELATION_TYPES.ignore;
|
|
267
|
+
forceAddAlias = true;
|
|
268
|
+
}
|
|
269
|
+
availableRelations = [...FULL_RELATIONS];
|
|
270
|
+
} else if (isManualControl(widget) && isExternalControl(row) || isManualControl(row) && isExternalControl(widget)) {
|
|
271
|
+
if (relations.byAliases.length) {
|
|
272
|
+
newRelationType = relationType || getDefaultTypeByIgnore(relations);
|
|
273
|
+
availableRelations = [...FULL_RELATIONS];
|
|
274
|
+
} else if (isExternalControl(widget)) {
|
|
275
|
+
hasRelation = hasCommonUsedParamsWithDefaults(
|
|
276
|
+
widget.widgetParams || {},
|
|
277
|
+
row.usedParams || []
|
|
278
|
+
);
|
|
279
|
+
if (hasRelation) {
|
|
280
|
+
newRelationType = relationType || getDefaultTypeByIgnore(relations);
|
|
281
|
+
availableRelations = [...FULL_RELATIONS];
|
|
282
|
+
} else {
|
|
283
|
+
newRelationType = relationType || RELATION_TYPES.input;
|
|
284
|
+
availableRelations = [...INPUT_RELATIONS];
|
|
285
|
+
}
|
|
286
|
+
} else {
|
|
287
|
+
hasRelation = hasCommonUsedParamsWithDefaults(
|
|
288
|
+
row.widgetParams || {},
|
|
289
|
+
widget.usedParams || []
|
|
290
|
+
);
|
|
291
|
+
if (hasRelation) {
|
|
292
|
+
newRelationType = relationType || getDefaultTypeByIgnore(relations);
|
|
293
|
+
availableRelations = [...FULL_RELATIONS];
|
|
294
|
+
} else {
|
|
295
|
+
newRelationType = relationType || RELATION_TYPES.output;
|
|
296
|
+
availableRelations = [...OUTPUT_RELATIONS];
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
} else if (isDatasetControl(widget) && isDatasetControl(row)) {
|
|
300
|
+
if (relations.byAliases.length) {
|
|
301
|
+
newRelationType = relationType || getDefaultTypeByIgnore(relations);
|
|
302
|
+
} else if (widget.datasetId === row.datasetId) {
|
|
303
|
+
newRelationType = relationType || getDefaultTypeByIgnore(relations);
|
|
304
|
+
byFields = [];
|
|
305
|
+
hasDataset = true;
|
|
306
|
+
} else {
|
|
307
|
+
const commonUsedParamsFields = intersection(
|
|
308
|
+
widget.usedParams || [],
|
|
309
|
+
row.usedParams || []
|
|
310
|
+
);
|
|
311
|
+
if (commonUsedParamsFields.length) {
|
|
312
|
+
newRelationType = relationType || getDefaultTypeByIgnore(relations);
|
|
313
|
+
byFields = [];
|
|
314
|
+
} else {
|
|
315
|
+
newRelationType = RELATION_TYPES.ignore;
|
|
316
|
+
forceAddAlias = true;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
availableRelations = [...FULL_RELATIONS];
|
|
320
|
+
} else if (isDatasetControl(widget) && isExternalControl(row) || isDatasetControl(row) && isExternalControl(widget)) {
|
|
321
|
+
if (relations.byAliases.length) {
|
|
322
|
+
newRelationType = relationType || getDefaultTypeByIgnore(relations);
|
|
323
|
+
availableRelations = [...FULL_RELATIONS];
|
|
324
|
+
} else if (isExternalControl(widget)) {
|
|
325
|
+
hasRelation = hasCommonUsedParamsWithDefaults(
|
|
326
|
+
widget.widgetParams || {},
|
|
327
|
+
row.usedParams || []
|
|
328
|
+
);
|
|
329
|
+
if (hasRelation) {
|
|
330
|
+
newRelationType = relationType || getDefaultTypeByIgnore(relations);
|
|
331
|
+
availableRelations = [...FULL_RELATIONS];
|
|
332
|
+
hasDataset = true;
|
|
333
|
+
byFields = getMappedConnectedControlField({
|
|
334
|
+
item: row,
|
|
335
|
+
datasets
|
|
336
|
+
}) || [];
|
|
337
|
+
} else {
|
|
338
|
+
newRelationType = relationType || RELATION_TYPES.input;
|
|
339
|
+
availableRelations = [...INPUT_RELATIONS];
|
|
340
|
+
}
|
|
341
|
+
} else {
|
|
342
|
+
hasRelation = hasCommonUsedParamsWithDefaults(
|
|
343
|
+
row.widgetParams || {},
|
|
344
|
+
widget.usedParams || []
|
|
345
|
+
);
|
|
346
|
+
if (hasRelation) {
|
|
347
|
+
newRelationType = relationType || getDefaultTypeByIgnore(relations);
|
|
348
|
+
availableRelations = [...FULL_RELATIONS];
|
|
349
|
+
hasDataset = true;
|
|
350
|
+
byFields = getMappedConnectedControlField({
|
|
351
|
+
item: widget,
|
|
352
|
+
datasets
|
|
353
|
+
}) || [];
|
|
354
|
+
} else {
|
|
355
|
+
newRelationType = relationType || RELATION_TYPES.output;
|
|
356
|
+
availableRelations = [...OUTPUT_RELATIONS];
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
} else if (isExternalControl(widget) && isExternalControl(row)) {
|
|
360
|
+
hasRelation = hasCommonDefaultsWithDefaults(
|
|
361
|
+
row.widgetParams || {},
|
|
362
|
+
widget.widgetParams || {}
|
|
363
|
+
);
|
|
364
|
+
const hasWigetParams = Object.keys(widget.widgetParams || {}).length;
|
|
365
|
+
const hasRowParams = Object.keys(row.widgetParams || {}).length;
|
|
366
|
+
if (relations.byAliases.length && hasWigetParams && hasRowParams || hasRelation) {
|
|
367
|
+
newRelationType = relationType || getDefaultTypeByIgnore(relations);
|
|
368
|
+
availableRelations = [...FULL_RELATIONS];
|
|
369
|
+
} else if (hasWigetParams && hasRowParams) {
|
|
370
|
+
newRelationType = RELATION_TYPES.unknown;
|
|
371
|
+
availableRelations = [...FULL_RELATIONS];
|
|
372
|
+
forceAddAlias = true;
|
|
373
|
+
} else if (hasWigetParams) {
|
|
374
|
+
newRelationType = OUTPUT_RELATIONS.includes(relationType) ? relationType : RELATION_TYPES.output;
|
|
375
|
+
availableRelations = [...OUTPUT_RELATIONS];
|
|
376
|
+
} else if (hasRowParams) {
|
|
377
|
+
newRelationType = INPUT_RELATIONS.includes(relationType) ? relationType : RELATION_TYPES.input;
|
|
378
|
+
availableRelations = [...INPUT_RELATIONS];
|
|
379
|
+
} else {
|
|
380
|
+
newRelationType = relationType || RELATION_TYPES.ignore;
|
|
381
|
+
availableRelations = [...FULL_RELATIONS];
|
|
382
|
+
forceAddAlias = true;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
return {
|
|
386
|
+
relationType: newRelationType,
|
|
387
|
+
availableRelations,
|
|
388
|
+
byFields,
|
|
389
|
+
hasDataset,
|
|
390
|
+
forceAddAlias,
|
|
391
|
+
hasRelation
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
const isEditorChart = (item) => item.isEditor && !isControl(item) && item.chartId;
|
|
395
|
+
const getControlToChartRelations = ({
|
|
396
|
+
relationType,
|
|
397
|
+
widget,
|
|
398
|
+
row,
|
|
399
|
+
relations,
|
|
400
|
+
datasets
|
|
401
|
+
}) => {
|
|
402
|
+
let availableRelations = [...OUTPUT_RELATIONS];
|
|
403
|
+
let newRelationType = relationType;
|
|
404
|
+
const isItemFilteringChart = Boolean(
|
|
405
|
+
row.type in DASH_FILTERING_CHARTS_WIDGET_TYPES && row.enableFiltering
|
|
406
|
+
);
|
|
407
|
+
let hasRelation = false;
|
|
408
|
+
let forceAddAlias = false;
|
|
409
|
+
let byFields = [];
|
|
410
|
+
if (relations.byAliases.length) {
|
|
411
|
+
if (isItemFilteringChart) {
|
|
412
|
+
newRelationType = relationType || getDefaultTypeByIgnore(relations);
|
|
413
|
+
availableRelations = [...FULL_RELATIONS];
|
|
414
|
+
} else {
|
|
415
|
+
newRelationType = relationType || RELATION_TYPES.output;
|
|
416
|
+
if (!OUTPUT_RELATIONS.includes(newRelationType)) {
|
|
417
|
+
newRelationType = RELATION_TYPES.output;
|
|
418
|
+
}
|
|
419
|
+
availableRelations = [...OUTPUT_RELATIONS];
|
|
420
|
+
}
|
|
421
|
+
} else if (isExternalControl(widget)) {
|
|
422
|
+
hasRelation = hasCommonUsedParamsWithDefaults(
|
|
423
|
+
widget.widgetParams || {},
|
|
424
|
+
row.usedParams || []
|
|
425
|
+
);
|
|
426
|
+
if (hasRelation) {
|
|
427
|
+
newRelationType = relationType || RELATION_TYPES.output;
|
|
428
|
+
} else if (isEditorChart(row)) {
|
|
429
|
+
newRelationType = relationType || RELATION_TYPES.unknown;
|
|
430
|
+
forceAddAlias = true;
|
|
431
|
+
} else {
|
|
432
|
+
newRelationType = RELATION_TYPES.ignore;
|
|
433
|
+
}
|
|
434
|
+
if (isItemFilteringChart) {
|
|
435
|
+
availableRelations = [...FULL_RELATIONS];
|
|
436
|
+
} else {
|
|
437
|
+
if (!OUTPUT_RELATIONS.includes(newRelationType)) {
|
|
438
|
+
newRelationType = RELATION_TYPES.output;
|
|
439
|
+
}
|
|
440
|
+
availableRelations = [...OUTPUT_RELATIONS];
|
|
441
|
+
}
|
|
442
|
+
} else {
|
|
443
|
+
const commonUsedParamsFields = intersection(widget.usedParams || [], row.usedParams || []);
|
|
444
|
+
if (commonUsedParamsFields.length) {
|
|
445
|
+
newRelationType = relationType || RELATION_TYPES.output;
|
|
446
|
+
if (isDatasetControl(widget)) {
|
|
447
|
+
byFields = getMappedConnectedControlField({ item: widget, datasets }) || [];
|
|
448
|
+
}
|
|
449
|
+
if (isItemFilteringChart) {
|
|
450
|
+
availableRelations = [...FULL_RELATIONS];
|
|
451
|
+
} else {
|
|
452
|
+
if (!OUTPUT_RELATIONS.includes(newRelationType)) {
|
|
453
|
+
newRelationType = RELATION_TYPES.output;
|
|
454
|
+
}
|
|
455
|
+
availableRelations = [...OUTPUT_RELATIONS];
|
|
456
|
+
}
|
|
457
|
+
} else {
|
|
458
|
+
newRelationType = relationType || RELATION_TYPES.unknown;
|
|
459
|
+
if (isItemFilteringChart) {
|
|
460
|
+
availableRelations = [...FULL_RELATIONS];
|
|
461
|
+
}
|
|
462
|
+
forceAddAlias = true;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
return {
|
|
466
|
+
relationType: newRelationType,
|
|
467
|
+
availableRelations,
|
|
468
|
+
forceAddAlias,
|
|
469
|
+
byFields
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
const getChartToControlRelations = ({
|
|
473
|
+
relationType,
|
|
474
|
+
widget,
|
|
475
|
+
row,
|
|
476
|
+
relations,
|
|
477
|
+
datasets
|
|
478
|
+
}) => {
|
|
479
|
+
let newRelationType = relationType;
|
|
480
|
+
let availableRelations = [...INPUT_RELATIONS];
|
|
481
|
+
const isCurrentFilteringChart = Boolean(
|
|
482
|
+
widget.type in DASH_FILTERING_CHARTS_WIDGET_TYPES && widget.enableFiltering
|
|
483
|
+
);
|
|
484
|
+
let forceAddAlias = false;
|
|
485
|
+
let hasRelation = false;
|
|
486
|
+
let byFields = [];
|
|
487
|
+
if (relations.byAliases.length) {
|
|
488
|
+
if (isCurrentFilteringChart) {
|
|
489
|
+
newRelationType = relationType || getDefaultTypeByIgnore(relations);
|
|
490
|
+
availableRelations = [...FULL_RELATIONS];
|
|
491
|
+
} else {
|
|
492
|
+
newRelationType = relationType || RELATION_TYPES.input;
|
|
493
|
+
if (!INPUT_RELATIONS.includes(newRelationType)) {
|
|
494
|
+
newRelationType = RELATION_TYPES.input;
|
|
495
|
+
}
|
|
496
|
+
availableRelations = [...INPUT_RELATIONS];
|
|
497
|
+
}
|
|
498
|
+
} else if (isExternalControl(row)) {
|
|
499
|
+
hasRelation = hasCommonUsedParamsWithDefaults(
|
|
500
|
+
row.widgetParams || {},
|
|
501
|
+
widget.usedParams || []
|
|
502
|
+
);
|
|
503
|
+
if (hasRelation) {
|
|
504
|
+
newRelationType = relationType || RELATION_TYPES.input;
|
|
505
|
+
} else if (isEditorChart(widget)) {
|
|
506
|
+
newRelationType = relationType || RELATION_TYPES.unknown;
|
|
507
|
+
forceAddAlias = true;
|
|
508
|
+
} else {
|
|
509
|
+
newRelationType = RELATION_TYPES.ignore;
|
|
510
|
+
}
|
|
511
|
+
if (isCurrentFilteringChart) {
|
|
512
|
+
availableRelations = [...FULL_RELATIONS];
|
|
513
|
+
} else {
|
|
514
|
+
if (!INPUT_RELATIONS.includes(newRelationType)) {
|
|
515
|
+
newRelationType = RELATION_TYPES.input;
|
|
516
|
+
}
|
|
517
|
+
availableRelations = [...INPUT_RELATIONS];
|
|
518
|
+
}
|
|
519
|
+
} else {
|
|
520
|
+
const commonUsedParamsFields = intersection(row.usedParams || [], widget.usedParams || []);
|
|
521
|
+
if (commonUsedParamsFields.length) {
|
|
522
|
+
newRelationType = relationType || RELATION_TYPES.input;
|
|
523
|
+
if (isDatasetControl(row)) {
|
|
524
|
+
byFields = getMappedConnectedControlField({ item: row, datasets }) || [];
|
|
525
|
+
}
|
|
526
|
+
if (isCurrentFilteringChart) {
|
|
527
|
+
availableRelations = [...FULL_RELATIONS];
|
|
528
|
+
} else {
|
|
529
|
+
if (!INPUT_RELATIONS.includes(newRelationType)) {
|
|
530
|
+
newRelationType = RELATION_TYPES.input;
|
|
531
|
+
}
|
|
532
|
+
availableRelations = [...INPUT_RELATIONS];
|
|
533
|
+
}
|
|
534
|
+
} else {
|
|
535
|
+
newRelationType = relationType || RELATION_TYPES.unknown;
|
|
536
|
+
if (isCurrentFilteringChart) {
|
|
537
|
+
availableRelations = [...FULL_RELATIONS];
|
|
538
|
+
}
|
|
539
|
+
forceAddAlias = true;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
return {
|
|
543
|
+
relationType: newRelationType,
|
|
544
|
+
availableRelations,
|
|
545
|
+
forceAddAlias,
|
|
546
|
+
byFields
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
const getChartAndControlRelations = (args) => {
|
|
550
|
+
const { isCurrentControl, isItemControl, relationType, row, widget, relations, datasets } = args;
|
|
551
|
+
let availableRelations = [];
|
|
552
|
+
let newRelationType = relationType;
|
|
553
|
+
let forceAddAlias = false;
|
|
554
|
+
let byFields = [];
|
|
555
|
+
if (!isCurrentControl && isItemControl) {
|
|
556
|
+
const chartToControlRelation = getChartToControlRelations({
|
|
557
|
+
relationType,
|
|
558
|
+
widget,
|
|
559
|
+
row,
|
|
560
|
+
relations,
|
|
561
|
+
datasets
|
|
562
|
+
});
|
|
563
|
+
newRelationType = chartToControlRelation.relationType;
|
|
564
|
+
availableRelations = chartToControlRelation.availableRelations;
|
|
565
|
+
forceAddAlias = chartToControlRelation.forceAddAlias;
|
|
566
|
+
byFields = chartToControlRelation.byFields;
|
|
567
|
+
} else if (!isItemControl && isCurrentControl) {
|
|
568
|
+
const controlToChartRelation = getControlToChartRelations({
|
|
569
|
+
relationType,
|
|
570
|
+
widget,
|
|
571
|
+
row,
|
|
572
|
+
relations,
|
|
573
|
+
datasets
|
|
574
|
+
});
|
|
575
|
+
newRelationType = controlToChartRelation.relationType;
|
|
576
|
+
availableRelations = controlToChartRelation.availableRelations;
|
|
577
|
+
forceAddAlias = controlToChartRelation.forceAddAlias;
|
|
578
|
+
byFields = controlToChartRelation.byFields;
|
|
579
|
+
}
|
|
580
|
+
return {
|
|
581
|
+
relationType: newRelationType,
|
|
582
|
+
availableRelations,
|
|
583
|
+
forceAddAlias,
|
|
584
|
+
byFields
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
const getChartToChartRelations = ({
|
|
588
|
+
widget,
|
|
589
|
+
row,
|
|
590
|
+
relationType,
|
|
591
|
+
relations
|
|
592
|
+
}) => {
|
|
593
|
+
const isCurrentFilteringChart = Boolean(
|
|
594
|
+
widget.type in DASH_FILTERING_CHARTS_WIDGET_TYPES && widget.enableFiltering
|
|
595
|
+
);
|
|
596
|
+
const isItemFilteringChart = Boolean(
|
|
597
|
+
row.type in DASH_FILTERING_CHARTS_WIDGET_TYPES && row.enableFiltering
|
|
598
|
+
);
|
|
599
|
+
let availableRelations = [];
|
|
600
|
+
let hasDataset = false;
|
|
601
|
+
let byFields = [];
|
|
602
|
+
let newRelationType = relationType || RELATION_TYPES.ignore;
|
|
603
|
+
if (isCurrentFilteringChart && !isItemFilteringChart) {
|
|
604
|
+
newRelationType = relationType || RELATION_TYPES.output;
|
|
605
|
+
if (!OUTPUT_RELATIONS.includes(newRelationType)) {
|
|
606
|
+
newRelationType = RELATION_TYPES.output;
|
|
607
|
+
}
|
|
608
|
+
availableRelations = [...OUTPUT_RELATIONS];
|
|
609
|
+
if (widget.isWizard) {
|
|
610
|
+
hasDataset = true;
|
|
611
|
+
byFields = [];
|
|
612
|
+
}
|
|
613
|
+
} else if (!isCurrentFilteringChart && isItemFilteringChart) {
|
|
614
|
+
newRelationType = relationType || RELATION_TYPES.input;
|
|
615
|
+
if (!INPUT_RELATIONS.includes(newRelationType)) {
|
|
616
|
+
newRelationType = RELATION_TYPES.input;
|
|
617
|
+
}
|
|
618
|
+
availableRelations.push(RELATION_TYPES.input, RELATION_TYPES.ignore);
|
|
619
|
+
if (row.isWizard) {
|
|
620
|
+
hasDataset = true;
|
|
621
|
+
byFields = [];
|
|
622
|
+
}
|
|
623
|
+
} else if (isCurrentFilteringChart && isItemFilteringChart) {
|
|
624
|
+
newRelationType = relationType || getDefaultTypeByIgnore(relations);
|
|
625
|
+
availableRelations = [...FULL_RELATIONS];
|
|
626
|
+
if (widget.isWizard || row.isWizard) {
|
|
627
|
+
hasDataset = true;
|
|
628
|
+
byFields = [];
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
return {
|
|
632
|
+
relationType: newRelationType,
|
|
633
|
+
availableRelations,
|
|
634
|
+
hasDataset,
|
|
635
|
+
byFields
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
const getPreparedMetaData = (data, dashkitData) => {
|
|
639
|
+
if (!data || !data?.length || !dashkitData) {
|
|
640
|
+
return {
|
|
641
|
+
metaData: [],
|
|
642
|
+
datasetsList: {},
|
|
643
|
+
entriesList: [],
|
|
644
|
+
controlsList: []
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
const config = dashkitData.props.config;
|
|
648
|
+
const configItems = {};
|
|
649
|
+
const allItems = getAllTabItems(config);
|
|
650
|
+
allItems.forEach((item) => {
|
|
651
|
+
configItems[item.id] = item.namespace;
|
|
652
|
+
});
|
|
653
|
+
const metaDataWithNamespaces = data.reduce(
|
|
654
|
+
(list, item) => list.concat(item),
|
|
655
|
+
[]
|
|
656
|
+
).map((item) => ({
|
|
657
|
+
...item,
|
|
658
|
+
namespace: configItems[item.layoutId] || ""
|
|
659
|
+
}));
|
|
660
|
+
const datasetsList = {};
|
|
661
|
+
const controlsList = [];
|
|
662
|
+
metaDataWithNamespaces.forEach((item) => {
|
|
663
|
+
if (item.datasets?.length) {
|
|
664
|
+
item.datasets.forEach((datasetItem) => {
|
|
665
|
+
if (datasetItem.id) {
|
|
666
|
+
datasetsList[datasetItem.id] = {
|
|
667
|
+
fields: datasetItem.fieldsList
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
if (item?.type === DashTabItemType.Control && item?.sourceType !== DashTabItemControlSourceType.Dataset) {
|
|
673
|
+
controlsList.push(item?.widgetId);
|
|
674
|
+
}
|
|
675
|
+
});
|
|
676
|
+
const entriesList = [
|
|
677
|
+
...new Set(metaDataWithNamespaces.map((item) => item.entryId).filter(Boolean))
|
|
678
|
+
];
|
|
679
|
+
return {
|
|
680
|
+
metaData: metaDataWithNamespaces,
|
|
681
|
+
datasetsList,
|
|
682
|
+
entriesList,
|
|
683
|
+
controlsList
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
const getMetaDataWithDatasetInfo = ({
|
|
687
|
+
metaData,
|
|
688
|
+
entriesDatasetsFields,
|
|
689
|
+
datasetsList
|
|
690
|
+
}) => {
|
|
691
|
+
const entriesWithDatasetsFields = entriesDatasetsFields.filter(
|
|
692
|
+
(item) => Boolean(item.datasetFields?.length)
|
|
693
|
+
);
|
|
694
|
+
const res = (metaData || []).map((item) => {
|
|
695
|
+
const itemWithDataset = { ...item };
|
|
696
|
+
const entryWithDataset = entriesWithDatasetsFields.find(
|
|
697
|
+
(entryItem) => entryItem.entryId === itemWithDataset.entryId
|
|
698
|
+
);
|
|
699
|
+
if (!entryWithDataset) {
|
|
700
|
+
return itemWithDataset;
|
|
701
|
+
}
|
|
702
|
+
const { type, datasetId, datasetName, datasetFields, visualizationType } = entryWithDataset;
|
|
703
|
+
const key = datasetId;
|
|
704
|
+
if (datasetFields) {
|
|
705
|
+
datasetsList[key] = datasetsList[key] || {};
|
|
706
|
+
datasetsList[key].name = datasetName || "";
|
|
707
|
+
datasetsList[key].fields = datasetFields.map((fieldItem) => ({
|
|
708
|
+
title: fieldItem.title,
|
|
709
|
+
guid: fieldItem.guid,
|
|
710
|
+
dataType: fieldItem.dataType || fieldItem.type || ""
|
|
711
|
+
}));
|
|
712
|
+
}
|
|
713
|
+
if (datasetId && datasetsList[datasetId]) {
|
|
714
|
+
const fields = datasetsList[datasetId].fields;
|
|
715
|
+
itemWithDataset.usedParams = Array.isArray(fields) ? fields.map((fieldItem) => fieldItem.guid) : Object.keys(fields);
|
|
716
|
+
item.datasets?.find(({ id }) => id === datasetId)?.fieldsList.forEach(({ guid }) => {
|
|
717
|
+
if (!itemWithDataset.usedParams?.includes(guid)) {
|
|
718
|
+
itemWithDataset.usedParams?.push(guid);
|
|
719
|
+
}
|
|
720
|
+
});
|
|
721
|
+
itemWithDataset.datasets = item.datasets?.length ? item.datasets.map((datasetItem) => ({
|
|
722
|
+
...datasetItem,
|
|
723
|
+
name: datasetsList[datasetItem.id]?.name
|
|
724
|
+
})) : [
|
|
725
|
+
{
|
|
726
|
+
id: datasetId,
|
|
727
|
+
fieldsList: datasetFields || [],
|
|
728
|
+
fields: datasetsList[key].fields,
|
|
729
|
+
name: datasetsList[key].name
|
|
730
|
+
}
|
|
731
|
+
];
|
|
732
|
+
itemWithDataset.type = item.type || type;
|
|
733
|
+
itemWithDataset.enableFiltering = item.enableFiltering || false;
|
|
734
|
+
}
|
|
735
|
+
if (visualizationType) {
|
|
736
|
+
itemWithDataset.visualizationType = visualizationType;
|
|
737
|
+
}
|
|
738
|
+
return itemWithDataset;
|
|
739
|
+
});
|
|
740
|
+
return res;
|
|
741
|
+
};
|
|
742
|
+
const showInRelation = (currentItem, rowItem) => {
|
|
743
|
+
const isItemControl = isControl(rowItem);
|
|
744
|
+
const isCurrentChartAcceptFilter = currentItem.type in DASH_ACCEPT_FILTERING_CHARTS_WIDGET_TYPES;
|
|
745
|
+
const isItemChartAcceptFilter = rowItem.type in DASH_ACCEPT_FILTERING_CHARTS_WIDGET_TYPES;
|
|
746
|
+
const isCurrentFilteringChart = currentItem.type in DASH_FILTERING_CHARTS_WIDGET_TYPES && currentItem.enableFiltering;
|
|
747
|
+
const isItemFilteringChart = rowItem.type in DASH_FILTERING_CHARTS_WIDGET_TYPES && rowItem.enableFiltering;
|
|
748
|
+
if (currentItem.loadError || rowItem.loadError || currentItem.type === null && (currentItem.chartId || currentItem.datasetId) || rowItem.type === null && (rowItem.chartId || rowItem.datasetId)) {
|
|
749
|
+
return true;
|
|
750
|
+
} else if (isControl(currentItem)) {
|
|
751
|
+
if (isItemControl || isItemChartAcceptFilter) {
|
|
752
|
+
return true;
|
|
753
|
+
}
|
|
754
|
+
} else if (isCurrentFilteringChart) {
|
|
755
|
+
if (isItemControl || isItemChartAcceptFilter) {
|
|
756
|
+
return true;
|
|
757
|
+
}
|
|
758
|
+
} else if (isCurrentChartAcceptFilter) {
|
|
759
|
+
if (isItemControl || isItemFilteringChart) {
|
|
760
|
+
return true;
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
return false;
|
|
764
|
+
};
|
|
765
|
+
const getCurrentNamespaceItems = ({
|
|
766
|
+
metaItems,
|
|
767
|
+
id
|
|
768
|
+
}) => {
|
|
769
|
+
if (!metaItems || !metaItems.length) {
|
|
770
|
+
return [];
|
|
771
|
+
}
|
|
772
|
+
if (!id) {
|
|
773
|
+
return metaItems || [];
|
|
774
|
+
}
|
|
775
|
+
return metaItems.filter((item) => {
|
|
776
|
+
const itemId = item.itemId || item.widgetId;
|
|
777
|
+
return itemId !== id && item.namespace === DEFAULT_ALIAS_NAMESPACE;
|
|
778
|
+
});
|
|
779
|
+
};
|
|
780
|
+
const getDefaultTypeByIgnore = (relations) => {
|
|
781
|
+
let relationType = RELATION_TYPES.both;
|
|
782
|
+
if (relations.isIgnored || relations.isIgnoring) {
|
|
783
|
+
relationType = relations.isIgnored ? RELATION_TYPES.output : RELATION_TYPES.input;
|
|
784
|
+
}
|
|
785
|
+
return relationType;
|
|
786
|
+
};
|
|
787
|
+
const getRelationTypeByIgnores = ({
|
|
788
|
+
relations,
|
|
789
|
+
loadError,
|
|
790
|
+
hasRelation
|
|
791
|
+
}) => {
|
|
792
|
+
let relationType = "";
|
|
793
|
+
if (relations.isIgnored && relations.isIgnoring) {
|
|
794
|
+
relationType = RELATION_TYPES.ignore;
|
|
795
|
+
} else if (loadError) {
|
|
796
|
+
relationType = RELATION_TYPES.unknown;
|
|
797
|
+
} else if (hasRelation) {
|
|
798
|
+
relationType = getDefaultTypeByIgnore(relations);
|
|
799
|
+
}
|
|
800
|
+
return relationType;
|
|
801
|
+
};
|
|
802
|
+
const getItemsRelations = ({
|
|
803
|
+
relations,
|
|
804
|
+
widgetMeta,
|
|
805
|
+
row,
|
|
806
|
+
datasets
|
|
807
|
+
}) => {
|
|
808
|
+
const isCurrentControl = isControl(widgetMeta);
|
|
809
|
+
const isItemControl = isControl(row);
|
|
810
|
+
const byUsedParams = relations.byUsedParams;
|
|
811
|
+
let relationType = getRelationTypeByIgnores({
|
|
812
|
+
loadError: Boolean(widgetMeta.loadError || row.loadError),
|
|
813
|
+
relations,
|
|
814
|
+
hasRelation: Boolean(byUsedParams.length || relations.byAliases.length)
|
|
815
|
+
});
|
|
816
|
+
let byFields = [];
|
|
817
|
+
let hasDataset = false;
|
|
818
|
+
let forceAddAlias = false;
|
|
819
|
+
let availableRelations = [];
|
|
820
|
+
if (widgetMeta.loadError || row.loadError) {
|
|
821
|
+
availableRelations.push(RELATION_TYPES.unknown, RELATION_TYPES.ignore);
|
|
822
|
+
} else if (isItemControl && isCurrentControl) {
|
|
823
|
+
const resultRelations = getControlToControlRelations({
|
|
824
|
+
relationType,
|
|
825
|
+
widget: widgetMeta,
|
|
826
|
+
row,
|
|
827
|
+
byUsedParams,
|
|
828
|
+
relations,
|
|
829
|
+
datasets
|
|
830
|
+
});
|
|
831
|
+
relationType = resultRelations.relationType;
|
|
832
|
+
availableRelations = resultRelations.availableRelations;
|
|
833
|
+
byFields = resultRelations.byFields;
|
|
834
|
+
hasDataset = resultRelations.hasDataset;
|
|
835
|
+
forceAddAlias = resultRelations.forceAddAlias;
|
|
836
|
+
} else if (!isItemControl && !isCurrentControl) {
|
|
837
|
+
const resultRelations = getChartToChartRelations({
|
|
838
|
+
widget: widgetMeta,
|
|
839
|
+
row,
|
|
840
|
+
relationType,
|
|
841
|
+
relations
|
|
842
|
+
});
|
|
843
|
+
relationType = resultRelations.relationType;
|
|
844
|
+
availableRelations = resultRelations.availableRelations;
|
|
845
|
+
hasDataset = resultRelations.hasDataset;
|
|
846
|
+
} else {
|
|
847
|
+
const resultRelations = getChartAndControlRelations({
|
|
848
|
+
relations,
|
|
849
|
+
relationType,
|
|
850
|
+
isCurrentControl,
|
|
851
|
+
isItemControl,
|
|
852
|
+
widget: widgetMeta,
|
|
853
|
+
row,
|
|
854
|
+
datasets
|
|
855
|
+
});
|
|
856
|
+
relationType = resultRelations.relationType;
|
|
857
|
+
availableRelations = resultRelations.availableRelations;
|
|
858
|
+
forceAddAlias = resultRelations.forceAddAlias;
|
|
859
|
+
byFields = resultRelations.byFields;
|
|
860
|
+
}
|
|
861
|
+
if (!relationType) {
|
|
862
|
+
relationType = RELATION_TYPES.unknown;
|
|
863
|
+
}
|
|
864
|
+
return {
|
|
865
|
+
byUsedParams,
|
|
866
|
+
byAliases: relations.byAliases,
|
|
867
|
+
indirectAliases: relations.indirectAliases,
|
|
868
|
+
isIgnoring: relations.isIgnoring,
|
|
869
|
+
isIgnored: relations.isIgnored,
|
|
870
|
+
type: relationType,
|
|
871
|
+
available: availableRelations,
|
|
872
|
+
byFields: byFields || [],
|
|
873
|
+
hasDataset,
|
|
874
|
+
forceAddAlias
|
|
875
|
+
};
|
|
876
|
+
};
|
|
877
|
+
const getNormalizedUsedParams = (item) => {
|
|
878
|
+
if (isExternalControl(item)) {
|
|
879
|
+
return Object.keys(item.widgetParams || {});
|
|
880
|
+
}
|
|
881
|
+
return item.usedParams;
|
|
882
|
+
};
|
|
883
|
+
const getByUsedParams = (args) => {
|
|
884
|
+
const { widget, row } = args;
|
|
885
|
+
const rowUsedParams = getNormalizedUsedParams(row) || [];
|
|
886
|
+
const widgetUsedParams = getNormalizedUsedParams(widget) || [];
|
|
887
|
+
return intersection(rowUsedParams, widgetUsedParams);
|
|
888
|
+
};
|
|
889
|
+
const getRelationsInfo = (args) => {
|
|
890
|
+
const { aliases, connections, datasets, widget, row } = args;
|
|
891
|
+
const byUsedParams = getByUsedParams({ widget, row });
|
|
892
|
+
let byAliases = [];
|
|
893
|
+
const indirectAliases = [];
|
|
894
|
+
const rowId = row.itemId || row.widgetId;
|
|
895
|
+
const currentId = widget.itemId || widget.widgetId;
|
|
896
|
+
const ignoreConntections = connections.filter(({ kind }) => kind === CONNECTION_KIND.IGNORE);
|
|
897
|
+
const isIgnored = ignoreConntections.some(({ from, to }) => from === currentId && to === rowId);
|
|
898
|
+
const isIgnoring = ignoreConntections.some(({ from, to }) => from === rowId && to === currentId);
|
|
899
|
+
const isIndirectRelation = !isIgnored && !isIgnoring;
|
|
900
|
+
if (aliases[DEFAULT_ALIAS_NAMESPACE]?.length) {
|
|
901
|
+
byAliases = aliases[DEFAULT_ALIAS_NAMESPACE].filter((aliasArr) => {
|
|
902
|
+
if (!row.usedParams?.length && !isIndirectRelation) {
|
|
903
|
+
return false;
|
|
904
|
+
}
|
|
905
|
+
const rowInAlias = intersection(row.usedParams, aliasArr);
|
|
906
|
+
const widgetInAlias = intersection(widget.usedParams, aliasArr);
|
|
907
|
+
if (rowInAlias.length || widgetInAlias.length) {
|
|
908
|
+
indirectAliases.push(aliasArr);
|
|
909
|
+
}
|
|
910
|
+
if (!rowInAlias.length || !widgetInAlias.length) {
|
|
911
|
+
return false;
|
|
912
|
+
}
|
|
913
|
+
return rowInAlias;
|
|
914
|
+
});
|
|
915
|
+
}
|
|
916
|
+
return getItemsRelations({
|
|
917
|
+
relations: {
|
|
918
|
+
byUsedParams,
|
|
919
|
+
byAliases,
|
|
920
|
+
indirectAliases,
|
|
921
|
+
isIgnoring,
|
|
922
|
+
isIgnored,
|
|
923
|
+
hasDataset: false
|
|
924
|
+
},
|
|
925
|
+
widgetMeta: widget,
|
|
926
|
+
row,
|
|
927
|
+
datasets
|
|
928
|
+
});
|
|
929
|
+
};
|
|
930
|
+
const getRelationsData = ({
|
|
931
|
+
metaData,
|
|
932
|
+
widgetMeta,
|
|
933
|
+
aliases,
|
|
934
|
+
connections,
|
|
935
|
+
datasets
|
|
936
|
+
}) => {
|
|
937
|
+
if (!metaData || !metaData.length || !widgetMeta) {
|
|
938
|
+
return [];
|
|
939
|
+
}
|
|
940
|
+
const currentId = widgetMeta.itemId || widgetMeta.widgetId;
|
|
941
|
+
const metaItems = getCurrentNamespaceItems({
|
|
942
|
+
metaItems: metaData,
|
|
943
|
+
id: currentId
|
|
944
|
+
});
|
|
945
|
+
const relationsItems = [];
|
|
946
|
+
metaItems.filter((item) => {
|
|
947
|
+
const id = item.itemId || item.widgetId;
|
|
948
|
+
return id !== currentId && showInRelation(widgetMeta, item);
|
|
949
|
+
}).forEach((item) => {
|
|
950
|
+
const relations = getRelationsInfo({
|
|
951
|
+
aliases,
|
|
952
|
+
connections,
|
|
953
|
+
datasets,
|
|
954
|
+
widget: widgetMeta,
|
|
955
|
+
row: item
|
|
956
|
+
});
|
|
957
|
+
relationsItems.push({
|
|
958
|
+
...item,
|
|
959
|
+
relations
|
|
960
|
+
});
|
|
961
|
+
});
|
|
962
|
+
return relationsItems;
|
|
963
|
+
};
|
|
964
|
+
const getCurrentWidgetTabShortInfo = (data, widget, tabId) => {
|
|
965
|
+
if (widget.type === DashTabItemType.Control || widget.type === DashTabItemType.GroupControl) {
|
|
966
|
+
return widget;
|
|
967
|
+
}
|
|
968
|
+
if (!data || widget.type !== DashTabItemType.Widget) {
|
|
969
|
+
return null;
|
|
970
|
+
}
|
|
971
|
+
const currentPlugin = data.metaRef?.current?.pluginsRefs?.find(
|
|
972
|
+
(item) => item?.props.id === widget.id
|
|
973
|
+
);
|
|
974
|
+
const currentWidgetId = currentPlugin?.chartKitRef?.current?.props.id || currentPlugin?.getCurrentTabChartId?.();
|
|
975
|
+
const res = currentPlugin?.props.data.tabs.find(
|
|
976
|
+
(item) => (item.id === tabId || !tabId) && item.chartId === currentWidgetId
|
|
977
|
+
);
|
|
978
|
+
if (res) {
|
|
979
|
+
return { ...res, namespace: currentPlugin.props.namespace };
|
|
980
|
+
}
|
|
981
|
+
return res;
|
|
982
|
+
};
|
|
983
|
+
const getCurrentWidgetMeta = ({
|
|
984
|
+
metaData,
|
|
985
|
+
dashkitData,
|
|
986
|
+
widget,
|
|
987
|
+
itemId,
|
|
988
|
+
tabId
|
|
989
|
+
}) => {
|
|
990
|
+
if (itemId) {
|
|
991
|
+
return metaData?.find((item) => item.itemId === itemId) || {};
|
|
992
|
+
}
|
|
993
|
+
const tabInfo = getCurrentWidgetTabShortInfo(dashkitData, widget, tabId);
|
|
994
|
+
return metaData?.find((item) => item.widgetId === tabInfo?.id) || {};
|
|
995
|
+
};
|
|
996
|
+
const getMappedFilters = (items) => {
|
|
997
|
+
const mapped = {
|
|
998
|
+
ignore: false,
|
|
999
|
+
input: false,
|
|
1000
|
+
output: false,
|
|
1001
|
+
both: false,
|
|
1002
|
+
unknown: false
|
|
1003
|
+
};
|
|
1004
|
+
const preparedItems = items.length > 0 ? items : DEFAULT_FILTERS;
|
|
1005
|
+
preparedItems.forEach((item) => {
|
|
1006
|
+
switch (item) {
|
|
1007
|
+
case "none":
|
|
1008
|
+
mapped.ignore = true;
|
|
1009
|
+
mapped.unknown = true;
|
|
1010
|
+
break;
|
|
1011
|
+
case "input":
|
|
1012
|
+
mapped.input = true;
|
|
1013
|
+
mapped.both = true;
|
|
1014
|
+
break;
|
|
1015
|
+
case "output":
|
|
1016
|
+
mapped.output = true;
|
|
1017
|
+
mapped.both = true;
|
|
1018
|
+
break;
|
|
1019
|
+
}
|
|
1020
|
+
});
|
|
1021
|
+
return mapped;
|
|
1022
|
+
};
|
|
1023
|
+
const getChangedRelations = (items, changed, currentWidgetId) => {
|
|
1024
|
+
return items.map((item) => {
|
|
1025
|
+
const newItem = {
|
|
1026
|
+
...item
|
|
1027
|
+
};
|
|
1028
|
+
const id = item.itemId || item.widgetId;
|
|
1029
|
+
if (changed && changed[currentWidgetId] && changed[currentWidgetId][id]) {
|
|
1030
|
+
newItem.relations = {
|
|
1031
|
+
...item.relations,
|
|
1032
|
+
type: changed[currentWidgetId][id]
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
return newItem;
|
|
1036
|
+
});
|
|
1037
|
+
};
|
|
1038
|
+
const b$8 = block("dialog-relations");
|
|
1039
|
+
const getIconByVisualizationId = ({
|
|
1040
|
+
visualizationId,
|
|
1041
|
+
iconSize,
|
|
1042
|
+
className
|
|
1043
|
+
}) => {
|
|
1044
|
+
const visualization = VISUALIZATIONS_BY_ID[visualizationId];
|
|
1045
|
+
return visualization ? /* @__PURE__ */ jsx(
|
|
1046
|
+
IconById,
|
|
1047
|
+
{
|
|
1048
|
+
id: visualization.iconProps.id,
|
|
1049
|
+
size: iconSize || DEFAULT_ICON_SIZE,
|
|
1050
|
+
className: `${className} ${b$8("icon-visualization")}`
|
|
1051
|
+
}
|
|
1052
|
+
) : /* @__PURE__ */ jsx(
|
|
1053
|
+
Icon,
|
|
1054
|
+
{
|
|
1055
|
+
data: RELATIONS_CHARTS_ICONS_DICT.widget,
|
|
1056
|
+
size: iconSize || DEFAULT_ICON_SIZE,
|
|
1057
|
+
className
|
|
1058
|
+
}
|
|
1059
|
+
);
|
|
1060
|
+
};
|
|
1061
|
+
const getRelationsIcon = (widgetMeta, className) => {
|
|
1062
|
+
if (!widgetMeta) {
|
|
1063
|
+
return null;
|
|
1064
|
+
}
|
|
1065
|
+
if (widgetMeta.visualizationType) {
|
|
1066
|
+
return getIconByVisualizationId({
|
|
1067
|
+
visualizationId: widgetMeta.visualizationType,
|
|
1068
|
+
className
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
const iconData = widgetMeta.type === DashTabItemType.Control ? RELATIONS_CHARTS_ICONS_DICT.control : RELATIONS_CHARTS_ICONS_DICT[widgetMeta.type] || RELATIONS_CHARTS_ICONS_DICT.widget;
|
|
1072
|
+
return /* @__PURE__ */ jsx(Icon, { data: iconData, size: DEFAULT_ICON_SIZE, className });
|
|
1073
|
+
};
|
|
1074
|
+
const getChangedConnections = ({
|
|
1075
|
+
items,
|
|
1076
|
+
widgetId,
|
|
1077
|
+
changedId,
|
|
1078
|
+
changedType
|
|
1079
|
+
}) => {
|
|
1080
|
+
const relationFromWidgetToRow = {
|
|
1081
|
+
from: widgetId,
|
|
1082
|
+
kind: RELATION_TYPES.ignore,
|
|
1083
|
+
to: changedId
|
|
1084
|
+
};
|
|
1085
|
+
const relationFromRowToWidget = {
|
|
1086
|
+
from: changedId,
|
|
1087
|
+
kind: RELATION_TYPES.ignore,
|
|
1088
|
+
to: widgetId
|
|
1089
|
+
};
|
|
1090
|
+
const connectionsWithoutCurrentLink = items.filter(
|
|
1091
|
+
(item) => item.kind === RELATION_TYPES.ignore && !(changedId === item.from && widgetId === item.to) && !(changedId === item.to && widgetId === item.from)
|
|
1092
|
+
);
|
|
1093
|
+
let result = [];
|
|
1094
|
+
switch (changedType) {
|
|
1095
|
+
case RELATION_TYPES.ignore: {
|
|
1096
|
+
result = connectionsWithoutCurrentLink.concat([
|
|
1097
|
+
relationFromWidgetToRow,
|
|
1098
|
+
relationFromRowToWidget
|
|
1099
|
+
]);
|
|
1100
|
+
break;
|
|
1101
|
+
}
|
|
1102
|
+
case RELATION_TYPES.input: {
|
|
1103
|
+
result = connectionsWithoutCurrentLink.concat([relationFromRowToWidget]);
|
|
1104
|
+
break;
|
|
1105
|
+
}
|
|
1106
|
+
case RELATION_TYPES.output: {
|
|
1107
|
+
result = connectionsWithoutCurrentLink.concat([relationFromWidgetToRow]);
|
|
1108
|
+
break;
|
|
1109
|
+
}
|
|
1110
|
+
default:
|
|
1111
|
+
result = connectionsWithoutCurrentLink;
|
|
1112
|
+
}
|
|
1113
|
+
return result;
|
|
1114
|
+
};
|
|
1115
|
+
const getUpdatedRelations = (items, changed) => {
|
|
1116
|
+
let updatedItems = [...items];
|
|
1117
|
+
for (const id of Object.keys(changed)) {
|
|
1118
|
+
for (const [key, type] of Object.entries(changed[id])) {
|
|
1119
|
+
updatedItems = getChangedConnections({
|
|
1120
|
+
items: updatedItems,
|
|
1121
|
+
widgetId: id,
|
|
1122
|
+
changedId: key,
|
|
1123
|
+
changedType: type
|
|
1124
|
+
});
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
return updatedItems;
|
|
1128
|
+
};
|
|
1129
|
+
const getRelationsForSave = ({
|
|
1130
|
+
changed,
|
|
1131
|
+
dashkitData
|
|
1132
|
+
}) => {
|
|
1133
|
+
if (!dashkitData || !changed || isEmpty(changed)) {
|
|
1134
|
+
return null;
|
|
1135
|
+
}
|
|
1136
|
+
const { connections } = dashkitData.props.config;
|
|
1137
|
+
return getUpdatedRelations(connections, changed);
|
|
1138
|
+
};
|
|
1139
|
+
const appendUniq = (first, second, alias) => {
|
|
1140
|
+
const uniqSet = /* @__PURE__ */ new Set([first, second]);
|
|
1141
|
+
alias.forEach((key) => uniqSet.add(key));
|
|
1142
|
+
return Array.from(uniqSet);
|
|
1143
|
+
};
|
|
1144
|
+
const concatUniq = (left, right) => {
|
|
1145
|
+
const uniqSet = /* @__PURE__ */ new Set();
|
|
1146
|
+
left.forEach((key) => uniqSet.add(key));
|
|
1147
|
+
right.forEach((key) => uniqSet.add(key));
|
|
1148
|
+
return Array.from(uniqSet);
|
|
1149
|
+
};
|
|
1150
|
+
const checkExist = (first, second, checkedAlias) => {
|
|
1151
|
+
return checkedAlias.some((key) => key === first || key === second);
|
|
1152
|
+
};
|
|
1153
|
+
const getNormalizedAliases = (aliases) => {
|
|
1154
|
+
const normalizedAliases = cloneDeep(aliases);
|
|
1155
|
+
for (let i = 0; i < normalizedAliases.length; i++) {
|
|
1156
|
+
let alias = normalizedAliases[i];
|
|
1157
|
+
if (alias.length < 1) {
|
|
1158
|
+
normalizedAliases.splice(i, 1);
|
|
1159
|
+
i -= 1;
|
|
1160
|
+
continue;
|
|
1161
|
+
}
|
|
1162
|
+
for (let m = i + 1; m < normalizedAliases.length; m++) {
|
|
1163
|
+
const accumulationAlias = alias;
|
|
1164
|
+
const nextAlias = normalizedAliases[m];
|
|
1165
|
+
if (nextAlias.some((al) => accumulationAlias.includes(al))) {
|
|
1166
|
+
alias = concatUniq(accumulationAlias, nextAlias);
|
|
1167
|
+
normalizedAliases.splice(m, 1);
|
|
1168
|
+
m = i;
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
normalizedAliases[i] = alias;
|
|
1172
|
+
}
|
|
1173
|
+
return normalizedAliases;
|
|
1174
|
+
};
|
|
1175
|
+
const addAlias = (first, second, aliases) => {
|
|
1176
|
+
let isAppended = false;
|
|
1177
|
+
let appended = [];
|
|
1178
|
+
const result = [];
|
|
1179
|
+
for (let i = 0; i < aliases.length; i++) {
|
|
1180
|
+
const alias = aliases[i];
|
|
1181
|
+
if (checkExist(first, second, alias)) {
|
|
1182
|
+
if (isAppended) {
|
|
1183
|
+
const appendedIndex = result.indexOf(appended);
|
|
1184
|
+
appended = concatUniq(alias, appended);
|
|
1185
|
+
result[appendedIndex] = appended;
|
|
1186
|
+
} else {
|
|
1187
|
+
isAppended = true;
|
|
1188
|
+
appended = appendUniq(first, second, alias);
|
|
1189
|
+
result.push(appended);
|
|
1190
|
+
}
|
|
1191
|
+
} else {
|
|
1192
|
+
result.push(alias);
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
if (!isAppended) {
|
|
1196
|
+
result.push([first, second]);
|
|
1197
|
+
}
|
|
1198
|
+
return result;
|
|
1199
|
+
};
|
|
1200
|
+
const hasConnectionsBy = (relation) => {
|
|
1201
|
+
return Boolean(relation?.byUsedParams?.length) || Boolean(relation?.byFields?.length) || Boolean(relation?.byAliases?.length);
|
|
1202
|
+
};
|
|
1203
|
+
const getUpdatedPreparedRelations = (props) => {
|
|
1204
|
+
const {
|
|
1205
|
+
aliases,
|
|
1206
|
+
currentWidgetId,
|
|
1207
|
+
currentWidgetMeta,
|
|
1208
|
+
changedWidgetsData,
|
|
1209
|
+
dashkitData,
|
|
1210
|
+
dashWidgetsMeta,
|
|
1211
|
+
preparedRelations,
|
|
1212
|
+
datasets,
|
|
1213
|
+
type = "connections"
|
|
1214
|
+
} = props;
|
|
1215
|
+
if (!dashWidgetsMeta || !currentWidgetMeta) {
|
|
1216
|
+
return null;
|
|
1217
|
+
}
|
|
1218
|
+
const connections = getRelationsForSave({
|
|
1219
|
+
changed: changedWidgetsData,
|
|
1220
|
+
dashkitData
|
|
1221
|
+
}) || [];
|
|
1222
|
+
const row = dashWidgetsMeta.find((item) => (item.itemId || item.widgetId) === currentWidgetId);
|
|
1223
|
+
if (!row) {
|
|
1224
|
+
return null;
|
|
1225
|
+
}
|
|
1226
|
+
const newPreparedRelations = [...preparedRelations];
|
|
1227
|
+
const changedRelationsItem = newPreparedRelations.find(
|
|
1228
|
+
(item) => (item.itemId || item.widgetId) === currentWidgetId
|
|
1229
|
+
);
|
|
1230
|
+
const newAliases = Array.isArray(aliases) ? { [DEFAULT_ALIAS_NAMESPACE]: aliases } : aliases;
|
|
1231
|
+
if (type === "aliases") {
|
|
1232
|
+
const relationsItems = [];
|
|
1233
|
+
dashWidgetsMeta.filter((item) => {
|
|
1234
|
+
return (item.itemId || item.widgetId) !== currentWidgetId && showInRelation(currentWidgetMeta, item);
|
|
1235
|
+
}).forEach((item) => {
|
|
1236
|
+
const relations = getRelationsInfo({
|
|
1237
|
+
aliases: newAliases,
|
|
1238
|
+
connections: dashkitData?.props.config.connections || [],
|
|
1239
|
+
datasets,
|
|
1240
|
+
widget: currentWidgetMeta,
|
|
1241
|
+
row: item
|
|
1242
|
+
});
|
|
1243
|
+
relationsItems.push({
|
|
1244
|
+
...item,
|
|
1245
|
+
relations
|
|
1246
|
+
});
|
|
1247
|
+
});
|
|
1248
|
+
return relationsItems;
|
|
1249
|
+
}
|
|
1250
|
+
if (!changedRelationsItem) {
|
|
1251
|
+
return null;
|
|
1252
|
+
}
|
|
1253
|
+
changedRelationsItem.relations = getRelationsInfo({
|
|
1254
|
+
aliases: newAliases,
|
|
1255
|
+
connections,
|
|
1256
|
+
datasets,
|
|
1257
|
+
widget: currentWidgetMeta,
|
|
1258
|
+
row
|
|
1259
|
+
});
|
|
1260
|
+
return newPreparedRelations;
|
|
1261
|
+
};
|
|
1262
|
+
const getPairedRelationType = (type) => {
|
|
1263
|
+
switch (type) {
|
|
1264
|
+
case RELATION_TYPES.ignore:
|
|
1265
|
+
case RELATION_TYPES.both:
|
|
1266
|
+
return type;
|
|
1267
|
+
case RELATION_TYPES.input:
|
|
1268
|
+
return RELATION_TYPES.output;
|
|
1269
|
+
case RELATION_TYPES.output:
|
|
1270
|
+
return RELATION_TYPES.input;
|
|
1271
|
+
}
|
|
1272
|
+
return RELATION_TYPES.unknown;
|
|
1273
|
+
};
|
|
1274
|
+
const getWidgetsOptions = ({
|
|
1275
|
+
widgetsIconMap,
|
|
1276
|
+
widgets,
|
|
1277
|
+
showDebugInfo,
|
|
1278
|
+
tabId
|
|
1279
|
+
}) => {
|
|
1280
|
+
const options = [];
|
|
1281
|
+
if (!widgets) {
|
|
1282
|
+
return options;
|
|
1283
|
+
}
|
|
1284
|
+
for (let i = 0; i < widgets?.length; i++) {
|
|
1285
|
+
const widgetItem = widgets[i];
|
|
1286
|
+
switch (widgetItem.type) {
|
|
1287
|
+
case DashTabItemType.GroupControl:
|
|
1288
|
+
{
|
|
1289
|
+
const isVisibleByMainSetting = isGlobalWidgetVisibleByMainSetting(
|
|
1290
|
+
tabId,
|
|
1291
|
+
widgetItem.data.impactType,
|
|
1292
|
+
widgetItem.data.impactTabsIds
|
|
1293
|
+
);
|
|
1294
|
+
widgetItem.data.group.forEach((item) => {
|
|
1295
|
+
const isItemVisible = isGroupItemVisibleOnTab({
|
|
1296
|
+
tabId,
|
|
1297
|
+
item,
|
|
1298
|
+
isVisibleByMainSetting
|
|
1299
|
+
});
|
|
1300
|
+
if (isItemVisible)
|
|
1301
|
+
options.push({
|
|
1302
|
+
value: item.id,
|
|
1303
|
+
content: showDebugInfo ? `(${widgetItem.id} ${item.id}) ${item.title}` : item.title,
|
|
1304
|
+
data: {
|
|
1305
|
+
widgetId: widgetItem.id,
|
|
1306
|
+
isItem: true,
|
|
1307
|
+
icon: widgetsIconMap[widgetItem.id]
|
|
1308
|
+
}
|
|
1309
|
+
});
|
|
1310
|
+
});
|
|
1311
|
+
}
|
|
1312
|
+
break;
|
|
1313
|
+
case DashTabItemType.Widget:
|
|
1314
|
+
widgetItem.data.tabs.forEach((item) => {
|
|
1315
|
+
options.push({
|
|
1316
|
+
value: item.id,
|
|
1317
|
+
content: showDebugInfo ? `(${widgetItem.id} ${item.id}) ${item.title}` : item.title,
|
|
1318
|
+
data: {
|
|
1319
|
+
widgetId: widgetItem.id,
|
|
1320
|
+
icon: widgetsIconMap[item.id]
|
|
1321
|
+
}
|
|
1322
|
+
});
|
|
1323
|
+
});
|
|
1324
|
+
break;
|
|
1325
|
+
case DashTabItemType.Control:
|
|
1326
|
+
{
|
|
1327
|
+
const isVisibleByMainSetting = isGlobalWidgetVisibleByMainSetting(
|
|
1328
|
+
tabId,
|
|
1329
|
+
widgetItem.data.impactType,
|
|
1330
|
+
widgetItem.data.impactTabsIds
|
|
1331
|
+
);
|
|
1332
|
+
if (isVisibleByMainSetting) {
|
|
1333
|
+
options.push({
|
|
1334
|
+
value: widgetItem.id,
|
|
1335
|
+
content: showDebugInfo ? `(${widgetItem.id}) ${widgetItem.data.title}` : widgetItem.data.title,
|
|
1336
|
+
data: { icon: widgetsIconMap[widgetItem.id] }
|
|
1337
|
+
});
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
break;
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
return options;
|
|
1344
|
+
};
|
|
1345
|
+
const iconReverse = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.398%205.916a.292.292%200%200%200%200-.432L11.86%202.945c-.127-.127-.33-.127-.431%200l-.508.508c-.127.102-.127.305%200%20.432l1.295%201.193H1.805a.309.309%200%200%200-.305.305v.61c0%20.177.127.304.305.304h10.41L10.92%207.516c-.127.127-.127.33%200%20.431l.508.508c.101.127.304.127.431%200l2.54-2.539ZM1.576%2010.791l2.54%202.54c.126.126.33.126.43%200l.509-.509c.127-.101.127-.304%200-.431L3.76%2011.17h10.435a.309.309%200%200%200%20.305-.304v-.61a.328.328%200%200%200-.305-.304H3.76L5.055%208.76c.127-.127.127-.33%200-.432l-.508-.508c-.102-.127-.305-.127-.432%200l-2.539%202.54a.292.292%200%200%200%200%20.431Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
1346
|
+
const iconRight = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m9.803%204.57-.508.508a.316.316%200%200%200%20.025.432l2.032%201.955H2.617a.309.309%200%200%200-.304.305v.71c0%20.178.126.305.304.305h8.735l-2.032%201.98a.316.316%200%200%200-.025.432l.508.508a.344.344%200%200%200%20.431%200l3.352-3.351a.344.344%200%200%200%200-.432L10.234%204.57a.344.344%200%200%200-.431%200Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
1347
|
+
const iconNoData = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.75%203.75v12.5h12.5V3.75H3.75Zm-.945-.945c.195-.195.46-.305.737-.305h12.916A1.042%201.042%200%200%201%2017.5%203.542v12.916a1.041%201.041%200%200%201-1.042%201.042H3.542A1.041%201.041%200%200%201%202.5%2016.458V3.542c0-.277.11-.542.305-.737Z'%20fill='currentColor'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.805%2012.669a.667.667%200%201%201-.943.942L10%2010.75l-2.862%202.862a.667.667%200%200%201-.943-.942l2.862-2.862-2.862-2.862a.667.667%200%201%201%20.943-.943L10%208.864l2.862-2.862a.667.667%200%201%201%20.943.943l-2.862%202.862%202.862%202.862Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
1348
|
+
const iconNoLink = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m13.56%202.844-.279-.28c-.178-.152-.431-.152-.584%200l-1.726%201.727A4.85%204.85%200%200%200%208%203.25a4.86%204.86%200%200%200-4.875%204.875c0%201.143.38%202.184%201.016%202.996l-1.727%201.727c-.152.152-.152.406%200%20.584l.305.279a.398.398%200%200%200%20.558%200l1.727-1.727A4.848%204.848%200%200%200%208%2013a4.86%204.86%200%200%200%204.875-4.875%204.85%204.85%200%200%200-1.041-2.97l1.726-1.727c.153-.153.153-.407%200-.584ZM4.345%208.125A3.657%203.657%200%200%201%208%204.469c.787%200%201.498.279%202.107.685l-5.103%205.104a3.79%203.79%200%200%201-.66-2.133Zm7.312%200A3.657%203.657%200%200%201%208%2011.781a3.79%203.79%200%200%201-2.133-.66l5.104-5.103c.406.609.685%201.32.685%202.107Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
1349
|
+
const getTextSeparator = (leftText, rightText) => {
|
|
1350
|
+
return leftText && rightText ? ` — ` : " ";
|
|
1351
|
+
};
|
|
1352
|
+
const getLinkIcon = (type) => {
|
|
1353
|
+
switch (type) {
|
|
1354
|
+
case "ignore":
|
|
1355
|
+
return iconNoLink;
|
|
1356
|
+
case "input":
|
|
1357
|
+
case "output":
|
|
1358
|
+
return iconRight;
|
|
1359
|
+
case "both":
|
|
1360
|
+
return iconReverse;
|
|
1361
|
+
default:
|
|
1362
|
+
return iconNoData;
|
|
1363
|
+
}
|
|
1364
|
+
};
|
|
1365
|
+
const getClampedText = (text) => text?.length > TEXT_LIMIT ? `${text.substr(0, TEXT_LIMIT)}...` : text;
|
|
1366
|
+
const getRelationsText = (type) => {
|
|
1367
|
+
switch (type) {
|
|
1368
|
+
case "ignore":
|
|
1369
|
+
return "label_ignore";
|
|
1370
|
+
case "input":
|
|
1371
|
+
return "label_input";
|
|
1372
|
+
case "output":
|
|
1373
|
+
return "label_output";
|
|
1374
|
+
case "both":
|
|
1375
|
+
return "label_both";
|
|
1376
|
+
case "unknown":
|
|
1377
|
+
return "label_unknown";
|
|
1378
|
+
default:
|
|
1379
|
+
return "";
|
|
1380
|
+
}
|
|
1381
|
+
};
|
|
1382
|
+
const getRelationDetailsKey = (item) => {
|
|
1383
|
+
switch (item) {
|
|
1384
|
+
case RELATION_TYPES.input:
|
|
1385
|
+
case RELATION_TYPES.output:
|
|
1386
|
+
return "value_link-affect";
|
|
1387
|
+
case RELATION_TYPES.both:
|
|
1388
|
+
return "value_link-both";
|
|
1389
|
+
case RELATION_TYPES.ignore:
|
|
1390
|
+
return "value_link-ignore";
|
|
1391
|
+
case RELATION_TYPES.unknown:
|
|
1392
|
+
default:
|
|
1393
|
+
return "value_link-unknown";
|
|
1394
|
+
}
|
|
1395
|
+
};
|
|
1396
|
+
const getRowTitle = (title, label) => {
|
|
1397
|
+
const itemLabel = label && label !== title ? label : "";
|
|
1398
|
+
const separator = getTextSeparator(itemLabel, title);
|
|
1399
|
+
const rowTitle = `${itemLabel}${separator}${title}`.trim();
|
|
1400
|
+
return rowTitle || i18n$9("component.dialog-relations.view", "title-error");
|
|
1401
|
+
};
|
|
1402
|
+
const iconAlias = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.625%205.26a1.75%201.75%200%201%201%203.5%200%201.75%201.75%200%200%201-3.5%200Zm1.75-2.75a2.75%202.75%200%200%200-.6%205.435v4.044a.4.4%200%200%201-.4.4h-4a.6.6%200%200%200%200%201.2h4a1.6%201.6%200%200%200%201.6-1.6V7.945a2.751%202.751%200%200%200-.6-5.434ZM4.225%208.055a2.751%202.751%200%201%201-1.2%200V4.01a1.6%201.6%200%200%201%201.6-1.6h4a.6.6%200%200%201%200%201.2h-4a.4.4%200%200%200-.4.4v4.044Zm1.15%202.684a1.75%201.75%200%201%201-3.5%200%201.75%201.75%200%200%201%203.5%200Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
1403
|
+
const b$7 = block("dialog-relations-content");
|
|
1404
|
+
const i18n$7 = I18n.keyset("component.dialog-relations.view");
|
|
1405
|
+
const ICON_SIZE$1 = 16;
|
|
1406
|
+
const getRelationDetailsText = ({
|
|
1407
|
+
text,
|
|
1408
|
+
linkType,
|
|
1409
|
+
widget,
|
|
1410
|
+
row,
|
|
1411
|
+
withStrong
|
|
1412
|
+
}) => {
|
|
1413
|
+
const widgetNameTextWrapped = withStrong ? /* @__PURE__ */ jsx("strong", { children: widget }) : widget;
|
|
1414
|
+
const rowNameTextWrapped = withStrong ? /* @__PURE__ */ jsx("strong", { children: row }) : row;
|
|
1415
|
+
if (linkType === RELATION_TYPES.output) {
|
|
1416
|
+
if (!rowNameTextWrapped) {
|
|
1417
|
+
return "";
|
|
1418
|
+
}
|
|
1419
|
+
return withStrong ? /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
1420
|
+
widgetNameTextWrapped,
|
|
1421
|
+
" ",
|
|
1422
|
+
text,
|
|
1423
|
+
" ",
|
|
1424
|
+
rowNameTextWrapped
|
|
1425
|
+
] }) : `${widgetNameTextWrapped} ${text} ${rowNameTextWrapped}`;
|
|
1426
|
+
}
|
|
1427
|
+
if (linkType === RELATION_TYPES.input) {
|
|
1428
|
+
if (!widgetNameTextWrapped) {
|
|
1429
|
+
return "";
|
|
1430
|
+
}
|
|
1431
|
+
return withStrong ? /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
1432
|
+
rowNameTextWrapped,
|
|
1433
|
+
" ",
|
|
1434
|
+
text,
|
|
1435
|
+
" ",
|
|
1436
|
+
widgetNameTextWrapped
|
|
1437
|
+
] }) : `${rowNameTextWrapped} ${text} ${widgetNameTextWrapped}`;
|
|
1438
|
+
}
|
|
1439
|
+
return text;
|
|
1440
|
+
};
|
|
1441
|
+
const labelsMap = {
|
|
1442
|
+
field: {
|
|
1443
|
+
singleLabel: i18n$7("label_by-field"),
|
|
1444
|
+
multiLabel: i18n$7("label_by-fields")
|
|
1445
|
+
},
|
|
1446
|
+
alias: {
|
|
1447
|
+
singleLabel: i18n$7("label_by-alias"),
|
|
1448
|
+
multiLabel: i18n$7("label_by-aliases")
|
|
1449
|
+
},
|
|
1450
|
+
param: {
|
|
1451
|
+
singleLabel: i18n$7("label_by-parameter"),
|
|
1452
|
+
multiLabel: i18n$7("label_by-parameters")
|
|
1453
|
+
}
|
|
1454
|
+
};
|
|
1455
|
+
const getFieldText = ({
|
|
1456
|
+
field,
|
|
1457
|
+
type,
|
|
1458
|
+
hasDataset
|
|
1459
|
+
}) => {
|
|
1460
|
+
let fieldText = "";
|
|
1461
|
+
let fieldTextWithStrong = null;
|
|
1462
|
+
if (type === "indirect") {
|
|
1463
|
+
return {
|
|
1464
|
+
fieldText,
|
|
1465
|
+
fieldTextWithStrong
|
|
1466
|
+
};
|
|
1467
|
+
}
|
|
1468
|
+
const byField = type === "field" || type === "param";
|
|
1469
|
+
const { singleLabel, multiLabel } = labelsMap[type];
|
|
1470
|
+
if (Array.isArray(field) && field.length) {
|
|
1471
|
+
const fieldLabel = field.length === 1 ? singleLabel : multiLabel;
|
|
1472
|
+
const fieldName = byField ? Array.isArray(field) && field?.join(", ") || "" : "";
|
|
1473
|
+
fieldText = ` ${fieldLabel} ${fieldName}`;
|
|
1474
|
+
const fieldNameWithStrong = byField ? /* @__PURE__ */ jsx("strong", { children: fieldName }) : null;
|
|
1475
|
+
fieldTextWithStrong = /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
1476
|
+
" ",
|
|
1477
|
+
fieldLabel,
|
|
1478
|
+
" ",
|
|
1479
|
+
fieldNameWithStrong
|
|
1480
|
+
] });
|
|
1481
|
+
} else if (type === "field" && hasDataset && !field.length) {
|
|
1482
|
+
fieldText = ` ${i18n$7("label_by-dataset-fields")}`;
|
|
1483
|
+
fieldTextWithStrong = /* @__PURE__ */ jsx(React__default.Fragment, { children: fieldText });
|
|
1484
|
+
}
|
|
1485
|
+
return {
|
|
1486
|
+
fieldText,
|
|
1487
|
+
fieldTextWithStrong
|
|
1488
|
+
};
|
|
1489
|
+
};
|
|
1490
|
+
const getConnectionByInfo = ({
|
|
1491
|
+
byFields,
|
|
1492
|
+
byUsedParams,
|
|
1493
|
+
byAliases,
|
|
1494
|
+
relationType,
|
|
1495
|
+
indirectAliases,
|
|
1496
|
+
hasDataset
|
|
1497
|
+
}) => {
|
|
1498
|
+
const isUnknownRelation = relationType === RELATION_TYPES.unknown;
|
|
1499
|
+
const availableLink = relationType !== RELATION_TYPES.ignore && relationType !== RELATION_TYPES.unknown;
|
|
1500
|
+
const hasIndirectAliases = Boolean(indirectAliases.length);
|
|
1501
|
+
const hasUsedParams = Array.isArray(byUsedParams) ? Boolean(byUsedParams.length) : Boolean(byUsedParams);
|
|
1502
|
+
const showByUsedParams = hasUsedParams && availableLink;
|
|
1503
|
+
const hasFields = Array.isArray(byFields) ? Boolean(byFields.length) : Boolean(byFields);
|
|
1504
|
+
const showByField = hasFields && availableLink;
|
|
1505
|
+
const hasAliases = Array.isArray(byAliases) ? Boolean(byAliases.length) : Boolean(byAliases);
|
|
1506
|
+
const showByAlias = hasAliases && availableLink;
|
|
1507
|
+
let field;
|
|
1508
|
+
let type;
|
|
1509
|
+
switch (true) {
|
|
1510
|
+
case showByAlias: {
|
|
1511
|
+
field = byAliases;
|
|
1512
|
+
type = "alias";
|
|
1513
|
+
break;
|
|
1514
|
+
}
|
|
1515
|
+
case (showByField || hasDataset && availableLink): {
|
|
1516
|
+
field = byFields;
|
|
1517
|
+
type = "field";
|
|
1518
|
+
break;
|
|
1519
|
+
}
|
|
1520
|
+
case showByUsedParams: {
|
|
1521
|
+
field = byUsedParams;
|
|
1522
|
+
type = "param";
|
|
1523
|
+
break;
|
|
1524
|
+
}
|
|
1525
|
+
case (isUnknownRelation && hasIndirectAliases): {
|
|
1526
|
+
field = indirectAliases;
|
|
1527
|
+
type = "indirect";
|
|
1528
|
+
break;
|
|
1529
|
+
}
|
|
1530
|
+
default: {
|
|
1531
|
+
field = [];
|
|
1532
|
+
type = "field";
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
const { fieldText, fieldTextWithStrong } = getFieldText({
|
|
1536
|
+
field,
|
|
1537
|
+
type,
|
|
1538
|
+
hasDataset
|
|
1539
|
+
});
|
|
1540
|
+
return {
|
|
1541
|
+
showByField: showByField || hasDataset || showByAlias || showByUsedParams,
|
|
1542
|
+
fieldText,
|
|
1543
|
+
fieldTextWithStrong
|
|
1544
|
+
};
|
|
1545
|
+
};
|
|
1546
|
+
const getTooltipInfo = ({
|
|
1547
|
+
widget,
|
|
1548
|
+
row,
|
|
1549
|
+
relationType,
|
|
1550
|
+
byFields,
|
|
1551
|
+
byAliases,
|
|
1552
|
+
byUsedParams,
|
|
1553
|
+
indirectAliases,
|
|
1554
|
+
hasDataset
|
|
1555
|
+
}) => {
|
|
1556
|
+
const { fieldText, fieldTextWithStrong, showByField } = getConnectionByInfo({
|
|
1557
|
+
byFields,
|
|
1558
|
+
byAliases,
|
|
1559
|
+
relationType,
|
|
1560
|
+
byUsedParams,
|
|
1561
|
+
indirectAliases,
|
|
1562
|
+
hasDataset
|
|
1563
|
+
});
|
|
1564
|
+
const widgetLabel = widget?.label && widget?.title !== widget?.label ? `${widget?.label}` : "";
|
|
1565
|
+
const rowLabel = row?.label && row?.title !== row?.label ? `${row?.label}` : "";
|
|
1566
|
+
const tooltipWidgetTitle = getClampedText(widget.title);
|
|
1567
|
+
const tooltipRowTitle = getClampedText(row.title);
|
|
1568
|
+
const tooltipWidgetSeparator = getTextSeparator(widgetLabel, tooltipWidgetTitle);
|
|
1569
|
+
const tooltipRowSeparator = getTextSeparator(rowLabel, tooltipRowTitle);
|
|
1570
|
+
const tooltipContent = /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
1571
|
+
getRelationDetailsText({
|
|
1572
|
+
text: i18n$7(getRelationDetailsKey(relationType)),
|
|
1573
|
+
linkType: relationType,
|
|
1574
|
+
widget: `${widgetLabel}${tooltipWidgetSeparator}${tooltipWidgetTitle}`,
|
|
1575
|
+
row: `${rowLabel}${tooltipRowSeparator}${tooltipRowTitle}`,
|
|
1576
|
+
withStrong: true
|
|
1577
|
+
}),
|
|
1578
|
+
showByField && fieldTextWithStrong
|
|
1579
|
+
] });
|
|
1580
|
+
const widgetTitle = widget.title;
|
|
1581
|
+
const rowTitle = row.title;
|
|
1582
|
+
const widgetSeparator = getTextSeparator(widgetLabel, widgetTitle);
|
|
1583
|
+
const rowSeparator = getTextSeparator(rowLabel, rowTitle);
|
|
1584
|
+
const tooltipTitle = widget.title?.length > TEXT_LIMIT || rowTitle?.length > TEXT_LIMIT ? getRelationDetailsText({
|
|
1585
|
+
text: i18n$7(getRelationDetailsKey(relationType)),
|
|
1586
|
+
linkType: relationType,
|
|
1587
|
+
widget: `${widgetLabel}${widgetSeparator}${widgetTitle}`,
|
|
1588
|
+
row: `${rowLabel}${rowSeparator}${rowTitle}`
|
|
1589
|
+
}) + (showByField ? fieldText : "") : void 0;
|
|
1590
|
+
const aliasDetailTitle = /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
1591
|
+
getRelationDetailsText({
|
|
1592
|
+
text: i18n$7(getRelationDetailsKey(relationType)),
|
|
1593
|
+
linkType: relationType,
|
|
1594
|
+
widget: `${widgetLabel}${widgetSeparator}${widgetTitle}`,
|
|
1595
|
+
row: `${rowLabel}${rowSeparator}${rowTitle}`,
|
|
1596
|
+
withStrong: true
|
|
1597
|
+
}),
|
|
1598
|
+
showByField ? fieldText : ""
|
|
1599
|
+
] });
|
|
1600
|
+
return {
|
|
1601
|
+
tooltipContent,
|
|
1602
|
+
tooltipTitle,
|
|
1603
|
+
aliasDetailTitle
|
|
1604
|
+
};
|
|
1605
|
+
};
|
|
1606
|
+
const getDropdownItems = ({
|
|
1607
|
+
items,
|
|
1608
|
+
currentWidget,
|
|
1609
|
+
currentRow,
|
|
1610
|
+
onChange
|
|
1611
|
+
}) => items.map((item) => ({
|
|
1612
|
+
action: () => {
|
|
1613
|
+
onChange({ type: item, widgetId: currentRow.widgetId, itemId: currentRow.itemId });
|
|
1614
|
+
},
|
|
1615
|
+
iconStart: /* @__PURE__ */ jsx(Icon, { data: getLinkIcon(item), size: ICON_SIZE$1, className: b$7("icon-link", item) }),
|
|
1616
|
+
text: /* @__PURE__ */ jsxs("div", { className: b$7("list-link"), "data-qa": DashRelationTypes[item], children: [
|
|
1617
|
+
/* @__PURE__ */ jsx("span", { children: i18n$7(`label_${item}`) }),
|
|
1618
|
+
/* @__PURE__ */ jsx("div", { className: b$7("info-text"), children: getRelationDetailsText({
|
|
1619
|
+
text: i18n$7(getRelationDetailsKey(item)),
|
|
1620
|
+
linkType: item,
|
|
1621
|
+
widget: getClampedText(currentWidget),
|
|
1622
|
+
row: getClampedText(currentRow.title || currentRow.label || "")
|
|
1623
|
+
}) })
|
|
1624
|
+
] }),
|
|
1625
|
+
className: b$7("list-row")
|
|
1626
|
+
}));
|
|
1627
|
+
const Row = ({
|
|
1628
|
+
data,
|
|
1629
|
+
widgetMeta,
|
|
1630
|
+
onChange,
|
|
1631
|
+
onAliasClick,
|
|
1632
|
+
showDebugInfo,
|
|
1633
|
+
widgetIcon
|
|
1634
|
+
}) => {
|
|
1635
|
+
const relations = data?.relations;
|
|
1636
|
+
const {
|
|
1637
|
+
type: relationType,
|
|
1638
|
+
available: availableRelations,
|
|
1639
|
+
indirectAliases,
|
|
1640
|
+
byFields,
|
|
1641
|
+
byAliases,
|
|
1642
|
+
byUsedParams,
|
|
1643
|
+
hasDataset,
|
|
1644
|
+
forceAddAlias
|
|
1645
|
+
} = relations;
|
|
1646
|
+
const { tooltipContent, tooltipTitle, aliasDetailTitle } = getTooltipInfo({
|
|
1647
|
+
widget: widgetMeta,
|
|
1648
|
+
row: data,
|
|
1649
|
+
relationType,
|
|
1650
|
+
byFields,
|
|
1651
|
+
byAliases,
|
|
1652
|
+
byUsedParams,
|
|
1653
|
+
indirectAliases,
|
|
1654
|
+
hasDataset
|
|
1655
|
+
});
|
|
1656
|
+
const icon = getRelationsIcon(data);
|
|
1657
|
+
const handleAliasCLick = React__default.useCallback(() => {
|
|
1658
|
+
onAliasClick?.({
|
|
1659
|
+
currentRow: data,
|
|
1660
|
+
showDebugInfo,
|
|
1661
|
+
relationText: aliasDetailTitle || "",
|
|
1662
|
+
relationType,
|
|
1663
|
+
widgetIcon,
|
|
1664
|
+
rowIcon: icon
|
|
1665
|
+
});
|
|
1666
|
+
}, [data, showDebugInfo, onAliasClick, relationType, aliasDetailTitle, widgetIcon, icon]);
|
|
1667
|
+
const handleChange = React__default.useCallback(
|
|
1668
|
+
(changedData) => {
|
|
1669
|
+
onChange({
|
|
1670
|
+
...changedData,
|
|
1671
|
+
currentRow: data,
|
|
1672
|
+
showDebugInfo,
|
|
1673
|
+
relationText: aliasDetailTitle || "",
|
|
1674
|
+
relationType,
|
|
1675
|
+
widgetIcon,
|
|
1676
|
+
rowIcon: icon,
|
|
1677
|
+
forceAddAlias
|
|
1678
|
+
});
|
|
1679
|
+
},
|
|
1680
|
+
[
|
|
1681
|
+
aliasDetailTitle,
|
|
1682
|
+
data,
|
|
1683
|
+
icon,
|
|
1684
|
+
onChange,
|
|
1685
|
+
relationType,
|
|
1686
|
+
showDebugInfo,
|
|
1687
|
+
widgetIcon,
|
|
1688
|
+
forceAddAlias
|
|
1689
|
+
]
|
|
1690
|
+
);
|
|
1691
|
+
if (!data || !widgetMeta) {
|
|
1692
|
+
return null;
|
|
1693
|
+
}
|
|
1694
|
+
const relationTypeText = i18n$7(getRelationsText(relationType));
|
|
1695
|
+
const items = getDropdownItems({
|
|
1696
|
+
items: availableRelations,
|
|
1697
|
+
currentWidget: widgetMeta.title || widgetMeta.label || "",
|
|
1698
|
+
currentRow: data,
|
|
1699
|
+
onChange: handleChange
|
|
1700
|
+
});
|
|
1701
|
+
const showAliasIcon = Boolean(data.loaded);
|
|
1702
|
+
const id = data.itemId ? `${data.widgetId} ${data.itemId}` : data.widgetId;
|
|
1703
|
+
const debugInfo = showDebugInfo ? /* @__PURE__ */ jsxs("span", { className: b$7("info"), children: [
|
|
1704
|
+
" (",
|
|
1705
|
+
id,
|
|
1706
|
+
")"
|
|
1707
|
+
] }) : null;
|
|
1708
|
+
const rowTitle = getRowTitle(data.title, data.label);
|
|
1709
|
+
const title = (showDebugInfo ? `(${id}) ` : "") + rowTitle;
|
|
1710
|
+
return /* @__PURE__ */ jsxs("div", { className: b$7("row"), "data-qa": DashCommonQa.RelationsListRow, children: [
|
|
1711
|
+
/* @__PURE__ */ jsx("div", { className: b$7("left"), children: /* @__PURE__ */ jsxs("div", { className: b$7("left-inner"), children: [
|
|
1712
|
+
/* @__PURE__ */ jsx("div", { className: b$7("icon"), children: icon }),
|
|
1713
|
+
/* @__PURE__ */ jsxs("span", { className: b$7("text"), title, children: [
|
|
1714
|
+
debugInfo,
|
|
1715
|
+
rowTitle
|
|
1716
|
+
] }),
|
|
1717
|
+
showAliasIcon && /* @__PURE__ */ jsx(
|
|
1718
|
+
Button,
|
|
1719
|
+
{
|
|
1720
|
+
view: "outlined",
|
|
1721
|
+
size: "s",
|
|
1722
|
+
title: i18n$7("label_add-alias"),
|
|
1723
|
+
className: b$7("button-alias"),
|
|
1724
|
+
onClick: handleAliasCLick,
|
|
1725
|
+
qa: DashCommonQa.AliasShowBtn,
|
|
1726
|
+
children: /* @__PURE__ */ jsx(Icon, { data: iconAlias, className: b$7("icon-alias") })
|
|
1727
|
+
}
|
|
1728
|
+
)
|
|
1729
|
+
] }) }),
|
|
1730
|
+
/* @__PURE__ */ jsx("div", { className: b$7("right"), children: relationType && /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
1731
|
+
/* @__PURE__ */ jsx(
|
|
1732
|
+
DropdownMenu,
|
|
1733
|
+
{
|
|
1734
|
+
size: "l",
|
|
1735
|
+
items,
|
|
1736
|
+
renderSwitcher: ({ onClick, onKeyDown }) => /* @__PURE__ */ jsxs(
|
|
1737
|
+
Button,
|
|
1738
|
+
{
|
|
1739
|
+
view: "flat",
|
|
1740
|
+
className: b$7("button-link"),
|
|
1741
|
+
qa: DashCommonQa.RelationTypeButton,
|
|
1742
|
+
onClick,
|
|
1743
|
+
onKeyDown,
|
|
1744
|
+
children: [
|
|
1745
|
+
/* @__PURE__ */ jsx("span", { className: b$7("button-link-icon-wrap"), children: /* @__PURE__ */ jsx(
|
|
1746
|
+
Icon,
|
|
1747
|
+
{
|
|
1748
|
+
data: getLinkIcon(relationType),
|
|
1749
|
+
size: ICON_SIZE$1,
|
|
1750
|
+
className: b$7("icon-link", relationType)
|
|
1751
|
+
}
|
|
1752
|
+
) }),
|
|
1753
|
+
relationTypeText
|
|
1754
|
+
]
|
|
1755
|
+
}
|
|
1756
|
+
)
|
|
1757
|
+
}
|
|
1758
|
+
),
|
|
1759
|
+
/* @__PURE__ */ jsx(
|
|
1760
|
+
Popover,
|
|
1761
|
+
{
|
|
1762
|
+
content: /* @__PURE__ */ jsx("div", { className: b$7("popover-content"), title: tooltipTitle, children: tooltipContent }),
|
|
1763
|
+
placement: "bottom",
|
|
1764
|
+
hasArrow: false,
|
|
1765
|
+
children: /* @__PURE__ */ jsx(
|
|
1766
|
+
Icon,
|
|
1767
|
+
{
|
|
1768
|
+
qa: DashCommonQa.RelationsRowPopover,
|
|
1769
|
+
data: iconInfo,
|
|
1770
|
+
size: ICON_SIZE$1,
|
|
1771
|
+
className: b$7("icon-info")
|
|
1772
|
+
}
|
|
1773
|
+
)
|
|
1774
|
+
}
|
|
1775
|
+
)
|
|
1776
|
+
] }) })
|
|
1777
|
+
] });
|
|
1778
|
+
};
|
|
1779
|
+
const b$6 = block("dialog-relations-content");
|
|
1780
|
+
const i18n$6 = I18n.keyset("component.dialog-relations.view");
|
|
1781
|
+
const Content = ({
|
|
1782
|
+
relations,
|
|
1783
|
+
widgetMeta,
|
|
1784
|
+
isLoading,
|
|
1785
|
+
onChange,
|
|
1786
|
+
onAliasClick,
|
|
1787
|
+
showDebugInfo,
|
|
1788
|
+
widgetIcon
|
|
1789
|
+
}) => {
|
|
1790
|
+
if (isLoading) {
|
|
1791
|
+
return /* @__PURE__ */ jsx("div", { className: b$6({ "with-loader": true }), children: /* @__PURE__ */ jsx("div", { className: b$6("loader-wrap"), children: /* @__PURE__ */ jsx(Loader, { className: b$6("loader") }) }) });
|
|
1792
|
+
}
|
|
1793
|
+
if (!relations.length) {
|
|
1794
|
+
return /* @__PURE__ */ jsx("div", { className: b$6("empty-text"), "data-qa": DashCommonQa.RelationsDialogEmptyText, children: i18n$6("label_no-connections") });
|
|
1795
|
+
}
|
|
1796
|
+
if (!widgetMeta) {
|
|
1797
|
+
return /* @__PURE__ */ jsx("div", { className: b$6("empty-text"), children: i18n$6("label_no-widget-info") });
|
|
1798
|
+
}
|
|
1799
|
+
const content = relations.map((item, index) => /* @__PURE__ */ jsx(
|
|
1800
|
+
Row,
|
|
1801
|
+
{
|
|
1802
|
+
data: item,
|
|
1803
|
+
widgetMeta,
|
|
1804
|
+
onChange,
|
|
1805
|
+
onAliasClick,
|
|
1806
|
+
showDebugInfo,
|
|
1807
|
+
widgetIcon
|
|
1808
|
+
},
|
|
1809
|
+
`relations-row-${item.widgetId}-${index}`
|
|
1810
|
+
));
|
|
1811
|
+
return /* @__PURE__ */ jsx("div", { className: b$6(), children: Boolean(relations.length) && /* @__PURE__ */ jsxs("div", { className: b$6("items"), children: [
|
|
1812
|
+
/* @__PURE__ */ jsxs("div", { className: b$6("row", "top"), children: [
|
|
1813
|
+
/* @__PURE__ */ jsx("div", { className: b$6("left", "top"), children: i18n$6("label_widget") }),
|
|
1814
|
+
/* @__PURE__ */ jsx("div", { className: b$6("right", "top"), children: i18n$6("label_relation-type") })
|
|
1815
|
+
] }),
|
|
1816
|
+
content
|
|
1817
|
+
] }) });
|
|
1818
|
+
};
|
|
1819
|
+
const AliasesContext = React__default.createContext({});
|
|
1820
|
+
const useRelations = ({
|
|
1821
|
+
dashKitRef,
|
|
1822
|
+
widget,
|
|
1823
|
+
dialogAliases,
|
|
1824
|
+
workbookId,
|
|
1825
|
+
itemId,
|
|
1826
|
+
widgetsCurrentTab
|
|
1827
|
+
}) => {
|
|
1828
|
+
const [isInited, setIsInited] = React__default.useState(false);
|
|
1829
|
+
const [isLoading, setIsLoading] = React__default.useState(false);
|
|
1830
|
+
const [relations, setRelations] = React__default.useState([]);
|
|
1831
|
+
const [currentWidgetMeta, setCurrentWidgetMeta] = React__default.useState(
|
|
1832
|
+
null
|
|
1833
|
+
);
|
|
1834
|
+
const [invalidAliases, setInvalidAliases] = React__default.useState([]);
|
|
1835
|
+
const [dashWidgetsMeta, setDashWidgetsMeta] = React__default.useState(null);
|
|
1836
|
+
const [datasets, setDatasets] = React__default.useState(null);
|
|
1837
|
+
const [prevItemId, setPrevItemId] = React__default.useState(itemId);
|
|
1838
|
+
const [prevWidgetId, setPrevWidgetId] = React__default.useState(widget?.id ?? null);
|
|
1839
|
+
const getCurrentWidgetInfo = React__default.useCallback(
|
|
1840
|
+
(dashWidgetsMetaData, datasetsList) => {
|
|
1841
|
+
if (!dashKitRef?.current || !widget) {
|
|
1842
|
+
return;
|
|
1843
|
+
}
|
|
1844
|
+
const { connections } = dashKitRef.current.props.config;
|
|
1845
|
+
const widgetCurrentTabId = widgetsCurrentTab[widget.id];
|
|
1846
|
+
const currentMeta = getCurrentWidgetMeta({
|
|
1847
|
+
metaData: dashWidgetsMetaData,
|
|
1848
|
+
dashkitData: dashKitRef.current,
|
|
1849
|
+
widget,
|
|
1850
|
+
itemId,
|
|
1851
|
+
tabId: widgetCurrentTabId
|
|
1852
|
+
});
|
|
1853
|
+
const currentRelations = getRelationsData({
|
|
1854
|
+
metaData: dashWidgetsMetaData,
|
|
1855
|
+
widgetMeta: currentMeta,
|
|
1856
|
+
aliases: dialogAliases,
|
|
1857
|
+
connections,
|
|
1858
|
+
datasets: datasetsList
|
|
1859
|
+
});
|
|
1860
|
+
setCurrentWidgetMeta(currentMeta);
|
|
1861
|
+
setRelations(currentRelations);
|
|
1862
|
+
},
|
|
1863
|
+
[dashKitRef, dialogAliases, itemId, widget, widgetsCurrentTab]
|
|
1864
|
+
);
|
|
1865
|
+
if (isInited && (itemId !== prevItemId || widget?.id !== prevWidgetId) && dashWidgetsMeta && datasets) {
|
|
1866
|
+
getCurrentWidgetInfo(dashWidgetsMeta, datasets);
|
|
1867
|
+
setPrevWidgetId(widget?.id ?? null);
|
|
1868
|
+
setPrevItemId(itemId);
|
|
1869
|
+
}
|
|
1870
|
+
React__default.useEffect(() => {
|
|
1871
|
+
const getMetaData = async () => {
|
|
1872
|
+
if (!dashKitRef?.current || !widget) {
|
|
1873
|
+
return;
|
|
1874
|
+
}
|
|
1875
|
+
setIsLoading(true);
|
|
1876
|
+
const data = await Promise.all(dashKitRef.current.getItemsMeta());
|
|
1877
|
+
const { metaData, datasetsList, entriesList, controlsList } = getPreparedMetaData(
|
|
1878
|
+
data,
|
|
1879
|
+
dashKitRef.current
|
|
1880
|
+
);
|
|
1881
|
+
let entriesDatasetsFields = [];
|
|
1882
|
+
if (!isEmpty(entriesList) && (!isEmpty(datasetsList) || !isEmpty(controlsList))) {
|
|
1883
|
+
entriesDatasetsFields = await getSdk().sdk.mix.getEntriesDatasetsFields({
|
|
1884
|
+
entriesIds: entriesList,
|
|
1885
|
+
datasetsIds: Object.keys(datasetsList),
|
|
1886
|
+
workbookId
|
|
1887
|
+
});
|
|
1888
|
+
}
|
|
1889
|
+
const dashWidgetsMetaData = entriesDatasetsFields.length ? getMetaDataWithDatasetInfo({
|
|
1890
|
+
metaData,
|
|
1891
|
+
entriesDatasetsFields,
|
|
1892
|
+
datasetsList
|
|
1893
|
+
}) : metaData;
|
|
1894
|
+
dashWidgetsMetaData.sort((prevItem, item) => {
|
|
1895
|
+
const prevItemTitle = getRowTitle(prevItem.title, prevItem.label);
|
|
1896
|
+
const itemTitle = getRowTitle(item.title, item.label);
|
|
1897
|
+
return prevItemTitle.localeCompare(itemTitle);
|
|
1898
|
+
});
|
|
1899
|
+
const fetchedDatasets = entriesDatasetsFields?.filter((item) => item.type === "dataset") || [];
|
|
1900
|
+
if (fetchedDatasets?.length) {
|
|
1901
|
+
fetchedDatasets.forEach((datasetItem) => {
|
|
1902
|
+
if (datasetItem.datasetId && datasetItem.datasetId in datasetsList) {
|
|
1903
|
+
const datasetListItem = datasetsList[datasetItem.datasetId];
|
|
1904
|
+
if (!datasetListItem.name && datasetItem.datasetName) {
|
|
1905
|
+
datasetListItem.name = datasetItem.datasetName;
|
|
1906
|
+
}
|
|
1907
|
+
if (!datasetListItem.fields && datasetItem.datasetFields) {
|
|
1908
|
+
datasetListItem.fields = datasetItem.datasetFields;
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
});
|
|
1912
|
+
}
|
|
1913
|
+
const allUsedParams = dashWidgetsMetaData.reduce((result, item) => {
|
|
1914
|
+
(item.usedParams || []).forEach(result.add, result);
|
|
1915
|
+
Object.keys(item.widgetParams || {}).forEach(result.add, result);
|
|
1916
|
+
return result;
|
|
1917
|
+
}, /* @__PURE__ */ new Set());
|
|
1918
|
+
const invalidAliasesData = [];
|
|
1919
|
+
if (DEFAULT_ALIAS_NAMESPACE in dialogAliases) {
|
|
1920
|
+
dialogAliases[DEFAULT_ALIAS_NAMESPACE].forEach((aliasRow) => {
|
|
1921
|
+
aliasRow.forEach((item) => {
|
|
1922
|
+
if (!allUsedParams.has(item)) {
|
|
1923
|
+
invalidAliasesData.push(item);
|
|
1924
|
+
}
|
|
1925
|
+
});
|
|
1926
|
+
});
|
|
1927
|
+
}
|
|
1928
|
+
getCurrentWidgetInfo(dashWidgetsMetaData, datasetsList);
|
|
1929
|
+
setIsInited(true);
|
|
1930
|
+
setIsLoading(false);
|
|
1931
|
+
setDatasets(datasetsList);
|
|
1932
|
+
setDashWidgetsMeta(dashWidgetsMetaData);
|
|
1933
|
+
setInvalidAliases(invalidAliasesData);
|
|
1934
|
+
};
|
|
1935
|
+
if (!isInited) {
|
|
1936
|
+
if (!dashKitRef?.current) {
|
|
1937
|
+
return;
|
|
1938
|
+
}
|
|
1939
|
+
getMetaData();
|
|
1940
|
+
}
|
|
1941
|
+
}, [
|
|
1942
|
+
dashKitRef,
|
|
1943
|
+
isInited,
|
|
1944
|
+
widget,
|
|
1945
|
+
dialogAliases,
|
|
1946
|
+
workbookId,
|
|
1947
|
+
itemId,
|
|
1948
|
+
datasets,
|
|
1949
|
+
dashWidgetsMeta,
|
|
1950
|
+
prevItemId,
|
|
1951
|
+
getCurrentWidgetInfo
|
|
1952
|
+
]);
|
|
1953
|
+
return { isLoading, relations, currentWidgetMeta, datasets, dashWidgetsMeta, invalidAliases };
|
|
1954
|
+
};
|
|
1955
|
+
const b$5 = block("dialog-aliases-list");
|
|
1956
|
+
const i18n$5 = I18n.keyset("component.dialog-relations.view");
|
|
1957
|
+
const getFieldNameByGuid = (datasets, aliasItem) => {
|
|
1958
|
+
let dataset = null;
|
|
1959
|
+
for (const [key, value] of Object.entries(datasets || {})) {
|
|
1960
|
+
const field = value?.fields.find((fieldItem) => fieldItem.guid === aliasItem) || null;
|
|
1961
|
+
if (field) {
|
|
1962
|
+
dataset = {
|
|
1963
|
+
datasetId: key,
|
|
1964
|
+
field,
|
|
1965
|
+
datasetName: value.name || ""
|
|
1966
|
+
};
|
|
1967
|
+
return dataset;
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
return {
|
|
1971
|
+
datasetId: null,
|
|
1972
|
+
datasetName: null,
|
|
1973
|
+
field: null
|
|
1974
|
+
};
|
|
1975
|
+
};
|
|
1976
|
+
const AliasesListItem = ({
|
|
1977
|
+
row,
|
|
1978
|
+
widgetId,
|
|
1979
|
+
onDetailClick,
|
|
1980
|
+
onRemoveClick,
|
|
1981
|
+
onSelectParam,
|
|
1982
|
+
indexRow
|
|
1983
|
+
}) => {
|
|
1984
|
+
const { datasets, selectedAliasRowIndex, selectedParam, invalidAliases } = React__default.useContext(AliasesContext);
|
|
1985
|
+
const handleRemoveAliasRow = React__default.useCallback(() => {
|
|
1986
|
+
onRemoveClick({
|
|
1987
|
+
row
|
|
1988
|
+
});
|
|
1989
|
+
}, [onRemoveClick, row]);
|
|
1990
|
+
const isRowActive = selectedAliasRowIndex === indexRow;
|
|
1991
|
+
const handleRemoveAliasItemFromRow = React__default.useCallback(
|
|
1992
|
+
(index) => {
|
|
1993
|
+
const rowWithPartlyRemoved = [];
|
|
1994
|
+
row.forEach((item, itemRowIndex) => {
|
|
1995
|
+
if (index !== itemRowIndex) {
|
|
1996
|
+
rowWithPartlyRemoved.push(item);
|
|
1997
|
+
}
|
|
1998
|
+
});
|
|
1999
|
+
onRemoveClick({
|
|
2000
|
+
row,
|
|
2001
|
+
rowWithPartlyRemoved
|
|
2002
|
+
});
|
|
2003
|
+
},
|
|
2004
|
+
[onRemoveClick, row]
|
|
2005
|
+
);
|
|
2006
|
+
return /* @__PURE__ */ jsxs("div", { className: b$5("row", { active: isRowActive }), children: [
|
|
2007
|
+
/* @__PURE__ */ jsx("div", { className: b$5("left"), children: row.map((aliasItem, index, array) => {
|
|
2008
|
+
const { datasetId, field, datasetName } = getFieldNameByGuid(datasets, aliasItem);
|
|
2009
|
+
const datasetText = datasetId ? ` (${i18n$5("label_dataset")}: ${datasetName ? datasetName : datasetId})` : "";
|
|
2010
|
+
const fieldName = field?.title || aliasItem;
|
|
2011
|
+
const isAliasItemSelected = selectedParam === aliasItem && isRowActive;
|
|
2012
|
+
const isInvalidItem = invalidAliases?.includes(aliasItem);
|
|
2013
|
+
let buttonView = "outlined";
|
|
2014
|
+
if (isInvalidItem) {
|
|
2015
|
+
buttonView = "outlined-danger";
|
|
2016
|
+
} else if (isAliasItemSelected) {
|
|
2017
|
+
buttonView = "outlined-info";
|
|
2018
|
+
}
|
|
2019
|
+
const showRemoveItemIcon = isAliasItemSelected && array.length > 2;
|
|
2020
|
+
return /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
2021
|
+
/* @__PURE__ */ jsxs(
|
|
2022
|
+
Button,
|
|
2023
|
+
{
|
|
2024
|
+
className: b$5("alias-button"),
|
|
2025
|
+
view: buttonView,
|
|
2026
|
+
size: "m",
|
|
2027
|
+
onClick: () => onSelectParam({
|
|
2028
|
+
index,
|
|
2029
|
+
indexRow,
|
|
2030
|
+
aliasRow: row,
|
|
2031
|
+
fieldName: `${fieldName}${datasetText}`,
|
|
2032
|
+
field
|
|
2033
|
+
}),
|
|
2034
|
+
qa: DashCommonQa.AliasItem,
|
|
2035
|
+
children: [
|
|
2036
|
+
/* @__PURE__ */ jsxs(
|
|
2037
|
+
"span",
|
|
2038
|
+
{
|
|
2039
|
+
className: b$5("button-text", {
|
|
2040
|
+
"with-remove": showRemoveItemIcon
|
|
2041
|
+
}),
|
|
2042
|
+
children: [
|
|
2043
|
+
fieldName,
|
|
2044
|
+
datasetId && /* @__PURE__ */ jsx("span", { className: b$5("info"), children: datasetText })
|
|
2045
|
+
]
|
|
2046
|
+
}
|
|
2047
|
+
),
|
|
2048
|
+
showRemoveItemIcon && /* @__PURE__ */ jsx(
|
|
2049
|
+
"span",
|
|
2050
|
+
{
|
|
2051
|
+
onClick: () => handleRemoveAliasItemFromRow(index),
|
|
2052
|
+
className: b$5("remove-item"),
|
|
2053
|
+
children: /* @__PURE__ */ jsx(Icon, { data: Xmark })
|
|
2054
|
+
}
|
|
2055
|
+
)
|
|
2056
|
+
]
|
|
2057
|
+
}
|
|
2058
|
+
),
|
|
2059
|
+
index !== array.length - 1 && /* @__PURE__ */ jsx("span", { className: b$5("separator"), children: "=" })
|
|
2060
|
+
] }, `alias-row-${widgetId}-${aliasItem}`);
|
|
2061
|
+
}) }),
|
|
2062
|
+
/* @__PURE__ */ jsxs("div", { className: b$5("right"), children: [
|
|
2063
|
+
/* @__PURE__ */ jsx(
|
|
2064
|
+
Button,
|
|
2065
|
+
{
|
|
2066
|
+
className: b$5("alias-icon-button", { active: isRowActive }),
|
|
2067
|
+
view: "flat",
|
|
2068
|
+
onClick: () => onDetailClick({
|
|
2069
|
+
indexRow,
|
|
2070
|
+
aliasRow: row
|
|
2071
|
+
}),
|
|
2072
|
+
title: i18n$5("button_show-related-widgets"),
|
|
2073
|
+
children: /* @__PURE__ */ jsx(Icon, { data: Magnifier })
|
|
2074
|
+
}
|
|
2075
|
+
),
|
|
2076
|
+
/* @__PURE__ */ jsx(
|
|
2077
|
+
Button,
|
|
2078
|
+
{
|
|
2079
|
+
className: b$5("alias-icon-button", { active: isRowActive }, "remove"),
|
|
2080
|
+
view: "flat",
|
|
2081
|
+
onClick: handleRemoveAliasRow,
|
|
2082
|
+
title: i18n$5("button_delete-alias"),
|
|
2083
|
+
qa: DashCommonQa.AliasRemoveBtn,
|
|
2084
|
+
children: /* @__PURE__ */ jsx(Icon, { data: TrashBin })
|
|
2085
|
+
}
|
|
2086
|
+
)
|
|
2087
|
+
] })
|
|
2088
|
+
] });
|
|
2089
|
+
};
|
|
2090
|
+
const AliasesList = (props) => {
|
|
2091
|
+
const { onAliasRowClick, showDetailedData } = props;
|
|
2092
|
+
const [selectedAliasParamIndex, setSelectedAliasParamIndex] = React__default.useState(
|
|
2093
|
+
null
|
|
2094
|
+
);
|
|
2095
|
+
const { selectedAliasRowIndex } = React__default.useContext(AliasesContext);
|
|
2096
|
+
const handleSelectParam = React__default.useCallback(
|
|
2097
|
+
(args) => {
|
|
2098
|
+
const isClickedOnSelected = showDetailedData && args.index === selectedAliasParamIndex && args.indexRow === selectedAliasRowIndex;
|
|
2099
|
+
const paramIndex = isClickedOnSelected ? null : args.index;
|
|
2100
|
+
setSelectedAliasParamIndex(paramIndex);
|
|
2101
|
+
onAliasRowClick({ ...args, isClickedOnSelected });
|
|
2102
|
+
},
|
|
2103
|
+
[showDetailedData, selectedAliasParamIndex, selectedAliasRowIndex, onAliasRowClick]
|
|
2104
|
+
);
|
|
2105
|
+
React__default.useEffect(() => {
|
|
2106
|
+
setSelectedAliasParamIndex(selectedAliasRowIndex);
|
|
2107
|
+
}, [selectedAliasRowIndex]);
|
|
2108
|
+
return /* @__PURE__ */ jsx(React__default.Fragment, { children: props.aliases.map((row, indexRow) => /* @__PURE__ */ jsx(
|
|
2109
|
+
AliasesListItem,
|
|
2110
|
+
{
|
|
2111
|
+
...props,
|
|
2112
|
+
row,
|
|
2113
|
+
indexRow,
|
|
2114
|
+
onSelectParam: handleSelectParam
|
|
2115
|
+
},
|
|
2116
|
+
`alias-${props.widgetId}-${indexRow}-${row.join("-")}`
|
|
2117
|
+
)) });
|
|
2118
|
+
};
|
|
2119
|
+
const b$4 = block("dialog-aliases-list");
|
|
2120
|
+
const i18n$4 = I18n.keyset("component.dialog-relations.view");
|
|
2121
|
+
const AliasesInvalidListItem = (props) => {
|
|
2122
|
+
const { row, invalidAliases, datasets } = props;
|
|
2123
|
+
return /* @__PURE__ */ jsx("div", { className: b$4("row"), children: /* @__PURE__ */ jsx("div", { className: b$4("left"), children: row.map((aliasItem, index, array) => {
|
|
2124
|
+
const { datasetId, field, datasetName } = getFieldNameByGuid(datasets, aliasItem);
|
|
2125
|
+
const datasetText = datasetId ? ` (${i18n$4("label_dataset")}: ${datasetName ? datasetName : datasetId})` : "";
|
|
2126
|
+
const fieldName = field?.title || aliasItem;
|
|
2127
|
+
const isInvalidItem = invalidAliases?.includes(aliasItem);
|
|
2128
|
+
const buttonView = isInvalidItem ? "outlined-danger" : "outlined";
|
|
2129
|
+
return /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
2130
|
+
/* @__PURE__ */ jsxs(
|
|
2131
|
+
Button,
|
|
2132
|
+
{
|
|
2133
|
+
className: b$4("alias-button", "not-active"),
|
|
2134
|
+
view: buttonView,
|
|
2135
|
+
size: "m",
|
|
2136
|
+
children: [
|
|
2137
|
+
fieldName,
|
|
2138
|
+
datasetId && /* @__PURE__ */ jsx("span", { className: b$4("info"), children: datasetText })
|
|
2139
|
+
]
|
|
2140
|
+
}
|
|
2141
|
+
),
|
|
2142
|
+
index !== array.length - 1 && /* @__PURE__ */ jsx("span", { className: b$4("separator"), children: "=" })
|
|
2143
|
+
] }, `alias-row-invalid-${aliasItem}`);
|
|
2144
|
+
}) }) });
|
|
2145
|
+
};
|
|
2146
|
+
const AliasesInvalidList = (props) => {
|
|
2147
|
+
const { aliases, invalidAliases, onClose, onClear } = props;
|
|
2148
|
+
const aliasesWithInvalidList = aliases.filter((itemsRow) => {
|
|
2149
|
+
return Boolean(itemsRow.filter((item) => invalidAliases?.includes(item)).length);
|
|
2150
|
+
});
|
|
2151
|
+
const showControls = Boolean(onClose) && Boolean(onClear);
|
|
2152
|
+
const handleOnClear = React__default.useCallback(() => {
|
|
2153
|
+
if (onClose && onClear) {
|
|
2154
|
+
onClear();
|
|
2155
|
+
onClose();
|
|
2156
|
+
}
|
|
2157
|
+
}, [onClear, onClose]);
|
|
2158
|
+
return /* @__PURE__ */ jsxs("div", { className: b$4("invalid-list"), children: [
|
|
2159
|
+
/* @__PURE__ */ jsx("div", { className: b$4("invalid-list-items"), children: aliasesWithInvalidList.map((row, indexRow) => /* @__PURE__ */ jsx(
|
|
2160
|
+
AliasesInvalidListItem,
|
|
2161
|
+
{
|
|
2162
|
+
...props,
|
|
2163
|
+
row,
|
|
2164
|
+
invalidAliases
|
|
2165
|
+
},
|
|
2166
|
+
`alias-invalid-${indexRow}-${row.join("-")}`
|
|
2167
|
+
)) }),
|
|
2168
|
+
showControls ? /* @__PURE__ */ jsxs("div", { className: b$4("controls"), children: [
|
|
2169
|
+
/* @__PURE__ */ jsx(
|
|
2170
|
+
Button,
|
|
2171
|
+
{
|
|
2172
|
+
className: b$4("alias-clear-button"),
|
|
2173
|
+
view: "flat",
|
|
2174
|
+
onClick: onClose,
|
|
2175
|
+
title: i18n$4("button_cancel"),
|
|
2176
|
+
children: i18n$4("button_cancel")
|
|
2177
|
+
}
|
|
2178
|
+
),
|
|
2179
|
+
/* @__PURE__ */ jsx(
|
|
2180
|
+
Button,
|
|
2181
|
+
{
|
|
2182
|
+
className: b$4("alias-clear-button"),
|
|
2183
|
+
view: "outlined",
|
|
2184
|
+
onClick: handleOnClear,
|
|
2185
|
+
title: i18n$4("button_clear-alias"),
|
|
2186
|
+
children: i18n$4("button_clear-alias")
|
|
2187
|
+
}
|
|
2188
|
+
)
|
|
2189
|
+
] }) : null
|
|
2190
|
+
] });
|
|
2191
|
+
};
|
|
2192
|
+
const compareSearchValueGetter = (searchValue) => {
|
|
2193
|
+
const trimmedSearchValue = searchValue.trim();
|
|
2194
|
+
if (trimmedSearchValue) {
|
|
2195
|
+
return (title) => title.toLocaleLowerCase().includes(searchValue.toLowerCase());
|
|
2196
|
+
}
|
|
2197
|
+
return () => true;
|
|
2198
|
+
};
|
|
2199
|
+
const useFilteredRelations = ({
|
|
2200
|
+
relations,
|
|
2201
|
+
searchValue,
|
|
2202
|
+
typeValues,
|
|
2203
|
+
changedWidgets,
|
|
2204
|
+
currentWidgetId
|
|
2205
|
+
}) => {
|
|
2206
|
+
const [filteredRelations, setFilteredRelations] = React__default.useState([]);
|
|
2207
|
+
const showedRelations = React__default.useMemo(
|
|
2208
|
+
() => changedWidgets ? getChangedRelations(relations, changedWidgets, currentWidgetId) : relations,
|
|
2209
|
+
[relations, changedWidgets, currentWidgetId]
|
|
2210
|
+
);
|
|
2211
|
+
React__default.useEffect(() => {
|
|
2212
|
+
if (!showedRelations?.length) {
|
|
2213
|
+
setFilteredRelations([]);
|
|
2214
|
+
return;
|
|
2215
|
+
}
|
|
2216
|
+
const mappedFilters = getMappedFilters(typeValues);
|
|
2217
|
+
const compareTitle = compareSearchValueGetter(searchValue);
|
|
2218
|
+
const filteredItems = showedRelations.filter((item) => {
|
|
2219
|
+
const hasSearch = compareTitle(getRowTitle(item.title, item.label));
|
|
2220
|
+
const hasFilteredType = mappedFilters[item.relations.type];
|
|
2221
|
+
return hasSearch && hasFilteredType;
|
|
2222
|
+
});
|
|
2223
|
+
setFilteredRelations(filteredItems);
|
|
2224
|
+
}, [showedRelations, typeValues, searchValue]);
|
|
2225
|
+
return { filteredRelations };
|
|
2226
|
+
};
|
|
2227
|
+
const b$3 = block("dialog-relations");
|
|
2228
|
+
const i18n$3 = I18n.keyset("component.dialog-relations.view");
|
|
2229
|
+
const ICON_SIZE = 16;
|
|
2230
|
+
const DIALOG_RELATIONS = /* @__PURE__ */ Symbol("dash/DIALOG_RELATIONS");
|
|
2231
|
+
const renderOptions = (option) => /* @__PURE__ */ jsx(SelectOptionWithIcon, { option });
|
|
2232
|
+
const EmptyState = () => {
|
|
2233
|
+
return /* @__PURE__ */ jsx(
|
|
2234
|
+
PlaceholderIllustration,
|
|
2235
|
+
{
|
|
2236
|
+
className: b$3("empty-state"),
|
|
2237
|
+
size: "m",
|
|
2238
|
+
direction: "column",
|
|
2239
|
+
name: "emptyDirectory",
|
|
2240
|
+
title: i18n$3("title_empty-selected-widgets")
|
|
2241
|
+
}
|
|
2242
|
+
);
|
|
2243
|
+
};
|
|
2244
|
+
const DialogRelations = (props) => {
|
|
2245
|
+
const [currentWidget, setCurrentWidget] = React__default.useState(
|
|
2246
|
+
props.widget ?? null
|
|
2247
|
+
);
|
|
2248
|
+
const {
|
|
2249
|
+
dashKitRef,
|
|
2250
|
+
dashTabAliases,
|
|
2251
|
+
workbookId,
|
|
2252
|
+
widgetsCurrentTab,
|
|
2253
|
+
allWidgets: widgets,
|
|
2254
|
+
onClose,
|
|
2255
|
+
onApply
|
|
2256
|
+
} = props;
|
|
2257
|
+
const dispatch = useDispatch();
|
|
2258
|
+
const showDebugInfo = useSelector(selectDebugMode);
|
|
2259
|
+
const tabId = useSelector(selectCurrentTabId);
|
|
2260
|
+
const aliasWarnButtonRef = React__default.useRef(null);
|
|
2261
|
+
const [aliasWarnPopupOpen, setAliasWarnPopupOpen] = React__default.useState(false);
|
|
2262
|
+
const [searchValue, setSearchValue] = React__default.useState("");
|
|
2263
|
+
const [typeValues, setTypeValues] = React__default.useState([]);
|
|
2264
|
+
const [preparedRelations, setPreparedRelations] = React__default.useState([]);
|
|
2265
|
+
const [aliases, setAliases] = React__default.useState(dashTabAliases || {});
|
|
2266
|
+
const [itemId, setItemId] = React__default.useState(
|
|
2267
|
+
currentWidget?.type === DashTabItemType.GroupControl ? currentWidget.data.group[0].id : null
|
|
2268
|
+
);
|
|
2269
|
+
const { isLoading, currentWidgetMeta, relations, datasets, dashWidgetsMeta, invalidAliases } = useRelations({
|
|
2270
|
+
dashKitRef,
|
|
2271
|
+
widget: currentWidget,
|
|
2272
|
+
dialogAliases: aliases,
|
|
2273
|
+
workbookId,
|
|
2274
|
+
itemId,
|
|
2275
|
+
widgetsCurrentTab
|
|
2276
|
+
});
|
|
2277
|
+
const widgetsIconMap = React__default.useMemo(() => {
|
|
2278
|
+
const iconsMap = {};
|
|
2279
|
+
dashWidgetsMeta?.forEach((widgetMeta) => {
|
|
2280
|
+
iconsMap[widgetMeta.widgetId] = getRelationsIcon(widgetMeta, b$3("relations-icon"));
|
|
2281
|
+
});
|
|
2282
|
+
return iconsMap;
|
|
2283
|
+
}, [dashWidgetsMeta]);
|
|
2284
|
+
const widgetOptions = React__default.useMemo(() => {
|
|
2285
|
+
return getWidgetsOptions({ tabId, widgetsIconMap, widgets, showDebugInfo });
|
|
2286
|
+
}, [tabId, widgetsIconMap, widgets, showDebugInfo]);
|
|
2287
|
+
const currentWidgetId = itemId || currentWidgetMeta?.widgetId || "";
|
|
2288
|
+
const [changedWidgets, setChangedWidgets] = React__default.useState({});
|
|
2289
|
+
const [shownInvalidAliases, setShownInvalidAliases] = React__default.useState(null);
|
|
2290
|
+
const { filteredRelations } = useFilteredRelations({
|
|
2291
|
+
relations: preparedRelations,
|
|
2292
|
+
searchValue,
|
|
2293
|
+
typeValues,
|
|
2294
|
+
changedWidgets,
|
|
2295
|
+
currentWidgetId
|
|
2296
|
+
});
|
|
2297
|
+
const handleItemChange = (value) => {
|
|
2298
|
+
const newWidgetData = widgetOptions.find((item) => item.value === value[0])?.data;
|
|
2299
|
+
const currentId = newWidgetData?.widgetId || value[0];
|
|
2300
|
+
const newCurrentWidget = widgets?.find((item) => item.id === currentId);
|
|
2301
|
+
setCurrentWidget(newCurrentWidget);
|
|
2302
|
+
setItemId(newWidgetData?.isItem ? value[0] : null);
|
|
2303
|
+
setPreparedRelations([]);
|
|
2304
|
+
if (!changedWidgets[currentId]) {
|
|
2305
|
+
const updatedChangedWidgets = { ...changedWidgets };
|
|
2306
|
+
updatedChangedWidgets[currentId] = {};
|
|
2307
|
+
setChangedWidgets(updatedChangedWidgets);
|
|
2308
|
+
}
|
|
2309
|
+
};
|
|
2310
|
+
const handleFilterInputChange = React__default.useCallback((data) => {
|
|
2311
|
+
setSearchValue(data);
|
|
2312
|
+
}, []);
|
|
2313
|
+
const handleFilterTypesChange = React__default.useCallback((data) => {
|
|
2314
|
+
setTypeValues(data);
|
|
2315
|
+
}, []);
|
|
2316
|
+
const handleUpdateRelations = React__default.useCallback(
|
|
2317
|
+
(changedAliases) => {
|
|
2318
|
+
if (isEmpty(preparedRelations)) {
|
|
2319
|
+
return;
|
|
2320
|
+
}
|
|
2321
|
+
const relationsWithChangedAliases = preparedRelations.map((widgetItem) => {
|
|
2322
|
+
const byAliases = changedAliases.filter((aliasArr) => {
|
|
2323
|
+
if (!widgetItem.usedParams?.length) {
|
|
2324
|
+
return false;
|
|
2325
|
+
}
|
|
2326
|
+
return intersection(widgetItem.usedParams, aliasArr);
|
|
2327
|
+
});
|
|
2328
|
+
return {
|
|
2329
|
+
...widgetItem,
|
|
2330
|
+
relations: {
|
|
2331
|
+
...widgetItem.relations,
|
|
2332
|
+
byAliases
|
|
2333
|
+
}
|
|
2334
|
+
};
|
|
2335
|
+
});
|
|
2336
|
+
if (DEFAULT_ALIAS_NAMESPACE in aliases) {
|
|
2337
|
+
const newAliases = Object.assign({
|
|
2338
|
+
...aliases,
|
|
2339
|
+
[DEFAULT_ALIAS_NAMESPACE]: changedAliases
|
|
2340
|
+
});
|
|
2341
|
+
setAliases(newAliases);
|
|
2342
|
+
}
|
|
2343
|
+
setPreparedRelations(relationsWithChangedAliases);
|
|
2344
|
+
},
|
|
2345
|
+
[aliases, preparedRelations]
|
|
2346
|
+
);
|
|
2347
|
+
const handleUpdateAliases = React__default.useCallback(
|
|
2348
|
+
(newNamespacedAliases) => {
|
|
2349
|
+
const newAliases = {
|
|
2350
|
+
...aliases,
|
|
2351
|
+
[DEFAULT_ALIAS_NAMESPACE]: newNamespacedAliases
|
|
2352
|
+
};
|
|
2353
|
+
setAliases(newAliases);
|
|
2354
|
+
handleUpdateRelations(newNamespacedAliases);
|
|
2355
|
+
const newPreparedRelations = getUpdatedPreparedRelations({
|
|
2356
|
+
aliases: newAliases,
|
|
2357
|
+
currentWidgetMeta,
|
|
2358
|
+
changedWidgetsData: changedWidgets,
|
|
2359
|
+
dashkitData: dashKitRef.current || null,
|
|
2360
|
+
dashWidgetsMeta,
|
|
2361
|
+
preparedRelations,
|
|
2362
|
+
datasets,
|
|
2363
|
+
currentWidgetId,
|
|
2364
|
+
type: "aliases"
|
|
2365
|
+
});
|
|
2366
|
+
if (!newPreparedRelations) {
|
|
2367
|
+
return;
|
|
2368
|
+
}
|
|
2369
|
+
const newChangedWidgets = { ...changedWidgets };
|
|
2370
|
+
newPreparedRelations.forEach((item) => {
|
|
2371
|
+
if (changedWidgets && changedWidgets[currentWidgetId] && item.widgetId in changedWidgets[currentWidgetId] && item.relations.type !== changedWidgets[currentWidgetId][item.widgetId]) {
|
|
2372
|
+
delete newChangedWidgets[item.widgetId];
|
|
2373
|
+
}
|
|
2374
|
+
});
|
|
2375
|
+
setChangedWidgets(newChangedWidgets);
|
|
2376
|
+
setPreparedRelations(newPreparedRelations);
|
|
2377
|
+
},
|
|
2378
|
+
[
|
|
2379
|
+
aliases,
|
|
2380
|
+
handleUpdateRelations,
|
|
2381
|
+
currentWidgetMeta,
|
|
2382
|
+
changedWidgets,
|
|
2383
|
+
dashKitRef,
|
|
2384
|
+
dashWidgetsMeta,
|
|
2385
|
+
preparedRelations,
|
|
2386
|
+
datasets,
|
|
2387
|
+
currentWidgetId
|
|
2388
|
+
]
|
|
2389
|
+
);
|
|
2390
|
+
const handleAliasesClosed = React__default.useCallback((args) => {
|
|
2391
|
+
if (args?.reset || !args?.changedWidgetsData) {
|
|
2392
|
+
return;
|
|
2393
|
+
}
|
|
2394
|
+
setChangedWidgets(args.changedWidgetsData);
|
|
2395
|
+
}, []);
|
|
2396
|
+
const handleAliasesClick = React__default.useCallback(
|
|
2397
|
+
(data) => {
|
|
2398
|
+
dispatch(
|
|
2399
|
+
openDialogAliases({
|
|
2400
|
+
relations: filteredRelations,
|
|
2401
|
+
currentWidget: currentWidgetMeta,
|
|
2402
|
+
datasets,
|
|
2403
|
+
updateRelations: handleUpdateRelations,
|
|
2404
|
+
updateAliases: handleUpdateAliases,
|
|
2405
|
+
onCloseCallback: handleAliasesClosed,
|
|
2406
|
+
forceAddAlias: false,
|
|
2407
|
+
invalidAliases: shownInvalidAliases,
|
|
2408
|
+
...data,
|
|
2409
|
+
dialogAliases: aliases
|
|
2410
|
+
})
|
|
2411
|
+
);
|
|
2412
|
+
},
|
|
2413
|
+
[
|
|
2414
|
+
dispatch,
|
|
2415
|
+
handleUpdateAliases,
|
|
2416
|
+
handleUpdateRelations,
|
|
2417
|
+
datasets,
|
|
2418
|
+
filteredRelations,
|
|
2419
|
+
currentWidgetMeta,
|
|
2420
|
+
handleAliasesClosed,
|
|
2421
|
+
shownInvalidAliases,
|
|
2422
|
+
aliases
|
|
2423
|
+
]
|
|
2424
|
+
);
|
|
2425
|
+
const handleRelationTypeChange = React__default.useCallback(
|
|
2426
|
+
(changedData) => {
|
|
2427
|
+
const { type, widgetId, forceAddAlias, itemId: rowItemId, ...rest } = changedData;
|
|
2428
|
+
const newChanged = { ...changedWidgets };
|
|
2429
|
+
if (!newChanged[currentWidgetId]) {
|
|
2430
|
+
newChanged[currentWidgetId] = {};
|
|
2431
|
+
}
|
|
2432
|
+
let currentRelations;
|
|
2433
|
+
if (rowItemId) {
|
|
2434
|
+
currentRelations = preparedRelations.find(
|
|
2435
|
+
(item) => item.itemId === rowItemId
|
|
2436
|
+
)?.relations;
|
|
2437
|
+
} else {
|
|
2438
|
+
currentRelations = preparedRelations.find(
|
|
2439
|
+
(item) => item.widgetId === widgetId
|
|
2440
|
+
)?.relations;
|
|
2441
|
+
}
|
|
2442
|
+
const relationSubjectId = rowItemId || widgetId;
|
|
2443
|
+
const currentRelationType = currentRelations?.type;
|
|
2444
|
+
if (currentRelationType === type) {
|
|
2445
|
+
if (newChanged[currentWidgetId][relationSubjectId] || newChanged[relationSubjectId]?.[currentWidgetId]) {
|
|
2446
|
+
setChangedWidgets(newChanged);
|
|
2447
|
+
delete newChanged[currentWidgetId][relationSubjectId];
|
|
2448
|
+
delete newChanged[relationSubjectId][currentWidgetId];
|
|
2449
|
+
}
|
|
2450
|
+
} else {
|
|
2451
|
+
newChanged[currentWidgetId][relationSubjectId] = type;
|
|
2452
|
+
const pairedType = getPairedRelationType(type);
|
|
2453
|
+
if (pairedType !== RELATION_TYPES.unknown) {
|
|
2454
|
+
newChanged[relationSubjectId] = newChanged[relationSubjectId] ? { ...newChanged[relationSubjectId], [currentWidgetId]: pairedType } : { [currentWidgetId]: pairedType };
|
|
2455
|
+
}
|
|
2456
|
+
}
|
|
2457
|
+
const changeFromUnknown = currentRelationType === RELATION_TYPES.unknown;
|
|
2458
|
+
const showAddAliasForm = type !== RELATION_TYPES.ignore && (changeFromUnknown && forceAddAlias || !changeFromUnknown && currentRelationType === RELATION_TYPES.ignore && type !== RELATION_TYPES.unknown || forceAddAlias);
|
|
2459
|
+
if (showAddAliasForm) {
|
|
2460
|
+
if (!isEmpty(newChanged[currentWidgetId][relationSubjectId])) {
|
|
2461
|
+
const hasRelationBy = hasConnectionsBy(currentRelations);
|
|
2462
|
+
if (hasRelationBy && !forceAddAlias) {
|
|
2463
|
+
setChangedWidgets(newChanged);
|
|
2464
|
+
} else {
|
|
2465
|
+
handleAliasesClick({
|
|
2466
|
+
...rest,
|
|
2467
|
+
forceAddAlias: true,
|
|
2468
|
+
changedWidgetsData: newChanged,
|
|
2469
|
+
changedWidgetId: widgetId,
|
|
2470
|
+
changedItemId: rowItemId
|
|
2471
|
+
});
|
|
2472
|
+
}
|
|
2473
|
+
}
|
|
2474
|
+
} else {
|
|
2475
|
+
setChangedWidgets(newChanged);
|
|
2476
|
+
}
|
|
2477
|
+
},
|
|
2478
|
+
[changedWidgets, currentWidgetId, preparedRelations, handleAliasesClick]
|
|
2479
|
+
);
|
|
2480
|
+
const handleInvalidAliasesClear = React__default.useCallback(() => {
|
|
2481
|
+
const filteredAliases = aliases[DEFAULT_ALIAS_NAMESPACE].map((aliasRow) => {
|
|
2482
|
+
return aliasRow.filter((item) => !shownInvalidAliases?.includes(item));
|
|
2483
|
+
}).filter((item) => item.length > 1);
|
|
2484
|
+
handleUpdateAliases(filteredAliases);
|
|
2485
|
+
setShownInvalidAliases([]);
|
|
2486
|
+
}, [aliases, handleUpdateAliases, shownInvalidAliases]);
|
|
2487
|
+
const handleDisconnectAll = React__default.useCallback(
|
|
2488
|
+
(disconnectType) => {
|
|
2489
|
+
const newChangedWidgets = { ...changedWidgets };
|
|
2490
|
+
if (!newChangedWidgets[currentWidgetId]) {
|
|
2491
|
+
newChangedWidgets[currentWidgetId] = {};
|
|
2492
|
+
}
|
|
2493
|
+
const filteredIds = filteredRelations.reduce((res, item) => {
|
|
2494
|
+
const widgetId = item.itemId || item.widgetId;
|
|
2495
|
+
if (!widgetId) {
|
|
2496
|
+
return res;
|
|
2497
|
+
}
|
|
2498
|
+
const isControl2 = item.type === DashTabItemType.Control || item.type === DashTabItemType.GroupControl;
|
|
2499
|
+
if (disconnectType === "all" || disconnectType === "selectors" && isControl2 || disconnectType === "charts" && !isControl2) {
|
|
2500
|
+
res[widgetId] = widgetId;
|
|
2501
|
+
if (!newChangedWidgets[widgetId]) {
|
|
2502
|
+
newChangedWidgets[widgetId] = {};
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
return res;
|
|
2506
|
+
}, {});
|
|
2507
|
+
preparedRelations.forEach((item) => {
|
|
2508
|
+
const widgetId = item.itemId || item.widgetId;
|
|
2509
|
+
if (filteredIds[widgetId]) {
|
|
2510
|
+
newChangedWidgets[currentWidgetId][widgetId] = RELATION_TYPES.ignore;
|
|
2511
|
+
newChangedWidgets[widgetId][currentWidgetId] = RELATION_TYPES.ignore;
|
|
2512
|
+
}
|
|
2513
|
+
});
|
|
2514
|
+
setChangedWidgets(newChangedWidgets);
|
|
2515
|
+
},
|
|
2516
|
+
[changedWidgets, currentWidgetId, filteredRelations, preparedRelations]
|
|
2517
|
+
);
|
|
2518
|
+
const handleSaveRelations = React__default.useCallback(() => {
|
|
2519
|
+
if (!dashKitRef.current) {
|
|
2520
|
+
return;
|
|
2521
|
+
}
|
|
2522
|
+
if (isLoading) {
|
|
2523
|
+
onClose();
|
|
2524
|
+
}
|
|
2525
|
+
const newData = {};
|
|
2526
|
+
if (changedWidgets) {
|
|
2527
|
+
const connections = getRelationsForSave({
|
|
2528
|
+
changed: changedWidgets,
|
|
2529
|
+
dashkitData: dashKitRef.current || null
|
|
2530
|
+
});
|
|
2531
|
+
if (connections) {
|
|
2532
|
+
newData.connections = connections;
|
|
2533
|
+
}
|
|
2534
|
+
}
|
|
2535
|
+
if (!isEqual(aliases, dashTabAliases || {})) {
|
|
2536
|
+
newData.aliases = isEmpty(aliases?.[DEFAULT_ALIAS_NAMESPACE]) ? {} : aliases;
|
|
2537
|
+
}
|
|
2538
|
+
if (isEmpty(newData)) {
|
|
2539
|
+
onClose();
|
|
2540
|
+
} else {
|
|
2541
|
+
onApply(newData);
|
|
2542
|
+
}
|
|
2543
|
+
}, [dashKitRef, isLoading, changedWidgets, aliases, dashTabAliases, onClose, onApply]);
|
|
2544
|
+
const handleAliasesWarnClick = () => setAliasWarnPopupOpen(!aliasWarnPopupOpen);
|
|
2545
|
+
const isDisconnectDisabled = Boolean(
|
|
2546
|
+
isLoading || typeValues.length === 1 && typeValues[0] === "none" || !filteredRelations.length
|
|
2547
|
+
);
|
|
2548
|
+
React__default.useEffect(() => {
|
|
2549
|
+
if (!preparedRelations?.length && relations.length) {
|
|
2550
|
+
setPreparedRelations(relations);
|
|
2551
|
+
}
|
|
2552
|
+
}, [relations, preparedRelations]);
|
|
2553
|
+
React__default.useEffect(() => {
|
|
2554
|
+
if (!shownInvalidAliases && invalidAliases?.length) {
|
|
2555
|
+
setShownInvalidAliases(invalidAliases);
|
|
2556
|
+
}
|
|
2557
|
+
}, [shownInvalidAliases, invalidAliases]);
|
|
2558
|
+
return /* @__PURE__ */ jsxs(
|
|
2559
|
+
Dialog,
|
|
2560
|
+
{
|
|
2561
|
+
onClose,
|
|
2562
|
+
open: true,
|
|
2563
|
+
className: b$3(),
|
|
2564
|
+
onEnterKeyDown: handleSaveRelations,
|
|
2565
|
+
disableOutsideClick: true,
|
|
2566
|
+
disableEscapeKeyDown: true,
|
|
2567
|
+
children: [
|
|
2568
|
+
/* @__PURE__ */ jsx(Dialog.Header, { caption: i18n$3("title_links") }),
|
|
2569
|
+
/* @__PURE__ */ jsxs(Dialog.Body, { className: b$3("container"), children: [
|
|
2570
|
+
/* @__PURE__ */ jsx(
|
|
2571
|
+
Select,
|
|
2572
|
+
{
|
|
2573
|
+
qa: DashCommonQa.RelationsWidgetSelect,
|
|
2574
|
+
placeholder: i18n$3("label_empty-state"),
|
|
2575
|
+
className: b$3("item-select", {
|
|
2576
|
+
"empty-state": !currentWidget
|
|
2577
|
+
}),
|
|
2578
|
+
popupClassName: b$3("item-select-popup"),
|
|
2579
|
+
value: currentWidgetId ? [currentWidgetId] : void 0,
|
|
2580
|
+
options: widgetOptions,
|
|
2581
|
+
onUpdate: handleItemChange,
|
|
2582
|
+
filterable: true,
|
|
2583
|
+
disabled: isLoading,
|
|
2584
|
+
renderOption: renderOptions,
|
|
2585
|
+
renderSelectedOption: renderOptions,
|
|
2586
|
+
popupWidth: "fit"
|
|
2587
|
+
}
|
|
2588
|
+
),
|
|
2589
|
+
currentWidget ? /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
2590
|
+
/* @__PURE__ */ jsx(
|
|
2591
|
+
Filters,
|
|
2592
|
+
{
|
|
2593
|
+
onChangeInput: handleFilterInputChange,
|
|
2594
|
+
onChangeButtons: handleFilterTypesChange
|
|
2595
|
+
}
|
|
2596
|
+
),
|
|
2597
|
+
/* @__PURE__ */ jsx(
|
|
2598
|
+
Content,
|
|
2599
|
+
{
|
|
2600
|
+
relations: filteredRelations,
|
|
2601
|
+
widgetMeta: currentWidgetMeta,
|
|
2602
|
+
isLoading,
|
|
2603
|
+
onChange: handleRelationTypeChange,
|
|
2604
|
+
onAliasClick: handleAliasesClick,
|
|
2605
|
+
showDebugInfo,
|
|
2606
|
+
widgetIcon: widgetsIconMap[currentWidgetMeta?.widgetId || ""]
|
|
2607
|
+
}
|
|
2608
|
+
)
|
|
2609
|
+
] }) : /* @__PURE__ */ jsx(EmptyState, {})
|
|
2610
|
+
] }),
|
|
2611
|
+
/* @__PURE__ */ jsx(
|
|
2612
|
+
Dialog.Footer,
|
|
2613
|
+
{
|
|
2614
|
+
preset: "default",
|
|
2615
|
+
showError: false,
|
|
2616
|
+
textButtonCancel: i18n$3("button_cancel"),
|
|
2617
|
+
textButtonApply: i18n$3("button_apply"),
|
|
2618
|
+
propsButtonCancel: { view: "outlined", qa: DashCommonQa.RelationsCancelBtn },
|
|
2619
|
+
onClickButtonApply: handleSaveRelations,
|
|
2620
|
+
onClickButtonCancel: onClose,
|
|
2621
|
+
propsButtonApply: {
|
|
2622
|
+
qa: DashCommonQa.RelationsApplyBtn
|
|
2623
|
+
},
|
|
2624
|
+
children: currentWidget && /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
2625
|
+
/* @__PURE__ */ jsx("span", { className: b$3("disconnect-text"), children: i18n$3("button_disconnect") }),
|
|
2626
|
+
/* @__PURE__ */ jsx(
|
|
2627
|
+
DropdownMenu,
|
|
2628
|
+
{
|
|
2629
|
+
disabled: isDisconnectDisabled,
|
|
2630
|
+
size: "l",
|
|
2631
|
+
items: [
|
|
2632
|
+
{
|
|
2633
|
+
action: () => handleDisconnectAll("all"),
|
|
2634
|
+
text: i18n$3("label_all"),
|
|
2635
|
+
qa: DashCommonQa.RelationsDisconnectAllWidgets
|
|
2636
|
+
},
|
|
2637
|
+
{
|
|
2638
|
+
action: () => handleDisconnectAll("charts"),
|
|
2639
|
+
text: i18n$3("label_charts"),
|
|
2640
|
+
qa: DashCommonQa.RelationsDisconnectAllCharts
|
|
2641
|
+
},
|
|
2642
|
+
{
|
|
2643
|
+
action: () => handleDisconnectAll("selectors"),
|
|
2644
|
+
text: i18n$3("label_selectors"),
|
|
2645
|
+
qa: DashCommonQa.RelationsDisconnectAllSelectors
|
|
2646
|
+
}
|
|
2647
|
+
],
|
|
2648
|
+
renderSwitcher: ({ onClick, onKeyDown }) => /* @__PURE__ */ jsx(
|
|
2649
|
+
Button,
|
|
2650
|
+
{
|
|
2651
|
+
className: b$3("switcher-button"),
|
|
2652
|
+
view: "normal",
|
|
2653
|
+
qa: DashCommonQa.RelationsDisconnectAllSwitcher,
|
|
2654
|
+
disabled: isDisconnectDisabled,
|
|
2655
|
+
onClick,
|
|
2656
|
+
onKeyDown,
|
|
2657
|
+
children: /* @__PURE__ */ jsx(
|
|
2658
|
+
Icon,
|
|
2659
|
+
{
|
|
2660
|
+
className: b$3("switcher-button-icon"),
|
|
2661
|
+
data: ChevronDown,
|
|
2662
|
+
size: ICON_SIZE
|
|
2663
|
+
}
|
|
2664
|
+
)
|
|
2665
|
+
}
|
|
2666
|
+
)
|
|
2667
|
+
}
|
|
2668
|
+
),
|
|
2669
|
+
Boolean(shownInvalidAliases?.length) && /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
2670
|
+
/* @__PURE__ */ jsx(
|
|
2671
|
+
Button,
|
|
2672
|
+
{
|
|
2673
|
+
ref: aliasWarnButtonRef,
|
|
2674
|
+
className: b$3("error-button"),
|
|
2675
|
+
onClick: handleAliasesWarnClick,
|
|
2676
|
+
view: "flat",
|
|
2677
|
+
children: /* @__PURE__ */ jsx(
|
|
2678
|
+
Icon,
|
|
2679
|
+
{
|
|
2680
|
+
data: TriangleExclamationFill,
|
|
2681
|
+
className: b$3("error-icon")
|
|
2682
|
+
}
|
|
2683
|
+
)
|
|
2684
|
+
}
|
|
2685
|
+
),
|
|
2686
|
+
/* @__PURE__ */ jsx(
|
|
2687
|
+
Popup,
|
|
2688
|
+
{
|
|
2689
|
+
hasArrow: true,
|
|
2690
|
+
anchorElement: aliasWarnButtonRef.current,
|
|
2691
|
+
open: aliasWarnPopupOpen,
|
|
2692
|
+
placement: "right",
|
|
2693
|
+
className: b$3("invalid-list-popup"),
|
|
2694
|
+
children: /* @__PURE__ */ jsxs("div", { className: b$3("warn-content"), children: [
|
|
2695
|
+
/* @__PURE__ */ jsx("div", { className: b$3("warn-title"), children: i18n$3("label_invalid-alias-title") }),
|
|
2696
|
+
/* @__PURE__ */ jsx("div", { className: b$3("warn-text"), children: i18n$3("label_invalid-alias-text") }),
|
|
2697
|
+
/* @__PURE__ */ jsx(
|
|
2698
|
+
AliasesInvalidList,
|
|
2699
|
+
{
|
|
2700
|
+
aliases: aliases?.[DEFAULT_ALIAS_NAMESPACE],
|
|
2701
|
+
invalidAliases: shownInvalidAliases,
|
|
2702
|
+
datasets,
|
|
2703
|
+
onClose: handleAliasesWarnClick,
|
|
2704
|
+
onClear: handleInvalidAliasesClear
|
|
2705
|
+
}
|
|
2706
|
+
)
|
|
2707
|
+
] })
|
|
2708
|
+
}
|
|
2709
|
+
)
|
|
2710
|
+
] })
|
|
2711
|
+
] })
|
|
2712
|
+
}
|
|
2713
|
+
)
|
|
2714
|
+
]
|
|
2715
|
+
}
|
|
2716
|
+
);
|
|
2717
|
+
};
|
|
2718
|
+
DialogManager.registerDialog(DIALOG_RELATIONS, DialogRelations);
|
|
2719
|
+
const isAddingAliasExists = (currentAliasRow, newAlias) => {
|
|
2720
|
+
if (currentAliasRow.length < newAlias.length) {
|
|
2721
|
+
return false;
|
|
2722
|
+
}
|
|
2723
|
+
const currentAliasDict = {};
|
|
2724
|
+
currentAliasRow.forEach((item) => {
|
|
2725
|
+
currentAliasDict[item] = item;
|
|
2726
|
+
});
|
|
2727
|
+
let counter = 0;
|
|
2728
|
+
newAlias.forEach((item) => {
|
|
2729
|
+
if (item in currentAliasDict) {
|
|
2730
|
+
counter++;
|
|
2731
|
+
}
|
|
2732
|
+
});
|
|
2733
|
+
return counter === newAlias.length;
|
|
2734
|
+
};
|
|
2735
|
+
const hasAliasWithSameDataset = (addedAliases, datasets) => {
|
|
2736
|
+
if (!datasets) {
|
|
2737
|
+
return false;
|
|
2738
|
+
}
|
|
2739
|
+
const datasetsFields = {};
|
|
2740
|
+
for (const [datasetId, datasetData] of Object.entries(datasets)) {
|
|
2741
|
+
datasetsFields[datasetId] = datasetData.fields.reduce((previousValue, currentValue) => {
|
|
2742
|
+
return { ...previousValue, [currentValue.guid]: currentValue.guid };
|
|
2743
|
+
}, {});
|
|
2744
|
+
}
|
|
2745
|
+
const datasetEntries = Object.entries(datasetsFields);
|
|
2746
|
+
for (let i = 0; i < addedAliases.length; i++) {
|
|
2747
|
+
if (addedAliases[i].length < 3) {
|
|
2748
|
+
continue;
|
|
2749
|
+
}
|
|
2750
|
+
const fieldsByDataset = {};
|
|
2751
|
+
let hasErrors = false;
|
|
2752
|
+
for (let j = 0; j < addedAliases[i].length; j++) {
|
|
2753
|
+
const field = addedAliases[i][j];
|
|
2754
|
+
for (const [id, datasetFields] of datasetEntries) {
|
|
2755
|
+
if (field in datasetFields) {
|
|
2756
|
+
if (fieldsByDataset[id]) {
|
|
2757
|
+
fieldsByDataset[id].push(field);
|
|
2758
|
+
hasErrors = true;
|
|
2759
|
+
} else {
|
|
2760
|
+
fieldsByDataset[id] = [field];
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
if (hasErrors) {
|
|
2766
|
+
return {
|
|
2767
|
+
alias: addedAliases[i],
|
|
2768
|
+
errors: Object.values(fieldsByDataset).reduce((memo, fields) => {
|
|
2769
|
+
if (fields.length > 1) {
|
|
2770
|
+
memo.push(...fields);
|
|
2771
|
+
}
|
|
2772
|
+
return memo;
|
|
2773
|
+
}, [])
|
|
2774
|
+
};
|
|
2775
|
+
}
|
|
2776
|
+
}
|
|
2777
|
+
return false;
|
|
2778
|
+
};
|
|
2779
|
+
const getParamsSelectOptions = (item) => ({ content: item, value: item });
|
|
2780
|
+
const i18n$2 = I18n.keyset("component.dialog-relations.view");
|
|
2781
|
+
const b$2 = block("dialog-aliases-add");
|
|
2782
|
+
const getList = (data) => {
|
|
2783
|
+
const dataset = data.datasets?.length ? data.datasets[0] : null;
|
|
2784
|
+
let res = [];
|
|
2785
|
+
if (dataset?.fieldsList && !data.isQL) {
|
|
2786
|
+
res = dataset?.fieldsList.filter((item) => isControl(data) ? item.guid in (data.defaultParams || {}) : true).map((item) => ({
|
|
2787
|
+
content: item.title,
|
|
2788
|
+
value: item.guid
|
|
2789
|
+
}));
|
|
2790
|
+
} else {
|
|
2791
|
+
if (isEditorChart(data)) {
|
|
2792
|
+
return !data.params || isEmpty(data.params) ? [] : Object.keys(data.params).map(getParamsSelectOptions);
|
|
2793
|
+
} else if (isExternalControl(data)) {
|
|
2794
|
+
return !data.widgetParams || isEmpty(data.widgetParams) ? [] : Object.keys(data.widgetParams).map(getParamsSelectOptions);
|
|
2795
|
+
}
|
|
2796
|
+
res = data.usedParams?.map(getParamsSelectOptions) || [];
|
|
2797
|
+
}
|
|
2798
|
+
return res;
|
|
2799
|
+
};
|
|
2800
|
+
const getFieldName = (data, selectedItem) => {
|
|
2801
|
+
const datasetFields = data.datasets?.length && !data.isQL ? data.datasets[0]?.fieldsList : null;
|
|
2802
|
+
if (!datasetFields) {
|
|
2803
|
+
return /* @__PURE__ */ jsx("div", { children: selectedItem?.value || "" });
|
|
2804
|
+
}
|
|
2805
|
+
return /* @__PURE__ */ jsx("div", { children: datasetFields.find((item) => item.guid === selectedItem?.value)?.title || selectedItem?.value || "" });
|
|
2806
|
+
};
|
|
2807
|
+
const getDatasetName = (data, datasets) => {
|
|
2808
|
+
const dataset = data.datasets?.length ? data.datasets[0] : null;
|
|
2809
|
+
if (!dataset || !datasets) {
|
|
2810
|
+
return "";
|
|
2811
|
+
}
|
|
2812
|
+
const datasetId = data.datasetId || dataset.id;
|
|
2813
|
+
return datasetId in datasets && datasets[datasetId].name || "";
|
|
2814
|
+
};
|
|
2815
|
+
const prepareData = (data, datasets) => {
|
|
2816
|
+
const options = getList(data);
|
|
2817
|
+
options.sort((prevItem, item) => prevItem.content.localeCompare(item.content));
|
|
2818
|
+
const name = getDatasetName(data, datasets);
|
|
2819
|
+
const subTitle = name ? `${data.title || data.label} (${name})` : data.title || data.label;
|
|
2820
|
+
return { options, subTitle };
|
|
2821
|
+
};
|
|
2822
|
+
const AddAliases = ({
|
|
2823
|
+
widget,
|
|
2824
|
+
currentRow,
|
|
2825
|
+
currentAliases,
|
|
2826
|
+
onCancel,
|
|
2827
|
+
onAdd,
|
|
2828
|
+
widgetIcon,
|
|
2829
|
+
rowIcon,
|
|
2830
|
+
error
|
|
2831
|
+
}) => {
|
|
2832
|
+
const { datasets } = React__default.useContext(AliasesContext);
|
|
2833
|
+
const [errorMsg, setErrorMgs] = React__default.useState("");
|
|
2834
|
+
const [errorAliases, setErrorAliases] = React__default.useState(null);
|
|
2835
|
+
const [leftAliasSelected, setLeftAliasSelected] = React__default.useState();
|
|
2836
|
+
const [rightAliasSelected, setRightAliasSelected] = React__default.useState();
|
|
2837
|
+
const { options: currentItemOptions, subTitle: leftAliasSubTitle } = prepareData(
|
|
2838
|
+
widget,
|
|
2839
|
+
datasets
|
|
2840
|
+
);
|
|
2841
|
+
const { options: rowItemOptions, subTitle: rightAliasSubTitle } = prepareData(
|
|
2842
|
+
currentRow,
|
|
2843
|
+
datasets
|
|
2844
|
+
);
|
|
2845
|
+
const handleSelectLeftAlias = React__default.useCallback((value) => {
|
|
2846
|
+
setLeftAliasSelected(value);
|
|
2847
|
+
}, []);
|
|
2848
|
+
const handleSelectRightAlias = React__default.useCallback((value) => {
|
|
2849
|
+
setRightAliasSelected(value);
|
|
2850
|
+
}, []);
|
|
2851
|
+
const handleAddAlias = React__default.useCallback(() => {
|
|
2852
|
+
setErrorMgs("");
|
|
2853
|
+
if (leftAliasSelected === void 0 || rightAliasSelected === void 0) {
|
|
2854
|
+
setErrorMgs(i18n$2("label_choose-fields-from-list"));
|
|
2855
|
+
return;
|
|
2856
|
+
}
|
|
2857
|
+
let newAlias = [];
|
|
2858
|
+
if (Array.isArray(leftAliasSelected)) {
|
|
2859
|
+
newAlias = [...newAlias, ...leftAliasSelected];
|
|
2860
|
+
} else {
|
|
2861
|
+
newAlias.push(leftAliasSelected);
|
|
2862
|
+
}
|
|
2863
|
+
if (Array.isArray(rightAliasSelected)) {
|
|
2864
|
+
newAlias = [...newAlias, ...rightAliasSelected];
|
|
2865
|
+
} else {
|
|
2866
|
+
newAlias.push(rightAliasSelected);
|
|
2867
|
+
}
|
|
2868
|
+
newAlias.sort();
|
|
2869
|
+
if (newAlias[0] === newAlias[1]) {
|
|
2870
|
+
setErrorMgs(i18n$2("label_alias-same-dataset-field"));
|
|
2871
|
+
return;
|
|
2872
|
+
}
|
|
2873
|
+
for (let i = 0; i < currentAliases.length; i++) {
|
|
2874
|
+
if (isAddingAliasExists(currentAliases[i], newAlias)) {
|
|
2875
|
+
setErrorMgs(i18n$2("label_alias-already-exists"));
|
|
2876
|
+
return;
|
|
2877
|
+
}
|
|
2878
|
+
}
|
|
2879
|
+
const addedAliases = addAlias(newAlias[0], newAlias[1], [...currentAliases]);
|
|
2880
|
+
const sameDatasetAlias = hasAliasWithSameDataset(addedAliases, datasets);
|
|
2881
|
+
if (sameDatasetAlias) {
|
|
2882
|
+
setErrorMgs(i18n$2("label_alias-same-dataset"));
|
|
2883
|
+
setErrorAliases(sameDatasetAlias);
|
|
2884
|
+
return;
|
|
2885
|
+
} else {
|
|
2886
|
+
setErrorAliases(null);
|
|
2887
|
+
}
|
|
2888
|
+
onAdd(newAlias);
|
|
2889
|
+
setLeftAliasSelected(void 0);
|
|
2890
|
+
setRightAliasSelected(void 0);
|
|
2891
|
+
}, [currentAliases, leftAliasSelected, rightAliasSelected, onAdd, datasets]);
|
|
2892
|
+
React__default.useEffect(() => {
|
|
2893
|
+
if (!error?.trim()) {
|
|
2894
|
+
return;
|
|
2895
|
+
}
|
|
2896
|
+
setErrorMgs(error);
|
|
2897
|
+
}, [error]);
|
|
2898
|
+
if (!currentItemOptions.length || !rowItemOptions.length) {
|
|
2899
|
+
const hasExternalControl = isExternalControl(widget) || isExternalControl(currentRow);
|
|
2900
|
+
const keyset = hasExternalControl ? i18n$2("label_need-default-external-control") : i18n$2("label_need-default-editor-chart");
|
|
2901
|
+
const linkParam = hasExternalControl ? "/editor/widgets/selector/external" : "/operations/chart/add-parameters";
|
|
2902
|
+
return /* @__PURE__ */ jsx("div", { className: b$2(), children: /* @__PURE__ */ jsx(
|
|
2903
|
+
Interpolate,
|
|
2904
|
+
{
|
|
2905
|
+
text: keyset,
|
|
2906
|
+
matches: {
|
|
2907
|
+
link: (match) => /* @__PURE__ */ jsx(React__default.Fragment, { children: /* @__PURE__ */ jsx(
|
|
2908
|
+
Link,
|
|
2909
|
+
{
|
|
2910
|
+
href: `${DL.ENDPOINTS.datalensDocs}${linkParam}`,
|
|
2911
|
+
target: "_blank",
|
|
2912
|
+
children: match
|
|
2913
|
+
}
|
|
2914
|
+
) })
|
|
2915
|
+
}
|
|
2916
|
+
}
|
|
2917
|
+
) });
|
|
2918
|
+
}
|
|
2919
|
+
return /* @__PURE__ */ jsxs("div", { className: b$2(), children: [
|
|
2920
|
+
/* @__PURE__ */ jsxs("div", { className: b$2("row"), children: [
|
|
2921
|
+
/* @__PURE__ */ jsxs("div", { className: b$2("select-wrap"), children: [
|
|
2922
|
+
/* @__PURE__ */ jsxs("div", { className: b$2("sub-title"), title: leftAliasSubTitle, children: [
|
|
2923
|
+
/* @__PURE__ */ jsx("div", { className: b$2("icon"), children: widgetIcon }),
|
|
2924
|
+
leftAliasSubTitle
|
|
2925
|
+
] }),
|
|
2926
|
+
/* @__PURE__ */ jsx(
|
|
2927
|
+
Select,
|
|
2928
|
+
{
|
|
2929
|
+
filterable: true,
|
|
2930
|
+
size: "m",
|
|
2931
|
+
options: currentItemOptions,
|
|
2932
|
+
className: b$2("select"),
|
|
2933
|
+
placeholder: i18n$2("label_choose-field-for-alias"),
|
|
2934
|
+
onUpdate: handleSelectLeftAlias,
|
|
2935
|
+
value: leftAliasSelected === void 0 ? [] : leftAliasSelected,
|
|
2936
|
+
popupClassName: b$2("dialog-popup"),
|
|
2937
|
+
renderSelectedOption: (value) => getFieldName(widget, value),
|
|
2938
|
+
qa: DashCommonQa.AliasSelectLeft
|
|
2939
|
+
}
|
|
2940
|
+
)
|
|
2941
|
+
] }),
|
|
2942
|
+
/* @__PURE__ */ jsx("span", { className: b$2("eq"), children: "=" }),
|
|
2943
|
+
/* @__PURE__ */ jsxs("div", { className: b$2("select-wrap"), children: [
|
|
2944
|
+
/* @__PURE__ */ jsxs("div", { className: b$2("sub-title"), title: rightAliasSubTitle, children: [
|
|
2945
|
+
/* @__PURE__ */ jsx("div", { className: b$2("icon"), children: rowIcon }),
|
|
2946
|
+
rightAliasSubTitle
|
|
2947
|
+
] }),
|
|
2948
|
+
/* @__PURE__ */ jsx(
|
|
2949
|
+
Select,
|
|
2950
|
+
{
|
|
2951
|
+
filterable: true,
|
|
2952
|
+
size: "m",
|
|
2953
|
+
options: rowItemOptions,
|
|
2954
|
+
className: b$2("select"),
|
|
2955
|
+
placeholder: i18n$2("label_choose-field-for-alias"),
|
|
2956
|
+
onUpdate: handleSelectRightAlias,
|
|
2957
|
+
value: rightAliasSelected === void 0 ? [] : rightAliasSelected,
|
|
2958
|
+
popupClassName: b$2("dialog-popup"),
|
|
2959
|
+
renderSelectedOption: (value) => getFieldName(currentRow, value),
|
|
2960
|
+
qa: DashCommonQa.AliasSelectRight
|
|
2961
|
+
}
|
|
2962
|
+
)
|
|
2963
|
+
] }),
|
|
2964
|
+
/* @__PURE__ */ jsx(Button, { className: b$2("button"), view: "normal", onClick: onCancel, children: /* @__PURE__ */ jsx(Icon, { data: Xmark }) }),
|
|
2965
|
+
/* @__PURE__ */ jsx(
|
|
2966
|
+
Button,
|
|
2967
|
+
{
|
|
2968
|
+
className: b$2("button"),
|
|
2969
|
+
view: "action",
|
|
2970
|
+
onClick: handleAddAlias,
|
|
2971
|
+
qa: DashCommonQa.AliasAddBtn,
|
|
2972
|
+
children: /* @__PURE__ */ jsx(Icon, { data: Check })
|
|
2973
|
+
}
|
|
2974
|
+
)
|
|
2975
|
+
] }),
|
|
2976
|
+
errorMsg && /* @__PURE__ */ jsx("div", { className: b$2("error"), children: errorMsg }),
|
|
2977
|
+
errorAliases && /* @__PURE__ */ jsx(
|
|
2978
|
+
AliasesInvalidList,
|
|
2979
|
+
{
|
|
2980
|
+
aliases: [errorAliases.alias],
|
|
2981
|
+
invalidAliases: errorAliases.errors,
|
|
2982
|
+
datasets
|
|
2983
|
+
}
|
|
2984
|
+
)
|
|
2985
|
+
] });
|
|
2986
|
+
};
|
|
2987
|
+
const b$1 = block("dialog-aliases-detail");
|
|
2988
|
+
const i18n$1 = I18n.keyset("component.dialog-relations.view");
|
|
2989
|
+
const AliasesDetail = ({ fieldName, items }) => {
|
|
2990
|
+
const { showDebugInfo, invalidAliases } = React__default.useContext(AliasesContext);
|
|
2991
|
+
let content = items.map((item, index) => {
|
|
2992
|
+
const icon = getRelationsIcon(item, b$1("details-icon"));
|
|
2993
|
+
const label = item?.label && item?.label !== item.title ? item?.label : "";
|
|
2994
|
+
const debugInfo = showDebugInfo ? /* @__PURE__ */ jsxs("span", { className: b$1("info"), children: [
|
|
2995
|
+
" (",
|
|
2996
|
+
item.widgetId,
|
|
2997
|
+
")"
|
|
2998
|
+
] }) : null;
|
|
2999
|
+
const title = (showDebugInfo ? `(${item.widgetId}) ` : "") + label + item.title;
|
|
3000
|
+
const rowTitle = [label, item.title].filter(Boolean).join(` — `);
|
|
3001
|
+
return {
|
|
3002
|
+
node: /* @__PURE__ */ jsxs("div", { className: b$1("row"), children: [
|
|
3003
|
+
icon,
|
|
3004
|
+
/* @__PURE__ */ jsxs("span", { className: b$1("text"), title, children: [
|
|
3005
|
+
debugInfo,
|
|
3006
|
+
rowTitle
|
|
3007
|
+
] })
|
|
3008
|
+
] }, `linked-widgets-row-${item.widgetId}-${index}`),
|
|
3009
|
+
text: rowTitle
|
|
3010
|
+
};
|
|
3011
|
+
}).sort((prevItem, item) => prevItem.text.localeCompare(item.text)).map((item) => item.node);
|
|
3012
|
+
if (invalidAliases?.includes(fieldName)) {
|
|
3013
|
+
content = /* @__PURE__ */ jsx("div", { className: b$1("error"), children: i18n$1("label_invalid-alias") });
|
|
3014
|
+
}
|
|
3015
|
+
return /* @__PURE__ */ jsxs("div", { className: b$1(), children: [
|
|
3016
|
+
/* @__PURE__ */ jsx("div", { className: b$1("subtitle"), children: i18n$1("label_alias-detail-1") + fieldName ? ` ${i18n$1("label_alias-detail-2")} ${fieldName}` : "" }),
|
|
3017
|
+
/* @__PURE__ */ jsx("div", { className: b$1("content"), children: content })
|
|
3018
|
+
] });
|
|
3019
|
+
};
|
|
3020
|
+
const DIALOG_ALIASES = /* @__PURE__ */ Symbol("dash/DIALOG_ALIASES");
|
|
3021
|
+
const b = block("dialog-aliases");
|
|
3022
|
+
const i18n = I18n.keyset("component.dialog-aliases.view");
|
|
3023
|
+
const DialogAliases = (props) => {
|
|
3024
|
+
const {
|
|
3025
|
+
onClose,
|
|
3026
|
+
relations,
|
|
3027
|
+
currentRow,
|
|
3028
|
+
currentWidget,
|
|
3029
|
+
showDebugInfo,
|
|
3030
|
+
datasets,
|
|
3031
|
+
updateAliases,
|
|
3032
|
+
relationText,
|
|
3033
|
+
relationType,
|
|
3034
|
+
widgetIcon,
|
|
3035
|
+
rowIcon,
|
|
3036
|
+
forceAddAlias,
|
|
3037
|
+
changedWidgetsData,
|
|
3038
|
+
changedWidgetId,
|
|
3039
|
+
changedItemId,
|
|
3040
|
+
invalidAliases,
|
|
3041
|
+
dialogAliases
|
|
3042
|
+
} = props;
|
|
3043
|
+
const [showDetailedData, setShowDetailedData] = React__default.useState(false);
|
|
3044
|
+
const [selectedAliasRowIndex, setSelectedAliasRowIndex] = React__default.useState(null);
|
|
3045
|
+
const [showAddAlias, setShowAddAlias] = React__default.useState(
|
|
3046
|
+
Boolean(forceAddAlias) || false
|
|
3047
|
+
);
|
|
3048
|
+
const [enableAddAlias, setEnableAddAlias] = React__default.useState(true);
|
|
3049
|
+
const [aliasAdded, setAliasAdded] = React__default.useState([]);
|
|
3050
|
+
const [aliasRequired, setAliasRequired] = React__default.useState(false);
|
|
3051
|
+
const [selectedFieldName, setSelectedFieldName] = React__default.useState(null);
|
|
3052
|
+
const [selectedParam, setSelectedParam] = React__default.useState(null);
|
|
3053
|
+
const [currentAlias, setCurrentAlias] = React__default.useState(null);
|
|
3054
|
+
const [dashTabAliasesByNamespace, setAliasesByNamespace] = React__default.useState(
|
|
3055
|
+
dialogAliases?.[DEFAULT_ALIAS_NAMESPACE] || []
|
|
3056
|
+
);
|
|
3057
|
+
const [aliases, setAliases] = React__default.useState(currentRow.relations.byAliases.sort());
|
|
3058
|
+
const hasAlias = Boolean(aliases.length);
|
|
3059
|
+
const aliasRequiredErrorText = aliasRequired ? i18n("label_required-add-alias") : void 0;
|
|
3060
|
+
const caption = /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
3061
|
+
i18n("title_add-alias"),
|
|
3062
|
+
/* @__PURE__ */ jsxs(HelpMark, { className: b("info"), children: [
|
|
3063
|
+
/* @__PURE__ */ jsx("p", { className: b("info-text"), children: i18n("label_info_1") }),
|
|
3064
|
+
/* @__PURE__ */ jsx("p", { className: b("info-text"), children: i18n("label_info_2") })
|
|
3065
|
+
] })
|
|
3066
|
+
] });
|
|
3067
|
+
const isIgnored = relationType === RELATION_TYPES.ignore;
|
|
3068
|
+
const isBoth = relationType === RELATION_TYPES.both;
|
|
3069
|
+
const affectedItems = [currentWidget, ...relations].map((item) => ({
|
|
3070
|
+
...item,
|
|
3071
|
+
intersectionParams: intersection(item.usedParams, currentAlias)
|
|
3072
|
+
})).filter(
|
|
3073
|
+
({ intersectionParams }) => intersectionParams.length && (!selectedParam || intersectionParams.includes(selectedParam))
|
|
3074
|
+
);
|
|
3075
|
+
const hasUsedParams = Boolean(currentWidget.usedParams?.length) && Boolean(currentRow.usedParams?.length);
|
|
3076
|
+
const showAddAliasButton = hasUsedParams && enableAddAlias && (!isIgnored || isIgnored && forceAddAlias);
|
|
3077
|
+
const showAlert = !enableAddAlias || !hasUsedParams;
|
|
3078
|
+
let alertText = null;
|
|
3079
|
+
if (!hasUsedParams) {
|
|
3080
|
+
alertText = i18n("label_card-used-params");
|
|
3081
|
+
} else if (!enableAddAlias) {
|
|
3082
|
+
alertText = i18n("label_card");
|
|
3083
|
+
}
|
|
3084
|
+
const disableApplyButton = isIgnored && !forceAddAlias && !currentRow.relations.byAliases.length || isIgnored && forceAddAlias && !aliases.length;
|
|
3085
|
+
const resetSelectedAliasRow = React__default.useCallback(() => {
|
|
3086
|
+
setSelectedParam(null);
|
|
3087
|
+
setSelectedFieldName(null);
|
|
3088
|
+
setShowDetailedData(false);
|
|
3089
|
+
setSelectedAliasRowIndex(null);
|
|
3090
|
+
setCurrentAlias(null);
|
|
3091
|
+
}, []);
|
|
3092
|
+
const handleDetailedAlias = React__default.useCallback(
|
|
3093
|
+
(data) => {
|
|
3094
|
+
const { field, fieldName, indexRow, aliasRow, isClickedOnSelected } = data;
|
|
3095
|
+
if (isClickedOnSelected) {
|
|
3096
|
+
resetSelectedAliasRow();
|
|
3097
|
+
return;
|
|
3098
|
+
}
|
|
3099
|
+
setSelectedParam(field?.guid || fieldName || null);
|
|
3100
|
+
setSelectedFieldName(fieldName);
|
|
3101
|
+
setShowDetailedData(true);
|
|
3102
|
+
setSelectedAliasRowIndex(indexRow);
|
|
3103
|
+
setCurrentAlias(aliasRow);
|
|
3104
|
+
},
|
|
3105
|
+
[resetSelectedAliasRow]
|
|
3106
|
+
);
|
|
3107
|
+
const handleDetailClick = React__default.useCallback(
|
|
3108
|
+
({ indexRow, aliasRow }) => {
|
|
3109
|
+
setSelectedParam(null);
|
|
3110
|
+
setSelectedFieldName(null);
|
|
3111
|
+
setShowDetailedData(!showDetailedData);
|
|
3112
|
+
setSelectedAliasRowIndex(showDetailedData ? null : indexRow);
|
|
3113
|
+
setCurrentAlias(showDetailedData ? null : aliasRow);
|
|
3114
|
+
},
|
|
3115
|
+
[showDetailedData]
|
|
3116
|
+
);
|
|
3117
|
+
const handleRemoveAlias = React__default.useCallback(
|
|
3118
|
+
({
|
|
3119
|
+
row: aliasesForRemove,
|
|
3120
|
+
rowWithPartlyRemoved
|
|
3121
|
+
}) => {
|
|
3122
|
+
const aliasesForRemoveSorted = [...aliasesForRemove].sort();
|
|
3123
|
+
const filterAliases = (list, item) => {
|
|
3124
|
+
if (isEqual([...item].sort(), aliasesForRemoveSorted)) {
|
|
3125
|
+
if (rowWithPartlyRemoved?.length) {
|
|
3126
|
+
list.push(rowWithPartlyRemoved);
|
|
3127
|
+
}
|
|
3128
|
+
} else {
|
|
3129
|
+
list.push(item);
|
|
3130
|
+
}
|
|
3131
|
+
return list;
|
|
3132
|
+
};
|
|
3133
|
+
const filteredAliases = aliases.reduce(filterAliases, []);
|
|
3134
|
+
const dashTabFilteredAliases = dashTabAliasesByNamespace.reduce(filterAliases, []);
|
|
3135
|
+
let count = 0;
|
|
3136
|
+
aliasAdded.forEach((item) => {
|
|
3137
|
+
if (aliasesForRemove.includes(item)) {
|
|
3138
|
+
count++;
|
|
3139
|
+
}
|
|
3140
|
+
});
|
|
3141
|
+
if (count === aliasAdded.length) {
|
|
3142
|
+
setAliasAdded([]);
|
|
3143
|
+
}
|
|
3144
|
+
setAliases(filteredAliases.sort());
|
|
3145
|
+
setAliasesByNamespace(dashTabFilteredAliases);
|
|
3146
|
+
resetSelectedAliasRow();
|
|
3147
|
+
},
|
|
3148
|
+
[dashTabAliasesByNamespace, aliasAdded, aliases, resetSelectedAliasRow]
|
|
3149
|
+
);
|
|
3150
|
+
const handleAddNewAliases = React__default.useCallback(
|
|
3151
|
+
(alias) => {
|
|
3152
|
+
setShowAddAlias(false);
|
|
3153
|
+
setAliases(getNormalizedAliases([...aliases, alias]));
|
|
3154
|
+
setAliasesByNamespace(getNormalizedAliases([...dashTabAliasesByNamespace, alias]));
|
|
3155
|
+
setAliasAdded(alias);
|
|
3156
|
+
},
|
|
3157
|
+
[aliases, dashTabAliasesByNamespace]
|
|
3158
|
+
);
|
|
3159
|
+
const handleApplyChanges = React__default.useCallback(() => {
|
|
3160
|
+
if (forceAddAlias && !aliasAdded.length) {
|
|
3161
|
+
setAliasRequired(true);
|
|
3162
|
+
setShowAddAlias(true);
|
|
3163
|
+
return;
|
|
3164
|
+
}
|
|
3165
|
+
updateAliases(getNormalizedAliases(dashTabAliasesByNamespace));
|
|
3166
|
+
onClose({
|
|
3167
|
+
...changedWidgetsData ? { changedWidgetsData } : {},
|
|
3168
|
+
...changedWidgetId ? { changedWidgetId } : {},
|
|
3169
|
+
...changedItemId ? { changedItemId } : {},
|
|
3170
|
+
...dashTabAliasesByNamespace ? { aliases: dashTabAliasesByNamespace } : {}
|
|
3171
|
+
});
|
|
3172
|
+
}, [
|
|
3173
|
+
forceAddAlias,
|
|
3174
|
+
aliasAdded,
|
|
3175
|
+
updateAliases,
|
|
3176
|
+
dashTabAliasesByNamespace,
|
|
3177
|
+
onClose,
|
|
3178
|
+
changedWidgetsData,
|
|
3179
|
+
changedWidgetId
|
|
3180
|
+
]);
|
|
3181
|
+
const handleAddAlias = React__default.useCallback(() => {
|
|
3182
|
+
setShowAddAlias(true);
|
|
3183
|
+
}, []);
|
|
3184
|
+
const handleHideAlias = React__default.useCallback(() => {
|
|
3185
|
+
setShowAddAlias(false);
|
|
3186
|
+
}, []);
|
|
3187
|
+
const handleCancel = React__default.useCallback(() => {
|
|
3188
|
+
onClose({
|
|
3189
|
+
reset: true
|
|
3190
|
+
});
|
|
3191
|
+
}, [onClose]);
|
|
3192
|
+
React__default.useEffect(() => {
|
|
3193
|
+
const widgetDatasetId = currentWidget.datasetId || (currentWidget.datasets?.length ? currentWidget.datasets[0].id || "" : "");
|
|
3194
|
+
const currentRowDatasetId = currentRow.datasetId || (currentRow.datasets?.length ? currentRow.datasets[0].id || "" : "");
|
|
3195
|
+
if (widgetDatasetId && currentRowDatasetId && widgetDatasetId === currentRowDatasetId) {
|
|
3196
|
+
setEnableAddAlias(false);
|
|
3197
|
+
}
|
|
3198
|
+
}, [currentWidget, currentRow]);
|
|
3199
|
+
React__default.useEffect(() => {
|
|
3200
|
+
setAliasRequired(false);
|
|
3201
|
+
if (!forceAddAlias) {
|
|
3202
|
+
return;
|
|
3203
|
+
}
|
|
3204
|
+
if (!aliasAdded.length) {
|
|
3205
|
+
setShowAddAlias(true);
|
|
3206
|
+
setAliasRequired(true);
|
|
3207
|
+
}
|
|
3208
|
+
}, [forceAddAlias, aliasAdded]);
|
|
3209
|
+
React__default.useEffect(() => {
|
|
3210
|
+
setAliases(currentRow.relations.byAliases.sort());
|
|
3211
|
+
}, [currentRow]);
|
|
3212
|
+
return /* @__PURE__ */ jsxs(Dialog, { onClose: handleCancel, open: true, className: b(), children: [
|
|
3213
|
+
/* @__PURE__ */ jsx(Dialog.Header, { caption }),
|
|
3214
|
+
/* @__PURE__ */ jsx(Dialog.Body, { className: b("container"), children: /* @__PURE__ */ jsxs(
|
|
3215
|
+
AliasesContext.Provider,
|
|
3216
|
+
{
|
|
3217
|
+
value: {
|
|
3218
|
+
datasets,
|
|
3219
|
+
showDebugInfo,
|
|
3220
|
+
relations,
|
|
3221
|
+
selectedAliasRowIndex,
|
|
3222
|
+
selectedParam,
|
|
3223
|
+
invalidAliases
|
|
3224
|
+
},
|
|
3225
|
+
children: [
|
|
3226
|
+
relationText && /* @__PURE__ */ jsxs("div", { className: b("sub-header"), children: [
|
|
3227
|
+
/* @__PURE__ */ jsxs("span", { className: b("label"), children: [
|
|
3228
|
+
i18n("label_link-type"),
|
|
3229
|
+
":"
|
|
3230
|
+
] }),
|
|
3231
|
+
/* @__PURE__ */ jsx("span", { className: b("type-text", { "lower-case": isBoth || isIgnored }), children: relationText })
|
|
3232
|
+
] }),
|
|
3233
|
+
showAlert && alertText && /* @__PURE__ */ jsx(
|
|
3234
|
+
Alert,
|
|
3235
|
+
{
|
|
3236
|
+
theme: "warning",
|
|
3237
|
+
message: alertText,
|
|
3238
|
+
className: b("card"),
|
|
3239
|
+
view: "outlined"
|
|
3240
|
+
}
|
|
3241
|
+
),
|
|
3242
|
+
/* @__PURE__ */ jsx("div", { className: b("controls"), children: hasAlias ? /* @__PURE__ */ jsx(React__default.Fragment, { children: /* @__PURE__ */ jsx(
|
|
3243
|
+
Collapse,
|
|
3244
|
+
{
|
|
3245
|
+
arrowPosition: "left",
|
|
3246
|
+
title: i18n("label_collapse-label"),
|
|
3247
|
+
arrowView: "icon",
|
|
3248
|
+
isSecondary: true,
|
|
3249
|
+
className: b("collapse-list"),
|
|
3250
|
+
titleSize: "s",
|
|
3251
|
+
contentClassName: b("collapse-list-content"),
|
|
3252
|
+
arrowQa: DashCommonQa.AliasesListCollapse,
|
|
3253
|
+
children: /* @__PURE__ */ jsx(
|
|
3254
|
+
AliasesList,
|
|
3255
|
+
{
|
|
3256
|
+
widgetId: currentRow.widgetId,
|
|
3257
|
+
aliases,
|
|
3258
|
+
onAliasRowClick: handleDetailedAlias,
|
|
3259
|
+
onDetailClick: handleDetailClick,
|
|
3260
|
+
onRemoveClick: handleRemoveAlias,
|
|
3261
|
+
showDetailedData
|
|
3262
|
+
}
|
|
3263
|
+
)
|
|
3264
|
+
}
|
|
3265
|
+
) }) : /* @__PURE__ */ jsx("div", { className: b("empty"), children: i18n("label_empty") }) }),
|
|
3266
|
+
hasAlias && showDetailedData && /* @__PURE__ */ jsx(
|
|
3267
|
+
AliasesDetail,
|
|
3268
|
+
{
|
|
3269
|
+
fieldName: selectedFieldName || "",
|
|
3270
|
+
items: affectedItems,
|
|
3271
|
+
widget: currentWidget,
|
|
3272
|
+
currentRow
|
|
3273
|
+
}
|
|
3274
|
+
),
|
|
3275
|
+
showAddAliasButton && /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
3276
|
+
!showAddAlias && /* @__PURE__ */ jsxs(Button, { onClick: handleAddAlias, children: [
|
|
3277
|
+
/* @__PURE__ */ jsx(Icon, { data: Plus }),
|
|
3278
|
+
i18n("button_add-alias")
|
|
3279
|
+
] }),
|
|
3280
|
+
showAddAlias && /* @__PURE__ */ jsx(
|
|
3281
|
+
AddAliases,
|
|
3282
|
+
{
|
|
3283
|
+
widget: currentWidget,
|
|
3284
|
+
currentRow,
|
|
3285
|
+
onCancel: handleHideAlias,
|
|
3286
|
+
currentAliases: aliases,
|
|
3287
|
+
onAdd: handleAddNewAliases,
|
|
3288
|
+
widgetIcon,
|
|
3289
|
+
rowIcon,
|
|
3290
|
+
error: aliasRequiredErrorText
|
|
3291
|
+
}
|
|
3292
|
+
)
|
|
3293
|
+
] })
|
|
3294
|
+
]
|
|
3295
|
+
}
|
|
3296
|
+
) }),
|
|
3297
|
+
/* @__PURE__ */ jsx(
|
|
3298
|
+
Dialog.Footer,
|
|
3299
|
+
{
|
|
3300
|
+
preset: "default",
|
|
3301
|
+
showError: false,
|
|
3302
|
+
textButtonCancel: i18n("button_cancel"),
|
|
3303
|
+
textButtonApply: i18n("button_apply"),
|
|
3304
|
+
propsButtonApply: { disabled: disableApplyButton, qa: DashCommonQa.AliasAddApplyBtn },
|
|
3305
|
+
propsButtonCancel: { view: "outlined", qa: DashCommonQa.AliasesCancelBtn },
|
|
3306
|
+
onClickButtonApply: handleApplyChanges,
|
|
3307
|
+
onClickButtonCancel: handleCancel
|
|
3308
|
+
}
|
|
3309
|
+
)
|
|
3310
|
+
] });
|
|
3311
|
+
};
|
|
3312
|
+
DialogManager.registerDialog(DIALOG_ALIASES, DialogAliases);
|
|
3313
|
+
const openDialogRelations = ({
|
|
3314
|
+
widget,
|
|
3315
|
+
dashKitRef,
|
|
3316
|
+
onApply,
|
|
3317
|
+
onClose
|
|
3318
|
+
}) => {
|
|
3319
|
+
return function(dispatch, getState) {
|
|
3320
|
+
const state = getState();
|
|
3321
|
+
const dashTabAliases = selectCurrentTabAliases(state);
|
|
3322
|
+
const workbookId = selectDashWorkbookId(state);
|
|
3323
|
+
const allWidgets = selectCurrentTabRelationDataItems(state);
|
|
3324
|
+
const widgetsCurrentTab = selectWidgetsCurrentTab(state);
|
|
3325
|
+
const openDialogRelationsParams = {
|
|
3326
|
+
onClose: () => {
|
|
3327
|
+
onClose();
|
|
3328
|
+
dispatch(closeDialog());
|
|
3329
|
+
},
|
|
3330
|
+
onApply: (newData) => {
|
|
3331
|
+
onApply?.();
|
|
3332
|
+
updateCurrentTabData(newData)(dispatch);
|
|
3333
|
+
onClose();
|
|
3334
|
+
dispatch(closeDialog());
|
|
3335
|
+
},
|
|
3336
|
+
widget,
|
|
3337
|
+
dashKitRef,
|
|
3338
|
+
dashTabAliases,
|
|
3339
|
+
widgetsCurrentTab,
|
|
3340
|
+
workbookId,
|
|
3341
|
+
allWidgets
|
|
3342
|
+
};
|
|
3343
|
+
dispatch(
|
|
3344
|
+
openDialog({
|
|
3345
|
+
id: DIALOG_RELATIONS,
|
|
3346
|
+
props: openDialogRelationsParams
|
|
3347
|
+
})
|
|
3348
|
+
);
|
|
3349
|
+
};
|
|
3350
|
+
};
|
|
3351
|
+
const openDialogAliases = (props) => {
|
|
3352
|
+
return function(dispatch) {
|
|
3353
|
+
const openDialogAliasesParams = {
|
|
3354
|
+
...props,
|
|
3355
|
+
onClose: (args) => {
|
|
3356
|
+
if (typeof props.onCloseCallback === "function") {
|
|
3357
|
+
props.onCloseCallback(args);
|
|
3358
|
+
}
|
|
3359
|
+
dispatch(closeDialog());
|
|
3360
|
+
}
|
|
3361
|
+
};
|
|
3362
|
+
dispatch(
|
|
3363
|
+
openDialog({
|
|
3364
|
+
id: DIALOG_ALIASES,
|
|
3365
|
+
props: openDialogAliasesParams
|
|
3366
|
+
})
|
|
3367
|
+
);
|
|
3368
|
+
};
|
|
3369
|
+
};
|
|
3370
|
+
const openEmptyDialogRelations = () => {
|
|
3371
|
+
return function(dispatch, getState) {
|
|
3372
|
+
const state = getState();
|
|
3373
|
+
const dashKitRef = selectDashkitRef(state);
|
|
3374
|
+
if (dashKitRef === null) {
|
|
3375
|
+
return;
|
|
3376
|
+
}
|
|
3377
|
+
batch(() => {
|
|
3378
|
+
openDialogRelations({
|
|
3379
|
+
dashKitRef,
|
|
3380
|
+
onClose: () => {
|
|
3381
|
+
}
|
|
3382
|
+
})(dispatch, getState);
|
|
3383
|
+
});
|
|
3384
|
+
};
|
|
3385
|
+
};
|
|
3386
|
+
export {
|
|
3387
|
+
openDialogRelations as a,
|
|
3388
|
+
openEmptyDialogRelations as o
|
|
3389
|
+
};
|