@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,4026 @@
|
|
|
1
|
+
var _a;
|
|
2
|
+
import { D as DASH_WIDGET_TYPES, s as stringifyMemoize, C as CHARTKIT_SCROLLABLE_NODE_CLASSNAME, a as CHARTKIT_MAIN_CLASSNAME, b as CHARTKIT_ERROR_NODE_CLASSNAME, c as CONTROL_TYPE, d as CheckboxControlValue, w as wrapToArray, e as selectDashWorkbookId, u as unwrapFromArrayAndSkipOperation, f as addOperationForValue, g as chartsDataProvider, h as CHARTS_ERROR_CODE, i as unwrapFromArray, j as CLICK_ACTION_TYPE, k as isItemGlobal, l as isGlobalWidgetVisibleByMainSetting, m as isGroupItemVisibleOnTab } from "./ControlComponents.js";
|
|
3
|
+
import { DashKit, pluginText, PluginText, RECCOMMENDED_LINE_HEIGHT_MULTIPLIER, TITLE_DEFAULT_SIZES, pluginTitle, PluginTitle, PLUGIN_ROOT_ATTR_NAME } from "@gravity-ui/dashkit";
|
|
4
|
+
import { bi as splitParamsToParametersAndFilters, bj as transformParamsToUrlParams, bk as transformUrlParamsToParams, af as resolveOperation, bl as resolveIntervalDate, aX as Operations, bm as resolveRelativeDate, b5 as DatasetFieldType, l as I18n, ah as DashTabItemControlSourceType, b7 as DATASET_IGNORED_DATA_TYPES, D as DL, a4 as LIKE_CHART_COLOR_TOKEN, bn as getResultedOldBgColor, a3 as CustomPaletteBgColors, a_ as TitlePlacementOption, b3 as ControlQA, r as registry, j as i18n$8, bo as DashKitOverlayMenuQa, u as DashTabItemType, aE as ControlType, aZ as DATASET_FIELD_TYPES, n as ErrorCode, I as I18N, bp as DashTabItemControlElementType, F as Feature, bq as DashTabItemTitleSizes, br as EXPORT_PRINT_HIDDEN_ATTR, ab as isOldBackgroundSettings } from "./AccessRights.js";
|
|
5
|
+
import { z as getRouter, P as toSearchParams, l as logger, f as openDialogErrorWithTabs, c as closeDialog, j as useMountedState, r as getLocation, i as isEnabledFeature, Q as usePrevious, Y as YFM_MARKDOWN_CLASSNAME, M as MarkdownProvider } from "./ActionPanel.js";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import React__default, { createContext } from "react";
|
|
8
|
+
import { MenuItems, getItemsParams, pluginGroupControlBaseDL } from "@gravity-ui/dashkit/helpers";
|
|
9
|
+
import { Pencil, Copy, TrashBin, TriangleExclamationFill } from "@gravity-ui/icons";
|
|
10
|
+
import { useThemeType, Checkbox, Button, Dialog, TextArea, TextInput, Icon, Loader, Text } from "@gravity-ui/uikit";
|
|
11
|
+
import block from "bem-cn-lite";
|
|
12
|
+
import axios from "axios";
|
|
13
|
+
import debounce from "lodash/debounce";
|
|
14
|
+
import isEqual from "lodash/isEqual";
|
|
15
|
+
import pick from "lodash/pick";
|
|
16
|
+
import { C as ChartWrapper } from "./Widgets.js";
|
|
17
|
+
import PropTypes from "prop-types";
|
|
18
|
+
import { M as MOBILE_SIZE } from "./CollectionFilters.js";
|
|
19
|
+
import { Y as YCSelect } from "./common.js";
|
|
20
|
+
import { M as MarkdownHelpPopover } from "./MarkdownHelpPopover.js";
|
|
21
|
+
import { useSelector, useDispatch } from "react-redux";
|
|
22
|
+
import { a as selectDebugMode } from "./AsideHeaderAdapter.js";
|
|
23
|
+
import isPlainObject from "lodash/isPlainObject";
|
|
24
|
+
import moment from "moment";
|
|
25
|
+
import get from "lodash/get";
|
|
26
|
+
import { Y as YfmWrapper } from "./YfmWrapper.js";
|
|
27
|
+
import { useLocation } from "react-router";
|
|
28
|
+
import { Link } from "react-router-dom";
|
|
29
|
+
const MAX_AUTO_HEIGHT_PX = 3e3;
|
|
30
|
+
const MIN_AUTO_HEIGHT_PX = 44;
|
|
31
|
+
const MIN_AUTO_HEIGHT_ROWS = 2;
|
|
32
|
+
const DEFAULT_CONTROL_LAYOUT = { w: 8, h: 2 };
|
|
33
|
+
const FIXED_GROUP_CONTAINER_ID = "__fixGCont";
|
|
34
|
+
const FIXED_GROUP_HEADER_ID = "__fixHead";
|
|
35
|
+
const DEFAULT_DASH_MARGINS = [8, 8];
|
|
36
|
+
const MIN_DASH_MARGIN = 0;
|
|
37
|
+
const MAX_DASH_MARGIN = 22;
|
|
38
|
+
const DASH_MARGIN_STEP = 2;
|
|
39
|
+
const MIN_DASH_BORDER_RADIUS = 0;
|
|
40
|
+
const MAX_DASH_BORDER_RADIUS = 24;
|
|
41
|
+
const DASH_BORDER_RADIUS_STEP = 2;
|
|
42
|
+
const OLD_DEFAULT_WIDGET_BORDER_RADIUS = 0;
|
|
43
|
+
const DEBOUNCE_RENDER_TIMEOUT = 200;
|
|
44
|
+
const isWidgetTypeDoNotNeedOverlay = (widgetType) => {
|
|
45
|
+
return widgetType === DASH_WIDGET_TYPES.TABLE || widgetType === DASH_WIDGET_TYPES.MARKDOWN || widgetType === DASH_WIDGET_TYPES.TEXT || widgetType === DASH_WIDGET_TYPES.CONTROL || widgetType === DASH_WIDGET_TYPES.METRIC || // delete after closing CHARTS-5818
|
|
46
|
+
widgetType === DASH_WIDGET_TYPES.TIMESERIES;
|
|
47
|
+
};
|
|
48
|
+
const getDashEntryUrl = (response) => {
|
|
49
|
+
return `/${response.data?.entryId}`;
|
|
50
|
+
};
|
|
51
|
+
const getNewDashUrl = (workbookId) => {
|
|
52
|
+
return `/workbooks/${workbookId}/dashboards`;
|
|
53
|
+
};
|
|
54
|
+
const getUrlGlobalParams = stringifyMemoize(
|
|
55
|
+
(search, globalParams) => {
|
|
56
|
+
if (!search || !globalParams) {
|
|
57
|
+
return {};
|
|
58
|
+
}
|
|
59
|
+
const searchParams = new URLSearchParams(search);
|
|
60
|
+
return Object.keys(globalParams).reduce(
|
|
61
|
+
(result, key) => searchParams.has(key) ? { ...result, [key]: searchParams.getAll(key) } : result,
|
|
62
|
+
{}
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
const ELEMENT_TYPE = {
|
|
67
|
+
SELECT: "select"
|
|
68
|
+
};
|
|
69
|
+
const TYPE = {
|
|
70
|
+
SELECT: "select",
|
|
71
|
+
INPUT: "input",
|
|
72
|
+
DATEPICKER: "datepicker",
|
|
73
|
+
RANGE_DATEPICKER: "range-datepicker",
|
|
74
|
+
CHECKBOX: "checkbox"
|
|
75
|
+
};
|
|
76
|
+
const LOAD_STATUS = {
|
|
77
|
+
INITIAL: "initial",
|
|
78
|
+
PENDING: "pending",
|
|
79
|
+
SUCCESS: "success",
|
|
80
|
+
FAIL: "fail",
|
|
81
|
+
DESTROYED: "destroyed"
|
|
82
|
+
};
|
|
83
|
+
const LIMIT = 1e3;
|
|
84
|
+
const i18nError = I18n.keyset("dash.dashkit-control.error");
|
|
85
|
+
const getStatus = (status) => {
|
|
86
|
+
let res = "";
|
|
87
|
+
for (const [key, val] of Object.entries(LOAD_STATUS)) {
|
|
88
|
+
if (status === val) {
|
|
89
|
+
res = key;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return LOAD_STATUS[res];
|
|
93
|
+
};
|
|
94
|
+
const isValidRequiredValue = ({ required, value }) => {
|
|
95
|
+
const isEmptyArray = Array.isArray(value) && !value.length;
|
|
96
|
+
const isEmptyDateObject = !Array.isArray(value) && typeof value === "object" && (!value.from || !value.to);
|
|
97
|
+
if (!value || isEmptyArray || isEmptyDateObject) {
|
|
98
|
+
return required;
|
|
99
|
+
}
|
|
100
|
+
return false;
|
|
101
|
+
};
|
|
102
|
+
const getRequiredLabel = ({ title, required }) => {
|
|
103
|
+
return required ? `${title}*` : title;
|
|
104
|
+
};
|
|
105
|
+
const getLabels = (data) => {
|
|
106
|
+
const title = data.title;
|
|
107
|
+
const { showTitle, showInnerTitle, innerTitle, required } = data.source;
|
|
108
|
+
const label = showTitle ? getRequiredLabel({ title, required }) : "";
|
|
109
|
+
let innerLabel = "";
|
|
110
|
+
if (showInnerTitle && innerTitle) {
|
|
111
|
+
innerLabel = showTitle ? innerTitle : getRequiredLabel({ title: innerTitle, required });
|
|
112
|
+
}
|
|
113
|
+
return { label, innerLabel };
|
|
114
|
+
};
|
|
115
|
+
const getDatasetSourceInfo = ({
|
|
116
|
+
currentLoadedData,
|
|
117
|
+
data,
|
|
118
|
+
actualLoadedData
|
|
119
|
+
}) => {
|
|
120
|
+
const { datasetFieldId, datasetId } = data.source;
|
|
121
|
+
let datasetFieldType = null;
|
|
122
|
+
const loadedData = currentLoadedData || actualLoadedData;
|
|
123
|
+
let datasetFields = [];
|
|
124
|
+
if (loadedData && loadedData.extra.datasets) {
|
|
125
|
+
const dataset = loadedData.extra.datasets.find((dataset2) => dataset2.id === datasetId);
|
|
126
|
+
if (dataset) {
|
|
127
|
+
datasetFields = dataset.fieldsList;
|
|
128
|
+
const field = dataset.fieldsList.find((field2) => field2.guid === datasetFieldId);
|
|
129
|
+
if (field) {
|
|
130
|
+
datasetFieldType = field.dataType;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
const datasetFieldsMap = datasetFields.reduce(
|
|
135
|
+
(acc, field) => {
|
|
136
|
+
const fieldData = {
|
|
137
|
+
fieldType: field.fieldType,
|
|
138
|
+
guid: field.guid
|
|
139
|
+
};
|
|
140
|
+
acc[field.guid] = fieldData;
|
|
141
|
+
acc[field.title] = fieldData;
|
|
142
|
+
return acc;
|
|
143
|
+
},
|
|
144
|
+
{}
|
|
145
|
+
);
|
|
146
|
+
return { datasetId, datasetFieldId, datasetFieldType, datasetFields, datasetFieldsMap };
|
|
147
|
+
};
|
|
148
|
+
const checkDatasetFieldType = ({
|
|
149
|
+
currentLoadedData,
|
|
150
|
+
datasetData,
|
|
151
|
+
actualLoadedData,
|
|
152
|
+
onError,
|
|
153
|
+
onSucces
|
|
154
|
+
}) => {
|
|
155
|
+
const { datasetFieldType } = getDatasetSourceInfo({
|
|
156
|
+
currentLoadedData,
|
|
157
|
+
data: datasetData,
|
|
158
|
+
actualLoadedData
|
|
159
|
+
});
|
|
160
|
+
if (datasetFieldType && DATASET_IGNORED_DATA_TYPES.includes(datasetFieldType)) {
|
|
161
|
+
const datasetErrorData = {
|
|
162
|
+
data: {
|
|
163
|
+
title: i18nError("label_field-error-title"),
|
|
164
|
+
message: i18nError("label_field-error-text")
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
onError(datasetErrorData, LOAD_STATUS.FAIL);
|
|
168
|
+
} else {
|
|
169
|
+
onSucces(currentLoadedData, LOAD_STATUS.SUCCESS);
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
const getErrorText = (data) => {
|
|
173
|
+
if (typeof data?.error?.code === "string") {
|
|
174
|
+
return data.error.code;
|
|
175
|
+
}
|
|
176
|
+
if (typeof data?.error === "string") {
|
|
177
|
+
return data.error;
|
|
178
|
+
}
|
|
179
|
+
if (typeof data?.message === "string") {
|
|
180
|
+
return data.message;
|
|
181
|
+
}
|
|
182
|
+
if (data?.status && data.status === 504) {
|
|
183
|
+
return i18nError("label_error-timeout");
|
|
184
|
+
}
|
|
185
|
+
return i18nError("label_error");
|
|
186
|
+
};
|
|
187
|
+
const prepareSelectorError = (data, requestId) => {
|
|
188
|
+
const errorBody = data?.error?.details?.sources?.distincts?.body;
|
|
189
|
+
if (errorBody) {
|
|
190
|
+
return {
|
|
191
|
+
isCustomError: true,
|
|
192
|
+
details: {
|
|
193
|
+
source: {
|
|
194
|
+
code: errorBody.code,
|
|
195
|
+
details: errorBody.details,
|
|
196
|
+
debug: errorBody.debug || (requestId ? { requestId } : "")
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
message: errorBody.message,
|
|
200
|
+
code: data.error?.code || ""
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
const errorContent = data?.error;
|
|
204
|
+
let debugInfo = errorContent?.debug || "";
|
|
205
|
+
if (typeof errorContent?.debug === "object" && requestId) {
|
|
206
|
+
debugInfo = { ...errorContent?.debug, requestId };
|
|
207
|
+
}
|
|
208
|
+
return {
|
|
209
|
+
...errorContent,
|
|
210
|
+
debug: debugInfo,
|
|
211
|
+
message: getErrorText(data),
|
|
212
|
+
isCustomError: true
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
const isExternalControl = (data) => data.sourceType === DashTabItemControlSourceType.External;
|
|
216
|
+
const processParamsForGetDistincts = ({
|
|
217
|
+
params,
|
|
218
|
+
datasetSourceInfo,
|
|
219
|
+
searchPattern
|
|
220
|
+
}) => {
|
|
221
|
+
const { datasetFields, datasetFieldId, datasetFieldsMap } = datasetSourceInfo;
|
|
222
|
+
const splitParams = splitParamsToParametersAndFilters(
|
|
223
|
+
transformParamsToUrlParams(params),
|
|
224
|
+
datasetFields
|
|
225
|
+
);
|
|
226
|
+
const filtersParams = transformUrlParamsToParams(splitParams.filtersParams);
|
|
227
|
+
const where = Object.entries(filtersParams).reduce(
|
|
228
|
+
(result, [key, rawValue]) => {
|
|
229
|
+
if (key === datasetFieldId) {
|
|
230
|
+
return result;
|
|
231
|
+
}
|
|
232
|
+
const valuesWithOperation = (Array.isArray(rawValue) ? rawValue : [rawValue]).map(
|
|
233
|
+
(item) => resolveOperation(item)
|
|
234
|
+
);
|
|
235
|
+
if (valuesWithOperation.length > 0 && valuesWithOperation[0]?.value) {
|
|
236
|
+
const value = valuesWithOperation[0]?.value;
|
|
237
|
+
let operation = valuesWithOperation[0]?.operation;
|
|
238
|
+
let values = valuesWithOperation.map((item) => item?.value);
|
|
239
|
+
if (valuesWithOperation.length === 1 && value.indexOf("__interval_") === 0) {
|
|
240
|
+
const resolvedInterval = resolveIntervalDate(value);
|
|
241
|
+
if (resolvedInterval) {
|
|
242
|
+
values = [resolvedInterval.from, resolvedInterval.to];
|
|
243
|
+
operation = Operations.BETWEEN;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
if (valuesWithOperation.length === 1 && value.indexOf("__relative_") === 0) {
|
|
247
|
+
const resolvedRelative = resolveRelativeDate(value);
|
|
248
|
+
if (resolvedRelative) {
|
|
249
|
+
values = [resolvedRelative];
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
result.push({
|
|
253
|
+
column: key,
|
|
254
|
+
operation,
|
|
255
|
+
values
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
return result;
|
|
259
|
+
},
|
|
260
|
+
[
|
|
261
|
+
{
|
|
262
|
+
column: datasetFieldId,
|
|
263
|
+
operation: "ICONTAINS",
|
|
264
|
+
values: [searchPattern]
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
);
|
|
268
|
+
const filters = where.filter((el) => {
|
|
269
|
+
return datasetFieldsMap[el.column]?.fieldType !== DatasetFieldType.Measure;
|
|
270
|
+
}).map((filter) => {
|
|
271
|
+
return {
|
|
272
|
+
ref: { type: "id", id: filter.column },
|
|
273
|
+
operation: filter.operation,
|
|
274
|
+
values: filter.values
|
|
275
|
+
};
|
|
276
|
+
});
|
|
277
|
+
const parameter_values = splitParams.parametersParams.map(
|
|
278
|
+
([key, value]) => {
|
|
279
|
+
return {
|
|
280
|
+
ref: { type: "id", id: key },
|
|
281
|
+
value
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
);
|
|
285
|
+
return {
|
|
286
|
+
filters,
|
|
287
|
+
parameter_values
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
const getScrollbarWidth = (node) => node.offsetWidth - node.clientWidth;
|
|
291
|
+
const setNewLayout = ({
|
|
292
|
+
gridLayout,
|
|
293
|
+
layout,
|
|
294
|
+
widgetId,
|
|
295
|
+
cb,
|
|
296
|
+
contentHeight,
|
|
297
|
+
needSetDefault
|
|
298
|
+
}) => {
|
|
299
|
+
const { rowHeight, margin } = gridLayout;
|
|
300
|
+
const newHeight = Math.ceil((contentHeight + margin[1]) / (rowHeight + margin[1]));
|
|
301
|
+
const correspondedLayoutItemIndex = layout.findIndex((layoutItem) => layoutItem.i === widgetId);
|
|
302
|
+
const correspondedLayoutItem = layout[correspondedLayoutItemIndex];
|
|
303
|
+
if (correspondedLayoutItem.h === newHeight && correspondedLayoutItem.minH === newHeight && correspondedLayoutItem.maxH === newHeight) {
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
const adjustedWidgetLayout = {
|
|
307
|
+
...correspondedLayoutItem,
|
|
308
|
+
h: newHeight,
|
|
309
|
+
maxH: newHeight,
|
|
310
|
+
minH: newHeight
|
|
311
|
+
};
|
|
312
|
+
cb({ widgetId, needSetDefault, adjustedWidgetLayout });
|
|
313
|
+
};
|
|
314
|
+
const setOverflowYStyle = (node, value) => {
|
|
315
|
+
const st = node.getAttribute("style");
|
|
316
|
+
node.setAttribute(
|
|
317
|
+
"style",
|
|
318
|
+
`${st || ""}${!st || st?.endsWith(";") ? "" : ";"}overflow-y: ${value} !important;`
|
|
319
|
+
);
|
|
320
|
+
return () => {
|
|
321
|
+
if (st) {
|
|
322
|
+
node.setAttribute("style", st);
|
|
323
|
+
} else {
|
|
324
|
+
node.removeAttribute("style");
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
const setStyle = (node, name, value) => {
|
|
329
|
+
const st = node.getAttribute("style");
|
|
330
|
+
node.setAttribute(
|
|
331
|
+
"style",
|
|
332
|
+
`${st || ""}${!st || st?.endsWith(";") ? "" : ";"}${name}: ${value} !important;`
|
|
333
|
+
);
|
|
334
|
+
return () => {
|
|
335
|
+
if (st) {
|
|
336
|
+
node.setAttribute("style", st);
|
|
337
|
+
} else {
|
|
338
|
+
node.removeAttribute("style");
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
function adjustWidgetLayout({
|
|
343
|
+
widgetId,
|
|
344
|
+
rootNode,
|
|
345
|
+
needSetDefault,
|
|
346
|
+
gridLayout,
|
|
347
|
+
layout,
|
|
348
|
+
cb,
|
|
349
|
+
mainNodeSelector,
|
|
350
|
+
scrollableNodeSelector,
|
|
351
|
+
needHeightReset
|
|
352
|
+
}) {
|
|
353
|
+
if (DL.IS_MOBILE || needSetDefault) {
|
|
354
|
+
cb({ widgetId, needSetDefault });
|
|
355
|
+
return;
|
|
356
|
+
}
|
|
357
|
+
const node = rootNode.current;
|
|
358
|
+
if (!node) {
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
361
|
+
const prevHeight = "100%";
|
|
362
|
+
if (needHeightReset) {
|
|
363
|
+
setStyle(node, "height", "auto");
|
|
364
|
+
}
|
|
365
|
+
const scrollableNode = node.querySelector(
|
|
366
|
+
scrollableNodeSelector || `.${CHARTKIT_SCROLLABLE_NODE_CLASSNAME}`
|
|
367
|
+
);
|
|
368
|
+
const mainNode = node.querySelector(mainNodeSelector || `.${CHARTKIT_MAIN_CLASSNAME}`);
|
|
369
|
+
const errorNode = node.querySelector(`.${CHARTKIT_ERROR_NODE_CLASSNAME}`);
|
|
370
|
+
const rootNodeTopPosition = node.getBoundingClientRect().top;
|
|
371
|
+
if (errorNode && !scrollableNode) {
|
|
372
|
+
const errorOffsetFromRoot = errorNode.getBoundingClientRect().top - rootNodeTopPosition;
|
|
373
|
+
const fullContentHeight2 = errorNode.scrollHeight + errorOffsetFromRoot;
|
|
374
|
+
const contentHeight2 = fullContentHeight2 > MAX_AUTO_HEIGHT_PX ? MAX_AUTO_HEIGHT_PX : fullContentHeight2;
|
|
375
|
+
setNewLayout({
|
|
376
|
+
contentHeight: Math.max(MIN_AUTO_HEIGHT_PX, contentHeight2),
|
|
377
|
+
gridLayout,
|
|
378
|
+
layout,
|
|
379
|
+
cb,
|
|
380
|
+
widgetId,
|
|
381
|
+
needSetDefault
|
|
382
|
+
});
|
|
383
|
+
if (needHeightReset) {
|
|
384
|
+
setStyle(node, "height", prevHeight);
|
|
385
|
+
}
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
388
|
+
if (!scrollableNode) {
|
|
389
|
+
if (needHeightReset) {
|
|
390
|
+
setStyle(node, "height", prevHeight);
|
|
391
|
+
}
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
const scrollableNodeTopPosition = scrollableNode.getBoundingClientRect().top;
|
|
395
|
+
const scrollableNodeTopOffsetFromRoot = scrollableNodeTopPosition - rootNodeTopPosition;
|
|
396
|
+
const belowLyingNodesHeight = collectBelowLyingNodesHeight(scrollableNode, node, 0);
|
|
397
|
+
let scrollBar = getScrollbarWidth(scrollableNode);
|
|
398
|
+
let scrollHeight = scrollableNode.scrollHeight;
|
|
399
|
+
if (scrollBar > 0) {
|
|
400
|
+
const reset = setOverflowYStyle(scrollableNode, "hidden");
|
|
401
|
+
scrollHeight = scrollableNode.scrollHeight;
|
|
402
|
+
scrollBar = scrollableNode.clientWidth >= scrollableNode.scrollWidth ? 0 : scrollBar;
|
|
403
|
+
reset();
|
|
404
|
+
} else if (scrollableNode.clientWidth < scrollableNode.scrollWidth) {
|
|
405
|
+
const reset = setOverflowYStyle(scrollableNode, "scroll");
|
|
406
|
+
scrollBar = getScrollbarWidth(scrollableNode);
|
|
407
|
+
reset();
|
|
408
|
+
}
|
|
409
|
+
const additionalPaddings = mainNode && mainNode.parentElement ? mainNode.parentElement.getBoundingClientRect().bottom - mainNode.getBoundingClientRect().bottom : 0;
|
|
410
|
+
const fullContentHeight = Math.floor(
|
|
411
|
+
scrollableNodeTopOffsetFromRoot + scrollHeight + scrollBar + belowLyingNodesHeight + additionalPaddings
|
|
412
|
+
);
|
|
413
|
+
const contentHeight = fullContentHeight > MAX_AUTO_HEIGHT_PX ? MAX_AUTO_HEIGHT_PX : fullContentHeight;
|
|
414
|
+
setNewLayout({
|
|
415
|
+
contentHeight: Math.max(MIN_AUTO_HEIGHT_PX, contentHeight),
|
|
416
|
+
gridLayout,
|
|
417
|
+
layout,
|
|
418
|
+
cb,
|
|
419
|
+
widgetId,
|
|
420
|
+
needSetDefault
|
|
421
|
+
});
|
|
422
|
+
if (needHeightReset) {
|
|
423
|
+
setStyle(node, "height", prevHeight);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
function collectBelowLyingNodesHeight(node, limitNode, currentHeight = 0) {
|
|
427
|
+
if (node === limitNode) {
|
|
428
|
+
return currentHeight;
|
|
429
|
+
}
|
|
430
|
+
const nextSibling = node.nextElementSibling;
|
|
431
|
+
let height = currentHeight;
|
|
432
|
+
if (nextSibling) {
|
|
433
|
+
height = currentHeight + nextSibling.getBoundingClientRect().height;
|
|
434
|
+
}
|
|
435
|
+
if (nextSibling && nextSibling.nextElementSibling) {
|
|
436
|
+
return collectBelowLyingNodesHeight(nextSibling, limitNode, height);
|
|
437
|
+
} else if (node.parentElement) {
|
|
438
|
+
return collectBelowLyingNodesHeight(node.parentElement, limitNode, height);
|
|
439
|
+
} else {
|
|
440
|
+
return height;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
function getControlHint(source) {
|
|
444
|
+
return source.showHint ? source.hint : void 0;
|
|
445
|
+
}
|
|
446
|
+
function getPreparedWrapSettings(backgroundColor, additionalStyle) {
|
|
447
|
+
const hasBgColor = Boolean(backgroundColor) && backgroundColor !== CustomPaletteBgColors.NONE;
|
|
448
|
+
const newBackgroundColor = backgroundColor === CustomPaletteBgColors.LIKE_CHART ? LIKE_CHART_COLOR_TOKEN : backgroundColor;
|
|
449
|
+
const style = {
|
|
450
|
+
...additionalStyle,
|
|
451
|
+
backgroundColor: hasBgColor || backgroundColor === CustomPaletteBgColors.NONE ? newBackgroundColor : void 0
|
|
452
|
+
};
|
|
453
|
+
return {
|
|
454
|
+
style,
|
|
455
|
+
hasBgColor
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
function useTextColorStyles(oldTextColor, textColorSettings) {
|
|
459
|
+
const theme = useThemeType();
|
|
460
|
+
return React__default.useMemo(() => {
|
|
461
|
+
const resultedNewTextColor = typeof textColorSettings === "string" ? textColorSettings : textColorSettings?.[theme];
|
|
462
|
+
return {
|
|
463
|
+
color: typeof oldTextColor === "string" ? oldTextColor : resultedNewTextColor
|
|
464
|
+
};
|
|
465
|
+
}, [oldTextColor, textColorSettings, theme]);
|
|
466
|
+
}
|
|
467
|
+
function useBorderRadiusStyles(borderRadius, globalBorderRadius) {
|
|
468
|
+
return React__default.useMemo(() => {
|
|
469
|
+
return {
|
|
470
|
+
borderRadius: borderRadius ?? globalBorderRadius
|
|
471
|
+
};
|
|
472
|
+
}, [borderRadius, globalBorderRadius]);
|
|
473
|
+
}
|
|
474
|
+
function usePreparedWrapSettings({
|
|
475
|
+
ownWidgetSettings,
|
|
476
|
+
globalWidgetSettings,
|
|
477
|
+
additionalStyle,
|
|
478
|
+
defaultOldColor
|
|
479
|
+
}) {
|
|
480
|
+
const theme = useThemeType();
|
|
481
|
+
const borderRadiusStyles = useBorderRadiusStyles(
|
|
482
|
+
ownWidgetSettings.borderRadius,
|
|
483
|
+
globalWidgetSettings.borderRadius
|
|
484
|
+
);
|
|
485
|
+
return React__default.useMemo(() => {
|
|
486
|
+
return getPreparedWrapSettings(
|
|
487
|
+
getResultedBgColor(
|
|
488
|
+
ownWidgetSettings.background,
|
|
489
|
+
theme,
|
|
490
|
+
defaultOldColor,
|
|
491
|
+
ownWidgetSettings.backgroundSettings
|
|
492
|
+
) ?? getResultedBgColor(
|
|
493
|
+
globalWidgetSettings.background,
|
|
494
|
+
theme,
|
|
495
|
+
defaultOldColor,
|
|
496
|
+
globalWidgetSettings.backgroundSettings
|
|
497
|
+
),
|
|
498
|
+
{ ...borderRadiusStyles, ...additionalStyle }
|
|
499
|
+
);
|
|
500
|
+
}, [
|
|
501
|
+
ownWidgetSettings.background,
|
|
502
|
+
globalWidgetSettings.background,
|
|
503
|
+
ownWidgetSettings.backgroundSettings,
|
|
504
|
+
globalWidgetSettings.backgroundSettings,
|
|
505
|
+
additionalStyle,
|
|
506
|
+
borderRadiusStyles,
|
|
507
|
+
defaultOldColor,
|
|
508
|
+
theme
|
|
509
|
+
]);
|
|
510
|
+
}
|
|
511
|
+
function getResultedBgColor(oldBgColor, theme, defaultColor, newBgColor) {
|
|
512
|
+
if (newBgColor?.color) {
|
|
513
|
+
return typeof newBgColor.color === "string" ? newBgColor.color : newBgColor.color?.[theme];
|
|
514
|
+
}
|
|
515
|
+
return getResultedOldBgColor(oldBgColor, defaultColor);
|
|
516
|
+
}
|
|
517
|
+
const b$d = block("chartkit-control-item");
|
|
518
|
+
function withWrapForControls(WrappedComponent) {
|
|
519
|
+
function WithWrapForControls(props) {
|
|
520
|
+
const {
|
|
521
|
+
type,
|
|
522
|
+
width,
|
|
523
|
+
hidden,
|
|
524
|
+
label,
|
|
525
|
+
labelInside,
|
|
526
|
+
className,
|
|
527
|
+
style,
|
|
528
|
+
renderOverlay,
|
|
529
|
+
labelClassName,
|
|
530
|
+
hint,
|
|
531
|
+
labelPlacement
|
|
532
|
+
} = props;
|
|
533
|
+
if (hidden) {
|
|
534
|
+
return null;
|
|
535
|
+
}
|
|
536
|
+
const showLabel = label && !labelInside && type !== CONTROL_TYPE.BUTTON && type !== CONTROL_TYPE.CHECKBOX && type !== CONTROL_TYPE.TEXTAREA;
|
|
537
|
+
const customStyle = style || { width };
|
|
538
|
+
const controlStyle = DL.IS_MOBILE ? { width: "100%" } : customStyle;
|
|
539
|
+
const vertical = showLabel && labelPlacement === TitlePlacementOption.Top;
|
|
540
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
541
|
+
"div",
|
|
542
|
+
{
|
|
543
|
+
className: b$d(
|
|
544
|
+
"control",
|
|
545
|
+
{ mobile: DL.IS_MOBILE, "without-label": !showLabel, vertical },
|
|
546
|
+
className
|
|
547
|
+
),
|
|
548
|
+
style: controlStyle,
|
|
549
|
+
"data-qa": ControlQA.chartkitControl
|
|
550
|
+
},
|
|
551
|
+
renderOverlay?.(),
|
|
552
|
+
showLabel && /* @__PURE__ */ React__default.createElement(
|
|
553
|
+
"div",
|
|
554
|
+
{
|
|
555
|
+
className: b$d("title", { vertical }, labelClassName),
|
|
556
|
+
"data-qa": ControlQA.controlLabel
|
|
557
|
+
},
|
|
558
|
+
/* @__PURE__ */ React__default.createElement("span", { title: label, className: b$d("title-text") }, label),
|
|
559
|
+
hint && /* @__PURE__ */ React__default.createElement(MarkdownHelpPopover, { markdown: hint })
|
|
560
|
+
),
|
|
561
|
+
/* @__PURE__ */ React__default.createElement(WrappedComponent, { ...props }),
|
|
562
|
+
hint && !showLabel && /* @__PURE__ */ React__default.createElement(MarkdownHelpPopover, { markdown: hint })
|
|
563
|
+
);
|
|
564
|
+
}
|
|
565
|
+
WithWrapForControls.propTypes = {
|
|
566
|
+
...WrappedComponent.propTypes,
|
|
567
|
+
type: PropTypes.oneOf(Object.values(CONTROL_TYPE)).isRequired,
|
|
568
|
+
label: PropTypes.string,
|
|
569
|
+
labelInside: PropTypes.bool,
|
|
570
|
+
innerLabel: PropTypes.string,
|
|
571
|
+
className: PropTypes.string,
|
|
572
|
+
hidden: PropTypes.bool,
|
|
573
|
+
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
574
|
+
};
|
|
575
|
+
return WithWrapForControls;
|
|
576
|
+
}
|
|
577
|
+
var withWrapForControls_default = withWrapForControls;
|
|
578
|
+
const DatepickerControl = registry.common.components.get("DatepickerControl", { wrap: true });
|
|
579
|
+
const b$c = block("chartkit-control-item");
|
|
580
|
+
const legoThemeNameMapper = {
|
|
581
|
+
light: "flat-secondary",
|
|
582
|
+
pseudo: "outlined",
|
|
583
|
+
link: "outlined-info",
|
|
584
|
+
accent: "action",
|
|
585
|
+
websearch: "action",
|
|
586
|
+
"flat-special": "flat-contrast",
|
|
587
|
+
"normal-special": "normal-contrast",
|
|
588
|
+
"pseudo-special": "outlined-contrast"
|
|
589
|
+
};
|
|
590
|
+
const tryResolveRelativeDate = (value, intervalPart) => {
|
|
591
|
+
try {
|
|
592
|
+
return resolveRelativeDate(value, intervalPart);
|
|
593
|
+
} catch (e) {
|
|
594
|
+
return false;
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
const tryResolveIntervalDate = (value) => {
|
|
598
|
+
try {
|
|
599
|
+
return resolveIntervalDate(value);
|
|
600
|
+
} catch (e) {
|
|
601
|
+
return false;
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
const controlSize = DL.IS_MOBILE ? MOBILE_SIZE.CONTROL : "m";
|
|
605
|
+
const controlWidth = DL.IS_MOBILE ? "100%" : void 0;
|
|
606
|
+
function BaseControlSelect({
|
|
607
|
+
searchable = true,
|
|
608
|
+
multiselect,
|
|
609
|
+
content,
|
|
610
|
+
value,
|
|
611
|
+
onChange,
|
|
612
|
+
getItems,
|
|
613
|
+
label,
|
|
614
|
+
labelInside,
|
|
615
|
+
innerLabel,
|
|
616
|
+
errorContent,
|
|
617
|
+
loadingItems,
|
|
618
|
+
itemsLoaderClassName,
|
|
619
|
+
onOpenChange,
|
|
620
|
+
placeholder,
|
|
621
|
+
required,
|
|
622
|
+
hasValidationError,
|
|
623
|
+
limitLabel,
|
|
624
|
+
disabled,
|
|
625
|
+
accentType
|
|
626
|
+
}) {
|
|
627
|
+
const [currentValue, setCurrentValue] = React__default.useState(
|
|
628
|
+
multiselect ? wrapToArray(value) : value
|
|
629
|
+
);
|
|
630
|
+
React__default.useEffect(() => {
|
|
631
|
+
setCurrentValue(multiselect ? wrapToArray(value) : value);
|
|
632
|
+
}, [value, multiselect]);
|
|
633
|
+
const items = content.filter(({ value: value2 }) => value2 !== null && value2 !== "" && value2 !== void 0).map(({ title, value: value2 }) => ({
|
|
634
|
+
value: value2,
|
|
635
|
+
title,
|
|
636
|
+
key: value2
|
|
637
|
+
}));
|
|
638
|
+
const wrappedOnChange = React__default.useCallback(
|
|
639
|
+
(value2) => {
|
|
640
|
+
const wrappedValue = value2 === null || Array.isArray(value2) && !value2.length ? "" : value2;
|
|
641
|
+
setCurrentValue(multiselect ? wrapToArray(wrappedValue) : wrappedValue);
|
|
642
|
+
return onChange(wrappedValue);
|
|
643
|
+
},
|
|
644
|
+
[onChange, multiselect]
|
|
645
|
+
);
|
|
646
|
+
const showSelectAll = currentValue?.length === items?.length && required ? false : void 0;
|
|
647
|
+
const size = DL.IS_MOBILE ? MOBILE_SIZE.YC_SELECT : "s";
|
|
648
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
649
|
+
YCSelect,
|
|
650
|
+
{
|
|
651
|
+
showSearch: searchable,
|
|
652
|
+
type: multiselect ? YCSelect.MULTIPLE : YCSelect.SINGLE,
|
|
653
|
+
allowEmptyValue: !required,
|
|
654
|
+
showMissingItems: true,
|
|
655
|
+
value: currentValue,
|
|
656
|
+
onUpdate: wrappedOnChange,
|
|
657
|
+
controlTestAnchor: ControlQA.controlSelect,
|
|
658
|
+
itemsListTestAnchor: ControlQA.controlSelectItems,
|
|
659
|
+
items: getItems ? void 0 : items,
|
|
660
|
+
initialItems: getItems ? items : void 0,
|
|
661
|
+
label: labelInside ? label : innerLabel,
|
|
662
|
+
limitLabel,
|
|
663
|
+
getItems,
|
|
664
|
+
loadingItems,
|
|
665
|
+
errorContent,
|
|
666
|
+
itemsLoaderClassName,
|
|
667
|
+
onOpenChange,
|
|
668
|
+
placeholder,
|
|
669
|
+
size,
|
|
670
|
+
className: b$c("yc-select", { accent: accentType }),
|
|
671
|
+
showSelectAll,
|
|
672
|
+
hasValidationError,
|
|
673
|
+
disabled
|
|
674
|
+
}
|
|
675
|
+
);
|
|
676
|
+
}
|
|
677
|
+
BaseControlSelect.propTypes = {
|
|
678
|
+
label: PropTypes.string,
|
|
679
|
+
param: PropTypes.string.isRequired,
|
|
680
|
+
multiselect: PropTypes.bool,
|
|
681
|
+
searchable: PropTypes.bool,
|
|
682
|
+
content: PropTypes.arrayOf(
|
|
683
|
+
PropTypes.shape({
|
|
684
|
+
title: PropTypes.string.isRequired,
|
|
685
|
+
value: PropTypes.string.isRequired
|
|
686
|
+
})
|
|
687
|
+
).isRequired,
|
|
688
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
|
|
689
|
+
onChange: PropTypes.func.isRequired,
|
|
690
|
+
getItems: PropTypes.func,
|
|
691
|
+
className: PropTypes.string,
|
|
692
|
+
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
693
|
+
hidden: PropTypes.bool,
|
|
694
|
+
labelInside: PropTypes.bool,
|
|
695
|
+
innerLabel: PropTypes.string,
|
|
696
|
+
loadingItems: PropTypes.bool,
|
|
697
|
+
errorContent: PropTypes.node,
|
|
698
|
+
itemsLoaderClassName: PropTypes.string,
|
|
699
|
+
onOpenChange: PropTypes.func,
|
|
700
|
+
placeholder: PropTypes.string,
|
|
701
|
+
widgetId: PropTypes.string,
|
|
702
|
+
required: PropTypes.bool,
|
|
703
|
+
hasValidationError: PropTypes.bool,
|
|
704
|
+
limitLabel: PropTypes.bool,
|
|
705
|
+
disabled: PropTypes.bool,
|
|
706
|
+
accentType: PropTypes.string
|
|
707
|
+
};
|
|
708
|
+
function BaseControlInput({
|
|
709
|
+
placeholder,
|
|
710
|
+
value,
|
|
711
|
+
onChange,
|
|
712
|
+
innerLabel,
|
|
713
|
+
labelInside,
|
|
714
|
+
label,
|
|
715
|
+
hasValidationError,
|
|
716
|
+
disabled,
|
|
717
|
+
accentType
|
|
718
|
+
}) {
|
|
719
|
+
const [text, setText] = React__default.useState(value || "");
|
|
720
|
+
React__default.useEffect(() => setText(value), [value]);
|
|
721
|
+
const isInvalid = hasValidationError && !text?.length;
|
|
722
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
723
|
+
TextInput,
|
|
724
|
+
{
|
|
725
|
+
placeholder,
|
|
726
|
+
className: b$c("component", { input: true, accent: accentType }),
|
|
727
|
+
value: text,
|
|
728
|
+
onUpdate: (value2) => setText(value2),
|
|
729
|
+
onKeyPress: (event) => event.charCode === 13 && onChange(text),
|
|
730
|
+
onBlur: () => {
|
|
731
|
+
setTimeout(() => {
|
|
732
|
+
onChange(text);
|
|
733
|
+
});
|
|
734
|
+
},
|
|
735
|
+
label: labelInside ? label : innerLabel,
|
|
736
|
+
qa: ControlQA.controlInput,
|
|
737
|
+
size: controlSize,
|
|
738
|
+
error: isInvalid,
|
|
739
|
+
disabled
|
|
740
|
+
}
|
|
741
|
+
);
|
|
742
|
+
}
|
|
743
|
+
BaseControlInput.propTypes = {
|
|
744
|
+
label: PropTypes.string,
|
|
745
|
+
param: PropTypes.string.isRequired,
|
|
746
|
+
placeholder: PropTypes.string,
|
|
747
|
+
value: PropTypes.string,
|
|
748
|
+
onChange: PropTypes.func.isRequired,
|
|
749
|
+
className: PropTypes.string,
|
|
750
|
+
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
751
|
+
hidden: PropTypes.bool,
|
|
752
|
+
innerLabel: PropTypes.string,
|
|
753
|
+
labelInside: PropTypes.bool,
|
|
754
|
+
widgetId: PropTypes.string,
|
|
755
|
+
required: PropTypes.bool,
|
|
756
|
+
hasValidationError: PropTypes.bool,
|
|
757
|
+
disabled: PropTypes.bool,
|
|
758
|
+
accentType: PropTypes.string
|
|
759
|
+
};
|
|
760
|
+
function BaseControlTextArea({ label, theme, value, placeholder, onChange }) {
|
|
761
|
+
const [text, setText] = React__default.useState(value);
|
|
762
|
+
const [showModal, setShowModal] = React__default.useState(false);
|
|
763
|
+
const handleClose = React__default.useCallback(() => {
|
|
764
|
+
if (text === value) {
|
|
765
|
+
setShowModal(false);
|
|
766
|
+
} else if (confirm(i18n$8("chartkit.control.items", "close-confirm"))) {
|
|
767
|
+
setShowModal(false);
|
|
768
|
+
setText(value);
|
|
769
|
+
}
|
|
770
|
+
}, [value, text]);
|
|
771
|
+
const handleClick = () => {
|
|
772
|
+
setShowModal(true);
|
|
773
|
+
};
|
|
774
|
+
const buttonTheme = theme in legoThemeNameMapper ? legoThemeNameMapper[theme] : theme;
|
|
775
|
+
const buttonSize = DL.IS_MOBILE ? MOBILE_SIZE.BUTTON : "s";
|
|
776
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
777
|
+
Button,
|
|
778
|
+
{
|
|
779
|
+
view: buttonTheme || "normal",
|
|
780
|
+
size: buttonSize,
|
|
781
|
+
width: "max",
|
|
782
|
+
onClick: handleClick
|
|
783
|
+
},
|
|
784
|
+
label
|
|
785
|
+
), showModal && /* @__PURE__ */ React__default.createElement(Dialog, { open: showModal, onClose: handleClose }, /* @__PURE__ */ React__default.createElement(Dialog.Header, { caption: label }), /* @__PURE__ */ React__default.createElement(Dialog.Body, null, /* @__PURE__ */ React__default.createElement(
|
|
786
|
+
TextArea,
|
|
787
|
+
{
|
|
788
|
+
value: text,
|
|
789
|
+
placeholder,
|
|
790
|
+
className: b$c("textarea"),
|
|
791
|
+
controlProps: {
|
|
792
|
+
style: {
|
|
793
|
+
resize: "both",
|
|
794
|
+
minWidth: 480,
|
|
795
|
+
minHeight: 28
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
onUpdate: (value2) => setText(value2),
|
|
799
|
+
size: controlSize
|
|
800
|
+
}
|
|
801
|
+
)), /* @__PURE__ */ React__default.createElement(
|
|
802
|
+
Dialog.Footer,
|
|
803
|
+
{
|
|
804
|
+
textButtonApply: i18n$8("chartkit.control.items", "apply"),
|
|
805
|
+
onClickButtonApply: () => {
|
|
806
|
+
setShowModal(false);
|
|
807
|
+
onChange(text);
|
|
808
|
+
},
|
|
809
|
+
textButtonCancel: i18n$8("chartkit.control.items", "close"),
|
|
810
|
+
onClickButtonCancel: handleClose
|
|
811
|
+
}
|
|
812
|
+
)));
|
|
813
|
+
}
|
|
814
|
+
BaseControlTextArea.propTypes = {
|
|
815
|
+
label: PropTypes.string,
|
|
816
|
+
param: PropTypes.string.isRequired,
|
|
817
|
+
theme: PropTypes.string,
|
|
818
|
+
value: PropTypes.string,
|
|
819
|
+
placeholder: PropTypes.string,
|
|
820
|
+
onChange: PropTypes.func.isRequired,
|
|
821
|
+
className: PropTypes.string,
|
|
822
|
+
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
823
|
+
hidden: PropTypes.bool,
|
|
824
|
+
widgetId: PropTypes.string
|
|
825
|
+
};
|
|
826
|
+
function BaseControlDatepicker({
|
|
827
|
+
minDate,
|
|
828
|
+
maxDate,
|
|
829
|
+
format,
|
|
830
|
+
timeFormat,
|
|
831
|
+
value,
|
|
832
|
+
onChange,
|
|
833
|
+
widgetId = "",
|
|
834
|
+
required,
|
|
835
|
+
hasValidationError,
|
|
836
|
+
innerLabel,
|
|
837
|
+
labelInside,
|
|
838
|
+
label,
|
|
839
|
+
labelPlacement,
|
|
840
|
+
disabled,
|
|
841
|
+
accentType
|
|
842
|
+
}) {
|
|
843
|
+
const date = value && tryResolveRelativeDate(value) || value;
|
|
844
|
+
const wrappedOnChange = React__default.useCallback(
|
|
845
|
+
({ from }) => onChange(from === null ? "" : from),
|
|
846
|
+
[onChange]
|
|
847
|
+
);
|
|
848
|
+
const vertical = labelPlacement === TitlePlacementOption.Top;
|
|
849
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
850
|
+
DatepickerControl,
|
|
851
|
+
{
|
|
852
|
+
widgetId,
|
|
853
|
+
min: minDate,
|
|
854
|
+
max: maxDate,
|
|
855
|
+
from: date,
|
|
856
|
+
format: format || `dd.MM.yyyy ${timeFormat || ""}`.trim(),
|
|
857
|
+
scale: "day",
|
|
858
|
+
timezoneOffset: 0,
|
|
859
|
+
range: false,
|
|
860
|
+
hasClear: !required,
|
|
861
|
+
showApply: false,
|
|
862
|
+
allowNullableValues: true,
|
|
863
|
+
emptyValueText: i18n$8("chartkit.control.items", "value_undefined"),
|
|
864
|
+
onUpdate: wrappedOnChange,
|
|
865
|
+
controlSize,
|
|
866
|
+
controlWidth,
|
|
867
|
+
className: b$c("component", { vertical, accent: accentType }),
|
|
868
|
+
hasValidationError,
|
|
869
|
+
required,
|
|
870
|
+
label: labelInside ? label : innerLabel,
|
|
871
|
+
disabled
|
|
872
|
+
}
|
|
873
|
+
);
|
|
874
|
+
}
|
|
875
|
+
BaseControlDatepicker.propTypes = {
|
|
876
|
+
label: PropTypes.string,
|
|
877
|
+
param: PropTypes.string.isRequired,
|
|
878
|
+
minDate: PropTypes.string,
|
|
879
|
+
maxDate: PropTypes.string,
|
|
880
|
+
format: PropTypes.string,
|
|
881
|
+
timeFormat: PropTypes.string,
|
|
882
|
+
value: PropTypes.string,
|
|
883
|
+
onChange: PropTypes.func.isRequired,
|
|
884
|
+
className: PropTypes.string,
|
|
885
|
+
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
886
|
+
hidden: PropTypes.bool,
|
|
887
|
+
widgetId: PropTypes.string,
|
|
888
|
+
required: PropTypes.bool,
|
|
889
|
+
hasValidationError: PropTypes.bool,
|
|
890
|
+
innerLabel: PropTypes.string,
|
|
891
|
+
labelInside: PropTypes.bool,
|
|
892
|
+
labelPlacement: PropTypes.string,
|
|
893
|
+
disabled: PropTypes.bool,
|
|
894
|
+
accentType: PropTypes.string
|
|
895
|
+
};
|
|
896
|
+
function BaseControlRangeDatepicker({
|
|
897
|
+
minDate,
|
|
898
|
+
maxDate,
|
|
899
|
+
format,
|
|
900
|
+
timeFormat,
|
|
901
|
+
value,
|
|
902
|
+
returnInterval,
|
|
903
|
+
onChange,
|
|
904
|
+
widgetId = "",
|
|
905
|
+
required,
|
|
906
|
+
hasValidationError,
|
|
907
|
+
innerLabel,
|
|
908
|
+
labelInside,
|
|
909
|
+
label,
|
|
910
|
+
labelPlacement,
|
|
911
|
+
disabled,
|
|
912
|
+
accentType
|
|
913
|
+
}) {
|
|
914
|
+
let from;
|
|
915
|
+
let to;
|
|
916
|
+
if (value) {
|
|
917
|
+
if (typeof value === "object") {
|
|
918
|
+
from = value.from && tryResolveRelativeDate(value.from, "start") || value.from;
|
|
919
|
+
to = value.to && tryResolveRelativeDate(value.to, "end") || value.to;
|
|
920
|
+
} else {
|
|
921
|
+
const resolved = value && tryResolveIntervalDate(value);
|
|
922
|
+
if (resolved) {
|
|
923
|
+
from = resolved.from;
|
|
924
|
+
to = resolved.to;
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
const wrappedOnChange = React__default.useCallback(
|
|
929
|
+
({ from: from2, to: to2 }) => {
|
|
930
|
+
const resultFrom = from2 === null ? "" : from2;
|
|
931
|
+
const resultTo = to2 === null ? "" : to2;
|
|
932
|
+
let result;
|
|
933
|
+
if (returnInterval) {
|
|
934
|
+
result = resultFrom && resultTo ? `__interval_${resultFrom}_${resultTo}` : "";
|
|
935
|
+
} else {
|
|
936
|
+
result = { from: resultFrom, to: resultTo };
|
|
937
|
+
}
|
|
938
|
+
onChange(result);
|
|
939
|
+
},
|
|
940
|
+
[returnInterval, onChange]
|
|
941
|
+
);
|
|
942
|
+
const vertical = labelPlacement === TitlePlacementOption.Top;
|
|
943
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
944
|
+
DatepickerControl,
|
|
945
|
+
{
|
|
946
|
+
widgetId,
|
|
947
|
+
min: minDate,
|
|
948
|
+
max: maxDate,
|
|
949
|
+
from,
|
|
950
|
+
to,
|
|
951
|
+
format: format || `dd.MM.yyyy ${timeFormat || ""}`.trim(),
|
|
952
|
+
timezoneOffset: 0,
|
|
953
|
+
hasClear: !required,
|
|
954
|
+
showApply: false,
|
|
955
|
+
allowNullableValues: true,
|
|
956
|
+
emptyValueText: i18n$8("chartkit.control.items", "value_undefined"),
|
|
957
|
+
onUpdate: wrappedOnChange,
|
|
958
|
+
controlSize,
|
|
959
|
+
controlWidth,
|
|
960
|
+
className: b$c("component", { vertical, accent: accentType }),
|
|
961
|
+
hasValidationError,
|
|
962
|
+
required,
|
|
963
|
+
fillPartialInterval: true,
|
|
964
|
+
label: labelInside ? label : innerLabel,
|
|
965
|
+
disabled
|
|
966
|
+
}
|
|
967
|
+
);
|
|
968
|
+
}
|
|
969
|
+
BaseControlRangeDatepicker.propTypes = {
|
|
970
|
+
label: PropTypes.string,
|
|
971
|
+
param: PropTypes.string,
|
|
972
|
+
// for the case __interval_YYYY-MM-DD_YYYY-MM-DD
|
|
973
|
+
paramFrom: PropTypes.string,
|
|
974
|
+
paramTo: PropTypes.string,
|
|
975
|
+
format: PropTypes.string,
|
|
976
|
+
timeFormat: PropTypes.string,
|
|
977
|
+
returnInterval: PropTypes.bool,
|
|
978
|
+
minDate: PropTypes.string,
|
|
979
|
+
maxDate: PropTypes.string,
|
|
980
|
+
value: PropTypes.oneOfType([
|
|
981
|
+
PropTypes.shape({
|
|
982
|
+
from: PropTypes.string,
|
|
983
|
+
to: PropTypes.string
|
|
984
|
+
}),
|
|
985
|
+
PropTypes.string
|
|
986
|
+
]),
|
|
987
|
+
onChange: PropTypes.func.isRequired,
|
|
988
|
+
className: PropTypes.string,
|
|
989
|
+
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
990
|
+
hidden: PropTypes.bool,
|
|
991
|
+
widgetId: PropTypes.string,
|
|
992
|
+
required: PropTypes.bool,
|
|
993
|
+
hasValidationError: PropTypes.bool,
|
|
994
|
+
innerLabel: PropTypes.string,
|
|
995
|
+
labelInside: PropTypes.bool,
|
|
996
|
+
labelPlacement: PropTypes.string,
|
|
997
|
+
disabled: PropTypes.bool,
|
|
998
|
+
accentType: PropTypes.string
|
|
999
|
+
};
|
|
1000
|
+
function BaseControlButton({ label, theme, onChange, qa, disabled, loading }) {
|
|
1001
|
+
const buttonTheme = theme in legoThemeNameMapper ? legoThemeNameMapper[theme] : theme;
|
|
1002
|
+
const size = DL.IS_MOBILE ? MOBILE_SIZE.BUTTON : "s";
|
|
1003
|
+
const handleClick = () => {
|
|
1004
|
+
setTimeout(onChange);
|
|
1005
|
+
};
|
|
1006
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1007
|
+
Button,
|
|
1008
|
+
{
|
|
1009
|
+
view: buttonTheme || "normal",
|
|
1010
|
+
size,
|
|
1011
|
+
width: "max",
|
|
1012
|
+
onClick: handleClick,
|
|
1013
|
+
disabled,
|
|
1014
|
+
qa,
|
|
1015
|
+
loading
|
|
1016
|
+
},
|
|
1017
|
+
label || i18n$8("chartkit.control.items", "apply")
|
|
1018
|
+
);
|
|
1019
|
+
}
|
|
1020
|
+
BaseControlButton.propTypes = {
|
|
1021
|
+
label: PropTypes.string,
|
|
1022
|
+
theme: PropTypes.string,
|
|
1023
|
+
onChange: PropTypes.func.isRequired,
|
|
1024
|
+
qa: PropTypes.string,
|
|
1025
|
+
loading: PropTypes.bool
|
|
1026
|
+
};
|
|
1027
|
+
function BaseControlCheckbox({ label, value, onChange, disabled }) {
|
|
1028
|
+
const checked = value === CheckboxControlValue.TRUE;
|
|
1029
|
+
const size = DL.IS_MOBILE ? MOBILE_SIZE.CHECKBOX : "m";
|
|
1030
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1031
|
+
Checkbox,
|
|
1032
|
+
{
|
|
1033
|
+
theme: "normal",
|
|
1034
|
+
view: "default",
|
|
1035
|
+
size,
|
|
1036
|
+
checked,
|
|
1037
|
+
title: label,
|
|
1038
|
+
onChange: () => onChange(checked ? CheckboxControlValue.FALSE : CheckboxControlValue.TRUE),
|
|
1039
|
+
disabled
|
|
1040
|
+
},
|
|
1041
|
+
label
|
|
1042
|
+
);
|
|
1043
|
+
}
|
|
1044
|
+
BaseControlCheckbox.propTypes = {
|
|
1045
|
+
label: PropTypes.string,
|
|
1046
|
+
param: PropTypes.string.isRequired,
|
|
1047
|
+
dateFormat: PropTypes.string,
|
|
1048
|
+
minDate: PropTypes.string,
|
|
1049
|
+
maxDate: PropTypes.string,
|
|
1050
|
+
value: PropTypes.string,
|
|
1051
|
+
onChange: PropTypes.func.isRequired,
|
|
1052
|
+
className: PropTypes.string,
|
|
1053
|
+
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
1054
|
+
hidden: PropTypes.bool,
|
|
1055
|
+
widgetId: PropTypes.string,
|
|
1056
|
+
disabled: PropTypes.bool
|
|
1057
|
+
};
|
|
1058
|
+
const ControlInput = withWrapForControls_default(BaseControlInput);
|
|
1059
|
+
const ControlTextArea = withWrapForControls_default(BaseControlTextArea);
|
|
1060
|
+
const ControlSelect = withWrapForControls_default(BaseControlSelect);
|
|
1061
|
+
const ControlButton = withWrapForControls_default(BaseControlButton);
|
|
1062
|
+
const ControlCheckbox = withWrapForControls_default(BaseControlCheckbox);
|
|
1063
|
+
const ControlDatepicker = withWrapForControls_default(BaseControlDatepicker);
|
|
1064
|
+
const ControlRangeDatepicker = withWrapForControls_default(BaseControlRangeDatepicker);
|
|
1065
|
+
const b$b = block("debug-info-tool");
|
|
1066
|
+
function getDebugText({ label, value }, index) {
|
|
1067
|
+
return /* @__PURE__ */ jsxs(
|
|
1068
|
+
"span",
|
|
1069
|
+
{
|
|
1070
|
+
className: b$b("text"),
|
|
1071
|
+
children: [
|
|
1072
|
+
label,
|
|
1073
|
+
": ",
|
|
1074
|
+
value
|
|
1075
|
+
]
|
|
1076
|
+
},
|
|
1077
|
+
index === void 0 ? null : `debug-item-${label}-${value}-${index}`
|
|
1078
|
+
);
|
|
1079
|
+
}
|
|
1080
|
+
const DebugInfoTool = (props) => {
|
|
1081
|
+
const dlDebugMode = useSelector(selectDebugMode);
|
|
1082
|
+
if (!dlDebugMode) {
|
|
1083
|
+
return null;
|
|
1084
|
+
}
|
|
1085
|
+
const text = props.data?.length ? props.data.map((item, index) => getDebugText(item, index)) : getDebugText(props);
|
|
1086
|
+
const { modType } = props;
|
|
1087
|
+
const mod = modType ? { [modType]: true } : null;
|
|
1088
|
+
return /* @__PURE__ */ jsx("div", { className: b$b("label", mod), children: text });
|
|
1089
|
+
};
|
|
1090
|
+
const useBeforeLoad = (onBeforeLoad) => {
|
|
1091
|
+
const onUpdate = React__default.useRef();
|
|
1092
|
+
if (!onUpdate.current && onBeforeLoad) {
|
|
1093
|
+
onUpdate.current = debounce(onBeforeLoad(), DEBOUNCE_RENDER_TIMEOUT);
|
|
1094
|
+
}
|
|
1095
|
+
return onUpdate.current;
|
|
1096
|
+
};
|
|
1097
|
+
const ExtendedDashKitContext = createContext(null);
|
|
1098
|
+
const i18n$7 = I18n.keyset("component.dashkit.view");
|
|
1099
|
+
const b$a = block("dashkit-plugin-menu");
|
|
1100
|
+
function getEntryId(configItem, state) {
|
|
1101
|
+
const { type, data } = configItem;
|
|
1102
|
+
let entryId;
|
|
1103
|
+
if (type === DashTabItemType.Control) {
|
|
1104
|
+
const source = data?.source;
|
|
1105
|
+
if (source) {
|
|
1106
|
+
entryId = source?.chartId;
|
|
1107
|
+
}
|
|
1108
|
+
} else {
|
|
1109
|
+
const itemTabs = data?.tabs;
|
|
1110
|
+
if (itemTabs) {
|
|
1111
|
+
const stateTabId = state?.tabId;
|
|
1112
|
+
const itemTab = itemTabs.find((iTab) => iTab.id === stateTabId) || itemTabs[0];
|
|
1113
|
+
entryId = itemTab.chartId;
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
return entryId ? entryId : null;
|
|
1117
|
+
}
|
|
1118
|
+
function getDashKitMenu(onRemoveItem) {
|
|
1119
|
+
return [
|
|
1120
|
+
{
|
|
1121
|
+
id: "edit",
|
|
1122
|
+
title: i18n$7("label_edit"),
|
|
1123
|
+
icon: /* @__PURE__ */ jsx(Icon, { data: Pencil, size: 16 }),
|
|
1124
|
+
handler: (configItem, params, state) => {
|
|
1125
|
+
const entryId = getEntryId(configItem, state);
|
|
1126
|
+
if (entryId) {
|
|
1127
|
+
getRouter().open(
|
|
1128
|
+
{ pathname: `/navigate/${entryId}`, search: toSearchParams(params) },
|
|
1129
|
+
"_blank"
|
|
1130
|
+
);
|
|
1131
|
+
}
|
|
1132
|
+
},
|
|
1133
|
+
visible: (configItem) => {
|
|
1134
|
+
const { type, data } = configItem;
|
|
1135
|
+
return type === DashTabItemType.Widget || type === DashTabItemType.Control && data?.sourceType === DashTabItemControlSourceType.External;
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
id: MenuItems.Copy,
|
|
1140
|
+
title: i18n$7("label_copy"),
|
|
1141
|
+
icon: /* @__PURE__ */ jsx(Icon, { data: Copy, size: 16 }),
|
|
1142
|
+
qa: DashKitOverlayMenuQa.CopyButton
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
id: MenuItems.Delete,
|
|
1146
|
+
title: i18n$7("label_delete"),
|
|
1147
|
+
icon: /* @__PURE__ */ jsx(Icon, { data: TrashBin, size: 16 }),
|
|
1148
|
+
className: b$a("item", { danger: true }),
|
|
1149
|
+
qa: DashKitOverlayMenuQa.RemoveButton,
|
|
1150
|
+
handler: onRemoveItem
|
|
1151
|
+
}
|
|
1152
|
+
];
|
|
1153
|
+
}
|
|
1154
|
+
const DashkitWrapper = React__default.forwardRef(
|
|
1155
|
+
({
|
|
1156
|
+
skipReload = false,
|
|
1157
|
+
dataProviderContextGetter,
|
|
1158
|
+
setWidgetCurrentTab,
|
|
1159
|
+
updateTabsWithGlobalState,
|
|
1160
|
+
...props
|
|
1161
|
+
}, ref) => {
|
|
1162
|
+
const contextValue = React__default.useMemo(() => {
|
|
1163
|
+
return {
|
|
1164
|
+
config: props.config,
|
|
1165
|
+
defaultGlobalParams: props.defaultGlobalParams,
|
|
1166
|
+
skipReload,
|
|
1167
|
+
setWidgetCurrentTab,
|
|
1168
|
+
updateTabsWithGlobalState,
|
|
1169
|
+
dataProviderContextGetter,
|
|
1170
|
+
hideErrorDetails: props.hideErrorDetails,
|
|
1171
|
+
selectorsGroupTitlePlaceholder: props.selectorsGroupTitlePlaceholder
|
|
1172
|
+
};
|
|
1173
|
+
}, [
|
|
1174
|
+
props.config,
|
|
1175
|
+
props.defaultGlobalParams,
|
|
1176
|
+
skipReload,
|
|
1177
|
+
setWidgetCurrentTab,
|
|
1178
|
+
updateTabsWithGlobalState,
|
|
1179
|
+
dataProviderContextGetter,
|
|
1180
|
+
props.hideErrorDetails,
|
|
1181
|
+
props.selectorsGroupTitlePlaceholder
|
|
1182
|
+
]);
|
|
1183
|
+
return /* @__PURE__ */ jsx(ExtendedDashKitContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(DashKit, { ...props, ref }) });
|
|
1184
|
+
}
|
|
1185
|
+
);
|
|
1186
|
+
DashkitWrapper.displayName = "DashkitContainer";
|
|
1187
|
+
const WidgetContext = React__default.createContext(null);
|
|
1188
|
+
const WidgetContextProvider = (props) => {
|
|
1189
|
+
const contextValue = React__default.useMemo(
|
|
1190
|
+
() => ({
|
|
1191
|
+
onWidgetMountChange: props.onWidgetMountChange,
|
|
1192
|
+
onWidgetLoadData: props.onWidgetLoadData
|
|
1193
|
+
}),
|
|
1194
|
+
[props.onWidgetMountChange, props.onWidgetLoadData]
|
|
1195
|
+
);
|
|
1196
|
+
return /* @__PURE__ */ jsx(WidgetContext.Provider, { value: contextValue, children: props.children });
|
|
1197
|
+
};
|
|
1198
|
+
const useWidgetContext = ({
|
|
1199
|
+
id,
|
|
1200
|
+
elementRef
|
|
1201
|
+
}) => {
|
|
1202
|
+
const context = React__default.useContext(WidgetContext);
|
|
1203
|
+
const onMountChange = context?.onWidgetMountChange;
|
|
1204
|
+
const onWidgetLoadData = context?.onWidgetLoadData;
|
|
1205
|
+
React__default.useEffect(() => {
|
|
1206
|
+
const element = elementRef.current;
|
|
1207
|
+
if (element && onMountChange) {
|
|
1208
|
+
onMountChange(true, id, element);
|
|
1209
|
+
return () => {
|
|
1210
|
+
onMountChange(false, id, element);
|
|
1211
|
+
};
|
|
1212
|
+
}
|
|
1213
|
+
return () => {
|
|
1214
|
+
};
|
|
1215
|
+
}, [id, elementRef, onMountChange]);
|
|
1216
|
+
return { onWidgetLoadData };
|
|
1217
|
+
};
|
|
1218
|
+
const b$9 = block("control-item-select");
|
|
1219
|
+
const i18n$6 = I18n.keyset("dash.dashkit-plugin-control.view");
|
|
1220
|
+
const ControlItemSelect = ({
|
|
1221
|
+
defaults,
|
|
1222
|
+
data,
|
|
1223
|
+
id,
|
|
1224
|
+
loadedData,
|
|
1225
|
+
status,
|
|
1226
|
+
actualParams,
|
|
1227
|
+
onChange,
|
|
1228
|
+
getDistincts,
|
|
1229
|
+
loadingItems,
|
|
1230
|
+
errorData,
|
|
1231
|
+
validationError,
|
|
1232
|
+
init,
|
|
1233
|
+
setItemsLoader,
|
|
1234
|
+
validateValue,
|
|
1235
|
+
classMixin,
|
|
1236
|
+
selectProps,
|
|
1237
|
+
renderOverlay,
|
|
1238
|
+
labelMixin
|
|
1239
|
+
}) => {
|
|
1240
|
+
const dispatch = useDispatch();
|
|
1241
|
+
let _loadingItemsTimer;
|
|
1242
|
+
const workbookId = useSelector(selectDashWorkbookId);
|
|
1243
|
+
const getSelectDistincts = React__default.useCallback(
|
|
1244
|
+
async ({ searchPattern, nextPageToken }) => {
|
|
1245
|
+
try {
|
|
1246
|
+
const datasetData = data;
|
|
1247
|
+
const datasetSourceInfo = getDatasetSourceInfo({
|
|
1248
|
+
actualLoadedData: loadedData,
|
|
1249
|
+
data: datasetData
|
|
1250
|
+
});
|
|
1251
|
+
const { datasetId, datasetFieldId } = datasetSourceInfo;
|
|
1252
|
+
const { filters, parameter_values } = processParamsForGetDistincts({
|
|
1253
|
+
params: actualParams,
|
|
1254
|
+
datasetSourceInfo,
|
|
1255
|
+
searchPattern
|
|
1256
|
+
});
|
|
1257
|
+
const { result } = await getDistincts(
|
|
1258
|
+
{
|
|
1259
|
+
datasetId,
|
|
1260
|
+
workbookId,
|
|
1261
|
+
fields: [
|
|
1262
|
+
{
|
|
1263
|
+
ref: { type: "id", id: datasetFieldId },
|
|
1264
|
+
role_spec: { role: "distinct" }
|
|
1265
|
+
}
|
|
1266
|
+
],
|
|
1267
|
+
limit: LIMIT,
|
|
1268
|
+
offset: LIMIT * nextPageToken,
|
|
1269
|
+
filters,
|
|
1270
|
+
parameter_values
|
|
1271
|
+
},
|
|
1272
|
+
void 0,
|
|
1273
|
+
{ datasetSourceInfo, searchPattern }
|
|
1274
|
+
);
|
|
1275
|
+
return {
|
|
1276
|
+
items: result.data.Data.map(([value2]) => ({ value: value2, title: value2 })),
|
|
1277
|
+
nextPageToken: result.data.Data.length < LIMIT ? void 0 : nextPageToken + 1
|
|
1278
|
+
};
|
|
1279
|
+
} catch (error) {
|
|
1280
|
+
logger.logError("DashKit: Control getDistincts failed", error);
|
|
1281
|
+
console.error("SELECT_GET_ITEMS_FAILED", error);
|
|
1282
|
+
throw error;
|
|
1283
|
+
}
|
|
1284
|
+
},
|
|
1285
|
+
[actualParams, data, getDistincts, loadedData, workbookId]
|
|
1286
|
+
);
|
|
1287
|
+
const getItems = async ({
|
|
1288
|
+
searchPattern,
|
|
1289
|
+
exactKeys,
|
|
1290
|
+
nextPageToken = 0
|
|
1291
|
+
}) => {
|
|
1292
|
+
if (searchPattern || !searchPattern && nextPageToken) {
|
|
1293
|
+
return getSelectDistincts({ searchPattern, nextPageToken });
|
|
1294
|
+
} else if (exactKeys) {
|
|
1295
|
+
return {
|
|
1296
|
+
items: exactKeys.map((value2) => ({ value: value2, title: value2 })),
|
|
1297
|
+
nextPageToken: nextPageToken + 1
|
|
1298
|
+
};
|
|
1299
|
+
}
|
|
1300
|
+
return { items: [] };
|
|
1301
|
+
};
|
|
1302
|
+
const getErrorContent = () => {
|
|
1303
|
+
const data2 = errorData?.data;
|
|
1304
|
+
const errorText = getErrorText(data2 || {});
|
|
1305
|
+
const errorTitle = data2?.title;
|
|
1306
|
+
const errorMessage = errorTitle || errorText;
|
|
1307
|
+
const showButtons = !errorData?.extra?.hideErrorDetails;
|
|
1308
|
+
const buttonsSize = DL.IS_MOBILE ? MOBILE_SIZE.BUTTON : "s";
|
|
1309
|
+
const buttonsWidth = DL.IS_MOBILE ? "max" : "auto";
|
|
1310
|
+
return /* @__PURE__ */ jsxs("div", { className: b$9("error", { inside: true, mobile: DL.IS_MOBILE }), children: [
|
|
1311
|
+
/* @__PURE__ */ jsx("span", { className: b$9("error-text"), title: errorMessage, children: errorMessage }),
|
|
1312
|
+
showButtons && /* @__PURE__ */ jsxs("div", { className: b$9("buttons"), children: [
|
|
1313
|
+
/* @__PURE__ */ jsx(
|
|
1314
|
+
Button,
|
|
1315
|
+
{
|
|
1316
|
+
size: buttonsSize,
|
|
1317
|
+
onClick: () => {
|
|
1318
|
+
setItemsLoader(true);
|
|
1319
|
+
init();
|
|
1320
|
+
},
|
|
1321
|
+
width: buttonsWidth,
|
|
1322
|
+
children: i18n$6("button_retry")
|
|
1323
|
+
}
|
|
1324
|
+
),
|
|
1325
|
+
/* @__PURE__ */ jsx(
|
|
1326
|
+
Button,
|
|
1327
|
+
{
|
|
1328
|
+
size: buttonsSize,
|
|
1329
|
+
view: "flat",
|
|
1330
|
+
onClick: () => dispatch(
|
|
1331
|
+
openDialogErrorWithTabs({
|
|
1332
|
+
error: prepareSelectorError(
|
|
1333
|
+
data2 || {}
|
|
1334
|
+
),
|
|
1335
|
+
title: errorTitle
|
|
1336
|
+
})
|
|
1337
|
+
),
|
|
1338
|
+
width: buttonsWidth,
|
|
1339
|
+
children: i18n$6("button_details")
|
|
1340
|
+
}
|
|
1341
|
+
)
|
|
1342
|
+
] })
|
|
1343
|
+
] });
|
|
1344
|
+
};
|
|
1345
|
+
const onOpenChange = ({ open }) => {
|
|
1346
|
+
clearTimeout(_loadingItemsTimer);
|
|
1347
|
+
if (status !== LOAD_STATUS.PENDING && loadingItems) {
|
|
1348
|
+
setItemsLoader(false);
|
|
1349
|
+
}
|
|
1350
|
+
if (status === LOAD_STATUS.PENDING) {
|
|
1351
|
+
if (open) {
|
|
1352
|
+
setItemsLoader(true);
|
|
1353
|
+
} else {
|
|
1354
|
+
_loadingItemsTimer = setTimeout(() => {
|
|
1355
|
+
if (status === LOAD_STATUS.PENDING) {
|
|
1356
|
+
setItemsLoader(true);
|
|
1357
|
+
}
|
|
1358
|
+
});
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
};
|
|
1362
|
+
const { source, sourceType } = data;
|
|
1363
|
+
const fieldId = sourceType === DashTabItemControlSourceType.Dataset ? source.datasetFieldId : source.fieldName;
|
|
1364
|
+
const selectedValue = unwrapFromArrayAndSkipOperation(defaults[fieldId]);
|
|
1365
|
+
const preselectedContent = [{ title: selectedValue, value: selectedValue }];
|
|
1366
|
+
const content = loadedData ? (loadedData.uiScheme?.controls[0]).content : null;
|
|
1367
|
+
const disabled = loadedData?.uiScheme?.controls[0].disabled;
|
|
1368
|
+
const emptyPaceholder = i18n$6("placeholder_empty");
|
|
1369
|
+
const preparedValue = unwrapFromArrayAndSkipOperation(actualParams[fieldId]);
|
|
1370
|
+
const initialValidationError = isValidRequiredValue({
|
|
1371
|
+
required: source.required,
|
|
1372
|
+
value: preparedValue
|
|
1373
|
+
}) ? i18n$6("value_required") : null;
|
|
1374
|
+
const selectValidationError = validationError || initialValidationError;
|
|
1375
|
+
const placeholder = selectValidationError || emptyPaceholder;
|
|
1376
|
+
const onSelectChange = (value2) => {
|
|
1377
|
+
const hasError = validateValue({
|
|
1378
|
+
required: source.required,
|
|
1379
|
+
value: value2
|
|
1380
|
+
});
|
|
1381
|
+
if (hasError) {
|
|
1382
|
+
return;
|
|
1383
|
+
}
|
|
1384
|
+
const valueWithOperation = addOperationForValue({
|
|
1385
|
+
value: value2,
|
|
1386
|
+
operation: source.operation
|
|
1387
|
+
});
|
|
1388
|
+
onChange({ param: fieldId, value: valueWithOperation });
|
|
1389
|
+
};
|
|
1390
|
+
const value = disabled || !loadedData ? "" : preparedValue;
|
|
1391
|
+
const props = {
|
|
1392
|
+
widgetId: id,
|
|
1393
|
+
content: content || preselectedContent,
|
|
1394
|
+
param: fieldId,
|
|
1395
|
+
multiselect: source.multiselectable,
|
|
1396
|
+
type: TYPE.SELECT,
|
|
1397
|
+
className: b$9(null, classMixin),
|
|
1398
|
+
labelClassName: b$9(null, labelMixin),
|
|
1399
|
+
key: fieldId,
|
|
1400
|
+
value,
|
|
1401
|
+
onChange: onSelectChange,
|
|
1402
|
+
onOpenChange,
|
|
1403
|
+
loadingItems,
|
|
1404
|
+
placeholder,
|
|
1405
|
+
required: source.required,
|
|
1406
|
+
hint: getControlHint(source),
|
|
1407
|
+
hasValidationError: Boolean(selectValidationError),
|
|
1408
|
+
renderOverlay,
|
|
1409
|
+
disabled,
|
|
1410
|
+
...selectProps
|
|
1411
|
+
};
|
|
1412
|
+
if (status === LOAD_STATUS.FAIL) {
|
|
1413
|
+
props.errorContent = getErrorContent();
|
|
1414
|
+
props.itemsLoaderClassName = b$9("select-loader");
|
|
1415
|
+
}
|
|
1416
|
+
if (props.content.length >= LIMIT && sourceType === DashTabItemControlSourceType.Dataset) {
|
|
1417
|
+
props.getItems = getItems;
|
|
1418
|
+
}
|
|
1419
|
+
return /* @__PURE__ */ jsx(ControlSelect, { ...props });
|
|
1420
|
+
};
|
|
1421
|
+
const b$8 = block("dashkit-control-error");
|
|
1422
|
+
const i18n$5 = I18n.keyset("component.dashkit.view");
|
|
1423
|
+
function Error({ onClickRetry, errorData }) {
|
|
1424
|
+
const dispatch = useDispatch();
|
|
1425
|
+
const errorTitle = errorData?.data?.title;
|
|
1426
|
+
const hideErrorDetails = errorData?.extra?.hideErrorDetails;
|
|
1427
|
+
const errorText = errorTitle || i18n$5("label_error");
|
|
1428
|
+
const handleClick = () => {
|
|
1429
|
+
if (errorData) {
|
|
1430
|
+
dispatch(
|
|
1431
|
+
openDialogErrorWithTabs({
|
|
1432
|
+
error: prepareSelectorError(
|
|
1433
|
+
errorData?.data || {},
|
|
1434
|
+
errorData?.requestId
|
|
1435
|
+
),
|
|
1436
|
+
title: errorTitle,
|
|
1437
|
+
onRetry: () => {
|
|
1438
|
+
onClickRetry?.();
|
|
1439
|
+
dispatch(closeDialog());
|
|
1440
|
+
}
|
|
1441
|
+
})
|
|
1442
|
+
);
|
|
1443
|
+
}
|
|
1444
|
+
};
|
|
1445
|
+
const renderErrorContent = () => {
|
|
1446
|
+
return /* @__PURE__ */ jsxs("div", { className: b$8({ mobile: DL.IS_MOBILE, "no-action": hideErrorDetails }), children: [
|
|
1447
|
+
/* @__PURE__ */ jsx("span", { className: b$8("label"), children: errorText }),
|
|
1448
|
+
/* @__PURE__ */ jsx(Icon, { data: TriangleExclamationFill, className: b$8("icon") })
|
|
1449
|
+
] });
|
|
1450
|
+
};
|
|
1451
|
+
return /* @__PURE__ */ jsx(React__default.Fragment, { children: hideErrorDetails ? /* @__PURE__ */ jsx("div", { title: errorText, children: renderErrorContent() }) : /* @__PURE__ */ jsx(Button, { onClick: handleClick, title: errorText, view: "flat", children: renderErrorContent() }) });
|
|
1452
|
+
}
|
|
1453
|
+
const DATE_FORMAT = "YYYY-MM-DD";
|
|
1454
|
+
const intervalToString = (from, to) => {
|
|
1455
|
+
return `__interval_${moment(from).format(DATE_FORMAT)}_${moment(to).format(DATE_FORMAT)}`;
|
|
1456
|
+
};
|
|
1457
|
+
const dateToString = (date) => {
|
|
1458
|
+
return moment(date).format(DATE_FORMAT);
|
|
1459
|
+
};
|
|
1460
|
+
const getAfterDate = (first, second) => moment(first).isAfter(second) ? first : second;
|
|
1461
|
+
const getBeforeDate = (first, second) => moment(first).isAfter(second) ? second : first;
|
|
1462
|
+
const formatDefaultToString = (defaultValue, source) => {
|
|
1463
|
+
const { acceptableValues, isRange } = source;
|
|
1464
|
+
const { type, value: { from, to } = {} } = defaultValue;
|
|
1465
|
+
switch (type) {
|
|
1466
|
+
case "acceptableFrom":
|
|
1467
|
+
return acceptableValues && acceptableValues.from ? dateToString(acceptableValues.from) : "";
|
|
1468
|
+
case "acceptableTo":
|
|
1469
|
+
return acceptableValues && acceptableValues.to ? dateToString(acceptableValues.to) : "";
|
|
1470
|
+
case "acceptableFullInterval":
|
|
1471
|
+
return acceptableValues && acceptableValues.from && acceptableValues.to ? intervalToString(acceptableValues.from, acceptableValues.to) : "";
|
|
1472
|
+
case "date":
|
|
1473
|
+
if (isRange) {
|
|
1474
|
+
const fromDate = acceptableValues && acceptableValues.from ? getAfterDate(from, acceptableValues.from) : from;
|
|
1475
|
+
const toDate = acceptableValues && acceptableValues.to ? getBeforeDate(to, acceptableValues.to) : to;
|
|
1476
|
+
return intervalToString(fromDate, toDate);
|
|
1477
|
+
} else {
|
|
1478
|
+
return dateToString(from);
|
|
1479
|
+
}
|
|
1480
|
+
case "relative":
|
|
1481
|
+
if (isRange) {
|
|
1482
|
+
return intervalToString(
|
|
1483
|
+
moment().subtract(from, "days"),
|
|
1484
|
+
moment().subtract(to, "days")
|
|
1485
|
+
);
|
|
1486
|
+
} else {
|
|
1487
|
+
return dateToString(moment().subtract(from, "days"));
|
|
1488
|
+
}
|
|
1489
|
+
default:
|
|
1490
|
+
return "";
|
|
1491
|
+
}
|
|
1492
|
+
};
|
|
1493
|
+
function prerenderMiddleware(item) {
|
|
1494
|
+
const { defaults = {}, data = {} } = item;
|
|
1495
|
+
const defaultsKeys = Object.keys(defaults);
|
|
1496
|
+
if (defaultsKeys.some((key) => isPlainObject(defaults[key]))) {
|
|
1497
|
+
const { source } = data;
|
|
1498
|
+
return {
|
|
1499
|
+
...item,
|
|
1500
|
+
defaults: defaultsKeys.reduce((acc, key) => {
|
|
1501
|
+
const value = defaults[key];
|
|
1502
|
+
acc[key] = isPlainObject(value) ? formatDefaultToString(value, source) : value;
|
|
1503
|
+
return acc;
|
|
1504
|
+
}, {})
|
|
1505
|
+
};
|
|
1506
|
+
}
|
|
1507
|
+
return item;
|
|
1508
|
+
}
|
|
1509
|
+
const b$7 = block("dashkit-plugin-control");
|
|
1510
|
+
const i18n$4 = I18n.keyset("dash.dashkit-plugin-control.view");
|
|
1511
|
+
const CONTROL_LAYOUT_DEBOUNCE_TIME = 20;
|
|
1512
|
+
const ControlWrapper = React__default.forwardRef(function ControlWrapper2(props, nodeRef) {
|
|
1513
|
+
useWidgetContext({ id: props.id, elementRef: nodeRef });
|
|
1514
|
+
return /* @__PURE__ */ jsx("div", { ref: nodeRef, className: props.className, style: props.style, children: props.children });
|
|
1515
|
+
});
|
|
1516
|
+
let Control$1 = (_a = class extends React__default.PureComponent {
|
|
1517
|
+
constructor(props) {
|
|
1518
|
+
super(props);
|
|
1519
|
+
this.chartKitRef = React__default.createRef();
|
|
1520
|
+
this.rootNode = React__default.createRef();
|
|
1521
|
+
this._isUnmounted = false;
|
|
1522
|
+
this._silentLoaderTimer = void 0;
|
|
1523
|
+
this._cancelSource = null;
|
|
1524
|
+
this.adjustWidgetLayout = debounce(this.setAdjustWidgetLayout, CONTROL_LAYOUT_DEBOUNCE_TIME);
|
|
1525
|
+
this._onRedraw = null;
|
|
1526
|
+
this.resolve = null;
|
|
1527
|
+
this.initialParams = {
|
|
1528
|
+
params: {}
|
|
1529
|
+
};
|
|
1530
|
+
this.showSilentLoader = () => {
|
|
1531
|
+
this.setState((prevState) => {
|
|
1532
|
+
return prevState.status === LOAD_STATUS.PENDING && prevState.silentLoading ? { showSilentLoader: true } : null;
|
|
1533
|
+
});
|
|
1534
|
+
};
|
|
1535
|
+
this.setItemsLoader = (loadingItems) => {
|
|
1536
|
+
if (this._isUnmounted) {
|
|
1537
|
+
return;
|
|
1538
|
+
}
|
|
1539
|
+
this.setState({ loadingItems });
|
|
1540
|
+
};
|
|
1541
|
+
this.reload = ({ silentLoading } = {}) => {
|
|
1542
|
+
if (this.context?.skipReload || !this.state.isInit) {
|
|
1543
|
+
return;
|
|
1544
|
+
}
|
|
1545
|
+
this.setState({ status: LOAD_STATUS.PENDING, silentLoading: Boolean(silentLoading) });
|
|
1546
|
+
this.init();
|
|
1547
|
+
};
|
|
1548
|
+
this.setLoadedData = (loadedData, status) => {
|
|
1549
|
+
const isAvailableStatus = [LOAD_STATUS.SUCCESS, LOAD_STATUS.FAIL].includes(status);
|
|
1550
|
+
if (this._isUnmounted || !isAvailableStatus) {
|
|
1551
|
+
return;
|
|
1552
|
+
}
|
|
1553
|
+
const newInitialParams = { ...loadedData?.defaultParams, ...this.props.defaults };
|
|
1554
|
+
const initialParamsChanged = !isEqual(newInitialParams, this.initialParams.params);
|
|
1555
|
+
if (initialParamsChanged) {
|
|
1556
|
+
this.initialParams.params = newInitialParams;
|
|
1557
|
+
}
|
|
1558
|
+
const statusResponse = getStatus(status);
|
|
1559
|
+
if (statusResponse) {
|
|
1560
|
+
this.setState({
|
|
1561
|
+
status: statusResponse,
|
|
1562
|
+
loadedData,
|
|
1563
|
+
silentLoading: false,
|
|
1564
|
+
showSilentLoader: false,
|
|
1565
|
+
loadingItems: false
|
|
1566
|
+
});
|
|
1567
|
+
}
|
|
1568
|
+
this.getCurrentWidgetResolvedMetaInfo(loadedData);
|
|
1569
|
+
this._onRedraw?.();
|
|
1570
|
+
};
|
|
1571
|
+
this.init = async () => {
|
|
1572
|
+
try {
|
|
1573
|
+
const data = this.props.data;
|
|
1574
|
+
const { workbookId } = this.props;
|
|
1575
|
+
const payloadCancellation = chartsDataProvider.getRequestCancellation();
|
|
1576
|
+
const dataProviderContextGetter = this.context?.dataProviderContextGetter?.(
|
|
1577
|
+
this.props.id
|
|
1578
|
+
);
|
|
1579
|
+
const payload = {
|
|
1580
|
+
data: {
|
|
1581
|
+
config: {
|
|
1582
|
+
data: {
|
|
1583
|
+
shared: data
|
|
1584
|
+
},
|
|
1585
|
+
meta: {
|
|
1586
|
+
stype: ControlType.Dash
|
|
1587
|
+
}
|
|
1588
|
+
},
|
|
1589
|
+
controlData: {
|
|
1590
|
+
id: this.props.id,
|
|
1591
|
+
tabId: this.context?.config?.id
|
|
1592
|
+
},
|
|
1593
|
+
params: this.actualParams,
|
|
1594
|
+
...workbookId ? { workbookId } : {}
|
|
1595
|
+
},
|
|
1596
|
+
cancelToken: payloadCancellation.token,
|
|
1597
|
+
headers: dataProviderContextGetter
|
|
1598
|
+
};
|
|
1599
|
+
if (data.sourceType !== DashTabItemControlSourceType.External) {
|
|
1600
|
+
this.cancelCurrentRequests();
|
|
1601
|
+
}
|
|
1602
|
+
this._cancelSource = payloadCancellation;
|
|
1603
|
+
const response = data.sourceType === DashTabItemControlSourceType.External ? null : (
|
|
1604
|
+
// @ts-ignore
|
|
1605
|
+
await chartsDataProvider.makeRequest(payload)
|
|
1606
|
+
);
|
|
1607
|
+
if (response === null || this._isUnmounted) {
|
|
1608
|
+
return;
|
|
1609
|
+
}
|
|
1610
|
+
const loadedData = response.data;
|
|
1611
|
+
loadedData.uiScheme = Array.isArray(loadedData.uiScheme) ? { controls: loadedData.uiScheme } : loadedData.uiScheme;
|
|
1612
|
+
if (data.sourceType === DashTabItemControlSourceType.Dataset) {
|
|
1613
|
+
checkDatasetFieldType({
|
|
1614
|
+
currentLoadedData: loadedData,
|
|
1615
|
+
datasetData: data,
|
|
1616
|
+
actualLoadedData: this.state.loadedData,
|
|
1617
|
+
onError: this.setErrorData,
|
|
1618
|
+
onSucces: this.setLoadedData
|
|
1619
|
+
});
|
|
1620
|
+
} else {
|
|
1621
|
+
this.setLoadedData(loadedData, LOAD_STATUS.SUCCESS);
|
|
1622
|
+
}
|
|
1623
|
+
if (this.state.isInit === false) {
|
|
1624
|
+
this.setState({ isInit: true });
|
|
1625
|
+
}
|
|
1626
|
+
} catch (error) {
|
|
1627
|
+
if (axios.isCancel(error)) {
|
|
1628
|
+
return;
|
|
1629
|
+
}
|
|
1630
|
+
if (this.state.isInit === false) {
|
|
1631
|
+
this.setState({ isInit: true });
|
|
1632
|
+
}
|
|
1633
|
+
logger.logError("DashKit: Control init failed", error);
|
|
1634
|
+
console.error("DASHKIT_CONTROL_RUN", error);
|
|
1635
|
+
let errorData = null;
|
|
1636
|
+
if (this._isUnmounted) {
|
|
1637
|
+
return;
|
|
1638
|
+
}
|
|
1639
|
+
if (error.response && error.response.data) {
|
|
1640
|
+
errorData = {
|
|
1641
|
+
data: { error: error.response.data?.error, status: error.response.data?.status },
|
|
1642
|
+
requestId: error.response.headers["x-request-id"]
|
|
1643
|
+
};
|
|
1644
|
+
} else {
|
|
1645
|
+
errorData = { data: { message: error.message } };
|
|
1646
|
+
}
|
|
1647
|
+
this.setErrorData(errorData, LOAD_STATUS.FAIL);
|
|
1648
|
+
}
|
|
1649
|
+
};
|
|
1650
|
+
this.onChange = ({ param, value }) => {
|
|
1651
|
+
const params = { [param]: value };
|
|
1652
|
+
this.context?.updateTabsWithGlobalState?.({
|
|
1653
|
+
params,
|
|
1654
|
+
selectorItem: {
|
|
1655
|
+
type: DashTabItemType.Control,
|
|
1656
|
+
data: this.propsControlData,
|
|
1657
|
+
id: this.props.id
|
|
1658
|
+
},
|
|
1659
|
+
appliedSelectorsIds: [this.props.id]
|
|
1660
|
+
});
|
|
1661
|
+
this.props.onStateAndParamsChange({ params: { [param]: value } }, { action: "setParams" });
|
|
1662
|
+
};
|
|
1663
|
+
this.onChangeExternal = ({ type, data }) => {
|
|
1664
|
+
if (type === "PARAMS_CHANGED") {
|
|
1665
|
+
const { params } = data;
|
|
1666
|
+
this.context?.updateTabsWithGlobalState?.({
|
|
1667
|
+
params,
|
|
1668
|
+
selectorItem: {
|
|
1669
|
+
type: DashTabItemType.Control,
|
|
1670
|
+
data: this.propsControlData,
|
|
1671
|
+
id: this.props.id
|
|
1672
|
+
},
|
|
1673
|
+
appliedSelectorsIds: [this.props.id]
|
|
1674
|
+
});
|
|
1675
|
+
this.props.onStateAndParamsChange({ params: params || {} });
|
|
1676
|
+
}
|
|
1677
|
+
};
|
|
1678
|
+
this.onLoadExternal = ({ status, requestId, data }) => {
|
|
1679
|
+
return status === "success" ? this.setLoadedData(
|
|
1680
|
+
data.loadedData,
|
|
1681
|
+
LOAD_STATUS.SUCCESS
|
|
1682
|
+
) : this.setLoadedData({ data, requestId }, LOAD_STATUS.FAIL);
|
|
1683
|
+
};
|
|
1684
|
+
this.setErrorData = (errorData, status) => {
|
|
1685
|
+
if (this._isUnmounted) {
|
|
1686
|
+
return;
|
|
1687
|
+
}
|
|
1688
|
+
this._onRedraw?.();
|
|
1689
|
+
const statusResponse = getStatus(status);
|
|
1690
|
+
if (statusResponse) {
|
|
1691
|
+
this.setState({
|
|
1692
|
+
status: statusResponse,
|
|
1693
|
+
errorData,
|
|
1694
|
+
silentLoading: false,
|
|
1695
|
+
showSilentLoader: false,
|
|
1696
|
+
loadingItems: false
|
|
1697
|
+
});
|
|
1698
|
+
}
|
|
1699
|
+
};
|
|
1700
|
+
this.validateValue = (args) => {
|
|
1701
|
+
const hasError = isValidRequiredValue(args);
|
|
1702
|
+
this.setValidationError(hasError);
|
|
1703
|
+
return hasError;
|
|
1704
|
+
};
|
|
1705
|
+
this._onRedraw = debounce(this.props.onBeforeLoad(), DEBOUNCE_RENDER_TIMEOUT);
|
|
1706
|
+
this.state = {
|
|
1707
|
+
status: LOAD_STATUS.PENDING,
|
|
1708
|
+
loadedData: null,
|
|
1709
|
+
errorData: null,
|
|
1710
|
+
silentLoading: false,
|
|
1711
|
+
// loader with a vail that is not shown immediately
|
|
1712
|
+
showSilentLoader: false,
|
|
1713
|
+
// ChartKit parameter that equals false in case selector-chart has postUpdateOnChange param.
|
|
1714
|
+
// Its mean, you do not need to do this.init, because the request has already been executed on the ChartKit side
|
|
1715
|
+
forceUpdate: true,
|
|
1716
|
+
dialogVisible: false,
|
|
1717
|
+
loadingItems: true,
|
|
1718
|
+
isInit: false,
|
|
1719
|
+
validationError: null
|
|
1720
|
+
};
|
|
1721
|
+
}
|
|
1722
|
+
componentDidMount() {
|
|
1723
|
+
this.init();
|
|
1724
|
+
}
|
|
1725
|
+
componentDidUpdate(prevProps) {
|
|
1726
|
+
if (this.state.status !== LOAD_STATUS.PENDING && this._silentLoaderTimer) {
|
|
1727
|
+
this.clearSilentLoaderTimer();
|
|
1728
|
+
}
|
|
1729
|
+
if (this.rootNode.current && this.props.data.sourceType !== DashTabItemControlSourceType.External) {
|
|
1730
|
+
if (this.props.data.autoHeight) {
|
|
1731
|
+
this.adjustWidgetLayout(false);
|
|
1732
|
+
} else if (prevProps.data.autoHeight) {
|
|
1733
|
+
this.adjustWidgetLayout(true);
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
const hasDataChanged = !isEqual(this.props.data, prevProps.data);
|
|
1737
|
+
const hasParamsChanged = !isEqual(
|
|
1738
|
+
this.filterSignificantParams(this.props.params),
|
|
1739
|
+
this.filterSignificantParams(prevProps.params)
|
|
1740
|
+
);
|
|
1741
|
+
const hasDefaultsChanged = !isEqual(this.props.defaults, prevProps.defaults);
|
|
1742
|
+
const initialParams = { ...this.state.loadedData?.defaultParams, ...this.props.defaults };
|
|
1743
|
+
const needUpdateInitialParams = hasDefaultsChanged || !isEqual(initialParams, this.initialParams.params);
|
|
1744
|
+
if (needUpdateInitialParams) {
|
|
1745
|
+
this.initialParams = {
|
|
1746
|
+
params: initialParams
|
|
1747
|
+
};
|
|
1748
|
+
}
|
|
1749
|
+
const hasChanged = hasDataChanged || hasParamsChanged || hasDefaultsChanged;
|
|
1750
|
+
if (this.state.forceUpdate && hasChanged) {
|
|
1751
|
+
this.setState({
|
|
1752
|
+
status: LOAD_STATUS.PENDING,
|
|
1753
|
+
silentLoading: true
|
|
1754
|
+
});
|
|
1755
|
+
this.clearSilentLoaderTimer();
|
|
1756
|
+
if (this.props.data.source.elementType !== ELEMENT_TYPE.SELECT) {
|
|
1757
|
+
this._silentLoaderTimer = setTimeout(this.showSilentLoader, 800);
|
|
1758
|
+
}
|
|
1759
|
+
this.init();
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
componentWillUnmount() {
|
|
1763
|
+
this._isUnmounted = true;
|
|
1764
|
+
this.clearSilentLoaderTimer();
|
|
1765
|
+
this.cancelCurrentRequests();
|
|
1766
|
+
}
|
|
1767
|
+
setAdjustWidgetLayout(needSetDefault) {
|
|
1768
|
+
adjustWidgetLayout({
|
|
1769
|
+
widgetId: this.props.id,
|
|
1770
|
+
needSetDefault,
|
|
1771
|
+
rootNode: this.rootNode,
|
|
1772
|
+
gridLayout: this.props.gridLayout,
|
|
1773
|
+
layout: this.props.layout,
|
|
1774
|
+
cb: (data) => {
|
|
1775
|
+
this.props.adjustWidgetLayout(data);
|
|
1776
|
+
this._onRedraw?.();
|
|
1777
|
+
}
|
|
1778
|
+
});
|
|
1779
|
+
}
|
|
1780
|
+
get actualParams() {
|
|
1781
|
+
return this.filterSignificantParams(this.props.params);
|
|
1782
|
+
}
|
|
1783
|
+
clearSilentLoaderTimer() {
|
|
1784
|
+
if (this._silentLoaderTimer) {
|
|
1785
|
+
clearTimeout(this._silentLoaderTimer);
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
filterSignificantParams(params) {
|
|
1789
|
+
if (!params) {
|
|
1790
|
+
return {};
|
|
1791
|
+
}
|
|
1792
|
+
const loadedData = this.state.loadedData;
|
|
1793
|
+
const dependentSelectors = this.props.settings.dependentSelectors ?? false;
|
|
1794
|
+
if (loadedData && loadedData.usedParams && dependentSelectors) {
|
|
1795
|
+
return pick(params, Object.keys(loadedData.usedParams));
|
|
1796
|
+
}
|
|
1797
|
+
return dependentSelectors ? params : pick(params, Object.keys(this.props.defaults));
|
|
1798
|
+
}
|
|
1799
|
+
cancelCurrentRequests() {
|
|
1800
|
+
if (this._cancelSource) {
|
|
1801
|
+
this._cancelSource.cancel("DASHKIT_CONTROL_CANCEL_CURRENT_REQUESTS");
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
// public
|
|
1805
|
+
getMeta() {
|
|
1806
|
+
if (this.props.data.sourceType === DashTabItemControlSourceType.External) {
|
|
1807
|
+
return this.chartKitRef.current?.getMeta();
|
|
1808
|
+
}
|
|
1809
|
+
return this.getCurrentWidgetMetaInfo();
|
|
1810
|
+
}
|
|
1811
|
+
getCurrentWidgetMetaInfo() {
|
|
1812
|
+
return new Promise((resolve) => {
|
|
1813
|
+
this.resolve = resolve;
|
|
1814
|
+
if (this.state.status !== LOAD_STATUS.PENDING) {
|
|
1815
|
+
const metaData = this.state.loadedData || null;
|
|
1816
|
+
if (this.state.loadedData || this.state.status === LOAD_STATUS.FAIL) {
|
|
1817
|
+
this.getCurrentWidgetResolvedMetaInfo(metaData);
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
});
|
|
1821
|
+
}
|
|
1822
|
+
filterDefaultsBySource() {
|
|
1823
|
+
const sourcedFieldId = this.props.data?.sourceType === "dataset" ? this.props.data?.source?.datasetFieldId : null;
|
|
1824
|
+
if (sourcedFieldId && this.props.defaults) {
|
|
1825
|
+
return { [sourcedFieldId]: this.props.defaults[sourcedFieldId] };
|
|
1826
|
+
}
|
|
1827
|
+
return this.props.defaults;
|
|
1828
|
+
}
|
|
1829
|
+
getCurrentWidgetResolvedMetaInfo(data) {
|
|
1830
|
+
if (!this.resolve) {
|
|
1831
|
+
return;
|
|
1832
|
+
}
|
|
1833
|
+
const loadedData = data || this.state.loadedData || null;
|
|
1834
|
+
const firstControlWithLabel = loadedData?.controls?.controls?.find(
|
|
1835
|
+
(item) => item.label
|
|
1836
|
+
);
|
|
1837
|
+
const loadedWithError = Boolean(data?.data?.error) || this.state.status === LOAD_STATUS.FAIL;
|
|
1838
|
+
const widgetMetaInfo = {
|
|
1839
|
+
layoutId: this.props.id,
|
|
1840
|
+
chartId: null,
|
|
1841
|
+
widgetId: this.props.id,
|
|
1842
|
+
title: this.props.data?.title || "",
|
|
1843
|
+
label: firstControlWithLabel?.label || "",
|
|
1844
|
+
params: this.props.params,
|
|
1845
|
+
defaultParams: this.filterDefaultsBySource(),
|
|
1846
|
+
loaded: Boolean(loadedData),
|
|
1847
|
+
entryId: this.chartKitRef?.current?.props.id || null,
|
|
1848
|
+
// to do built in widget ?
|
|
1849
|
+
usedParams: loadedData?.usedParams ? Object.keys(this.filterSignificantParams(loadedData.usedParams)) : null,
|
|
1850
|
+
datasets: loadedData?.extra?.datasets || null,
|
|
1851
|
+
datasetId: loadedData?.sources?.fields?.datasetId || "",
|
|
1852
|
+
type: "control",
|
|
1853
|
+
sourceType: this.props.data?.sourceType,
|
|
1854
|
+
visualizationType: null,
|
|
1855
|
+
loadError: loadedWithError
|
|
1856
|
+
};
|
|
1857
|
+
this.resolve(widgetMetaInfo);
|
|
1858
|
+
}
|
|
1859
|
+
renderSilentLoader() {
|
|
1860
|
+
if (this.state.showSilentLoader) {
|
|
1861
|
+
return /* @__PURE__ */ jsx("div", { className: b$7("loader", { silent: true }), children: /* @__PURE__ */ jsx(Loader, { size: "s" }) });
|
|
1862
|
+
}
|
|
1863
|
+
return null;
|
|
1864
|
+
}
|
|
1865
|
+
getDistinctsWithHeaders() {
|
|
1866
|
+
if (this.props.getDistincts) {
|
|
1867
|
+
this._getDistinctsMemo = this._getDistinctsMemo || ((params, _, options) => {
|
|
1868
|
+
const { getDistincts } = this.props;
|
|
1869
|
+
const headers = this?.context?.dataProviderContextGetter?.(this.props.id);
|
|
1870
|
+
return getDistincts?.(
|
|
1871
|
+
params,
|
|
1872
|
+
headers,
|
|
1873
|
+
options
|
|
1874
|
+
);
|
|
1875
|
+
});
|
|
1876
|
+
} else {
|
|
1877
|
+
this._getDistinctsMemo = void 0;
|
|
1878
|
+
}
|
|
1879
|
+
return this._getDistinctsMemo;
|
|
1880
|
+
}
|
|
1881
|
+
renderSelectControl() {
|
|
1882
|
+
const data = this.props.data;
|
|
1883
|
+
const { id, defaults } = this.props;
|
|
1884
|
+
const { loadedData, status, loadingItems, errorData, validationError } = this.state;
|
|
1885
|
+
const { label, innerLabel } = getLabels(data);
|
|
1886
|
+
return /* @__PURE__ */ jsx(
|
|
1887
|
+
ControlItemSelect,
|
|
1888
|
+
{
|
|
1889
|
+
id,
|
|
1890
|
+
data,
|
|
1891
|
+
defaults,
|
|
1892
|
+
status,
|
|
1893
|
+
loadedData,
|
|
1894
|
+
loadingItems,
|
|
1895
|
+
actualParams: this.actualParams,
|
|
1896
|
+
onChange: this.onChange,
|
|
1897
|
+
init: this.init,
|
|
1898
|
+
setItemsLoader: this.setItemsLoader,
|
|
1899
|
+
validationError,
|
|
1900
|
+
errorData,
|
|
1901
|
+
validateValue: this.validateValue,
|
|
1902
|
+
getDistincts: this.getDistinctsWithHeaders(),
|
|
1903
|
+
classMixin: b$7("item"),
|
|
1904
|
+
selectProps: { label, innerLabel }
|
|
1905
|
+
}
|
|
1906
|
+
);
|
|
1907
|
+
}
|
|
1908
|
+
renderControls() {
|
|
1909
|
+
const data = this.propsControlData;
|
|
1910
|
+
const { sourceType } = data;
|
|
1911
|
+
const { id } = this.props;
|
|
1912
|
+
switch (this.state.status) {
|
|
1913
|
+
case LOAD_STATUS.PENDING:
|
|
1914
|
+
if (!this.state.loadedData) {
|
|
1915
|
+
return /* @__PURE__ */ jsx("div", { className: b$7(), children: /* @__PURE__ */ jsx(Loader, { size: "s" }) });
|
|
1916
|
+
}
|
|
1917
|
+
break;
|
|
1918
|
+
case LOAD_STATUS.FAIL: {
|
|
1919
|
+
return /* @__PURE__ */ jsx(Error, { errorData: this.state.errorData, onClickRetry: this.reload });
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
const { loadedData } = this.state;
|
|
1923
|
+
const uiScheme = loadedData?.uiScheme;
|
|
1924
|
+
return uiScheme?.controls.map((control) => {
|
|
1925
|
+
const { param, type } = control;
|
|
1926
|
+
const { source } = data;
|
|
1927
|
+
const { required, operation } = source;
|
|
1928
|
+
if (!Object.keys(this.actualParams).includes(param)) {
|
|
1929
|
+
return null;
|
|
1930
|
+
}
|
|
1931
|
+
const preparedValue = unwrapFromArrayAndSkipOperation(this.actualParams[param]);
|
|
1932
|
+
const validationError = this.getValidationError({
|
|
1933
|
+
required,
|
|
1934
|
+
value: preparedValue
|
|
1935
|
+
});
|
|
1936
|
+
const onChange = (value) => {
|
|
1937
|
+
const hasError = this.validateValue({
|
|
1938
|
+
required,
|
|
1939
|
+
value
|
|
1940
|
+
});
|
|
1941
|
+
if (hasError) {
|
|
1942
|
+
return;
|
|
1943
|
+
}
|
|
1944
|
+
const valueWithOperation = addOperationForValue({
|
|
1945
|
+
value,
|
|
1946
|
+
operation
|
|
1947
|
+
});
|
|
1948
|
+
this.onChange({ param, value: valueWithOperation });
|
|
1949
|
+
};
|
|
1950
|
+
const { label, innerLabel } = getLabels(data);
|
|
1951
|
+
const props = {
|
|
1952
|
+
...control,
|
|
1953
|
+
widgetId: id,
|
|
1954
|
+
className: b$7("item"),
|
|
1955
|
+
key: param,
|
|
1956
|
+
value: control.disabled ? "" : preparedValue,
|
|
1957
|
+
onChange,
|
|
1958
|
+
innerLabel,
|
|
1959
|
+
label,
|
|
1960
|
+
required,
|
|
1961
|
+
hasValidationError: Boolean(validationError),
|
|
1962
|
+
hint: getControlHint(source)
|
|
1963
|
+
};
|
|
1964
|
+
if (type === TYPE.RANGE_DATEPICKER || type === TYPE.DATEPICKER) {
|
|
1965
|
+
let fieldType = source?.fieldType || null;
|
|
1966
|
+
if (sourceType === DashTabItemControlSourceType.Dataset) {
|
|
1967
|
+
const { datasetFieldType } = getDatasetSourceInfo({
|
|
1968
|
+
data,
|
|
1969
|
+
actualLoadedData: this.state.loadedData
|
|
1970
|
+
});
|
|
1971
|
+
fieldType = datasetFieldType;
|
|
1972
|
+
}
|
|
1973
|
+
if (fieldType === "datetime" || fieldType === DATASET_FIELD_TYPES.GENERICDATETIME) {
|
|
1974
|
+
props.timeFormat = "HH:mm:ss";
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
if (type === TYPE.INPUT) {
|
|
1978
|
+
props.placeholder = validationError ? validationError : control.placeholder;
|
|
1979
|
+
}
|
|
1980
|
+
switch (type) {
|
|
1981
|
+
case TYPE.INPUT:
|
|
1982
|
+
return /* @__PURE__ */ jsx(ControlInput, { ...props });
|
|
1983
|
+
case TYPE.DATEPICKER:
|
|
1984
|
+
return /* @__PURE__ */ jsx(ControlDatepicker, { ...props });
|
|
1985
|
+
case TYPE.RANGE_DATEPICKER:
|
|
1986
|
+
return /* @__PURE__ */ jsx(ControlRangeDatepicker, { returnInterval: true, ...props });
|
|
1987
|
+
case TYPE.CHECKBOX:
|
|
1988
|
+
return /* @__PURE__ */ jsx(ControlCheckbox, { ...props });
|
|
1989
|
+
}
|
|
1990
|
+
return null;
|
|
1991
|
+
});
|
|
1992
|
+
}
|
|
1993
|
+
render() {
|
|
1994
|
+
const { data, editMode, id, workbookId, globalWidgetSettings, borderRadius } = this.props;
|
|
1995
|
+
const controlData = data;
|
|
1996
|
+
const { sourceType, source } = controlData;
|
|
1997
|
+
const resultedBorderRadius = borderRadius ?? globalWidgetSettings?.borderRadius;
|
|
1998
|
+
const style = resultedBorderRadius ? { borderRadius: resultedBorderRadius } : void 0;
|
|
1999
|
+
if (sourceType === DashTabItemControlSourceType.External) {
|
|
2000
|
+
const chartId = source.chartId;
|
|
2001
|
+
return /* @__PURE__ */ jsxs(
|
|
2002
|
+
ControlWrapper,
|
|
2003
|
+
{
|
|
2004
|
+
id: this.props.id,
|
|
2005
|
+
ref: this.rootNode,
|
|
2006
|
+
className: b$7({
|
|
2007
|
+
external: true
|
|
2008
|
+
}),
|
|
2009
|
+
style,
|
|
2010
|
+
children: [
|
|
2011
|
+
/* @__PURE__ */ jsx(DebugInfoTool, { label: "chartId", value: chartId }),
|
|
2012
|
+
/* @__PURE__ */ jsx(
|
|
2013
|
+
ChartWrapper,
|
|
2014
|
+
{
|
|
2015
|
+
...this.props,
|
|
2016
|
+
usageType: "control",
|
|
2017
|
+
id: chartId,
|
|
2018
|
+
widgetId: id,
|
|
2019
|
+
config: {
|
|
2020
|
+
data: {
|
|
2021
|
+
shared: data
|
|
2022
|
+
},
|
|
2023
|
+
meta: {
|
|
2024
|
+
stype: ControlType.Dash
|
|
2025
|
+
}
|
|
2026
|
+
},
|
|
2027
|
+
params: this.actualParams,
|
|
2028
|
+
initialParams: this.initialParams,
|
|
2029
|
+
onChartLoad: this.onLoadExternal,
|
|
2030
|
+
onChange: this.onChangeExternal,
|
|
2031
|
+
widgetType: sourceType,
|
|
2032
|
+
editMode,
|
|
2033
|
+
forwardedRef: this.chartKitRef,
|
|
2034
|
+
workbookId,
|
|
2035
|
+
updateTabsWithGlobalState: this.context?.updateTabsWithGlobalState
|
|
2036
|
+
}
|
|
2037
|
+
)
|
|
2038
|
+
]
|
|
2039
|
+
}
|
|
2040
|
+
);
|
|
2041
|
+
}
|
|
2042
|
+
const paramIdDebug = source.datasetFieldId || source.fieldName || data.param || "";
|
|
2043
|
+
return /* @__PURE__ */ jsxs(
|
|
2044
|
+
ControlWrapper,
|
|
2045
|
+
{
|
|
2046
|
+
id: this.props.id,
|
|
2047
|
+
ref: this.rootNode,
|
|
2048
|
+
className: b$7({ mobile: DL.IS_MOBILE }),
|
|
2049
|
+
style,
|
|
2050
|
+
children: [
|
|
2051
|
+
this.renderSilentLoader(),
|
|
2052
|
+
/* @__PURE__ */ jsx(
|
|
2053
|
+
DebugInfoTool,
|
|
2054
|
+
{
|
|
2055
|
+
modType: "corner",
|
|
2056
|
+
data: [
|
|
2057
|
+
{ label: "widgetId", value: id },
|
|
2058
|
+
{ label: "paramId", value: paramIdDebug }
|
|
2059
|
+
]
|
|
2060
|
+
}
|
|
2061
|
+
),
|
|
2062
|
+
source.elementType === TYPE.SELECT ? this.renderSelectControl() : this.renderControls()
|
|
2063
|
+
]
|
|
2064
|
+
}
|
|
2065
|
+
);
|
|
2066
|
+
}
|
|
2067
|
+
get propsControlData() {
|
|
2068
|
+
return this.props.data;
|
|
2069
|
+
}
|
|
2070
|
+
setValidationError(hasError) {
|
|
2071
|
+
if (hasError) {
|
|
2072
|
+
this.setState({ validationError: i18n$4("value_required") });
|
|
2073
|
+
return;
|
|
2074
|
+
}
|
|
2075
|
+
if (this.state.validationError) {
|
|
2076
|
+
this.setState({ validationError: null });
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
getValidationError({ required, value }) {
|
|
2080
|
+
let validationError = null;
|
|
2081
|
+
if (required) {
|
|
2082
|
+
const initialValidationError = isValidRequiredValue({
|
|
2083
|
+
required,
|
|
2084
|
+
value
|
|
2085
|
+
}) ? i18n$4("value_required") : null;
|
|
2086
|
+
validationError = this.state.validationError || initialValidationError;
|
|
2087
|
+
}
|
|
2088
|
+
return validationError;
|
|
2089
|
+
}
|
|
2090
|
+
}, _a.contextType = ExtendedDashKitContext, _a);
|
|
2091
|
+
const plugin$1 = {
|
|
2092
|
+
type: DashTabItemType.Control,
|
|
2093
|
+
defaultLayout: DEFAULT_CONTROL_LAYOUT,
|
|
2094
|
+
setSettings(settings) {
|
|
2095
|
+
const { getDistincts } = settings;
|
|
2096
|
+
plugin$1.getDistincts = getDistincts;
|
|
2097
|
+
plugin$1.globalWidgetSettings = settings.globalWidgetSettings;
|
|
2098
|
+
return plugin$1;
|
|
2099
|
+
},
|
|
2100
|
+
prerenderMiddleware,
|
|
2101
|
+
renderer(props, forwardedRef) {
|
|
2102
|
+
const workbookId = props.context.workbookId;
|
|
2103
|
+
return /* @__PURE__ */ jsx(
|
|
2104
|
+
Control$1,
|
|
2105
|
+
{
|
|
2106
|
+
...props,
|
|
2107
|
+
workbookId,
|
|
2108
|
+
getDistincts: plugin$1.getDistincts,
|
|
2109
|
+
ref: forwardedRef,
|
|
2110
|
+
globalWidgetSettings: plugin$1.globalWidgetSettings
|
|
2111
|
+
}
|
|
2112
|
+
);
|
|
2113
|
+
}
|
|
2114
|
+
};
|
|
2115
|
+
const i18n$3 = I18N.keyset("common.errors");
|
|
2116
|
+
const getControlWidthStyle = (placementMode, width) => {
|
|
2117
|
+
if (placementMode === "auto") {
|
|
2118
|
+
return { flex: "1 1 auto" };
|
|
2119
|
+
}
|
|
2120
|
+
return { width: `${width}${placementMode}` };
|
|
2121
|
+
};
|
|
2122
|
+
const clearLoaderTimer = (timer) => {
|
|
2123
|
+
if (timer) {
|
|
2124
|
+
clearTimeout(timer);
|
|
2125
|
+
}
|
|
2126
|
+
};
|
|
2127
|
+
const addItemToLocalQueue = (queue, widgetId, groupItemId, param) => {
|
|
2128
|
+
const updatedQueue = queue.filter((queueItem) => queueItem.groupItemId !== groupItemId);
|
|
2129
|
+
updatedQueue.push({ id: widgetId, groupItemId, param });
|
|
2130
|
+
return updatedQueue;
|
|
2131
|
+
};
|
|
2132
|
+
const filterSignificantParams = ({
|
|
2133
|
+
params,
|
|
2134
|
+
loadedData,
|
|
2135
|
+
defaults,
|
|
2136
|
+
dependentSelectors
|
|
2137
|
+
}) => {
|
|
2138
|
+
if (!params) {
|
|
2139
|
+
return {};
|
|
2140
|
+
}
|
|
2141
|
+
if (loadedData && loadedData.usedParams && dependentSelectors) {
|
|
2142
|
+
return pick(params, Object.keys(loadedData.usedParams));
|
|
2143
|
+
}
|
|
2144
|
+
return dependentSelectors || !defaults ? params : pick(params, Object.keys(defaults));
|
|
2145
|
+
};
|
|
2146
|
+
const getErrorTitle = (errorInfo) => {
|
|
2147
|
+
const datasetsField = errorInfo?.details && "sources" in errorInfo.details && errorInfo.details.sources ? Object.keys(errorInfo.details.sources)[0] : null;
|
|
2148
|
+
if (!datasetsField) {
|
|
2149
|
+
return null;
|
|
2150
|
+
}
|
|
2151
|
+
const datasetInfo = errorInfo?.details?.sources?.[datasetsField];
|
|
2152
|
+
const isIncorrectEntryIdCode = datasetInfo?.code === ErrorCode.IncorrectEntryIdForEmbed || datasetInfo?.body?.code === ErrorCode.IncorrectEntryIdForEmbed;
|
|
2153
|
+
if (errorInfo?.code === CHARTS_ERROR_CODE.DATA_FETCHING_ERROR && isIncorrectEntryIdCode) {
|
|
2154
|
+
return i18n$3("label_error-outdated-message");
|
|
2155
|
+
}
|
|
2156
|
+
return null;
|
|
2157
|
+
};
|
|
2158
|
+
const CONTROL_SET_ERROR_DATA = /* @__PURE__ */ Symbol("control/SET_ERROR_DATA");
|
|
2159
|
+
const setErrorData = (payload) => {
|
|
2160
|
+
return {
|
|
2161
|
+
type: CONTROL_SET_ERROR_DATA,
|
|
2162
|
+
payload
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2165
|
+
const CONTROL_SET_LOADED_DATA = /* @__PURE__ */ Symbol("control/SET_LOADED_DATA");
|
|
2166
|
+
const setLoadedData = (payload) => {
|
|
2167
|
+
return {
|
|
2168
|
+
type: CONTROL_SET_LOADED_DATA,
|
|
2169
|
+
payload
|
|
2170
|
+
};
|
|
2171
|
+
};
|
|
2172
|
+
const CONTROL_SET_LOADING_ITEMS = /* @__PURE__ */ Symbol("control/SET_LOADING_ITEMS");
|
|
2173
|
+
const setLoadingItems = (payload) => {
|
|
2174
|
+
return {
|
|
2175
|
+
type: CONTROL_SET_LOADING_ITEMS,
|
|
2176
|
+
payload
|
|
2177
|
+
};
|
|
2178
|
+
};
|
|
2179
|
+
const CONTROL_SET_VALIDATION_ERROR = /* @__PURE__ */ Symbol("control/SET_VALIDATION_ERROR");
|
|
2180
|
+
const setValidationError = (payload) => {
|
|
2181
|
+
return {
|
|
2182
|
+
type: CONTROL_SET_VALIDATION_ERROR,
|
|
2183
|
+
payload
|
|
2184
|
+
};
|
|
2185
|
+
};
|
|
2186
|
+
const CONTROL_SET_STATUS = /* @__PURE__ */ Symbol("control/SET_STATUS");
|
|
2187
|
+
const setStatus = (payload) => {
|
|
2188
|
+
return {
|
|
2189
|
+
type: CONTROL_SET_STATUS,
|
|
2190
|
+
payload
|
|
2191
|
+
};
|
|
2192
|
+
};
|
|
2193
|
+
const CONTROL_SET_IS_INIT = /* @__PURE__ */ Symbol("control/SET_IS_INIT");
|
|
2194
|
+
const setIsInit = (payload) => {
|
|
2195
|
+
return {
|
|
2196
|
+
type: CONTROL_SET_IS_INIT,
|
|
2197
|
+
payload
|
|
2198
|
+
};
|
|
2199
|
+
};
|
|
2200
|
+
const CONTROL_SET_SILENT_LOADER = /* @__PURE__ */ Symbol("control/SET_SILENT_LOADER");
|
|
2201
|
+
const setSilentLoader = (payload) => {
|
|
2202
|
+
return {
|
|
2203
|
+
type: CONTROL_SET_SILENT_LOADER,
|
|
2204
|
+
payload
|
|
2205
|
+
};
|
|
2206
|
+
};
|
|
2207
|
+
const i18n$2 = I18n.keyset("dash.dashkit-plugin-control.view");
|
|
2208
|
+
const getInitialState = () => {
|
|
2209
|
+
return {
|
|
2210
|
+
status: LOAD_STATUS.INITIAL,
|
|
2211
|
+
loadedData: null,
|
|
2212
|
+
errorData: null,
|
|
2213
|
+
loadingItems: false,
|
|
2214
|
+
validationError: null,
|
|
2215
|
+
isInit: false,
|
|
2216
|
+
showSilentLoader: false,
|
|
2217
|
+
control: null
|
|
2218
|
+
};
|
|
2219
|
+
};
|
|
2220
|
+
const reducer = (state, action) => {
|
|
2221
|
+
switch (action.type) {
|
|
2222
|
+
case CONTROL_SET_LOADED_DATA: {
|
|
2223
|
+
const { status, loadedData } = action.payload;
|
|
2224
|
+
loadedData.uiScheme = Array.isArray(loadedData.uiScheme) ? { controls: loadedData.uiScheme } : loadedData.uiScheme;
|
|
2225
|
+
const control = loadedData.uiScheme ? loadedData.uiScheme.controls[0] : null;
|
|
2226
|
+
return {
|
|
2227
|
+
...state,
|
|
2228
|
+
status,
|
|
2229
|
+
loadedData,
|
|
2230
|
+
loadingItems: false,
|
|
2231
|
+
showSilentLoader: false,
|
|
2232
|
+
control
|
|
2233
|
+
};
|
|
2234
|
+
}
|
|
2235
|
+
case CONTROL_SET_ERROR_DATA: {
|
|
2236
|
+
const { status, errorData } = action.payload;
|
|
2237
|
+
return {
|
|
2238
|
+
...state,
|
|
2239
|
+
status,
|
|
2240
|
+
errorData,
|
|
2241
|
+
loadingItems: false,
|
|
2242
|
+
showSilentLoader: false
|
|
2243
|
+
};
|
|
2244
|
+
}
|
|
2245
|
+
case CONTROL_SET_LOADING_ITEMS: {
|
|
2246
|
+
return { ...state, loadingItems: action.payload.loadingItems };
|
|
2247
|
+
}
|
|
2248
|
+
case CONTROL_SET_VALIDATION_ERROR: {
|
|
2249
|
+
if (action.payload.hasError) {
|
|
2250
|
+
return { ...state, validationError: i18n$2("value_required") };
|
|
2251
|
+
}
|
|
2252
|
+
if (state.validationError) {
|
|
2253
|
+
return { ...state, validationError: null };
|
|
2254
|
+
}
|
|
2255
|
+
return state;
|
|
2256
|
+
}
|
|
2257
|
+
case CONTROL_SET_STATUS: {
|
|
2258
|
+
return { ...state, status: action.payload.status };
|
|
2259
|
+
}
|
|
2260
|
+
case CONTROL_SET_IS_INIT: {
|
|
2261
|
+
return { ...state, isInit: action.payload.isInit };
|
|
2262
|
+
}
|
|
2263
|
+
case CONTROL_SET_SILENT_LOADER: {
|
|
2264
|
+
if (state.status === LOAD_STATUS.PENDING && action.payload.silentLoading) {
|
|
2265
|
+
return { ...state, showSilentLoader: true };
|
|
2266
|
+
}
|
|
2267
|
+
return state;
|
|
2268
|
+
}
|
|
2269
|
+
default: {
|
|
2270
|
+
return state;
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
};
|
|
2274
|
+
const b$6 = block("dashkit-plugin-group-control");
|
|
2275
|
+
const i18n$1 = I18n.keyset("dash.dashkit-plugin-control.view");
|
|
2276
|
+
const Control = ({
|
|
2277
|
+
id,
|
|
2278
|
+
data,
|
|
2279
|
+
params,
|
|
2280
|
+
silentLoading,
|
|
2281
|
+
onStatusChanged,
|
|
2282
|
+
getDistincts,
|
|
2283
|
+
requestHeaders,
|
|
2284
|
+
onChange,
|
|
2285
|
+
needReload,
|
|
2286
|
+
workbookId,
|
|
2287
|
+
dependentSelectors,
|
|
2288
|
+
widgetId
|
|
2289
|
+
}) => {
|
|
2290
|
+
const extDashkitContext = React__default.useContext(ExtendedDashKitContext);
|
|
2291
|
+
const [prevNeedReload, setPrevNeedReload] = React__default.useState(needReload);
|
|
2292
|
+
const isMounted = useMountedState([]);
|
|
2293
|
+
const [prevParams, setPrevParams] = React__default.useState(null);
|
|
2294
|
+
const currentSignificantParams = React__default.useRef();
|
|
2295
|
+
const requestCancellationRef = React__default.useRef();
|
|
2296
|
+
const [
|
|
2297
|
+
{
|
|
2298
|
+
status,
|
|
2299
|
+
loadedData,
|
|
2300
|
+
errorData,
|
|
2301
|
+
loadingItems,
|
|
2302
|
+
validationError,
|
|
2303
|
+
isInit,
|
|
2304
|
+
showSilentLoader,
|
|
2305
|
+
control
|
|
2306
|
+
},
|
|
2307
|
+
dispatch
|
|
2308
|
+
] = React__default.useReducer(reducer, getInitialState());
|
|
2309
|
+
let silentLoaderTimer;
|
|
2310
|
+
const setErrorState = React__default.useCallback(
|
|
2311
|
+
(newErrorData, errorStatus) => {
|
|
2312
|
+
const statusResponse = getStatus(errorStatus);
|
|
2313
|
+
if (statusResponse) {
|
|
2314
|
+
dispatch(
|
|
2315
|
+
setErrorData({
|
|
2316
|
+
status: statusResponse,
|
|
2317
|
+
errorData: newErrorData
|
|
2318
|
+
})
|
|
2319
|
+
);
|
|
2320
|
+
onStatusChanged({ controlId: id, status: statusResponse });
|
|
2321
|
+
}
|
|
2322
|
+
},
|
|
2323
|
+
[id, onStatusChanged]
|
|
2324
|
+
);
|
|
2325
|
+
const setLoadedDataState = React__default.useCallback(
|
|
2326
|
+
(newLoadedData, loadedStatus) => {
|
|
2327
|
+
const statusResponse = getStatus(loadedStatus);
|
|
2328
|
+
if (statusResponse) {
|
|
2329
|
+
if (!currentSignificantParams.current) {
|
|
2330
|
+
currentSignificantParams.current = filterSignificantParams({
|
|
2331
|
+
params,
|
|
2332
|
+
loadedData: newLoadedData,
|
|
2333
|
+
defaults: data.defaults,
|
|
2334
|
+
dependentSelectors
|
|
2335
|
+
});
|
|
2336
|
+
}
|
|
2337
|
+
dispatch(setLoadedData({ status: statusResponse, loadedData: newLoadedData }));
|
|
2338
|
+
onStatusChanged({
|
|
2339
|
+
controlId: id,
|
|
2340
|
+
status: statusResponse,
|
|
2341
|
+
loadedData: newLoadedData ? {
|
|
2342
|
+
...newLoadedData,
|
|
2343
|
+
sourceType: data.sourceType,
|
|
2344
|
+
id: data.id
|
|
2345
|
+
} : null
|
|
2346
|
+
});
|
|
2347
|
+
}
|
|
2348
|
+
},
|
|
2349
|
+
[data.defaults, data.id, data.sourceType, dependentSelectors, id, onStatusChanged, params]
|
|
2350
|
+
);
|
|
2351
|
+
const cancelCurrentRunRequest = () => {
|
|
2352
|
+
if (requestCancellationRef.current) {
|
|
2353
|
+
requestCancellationRef.current.cancel();
|
|
2354
|
+
}
|
|
2355
|
+
};
|
|
2356
|
+
const init = React__default.useCallback(async () => {
|
|
2357
|
+
try {
|
|
2358
|
+
const payloadCancellation = chartsDataProvider.getRequestCancellation();
|
|
2359
|
+
const payload = {
|
|
2360
|
+
data: {
|
|
2361
|
+
config: {
|
|
2362
|
+
data: {
|
|
2363
|
+
shared: data
|
|
2364
|
+
},
|
|
2365
|
+
meta: {
|
|
2366
|
+
stype: ControlType.Dash
|
|
2367
|
+
}
|
|
2368
|
+
},
|
|
2369
|
+
controlData: {
|
|
2370
|
+
id,
|
|
2371
|
+
widgetId,
|
|
2372
|
+
tabId: extDashkitContext?.config?.id
|
|
2373
|
+
},
|
|
2374
|
+
// currentParams are filled in after the first receiving of loadedData
|
|
2375
|
+
params: currentSignificantParams.current || params,
|
|
2376
|
+
...workbookId ? { workbookId } : {}
|
|
2377
|
+
},
|
|
2378
|
+
cancelToken: payloadCancellation.token,
|
|
2379
|
+
headers: requestHeaders?.()
|
|
2380
|
+
};
|
|
2381
|
+
cancelCurrentRunRequest();
|
|
2382
|
+
if (status !== LOAD_STATUS.PENDING) {
|
|
2383
|
+
dispatch(setStatus({ status: LOAD_STATUS.PENDING }));
|
|
2384
|
+
onStatusChanged({ controlId: id, status: LOAD_STATUS.PENDING });
|
|
2385
|
+
}
|
|
2386
|
+
requestCancellationRef.current = payloadCancellation;
|
|
2387
|
+
const response = await chartsDataProvider.makeRequest(payload);
|
|
2388
|
+
if (response === null) {
|
|
2389
|
+
return;
|
|
2390
|
+
}
|
|
2391
|
+
const newLoadedData = response.data;
|
|
2392
|
+
if (data.sourceType === DashTabItemControlSourceType.Dataset) {
|
|
2393
|
+
checkDatasetFieldType({
|
|
2394
|
+
currentLoadedData: newLoadedData,
|
|
2395
|
+
datasetData: data,
|
|
2396
|
+
actualLoadedData: loadedData,
|
|
2397
|
+
onSucces: setLoadedDataState,
|
|
2398
|
+
onError: setErrorState
|
|
2399
|
+
});
|
|
2400
|
+
} else {
|
|
2401
|
+
setLoadedDataState(newLoadedData, LOAD_STATUS.SUCCESS);
|
|
2402
|
+
}
|
|
2403
|
+
} catch (error) {
|
|
2404
|
+
if (axios.isCancel(error)) {
|
|
2405
|
+
return;
|
|
2406
|
+
}
|
|
2407
|
+
logger.logError("DashKit: Control init failed", error);
|
|
2408
|
+
console.error("DASHKIT_CONTROL_RUN", error);
|
|
2409
|
+
let errorData2 = null;
|
|
2410
|
+
if (error.response && error.response.data) {
|
|
2411
|
+
const errorInfo = error.response.data?.error;
|
|
2412
|
+
errorData2 = {
|
|
2413
|
+
data: {
|
|
2414
|
+
error: errorInfo,
|
|
2415
|
+
status: error.response.data?.status,
|
|
2416
|
+
title: getErrorTitle(errorInfo)
|
|
2417
|
+
},
|
|
2418
|
+
requestId: error.response.headers["x-request-id"],
|
|
2419
|
+
extra: {
|
|
2420
|
+
hideErrorDetails: Boolean(extDashkitContext?.hideErrorDetails)
|
|
2421
|
+
}
|
|
2422
|
+
};
|
|
2423
|
+
} else {
|
|
2424
|
+
errorData2 = { data: { message: error.message } };
|
|
2425
|
+
}
|
|
2426
|
+
setErrorState(errorData2, LOAD_STATUS.FAIL);
|
|
2427
|
+
}
|
|
2428
|
+
}, [
|
|
2429
|
+
data,
|
|
2430
|
+
extDashkitContext?.config,
|
|
2431
|
+
extDashkitContext?.hideErrorDetails,
|
|
2432
|
+
widgetId,
|
|
2433
|
+
id,
|
|
2434
|
+
loadedData,
|
|
2435
|
+
onStatusChanged,
|
|
2436
|
+
params,
|
|
2437
|
+
requestHeaders,
|
|
2438
|
+
setErrorState,
|
|
2439
|
+
setLoadedDataState,
|
|
2440
|
+
status,
|
|
2441
|
+
workbookId
|
|
2442
|
+
]);
|
|
2443
|
+
const reload = () => {
|
|
2444
|
+
clearLoaderTimer(silentLoaderTimer);
|
|
2445
|
+
if (data.source.elementType !== ELEMENT_TYPE.SELECT) {
|
|
2446
|
+
silentLoaderTimer = setTimeout(() => {
|
|
2447
|
+
if (isInit) {
|
|
2448
|
+
dispatch(setSilentLoader({ silentLoading }));
|
|
2449
|
+
}
|
|
2450
|
+
}, 800);
|
|
2451
|
+
}
|
|
2452
|
+
init();
|
|
2453
|
+
};
|
|
2454
|
+
const reloadAfterParamsChanges = () => {
|
|
2455
|
+
const significantParams = filterSignificantParams({
|
|
2456
|
+
params,
|
|
2457
|
+
loadedData,
|
|
2458
|
+
defaults: data.defaults,
|
|
2459
|
+
dependentSelectors
|
|
2460
|
+
});
|
|
2461
|
+
if (!needReload && !isEqual(currentSignificantParams.current, significantParams)) {
|
|
2462
|
+
currentSignificantParams.current = significantParams;
|
|
2463
|
+
reload();
|
|
2464
|
+
}
|
|
2465
|
+
};
|
|
2466
|
+
React__default.useEffect(() => {
|
|
2467
|
+
dispatch(setIsInit({ isInit: true }));
|
|
2468
|
+
return () => {
|
|
2469
|
+
if (!isMounted()) {
|
|
2470
|
+
clearLoaderTimer(silentLoaderTimer);
|
|
2471
|
+
onStatusChanged({ controlId: id, status: LOAD_STATUS.DESTROYED });
|
|
2472
|
+
cancelCurrentRunRequest();
|
|
2473
|
+
}
|
|
2474
|
+
};
|
|
2475
|
+
}, [id, isMounted, onStatusChanged, silentLoaderTimer]);
|
|
2476
|
+
if (status !== LOAD_STATUS.PENDING && silentLoaderTimer) {
|
|
2477
|
+
clearLoaderTimer(silentLoaderTimer);
|
|
2478
|
+
}
|
|
2479
|
+
if (loadedData && !isEqual(params, prevParams)) {
|
|
2480
|
+
if (currentSignificantParams.current) {
|
|
2481
|
+
reloadAfterParamsChanges();
|
|
2482
|
+
}
|
|
2483
|
+
setPrevParams(params);
|
|
2484
|
+
}
|
|
2485
|
+
if (prevNeedReload !== needReload) {
|
|
2486
|
+
setPrevNeedReload(needReload);
|
|
2487
|
+
if (needReload) {
|
|
2488
|
+
reload();
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
if (!isInit && status === LOAD_STATUS.INITIAL) {
|
|
2492
|
+
init();
|
|
2493
|
+
}
|
|
2494
|
+
const setItemsLoader = React__default.useCallback(
|
|
2495
|
+
(isLoadingItems) => {
|
|
2496
|
+
if (!isMounted) {
|
|
2497
|
+
return;
|
|
2498
|
+
}
|
|
2499
|
+
dispatch(setLoadingItems({ loadingItems: isLoadingItems }));
|
|
2500
|
+
},
|
|
2501
|
+
[isMounted]
|
|
2502
|
+
);
|
|
2503
|
+
const validateValue = React__default.useCallback((args) => {
|
|
2504
|
+
const hasError = isValidRequiredValue(args);
|
|
2505
|
+
dispatch(setValidationError({ hasError }));
|
|
2506
|
+
return hasError;
|
|
2507
|
+
}, []);
|
|
2508
|
+
const getValidationError = ({
|
|
2509
|
+
required,
|
|
2510
|
+
value
|
|
2511
|
+
}) => {
|
|
2512
|
+
let activeValidationError = null;
|
|
2513
|
+
if (required) {
|
|
2514
|
+
const initialValidationError = isValidRequiredValue({
|
|
2515
|
+
required,
|
|
2516
|
+
value
|
|
2517
|
+
}) ? i18n$1("value_required") : null;
|
|
2518
|
+
activeValidationError = validationError || initialValidationError;
|
|
2519
|
+
}
|
|
2520
|
+
return activeValidationError;
|
|
2521
|
+
};
|
|
2522
|
+
const onChangeParams = React__default.useCallback(
|
|
2523
|
+
({ value, param }) => {
|
|
2524
|
+
const newParam = { [param]: value };
|
|
2525
|
+
onChange({ params: newParam, controlId: id });
|
|
2526
|
+
},
|
|
2527
|
+
[id, onChange]
|
|
2528
|
+
);
|
|
2529
|
+
const getTypeProps = (control2, controlData, currentValidationError) => {
|
|
2530
|
+
const { source } = controlData;
|
|
2531
|
+
const { type } = control2;
|
|
2532
|
+
const typeProps = {};
|
|
2533
|
+
if (type === "range-datepicker" || type === "datepicker") {
|
|
2534
|
+
let fieldType = source?.fieldType || null;
|
|
2535
|
+
if (controlData.sourceType === DashTabItemControlSourceType.Dataset) {
|
|
2536
|
+
const { datasetFieldType } = getDatasetSourceInfo({
|
|
2537
|
+
data: controlData,
|
|
2538
|
+
actualLoadedData: loadedData
|
|
2539
|
+
});
|
|
2540
|
+
fieldType = datasetFieldType;
|
|
2541
|
+
}
|
|
2542
|
+
if (fieldType === "datetime" || fieldType === DATASET_FIELD_TYPES.GENERICDATETIME) {
|
|
2543
|
+
typeProps.timeFormat = "HH:mm:ss";
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
if (type === "input") {
|
|
2547
|
+
typeProps.placeholder = currentValidationError || control2.placeholder;
|
|
2548
|
+
}
|
|
2549
|
+
return typeProps;
|
|
2550
|
+
};
|
|
2551
|
+
const renderSilentLoader = () => {
|
|
2552
|
+
if (showSilentLoader || !control && status === LOAD_STATUS.SUCCESS) {
|
|
2553
|
+
return /* @__PURE__ */ jsx("div", { className: b$6("loader", { silent: true }), children: /* @__PURE__ */ jsx(Loader, { size: "s" }) });
|
|
2554
|
+
}
|
|
2555
|
+
return null;
|
|
2556
|
+
};
|
|
2557
|
+
const renderOverlay = React__default.useCallback(() => {
|
|
2558
|
+
const paramId = data.source.datasetFieldId || data.source.fieldName || control?.param || "";
|
|
2559
|
+
const debugData = [
|
|
2560
|
+
{ label: "itemId", value: id },
|
|
2561
|
+
{ label: "paramId", value: paramId }
|
|
2562
|
+
];
|
|
2563
|
+
return /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
2564
|
+
/* @__PURE__ */ jsx(DebugInfoTool, { data: debugData, modType: "top" }),
|
|
2565
|
+
renderSilentLoader()
|
|
2566
|
+
] });
|
|
2567
|
+
}, [control?.param, data.source, id, renderSilentLoader]);
|
|
2568
|
+
const renderLoadingStub = (props) => {
|
|
2569
|
+
const {
|
|
2570
|
+
source: { elementType }
|
|
2571
|
+
} = data;
|
|
2572
|
+
const stubProps = {
|
|
2573
|
+
...props,
|
|
2574
|
+
value: "",
|
|
2575
|
+
param: "",
|
|
2576
|
+
onChange: () => {
|
|
2577
|
+
}
|
|
2578
|
+
};
|
|
2579
|
+
switch (elementType) {
|
|
2580
|
+
case DashTabItemControlElementType.Input:
|
|
2581
|
+
return /* @__PURE__ */ jsx(ControlInput, { ...stubProps, type: "input" });
|
|
2582
|
+
case DashTabItemControlElementType.Date:
|
|
2583
|
+
return /* @__PURE__ */ jsx(ControlDatepicker, { ...stubProps, type: "datepicker" });
|
|
2584
|
+
case DashTabItemControlElementType.Checkbox:
|
|
2585
|
+
return /* @__PURE__ */ jsx(
|
|
2586
|
+
ControlCheckbox,
|
|
2587
|
+
{
|
|
2588
|
+
...stubProps,
|
|
2589
|
+
className: b$6("item", { checkbox: true }),
|
|
2590
|
+
type: "checkbox"
|
|
2591
|
+
}
|
|
2592
|
+
);
|
|
2593
|
+
}
|
|
2594
|
+
return null;
|
|
2595
|
+
};
|
|
2596
|
+
const handleClickRetry = React__default.useCallback(() => {
|
|
2597
|
+
reload();
|
|
2598
|
+
}, [reload]);
|
|
2599
|
+
const renderControl = () => {
|
|
2600
|
+
const controlData = data;
|
|
2601
|
+
const { source, placementMode, width } = controlData;
|
|
2602
|
+
const { required, operation, elementType, titlePlacement, accentType } = source;
|
|
2603
|
+
const { label, innerLabel } = getLabels(controlData);
|
|
2604
|
+
const style = getControlWidthStyle(placementMode, width);
|
|
2605
|
+
const vertical = titlePlacement === TitlePlacementOption.Top;
|
|
2606
|
+
const initialProps = {
|
|
2607
|
+
innerLabel,
|
|
2608
|
+
label,
|
|
2609
|
+
labelPlacement: titlePlacement,
|
|
2610
|
+
className: b$6("item"),
|
|
2611
|
+
// TODO: move class to withWrapForContros after cleaning code from GroupControls flag
|
|
2612
|
+
labelClassName: b$6("item-label", { vertical }),
|
|
2613
|
+
style,
|
|
2614
|
+
renderOverlay,
|
|
2615
|
+
hint: getControlHint(controlData.source),
|
|
2616
|
+
accentType
|
|
2617
|
+
};
|
|
2618
|
+
if (elementType === DashTabItemControlElementType.Select) {
|
|
2619
|
+
return /* @__PURE__ */ jsx(
|
|
2620
|
+
ControlItemSelect,
|
|
2621
|
+
{
|
|
2622
|
+
id,
|
|
2623
|
+
data,
|
|
2624
|
+
defaults: data.defaults || {},
|
|
2625
|
+
status,
|
|
2626
|
+
loadedData,
|
|
2627
|
+
loadingItems,
|
|
2628
|
+
actualParams: currentSignificantParams.current || params,
|
|
2629
|
+
onChange: onChangeParams,
|
|
2630
|
+
init,
|
|
2631
|
+
setItemsLoader,
|
|
2632
|
+
validationError,
|
|
2633
|
+
errorData,
|
|
2634
|
+
validateValue,
|
|
2635
|
+
getDistincts,
|
|
2636
|
+
classMixin: b$6("item"),
|
|
2637
|
+
labelMixin: b$6("item-label", { vertical }),
|
|
2638
|
+
selectProps: {
|
|
2639
|
+
innerLabel,
|
|
2640
|
+
label,
|
|
2641
|
+
style,
|
|
2642
|
+
limitLabel: true,
|
|
2643
|
+
labelPlacement: titlePlacement,
|
|
2644
|
+
accentType
|
|
2645
|
+
},
|
|
2646
|
+
renderOverlay
|
|
2647
|
+
}
|
|
2648
|
+
);
|
|
2649
|
+
}
|
|
2650
|
+
if (status === LOAD_STATUS.FAIL) {
|
|
2651
|
+
return /* @__PURE__ */ jsx("div", { className: b$6("item-stub", { error: true }), style, children: /* @__PURE__ */ jsx(Error, { errorData, onClickRetry: handleClickRetry }) });
|
|
2652
|
+
}
|
|
2653
|
+
if (!control) {
|
|
2654
|
+
return renderLoadingStub(initialProps);
|
|
2655
|
+
}
|
|
2656
|
+
const { param, disabled } = control;
|
|
2657
|
+
const preparedValue = unwrapFromArrayAndSkipOperation(params[param]);
|
|
2658
|
+
const currentValidationError = getValidationError({
|
|
2659
|
+
required,
|
|
2660
|
+
value: preparedValue
|
|
2661
|
+
});
|
|
2662
|
+
const onChangeControl = (value) => {
|
|
2663
|
+
const hasError = validateValue({
|
|
2664
|
+
required,
|
|
2665
|
+
value
|
|
2666
|
+
});
|
|
2667
|
+
dispatch(setValidationError({ hasError }));
|
|
2668
|
+
if (hasError) {
|
|
2669
|
+
return;
|
|
2670
|
+
}
|
|
2671
|
+
const valueWithOperation = addOperationForValue({
|
|
2672
|
+
value,
|
|
2673
|
+
operation
|
|
2674
|
+
});
|
|
2675
|
+
if (!isEqual(valueWithOperation, unwrapFromArray(params[param]))) {
|
|
2676
|
+
onChangeParams({ value: valueWithOperation, param });
|
|
2677
|
+
}
|
|
2678
|
+
};
|
|
2679
|
+
const props = {
|
|
2680
|
+
...initialProps,
|
|
2681
|
+
param,
|
|
2682
|
+
type: control.type,
|
|
2683
|
+
widgetId: id,
|
|
2684
|
+
value: disabled ? "" : preparedValue,
|
|
2685
|
+
required,
|
|
2686
|
+
onChange: onChangeControl,
|
|
2687
|
+
hasValidationError: Boolean(currentValidationError),
|
|
2688
|
+
disabled,
|
|
2689
|
+
...getTypeProps(control, controlData, currentValidationError)
|
|
2690
|
+
};
|
|
2691
|
+
switch (control.type) {
|
|
2692
|
+
case CONTROL_TYPE.INPUT:
|
|
2693
|
+
return /* @__PURE__ */ jsx(ControlInput, { ...props });
|
|
2694
|
+
case CONTROL_TYPE.DATEPICKER:
|
|
2695
|
+
return /* @__PURE__ */ jsx(ControlDatepicker, { ...props });
|
|
2696
|
+
case CONTROL_TYPE.RANGE_DATEPICKER:
|
|
2697
|
+
return /* @__PURE__ */ jsx(ControlRangeDatepicker, { returnInterval: true, ...props });
|
|
2698
|
+
case CONTROL_TYPE.CHECKBOX:
|
|
2699
|
+
return /* @__PURE__ */ jsx(ControlCheckbox, { ...props, className: b$6("item", { checkbox: true }) });
|
|
2700
|
+
}
|
|
2701
|
+
return null;
|
|
2702
|
+
};
|
|
2703
|
+
return renderControl();
|
|
2704
|
+
};
|
|
2705
|
+
const GROUP_CONTROL_LAYOUT_DEBOUNCE_TIME = 20;
|
|
2706
|
+
const GROUP_CONTROL_LOADING_EMULATION_TIMEOUT = 100;
|
|
2707
|
+
const b$5 = block("dashkit-plugin-group-control");
|
|
2708
|
+
const i18n = I18n.keyset("dash.dashkit-plugin-control.view");
|
|
2709
|
+
const LOCAL_META_VERSION = 2;
|
|
2710
|
+
const GroupControlWrapper = React__default.forwardRef(function GroupControlWrapper2(props, nodeRef) {
|
|
2711
|
+
useWidgetContext({ id: props.id, elementRef: nodeRef });
|
|
2712
|
+
return /* @__PURE__ */ jsx(
|
|
2713
|
+
"div",
|
|
2714
|
+
{
|
|
2715
|
+
ref: nodeRef,
|
|
2716
|
+
className: b$5({ mobile: DL.IS_MOBILE, static: !props.autoHeight, pulsate: props.pulsate }),
|
|
2717
|
+
style: props.style,
|
|
2718
|
+
children: props.children
|
|
2719
|
+
}
|
|
2720
|
+
);
|
|
2721
|
+
});
|
|
2722
|
+
const _GroupControl = class _GroupControl extends React__default.PureComponent {
|
|
2723
|
+
constructor(props) {
|
|
2724
|
+
super(props);
|
|
2725
|
+
this.rootNode = React__default.createRef();
|
|
2726
|
+
this._isUnmounted = false;
|
|
2727
|
+
this.adjustWidgetLayout = debounce(this.setAdjustWidgetLayout, GROUP_CONTROL_LAYOUT_DEBOUNCE_TIME);
|
|
2728
|
+
this.resolve = null;
|
|
2729
|
+
this.controlsLoadedCount = 0;
|
|
2730
|
+
this.controlsProgressCount = 0;
|
|
2731
|
+
this.controlsStatus = {};
|
|
2732
|
+
this.controlsData = {};
|
|
2733
|
+
this._quickActionTimer = null;
|
|
2734
|
+
this.initialParams = {};
|
|
2735
|
+
this.localMeta = { version: LOCAL_META_VERSION, queue: [] };
|
|
2736
|
+
this._onRedraw = null;
|
|
2737
|
+
this.fillQueueWithInitial = (checkByProps) => {
|
|
2738
|
+
const initialQueue = [];
|
|
2739
|
+
for (const groupItem of this.state.memoGroupItems || []) {
|
|
2740
|
+
if (!groupItem.defaults) {
|
|
2741
|
+
continue;
|
|
2742
|
+
}
|
|
2743
|
+
const param = Object.keys(groupItem.defaults)[0];
|
|
2744
|
+
const defaultItemParam = groupItem.defaults[param];
|
|
2745
|
+
if (!checkByProps && !this.state.stateParams[groupItem.id]) {
|
|
2746
|
+
continue;
|
|
2747
|
+
}
|
|
2748
|
+
const isItemSignificant = checkByProps ? this.props.params[groupItem.id][param] !== defaultItemParam : this.state.stateParams[groupItem.id][param] !== defaultItemParam;
|
|
2749
|
+
if (isItemSignificant) {
|
|
2750
|
+
initialQueue.push(groupItem.id);
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
initialQueue.forEach((queueItemId) => {
|
|
2754
|
+
this.localMeta.queue = addItemToLocalQueue(
|
|
2755
|
+
this.localMeta.queue,
|
|
2756
|
+
this.props.id,
|
|
2757
|
+
queueItemId
|
|
2758
|
+
);
|
|
2759
|
+
});
|
|
2760
|
+
};
|
|
2761
|
+
this.getControlsIds = ({
|
|
2762
|
+
data,
|
|
2763
|
+
controlId
|
|
2764
|
+
}) => {
|
|
2765
|
+
let controlIdOrder = this.state.memoGroupItems.map(({ id }) => id);
|
|
2766
|
+
if (!data.buttonApply || controlId) {
|
|
2767
|
+
return controlId ? [controlId] : controlIdOrder;
|
|
2768
|
+
}
|
|
2769
|
+
const paramsInGroup = this.state.memoGroupItems.map(
|
|
2770
|
+
(groupItem) => Object.keys(groupItem.defaults || {})[0]
|
|
2771
|
+
);
|
|
2772
|
+
const currentNamespaceAliases = this.getCurrentTabConfig()?.aliases[this.props.namespace];
|
|
2773
|
+
const groupAliasesList = currentNamespaceAliases ? currentNamespaceAliases.reduce((aliasArr, currentAlias) => {
|
|
2774
|
+
let participationInGroupCount = 0;
|
|
2775
|
+
for (const alias of currentAlias) {
|
|
2776
|
+
if (paramsInGroup.includes(alias)) {
|
|
2777
|
+
participationInGroupCount++;
|
|
2778
|
+
}
|
|
2779
|
+
if (participationInGroupCount >= 2) {
|
|
2780
|
+
aliasArr.push(currentAlias);
|
|
2781
|
+
break;
|
|
2782
|
+
}
|
|
2783
|
+
}
|
|
2784
|
+
return aliasArr;
|
|
2785
|
+
}, []) : [];
|
|
2786
|
+
groupAliasesList.forEach((alias) => {
|
|
2787
|
+
const placementOrderIds = [];
|
|
2788
|
+
controlIdOrder.forEach((id) => {
|
|
2789
|
+
const usedParams = this.controlsData[id]?.uiScheme;
|
|
2790
|
+
const control = Array.isArray(usedParams) ? usedParams[0] : usedParams?.controls[0];
|
|
2791
|
+
if (control && "param" in control && alias.includes(control.param)) {
|
|
2792
|
+
placementOrderIds.push(id);
|
|
2793
|
+
}
|
|
2794
|
+
});
|
|
2795
|
+
const queueOrderIds = [];
|
|
2796
|
+
const outQueueIds = [];
|
|
2797
|
+
this.localMeta.queue.forEach(({ groupItemId, param }) => {
|
|
2798
|
+
if (groupItemId && param && alias.includes(param)) {
|
|
2799
|
+
queueOrderIds.push(groupItemId);
|
|
2800
|
+
}
|
|
2801
|
+
});
|
|
2802
|
+
placementOrderIds.forEach((id) => {
|
|
2803
|
+
if (!queueOrderIds.includes(id)) {
|
|
2804
|
+
outQueueIds.push(id);
|
|
2805
|
+
}
|
|
2806
|
+
});
|
|
2807
|
+
const changedOrderIds = outQueueIds.concat(queueOrderIds);
|
|
2808
|
+
let currentPlacementIndex = 0;
|
|
2809
|
+
controlIdOrder = controlIdOrder.map((id) => {
|
|
2810
|
+
if (placementOrderIds[currentPlacementIndex] === id && changedOrderIds[currentPlacementIndex]) {
|
|
2811
|
+
const newControlId = changedOrderIds[currentPlacementIndex];
|
|
2812
|
+
currentPlacementIndex++;
|
|
2813
|
+
return newControlId;
|
|
2814
|
+
}
|
|
2815
|
+
return id;
|
|
2816
|
+
});
|
|
2817
|
+
});
|
|
2818
|
+
return controlIdOrder;
|
|
2819
|
+
};
|
|
2820
|
+
this.onChange = ({
|
|
2821
|
+
params,
|
|
2822
|
+
callChangeByClick,
|
|
2823
|
+
controlId
|
|
2824
|
+
}) => {
|
|
2825
|
+
const controlData = this.propsControlData;
|
|
2826
|
+
if (!controlData.buttonApply || callChangeByClick) {
|
|
2827
|
+
const appliedControlsIds = this.getControlsIds({ data: controlData, controlId });
|
|
2828
|
+
this.props.onStateAndParamsChange({ params }, { groupItemIds: appliedControlsIds });
|
|
2829
|
+
this.localMeta.queue = [];
|
|
2830
|
+
this.context?.updateTabsWithGlobalState?.({
|
|
2831
|
+
params,
|
|
2832
|
+
selectorItem: {
|
|
2833
|
+
type: DashTabItemType.GroupControl,
|
|
2834
|
+
data: controlData,
|
|
2835
|
+
id: this.props.id
|
|
2836
|
+
},
|
|
2837
|
+
appliedSelectorsIds: appliedControlsIds
|
|
2838
|
+
});
|
|
2839
|
+
return;
|
|
2840
|
+
}
|
|
2841
|
+
if (controlId) {
|
|
2842
|
+
if (controlData.buttonApply) {
|
|
2843
|
+
this.localMeta.queue = addItemToLocalQueue(
|
|
2844
|
+
this.localMeta.queue,
|
|
2845
|
+
this.props.id,
|
|
2846
|
+
controlId,
|
|
2847
|
+
// need name of control main param for alias case
|
|
2848
|
+
Object.keys(params)[0]
|
|
2849
|
+
);
|
|
2850
|
+
}
|
|
2851
|
+
if (controlData.updateControlsOnChange && controlData.buttonApply) {
|
|
2852
|
+
this.setState({
|
|
2853
|
+
stateParams: this.getLocalUpdatedParams(controlId, params),
|
|
2854
|
+
localUpdateLoader: true
|
|
2855
|
+
});
|
|
2856
|
+
} else {
|
|
2857
|
+
this.setState({
|
|
2858
|
+
stateParams: {
|
|
2859
|
+
...this.state.stateParams,
|
|
2860
|
+
[controlId]: {
|
|
2861
|
+
...this.state.stateParams[controlId],
|
|
2862
|
+
...params
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
});
|
|
2866
|
+
}
|
|
2867
|
+
return;
|
|
2868
|
+
}
|
|
2869
|
+
this.setState({ stateParams: params });
|
|
2870
|
+
this.localMeta.queue = [];
|
|
2871
|
+
};
|
|
2872
|
+
this.getUpdatedGroupParams = ({
|
|
2873
|
+
params,
|
|
2874
|
+
meta
|
|
2875
|
+
}) => {
|
|
2876
|
+
const defaultGlobalParams = this.context?.defaultGlobalParams || {};
|
|
2877
|
+
const currentConfigItem = {
|
|
2878
|
+
id: this.props.id,
|
|
2879
|
+
data: this.props.data,
|
|
2880
|
+
type: DashTabItemType.GroupControl,
|
|
2881
|
+
namespace: this.props.namespace
|
|
2882
|
+
};
|
|
2883
|
+
const updatedStateParams = getItemsParams({
|
|
2884
|
+
config: {
|
|
2885
|
+
...this.getCurrentTabConfig(),
|
|
2886
|
+
items: [currentConfigItem]
|
|
2887
|
+
},
|
|
2888
|
+
itemsStateAndParams: {
|
|
2889
|
+
[this.props.id]: { params },
|
|
2890
|
+
__meta__: meta || this.localMeta
|
|
2891
|
+
},
|
|
2892
|
+
plugins: [pluginGroupControlBaseDL],
|
|
2893
|
+
defaultGlobalParams,
|
|
2894
|
+
globalParams: getUrlGlobalParams(getLocation().search, defaultGlobalParams) || {},
|
|
2895
|
+
useStateAsInitial: true
|
|
2896
|
+
});
|
|
2897
|
+
return updatedStateParams[this.props.id];
|
|
2898
|
+
};
|
|
2899
|
+
this.getLocalUpdatedParams = (controlId, params) => {
|
|
2900
|
+
const newParams = {
|
|
2901
|
+
...this.state.stateParams,
|
|
2902
|
+
[controlId]: { ...this.state.stateParams[controlId], ...params }
|
|
2903
|
+
};
|
|
2904
|
+
return this.getUpdatedGroupParams({ params: newParams });
|
|
2905
|
+
};
|
|
2906
|
+
this.getCurrentWidgetResolvedMetaInfo = (id, loadedData) => {
|
|
2907
|
+
let label = "";
|
|
2908
|
+
if (loadedData?.uiScheme && "controls" in loadedData.uiScheme) {
|
|
2909
|
+
label = loadedData.uiScheme.controls[0].label;
|
|
2910
|
+
}
|
|
2911
|
+
const currentItem = this.state.memoGroupItems?.find((item) => item.id === id);
|
|
2912
|
+
const widgetMetaInfo = {
|
|
2913
|
+
layoutId: this.props.id,
|
|
2914
|
+
widgetId: this.props.id,
|
|
2915
|
+
title: currentItem?.title,
|
|
2916
|
+
label,
|
|
2917
|
+
params: loadedData?.params,
|
|
2918
|
+
defaultParams: currentItem ? this.filterDefaultsBySource(currentItem) : {},
|
|
2919
|
+
loaded: Boolean(loadedData),
|
|
2920
|
+
itemId: id,
|
|
2921
|
+
usedParams: loadedData?.usedParams ? Object.keys(
|
|
2922
|
+
filterSignificantParams({
|
|
2923
|
+
params: loadedData.usedParams,
|
|
2924
|
+
loadedData,
|
|
2925
|
+
defaults: currentItem?.defaults,
|
|
2926
|
+
dependentSelectors: this.dependentSelectors
|
|
2927
|
+
})
|
|
2928
|
+
) : null,
|
|
2929
|
+
datasets: loadedData?.extra?.datasets || null,
|
|
2930
|
+
datasetId: loadedData?.sources?.fields?.datasetId || "",
|
|
2931
|
+
type: "control",
|
|
2932
|
+
sourceType: loadedData?.sourceType,
|
|
2933
|
+
loadError: !loadedData
|
|
2934
|
+
};
|
|
2935
|
+
return widgetMetaInfo;
|
|
2936
|
+
};
|
|
2937
|
+
this.resolveMetaInControl = () => {
|
|
2938
|
+
if (!this.resolve) {
|
|
2939
|
+
return;
|
|
2940
|
+
}
|
|
2941
|
+
const result = [];
|
|
2942
|
+
for (const [id, data] of Object.entries(this.controlsData)) {
|
|
2943
|
+
result.push(this.getCurrentWidgetResolvedMetaInfo(id, data));
|
|
2944
|
+
}
|
|
2945
|
+
this.resolve(result);
|
|
2946
|
+
};
|
|
2947
|
+
this.handleStatusChanged = ({
|
|
2948
|
+
controlId,
|
|
2949
|
+
status,
|
|
2950
|
+
loadedData
|
|
2951
|
+
}) => {
|
|
2952
|
+
if (this._isUnmounted) {
|
|
2953
|
+
return;
|
|
2954
|
+
}
|
|
2955
|
+
if (status === LOAD_STATUS.DESTROYED) {
|
|
2956
|
+
delete this.controlsData[controlId];
|
|
2957
|
+
delete this.controlsStatus[controlId];
|
|
2958
|
+
if (this.controlsStatus[controlId] === LOAD_STATUS.PENDING || this.controlsStatus[controlId] === LOAD_STATUS.INITIAL) {
|
|
2959
|
+
this.controlsProgressCount--;
|
|
2960
|
+
return;
|
|
2961
|
+
}
|
|
2962
|
+
this.controlsLoadedCount--;
|
|
2963
|
+
return;
|
|
2964
|
+
}
|
|
2965
|
+
const isLoaded = status === LOAD_STATUS.SUCCESS || status === LOAD_STATUS.FAIL;
|
|
2966
|
+
const isInitialPending = !this.controlsStatus[controlId] && status === LOAD_STATUS.PENDING;
|
|
2967
|
+
const isReloadPending = this.controlsStatus[controlId] !== LOAD_STATUS.INITIAL && status === LOAD_STATUS.PENDING;
|
|
2968
|
+
if (isLoaded) {
|
|
2969
|
+
this.controlsLoadedCount++;
|
|
2970
|
+
this.controlsProgressCount--;
|
|
2971
|
+
if (loadedData || loadedData === null) {
|
|
2972
|
+
this.controlsData[controlId] = loadedData;
|
|
2973
|
+
}
|
|
2974
|
+
this._onRedraw?.();
|
|
2975
|
+
} else if (isInitialPending) {
|
|
2976
|
+
this.controlsProgressCount++;
|
|
2977
|
+
} else if (isReloadPending) {
|
|
2978
|
+
this.controlsLoadedCount--;
|
|
2979
|
+
this.controlsProgressCount++;
|
|
2980
|
+
}
|
|
2981
|
+
this.controlsStatus[controlId] = status;
|
|
2982
|
+
if (!this.controlsProgressCount) {
|
|
2983
|
+
if (this.props.data.autoHeight && !this.state.isInit) {
|
|
2984
|
+
this.adjustWidgetLayout(false);
|
|
2985
|
+
}
|
|
2986
|
+
const disableButtons = Object.values(this.controlsData).every(
|
|
2987
|
+
(data) => data === null || data.uiScheme?.controls[0].disabled
|
|
2988
|
+
);
|
|
2989
|
+
this.resolveMetaInControl();
|
|
2990
|
+
this.setState({
|
|
2991
|
+
needReload: false,
|
|
2992
|
+
status: LOAD_STATUS.SUCCESS,
|
|
2993
|
+
silentLoading: false,
|
|
2994
|
+
isInit: true,
|
|
2995
|
+
localUpdateLoader: false,
|
|
2996
|
+
disableButtons
|
|
2997
|
+
});
|
|
2998
|
+
}
|
|
2999
|
+
};
|
|
3000
|
+
this.requestHeadersGetter = () => {
|
|
3001
|
+
if (this.context?.dataProviderContextGetter) {
|
|
3002
|
+
return this.context.dataProviderContextGetter(this.props.id);
|
|
3003
|
+
}
|
|
3004
|
+
return {};
|
|
3005
|
+
};
|
|
3006
|
+
this.handleApplyChange = () => {
|
|
3007
|
+
this.applyButtonAction(CLICK_ACTION_TYPE.SET_PARAMS);
|
|
3008
|
+
};
|
|
3009
|
+
this.handleResetChange = () => {
|
|
3010
|
+
this.applyButtonAction(CLICK_ACTION_TYPE.SET_INITIAL_PARAMS);
|
|
3011
|
+
};
|
|
3012
|
+
const memoGroupItems = this.getVisibleGroupItems();
|
|
3013
|
+
this._onRedraw = debounce(this.props.onBeforeLoad(), DEBOUNCE_RENDER_TIMEOUT);
|
|
3014
|
+
this.controlsProgressCount = memoGroupItems.length || 0;
|
|
3015
|
+
memoGroupItems.forEach((item) => {
|
|
3016
|
+
this.controlsStatus[item.id] = LOAD_STATUS.INITIAL;
|
|
3017
|
+
this.controlsData[item.id] = null;
|
|
3018
|
+
});
|
|
3019
|
+
this.initialParams = this.props.params;
|
|
3020
|
+
this.state = {
|
|
3021
|
+
status: LOAD_STATUS.INITIAL,
|
|
3022
|
+
silentLoading: false,
|
|
3023
|
+
isInit: false,
|
|
3024
|
+
stateParams: this.props.params,
|
|
3025
|
+
needReload: false,
|
|
3026
|
+
localUpdateLoader: false,
|
|
3027
|
+
quickActionLoader: false,
|
|
3028
|
+
disableButtons: true,
|
|
3029
|
+
memoGroupItems
|
|
3030
|
+
};
|
|
3031
|
+
}
|
|
3032
|
+
componentDidMount() {
|
|
3033
|
+
this.init();
|
|
3034
|
+
}
|
|
3035
|
+
componentDidUpdate(prevProps) {
|
|
3036
|
+
if (this.rootNode.current) {
|
|
3037
|
+
if (this.props.data.autoHeight) {
|
|
3038
|
+
this.adjustWidgetLayout(false);
|
|
3039
|
+
} else if (prevProps.data.autoHeight) {
|
|
3040
|
+
this.adjustWidgetLayout(true);
|
|
3041
|
+
}
|
|
3042
|
+
}
|
|
3043
|
+
const hasDataChanged = !isEqual(this.props.data, prevProps.data);
|
|
3044
|
+
const hasParamsChanged = !isEqual(this.props.params, prevProps.params);
|
|
3045
|
+
const hasTabChanged = this.props.context.currentTabId !== prevProps.context.currentTabId;
|
|
3046
|
+
let memoGroupItems = this.state.memoGroupItems;
|
|
3047
|
+
if (hasDataChanged || hasTabChanged) {
|
|
3048
|
+
const updatedMemoGroupItems = this.getVisibleGroupItems();
|
|
3049
|
+
memoGroupItems = updatedMemoGroupItems;
|
|
3050
|
+
this.setState({
|
|
3051
|
+
memoGroupItems
|
|
3052
|
+
});
|
|
3053
|
+
}
|
|
3054
|
+
if (hasDataChanged) {
|
|
3055
|
+
this.setState({
|
|
3056
|
+
status: LOAD_STATUS.PENDING,
|
|
3057
|
+
needReload: true,
|
|
3058
|
+
silentLoading: true
|
|
3059
|
+
});
|
|
3060
|
+
}
|
|
3061
|
+
if (hasParamsChanged || hasDataChanged) {
|
|
3062
|
+
if (!this.props.data.buttonApply) {
|
|
3063
|
+
this.setState({
|
|
3064
|
+
stateParams: this.props.params
|
|
3065
|
+
});
|
|
3066
|
+
return;
|
|
3067
|
+
}
|
|
3068
|
+
const updatedStateParams = {};
|
|
3069
|
+
const updatedItemsIds = [];
|
|
3070
|
+
memoGroupItems?.forEach((groupItem) => {
|
|
3071
|
+
const newPropsParams = filterSignificantParams({
|
|
3072
|
+
params: this.props.params[groupItem.id],
|
|
3073
|
+
loadedData: this.controlsData[groupItem.id],
|
|
3074
|
+
defaults: groupItem.defaults,
|
|
3075
|
+
dependentSelectors: this.dependentSelectors
|
|
3076
|
+
});
|
|
3077
|
+
const initialParams = filterSignificantParams({
|
|
3078
|
+
params: this.initialParams[groupItem.id],
|
|
3079
|
+
loadedData: this.controlsData[groupItem.id],
|
|
3080
|
+
defaults: groupItem.defaults,
|
|
3081
|
+
dependentSelectors: this.dependentSelectors
|
|
3082
|
+
});
|
|
3083
|
+
if (isEqual(initialParams, newPropsParams)) {
|
|
3084
|
+
updatedStateParams[groupItem.id] = { ...this.state.stateParams[groupItem.id] };
|
|
3085
|
+
} else {
|
|
3086
|
+
updatedStateParams[groupItem.id] = { ...this.props.params[groupItem.id] };
|
|
3087
|
+
this.initialParams[groupItem.id] = { ...this.props.params[groupItem.id] };
|
|
3088
|
+
updatedItemsIds.push(groupItem.id);
|
|
3089
|
+
}
|
|
3090
|
+
});
|
|
3091
|
+
if (this.props.data.updateControlsOnChange && (updatedItemsIds.length || !prevProps.data.updateControlsOnChange)) {
|
|
3092
|
+
if (prevProps.data.updateControlsOnChange) {
|
|
3093
|
+
updatedItemsIds.forEach((queueItemId) => {
|
|
3094
|
+
this.localMeta.queue = addItemToLocalQueue(
|
|
3095
|
+
this.localMeta.queue,
|
|
3096
|
+
this.props.id,
|
|
3097
|
+
queueItemId
|
|
3098
|
+
);
|
|
3099
|
+
});
|
|
3100
|
+
} else {
|
|
3101
|
+
this.fillQueueWithInitial();
|
|
3102
|
+
}
|
|
3103
|
+
const locallyUpdatedParams = this.getUpdatedGroupParams({
|
|
3104
|
+
params: updatedStateParams
|
|
3105
|
+
});
|
|
3106
|
+
this.setState({ stateParams: locallyUpdatedParams });
|
|
3107
|
+
return;
|
|
3108
|
+
}
|
|
3109
|
+
this.setState({
|
|
3110
|
+
stateParams: updatedStateParams
|
|
3111
|
+
});
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
componentWillUnmount() {
|
|
3115
|
+
this._isUnmounted = true;
|
|
3116
|
+
if (this.props.data.autoHeight) {
|
|
3117
|
+
this.setAdjustWidgetLayout(true);
|
|
3118
|
+
}
|
|
3119
|
+
}
|
|
3120
|
+
render() {
|
|
3121
|
+
const isLoading = this.state.status === LOAD_STATUS.PENDING && !this.state.silentLoading || this.state.quickActionLoader || this.state.localUpdateLoader;
|
|
3122
|
+
const { borderRadius, globalWidgetSettings } = this.props;
|
|
3123
|
+
const resultedBorderRadius = borderRadius ?? globalWidgetSettings?.borderRadius;
|
|
3124
|
+
const style = resultedBorderRadius ? { borderRadius: resultedBorderRadius } : void 0;
|
|
3125
|
+
return /* @__PURE__ */ jsx(
|
|
3126
|
+
GroupControlWrapper,
|
|
3127
|
+
{
|
|
3128
|
+
ref: this.rootNode,
|
|
3129
|
+
id: this.props.id,
|
|
3130
|
+
autoHeight: this.props.data.autoHeight ?? false,
|
|
3131
|
+
pulsate: isLoading,
|
|
3132
|
+
style,
|
|
3133
|
+
children: /* @__PURE__ */ jsxs(
|
|
3134
|
+
"div",
|
|
3135
|
+
{
|
|
3136
|
+
className: b$5("container", CHARTKIT_SCROLLABLE_NODE_CLASSNAME),
|
|
3137
|
+
"data-qa": ControlQA.groupChartkitControl,
|
|
3138
|
+
children: [
|
|
3139
|
+
/* @__PURE__ */ jsx(
|
|
3140
|
+
DebugInfoTool,
|
|
3141
|
+
{
|
|
3142
|
+
label: "widgetId",
|
|
3143
|
+
value: this.props.id,
|
|
3144
|
+
modType: "bottom-right-corner"
|
|
3145
|
+
}
|
|
3146
|
+
),
|
|
3147
|
+
this.renderControls(),
|
|
3148
|
+
isLoading && /* @__PURE__ */ jsx("div", { className: b$5("locked"), "data-qa": ControlQA.groupCommonLockedBlock })
|
|
3149
|
+
]
|
|
3150
|
+
}
|
|
3151
|
+
)
|
|
3152
|
+
}
|
|
3153
|
+
);
|
|
3154
|
+
}
|
|
3155
|
+
getMeta() {
|
|
3156
|
+
return new Promise((resolve) => {
|
|
3157
|
+
this.resolve = resolve;
|
|
3158
|
+
if (this.state.status === LOAD_STATUS.SUCCESS) {
|
|
3159
|
+
this.resolveMetaInControl();
|
|
3160
|
+
}
|
|
3161
|
+
});
|
|
3162
|
+
}
|
|
3163
|
+
// need for autoreload from dashkit
|
|
3164
|
+
reload({ silentLoading }) {
|
|
3165
|
+
if (this.context?.skipReload || !this.state.isInit || this._isUnmounted) {
|
|
3166
|
+
return;
|
|
3167
|
+
}
|
|
3168
|
+
this.setState({
|
|
3169
|
+
needReload: true,
|
|
3170
|
+
status: LOAD_STATUS.PENDING,
|
|
3171
|
+
silentLoading: Boolean(silentLoading)
|
|
3172
|
+
});
|
|
3173
|
+
}
|
|
3174
|
+
get propsControlData() {
|
|
3175
|
+
return this.props.data;
|
|
3176
|
+
}
|
|
3177
|
+
getVisibleGroupItems() {
|
|
3178
|
+
const controlData = this.propsControlData;
|
|
3179
|
+
const currentTabId = this.props.context.currentTabId;
|
|
3180
|
+
if (!isEnabledFeature(Feature.EnableGlobalSelectors) || !currentTabId || !isItemGlobal({
|
|
3181
|
+
data: controlData,
|
|
3182
|
+
type: DashTabItemType.GroupControl
|
|
3183
|
+
})) {
|
|
3184
|
+
return controlData.group;
|
|
3185
|
+
}
|
|
3186
|
+
const isGroupSettingPrevailing = controlData.group.every(
|
|
3187
|
+
(item) => item.impactType === void 0 || item.impactType === "asGroup"
|
|
3188
|
+
);
|
|
3189
|
+
const isGroupAvailableOnTab = isGlobalWidgetVisibleByMainSetting(
|
|
3190
|
+
currentTabId,
|
|
3191
|
+
controlData.impactType,
|
|
3192
|
+
controlData.impactTabsIds
|
|
3193
|
+
);
|
|
3194
|
+
if (isGroupSettingPrevailing && isGroupAvailableOnTab) {
|
|
3195
|
+
return controlData.group;
|
|
3196
|
+
}
|
|
3197
|
+
return controlData.group.filter(
|
|
3198
|
+
(item) => isGroupItemVisibleOnTab({
|
|
3199
|
+
item,
|
|
3200
|
+
tabId: currentTabId,
|
|
3201
|
+
isVisibleByMainSetting: isGroupAvailableOnTab
|
|
3202
|
+
})
|
|
3203
|
+
);
|
|
3204
|
+
}
|
|
3205
|
+
get dependentSelectors() {
|
|
3206
|
+
return this.props.settings.dependentSelectors ?? false;
|
|
3207
|
+
}
|
|
3208
|
+
getCurrentTabConfig() {
|
|
3209
|
+
return this.context?.config || {
|
|
3210
|
+
aliases: {},
|
|
3211
|
+
connections: []
|
|
3212
|
+
};
|
|
3213
|
+
}
|
|
3214
|
+
filterDefaultsBySource(item) {
|
|
3215
|
+
const sourcedFieldId = item.sourceType === "dataset" ? item.source?.datasetFieldId : null;
|
|
3216
|
+
if (sourcedFieldId && item.defaults) {
|
|
3217
|
+
return { [sourcedFieldId]: item.defaults[sourcedFieldId] };
|
|
3218
|
+
}
|
|
3219
|
+
return item.defaults;
|
|
3220
|
+
}
|
|
3221
|
+
getDistinctsWithHeaders() {
|
|
3222
|
+
if (this.props.getDistincts) {
|
|
3223
|
+
this._getDistinctsMemo = this._getDistinctsMemo || ((params, _, options) => {
|
|
3224
|
+
const { getDistincts } = this.props;
|
|
3225
|
+
const headers = this?.context?.dataProviderContextGetter?.(this.props.id);
|
|
3226
|
+
return getDistincts?.(
|
|
3227
|
+
params,
|
|
3228
|
+
headers,
|
|
3229
|
+
options
|
|
3230
|
+
);
|
|
3231
|
+
});
|
|
3232
|
+
} else {
|
|
3233
|
+
this._getDistinctsMemo = void 0;
|
|
3234
|
+
}
|
|
3235
|
+
return this._getDistinctsMemo;
|
|
3236
|
+
}
|
|
3237
|
+
renderControl(item) {
|
|
3238
|
+
const { workbookId } = this.props;
|
|
3239
|
+
const { silentLoading } = this.state;
|
|
3240
|
+
return /* @__PURE__ */ jsx(
|
|
3241
|
+
Control,
|
|
3242
|
+
{
|
|
3243
|
+
id: item.id,
|
|
3244
|
+
data: item,
|
|
3245
|
+
params: this.state.stateParams[item.id] || {},
|
|
3246
|
+
onStatusChanged: this.handleStatusChanged,
|
|
3247
|
+
silentLoading,
|
|
3248
|
+
getDistincts: this.getDistinctsWithHeaders(),
|
|
3249
|
+
onChange: this.onChange,
|
|
3250
|
+
needReload: this.state.needReload,
|
|
3251
|
+
workbookId,
|
|
3252
|
+
dependentSelectors: this.dependentSelectors,
|
|
3253
|
+
widgetId: this.props.id,
|
|
3254
|
+
requestHeaders: this.requestHeadersGetter
|
|
3255
|
+
},
|
|
3256
|
+
item.id
|
|
3257
|
+
);
|
|
3258
|
+
}
|
|
3259
|
+
applyButtonAction(action) {
|
|
3260
|
+
let newParams = {};
|
|
3261
|
+
let callChangeByClick = true;
|
|
3262
|
+
switch (action) {
|
|
3263
|
+
case CLICK_ACTION_TYPE.SET_PARAMS:
|
|
3264
|
+
newParams = this.state.stateParams;
|
|
3265
|
+
break;
|
|
3266
|
+
case CLICK_ACTION_TYPE.SET_INITIAL_PARAMS: {
|
|
3267
|
+
const defaultParams = this.state.memoGroupItems?.reduce(
|
|
3268
|
+
(paramsState, data) => {
|
|
3269
|
+
paramsState[data.id] = data.defaults || {};
|
|
3270
|
+
return paramsState;
|
|
3271
|
+
},
|
|
3272
|
+
{}
|
|
3273
|
+
) || this.state.stateParams;
|
|
3274
|
+
newParams = this.getUpdatedGroupParams({
|
|
3275
|
+
params: defaultParams,
|
|
3276
|
+
meta: { version: LOCAL_META_VERSION, queue: [] }
|
|
3277
|
+
});
|
|
3278
|
+
if (this.props.data.buttonApply) {
|
|
3279
|
+
callChangeByClick = false;
|
|
3280
|
+
}
|
|
3281
|
+
break;
|
|
3282
|
+
}
|
|
3283
|
+
}
|
|
3284
|
+
if (action === CLICK_ACTION_TYPE.SET_INITIAL_PARAMS || !isEqual(newParams, this.state.stateParams) || !isEqual(newParams, this.props.params)) {
|
|
3285
|
+
if (action === CLICK_ACTION_TYPE.SET_PARAMS) {
|
|
3286
|
+
if (this._quickActionTimer) {
|
|
3287
|
+
clearTimeout(this._quickActionTimer);
|
|
3288
|
+
}
|
|
3289
|
+
this.setState({ quickActionLoader: true }, () => {
|
|
3290
|
+
this._quickActionTimer = setTimeout(() => {
|
|
3291
|
+
this._quickActionTimer = null;
|
|
3292
|
+
this.setState({ quickActionLoader: false });
|
|
3293
|
+
}, GROUP_CONTROL_LOADING_EMULATION_TIMEOUT);
|
|
3294
|
+
});
|
|
3295
|
+
}
|
|
3296
|
+
this.onChange({ params: newParams, callChangeByClick });
|
|
3297
|
+
}
|
|
3298
|
+
}
|
|
3299
|
+
renderSubHeader() {
|
|
3300
|
+
const { showGroupName, groupName } = this.propsControlData;
|
|
3301
|
+
const headerText = groupName || this.context?.selectorsGroupTitlePlaceholder;
|
|
3302
|
+
if (showGroupName && headerText) {
|
|
3303
|
+
return /* @__PURE__ */ jsx("div", { className: b$5("header"), children: /* @__PURE__ */ jsx(Text, { variant: "subheader-2", className: b$5("controls-title"), children: headerText }) });
|
|
3304
|
+
}
|
|
3305
|
+
return null;
|
|
3306
|
+
}
|
|
3307
|
+
renderButtons() {
|
|
3308
|
+
const controlData = this.propsControlData;
|
|
3309
|
+
const resetAction = { action: CLICK_ACTION_TYPE.SET_INITIAL_PARAMS };
|
|
3310
|
+
return /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
3311
|
+
controlData.buttonApply && /* @__PURE__ */ jsx(
|
|
3312
|
+
ControlButton,
|
|
3313
|
+
{
|
|
3314
|
+
type: CONTROL_TYPE.BUTTON,
|
|
3315
|
+
label: i18n("button_apply"),
|
|
3316
|
+
updateOnChange: true,
|
|
3317
|
+
theme: "action",
|
|
3318
|
+
className: b$5("item", { button: true }),
|
|
3319
|
+
onChange: this.handleApplyChange,
|
|
3320
|
+
qa: ControlQA.controlButtonApply,
|
|
3321
|
+
disabled: this.state.disableButtons
|
|
3322
|
+
}
|
|
3323
|
+
),
|
|
3324
|
+
controlData.buttonReset && /* @__PURE__ */ jsx(
|
|
3325
|
+
ControlButton,
|
|
3326
|
+
{
|
|
3327
|
+
type: CONTROL_TYPE.BUTTON,
|
|
3328
|
+
className: b$5("item", { button: true }),
|
|
3329
|
+
label: i18n("button_reset"),
|
|
3330
|
+
onClick: resetAction,
|
|
3331
|
+
onChange: this.handleResetChange,
|
|
3332
|
+
qa: ControlQA.controlButtonReset,
|
|
3333
|
+
disabled: this.state.disableButtons
|
|
3334
|
+
}
|
|
3335
|
+
)
|
|
3336
|
+
] });
|
|
3337
|
+
}
|
|
3338
|
+
renderControls() {
|
|
3339
|
+
return /* @__PURE__ */ jsxs("div", { className: b$5("controls"), children: [
|
|
3340
|
+
this.renderSubHeader(),
|
|
3341
|
+
this.state.memoGroupItems?.map(
|
|
3342
|
+
(item) => this.renderControl(item)
|
|
3343
|
+
),
|
|
3344
|
+
this.renderButtons()
|
|
3345
|
+
] });
|
|
3346
|
+
}
|
|
3347
|
+
async init() {
|
|
3348
|
+
if (this._isUnmounted) {
|
|
3349
|
+
return;
|
|
3350
|
+
}
|
|
3351
|
+
let stateParams;
|
|
3352
|
+
const controlData = this.propsControlData;
|
|
3353
|
+
if (controlData.updateControlsOnChange) {
|
|
3354
|
+
this.fillQueueWithInitial(true);
|
|
3355
|
+
stateParams = this.getUpdatedGroupParams({
|
|
3356
|
+
params: this.props.params
|
|
3357
|
+
});
|
|
3358
|
+
} else {
|
|
3359
|
+
stateParams = this.props.params;
|
|
3360
|
+
}
|
|
3361
|
+
this.setState({
|
|
3362
|
+
status: LOAD_STATUS.PENDING,
|
|
3363
|
+
stateParams
|
|
3364
|
+
});
|
|
3365
|
+
}
|
|
3366
|
+
setAdjustWidgetLayout(needSetDefault) {
|
|
3367
|
+
adjustWidgetLayout({
|
|
3368
|
+
widgetId: this.props.id,
|
|
3369
|
+
needSetDefault,
|
|
3370
|
+
rootNode: this.rootNode,
|
|
3371
|
+
gridLayout: this.props.gridLayout,
|
|
3372
|
+
layout: this.props.layout,
|
|
3373
|
+
cb: (data) => {
|
|
3374
|
+
this.props.adjustWidgetLayout(data);
|
|
3375
|
+
this._onRedraw?.();
|
|
3376
|
+
}
|
|
3377
|
+
});
|
|
3378
|
+
}
|
|
3379
|
+
};
|
|
3380
|
+
_GroupControl.contextType = ExtendedDashKitContext;
|
|
3381
|
+
let GroupControl = _GroupControl;
|
|
3382
|
+
const plugin = {
|
|
3383
|
+
type: DashTabItemType.GroupControl,
|
|
3384
|
+
defaultLayout: DEFAULT_CONTROL_LAYOUT,
|
|
3385
|
+
setSettings(settings) {
|
|
3386
|
+
const { getDistincts } = settings;
|
|
3387
|
+
plugin.getDistincts = getDistincts;
|
|
3388
|
+
plugin.globalWidgetSettings = settings.globalWidgetSettings;
|
|
3389
|
+
return plugin;
|
|
3390
|
+
},
|
|
3391
|
+
renderer(props, forwardedRef) {
|
|
3392
|
+
const workbookId = props.context.workbookId;
|
|
3393
|
+
return /* @__PURE__ */ jsx(
|
|
3394
|
+
GroupControl,
|
|
3395
|
+
{
|
|
3396
|
+
...props,
|
|
3397
|
+
getDistincts: plugin.getDistincts,
|
|
3398
|
+
workbookId,
|
|
3399
|
+
ref: forwardedRef,
|
|
3400
|
+
globalWidgetSettings: plugin.globalWidgetSettings
|
|
3401
|
+
}
|
|
3402
|
+
);
|
|
3403
|
+
}
|
|
3404
|
+
};
|
|
3405
|
+
const b$4 = block("dashkit-plugin-container");
|
|
3406
|
+
const RendererWrapper = React__default.memo(function RendererWrapper2({
|
|
3407
|
+
children,
|
|
3408
|
+
type,
|
|
3409
|
+
nodeRef,
|
|
3410
|
+
classMod,
|
|
3411
|
+
beforeContentNode,
|
|
3412
|
+
style,
|
|
3413
|
+
...props
|
|
3414
|
+
}) {
|
|
3415
|
+
return /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
3416
|
+
beforeContentNode,
|
|
3417
|
+
/* @__PURE__ */ jsx(
|
|
3418
|
+
"div",
|
|
3419
|
+
{
|
|
3420
|
+
ref: nodeRef,
|
|
3421
|
+
className: b$4("wrapper", {
|
|
3422
|
+
[type]: Boolean(type),
|
|
3423
|
+
[String(classMod)]: Boolean(classMod)
|
|
3424
|
+
}),
|
|
3425
|
+
style,
|
|
3426
|
+
...props,
|
|
3427
|
+
children
|
|
3428
|
+
}
|
|
3429
|
+
)
|
|
3430
|
+
] });
|
|
3431
|
+
});
|
|
3432
|
+
const b$3 = block("dashkit-plugin-image");
|
|
3433
|
+
const pluginImage = {
|
|
3434
|
+
type: DashTabItemType.Image,
|
|
3435
|
+
defaultLayout: { w: 12, h: 12, minH: 1, minW: 1 },
|
|
3436
|
+
setSettings: (settings) => {
|
|
3437
|
+
pluginImage.globalWidgetSettings = settings.globalWidgetSettings;
|
|
3438
|
+
return pluginImage;
|
|
3439
|
+
},
|
|
3440
|
+
renderer: PluginImageRenderer
|
|
3441
|
+
};
|
|
3442
|
+
function PluginImageRenderer(props, _ref) {
|
|
3443
|
+
const {
|
|
3444
|
+
id,
|
|
3445
|
+
data: { alt, background, backgroundSettings, borderRadius, src, preserveAspectRatio },
|
|
3446
|
+
layout
|
|
3447
|
+
} = props;
|
|
3448
|
+
const rootNodeRef = React__default.useRef(null);
|
|
3449
|
+
useWidgetContext({
|
|
3450
|
+
id: props.id,
|
|
3451
|
+
elementRef: rootNodeRef
|
|
3452
|
+
});
|
|
3453
|
+
const handleUpdate = useBeforeLoad(props.onBeforeLoad);
|
|
3454
|
+
const currentLayout = layout.find(({ i }) => i === props.id) || {
|
|
3455
|
+
x: null,
|
|
3456
|
+
y: null,
|
|
3457
|
+
h: null,
|
|
3458
|
+
w: null
|
|
3459
|
+
};
|
|
3460
|
+
const { style } = usePreparedWrapSettings({
|
|
3461
|
+
ownWidgetSettings: {
|
|
3462
|
+
background,
|
|
3463
|
+
backgroundSettings,
|
|
3464
|
+
borderRadius
|
|
3465
|
+
},
|
|
3466
|
+
globalWidgetSettings: pluginImage.globalWidgetSettings ?? {},
|
|
3467
|
+
defaultOldColor: CustomPaletteBgColors.NONE
|
|
3468
|
+
});
|
|
3469
|
+
React__default.useEffect(() => {
|
|
3470
|
+
handleUpdate?.();
|
|
3471
|
+
}, [
|
|
3472
|
+
handleUpdate,
|
|
3473
|
+
currentLayout.x,
|
|
3474
|
+
currentLayout.y,
|
|
3475
|
+
currentLayout.h,
|
|
3476
|
+
currentLayout.w,
|
|
3477
|
+
preserveAspectRatio,
|
|
3478
|
+
style
|
|
3479
|
+
]);
|
|
3480
|
+
return /* @__PURE__ */ jsx(RendererWrapper, { id, type: DashTabItemType.Image, nodeRef: rootNodeRef, style, children: /* @__PURE__ */ jsx(
|
|
3481
|
+
"img",
|
|
3482
|
+
{
|
|
3483
|
+
className: b$3({ "preserve-aspect-ratio": preserveAspectRatio }),
|
|
3484
|
+
alt,
|
|
3485
|
+
src
|
|
3486
|
+
}
|
|
3487
|
+
) });
|
|
3488
|
+
}
|
|
3489
|
+
const b$2 = block("dashkit-plugin-text-container");
|
|
3490
|
+
const WIDGET_RESIZE_DEBOUNCE_TIMEOUT$1 = 100;
|
|
3491
|
+
const useWatchDomResizeObserver = ({
|
|
3492
|
+
domNodeGetter,
|
|
3493
|
+
onResize,
|
|
3494
|
+
enable = false
|
|
3495
|
+
}) => {
|
|
3496
|
+
const currentRectRef = React__default.useRef({ width: 0, height: 0 });
|
|
3497
|
+
const domElement = enable ? domNodeGetter() : null;
|
|
3498
|
+
const onResizeRef = React__default.useRef(onResize);
|
|
3499
|
+
onResizeRef.current = onResize;
|
|
3500
|
+
React__default.useEffect(() => {
|
|
3501
|
+
if (!domElement) {
|
|
3502
|
+
return;
|
|
3503
|
+
}
|
|
3504
|
+
const observer = new ResizeObserver((entries) => {
|
|
3505
|
+
if (!entries[0]) {
|
|
3506
|
+
return;
|
|
3507
|
+
}
|
|
3508
|
+
const { width, height } = entries[0].contentRect;
|
|
3509
|
+
const currentRect = currentRectRef.current;
|
|
3510
|
+
if (currentRect.height !== height || currentRect.width !== width) {
|
|
3511
|
+
currentRect.height = height;
|
|
3512
|
+
currentRect.width = width;
|
|
3513
|
+
onResizeRef.current();
|
|
3514
|
+
}
|
|
3515
|
+
});
|
|
3516
|
+
observer.observe(domElement);
|
|
3517
|
+
return () => {
|
|
3518
|
+
observer.disconnect();
|
|
3519
|
+
};
|
|
3520
|
+
}, [domElement, onResizeRef]);
|
|
3521
|
+
};
|
|
3522
|
+
const textPlugin = {
|
|
3523
|
+
...pluginText,
|
|
3524
|
+
setSettings(settings) {
|
|
3525
|
+
const { apiHandler, globalWidgetSettings } = settings;
|
|
3526
|
+
pluginText._apiHandler = apiHandler;
|
|
3527
|
+
textPlugin.globalWidgetSettings = globalWidgetSettings;
|
|
3528
|
+
return textPlugin;
|
|
3529
|
+
},
|
|
3530
|
+
renderer: function Wrapper(props, forwardedRef) {
|
|
3531
|
+
const rootNodeRef = React__default.useRef(null);
|
|
3532
|
+
const [metaScripts, setMetaScripts] = React__default.useState();
|
|
3533
|
+
const [isPending, setIsPending] = React__default.useState(false);
|
|
3534
|
+
useWidgetContext({
|
|
3535
|
+
id: props.id,
|
|
3536
|
+
elementRef: rootNodeRef
|
|
3537
|
+
});
|
|
3538
|
+
const previousPendingState = usePrevious(isPending);
|
|
3539
|
+
const isPendingChanged = isPending !== previousPendingState;
|
|
3540
|
+
const handleUpdate = useBeforeLoad(props.onBeforeLoad);
|
|
3541
|
+
const YfmWrapperKeyRef = React__default.useRef(0);
|
|
3542
|
+
const layoutRef = React__default.useRef(props.layout);
|
|
3543
|
+
layoutRef.current = props.layout;
|
|
3544
|
+
const adjustLayout = React__default.useCallback(
|
|
3545
|
+
debounce((needSetDefault) => {
|
|
3546
|
+
adjustWidgetLayout({
|
|
3547
|
+
widgetId: props.id,
|
|
3548
|
+
needSetDefault,
|
|
3549
|
+
rootNode: rootNodeRef,
|
|
3550
|
+
gridLayout: props.gridLayout,
|
|
3551
|
+
layout: layoutRef.current,
|
|
3552
|
+
cb: (...args) => {
|
|
3553
|
+
return props.adjustWidgetLayout(...args);
|
|
3554
|
+
},
|
|
3555
|
+
mainNodeSelector: `.${YFM_MARKDOWN_CLASSNAME}.${b$2()}`,
|
|
3556
|
+
scrollableNodeSelector: `.${YFM_MARKDOWN_CLASSNAME} .${YFM_MARKDOWN_CLASSNAME}`
|
|
3557
|
+
});
|
|
3558
|
+
}, WIDGET_RESIZE_DEBOUNCE_TIMEOUT$1),
|
|
3559
|
+
[props.id, rootNodeRef, layoutRef, props.adjustWidgetLayout, props.gridLayout]
|
|
3560
|
+
);
|
|
3561
|
+
const handleTextRender = React__default.useCallback(() => {
|
|
3562
|
+
adjustLayout(!props.data.autoHeight);
|
|
3563
|
+
handleUpdate?.();
|
|
3564
|
+
}, [handleUpdate, adjustLayout, props.data.autoHeight]);
|
|
3565
|
+
const textHandler = React__default.useCallback(
|
|
3566
|
+
async (arg) => {
|
|
3567
|
+
setIsPending(true);
|
|
3568
|
+
const text = await pluginText._apiHandler(arg);
|
|
3569
|
+
const nextMetaScripts = get(text, "meta.script");
|
|
3570
|
+
setMetaScripts(nextMetaScripts);
|
|
3571
|
+
setIsPending(false);
|
|
3572
|
+
return text;
|
|
3573
|
+
},
|
|
3574
|
+
[setIsPending]
|
|
3575
|
+
);
|
|
3576
|
+
React__default.useEffect(() => {
|
|
3577
|
+
handleTextRender();
|
|
3578
|
+
}, [props.data.autoHeight]);
|
|
3579
|
+
useWatchDomResizeObserver({
|
|
3580
|
+
domNodeGetter: () => rootNodeRef.current?.querySelector(
|
|
3581
|
+
`.${YFM_MARKDOWN_CLASSNAME}.${b$2()} .${YFM_MARKDOWN_CLASSNAME}`
|
|
3582
|
+
) || null,
|
|
3583
|
+
onResize: () => {
|
|
3584
|
+
adjustLayout(false);
|
|
3585
|
+
},
|
|
3586
|
+
enable: props.data.autoHeight
|
|
3587
|
+
});
|
|
3588
|
+
const content = /* @__PURE__ */ jsx(PluginText, { ...props, apiHandler: textHandler, ref: forwardedRef });
|
|
3589
|
+
const data = props.data;
|
|
3590
|
+
const { style, hasBgColor } = usePreparedWrapSettings({
|
|
3591
|
+
ownWidgetSettings: {
|
|
3592
|
+
background: data.background,
|
|
3593
|
+
backgroundSettings: data.backgroundSettings,
|
|
3594
|
+
borderRadius: data.borderRadius
|
|
3595
|
+
},
|
|
3596
|
+
globalWidgetSettings: textPlugin.globalWidgetSettings ?? {},
|
|
3597
|
+
defaultOldColor: CustomPaletteBgColors.NONE
|
|
3598
|
+
});
|
|
3599
|
+
const currentLayout = props.layout.find(({ i }) => i === props.id) || {
|
|
3600
|
+
x: null,
|
|
3601
|
+
y: null,
|
|
3602
|
+
h: null,
|
|
3603
|
+
w: null
|
|
3604
|
+
};
|
|
3605
|
+
React__default.useEffect(() => {
|
|
3606
|
+
if (isPendingChanged && !isPending) {
|
|
3607
|
+
handleTextRender();
|
|
3608
|
+
}
|
|
3609
|
+
}, [isPendingChanged, isPending, handleTextRender]);
|
|
3610
|
+
React__default.useEffect(() => {
|
|
3611
|
+
handleUpdate?.();
|
|
3612
|
+
}, [
|
|
3613
|
+
// Widget dimensions
|
|
3614
|
+
currentLayout.x,
|
|
3615
|
+
currentLayout.y,
|
|
3616
|
+
currentLayout.h,
|
|
3617
|
+
currentLayout.w,
|
|
3618
|
+
data.background?.color
|
|
3619
|
+
]);
|
|
3620
|
+
React__default.useEffect(() => {
|
|
3621
|
+
YfmWrapperKeyRef.current += 1;
|
|
3622
|
+
}, [YfmWrapperKeyRef, data.text]);
|
|
3623
|
+
return /* @__PURE__ */ jsx(RendererWrapper, { id: props.id, type: "text", nodeRef: rootNodeRef, style, children: /* @__PURE__ */ jsx(
|
|
3624
|
+
YfmWrapper,
|
|
3625
|
+
{
|
|
3626
|
+
content: /* @__PURE__ */ jsx("div", { className: b$2("content-wrap", null), children: content }),
|
|
3627
|
+
className: b$2({ "with-color": Boolean(hasBgColor) }),
|
|
3628
|
+
metaScripts,
|
|
3629
|
+
onRenderCallback: handleTextRender
|
|
3630
|
+
},
|
|
3631
|
+
`yfm_${YfmWrapperKeyRef.current}`
|
|
3632
|
+
) });
|
|
3633
|
+
}
|
|
3634
|
+
};
|
|
3635
|
+
const b$1 = block("dashkit-plugin-title-container");
|
|
3636
|
+
const AnchorLink = ({ to, show }) => {
|
|
3637
|
+
const location = useLocation();
|
|
3638
|
+
const hash = `#${encodeURIComponent(to)}`;
|
|
3639
|
+
const link = { ...location, hash };
|
|
3640
|
+
if (DL.IS_MOBILE || !show) {
|
|
3641
|
+
return null;
|
|
3642
|
+
}
|
|
3643
|
+
return /* @__PURE__ */ jsx(Link, { className: b$1("anchor"), to: link, children: "#" });
|
|
3644
|
+
};
|
|
3645
|
+
const HINT_SIZE = 16;
|
|
3646
|
+
const TITLE_WITH_BG_COLOR_PADDING_TOP = 5;
|
|
3647
|
+
const getFontStyleBySize = (size) => {
|
|
3648
|
+
if (typeof size === "object" && "fontSize" in size) {
|
|
3649
|
+
return {
|
|
3650
|
+
fontSize: size.fontSize + "px",
|
|
3651
|
+
lineHeight: RECCOMMENDED_LINE_HEIGHT_MULTIPLIER
|
|
3652
|
+
};
|
|
3653
|
+
}
|
|
3654
|
+
if (typeof size === "string") {
|
|
3655
|
+
return TITLE_DEFAULT_SIZES[size];
|
|
3656
|
+
}
|
|
3657
|
+
return {};
|
|
3658
|
+
};
|
|
3659
|
+
const getTopOffsetBySize = (size, showBgColor) => {
|
|
3660
|
+
const defaultPadding = showBgColor ? TITLE_WITH_BG_COLOR_PADDING_TOP : 0;
|
|
3661
|
+
if (typeof size === "string") {
|
|
3662
|
+
const fontStyles = TITLE_DEFAULT_SIZES[size];
|
|
3663
|
+
const lineHeight2 = fontStyles.lineHeight ? parseInt(fontStyles.lineHeight, 10) : parseInt(fontStyles.fontSize, 10) * RECCOMMENDED_LINE_HEIGHT_MULTIPLIER;
|
|
3664
|
+
return (lineHeight2 - HINT_SIZE) / 2 + defaultPadding;
|
|
3665
|
+
}
|
|
3666
|
+
const lineHeight = size.fontSize * RECCOMMENDED_LINE_HEIGHT_MULTIPLIER;
|
|
3667
|
+
return (lineHeight - HINT_SIZE) / 2 + defaultPadding;
|
|
3668
|
+
};
|
|
3669
|
+
const isTitleOverflowed = (element, extraElements) => {
|
|
3670
|
+
const originalWhiteSpace = element.style.whiteSpace;
|
|
3671
|
+
element.style.whiteSpace = "nowrap";
|
|
3672
|
+
const originalPosition = extraElements.style.position;
|
|
3673
|
+
extraElements.style.position = "static";
|
|
3674
|
+
const isOverflowed = element.scrollWidth > element.offsetWidth;
|
|
3675
|
+
element.style.whiteSpace = originalWhiteSpace;
|
|
3676
|
+
extraElements.style.position = originalPosition;
|
|
3677
|
+
return isOverflowed;
|
|
3678
|
+
};
|
|
3679
|
+
const getHelpIconSizeBySize = (size) => {
|
|
3680
|
+
const ICON_SIZE_MAP = [
|
|
3681
|
+
["xl", 20],
|
|
3682
|
+
["l", 18],
|
|
3683
|
+
["m", 16],
|
|
3684
|
+
["s", 14]
|
|
3685
|
+
];
|
|
3686
|
+
if (typeof size === "string") {
|
|
3687
|
+
return size === DashTabItemTitleSizes.XS ? "s" : size;
|
|
3688
|
+
}
|
|
3689
|
+
const fontSize = size.fontSize;
|
|
3690
|
+
for (const [key, value] of ICON_SIZE_MAP) {
|
|
3691
|
+
if (fontSize >= value) {
|
|
3692
|
+
return key;
|
|
3693
|
+
}
|
|
3694
|
+
}
|
|
3695
|
+
return "m";
|
|
3696
|
+
};
|
|
3697
|
+
const b = block("dashkit-plugin-title-container");
|
|
3698
|
+
const WIDGET_RESIZE_DEBOUNCE_TIMEOUT = 100;
|
|
3699
|
+
const MIN_AVAILABLE_TOP_OFFSET = -5;
|
|
3700
|
+
const titlePlugin = {
|
|
3701
|
+
...pluginTitle,
|
|
3702
|
+
setSettings(settings) {
|
|
3703
|
+
const { hideAnchor, hideHint, globalWidgetSettings } = settings;
|
|
3704
|
+
titlePlugin.hideAnchor = hideAnchor;
|
|
3705
|
+
titlePlugin.hideHint = hideHint;
|
|
3706
|
+
titlePlugin.globalWidgetSettings = globalWidgetSettings;
|
|
3707
|
+
return titlePlugin;
|
|
3708
|
+
},
|
|
3709
|
+
renderer: function PluginTitleRenderer(props, forwardedRef) {
|
|
3710
|
+
const rootNodeRef = React__default.useRef(null);
|
|
3711
|
+
const contentRef = React__default.useRef(null);
|
|
3712
|
+
const extraRef = React__default.useRef(null);
|
|
3713
|
+
useWidgetContext({
|
|
3714
|
+
id: props.id,
|
|
3715
|
+
elementRef: rootNodeRef
|
|
3716
|
+
});
|
|
3717
|
+
const [isInlineExtraElements, setIsInlineExtraElements] = React__default.useState(
|
|
3718
|
+
false
|
|
3719
|
+
);
|
|
3720
|
+
const [extraElementsTop, setExtraElementsTop] = React__default.useState(
|
|
3721
|
+
void 0
|
|
3722
|
+
);
|
|
3723
|
+
const data = props.data;
|
|
3724
|
+
const handleUpdate = useBeforeLoad(props.onBeforeLoad);
|
|
3725
|
+
const layoutRef = React__default.useRef(props.layout);
|
|
3726
|
+
layoutRef.current = props.layout;
|
|
3727
|
+
const adjustLayout = React__default.useCallback(
|
|
3728
|
+
debounce((needSetDefault) => {
|
|
3729
|
+
adjustWidgetLayout({
|
|
3730
|
+
widgetId: props.id,
|
|
3731
|
+
needSetDefault,
|
|
3732
|
+
rootNode: rootNodeRef,
|
|
3733
|
+
gridLayout: props.gridLayout,
|
|
3734
|
+
layout: layoutRef.current,
|
|
3735
|
+
// TODO: optimize call times in future
|
|
3736
|
+
cb: (...args) => {
|
|
3737
|
+
return props.adjustWidgetLayout(...args);
|
|
3738
|
+
},
|
|
3739
|
+
mainNodeSelector: `[${PLUGIN_ROOT_ATTR_NAME}="title"]`,
|
|
3740
|
+
scrollableNodeSelector: `.${b()}`,
|
|
3741
|
+
needHeightReset: true
|
|
3742
|
+
});
|
|
3743
|
+
}, WIDGET_RESIZE_DEBOUNCE_TIMEOUT),
|
|
3744
|
+
[props.id, props.adjustWidgetLayout, props.gridLayout]
|
|
3745
|
+
);
|
|
3746
|
+
React__default.useEffect(() => {
|
|
3747
|
+
adjustLayout(!data.autoHeight);
|
|
3748
|
+
}, [adjustLayout, data.autoHeight, props.data?.text, props.data?.size]);
|
|
3749
|
+
const content = /* @__PURE__ */ jsx(PluginTitle, { ...props, ref: forwardedRef });
|
|
3750
|
+
const showHint = Boolean(!titlePlugin.hideHint && data.hint?.enabled && data.hint.text);
|
|
3751
|
+
const showAnchor = !titlePlugin.hideAnchor && !DL.IS_MOBILE;
|
|
3752
|
+
const withInlineExtraElements = (showAnchor || showHint) && isInlineExtraElements;
|
|
3753
|
+
const withAbsoluteAnchor = showAnchor && !isInlineExtraElements;
|
|
3754
|
+
const withAbsoluteHint = showHint && !isInlineExtraElements;
|
|
3755
|
+
const { style, hasBgColor } = usePreparedWrapSettings({
|
|
3756
|
+
ownWidgetSettings: {
|
|
3757
|
+
background: data.background,
|
|
3758
|
+
backgroundSettings: data.backgroundSettings,
|
|
3759
|
+
borderRadius: data.borderRadius
|
|
3760
|
+
},
|
|
3761
|
+
globalWidgetSettings: titlePlugin.globalWidgetSettings ?? {},
|
|
3762
|
+
defaultOldColor: CustomPaletteBgColors.NONE
|
|
3763
|
+
});
|
|
3764
|
+
const textColorStyles = useTextColorStyles(data.textColor, data.textSettings?.color);
|
|
3765
|
+
const wrapperStyles = { ...style, ...textColorStyles };
|
|
3766
|
+
const currentLayout = props.layout.find(({ i }) => i === props.id) || {
|
|
3767
|
+
x: null,
|
|
3768
|
+
y: null,
|
|
3769
|
+
h: null,
|
|
3770
|
+
w: null
|
|
3771
|
+
};
|
|
3772
|
+
React__default.useEffect(() => {
|
|
3773
|
+
handleUpdate?.();
|
|
3774
|
+
}, [
|
|
3775
|
+
currentLayout.x,
|
|
3776
|
+
currentLayout.y,
|
|
3777
|
+
currentLayout.h,
|
|
3778
|
+
currentLayout.w,
|
|
3779
|
+
data.background,
|
|
3780
|
+
data.size,
|
|
3781
|
+
data.text
|
|
3782
|
+
]);
|
|
3783
|
+
const calculateExtraElements = React__default.useCallback(() => {
|
|
3784
|
+
if (contentRef.current && rootNodeRef.current) {
|
|
3785
|
+
const contentRect = contentRef.current.getBoundingClientRect();
|
|
3786
|
+
const rootRect = rootNodeRef.current.getBoundingClientRect();
|
|
3787
|
+
const offsetTop = contentRect.top - rootRect.top;
|
|
3788
|
+
const titleElement = contentRef.current.children[0];
|
|
3789
|
+
const isWidthFits = titleElement instanceof HTMLDivElement && extraRef.current ? !isTitleOverflowed(contentRef.current, extraRef.current) : contentRect.width <= rootRect.width;
|
|
3790
|
+
const calculatedAnchorTop = offsetTop < MIN_AVAILABLE_TOP_OFFSET || isWidthFits ? 0 : offsetTop;
|
|
3791
|
+
setExtraElementsTop(calculatedAnchorTop);
|
|
3792
|
+
setIsInlineExtraElements(isWidthFits);
|
|
3793
|
+
}
|
|
3794
|
+
}, []);
|
|
3795
|
+
React__default.useLayoutEffect(() => {
|
|
3796
|
+
if (showAnchor || showHint) {
|
|
3797
|
+
calculateExtraElements();
|
|
3798
|
+
} else {
|
|
3799
|
+
setIsInlineExtraElements(false);
|
|
3800
|
+
}
|
|
3801
|
+
}, [
|
|
3802
|
+
currentLayout.x,
|
|
3803
|
+
currentLayout.h,
|
|
3804
|
+
currentLayout.w,
|
|
3805
|
+
data.text,
|
|
3806
|
+
data.size,
|
|
3807
|
+
calculateExtraElements,
|
|
3808
|
+
showAnchor,
|
|
3809
|
+
showHint
|
|
3810
|
+
]);
|
|
3811
|
+
React__default.useEffect(() => {
|
|
3812
|
+
if (!showAnchor && !showHint) {
|
|
3813
|
+
return void 0;
|
|
3814
|
+
}
|
|
3815
|
+
const debouncedCalculateAnchor = debounce(
|
|
3816
|
+
calculateExtraElements,
|
|
3817
|
+
WIDGET_RESIZE_DEBOUNCE_TIMEOUT
|
|
3818
|
+
);
|
|
3819
|
+
window.addEventListener("resize", debouncedCalculateAnchor);
|
|
3820
|
+
return () => {
|
|
3821
|
+
window.removeEventListener("resize", debouncedCalculateAnchor);
|
|
3822
|
+
};
|
|
3823
|
+
}, [showAnchor, showHint]);
|
|
3824
|
+
const getStyles = () => {
|
|
3825
|
+
const fontStyles = getFontStyleBySize(data.size);
|
|
3826
|
+
if (isInlineExtraElements) {
|
|
3827
|
+
return fontStyles;
|
|
3828
|
+
}
|
|
3829
|
+
return {
|
|
3830
|
+
...fontStyles,
|
|
3831
|
+
top: showAnchor ? extraElementsTop : getTopOffsetBySize(data.size, hasBgColor)
|
|
3832
|
+
};
|
|
3833
|
+
};
|
|
3834
|
+
return /* @__PURE__ */ jsx(RendererWrapper, { id: props.id, type: "title", nodeRef: rootNodeRef, style: wrapperStyles, children: /* @__PURE__ */ jsxs(
|
|
3835
|
+
"div",
|
|
3836
|
+
{
|
|
3837
|
+
className: b({
|
|
3838
|
+
"with-auto-height": Boolean(data.autoHeight),
|
|
3839
|
+
"with-color": Boolean(hasBgColor),
|
|
3840
|
+
"with-inline-extra-elements": Boolean(withInlineExtraElements),
|
|
3841
|
+
"with-absolute-anchor": withAbsoluteAnchor && !withAbsoluteHint,
|
|
3842
|
+
"with-absolute-hint": withAbsoluteHint && !withAbsoluteAnchor,
|
|
3843
|
+
"with-absolute-hint-and-anchor": withAbsoluteHint && withAbsoluteAnchor,
|
|
3844
|
+
absolute: !isInlineExtraElements,
|
|
3845
|
+
relative: !showAnchor
|
|
3846
|
+
}),
|
|
3847
|
+
ref: contentRef,
|
|
3848
|
+
children: [
|
|
3849
|
+
content,
|
|
3850
|
+
/* @__PURE__ */ jsxs(
|
|
3851
|
+
"div",
|
|
3852
|
+
{
|
|
3853
|
+
className: b("extra-elements-container", {
|
|
3854
|
+
absolute: !isInlineExtraElements
|
|
3855
|
+
}),
|
|
3856
|
+
style: getStyles(),
|
|
3857
|
+
ref: extraRef,
|
|
3858
|
+
...{ [EXPORT_PRINT_HIDDEN_ATTR]: true },
|
|
3859
|
+
children: [
|
|
3860
|
+
showHint && /* @__PURE__ */ jsx(
|
|
3861
|
+
MarkdownHelpPopover,
|
|
3862
|
+
{
|
|
3863
|
+
iconSize: getHelpIconSizeBySize(data.size),
|
|
3864
|
+
markdown: data.hint?.text ?? "",
|
|
3865
|
+
className: b("hint"),
|
|
3866
|
+
popoverProps: {
|
|
3867
|
+
placement: "bottom"
|
|
3868
|
+
}
|
|
3869
|
+
}
|
|
3870
|
+
),
|
|
3871
|
+
/* @__PURE__ */ jsx(AnchorLink, { to: data.text, show: showAnchor })
|
|
3872
|
+
]
|
|
3873
|
+
}
|
|
3874
|
+
)
|
|
3875
|
+
]
|
|
3876
|
+
}
|
|
3877
|
+
) });
|
|
3878
|
+
}
|
|
3879
|
+
};
|
|
3880
|
+
const widgetPlugin = {
|
|
3881
|
+
type: "widget",
|
|
3882
|
+
defaultLayout: { w: 12, h: 12 },
|
|
3883
|
+
setSettings: (settings) => {
|
|
3884
|
+
widgetPlugin.scope = settings.scope;
|
|
3885
|
+
widgetPlugin.globalWidgetSettings = settings.globalWidgetSettings;
|
|
3886
|
+
return widgetPlugin;
|
|
3887
|
+
},
|
|
3888
|
+
renderer: function Wrapper2(props, forwardedRef) {
|
|
3889
|
+
const rootNodeRef = React__default.useRef(null);
|
|
3890
|
+
const { onWidgetLoadData } = useWidgetContext({
|
|
3891
|
+
id: props.id,
|
|
3892
|
+
elementRef: rootNodeRef
|
|
3893
|
+
});
|
|
3894
|
+
const workbookId = props.context.workbookId;
|
|
3895
|
+
const enableAssistant = props.context.enableAssistant;
|
|
3896
|
+
const propsBg = props.data.tabs?.[0]?.background;
|
|
3897
|
+
let oldWidgetBg = isOldBackgroundSettings(propsBg) ? propsBg : void 0;
|
|
3898
|
+
if (widgetPlugin.scope === "dash" && !props.data.backgroundSettings) {
|
|
3899
|
+
oldWidgetBg = { color: CustomPaletteBgColors.LIKE_CHART };
|
|
3900
|
+
}
|
|
3901
|
+
const { style } = usePreparedWrapSettings({
|
|
3902
|
+
ownWidgetSettings: {
|
|
3903
|
+
background: oldWidgetBg,
|
|
3904
|
+
backgroundSettings: props.backgroundSettings,
|
|
3905
|
+
borderRadius: props.borderRadius
|
|
3906
|
+
},
|
|
3907
|
+
globalWidgetSettings: widgetPlugin.globalWidgetSettings ?? {},
|
|
3908
|
+
defaultOldColor: widgetPlugin.scope === "dash" ? CustomPaletteBgColors.LIKE_CHART : CustomPaletteBgColors.NONE
|
|
3909
|
+
});
|
|
3910
|
+
return /* @__PURE__ */ jsx(RendererWrapper, { type: "widget", nodeRef: rootNodeRef, id: props.id, style, children: /* @__PURE__ */ jsx(
|
|
3911
|
+
ChartWrapper,
|
|
3912
|
+
{
|
|
3913
|
+
...props,
|
|
3914
|
+
usageType: "widget",
|
|
3915
|
+
forwardedRef,
|
|
3916
|
+
getMarkdown: MarkdownProvider.getMarkdown,
|
|
3917
|
+
workbookId,
|
|
3918
|
+
enableAssistant,
|
|
3919
|
+
onWidgetLoadData,
|
|
3920
|
+
backgroundColor: style?.backgroundColor
|
|
3921
|
+
}
|
|
3922
|
+
) });
|
|
3923
|
+
}
|
|
3924
|
+
};
|
|
3925
|
+
let isConfigured = false;
|
|
3926
|
+
const getDistinctsAction = () => {
|
|
3927
|
+
const fetchDistinctsByApi = registry.common.functions.get("fetchDistinctsByApi");
|
|
3928
|
+
return fetchDistinctsByApi;
|
|
3929
|
+
};
|
|
3930
|
+
let currentDefaultsGetter = null;
|
|
3931
|
+
const wrapPlugins = (plugins, pluginDefaultsGetter) => {
|
|
3932
|
+
return plugins.map((plugin2) => {
|
|
3933
|
+
return {
|
|
3934
|
+
...plugin2,
|
|
3935
|
+
defaultLayout: pluginDefaultsGetter ? pluginDefaultsGetter(plugin2) : plugin2.defaultLayout
|
|
3936
|
+
};
|
|
3937
|
+
});
|
|
3938
|
+
};
|
|
3939
|
+
const getConfiguredDashKit = (pluginDefaultsGetter = null, options, shouldReconfigure) => {
|
|
3940
|
+
if (currentDefaultsGetter !== pluginDefaultsGetter || !isConfigured || shouldReconfigure) {
|
|
3941
|
+
const commonSettings = {
|
|
3942
|
+
scope: options?.scope,
|
|
3943
|
+
globalWidgetSettings: {
|
|
3944
|
+
background: options?.globalWidgetSettings?.background,
|
|
3945
|
+
backgroundSettings: options?.globalWidgetSettings?.backgroundSettings,
|
|
3946
|
+
borderRadius: options?.globalWidgetSettings?.borderRadius ?? OLD_DEFAULT_WIDGET_BORDER_RADIUS
|
|
3947
|
+
}
|
|
3948
|
+
};
|
|
3949
|
+
const titleSettings = {
|
|
3950
|
+
...commonSettings,
|
|
3951
|
+
hideAnchor: options?.disableHashNavigation,
|
|
3952
|
+
hideHint: options?.disableTitleHints
|
|
3953
|
+
};
|
|
3954
|
+
const textSettings = {
|
|
3955
|
+
...commonSettings,
|
|
3956
|
+
apiHandler: MarkdownProvider.getMarkdown
|
|
3957
|
+
};
|
|
3958
|
+
const controlSettings = {
|
|
3959
|
+
...commonSettings,
|
|
3960
|
+
getDistincts: getDistinctsAction()
|
|
3961
|
+
};
|
|
3962
|
+
const plugins = wrapPlugins(
|
|
3963
|
+
[
|
|
3964
|
+
titlePlugin.setSettings(titleSettings),
|
|
3965
|
+
textPlugin.setSettings(textSettings),
|
|
3966
|
+
plugin$1.setSettings(controlSettings),
|
|
3967
|
+
plugin.setSettings(controlSettings),
|
|
3968
|
+
widgetPlugin.setSettings(commonSettings),
|
|
3969
|
+
pluginImage.setSettings(commonSettings)
|
|
3970
|
+
],
|
|
3971
|
+
pluginDefaultsGetter
|
|
3972
|
+
);
|
|
3973
|
+
if (isConfigured) {
|
|
3974
|
+
DashKit.reloadPlugins(...plugins);
|
|
3975
|
+
} else {
|
|
3976
|
+
DashKit.registerPlugins(...plugins);
|
|
3977
|
+
}
|
|
3978
|
+
currentDefaultsGetter = pluginDefaultsGetter;
|
|
3979
|
+
}
|
|
3980
|
+
if (isConfigured) {
|
|
3981
|
+
return DashkitWrapper;
|
|
3982
|
+
}
|
|
3983
|
+
isConfigured = true;
|
|
3984
|
+
DashKit.setSettings({
|
|
3985
|
+
gridLayout: { margin: DEFAULT_DASH_MARGINS },
|
|
3986
|
+
theme: "datalens",
|
|
3987
|
+
isMobile: DL.IS_MOBILE,
|
|
3988
|
+
menu: getDashKitMenu()
|
|
3989
|
+
});
|
|
3990
|
+
return DashkitWrapper;
|
|
3991
|
+
};
|
|
3992
|
+
export {
|
|
3993
|
+
ControlButton as C,
|
|
3994
|
+
DEFAULT_CONTROL_LAYOUT as D,
|
|
3995
|
+
ExtendedDashKitContext as E,
|
|
3996
|
+
FIXED_GROUP_HEADER_ID as F,
|
|
3997
|
+
MAX_DASH_BORDER_RADIUS as M,
|
|
3998
|
+
OLD_DEFAULT_WIDGET_BORDER_RADIUS as O,
|
|
3999
|
+
WidgetContextProvider as W,
|
|
4000
|
+
FIXED_GROUP_CONTAINER_ID as a,
|
|
4001
|
+
DASH_BORDER_RADIUS_STEP as b,
|
|
4002
|
+
MIN_DASH_BORDER_RADIUS as c,
|
|
4003
|
+
isExternalControl as d,
|
|
4004
|
+
adjustWidgetLayout as e,
|
|
4005
|
+
DebugInfoTool as f,
|
|
4006
|
+
DASH_MARGIN_STEP as g,
|
|
4007
|
+
MAX_DASH_MARGIN as h,
|
|
4008
|
+
isWidgetTypeDoNotNeedOverlay as i,
|
|
4009
|
+
MIN_DASH_MARGIN as j,
|
|
4010
|
+
DEFAULT_DASH_MARGINS as k,
|
|
4011
|
+
getUrlGlobalParams as l,
|
|
4012
|
+
getDashEntryUrl as m,
|
|
4013
|
+
getNewDashUrl as n,
|
|
4014
|
+
ControlCheckbox as o,
|
|
4015
|
+
ControlRangeDatepicker as p,
|
|
4016
|
+
ControlDatepicker as q,
|
|
4017
|
+
ControlTextArea as r,
|
|
4018
|
+
ControlInput as s,
|
|
4019
|
+
ControlSelect as t,
|
|
4020
|
+
useBeforeLoad as u,
|
|
4021
|
+
isValidRequiredValue as v,
|
|
4022
|
+
MIN_AUTO_HEIGHT_PX as w,
|
|
4023
|
+
MIN_AUTO_HEIGHT_ROWS as x,
|
|
4024
|
+
getDashKitMenu as y,
|
|
4025
|
+
getConfiguredDashKit as z
|
|
4026
|
+
};
|