@gooddata/sdk-ui-dashboard 11.56.0-alpha.7 → 11.56.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/_staging/catalog/computedAttributes.d.ts +43 -0
- package/esm/_staging/catalog/computedAttributes.d.ts.map +1 -0
- package/esm/_staging/catalog/computedAttributes.js +93 -0
- package/esm/_staging/catalog/displayFormMap.d.ts +3 -2
- package/esm/_staging/catalog/displayFormMap.d.ts.map +1 -1
- package/esm/_staging/catalog/displayFormMap.js +9 -3
- package/esm/_staging/metadata/objRefMap.d.ts.map +1 -1
- package/esm/_staging/metadata/objRefMap.js +11 -1
- package/esm/index.d.ts +9 -5
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +7 -3
- package/esm/kdaDialog/composition/hooks/useKdaValidAttributes.js +2 -2
- package/esm/kdaDialog/dialog/hooks/useValidAttributes.d.ts.map +1 -1
- package/esm/kdaDialog/dialog/hooks/useValidAttributes.js +21 -6
- package/esm/kdaDialog/hooks/useAttribute.d.ts.map +1 -1
- package/esm/kdaDialog/hooks/useAttribute.js +16 -8
- package/esm/locales.d.ts +3 -0
- package/esm/locales.d.ts.map +1 -1
- package/esm/locales.js +3 -0
- package/esm/model/commandHandlers/dashboard/common/loadAvailableDisplayFormRefs.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/loadAvailableDisplayFormRefs.js +15 -6
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts +2 -3
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +26 -17
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadCatalog.d.ts +6 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadCatalog.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadCatalog.js +37 -4
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.d.ts +7 -2
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.js +15 -3
- package/esm/model/commandHandlers/filterContext/attributeFilter/validation/filterDisplayFormValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/validation/filterDisplayFormValidation.js +10 -3
- package/esm/model/commandHandlers/filterContext/attributeFilter/validation/uniqueFiltersValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/validation/uniqueFiltersValidation.js +24 -14
- package/esm/model/commandHandlers/scheduledEmail/createScheduledEmailHandler.js +2 -2
- package/esm/model/commandHandlers/scheduledEmail/saveScheduledEmailHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/attributeHierarchyModifiedHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/attributeHierarchyModifiedHandler.js +6 -0
- package/esm/model/commandHandlers/widgets/exportInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/exportInsightWidgetHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.js +2 -2
- package/esm/model/queries/base.d.ts +1 -1
- package/esm/model/queries/base.d.ts.map +1 -1
- package/esm/model/queries/base.js +1 -1
- package/esm/model/queries/computedAttributeExpression.d.ts +27 -0
- package/esm/model/queries/computedAttributeExpression.d.ts.map +1 -0
- package/esm/model/queries/computedAttributeExpression.js +21 -0
- package/esm/model/queries/connectedAttributes.d.ts +19 -1
- package/esm/model/queries/connectedAttributes.d.ts.map +1 -1
- package/esm/model/queries/connectedAttributes.js +3 -1
- package/esm/model/queries/index.d.ts +2 -1
- package/esm/model/queries/index.d.ts.map +1 -1
- package/esm/model/queryServices/index.d.ts +1 -1
- package/esm/model/queryServices/index.d.ts.map +1 -1
- package/esm/model/queryServices/index.js +2 -0
- package/esm/model/queryServices/queryAttributeByDisplayForm.d.ts.map +1 -1
- package/esm/model/queryServices/queryAttributeByDisplayForm.js +12 -3
- package/esm/model/queryServices/queryAttributeDataset.d.ts.map +1 -1
- package/esm/model/queryServices/queryAttributeDataset.js +9 -1
- package/esm/model/queryServices/queryComputedAttributeExpression.d.ts +4 -0
- package/esm/model/queryServices/queryComputedAttributeExpression.d.ts.map +1 -0
- package/esm/model/queryServices/queryComputedAttributeExpression.js +17 -0
- package/esm/model/queryServices/queryConnectedAttributes.d.ts.map +1 -1
- package/esm/model/queryServices/queryConnectedAttributes.js +20 -5
- package/esm/model/queryServices/queryInsightAttributesMeta.d.ts.map +1 -1
- package/esm/model/queryServices/queryInsightAttributesMeta.js +20 -11
- package/esm/model/react/useIsWidgetRestricted.d.ts +9 -0
- package/esm/model/react/useIsWidgetRestricted.d.ts.map +1 -0
- package/esm/model/react/useIsWidgetRestricted.js +14 -0
- package/esm/model/store/catalog/catalogReducers.d.ts +2 -1
- package/esm/model/store/catalog/catalogReducers.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogReducers.js +2 -1
- package/esm/model/store/catalog/catalogSelectors.d.ts +21 -1
- package/esm/model/store/catalog/catalogSelectors.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogSelectors.js +26 -2
- package/esm/model/store/catalog/catalogState.d.ts +8 -1
- package/esm/model/store/catalog/catalogState.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogState.js +1 -0
- package/esm/model/store/config/configSelectors.d.ts +11 -0
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +13 -0
- package/esm/model/store/insights/insightsSelectors.js +3 -3
- package/esm/model/store/tabs/filterContext/filterContextSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextSelectors.js +8 -4
- package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.d.ts +8 -0
- package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.d.ts.map +1 -1
- package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.js +8 -0
- package/esm/model/utils/displayFormResolver.d.ts.map +1 -1
- package/esm/model/utils/displayFormResolver.js +11 -1
- package/esm/plugins/customizationApis/customizationBuilder.d.ts.map +1 -1
- package/esm/plugins/customizationApis/customizationBuilder.js +1 -0
- package/esm/plugins/customizationApis/insightCustomizer.d.ts +4 -2
- package/esm/plugins/customizationApis/insightCustomizer.d.ts.map +1 -1
- package/esm/plugins/customizationApis/insightCustomizer.js +43 -3
- package/esm/plugins/customizer.d.ts +14 -1
- package/esm/plugins/customizer.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +1 -1
- package/esm/presentation/automations/alerting/state/AlertingDialogStateProvider.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/state/AlertingDialogStateProvider.js +23 -58
- package/esm/presentation/automations/alerting/state/useAlertDraftFilterWrites.d.ts +33 -0
- package/esm/presentation/automations/alerting/state/useAlertDraftFilterWrites.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/state/useAlertDraftFilterWrites.js +61 -0
- package/esm/presentation/automations/alerting/state/useAlertFiltersModel.d.ts +3 -17
- package/esm/presentation/automations/alerting/state/useAlertFiltersModel.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/state/useAlertFiltersModel.js +3 -52
- package/esm/presentation/automations/alerting/state/useAlertFormState.js +1 -1
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.js +2 -2
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +1 -1
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.js +2 -5
- package/esm/presentation/automations/scheduledEmail/state/ScheduledEmailDialogStateProvider.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/ScheduledEmailDialogStateProvider.js +22 -40
- package/esm/presentation/automations/scheduledEmail/state/useSaveScheduledEmailToBackend.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useSaveScheduledEmailToBackend.js +14 -3
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDraftFilterWrites.d.ts +27 -0
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDraftFilterWrites.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDraftFilterWrites.js +142 -0
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFiltersModel.d.ts +4 -6
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFiltersModel.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFiltersModel.js +9 -151
- package/esm/presentation/automations/shared/filters/conversions.d.ts +4 -0
- package/esm/presentation/automations/shared/filters/conversions.d.ts.map +1 -1
- package/esm/presentation/automations/shared/filters/conversions.js +28 -24
- package/esm/presentation/automations/shared/hooks/useShallowStable.d.ts +10 -0
- package/esm/presentation/automations/shared/hooks/useShallowStable.d.ts.map +1 -0
- package/esm/presentation/automations/shared/hooks/useShallowStable.js +18 -0
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js +17 -4
- package/esm/presentation/dashboard/DashboardSidebar/SidebarCollapseToggle.d.ts +10 -0
- package/esm/presentation/dashboard/DashboardSidebar/SidebarCollapseToggle.d.ts.map +1 -0
- package/esm/presentation/dashboard/DashboardSidebar/SidebarCollapseToggle.js +19 -0
- package/esm/presentation/dashboard/DashboardSidebar/SidebarConfigurationPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/SidebarConfigurationPanel.js +8 -2
- package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeChrome.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeChrome.js +4 -2
- package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeContext.d.ts +8 -3
- package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeContext.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeContext.js +65 -25
- package/esm/presentation/dashboard/components/DashboardInner.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardInner.js +4 -4
- package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.js +2 -2
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts +2 -1
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts.map +1 -1
- package/esm/presentation/dashboard/hooks/useDashboard.js +7 -1
- package/esm/presentation/dashboard/types.d.ts +14 -1
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +2 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.js +1 -0
- package/esm/presentation/dashboardContexts/types.d.ts +20 -0
- package/esm/presentation/dashboardContexts/types.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableAttributeFilter/DefaultAttributeFilterDraggingComponent.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableAttributeFilter/DefaultAttributeFilterDraggingComponent.js +4 -3
- package/esm/presentation/export/useExportData.js +2 -2
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltip.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltip.js +8 -2
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltipContent.d.ts +12 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltipContent.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltipContent.js +19 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/displayForms/AttributeDisplayFormsDropdown.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/displayForms/AttributeDisplayFormsDropdown.js +3 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useComputedAttributeExpression.d.ts +14 -0
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useComputedAttributeExpression.d.ts.map +1 -0
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useComputedAttributeExpression.js +28 -0
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDisplayFormConfiguration.js +2 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useValidNeighbourAttributes.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useValidNeighbourAttributes.js +12 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/shared/limitingItemsHook.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/shared/limitingItemsHook.js +6 -5
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/parentFilters/ParentFiltersDisabledItem.js +2 -2
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarItem.js +2 -2
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.js +2 -2
- package/esm/presentation/filterBar/measureValueFilter/useDashboardMeasureValueFilterData.d.ts.map +1 -1
- package/esm/presentation/filterBar/measureValueFilter/useDashboardMeasureValueFilterData.js +55 -17
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +6 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +40 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +40 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-419.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +5 -0
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +5 -0
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +5 -0
- package/esm/presentation/widget/common/RestrictedPlaceholder.d.ts +54 -0
- package/esm/presentation/widget/common/RestrictedPlaceholder.d.ts.map +1 -0
- package/esm/presentation/widget/common/RestrictedPlaceholder.js +49 -0
- package/esm/presentation/widget/common/configuration/DateDatasetFilter.d.ts +6 -1
- package/esm/presentation/widget/common/configuration/DateDatasetFilter.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/DateDatasetFilter.js +2 -2
- package/esm/presentation/widget/common/configuration/DateFilterCheckbox.d.ts +6 -1
- package/esm/presentation/widget/common/configuration/DateFilterCheckbox.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/DateFilterCheckbox.js +10 -3
- package/esm/presentation/widget/insight/DefaultInsightBody/DefaultInsightBody.js +2 -2
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightDateDataSetFilter.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDateDataSetFilter.js +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigList.d.ts +6 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigList.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigList.js +13 -2
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/InsightDrillConfigPanel.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/InsightDrillConfigPanel.js +5 -1
- package/esm/presentation/widget/insight/configuration/useDrillTargetTypeItems.d.ts +1 -1
- package/esm/presentation/widget/insight/configuration/useDrillTargetTypeItems.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/useDrillTargetTypeItems.js +2 -2
- package/esm/presentation/widget/richText/configuration/RichTextDateDataSetFilter.d.ts.map +1 -1
- package/esm/presentation/widget/richText/configuration/RichTextDateDataSetFilter.js +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +8 -0
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcherRestricted.d.ts +16 -0
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcherRestricted.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcherRestricted.js +19 -0
- package/esm/presentation/widget/widget/InsightWidget/DashboardWidgetInsightGuard.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DashboardWidgetInsightGuard.js +11 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +2 -2
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.js +25 -12
- package/esm/sdk-ui-dashboard.d.ts +201 -3
- package/package.json +21 -21
- package/styles/css/configurationPanel.css +1 -5
- package/styles/css/configurationPanel.css.map +1 -1
- package/styles/css/filterBar.css +29 -0
- package/styles/css/filterBar.css.map +1 -1
- package/styles/css/main.css +203 -5
- package/styles/css/main.css.map +1 -1
- package/styles/css/sidebar.css +165 -0
- package/styles/css/sidebar.css.map +1 -1
- package/styles/css/visualizationSwitcherWidget.css +8 -0
- package/styles/css/visualizationSwitcherWidget.css.map +1 -1
- package/styles/scss/configurationPanel.scss +1 -7
- package/styles/scss/filterBar.scss +38 -0
- package/styles/scss/sidebar.scss +215 -0
- package/styles/scss/visualizationSwitcherWidget.scss +9 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IAttributeDisplayFormMetadataObject, type ICatalogAttribute, type ICatalogAttributeHierarchy, type ICatalogDateAttribute, type ICatalogDateAttributeHierarchy, type ICatalogDateDataset, type ICatalogFact, type ICatalogMeasure, type IDateHierarchyTemplate, type IParameterMetadataObject, type IdentifierRef, type ObjRef } from "@gooddata/sdk-model";
|
|
1
|
+
import { type IAttributeDisplayFormMetadataObject, type ICatalogAttribute, type ICatalogAttributeHierarchy, type ICatalogComputedAttribute, type ICatalogDateAttribute, type ICatalogDateAttributeHierarchy, type ICatalogDateDataset, type ICatalogFact, type ICatalogMeasure, type IDateHierarchyTemplate, type IParameterMetadataObject, type IdentifierRef, type ObjRef } from "@gooddata/sdk-model";
|
|
2
2
|
import { type CatalogDateAttributeWithDataset } from "../../../_staging/catalog/dateAttributeWithDatasetMap.js";
|
|
3
3
|
import { type ObjRefMap } from "../../../_staging/metadata/objRefMap.js";
|
|
4
4
|
import { type DashboardSelector } from "../types.js";
|
|
@@ -7,6 +7,26 @@ import { type CatalogMeasureParametersStatus, type CatalogParametersStatus } fro
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export declare const selectCatalogAttributes: DashboardSelector<ICatalogAttribute[]>;
|
|
10
|
+
/**
|
|
11
|
+
* Returns the computed attributes loaded into the dashboard catalog. Computed attributes are
|
|
12
|
+
* loaded only when the `enableComputedAttributes` setting is on; otherwise this is empty.
|
|
13
|
+
*
|
|
14
|
+
* @beta
|
|
15
|
+
*/
|
|
16
|
+
export declare const selectCatalogComputedAttributes: DashboardSelector<ICatalogComputedAttribute[]>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns catalog attributes together with computed attributes adapted to the catalog attribute
|
|
19
|
+
* shape. The adapted items keep their honest `computedAttribute`-typed refs; use
|
|
20
|
+
* {@link @gooddata/sdk-model#isComputedAttributeRef} on the attribute or display form ref to tell
|
|
21
|
+
* them apart. This is the list to offer wherever an attribute can be picked (e.g. for filtering).
|
|
22
|
+
*
|
|
23
|
+
* The merged list is sorted alphabetically by title: the catalog holds attributes and computed
|
|
24
|
+
* attributes as separate lists, each sorted on its own, and a plain concatenation would strand
|
|
25
|
+
* every computed attribute at the tail of a picker instead of filing it in among the attributes.
|
|
26
|
+
*
|
|
27
|
+
* @beta
|
|
28
|
+
*/
|
|
29
|
+
export declare const selectCatalogAttributesWithComputed: DashboardSelector<ICatalogAttribute[]>;
|
|
10
30
|
/**
|
|
11
31
|
* Returns the workspace parameters loaded into the dashboard catalog.
|
|
12
32
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalogSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/catalog/catalogSelectors.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,MAAM,EAMd,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"catalogSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/catalog/catalogSelectors.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,MAAM,EAMd,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACH,KAAK,+BAA+B,EAEvC,MAAM,0DAA0D,CAAC;AAElE,OAAO,EACH,KAAK,SAAS,EAIjB,MAAM,yCAAyC,CAAC;AAOjD,OAAO,EAAE,KAAK,iBAAiB,EAAuB,MAAM,aAAa,CAAC;AAE1E,OAAO,EAAE,KAAK,8BAA8B,EAAE,KAAK,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AA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M,CAAC,MAAM,EAAE,mBAAmB,EAAE,CAAC,CAAC;AAEtF;;GAEG;AACH,eAAO,MAAM,wCAAwC,EAAE,iBAAiB,CAAC,iCAAiC,CAMrG,CAAC;AAEN;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,iBAAiB,CAAC,iBAAiB,EAAE,CAKtF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,EAAE,iBAAiB,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAGxF,CAAC;AAEP;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,EAAE,iBAAiB,CAC3D,SAAS,CAAC,mCAAmC,CAAC,CAMjD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B,EAAE,iBAAiB,CACzD,SAAS,CAAC,iBAAiB,GAAG,qBAAqB,CAAC,CAWvD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe,CAAC,CAKrF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mCAAmC,EAAE,iBAAiB,CAC/D,SAAS,CAAC,+BAA+B,CAAC,CAe5C,CAAC"}
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
import { createSelector } from "@reduxjs/toolkit";
|
|
3
3
|
import { isEmpty, negate } from "lodash-es";
|
|
4
4
|
import { areObjRefsEqual, getHierarchyAttributes, getHierarchyRef, idRef, objRefToString, } from "@gooddata/sdk-model";
|
|
5
|
+
import { mergeAttributesWithComputed } from "../../../_staging/catalog/computedAttributes.js";
|
|
5
6
|
import { newCatalogDateAttributeWithDatasetMap, } from "../../../_staging/catalog/dateAttributeWithDatasetMap.js";
|
|
6
7
|
import { createDisplayFormMap } from "../../../_staging/catalog/displayFormMap.js";
|
|
7
8
|
import { newCatalogAttributeMap, newCatalogDateDatasetMap, newCatalogMeasureMap, } from "../../../_staging/metadata/objRefMap.js";
|
|
8
9
|
import { createMemoizedSelector } from "../_infra/selectors.js";
|
|
9
10
|
import { selectBackendCapabilities, selectSupportsAttributeHierarchies, } from "../backendCapabilities/backendCapabilitiesSelectors.js";
|
|
11
|
+
import { selectLocale } from "../config/configSelectors.js";
|
|
10
12
|
const selectSelf = createSelector((state) => state, (state) => state.catalog);
|
|
11
13
|
/**
|
|
12
14
|
* @public
|
|
@@ -14,6 +16,28 @@ const selectSelf = createSelector((state) => state, (state) => state.catalog);
|
|
|
14
16
|
export const selectCatalogAttributes = createSelector(selectSelf, (state) => {
|
|
15
17
|
return state.attributes ?? [];
|
|
16
18
|
});
|
|
19
|
+
/**
|
|
20
|
+
* Returns the computed attributes loaded into the dashboard catalog. Computed attributes are
|
|
21
|
+
* loaded only when the `enableComputedAttributes` setting is on; otherwise this is empty.
|
|
22
|
+
*
|
|
23
|
+
* @beta
|
|
24
|
+
*/
|
|
25
|
+
export const selectCatalogComputedAttributes = createSelector(selectSelf, (state) => {
|
|
26
|
+
return state.computedAttributes ?? [];
|
|
27
|
+
});
|
|
28
|
+
/**
|
|
29
|
+
* Returns catalog attributes together with computed attributes adapted to the catalog attribute
|
|
30
|
+
* shape. The adapted items keep their honest `computedAttribute`-typed refs; use
|
|
31
|
+
* {@link @gooddata/sdk-model#isComputedAttributeRef} on the attribute or display form ref to tell
|
|
32
|
+
* them apart. This is the list to offer wherever an attribute can be picked (e.g. for filtering).
|
|
33
|
+
*
|
|
34
|
+
* The merged list is sorted alphabetically by title: the catalog holds attributes and computed
|
|
35
|
+
* attributes as separate lists, each sorted on its own, and a plain concatenation would strand
|
|
36
|
+
* every computed attribute at the tail of a picker instead of filing it in among the attributes.
|
|
37
|
+
*
|
|
38
|
+
* @beta
|
|
39
|
+
*/
|
|
40
|
+
export const selectCatalogAttributesWithComputed = createSelector([selectCatalogAttributes, selectCatalogComputedAttributes, selectLocale], (attributes, computedAttributes, locale) => mergeAttributesWithComputed(attributes, computedAttributes, locale));
|
|
17
41
|
/**
|
|
18
42
|
* Returns the workspace parameters loaded into the dashboard catalog.
|
|
19
43
|
*
|
|
@@ -181,7 +205,7 @@ export const selectAllCatalogDateDatasetsMap = createSelector([selectCatalogDate
|
|
|
181
205
|
*
|
|
182
206
|
* @alpha
|
|
183
207
|
*/
|
|
184
|
-
export const selectAllCatalogDisplayFormsMap = createSelector([
|
|
208
|
+
export const selectAllCatalogDisplayFormsMap = createSelector([selectCatalogAttributesWithComputed, selectCatalogDateDatasets, selectBackendCapabilities], (attributes, dateDatasets, capabilities) => {
|
|
185
209
|
return createDisplayFormMap(attributes, dateDatasets, capabilities.hasTypeScopedIdentifiers);
|
|
186
210
|
});
|
|
187
211
|
/**
|
|
@@ -191,7 +215,7 @@ export const selectAllCatalogDisplayFormsMap = createSelector([selectCatalogAttr
|
|
|
191
215
|
* @remarks see `isCatalogAttribute` guard; this can be used to determine type of attribute
|
|
192
216
|
* @alpha
|
|
193
217
|
*/
|
|
194
|
-
export const selectAllCatalogAttributesMap = createSelector([
|
|
218
|
+
export const selectAllCatalogAttributesMap = createSelector([selectCatalogAttributesWithComputed, selectCatalogDateDatasets, selectBackendCapabilities], (attributes, dateDatasets, capabilities) => {
|
|
195
219
|
const dateAttributes = dateDatasets.flatMap((d) => d.dateAttributes);
|
|
196
220
|
return newCatalogAttributeMap([...attributes, ...dateAttributes], capabilities.hasTypeScopedIdentifiers);
|
|
197
221
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ICatalogAttribute, type ICatalogAttributeHierarchy, type ICatalogDateDataset, type ICatalogFact, type ICatalogMeasure, type IDateHierarchyTemplate, type IParameterMetadataObject, type IdentifierRef } from "@gooddata/sdk-model";
|
|
1
|
+
import { type ICatalogAttribute, type ICatalogAttributeHierarchy, type ICatalogComputedAttribute, type ICatalogDateDataset, type ICatalogFact, type ICatalogMeasure, type IDateHierarchyTemplate, type IParameterMetadataObject, type IdentifierRef } from "@gooddata/sdk-model";
|
|
2
2
|
/**
|
|
3
3
|
* Status of catalog parameters loading.
|
|
4
4
|
*
|
|
@@ -45,6 +45,13 @@ export type CatalogState = {
|
|
|
45
45
|
facts?: ICatalogFact[];
|
|
46
46
|
/** @beta */
|
|
47
47
|
attributeHierarchies?: ICatalogAttributeHierarchy[];
|
|
48
|
+
/**
|
|
49
|
+
* Computed attributes of the workspace; loaded only when the `enableComputedAttributes`
|
|
50
|
+
* setting is on, empty otherwise.
|
|
51
|
+
*
|
|
52
|
+
* @beta
|
|
53
|
+
*/
|
|
54
|
+
computedAttributes?: ICatalogComputedAttribute[];
|
|
48
55
|
/** @beta */
|
|
49
56
|
dateHierarchyTemplates?: IDateHierarchyTemplate[];
|
|
50
57
|
/** @alpha */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalogState.d.ts","sourceRoot":"","sources":["../../../../src/model/store/catalog/catalogState.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EACrB,MAAM,qBAAqB,CAAC;AAE7B;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEtG;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC,MAAM,EAAE,uBAAuB,CAAC;IAChC,UAAU,EAAE,wBAAwB,EAAE,CAAC;CAC1C;AAED;;;;GAIG;AACH,MAAM,MAAM,8BAA8B,GAAG,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE/F;;;;;;GAMG;AACH,MAAM,WAAW,8BAA8B;IAC3C,MAAM,EAAE,8BAA8B,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACv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,aAAa,EAAE,CAAC,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACvB,YAAY;IACZ,UAAU,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACjC,YAAY;IACZ,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B,YAAY;IACZ,YAAY,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACrC,YAAY;IACZ,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IACvB,YAAY;IACZ,oBAAoB,CAAC,EAAE,0BAA0B,EAAE,CAAC;IACpD;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,yBAAyB,EAAE,CAAC;IACjD,YAAY;IACZ,sBAAsB,CAAC,EAAE,sBAAsB,EAAE,CAAC;IAClD,aAAa;IACb,UAAU,EAAE,uBAAuB,CAAC;IACpC,aAAa;IACb,iBAAiB,EAAE,8BAA8B,CAAC;CACrD,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAUjC,CAAC"}
|
|
@@ -5,6 +5,7 @@ export const catalogInitialState = {
|
|
|
5
5
|
dateDatasets: undefined,
|
|
6
6
|
facts: undefined,
|
|
7
7
|
attributeHierarchies: undefined,
|
|
8
|
+
computedAttributes: undefined,
|
|
8
9
|
dateHierarchyTemplates: undefined,
|
|
9
10
|
parameters: { status: "uninitialized", parameters: [] },
|
|
10
11
|
measureParameters: { status: "uninitialized", byMetric: {} },
|
|
@@ -263,6 +263,17 @@ export declare const selectEnableKda: DashboardSelector<boolean>;
|
|
|
263
263
|
* @internal
|
|
264
264
|
*/
|
|
265
265
|
export declare const selectEnableImmediateAttributeFilterDisplayAsLabelMigration: DashboardSelector<boolean>;
|
|
266
|
+
/**
|
|
267
|
+
* Returns whether computed attributes are enabled. When on, computed attributes are loaded into
|
|
268
|
+
* the dashboard catalog and offered wherever an attribute can be picked (e.g. attribute filters).
|
|
269
|
+
*
|
|
270
|
+
* Unlike most config selectors this one tolerates an uninitialized config and answers false: it
|
|
271
|
+
* is read by the KDA dialog, which can render (e.g. from the chatbot) while its dashboard store
|
|
272
|
+
* is still initializing.
|
|
273
|
+
*
|
|
274
|
+
* @alpha
|
|
275
|
+
*/
|
|
276
|
+
export declare const selectEnableComputedAttributes: DashboardSelector<boolean>;
|
|
266
277
|
/**
|
|
267
278
|
* Returns whether measure value (numeric) filter is enabled in dashboards.
|
|
268
279
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/config/configSelectors.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,SAAS,EAEjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,KAAK,qCAAqC,EAAE,MAAM,0BAA0B,CAAC;AAEtF,OAAO,EACH,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,iBAAiB,EAAuB,MAAM,aAAa,CAAC;AAO1E;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,uBAAuB,CAOnE,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,EAAE,iBAAiB,CAAC,iBAAiB,CAKvE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,iBAAiB,CAAC,SAAS,CAEtD,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,OAAO,CAElD,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,iBAAiB,CAAC,MAAM,GAAG,SAAS,C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EF;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,EAAE,iBAAiB,CAAC,MAAM,GAAG,SAAS,CAQlF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,EAAE,iBAAiB,CAAC,OAAO,CAKtE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,EAAE,iBAAiB,CAAC,OAAO,CAKlE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,EAAE,iBAAiB,CAAC,OAAO,CAKtE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,EAAE,iBAAiB,CAAC,gBAAgB,GAAG,SAAS,CAkBjF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,EAAE,iBAAiB,CAAC,OAAO,CAKxE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wCAAwC,EAAE,iBAAiB,CAAC,OAAO,CAK/E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mCAAmC,EAAE,iBAAiB,CAAC,OAAO,CAK1E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,iBAAiB,CAAC,OAAO,CAKjE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gDAAgD,EAAE,iBAAiB,CAAC,OAAO,CAKvF,CAAC"}
|
|
@@ -340,6 +340,19 @@ export const selectEnableKda = createSelector(selectConfig, (state) => {
|
|
|
340
340
|
export const selectEnableImmediateAttributeFilterDisplayAsLabelMigration = createSelector(selectConfig, (state) => {
|
|
341
341
|
return state.settings?.enableImmediateAttributeFilterDisplayAsLabelMigration ?? false;
|
|
342
342
|
});
|
|
343
|
+
/**
|
|
344
|
+
* Returns whether computed attributes are enabled. When on, computed attributes are loaded into
|
|
345
|
+
* the dashboard catalog and offered wherever an attribute can be picked (e.g. attribute filters).
|
|
346
|
+
*
|
|
347
|
+
* Unlike most config selectors this one tolerates an uninitialized config and answers false: it
|
|
348
|
+
* is read by the KDA dialog, which can render (e.g. from the chatbot) while its dashboard store
|
|
349
|
+
* is still initializing.
|
|
350
|
+
*
|
|
351
|
+
* @alpha
|
|
352
|
+
*/
|
|
353
|
+
export const selectEnableComputedAttributes = createSelector(selectSelf, (configState) => {
|
|
354
|
+
return configState.config?.settings?.enableComputedAttributes ?? false;
|
|
355
|
+
});
|
|
343
356
|
/**
|
|
344
357
|
* Returns whether measure value (numeric) filter is enabled in dashboards.
|
|
345
358
|
*
|
|
@@ -4,7 +4,7 @@ import { areObjRefsEqual, attributeAlias, attributeDisplayFormRef, attributeLoca
|
|
|
4
4
|
import { newInsightMap } from "../../../_staging/metadata/objRefMap.js";
|
|
5
5
|
import { createMemoizedSelector } from "../_infra/selectors.js";
|
|
6
6
|
import { selectBackendCapabilities } from "../backendCapabilities/backendCapabilitiesSelectors.js";
|
|
7
|
-
import { selectCatalogAttributeDisplayForms,
|
|
7
|
+
import { selectCatalogAttributeDisplayForms, selectCatalogAttributesWithComputed, selectCatalogDateDatasets, selectCatalogMeasures, } from "../catalog/catalogSelectors.js";
|
|
8
8
|
import { selectLocale } from "../config/configSelectors.js";
|
|
9
9
|
import { selectWidgetByRef } from "../tabs/layout/layoutSelectors.js";
|
|
10
10
|
import { insightsAdapter } from "./insightsEntityAdapter.js";
|
|
@@ -178,7 +178,7 @@ function resolveDisplayFormTitle(catalogDisplayFormTitle, catalogDisplayFormType
|
|
|
178
178
|
* @alpha
|
|
179
179
|
*/
|
|
180
180
|
const selectRawExportDisplayFormOverridesForInsight = createMemoizedSelector((insight) => {
|
|
181
|
-
return createSelector(selectCatalogAttributeDisplayForms, selectCatalogDateDatasets,
|
|
181
|
+
return createSelector(selectCatalogAttributeDisplayForms, selectCatalogDateDatasets, selectCatalogAttributesWithComputed, (catalogAttributeDisplayForms, catalogDateDatasets, catalogAttributes) => {
|
|
182
182
|
if (!insight) {
|
|
183
183
|
return undefined;
|
|
184
184
|
}
|
|
@@ -228,7 +228,7 @@ const selectRawExportDisplayFormOverridesForInsight = createMemoizedSelector((in
|
|
|
228
228
|
* @alpha
|
|
229
229
|
*/
|
|
230
230
|
const selectRawExportDisplayFormOverridesForInsightByRef = createMemoizedSelector((ref) => {
|
|
231
|
-
return createSelector(selectInsightByRef(ref), selectCatalogAttributeDisplayForms, selectCatalogDateDatasets,
|
|
231
|
+
return createSelector(selectInsightByRef(ref), selectCatalogAttributeDisplayForms, selectCatalogDateDatasets, selectCatalogAttributesWithComputed, (insight, catalogAttributeDisplayForms, catalogDateDatasets, catalogAttributes) => {
|
|
232
232
|
if (!insight) {
|
|
233
233
|
return undefined;
|
|
234
234
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterContextSelectors.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/filterContext/filterContextSelectors.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,MAAM,EAkBd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,4CAA4C,CAAC;AAK/F,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAI7E,OAAO,EAAE,KAAK,kBAAkB,EAA6B,MAAM,yBAAyB,CAAC;AAa7F;;;;GAIG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUzC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAW/C,CAAC;AAE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K,MAe/B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,+CAA+C,EAAE,CAC1D,WAAW,EAAE,MAAM,KAClB,CAAC,KAAK,EAAE,cAAc,KAAK,yBAAyB,GAAG,
|
|
1
|
+
{"version":3,"file":"filterContextSelectors.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/filterContext/filterContextSelectors.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,MAAM,EAkBd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,4CAA4C,CAAC;AAK/F,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAI7E,OAAO,EAAE,KAAK,kBAAkB,EAA6B,MAAM,yBAAyB,CAAC;AAa7F;;;;GAIG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUzC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAW/C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ7B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;C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,iBAAiB,CAAC,iBAAiB,EAAE,GAAG,SAAS,CACrB,CAAC"}
|
|
@@ -513,7 +513,8 @@ export const selectFilterContextAttributeFilterByDisplayForm = createMemoizedSel
|
|
|
513
513
|
return undefined;
|
|
514
514
|
}
|
|
515
515
|
// try matching both uri and id in case the type of ref is different from what is in the ref field
|
|
516
|
-
return attributeFilters.find((filter) => areObjRefsEqual(filter.attributeFilter.displayForm,
|
|
516
|
+
return attributeFilters.find((filter) => areObjRefsEqual(filter.attributeFilter.displayForm, df.ref) ||
|
|
517
|
+
areObjRefsEqual(filter.attributeFilter.displayForm, idRef(df.id, "displayForm")) ||
|
|
517
518
|
areObjRefsEqual(filter.attributeFilter.displayForm, uriRef(df.uri)));
|
|
518
519
|
}));
|
|
519
520
|
/**
|
|
@@ -532,7 +533,8 @@ export const selectFilterContextAttributeFilterItemByDisplayForm = createMemoize
|
|
|
532
533
|
}
|
|
533
534
|
return attributeFilters.find((filter) => {
|
|
534
535
|
const filterDf = dashboardAttributeFilterItemDisplayForm(filter);
|
|
535
|
-
return (areObjRefsEqual(filterDf,
|
|
536
|
+
return (areObjRefsEqual(filterDf, df.ref) ||
|
|
537
|
+
areObjRefsEqual(filterDf, idRef(df.id, "displayForm")) ||
|
|
536
538
|
areObjRefsEqual(filterDf, uriRef(df.uri)));
|
|
537
539
|
});
|
|
538
540
|
}));
|
|
@@ -600,7 +602,8 @@ export const selectFilterContextAttributeFilterByDisplayFormForTab = createMemoi
|
|
|
600
602
|
return undefined;
|
|
601
603
|
}
|
|
602
604
|
// try matching both uri and id in case the type of ref is different from what is in the ref field
|
|
603
|
-
return attributeFilters.find((filter) => areObjRefsEqual(filter.attributeFilter.displayForm,
|
|
605
|
+
return attributeFilters.find((filter) => areObjRefsEqual(filter.attributeFilter.displayForm, df.ref) ||
|
|
606
|
+
areObjRefsEqual(filter.attributeFilter.displayForm, idRef(df.id, "displayForm")) ||
|
|
604
607
|
areObjRefsEqual(filter.attributeFilter.displayForm, uriRef(df.uri)));
|
|
605
608
|
}));
|
|
606
609
|
/**
|
|
@@ -620,7 +623,8 @@ export const selectFilterContextAttributeFilterItemByDisplayFormForTab = createM
|
|
|
620
623
|
}
|
|
621
624
|
return attributeFilters.find((filter) => {
|
|
622
625
|
const filterDf = dashboardAttributeFilterItemDisplayForm(filter);
|
|
623
|
-
return (areObjRefsEqual(filterDf,
|
|
626
|
+
return (areObjRefsEqual(filterDf, df.ref) ||
|
|
627
|
+
areObjRefsEqual(filterDf, idRef(df.id, "displayForm")) ||
|
|
624
628
|
areObjRefsEqual(filterDf, uriRef(df.uri)));
|
|
625
629
|
});
|
|
626
630
|
}));
|
|
@@ -15,4 +15,12 @@ export declare const selectUnavailableObjects: DashboardSelector<IUnavailableDas
|
|
|
15
15
|
* @alpha
|
|
16
16
|
*/
|
|
17
17
|
export declare const selectUnavailableObjectsMapByType: (type: ObjectType) => DashboardSelector<ObjRefMap<IUnavailableDashboardReference>>;
|
|
18
|
+
/**
|
|
19
|
+
* Selects the insights the current user is not allowed to see, in a mapping of obj ref to the
|
|
20
|
+
* unavailability entry. Insights that are merely deleted are not included — those keep rendering the
|
|
21
|
+
* missing-visualization tile instead of the restricted placeholder.
|
|
22
|
+
*
|
|
23
|
+
* @alpha
|
|
24
|
+
*/
|
|
25
|
+
export declare const selectRestrictedInsightsMap: DashboardSelector<ObjRefMap<IUnavailableDashboardReference>>;
|
|
18
26
|
//# 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;AAEtD,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"}
|
|
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;AAEtD,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"}
|
|
@@ -18,3 +18,11 @@ export const selectUnavailableObjects = adapterSelectors.selectAll;
|
|
|
18
18
|
* @alpha
|
|
19
19
|
*/
|
|
20
20
|
export const selectUnavailableObjectsMapByType = createMemoizedSelector((type) => createSelector(selectUnavailableObjects, (objects) => newMapForObjectWithRef(objects.filter((object) => object.type === type), type)));
|
|
21
|
+
/**
|
|
22
|
+
* Selects the insights the current user is not allowed to see, in a mapping of obj ref to the
|
|
23
|
+
* unavailability entry. Insights that are merely deleted are not included — those keep rendering the
|
|
24
|
+
* missing-visualization tile instead of the restricted placeholder.
|
|
25
|
+
*
|
|
26
|
+
* @alpha
|
|
27
|
+
*/
|
|
28
|
+
export const selectRestrictedInsightsMap = createSelector(selectUnavailableObjects, (objects) => newMapForObjectWithRef(objects.filter((object) => object.type === "insight" && object.reason === "forbidden"), "insight"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"displayFormResolver.d.ts","sourceRoot":"","sources":["../../../src/model/utils/displayFormResolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,KAAK,mCAAmC,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"displayFormResolver.d.ts","sourceRoot":"","sources":["../../../src/model/utils/displayFormResolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,KAAK,mCAAmC,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAM5F,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,sCAAsC,CAAC;AAEzF,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAyBhE,MAAM,MAAM,2BAA2B,GAAG;IACtC,QAAQ,EAAE,SAAS,CAAC,mCAAmC,CAAC,CAAC;IACzD,OAAO,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAiB,0BAA0B,CACvC,GAAG,EAAE,gBAAgB,EACrB,IAAI,EAAE,MAAM,EAAE,EACd,YAAY,CAAC,EAAE,SAAS,CAAC,mCAAmC,CAAC,GAC9D,YAAY,CAAC,2BAA2B,CAAC,CAuC3C"}
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
import { call, select } from "redux-saga/effects";
|
|
2
|
+
import { loadComputedAttributesByRefs, partitionComputedAttributeRefs, } from "../../_staging/catalog/computedAttributes.js";
|
|
2
3
|
import { newDisplayFormMap } from "../../_staging/metadata/objRefMap.js";
|
|
3
4
|
import { selectAllCatalogDisplayFormsMap } from "../store/catalog/catalogSelectors.js";
|
|
4
5
|
async function loadDisplayFormsMetadata(ctx, refs) {
|
|
5
6
|
if (!refs.length) {
|
|
6
7
|
return [];
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
+
// a computed-attribute-typed display form ref never matches a label; it must resolve through
|
|
10
|
+
// the computedAttributes service, which carries the fabricated display form in its metadata
|
|
11
|
+
const { computedAttributeRefs, otherRefs } = partitionComputedAttributeRefs(refs);
|
|
12
|
+
const [computedAttributes, displayForms] = await Promise.all([
|
|
13
|
+
loadComputedAttributesByRefs(ctx.backend, ctx.workspace, computedAttributeRefs),
|
|
14
|
+
otherRefs.length
|
|
15
|
+
? ctx.backend.workspace(ctx.workspace).attributes().getAttributeDisplayForms(otherRefs)
|
|
16
|
+
: Promise.resolve([]),
|
|
17
|
+
]);
|
|
18
|
+
return [...displayForms, ...computedAttributes.flatMap((ca) => ca.displayForms)];
|
|
9
19
|
}
|
|
10
20
|
/**
|
|
11
21
|
* Given a set of display form refs (which may be of any type.. uri or id), this function returns a list of
|
|
@@ -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,mBA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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,
|
|
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,CAsDzC;IAEF,OAAO,CAAC,mBAAmB;CAoC9B"}
|
|
@@ -101,6 +101,7 @@ export class DashboardCustomizationBuilder {
|
|
|
101
101
|
const props = {
|
|
102
102
|
InsightComponentProvider: this.insightCustomizer.getInsightProvider(),
|
|
103
103
|
InsightBodyComponentProvider: this.insightCustomizer.getInsightBodyComponentProvider(),
|
|
104
|
+
RestrictedPlaceholderComponentProvider: this.insightCustomizer.getRestrictedPlaceholderProvider(),
|
|
104
105
|
DashboardContentComponentProvider: this.dashboardContentCustomizer.getDashboardContentProvider(),
|
|
105
106
|
WidgetComponentProvider: this.widgetCustomizer.getWidgetComponentProvider(),
|
|
106
107
|
DashboardAttributeFilterComponentProvider: this.filtersCustomizer
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type InsightBodyComponentProvider, type InsightComponentProvider, type OptionalInsightBodyComponentProvider, type OptionalInsightComponentProvider } from "../../presentation/dashboardContexts/types.js";
|
|
1
|
+
import { type InsightBodyComponentProvider, type InsightComponentProvider, type OptionalInsightBodyComponentProvider, type OptionalInsightComponentProvider, type OptionalRestrictedPlaceholderComponentProvider, type RestrictedPlaceholderComponentProvider } from "../../presentation/dashboardContexts/types.js";
|
|
2
2
|
import { type CustomDashboardInsightComponent } from "../../presentation/widget/insight/types.js";
|
|
3
3
|
import { type IDashboardInsightCustomizer } from "../customizer.js";
|
|
4
4
|
import { type IDashboardCustomizationLogger } from "./customizationLogging.js";
|
|
@@ -18,13 +18,15 @@ export declare class DefaultInsightCustomizer implements IDashboardInsightCustom
|
|
|
18
18
|
private readonly logger;
|
|
19
19
|
private readonly mutationContext;
|
|
20
20
|
private state;
|
|
21
|
-
constructor(logger: IDashboardCustomizationLogger, mutationContext: CustomizerMutationsContext, defaultCoreProvider?: InsightComponentProvider, defaultInsightBodyProvider?: InsightBodyComponentProvider);
|
|
21
|
+
constructor(logger: IDashboardCustomizationLogger, mutationContext: CustomizerMutationsContext, defaultCoreProvider?: InsightComponentProvider, defaultInsightBodyProvider?: InsightBodyComponentProvider, defaultRestrictedPlaceholderProvider?: RestrictedPlaceholderComponentProvider);
|
|
22
22
|
withTag: (tag: string, component: CustomDashboardInsightComponent) => this;
|
|
23
23
|
withCustomProvider: (provider: OptionalInsightComponentProvider) => this;
|
|
24
24
|
withCustomInsightBodyProvider(provider: OptionalInsightBodyComponentProvider): this;
|
|
25
|
+
withRestrictedPlaceholderProvider(provider: OptionalRestrictedPlaceholderComponentProvider): this;
|
|
25
26
|
withCustomDecorator: (providerFactory: (next: InsightComponentProvider) => OptionalInsightComponentProvider) => this;
|
|
26
27
|
getInsightProvider: () => InsightComponentProvider;
|
|
27
28
|
getInsightBodyComponentProvider: () => InsightBodyComponentProvider;
|
|
29
|
+
getRestrictedPlaceholderProvider: () => RestrictedPlaceholderComponentProvider;
|
|
28
30
|
sealCustomizer: () => void;
|
|
29
31
|
}
|
|
30
32
|
//# sourceMappingURL=insightCustomizer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insightCustomizer.d.ts","sourceRoot":"","sources":["../../../src/plugins/customizationApis/insightCustomizer.tsx"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,oCAAoC,EACzC,KAAK,gCAAgC,
|
|
1
|
+
{"version":3,"file":"insightCustomizer.d.ts","sourceRoot":"","sources":["../../../src/plugins/customizationApis/insightCustomizer.tsx"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,oCAAoC,EACzC,KAAK,gCAAgC,EACrC,KAAK,8CAA8C,EACnD,KAAK,sCAAsC,EAC9C,MAAM,+CAA+C,CAAC;AAIvD,OAAO,EAAE,KAAK,+BAA+B,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAEpE,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,YAAY,CAAC;AA+O7D;;;;;;;;;;GAUG;AACH,qBAAa,wBAAyB,YAAW,2BAA2B;IACxE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IACvD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA6B;IAC7D,OAAO,CAAC,KAAK,CAA0B;IAEvC,YACI,MAAM,EAAE,6BAA6B,EACrC,eAAe,EAAE,0BAA0B,EAC3C,mBAAmB,GAAE,wBAAmE,EACxF,0BAA0B,GAAE,4BAAkE,EAC9F,oCAAoC,GAAE,sCAA6E,EAUtH;IAEM,OAAO,QAAS,MAAM,aAAa,+BAA+B,KAAG,IAAI,CAmB9E;IAEK,kBAAkB,aAAc,gCAAgC,KAAG,IAAI,CAK5E;IAEF,6BAA6B,CAAC,QAAQ,EAAE,oCAAoC,GAAG,IAAI,CAKlF;IAED,iCAAiC,CAAC,QAAQ,EAAE,8CAA8C,GAAG,IAAI,CAOhG;IAEM,mBAAmB,oBACL,CAAC,IAAI,EAAE,wBAAwB,KAAK,gCAAgC,KACtF,IAAI,CAwBL;IAEK,kBAAkB,QAAO,wBAAwB,CAEtD;IAEK,+BAA+B,QAAO,4BAA4B,CAEvE;IAEK,gCAAgC,QAAO,sCAAsC,CAElF;IAEK,cAAc,QAAO,IAAI,CAE9B;CACL"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { union } from "lodash-es";
|
|
3
3
|
import { InvariantError } from "ts-invariant";
|
|
4
4
|
import { insightTags } from "@gooddata/sdk-model";
|
|
5
|
+
import { RestrictedPlaceholderContent } from "../../presentation/widget/common/RestrictedPlaceholder.js";
|
|
5
6
|
import { DefaultDashboardInsight } from "../../presentation/widget/insight/DefaultDashboardInsight.js";
|
|
6
7
|
import { DefaultInsightBody } from "../../presentation/widget/insight/DefaultInsightBody/DefaultInsightBody.js";
|
|
7
8
|
const DefaultDashboardInsightComponentProvider = () => {
|
|
@@ -10,6 +11,9 @@ const DefaultDashboardInsightComponentProvider = () => {
|
|
|
10
11
|
const DefaultInsightBodyComponentProvider = () => {
|
|
11
12
|
return DefaultInsightBody;
|
|
12
13
|
};
|
|
14
|
+
const DefaultRestrictedPlaceholderProvider = () => {
|
|
15
|
+
return RestrictedPlaceholderContent;
|
|
16
|
+
};
|
|
13
17
|
class DefaultInsightCustomizerState {
|
|
14
18
|
/*
|
|
15
19
|
* Chain of 'core' providers. Core providers are evaluated from last to first. As soon as some provider
|
|
@@ -31,6 +35,8 @@ class DefaultInsightCustomizerState {
|
|
|
31
35
|
* something to decorate. See constructor.
|
|
32
36
|
*/
|
|
33
37
|
insightBodyProviderChain;
|
|
38
|
+
/* Chain of restricted-placeholder providers; primed with the default, like the body chain. */
|
|
39
|
+
restrictedPlaceholderProviderChain;
|
|
34
40
|
/*
|
|
35
41
|
* Maintains index between tag and the position within coreProviderChain where the provider
|
|
36
42
|
* for each tag is located. This is used to replace existing providers in case plugins make
|
|
@@ -67,6 +73,17 @@ class DefaultInsightCustomizerState {
|
|
|
67
73
|
// provider which never returns undefined
|
|
68
74
|
throw new InvariantError();
|
|
69
75
|
};
|
|
76
|
+
restrictedPlaceholderProvider = (widget) => {
|
|
77
|
+
const providerStack = [...this.restrictedPlaceholderProviderChain].reverse();
|
|
78
|
+
for (const provider of providerStack) {
|
|
79
|
+
const Component = provider(widget);
|
|
80
|
+
if (Component) {
|
|
81
|
+
return Component;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
// the chain is primed with the default provider, which never returns undefined
|
|
85
|
+
throw new InvariantError();
|
|
86
|
+
};
|
|
70
87
|
/*
|
|
71
88
|
* Root provider is THE provider that should be used in the dashboard extension properties. The
|
|
72
89
|
* provider function included here will reflect the setup where there may be N registered decorators
|
|
@@ -77,10 +94,11 @@ class DefaultInsightCustomizerState {
|
|
|
77
94
|
*/
|
|
78
95
|
rootProvider = this.coreProvider;
|
|
79
96
|
logger;
|
|
80
|
-
constructor(logger, defaultCoreProvider, defaultInsightBodyProvider) {
|
|
97
|
+
constructor(logger, defaultCoreProvider, defaultInsightBodyProvider, defaultRestrictedPlaceholderProvider) {
|
|
81
98
|
this.logger = logger;
|
|
82
99
|
this.coreProviderChain = [defaultCoreProvider];
|
|
83
100
|
this.insightBodyProviderChain = [defaultInsightBodyProvider];
|
|
101
|
+
this.restrictedPlaceholderProviderChain = [defaultRestrictedPlaceholderProvider];
|
|
84
102
|
}
|
|
85
103
|
addTagProvider(tag, provider) {
|
|
86
104
|
// provider may already be registered for this tag
|
|
@@ -103,12 +121,18 @@ class DefaultInsightCustomizerState {
|
|
|
103
121
|
addInsightBodyProvider(provider) {
|
|
104
122
|
this.insightBodyProviderChain.push(provider);
|
|
105
123
|
}
|
|
124
|
+
addRestrictedPlaceholderProvider(provider) {
|
|
125
|
+
this.restrictedPlaceholderProviderChain.push(provider);
|
|
126
|
+
}
|
|
106
127
|
getRootProvider() {
|
|
107
128
|
return this.rootProvider;
|
|
108
129
|
}
|
|
109
130
|
getInsightBodyComponentProvider() {
|
|
110
131
|
return this.insightRendererProvider;
|
|
111
132
|
}
|
|
133
|
+
getRestrictedPlaceholderProvider() {
|
|
134
|
+
return this.restrictedPlaceholderProvider;
|
|
135
|
+
}
|
|
112
136
|
switchRootProvider(provider) {
|
|
113
137
|
this.rootProvider = provider;
|
|
114
138
|
}
|
|
@@ -135,6 +159,9 @@ class SealedInsightCustomizerState {
|
|
|
135
159
|
addInsightBodyProvider = () => {
|
|
136
160
|
this.logger.warn(`Attempting to customize insight rendering outside of plugin registration. Ignoring.`);
|
|
137
161
|
};
|
|
162
|
+
addRestrictedPlaceholderProvider = () => {
|
|
163
|
+
this.logger.warn(`Attempting to customize insight rendering outside of plugin registration. Ignoring.`);
|
|
164
|
+
};
|
|
138
165
|
addTagProvider = (_tag) => {
|
|
139
166
|
this.logger.warn(`Attempting to customize insight rendering outside of plugin registration. Ignoring.`);
|
|
140
167
|
};
|
|
@@ -147,6 +174,9 @@ class SealedInsightCustomizerState {
|
|
|
147
174
|
getInsightBodyComponentProvider = () => {
|
|
148
175
|
return this.state.getInsightBodyComponentProvider();
|
|
149
176
|
};
|
|
177
|
+
getRestrictedPlaceholderProvider = () => {
|
|
178
|
+
return this.state.getRestrictedPlaceholderProvider();
|
|
179
|
+
};
|
|
150
180
|
}
|
|
151
181
|
/**
|
|
152
182
|
* Default implementation of the insight rendering customizer. Notice that the state of the customizations
|
|
@@ -163,10 +193,10 @@ export class DefaultInsightCustomizer {
|
|
|
163
193
|
logger;
|
|
164
194
|
mutationContext;
|
|
165
195
|
state;
|
|
166
|
-
constructor(logger, mutationContext, defaultCoreProvider = DefaultDashboardInsightComponentProvider, defaultInsightBodyProvider = DefaultInsightBodyComponentProvider) {
|
|
196
|
+
constructor(logger, mutationContext, defaultCoreProvider = DefaultDashboardInsightComponentProvider, defaultInsightBodyProvider = DefaultInsightBodyComponentProvider, defaultRestrictedPlaceholderProvider = DefaultRestrictedPlaceholderProvider) {
|
|
167
197
|
this.logger = logger;
|
|
168
198
|
this.mutationContext = mutationContext;
|
|
169
|
-
this.state = new DefaultInsightCustomizerState(logger, defaultCoreProvider, defaultInsightBodyProvider);
|
|
199
|
+
this.state = new DefaultInsightCustomizerState(logger, defaultCoreProvider, defaultInsightBodyProvider, defaultRestrictedPlaceholderProvider);
|
|
170
200
|
}
|
|
171
201
|
withTag = (tag, component) => {
|
|
172
202
|
if (!tag) {
|
|
@@ -193,6 +223,13 @@ export class DefaultInsightCustomizer {
|
|
|
193
223
|
this.mutationContext.insight = union(this.mutationContext.insight, ["body"]);
|
|
194
224
|
return this;
|
|
195
225
|
}
|
|
226
|
+
withRestrictedPlaceholderProvider(provider) {
|
|
227
|
+
this.state.addRestrictedPlaceholderProvider(provider);
|
|
228
|
+
// deliberately not recorded as an insight mutation: getWidgetsOverlayFn puts a
|
|
229
|
+
// "modified by plugin" overlay on EVERY insight widget once mutations.insight is non-empty,
|
|
230
|
+
// and this provider only affects widgets the user cannot see in the first place
|
|
231
|
+
return this;
|
|
232
|
+
}
|
|
196
233
|
withCustomDecorator = (providerFactory) => {
|
|
197
234
|
// snapshot current root provider
|
|
198
235
|
const rootSnapshot = this.state.getRootProvider();
|
|
@@ -220,6 +257,9 @@ export class DefaultInsightCustomizer {
|
|
|
220
257
|
getInsightBodyComponentProvider = () => {
|
|
221
258
|
return this.state.getInsightBodyComponentProvider();
|
|
222
259
|
};
|
|
260
|
+
getRestrictedPlaceholderProvider = () => {
|
|
261
|
+
return this.state.getRestrictedPlaceholderProvider();
|
|
262
|
+
};
|
|
223
263
|
sealCustomizer = () => {
|
|
224
264
|
this.state = new SealedInsightCustomizerState(this.logger, this.state);
|
|
225
265
|
};
|
|
@@ -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, 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, 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";
|
|
@@ -48,6 +48,19 @@ export interface IDashboardInsightCustomizer {
|
|
|
48
48
|
* @returns self, for call chaining sakes
|
|
49
49
|
*/
|
|
50
50
|
withCustomProvider(provider: OptionalInsightComponentProvider): IDashboardInsightCustomizer;
|
|
51
|
+
/**
|
|
52
|
+
* Register a provider for the component standing in for an insight widget the current user is
|
|
53
|
+
* not allowed to see.
|
|
54
|
+
*
|
|
55
|
+
* @remarks
|
|
56
|
+
* The insight is deliberately not passed to the provider — it is the object being withheld.
|
|
57
|
+
* Returning undefined keeps the default placeholder for that widget.
|
|
58
|
+
*
|
|
59
|
+
* @param provider - provider of the replacement component
|
|
60
|
+
* @returns self, for call chaining
|
|
61
|
+
* @alpha
|
|
62
|
+
*/
|
|
63
|
+
withRestrictedPlaceholderProvider(provider: OptionalRestrictedPlaceholderComponentProvider): IDashboardInsightCustomizer;
|
|
51
64
|
/**
|
|
52
65
|
* Register a provider for React components to render insight body inside of the {@link DefaultDashboardInsight}.
|
|
53
66
|
*
|