@gooddata/sdk-ui-dashboard 11.43.0-alpha.2 → 11.43.0-alpha.4
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 +4826 -13873
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/index.d.ts +4 -4
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +3 -3
- package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts +2 -2
- package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/filterViews.js +1 -5
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +1 -1
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js +1 -1
- package/esm/model/queryServices/queryWidgetFilters.d.ts +1 -1
- package/esm/model/queryServices/queryWidgetFilters.d.ts.map +1 -1
- package/esm/model/queryServices/queryWidgetFilters.js +19 -36
- 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.d.ts +0 -6
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +1 -9
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +20 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.js +48 -3
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +19 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.js +34 -33
- package/esm/model/store/topBar/topBarSelectors.d.ts.map +1 -1
- package/esm/model/store/topBar/topBarSelectors.js +4 -4
- 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 +20 -14
- 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/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/dashboardSettingsDialog/DefaultDashboardSettingsDialog.d.ts.map +1 -1
- package/esm/presentation/dashboardSettingsDialog/DefaultDashboardSettingsDialog.js +3 -4
- 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/export/DefaultDashboardExportVariables.d.ts.map +1 -1
- package/esm/presentation/export/DefaultDashboardExportVariables.js +13 -8
- package/esm/presentation/export/DefaultDashboardExportVariables.test.d.ts +2 -0
- package/esm/presentation/export/DefaultDashboardExportVariables.test.d.ts.map +1 -0
- package/esm/presentation/export/DefaultDashboardExportVariables.test.js +58 -0
- package/esm/presentation/export/types.d.ts +2 -1
- package/esm/presentation/export/types.d.ts.map +1 -1
- package/esm/presentation/export/useExportData.d.ts.map +1 -1
- package/esm/presentation/export/useExportData.js +6 -0
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +14 -5
- 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/fi-FI.localization-bundle.js +1 -1
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +2 -2
- package/esm/presentation/localization/bundles/zh-Hans.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 +20 -9
- package/package.json +20 -20
- 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 +10 -61
- 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/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
|
@@ -44,10 +44,30 @@ vi.mock("../../../../model/store/catalog/catalogSelectors.js", () => ({
|
|
|
44
44
|
selectCatalogMeasures: () => [],
|
|
45
45
|
}));
|
|
46
46
|
vi.mock("../../../../model/store/config/configSelectors.js", () => ({
|
|
47
|
+
selectEnableAlertAttributes: () => false,
|
|
48
|
+
selectEnableAlertOncePerInterval: () => false,
|
|
49
|
+
selectEnableAnomalyDetectionAlert: () => false,
|
|
50
|
+
selectEnableAutomationManagement: () => false,
|
|
51
|
+
selectEnableComparisonInAlerting: () => false,
|
|
52
|
+
selectEnableExternalRecipients: () => false,
|
|
47
53
|
selectEnableNewScheduledExport: () => false,
|
|
54
|
+
selectExternalRecipient: () => undefined,
|
|
55
|
+
selectIsWhiteLabeled: () => false,
|
|
48
56
|
selectLocale: () => "en-US",
|
|
49
57
|
selectSeparators: () => ({ decimal: ".", thousand: "," }),
|
|
50
58
|
selectSettings: () => undefined,
|
|
59
|
+
selectTimezone: () => undefined,
|
|
60
|
+
selectWeekStart: () => "Sunday",
|
|
61
|
+
}));
|
|
62
|
+
vi.mock("../../../../model/store/permissions/permissionsSelectors.js", () => ({
|
|
63
|
+
selectCanManageWorkspace: () => false,
|
|
64
|
+
selectCanUseAiAssistant: () => false,
|
|
65
|
+
}));
|
|
66
|
+
vi.mock("../../../../model/store/topBar/topBarSelectors.js", () => ({
|
|
67
|
+
selectIsAutomationDialogSecondaryTitleVisible: () => false,
|
|
68
|
+
}));
|
|
69
|
+
vi.mock("../../../../model/store/user/userSelectors.js", () => ({
|
|
70
|
+
selectCurrentUser: () => ({ login: "test@example.com", ref: { identifier: "test" } }),
|
|
51
71
|
}));
|
|
52
72
|
vi.mock("../../../../model/store/filtering/dashboardFilterSelectors.js", () => ({
|
|
53
73
|
selectAutomationAvailableDashboardFilters: () => [],
|
|
@@ -81,6 +101,13 @@ vi.mock("../../../../model/store/tabs/dateFilterConfigs/dateFilterConfigsSelecto
|
|
|
81
101
|
vi.mock("../../../../model/store/tabs/filterContext/filterContextSelectors.js", () => ({
|
|
82
102
|
selectAttributeFilterDisplayFormsMap: () => new Map(),
|
|
83
103
|
}));
|
|
104
|
+
vi.mock("../../../../model/store/entitlements/entitlementsSelectors.js", () => ({
|
|
105
|
+
selectMaxAutomationRecipients: () => 10,
|
|
106
|
+
selectEntitlementMinimumRecurrenceMinutes: () => undefined,
|
|
107
|
+
}));
|
|
108
|
+
vi.mock("../../../../model/store/ui/uiSelectors.js", () => ({
|
|
109
|
+
selectExecutionTimestamp: () => undefined,
|
|
110
|
+
}));
|
|
84
111
|
vi.mock("../../../../model/store/tabs/measureValueFilterConfigs/measureValueFilterConfigsSelectors.js", () => ({
|
|
85
112
|
selectMeasureValueFilterConfigsOverrides: () => [],
|
|
86
113
|
selectMeasureValueFilterConfigsOverridesByTab: () => ({}),
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { IExecutionResult } from "@gooddata/sdk-backend-spi";
|
|
2
|
+
import type { FilterContextItem, IAutomationMetadataObject, IAutomationMetadataObjectDefinition, IInsight, IInsightParameterValue, IWidget, ObjRef } from "@gooddata/sdk-model";
|
|
3
|
+
/**
|
|
4
|
+
* Sub-context for the alerting create/edit dialog.
|
|
5
|
+
* Shape grows during Phase 2 migration as DefaultAlertingDialog and its hooks are migrated.
|
|
6
|
+
*
|
|
7
|
+
* The connector hydrates this from dashboard state and provides the CRUD callbacks.
|
|
8
|
+
* The dialog reads from this context instead of calling useDashboardSelector directly.
|
|
9
|
+
*/
|
|
10
|
+
export interface IAlertingDialogContextValue {
|
|
11
|
+
mode: "create" | "edit";
|
|
12
|
+
widget?: IWidget;
|
|
13
|
+
insight?: IInsight;
|
|
14
|
+
widgetTitle?: string;
|
|
15
|
+
dashboardId?: string;
|
|
16
|
+
dashboardFilters: FilterContextItem[];
|
|
17
|
+
hiddenFilters: FilterContextItem[];
|
|
18
|
+
widgetLocalIdToTabIdMap: Record<string, string>;
|
|
19
|
+
executionResultByRef: (ref: ObjRef | undefined) => {
|
|
20
|
+
executionResult?: IExecutionResult;
|
|
21
|
+
} | undefined;
|
|
22
|
+
/** Effective widget parameter values for the dialog's widget (replaces direct selectEffectiveParameterValuesForWidget read) */
|
|
23
|
+
parameterValues: IInsightParameterValue[];
|
|
24
|
+
commonDateFilterId?: string;
|
|
25
|
+
dashboardEvaluationFrequency?: string;
|
|
26
|
+
createAlert(alert: IAutomationMetadataObjectDefinition): Promise<IAutomationMetadataObject>;
|
|
27
|
+
saveAlert(alert: IAutomationMetadataObject): Promise<IAutomationMetadataObject>;
|
|
28
|
+
deleteAlert(alert: IAutomationMetadataObject): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
export declare const AlertingDialogContextProvider: import("react").Provider<IAlertingDialogContextValue | undefined>;
|
|
31
|
+
export declare function useAlertingDialogContext(): IAlertingDialogContextValue;
|
|
32
|
+
//# sourceMappingURL=AlertingDialogContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertingDialogContext.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/contexts/AlertingDialogContext.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EACR,iBAAiB,EACjB,yBAAyB,EACzB,mCAAmC,EACnC,QAAQ,EACR,sBAAsB,EACtB,OAAO,EACP,MAAM,EACT,MAAM,qBAAqB,CAAC;AAE7B;;;;;;GAMG;AACH,MAAM,WAAW,2BAA2B;IACxC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,iBAAiB,EAAE,CAAC;IACtC,aAAa,EAAE,iBAAiB,EAAE,CAAC;IACnC,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChD,oBAAoB,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,KAAK;QAAE,eAAe,CAAC,EAAE,gBAAgB,CAAA;KAAE,GAAG,SAAS,CAAC;IACtG,+HAA+H;IAC/H,eAAe,EAAE,sBAAsB,EAAE,CAAC;IAC1C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,WAAW,CAAC,KAAK,EAAE,mCAAmC,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAC5F,SAAS,CAAC,KAAK,EAAE,yBAAyB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAChF,WAAW,CAAC,KAAK,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAID,eAAO,MAAM,6BAA6B,mEAAiC,CAAC;AAE5E,wBAAgB,wBAAwB,IAAI,2BAA2B,CAMtE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
import { createContext, useContext } from "react";
|
|
3
|
+
const AlertingDialogContext = createContext(undefined);
|
|
4
|
+
export const AlertingDialogContextProvider = AlertingDialogContext.Provider;
|
|
5
|
+
export function useAlertingDialogContext() {
|
|
6
|
+
const ctx = useContext(AlertingDialogContext);
|
|
7
|
+
if (!ctx) {
|
|
8
|
+
throw new Error("useAlertingDialogContext must be used within AlertingDialogContextProvider");
|
|
9
|
+
}
|
|
10
|
+
return ctx;
|
|
11
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DashboardAttributeFilterSelectionType, DateFilterGranularity, FilterContextItem, IAttributeDisplayFormMetadataObject, ICatalogAttribute, ICatalogDateAttribute, ICatalogDateDataset, ICatalogMeasure, IDashboardAttributeFilterConfig, IDashboardDateFilterConfig, IDashboardDateFilterConfigItem, IDashboardMeasureValueFilterConfig, ISeparators, ISettings, ObjRef } from "@gooddata/sdk-model";
|
|
1
|
+
import type { DashboardAttributeFilterSelectionType, DateFilterGranularity, FilterContextItem, IAttributeDisplayFormMetadataObject, ICatalogAttribute, ICatalogDateAttribute, ICatalogDateDataset, ICatalogMeasure, IDashboardAttributeFilterConfig, IDashboardDateFilterConfig, IDashboardDateFilterConfigItem, IDashboardMeasureValueFilterConfig, ISeparators, ISettings, IUser, ObjRef, WeekStart } from "@gooddata/sdk-model";
|
|
2
2
|
import type { ILocale } from "@gooddata/sdk-ui";
|
|
3
3
|
import type { IDateFilterOptionsByType } from "@gooddata/sdk-ui-filters";
|
|
4
4
|
import type { IAutomationFiltersTab } from "../../../model/store/filtering/types.js";
|
|
@@ -42,6 +42,25 @@ export interface IAutomationsContextValue {
|
|
|
42
42
|
defaultSelectedFilters: FilterContextItem[];
|
|
43
43
|
automationAvailableFilters: FilterContextItem[];
|
|
44
44
|
enableNewScheduledExport: boolean;
|
|
45
|
+
maxAutomationsRecipients: number;
|
|
46
|
+
isExecutionTimestampMode: boolean;
|
|
47
|
+
allowHourlyRecurrence: boolean;
|
|
48
|
+
currentUser: IUser;
|
|
49
|
+
weekStart: WeekStart;
|
|
50
|
+
timezone: string | undefined;
|
|
51
|
+
isWhiteLabeled: boolean;
|
|
52
|
+
isSecondaryTitleVisible: boolean;
|
|
53
|
+
externalRecipient: string | undefined;
|
|
54
|
+
features: {
|
|
55
|
+
enableAlertOncePerInterval: boolean;
|
|
56
|
+
enableAnomalyDetectionAlert: boolean;
|
|
57
|
+
enableAutomationManagement: boolean;
|
|
58
|
+
canUseAiAssistant: boolean;
|
|
59
|
+
enableComparisonInAlerting: boolean;
|
|
60
|
+
enableExternalRecipients: boolean;
|
|
61
|
+
enableAlertAttributes: boolean;
|
|
62
|
+
canManageWorkspace: boolean;
|
|
63
|
+
};
|
|
45
64
|
getCatalogAttributeByRef: (ref: ObjRef) => ICatalogAttribute | ICatalogDateAttribute | undefined;
|
|
46
65
|
getAttributeFilterDisplayForm: (displayForm: ObjRef) => IAttributeDisplayFormMetadataObject | undefined;
|
|
47
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutomationsContext.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/contexts/AutomationsContext.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACR,qCAAqC,EACrC,qBAAqB,EACrB,iBAAiB,EACjB,mCAAmC,EACnC,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,+BAA+B,EAC/B,0BAA0B,EAC1B,8BAA8B,EAC9B,kCAAkC,EAClC,WAAW,EACX,SAAS,EACT,MAAM,
|
|
1
|
+
{"version":3,"file":"AutomationsContext.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/contexts/AutomationsContext.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACR,qCAAqC,EACrC,qBAAqB,EACrB,iBAAiB,EACjB,mCAAmC,EACnC,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,+BAA+B,EAC/B,0BAA0B,EAC1B,8BAA8B,EAC9B,kCAAkC,EAClC,WAAW,EACX,SAAS,EACT,KAAK,EACL,MAAM,EACN,SAAS,EACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAErF;;;GAGG;AACH,MAAM,WAAW,4BAA4B;IACzC,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;IAChD,iBAAiB,EAAE,wBAAwB,CAAC;IAC5C,sBAAsB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,qBAAqB,EAAE,CAAC;IACnE,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,wBAAwB,GAAG,SAAS,CAAC;CAC7E;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB;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AE,MAAM,CAAC;IACjC,wBAAwB,EAAE,OAAO,CAAC;IAClC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,WAAW,EAAE,KAAK,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,cAAc,EAAE,OAAO,CAAC;IACxB,uBAAuB,EAAE,OAAO,CAAC;IACjC,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,QAAQ,EAAE;QACN,0BAA0B,EAAE,OAAO,CAAC;QACpC,2BAA2B,EAAE,OAAO,CAAC;QACrC,0BAA0B,EAAE,OAAO,CAAC;QACpC,iBAAiB,EAAE,OAAO,CAAC;QAC3B,0BAA0B,EAAE,OAAO,CAAC;QACpC,wBAAwB,EAAE,OAAO,CAAC;QAClC,qBAAqB,EAAE,OAAO,CAAC;QAC/B,kBAAkB,EAAE,OAAO,CAAC;KAC/B,CAAC;IACF,wBAAwB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,iBAAiB,GAAG,qBAAqB,GAAG,SAAS,CAAC;IACjG,6BAA6B,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,mCAAmC,GAAG,SAAS,CAAC;CAC3G;AAID,eAAO,MAAM,0BAA0B,gEAA8B,CAAC;AAEtE,wBAAgB,qBAAqB,IAAI,wBAAwB,CAWhE"}
|
|
@@ -5,7 +5,10 @@ export const AutomationsContextProvider = AutomationsContext.Provider;
|
|
|
5
5
|
export function useAutomationsContext() {
|
|
6
6
|
const ctx = useContext(AutomationsContext);
|
|
7
7
|
if (!ctx) {
|
|
8
|
-
throw new Error("useAutomationsContext must be used within AutomationsContextProvider"
|
|
8
|
+
throw new Error("useAutomationsContext must be used within an AutomationsContextProvider. " +
|
|
9
|
+
"The automation dialogs (e.g. DefaultAlertingDialog) are pure context consumers; " +
|
|
10
|
+
"render them inside a Dashboard — which supplies the provider via the alerting " +
|
|
11
|
+
"connector — or wrap them in AutomationsContextProvider yourself.");
|
|
9
12
|
}
|
|
10
13
|
return ctx;
|
|
11
14
|
}
|
|
@@ -4,6 +4,6 @@ import { describe, expect, it } from "vitest";
|
|
|
4
4
|
import { useAutomationsContext } from "./AutomationsContext.js";
|
|
5
5
|
describe("useAutomationsContext", () => {
|
|
6
6
|
it("throws when used outside provider", () => {
|
|
7
|
-
expect(() => renderHook(() => useAutomationsContext())).toThrow("useAutomationsContext must be used within AutomationsContextProvider");
|
|
7
|
+
expect(() => renderHook(() => useAutomationsContext())).toThrow("useAutomationsContext must be used within an AutomationsContextProvider");
|
|
8
8
|
});
|
|
9
9
|
});
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useMemo, useState } from "react";
|
|
4
4
|
import { sortBy } from "lodash-es";
|
|
5
|
-
import { convertUserToAutomationRecipient } from "
|
|
5
|
+
import { convertUserToAutomationRecipient } from "../../../../shared/utils/automationUtils.js";
|
|
6
6
|
import { createUser, matchUser } from "../../../utils/users.js";
|
|
7
7
|
import { isEmail } from "../../../utils/validate.js";
|
|
8
8
|
import { RecipientsSelectRenderer } from "./RecipientsSelectRenderer.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditScheduledEmail.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.ts"],"names":[],"mappings":"AAOA,OAAO,EAGH,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAE9B,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,4CAA4C,EACjD,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,oBAAoB,EAU5B,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"useEditScheduledEmail.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.ts"],"names":[],"mappings":"AAOA,OAAO,EAGH,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAE9B,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,4CAA4C,EACjD,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,oBAAoB,EAU5B,MAAM,qBAAqB,CAAC;AAiB7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAM3F,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAyBzF,MAAM,WAAW,2BAA2B;IACxC,qBAAqB,CAAC,EAAE,yBAAyB,CAAC;IAClD,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;IAC9F,wBAAwB,EAAE,MAAM,CAAC;IACjC,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC;IAC1B,uBAAuB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9C,gBAAgB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACvC,0BAA0B,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IAEnE;;;OAGG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACnE;;;OAGG;IACH,+BAA+B,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC,KAAK,IAAI,CAAC;IACzF,gBAAgB,CAAC,EAAE,qBAAqB,EAAE,GAAG,SAAS,CAAC;IACvD,gCAAgC,CAAC,EAAE,wBAAwB,EAAE,GAAG,SAAS,CAAC;IAC1E,qCAAqC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,CAAC,CAAC;IAEnF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,uBAAuB,EAAE,iBAAiB,EAAE,CAAC;IAC7C,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,wBAAwB,EAAE,OAAO,CAAC;IAClC,kBAAkB,CAAC,EAAE,4CAA4C,CAAC,UAAU,CAAC,CAAC;CACjF;AAED,wBAAgB,qBAAqB,CAAC,EAClC,qBAAqB,EACrB,oBAAoB,EACpB,OAAO,EACP,MAAM,EACN,uBAAuB,EACvB,gBAAgB,EAChB,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,+BAA+B,EAC/B,gCAAgC,EAChC,YAAY,EACZ,eAAe,EACf,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,qCAAqC,EACxC,EAAE,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA62B7B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { useCallback, useMemo, useState } from "react";
|
|
2
|
+
import { useCallback, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { invariant } from "ts-invariant";
|
|
5
5
|
import { DEFAULT_CSV_DELIMITER, insightProperties, isAutomationExternalUserRecipient, isAutomationUnknownUserRecipient, isAutomationUserRecipient, isExportDefinitionDashboardRequestPayload, isExportDefinitionVisualizationObjectRequestPayload, isInsightWidget, isWidget, objRefToString, } from "@gooddata/sdk-model";
|
|
6
|
-
import {
|
|
6
|
+
import { getAutomationExportParametersByTab, setExportParametersByTab, } from "../../../../../_staging/automation/index.js";
|
|
7
7
|
import { useDashboardSelector } from "../../../../../model/react/DashboardStoreProvider.js";
|
|
8
8
|
import { selectEnableAutomationEvaluationMode, selectEnableExternalRecipients, selectSettings, selectTimezone, } from "../../../../../model/store/config/configSelectors.js";
|
|
9
9
|
import { selectAutomationCommonDateFilterId, selectDashboardHiddenFilters, } from "../../../../../model/store/filtering/dashboardFilterSelectors.js";
|
|
@@ -15,6 +15,7 @@ import { selectUsers } from "../../../../../model/store/users/usersSelectors.js"
|
|
|
15
15
|
import { shouldStoreExportParameters } from "../../../shared/automationFilters/automationParameters.js";
|
|
16
16
|
import { getDefaultSelectedFiltersFromFiltersByTab } from "../../../shared/automationFilters/useAutomationFiltersSelect.js";
|
|
17
17
|
import { getAppliedDashboardFilters, getAppliedWidgetFilters, getVisibleFiltersByFilters, getVisibleFiltersByFiltersByTab, } from "../../../shared/automationFilters/utils.js";
|
|
18
|
+
import { areAutomationsEqual, convertCurrentUserToAutomationRecipient, convertCurrentUserToWorkspaceUser, convertExternalRecipientToAutomationRecipient, } from "../../../shared/utils/automationUtils.js";
|
|
18
19
|
import { toModifiedISOStringToTimezone, toNormalizedFirstRunAndCron, toNormalizedStartDate, } from "../../utils/date.js";
|
|
19
20
|
import { getUserTimezone } from "../../utils/timezone.js";
|
|
20
21
|
import { isEmail } from "../../utils/validate.js";
|
|
@@ -110,10 +111,17 @@ export function useEditScheduledEmail({ scheduledExportToEdit, notificationChann
|
|
|
110
111
|
parametersByTab: parametersByTabForNewAutomation,
|
|
111
112
|
}));
|
|
112
113
|
const [originalAutomation] = useState(editedAutomation);
|
|
114
|
+
// Holds the wire outside the automation so it survives a rebuild from zero export definitions —
|
|
115
|
+
// with no definitions `setExportParametersByTab` has nowhere to store it.
|
|
116
|
+
// Seeded from the stored wire.
|
|
117
|
+
const latestParametersWireRef = useRef(getAutomationExportParametersByTab(editedAutomation));
|
|
113
118
|
// The user-edit path into `content.parametersByTab`: re-encoded wire in, every export definition
|
|
114
119
|
// patched. Handed to `useAutomationExportParameters`, which owns when to call it. Definition
|
|
115
120
|
// rebuilds preserve the wire separately via `withRebuiltExportDefinitions`.
|
|
116
|
-
const setParametersWire = useCallback((wire) =>
|
|
121
|
+
const setParametersWire = useCallback((wire) => {
|
|
122
|
+
latestParametersWireRef.current = wire;
|
|
123
|
+
setEditedAutomation((automation) => setExportParametersByTab(automation, wire));
|
|
124
|
+
}, []);
|
|
117
125
|
const selectedAttachments = useMemo(() => {
|
|
118
126
|
return (editedAutomation.exportDefinitions
|
|
119
127
|
?.map((exportDefinition) => exportDefinition.requestPayload.format)
|
|
@@ -128,7 +136,7 @@ export function useEditScheduledEmail({ scheduledExportToEdit, notificationChann
|
|
|
128
136
|
setEditedAutomation((s) => ({
|
|
129
137
|
...s,
|
|
130
138
|
schedule: {
|
|
131
|
-
...
|
|
139
|
+
...s.schedule,
|
|
132
140
|
cron: cronExpression,
|
|
133
141
|
firstRun: toModifiedISOStringToTimezone(startDate ?? new Date(), timezone).iso,
|
|
134
142
|
},
|
|
@@ -157,7 +165,7 @@ export function useEditScheduledEmail({ scheduledExportToEdit, notificationChann
|
|
|
157
165
|
setEditedAutomation((s) => ({
|
|
158
166
|
...s,
|
|
159
167
|
details: {
|
|
160
|
-
...
|
|
168
|
+
...s.details,
|
|
161
169
|
subject: value,
|
|
162
170
|
},
|
|
163
171
|
}));
|
|
@@ -167,7 +175,7 @@ export function useEditScheduledEmail({ scheduledExportToEdit, notificationChann
|
|
|
167
175
|
setEditedAutomation((s) => ({
|
|
168
176
|
...s,
|
|
169
177
|
details: {
|
|
170
|
-
...
|
|
178
|
+
...s.details,
|
|
171
179
|
message: value,
|
|
172
180
|
},
|
|
173
181
|
}));
|
|
@@ -188,7 +196,7 @@ export function useEditScheduledEmail({ scheduledExportToEdit, notificationChann
|
|
|
188
196
|
format,
|
|
189
197
|
}));
|
|
190
198
|
const updatedExportDefinitions = [...keptExportDefinitions, ...newExportDefinitions];
|
|
191
|
-
return withRebuiltExportDefinitions(s, updatedExportDefinitions);
|
|
199
|
+
return withRebuiltExportDefinitions(s, updatedExportDefinitions, latestParametersWireRef.current);
|
|
192
200
|
});
|
|
193
201
|
};
|
|
194
202
|
const onWidgetAttachmentsChange = (formats) => {
|
|
@@ -212,7 +220,7 @@ export function useEditScheduledEmail({ scheduledExportToEdit, notificationChann
|
|
|
212
220
|
defaultPdfPageSize,
|
|
213
221
|
}));
|
|
214
222
|
const updatedExportDefinitions = [...keptExportDefinitions, ...newExportDefinitions];
|
|
215
|
-
return withRebuiltExportDefinitions(s, updatedExportDefinitions);
|
|
223
|
+
return withRebuiltExportDefinitions(s, updatedExportDefinitions, latestParametersWireRef.current);
|
|
216
224
|
});
|
|
217
225
|
};
|
|
218
226
|
const onXlsxSettingsChange = useCallback((settings) => {
|
|
@@ -629,14 +637,12 @@ export function useEditScheduledEmail({ scheduledExportToEdit, notificationChann
|
|
|
629
637
|
};
|
|
630
638
|
}
|
|
631
639
|
/**
|
|
632
|
-
*
|
|
633
|
-
*
|
|
634
|
-
*
|
|
635
|
-
* with "keep parameters".
|
|
640
|
+
* Rebuilds the export definitions and re-applies the parameter wire (fresh definitions carry no
|
|
641
|
+
* `content.parametersByTab`). The wire is passed in rather than read off `automation` so it survives
|
|
642
|
+
* a rebuild from zero definitions — see `latestParametersWireRef`.
|
|
636
643
|
*/
|
|
637
|
-
function withRebuiltExportDefinitions(automation, exportDefinitions) {
|
|
644
|
+
function withRebuiltExportDefinitions(automation, exportDefinitions, parametersByTab) {
|
|
638
645
|
const next = { ...automation, exportDefinitions };
|
|
639
|
-
const parametersByTab = getAutomationExportParametersByTab(automation);
|
|
640
646
|
return parametersByTab ? setExportParametersByTab(next, parametersByTab) : next;
|
|
641
647
|
}
|
|
642
648
|
function newDashboardExportDefinitionMetadataObjectDefinition({ dashboardId, dashboardTitle, dashboardFilters, filtersByTab, format, templateId, }) {
|
|
@@ -14,6 +14,6 @@ interface IUseFiltersForDashboardScheduledExportInfoProps {
|
|
|
14
14
|
*/
|
|
15
15
|
effectiveFilters?: FilterContextItem[];
|
|
16
16
|
}
|
|
17
|
-
export declare const useFiltersForDashboardScheduledExportInfo: ({ effectiveFilters, }: IUseFiltersForDashboardScheduledExportInfoProps) => import("
|
|
17
|
+
export declare const useFiltersForDashboardScheduledExportInfo: ({ effectiveFilters, }: IUseFiltersForDashboardScheduledExportInfoProps) => import("../../../shared/hooks/useFiltersNamings.js").FilterNaming[];
|
|
18
18
|
export {};
|
|
19
19
|
//# sourceMappingURL=useFiltersForDashboardScheduledExportInfo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFiltersForDashboardScheduledExportInfo.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.ts"],"names":[],"mappings":"AAIA,OAAO,EAKH,KAAK,iBAAiB,EAKzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAQjE,MAAM,WAAW,qBAAqB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IAC1C,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACvC;AAED,UAAU,+CAA+C;IACrD;;OAEG;IACH,gBAAgB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC1C;AAED,eAAO,MAAM,yCAAyC
|
|
1
|
+
{"version":3,"file":"useFiltersForDashboardScheduledExportInfo.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.ts"],"names":[],"mappings":"AAIA,OAAO,EAKH,KAAK,iBAAiB,EAKzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAQjE,MAAM,WAAW,qBAAqB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IAC1C,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACvC;AAED,UAAU,+CAA+C;IACrD;;OAEG;IACH,gBAAgB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC1C;AAED,eAAO,MAAM,yCAAyC,iJAerD,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// (C) 2024-2026 GoodData Corporation
|
|
2
2
|
import { compact } from "lodash-es";
|
|
3
3
|
import { DashboardAttributeFilterConfigModeValues, DashboardDateFilterConfigModeValues, dashboardAttributeFilterItemLocalIdentifier, isDashboardAttributeFilterItem, isDashboardCommonDateFilter, isDashboardDateFilter, } from "@gooddata/sdk-model";
|
|
4
|
-
import { useFiltersNamings } from "../../../../../_staging/sharedHooks/useFiltersNamings.js";
|
|
5
4
|
import { useDashboardSelector } from "../../../../../model/react/DashboardStoreProvider.js";
|
|
6
5
|
import { selectEffectiveAttributeFiltersModeMap } from "../../../../../model/store/tabs/attributeFilterConfigs/attributeFilterConfigsSelectors.js";
|
|
7
6
|
import { selectEffectiveDateFilterMode } from "../../../../../model/store/tabs/dateFilterConfig/dateFilterConfigSelectors.js";
|
|
8
7
|
import { selectEffectiveDateFiltersModeMap } from "../../../../../model/store/tabs/dateFilterConfigs/dateFilterConfigsSelectors.js";
|
|
8
|
+
import { useFiltersNamings } from "../../../shared/hooks/useFiltersNamings.js";
|
|
9
9
|
export const useFiltersForDashboardScheduledExportInfo = ({ effectiveFilters = [], }) => {
|
|
10
10
|
// Remove hidden dashboard filters, we don't want to display them.
|
|
11
11
|
const commonDateFilterMode = useDashboardSelector(selectEffectiveDateFilterMode);
|
|
@@ -5,11 +5,11 @@ import cx from "classnames";
|
|
|
5
5
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
6
|
import { Bubble, BubbleHoverTrigger, IconInsight, IconSimplifiedDashboard, IconWarning, SELECT_ITEM_ACTION, ShortenedText, } from "@gooddata/sdk-ui-kit";
|
|
7
7
|
import { useTheme } from "@gooddata/sdk-ui-theme-provider";
|
|
8
|
-
import { isVisualisationAutomation } from "../../../../../_staging/automation/index.js";
|
|
9
8
|
import { useDashboardSelector } from "../../../../../model/react/DashboardStoreProvider.js";
|
|
10
9
|
import { selectCanManageWorkspace } from "../../../../../model/store/permissions/permissionsSelectors.js";
|
|
11
10
|
import { selectCurrentUser } from "../../../../../model/store/user/userSelectors.js";
|
|
12
11
|
import { gdColorNegative, gdColorStateBlank } from "../../../../constants/colors.js";
|
|
12
|
+
import { isVisualisationAutomation } from "../../../shared/utils/automationUtils.js";
|
|
13
13
|
import { useScheduleValidation } from "../../DefaultScheduledEmailDialog/hooks/useScheduleValidation.js";
|
|
14
14
|
const ICON_TOOLTIP_ALIGN_POINTS = [
|
|
15
15
|
{ align: "cr cl", offset: { x: 0, y: 0 } },
|
|
@@ -51,6 +51,25 @@ function createAutomationsContextValue(overrides) {
|
|
|
51
51
|
defaultSelectedFilters: [],
|
|
52
52
|
automationAvailableFilters: [],
|
|
53
53
|
enableNewScheduledExport: false,
|
|
54
|
+
maxAutomationsRecipients: 10,
|
|
55
|
+
isExecutionTimestampMode: false,
|
|
56
|
+
allowHourlyRecurrence: true,
|
|
57
|
+
currentUser: { login: "test@example.com", ref: { identifier: "test" } },
|
|
58
|
+
weekStart: "Sunday",
|
|
59
|
+
timezone: undefined,
|
|
60
|
+
isWhiteLabeled: false,
|
|
61
|
+
isSecondaryTitleVisible: false,
|
|
62
|
+
externalRecipient: undefined,
|
|
63
|
+
features: {
|
|
64
|
+
enableAlertOncePerInterval: false,
|
|
65
|
+
enableAnomalyDetectionAlert: false,
|
|
66
|
+
enableAutomationManagement: false,
|
|
67
|
+
canUseAiAssistant: false,
|
|
68
|
+
enableComparisonInAlerting: false,
|
|
69
|
+
enableExternalRecipients: false,
|
|
70
|
+
enableAlertAttributes: false,
|
|
71
|
+
canManageWorkspace: false,
|
|
72
|
+
},
|
|
54
73
|
getCatalogAttributeByRef: () => undefined,
|
|
55
74
|
getAttributeFilterDisplayForm: () => undefined,
|
|
56
75
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertingDialogProvider.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/DashboardHeader/AlertingDialogProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AlertingDialogProvider.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/DashboardHeader/AlertingDialogProvider.tsx"],"names":[],"mappings":"AAWA,wBAAgB,sBAAsB,4CAOrC"}
|
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
import {
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useDashboardAlerts } from "../../../model/react/useDashboardAlerting/useDashboardAlerts.js";
|
|
3
|
+
import { AlertingManagementDialog } from "../../automations/_staging/alerting/AlertingManagementDialog.js";
|
|
4
|
+
import { AlertingAutomationsProvider, AlertingConnector, } from "../../automations/connectors/AlertingConnector.js";
|
|
4
5
|
export function AlertingDialogProvider() {
|
|
5
|
-
return
|
|
6
|
+
return (_jsxs(AlertingAutomationsProvider, { children: [
|
|
7
|
+
_jsx(StagedManagementBridge, {}), _jsx(AlertingConnector, {})
|
|
8
|
+
] }));
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Renders the staged management dialog directly from Redux state.
|
|
12
|
+
* This bridge is removed in PR5 when management migrates out of _staging and into AlertingConnector.
|
|
13
|
+
*/
|
|
14
|
+
function StagedManagementBridge() {
|
|
15
|
+
const { isInitialized, isAlertManagementDialogOpen, automations, automationsLoading, automationsError, notificationChannels, onAlertingManagementClose, onAlertingManagementAdd, onAlertingManagementEdit, onAlertingManagementDeleteSuccess, onAlertingManagementDeleteError, onAlertingManagementPauseSuccess, onAlertingManagementPauseError, } = useDashboardAlerts();
|
|
16
|
+
if (!isInitialized || !isAlertManagementDialogOpen) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
return (_jsx(AlertingManagementDialog, { automations: automations, notificationChannels: notificationChannels, alertDataError: automationsError, isLoadingAlertingData: automationsLoading, onAdd: onAlertingManagementAdd, onEdit: onAlertingManagementEdit, onClose: onAlertingManagementClose, onDeleteSuccess: onAlertingManagementDeleteSuccess, onDeleteError: onAlertingManagementDeleteError, onPauseSuccess: onAlertingManagementPauseSuccess, onPauseError: onAlertingManagementPauseError }));
|
|
6
20
|
}
|
|
@@ -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,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,MAAM,EAAE,KAAK,qBAAqB,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC5G,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACzF,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,8BAA8B,EACnC,KAAK,gBAAgB,EACxB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACH,KAAK,6BAA6B,EAClC,KAAK,uCAAuC,EAC/C,MAAM,
|
|
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,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,MAAM,EAAE,KAAK,qBAAqB,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC5G,OAAO,EAAE,KA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,MAAM,CAAC;IAE1B;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;IAEzB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,qBAAqB,CAAC;IAEpC;;OAEG;IACH,kBAAkB,CAAC,EAAE,wBAAwB,CAAC;CACjD;AAED;;;;;;;;GAQG;AACH,MAAM,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,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rE,gCAAgC,EAAE,sCAAsC,CAAC;IACzE,kCAAkC,EAAE,kCAAkC,CAAC;IACvE,0CAA0C,EAAE,0CAA0C,CAAC;CAC1F;AAyED;;GAEG;AACH,eAAO,MAAM,6BAA6B,6GAYzC,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,iCAAkC,SAAQ,2BAA2B;IAClF,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,EACxC,QAAQ,EACR,GAAG,UAAU,EAChB,EAAE,iCAAiC,GAAG,YAAY,CAMlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDashboardSettingsDialog.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardSettingsDialog/DefaultDashboardSettingsDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAoD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultDashboardSettingsDialog.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardSettingsDialog/DefaultDashboardSettingsDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAoD,MAAM,OAAO,CAAC;AAqC5F,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAGhE;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,EAC3C,SAAS,EACT,OAAO,EACP,QAAQ,EACX,EAAE,6BAA6B,GAAG,YAAY,GAAG,IAAI,CAkMrD"}
|
|
@@ -7,7 +7,7 @@ import { Bubble, BubbleHoverTrigger, ConfirmDialog, DialogListHeader, Dropdown,
|
|
|
7
7
|
import { queryDateDatasetsForInsight, } from "../../model/queries/insights.js";
|
|
8
8
|
import { useDashboardSelector } from "../../model/react/DashboardStoreProvider.js";
|
|
9
9
|
import { useDashboardQueryProcessing } from "../../model/react/useDashboardQueryProcessing.js";
|
|
10
|
-
import { selectDateFormat, selectEnableAlertsEvaluationFrequencySetup, selectEnableDashboardSectionHeadersDateDataSet,
|
|
10
|
+
import { selectDateFormat, selectEnableAlertsEvaluationFrequencySetup, selectEnableDashboardSectionHeadersDateDataSet, selectIsWhiteLabeled, selectLocale, selectSettings, selectWeekStart, } from "../../model/store/config/configSelectors.js";
|
|
11
11
|
import { selectCrossFilteringEnabledAndSupported } from "../../model/store/topBar/topBarSelectors.js";
|
|
12
12
|
import { useDialogData } from "./useDialogData.js";
|
|
13
13
|
/**
|
|
@@ -22,7 +22,6 @@ export function DefaultDashboardSettingsDialog({ isVisible, onApply, onCancel /*
|
|
|
22
22
|
const locale = useDashboardSelector(selectLocale);
|
|
23
23
|
const isCrossFilteringEnabledAndSupported = useDashboardSelector(selectCrossFilteringEnabledAndSupported);
|
|
24
24
|
const enableAlertsEvaluationFrequencySetup = useDashboardSelector(selectEnableAlertsEvaluationFrequencySetup);
|
|
25
|
-
const isFilterViewsFeatureEnabled = useDashboardSelector(selectEnableFilterViews);
|
|
26
25
|
const settings = useDashboardSelector(selectSettings);
|
|
27
26
|
const isWhiteLabeled = useDashboardSelector(selectIsWhiteLabeled);
|
|
28
27
|
const enableDashboardSectionHeadersDateDataSet = useDashboardSelector(selectEnableDashboardSectionHeadersDateDataSet);
|
|
@@ -62,7 +61,7 @@ export function DefaultDashboardSettingsDialog({ isVisible, onApply, onCancel /*
|
|
|
62
61
|
disableUserFilterReset: newValue,
|
|
63
62
|
});
|
|
64
63
|
} })
|
|
65
|
-
] })) : null,
|
|
64
|
+
] })) : null, _jsx(ConfigurationOption, { label: intl.formatMessage({
|
|
66
65
|
id: "filters.configurationPanel.filterViews.toggle",
|
|
67
66
|
}), tooltip: intl.formatMessage({ id: "filters.configurationPanel.filterViews.toggle.tooltip" }, {
|
|
68
67
|
p: (chunks) => _jsx("p", { children: chunks }),
|
|
@@ -71,7 +70,7 @@ export function DefaultDashboardSettingsDialog({ isVisible, onApply, onCancel /*
|
|
|
71
70
|
...currentData,
|
|
72
71
|
disableFilterViews: newValue,
|
|
73
72
|
});
|
|
74
|
-
} })
|
|
73
|
+
} }), _jsx(ConfigurationOption, { label: intl.formatMessage({ id: "filters.configurationPanel.userFilterSave.toggle" }), tooltip: intl.formatMessage({
|
|
75
74
|
id: "filters.configurationPanel.userFilterSave.toggle.tooltip",
|
|
76
75
|
}), isChecked: !currentData.disableUserFilterSave, onChange: (newValue) => {
|
|
77
76
|
setCurrentData({
|
|
@@ -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
|
}
|