@gooddata/sdk-ui-dashboard 11.36.0-alpha.3 → 11.36.0-alpha.7
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 +74 -162
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/index.d.ts +5 -13
- package/esm/index.js +2 -10
- package/esm/internal.d.ts +1 -1
- package/esm/model/commandHandlers/dashboard/common/filterViews.js +24 -1
- package/esm/model/commandHandlers/dashboard/common/parameterHydration.d.ts +7 -1
- package/esm/model/commandHandlers/dashboard/common/parameterHydration.js +16 -2
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +4 -2
- package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.d.ts +7 -1
- package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.js +80 -4
- package/esm/model/commandHandlers/filterContext/filterViewHandler.js +10 -0
- package/esm/model/commandHandlers/filterContext/filterViewParameters.d.ts +7 -0
- package/esm/model/commandHandlers/filterContext/filterViewParameters.js +11 -0
- package/esm/model/store/config/configSelectors.d.ts +0 -12
- package/esm/model/store/config/configSelectors.js +2 -18
- package/esm/model/store/tabs/index.d.ts +4 -0
- package/esm/model/store/tabs/parameters/parametersReducers.d.ts +11 -1
- package/esm/model/store/tabs/parameters/parametersReducers.js +16 -8
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +7 -0
- package/esm/model/store/tabs/parameters/parametersSelectors.js +17 -0
- package/esm/model/store/widgetDrills/widgetDrillSelectors.js +10 -18
- package/esm/model/types/commonTypes.d.ts +11 -2
- package/esm/model/utils/measureValueFilterUtils.d.ts +14 -0
- package/esm/model/utils/measureValueFilterUtils.js +21 -0
- package/esm/presentation/alerting/DefaultAlertingDialog/{DefaultAlertingDialogNew.d.ts → DefaultAlertingDialog.d.ts} +1 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/{DefaultAlertingDialogNew.js → DefaultAlertingDialog.js} +6 -12
- package/esm/presentation/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.js +43 -9
- package/esm/presentation/alerting/DefaultAlertingDialog/hooks/useSaveAlertToBackend.js +13 -25
- package/esm/presentation/alerting/DefaultAlertingDialog/utils/items.js +5 -2
- package/esm/presentation/alerting/types.d.ts +1 -72
- package/esm/presentation/automationFilters/hooks/useValidateExistingAutomationFilters.d.ts +1 -2
- package/esm/presentation/automationFilters/hooks/useValidateExistingAutomationFilters.js +5 -5
- package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProvider.js +1 -8
- package/esm/presentation/dashboard/DashboardHeader/ScheduledEmailDialogProvider.js +17 -8
- package/esm/presentation/dashboard/DashboardHeader/ShareDialogDashboardHeader.js +5 -2
- package/esm/presentation/dashboard/components/DashboardRenderer.js +2 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +97 -13
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.d.ts +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.js +3 -3
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/DashboardParametersSection.d.ts +3 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/DashboardParametersSection.js +17 -4
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/InsightParametersSection.d.ts +4 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/InsightParametersSection.js +37 -4
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/Parameter.d.ts +4 -3
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/Parameter.js +3 -4
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.js +1 -3
- package/esm/presentation/drill/hooks/useDrillSelectDropdownMenuItems.js +1 -5
- package/esm/presentation/export/DefaultDashboardExportVariables.js +5 -2
- package/esm/presentation/export/hooks/useDashboardRelatedFilters.d.ts +2 -1
- package/esm/presentation/export/hooks/useDashboardRelatedFilters.js +9 -0
- package/esm/presentation/export/types.d.ts +2 -1
- package/esm/presentation/export/types.js +1 -1
- package/esm/presentation/export/useExportData.js +4 -0
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js +4 -1
- package/esm/presentation/filterBar/filterBar/DefaultDashboardFilterGroup.js +4 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +4 -10
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +4 -36
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +4 -36
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/es-419.localization-bundle.js +4 -10
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +4 -10
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +3 -9
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +3 -9
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +3 -9
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +26 -59
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts +2 -6
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +22 -104
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.js +12 -33
- package/esm/presentation/scheduledEmail/hooks/useWidgetAutomationFilters.d.ts +3 -0
- package/esm/presentation/scheduledEmail/hooks/useWidgetAutomationFilters.js +46 -0
- package/esm/presentation/scheduledEmail/types.d.ts +1 -7
- package/esm/presentation/scheduledEmail/utils/filters.d.ts +2 -0
- package/esm/presentation/scheduledEmail/utils/filters.js +5 -0
- package/esm/presentation/shareDialog/DefaultShareDialog.d.ts +1 -1
- package/esm/presentation/shareDialog/DefaultShareDialog.js +2 -2
- package/esm/presentation/shareDialog/types.d.ts +5 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.d.ts +2 -2
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.js +36 -5
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightWidgetAlerting.js +3 -6
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js +1 -9
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useInsightDrillConfigPanel.js +4 -10
- package/esm/sdk-ui-dashboard.d.ts +31 -249
- package/package.json +20 -20
- package/esm/model/react/filtering/shared.d.ts +0 -6
- package/esm/model/react/filtering/shared.js +0 -38
- package/esm/model/react/filtering/useAutomationAvailableDashboardFilters.d.ts +0 -13
- package/esm/model/react/filtering/useAutomationAvailableDashboardFilters.js +0 -54
- package/esm/model/react/filtering/useDashboardScheduledExportFilters.d.ts +0 -19
- package/esm/model/react/filtering/useDashboardScheduledExportFilters.js +0 -18
- package/esm/model/react/filtering/useScheduledExportFilters.d.ts +0 -26
- package/esm/model/react/filtering/useScheduledExportFilters.js +0 -23
- package/esm/model/react/filtering/useWidgetAlertFilters.d.ts +0 -33
- package/esm/model/react/filtering/useWidgetAlertFilters.js +0 -48
- package/esm/model/react/filtering/useWidgetScheduledExportFilters.d.ts +0 -33
- package/esm/model/react/filtering/useWidgetScheduledExportFilters.js +0 -48
- package/esm/model/react/useDashboardAlerting/useEnableAutomationFilterContext.d.ts +0 -4
- package/esm/model/react/useDashboardAlerting/useEnableAutomationFilterContext.js +0 -20
- package/esm/model/react/useDashboardAlertsOld.d.ts +0 -32
- package/esm/model/react/useDashboardAlertsOld.js +0 -141
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialogOld.d.ts +0 -5
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialogOld.js +0 -36
- package/esm/presentation/alerting/DefaultAlertingDialog/components/AlertAttributeSelectOld.d.ts +0 -17
- package/esm/presentation/alerting/DefaultAlertingDialog/components/AlertAttributeSelectOld.js +0 -103
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogOld.d.ts +0 -5
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogOld.js +0 -53
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertOld.d.ts +0 -9
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertOld.js +0 -84
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertsListOld.d.ts +0 -11
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertsListOld.js +0 -16
- package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProviderOld.d.ts +0 -1
- package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProviderOld.js +0 -12
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentFilters.d.ts +0 -29
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentFilters.js +0 -61
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentFiltersList.d.ts +0 -6
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentFiltersList.js +0 -12
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentItems.d.ts +0 -17
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentItems.js +0 -68
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentsWrapper.d.ts +0 -4
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentsWrapper.js +0 -6
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/DashboardAttachments.d.ts +0 -15
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/DashboardAttachments.js +0 -42
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/WidgetAttachments.d.ts +0 -18
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/WidgetAttachments.js +0 -25
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/types.d.ts +0 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/types.js +0 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertsOld.d.ts +0 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertsOld.js +0 -43
|
@@ -2198,6 +2198,15 @@ export declare type DashboardConfig = {
|
|
|
2198
2198
|
* Incompatible overrides/conversions will lead to a toast message with warning.
|
|
2199
2199
|
*/
|
|
2200
2200
|
overrideDefaultFilters?: FilterContextItem[];
|
|
2201
|
+
/**
|
|
2202
|
+
* Override runtime values of dashboard parameters on the active tab.
|
|
2203
|
+
*
|
|
2204
|
+
* @remarks
|
|
2205
|
+
* Each entry's `value` is applied as the parameter's `runtimeOverride` when its `ref` matches
|
|
2206
|
+
* a parameter on the loaded dashboard. Refs that don't match are silently ignored.
|
|
2207
|
+
* The override applies only to the active tab — other tabs keep their hydrated defaults.
|
|
2208
|
+
*/
|
|
2209
|
+
overrideDefaultParameters?: IDashboardParameter[];
|
|
2201
2210
|
/**
|
|
2202
2211
|
* Override dashboard title.
|
|
2203
2212
|
*/
|
|
@@ -3080,7 +3089,7 @@ export declare type DashboardQueryType = "GDC.DASH/QUERY.INSIGHT.DATE.DATASETS"
|
|
|
3080
3089
|
* @alpha
|
|
3081
3090
|
*/
|
|
3082
3091
|
export declare type DashboardRelatedFilter = {
|
|
3083
|
-
type: "attributeFilter" | "dateFilter";
|
|
3092
|
+
type: "attributeFilter" | "dateFilter" | "measureValueFilter";
|
|
3084
3093
|
all: boolean;
|
|
3085
3094
|
id: string;
|
|
3086
3095
|
title: string;
|
|
@@ -3714,23 +3723,13 @@ export declare const DEFAULT_TAB_ID = "defaultTabId";
|
|
|
3714
3723
|
/**
|
|
3715
3724
|
* @alpha
|
|
3716
3725
|
*/
|
|
3717
|
-
export declare function
|
|
3718
|
-
|
|
3719
|
-
/**
|
|
3720
|
-
* @alpha
|
|
3721
|
-
*/
|
|
3722
|
-
export declare function DefaultAlertingDialogOld({ editAlert, editWidget, anchorEl, onCancel, onUpdate }: IAlertingDialogOldProps): JSX.Element | null;
|
|
3726
|
+
export declare function DefaultAlertingDialog(props: IAlertingDialogProps): JSX.Element;
|
|
3723
3727
|
|
|
3724
3728
|
/**
|
|
3725
3729
|
* @alpha
|
|
3726
3730
|
*/
|
|
3727
3731
|
export declare function DefaultAlertingManagementDialogNew({ onPauseSuccess, onPauseError, onEdit, onAdd, onDeleteSuccess, onDeleteError, onClose, isLoadingAlertingData, automations }: IAlertingManagementDialogProps): JSX.Element;
|
|
3728
3732
|
|
|
3729
|
-
/**
|
|
3730
|
-
* @alpha
|
|
3731
|
-
*/
|
|
3732
|
-
export declare function DefaultAlertingManagementDialogOld({ onPauseSuccess, onPauseError, onEdit, onDeleteSuccess, onDeleteError, onClose, isLoadingAlertingData, automations }: IAlertingManagementDialogOldProps): JSX.Element;
|
|
3733
|
-
|
|
3734
3733
|
/**
|
|
3735
3734
|
* @alpha
|
|
3736
3735
|
*/
|
|
@@ -3979,7 +3978,7 @@ export declare function DefaultShareButton({ isVisible, onShareButtonClick }: IS
|
|
|
3979
3978
|
/**
|
|
3980
3979
|
* @alpha
|
|
3981
3980
|
*/
|
|
3982
|
-
export declare function DefaultShareDialog({ workspace, backend, isVisible, sharedObject, currentUser, isLockingSupported, isCurrentUserWorkspaceManager, currentUserPermissions, dashboardFilters, isShareGrantHidden, applyShareGrantOnSelect, showDashboardShareLink, isGranteeShareLoading, onApply, onCancel, onError, onInteraction, onShareLinkCopy }: IShareDialogProps): ReactElement | null;
|
|
3981
|
+
export declare function DefaultShareDialog({ workspace, backend, isVisible, sharedObject, currentUser, isLockingSupported, isCurrentUserWorkspaceManager, currentUserPermissions, dashboardFilters, dashboardParameters, isShareGrantHidden, applyShareGrantOnSelect, showDashboardShareLink, isGranteeShareLoading, onApply, onCancel, onError, onInteraction, onShareLinkCopy }: IShareDialogProps): ReactElement | null;
|
|
3983
3982
|
|
|
3984
3983
|
/**
|
|
3985
3984
|
* @alpha
|
|
@@ -5521,32 +5520,6 @@ export declare interface IAlertDialogContext {
|
|
|
5521
5520
|
alert?: IAutomationMetadataObject;
|
|
5522
5521
|
}
|
|
5523
5522
|
|
|
5524
|
-
/**
|
|
5525
|
-
* @alpha
|
|
5526
|
-
*/
|
|
5527
|
-
export declare interface IAlertingDialogOldProps {
|
|
5528
|
-
/**
|
|
5529
|
-
* Alert to be edited in the dialog.
|
|
5530
|
-
*/
|
|
5531
|
-
editAlert?: IAutomationMetadataObject;
|
|
5532
|
-
/**
|
|
5533
|
-
* Callback to be called, when user save the existing alert.
|
|
5534
|
-
*/
|
|
5535
|
-
onUpdate?: (alertingDefinition: IAutomationMetadataObject) => void;
|
|
5536
|
-
/**
|
|
5537
|
-
* Callback to be called, when user closes the alerting dialog.
|
|
5538
|
-
*/
|
|
5539
|
-
onCancel?: () => void;
|
|
5540
|
-
/**
|
|
5541
|
-
* Widget to be edited in the dialog.
|
|
5542
|
-
*/
|
|
5543
|
-
editWidget?: IInsightWidget;
|
|
5544
|
-
/**
|
|
5545
|
-
* Anchor element for the dialog.
|
|
5546
|
-
*/
|
|
5547
|
-
anchorEl?: HTMLElement | null;
|
|
5548
|
-
}
|
|
5549
|
-
|
|
5550
5523
|
/**
|
|
5551
5524
|
* @alpha
|
|
5552
5525
|
*/
|
|
@@ -5613,53 +5586,6 @@ export declare interface IAlertingDialogProps {
|
|
|
5613
5586
|
onDeleteError?: (error: GoodDataSdkError) => void;
|
|
5614
5587
|
}
|
|
5615
5588
|
|
|
5616
|
-
/**
|
|
5617
|
-
* @alpha
|
|
5618
|
-
*/
|
|
5619
|
-
export declare interface IAlertingManagementDialogOldProps {
|
|
5620
|
-
/**
|
|
5621
|
-
* Callback to be called, when user clicks alert item for editing.
|
|
5622
|
-
*/
|
|
5623
|
-
onEdit?: (alertingDefinition: IAutomationMetadataObject, widget: IInsightWidget | undefined, anchor: HTMLElement | null, onClosed: () => void) => void;
|
|
5624
|
-
/**
|
|
5625
|
-
* Callback to be called, when user closes the alert management dialog.
|
|
5626
|
-
*/
|
|
5627
|
-
onClose?: () => void;
|
|
5628
|
-
/**
|
|
5629
|
-
* Is loading alert data?
|
|
5630
|
-
*/
|
|
5631
|
-
isLoadingAlertingData: boolean;
|
|
5632
|
-
/**
|
|
5633
|
-
* Error occurred while loading alert data?
|
|
5634
|
-
*/
|
|
5635
|
-
alertingDataError?: GoodDataSdkError;
|
|
5636
|
-
/**
|
|
5637
|
-
* Automations in workspace
|
|
5638
|
-
*/
|
|
5639
|
-
automations: IAutomationMetadataObject[];
|
|
5640
|
-
/**
|
|
5641
|
-
* Callback to be called, when alert is deleted.
|
|
5642
|
-
* @param alert - alert that was deleted
|
|
5643
|
-
*/
|
|
5644
|
-
onDeleteSuccess?: (alert: IAutomationMetadataObject) => void;
|
|
5645
|
-
/**
|
|
5646
|
-
* Callback to be called, when alert fails to delete.
|
|
5647
|
-
*/
|
|
5648
|
-
onDeleteError?: (error: GoodDataSdkError) => void;
|
|
5649
|
-
/**
|
|
5650
|
-
* Callback to be called, when alert is paused.
|
|
5651
|
-
* @param alert - alert that was paused
|
|
5652
|
-
* @param pause - true if alert was paused, false if it was resumed
|
|
5653
|
-
*/
|
|
5654
|
-
onPauseSuccess: (alert: IAutomationMetadataObject, pause: boolean) => void;
|
|
5655
|
-
/**
|
|
5656
|
-
* Callback to be called, when alert fails to pause.
|
|
5657
|
-
* @param error - error that occurred
|
|
5658
|
-
* @param pause - true if alert was paused, false if it was resumed
|
|
5659
|
-
*/
|
|
5660
|
-
onPauseError: (error: GoodDataSdkError, pause: boolean) => void;
|
|
5661
|
-
}
|
|
5662
|
-
|
|
5663
5589
|
/**
|
|
5664
5590
|
* @alpha
|
|
5665
5591
|
*/
|
|
@@ -16630,13 +16556,6 @@ export declare interface IScheduledEmailDialogProps {
|
|
|
16630
16556
|
onDeleteError?: (error: GoodDataSdkError) => void;
|
|
16631
16557
|
}
|
|
16632
16558
|
|
|
16633
|
-
/**
|
|
16634
|
-
* @internal
|
|
16635
|
-
*/
|
|
16636
|
-
export declare interface IScheduledEmailDialogPropsContext {
|
|
16637
|
-
widgetRef?: ObjRef | undefined;
|
|
16638
|
-
}
|
|
16639
|
-
|
|
16640
16559
|
/**
|
|
16641
16560
|
*
|
|
16642
16561
|
* @alpha
|
|
@@ -18340,7 +18259,14 @@ export declare interface ISetMeasureValueFilterTitlePayload {
|
|
|
18340
18259
|
*/
|
|
18341
18260
|
export declare interface ISetParameterRuntimeValuePayload {
|
|
18342
18261
|
ref: ObjRef;
|
|
18343
|
-
value: number;
|
|
18262
|
+
value: number | undefined;
|
|
18263
|
+
}
|
|
18264
|
+
|
|
18265
|
+
/**
|
|
18266
|
+
* @alpha
|
|
18267
|
+
*/
|
|
18268
|
+
export declare interface ISetParameterRuntimeValuesPayload {
|
|
18269
|
+
values: ISetParameterRuntimeValuePayload[];
|
|
18344
18270
|
}
|
|
18345
18271
|
|
|
18346
18272
|
/**
|
|
@@ -18441,6 +18367,10 @@ export declare interface IShareDialogProps {
|
|
|
18441
18367
|
* Dashboard filters
|
|
18442
18368
|
*/
|
|
18443
18369
|
dashboardFilters: FilterContextItem[];
|
|
18370
|
+
/**
|
|
18371
|
+
* Dashboard parameters
|
|
18372
|
+
*/
|
|
18373
|
+
dashboardParameters?: IDashboardParameter[];
|
|
18444
18374
|
/**
|
|
18445
18375
|
* Is share grant hidden?
|
|
18446
18376
|
*/
|
|
@@ -19589,53 +19519,6 @@ export declare interface IUsersState {
|
|
|
19589
19519
|
status: "pending" | "loading" | "success" | "error";
|
|
19590
19520
|
}
|
|
19591
19521
|
|
|
19592
|
-
/**
|
|
19593
|
-
* @deprecated - can be removed, once `enableAutomationFilterContext` is removed
|
|
19594
|
-
* @alpha
|
|
19595
|
-
*/
|
|
19596
|
-
export declare interface IUseScheduledExportFiltersProps {
|
|
19597
|
-
scheduledExportToEdit?: IAutomationMetadataObject;
|
|
19598
|
-
widget?: FilterableDashboardWidget;
|
|
19599
|
-
insight?: IInsight;
|
|
19600
|
-
}
|
|
19601
|
-
|
|
19602
|
-
/**
|
|
19603
|
-
* @alpha
|
|
19604
|
-
*/
|
|
19605
|
-
export declare interface IUseWidgetAlertFiltersProps {
|
|
19606
|
-
/**
|
|
19607
|
-
* Optionally provide metadata object to get filters from instead of the current widget filters.
|
|
19608
|
-
*/
|
|
19609
|
-
alertToEdit?: IAutomationMetadataObjectDefinition;
|
|
19610
|
-
/**
|
|
19611
|
-
* Widget to get filters for.
|
|
19612
|
-
*/
|
|
19613
|
-
widget?: FilterableDashboardWidget;
|
|
19614
|
-
/**
|
|
19615
|
-
* Insight to get filters for.
|
|
19616
|
-
*/
|
|
19617
|
-
insight?: IInsightDefinition;
|
|
19618
|
-
}
|
|
19619
|
-
|
|
19620
|
-
/**
|
|
19621
|
-
* @deprecated - can be removed, once `enableAutomationFilterContext` is removed
|
|
19622
|
-
* @alpha
|
|
19623
|
-
*/
|
|
19624
|
-
export declare interface IUseWidgetScheduledExportFiltersProps {
|
|
19625
|
-
/**
|
|
19626
|
-
* Optionally provide metadata object to get filters from instead of the current widget filters.
|
|
19627
|
-
*/
|
|
19628
|
-
scheduledExportToEdit?: IAutomationMetadataObjectDefinition;
|
|
19629
|
-
/**
|
|
19630
|
-
* Widget to get filters for.
|
|
19631
|
-
*/
|
|
19632
|
-
widget?: FilterableDashboardWidget;
|
|
19633
|
-
/**
|
|
19634
|
-
* Insight to get filters for.
|
|
19635
|
-
*/
|
|
19636
|
-
insight?: IInsightDefinition;
|
|
19637
|
-
}
|
|
19638
|
-
|
|
19639
19522
|
/**
|
|
19640
19523
|
* @internal
|
|
19641
19524
|
*/
|
|
@@ -20150,6 +20033,7 @@ export declare type MetaExportData = {
|
|
|
20150
20033
|
rootData: (isLoading: boolean, isError: boolean) => MetaExportDataAttributes;
|
|
20151
20034
|
dateFilter: MetaExportDataAttributes;
|
|
20152
20035
|
attributeFilter: MetaExportDataAttributes;
|
|
20036
|
+
measureValueFilter: MetaExportDataAttributes;
|
|
20153
20037
|
filter: {
|
|
20154
20038
|
name: MetaExportDataAttributes;
|
|
20155
20039
|
value: MetaExportDataAttributes;
|
|
@@ -20165,7 +20049,7 @@ export declare type MetaExportData = {
|
|
|
20165
20049
|
*/
|
|
20166
20050
|
export declare type MetaExportDataAttributes = {
|
|
20167
20051
|
"data-export-meta-type"?: ExportMetaType;
|
|
20168
|
-
"data-export-meta-filter-type"?: "date" | "attribute";
|
|
20052
|
+
"data-export-meta-filter-type"?: "date" | "attribute" | "measureValue";
|
|
20169
20053
|
"data-export-meta-filter-mode"?: "readonly" | "hidden" | "active";
|
|
20170
20054
|
"data-export-meta-filter-status"?: "loading" | "loaded" | "error";
|
|
20171
20055
|
"data-export-meta-filters-status"?: "loading" | "loaded" | "error";
|
|
@@ -21976,7 +21860,7 @@ export declare type ResolveAsyncRenderPayload = {
|
|
|
21976
21860
|
*
|
|
21977
21861
|
* @public
|
|
21978
21862
|
*/
|
|
21979
|
-
export declare type ResolvedDashboardConfig = Omit<Required<DashboardConfig>, "mapboxToken" | "agGridToken" | "maxZoomLevel" | "exportId" | "exportType" | "exportMetadata" | "focusObject" | "slideConfig" | "references" | "entitlements" | "initialContent" | "executionTimestamp" | "overrideDefaultFilters" | "overrideTitle" | "hideWidgetTitles" | "workspaceDescriptor" | "evaluationFrequency" | "externalRecipient" | "openAutomationOnLoad" | "hideAddTabButton"> & DashboardConfig;
|
|
21863
|
+
export declare type ResolvedDashboardConfig = Omit<Required<DashboardConfig>, "mapboxToken" | "agGridToken" | "maxZoomLevel" | "exportId" | "exportType" | "exportMetadata" | "focusObject" | "slideConfig" | "references" | "entitlements" | "initialContent" | "executionTimestamp" | "overrideDefaultFilters" | "overrideDefaultParameters" | "overrideTitle" | "hideWidgetTitles" | "workspaceDescriptor" | "evaluationFrequency" | "externalRecipient" | "openAutomationOnLoad" | "hideAddTabButton"> & DashboardConfig;
|
|
21980
21864
|
|
|
21981
21865
|
/**
|
|
21982
21866
|
* @alpha
|
|
@@ -23712,13 +23596,6 @@ export declare const selectEnableAnomalyDetectionAlert: DashboardSelector<boolea
|
|
|
23712
23596
|
*/
|
|
23713
23597
|
export declare const selectEnableAutomationEvaluationMode: DashboardSelector<boolean>;
|
|
23714
23598
|
|
|
23715
|
-
/**
|
|
23716
|
-
* Selector for the automation filter context feature flag
|
|
23717
|
-
*
|
|
23718
|
-
* @internal
|
|
23719
|
-
*/
|
|
23720
|
-
export declare const selectEnableAutomationFilterContext: DashboardSelector<boolean>;
|
|
23721
|
-
|
|
23722
23599
|
/**
|
|
23723
23600
|
* Selector for the centralized automation management feature flag
|
|
23724
23601
|
*
|
|
@@ -23882,13 +23759,6 @@ export declare const selectEnableIgnoreCrossFiltering: DashboardSelector<boolean
|
|
|
23882
23759
|
*/
|
|
23883
23760
|
export declare const selectEnableImmediateAttributeFilterDisplayAsLabelMigration: DashboardSelector<boolean>;
|
|
23884
23761
|
|
|
23885
|
-
/**
|
|
23886
|
-
* Returns whether implicit drill to url feature is enabled.
|
|
23887
|
-
*
|
|
23888
|
-
* @alpha
|
|
23889
|
-
*/
|
|
23890
|
-
export declare const selectEnableImplicitDrillToUrl: DashboardSelector<boolean>;
|
|
23891
|
-
|
|
23892
23762
|
/**
|
|
23893
23763
|
* Returns whether in-platform notifications are enabled.
|
|
23894
23764
|
*
|
|
@@ -27059,6 +26929,10 @@ readonly setParameterRuntimeValue: (state: WritableDraft<ITabsState>, action: {
|
|
|
27059
26929
|
payload: ISetParameterRuntimeValuePayload;
|
|
27060
26930
|
type: string;
|
|
27061
26931
|
}) => void | ITabsState | WritableDraft<ITabsState>;
|
|
26932
|
+
readonly setParameterRuntimeValues: (state: WritableDraft<ITabsState>, action: {
|
|
26933
|
+
payload: ISetParameterRuntimeValuesPayload;
|
|
26934
|
+
type: string;
|
|
26935
|
+
}) => void | ITabsState | WritableDraft<ITabsState>;
|
|
27062
26936
|
readonly removeParameter: (state: WritableDraft<ITabsState>, action: {
|
|
27063
26937
|
payload: IRemoveParameterPayload;
|
|
27064
26938
|
type: string;
|
|
@@ -27353,19 +27227,6 @@ export declare function unignoreFilterOnRichTextWidget(ref: ObjRef, oneOrMoreDis
|
|
|
27353
27227
|
*/
|
|
27354
27228
|
export declare function updateVisualizationsFromSwitcherWidgetContent(ref: ObjRef, visualizations: IInsightWidget[], correlationId?: string): IUpdateVisualizationsFromVisualizationSwitcherWidgetContent;
|
|
27355
27229
|
|
|
27356
|
-
/**
|
|
27357
|
-
* Hook to get filters that are available to be used for any automation.
|
|
27358
|
-
*
|
|
27359
|
-
* - Filters are respecting current set dashboard filter context
|
|
27360
|
-
* - Cross-filtering filters are omitted as they are not desired to be saved in the automation
|
|
27361
|
-
* - If default dashboard filters has overrides, use them instead of the current dashboard filter context
|
|
27362
|
-
* - If common date filter is not present in the dashboard filter context, add it
|
|
27363
|
-
*
|
|
27364
|
-
* @deprecated - can be removed, once `enableAutomationFilterContext` is removed
|
|
27365
|
-
* @alpha
|
|
27366
|
-
*/
|
|
27367
|
-
export declare function useAutomationAvailableDashboardFilters(): FilterContextItem[] | undefined;
|
|
27368
|
-
|
|
27369
27230
|
/**
|
|
27370
27231
|
* @internal
|
|
27371
27232
|
*/
|
|
@@ -27451,37 +27312,6 @@ export declare const useDashboardAlerts: () => {
|
|
|
27451
27312
|
onAlertingManagementPauseError: (_error: GoodDataSdkError, pause: boolean) => void;
|
|
27452
27313
|
};
|
|
27453
27314
|
|
|
27454
|
-
/**
|
|
27455
|
-
* Hook that handles alerts dialog
|
|
27456
|
-
*
|
|
27457
|
-
* @alpha
|
|
27458
|
-
*/
|
|
27459
|
-
export declare const useDashboardAlertsOld: () => {
|
|
27460
|
-
isInitialized: boolean;
|
|
27461
|
-
automations: IAutomationMetadataObject[];
|
|
27462
|
-
alertingToEdit: {
|
|
27463
|
-
alert: IAutomationMetadataObject;
|
|
27464
|
-
widget: IInsightWidget | undefined;
|
|
27465
|
-
anchor: HTMLElement | null;
|
|
27466
|
-
} | null;
|
|
27467
|
-
alertingLoadError: GoodDataSdkError | undefined;
|
|
27468
|
-
isAlertingLoading: boolean;
|
|
27469
|
-
isAlertsManagementVisible: boolean;
|
|
27470
|
-
isAlertingDialogOpen: boolean;
|
|
27471
|
-
isAlertingManagementDialogOpen: boolean;
|
|
27472
|
-
defaultOnAlerting: () => void;
|
|
27473
|
-
defaultOnAlertsManagement: () => void;
|
|
27474
|
-
onAlertingManagementEdit: (alert: IAutomationMetadataObject, widget: IInsightWidget | undefined, anchor: HTMLElement | null, onClosed: () => void) => void;
|
|
27475
|
-
onAlertingManagementClose: () => void;
|
|
27476
|
-
onAlertingManagementDeleteSuccess: () => void;
|
|
27477
|
-
onAlertingManagementDeleteError: () => void;
|
|
27478
|
-
onAlertingManagementLoadingError: () => void;
|
|
27479
|
-
onAlertingManagementPauseSuccess: (_alert: IAutomationMetadataObject, pause: boolean) => void;
|
|
27480
|
-
onAlertingManagementPauseError: (_err: GoodDataSdkError, pause: boolean) => void;
|
|
27481
|
-
onAlertingCancel: () => void;
|
|
27482
|
-
onAlertingUpdate: (_alert: IAutomationMetadataObject) => void;
|
|
27483
|
-
};
|
|
27484
|
-
|
|
27485
27315
|
/**
|
|
27486
27316
|
* Callbacks returned from {@link useDashboardAsyncRender} hook.
|
|
27487
27317
|
*
|
|
@@ -28232,11 +28062,6 @@ export declare const useDrillToLegacyDashboard: ({ onSuccess, onError, onBeforeR
|
|
|
28232
28062
|
*/
|
|
28233
28063
|
export declare function useEditButtonProps(): IEditButtonProps;
|
|
28234
28064
|
|
|
28235
|
-
/**
|
|
28236
|
-
* @internal
|
|
28237
|
-
*/
|
|
28238
|
-
export declare const useEnableAlertingAutomationFilterContext: () => boolean;
|
|
28239
|
-
|
|
28240
28065
|
/**
|
|
28241
28066
|
* @alpha
|
|
28242
28067
|
*/
|
|
@@ -28356,22 +28181,6 @@ export declare function useSaveAsNewButtonProps(): ISaveAsNewButtonProps;
|
|
|
28356
28181
|
*/
|
|
28357
28182
|
export declare function useSaveButtonProps(): ISaveButtonProps;
|
|
28358
28183
|
|
|
28359
|
-
/**
|
|
28360
|
-
* Returns filters for scheduled export.
|
|
28361
|
-
*
|
|
28362
|
-
* If scheduledExportToEdit is provided, it returns its saved filters as is.
|
|
28363
|
-
* If scheduledExportToEdit is not provided, it returns sanitized filters ready to be saved in new scheduled export.
|
|
28364
|
-
*
|
|
28365
|
-
* @deprecated - can be removed, once `enableAutomationFilterContext` is removed
|
|
28366
|
-
* @alpha
|
|
28367
|
-
*/
|
|
28368
|
-
export declare const useScheduledExportFilters: ({ scheduledExportToEdit, widget, insight, }: IUseScheduledExportFiltersProps) => {
|
|
28369
|
-
widgetFilters: IFilter[] | undefined;
|
|
28370
|
-
widgetFiltersLoading: boolean;
|
|
28371
|
-
widgetFiltersError: GoodDataSdkError | undefined;
|
|
28372
|
-
dashboardFilters: FilterContextItem[] | undefined;
|
|
28373
|
-
};
|
|
28374
|
-
|
|
28375
28184
|
/**
|
|
28376
28185
|
* @alpha
|
|
28377
28186
|
*/
|
|
@@ -28402,20 +28211,6 @@ export declare const useTopBarProps: () => ITopBarProps;
|
|
|
28402
28211
|
*/
|
|
28403
28212
|
export declare const useVisualizationExportData: (widget: WidgetExportDataAttributes | undefined, loading: boolean, error: boolean) => Partial<WidgetExportDataAttributes> | undefined;
|
|
28404
28213
|
|
|
28405
|
-
/**
|
|
28406
|
-
* Hook for getting filters for widget alert.
|
|
28407
|
-
*
|
|
28408
|
-
* Note:
|
|
28409
|
-
* - In case of existing widget alert, it returns the saved filters from the widget alert.
|
|
28410
|
-
* - Otherwise, it returns the filters ready to be saved in new widget alert, sanitized according to the following rules:
|
|
28411
|
-
* - Cross-filtering filters are excluded as they are typically not desired in the widget alert.
|
|
28412
|
-
* - The widget's ignored filters configuration is honored.
|
|
28413
|
-
*
|
|
28414
|
-
* @alpha
|
|
28415
|
-
* @deprecated - can be removed, once `enableAutomationFilterContext` is removed
|
|
28416
|
-
*/
|
|
28417
|
-
export declare function useWidgetAlertFilters({ alertToEdit, widget, insight }: IUseWidgetAlertFiltersProps): QueryProcessingState<IFilter[]>;
|
|
28418
|
-
|
|
28419
28214
|
/**
|
|
28420
28215
|
* @internal
|
|
28421
28216
|
*/
|
|
@@ -28452,19 +28247,6 @@ export declare const useWidgetExportData: (widget: ExtendedDashboardWidget) => W
|
|
|
28452
28247
|
*/
|
|
28453
28248
|
export declare function useWidgetFilters(widget: FilterableDashboardWidget | undefined | null, insight?: IInsightDefinition): QueryProcessingState<IFilter[]>;
|
|
28454
28249
|
|
|
28455
|
-
/**
|
|
28456
|
-
* Returns filters for widget scheduled export.
|
|
28457
|
-
*
|
|
28458
|
-
* - In case of existing scheduled export, it returns the saved filters from the scheduled export.
|
|
28459
|
-
* - Otherwise, it returns the filters ready to be saved in new scheduled export, sanitized according to the following rules:
|
|
28460
|
-
* - Cross-filtering filters are excluded as they are typically not desired in the scheduled export.
|
|
28461
|
-
* - The widget's ignored filters configuration is honored.
|
|
28462
|
-
*
|
|
28463
|
-
* @deprecated - can be removed, once `enableAutomationFilterContext` is removed
|
|
28464
|
-
* @alpha
|
|
28465
|
-
*/
|
|
28466
|
-
export declare function useWidgetScheduledExportFilters({ scheduledExportToEdit, widget, insight }: IUseWidgetScheduledExportFiltersProps): QueryProcessingState<IFilter[]>;
|
|
28467
|
-
|
|
28468
28250
|
/**
|
|
28469
28251
|
* @internal
|
|
28470
28252
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-dashboard",
|
|
3
|
-
"version": "11.36.0-alpha.
|
|
3
|
+
"version": "11.36.0-alpha.7",
|
|
4
4
|
"description": "GoodData SDK - Dashboard Component",
|
|
5
5
|
"license": "LicenseRef-LICENSE",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -60,19 +60,19 @@
|
|
|
60
60
|
"ts-invariant": "0.10.3",
|
|
61
61
|
"tslib": "2.8.1",
|
|
62
62
|
"uuid": "11.1.0",
|
|
63
|
-
"@gooddata/sdk-backend-base": "11.36.0-alpha.
|
|
64
|
-
"@gooddata/sdk-backend-spi": "11.36.0-alpha.
|
|
65
|
-
"@gooddata/sdk-model": "11.36.0-alpha.
|
|
66
|
-
"@gooddata/sdk-ui": "11.36.0-alpha.
|
|
67
|
-
"@gooddata/sdk-ui-charts": "11.36.0-alpha.
|
|
68
|
-
"@gooddata/sdk-ui-ext": "11.36.0-alpha.
|
|
69
|
-
"@gooddata/sdk-ui-filters": "11.36.0-alpha.
|
|
70
|
-
"@gooddata/sdk-ui-
|
|
71
|
-
"@gooddata/sdk-ui-
|
|
72
|
-
"@gooddata/sdk-ui-
|
|
73
|
-
"@gooddata/sdk-ui-
|
|
74
|
-
"@gooddata/
|
|
75
|
-
"@gooddata/
|
|
63
|
+
"@gooddata/sdk-backend-base": "11.36.0-alpha.7",
|
|
64
|
+
"@gooddata/sdk-backend-spi": "11.36.0-alpha.7",
|
|
65
|
+
"@gooddata/sdk-model": "11.36.0-alpha.7",
|
|
66
|
+
"@gooddata/sdk-ui": "11.36.0-alpha.7",
|
|
67
|
+
"@gooddata/sdk-ui-charts": "11.36.0-alpha.7",
|
|
68
|
+
"@gooddata/sdk-ui-ext": "11.36.0-alpha.7",
|
|
69
|
+
"@gooddata/sdk-ui-filters": "11.36.0-alpha.7",
|
|
70
|
+
"@gooddata/sdk-ui-geo": "11.36.0-alpha.7",
|
|
71
|
+
"@gooddata/sdk-ui-kit": "11.36.0-alpha.7",
|
|
72
|
+
"@gooddata/sdk-ui-pivot": "11.36.0-alpha.7",
|
|
73
|
+
"@gooddata/sdk-ui-theme-provider": "11.36.0-alpha.7",
|
|
74
|
+
"@gooddata/sdk-ui-vis-commons": "11.36.0-alpha.7",
|
|
75
|
+
"@gooddata/util": "11.36.0-alpha.7"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@microsoft/api-documenter": "^7.17.0",
|
|
@@ -118,12 +118,12 @@
|
|
|
118
118
|
"typescript": "5.9.3",
|
|
119
119
|
"vitest": "4.1.0",
|
|
120
120
|
"vitest-dom": "0.1.1",
|
|
121
|
-
"@gooddata/
|
|
122
|
-
"@gooddata/
|
|
123
|
-
"@gooddata/
|
|
124
|
-
"@gooddata/
|
|
125
|
-
"@gooddata/sdk-backend-mockingbird": "11.36.0-alpha.
|
|
126
|
-
"@gooddata/stylelint-config": "11.36.0-alpha.
|
|
121
|
+
"@gooddata/eslint-config": "11.36.0-alpha.7",
|
|
122
|
+
"@gooddata/i18n-toolkit": "11.36.0-alpha.7",
|
|
123
|
+
"@gooddata/oxlint-config": "11.36.0-alpha.7",
|
|
124
|
+
"@gooddata/reference-workspace": "11.36.0-alpha.7",
|
|
125
|
+
"@gooddata/sdk-backend-mockingbird": "11.36.0-alpha.7",
|
|
126
|
+
"@gooddata/stylelint-config": "11.36.0-alpha.7"
|
|
127
127
|
},
|
|
128
128
|
"peerDependencies": {
|
|
129
129
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type IFilter } from "@gooddata/sdk-model";
|
|
2
|
-
import { type ICrossFilteringItem } from "../../store/drill/types.js";
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export declare function sanitizeWidgetFilters(filters: IFilter[], crossFilteringItems: ICrossFilteringItem[]): IFilter[];
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { filterIsEmpty, filterLocalIdentifier, isAttributeFilter, isNoopAllTimeDateFilter, } from "@gooddata/sdk-model";
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
function removeCrossFilteringFilters(filters, crossFilteringItems) {
|
|
7
|
-
const crossFilteringFilterLocalIdentifiers = crossFilteringItems.flatMap((c) => c.filterLocalIdentifiers);
|
|
8
|
-
return filters.filter((f) => {
|
|
9
|
-
const filterLocalId = filterLocalIdentifier(f);
|
|
10
|
-
return filterLocalId ? !crossFilteringFilterLocalIdentifiers.includes(filterLocalId) : true;
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
export function sanitizeWidgetFilters(filters, crossFilteringItems) {
|
|
17
|
-
const withoutCrossFiltering = removeCrossFilteringFilters(filters, crossFilteringItems);
|
|
18
|
-
const withoutAllTimeDateFilters = removeAllTimeDateFilters(withoutCrossFiltering);
|
|
19
|
-
return removeEmptyAttributeFilters(withoutAllTimeDateFilters);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @internal
|
|
23
|
-
*/
|
|
24
|
-
function removeEmptyAttributeFilters(filters) {
|
|
25
|
-
return filters.filter((f) => {
|
|
26
|
-
if (isAttributeFilter(f)) {
|
|
27
|
-
return !filterIsEmpty(f);
|
|
28
|
-
}
|
|
29
|
-
return true;
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
* @returns
|
|
35
|
-
*/
|
|
36
|
-
function removeAllTimeDateFilters(filters) {
|
|
37
|
-
return filters.filter((f) => !isNoopAllTimeDateFilter(f));
|
|
38
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type FilterContextItem } from "@gooddata/sdk-model";
|
|
2
|
-
/**
|
|
3
|
-
* Hook to get filters that are available to be used for any automation.
|
|
4
|
-
*
|
|
5
|
-
* - Filters are respecting current set dashboard filter context
|
|
6
|
-
* - Cross-filtering filters are omitted as they are not desired to be saved in the automation
|
|
7
|
-
* - If default dashboard filters has overrides, use them instead of the current dashboard filter context
|
|
8
|
-
* - If common date filter is not present in the dashboard filter context, add it
|
|
9
|
-
*
|
|
10
|
-
* @deprecated - can be removed, once `enableAutomationFilterContext` is removed
|
|
11
|
-
* @alpha
|
|
12
|
-
*/
|
|
13
|
-
export declare function useAutomationAvailableDashboardFilters(): FilterContextItem[] | undefined;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// (C) 2024-2026 GoodData Corporation
|
|
2
|
-
import { isEqual } from "lodash-es";
|
|
3
|
-
import { generateDateFilterLocalIdentifier } from "@gooddata/sdk-backend-base";
|
|
4
|
-
import { dashboardAttributeFilterItemLocalIdentifier, isDashboardAttributeFilterItem, isDashboardCommonDateFilter, newAllTimeDashboardDateFilter, } from "@gooddata/sdk-model";
|
|
5
|
-
import { selectEnableAutomationFilterContext, selectEnableDateFilterIdentifiers, } from "../../store/config/configSelectors.js";
|
|
6
|
-
import { selectCrossFilteringItems } from "../../store/drill/drillSelectors.js";
|
|
7
|
-
import { selectDefaultFilterOverrides, selectFilterContextFilters, selectOriginalFilterContextFilters, } from "../../store/tabs/filterContext/filterContextSelectors.js";
|
|
8
|
-
import { useDashboardSelector } from "../DashboardStoreProvider.js";
|
|
9
|
-
/**
|
|
10
|
-
* Hook to get filters that are available to be used for any automation.
|
|
11
|
-
*
|
|
12
|
-
* - Filters are respecting current set dashboard filter context
|
|
13
|
-
* - Cross-filtering filters are omitted as they are not desired to be saved in the automation
|
|
14
|
-
* - If default dashboard filters has overrides, use them instead of the current dashboard filter context
|
|
15
|
-
* - If common date filter is not present in the dashboard filter context, add it
|
|
16
|
-
*
|
|
17
|
-
* @deprecated - can be removed, once `enableAutomationFilterContext` is removed
|
|
18
|
-
* @alpha
|
|
19
|
-
*/
|
|
20
|
-
export function useAutomationAvailableDashboardFilters() {
|
|
21
|
-
const originalDashboardFilters = useDashboardSelector(selectOriginalFilterContextFilters);
|
|
22
|
-
const dashboardFilters = useDashboardSelector(selectFilterContextFilters);
|
|
23
|
-
const defaultFilterOverrides = useDashboardSelector(selectDefaultFilterOverrides);
|
|
24
|
-
const crossFilteringItems = useDashboardSelector(selectCrossFilteringItems);
|
|
25
|
-
const enableAutomationFilterContext = useDashboardSelector(selectEnableAutomationFilterContext);
|
|
26
|
-
const enableDateFilterIdentifiers = useDashboardSelector(selectEnableDateFilterIdentifiers);
|
|
27
|
-
const dashboardFiltersWithoutCrossFiltering = removeCrossFilteringFilters(dashboardFilters, crossFilteringItems);
|
|
28
|
-
const shouldFiltersBeSaved = defaultFilterOverrides || !isEqual(originalDashboardFilters, dashboardFiltersWithoutCrossFiltering);
|
|
29
|
-
// If there are any default filter overrides (e. g. coming from shared dashboard filter context in url),
|
|
30
|
-
// always store them in the automation. In this case we won't ever need to use the default dashboard filter context.
|
|
31
|
-
// (this is old behaviour of the scheduled export)
|
|
32
|
-
const availableDashboardFilters = enableAutomationFilterContext || shouldFiltersBeSaved
|
|
33
|
-
? dashboardFiltersWithoutCrossFiltering
|
|
34
|
-
: undefined;
|
|
35
|
-
const commonDateFilter = newAllTimeDashboardDateFilter(undefined, enableDateFilterIdentifiers ? generateDateFilterLocalIdentifier(0) : undefined);
|
|
36
|
-
const shouldAddCommonDateFilter = enableAutomationFilterContext &&
|
|
37
|
-
availableDashboardFilters &&
|
|
38
|
-
!availableDashboardFilters.some(isDashboardCommonDateFilter);
|
|
39
|
-
return shouldAddCommonDateFilter
|
|
40
|
-
? [commonDateFilter, ...dashboardFiltersWithoutCrossFiltering]
|
|
41
|
-
: availableDashboardFilters;
|
|
42
|
-
}
|
|
43
|
-
const removeCrossFilteringFilters = (filters, crossFilteringItems) => {
|
|
44
|
-
const crossFilteringFilterLocalIdentifiers = crossFilteringItems.flatMap((item) => item.filterLocalIdentifiers);
|
|
45
|
-
return filters.filter((filter) => {
|
|
46
|
-
if (isDashboardAttributeFilterItem(filter)) {
|
|
47
|
-
const localIdentifier = dashboardAttributeFilterItemLocalIdentifier(filter);
|
|
48
|
-
if (localIdentifier) {
|
|
49
|
-
return !crossFilteringFilterLocalIdentifiers.includes(localIdentifier);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return true;
|
|
53
|
-
});
|
|
54
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type IAutomationMetadataObject } from "@gooddata/sdk-model";
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated - can be removed, once `enableAutomationFilterContext` is removed
|
|
4
|
-
*/
|
|
5
|
-
export interface IUseDashboardScheduledExportFiltersProps {
|
|
6
|
-
/**
|
|
7
|
-
* Optionally provide metadata object to get filters from instead of the current dashboard filters.
|
|
8
|
-
*/
|
|
9
|
-
scheduledExportToEdit?: IAutomationMetadataObject;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Hook for getting filters for dashboard scheduled export.
|
|
13
|
-
*
|
|
14
|
-
* If scheduledExportToEdit is provided, it returns its saved filters as is.
|
|
15
|
-
* If scheduledExportToEdit is not provided, it returns sanitized filters ready to be saved in new scheduled export.
|
|
16
|
-
*
|
|
17
|
-
* @deprecated - can be removed, once `enableAutomationFilterContext` is removed
|
|
18
|
-
*/
|
|
19
|
-
export declare const useDashboardScheduledExportFilters: ({ scheduledExportToEdit, }: IUseDashboardScheduledExportFiltersProps) => import("@gooddata/sdk-model").FilterContextItem[] | undefined;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// (C) 2024-2026 GoodData Corporation
|
|
2
|
-
import { getAutomationDashboardFilters } from "../../../_staging/automation/index.js";
|
|
3
|
-
import { useAutomationAvailableDashboardFilters } from "./useAutomationAvailableDashboardFilters.js";
|
|
4
|
-
/**
|
|
5
|
-
* Hook for getting filters for dashboard scheduled export.
|
|
6
|
-
*
|
|
7
|
-
* If scheduledExportToEdit is provided, it returns its saved filters as is.
|
|
8
|
-
* If scheduledExportToEdit is not provided, it returns sanitized filters ready to be saved in new scheduled export.
|
|
9
|
-
*
|
|
10
|
-
* @deprecated - can be removed, once `enableAutomationFilterContext` is removed
|
|
11
|
-
*/
|
|
12
|
-
export const useDashboardScheduledExportFilters = ({ scheduledExportToEdit, }) => {
|
|
13
|
-
const savedScheduledExportFilters = scheduledExportToEdit
|
|
14
|
-
? getAutomationDashboardFilters(scheduledExportToEdit)
|
|
15
|
-
: undefined;
|
|
16
|
-
const availableDashboardFilters = useAutomationAvailableDashboardFilters();
|
|
17
|
-
return savedScheduledExportFilters ?? availableDashboardFilters;
|
|
18
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type IAutomationMetadataObject, type IInsight } from "@gooddata/sdk-model";
|
|
2
|
-
import { type FilterableDashboardWidget } from "../../types/layoutTypes.js";
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated - can be removed, once `enableAutomationFilterContext` is removed
|
|
5
|
-
* @alpha
|
|
6
|
-
*/
|
|
7
|
-
export interface IUseScheduledExportFiltersProps {
|
|
8
|
-
scheduledExportToEdit?: IAutomationMetadataObject;
|
|
9
|
-
widget?: FilterableDashboardWidget;
|
|
10
|
-
insight?: IInsight;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Returns filters for scheduled export.
|
|
14
|
-
*
|
|
15
|
-
* If scheduledExportToEdit is provided, it returns its saved filters as is.
|
|
16
|
-
* If scheduledExportToEdit is not provided, it returns sanitized filters ready to be saved in new scheduled export.
|
|
17
|
-
*
|
|
18
|
-
* @deprecated - can be removed, once `enableAutomationFilterContext` is removed
|
|
19
|
-
* @alpha
|
|
20
|
-
*/
|
|
21
|
-
export declare const useScheduledExportFilters: ({ scheduledExportToEdit, widget, insight, }: IUseScheduledExportFiltersProps) => {
|
|
22
|
-
widgetFilters: import("@gooddata/sdk-model").IFilter[] | undefined;
|
|
23
|
-
widgetFiltersLoading: boolean;
|
|
24
|
-
widgetFiltersError: import("@gooddata/sdk-ui").GoodDataSdkError | undefined;
|
|
25
|
-
dashboardFilters: import("@gooddata/sdk-model").FilterContextItem[] | undefined;
|
|
26
|
-
};
|