@gooddata/sdk-ui-dashboard 11.56.0-alpha.6 → 11.56.0-alpha.8
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 +1 -1
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/_staging/catalog/computedAttributes.d.ts +43 -0
- package/esm/_staging/catalog/computedAttributes.d.ts.map +1 -0
- package/esm/_staging/catalog/computedAttributes.js +93 -0
- package/esm/_staging/catalog/displayFormMap.d.ts +3 -2
- package/esm/_staging/catalog/displayFormMap.d.ts.map +1 -1
- package/esm/_staging/catalog/displayFormMap.js +9 -3
- package/esm/_staging/metadata/objRefMap.d.ts.map +1 -1
- package/esm/_staging/metadata/objRefMap.js +11 -1
- package/esm/index.d.ts +9 -5
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +7 -3
- package/esm/kdaDialog/composition/hooks/useKdaValidAttributes.js +2 -2
- package/esm/kdaDialog/dialog/hooks/useValidAttributes.d.ts.map +1 -1
- package/esm/kdaDialog/dialog/hooks/useValidAttributes.js +21 -6
- package/esm/kdaDialog/hooks/useAttribute.d.ts.map +1 -1
- package/esm/kdaDialog/hooks/useAttribute.js +16 -8
- package/esm/locales.d.ts +3 -0
- package/esm/locales.d.ts.map +1 -1
- package/esm/locales.js +3 -0
- package/esm/model/commandHandlers/dashboard/common/loadAvailableDisplayFormRefs.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/loadAvailableDisplayFormRefs.js +15 -6
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts +2 -3
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +26 -17
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadCatalog.d.ts +6 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadCatalog.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadCatalog.js +37 -4
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.d.ts +7 -2
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.js +15 -3
- package/esm/model/commandHandlers/filterContext/attributeFilter/validation/filterDisplayFormValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/validation/filterDisplayFormValidation.js +10 -3
- package/esm/model/commandHandlers/filterContext/attributeFilter/validation/uniqueFiltersValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/validation/uniqueFiltersValidation.js +24 -14
- package/esm/model/commandHandlers/scheduledEmail/createScheduledEmailHandler.js +2 -2
- package/esm/model/commandHandlers/scheduledEmail/saveScheduledEmailHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/attributeHierarchyModifiedHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/attributeHierarchyModifiedHandler.js +6 -0
- package/esm/model/commandHandlers/widgets/exportInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/exportInsightWidgetHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.js +2 -2
- package/esm/model/queries/base.d.ts +1 -1
- package/esm/model/queries/base.d.ts.map +1 -1
- package/esm/model/queries/base.js +1 -1
- package/esm/model/queries/computedAttributeExpression.d.ts +27 -0
- package/esm/model/queries/computedAttributeExpression.d.ts.map +1 -0
- package/esm/model/queries/computedAttributeExpression.js +21 -0
- package/esm/model/queries/connectedAttributes.d.ts +19 -1
- package/esm/model/queries/connectedAttributes.d.ts.map +1 -1
- package/esm/model/queries/connectedAttributes.js +3 -1
- package/esm/model/queries/index.d.ts +2 -1
- package/esm/model/queries/index.d.ts.map +1 -1
- package/esm/model/queryServices/index.d.ts +1 -1
- package/esm/model/queryServices/index.d.ts.map +1 -1
- package/esm/model/queryServices/index.js +2 -0
- package/esm/model/queryServices/queryAttributeByDisplayForm.d.ts.map +1 -1
- package/esm/model/queryServices/queryAttributeByDisplayForm.js +12 -3
- package/esm/model/queryServices/queryAttributeDataset.d.ts.map +1 -1
- package/esm/model/queryServices/queryAttributeDataset.js +9 -1
- package/esm/model/queryServices/queryComputedAttributeExpression.d.ts +4 -0
- package/esm/model/queryServices/queryComputedAttributeExpression.d.ts.map +1 -0
- package/esm/model/queryServices/queryComputedAttributeExpression.js +17 -0
- package/esm/model/queryServices/queryConnectedAttributes.d.ts.map +1 -1
- package/esm/model/queryServices/queryConnectedAttributes.js +20 -5
- package/esm/model/queryServices/queryInsightAttributesMeta.d.ts.map +1 -1
- package/esm/model/queryServices/queryInsightAttributesMeta.js +20 -11
- package/esm/model/react/useIsWidgetRestricted.d.ts +9 -0
- package/esm/model/react/useIsWidgetRestricted.d.ts.map +1 -0
- package/esm/model/react/useIsWidgetRestricted.js +14 -0
- package/esm/model/store/catalog/catalogReducers.d.ts +2 -1
- package/esm/model/store/catalog/catalogReducers.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogReducers.js +2 -1
- package/esm/model/store/catalog/catalogSelectors.d.ts +21 -1
- package/esm/model/store/catalog/catalogSelectors.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogSelectors.js +26 -2
- package/esm/model/store/catalog/catalogState.d.ts +8 -1
- package/esm/model/store/catalog/catalogState.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogState.js +1 -0
- package/esm/model/store/config/configSelectors.d.ts +11 -0
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +13 -0
- package/esm/model/store/insights/insightsSelectors.js +3 -3
- package/esm/model/store/tabs/filterContext/filterContextSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextSelectors.js +8 -4
- package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.d.ts +8 -0
- package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.d.ts.map +1 -1
- package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.js +8 -0
- package/esm/model/utils/displayFormResolver.d.ts.map +1 -1
- package/esm/model/utils/displayFormResolver.js +11 -1
- package/esm/plugins/customizationApis/customizationBuilder.d.ts.map +1 -1
- package/esm/plugins/customizationApis/customizationBuilder.js +1 -0
- package/esm/plugins/customizationApis/insightCustomizer.d.ts +4 -2
- package/esm/plugins/customizationApis/insightCustomizer.d.ts.map +1 -1
- package/esm/plugins/customizationApis/insightCustomizer.js +43 -3
- package/esm/plugins/customizer.d.ts +14 -1
- package/esm/plugins/customizer.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/AlertingDialog.d.ts +2 -0
- package/esm/presentation/automations/alerting/AlertingDialog.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/AlertingDialog.js +12 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +1 -1
- package/esm/presentation/automations/alerting/state/AlertingDialogStateProvider.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/state/AlertingDialogStateProvider.js +23 -58
- package/esm/presentation/automations/alerting/state/useAlertDraftFilterWrites.d.ts +33 -0
- package/esm/presentation/automations/alerting/state/useAlertDraftFilterWrites.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/state/useAlertDraftFilterWrites.js +61 -0
- package/esm/presentation/automations/alerting/state/useAlertFiltersModel.d.ts +3 -17
- package/esm/presentation/automations/alerting/state/useAlertFiltersModel.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/state/useAlertFiltersModel.js +3 -52
- package/esm/presentation/automations/alerting/state/useAlertFormState.js +1 -1
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.js +2 -2
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +1 -1
- package/esm/presentation/automations/scheduledEmail/ScheduledEmailDialog.d.ts +3 -1
- package/esm/presentation/automations/scheduledEmail/ScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/ScheduledEmailDialog.js +13 -3
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.js +2 -5
- package/esm/presentation/automations/scheduledEmail/state/ScheduledEmailDialogStateProvider.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledEmailDialogStateProvider.js +22 -40
- package/esm/presentation/automations/scheduledEmail/state/useSaveScheduledEmailToBackend.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useSaveScheduledEmailToBackend.js +14 -3
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDraftFilterWrites.d.ts +27 -0
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDraftFilterWrites.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDraftFilterWrites.js +142 -0
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFiltersModel.d.ts +4 -6
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFiltersModel.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFiltersModel.js +9 -151
- package/esm/presentation/automations/shared/filters/conversions.d.ts +4 -0
- package/esm/presentation/automations/shared/filters/conversions.d.ts.map +1 -1
- package/esm/presentation/automations/shared/filters/conversions.js +28 -24
- package/esm/presentation/automations/shared/hooks/useDecoratorContractCheck.d.ts +16 -0
- package/esm/presentation/automations/shared/hooks/useDecoratorContractCheck.d.ts.map +1 -0
- package/esm/presentation/automations/shared/hooks/useDecoratorContractCheck.js +38 -0
- package/esm/presentation/automations/shared/hooks/useShallowStable.d.ts +10 -0
- package/esm/presentation/automations/shared/hooks/useShallowStable.d.ts.map +1 -0
- package/esm/presentation/automations/shared/hooks/useShallowStable.js +18 -0
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js +17 -4
- package/esm/presentation/dashboard/DashboardSidebar/SidebarCollapseToggle.d.ts +10 -0
- package/esm/presentation/dashboard/DashboardSidebar/SidebarCollapseToggle.d.ts.map +1 -0
- package/esm/presentation/dashboard/DashboardSidebar/SidebarCollapseToggle.js +19 -0
- package/esm/presentation/dashboard/DashboardSidebar/SidebarConfigurationPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/SidebarConfigurationPanel.js +8 -2
- package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeChrome.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeChrome.js +4 -2
- package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeContext.d.ts +8 -3
- package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeContext.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeContext.js +65 -25
- package/esm/presentation/dashboard/components/DashboardInner.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardInner.js +4 -4
- package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.js +2 -2
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts +2 -1
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts.map +1 -1
- package/esm/presentation/dashboard/hooks/useDashboard.js +7 -1
- package/esm/presentation/dashboard/types.d.ts +14 -1
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +2 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.js +1 -0
- package/esm/presentation/dashboardContexts/types.d.ts +20 -0
- package/esm/presentation/dashboardContexts/types.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableAttributeFilter/DefaultAttributeFilterDraggingComponent.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableAttributeFilter/DefaultAttributeFilterDraggingComponent.js +4 -3
- package/esm/presentation/export/useExportData.js +2 -2
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltip.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltip.js +8 -2
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltipContent.d.ts +12 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltipContent.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltipContent.js +19 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/displayForms/AttributeDisplayFormsDropdown.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/displayForms/AttributeDisplayFormsDropdown.js +3 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useComputedAttributeExpression.d.ts +14 -0
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useComputedAttributeExpression.d.ts.map +1 -0
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useComputedAttributeExpression.js +28 -0
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDisplayFormConfiguration.js +2 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useValidNeighbourAttributes.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useValidNeighbourAttributes.js +12 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/shared/limitingItemsHook.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/shared/limitingItemsHook.js +6 -5
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/parentFilters/ParentFiltersDisabledItem.js +2 -2
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarItem.js +2 -2
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.js +2 -2
- package/esm/presentation/filterBar/measureValueFilter/useDashboardMeasureValueFilterData.d.ts.map +1 -1
- package/esm/presentation/filterBar/measureValueFilter/useDashboardMeasureValueFilterData.js +55 -17
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +6 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +40 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +40 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-419.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +33 -32
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +5 -4
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +5 -4
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +5 -4
- package/esm/presentation/widget/common/RestrictedPlaceholder.d.ts +54 -0
- package/esm/presentation/widget/common/RestrictedPlaceholder.d.ts.map +1 -0
- package/esm/presentation/widget/common/RestrictedPlaceholder.js +49 -0
- package/esm/presentation/widget/common/configuration/DateDatasetFilter.d.ts +6 -1
- package/esm/presentation/widget/common/configuration/DateDatasetFilter.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/DateDatasetFilter.js +2 -2
- package/esm/presentation/widget/common/configuration/DateFilterCheckbox.d.ts +6 -1
- package/esm/presentation/widget/common/configuration/DateFilterCheckbox.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/DateFilterCheckbox.js +10 -3
- package/esm/presentation/widget/insight/DefaultInsightBody/DefaultInsightBody.js +2 -2
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightDateDataSetFilter.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDateDataSetFilter.js +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigList.d.ts +6 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigList.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigList.js +13 -2
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/InsightDrillConfigPanel.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/InsightDrillConfigPanel.js +5 -1
- package/esm/presentation/widget/insight/configuration/useDrillTargetTypeItems.d.ts +1 -1
- package/esm/presentation/widget/insight/configuration/useDrillTargetTypeItems.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/useDrillTargetTypeItems.js +2 -2
- package/esm/presentation/widget/richText/configuration/RichTextDateDataSetFilter.d.ts.map +1 -1
- package/esm/presentation/widget/richText/configuration/RichTextDateDataSetFilter.js +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +8 -0
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcherRestricted.d.ts +16 -0
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcherRestricted.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcherRestricted.js +19 -0
- package/esm/presentation/widget/widget/InsightWidget/DashboardWidgetInsightGuard.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DashboardWidgetInsightGuard.js +11 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +2 -2
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.js +25 -12
- package/esm/sdk-ui-dashboard.d.ts +206 -4
- package/package.json +22 -22
- package/styles/css/alerting.css +3 -1
- package/styles/css/alerting.css.map +1 -1
- package/styles/css/configurationPanel.css +1 -5
- package/styles/css/configurationPanel.css.map +1 -1
- package/styles/css/dashboard.css +5 -3
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/export.css +10 -8
- package/styles/css/export.css.map +1 -1
- package/styles/css/filterBar.css +29 -0
- package/styles/css/filterBar.css.map +1 -1
- package/styles/css/main.css +230 -22
- package/styles/css/main.css.map +1 -1
- package/styles/css/sidebar.css +165 -0
- package/styles/css/sidebar.css.map +1 -1
- package/styles/css/visualizationSwitcherWidget.css +8 -0
- package/styles/css/visualizationSwitcherWidget.css.map +1 -1
- package/styles/scss/configurationPanel.scss +1 -7
- package/styles/scss/filterBar.scss +38 -0
- package/styles/scss/sidebar.scss +215 -0
- package/styles/scss/visualizationSwitcherWidget.scss +9 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customizer.d.ts","sourceRoot":"","sources":["../../src/plugins/customizer.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC/B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAC7G,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC5F,OAAO,KAAK,EACR,gCAAgC,EAChC,iCAAiC,EACjC,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,wCAAwC,EACxC,yCAAyC,EACzC,mCAAmC,EACnC,kCAAkC,EAClC,oCAAoC,EACpC,oCAAoC,EACpC,gCAAgC,EAChC,+BAA+B,EAC/B,gCAAgC,EAChC,2CAA2C,EAC3C,iCAAiC,EACjC,8BAA8B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E,MAAM,EACjB,QAAQ,EAAE,uBAAuB,CAAC,OAAO,CAAC,GAC3C,uBAAuB,CAAC;IAE3B;;;;;;;;;OASG;IACH,qBAAqB,CAAC,OAAO,EAAE,qBAAqB,GAAG,uBAAuB,CAAC;IAE/E;;;;;;;;;OASG;IACH,wBAAwB,CAAC,OAAO,EAAE,qBAAqB,GAAG,uBAAuB,CAAC;IAElF;;;;;;;;;;;;;;;;;OAiBG;IACH,uBAAuB,CAAC,QAAQ,EAAE,4BAA4B,GAAG,uBAAuB,CAAC;IAEzF;;;;;OAKG;IACH,2BAA2B,CAAC,QAAQ,EAAE,4BAA4B,GAAG,uBAAuB,CAAC;CAChG"}
|
|
@@ -4,6 +4,8 @@ import { type IAlertingDialogProps } from "./types.js";
|
|
|
4
4
|
* Resolves the dialog component from DashboardComponentsContext and mounts it under the
|
|
5
5
|
* alerting dialog's state contexts, inside the resolved context decorator — so a decorated
|
|
6
6
|
* dialog context is what both the state seeding and the dialog (default or replacement) read.
|
|
7
|
+
* A contract check between the decorator and the state provider warns once per dialog open
|
|
8
|
+
* when the decorated value forces `isLoading` false during loading or drops connector keys.
|
|
7
9
|
*
|
|
8
10
|
* @internal
|
|
9
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertingDialog.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/alerting/AlertingDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"AlertingDialog.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/alerting/AlertingDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,OAAO,CAAC;AAU1D,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,oBAAoB,GAAG,YAAY,CAcxE"}
|
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useDashboardComponentsContext } from "../../dashboardContexts/DashboardComponentsContext.js";
|
|
3
|
+
import { useAlertingDialogContext, } from "../contexts/AlertingDialogContext.js";
|
|
4
|
+
import { useDecoratorContractCheck } from "../shared/hooks/useDecoratorContractCheck.js";
|
|
3
5
|
import { AlertingDialogStateProvider } from "./state/AlertingDialogStateProvider.js";
|
|
4
6
|
/**
|
|
5
7
|
* Resolves the dialog component from DashboardComponentsContext and mounts it under the
|
|
6
8
|
* alerting dialog's state contexts, inside the resolved context decorator — so a decorated
|
|
7
9
|
* dialog context is what both the state seeding and the dialog (default or replacement) read.
|
|
10
|
+
* A contract check between the decorator and the state provider warns once per dialog open
|
|
11
|
+
* when the decorated value forces `isLoading` false during loading or drops connector keys.
|
|
8
12
|
*
|
|
9
13
|
* @internal
|
|
10
14
|
*/
|
|
11
15
|
export function AlertingDialog(props) {
|
|
12
16
|
const { AlertingDialogComponent, AlertingDialogContextDecoratorComponent } = useDashboardComponentsContext();
|
|
13
|
-
|
|
17
|
+
const pristineContext = useAlertingDialogContext();
|
|
18
|
+
return (_jsx(AlertingDialogContextDecoratorComponent, { children: _jsx(AlertingDialogDecoratorContractCheck, { pristineContext: pristineContext, children: _jsx(AlertingDialogStateProvider, { children: _jsx(AlertingDialogComponent, { ...props }) }) }) }));
|
|
19
|
+
}
|
|
20
|
+
function AlertingDialogDecoratorContractCheck({ pristineContext, children, }) {
|
|
21
|
+
const decoratedContext = useAlertingDialogContext();
|
|
22
|
+
useDecoratorContractCheck(pristineContext, decoratedContext, "AlertingDialogContextDecoratorComponent");
|
|
23
|
+
return _jsx(_Fragment, { children: children });
|
|
14
24
|
}
|
package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultAlertingDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AA2B1C,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAM/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,2BAA2B,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"DefaultAlertingDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AA2B1C,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAM/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,2BAA2B,GAAG,YAAY,CAkBtF"}
|
package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js
CHANGED
|
@@ -64,7 +64,7 @@ export function DefaultAlertingDialog(props) {
|
|
|
64
64
|
const { locale } = useAutomationsContext();
|
|
65
65
|
const { isLoading, alertToEdit } = useAlertingDialogContext();
|
|
66
66
|
if (isLoading) {
|
|
67
|
-
return _jsx(DefaultLoadingAlertingDialog, { onCancel: onCancel, alertToEdit: alertToEdit });
|
|
67
|
+
return (_jsx(IntlWrapper, { locale: locale, children: _jsx(DefaultLoadingAlertingDialog, { onCancel: onCancel, alertToEdit: alertToEdit }) }));
|
|
68
68
|
}
|
|
69
69
|
return (_jsx(IntlWrapper, { locale: locale, children: _jsx(DefaultAlertingDialogBody, { ...props }) }));
|
|
70
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertingDialogStateProvider.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/AlertingDialogStateProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"AlertingDialogStateProvider.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/AlertingDialogStateProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAuBjD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,2BAA2B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAWhF"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { useState } from "react";
|
|
4
4
|
import { useAlertingDialogContext } from "../../contexts/AlertingDialogContext.js";
|
|
5
5
|
import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
|
|
6
6
|
import { useAutomationFiltersSelect } from "../../shared/automationFilters/useAutomationFiltersSelect.js";
|
|
7
|
+
import { useShallowStable } from "../../shared/hooks/useShallowStable.js";
|
|
7
8
|
import { AlertActionsContextProvider } from "./AlertActionsContext.js";
|
|
8
9
|
import { AlertDataContextProvider } from "./AlertDataContext.js";
|
|
9
10
|
import { AlertDraftContextProvider } from "./AlertDraftContext.js";
|
|
10
11
|
import { AlertFiltersContextProvider } from "./AlertFiltersContext.js";
|
|
12
|
+
import { useAlertDraftFilterWrites } from "./useAlertDraftFilterWrites.js";
|
|
11
13
|
import { useAlertFiltersModel } from "./useAlertFiltersModel.js";
|
|
12
14
|
import { useAlertFormState } from "./useAlertFormState.js";
|
|
13
15
|
import { getAlertSelectedValues } from "./useAlertSelectedValues.js";
|
|
@@ -63,18 +65,13 @@ function LoadedAlertingDialogState({ children }) {
|
|
|
63
65
|
supportedAttributes,
|
|
64
66
|
notificationChannels,
|
|
65
67
|
});
|
|
66
|
-
const
|
|
68
|
+
const { applyFiltersToDraft } = useAlertDraftFilterWrites({
|
|
67
69
|
setEditedAutomation: formState.setEditedAutomation,
|
|
68
|
-
alertToEdit,
|
|
69
|
-
editedAutomationFilters,
|
|
70
|
-
setEditedAutomationFilters,
|
|
71
|
-
availableFilters,
|
|
72
|
-
filtersForNewAutomation,
|
|
73
|
-
availableFiltersAsVisibleFilters,
|
|
74
70
|
dashboardHiddenFilters,
|
|
75
71
|
commonDateFilterId,
|
|
76
72
|
widget,
|
|
77
73
|
insight,
|
|
74
|
+
availableFiltersAsVisibleFilters,
|
|
78
75
|
supportedMeasures,
|
|
79
76
|
supportedAttributes,
|
|
80
77
|
measureFormatMap,
|
|
@@ -84,18 +81,23 @@ function LoadedAlertingDialogState({ children }) {
|
|
|
84
81
|
weekStart,
|
|
85
82
|
timezone,
|
|
86
83
|
});
|
|
87
|
-
const
|
|
84
|
+
const filtersModel = useAlertFiltersModel({
|
|
85
|
+
alertToEdit,
|
|
86
|
+
editedAutomationFilters,
|
|
87
|
+
setEditedAutomationFilters,
|
|
88
|
+
availableFilters,
|
|
89
|
+
filtersForNewAutomation,
|
|
90
|
+
widget,
|
|
91
|
+
insight,
|
|
92
|
+
applyFiltersToDraft,
|
|
93
|
+
});
|
|
94
|
+
const draft = useShallowStable({
|
|
88
95
|
editedAutomation: formState.editedAutomation,
|
|
89
96
|
originalAutomation: formState.originalAutomation,
|
|
90
97
|
warningMessage: formState.warningMessage,
|
|
91
98
|
isTitleValid: formState.isTitleValid,
|
|
92
|
-
})
|
|
93
|
-
|
|
94
|
-
formState.originalAutomation,
|
|
95
|
-
formState.warningMessage,
|
|
96
|
-
formState.isTitleValid,
|
|
97
|
-
]);
|
|
98
|
-
const actions = useMemo(() => ({
|
|
99
|
+
});
|
|
100
|
+
const actions = useShallowStable({
|
|
99
101
|
setEditedAutomation: formState.setEditedAutomation,
|
|
100
102
|
onTitleChange: formState.onTitleChange,
|
|
101
103
|
onMeasureChange: formState.onMeasureChange,
|
|
@@ -110,23 +112,8 @@ function LoadedAlertingDialogState({ children }) {
|
|
|
110
112
|
onDestinationChange: formState.onDestinationChange,
|
|
111
113
|
onTriggerModeChange: formState.onTriggerModeChange,
|
|
112
114
|
onRecipientsChange: formState.onRecipientsChange,
|
|
113
|
-
})
|
|
114
|
-
|
|
115
|
-
formState.onTitleChange,
|
|
116
|
-
formState.onMeasureChange,
|
|
117
|
-
formState.onAttributeChange,
|
|
118
|
-
formState.onComparisonOperatorChange,
|
|
119
|
-
formState.onRelativeOperatorChange,
|
|
120
|
-
formState.onAnomalyDetectionChange,
|
|
121
|
-
formState.onComparisonTypeChange,
|
|
122
|
-
formState.onSensitivityChange,
|
|
123
|
-
formState.onTriggerIntervalChange,
|
|
124
|
-
formState.onGranularityChange,
|
|
125
|
-
formState.onDestinationChange,
|
|
126
|
-
formState.onTriggerModeChange,
|
|
127
|
-
formState.onRecipientsChange,
|
|
128
|
-
]);
|
|
129
|
-
const data = useMemo(() => ({
|
|
115
|
+
});
|
|
116
|
+
const data = useShallowStable({
|
|
130
117
|
supportedMeasures,
|
|
131
118
|
supportedAttributes,
|
|
132
119
|
measureFormatMap,
|
|
@@ -135,17 +122,8 @@ function LoadedAlertingDialogState({ children }) {
|
|
|
135
122
|
getMetricValue,
|
|
136
123
|
defaultUser: formState.defaultUser,
|
|
137
124
|
defaultRecipient: formState.defaultRecipient,
|
|
138
|
-
})
|
|
139
|
-
|
|
140
|
-
supportedAttributes,
|
|
141
|
-
measureFormatMap,
|
|
142
|
-
isResultLoading,
|
|
143
|
-
getAttributeValues,
|
|
144
|
-
getMetricValue,
|
|
145
|
-
formState.defaultUser,
|
|
146
|
-
formState.defaultRecipient,
|
|
147
|
-
]);
|
|
148
|
-
const filters = useMemo(() => ({
|
|
125
|
+
});
|
|
126
|
+
const filters = useShallowStable({
|
|
149
127
|
selectedFilters: filtersModel.selectedFilters,
|
|
150
128
|
availableFilters: filtersModel.availableFilters,
|
|
151
129
|
onFiltersChange: filtersModel.onFiltersChange,
|
|
@@ -158,19 +136,6 @@ function LoadedAlertingDialogState({ children }) {
|
|
|
158
136
|
onParameterDelete: formState.onParameterDelete,
|
|
159
137
|
onParameterAdd: formState.onParameterAdd,
|
|
160
138
|
dropStaleParameters: formState.dropStaleParameters,
|
|
161
|
-
})
|
|
162
|
-
filtersModel.selectedFilters,
|
|
163
|
-
filtersModel.availableFilters,
|
|
164
|
-
filtersModel.onFiltersChange,
|
|
165
|
-
filtersModel.onApplyCurrentFilters,
|
|
166
|
-
filtersModel.automationIsValid,
|
|
167
|
-
filtersModel.filtersAreStale,
|
|
168
|
-
formState.automationParameters,
|
|
169
|
-
formState.availableParameters,
|
|
170
|
-
formState.onParameterChange,
|
|
171
|
-
formState.onParameterDelete,
|
|
172
|
-
formState.onParameterAdd,
|
|
173
|
-
formState.dropStaleParameters,
|
|
174
|
-
]);
|
|
139
|
+
});
|
|
175
140
|
return (_jsx(AlertDraftContextProvider, { value: draft, children: _jsx(AlertActionsContextProvider, { value: actions, children: _jsx(AlertDataContextProvider, { value: data, children: _jsx(AlertFiltersContextProvider, { value: filters, children: children }) }) }) }));
|
|
176
141
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type Dispatch, type SetStateAction } from "react";
|
|
2
|
+
import { type FilterContextItem, type IAutomationMetadataObjectDefinition, type IAutomationVisibleFilter, type IInsight, type IWidget, type WeekStart } from "@gooddata/sdk-model";
|
|
3
|
+
import { type AlertAttribute, type AlertMetric } from "../types.js";
|
|
4
|
+
import { type IMeasureFormatMap } from "../utils/getters.js";
|
|
5
|
+
/**
|
|
6
|
+
* Props for {@link useAlertDraftFilterWrites}.
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export interface IUseAlertDraftFilterWritesProps {
|
|
10
|
+
setEditedAutomation: Dispatch<SetStateAction<IAutomationMetadataObjectDefinition | undefined>>;
|
|
11
|
+
dashboardHiddenFilters: FilterContextItem[];
|
|
12
|
+
commonDateFilterId?: string;
|
|
13
|
+
widget?: IWidget;
|
|
14
|
+
insight?: IInsight;
|
|
15
|
+
availableFiltersAsVisibleFilters?: IAutomationVisibleFilter[] | undefined;
|
|
16
|
+
supportedMeasures: AlertMetric[];
|
|
17
|
+
supportedAttributes: AlertAttribute[];
|
|
18
|
+
measureFormatMap: IMeasureFormatMap;
|
|
19
|
+
selectedMeasure: AlertMetric | undefined;
|
|
20
|
+
selectedAttribute: AlertAttribute | undefined;
|
|
21
|
+
selectedValue: string | null | undefined;
|
|
22
|
+
weekStart: WeekStart;
|
|
23
|
+
timezone: string | undefined;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Owns the alert draft's filter writes: reconciling a new filter selection into the edited automation.
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export declare function useAlertDraftFilterWrites({ setEditedAutomation, dashboardHiddenFilters, commonDateFilterId, widget, insight, availableFiltersAsVisibleFilters, supportedMeasures, supportedAttributes, measureFormatMap, selectedMeasure, selectedAttribute, selectedValue, weekStart, timezone, }: IUseAlertDraftFilterWritesProps): {
|
|
31
|
+
applyFiltersToDraft: (filters: FilterContextItem[]) => void;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=useAlertDraftFilterWrites.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAlertDraftFilterWrites.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertDraftFilterWrites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAe,MAAM,OAAO,CAAC;AAExE,OAAO,EACH,KAAK,iBAAiB,EAEtB,KAAK,mCAAmC,EACxC,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,SAAS,EACjB,MAAM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
import { useCallback } from "react";
|
|
3
|
+
import { getAppliedWidgetFilters, getVisibleFiltersByFilters } from "../../shared/filters/index.js";
|
|
4
|
+
import { transformAlertByAttribute, transformAlertByMetric } from "../utils/transformation.js";
|
|
5
|
+
/**
|
|
6
|
+
* Owns the alert draft's filter writes: reconciling a new filter selection into the edited automation.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export function useAlertDraftFilterWrites({ setEditedAutomation, dashboardHiddenFilters, commonDateFilterId, widget, insight, availableFiltersAsVisibleFilters, supportedMeasures, supportedAttributes, measureFormatMap, selectedMeasure, selectedAttribute, selectedValue, weekStart, timezone, }) {
|
|
11
|
+
const applyFiltersToDraft = useCallback((filters) => {
|
|
12
|
+
setEditedAutomation((s) => {
|
|
13
|
+
if (!s) {
|
|
14
|
+
return undefined;
|
|
15
|
+
}
|
|
16
|
+
const appliedFilters = getAppliedWidgetFilters(filters, dashboardHiddenFilters, widget, insight, commonDateFilterId, true, !s.metadata?.widget);
|
|
17
|
+
const visibleFilters = getVisibleFiltersByFilters(filters, availableFiltersAsVisibleFilters, true);
|
|
18
|
+
const updatedAutomationWithFilters = {
|
|
19
|
+
...s,
|
|
20
|
+
alert: {
|
|
21
|
+
...s.alert,
|
|
22
|
+
execution: {
|
|
23
|
+
...s.alert.execution,
|
|
24
|
+
filters: appliedFilters,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
metadata: {
|
|
28
|
+
...s.metadata,
|
|
29
|
+
visibleFilters,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
const updatedAutomationWithAttribute = transformAlertByAttribute(supportedAttributes, updatedAutomationWithFilters, selectedAttribute, {
|
|
33
|
+
name: selectedValue ?? "",
|
|
34
|
+
title: "",
|
|
35
|
+
value: "",
|
|
36
|
+
});
|
|
37
|
+
return selectedMeasure
|
|
38
|
+
? transformAlertByMetric(supportedMeasures, updatedAutomationWithAttribute, selectedMeasure, measureFormatMap, weekStart, timezone)
|
|
39
|
+
: updatedAutomationWithAttribute;
|
|
40
|
+
});
|
|
41
|
+
}, [
|
|
42
|
+
setEditedAutomation,
|
|
43
|
+
availableFiltersAsVisibleFilters,
|
|
44
|
+
widget,
|
|
45
|
+
insight,
|
|
46
|
+
dashboardHiddenFilters,
|
|
47
|
+
commonDateFilterId,
|
|
48
|
+
//
|
|
49
|
+
selectedAttribute,
|
|
50
|
+
selectedValue,
|
|
51
|
+
supportedAttributes,
|
|
52
|
+
//
|
|
53
|
+
selectedMeasure,
|
|
54
|
+
supportedMeasures,
|
|
55
|
+
measureFormatMap,
|
|
56
|
+
//
|
|
57
|
+
weekStart,
|
|
58
|
+
timezone,
|
|
59
|
+
]);
|
|
60
|
+
return { applyFiltersToDraft };
|
|
61
|
+
}
|
|
@@ -1,32 +1,18 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type FilterContextItem, type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition, type IAutomationVisibleFilter, type IInsight, type IWidget, type WeekStart } from "@gooddata/sdk-model";
|
|
3
|
-
import { type AlertAttribute, type AlertMetric } from "../types.js";
|
|
4
|
-
import { type IMeasureFormatMap } from "../utils/getters.js";
|
|
1
|
+
import { type FilterContextItem, type IAutomationMetadataObject, type IInsight, type IWidget } from "@gooddata/sdk-model";
|
|
5
2
|
import { type IAlertFiltersModel } from "./types.js";
|
|
6
3
|
/**
|
|
7
4
|
* Props for {@link useAlertFiltersModel}.
|
|
8
5
|
* @internal
|
|
9
6
|
*/
|
|
10
7
|
export interface IUseAlertFiltersModelProps {
|
|
11
|
-
setEditedAutomation: Dispatch<SetStateAction<IAutomationMetadataObjectDefinition | undefined>>;
|
|
12
8
|
alertToEdit?: IAutomationMetadataObject;
|
|
13
9
|
editedAutomationFilters: FilterContextItem[];
|
|
14
10
|
setEditedAutomationFilters: (filters: FilterContextItem[]) => void;
|
|
15
11
|
availableFilters?: FilterContextItem[];
|
|
16
12
|
filtersForNewAutomation: FilterContextItem[];
|
|
17
|
-
availableFiltersAsVisibleFilters?: IAutomationVisibleFilter[] | undefined;
|
|
18
|
-
dashboardHiddenFilters: FilterContextItem[];
|
|
19
|
-
commonDateFilterId?: string;
|
|
20
13
|
widget?: IWidget;
|
|
21
14
|
insight?: IInsight;
|
|
22
|
-
|
|
23
|
-
supportedAttributes: AlertAttribute[];
|
|
24
|
-
measureFormatMap: IMeasureFormatMap;
|
|
25
|
-
selectedMeasure: AlertMetric | undefined;
|
|
26
|
-
selectedAttribute: AlertAttribute | undefined;
|
|
27
|
-
selectedValue: string | null | undefined;
|
|
28
|
-
weekStart: WeekStart;
|
|
29
|
-
timezone: string | undefined;
|
|
15
|
+
applyFiltersToDraft: (filters: FilterContextItem[]) => void;
|
|
30
16
|
}
|
|
31
17
|
/**
|
|
32
18
|
* Owns the alerting dialog's single filter model: the current selection and available filters,
|
|
@@ -41,5 +27,5 @@ export interface IUseAlertFiltersModelProps {
|
|
|
41
27
|
*
|
|
42
28
|
* @internal
|
|
43
29
|
*/
|
|
44
|
-
export declare function useAlertFiltersModel({
|
|
30
|
+
export declare function useAlertFiltersModel({ alertToEdit, editedAutomationFilters, setEditedAutomationFilters, availableFilters, filtersForNewAutomation, widget, insight, applyFiltersToDraft, }: IUseAlertFiltersModelProps): IAlertFiltersModel;
|
|
45
31
|
//# sourceMappingURL=useAlertFiltersModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAlertFiltersModel.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertFiltersModel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAlertFiltersModel.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertFiltersModel.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,KAAK,OAAO,EACf,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACvC,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,uBAAuB,EAAE,iBAAiB,EAAE,CAAC;IAC7C,0BAA0B,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IACnE,gBAAgB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACvC,uBAAuB,EAAE,iBAAiB,EAAE,CAAC;IAC7C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,mBAAmB,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;CAC/D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,EACjC,WAAW,EACX,uBAAuB,EACvB,0BAA0B,EAC1B,gBAAgB,EAChB,uBAAuB,EACvB,MAAM,EACN,OAAO,EACP,mBAAmB,GACtB,EAAE,0BAA0B,GAAG,kBAAkB,CA2BjD"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
import { useCallback } from "react";
|
|
3
3
|
import { useValidateExistingAutomationFilters } from "../../shared/automationFilters/hooks/useValidateExistingAutomationFilters.js";
|
|
4
|
-
import { getAppliedWidgetFilters, getVisibleFiltersByFilters } from "../../shared/filters/index.js";
|
|
5
|
-
import { transformAlertByAttribute, transformAlertByMetric } from "../utils/transformation.js";
|
|
6
4
|
/**
|
|
7
5
|
* Owns the alerting dialog's single filter model: the current selection and available filters,
|
|
8
6
|
* `onFiltersChange`/`onApplyCurrentFilters` to mutate the edited filters and mirror the result into
|
|
@@ -16,58 +14,11 @@ import { transformAlertByAttribute, transformAlertByMetric } from "../utils/tran
|
|
|
16
14
|
*
|
|
17
15
|
* @internal
|
|
18
16
|
*/
|
|
19
|
-
export function useAlertFiltersModel({
|
|
17
|
+
export function useAlertFiltersModel({ alertToEdit, editedAutomationFilters, setEditedAutomationFilters, availableFilters, filtersForNewAutomation, widget, insight, applyFiltersToDraft, }) {
|
|
20
18
|
const onFiltersChange = useCallback((filters) => {
|
|
21
19
|
setEditedAutomationFilters(filters);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
const appliedFilters = getAppliedWidgetFilters(filters, dashboardHiddenFilters, widget, insight, commonDateFilterId, true, !s.metadata?.widget);
|
|
27
|
-
const visibleFilters = getVisibleFiltersByFilters(filters, availableFiltersAsVisibleFilters, true);
|
|
28
|
-
const updatedAutomationWithFilters = {
|
|
29
|
-
...s,
|
|
30
|
-
alert: {
|
|
31
|
-
...s.alert,
|
|
32
|
-
execution: {
|
|
33
|
-
...s.alert.execution,
|
|
34
|
-
filters: appliedFilters,
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
metadata: {
|
|
38
|
-
...s.metadata,
|
|
39
|
-
visibleFilters,
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const updatedAutomationWithAttribute = transformAlertByAttribute(supportedAttributes, updatedAutomationWithFilters, selectedAttribute, {
|
|
43
|
-
name: selectedValue ?? "",
|
|
44
|
-
title: "",
|
|
45
|
-
value: "",
|
|
46
|
-
});
|
|
47
|
-
return selectedMeasure
|
|
48
|
-
? transformAlertByMetric(supportedMeasures, updatedAutomationWithAttribute, selectedMeasure, measureFormatMap, weekStart, timezone)
|
|
49
|
-
: updatedAutomationWithAttribute;
|
|
50
|
-
});
|
|
51
|
-
}, [
|
|
52
|
-
setEditedAutomationFilters,
|
|
53
|
-
setEditedAutomation,
|
|
54
|
-
availableFiltersAsVisibleFilters,
|
|
55
|
-
widget,
|
|
56
|
-
insight,
|
|
57
|
-
dashboardHiddenFilters,
|
|
58
|
-
commonDateFilterId,
|
|
59
|
-
//
|
|
60
|
-
selectedAttribute,
|
|
61
|
-
selectedValue,
|
|
62
|
-
supportedAttributes,
|
|
63
|
-
//
|
|
64
|
-
selectedMeasure,
|
|
65
|
-
supportedMeasures,
|
|
66
|
-
measureFormatMap,
|
|
67
|
-
//
|
|
68
|
-
weekStart,
|
|
69
|
-
timezone,
|
|
70
|
-
]);
|
|
20
|
+
applyFiltersToDraft(filters);
|
|
21
|
+
}, [setEditedAutomationFilters, applyFiltersToDraft]);
|
|
71
22
|
const onApplyCurrentFilters = useCallback(() => {
|
|
72
23
|
onFiltersChange(filtersForNewAutomation);
|
|
73
24
|
}, [filtersForNewAutomation, onFiltersChange]);
|
|
@@ -120,7 +120,7 @@ export function useAlertFormState({ alertToEdit, insight, widget, notificationCh
|
|
|
120
120
|
: undefined);
|
|
121
121
|
}, [setEditedAutomation, supportedMeasures, weekStart, timezone, enableAlertOncePerInterval]);
|
|
122
122
|
const onComparisonTypeChange = useCallback((measure, relativeOperator, comparisonType, granularity) => {
|
|
123
|
-
if (!measure || !relativeOperator
|
|
123
|
+
if (!measure || !relativeOperator) {
|
|
124
124
|
return;
|
|
125
125
|
}
|
|
126
126
|
const [relativeOperatorValue, arithmeticOperator] = relativeOperator;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useMemo } from "react";
|
|
3
3
|
import { useDashboardSelector } from "../../../../model/react/DashboardStoreProvider.js";
|
|
4
|
-
import { selectAllCatalogAttributesMap, selectAllCatalogDisplayFormsMap,
|
|
4
|
+
import { selectAllCatalogAttributesMap, selectAllCatalogDisplayFormsMap, selectCatalogAttributesWithComputed, selectCatalogDateDatasets, selectCatalogMeasures, selectCatalogParameters, selectCatalogParametersIsLoaded, } from "../../../../model/store/catalog/catalogSelectors.js";
|
|
5
5
|
import { selectEnableAlertOncePerInterval, selectEnableAnomalyDetectionAlert, selectEnableAutomationEvaluationMode, selectEnableParameters, selectEnableSlideshowExports, selectEnableStringParameters, selectEnableTimezoneChange, selectExternalRecipient, selectIsWhiteLabeled, selectLocale, selectSeparators, selectSettings, selectTimezone, selectWeekStart, } from "../../../../model/store/config/configSelectors.js";
|
|
6
6
|
import { selectEntitlementMinimumRecurrenceMinutes, selectMaxAutomationRecipients, } from "../../../../model/store/entitlements/entitlementsSelectors.js";
|
|
7
7
|
import { selectAutomationAvailableDashboardFilters, selectAutomationCommonDateFilterId, selectAutomationDefaultSelectedFilters, selectAutomationFiltersByTab, selectDashboardFiltersWithoutCrossFiltering, selectDashboardHiddenFilters, selectDashboardLockedFilters, } from "../../../../model/store/filtering/dashboardFilterSelectors.js";
|
|
@@ -22,7 +22,7 @@ export function useBuildAutomationsContext() {
|
|
|
22
22
|
const locale = useDashboardSelector(selectLocale);
|
|
23
23
|
const separators = useDashboardSelector(selectSeparators);
|
|
24
24
|
const settings = useDashboardSelector(selectSettings);
|
|
25
|
-
const catalogAttributes = useDashboardSelector(
|
|
25
|
+
const catalogAttributes = useDashboardSelector(selectCatalogAttributesWithComputed);
|
|
26
26
|
const catalogDateDatasets = useDashboardSelector(selectCatalogDateDatasets);
|
|
27
27
|
const availableGranularities = useDashboardSelector(selectEffectiveDateFilterAvailableGranularities);
|
|
28
28
|
const granularitiesPerTab = useDashboardSelector(selectEffectiveDateFilterGranularitiesPerTab);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultScheduledEmailDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAuB1C,OAAO,EAAE,KAAK,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAMrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,iCAAiC,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"DefaultScheduledEmailDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAuB1C,OAAO,EAAE,KAAK,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAMrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,iCAAiC,GAAG,YAAY,CAmBlG"}
|
|
@@ -62,7 +62,7 @@ export function DefaultScheduledEmailDialog(props) {
|
|
|
62
62
|
const { locale } = useAutomationsContext();
|
|
63
63
|
const { isLoading, scheduledExportToEdit } = useScheduledEmailDialogContext();
|
|
64
64
|
if (isLoading) {
|
|
65
|
-
return (_jsx(DefaultLoadingScheduledEmailDialog, { onCancel: onCancel, scheduledExportToEdit: scheduledExportToEdit }));
|
|
65
|
+
return (_jsx(IntlWrapper, { locale: locale, children: _jsx(DefaultLoadingScheduledEmailDialog, { onCancel: onCancel, scheduledExportToEdit: scheduledExportToEdit }) }));
|
|
66
66
|
}
|
|
67
67
|
return (_jsx(IntlWrapper, { locale: locale, children: _jsx(DefaultScheduledEmailDialogBody, { ...props }) }));
|
|
68
68
|
}
|
|
@@ -4,7 +4,9 @@ import { type IScheduledEmailDialogProps } from "./types.js";
|
|
|
4
4
|
* Resolves the dialog component from DashboardComponentsContext and mounts it under the
|
|
5
5
|
* scheduled-export dialog's state contexts, inside the resolved context decorator — so a
|
|
6
6
|
* decorated dialog context is what both the state seeding and the dialog (default or
|
|
7
|
-
* replacement) read.
|
|
7
|
+
* replacement) read. A contract check between the decorator and the state provider warns once
|
|
8
|
+
* per dialog open when the decorated value forces `isLoading` false during loading or drops
|
|
9
|
+
* connector keys.
|
|
8
10
|
*
|
|
9
11
|
* @internal
|
|
10
12
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduledEmailDialog.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/scheduledEmail/ScheduledEmailDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"ScheduledEmailDialog.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/scheduledEmail/ScheduledEmailDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,OAAO,CAAC;AAU1D,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAE7D;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,0BAA0B,GAAG,YAAY,CAcpF"}
|
|
@@ -1,15 +1,25 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useDashboardComponentsContext } from "../../dashboardContexts/DashboardComponentsContext.js";
|
|
3
|
+
import { useScheduledEmailDialogContext, } from "../contexts/ScheduledEmailDialogContext.js";
|
|
4
|
+
import { useDecoratorContractCheck } from "../shared/hooks/useDecoratorContractCheck.js";
|
|
3
5
|
import { ScheduledEmailDialogStateProvider } from "./state/ScheduledEmailDialogStateProvider.js";
|
|
4
6
|
/**
|
|
5
7
|
* Resolves the dialog component from DashboardComponentsContext and mounts it under the
|
|
6
8
|
* scheduled-export dialog's state contexts, inside the resolved context decorator — so a
|
|
7
9
|
* decorated dialog context is what both the state seeding and the dialog (default or
|
|
8
|
-
* replacement) read.
|
|
10
|
+
* replacement) read. A contract check between the decorator and the state provider warns once
|
|
11
|
+
* per dialog open when the decorated value forces `isLoading` false during loading or drops
|
|
12
|
+
* connector keys.
|
|
9
13
|
*
|
|
10
14
|
* @internal
|
|
11
15
|
*/
|
|
12
16
|
export function ScheduledEmailDialog(props) {
|
|
13
17
|
const { ScheduledEmailDialogComponent, ScheduledEmailDialogContextDecoratorComponent } = useDashboardComponentsContext();
|
|
14
|
-
|
|
18
|
+
const pristineContext = useScheduledEmailDialogContext();
|
|
19
|
+
return (_jsx(ScheduledEmailDialogContextDecoratorComponent, { children: _jsx(ScheduledEmailDialogDecoratorContractCheck, { pristineContext: pristineContext, children: _jsx(ScheduledEmailDialogStateProvider, { children: _jsx(ScheduledEmailDialogComponent, { ...props }) }) }) }));
|
|
20
|
+
}
|
|
21
|
+
function ScheduledEmailDialogDecoratorContractCheck({ pristineContext, children, }) {
|
|
22
|
+
const decoratedContext = useScheduledEmailDialogContext();
|
|
23
|
+
useDecoratorContractCheck(pristineContext, decoratedContext, "ScheduledEmailDialogContextDecoratorComponent");
|
|
24
|
+
return _jsx(_Fragment, { children: children });
|
|
15
25
|
}
|
|
@@ -169,16 +169,13 @@ function LoadedScheduledEmailDialogShell({ onBack, onCancel, onDeleteSuccess, on
|
|
|
169
169
|
},
|
|
170
170
|
titleElementId,
|
|
171
171
|
dialogId: SCHEDULED_EMAIL_DIALOG_ID,
|
|
172
|
-
}, returnFocusTo: returnFocusTo, returnFocusAfterClose: false, footerRenderer: () => ActionBarSlot ? (_jsx(ActionBarSlot, { Default: DefaultAutomationDialogActionBar, defaultProps: actionBarDefaultProps })) : (_jsx(DefaultAutomationDialogActionBar, { ...actionBarDefaultProps })), isSubmitDisabled: actionBarDefaultProps.isSubmitDisabled, initialFocus: dialogTitleRef, submitOnEnterKey: false, onCancel: onCancel, onSubmit: actionBarDefaultProps.onSubmit, headline: undefined, headerLeftButtonRenderer: () => HeaderSlot ? (_jsx(HeaderSlot, { Default: DefaultScheduledEmailDialogHeader, defaultProps: headerDefaultProps })) : (_jsx(DefaultScheduledEmailDialogHeader, { ...headerDefaultProps })), children: [_jsx("h2", { className: "sr-only", id: titleElementId, children: intl.formatMessage({ id: "dialogs.schedule.email.accessibilityTitle" }) }),
|
|
172
|
+
}, returnFocusTo: returnFocusTo, returnFocusAfterClose: false, footerRenderer: () => ActionBarSlot ? (_jsx(ActionBarSlot, { Default: DefaultAutomationDialogActionBar, defaultProps: actionBarDefaultProps })) : (_jsx(DefaultAutomationDialogActionBar, { ...actionBarDefaultProps })), isSubmitDisabled: actionBarDefaultProps.isSubmitDisabled, initialFocus: dialogTitleRef, submitOnEnterKey: false, onCancel: onCancel, onSubmit: actionBarDefaultProps.onSubmit, headline: undefined, headerLeftButtonRenderer: () => HeaderSlot ? (_jsx(HeaderSlot, { Default: DefaultScheduledEmailDialogHeader, defaultProps: headerDefaultProps })) : (_jsx(DefaultScheduledEmailDialogHeader, { ...headerDefaultProps })), children: [_jsx("h2", { className: "sr-only", id: titleElementId, children: intl.formatMessage({ id: "dialogs.schedule.email.accessibilityTitle" }) }), _jsx(UiTabs, { tabs: tabs, selectedTabId: selectedTabId, onTabSelect: handleTabSelect, size: "medium", accessibilityConfig: {
|
|
173
173
|
role: "tablist",
|
|
174
174
|
tabRole: "tab",
|
|
175
175
|
ariaLabel: intl.formatMessage({
|
|
176
176
|
id: "dialogs.schedule.email.accessibilityTitle",
|
|
177
177
|
}),
|
|
178
|
-
}, disableBottomBorder: true })
|
|
179
|
-
"gd-notification-channel-dialog-with-automation-filters": true,
|
|
180
|
-
"gd-notification-channel-dialog-with-tabs": tabs.length > 1,
|
|
181
|
-
}), children: [topContent, _jsx("div", { className: "gd-divider-with-margin" }), selectedTabId === "filters" ? (_jsx("div", { className: "gd-schedule-dialog-tab-content", style: tabContentHeight
|
|
178
|
+
}, disableBottomBorder: true }), _jsxs(ScrollablePanel, { className: cx("gd-notifications-channel-dialog-content-wrapper", "gd-notification-channel-dialog-with-automation-filters", "gd-notification-channel-dialog-with-tabs"), children: [topContent, _jsx("div", { className: "gd-divider-with-margin" }), selectedTabId === "filters" ? (_jsx("div", { className: "gd-schedule-dialog-tab-content", style: tabContentHeight
|
|
182
179
|
? { minHeight: `${tabContentHeight}px` }
|
|
183
180
|
: undefined, children: filtersTab })) : (_jsxs("div", { ref: generalTabContentRef, className: "gd-schedule-dialog-tab-content", children: [!widget && tabIds.length > 1 ? (_jsx(Message, { type: "progress", className: "gd-schedule-dialog-tab-content-info", children: intl.formatMessage({
|
|
184
181
|
id: "dialogs.schedule.email.tabs.info",
|
package/esm/presentation/automations/scheduledEmail/state/ScheduledEmailDialogStateProvider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduledEmailDialogStateProvider.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/ScheduledEmailDialogStateProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"ScheduledEmailDialogStateProvider.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/ScheduledEmailDialogStateProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAwBjD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iCAAiC,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAetF"}
|