@gooddata/sdk-ui-dashboard 11.57.0-alpha.0 → 11.57.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +16 -16
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/_staging/sharedHooks/useRichTextFilters.js +2 -2
- package/esm/index.d.ts +5 -3
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +4 -2
- package/esm/locales.d.ts +2 -2
- package/esm/locales.d.ts.map +1 -1
- package/esm/locales.js +2 -2
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +14 -4
- package/esm/model/commandHandlers/dashboard/exportDashboardToPdfHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/exportDashboardToPdfHandler.js +3 -3
- package/esm/model/commandHandlers/dashboard/exportDashboardToPdfPresentationHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/exportDashboardToPdfPresentationHandler.js +3 -3
- package/esm/model/commandHandlers/dashboard/exportDashboardToPptPresentationHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/exportDashboardToPptPresentationHandler.js +3 -3
- package/esm/model/commandHandlers/dashboard/exportToTabularHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/exportToTabularHandler.js +9 -4
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +3 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadUnavailableReferences.d.ts +13 -3
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadUnavailableReferences.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadUnavailableReferences.js +19 -5
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.d.ts +2 -2
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.js +3 -2
- package/esm/model/commandHandlers/filterContext/attributeFilter/setAttributeFilterParentHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/setAttributeFilterParentHandler.js +11 -1
- package/esm/model/commandHandlers/widgets/exportImageInsightWidgetHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.js +3 -2
- package/esm/model/commandHandlers/widgets/exportSlidesInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/exportSlidesInsightWidgetHandler.js +3 -3
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.d.ts +2 -2
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.js +3 -3
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsManagementDialog.d.ts +2 -2
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsManagementDialog.js +5 -5
- package/esm/model/react/useDashboardAlerting/useDashboardAlerts.d.ts +2 -2
- package/esm/model/react/useDashboardAlerting/useDashboardAlerts.js +3 -3
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsManagementDialog.d.ts +2 -2
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsManagementDialog.js +5 -5
- package/esm/model/react/useWidgetFilters.js +2 -2
- package/esm/model/store/filtering/dashboardFilterSelectors.d.ts +34 -0
- package/esm/model/store/filtering/dashboardFilterSelectors.d.ts.map +1 -1
- package/esm/model/store/filtering/dashboardFilterSelectors.js +62 -3
- package/esm/model/store/filtering/restrictedFilterUtils.d.ts +5 -0
- package/esm/model/store/filtering/restrictedFilterUtils.d.ts.map +1 -0
- package/esm/model/store/filtering/restrictedFilterUtils.js +22 -0
- package/esm/model/store/filtering/types.d.ts +1 -1
- package/esm/model/store/tabs/layout/layoutSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/layout/layoutSelectors.js +2 -2
- package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.d.ts +9 -1
- package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.d.ts.map +1 -1
- package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.js +14 -0
- package/esm/plugins/customizationApis/customizationBuilder.d.ts.map +1 -1
- package/esm/plugins/customizationApis/customizationBuilder.js +1 -0
- package/esm/plugins/customizationApis/filterBarCustomizer.d.ts +4 -2
- package/esm/plugins/customizationApis/filterBarCustomizer.d.ts.map +1 -1
- package/esm/plugins/customizationApis/filterBarCustomizer.js +42 -3
- package/esm/plugins/customizer.d.ts +13 -1
- package/esm/plugins/customizer.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +10 -10
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +10 -10
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogAttribute.d.ts +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogAttribute.js +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogComparisonOperator.d.ts +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogComparisonOperator.js +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogComparisonPeriod.d.ts +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogComparisonPeriod.js +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogDestination.d.ts +3 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogDestination.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogDestination.js +1 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogFilters.d.ts +3 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogFilters.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogFilters.js +1 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogGranularity.d.ts +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogGranularity.js +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogHeader.d.ts +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogHeader.js +2 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogMeasure.d.ts +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogMeasure.js +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogRecipients.d.ts +3 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogRecipients.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogRecipients.js +1 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogSensitivity.d.ts +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogSensitivity.js +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogThreshold.d.ts +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogThreshold.js +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogTriggerInterval.d.ts +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogTriggerInterval.js +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogTriggerMode.d.ts +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogTriggerMode.js +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogNew.d.ts +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogNew.js +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogActionBar.d.ts +4 -3
- package/esm/presentation/automations/alerting/blocks/AlertingDialogActionBar.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogActionBar.js +1 -2
- package/esm/presentation/automations/alerting/blocks/AlertingDialogAttribute.d.ts +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogAttribute.js +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogComparisonOperator.d.ts +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogComparisonOperator.js +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogComparisonPeriod.d.ts +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogComparisonPeriod.js +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogDestination.d.ts +3 -2
- package/esm/presentation/automations/alerting/blocks/AlertingDialogDestination.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogDestination.js +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogFilters.d.ts +3 -2
- package/esm/presentation/automations/alerting/blocks/AlertingDialogFilters.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogFilters.js +1 -2
- package/esm/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.d.ts +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.js +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogGranularity.d.ts +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogGranularity.js +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogHeader.d.ts +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogHeader.js +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogMeasure.d.ts +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogMeasure.js +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogRecipients.d.ts +3 -2
- package/esm/presentation/automations/alerting/blocks/AlertingDialogRecipients.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogRecipients.js +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogSensitivity.d.ts +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogSensitivity.js +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogShell.d.ts +3 -3
- package/esm/presentation/automations/alerting/blocks/AlertingDialogShell.js +3 -3
- package/esm/presentation/automations/alerting/blocks/AlertingDialogThreshold.d.ts +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogThreshold.js +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogTriggerInterval.d.ts +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogTriggerInterval.js +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogTriggerMode.d.ts +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogTriggerMode.js +1 -1
- package/esm/presentation/automations/alerting/hooks/useAttributeValuesFromExecResults.d.ts +1 -1
- package/esm/presentation/automations/alerting/state/AlertActionsContext.d.ts +1 -1
- package/esm/presentation/automations/alerting/state/AlertActionsContext.js +1 -1
- package/esm/presentation/automations/alerting/state/AlertDataContext.d.ts +1 -1
- package/esm/presentation/automations/alerting/state/AlertDataContext.js +1 -1
- package/esm/presentation/automations/alerting/state/AlertDraftContext.d.ts +1 -1
- package/esm/presentation/automations/alerting/state/AlertDraftContext.js +1 -1
- package/esm/presentation/automations/alerting/state/AlertFiltersContext.d.ts +1 -1
- package/esm/presentation/automations/alerting/state/AlertFiltersContext.js +1 -1
- package/esm/presentation/automations/alerting/state/types.d.ts +8 -8
- package/esm/presentation/automations/alerting/state/useAlertDialogValidity.d.ts +1 -1
- package/esm/presentation/automations/alerting/state/useAlertDialogValidity.js +1 -1
- package/esm/presentation/automations/alerting/state/useAlertSelectedValues.d.ts +1 -1
- package/esm/presentation/automations/alerting/state/useAlertSelectedValues.js +1 -1
- package/esm/presentation/automations/alerting/state/useAlertSubmit.d.ts +1 -1
- package/esm/presentation/automations/alerting/state/useAlertSubmit.js +1 -1
- package/esm/presentation/automations/alerting/state/useAlertingDialogFieldProps.d.ts +9 -9
- package/esm/presentation/automations/alerting/state/useAlertingDialogFieldProps.js +9 -9
- package/esm/presentation/automations/alerting/state/useAlertingDialogRegionProps.d.ts +7 -7
- package/esm/presentation/automations/alerting/state/useAlertingDialogRegionProps.js +5 -5
- package/esm/presentation/automations/alerting/types.d.ts +31 -28
- package/esm/presentation/automations/alerting/types.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/types.js +1 -1
- package/esm/presentation/automations/alerting/utils/getters.d.ts +1 -1
- package/esm/presentation/automations/connectors/AlertingConnector.js +2 -2
- package/esm/presentation/automations/connectors/DefaultAlertingManagementDialogConnected.d.ts +1 -1
- package/esm/presentation/automations/connectors/DefaultAlertingManagementDialogConnected.js +1 -1
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.js +2 -2
- package/esm/presentation/automations/contexts/AlertingDialogContext.d.ts +3 -3
- package/esm/presentation/automations/contexts/AlertingDialogContext.js +2 -2
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts +5 -5
- package/esm/presentation/automations/contexts/AutomationsContext.js +2 -2
- package/esm/presentation/automations/contexts/ScheduledEmailDialogContext.d.ts +3 -3
- package/esm/presentation/automations/contexts/ScheduledEmailDialogContext.js +2 -2
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts +11 -11
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +11 -11
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDashboardAttachments.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDashboardAttachments.js +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDestination.d.ts +3 -2
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDestination.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDestination.js +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogEvaluationMode.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogEvaluationMode.js +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogFilters.d.ts +3 -2
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogFilters.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogFilters.js +1 -2
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogHeader.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogHeader.js +2 -2
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogMessage.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogMessage.js +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecipients.d.ts +3 -2
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecipients.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecipients.js +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecurrence.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecurrence.js +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogSubject.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogSubject.js +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogTimezone.d.ts +3 -2
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogTimezone.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogTimezone.js +1 -2
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.js +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogActionBar.d.ts +4 -3
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogActionBar.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogActionBar.js +1 -2
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDashboardAttachments.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDashboardAttachments.js +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDestination.d.ts +3 -2
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDestination.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDestination.js +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogEvaluationMode.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogEvaluationMode.js +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogFilters.d.ts +3 -2
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogFilters.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogFilters.js +1 -2
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogHeader.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogHeader.js +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogMessage.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogMessage.js +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecipients.d.ts +3 -2
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecipients.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecipients.js +1 -2
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecurrence.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecurrence.js +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.d.ts +3 -3
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.js +3 -3
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogSubject.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogSubject.js +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogTimezone.d.ts +3 -2
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogTimezone.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogTimezone.js +1 -2
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogWidgetAttachments.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogWidgetAttachments.js +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledExportActionsContext.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledExportActionsContext.js +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDataContext.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDataContext.js +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDraftContext.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDraftContext.js +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledExportFiltersContext.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledExportFiltersContext.js +1 -1
- package/esm/presentation/automations/scheduledEmail/state/types.d.ts +8 -8
- package/esm/presentation/automations/scheduledEmail/state/useSaveScheduledEmailToBackend.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useSaveScheduledEmailToBackend.js +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogFieldProps.d.ts +8 -8
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogFieldProps.js +6 -6
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogRegionProps.d.ts +9 -9
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogRegionProps.js +6 -6
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailSubmitOnEnter.d.ts +2 -2
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailSubmitOnEnter.js +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.js +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.js +1 -1
- package/esm/presentation/automations/scheduledEmail/types.d.ts +25 -22
- package/esm/presentation/automations/scheduledEmail/types.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/automationParameters.d.ts +1 -1
- package/esm/presentation/automations/shared/hooks/useWorkspaceUsersSearch.d.ts +2 -2
- package/esm/presentation/automations/shared/hooks/useWorkspaceUsersSearch.js +1 -1
- package/esm/presentation/automations/shared/slots/AutomationDialogFormField.d.ts +1 -1
- package/esm/presentation/automations/shared/slots/AutomationDialogFormField.js +1 -1
- package/esm/presentation/automations/shared/slots/DefaultAutomationDialogActionBar.d.ts +1 -1
- package/esm/presentation/automations/shared/slots/DefaultAutomationDialogActionBar.js +1 -1
- package/esm/presentation/automations/shared/slots/types.d.ts +9 -7
- package/esm/presentation/automations/shared/slots/types.d.ts.map +1 -1
- package/esm/presentation/automations/shared/types.d.ts +2 -2
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.js +3 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListItemWrapper.d.ts +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListItemWrapper.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListItemWrapper.js +2 -1
- package/esm/presentation/dashboard/DashboardSidebar/InsightPickerPanel.d.ts +2 -1
- package/esm/presentation/dashboard/DashboardSidebar/InsightPickerPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/InsightPickerPanel.js +2 -2
- package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeChrome.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardContractExpired.d.ts +8 -0
- package/esm/presentation/dashboard/components/DashboardContractExpired.d.ts.map +1 -0
- package/esm/presentation/dashboard/components/DashboardContractExpired.js +25 -0
- package/esm/presentation/dashboard/components/DashboardLoading.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardLoading.js +13 -2
- 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/contractExpiredIcons.d.ts +13 -0
- package/esm/presentation/dashboard/components/contractExpiredIcons.d.ts.map +1 -0
- package/esm/presentation/dashboard/components/contractExpiredIcons.js +15 -0
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts +2 -1
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts.map +1 -1
- package/esm/presentation/dashboard/hooks/useDashboard.js +7 -1
- package/esm/presentation/dashboard/types.d.ts +12 -1
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +2 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.js +1 -0
- package/esm/presentation/dashboardContexts/types.d.ts +20 -0
- package/esm/presentation/dashboardContexts/types.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/types.d.ts +1 -0
- package/esm/presentation/dragAndDrop/types.d.ts.map +1 -1
- package/esm/presentation/export/hooks/useDashboardRelatedFilters.js +2 -2
- package/esm/presentation/filterBar/attributeFilter/AttributeFilterParentFilteringContext.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/AttributeFilterParentFilteringContext.js +7 -3
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.js +11 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useParentsConfiguration.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useParentsConfiguration.js +3 -1
- package/esm/presentation/filterBar/attributeFilter/useDependentDateFilters.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/useDependentDateFilters.js +13 -4
- package/esm/presentation/filterBar/attributeFilter/useParentFilters.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/useParentFilters.js +10 -3
- package/esm/presentation/filterBar/filterBar/DefaultDashboardFilterGroup.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultDashboardFilterGroup.js +13 -0
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js +5 -2
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarItem.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarItem.js +10 -5
- package/esm/presentation/filterBar/filterBar/RestrictedFiltersPlaceholder.d.ts +14 -0
- package/esm/presentation/filterBar/filterBar/RestrictedFiltersPlaceholder.d.ts.map +1 -0
- package/esm/presentation/filterBar/filterBar/RestrictedFiltersPlaceholder.js +11 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js +3 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js +3 -1
- package/esm/presentation/insightList/InsightList.d.ts.map +1 -1
- package/esm/presentation/insightList/InsightList.js +3 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +28 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +28 -0
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.d.ts.map +1 -1
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.js +3 -1
- package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.d.ts.map +1 -1
- package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.js +4 -1
- package/esm/presentation/widget/description/types.d.ts +2 -1
- package/esm/presentation/widget/description/types.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.js +3 -1
- package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.js +4 -1
- package/esm/presentation/widget/richText/EditModeDashboardRichText.d.ts.map +1 -1
- package/esm/presentation/widget/richText/EditModeDashboardRichText.js +3 -1
- package/esm/presentation/widget/richText/ViewModeDashboardRichText.d.ts.map +1 -1
- package/esm/presentation/widget/richText/ViewModeDashboardRichText.js +3 -1
- package/esm/sdk-ui-dashboard.d.ts +366 -246
- package/esm/types.d.ts +1 -1
- package/package.json +22 -22
- package/styles/css/dashboard.css +8 -0
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/filterBar.css +23 -0
- package/styles/css/filterBar.css.map +1 -1
- package/styles/css/main.css +42 -0
- package/styles/css/main.css.map +1 -1
- package/styles/scss/dashboard.scss +8 -0
- package/styles/scss/filterBar.scss +30 -0
|
@@ -15,7 +15,7 @@ export declare const useDashboardAlertsManagementDialog: () => {
|
|
|
15
15
|
onAlertingManagementLoadingError: () => void;
|
|
16
16
|
onAlertingManagementAdd: (targetWidget?: IWidget) => void;
|
|
17
17
|
onAlertingManagementEdit: (alert: IAutomationMetadataObject, widget?: IWidget) => void;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
onAlertingDeleteSuccess: () => void;
|
|
19
|
+
onAlertingDeleteError: () => void;
|
|
20
20
|
};
|
|
21
21
|
//# sourceMappingURL=useDashboardAlertsManagementDialog.d.ts.map
|
|
@@ -58,14 +58,14 @@ export const useDashboardAlertsManagementDialog = () => {
|
|
|
58
58
|
openAlertDialog(widget, alert);
|
|
59
59
|
}, [closeAlertDialog, openAlertDialog]);
|
|
60
60
|
// Delete
|
|
61
|
-
const
|
|
61
|
+
const onAlertingDeleteSuccess = useCallback(() => {
|
|
62
62
|
closeAlertDialog();
|
|
63
63
|
addSuccess(messages.alertingDeleteSuccess);
|
|
64
64
|
handleRefreshAutomations();
|
|
65
65
|
}, [addSuccess, closeAlertDialog, handleRefreshAutomations]);
|
|
66
|
-
const
|
|
66
|
+
const onAlertingDeleteError = useCallback(() => {
|
|
67
67
|
closeAlertDialog();
|
|
68
|
-
addError(messages.
|
|
68
|
+
addError(messages.alertingDeleteError);
|
|
69
69
|
}, [closeAlertDialog, addError]);
|
|
70
70
|
return {
|
|
71
71
|
defaultOnAlertingManagement,
|
|
@@ -74,7 +74,7 @@ export const useDashboardAlertsManagementDialog = () => {
|
|
|
74
74
|
onAlertingManagementLoadingError,
|
|
75
75
|
onAlertingManagementAdd,
|
|
76
76
|
onAlertingManagementEdit,
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
onAlertingDeleteSuccess,
|
|
78
|
+
onAlertingDeleteError,
|
|
79
79
|
};
|
|
80
80
|
};
|
|
@@ -7,8 +7,8 @@ import { usePrevious } from "@gooddata/sdk-ui";
|
|
|
7
7
|
import { safeSerializeObjRef } from "../../_staging/metadata/safeSerializeObjRef.js";
|
|
8
8
|
import { queryWidgetFilters } from "../queries/widgets.js";
|
|
9
9
|
import { selectCrossFilteringFiltersLocalIdentifiersByWidgetRef } from "../store/drill/drillSelectors.js";
|
|
10
|
+
import { selectExecutableDashboardFilters } from "../store/filtering/dashboardFilterSelectors.js";
|
|
10
11
|
import { selectIsInEditMode } from "../store/renderMode/renderModeSelectors.js";
|
|
11
|
-
import { selectFilterContextFilters } from "../store/tabs/filterContext/filterContextSelectors.js";
|
|
12
12
|
import { useDashboardSelector } from "./DashboardStoreProvider.js";
|
|
13
13
|
import { useDashboardQueryProcessing, } from "./useDashboardQueryProcessing.js";
|
|
14
14
|
/**
|
|
@@ -85,7 +85,7 @@ function useWidgetFiltersImpl(widget, insight) {
|
|
|
85
85
|
* @param widget - widget to get the non-ignored filters for
|
|
86
86
|
*/
|
|
87
87
|
function useNonIgnoredFilters(widget) {
|
|
88
|
-
const dashboardFilters = useDashboardSelector(
|
|
88
|
+
const dashboardFilters = useDashboardSelector(selectExecutableDashboardFilters);
|
|
89
89
|
const crossFilteringLocalIdentifiersForThisWidget = useDashboardSelector(selectCrossFilteringFiltersLocalIdentifiersByWidgetRef(widget?.ref));
|
|
90
90
|
const usedFilters = dashboardFilters.filter((f) => {
|
|
91
91
|
if (isDashboardAttributeFilterItem(f)) {
|
|
@@ -1,6 +1,40 @@
|
|
|
1
1
|
import { type FilterContextItem, type IDashboardAttributeFilterConfig, type IDashboardDateFilterConfig, type IDashboardDateFilterConfigItem } from "@gooddata/sdk-model";
|
|
2
2
|
import { type DashboardSelector } from "../types.js";
|
|
3
3
|
import { type IAutomationFiltersTab } from "./types.js";
|
|
4
|
+
/**
|
|
5
|
+
* Selects local identifiers of filters the current user is forbidden to access.
|
|
6
|
+
*
|
|
7
|
+
* @alpha
|
|
8
|
+
*/
|
|
9
|
+
export declare const selectRestrictedDashboardFilterLocalIdentifiers: DashboardSelector<ReadonlySet<string>>;
|
|
10
|
+
/**
|
|
11
|
+
* Selects how many filters the current user is forbidden to access, excluding those the author hid.
|
|
12
|
+
*
|
|
13
|
+
* @alpha
|
|
14
|
+
*/
|
|
15
|
+
export declare const selectRestrictedDashboardFilterCount: DashboardSelector<number>;
|
|
16
|
+
/**
|
|
17
|
+
* Selects dashboard filters that are safe to use in executions and filter-dependent requests.
|
|
18
|
+
*
|
|
19
|
+
* @alpha
|
|
20
|
+
*/
|
|
21
|
+
export declare const selectExecutableDashboardFilters: DashboardSelector<FilterContextItem[]>;
|
|
22
|
+
/**
|
|
23
|
+
* Whether any filter was left out of the executable ones, on any tab. Callers that let the backend
|
|
24
|
+
* fall back to the stored filter context must send the filters explicitly in that case.
|
|
25
|
+
*/
|
|
26
|
+
export declare const selectHasRestrictedDashboardFilters: DashboardSelector<boolean>;
|
|
27
|
+
/**
|
|
28
|
+
* Selects local identifiers of filters the current user is forbidden to access on the given tab.
|
|
29
|
+
* @alpha
|
|
30
|
+
*/
|
|
31
|
+
export declare const selectRestrictedDashboardFilterLocalIdentifiersForTab: (tabLocalIdentifier: string) => DashboardSelector<ReadonlySet<string>>;
|
|
32
|
+
/**
|
|
33
|
+
* Selects execution-safe dashboard filters for every tab.
|
|
34
|
+
*
|
|
35
|
+
* @alpha
|
|
36
|
+
*/
|
|
37
|
+
export declare const selectExecutableDashboardFiltersByTab: DashboardSelector<Record<string, FilterContextItem[]>>;
|
|
4
38
|
/**
|
|
5
39
|
* @alpha
|
|
6
40
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboardFilterSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/filtering/dashboardFilterSelectors.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,+BAA+B,EACpC,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,
|
|
1
|
+
{"version":3,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AE,iBAAiB,CAAC,iBAAiB,EAAE,CAwBxF,CAAC;AAEN;;GAEG;AACH,eAAO,MAAM,sCAAsC,EAAE,iBAAiB,CAAC,iBAAiB,EAAE,CAKzF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kCAAkC,EAAE,iBAAiB,CAAC,MAAM,GAAG,SAAS,CAMpF,CAAC;AA0BF,wBAAgB,2BAA2B,CAAC,OAAO,GAAE,iBAAiB,EAAO,uBAW5E;AAmBD,eAAO,MAAM,yBAAyB,WAC1B,iBAAiB,wBACH;IAClB,sBAAsB,CAAC,EAAE,0BAA0B,CAAC;IACpD,8BAA8B,EAAE,8BAA8B,EAAE,CAAC;IACjE,sBAAsB,EAAE,+BAA+B,EAAE,CAAC;CAC7D,KACF,OAyBF,CAAC;AAEF,eAAO,MAAM,yBAAyB,WAC1B,iBAAiB,wBACH;IAClB,sBAAsB,CAAC,EAAE,0BAA0B,CAAC;IACpD,8BAA8B,EAAE,8BAA8B,EAAE,CAAC;IACjE,sBAAsB,EAAE,+BAA+B,EAAE,CAAC;CAC7D,KACF,OAyBF,CAAC;AAMF;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAAiB,CAAC,qBAAqB,EAAE,CA2EnF,CAAC"}
|
|
@@ -1,18 +1,77 @@
|
|
|
1
1
|
// (C) 2024-2026 GoodData Corporation
|
|
2
2
|
import { createSelector } from "@reduxjs/toolkit";
|
|
3
3
|
import { generateDateFilterLocalIdentifier } from "@gooddata/sdk-backend-base";
|
|
4
|
-
import { areObjRefsEqual, dashboardAttributeFilterItemLocalIdentifier, isAllDashboardMeasureValueFilter, isAllValuesDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilter, isDashboardDateFilter, isDashboardDateFilterWithDimension, isDashboardMeasureValueFilter, newAllTimeDashboardDateFilter, } from "@gooddata/sdk-model";
|
|
4
|
+
import { areObjRefsEqual, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, isAllDashboardMeasureValueFilter, isAllValuesDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilter, isDashboardDateFilter, isDashboardDateFilterWithDimension, isDashboardMeasureValueFilter, newAllTimeDashboardDateFilter, } from "@gooddata/sdk-model";
|
|
5
|
+
import { createMemoizedSelector } from "../_infra/selectors.js";
|
|
5
6
|
import { selectCrossFilteringItems, selectCrossFilteringItemsByTab } from "../drill/drillSelectors.js";
|
|
6
7
|
import { selectAttributeFilterConfigsOverrides, selectAttributeFilterConfigsOverridesByTab, } from "../tabs/attributeFilterConfigs/attributeFilterConfigsSelectors.js";
|
|
7
8
|
import { selectDateFilterConfigOverrides, selectDateFilterConfigOverridesByTab, } from "../tabs/dateFilterConfig/dateFilterConfigSelectors.js";
|
|
8
9
|
import { selectDateFilterConfigsOverrides, selectDateFilterConfigsOverridesByTab, } from "../tabs/dateFilterConfigs/dateFilterConfigsSelectors.js";
|
|
9
10
|
import { selectFilterContextFilters, selectFiltersByTab, } from "../tabs/filterContext/filterContextSelectors.js";
|
|
11
|
+
import { selectMeasureValueFilterConfigsOverrides } from "../tabs/measureValueFilterConfigs/measureValueFilterConfigsSelectors.js";
|
|
10
12
|
import { selectTabs } from "../tabs/tabsSelectors.js";
|
|
13
|
+
import { selectUnavailableObjects } from "../unavailableObjects/unavailableObjectsSelectors.js";
|
|
14
|
+
import { isDashboardFilterRestricted } from "./restrictedFilterUtils.js";
|
|
11
15
|
const commonDateFilter = newAllTimeDashboardDateFilter(undefined, generateDateFilterLocalIdentifier(0));
|
|
16
|
+
function filterLocalIdentifiers(filters) {
|
|
17
|
+
return new Set(filters
|
|
18
|
+
.map(dashboardFilterLocalIdentifier)
|
|
19
|
+
.filter((localIdentifier) => localIdentifier !== undefined));
|
|
20
|
+
}
|
|
21
|
+
const selectRestrictedDashboardFilters = createSelector(selectFilterContextFilters, selectUnavailableObjects, (filters, unavailableObjects) => filters.filter((filter) => isDashboardFilterRestricted(filter, unavailableObjects)));
|
|
22
|
+
/**
|
|
23
|
+
* Selects local identifiers of filters the current user is forbidden to access.
|
|
24
|
+
*
|
|
25
|
+
* @alpha
|
|
26
|
+
*/
|
|
27
|
+
export const selectRestrictedDashboardFilterLocalIdentifiers = createSelector(selectRestrictedDashboardFilters, filterLocalIdentifiers);
|
|
28
|
+
/**
|
|
29
|
+
* Selects how many filters the current user is forbidden to access, excluding those the author hid.
|
|
30
|
+
*
|
|
31
|
+
* @alpha
|
|
32
|
+
*/
|
|
33
|
+
export const selectRestrictedDashboardFilterCount = createSelector(selectRestrictedDashboardFilters, selectDateFilterConfigOverrides, selectDateFilterConfigsOverrides, selectAttributeFilterConfigsOverrides, selectMeasureValueFilterConfigsOverrides, (restricted, commonDateFilterConfig, dateFilterWithDimensionConfigs, attributeFilterConfigs, measureValueFilterConfigs) => restricted.filter((filter) =>
|
|
34
|
+
// isFilterContextItemHidden covers attribute and date filters only
|
|
35
|
+
isDashboardMeasureValueFilter(filter)
|
|
36
|
+
? measureValueFilterConfigs.find((config) => config.localIdentifier === dashboardFilterLocalIdentifier(filter))?.mode !== "hidden"
|
|
37
|
+
: !isFilterContextItemHidden(filter, {
|
|
38
|
+
commonDateFilterConfig,
|
|
39
|
+
dateFilterWithDimensionConfigs,
|
|
40
|
+
attributeFilterConfigs,
|
|
41
|
+
})).length);
|
|
42
|
+
/**
|
|
43
|
+
* Selects dashboard filters that are safe to use in executions and filter-dependent requests.
|
|
44
|
+
*
|
|
45
|
+
* @alpha
|
|
46
|
+
*/
|
|
47
|
+
export const selectExecutableDashboardFilters = createSelector(selectFilterContextFilters, selectUnavailableObjects, (filters, unavailableObjects) => filters.filter((filter) => !isDashboardFilterRestricted(filter, unavailableObjects)));
|
|
48
|
+
const selectRestrictedDashboardFiltersByTab = createSelector(selectFiltersByTab, selectUnavailableObjects, (filtersByTab, unavailableObjects) => Object.fromEntries(Object.entries(filtersByTab).map(([tabId, filters]) => [
|
|
49
|
+
tabId,
|
|
50
|
+
filters.filter((filter) => isDashboardFilterRestricted(filter, unavailableObjects)),
|
|
51
|
+
])));
|
|
52
|
+
/**
|
|
53
|
+
* Whether any filter was left out of the executable ones, on any tab. Callers that let the backend
|
|
54
|
+
* fall back to the stored filter context must send the filters explicitly in that case.
|
|
55
|
+
*/
|
|
56
|
+
export const selectHasRestrictedDashboardFilters = createSelector(selectRestrictedDashboardFilters, selectRestrictedDashboardFiltersByTab, (activeTab, byTab) => activeTab.length > 0 || Object.values(byTab).some((filters) => filters.length > 0));
|
|
57
|
+
/**
|
|
58
|
+
* Selects local identifiers of filters the current user is forbidden to access on the given tab.
|
|
59
|
+
* @alpha
|
|
60
|
+
*/
|
|
61
|
+
export const selectRestrictedDashboardFilterLocalIdentifiersForTab = createMemoizedSelector((tabLocalIdentifier) => createSelector(selectRestrictedDashboardFiltersByTab, (filtersByTab) => filterLocalIdentifiers(filtersByTab[tabLocalIdentifier] ?? [])));
|
|
62
|
+
/**
|
|
63
|
+
* Selects execution-safe dashboard filters for every tab.
|
|
64
|
+
*
|
|
65
|
+
* @alpha
|
|
66
|
+
*/
|
|
67
|
+
export const selectExecutableDashboardFiltersByTab = createSelector(selectFiltersByTab, selectUnavailableObjects, (filtersByTab, unavailableObjects) => Object.fromEntries(Object.entries(filtersByTab).map(([tabId, filters]) => [
|
|
68
|
+
tabId,
|
|
69
|
+
filters.filter((filter) => !isDashboardFilterRestricted(filter, unavailableObjects)),
|
|
70
|
+
])));
|
|
12
71
|
/**
|
|
13
72
|
* @alpha
|
|
14
73
|
*/
|
|
15
|
-
export const selectDashboardFiltersWithoutCrossFiltering = createSelector(
|
|
74
|
+
export const selectDashboardFiltersWithoutCrossFiltering = createSelector(selectExecutableDashboardFilters, selectCrossFilteringItems, (dashboardFilters, crossFilteringItems) => {
|
|
16
75
|
const dashboardFiltersWithCommonDateFilter = dashboardFilters.some(isDashboardCommonDateFilter)
|
|
17
76
|
? dashboardFilters
|
|
18
77
|
: [commonDateFilter, ...dashboardFilters];
|
|
@@ -141,7 +200,7 @@ export const isFilterContextItemLocked = (filter, filterConfigurations) => {
|
|
|
141
200
|
*
|
|
142
201
|
* @alpha
|
|
143
202
|
*/
|
|
144
|
-
export const selectAutomationFiltersByTab = createSelector(selectTabs,
|
|
203
|
+
export const selectAutomationFiltersByTab = createSelector(selectTabs, selectExecutableDashboardFiltersByTab, selectDateFilterConfigOverridesByTab, selectDateFilterConfigsOverridesByTab, selectAttributeFilterConfigsOverridesByTab, selectCrossFilteringItemsByTab, (tabs, filtersByTab, dateFilterConfigByTab, dateFilterConfigsByTab, attributeFilterConfigsByTab, crossFilteringItemsByTab) => {
|
|
145
204
|
if (!tabs || tabs.length === 0) {
|
|
146
205
|
return [];
|
|
147
206
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IUnavailableDashboardReference } from "@gooddata/sdk-backend-spi";
|
|
2
|
+
import { type FilterContextItem, type ObjRef, type ObjectType } from "@gooddata/sdk-model";
|
|
3
|
+
export declare function isDashboardObjectRestricted(ref: ObjRef, type: ObjectType, unavailableObjects: IUnavailableDashboardReference[]): boolean;
|
|
4
|
+
export declare function isDashboardFilterRestricted(filter: FilterContextItem, unavailableObjects: IUnavailableDashboardReference[]): boolean;
|
|
5
|
+
//# sourceMappingURL=restrictedFilterUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restrictedFilterUtils.d.ts","sourceRoot":"","sources":["../../../../src/model/store/filtering/restrictedFilterUtils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,MAAM,EACX,KAAK,UAAU,EAMlB,MAAM,qBAAqB,CAAC;AAE7B,wBAAgB,2BAA2B,CACvC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,UAAU,EAChB,kBAAkB,EAAE,8BAA8B,EAAE,GACrD,OAAO,CAIT;AAeD,wBAAgB,2BAA2B,CACvC,MAAM,EAAE,iBAAiB,EACzB,kBAAkB,EAAE,8BAA8B,EAAE,GACrD,OAAO,CAOT"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
import { areObjRefsEqual, dashboardFilterObjRef, isDashboardAttributeFilterItem, isDashboardDateFilterWithDimension, isDashboardMeasureValueFilter, } from "@gooddata/sdk-model";
|
|
3
|
+
export function isDashboardObjectRestricted(ref, type, unavailableObjects) {
|
|
4
|
+
return unavailableObjects.some((object) => object.reason === "forbidden" && object.type === type && areObjRefsEqual(object.ref, ref));
|
|
5
|
+
}
|
|
6
|
+
function dashboardFilterObjectType(filter) {
|
|
7
|
+
if (isDashboardAttributeFilterItem(filter)) {
|
|
8
|
+
return "displayForm";
|
|
9
|
+
}
|
|
10
|
+
if (isDashboardDateFilterWithDimension(filter)) {
|
|
11
|
+
return "dataSet";
|
|
12
|
+
}
|
|
13
|
+
if (isDashboardMeasureValueFilter(filter)) {
|
|
14
|
+
return "measure";
|
|
15
|
+
}
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
export function isDashboardFilterRestricted(filter, unavailableObjects) {
|
|
19
|
+
const ref = dashboardFilterObjRef(filter);
|
|
20
|
+
const type = dashboardFilterObjectType(filter);
|
|
21
|
+
return (ref !== undefined && type !== undefined && isDashboardObjectRestricted(ref, type, unavailableObjects));
|
|
22
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layoutSelectors.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/layout/layoutSelectors.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,sBAAsB,EAC3B,KAAK,MAAM,EACX,KAAK,UAAU,EAUlB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,K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K,iBAAiB,CAAC,OAAO,CAKpF,CAAC;AAEN;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAC9B,GAAG,EAAE,SAAS,CAAC;IACf,MAAM,EAAE,uBAAuB,CAAC;CACnC;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB;IAC/D,MAAM,EAAE,cAAc,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,EAAE,iBAAiB,CAAC,iBAAiB,EAAE,CAkB9E,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC,EAAE,iBAAiB,CAAC,wBAAwB,EAAE,CACY,CAAC;AAE1G;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,IAAI,wBAAwB,CAEzG;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,mCAAmC,EAAE,CAC9C,GAAG,EAAE,MAAM,GAAG,SAAS,KACtB,iBAAiB,CAAC,MAAM,GAAG,SAAS,CAkBxC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,EAAE,iBAAiB,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAsBnF,CAAC"}
|
|
@@ -9,8 +9,8 @@ import { isCustomWidget, isExtendedDashboardLayoutWidget, } from "../../../types
|
|
|
9
9
|
import { createMemoizedSelector } from "../../_infra/selectors.js";
|
|
10
10
|
import { createUndoableCommandsMapping } from "../../_infra/undoEnhancer.js";
|
|
11
11
|
import { selectCrossFilteringFiltersLocalIdentifiers, selectCrossFilteringFiltersLocalIdentifiersByWidgetRef, } from "../../drill/drillSelectors.js";
|
|
12
|
+
import { selectExecutableDashboardFilters } from "../../filtering/dashboardFilterSelectors.js";
|
|
12
13
|
import { getWidgetCoordinates, isItemWithBaseWidget } from "../../tabs/layout/layoutUtils.js";
|
|
13
|
-
import { selectFilterContextFilters } from "../filterContext/filterContextSelectors.js";
|
|
14
14
|
import { selectActiveTabLocalIdentifier, selectTabs } from "../tabsSelectors.js";
|
|
15
15
|
import { DEFAULT_TAB_ID } from "../tabsState.js";
|
|
16
16
|
import { layoutInitialState } from "./layoutState.js";
|
|
@@ -260,7 +260,7 @@ export const selectWidgetDrills = createMemoizedSelector((ref) => createSelector
|
|
|
260
260
|
* @internal
|
|
261
261
|
*/
|
|
262
262
|
export const selectAllFiltersForWidgetByRef = createMemoizedSelector((ref) => {
|
|
263
|
-
return createSelector(selectWidgetByRef(ref),
|
|
263
|
+
return createSelector(selectWidgetByRef(ref), selectExecutableDashboardFilters, selectCrossFilteringFiltersLocalIdentifiersByWidgetRef(ref), selectWidgetIgnoreCrossFiltering(ref), selectCrossFilteringFiltersLocalIdentifiers, (widget, dashboardFilters, crossFilteringFiltersLocalIdentifiers, shouldIgnoreCrossFiltering, allCrossFilteringLocalIdentifiers) => {
|
|
264
264
|
invariant(widget, `widget with ref ${objRefToString(ref)} does not exist in the state`);
|
|
265
265
|
if (isExtendedDashboardLayoutWidget(widget)) {
|
|
266
266
|
return [[], []];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IUnavailableDashboardReference } from "@gooddata/sdk-backend-spi";
|
|
2
|
-
import type { ObjectType } from "@gooddata/sdk-model";
|
|
2
|
+
import type { ObjRef, ObjectType } from "@gooddata/sdk-model";
|
|
3
3
|
import { type ObjRefMap } from "../../../_staging/metadata/objRefMap.js";
|
|
4
4
|
import { type DashboardSelector } from "../types.js";
|
|
5
5
|
/**
|
|
@@ -23,4 +23,12 @@ export declare const selectUnavailableObjectsMapByType: (type: ObjectType) => Da
|
|
|
23
23
|
* @alpha
|
|
24
24
|
*/
|
|
25
25
|
export declare const selectRestrictedInsightsMap: DashboardSelector<ObjRefMap<IUnavailableDashboardReference>>;
|
|
26
|
+
/**
|
|
27
|
+
* Selects the refs a rich text widget references but the current user is not allowed to read. A
|
|
28
|
+
* reference that is merely deleted is not included — that keeps rendering today's error value,
|
|
29
|
+
* while these are replaced by the restricted marker and left out of the widget's execution.
|
|
30
|
+
*
|
|
31
|
+
* @alpha
|
|
32
|
+
*/
|
|
33
|
+
export declare const selectRestrictedRichTextReferences: DashboardSelector<ObjRef[]>;
|
|
26
34
|
//# sourceMappingURL=unavailableObjectsSelectors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unavailableObjectsSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/unavailableObjects/unavailableObjectsSelectors.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"unavailableObjectsSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/unavailableObjects/unavailableObjectsSelectors.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE9D,OAAO,EAAE,KAAK,SAAS,EAA0B,MAAM,yCAAyC,CAAC;AAEjG,OAAO,EAAE,KAAK,iBAAiB,EAAuB,MAAM,aAAa,CAAC;AAW1E;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,8BAA8B,EAAE,CAC3D,CAAC;AAE/B;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC,EAAE,CAC5C,IAAI,EAAE,UAAU,KACf,iBAAiB,CAAC,SAAS,CAAC,8BAA8B,CAAC,CAQ/D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,EAAE,iBAAiB,CAAC,SAAS,CAAC,8BAA8B,CAAC,CAMhG,CAAC;AAON;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,EAAE,iBAAiB,CAAC,MAAM,EAAE,CAQ1E,CAAC"}
|
|
@@ -26,3 +26,17 @@ export const selectUnavailableObjectsMapByType = createMemoizedSelector((type) =
|
|
|
26
26
|
* @alpha
|
|
27
27
|
*/
|
|
28
28
|
export const selectRestrictedInsightsMap = createSelector(selectUnavailableObjects, (objects) => newMapForObjectWithRef(objects.filter((object) => object.type === "insight" && object.reason === "forbidden"), "insight"));
|
|
29
|
+
/**
|
|
30
|
+
* Object types a rich text widget can reference: `{metric/id}` and `{label/id}`.
|
|
31
|
+
*/
|
|
32
|
+
const RICH_TEXT_REFERENCE_TYPES = ["measure", "displayForm"];
|
|
33
|
+
/**
|
|
34
|
+
* Selects the refs a rich text widget references but the current user is not allowed to read. A
|
|
35
|
+
* reference that is merely deleted is not included — that keeps rendering today's error value,
|
|
36
|
+
* while these are replaced by the restricted marker and left out of the widget's execution.
|
|
37
|
+
*
|
|
38
|
+
* @alpha
|
|
39
|
+
*/
|
|
40
|
+
export const selectRestrictedRichTextReferences = createSelector(selectUnavailableObjects, (objects) => objects
|
|
41
|
+
.filter((object) => object.reason === "forbidden" && RICH_TEXT_REFERENCE_TYPES.includes(object.type))
|
|
42
|
+
.map((object) => object.ref));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customizationBuilder.d.ts","sourceRoot":"","sources":["../../../src/plugins/customizationApis/customizationBuilder.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,uBAAuB,EAAyB,MAAM,kCAAkC,CAAC;AACvG,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,gCAAgC,EACxC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE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IAEK,qBAAqB,QAAO,IAAI,CAGrC;IAEK,qBAAqB,UAAW,GAAG,KAAG,IAAI,CAM/C;IAEK,KAAK,QAAO,wBAAwB,
|
|
1
|
+
{"version":3,"file":"customizationBuilder.d.ts","sourceRoot":"","sources":["../../../src/plugins/customizationApis/customizationBuilder.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,uBAAuB,EAAyB,MAAM,kCAAkC,CAAC;AACvG,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,gCAAgC,EACxC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAgBhE;;GAEG;AACH,qBAAa,6BAA8B,YAAW,oBAAoB;IACtE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsC;IAChE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoE;IAC3F,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAGhC;IACF,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAqE;IACtG,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAG/B;IACF,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAGlC;IACF,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAGhC;IACF,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAGjC;IACF,OAAO,CAAC,QAAQ,CAAC,+BAA+B,CAC4B;IAC5E,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAC4B;IACvE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAG/B;IACF,OAAO,CAAC,QAAQ,CAAC,eAAe,CAG9B;IACF,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAGhC;IACF,OAAO,CAAC,cAAc,CAA+C;IAErE,OAAO,CAAC,eAAe,CAWrB;IAEK,iBAAiB,oBAAqB,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,UAElF;IAEK,cAAc,QAAO,2BAA2B,CAErD;IAEK,aAAa,QAAO,0BAA0B,CAEnD;IAEK,SAAS,QAAO,2BAA2B,CAEhD;IAEK,MAAM,QAAO,iBAAiB,CAEnC;IAEK,KAAK,QAAO,gBAAgB,CAEjC;IAEK,OAAO,QAAO,kBAAkB,CAErC;IAEK,MAAM,QAAO,0BAA0B,CAE5C;IAEK,SAAS,QAAO,oBAAoB,CAEzC;IAEK,OAAO,QAAO,kBAAkB,CAErC;IAEK,eAAe,QAAO,mBAAmB,CAE9C;IAEK,4BAA4B,QAAO,gCAAgC,CAExE;IAEK,sBAAsB,WAAY,2BAA2B,KAAG,IAAI,CAGzE;IAEK,qBAAqB,QAAO,IAAI,CAGrC;IAEK,qBAAqB,UAAW,GAAG,KAAG,IAAI,CAM/C;IAEK,KAAK,QAAO,wBAAwB,CAwDzC;IAEF,OAAO,CAAC,mBAAmB;CAoC9B"}
|
|
@@ -102,6 +102,7 @@ export class DashboardCustomizationBuilder {
|
|
|
102
102
|
InsightComponentProvider: this.insightCustomizer.getInsightProvider(),
|
|
103
103
|
InsightBodyComponentProvider: this.insightCustomizer.getInsightBodyComponentProvider(),
|
|
104
104
|
RestrictedPlaceholderComponentProvider: this.insightCustomizer.getRestrictedPlaceholderProvider(),
|
|
105
|
+
RestrictedFiltersPlaceholderComponentProvider: this.filterBarCustomizer.getRestrictedPlaceholderProvider(),
|
|
105
106
|
DashboardContentComponentProvider: this.dashboardContentCustomizer.getDashboardContentProvider(),
|
|
106
107
|
WidgetComponentProvider: this.widgetCustomizer.getWidgetComponentProvider(),
|
|
107
108
|
DashboardAttributeFilterComponentProvider: this.filtersCustomizer
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FilterBarComponentProvider, type OptionalFilterBarComponentProvider } from "../../presentation/dashboardContexts/types.js";
|
|
1
|
+
import { type FilterBarComponentProvider, type OptionalFilterBarComponentProvider, type OptionalRestrictedFiltersPlaceholderComponentProvider, type RestrictedFiltersPlaceholderComponentProvider } from "../../presentation/dashboardContexts/types.js";
|
|
2
2
|
import { type CustomFilterBarComponent } from "../../presentation/filterBar/filterBar/types.js";
|
|
3
3
|
import { type FilterBarRenderingMode, type IFilterBarCustomizer } from "../customizer.js";
|
|
4
4
|
import { type IDashboardCustomizationLogger } from "./customizationLogging.js";
|
|
@@ -14,9 +14,11 @@ export declare class DefaultFilterBarCustomizer implements IFilterBarCustomizer
|
|
|
14
14
|
private readonly mutationContext;
|
|
15
15
|
private state;
|
|
16
16
|
private updated;
|
|
17
|
-
constructor(logger: IDashboardCustomizationLogger, mutationContext: CustomizerMutationsContext, defaultProvider?: FilterBarComponentProvider);
|
|
17
|
+
constructor(logger: IDashboardCustomizationLogger, mutationContext: CustomizerMutationsContext, defaultProvider?: FilterBarComponentProvider, defaultRestrictedPlaceholderProvider?: RestrictedFiltersPlaceholderComponentProvider);
|
|
18
18
|
setRenderingMode: (mode: FilterBarRenderingMode) => this;
|
|
19
19
|
withCustomProvider: (provider: OptionalFilterBarComponentProvider) => IFilterBarCustomizer;
|
|
20
|
+
withRestrictedPlaceholderProvider: (provider: OptionalRestrictedFiltersPlaceholderComponentProvider) => IFilterBarCustomizer;
|
|
21
|
+
getRestrictedPlaceholderProvider: () => RestrictedFiltersPlaceholderComponentProvider;
|
|
20
22
|
withCustomDecorator(providerFactory: (next: FilterBarComponentProvider) => OptionalFilterBarComponentProvider): IFilterBarCustomizer;
|
|
21
23
|
getCustomizerResult: () => IFilterBarCustomizerResult;
|
|
22
24
|
sealCustomizer: () => this;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterBarCustomizer.d.ts","sourceRoot":"","sources":["../../../src/plugins/customizationApis/filterBarCustomizer.tsx"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,0BAA0B,EAC/B,KAAK,kCAAkC,
|
|
1
|
+
{"version":3,"file":"filterBarCustomizer.d.ts","sourceRoot":"","sources":["../../../src/plugins/customizationApis/filterBarCustomizer.tsx"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,0BAA0B,EAC/B,KAAK,kCAAkC,EACvC,KAAK,qDAAqD,EAC1D,KAAK,6CAA6C,EACrD,MAAM,+CAA+C,CAAC;AAIvD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,iDAAiD,CAAC;AAChG,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE1F,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAoB7D,UAAU,0BAA0B;IAChC,kBAAkB,EAAE,wBAAwB,GAAG,SAAS,CAAC;CAC5D;AAwJD;;GAEG;AACH,qBAAa,0BAA2B,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IACvD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA6B;IAC7D,OAAO,CAAC,KAAK,CAA4B;IACzC,OAAO,CAAC,OAAO,CAAS;IAExB,YACI,MAAM,EAAE,6BAA6B,EACrC,eAAe,EAAE,0BAA0B,EAC3C,eAAe,GAAE,0BAA6D,EAC9E,oCAAoC,GAAE,6CAA2F,EASpI;IAED,gBAAgB,SAAU,sBAAsB,KAAG,IAAI,CAIrD;IAEK,kBAAkB,aAAc,kCAAkC,KAAG,oBAAoB,CAM9F;IAEK,iCAAiC,aAC1B,qDAAqD,KAChE,oBAAoB,CAOrB;IAEK,gCAAgC,QAAO,6CAA6C,CAEzF;IAEK,mBAAmB,CACtB,eAAe,EAAE,CAAC,IAAI,EAAE,0BAA0B,KAAK,kCAAkC,GAC1F,oBAAoB,CAyBtB;IAED,mBAAmB,QAAO,0BAA0B,CAiBlD;IAEF,cAAc,QAAO,IAAI,CAIvB;CACL"}
|
|
@@ -4,9 +4,13 @@ import { union } from "lodash-es";
|
|
|
4
4
|
import { InvariantError } from "ts-invariant";
|
|
5
5
|
import { HiddenFilterBar } from "../../presentation/filterBar/filterBar/HiddenFilterBar.js";
|
|
6
6
|
import { RenderModeAwareFilterBar } from "../../presentation/filterBar/filterBar/RenderModeAwareFilterBar.js";
|
|
7
|
+
import { RestrictedFiltersPlaceholder } from "../../presentation/filterBar/filterBar/RestrictedFiltersPlaceholder.js";
|
|
7
8
|
const DefaultFilterBarRendererProvider = () => {
|
|
8
9
|
return RenderModeAwareFilterBar;
|
|
9
10
|
};
|
|
11
|
+
const DefaultRestrictedFiltersPlaceholderProvider = () => {
|
|
12
|
+
return RestrictedFiltersPlaceholder;
|
|
13
|
+
};
|
|
10
14
|
class FilterBarCustomizerState {
|
|
11
15
|
/*
|
|
12
16
|
* Chain of 'core' providers. Core providers are evaluated from last to first. As soon as some provider
|
|
@@ -42,10 +46,23 @@ class FilterBarCustomizerState {
|
|
|
42
46
|
* decorators get registered, the rootProvider changes.
|
|
43
47
|
*/
|
|
44
48
|
rootProvider = this.coreProvider;
|
|
49
|
+
restrictedPlaceholderProviderChain;
|
|
50
|
+
restrictedPlaceholderProvider = () => {
|
|
51
|
+
const providerStack = [...this.restrictedPlaceholderProviderChain].reverse();
|
|
52
|
+
for (const provider of providerStack) {
|
|
53
|
+
const Component = provider();
|
|
54
|
+
if (Component) {
|
|
55
|
+
return Component;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
// the chain is primed with the default provider, which never returns undefined
|
|
59
|
+
throw new InvariantError();
|
|
60
|
+
};
|
|
45
61
|
renderingMode = undefined;
|
|
46
62
|
logger;
|
|
47
|
-
constructor(defaultProvider, logger) {
|
|
63
|
+
constructor(defaultProvider, logger, defaultRestrictedPlaceholderProvider) {
|
|
48
64
|
this.coreProviderChain = [defaultProvider];
|
|
65
|
+
this.restrictedPlaceholderProviderChain = [defaultRestrictedPlaceholderProvider];
|
|
49
66
|
this.logger = logger;
|
|
50
67
|
}
|
|
51
68
|
getRenderingMode = () => {
|
|
@@ -60,9 +77,15 @@ class FilterBarCustomizerState {
|
|
|
60
77
|
addCustomProvider(provider) {
|
|
61
78
|
this.coreProviderChain.push(provider);
|
|
62
79
|
}
|
|
80
|
+
addRestrictedPlaceholderProvider(provider) {
|
|
81
|
+
this.restrictedPlaceholderProviderChain.push(provider);
|
|
82
|
+
}
|
|
63
83
|
getRootProvider() {
|
|
64
84
|
return this.rootProvider;
|
|
65
85
|
}
|
|
86
|
+
getRestrictedPlaceholderProvider() {
|
|
87
|
+
return this.restrictedPlaceholderProvider;
|
|
88
|
+
}
|
|
66
89
|
switchRootProvider(provider) {
|
|
67
90
|
this.rootProvider = provider;
|
|
68
91
|
}
|
|
@@ -86,9 +109,15 @@ class SealedFilterBarCustomizerState {
|
|
|
86
109
|
switchRootProvider = (_provider) => {
|
|
87
110
|
this.logger.warn(`Attempting to customize FilterBar rendering outside of plugin registration. Ignoring.`);
|
|
88
111
|
};
|
|
112
|
+
addRestrictedPlaceholderProvider = (_provider) => {
|
|
113
|
+
this.logger.warn(`Attempting to customize the restricted filters placeholder outside of plugin registration. Ignoring.`);
|
|
114
|
+
};
|
|
89
115
|
getRootProvider = () => {
|
|
90
116
|
return this.state.getRootProvider();
|
|
91
117
|
};
|
|
118
|
+
getRestrictedPlaceholderProvider = () => {
|
|
119
|
+
return this.state.getRestrictedPlaceholderProvider();
|
|
120
|
+
};
|
|
92
121
|
}
|
|
93
122
|
/**
|
|
94
123
|
* @internal
|
|
@@ -98,10 +127,10 @@ export class DefaultFilterBarCustomizer {
|
|
|
98
127
|
mutationContext;
|
|
99
128
|
state;
|
|
100
129
|
updated = false;
|
|
101
|
-
constructor(logger, mutationContext, defaultProvider = DefaultFilterBarRendererProvider) {
|
|
130
|
+
constructor(logger, mutationContext, defaultProvider = DefaultFilterBarRendererProvider, defaultRestrictedPlaceholderProvider = DefaultRestrictedFiltersPlaceholderProvider) {
|
|
102
131
|
this.logger = logger;
|
|
103
132
|
this.mutationContext = mutationContext;
|
|
104
|
-
this.state = new FilterBarCustomizerState(defaultProvider, logger);
|
|
133
|
+
this.state = new FilterBarCustomizerState(defaultProvider, logger, defaultRestrictedPlaceholderProvider);
|
|
105
134
|
}
|
|
106
135
|
setRenderingMode = (mode) => {
|
|
107
136
|
this.state.setRenderingMode(mode);
|
|
@@ -113,6 +142,16 @@ export class DefaultFilterBarCustomizer {
|
|
|
113
142
|
this.updated = true;
|
|
114
143
|
return this;
|
|
115
144
|
};
|
|
145
|
+
withRestrictedPlaceholderProvider = (provider) => {
|
|
146
|
+
this.state.addRestrictedPlaceholderProvider(provider);
|
|
147
|
+
// deliberately not recorded as a filter bar mutation: that would replace the filter bar
|
|
148
|
+
// component with a wrapper, while this provider only changes what stands in for filters the
|
|
149
|
+
// user cannot see anyway
|
|
150
|
+
return this;
|
|
151
|
+
};
|
|
152
|
+
getRestrictedPlaceholderProvider = () => {
|
|
153
|
+
return this.state.getRestrictedPlaceholderProvider();
|
|
154
|
+
};
|
|
116
155
|
withCustomDecorator(providerFactory) {
|
|
117
156
|
// snapshot current root provider
|
|
118
157
|
const rootSnapshot = this.state.getRootProvider();
|
|
@@ -4,7 +4,7 @@ import type { ICustomDashboardEvent } from "../model/events/base.js";
|
|
|
4
4
|
import type { DashboardEvents } from "../model/events/index.js";
|
|
5
5
|
import type { DashboardDispatch, DashboardState } from "../model/store/types.js";
|
|
6
6
|
import type { ExtendedDashboardWidget, ICustomWidget } from "../model/types/layoutTypes.js";
|
|
7
|
-
import type { AttributeFilterComponentProvider, DashboardContentComponentProvider, FilterBarComponentProvider, InsightComponentProvider, LayoutComponentProvider, LoadingComponentProvider, OptionalAttributeFilterComponentProvider, OptionalDashboardContentComponentProvider, OptionalDateFilterComponentProvider, OptionalFilterBarComponentProvider, OptionalFilterGroupComponentProvider, OptionalInsightBodyComponentProvider, OptionalInsightComponentProvider, OptionalLayoutComponentProvider, OptionalLoadingComponentProvider, OptionalMeasureValueFilterComponentProvider, OptionalRestrictedPlaceholderComponentProvider, OptionalRichTextComponentProvider, OptionalTitleComponentProvider, OptionalTopBarComponentProvider, OptionalVisualizationSwitcherComponentProvider, OptionalVisualizationSwitcherToolbarComponentProvider, RichTextComponentProvider, TitleComponentProvider, TopBarComponentProvider, VisualizationSwitcherComponentProvider, VisualizationSwitcherToolbarComponentProvider } from "../presentation/dashboardContexts/types.js";
|
|
7
|
+
import type { AttributeFilterComponentProvider, DashboardContentComponentProvider, FilterBarComponentProvider, InsightComponentProvider, LayoutComponentProvider, LoadingComponentProvider, OptionalAttributeFilterComponentProvider, OptionalDashboardContentComponentProvider, OptionalDateFilterComponentProvider, OptionalFilterBarComponentProvider, OptionalFilterGroupComponentProvider, OptionalInsightBodyComponentProvider, OptionalInsightComponentProvider, OptionalLayoutComponentProvider, OptionalLoadingComponentProvider, OptionalMeasureValueFilterComponentProvider, OptionalRestrictedFiltersPlaceholderComponentProvider, OptionalRestrictedPlaceholderComponentProvider, OptionalRichTextComponentProvider, OptionalTitleComponentProvider, OptionalTopBarComponentProvider, OptionalVisualizationSwitcherComponentProvider, OptionalVisualizationSwitcherToolbarComponentProvider, RichTextComponentProvider, TitleComponentProvider, TopBarComponentProvider, VisualizationSwitcherComponentProvider, VisualizationSwitcherToolbarComponentProvider } from "../presentation/dashboardContexts/types.js";
|
|
8
8
|
import type { CustomDashboardInsightComponent } from "../presentation/widget/insight/types.js";
|
|
9
9
|
import type { CustomDashboardWidgetComponent } from "../presentation/widget/widget/types.js";
|
|
10
10
|
import { type ILayoutItemPath, type ILayoutSectionPath } from "../types.js";
|
|
@@ -516,6 +516,18 @@ export interface IFilterBarCustomizer {
|
|
|
516
516
|
* @returns self, for call chaining sakes
|
|
517
517
|
*/
|
|
518
518
|
withCustomProvider(provider: OptionalFilterBarComponentProvider): IFilterBarCustomizer;
|
|
519
|
+
/**
|
|
520
|
+
* Register a provider for the component reporting filters the current user is not allowed to see.
|
|
521
|
+
*
|
|
522
|
+
* @remarks
|
|
523
|
+
* The filters are not passed to the provider: only their number reaches the component. Returning
|
|
524
|
+
* undefined keeps the default notice.
|
|
525
|
+
*
|
|
526
|
+
* @param provider - provider of the replacement component
|
|
527
|
+
* @returns self, for call chaining
|
|
528
|
+
* @alpha
|
|
529
|
+
*/
|
|
530
|
+
withRestrictedPlaceholderProvider(provider: OptionalRestrictedFiltersPlaceholderComponentProvider): IFilterBarCustomizer;
|
|
519
531
|
/**
|
|
520
532
|
* Register a factory for top bar decorator providers.
|
|
521
533
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customizer.d.ts","sourceRoot":"","sources":["../../src/plugins/customizer.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC/B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAC7G,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC5F,OAAO,KAAK,EACR,gCAAgC,EAChC,iCAAiC,EACjC,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,wCAAwC,EACxC,yCAAyC,EACzC,mCAAmC,EACnC,kCAAkC,EAClC,oCAAoC,EACpC,oCAAoC,EACpC,gCAAgC,EAChC,+BAA+B,EAC/B,gCAAgC,EAChC,2CAA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IACH,eAAe,CAAC,OAAO,SAAS,eAAe,GAAG,qBAAqB,EACnE,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,uBAAuB,CAAC,OAAO,CAAC,GAC3C,uBAAuB,CAAC;IAE3B;;;;;;;;;;;;;OAaG;IACH,kBAAkB,CAAC,OAAO,SAAS,eAAe,GAAG,qBAAqB,EACtE,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,uBAAuB,CAAC,OAAO,CAAC,GAC3C,uBAAuB,CAAC;IAE3B;;;;;;;;;OASG;IACH,qBAAqB,CAAC,OAAO,EAAE,qBAAqB,GAAG,uBAAuB,CAAC;IAE/E;;;;;;;;;OASG;IACH,wBAAwB,CAAC,OAAO,EAAE,qBAAqB,GAAG,uBAAuB,CAAC;IAElF;;;;;;;;;;;;;;;;;OAiBG;IACH,uBAAuB,CAAC,QAAQ,EAAE,4BAA4B,GAAG,uBAAuB,CAAC;IAEzF;;;;;OAKG;IACH,2BAA2B,CAAC,QAAQ,EAAE,4BAA4B,GAAG,uBAAuB,CAAC;CAChG"}
|
package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts
CHANGED
|
@@ -3,15 +3,15 @@ import { type IDefaultAlertingDialogProps } from "../types.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* Default implementation of the alerting create/edit dialog.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* create/edit flow), and an
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* itself once `useAlertingDialogContext().isLoading`
|
|
14
|
-
* on — so the default component, and any wholesale
|
|
6
|
+
* @remarks
|
|
7
|
+
* This component is a pure consumer of `AutomationsContext`, `AlertingDialogContext`, and the alerting
|
|
8
|
+
* dialog state contexts: it reads org/workspace data, per-dialog state, and the alert draft's state from
|
|
9
|
+
* those contexts rather than from the dashboard store. It must therefore be rendered within an
|
|
10
|
+
* `AutomationsContextProvider`, an `AlertingDialogContextProvider` (for the create/edit flow), and an
|
|
11
|
+
* `AlertingDialogStateProvider`. Inside a `Dashboard`, the alerting connector supplies the first two
|
|
12
|
+
* providers above the `AlertingDialogComponent` slot, and mounts `AlertingDialogStateProvider` around the
|
|
13
|
+
* resolved slot component — its state model establishes itself once `useAlertingDialogContext().isLoading`
|
|
14
|
+
* is false for the first time and stays mounted from then on — so the default component, and any wholesale
|
|
15
15
|
* slot replacement, inherit all three contexts automatically and require no extra wiring.
|
|
16
16
|
*
|
|
17
17
|
* The providers are intentionally hoisted above the slot rather than built inside this component:
|
|
@@ -36,7 +36,7 @@ import { type IDefaultAlertingDialogProps } from "../types.js";
|
|
|
36
36
|
* Slots render only in the fully rendered dialog: not while the dialog context reports loading,
|
|
37
37
|
* and not while the stale-filters confirmation step is shown.
|
|
38
38
|
*
|
|
39
|
-
* @
|
|
39
|
+
* @beta
|
|
40
40
|
*/
|
|
41
41
|
export declare function DefaultAlertingDialog(props: IDefaultAlertingDialogProps): ReactElement;
|
|
42
42
|
//# sourceMappingURL=DefaultAlertingDialog.d.ts.map
|