@gooddata/sdk-ui-dashboard 11.55.0-alpha.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.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
|
@@ -2,16 +2,19 @@ import { type Dispatch, type SetStateAction } from "react";
|
|
|
2
2
|
import { type DashboardAttachmentType, type FilterContextItem, type IAutomationMetadataObjectDefinition, type IAutomationRecipient, type IDashboardExportParameter, type IExportDefinitionVisualizationObjectSettings, type IdentifierRef, type ParameterValue, type WidgetAttachmentType } from "@gooddata/sdk-model";
|
|
3
3
|
import { type IAutomationFiltersTab } from "../../../../model/store/filtering/types.js";
|
|
4
4
|
import { type IAutomationParameter } from "../../shared/automationFilters/automationParameters.js";
|
|
5
|
-
import { type IScheduleTimezoneSelection } from "../types.js";
|
|
5
|
+
import { type IScheduleTimezoneSelection, type IScheduledEmailDialogProps } from "../types.js";
|
|
6
6
|
/**
|
|
7
7
|
* The scheduled-export dialog's edit draft: the automation being edited, its baseline, the derived
|
|
8
8
|
* start date, the per-field validity flags, and the "Time zone" section's state.
|
|
9
9
|
*
|
|
10
10
|
* Changes on every keystroke; consumers re-render by design.
|
|
11
11
|
*
|
|
12
|
-
* @
|
|
12
|
+
* @alpha
|
|
13
13
|
*/
|
|
14
14
|
export interface IScheduledExportDraftContextValue {
|
|
15
|
+
/**
|
|
16
|
+
* The schedule being edited; seeded from the saved schedule or the defaults for a new one.
|
|
17
|
+
*/
|
|
15
18
|
editedAutomation: IAutomationMetadataObjectDefinition;
|
|
16
19
|
/**
|
|
17
20
|
* The draft as it was when the dialog opened; the dirty check compares against it.
|
|
@@ -21,9 +24,21 @@ export interface IScheduledExportDraftContextValue {
|
|
|
21
24
|
* The schedule's first run in the user's timezone, normalized for the recurrence form.
|
|
22
25
|
*/
|
|
23
26
|
startDate: Date;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the recurrence form's cron expression is valid.
|
|
29
|
+
*/
|
|
24
30
|
isCronValid: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the title passes the length limit.
|
|
33
|
+
*/
|
|
25
34
|
isTitleValid: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Whether the e-mail subject passes its validation.
|
|
37
|
+
*/
|
|
26
38
|
isSubjectValid: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Whether the e-mail message passes its validation.
|
|
41
|
+
*/
|
|
27
42
|
isOnMessageValid: boolean;
|
|
28
43
|
/**
|
|
29
44
|
* The enableTimezoneChange setting; timezone-related presentation is gated by it.
|
|
@@ -33,6 +48,9 @@ export interface IScheduledExportDraftContextValue {
|
|
|
33
48
|
* Whether the schedule may define its own export timezone (the "Time zone" section renders).
|
|
34
49
|
*/
|
|
35
50
|
canSelectScheduleTimezone: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* The "Time zone" section's current selection (the Default option or a concrete timezone).
|
|
53
|
+
*/
|
|
36
54
|
scheduleTimezoneSelection: IScheduleTimezoneSelection;
|
|
37
55
|
/**
|
|
38
56
|
* Concrete timezone the dashboard-schedule Default option currently resolves to (display only).
|
|
@@ -50,16 +68,40 @@ export interface IScheduledExportDraftContextValue {
|
|
|
50
68
|
*
|
|
51
69
|
* Changes rarely.
|
|
52
70
|
*
|
|
53
|
-
* @
|
|
71
|
+
* @alpha
|
|
54
72
|
*/
|
|
55
73
|
export interface IScheduledExportActionsContextValue {
|
|
74
|
+
/**
|
|
75
|
+
* Replaces the draft; the change-handlers below are the preferred, field-scoped writes.
|
|
76
|
+
*/
|
|
56
77
|
setEditedAutomation: Dispatch<SetStateAction<IAutomationMetadataObjectDefinition>>;
|
|
78
|
+
/**
|
|
79
|
+
* Sets the schedule title and re-validates its length.
|
|
80
|
+
*/
|
|
57
81
|
onTitleChange: (value: string) => void;
|
|
82
|
+
/**
|
|
83
|
+
* Sets the cron expression and first run; `isValid` is the recurrence form's own verdict.
|
|
84
|
+
*/
|
|
58
85
|
onRecurrenceChange: (cronExpression: string, startDate: Date | null, isValid: boolean) => void;
|
|
86
|
+
/**
|
|
87
|
+
* Switches between a shared and a per-recipient evaluation of the export.
|
|
88
|
+
*/
|
|
59
89
|
onEvaluationModeChange: (isShared: boolean) => void;
|
|
90
|
+
/**
|
|
91
|
+
* Selects the notification channel; recipients incompatible with it are dropped.
|
|
92
|
+
*/
|
|
60
93
|
onDestinationChange: (notificationChannelId: string) => void;
|
|
94
|
+
/**
|
|
95
|
+
* Replaces the recipients with the complete updated array.
|
|
96
|
+
*/
|
|
61
97
|
onRecipientsChange: (recipients: IAutomationRecipient[]) => void;
|
|
98
|
+
/**
|
|
99
|
+
* Sets the e-mail subject; `isValid` is the subject field's own verdict.
|
|
100
|
+
*/
|
|
62
101
|
onSubjectChange: (value: string | number, isValid: boolean) => void;
|
|
102
|
+
/**
|
|
103
|
+
* Sets the e-mail message; `isValid` is the message field's own verdict.
|
|
104
|
+
*/
|
|
63
105
|
onMessageChange: (value: string, isValid: boolean) => void;
|
|
64
106
|
/**
|
|
65
107
|
* Replaces the dashboard export formats; new definitions inherit the current filters and timezone.
|
|
@@ -69,10 +111,25 @@ export interface IScheduledExportActionsContextValue {
|
|
|
69
111
|
* Replaces the widget export formats; throws when the dialog has no widget.
|
|
70
112
|
*/
|
|
71
113
|
onWidgetAttachmentsChange: (formats: WidgetAttachmentType[]) => void;
|
|
114
|
+
/**
|
|
115
|
+
* Sets the XLSX export settings (merge headers, export info).
|
|
116
|
+
*/
|
|
72
117
|
onXlsxSettingsChange: (settings: IExportDefinitionVisualizationObjectSettings) => void;
|
|
118
|
+
/**
|
|
119
|
+
* Sets the tabular-PDF export settings (page size, orientation, export info).
|
|
120
|
+
*/
|
|
73
121
|
onPdfSettingsChange: (settings: IExportDefinitionVisualizationObjectSettings) => void;
|
|
122
|
+
/**
|
|
123
|
+
* Sets the CSV export settings (delimiter).
|
|
124
|
+
*/
|
|
74
125
|
onCsvSettingsChange: (settings: IExportDefinitionVisualizationObjectSettings) => void;
|
|
126
|
+
/**
|
|
127
|
+
* Sets the raw-CSV export settings (delimiter).
|
|
128
|
+
*/
|
|
75
129
|
onCsvRawSettingsChange: (settings: IExportDefinitionVisualizationObjectSettings) => void;
|
|
130
|
+
/**
|
|
131
|
+
* Sets the slides template of one slides format; undefined restores the default template.
|
|
132
|
+
*/
|
|
76
133
|
onSlidesTemplateIdChange: (templateId: string | undefined, format: "PPTX" | "PDF_SLIDES" | "PDF") => void;
|
|
77
134
|
/**
|
|
78
135
|
* Picks the export-content timezone; undefined selects the Default option.
|
|
@@ -89,10 +146,16 @@ export interface IScheduledExportActionsContextValue {
|
|
|
89
146
|
*
|
|
90
147
|
* Changes when the current user or the override changes, so not while the draft is edited.
|
|
91
148
|
*
|
|
92
|
-
* @
|
|
149
|
+
* @alpha
|
|
93
150
|
*/
|
|
94
151
|
export interface IScheduledExportDataContextValue {
|
|
152
|
+
/**
|
|
153
|
+
* The logged-in user as a recipient.
|
|
154
|
+
*/
|
|
95
155
|
defaultUser: IAutomationRecipient;
|
|
156
|
+
/**
|
|
157
|
+
* The recipient a new schedule is seeded with; an external-recipient override replaces the user.
|
|
158
|
+
*/
|
|
96
159
|
defaultRecipient: IAutomationRecipient;
|
|
97
160
|
}
|
|
98
161
|
/**
|
|
@@ -102,10 +165,16 @@ export interface IScheduledExportDataContextValue {
|
|
|
102
165
|
*
|
|
103
166
|
* Changes when a filter, a parameter or the store-filters toggle is edited; never per keystroke.
|
|
104
167
|
*
|
|
105
|
-
* @
|
|
168
|
+
* @alpha
|
|
106
169
|
*/
|
|
107
170
|
export interface IScheduledExportFiltersContextValue {
|
|
171
|
+
/**
|
|
172
|
+
* The filters the schedule is saved with (flat mode).
|
|
173
|
+
*/
|
|
108
174
|
selectedFilters: FilterContextItem[];
|
|
175
|
+
/**
|
|
176
|
+
* The dashboard filters the schedule may use; undefined until resolved.
|
|
177
|
+
*/
|
|
109
178
|
availableFilters: FilterContextItem[] | undefined;
|
|
110
179
|
/**
|
|
111
180
|
* Whether the schedule stores its own filters instead of using the latest saved dashboard filters.
|
|
@@ -115,12 +184,18 @@ export interface IScheduledExportFiltersContextValue {
|
|
|
115
184
|
* Filters structured per dashboard tab; present with more than one tab.
|
|
116
185
|
*/
|
|
117
186
|
filtersByTab: IAutomationFiltersTab[] | undefined;
|
|
187
|
+
/**
|
|
188
|
+
* The edited selection per dashboard tab (by-tab mode).
|
|
189
|
+
*/
|
|
118
190
|
editedFiltersByTab: Record<string, FilterContextItem[]> | undefined;
|
|
119
191
|
/**
|
|
120
192
|
* Replaces the selection with the complete updated array and mirrors it into the export
|
|
121
193
|
* definitions. `storeFiltersParam` overrides the current toggle value for this write.
|
|
122
194
|
*/
|
|
123
195
|
onFiltersChange: (filters: FilterContextItem[], storeFiltersParam?: boolean) => void;
|
|
196
|
+
/**
|
|
197
|
+
* By-tab counterpart of `onFiltersChange`: replaces the per-tab selection wholesale.
|
|
198
|
+
*/
|
|
124
199
|
onFiltersByTabChange: (newFiltersByTab: Record<string, FilterContextItem[]>, storeFiltersParam?: boolean) => void;
|
|
125
200
|
/**
|
|
126
201
|
* Replaces the selection with the dashboard's current filters (the stale-filters repair).
|
|
@@ -140,6 +215,9 @@ export interface IScheduledExportFiltersContextValue {
|
|
|
140
215
|
* Whether the saved filters alone no longer match the dashboard.
|
|
141
216
|
*/
|
|
142
217
|
filtersAreStale: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* Whether the export-parameters feature is on; the parameter members below are empty when off.
|
|
220
|
+
*/
|
|
143
221
|
parametersEnabled: boolean;
|
|
144
222
|
/**
|
|
145
223
|
* Per-tab visible parameters to render as chips.
|
|
@@ -154,11 +232,29 @@ export interface IScheduledExportFiltersContextValue {
|
|
|
154
232
|
* parameter context applies.
|
|
155
233
|
*/
|
|
156
234
|
flatTabId: string | undefined;
|
|
235
|
+
/**
|
|
236
|
+
* Adds a workspace parameter with its default value on the flat tab.
|
|
237
|
+
*/
|
|
157
238
|
onParameterAdd: (ref: IdentifierRef) => void;
|
|
239
|
+
/**
|
|
240
|
+
* Sets a parameter's value on the flat tab.
|
|
241
|
+
*/
|
|
158
242
|
onParameterChange: (ref: IdentifierRef, value: ParameterValue) => void;
|
|
243
|
+
/**
|
|
244
|
+
* Removes a parameter override on the flat tab.
|
|
245
|
+
*/
|
|
159
246
|
onParameterDelete: (ref: IdentifierRef) => void;
|
|
247
|
+
/**
|
|
248
|
+
* Adds a workspace parameter with its default value on the given tab.
|
|
249
|
+
*/
|
|
160
250
|
onParameterAddByTab: (tabId: string, ref: IdentifierRef) => void;
|
|
251
|
+
/**
|
|
252
|
+
* Sets a parameter's value on the given tab.
|
|
253
|
+
*/
|
|
161
254
|
onParameterChangeByTab: (tabId: string, ref: IdentifierRef, value: ParameterValue) => void;
|
|
255
|
+
/**
|
|
256
|
+
* Removes a parameter override on the given tab.
|
|
257
|
+
*/
|
|
162
258
|
onParameterDeleteByTab: (tabId: string, ref: IdentifierRef) => void;
|
|
163
259
|
/**
|
|
164
260
|
* Resets the parameters to the dashboard's current effective values (the "apply latest" flow).
|
|
@@ -201,4 +297,107 @@ export type IScheduleTimezoneState = Pick<IScheduledExportDraftContextValue, "is
|
|
|
201
297
|
timezoneId: string | undefined;
|
|
202
298
|
};
|
|
203
299
|
};
|
|
300
|
+
/**
|
|
301
|
+
* The scheduled-export dialog's validity.
|
|
302
|
+
*
|
|
303
|
+
* @alpha
|
|
304
|
+
*/
|
|
305
|
+
export interface IScheduledExportDialogValidity {
|
|
306
|
+
/**
|
|
307
|
+
* Whether submit is disabled: the draft is invalid, incomplete, or unchanged in edit mode.
|
|
308
|
+
* Undefined (falsy) in create mode when nothing else disables it.
|
|
309
|
+
*/
|
|
310
|
+
isSubmitDisabled: boolean | undefined;
|
|
311
|
+
/**
|
|
312
|
+
* The validation message to show; undefined when there is none.
|
|
313
|
+
*/
|
|
314
|
+
validationErrorMessage: string | undefined;
|
|
315
|
+
/**
|
|
316
|
+
* Whether the schedule's source (widget or dashboard) still exists.
|
|
317
|
+
*/
|
|
318
|
+
isParentValid: boolean;
|
|
319
|
+
/**
|
|
320
|
+
* Whether the selected channel accepts external (e-mail only) recipients.
|
|
321
|
+
*/
|
|
322
|
+
allowExternalRecipients: boolean;
|
|
323
|
+
/**
|
|
324
|
+
* Whether the selected channel accepts only the creator as recipient.
|
|
325
|
+
*/
|
|
326
|
+
allowOnlyLoggedUserRecipients: boolean;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* What the scheduled-export dialog's attachment section displays, derived from the draft's export
|
|
330
|
+
* definitions with the defaults applied.
|
|
331
|
+
*
|
|
332
|
+
* @alpha
|
|
333
|
+
*/
|
|
334
|
+
export interface IScheduledExportAttachments {
|
|
335
|
+
/**
|
|
336
|
+
* The formats of the draft's export definitions, in definition order.
|
|
337
|
+
*/
|
|
338
|
+
selectedAttachments: Array<DashboardAttachmentType | WidgetAttachmentType>;
|
|
339
|
+
/**
|
|
340
|
+
* Whether the draft holds a whole-dashboard export definition (true for a draft with none yet).
|
|
341
|
+
*/
|
|
342
|
+
isDashboardExportSelected: boolean;
|
|
343
|
+
/**
|
|
344
|
+
* Whether the draft holds a widget CSV export definition.
|
|
345
|
+
*/
|
|
346
|
+
isCsvExportSelected: boolean;
|
|
347
|
+
/**
|
|
348
|
+
* Whether the draft holds a widget XLSX export definition.
|
|
349
|
+
*/
|
|
350
|
+
isXlsxExportSelected: boolean;
|
|
351
|
+
/**
|
|
352
|
+
* XLSX settings; `mergeHeaders` and `exportInfo` default to true.
|
|
353
|
+
*/
|
|
354
|
+
xlsxSettings: IExportDefinitionVisualizationObjectSettings;
|
|
355
|
+
/**
|
|
356
|
+
* Tabular-PDF settings; page size defaults from the workspace locale, orientation to portrait,
|
|
357
|
+
* `exportInfo` to true.
|
|
358
|
+
*/
|
|
359
|
+
pdfSettings: IExportDefinitionVisualizationObjectSettings;
|
|
360
|
+
/**
|
|
361
|
+
* CSV settings; an undefined `delimiter` is the backend default.
|
|
362
|
+
*/
|
|
363
|
+
csvSettings: IExportDefinitionVisualizationObjectSettings;
|
|
364
|
+
/**
|
|
365
|
+
* Raw-CSV settings; an undefined `delimiter` is the backend default.
|
|
366
|
+
*/
|
|
367
|
+
csvRawSettings: IExportDefinitionVisualizationObjectSettings;
|
|
368
|
+
/**
|
|
369
|
+
* The slides template chosen per slides format; undefined where the default template applies.
|
|
370
|
+
*/
|
|
371
|
+
slidesTemplateIds: {
|
|
372
|
+
PPTX: string | undefined;
|
|
373
|
+
PDF_SLIDES: string | undefined;
|
|
374
|
+
PDF: string | undefined;
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Lifecycle callbacks of {@link useSaveScheduledEmailToBackend}: `onSubmit`/`onSuccess`/`onError`
|
|
379
|
+
* (create) and `onSave`/`onSaveSuccess`/`onSaveError` (edit).
|
|
380
|
+
*
|
|
381
|
+
* @alpha
|
|
382
|
+
*/
|
|
383
|
+
export type IUseSaveScheduledEmailCallbacks = Pick<IScheduledEmailDialogProps, "onSuccess" | "onError" | "onSubmit" | "onSaveSuccess" | "onSaveError" | "onSave">;
|
|
384
|
+
/**
|
|
385
|
+
* The scheduled-export dialog's save path.
|
|
386
|
+
*
|
|
387
|
+
* @alpha
|
|
388
|
+
*/
|
|
389
|
+
export interface IScheduledEmailSaveState {
|
|
390
|
+
/**
|
|
391
|
+
* Creates the schedule (draft without an id) or updates it (draft with one), after sanitizing it.
|
|
392
|
+
*/
|
|
393
|
+
handleSaveScheduledEmail: () => void;
|
|
394
|
+
/**
|
|
395
|
+
* Whether a create or update is in flight.
|
|
396
|
+
*/
|
|
397
|
+
isSavingScheduledEmail: boolean;
|
|
398
|
+
/**
|
|
399
|
+
* A 400 response's detail message, shown in the dialog without closing it; undefined otherwise.
|
|
400
|
+
*/
|
|
401
|
+
savingErrorMessage: string | undefined;
|
|
402
|
+
}
|
|
204
403
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,4CAA4C,EACjD,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAC5B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AACnG,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,4CAA4C,EACjD,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAC5B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AACnG,OAAO,EAAE,KAAK,0BAA0B,EAAE,KAAK,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAE/F;;;;;;;GAOG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;OAEG;IACH,gBAAgB,EAAE,mCAAmC,CAAC;IACtD;;OAEG;IACH,kBAAkB,EAAE,mCAAmC,CAAC;IACxD;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;O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
|
|
1
|
+
import { type IScheduledEmailSaveState, type IUseSaveScheduledEmailCallbacks } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Saves the scheduled-export dialog's draft: creates a new schedule or updates the edited one after
|
|
4
|
+
* sanitizing it, keeps a 400 response's detail as an in-dialog error message, and routes everything
|
|
5
|
+
* else to the matching callback.
|
|
6
|
+
*
|
|
7
|
+
* Reads the draft from the scheduled-export state contexts, so it throws outside them.
|
|
8
|
+
*
|
|
9
|
+
* @alpha
|
|
10
|
+
*/
|
|
11
|
+
export declare function useSaveScheduledEmailToBackend({ onSuccess, onError, onSubmit, onSaveSuccess, onSaveError, onSave }: IUseSaveScheduledEmailCallbacks): IScheduledEmailSaveState;
|
|
12
|
+
//# sourceMappingURL=useSaveScheduledEmailToBackend.d.ts.map
|
package/esm/presentation/automations/scheduledEmail/state/useSaveScheduledEmailToBackend.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSaveScheduledEmailToBackend.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useSaveScheduledEmailToBackend.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,+BAA+B,EAAE,MAAM,YAAY,CAAC;AAEjG;;;;;;;;GAQG;AACH,wBAAgB,8BAA8B,CAAC,EAC3C,SAAS,EACT,OAAO,EACP,QAAQ,EACR,aAAa,EACb,WAAW,EACX,MAAM,EACT,EAAE,+BAA+B,GAAG,wBAAwB,CAwE5D"}
|
|
@@ -3,8 +3,8 @@ import { useCallback, useState } from "react";
|
|
|
3
3
|
import { omit } from "lodash-es";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { isAllValuesAttributeFilter, isAllValuesDashboardAttributeFilter, isExportDefinitionDashboardRequestPayload, isExportDefinitionVisualizationObjectRequestPayload, } from "@gooddata/sdk-model";
|
|
6
|
-
import { useScheduledEmailDialogContext } from "
|
|
7
|
-
import { useScheduledExportDraft } from "
|
|
6
|
+
import { useScheduledEmailDialogContext } from "../../contexts/ScheduledEmailDialogContext.js";
|
|
7
|
+
import { useScheduledExportDraft } from "./ScheduledExportDraftContext.js";
|
|
8
8
|
/**
|
|
9
9
|
* Saves the scheduled-export dialog's draft: creates a new schedule or updates the edited one after
|
|
10
10
|
* sanitizing it, keeps a 400 response's detail as an in-dialog error message, and routes everything
|
|
@@ -12,7 +12,7 @@ import { useScheduledExportDraft } from "../../state/ScheduledExportDraftContext
|
|
|
12
12
|
*
|
|
13
13
|
* Reads the draft from the scheduled-export state contexts, so it throws outside them.
|
|
14
14
|
*
|
|
15
|
-
* @
|
|
15
|
+
* @alpha
|
|
16
16
|
*/
|
|
17
17
|
export function useSaveScheduledEmailToBackend({ onSuccess, onError, onSubmit, onSaveSuccess, onSaveError, onSave, }) {
|
|
18
18
|
const intl = useIntl();
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogRegionProps.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { type IScheduledEmailDialogFiltersProps, type IScheduledEmailDialogRecip
|
|
|
4
4
|
/**
|
|
5
5
|
* Inputs of {@link useScheduledEmailDialogHeaderProps} that come from the dialog rather than its state.
|
|
6
6
|
*
|
|
7
|
-
* @
|
|
7
|
+
* @alpha
|
|
8
8
|
*/
|
|
9
9
|
export interface IUseScheduledEmailDialogHeaderPropsInput {
|
|
10
10
|
/**
|
|
@@ -25,7 +25,7 @@ export interface IUseScheduledEmailDialogHeaderPropsInput {
|
|
|
25
25
|
*
|
|
26
26
|
* Throws outside the scheduled-export dialog's state providers.
|
|
27
27
|
*
|
|
28
|
-
* @
|
|
28
|
+
* @alpha
|
|
29
29
|
*/
|
|
30
30
|
export declare function useScheduledEmailDialogHeaderProps({ onBack, onTitleKeyDown, ref }: IUseScheduledEmailDialogHeaderPropsInput): ScheduledEmailDialogHeaderDefaultProps;
|
|
31
31
|
/**
|
|
@@ -33,7 +33,7 @@ export declare function useScheduledEmailDialogHeaderProps({ onBack, onTitleKeyD
|
|
|
33
33
|
*
|
|
34
34
|
* Throws outside the scheduled-export dialog's state providers.
|
|
35
35
|
*
|
|
36
|
-
* @
|
|
36
|
+
* @alpha
|
|
37
37
|
*/
|
|
38
38
|
export declare function useScheduledEmailDialogFiltersProps(): IScheduledEmailDialogFiltersProps;
|
|
39
39
|
/**
|
|
@@ -41,13 +41,13 @@ export declare function useScheduledEmailDialogFiltersProps(): IScheduledEmailDi
|
|
|
41
41
|
*
|
|
42
42
|
* Throws outside the scheduled-export dialog's state providers.
|
|
43
43
|
*
|
|
44
|
-
* @
|
|
44
|
+
* @alpha
|
|
45
45
|
*/
|
|
46
46
|
export declare function useScheduledEmailDialogDestinationProps(): IAutomationDialogDestinationProps;
|
|
47
47
|
/**
|
|
48
48
|
* Inputs of {@link useScheduledEmailDialogRecipientsProps} that come from the dialog rather than its state.
|
|
49
49
|
*
|
|
50
|
-
* @
|
|
50
|
+
* @alpha
|
|
51
51
|
*/
|
|
52
52
|
export interface IUseScheduledEmailDialogRecipientsPropsInput {
|
|
53
53
|
/**
|
|
@@ -60,7 +60,7 @@ export interface IUseScheduledEmailDialogRecipientsPropsInput {
|
|
|
60
60
|
*
|
|
61
61
|
* Throws outside the scheduled-export dialog's state providers.
|
|
62
62
|
*
|
|
63
|
-
* @
|
|
63
|
+
* @alpha
|
|
64
64
|
*/
|
|
65
65
|
export declare function useScheduledEmailDialogRecipientsProps({ onKeyDownSubmit }: IUseScheduledEmailDialogRecipientsPropsInput): IScheduledEmailDialogRecipientsProps;
|
|
66
66
|
/**
|
|
@@ -68,13 +68,13 @@ export declare function useScheduledEmailDialogRecipientsProps({ onKeyDownSubmit
|
|
|
68
68
|
*
|
|
69
69
|
* Throws outside the scheduled-export dialog's state providers.
|
|
70
70
|
*
|
|
71
|
-
* @
|
|
71
|
+
* @alpha
|
|
72
72
|
*/
|
|
73
73
|
export declare function useScheduledEmailDialogTimezoneProps(): ScheduledEmailDialogTimezoneDefaultProps;
|
|
74
74
|
/**
|
|
75
75
|
* Inputs of {@link useScheduledEmailDialogActionBarProps} that come from the dialog rather than its state.
|
|
76
76
|
*
|
|
77
|
-
* @
|
|
77
|
+
* @alpha
|
|
78
78
|
*/
|
|
79
79
|
export interface IUseScheduledEmailDialogActionBarPropsInput {
|
|
80
80
|
/**
|
|
@@ -82,7 +82,7 @@ export interface IUseScheduledEmailDialogActionBarPropsInput {
|
|
|
82
82
|
*/
|
|
83
83
|
onCancel?: () => void;
|
|
84
84
|
/**
|
|
85
|
-
* Submits the automation; the dialog's single save path (see
|
|
85
|
+
* Submits the automation; the dialog's single save path (see {@link useSaveScheduledEmailToBackend}).
|
|
86
86
|
*/
|
|
87
87
|
onSubmit: () => void;
|
|
88
88
|
/**
|
|
@@ -99,7 +99,7 @@ export interface IUseScheduledEmailDialogActionBarPropsInput {
|
|
|
99
99
|
*
|
|
100
100
|
* Throws outside the scheduled-export dialog's state providers.
|
|
101
101
|
*
|
|
102
|
-
* @
|
|
102
|
+
* @alpha
|
|
103
103
|
*/
|
|
104
104
|
export declare function useScheduledEmailDialogActionBarProps({ onCancel, onSubmit, isSaving, onDelete }: IUseScheduledEmailDialogActionBarPropsInput): IAutomationDialogActionBarProps;
|
|
105
105
|
//# sourceMappingURL=useScheduledEmailDialogRegionProps.d.ts.map
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogRegionProps.js
CHANGED
|
@@ -16,7 +16,7 @@ import { useScheduledExportDialogValidity } from "./useScheduledExportDialogVali
|
|
|
16
16
|
*
|
|
17
17
|
* Throws outside the scheduled-export dialog's state providers.
|
|
18
18
|
*
|
|
19
|
-
* @
|
|
19
|
+
* @alpha
|
|
20
20
|
*/
|
|
21
21
|
export function useScheduledEmailDialogHeaderProps({ onBack, onTitleKeyDown, ref, }) {
|
|
22
22
|
const intl = useIntl();
|
|
@@ -62,7 +62,7 @@ export function useScheduledEmailDialogHeaderProps({ onBack, onTitleKeyDown, ref
|
|
|
62
62
|
*
|
|
63
63
|
* Throws outside the scheduled-export dialog's state providers.
|
|
64
64
|
*
|
|
65
|
-
* @
|
|
65
|
+
* @alpha
|
|
66
66
|
*/
|
|
67
67
|
export function useScheduledEmailDialogFiltersProps() {
|
|
68
68
|
const { widget } = useScheduledEmailDialogContext();
|
|
@@ -95,7 +95,7 @@ export function useScheduledEmailDialogFiltersProps() {
|
|
|
95
95
|
*
|
|
96
96
|
* Throws outside the scheduled-export dialog's state providers.
|
|
97
97
|
*
|
|
98
|
-
* @
|
|
98
|
+
* @alpha
|
|
99
99
|
*/
|
|
100
100
|
export function useScheduledEmailDialogDestinationProps() {
|
|
101
101
|
const { notificationChannels } = useScheduledEmailDialogContext();
|
|
@@ -112,7 +112,7 @@ export function useScheduledEmailDialogDestinationProps() {
|
|
|
112
112
|
*
|
|
113
113
|
* Throws outside the scheduled-export dialog's state providers.
|
|
114
114
|
*
|
|
115
|
-
* @
|
|
115
|
+
* @alpha
|
|
116
116
|
*/
|
|
117
117
|
export function useScheduledEmailDialogRecipientsProps({ onKeyDownSubmit, }) {
|
|
118
118
|
const { maxAutomationsRecipients, externalRecipient: externalRecipientOverride } = useAutomationsContext();
|
|
@@ -140,7 +140,7 @@ export function useScheduledEmailDialogRecipientsProps({ onKeyDownSubmit, }) {
|
|
|
140
140
|
*
|
|
141
141
|
* Throws outside the scheduled-export dialog's state providers.
|
|
142
142
|
*
|
|
143
|
-
* @
|
|
143
|
+
* @alpha
|
|
144
144
|
*/
|
|
145
145
|
export function useScheduledEmailDialogTimezoneProps() {
|
|
146
146
|
const { widget } = useScheduledEmailDialogContext();
|
|
@@ -158,7 +158,7 @@ export function useScheduledEmailDialogTimezoneProps() {
|
|
|
158
158
|
*
|
|
159
159
|
* Throws outside the scheduled-export dialog's state providers.
|
|
160
160
|
*
|
|
161
|
-
* @
|
|
161
|
+
* @alpha
|
|
162
162
|
*/
|
|
163
163
|
export function useScheduledEmailDialogActionBarProps({ onCancel, onSubmit, isSaving, onDelete, }) {
|
|
164
164
|
const intl = useIntl();
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.js
CHANGED
|
@@ -4,7 +4,7 @@ import { invariant } from "ts-invariant";
|
|
|
4
4
|
import { isExportDefinitionDashboardRequestPayload, isExportDefinitionVisualizationObjectRequestPayload, } from "@gooddata/sdk-model";
|
|
5
5
|
import { getAutomationExportParametersByTab, setExportParametersByTab, } from "../../../../_staging/automation/index.js";
|
|
6
6
|
import { useScheduledEmailDialogContext } from "../../contexts/ScheduledEmailDialogContext.js";
|
|
7
|
-
import { useExportTimezones } from "../
|
|
7
|
+
import { useExportTimezones } from "../hooks/useExportTimezones.js";
|
|
8
8
|
import { newDashboardExportDefinitionMetadataObjectDefinition, newWidgetExportDefinitionMetadataObjectDefinition, withRebuiltExportDefinitions, } from "./exportDefinitions.js";
|
|
9
9
|
/**
|
|
10
10
|
* Owns the scheduled export's attachment write path: the per-tab export-parameter wire, which is
|
|
@@ -5,7 +5,7 @@ import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
|
|
|
5
5
|
import { useScheduledEmailDialogContext } from "../../contexts/ScheduledEmailDialogContext.js";
|
|
6
6
|
import { isAutomationTitleValid } from "../../shared/utils/automationTitle.js";
|
|
7
7
|
import { convertExternalRecipientToAutomationRecipient, convertUserToAutomationRecipient, } from "../../shared/utils/automationUtils.js";
|
|
8
|
-
import { useExportTimezones } from "../
|
|
8
|
+
import { useExportTimezones } from "../hooks/useExportTimezones.js";
|
|
9
9
|
import { toModifiedISOStringToTimezone, toNormalizedFirstRunAndCron, toNormalizedStartDate, } from "../utils/date.js";
|
|
10
10
|
import { getUserTimezone } from "../utils/timezone.js";
|
|
11
11
|
import { newDashboardExportDefinitionMetadataObjectDefinition, newWidgetExportDefinitionMetadataObjectDefinition, } from "./exportDefinitions.js";
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition, type IAutomationRecipient, type INotificationChannelIdentifier, type INotificationChannelMetadataObject } from "@gooddata/sdk-model";
|
|
2
|
+
import { type IScheduledExportDialogValidity } from "./types.js";
|
|
2
3
|
export interface IUseScheduledEmailFormValidityProps {
|
|
3
4
|
editedAutomation: IAutomationMetadataObjectDefinition;
|
|
4
5
|
originalAutomation: IAutomationMetadataObjectDefinition;
|
|
@@ -11,11 +12,5 @@ export interface IUseScheduledEmailFormValidityProps {
|
|
|
11
12
|
isSubjectValid: boolean;
|
|
12
13
|
isOnMessageValid: boolean;
|
|
13
14
|
}
|
|
14
|
-
export declare function useScheduledEmailFormValidity(props: IUseScheduledEmailFormValidityProps):
|
|
15
|
-
isSubmitDisabled: boolean | undefined;
|
|
16
|
-
validationErrorMessage: string | undefined;
|
|
17
|
-
isParentValid: boolean;
|
|
18
|
-
allowExternalRecipients: boolean;
|
|
19
|
-
allowOnlyLoggedUserRecipients: boolean;
|
|
20
|
-
};
|
|
15
|
+
export declare function useScheduledEmailFormValidity(props: IUseScheduledEmailFormValidityProps): IScheduledExportDialogValidity;
|
|
21
16
|
//# sourceMappingURL=useScheduledEmailFormValidity.d.ts.map
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScheduledEmailFormValidity.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAI1C,MAAM,qBAAqB,CAAC;AAM7B,MAAM,WAAW,mCAAmC;IAChD,gBAAgB,EAAE,mCAAmC,CAAC;IACtD,kBAAkB,EAAE,mCAAmC,CAAC;IACxD,qBAAqB,CAAC,EAAE,yBAAyB,CAAC;IAClD,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;IAC9F,gBAAgB,EAAE,oBAAoB,CAAC;IACvC,wBAAwB,EAAE,MAAM,CAAC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;CAC7B;AAED,wBAAgB,6BAA6B,
|
|
1
|
+
{"version":3,"file":"useScheduledEmailFormValidity.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAI1C,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAEjE,MAAM,WAAW,mCAAmC;IAChD,gBAAgB,EAAE,mCAAmC,CAAC;IACtD,kBAAkB,EAAE,mCAAmC,CAAC;IACxD,qBAAqB,CAAC,EAAE,yBAAyB,CAAC;IAClD,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;IAC9F,gBAAgB,EAAE,oBAAoB,CAAC;IACvC,wBAAwB,EAAE,MAAM,CAAC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;CAC7B;AAED,wBAAgB,6BAA6B,CACzC,KAAK,EAAE,mCAAmC,GAC3C,8BAA8B,CAsEhC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useIntl } from "react-intl";
|
|
3
3
|
import { isAutomationExternalUserRecipient, isAutomationUnknownUserRecipient, isAutomationUserRecipient, } from "@gooddata/sdk-model";
|
|
4
4
|
import { areAutomationsEqual } from "../../shared/utils/automationUtils.js";
|
|
5
|
-
import { useScheduleValidation } from "../
|
|
5
|
+
import { useScheduleValidation } from "../hooks/useScheduleValidation.js";
|
|
6
6
|
import { isEmail } from "../utils/validate.js";
|
|
7
7
|
export function useScheduledEmailFormValidity(props) {
|
|
8
8
|
const { editedAutomation, originalAutomation, scheduledExportToEdit, notificationChannels, defaultRecipient, maxAutomationsRecipients, isCronValid, isTitleValid, isSubjectValid, isOnMessageValid, } = props;
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type IScheduledExportAttachments } from "./types.js";
|
|
1
2
|
/**
|
|
2
3
|
* Reads what the scheduled-export dialog's attachment section displays: the selected formats, which
|
|
3
4
|
* export kinds are present, the per-format settings with their fallbacks, and the slides template
|
|
@@ -8,32 +9,7 @@
|
|
|
8
9
|
* *change* attachments are on {@link useScheduledExportActions}, because they capture the stored
|
|
9
10
|
* export-parameter wire, which must exist once per dialog.
|
|
10
11
|
*
|
|
11
|
-
* @
|
|
12
|
+
* @alpha
|
|
12
13
|
*/
|
|
13
|
-
export declare function useScheduledExportAttachments():
|
|
14
|
-
selectedAttachments: ("CSV" | "CSV_RAW" | "HTML" | "PDF" | "PDF_SLIDES" | "PDF_TABULAR" | "PNG" | "PPTX" | "XLSX")[];
|
|
15
|
-
isDashboardExportSelected: boolean;
|
|
16
|
-
isCsvExportSelected: boolean;
|
|
17
|
-
isXlsxExportSelected: boolean;
|
|
18
|
-
xlsxSettings: {
|
|
19
|
-
mergeHeaders: boolean;
|
|
20
|
-
exportInfo: boolean;
|
|
21
|
-
};
|
|
22
|
-
pdfSettings: {
|
|
23
|
-
pageSize: import("../utils/pdfPageSize.js").PdfPageSize;
|
|
24
|
-
orientation: "landscape" | "portrait";
|
|
25
|
-
exportInfo: boolean;
|
|
26
|
-
};
|
|
27
|
-
csvSettings: {
|
|
28
|
-
delimiter: string | undefined;
|
|
29
|
-
};
|
|
30
|
-
csvRawSettings: {
|
|
31
|
-
delimiter: string | undefined;
|
|
32
|
-
};
|
|
33
|
-
slidesTemplateIds: {
|
|
34
|
-
PPTX: string | undefined;
|
|
35
|
-
PDF_SLIDES: string | undefined;
|
|
36
|
-
PDF: string | undefined;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
14
|
+
export declare function useScheduledExportAttachments(): IScheduledExportAttachments;
|
|
39
15
|
//# sourceMappingURL=useScheduledExportAttachments.d.ts.map
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScheduledExportAttachments.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useScheduledExportAttachments.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAE9D;;;;;;;;;;;GAWG;AACH,wBAAgB,6BAA6B,IAAI,2BAA2B,CAuH3E"}
|
|
@@ -15,7 +15,7 @@ import { useScheduledExportDraft } from "./ScheduledExportDraftContext.js";
|
|
|
15
15
|
* *change* attachments are on {@link useScheduledExportActions}, because they capture the stored
|
|
16
16
|
* export-parameter wire, which must exist once per dialog.
|
|
17
17
|
*
|
|
18
|
-
* @
|
|
18
|
+
* @alpha
|
|
19
19
|
*/
|
|
20
20
|
export function useScheduledExportAttachments() {
|
|
21
21
|
const { settings } = useAutomationsContext();
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type IScheduledExportDialogValidity } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* Reads the scheduled-export dialog's validity: whether submit is enabled, the validation message to
|
|
4
4
|
* show, whether the schedule's source widget still exists, and which recipient kinds the selected
|
|
@@ -7,7 +7,7 @@ import { useScheduledEmailFormValidity } from "./useScheduledEmailFormValidity.j
|
|
|
7
7
|
* Derived per consumer rather than published on a context: it is a pure function of the draft, the
|
|
8
8
|
* recipient defaults and the dialog's own context, and no consumer observes its identity.
|
|
9
9
|
*
|
|
10
|
-
* @
|
|
10
|
+
* @alpha
|
|
11
11
|
*/
|
|
12
|
-
export declare function useScheduledExportDialogValidity():
|
|
12
|
+
export declare function useScheduledExportDialogValidity(): IScheduledExportDialogValidity;
|
|
13
13
|
//# sourceMappingURL=useScheduledExportDialogValidity.d.ts.map
|