@gooddata/sdk-ui-dashboard 10.15.0-alpha.9 → 10.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +133 -21
- package/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/__version.js.map +1 -1
- package/esm/model/commandHandlers/drill/common/intersectionUtils.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/common/intersectionUtils.js +2 -2
- package/esm/model/commandHandlers/drill/common/intersectionUtils.js.map +1 -1
- package/esm/model/commandHandlers/drill/crossFilteringHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/crossFilteringHandler.js +4 -2
- package/esm/model/commandHandlers/drill/crossFilteringHandler.js.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +4 -3
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js.map +1 -1
- package/esm/model/queryServices/queryWidgetFilters.js +2 -2
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.d.ts +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.d.ts +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.js +2 -2
- package/esm/model/store/_infra/generators.d.ts +3 -0
- package/esm/model/store/_infra/generators.d.ts.map +1 -0
- package/esm/model/store/_infra/generators.js +6 -0
- package/esm/model/store/_infra/generators.js.map +1 -0
- package/esm/model/store/config/configSelectors.d.ts +4 -0
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +7 -1
- package/esm/model/store/config/configSelectors.js.map +1 -1
- package/esm/model/store/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/filterContext/filterContextReducers.js +5 -5
- package/esm/model/store/filterContext/filterContextReducers.js.map +1 -1
- package/esm/model/store/index.d.ts +2 -2
- package/esm/model/store/index.d.ts.map +1 -1
- package/esm/model/store/index.js +2 -2
- package/esm/model/store/index.js.map +1 -1
- package/esm/model/store/layout/layoutSelectors.d.ts +11 -1
- package/esm/model/store/layout/layoutSelectors.d.ts.map +1 -1
- package/esm/model/store/layout/layoutSelectors.js +19 -0
- package/esm/model/store/layout/layoutSelectors.js.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +2 -2
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +2 -2
- package/esm/presentation/localization/bundles/en-US.json +62 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonPeriodSelect.d.ts +14 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonPeriodSelect.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonPeriodSelect.js +92 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonPeriodSelect.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +2 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +32 -25
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAlertValidation.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAlertValidation.js +3 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAlertValidation.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +2 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +8 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js +5 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.js +5 -8
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.d.ts +10 -5
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.js +26 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/granularity.d.ts +4 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/granularity.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/granularity.js +22 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/granularity.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/items.d.ts +3 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/items.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/items.js +203 -8
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/items.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.d.ts +9 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.js +71 -22
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlerts.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js +3 -3
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js.map +1 -1
- package/esm/presentation/widget/insight/types.d.ts +3 -1
- package/esm/presentation/widget/insight/types.d.ts.map +1 -1
- package/esm/presentation/widget/insight/types.js.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +18 -1
- package/package.json +15 -15
- package/styles/css/alerting.css +25 -6
- package/styles/css/alerting.css.map +1 -1
- package/styles/css/main.css +24 -5
- package/styles/css/main.css.map +1 -1
- package/styles/scss/alerting.scss +7 -3
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2022-2024 GoodData Corporation
|
|
2
|
-
import { isArithmeticMeasure, } from "@gooddata/sdk-model";
|
|
2
|
+
import { isArithmeticMeasure, isRelativeDateFilter, objRefToString, } from "@gooddata/sdk-model";
|
|
3
3
|
import { AlertMetricComparatorType, } from "../../../types.js";
|
|
4
4
|
import { ARITHMETIC_OPERATORS, COMPARISON_OPERATORS, RELATIVE_OPERATORS } from "../constants.js";
|
|
5
5
|
import { getAttributeRelatedFilterInfo, getMeasureFormat, getMeasureTitle } from "./getters.js";
|
|
@@ -23,14 +23,16 @@ export function transformAlertByMetric(metrics, alert, measure, catalogMeasures)
|
|
|
23
23
|
...transformRelativeCondition(measure, periodMeasure, catalogMeasures),
|
|
24
24
|
},
|
|
25
25
|
};
|
|
26
|
+
const { execution, metadata } = transformAlertExecutionByMetric(metrics, alert, condition, measure, periodMeasure);
|
|
26
27
|
return {
|
|
27
28
|
...alert,
|
|
28
29
|
title: getMeasureTitle(measure.measure) ?? "",
|
|
29
30
|
alert: {
|
|
30
31
|
...alert.alert,
|
|
31
32
|
condition,
|
|
32
|
-
execution
|
|
33
|
+
execution,
|
|
33
34
|
},
|
|
35
|
+
metadata,
|
|
34
36
|
};
|
|
35
37
|
}
|
|
36
38
|
const cond = transformToComparisonCondition(alert.alert.condition);
|
|
@@ -42,14 +44,16 @@ export function transformAlertByMetric(metrics, alert, measure, catalogMeasures)
|
|
|
42
44
|
title: getMeasureTitle(measure.measure),
|
|
43
45
|
},
|
|
44
46
|
};
|
|
47
|
+
const { execution, metadata } = transformAlertExecutionByMetric(metrics, alert, condition, measure, undefined);
|
|
45
48
|
return {
|
|
46
49
|
...alert,
|
|
47
50
|
title: getMeasureTitle(measure.measure) ?? "",
|
|
48
51
|
alert: {
|
|
49
52
|
...alert.alert,
|
|
50
53
|
condition,
|
|
51
|
-
execution
|
|
54
|
+
execution,
|
|
52
55
|
},
|
|
56
|
+
metadata,
|
|
53
57
|
};
|
|
54
58
|
}
|
|
55
59
|
/**
|
|
@@ -116,13 +120,15 @@ export function transformAlertByComparisonOperator(metrics, alert, measure, comp
|
|
|
116
120
|
...cond,
|
|
117
121
|
operator: comparisonOperator,
|
|
118
122
|
};
|
|
123
|
+
const { execution, metadata } = transformAlertExecutionByMetric(metrics, alert, condition, measure, undefined);
|
|
119
124
|
return {
|
|
120
125
|
...alert,
|
|
121
126
|
alert: {
|
|
122
127
|
...alert.alert,
|
|
123
128
|
condition,
|
|
124
|
-
execution
|
|
129
|
+
execution,
|
|
125
130
|
},
|
|
131
|
+
metadata,
|
|
126
132
|
};
|
|
127
133
|
}
|
|
128
134
|
/**
|
|
@@ -133,27 +139,29 @@ export function transformAlertByComparisonOperator(metrics, alert, measure, comp
|
|
|
133
139
|
* @param relativeOperator - selected relative operator
|
|
134
140
|
* @param arithmeticOperator - selected arithmetic operator
|
|
135
141
|
* @param catalogMeasures - all available measures from catalog
|
|
142
|
+
* @param comparatorType - selected comparator type
|
|
136
143
|
*/
|
|
137
|
-
export function transformAlertByRelativeOperator(metrics, alert, measure, relativeOperator, arithmeticOperator, catalogMeasures) {
|
|
138
|
-
const periodMeasure = measure.comparators.
|
|
139
|
-
c.comparator === AlertMetricComparatorType.SamePeriodPreviousYear);
|
|
144
|
+
export function transformAlertByRelativeOperator(metrics, alert, measure, relativeOperator, arithmeticOperator, catalogMeasures, comparatorType) {
|
|
145
|
+
const periodMeasure = measure.comparators.filter((c) => comparatorType !== undefined ? c.comparator === comparatorType : true);
|
|
140
146
|
const cond = transformToRelativeCondition(alert.alert.condition);
|
|
141
147
|
const condition = {
|
|
142
148
|
...cond,
|
|
143
149
|
measure: {
|
|
144
150
|
...cond.measure,
|
|
145
151
|
operator: arithmeticOperator,
|
|
146
|
-
...transformRelativeCondition(measure, periodMeasure, catalogMeasures),
|
|
152
|
+
...transformRelativeCondition(measure, periodMeasure[0], catalogMeasures),
|
|
147
153
|
},
|
|
148
154
|
operator: relativeOperator,
|
|
149
155
|
};
|
|
156
|
+
const { execution, metadata } = transformAlertExecutionByMetric(metrics, alert, condition, measure, periodMeasure[0]);
|
|
150
157
|
return {
|
|
151
158
|
...alert,
|
|
152
159
|
alert: {
|
|
153
160
|
...alert.alert,
|
|
154
161
|
condition,
|
|
155
|
-
execution
|
|
162
|
+
execution,
|
|
156
163
|
},
|
|
164
|
+
metadata,
|
|
157
165
|
};
|
|
158
166
|
}
|
|
159
167
|
/**
|
|
@@ -201,27 +209,68 @@ export function transformAlertByDestination(alert, notificationChannel, recipien
|
|
|
201
209
|
/**
|
|
202
210
|
* This function transforms alert execution by metric. It changes measures and auxMeasures in execution based on selected metric.
|
|
203
211
|
* @param metrics - all available metrics
|
|
212
|
+
* @param alert - alert
|
|
204
213
|
* @param condition - alert condition
|
|
205
|
-
* @param execution - alert execution
|
|
206
214
|
* @param measure - selected metric
|
|
215
|
+
* @param periodMeasure - alert comparison
|
|
207
216
|
*/
|
|
208
|
-
export function transformAlertExecutionByMetric(metrics, condition,
|
|
209
|
-
const
|
|
210
|
-
|
|
217
|
+
export function transformAlertExecutionByMetric(metrics, alert, condition, measure, periodMeasure) {
|
|
218
|
+
const execution = alert.alert?.execution;
|
|
219
|
+
// Remove all filters that are create for need of alert
|
|
220
|
+
const localFilters = alert.metadata?.filters ?? [];
|
|
221
|
+
const originalFilters = execution?.filters.filter((filter) => {
|
|
222
|
+
if (isRelativeDateFilter(filter)) {
|
|
223
|
+
return !localFilters.includes(filter.relativeDateFilter.localIdentifier ?? "");
|
|
224
|
+
}
|
|
225
|
+
return true;
|
|
226
|
+
}) ?? [];
|
|
211
227
|
if (condition.type === "relative" && periodMeasure) {
|
|
228
|
+
const addedFilters = [];
|
|
229
|
+
// Add filter for period measure only if can be defined
|
|
230
|
+
// For example headline not used this at all
|
|
231
|
+
if (periodMeasure.dataset && periodMeasure.granularity) {
|
|
232
|
+
const localIdentifier = `relativeDateFilter_${objRefToString(periodMeasure.dataset.ref)}_${periodMeasure.granularity}`;
|
|
233
|
+
const filter = {
|
|
234
|
+
relativeDateFilter: {
|
|
235
|
+
from: 0,
|
|
236
|
+
to: 0,
|
|
237
|
+
dataSet: periodMeasure.dataset.ref,
|
|
238
|
+
granularity: periodMeasure.granularity,
|
|
239
|
+
localIdentifier,
|
|
240
|
+
},
|
|
241
|
+
};
|
|
242
|
+
originalFilters.push(filter);
|
|
243
|
+
addedFilters.push(localIdentifier);
|
|
244
|
+
}
|
|
212
245
|
return {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
...
|
|
217
|
-
|
|
218
|
-
|
|
246
|
+
execution: {
|
|
247
|
+
attributes: [],
|
|
248
|
+
...execution,
|
|
249
|
+
filters: [...originalFilters],
|
|
250
|
+
measures: [measure.measure, periodMeasure.measure],
|
|
251
|
+
auxMeasures: [
|
|
252
|
+
...collectAllRelatedMeasures(metrics, measure.measure),
|
|
253
|
+
...collectAllRelatedMeasures(metrics, periodMeasure.measure),
|
|
254
|
+
],
|
|
255
|
+
},
|
|
256
|
+
metadata: {
|
|
257
|
+
...alert.metadata,
|
|
258
|
+
filters: addedFilters.length ? addedFilters : undefined,
|
|
259
|
+
},
|
|
219
260
|
};
|
|
220
261
|
}
|
|
221
262
|
return {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
263
|
+
execution: {
|
|
264
|
+
attributes: [],
|
|
265
|
+
...execution,
|
|
266
|
+
filters: [...originalFilters],
|
|
267
|
+
measures: [measure.measure],
|
|
268
|
+
auxMeasures: collectAllRelatedMeasures(metrics, measure.measure),
|
|
269
|
+
},
|
|
270
|
+
metadata: {
|
|
271
|
+
...alert.metadata,
|
|
272
|
+
filters: undefined,
|
|
273
|
+
},
|
|
225
274
|
};
|
|
226
275
|
}
|
|
227
276
|
//alerts transformations utils
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformation.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,
|
|
1
|
+
{"version":3,"file":"transformation.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAaH,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,GACjB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAI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AQ,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;QAChE,CAAC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IACzC,CAAC;IACD,OAAO,EAAE,CAAC;AACd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightAlerts.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/InsightAlerts.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAU/E,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,
|
|
1
|
+
{"version":3,"file":"InsightAlerts.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/InsightAlerts.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAU/E,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,CAuHrE,CAAC"}
|
|
@@ -16,7 +16,7 @@ export const InsightAlerts = ({ widget, onClose, onGoBack }) => {
|
|
|
16
16
|
? stringUtils.simplifyText(objRefToString(widget.ref))
|
|
17
17
|
: "";
|
|
18
18
|
const classes = cx("gd-alerts-configuration-panel", "configuration-scrollable-panel", "s-configuration-scrollable-panel", `s-visualization-${widgetRefSuffix}`);
|
|
19
|
-
const { isLoading, alerts, hasAlerts, destinations, users, viewMode, execResult, separators, supportedMeasures, supportedAttributes, maxAutomationsReached, maxAutomationsRecipients, canManageAttributes, canCreateAutomation, catalogMeasures, catalogAttributes, catalogDateDatasets,
|
|
19
|
+
const { isLoading, alerts, hasAlerts, destinations, users, viewMode, execResult, separators, supportedMeasures, supportedAttributes, maxAutomationsReached, maxAutomationsRecipients, canManageAttributes, canManageComparison, canCreateAutomation, catalogMeasures, catalogAttributes, catalogDateDatasets,
|
|
20
20
|
//
|
|
21
21
|
creatingAlert, initiateAlertCreation, cancelAlertCreation,
|
|
22
22
|
//
|
|
@@ -28,10 +28,10 @@ export const InsightAlerts = ({ widget, onClose, onGoBack }) => {
|
|
|
28
28
|
content = (React.createElement(AlertsList, { isLoading: isLoading, alerts: alerts, separators: separators, onCreateAlert: initiateAlertCreation, onEditAlert: initiateAlertEditing, onPauseAlert: pauseExistingAlert, onResumeAlert: resumeExistingAlert, onDeleteAlert: deleteExistingAlert, onClose: onClose, onGoBack: onGoBack, maxAutomationsReached: maxAutomationsReached, canCreateAutomation: canCreateAutomation }));
|
|
29
29
|
}
|
|
30
30
|
else if (viewMode === "edit" && editingAlert) {
|
|
31
|
-
content = (React.createElement(EditAlert, { canManageAttributes: canManageAttributes, execResult: execResult, alert: editingAlert, hasAlerts: hasAlerts, destinations: destinations, users: users, measures: supportedMeasures, attributes: supportedAttributes, onUpdate: updateExistingAlert, onCancel: cancelAlertEditing, onClose: onClose, catalogMeasures: catalogMeasures, catalogAttributes: catalogAttributes, catalogDateDatasets: catalogDateDatasets, maxAutomationsRecipients: maxAutomationsRecipients }));
|
|
31
|
+
content = (React.createElement(EditAlert, { canManageAttributes: canManageAttributes, canManageComparison: canManageComparison, execResult: execResult, alert: editingAlert, hasAlerts: hasAlerts, destinations: destinations, users: users, measures: supportedMeasures, attributes: supportedAttributes, onUpdate: updateExistingAlert, onCancel: cancelAlertEditing, onClose: onClose, catalogMeasures: catalogMeasures, catalogAttributes: catalogAttributes, catalogDateDatasets: catalogDateDatasets, maxAutomationsRecipients: maxAutomationsRecipients }));
|
|
32
32
|
}
|
|
33
33
|
else if (viewMode === "create" && creatingAlert) {
|
|
34
|
-
content = (React.createElement(CreateAlert, { canManageAttributes: canManageAttributes, execResult: execResult, alert: creatingAlert, measures: supportedMeasures, attributes: supportedAttributes, hasAlerts: hasAlerts, destinations: destinations, users: users, onCreate: saveNewAlert, onCancel: cancelAlertCreation, onClose: onClose, maxAutomationsReached: maxAutomationsReached, maxAutomationsRecipients: maxAutomationsRecipients, catalogMeasures: catalogMeasures, catalogAttributes: catalogAttributes, catalogDateDatasets: catalogDateDatasets }));
|
|
34
|
+
content = (React.createElement(CreateAlert, { canManageAttributes: canManageAttributes, canManageComparison: canManageComparison, execResult: execResult, alert: creatingAlert, measures: supportedMeasures, attributes: supportedAttributes, hasAlerts: hasAlerts, destinations: destinations, users: users, onCreate: saveNewAlert, onCancel: cancelAlertCreation, onClose: onClose, maxAutomationsReached: maxAutomationsReached, maxAutomationsRecipients: maxAutomationsRecipients, catalogMeasures: catalogMeasures, catalogAttributes: catalogAttributes, catalogDateDatasets: catalogDateDatasets }));
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
37
37
|
content = React.createElement(NoAvailableMeasures, { onClose: onClose, onBack: onGoBack });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightAlerts.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/InsightAlerts.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACrG,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EAAE,iCAAiC,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAC;AA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B,EAClD,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,mBAAmB,GAC1C,CACL,CAAC;IACN,CAAC;SAAM,CAAC;QACJ,OAAO,GAAG,oBAAC,mBAAmB,IAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,GAAI,CAAC;IAC1E,CAAC;IAED,OAAO,CACH,oBAAC,eAAe,IAAC,SAAS,EAAE,OAAO;QAE/B,oBAAC,yBAAyB,IAAC,iBAAiB,EAAE,iBAAiB,IAC1D,OAAO,CACgB,CACd,CACrB,CAAC;AACN,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"InsightAlerts.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/InsightAlerts.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACrG,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EAAE,iCAAiC,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,WAAW,CAAC,iCAAiC,CAAC,CAAC;AAE3F,MAAM,CAAC,MAAM,aAAa,GAAgD,CAAC,EAAE,MAAM,EAAE,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AO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,GAAI,CAAC;IAC1E,CAAC;IAED,OAAO,CACH,oBAAC,eAAe,IAAC,SAAS,EAAE,OAAO;QAE/B,oBAAC,yBAAyB,IAAC,iBAAiB,EAAE,iBAAiB,IAC1D,OAAO,CACgB,CACd,CACrB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentType } from "react";
|
|
2
2
|
import { IAnalyticalBackend, IUserWorkspaceSettings } from "@gooddata/sdk-backend-spi";
|
|
3
|
-
import { IAttribute, IColorPalette, IInsight, IInsightWidget, IMeasure, ISeparators } from "@gooddata/sdk-model";
|
|
3
|
+
import { IDataSetMetadataObject, DateAttributeGranularity, IAttribute, IColorPalette, IInsight, IInsightWidget, IMeasure, ISeparators } from "@gooddata/sdk-model";
|
|
4
4
|
import { ExplicitDrill, IDrillEventIntersectionElement, IErrorProps, ILoadingProps, ILocale, IPushData, IVisualizationCallbacks, OnError, OnExportReady, OnLoadingChanged } from "@gooddata/sdk-ui";
|
|
5
5
|
import { OnDrillDownSuccess, OnDrillToAttributeUrlSuccess, OnDrillToCustomUrlSuccess, OnDrillToDashboardSuccess, OnDrillToInsightSuccess, OnWidgetDrill } from "../../drill/types.js";
|
|
6
6
|
/**
|
|
@@ -201,6 +201,8 @@ export type AlertMetricComparator = {
|
|
|
201
201
|
measure: IMeasure;
|
|
202
202
|
isPrimary: boolean;
|
|
203
203
|
comparator: AlertMetricComparatorType;
|
|
204
|
+
dataset?: IDataSetMetadataObject;
|
|
205
|
+
granularity?: DateAttributeGranularity;
|
|
204
206
|
};
|
|
205
207
|
/**
|
|
206
208
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/insight/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,kBAAkB,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a,CAAC,iBAAiB,CAAC,CAAC;AAE1E;;GAEG;AACH,oBAAY,yBAAyB;IACjC,cAAc,IAAA;IACd,sBAAsB,IAAA;CACzB;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAChC,OAAO,EAAE,QAAQ,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/insight/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,EACH,sBAAsB,EACtB,wBAAwB,EACxB,UAAU,EACV,aAAa,EACb,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,WAAW,EACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,aAAa,EACb,8BAA8B,EAC9B,WAAW,EACX,aAAa,EACb,OAAO,EACP,SAAS,EACT,uBAAuB,EACvB,OAAO,EACP,aAAa,EACb,gBAAgB,EACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACH,kBAAkB,EAClB,4BAA4B,EAC5B,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACvB,aAAa,EAChB,MAAM,sBAAsB,CAAC;AAM9B;;;;;;;;;GASG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,MAAM,EAAE,cAAc,CAAC;IAEvB;;;;;;;;;;;OAWG;IACH,OAAO,EAAE,QAAQ,CAAC;IAElB;;;;OAIG;IACH,cAAc,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IAE3C;;;;OAIG;IACH,gBAAgB,EAAE,aAAa,C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,EAAE,8BAA8B,EAAE,EAAE,CAAC;KACvD,CAAC;IAEF;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IAEjD;;OAEG;IACH,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IAErD;;OAEG;IACH,QAAQ,EAAE,sBAAsB,GAAG,SAAS,CAAC;CAChD;AAMD;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,aAAa,CAAC,sBAAsB,CAAC,CAAC;AAEpF;;;;;;;GAOG;AACH,MAAM,MAAM,0BAA0B,GAAG,aAAa,CAAC,iBAAiB,CAAC,CAAC;AAE1E;;GAEG;AACH,oBAAY,yBAAyB;IACjC,cAAc,IAAA;IACd,sBAAsB,IAAA;CACzB;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAChC,OAAO,EAAE,QAAQ,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,yBAAyB,CAAC;IAEtC,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,WAAW,CAAC,EAAE,wBAAwB,CAAC;CAC1C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,OAAO,EAAE,QAAQ,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,qBAAqB,EAAE,CAAC;CACxC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB,SAAS,EAAE,UAAU,CAAC;IACtB,IAAI,EAAE,eAAe,GAAG,WAAW,CAAC;CACvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/presentation/widget/insight/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/presentation/widget/insight/types.ts"],"names":[],"mappings":"AAiQA;;GAEG;AACH,MAAM,CAAN,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACjC,6FAAc,CAAA;IACd,6GAAsB,CAAA;AAC1B,CAAC,EAHW,yBAAyB,KAAzB,yBAAyB,QAGpC"}
|
|
@@ -158,6 +158,7 @@ import { ICatalogMeasure } from '@gooddata/sdk-model';
|
|
|
158
158
|
import { IColorPalette } from '@gooddata/sdk-model';
|
|
159
159
|
import { ICrossFiltering } from '@gooddata/sdk-model';
|
|
160
160
|
import { ICrossFilteringItem as ICrossFilteringItem_2 } from './types.js';
|
|
161
|
+
import { ICustomWidget as ICustomWidget_2 } from '../../index.js';
|
|
161
162
|
import { IDashboard } from '@gooddata/sdk-model';
|
|
162
163
|
import { IDashboardAttributeFilter } from '@gooddata/sdk-model';
|
|
163
164
|
import { IDashboardAttributeFilterByDate } from '@gooddata/sdk-model';
|
|
@@ -16428,6 +16429,11 @@ export declare const selectEnableClickableAttributeURL: DashboardSelector<boolea
|
|
|
16428
16429
|
*/
|
|
16429
16430
|
export declare const selectEnableCompanyLogoInEmbeddedUI: DashboardSelector<boolean>;
|
|
16430
16431
|
|
|
16432
|
+
/**
|
|
16433
|
+
* @alpha
|
|
16434
|
+
*/
|
|
16435
|
+
export declare const selectEnableComparisonInAlerting: DashboardSelector<boolean>;
|
|
16436
|
+
|
|
16431
16437
|
/**
|
|
16432
16438
|
* Returns whether cross filtering should use alias titles.
|
|
16433
16439
|
*
|
|
@@ -16657,6 +16663,17 @@ export declare const selectExecutionResult: (state: DashboardState, id: EntityId
|
|
|
16657
16663
|
*/
|
|
16658
16664
|
export declare const selectExecutionResultByRef: (ref: ObjRef | undefined) => DashboardSelector<IExecutionResultEnvelope | undefined>;
|
|
16659
16665
|
|
|
16666
|
+
/**
|
|
16667
|
+
* Selects filterable widget by its ref (including custom widgets).
|
|
16668
|
+
* This selector will return undefined if the provided ref to non-filterable widget.
|
|
16669
|
+
*
|
|
16670
|
+
* @remarks
|
|
16671
|
+
* To limit the scope only to analytical widgets, use {@link selectAnalyticalWidgetByRef}.
|
|
16672
|
+
*
|
|
16673
|
+
* @alpha
|
|
16674
|
+
*/
|
|
16675
|
+
export declare const selectFilterableWidgetByRef: (ref: ObjRef | undefined) => DashboardSelector<IWidget | ICustomWidget | undefined>;
|
|
16676
|
+
|
|
16660
16677
|
/**
|
|
16661
16678
|
* @alpha
|
|
16662
16679
|
*/
|
|
@@ -19318,7 +19335,7 @@ export declare const useDashboardScheduledEmails: () => {
|
|
|
19318
19335
|
automations: IAutomationMetadataObject[];
|
|
19319
19336
|
automationsCount: number;
|
|
19320
19337
|
numberOfAvailableDestinations: number;
|
|
19321
|
-
widget: IWidget | undefined;
|
|
19338
|
+
widget: IWidget | ICustomWidget_2 | undefined;
|
|
19322
19339
|
insight: IInsight | undefined;
|
|
19323
19340
|
automationsLoading: boolean;
|
|
19324
19341
|
automationsError: GoodDataSdkError | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-dashboard",
|
|
3
|
-
"version": "10.15.0
|
|
3
|
+
"version": "10.15.0",
|
|
4
4
|
"description": "GoodData SDK - Dashboard Component",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -57,17 +57,17 @@
|
|
|
57
57
|
"ts-invariant": "^0.7.5",
|
|
58
58
|
"tslib": "^2.5.0",
|
|
59
59
|
"uuid": "^8.3.2",
|
|
60
|
-
"@gooddata/sdk-backend-base": "10.15.0
|
|
61
|
-
"@gooddata/sdk-backend-spi": "10.15.0
|
|
62
|
-
"@gooddata/sdk-
|
|
63
|
-
"@gooddata/sdk-ui": "10.15.0
|
|
64
|
-
"@gooddata/sdk-
|
|
65
|
-
"@gooddata/sdk-ui-ext": "10.15.0
|
|
66
|
-
"@gooddata/sdk-ui-
|
|
67
|
-
"@gooddata/sdk-ui-
|
|
68
|
-
"@gooddata/sdk-ui-
|
|
69
|
-
"@gooddata/
|
|
70
|
-
"@gooddata/
|
|
60
|
+
"@gooddata/sdk-backend-base": "10.15.0",
|
|
61
|
+
"@gooddata/sdk-backend-spi": "10.15.0",
|
|
62
|
+
"@gooddata/sdk-ui": "10.15.0",
|
|
63
|
+
"@gooddata/sdk-ui-filters": "10.15.0",
|
|
64
|
+
"@gooddata/sdk-model": "10.15.0",
|
|
65
|
+
"@gooddata/sdk-ui-ext": "10.15.0",
|
|
66
|
+
"@gooddata/sdk-ui-geo": "10.15.0",
|
|
67
|
+
"@gooddata/sdk-ui-kit": "10.15.0",
|
|
68
|
+
"@gooddata/sdk-ui-theme-provider": "10.15.0",
|
|
69
|
+
"@gooddata/sdk-ui-vis-commons": "10.15.0",
|
|
70
|
+
"@gooddata/util": "10.15.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"react": "^16.10.0 || ^17.0.0 || ^18.0.0",
|
|
@@ -120,9 +120,9 @@
|
|
|
120
120
|
"typescript": "5.3.3",
|
|
121
121
|
"vitest": "1.0.4",
|
|
122
122
|
"vitest-dom": "0.1.1",
|
|
123
|
-
"@gooddata/
|
|
124
|
-
"@gooddata/
|
|
125
|
-
"@gooddata/sdk-backend-mockingbird": "10.15.0
|
|
123
|
+
"@gooddata/i18n-toolkit": "10.15.0",
|
|
124
|
+
"@gooddata/reference-workspace": "10.15.0",
|
|
125
|
+
"@gooddata/sdk-backend-mockingbird": "10.15.0"
|
|
126
126
|
},
|
|
127
127
|
"scripts": {
|
|
128
128
|
"clean": "rm -rf ci dist esm coverage *.log styles/css tsconfig.tsbuildinfo",
|
package/styles/css/alerting.css
CHANGED
|
@@ -349,19 +349,38 @@
|
|
|
349
349
|
width: 100%;
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
-
.gd-alert-destination-select
|
|
352
|
+
.gd-alert-destination-select,
|
|
353
|
+
.gd-alert-comparison-select {
|
|
353
354
|
margin-bottom: 10px;
|
|
354
355
|
}
|
|
355
356
|
|
|
356
|
-
.gd-button.gd-alert-destination-select__button
|
|
357
|
+
.gd-button.gd-alert-destination-select__button,
|
|
358
|
+
.gd-button.gd-alert-comparison-select__button {
|
|
357
359
|
margin-top: 0;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
360
|
+
padding-left: 5px;
|
|
361
|
+
width: 100% !important;
|
|
362
|
+
}
|
|
363
|
+
.gd-button.gd-alert-destination-select__button:not(.gd-button.gd-alert-destination-select__button--open, .gd-button.gd-alert-destination-select__button:hover, .gd-button.gd-alert-destination-select__button:active, .gd-button.gd-alert-destination-select__button:focus,
|
|
364
|
+
.gd-button.gd-alert-comparison-select__button--open,
|
|
365
|
+
.gd-button.gd-alert-comparison-select__button:hover,
|
|
366
|
+
.gd-button.gd-alert-comparison-select__button:active,
|
|
367
|
+
.gd-button.gd-alert-comparison-select__button:focus),
|
|
368
|
+
.gd-button.gd-alert-comparison-select__button:not(.gd-button.gd-alert-destination-select__button--open, .gd-button.gd-alert-destination-select__button:hover, .gd-button.gd-alert-destination-select__button:active, .gd-button.gd-alert-destination-select__button:focus,
|
|
369
|
+
.gd-button.gd-alert-comparison-select__button--open,
|
|
370
|
+
.gd-button.gd-alert-comparison-select__button:hover,
|
|
371
|
+
.gd-button.gd-alert-comparison-select__button:active,
|
|
372
|
+
.gd-button.gd-alert-comparison-select__button:focus) {
|
|
361
373
|
box-shadow: none;
|
|
362
374
|
border-color: transparent;
|
|
363
375
|
}
|
|
364
|
-
.gd-button.gd-alert-destination-select__button:not(.gd-button.gd-alert-destination-select__button--open, .gd-button.gd-alert-destination-select__button:active, .gd-button.gd-alert-destination-select__button:focus
|
|
376
|
+
.gd-button.gd-alert-destination-select__button:not(.gd-button.gd-alert-destination-select__button--open, .gd-button.gd-alert-destination-select__button:active, .gd-button.gd-alert-destination-select__button:focus,
|
|
377
|
+
.gd-button.gd-alert-comparison-select__button--open,
|
|
378
|
+
.gd-button.gd-alert-comparison-select__button:active,
|
|
379
|
+
.gd-button.gd-alert-comparison-select__button:focus),
|
|
380
|
+
.gd-button.gd-alert-comparison-select__button:not(.gd-button.gd-alert-destination-select__button--open, .gd-button.gd-alert-destination-select__button:active, .gd-button.gd-alert-destination-select__button:focus,
|
|
381
|
+
.gd-button.gd-alert-comparison-select__button--open,
|
|
382
|
+
.gd-button.gd-alert-comparison-select__button:active,
|
|
383
|
+
.gd-button.gd-alert-comparison-select__button:focus) {
|
|
365
384
|
background: transparent;
|
|
366
385
|
}
|
|
367
386
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../node_modules/react-loading-skeleton/dist/skeleton.css","../scss/alerting.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/variables.scss"],"names":[],"mappings":"AAAA;EACE;IACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EAEA;EAEA;EACA;EACA;EACA;EAEA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAMA;EAEA;EACA;EACA;EACA;EACA;;;AAGF;EACE;IACE;;;AC3CJ;EACI;;;AAGJ;EACI;EACA;EACA;;AAEA;EACI;;AAGJ;EACI;;AAGJ;EACI;EACA;EACA;EACA;;AAGJ;EACI;EACA;AAAA;AAAA;AAAA;;;AAOR;EACI;;AAEA;EACI;EACA;EACA;EACA;;AAEA;EACI;;;AAKZ;EACI;EACA;EACA;EACA;EACA,OCtCmB;;;AD4CvB;EACI;EACA;EACA;EACA;;AAEA;EACI,kBCmCgB;;ADhCpB;EACI;;;AAIR;EACI;EACA;EACA;EACA;EACA;;;AAGJ;EACI,kBCkBoB;EDjBpB;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI,kBCzCkB;;;AD6C1B;EACI;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA,OCvFY;EDwFZ;;;AAGJ;EACI;EACA;EACA,OCrGmB;EDsGnB;EACA;;;AAMJ;EACI;EACA;EACA,OCzGY;ED0GZ;;;AAGJ;EACI;EACA;EACA;;;AAGJ;EACI;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA,OCjIY;;ADmIZ;EACI;;;AAIR;EACI;AAEA;AAOA;;AANA;AAAA;EAEI;EACA;;AAIJ;EACI;EACA;;;AAIR;EACI;EACA;EACA;EACA;EACA;;AAEA;EACI;;;AAIR;EACI,OCzKmB;;;AD4KvB;EACI;;AAEA;EACI;EACA;;;AAOR;EACI;;;AAGJ;EACI;EACA;EACA;EACA;;;AAGJ;EACI,OC7LY;ED8LZ;EACA;EACA;;;AAGJ;EACI;EACA;EACA;;;AAGJ;EACI;;;AAGJ;EACI;EACA;EACA;EACA;EACA;;;AAOA;EACI;EACA;EACA;;;AAOR;AAAA;EAEI;;;AAGJ;AAAA;EAEI;;;AAEJ;EACI;;;AAGJ;AAAA;EAEI;;;AAGJ;AAAA;EAEI;;AAEA;AAAA;EACI;;;AAIR;EACI;;;AAGJ;EACI;;;AAGJ;EAEI;;AAEA;EAEI;;AAGJ;EACI,OCrQkB;EDsQlB;;;AAIR;EACI;;;AAGJ;EACI;EACA;EACA;;;AAGJ;EACI;;AAEA;EACI;;;AAIR;EACI;EACA;;;AAIA;EAEI;EAEA;;AAGJ;EACI;;;AAKJ;EACI;;;AAOR;EACI;;;AAGJ;EACI;;;AAMJ;
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../node_modules/react-loading-skeleton/dist/skeleton.css","../scss/alerting.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/variables.scss"],"names":[],"mappings":"AAAA;EACE;IACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EAEA;EAEA;EACA;EACA;EACA;EAEA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAMA;EAEA;EACA;EACA;EACA;EACA;;;AAGF;EACE;IACE;;;AC3CJ;EACI;;;AAGJ;EACI;EACA;EACA;;AAEA;EACI;;AAGJ;EACI;;AAGJ;EACI;EACA;EACA;EACA;;AAGJ;EACI;EAC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ACI;;;AAOR;EACI;;;AAGJ;EACI;;;AAMJ;AAAA;EAEI;;;AAKJ;AAAA;EAEI;EACA;EAEA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACI;EACA;;AAGJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACI;;;AAOR;EACI;;;AAMJ;EACI;EACA;EACA;;AAEA;EAEI,kBC1Qe;;AD6QnB;EACI;EACA;EACA;EACA;EACA;;;AAKJ;EACI,OCvZY;EDwZZ,kBCvWkB","file":"alerting.css"}
|
package/styles/css/main.css
CHANGED
|
@@ -24908,19 +24908,38 @@ div.gd-empty-item-bubble {
|
|
|
24908
24908
|
width: 100%;
|
|
24909
24909
|
}
|
|
24910
24910
|
|
|
24911
|
-
.gd-alert-destination-select
|
|
24911
|
+
.gd-alert-destination-select,
|
|
24912
|
+
.gd-alert-comparison-select {
|
|
24912
24913
|
margin-bottom: 10px;
|
|
24913
24914
|
}
|
|
24914
24915
|
|
|
24915
|
-
.gd-button.gd-alert-destination-select__button
|
|
24916
|
+
.gd-button.gd-alert-destination-select__button,
|
|
24917
|
+
.gd-button.gd-alert-comparison-select__button {
|
|
24916
24918
|
margin-top: 0;
|
|
24917
|
-
|
|
24919
|
+
padding-left: 5px;
|
|
24920
|
+
width: 100% !important;
|
|
24918
24921
|
}
|
|
24919
|
-
.gd-button.gd-alert-destination-select__button:not(.gd-button.gd-alert-destination-select__button--open, .gd-button.gd-alert-destination-select__button:hover, .gd-button.gd-alert-destination-select__button:active, .gd-button.gd-alert-destination-select__button:focus
|
|
24922
|
+
.gd-button.gd-alert-destination-select__button:not(.gd-button.gd-alert-destination-select__button--open, .gd-button.gd-alert-destination-select__button:hover, .gd-button.gd-alert-destination-select__button:active, .gd-button.gd-alert-destination-select__button:focus,
|
|
24923
|
+
.gd-button.gd-alert-comparison-select__button--open,
|
|
24924
|
+
.gd-button.gd-alert-comparison-select__button:hover,
|
|
24925
|
+
.gd-button.gd-alert-comparison-select__button:active,
|
|
24926
|
+
.gd-button.gd-alert-comparison-select__button:focus),
|
|
24927
|
+
.gd-button.gd-alert-comparison-select__button:not(.gd-button.gd-alert-destination-select__button--open, .gd-button.gd-alert-destination-select__button:hover, .gd-button.gd-alert-destination-select__button:active, .gd-button.gd-alert-destination-select__button:focus,
|
|
24928
|
+
.gd-button.gd-alert-comparison-select__button--open,
|
|
24929
|
+
.gd-button.gd-alert-comparison-select__button:hover,
|
|
24930
|
+
.gd-button.gd-alert-comparison-select__button:active,
|
|
24931
|
+
.gd-button.gd-alert-comparison-select__button:focus) {
|
|
24920
24932
|
box-shadow: none;
|
|
24921
24933
|
border-color: transparent;
|
|
24922
24934
|
}
|
|
24923
|
-
.gd-button.gd-alert-destination-select__button:not(.gd-button.gd-alert-destination-select__button--open, .gd-button.gd-alert-destination-select__button:active, .gd-button.gd-alert-destination-select__button:focus
|
|
24935
|
+
.gd-button.gd-alert-destination-select__button:not(.gd-button.gd-alert-destination-select__button--open, .gd-button.gd-alert-destination-select__button:active, .gd-button.gd-alert-destination-select__button:focus,
|
|
24936
|
+
.gd-button.gd-alert-comparison-select__button--open,
|
|
24937
|
+
.gd-button.gd-alert-comparison-select__button:active,
|
|
24938
|
+
.gd-button.gd-alert-comparison-select__button:focus),
|
|
24939
|
+
.gd-button.gd-alert-comparison-select__button:not(.gd-button.gd-alert-destination-select__button--open, .gd-button.gd-alert-destination-select__button:active, .gd-button.gd-alert-destination-select__button:focus,
|
|
24940
|
+
.gd-button.gd-alert-comparison-select__button--open,
|
|
24941
|
+
.gd-button.gd-alert-comparison-select__button:active,
|
|
24942
|
+
.gd-button.gd-alert-comparison-select__button:focus) {
|
|
24924
24943
|
background: transparent;
|
|
24925
24944
|
}
|
|
24926
24945
|
|