@gooddata/sdk-ui-dashboard 11.36.0-alpha.3 → 11.36.0-alpha.6

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.
Files changed (162) hide show
  1. package/NOTICE +63 -115
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/index.d.ts +5 -13
  5. package/esm/index.js +2 -10
  6. package/esm/internal.d.ts +1 -1
  7. package/esm/model/commandHandlers/dashboard/common/filterViews.js +24 -1
  8. package/esm/model/commandHandlers/dashboard/common/parameterHydration.d.ts +7 -1
  9. package/esm/model/commandHandlers/dashboard/common/parameterHydration.js +16 -2
  10. package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +4 -2
  11. package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.d.ts +7 -1
  12. package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.js +80 -4
  13. package/esm/model/commandHandlers/filterContext/filterViewHandler.js +10 -0
  14. package/esm/model/commandHandlers/filterContext/filterViewParameters.d.ts +7 -0
  15. package/esm/model/commandHandlers/filterContext/filterViewParameters.js +11 -0
  16. package/esm/model/store/config/configSelectors.d.ts +0 -6
  17. package/esm/model/store/config/configSelectors.js +0 -8
  18. package/esm/model/store/tabs/index.d.ts +4 -0
  19. package/esm/model/store/tabs/parameters/parametersReducers.d.ts +11 -1
  20. package/esm/model/store/tabs/parameters/parametersReducers.js +16 -8
  21. package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +7 -0
  22. package/esm/model/store/tabs/parameters/parametersSelectors.js +17 -0
  23. package/esm/model/types/commonTypes.d.ts +11 -2
  24. package/esm/model/utils/measureValueFilterUtils.d.ts +14 -0
  25. package/esm/model/utils/measureValueFilterUtils.js +21 -0
  26. package/esm/presentation/alerting/DefaultAlertingDialog/{DefaultAlertingDialogNew.d.ts → DefaultAlertingDialog.d.ts} +1 -1
  27. package/esm/presentation/alerting/DefaultAlertingDialog/{DefaultAlertingDialogNew.js → DefaultAlertingDialog.js} +6 -12
  28. package/esm/presentation/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.js +43 -9
  29. package/esm/presentation/alerting/DefaultAlertingDialog/hooks/useSaveAlertToBackend.js +13 -25
  30. package/esm/presentation/alerting/types.d.ts +1 -72
  31. package/esm/presentation/automationFilters/hooks/useValidateExistingAutomationFilters.d.ts +1 -2
  32. package/esm/presentation/automationFilters/hooks/useValidateExistingAutomationFilters.js +5 -5
  33. package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProvider.js +1 -8
  34. package/esm/presentation/dashboard/DashboardHeader/ScheduledEmailDialogProvider.js +17 -8
  35. package/esm/presentation/dashboard/DashboardHeader/ShareDialogDashboardHeader.js +5 -2
  36. package/esm/presentation/dashboard/components/DashboardRenderer.js +2 -2
  37. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +97 -13
  38. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.d.ts +1 -1
  39. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.js +3 -3
  40. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/DashboardParametersSection.d.ts +3 -2
  41. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/DashboardParametersSection.js +17 -4
  42. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/InsightParametersSection.d.ts +4 -2
  43. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/InsightParametersSection.js +37 -4
  44. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/Parameter.d.ts +4 -3
  45. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/Parameter.js +3 -4
  46. package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js +4 -1
  47. package/esm/presentation/filterBar/filterBar/DefaultDashboardFilterGroup.js +4 -1
  48. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +2 -9
  49. package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +2 -9
  50. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +2 -9
  51. package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +2 -9
  52. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +2 -9
  53. package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +2 -9
  54. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +4 -36
  55. package/esm/presentation/localization/bundles/en-US.localization-bundle.js +4 -36
  56. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +2 -9
  57. package/esm/presentation/localization/bundles/es-419.localization-bundle.js +2 -9
  58. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +2 -9
  59. package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +2 -9
  60. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +2 -9
  61. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +2 -9
  62. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +2 -9
  63. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +2 -9
  64. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +2 -9
  65. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +2 -9
  66. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +2 -9
  67. package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +2 -9
  68. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +2 -9
  69. package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +2 -9
  70. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +2 -9
  71. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +2 -9
  72. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +2 -9
  73. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +2 -9
  74. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +2 -9
  75. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +2 -9
  76. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +2 -9
  77. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +2 -9
  78. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +2 -9
  79. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +2 -9
  80. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +2 -9
  81. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +2 -9
  82. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +2 -9
  83. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +2 -9
  84. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +2 -9
  85. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +2 -9
  86. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +2 -9
  87. package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +2 -9
  88. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +2 -9
  89. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +2 -9
  90. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +2 -9
  91. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +2 -9
  92. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +2 -9
  93. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +2 -9
  94. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +2 -9
  95. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +2 -9
  96. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +2 -9
  97. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +2 -9
  98. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +2 -9
  99. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +2 -9
  100. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +26 -59
  101. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts +2 -6
  102. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +22 -104
  103. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.js +12 -33
  104. package/esm/presentation/scheduledEmail/hooks/useWidgetAutomationFilters.d.ts +3 -0
  105. package/esm/presentation/scheduledEmail/hooks/useWidgetAutomationFilters.js +46 -0
  106. package/esm/presentation/scheduledEmail/types.d.ts +1 -7
  107. package/esm/presentation/scheduledEmail/utils/filters.d.ts +2 -0
  108. package/esm/presentation/scheduledEmail/utils/filters.js +5 -0
  109. package/esm/presentation/shareDialog/DefaultShareDialog.d.ts +1 -1
  110. package/esm/presentation/shareDialog/DefaultShareDialog.js +2 -2
  111. package/esm/presentation/shareDialog/types.d.ts +5 -1
  112. package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.d.ts +2 -2
  113. package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.js +36 -5
  114. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +2 -2
  115. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightWidgetAlerting.js +3 -6
  116. package/esm/presentation/widget/insight/configuration/InsightAlerts.js +1 -9
  117. package/esm/sdk-ui-dashboard.d.ts +28 -240
  118. package/package.json +20 -20
  119. package/esm/model/react/filtering/shared.d.ts +0 -6
  120. package/esm/model/react/filtering/shared.js +0 -38
  121. package/esm/model/react/filtering/useAutomationAvailableDashboardFilters.d.ts +0 -13
  122. package/esm/model/react/filtering/useAutomationAvailableDashboardFilters.js +0 -54
  123. package/esm/model/react/filtering/useDashboardScheduledExportFilters.d.ts +0 -19
  124. package/esm/model/react/filtering/useDashboardScheduledExportFilters.js +0 -18
  125. package/esm/model/react/filtering/useScheduledExportFilters.d.ts +0 -26
  126. package/esm/model/react/filtering/useScheduledExportFilters.js +0 -23
  127. package/esm/model/react/filtering/useWidgetAlertFilters.d.ts +0 -33
  128. package/esm/model/react/filtering/useWidgetAlertFilters.js +0 -48
  129. package/esm/model/react/filtering/useWidgetScheduledExportFilters.d.ts +0 -33
  130. package/esm/model/react/filtering/useWidgetScheduledExportFilters.js +0 -48
  131. package/esm/model/react/useDashboardAlerting/useEnableAutomationFilterContext.d.ts +0 -4
  132. package/esm/model/react/useDashboardAlerting/useEnableAutomationFilterContext.js +0 -20
  133. package/esm/model/react/useDashboardAlertsOld.d.ts +0 -32
  134. package/esm/model/react/useDashboardAlertsOld.js +0 -141
  135. package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialogOld.d.ts +0 -5
  136. package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialogOld.js +0 -36
  137. package/esm/presentation/alerting/DefaultAlertingDialog/components/AlertAttributeSelectOld.d.ts +0 -17
  138. package/esm/presentation/alerting/DefaultAlertingDialog/components/AlertAttributeSelectOld.js +0 -103
  139. package/esm/presentation/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogOld.d.ts +0 -5
  140. package/esm/presentation/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogOld.js +0 -53
  141. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertOld.d.ts +0 -9
  142. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertOld.js +0 -84
  143. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertsListOld.d.ts +0 -11
  144. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertsListOld.js +0 -16
  145. package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProviderOld.d.ts +0 -1
  146. package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProviderOld.js +0 -12
  147. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentFilters.d.ts +0 -29
  148. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentFilters.js +0 -61
  149. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentFiltersList.d.ts +0 -6
  150. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentFiltersList.js +0 -12
  151. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentItems.d.ts +0 -17
  152. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentItems.js +0 -68
  153. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentsWrapper.d.ts +0 -4
  154. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentsWrapper.js +0 -6
  155. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/DashboardAttachments.d.ts +0 -15
  156. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/DashboardAttachments.js +0 -42
  157. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/WidgetAttachments.d.ts +0 -18
  158. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/WidgetAttachments.js +0 -25
  159. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/types.d.ts +0 -2
  160. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/types.js +0 -2
  161. package/esm/presentation/widget/insight/configuration/InsightAlertsOld.d.ts +0 -2
  162. 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
  */
@@ -3714,23 +3723,13 @@ export declare const DEFAULT_TAB_ID = "defaultTabId";
3714
3723
  /**
3715
3724
  * @alpha
3716
3725
  */
3717
- export declare function DefaultAlertingDialogNew(props: IAlertingDialogProps): JSX.Element;
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
  */
@@ -21976,7 +21859,7 @@ export declare type ResolveAsyncRenderPayload = {
21976
21859
  *
21977
21860
  * @public
21978
21861
  */
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;
21862
+ 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
21863
 
21981
21864
  /**
21982
21865
  * @alpha
@@ -23712,13 +23595,6 @@ export declare const selectEnableAnomalyDetectionAlert: DashboardSelector<boolea
23712
23595
  */
23713
23596
  export declare const selectEnableAutomationEvaluationMode: DashboardSelector<boolean>;
23714
23597
 
23715
- /**
23716
- * Selector for the automation filter context feature flag
23717
- *
23718
- * @internal
23719
- */
23720
- export declare const selectEnableAutomationFilterContext: DashboardSelector<boolean>;
23721
-
23722
23598
  /**
23723
23599
  * Selector for the centralized automation management feature flag
23724
23600
  *
@@ -27059,6 +26935,10 @@ readonly setParameterRuntimeValue: (state: WritableDraft<ITabsState>, action: {
27059
26935
  payload: ISetParameterRuntimeValuePayload;
27060
26936
  type: string;
27061
26937
  }) => void | ITabsState | WritableDraft<ITabsState>;
26938
+ readonly setParameterRuntimeValues: (state: WritableDraft<ITabsState>, action: {
26939
+ payload: ISetParameterRuntimeValuesPayload;
26940
+ type: string;
26941
+ }) => void | ITabsState | WritableDraft<ITabsState>;
27062
26942
  readonly removeParameter: (state: WritableDraft<ITabsState>, action: {
27063
26943
  payload: IRemoveParameterPayload;
27064
26944
  type: string;
@@ -27353,19 +27233,6 @@ export declare function unignoreFilterOnRichTextWidget(ref: ObjRef, oneOrMoreDis
27353
27233
  */
27354
27234
  export declare function updateVisualizationsFromSwitcherWidgetContent(ref: ObjRef, visualizations: IInsightWidget[], correlationId?: string): IUpdateVisualizationsFromVisualizationSwitcherWidgetContent;
27355
27235
 
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
27236
  /**
27370
27237
  * @internal
27371
27238
  */
@@ -27451,37 +27318,6 @@ export declare const useDashboardAlerts: () => {
27451
27318
  onAlertingManagementPauseError: (_error: GoodDataSdkError, pause: boolean) => void;
27452
27319
  };
27453
27320
 
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
27321
  /**
27486
27322
  * Callbacks returned from {@link useDashboardAsyncRender} hook.
27487
27323
  *
@@ -28232,11 +28068,6 @@ export declare const useDrillToLegacyDashboard: ({ onSuccess, onError, onBeforeR
28232
28068
  */
28233
28069
  export declare function useEditButtonProps(): IEditButtonProps;
28234
28070
 
28235
- /**
28236
- * @internal
28237
- */
28238
- export declare const useEnableAlertingAutomationFilterContext: () => boolean;
28239
-
28240
28071
  /**
28241
28072
  * @alpha
28242
28073
  */
@@ -28356,22 +28187,6 @@ export declare function useSaveAsNewButtonProps(): ISaveAsNewButtonProps;
28356
28187
  */
28357
28188
  export declare function useSaveButtonProps(): ISaveButtonProps;
28358
28189
 
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
28190
  /**
28376
28191
  * @alpha
28377
28192
  */
@@ -28402,20 +28217,6 @@ export declare const useTopBarProps: () => ITopBarProps;
28402
28217
  */
28403
28218
  export declare const useVisualizationExportData: (widget: WidgetExportDataAttributes | undefined, loading: boolean, error: boolean) => Partial<WidgetExportDataAttributes> | undefined;
28404
28219
 
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
28220
  /**
28420
28221
  * @internal
28421
28222
  */
@@ -28452,19 +28253,6 @@ export declare const useWidgetExportData: (widget: ExtendedDashboardWidget) => W
28452
28253
  */
28453
28254
  export declare function useWidgetFilters(widget: FilterableDashboardWidget | undefined | null, insight?: IInsightDefinition): QueryProcessingState<IFilter[]>;
28454
28255
 
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
28256
  /**
28469
28257
  * @internal
28470
28258
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-dashboard",
3
- "version": "11.36.0-alpha.3",
3
+ "version": "11.36.0-alpha.6",
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.3",
64
- "@gooddata/sdk-backend-spi": "11.36.0-alpha.3",
65
- "@gooddata/sdk-model": "11.36.0-alpha.3",
66
- "@gooddata/sdk-ui": "11.36.0-alpha.3",
67
- "@gooddata/sdk-ui-charts": "11.36.0-alpha.3",
68
- "@gooddata/sdk-ui-ext": "11.36.0-alpha.3",
69
- "@gooddata/sdk-ui-filters": "11.36.0-alpha.3",
70
- "@gooddata/sdk-ui-kit": "11.36.0-alpha.3",
71
- "@gooddata/sdk-ui-theme-provider": "11.36.0-alpha.3",
72
- "@gooddata/sdk-ui-geo": "11.36.0-alpha.3",
73
- "@gooddata/sdk-ui-vis-commons": "11.36.0-alpha.3",
74
- "@gooddata/util": "11.36.0-alpha.3",
75
- "@gooddata/sdk-ui-pivot": "11.36.0-alpha.3"
63
+ "@gooddata/sdk-backend-base": "11.36.0-alpha.6",
64
+ "@gooddata/sdk-backend-spi": "11.36.0-alpha.6",
65
+ "@gooddata/sdk-model": "11.36.0-alpha.6",
66
+ "@gooddata/sdk-ui": "11.36.0-alpha.6",
67
+ "@gooddata/sdk-ui-charts": "11.36.0-alpha.6",
68
+ "@gooddata/sdk-ui-ext": "11.36.0-alpha.6",
69
+ "@gooddata/sdk-ui-kit": "11.36.0-alpha.6",
70
+ "@gooddata/sdk-ui-geo": "11.36.0-alpha.6",
71
+ "@gooddata/sdk-ui-filters": "11.36.0-alpha.6",
72
+ "@gooddata/sdk-ui-theme-provider": "11.36.0-alpha.6",
73
+ "@gooddata/sdk-ui-pivot": "11.36.0-alpha.6",
74
+ "@gooddata/util": "11.36.0-alpha.6",
75
+ "@gooddata/sdk-ui-vis-commons": "11.36.0-alpha.6"
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/i18n-toolkit": "11.36.0-alpha.3",
122
- "@gooddata/oxlint-config": "11.36.0-alpha.3",
123
- "@gooddata/reference-workspace": "11.36.0-alpha.3",
124
- "@gooddata/eslint-config": "11.36.0-alpha.3",
125
- "@gooddata/sdk-backend-mockingbird": "11.36.0-alpha.3",
126
- "@gooddata/stylelint-config": "11.36.0-alpha.3"
121
+ "@gooddata/eslint-config": "11.36.0-alpha.6",
122
+ "@gooddata/i18n-toolkit": "11.36.0-alpha.6",
123
+ "@gooddata/oxlint-config": "11.36.0-alpha.6",
124
+ "@gooddata/sdk-backend-mockingbird": "11.36.0-alpha.6",
125
+ "@gooddata/reference-workspace": "11.36.0-alpha.6",
126
+ "@gooddata/stylelint-config": "11.36.0-alpha.6"
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
- };
@@ -1,23 +0,0 @@
1
- // (C) 2022-2026 GoodData Corporation
2
- import { useDashboardScheduledExportFilters } from "./useDashboardScheduledExportFilters.js";
3
- import { useWidgetScheduledExportFilters } from "./useWidgetScheduledExportFilters.js";
4
- /**
5
- * Returns filters for 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
- * @alpha
12
- */
13
- export const useScheduledExportFilters = ({ scheduledExportToEdit, widget, insight, }) => {
14
- const { result: widgetFilters, error: widgetFiltersError, status, } = useWidgetScheduledExportFilters({ scheduledExportToEdit, widget, insight });
15
- const dashboardFilters = useDashboardScheduledExportFilters({ scheduledExportToEdit });
16
- const widgetFiltersLoading = widget ? status === "pending" || status === "running" : false;
17
- return {
18
- widgetFilters,
19
- widgetFiltersLoading,
20
- widgetFiltersError,
21
- dashboardFilters,
22
- };
23
- };