@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,4451 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React__default, { Component } from "react";
|
|
3
|
+
import { TextInput, Icon, TabProvider, TabList, Tab, Button, MobileContext, Sheet, Popup, eventBroker, Loader } from "@gravity-ui/uikit";
|
|
4
|
+
import block from "bem-cn-lite";
|
|
5
|
+
import { debounce } from "lodash";
|
|
6
|
+
import Slider from "rc-slider";
|
|
7
|
+
import _range from "lodash/range";
|
|
8
|
+
import { l as I18n } from "./AccessRights.js";
|
|
9
|
+
import { DateTime, Interval } from "luxon";
|
|
10
|
+
import PropTypes from "prop-types";
|
|
11
|
+
import { F as FieldWrapper } from "./FieldWrapper.js";
|
|
12
|
+
import throttle from "lodash/throttle";
|
|
13
|
+
import _repeat from "lodash/repeat";
|
|
14
|
+
import { ChevronRight, ArrowUpRightFromSquare, Check, ChevronDown } from "@gravity-ui/icons";
|
|
15
|
+
import debounce$1 from "lodash/debounce";
|
|
16
|
+
import _filter from "lodash/filter";
|
|
17
|
+
import _flatMap from "lodash/flatMap";
|
|
18
|
+
import isEqual from "lodash/isEqual";
|
|
19
|
+
import isUndefined from "lodash/isUndefined";
|
|
20
|
+
import _max from "lodash/max";
|
|
21
|
+
import uniq from "lodash/uniq";
|
|
22
|
+
import _uniqBy from "lodash/uniqBy";
|
|
23
|
+
import AutoSizer from "react-virtualized-auto-sizer";
|
|
24
|
+
import { VariableSizeList } from "react-window";
|
|
25
|
+
import md5 from "blueimp-md5";
|
|
26
|
+
const LEFT_INFO_POINT_STYLE = {
|
|
27
|
+
position: "static",
|
|
28
|
+
marginLeft: 0,
|
|
29
|
+
display: "flex",
|
|
30
|
+
verticalAlign: "none"
|
|
31
|
+
};
|
|
32
|
+
const RIGHT_INFO_POINT_STYLE = {
|
|
33
|
+
position: "static",
|
|
34
|
+
marginLeft: 0,
|
|
35
|
+
display: "flex",
|
|
36
|
+
verticalAlign: "none",
|
|
37
|
+
flexDirection: "row-reverse"
|
|
38
|
+
};
|
|
39
|
+
const prepareAvailableValues = (availableValues) => {
|
|
40
|
+
if (!availableValues || !availableValues.length) {
|
|
41
|
+
return void 0;
|
|
42
|
+
}
|
|
43
|
+
return [...availableValues].sort((v1, v2) => v1 - v2);
|
|
44
|
+
};
|
|
45
|
+
const prepareValue = ({
|
|
46
|
+
value = 0,
|
|
47
|
+
min = 0,
|
|
48
|
+
max = 100
|
|
49
|
+
}) => {
|
|
50
|
+
if (value > max) {
|
|
51
|
+
return max;
|
|
52
|
+
}
|
|
53
|
+
if (value < min) {
|
|
54
|
+
return min;
|
|
55
|
+
}
|
|
56
|
+
return value;
|
|
57
|
+
};
|
|
58
|
+
const getInfoPoints = ({
|
|
59
|
+
infoPointsCount,
|
|
60
|
+
min,
|
|
61
|
+
max,
|
|
62
|
+
values
|
|
63
|
+
}) => {
|
|
64
|
+
let mapInfoPoints;
|
|
65
|
+
if (values && infoPointsCount >= values.length) {
|
|
66
|
+
return values;
|
|
67
|
+
}
|
|
68
|
+
if (infoPointsCount < 1) {
|
|
69
|
+
return [];
|
|
70
|
+
}
|
|
71
|
+
if (infoPointsCount === 1) {
|
|
72
|
+
return [min];
|
|
73
|
+
}
|
|
74
|
+
if (!values || !values.length) {
|
|
75
|
+
const step = Math.abs(max - min) / (infoPointsCount - 1);
|
|
76
|
+
mapInfoPoints = (el) => Math.round((min + step * el) * 100) / 100;
|
|
77
|
+
} else {
|
|
78
|
+
const step = values.length / infoPointsCount;
|
|
79
|
+
mapInfoPoints = (el, i, arr) => {
|
|
80
|
+
let index = Math.ceil(el * step);
|
|
81
|
+
if (i === arr.length - 1) {
|
|
82
|
+
index = values.length - 1;
|
|
83
|
+
}
|
|
84
|
+
return values[index];
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
return _range(0, infoPointsCount).map(mapInfoPoints);
|
|
88
|
+
};
|
|
89
|
+
const getParsedValue = (textValue, parse) => {
|
|
90
|
+
return parse ? parse(textValue) : parseFloat(textValue);
|
|
91
|
+
};
|
|
92
|
+
const getTextValue = (value, format) => {
|
|
93
|
+
return format ? format(value) : value.toString();
|
|
94
|
+
};
|
|
95
|
+
const getClosestValue = (value, values) => {
|
|
96
|
+
if (!values || !values.length) {
|
|
97
|
+
return value;
|
|
98
|
+
}
|
|
99
|
+
let low = 0;
|
|
100
|
+
let hi = values.length - 1;
|
|
101
|
+
while (hi - low > 1) {
|
|
102
|
+
const mid = Math.floor((low + hi) / 2);
|
|
103
|
+
if (values[mid] < value) {
|
|
104
|
+
low = mid;
|
|
105
|
+
} else {
|
|
106
|
+
hi = mid;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
const left = values[low];
|
|
110
|
+
const right = values[hi];
|
|
111
|
+
return value - left <= right - value ? left : right;
|
|
112
|
+
};
|
|
113
|
+
const b$d = block("dl-range-input-picker");
|
|
114
|
+
const _RangeInputPicker = class _RangeInputPicker extends Component {
|
|
115
|
+
constructor(props) {
|
|
116
|
+
super(props);
|
|
117
|
+
this.wrapperRef = React__default.createRef();
|
|
118
|
+
this.sliderRef = React__default.createRef();
|
|
119
|
+
this.textInputInnerRef = React__default.createRef();
|
|
120
|
+
this.callOnUpdate = () => {
|
|
121
|
+
const { onUpdate } = this.props;
|
|
122
|
+
const { currentValue } = this.state;
|
|
123
|
+
if (onUpdate) {
|
|
124
|
+
onUpdate(currentValue);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
this.prepareChange = (textValue) => {
|
|
128
|
+
const { parse } = this.props;
|
|
129
|
+
const { values, min, max, currentValue } = this.state;
|
|
130
|
+
let value = getParsedValue(textValue, parse);
|
|
131
|
+
if (isNaN(value)) {
|
|
132
|
+
value = currentValue;
|
|
133
|
+
}
|
|
134
|
+
let actualValue = prepareValue({ value, min, max });
|
|
135
|
+
if (values && values.length) {
|
|
136
|
+
actualValue = getClosestValue(actualValue, values);
|
|
137
|
+
}
|
|
138
|
+
return actualValue;
|
|
139
|
+
};
|
|
140
|
+
this.handleOnAfterUpdate = () => {
|
|
141
|
+
const { onAfterUpdate } = this.props;
|
|
142
|
+
const { currentValue } = this.state;
|
|
143
|
+
if (onAfterUpdate) {
|
|
144
|
+
onAfterUpdate(currentValue);
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
this.handleInputBlur = (event) => {
|
|
148
|
+
event.preventDefault();
|
|
149
|
+
const { onBlur } = this.props;
|
|
150
|
+
const { textValue } = this.state;
|
|
151
|
+
const actualValue = this.prepareChange(textValue);
|
|
152
|
+
this.setState(
|
|
153
|
+
{
|
|
154
|
+
focused: false,
|
|
155
|
+
currentValue: actualValue,
|
|
156
|
+
textValue: _RangeInputPicker.getDisplayTextValue(this.props, actualValue)
|
|
157
|
+
},
|
|
158
|
+
() => {
|
|
159
|
+
if (onBlur) {
|
|
160
|
+
onBlur(actualValue);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
};
|
|
165
|
+
this.handleInputFocus = () => {
|
|
166
|
+
const { format, onFocus } = this.props;
|
|
167
|
+
const { currentValue } = this.state;
|
|
168
|
+
this.setState(
|
|
169
|
+
{
|
|
170
|
+
textValue: getTextValue(currentValue, format)
|
|
171
|
+
},
|
|
172
|
+
() => {
|
|
173
|
+
if (onFocus) {
|
|
174
|
+
onFocus(currentValue);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
);
|
|
178
|
+
};
|
|
179
|
+
this.handleInputUpdate = (newValue) => {
|
|
180
|
+
if (this.patternRegex && !this.patternRegex.test(newValue)) {
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
const actualValue = this.prepareChange(newValue);
|
|
184
|
+
this.setState(
|
|
185
|
+
{
|
|
186
|
+
currentValue: actualValue,
|
|
187
|
+
textValue: newValue
|
|
188
|
+
},
|
|
189
|
+
this.debouncedCallOnUpdate
|
|
190
|
+
);
|
|
191
|
+
};
|
|
192
|
+
this.handleKeyDown = (event) => {
|
|
193
|
+
if (event.key !== "Enter") {
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
const { format, onSubmit } = this.props;
|
|
197
|
+
const { textValue } = this.state;
|
|
198
|
+
const actualValue = this.prepareChange(textValue);
|
|
199
|
+
this.setState(
|
|
200
|
+
{
|
|
201
|
+
currentValue: actualValue,
|
|
202
|
+
textValue: getTextValue(actualValue, format),
|
|
203
|
+
focused: false
|
|
204
|
+
},
|
|
205
|
+
() => {
|
|
206
|
+
if (this.textInputInnerRef.current) {
|
|
207
|
+
this.textInputInnerRef.current.blur();
|
|
208
|
+
}
|
|
209
|
+
if (onSubmit) {
|
|
210
|
+
onSubmit(actualValue);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
);
|
|
214
|
+
};
|
|
215
|
+
this.handleSliderChange = (sliderValue) => {
|
|
216
|
+
const { min, max, values } = this.state;
|
|
217
|
+
const nextValue = Array.isArray(sliderValue) ? sliderValue[0] : sliderValue;
|
|
218
|
+
const value = getClosestValue(prepareValue({ min, max, value: nextValue }), values);
|
|
219
|
+
this.setState(
|
|
220
|
+
{
|
|
221
|
+
currentValue: value,
|
|
222
|
+
textValue: _RangeInputPicker.getDisplayTextValue(this.props, value)
|
|
223
|
+
},
|
|
224
|
+
this.debouncedCallOnUpdate
|
|
225
|
+
);
|
|
226
|
+
};
|
|
227
|
+
this.handleWrapperClick = (event) => {
|
|
228
|
+
const slider = this.sliderRef.current && this.sliderRef.current.sliderRef;
|
|
229
|
+
const isSliderContainsTarget = slider && slider.contains(event.target);
|
|
230
|
+
if (!isSliderContainsTarget) {
|
|
231
|
+
this.setState({ focused: true });
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
this.handleInfoPointClick = (value) => {
|
|
235
|
+
return (event) => {
|
|
236
|
+
const { format, parse } = this.props;
|
|
237
|
+
event.preventDefault();
|
|
238
|
+
const val = getParsedValue(getTextValue(value, format), parse);
|
|
239
|
+
this.setState(
|
|
240
|
+
{
|
|
241
|
+
currentValue: val,
|
|
242
|
+
textValue: _RangeInputPicker.getDisplayTextValue(this.props, val)
|
|
243
|
+
},
|
|
244
|
+
() => {
|
|
245
|
+
const { onUpdate, onAfterUpdate } = this.props;
|
|
246
|
+
if (onUpdate) {
|
|
247
|
+
onUpdate(val);
|
|
248
|
+
}
|
|
249
|
+
if (onAfterUpdate) {
|
|
250
|
+
onAfterUpdate(val);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
);
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
this.handleOutsideClick = (event) => {
|
|
257
|
+
const { onOutsideClick } = this.props;
|
|
258
|
+
const { currentValue, focused } = this.state;
|
|
259
|
+
const wrapper = this.wrapperRef.current;
|
|
260
|
+
if (!onOutsideClick || !wrapper) {
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
if (!wrapper.contains(event.target) && focused) {
|
|
264
|
+
this.setState(
|
|
265
|
+
{
|
|
266
|
+
focused: false
|
|
267
|
+
},
|
|
268
|
+
() => {
|
|
269
|
+
if (onOutsideClick) {
|
|
270
|
+
onOutsideClick(currentValue);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
this.renderItem = (value) => _RangeInputPicker.getDisplayTextValue(this.props, value);
|
|
277
|
+
this.renderRangeItem = (value) => /* @__PURE__ */ jsx(
|
|
278
|
+
"span",
|
|
279
|
+
{
|
|
280
|
+
className: b$d("range-info-item"),
|
|
281
|
+
onClick: this.handleInfoPointClick(value),
|
|
282
|
+
children: _RangeInputPicker.getDisplayTextValue(this.props, value)
|
|
283
|
+
},
|
|
284
|
+
value
|
|
285
|
+
);
|
|
286
|
+
this.renderRangeInfoItems = () => {
|
|
287
|
+
const { infoPointsCount = 2, minValue = 0, maxValue = 100 } = this.props;
|
|
288
|
+
const { values } = this.state;
|
|
289
|
+
if (infoPointsCount < 1) {
|
|
290
|
+
return [];
|
|
291
|
+
}
|
|
292
|
+
let infoItems = [];
|
|
293
|
+
if (infoPointsCount === 1) {
|
|
294
|
+
infoItems.push(minValue);
|
|
295
|
+
} else if (!values || !values.length) {
|
|
296
|
+
const step = Math.abs(maxValue - minValue) / (infoPointsCount - 1);
|
|
297
|
+
for (let i = 0; i < infoPointsCount; i++) {
|
|
298
|
+
const point = Math.round((minValue + step * i) * 100) / 100;
|
|
299
|
+
infoItems.push(point);
|
|
300
|
+
}
|
|
301
|
+
} else {
|
|
302
|
+
infoItems = values;
|
|
303
|
+
}
|
|
304
|
+
const pointsCount = infoItems.length;
|
|
305
|
+
const unit = 100 / (pointsCount - 1);
|
|
306
|
+
const pointWidth = unit * 0.9;
|
|
307
|
+
const pointsRange = maxValue - minValue;
|
|
308
|
+
return infoItems.map((point, i) => {
|
|
309
|
+
const style = {
|
|
310
|
+
width: pointWidth + "%",
|
|
311
|
+
marginLeft: -pointWidth / 2 + "%",
|
|
312
|
+
left: (point - minValue) / pointsRange * 100 + "%"
|
|
313
|
+
};
|
|
314
|
+
if (i === 0) {
|
|
315
|
+
Object.assign(style, LEFT_INFO_POINT_STYLE);
|
|
316
|
+
} else if (i === infoItems.length - 1) {
|
|
317
|
+
Object.assign(style, RIGHT_INFO_POINT_STYLE);
|
|
318
|
+
}
|
|
319
|
+
return /* @__PURE__ */ jsx("span", { className: b$d("range-info-item-container"), style, children: this.renderRangeItem(point) }, point);
|
|
320
|
+
});
|
|
321
|
+
};
|
|
322
|
+
this.renderInfoItems = () => {
|
|
323
|
+
const { infoPointsCount = 2 } = this.props;
|
|
324
|
+
const { values, min, max } = this.state;
|
|
325
|
+
const points = getInfoPoints({ infoPointsCount, min, max, values });
|
|
326
|
+
const infoItems = points.reduce(
|
|
327
|
+
(acc, point) => {
|
|
328
|
+
acc[point] = { label: this.renderItem(point), style: {} };
|
|
329
|
+
return acc;
|
|
330
|
+
},
|
|
331
|
+
{}
|
|
332
|
+
);
|
|
333
|
+
if (infoItems[min]) {
|
|
334
|
+
infoItems[min].style = LEFT_INFO_POINT_STYLE;
|
|
335
|
+
}
|
|
336
|
+
if (infoItems[max]) {
|
|
337
|
+
infoItems[max].style = RIGHT_INFO_POINT_STYLE;
|
|
338
|
+
}
|
|
339
|
+
return infoItems;
|
|
340
|
+
};
|
|
341
|
+
this.debouncedCallOnUpdate = debounce(this.callOnUpdate, props.debounceDelay);
|
|
342
|
+
this.debouncedHandleOnAfterUpdate = debounce(this.handleOnAfterUpdate, props.debounceDelay);
|
|
343
|
+
this.state = _RangeInputPicker.getPreparedState(props);
|
|
344
|
+
}
|
|
345
|
+
static getDisplayTextValue(props, value) {
|
|
346
|
+
const { displayFormat, format } = props;
|
|
347
|
+
const formatFunc = displayFormat || format || String;
|
|
348
|
+
return formatFunc(value);
|
|
349
|
+
}
|
|
350
|
+
static getPreparedState(props, currentState) {
|
|
351
|
+
const { availableValues, value, minValue = 0, maxValue = 100 } = props;
|
|
352
|
+
const { focused = false, textValue = "" } = currentState || {};
|
|
353
|
+
const values = prepareAvailableValues(availableValues);
|
|
354
|
+
const min = values ? values[0] : minValue;
|
|
355
|
+
const max = values ? values[values.length - 1] : maxValue;
|
|
356
|
+
const actualValue = prepareValue({ value, min, max });
|
|
357
|
+
return {
|
|
358
|
+
prevProps: props,
|
|
359
|
+
textValue: focused ? textValue : _RangeInputPicker.getDisplayTextValue(props, value),
|
|
360
|
+
currentValue: actualValue,
|
|
361
|
+
min,
|
|
362
|
+
max,
|
|
363
|
+
values,
|
|
364
|
+
focused
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
static getDerivedStateFromProps(nextProps, state) {
|
|
368
|
+
if (nextProps === state.prevProps) {
|
|
369
|
+
return null;
|
|
370
|
+
}
|
|
371
|
+
return _RangeInputPicker.getPreparedState(nextProps, state);
|
|
372
|
+
}
|
|
373
|
+
componentDidMount() {
|
|
374
|
+
const { onOutsideClick } = this.props;
|
|
375
|
+
if (onOutsideClick) {
|
|
376
|
+
document.addEventListener("touchstart", this.handleOutsideClick);
|
|
377
|
+
document.addEventListener("mousedown", this.handleOutsideClick);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
componentWillUnmount() {
|
|
381
|
+
this.debouncedCallOnUpdate.cancel();
|
|
382
|
+
this.debouncedHandleOnAfterUpdate.cancel();
|
|
383
|
+
document.removeEventListener("touchstart", this.handleOutsideClick);
|
|
384
|
+
document.removeEventListener("mousedown", this.handleOutsideClick);
|
|
385
|
+
}
|
|
386
|
+
render() {
|
|
387
|
+
const { placeholder, autoFocus, disabled, readOnly, size, pattern, className } = this.props;
|
|
388
|
+
const { currentValue, textValue, min, max, values } = this.state;
|
|
389
|
+
let rangeInfoItems;
|
|
390
|
+
let rcSliderInfoItems;
|
|
391
|
+
if (!values || !values.length) {
|
|
392
|
+
rangeInfoItems = this.renderRangeInfoItems();
|
|
393
|
+
} else {
|
|
394
|
+
rcSliderInfoItems = this.renderInfoItems();
|
|
395
|
+
}
|
|
396
|
+
return /* @__PURE__ */ jsxs(
|
|
397
|
+
"div",
|
|
398
|
+
{
|
|
399
|
+
ref: this.wrapperRef,
|
|
400
|
+
className: b$d({ size }, className),
|
|
401
|
+
tabIndex: 0,
|
|
402
|
+
onKeyDown: this.handleKeyDown,
|
|
403
|
+
onMouseDown: this.handleWrapperClick,
|
|
404
|
+
children: [
|
|
405
|
+
/* @__PURE__ */ jsx(
|
|
406
|
+
TextInput,
|
|
407
|
+
{
|
|
408
|
+
controlRef: this.textInputInnerRef,
|
|
409
|
+
placeholder,
|
|
410
|
+
size,
|
|
411
|
+
disabled,
|
|
412
|
+
onUpdate: this.handleInputUpdate,
|
|
413
|
+
onFocus: this.handleInputFocus,
|
|
414
|
+
onBlur: this.handleInputBlur,
|
|
415
|
+
value: textValue,
|
|
416
|
+
autoFocus,
|
|
417
|
+
controlProps: { readOnly, pattern }
|
|
418
|
+
}
|
|
419
|
+
),
|
|
420
|
+
/* @__PURE__ */ jsx(
|
|
421
|
+
Slider,
|
|
422
|
+
{
|
|
423
|
+
ref: this.sliderRef,
|
|
424
|
+
tabIndex: 0,
|
|
425
|
+
min,
|
|
426
|
+
max,
|
|
427
|
+
value: currentValue,
|
|
428
|
+
disabled,
|
|
429
|
+
onChange: this.handleSliderChange,
|
|
430
|
+
step: this.step,
|
|
431
|
+
marks: rcSliderInfoItems,
|
|
432
|
+
onAfterChange: this.debouncedHandleOnAfterUpdate
|
|
433
|
+
}
|
|
434
|
+
),
|
|
435
|
+
rangeInfoItems && /* @__PURE__ */ jsx("div", { className: b$d("range-info-items-list"), children: rangeInfoItems })
|
|
436
|
+
]
|
|
437
|
+
}
|
|
438
|
+
);
|
|
439
|
+
}
|
|
440
|
+
get patternRegex() {
|
|
441
|
+
const { pattern } = this.props;
|
|
442
|
+
if (!pattern) {
|
|
443
|
+
return null;
|
|
444
|
+
}
|
|
445
|
+
return new RegExp(`^(?:${pattern})$`);
|
|
446
|
+
}
|
|
447
|
+
get step() {
|
|
448
|
+
const { step } = this.props;
|
|
449
|
+
const { values } = this.state;
|
|
450
|
+
return !values || !values.length ? step : void 0;
|
|
451
|
+
}
|
|
452
|
+
};
|
|
453
|
+
_RangeInputPicker.defaultProps = {
|
|
454
|
+
size: "m",
|
|
455
|
+
placeholder: "",
|
|
456
|
+
value: 0,
|
|
457
|
+
minValue: 0,
|
|
458
|
+
maxValue: 100,
|
|
459
|
+
debounceDelay: 200,
|
|
460
|
+
disabled: false,
|
|
461
|
+
readOnly: false,
|
|
462
|
+
autoFocus: false,
|
|
463
|
+
infoPointsCount: 2,
|
|
464
|
+
step: 1
|
|
465
|
+
};
|
|
466
|
+
let RangeInputPicker = _RangeInputPicker;
|
|
467
|
+
const i18n$5 = I18n.keyset("components.common.Datepicker");
|
|
468
|
+
const MINUTES_IN_HOUR = 60;
|
|
469
|
+
const AVAILABLE_POPUP_PLACEMENT = ["bottom-start", "bottom-end", "top-start", "top-end"];
|
|
470
|
+
const WEEKDAYS = {
|
|
471
|
+
MONDAY: 1,
|
|
472
|
+
THURSDAY: 4,
|
|
473
|
+
SATURDAY: 6,
|
|
474
|
+
SUNDAY: 7
|
|
475
|
+
};
|
|
476
|
+
const MONTHS = {
|
|
477
|
+
JANUARY: 1,
|
|
478
|
+
DECEMBER: 12
|
|
479
|
+
};
|
|
480
|
+
const TABS = {
|
|
481
|
+
DAY: "day",
|
|
482
|
+
WEEK: "week",
|
|
483
|
+
MONTH: "month",
|
|
484
|
+
QUARTER: "quarter",
|
|
485
|
+
YEAR: "year"
|
|
486
|
+
};
|
|
487
|
+
const DISPLAY_FORMAT = {
|
|
488
|
+
DATE: "dd.MM.yyyy",
|
|
489
|
+
DATETIME: "dd.MM.yyyy HH:mm:ss"
|
|
490
|
+
};
|
|
491
|
+
const OUTPUT_FORMAT = {
|
|
492
|
+
DATE: "date",
|
|
493
|
+
DATETIME: "datetime"
|
|
494
|
+
};
|
|
495
|
+
function getTabs() {
|
|
496
|
+
return [TABS.DAY, TABS.WEEK, TABS.MONTH, TABS.QUARTER, TABS.YEAR].map((tab) => ({
|
|
497
|
+
id: tab,
|
|
498
|
+
title: i18n$5(`tab_${tab}`)
|
|
499
|
+
}));
|
|
500
|
+
}
|
|
501
|
+
const i18n$4 = I18n.keyset("components.common.Datepicker");
|
|
502
|
+
const b$c = block("dl-datepicker-month");
|
|
503
|
+
const CELLS$2 = {
|
|
504
|
+
DAY: "day",
|
|
505
|
+
TITLE: "title"
|
|
506
|
+
};
|
|
507
|
+
const isDatesEqual = (d1, d2) => {
|
|
508
|
+
if (!d1 || !d2) {
|
|
509
|
+
return false;
|
|
510
|
+
}
|
|
511
|
+
return d1.hasSame(d2, "day") && d1.hasSame(d2, "month") && d1.hasSame(d2, "year");
|
|
512
|
+
};
|
|
513
|
+
class Month extends React__default.Component {
|
|
514
|
+
static propTypes = {
|
|
515
|
+
month: PropTypes.number.isRequired,
|
|
516
|
+
year: PropTypes.number.isRequired,
|
|
517
|
+
from: PropTypes.object,
|
|
518
|
+
to: PropTypes.object,
|
|
519
|
+
min: PropTypes.object,
|
|
520
|
+
max: PropTypes.object,
|
|
521
|
+
selectedInterval: PropTypes.object,
|
|
522
|
+
hovered: PropTypes.object,
|
|
523
|
+
zone: PropTypes.string,
|
|
524
|
+
isDefaultFrom: PropTypes.bool,
|
|
525
|
+
isNeedScroll: PropTypes.bool,
|
|
526
|
+
onDateClick: PropTypes.func,
|
|
527
|
+
onRangeDateClick: PropTypes.func
|
|
528
|
+
};
|
|
529
|
+
scrollRef = React__default.createRef();
|
|
530
|
+
firstMonthDate = DateTime.fromObject({
|
|
531
|
+
year: this.props.year,
|
|
532
|
+
month: this.props.month,
|
|
533
|
+
day: 1,
|
|
534
|
+
zone: this.props.zone
|
|
535
|
+
});
|
|
536
|
+
todayDateTime = DateTime.fromObject({ zone: this.props.zone });
|
|
537
|
+
titleCells = this.firstMonthDate.weekday < WEEKDAYS.THURSDAY ? WEEKDAYS.SUNDAY : this.firstMonthDate.weekday - 1;
|
|
538
|
+
isMonthIncludeToday = this.todayDateTime >= this.firstMonthDate && this.todayDateTime <= this.firstMonthDate.endOf("month");
|
|
539
|
+
getOnDateClick = ({ start, end }) => {
|
|
540
|
+
const { onDateClick, onRangeDateClick } = this.props;
|
|
541
|
+
if (onRangeDateClick) {
|
|
542
|
+
return () => onRangeDateClick({ start, end });
|
|
543
|
+
}
|
|
544
|
+
return () => onDateClick({ dateTime: start });
|
|
545
|
+
};
|
|
546
|
+
renderTitleCell = ({ titleCell, month, year }) => {
|
|
547
|
+
const { min, max } = this.props;
|
|
548
|
+
const startMonth = this.firstMonthDate;
|
|
549
|
+
const endMonth = this.firstMonthDate.set({ day: startMonth.daysInMonth });
|
|
550
|
+
const disabled = min && endMonth < min || max && startMonth > max;
|
|
551
|
+
let title = titleCell === 0 ? i18n$4(`month_long_${month}`) : null;
|
|
552
|
+
if (title && [MONTHS.DECEMBER, MONTHS.JANUARY].includes(month)) {
|
|
553
|
+
title += ` ${year}`;
|
|
554
|
+
}
|
|
555
|
+
return /* @__PURE__ */ React__default.createElement("div", { key: `title-${titleCell}-${month}-${year}`, className: b$c(CELLS$2.TITLE, { disabled }) }, title);
|
|
556
|
+
};
|
|
557
|
+
renderEmptyCell = ({ emptyCell, month, year }) => {
|
|
558
|
+
return /* @__PURE__ */ React__default.createElement("div", { key: `empty-${emptyCell}-${month}-${year}` });
|
|
559
|
+
};
|
|
560
|
+
// eslint-disable-next-line complexity
|
|
561
|
+
getMods = ({ currentDateTime, mergedIntervals, flags }) => {
|
|
562
|
+
const { min, max, selectedInterval, hovered, isDefaultFrom, onRangeDateClick } = this.props;
|
|
563
|
+
let isToday = false;
|
|
564
|
+
let isSelected = false;
|
|
565
|
+
if (this.isMonthIncludeToday && !flags.hasToday) {
|
|
566
|
+
isToday = isDatesEqual(currentDateTime, this.todayDateTime);
|
|
567
|
+
if (isToday) {
|
|
568
|
+
flags.hasToday = true;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
if (hovered && onRangeDateClick) {
|
|
572
|
+
isSelected = selectedInterval.contains(currentDateTime) || hovered.contains(currentDateTime);
|
|
573
|
+
} else if (hovered) {
|
|
574
|
+
isSelected = mergedIntervals ? mergedIntervals.contains(currentDateTime) : hovered.contains(currentDateTime);
|
|
575
|
+
} else {
|
|
576
|
+
isSelected = selectedInterval.contains(currentDateTime) && !isDefaultFrom;
|
|
577
|
+
}
|
|
578
|
+
const disabled = min && currentDateTime < min || max && currentDateTime > max;
|
|
579
|
+
const isMonday = currentDateTime.weekday === WEEKDAYS.MONDAY;
|
|
580
|
+
const isSunday = currentDateTime.weekday === WEEKDAYS.SUNDAY;
|
|
581
|
+
const isFirsDay = currentDateTime.day === 1;
|
|
582
|
+
const isLastDay = currentDateTime.day === currentDateTime.daysInMonth;
|
|
583
|
+
const mods = {
|
|
584
|
+
disabled,
|
|
585
|
+
weekend: currentDateTime.weekday >= WEEKDAYS.SATURDAY,
|
|
586
|
+
today: isToday,
|
|
587
|
+
selected: isSelected,
|
|
588
|
+
"left-edge": isMonday || isFirsDay,
|
|
589
|
+
"right-edge": isSunday || isLastDay
|
|
590
|
+
};
|
|
591
|
+
return mods;
|
|
592
|
+
};
|
|
593
|
+
renderDayCell = ({ day, month, year, mergedIntervals }) => {
|
|
594
|
+
const { hovered, onRangeDateClick } = this.props;
|
|
595
|
+
const flags = {
|
|
596
|
+
hasToday: false
|
|
597
|
+
};
|
|
598
|
+
const currentDateTime = this.firstMonthDate.set({ day });
|
|
599
|
+
const mods = this.getMods({ currentDateTime, mergedIntervals, flags });
|
|
600
|
+
let start = currentDateTime;
|
|
601
|
+
let end;
|
|
602
|
+
if (hovered && onRangeDateClick) {
|
|
603
|
+
[start, end] = [hovered.start, hovered.end];
|
|
604
|
+
}
|
|
605
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
606
|
+
"div",
|
|
607
|
+
{
|
|
608
|
+
key: `${day}-${month}-${year}`,
|
|
609
|
+
className: b$c(CELLS$2.DAY, mods),
|
|
610
|
+
date: currentDateTime.toISODate(),
|
|
611
|
+
...!mods.disabled && { onClick: this.getOnDateClick({ start, end }) }
|
|
612
|
+
},
|
|
613
|
+
day
|
|
614
|
+
);
|
|
615
|
+
};
|
|
616
|
+
renderMonth = () => {
|
|
617
|
+
const { month, year, selectedInterval, hovered, onRangeDateClick } = this.props;
|
|
618
|
+
const emptyCells = this.titleCells === WEEKDAYS.SUNDAY ? this.firstMonthDate.weekday - 1 : 0;
|
|
619
|
+
const mergedIntervals = !onRangeDateClick && selectedInterval && hovered && selectedInterval.union(hovered);
|
|
620
|
+
return _range(this.titleCells).map((titleCell) => this.renderTitleCell({ titleCell, month, year })).concat(
|
|
621
|
+
_range(emptyCells).map(
|
|
622
|
+
(emptyCell) => this.renderEmptyCell({ emptyCell, month, year })
|
|
623
|
+
)
|
|
624
|
+
).concat(
|
|
625
|
+
_range(1, this.firstMonthDate.daysInMonth + 1).map(
|
|
626
|
+
(day) => this.renderDayCell({ day, month, year, mergedIntervals })
|
|
627
|
+
)
|
|
628
|
+
);
|
|
629
|
+
};
|
|
630
|
+
render() {
|
|
631
|
+
const { isNeedScroll } = this.props;
|
|
632
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
633
|
+
"div",
|
|
634
|
+
{
|
|
635
|
+
...isNeedScroll && { ref: this.scrollRef },
|
|
636
|
+
style: {
|
|
637
|
+
gridTemplateAreas: `"${_repeat("title ", this.titleCells)}"`
|
|
638
|
+
},
|
|
639
|
+
className: b$c(),
|
|
640
|
+
year: this.firstMonthDate.year,
|
|
641
|
+
month: this.firstMonthDate.month
|
|
642
|
+
},
|
|
643
|
+
this.renderMonth()
|
|
644
|
+
);
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
const i18n$3 = I18n.keyset("components.common.Datepicker");
|
|
648
|
+
const b$b = block("dl-datepicker-months");
|
|
649
|
+
const CELLS_COUNT$1 = 17;
|
|
650
|
+
const EMPTY_CELLS = [5, 9, 13];
|
|
651
|
+
const CELLS$1 = {
|
|
652
|
+
MONTH: "month",
|
|
653
|
+
TITLE: "title"
|
|
654
|
+
};
|
|
655
|
+
const COLUMNS$2 = {
|
|
656
|
+
LEFT: 1,
|
|
657
|
+
RIGHT: 3
|
|
658
|
+
};
|
|
659
|
+
class Months extends React__default.PureComponent {
|
|
660
|
+
static propTypes = {
|
|
661
|
+
year: PropTypes.number.isRequired,
|
|
662
|
+
from: PropTypes.object,
|
|
663
|
+
to: PropTypes.object,
|
|
664
|
+
min: PropTypes.object,
|
|
665
|
+
max: PropTypes.object,
|
|
666
|
+
selectedInterval: PropTypes.object,
|
|
667
|
+
hovered: PropTypes.object,
|
|
668
|
+
zone: PropTypes.string,
|
|
669
|
+
isNeedScroll: PropTypes.bool,
|
|
670
|
+
onRangeDateClick: PropTypes.func
|
|
671
|
+
};
|
|
672
|
+
scrollRef = React__default.createRef();
|
|
673
|
+
dateTime = DateTime.fromObject({
|
|
674
|
+
year: this.props.year,
|
|
675
|
+
month: 1,
|
|
676
|
+
day: 1,
|
|
677
|
+
zone: this.props.zone
|
|
678
|
+
});
|
|
679
|
+
todayDateTime = DateTime.fromObject({ zone: this.props.zone });
|
|
680
|
+
getOnRangeDateClick = ({ start, end, isAllRangePicked }) => {
|
|
681
|
+
return () => this.props.onRangeDateClick({ start, end, isAllRangePicked });
|
|
682
|
+
};
|
|
683
|
+
renderMonthes() {
|
|
684
|
+
const { from, to, min, max, selectedInterval, hovered } = this.props;
|
|
685
|
+
let currentMonth = 0;
|
|
686
|
+
let currentColumn = 0;
|
|
687
|
+
return _range(1, CELLS_COUNT$1).map((cell) => {
|
|
688
|
+
const isTitle = cell === 1;
|
|
689
|
+
const isEmpty = EMPTY_CELLS.includes(cell);
|
|
690
|
+
if (isTitle || isEmpty) {
|
|
691
|
+
const startYear = this.dateTime;
|
|
692
|
+
let endYear = this.dateTime.set({ month: MONTHS.DECEMBER });
|
|
693
|
+
endYear = endYear.set({ day: endYear.daysInMonth });
|
|
694
|
+
const disabled2 = min && endYear < min || max && startYear > max;
|
|
695
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
696
|
+
"div",
|
|
697
|
+
{
|
|
698
|
+
key: `title-${cell}-${this.dateTime.year}`,
|
|
699
|
+
...isTitle && { className: b$b(CELLS$1.TITLE, { disabled: disabled2 }) },
|
|
700
|
+
...isTitle && {
|
|
701
|
+
onClick: this.getOnRangeDateClick({
|
|
702
|
+
start: this.dateTime,
|
|
703
|
+
end: this.dateTime.set({ month: 12, day: 31 }),
|
|
704
|
+
isAllRangePicked: true
|
|
705
|
+
})
|
|
706
|
+
}
|
|
707
|
+
},
|
|
708
|
+
isTitle && this.dateTime.year
|
|
709
|
+
);
|
|
710
|
+
}
|
|
711
|
+
currentMonth += 1;
|
|
712
|
+
currentColumn += 1;
|
|
713
|
+
if (currentColumn > COLUMNS$2.RIGHT) {
|
|
714
|
+
currentColumn = COLUMNS$2.LEFT;
|
|
715
|
+
}
|
|
716
|
+
const startMonth = this.dateTime.set({
|
|
717
|
+
day: 1,
|
|
718
|
+
month: currentMonth
|
|
719
|
+
});
|
|
720
|
+
const endMonth = this.dateTime.set({
|
|
721
|
+
day: startMonth.daysInMonth,
|
|
722
|
+
month: currentMonth
|
|
723
|
+
}).endOf("month");
|
|
724
|
+
const disabled = min && endMonth < min || max && startMonth > max;
|
|
725
|
+
const monthInterval = Interval.fromDateTimes(startMonth, endMonth);
|
|
726
|
+
const isContainsFrom = from && monthInterval.contains(from);
|
|
727
|
+
const isContainsTo = to && monthInterval.end >= to;
|
|
728
|
+
const isSelected = Boolean(
|
|
729
|
+
selectedInterval && selectedInterval.intersection(monthInterval)
|
|
730
|
+
);
|
|
731
|
+
const isHovered = Boolean(hovered && hovered.intersection(monthInterval));
|
|
732
|
+
const isContainsHoverStart = isHovered && monthInterval.contains(hovered.start);
|
|
733
|
+
const isContainsHoverEnd = isHovered && monthInterval.end >= hovered.end;
|
|
734
|
+
const mods = {
|
|
735
|
+
disabled,
|
|
736
|
+
today: monthInterval.contains(this.todayDateTime),
|
|
737
|
+
selected: isSelected || isHovered
|
|
738
|
+
};
|
|
739
|
+
if (isHovered) {
|
|
740
|
+
mods["left-edge"] = currentColumn === COLUMNS$2.LEFT || isContainsHoverStart;
|
|
741
|
+
mods["right-edge"] = currentColumn === COLUMNS$2.RIGHT || isContainsHoverEnd;
|
|
742
|
+
} else {
|
|
743
|
+
mods["left-edge"] = currentColumn === COLUMNS$2.LEFT || isContainsFrom;
|
|
744
|
+
mods["right-edge"] = currentColumn === COLUMNS$2.RIGHT || isContainsTo;
|
|
745
|
+
}
|
|
746
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
747
|
+
"div",
|
|
748
|
+
{
|
|
749
|
+
key: `${cell}-${this.dateTime.year}`,
|
|
750
|
+
className: b$b(CELLS$1.MONTH, mods),
|
|
751
|
+
range: `${startMonth.toISODate()}/${endMonth.toISODate()}`,
|
|
752
|
+
...!disabled && {
|
|
753
|
+
onClick: this.getOnRangeDateClick({
|
|
754
|
+
start: startMonth,
|
|
755
|
+
end: endMonth
|
|
756
|
+
})
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
i18n$3(`month_short_${currentMonth}`)
|
|
760
|
+
);
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
render() {
|
|
764
|
+
const { isNeedScroll } = this.props;
|
|
765
|
+
return /* @__PURE__ */ React__default.createElement("div", { ...isNeedScroll && { ref: this.scrollRef }, className: b$b() }, this.renderMonthes());
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
const b$a = block("dl-datepicker-quarters");
|
|
769
|
+
const CELLS_COUNT = 5;
|
|
770
|
+
const CELLS = {
|
|
771
|
+
QUARTER: "quarter",
|
|
772
|
+
TITLE: "title"
|
|
773
|
+
};
|
|
774
|
+
const COLUMNS$1 = {
|
|
775
|
+
LEFT: 1,
|
|
776
|
+
RIGHT: 4
|
|
777
|
+
};
|
|
778
|
+
class Quarters extends React__default.PureComponent {
|
|
779
|
+
static propTypes = {
|
|
780
|
+
year: PropTypes.number.isRequired,
|
|
781
|
+
from: PropTypes.object,
|
|
782
|
+
to: PropTypes.object,
|
|
783
|
+
min: PropTypes.object,
|
|
784
|
+
max: PropTypes.object,
|
|
785
|
+
selectedInterval: PropTypes.object,
|
|
786
|
+
hovered: PropTypes.object,
|
|
787
|
+
zone: PropTypes.string,
|
|
788
|
+
isNeedScroll: PropTypes.bool,
|
|
789
|
+
onRangeDateClick: PropTypes.func
|
|
790
|
+
};
|
|
791
|
+
scrollRef = React__default.createRef();
|
|
792
|
+
dateTime = DateTime.fromObject({
|
|
793
|
+
year: this.props.year,
|
|
794
|
+
month: 1,
|
|
795
|
+
day: 1,
|
|
796
|
+
zone: this.props.zone
|
|
797
|
+
});
|
|
798
|
+
todayDateTime = DateTime.fromObject({ zone: this.props.zone });
|
|
799
|
+
getOnRangeDateClick = ({ start, end }) => {
|
|
800
|
+
return () => this.props.onRangeDateClick({ start, end });
|
|
801
|
+
};
|
|
802
|
+
renderQuarter() {
|
|
803
|
+
const { from, to, min, max, selectedInterval, hovered } = this.props;
|
|
804
|
+
return _range(0, CELLS_COUNT).map((cell) => {
|
|
805
|
+
if (cell === 0) {
|
|
806
|
+
const startYear = this.dateTime;
|
|
807
|
+
let endYear = this.dateTime.set({ month: MONTHS.DECEMBER });
|
|
808
|
+
endYear = endYear.set({ day: endYear.daysInMonth });
|
|
809
|
+
const disabled2 = min && endYear < min || max && startYear > max;
|
|
810
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
811
|
+
"div",
|
|
812
|
+
{
|
|
813
|
+
key: `title-${cell}-${this.dateTime.year}`,
|
|
814
|
+
className: b$a(CELLS.TITLE, { disabled: disabled2 })
|
|
815
|
+
},
|
|
816
|
+
this.dateTime.year
|
|
817
|
+
);
|
|
818
|
+
}
|
|
819
|
+
const quarter = cell;
|
|
820
|
+
const startQuarter = this.dateTime.set({
|
|
821
|
+
day: 1,
|
|
822
|
+
month: quarter * 3 - 2
|
|
823
|
+
});
|
|
824
|
+
const endQuarter = this.dateTime.set({
|
|
825
|
+
day: 1,
|
|
826
|
+
month: quarter * 3
|
|
827
|
+
}).endOf("month");
|
|
828
|
+
const disabled = min && endQuarter < min || max && startQuarter > max;
|
|
829
|
+
const quarterInterval = Interval.fromDateTimes(startQuarter, endQuarter);
|
|
830
|
+
const isContainsFrom = from && quarterInterval.contains(from);
|
|
831
|
+
const isContainsTo = to && quarterInterval.end >= to;
|
|
832
|
+
const isSelected = Boolean(
|
|
833
|
+
selectedInterval && selectedInterval.intersection(quarterInterval)
|
|
834
|
+
);
|
|
835
|
+
const isHovered = Boolean(hovered && hovered.intersection(quarterInterval));
|
|
836
|
+
const isContainsHoverStart = isHovered && quarterInterval.contains(hovered.start);
|
|
837
|
+
const isContainsHoverEnd = isHovered && quarterInterval.end >= hovered.end;
|
|
838
|
+
const mods = {
|
|
839
|
+
disabled,
|
|
840
|
+
selected: isSelected || isHovered,
|
|
841
|
+
today: quarterInterval.contains(this.todayDateTime)
|
|
842
|
+
};
|
|
843
|
+
if (isHovered) {
|
|
844
|
+
mods["left-edge"] = cell === COLUMNS$1.LEFT || isContainsHoverStart;
|
|
845
|
+
mods["right-edge"] = cell === COLUMNS$1.RIGHT || isContainsHoverEnd;
|
|
846
|
+
} else {
|
|
847
|
+
mods["left-edge"] = cell === COLUMNS$1.LEFT || isContainsFrom;
|
|
848
|
+
mods["right-edge"] = cell === COLUMNS$1.RIGHT || isContainsTo;
|
|
849
|
+
}
|
|
850
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
851
|
+
"div",
|
|
852
|
+
{
|
|
853
|
+
key: `${cell}-${this.dateTime.year}`,
|
|
854
|
+
className: b$a(CELLS.QUARTER, mods),
|
|
855
|
+
range: `${startQuarter.toISODate()}/${endQuarter.toISODate()}`,
|
|
856
|
+
...!disabled && {
|
|
857
|
+
onClick: this.getOnRangeDateClick({
|
|
858
|
+
start: startQuarter,
|
|
859
|
+
end: endQuarter
|
|
860
|
+
})
|
|
861
|
+
}
|
|
862
|
+
},
|
|
863
|
+
`Q${quarter}`
|
|
864
|
+
);
|
|
865
|
+
});
|
|
866
|
+
}
|
|
867
|
+
render() {
|
|
868
|
+
const { isNeedScroll } = this.props;
|
|
869
|
+
return /* @__PURE__ */ React__default.createElement("div", { ...isNeedScroll && { ref: this.scrollRef }, className: b$a() }, this.renderQuarter());
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
const b$9 = block("dl-datepicker-year-switcher");
|
|
873
|
+
class YearSwitcher extends React__default.Component {
|
|
874
|
+
static propTypes = {
|
|
875
|
+
switcherDate: PropTypes.object,
|
|
876
|
+
offsetTop: PropTypes.number,
|
|
877
|
+
visible: PropTypes.bool,
|
|
878
|
+
onShiftMonths: PropTypes.func
|
|
879
|
+
};
|
|
880
|
+
static getDerivedStateFromProps(props) {
|
|
881
|
+
const changedState = {};
|
|
882
|
+
if (props.switcherDate) {
|
|
883
|
+
changedState.switcherDate = props.switcherDate;
|
|
884
|
+
}
|
|
885
|
+
return changedState;
|
|
886
|
+
}
|
|
887
|
+
state = {
|
|
888
|
+
switcherDate: this.props.switcherDate
|
|
889
|
+
};
|
|
890
|
+
onLeftArrowClick = () => this.props.onShiftMonths(-12);
|
|
891
|
+
onRightArrowClick = () => this.props.onShiftMonths(12);
|
|
892
|
+
render() {
|
|
893
|
+
const { offsetTop, visible } = this.props;
|
|
894
|
+
const { switcherDate } = this.state;
|
|
895
|
+
if (!visible) {
|
|
896
|
+
return null;
|
|
897
|
+
}
|
|
898
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
899
|
+
"div",
|
|
900
|
+
{
|
|
901
|
+
className: b$9(),
|
|
902
|
+
style: {
|
|
903
|
+
top: offsetTop + 4
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
/* @__PURE__ */ React__default.createElement("div", { className: b$9("arrow", { left: true }), onClick: this.onLeftArrowClick }, /* @__PURE__ */ React__default.createElement(Icon, { data: ChevronRight })),
|
|
907
|
+
/* @__PURE__ */ React__default.createElement("div", { className: b$9("value") }, switcherDate.year),
|
|
908
|
+
/* @__PURE__ */ React__default.createElement("div", { className: b$9("arrow", { right: true }), onClick: this.onRightArrowClick }, /* @__PURE__ */ React__default.createElement(Icon, { data: ChevronRight }))
|
|
909
|
+
);
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
const b$8 = block("dl-datepicker-years");
|
|
913
|
+
const COLUMNS = {
|
|
914
|
+
LEFT: 1,
|
|
915
|
+
RIGHT: 4
|
|
916
|
+
};
|
|
917
|
+
class Years extends React__default.PureComponent {
|
|
918
|
+
static propTypes = {
|
|
919
|
+
years: PropTypes.array.isRequired,
|
|
920
|
+
from: PropTypes.object,
|
|
921
|
+
to: PropTypes.object,
|
|
922
|
+
min: PropTypes.object,
|
|
923
|
+
max: PropTypes.object,
|
|
924
|
+
middle: PropTypes.object,
|
|
925
|
+
selectedInterval: PropTypes.object,
|
|
926
|
+
hovered: PropTypes.object,
|
|
927
|
+
zone: PropTypes.string,
|
|
928
|
+
onRangeDateClick: PropTypes.func
|
|
929
|
+
};
|
|
930
|
+
scrollRef = React__default.createRef();
|
|
931
|
+
todayDateTime = DateTime.fromObject({ zone: this.props.zone });
|
|
932
|
+
getOnRangeDateClick = ({ start, end }) => {
|
|
933
|
+
return () => this.props.onRangeDateClick({ start, end });
|
|
934
|
+
};
|
|
935
|
+
renderYears() {
|
|
936
|
+
const { from, to, min, max, middle, zone, years, selectedInterval, hovered } = this.props;
|
|
937
|
+
let currentColumn = 0;
|
|
938
|
+
return years.map((year) => {
|
|
939
|
+
currentColumn += 1;
|
|
940
|
+
if (currentColumn > COLUMNS.RIGHT) {
|
|
941
|
+
currentColumn = COLUMNS.LEFT;
|
|
942
|
+
}
|
|
943
|
+
const startYear = DateTime.fromObject({
|
|
944
|
+
year,
|
|
945
|
+
month: 1,
|
|
946
|
+
day: 1,
|
|
947
|
+
zone
|
|
948
|
+
});
|
|
949
|
+
const endYear = startYear.endOf("year");
|
|
950
|
+
const disabled = min && endYear < min || max && startYear > max;
|
|
951
|
+
const yearInterval = Interval.fromDateTimes(startYear, endYear);
|
|
952
|
+
const isContainsFrom = from && yearInterval.contains(from);
|
|
953
|
+
const isContainsTo = to && yearInterval.end >= to;
|
|
954
|
+
const isSelected = Boolean(
|
|
955
|
+
selectedInterval && selectedInterval.intersection(yearInterval)
|
|
956
|
+
);
|
|
957
|
+
const isHovered = Boolean(hovered && hovered.intersection(yearInterval));
|
|
958
|
+
const isContainsHoverStart = isHovered && yearInterval.contains(hovered.start);
|
|
959
|
+
const isContainsHoverEnd = isHovered && yearInterval.end >= hovered.end;
|
|
960
|
+
const isNeedScroll = middle.year === year;
|
|
961
|
+
const mods = {
|
|
962
|
+
disabled,
|
|
963
|
+
selected: isSelected || isHovered,
|
|
964
|
+
today: yearInterval.contains(this.todayDateTime)
|
|
965
|
+
};
|
|
966
|
+
if (isHovered) {
|
|
967
|
+
mods["left-edge"] = currentColumn === COLUMNS.LEFT || isContainsHoverStart;
|
|
968
|
+
mods["right-edge"] = currentColumn === COLUMNS.RIGHT || isContainsHoverEnd;
|
|
969
|
+
} else {
|
|
970
|
+
mods["left-edge"] = currentColumn === COLUMNS.LEFT || isContainsFrom;
|
|
971
|
+
mods["right-edge"] = currentColumn === COLUMNS.RIGHT || isContainsTo;
|
|
972
|
+
}
|
|
973
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
974
|
+
"div",
|
|
975
|
+
{
|
|
976
|
+
...isNeedScroll && { ref: this.scrollRef },
|
|
977
|
+
key: year,
|
|
978
|
+
className: b$8("year", mods),
|
|
979
|
+
range: `${startYear.toISODate()}/${endYear.toISODate()}`,
|
|
980
|
+
onClick: this.getOnRangeDateClick({
|
|
981
|
+
start: startYear,
|
|
982
|
+
end: endYear
|
|
983
|
+
})
|
|
984
|
+
},
|
|
985
|
+
year
|
|
986
|
+
);
|
|
987
|
+
});
|
|
988
|
+
}
|
|
989
|
+
render() {
|
|
990
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: b$8() }, this.renderYears());
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
const i18n$2 = I18n.keyset("components.common.Datepicker");
|
|
994
|
+
const FORMAT_LETTERS = ["y", "M", "d", "h", "H", "m", "s", "S"];
|
|
995
|
+
function createDateTime({ date, zone }) {
|
|
996
|
+
if (!date) {
|
|
997
|
+
return void 0;
|
|
998
|
+
}
|
|
999
|
+
const type = typeof date;
|
|
1000
|
+
let dateTime;
|
|
1001
|
+
switch (type) {
|
|
1002
|
+
case "string": {
|
|
1003
|
+
dateTime = DateTime.fromISO(date, { zone });
|
|
1004
|
+
break;
|
|
1005
|
+
}
|
|
1006
|
+
case "number": {
|
|
1007
|
+
dateTime = DateTime.fromMillis(date, { zone });
|
|
1008
|
+
break;
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
return dateTime;
|
|
1012
|
+
}
|
|
1013
|
+
function getPlaceholder(format) {
|
|
1014
|
+
return format.split("").map((letter) => {
|
|
1015
|
+
return FORMAT_LETTERS.includes(letter) ? i18n$2(`placeholder_letter_${letter}`) : letter;
|
|
1016
|
+
}).join("");
|
|
1017
|
+
}
|
|
1018
|
+
function getSearchText({ from, to, format, emptyValueText, range, required }) {
|
|
1019
|
+
switch (true) {
|
|
1020
|
+
case Boolean(!range && from): {
|
|
1021
|
+
return `${from.toFormat(format)}`;
|
|
1022
|
+
}
|
|
1023
|
+
case Boolean(from && !to): {
|
|
1024
|
+
return `${from.toFormat(format)} - ${emptyValueText ? emptyValueText : ""}`;
|
|
1025
|
+
}
|
|
1026
|
+
case Boolean(from && to): {
|
|
1027
|
+
return `${from.toFormat(format)} - ${to.toFormat(format)}`;
|
|
1028
|
+
}
|
|
1029
|
+
// return value_required text if value is required and is not fully filled
|
|
1030
|
+
case (required && (range && !from && !to || !range && !from)): {
|
|
1031
|
+
return i18n$2("value_required");
|
|
1032
|
+
}
|
|
1033
|
+
case Boolean(range): {
|
|
1034
|
+
return emptyValueText ? `${emptyValueText} - ${emptyValueText}` : "";
|
|
1035
|
+
}
|
|
1036
|
+
default: {
|
|
1037
|
+
return emptyValueText || "";
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
function getZone(offset) {
|
|
1042
|
+
if (!offset && offset !== 0) {
|
|
1043
|
+
return DateTime.local().zoneName;
|
|
1044
|
+
}
|
|
1045
|
+
const offsetHours = Math.round(offset / MINUTES_IN_HOUR);
|
|
1046
|
+
if (offsetHours === 0) {
|
|
1047
|
+
return "UTC";
|
|
1048
|
+
}
|
|
1049
|
+
return `UTC${offsetHours > 0 ? "+" : ""}${offsetHours}`;
|
|
1050
|
+
}
|
|
1051
|
+
function isValidDate(dateTime) {
|
|
1052
|
+
if (!dateTime) {
|
|
1053
|
+
return false;
|
|
1054
|
+
}
|
|
1055
|
+
return dateTime.isValid;
|
|
1056
|
+
}
|
|
1057
|
+
function getDefaultPreset({ zone, activeTab, range }) {
|
|
1058
|
+
switch (activeTab) {
|
|
1059
|
+
case "day": {
|
|
1060
|
+
if (range) {
|
|
1061
|
+
return [
|
|
1062
|
+
{
|
|
1063
|
+
title: () => i18n$2("preset_day_7"),
|
|
1064
|
+
start: DateTime.fromObject({ zone }).plus({ day: -6 }).startOf("day"),
|
|
1065
|
+
end: DateTime.fromObject({ zone })
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
title: () => i18n$2("preset_day_30"),
|
|
1069
|
+
start: DateTime.fromObject({ zone }).plus({ day: -29 }).startOf("day"),
|
|
1070
|
+
end: DateTime.fromObject({ zone })
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
title: () => i18n$2("preset_day_90"),
|
|
1074
|
+
start: DateTime.fromObject({ zone }).plus({ day: -89 }).startOf("day"),
|
|
1075
|
+
end: DateTime.fromObject({ zone })
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
title: () => i18n$2("preset_day_365"),
|
|
1079
|
+
start: DateTime.fromObject({ zone }).plus({ day: -364 }).startOf("day"),
|
|
1080
|
+
end: DateTime.fromObject({ zone })
|
|
1081
|
+
}
|
|
1082
|
+
];
|
|
1083
|
+
}
|
|
1084
|
+
return [
|
|
1085
|
+
{
|
|
1086
|
+
title: () => i18n$2("preset_day_today"),
|
|
1087
|
+
start: DateTime.fromObject({ zone }).startOf("day"),
|
|
1088
|
+
end: DateTime.fromObject({ zone })
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
title: () => i18n$2("preset_day_yesterday"),
|
|
1092
|
+
start: DateTime.fromObject({ zone }).plus({ day: -1 }).startOf("day"),
|
|
1093
|
+
end: DateTime.fromObject({ zone }).plus({ day: -1 })
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
title: () => i18n$2("preset_day_two_days_ago"),
|
|
1097
|
+
start: DateTime.fromObject({ zone }).plus({ day: -2 }).startOf("day"),
|
|
1098
|
+
end: DateTime.fromObject({ zone }).plus({ day: -2 })
|
|
1099
|
+
}
|
|
1100
|
+
];
|
|
1101
|
+
}
|
|
1102
|
+
case "week": {
|
|
1103
|
+
return [
|
|
1104
|
+
{
|
|
1105
|
+
title: () => i18n$2("preset_week_current"),
|
|
1106
|
+
start: DateTime.fromObject({ zone }).startOf("week"),
|
|
1107
|
+
end: DateTime.fromObject({ zone }).endOf("week")
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
title: () => i18n$2("preset_week_past"),
|
|
1111
|
+
start: DateTime.fromObject({ zone }).startOf("week").plus({ day: -7 }),
|
|
1112
|
+
end: DateTime.fromObject({ zone }).startOf("week").plus({ day: -1 })
|
|
1113
|
+
}
|
|
1114
|
+
];
|
|
1115
|
+
}
|
|
1116
|
+
case "month": {
|
|
1117
|
+
return [
|
|
1118
|
+
{
|
|
1119
|
+
title: () => i18n$2("preset_current"),
|
|
1120
|
+
start: DateTime.fromObject({ zone }).startOf("month"),
|
|
1121
|
+
end: DateTime.fromObject({ zone }).endOf("month")
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
title: () => i18n$2("preset_past"),
|
|
1125
|
+
start: DateTime.fromObject({ zone }).startOf("month").plus({ day: -1 }).startOf("month"),
|
|
1126
|
+
end: DateTime.fromObject({ zone }).startOf("month").plus({ day: -1 })
|
|
1127
|
+
}
|
|
1128
|
+
];
|
|
1129
|
+
}
|
|
1130
|
+
case "quarter": {
|
|
1131
|
+
return [
|
|
1132
|
+
{
|
|
1133
|
+
title: () => i18n$2("preset_current"),
|
|
1134
|
+
start: DateTime.fromObject({ zone }).startOf("quarter"),
|
|
1135
|
+
end: DateTime.fromObject({ zone }).endOf("quarter")
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
title: () => i18n$2("preset_past"),
|
|
1139
|
+
start: DateTime.fromObject({ zone }).startOf("quarter").plus({ day: -1 }).startOf("quarter"),
|
|
1140
|
+
end: DateTime.fromObject({ zone }).startOf("quarter").plus({ day: -1 })
|
|
1141
|
+
}
|
|
1142
|
+
];
|
|
1143
|
+
}
|
|
1144
|
+
case "year": {
|
|
1145
|
+
return [
|
|
1146
|
+
{
|
|
1147
|
+
title: () => i18n$2("preset_current"),
|
|
1148
|
+
start: DateTime.fromObject({ zone }).startOf("year"),
|
|
1149
|
+
end: DateTime.fromObject({ zone }).endOf("year")
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
title: () => i18n$2("preset_past"),
|
|
1153
|
+
start: DateTime.fromObject({ zone }).startOf("year").plus({ day: -1 }).startOf("year"),
|
|
1154
|
+
end: DateTime.fromObject({ zone }).startOf("year").plus({ day: -1 })
|
|
1155
|
+
}
|
|
1156
|
+
];
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
function getHashedData(data) {
|
|
1161
|
+
return JSON.stringify(data);
|
|
1162
|
+
}
|
|
1163
|
+
function resolveDates({ from, to }) {
|
|
1164
|
+
let resolveFrom = from;
|
|
1165
|
+
let resolveTo = to;
|
|
1166
|
+
const isFromValid = isValidDate(resolveFrom);
|
|
1167
|
+
const isToValid = isValidDate(resolveTo);
|
|
1168
|
+
if (isFromValid && isToValid && resolveTo < resolveFrom) {
|
|
1169
|
+
[resolveFrom, resolveTo] = [resolveTo, resolveFrom];
|
|
1170
|
+
}
|
|
1171
|
+
if (!isFromValid && isToValid) {
|
|
1172
|
+
[resolveFrom, resolveTo] = [resolveTo, resolveFrom];
|
|
1173
|
+
}
|
|
1174
|
+
resolveFrom = isValidDate(resolveFrom) ? resolveFrom : void 0;
|
|
1175
|
+
resolveTo = isValidDate(resolveTo) ? resolveTo : void 0;
|
|
1176
|
+
return [resolveFrom, resolveTo];
|
|
1177
|
+
}
|
|
1178
|
+
function checkBrowser$1() {
|
|
1179
|
+
const agent = navigator.userAgent;
|
|
1180
|
+
if (agent.indexOf("Firefox") !== -1 && parseFloat(agent.substring(agent.indexOf("Firefox") + 8)) >= 3.6) {
|
|
1181
|
+
return "Firefox";
|
|
1182
|
+
} else if (agent.indexOf("Safari") !== -1 && agent.indexOf("Version") !== -1 && parseFloat(agent.substring(agent.indexOf("Version") + 8).split(" ")[0]) >= 5) {
|
|
1183
|
+
return "Safari";
|
|
1184
|
+
}
|
|
1185
|
+
return "Good Browser";
|
|
1186
|
+
}
|
|
1187
|
+
function getListWithoutNullableValues(...args) {
|
|
1188
|
+
return args.filter(Boolean);
|
|
1189
|
+
}
|
|
1190
|
+
function hasTimeUnitsInFormat(format) {
|
|
1191
|
+
return /H|h|m|s/.test(format);
|
|
1192
|
+
}
|
|
1193
|
+
const fillEmptyToDate = (from) => {
|
|
1194
|
+
const diff = from.toUTC().startOf("day").diff(from).toMillis();
|
|
1195
|
+
return diff === 0 ? from.toUTC().endOf("day") : from;
|
|
1196
|
+
};
|
|
1197
|
+
const b$7 = block("dl-datepicker-calendar");
|
|
1198
|
+
const MONTH_NARGIN_BOTTOM = 5;
|
|
1199
|
+
const MIN_YEAR = 1e3;
|
|
1200
|
+
const MAX_YEAR = 3e3;
|
|
1201
|
+
const THRESHOLD = {
|
|
1202
|
+
[TABS.DAY]: 150,
|
|
1203
|
+
[TABS.WEEK]: 150,
|
|
1204
|
+
[TABS.MONTH]: 150,
|
|
1205
|
+
[TABS.QUARTER]: 100,
|
|
1206
|
+
[TABS.YEAR]: 50
|
|
1207
|
+
};
|
|
1208
|
+
const SHIFT = {
|
|
1209
|
+
[TABS.DAY]: 4,
|
|
1210
|
+
[TABS.WEEK]: 4,
|
|
1211
|
+
[TABS.MONTH]: 48,
|
|
1212
|
+
[TABS.QUARTER]: 344,
|
|
1213
|
+
[TABS.YEAR]: 1008
|
|
1214
|
+
};
|
|
1215
|
+
const getWarningMessage = ({ from, min, max }) => {
|
|
1216
|
+
const date = min ? min : max;
|
|
1217
|
+
const dateType2 = min ? "min" : "max";
|
|
1218
|
+
const adverb = min ? "less" : "more";
|
|
1219
|
+
return `'from' date (${from.toString()}) is ${adverb} than '${dateType2}' date (${date.toString()})`;
|
|
1220
|
+
};
|
|
1221
|
+
const getMiddleDate = ({ zone, from, min, max }) => {
|
|
1222
|
+
let middle = from ? from : DateTime.fromObject({ zone });
|
|
1223
|
+
let warningMessage;
|
|
1224
|
+
if (from) {
|
|
1225
|
+
if (max && from > max) {
|
|
1226
|
+
middle = max;
|
|
1227
|
+
warningMessage = getWarningMessage({ from, max });
|
|
1228
|
+
} else if (min && from < min) {
|
|
1229
|
+
middle = min;
|
|
1230
|
+
warningMessage = getWarningMessage({ from, min });
|
|
1231
|
+
}
|
|
1232
|
+
} else if (max) {
|
|
1233
|
+
middle = max;
|
|
1234
|
+
} else if (min) {
|
|
1235
|
+
middle = min;
|
|
1236
|
+
}
|
|
1237
|
+
if (warningMessage) {
|
|
1238
|
+
console.warn(warningMessage);
|
|
1239
|
+
}
|
|
1240
|
+
return middle;
|
|
1241
|
+
};
|
|
1242
|
+
const getInterval = ({ zone, activeTab, from, min, max, init }) => {
|
|
1243
|
+
const middle = getMiddleDate({ zone, from, min, max });
|
|
1244
|
+
const start = middle.plus({ month: -SHIFT[activeTab] });
|
|
1245
|
+
const end = middle.plus({ month: SHIFT[activeTab] });
|
|
1246
|
+
return {
|
|
1247
|
+
middle,
|
|
1248
|
+
interval: Interval.fromDateTimes(start, end)
|
|
1249
|
+
};
|
|
1250
|
+
};
|
|
1251
|
+
const getOffsetTop = (calendarNode) => {
|
|
1252
|
+
let offset = 0;
|
|
1253
|
+
if (!calendarNode) {
|
|
1254
|
+
return offset;
|
|
1255
|
+
}
|
|
1256
|
+
let sib = calendarNode.previousSibling;
|
|
1257
|
+
while (sib) {
|
|
1258
|
+
offset += sib.clientHeight;
|
|
1259
|
+
sib = sib.previousSibling;
|
|
1260
|
+
}
|
|
1261
|
+
return offset;
|
|
1262
|
+
};
|
|
1263
|
+
const getSwitcherDate = ({ zone, nodes, currentScrollTop }) => {
|
|
1264
|
+
let switcherDate = null;
|
|
1265
|
+
nodes.forEach((node) => {
|
|
1266
|
+
const year = node.getAttribute("year");
|
|
1267
|
+
const month = node.getAttribute("month");
|
|
1268
|
+
if (!year || !month) {
|
|
1269
|
+
return;
|
|
1270
|
+
}
|
|
1271
|
+
if (currentScrollTop >= node.offsetTop - node.clientHeight && currentScrollTop < node.offsetTop) {
|
|
1272
|
+
switcherDate = DateTime.fromObject({
|
|
1273
|
+
zone,
|
|
1274
|
+
year: Number(year),
|
|
1275
|
+
month: Number(month)
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
});
|
|
1279
|
+
return switcherDate;
|
|
1280
|
+
};
|
|
1281
|
+
class Calendar extends React__default.Component {
|
|
1282
|
+
static propTypes = {
|
|
1283
|
+
zone: PropTypes.string,
|
|
1284
|
+
activeTab: PropTypes.string,
|
|
1285
|
+
from: PropTypes.object,
|
|
1286
|
+
to: PropTypes.object,
|
|
1287
|
+
min: PropTypes.object,
|
|
1288
|
+
max: PropTypes.object,
|
|
1289
|
+
pick: PropTypes.number,
|
|
1290
|
+
range: PropTypes.bool,
|
|
1291
|
+
scrollCalendar: PropTypes.bool,
|
|
1292
|
+
onDateClick: PropTypes.func,
|
|
1293
|
+
onRangeDateClick: PropTypes.func
|
|
1294
|
+
};
|
|
1295
|
+
static getDerivedStateFromProps(props, state) {
|
|
1296
|
+
const changedState = {
|
|
1297
|
+
prevProps: props
|
|
1298
|
+
};
|
|
1299
|
+
if (props.activeTab !== state.prevProps.activeTab || props.from !== state.prevProps.from && props.scrollCalendar && !state.interval.contains(props.from) || props.max !== state.prevProps.max || props.min !== state.prevProps.min) {
|
|
1300
|
+
const { interval, middle } = getInterval({
|
|
1301
|
+
zone: props.zone,
|
|
1302
|
+
activeTab: props.activeTab,
|
|
1303
|
+
from: props.from,
|
|
1304
|
+
min: props.min,
|
|
1305
|
+
max: props.max
|
|
1306
|
+
});
|
|
1307
|
+
changedState.interval = interval;
|
|
1308
|
+
changedState.middle = middle;
|
|
1309
|
+
changedState.switcherDate = null;
|
|
1310
|
+
}
|
|
1311
|
+
if (props.from !== state.prevProps.from) {
|
|
1312
|
+
changedState.switcherDate = null;
|
|
1313
|
+
}
|
|
1314
|
+
return changedState;
|
|
1315
|
+
}
|
|
1316
|
+
constructor(props) {
|
|
1317
|
+
super(props);
|
|
1318
|
+
const { zone, activeTab, from, min, max } = this.props;
|
|
1319
|
+
this.containerRef = React__default.createRef();
|
|
1320
|
+
this.contentRef = React__default.createRef();
|
|
1321
|
+
const { interval, middle } = getInterval({ zone, activeTab, from, min, max });
|
|
1322
|
+
this.state = {
|
|
1323
|
+
interval,
|
|
1324
|
+
middle,
|
|
1325
|
+
prevProps: this.props,
|
|
1326
|
+
hovered: void 0,
|
|
1327
|
+
switcherDate: middle,
|
|
1328
|
+
switcherOffset: 0
|
|
1329
|
+
};
|
|
1330
|
+
}
|
|
1331
|
+
componentDidMount() {
|
|
1332
|
+
const browser = checkBrowser$1();
|
|
1333
|
+
this.isNeedScrollOffsetHandling = browser === "Safari" || browser === "Firefox";
|
|
1334
|
+
this.containerRef.current.addEventListener("scroll", throttle(this.onScroll, 5));
|
|
1335
|
+
this.scrollTo();
|
|
1336
|
+
this.setState({
|
|
1337
|
+
switcherOffset: getOffsetTop(this.containerRef.current)
|
|
1338
|
+
});
|
|
1339
|
+
}
|
|
1340
|
+
componentDidUpdate(prevProps) {
|
|
1341
|
+
if (this.state.switcherClicked || prevProps.activeTab !== this.props.activeTab || prevProps.from !== this.props.from && this.props.scrollCalendar || prevProps.max !== this.props.max || prevProps.min !== this.props.min) {
|
|
1342
|
+
this.scrollTo();
|
|
1343
|
+
}
|
|
1344
|
+
const switcherOffset = getOffsetTop(this.containerRef.current);
|
|
1345
|
+
if ((switcherOffset || switcherOffset === 0) && switcherOffset !== this.state.switcherOffset) {
|
|
1346
|
+
this.setState({ switcherOffset });
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
componentWillUnmount() {
|
|
1350
|
+
this.containerRef.current.removeEventListener("scroll", this.onScroll);
|
|
1351
|
+
}
|
|
1352
|
+
onScroll = (e) => {
|
|
1353
|
+
const container = this.containerRef.current;
|
|
1354
|
+
if (!container) {
|
|
1355
|
+
return;
|
|
1356
|
+
}
|
|
1357
|
+
const { clientHeight, scrollHeight, scrollTop } = e.target;
|
|
1358
|
+
const { zone, activeTab } = this.props;
|
|
1359
|
+
const { interval } = this.state;
|
|
1360
|
+
const changedState = {};
|
|
1361
|
+
const threshold = THRESHOLD[activeTab];
|
|
1362
|
+
let switcherDate = null;
|
|
1363
|
+
let diff;
|
|
1364
|
+
let scrollToTop;
|
|
1365
|
+
if (activeTab === TABS.DAY || activeTab === TABS.WEEK) {
|
|
1366
|
+
switcherDate = getSwitcherDate({
|
|
1367
|
+
zone,
|
|
1368
|
+
nodes: Array.from(e.target.children),
|
|
1369
|
+
currentScrollTop: scrollTop
|
|
1370
|
+
});
|
|
1371
|
+
}
|
|
1372
|
+
if (scrollTop < threshold && interval.start.year >= MIN_YEAR) {
|
|
1373
|
+
scrollToTop = true;
|
|
1374
|
+
container.scrollTop = threshold;
|
|
1375
|
+
const start = interval.start.plus({ month: -SHIFT[activeTab] });
|
|
1376
|
+
const end = interval.end.plus({ month: -SHIFT[activeTab] });
|
|
1377
|
+
changedState.interval = Interval.fromDateTimes(start, end);
|
|
1378
|
+
changedState.switcherDate = null;
|
|
1379
|
+
diff = changedState.interval.difference(this.state.interval);
|
|
1380
|
+
}
|
|
1381
|
+
if (scrollTop + clientHeight > scrollHeight - threshold && interval.end.year <= MAX_YEAR) {
|
|
1382
|
+
container.scrollTop = scrollHeight - threshold - clientHeight;
|
|
1383
|
+
const start = interval.start.plus({ month: SHIFT[activeTab] });
|
|
1384
|
+
const end = interval.end.plus({ month: SHIFT[activeTab] });
|
|
1385
|
+
changedState.interval = Interval.fromDateTimes(start, end);
|
|
1386
|
+
changedState.switcherDate = null;
|
|
1387
|
+
diff = changedState.interval.difference(this.state.interval);
|
|
1388
|
+
}
|
|
1389
|
+
if (!this.state.switcherDate || switcherDate && this.state.switcherDate && switcherDate.year !== this.state.switcherDate.year) {
|
|
1390
|
+
changedState.switcherDate = switcherDate;
|
|
1391
|
+
}
|
|
1392
|
+
if (Object.keys(changedState).length) {
|
|
1393
|
+
this.setState(changedState, () => {
|
|
1394
|
+
if (changedState.interval && this.isNeedScrollOffsetHandling) {
|
|
1395
|
+
switch (activeTab) {
|
|
1396
|
+
case TABS.DAY:
|
|
1397
|
+
case TABS.WEEK: {
|
|
1398
|
+
let browserOffset = 0;
|
|
1399
|
+
Array.from(container.children).forEach((node) => {
|
|
1400
|
+
const year = node.getAttribute("year");
|
|
1401
|
+
const month = node.getAttribute("month");
|
|
1402
|
+
const dateTime = DateTime.fromObject({
|
|
1403
|
+
zone,
|
|
1404
|
+
year: Number(year),
|
|
1405
|
+
month: Number(month)
|
|
1406
|
+
});
|
|
1407
|
+
if (diff[0].start.startOf("month") <= dateTime && diff[0].end >= dateTime) {
|
|
1408
|
+
browserOffset += node.offsetHeight + MONTH_NARGIN_BOTTOM;
|
|
1409
|
+
}
|
|
1410
|
+
});
|
|
1411
|
+
if (scrollToTop) {
|
|
1412
|
+
this.containerRef.current.scrollTop = browserOffset;
|
|
1413
|
+
} else {
|
|
1414
|
+
this.containerRef.current.scrollTop = this.containerRef.current.scrollHeight - clientHeight - browserOffset;
|
|
1415
|
+
}
|
|
1416
|
+
break;
|
|
1417
|
+
}
|
|
1418
|
+
case TABS.MONTH: {
|
|
1419
|
+
if (scrollToTop) {
|
|
1420
|
+
this.containerRef.current.scrollTop = 317 * 3 - 34;
|
|
1421
|
+
} else {
|
|
1422
|
+
this.containerRef.current.scrollTop = scrollHeight - 317 * 3 - 198;
|
|
1423
|
+
}
|
|
1424
|
+
break;
|
|
1425
|
+
}
|
|
1426
|
+
case TABS.QUARTER: {
|
|
1427
|
+
if (scrollToTop) {
|
|
1428
|
+
this.containerRef.current.scrollTop = this.containerRef.current.scrollHeight / 2 + 74;
|
|
1429
|
+
} else {
|
|
1430
|
+
this.containerRef.current.scrollTop = this.containerRef.current.scrollHeight / 2 - 312;
|
|
1431
|
+
}
|
|
1432
|
+
break;
|
|
1433
|
+
}
|
|
1434
|
+
case TABS.YEAR: {
|
|
1435
|
+
if (scrollToTop) {
|
|
1436
|
+
this.containerRef.current.scrollTop = this.containerRef.current.scrollHeight / 2 + 50;
|
|
1437
|
+
} else {
|
|
1438
|
+
this.containerRef.current.scrollTop = this.containerRef.current.scrollHeight / 2 - 284;
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
});
|
|
1444
|
+
}
|
|
1445
|
+
};
|
|
1446
|
+
scrollTo = () => {
|
|
1447
|
+
const container = this.containerRef.current;
|
|
1448
|
+
const content = this.contentRef.current;
|
|
1449
|
+
if (!content) {
|
|
1450
|
+
return;
|
|
1451
|
+
}
|
|
1452
|
+
const nodeToScroll = content.scrollRef.current;
|
|
1453
|
+
if (!nodeToScroll) {
|
|
1454
|
+
return;
|
|
1455
|
+
}
|
|
1456
|
+
const offset = getOffsetTop(container);
|
|
1457
|
+
container.scrollTop = nodeToScroll.offsetTop - offset;
|
|
1458
|
+
};
|
|
1459
|
+
onSwitcherClick = (middleShift) => {
|
|
1460
|
+
const { zone, activeTab, from } = this.props;
|
|
1461
|
+
let switcherDate = null;
|
|
1462
|
+
if (this.state.switcherDate) {
|
|
1463
|
+
switcherDate = this.state.switcherDate;
|
|
1464
|
+
} else {
|
|
1465
|
+
switcherDate = from ? from : DateTime.fromObject({ zone });
|
|
1466
|
+
}
|
|
1467
|
+
const middle = switcherDate.plus({ month: middleShift });
|
|
1468
|
+
const start = middle.plus({ month: -SHIFT[activeTab] });
|
|
1469
|
+
const end = middle.plus({ month: SHIFT[activeTab] });
|
|
1470
|
+
this.setState(
|
|
1471
|
+
{
|
|
1472
|
+
interval: Interval.fromDateTimes(start, end),
|
|
1473
|
+
switcherDate: middle,
|
|
1474
|
+
switcherClicked: true
|
|
1475
|
+
},
|
|
1476
|
+
() => this.setState({ switcherClicked: false })
|
|
1477
|
+
);
|
|
1478
|
+
};
|
|
1479
|
+
getMouseOverHandler() {
|
|
1480
|
+
const { zone, activeTab, range } = this.props;
|
|
1481
|
+
switch (activeTab) {
|
|
1482
|
+
case TABS.DAY: {
|
|
1483
|
+
return range ? this.onDayMouseOver : null;
|
|
1484
|
+
}
|
|
1485
|
+
case TABS.WEEK: {
|
|
1486
|
+
return this.onWeekMouseOver;
|
|
1487
|
+
}
|
|
1488
|
+
default: {
|
|
1489
|
+
return (e) => {
|
|
1490
|
+
const { from, to, pick } = this.props;
|
|
1491
|
+
const range2 = e.target.getAttribute("range");
|
|
1492
|
+
if (!range2 || !from || !to || !pick) {
|
|
1493
|
+
if (this.state.hovered && !pick) {
|
|
1494
|
+
this.setState({ hovered: void 0 });
|
|
1495
|
+
}
|
|
1496
|
+
return;
|
|
1497
|
+
}
|
|
1498
|
+
const hovered = Interval.fromDateTimes(from, to).union(
|
|
1499
|
+
Interval.fromISO(range2, { zone })
|
|
1500
|
+
);
|
|
1501
|
+
if (!this.state.hovered || !hovered.equals(this.state.hovered)) {
|
|
1502
|
+
this.setState({ hovered });
|
|
1503
|
+
}
|
|
1504
|
+
};
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
onDayMouseOver = (e) => {
|
|
1509
|
+
const { from, to, zone } = this.props;
|
|
1510
|
+
const date = e.target.getAttribute("date");
|
|
1511
|
+
if (!date || !from || to) {
|
|
1512
|
+
if (this.state.hovered && to) {
|
|
1513
|
+
this.setState({ hovered: void 0 });
|
|
1514
|
+
}
|
|
1515
|
+
return;
|
|
1516
|
+
}
|
|
1517
|
+
const dateTime = DateTime.fromISO(date, { zone });
|
|
1518
|
+
let hovered;
|
|
1519
|
+
if (from < dateTime) {
|
|
1520
|
+
hovered = Interval.fromDateTimes(from, dateTime.endOf("day"));
|
|
1521
|
+
} else {
|
|
1522
|
+
hovered = Interval.fromDateTimes(dateTime, from.endOf("day"));
|
|
1523
|
+
}
|
|
1524
|
+
if (!this.state.hovered || !hovered.equals(this.state.hovered)) {
|
|
1525
|
+
this.setState({ hovered });
|
|
1526
|
+
}
|
|
1527
|
+
};
|
|
1528
|
+
onWeekMouseOver = (e) => {
|
|
1529
|
+
const { zone } = this.props;
|
|
1530
|
+
const date = e.target.getAttribute("date");
|
|
1531
|
+
if (!date) {
|
|
1532
|
+
return;
|
|
1533
|
+
}
|
|
1534
|
+
const dateTime = DateTime.fromISO(date, { zone });
|
|
1535
|
+
const monday = dateTime.startOf("week");
|
|
1536
|
+
const sunday = dateTime.endOf("week");
|
|
1537
|
+
const hovered = Interval.fromDateTimes(monday, sunday);
|
|
1538
|
+
if (!this.state.hovered || !hovered.equals(this.state.hovered)) {
|
|
1539
|
+
this.setState({ hovered });
|
|
1540
|
+
}
|
|
1541
|
+
};
|
|
1542
|
+
onMouseLeave = () => {
|
|
1543
|
+
if (this.state.hovered) {
|
|
1544
|
+
this.setState({ hovered: void 0 });
|
|
1545
|
+
}
|
|
1546
|
+
};
|
|
1547
|
+
renderDayContent() {
|
|
1548
|
+
const { zone, activeTab, to, min, max } = this.props;
|
|
1549
|
+
const { switcherDate, hovered } = this.state;
|
|
1550
|
+
const months = [];
|
|
1551
|
+
const from = this.props.from ? this.props.from : DateTime.fromObject({ zone });
|
|
1552
|
+
const isDefaultFrom = !this.props.from;
|
|
1553
|
+
let interval = this.state.interval;
|
|
1554
|
+
let start = interval.start;
|
|
1555
|
+
const selectedInterval = to ? Interval.fromDateTimes(from.startOf("day"), to.endOf("day")) : Interval.fromDateTimes(from.startOf("day"), from.endOf("day"));
|
|
1556
|
+
while (start) {
|
|
1557
|
+
let isNeedScroll;
|
|
1558
|
+
if (switcherDate) {
|
|
1559
|
+
isNeedScroll = switcherDate.month === start.month && switcherDate.year === start.year;
|
|
1560
|
+
} else if (isDefaultFrom && max) {
|
|
1561
|
+
isNeedScroll = max.month === start.month && max.year === start.year;
|
|
1562
|
+
} else {
|
|
1563
|
+
isNeedScroll = from.month === start.month && from.year === start.year;
|
|
1564
|
+
}
|
|
1565
|
+
months.push(
|
|
1566
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1567
|
+
Month,
|
|
1568
|
+
{
|
|
1569
|
+
...isNeedScroll && { ref: this.contentRef },
|
|
1570
|
+
key: `month-${start.month}-${start.year}`,
|
|
1571
|
+
year: start.year,
|
|
1572
|
+
month: start.month,
|
|
1573
|
+
from,
|
|
1574
|
+
to,
|
|
1575
|
+
min: min && min.startOf("day"),
|
|
1576
|
+
max,
|
|
1577
|
+
zone,
|
|
1578
|
+
selectedInterval,
|
|
1579
|
+
hovered,
|
|
1580
|
+
isDefaultFrom,
|
|
1581
|
+
isNeedScroll,
|
|
1582
|
+
onDateClick: this.props.onDateClick,
|
|
1583
|
+
onRangeDateClick: activeTab === TABS.WEEK ? this.props.onRangeDateClick : void 0
|
|
1584
|
+
}
|
|
1585
|
+
)
|
|
1586
|
+
);
|
|
1587
|
+
interval = interval.set({ start: start.plus({ month: 1 }) });
|
|
1588
|
+
start = interval.start;
|
|
1589
|
+
}
|
|
1590
|
+
return months;
|
|
1591
|
+
}
|
|
1592
|
+
renderMonthContent() {
|
|
1593
|
+
const { to, min, max, zone } = this.props;
|
|
1594
|
+
const { hovered, middle } = this.state;
|
|
1595
|
+
const years = [];
|
|
1596
|
+
const from = this.props.from ? this.props.from : DateTime.fromObject({ zone });
|
|
1597
|
+
let interval = this.state.interval;
|
|
1598
|
+
let start = interval.start;
|
|
1599
|
+
const selectedInterval = from && to && Interval.fromDateTimes(from, to);
|
|
1600
|
+
while (start) {
|
|
1601
|
+
const isNeedScroll = middle.year === start.year;
|
|
1602
|
+
years.push(
|
|
1603
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1604
|
+
Months,
|
|
1605
|
+
{
|
|
1606
|
+
...isNeedScroll && { ref: this.contentRef },
|
|
1607
|
+
key: `year-${start.year}`,
|
|
1608
|
+
year: start.year,
|
|
1609
|
+
from,
|
|
1610
|
+
to,
|
|
1611
|
+
min,
|
|
1612
|
+
max,
|
|
1613
|
+
zone,
|
|
1614
|
+
selectedInterval,
|
|
1615
|
+
hovered,
|
|
1616
|
+
isNeedScroll,
|
|
1617
|
+
onRangeDateClick: this.props.onRangeDateClick
|
|
1618
|
+
}
|
|
1619
|
+
)
|
|
1620
|
+
);
|
|
1621
|
+
interval = interval.set({ start: start.plus({ month: 12 }) });
|
|
1622
|
+
start = interval.start;
|
|
1623
|
+
}
|
|
1624
|
+
return years;
|
|
1625
|
+
}
|
|
1626
|
+
renderQuartersContent() {
|
|
1627
|
+
const { to, min, max, zone } = this.props;
|
|
1628
|
+
const { hovered, middle } = this.state;
|
|
1629
|
+
const years = [];
|
|
1630
|
+
const from = this.props.from ? this.props.from : DateTime.fromObject({ zone });
|
|
1631
|
+
let interval = this.state.interval;
|
|
1632
|
+
let start = interval.start;
|
|
1633
|
+
const selectedInterval = from && to && Interval.fromDateTimes(from, to);
|
|
1634
|
+
while (start) {
|
|
1635
|
+
const isNeedScroll = middle.year === start.year;
|
|
1636
|
+
years.push(
|
|
1637
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1638
|
+
Quarters,
|
|
1639
|
+
{
|
|
1640
|
+
...isNeedScroll && { ref: this.contentRef },
|
|
1641
|
+
key: `quarter-year-${start.year}`,
|
|
1642
|
+
year: start.year,
|
|
1643
|
+
from,
|
|
1644
|
+
to,
|
|
1645
|
+
min,
|
|
1646
|
+
max,
|
|
1647
|
+
zone,
|
|
1648
|
+
selectedInterval,
|
|
1649
|
+
hovered,
|
|
1650
|
+
isNeedScroll,
|
|
1651
|
+
onRangeDateClick: this.props.onRangeDateClick
|
|
1652
|
+
}
|
|
1653
|
+
)
|
|
1654
|
+
);
|
|
1655
|
+
interval = interval.set({ start: start.plus({ month: 12 }) });
|
|
1656
|
+
start = interval.start;
|
|
1657
|
+
}
|
|
1658
|
+
return years;
|
|
1659
|
+
}
|
|
1660
|
+
renderYearsContent() {
|
|
1661
|
+
const { to, min, max, zone } = this.props;
|
|
1662
|
+
const { hovered, middle } = this.state;
|
|
1663
|
+
const from = this.props.from ? this.props.from : DateTime.fromObject({ zone });
|
|
1664
|
+
const isDefaultFrom = !this.props.from;
|
|
1665
|
+
const selectedInterval = from && to && Interval.fromDateTimes(from, to);
|
|
1666
|
+
const yearsCount = this.state.interval.length("years");
|
|
1667
|
+
const startYear = this.state.interval.start.year;
|
|
1668
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1669
|
+
Years,
|
|
1670
|
+
{
|
|
1671
|
+
ref: this.contentRef,
|
|
1672
|
+
years: _range(startYear, startYear + yearsCount),
|
|
1673
|
+
from,
|
|
1674
|
+
to,
|
|
1675
|
+
min,
|
|
1676
|
+
max,
|
|
1677
|
+
middle,
|
|
1678
|
+
zone,
|
|
1679
|
+
isDefaultFrom,
|
|
1680
|
+
selectedInterval,
|
|
1681
|
+
hovered,
|
|
1682
|
+
onRangeDateClick: this.props.onRangeDateClick
|
|
1683
|
+
}
|
|
1684
|
+
);
|
|
1685
|
+
}
|
|
1686
|
+
// eslint-disable-next-line consistent-return
|
|
1687
|
+
renderContent() {
|
|
1688
|
+
const { activeTab } = this.props;
|
|
1689
|
+
switch (activeTab) {
|
|
1690
|
+
case TABS.DAY:
|
|
1691
|
+
case TABS.WEEK: {
|
|
1692
|
+
return this.renderDayContent();
|
|
1693
|
+
}
|
|
1694
|
+
case TABS.MONTH: {
|
|
1695
|
+
return this.renderMonthContent();
|
|
1696
|
+
}
|
|
1697
|
+
case TABS.QUARTER: {
|
|
1698
|
+
return this.renderQuartersContent();
|
|
1699
|
+
}
|
|
1700
|
+
case TABS.YEAR: {
|
|
1701
|
+
return this.renderYearsContent();
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
render() {
|
|
1706
|
+
const { activeTab } = this.props;
|
|
1707
|
+
const { switcherDate, switcherOffset } = this.state;
|
|
1708
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1709
|
+
"div",
|
|
1710
|
+
{
|
|
1711
|
+
ref: this.containerRef,
|
|
1712
|
+
className: b$7(),
|
|
1713
|
+
onMouseOver: this.getMouseOverHandler(),
|
|
1714
|
+
onMouseLeave: this.onMouseLeave
|
|
1715
|
+
},
|
|
1716
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1717
|
+
YearSwitcher,
|
|
1718
|
+
{
|
|
1719
|
+
switcherDate,
|
|
1720
|
+
offsetTop: switcherOffset,
|
|
1721
|
+
onShiftMonths: this.onSwitcherClick,
|
|
1722
|
+
visible: activeTab === TABS.DAY || activeTab === TABS.WEEK
|
|
1723
|
+
}
|
|
1724
|
+
),
|
|
1725
|
+
this.renderContent()
|
|
1726
|
+
);
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
const b$6 = block("dl-datepicker-presets");
|
|
1730
|
+
class Presets extends React__default.PureComponent {
|
|
1731
|
+
static propTypes = {
|
|
1732
|
+
zone: PropTypes.string,
|
|
1733
|
+
activeTab: PropTypes.string,
|
|
1734
|
+
range: PropTypes.bool,
|
|
1735
|
+
onRangeDateClick: PropTypes.func
|
|
1736
|
+
};
|
|
1737
|
+
renderPresetItem({ title, start, end }) {
|
|
1738
|
+
const presetTitle = typeof title === "function" ? title() : title;
|
|
1739
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1740
|
+
"div",
|
|
1741
|
+
{
|
|
1742
|
+
key: presetTitle,
|
|
1743
|
+
className: b$6("item"),
|
|
1744
|
+
onClick: () => this.props.onRangeDateClick({
|
|
1745
|
+
start,
|
|
1746
|
+
end,
|
|
1747
|
+
isAllRangePicked: true,
|
|
1748
|
+
scrollCalendar: true
|
|
1749
|
+
})
|
|
1750
|
+
},
|
|
1751
|
+
presetTitle
|
|
1752
|
+
);
|
|
1753
|
+
}
|
|
1754
|
+
render() {
|
|
1755
|
+
const { zone, activeTab, range } = this.props;
|
|
1756
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: b$6() }, getDefaultPreset({ zone, activeTab, range }).map(
|
|
1757
|
+
(preset) => this.renderPresetItem(preset)
|
|
1758
|
+
));
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
const i18n$1 = I18n.keyset("components.common.Datepicker");
|
|
1762
|
+
const b$5 = block("dl-datepicker-popup-content");
|
|
1763
|
+
class PopupContent extends React__default.PureComponent {
|
|
1764
|
+
static propTypes = {
|
|
1765
|
+
from: PropTypes.object,
|
|
1766
|
+
to: PropTypes.object,
|
|
1767
|
+
min: PropTypes.object,
|
|
1768
|
+
max: PropTypes.object,
|
|
1769
|
+
zone: PropTypes.string,
|
|
1770
|
+
activeTab: PropTypes.string,
|
|
1771
|
+
mod: PropTypes.string,
|
|
1772
|
+
pick: PropTypes.number,
|
|
1773
|
+
range: PropTypes.bool,
|
|
1774
|
+
scrollCalendar: PropTypes.bool,
|
|
1775
|
+
showTabs: PropTypes.bool,
|
|
1776
|
+
showApply: PropTypes.bool,
|
|
1777
|
+
onDateClick: PropTypes.func,
|
|
1778
|
+
onRangeDateClick: PropTypes.func,
|
|
1779
|
+
onSelectTab: PropTypes.func,
|
|
1780
|
+
onSubmit: PropTypes.func
|
|
1781
|
+
};
|
|
1782
|
+
render() {
|
|
1783
|
+
const {
|
|
1784
|
+
from,
|
|
1785
|
+
to,
|
|
1786
|
+
min,
|
|
1787
|
+
max,
|
|
1788
|
+
zone,
|
|
1789
|
+
activeTab,
|
|
1790
|
+
mod,
|
|
1791
|
+
pick,
|
|
1792
|
+
range,
|
|
1793
|
+
scrollCalendar,
|
|
1794
|
+
showTabs,
|
|
1795
|
+
showApply
|
|
1796
|
+
} = this.props;
|
|
1797
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: b$5(null, mod) }, showTabs && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: b$5("tabs") }, /* @__PURE__ */ React__default.createElement(TabProvider, { value: activeTab, onUpdate: this.props.onSelectTab }, /* @__PURE__ */ React__default.createElement(TabList, null, getTabs().map((item) => /* @__PURE__ */ React__default.createElement(Tab, { key: item.id, value: item.id }, item.title))))), range && /* @__PURE__ */ React__default.createElement(
|
|
1798
|
+
Presets,
|
|
1799
|
+
{
|
|
1800
|
+
zone,
|
|
1801
|
+
activeTab,
|
|
1802
|
+
range,
|
|
1803
|
+
onRangeDateClick: this.props.onRangeDateClick
|
|
1804
|
+
}
|
|
1805
|
+
)), /* @__PURE__ */ React__default.createElement(
|
|
1806
|
+
Calendar,
|
|
1807
|
+
{
|
|
1808
|
+
from,
|
|
1809
|
+
to,
|
|
1810
|
+
min,
|
|
1811
|
+
max,
|
|
1812
|
+
zone,
|
|
1813
|
+
activeTab,
|
|
1814
|
+
pick,
|
|
1815
|
+
range,
|
|
1816
|
+
scrollCalendar,
|
|
1817
|
+
onDateClick: this.props.onDateClick,
|
|
1818
|
+
onRangeDateClick: this.props.onRangeDateClick
|
|
1819
|
+
}
|
|
1820
|
+
), showApply && /* @__PURE__ */ React__default.createElement("div", { className: b$5("apply-btn") }, /* @__PURE__ */ React__default.createElement(Button, { view: "action", size: "l", width: "max", onClick: this.props.onSubmit }, i18n$1("apply_button_text"))));
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
const i18n = I18n.keyset("components.common.Datepicker");
|
|
1824
|
+
const b$4 = block("dl-datepicker");
|
|
1825
|
+
const dateType = PropTypes.oneOfType([PropTypes.string, PropTypes.number]);
|
|
1826
|
+
const getModifier$1 = (name) => b$4({ [name]: true }).split(" ")[1];
|
|
1827
|
+
const datepickerDefaultProps = {
|
|
1828
|
+
format: DISPLAY_FORMAT.DATE,
|
|
1829
|
+
outputFormat: OUTPUT_FORMAT.DATETIME,
|
|
1830
|
+
range: true,
|
|
1831
|
+
allowNullableValues: false,
|
|
1832
|
+
showApply: false,
|
|
1833
|
+
hasClear: true,
|
|
1834
|
+
disabled: false,
|
|
1835
|
+
controlSize: "m",
|
|
1836
|
+
fillPartialInterval: false
|
|
1837
|
+
};
|
|
1838
|
+
class Datepicker extends React__default.PureComponent {
|
|
1839
|
+
static propTypes = {
|
|
1840
|
+
onUpdate: PropTypes.func.isRequired,
|
|
1841
|
+
onError: PropTypes.func,
|
|
1842
|
+
from: dateType,
|
|
1843
|
+
to: dateType,
|
|
1844
|
+
min: dateType,
|
|
1845
|
+
max: dateType,
|
|
1846
|
+
format: PropTypes.string,
|
|
1847
|
+
emptyValueText: PropTypes.string,
|
|
1848
|
+
placeholder: PropTypes.string,
|
|
1849
|
+
timezoneOffset: PropTypes.number,
|
|
1850
|
+
outputFormat: PropTypes.oneOf([OUTPUT_FORMAT.DATE, OUTPUT_FORMAT.DATETIME]),
|
|
1851
|
+
scale: PropTypes.oneOf([TABS.DAY, TABS.WEEK, TABS.MONTH, TABS.QUARTER, TABS.YEAR]),
|
|
1852
|
+
controlWidth: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
1853
|
+
range: PropTypes.bool,
|
|
1854
|
+
allowNullableValues: PropTypes.bool,
|
|
1855
|
+
showApply: PropTypes.bool,
|
|
1856
|
+
hasClear: PropTypes.bool,
|
|
1857
|
+
disabled: PropTypes.bool,
|
|
1858
|
+
controlSize: PropTypes.oneOf(["s", "m", "l", "xl"]),
|
|
1859
|
+
className: PropTypes.string,
|
|
1860
|
+
popupClassName: PropTypes.string,
|
|
1861
|
+
required: PropTypes.bool,
|
|
1862
|
+
hasValidationError: PropTypes.bool,
|
|
1863
|
+
fillPartialInterval: PropTypes.bool,
|
|
1864
|
+
label: PropTypes.string
|
|
1865
|
+
};
|
|
1866
|
+
static defaultProps = datepickerDefaultProps;
|
|
1867
|
+
static getDerivedStateFromProps(props, state) {
|
|
1868
|
+
const changedState = {};
|
|
1869
|
+
const zone = getZone(props.timezoneOffset);
|
|
1870
|
+
if (props.from !== state.prevProps.from || props.to !== state.prevProps.to || props.timezoneOffset !== state.prevProps.timezoneOffset) {
|
|
1871
|
+
changedState.from = createDateTime({ date: props.from, zone });
|
|
1872
|
+
changedState.to = createDateTime({ date: props.to, zone });
|
|
1873
|
+
[changedState.from, changedState.to] = resolveDates({
|
|
1874
|
+
from: changedState.from,
|
|
1875
|
+
to: changedState.to
|
|
1876
|
+
});
|
|
1877
|
+
changedState.searchText = getSearchText({
|
|
1878
|
+
from: changedState.from,
|
|
1879
|
+
to: changedState.to,
|
|
1880
|
+
format: props.format,
|
|
1881
|
+
emptyValueText: props.emptyValueText,
|
|
1882
|
+
range: props.range,
|
|
1883
|
+
required: props.required
|
|
1884
|
+
});
|
|
1885
|
+
changedState.zone = zone;
|
|
1886
|
+
changedState.lastValidHash = getHashedData({
|
|
1887
|
+
from: changedState.from,
|
|
1888
|
+
to: changedState.to
|
|
1889
|
+
});
|
|
1890
|
+
}
|
|
1891
|
+
if (props.min !== state.prevProps.min) {
|
|
1892
|
+
const min = createDateTime({ date: props.min, zone });
|
|
1893
|
+
changedState.min = isValidDate(min) ? min : void 0;
|
|
1894
|
+
}
|
|
1895
|
+
if (props.max !== state.prevProps.max) {
|
|
1896
|
+
const max = createDateTime({ date: props.max, zone });
|
|
1897
|
+
changedState.max = isValidDate(max) ? max : void 0;
|
|
1898
|
+
}
|
|
1899
|
+
if (props.disabled && !state.prevProps.disabled) {
|
|
1900
|
+
changedState.error = "";
|
|
1901
|
+
}
|
|
1902
|
+
changedState.prevProps = props;
|
|
1903
|
+
return changedState;
|
|
1904
|
+
}
|
|
1905
|
+
constructor(props) {
|
|
1906
|
+
super(props);
|
|
1907
|
+
const { format, timezoneOffset, emptyValueText, range, required } = this.props;
|
|
1908
|
+
const zone = getZone(timezoneOffset);
|
|
1909
|
+
let from = createDateTime({ date: this.props.from, zone });
|
|
1910
|
+
let to = createDateTime({ date: this.props.to, zone });
|
|
1911
|
+
const min = createDateTime({ date: this.props.min, zone });
|
|
1912
|
+
const max = createDateTime({ date: this.props.max, zone });
|
|
1913
|
+
[from, to] = resolveDates({ from, to });
|
|
1914
|
+
const searchText = getSearchText({
|
|
1915
|
+
from,
|
|
1916
|
+
to,
|
|
1917
|
+
format,
|
|
1918
|
+
emptyValueText,
|
|
1919
|
+
range,
|
|
1920
|
+
required
|
|
1921
|
+
});
|
|
1922
|
+
this.ControlNodeRef = React__default.createRef();
|
|
1923
|
+
this.state = {
|
|
1924
|
+
searchText,
|
|
1925
|
+
from,
|
|
1926
|
+
to,
|
|
1927
|
+
zone,
|
|
1928
|
+
min: isValidDate(min) ? min : void 0,
|
|
1929
|
+
max: isValidDate(max) ? max : void 0,
|
|
1930
|
+
lastValidHash: getHashedData({ from, to }),
|
|
1931
|
+
prevProps: this.props,
|
|
1932
|
+
activeTab: "day",
|
|
1933
|
+
pick: 0,
|
|
1934
|
+
error: "",
|
|
1935
|
+
active: false
|
|
1936
|
+
};
|
|
1937
|
+
}
|
|
1938
|
+
static SCALE = TABS;
|
|
1939
|
+
static DISPLAY_FORMAT = DISPLAY_FORMAT;
|
|
1940
|
+
static OUTPUT_FORMAT = OUTPUT_FORMAT;
|
|
1941
|
+
get placeholder() {
|
|
1942
|
+
const { format, range, placeholder } = this.props;
|
|
1943
|
+
if (placeholder) {
|
|
1944
|
+
return placeholder;
|
|
1945
|
+
}
|
|
1946
|
+
const placeholderPart = getPlaceholder(format);
|
|
1947
|
+
return `${placeholderPart}${range ? ` - ${placeholderPart}` : ""}`;
|
|
1948
|
+
}
|
|
1949
|
+
isInvalidState() {
|
|
1950
|
+
const { range, allowNullableValues } = this.props;
|
|
1951
|
+
const { invalidInput, from, to } = this.state;
|
|
1952
|
+
if (allowNullableValues) {
|
|
1953
|
+
return invalidInput;
|
|
1954
|
+
}
|
|
1955
|
+
if (range) {
|
|
1956
|
+
return !from || !to || invalidInput;
|
|
1957
|
+
}
|
|
1958
|
+
return !from || invalidInput;
|
|
1959
|
+
}
|
|
1960
|
+
getErrorText() {
|
|
1961
|
+
const { range, onError } = this.props;
|
|
1962
|
+
if (!this.isInvalidState() || onError) {
|
|
1963
|
+
return "";
|
|
1964
|
+
}
|
|
1965
|
+
return range ? i18n("error_dates_range") : i18n("error_date");
|
|
1966
|
+
}
|
|
1967
|
+
onSelectTab = (activeTab) => {
|
|
1968
|
+
this.setState({
|
|
1969
|
+
activeTab,
|
|
1970
|
+
pick: 0
|
|
1971
|
+
});
|
|
1972
|
+
};
|
|
1973
|
+
onDateClick = ({ dateTime }) => {
|
|
1974
|
+
const state = {
|
|
1975
|
+
pick: 0,
|
|
1976
|
+
error: "",
|
|
1977
|
+
invalidInput: false,
|
|
1978
|
+
scrollCalendar: false
|
|
1979
|
+
};
|
|
1980
|
+
if (this.state.from && this.state.to || this.state.from && !this.props.range) {
|
|
1981
|
+
state.from = dateTime;
|
|
1982
|
+
state.to = void 0;
|
|
1983
|
+
} else if (!this.state.from && !this.state.to) {
|
|
1984
|
+
state.from = dateTime;
|
|
1985
|
+
} else {
|
|
1986
|
+
const isStartBeforeDateTime = this.state.from < dateTime;
|
|
1987
|
+
if (isStartBeforeDateTime) {
|
|
1988
|
+
state.from = this.state.from;
|
|
1989
|
+
state.to = dateTime;
|
|
1990
|
+
} else {
|
|
1991
|
+
state.from = dateTime;
|
|
1992
|
+
state.to = this.state.from;
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
if (state.to) {
|
|
1996
|
+
state.to = state.to.endOf("day");
|
|
1997
|
+
}
|
|
1998
|
+
state.searchText = getSearchText({
|
|
1999
|
+
from: state.from,
|
|
2000
|
+
to: state.to,
|
|
2001
|
+
format: this.props.format,
|
|
2002
|
+
emptyValueText: this.props.emptyValueText,
|
|
2003
|
+
range: this.props.range,
|
|
2004
|
+
required: this.props.required
|
|
2005
|
+
});
|
|
2006
|
+
this.setState(state, () => {
|
|
2007
|
+
const { range, showApply } = this.props;
|
|
2008
|
+
const { from, to } = this.state;
|
|
2009
|
+
if (!showApply && range && from && to || !showApply && !range && from) {
|
|
2010
|
+
this.onUpdate();
|
|
2011
|
+
}
|
|
2012
|
+
});
|
|
2013
|
+
};
|
|
2014
|
+
onRangeDateClick = ({ start, end, isAllRangePicked, scrollCalendar }) => {
|
|
2015
|
+
const { range } = this.props;
|
|
2016
|
+
let pick = this.state.pick + 1;
|
|
2017
|
+
let from, to;
|
|
2018
|
+
switch (true) {
|
|
2019
|
+
case (pick === 1 || isAllRangePicked || !range): {
|
|
2020
|
+
from = start;
|
|
2021
|
+
to = end;
|
|
2022
|
+
if (isAllRangePicked || !range) {
|
|
2023
|
+
pick = 0;
|
|
2024
|
+
}
|
|
2025
|
+
break;
|
|
2026
|
+
}
|
|
2027
|
+
case pick === 2: {
|
|
2028
|
+
const dates = getListWithoutNullableValues(
|
|
2029
|
+
start,
|
|
2030
|
+
end,
|
|
2031
|
+
this.state.from,
|
|
2032
|
+
this.state.to
|
|
2033
|
+
);
|
|
2034
|
+
from = DateTime.min(...dates);
|
|
2035
|
+
to = DateTime.max(...dates);
|
|
2036
|
+
pick = 0;
|
|
2037
|
+
break;
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
if (to) {
|
|
2041
|
+
to = to.endOf("day");
|
|
2042
|
+
}
|
|
2043
|
+
const searchText = getSearchText({
|
|
2044
|
+
from,
|
|
2045
|
+
to,
|
|
2046
|
+
format: this.props.format,
|
|
2047
|
+
emptyValueText: this.props.emptyValueText,
|
|
2048
|
+
range: this.props.range,
|
|
2049
|
+
required: this.props.required
|
|
2050
|
+
});
|
|
2051
|
+
this.setState(
|
|
2052
|
+
{
|
|
2053
|
+
searchText,
|
|
2054
|
+
pick,
|
|
2055
|
+
from,
|
|
2056
|
+
to,
|
|
2057
|
+
scrollCalendar,
|
|
2058
|
+
error: "",
|
|
2059
|
+
invalidInput: false
|
|
2060
|
+
},
|
|
2061
|
+
() => {
|
|
2062
|
+
const { showApply } = this.props;
|
|
2063
|
+
const { from: from2, to: to2, pick: pick2 } = this.state;
|
|
2064
|
+
if (!showApply && from2 && to2 && pick2 === 0) {
|
|
2065
|
+
this.onUpdate();
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
);
|
|
2069
|
+
};
|
|
2070
|
+
onInputUpdate = (searchText) => {
|
|
2071
|
+
const { format, range } = this.props;
|
|
2072
|
+
const { zone } = this.state;
|
|
2073
|
+
const dates = searchText.split(/\s-\s?/);
|
|
2074
|
+
let from;
|
|
2075
|
+
let to;
|
|
2076
|
+
let isFromValid = true;
|
|
2077
|
+
let isToValid = true;
|
|
2078
|
+
if (dates[0]) {
|
|
2079
|
+
from = DateTime.fromFormat(dates[0].trim(), format, { zone });
|
|
2080
|
+
isFromValid = isValidDate(from);
|
|
2081
|
+
}
|
|
2082
|
+
if (dates[1] && dates[1] !== this.props.emptyValueText) {
|
|
2083
|
+
to = DateTime.fromFormat(dates[1].trim(), format, { zone });
|
|
2084
|
+
isToValid = isValidDate(to);
|
|
2085
|
+
}
|
|
2086
|
+
if (range) {
|
|
2087
|
+
[from, to] = resolveDates({ from, to });
|
|
2088
|
+
if (to && !hasTimeUnitsInFormat(format)) {
|
|
2089
|
+
to = to.endOf("day");
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
2092
|
+
if (!isFromValid || !isToValid) {
|
|
2093
|
+
this.setState({
|
|
2094
|
+
searchText,
|
|
2095
|
+
invalidInput: true
|
|
2096
|
+
});
|
|
2097
|
+
return;
|
|
2098
|
+
}
|
|
2099
|
+
const resetPickCounter = !searchText || range && !to;
|
|
2100
|
+
this.setState(
|
|
2101
|
+
{
|
|
2102
|
+
searchText,
|
|
2103
|
+
from,
|
|
2104
|
+
to: range ? to : void 0,
|
|
2105
|
+
error: "",
|
|
2106
|
+
invalidInput: false,
|
|
2107
|
+
...resetPickCounter ? { pick: 0 } : {}
|
|
2108
|
+
},
|
|
2109
|
+
() => {
|
|
2110
|
+
if (!from && !to) {
|
|
2111
|
+
this.ControlNodeRef.current.focus();
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2114
|
+
);
|
|
2115
|
+
};
|
|
2116
|
+
onInputKeyPress = (e) => {
|
|
2117
|
+
switch (e.key) {
|
|
2118
|
+
case "Enter": {
|
|
2119
|
+
this.ControlNodeRef.current.blur();
|
|
2120
|
+
this.onUpdate();
|
|
2121
|
+
break;
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
};
|
|
2125
|
+
onInputFocus = () => {
|
|
2126
|
+
if (!this.state.active) {
|
|
2127
|
+
this.setState({ active: true });
|
|
2128
|
+
}
|
|
2129
|
+
};
|
|
2130
|
+
onClose = () => {
|
|
2131
|
+
if (document.activeElement === this.ControlNodeRef.current) {
|
|
2132
|
+
return;
|
|
2133
|
+
}
|
|
2134
|
+
const { format, emptyValueText, range, required } = this.props;
|
|
2135
|
+
const { from, to, lastValidHash } = this.state;
|
|
2136
|
+
const currentHash = getHashedData({ from, to });
|
|
2137
|
+
if (lastValidHash === currentHash) {
|
|
2138
|
+
const searchText = getSearchText({
|
|
2139
|
+
from,
|
|
2140
|
+
to,
|
|
2141
|
+
format,
|
|
2142
|
+
emptyValueText,
|
|
2143
|
+
range,
|
|
2144
|
+
required
|
|
2145
|
+
});
|
|
2146
|
+
this.setState({ searchText, active: false });
|
|
2147
|
+
} else {
|
|
2148
|
+
this.onUpdate();
|
|
2149
|
+
}
|
|
2150
|
+
};
|
|
2151
|
+
onUpdate = () => {
|
|
2152
|
+
const { allowNullableValues, onError, fillPartialInterval } = this.props;
|
|
2153
|
+
const { min, max } = this.state;
|
|
2154
|
+
if (this.isInvalidState()) {
|
|
2155
|
+
this.setState(
|
|
2156
|
+
{
|
|
2157
|
+
error: this.getErrorText(),
|
|
2158
|
+
active: false
|
|
2159
|
+
},
|
|
2160
|
+
() => onError && onError()
|
|
2161
|
+
);
|
|
2162
|
+
return;
|
|
2163
|
+
}
|
|
2164
|
+
let from = this.state.from;
|
|
2165
|
+
let to = this.state.to;
|
|
2166
|
+
if (min && from && from < min) {
|
|
2167
|
+
from = min;
|
|
2168
|
+
}
|
|
2169
|
+
if (min && to && from < min) {
|
|
2170
|
+
to = min;
|
|
2171
|
+
}
|
|
2172
|
+
if (max && from && from > max) {
|
|
2173
|
+
from = max;
|
|
2174
|
+
}
|
|
2175
|
+
if (max && to && to > max) {
|
|
2176
|
+
to = max;
|
|
2177
|
+
}
|
|
2178
|
+
[from, to] = resolveDates({ from, to });
|
|
2179
|
+
if (fillPartialInterval && from && !to) {
|
|
2180
|
+
to = fillEmptyToDate(from);
|
|
2181
|
+
}
|
|
2182
|
+
const searchText = getSearchText({
|
|
2183
|
+
from,
|
|
2184
|
+
to,
|
|
2185
|
+
format: this.props.format,
|
|
2186
|
+
emptyValueText: this.props.emptyValueText,
|
|
2187
|
+
range: this.props.range,
|
|
2188
|
+
required: this.props.required
|
|
2189
|
+
});
|
|
2190
|
+
this.ControlNodeRef.current.blur();
|
|
2191
|
+
const showSearchText = Boolean(allowNullableValues || from && to);
|
|
2192
|
+
this.setState(
|
|
2193
|
+
{
|
|
2194
|
+
from,
|
|
2195
|
+
to,
|
|
2196
|
+
active: false,
|
|
2197
|
+
lastValidHash: getHashedData({ from, to }),
|
|
2198
|
+
...showSearchText ? { searchText } : {}
|
|
2199
|
+
},
|
|
2200
|
+
() => {
|
|
2201
|
+
const { range, outputFormat } = this.props;
|
|
2202
|
+
let outputFrom = null;
|
|
2203
|
+
let outputTo = null;
|
|
2204
|
+
if (from) {
|
|
2205
|
+
outputFrom = outputFormat === OUTPUT_FORMAT.DATE ? from.toISODate() : from.toISO();
|
|
2206
|
+
}
|
|
2207
|
+
if (range && to) {
|
|
2208
|
+
outputTo = outputFormat === OUTPUT_FORMAT.DATE ? to.toISODate() : to.toISO();
|
|
2209
|
+
}
|
|
2210
|
+
this.props.onUpdate({
|
|
2211
|
+
from: outputFrom,
|
|
2212
|
+
to: outputTo
|
|
2213
|
+
});
|
|
2214
|
+
}
|
|
2215
|
+
);
|
|
2216
|
+
};
|
|
2217
|
+
renderContent(mobile) {
|
|
2218
|
+
const { scale, range, showApply } = this.props;
|
|
2219
|
+
const { from, to, min, max, zone, activeTab, pick, scrollCalendar } = this.state;
|
|
2220
|
+
const mod = mobile ? getModifier$1("mobile") : getModifier$1("desktop");
|
|
2221
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2222
|
+
PopupContent,
|
|
2223
|
+
{
|
|
2224
|
+
from,
|
|
2225
|
+
to,
|
|
2226
|
+
min,
|
|
2227
|
+
max,
|
|
2228
|
+
zone,
|
|
2229
|
+
activeTab: scale || activeTab,
|
|
2230
|
+
mod,
|
|
2231
|
+
pick,
|
|
2232
|
+
range,
|
|
2233
|
+
scrollCalendar,
|
|
2234
|
+
showTabs: !scale,
|
|
2235
|
+
showApply,
|
|
2236
|
+
onDateClick: this.onDateClick,
|
|
2237
|
+
onRangeDateClick: this.onRangeDateClick,
|
|
2238
|
+
onSelectTab: this.onSelectTab,
|
|
2239
|
+
onSubmit: this.onUpdate
|
|
2240
|
+
}
|
|
2241
|
+
);
|
|
2242
|
+
}
|
|
2243
|
+
render() {
|
|
2244
|
+
const {
|
|
2245
|
+
controlWidth,
|
|
2246
|
+
hasClear,
|
|
2247
|
+
disabled,
|
|
2248
|
+
controlSize,
|
|
2249
|
+
className,
|
|
2250
|
+
popupClassName,
|
|
2251
|
+
hasValidationError,
|
|
2252
|
+
label
|
|
2253
|
+
} = this.props;
|
|
2254
|
+
const { searchText, active, error, from } = this.state;
|
|
2255
|
+
const hasPlaceholderError = hasValidationError && !from;
|
|
2256
|
+
return /* @__PURE__ */ React__default.createElement(MobileContext.Consumer, null, ({ mobile }) => /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2257
|
+
"div",
|
|
2258
|
+
{
|
|
2259
|
+
className: b$4("control", className),
|
|
2260
|
+
...controlWidth ? {
|
|
2261
|
+
style: {
|
|
2262
|
+
width: controlWidth
|
|
2263
|
+
}
|
|
2264
|
+
} : {}
|
|
2265
|
+
},
|
|
2266
|
+
/* @__PURE__ */ React__default.createElement(FieldWrapper, { error }, /* @__PURE__ */ React__default.createElement(
|
|
2267
|
+
TextInput,
|
|
2268
|
+
{
|
|
2269
|
+
value: searchText,
|
|
2270
|
+
size: controlSize,
|
|
2271
|
+
placeholder: this.placeholder,
|
|
2272
|
+
hasClear: hasClear && !mobile,
|
|
2273
|
+
disabled,
|
|
2274
|
+
onUpdate: this.onInputUpdate,
|
|
2275
|
+
onFocus: this.onInputFocus,
|
|
2276
|
+
onKeyDown: this.onInputKeyPress,
|
|
2277
|
+
controlRef: this.ControlNodeRef,
|
|
2278
|
+
error: hasValidationError,
|
|
2279
|
+
controlProps: {
|
|
2280
|
+
className: b$4("input", { error: hasPlaceholderError })
|
|
2281
|
+
},
|
|
2282
|
+
label
|
|
2283
|
+
}
|
|
2284
|
+
), mobile && /* @__PURE__ */ React__default.createElement(
|
|
2285
|
+
"div",
|
|
2286
|
+
{
|
|
2287
|
+
className: b$4("control-veil"),
|
|
2288
|
+
onClick: this.onInputFocus
|
|
2289
|
+
}
|
|
2290
|
+
))
|
|
2291
|
+
), mobile ? /* @__PURE__ */ React__default.createElement(
|
|
2292
|
+
Sheet,
|
|
2293
|
+
{
|
|
2294
|
+
id: "datepicker",
|
|
2295
|
+
visible: active && !disabled,
|
|
2296
|
+
contentClassName: b$4("sheet"),
|
|
2297
|
+
allowHideOnContentScroll: false,
|
|
2298
|
+
onClose: this.onClose
|
|
2299
|
+
},
|
|
2300
|
+
this.renderContent(mobile)
|
|
2301
|
+
) : /* @__PURE__ */ React__default.createElement(
|
|
2302
|
+
Popup,
|
|
2303
|
+
{
|
|
2304
|
+
contentClassName: b$4("popup", popupClassName),
|
|
2305
|
+
open: active && !disabled,
|
|
2306
|
+
anchorElement: this.ControlNodeRef.current,
|
|
2307
|
+
placement: AVAILABLE_POPUP_PLACEMENT,
|
|
2308
|
+
onOpenChange: (open) => {
|
|
2309
|
+
if (!open) {
|
|
2310
|
+
this.onClose();
|
|
2311
|
+
}
|
|
2312
|
+
},
|
|
2313
|
+
returnFocus: false
|
|
2314
|
+
},
|
|
2315
|
+
/* @__PURE__ */ React__default.createElement("div", { className: b$4("popup-content") }, this.renderContent(mobile))
|
|
2316
|
+
)));
|
|
2317
|
+
}
|
|
2318
|
+
}
|
|
2319
|
+
const DatepickerControl = ({ widgetId: _id, ...otherProps }) => {
|
|
2320
|
+
return /* @__PURE__ */ jsx(Datepicker, { ...otherProps });
|
|
2321
|
+
};
|
|
2322
|
+
const trans$4 = I18n.keyset("components.common.YCSelect");
|
|
2323
|
+
const MULTIPLE_MIN_WIDTH = 150;
|
|
2324
|
+
const WITH_SEARCH_MIN_WIDTH = 170;
|
|
2325
|
+
const WITH_SEARCH_MULTIPLE_MIN_WIDTH = 200;
|
|
2326
|
+
function checkBrowser() {
|
|
2327
|
+
const agent = navigator.userAgent;
|
|
2328
|
+
if (agent.indexOf("Firefox") !== -1 && parseFloat(agent.substring(agent.indexOf("Firefox") + 8)) >= 3.6) {
|
|
2329
|
+
return "Firefox";
|
|
2330
|
+
} else if (agent.indexOf("Safari") !== -1 && agent.indexOf("Version") !== -1 && parseFloat(agent.substring(agent.indexOf("Version") + 8).split(" ")[0]) >= 5) {
|
|
2331
|
+
return "Safari";
|
|
2332
|
+
}
|
|
2333
|
+
return "Good Browser";
|
|
2334
|
+
}
|
|
2335
|
+
function getEscapedRegExp(string) {
|
|
2336
|
+
return new RegExp(string.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), "i");
|
|
2337
|
+
}
|
|
2338
|
+
function getTitleValue(title) {
|
|
2339
|
+
if (title === null) {
|
|
2340
|
+
return trans$4("null");
|
|
2341
|
+
}
|
|
2342
|
+
if (title === "") {
|
|
2343
|
+
return trans$4("empty_string");
|
|
2344
|
+
}
|
|
2345
|
+
return title;
|
|
2346
|
+
}
|
|
2347
|
+
function isFalsy(value) {
|
|
2348
|
+
return !value && value !== 0;
|
|
2349
|
+
}
|
|
2350
|
+
function getPossiblePopupMinWidth({ withSearch, multiple }) {
|
|
2351
|
+
let possibleMinWidth;
|
|
2352
|
+
if (withSearch && multiple) {
|
|
2353
|
+
possibleMinWidth = WITH_SEARCH_MULTIPLE_MIN_WIDTH;
|
|
2354
|
+
} else if (withSearch) {
|
|
2355
|
+
possibleMinWidth = WITH_SEARCH_MIN_WIDTH;
|
|
2356
|
+
} else if (multiple) {
|
|
2357
|
+
possibleMinWidth = MULTIPLE_MIN_WIDTH;
|
|
2358
|
+
}
|
|
2359
|
+
return possibleMinWidth;
|
|
2360
|
+
}
|
|
2361
|
+
const trans$3 = I18n.keyset("components.common.YCSelect");
|
|
2362
|
+
const b$3 = block("yc-select-item");
|
|
2363
|
+
const bWrap = block("yc-select-item-wrap");
|
|
2364
|
+
const ACTION_WIDTH = 80;
|
|
2365
|
+
const DESKTOP_TICK_ICON_SIZE = 16;
|
|
2366
|
+
const MOBILE_TICK_ICON_SIZE = 14;
|
|
2367
|
+
const SWIPE_DIR = {
|
|
2368
|
+
LEFT: "left",
|
|
2369
|
+
RIGHT: "right"
|
|
2370
|
+
};
|
|
2371
|
+
class Item extends React__default.PureComponent {
|
|
2372
|
+
static propTypes = {
|
|
2373
|
+
onItemClick: PropTypes.func,
|
|
2374
|
+
selectOnlyCurrentItem: PropTypes.func,
|
|
2375
|
+
getTouchedItem: PropTypes.func,
|
|
2376
|
+
setTouchedItem: PropTypes.func,
|
|
2377
|
+
selectType: PropTypes.string,
|
|
2378
|
+
showItemIcon: PropTypes.bool,
|
|
2379
|
+
showItemMeta: PropTypes.bool,
|
|
2380
|
+
isSelected: PropTypes.bool,
|
|
2381
|
+
mobile: PropTypes.bool,
|
|
2382
|
+
item: PropTypes.object,
|
|
2383
|
+
selectedCurrentItem: PropTypes.object,
|
|
2384
|
+
style: PropTypes.object
|
|
2385
|
+
};
|
|
2386
|
+
state = {
|
|
2387
|
+
startX: 0,
|
|
2388
|
+
deltaX: 0,
|
|
2389
|
+
actionNodes: [],
|
|
2390
|
+
swipeDirection: null,
|
|
2391
|
+
opening: false
|
|
2392
|
+
};
|
|
2393
|
+
componentDidMount() {
|
|
2394
|
+
const actionNodes = [];
|
|
2395
|
+
if (this._linkButtonRef.current) {
|
|
2396
|
+
actionNodes.push(this._linkButtonRef.current);
|
|
2397
|
+
}
|
|
2398
|
+
if (this._onlyButtonRef.current) {
|
|
2399
|
+
actionNodes.push(this._onlyButtonRef.current);
|
|
2400
|
+
}
|
|
2401
|
+
this.setState({ actionNodes });
|
|
2402
|
+
}
|
|
2403
|
+
_itemRef = React__default.createRef();
|
|
2404
|
+
_onlyButtonRef = React__default.createRef();
|
|
2405
|
+
_linkButtonRef = React__default.createRef();
|
|
2406
|
+
_publishEvent = eventBroker.withEventPublisher("Select");
|
|
2407
|
+
get height() {
|
|
2408
|
+
if (this._itemRef.current) {
|
|
2409
|
+
return this._itemRef.current.getBoundingClientRect().height;
|
|
2410
|
+
}
|
|
2411
|
+
return void 0;
|
|
2412
|
+
}
|
|
2413
|
+
get prevLeft() {
|
|
2414
|
+
if (this._itemRef.current && this._itemRef.current.style.left) {
|
|
2415
|
+
return parseFloat(this._itemRef.current.style.left);
|
|
2416
|
+
}
|
|
2417
|
+
return 0;
|
|
2418
|
+
}
|
|
2419
|
+
_handleTouchedItem = () => {
|
|
2420
|
+
const { item, actions } = this.props.getTouchedItem();
|
|
2421
|
+
if (item && item !== this._itemRef.current) {
|
|
2422
|
+
item.style.left = "0px";
|
|
2423
|
+
actions.forEach((node) => {
|
|
2424
|
+
node.style.right = `${-ACTION_WIDTH}px`;
|
|
2425
|
+
});
|
|
2426
|
+
}
|
|
2427
|
+
this.props.setTouchedItem({
|
|
2428
|
+
item: this._itemRef.current,
|
|
2429
|
+
actions: this.state.actionNodes
|
|
2430
|
+
});
|
|
2431
|
+
};
|
|
2432
|
+
_handleItemMovement = (deltaX) => {
|
|
2433
|
+
const { actionNodes, opening } = this.state;
|
|
2434
|
+
const preparedDeltaX = deltaX * actionNodes.length;
|
|
2435
|
+
let left;
|
|
2436
|
+
if (opening) {
|
|
2437
|
+
left = preparedDeltaX;
|
|
2438
|
+
if (left > 0) {
|
|
2439
|
+
left = 0;
|
|
2440
|
+
} else if (Math.abs(left) > actionNodes.length * ACTION_WIDTH) {
|
|
2441
|
+
left = -actionNodes.length * ACTION_WIDTH;
|
|
2442
|
+
}
|
|
2443
|
+
} else {
|
|
2444
|
+
left = -actionNodes.length * ACTION_WIDTH + preparedDeltaX;
|
|
2445
|
+
if (left > 0) {
|
|
2446
|
+
left = 0;
|
|
2447
|
+
} else if (left < -actionNodes.length * ACTION_WIDTH) {
|
|
2448
|
+
left = -actionNodes.length * ACTION_WIDTH;
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
this._itemRef.current.style.left = `${left}px`;
|
|
2452
|
+
};
|
|
2453
|
+
_handleActionsMovement = (deltaX) => {
|
|
2454
|
+
this.state.actionNodes.forEach((node, index) => {
|
|
2455
|
+
const preparedDeltaX = deltaX * (index + 1);
|
|
2456
|
+
const rightBound = ACTION_WIDTH * index;
|
|
2457
|
+
let right;
|
|
2458
|
+
if (this.state.opening) {
|
|
2459
|
+
right = Math.abs(preparedDeltaX) - ACTION_WIDTH;
|
|
2460
|
+
} else {
|
|
2461
|
+
right = rightBound - preparedDeltaX;
|
|
2462
|
+
}
|
|
2463
|
+
if (right > rightBound) {
|
|
2464
|
+
right = rightBound;
|
|
2465
|
+
} else if (right < -ACTION_WIDTH) {
|
|
2466
|
+
right = -ACTION_WIDTH;
|
|
2467
|
+
}
|
|
2468
|
+
node.style.right = `${right}px`;
|
|
2469
|
+
});
|
|
2470
|
+
};
|
|
2471
|
+
_setItemToExtremePosition = () => {
|
|
2472
|
+
const { actionNodes, swipeDirection } = this.state;
|
|
2473
|
+
if (!this._itemRef.current) {
|
|
2474
|
+
return;
|
|
2475
|
+
}
|
|
2476
|
+
const left = swipeDirection === SWIPE_DIR.LEFT ? -actionNodes.length * ACTION_WIDTH : 0;
|
|
2477
|
+
this._itemRef.current.style.left = `${left}px`;
|
|
2478
|
+
};
|
|
2479
|
+
_setActionsToExtremePosition = () => {
|
|
2480
|
+
const { actionNodes, swipeDirection } = this.state;
|
|
2481
|
+
actionNodes.forEach((node, index) => {
|
|
2482
|
+
const right = swipeDirection === SWIPE_DIR.LEFT ? ACTION_WIDTH * index : -ACTION_WIDTH;
|
|
2483
|
+
node.style.right = `${right}px`;
|
|
2484
|
+
});
|
|
2485
|
+
};
|
|
2486
|
+
_onOnlyButtonClick = (e) => {
|
|
2487
|
+
const { item, selectOnlyCurrentItem } = this.props;
|
|
2488
|
+
e.stopPropagation();
|
|
2489
|
+
selectOnlyCurrentItem(item);
|
|
2490
|
+
};
|
|
2491
|
+
_onItemClick = () => this.props.onItemClick(this.props.item);
|
|
2492
|
+
_onItemClickCapture = (e) => {
|
|
2493
|
+
const {
|
|
2494
|
+
item: { value }
|
|
2495
|
+
} = this.props;
|
|
2496
|
+
this._publishEvent({
|
|
2497
|
+
eventId: "select",
|
|
2498
|
+
domEvent: e,
|
|
2499
|
+
meta: {
|
|
2500
|
+
valueHash: md5(value)
|
|
2501
|
+
}
|
|
2502
|
+
});
|
|
2503
|
+
};
|
|
2504
|
+
_onTouchStart = (e) => {
|
|
2505
|
+
this._handleTouchedItem();
|
|
2506
|
+
this.setState({
|
|
2507
|
+
startX: e.nativeEvent.touches[0].clientX,
|
|
2508
|
+
opening: this.prevLeft === 0
|
|
2509
|
+
});
|
|
2510
|
+
};
|
|
2511
|
+
_onTouchMove = (e) => {
|
|
2512
|
+
const deltaX = e.nativeEvent.touches[0].clientX - this.state.startX;
|
|
2513
|
+
const swipeDirection = this.state.deltaX > deltaX ? SWIPE_DIR.LEFT : SWIPE_DIR.RIGHT;
|
|
2514
|
+
const handleMovement = !(this.state.opening && deltaX > 0);
|
|
2515
|
+
if (handleMovement) {
|
|
2516
|
+
this._handleItemMovement(deltaX);
|
|
2517
|
+
this._handleActionsMovement(deltaX);
|
|
2518
|
+
}
|
|
2519
|
+
this.setState({ deltaX, swipeDirection });
|
|
2520
|
+
};
|
|
2521
|
+
_onTouchEnd = () => {
|
|
2522
|
+
const endDeltaX = this.state.deltaX;
|
|
2523
|
+
this.setState(
|
|
2524
|
+
{
|
|
2525
|
+
startX: 0,
|
|
2526
|
+
deltaX: 0,
|
|
2527
|
+
opening: false
|
|
2528
|
+
},
|
|
2529
|
+
() => {
|
|
2530
|
+
if (endDeltaX === 0) {
|
|
2531
|
+
return;
|
|
2532
|
+
}
|
|
2533
|
+
this._setItemToExtremePosition();
|
|
2534
|
+
this._setActionsToExtremePosition();
|
|
2535
|
+
}
|
|
2536
|
+
);
|
|
2537
|
+
};
|
|
2538
|
+
_renderItemIcon() {
|
|
2539
|
+
const {
|
|
2540
|
+
showItemIcon,
|
|
2541
|
+
showItemMeta,
|
|
2542
|
+
item: { icon }
|
|
2543
|
+
} = this.props;
|
|
2544
|
+
if (!showItemIcon || !icon) {
|
|
2545
|
+
return null;
|
|
2546
|
+
}
|
|
2547
|
+
const mods = {
|
|
2548
|
+
small: !showItemMeta,
|
|
2549
|
+
large: showItemMeta
|
|
2550
|
+
};
|
|
2551
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: b$3("icon", mods) }, icon);
|
|
2552
|
+
}
|
|
2553
|
+
_renderItemInfo() {
|
|
2554
|
+
const {
|
|
2555
|
+
item: { title, meta, hint },
|
|
2556
|
+
showItemMeta
|
|
2557
|
+
} = this.props;
|
|
2558
|
+
const titleValue = getTitleValue(title);
|
|
2559
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: b$3("info") }, /* @__PURE__ */ React__default.createElement(
|
|
2560
|
+
"div",
|
|
2561
|
+
{
|
|
2562
|
+
className: b$3("title", { secondary: title === "" || title === null }),
|
|
2563
|
+
title: hint ?? (typeof titleValue === "string" && titleValue || "")
|
|
2564
|
+
},
|
|
2565
|
+
titleValue
|
|
2566
|
+
), showItemMeta && meta && /* @__PURE__ */ React__default.createElement("div", { className: b$3("meta"), title: meta }, meta));
|
|
2567
|
+
}
|
|
2568
|
+
_renderOnlyButton() {
|
|
2569
|
+
const {
|
|
2570
|
+
item: { value },
|
|
2571
|
+
selectedCurrentItem: { value: selectedCurrentItemValue } = {},
|
|
2572
|
+
selectType,
|
|
2573
|
+
mobile,
|
|
2574
|
+
style
|
|
2575
|
+
} = this.props;
|
|
2576
|
+
const { deltaX } = this.state;
|
|
2577
|
+
if (selectType !== "multiple") {
|
|
2578
|
+
return null;
|
|
2579
|
+
}
|
|
2580
|
+
const text = selectedCurrentItemValue === value ? trans$3("item_except") : trans$3("item_only");
|
|
2581
|
+
if (mobile) {
|
|
2582
|
+
const mods = {
|
|
2583
|
+
mobile: true,
|
|
2584
|
+
"with-transition": deltaX === 0
|
|
2585
|
+
};
|
|
2586
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2587
|
+
"div",
|
|
2588
|
+
{
|
|
2589
|
+
ref: this._onlyButtonRef,
|
|
2590
|
+
className: b$3("only-btn", mods),
|
|
2591
|
+
style: {
|
|
2592
|
+
top: style.top,
|
|
2593
|
+
height: this.height
|
|
2594
|
+
},
|
|
2595
|
+
onClick: this._onOnlyButtonClick
|
|
2596
|
+
},
|
|
2597
|
+
text
|
|
2598
|
+
);
|
|
2599
|
+
}
|
|
2600
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2601
|
+
Button,
|
|
2602
|
+
{
|
|
2603
|
+
view: "flat-secondary",
|
|
2604
|
+
size: "s",
|
|
2605
|
+
className: b$3("only-btn"),
|
|
2606
|
+
onClick: this._onOnlyButtonClick
|
|
2607
|
+
},
|
|
2608
|
+
text
|
|
2609
|
+
);
|
|
2610
|
+
}
|
|
2611
|
+
_renderExternalUrl() {
|
|
2612
|
+
const {
|
|
2613
|
+
item: { url },
|
|
2614
|
+
mobile,
|
|
2615
|
+
style
|
|
2616
|
+
} = this.props;
|
|
2617
|
+
const { deltaX } = this.state;
|
|
2618
|
+
if (!url) {
|
|
2619
|
+
return null;
|
|
2620
|
+
}
|
|
2621
|
+
if (mobile) {
|
|
2622
|
+
const mods = {
|
|
2623
|
+
mobile: true,
|
|
2624
|
+
"with-transition": deltaX === 0
|
|
2625
|
+
};
|
|
2626
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2627
|
+
"div",
|
|
2628
|
+
{
|
|
2629
|
+
ref: this._linkButtonRef,
|
|
2630
|
+
className: b$3("ext-link", mods),
|
|
2631
|
+
style: {
|
|
2632
|
+
top: style.top,
|
|
2633
|
+
height: this.height
|
|
2634
|
+
},
|
|
2635
|
+
onClick: () => window.open(url, "_blank")
|
|
2636
|
+
},
|
|
2637
|
+
/* @__PURE__ */ React__default.createElement(Icon, { data: ArrowUpRightFromSquare })
|
|
2638
|
+
);
|
|
2639
|
+
}
|
|
2640
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2641
|
+
Button,
|
|
2642
|
+
{
|
|
2643
|
+
view: "flat-secondary",
|
|
2644
|
+
size: "s",
|
|
2645
|
+
href: url,
|
|
2646
|
+
target: "_blank",
|
|
2647
|
+
onClick: (e) => e.stopPropagation(),
|
|
2648
|
+
className: b$3("ext-link")
|
|
2649
|
+
},
|
|
2650
|
+
/* @__PURE__ */ React__default.createElement(Icon, { data: ArrowUpRightFromSquare })
|
|
2651
|
+
);
|
|
2652
|
+
}
|
|
2653
|
+
_renderTickIcon() {
|
|
2654
|
+
const { mobile } = this.props;
|
|
2655
|
+
const tickIconSize = mobile ? MOBILE_TICK_ICON_SIZE : DESKTOP_TICK_ICON_SIZE;
|
|
2656
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: b$3("tick-wrap") }, /* @__PURE__ */ React__default.createElement(
|
|
2657
|
+
Icon,
|
|
2658
|
+
{
|
|
2659
|
+
data: Check,
|
|
2660
|
+
className: b$3("tick"),
|
|
2661
|
+
width: tickIconSize,
|
|
2662
|
+
height: tickIconSize
|
|
2663
|
+
}
|
|
2664
|
+
));
|
|
2665
|
+
}
|
|
2666
|
+
render() {
|
|
2667
|
+
const {
|
|
2668
|
+
item: { value, disabled, modifier, meta },
|
|
2669
|
+
selectType,
|
|
2670
|
+
showItemMeta,
|
|
2671
|
+
isSelected,
|
|
2672
|
+
mobile,
|
|
2673
|
+
style
|
|
2674
|
+
} = this.props;
|
|
2675
|
+
const { actionNodes, deltaX } = this.state;
|
|
2676
|
+
const isMultiple = selectType === "multiple";
|
|
2677
|
+
const hasTouchHandlers = mobile && actionNodes.length;
|
|
2678
|
+
const mods = {
|
|
2679
|
+
disabled,
|
|
2680
|
+
selected: isSelected,
|
|
2681
|
+
multiple: isMultiple,
|
|
2682
|
+
[modifier]: Boolean(modifier),
|
|
2683
|
+
"show-meta": Boolean(showItemMeta && meta),
|
|
2684
|
+
"with-transition": deltaX === 0
|
|
2685
|
+
};
|
|
2686
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: bWrap() }, /* @__PURE__ */ React__default.createElement(
|
|
2687
|
+
"div",
|
|
2688
|
+
{
|
|
2689
|
+
ref: this._itemRef,
|
|
2690
|
+
className: b$3(mods),
|
|
2691
|
+
style,
|
|
2692
|
+
"data-value": value,
|
|
2693
|
+
onClick: this._onItemClick,
|
|
2694
|
+
onClickCapture: this._onItemClickCapture,
|
|
2695
|
+
onTouchStart: hasTouchHandlers ? this._onTouchStart : void 0,
|
|
2696
|
+
onTouchMove: hasTouchHandlers ? this._onTouchMove : void 0,
|
|
2697
|
+
onTouchEnd: hasTouchHandlers ? this._onTouchEnd : void 0
|
|
2698
|
+
},
|
|
2699
|
+
this._renderItemIcon(),
|
|
2700
|
+
this._renderItemInfo(),
|
|
2701
|
+
!mobile && this._renderOnlyButton(),
|
|
2702
|
+
!mobile && this._renderExternalUrl(),
|
|
2703
|
+
isSelected && isMultiple && this._renderTickIcon()
|
|
2704
|
+
), mobile && this._renderOnlyButton(), mobile && this._renderExternalUrl());
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
const trans$2 = I18n.keyset("components.common.YCSelect");
|
|
2708
|
+
const b$2 = block("yc-select-items");
|
|
2709
|
+
const ITEM_HEIGHT = 28;
|
|
2710
|
+
const MOBILE_ITEM_HEIGHT = 40;
|
|
2711
|
+
const ITEM_WITH_META_HEIGHT = 48;
|
|
2712
|
+
const MOBILE_ITEM_WITH_META_HEIGHT = 60;
|
|
2713
|
+
const GROUP_TITLE_HEIGHT = 21;
|
|
2714
|
+
const MARGIN_OFFSET = 4;
|
|
2715
|
+
class ItemsWrapper extends React__default.PureComponent {
|
|
2716
|
+
static propTypes = {
|
|
2717
|
+
virtualizeThreshold: PropTypes.number,
|
|
2718
|
+
items: PropTypes.array,
|
|
2719
|
+
inputValue: PropTypes.string,
|
|
2720
|
+
innerValue: PropTypes.object,
|
|
2721
|
+
isFetchingItems: PropTypes.bool,
|
|
2722
|
+
isDynamic: PropTypes.bool,
|
|
2723
|
+
isItemsGrouped: PropTypes.bool,
|
|
2724
|
+
showItemMeta: PropTypes.bool,
|
|
2725
|
+
showMoreItems: PropTypes.bool,
|
|
2726
|
+
showSearch: PropTypes.bool,
|
|
2727
|
+
showApply: PropTypes.bool,
|
|
2728
|
+
selectedItemsPopup: PropTypes.bool,
|
|
2729
|
+
mobile: PropTypes.bool,
|
|
2730
|
+
fetchError: PropTypes.any,
|
|
2731
|
+
onFetchErrorDetails: PropTypes.func,
|
|
2732
|
+
fetchErrorDetailsTitle: PropTypes.string,
|
|
2733
|
+
visible: PropTypes.bool,
|
|
2734
|
+
fetchItems: PropTypes.func,
|
|
2735
|
+
addNewItem: PropTypes.func,
|
|
2736
|
+
setPopupWidth: PropTypes.func,
|
|
2737
|
+
setAllowHideOnContentScroll: PropTypes.func,
|
|
2738
|
+
errorContent: PropTypes.node
|
|
2739
|
+
};
|
|
2740
|
+
static defaultProps = {
|
|
2741
|
+
showMoreItems: false
|
|
2742
|
+
};
|
|
2743
|
+
static getDerivedStateFromProps(props, state) {
|
|
2744
|
+
const changedState = {};
|
|
2745
|
+
if (props.visible) {
|
|
2746
|
+
changedState.items = props.selectedItemsPopup ? props.items : props.items.filter(({ missing }) => !missing);
|
|
2747
|
+
if (!state.hasItems) {
|
|
2748
|
+
changedState.hasItems = true;
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
return Object.keys(changedState).length > 0 ? changedState : null;
|
|
2752
|
+
}
|
|
2753
|
+
state = {
|
|
2754
|
+
items: [],
|
|
2755
|
+
touchedItem: {},
|
|
2756
|
+
minHeight: void 0,
|
|
2757
|
+
isAddingUserItem: false,
|
|
2758
|
+
isFetchingNextItems: false,
|
|
2759
|
+
hasItems: false
|
|
2760
|
+
};
|
|
2761
|
+
componentDidMount() {
|
|
2762
|
+
this.addedItemsCount = this.state.items.length;
|
|
2763
|
+
this._setPopupWidth();
|
|
2764
|
+
}
|
|
2765
|
+
componentDidUpdate(prevProps, prevState) {
|
|
2766
|
+
const { isDynamic } = this.props;
|
|
2767
|
+
const { isFetchingNextItems } = this.state;
|
|
2768
|
+
const listRef = this.listRef.current;
|
|
2769
|
+
const isSelectedItemsChanged = prevProps.innerValue !== this.props.innerValue;
|
|
2770
|
+
if (isSelectedItemsChanged && listRef || isFetchingNextItems && listRef) {
|
|
2771
|
+
listRef.forceUpdate();
|
|
2772
|
+
}
|
|
2773
|
+
if (prevProps.inputValue && !this.props.inputValue && isDynamic && listRef) {
|
|
2774
|
+
listRef.scrollTo(0);
|
|
2775
|
+
}
|
|
2776
|
+
if (prevState.items.length !== this.state.items.length) {
|
|
2777
|
+
this.addedItemsCount = prevState.items.length > this.state.items.length ? this.state.items.length : this.state.items.length - prevState.items.length;
|
|
2778
|
+
}
|
|
2779
|
+
if (prevProps.showItemMeta !== this.props.showItemMeta && listRef) {
|
|
2780
|
+
listRef.resetAfterIndex(0);
|
|
2781
|
+
}
|
|
2782
|
+
if (prevProps.errorContent && !this.props.errorContent) {
|
|
2783
|
+
this._setPopupWidth();
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2786
|
+
componentWillUnmount() {
|
|
2787
|
+
this._removeObserver();
|
|
2788
|
+
}
|
|
2789
|
+
addedItemsCount = 0;
|
|
2790
|
+
ref = React__default.createRef();
|
|
2791
|
+
listRef = React__default.createRef();
|
|
2792
|
+
observer = null;
|
|
2793
|
+
get items() {
|
|
2794
|
+
const { isItemsGrouped } = this.props;
|
|
2795
|
+
let items = this.state.items;
|
|
2796
|
+
if (isItemsGrouped) {
|
|
2797
|
+
items = [];
|
|
2798
|
+
this.state.items.forEach((group) => {
|
|
2799
|
+
items.push({ groupTitle: group.groupTitle });
|
|
2800
|
+
items = items.concat(group.items);
|
|
2801
|
+
});
|
|
2802
|
+
}
|
|
2803
|
+
return items;
|
|
2804
|
+
}
|
|
2805
|
+
getTouchedItem = () => {
|
|
2806
|
+
return this.state.touchedItem;
|
|
2807
|
+
};
|
|
2808
|
+
setTouchedItem = (touchedItem) => {
|
|
2809
|
+
this.setState({ touchedItem });
|
|
2810
|
+
};
|
|
2811
|
+
_onResize = () => {
|
|
2812
|
+
if (!this.ref.current) {
|
|
2813
|
+
return;
|
|
2814
|
+
}
|
|
2815
|
+
const { minHeight } = this.state;
|
|
2816
|
+
const height = this.ref.current.getBoundingClientRect().height;
|
|
2817
|
+
if (height > minHeight) {
|
|
2818
|
+
this.setState({ minHeight: height });
|
|
2819
|
+
}
|
|
2820
|
+
};
|
|
2821
|
+
_addObserver() {
|
|
2822
|
+
const config = { subtree: true, childList: true };
|
|
2823
|
+
this.observer = new MutationObserver(this._onResize);
|
|
2824
|
+
this.observer.observe(this.ref.current, config);
|
|
2825
|
+
}
|
|
2826
|
+
_setPopupWidth() {
|
|
2827
|
+
if (!this.ref.current) {
|
|
2828
|
+
return;
|
|
2829
|
+
}
|
|
2830
|
+
const { width } = this.ref.current.getBoundingClientRect();
|
|
2831
|
+
this.props.setPopupWidth(width + this._getScrollbarWidth());
|
|
2832
|
+
if (this.props.mobile) {
|
|
2833
|
+
this._addObserver();
|
|
2834
|
+
}
|
|
2835
|
+
}
|
|
2836
|
+
_removeObserver() {
|
|
2837
|
+
if (this.observer) {
|
|
2838
|
+
this.observer.disconnect();
|
|
2839
|
+
}
|
|
2840
|
+
}
|
|
2841
|
+
_getScrollbarWidth() {
|
|
2842
|
+
if (!this.ref.current) {
|
|
2843
|
+
return 0;
|
|
2844
|
+
}
|
|
2845
|
+
const browser = checkBrowser();
|
|
2846
|
+
let offset = 0;
|
|
2847
|
+
if (browser === "Firefox" || browser === "Safari") {
|
|
2848
|
+
offset = this.ref.current.offsetWidth - this.ref.current.clientWidth;
|
|
2849
|
+
}
|
|
2850
|
+
return offset;
|
|
2851
|
+
}
|
|
2852
|
+
_getItemHeight = () => {
|
|
2853
|
+
const { showItemMeta, mobile } = this.props;
|
|
2854
|
+
if (mobile) {
|
|
2855
|
+
return showItemMeta ? MOBILE_ITEM_WITH_META_HEIGHT : MOBILE_ITEM_HEIGHT;
|
|
2856
|
+
}
|
|
2857
|
+
return showItemMeta ? ITEM_WITH_META_HEIGHT : ITEM_HEIGHT;
|
|
2858
|
+
};
|
|
2859
|
+
_getItemSize = (index) => {
|
|
2860
|
+
const items = this.items;
|
|
2861
|
+
const itemHeight = this._getItemHeight();
|
|
2862
|
+
if (!items[index]) {
|
|
2863
|
+
return itemHeight;
|
|
2864
|
+
}
|
|
2865
|
+
return items[index].groupTitle ? GROUP_TITLE_HEIGHT : itemHeight;
|
|
2866
|
+
};
|
|
2867
|
+
_fetchNextItems = async () => {
|
|
2868
|
+
const { fetchItems } = this.props;
|
|
2869
|
+
this.setState({ isFetchingNextItems: true });
|
|
2870
|
+
await fetchItems();
|
|
2871
|
+
this.setState({ isFetchingNextItems: false });
|
|
2872
|
+
};
|
|
2873
|
+
_addUserItem = async () => {
|
|
2874
|
+
const { inputValue, addNewItem } = this.props;
|
|
2875
|
+
this.setState({ isAddingUserItem: true });
|
|
2876
|
+
await addNewItem(inputValue);
|
|
2877
|
+
this.setState({ isAddingUserItem: false });
|
|
2878
|
+
};
|
|
2879
|
+
_onAddButtonClick = (e) => {
|
|
2880
|
+
e.stopPropagation();
|
|
2881
|
+
this._addUserItem();
|
|
2882
|
+
};
|
|
2883
|
+
_renderItem = (item, style = {}) => {
|
|
2884
|
+
const { innerValue } = this.props;
|
|
2885
|
+
const isSelected = innerValue.has(item.value);
|
|
2886
|
+
if (style.left) {
|
|
2887
|
+
delete style.left;
|
|
2888
|
+
}
|
|
2889
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2890
|
+
Item,
|
|
2891
|
+
{
|
|
2892
|
+
...this.props,
|
|
2893
|
+
key: item.key || item.value,
|
|
2894
|
+
style,
|
|
2895
|
+
item,
|
|
2896
|
+
isSelected,
|
|
2897
|
+
getTouchedItem: this.getTouchedItem,
|
|
2898
|
+
setTouchedItem: this.setTouchedItem
|
|
2899
|
+
}
|
|
2900
|
+
);
|
|
2901
|
+
};
|
|
2902
|
+
_renderGroupTitle = (title, style = {}) => {
|
|
2903
|
+
return /* @__PURE__ */ React__default.createElement("div", { style, key: title, className: b$2("group-title") }, title);
|
|
2904
|
+
};
|
|
2905
|
+
_itemRenderer = ({ index, style }) => {
|
|
2906
|
+
const { isFetchingNextItems } = this.state;
|
|
2907
|
+
const items = this.items;
|
|
2908
|
+
const item = items[index];
|
|
2909
|
+
if (index === items.length && isFetchingNextItems) {
|
|
2910
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: b$2("loader"), style }, /* @__PURE__ */ React__default.createElement(Loader, { size: "s" }));
|
|
2911
|
+
}
|
|
2912
|
+
if (!item) {
|
|
2913
|
+
return null;
|
|
2914
|
+
}
|
|
2915
|
+
if (item.groupTitle) {
|
|
2916
|
+
return this._renderGroupTitle(item.groupTitle, style);
|
|
2917
|
+
}
|
|
2918
|
+
return this._renderItem(item, style);
|
|
2919
|
+
};
|
|
2920
|
+
_onItemsRendered = ({ visibleStopIndex }) => {
|
|
2921
|
+
const { showMoreItems } = this.props;
|
|
2922
|
+
const { items, isFetchingNextItems } = this.state;
|
|
2923
|
+
const threshold = Math.round(this.addedItemsCount / 3);
|
|
2924
|
+
const needFetch = showMoreItems && !isFetchingNextItems && items.length - visibleStopIndex < threshold;
|
|
2925
|
+
if (needFetch) {
|
|
2926
|
+
this._fetchNextItems();
|
|
2927
|
+
}
|
|
2928
|
+
};
|
|
2929
|
+
_renderItemsWithoutVirtualized() {
|
|
2930
|
+
const { isItemsGrouped } = this.props;
|
|
2931
|
+
const { items } = this.state;
|
|
2932
|
+
if (isItemsGrouped) {
|
|
2933
|
+
return items.map((item) => {
|
|
2934
|
+
const { groupTitle, items: items2 } = item;
|
|
2935
|
+
if (!groupTitle && !items2) {
|
|
2936
|
+
return this._renderItem(item);
|
|
2937
|
+
}
|
|
2938
|
+
const groupTitleNode = this._renderGroupTitle(groupTitle);
|
|
2939
|
+
const groupItems = items2.map((item2) => this._renderItem(item2));
|
|
2940
|
+
return groupItems.length ? [groupTitleNode, ...groupItems] : null;
|
|
2941
|
+
});
|
|
2942
|
+
}
|
|
2943
|
+
return items.map((item) => this._renderItem(item));
|
|
2944
|
+
}
|
|
2945
|
+
// eslint-disable-next-line complexity
|
|
2946
|
+
render() {
|
|
2947
|
+
const {
|
|
2948
|
+
virtualizeThreshold,
|
|
2949
|
+
inputValue,
|
|
2950
|
+
showSearch,
|
|
2951
|
+
showApply,
|
|
2952
|
+
isDynamic,
|
|
2953
|
+
showMoreItems,
|
|
2954
|
+
selectedItemsPopup,
|
|
2955
|
+
mobile,
|
|
2956
|
+
addNewItem,
|
|
2957
|
+
fetchItems,
|
|
2958
|
+
isFetchingItems,
|
|
2959
|
+
isItemsGrouped,
|
|
2960
|
+
fetchError,
|
|
2961
|
+
itemsListTestAnchor,
|
|
2962
|
+
errorContent
|
|
2963
|
+
} = this.props;
|
|
2964
|
+
const { minHeight, hasItems, isAddingUserItem, isFetchingNextItems } = this.state;
|
|
2965
|
+
const items = this.items;
|
|
2966
|
+
if (!hasItems) {
|
|
2967
|
+
return null;
|
|
2968
|
+
}
|
|
2969
|
+
if (isFetchingItems && !isFetchingNextItems) {
|
|
2970
|
+
return /* @__PURE__ */ React__default.createElement("div", { ref: this.ref, className: b$2("loader"), style: { minHeight } }, /* @__PURE__ */ React__default.createElement(Loader, { size: "s" }));
|
|
2971
|
+
}
|
|
2972
|
+
if (fetchError || errorContent) {
|
|
2973
|
+
const { onFetchErrorDetails, fetchErrorDetailsTitle } = this.props;
|
|
2974
|
+
return /* @__PURE__ */ React__default.createElement("div", { ref: this.ref, className: b$2("prompt"), style: { minHeight } }, errorContent ? errorContent : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("span", null, trans$2("items_fetch_error")), /* @__PURE__ */ React__default.createElement("div", { className: b$2("buttons") }, /* @__PURE__ */ React__default.createElement(
|
|
2975
|
+
Button,
|
|
2976
|
+
{
|
|
2977
|
+
disabled: isAddingUserItem,
|
|
2978
|
+
className: b$2("prompt-button", { retry: true }),
|
|
2979
|
+
onClick: fetchItems
|
|
2980
|
+
},
|
|
2981
|
+
trans$2("refresh_button_text")
|
|
2982
|
+
), onFetchErrorDetails && /* @__PURE__ */ React__default.createElement(
|
|
2983
|
+
Button,
|
|
2984
|
+
{
|
|
2985
|
+
view: "flat",
|
|
2986
|
+
className: b$2("prompt-button"),
|
|
2987
|
+
onClick: () => onFetchErrorDetails(fetchError)
|
|
2988
|
+
},
|
|
2989
|
+
fetchErrorDetailsTitle || trans$2("error_details_button_text")
|
|
2990
|
+
))));
|
|
2991
|
+
}
|
|
2992
|
+
if (isDynamic && !inputValue && !items.length) {
|
|
2993
|
+
return /* @__PURE__ */ React__default.createElement("div", { ref: this.ref, className: b$2("prompt"), style: { minHeight } }, /* @__PURE__ */ React__default.createElement("span", null, trans$2("items_prompt")));
|
|
2994
|
+
}
|
|
2995
|
+
const isNotFound = !items.length || isItemsGrouped && items.every((group) => group.items && !group.items.length);
|
|
2996
|
+
if (isNotFound) {
|
|
2997
|
+
return /* @__PURE__ */ React__default.createElement("div", { ref: this.ref, className: b$2("prompt"), style: { minHeight } }, /* @__PURE__ */ React__default.createElement("span", null, trans$2("items_not_found", { inputValue })), addNewItem && !isItemsGrouped && /* @__PURE__ */ React__default.createElement(
|
|
2998
|
+
Button,
|
|
2999
|
+
{
|
|
3000
|
+
disabled: isAddingUserItem,
|
|
3001
|
+
className: b$2("prompt-button"),
|
|
3002
|
+
onClick: this._onAddButtonClick
|
|
3003
|
+
},
|
|
3004
|
+
trans$2("items_add_new")
|
|
3005
|
+
));
|
|
3006
|
+
}
|
|
3007
|
+
const wrapperMods = {
|
|
3008
|
+
"with-search": !selectedItemsPopup && showSearch,
|
|
3009
|
+
"with-selected-title": selectedItemsPopup,
|
|
3010
|
+
"with-apply-button": showApply,
|
|
3011
|
+
grouped: isItemsGrouped,
|
|
3012
|
+
mobile
|
|
3013
|
+
};
|
|
3014
|
+
if (!isDynamic && items.length < virtualizeThreshold) {
|
|
3015
|
+
wrapperMods["without-virtualized"] = true;
|
|
3016
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
3017
|
+
"div",
|
|
3018
|
+
{
|
|
3019
|
+
ref: this.ref,
|
|
3020
|
+
className: b$2(wrapperMods),
|
|
3021
|
+
style: { minHeight },
|
|
3022
|
+
"data-qa": itemsListTestAnchor
|
|
3023
|
+
},
|
|
3024
|
+
this._renderItemsWithoutVirtualized()
|
|
3025
|
+
);
|
|
3026
|
+
}
|
|
3027
|
+
const itemHeight = this._getItemHeight();
|
|
3028
|
+
const itemCount = showMoreItems ? items.length + 1 : items.length;
|
|
3029
|
+
const marginOffset = items.length === 1 ? MARGIN_OFFSET * 2 : MARGIN_OFFSET;
|
|
3030
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
3031
|
+
"div",
|
|
3032
|
+
{
|
|
3033
|
+
ref: this.ref,
|
|
3034
|
+
className: b$2(wrapperMods),
|
|
3035
|
+
style: {
|
|
3036
|
+
minHeight,
|
|
3037
|
+
height: itemCount * itemHeight + marginOffset
|
|
3038
|
+
},
|
|
3039
|
+
"data-qa": itemsListTestAnchor
|
|
3040
|
+
},
|
|
3041
|
+
/* @__PURE__ */ React__default.createElement(AutoSizer, null, ({ width, height }) => /* @__PURE__ */ React__default.createElement(
|
|
3042
|
+
VariableSizeList,
|
|
3043
|
+
{
|
|
3044
|
+
ref: this.listRef,
|
|
3045
|
+
style: { overflowX: "hidden" },
|
|
3046
|
+
width,
|
|
3047
|
+
height,
|
|
3048
|
+
itemSize: this._getItemSize,
|
|
3049
|
+
itemData: items,
|
|
3050
|
+
itemCount,
|
|
3051
|
+
overscanCount: 5,
|
|
3052
|
+
estimatedItemSize: itemHeight,
|
|
3053
|
+
onItemsRendered: this._onItemsRendered
|
|
3054
|
+
},
|
|
3055
|
+
this._itemRenderer
|
|
3056
|
+
))
|
|
3057
|
+
);
|
|
3058
|
+
}
|
|
3059
|
+
}
|
|
3060
|
+
const trans$1 = I18n.keyset("components.common.YCSelect");
|
|
3061
|
+
const b$1 = block("yc-select-search");
|
|
3062
|
+
class Search extends React__default.PureComponent {
|
|
3063
|
+
static propTypes = {
|
|
3064
|
+
value: PropTypes.string,
|
|
3065
|
+
width: PropTypes.number,
|
|
3066
|
+
minWidth: PropTypes.number,
|
|
3067
|
+
searchButtonSettings: PropTypes.object,
|
|
3068
|
+
onInputUpdate: PropTypes.func,
|
|
3069
|
+
selectAllItems: PropTypes.func,
|
|
3070
|
+
onClick: PropTypes.func
|
|
3071
|
+
};
|
|
3072
|
+
focusInput = () => {
|
|
3073
|
+
if (!this.inputNode) {
|
|
3074
|
+
return;
|
|
3075
|
+
}
|
|
3076
|
+
this.inputNode.focus({ preventScroll: true });
|
|
3077
|
+
};
|
|
3078
|
+
_setInputNode = (ref) => {
|
|
3079
|
+
if (!this.inputNode) {
|
|
3080
|
+
this.inputNode = ref;
|
|
3081
|
+
}
|
|
3082
|
+
};
|
|
3083
|
+
_handleOnClick = () => {
|
|
3084
|
+
if (this.props.onClick) {
|
|
3085
|
+
this.props.onClick();
|
|
3086
|
+
}
|
|
3087
|
+
};
|
|
3088
|
+
render() {
|
|
3089
|
+
const {
|
|
3090
|
+
value,
|
|
3091
|
+
width,
|
|
3092
|
+
minWidth,
|
|
3093
|
+
searchButtonSettings: { isCleaning, visible },
|
|
3094
|
+
onInputUpdate,
|
|
3095
|
+
selectAllItems
|
|
3096
|
+
} = this.props;
|
|
3097
|
+
return /* @__PURE__ */ React__default.createElement(MobileContext.Consumer, null, ({ mobile }) => {
|
|
3098
|
+
const size = mobile ? "xl" : "m";
|
|
3099
|
+
let style;
|
|
3100
|
+
if (!mobile) {
|
|
3101
|
+
style = {
|
|
3102
|
+
width,
|
|
3103
|
+
minWidth
|
|
3104
|
+
};
|
|
3105
|
+
}
|
|
3106
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: b$1(), style, onClick: this._handleOnClick }, /* @__PURE__ */ React__default.createElement("div", { className: b$1("input-wrap") }, /* @__PURE__ */ React__default.createElement(
|
|
3107
|
+
TextInput,
|
|
3108
|
+
{
|
|
3109
|
+
controlRef: mobile ? void 0 : this._setInputNode,
|
|
3110
|
+
view: "clear",
|
|
3111
|
+
size,
|
|
3112
|
+
value,
|
|
3113
|
+
placeholder: trans$1("search_placeholder"),
|
|
3114
|
+
onUpdate: onInputUpdate,
|
|
3115
|
+
clear: true
|
|
3116
|
+
}
|
|
3117
|
+
)), visible && /* @__PURE__ */ React__default.createElement(Button, { view: "flat", size, onClick: selectAllItems }, isCleaning ? trans$1("search_clear") : trans$1("search_select_all")));
|
|
3118
|
+
});
|
|
3119
|
+
}
|
|
3120
|
+
}
|
|
3121
|
+
const MIN_VIRTUALIZED_POPUP_WIDTH = 170;
|
|
3122
|
+
const MAX_CONTROL_WIDTH_WITH_ANIMATION = 500;
|
|
3123
|
+
function isBothEmpty(valueA, valueB) {
|
|
3124
|
+
if (Array.isArray(valueA) && Array.isArray(valueB)) {
|
|
3125
|
+
return valueA.length === 0 && valueB.length === 0;
|
|
3126
|
+
}
|
|
3127
|
+
if (valueA instanceof Set && valueB instanceof Set) {
|
|
3128
|
+
return valueA.size === 0 && valueB.size === 0;
|
|
3129
|
+
}
|
|
3130
|
+
return false;
|
|
3131
|
+
}
|
|
3132
|
+
const trans = I18n.keyset("components.common.YCSelect");
|
|
3133
|
+
const b = block("yc-select");
|
|
3134
|
+
const bControl = block("yc-select-control");
|
|
3135
|
+
const bAction = block("yc-select-action");
|
|
3136
|
+
const bPopup = block("yc-select-popup");
|
|
3137
|
+
const bSheet = block("yc-select-sheet");
|
|
3138
|
+
const DEBOUNCE_DELAY = 350;
|
|
3139
|
+
const THROTTLE_DELAY = 33;
|
|
3140
|
+
const EMPTY_VALUE = "—";
|
|
3141
|
+
const AVAILABLE_POPUP_DIRECTIONS = ["bottom-start", "bottom-end", "top-start", "top-end"];
|
|
3142
|
+
const getModifier = (name) => b({ [name]: true }).split(" ")[1];
|
|
3143
|
+
const ItemShape = PropTypes.shape({
|
|
3144
|
+
value: PropTypes.string.isRequired,
|
|
3145
|
+
title: PropTypes.string.isRequired,
|
|
3146
|
+
key: PropTypes.string,
|
|
3147
|
+
meta: PropTypes.string,
|
|
3148
|
+
icon: PropTypes.node,
|
|
3149
|
+
disabled: PropTypes.bool,
|
|
3150
|
+
url: PropTypes.string
|
|
3151
|
+
});
|
|
3152
|
+
const ItemsGroupShape = PropTypes.shape({
|
|
3153
|
+
groupTitle: PropTypes.string.isRequired,
|
|
3154
|
+
items: PropTypes.arrayOf(ItemShape)
|
|
3155
|
+
});
|
|
3156
|
+
const ItemsShape = PropTypes.oneOfType([
|
|
3157
|
+
PropTypes.array,
|
|
3158
|
+
PropTypes.arrayOf(ItemShape),
|
|
3159
|
+
PropTypes.arrayOf(ItemsGroupShape)
|
|
3160
|
+
]);
|
|
3161
|
+
const getFlattenItems = ({ items, isItemsGrouped, innerValue }) => {
|
|
3162
|
+
return isItemsGrouped ? _flatMap(
|
|
3163
|
+
items,
|
|
3164
|
+
({ items: groupedItems }) => groupedItems.filter((item) => innerValue.has(item.value))
|
|
3165
|
+
) : items.filter((item) => innerValue.has(item.value));
|
|
3166
|
+
};
|
|
3167
|
+
function getInnerValueLength(value) {
|
|
3168
|
+
if (value === void 0 || value === null) {
|
|
3169
|
+
return 0;
|
|
3170
|
+
}
|
|
3171
|
+
return Array.isArray(value) ? value.length : 1;
|
|
3172
|
+
}
|
|
3173
|
+
const arrayProps = ["items", "titles", "innerValue", "prevPropsItems", "shownItems"];
|
|
3174
|
+
function safeStateUpdater(currentState, nextPartialState) {
|
|
3175
|
+
let nextState = currentState;
|
|
3176
|
+
const entries = Object.entries(nextPartialState);
|
|
3177
|
+
for (const [key, nextValue] of entries) {
|
|
3178
|
+
const currentValue = nextState[key];
|
|
3179
|
+
if (arrayProps.includes(key) && !isBothEmpty(currentValue, nextValue) || currentValue !== nextValue) {
|
|
3180
|
+
nextState = { ...nextState, [key]: nextValue };
|
|
3181
|
+
}
|
|
3182
|
+
}
|
|
3183
|
+
return nextState;
|
|
3184
|
+
}
|
|
3185
|
+
class YCSelect extends React__default.PureComponent {
|
|
3186
|
+
static SINGLE = "single";
|
|
3187
|
+
static MULTIPLE = "multiple";
|
|
3188
|
+
static INIT_ITEMS_PLACEHOLDER = "Fetching initial items...";
|
|
3189
|
+
static getInnerValue(value, allowNullableValues) {
|
|
3190
|
+
const checkFunction = allowNullableValues ? isUndefined : isFalsy;
|
|
3191
|
+
if (checkFunction(value)) {
|
|
3192
|
+
return /* @__PURE__ */ new Set();
|
|
3193
|
+
}
|
|
3194
|
+
return Array.isArray(value) ? new Set(value.filter((val) => !checkFunction(val))) : /* @__PURE__ */ new Set([value]);
|
|
3195
|
+
}
|
|
3196
|
+
static getMissingItems(items = [], value, showMissingItems) {
|
|
3197
|
+
if (!showMissingItems) {
|
|
3198
|
+
return [];
|
|
3199
|
+
}
|
|
3200
|
+
const itemsSet = new Set(items.map((item) => item.value));
|
|
3201
|
+
return (Array.isArray(value) ? value : [value]).filter((valueItem) => {
|
|
3202
|
+
return !itemsSet.has(valueItem);
|
|
3203
|
+
}).map((missingValue) => ({
|
|
3204
|
+
value: missingValue,
|
|
3205
|
+
title: missingValue,
|
|
3206
|
+
missing: true
|
|
3207
|
+
}));
|
|
3208
|
+
}
|
|
3209
|
+
static getDerivedStateFromProps(props, state) {
|
|
3210
|
+
const changedState = {};
|
|
3211
|
+
const isPropsItemsChange = props.items !== state.prevPropsItems && !props.getItems;
|
|
3212
|
+
if (isPropsItemsChange) {
|
|
3213
|
+
const missingItems = YCSelect.getMissingItems(
|
|
3214
|
+
props.items,
|
|
3215
|
+
props.value,
|
|
3216
|
+
props.showMissingItems
|
|
3217
|
+
);
|
|
3218
|
+
const items = missingItems.concat(props.items);
|
|
3219
|
+
changedState.prevPropsItems = props.items;
|
|
3220
|
+
changedState.items = items;
|
|
3221
|
+
changedState.isItemsGrouped = YCSelect.isItemsGrouped(props.items);
|
|
3222
|
+
if (state.inputValue) {
|
|
3223
|
+
const regExp = getEscapedRegExp(state.inputValue);
|
|
3224
|
+
if (changedState.isItemsGrouped) {
|
|
3225
|
+
changedState.shownItems = props.items.map((group) => {
|
|
3226
|
+
const groupItems = group.items.filter(
|
|
3227
|
+
(item) => regExp.test(item.title)
|
|
3228
|
+
);
|
|
3229
|
+
return {
|
|
3230
|
+
groupTitle: group.groupTitle,
|
|
3231
|
+
items: groupItems
|
|
3232
|
+
};
|
|
3233
|
+
}).filter((group) => group.items.length);
|
|
3234
|
+
} else {
|
|
3235
|
+
changedState.shownItems = items.filter((item) => regExp.test(item.title));
|
|
3236
|
+
}
|
|
3237
|
+
} else {
|
|
3238
|
+
changedState.shownItems = items;
|
|
3239
|
+
}
|
|
3240
|
+
}
|
|
3241
|
+
if (props.value !== state.prevPropsValue || isPropsItemsChange) {
|
|
3242
|
+
const missingItems = YCSelect.getMissingItems(
|
|
3243
|
+
props.getItems ? state.items.concat(state.selectItems) : props.items,
|
|
3244
|
+
props.value,
|
|
3245
|
+
props.showMissingItems
|
|
3246
|
+
);
|
|
3247
|
+
let items = YCSelect.isItemsGrouped(props.items) ? props.items : missingItems.concat(props.getItems ? state.items : props.items);
|
|
3248
|
+
if (props.getItems) {
|
|
3249
|
+
items = _uniqBy(items.concat(state.selectItems), "value");
|
|
3250
|
+
}
|
|
3251
|
+
changedState.prevPropsValue = props.value;
|
|
3252
|
+
const { innerValue, singleSelectItem, titles } = YCSelect.getInnerValueState(
|
|
3253
|
+
props,
|
|
3254
|
+
items
|
|
3255
|
+
);
|
|
3256
|
+
Object.assign(changedState, { innerValue, singleSelectItem, titles });
|
|
3257
|
+
if (props.getItems) {
|
|
3258
|
+
const length = getInnerValueLength(props.value);
|
|
3259
|
+
if (length !== 0 && titles.length !== length) {
|
|
3260
|
+
changedState.isInitPending = true;
|
|
3261
|
+
} else {
|
|
3262
|
+
changedState.selectItems = _filter(
|
|
3263
|
+
state.selectItems,
|
|
3264
|
+
(item) => innerValue.has(item.value)
|
|
3265
|
+
);
|
|
3266
|
+
}
|
|
3267
|
+
}
|
|
3268
|
+
if (props.showMissingItems) {
|
|
3269
|
+
changedState.items = items;
|
|
3270
|
+
}
|
|
3271
|
+
}
|
|
3272
|
+
return Object.keys(changedState).length > 0 ? changedState : null;
|
|
3273
|
+
}
|
|
3274
|
+
static getInnerValueState(props, items) {
|
|
3275
|
+
const { value, type, showItemIcon, allowNullableValues } = props;
|
|
3276
|
+
const res = {};
|
|
3277
|
+
res.innerValue = YCSelect.getInnerValue(value, allowNullableValues);
|
|
3278
|
+
if (type === YCSelect.SINGLE && showItemIcon) {
|
|
3279
|
+
res.singleSelectItem = YCSelect.getSingleSelectedItem(items, res.innerValue);
|
|
3280
|
+
}
|
|
3281
|
+
res.titles = YCSelect.getTitles(items, res.innerValue);
|
|
3282
|
+
return res;
|
|
3283
|
+
}
|
|
3284
|
+
static getTitles(items, innerValue) {
|
|
3285
|
+
if (!innerValue.size) {
|
|
3286
|
+
return [];
|
|
3287
|
+
}
|
|
3288
|
+
const isItemsGrouped = YCSelect.isItemsGrouped(items);
|
|
3289
|
+
if (isItemsGrouped) {
|
|
3290
|
+
return _flatMap(
|
|
3291
|
+
items,
|
|
3292
|
+
({ items: groupedItems }) => groupedItems.filter((item) => innerValue.has(item.value)).map((item) => item.title)
|
|
3293
|
+
);
|
|
3294
|
+
}
|
|
3295
|
+
return items.filter((item) => innerValue.has(item.value)).map(({ title }) => getTitleValue(title));
|
|
3296
|
+
}
|
|
3297
|
+
static getSingleSelectedItem(items, innerValue) {
|
|
3298
|
+
const isItemsGrouped = YCSelect.isItemsGrouped(items);
|
|
3299
|
+
if (isItemsGrouped) {
|
|
3300
|
+
const filteredList = items.map(
|
|
3301
|
+
({ items: groupedItems }) => groupedItems.find((item) => innerValue.has(item.value))
|
|
3302
|
+
).filter(Boolean);
|
|
3303
|
+
return filteredList[0];
|
|
3304
|
+
}
|
|
3305
|
+
return items.find((item) => innerValue.has(item.value));
|
|
3306
|
+
}
|
|
3307
|
+
static isItemsGrouped(items) {
|
|
3308
|
+
if (!items || !items.length) {
|
|
3309
|
+
return false;
|
|
3310
|
+
}
|
|
3311
|
+
return Object.prototype.hasOwnProperty.call(items[0], "groupTitle");
|
|
3312
|
+
}
|
|
3313
|
+
static propTypes = {
|
|
3314
|
+
onUpdate: PropTypes.func.isRequired,
|
|
3315
|
+
getItems: PropTypes.func,
|
|
3316
|
+
addItem: PropTypes.func,
|
|
3317
|
+
renderSwitcher: PropTypes.func,
|
|
3318
|
+
onOpenChange: PropTypes.func,
|
|
3319
|
+
size: PropTypes.oneOf(["xs", "s", "m", "n", "promo"]),
|
|
3320
|
+
type: PropTypes.oneOf([YCSelect.SINGLE, YCSelect.MULTIPLE]),
|
|
3321
|
+
className: PropTypes.string,
|
|
3322
|
+
popupClassName: PropTypes.string,
|
|
3323
|
+
controlTestAnchor: PropTypes.string,
|
|
3324
|
+
itemsListTestAnchor: PropTypes.string,
|
|
3325
|
+
switcherClassName: PropTypes.string,
|
|
3326
|
+
label: PropTypes.string,
|
|
3327
|
+
limitLabel: PropTypes.bool,
|
|
3328
|
+
itemsLoaderClassName: PropTypes.string,
|
|
3329
|
+
controlWidth: PropTypes.number,
|
|
3330
|
+
popupWidth: PropTypes.number,
|
|
3331
|
+
itemsPageSize: PropTypes.number,
|
|
3332
|
+
virtualizeThreshold: PropTypes.number,
|
|
3333
|
+
showSearch: PropTypes.bool,
|
|
3334
|
+
showArrow: PropTypes.bool,
|
|
3335
|
+
showApply: PropTypes.bool,
|
|
3336
|
+
showItemIcon: PropTypes.bool,
|
|
3337
|
+
showItemMeta: PropTypes.bool,
|
|
3338
|
+
showMissingItems: PropTypes.bool,
|
|
3339
|
+
showSelectAll: PropTypes.bool,
|
|
3340
|
+
allowEmptyValue: PropTypes.bool,
|
|
3341
|
+
allowNullableValues: PropTypes.bool,
|
|
3342
|
+
hiding: PropTypes.bool,
|
|
3343
|
+
disabled: PropTypes.bool,
|
|
3344
|
+
stretched: PropTypes.bool,
|
|
3345
|
+
loading: PropTypes.bool,
|
|
3346
|
+
loadingItems: PropTypes.bool,
|
|
3347
|
+
applyOnOutsideClick: PropTypes.bool,
|
|
3348
|
+
items: ItemsShape,
|
|
3349
|
+
initialItems: ItemsShape,
|
|
3350
|
+
value: (props, propName, componentName) => {
|
|
3351
|
+
const propTypeSpec = props["type"] === YCSelect.SINGLE ? { [propName]: PropTypes.string } : { [propName]: PropTypes.arrayOf(PropTypes.string) };
|
|
3352
|
+
PropTypes.checkPropTypes(propTypeSpec, props, propName, componentName);
|
|
3353
|
+
},
|
|
3354
|
+
placeholder: PropTypes.oneOfType([
|
|
3355
|
+
PropTypes.string,
|
|
3356
|
+
PropTypes.shape({
|
|
3357
|
+
text: PropTypes.string.isRequired,
|
|
3358
|
+
icon: PropTypes.node.isRequired
|
|
3359
|
+
})
|
|
3360
|
+
]),
|
|
3361
|
+
errorContent: PropTypes.node,
|
|
3362
|
+
onFetchErrorDetails: PropTypes.func,
|
|
3363
|
+
fetchErrorDetailsTitle: PropTypes.string,
|
|
3364
|
+
hasValidationError: PropTypes.bool
|
|
3365
|
+
};
|
|
3366
|
+
constructor(props) {
|
|
3367
|
+
super(props);
|
|
3368
|
+
const {
|
|
3369
|
+
type,
|
|
3370
|
+
value,
|
|
3371
|
+
showItemIcon,
|
|
3372
|
+
showMissingItems,
|
|
3373
|
+
allowNullableValues,
|
|
3374
|
+
getItems,
|
|
3375
|
+
initialItems,
|
|
3376
|
+
controlTestAnchor
|
|
3377
|
+
} = this.props;
|
|
3378
|
+
this.controlRef = React__default.createRef();
|
|
3379
|
+
this.badgeRef = React__default.createRef();
|
|
3380
|
+
this.searchRef = React__default.createRef();
|
|
3381
|
+
this.popupRef = React__default.createRef();
|
|
3382
|
+
this.selectorRef = React__default.createRef();
|
|
3383
|
+
this._publishEvent = eventBroker.withEventPublisher("Select", controlTestAnchor);
|
|
3384
|
+
this.fetchCounter = 0;
|
|
3385
|
+
let items = [];
|
|
3386
|
+
let titles = [];
|
|
3387
|
+
let isInitPending = false;
|
|
3388
|
+
let innerValue = /* @__PURE__ */ new Set();
|
|
3389
|
+
let singleSelectItem;
|
|
3390
|
+
if (getItems && (!this.isEmpty() || initialItems)) {
|
|
3391
|
+
const missingItems = YCSelect.getMissingItems(initialItems, value, showMissingItems);
|
|
3392
|
+
items = missingItems.concat(initialItems || []);
|
|
3393
|
+
isInitPending = true;
|
|
3394
|
+
innerValue = YCSelect.getInnerValue(value, allowNullableValues);
|
|
3395
|
+
} else if (!getItems) {
|
|
3396
|
+
const missingItems = YCSelect.getMissingItems(
|
|
3397
|
+
this.props.items,
|
|
3398
|
+
value,
|
|
3399
|
+
showMissingItems
|
|
3400
|
+
);
|
|
3401
|
+
items = missingItems.concat(this.props.items || []);
|
|
3402
|
+
innerValue = YCSelect.getInnerValue(value, allowNullableValues);
|
|
3403
|
+
titles = YCSelect.getTitles(items, innerValue);
|
|
3404
|
+
}
|
|
3405
|
+
if (type === YCSelect.SINGLE && showItemIcon) {
|
|
3406
|
+
singleSelectItem = YCSelect.getSingleSelectedItem(items, innerValue);
|
|
3407
|
+
}
|
|
3408
|
+
this.state = {
|
|
3409
|
+
items,
|
|
3410
|
+
titles,
|
|
3411
|
+
innerValue,
|
|
3412
|
+
isInitPending,
|
|
3413
|
+
singleSelectItem,
|
|
3414
|
+
prevPropsItems: items,
|
|
3415
|
+
prevPropsValue: value,
|
|
3416
|
+
shownItems: items,
|
|
3417
|
+
selectedPopupItems: [],
|
|
3418
|
+
selectItems: [],
|
|
3419
|
+
inputValue: "",
|
|
3420
|
+
showMainPopup: false,
|
|
3421
|
+
showSelectedPopup: false,
|
|
3422
|
+
isFetchingItems: false,
|
|
3423
|
+
isControlClicked: false,
|
|
3424
|
+
isItemsGrouped: YCSelect.isItemsGrouped(items),
|
|
3425
|
+
fetchError: null
|
|
3426
|
+
};
|
|
3427
|
+
}
|
|
3428
|
+
_updateControlWidth = throttle(() => {
|
|
3429
|
+
if (!this._isMounted) {
|
|
3430
|
+
return;
|
|
3431
|
+
}
|
|
3432
|
+
const controlWidth = Math.ceil(this.controlRef.current.getBoundingClientRect().width);
|
|
3433
|
+
if (this.state.controlWidth !== controlWidth) {
|
|
3434
|
+
this.setState({ controlWidth });
|
|
3435
|
+
}
|
|
3436
|
+
}, THROTTLE_DELAY);
|
|
3437
|
+
componentDidMount() {
|
|
3438
|
+
this._isMounted = true;
|
|
3439
|
+
setTimeout(() => {
|
|
3440
|
+
this._updateControlWidth();
|
|
3441
|
+
}, 0);
|
|
3442
|
+
if (this.state.isInitPending) {
|
|
3443
|
+
this._initItems();
|
|
3444
|
+
}
|
|
3445
|
+
}
|
|
3446
|
+
componentDidUpdate(prevProps) {
|
|
3447
|
+
const { controlWidth } = this.props;
|
|
3448
|
+
if (!prevProps.getItems && this.props.getItems || prevProps.getItems && this.props.getItems && !isEqual(prevProps.initialItems, this.props.initialItems)) {
|
|
3449
|
+
const { type, value, showItemIcon, showMissingItems, allowNullableValues, initialItems } = this.props;
|
|
3450
|
+
this.fetchCounter = 0;
|
|
3451
|
+
let items = [];
|
|
3452
|
+
let isInitPending = false;
|
|
3453
|
+
let innerValue = /* @__PURE__ */ new Set();
|
|
3454
|
+
let singleSelectItem;
|
|
3455
|
+
if (!this.isEmpty() || initialItems) {
|
|
3456
|
+
const missingItems = YCSelect.getMissingItems(
|
|
3457
|
+
initialItems,
|
|
3458
|
+
value,
|
|
3459
|
+
showMissingItems
|
|
3460
|
+
);
|
|
3461
|
+
items = missingItems.concat(initialItems);
|
|
3462
|
+
isInitPending = true;
|
|
3463
|
+
innerValue = YCSelect.getInnerValue(value, allowNullableValues);
|
|
3464
|
+
}
|
|
3465
|
+
const titles = YCSelect.getTitles(items, innerValue);
|
|
3466
|
+
if (type === YCSelect.SINGLE && showItemIcon) {
|
|
3467
|
+
singleSelectItem = YCSelect.getSingleSelectedItem(items, innerValue);
|
|
3468
|
+
}
|
|
3469
|
+
this.setState(
|
|
3470
|
+
safeStateUpdater(this.state, {
|
|
3471
|
+
items,
|
|
3472
|
+
titles,
|
|
3473
|
+
innerValue,
|
|
3474
|
+
isInitPending,
|
|
3475
|
+
singleSelectItem,
|
|
3476
|
+
prevPropsItems: items,
|
|
3477
|
+
prevPropsValue: value,
|
|
3478
|
+
shownItems: items,
|
|
3479
|
+
inputValue: ""
|
|
3480
|
+
})
|
|
3481
|
+
);
|
|
3482
|
+
return;
|
|
3483
|
+
}
|
|
3484
|
+
if (this.state.isInitPending) {
|
|
3485
|
+
this._initItems();
|
|
3486
|
+
}
|
|
3487
|
+
if (controlWidth) {
|
|
3488
|
+
return;
|
|
3489
|
+
}
|
|
3490
|
+
this._updateControlWidth();
|
|
3491
|
+
if (this.selectorRef.current) {
|
|
3492
|
+
if (this.state.showMainPopup) {
|
|
3493
|
+
this.selectorRef.current.addEventListener(
|
|
3494
|
+
"scroll",
|
|
3495
|
+
this._handleSelectorScroll,
|
|
3496
|
+
true
|
|
3497
|
+
);
|
|
3498
|
+
} else {
|
|
3499
|
+
this.selectorRef.current.removeEventListener(
|
|
3500
|
+
"scroll",
|
|
3501
|
+
this._handleSelectorScroll,
|
|
3502
|
+
true
|
|
3503
|
+
);
|
|
3504
|
+
}
|
|
3505
|
+
}
|
|
3506
|
+
}
|
|
3507
|
+
componentWillUnmount() {
|
|
3508
|
+
this._isMounted = false;
|
|
3509
|
+
if (this.selectorRef.current) {
|
|
3510
|
+
this.selectorRef.current.removeEventListener(
|
|
3511
|
+
"scroll",
|
|
3512
|
+
this._handleSelectorScroll,
|
|
3513
|
+
true
|
|
3514
|
+
);
|
|
3515
|
+
}
|
|
3516
|
+
}
|
|
3517
|
+
isEmpty() {
|
|
3518
|
+
const { type, value } = this.props;
|
|
3519
|
+
if (type === YCSelect.SINGLE) {
|
|
3520
|
+
return isFalsy(value);
|
|
3521
|
+
} else {
|
|
3522
|
+
return (value || []).filter((value2) => !isFalsy(value2)).length === 0;
|
|
3523
|
+
}
|
|
3524
|
+
}
|
|
3525
|
+
selectItem = (item) => {
|
|
3526
|
+
const { allowEmptyValue } = this.props;
|
|
3527
|
+
const prevInnerValue = new Set(this.state.innerValue);
|
|
3528
|
+
const innerValue = allowEmptyValue && prevInnerValue.has(item.value) ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([item.value]);
|
|
3529
|
+
const state = {
|
|
3530
|
+
innerValue,
|
|
3531
|
+
showMainPopup: false
|
|
3532
|
+
};
|
|
3533
|
+
this.setState(safeStateUpdater(this.state, state), () => {
|
|
3534
|
+
this._onUpdate();
|
|
3535
|
+
this._onOpenChange({ open: false });
|
|
3536
|
+
});
|
|
3537
|
+
};
|
|
3538
|
+
selectItems = (item) => {
|
|
3539
|
+
const { getItems } = this.props;
|
|
3540
|
+
const { items } = this.state;
|
|
3541
|
+
const innerValue = new Set(this.state.innerValue);
|
|
3542
|
+
if (innerValue.has(item.value)) {
|
|
3543
|
+
innerValue.delete(item.value);
|
|
3544
|
+
} else {
|
|
3545
|
+
innerValue.add(item.value);
|
|
3546
|
+
}
|
|
3547
|
+
const state = {
|
|
3548
|
+
innerValue,
|
|
3549
|
+
selectedCurrentItem: void 0
|
|
3550
|
+
};
|
|
3551
|
+
if (getItems) {
|
|
3552
|
+
state.selectItems = [
|
|
3553
|
+
.../* @__PURE__ */ new Set([...this.state.selectItems, ...this.state.selectedPopupItems, ...items])
|
|
3554
|
+
].filter((item2) => innerValue.has(item2.value));
|
|
3555
|
+
}
|
|
3556
|
+
this.setState(safeStateUpdater(this.state, state), this._beforeOnUpdate);
|
|
3557
|
+
};
|
|
3558
|
+
onSingleSearchButtonClick = () => {
|
|
3559
|
+
this.setState(
|
|
3560
|
+
safeStateUpdater(this.state, {
|
|
3561
|
+
innerValue: /* @__PURE__ */ new Set(),
|
|
3562
|
+
showMainPopup: false
|
|
3563
|
+
}),
|
|
3564
|
+
this._onUpdate
|
|
3565
|
+
);
|
|
3566
|
+
};
|
|
3567
|
+
onMultipleSearchButtonClick = () => {
|
|
3568
|
+
const { getItems } = this.props;
|
|
3569
|
+
const { items, shownItems, isItemsGrouped } = this.state;
|
|
3570
|
+
const state = {};
|
|
3571
|
+
let shownItemsValue;
|
|
3572
|
+
if (isItemsGrouped) {
|
|
3573
|
+
shownItemsValue = new Set(
|
|
3574
|
+
_flatMap(
|
|
3575
|
+
shownItems,
|
|
3576
|
+
({ items: groupedItems }) => groupedItems.filter((item) => !item.disabled).map((item) => item.value)
|
|
3577
|
+
)
|
|
3578
|
+
);
|
|
3579
|
+
} else {
|
|
3580
|
+
shownItemsValue = new Set(
|
|
3581
|
+
shownItems.filter((item) => !item.disabled && !item.missing).map((item) => item.value)
|
|
3582
|
+
);
|
|
3583
|
+
}
|
|
3584
|
+
let innerValue = /* @__PURE__ */ new Set([...this.state.innerValue, ...shownItemsValue]);
|
|
3585
|
+
if (innerValue.size === this.state.innerValue.size) {
|
|
3586
|
+
innerValue = new Set(
|
|
3587
|
+
[...this.state.innerValue].filter((innerVal) => !shownItemsValue.has(innerVal))
|
|
3588
|
+
);
|
|
3589
|
+
}
|
|
3590
|
+
state.innerValue = innerValue;
|
|
3591
|
+
if (getItems) {
|
|
3592
|
+
const allItems = /* @__PURE__ */ new Set([
|
|
3593
|
+
...items,
|
|
3594
|
+
...this.state.selectedPopupItems,
|
|
3595
|
+
...this.state.selectItems || []
|
|
3596
|
+
]);
|
|
3597
|
+
state.selectItems = [...allItems].filter((item) => innerValue.has(item.value));
|
|
3598
|
+
}
|
|
3599
|
+
this.setState(safeStateUpdater(this.state, state), this._beforeOnUpdate);
|
|
3600
|
+
};
|
|
3601
|
+
selectOnlyCurrentItem = (selectedItem) => {
|
|
3602
|
+
const { getItems } = this.props;
|
|
3603
|
+
const {
|
|
3604
|
+
items,
|
|
3605
|
+
selectedCurrentItem: { value: prevSelectedItemValue } = {},
|
|
3606
|
+
shownItems,
|
|
3607
|
+
selectedPopupItems,
|
|
3608
|
+
showSelectedPopup,
|
|
3609
|
+
isItemsGrouped
|
|
3610
|
+
} = this.state;
|
|
3611
|
+
const state = { selectedCurrentItem: void 0 };
|
|
3612
|
+
if (selectedItem.value === prevSelectedItemValue) {
|
|
3613
|
+
const itemsToFilter = showSelectedPopup ? selectedPopupItems : shownItems;
|
|
3614
|
+
let innerValue;
|
|
3615
|
+
if (isItemsGrouped) {
|
|
3616
|
+
innerValue = new Set(
|
|
3617
|
+
_flatMap(
|
|
3618
|
+
itemsToFilter,
|
|
3619
|
+
({ items: groupedItems }) => groupedItems.filter((item) => !item.disabled && item.value !== selectedItem.value).map((item) => item.value)
|
|
3620
|
+
)
|
|
3621
|
+
);
|
|
3622
|
+
} else {
|
|
3623
|
+
innerValue = new Set(
|
|
3624
|
+
itemsToFilter.filter((item) => !item.disabled && item.value !== selectedItem.value).map((item) => item.value)
|
|
3625
|
+
);
|
|
3626
|
+
}
|
|
3627
|
+
state.innerValue = innerValue;
|
|
3628
|
+
if (getItems) {
|
|
3629
|
+
const allItems = /* @__PURE__ */ new Set([...items, ...this.state.selectedPopupItems]);
|
|
3630
|
+
state.selectItems = [...allItems].filter((item) => innerValue.has(item.value));
|
|
3631
|
+
}
|
|
3632
|
+
} else {
|
|
3633
|
+
state.innerValue = /* @__PURE__ */ new Set([selectedItem.value]);
|
|
3634
|
+
state.selectedCurrentItem = selectedItem;
|
|
3635
|
+
if (getItems) {
|
|
3636
|
+
state.selectItems = [selectedItem];
|
|
3637
|
+
}
|
|
3638
|
+
}
|
|
3639
|
+
this.setState(safeStateUpdater(this.state, state), this._beforeOnUpdate);
|
|
3640
|
+
};
|
|
3641
|
+
addNewItem = async (inputValue) => {
|
|
3642
|
+
const { getItems, addItem } = this.props;
|
|
3643
|
+
await addItem(inputValue);
|
|
3644
|
+
if (getItems) {
|
|
3645
|
+
this._onInputUpdateDynamic(inputValue);
|
|
3646
|
+
} else {
|
|
3647
|
+
this._onInputUpdateStatic(inputValue);
|
|
3648
|
+
}
|
|
3649
|
+
};
|
|
3650
|
+
setPopupWidth = (width) => {
|
|
3651
|
+
this.setState({ popupWidth: width });
|
|
3652
|
+
};
|
|
3653
|
+
_handleSelectorScroll = debounce$1((event) => {
|
|
3654
|
+
const { scrollTop } = event.target || {};
|
|
3655
|
+
this._publishEvent({ eventId: "selector-scroll", meta: { scrollTop } });
|
|
3656
|
+
}, 200);
|
|
3657
|
+
_initItems = async () => {
|
|
3658
|
+
const { value, initialItems, showMissingItems } = this.props;
|
|
3659
|
+
const { initialNextPageToken } = this.state;
|
|
3660
|
+
const exactKeys = new Set(Array.isArray(value) ? value.filter(Boolean) : [value]);
|
|
3661
|
+
const { items: fetchedItems, nextPageToken } = await this.props.getItems({
|
|
3662
|
+
exactKeys: [...exactKeys.values()]
|
|
3663
|
+
});
|
|
3664
|
+
let items = fetchedItems;
|
|
3665
|
+
let shownItems = fetchedItems;
|
|
3666
|
+
if (initialItems && (nextPageToken === initialNextPageToken || !initialNextPageToken)) {
|
|
3667
|
+
items = uniq(this.state.items, fetchedItems);
|
|
3668
|
+
shownItems = items;
|
|
3669
|
+
}
|
|
3670
|
+
const missingItems = YCSelect.getMissingItems(fetchedItems, value, showMissingItems);
|
|
3671
|
+
const { innerValue, singleSelectItem, titles } = YCSelect.getInnerValueState(
|
|
3672
|
+
this.props,
|
|
3673
|
+
missingItems.length ? _uniqBy(fetchedItems.concat(missingItems), "value") : fetchedItems
|
|
3674
|
+
);
|
|
3675
|
+
this.setState(
|
|
3676
|
+
safeStateUpdater(this.state, {
|
|
3677
|
+
items,
|
|
3678
|
+
shownItems,
|
|
3679
|
+
selectItems: fetchedItems,
|
|
3680
|
+
innerValue,
|
|
3681
|
+
titles,
|
|
3682
|
+
singleSelectItem,
|
|
3683
|
+
nextPageToken,
|
|
3684
|
+
initialNextPageToken: nextPageToken,
|
|
3685
|
+
isInitPending: false
|
|
3686
|
+
})
|
|
3687
|
+
);
|
|
3688
|
+
};
|
|
3689
|
+
_fetchItems = async () => {
|
|
3690
|
+
const { getItems, itemsPageSize } = this.props;
|
|
3691
|
+
if (getItems) {
|
|
3692
|
+
const { inputValue, nextPageToken, selectItems = [] } = this.state;
|
|
3693
|
+
this.setState(
|
|
3694
|
+
{ isFetchingItems: true },
|
|
3695
|
+
this.popupRef.current && this.popupRef.current.forceUpdate
|
|
3696
|
+
);
|
|
3697
|
+
try {
|
|
3698
|
+
this.fetchCounter += 1;
|
|
3699
|
+
const fetchData = await getItems({
|
|
3700
|
+
searchPattern: inputValue,
|
|
3701
|
+
itemsPageSize,
|
|
3702
|
+
nextPageToken
|
|
3703
|
+
});
|
|
3704
|
+
this.fetchCounter -= 1;
|
|
3705
|
+
if (this.fetchCounter > 0) {
|
|
3706
|
+
this.setState(
|
|
3707
|
+
{
|
|
3708
|
+
fetchError: null,
|
|
3709
|
+
isFetchingItems: true
|
|
3710
|
+
},
|
|
3711
|
+
this.popupRef.current && this.popupRef.current.forceUpdate
|
|
3712
|
+
);
|
|
3713
|
+
return;
|
|
3714
|
+
}
|
|
3715
|
+
const items = uniq(
|
|
3716
|
+
nextPageToken ? this.state.items.concat(fetchData.items) : fetchData.items,
|
|
3717
|
+
selectItems
|
|
3718
|
+
);
|
|
3719
|
+
this.setState(
|
|
3720
|
+
safeStateUpdater(this.state, {
|
|
3721
|
+
items,
|
|
3722
|
+
shownItems: items,
|
|
3723
|
+
nextPageToken: fetchData.nextPageToken,
|
|
3724
|
+
fetchError: null,
|
|
3725
|
+
isFetchingItems: false
|
|
3726
|
+
}),
|
|
3727
|
+
this.popupRef.current && this.popupRef.current.forceUpdate
|
|
3728
|
+
);
|
|
3729
|
+
} catch (error) {
|
|
3730
|
+
this.fetchCounter -= 1;
|
|
3731
|
+
if (this.fetchCounter > 0) {
|
|
3732
|
+
this.setState({
|
|
3733
|
+
fetchError: null,
|
|
3734
|
+
isFetchingItems: true
|
|
3735
|
+
});
|
|
3736
|
+
return;
|
|
3737
|
+
}
|
|
3738
|
+
this.setState({
|
|
3739
|
+
fetchError: error,
|
|
3740
|
+
isFetchingItems: false
|
|
3741
|
+
});
|
|
3742
|
+
}
|
|
3743
|
+
}
|
|
3744
|
+
};
|
|
3745
|
+
_getSearchButtonSettings() {
|
|
3746
|
+
const { type, allowEmptyValue, showSelectAll } = this.props;
|
|
3747
|
+
const { shownItems = [], isItemsGrouped } = this.state;
|
|
3748
|
+
const settings = {
|
|
3749
|
+
isCleaning: true,
|
|
3750
|
+
visible: showSelectAll
|
|
3751
|
+
};
|
|
3752
|
+
if (type === YCSelect.SINGLE) {
|
|
3753
|
+
settings.visible = Boolean(
|
|
3754
|
+
showSelectAll && this.state.innerValue.size && allowEmptyValue
|
|
3755
|
+
);
|
|
3756
|
+
return settings;
|
|
3757
|
+
}
|
|
3758
|
+
if (!shownItems.length) {
|
|
3759
|
+
settings.visible = false;
|
|
3760
|
+
return settings;
|
|
3761
|
+
}
|
|
3762
|
+
let shownItemsValue;
|
|
3763
|
+
if (isItemsGrouped) {
|
|
3764
|
+
shownItemsValue = new Set(
|
|
3765
|
+
_flatMap(
|
|
3766
|
+
shownItems,
|
|
3767
|
+
({ items: groupedItems }) => groupedItems.filter((item) => !item.disabled).map((item) => item.value)
|
|
3768
|
+
)
|
|
3769
|
+
);
|
|
3770
|
+
} else {
|
|
3771
|
+
shownItemsValue = new Set(
|
|
3772
|
+
shownItems.filter((item) => !item.disabled).map((item) => item.value)
|
|
3773
|
+
);
|
|
3774
|
+
}
|
|
3775
|
+
const innerValue = /* @__PURE__ */ new Set([...this.state.innerValue, ...shownItemsValue]);
|
|
3776
|
+
settings.isCleaning = innerValue.size === this.state.innerValue.size;
|
|
3777
|
+
return settings;
|
|
3778
|
+
}
|
|
3779
|
+
_getOutputItems() {
|
|
3780
|
+
const {
|
|
3781
|
+
innerValue,
|
|
3782
|
+
items,
|
|
3783
|
+
selectItems,
|
|
3784
|
+
selectedPopupItems,
|
|
3785
|
+
showSelectedPopup,
|
|
3786
|
+
isItemsGrouped
|
|
3787
|
+
} = this.state;
|
|
3788
|
+
if (showSelectedPopup) {
|
|
3789
|
+
return getFlattenItems({
|
|
3790
|
+
innerValue,
|
|
3791
|
+
isItemsGrouped,
|
|
3792
|
+
items: selectedPopupItems
|
|
3793
|
+
});
|
|
3794
|
+
}
|
|
3795
|
+
const knownItems = _uniqBy(items.concat(selectItems), "value");
|
|
3796
|
+
return getFlattenItems({
|
|
3797
|
+
innerValue,
|
|
3798
|
+
isItemsGrouped,
|
|
3799
|
+
items: knownItems
|
|
3800
|
+
});
|
|
3801
|
+
}
|
|
3802
|
+
_getPreviousValue = () => {
|
|
3803
|
+
const { value, allowNullableValues } = this.props;
|
|
3804
|
+
const { items, selectItems } = this.state;
|
|
3805
|
+
const knownItems = _uniqBy(items.concat(selectItems), "value");
|
|
3806
|
+
const innerValue = YCSelect.getInnerValue(value, allowNullableValues);
|
|
3807
|
+
const titles = YCSelect.getTitles(knownItems, innerValue);
|
|
3808
|
+
return { innerValue, titles };
|
|
3809
|
+
};
|
|
3810
|
+
_onInputUpdateStatic = (inputValue) => {
|
|
3811
|
+
const { showItemMeta } = this.props;
|
|
3812
|
+
const { items, isItemsGrouped } = this.state;
|
|
3813
|
+
let shownItems;
|
|
3814
|
+
if (inputValue) {
|
|
3815
|
+
const regExp = getEscapedRegExp(inputValue);
|
|
3816
|
+
if (isItemsGrouped) {
|
|
3817
|
+
shownItems = items.map((group) => {
|
|
3818
|
+
const groupItems = group.items.filter(
|
|
3819
|
+
(item) => regExp.test(item.title) || showItemMeta && regExp.test(item.meta)
|
|
3820
|
+
);
|
|
3821
|
+
return {
|
|
3822
|
+
groupTitle: group.groupTitle,
|
|
3823
|
+
items: groupItems
|
|
3824
|
+
};
|
|
3825
|
+
}).filter((group) => group.items.length);
|
|
3826
|
+
} else {
|
|
3827
|
+
shownItems = items.filter(
|
|
3828
|
+
(item) => regExp.test(item.title) || showItemMeta && regExp.test(item.meta)
|
|
3829
|
+
);
|
|
3830
|
+
}
|
|
3831
|
+
} else {
|
|
3832
|
+
shownItems = [...items];
|
|
3833
|
+
}
|
|
3834
|
+
const state = {
|
|
3835
|
+
shownItems,
|
|
3836
|
+
inputValue
|
|
3837
|
+
};
|
|
3838
|
+
this.setState(safeStateUpdater(this.state, state));
|
|
3839
|
+
};
|
|
3840
|
+
_onInputUpdateDynamic = (inputValue) => {
|
|
3841
|
+
const { initialItems } = this.props;
|
|
3842
|
+
if (!inputValue) {
|
|
3843
|
+
this.setState(
|
|
3844
|
+
safeStateUpdater(this.state, {
|
|
3845
|
+
items: initialItems || [],
|
|
3846
|
+
shownItems: initialItems || [],
|
|
3847
|
+
inputValue: "",
|
|
3848
|
+
nextPageToken: this.state.initialNextPageToken,
|
|
3849
|
+
fetchError: false,
|
|
3850
|
+
isFetchingItems: false
|
|
3851
|
+
}),
|
|
3852
|
+
() => {
|
|
3853
|
+
if (this.popupRef.current) {
|
|
3854
|
+
this.popupRef.current.forceUpdate();
|
|
3855
|
+
}
|
|
3856
|
+
if (this.debouncedFetchItems) {
|
|
3857
|
+
this.debouncedFetchItems.cancel();
|
|
3858
|
+
}
|
|
3859
|
+
}
|
|
3860
|
+
);
|
|
3861
|
+
return;
|
|
3862
|
+
}
|
|
3863
|
+
const { nextPageToken } = this.state;
|
|
3864
|
+
this.setState(
|
|
3865
|
+
safeStateUpdater(this.state, {
|
|
3866
|
+
inputValue,
|
|
3867
|
+
prevInputValue: this.state.inputValue,
|
|
3868
|
+
nextPageToken: inputValue === this.state.inputValue ? nextPageToken : void 0,
|
|
3869
|
+
isFetchingItems: true
|
|
3870
|
+
}),
|
|
3871
|
+
() => {
|
|
3872
|
+
if (this.debouncedFetchItems) {
|
|
3873
|
+
this.debouncedFetchItems.cancel();
|
|
3874
|
+
}
|
|
3875
|
+
this.debouncedFetchItems = debounce$1(this._fetchItems, DEBOUNCE_DELAY);
|
|
3876
|
+
this.debouncedFetchItems();
|
|
3877
|
+
if (this.popupRef.current) {
|
|
3878
|
+
this.popupRef.current.forceUpdate();
|
|
3879
|
+
}
|
|
3880
|
+
}
|
|
3881
|
+
);
|
|
3882
|
+
};
|
|
3883
|
+
_onBadgeClick = (e) => {
|
|
3884
|
+
const { getItems, showApply, applyOnOutsideClick, loadingItems } = this.props;
|
|
3885
|
+
const {
|
|
3886
|
+
items,
|
|
3887
|
+
innerValue,
|
|
3888
|
+
showSelectedPopup,
|
|
3889
|
+
selectItems,
|
|
3890
|
+
isItemsGrouped,
|
|
3891
|
+
isControlClicked,
|
|
3892
|
+
showMainPopup
|
|
3893
|
+
} = this.state;
|
|
3894
|
+
if (e.target !== this.badgeRef.current) {
|
|
3895
|
+
return;
|
|
3896
|
+
}
|
|
3897
|
+
let state = {
|
|
3898
|
+
showSelectedPopup: !showSelectedPopup,
|
|
3899
|
+
showMainPopup: false
|
|
3900
|
+
};
|
|
3901
|
+
if (loadingItems) {
|
|
3902
|
+
state = {
|
|
3903
|
+
showMainPopup: !showMainPopup,
|
|
3904
|
+
showSelectedPopup: false
|
|
3905
|
+
};
|
|
3906
|
+
this.setState(state);
|
|
3907
|
+
return;
|
|
3908
|
+
}
|
|
3909
|
+
if (showApply && !applyOnOutsideClick) {
|
|
3910
|
+
state = {
|
|
3911
|
+
...state,
|
|
3912
|
+
...this._getPreviousValue()
|
|
3913
|
+
};
|
|
3914
|
+
}
|
|
3915
|
+
if (getItems) {
|
|
3916
|
+
state.selectedPopupItems = _uniqBy(
|
|
3917
|
+
[
|
|
3918
|
+
...items.filter((item) => (state.innerValue || innerValue).has(item.value)),
|
|
3919
|
+
...selectItems
|
|
3920
|
+
],
|
|
3921
|
+
"value"
|
|
3922
|
+
);
|
|
3923
|
+
} else if (isItemsGrouped) {
|
|
3924
|
+
state.selectedPopupItems = items.map((group) => {
|
|
3925
|
+
const groupItems = group.items.filter(
|
|
3926
|
+
(item) => (state.innerValue || innerValue).has(item.value)
|
|
3927
|
+
);
|
|
3928
|
+
return {
|
|
3929
|
+
groupTitle: group.groupTitle,
|
|
3930
|
+
items: groupItems
|
|
3931
|
+
};
|
|
3932
|
+
});
|
|
3933
|
+
} else {
|
|
3934
|
+
state.selectedPopupItems = items.filter(
|
|
3935
|
+
(item) => (state.innerValue || innerValue).has(item.value)
|
|
3936
|
+
);
|
|
3937
|
+
}
|
|
3938
|
+
if (!isControlClicked) {
|
|
3939
|
+
state.isControlClicked = true;
|
|
3940
|
+
}
|
|
3941
|
+
if (!showMainPopup) {
|
|
3942
|
+
this._onOpenChange({ open: state.showSelectedPopup });
|
|
3943
|
+
}
|
|
3944
|
+
this.setState(safeStateUpdater(this.state, state));
|
|
3945
|
+
};
|
|
3946
|
+
_onControlClick = (e) => {
|
|
3947
|
+
const { showMainPopup, isControlClicked, showSelectedPopup } = this.state;
|
|
3948
|
+
const { showApply, applyOnOutsideClick, disabled } = this.props;
|
|
3949
|
+
if (disabled || e.target === this.badgeRef.current) {
|
|
3950
|
+
return;
|
|
3951
|
+
}
|
|
3952
|
+
let state = {
|
|
3953
|
+
showMainPopup: !showMainPopup,
|
|
3954
|
+
showSelectedPopup: false
|
|
3955
|
+
};
|
|
3956
|
+
if (showMainPopup && showApply) {
|
|
3957
|
+
if (applyOnOutsideClick) {
|
|
3958
|
+
this._onUpdate({ isOutsideClick: true });
|
|
3959
|
+
} else {
|
|
3960
|
+
state = {
|
|
3961
|
+
...state,
|
|
3962
|
+
...this._getPreviousValue()
|
|
3963
|
+
};
|
|
3964
|
+
}
|
|
3965
|
+
}
|
|
3966
|
+
if (!isControlClicked) {
|
|
3967
|
+
state.isControlClicked = true;
|
|
3968
|
+
}
|
|
3969
|
+
if (!showSelectedPopup) {
|
|
3970
|
+
this._onOpenChange({ open: state.showMainPopup });
|
|
3971
|
+
}
|
|
3972
|
+
this.setState(safeStateUpdater(this.state, state));
|
|
3973
|
+
};
|
|
3974
|
+
_onControlClickCapture = (e) => {
|
|
3975
|
+
this._publishEvent({
|
|
3976
|
+
eventId: "click",
|
|
3977
|
+
domEvent: e
|
|
3978
|
+
});
|
|
3979
|
+
};
|
|
3980
|
+
_onControlKeyPress = (e) => {
|
|
3981
|
+
if (e.nativeEvent.code === "Enter" || e.nativeEvent.code === "Space") {
|
|
3982
|
+
this._onControlClick(e);
|
|
3983
|
+
e.preventDefault();
|
|
3984
|
+
}
|
|
3985
|
+
};
|
|
3986
|
+
_onControlKeyPressCapture = (e) => {
|
|
3987
|
+
if (e.nativeEvent.code === "Enter" || e.nativeEvent.code === "Space") {
|
|
3988
|
+
this._onControlClickCapture(e);
|
|
3989
|
+
}
|
|
3990
|
+
};
|
|
3991
|
+
_onApplyClick = () => {
|
|
3992
|
+
this._onUpdate();
|
|
3993
|
+
this.setState({
|
|
3994
|
+
showMainPopup: false,
|
|
3995
|
+
showSelectedPopup: false
|
|
3996
|
+
});
|
|
3997
|
+
};
|
|
3998
|
+
_beforeOnUpdate() {
|
|
3999
|
+
const { getItems, showApply } = this.props;
|
|
4000
|
+
const { selectItems, innerValue } = this.state;
|
|
4001
|
+
let items = this.state.items;
|
|
4002
|
+
if (getItems) {
|
|
4003
|
+
items = [...new Set(items.concat(selectItems || []))];
|
|
4004
|
+
}
|
|
4005
|
+
if (showApply) {
|
|
4006
|
+
this.setState(
|
|
4007
|
+
safeStateUpdater(this.state, {
|
|
4008
|
+
titles: YCSelect.getTitles(items, innerValue)
|
|
4009
|
+
})
|
|
4010
|
+
);
|
|
4011
|
+
} else {
|
|
4012
|
+
this._onUpdate();
|
|
4013
|
+
}
|
|
4014
|
+
}
|
|
4015
|
+
_onUpdate = ({ isOutsideClick } = {}) => {
|
|
4016
|
+
const { type, allowNullableValues, onUpdate } = this.props;
|
|
4017
|
+
const { innerValue } = this.state;
|
|
4018
|
+
const values = [...innerValue];
|
|
4019
|
+
let outputValues;
|
|
4020
|
+
let outputItems;
|
|
4021
|
+
if (onUpdate.length > 1) {
|
|
4022
|
+
outputItems = this._getOutputItems();
|
|
4023
|
+
}
|
|
4024
|
+
if (type === YCSelect.SINGLE) {
|
|
4025
|
+
const checkFunction = allowNullableValues ? isUndefined : isFalsy;
|
|
4026
|
+
const nullableValue = allowNullableValues ? void 0 : null;
|
|
4027
|
+
outputValues = checkFunction(values[0]) ? nullableValue : values[0];
|
|
4028
|
+
outputItems = outputItems ? outputItems[0] : nullableValue;
|
|
4029
|
+
} else {
|
|
4030
|
+
outputValues = values;
|
|
4031
|
+
}
|
|
4032
|
+
onUpdate(outputValues, { items: outputItems, isOutsideClick });
|
|
4033
|
+
};
|
|
4034
|
+
_onOutsideMainPopupClick = () => {
|
|
4035
|
+
const { showApply, applyOnOutsideClick } = this.props;
|
|
4036
|
+
const { shownItems, isItemsGrouped } = this.state;
|
|
4037
|
+
const isDisabled = isItemsGrouped ? shownItems.every((group) => group.items && !group.items.length) : !shownItems.length;
|
|
4038
|
+
let state = { showMainPopup: false };
|
|
4039
|
+
if (showApply && !isDisabled) {
|
|
4040
|
+
if (applyOnOutsideClick) {
|
|
4041
|
+
this._onUpdate({ isOutsideClick: true });
|
|
4042
|
+
} else {
|
|
4043
|
+
state = {
|
|
4044
|
+
...state,
|
|
4045
|
+
...this._getPreviousValue()
|
|
4046
|
+
};
|
|
4047
|
+
}
|
|
4048
|
+
}
|
|
4049
|
+
this.setState(safeStateUpdater(this.state, state));
|
|
4050
|
+
this._onOpenChange({ open: state.showMainPopup });
|
|
4051
|
+
};
|
|
4052
|
+
_onOutsideSelectedItemsPopupClick = () => {
|
|
4053
|
+
const { showApply, applyOnOutsideClick } = this.props;
|
|
4054
|
+
const { selectedPopupItems, isItemsGrouped } = this.state;
|
|
4055
|
+
const isDisabled = isItemsGrouped ? selectedPopupItems.every((group) => group.items && !group.items.length) : !selectedPopupItems.length;
|
|
4056
|
+
let state = { showSelectedPopup: false };
|
|
4057
|
+
if (showApply && !isDisabled) {
|
|
4058
|
+
if (applyOnOutsideClick) {
|
|
4059
|
+
this._onUpdate({ isOutsideClick: true });
|
|
4060
|
+
} else {
|
|
4061
|
+
state = {
|
|
4062
|
+
...state,
|
|
4063
|
+
...this._getPreviousValue()
|
|
4064
|
+
};
|
|
4065
|
+
}
|
|
4066
|
+
}
|
|
4067
|
+
this.setState(safeStateUpdater(this.state, state));
|
|
4068
|
+
this._onOpenChange({ open: state.showSelectedPopup });
|
|
4069
|
+
};
|
|
4070
|
+
_onOpenChange = (popupState) => {
|
|
4071
|
+
const { onOpenChange } = this.props;
|
|
4072
|
+
if (onOpenChange && typeof onOpenChange === "function") {
|
|
4073
|
+
onOpenChange(popupState);
|
|
4074
|
+
}
|
|
4075
|
+
};
|
|
4076
|
+
_getPopupMinWidth() {
|
|
4077
|
+
const { controlWidth, type, showSearch, onFetchErrorDetails } = this.props;
|
|
4078
|
+
const { fetchError } = this.state;
|
|
4079
|
+
const errorDetailsMinWidth = fetchError && onFetchErrorDetails ? 250 : void 0;
|
|
4080
|
+
const possibleMinWidth = getPossiblePopupMinWidth({
|
|
4081
|
+
withSearch: showSearch,
|
|
4082
|
+
multiple: type === YCSelect.MULTIPLE
|
|
4083
|
+
});
|
|
4084
|
+
return _max([
|
|
4085
|
+
errorDetailsMinWidth,
|
|
4086
|
+
possibleMinWidth,
|
|
4087
|
+
controlWidth || this.state.controlWidth
|
|
4088
|
+
]);
|
|
4089
|
+
}
|
|
4090
|
+
_getPopupClassNames() {
|
|
4091
|
+
const { popupClassName, type, showSearch } = this.props;
|
|
4092
|
+
const isMultiply = type === YCSelect.MULTIPLE;
|
|
4093
|
+
const mods = {
|
|
4094
|
+
search: showSearch,
|
|
4095
|
+
multi: isMultiply
|
|
4096
|
+
};
|
|
4097
|
+
let mixins = getModifier("desktop");
|
|
4098
|
+
if (popupClassName) {
|
|
4099
|
+
mixins += " " + popupClassName;
|
|
4100
|
+
}
|
|
4101
|
+
return bPopup(mods, mixins);
|
|
4102
|
+
}
|
|
4103
|
+
_getPopupStyles() {
|
|
4104
|
+
const { controlWidth, virtualizeThreshold, getItems, errorContent } = this.props;
|
|
4105
|
+
const { shownItems = [] } = this.state;
|
|
4106
|
+
const popupStyles = { minWidth: this._getPopupMinWidth() };
|
|
4107
|
+
if (!errorContent) {
|
|
4108
|
+
if (getItems || shownItems.length > virtualizeThreshold || this.props.popupWidth) {
|
|
4109
|
+
const width = this.props.popupWidth || controlWidth || this.state.controlWidth;
|
|
4110
|
+
popupStyles.width = width > MIN_VIRTUALIZED_POPUP_WIDTH ? width : MIN_VIRTUALIZED_POPUP_WIDTH;
|
|
4111
|
+
} else if (this.state.popupWidth) {
|
|
4112
|
+
popupStyles.width = this.state.popupWidth;
|
|
4113
|
+
}
|
|
4114
|
+
}
|
|
4115
|
+
return popupStyles;
|
|
4116
|
+
}
|
|
4117
|
+
_renderTokens() {
|
|
4118
|
+
const { placeholder } = this.props;
|
|
4119
|
+
const { titles, isInitPending } = this.state;
|
|
4120
|
+
let placeholderIcon;
|
|
4121
|
+
let placeholderText;
|
|
4122
|
+
if (placeholder && typeof placeholder === "object") {
|
|
4123
|
+
placeholderIcon = placeholder.icon;
|
|
4124
|
+
placeholderText = placeholder.text;
|
|
4125
|
+
} else if (placeholder) {
|
|
4126
|
+
placeholderText = placeholder;
|
|
4127
|
+
}
|
|
4128
|
+
placeholderText = isInitPending ? YCSelect.INIT_ITEMS_PLACEHOLDER : placeholderText || EMPTY_VALUE;
|
|
4129
|
+
const empty = !titles.length;
|
|
4130
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: bControl("tokens") }, placeholderIcon && !titles.length && /* @__PURE__ */ React__default.createElement("div", { className: bControl("placeholder-icon") }, placeholderIcon), /* @__PURE__ */ React__default.createElement("span", { className: bControl("tokens-text", { empty }) }, empty ? placeholderText : this._renderTitles(titles)));
|
|
4131
|
+
}
|
|
4132
|
+
_renderTitles(titles) {
|
|
4133
|
+
return titles.map((title, index) => {
|
|
4134
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, { key: index }, title, index === titles.length - 1 ? "" : ", ");
|
|
4135
|
+
});
|
|
4136
|
+
}
|
|
4137
|
+
_renderControl() {
|
|
4138
|
+
const {
|
|
4139
|
+
controlWidth,
|
|
4140
|
+
size,
|
|
4141
|
+
type,
|
|
4142
|
+
className,
|
|
4143
|
+
label,
|
|
4144
|
+
limitLabel,
|
|
4145
|
+
showArrow,
|
|
4146
|
+
showItemIcon,
|
|
4147
|
+
stretched,
|
|
4148
|
+
disabled,
|
|
4149
|
+
loading,
|
|
4150
|
+
renderSwitcher,
|
|
4151
|
+
switcherClassName,
|
|
4152
|
+
controlTestAnchor,
|
|
4153
|
+
errorContent,
|
|
4154
|
+
hasValidationError
|
|
4155
|
+
} = this.props;
|
|
4156
|
+
const {
|
|
4157
|
+
showMainPopup,
|
|
4158
|
+
showSelectedPopup,
|
|
4159
|
+
innerValue,
|
|
4160
|
+
isInitPending,
|
|
4161
|
+
singleSelectItem: { icon } = {}
|
|
4162
|
+
} = this.state;
|
|
4163
|
+
if (renderSwitcher) {
|
|
4164
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
4165
|
+
"div",
|
|
4166
|
+
{
|
|
4167
|
+
ref: this.controlRef,
|
|
4168
|
+
className: b("switcher", switcherClassName),
|
|
4169
|
+
onClick: this._onControlClick,
|
|
4170
|
+
onClickCapture: this._onControlClickCapture,
|
|
4171
|
+
"data-qa": controlTestAnchor
|
|
4172
|
+
},
|
|
4173
|
+
renderSwitcher()
|
|
4174
|
+
);
|
|
4175
|
+
}
|
|
4176
|
+
const controlMods = {
|
|
4177
|
+
size,
|
|
4178
|
+
focused: showMainPopup || showSelectedPopup,
|
|
4179
|
+
stretched,
|
|
4180
|
+
disabled: disabled || isInitPending || loading,
|
|
4181
|
+
"without-animation": (controlWidth || this.state.controlWidth) > MAX_CONTROL_WIDTH_WITH_ANIMATION,
|
|
4182
|
+
error: Boolean(errorContent) || hasValidationError
|
|
4183
|
+
};
|
|
4184
|
+
const badgeMods = {
|
|
4185
|
+
clicked: showSelectedPopup,
|
|
4186
|
+
"without-arrow": !showArrow
|
|
4187
|
+
};
|
|
4188
|
+
const isMultiply = type === YCSelect.MULTIPLE;
|
|
4189
|
+
const controlStyles = {};
|
|
4190
|
+
if (controlWidth) {
|
|
4191
|
+
controlStyles.width = controlWidth;
|
|
4192
|
+
}
|
|
4193
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
4194
|
+
"div",
|
|
4195
|
+
{
|
|
4196
|
+
ref: this.controlRef,
|
|
4197
|
+
tabIndex: disabled ? -1 : 0,
|
|
4198
|
+
className: className ? bControl(controlMods, className) : bControl(controlMods),
|
|
4199
|
+
style: controlStyles,
|
|
4200
|
+
onClick: this._onControlClick,
|
|
4201
|
+
onClickCapture: this._onControlClickCapture,
|
|
4202
|
+
onKeyPressCapture: this._onControlKeyPressCapture,
|
|
4203
|
+
onKeyPress: this._onControlKeyPress,
|
|
4204
|
+
"data-qa": controlTestAnchor
|
|
4205
|
+
},
|
|
4206
|
+
loading ? /* @__PURE__ */ React__default.createElement("div", { className: bControl("loader") }, /* @__PURE__ */ React__default.createElement(Loader, { size: "s" })) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, label && /* @__PURE__ */ React__default.createElement("span", { className: bControl("label", { limited: limitLabel }) }, label), !isMultiply && showItemIcon && icon && /* @__PURE__ */ React__default.createElement("div", { className: bControl("selected-item-icon") }, icon), this._renderTokens(), isMultiply && Boolean(innerValue.size) && /* @__PURE__ */ React__default.createElement(
|
|
4207
|
+
"div",
|
|
4208
|
+
{
|
|
4209
|
+
ref: this.badgeRef,
|
|
4210
|
+
className: bControl("badge", badgeMods),
|
|
4211
|
+
onClick: this._onBadgeClick
|
|
4212
|
+
},
|
|
4213
|
+
innerValue.size
|
|
4214
|
+
)),
|
|
4215
|
+
showArrow && /* @__PURE__ */ React__default.createElement("div", { className: bControl("arrow", { loading }) }, /* @__PURE__ */ React__default.createElement(Icon, { data: ChevronDown }))
|
|
4216
|
+
);
|
|
4217
|
+
}
|
|
4218
|
+
_renderSearch() {
|
|
4219
|
+
const { controlWidth, type, virtualizeThreshold, getItems } = this.props;
|
|
4220
|
+
const { inputValue, shownItems } = this.state;
|
|
4221
|
+
const inputUpdateHandler = getItems ? this._onInputUpdateDynamic : this._onInputUpdateStatic;
|
|
4222
|
+
let searchWidth;
|
|
4223
|
+
if (getItems || shownItems.length > virtualizeThreshold || this.props.popupWidth) {
|
|
4224
|
+
const width = this.props.popupWidth || controlWidth || this.state.controlWidth;
|
|
4225
|
+
searchWidth = width > MIN_VIRTUALIZED_POPUP_WIDTH ? width : MIN_VIRTUALIZED_POPUP_WIDTH;
|
|
4226
|
+
} else if (this.state.popupWidth) {
|
|
4227
|
+
searchWidth = this.state.popupWidth > this.state.controlWidth ? this.state.popupWidth : this.state.controlWidth;
|
|
4228
|
+
}
|
|
4229
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
4230
|
+
Search,
|
|
4231
|
+
{
|
|
4232
|
+
ref: this.searchRef,
|
|
4233
|
+
value: inputValue,
|
|
4234
|
+
width: this.props.popupWidth || searchWidth,
|
|
4235
|
+
minWidth: _max([this._getPopupMinWidth(), controlWidth || this.state.controlWidth]),
|
|
4236
|
+
searchButtonSettings: this._getSearchButtonSettings(),
|
|
4237
|
+
onInputUpdate: inputUpdateHandler,
|
|
4238
|
+
selectAllItems: type === YCSelect.MULTIPLE ? this.onMultipleSearchButtonClick : this.onSingleSearchButtonClick,
|
|
4239
|
+
onClick: () => this._publishEvent({ eventId: "search-tap" })
|
|
4240
|
+
}
|
|
4241
|
+
);
|
|
4242
|
+
}
|
|
4243
|
+
_renderItems({ selectedPopup = false, mobile = false } = {}) {
|
|
4244
|
+
const {
|
|
4245
|
+
virtualizeThreshold,
|
|
4246
|
+
type,
|
|
4247
|
+
showSearch,
|
|
4248
|
+
showApply,
|
|
4249
|
+
showItemIcon,
|
|
4250
|
+
showItemMeta,
|
|
4251
|
+
getItems,
|
|
4252
|
+
addItem,
|
|
4253
|
+
onFetchErrorDetails,
|
|
4254
|
+
fetchErrorDetailsTitle,
|
|
4255
|
+
itemsListTestAnchor,
|
|
4256
|
+
errorContent
|
|
4257
|
+
} = this.props;
|
|
4258
|
+
const {
|
|
4259
|
+
shownItems,
|
|
4260
|
+
selectedPopupItems,
|
|
4261
|
+
showMainPopup,
|
|
4262
|
+
showSelectedPopup,
|
|
4263
|
+
selectedCurrentItem,
|
|
4264
|
+
inputValue,
|
|
4265
|
+
isFetchingItems,
|
|
4266
|
+
isItemsGrouped,
|
|
4267
|
+
innerValue,
|
|
4268
|
+
nextPageToken,
|
|
4269
|
+
fetchError
|
|
4270
|
+
} = this.state;
|
|
4271
|
+
let props = {
|
|
4272
|
+
innerValue,
|
|
4273
|
+
inputValue,
|
|
4274
|
+
virtualizeThreshold,
|
|
4275
|
+
selectedCurrentItem,
|
|
4276
|
+
selectType: type,
|
|
4277
|
+
showSearch,
|
|
4278
|
+
showApply,
|
|
4279
|
+
showItemIcon,
|
|
4280
|
+
showItemMeta,
|
|
4281
|
+
isItemsGrouped,
|
|
4282
|
+
mobile,
|
|
4283
|
+
itemsListTestAnchor,
|
|
4284
|
+
onItemClick: type === YCSelect.MULTIPLE ? this.selectItems : this.selectItem,
|
|
4285
|
+
selectOnlyCurrentItem: this.selectOnlyCurrentItem,
|
|
4286
|
+
setPopupWidth: this.setPopupWidth,
|
|
4287
|
+
errorContent
|
|
4288
|
+
};
|
|
4289
|
+
if (selectedPopup) {
|
|
4290
|
+
props = {
|
|
4291
|
+
...props,
|
|
4292
|
+
items: selectedPopupItems,
|
|
4293
|
+
visible: showSelectedPopup,
|
|
4294
|
+
selectedItemsPopup: true
|
|
4295
|
+
};
|
|
4296
|
+
} else {
|
|
4297
|
+
props = {
|
|
4298
|
+
...props,
|
|
4299
|
+
items: shownItems,
|
|
4300
|
+
visible: showMainPopup,
|
|
4301
|
+
showMoreItems: Boolean(nextPageToken),
|
|
4302
|
+
isDynamic: Boolean(getItems),
|
|
4303
|
+
isFetchingItems,
|
|
4304
|
+
fetchError,
|
|
4305
|
+
onFetchErrorDetails,
|
|
4306
|
+
fetchErrorDetailsTitle,
|
|
4307
|
+
fetchItems: this._fetchItems,
|
|
4308
|
+
addNewItem: addItem ? this.addNewItem : void 0
|
|
4309
|
+
};
|
|
4310
|
+
}
|
|
4311
|
+
return /* @__PURE__ */ React__default.createElement(ItemsWrapper, { ...props });
|
|
4312
|
+
}
|
|
4313
|
+
_renderApplyButton() {
|
|
4314
|
+
const { type, showApply } = this.props;
|
|
4315
|
+
const { shownItems, selectedPopupItems, isItemsGrouped, showMainPopup, showSelectedPopup } = this.state;
|
|
4316
|
+
const isMultiply = type === YCSelect.MULTIPLE;
|
|
4317
|
+
if (!isMultiply || !showApply) {
|
|
4318
|
+
return null;
|
|
4319
|
+
}
|
|
4320
|
+
const isClosing = !showMainPopup && !showSelectedPopup;
|
|
4321
|
+
let isDisabled;
|
|
4322
|
+
if (showMainPopup) {
|
|
4323
|
+
isDisabled = isItemsGrouped ? shownItems.every((group) => group.items && !group.items.length) : !shownItems.length;
|
|
4324
|
+
} else {
|
|
4325
|
+
isDisabled = isItemsGrouped ? selectedPopupItems.every((group) => group.items && !group.items.length) : !selectedPopupItems.length;
|
|
4326
|
+
}
|
|
4327
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: bAction() }, /* @__PURE__ */ React__default.createElement(
|
|
4328
|
+
Button,
|
|
4329
|
+
{
|
|
4330
|
+
view: "action",
|
|
4331
|
+
size: "l",
|
|
4332
|
+
width: "max",
|
|
4333
|
+
onClick: this._onApplyClick,
|
|
4334
|
+
disabled: isDisabled || isClosing
|
|
4335
|
+
},
|
|
4336
|
+
trans("apply_button_text")
|
|
4337
|
+
));
|
|
4338
|
+
}
|
|
4339
|
+
_renderPopupContent({ isMobile }) {
|
|
4340
|
+
const { showSearch, errorContent, loadingItems, itemsLoaderClassName } = this.props;
|
|
4341
|
+
const shouldRenderSearch = showSearch && !errorContent && (isMobile || this.state.popupWidth);
|
|
4342
|
+
return loadingItems ? /* @__PURE__ */ React__default.createElement("div", { className: bPopup("loader", { mobile: isMobile }, itemsLoaderClassName) }, /* @__PURE__ */ React__default.createElement(Loader, { size: "s" })) : /* @__PURE__ */ React__default.createElement(
|
|
4343
|
+
"div",
|
|
4344
|
+
{
|
|
4345
|
+
style: isMobile ? {} : this._getPopupStyles(),
|
|
4346
|
+
className: isMobile ? {} : this._getPopupClassNames()
|
|
4347
|
+
},
|
|
4348
|
+
shouldRenderSearch && this._renderSearch(),
|
|
4349
|
+
/* @__PURE__ */ React__default.createElement("div", { ref: this.selectorRef }, this._renderItems({ mobile: isMobile })),
|
|
4350
|
+
this._renderApplyButton()
|
|
4351
|
+
);
|
|
4352
|
+
}
|
|
4353
|
+
_renderDesktopContent() {
|
|
4354
|
+
const { showMainPopup, showSelectedPopup, isControlClicked } = this.state;
|
|
4355
|
+
if (!isControlClicked) {
|
|
4356
|
+
return null;
|
|
4357
|
+
}
|
|
4358
|
+
const popupStyles = this._getPopupStyles();
|
|
4359
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
4360
|
+
Popup,
|
|
4361
|
+
{
|
|
4362
|
+
open: showMainPopup,
|
|
4363
|
+
anchorElement: this.controlRef.current,
|
|
4364
|
+
placement: AVAILABLE_POPUP_DIRECTIONS,
|
|
4365
|
+
onOpenChange: (open) => {
|
|
4366
|
+
if (!open) {
|
|
4367
|
+
this._onOutsideMainPopupClick();
|
|
4368
|
+
}
|
|
4369
|
+
},
|
|
4370
|
+
initialFocus: 0
|
|
4371
|
+
},
|
|
4372
|
+
this._renderPopupContent({ isMobile: false })
|
|
4373
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
4374
|
+
Popup,
|
|
4375
|
+
{
|
|
4376
|
+
open: showSelectedPopup,
|
|
4377
|
+
anchorElement: this.controlRef.current,
|
|
4378
|
+
placement: AVAILABLE_POPUP_DIRECTIONS,
|
|
4379
|
+
onOpenChange: (open) => {
|
|
4380
|
+
if (!open) {
|
|
4381
|
+
this._onOutsideSelectedItemsPopupClick();
|
|
4382
|
+
}
|
|
4383
|
+
}
|
|
4384
|
+
},
|
|
4385
|
+
/* @__PURE__ */ React__default.createElement("div", { style: popupStyles, className: this._getPopupClassNames() }, /* @__PURE__ */ React__default.createElement("div", { className: bPopup("select-title") }, trans("selected_popup_title")), this._renderItems({ selectedPopup: true }), this._renderApplyButton())
|
|
4386
|
+
));
|
|
4387
|
+
}
|
|
4388
|
+
_renderMobileContent() {
|
|
4389
|
+
const { label } = this.props;
|
|
4390
|
+
const { showMainPopup, showSelectedPopup } = this.state;
|
|
4391
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
4392
|
+
Sheet,
|
|
4393
|
+
{
|
|
4394
|
+
id: "yc-select-main",
|
|
4395
|
+
title: label,
|
|
4396
|
+
visible: showMainPopup,
|
|
4397
|
+
contentClassName: bSheet(null, getModifier("mobile")),
|
|
4398
|
+
allowHideOnContentScroll: false,
|
|
4399
|
+
onClose: this._onOutsideMainPopupClick
|
|
4400
|
+
},
|
|
4401
|
+
this._renderPopupContent({ isMobile: true })
|
|
4402
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
4403
|
+
Sheet,
|
|
4404
|
+
{
|
|
4405
|
+
id: "yc-select-selected",
|
|
4406
|
+
title: label,
|
|
4407
|
+
visible: showSelectedPopup,
|
|
4408
|
+
contentClassName: bSheet(null, getModifier("mobile")),
|
|
4409
|
+
allowHideOnContentScroll: false,
|
|
4410
|
+
onClose: this._onOutsideSelectedItemsPopupClick
|
|
4411
|
+
},
|
|
4412
|
+
/* @__PURE__ */ React__default.createElement("div", { className: bPopup("select-title") }, trans("selected_popup_title")),
|
|
4413
|
+
this._renderItems({ selectedPopup: true, mobile: true }),
|
|
4414
|
+
this._renderApplyButton()
|
|
4415
|
+
));
|
|
4416
|
+
}
|
|
4417
|
+
render() {
|
|
4418
|
+
return /* @__PURE__ */ React__default.createElement(MobileContext.Consumer, null, ({ mobile }) => {
|
|
4419
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, this._renderControl(), mobile ? this._renderMobileContent() : this._renderDesktopContent());
|
|
4420
|
+
});
|
|
4421
|
+
}
|
|
4422
|
+
}
|
|
4423
|
+
const YCSelectDefaultProps = {
|
|
4424
|
+
size: "s",
|
|
4425
|
+
itemsPageSize: 100,
|
|
4426
|
+
virtualizeThreshold: 100,
|
|
4427
|
+
type: YCSelect.SINGLE,
|
|
4428
|
+
items: [],
|
|
4429
|
+
showSearch: true,
|
|
4430
|
+
showArrow: true,
|
|
4431
|
+
stretched: true,
|
|
4432
|
+
showApply: false,
|
|
4433
|
+
showItemIcon: false,
|
|
4434
|
+
showItemMeta: false,
|
|
4435
|
+
showMissingItems: false,
|
|
4436
|
+
allowEmptyValue: false,
|
|
4437
|
+
allowNullableValues: false,
|
|
4438
|
+
showSelectAll: true,
|
|
4439
|
+
hiding: false,
|
|
4440
|
+
disabled: false,
|
|
4441
|
+
loading: false,
|
|
4442
|
+
applyOnOutsideClick: true,
|
|
4443
|
+
loadingItems: false
|
|
4444
|
+
};
|
|
4445
|
+
YCSelect.defaultProps = YCSelectDefaultProps;
|
|
4446
|
+
export {
|
|
4447
|
+
Datepicker as D,
|
|
4448
|
+
RangeInputPicker as R,
|
|
4449
|
+
YCSelect as Y,
|
|
4450
|
+
DatepickerControl as a
|
|
4451
|
+
};
|