@gooddata/sdk-ui-dashboard 11.54.0 → 11.55.0-alpha.1
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 +3 -3
- package/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/_staging/metadata/objRefMap.d.ts +11 -0
- package/esm/_staging/metadata/objRefMap.d.ts.map +1 -1
- package/esm/_staging/metadata/objRefMap.js +19 -1
- package/esm/index.d.ts +49 -6
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +42 -2
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +4 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +9 -6
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadUnavailableReferences.d.ts +17 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadUnavailableReferences.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadUnavailableReferences.js +50 -0
- package/esm/model/commandHandlers/drill/crossFilteringHandler.d.ts +4 -1
- package/esm/model/commandHandlers/drill/crossFilteringHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/crossFilteringHandler.js +5 -3
- package/esm/model/commandHandlers/filterContext/common.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/common.js +5 -2
- package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/filterViewHandler.js +2 -2
- package/esm/model/commands/filters.d.ts +3 -3
- package/esm/model/store/config/configSelectors.d.ts +6 -0
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +8 -0
- package/esm/model/store/dashboardStore.d.ts +2 -0
- package/esm/model/store/dashboardStore.d.ts.map +1 -1
- package/esm/model/store/dashboardStore.js +2 -0
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts +13 -9
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextReducers.js +28 -21
- package/esm/model/store/tabs/index.d.ts +136 -128
- package/esm/model/store/tabs/index.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +17 -4
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.js +32 -8
- package/esm/model/store/tabs/parameters/parametersReducers.d.ts +29 -1
- package/esm/model/store/tabs/parameters/parametersReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersReducers.js +48 -6
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +26 -5
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.js +33 -14
- package/esm/model/store/tabs/parameters/parametersState.d.ts +7 -0
- package/esm/model/store/tabs/parameters/parametersState.d.ts.map +1 -1
- package/esm/model/store/tabs/tabsReducers.d.ts +14 -0
- package/esm/model/store/tabs/tabsReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/tabsReducers.js +21 -1
- package/esm/model/store/tabs/workingSelectionSelectors.d.ts +9 -0
- package/esm/model/store/tabs/workingSelectionSelectors.d.ts.map +1 -0
- package/esm/model/store/tabs/workingSelectionSelectors.js +11 -0
- package/esm/model/store/types.d.ts +3 -0
- package/esm/model/store/types.d.ts.map +1 -1
- package/esm/model/store/unavailableObjects/index.d.ts +8 -0
- package/esm/model/store/unavailableObjects/index.d.ts.map +1 -0
- package/esm/model/store/unavailableObjects/index.js +13 -0
- package/esm/model/store/unavailableObjects/unavailableObjectsEntityAdapter.d.ts +9 -0
- package/esm/model/store/unavailableObjects/unavailableObjectsEntityAdapter.d.ts.map +1 -0
- package/esm/model/store/unavailableObjects/unavailableObjectsEntityAdapter.js +12 -0
- package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.d.ts +18 -0
- package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.d.ts.map +1 -0
- package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.js +20 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +8 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +21 -13
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogDestination.d.ts +11 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogDestination.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/{AlertingDialogDestination.js → DefaultAlertingDialogDestination.js} +7 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogFilters.d.ts +12 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogFilters.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogFilters.js +17 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogHeader.d.ts +11 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogHeader.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/{AlertingDialogHeader.js → DefaultAlertingDialogHeader.js} +10 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogRecipients.d.ts +11 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogRecipients.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/{AlertingDialogRecipients.js → DefaultAlertingDialogRecipients.js} +7 -3
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.d.ts +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.js +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.js +2 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertMeasureSelect.js +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/constants.d.ts +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/constants.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/constants.js +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertThreshold.js +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useThresholdValue.js +2 -2
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContent.js +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/Alert.js +2 -2
- package/esm/presentation/automations/alerting/blocks/AlertingDialogActionBar.d.ts +30 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogActionBar.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogActionBar.js +30 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogDestination.d.ts +15 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogDestination.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogDestination.js +23 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogFilters.d.ts +16 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogFilters.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogFilters.js +25 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogHeader.d.ts +26 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogHeader.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogHeader.js +36 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogRecipients.d.ts +13 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogRecipients.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogRecipients.js +21 -0
- package/esm/presentation/automations/alerting/blocks/WhenAlertingDialogLoaded.d.ts +12 -0
- package/esm/presentation/automations/alerting/blocks/WhenAlertingDialogLoaded.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/blocks/WhenAlertingDialogLoaded.js +13 -0
- package/esm/presentation/automations/alerting/hooks/useAlertValidation.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/{DefaultAlertingDialog/hooks → hooks}/useAttributeValuesFromExecResults.d.ts +20 -0
- package/esm/presentation/automations/alerting/hooks/useAttributeValuesFromExecResults.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/{DefaultAlertingDialog/hooks → hooks}/useAttributeValuesFromExecResults.js +5 -0
- package/esm/presentation/automations/alerting/hooks/useGetSupportedMeasures.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/hooks/useGetSupportedMeasures.js +1 -1
- package/esm/presentation/automations/alerting/state/AlertActionsContext.d.ts +1 -1
- package/esm/presentation/automations/alerting/state/AlertActionsContext.js +1 -1
- package/esm/presentation/automations/alerting/state/AlertDataContext.d.ts +1 -1
- package/esm/presentation/automations/alerting/state/AlertDataContext.js +1 -1
- package/esm/presentation/automations/alerting/state/AlertDraftContext.d.ts +1 -1
- package/esm/presentation/automations/alerting/state/AlertDraftContext.js +1 -1
- package/esm/presentation/automations/alerting/state/AlertFiltersContext.d.ts +1 -1
- package/esm/presentation/automations/alerting/state/AlertFiltersContext.js +1 -1
- package/esm/presentation/automations/alerting/state/types.d.ts +179 -9
- package/esm/presentation/automations/alerting/state/types.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/state/useAlertDialogValidity.d.ts +3 -8
- package/esm/presentation/automations/alerting/state/useAlertDialogValidity.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/state/useAlertDialogValidity.js +1 -1
- package/esm/presentation/automations/alerting/state/useAlertFiltersModel.d.ts +1 -1
- package/esm/presentation/automations/alerting/state/useAlertFiltersModel.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/state/useAlertFiltersModel.js +1 -1
- package/esm/presentation/automations/alerting/state/useAlertFormState.d.ts +1 -1
- package/esm/presentation/automations/alerting/state/useAlertFormState.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/state/useAlertFormState.js +2 -2
- package/esm/presentation/automations/alerting/state/useAlertFormValidation.js +2 -2
- package/esm/presentation/automations/alerting/state/useAlertSelectedValues.d.ts +4 -16
- package/esm/presentation/automations/alerting/state/useAlertSelectedValues.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/state/useAlertSelectedValues.js +2 -2
- package/esm/presentation/automations/alerting/state/useAlertSubmit.d.ts +13 -0
- package/esm/presentation/automations/alerting/state/useAlertSubmit.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/{DefaultAlertingDialog/hooks → state}/useAlertSubmit.js +5 -5
- package/esm/presentation/automations/alerting/state/useAlertSupportedMetrics.js +3 -3
- package/esm/presentation/automations/alerting/state/useAlertingDialogRegionProps.d.ts +8 -8
- package/esm/presentation/automations/alerting/state/useAlertingDialogRegionProps.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/state/useAlertingDialogRegionProps.js +7 -7
- package/esm/presentation/automations/alerting/types.d.ts +48 -6
- package/esm/presentation/automations/alerting/types.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/types.js +3 -1
- package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/convertors.d.ts +1 -1
- package/esm/presentation/automations/alerting/utils/convertors.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/utils/cron.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/getters.d.ts +14 -2
- package/esm/presentation/automations/alerting/utils/getters.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/getters.js +1 -1
- package/esm/presentation/automations/alerting/utils/granularity.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/utils/guards.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/items.d.ts +1 -1
- package/esm/presentation/automations/alerting/utils/items.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/items.js +1 -1
- package/esm/presentation/automations/alerting/utils/responsive.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/utils/threshold.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/transformation.d.ts +1 -1
- package/esm/presentation/automations/alerting/utils/transformation.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/transformation.js +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts +9 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +21 -12
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDestination.d.ts +11 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDestination.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDestination.js +15 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogFilters.d.ts +12 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogFilters.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogFilters.js +16 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogHeader.d.ts +11 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogHeader.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/{Header/ScheduleEmailDialogHeader.js → DefaultScheduledEmailDialogHeader.js} +11 -3
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecipients.d.ts +11 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecipients.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecipients.js +13 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogTimezone.d.ts +17 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogTimezone.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/{ScheduleTimezoneSelect/ScheduleTimezoneSelect.js → DefaultScheduledEmailDialogTimezone.js} +6 -4
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogActionBar.d.ts +36 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogActionBar.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogActionBar.js +35 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDestination.d.ts +13 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDestination.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDestination.js +21 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogFilters.d.ts +17 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogFilters.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogFilters.js +26 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogHeader.d.ts +17 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogHeader.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogHeader.js +32 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecipients.d.ts +15 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecipients.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecipients.js +25 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogTimezone.d.ts +15 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogTimezone.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogTimezone.js +26 -0
- package/esm/presentation/automations/scheduledEmail/blocks/WhenScheduledEmailDialogLoaded.d.ts +14 -0
- package/esm/presentation/automations/scheduledEmail/blocks/WhenScheduledEmailDialogLoaded.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/blocks/WhenScheduledEmailDialogLoaded.js +15 -0
- package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog/hooks → hooks}/useExportTimezones.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/hooks/useExportTimezones.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog/hooks → hooks}/useExportTimezones.js +1 -1
- package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog/hooks → hooks}/useScheduleTimezone.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/hooks/useScheduleTimezone.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog/hooks → hooks}/useScheduleTimezone.js +1 -1
- package/esm/presentation/automations/scheduledEmail/hooks/useScheduleValidation.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog/hooks → hooks}/useScheduleValidation.js +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledEmailDialogStateProvider.js +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledExportActionsContext.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledExportActionsContext.js +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDataContext.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDataContext.js +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDraftContext.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDraftContext.js +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledExportFiltersContext.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledExportFiltersContext.js +1 -1
- package/esm/presentation/automations/scheduledEmail/state/types.d.ts +204 -5
- package/esm/presentation/automations/scheduledEmail/state/types.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useSaveScheduledEmailToBackend.d.ts +12 -0
- package/esm/presentation/automations/scheduledEmail/state/useSaveScheduledEmailToBackend.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog/hooks → state}/useSaveScheduledEmailToBackend.js +3 -3
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogRegionProps.d.ts +10 -10
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogRegionProps.js +6 -6
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.js +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormState.js +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.d.ts +2 -7
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.js +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.d.ts +3 -27
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.js +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.d.ts +3 -3
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.js +1 -1
- package/esm/presentation/automations/scheduledEmail/types.d.ts +4 -2
- package/esm/presentation/automations/scheduledEmail/types.d.ts.map +1 -1
- package/esm/presentation/automations/shared/slots/DefaultAutomationDialogActionBar.d.ts +27 -0
- package/esm/presentation/automations/shared/slots/DefaultAutomationDialogActionBar.d.ts.map +1 -0
- package/esm/presentation/automations/shared/slots/{AutomationDialogActionBar.js → DefaultAutomationDialogActionBar.js} +7 -5
- package/esm/presentation/dashboardSettingsDialog/TimezoneOption.d.ts.map +1 -1
- package/esm/presentation/dashboardSettingsDialog/TimezoneOption.js +1 -1
- package/esm/presentation/dragAndDrop/draggableParameterFilter/DefaultParameterDraggingComponent.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableParameterFilter/DefaultParameterDraggingComponent.js +5 -6
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +5 -4
- package/esm/presentation/filterBar/parameterFilter/DashboardParameterFilter.d.ts.map +1 -1
- package/esm/presentation/filterBar/parameterFilter/DashboardParameterFilter.js +11 -8
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +7 -7
- package/esm/presentation/localization/bundles/es-419.localization-bundle.js +6 -6
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +6 -4
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +4 -4
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +4 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertsNew.js +1 -1
- package/esm/sdk-ui-dashboard.d.ts +1828 -250
- package/package.json +25 -25
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogDestination.d.ts +0 -6
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogDestination.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogFilters.d.ts +0 -8
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogFilters.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogFilters.js +0 -13
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogHeader.d.ts +0 -3
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogHeader.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogRecipients.d.ts +0 -7
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogRecipients.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSubmit.d.ts +0 -23
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSubmit.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertValidation.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/convertors.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/cron.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/getters.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/granularity.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/guards.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/items.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/responsive.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/threshold.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/transformation.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Header/ScheduleEmailDialogHeader.d.ts +0 -3
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Header/ScheduleEmailDialogHeader.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduleTimezoneSelect/ScheduleTimezoneSelect.d.ts +0 -15
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduleTimezoneSelect/ScheduleTimezoneSelect.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogDestination.d.ts +0 -6
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogDestination.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogDestination.js +0 -10
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogFilters.d.ts +0 -7
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogFilters.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogFilters.js +0 -11
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogRecipients.d.ts +0 -6
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogRecipients.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogRecipients.js +0 -8
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useExportTimezones.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.d.ts +0 -23
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduleTimezone.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduleValidation.d.ts.map +0 -1
- package/esm/presentation/automations/shared/slots/AutomationDialogActionBar.d.ts +0 -25
- package/esm/presentation/automations/shared/slots/AutomationDialogActionBar.d.ts.map +0 -1
- /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/hooks → hooks}/useAlertValidation.d.ts +0 -0
- /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/hooks → hooks}/useAlertValidation.js +0 -0
- /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/convertors.js +0 -0
- /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/cron.d.ts +0 -0
- /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/cron.js +0 -0
- /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/granularity.d.ts +0 -0
- /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/granularity.js +0 -0
- /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/guards.d.ts +0 -0
- /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/guards.js +0 -0
- /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/responsive.d.ts +0 -0
- /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/responsive.js +0 -0
- /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/threshold.d.ts +0 -0
- /package/esm/presentation/automations/alerting/{DefaultAlertingDialog/utils → utils}/threshold.js +0 -0
- /package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog/hooks → hooks}/useScheduleValidation.d.ts +0 -0
|
@@ -6,7 +6,15 @@ import { useIntl } from "react-intl";
|
|
|
6
6
|
import { createInvalidDatapoint, createInvalidNode, useValidationContextValue } from "@gooddata/sdk-ui";
|
|
7
7
|
import { Bubble, BubbleHoverTrigger, Button, IconError, useIdPrefixed } from "@gooddata/sdk-ui-kit";
|
|
8
8
|
import { MAX_AUTOMATION_TITLE_LENGTH, isAutomationTitleValid } from "../../shared/utils/automationTitle.js";
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Default render of the alerting dialog's header region: the back button and the title input with
|
|
11
|
+
* its length validation. Props-driven — reads no alerting dialog state. The default dialog and
|
|
12
|
+
* {@link AlertingDialogHeader} render it with {@link useAlertingDialogHeaderProps}; a `slots.Header`
|
|
13
|
+
* slot receives it as `Default`.
|
|
14
|
+
*
|
|
15
|
+
* @alpha
|
|
16
|
+
*/
|
|
17
|
+
export const DefaultAlertingDialogHeader = forwardRef((props, ref) => {
|
|
10
18
|
const { title, onChange, onCancel, placeholder, isSecondaryTitleVisible, secondaryTitle, secondaryTitleIcon, } = props;
|
|
11
19
|
const { formatMessage } = useIntl();
|
|
12
20
|
const validationContextValue = useValidationContextValue(createInvalidNode({ id: "AlertingDialogHeader" }));
|
|
@@ -59,4 +67,4 @@ export const AlertingDialogHeader = forwardRef((props, ref) => {
|
|
|
59
67
|
] })) : null] }) })
|
|
60
68
|
] }));
|
|
61
69
|
});
|
|
62
|
-
|
|
70
|
+
DefaultAlertingDialogHeader.displayName = "DefaultAlertingDialogHeader";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type IAutomationDialogRecipientsProps } from "../../shared/slots/types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Default render of the alerting dialog's recipients region: the recipients select in a form-field
|
|
4
|
+
* row; the row carries the label, so the select's own label is off. Props-driven — reads no context.
|
|
5
|
+
* The default dialog and {@link AlertingDialogRecipients} render it with
|
|
6
|
+
* {@link useAlertingDialogRecipientsProps}; a `slots.Recipients` slot receives it as `Default`.
|
|
7
|
+
*
|
|
8
|
+
* @alpha
|
|
9
|
+
*/
|
|
10
|
+
export declare function DefaultAlertingDialogRecipients(props: IAutomationDialogRecipientsProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=DefaultAlertingDialogRecipients.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultAlertingDialogRecipients.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogRecipients.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,6BAA6B,CAAC;AAIpF;;;;;;;GAOG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,gCAAgC,2CAUtF"}
|
|
@@ -4,9 +4,13 @@ import { FormattedMessage } from "react-intl";
|
|
|
4
4
|
import { RecipientsSelect } from "../../scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js";
|
|
5
5
|
import { FormField } from "./FormField.js";
|
|
6
6
|
/**
|
|
7
|
-
* Default
|
|
8
|
-
*
|
|
7
|
+
* Default render of the alerting dialog's recipients region: the recipients select in a form-field
|
|
8
|
+
* row; the row carries the label, so the select's own label is off. Props-driven — reads no context.
|
|
9
|
+
* The default dialog and {@link AlertingDialogRecipients} render it with
|
|
10
|
+
* {@link useAlertingDialogRecipientsProps}; a `slots.Recipients` slot receives it as `Default`.
|
|
11
|
+
*
|
|
12
|
+
* @alpha
|
|
9
13
|
*/
|
|
10
|
-
export function
|
|
14
|
+
export function DefaultAlertingDialogRecipients(props) {
|
|
11
15
|
return (_jsx(FormField, { label: _jsx(FormattedMessage, { id: "insightAlert.config.recipients" }), htmlFor: "alert.recipients", fullWidth: true, children: _jsx(RecipientsSelect, { id: "alert.recipients", showLabel: false, ...props }) }));
|
|
12
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type IAttributeMetadataObject, type ICatalogAttribute, type ICatalogDateDataset } from "@gooddata/sdk-model";
|
|
2
|
+
import { type AttributeValue } from "../../hooks/useAttributeValuesFromExecResults.js";
|
|
2
3
|
import { type AlertAttribute } from "../../types.js";
|
|
3
|
-
import { type AttributeValue } from "../hooks/useAttributeValuesFromExecResults.js";
|
|
4
4
|
export interface IAlertAttributeSelectProps {
|
|
5
5
|
id: string;
|
|
6
6
|
disabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertAttributeSelect.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.tsx"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EAE3B,MAAM,qBAAqB,CAAC;AAY7B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AlertAttributeSelect.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.tsx"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EAE3B,MAAM,qBAAqB,CAAC;AAY7B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD,MAAM,WAAW,0BAA0B;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAC;IAC9C,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,iBAAiB,EAAE,CAAC,SAAS,EAAE,cAAc,GAAG,SAAS,EAAE,KAAK,EAAE,cAAc,GAAG,SAAS,KAAK,IAAI,CAAC;IACtG,UAAU,EAAE,cAAc,EAAE,CAAC;IAC7B,iBAAiB,EAAE,iBAAiB,EAAE,CAAC;IACvC,mBAAmB,EAAE,mBAAmB,EAAE,CAAC;IAC3C,kBAAkB,EAAE,CAAC,IAAI,EAAE,wBAAwB,KAAK,cAAc,EAAE,CAAC;IACzE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AA0HD,wBAAgB,oBAAoB,CAAC,EACjC,EAAE,EACF,QAAQ,EACR,iBAAiB,EAAE,qBAAqB,EACxC,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACnB,SAAgB,EAChB,mBAAmB,EACtB,EAAE,0BAA0B,kDA8M5B"}
|
|
@@ -5,7 +5,7 @@ import cx from "classnames";
|
|
|
5
5
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
6
|
import { areObjRefsEqual, } from "@gooddata/sdk-model";
|
|
7
7
|
import { Dropdown, DropdownButton, InvertableSelectSearchBar, Item, Separator, UiMenu, } from "@gooddata/sdk-ui-kit";
|
|
8
|
-
import { getSelectedCatalogAttribute, getSelectedCatalogAttributeValue } from "
|
|
8
|
+
import { getSelectedCatalogAttribute, getSelectedCatalogAttributeValue } from "../../utils/getters.js";
|
|
9
9
|
const createInteractiveItem = (id, title, attribute, value, isSelected, subItems) => ({
|
|
10
10
|
type: "interactive",
|
|
11
11
|
id,
|
|
@@ -6,8 +6,8 @@ import { useIntl } from "react-intl";
|
|
|
6
6
|
import { DateGranularity, } from "@gooddata/sdk-model";
|
|
7
7
|
import { Dropdown, DropdownButton, SingleSelectListItem, UiListbox, } from "@gooddata/sdk-ui-kit";
|
|
8
8
|
import { AlertMetricComparatorType } from "../../types.js";
|
|
9
|
-
import { translateGranularity } from "
|
|
10
|
-
import { isChangeOrDifferenceOperator } from "
|
|
9
|
+
import { translateGranularity } from "../../utils/granularity.js";
|
|
10
|
+
import { isChangeOrDifferenceOperator } from "../../utils/guards.js";
|
|
11
11
|
export function AlertComparisonPeriodSelect({ alert, measure, overlayPositionType, selectedComparison, selectedGranularity, onComparisonChange, id, closeOnParentScroll, }) {
|
|
12
12
|
const intl = useIntl();
|
|
13
13
|
const selectedOperator = useMemo(() => {
|
package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertMeasureSelect.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useRef } from "react";
|
|
|
4
4
|
import cx from "classnames";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { Dropdown, DropdownButton, SingleSelectListItem, UiListbox, } from "@gooddata/sdk-ui-kit";
|
|
7
|
-
import { getMeasureTitle } from "
|
|
7
|
+
import { getMeasureTitle } from "../../utils/getters.js";
|
|
8
8
|
const measureIcon = _jsx("div", { className: "gd-alert-measure-select__icon gd-icon-metric" });
|
|
9
9
|
export function AlertMeasureSelect({ id, disabled, selectedMeasure, onMeasureChange, measures, overlayPositionType, closeOnParentScroll, }) {
|
|
10
10
|
const intl = useIntl();
|
|
@@ -18,6 +18,5 @@ export declare const ANOMALY_DETECTION_HEADER: OperatorItemType<string>;
|
|
|
18
18
|
export declare const SEPARATOR: OperatorItemType<string>;
|
|
19
19
|
export declare const DROPDOWN_ITEM_HEIGHT = 28;
|
|
20
20
|
export declare const DROPDOWN_SEPARATOR_ITEM_HEIGHT = 10;
|
|
21
|
-
export declare const DEFAULT_MEASURE_FORMAT = "#,##0.00";
|
|
22
21
|
export declare const ALERTING_DIALOG_ID = "alerting-dialog";
|
|
23
22
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAQpE,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAIrE,MAAM,MAAM,gBAAgB,CAAC,CAAC,GAAG,wBAAwB,IAAI;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,CAAC,CAAC;IACN,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,gBAAgB,EAqBzD,CAAC;AACF,eAAO,MAAM,gCAAgC,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAgBtE,CAAC;AACF,eAAO,MAAM,oCAAoC,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAgB1E,CAAC;AACF,eAAO,MAAM,kCAAkC,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAMxE,CAAC;AAEF,eAAO,MAAM,SAAS,4BAKrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,gBAAgB,CAAC,MAAM,CAMlD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,CAAC,MAAM,CAMtD,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,CAAC,MAAM,CAM7D,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,gBAAgB,CAAC,MAAM,CAK9C,CAAC;AAEF,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,8BAA8B,KAAK,CAAC;AACjD,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAQpE,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAIrE,MAAM,MAAM,gBAAgB,CAAC,CAAC,GAAG,wBAAwB,IAAI;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,CAAC,CAAC;IACN,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,gBAAgB,EAqBzD,CAAC;AACF,eAAO,MAAM,gCAAgC,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAgBtE,CAAC;AACF,eAAO,MAAM,oCAAoC,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAgB1E,CAAC;AACF,eAAO,MAAM,kCAAkC,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAMxE,CAAC;AAEF,eAAO,MAAM,SAAS,4BAKrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,gBAAgB,CAAC,MAAM,CAMlD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,CAAC,MAAM,CAMtD,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,CAAC,MAAM,CAM7D,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,gBAAgB,CAAC,MAAM,CAK9C,CAAC;AAEF,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,8BAA8B,KAAK,CAAC;AACjD,eAAO,MAAM,kBAAkB,oBAAoB,CAAC"}
|
package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertThreshold.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
import { useCallback } from "react";
|
|
3
|
-
import { transformAlertByValue } from "
|
|
3
|
+
import { transformAlertByValue } from "../../utils/transformation.js";
|
|
4
4
|
import { useThresholdValue } from "./useThresholdValue.js";
|
|
5
5
|
/**
|
|
6
6
|
* Owns the alerting dialog's threshold field: the displayed value, its change and blur handlers,
|
package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useThresholdValue.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useEffect, useState } from "react";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
|
-
import { getAlertThreshold, getMeasureFormat } from "
|
|
5
|
-
import { convertThresholdValue } from "
|
|
4
|
+
import { getAlertThreshold, getMeasureFormat } from "../../utils/getters.js";
|
|
5
|
+
import { convertThresholdValue } from "../../utils/threshold.js";
|
|
6
6
|
function clearValueForRelativeOperator(changeValue, setValue) {
|
|
7
7
|
changeValue(undefined);
|
|
8
8
|
setValue(undefined);
|
|
@@ -13,9 +13,9 @@ import { useAlertingManagementDialogContext } from "../../contexts/AlertingManag
|
|
|
13
13
|
import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
|
|
14
14
|
import { computeUseHostRoute } from "../../shared/utils/automationUtils.js";
|
|
15
15
|
import { ALERTING_DIALOG_ID } from "../DefaultAlertingDialog/constants.js";
|
|
16
|
-
import { isMobileView } from "../DefaultAlertingDialog/utils/responsive.js";
|
|
17
16
|
import { useAlertingDialogAccessibility } from "../hooks/useAlertingDialogAccessibility.js";
|
|
18
17
|
import { useGetSupportedMeasures } from "../hooks/useGetSupportedMeasures.js";
|
|
18
|
+
import { isMobileView } from "../utils/responsive.js";
|
|
19
19
|
const overlayController = OverlayController.getInstance(DASHBOARD_DIALOG_OVERS_Z_INDEX);
|
|
20
20
|
/**
|
|
21
21
|
* @internal
|
package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/Alert.js
CHANGED
|
@@ -9,8 +9,8 @@ import { useTheme } from "@gooddata/sdk-ui-theme-provider";
|
|
|
9
9
|
import { gdColorNegative, gdColorStateBlank } from "../../../../constants/colors.js";
|
|
10
10
|
import { useAlertingManagementDialogContext } from "../../../contexts/AlertingManagementDialogContext.js";
|
|
11
11
|
import { useAutomationsContext } from "../../../contexts/AutomationsContext.js";
|
|
12
|
-
import { useAlertValidation } from "../../
|
|
13
|
-
import { getSubtitle } from "../../
|
|
12
|
+
import { useAlertValidation } from "../../hooks/useAlertValidation.js";
|
|
13
|
+
import { getSubtitle } from "../../utils/getters.js";
|
|
14
14
|
const TEXT_TOOLTIP_ALIGN_POINTS = [
|
|
15
15
|
{ align: "tc bc", offset: { x: 0, y: 0 } },
|
|
16
16
|
{ align: "bc tc", offset: { x: 0, y: 0 } },
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type IAutomationDialogActionBarProps } from "../../shared/slots/types.js";
|
|
2
|
+
import { type IUseAlertingDialogActionBarPropsInput } from "../state/useAlertingDialogRegionProps.js";
|
|
3
|
+
/**
|
|
4
|
+
* Props of {@link AlertingDialogActionBar}: the dialog inputs {@link useAlertingDialogActionBarProps}
|
|
5
|
+
* needs (`onSubmit` and `isSaving` from {@link useAlertSubmit}, the dialog's `onCancel`, `onDelete`
|
|
6
|
+
* for edit mode) plus any {@link IAutomationDialogActionBarProps} member to override.
|
|
7
|
+
*
|
|
8
|
+
* @alpha
|
|
9
|
+
*/
|
|
10
|
+
export type IAlertingDialogActionBarBlockProps = IUseAlertingDialogActionBarPropsInput & Partial<IAutomationDialogActionBarProps>;
|
|
11
|
+
/**
|
|
12
|
+
* The alerting dialog's action bar (documentation link, Delete in edit mode, Cancel, submit),
|
|
13
|
+
* connected to the dialog's state.
|
|
14
|
+
*
|
|
15
|
+
* Renders {@link DefaultAutomationDialogActionBar} with the props of
|
|
16
|
+
* {@link useAlertingDialogActionBarProps}; every override prop replaces the hook's value wholesale.
|
|
17
|
+
* The block does not own the submit: pass `submit` and `isSaving` from one {@link useAlertSubmit}
|
|
18
|
+
* instance, so an Enter handler elsewhere in the shell shares its in-flight guard. Renders nothing
|
|
19
|
+
* while `useAlertingDialogContext().isLoading` is true.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* const { submit, isSaving } = useAlertSubmit(props);
|
|
24
|
+
* <AlertingDialogActionBar onCancel={props.onCancel} onSubmit={() => void submit()} isSaving={isSaving} />;
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @alpha
|
|
28
|
+
*/
|
|
29
|
+
export declare function AlertingDialogActionBar(props: IAlertingDialogActionBarBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
//# sourceMappingURL=AlertingDialogActionBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertingDialogActionBar.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/blocks/AlertingDialogActionBar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,+BAA+B,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,EACH,KAAK,qCAAqC,EAE7C,MAAM,0CAA0C,CAAC;AAIlD;;;;;;GAMG;AACH,MAAM,MAAM,kCAAkC,GAAG,qCAAqC,GAClF,OAAO,CAAC,+BAA+B,CAAC,CAAC;AAE7C;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,kCAAkC,2CAMhF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { DefaultAutomationDialogActionBar } from "../../shared/slots/DefaultAutomationDialogActionBar.js";
|
|
4
|
+
import { useAlertingDialogActionBarProps, } from "../state/useAlertingDialogRegionProps.js";
|
|
5
|
+
import { WhenAlertingDialogLoaded } from "./WhenAlertingDialogLoaded.js";
|
|
6
|
+
/**
|
|
7
|
+
* The alerting dialog's action bar (documentation link, Delete in edit mode, Cancel, submit),
|
|
8
|
+
* connected to the dialog's state.
|
|
9
|
+
*
|
|
10
|
+
* Renders {@link DefaultAutomationDialogActionBar} with the props of
|
|
11
|
+
* {@link useAlertingDialogActionBarProps}; every override prop replaces the hook's value wholesale.
|
|
12
|
+
* The block does not own the submit: pass `submit` and `isSaving` from one {@link useAlertSubmit}
|
|
13
|
+
* instance, so an Enter handler elsewhere in the shell shares its in-flight guard. Renders nothing
|
|
14
|
+
* while `useAlertingDialogContext().isLoading` is true.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { submit, isSaving } = useAlertSubmit(props);
|
|
19
|
+
* <AlertingDialogActionBar onCancel={props.onCancel} onSubmit={() => void submit()} isSaving={isSaving} />;
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @alpha
|
|
23
|
+
*/
|
|
24
|
+
export function AlertingDialogActionBar(props) {
|
|
25
|
+
return (_jsx(WhenAlertingDialogLoaded, { children: _jsx(ConnectedAlertingDialogActionBar, { ...props }) }));
|
|
26
|
+
}
|
|
27
|
+
function ConnectedAlertingDialogActionBar({ onCancel, onSubmit, isSaving, onDelete, ...overrides }) {
|
|
28
|
+
const defaultProps = useAlertingDialogActionBarProps({ onCancel, onSubmit, isSaving, onDelete });
|
|
29
|
+
return _jsx(DefaultAutomationDialogActionBar, { ...defaultProps, ...overrides });
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type IAutomationDialogDestinationProps } from "../../shared/slots/types.js";
|
|
2
|
+
/**
|
|
3
|
+
* The alerting dialog's destination region (the notification-channel select), connected to the
|
|
4
|
+
* dialog's state.
|
|
5
|
+
*
|
|
6
|
+
* Renders {@link DefaultAlertingDialogDestination} with the props of
|
|
7
|
+
* {@link useAlertingDialogDestinationProps}; every prop passed here replaces the hook's value for
|
|
8
|
+
* that prop wholesale. Renders nothing while `useAlertingDialogContext().isLoading` is true. The
|
|
9
|
+
* default dialog renders this region only when more than one channel exists; the block renders
|
|
10
|
+
* wherever it is placed — a shell decides from `useAlertingDialogContext().notificationChannels`.
|
|
11
|
+
*
|
|
12
|
+
* @alpha
|
|
13
|
+
*/
|
|
14
|
+
export declare function AlertingDialogDestination(overrides: Partial<IAutomationDialogDestinationProps>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=AlertingDialogDestination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertingDialogDestination.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/blocks/AlertingDialogDestination.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iCAAiC,EAAE,MAAM,6BAA6B,CAAC;AAMrF;;;;;;;;;;;GAWG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,OAAO,CAAC,iCAAiC,CAAC,2CAM9F"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { DefaultAlertingDialogDestination } from "../DefaultAlertingDialog/DefaultAlertingDialogDestination.js";
|
|
3
|
+
import { useAlertingDialogDestinationProps } from "../state/useAlertingDialogRegionProps.js";
|
|
4
|
+
import { WhenAlertingDialogLoaded } from "./WhenAlertingDialogLoaded.js";
|
|
5
|
+
/**
|
|
6
|
+
* The alerting dialog's destination region (the notification-channel select), connected to the
|
|
7
|
+
* dialog's state.
|
|
8
|
+
*
|
|
9
|
+
* Renders {@link DefaultAlertingDialogDestination} with the props of
|
|
10
|
+
* {@link useAlertingDialogDestinationProps}; every prop passed here replaces the hook's value for
|
|
11
|
+
* that prop wholesale. Renders nothing while `useAlertingDialogContext().isLoading` is true. The
|
|
12
|
+
* default dialog renders this region only when more than one channel exists; the block renders
|
|
13
|
+
* wherever it is placed — a shell decides from `useAlertingDialogContext().notificationChannels`.
|
|
14
|
+
*
|
|
15
|
+
* @alpha
|
|
16
|
+
*/
|
|
17
|
+
export function AlertingDialogDestination(overrides) {
|
|
18
|
+
return (_jsx(WhenAlertingDialogLoaded, { children: _jsx(ConnectedAlertingDialogDestination, { ...overrides }) }));
|
|
19
|
+
}
|
|
20
|
+
function ConnectedAlertingDialogDestination(overrides) {
|
|
21
|
+
const defaultProps = useAlertingDialogDestinationProps();
|
|
22
|
+
return _jsx(DefaultAlertingDialogDestination, { ...defaultProps, ...overrides });
|
|
23
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type IAlertingDialogFiltersProps } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* The alerting dialog's filters region (the filter and parameter chips), connected to the dialog's
|
|
4
|
+
* state.
|
|
5
|
+
*
|
|
6
|
+
* Renders {@link DefaultAlertingDialogFilters} with the props of {@link useAlertingDialogFiltersProps};
|
|
7
|
+
* every prop passed here replaces the hook's value for that prop wholesale (an `onFiltersChange`
|
|
8
|
+
* override takes over the write and must submit the complete selection). Renders nothing while
|
|
9
|
+
* `useAlertingDialogContext().isLoading` is true. The default dialog also hides this region behind
|
|
10
|
+
* its stale-filters confirmation step; a shell that wants that step builds it from
|
|
11
|
+
* {@link useAlertFilters}.
|
|
12
|
+
*
|
|
13
|
+
* @alpha
|
|
14
|
+
*/
|
|
15
|
+
export declare function AlertingDialogFilters(overrides: Partial<IAlertingDialogFiltersProps>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=AlertingDialogFilters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertingDialogFilters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/blocks/AlertingDialogFilters.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAI/D;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,OAAO,CAAC,2BAA2B,CAAC,2CAMpF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { DefaultAlertingDialogFilters } from "../DefaultAlertingDialog/DefaultAlertingDialogFilters.js";
|
|
4
|
+
import { useAlertingDialogFiltersProps } from "../state/useAlertingDialogRegionProps.js";
|
|
5
|
+
import { WhenAlertingDialogLoaded } from "./WhenAlertingDialogLoaded.js";
|
|
6
|
+
/**
|
|
7
|
+
* The alerting dialog's filters region (the filter and parameter chips), connected to the dialog's
|
|
8
|
+
* state.
|
|
9
|
+
*
|
|
10
|
+
* Renders {@link DefaultAlertingDialogFilters} with the props of {@link useAlertingDialogFiltersProps};
|
|
11
|
+
* every prop passed here replaces the hook's value for that prop wholesale (an `onFiltersChange`
|
|
12
|
+
* override takes over the write and must submit the complete selection). Renders nothing while
|
|
13
|
+
* `useAlertingDialogContext().isLoading` is true. The default dialog also hides this region behind
|
|
14
|
+
* its stale-filters confirmation step; a shell that wants that step builds it from
|
|
15
|
+
* {@link useAlertFilters}.
|
|
16
|
+
*
|
|
17
|
+
* @alpha
|
|
18
|
+
*/
|
|
19
|
+
export function AlertingDialogFilters(overrides) {
|
|
20
|
+
return (_jsx(WhenAlertingDialogLoaded, { children: _jsx(ConnectedAlertingDialogFilters, { ...overrides }) }));
|
|
21
|
+
}
|
|
22
|
+
function ConnectedAlertingDialogFilters(overrides) {
|
|
23
|
+
const defaultProps = useAlertingDialogFiltersProps();
|
|
24
|
+
return _jsx(DefaultAlertingDialogFilters, { ...defaultProps, ...overrides });
|
|
25
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type IAlertingDialogHeaderProps } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* The alerting dialog's header region (the title input row), connected to the dialog's state.
|
|
4
|
+
*
|
|
5
|
+
* Renders {@link DefaultAlertingDialogHeader} with the props of {@link useAlertingDialogHeaderProps}.
|
|
6
|
+
* Every prop passed here replaces the hook's value for that prop wholesale; pass the dialog's
|
|
7
|
+
* `onCancel` so the back button closes the dialog, and `ref` to receive the title input. Renders
|
|
8
|
+
* nothing while `useAlertingDialogContext().isLoading` is true.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* function MyAlertingDialog(props: IAlertingDialogProps) {
|
|
13
|
+
* return (
|
|
14
|
+
* <MyShell onClose={props.onCancel}>
|
|
15
|
+
* <AlertingDialogHeader onCancel={props.onCancel} />
|
|
16
|
+
* <AlertingDialogFilters />
|
|
17
|
+
* </MyShell>
|
|
18
|
+
* );
|
|
19
|
+
* }
|
|
20
|
+
* <Dashboard AlertingDialogComponent={MyAlertingDialog} />;
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @alpha
|
|
24
|
+
*/
|
|
25
|
+
export declare const AlertingDialogHeader: import("react").ForwardRefExoticComponent<Partial<IAlertingDialogHeaderProps> & import("react").RefAttributes<HTMLInputElement>>;
|
|
26
|
+
//# sourceMappingURL=AlertingDialogHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertingDialogHeader.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/blocks/AlertingDialogHeader.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,oBAAoB,kIAQhC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { DefaultAlertingDialogHeader } from "../DefaultAlertingDialog/DefaultAlertingDialogHeader.js";
|
|
5
|
+
import { useAlertingDialogHeaderProps } from "../state/useAlertingDialogRegionProps.js";
|
|
6
|
+
import { WhenAlertingDialogLoaded } from "./WhenAlertingDialogLoaded.js";
|
|
7
|
+
/**
|
|
8
|
+
* The alerting dialog's header region (the title input row), connected to the dialog's state.
|
|
9
|
+
*
|
|
10
|
+
* Renders {@link DefaultAlertingDialogHeader} with the props of {@link useAlertingDialogHeaderProps}.
|
|
11
|
+
* Every prop passed here replaces the hook's value for that prop wholesale; pass the dialog's
|
|
12
|
+
* `onCancel` so the back button closes the dialog, and `ref` to receive the title input. Renders
|
|
13
|
+
* nothing while `useAlertingDialogContext().isLoading` is true.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* function MyAlertingDialog(props: IAlertingDialogProps) {
|
|
18
|
+
* return (
|
|
19
|
+
* <MyShell onClose={props.onCancel}>
|
|
20
|
+
* <AlertingDialogHeader onCancel={props.onCancel} />
|
|
21
|
+
* <AlertingDialogFilters />
|
|
22
|
+
* </MyShell>
|
|
23
|
+
* );
|
|
24
|
+
* }
|
|
25
|
+
* <Dashboard AlertingDialogComponent={MyAlertingDialog} />;
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @alpha
|
|
29
|
+
*/
|
|
30
|
+
export const AlertingDialogHeader = forwardRef(function AlertingDialogHeader(props, ref) {
|
|
31
|
+
return (_jsx(WhenAlertingDialogLoaded, { children: _jsx(ConnectedAlertingDialogHeader, { ...props, ref: ref }) }));
|
|
32
|
+
});
|
|
33
|
+
const ConnectedAlertingDialogHeader = forwardRef(function ConnectedAlertingDialogHeader({ onCancel, ...overrides }, ref) {
|
|
34
|
+
const defaultProps = useAlertingDialogHeaderProps({ onCancel, ref });
|
|
35
|
+
return _jsx(DefaultAlertingDialogHeader, { ...defaultProps, ...overrides });
|
|
36
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type IAutomationDialogRecipientsProps } from "../../shared/slots/types.js";
|
|
2
|
+
/**
|
|
3
|
+
* The alerting dialog's recipients region, connected to the dialog's state.
|
|
4
|
+
*
|
|
5
|
+
* Renders {@link DefaultAlertingDialogRecipients} with the props of
|
|
6
|
+
* {@link useAlertingDialogRecipientsProps}; every prop passed here replaces the hook's value for
|
|
7
|
+
* that prop wholesale, e.g. `<AlertingDialogRecipients maxRecipients={3} />`. Renders nothing while
|
|
8
|
+
* `useAlertingDialogContext().isLoading` is true.
|
|
9
|
+
*
|
|
10
|
+
* @alpha
|
|
11
|
+
*/
|
|
12
|
+
export declare function AlertingDialogRecipients(overrides: Partial<IAutomationDialogRecipientsProps>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=AlertingDialogRecipients.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertingDialogRecipients.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/blocks/AlertingDialogRecipients.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,6BAA6B,CAAC;AAMpF;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,OAAO,CAAC,gCAAgC,CAAC,2CAM5F"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { DefaultAlertingDialogRecipients } from "../DefaultAlertingDialog/DefaultAlertingDialogRecipients.js";
|
|
3
|
+
import { useAlertingDialogRecipientsProps } from "../state/useAlertingDialogRegionProps.js";
|
|
4
|
+
import { WhenAlertingDialogLoaded } from "./WhenAlertingDialogLoaded.js";
|
|
5
|
+
/**
|
|
6
|
+
* The alerting dialog's recipients region, connected to the dialog's state.
|
|
7
|
+
*
|
|
8
|
+
* Renders {@link DefaultAlertingDialogRecipients} with the props of
|
|
9
|
+
* {@link useAlertingDialogRecipientsProps}; every prop passed here replaces the hook's value for
|
|
10
|
+
* that prop wholesale, e.g. `<AlertingDialogRecipients maxRecipients={3} />`. Renders nothing while
|
|
11
|
+
* `useAlertingDialogContext().isLoading` is true.
|
|
12
|
+
*
|
|
13
|
+
* @alpha
|
|
14
|
+
*/
|
|
15
|
+
export function AlertingDialogRecipients(overrides) {
|
|
16
|
+
return (_jsx(WhenAlertingDialogLoaded, { children: _jsx(ConnectedAlertingDialogRecipients, { ...overrides }) }));
|
|
17
|
+
}
|
|
18
|
+
function ConnectedAlertingDialogRecipients(overrides) {
|
|
19
|
+
const defaultProps = useAlertingDialogRecipientsProps();
|
|
20
|
+
return _jsx(DefaultAlertingDialogRecipients, { ...defaultProps, ...overrides });
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Renders its children only once the alerting dialog's data has loaded — the state accessors throw
|
|
4
|
+
* while `useAlertingDialogContext().isLoading` is true, because the state providers mount only then.
|
|
5
|
+
* Every connected alerting block goes through it.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare function WhenAlertingDialogLoaded({ children }: {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
//# sourceMappingURL=WhenAlertingDialogLoaded.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WhenAlertingDialogLoaded.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/blocks/WhenAlertingDialogLoaded.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,kDAG7E"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useAlertingDialogContext } from "../../contexts/AlertingDialogContext.js";
|
|
3
|
+
/**
|
|
4
|
+
* Renders its children only once the alerting dialog's data has loaded — the state accessors throw
|
|
5
|
+
* while `useAlertingDialogContext().isLoading` is true, because the state providers mount only then.
|
|
6
|
+
* Every connected alerting block goes through it.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export function WhenAlertingDialogLoaded({ children }) {
|
|
11
|
+
const { isLoading } = useAlertingDialogContext();
|
|
12
|
+
return isLoading ? null : _jsx(_Fragment, { children: children });
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAlertValidation.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/hooks/useAlertValidation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAK7G,MAAM,MAAM,qBAAqB,GAAG,eAAe,GAAG,eAAe,CAAC;AAEtE,wBAAgB,kBAAkB,CAC9B,KAAK,EAAE,yBAAyB,GAAG,SAAS,EAC5C,MAAM,EAAE,OAAO,GAAG,SAAS,EAC3B,OAAO,EAAE,QAAQ,GAAG,SAAS,EAC7B,mBAAmB,EAAE,mBAAmB,EAAE,EAC1C,UAAU,CAAC,EAAE,OAAO,GACrB;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,gBAAgB,EAAE,qBAAqB,GAAG,SAAS,CAAA;CAAE,CAc3E"}
|
|
@@ -4,11 +4,31 @@ type IExecutionResultEnvelope = {
|
|
|
4
4
|
isLoading?: boolean;
|
|
5
5
|
executionResult?: IExecutionResult;
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* One distinct value of an attribute in the widget's execution result, as offered by the alert's
|
|
9
|
+
* attribute-value picker.
|
|
10
|
+
*
|
|
11
|
+
* @alpha
|
|
12
|
+
*/
|
|
7
13
|
export type AttributeValue = {
|
|
14
|
+
/**
|
|
15
|
+
* Display title: the formatted element name when the result has one, the raw name otherwise.
|
|
16
|
+
*/
|
|
8
17
|
title: string;
|
|
18
|
+
/**
|
|
19
|
+
* The element URI; this is what the alert stores.
|
|
20
|
+
*/
|
|
9
21
|
value: string;
|
|
22
|
+
/**
|
|
23
|
+
* The raw element name.
|
|
24
|
+
*/
|
|
10
25
|
name: string;
|
|
11
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Reads the widget's execution result and exposes the attribute values and measure values in it.
|
|
29
|
+
*
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
12
32
|
export declare function useAttributeValuesFromExecResults(execResult: IExecutionResultEnvelope | undefined): {
|
|
13
33
|
isResultLoading: boolean;
|
|
14
34
|
getAttributeValues: (attr: IAttributeMetadataObject) => AttributeValue[];
|
package/esm/presentation/automations/alerting/hooks/useAttributeValuesFromExecResults.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAttributeValuesFromExecResults.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/hooks/useAttributeValuesFromExecResults.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EACH,KAAK,UAAU,EAEf,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EAGhB,MAAM,qBAAqB,CAAC;AAG7B,KAAK,wBAAwB,GAAG;IAAE,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,eAAe,CAAC,EAAE,gBAAgB,CAAA;CAAE,CAAC;AAE5F;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,iCAAiC,CAAC,UAAU,EAAE,wBAAwB,GAAG,SAAS;;;;EAyEjG"}
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
import { useCallback, useEffect, useState } from "react";
|
|
3
3
|
import { areObjRefsEqual, isResultAttributeHeader, } from "@gooddata/sdk-model";
|
|
4
4
|
import { DataViewFacade } from "@gooddata/sdk-ui";
|
|
5
|
+
/**
|
|
6
|
+
* Reads the widget's execution result and exposes the attribute values and measure values in it.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
5
10
|
export function useAttributeValuesFromExecResults(execResult) {
|
|
6
11
|
// Derive loading from the envelope's own isLoading flag, not from the
|
|
7
12
|
// presence of executionResult: an errored execution has no executionResult
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGetSupportedMeasures.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/hooks/useGetSupportedMeasures.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"useGetSupportedMeasures.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/hooks/useGetSupportedMeasures.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAIpD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,kDAYnC,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useEffect, useMemo, useState } from "react";
|
|
3
3
|
import { fillMissingTitles } from "@gooddata/sdk-ui";
|
|
4
4
|
import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
|
|
5
|
-
import { getSupportedInsightMeasuresByInsight } from "../
|
|
5
|
+
import { getSupportedInsightMeasuresByInsight } from "../utils/items.js";
|
|
6
6
|
/**
|
|
7
7
|
* Hook that calculates supported alertable measures for an insight.
|
|
8
8
|
*
|
|
@@ -8,7 +8,7 @@ export declare const AlertActionsContextProvider: import("react").Provider<IAler
|
|
|
8
8
|
* must check that flag before calling this. On the alerting side that state is reached only by an
|
|
9
9
|
* automations refresh while the dialog is open, so it will not appear in manual testing.
|
|
10
10
|
*
|
|
11
|
-
* @
|
|
11
|
+
* @alpha
|
|
12
12
|
*/
|
|
13
13
|
export declare function useAlertActions(): IAlertActionsContextValue;
|
|
14
14
|
//# sourceMappingURL=AlertActionsContext.d.ts.map
|
|
@@ -12,7 +12,7 @@ export const AlertActionsContextProvider = AlertActionsContext.Provider;
|
|
|
12
12
|
* must check that flag before calling this. On the alerting side that state is reached only by an
|
|
13
13
|
* automations refresh while the dialog is open, so it will not appear in manual testing.
|
|
14
14
|
*
|
|
15
|
-
* @
|
|
15
|
+
* @alpha
|
|
16
16
|
*/
|
|
17
17
|
export function useAlertActions() {
|
|
18
18
|
return useContext(AlertActionsContext) ?? missingAlertStateProvider("useAlertActions");
|
|
@@ -8,7 +8,7 @@ export declare const AlertDataContextProvider: import("react").Provider<IAlertDa
|
|
|
8
8
|
* must check that flag before calling this. On the alerting side that state is reached only by an
|
|
9
9
|
* automations refresh while the dialog is open, so it will not appear in manual testing.
|
|
10
10
|
*
|
|
11
|
-
* @
|
|
11
|
+
* @alpha
|
|
12
12
|
*/
|
|
13
13
|
export declare function useAlertData(): IAlertDataContextValue;
|
|
14
14
|
//# sourceMappingURL=AlertDataContext.d.ts.map
|
|
@@ -12,7 +12,7 @@ export const AlertDataContextProvider = AlertDataContext.Provider;
|
|
|
12
12
|
* must check that flag before calling this. On the alerting side that state is reached only by an
|
|
13
13
|
* automations refresh while the dialog is open, so it will not appear in manual testing.
|
|
14
14
|
*
|
|
15
|
-
* @
|
|
15
|
+
* @alpha
|
|
16
16
|
*/
|
|
17
17
|
export function useAlertData() {
|
|
18
18
|
return useContext(AlertDataContext) ?? missingAlertStateProvider("useAlertData");
|
|
@@ -8,7 +8,7 @@ export declare const AlertDraftContextProvider: import("react").Provider<IAlertD
|
|
|
8
8
|
* must check that flag before calling this. On the alerting side that state is reached only by an
|
|
9
9
|
* automations refresh while the dialog is open, so it will not appear in manual testing.
|
|
10
10
|
*
|
|
11
|
-
* @
|
|
11
|
+
* @alpha
|
|
12
12
|
*/
|
|
13
13
|
export declare function useAlertDraft(): IAlertDraftContextValue;
|
|
14
14
|
//# sourceMappingURL=AlertDraftContext.d.ts.map
|