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

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 (119) hide show
  1. package/NOTICE +26793 -68204
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/index.d.ts +23 -3
  5. package/esm/index.d.ts.map +1 -1
  6. package/esm/index.js +20 -0
  7. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +1 -1
  8. package/esm/model/store/config/configSelectors.js +1 -1
  9. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +10 -3
  10. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
  11. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +24 -59
  12. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogAttribute.d.ts +13 -0
  13. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogAttribute.d.ts.map +1 -0
  14. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{components/AlertAttributeSelect.js → DefaultAlertingDialogAttribute.js} +12 -3
  15. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogComparisonOperator.d.ts +13 -0
  16. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogComparisonOperator.d.ts.map +1 -0
  17. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{components/AlertComparisonOperatorSelect.js → DefaultAlertingDialogComparisonOperator.js} +13 -4
  18. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogComparisonPeriod.d.ts +14 -0
  19. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogComparisonPeriod.d.ts.map +1 -0
  20. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{components/AlertComparisonPeriodSelect.js → DefaultAlertingDialogComparisonPeriod.js} +16 -6
  21. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogDestination.d.ts.map +1 -1
  22. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogDestination.js +2 -2
  23. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogGranularity.d.ts +12 -0
  24. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogGranularity.d.ts.map +1 -0
  25. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{components/AlertGranularitySelect.js → DefaultAlertingDialogGranularity.js} +10 -2
  26. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogMeasure.d.ts +12 -0
  27. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogMeasure.d.ts.map +1 -0
  28. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{components/AlertMeasureSelect.js → DefaultAlertingDialogMeasure.js} +11 -3
  29. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogRecipients.d.ts.map +1 -1
  30. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogRecipients.js +2 -2
  31. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogSensitivity.d.ts +12 -0
  32. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogSensitivity.d.ts.map +1 -0
  33. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{components/AlertSensitivitySelect.js → DefaultAlertingDialogSensitivity.js} +10 -2
  34. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogThreshold.d.ts +12 -0
  35. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogThreshold.d.ts.map +1 -0
  36. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{components/AlertThresholdInput.js → DefaultAlertingDialogThreshold.js} +9 -1
  37. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogTriggerInterval.d.ts +13 -0
  38. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogTriggerInterval.d.ts.map +1 -0
  39. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{components/AlertTriggerIntervalSelect.js → DefaultAlertingDialogTriggerInterval.js} +11 -2
  40. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogTriggerMode.d.ts +12 -0
  41. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogTriggerMode.d.ts.map +1 -0
  42. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{components/AlertTriggerModeSelect.js → DefaultAlertingDialogTriggerMode.js} +10 -2
  43. package/esm/presentation/automations/alerting/blocks/AlertingDialogAttribute.d.ts +16 -0
  44. package/esm/presentation/automations/alerting/blocks/AlertingDialogAttribute.d.ts.map +1 -0
  45. package/esm/presentation/automations/alerting/blocks/AlertingDialogAttribute.js +28 -0
  46. package/esm/presentation/automations/alerting/blocks/AlertingDialogComparisonOperator.d.ts +22 -0
  47. package/esm/presentation/automations/alerting/blocks/AlertingDialogComparisonOperator.d.ts.map +1 -0
  48. package/esm/presentation/automations/alerting/blocks/AlertingDialogComparisonOperator.js +31 -0
  49. package/esm/presentation/automations/alerting/blocks/AlertingDialogComparisonPeriod.d.ts +18 -0
  50. package/esm/presentation/automations/alerting/blocks/AlertingDialogComparisonPeriod.d.ts.map +1 -0
  51. package/esm/presentation/automations/alerting/blocks/AlertingDialogComparisonPeriod.js +31 -0
  52. package/esm/presentation/automations/alerting/blocks/AlertingDialogFieldLabelWithTooltip.d.ts +11 -0
  53. package/esm/presentation/automations/alerting/blocks/AlertingDialogFieldLabelWithTooltip.d.ts.map +1 -0
  54. package/esm/presentation/automations/alerting/blocks/AlertingDialogFieldLabelWithTooltip.js +15 -0
  55. package/esm/presentation/automations/alerting/blocks/AlertingDialogGranularity.d.ts +15 -0
  56. package/esm/presentation/automations/alerting/blocks/AlertingDialogGranularity.d.ts.map +1 -0
  57. package/esm/presentation/automations/alerting/blocks/AlertingDialogGranularity.js +33 -0
  58. package/esm/presentation/automations/alerting/blocks/AlertingDialogMeasure.d.ts +30 -0
  59. package/esm/presentation/automations/alerting/blocks/AlertingDialogMeasure.d.ts.map +1 -0
  60. package/esm/presentation/automations/alerting/blocks/AlertingDialogMeasure.js +39 -0
  61. package/esm/presentation/automations/alerting/blocks/AlertingDialogSensitivity.d.ts +15 -0
  62. package/esm/presentation/automations/alerting/blocks/AlertingDialogSensitivity.d.ts.map +1 -0
  63. package/esm/presentation/automations/alerting/blocks/AlertingDialogSensitivity.js +30 -0
  64. package/esm/presentation/automations/alerting/blocks/AlertingDialogThreshold.d.ts +21 -0
  65. package/esm/presentation/automations/alerting/blocks/AlertingDialogThreshold.d.ts.map +1 -0
  66. package/esm/presentation/automations/alerting/blocks/AlertingDialogThreshold.js +36 -0
  67. package/esm/presentation/automations/alerting/blocks/AlertingDialogTriggerInterval.d.ts +15 -0
  68. package/esm/presentation/automations/alerting/blocks/AlertingDialogTriggerInterval.d.ts.map +1 -0
  69. package/esm/presentation/automations/alerting/blocks/AlertingDialogTriggerInterval.js +32 -0
  70. package/esm/presentation/automations/alerting/blocks/AlertingDialogTriggerMode.d.ts +15 -0
  71. package/esm/presentation/automations/alerting/blocks/AlertingDialogTriggerMode.d.ts.map +1 -0
  72. package/esm/presentation/automations/alerting/blocks/AlertingDialogTriggerMode.js +24 -0
  73. package/esm/presentation/automations/alerting/{DefaultAlertingDialog/hooks → hooks}/useAlertThreshold.d.ts +1 -1
  74. package/esm/presentation/automations/alerting/hooks/useAlertThreshold.d.ts.map +1 -0
  75. package/esm/presentation/automations/alerting/{DefaultAlertingDialog/hooks → hooks}/useAlertThreshold.js +1 -1
  76. package/esm/presentation/automations/alerting/{DefaultAlertingDialog/hooks → hooks}/useThresholdValue.d.ts +1 -1
  77. package/esm/presentation/automations/alerting/hooks/useThresholdValue.d.ts.map +1 -0
  78. package/esm/presentation/automations/alerting/{DefaultAlertingDialog/hooks → hooks}/useThresholdValue.js +2 -2
  79. package/esm/presentation/automations/alerting/state/types.d.ts +2 -2
  80. package/esm/presentation/automations/alerting/state/types.d.ts.map +1 -1
  81. package/esm/presentation/automations/alerting/state/useAlertingDialogFieldProps.d.ts +87 -0
  82. package/esm/presentation/automations/alerting/state/useAlertingDialogFieldProps.d.ts.map +1 -0
  83. package/esm/presentation/automations/alerting/state/useAlertingDialogFieldProps.js +234 -0
  84. package/esm/presentation/automations/alerting/types.d.ts +342 -3
  85. package/esm/presentation/automations/alerting/types.d.ts.map +1 -1
  86. package/esm/presentation/automations/alerting/utils/getters.d.ts +1 -8
  87. package/esm/presentation/automations/alerting/utils/getters.d.ts.map +1 -1
  88. package/esm/presentation/automations/shared/automationFilters/components/AutomationAttributeFilter.js +1 -1
  89. package/esm/presentation/automations/shared/automationFilters/components/AutomationDateFilter.js +1 -1
  90. package/esm/presentation/automations/shared/automationFilters/components/AutomationMeasureValueFilter.js +1 -1
  91. package/esm/presentation/automations/shared/slots/AutomationDialogFormField.d.ts +13 -0
  92. package/esm/presentation/automations/shared/slots/AutomationDialogFormField.d.ts.map +1 -0
  93. package/esm/presentation/automations/{alerting/DefaultAlertingDialog/FormField.js → shared/slots/AutomationDialogFormField.js} +10 -1
  94. package/esm/presentation/automations/shared/slots/types.d.ts +23 -0
  95. package/esm/presentation/automations/shared/slots/types.d.ts.map +1 -1
  96. package/esm/sdk-ui-dashboard.d.ts +727 -6
  97. package/package.json +21 -23
  98. package/esm/presentation/automations/alerting/DefaultAlertingDialog/FormField.d.ts +0 -8
  99. package/esm/presentation/automations/alerting/DefaultAlertingDialog/FormField.d.ts.map +0 -1
  100. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.d.ts +0 -19
  101. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.d.ts.map +0 -1
  102. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonOperatorSelect.d.ts +0 -19
  103. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonOperatorSelect.d.ts.map +0 -1
  104. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.d.ts +0 -15
  105. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.d.ts.map +0 -1
  106. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertGranularitySelect.d.ts +0 -12
  107. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertGranularitySelect.d.ts.map +0 -1
  108. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertMeasureSelect.d.ts +0 -13
  109. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertMeasureSelect.d.ts.map +0 -1
  110. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertSensitivitySelect.d.ts +0 -11
  111. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertSensitivitySelect.d.ts.map +0 -1
  112. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertThresholdInput.d.ts +0 -12
  113. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertThresholdInput.d.ts.map +0 -1
  114. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertTriggerIntervalSelect.d.ts +0 -11
  115. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertTriggerIntervalSelect.d.ts.map +0 -1
  116. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertTriggerModeSelect.d.ts +0 -12
  117. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertTriggerModeSelect.d.ts.map +0 -1
  118. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertThreshold.d.ts.map +0 -1
  119. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useThresholdValue.d.ts.map +0 -1
@@ -0,0 +1,234 @@
1
+ // (C) 2026 GoodData Corporation
2
+ import { useAlertingDialogContext } from "../../contexts/AlertingDialogContext.js";
3
+ import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
4
+ import { useAlertThreshold } from "../hooks/useAlertThreshold.js";
5
+ import { getValueSuffix } from "../utils/getters.js";
6
+ import { useAlertActions } from "./AlertActionsContext.js";
7
+ import { useAlertData } from "./AlertDataContext.js";
8
+ import { useAlertDraft } from "./AlertDraftContext.js";
9
+ import { useAlertDialogValidity } from "./useAlertDialogValidity.js";
10
+ import { useAlertSelectedValues } from "./useAlertSelectedValues.js";
11
+ const OVERLAY_POSITION_TYPE = "sameAsTarget";
12
+ const CLOSE_ON_PARENT_SCROLL = true;
13
+ /**
14
+ * The exact props the default alerting dialog renders its measure field with.
15
+ *
16
+ * Throws outside the alerting dialog's state providers.
17
+ *
18
+ * @alpha
19
+ */
20
+ export function useAlertingDialogMeasureProps() {
21
+ const { supportedMeasures } = useAlertData();
22
+ const { onMeasureChange } = useAlertActions();
23
+ const { selectedMeasure } = useAlertSelectedValues();
24
+ const { canChangeMeasure } = useAlertDialogValidity();
25
+ return {
26
+ id: "alert.measure",
27
+ selectedMeasure,
28
+ onMeasureChange,
29
+ measures: supportedMeasures,
30
+ disabled: !canChangeMeasure,
31
+ overlayPositionType: OVERLAY_POSITION_TYPE,
32
+ closeOnParentScroll: CLOSE_ON_PARENT_SCROLL,
33
+ };
34
+ }
35
+ /**
36
+ * The exact props the default alerting dialog renders its attribute field with.
37
+ *
38
+ * Throws outside the alerting dialog's state providers.
39
+ *
40
+ * @alpha
41
+ */
42
+ export function useAlertingDialogAttributeProps() {
43
+ const { catalogAttributes, catalogDateDatasets } = useAutomationsContext();
44
+ const { supportedAttributes, getAttributeValues, isResultLoading } = useAlertData();
45
+ const { onAttributeChange } = useAlertActions();
46
+ const { selectedAttribute, selectedValue } = useAlertSelectedValues();
47
+ const { canChangeMeasure } = useAlertDialogValidity();
48
+ return {
49
+ id: "alert.attribute",
50
+ disabled: !canChangeMeasure,
51
+ selectedAttribute,
52
+ selectedValue,
53
+ onAttributeChange,
54
+ attributes: supportedAttributes,
55
+ catalogAttributes,
56
+ catalogDateDatasets,
57
+ getAttributeValues,
58
+ isResultLoading,
59
+ showLabel: false,
60
+ closeOnParentScroll: CLOSE_ON_PARENT_SCROLL,
61
+ };
62
+ }
63
+ /**
64
+ * The exact props the default alerting dialog renders its comparison-operator field with.
65
+ *
66
+ * `enableAnomalyDetectionAlert` is the conjunction of the `enableAnomalyDetectionAlert` and
67
+ * `canUseAiAssistant` features.
68
+ *
69
+ * Throws outside the alerting dialog's state providers.
70
+ *
71
+ * @alpha
72
+ */
73
+ export function useAlertingDialogComparisonOperatorProps() {
74
+ const { features: { enableAnomalyDetectionAlert, canUseAiAssistant }, } = useAutomationsContext();
75
+ const { onAnomalyDetectionChange, onComparisonOperatorChange, onRelativeOperatorChange } = useAlertActions();
76
+ const { selectedMeasure, selectedComparisonOperator, selectedRelativeOperator, selectedAiOperator } = useAlertSelectedValues();
77
+ return {
78
+ id: "alert.condition",
79
+ measure: selectedMeasure,
80
+ enableAnomalyDetectionAlert: enableAnomalyDetectionAlert && canUseAiAssistant,
81
+ selectedComparisonOperator,
82
+ selectedRelativeOperator,
83
+ selectedAiOperator,
84
+ onAnomalyDetectionChange,
85
+ onComparisonOperatorChange,
86
+ onRelativeOperatorChange,
87
+ overlayPositionType: OVERLAY_POSITION_TYPE,
88
+ closeOnParentScroll: CLOSE_ON_PARENT_SCROLL,
89
+ };
90
+ }
91
+ /**
92
+ * The exact props the default alerting dialog renders its threshold field with.
93
+ *
94
+ * Owns the field's state: its effect auto-computes the threshold of a new alert from the measure's
95
+ * current value and clears it for a relative operator, writing the draft. **Call it once per
96
+ * dialog** — through {@link AlertingDialogThreshold}, which is that mount in the default dialog and
97
+ * in a shell of blocks, or directly, never both. Throws outside the alerting dialog's state
98
+ * providers.
99
+ *
100
+ * @alpha
101
+ */
102
+ export function useAlertingDialogThresholdProps() {
103
+ const { alertToEdit } = useAlertingDialogContext();
104
+ const { editedAutomation } = useAlertDraft();
105
+ const { setEditedAutomation } = useAlertActions();
106
+ const { getMetricValue } = useAlertData();
107
+ const { selectedRelativeOperator, selectedMeasure, selectedAttribute, selectedValue } = useAlertSelectedValues();
108
+ const { value, onChange, onBlur, thresholdErrorMessage } = useAlertThreshold({
109
+ setEditedAutomation,
110
+ editedAutomation,
111
+ getMetricValue,
112
+ isNewAlert: !alertToEdit,
113
+ selectedRelativeOperator,
114
+ selectedMeasure,
115
+ selectedAttribute,
116
+ selectedValue,
117
+ });
118
+ return {
119
+ id: "alert.value",
120
+ value,
121
+ onChange,
122
+ onBlur,
123
+ suffix: getValueSuffix(editedAutomation?.alert),
124
+ errorMessage: thresholdErrorMessage,
125
+ };
126
+ }
127
+ /**
128
+ * The exact props the default alerting dialog renders its comparison-period field with.
129
+ *
130
+ * `onComparisonChange` closes over the selected measure (and relative operator), so it takes only
131
+ * the field's value.
132
+ *
133
+ * Throws outside the alerting dialog's state providers.
134
+ *
135
+ * @alpha
136
+ */
137
+ export function useAlertingDialogComparisonPeriodProps() {
138
+ const { editedAutomation } = useAlertDraft();
139
+ const { onComparisonTypeChange } = useAlertActions();
140
+ const { selectedMeasure, selectedRelativeOperator, selectedComparator } = useAlertSelectedValues();
141
+ return {
142
+ id: "alert.comparison",
143
+ alert: editedAutomation,
144
+ measure: selectedMeasure,
145
+ selectedComparison: selectedComparator?.comparator,
146
+ selectedGranularity: selectedComparator?.granularity,
147
+ onComparisonChange: (comparisonType, granularity) => {
148
+ onComparisonTypeChange(selectedMeasure, selectedRelativeOperator, comparisonType, granularity);
149
+ },
150
+ overlayPositionType: OVERLAY_POSITION_TYPE,
151
+ closeOnParentScroll: CLOSE_ON_PARENT_SCROLL,
152
+ };
153
+ }
154
+ /**
155
+ * The exact props the default alerting dialog renders its sensitivity field with.
156
+ *
157
+ * Throws outside the alerting dialog's state providers.
158
+ *
159
+ * @alpha
160
+ */
161
+ export function useAlertingDialogSensitivityProps() {
162
+ const { onSensitivityChange } = useAlertActions();
163
+ const { selectedSensitivity } = useAlertSelectedValues();
164
+ return {
165
+ id: "alert.sensitivity",
166
+ selectedSensitivity,
167
+ onSensitivityChange,
168
+ overlayPositionType: OVERLAY_POSITION_TYPE,
169
+ closeOnParentScroll: CLOSE_ON_PARENT_SCROLL,
170
+ };
171
+ }
172
+ /**
173
+ * The exact props the default alerting dialog renders its granularity field with.
174
+ *
175
+ * `onGranularityChange` closes over the selected measure (and relative operator), so it takes only
176
+ * the field's value.
177
+ *
178
+ * Throws outside the alerting dialog's state providers.
179
+ *
180
+ * @alpha
181
+ */
182
+ export function useAlertingDialogGranularityProps() {
183
+ const { allowHourlyRecurrence } = useAutomationsContext();
184
+ const { onGranularityChange } = useAlertActions();
185
+ const { selectedMeasure, selectedGranularity } = useAlertSelectedValues();
186
+ return {
187
+ id: "alert.granularity",
188
+ allowHourlyRecurrence,
189
+ selectedGranularity,
190
+ onGranularityChange: (granularity) => {
191
+ onGranularityChange(selectedMeasure, granularity);
192
+ },
193
+ overlayPositionType: OVERLAY_POSITION_TYPE,
194
+ closeOnParentScroll: CLOSE_ON_PARENT_SCROLL,
195
+ };
196
+ }
197
+ /**
198
+ * The exact props the default alerting dialog renders its trigger-mode field with.
199
+ *
200
+ * Throws outside the alerting dialog's state providers.
201
+ *
202
+ * @alpha
203
+ */
204
+ export function useAlertingDialogTriggerModeProps() {
205
+ const { features: { enableAlertOncePerInterval }, } = useAutomationsContext();
206
+ const { editedAutomation } = useAlertDraft();
207
+ const { onTriggerModeChange } = useAlertActions();
208
+ return {
209
+ id: "alert.trigger",
210
+ selectedTriggerMode: editedAutomation?.alert?.trigger.mode ?? "ALWAYS",
211
+ onTriggerModeChange,
212
+ overlayPositionType: OVERLAY_POSITION_TYPE,
213
+ closeOnParentScroll: CLOSE_ON_PARENT_SCROLL,
214
+ enableAlertOncePerInterval,
215
+ };
216
+ }
217
+ /**
218
+ * The exact props the default alerting dialog renders its trigger-interval field with.
219
+ *
220
+ * Throws outside the alerting dialog's state providers.
221
+ *
222
+ * @alpha
223
+ */
224
+ export function useAlertingDialogTriggerIntervalProps() {
225
+ const { editedAutomation } = useAlertDraft();
226
+ const { onTriggerIntervalChange } = useAlertActions();
227
+ return {
228
+ id: "alert.interval",
229
+ selectedTriggerInterval: editedAutomation?.alert?.trigger.interval ?? "DAY",
230
+ onTriggerIntervalChange,
231
+ overlayPositionType: OVERLAY_POSITION_TYPE,
232
+ closeOnParentScroll: CLOSE_ON_PARENT_SCROLL,
233
+ };
234
+ }
@@ -1,8 +1,10 @@
1
- import { type ComponentType, type ReactNode, type Ref } from "react";
2
- import { type DateAttributeGranularity, type IAttribute, type IAutomationMetadataObject, type IDataSetMetadataObject, type IInsight, type IMeasure, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type IWidget } from "@gooddata/sdk-model";
1
+ import { type ComponentType, type FocusEvent, type ReactNode, type Ref } from "react";
2
+ import { type DateAttributeGranularity, type IAlertAnomalyDetectionGranularity, type IAlertAnomalyDetectionSensitivity, type IAlertComparisonOperator, type IAlertRelativeArithmeticOperator, type IAlertRelativeOperator, type IAlertTriggerInterval, type IAlertTriggerMode, type IAttribute, type IAttributeMetadataObject, type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition, type ICatalogAttribute, type ICatalogDateDataset, type IDataSetMetadataObject, type IInsight, type IMeasure, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type IWidget } from "@gooddata/sdk-model";
3
3
  import { type GoodDataSdkError } from "@gooddata/sdk-ui";
4
- import { type ISlotProps } from "@gooddata/sdk-ui-kit";
4
+ import type { AI_OPERATOR, AI_OPERATORS } from "@gooddata/sdk-ui-ext";
5
+ import { type ISlotProps, type OverlayPositionType } from "@gooddata/sdk-ui-kit";
5
6
  import { type IAutomationDialogActionBarProps, type IAutomationDialogDestinationProps, type IAutomationDialogFiltersProps, type IAutomationDialogHeaderProps, type IAutomationDialogRecipientsProps } from "../shared/slots/types.js";
7
+ import { type AttributeValue } from "./hooks/useAttributeValuesFromExecResults.js";
6
8
  /**
7
9
  * @alpha
8
10
  */
@@ -116,6 +118,337 @@ export interface IAlertingDialogFiltersProps extends IAutomationDialogFiltersPro
116
118
  */
117
119
  disableDateFilters: boolean;
118
120
  }
121
+ /**
122
+ * Props of the default alerting dialog's measure field (the "Metric" row).
123
+ *
124
+ * @alpha
125
+ */
126
+ export interface IAlertingDialogMeasureProps {
127
+ /**
128
+ * Id of the dropdown button; the form row's label points at it.
129
+ */
130
+ id?: string;
131
+ /**
132
+ * Disables the select. The default dialog disables it when the dialog has no insight to pick measures from.
133
+ */
134
+ disabled?: boolean;
135
+ /**
136
+ * The measure the condition targets; undefined shows the placeholder.
137
+ */
138
+ selectedMeasure: AlertMetric | undefined;
139
+ /**
140
+ * Called with the picked measure.
141
+ */
142
+ onMeasureChange: (measure: AlertMetric) => void;
143
+ /**
144
+ * The insight's measures an alert can be built on.
145
+ */
146
+ measures: AlertMetric[];
147
+ /**
148
+ * Positioning of the dropdown overlay; the default dialog uses `"sameAsTarget"`.
149
+ */
150
+ overlayPositionType?: OverlayPositionType;
151
+ /**
152
+ * Closes the dropdown when an ancestor scrolls; the default dialog sets it.
153
+ */
154
+ closeOnParentScroll?: boolean;
155
+ }
156
+ /**
157
+ * Props of the default alerting dialog's attribute field (the "For" row).
158
+ *
159
+ * @alpha
160
+ */
161
+ export interface IAlertingDialogAttributeProps {
162
+ /**
163
+ * Id of the dropdown button; the form row's label points at it.
164
+ */
165
+ id: string;
166
+ /**
167
+ * Disables the select. The default dialog disables it when the dialog has no insight to pick measures from.
168
+ */
169
+ disabled?: boolean;
170
+ /**
171
+ * The attribute the condition is sliced by; undefined for the whole measure.
172
+ */
173
+ selectedAttribute: AlertAttribute | undefined;
174
+ /**
175
+ * The attribute element the condition is sliced to; null for the empty value, undefined for all values.
176
+ */
177
+ selectedValue: string | null | undefined;
178
+ /**
179
+ * Called with the picked attribute and value; `(undefined, undefined)` clears the slice.
180
+ */
181
+ onAttributeChange: (attribute: AlertAttribute | undefined, value: AttributeValue | undefined) => void;
182
+ /**
183
+ * The insight's attributes; the select offers the non-date ones and renders nothing when there is none.
184
+ */
185
+ attributes: AlertAttribute[];
186
+ /**
187
+ * The workspace catalog's attributes, to resolve titles and display forms.
188
+ */
189
+ catalogAttributes: ICatalogAttribute[];
190
+ /**
191
+ * The workspace catalog's date datasets, to resolve date attributes.
192
+ */
193
+ catalogDateDatasets: ICatalogDateDataset[];
194
+ /**
195
+ * Distinct values of an attribute in the widget's execution result.
196
+ */
197
+ getAttributeValues: (attribute: IAttributeMetadataObject) => AttributeValue[];
198
+ /**
199
+ * Disables the select while the execution result is loading.
200
+ */
201
+ isResultLoading?: boolean;
202
+ /**
203
+ * Renders the select's own "For" label above the control. The default dialog passes false — the
204
+ * form row carries the label.
205
+ */
206
+ showLabel?: boolean;
207
+ /**
208
+ * Closes the dropdown when an ancestor scrolls; the default dialog sets it.
209
+ */
210
+ closeOnParentScroll?: boolean;
211
+ }
212
+ /**
213
+ * Props of the default alerting dialog's comparison-operator field (the "Condition" row).
214
+ *
215
+ * @alpha
216
+ */
217
+ export interface IAlertingDialogComparisonOperatorProps {
218
+ /**
219
+ * Id of the dropdown button; the form row's label points at it.
220
+ */
221
+ id: string;
222
+ /**
223
+ * The measure the condition targets; the select renders nothing without one.
224
+ */
225
+ measure: AlertMetric | undefined;
226
+ /**
227
+ * Offers the anomaly-detection operators. The default dialog passes the conjunction of the
228
+ * `enableAnomalyDetectionAlert` and `canUseAiAssistant` features; pass false to hide those
229
+ * options.
230
+ */
231
+ enableAnomalyDetectionAlert: boolean;
232
+ /**
233
+ * The operator of a fixed-threshold condition, when that is the condition type.
234
+ */
235
+ selectedComparisonOperator: IAlertComparisonOperator | undefined;
236
+ /**
237
+ * The relative and arithmetic operators of a relative condition, when that is the condition type.
238
+ */
239
+ selectedRelativeOperator: [IAlertRelativeOperator, IAlertRelativeArithmeticOperator] | undefined;
240
+ /**
241
+ * The operator id of an anomaly-detection condition, when that is the condition type.
242
+ */
243
+ selectedAiOperator: AlertAiOperator | undefined;
244
+ /**
245
+ * Called when a fixed-threshold operator is picked.
246
+ */
247
+ onComparisonOperatorChange: (measure: AlertMetric, comparisonOperator: IAlertComparisonOperator) => void;
248
+ /**
249
+ * Called when the anomaly-detection operator is picked.
250
+ */
251
+ onAnomalyDetectionChange: (measure: AlertMetric) => void;
252
+ /**
253
+ * Called when a relative (change / difference) operator is picked.
254
+ */
255
+ onRelativeOperatorChange: (measure: AlertMetric, relativeOperator: IAlertRelativeOperator, arithmeticOperator: IAlertRelativeArithmeticOperator) => void;
256
+ /**
257
+ * Positioning of the dropdown overlay; the default dialog uses `"sameAsTarget"`.
258
+ */
259
+ overlayPositionType?: OverlayPositionType;
260
+ /**
261
+ * Closes the dropdown when an ancestor scrolls; the default dialog sets it.
262
+ */
263
+ closeOnParentScroll?: boolean;
264
+ }
265
+ /**
266
+ * Props of the default alerting dialog's threshold field (the "Threshold" row).
267
+ *
268
+ * @alpha
269
+ */
270
+ export interface IAlertingDialogThresholdProps {
271
+ /**
272
+ * Id of the input; the form row's label and the error message point at it.
273
+ */
274
+ id: string;
275
+ /**
276
+ * The threshold shown; undefined for an empty input.
277
+ */
278
+ value: number | undefined;
279
+ /**
280
+ * Called with the raw input value on every keystroke.
281
+ */
282
+ onChange: (value: string | number) => void;
283
+ /**
284
+ * Called on blur; the default dialog rounds the value to the measure's format here.
285
+ */
286
+ onBlur: (event: FocusEvent<HTMLInputElement>) => void;
287
+ /**
288
+ * Unit shown after the input — `"%"` for a change condition.
289
+ */
290
+ suffix?: string;
291
+ /**
292
+ * Validation message shown under the input; undefined when there is none.
293
+ */
294
+ errorMessage?: string;
295
+ }
296
+ /**
297
+ * Props of the default alerting dialog's comparison-period field (the "Compared to" row).
298
+ *
299
+ * @alpha
300
+ */
301
+ export interface IAlertingDialogComparisonPeriodProps {
302
+ /**
303
+ * Id of the dropdown button; the form row's label points at it.
304
+ */
305
+ id: string;
306
+ /**
307
+ * The alert draft; the select renders nothing unless its condition is a change or difference.
308
+ */
309
+ alert: IAutomationMetadataObjectDefinition | undefined;
310
+ /**
311
+ * The measure the condition targets, whose comparators are the options; with a single
312
+ * comparator the select renders it as static text.
313
+ */
314
+ measure: AlertMetric | undefined;
315
+ /**
316
+ * The selected period comparison.
317
+ */
318
+ selectedComparison?: AlertMetricComparatorType;
319
+ /**
320
+ * The selected granularity of the period shift.
321
+ */
322
+ selectedGranularity?: DateAttributeGranularity;
323
+ /**
324
+ * Called with the picked comparison and its granularity.
325
+ */
326
+ onComparisonChange: (comparison: AlertMetricComparatorType, granularity?: DateAttributeGranularity) => void;
327
+ /**
328
+ * Positioning of the dropdown overlay; the default dialog uses `"sameAsTarget"`.
329
+ */
330
+ overlayPositionType?: OverlayPositionType;
331
+ /**
332
+ * Closes the dropdown when an ancestor scrolls; the default dialog sets it.
333
+ */
334
+ closeOnParentScroll?: boolean;
335
+ }
336
+ /**
337
+ * Props of the default alerting dialog's sensitivity field (anomaly detection).
338
+ *
339
+ * @alpha
340
+ */
341
+ export interface IAlertingDialogSensitivityProps {
342
+ /**
343
+ * Id of the dropdown button; the form row's label points at it.
344
+ */
345
+ id: string;
346
+ /**
347
+ * The anomaly-detection sensitivity; undefined renders as `"MEDIUM"`.
348
+ */
349
+ selectedSensitivity: IAlertAnomalyDetectionSensitivity | undefined;
350
+ /**
351
+ * Called with the picked sensitivity.
352
+ */
353
+ onSensitivityChange: (sensitivity: IAlertAnomalyDetectionSensitivity) => void;
354
+ /**
355
+ * Positioning of the dropdown overlay; the default dialog uses `"sameAsTarget"`.
356
+ */
357
+ overlayPositionType?: OverlayPositionType;
358
+ /**
359
+ * Closes the dropdown when an ancestor scrolls; the default dialog sets it.
360
+ */
361
+ closeOnParentScroll?: boolean;
362
+ }
363
+ /**
364
+ * Props of the default alerting dialog's granularity field (anomaly detection).
365
+ *
366
+ * @alpha
367
+ */
368
+ export interface IAlertingDialogGranularityProps {
369
+ /**
370
+ * Id of the dropdown button; the form row's label points at it.
371
+ */
372
+ id: string;
373
+ /**
374
+ * Offers the `"HOUR"` granularity.
375
+ */
376
+ allowHourlyRecurrence: boolean;
377
+ /**
378
+ * The anomaly-detection granularity; undefined renders as `"WEEK"`.
379
+ */
380
+ selectedGranularity: IAlertAnomalyDetectionGranularity | undefined;
381
+ /**
382
+ * Called with the picked granularity.
383
+ */
384
+ onGranularityChange: (granularity: IAlertAnomalyDetectionGranularity) => void;
385
+ /**
386
+ * Positioning of the dropdown overlay; the default dialog uses `"sameAsTarget"`.
387
+ */
388
+ overlayPositionType?: OverlayPositionType;
389
+ /**
390
+ * Closes the dropdown when an ancestor scrolls; the default dialog sets it.
391
+ */
392
+ closeOnParentScroll?: boolean;
393
+ }
394
+ /**
395
+ * Props of the default alerting dialog's trigger-mode field (the "Trigger" row).
396
+ *
397
+ * @alpha
398
+ */
399
+ export interface IAlertingDialogTriggerModeProps {
400
+ /**
401
+ * Id of the dropdown button; the form row's label points at it.
402
+ */
403
+ id: string;
404
+ /**
405
+ * When the alert fires: `"ALWAYS"`, `"ONCE"` or `"ONCE_PER_INTERVAL"`.
406
+ */
407
+ selectedTriggerMode: IAlertTriggerMode;
408
+ /**
409
+ * Called with the picked mode.
410
+ */
411
+ onTriggerModeChange: (triggerMode: IAlertTriggerMode) => void;
412
+ /**
413
+ * Positioning of the dropdown overlay; the default dialog uses `"sameAsTarget"`.
414
+ */
415
+ overlayPositionType?: OverlayPositionType;
416
+ /**
417
+ * Closes the dropdown when an ancestor scrolls; the default dialog sets it.
418
+ */
419
+ closeOnParentScroll?: boolean;
420
+ /**
421
+ * Offers `"ONCE_PER_INTERVAL"`; the default dialog passes the feature flag.
422
+ */
423
+ enableAlertOncePerInterval?: boolean;
424
+ }
425
+ /**
426
+ * Props of the default alerting dialog's trigger-interval field (the "Interval" row).
427
+ *
428
+ * @alpha
429
+ */
430
+ export interface IAlertingDialogTriggerIntervalProps {
431
+ /**
432
+ * Id of the dropdown button; the form row's label points at it.
433
+ */
434
+ id: string;
435
+ /**
436
+ * The interval of a `"ONCE_PER_INTERVAL"` trigger.
437
+ */
438
+ selectedTriggerInterval: IAlertTriggerInterval;
439
+ /**
440
+ * Called with the picked interval.
441
+ */
442
+ onTriggerIntervalChange: (triggerInterval: IAlertTriggerInterval) => void;
443
+ /**
444
+ * Positioning of the dropdown overlay; the default dialog uses `"sameAsTarget"`.
445
+ */
446
+ overlayPositionType?: OverlayPositionType;
447
+ /**
448
+ * Closes the dropdown when an ancestor scrolls; the default dialog sets it.
449
+ */
450
+ closeOnParentScroll?: boolean;
451
+ }
119
452
  /**
120
453
  * Section-level overrides of the default alerting dialog.
121
454
  *
@@ -412,4 +745,10 @@ export type AlertAttribute = {
412
745
  */
413
746
  type: "dateAttribute" | "attribute";
414
747
  };
748
+ /**
749
+ * The operator id of an anomaly-detection condition (`"AI.ANOMALY_DETECTION"`).
750
+ *
751
+ * @alpha
752
+ */
753
+ export type AlertAiOperator = `${typeof AI_OPERATOR}.${typeof AI_OPERATORS.ANOMALY_DETECTION}`;
415
754
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/alerting/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EACf,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,OAAO,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EACH,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KA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AAG;IAChC;;OAEG;IACH,OAAO,EAAE,QAAQ,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,UAAU,EAAE,yBAAyB,CAAC;IACtC;;OAEG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAC;CAC1C,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB;;OAEG;IACH,OAAO,EAAE,QAAQ,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,qBAAqB,EAAE,CAAC;CACxC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB;;OAEG;IACH,SAAS,EAAE,UAAU,CAAC;IACtB;;OAEG;IACH,IAAI,EAAE,eAAe,GAAG,WAAW,CAAC;CACvC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/alerting/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAEtF,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,OAAO,EACf,MAAM,qBAAqB,CAAC;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;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB;;OAEG;IACH,OAAO,EAAE,QAAQ,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,qBAAqB,EAAE,CAAC;CACxC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB;;OAEG;IACH,SAAS,EAAE,UAAU,CAAC;IACtB;;OAEG;IACH,IAAI,EAAE,eAAe,GAAG,WAAW,CAAC;CACvC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,GAAG,OAAO,WAAW,IAAI,OAAO,YAAY,CAAC,iBAAiB,EAAE,CAAC"}
@@ -1,8 +1,7 @@
1
1
  import { type IntlShape } from "react-intl";
2
2
  import { type IExecutionResult } from "@gooddata/sdk-backend-spi";
3
3
  import { type DateAttributeGranularity, type IAlertAnomalyDetectionGranularity, type IAlertAnomalyDetectionSensitivity, type IAlertComparisonOperator, type IAlertRelativeArithmeticOperator, type IAlertRelativeOperator, type IAttribute, type IAttributeMetadataObject, type IAutomationAlert, type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition, type ICatalogAttribute, type ICatalogDateAttribute, type ICatalogDateDataset, type IFilter, type IMeasure, type ISeparators, type ObjRef } from "@gooddata/sdk-model";
4
- import { AI_OPERATOR, AI_OPERATORS } from "@gooddata/sdk-ui-ext";
5
- import { type AlertAttribute, type AlertMetric, type AlertMetricComparator } from "../types.js";
4
+ import { type AlertAiOperator, type AlertAttribute, type AlertMetric, type AlertMetricComparator } from "../types.js";
6
5
  /**
7
6
  * Number formats of the widget's measures keyed by measure local identifier, read from the
8
7
  * execution result.
@@ -12,12 +11,6 @@ import { type AlertAttribute, type AlertMetric, type AlertMetricComparator } fro
12
11
  export type IMeasureFormatMap = {
13
12
  [key: string]: string;
14
13
  };
15
- /**
16
- * The operator id of an anomaly-detection alert condition.
17
- *
18
- * @alpha
19
- */
20
- export type AlertAiOperator = `${typeof AI_OPERATOR}.${typeof AI_OPERATORS.ANOMALY_DETECTION}`;
21
14
  /**
22
15
  * @internal
23
16
  */
@@ -1 +1 @@
1
- {"version":3,"file":"getters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/utils/getters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,OAAO,EACZ,KAAK,QAAQ,EAEb,KAAK,WAAW,EAChB,KAAK,MAAM,EAYd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,WAAW,EACX,YAAY,EAGf,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAMhG;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAE1D;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,GAAG,OAAO,WAAW,IAAI,OAAO,YAAY,CAAC,iBAAiB,EAAE,CAAC;AAE/F;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,QAAQ,GAAG,SAAS,EAAE,gBAAgB,GAAE,iBAAsB,UAavG;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CACzC,UA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AAE,CAAC,MAAM,EAAE,wBAAwB,CAAC,EAAE,EAC7D,OAAO,EAAE,mBAAmB,2BAW/B;AAiDD;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,UAAU,EAAE,gBAAgB,GAAG,SAAS,GAAG,iBAAiB,CAsB1G;AAED,wBAAgB,cAAc,CAC1B,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,WAAW,EAAE,EACvB,KAAK,CAAC,EAAE,yBAAyB,EACjC,UAAU,CAAC,EAAE,WAAW,GACzB,MAAM,CAYR;AAED,wBAAgB,WAAW,CACvB,IAAI,EAAE,SAAS,EACf,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,yBAAyB,EAChC,UAAU,CAAC,EAAE,WAAW,GACzB,MAAM,CAQR"}
1
+ {"version":3,"file":"getters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/utils/getters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,OAAO,EACZ,KAAK,QAAQ,EAEb,KAAK,WAAW,EAChB,KAAK,MAAM,EAYd,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC7B,MAAM,aAAa,CAAC;AAMrB;;;;;GAKG;AACH,MAAM,MAAM,iB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EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;;;;cAkB3C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,qBAAqB,GAAG,iBAAiB,EACnF,UAAU,EAAE,CAAC,EAAE,EACf,SAAS,EAAE,UAAU,iBAUxB;AAED,wBAAgB,mBAAmB,CAC/B,uBAAuB,EAAE,CAAC,MAAM,EAAE,wBAAwB,CAAC,EAAE,EAC7D,OAAO,EAAE,mBAAmB,2BAW/B;AAiDD;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,UAAU,EAAE,gBAAgB,GAAG,SAAS,GAAG,iBAAiB,CAsB1G;AAED,wBAAgB,cAAc,CAC1B,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,WAAW,EAAE,EACvB,KAAK,CAAC,EAAE,yBAAyB,EACjC,UAAU,CAAC,EAAE,WAAW,GACzB,MAAM,CAYR;AAED,wBAAgB,WAAW,CACvB,IAAI,EAAE,SAAS,EACf,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,yBAAyB,EAChC,UAAU,CAAC,EAAE,WAAW,GACzB,MAAM,CAQR"}
@@ -56,7 +56,7 @@ function AutomationAttributeFilterDropdownButtonComponent(props) {
56
56
  width: "100%",
57
57
  height: "100%",
58
58
  minWidth: 0,
59
- } })), renderDeleteButton: (button) => (_jsx(UiTooltip, { id: attributeFilterDeleteTooltipId, arrowPlacement: "top-start", content: deleteTooltipContent, triggerBy: ["hover", "focus"], anchor: button, anchorWrapperStyles: {
59
+ } })), renderActionButton: (button) => (_jsx(UiTooltip, { id: attributeFilterDeleteTooltipId, arrowPlacement: "top-start", content: deleteTooltipContent, triggerBy: ["hover", "focus"], anchor: button, anchorWrapperStyles: {
60
60
  height: "100%",
61
61
  } })) }));
62
62
  }