@gooddata/sdk-ui-dashboard 11.43.0-alpha.3 → 11.43.0-alpha.5
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/NOTICE +641 -841
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/index.d.ts +3 -3
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -2
- package/esm/model/react/useWidgetExecConfig.d.ts +5 -3
- package/esm/model/react/useWidgetExecConfig.d.ts.map +1 -1
- package/esm/model/react/useWidgetExecConfig.js +8 -4
- package/esm/model/store/config/configSelectors.js +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +19 -0
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.js +46 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +13 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.js +24 -30
- package/esm/presentation/automations/_staging/alerting/AlertingManagementDialog.d.ts +1 -1
- package/esm/presentation/automations/_staging/alerting/AlertingManagementDialog.d.ts.map +1 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentBasic.js +1 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentEnhanced.js +3 -3
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogNew.d.ts +1 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogNew.d.ts.map +1 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingManagementDialog/components/Alert.js +2 -2
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.d.ts +1 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.d.ts.map +1 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingManagementDialog/hooks/useAlertValidation.d.ts.map +1 -0
- package/esm/presentation/automations/_staging/alerting/{DefaultAlertingDialog → DefaultAlertingManagementDialog}/hooks/useAlertValidation.js +2 -2
- package/esm/presentation/automations/alerting/AlertingDialog.d.ts.map +1 -0
- package/esm/presentation/automations/{_staging/alerting → alerting}/AlertingDialog.js +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogHeader.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +21 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -0
- package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/DefaultAlertingDialog.js +58 -56
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultLoadingAlertingDialog.d.ts.map +1 -0
- package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/DefaultLoadingAlertingDialog.js +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonOperatorSelect.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertDeleteDialog.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertDestinationSelect.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertGranularitySelect.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertMeasureSelect.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertSensitivitySelect.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertThresholdInput.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertTriggerIntervalSelect.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertTriggerModeSelect.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/constants.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertValidation.d.ts +7 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertValidation.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertValidation.js +16 -0
- package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.d.ts +6 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.d.ts.map +1 -0
- package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.js +31 -5
- package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/hooks/useEditAlert.d.ts +7 -7
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.d.ts.map +1 -0
- package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/hooks/useEditAlert.js +15 -45
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useOperators.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useThresholdValue.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/messages.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/convertors.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/cron.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/getters.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/granularity.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/guards.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/items.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/responsive.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/threshold.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/transformation.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.d.ts +11 -0
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.js +35 -0
- package/esm/presentation/automations/alerting/hooks/useGetSupportedMeasures.d.ts.map +1 -0
- package/esm/presentation/automations/{_staging/alerting → alerting}/hooks/useGetSupportedMeasures.js +2 -6
- package/esm/presentation/automations/{_staging/alerting → alerting}/types.d.ts +5 -3
- package/esm/presentation/automations/alerting/types.d.ts.map +1 -0
- package/esm/presentation/automations/connectors/AlertingConnector.d.ts +27 -0
- package/esm/presentation/automations/connectors/AlertingConnector.d.ts.map +1 -0
- package/esm/presentation/automations/connectors/AlertingConnector.js +72 -0
- package/esm/presentation/automations/connectors/hooks/sanitizeAutomationForSave.d.ts +15 -0
- package/esm/presentation/automations/connectors/hooks/sanitizeAutomationForSave.d.ts.map +1 -0
- package/esm/presentation/automations/connectors/hooks/sanitizeAutomationForSave.js +25 -0
- package/esm/presentation/automations/connectors/hooks/useBuildAlertingDialogContext.d.ts +9 -0
- package/esm/presentation/automations/connectors/hooks/useBuildAlertingDialogContext.d.ts.map +1 -0
- package/esm/presentation/automations/connectors/hooks/useBuildAlertingDialogContext.js +128 -0
- package/esm/presentation/automations/connectors/hooks/useBuildAlertingDialogContext.test.d.ts +2 -0
- package/esm/presentation/automations/connectors/hooks/useBuildAlertingDialogContext.test.d.ts.map +1 -0
- package/esm/presentation/automations/connectors/hooks/useBuildAlertingDialogContext.test.js +66 -0
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.js +65 -1
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.test.js +27 -0
- package/esm/presentation/automations/contexts/AlertingDialogContext.d.ts +32 -0
- package/esm/presentation/automations/contexts/AlertingDialogContext.d.ts.map +1 -0
- package/esm/presentation/automations/contexts/AlertingDialogContext.js +11 -0
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts +20 -1
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts.map +1 -1
- package/esm/presentation/automations/contexts/AutomationsContext.js +4 -1
- package/esm/presentation/automations/contexts/AutomationsContext.test.js +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +2 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.js +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js +1 -1
- package/esm/presentation/automations/shared/automationFilters/components/AutomationDateFilter.test.js +19 -0
- package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProvider.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProvider.js +18 -4
- package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeChrome.d.ts +5 -4
- package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeChrome.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeChrome.js +30 -48
- package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeContext.d.ts +37 -0
- package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeContext.d.ts.map +1 -0
- package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeContext.js +90 -0
- package/esm/presentation/dashboard/components/DashboardInner.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardInner.js +24 -14
- package/esm/presentation/dashboard/components/DashboardRenderer.js +1 -1
- package/esm/presentation/dashboard/types.d.ts +1 -1
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.d.ts.map +1 -1
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.js +1 -1
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdownMenuItem.d.ts +1 -1
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdownMenuItem.d.ts.map +1 -1
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdownMenuItem.js +6 -28
- package/esm/presentation/drill/hooks/useDrillSelectDropdownMenuItems.d.ts +0 -3
- package/esm/presentation/drill/hooks/useDrillSelectDropdownMenuItems.d.ts.map +1 -1
- package/esm/presentation/drill/hooks/useDrillSelectDropdownMenuItems.js +16 -3
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +11 -2
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +4 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +4 -0
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +1 -1
- package/esm/presentation/topBar/menuButton/DefaultMenuButton.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/DefaultMenuButton.js +9 -9
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.js +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.d.ts +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.js +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +23 -14
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +4 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightWidgetAlerting.d.ts +3 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightWidgetAlerting.js +5 -5
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.d.ts +0 -11
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.js +2 -17
- package/esm/presentation/widget/insight/configuration/InsightAlertsNew.js +3 -3
- package/esm/sdk-ui-dashboard.d.ts +18 -1
- package/package.json +20 -20
- package/styles/css/configurationPanel.css +2 -3
- package/styles/css/configurationPanel.css.map +1 -1
- package/styles/css/dashboard.css +7 -7
- package/styles/css/drillSelect.css +0 -49
- package/styles/css/drillSelect.css.map +1 -1
- package/styles/css/main.css +8799 -11451
- package/styles/css/main.css.map +1 -1
- package/styles/css/notifications_channels_dialog.css +7 -7
- package/styles/css/topBar.css +3 -5
- package/styles/css/topBar.css.map +1 -1
- package/styles/scss/configurationPanel.scss +2 -3
- package/styles/scss/drillSelect.scss +0 -65
- package/styles/scss/notifications_channels_dialog.scss +1 -1
- package/styles/scss/topBar.scss +3 -9
- package/esm/presentation/automations/_staging/alerting/AlertingDialog.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/AlertingDialogHeader.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +0 -7
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/DefaultLoadingAlertingDialog.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertComparisonOperatorSelect.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertDeleteDialog.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertDestinationSelect.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertGranularitySelect.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertMeasureSelect.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertSensitivitySelect.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertThresholdInput.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertTriggerIntervalSelect.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertTriggerModeSelect.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/constants.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/hooks/useAlertValidation.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/hooks/useEditAlert.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/hooks/useOperators.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/hooks/useThresholdValue.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/messages.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/utils/convertors.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/utils/cron.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/utils/getters.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/utils/granularity.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/utils/guards.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/utils/items.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/utils/responsive.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/utils/threshold.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/utils/transformation.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/hooks/useGetSupportedMeasures.d.ts.map +0 -1
- package/esm/presentation/automations/_staging/alerting/types.d.ts.map +0 -1
- package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProviderNew.d.ts +0 -2
- package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProviderNew.d.ts.map +0 -1
- package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProviderNew.js +0 -28
- /package/esm/presentation/automations/_staging/alerting/{DefaultAlertingDialog → DefaultAlertingManagementDialog}/hooks/useAlertValidation.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/AlertingDialog.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/AlertingDialogHeader.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/AlertingDialogHeader.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/DefaultLoadingAlertingDialog.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertAttributeSelect.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertAttributeSelect.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertComparisonOperatorSelect.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertComparisonOperatorSelect.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertDeleteDialog.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertDeleteDialog.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertDestinationSelect.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertDestinationSelect.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertGranularitySelect.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertGranularitySelect.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertMeasureSelect.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertMeasureSelect.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertSensitivitySelect.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertSensitivitySelect.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertThresholdInput.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertThresholdInput.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertTriggerIntervalSelect.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertTriggerIntervalSelect.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertTriggerModeSelect.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertTriggerModeSelect.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/constants.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/constants.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/hooks/useOperators.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/hooks/useOperators.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/hooks/useThresholdValue.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/hooks/useThresholdValue.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/messages.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/messages.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/convertors.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/convertors.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/cron.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/cron.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/getters.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/getters.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/granularity.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/granularity.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/guards.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/guards.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/items.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/items.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/responsive.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/responsive.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/threshold.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/threshold.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/transformation.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/transformation.js +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/hooks/useGetSupportedMeasures.d.ts +0 -0
- /package/esm/presentation/automations/{_staging/alerting → alerting}/types.js +0 -0
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { useRef, useState, } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
5
|
import { clamp } from "lodash-es";
|
|
6
|
-
import { useLocalStorage } from "@gooddata/sdk-ui";
|
|
7
6
|
import { makeKeyboardNavigation, useCloseOnEscape } from "@gooddata/sdk-ui-kit";
|
|
8
|
-
|
|
9
|
-
const SIDEBAR_MAX_WIDTH = 500;
|
|
10
|
-
const EDITOR_MIN_WIDTH = 960;
|
|
7
|
+
import { useResizableSidebar } from "./SidebarResizeContext.js";
|
|
11
8
|
const KEYBOARD_STEP = 10;
|
|
12
|
-
const LOCAL_STORAGE_KEY = "gd-dashboard-sidebar-width";
|
|
13
9
|
const handleSeparatorKeyboardNavigation = makeKeyboardNavigation({
|
|
14
10
|
shrink: [{ code: "ArrowLeft" }],
|
|
15
11
|
grow: [{ code: "ArrowRight" }],
|
|
@@ -17,23 +13,12 @@ const handleSeparatorKeyboardNavigation = makeKeyboardNavigation({
|
|
|
17
13
|
maximize: [{ code: "End" }],
|
|
18
14
|
});
|
|
19
15
|
/**
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
function useWindowWidth() {
|
|
23
|
-
const [width, setWidth] = useState(() => window.innerWidth);
|
|
24
|
-
useEffect(() => {
|
|
25
|
-
const handleResize = () => setWidth(window.innerWidth);
|
|
26
|
-
window.addEventListener("resize", handleResize);
|
|
27
|
-
return () => window.removeEventListener("resize", handleResize);
|
|
28
|
-
}, []);
|
|
29
|
-
return width;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Internal presentational wrapper that holds the dashboard sidebar drag-to-resize state.
|
|
16
|
+
* Internal presentational wrapper that drives the dashboard sidebar drag-to-resize interaction.
|
|
33
17
|
*
|
|
34
|
-
* Owns
|
|
35
|
-
*
|
|
36
|
-
*
|
|
18
|
+
* Owns only the live drag state (drag width — used for the dashed indicator transform — and drag
|
|
19
|
+
* phase). The committed width, min/max, and the editor-canvas constraint live in the shared
|
|
20
|
+
* {@link useResizableSidebar} state, so the same value also feeds the content area's width via the
|
|
21
|
+
* `--gd-dashboard-sidebar-width` custom property.
|
|
37
22
|
*
|
|
38
23
|
* Renders `.gd-sidebar-container` itself so the resize handle can be positioned absolutely inside
|
|
39
24
|
* it — that element is sticky+100vh, so the handle (and the grip centered inside it) tracks the
|
|
@@ -47,49 +32,46 @@ function useWindowWidth() {
|
|
|
47
32
|
export function SidebarResizeChrome({ onContainerClick, children, }) {
|
|
48
33
|
const [dragWidth, setDragWidth] = useState(null);
|
|
49
34
|
const dragOriginRef = useRef(null);
|
|
50
|
-
const
|
|
51
|
-
const [persistedWidth, setPersistedWidth] = useLocalStorage(LOCAL_STORAGE_KEY, SIDEBAR_MIN_WIDTH);
|
|
52
|
-
const effectiveMax = clamp(containerWidth - EDITOR_MIN_WIDTH, SIDEBAR_MIN_WIDTH, SIDEBAR_MAX_WIDTH);
|
|
53
|
-
const effectiveWidth = clamp(persistedWidth, SIDEBAR_MIN_WIDTH, effectiveMax);
|
|
35
|
+
const { width, min, max, canResize, setWidth } = useResizableSidebar();
|
|
54
36
|
const isDragging = dragWidth !== null;
|
|
55
|
-
|
|
37
|
+
// Tear down the drag without committing — used when the user presses Escape.
|
|
56
38
|
const endDrag = () => {
|
|
57
39
|
dragOriginRef.current = null;
|
|
58
40
|
setDragWidth(null);
|
|
59
41
|
};
|
|
60
42
|
useCloseOnEscape(isDragging, endDrag);
|
|
61
43
|
const handleKeyDown = handleSeparatorKeyboardNavigation({
|
|
62
|
-
shrink: () =>
|
|
63
|
-
grow: () =>
|
|
64
|
-
minimize: () =>
|
|
65
|
-
maximize: () =>
|
|
44
|
+
shrink: () => setWidth(width - KEYBOARD_STEP),
|
|
45
|
+
grow: () => setWidth(width + KEYBOARD_STEP),
|
|
46
|
+
minimize: () => setWidth(min),
|
|
47
|
+
maximize: () => setWidth(max),
|
|
66
48
|
});
|
|
67
49
|
const handlePointerDown = (event) => {
|
|
68
50
|
event.preventDefault();
|
|
69
51
|
event.currentTarget.setPointerCapture(event.pointerId);
|
|
70
52
|
dragOriginRef.current = {
|
|
71
53
|
clientX: event.clientX,
|
|
72
|
-
width
|
|
54
|
+
width,
|
|
73
55
|
pointerId: event.pointerId,
|
|
74
56
|
};
|
|
75
|
-
setDragWidth(
|
|
57
|
+
setDragWidth(width);
|
|
76
58
|
};
|
|
77
59
|
const handlePointerMove = (event) => {
|
|
78
60
|
if (event.pointerId !== dragOriginRef.current?.pointerId) {
|
|
79
61
|
return;
|
|
80
62
|
}
|
|
81
|
-
const
|
|
82
|
-
if (
|
|
83
|
-
setDragWidth(
|
|
63
|
+
const nextWidth = widthFromClientX(event.clientX);
|
|
64
|
+
if (nextWidth !== null) {
|
|
65
|
+
setDragWidth(nextWidth);
|
|
84
66
|
}
|
|
85
67
|
};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
if (
|
|
92
|
-
|
|
68
|
+
// Commit the last dragged width, then tear the drag down. onLostPointerCapture fires whenever the
|
|
69
|
+
// captured pointer is released for any reason — pointerup, pointercancel, or the pointer being
|
|
70
|
+
// lost (e.g. the mouse released outside the iframe/window) — so the final width is always
|
|
71
|
+
// persisted even if a plain pointerup never reaches us.
|
|
72
|
+
const handleLostPointerCapture = () => {
|
|
73
|
+
if (dragWidth !== null) {
|
|
74
|
+
setWidth(dragWidth);
|
|
93
75
|
}
|
|
94
76
|
endDrag();
|
|
95
77
|
};
|
|
@@ -98,15 +80,15 @@ export function SidebarResizeChrome({ onContainerClick, children, }) {
|
|
|
98
80
|
if (!origin) {
|
|
99
81
|
return null;
|
|
100
82
|
}
|
|
101
|
-
return clamp(origin.width + (clientX - origin.clientX),
|
|
83
|
+
return clamp(origin.width + (clientX - origin.clientX), min, max);
|
|
102
84
|
};
|
|
103
85
|
return (_jsx("div", { className: cx("gd-resizable-sidebar", {
|
|
104
|
-
"gd-resizable-sidebar--resizable":
|
|
86
|
+
"gd-resizable-sidebar--resizable": canResize,
|
|
105
87
|
"gd-resizable-sidebar--dragging": isDragging,
|
|
106
|
-
}), style: { width
|
|
107
|
-
"--drag-x": `${isDragging ? dragWidth :
|
|
88
|
+
}), style: { width }, children: _jsxs("div", { className: "col gd-flex-item gd-sidebar-container gd-sidebar-container--resizable", onClick: onContainerClick, children: [children, _jsx("button", { type: "button", style: {
|
|
89
|
+
"--drag-x": `${isDragging ? dragWidth : width}px`,
|
|
108
90
|
}, className: cx("gd-resizable-sidebar__handle", {
|
|
109
91
|
"gd-resizable-sidebar__handle--dragging": isDragging,
|
|
110
|
-
}), disabled: !
|
|
92
|
+
}), disabled: !canResize, role: "separator", "aria-orientation": "vertical", "aria-valuemin": min, "aria-valuemax": max, "aria-valuenow": width, onPointerDown: canResize ? handlePointerDown : undefined, onPointerMove: handlePointerMove, onLostPointerCapture: handleLostPointerCapture, onKeyDown: isDragging ? undefined : handleKeyDown, children: _jsx("span", { className: "gd-resizable-sidebar__handle-grip", "aria-hidden": "true" }) })
|
|
111
93
|
] }) }));
|
|
112
94
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
interface IResizableSidebar {
|
|
3
|
+
width: number;
|
|
4
|
+
min: number;
|
|
5
|
+
max: number;
|
|
6
|
+
canResize: boolean;
|
|
7
|
+
setWidth: (width: number) => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Computes the resizable-sidebar state. When the sidebar is not resizable (not edit mode, the feature
|
|
11
|
+
* is off, or it is replaced by the enhanced insight picker) it returns the static
|
|
12
|
+
* {@link NON_RESIZABLE_SIDEBAR} — no window resize listener, no width math.
|
|
13
|
+
*
|
|
14
|
+
* Reads the config store, so it must be called below the dashboard loading gate where the config is
|
|
15
|
+
* initialized.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export declare function useResizableSidebarState(): IResizableSidebar;
|
|
20
|
+
/**
|
|
21
|
+
* Shares the resize state produced by {@link useResizableSidebarState} with descendants such as the
|
|
22
|
+
* resize handle, so it stays a single source of truth.
|
|
23
|
+
*
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
export declare function ResizableSidebarProvider({ value, children }: {
|
|
27
|
+
value: IResizableSidebar;
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
/**
|
|
31
|
+
* Returns the sidebar resize state, or {@link NON_RESIZABLE_SIDEBAR} when the sidebar is not resizable.
|
|
32
|
+
*
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
export declare function useResizableSidebar(): IResizableSidebar;
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=SidebarResizeContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarResizeContext.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/DashboardSidebar/SidebarResizeContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAkD,MAAM,OAAO,CAAC;AAsCvF,UAAU,iBAAiB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAeD;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,IAAI,iBAAiB,CA2B5D;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,EACrC,KAAK,EACL,QAAQ,EACX,EAAE;IACC,KAAK,EAAE,iBAAiB,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;CACvB,2CAEA;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,IAAI,iBAAiB,CAEvD"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { createContext, useContext, useEffect, useState } from "react";
|
|
4
|
+
import { clamp } from "lodash-es";
|
|
5
|
+
import { useLocalStorage } from "@gooddata/sdk-ui";
|
|
6
|
+
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
7
|
+
import { selectSettings } from "../../../model/store/config/configSelectors.js";
|
|
8
|
+
import { selectIsInEditMode } from "../../../model/store/renderMode/renderModeSelectors.js";
|
|
9
|
+
const SIDEBAR_MIN_WIDTH = 230;
|
|
10
|
+
const SIDEBAR_MAX_WIDTH = 500;
|
|
11
|
+
const EDITOR_MIN_WIDTH = 960;
|
|
12
|
+
const LOCAL_STORAGE_KEY = "gd-dashboard-sidebar-width";
|
|
13
|
+
/**
|
|
14
|
+
* Returns the current `window.innerWidth`, kept in sync with the `resize` event. Only attaches the
|
|
15
|
+
* listener while `active`, so a non-resizable sidebar triggers no resize-driven re-renders.
|
|
16
|
+
*/
|
|
17
|
+
function useWindowWidth(active) {
|
|
18
|
+
const [width, setWidth] = useState(() => window.innerWidth);
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
if (!active) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
setWidth(window.innerWidth);
|
|
24
|
+
const handleResize = () => setWidth(window.innerWidth);
|
|
25
|
+
window.addEventListener("resize", handleResize);
|
|
26
|
+
return () => window.removeEventListener("resize", handleResize);
|
|
27
|
+
}, [active]);
|
|
28
|
+
return width;
|
|
29
|
+
}
|
|
30
|
+
// Stable value used whenever the sidebar is not resizable: it is fixed at the minimum width, cannot
|
|
31
|
+
// be resized, and ignores writes — so consumers never have to null-check.
|
|
32
|
+
const NON_RESIZABLE_SIDEBAR = {
|
|
33
|
+
width: SIDEBAR_MIN_WIDTH,
|
|
34
|
+
min: SIDEBAR_MIN_WIDTH,
|
|
35
|
+
max: SIDEBAR_MIN_WIDTH,
|
|
36
|
+
canResize: false,
|
|
37
|
+
setWidth: () => { },
|
|
38
|
+
};
|
|
39
|
+
const ResizableSidebarContext = createContext(NON_RESIZABLE_SIDEBAR);
|
|
40
|
+
ResizableSidebarContext.displayName = "ResizableSidebarContext";
|
|
41
|
+
/**
|
|
42
|
+
* Computes the resizable-sidebar state. When the sidebar is not resizable (not edit mode, the feature
|
|
43
|
+
* is off, or it is replaced by the enhanced insight picker) it returns the static
|
|
44
|
+
* {@link NON_RESIZABLE_SIDEBAR} — no window resize listener, no width math.
|
|
45
|
+
*
|
|
46
|
+
* Reads the config store, so it must be called below the dashboard loading gate where the config is
|
|
47
|
+
* initialized.
|
|
48
|
+
*
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
export function useResizableSidebarState() {
|
|
52
|
+
const settings = useDashboardSelector(selectSettings);
|
|
53
|
+
const isEditMode = useDashboardSelector(selectIsInEditMode);
|
|
54
|
+
const isSidebarResizeEnabled = settings?.enableDashboardSidebarResize ?? false;
|
|
55
|
+
const enableEnhancedInsightPicker = settings?.enableEnhancedInsightPicker ?? false;
|
|
56
|
+
const isResizable = isEditMode && isSidebarResizeEnabled && !enableEnhancedInsightPicker;
|
|
57
|
+
const containerWidth = useWindowWidth(isResizable);
|
|
58
|
+
const [persistedWidth, setPersistedWidth] = useLocalStorage(LOCAL_STORAGE_KEY, SIDEBAR_MIN_WIDTH);
|
|
59
|
+
if (!isResizable) {
|
|
60
|
+
return NON_RESIZABLE_SIDEBAR;
|
|
61
|
+
}
|
|
62
|
+
const max = clamp(containerWidth - EDITOR_MIN_WIDTH, SIDEBAR_MIN_WIDTH, SIDEBAR_MAX_WIDTH);
|
|
63
|
+
const width = clamp(persistedWidth, SIDEBAR_MIN_WIDTH, max);
|
|
64
|
+
return {
|
|
65
|
+
width,
|
|
66
|
+
min: SIDEBAR_MIN_WIDTH,
|
|
67
|
+
max,
|
|
68
|
+
canResize: max > SIDEBAR_MIN_WIDTH,
|
|
69
|
+
// Clamp every write to the current bounds, so callers can't persist an out-of-range width and
|
|
70
|
+
// a non-resizable sidebar (max === min) collapses any value back to the minimum.
|
|
71
|
+
setWidth: (next) => setPersistedWidth(clamp(next, SIDEBAR_MIN_WIDTH, max)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Shares the resize state produced by {@link useResizableSidebarState} with descendants such as the
|
|
76
|
+
* resize handle, so it stays a single source of truth.
|
|
77
|
+
*
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
export function ResizableSidebarProvider({ value, children, }) {
|
|
81
|
+
return _jsx(ResizableSidebarContext.Provider, { value: value, children: children });
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Returns the sidebar resize state, or {@link NON_RESIZABLE_SIDEBAR} when the sidebar is not resizable.
|
|
85
|
+
*
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
export function useResizableSidebar() {
|
|
89
|
+
return useContext(ResizableSidebarContext);
|
|
90
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardInner.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/components/DashboardInner.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DashboardInner.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/components/DashboardInner.tsx"],"names":[],"mappings":"AAwCA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAOnD,wBAAgB,cAAc,CAAC,KAAK,EAAE,eAAe,2CA2GpD"}
|
|
@@ -23,6 +23,7 @@ import { DashboardContent } from "../DashboardContent.js";
|
|
|
23
23
|
import { DashboardHeader } from "../DashboardHeader/DashboardHeader.js";
|
|
24
24
|
import { DashboardSidebar } from "../DashboardSidebar/DashboardSidebar.js";
|
|
25
25
|
import { RenderModeAwareDashboardSidebar } from "../DashboardSidebar/RenderModeAwareDashboardSidebar.js";
|
|
26
|
+
import { ResizableSidebarProvider, useResizableSidebarState, } from "../DashboardSidebar/SidebarResizeContext.js";
|
|
26
27
|
import { DashboardScreenSizeProvider } from "./DashboardScreenSizeContext.js";
|
|
27
28
|
const overlayController = OverlayController.getInstance(DASHBOARD_HEADER_OVERLAYS_Z_INDEX);
|
|
28
29
|
const toastsOverlayController = OverlayController.getInstance(DASHBOARD_TOASTS_OVERLAY_Z_INDEX);
|
|
@@ -56,20 +57,29 @@ export function DashboardInner(props) {
|
|
|
56
57
|
"gd-dash-content--density-standard": density === "comfortable",
|
|
57
58
|
"gd-dash-content--density-compact": density === "compact",
|
|
58
59
|
});
|
|
60
|
+
const resizableSidebar = useResizableSidebarState();
|
|
61
|
+
// When the sidebar can be resized, expose its live width so the sibling content area can subtract
|
|
62
|
+
// it (see `--gd-dashboard-sidebar-width` in sdk-dashboard.scss). Otherwise leave it unset so the
|
|
63
|
+
// content falls back to the static sidebar width.
|
|
64
|
+
const dashboardsRootStyle = resizableSidebar.canResize
|
|
65
|
+
? {
|
|
66
|
+
"--gd-dashboard-sidebar-width": `${resizableSidebar.width}px`,
|
|
67
|
+
}
|
|
68
|
+
: undefined;
|
|
59
69
|
return (_jsx(IntlWrapper, { locale: locale, children: _jsxs(ToastsCenterContextProvider, { skipAutomaticMessageRendering: true, children: [
|
|
60
|
-
_jsx(OverlayControllerProvider, { overlayController: toastsOverlayController, children: _jsx(ToastsCenter, {}) }), _jsxs("div", { className: cx("component-root", {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
_jsx(OverlayControllerProvider, { overlayController: toastsOverlayController, children: _jsx(ToastsCenter, {}) }), _jsx(ResizableSidebarProvider, { value: resizableSidebar, children: _jsxs("div", { className: cx("component-root", {
|
|
71
|
+
"sdk-edit-mode-on": isEditMode,
|
|
72
|
+
"catalog-is-loaded": isCatalogLoaded,
|
|
73
|
+
"accessible-dashboards-loaded": accessibleDashboardsLoaded,
|
|
74
|
+
}), children: [
|
|
75
|
+
_jsx(DragLayerComponent, {}), _jsxs("div", { className: cx("gd-dashboards-root gd-flex-container", {
|
|
76
|
+
"gd-dashboards-root--floating-toolbar": enableEnhancedInsightPicker,
|
|
77
|
+
}), style: dashboardsRootStyle, children: [
|
|
78
|
+
_jsx(DashboardSidebar, { DefaultSidebar: RenderModeAwareDashboardSidebar, DeleteDropZoneComponent: DeleteDropZone, WrapCreatePanelItemWithDragComponent: WrapCreatePanelItemWithDrag, WrapInsightListItemWithDragComponent: WrapInsightListItemWithDrag }), _jsxs("main", { className: dashboardContentClassNames, ...mainContentNavigationProps, children: [
|
|
79
|
+
_jsx("div", { className: "gd-dash-header-wrapper gd-dash-header-wrapper-sdk-8-12", ref: headerRef, children: _jsx(OverlayControllerProvider, { overlayController: overlayController, children: _jsx(DashboardHeader, {}) }) }), _jsxs("div", { className: "gd-flex-item-stretch dash-section dash-section-kpis", ref: layoutRef, children: [
|
|
80
|
+
_jsx(DashboardScreenSizeProvider, { children: _jsx(DashboardContent, { ...props }) }), enableEnhancedInsightPicker ? _jsx(FilterDeleteOverlay, {}) : null] }), _jsx("div", { className: "gd-dash-bottom-position-pixel", ref: bottomRef })
|
|
81
|
+
] })
|
|
82
|
+
] }), _jsx(Toolbar, {})
|
|
83
|
+
] }) })
|
|
74
84
|
] }) }));
|
|
75
85
|
}
|
|
@@ -6,8 +6,8 @@ import { BackendProvider, ErrorComponent as DefaultError, LoadingComponent as De
|
|
|
6
6
|
import { OverlayController, OverlayControllerProvider } from "@gooddata/sdk-ui-kit";
|
|
7
7
|
import { ThemeProvider } from "@gooddata/sdk-ui-theme-provider";
|
|
8
8
|
import { DashboardStoreProvider } from "../../../model/react/DashboardStoreProvider.js";
|
|
9
|
-
import { DefaultAlertingDialog } from "../../automations/_staging/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js";
|
|
10
9
|
import { DefaultAlertingManagementDialogNew } from "../../automations/_staging/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogNew.js";
|
|
10
|
+
import { DefaultAlertingDialog } from "../../automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js";
|
|
11
11
|
import { DefaultScheduledEmailDialog } from "../../automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js";
|
|
12
12
|
import { ScheduledEmailManagementDialog as DefaultScheduledEmailManagementDialog } from "../../automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js";
|
|
13
13
|
import { DASHBOARD_OVERLAYS_Z_INDEX } from "../../constants/zIndex.js";
|
|
@@ -6,7 +6,7 @@ import { type IErrorProps, type ILoadingProps } from "@gooddata/sdk-ui";
|
|
|
6
6
|
import { type DashboardEventHandler } from "../../model/eventHandlers/eventHandler.js";
|
|
7
7
|
import { type DashboardDispatch, type DashboardState } from "../../model/store/types.js";
|
|
8
8
|
import { type DashboardConfig, type DashboardModelCustomizationFns, type WidgetsOverlayFn } from "../../model/types/commonTypes.js";
|
|
9
|
-
import { type CustomAlertingDialogComponent, type CustomAlertingManagementDialogComponent } from "../automations/
|
|
9
|
+
import { type CustomAlertingDialogComponent, type CustomAlertingManagementDialogComponent } from "../automations/alerting/types.js";
|
|
10
10
|
import { type CustomScheduledEmailDialogComponent, type CustomScheduledEmailManagementDialogComponent } from "../automations/scheduledEmail/types.js";
|
|
11
11
|
import { type InsightComponentSetProvider } from "../componentDefinition/types.js";
|
|
12
12
|
import { type InsightMenuItemsProvider, type OptionalAttributeFilterComponentProvider, type OptionalDashboardContentComponentProvider, type OptionalDashboardLayoutComponentProvider, type OptionalDateFilterComponentProvider, type OptionalDrillDialogExportDropdownComponentProvider, type OptionalFilterGroupComponentProvider, type OptionalInsightBodyComponentProvider, type OptionalInsightComponentProvider, type OptionalInsightMenuButtonComponentProvider, type OptionalInsightMenuComponentProvider, type OptionalInsightMenuTitleComponentProvider, type OptionalMeasureValueFilterComponentProvider, type OptionalRichTextComponentProvider, type OptionalRichTextMenuComponentProvider, type OptionalRichTextMenuTitleComponentProvider, type OptionalShowAsTableButtonComponentProvider, type OptionalVisualizationSwitcherComponentProvider, type OptionalVisualizationSwitcherToolbarComponentProvider, type OptionalWidgetComponentProvider, type RichTextMenuItemsProvider } from "../dashboardContexts/types.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboard/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAE1D,OAA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AAM,WAAW,wBACb,SACI,kBAAkB,EAClB,4BAA4B,EAC5B,6BAA6B,EAC7B,sBAAsB;IAC1B;;;;;;;;;;;OAWG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAAC,CAAC;CACnE;AAED;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,mBAAmB,EAAE,wBAAwB;IAClF,QAAQ,CAAC,EAAE,YAAY,GAAG,CAAC,CAAC,SAAS,EAAE,GAAG,KAAK,YAAY,CAAC,CAAC;IAC7D;;;OAGG;IACH,kBAAkB,CAAC,EAAE,UAAU,CAAC;CACnC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ComponentType, type ReactElement, type ReactNode } from "react";
|
|
2
2
|
import { type IErrorProps, type ILoadingProps } from "@gooddata/sdk-ui";
|
|
3
|
-
import { type CustomAlertingDialogComponent, type CustomAlertingManagementDialogComponent } from "../automations/
|
|
3
|
+
import { type CustomAlertingDialogComponent, type CustomAlertingManagementDialogComponent } from "../automations/alerting/types.js";
|
|
4
4
|
import { type CustomScheduledEmailDialogComponent, type CustomScheduledEmailManagementDialogComponent } from "../automations/scheduledEmail/types.js";
|
|
5
5
|
import { type AttributeFilterComponentSet, type DashboardLayoutWidgetComponentSet, type DateFilterComponentSet, type InsightWidgetComponentSet, type RichTextWidgetComponentSet, type VisualizationSwitcherWidgetComponentSet } from "../componentDefinition/types.js";
|
|
6
6
|
import { type CustomSidebarComponent } from "../dashboard/DashboardSidebar/types.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardComponentsContext.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardContexts/DashboardComponentsContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAC;AAEzG,OAAO,EAEH,KAAK,WAAW,EAChB,KAAK,aAAa,EAGrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACH,KAAK,6BAA6B,EAClC,KAAK,uCAAuC,EAC/C,MAAM,
|
|
1
|
+
{"version":3,"file":"DashboardComponentsContext.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardContexts/DashboardComponentsContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAC;AAEzG,OAAO,EAEH,KAAK,WAAW,EAChB,KAAK,aAAa,EAGrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACH,KAAK,6BAA6B,EAClC,KAAK,uCAAuC,EAC/C,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,6CAA6C,EACrD,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,iCAAiC,EACtC,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,uCAAuC,EAC/C,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AACrF,OAAO,EAAE,KAAK,sCAAsC,EAAE,MAAM,qCAAqC,CAAC;AAClG,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,KAAK,sCAAsC,EAAE,MAAM,4BAA4B,CAAC;AACzF,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,mDAAmD,CAAC;AACtG,OAAO,EA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AACH,wBAAgB,2BAA2B,CAAC,EACxC,QAAQ,EACR,GAAG,UAAU,EAChB,EAAE,iCAAiC,GAAG,YAAY,CAMlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrillSelectDropdown.d.ts","sourceRoot":"","sources":["../../../../src/presentation/drill/DrillSelect/DrillSelectDropdown.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,YAAY,CAAC;AAGrD,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,OAAO,EAcf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,WAAW,EAAsB,MAAM,kBAAkB,CAAC;AAIxE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAOzE,OAAO,EAAE,KAAK,wBAAwB,EAAyB,MAAM,mBAAmB,CAAC;AAazF,OAAO,EAAa,KAAK,mBAAmB,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAExF,MAAM,WAAW,yBAA0B,SAAQ,mBAAmB;IAClE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACxE;AAED,wBAAgB,mBAAmB,CAAC,EAChC,MAAM,EACN,mBAAmB,EACnB,OAAO,EACP,kBAAkB,EAClB,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACb,EAAE,yBAAyB,
|
|
1
|
+
{"version":3,"file":"DrillSelectDropdown.d.ts","sourceRoot":"","sources":["../../../../src/presentation/drill/DrillSelect/DrillSelectDropdown.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,YAAY,CAAC;AAGrD,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,OAAO,EAcf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,WAAW,EAAsB,MAAM,kBAAkB,CAAC;AAIxE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAOzE,OAAO,EAAE,KAAK,wBAAwB,EAAyB,MAAM,mBAAmB,CAAC;AAazF,OAAO,EAAa,KAAK,mBAAmB,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAExF,MAAM,WAAW,yBAA0B,SAAQ,mBAAmB;IAClE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACxE;AAED,wBAAgB,mBAAmB,CAAC,EAChC,MAAM,EACN,mBAAmB,EACnB,OAAO,EACP,kBAAkB,EAClB,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACb,EAAE,yBAAyB,kDAuK3B;AAqFD,eAAO,MAAM,sBAAsB;;;;;;;;;wBA2JlC,CAAC"}
|
|
@@ -126,7 +126,7 @@ export function DrillSelectDropdown({ isOpen, dropDownAnchorClass, onClose, onCl
|
|
|
126
126
|
}
|
|
127
127
|
return (_jsx("div", { className: "gd-drill-modal-picker-overlay-mask", children: _jsx(Overlay, { closeOnOutsideClick: true, closeOnEscape: true, alignTo: `.${dropDownAnchorClass}`, alignPoints: alignPoints, onClose: onCloseReturnFocus, children: _jsx(UiFocusManager, { enableFocusTrap: true, enableAutofocus: true, children: _jsx("div", { onScroll: stopPropagation, className: "gd-drill-modal-picker-dropdown s-drill-item-selector-dropdown", children: _jsx(UiMenu, { items: menuItems, onSelect: (item) => {
|
|
128
128
|
item.data.onSelect();
|
|
129
|
-
}, shouldCloseOnSelect: false, onClose: onCloseReturnFocus, onUnhandledKeyDown: handleKeyDown, maxHeight: 160, containerBottomPadding: "medium", ariaAttributes: {
|
|
129
|
+
}, shouldCloseOnSelect: false, onClose: onCloseReturnFocus, onUnhandledKeyDown: handleKeyDown, maxHeight: 160, containerBottomPadding: "medium", size: "small", ariaAttributes: {
|
|
130
130
|
id: "drill-select-menu",
|
|
131
131
|
"aria-label": intl.formatMessage({
|
|
132
132
|
id: "drill_modal_picker.label",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type IUiMenuInteractiveItemProps } from "@gooddata/sdk-ui-kit";
|
|
2
2
|
import { type IDrillSelectDropdownMenuItemData } from "../hooks/useDrillSelectDropdownMenuItems.js";
|
|
3
|
-
export declare function DrillSelectDropdownMenuItem(
|
|
3
|
+
export declare function DrillSelectDropdownMenuItem(props: IUiMenuInteractiveItemProps<IDrillSelectDropdownMenuItemData>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=DrillSelectDropdownMenuItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrillSelectDropdownMenuItem.d.ts","sourceRoot":"","sources":["../../../../src/presentation/drill/DrillSelect/DrillSelectDropdownMenuItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DrillSelectDropdownMenuItem.d.ts","sourceRoot":"","sources":["../../../../src/presentation/drill/DrillSelect/DrillSelectDropdownMenuItem.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAgC,KAAK,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAEtG,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,6CAA6C,CAAC;AAEpG,wBAAgB,2BAA2B,CACvC,KAAK,EAAE,2BAA2B,CAAC,gCAAgC,CAAC,2CAiBvE"}
|
|
@@ -1,32 +1,10 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2025-2026 GoodData Corporation
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const DRILL_ICON_NAME = {
|
|
8
|
-
[DrillType.DRILL_TO_DASHBOARD]: "drillTo",
|
|
9
|
-
[DrillType.DRILL_TO_INSIGHT]: "drillTo",
|
|
10
|
-
[DrillType.DRILL_TO_URL]: "link",
|
|
11
|
-
[DrillType.DRILL_DOWN]: "trendDown",
|
|
12
|
-
[DrillType.CROSS_FILTERING]: "filter",
|
|
13
|
-
[DrillType.KEY_DRIVER_ANALYSIS]: "explainai",
|
|
14
|
-
};
|
|
15
|
-
export function DrillSelectDropdownMenuItem({ item, }) {
|
|
16
|
-
const { type, name, attributeValue } = item.data;
|
|
17
|
-
const { isDisabled, tooltip } = item;
|
|
18
|
-
const renderLoading = () => {
|
|
3
|
+
import { DefaultUiMenuInteractiveItem } from "@gooddata/sdk-ui-kit";
|
|
4
|
+
export function DrillSelectDropdownMenuItem(props) {
|
|
5
|
+
const { item, isFocused } = props;
|
|
6
|
+
if (!item.stringTitle) {
|
|
19
7
|
return (_jsx("div", { className: "gd-drill-to-url-modal-picker s-drill-to-url-modal-picker", children: _jsx("div", { className: "gd-spinner small" }) }));
|
|
20
|
-
};
|
|
21
|
-
const itemClassName = cx("gd-drill-modal-picker-list-item", "s-gd-drill-modal-picker-item", `s-${type}`, {
|
|
22
|
-
"is-disabled": isDisabled,
|
|
23
|
-
});
|
|
24
|
-
// make sure there is no trailing space in case attributeLabel is empty
|
|
25
|
-
const title = compact([name, attributeValue]).join(" ");
|
|
26
|
-
const content = (_jsxs("div", { className: itemClassName, title: title, children: [
|
|
27
|
-
_jsx("div", { className: "gd-drill-modal-picker-icon-wrapper", children: _jsx(UiIcon, { type: DRILL_ICON_NAME[type], size: 16, color: "complementary-5" }) }), name ? (_jsxs("p", { children: [name, attributeValue ? _jsxs("span", { children: ["\u00A0(", attributeValue, ")"] }) : null] })) : (renderLoading())] }));
|
|
28
|
-
if (tooltip) {
|
|
29
|
-
return (_jsx(UiTooltip, { anchor: content, content: tooltip, optimalPlacement: true, triggerBy: ["hover"], arrowPlacement: "left" }));
|
|
30
8
|
}
|
|
31
|
-
return
|
|
9
|
+
return (_jsx("div", { className: `s-gd-drill-modal-picker-item s-${item.data.type}`, children: _jsx(DefaultUiMenuInteractiveItem, { item: item, isFocused: isFocused }) }));
|
|
32
10
|
}
|
|
@@ -4,10 +4,7 @@ import { DrillType, type IDrillSelectItem } from "../DrillSelect/types.js";
|
|
|
4
4
|
export interface IDrillSelectDropdownMenuItemData {
|
|
5
5
|
interactive: {
|
|
6
6
|
type: DrillType;
|
|
7
|
-
name: string;
|
|
8
7
|
drillDefinition: DashboardDrillDefinition;
|
|
9
|
-
context?: unknown;
|
|
10
|
-
attributeValue?: string | null;
|
|
11
8
|
onSelect: () => void;
|
|
12
9
|
};
|
|
13
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDrillSelectDropdownMenuItems.d.ts","sourceRoot":"","sources":["../../../../src/presentation/drill/hooks/useDrillSelectDropdownMenuItems.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDrillSelectDropdownMenuItems.d.ts","sourceRoot":"","sources":["../../../../src/presentation/drill/hooks/useDrillSelectDropdownMenuItems.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,sBAAsB,CAAC;AAE/E,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAuB3E,MAAM,WAAW,gCAAgC;IAC7C,WAAW,EAAE;QACT,IAAI,EAAE,SAAS,CAAC;QAChB,eAAe,EAAE,wBAAwB,CAAC;QAC1C,QAAQ,EAAE,MAAM,IAAI,CAAC;KACxB,CAAC;CACL;AAED,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,gCAAgC,CAAC,CAAC;AAEjF,eAAO,MAAM,+BAA+B;;;;;;;4BAiG3C,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
// (C) 2025-2026 GoodData Corporation
|
|
2
3
|
import { useMemo } from "react";
|
|
4
|
+
import { compact } from "lodash-es";
|
|
3
5
|
import { defineMessages, useIntl } from "react-intl";
|
|
6
|
+
import { UiIcon } from "@gooddata/sdk-ui-kit";
|
|
4
7
|
import { DrillType } from "../DrillSelect/types.js";
|
|
5
8
|
const groupMenuItemMessages = defineMessages({
|
|
6
9
|
drillDown: { id: "drill_modal_picker.drill-down" },
|
|
@@ -9,6 +12,17 @@ const groupMenuItemMessages = defineMessages({
|
|
|
9
12
|
keyDriverAnalysis: { id: "drill_modal_picker.key-driver-analysis" },
|
|
10
13
|
drillToUrl: { id: "drill_modal_picker.drill-to-url" },
|
|
11
14
|
});
|
|
15
|
+
const DRILL_ICON_NAME = {
|
|
16
|
+
[DrillType.DRILL_TO_DASHBOARD]: "drillTo",
|
|
17
|
+
[DrillType.DRILL_TO_INSIGHT]: "drillTo",
|
|
18
|
+
[DrillType.DRILL_TO_URL]: "link",
|
|
19
|
+
[DrillType.DRILL_DOWN]: "trendDown",
|
|
20
|
+
[DrillType.CROSS_FILTERING]: "filter",
|
|
21
|
+
[DrillType.KEY_DRIVER_ANALYSIS]: "explainai",
|
|
22
|
+
};
|
|
23
|
+
function getMenuItemStringTitle(item) {
|
|
24
|
+
return compact([item.name, item.attributeValue ? `(${item.attributeValue})` : null]).join(" ");
|
|
25
|
+
}
|
|
12
26
|
export const useDrillSelectDropdownMenuItems = ({ drillDownItems, drillItems, crossFilteringItems, keyDriverAnalysisItems, drillToUrlItems, onSelect, }) => {
|
|
13
27
|
const { formatMessage } = useIntl();
|
|
14
28
|
return useMemo(() => {
|
|
@@ -20,7 +34,8 @@ export const useDrillSelectDropdownMenuItems = ({ drillDownItems, drillItems, cr
|
|
|
20
34
|
subItems: items.map((item, index) => ({
|
|
21
35
|
type: "interactive",
|
|
22
36
|
id: `${groupId}-${index}`,
|
|
23
|
-
stringTitle: item
|
|
37
|
+
stringTitle: getMenuItemStringTitle(item),
|
|
38
|
+
iconLeft: _jsx(UiIcon, { type: DRILL_ICON_NAME[item.type], size: 16, color: "complementary-5" }),
|
|
24
39
|
isDisabled: item.isDisabled,
|
|
25
40
|
tooltip: item.tooltipText,
|
|
26
41
|
ariaAttributes: {
|
|
@@ -30,8 +45,6 @@ export const useDrillSelectDropdownMenuItems = ({ drillDownItems, drillItems, cr
|
|
|
30
45
|
},
|
|
31
46
|
data: {
|
|
32
47
|
type: item.type,
|
|
33
|
-
name: item.name,
|
|
34
|
-
attributeValue: item.attributeValue,
|
|
35
48
|
drillDefinition: item.drillDefinition,
|
|
36
49
|
onSelect: () => {
|
|
37
50
|
onSelect(item.drillDefinition, item.context);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultFilterBarContainer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/filterBar/DefaultFilterBarContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,SAAS,EAOjB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultFilterBarContainer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/filterBar/DefaultFilterBarContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,SAAS,EAOjB,MAAM,OAAO,CAAC;AAqbf;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAQ/E"}
|
|
@@ -46,11 +46,13 @@ function DefaultFilterBarContainerCore({ children }) {
|
|
|
46
46
|
}), [isApplyAllAtOnceEnabledAndSet]);
|
|
47
47
|
const intl = useIntl();
|
|
48
48
|
const [expandedAutomatically, setExpandedAutomatically] = useState(false);
|
|
49
|
+
const [collapseAnnouncement, setCollapseAnnouncement] = useState("");
|
|
49
50
|
const onContainerFocus = useCallback(() => {
|
|
50
51
|
// detect if event is mouse
|
|
51
52
|
if (!isFocusVisible()) {
|
|
52
53
|
return;
|
|
53
54
|
}
|
|
55
|
+
setCollapseAnnouncement("");
|
|
54
56
|
setFilterBarExpanded(true);
|
|
55
57
|
setExpandedAutomatically(true);
|
|
56
58
|
}, [setFilterBarExpanded]);
|
|
@@ -58,8 +60,15 @@ function DefaultFilterBarContainerCore({ children }) {
|
|
|
58
60
|
if (isFocusVisible() && expandedAutomatically) {
|
|
59
61
|
setFilterBarExpanded(false);
|
|
60
62
|
setExpandedAutomatically(false);
|
|
63
|
+
const message = `${intl.formatMessage({ id: "filterBar.label" })}. ${intl.formatMessage({
|
|
64
|
+
id: "filterBar.filterListAutoCollapsed",
|
|
65
|
+
})}`;
|
|
66
|
+
setCollapseAnnouncement(message);
|
|
61
67
|
}
|
|
62
|
-
|
|
68
|
+
else {
|
|
69
|
+
setCollapseAnnouncement("");
|
|
70
|
+
}
|
|
71
|
+
}, [setFilterBarExpanded, expandedAutomatically, intl]);
|
|
63
72
|
const bubbleText = hasInvalidFilterSelections
|
|
64
73
|
? intl.formatMessage({ id: "filterBar.invalidFilterSelection" }, { names: filtersWithInvalidSelection.join(", ") })
|
|
65
74
|
: intl.formatMessage({ id: "filterBar.applyFilters" });
|
|
@@ -83,7 +92,7 @@ function DefaultFilterBarContainerCore({ children }) {
|
|
|
83
92
|
date: formattedDate,
|
|
84
93
|
} }), _jsx("span", { className: "filters-message-spacer" }), _jsx(FormattedMessage, { id: "filterBar.executionTimestampNotificationAction", values: {
|
|
85
94
|
link: (chunks) => _jsx("a", { onClick: onShowCurrentTimestampDashboard, children: chunks }),
|
|
86
|
-
} })] }) })) : null] }));
|
|
95
|
+
} })] }) })) : null, !isFilterBarExpanded && collapseAnnouncement ? (_jsx("div", { className: "sr-only", role: "alert", children: collapseAnnouncement })) : null] }));
|
|
87
96
|
}
|
|
88
97
|
function AllFiltersContainer({ setCalculatedRows, isAutoExpanded, children, }) {
|
|
89
98
|
const ref = useRef(null);
|
|
@@ -99,6 +99,10 @@ export declare const en_US: {
|
|
|
99
99
|
text: string;
|
|
100
100
|
crowdinContext: string;
|
|
101
101
|
};
|
|
102
|
+
"filterBar.filterListAutoCollapsed": {
|
|
103
|
+
text: string;
|
|
104
|
+
crowdinContext: string;
|
|
105
|
+
};
|
|
102
106
|
"filterBar.unappliedFiltersNotification": {
|
|
103
107
|
text: string;
|
|
104
108
|
crowdinContext: string;
|