@gooddata/sdk-ui-dashboard 10.11.0-alpha.3 → 10.11.0-alpha.30
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 +62 -160
- package/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/__version.js.map +1 -1
- package/esm/_staging/dashboard/fluidLayout/index.d.ts +2 -2
- package/esm/_staging/dashboard/fluidLayout/index.d.ts.map +1 -1
- package/esm/_staging/dashboard/fluidLayout/index.js +1 -1
- package/esm/_staging/dashboard/fluidLayout/index.js.map +1 -1
- package/esm/_staging/drills/drillingUtils.d.ts +2 -1
- package/esm/_staging/drills/drillingUtils.d.ts.map +1 -1
- package/esm/_staging/drills/drillingUtils.js.map +1 -1
- package/esm/_staging/sharedHooks/useFiltersNamings.d.ts +2 -2
- package/esm/_staging/sharedHooks/useFiltersNamings.d.ts.map +1 -1
- package/esm/_staging/sharedHooks/useFiltersNamings.js +6 -3
- package/esm/_staging/sharedHooks/useFiltersNamings.js.map +1 -1
- package/esm/index.d.ts +3 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -2
- package/esm/index.js.map +1 -1
- package/esm/locales.d.ts.map +1 -1
- package/esm/locales.js +2 -0
- package/esm/locales.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts +4 -0
- package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/filterViews.js +103 -0
- package/esm/model/commandHandlers/dashboard/common/filterViews.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomations.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomations.js +4 -7
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomations.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +3 -18
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadFilterViews.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadFilterViews.js +8 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadFilterViews.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js +7 -3
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js.map +1 -1
- package/esm/model/commandHandlers/drill/drillDownHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillDownHandler.js +17 -20
- package/esm/model/commandHandlers/drill/drillDownHandler.js.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +2 -3
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js.map +1 -1
- package/esm/model/commandHandlers/drill/drillToInsightHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToInsightHandler.js +2 -3
- package/esm/model/commandHandlers/drill/drillToInsightHandler.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/filterViewHandler.js +20 -3
- package/esm/model/commandHandlers/filterContext/filterViewHandler.js.map +1 -1
- package/esm/model/commandHandlers/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/index.js +6 -0
- package/esm/model/commandHandlers/index.js.map +1 -1
- package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.js +1 -3
- package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.js.map +1 -1
- package/esm/model/commandHandlers/widgets/addVisualizationToSwitcherWidgetHandler.d.ts +6 -0
- package/esm/model/commandHandlers/widgets/addVisualizationToSwitcherWidgetHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/widgets/addVisualizationToSwitcherWidgetHandler.js +27 -0
- package/esm/model/commandHandlers/widgets/addVisualizationToSwitcherWidgetHandler.js.map +1 -0
- package/esm/model/commandHandlers/widgets/changeInsightWidgetIgnoreCrossFilteringHandler.d.ts +6 -0
- package/esm/model/commandHandlers/widgets/changeInsightWidgetIgnoreCrossFilteringHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/widgets/changeInsightWidgetIgnoreCrossFilteringHandler.js +20 -0
- package/esm/model/commandHandlers/widgets/changeInsightWidgetIgnoreCrossFilteringHandler.js.map +1 -0
- package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.js +1 -3
- package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.js.map +1 -1
- package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.js +8 -12
- package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.js.map +1 -1
- package/esm/model/commandHandlers/widgets/updateVisualizationsFromSwitcherWidgetHandler.d.ts +6 -0
- package/esm/model/commandHandlers/widgets/updateVisualizationsFromSwitcherWidgetHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/widgets/updateVisualizationsFromSwitcherWidgetHandler.js +19 -0
- package/esm/model/commandHandlers/widgets/updateVisualizationsFromSwitcherWidgetHandler.js.map +1 -0
- package/esm/model/commandHandlers/widgets/validation/widgetValidations.d.ts +14 -1
- package/esm/model/commandHandlers/widgets/validation/widgetValidations.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/validation/widgetValidations.js +24 -1
- package/esm/model/commandHandlers/widgets/validation/widgetValidations.js.map +1 -1
- package/esm/model/commands/base.d.ts +1 -1
- package/esm/model/commands/base.d.ts.map +1 -1
- package/esm/model/commands/index.d.ts +34 -17
- package/esm/model/commands/index.d.ts.map +1 -1
- package/esm/model/commands/index.js +7 -6
- package/esm/model/commands/index.js.map +1 -1
- package/esm/model/commands/insight.d.ts +33 -0
- package/esm/model/commands/insight.d.ts.map +1 -1
- package/esm/model/commands/insight.js +21 -0
- package/esm/model/commands/insight.js.map +1 -1
- package/esm/model/commands/visualizationSwitcher.d.ts +77 -0
- package/esm/model/commands/visualizationSwitcher.d.ts.map +1 -0
- package/esm/model/commands/visualizationSwitcher.js +45 -0
- package/esm/model/commands/visualizationSwitcher.js.map +1 -0
- package/esm/model/events/base.d.ts +1 -1
- package/esm/model/events/base.d.ts.map +1 -1
- package/esm/model/events/base.js.map +1 -1
- package/esm/model/events/index.d.ts +38 -18
- package/esm/model/events/index.d.ts.map +1 -1
- package/esm/model/events/index.js +7 -6
- package/esm/model/events/index.js.map +1 -1
- package/esm/model/events/insight.d.ts +26 -0
- package/esm/model/events/insight.d.ts.map +1 -1
- package/esm/model/events/insight.js +11 -0
- package/esm/model/events/insight.js.map +1 -1
- package/esm/model/events/visualizationSwitcher.d.ts +72 -0
- package/esm/model/events/visualizationSwitcher.d.ts.map +1 -0
- package/esm/model/events/visualizationSwitcher.js +45 -0
- package/esm/model/events/visualizationSwitcher.js.map +1 -0
- package/esm/model/headlessDashboard/index.d.ts +2 -1
- package/esm/model/headlessDashboard/index.d.ts.map +1 -1
- package/esm/model/headlessDashboard/index.js +1 -1
- package/esm/model/headlessDashboard/index.js.map +1 -1
- package/esm/model/index.d.ts +13 -9
- package/esm/model/index.d.ts.map +1 -1
- package/esm/model/index.js +1 -1
- package/esm/model/index.js.map +1 -1
- package/esm/model/queries/index.d.ts +21 -11
- package/esm/model/queries/index.d.ts.map +1 -1
- package/esm/model/queries/index.js +2 -2
- package/esm/model/queries/index.js.map +1 -1
- package/esm/model/react/index.d.ts +11 -6
- package/esm/model/react/index.d.ts.map +1 -1
- package/esm/model/react/index.js +1 -1
- package/esm/model/react/index.js.map +1 -1
- package/esm/model/react/useDashboardCommand.d.ts +3 -0
- package/esm/model/react/useDashboardCommand.d.ts.map +1 -1
- package/esm/model/react/useDashboardCommandProcessing.d.ts +8 -0
- package/esm/model/react/useDashboardCommandProcessing.d.ts.map +1 -1
- package/esm/model/react/useDashboardScheduledEmails.d.ts.map +1 -1
- package/esm/model/react/useDashboardScheduledEmails.js +3 -2
- package/esm/model/react/useDashboardScheduledEmails.js.map +1 -1
- package/esm/model/store/config/configSelectors.d.ts +6 -12
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +9 -17
- package/esm/model/store/config/configSelectors.js.map +1 -1
- package/esm/model/store/filterViews/filterViewsReducers.d.ts +4 -0
- package/esm/model/store/filterViews/filterViewsReducers.d.ts.map +1 -1
- package/esm/model/store/filterViews/filterViewsReducers.js +5 -0
- package/esm/model/store/filterViews/filterViewsReducers.js.map +1 -1
- package/esm/model/store/filterViews/filterViewsReducersSelectors.d.ts +4 -0
- package/esm/model/store/filterViews/filterViewsReducersSelectors.d.ts.map +1 -1
- package/esm/model/store/filterViews/filterViewsReducersSelectors.js +4 -0
- package/esm/model/store/filterViews/filterViewsReducersSelectors.js.map +1 -1
- package/esm/model/store/filterViews/filterViewsState.d.ts +1 -0
- package/esm/model/store/filterViews/filterViewsState.d.ts.map +1 -1
- package/esm/model/store/filterViews/filterViewsState.js +1 -1
- package/esm/model/store/filterViews/filterViewsState.js.map +1 -1
- package/esm/model/store/filterViews/index.d.ts +6 -2
- package/esm/model/store/filterViews/index.d.ts.map +1 -1
- package/esm/model/store/filterViews/index.js +1 -1
- package/esm/model/store/filterViews/index.js.map +1 -1
- package/esm/model/store/index.d.ts +36 -34
- package/esm/model/store/index.d.ts.map +1 -1
- package/esm/model/store/index.js +4 -8
- package/esm/model/store/index.js.map +1 -1
- package/esm/model/store/layout/index.d.ts +12 -0
- package/esm/model/store/layout/index.d.ts.map +1 -1
- package/esm/model/store/layout/layoutReducers.d.ts +16 -1
- package/esm/model/store/layout/layoutReducers.d.ts.map +1 -1
- package/esm/model/store/layout/layoutReducers.js +35 -2
- package/esm/model/store/layout/layoutReducers.js.map +1 -1
- package/esm/model/store/layout/layoutSelectors.d.ts +7 -1
- package/esm/model/store/layout/layoutSelectors.d.ts.map +1 -1
- package/esm/model/store/layout/layoutSelectors.js +27 -5
- package/esm/model/store/layout/layoutSelectors.js.map +1 -1
- package/esm/model/store/permissions/permissionsSelectors.d.ts +12 -0
- package/esm/model/store/permissions/permissionsSelectors.d.ts.map +1 -1
- package/esm/model/store/permissions/permissionsSelectors.js +17 -1
- package/esm/model/store/permissions/permissionsSelectors.js.map +1 -1
- package/esm/model/store/widgetDrills/widgetDrillSelectors.d.ts.map +1 -1
- package/esm/model/store/widgetDrills/widgetDrillSelectors.js +10 -10
- package/esm/model/store/widgetDrills/widgetDrillSelectors.js.map +1 -1
- package/esm/plugins/index.d.ts +5 -3
- package/esm/plugins/index.d.ts.map +1 -1
- package/esm/plugins/index.js +0 -1
- package/esm/plugins/index.js.map +1 -1
- package/esm/presentation/alerting/index.d.ts +1 -1
- package/esm/presentation/alerting/index.d.ts.map +1 -1
- package/esm/presentation/cancelEditDialog/index.d.ts +1 -1
- package/esm/presentation/cancelEditDialog/index.d.ts.map +1 -1
- package/esm/presentation/cancelEditDialog/index.js +1 -1
- package/esm/presentation/cancelEditDialog/index.js.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.js +2 -2
- package/esm/presentation/dashboard/components/DashboardRenderer.js.map +1 -1
- 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 -2
- package/esm/presentation/dashboard/hooks/useDashboard.js.map +1 -1
- package/esm/presentation/dashboard/index.d.ts +1 -1
- package/esm/presentation/dashboard/index.d.ts.map +1 -1
- package/esm/presentation/dashboard/index.js +1 -1
- package/esm/presentation/dashboard/types.d.ts +13 -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/DashboardComponentsContext.js.map +1 -1
- package/esm/presentation/dashboardContexts/types.d.ts +9 -1
- package/esm/presentation/dashboardContexts/types.d.ts.map +1 -1
- package/esm/presentation/deleteDialog/index.d.ts +1 -1
- package/esm/presentation/deleteDialog/index.d.ts.map +1 -1
- package/esm/presentation/deleteDialog/index.js +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutSectionBorder/index.d.ts +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutSectionBorder/index.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutSectionBorder/index.js +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutSectionBorder/index.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionVisualizationSwitcherPlaceholderDropHandler.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionVisualizationSwitcherPlaceholderDropHandler.js +0 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionVisualizationSwitcherPlaceholderDropHandler.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useVisualizationSwitcherPlaceholderDropHandler.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useVisualizationSwitcherPlaceholderDropHandler.js +2 -4
- package/esm/presentation/dragAndDrop/draggableWidget/useVisualizationSwitcherPlaceholderDropHandler.js.map +1 -1
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.d.ts +1 -2
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.d.ts.map +1 -1
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.js +4 -11
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.js.map +1 -1
- package/esm/presentation/drill/index.d.ts +17 -9
- package/esm/presentation/drill/index.d.ts.map +1 -1
- package/esm/presentation/drill/index.js +1 -2
- package/esm/presentation/drill/index.js.map +1 -1
- package/esm/presentation/filterBar/filterBar/filterViews/AddFilterView.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/filterViews/AddFilterView.js +1 -1
- package/esm/presentation/filterBar/filterBar/filterViews/AddFilterView.js.map +1 -1
- package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.js +8 -2
- package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.js.map +1 -1
- package/esm/presentation/filterBar/filterBar/filterViews/FilterViewsList.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/filterViews/FilterViewsList.js +15 -9
- package/esm/presentation/filterBar/filterBar/filterViews/FilterViewsList.js.map +1 -1
- package/esm/presentation/index.d.ts +2 -1
- package/esm/presentation/index.d.ts.map +1 -1
- package/esm/presentation/index.js +1 -1
- package/esm/presentation/index.js.map +1 -1
- package/esm/presentation/kpiDeleteDialog/index.d.ts +1 -1
- package/esm/presentation/kpiDeleteDialog/index.d.ts.map +1 -1
- package/esm/presentation/kpiDeleteDialog/index.js +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/index.d.ts +7 -5
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/index.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/index.js.map +1 -1
- package/esm/presentation/localization/bundles/en-US.json +80 -0
- package/esm/presentation/saveAs/index.d.ts +1 -1
- package/esm/presentation/saveAs/index.d.ts.map +1 -1
- package/esm/presentation/saveAs/index.js +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +7 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.js +29 -39
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js +2 -6
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts +6 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.js +14 -5
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useAttachmentDashboardFilters.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useAttachmentDashboardFilters.js +2 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useAttachmentDashboardFilters.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +17 -5
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationHelpers.d.ts +2 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationHelpers.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationHelpers.js +8 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationHelpers.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js +3 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js.map +1 -1
- package/esm/presentation/scheduledEmail/index.d.ts +1 -1
- package/esm/presentation/scheduledEmail/index.d.ts.map +1 -1
- package/esm/presentation/shareDialog/index.d.ts +1 -1
- package/esm/presentation/shareDialog/index.d.ts.map +1 -1
- package/esm/presentation/shareDialog/index.js +1 -1
- package/esm/presentation/toolbar/DefaultDashboardToolbar/index.d.ts +4 -2
- package/esm/presentation/toolbar/DefaultDashboardToolbar/index.d.ts.map +1 -1
- package/esm/presentation/toolbar/DefaultDashboardToolbar/index.js +3 -3
- package/esm/presentation/toolbar/DefaultDashboardToolbar/index.js.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js +12 -4
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js.map +1 -1
- package/esm/presentation/widget/common/InsightDropdown.d.ts +10 -0
- package/esm/presentation/widget/common/InsightDropdown.d.ts.map +1 -0
- package/esm/presentation/widget/{insight/configuration/DrillTargets → common}/InsightDropdown.js +5 -26
- package/esm/presentation/widget/common/InsightDropdown.js.map +1 -0
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.d.ts +5 -1
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.js +4 -4
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.js.map +1 -1
- package/esm/presentation/widget/common/useInsightExport.d.ts.map +1 -1
- package/esm/presentation/widget/common/useInsightExport.js +3 -3
- package/esm/presentation/widget/common/useInsightExport.js.map +1 -1
- package/esm/presentation/widget/description/index.d.ts +1 -1
- package/esm/presentation/widget/description/index.d.ts.map +1 -1
- package/esm/presentation/widget/index.d.ts +2 -1
- package/esm/presentation/widget/index.d.ts.map +1 -1
- package/esm/presentation/widget/index.js +0 -1
- package/esm/presentation/widget/index.js.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.js +4 -14
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargetInsightItem.js +3 -3
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargetInsightItem.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/{InsightDropdown.d.ts → DrillingInsightDropdown.d.ts} +3 -3
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillingInsightDropdown.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillingInsightDropdown.js +28 -0
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillingInsightDropdown.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.d.ts +3 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js +6 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js +8 -6
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +4 -6
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +4 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js +7 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js +82 -60
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlerts.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js +3 -3
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightCrossFiltering.d.ts +8 -0
- package/esm/presentation/widget/insight/configuration/InsightCrossFiltering.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightCrossFiltering.js +32 -0
- package/esm/presentation/widget/insight/configuration/InsightCrossFiltering.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.js +4 -6
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightFilters.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightFilters.js +4 -2
- package/esm/presentation/widget/insight/configuration/InsightFilters.js.map +1 -1
- package/esm/presentation/widget/insight/index.d.ts +1 -1
- package/esm/presentation/widget/insight/index.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightEditMenuBubble.js +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.d.ts +7 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.js +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.js.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts +2 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +15 -8
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.d.ts +4 -2
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.js +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.js.map +1 -1
- package/esm/presentation/widget/insightMenu/index.d.ts +1 -1
- package/esm/presentation/widget/insightMenu/index.d.ts.map +1 -1
- package/esm/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.d.ts +2 -1
- package/esm/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.d.ts.map +1 -1
- package/esm/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.js +2 -2
- package/esm/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.js.map +1 -1
- package/esm/presentation/widget/kpi/index.d.ts +1 -1
- package/esm/presentation/widget/kpi/index.d.ts.map +1 -1
- package/esm/presentation/widget/kpi/index.js +1 -1
- package/esm/presentation/widget/richText/index.d.ts +1 -1
- package/esm/presentation/widget/richText/index.d.ts.map +1 -1
- package/esm/presentation/widget/types.d.ts +7 -6
- package/esm/presentation/widget/types.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.js +24 -4
- package/esm/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.js.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/configuration/DefaultVisualizationSwitcherToolbar.d.ts +7 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/DefaultVisualizationSwitcherToolbar.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/DefaultVisualizationSwitcherToolbar.js +10 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/DefaultVisualizationSwitcherToolbar.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/InsightPicker.d.ts +9 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/InsightPicker.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/InsightPicker.js +18 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/InsightPicker.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/Toolbar.d.ts +13 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/Toolbar.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/Toolbar.js +73 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/Toolbar.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/ToolbarBottom.d.ts +13 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/ToolbarBottom.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/ToolbarBottom.js +9 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/ToolbarBottom.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/ToolbarTop.d.ts +13 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/ToolbarTop.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/ToolbarTop.js +66 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/ToolbarTop.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationConfig.d.ts +6 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationConfig.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationConfig.js +27 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationConfig.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsList.d.ts +13 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsList.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsList.js +36 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsList.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsPage.d.ts +12 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsPage.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsPage.js +39 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsPage.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/types.d.ts +18 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/types.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/types.js +3 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/types.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/index.d.ts +4 -1
- package/esm/presentation/widget/visualizationSwitcher/index.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/index.js +1 -0
- package/esm/presentation/widget/visualizationSwitcher/index.js.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/types.d.ts +10 -1
- package/esm/presentation/widget/visualizationSwitcher/types.d.ts.map +1 -1
- package/esm/presentation/widget/widget/DefaultDashboardWidget.js +2 -2
- package/esm/presentation/widget/widget/DefaultDashboardWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +15 -8
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js +4 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.d.ts +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.js +2 -2
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.js.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.js +32 -6
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.js.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.d.ts +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.js +3 -3
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.js.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/types.d.ts +4 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/types.d.ts.map +1 -1
- package/esm/presentation/widget/widget/index.d.ts +1 -1
- package/esm/presentation/widget/widget/index.d.ts.map +1 -1
- package/esm/presentation/widgetDeleteDialog/index.d.ts +1 -1
- package/esm/presentation/widgetDeleteDialog/index.d.ts.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +287 -20
- package/esm/tools/index.d.ts +2 -1
- package/esm/tools/index.d.ts.map +1 -1
- package/esm/tools/index.js +1 -2
- package/esm/tools/index.js.map +1 -1
- package/package.json +16 -15
- package/styles/css/alerting.css +8 -0
- package/styles/css/alerting.css.map +1 -1
- package/styles/css/configurationPanel.css +9 -0
- package/styles/css/configurationPanel.css.map +1 -1
- package/styles/css/main.css +158 -0
- package/styles/css/main.css.map +1 -1
- package/styles/css/visualizationSwitcherToolbar.css +147 -0
- package/styles/css/visualizationSwitcherToolbar.css.map +1 -0
- package/styles/scss/alerting.scss +8 -0
- package/styles/scss/configurationPanel.scss +10 -0
- package/styles/scss/main.scss +1 -0
- package/styles/scss/visualizationSwitcherToolbar.scss +163 -0
- package/esm/presentation/widget/insight/configuration/DrillTargets/InsightDropdown.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/InsightDropdown.js.map +0 -1
package/esm/presentation/widget/{insight/configuration/DrillTargets → common}/InsightDropdown.js
RENAMED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
// (C) 2007-
|
|
2
|
-
import React
|
|
1
|
+
// (C) 2007-2024 GoodData Corporation
|
|
2
|
+
import React from "react";
|
|
3
3
|
import { Dropdown, DropdownButton } from "@gooddata/sdk-ui-kit";
|
|
4
|
-
import { isInsight, insightVisualizationType } from "@gooddata/sdk-model";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
6
|
-
import {
|
|
7
|
-
import { InsightList } from "../../../../insightList/index.js";
|
|
8
|
-
import { selectInsightsMap, useDashboardSelector } from "../../../../../model/index.js";
|
|
5
|
+
import { InsightList } from "../../insightList/index.js";
|
|
9
6
|
const DROPDOWN_ALIGN_POINTS = [
|
|
10
7
|
{
|
|
11
8
|
align: "bl tl",
|
|
@@ -28,33 +25,15 @@ function getButtonValue(title, intl, ref) {
|
|
|
28
25
|
}
|
|
29
26
|
return title || intl.formatMessage({ id: "loading" });
|
|
30
27
|
}
|
|
31
|
-
export const InsightDropdown = ({
|
|
28
|
+
export const InsightDropdown = ({ insight, insightRef, insightType, onSelect, }) => {
|
|
32
29
|
const intl = useIntl();
|
|
33
|
-
const { insight, insightType, insightRef } = useDrillToInsightData(insightConfig);
|
|
34
30
|
const buttonText = getButtonValue(insight?.insight.title ?? "", intl, insightRef);
|
|
35
31
|
return (React.createElement(Dropdown, { className: "s-report_select report-select", closeOnMouseDrag: true, closeOnParentScroll: true, alignPoints: DROPDOWN_ALIGN_POINTS, renderButton: ({ isOpen, toggleDropdown }) => (React.createElement(DropdownButton, { value: buttonText, onClick: toggleDropdown, isOpen: isOpen, isSmall: false, iconLeft: insightType ? `gd-vis-type-${insightType}` : undefined, className: "gd-button-small s-visualization-button-target-insight" })), renderBody: ({ closeDropdown }) => {
|
|
36
32
|
return (React.createElement("div", { className: "open-visualizations s-open-visualizations" },
|
|
37
|
-
React.createElement(InsightList, { selectedRef:
|
|
33
|
+
React.createElement(InsightList, { selectedRef: insightRef, height: 300, width: 275, searchAutofocus: true, onSelect: (insight) => {
|
|
38
34
|
onSelect(insight);
|
|
39
35
|
closeDropdown();
|
|
40
36
|
} })));
|
|
41
37
|
} }));
|
|
42
38
|
};
|
|
43
|
-
function useDrillToInsightData(insightConfig) {
|
|
44
|
-
const insights = useDashboardSelector(selectInsightsMap);
|
|
45
|
-
return useMemo(() => {
|
|
46
|
-
if (isDrillToInsightConfig(insightConfig) && insightConfig.insightRef) {
|
|
47
|
-
const insight = insights.get(insightConfig.insightRef);
|
|
48
|
-
if (isInsight(insight)) {
|
|
49
|
-
const insightType = insightVisualizationType(insight);
|
|
50
|
-
return {
|
|
51
|
-
insight,
|
|
52
|
-
insightRef: insightConfig.insightRef,
|
|
53
|
-
insightType: insightType,
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
return {};
|
|
58
|
-
}, [insightConfig, insights]);
|
|
59
|
-
}
|
|
60
39
|
//# sourceMappingURL=InsightDropdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InsightDropdown.js","sourceRoot":"","sources":["../../../../src/presentation/widget/common/InsightDropdown.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ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,KAAK,EACd,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,eAAe,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,EAChE,SAAS,EAAC,uDAAuD,GACnE,CACL,EACD,UAAU,EAAE,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE;YAC9B,OAAO,CACH,6BAAK,SAAS,EAAC,2CAA2C;gBACtD,oBAAC,WAAW,IACR,WAAW,EAAE,UAAU,EACvB,MAAM,EAAE,GAAG,EACX,KAAK,EAAE,GAAG,EACV,eAAe,EAAE,IAAI,EACrB,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE;wBAClB,QAAQ,CAAC,OAAO,CAAC,CAAC;wBAClB,aAAa,EAAE,CAAC;oBACpB,CAAC,GACH,CACA,CACT,CAAC;QACN,CAAC,GACH,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ArrowOffsets, IAlignPoint, OverlayPositionType } from "@gooddata/sdk-ui-kit";
|
|
2
|
+
import { ArrowDirections, ArrowOffsets, IAlignPoint, OverlayPositionType } from "@gooddata/sdk-ui-kit";
|
|
3
3
|
interface IConfigurationBubbleProps {
|
|
4
4
|
classNames?: string;
|
|
5
5
|
onClose?: () => void;
|
|
@@ -8,7 +8,11 @@ interface IConfigurationBubbleProps {
|
|
|
8
8
|
alignPoints?: IAlignPoint[];
|
|
9
9
|
arrowOffsets?: ArrowOffsets;
|
|
10
10
|
overlayPositionType?: OverlayPositionType;
|
|
11
|
+
arrowDirections?: ArrowDirections;
|
|
11
12
|
}
|
|
13
|
+
export declare const defaultAlignPoints: IAlignPoint[];
|
|
14
|
+
export declare const defaultArrowOffsets: ArrowOffsets;
|
|
15
|
+
export declare const defaultArrowDirections: ArrowDirections;
|
|
12
16
|
export declare const ConfigurationBubble: React.FC<IConfigurationBubbleProps>;
|
|
13
17
|
export {};
|
|
14
18
|
//# sourceMappingURL=ConfigurationBubble.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationBubble.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/common/configuration/ConfigurationBubble.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,
|
|
1
|
+
{"version":3,"file":"ConfigurationBubble.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/common/configuration/ConfigurationBubble.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACH,eAAe,EACf,YAAY,EAEZ,WAAW,EACX,mBAAmB,EACtB,MAAM,sBAAsB,CAAC;AAE9B,UAAU,yBAAyB;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;IAC5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC;AAED,eAAO,MAAM,kBAAkB,EAAE,WAAW,EAM3C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAMjC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,eAGpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA8BnE,CAAC"}
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import cx from "classnames";
|
|
4
4
|
import { Bubble, } from "@gooddata/sdk-ui-kit";
|
|
5
|
-
const defaultAlignPoints = [
|
|
5
|
+
export const defaultAlignPoints = [
|
|
6
6
|
{ align: "tr tl" },
|
|
7
7
|
{ align: "br bl" },
|
|
8
8
|
{ align: "tl tr" },
|
|
9
9
|
{ align: "tr tr" },
|
|
10
10
|
{ align: "br br" },
|
|
11
11
|
];
|
|
12
|
-
const defaultArrowOffsets = {
|
|
12
|
+
export const defaultArrowOffsets = {
|
|
13
13
|
"tr tl": [7, 28],
|
|
14
14
|
"br bl": [7, -28],
|
|
15
15
|
"tl tr": [-7, 28],
|
|
16
16
|
"tr tr": [-76, 28],
|
|
17
17
|
"br br": [-76, -28],
|
|
18
18
|
};
|
|
19
|
-
const
|
|
19
|
+
export const defaultArrowDirections = {
|
|
20
20
|
"tr tr": "right",
|
|
21
21
|
"br br": "right",
|
|
22
22
|
};
|
|
23
23
|
export const ConfigurationBubble = (props) => {
|
|
24
|
-
const { children, classNames, onClose, alignTo = ".s-dash-item.is-selected", alignPoints = defaultAlignPoints, arrowOffsets = defaultArrowOffsets, overlayPositionType, } = props;
|
|
24
|
+
const { children, classNames, onClose, alignTo = ".s-dash-item.is-selected", alignPoints = defaultAlignPoints, arrowOffsets = defaultArrowOffsets, overlayPositionType, arrowDirections = defaultArrowDirections, } = props;
|
|
25
25
|
const ignoreClicksOnByClass = [alignTo]; // do not close on click to the widget
|
|
26
26
|
return (React.createElement(Bubble, { className: cx("bubble-light gd-configuration-bubble s-gd-configuration-bubble", classNames), overlayClassName: "gd-configuration-bubble-wrapper sdk-edit-mode-on", alignTo: alignTo, alignPoints: alignPoints, arrowOffsets: arrowOffsets, arrowDirections: arrowDirections, closeOnOutsideClick: true, closeOnParentScroll: false, ignoreClicksOnByClass: ignoreClicksOnByClass, onClose: onClose, overlayPositionType: overlayPositionType }, children));
|
|
27
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationBubble.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/common/configuration/ConfigurationBubble.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAGH,MAAM,GAGT,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfigurationBubble.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/common/configuration/ConfigurationBubble.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAGH,MAAM,GAGT,MAAM,sBAAsB,CAAC;AAa9B,MAAM,CAAC,MAAM,kBAAkB,GAAkB;IAC7C,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAiB;IAC7C,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;IAChB,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;IACjB,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC;IAClB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAoB;IACnD,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,OAAO;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAwC,CAAC,KAAK,EAAE,EAAE;IAC9E,MAAM,EACF,QAAQ,EACR,UAAU,EACV,OAAO,EACP,OAAO,GAAG,0BAA0B,EACpC,WAAW,GAAG,kBAAkB,EAChC,YAAY,GAAG,mBAAmB,EAClC,mBAAmB,EACnB,eAAe,GAAG,sBAAsB,GAC3C,GAAG,KAAK,CAAC;IACV,MAAM,qBAAqB,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,sCAAsC;IAE/E,OAAO,CACH,oBAAC,MAAM,IACH,SAAS,EAAE,EAAE,CAAC,gEAAgE,EAAE,UAAU,CAAC,EAC3F,gBAAgB,EAAC,kDAAkD,EACnE,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,eAAe,EAChC,mBAAmB,QACnB,mBAAmB,EAAE,KAAK,EAC1B,qBAAqB,EAAE,qBAAqB,EAC5C,OAAO,EAAE,OAAO,EAChB,mBAAmB,EAAE,mBAAmB,IAEvC,QAAQ,CACJ,CACZ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInsightExport.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/common/useInsightExport.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAkBjE,eAAO,MAAM,gBAAgB,WAAY;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,kBAAkB,CAAC;CAC/B;;;;;
|
|
1
|
+
{"version":3,"file":"useInsightExport.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/common/useInsightExport.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAkBjE,eAAO,MAAM,gBAAgB,WAAY;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,kBAAkB,CAAC;CAC/B;;;;;CAsEA,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// (C) 2021-
|
|
1
|
+
// (C) 2021-2024 GoodData Corporation
|
|
2
2
|
import { useCallback, useState } from "react";
|
|
3
3
|
import { invariant } from "ts-invariant";
|
|
4
4
|
import { getInsightVisualizationMeta } from "@gooddata/sdk-ui-ext";
|
|
@@ -14,10 +14,10 @@ export const useInsightExport = (config) => {
|
|
|
14
14
|
...configToUse,
|
|
15
15
|
format: configToUse.format === "xlsx" ? "xlsx" : "csv",
|
|
16
16
|
}, uuid())).then((result) => result.payload.result), [widgetRef]);
|
|
17
|
-
const
|
|
17
|
+
const settings = useDashboardSelector(selectSettings);
|
|
18
|
+
const isInsightExportable = getInsightVisualizationMeta(insight, settings).supportsExport;
|
|
18
19
|
const isExportableToCsv = useDashboardSelector(selectIsExecutionResultExportableToCsvByRef(widgetRef));
|
|
19
20
|
const isExportableToXlsx = useDashboardSelector(selectIsExecutionResultExportableToXlsxByRef(widgetRef));
|
|
20
|
-
const settings = useDashboardSelector(selectSettings);
|
|
21
21
|
const exportHandler = useExportHandler();
|
|
22
22
|
const { openDialog, closeDialog } = useExportDialogContext();
|
|
23
23
|
const onExportCSV = useCallback(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInsightExport.js","sourceRoot":"","sources":["../../../../src/presentation/widget/common/useInsightExport.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EACH,cAAc,EACd,oBAAoB,EACpB,2CAA2C,EAC3C,4CAA4C,EAC5C,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,GAGtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAIhC,EAAE,EAAE;IACD,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAC7C,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEtD,MAAM,QAAQ,GAAG,oBAAoB,EAAE,CAAC;IACxC,MAAM,cAAc,GAAG,WAAW,CAC9B,CAAC,WAAkC,EAAE,EAAE,CACnC,kBAAkB,CACd,QAAQ,EACR,mBAAmB,CACf,SAAS,EACT;QACI,GAAG,WAAW;QACd,MAAM,EAAE,WAAW,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK;KACzD,EACD,IAAI,EAAE,CACT,CACJ,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAC7C,CAAC,SAAS,CAAC,CACd,CAAC;IAEF,MAAM,mBAAmB,GAAG,2BAA2B,CAAC,OAAO,CAAC,CAAC,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"useInsightExport.js","sourceRoot":"","sources":["../../../../src/presentation/widget/common/useInsightExport.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EACH,cAAc,EACd,oBAAoB,EACpB,2CAA2C,EAC3C,4CAA4C,EAC5C,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,GAGtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCA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CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { IInsightWidgetDescriptionTriggerProps } from "./types.js";
|
|
1
|
+
export type { IInsightWidgetDescriptionTriggerProps } from "./types.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/description/index.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/description/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,qCAAqC,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { IUseCustomWidgetExecutionDataViewConfig, IUseCustomWidgetInsightDataViewConfig, IUseInsightWidgetDataView, UseCustomWidgetExecutionDataViewCallbacks, UseCustomWidgetInsightDataViewCallbacks, UseInsightWidgetInsightDataViewCallbacks, } from "./common/index.js";
|
|
2
|
+
export { useWidgetFilters, useCustomWidgetExecutionDataView, useCustomWidgetInsightDataView, useInsightWidgetDataView, } from "./common/index.js";
|
|
2
3
|
export * from "./insight/index.js";
|
|
3
4
|
export * from "./insightMenu/index.js";
|
|
4
5
|
export * from "./kpi/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presentation/widget/index.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presentation/widget/index.ts"],"names":[],"mappings":"AACA,YAAY,EACR,uCAAuC,EACvC,qCAAqC,EACrC,yBAAyB,EACzB,yCAAyC,EACzC,uCAAuC,EACvC,wCAAwC,GAC3C,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACH,gBAAgB,EAChB,gCAAgC,EAChC,8BAA8B,EAC9B,wBAAwB,GAC3B,MAAM,mBAAmB,CAAC;AAE3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presentation/widget/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presentation/widget/index.ts"],"names":[],"mappings":"AASA,OAAO,EACH,gBAAgB,EAChB,gCAAgC,EAChC,8BAA8B,EAC9B,wBAAwB,GAC3B,MAAM,mBAAmB,CAAC;AAE3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardInsightWithDrillDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DashboardInsightWithDrillDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGrD;;GAEG;AACH,eAAO,MAAM,+BAA+B,UAAW,sBAAsB,KAAG,WAgE/E,CAAC"}
|
package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2020-2024 GoodData Corporation
|
|
2
2
|
import React, { useCallback, useMemo, useState } from "react";
|
|
3
3
|
import last from "lodash/last.js";
|
|
4
|
-
import { selectCatalogAttributeDisplayFormsById,
|
|
4
|
+
import { selectCatalogAttributeDisplayFormsById, selectLocale, useDashboardSelector, } from "../../../../model/index.js";
|
|
5
5
|
import { getDrillDownTitle, } from "../../../drill/index.js";
|
|
6
6
|
import { isDrillDownDefinition } from "../../../../types.js";
|
|
7
7
|
import { DashboardInsightWithDrillSelect } from "./Insight/DashboardInsightWithDrillSelect.js";
|
|
@@ -16,21 +16,11 @@ export const DashboardInsightWithDrillDialog = (props) => {
|
|
|
16
16
|
const insight = activeDrillStep?.insight;
|
|
17
17
|
const widget = props.widget;
|
|
18
18
|
const attributeDisplayForms = useDashboardSelector(selectCatalogAttributeDisplayFormsById);
|
|
19
|
-
const enableDrillDownIntersectionIgnoredAttributes = useDashboardSelector(selectEnableDrillDownIntersectionIgnoredAttributes);
|
|
20
19
|
const breadcrumbs = useMemo(() => drillSteps
|
|
21
20
|
.filter((s) => isDrillDownDefinition(s.drillDefinition))
|
|
22
|
-
.map((s) => getDrillDownTitle(s.drillDefinition, s.drillEvent,
|
|
23
|
-
?
|
|
24
|
-
:
|
|
25
|
-
? attributeDisplayForms[isIdentifierRef(s.drillDefinition.target)
|
|
26
|
-
? s.drillDefinition.target.identifier
|
|
27
|
-
: s.drillDefinition.target.uri]
|
|
28
|
-
: undefined) ?? "NULL"), [
|
|
29
|
-
drillSteps,
|
|
30
|
-
enableDrillDownIntersectionIgnoredAttributes,
|
|
31
|
-
attributeDisplayForms,
|
|
32
|
-
widget.drillDownIntersectionIgnoredAttributes,
|
|
33
|
-
]);
|
|
21
|
+
.map((s) => getDrillDownTitle(s.drillDefinition, s.drillEvent, widget.drillDownIntersectionIgnoredAttributes, attributeDisplayForms[isIdentifierRef(s.drillDefinition.target)
|
|
22
|
+
? s.drillDefinition.target.identifier
|
|
23
|
+
: s.drillDefinition.target.uri]) ?? "NULL"), [drillSteps, attributeDisplayForms, widget.drillDownIntersectionIgnoredAttributes]);
|
|
34
24
|
const locale = useDashboardSelector(selectLocale);
|
|
35
25
|
const setNextDrillStep = useCallback((drillStep) => {
|
|
36
26
|
setDrillSteps((s) => [...s, drillStep]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardInsightWithDrillDialog.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,EACH,sCAAsC,EACtC,
|
|
1
|
+
{"version":3,"file":"DashboardInsightWithDrillDialog.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,EACH,sCAAsC,EACtC,YAAY,EACZ,oBAAoB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,iBAAiB,GAGpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAwB,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,+BAA+B,EAAE,MAAM,8CAA8C,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAEhF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,KAA6B,EAAe,EAAE;IAC1F,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG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C;IACpF,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACzD,MAAM,WAAW,GAAG,WAAW,CAC3B,CAAC,GAAG,EAAE,EAAE,CAAC,gBAAgB,CAAC,GAAG,CAAC,OAAO,CAAC,EACtC,CAAC,gBAAgB,CAAC,CACrB,CAAC;IACF,MAAM,gBAAgB,GAAG,WAAW,CAChC,CAAC,GAAG,EAAE,EAAE,CAAC,gBAAgB,CAAC,GAAG,CAAC,OAAO,CAAC,EACtC,CAAC,gBAAgB,CAAC,CACrB,CAAC;IAEF,OAAO,CACH;QACI,oBAAC,+BAA+B,OACxB,KAAK,EACT,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB,GACpC;QACD,eAAe,CAAC,CAAC,CAAC,CACf,oBAAC,kBAAkB,IACf,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAO,EACf,OAAO,EAAE,OAAQ,EACjB,WAAW,EAAE,WAAW,EACxB,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,OAAO,GAClB,CACL,CAAC,CAAC,CAAC,IAAI,CACT,CACN,CAAC;AACN,CAAC,CAAC"}
|
package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargetInsightItem.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// (C) 2019-
|
|
1
|
+
// (C) 2019-2024 GoodData Corporation
|
|
2
2
|
import React from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { DrillingInsightDropdown } from "./DrillingInsightDropdown.js";
|
|
4
4
|
export const DrillTargetInsightItem = ({ insight, onSelect, }) => {
|
|
5
|
-
return React.createElement(
|
|
5
|
+
return React.createElement(DrillingInsightDropdown, { insightConfig: insight, onSelect: onSelect });
|
|
6
6
|
};
|
|
7
7
|
//# sourceMappingURL=DrillTargetInsightItem.js.map
|
package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargetInsightItem.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrillTargetInsightItem.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/DrillTargets/DrillTargetInsightItem.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DrillTargetInsightItem.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/DrillTargets/DrillTargetInsightItem.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAOvE,MAAM,CAAC,MAAM,sBAAsB,GAAoD,CAAC,EACpF,OAAO,EACP,QAAQ,GACX,EAAE,EAAE;IACD,OAAO,oBAAC,uBAAuB,IAAC,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,GAAI,CAAC;AACnF,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IInsight } from "@gooddata/sdk-model";
|
|
3
3
|
import { IDrillConfigItem } from "../../../../drill/types.js";
|
|
4
|
-
export interface
|
|
4
|
+
export interface IDrillingInsightDropdownProps {
|
|
5
5
|
insightConfig: IDrillConfigItem;
|
|
6
6
|
onSelect: (targetItem: IInsight) => void;
|
|
7
7
|
}
|
|
8
|
-
export declare const
|
|
9
|
-
//# sourceMappingURL=
|
|
8
|
+
export declare const DrillingInsightDropdown: React.FC<IDrillingInsightDropdownProps>;
|
|
9
|
+
//# sourceMappingURL=DrillingInsightDropdown.d.ts.map
|
package/esm/presentation/widget/insight/configuration/DrillTargets/DrillingInsightDropdown.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrillingInsightDropdown.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/DrillTargets/DrillingInsightDropdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAU,QAAQ,EAAuC,MAAM,qBAAqB,CAAC;AAE5F,OAAO,EAAE,gBAAgB,EAA0B,MAAM,4BAA4B,CAAC;AAItF,MAAM,WAAW,6BAA6B;IAC1C,aAAa,EAAE,gBAAgB,CAAC;IAChC,QAAQ,EAAE,CAAC,UAAU,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC5C;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAc3E,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// (C) 2007-2024 GoodData Corporation
|
|
2
|
+
import React, { useMemo } from "react";
|
|
3
|
+
import { isInsight, insightVisualizationType } from "@gooddata/sdk-model";
|
|
4
|
+
import { isDrillToInsightConfig } from "../../../../drill/types.js";
|
|
5
|
+
import { selectInsightsMap, useDashboardSelector } from "../../../../../model/index.js";
|
|
6
|
+
import { InsightDropdown } from "../../../../widget/common/InsightDropdown.js";
|
|
7
|
+
export const DrillingInsightDropdown = ({ insightConfig, onSelect, }) => {
|
|
8
|
+
const { insight, insightType, insightRef } = useDrillToInsightData(insightConfig);
|
|
9
|
+
return (React.createElement(InsightDropdown, { insight: insight, insightRef: insightRef, insightType: insightType, onSelect: onSelect }));
|
|
10
|
+
};
|
|
11
|
+
function useDrillToInsightData(insightConfig) {
|
|
12
|
+
const insights = useDashboardSelector(selectInsightsMap);
|
|
13
|
+
return useMemo(() => {
|
|
14
|
+
if (isDrillToInsightConfig(insightConfig) && insightConfig.insightRef) {
|
|
15
|
+
const insight = insights.get(insightConfig.insightRef);
|
|
16
|
+
if (isInsight(insight)) {
|
|
17
|
+
const insightType = insightVisualizationType(insight);
|
|
18
|
+
return {
|
|
19
|
+
insight,
|
|
20
|
+
insightRef: insightConfig.insightRef,
|
|
21
|
+
insightType: insightType,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return {};
|
|
26
|
+
}, [insightConfig, insights]);
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=DrillingInsightDropdown.js.map
|
package/esm/presentation/widget/insight/configuration/DrillTargets/DrillingInsightDropdown.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrillingInsightDropdown.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/DrillTargets/DrillingInsightDropdown.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAoB,SAAS,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAE5F,OAAO,EAAoB,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAO/E,MAAM,CAAC,MAAM,uBAAuB,GAA4C,CAAC,EAC7E,aAAa,EACb,QAAQ,GACX,EAAE,EAAE;IACD,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAElF,OAAO,CACH,oBAAC,eAAe,IACZ,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,GACpB,CACL,CAAC;AACN,CAAC,CAAC;AAEF,SAAS,qBAAqB,CAAC,aAA+B;IAK1D,MAAM,QAAQ,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAEzD,OAAO,OAAO,CAAC,GAAG,EAAE;QAChB,IAAI,sBAAsB,CAAC,aAAa,CAAC,IAAI,aAAa,CAAC,UAAU,EAAE,CAAC;YACpE,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;YAEvD,IAAI,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC;gBACrB,MAAM,WAAW,GAAG,wBAAwB,CAAC,OAAO,CAAC,CAAC;gBACtD,OAAO;oBACH,OAAO;oBACP,UAAU,EAAE,aAAa,CAAC,UAAU;oBACpC,WAAW,EAAE,WAAW;iBAC3B,CAAC;YACN,CAAC;QACL,CAAC;QACD,OAAO,EAAE,CAAC;IACd,CAAC,EAAE,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC,CAAC;AAClC,CAAC"}
|
|
@@ -6,9 +6,9 @@ export interface IAlertComparisonOperatorSelectProps {
|
|
|
6
6
|
measure: AlertMetric | undefined;
|
|
7
7
|
selectedComparisonOperator: IAlertComparisonOperator | undefined;
|
|
8
8
|
selectedRelativeOperator: [IAlertRelativeOperator, IAlertRelativeArithmeticOperator] | undefined;
|
|
9
|
-
onComparisonOperatorChange: (comparisonOperator: IAlertComparisonOperator) => void;
|
|
10
|
-
onRelativeOperatorChange: (relativeOperator: IAlertRelativeOperator, relativeArithmeticOperator: IAlertRelativeArithmeticOperator) => void;
|
|
9
|
+
onComparisonOperatorChange: (metric: AlertMetric, comparisonOperator: IAlertComparisonOperator) => void;
|
|
10
|
+
onRelativeOperatorChange: (metric: AlertMetric, relativeOperator: IAlertRelativeOperator, relativeArithmeticOperator: IAlertRelativeArithmeticOperator) => void;
|
|
11
11
|
overlayPositionType?: OverlayPositionType;
|
|
12
12
|
}
|
|
13
|
-
export declare const AlertComparisonOperatorSelect: (props: IAlertComparisonOperatorSelectProps) => React.JSX.Element;
|
|
13
|
+
export declare const AlertComparisonOperatorSelect: (props: IAlertComparisonOperatorSelectProps) => React.JSX.Element | null;
|
|
14
14
|
//# sourceMappingURL=AlertComparisonOperatorSelect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertComparisonOperatorSelect.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAgD,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACzG,OAAO,EACH,wBAAwB,EACxB,gCAAgC,EAChC,sBAAsB,EACzB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK7C,MAAM,WAAW,mCAAmC;IAChD,OAAO,EAAE,WAAW,GAAG,SAAS,CAAC;IACjC,0BAA0B,EAAE,wBAAwB,GAAG,SAAS,CAAC;IACjE,wBAAwB,EAAE,CAAC,sBAAsB,EAAE,gCAAgC,CAAC,GAAG,SAAS,CAAC;IACjG,0BAA0B,EAAE,CAAC,kBAAkB,EAAE,wBAAwB,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"AlertComparisonOperatorSelect.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAgD,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACzG,OAAO,EACH,wBAAwB,EACxB,gCAAgC,EAChC,sBAAsB,EACzB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK7C,MAAM,WAAW,mCAAmC;IAChD,OAAO,EAAE,WAAW,GAAG,SAAS,CAAC;IACjC,0BAA0B,EAAE,wBAAwB,GAAG,SAAS,CAAC;IACjE,wBAAwB,EAAE,CAAC,sBAAsB,EAAE,gCAAgC,CAAC,GAAG,SAAS,CAAC;IACjG,0BAA0B,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,wBAAwB,KAAK,IAAI,CAAC;IACxG,wBAAwB,EAAE,CACtB,MAAM,EAAE,WAAW,EACnB,gBAAgB,EAAE,sBAAsB,EACxC,0BAA0B,EAAE,gCAAgC,KAC3D,IAAI,CAAC;IACV,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;CAC7C;AAED,eAAO,MAAM,6BAA6B,UAAW,mCAAmC,6BAwHvF,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { FormattedMessage, useIntl } from "react-intl";
|
|
|
6
6
|
import { DROPDOWN_ITEM_HEIGHT, DROPDOWN_SEPARATOR_ITEM_HEIGHT, OPERATORS } from "./constants.js";
|
|
7
7
|
import { useOperators } from "./hooks/useOperators.js";
|
|
8
8
|
export const AlertComparisonOperatorSelect = (props) => {
|
|
9
|
-
const { selectedComparisonOperator, onComparisonOperatorChange, selectedRelativeOperator, onRelativeOperatorChange, overlayPositionType, } = props;
|
|
9
|
+
const { measure, selectedComparisonOperator, onComparisonOperatorChange, selectedRelativeOperator, onRelativeOperatorChange, overlayPositionType, } = props;
|
|
10
10
|
const selectedComparisonItem = selectedComparisonOperator
|
|
11
11
|
? OPERATORS.find((option) => option.id === selectedComparisonOperator)
|
|
12
12
|
: undefined;
|
|
@@ -15,6 +15,9 @@ export const AlertComparisonOperatorSelect = (props) => {
|
|
|
15
15
|
: undefined;
|
|
16
16
|
const intl = useIntl();
|
|
17
17
|
const operators = useOperators(props.measure);
|
|
18
|
+
if (!measure) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
18
21
|
return (React.createElement("div", { className: "gd-alert-comparison-operator-select" },
|
|
19
22
|
React.createElement(Dropdown, { overlayPositionType: overlayPositionType, renderButton: ({ isOpen, toggleDropdown }) => {
|
|
20
23
|
return (React.createElement(Button, { className: cx("gd-alert-comparison-operator-select__button s-alert-operator-select", {
|
|
@@ -34,10 +37,10 @@ export const AlertComparisonOperatorSelect = (props) => {
|
|
|
34
37
|
prop.item === selectedRelativeItem, onClick: () => {
|
|
35
38
|
const [first, second] = prop.item.id.split(".");
|
|
36
39
|
if (first && !second) {
|
|
37
|
-
onComparisonOperatorChange(first);
|
|
40
|
+
onComparisonOperatorChange(measure, first);
|
|
38
41
|
}
|
|
39
42
|
if (first && second) {
|
|
40
|
-
onRelativeOperatorChange(second, first);
|
|
43
|
+
onRelativeOperatorChange(measure, second, first);
|
|
41
44
|
}
|
|
42
45
|
closeDropdown();
|
|
43
46
|
} }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertComparisonOperatorSelect.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAuB,MAAM,sBAAsB,CAAC;AAMzG,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIvD,OAAO,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACjG,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"AlertComparisonOperatorSelect.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAuB,MAAM,sBAAsB,CAAC;AAMzG,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIvD,OAAO,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC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AC,6CAA6C,GAAG,CAClE;iCACJ,GACH,CACL,CAAC,CAAC,CAAC,SAAS,EAEjB,UAAU,EACN,IAAI,CAAC,IAAI,KAAK,sBAAsB;gCACpC,IAAI,CAAC,IAAI,KAAK,oBAAoB,EAEtC,OAAO,EAAE,GAAG,EAAE;gCACV,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gCAChD,IAAI,KAAK,IAAI,CAAC,MAAM,EAAE,CAAC;oCACnB,0BAA0B,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;gCAC/C,CAAC;gCACD,IAAI,KAAK,IAAI,MAAM,EAAE,CAAC;oCAClB,wBAAwB,CACpB,OAAO,EACP,MAAgC,EAChC,KAAyC,CAC5C,CAAC;gCACN,CAAC;gCACD,aAAa,EAAE,CAAC;4BACpB,CAAC,GACH,CACL,CAAC;oBACN,CAAC,GACH,CACL,CAAC;YACN,CAAC,GACH,CACA,CACT,CAAC;AACN,CAAC,CAAC"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertsList.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAOhE,UAAU,gBAAgB;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,yBAAyB,EAAE,CAAC;IACpC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,WAAW,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACxD,YAAY,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACzD,aAAa,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC1D,aAAa,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC1D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,qBAAqB,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AlertsList.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAOhE,UAAU,gBAAgB;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,yBAAyB,EAAE,CAAC;IACpC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,WAAW,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACxD,YAAY,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACzD,aAAa,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC1D,aAAa,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC1D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,mBAAmB,EAAE,OAAO,CAAC;CAChC;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAqEjD,CAAC"}
|
|
@@ -5,16 +5,18 @@ import { AlertsListItem } from "./AlertsListItem.js";
|
|
|
5
5
|
import { DashboardInsightSubmenuContainer } from "../../../insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightSubmenuContainer.js";
|
|
6
6
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
7
7
|
import Skeleton from "react-loading-skeleton";
|
|
8
|
-
export const AlertsList = ({ isLoading, alerts, onCreateAlert, onEditAlert, onPauseAlert, onResumeAlert, onDeleteAlert, onClose, onGoBack, maxAutomationsReached, }) => {
|
|
8
|
+
export const AlertsList = ({ isLoading, alerts, onCreateAlert, onEditAlert, onPauseAlert, onResumeAlert, onDeleteAlert, onClose, onGoBack, maxAutomationsReached, canCreateAutomation, }) => {
|
|
9
9
|
const intl = useIntl();
|
|
10
10
|
return (React.createElement(DashboardInsightSubmenuContainer, { title: intl.formatMessage({ id: "insightAlert.config.alerts" }), onClose: onClose, onBack: onGoBack },
|
|
11
11
|
React.createElement("div", { className: "gd-alerts-list" },
|
|
12
|
-
React.createElement("div", { className: "gd-alerts-list__items" }, isLoading ? (React.createElement(LoadingSkeleton, null)) : (React.createElement(React.Fragment, null, alerts.map((alert) => {
|
|
12
|
+
React.createElement("div", { className: "gd-alerts-list__items" }, isLoading ? (React.createElement(LoadingSkeleton, null)) : (React.createElement(React.Fragment, null, alerts.length > 0 ? (alerts.map((alert) => {
|
|
13
13
|
return (React.createElement(AlertsListItem, { key: alert.id, alert: alert, onEditAlert: onEditAlert, onPauseAlert: onPauseAlert, onResumeAlert: onResumeAlert, onDeleteAlert: onDeleteAlert }));
|
|
14
|
-
}))
|
|
15
|
-
|
|
16
|
-
React.createElement(
|
|
17
|
-
React.createElement(
|
|
14
|
+
})) : (React.createElement("div", { className: "gd-alerts-list__empty" },
|
|
15
|
+
React.createElement(FormattedMessage, { id: "insightAlert.config.alerts.empty" })))))),
|
|
16
|
+
canCreateAutomation ? (React.createElement(React.Fragment, null,
|
|
17
|
+
React.createElement(SeparatorLine, { pL: 10, pR: 10 }),
|
|
18
|
+
React.createElement("div", { className: "gd-alerts-list__buttons" },
|
|
19
|
+
React.createElement(AddButton, { onClick: onCreateAlert, title: React.createElement(FormattedMessage, { id: "insightAlert.config.addAlert" }), className: "gd-alerts-list__add-button", isDisabled: maxAutomationsReached || isLoading, tooltip: maxAutomationsReached ? (React.createElement(FormattedMessage, { id: "insightAlert.maxAlertsReached" })) : undefined })))) : null)));
|
|
18
20
|
};
|
|
19
21
|
const LoadingSkeletonItem = () => {
|
|
20
22
|
return (React.createElement("div", { className: "gd-react-loading-skeleton-wrapper" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertsList.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gCAAgC,EAAE,MAAM,2GAA2G,CAAC;AAC7J,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,QAAQ,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"AlertsList.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gCAAgC,EAAE,MAAM,2GAA2G,CAAC;AAC7J,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAgB9C,MAAM,CAAC,MAAM,UAAU,GAA+B,CAAC,EACnD,SAAS,EACT,MAAM,EACN,aAAa,EACb,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,OAAO,EACP,QAAQ,EACR,qBAAqB,EACrB,mBAAmB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,IAAC,EAAE,EAAC,+BAA+B,GAAG,CAC1D,CAAC,CAAC,CAAC,SAAS,GAEnB,CACA,CACP,CACN,CAAC,CAAC,CAAC,IAAI,CACN,CACyB,CACtC,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,GAAG,EAAE;IAC7B,OAAO,CACH,6BAAK,SAAS,EAAC,mCAAmC;QAC9C,oBAAC,QAAQ,IAAC,SAAS,EAAC,2BAA2B,EAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI;QACvF,oBAAC,QAAQ,IACL,kBAAkB,EAAC,+BAA+B,EAClD,SAAS,EAAC,2BAA2B,EACrC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,EAAE,GACZ,CACA,CACT,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,GAAG,EAAE;IACzB,OAAO,CACH;QACI,oBAAC,mBAAmB,OAAG;QACvB,oBAAC,mBAAmB,OAAG,CACxB,CACN,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,yBAAyB,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AACrG,OAAO,EAMH,mBAAmB,EACtB,MAAM,sBAAsB,CAAC;AAQ9B,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,WAAW,EAA6B,MAAM,gBAAgB,CAAC;AA2BxE,UAAU,eAAe;IACrB,KAAK,EAAE,yBAAyB,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;IACnD,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,mCAAmC,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACtD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;CAC7C;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"EditAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,yBAAyB,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AACrG,OAAO,EAMH,mBAAmB,EACtB,MAAM,sBAAsB,CAAC;AAQ9B,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,WAAW,EAA6B,MAAM,gBAAgB,CAAC;AA2BxE,UAAU,eAAe;IACrB,KAAK,EAAE,yBAAyB,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;IACnD,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,mCAAmC,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACtD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;CAC7C;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuM/C,CAAC"}
|
|
@@ -64,16 +64,14 @@ export const EditAlert = ({ alert, isNewAlert, hasAlerts, destinations, measures
|
|
|
64
64
|
} })))))),
|
|
65
65
|
React.createElement(AlertComparisonOperatorSelect, { measure: selectedMeasure, selectedComparisonOperator: getAlertCompareOperator(updatedAlert.alert), selectedRelativeOperator: getAlertRelativeOperator(updatedAlert.alert), onComparisonOperatorChange: changeComparisonOperator, onRelativeOperatorChange: changeRelativeOperator, overlayPositionType: overlayPositionType }),
|
|
66
66
|
React.createElement(Input, { className: "gd-edit-alert__value-input s-alert-value-input", isSmall: true, autofocus: true, value: getAlertThreshold(updatedAlert.alert), onChange: (e) => changeValue(e !== "" ? parseFloat(e) : undefined), type: "number", suffix: getValueSuffix(updatedAlert.alert) }),
|
|
67
|
-
selectedMeasure?.comparators.some((a) => a.comparator === AlertMetricComparatorType.SamePeriodPreviousYear) &&
|
|
68
|
-
isChangeOrDifferenceOperator(updatedAlert.alert) && (React.createElement("div", { className: "gd-edit-alert__measure-info" },
|
|
67
|
+
selectedMeasure?.comparators.some((a) => a.comparator === AlertMetricComparatorType.SamePeriodPreviousYear) && isChangeOrDifferenceOperator(updatedAlert.alert) ? (React.createElement("div", { className: "gd-edit-alert__measure-info" },
|
|
69
68
|
React.createElement(FormattedMessage, { id: "insightAlert.config.compare_with" }),
|
|
70
69
|
" ",
|
|
71
|
-
React.createElement(FormattedMessage, { id: "insightAlert.config.compare_with_sp" }))),
|
|
72
|
-
selectedMeasure?.comparators.some((a) => a.comparator === AlertMetricComparatorType.PreviousPeriod) &&
|
|
73
|
-
isChangeOrDifferenceOperator(updatedAlert.alert) && (React.createElement("div", { className: "gd-edit-alert__measure-info" },
|
|
70
|
+
React.createElement(FormattedMessage, { id: "insightAlert.config.compare_with_sp" }))) : null,
|
|
71
|
+
selectedMeasure?.comparators.some((a) => a.comparator === AlertMetricComparatorType.PreviousPeriod) && isChangeOrDifferenceOperator(updatedAlert.alert) ? (React.createElement("div", { className: "gd-edit-alert__measure-info" },
|
|
74
72
|
React.createElement(FormattedMessage, { id: "insightAlert.config.compare_with" }),
|
|
75
73
|
" ",
|
|
76
|
-
React.createElement(FormattedMessage, { id: "insightAlert.config.compare_with_pp" }))),
|
|
74
|
+
React.createElement(FormattedMessage, { id: "insightAlert.config.compare_with_pp" }))) : null,
|
|
77
75
|
destinations.length > 1 && (React.createElement(AlertDestinationSelect, { selectedDestination: updatedAlert.notificationChannel, onDestinationChange: changeDestination, destinations: destinations, overlayPositionType: overlayPositionType }))),
|
|
78
76
|
!isValid ? (React.createElement(Message, { type: "error" },
|
|
79
77
|
React.createElement(FormattedMessage, { id: invalidMessagesObj[invalidityReason].id }))) : null),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditAlert.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACH,MAAM,EACN,kBAAkB,EAClB,MAAM,EACN,KAAK,EACL,OAAO,GAEV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gCAAgC,EAAE,MAAM,2GAA2G,CAAC;AAC7J,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,YA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ACb,MAAM,EAAE,cAAc,CAAC,YAAY,CAAC,KAAK,CAAC,GAC5C;oBACD,eAAe,EAAE,WAAW,CAAC,IAAI,CAC9B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,yBAAyB,CAAC,sBAAsB,CAC3E
|
|
1
|
+
{"version":3,"file":"EditAlert.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACH,MAAM,EACN,kBAAkB,EAClB,MAAM,EACN,KAAK,EACL,OAAO,GAEV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gCAAgC,EAAE,MAAM,2GAA2G,CAAC;AAC7J,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAqB,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1F,OAAO,EAAe,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAyB,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EACH,uBAAuB,EACvB,eAAe,EACf,wBAAwB,EACxB,iBAAiB,EACjB,cAAc,EACd,4BAA4B,GAC/B,MAAM,YAAY,CAAC;AAEpB,MAAM,oBAAoB,GAAG,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;AAEtE,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC5B,cAAc,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B,EACtD,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,EAC/C,SAAS,EAAC,uBAAuB,IAEhC,UAAU;4BACP,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC;4BACtC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CACnC;wBACR,8BAA8B,CAAC,CAAC,CAAC,CAC9B,oBAAC,MAAM,IAAC,WAAW,EAAE,oBAAoB;4BACrC,oBAAC,gBAAgB,IAAC,EAAE,EAAC,+BAA+B,GAAG,CAClD,CACZ,CAAC,CAAC,CAAC,IAAI,CACS,CACnB,CACJ,CACJ,CACyB,CACtC,CAAC,CAAC,CAAC,CACA,oBAAC,gCAAgC,IAC7B,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,2BAA2B,EAAE,CAAC,EAC9D,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,wBAAwB;QAEhC,oBAAC,sBAAsB,IACnB,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,sBAAsB,EAChC,QAAQ,EAAE,wBAAwB,EAClC,mBAAmB,EAAE,mBAAmB,GAC1C,CAC6B,CACtC,CAAC;AACN,CAAC,CAAC"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ export declare const useEditAlert: ({ alert, onCreate, onUpdate }: IUseEditAlert
|
|
|
9
9
|
viewMode: "configuration" | "edit";
|
|
10
10
|
updatedAlert: IAutomationMetadataObject;
|
|
11
11
|
canSubmit: boolean;
|
|
12
|
-
changeComparisonOperator: (comparisonOperator: IAlertComparisonOperator) => void;
|
|
13
|
-
changeRelativeOperator: (relativeOperator: IAlertRelativeOperator, arithmeticOperator: IAlertRelativeArithmeticOperator) => void;
|
|
12
|
+
changeComparisonOperator: (measure: AlertMetric, comparisonOperator: IAlertComparisonOperator) => void;
|
|
13
|
+
changeRelativeOperator: (measure: AlertMetric, relativeOperator: IAlertRelativeOperator, arithmeticOperator: IAlertRelativeArithmeticOperator) => void;
|
|
14
14
|
changeMeasure: (measure: AlertMetric) => void;
|
|
15
15
|
changeValue: (value: number) => void;
|
|
16
16
|
changeDestination: (destinationId: string) => void;
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditAlert.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,wBAAwB,EACxB,gCAAgC,EAChC,sBAAsB,EACtB,yBAAyB,EACzB,mCAAmC,EACtC,MAAM,qBAAqB,CAAC;AAU7B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,yBAAyB,CAAC;IACjC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,mCAAmC,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;CACzD;AAED,eAAO,MAAM,YAAY,kCAAmC,kBAAkB;;;;
|
|
1
|
+
{"version":3,"file":"useEditAlert.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,wBAAwB,EACxB,gCAAgC,EAChC,sBAAsB,EACtB,yBAAyB,EACzB,mCAAmC,EACtC,MAAM,qBAAqB,CAAC;AAU7B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,yBAAyB,CAAC;IACjC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,mCAAmC,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;CACzD;AAED,eAAO,MAAM,YAAY,kCAAmC,kBAAkB;;;;wCAQ/B,WAAW,sBAAsB,wBAAwB;sCAKvF,WAAW,oBACF,sBAAsB,sBACpB,gCAAgC;6BAXxB,WAAW;yBAkBf,MAAM;uCAIQ,MAAM;;oCAQT,yBAAyB;;;;CAuCnE,CAAC"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js
CHANGED
|
@@ -8,11 +8,11 @@ export const useEditAlert = ({ alert, onCreate, onUpdate }) => {
|
|
|
8
8
|
const changeMeasure = (measure) => {
|
|
9
9
|
setUpdatedAlert((alert) => transformAlertByMetric(alert, measure));
|
|
10
10
|
};
|
|
11
|
-
const changeComparisonOperator = (comparisonOperator) => {
|
|
12
|
-
setUpdatedAlert((alert) => transformAlertByComparisonOperator(alert, comparisonOperator));
|
|
11
|
+
const changeComparisonOperator = (measure, comparisonOperator) => {
|
|
12
|
+
setUpdatedAlert((alert) => transformAlertByComparisonOperator(alert, measure, comparisonOperator));
|
|
13
13
|
};
|
|
14
|
-
const changeRelativeOperator = (relativeOperator, arithmeticOperator) => {
|
|
15
|
-
setUpdatedAlert((alert) => transformAlertByRelativeOperator(alert, relativeOperator, arithmeticOperator));
|
|
14
|
+
const changeRelativeOperator = (measure, relativeOperator, arithmeticOperator) => {
|
|
15
|
+
setUpdatedAlert((alert) => transformAlertByRelativeOperator(alert, measure, relativeOperator, arithmeticOperator));
|
|
16
16
|
};
|
|
17
17
|
const changeValue = (value) => {
|
|
18
18
|
setUpdatedAlert((alert) => transformAlertByValue(alert, value));
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditAlert.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAQjC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,EACH,mBAAmB,EACnB,kCAAkC,EAClC,2BAA2B,EAC3B,sBAAsB,EACtB,gCAAgC,EAChC,qBAAqB,GACxB,MAAM,aAAa,CAAC;AASrB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAsB,EAAE,EAAE;IAC9E,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAA2B,MAAM,CAAC,CAAC;IAC3E,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAA4B,KAAK,CAAC,CAAC;IAEnF,MAAM,aAAa,GAAG,CAAC,OAAoB,EAAE,EAAE;QAC3C,eAAe,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,sBAAsB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;IACvE,CAAC,CAAC;IAEF,MAAM,wBAAwB,GAAG,CAAC,kBAA4C,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"useEditAlert.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAQjC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,EACH,mBAAmB,EACnB,kCAAkC,EAClC,2BAA2B,EAC3B,sBAAsB,EACtB,gCAAgC,EAChC,qBAAqB,GACxB,MAAM,aAAa,CAAC;AASrB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAsB,EAAE,EAAE;IAC9E,MAAM,C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