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

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 (115) hide show
  1. package/NOTICE +4 -4
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/index.d.ts +20 -2
  5. package/esm/index.d.ts.map +1 -1
  6. package/esm/index.js +18 -0
  7. package/esm/internal.d.ts +1 -1
  8. package/esm/internal.d.ts.map +1 -1
  9. package/esm/internal.js +1 -1
  10. package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +10 -22
  11. package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
  12. package/esm/model/store/tabs/parameters/parametersHelpers.js +13 -42
  13. package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +8 -10
  14. package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
  15. package/esm/model/store/tabs/parameters/parametersSelectors.js +22 -32
  16. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +16 -16
  17. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
  18. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +34 -109
  19. package/esm/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.d.ts +10 -0
  20. package/esm/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.d.ts.map +1 -0
  21. package/esm/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.js +12 -0
  22. package/esm/presentation/automations/alerting/blocks/AlertingDialogShell.d.ts +49 -0
  23. package/esm/presentation/automations/alerting/blocks/AlertingDialogShell.d.ts.map +1 -0
  24. package/esm/presentation/automations/alerting/blocks/AlertingDialogShell.js +128 -0
  25. package/esm/presentation/automations/alerting/blocks/DefaultLoadingAlertingDialog.d.ts.map +1 -0
  26. package/esm/presentation/automations/alerting/types.d.ts +59 -0
  27. package/esm/presentation/automations/alerting/types.d.ts.map +1 -1
  28. package/esm/presentation/automations/connectors/hooks/useBuildAlertingManagementDialogContext.d.ts.map +1 -1
  29. package/esm/presentation/automations/connectors/hooks/useBuildAlertingManagementDialogContext.js +7 -0
  30. package/esm/presentation/automations/contexts/AlertingManagementDialogContext.d.ts +12 -0
  31. package/esm/presentation/automations/contexts/AlertingManagementDialogContext.d.ts.map +1 -1
  32. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts +15 -10
  33. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
  34. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +45 -198
  35. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts +2 -18
  36. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts.map +1 -1
  37. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts +2 -23
  38. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts.map +1 -1
  39. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDashboardAttachments.d.ts +11 -0
  40. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDashboardAttachments.d.ts.map +1 -0
  41. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDashboardAttachments.js +12 -0
  42. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogEvaluationMode.d.ts +11 -0
  43. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogEvaluationMode.d.ts.map +1 -0
  44. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogEvaluationMode.js +12 -0
  45. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogMessage.d.ts +11 -0
  46. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogMessage.d.ts.map +1 -0
  47. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogMessage.js +12 -0
  48. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecurrence.d.ts +11 -0
  49. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecurrence.d.ts.map +1 -0
  50. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecurrence.js +12 -0
  51. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogSubject.d.ts +11 -0
  52. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogSubject.d.ts.map +1 -0
  53. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogSubject.js +12 -0
  54. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.d.ts +11 -0
  55. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.d.ts.map +1 -0
  56. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.js +12 -0
  57. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/EvaluationModeCheckbox/EvaluationModeCheckbox.d.ts +2 -17
  58. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/EvaluationModeCheckbox/EvaluationModeCheckbox.d.ts.map +1 -1
  59. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/EvaluationModeCheckbox/EvaluationModeCheckbox.js +0 -3
  60. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/MessageForm/MessageForm.d.ts +2 -6
  61. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/MessageForm/MessageForm.d.ts.map +1 -1
  62. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js +1 -1
  63. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/SubjectForm/SubjectForm.d.ts +2 -10
  64. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/SubjectForm/SubjectForm.d.ts.map +1 -1
  65. package/esm/presentation/automations/scheduledEmail/blocks/DefaultLoadingScheduledEmailDialog.d.ts.map +1 -0
  66. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDashboardAttachments.d.ts +16 -0
  67. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDashboardAttachments.d.ts.map +1 -0
  68. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDashboardAttachments.js +28 -0
  69. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogEvaluationMode.d.ts +16 -0
  70. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogEvaluationMode.d.ts.map +1 -0
  71. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogEvaluationMode.js +28 -0
  72. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogMessage.d.ts +15 -0
  73. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogMessage.d.ts.map +1 -0
  74. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogMessage.js +27 -0
  75. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecurrence.d.ts +16 -0
  76. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecurrence.d.ts.map +1 -0
  77. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecurrence.js +24 -0
  78. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.d.ts +59 -0
  79. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.d.ts.map +1 -0
  80. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.js +195 -0
  81. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogSubject.d.ts +16 -0
  82. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogSubject.d.ts.map +1 -0
  83. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogSubject.js +29 -0
  84. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogWidgetAttachments.d.ts +16 -0
  85. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogWidgetAttachments.d.ts.map +1 -0
  86. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogWidgetAttachments.js +28 -0
  87. package/esm/presentation/automations/scheduledEmail/state/useIsInPlatformChannel.d.ts +6 -0
  88. package/esm/presentation/automations/scheduledEmail/state/useIsInPlatformChannel.d.ts.map +1 -0
  89. package/esm/presentation/automations/scheduledEmail/state/useIsInPlatformChannel.js +13 -0
  90. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogFieldProps.d.ts +73 -0
  91. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogFieldProps.d.ts.map +1 -0
  92. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogFieldProps.js +168 -0
  93. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailSubmitOnEnter.d.ts +30 -0
  94. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailSubmitOnEnter.d.ts.map +1 -0
  95. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailSubmitOnEnter.js +26 -0
  96. package/esm/presentation/automations/scheduledEmail/types.d.ts +299 -1
  97. package/esm/presentation/automations/scheduledEmail/types.d.ts.map +1 -1
  98. package/esm/presentation/automations/shared/hooks/useWorkspaceUsersSearch.d.ts +51 -0
  99. package/esm/presentation/automations/shared/hooks/useWorkspaceUsersSearch.d.ts.map +1 -0
  100. package/esm/presentation/automations/{scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect → shared/hooks}/useWorkspaceUsersSearch.js +13 -0
  101. package/esm/presentation/dashboard/components/DashboardScreenSizeContext.js +1 -1
  102. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +91 -91
  103. package/esm/presentation/widget/insightMenu/types.js +1 -1
  104. package/esm/presentation/widget/richTextMenu/types.d.ts.map +1 -1
  105. package/esm/presentation/widget/richTextMenu/types.js +2 -1
  106. package/esm/sdk-ui-dashboard.d.ts +824 -35
  107. package/package.json +22 -22
  108. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultLoadingAlertingDialog.d.ts.map +0 -1
  109. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultLoadingScheduledEmailDialog.d.ts.map +0 -1
  110. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/useWorkspaceUsersSearch.d.ts +0 -13
  111. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/useWorkspaceUsersSearch.d.ts.map +0 -1
  112. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog → blocks}/DefaultLoadingAlertingDialog.d.ts +0 -0
  113. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog → blocks}/DefaultLoadingAlertingDialog.js +0 -0
  114. /package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog → blocks}/DefaultLoadingScheduledEmailDialog.d.ts +0 -0
  115. /package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog → blocks}/DefaultLoadingScheduledEmailDialog.js +0 -0
@@ -196,6 +196,14 @@ export function isGatedStringEntry(entry, isStringEnabled) {
196
196
  export function isGatedStringValue(value, isStringEnabled) {
197
197
  return typeof value === "string" && !isStringEnabled;
198
198
  }
199
+ /**
200
+ * The tab's parameter entries without the gated-off STRING entries.
201
+ *
202
+ * @internal
203
+ */
204
+ export function ungatedTabEntries(tab, isStringEnabled) {
205
+ return (tab.parameters?.parameters ?? parametersInitialState.parameters).filter((entry) => !isGatedStringEntry(entry, isStringEnabled));
206
+ }
199
207
  /**
200
208
  * The insight-authored parameter values that pass the string gate — the single home of
201
209
  * insight-level gating for both the widget-execution hook path and the selector path.
@@ -371,58 +379,21 @@ export function computeParameterResetTargets(entries, workspaceParameters, isInE
371
379
  return result;
372
380
  }
373
381
  /**
374
- * Folds per-tab ref selections into the wire shape, dropping entries without a
375
- * `runtimeOverride`. Each selection pairs a tab with an optional ref restriction:
376
- * `allowedRefs === undefined` selects all refs (whole-dashboard scope); a defined set restricts
377
- * entries to those refs (widget scope). Tabs that yield no rows are omitted from the result.
382
+ * Folds the parameter entries of the given tabs into the wire shape, dropping entries without a
383
+ * `runtimeOverride`. Tabs that yield no rows are omitted from the result.
378
384
  *
379
385
  * @internal
380
386
  */
381
- export function collectExportOverrides(tabRefSelections, workspaceParameterByRef, isStringEnabled) {
387
+ export function collectExportOverrides(tabs, workspaceParameterByRef, isStringEnabled) {
382
388
  const result = {};
383
- for (const { tab, allowedRefs } of tabRefSelections) {
384
- const entries = (tab.parameters?.parameters ?? parametersInitialState.parameters).filter((entry) => !isGatedStringEntry(entry, isStringEnabled));
385
- const scoped = allowedRefs
386
- ? entries.filter((entry) => allowedRefs.has(objRefToString(entry.parameter.ref)))
387
- : entries;
388
- const rows = formatEntries(scoped, workspaceParameterByRef);
389
+ for (const tab of tabs) {
390
+ const rows = formatEntries(ungatedTabEntries(tab, isStringEnabled), workspaceParameterByRef);
389
391
  if (rows.length > 0) {
390
392
  result[tab.localIdentifier] = rows;
391
393
  }
392
394
  }
393
395
  return Object.keys(result).length === 0 ? EMPTY_EXPORT_PARAMETERS_BY_TAB : result;
394
396
  }
395
- /**
396
- * Builds per-tab ref selections for a widget-scope export: each widget's owning tab is restricted
397
- * to refs referenced by the widget's insight metrics. Multiple widgets on the same tab union their
398
- * refs.
399
- *
400
- * @internal
401
- */
402
- export function buildWidgetScopeTabRefSelections(widgetContexts, widgetIds, insights, measureParameters) {
403
- const byTab = new Map();
404
- for (const widgetId of widgetIds) {
405
- const context = widgetContexts.find((ctx) => ctx.widget.identifier === widgetId);
406
- if (!context) {
407
- continue;
408
- }
409
- const insight = insights.get(context.widget.insight);
410
- if (!insight) {
411
- continue;
412
- }
413
- const referencedRefs = collectReferencedParameterRefs(insight, measureParameters);
414
- if (referencedRefs.length === 0) {
415
- continue;
416
- }
417
- const tabId = context.tab.localIdentifier;
418
- const existing = byTab.get(tabId) ?? { tab: context.tab, allowedRefs: new Set() };
419
- for (const ref of referencedRefs) {
420
- existing.allowedRefs.add(objRefToString(ref));
421
- }
422
- byTab.set(tabId, existing);
423
- }
424
- return [...byTab.values()];
425
- }
426
397
  function formatEntries(entries, workspaceParameterByRef) {
427
398
  const rows = [];
428
399
  for (const entry of entries) {
@@ -183,23 +183,21 @@ export declare const selectReferencedInsightParameterValuesForWidget: (ref: ObjR
183
183
  */
184
184
  export declare const selectEffectiveDashboardParametersForWidget: (ref: ObjRef | undefined) => DashboardSelector<IDashboardParameter[]>;
185
185
  /**
186
- * Returns the per-tab parameter overrides to send on dashboard tabular export, keyed by
187
- * tab `localIdentifier`. The shape matches the backend's `dashboardTabsParametersOverrides`
186
+ * Returns the per-tab parameter overrides to send on dashboard export, keyed by tab
187
+ * `localIdentifier`. The shape matches the backend's `dashboardTabsParametersOverrides`
188
188
  * field directly.
189
189
  *
190
190
  * @remarks
191
- * Scope rules:
192
- * - When `widgetIds` is empty/undefined (whole-dashboard export), every tab in scope contributes
193
- * parameter entries with a `runtimeOverride`.
194
- * - When `widgetIds` is non-empty, each widget's owning tab contributes only entries with a
195
- * `runtimeOverride` whose ref is referenced by the widget's insight metrics via the dashboard-wide
196
- * metric → parameter dependency map. Multi-widget across distinct owning tabs yields one
197
- * map entry per owning tab; entries for the same tab are unioned and deduplicated by ref.
191
+ * The request sends every `runtimeOverride` entry of each tab in scope; the query drops the
192
+ * parameters a widget's metrics do not use.
193
+ * - When `widgetIds` is empty/undefined (whole-dashboard export), every tab is in scope.
194
+ * - When `widgetIds` is non-empty, only the owning tabs of those widgets are in scope. Send only
195
+ * these tabs. A non-empty map tells the backend that the map is complete, and the backend then
196
+ * does not resolve pinned values for any tab.
198
197
  *
199
198
  * Returns `{}` (signalling "omit the field on the wire") when:
200
199
  * - `enableParameters` is off,
201
200
  * - the workspace catalog parameters are not loaded,
202
- * - (widget scope only) the `measureParameters` dependency map is not loaded,
203
201
  * - or no in-scope parameter has a `runtimeOverride`.
204
202
  *
205
203
  * @alpha
@@ -1 +1 @@
1
- {"version":3,"file":"parametersSelectors.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/parameters/parametersSelectors.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EAExB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,cAAc,EAGtB,MAAM,qBAAqB,CAAC;AAa7B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAKxD,OAAO,EAEH,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAiB/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACH,KAAK,wBAAwB,EAGhC,MAAM,sBAAsB,CAAC;AAyB9B;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,EAAE,iBAAiB,CAAC,mBAAmB,EAAE,CAG9E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAAiB,CAAC,WA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,mBAAmB,EAAE,CAe3C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,+BAA+B,EAAE,CAC1C,SAAS,EAAE,MAAM,EAAE,GAAG,SAAS,KAC9B,iBAAiB,CAAC,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,CAAC,CAGX,CAAC;AAsDxD;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,EAAE,iBAAiB,CAAC,yBAAyB,EAAE,CAI1F,CAAC"}
1
+ {"version":3,"file":"parametersSelectors.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/parameters/parametersSelectors.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EAExB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,cAAc,EAGtB,MAAM,qBAAqB,CAAC;AAa7B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAQxD,OAAO,EAEH,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAiB/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACH,KAAK,wBAAwB,EAGhC,MAAM,sBAAsB,CAAC;AAyB9B;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,EAAE,iBAAiB,CAAC,mBAAmB,EAAE,CAG9E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAAiB,CAAC,WAAW,CAAC,MAAM,CAAC,CAG/E,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,EAAE,iBAAiB,CAAC,wBAAwB,EAAE,CAGzF,CAAC;AAYF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,EAAE,iBAAiB,CAAC,mBAAmB,EAAE,GAAG,SAAS,CAGvF,CAAC;AAEN;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC,EAAE,iBAAiB,CA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EAAE,CAI1F,CAAC"}
@@ -1,16 +1,16 @@
1
1
  // (C) 2026 GoodData Corporation
2
2
  import { createSelector } from "@reduxjs/toolkit";
3
- import { isEqual } from "lodash-es";
3
+ import { isEqual, uniq } from "lodash-es";
4
4
  import { areObjRefsEqual, objRefToString, } from "@gooddata/sdk-model";
5
5
  import { createMemoizedSelector } from "../../_infra/selectors.js";
6
6
  import { selectCatalogMeasureParameters, selectCatalogMeasureParametersStatus, selectCatalogParameterByRef, selectCatalogParameters, selectCatalogParametersIsLoaded, } from "../../catalog/catalogSelectors.js";
7
7
  import { selectEnableParameters, selectEnableStringParameters } from "../../config/configSelectors.js";
8
8
  import { selectInsightsMap } from "../../insights/insightsSelectors.js";
9
9
  import { selectIsInEditMode } from "../../renderMode/renderModeSelectors.js";
10
- import { selectAllTabsInsightWidgetContexts } from "../layout/layoutSelectors.js";
10
+ import { selectAllTabsInsightWidgetContexts, selectAllTabsWidgetContexts, } from "../layout/layoutSelectors.js";
11
11
  import { selectActiveOrDefaultTabLocalIdentifier, selectActiveTab, selectTabs } from "../tabsSelectors.js";
12
12
  import { DEFAULT_TAB_ID } from "../tabsState.js";
13
- import { EMPTY_EXPORT_PARAMETERS_BY_TAB, applyDisplayOverride, applyRuntimeOverride, buildPersistedByTabAndRef, buildWidgetScopeTabRefSelections, buildWorkspaceParametersByRef, classifyParameterReconciliation, collectExportOverrides, collectParameterReconciliations, collectReferencedParameterRefs, computeParameterResetTargets, computeParameterResetValue, displayOverride, isGatedStringEntry, resolveEffectiveParameterValuesForRefs, smartPersistResolvedEntry, ungatedInsightParameterValues, } from "./parametersHelpers.js";
13
+ import { EMPTY_EXPORT_PARAMETERS_BY_TAB, applyDisplayOverride, applyRuntimeOverride, buildPersistedByTabAndRef, buildWorkspaceParametersByRef, classifyParameterReconciliation, collectExportOverrides, collectParameterReconciliations, collectReferencedParameterRefs, computeParameterResetTargets, computeParameterResetValue, displayOverride, isGatedStringEntry, resolveEffectiveParameterValuesForRefs, smartPersistResolvedEntry, ungatedInsightParameterValues, ungatedTabEntries, } from "./parametersHelpers.js";
14
14
  import { parametersInitialState, pickTabParametersSource, } from "./parametersState.js";
15
15
  const EMPTY_PARAMETERS = [];
16
16
  const EMPTY_EXPORT_PARAMETERS = [];
@@ -222,9 +222,7 @@ export const selectParameterReconciliations = createSelector(selectTabs, selectC
222
222
  if (!isEnabled || !isCatalogLoaded || !tabs) {
223
223
  return EMPTY_RECONCILIATIONS;
224
224
  }
225
- const entries = tabs
226
- .flatMap((tab) => tab.parameters?.parameters ?? [])
227
- .filter((entry) => !isGatedStringEntry(entry, isStringEnabled));
225
+ const entries = tabs.flatMap((tab) => ungatedTabEntries(tab, isStringEnabled));
228
226
  const result = collectParameterReconciliations(entries, workspaceParameters);
229
227
  return result.length === 0 ? EMPTY_RECONCILIATIONS : result;
230
228
  });
@@ -254,9 +252,8 @@ export const selectWidgetParameterContext = createMemoizedSelector((ref) => crea
254
252
  if (!context) {
255
253
  return undefined;
256
254
  }
257
- const entries = (context.tab.parameters?.parameters ?? parametersInitialState.parameters).filter((entry) => !isGatedStringEntry(entry, isStringEnabled));
258
255
  return {
259
- entries,
256
+ entries: ungatedTabEntries(context.tab, isStringEnabled),
260
257
  measureParameters,
261
258
  workspaceParameterByRef,
262
259
  widgetInsightRef: context.widget.insight,
@@ -337,46 +334,39 @@ export const selectEffectiveDashboardParametersForWidget = createMemoizedSelecto
337
334
  return (owningTabEntries ?? parametersInitialState.parameters).map(applyRuntimeOverride);
338
335
  }));
339
336
  /**
340
- * Returns the per-tab parameter overrides to send on dashboard tabular export, keyed by
341
- * tab `localIdentifier`. The shape matches the backend's `dashboardTabsParametersOverrides`
337
+ * Returns the per-tab parameter overrides to send on dashboard export, keyed by tab
338
+ * `localIdentifier`. The shape matches the backend's `dashboardTabsParametersOverrides`
342
339
  * field directly.
343
340
  *
344
341
  * @remarks
345
- * Scope rules:
346
- * - When `widgetIds` is empty/undefined (whole-dashboard export), every tab in scope contributes
347
- * parameter entries with a `runtimeOverride`.
348
- * - When `widgetIds` is non-empty, each widget's owning tab contributes only entries with a
349
- * `runtimeOverride` whose ref is referenced by the widget's insight metrics via the dashboard-wide
350
- * metric → parameter dependency map. Multi-widget across distinct owning tabs yields one
351
- * map entry per owning tab; entries for the same tab are unioned and deduplicated by ref.
342
+ * The request sends every `runtimeOverride` entry of each tab in scope; the query drops the
343
+ * parameters a widget's metrics do not use.
344
+ * - When `widgetIds` is empty/undefined (whole-dashboard export), every tab is in scope.
345
+ * - When `widgetIds` is non-empty, only the owning tabs of those widgets are in scope. Send only
346
+ * these tabs. A non-empty map tells the backend that the map is complete, and the backend then
347
+ * does not resolve pinned values for any tab.
352
348
  *
353
349
  * Returns `{}` (signalling "omit the field on the wire") when:
354
350
  * - `enableParameters` is off,
355
351
  * - the workspace catalog parameters are not loaded,
356
- * - (widget scope only) the `measureParameters` dependency map is not loaded,
357
352
  * - or no in-scope parameter has a `runtimeOverride`.
358
353
  *
359
354
  * @alpha
360
355
  */
361
- export const selectExportEffectiveParameters = (widgetIds) => widgetIds?.length
362
- ? selectExportEffectiveParametersForWidgets(widgetIds)
363
- : selectExportEffectiveParametersDashboardScope;
364
- const selectExportEffectiveParametersDashboardScope = createSelector(selectTabs, selectEnableParameters, selectEnableStringParameters, selectWorkspaceParametersByRef, selectCatalogParametersIsLoaded, (tabs, isEnabled, isStringEnabled, workspaceParameterByRef, isCatalogLoaded) => {
365
- if (!isEnabled || !isCatalogLoaded || !tabs?.length) {
356
+ export const selectExportEffectiveParameters = createMemoizedSelector((widgetIds) => createSelector(selectTabs, selectAllTabsWidgetContexts, selectEnableParameters, selectEnableStringParameters, selectWorkspaceParametersByRef, selectCatalogParametersIsLoaded, (tabs, widgetContexts, isEnabled, isStringEnabled, workspaceParameterByRef, isCatalogLoaded) => {
357
+ if (!isEnabled || !isCatalogLoaded) {
366
358
  return EMPTY_EXPORT_PARAMETERS_BY_TAB;
367
359
  }
368
- return collectExportOverrides(tabs.map((tab) => ({ tab })), workspaceParameterByRef, isStringEnabled);
369
- });
370
- const selectExportEffectiveParametersForWidgets = createMemoizedSelector((widgetIds) => createSelector(selectAllTabsInsightWidgetContexts, selectInsightsMap, selectEnableParameters, selectEnableStringParameters, selectWorkspaceParametersByRef, selectCatalogParametersIsLoaded, selectCatalogMeasureParameters, selectCatalogMeasureParametersStatus, (widgetContexts, insights, isEnabled, isStringEnabled, workspaceParameterByRef, isCatalogLoaded, measureParameters, measureParametersStatus) => {
371
- if (!isEnabled || !isCatalogLoaded || measureParametersStatus !== "loaded") {
372
- return EMPTY_EXPORT_PARAMETERS_BY_TAB;
373
- }
374
- const tabRefSelections = buildWidgetScopeTabRefSelections(widgetContexts, widgetIds, insights, measureParameters);
375
- return collectExportOverrides(tabRefSelections, workspaceParameterByRef, isStringEnabled);
360
+ const scopedTabs = widgetIds?.length
361
+ ? uniq(widgetContexts
362
+ .filter((ctx) => widgetIds.includes(ctx.widget.identifier))
363
+ .map((ctx) => ctx.tab))
364
+ : (tabs ?? []);
365
+ return collectExportOverrides(scopedTabs, workspaceParameterByRef, isStringEnabled);
376
366
  }));
377
367
  /**
378
368
  * Active-tab slice of {@link selectExportEffectiveParameters}.
379
369
  *
380
370
  * @internal
381
371
  */
382
- export const selectActiveTabExportParameters = createSelector(selectExportEffectiveParametersDashboardScope, selectActiveOrDefaultTabLocalIdentifier, (parametersByTab, activeTabId) => parametersByTab[activeTabId] ?? EMPTY_EXPORT_PARAMETERS);
372
+ export const selectActiveTabExportParameters = createSelector(selectExportEffectiveParameters(undefined), selectActiveOrDefaultTabLocalIdentifier, (parametersByTab, activeTabId) => parametersByTab[activeTabId] ?? EMPTY_EXPORT_PARAMETERS);
@@ -1,5 +1,5 @@
1
+ import { type ReactElement } from "react";
1
2
  import { type IDefaultAlertingDialogProps } from "../types.js";
2
- export declare function AlertingDialogRenderer({ onCancel, onDeleteSuccess, onDeleteError, onError, onSuccess, onSaveError, onSaveSuccess, slots, topContent, bottomContent }: IDefaultAlertingDialogProps): import("react/jsx-runtime").JSX.Element;
3
3
  /**
4
4
  * Default implementation of the alerting create/edit dialog.
5
5
  *
@@ -17,25 +17,25 @@ export declare function AlertingDialogRenderer({ onCancel, onDeleteSuccess, onDe
17
17
  * that is what lets a wholesale replacement receive the same contexts. Rendering this component
18
18
  * outside those providers throws at runtime.
19
19
  *
20
- * The dialog is composed from the exported region renders — {@link DefaultAlertingDialogHeader},
21
- * {@link DefaultAlertingDialogFilters}, {@link DefaultAlertingDialogDestination},
22
- * {@link DefaultAlertingDialogRecipients}, {@link DefaultAutomationDialogActionBar} — fed by the
23
- * matching `use*Props` hooks ({@link useAlertingDialogFiltersProps} and siblings), and from the
24
- * connected field blocks — {@link AlertingDialogMeasure}, {@link AlertingDialogAttribute},
25
- * {@link AlertingDialogComparisonOperator}, {@link AlertingDialogThreshold},
26
- * {@link AlertingDialogComparisonPeriod}, {@link AlertingDialogSensitivity},
27
- * {@link AlertingDialogGranularity}, {@link AlertingDialogTriggerMode},
28
- * {@link AlertingDialogTriggerInterval} — each a labelled {@link AutomationDialogFormField} row; the
29
- * conditional ones (Attribute, Threshold, ComparisonPeriod, Sensitivity, Granularity, TriggerInterval)
30
- * gate themselves on the draft. A custom `AlertingDialogComponent` that keeps our regions and fields
31
- * but owns the markup places the connected blocks ({@link AlertingDialogFilters},
32
- * {@link AlertingDialogThreshold} and siblings) instead of this component, and reads or writes the
33
- * same draft through {@link useAlertDraft} and {@link useAlertActions}.
20
+ * The dialog is {@link AlertingDialogShell} — the chrome: overlay, frame, header row, action bar, the
21
+ * dialog's messages, the stale-filters and delete confirmation steps, the loading skeleton — around the
22
+ * exported region renders ({@link DefaultAlertingDialogFilters}, {@link DefaultAlertingDialogDestination},
23
+ * {@link DefaultAlertingDialogRecipients}, fed by {@link useAlertingDialogFiltersProps} and siblings; the
24
+ * header and action bar are the shell's) and the connected field blocks — {@link AlertingDialogMeasure},
25
+ * {@link AlertingDialogAttribute}, {@link AlertingDialogComparisonOperator}, {@link AlertingDialogThreshold},
26
+ * {@link AlertingDialogComparisonPeriod}, {@link AlertingDialogSensitivity}, {@link AlertingDialogGranularity},
27
+ * {@link AlertingDialogTriggerMode}, {@link AlertingDialogTriggerInterval} — grouped under the "When" and
28
+ * "Do" headings by {@link AlertingDialogFormFieldGroup}; each field is a labelled
29
+ * {@link AutomationDialogFormField} row and the conditional ones gate themselves on the draft. A custom
30
+ * `AlertingDialogComponent` that keeps this chrome but owns the arrangement renders
31
+ * {@link AlertingDialogShell} around the blocks it wants (see its example); one that owns the chrome too
32
+ * places the blocks in its own markup and reads or writes the same draft through {@link useAlertDraft} and
33
+ * {@link useAlertActions}.
34
34
  *
35
35
  * Slots render only in the fully rendered dialog: not while the dialog context reports loading,
36
36
  * and not while the stale-filters confirmation step is shown.
37
37
  *
38
38
  * @alpha
39
39
  */
40
- export declare function DefaultAlertingDialog(props: IDefaultAlertingDialogProps): import("react/jsx-runtime").JSX.Element;
40
+ export declare function DefaultAlertingDialog(props: IDefaultAlertingDialogProps): ReactElement;
41
41
  //# sourceMappingURL=DefaultAlertingDialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultAlertingDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.tsx"],"names":[],"mappings":"AAsDA,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAW/D,wBAAgB,sBAAsB,CAAC,EACnC,QAAQ,EACR,eAAe,EACf,aAAa,EACb,OAAO,EACP,SAAS,EACT,WAAW,EACX,aAAa,EACb,KAAK,EACL,UAAU,EACV,aAAa,EAChB,EAAE,2BAA2B,2CAiO7B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,2BAA2B,2CAcvE"}
1
+ {"version":3,"file":"DefaultAlertingDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AA2B1C,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAM/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,2BAA2B,GAAG,YAAY,CActF"}
@@ -1,110 +1,26 @@
1
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // (C) 2019-2026 GoodData Corporation
3
- import { useEffect, useRef, useState } from "react";
4
- import { FormattedMessage, useIntl } from "react-intl";
5
- import { ValidationContextStore, createInvalidDatapoint, createInvalidNode, useValidationContextValue, } from "@gooddata/sdk-ui";
6
- import { ConfirmDialogBase, ContentDivider, Message, Overlay, OverlayController, OverlayControllerProvider, ScrollablePanel, useId, } from "@gooddata/sdk-ui-kit";
7
- import { DASHBOARD_DIALOG_OVERS_Z_INDEX } from "../../../constants/zIndex.js";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { FormattedMessage } from "react-intl";
3
+ import { ContentDivider } from "@gooddata/sdk-ui-kit";
8
4
  import { IntlWrapper } from "../../../localization/IntlWrapper.js";
9
5
  import { useAlertingDialogContext } from "../../contexts/AlertingDialogContext.js";
10
6
  import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
11
- import { ApplyCurrentFiltersConfirmDialog } from "../../shared/automationFilters/components/ApplyLatestFiltersConfirmDialog.js";
12
- import { AutomationDialogFooterLeft, DefaultAutomationDialogActionBar, } from "../../shared/slots/DefaultAutomationDialogActionBar.js";
13
7
  import { AlertingDialogAttribute } from "../blocks/AlertingDialogAttribute.js";
14
8
  import { AlertingDialogComparisonOperator } from "../blocks/AlertingDialogComparisonOperator.js";
15
9
  import { AlertingDialogComparisonPeriod } from "../blocks/AlertingDialogComparisonPeriod.js";
10
+ import { AlertingDialogFormFieldGroup } from "../blocks/AlertingDialogFormFieldGroup.js";
16
11
  import { AlertingDialogGranularity } from "../blocks/AlertingDialogGranularity.js";
17
12
  import { AlertingDialogMeasure } from "../blocks/AlertingDialogMeasure.js";
18
13
  import { AlertingDialogSensitivity } from "../blocks/AlertingDialogSensitivity.js";
14
+ import { AlertingDialogShell } from "../blocks/AlertingDialogShell.js";
19
15
  import { AlertingDialogThreshold } from "../blocks/AlertingDialogThreshold.js";
20
16
  import { AlertingDialogTriggerInterval } from "../blocks/AlertingDialogTriggerInterval.js";
21
17
  import { AlertingDialogTriggerMode } from "../blocks/AlertingDialogTriggerMode.js";
22
- import { DeleteAlertConfirmDialog } from "../DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.js";
23
- import { useAlertDraft } from "../state/AlertDraftContext.js";
24
- import { useAlertFilters } from "../state/AlertFiltersContext.js";
25
- import { useAlertDialogValidity } from "../state/useAlertDialogValidity.js";
26
- import { useAlertingDialogActionBarProps, useAlertingDialogDestinationProps, useAlertingDialogFiltersProps, useAlertingDialogHeaderProps, useAlertingDialogRecipientsProps, } from "../state/useAlertingDialogRegionProps.js";
18
+ import { DefaultLoadingAlertingDialog } from "../blocks/DefaultLoadingAlertingDialog.js";
19
+ import { useAlertingDialogDestinationProps, useAlertingDialogFiltersProps, useAlertingDialogRecipientsProps, } from "../state/useAlertingDialogRegionProps.js";
27
20
  import { useAlertSubmit } from "../state/useAlertSubmit.js";
28
- import { ALERTING_DIALOG_ID } from "./constants.js";
29
21
  import { DefaultAlertingDialogDestination } from "./DefaultAlertingDialogDestination.js";
30
22
  import { DefaultAlertingDialogFilters } from "./DefaultAlertingDialogFilters.js";
31
- import { DefaultAlertingDialogHeader } from "./DefaultAlertingDialogHeader.js";
32
23
  import { DefaultAlertingDialogRecipients } from "./DefaultAlertingDialogRecipients.js";
33
- import { DefaultLoadingAlertingDialog } from "./DefaultLoadingAlertingDialog.js";
34
- const overlayController = OverlayController.getInstance(DASHBOARD_DIALOG_OVERS_Z_INDEX);
35
- export function AlertingDialogRenderer({ onCancel, onDeleteSuccess, onDeleteError, onError, onSuccess, onSaveError, onSaveSuccess, slots, topContent, bottomContent, }) {
36
- const HeaderSlot = slots?.Header;
37
- const FiltersSlot = slots?.Filters;
38
- const DestinationSlot = slots?.Destination;
39
- const RecipientsSlot = slots?.Recipients;
40
- const ActionBarSlot = slots?.ActionBar;
41
- const intl = useIntl();
42
- const dialogTitleRef = useRef(null);
43
- const { alertToEdit, notificationChannels } = useAlertingDialogContext();
44
- const [alertToDelete, setAlertToDelete] = useState(null);
45
- const handleAlertDeleteSuccess = (alert) => {
46
- onDeleteSuccess?.(alert);
47
- setAlertToDelete(null);
48
- };
49
- const { warningMessage } = useAlertDraft();
50
- const { onApplyCurrentFilters, automationIsValid, filtersAreStale, dropStaleParameters } = useAlertFilters();
51
- const { validationErrorMessage, isInvalidConnectionToInsight } = useAlertDialogValidity();
52
- const [isApplyCurrentFiltersDialogOpen, setIsApplyCurrentFiltersDialogOpen] = useState(!automationIsValid);
53
- const { isSaving, submit } = useAlertSubmit({ onSuccess, onError, onSaveSuccess, onSaveError });
54
- const headerDefaultProps = useAlertingDialogHeaderProps({ onCancel, ref: dialogTitleRef });
55
- const filtersDefaultProps = useAlertingDialogFiltersProps();
56
- const destinationDefaultProps = useAlertingDialogDestinationProps();
57
- const recipientsDefaultProps = useAlertingDialogRecipientsProps();
58
- const actionBarDefaultProps = useAlertingDialogActionBarProps({
59
- onCancel,
60
- onSubmit: () => void submit(),
61
- isSaving,
62
- onDelete: () => setAlertToDelete(alertToEdit),
63
- });
64
- const validationContextValue = useValidationContextValue(createInvalidNode({ id: "AlertingDialog" }));
65
- const { setInvalidDatapoints, getInvalidDatapoints } = validationContextValue;
66
- const invalidDatapoints = getInvalidDatapoints();
67
- useEffect(() => {
68
- setInvalidDatapoints(() => [
69
- !!validationErrorMessage &&
70
- createInvalidDatapoint({
71
- message: validationErrorMessage,
72
- severity: isInvalidConnectionToInsight ? "error" : "warning",
73
- }),
74
- ]);
75
- }, [validationErrorMessage, isInvalidConnectionToInsight, setInvalidDatapoints]);
76
- const titleElementId = useId();
77
- if (isApplyCurrentFiltersDialogOpen) {
78
- return (_jsx(ApplyCurrentFiltersConfirmDialog, { automationType: "alert", onCancel: () => onCancel?.(), onEdit: () => {
79
- // Repair only what is actually stale: replace filters when they are invalid, and
80
- // drop catalog-absent parameters. A valid saved filter set survives a param-only fix.
81
- if (filtersAreStale) {
82
- onApplyCurrentFilters();
83
- }
84
- dropStaleParameters();
85
- setIsApplyCurrentFiltersDialogOpen(false);
86
- } }));
87
- }
88
- return (_jsxs(_Fragment, { children: [
89
- _jsx(Overlay, { className: "gd-notifications-channels-dialog-overlay", isModal: true, positionType: "fixed", ensureVisibility: true, children: _jsx(OverlayControllerProvider, { overlayController: overlayController, children: _jsx(ValidationContextStore, { value: validationContextValue, children: _jsxs(ConfirmDialogBase, { className: "gd-notifications-channels-dialog s-gd-notifications-channels-dialog gd-dialog--wide gd-notifications-channels-dialog--wide", isPositive: true, cancelButtonText: actionBarDefaultProps.cancelButtonText, submitButtonText: actionBarDefaultProps.submitButtonText, accessibilityConfig: {
90
- closeButton: {
91
- ariaLabel: intl.formatMessage({ id: "dialogs.alert.closeLabel" }),
92
- },
93
- titleElementId,
94
- dialogId: ALERTING_DIALOG_ID,
95
- }, showProgressIndicator: actionBarDefaultProps.isSaving, returnFocusAfterClose: false, footerLeftRenderer: ActionBarSlot
96
- ? undefined
97
- : () => (_jsx(AutomationDialogFooterLeft, { helpLinkText: actionBarDefaultProps.helpLinkText, helpLinkHref: actionBarDefaultProps.helpLinkHref, deleteButtonText: actionBarDefaultProps.deleteButtonText, onDelete: actionBarDefaultProps.onDelete, isDeleteDisabled: actionBarDefaultProps.isSaving })), footerRenderer: ActionBarSlot
98
- ? () => (_jsx(ActionBarSlot, { Default: DefaultAutomationDialogActionBar, defaultProps: actionBarDefaultProps }))
99
- : undefined, isSubmitDisabled: actionBarDefaultProps.isSubmitDisabled, submitButtonTooltipText: actionBarDefaultProps.submitButtonTooltipText, initialFocus: dialogTitleRef, submitOnEnterKey: false, onCancel: onCancel, onSubmit: actionBarDefaultProps.onSubmit, headline: undefined, headerLeftButtonRenderer: () => {
100
- return HeaderSlot ? (_jsx(HeaderSlot, { Default: DefaultAlertingDialogHeader, defaultProps: headerDefaultProps })) : (_jsx(DefaultAlertingDialogHeader, { ...headerDefaultProps }));
101
- }, children: [
102
- _jsx("h2", { className: "sr-only", id: titleElementId, children: intl.formatMessage({ id: "dialogs.alert.accessibility.label.title" }) }), _jsxs(ScrollablePanel, { className: "gd-notifications-channel-dialog-content-wrapper gd-notification-channel-dialog-with-automation-filters", children: [topContent, _jsx("div", { className: "gd-divider-with-margin" }), _jsxs(_Fragment, { children: [FiltersSlot ? (_jsx(FiltersSlot, { Default: DefaultAlertingDialogFilters, defaultProps: filtersDefaultProps })) : (_jsx(DefaultAlertingDialogFilters, { ...filtersDefaultProps })), _jsx(ContentDivider, { className: "gd-divider-with-margin" })
103
- ] }), _jsxs(FormFieldGroup, { label: _jsx(FormattedMessage, { id: "insightAlert.config.when" }), children: [
104
- _jsx(AlertingDialogMeasure, {}), _jsx(AlertingDialogAttribute, {}), _jsx(AlertingDialogComparisonOperator, {}), _jsx(AlertingDialogThreshold, {}), _jsx(AlertingDialogComparisonPeriod, {}), _jsx(AlertingDialogSensitivity, {}), _jsx(AlertingDialogGranularity, {})
105
- ] }), _jsx(ContentDivider, { className: "gd-divider-with-margin" }), _jsxs(FormFieldGroup, { label: _jsx(FormattedMessage, { id: "insightAlert.config.do" }), children: [notificationChannels.length > 1 ? (DestinationSlot ? (_jsx(DestinationSlot, { Default: DefaultAlertingDialogDestination, defaultProps: destinationDefaultProps })) : (_jsx(DefaultAlertingDialogDestination, { ...destinationDefaultProps }))) : null, _jsx(AlertingDialogTriggerMode, {}), _jsx(AlertingDialogTriggerInterval, {}), RecipientsSlot ? (_jsx(RecipientsSlot, { Default: DefaultAlertingDialogRecipients, defaultProps: recipientsDefaultProps })) : (_jsx(DefaultAlertingDialogRecipients, { ...recipientsDefaultProps }))] }), warningMessage ? (_jsx(Message, { type: "warning", className: "gd-notifications-channels-dialog-error", children: warningMessage })) : null, invalidDatapoints.map((datapoint) => (_jsx(Message, { id: datapoint.id, type: datapoint.severity === "info" ? "progress" : datapoint.severity, className: "gd-notifications-channels-dialog-error gd-notifications-channels-dialog-error-scrollable", children: datapoint.message }, datapoint.id))), bottomContent] })
106
- ] }) }) }) }), alertToDelete ? (_jsx(DeleteAlertConfirmDialog, { alert: alertToDelete, onCancel: () => setAlertToDelete(null), onSuccess: handleAlertDeleteSuccess, onError: onDeleteError })) : null] }));
107
- }
108
24
  /**
109
25
  * Default implementation of the alerting create/edit dialog.
110
26
  *
@@ -122,20 +38,20 @@ export function AlertingDialogRenderer({ onCancel, onDeleteSuccess, onDeleteErro
122
38
  * that is what lets a wholesale replacement receive the same contexts. Rendering this component
123
39
  * outside those providers throws at runtime.
124
40
  *
125
- * The dialog is composed from the exported region renders — {@link DefaultAlertingDialogHeader},
126
- * {@link DefaultAlertingDialogFilters}, {@link DefaultAlertingDialogDestination},
127
- * {@link DefaultAlertingDialogRecipients}, {@link DefaultAutomationDialogActionBar} — fed by the
128
- * matching `use*Props` hooks ({@link useAlertingDialogFiltersProps} and siblings), and from the
129
- * connected field blocks — {@link AlertingDialogMeasure}, {@link AlertingDialogAttribute},
130
- * {@link AlertingDialogComparisonOperator}, {@link AlertingDialogThreshold},
131
- * {@link AlertingDialogComparisonPeriod}, {@link AlertingDialogSensitivity},
132
- * {@link AlertingDialogGranularity}, {@link AlertingDialogTriggerMode},
133
- * {@link AlertingDialogTriggerInterval} — each a labelled {@link AutomationDialogFormField} row; the
134
- * conditional ones (Attribute, Threshold, ComparisonPeriod, Sensitivity, Granularity, TriggerInterval)
135
- * gate themselves on the draft. A custom `AlertingDialogComponent` that keeps our regions and fields
136
- * but owns the markup places the connected blocks ({@link AlertingDialogFilters},
137
- * {@link AlertingDialogThreshold} and siblings) instead of this component, and reads or writes the
138
- * same draft through {@link useAlertDraft} and {@link useAlertActions}.
41
+ * The dialog is {@link AlertingDialogShell} — the chrome: overlay, frame, header row, action bar, the
42
+ * dialog's messages, the stale-filters and delete confirmation steps, the loading skeleton — around the
43
+ * exported region renders ({@link DefaultAlertingDialogFilters}, {@link DefaultAlertingDialogDestination},
44
+ * {@link DefaultAlertingDialogRecipients}, fed by {@link useAlertingDialogFiltersProps} and siblings; the
45
+ * header and action bar are the shell's) and the connected field blocks — {@link AlertingDialogMeasure},
46
+ * {@link AlertingDialogAttribute}, {@link AlertingDialogComparisonOperator}, {@link AlertingDialogThreshold},
47
+ * {@link AlertingDialogComparisonPeriod}, {@link AlertingDialogSensitivity}, {@link AlertingDialogGranularity},
48
+ * {@link AlertingDialogTriggerMode}, {@link AlertingDialogTriggerInterval} — grouped under the "When" and
49
+ * "Do" headings by {@link AlertingDialogFormFieldGroup}; each field is a labelled
50
+ * {@link AutomationDialogFormField} row and the conditional ones gate themselves on the draft. A custom
51
+ * `AlertingDialogComponent` that keeps this chrome but owns the arrangement renders
52
+ * {@link AlertingDialogShell} around the blocks it wants (see its example); one that owns the chrome too
53
+ * places the blocks in its own markup and reads or writes the same draft through {@link useAlertDraft} and
54
+ * {@link useAlertActions}.
139
55
  *
140
56
  * Slots render only in the fully rendered dialog: not while the dialog context reports loading,
141
57
  * and not while the stale-filters confirmation step is shown.
@@ -149,10 +65,19 @@ export function DefaultAlertingDialog(props) {
149
65
  if (isLoading) {
150
66
  return _jsx(DefaultLoadingAlertingDialog, { onCancel: onCancel, alertToEdit: alertToEdit });
151
67
  }
152
- return (_jsx(IntlWrapper, { locale: locale, children: _jsx(AlertingDialogRenderer, { ...props }) }));
68
+ return (_jsx(IntlWrapper, { locale: locale, children: _jsx(DefaultAlertingDialogBody, { ...props }) }));
153
69
  }
154
- function FormFieldGroup({ label, children }) {
155
- return (_jsxs("div", { className: "gd-input-component gd-input-component--no-last-child-margin gd-dashboard-alerting-dialog-form-field-group", children: [
156
- _jsx("div", { className: "gd-dashboard-alerting-dialog-form-field-group__label-container", children: _jsx("label", { className: "gd-label gd-dashboard-alerting-dialog-form-field-group__label", children: label }) }), _jsx("div", { className: "gd-dashboard-alerting-dialog-form-field-group__content-container", children: children })
70
+ function DefaultAlertingDialogBody({ onCancel, onDeleteSuccess, onDeleteError, onError, onSuccess, onSaveError, onSaveSuccess, slots, topContent, bottomContent, }) {
71
+ const FiltersSlot = slots?.Filters;
72
+ const DestinationSlot = slots?.Destination;
73
+ const RecipientsSlot = slots?.Recipients;
74
+ const { notificationChannels } = useAlertingDialogContext();
75
+ const { isSaving, submit } = useAlertSubmit({ onSuccess, onError, onSaveSuccess, onSaveError });
76
+ const filtersDefaultProps = useAlertingDialogFiltersProps();
77
+ const destinationDefaultProps = useAlertingDialogDestinationProps();
78
+ const recipientsDefaultProps = useAlertingDialogRecipientsProps();
79
+ return (_jsxs(AlertingDialogShell, { onCancel: onCancel, onDeleteSuccess: onDeleteSuccess, onDeleteError: onDeleteError, onSubmit: () => void submit(), isSaving: isSaving, slots: slots, topContent: topContent, bottomContent: bottomContent, children: [FiltersSlot ? (_jsx(FiltersSlot, { Default: DefaultAlertingDialogFilters, defaultProps: filtersDefaultProps })) : (_jsx(DefaultAlertingDialogFilters, { ...filtersDefaultProps })), _jsx(ContentDivider, { className: "gd-divider-with-margin" }), _jsxs(AlertingDialogFormFieldGroup, { label: _jsx(FormattedMessage, { id: "insightAlert.config.when" }), children: [
80
+ _jsx(AlertingDialogMeasure, {}), _jsx(AlertingDialogAttribute, {}), _jsx(AlertingDialogComparisonOperator, {}), _jsx(AlertingDialogThreshold, {}), _jsx(AlertingDialogComparisonPeriod, {}), _jsx(AlertingDialogSensitivity, {}), _jsx(AlertingDialogGranularity, {})
81
+ ] }), _jsx(ContentDivider, { className: "gd-divider-with-margin" }), _jsxs(AlertingDialogFormFieldGroup, { label: _jsx(FormattedMessage, { id: "insightAlert.config.do" }), children: [notificationChannels.length > 1 ? (DestinationSlot ? (_jsx(DestinationSlot, { Default: DefaultAlertingDialogDestination, defaultProps: destinationDefaultProps })) : (_jsx(DefaultAlertingDialogDestination, { ...destinationDefaultProps }))) : null, _jsx(AlertingDialogTriggerMode, {}), _jsx(AlertingDialogTriggerInterval, {}), RecipientsSlot ? (_jsx(RecipientsSlot, { Default: DefaultAlertingDialogRecipients, defaultProps: recipientsDefaultProps })) : (_jsx(DefaultAlertingDialogRecipients, { ...recipientsDefaultProps }))] })
157
82
  ] }));
158
83
  }
@@ -0,0 +1,10 @@
1
+ import { type ReactElement } from "react";
2
+ import { type IAlertingDialogFormFieldGroupProps } from "../types.js";
3
+ /**
4
+ * A heading with a column of field rows under it — the default alerting dialog's "When" (the condition
5
+ * fields) and "Do" (the action fields) groups. Layout only; reads no dialog context.
6
+ *
7
+ * @alpha
8
+ */
9
+ export declare function AlertingDialogFormFieldGroup({ label, children }: IAlertingDialogFormFieldGroupProps): ReactElement;
10
+ //# sourceMappingURL=AlertingDialogFormFieldGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertingDialogFormFieldGroup.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,KAAK,kCAAkC,EAAE,MAAM,aAAa,CAAC;AAEtE;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,EACzC,KAAK,EACL,QAAQ,EACX,EAAE,kCAAkC,GAAG,YAAY,CAWnD"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * A heading with a column of field rows under it — the default alerting dialog's "When" (the condition
4
+ * fields) and "Do" (the action fields) groups. Layout only; reads no dialog context.
5
+ *
6
+ * @alpha
7
+ */
8
+ export function AlertingDialogFormFieldGroup({ label, children, }) {
9
+ return (_jsxs("div", { className: "gd-input-component gd-input-component--no-last-child-margin gd-dashboard-alerting-dialog-form-field-group", children: [
10
+ _jsx("div", { className: "gd-dashboard-alerting-dialog-form-field-group__label-container", children: _jsx("label", { className: "gd-label gd-dashboard-alerting-dialog-form-field-group__label", children: label }) }), _jsx("div", { className: "gd-dashboard-alerting-dialog-form-field-group__content-container", children: children })
11
+ ] }));
12
+ }
@@ -0,0 +1,49 @@
1
+ import { type ReactElement } from "react";
2
+ import { type IAlertingDialogShellProps } from "../types.js";
3
+ /**
4
+ * The alerting dialog's chrome, connected to the dialog's state: the modal overlay, the dialog frame
5
+ * with the header row (the title input) and the action bar, the scrollable content area around
6
+ * `children`, the dialog's warning and validation messages, the stale-filters confirmation step shown
7
+ * before the dialog when the saved filters no longer match the dashboard, and the delete confirmation
8
+ * reached from the action bar in edit mode. While `useAlertingDialogContext().isLoading` is true it
9
+ * renders the loading skeleton and none of its children.
10
+ *
11
+ * The default dialog is `<AlertingDialogShell>` around the region and field blocks; a custom
12
+ * `AlertingDialogComponent` that keeps this chrome and arranges the blocks differently renders the shell
13
+ * itself. The shell does not own the submit: call {@link useAlertSubmit} and pass its `submit` and
14
+ * `isSaving`, so the footer button and any Enter handler in the body share one instance. Call that hook
15
+ * only once `useAlertingDialogContext().isLoading` is false — the state hooks throw while the dialog
16
+ * loads — and render the shell alone (any `onSubmit`, `isSaving: false`) until then, as the example does.
17
+ *
18
+ * Needs an ambient `IntlProvider`; inside a `Dashboard` the dashboard's provider covers it.
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * function MyAlertingDialog(props: IAlertingDialogProps) {
23
+ * const { isLoading } = useAlertingDialogContext();
24
+ * // the state hooks throw while the dialog loads; the shell renders the loading skeleton
25
+ * if (isLoading) {
26
+ * return <AlertingDialogShell {...props} onSubmit={() => {}} isSaving={false} />;
27
+ * }
28
+ * return <MyAlertingDialogBody {...props} />;
29
+ * }
30
+ *
31
+ * function MyAlertingDialogBody(props: IAlertingDialogProps) {
32
+ * const { isSaving, submit } = useAlertSubmit(props);
33
+ * return (
34
+ * <AlertingDialogShell {...props} onSubmit={() => void submit()} isSaving={isSaving}>
35
+ * <AlertingDialogFormFieldGroup label="When">
36
+ * <AlertingDialogMeasure />
37
+ * <AlertingDialogComparisonOperator />
38
+ * <AlertingDialogThreshold />
39
+ * </AlertingDialogFormFieldGroup>
40
+ * <AlertingDialogRecipients />
41
+ * </AlertingDialogShell>
42
+ * );
43
+ * }
44
+ * ```
45
+ *
46
+ * @alpha
47
+ */
48
+ export declare function AlertingDialogShell(props: IAlertingDialogShellProps): ReactElement;
49
+ //# sourceMappingURL=AlertingDialogShell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertingDialogShell.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/blocks/AlertingDialogShell.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAA+B,MAAM,OAAO,CAAC;AAmCvE,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAM7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,yBAAyB,GAAG,YAAY,CAMlF"}