@gooddata/sdk-ui-dashboard 10.11.0-alpha.1 → 10.11.0-alpha.10
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/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/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/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/index.js +2 -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/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/commands/base.d.ts +1 -1
- package/esm/model/commands/base.d.ts.map +1 -1
- package/esm/model/commands/index.d.ts +31 -17
- package/esm/model/commands/index.d.ts.map +1 -1
- package/esm/model/commands/index.js +6 -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/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 +34 -17
- package/esm/model/events/index.d.ts.map +1 -1
- package/esm/model/events/index.js +6 -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/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 +1 -0
- package/esm/model/react/useDashboardCommand.d.ts.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 +8 -16
- package/esm/model/store/config/configSelectors.js.map +1 -1
- package/esm/model/store/filterViews/index.d.ts +1 -1
- package/esm/model/store/filterViews/index.d.ts.map +1 -1
- package/esm/model/store/index.d.ts +35 -33
- package/esm/model/store/index.d.ts.map +1 -1
- package/esm/model/store/index.js +2 -6
- package/esm/model/store/index.js.map +1 -1
- package/esm/model/store/layout/index.d.ts +4 -0
- package/esm/model/store/layout/index.d.ts.map +1 -1
- package/esm/model/store/layout/layoutReducers.d.ts +5 -0
- package/esm/model/store/layout/layoutReducers.d.ts.map +1 -1
- package/esm/model/store/layout/layoutReducers.js +8 -0
- package/esm/model/store/layout/layoutReducers.js.map +1 -1
- package/esm/model/store/layout/layoutSelectors.d.ts +6 -0
- package/esm/model/store/layout/layoutSelectors.d.ts.map +1 -1
- package/esm/model/store/layout/layoutSelectors.js +22 -3
- package/esm/model/store/layout/layoutSelectors.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/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/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/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/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 +42 -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/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/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/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/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/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/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/NoAvailableAlerts.d.ts +8 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/NoAvailableAlerts.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/NoAvailableAlerts.js +19 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/NoAvailableAlerts.js.map +1 -0
- 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.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js +4 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts +2 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js +78 -76
- 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 +6 -2
- 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/getDefaultInsightMenuItems.d.ts +10 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +23 -7
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.d.ts +3 -1
- 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 +6 -6
- package/esm/presentation/widget/types.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/index.d.ts +1 -1
- package/esm/presentation/widget/visualizationSwitcher/index.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +43 -8
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts +5 -3
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js +6 -13
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js.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 +58 -18
- 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 +6 -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 +15 -0
- package/styles/css/main.css.map +1 -1
- package/styles/scss/alerting.scss +11 -0
- package/styles/scss/configurationPanel.scss +10 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightDrillConfigItem.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/InsightDrillConfigItem.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAa,OAAO,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAa,OAAO,EAAE,MAAM,YAAY,CAAC;AAClE,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EACH,iBAAiB,GAIpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACH,eAAe,EAKf,qBAAqB,GAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,yBAAyB,EACzB,6BAA6B,EAC7B,
|
|
1
|
+
{"version":3,"file":"InsightDrillConfigItem.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/InsightDrillConfigItem.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAa,OAAO,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAa,OAAO,EAAE,MAAM,YAAY,CAAC;AAClE,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,C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6B;YAC7B,6BAA6B;SAChC,CAAC;IACN,CAAC,EAAE;QACC,YAAY,EAAE,qBAAqB,EAAE,UAAU;QAC/C,cAAc;QACd,IAAI,CAAC,IAAI;QACT,IAAI,CAAC,UAAU;QACf,IAAI,CAAC,eAAe;QACpB,IAAI,CAAC,qBAAqB;KAC7B,CAAC,CAAC;AACP,CAAC;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightFilters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/InsightFilters.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,cAAc,EAAmB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"InsightFilters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/InsightFilters.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,cAAc,EAAmB,MAAM,qBAAqB,CAAC;AAItE,UAAU,oBAAoB;IAC1B,MAAM,EAAE,cAAc,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,qBAWtE"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
// (C) 2007-
|
|
1
|
+
// (C) 2007-2024 GoodData Corporation
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { Typography } from "@gooddata/sdk-ui-kit";
|
|
5
5
|
import InsightDateDataSetFilter from "./InsightDateDataSetFilter.js";
|
|
6
6
|
import { isInsightWidget } from "@gooddata/sdk-model";
|
|
7
7
|
import { FilterConfiguration } from "../../common/configuration/FilterConfiguration.js";
|
|
8
|
+
import { InsightCrossFiltering } from "./InsightCrossFiltering.js";
|
|
8
9
|
export default function InsightFilters({ widget }) {
|
|
9
10
|
return (React.createElement("div", { className: "s-viz-filters-panel configuration-category" },
|
|
10
11
|
React.createElement(Typography, { tagName: "h3", className: "s-viz-filters-headline" },
|
|
11
12
|
React.createElement(FormattedMessage, { id: "configurationPanel.filterBy" })),
|
|
12
13
|
isInsightWidget(widget) ? React.createElement(InsightDateDataSetFilter, { widget: widget }) : null,
|
|
13
|
-
React.createElement(FilterConfiguration, { widget: widget })
|
|
14
|
+
React.createElement(FilterConfiguration, { widget: widget }),
|
|
15
|
+
React.createElement(InsightCrossFiltering, { widget: widget })));
|
|
14
16
|
}
|
|
15
17
|
//# sourceMappingURL=InsightFilters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightFilters.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/InsightFilters.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,wBAAwB,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAkB,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"InsightFilters.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/InsightFilters.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,wBAAwB,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAkB,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAMnE,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,MAAM,EAAwB;IACnE,OAAO,CACH,6BAAK,SAAS,EAAC,4CAA4C;QACvD,oBAAC,UAAU,IAAC,OAAO,EAAC,IAAI,EAAC,SAAS,EAAC,wBAAwB;YACvD,oBAAC,gBAAgB,IAAC,EAAE,EAAC,6BAA6B,GAAG,CAC5C;QACZ,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,oBAAC,wBAAwB,IAAC,MAAM,EAAE,MAAM,GAAI,CAAC,CAAC,CAAC,IAAI;QAC9E,oBAAC,mBAAmB,IAAC,MAAM,EAAE,MAAM,GAAI;QACvC,oBAAC,qBAAqB,IAAC,MAAM,EAAE,MAAM,GAAI,CACvC,CACT,CAAC;AACN,CAAC"}
|
|
@@ -3,5 +3,5 @@ export { DashboardInsight } from "./DashboardInsight.js";
|
|
|
3
3
|
export { DefaultDashboardInsight } from "./DefaultDashboardInsight.js";
|
|
4
4
|
export { DefaultDashboardInsightComponentSetFactory } from "./DefaultDashboardInsightComponentSetFactory.js";
|
|
5
5
|
export { useSaveAlertToBackend } from "./configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.js";
|
|
6
|
-
export { IDashboardInsightProps, CustomDashboardInsightComponent, IInsightBodyProps, CustomInsightBodyComponent, } from "./types.js";
|
|
6
|
+
export type { IDashboardInsightProps, CustomDashboardInsightComponent, IInsightBodyProps, CustomInsightBodyComponent, } from "./types.js";
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/insight/index.ts"],"names":[],"mappings":"AAEA,cAAc,+BAA+B,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,0CAA0C,EAAE,MAAM,iDAAiD,CAAC;AAC7G,OAAO,EAAE,qBAAqB,EAAE,MAAM,mEAAmE,CAAC;AAC1G,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/insight/index.ts"],"names":[],"mappings":"AAEA,cAAc,+BAA+B,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,0CAA0C,EAAE,MAAM,iDAAiD,CAAC;AAC7G,OAAO,EAAE,qBAAqB,EAAE,MAAM,mEAAmE,CAAC;AAC1G,YAAY,EACR,sBAAsB,EACtB,+BAA+B,EAC/B,iBAAiB,EACjB,0BAA0B,GAC7B,MAAM,YAAY,CAAC"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { IntlShape } from "react-intl";
|
|
2
2
|
import { IInsightMenuItem } from "../types.js";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export type SchedulingDisabledReason = "incompatibleWidget" | "oldWidget" | "disabledOnInsight";
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export type AlertingDisabledReason = "noDestinations" | "oldWidget" | "disabledOnInsight";
|
|
3
11
|
/**
|
|
4
12
|
* @internal
|
|
5
13
|
*/
|
|
@@ -7,7 +15,7 @@ export declare function getDefaultInsightMenuItems(intl: IntlShape, config: {
|
|
|
7
15
|
exportXLSXDisabled: boolean;
|
|
8
16
|
exportCSVDisabled: boolean;
|
|
9
17
|
scheduleExportDisabled: boolean;
|
|
10
|
-
scheduleExportDisabledReason
|
|
18
|
+
scheduleExportDisabledReason?: SchedulingDisabledReason;
|
|
11
19
|
scheduleExportManagementDisabled: boolean;
|
|
12
20
|
onExportXLSX: () => void;
|
|
13
21
|
onExportCSV: () => void;
|
|
@@ -18,5 +26,6 @@ export declare function getDefaultInsightMenuItems(intl: IntlShape, config: {
|
|
|
18
26
|
isDataError: boolean;
|
|
19
27
|
isAlertingVisible: boolean;
|
|
20
28
|
alertingDisabled: boolean;
|
|
29
|
+
alertingDisabledReason?: AlertingDisabledReason;
|
|
21
30
|
}): IInsightMenuItem[];
|
|
22
31
|
//# sourceMappingURL=getDefaultInsightMenuItems.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultInsightMenuItems.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG/C;;GAEG;AACH,wBAAgB,0BAA0B,CACtC,IAAI,EAAE,SAAS,EACf,MAAM,EAAE;IACJ,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,sBAAsB,EAAE,OAAO,CAAC;IAChC,4BAA4B,EAAE,
|
|
1
|
+
{"version":3,"file":"getDefaultInsightMenuItems.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG/C;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,GAAG,WAAW,GAAG,mBAAmB,CAAC;AAEhG;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GAAG,WAAW,GAAG,mBAAmB,CAAC;AAE1F;;GAEG;AACH,wBAAgB,0BAA0B,CACtC,IAAI,EAAE,SAAS,EACf,MAAM,EAAE;IACJ,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,sBAAsB,EAAE,OAAO,CAAC;IAChC,4BAA4B,CAAC,EAAE,wBAAwB,CAAC;IACxD,gCAAgC,EAAE,OAAO,CAAC;IAC1C,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,0BAA0B,EAAE,MAAM,IAAI,CAAC;IACvC,uBAAuB,EAAE,OAAO,CAAC;IACjC,iCAAiC,EAAE,OAAO,CAAC;IAC3C,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;CACnD,GACF,gBAAgB,EAAE,CAiIpB"}
|
|
@@ -6,16 +6,28 @@ import { InsightAlerts } from "../../insight/configuration/InsightAlerts.js";
|
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
8
8
|
export function getDefaultInsightMenuItems(intl, config) {
|
|
9
|
-
const { exportCSVDisabled, exportXLSXDisabled, scheduleExportDisabled, scheduleExportDisabledReason, scheduleExportManagementDisabled, onExportCSV, onExportXLSX, onScheduleExport, onScheduleManagementExport, isScheduleExportVisible, isScheduleExportManagementVisible, isDataError, isAlertingVisible, alertingDisabled, } = config;
|
|
9
|
+
const { exportCSVDisabled, exportXLSXDisabled, scheduleExportDisabled, scheduleExportDisabledReason, scheduleExportManagementDisabled, onExportCSV, onExportXLSX, onScheduleExport, onScheduleManagementExport, isScheduleExportVisible, isScheduleExportManagementVisible, isDataError, isAlertingVisible, alertingDisabled, alertingDisabledReason, } = config;
|
|
10
10
|
const defaultWidgetTooltip = isDataError
|
|
11
11
|
? intl.formatMessage({ id: "options.menu.unsupported.error" })
|
|
12
12
|
: intl.formatMessage({ id: "options.menu.unsupported.loading" });
|
|
13
13
|
const oldWidgetTooltip = intl.formatMessage({
|
|
14
14
|
id: "options.menu.unsupported.oldWidget",
|
|
15
15
|
});
|
|
16
|
+
const alertingOldWidgetTooltip = intl.formatMessage({
|
|
17
|
+
id: "options.menu.unsupported.alertingOldWidget",
|
|
18
|
+
});
|
|
16
19
|
const incompatibleWidgetTooltip = intl.formatMessage({
|
|
17
20
|
id: "options.menu.unsupported.incompatibleWidget",
|
|
18
21
|
});
|
|
22
|
+
const schedulingForInsightNotEnabledTooltip = intl.formatMessage({
|
|
23
|
+
id: "options.menu.unsupported.schedulingForInsightNotEnabled",
|
|
24
|
+
});
|
|
25
|
+
const alertingForInsightNotEnabledTooltip = intl.formatMessage({
|
|
26
|
+
id: "options.menu.unsupported.alertingForInsightNotEnabled",
|
|
27
|
+
});
|
|
28
|
+
const noDestinationsTooltip = intl.formatMessage({ id: "insightAlert.noDestination.tooltip" }, {
|
|
29
|
+
a: (chunk) => (React.createElement("a", { href: "/settings", rel: "noopener noreferrer", target: "_blank" }, chunk)),
|
|
30
|
+
});
|
|
19
31
|
const isSomeScheduleVisible = (isScheduleExportVisible && !scheduleExportDisabled) ||
|
|
20
32
|
(isScheduleExportManagementVisible && !scheduleExportManagementDisabled);
|
|
21
33
|
const menuItems = [
|
|
@@ -51,11 +63,13 @@ export function getDefaultInsightMenuItems(intl, config) {
|
|
|
51
63
|
className: "s-options-menu-alerting",
|
|
52
64
|
SubmenuComponent: InsightAlerts,
|
|
53
65
|
renderSubmenuComponentOnly: true,
|
|
54
|
-
tooltip:
|
|
55
|
-
?
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
66
|
+
tooltip: alertingDisabledReason === "oldWidget"
|
|
67
|
+
? alertingOldWidgetTooltip
|
|
68
|
+
: alertingDisabledReason === "noDestinations"
|
|
69
|
+
? noDestinationsTooltip
|
|
70
|
+
: alertingDisabledReason === "disabledOnInsight"
|
|
71
|
+
? alertingForInsightNotEnabledTooltip
|
|
72
|
+
: undefined,
|
|
59
73
|
disabled: alertingDisabled,
|
|
60
74
|
},
|
|
61
75
|
isSomeScheduleVisible && {
|
|
@@ -72,7 +86,9 @@ export function getDefaultInsightMenuItems(intl, config) {
|
|
|
72
86
|
? incompatibleWidgetTooltip
|
|
73
87
|
: scheduleExportDisabledReason === "oldWidget"
|
|
74
88
|
? oldWidgetTooltip
|
|
75
|
-
:
|
|
89
|
+
: scheduleExportDisabledReason === "disabledOnInsight"
|
|
90
|
+
? schedulingForInsightNotEnabledTooltip
|
|
91
|
+
: undefined,
|
|
76
92
|
icon: "gd-icon-clock",
|
|
77
93
|
className: "s-options-menu-schedule-export",
|
|
78
94
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultInsightMenuItems.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"getDefaultInsightMenuItems.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAY7E;;GAEG;AACH,MAAM,UAAU,0BAA0B,CACtC,IAAe,EACf,MAgBC;IAED,MAAM,EACF,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,4BAA4B,EAC5B,gCAAgC,EAChC,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,0BAA0B,EAC1B,uBAAuB,EACvB,iCAAiC,EACjC,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,GACzB,GAAG,MAA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EAAE,CAAC;YAC1E,OAAO,EAAE,gBAAgB;YACzB,QAAQ,EAAE,sBAAsB;YAChC,OAAO,EACH,4BAA4B,KAAK,oBAAoB;gBACjD,CAAC,CAAC,yBAAyB;gBAC3B,CAAC,CAAC,4BAA4B,KAAK,WAAW;oBAC9C,CAAC,CAAC,gBAAgB;oBAClB,CAAC,CAAC,4BAA4B,KAAK,mBAAmB;wBACtD,CAAC,CAAC,qCAAqC;wBACvC,CAAC,CAAC,SAAS;YACnB,IAAI,EAAE,eAAe;YACrB,SAAS,EAAE,gCAAgC;SAC9C;QACD,iCAAiC,IAAI;YACjC,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,oBAAoB;YAC5B,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,yCAAyC,EAAE,CAAC;YAC/E,OAAO,EAAE,0BAA0B;YACnC,QAAQ,EAAE,gCAAgC;YAC1C,OAAO,EAAE,oBAAoB;YAC7B,IAAI,EAAE,cAAc;YACpB,SAAS,EAAE,qCAAqC;SACnD;KACJ,CAAC;IAEF,OAAO,OAAO,CAAC,SAAS,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { DefaultDashboardInsightMenu } from "./DefaultDashboardInsightMenu.js";
|
|
2
2
|
export { DefaultDashboardInsightMenuButton } from "./DefaultDashboardInsightMenuButton.js";
|
|
3
3
|
export { DefaultDashboardInsightMenuTitle } from "./DefaultDashboardInsightMenuTitle.js";
|
|
4
|
+
export type { AlertingDisabledReason, SchedulingDisabledReason } from "./getDefaultInsightMenuItems.js";
|
|
4
5
|
export { getDefaultInsightMenuItems } from "./getDefaultInsightMenuItems.js";
|
|
5
|
-
export {
|
|
6
|
+
export type { MenuItemDependencies } from "./getDefaultInsightEditMenuItems.js";
|
|
7
|
+
export { getDefaultInsightEditMenuItems } from "./getDefaultInsightEditMenuItems.js";
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,YAAY,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AACxG,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,YAAY,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// (C) 2021-
|
|
1
|
+
// (C) 2021-2024 GoodData Corporation
|
|
2
2
|
export { DefaultDashboardInsightMenu } from "./DefaultDashboardInsightMenu.js";
|
|
3
3
|
export { DefaultDashboardInsightMenuButton } from "./DefaultDashboardInsightMenuButton.js";
|
|
4
4
|
export { DefaultDashboardInsightMenuTitle } from "./DefaultDashboardInsightMenuTitle.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAEzF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC"}
|
|
@@ -2,5 +2,5 @@ export * from "./DefaultDashboardInsightMenu/index.js";
|
|
|
2
2
|
export { DashboardInsightMenuButton } from "./DashboardInsightMenuButton.js";
|
|
3
3
|
export { DashboardInsightMenu } from "./DashboardInsightMenu.js";
|
|
4
4
|
export { DashboardInsightMenuTitle } from "./DashboardInsightMenuTitle.js";
|
|
5
|
-
export { CustomDashboardInsightMenuButtonComponent, CustomDashboardInsightMenuComponent, CustomDashboardInsightMenuTitleComponent, IDashboardInsightMenuButtonProps, IDashboardInsightMenuProps, IDashboardInsightMenuTitleProps, IInsightMenuItem, IInsightMenuSubmenu, IInsightMenuItemButton, IInsightMenuItemSeparator, IInsightMenuSubmenuComponentProps, } from "./types.js";
|
|
5
|
+
export type { CustomDashboardInsightMenuButtonComponent, CustomDashboardInsightMenuComponent, CustomDashboardInsightMenuTitleComponent, IDashboardInsightMenuButtonProps, IDashboardInsightMenuProps, IDashboardInsightMenuTitleProps, IInsightMenuItem, IInsightMenuSubmenu, IInsightMenuItemButton, IInsightMenuItemSeparator, IInsightMenuSubmenuComponentProps, } from "./types.js";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/insightMenu/index.ts"],"names":[],"mappings":"AACA,cAAc,wCAAwC,CAAC;AACvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/insightMenu/index.ts"],"names":[],"mappings":"AACA,cAAc,wCAAwC,CAAC;AACvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,YAAY,EACR,yCAAyC,EACzC,mCAAmC,EACnC,wCAAwC,EACxC,gCAAgC,EAChC,0BAA0B,EAC1B,+BAA+B,EAC/B,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,EACzB,iCAAiC,GACpC,MAAM,YAAY,CAAC"}
|
|
@@ -3,5 +3,6 @@ import KpiAlertDialog, { IKpiAlertDialogProps } from "./KpiAlertDialog/KpiAlertD
|
|
|
3
3
|
import { IAttributeFilterMetaCollection, enrichBrokenAlertsInfo } from "./utils/brokenFilterUtils.js";
|
|
4
4
|
import { evaluateAlertTriggered } from "./utils/alertThresholdUtils.js";
|
|
5
5
|
export * from "./types.js";
|
|
6
|
-
export {
|
|
6
|
+
export type { IDashboardItemWithKpiAlertProps, IKpiAlertDialogProps, IAttributeFilterMetaCollection };
|
|
7
|
+
export { DashboardItemWithKpiAlert, KpiAlertDialog, enrichBrokenAlertsInfo, evaluateAlertTriggered };
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAC5G,OAAO,cAAc,EAAE,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1F,OAAO,EAAE,8BAA8B,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,cAAc,YAAY,CAAC;AAC3B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAC5G,OAAO,cAAc,EAAE,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1F,OAAO,EAAE,8BAA8B,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,cAAc,YAAY,CAAC;AAC3B,YAAY,EAAE,+BAA+B,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,CAAC;AACtG,OAAO,EAAE,yBAAyB,EAAE,cAAc,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// (C) 2007-
|
|
1
|
+
// (C) 2007-2024 GoodData Corporation
|
|
2
2
|
import { DashboardItemWithKpiAlert } from "./DashboardItemWithKpiAlert.js";
|
|
3
3
|
import KpiAlertDialog from "./KpiAlertDialog/KpiAlertDialog.js";
|
|
4
4
|
import { enrichBrokenAlertsInfo } from "./utils/brokenFilterUtils.js";
|
|
5
5
|
import { evaluateAlertTriggered } from "./utils/alertThresholdUtils.js";
|
|
6
6
|
export * from "./types.js";
|
|
7
|
-
export { DashboardItemWithKpiAlert, KpiAlertDialog, enrichBrokenAlertsInfo, evaluateAlertTriggered
|
|
7
|
+
export { DashboardItemWithKpiAlert, KpiAlertDialog, enrichBrokenAlertsInfo, evaluateAlertTriggered };
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,yBAAyB,EAAmC,MAAM,gCAAgC,CAAC;AAC5G,OAAO,cAAwC,MAAM,oCAAoC,CAAC;AAC1F,OAAO,EAAkC,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,cAAc,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,yBAAyB,EAAmC,MAAM,gCAAgC,CAAC;AAC5G,OAAO,cAAwC,MAAM,oCAAoC,CAAC;AAC1F,OAAO,EAAkC,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,cAAc,YAAY,CAAC;AAE3B,OAAO,EAAE,yBAAyB,EAAE,cAAc,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { DefaultDashboardKpi } from "./DefaultDashboardKpi.js";
|
|
2
2
|
export { DefaultDashboardKpiComponentSetFactory } from "./DefaultDashboardKpiComponentSetFactory.js";
|
|
3
3
|
export { DashboardKpi } from "./DashboardKpi.js";
|
|
4
|
-
export { IDashboardKpiProps, CustomDashboardKpiComponent } from "./types.js";
|
|
4
|
+
export type { IDashboardKpiProps, CustomDashboardKpiComponent } from "./types.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/kpi/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/kpi/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,YAAY,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// (C) 2020-
|
|
1
|
+
// (C) 2020-2024 GoodData Corporation
|
|
2
2
|
export { DefaultDashboardKpi } from "./DefaultDashboardKpi.js";
|
|
3
3
|
export { DefaultDashboardKpiComponentSetFactory } from "./DefaultDashboardKpiComponentSetFactory.js";
|
|
4
4
|
export { DashboardKpi } from "./DashboardKpi.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CustomDashboardRichTextComponent, IDashboardRichTextProps } from "./types.js";
|
|
1
|
+
export type { CustomDashboardRichTextComponent, IDashboardRichTextProps } from "./types.js";
|
|
2
2
|
export { DefaultDashboardRichText } from "./DefaultDashboardRichText.js";
|
|
3
3
|
export { DefaultDashboardRichTextComponentSetFactory } from "./DefaultDashboardRichTextComponentSetFactory.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/richText/index.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/richText/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,gCAAgC,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,2CAA2C,EAAE,MAAM,kDAAkD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { IDashboardInsightProps, CustomDashboardInsightComponent, IInsightBodyProps, CustomInsightBodyComponent, } from "./insight/types.js";
|
|
2
|
-
export { CustomDashboardInsightMenuButtonComponent, CustomDashboardInsightMenuComponent, CustomDashboardInsightMenuTitleComponent, IDashboardInsightMenuButtonProps, IDashboardInsightMenuProps, IDashboardInsightMenuTitleProps, IInsightMenuItem, IInsightMenuItemButton, IInsightMenuItemSeparator, } from "./insightMenu/types.js";
|
|
3
|
-
export { IDashboardKpiProps, CustomDashboardKpiComponent } from "./kpi/types.js";
|
|
4
|
-
export { IDashboardWidgetProps, CustomDashboardWidgetComponent } from "./widget/types.js";
|
|
5
|
-
export { CustomDashboardRichTextComponent, IDashboardRichTextProps } from "../widget/richText/types.js";
|
|
6
|
-
export { CustomDashboardVisualizationSwitcherComponent, IDashboardVisualizationSwitcherProps, } from "../widget/visualizationSwitcher/types.js";
|
|
1
|
+
export type { IDashboardInsightProps, CustomDashboardInsightComponent, IInsightBodyProps, CustomInsightBodyComponent, } from "./insight/types.js";
|
|
2
|
+
export type { CustomDashboardInsightMenuButtonComponent, CustomDashboardInsightMenuComponent, CustomDashboardInsightMenuTitleComponent, IDashboardInsightMenuButtonProps, IDashboardInsightMenuProps, IDashboardInsightMenuTitleProps, IInsightMenuItem, IInsightMenuItemButton, IInsightMenuItemSeparator, } from "./insightMenu/types.js";
|
|
3
|
+
export type { IDashboardKpiProps, CustomDashboardKpiComponent } from "./kpi/types.js";
|
|
4
|
+
export type { IDashboardWidgetProps, CustomDashboardWidgetComponent } from "./widget/types.js";
|
|
5
|
+
export type { CustomDashboardRichTextComponent, IDashboardRichTextProps } from "../widget/richText/types.js";
|
|
6
|
+
export type { CustomDashboardVisualizationSwitcherComponent, IDashboardVisualizationSwitcherProps, } from "../widget/visualizationSwitcher/types.js";
|
|
7
7
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/widget/types.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/widget/types.ts"],"names":[],"mappings":"AACA,YAAY,EACR,sBAAsB,EACtB,+BAA+B,EAC/B,iBAAiB,EACjB,0BAA0B,GAC7B,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACR,yCAAyC,EACzC,mCAAmC,EACnC,wCAAwC,EACxC,gCAAgC,EAChC,0BAA0B,EAC1B,+BAA+B,EAC/B,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,GAC5B,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AACtF,YAAY,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAC/F,YAAY,EAAE,gCAAgC,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC7G,YAAY,EACR,6CAA6C,EAC7C,oCAAoC,GACvC,MAAM,0CAA0C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CustomDashboardVisualizationSwitcherComponent, IDashboardVisualizationSwitcherProps, } from "./types.js";
|
|
1
|
+
export type { CustomDashboardVisualizationSwitcherComponent, IDashboardVisualizationSwitcherProps, } from "./types.js";
|
|
2
2
|
export { DefaultDashboardVisualizationSwitcher } from "./DefaultDashboardVisualizationSwitcher.js";
|
|
3
3
|
export { DefaultDashboardVisualizationSwitcherComponentSetFactory } from "./DefaultDashboardVisualizationSwitcherComponentSetFactory.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/index.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/index.ts"],"names":[],"mappings":"AAEA,YAAY,EACR,6CAA6C,EAC7C,oCAAoC,GACvC,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,EAAE,wDAAwD,EAAE,MAAM,+DAA+D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDashboardInsightWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultDashboardInsightWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AA8BpD,OAAO,EAAE,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAGjE,eAAO,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,mCAAmC,EAAE,SAAS,CAAC,CAIxG,CAAC"}
|
|
@@ -3,13 +3,13 @@ import React, { useMemo, useCallback } from "react";
|
|
|
3
3
|
import cx from "classnames";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { widgetTitle, insightVisualizationType } from "@gooddata/sdk-model";
|
|
6
|
+
import { isInsightAlertingConfigurationEnabled, isInsightScheduledExportsConfigurationEnabled, isInsightSupportedForAlerts, isInsightSupportedForScheduledExports, } from "@gooddata/sdk-ui-ext";
|
|
6
7
|
import { useDashboardSelector, selectSettings, isCustomWidget, useDashboardScheduledEmails, } from "../../../../model/index.js";
|
|
7
8
|
import { DashboardItem, DashboardItemHeadline, DashboardItemVisualization, getVisTypeCssClass, } from "../../../presentationComponents/index.js";
|
|
8
9
|
import { DashboardInsight } from "../../insight/index.js";
|
|
9
10
|
import { useInsightExport } from "../../common/index.js";
|
|
10
11
|
import { useDashboardComponentsContext } from "../../../dashboardContexts/index.js";
|
|
11
12
|
import { InsightWidgetDescriptionTrigger } from "../../description/InsightWidgetDescriptionTrigger.js";
|
|
12
|
-
import { isSupportedInsightVisType } from "../../insight/configuration/InsightAlertConfig/utils.js";
|
|
13
13
|
import { useInsightMenu } from "./useInsightMenu.js";
|
|
14
14
|
import { DashboardWidgetInsightGuard } from "./DashboardWidgetInsightGuard.js";
|
|
15
15
|
export const DefaultDashboardInsightWidget = (props) => {
|
|
@@ -35,18 +35,49 @@ const DefaultDashboardInsightWidgetCore = ({ widget, insight, screen, onError, o
|
|
|
35
35
|
const onScheduleManagementExport = useCallback(() => {
|
|
36
36
|
onScheduleEmailingManagementOpen(widget);
|
|
37
37
|
}, [onScheduleEmailingManagementOpen, widget]);
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const
|
|
38
|
+
const isStandardWidget = !isCustomWidget(widget);
|
|
39
|
+
const hasNoDestinations = numberOfAvailableDestinations === 0;
|
|
40
|
+
//NOTE: Check if widget has localIdentifier, if not that is probably widget from old dashboard
|
|
41
|
+
// and we should not allow to schedule export/alert because we need localIdentifier to identify the widget
|
|
42
|
+
const widgetHasNoLocalIdentifier = !widget.localIdentifier;
|
|
43
|
+
const isAlertingEnabled = settings.enableAlerting === true;
|
|
44
|
+
const isInsightTypeSupportedForAlerting = isInsightSupportedForAlerts(insight);
|
|
45
|
+
const isInsightEnabledForAlerting = isInsightAlertingConfigurationEnabled(insight);
|
|
46
|
+
const isAlertingVisible = isAlertingEnabled && isStandardWidget && isInsightTypeSupportedForAlerting;
|
|
47
|
+
const alertingDisabled = hasNoDestinations || !isInsightEnabledForAlerting || widgetHasNoLocalIdentifier;
|
|
48
|
+
let alertingDisabledReason = undefined;
|
|
49
|
+
if (widgetHasNoLocalIdentifier) {
|
|
50
|
+
alertingDisabledReason = "oldWidget";
|
|
51
|
+
}
|
|
52
|
+
else if (hasNoDestinations) {
|
|
53
|
+
alertingDisabledReason = "noDestinations";
|
|
54
|
+
}
|
|
55
|
+
else if (!isInsightEnabledForAlerting) {
|
|
56
|
+
alertingDisabledReason = "disabledOnInsight";
|
|
57
|
+
}
|
|
58
|
+
const isInsightTypeSupportedForScheduling = isInsightSupportedForScheduledExports(insight);
|
|
59
|
+
const isInsightEnabledForScheduling = isInsightScheduledExportsConfigurationEnabled(insight);
|
|
60
|
+
const scheduleExportDisabled = !isInsightTypeSupportedForScheduling ||
|
|
61
|
+
!isStandardWidget ||
|
|
62
|
+
!isInsightEnabledForScheduling ||
|
|
63
|
+
widgetHasNoLocalIdentifier;
|
|
64
|
+
const scheduleExportManagementDisabled = !isStandardWidget;
|
|
65
|
+
let scheduleExportDisabledReason = undefined;
|
|
66
|
+
if (widgetHasNoLocalIdentifier) {
|
|
67
|
+
scheduleExportDisabledReason = "oldWidget";
|
|
68
|
+
}
|
|
69
|
+
else if (!isStandardWidget) {
|
|
70
|
+
scheduleExportDisabledReason = "incompatibleWidget";
|
|
71
|
+
}
|
|
72
|
+
else if (!isInsightEnabledForScheduling || !isInsightTypeSupportedForScheduling) {
|
|
73
|
+
scheduleExportDisabledReason = "disabledOnInsight";
|
|
74
|
+
}
|
|
75
|
+
///
|
|
43
76
|
const { closeMenu, isMenuOpen, menuItems, openMenu } = useInsightMenu({
|
|
44
77
|
insight,
|
|
45
78
|
widget,
|
|
46
79
|
exportCSVEnabled,
|
|
47
80
|
exportXLSXEnabled,
|
|
48
|
-
scheduleExportEnabled,
|
|
49
|
-
scheduleExportManagementEnabled,
|
|
50
81
|
onExportCSV,
|
|
51
82
|
onExportXLSX,
|
|
52
83
|
onScheduleExport,
|
|
@@ -55,6 +86,10 @@ const DefaultDashboardInsightWidgetCore = ({ widget, insight, screen, onError, o
|
|
|
55
86
|
isScheduleExportManagementVisible: isScheduledManagementEmailingVisible,
|
|
56
87
|
isAlertingVisible,
|
|
57
88
|
alertingDisabled,
|
|
89
|
+
alertingDisabledReason,
|
|
90
|
+
scheduleExportDisabled,
|
|
91
|
+
scheduleExportManagementDisabled,
|
|
92
|
+
scheduleExportDisabledReason,
|
|
58
93
|
});
|
|
59
94
|
const toggleMenu = useCallback(() => {
|
|
60
95
|
if (isMenuOpen) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDashboardInsightWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAY,WAAW,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultDashboardInsightWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EA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C5B,oBAAC,+BAA+B,IAC5B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GAChB,CACL,CAAC,CAAC,CAAC,IAAI;gBACR,oBAAC,0BAA0B,IACvB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,SAAS,GAClB,CACA,CACT,EACD,kBAAkB,EAAE,GAAG,EAAE;gBACrB,IAAI,CAAC,UAAU,EAAE,CAAC;oBACd,OAAO,IAAI,CAAC;gBAChB,CAAC;gBAED,OAAO,CACH,oBAAC,oBAAoB,IACjB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,SAAS,GAClB,CACL,CAAC;YACN,CAAC,IAEA,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAChC,oBAAC,gBAAgB,IACb,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,GACpC,CACL,CACwB,CACjB,CACnB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { IInsight, IInsightWidget } from "@gooddata/sdk-model";
|
|
2
|
-
import { IInsightMenuItem } from "../../insightMenu/index.js";
|
|
2
|
+
import { IInsightMenuItem, AlertingDisabledReason, SchedulingDisabledReason } from "../../insightMenu/index.js";
|
|
3
3
|
type UseInsightMenuConfig = {
|
|
4
4
|
insight: IInsight;
|
|
5
5
|
widget: IInsightWidget;
|
|
6
6
|
exportCSVEnabled: boolean;
|
|
7
7
|
exportXLSXEnabled: boolean;
|
|
8
|
-
scheduleExportEnabled: boolean;
|
|
9
|
-
scheduleExportManagementEnabled: boolean;
|
|
10
8
|
onExportCSV: () => void;
|
|
11
9
|
onExportXLSX: () => void;
|
|
12
10
|
onScheduleExport: () => void;
|
|
@@ -15,6 +13,10 @@ type UseInsightMenuConfig = {
|
|
|
15
13
|
isScheduleExportManagementVisible: boolean;
|
|
16
14
|
isAlertingVisible: boolean;
|
|
17
15
|
alertingDisabled: boolean;
|
|
16
|
+
scheduleExportDisabled: boolean;
|
|
17
|
+
scheduleExportManagementDisabled: boolean;
|
|
18
|
+
scheduleExportDisabledReason?: SchedulingDisabledReason;
|
|
19
|
+
alertingDisabledReason?: AlertingDisabledReason;
|
|
18
20
|
};
|
|
19
21
|
export declare const useInsightMenu: (config: UseInsightMenuConfig) => {
|
|
20
22
|
menuItems: IInsightMenuItem[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInsightMenu.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/useInsightMenu.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAM/D,OAAO,
|
|
1
|
+
{"version":3,"file":"useInsightMenu.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/useInsightMenu.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAM/D,OAAO,EAEH,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EAC3B,MAAM,4BAA4B,CAAC;AAEpC,KAAK,oBAAoB,GAAG;IACxB,OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,cAAc,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,0BAA0B,EAAE,MAAM,IAAI,CAAC;IACvC,uBAAuB,EAAE,OAAO,CAAC;IACjC,iCAAiC,EAAE,OAAO,CAAC;IAC3C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,sBAAsB,EAAE,OAAO,CAAC;IAChC,gCAAgC,EAAE,OAAO,CAAC;IAC1C,4BAA4B,CAAC,EAAE,wBAAwB,CAAC;IACxD,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,cAAc,WACf,oBAAoB;eAChB,gBAAgB,EAAE;gBAAc,OAAO;cAAY,MAAM,IAAI;eAAa,MAAM,IAAI;CAiBnG,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { useIntl } from "react-intl";
|
|
|
4
4
|
import { selectExecutionResultByRef, useDashboardSelector } from "../../../../model/index.js";
|
|
5
5
|
import { isDataError } from "../../../../_staging/errors/errorPredicates.js";
|
|
6
6
|
import { useDashboardCustomizationsContext } from "../../../dashboardContexts/index.js";
|
|
7
|
-
import { getDefaultInsightMenuItems } from "../../insightMenu/index.js";
|
|
7
|
+
import { getDefaultInsightMenuItems, } from "../../insightMenu/index.js";
|
|
8
8
|
export const useInsightMenu = (config) => {
|
|
9
9
|
const { insight, widget } = config;
|
|
10
10
|
const [isMenuOpen, setIsMenuOpen] = useState(false);
|
|
@@ -20,25 +20,16 @@ export const useInsightMenu = (config) => {
|
|
|
20
20
|
return { menuItems, isMenuOpen, openMenu, closeMenu };
|
|
21
21
|
};
|
|
22
22
|
function useDefaultMenuItems(config, setIsMenuOpen) {
|
|
23
|
-
const { exportCSVEnabled, exportXLSXEnabled,
|
|
23
|
+
const { exportCSVEnabled, exportXLSXEnabled, onExportCSV, onExportXLSX, onScheduleExport, onScheduleManagementExport, isScheduleExportVisible, isScheduleExportManagementVisible, isAlertingVisible, alertingDisabled, scheduleExportDisabled, scheduleExportManagementDisabled, scheduleExportDisabledReason, alertingDisabledReason, widget, } = config;
|
|
24
24
|
const intl = useIntl();
|
|
25
25
|
const execution = useDashboardSelector(selectExecutionResultByRef(widget.ref));
|
|
26
|
-
//NOTE: Check if widget has localIdentifier, if not that is probably widget from old dashboard
|
|
27
|
-
// and we should not allow to schedule export because we need localIdentifier to create schedule
|
|
28
|
-
const noLocalIdentifier = !widget.localIdentifier;
|
|
29
|
-
const scheduleExportDisabled = !scheduleExportEnabled || noLocalIdentifier;
|
|
30
|
-
const scheduleExportManagementDisabled = !scheduleExportManagementEnabled;
|
|
31
26
|
return useMemo(() => {
|
|
32
27
|
return getDefaultInsightMenuItems(intl, {
|
|
33
28
|
exportCSVDisabled: !exportCSVEnabled,
|
|
34
29
|
exportXLSXDisabled: !exportXLSXEnabled,
|
|
35
30
|
scheduleExportManagementDisabled,
|
|
36
31
|
scheduleExportDisabled,
|
|
37
|
-
scheduleExportDisabledReason
|
|
38
|
-
? noLocalIdentifier
|
|
39
|
-
? "oldWidget"
|
|
40
|
-
: "incompatibleWidget"
|
|
41
|
-
: undefined,
|
|
32
|
+
scheduleExportDisabledReason,
|
|
42
33
|
onExportCSV: () => {
|
|
43
34
|
setIsMenuOpen(false);
|
|
44
35
|
onExportCSV();
|
|
@@ -60,6 +51,7 @@ function useDefaultMenuItems(config, setIsMenuOpen) {
|
|
|
60
51
|
isDataError: isDataError(execution?.error),
|
|
61
52
|
isAlertingVisible,
|
|
62
53
|
alertingDisabled,
|
|
54
|
+
alertingDisabledReason,
|
|
63
55
|
});
|
|
64
56
|
}, [
|
|
65
57
|
intl,
|
|
@@ -67,7 +59,6 @@ function useDefaultMenuItems(config, setIsMenuOpen) {
|
|
|
67
59
|
exportXLSXEnabled,
|
|
68
60
|
scheduleExportManagementDisabled,
|
|
69
61
|
scheduleExportDisabled,
|
|
70
|
-
noLocalIdentifier,
|
|
71
62
|
isScheduleExportVisible,
|
|
72
63
|
isScheduleExportManagementVisible,
|
|
73
64
|
execution?.error,
|
|
@@ -78,6 +69,8 @@ function useDefaultMenuItems(config, setIsMenuOpen) {
|
|
|
78
69
|
onExportXLSX,
|
|
79
70
|
onScheduleExport,
|
|
80
71
|
onScheduleManagementExport,
|
|
72
|
+
scheduleExportDisabledReason,
|
|
73
|
+
alertingDisabledReason,
|
|
81
74
|
]);
|
|
82
75
|
}
|
|
83
76
|
//# sourceMappingURL=useInsightMenu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInsightMenu.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/useInsightMenu.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAA4B,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAE9F,OAAO,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAC7E,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,
|
|
1
|
+
{"version":3,"file":"useInsightMenu.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/useInsightMenu.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAA4B,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAE9F,OAAO,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAC7E,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EACH,0BAA0B,GAI7B,MAAM,4BAA4B,CAAC;AAqBpC,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omDashboardWidgetComponent } from "./types.js";
|
|
1
|
+
export type { IDashboardWidgetProps, CustomDashboardWidgetComponent } from "./types.js";
|
|
2
2
|
export { DefaultDashboardWidget } from "./DefaultDashboardWidget.js";
|
|
3
3
|
export { DashboardWidget } from "./DashboardWidget.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/widget/index.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/widget/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
|