@gooddata/sdk-ui-ext 11.56.0-alpha.0 → 11.56.0-alpha.2
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 +44 -168
- package/esm/automations/Automations.d.ts +1 -1
- package/esm/automations/Automations.d.ts.map +1 -1
- package/esm/automations/AutomationsCore.js +1 -2
- package/esm/automations/UserContext.d.ts.map +1 -1
- package/esm/automations/actions/useAutomationActions.d.ts.map +1 -1
- package/esm/automations/actions/useAutomationBulkActions.d.ts.map +1 -1
- package/esm/automations/columns/AutomationIcon.js +1 -3
- package/esm/automations/columns/AutomationIconTooltip.d.ts +1 -1
- package/esm/automations/columns/AutomationIconTooltip.d.ts.map +1 -1
- package/esm/automations/columns/AutomationIconTooltip.js +2 -8
- package/esm/automations/columns/AutomationMenu.d.ts +1 -1
- package/esm/automations/columns/AutomationMenu.d.ts.map +1 -1
- package/esm/automations/columns/AutomationMenu.js +1 -2
- package/esm/automations/columns/useAutomationColumns.d.ts.map +1 -1
- package/esm/automations/constants.d.ts +4 -4
- package/esm/automations/constants.d.ts.map +1 -1
- package/esm/automations/data/useLoadAutomations.d.ts.map +1 -1
- package/esm/automations/filters/FilterOptionsContext.d.ts.map +1 -1
- package/esm/automations/filters/useAutomationFilters.d.ts +2 -2
- package/esm/automations/filters/useAutomationFilters.d.ts.map +1 -1
- package/esm/automations/format.d.ts +4 -4
- package/esm/automations/format.d.ts.map +1 -1
- package/esm/automations/messages.d.ts.map +1 -1
- package/esm/automations/useAutomationService.d.ts.map +1 -1
- package/esm/automations/useAutomationsSmallLayout.d.ts.map +1 -1
- package/esm/automations/useAutomationsState.d.ts +1 -1
- package/esm/automations/useAutomationsState.d.ts.map +1 -1
- package/esm/automations/utils.d.ts.map +1 -1
- package/esm/dataLoaders/DataLoaderAbstractFactory.d.ts.map +1 -1
- package/esm/index.d.ts +4 -3
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +3 -1
- package/esm/insightPicker/InsightPickerCore.d.ts +1 -1
- package/esm/insightPicker/InsightPickerCore.d.ts.map +1 -1
- package/esm/insightPicker/InsightPickerCore.js +2 -4
- package/esm/insightPicker/InsightPickerFilterBar.d.ts +1 -1
- package/esm/insightPicker/InsightPickerFilterBar.d.ts.map +1 -1
- package/esm/insightPicker/InsightPickerFilterBar.js +1 -3
- package/esm/insightPicker/InsightPickerMenu.js +1 -2
- package/esm/insightPicker/InsightPickerRow.d.ts +1 -1
- package/esm/insightPicker/InsightPickerRow.d.ts.map +1 -1
- package/esm/insightPicker/InsightPickerRow.js +1 -2
- package/esm/insightPicker/InsightPickerSortDropdown.d.ts +1 -1
- package/esm/insightPicker/InsightPickerSortDropdown.d.ts.map +1 -1
- package/esm/insightPicker/InsightPickerSortDropdown.js +3 -8
- package/esm/insightPicker/messages.d.ts.map +1 -1
- package/esm/insightPicker/useInsightPickerHybridSearch.d.ts +1 -1
- package/esm/insightPicker/useInsightPickerHybridSearch.d.ts.map +1 -1
- package/esm/insightPicker/useInsightPickerState.d.ts.map +1 -1
- package/esm/insightView/InsightError.d.ts +1 -1
- package/esm/insightView/InsightError.d.ts.map +1 -1
- package/esm/insightView/InsightRenderer.d.ts +2 -4
- package/esm/insightView/InsightRenderer.d.ts.map +1 -1
- package/esm/insightView/InsightRenderer.js +1 -4
- package/esm/insightView/InsightView.js +1 -2
- package/esm/internal/FluidLayoutDescriptor.d.ts.map +1 -1
- package/esm/internal/components/DisabledBubbleMessage.d.ts +1 -1
- package/esm/internal/components/DisabledBubbleMessage.d.ts.map +1 -1
- package/esm/internal/components/DisabledBubbleMessage.js +1 -2
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDetail/AttributeHierarchyDetailBubble.d.ts +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDetail/AttributeHierarchyDetailBubble.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDetail/AttributeHierarchyDetailBubble.js +2 -4
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDetail/AttributeHierarchyDetailPanel.d.ts +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDetail/AttributeHierarchyDetailPanel.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDetail/AttributeHierarchyDetailPanel.js +1 -2
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AddActionMenu.js +1 -5
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeDropdownBody.d.ts +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeDropdownBody.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialog.d.ts +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialog.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogContent.js +1 -2
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogCore.js +1 -3
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogFooter.js +2 -9
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogHeader.js +1 -3
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogProvider.d.ts +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogProvider.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeItem.js +1 -4
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeItemActions.js +1 -2
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/DeleteAttributeHieraryConfirmation.js +1 -2
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/types.js +1 -2
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/useBackendProvider.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/BasemapDropdownControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/BasemapDropdownControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/CheckboxControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/CheckboxControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/CheckboxControl.js +1 -2
- package/esm/internal/components/configurationControls/ColumnHeadersPositionControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/ColumnHeadersPositionControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ColumnHeadersPositionControl.js +1 -2
- package/esm/internal/components/configurationControls/ConfigSection.d.ts +1 -1
- package/esm/internal/components/configurationControls/ConfigSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSection.js +2 -6
- package/esm/internal/components/configurationControls/ConfigSubsection.d.ts +1 -1
- package/esm/internal/components/configurationControls/ConfigSubsection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSubsection.js +2 -7
- package/esm/internal/components/configurationControls/ContinuousLineControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/ContinuousLineControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ContinuousLineControl.js +1 -4
- package/esm/internal/components/configurationControls/DataLabelsControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/DataLabelsControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DataLabelsControl.js +1 -2
- package/esm/internal/components/configurationControls/DataPointsControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/DataPointsControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DistintcPointShapesControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/DistintcPointShapesControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DistintcPointShapesControl.js +1 -4
- package/esm/internal/components/configurationControls/DropdownControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/DropdownControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DropdownControl.js +1 -2
- package/esm/internal/components/configurationControls/GeoViewportControl.js +1 -10
- package/esm/internal/components/configurationControls/GrandTotalsControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/GrandTotalsControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/InputControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/InputControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/InputControl.js +1 -4
- package/esm/internal/components/configurationControls/MetricsPositionControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/MetricsPositionControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/MinMaxControl.js +1 -2
- package/esm/internal/components/configurationControls/OrientationDropdownControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/OrientationDropdownControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PagingSection.d.ts +1 -1
- package/esm/internal/components/configurationControls/PagingSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PivotTableTextWrappingControl.d.ts +2 -2
- package/esm/internal/components/configurationControls/PivotTableTextWrappingControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PushpinShapeControl.js +1 -2
- package/esm/internal/components/configurationControls/PushpinSizeControl.js +1 -3
- package/esm/internal/components/configurationControls/RadarGridLineShapeControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/RadarGridLineShapeControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/RadarRenderAsControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/RadarRenderAsControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/TextWrappingControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/TextWrappingControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/VerticalAlignControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/VerticalAlignControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.d.ts +1 -1
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.js +1 -3
- package/esm/internal/components/configurationControls/advanced/ConfigEditor.js +2 -15
- package/esm/internal/components/configurationControls/advanced/SnippetItem.js +2 -8
- package/esm/internal/components/configurationControls/advanced/useOverflow.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/anomalies/AnomaliesSection.d.ts +1 -1
- package/esm/internal/components/configurationControls/anomalies/AnomaliesSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/anomalies/AnomaliesSection.js +1 -5
- package/esm/internal/components/configurationControls/anomalies/AnomalyColorControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/anomalies/AnomalyColorControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/anomalies/AnomalyIndicatorControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/anomalies/AnomalyIndicatorControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/anomalies/AnomalyIndicatorControl.js +1 -3
- package/esm/internal/components/configurationControls/anomalies/AnomalySensitivityControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/anomalies/AnomalySensitivityControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/anomalies/AnomalySizeControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/anomalies/AnomalySizeControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/axis/LabelFormatControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/axis/LabelFormatControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/axis/LabelRotationControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/axis/LabelRotationControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/axis/LabelSubsection.d.ts +1 -1
- package/esm/internal/components/configurationControls/axis/LabelSubsection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/axis/LabelSubsection.js +1 -2
- package/esm/internal/components/configurationControls/axis/NamePositionControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/axis/NamePositionControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/axis/NameSubsection.d.ts +1 -1
- package/esm/internal/components/configurationControls/axis/NameSubsection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/clustering/ClusteringThresholdControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/clustering/ClusteringThresholdControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/clustering/NumberOfClustersControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/clustering/NumberOfClustersControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/ColorsSection.d.ts +1 -1
- package/esm/internal/components/configurationControls/colors/ColorsSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/ColorsSection.js +1 -2
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorDropdown.d.ts +1 -1
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorDropdown.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorDropdown.js +3 -7
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorOverlay.d.ts +1 -1
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorOverlay.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorOverlay.js +1 -2
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorPalette.d.ts +1 -1
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorPalette.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorPaletteItem.d.ts +2 -2
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorPaletteItem.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/colorDropdown/CustomColorButton.d.ts +1 -1
- package/esm/internal/components/configurationControls/colors/colorDropdown/CustomColorButton.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/colorDropdown/ResetColorButton.d.ts +1 -1
- package/esm/internal/components/configurationControls/colors/colorDropdown/ResetColorButton.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/coloredItemsList/ColoredItem.d.ts +1 -1
- package/esm/internal/components/configurationControls/colors/coloredItemsList/ColoredItem.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/coloredItemsList/ColoredItemContent.d.ts +1 -1
- package/esm/internal/components/configurationControls/colors/coloredItemsList/ColoredItemContent.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/coloredItemsList/ColoredItemsList.d.ts +1 -1
- package/esm/internal/components/configurationControls/colors/coloredItemsList/ColoredItemsList.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/coloredItemsList/LineStyleColoredItem.d.ts +1 -1
- package/esm/internal/components/configurationControls/colors/coloredItemsList/LineStyleColoredItem.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/coloredItemsList/LineStyleColoredItem.js +1 -2
- package/esm/internal/components/configurationControls/colors/coloredItemsList/LineStyleDialog.d.ts +1 -1
- package/esm/internal/components/configurationControls/colors/coloredItemsList/LineStyleDialog.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/coloredItemsList/LineStyleDialog.js +3 -10
- package/esm/internal/components/configurationControls/comparison/ComparisonSection.d.ts +1 -1
- package/esm/internal/components/configurationControls/comparison/ComparisonSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/ComparisonSection.js +1 -3
- package/esm/internal/components/configurationControls/comparison/calculation/CalculationControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/comparison/calculation/CalculationControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/calculation/CalculationListItem.js +1 -5
- package/esm/internal/components/configurationControls/comparison/calculation/CalculationListItemInfo.js +1 -5
- package/esm/internal/components/configurationControls/comparison/calculation/CalculationListItemInfoSection.d.ts +1 -1
- package/esm/internal/components/configurationControls/comparison/calculation/CalculationListItemInfoSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/calculation/CalculationListItemInfoSection.js +1 -2
- package/esm/internal/components/configurationControls/comparison/indicators/IndicatorSubSection.d.ts +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/IndicatorSubSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/IndicatorSubSection.js +1 -3
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.d.ts +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorsControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorsControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorsControl.js +1 -5
- package/esm/internal/components/configurationControls/comparison/label/LabelSubSection.d.ts +1 -1
- package/esm/internal/components/configurationControls/comparison/label/LabelSubSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/label/LabelSubSection.js +1 -4
- package/esm/internal/components/configurationControls/comparison/values/ComparisonPositionControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/comparison/values/ComparisonPositionControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/values/ValueSubSection.d.ts +1 -1
- package/esm/internal/components/configurationControls/comparison/values/ValueSubSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/values/ValueSubSection.js +1 -3
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.js +1 -3
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatToggleButton.d.ts +1 -1
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatToggleButton.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/CfDateValueDropdown.d.ts +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/CfDateValueDropdown.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionEditor.d.ts +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionEditor.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionEditor.js +7 -20
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingDialog.d.ts +21 -8
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingDialog.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingDialog.js +12 -22
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.d.ts +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.js +15 -21
- package/esm/internal/components/configurationControls/conditionalFormatting/ReorderList.d.ts +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ReorderList.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ReorderList.js +1 -3
- package/esm/internal/components/configurationControls/conditionalFormatting/conditionalFormattingColors.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/conditionalFormattingModel.d.ts +12 -6
- package/esm/internal/components/configurationControls/conditionalFormatting/conditionalFormattingModel.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/conditionalFormattingModel.js +6 -0
- package/esm/internal/components/configurationControls/conditionalFormatting/reorderListModel.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/useCfDateFilterOptions.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.d.ts +1 -1
- package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.js +1 -5
- package/esm/internal/components/configurationControls/forecast/ForecastConfidenceControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/forecast/ForecastConfidenceControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/forecast/ForecastSection.d.ts +1 -1
- package/esm/internal/components/configurationControls/forecast/ForecastSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/forecast/ForecastSection.js +1 -4
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.d.ts +1 -1
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.js +5 -17
- package/esm/internal/components/configurationControls/legend/GeoLegendPositionControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/legend/GeoLegendPositionControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/legend/GeoLegendSection.d.ts +1 -1
- package/esm/internal/components/configurationControls/legend/GeoLegendSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/legend/LegendPositionControl.d.ts +1 -1
- package/esm/internal/components/configurationControls/legend/LegendPositionControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/legend/LegendSection.d.ts +1 -1
- package/esm/internal/components/configurationControls/legend/LegendSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/total/TotalSection.d.ts +1 -1
- package/esm/internal/components/configurationControls/total/TotalSection.d.ts.map +1 -1
- package/esm/internal/components/configurationPanels/BaseChartConfigurationPanel.js +4 -9
- package/esm/internal/components/configurationPanels/BubbleChartConfigurationPanel.js +1 -7
- package/esm/internal/components/configurationPanels/BulletChartConfigurationPanel.js +1 -6
- package/esm/internal/components/configurationPanels/FunnelChartConfigurationPanel.js +1 -3
- package/esm/internal/components/configurationPanels/GeoPushpinConfigurationPanel.js +2 -5
- package/esm/internal/components/configurationPanels/HeadlineConfigurationPanel.js +1 -4
- package/esm/internal/components/configurationPanels/HeatMapConfigurationPanel.js +1 -7
- package/esm/internal/components/configurationPanels/LineChartBasedConfigurationPanel.js +1 -5
- package/esm/internal/components/configurationPanels/PieChartConfigurationPanel.js +1 -3
- package/esm/internal/components/configurationPanels/PivotTableConfigurationPanel.js +3 -8
- package/esm/internal/components/configurationPanels/PyramidChartConfigurationPanel.js +1 -3
- package/esm/internal/components/configurationPanels/RadarChartConfigurationPanel.js +2 -10
- package/esm/internal/components/configurationPanels/RepeaterConfigurationPanel.js +1 -5
- package/esm/internal/components/configurationPanels/SankeyChartConfigurationPanel.js +1 -3
- package/esm/internal/components/configurationPanels/ScatterPlotConfigurationPanel.js +1 -10
- package/esm/internal/components/configurationPanels/TreeMapConfigurationPanel.js +1 -3
- package/esm/internal/components/configurationPanels/WaterfallChartConfigurationPanel.js +2 -7
- package/esm/internal/components/dialogs/userManagementDialogs/ConfirmDialogs/DeleteConfirmDialog.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/ConfirmDialogs/DeleteConfirmDialog.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/AddDataSource.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/AddDataSource.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/AddDataSource.js +1 -3
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/AddDataSourceSelect.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/AddDataSourceSelect.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/AsyncSelectComponents.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/AsyncSelectComponents.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/DataSourceItem.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/DataSourceItem.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/DataSourceItem.js +1 -2
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/DataSourceList.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/DataSourceList.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/PermissionsDropdown.js +2 -4
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/PermissionsDropdownItem.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/PermissionsDropdownItem.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/PermissionsDropdownItem.js +1 -3
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/PermissionsDropdownList.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/PermissionsDropdownList.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/PermissionsDropdownList.js +1 -2
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/backend/loadUserDataSourceOptionsPromise.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/locales.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/useAddDataSource.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DataSources/usePermissionsDropdownState.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Details/DetailRow.js +1 -2
- package/esm/internal/components/dialogs/userManagementDialogs/Details/EditUserDetails.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Details/EditUserDetails.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Details/EditUserGroupDetails.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Details/EditUserGroupDetails.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Details/OrganizationMemberDropdown.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Details/OrganizationMemberDropdown.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Details/OrganizationMemberDropdown.js +3 -9
- package/esm/internal/components/dialogs/userManagementDialogs/Details/UserDetailsView.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Details/UserDetailsView.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Details/UserDetailsView.js +3 -11
- package/esm/internal/components/dialogs/userManagementDialogs/Details/UserGroupDetailsView.js +1 -3
- package/esm/internal/components/dialogs/userManagementDialogs/Details/detailsHooks.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/ErrorDialog.js +1 -5
- package/esm/internal/components/dialogs/userManagementDialogs/RemoveIcon.js +1 -3
- package/esm/internal/components/dialogs/userManagementDialogs/TelemetryContext.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserEditDialog.js +2 -5
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroupEditDialog.js +2 -5
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/AddUserGroup.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/AddUserGroup.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/AddUserGroupContent.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/AddUserGroupContent.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/AddUserGroupContent.js +2 -4
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/AddUserGroupSelect.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/AddUserGroupSelect.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/AsyncSelectComponents.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/AsyncSelectComponents.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/UserGroupItem.js +1 -3
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/UserGroupsList.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/UserGroupsList.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/backend/loadUserGroupOptionsPromise.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/backend/loadUserGroupOptionsPromise.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/userGroupHooks.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Users/AddUser.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Users/AddUser.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Users/AddUserContent.js +2 -4
- package/esm/internal/components/dialogs/userManagementDialogs/Users/AsyncSelectComponents.d.ts +2 -2
- package/esm/internal/components/dialogs/userManagementDialogs/Users/AsyncSelectComponents.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Users/AsyncSelectComponents.js +1 -2
- package/esm/internal/components/dialogs/userManagementDialogs/Users/UserItem.js +3 -9
- package/esm/internal/components/dialogs/userManagementDialogs/Users/backend/loadUsersOptionsPromise.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Users/backend/loadUsersOptionsPromise.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Users/usersHooks.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/ViewDialog.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/ViewDialog.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/ViewDialog.js +1 -8
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/AddSingleWorkspaceSelect.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/AddSingleWorkspaceSelect.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/AddWorkspace.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/AddWorkspace.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/AddWorkspace.js +1 -3
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/AddWorkspaceSelect.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/AddWorkspaceSelect.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/AsyncSelectComponents.d.ts +2 -2
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/AsyncSelectComponents.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/GranularPermissions.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/GranularPermissions.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/GranularPermissions.js +1 -6
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/GranularPermissionsItems.d.ts +2 -2
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/GranularPermissionsItems.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/GranularPermissionsItems.js +2 -7
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/GranularPermissionsWorkspaceItem.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/GranularPermissionsWorkspaceItem.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/GranularPermissionsWorkspaceItem.js +1 -4
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/HierarchicalPermissionDropdownItem.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/HierarchicalPermissionDropdownItem.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/HierarchicalPermissionDropdownItem.js +2 -4
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/HierarchicalPermissionsDropdown.js +2 -4
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/HierarchicalPermissionsDropdownList.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/HierarchicalPermissionsDropdownList.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/HierarchicalPermissionsDropdownList.js +1 -3
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/PermissionDropdownItem.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/PermissionDropdownItem.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/PermissionDropdownItem.js +1 -3
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/PermissionsDropdown.js +2 -4
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/PermissionsDropdownList.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/PermissionsDropdownList.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/PermissionsDropdownList.js +1 -2
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/WorkspaceItem.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/WorkspaceItem.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/WorkspaceItem.js +1 -3
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/granularPermissionUtils.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/locales.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/usePermissionsDropdownState.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/backend/loadWorkspaceOptionsPromise.d.ts +2 -2
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/backend/loadWorkspaceOptionsPromise.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/useAddWorkspace.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/useAddWorkspace.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/dialogHooks.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/dialogHooks.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/hooks/usePermissions.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/locales.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/types.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/utils.d.ts +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/utils.d.ts.map +1 -1
- package/esm/internal/components/insightList/useInsightPagedList.d.ts +1 -1
- package/esm/internal/components/insightList/useInsightPagedList.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/PluggableUnknownChart.d.ts +4 -6
- package/esm/internal/components/pluggableVisualizations/PluggableUnknownChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/PluggableUnknownChart.js +4 -4
- package/esm/internal/components/pluggableVisualizations/alerts.d.ts +4 -4
- package/esm/internal/components/pluggableVisualizations/alerts.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/areaChart/AreaChartDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/areaChart/AreaChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/barChart/BarChartDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/barChart/BarChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/baseChart/PluggableBaseChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bubbleChart/BubbleChartDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/bubbleChart/BubbleChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bulletChart/BulletChartDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/bulletChart/BulletChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bulletChart/bucketHelper.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/columnChart/ColumnChartDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/columnChart/ColumnChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/ComboChartDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/ComboChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/dependencyWheelChart/DependencyWheelChartDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/dependencyWheelChart/DependencyWheelChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/donutChart/DonutChartDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/donutChart/DonutChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/drillDownUtil.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/drillDownUtil.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/funnelChart/FunnelChartDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/funnelChart/FunnelChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/geoAreaConfigBuilder.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/geoAreaConfigBuilder.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChart/GeoPushpinChartDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChart/GeoPushpinChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.js +1 -3
- package/esm/internal/components/pluggableVisualizations/geoChartNext/geoConfigBuilder.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChartNext/geoConfigBuilder.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoCommon/liveMapViewTracking.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/headline/HeadlineDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/headline/HeadlineDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/heatMap/HeatmapDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/heatMap/HeatmapDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/keyDriverAnalysis.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/keyDriverAnalysis.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/lineChart/LineChartDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/lineChart/LineChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/mekko/MekkoDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/mekko/MekkoDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/mekko/bucketHelper.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pieChart/PieChartDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/pieChart/PieChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/PivotTableDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/PivotTableDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/mockReferencePoint.test.helpers.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PivotTableNextDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PivotTableNextDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/helpers.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/sortHelpers.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/totalsHelpers.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/widthItemsHelpers.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/widthItemsHelpers.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pyramidChart/PyramidChartDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/pyramidChart/PyramidChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/radarChart/RadarChartDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/radarChart/RadarChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/repeater/RepeaterDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/repeater/RepeaterDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/sankeyChart/SankeyChartDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/sankeyChart/SankeyChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/scatterPlot/ScatterPlotDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/scatterPlot/ScatterPlotDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/scatterPlot/bucketHelper.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/treeMap/TreemapDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/treeMap/TreemapDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/waterfallChart/WaterfallChartDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/waterfallChart/WaterfallChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/xirr/PluggableXirr.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/xirr/PluggableXirr.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/xirr/XirrDescriptor.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/xirr/XirrDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/xirr/xirrBucketHelper.d.ts.map +1 -1
- package/esm/internal/components/visConstruct.test.helpers.d.ts.map +1 -1
- package/esm/internal/constants/axis.d.ts +52 -4
- package/esm/internal/constants/axis.d.ts.map +1 -1
- package/esm/internal/constants/axis.js +1 -2
- package/esm/internal/constants/bucket.d.ts.map +1 -1
- package/esm/internal/constants/geoMapStyle.d.ts +1 -1
- package/esm/internal/constants/geoMapStyle.d.ts.map +1 -1
- package/esm/internal/constants/supportedProperties.d.ts +13 -4
- package/esm/internal/constants/supportedProperties.d.ts.map +1 -1
- package/esm/internal/constants/uiConfig.d.ts.map +1 -1
- package/esm/internal/constants/uiConfig.js +8 -8
- package/esm/internal/interfaces/SortConfig.d.ts +1 -1
- package/esm/internal/interfaces/SortConfig.d.ts.map +1 -1
- package/esm/internal/interfaces/Visualization.d.ts.map +1 -1
- package/esm/internal/testDataProvider.d.ts +6 -6
- package/esm/internal/testDataProvider.d.ts.map +1 -1
- package/esm/internal/translations/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/de-DE.localization-bundle.js +3 -3
- package/esm/internal/translations/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/en-AU.localization-bundle.js +3 -3
- package/esm/internal/translations/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/en-GB.localization-bundle.js +3 -3
- package/esm/internal/translations/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/en-US.localization-bundle.js +3 -3
- package/esm/internal/translations/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/es-419.localization-bundle.js +3 -3
- package/esm/internal/translations/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/es-ES.localization-bundle.js +3 -3
- package/esm/internal/translations/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/fi-FI.localization-bundle.js +3 -3
- package/esm/internal/translations/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/fr-CA.localization-bundle.js +3 -3
- package/esm/internal/translations/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/fr-FR.localization-bundle.js +3 -3
- package/esm/internal/translations/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/id-ID.localization-bundle.js +3 -3
- package/esm/internal/translations/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/it-IT.localization-bundle.js +3 -3
- package/esm/internal/translations/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/ja-JP.localization-bundle.js +3 -3
- package/esm/internal/translations/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/ko-KR.localization-bundle.js +3 -3
- package/esm/internal/translations/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/nl-NL.localization-bundle.js +3 -3
- package/esm/internal/translations/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/pl-PL.localization-bundle.js +3 -3
- package/esm/internal/translations/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/pt-BR.localization-bundle.js +3 -3
- package/esm/internal/translations/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/pt-PT.localization-bundle.js +3 -3
- package/esm/internal/translations/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/ru-RU.localization-bundle.js +3 -3
- package/esm/internal/translations/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/sl-SI.localization-bundle.js +3 -3
- package/esm/internal/translations/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/th-TH.localization-bundle.js +3 -3
- package/esm/internal/translations/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/tr-TR.localization-bundle.js +4 -4
- package/esm/internal/translations/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/uk-UA.localization-bundle.js +3 -3
- package/esm/internal/translations/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/vi-VN.localization-bundle.js +3 -3
- package/esm/internal/translations/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/zh-HK.localization-bundle.js +5 -5
- package/esm/internal/translations/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/zh-Hans.localization-bundle.js +3 -3
- package/esm/internal/translations/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/zh-Hant.localization-bundle.js +4 -4
- package/esm/internal/utils/bucketHelper.d.ts.map +1 -1
- package/esm/internal/utils/comparisonHelper.d.ts +2 -2
- package/esm/internal/utils/comparisonHelper.d.ts.map +1 -1
- package/esm/internal/utils/controlsHelper.d.ts +5 -1
- package/esm/internal/utils/controlsHelper.d.ts.map +1 -1
- package/esm/internal/utils/drillablePredicates.d.ts +1 -1
- package/esm/internal/utils/drillablePredicates.d.ts.map +1 -1
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.d.ts +1 -1
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.d.ts.map +1 -1
- package/esm/internal/utils/embeddingCodeGenerator/getWebComponentsCodeGenerator.d.ts.map +1 -1
- package/esm/internal/utils/embeddingCodeGenerator/insightToPropsConverter/convenience.d.ts.map +1 -1
- package/esm/internal/utils/embeddingInsightViewCodeGenerator/insightViewCodeGenerator.d.ts +2 -2
- package/esm/internal/utils/embeddingInsightViewCodeGenerator/insightViewCodeGenerator.d.ts.map +1 -1
- package/esm/internal/utils/internalIntlProvider.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigMocks.test.helpers.d.ts.map +1 -1
- package/esm/locales.d.ts.map +1 -1
- package/esm/notificationsPanel/Notification/DefaultNotification.d.ts +1 -1
- package/esm/notificationsPanel/Notification/DefaultNotification.d.ts.map +1 -1
- package/esm/notificationsPanel/Notification/Notification.d.ts +1 -1
- package/esm/notificationsPanel/Notification/Notification.d.ts.map +1 -1
- package/esm/notificationsPanel/Notification/Notification.js +7 -21
- package/esm/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetailDialog.js +1 -3
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.js +1 -2
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.d.ts +1 -1
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.d.ts.map +1 -1
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.js +1 -6
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsList.d.ts +1 -1
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsList.d.ts.map +1 -1
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.d.ts +1 -1
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.d.ts.map +1 -1
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.d.ts +1 -1
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.d.ts.map +1 -1
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.js +2 -4
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelButton.d.ts +1 -1
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelButton.d.ts.map +1 -1
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelButton.js +1 -2
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.d.ts +1 -1
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.d.ts.map +1 -1
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.js +1 -3
- package/esm/notificationsPanel/NotificationsPanel/NotificationsPanel.js +1 -2
- package/esm/notificationsPanel/bem.d.ts +2 -2
- package/esm/notificationsPanel/bem.d.ts.map +1 -1
- package/esm/notificationsPanel/components/DetailsDialog.js +1 -5
- package/esm/notificationsPanel/components/Popup.d.ts +1 -1
- package/esm/notificationsPanel/components/Popup.d.ts.map +1 -1
- package/esm/notificationsPanel/components/Tooltip.js +1 -2
- package/esm/notificationsPanel/data/NotificationsContext.d.ts +1 -1
- package/esm/notificationsPanel/data/NotificationsContext.d.ts.map +1 -1
- package/esm/notificationsPanel/data/useFetchNotifications.d.ts +1 -1
- package/esm/notificationsPanel/data/useFetchNotifications.d.ts.map +1 -1
- package/esm/notificationsPanel/data/useNotifications.d.ts +1 -1
- package/esm/notificationsPanel/data/useNotifications.d.ts.map +1 -1
- package/esm/sdk-ui-ext.d.ts +141 -27
- package/esm/share/ObjectShareDialog.js +4 -6
- package/esm/share/accessSummary.d.ts +36 -3
- package/esm/share/accessSummary.d.ts.map +1 -1
- package/esm/share/accessSummary.js +53 -3
- package/esm/share/messages.d.ts.map +1 -1
- package/esm/share/objectShareController.helpers.d.ts +15 -1
- package/esm/share/objectShareController.helpers.d.ts.map +1 -1
- package/esm/share/objectShareController.helpers.js +22 -1
- package/esm/share/objectShareController.types.d.ts +3 -0
- package/esm/share/objectShareController.types.d.ts.map +1 -1
- package/esm/share/types.d.ts +3 -0
- package/esm/share/types.d.ts.map +1 -1
- package/esm/share/useAccessList.d.ts.map +1 -1
- package/esm/share/useAccessList.js +9 -6
- package/esm/share/useLabelScope.d.ts.map +1 -1
- package/esm/share/useObjectAccessLevel.d.ts +40 -0
- package/esm/share/useObjectAccessLevel.d.ts.map +1 -0
- package/esm/share/useObjectAccessLevel.js +49 -0
- package/esm/share/useObjectShareController.js +5 -6
- package/esm/share/useObjectShareDialog.d.ts +1 -1
- package/esm/share/useObjectShareDialog.d.ts.map +1 -1
- package/package.json +24 -24
- package/styles/css/main.css.map +1 -1
- package/styles/internal/css/charts.css +1 -1
- package/styles/internal/css/charts.css.map +1 -1
- package/styles/internal/css/repeater.css +5 -5
|
@@ -112,9 +112,8 @@ function ObjectShareDialogSession({ target, objectTitle, onClose, onSummaryChang
|
|
|
112
112
|
}, onPermissionChange: (level) => onRowPermissionChange(g, level), onRemoveAccess: () => onRowRemove(g) })),
|
|
113
113
|
};
|
|
114
114
|
};
|
|
115
|
-
// Synthesized
|
|
116
|
-
//
|
|
117
|
-
// it — see `adminSelfRow`). The controller decides; this only renders it.
|
|
115
|
+
// Synthesized by the controller, not granted. The tag explains a FETCHED list the
|
|
116
|
+
// caller reached without a grant of their own; a draft needs no explaining.
|
|
118
117
|
const rows = [
|
|
119
118
|
...(state.adminSelfRow
|
|
120
119
|
? [
|
|
@@ -125,7 +124,7 @@ function ObjectShareDialogSession({ target, objectTitle, onClose, onSummaryChang
|
|
|
125
124
|
name: state.adminSelfRow.name,
|
|
126
125
|
}),
|
|
127
126
|
email: state.adminSelfRow.email,
|
|
128
|
-
controls: _jsx(AdminSelfTag, {}),
|
|
127
|
+
controls: draft ? undefined : _jsx(AdminSelfTag, {}),
|
|
129
128
|
},
|
|
130
129
|
]
|
|
131
130
|
: []),
|
|
@@ -174,6 +173,5 @@ function ObjectShareDialogSession({ target, objectTitle, onClose, onSummaryChang
|
|
|
174
173
|
? objectShareMessages.confirmRestrictDescription
|
|
175
174
|
: objectShareMessages.confirmGrantWorkspaceDescription, { title: objectTitle }), confirmLabel: intl.formatMessage(objectShareMessages.confirmButton), confirmVariant: "primary", onCancel: actions.cancelGeneralAccessChange, onClose: actions.cancelGeneralAccessChange, onConfirm: () => {
|
|
176
175
|
void actions.confirmGeneralAccessChange();
|
|
177
|
-
} }), _jsx(UiConfirmDialog, { isOpen: isSelfRestrictConfirmOpen, title: intl.formatMessage(objectShareMessages.selfRestrictTitle), description: intl.formatMessage(objectShareMessages.selfRestrictWarning), confirmLabel: intl.formatMessage(objectShareMessages.confirmButton), confirmVariant: "primary", onCancel: onSelfRestrictCancel, onClose: onSelfRestrictCancel, onConfirm: onSelfRestrictConfirm })
|
|
178
|
-
] }));
|
|
176
|
+
} }), _jsx(UiConfirmDialog, { isOpen: isSelfRestrictConfirmOpen, title: intl.formatMessage(objectShareMessages.selfRestrictTitle), description: intl.formatMessage(objectShareMessages.selfRestrictWarning), confirmLabel: intl.formatMessage(objectShareMessages.confirmButton), confirmVariant: "primary", onCancel: onSelfRestrictCancel, onClose: onSelfRestrictCancel, onConfirm: onSelfRestrictConfirm })] }));
|
|
179
177
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AccessGranteeDetail, IGranularRulesAccess, IObjectAccessList } from "@gooddata/sdk-model";
|
|
1
|
+
import type { AccessGranteeDetail, IGranularRulesAccess, IObjectAccessList, IUser } from "@gooddata/sdk-model";
|
|
2
2
|
import type { GeneralAccessValue } from "@gooddata/sdk-ui-kit";
|
|
3
|
-
import type { ObjectSharePermissionLevel } from "./objectShareController.types.js";
|
|
3
|
+
import type { IObjectShareDraft, ObjectSharePermissionLevel } from "./objectShareController.types.js";
|
|
4
4
|
import type { IObjectAccessSummary } from "./types.js";
|
|
5
5
|
/**
|
|
6
6
|
* All `allWorkspaceUsers` rule grants. With workspace hierarchy the backend
|
|
@@ -48,5 +48,38 @@ export declare function composeEffectiveWorkspaceAccess(direct: GeneralAccessVal
|
|
|
48
48
|
*
|
|
49
49
|
* @internal
|
|
50
50
|
*/
|
|
51
|
-
export declare function accessListToSummary(list: IObjectAccessList): IObjectAccessSummary;
|
|
51
|
+
export declare function accessListToSummary(list: IObjectAccessList, self?: IUser): IObjectAccessSummary;
|
|
52
|
+
/**
|
|
53
|
+
* How an object's access reads: nobody, named grantees, or the whole workspace.
|
|
54
|
+
*
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
export type ObjectShareLevel = "PRIVATE" | "SHARED" | "WORKSPACE";
|
|
58
|
+
/**
|
|
59
|
+
* Explicit grantees other than the caller.
|
|
60
|
+
*
|
|
61
|
+
* @remarks
|
|
62
|
+
* The caller's own grant does not count: the creator is granted access when the object is
|
|
63
|
+
* made, so counting it would read an object only they can see as shared. The summary must
|
|
64
|
+
* therefore come from `accessListToSummary` WITH a caller ref, or a sole own grant counts.
|
|
65
|
+
*
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
export declare function summaryOtherGranteeCount(summary: IObjectAccessSummary): number;
|
|
69
|
+
/**
|
|
70
|
+
* The access level to display for a summary.
|
|
71
|
+
*
|
|
72
|
+
* @remarks
|
|
73
|
+
* Built on {@link summaryOtherGranteeCount}, so it carries the same caller-ref requirement.
|
|
74
|
+
*
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
export declare function summaryToShareLevel(summary: IObjectAccessSummary): ObjectShareLevel;
|
|
78
|
+
/**
|
|
79
|
+
* The same summary for a draft, so it reads like a fetched list. Untouched general access
|
|
80
|
+
* falls back to `initialGeneralAccess`.
|
|
81
|
+
*
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
export declare function draftToSummary(draft: IObjectShareDraft, initialGeneralAccess: GeneralAccessValue): IObjectAccessSummary;
|
|
52
85
|
//# sourceMappingURL=accessSummary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessSummary.d.ts","sourceRoot":"","sources":["../../src/share/accessSummary.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"accessSummary.d.ts","sourceRoot":"","sources":["../../src/share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BAAgB,mBAAmB,CAAC,OAAO,EAAE,oBAAoB,GAAG,gBAAgB,CAKnF;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC1B,KAAK,EAAE,iBAAiB,EACxB,oBAAoB,EAAE,kBAAkB,GACzC,oBAAoB,CAWtB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { directLevel, granteesFromAccessList, strongestLevel } from "./objectShareController.helpers.js";
|
|
2
|
+
import { directLevel, grantHasAccess, granteeId, granteesFromAccessList, selfGranteeRef, strongestLevel, } from "./objectShareController.helpers.js";
|
|
3
3
|
/**
|
|
4
4
|
* All `allWorkspaceUsers` rule grants. With workspace hierarchy the backend
|
|
5
5
|
* returns one entry per granting workspace — this workspace's own grant carries
|
|
@@ -60,10 +60,60 @@ export function composeEffectiveWorkspaceAccess(direct, directLevelValue, inheri
|
|
|
60
60
|
*
|
|
61
61
|
* @internal
|
|
62
62
|
*/
|
|
63
|
-
export function accessListToSummary(list) {
|
|
63
|
+
export function accessListToSummary(list, self) {
|
|
64
64
|
const inheritedLevel = deriveInheritedWorkspaceLevel(list.grants);
|
|
65
|
+
// A revoked-but-still-listed grant (see grantHasAccess) is not a grantee — for the
|
|
66
|
+
// count or for matching the caller's own grant, or the two could disagree about it.
|
|
67
|
+
const grantees = granteesFromAccessList({ grants: list.grants.filter(grantHasAccess) });
|
|
68
|
+
const selfId = self ? granteeId("user", selfGranteeRef(self)) : undefined;
|
|
65
69
|
return {
|
|
66
70
|
...composeEffectiveWorkspaceAccess(deriveGeneralAccess(list.grants), deriveWorkspacePermissionLevel(list.grants), inheritedLevel),
|
|
67
|
-
granteeCount:
|
|
71
|
+
granteeCount: grantees.length,
|
|
72
|
+
selfIsGrantee: selfId !== undefined && grantees.some((g) => g.id === selfId),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Explicit grantees other than the caller.
|
|
77
|
+
*
|
|
78
|
+
* @remarks
|
|
79
|
+
* The caller's own grant does not count: the creator is granted access when the object is
|
|
80
|
+
* made, so counting it would read an object only they can see as shared. The summary must
|
|
81
|
+
* therefore come from `accessListToSummary` WITH a caller ref, or a sole own grant counts.
|
|
82
|
+
*
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
export function summaryOtherGranteeCount(summary) {
|
|
86
|
+
return Math.max(0, summary.granteeCount - (summary.selfIsGrantee ? 1 : 0));
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* The access level to display for a summary.
|
|
90
|
+
*
|
|
91
|
+
* @remarks
|
|
92
|
+
* Built on {@link summaryOtherGranteeCount}, so it carries the same caller-ref requirement.
|
|
93
|
+
*
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
export function summaryToShareLevel(summary) {
|
|
97
|
+
if (summary.generalAccess === "WORKSPACE") {
|
|
98
|
+
return "WORKSPACE";
|
|
99
|
+
}
|
|
100
|
+
return summaryOtherGranteeCount(summary) > 0 ? "SHARED" : "PRIVATE";
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* The same summary for a draft, so it reads like a fetched list. Untouched general access
|
|
104
|
+
* falls back to `initialGeneralAccess`.
|
|
105
|
+
*
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
export function draftToSummary(draft, initialGeneralAccess) {
|
|
109
|
+
const { ruleEdit } = draft;
|
|
110
|
+
const generalAccess = ruleEdit?.generalAccess ?? initialGeneralAccess;
|
|
111
|
+
const granteeCount = Object.values(draft.granteeEdits).filter((edit) => edit.kind === "added").length;
|
|
112
|
+
return {
|
|
113
|
+
generalAccess,
|
|
114
|
+
workspaceLevel: ruleEdit?.level ?? "VIEW",
|
|
115
|
+
granteeCount,
|
|
116
|
+
// The caller's own grant is made on save, so no draft edit can hold it.
|
|
117
|
+
selfIsGrantee: false,
|
|
68
118
|
};
|
|
69
119
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/share/messages.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/share/messages.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB;;QACJ,EAAE;;;QACI,EAAE;;;QACF,EAAE;;;QACI,EAAE;;;QACrB,EAAE;;;QACE,EAAE;;IACvB;;;;OAIG;;QACoB,EAAE;;IACzB;;;OAGG;;QACwB,EAAE;;IAC7B;;;OAGG;;QACuB,EAAE;;IAC5B,0EAA0E;;QAC1C,EAAE;;IAClC;;;OAGG;;QACuB,EAAE;;;QACd,EAAE;;;QACC,EAAE;;;QACA,EAAE;;;QACA,EAAE;;;QACD,EAAE;;;QACK,EAAE;;;QACjB,EAAE;;;QACU,EAAE;;;QACf,EAAE;;CACjB,CAAC"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import { type IAvailableAccessGrantee, type IGranularAccessGrantee, type IObjectAccessList, type ObjRef } from "@gooddata/sdk-model";
|
|
1
|
+
import { type AccessGranteeDetail, type IAvailableAccessGrantee, type IGranularAccessGrantee, type IObjectAccessList, type IUser, type ObjRef } from "@gooddata/sdk-model";
|
|
2
2
|
import type { GranteeEdit, IGranteeIdentityFacts, IObjectShareDraft, IObjectShareGrantee, ISelfIdentity, ObjectSharePermissionLevel } from "./objectShareController.types.js";
|
|
3
3
|
import type { IObjectShareLabel } from "./types.js";
|
|
4
4
|
/** Stable row id shared by grantee rows and picker options: `user:<ref>` / `group:<ref>`. */
|
|
5
5
|
export declare function granteeId(kind: "user" | "group", ref: ObjRef): string;
|
|
6
|
+
/**
|
|
7
|
+
* The caller's ref as an access list identifies them. A profile's own `ref` is a URI while
|
|
8
|
+
* grants carry the user id, so matching on the profile ref never hits.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare function selfGranteeRef(user: IUser): ObjRef;
|
|
6
13
|
/**
|
|
7
14
|
* Real identity facts recovered from converter output that collapses missing
|
|
8
15
|
* fields (`name ?? email ?? id`; grant emails also `email ?? id` — assignee
|
|
@@ -67,6 +74,13 @@ export declare function maxLevel(a: ObjectSharePermissionLevel | undefined, b: O
|
|
|
67
74
|
* from inheritance.
|
|
68
75
|
*/
|
|
69
76
|
export declare function effectivePermissionAbove(direct: ObjectSharePermissionLevel | undefined, inheritedLevel: ObjectSharePermissionLevel | undefined): ObjectSharePermissionLevel | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Whether a fetched grant reaches the object at all — false only for the
|
|
79
|
+
* revoked-but-still-listed placeholder {@link granteeAccess} normalizes to VIEW.
|
|
80
|
+
*
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
export declare function grantHasAccess(grant: AccessGranteeDetail): boolean;
|
|
70
84
|
/**
|
|
71
85
|
* Whether picking `level` for this grantee would change the level they EFFECTIVELY hold.
|
|
72
86
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectShareController.helpers.d.ts","sourceRoot":"","sources":["../../src/share/objectShareController.helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"objectShareController.helpers.d.ts","sourceRoot":"","sources":["../../src/share/objectShareController.helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,KAAK,EACV,KAAK,MAAM,EAKd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EACR,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,0BAA0B,EAC7B,MAAM,kCAAkC,CAAC;AAC1C,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O,CAAA;CAAE,GAAG,SAAS,CAcrD"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { isGranularUserAccess, isGranularUserGroupAccess, objRefToString, } from "@gooddata/sdk-model";
|
|
2
|
+
import { idRef, isGranularUserAccess, isGranularUserGroupAccess, objRefToString, } from "@gooddata/sdk-model";
|
|
3
3
|
/** Stable row id shared by grantee rows and picker options: `user:<ref>` / `group:<ref>`. */
|
|
4
4
|
export function granteeId(kind, ref) {
|
|
5
5
|
return `${kind}:${objRefToString(ref)}`;
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* The caller's ref as an access list identifies them. A profile's own `ref` is a URI while
|
|
9
|
+
* grants carry the user id, so matching on the profile ref never hits.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export function selfGranteeRef(user) {
|
|
14
|
+
return idRef(user.login);
|
|
15
|
+
}
|
|
7
16
|
/**
|
|
8
17
|
* Real identity facts recovered from converter output that collapses missing
|
|
9
18
|
* fields (`name ?? email ?? id`; grant emails also `email ?? id` — assignee
|
|
@@ -166,6 +175,18 @@ function granteeAccess(permissions, inheritedPermissions) {
|
|
|
166
175
|
inheritedLevel,
|
|
167
176
|
};
|
|
168
177
|
}
|
|
178
|
+
/**
|
|
179
|
+
* Whether a fetched grant reaches the object at all — false only for the
|
|
180
|
+
* revoked-but-still-listed placeholder {@link granteeAccess} normalizes to VIEW.
|
|
181
|
+
*
|
|
182
|
+
* @internal
|
|
183
|
+
*/
|
|
184
|
+
export function grantHasAccess(grant) {
|
|
185
|
+
if (isGranularUserAccess(grant) || isGranularUserGroupAccess(grant)) {
|
|
186
|
+
return grant.permissions.length > 0 || grant.inheritedPermissions.length > 0;
|
|
187
|
+
}
|
|
188
|
+
return false;
|
|
189
|
+
}
|
|
169
190
|
/**
|
|
170
191
|
* Whether picking `level` for this grantee would change the level they EFFECTIVELY hold.
|
|
171
192
|
*
|
|
@@ -134,6 +134,9 @@ export interface IObjectShareControllerState {
|
|
|
134
134
|
* through administrator/manager rights. Adding a grantee hides the row;
|
|
135
135
|
* removing the last one brings it back. (Derived from the immutable seed:
|
|
136
136
|
* removing your own grant empties the list but never synthesizes this row.)
|
|
137
|
+
*
|
|
138
|
+
* Also set for the whole of a draft, where the caller will own what they create — the
|
|
139
|
+
* list is theirs either way, so the row holds as grantees are added.
|
|
137
140
|
*/
|
|
138
141
|
adminSelfRow: {
|
|
139
142
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectShareController.types.d.ts","sourceRoot":"","sources":["../../src/share/objectShareController.types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEzG,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE1E;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,GAAG,wBAAwB,CAAC;AAElE;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IAClC,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,aAAc,SAAQ,qBAAqB;IACxD,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAoB,SAAQ,qBAAqB;IAC9D,kFAAkF;IAClF,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,KAAK,EAAE,0BAA0B,CAAC;IAClC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,0BAA0B,CAAC;IACjD;;;;;OAKG;IACH,cAAc,CAAC,EAAE,0BAA0B,CAAC;IAC5C;;;;OAIG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC,OAAO,EAAE,MAAM,GAAG,YAAY,CAAC;IAC/B,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC5D,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC1C,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC;;;;;;OAMG;IACH,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC;;;;;OAKG;IACH,yBAAyB,EAAE,0BAA0B,EAAE,GAAG,SAAS,CAAC;IACpE;;;;OAIG;IACH,uBAAuB,EAAE,0BAA0B,EAAE,GAAG,SAAS,CAAC;IAClE;;;;;;OAMG;IACH,uBAAuB,EAAE,0BAA0B,EAAE,GAAG,SAAS,CAAC;IAClE;;;;;;OAMG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAC/B
|
|
1
|
+
{"version":3,"file":"objectShareController.types.d.ts","sourceRoot":"","sources":["../../src/share/objectShareController.types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEzG,OAAO,KAAK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E;AAC9D;;;;;GAKG;GACD;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC;AAElE;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACtB,aAAa,EAAE,kBAAkB,CAAC;IAClC,KAAK,EAAE,0BAA0B,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,gFAAgF;IAChF,OAAO,CAAC,EAAE,SAAS,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC;IACpD,QAAQ,EAAE,SAAS,GAAG,SAAS,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,2BAA2B,CAAC;IACnC,OAAO,EAAE,6BAA6B,CAAC;IACvC,kEAAkE;IAClE,KAAK,EAAE,iBAAiB,GAAG,SAAS,CAAC;CACxC;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC7B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,8BAA8B;IAC9B,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC;;;OAGG;IACH,yBAAyB,CAAC,EAAE,kBAAkB,CAAC;CAClD"}
|
package/esm/share/types.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export interface IObjectShareLabel {
|
|
|
35
35
|
* rule permits, `VIEW` by default.
|
|
36
36
|
* - `granteeCount` — number of named grantees (users + groups). Excludes the
|
|
37
37
|
* workspace-wide rule grant itself.
|
|
38
|
+
* - `selfIsGrantee` — whether the signed-in user is one of them. The creator is granted
|
|
39
|
+
* access when the object is made, so their own grant says nothing about who else can.
|
|
38
40
|
*
|
|
39
41
|
* @internal
|
|
40
42
|
*/
|
|
@@ -42,5 +44,6 @@ export interface IObjectAccessSummary {
|
|
|
42
44
|
generalAccess: GeneralAccessValue;
|
|
43
45
|
workspaceLevel: AccessGranularPermission;
|
|
44
46
|
granteeCount: number;
|
|
47
|
+
selfIsGrantee: boolean;
|
|
45
48
|
}
|
|
46
49
|
//# sourceMappingURL=types.d.ts.map
|
package/esm/share/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/share/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAC9B,+EAA+E;IAC/E,GAAG,EAAE,MAAM,CAAC;IACZ,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/share/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAC9B,+EAA+E;IAC/E,GAAG,EAAE,MAAM,CAAC;IACZ,2EAA2E;IAC3E,EAAE,EAAE,MAAM,CAAC;IACX,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,oBAAoB;IACjC,aAAa,EAAE,kBAAkB,CAAC;IAClC,cAAc,EAAE,wBAAwB,CAAC;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAccessList.d.ts","sourceRoot":"","sources":["../../src/share/useAccessList.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,wBAAwB,EAAiC,MAAM,2BAA2B,CAAC;AACzG,OAAO,EACH,KAAK,sBAAsB,
|
|
1
|
+
{"version":3,"file":"useAccessList.d.ts","sourceRoot":"","sources":["../../src/share/useAccessList.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,wBAAwB,EAAiC,MAAM,2BAA2B,CAAC;AACzG,OAAO,EACH,KAAK,sBAAsB,EAK9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,KAAK,gBAAgB,EAKxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,sBAAsB,EAAmB,MAAM,sBAAsB,CAAC;AAqB7G,OAAO,KAAK,EAER,2BAA2B,EAC3B,iBAAiB,EACjB,mBAAmB,EACnB,SAAS,EACT,aAAa,EACb,0BAA0B,EAC7B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB,oDAAoD;IACpD,OAAO,EAAE,OAAO,CAAC;IACjB,2EAA2E;IAC3E,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC;;;;;;OAMG;IACH,sBAAsB,EAAE,OAAO,CAAC;IAChC;;;;;OAKG;IACH,sBAAsB,EAAE,OAAO,CAAC;IAChC,6EAA6E;IAC7E,YAAY,EAAE,aAAa,GAAG,SAAS,CAAC;IACxC;;;;;;;;;OASG;IACH,kBAAkB,EAAE,OAAO,GAAG,SAAS,CAAC;IACxC;;;OAGG;IACH,oBAAoB,E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AAC,KAAK,IAAI,CAAC;IAC1D,6DAA6D;IAC7D,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,8FAA8F;IAC9F,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,6DAA6D;IAC7D,KAAK,EAAE,iBAAiB,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,yBAAyB,CAAC,EAAE,kBAAkB,CAAC;CAClD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CACzB,MAAM,EAAE,wBAAwB,GAAG,SAAS,EAC5C,YAAY,GAAE,uBAA4B,GAC3C,WAAW,CAwWb"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useMemo, useState } from "react";
|
|
3
3
|
import { isPermissionEscalationRefused } from "@gooddata/sdk-backend-spi";
|
|
4
|
-
import {
|
|
4
|
+
import { objRefToString, serializeObjRef, } from "@gooddata/sdk-model";
|
|
5
5
|
import { convertError, useBackendStrict, useCancelablePromise, useWorkspaceStrict, } from "@gooddata/sdk-ui";
|
|
6
6
|
import { useToastMessage } from "@gooddata/sdk-ui-kit";
|
|
7
7
|
import { accessListToSummary, composeEffectiveWorkspaceAccess, deriveGeneralAccess, deriveInheritedWorkspaceLevel, deriveWorkspacePermissionLevel, } from "./accessSummary.js";
|
|
8
8
|
import { objectShareMessages } from "./messages.js";
|
|
9
|
-
import { assigneeIdentityFacts, assigneeMatchesQuery, granteeId, granteesFromAccessList, mergeGrantees, userDisplayPair, userIdentityFacts, withDirectLevel, } from "./objectShareController.helpers.js";
|
|
9
|
+
import { assigneeIdentityFacts, assigneeMatchesQuery, granteeId, granteesFromAccessList, mergeGrantees, selfGranteeRef, userDisplayPair, userIdentityFacts, withDirectLevel, } from "./objectShareController.helpers.js";
|
|
10
10
|
/**
|
|
11
11
|
* Owns the backend access list for ONE dialog session: the hook is mounted while
|
|
12
12
|
* the dialog is open, for a single target that must not change while mounted
|
|
@@ -63,7 +63,7 @@ export function useAccessList(target, draftOptions = {}) {
|
|
|
63
63
|
onError: () => { },
|
|
64
64
|
}, [backend, workspace]);
|
|
65
65
|
const isWorkspaceManager = workspacePermissions?.canManageProject;
|
|
66
|
-
const selfId = currentUser ? granteeId("user",
|
|
66
|
+
const selfId = currentUser ? granteeId("user", selfGranteeRef(currentUser)) : undefined;
|
|
67
67
|
// Derived from the immutable SEED (see the interface doc): a caller whose own
|
|
68
68
|
// grant was the way in must not read as grant-independent after removing it.
|
|
69
69
|
const seededWithoutSelfGrant = hasList && selfIdentityResolved && !base.some((g) => g.id === selfId);
|
|
@@ -73,7 +73,7 @@ export function useAccessList(target, draftOptions = {}) {
|
|
|
73
73
|
// De-collapsed like every listing fact — on tiger the user id is often the email.
|
|
74
74
|
const selfIdentity = useMemo(() => currentUser
|
|
75
75
|
? {
|
|
76
|
-
...userIdentityFacts(
|
|
76
|
+
...userIdentityFacts(selfGranteeRef(currentUser), currentUser.fullName, currentUser.email),
|
|
77
77
|
id: currentUser.login,
|
|
78
78
|
}
|
|
79
79
|
: undefined, [currentUser]);
|
|
@@ -87,7 +87,9 @@ export function useAccessList(target, draftOptions = {}) {
|
|
|
87
87
|
const workspaceInheritedLevel = useMemo(() => deriveInheritedWorkspaceLevel(fetchedList?.grants ?? []), [fetchedList]);
|
|
88
88
|
// Keyed on plain values so the summary's identity changes exactly when its
|
|
89
89
|
// content does — consumers (the dialog's onSummaryChange) rely on that.
|
|
90
|
-
const
|
|
90
|
+
const live = grantees.filter((g) => g.pending !== "removing");
|
|
91
|
+
const granteeCount = live.length;
|
|
92
|
+
const selfIsGrantee = live.some((g) => g.isSelf);
|
|
91
93
|
const summary = useMemo(() => {
|
|
92
94
|
if (!hasList) {
|
|
93
95
|
return undefined;
|
|
@@ -96,8 +98,9 @@ export function useAccessList(target, draftOptions = {}) {
|
|
|
96
98
|
return {
|
|
97
99
|
...composeEffectiveWorkspaceAccess(generalAccess, workspaceLevel, workspaceInheritedLevel),
|
|
98
100
|
granteeCount,
|
|
101
|
+
selfIsGrantee,
|
|
99
102
|
};
|
|
100
|
-
}, [hasList, generalAccess, workspaceLevel, workspaceInheritedLevel, granteeCount]);
|
|
103
|
+
}, [hasList, generalAccess, workspaceLevel, workspaceInheritedLevel, granteeCount, selfIsGrantee]);
|
|
101
104
|
// "success" waits for `hasList` so consumers never see success with nothing to show.
|
|
102
105
|
const deriveStatus = () => {
|
|
103
106
|
if (draft) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLabelScope.d.ts","sourceRoot":"","sources":["../../src/share/useLabelScope.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAK1E,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EAI3B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AA6EpD;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,eAAe,EAAE,iBAAiB,EAAE,CAAC;IACrC;;;;;;;;OAQG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;;;;;;;OAQG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B,
|
|
1
|
+
{"version":3,"file":"useLabelScope.d.ts","sourceRoot":"","sources":["../../src/share/useLabelScope.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAK1E,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EAI3B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AA6EpD;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IAC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mBAAmB,EAAE,EACjC,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,KACjC,OAAO,CAAC;QAAE,EAAE,EAAE,OAAO,CAAC;QAAC,cAAc,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;CAC3D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CACzB,MAAM,EAAE,wBAAwB,GAAG,SAAS,EAC5C,MAAM,EAAE,iBAAiB,EAAE,EAC3B,OAAO,EAAE,OAAO,EAChB,mBAAmB,EAAE,MAAM,EAAE,EAC7B,WAAW,EAAE,OAAO,EACpB,aAAa,EAAE,OAAO,GACvB,WAAW,CA6Ob"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type IObjectPermissionsObject } from "@gooddata/sdk-backend-spi";
|
|
2
|
+
import type { GeneralAccessValue } from "@gooddata/sdk-ui-kit";
|
|
3
|
+
import { type ObjectShareLevel } from "./accessSummary.js";
|
|
4
|
+
import type { IObjectShareDraft } from "./objectShareController.types.js";
|
|
5
|
+
import type { IObjectAccessSummary } from "./types.js";
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export interface IUseObjectAccessLevelOptions {
|
|
10
|
+
/** The object to read. Undefined describes one that does not exist yet. */
|
|
11
|
+
target: IObjectPermissionsObject | undefined;
|
|
12
|
+
/** Whether to read at all. False keeps the level unresolved without a request. */
|
|
13
|
+
enabled?: boolean;
|
|
14
|
+
/** Share edits staged for an object that does not exist yet. */
|
|
15
|
+
draft?: IObjectShareDraft;
|
|
16
|
+
/** General access such an object starts from. Defaults to `RESTRICTED`. */
|
|
17
|
+
initialDraftGeneralAccess?: GeneralAccessValue;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface IObjectAccessLevel {
|
|
23
|
+
summary: IObjectAccessSummary | undefined;
|
|
24
|
+
/** Undefined while loading, or when the read failed. */
|
|
25
|
+
level: ObjectShareLevel | undefined;
|
|
26
|
+
isLoading: boolean;
|
|
27
|
+
/** Hand the dialog's reported summary back, so an edit shows without a refetch. */
|
|
28
|
+
onSummaryChange: (summary: IObjectAccessSummary) => void;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* An object's access level, for showing it outside the share dialog.
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* A saved object is read once and then kept in sync by the dialog through `onSummaryChange`.
|
|
35
|
+
* An object that does not exist yet is described by its draft, with no request made.
|
|
36
|
+
*
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
export declare function useObjectAccessLevel({ target, enabled, draft, initialDraftGeneralAccess, }: IUseObjectAccessLevelOptions): IObjectAccessLevel;
|
|
40
|
+
//# sourceMappingURL=useObjectAccessLevel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useObjectAccessLevel.d.ts","sourceRoot":"","sources":["../../src/share/useObjectAccessLevel.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAG1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EACH,KAAK,gBAAgB,EAIxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAIvD;;GAEG;AACH,MAAM,WAAW,4BAA4B;IACzC,2EAA2E;IAC3E,MAAM,EAAE,wBAAwB,GAAG,SAAS,CAAC;IAC7C,kFAAkF;IAClF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gEAAgE;IAChE,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,2EAA2E;IAC3E,yBAAyB,CAAC,EAAE,kBAAkB,CAAC;CAClD;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC1C,wDAAwD;IACxD,KAAK,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACpC,SAAS,EAAE,OAAO,CAAC;IACnB,mFAAmF;IACnF,eAAe,EAAE,CAAC,OAAO,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAC5D;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,EACjC,MAAM,EACN,OAAc,EACd,KAAK,EACL,yBAAwC,GAC3C,EAAE,4BAA4B,GAAG,kBAAkB,CA2CnD"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
import { useCallback, useState } from "react";
|
|
3
|
+
import { objRefToString } from "@gooddata/sdk-model";
|
|
4
|
+
import { useBackendStrict, useCancelablePromise, useWorkspaceStrict } from "@gooddata/sdk-ui";
|
|
5
|
+
import { accessListToSummary, draftToSummary, summaryToShareLevel, } from "./accessSummary.js";
|
|
6
|
+
const EMPTY_DRAFT = { granteeEdits: {}, ruleEdit: undefined };
|
|
7
|
+
/**
|
|
8
|
+
* An object's access level, for showing it outside the share dialog.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* A saved object is read once and then kept in sync by the dialog through `onSummaryChange`.
|
|
12
|
+
* An object that does not exist yet is described by its draft, with no request made.
|
|
13
|
+
*
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export function useObjectAccessLevel({ target, enabled = true, draft, initialDraftGeneralAccess = "RESTRICTED", }) {
|
|
17
|
+
const backend = useBackendStrict();
|
|
18
|
+
const workspace = useWorkspaceStrict();
|
|
19
|
+
// Keyed by the object it describes, so a caller that swaps the object without
|
|
20
|
+
// remounting reads the next one rather than showing this level.
|
|
21
|
+
const [reported, setReported] = useState();
|
|
22
|
+
const key = target && `${workspace}:${target.kind}:${objRefToString(target.ref)}`;
|
|
23
|
+
const known = reported?.key === key ? reported?.summary : undefined;
|
|
24
|
+
// Stops for good once the dialog reports one, so closing it never refetches.
|
|
25
|
+
const read = enabled && target !== undefined && known === undefined;
|
|
26
|
+
const { result, status } = useCancelablePromise({
|
|
27
|
+
promise: read && target
|
|
28
|
+
? async () => {
|
|
29
|
+
// The profile tells the caller's own grant from everyone else's. Without
|
|
30
|
+
// it no count can be trusted, so a failure here fails the whole read.
|
|
31
|
+
const [list, self] = await Promise.all([
|
|
32
|
+
backend.workspace(workspace).objectPermissions().getAccessList(target),
|
|
33
|
+
backend.currentUser().getUser(),
|
|
34
|
+
]);
|
|
35
|
+
return accessListToSummary(list, self);
|
|
36
|
+
}
|
|
37
|
+
: undefined,
|
|
38
|
+
onError: () => { },
|
|
39
|
+
}, [backend, read, key]);
|
|
40
|
+
const summary = target
|
|
41
|
+
? (known ?? result)
|
|
42
|
+
: draftToSummary(draft ?? EMPTY_DRAFT, initialDraftGeneralAccess);
|
|
43
|
+
return {
|
|
44
|
+
summary,
|
|
45
|
+
level: summary ? summaryToShareLevel(summary) : undefined,
|
|
46
|
+
isLoading: summary === undefined && status !== "error",
|
|
47
|
+
onSummaryChange: useCallback((next) => setReported(key ? { key, summary: next } : undefined), [key]),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -634,12 +634,11 @@ export function useObjectShareController(target, options) {
|
|
|
634
634
|
// A share-capable rule also passes the gate, judged from the SEED. A group
|
|
635
635
|
// grant is another way in this cannot see: the heuristic's accepted blind spot.
|
|
636
636
|
//
|
|
637
|
-
//
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
const adminSelfRow = explainsAccessWithoutAGrant && grantees.length === 0 && selfIdentity
|
|
637
|
+
// The heuristic infers how the caller reached a FETCHED list; a draft has none.
|
|
638
|
+
const explainsAccessWithoutAGrant = !draft && status === "success" && seededWithoutSelfGrant && !seededRuleShareCapable;
|
|
639
|
+
// A draft always shows the row — whoever drafts an object will own it — and unlike
|
|
640
|
+
// the empty-state case it holds as grantees are added.
|
|
641
|
+
const adminSelfRow = (draft || (explainsAccessWithoutAGrant && grantees.length === 0)) && selfIdentity
|
|
643
642
|
? userDisplayPair(selfIdentity, selfIdentity.id)
|
|
644
643
|
: undefined;
|
|
645
644
|
return {
|
|
@@ -109,6 +109,6 @@ interface IUseObjectShareDialogParams {
|
|
|
109
109
|
*
|
|
110
110
|
* @internal
|
|
111
111
|
*/
|
|
112
|
-
export declare function useObjectShareDialog({ target, onClose, onSummaryChange, draft, onDraftChange, initialDraft, initialDraftGeneralAccess, labels, labelsLoading, labelsError }: IUseObjectShareDialogParams): IObjectShareDialogViewModel;
|
|
112
|
+
export declare function useObjectShareDialog({ target, onClose, onSummaryChange, draft, onDraftChange, initialDraft, initialDraftGeneralAccess, labels, labelsLoading, labelsError, }: IUseObjectShareDialogParams): IObjectShareDialogViewModel;
|
|
113
113
|
export {};
|
|
114
114
|
//# sourceMappingURL=useObjectShareDialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useObjectShareDialog.d.ts","sourceRoot":"","sources":["../../src/share/useObjectShareDialog.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQ/D,OAAO,KAAK,EACR,6BAA6B,EAC7B,2BAA2B,EAC3B,iBAAiB,EACjB,mBAAmB,EACnB,0BAA0B,EAC7B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAsB1E;;;;;;;GAOG;AACH,MAAM,WAAW,2BAA2B;IACxC,yFAAyF;IACzF,KAAK,EAAE,2BAA2B,CAAC;IACnC,yEAAyE;IACzE,OAAO,EAAE,6BAA6B,CAAC;IAEvC,8EAA8E;IAC9E,eAAe,EAAE,OAAO,CAAC;IACzB,qDAAqD;IACrD,gBAAgB,EAAE,O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