@gooddata/sdk-ui-dashboard 11.55.0-alpha.2 → 11.55.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/NOTICE +9 -9
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/_staging/automation/index.d.ts +19 -1
  5. package/esm/_staging/automation/index.d.ts.map +1 -1
  6. package/esm/_staging/automation/index.js +44 -8
  7. package/esm/_staging/dashboard/dashboardFilterConverter.d.ts +1 -18
  8. package/esm/_staging/dashboard/dashboardFilterConverter.d.ts.map +1 -1
  9. package/esm/_staging/dashboard/dashboardFilterConverter.js +1 -62
  10. package/esm/_staging/insight/insightWidgetProperties.d.ts +6 -0
  11. package/esm/_staging/insight/insightWidgetProperties.d.ts.map +1 -0
  12. package/esm/_staging/insight/insightWidgetProperties.js +32 -0
  13. package/esm/_staging/sharedHooks/useRichTextFilters.d.ts.map +1 -1
  14. package/esm/_staging/sharedHooks/useRichTextFilters.js +1 -2
  15. package/esm/index.d.ts +25 -7
  16. package/esm/index.d.ts.map +1 -1
  17. package/esm/index.js +22 -4
  18. package/esm/internal.d.ts +3 -3
  19. package/esm/internal.d.ts.map +1 -1
  20. package/esm/internal.js +3 -3
  21. package/esm/kdaDialog/dialog/hooks/useChangeAnalysis.d.ts.map +1 -1
  22. package/esm/kdaDialog/dialog/hooks/useChangeAnalysis.js +1 -2
  23. package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.d.ts.map +1 -1
  24. package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.js +1 -2
  25. package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
  26. package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +1 -2
  27. package/esm/model/commandHandlers/scheduledEmail/automationParametersRestore.d.ts +11 -5
  28. package/esm/model/commandHandlers/scheduledEmail/automationParametersRestore.d.ts.map +1 -1
  29. package/esm/model/commandHandlers/scheduledEmail/automationParametersRestore.js +24 -7
  30. package/esm/model/commandHandlers/scheduledEmail/csvRawExecutionDefinition.d.ts.map +1 -1
  31. package/esm/model/commandHandlers/scheduledEmail/csvRawExecutionDefinition.js +1 -2
  32. package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.d.ts.map +1 -1
  33. package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.js +5 -0
  34. package/esm/model/commandHandlers/widgets/exportInsightWidgetHandler.d.ts.map +1 -1
  35. package/esm/model/commandHandlers/widgets/exportInsightWidgetHandler.js +21 -3
  36. package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.js +1 -2
  37. package/esm/model/commands/filters.d.ts +1 -1
  38. package/esm/model/commands/filters.js +1 -1
  39. package/esm/model/events/filters.d.ts +6 -6
  40. package/esm/model/store/tabs/layout/layoutSelectors.d.ts.map +1 -1
  41. package/esm/model/store/tabs/layout/layoutSelectors.js +1 -2
  42. package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +10 -22
  43. package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
  44. package/esm/model/store/tabs/parameters/parametersHelpers.js +13 -42
  45. package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +8 -10
  46. package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
  47. package/esm/model/store/tabs/parameters/parametersSelectors.js +22 -32
  48. package/esm/presentation/automations/alerting/AlertingManagementDialog.d.ts +4 -0
  49. package/esm/presentation/automations/alerting/AlertingManagementDialog.d.ts.map +1 -1
  50. package/esm/presentation/automations/alerting/AlertingManagementDialog.js +6 -2
  51. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +16 -16
  52. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
  53. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +34 -109
  54. package/esm/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.d.ts +10 -0
  55. package/esm/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.d.ts.map +1 -0
  56. package/esm/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.js +12 -0
  57. package/esm/presentation/automations/alerting/blocks/AlertingDialogShell.d.ts +49 -0
  58. package/esm/presentation/automations/alerting/blocks/AlertingDialogShell.d.ts.map +1 -0
  59. package/esm/presentation/automations/alerting/blocks/AlertingDialogShell.js +128 -0
  60. package/esm/presentation/automations/alerting/blocks/DefaultLoadingAlertingDialog.d.ts.map +1 -0
  61. package/esm/presentation/automations/alerting/types.d.ts +109 -0
  62. package/esm/presentation/automations/alerting/types.d.ts.map +1 -1
  63. package/esm/presentation/automations/connectors/AlertingConnector.d.ts +3 -3
  64. package/esm/presentation/automations/connectors/AlertingConnector.d.ts.map +1 -1
  65. package/esm/presentation/automations/connectors/AlertingConnector.js +6 -4
  66. package/esm/presentation/automations/connectors/ScheduledEmailConnector.d.ts +3 -3
  67. package/esm/presentation/automations/connectors/ScheduledEmailConnector.d.ts.map +1 -1
  68. package/esm/presentation/automations/connectors/ScheduledEmailConnector.js +6 -4
  69. package/esm/presentation/automations/connectors/hooks/useBuildAlertingManagementDialogContext.d.ts.map +1 -1
  70. package/esm/presentation/automations/connectors/hooks/useBuildAlertingManagementDialogContext.js +7 -0
  71. package/esm/presentation/automations/contexts/AlertingManagementDialogContext.d.ts +22 -0
  72. package/esm/presentation/automations/contexts/AlertingManagementDialogContext.d.ts.map +1 -1
  73. package/esm/presentation/automations/contexts/AlertingManagementDialogContext.js +10 -0
  74. package/esm/presentation/automations/contexts/AutomationsContext.d.ts +10 -0
  75. package/esm/presentation/automations/contexts/AutomationsContext.d.ts.map +1 -1
  76. package/esm/presentation/automations/contexts/AutomationsContext.js +10 -0
  77. package/esm/presentation/automations/contexts/ScheduledEmailManagementDialogContext.d.ts +10 -0
  78. package/esm/presentation/automations/contexts/ScheduledEmailManagementDialogContext.d.ts.map +1 -1
  79. package/esm/presentation/automations/contexts/ScheduledEmailManagementDialogContext.js +10 -0
  80. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts +15 -10
  81. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
  82. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +45 -198
  83. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts +2 -18
  84. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts.map +1 -1
  85. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts +2 -23
  86. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts.map +1 -1
  87. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDashboardAttachments.d.ts +11 -0
  88. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDashboardAttachments.d.ts.map +1 -0
  89. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDashboardAttachments.js +12 -0
  90. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogEvaluationMode.d.ts +11 -0
  91. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogEvaluationMode.d.ts.map +1 -0
  92. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogEvaluationMode.js +12 -0
  93. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogMessage.d.ts +11 -0
  94. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogMessage.d.ts.map +1 -0
  95. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogMessage.js +12 -0
  96. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecurrence.d.ts +11 -0
  97. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecurrence.d.ts.map +1 -0
  98. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecurrence.js +12 -0
  99. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogSubject.d.ts +11 -0
  100. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogSubject.d.ts.map +1 -0
  101. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogSubject.js +12 -0
  102. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.d.ts +11 -0
  103. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.d.ts.map +1 -0
  104. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.js +12 -0
  105. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/EvaluationModeCheckbox/EvaluationModeCheckbox.d.ts +2 -17
  106. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/EvaluationModeCheckbox/EvaluationModeCheckbox.d.ts.map +1 -1
  107. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/EvaluationModeCheckbox/EvaluationModeCheckbox.js +0 -3
  108. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/MessageForm/MessageForm.d.ts +2 -6
  109. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/MessageForm/MessageForm.d.ts.map +1 -1
  110. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js +1 -1
  111. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/SubjectForm/SubjectForm.d.ts +2 -10
  112. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/SubjectForm/SubjectForm.d.ts.map +1 -1
  113. package/esm/presentation/automations/scheduledEmail/ScheduledEmailManagementDialog.d.ts +4 -0
  114. package/esm/presentation/automations/scheduledEmail/ScheduledEmailManagementDialog.d.ts.map +1 -1
  115. package/esm/presentation/automations/scheduledEmail/ScheduledEmailManagementDialog.js +6 -2
  116. package/esm/presentation/automations/scheduledEmail/blocks/DefaultLoadingScheduledEmailDialog.d.ts.map +1 -0
  117. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDashboardAttachments.d.ts +16 -0
  118. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDashboardAttachments.d.ts.map +1 -0
  119. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDashboardAttachments.js +28 -0
  120. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogEvaluationMode.d.ts +16 -0
  121. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogEvaluationMode.d.ts.map +1 -0
  122. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogEvaluationMode.js +28 -0
  123. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogMessage.d.ts +15 -0
  124. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogMessage.d.ts.map +1 -0
  125. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogMessage.js +27 -0
  126. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecurrence.d.ts +16 -0
  127. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecurrence.d.ts.map +1 -0
  128. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecurrence.js +24 -0
  129. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.d.ts +59 -0
  130. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.d.ts.map +1 -0
  131. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.js +195 -0
  132. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogSubject.d.ts +16 -0
  133. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogSubject.d.ts.map +1 -0
  134. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogSubject.js +29 -0
  135. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogWidgetAttachments.d.ts +16 -0
  136. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogWidgetAttachments.d.ts.map +1 -0
  137. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogWidgetAttachments.js +28 -0
  138. package/esm/presentation/automations/scheduledEmail/state/useIsInPlatformChannel.d.ts +6 -0
  139. package/esm/presentation/automations/scheduledEmail/state/useIsInPlatformChannel.d.ts.map +1 -0
  140. package/esm/presentation/automations/scheduledEmail/state/useIsInPlatformChannel.js +13 -0
  141. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogFieldProps.d.ts +73 -0
  142. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogFieldProps.d.ts.map +1 -0
  143. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogFieldProps.js +168 -0
  144. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailSubmitOnEnter.d.ts +30 -0
  145. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailSubmitOnEnter.d.ts.map +1 -0
  146. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailSubmitOnEnter.js +26 -0
  147. package/esm/presentation/automations/scheduledEmail/types.d.ts +351 -1
  148. package/esm/presentation/automations/scheduledEmail/types.d.ts.map +1 -1
  149. package/esm/presentation/automations/shared/automationFilters/automationParameters.d.ts +8 -4
  150. package/esm/presentation/automations/shared/automationFilters/automationParameters.d.ts.map +1 -1
  151. package/esm/presentation/automations/shared/automationFilters/automationParameters.js +30 -13
  152. package/esm/presentation/automations/shared/automationFilters/components/AutomationParameter.d.ts.map +1 -1
  153. package/esm/presentation/automations/shared/automationFilters/components/AutomationParameter.js +1 -4
  154. package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.d.ts.map +1 -1
  155. package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.js +12 -7
  156. package/esm/presentation/automations/shared/automationFilters/useAutomationAlertParameters.d.ts.map +1 -1
  157. package/esm/presentation/automations/shared/automationFilters/useAutomationAlertParameters.js +3 -1
  158. package/esm/presentation/automations/shared/filters/conversions.d.ts.map +1 -1
  159. package/esm/presentation/automations/shared/filters/conversions.js +1 -2
  160. package/esm/presentation/automations/shared/hooks/useWorkspaceUsersSearch.d.ts +51 -0
  161. package/esm/presentation/automations/shared/hooks/useWorkspaceUsersSearch.d.ts.map +1 -0
  162. package/esm/presentation/automations/{scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect → shared/hooks}/useWorkspaceUsersSearch.js +13 -0
  163. package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
  164. package/esm/presentation/dashboard/components/DashboardRenderer.js +4 -1
  165. package/esm/presentation/dashboard/components/DashboardScreenSizeContext.js +1 -1
  166. package/esm/presentation/dashboard/types.d.ts +32 -2
  167. package/esm/presentation/dashboard/types.d.ts.map +1 -1
  168. package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +6 -2
  169. package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
  170. package/esm/presentation/dashboardContexts/DashboardComponentsContext.js +3 -0
  171. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.d.ts.map +1 -1
  172. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +1 -2
  173. package/esm/presentation/filterBar/attributeFilter/AttributeFilterParentFilteringContext.d.ts.map +1 -1
  174. package/esm/presentation/filterBar/attributeFilter/AttributeFilterParentFilteringContext.js +1 -2
  175. package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js +1 -3
  176. package/esm/presentation/filterBar/attributeFilter/useParentFilters.d.ts.map +1 -1
  177. package/esm/presentation/filterBar/attributeFilter/useParentFilters.js +1 -2
  178. package/esm/presentation/filterBar/parameterFilter/DashboardParameterFilter.d.ts.map +1 -1
  179. package/esm/presentation/filterBar/parameterFilter/DashboardParameterFilter.js +12 -8
  180. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +91 -91
  181. package/esm/presentation/widget/insight/ViewModeDashboardInsight/useResolveDashboardInsightProperties.d.ts.map +1 -1
  182. package/esm/presentation/widget/insight/ViewModeDashboardInsight/useResolveDashboardInsightProperties.js +3 -35
  183. package/esm/presentation/widget/insightMenu/types.js +1 -1
  184. package/esm/presentation/widget/richTextMenu/types.d.ts.map +1 -1
  185. package/esm/presentation/widget/richTextMenu/types.js +2 -1
  186. package/esm/presentation/widget/widget/DefaultDashboardWidget.d.ts +2 -1
  187. package/esm/presentation/widget/widget/DefaultDashboardWidget.d.ts.map +1 -1
  188. package/esm/sdk-ui-dashboard.d.ts +1118 -161
  189. package/esm/types.d.ts +59 -3
  190. package/esm/types.d.ts.map +1 -1
  191. package/esm/types.js +2 -4
  192. package/package.json +23 -24
  193. package/styles/scss/dashboard.scss +4 -4
  194. package/esm/converters/filterConverters.d.ts +0 -93
  195. package/esm/converters/filterConverters.d.ts.map +0 -1
  196. package/esm/converters/filterConverters.js +0 -199
  197. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultLoadingAlertingDialog.d.ts.map +0 -1
  198. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultLoadingScheduledEmailDialog.d.ts.map +0 -1
  199. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/useWorkspaceUsersSearch.d.ts +0 -13
  200. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/useWorkspaceUsersSearch.d.ts.map +0 -1
  201. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog → blocks}/DefaultLoadingAlertingDialog.d.ts +0 -0
  202. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog → blocks}/DefaultLoadingAlertingDialog.js +0 -0
  203. /package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog → blocks}/DefaultLoadingScheduledEmailDialog.d.ts +0 -0
  204. /package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog → blocks}/DefaultLoadingScheduledEmailDialog.js +0 -0
package/esm/types.d.ts CHANGED
@@ -1,17 +1,19 @@
1
- import { type DrillDefinition, type IAbsoluteDateFilter, type IAccessGrantee, type IArbitraryAttributeFilter, type IAutomationMetadataObject, type IInsight, type IMatchAttributeFilter, type IMeasureValueFilter, type INegativeAttributeFilter, type IPositiveAttributeFilter, type IRelativeDateFilter, type IWidget, type LocalIdRef, type ObjRef, type ShareStatus } from "@gooddata/sdk-model";
1
+ import { type ComponentType, type ReactNode } from "react";
2
+ import { type DrillDefinition, type IAccessGrantee, type IAutomationMetadataObject, type IDashboardFilter as IDashboardFilterBase, type IInsight, type IWidget, type LocalIdRef, type ObjRef, type ShareStatus, isDashboardFilter as isDashboardFilterBase } from "@gooddata/sdk-model";
2
3
  import { type IDrillEvent, type OnFiredDrillEvent } from "@gooddata/sdk-ui";
3
4
  import { type DateFilterConfigValidationResult } from "./_staging/dateFilterConfig/validation.js";
4
5
  /**
5
6
  * Supported dashboard filter type.
7
+ *
6
8
  * @public
7
9
  */
8
- export type IDashboardFilter = IAbsoluteDateFilter | IRelativeDateFilter | IPositiveAttributeFilter | INegativeAttributeFilter | IArbitraryAttributeFilter | IMatchAttributeFilter | IMeasureValueFilter;
10
+ export type IDashboardFilter = IDashboardFilterBase;
9
11
  /**
10
12
  * Type-guard testing whether the provided object is an instance of {@link IDashboardFilter}.
11
13
  *
12
14
  * @alpha
13
15
  */
14
- export declare function isDashboardFilter(obj: unknown): obj is IDashboardFilter;
16
+ export declare const isDashboardFilter: typeof isDashboardFilterBase;
15
17
  /**
16
18
  * Supported dashboard drill definitions.
17
19
  *
@@ -341,4 +343,58 @@ export interface IAlertDialogContext {
341
343
  */
342
344
  alert?: IAutomationMetadataObject;
343
345
  }
346
+ /**
347
+ * Decorates the data the automation dialogs' shared context carries.
348
+ *
349
+ * The dashboard mounts this component directly inside each connector-provided automations context
350
+ * — once in the alerting tree and once in the scheduled-email tree — so the value it re-provides
351
+ * is what everything in both trees reads: the default dialogs, wholesale replacements, exported
352
+ * blocks and hooks, and the dialogs' state seeding. A decorator must therefore be tree-agnostic.
353
+ * Read the current value with `useAutomationsContext()`, decorate the members to adjust, and
354
+ * re-provide via `AutomationsContextProvider`:
355
+ *
356
+ * @example
357
+ * ```tsx
358
+ * function GranularityDecorator({ children }: { children?: ReactNode }) {
359
+ * const ctx = useAutomationsContext();
360
+ * const decorated = useMemo(
361
+ * () => ({
362
+ * ...ctx,
363
+ * dateFilterConfig: {
364
+ * ...ctx.dateFilterConfig,
365
+ * availableGranularities: ctx.dateFilterConfig.availableGranularities.filter(
366
+ * (g) => g !== "GDC.time.hour",
367
+ * ),
368
+ * getGranularitiesForTab: (tabId: string) =>
369
+ * ctx.dateFilterConfig
370
+ * .getGranularitiesForTab(tabId)
371
+ * .filter((g) => g !== "GDC.time.hour"),
372
+ * },
373
+ * }),
374
+ * [ctx],
375
+ * );
376
+ * return <AutomationsContextProvider value={decorated}>{children}</AutomationsContextProvider>;
377
+ * }
378
+ * // <Dashboard AutomationsContextDecoratorComponent={GranularityDecorator} />
379
+ * ```
380
+ *
381
+ * To constrain the date-filter granularities the dialogs offer, override
382
+ * `dateFilterConfig.availableGranularities` and `dateFilterConfig.getGranularitiesForTab`
383
+ * together, as above — the date filter falls back per tab. Components that build this context
384
+ * themselves (the standalone connected dialogs, the widget-panel alerts list) are not decorated.
385
+ * Define the decorator outside render, or both dialog trees remount on every parent render.
386
+ * Both instances mount with the dashboard, not only while a dialog is open — a decorator that
387
+ * fetches data runs on every dashboard.
388
+ *
389
+ * The contract: change the data, not what it means — every member keeps its documented meaning.
390
+ * The dialog does not check the decorated value; when you override a member, everything that
391
+ * reads it is your responsibility. Spread the value you read (`{ ...ctx, member }`) so the other
392
+ * members pass through. Wrap functions instead of replacing them. Do not touch members marked as
393
+ * internal machinery.
394
+ *
395
+ * @alpha
396
+ */
397
+ export type CustomAutomationsContextDecoratorComponent = ComponentType<{
398
+ children?: ReactNode;
399
+ }>;
344
400
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,MAAM,EACX,KAAK,WAAW,EAInB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE5E,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAGlG;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GACtB,mBAAmB,GACnB,mBAAmB,GACnB,wBAAwB,GACxB,wBAAwB,GACxB,yBAAyB,GACzB,qBAAqB,GACrB,mBAAmB,CA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ED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAM,MAAM,0CAA0C,GAAG,aAAa,CAAC;IACnE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC,CAAC"}
package/esm/types.js CHANGED
@@ -1,14 +1,12 @@
1
1
  // (C) 2007-2026 GoodData Corporation
2
2
  import { isEmpty } from "lodash-es";
3
- import { isAttributeFilter, isDateFilter, isMeasureValueFilter, } from "@gooddata/sdk-model";
3
+ import { isDashboardFilter as isDashboardFilterBase, } from "@gooddata/sdk-model";
4
4
  /**
5
5
  * Type-guard testing whether the provided object is an instance of {@link IDashboardFilter}.
6
6
  *
7
7
  * @alpha
8
8
  */
9
- export function isDashboardFilter(obj) {
10
- return isAttributeFilter(obj) || isDateFilter(obj) || isMeasureValueFilter(obj);
11
- }
9
+ export const isDashboardFilter = isDashboardFilterBase;
12
10
  /**
13
11
  * Type-guard testing whether the provided object is an instance of {@link IDrillDownDefinition}.
14
12
  * @beta
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-dashboard",
3
- "version": "11.55.0-alpha.2",
3
+ "version": "11.55.0-alpha.4",
4
4
  "description": "GoodData SDK - Dashboard Component",
5
5
  "license": "LicenseRef-LICENSE",
6
6
  "author": "GoodData Corporation",
@@ -60,20 +60,20 @@
60
60
  "ts-invariant": "0.10.3",
61
61
  "tslib": "2.8.1",
62
62
  "uuid": "11.1.1",
63
- "@gooddata/sdk-model": "11.55.0-alpha.2",
64
- "@gooddata/sdk-backend-base": "11.55.0-alpha.2",
65
- "@gooddata/sdk-ui": "11.55.0-alpha.2",
66
- "@gooddata/sdk-backend-spi": "11.55.0-alpha.2",
67
- "@gooddata/sdk-ui-charts": "11.55.0-alpha.2",
68
- "@gooddata/sdk-ui-filters": "11.55.0-alpha.2",
69
- "@gooddata/sdk-ui-ext": "11.55.0-alpha.2",
70
- "@gooddata/sdk-ui-geo": "11.55.0-alpha.2",
71
- "@gooddata/sdk-ui-semantic-search": "11.55.0-alpha.2",
72
- "@gooddata/sdk-ui-pivot": "11.55.0-alpha.2",
73
- "@gooddata/sdk-ui-theme-provider": "11.55.0-alpha.2",
74
- "@gooddata/sdk-ui-vis-commons": "11.55.0-alpha.2",
75
- "@gooddata/sdk-ui-kit": "11.55.0-alpha.2",
76
- "@gooddata/util": "11.55.0-alpha.2"
63
+ "@gooddata/sdk-backend-base": "11.55.0-alpha.4",
64
+ "@gooddata/sdk-backend-spi": "11.55.0-alpha.4",
65
+ "@gooddata/sdk-model": "11.55.0-alpha.4",
66
+ "@gooddata/sdk-ui": "11.55.0-alpha.4",
67
+ "@gooddata/sdk-ui-charts": "11.55.0-alpha.4",
68
+ "@gooddata/sdk-ui-filters": "11.55.0-alpha.4",
69
+ "@gooddata/sdk-ui-geo": "11.55.0-alpha.4",
70
+ "@gooddata/sdk-ui-kit": "11.55.0-alpha.4",
71
+ "@gooddata/sdk-ui-pivot": "11.55.0-alpha.4",
72
+ "@gooddata/sdk-ui-ext": "11.55.0-alpha.4",
73
+ "@gooddata/sdk-ui-semantic-search": "11.55.0-alpha.4",
74
+ "@gooddata/sdk-ui-theme-provider": "11.55.0-alpha.4",
75
+ "@gooddata/sdk-ui-vis-commons": "11.55.0-alpha.4",
76
+ "@gooddata/util": "11.55.0-alpha.4"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@microsoft/api-documenter": "7.30.10",
@@ -92,7 +92,6 @@
92
92
  "@typescript-eslint/eslint-plugin": "8.58.0",
93
93
  "@typescript-eslint/parser": "8.58.0",
94
94
  "@typescript/native-preview": "7.0.0-dev.20260202.1",
95
- "@vitest/eslint-plugin": "1.6.19",
96
95
  "dependency-cruiser": "17.3.10",
97
96
  "eslint": "^9.39.2",
98
97
  "eslint-plugin-headers": "1.3.3",
@@ -105,8 +104,8 @@
105
104
  "eslint-plugin-sonarjs": "3.0.6",
106
105
  "happy-dom": "20.9.0",
107
106
  "npm-run-all": "4.1.5",
108
- "oxfmt": "0.52.0",
109
- "oxlint": "1.51.0",
107
+ "oxfmt": "0.58.0",
108
+ "oxlint": "1.57.0",
110
109
  "oxlint-tsgolint": "0.15.0",
111
110
  "raf": "3.4.1",
112
111
  "react": "19.1.1",
@@ -117,12 +116,12 @@
117
116
  "typescript": "5.9.3",
118
117
  "vitest": "4.1.8",
119
118
  "vitest-dom": "0.1.1",
120
- "@gooddata/eslint-config": "11.55.0-alpha.2",
121
- "@gooddata/i18n-toolkit": "11.55.0-alpha.2",
122
- "@gooddata/oxlint-config": "11.55.0-alpha.2",
123
- "@gooddata/reference-workspace": "11.55.0-alpha.2",
124
- "@gooddata/sdk-backend-mockingbird": "11.55.0-alpha.2",
125
- "@gooddata/stylelint-config": "11.55.0-alpha.2"
119
+ "@gooddata/eslint-config": "11.55.0-alpha.4",
120
+ "@gooddata/oxlint-config": "11.55.0-alpha.4",
121
+ "@gooddata/reference-workspace": "11.55.0-alpha.4",
122
+ "@gooddata/sdk-backend-mockingbird": "11.55.0-alpha.4",
123
+ "@gooddata/stylelint-config": "11.55.0-alpha.4",
124
+ "@gooddata/i18n-toolkit": "11.55.0-alpha.4"
126
125
  },
127
126
  "peerDependencies": {
128
127
  "react": "^18.0.0 || ^19.0.0",
@@ -785,8 +785,8 @@ $dashboard-menu-item-icon-color: var(--gd-palette-complementary-5-from-theme, #b
785
785
  }
786
786
 
787
787
  &:not(.gd-dashboard-nested-layout-widget):not(.gd-first-container-row-widget):not(
788
- .drag-info-placeholder
789
- ) {
788
+ .drag-info-placeholder
789
+ ) {
790
790
  padding: 10px 0; // no place between widgets, render only containers for resizers
791
791
  }
792
792
  &.gd-first-container-row-widget:not(.gd-dashboard-nested-layout-widget) {
@@ -869,8 +869,8 @@ $dashboard-menu-item-icon-color: var(--gd-palette-complementary-5-from-theme, #b
869
869
  }
870
870
 
871
871
  &:not(.gd-dashboard-nested-layout-widget):not(.gd-first-container-row-widget):not(
872
- .drag-info-placeholder
873
- ) {
872
+ .drag-info-placeholder
873
+ ) {
874
874
  padding: 0;
875
875
  }
876
876
 
@@ -1,93 +0,0 @@
1
- import { type DashboardAttributeFilterItem, type FilterContextItem, type IAttributeFilter, type IDashboardAttributeFilter, type IDashboardDateFilter, type IDashboardMeasureValueFilter, type IDateFilter, type IFilterContext, type IFilterContextDefinition, type IFilterableWidget, type IMeasureValueFilter, type ITempFilterContext, type IWidgetDefinition, type ObjRef } from "@gooddata/sdk-model";
2
- import { type IDashboardFilter } from "../types.js";
3
- /**
4
- * Gets {@link IDashboardFilter} items for filters specified in given filterContext in relation to the given widget.
5
- *
6
- * @param filterContext - filter context to get filters for
7
- * @param widget - widget to use to get dateDataSet for date filters
8
- * @public
9
- */
10
- export declare function filterContextToDashboardFiltersByWidget(filterContext: IFilterContextDefinition | IFilterContext | ITempFilterContext | undefined, widget: IWidgetDefinition): IDashboardFilter[];
11
- /**
12
- * Gets {@link IDashboardFilter} items for filters specified in given filterContext in relation to the
13
- * given dateDataSet.
14
- *
15
- * @param filterContext - filter context to get filters for
16
- * @param dateDataSet - widget to use to get dateDataSet for date filters
17
- * @public
18
- */
19
- export declare function filterContextToDashboardFiltersByDateDataSet(filterContext: IFilterContextDefinition | IFilterContext | ITempFilterContext | undefined, dateDataSet: ObjRef): IDashboardFilter[];
20
- /**
21
- * Converts {@link @gooddata/sdk-backend-spi#IDashboardAttributeFilter} to {@link @gooddata/sdk-model#IAttributeFilter} instance.
22
- *
23
- * @param filter - filter context attribute filter to convert
24
- * @deprecated Use {@link dashboardAttributeFilterItemToAttributeFilter} instead,
25
- * which supports all attribute filter types including text filters.
26
- * @public
27
- */
28
- export declare function dashboardAttributeFilterToAttributeFilter(filter: IDashboardAttributeFilter): IAttributeFilter;
29
- /**
30
- * Converts any {@link @gooddata/sdk-model#DashboardAttributeFilterItem} to {@link @gooddata/sdk-model#IAttributeFilter} instance.
31
- *
32
- * @remarks
33
- * Handles all attribute filter types: element-based (positive/negative selection),
34
- * arbitrary value filters, and match (text) filters.
35
- *
36
- * @param filter - dashboard attribute filter item to convert
37
- * @public
38
- */
39
- export declare function dashboardAttributeFilterItemToAttributeFilter(filter: DashboardAttributeFilterItem): IAttributeFilter;
40
- /**
41
- * Converts {@link @gooddata/sdk-backend-spi#IDashboardDateFilter} to {@link @gooddata/sdk-model#IDateFilter} instance.
42
- *
43
- * @param filter - filter context attribute filter to convert
44
- * @param widget - widget to use to get dateDataSet for date filters
45
- * @public
46
- */
47
- export declare function dashboardDateFilterToDateFilterByWidget(filter: IDashboardDateFilter, widget?: Partial<IFilterableWidget>): IDateFilter;
48
- /**
49
- * Converts {@link @gooddata/sdk-backend-spi#IDashboardDateFilter} to {@link @gooddata/sdk-model#IDateFilter} instance.
50
- *
51
- * @param filter - filter context attribute filter to convert
52
- * @param dateDataSet - date data set to define {@link @gooddata/sdk-model#IDateFilter}
53
- * @public
54
- */
55
- export declare function dashboardDateFilterToDateFilterByDateDataSet(filter: IDashboardDateFilter, dateDataSet: ObjRef): IDateFilter;
56
- /**
57
- * Converts {@link @gooddata/sdk-model#IDashboardMeasureValueFilter} to {@link @gooddata/sdk-model#IMeasureValueFilter} instance.
58
- *
59
- * @remarks
60
- * Dashboard measure value filters always reference a catalog metric via `ObjRef`, which is a valid
61
- * `ObjRefInScope`. When dashboard-level dimensionality is configured, it is passed through to the
62
- * execution filter; otherwise the backend derives granularity from the widget automatically.
63
- * Conditions are passed through unchanged.
64
- *
65
- * @param filter - dashboard measure value filter to convert
66
- * @public
67
- */
68
- export declare function dashboardMeasureValueFilterToMeasureValueFilter(filter: IDashboardMeasureValueFilter): IMeasureValueFilter;
69
- /**
70
- * Gets {@link IDashboardFilter} items for filters specified as {@link @gooddata/sdk-backend-spi#FilterContextItem} instances.
71
- *
72
- * @param filterContextItems - filter context items to get filters for
73
- * @param widget - widget to use to get dateDataSet for date filters
74
- * @public
75
- */
76
- export declare function filterContextItemsToDashboardFiltersByWidget(filterContextItems: FilterContextItem[], widget?: Partial<IFilterableWidget>): IDashboardFilter[];
77
- /**
78
- * Gets {@link IDashboardFilter} items for filters specified as {@link @gooddata/sdk-backend-spi#FilterContextItem} instances.
79
- *
80
- * @param filterContextItems - filter context items to get filters for
81
- * @param widget - widget to use to get dateDataSet for date filters
82
- * @public
83
- */
84
- export declare function filterContextItemsToDashboardFiltersByRichTextWidget(filterContextItems: FilterContextItem[], widget?: Partial<IFilterableWidget>): IDashboardFilter[];
85
- /**
86
- * Gets {@link IDashboardFilter} items for filters specified as {@link @gooddata/sdk-backend-spi#FilterContextItem} instances.
87
- *
88
- * @param filterContextItems - filter context items to get filters for
89
- * @param dateDataSet - date data set to define {@link @gooddata/sdk-model#IDateFilter}
90
- * @public
91
- */
92
- export declare function filterContextItemsToDashboardFiltersByDateDataSet(filterContextItems: FilterContextItem[], dateDataSet: ObjRef): IDashboardFilter[];
93
- //# sourceMappingURL=filterConverters.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filterConverters.d.ts","sourceRoot":"","sources":["../../src/converters/filterConverters.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,MAAM,EAcd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD;;;;;;GAMG;AACH,wBAAgB,uCAAuC,CACnD,aAAa,EAAE,wBAAwB,GAAG,cAAc,GAAG,kBAAkB,GAAG,SAAS,EACzF,MAAM,EAAE,iBAAiB,GAC1B,gBAAgB,EAAE,CAMpB;AAED;;;;;;;GAOG;AACH,wBAAgB,4CAA4C,CACxD,aAAa,EAAE,wBAAwB,GAAG,cAAc,GAAG,kBAAkB,GAAG,SAAS,EACzF,WAAW,EAAE,MAAM,GACpB,gBAAgB,EAAE,CAMpB;AAED;;;;;;;GAOG;AACH,wBAAgB,yCAAyC,CACrD,MAAM,EAAE,yBAAyB,GAClC,gBAAgB,CAclB;AAED;;;;;;;;;GASG;AACH,wBAAgB,6CAA6C,CACzD,MAAM,EAAE,4BAA4B,GACrC,gBAAgB,CA8BlB;AAED;;;;;;GAMG;AACH,wBAAgB,uCAAuC,CACnD,MAAM,EAAE,oBAAoB,EAC5B,MAAM,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,GACpC,WAAW,CA+Bb;AAED;;;;;;GAMG;AACH,wBAAgB,4CAA4C,CACxD,MAAM,EAAE,oBAAoB,EAC5B,WAAW,EAAE,MAAM,GACpB,WAAW,CA4Bb;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,+CAA+C,CAC3D,MAAM,EAAE,4BAA4B,GACrC,mBAAmB,CAUrB;AAED;;;;;;GAMG;AACH,wBAAgB,4CAA4C,CACxD,kBAAkB,EAAE,iBAAiB,EAAE,EACvC,MAAM,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,GACpC,gBAAgB,EAAE,CAmBpB;AAED;;;;;;GAMG;AACH,wBAAgB,oDAAoD,CAChE,kBAAkB,EAAE,iBAAiB,EAAE,EACvC,MAAM,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,GACpC,gBAAgB,EAAE,CAoBpB;AAED;;;;;;GAMG;AACH,wBAAgB,iDAAiD,CAC7D,kBAAkB,EAAE,iBAAiB,EAAE,EACvC,WAAW,EAAE,MAAM,GACpB,gBAAgB,EAAE,CAmBpB"}
@@ -1,199 +0,0 @@
1
- // (C) 2020-2026 GoodData Corporation
2
- import { isAllTimeDashboardDateFilter, isDashboardArbitraryAttributeFilter, isDashboardAttributeFilterItem, isDashboardDateFilter, isDashboardMatchAttributeFilter, isDashboardMeasureValueFilter, newAbsoluteDateFilter, newAllTimeFilter, newArbitraryAttributeFilter, newMatchAttributeFilter, newNegativeAttributeFilter, newPositiveAttributeFilter, newRelativeDateFilter, } from "@gooddata/sdk-model";
3
- /**
4
- * Gets {@link IDashboardFilter} items for filters specified in given filterContext in relation to the given widget.
5
- *
6
- * @param filterContext - filter context to get filters for
7
- * @param widget - widget to use to get dateDataSet for date filters
8
- * @public
9
- */
10
- export function filterContextToDashboardFiltersByWidget(filterContext, widget) {
11
- if (!filterContext) {
12
- return [];
13
- }
14
- return filterContextItemsToDashboardFiltersByWidget(filterContext.filters, widget);
15
- }
16
- /**
17
- * Gets {@link IDashboardFilter} items for filters specified in given filterContext in relation to the
18
- * given dateDataSet.
19
- *
20
- * @param filterContext - filter context to get filters for
21
- * @param dateDataSet - widget to use to get dateDataSet for date filters
22
- * @public
23
- */
24
- export function filterContextToDashboardFiltersByDateDataSet(filterContext, dateDataSet) {
25
- if (!filterContext) {
26
- return [];
27
- }
28
- return filterContextItemsToDashboardFiltersByDateDataSet(filterContext.filters, dateDataSet);
29
- }
30
- /**
31
- * Converts {@link @gooddata/sdk-backend-spi#IDashboardAttributeFilter} to {@link @gooddata/sdk-model#IAttributeFilter} instance.
32
- *
33
- * @param filter - filter context attribute filter to convert
34
- * @deprecated Use {@link dashboardAttributeFilterItemToAttributeFilter} instead,
35
- * which supports all attribute filter types including text filters.
36
- * @public
37
- */
38
- export function dashboardAttributeFilterToAttributeFilter(filter) {
39
- if (filter.attributeFilter.negativeSelection) {
40
- return newNegativeAttributeFilter(filter.attributeFilter.displayForm, filter.attributeFilter.attributeElements, filter.attributeFilter.localIdentifier);
41
- }
42
- return newPositiveAttributeFilter(filter.attributeFilter.displayForm, filter.attributeFilter.attributeElements, filter.attributeFilter.localIdentifier);
43
- }
44
- /**
45
- * Converts any {@link @gooddata/sdk-model#DashboardAttributeFilterItem} to {@link @gooddata/sdk-model#IAttributeFilter} instance.
46
- *
47
- * @remarks
48
- * Handles all attribute filter types: element-based (positive/negative selection),
49
- * arbitrary value filters, and match (text) filters.
50
- *
51
- * @param filter - dashboard attribute filter item to convert
52
- * @public
53
- */
54
- export function dashboardAttributeFilterItemToAttributeFilter(filter) {
55
- if (isDashboardArbitraryAttributeFilter(filter)) {
56
- const { displayForm, values, negativeSelection, localIdentifier } = filter.arbitraryAttributeFilter;
57
- return newArbitraryAttributeFilter(displayForm, values, negativeSelection, localIdentifier);
58
- }
59
- if (isDashboardMatchAttributeFilter(filter)) {
60
- const { displayForm, operator, literal, caseSensitive, negativeSelection, localIdentifier } = filter.matchAttributeFilter;
61
- return newMatchAttributeFilter(displayForm, operator, literal, { caseSensitive, negativeSelection }, localIdentifier);
62
- }
63
- if (filter.attributeFilter.negativeSelection) {
64
- return newNegativeAttributeFilter(filter.attributeFilter.displayForm, filter.attributeFilter.attributeElements, filter.attributeFilter.localIdentifier);
65
- }
66
- return newPositiveAttributeFilter(filter.attributeFilter.displayForm, filter.attributeFilter.attributeElements, filter.attributeFilter.localIdentifier);
67
- }
68
- /**
69
- * Converts {@link @gooddata/sdk-backend-spi#IDashboardDateFilter} to {@link @gooddata/sdk-model#IDateFilter} instance.
70
- *
71
- * @param filter - filter context attribute filter to convert
72
- * @param widget - widget to use to get dateDataSet for date filters
73
- * @public
74
- */
75
- export function dashboardDateFilterToDateFilterByWidget(filter, widget) {
76
- if (isAllTimeDashboardDateFilter(filter)) {
77
- const dataSet = widget
78
- ? filter.dateFilter.dataSet || widget.dateDataSet
79
- : filter.dateFilter.dataSet;
80
- return newAllTimeFilter(dataSet, filter.dateFilter.localIdentifier, filter.dateFilter.emptyValueHandling);
81
- }
82
- if (filter.dateFilter.type === "relative") {
83
- return newRelativeDateFilter(widget ? filter.dateFilter.dataSet || widget.dateDataSet : filter.dateFilter.dataSet, filter.dateFilter.granularity, numberOrStringToNumber(filter.dateFilter.from), numberOrStringToNumber(filter.dateFilter.to), filter.dateFilter.localIdentifier, filter.dateFilter.boundedFilter, filter.dateFilter.emptyValueHandling);
84
- }
85
- else {
86
- return newAbsoluteDateFilter(widget ? filter.dateFilter.dataSet || widget.dateDataSet : filter.dateFilter.dataSet, filter.dateFilter.from.toString(), filter.dateFilter.to.toString(), filter.dateFilter.localIdentifier, filter.dateFilter.emptyValueHandling);
87
- }
88
- }
89
- /**
90
- * Converts {@link @gooddata/sdk-backend-spi#IDashboardDateFilter} to {@link @gooddata/sdk-model#IDateFilter} instance.
91
- *
92
- * @param filter - filter context attribute filter to convert
93
- * @param dateDataSet - date data set to define {@link @gooddata/sdk-model#IDateFilter}
94
- * @public
95
- */
96
- export function dashboardDateFilterToDateFilterByDateDataSet(filter, dateDataSet) {
97
- if (isAllTimeDashboardDateFilter(filter)) {
98
- return newAllTimeFilter(dateDataSet, filter.dateFilter.localIdentifier, filter.dateFilter.emptyValueHandling);
99
- }
100
- if (filter.dateFilter.type === "relative") {
101
- return newRelativeDateFilter(dateDataSet, filter.dateFilter.granularity, numberOrStringToNumber(filter.dateFilter.from), numberOrStringToNumber(filter.dateFilter.to), filter.dateFilter.localIdentifier, filter.dateFilter.boundedFilter, filter.dateFilter.emptyValueHandling);
102
- }
103
- else {
104
- return newAbsoluteDateFilter(dateDataSet, filter.dateFilter.from.toString(), filter.dateFilter.to.toString(), filter.dateFilter.localIdentifier, filter.dateFilter.emptyValueHandling);
105
- }
106
- }
107
- /**
108
- * Converts {@link @gooddata/sdk-model#IDashboardMeasureValueFilter} to {@link @gooddata/sdk-model#IMeasureValueFilter} instance.
109
- *
110
- * @remarks
111
- * Dashboard measure value filters always reference a catalog metric via `ObjRef`, which is a valid
112
- * `ObjRefInScope`. When dashboard-level dimensionality is configured, it is passed through to the
113
- * execution filter; otherwise the backend derives granularity from the widget automatically.
114
- * Conditions are passed through unchanged.
115
- *
116
- * @param filter - dashboard measure value filter to convert
117
- * @public
118
- */
119
- export function dashboardMeasureValueFilterToMeasureValueFilter(filter) {
120
- const { measure, localIdentifier, conditions, dimensionality } = filter.dashboardMeasureValueFilter;
121
- return {
122
- measureValueFilter: {
123
- measure,
124
- localIdentifier,
125
- ...(conditions && conditions.length > 0 ? { conditions } : {}),
126
- ...(dimensionality && dimensionality.length > 0 ? { dimensionality } : {}),
127
- },
128
- };
129
- }
130
- /**
131
- * Gets {@link IDashboardFilter} items for filters specified as {@link @gooddata/sdk-backend-spi#FilterContextItem} instances.
132
- *
133
- * @param filterContextItems - filter context items to get filters for
134
- * @param widget - widget to use to get dateDataSet for date filters
135
- * @public
136
- */
137
- export function filterContextItemsToDashboardFiltersByWidget(filterContextItems, widget) {
138
- return filterContextItems
139
- .filter((filter) => isDashboardAttributeFilterItem(filter) ||
140
- isDashboardDateFilter(filter) ||
141
- isDashboardMeasureValueFilter(filter))
142
- .map((filter) => {
143
- if (isDashboardAttributeFilterItem(filter)) {
144
- return dashboardAttributeFilterItemToAttributeFilter(filter);
145
- }
146
- if (isDashboardMeasureValueFilter(filter)) {
147
- return dashboardMeasureValueFilterToMeasureValueFilter(filter);
148
- }
149
- return dashboardDateFilterToDateFilterByWidget(filter, widget);
150
- });
151
- }
152
- /**
153
- * Gets {@link IDashboardFilter} items for filters specified as {@link @gooddata/sdk-backend-spi#FilterContextItem} instances.
154
- *
155
- * @param filterContextItems - filter context items to get filters for
156
- * @param widget - widget to use to get dateDataSet for date filters
157
- * @public
158
- */
159
- export function filterContextItemsToDashboardFiltersByRichTextWidget(filterContextItems, widget) {
160
- return filterContextItems
161
- .filter((filter) => isDashboardAttributeFilterItem(filter) ||
162
- isDashboardDateFilter(filter) ||
163
- isDashboardMeasureValueFilter(filter))
164
- .map((filter) => {
165
- if (isDashboardAttributeFilterItem(filter)) {
166
- return dashboardAttributeFilterItemToAttributeFilter(filter);
167
- }
168
- if (isDashboardMeasureValueFilter(filter)) {
169
- return dashboardMeasureValueFilterToMeasureValueFilter(filter);
170
- }
171
- return dashboardDateFilterToDateFilterByWidget(filter, widget);
172
- })
173
- .filter(Boolean);
174
- }
175
- /**
176
- * Gets {@link IDashboardFilter} items for filters specified as {@link @gooddata/sdk-backend-spi#FilterContextItem} instances.
177
- *
178
- * @param filterContextItems - filter context items to get filters for
179
- * @param dateDataSet - date data set to define {@link @gooddata/sdk-model#IDateFilter}
180
- * @public
181
- */
182
- export function filterContextItemsToDashboardFiltersByDateDataSet(filterContextItems, dateDataSet) {
183
- return filterContextItems
184
- .filter((filter) => isDashboardAttributeFilterItem(filter) ||
185
- isDashboardDateFilter(filter) ||
186
- isDashboardMeasureValueFilter(filter))
187
- .map((filter) => {
188
- if (isDashboardAttributeFilterItem(filter)) {
189
- return dashboardAttributeFilterItemToAttributeFilter(filter);
190
- }
191
- if (isDashboardMeasureValueFilter(filter)) {
192
- return dashboardMeasureValueFilterToMeasureValueFilter(filter);
193
- }
194
- return dashboardDateFilterToDateFilterByDateDataSet(filter, dateDataSet);
195
- });
196
- }
197
- function numberOrStringToNumber(input) {
198
- return typeof input === "string" ? Number.parseInt(input) : input;
199
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultLoadingAlertingDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/DefaultLoadingAlertingDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAarE,UAAU,kCAAkC;IACxC,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,wBAAgB,4BAA4B,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,kCAAkC,2CAkDzG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultLoadingScheduledEmailDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultLoadingScheduledEmailDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAarE,UAAU,wCAAwC;IAC9C,qBAAqB,CAAC,EAAE,yBAAyB,CAAC;IAClD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,wBAAgB,kCAAkC,CAAC,EAC/C,qBAAqB,EACrB,QAAQ,EACX,EAAE,wCAAwC,2CAkD1C"}
@@ -1,13 +0,0 @@
1
- import { type IWorkspaceUser } from "@gooddata/sdk-model";
2
- import { type GoodDataSdkError } from "@gooddata/sdk-ui";
3
- export declare function useWorkspaceUsersSearch({ enabled }: {
4
- enabled: boolean;
5
- }): {
6
- search: string;
7
- users: IWorkspaceUser[] | undefined;
8
- usersError: GoodDataSdkError | undefined;
9
- isLoading: boolean;
10
- onSearch: (search: string) => void;
11
- onActivate: () => void;
12
- };
13
- //# sourceMappingURL=useWorkspaceUsersSearch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWorkspaceUsersSearch.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/useWorkspaceUsersSearch.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EACH,KAAK,gBAAgB,EAMxB,MAAM,kBAAkB,CAAC;AAK1B,wBAAgB,uBAAuB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,GAAG;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,cAAc,EAAE,GAAG,SAAS,CAAC;IACpC,UAAU,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACzC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,UAAU,EAAE,MAAM,IAAI,CAAC;CAC1B,CAoDA"}