@gooddata/sdk-ui-analytical-designer 11.68.0-alpha.0 → 11.68.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +11041 -61664
- package/README.md +2 -2
- package/esm/actions/app_context_actions.d.ts +0 -15
- package/esm/actions/app_context_actions.d.ts.map +1 -1
- package/esm/actions/data_actions.d.ts +2 -1
- package/esm/actions/data_actions.d.ts.map +1 -1
- package/esm/actions/data_actions.js +2 -2
- package/esm/actions/delete_actions.d.ts +1 -1
- package/esm/actions/delete_actions.d.ts.map +1 -1
- package/esm/actions/delete_actions.js +1 -1
- package/esm/actions/report_actions.d.ts +0 -25
- package/esm/actions/report_actions.d.ts.map +1 -1
- package/esm/actions/report_actions.js +0 -28
- package/esm/components/CatalogPanel.d.ts +1 -5
- package/esm/components/CatalogPanel.d.ts.map +1 -1
- package/esm/components/CatalogPanel.js +4 -28
- package/esm/components/DeleteReportDialogUsageList.d.ts.map +1 -1
- package/esm/components/DeleteReportDialogUsageList.js +33 -17
- package/esm/components/InsightUsageOnDashboards.d.ts.map +1 -1
- package/esm/components/InsightUsageOnDashboards.js +40 -27
- package/esm/components/ReportDescription.js +3 -3
- package/esm/components/Root.js +2 -2
- package/esm/components/SaveReportFromKDDialog.d.ts.map +1 -1
- package/esm/components/SaveReportFromKDDialog.js +11 -4
- package/esm/components/buckets/AttributeBucketItemHyperlinkConfiguration.js +2 -2
- package/esm/components/buckets/BucketReorderableItem.d.ts.map +1 -1
- package/esm/components/buckets/BucketReorderableItem.js +2 -2
- package/esm/components/buckets/DraggableBucketItem.d.ts.map +1 -1
- package/esm/components/buckets/DraggableBucketItem.js +2 -2
- package/esm/components/buckets/MeasureBucketItemConfiguration.d.ts.map +1 -1
- package/esm/components/buckets/MeasureBucketItemConfiguration.js +2 -2
- package/esm/components/buckets/MeasureDateFilter.d.ts.map +1 -1
- package/esm/components/buckets/MeasureDateFilter.js +5 -5
- package/esm/components/buckets/VisualizationPicker.d.ts.map +1 -1
- package/esm/components/buckets/VisualizationPicker.js +4 -4
- package/esm/components/buckets/measureDateFilterOption.d.ts.map +1 -1
- package/esm/components/buckets/measureDateFilterOption.js +2 -2
- package/esm/components/buckets/useMeasureAttributeFilterItems.d.ts.map +1 -1
- package/esm/components/buckets/useMeasureAttributeFilterItems.js +2 -2
- package/esm/components/catalog/Catalog.d.ts.map +1 -1
- package/esm/components/catalog/Catalog.js +2 -5
- package/esm/components/catalog/CatalogList.d.ts +0 -2
- package/esm/components/catalog/CatalogList.d.ts.map +1 -1
- package/esm/components/catalog/CatalogList.js +2 -2
- package/esm/components/catalog/CatalogVisual.d.ts +1 -3
- package/esm/components/catalog/CatalogVisual.d.ts.map +1 -1
- package/esm/components/catalog/CatalogVisual.js +2 -2
- package/esm/components/catalog/blocks/EmptyCatalogWarning.d.ts +1 -3
- package/esm/components/catalog/blocks/EmptyCatalogWarning.d.ts.map +1 -1
- package/esm/components/catalog/blocks/EmptyCatalogWarning.js +3 -3
- package/esm/components/catalog/hooks/GroupHook.d.ts.map +1 -1
- package/esm/components/catalog/hooks/GroupHook.js +4 -3
- package/esm/components/catalog/hooks/ScrollableAreaHook.d.ts.map +1 -1
- package/esm/components/catalog/hooks/ScrollableAreaHook.js +2 -2
- package/esm/components/catalog/hooks/TabsHook.d.ts.map +1 -1
- package/esm/components/catalog/hooks/TabsHook.js +3 -3
- package/esm/components/catalog/item/CatalogDetailsBubble.d.ts.map +1 -1
- package/esm/components/catalog/item/CatalogDetailsBubble.js +7 -44
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateAttributesDropdown.js +1 -1
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.js +4 -4
- package/esm/components/filterBar/dateFilter/DateFilter.js +2 -2
- package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.js +2 -2
- package/esm/components/filterBar/dateFilter/presets.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/presets.js +2 -2
- package/esm/components/header/InsightPickerDialog.d.ts.map +1 -1
- package/esm/components/header/InsightPickerDialog.js +5 -1
- package/esm/components/header/VisualizationsDropdown.d.ts.map +1 -1
- package/esm/components/header/VisualizationsDropdown.js +15 -13
- package/esm/components/report/ReportVisualization.d.ts.map +1 -1
- package/esm/components/report/ReportVisualization.js +2 -2
- package/esm/components/report/WorkspaceEmpty.d.ts.map +1 -1
- package/esm/components/report/WorkspaceEmpty.js +1 -10
- package/esm/components/report/reportUtils.d.ts.map +1 -1
- package/esm/components/report/reportUtils.js +3 -3
- package/esm/components/saveReportFromKD/DocumentItem.d.ts +6 -0
- package/esm/components/saveReportFromKD/DocumentItem.d.ts.map +1 -0
- package/esm/components/saveReportFromKD/DocumentItem.js +11 -0
- package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.d.ts +3 -2
- package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.d.ts.map +1 -1
- package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.js +3 -2
- package/esm/components/shared/AttributeBubbleContent.d.ts.map +1 -1
- package/esm/components/shared/AttributeBubbleContent.js +5 -3
- package/esm/components/shared/ComputedAttributeBubbleContent.d.ts.map +1 -1
- package/esm/components/shared/ComputedAttributeBubbleContent.js +2 -2
- package/esm/components/shared/MeasureBubbleContent.d.ts +2 -9
- package/esm/components/shared/MeasureBubbleContent.d.ts.map +1 -1
- package/esm/components/shared/MeasureBubbleContent.js +5 -11
- package/esm/constants/actions.d.ts +0 -4
- package/esm/constants/actions.d.ts.map +1 -1
- package/esm/constants/actions.js +0 -4
- package/esm/convertors/fromBackend/VisualizationConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/VisualizationConverter.js +5 -5
- package/esm/convertors/toBackend/InsightConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/InsightConverter.js +10 -9
- package/esm/convertors/toBackend/MeasureConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/MeasureConverter.js +2 -2
- package/esm/convertors/toBackend/afm/ExecutionConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/afm/ExecutionConverter.js +4 -4
- package/esm/convertors/toBackend/afm/FilterConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/afm/FilterConverter.js +2 -2
- package/esm/convertors/toBackend/afm/MeasureConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/afm/MeasureConverter.js +2 -2
- package/esm/create_store.js +1 -1
- package/esm/embedding/analyticalDesignerConfig.d.ts.map +1 -1
- package/esm/embedding/analyticalDesignerConfig.js +0 -1
- package/esm/embedding/analyticalDesignerTypes.d.ts +4 -0
- package/esm/embedding/analyticalDesignerTypes.d.ts.map +1 -1
- package/esm/embedding/platformContext.d.ts +2 -2
- package/esm/embedding/platformContext.d.ts.map +1 -1
- package/esm/embedding/platformContext.js +2 -9
- package/esm/internal.d.ts +1 -2
- package/esm/internal.d.ts.map +1 -1
- package/esm/internal.js +1 -2
- package/esm/models/catalog.d.ts.map +1 -1
- package/esm/models/catalog.js +3 -2
- package/esm/models/decorated_bucket_item.d.ts.map +1 -1
- package/esm/models/decorated_bucket_item.js +2 -2
- package/esm/models/decorated_metric_attribute_filter.d.ts.map +1 -1
- package/esm/models/decorated_metric_attribute_filter.js +3 -2
- package/esm/models/metadata.d.ts +7 -5
- package/esm/models/metadata.d.ts.map +1 -1
- package/esm/models/metadata.js +26 -16
- package/esm/models/preset_item.d.ts.map +1 -1
- package/esm/models/preset_item.js +4 -3
- package/esm/postMessageApi/actions/open_insight_actions.d.ts.map +1 -1
- package/esm/postMessageApi/actions/open_insight_actions.js +2 -2
- package/esm/postMessageApi/sagas/command_received_saga.d.ts +68 -1
- package/esm/postMessageApi/sagas/command_received_saga.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/command_received_saga.js +16 -3
- package/esm/postMessageApi/sagas/control_filtering_saga.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/control_filtering_saga.js +6 -6
- package/esm/postMessageApi/sagas/incoming_command_sagas.d.ts +67 -1
- package/esm/postMessageApi/sagas/incoming_command_sagas.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/post_message_saga_helper.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/post_message_saga_helper.js +3 -3
- package/esm/reduxStore.d.ts +1 -1
- package/esm/reduxStore.d.ts.map +1 -1
- package/esm/reduxStore.js +1 -1
- package/esm/sagas/bootstrap/backendBootstrapData.d.ts +1 -1
- package/esm/sagas/bootstrap/backendBootstrapData.js +1 -1
- package/esm/sagas/bootstrap/verifyUserAccess.d.ts.map +1 -1
- package/esm/sagas/bootstrap/verifyUserAccess.js +1 -5
- package/esm/sagas/bootstrap_error_sagas.d.ts +1 -1
- package/esm/sagas/bootstrap_error_sagas.d.ts.map +1 -1
- package/esm/sagas/bootstrap_error_sagas.js +1 -3
- package/esm/sagas/catalog/catalog_saga.d.ts.map +1 -1
- package/esm/sagas/catalog/catalog_saga.js +3 -3
- package/esm/sagas/delete_report_sagas.d.ts.map +1 -1
- package/esm/sagas/delete_report_sagas.js +6 -3
- package/esm/sagas/drillable_items_sagas.d.ts +2 -3
- package/esm/sagas/drillable_items_sagas.d.ts.map +1 -1
- package/esm/sagas/drillable_items_sagas.js +4 -8
- package/esm/sagas/export_report_sagas.d.ts +1 -23
- package/esm/sagas/export_report_sagas.d.ts.map +1 -1
- package/esm/sagas/export_report_sagas.js +5 -51
- package/esm/sagas/open_report_sagas.d.ts +9 -2
- package/esm/sagas/open_report_sagas.d.ts.map +1 -1
- package/esm/sagas/open_report_sagas.js +8 -5
- package/esm/sagas/sagas.d.ts +67 -1
- package/esm/sagas/sagas.d.ts.map +1 -1
- package/esm/sagas/sagas.js +0 -2
- package/esm/sdk-ui-analytical-designer.d.ts +4 -0
- package/esm/selectors/backend_capabilities_selector.d.ts +0 -1
- package/esm/selectors/backend_capabilities_selector.d.ts.map +1 -1
- package/esm/selectors/backend_capabilities_selector.js +0 -1
- package/esm/selectors/bootstrap_selector.d.ts +0 -189
- package/esm/selectors/bootstrap_selector.d.ts.map +1 -1
- package/esm/selectors/bootstrap_selector.js +0 -13
- package/esm/selectors/buckets_selector.d.ts.map +1 -1
- package/esm/selectors/buckets_selector.js +8 -7
- package/esm/selectors/export_button_selector.d.ts.map +1 -1
- package/esm/selectors/export_button_selector.js +2 -2
- package/esm/selectors/feature_flag_selector.d.ts +8 -28
- package/esm/selectors/feature_flag_selector.d.ts.map +1 -1
- package/esm/selectors/feature_flag_selector.js +2 -1
- package/esm/selectors/insight_delete_selector.d.ts +122 -0
- package/esm/selectors/insight_delete_selector.d.ts.map +1 -0
- package/esm/selectors/insight_delete_selector.js +13 -0
- package/esm/selectors/insight_selectors.d.ts.map +1 -1
- package/esm/selectors/insight_selectors.js +3 -3
- package/esm/selectors/report_selector.d.ts.map +1 -1
- package/esm/selectors/report_selector.js +3 -2
- package/esm/selectors/report_visualization_selector.d.ts +12 -8
- package/esm/selectors/report_visualization_selector.d.ts.map +1 -1
- package/esm/selectors/reset_button_selector.d.ts.map +1 -1
- package/esm/selectors/reset_button_selector.js +3 -3
- package/esm/selectors/route_selector.d.ts.map +1 -1
- package/esm/selectors/route_selector.js +2 -3
- package/esm/selectors/save_report_from_kd_dialog_selector.d.ts +26 -2
- package/esm/selectors/save_report_from_kd_dialog_selector.d.ts.map +1 -1
- package/esm/selectors/save_report_from_kd_dialog_selector.js +3 -2
- package/esm/selectors/save_report_selector.d.ts +45 -5
- package/esm/selectors/save_report_selector.d.ts.map +1 -1
- package/esm/selectors/save_report_selector.js +24 -12
- package/esm/services/bootstrap_error_service.d.ts +1 -4
- package/esm/services/bootstrap_error_service.d.ts.map +1 -1
- package/esm/services/bootstrap_error_service.js +12 -46
- package/esm/services/date_datasets_service.d.ts.map +1 -1
- package/esm/services/date_datasets_service.js +3 -2
- package/esm/services/reference_point_service.js +3 -3
- package/esm/services/report_service.d.ts +1 -2
- package/esm/services/report_service.d.ts.map +1 -1
- package/esm/services/report_service.js +4 -37
- package/esm/services/telemetry/tracking_events.d.ts +0 -7
- package/esm/services/telemetry/tracking_events.d.ts.map +1 -1
- package/esm/services/telemetry/tracking_events.js +0 -5
- package/esm/services/visualization_class_service.d.ts.map +1 -1
- package/esm/services/visualization_class_service.js +2 -2
- package/esm/store/attribute_elements/attribute_elements_reducer.d.ts.map +1 -1
- package/esm/store/attribute_elements/attribute_elements_reducer.js +6 -5
- package/esm/store/bucket_filters/bucket_filters_operations.d.ts.map +1 -1
- package/esm/store/bucket_filters/bucket_filters_operations.js +3 -3
- package/esm/store/buckets/buckets_removal_helpers.d.ts.map +1 -1
- package/esm/store/buckets/buckets_removal_helpers.js +4 -4
- package/esm/store/buckets/buckets_totals_helpers.d.ts.map +1 -1
- package/esm/store/buckets/buckets_totals_helpers.js +3 -3
- package/esm/store/buckets/extended_reference_point_operations.d.ts.map +1 -1
- package/esm/store/buckets/extended_reference_point_operations.js +3 -3
- package/esm/store/buckets/helpers/measure_format.d.ts.map +1 -1
- package/esm/store/buckets/helpers/measure_format.js +2 -2
- package/esm/store/buckets/helpers/totals_for_new_measure.d.ts.map +1 -1
- package/esm/store/buckets/helpers/totals_for_new_measure.js +4 -3
- package/esm/store/catalog/catalog_reducer.d.ts.map +1 -1
- package/esm/store/catalog/catalog_reducer.js +4 -4
- package/esm/store/execution/execution_helpers.d.ts.map +1 -1
- package/esm/store/execution/execution_helpers.js +3 -3
- package/esm/store/filter_bar/filter_bar_helpers.d.ts.map +1 -1
- package/esm/store/filter_bar/filter_bar_helpers.js +3 -2
- package/esm/store/filter_bar/filter_bar_types.d.ts.map +1 -1
- package/esm/store/filter_bar/filter_bar_types.js +7 -7
- package/esm/store/filter_bar/parameter_filter_types.d.ts.map +1 -1
- package/esm/store/filter_bar/parameter_filter_types.js +2 -2
- package/esm/store/insight_usage/insight_usage_helpers.d.ts +2 -1
- package/esm/store/insight_usage/insight_usage_helpers.d.ts.map +1 -1
- package/esm/store/insight_usage/insight_usage_helpers.js +1 -0
- package/esm/store/insight_usage/insight_usage_selectors.d.ts +23 -0
- package/esm/store/insight_usage/insight_usage_selectors.d.ts.map +1 -1
- package/esm/store/insight_usage/insight_usage_selectors.js +4 -1
- package/esm/store/insight_usage/insight_usage_slice.d.ts.map +1 -1
- package/esm/store/insight_usage/insight_usage_slice.js +1 -0
- package/esm/store/insight_usage/insight_usage_state.d.ts +6 -0
- package/esm/store/insight_usage/insight_usage_state.d.ts.map +1 -1
- package/esm/store/item_cache/item_cache_helpers.d.ts.map +1 -1
- package/esm/store/item_cache/item_cache_helpers.js +3 -2
- package/esm/store/measure_date_datasets/measure_date_datasets_helpers.d.ts.map +1 -1
- package/esm/store/measure_date_datasets/measure_date_datasets_helpers.js +2 -2
- package/esm/store/messages/messages_slice.d.ts.map +1 -1
- package/esm/store/messages/messages_slice.js +5 -11
- package/esm/store/metric_editor/metric_editor_sagas.d.ts.map +1 -1
- package/esm/store/metric_editor/metric_editor_sagas.js +4 -4
- package/esm/store/properties/properties_helpers.d.ts.map +1 -1
- package/esm/store/properties/properties_helpers.js +5 -4
- package/esm/store/properties/properties_operation.d.ts.map +1 -1
- package/esm/store/properties/properties_operation.js +2 -2
- package/esm/store/properties/properties_slice.d.ts.map +1 -1
- package/esm/store/properties/properties_slice.js +3 -3
- package/esm/store/recommendations/recommendations_slice.d.ts.map +1 -1
- package/esm/store/recommendations/recommendations_slice.js +2 -2
- package/esm/store/report/report_slices.d.ts.map +1 -1
- package/esm/store/report/report_slices.js +3 -3
- package/esm/tests/constants.test.helpers.d.ts.map +1 -1
- package/esm/tests/constants.test.helpers.js +2 -2
- package/esm/translations/de-DE.json +7 -7
- package/esm/translations/en-AU.json +7 -7
- package/esm/translations/en-GB.json +7 -7
- package/esm/translations/en-US.json +56 -36
- package/esm/translations/es-419.json +7 -7
- package/esm/translations/es-ES.json +7 -7
- package/esm/translations/fi-FI.json +7 -7
- package/esm/translations/fr-CA.json +9 -9
- package/esm/translations/fr-FR.json +7 -7
- package/esm/translations/id-ID.json +7 -7
- package/esm/translations/it-IT.json +8 -8
- package/esm/translations/ja-JP.json +9 -9
- package/esm/translations/ko-KR.json +35 -35
- package/esm/translations/nl-NL.json +7 -7
- package/esm/translations/pl-PL.json +28 -28
- package/esm/translations/pt-BR.json +7 -7
- package/esm/translations/pt-PT.json +7 -7
- package/esm/translations/ru-RU.json +9 -9
- package/esm/translations/sl-SI.json +7 -7
- package/esm/translations/th-TH.json +7 -7
- package/esm/translations/tr-TR.json +19 -19
- package/esm/translations/uk-UA.json +7 -7
- package/esm/translations/vi-VN.json +7 -7
- package/esm/translations/zh-HK.json +34 -34
- package/esm/translations/zh-Hans.json +7 -7
- package/esm/translations/zh-Hant.json +25 -25
- package/esm/typings/bear/bearTypes.d.ts +0 -3
- package/esm/typings/bear/bearTypes.d.ts.map +1 -1
- package/esm/typings/bear/bearTypes.js +26 -26
- package/esm/typings/catalog.d.ts +4 -2
- package/esm/typings/catalog.d.ts.map +1 -1
- package/esm/utils/api.d.ts +0 -2
- package/esm/utils/api.d.ts.map +1 -1
- package/esm/utils/api.js +4 -13
- package/esm/utils/custom_mouse_backend.js +1 -1
- package/esm/utils/date_datasets.js +4 -4
- package/esm/utils/date_datasets_meta.d.ts.map +1 -1
- package/esm/utils/date_datasets_meta.js +4 -4
- package/esm/utils/drilling/types.d.ts.map +1 -1
- package/esm/utils/drilling/types.js +15 -15
- package/esm/utils/dropdown.js +2 -2
- package/esm/utils/hooks/WindowResizeHook.js +2 -2
- package/esm/utils/id_prefix_sanitize.d.ts.map +1 -1
- package/esm/utils/id_prefix_sanitize.js +10 -9
- package/esm/utils/location.d.ts +1 -3
- package/esm/utils/location.d.ts.map +1 -1
- package/esm/utils/location.js +2 -7
- package/esm/utils/measure_descriptions.d.ts.map +1 -1
- package/esm/utils/measure_descriptions.js +2 -2
- package/esm/utils/sdkModelToADRep/InsightConverter.d.ts.map +1 -1
- package/esm/utils/sdkModelToADRep/InsightConverter.js +11 -10
- package/esm/utils/sdkModelToADRep/MeasureConverter.d.ts.map +1 -1
- package/esm/utils/sdkModelToADRep/MeasureConverter.js +2 -2
- package/esm/utils/telemetry/tableTotals.d.ts.map +1 -1
- package/esm/utils/telemetry/tableTotals.js +2 -2
- package/esm/utils/visualization_class.d.ts.map +1 -1
- package/esm/utils/visualization_class.js +6 -6
- package/esm/utils/visualization_properties.d.ts.map +1 -1
- package/esm/utils/visualization_properties.js +2 -2
- package/package.json +21 -21
- package/styles/css/catalog.css +1 -9
- package/styles/css/catalog.css.map +1 -1
- package/styles/css/delete_report_dialog.css +16 -0
- package/styles/css/delete_report_dialog.css.map +1 -1
- package/styles/css/editor_canvas.css +0 -4
- package/styles/css/editor_canvas.css.map +1 -1
- package/styles/css/editor_header.css +80 -71
- package/styles/css/editor_header.css.map +1 -1
- package/styles/css/export.css +4 -8
- package/styles/css/export.css.map +1 -1
- package/styles/css/main.css +116 -113
- package/styles/css/main.css.map +1 -1
- package/styles/css/open_visualizations.css +11 -11
- package/styles/css/open_visualizations.css.map +1 -1
- package/styles/css/save_report_from_kd_dialog.css +6 -0
- package/styles/css/save_report_from_kd_dialog.css.map +1 -1
- package/styles/scss/_component_overrides.scss +0 -10
- package/styles/scss/catalog.scss +0 -1
- package/styles/scss/delete_report_dialog.scss +21 -1
- package/styles/scss/editor_canvas.scss +0 -4
- package/styles/scss/editor_header.scss +85 -83
- package/styles/scss/export.scss +42 -40
- package/styles/scss/open_visualizations.scss +4 -3
- package/styles/scss/save_report_from_kd_dialog.scss +8 -0
- package/esm/bearLegacyFunctions.d.ts +0 -22
- package/esm/bearLegacyFunctions.d.ts.map +0 -1
- package/esm/bearLegacyFunctions.js +0 -35
- package/esm/components/catalog/blocks/CreateMeasureLink.d.ts +0 -7
- package/esm/components/catalog/blocks/CreateMeasureLink.d.ts.map +0 -1
- package/esm/components/catalog/blocks/CreateMeasureLink.js +0 -17
- package/esm/sagas/application_redirect_sagas.d.ts +0 -18
- package/esm/sagas/application_redirect_sagas.d.ts.map +0 -1
- package/esm/sagas/application_redirect_sagas.js +0 -68
- package/esm/selectors/data_page_selector.d.ts +0 -44
- package/esm/selectors/data_page_selector.d.ts.map +0 -1
- package/esm/selectors/data_page_selector.js +0 -6
- package/esm/utils/sso.d.ts +0 -3
- package/esm/utils/sso.d.ts.map +0 -1
- package/esm/utils/sso.js +0 -5
- package/esm/utils/uri.d.ts +0 -2
- package/esm/utils/uri.d.ts.map +0 -1
- package/esm/utils/uri.js +0 -7
|
@@ -7,20 +7,13 @@ import { useDispatch, useSelector } from "react-redux";
|
|
|
7
7
|
import { Bubble, BubbleHoverTrigger, Button, IconCopy, RichText, ScrollGradient } from "@gooddata/sdk-ui-kit";
|
|
8
8
|
import { useTheme } from "@gooddata/sdk-ui-theme-provider";
|
|
9
9
|
import { addMessage } from "../../../actions/messages_actions.js";
|
|
10
|
-
import { COMPUTED_ATTRIBUTE } from "../../../constants/bucket.js";
|
|
11
10
|
import { CatalogUiActions } from "../../../sagas/catalog/catalog_ui_actions.js";
|
|
12
11
|
import { getCatalogBubbleItemCacheKey } from "../../../sagas/catalog/catalog_utils.js";
|
|
13
|
-
import {
|
|
14
|
-
import { getProjectId, getSeparators } from "../../../selectors/bootstrap_selector.js";
|
|
15
|
-
import { getIsEmbedded } from "../../../selectors/meta_selector.js";
|
|
12
|
+
import { getSeparators } from "../../../selectors/bootstrap_selector.js";
|
|
16
13
|
import { canEditCatalogMetric } from "../../../selectors/metric_permissions_selector.js";
|
|
17
|
-
import { canManageMetric } from "../../../selectors/permissions_selector.js";
|
|
18
|
-
import { isEmbeddedFromKD } from "../../../selectors/route_selector.js";
|
|
19
14
|
import { getAttributeHierarchiesWithCatalogItem, getItemTooltipDetails, } from "../../../store/catalog/catalog_selector.js";
|
|
20
15
|
import { metricEditorOpen } from "../../../store/metric_editor/metric_editor_actions.js";
|
|
21
|
-
import { getMetricsEditorUrl } from "../../../utils/api.js";
|
|
22
16
|
import { getCatalogItemTitle } from "../../../utils/translations.js";
|
|
23
|
-
import { getWorkspaceRef } from "../../../utils/uri.js";
|
|
24
17
|
import { AttributeBubbleContent } from "../../shared/AttributeBubbleContent.js";
|
|
25
18
|
import { ComputedAttributeBubbleContent } from "../../shared/ComputedAttributeBubbleContent.js";
|
|
26
19
|
import { FactBubbleContent } from "../../shared/FactBubbleContent.js";
|
|
@@ -71,11 +64,6 @@ const getBubbleDetails = (state, item) => {
|
|
|
71
64
|
};
|
|
72
65
|
export const CatalogDetailsBubble = memo(function CatalogDetailsBubble({ item }) {
|
|
73
66
|
const theme = useTheme();
|
|
74
|
-
const projectId = useSelector(getProjectId);
|
|
75
|
-
const isEmbeddedMode = useSelector(getIsEmbedded);
|
|
76
|
-
const isEmbeddedModeFromKD = useSelector(isEmbeddedFromKD);
|
|
77
|
-
const canUserManageMetric = useSelector(canManageMetric);
|
|
78
|
-
const canBackendManageMetadata = useSelector(canManageMetadata);
|
|
79
67
|
const bubbleDetails = useSelector((state) => getBubbleDetails(state, item)) ?? null;
|
|
80
68
|
// memoised per item: getAttributeHierarchiesWithCatalogItem builds a filtering selector, so a
|
|
81
69
|
// fresh one on every render would hand useSelector a new array each time it is called
|
|
@@ -89,7 +77,6 @@ export const CatalogDetailsBubble = memo(function CatalogDetailsBubble({ item })
|
|
|
89
77
|
const openMetricEditorDialog = useCallback((metricRef) => dispatch(metricEditorOpen(metricRef)), [dispatch]);
|
|
90
78
|
const showToastMessage = useCallback((payload) => dispatch(addMessage(payload)), [dispatch]);
|
|
91
79
|
const intl = useIntl();
|
|
92
|
-
const workspacesRef = getWorkspaceRef(true);
|
|
93
80
|
const bubbleTimeoutRef = useRef(null);
|
|
94
81
|
// Keep the latest details in a ref so the delayed (attribute) request can re-check them at the
|
|
95
82
|
// moment it fires, rather than the stale value captured when the timeout was scheduled.
|
|
@@ -152,40 +139,18 @@ export const CatalogDetailsBubble = memo(function CatalogDetailsBubble({ item })
|
|
|
152
139
|
"s-catalogue-bubble-loading": !details,
|
|
153
140
|
});
|
|
154
141
|
};
|
|
155
|
-
const
|
|
156
|
-
const itemUri = item.uri;
|
|
157
|
-
const url = getMetricsEditorUrl(projectId, itemUri, workspacesRef);
|
|
158
|
-
window.open(`${window.location.origin}${url}`, "_blank");
|
|
159
|
-
};
|
|
160
|
-
const isRedirectAllowed = () => {
|
|
161
|
-
const itemUri = item.uri;
|
|
162
|
-
return (
|
|
163
|
-
// The redirect opens the metric editor, which loads a measure. A computed attribute
|
|
164
|
-
// borrows the metric bubble but is not one, so the editor would 404 on its uri.
|
|
165
|
-
item.type !== COMPUTED_ATTRIBUTE &&
|
|
166
|
-
(!isEmbeddedMode || isEmbeddedModeFromKD) &&
|
|
167
|
-
canBackendManageMetadata &&
|
|
168
|
-
canUserManageMetric &&
|
|
169
|
-
!!itemUri);
|
|
170
|
-
};
|
|
171
|
-
const renderTitle = () => {
|
|
172
|
-
const title = getCatalogItemTitle(item, intl);
|
|
173
|
-
if (isRedirectAllowed()) {
|
|
174
|
-
return (_jsx("a", { className: "gd-button-link s-adi-catalog-tooltip-title-redirect", href: getMetricsEditorUrl(projectId, item.uri, workspacesRef), target: "_blank", rel: "noopener noreferrer", children: _jsx("h3", { className: "s-adi-catalog-tooltip-heading", children: _jsx("span", { className: "gd-button-text", children: title }) }) }));
|
|
175
|
-
}
|
|
176
|
-
return _jsx("h3", { className: "s-adi-catalog-tooltip-heading", children: title });
|
|
177
|
-
};
|
|
142
|
+
const renderTitle = () => (_jsx("h3", { className: "s-adi-catalog-tooltip-heading", children: getCatalogItemTitle(item, intl) }));
|
|
178
143
|
const renderDetails = () => {
|
|
179
144
|
const type = item.type;
|
|
180
145
|
switch (type) {
|
|
181
146
|
case "metric":
|
|
182
147
|
case "measure":
|
|
183
|
-
return
|
|
148
|
+
return _jsx(MeasureBubbleContent, { metricMaql: getItemDetails("metricMaql") });
|
|
184
149
|
// A computed attribute is an attribute with values AND a MAQL definition: the values
|
|
185
150
|
// are shown first like an attribute's, then the definition the same way a metric's is
|
|
186
151
|
// - with the referenced objects resolved to their titles.
|
|
187
152
|
case "computedAttribute":
|
|
188
|
-
return (_jsx(ComputedAttributeBubbleContent, { attrElements: getItemDetails("attrElements"), attrElementsTotalCount: getItemDetails("attrElementsTotalCount"), attrElementsNumberFormat: getItemDetails("attrElementsNumberFormat"), separators: separators, metricMaql: getItemDetails("metricMaql")
|
|
153
|
+
return (_jsx(ComputedAttributeBubbleContent, { attrElements: getItemDetails("attrElements"), attrElementsTotalCount: getItemDetails("attrElementsTotalCount"), attrElementsNumberFormat: getItemDetails("attrElementsNumberFormat"), separators: separators, metricMaql: getItemDetails("metricMaql") }));
|
|
189
154
|
case "attribute":
|
|
190
155
|
return (_jsx(AttributeBubbleContent, { attrElements: getItemDetails("attrElements"), attrElementsTotalCount: getItemDetails("attrElementsTotalCount"), attrElementsNumberFormat: getItemDetails("attrElementsNumberFormat"), separators: separators, dataset: getItemDetails("dataset") }));
|
|
191
156
|
case "fact":
|
|
@@ -231,9 +196,7 @@ export const CatalogDetailsBubble = memo(function CatalogDetailsBubble({ item })
|
|
|
231
196
|
{ align: "cr tl", offset: { x: -15, y: 0 } },
|
|
232
197
|
], arrowStyle: { display: "none" }, children: [_jsx("div", { className: "adi-catalog-tooltip-header", children: renderTitle() }), _jsxs(ScrollGradient, { size: 13, backgroundColor: theme?.palette?.complementary?.c0, className: "adi-catalog-tooltip-scroll", contentClassName: "adi-catalog-tooltip-scroll-content", onScroll: stopEventPropagation, children: [summary ? (_jsx("div", { className: "adi-item-description s-adi-catalog-tooltip-description", children: _jsx(RichText, { referencesEnabled: true, className: "adi-item-rich-text-description", value: summary, renderMode: "view", separators: separators }) })) : null, _jsx("h4", { children: _jsx(FormattedMessage, { id: "dashboard.catalog_item.type" }) }), _jsx("p", { className: "adi-item-type s-adi-catalog-tooltip-type", children: intl.formatMessage(bucketItemTypeMessages[type] ?? {
|
|
233
198
|
id: `bucket_item_types.${type}`,
|
|
234
|
-
}) }), renderDetails(), renderIdentifier(), renderHierarchies()] }),
|
|
235
|
-
id:
|
|
236
|
-
}), onClick:
|
|
237
|
-
id: metricActionButtonValue,
|
|
238
|
-
}), onClick: openMetricEditorDialogHandler }) }))] })] })] }) }));
|
|
199
|
+
}) }), renderDetails(), renderIdentifier(), renderHierarchies()] }), _jsx("div", { className: "adi-catalog-tooltip-footer", children: (type === "measure" || type === "metric") && (_jsx("div", { className: "adi-catalog-tooltip-metric-editor-edit", children: _jsx(Button, { className: buttonActionClassnames, value: intl.formatMessage({
|
|
200
|
+
id: metricActionButtonValue,
|
|
201
|
+
}), onClick: openMetricEditorDialogHandler }) })) })] })] }) }));
|
|
239
202
|
});
|
|
@@ -10,7 +10,7 @@ import { DateGranularitySubMenuItems } from "../../../buckets/categories/DateGra
|
|
|
10
10
|
// dropdown gets an inline z-index from that controller and would otherwise paint over the menu
|
|
11
11
|
// (the .adi-date-granularity-dropdown CSS pins 5001, tying only with un-controlled overlays).
|
|
12
12
|
// Mounted only while the menu is open, so it registers on open and releases on close; without a
|
|
13
|
-
// controller it falls back to 5001,
|
|
13
|
+
// controller it falls back to 5001, the same z-index as the un-controlled overlays.
|
|
14
14
|
function MenuItemsWrapper({ children }) {
|
|
15
15
|
const zIndex = useOverlayZIndexWithRegister();
|
|
16
16
|
return (_jsx(ItemsWrapper, { className: "adi-additional-date-granularities-dropdown s-adi-additional-date-granularities-dropdown adi-date-granularity-dropdown", smallItemsSpacing: true, style: { zIndex }, children: children }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyButtonHook.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/Buttons/applyButtonHook.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"applyButtonHook.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/Buttons/applyButtonHook.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,sBAAsB,EAA2B,MAAM,kBAAkB,CAAC;AACxF,OAAO,EACH,KAAK,gBAAgB,EAGxB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACxB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AA+DvE,eAAO,MAAM,qBAAqB,mBACd,iBAAiB,kBACjB,iBAAiB,uBACZ,qBAAqB,uBACrB,qBAAqB,8BACd,sBAAsB,8BACtB,sBAAsB,8BACtB,MAAM,EAAE,8BACR,MAAM,EAAE,yBACb,gBAAgB,EAAE,iCACV,gBAAgB,EAAE,sBAC7B,OAAO,sCACS,yBAAyB,sCACzB,yBAAyB,YAiChE,CAAC;AAEF,eAAO,MAAM,6BAA6B,mBACtB,gBAAgB,8BACJ,sBAAsB,sBAC9B,OAAO,sCACS,yBAAyB,uBAuBhE,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import { isEqual } from "lodash-es";
|
|
3
2
|
import moment from "moment";
|
|
4
3
|
import { useIntl } from "react-intl";
|
|
5
4
|
import { areObjRefsEqual, isAllTimeDateFilterOption } from "@gooddata/sdk-model";
|
|
6
5
|
import { OverTimeComparisonTypes } from "@gooddata/sdk-ui";
|
|
7
6
|
import { isAbsoluteDateFilterOption, isRelativeDateFilterOption, } from "@gooddata/sdk-ui-filters";
|
|
7
|
+
import { _isEqual } from "@gooddata/util";
|
|
8
8
|
const isAllTimeSelectedAndTimeComparisonApplied = (selectedFilter, selectedTimeComparisonType) => isAllTimeDateFilterOption(selectedFilter) &&
|
|
9
9
|
(OverTimeComparisonTypes.PREVIOUS_PERIOD === selectedTimeComparisonType ||
|
|
10
10
|
OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR === selectedTimeComparisonType);
|
|
11
|
-
const areSameMeasuresSelected = (selectedComparisonMeasures, originalComparisonMeasures) =>
|
|
11
|
+
const areSameMeasuresSelected = (selectedComparisonMeasures, originalComparisonMeasures) => _isEqual(selectedComparisonMeasures.slice().sort(), originalComparisonMeasures.slice().sort());
|
|
12
12
|
const isEndTimeAfterOrAtStartTime = (start, end) => moment(start) <= moment(end);
|
|
13
13
|
const isValidAbsoluteDateRange = (selectedFilter) => !isAbsoluteDateFilterOption(selectedFilter) ||
|
|
14
14
|
(selectedFilter.from !== undefined &&
|
|
@@ -17,12 +17,12 @@ const isValidAbsoluteDateRange = (selectedFilter) => !isAbsoluteDateFilterOption
|
|
|
17
17
|
const isValidFloatingDateRange = (selectedFilter) => !isRelativeDateFilterOption(selectedFilter) ||
|
|
18
18
|
(selectedFilter.from !== undefined && selectedFilter.to !== undefined);
|
|
19
19
|
const isDialogStateChanged = (selectedFilter, originalFilter, selectedDateDataset, originalDateDataset, selectedTimeComparisonType, originalTimeComparisonType, selectedComparisonMeasures, originalComparisonMeasures, additionalDateFilters, originalAdditionalDateFilters, selectedEmptyDateValuesFilterMode, originalEmptyDateValuesFilterMode) => {
|
|
20
|
-
const isFilterSame =
|
|
20
|
+
const isFilterSame = _isEqual(selectedFilter, originalFilter);
|
|
21
21
|
const isComparisonTypeSame = selectedTimeComparisonType === originalTimeComparisonType;
|
|
22
22
|
// originalDateDataset is undefined when component is removed from filter bar (when dragged to trash)
|
|
23
23
|
const isSameDateDataset = areObjRefsEqual(selectedDateDataset.ref, originalDateDataset?.ref);
|
|
24
24
|
const areComparisonMeasuresSame = areSameMeasuresSelected(selectedComparisonMeasures, originalComparisonMeasures);
|
|
25
|
-
const areAdditionalFiltersSame =
|
|
25
|
+
const areAdditionalFiltersSame = _isEqual(additionalDateFilters, originalAdditionalDateFilters);
|
|
26
26
|
const isEmptyDateValuesFilterModeSame = (selectedEmptyDateValuesFilterMode || "include") === (originalEmptyDateValuesFilterMode || "include");
|
|
27
27
|
return (!isFilterSame ||
|
|
28
28
|
!isComparisonTypeSame ||
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2022-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useRef, useState } from "react";
|
|
4
|
-
import { isEqual } from "lodash-es";
|
|
5
4
|
import { shallowEqual, useDispatch, useSelector } from "react-redux";
|
|
6
5
|
import { areObjRefsEqual, isAllTimeDateFilterOption } from "@gooddata/sdk-model";
|
|
7
6
|
import { OverTimeComparisonTypes } from "@gooddata/sdk-ui";
|
|
8
7
|
import { DateFilterHelpers } from "@gooddata/sdk-ui-filters";
|
|
9
8
|
import { normalizeSelectedFilterOption } from "@gooddata/sdk-ui-filters/internal";
|
|
9
|
+
import { _isEqual } from "@gooddata/util";
|
|
10
10
|
import { loadDateDatasetsToDateDropdown } from "../../../sagas/date_datasets/date_datasets_actions.js";
|
|
11
11
|
import { setMigratedAdditionalFilters } from "../../../store/filter_bar/filter_bar_actions.js";
|
|
12
12
|
import { AdditionalDateFilters } from "./AdditionalFiltersSection/AdditionalDateFilters.js";
|
|
@@ -47,7 +47,7 @@ export function DateFilter(ownProps) {
|
|
|
47
47
|
migratedFilters: migratedAdditionalFilters,
|
|
48
48
|
});
|
|
49
49
|
const lastMigratedFilters = useRef(migratedAdditionalFilters);
|
|
50
|
-
if (!
|
|
50
|
+
if (!_isEqual(migratedAdditionalFilters, lastMigratedFilters.current)) {
|
|
51
51
|
setCurrentMigratedFilters(migratedAdditionalFilters);
|
|
52
52
|
}
|
|
53
53
|
lastMigratedFilters.current = migratedAdditionalFilters;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supportedPresetsHook.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"supportedPresetsHook.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,qBAAqB,EAI7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,6BAA6B,EAErC,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAGvE;;;;;;;;;GASG;AACH,eAAO,MAAM,6BAA6B,iCACR,6BAA6B,uBACtC,qBAAqB,oCACR,gCAAgC,EAAE,+BACvC,OAAO;gCAGJ,6BAA6B;yCACpB,qBAAqB,EAAE;CAkCnE,CAAC;AAkBF;;;;;;;GAOG;AACH,eAAO,MAAM,0CAA0C,mBACnC,gBAAgB,8BACJ,6BAA6B,iBAC1C,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,SAOrD,CAAC;AAYF;;;;;;;GAOG;AACH,eAAO,MAAM,iDAAiD,mBAC1C,gBAAgB,uCACK,qBAAqB,EAAE,iBAC7C,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,SAOrD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
2
|
import { useEffect, useMemo } from "react";
|
|
3
|
-
import { omit } from "lodash-es";
|
|
4
3
|
import { areObjRefsEqual, isDateFilterGranularity, } from "@gooddata/sdk-model";
|
|
5
4
|
import { isUiRelativeDateFilterForm, } from "@gooddata/sdk-ui-filters";
|
|
5
|
+
import { _omit } from "@gooddata/util";
|
|
6
6
|
import { ALL_TIME_FILTER_OPTION, RELATIVE_PERIOD_FILTER_OPTION } from "../defaultFilterOptions.js";
|
|
7
7
|
/**
|
|
8
8
|
* Hook returns memoized DateFilterRelativeOptionGroup created by filtering out unsupported granularities from the provided `allRelativeDateFilterPresets`.
|
|
@@ -30,7 +30,7 @@ export const useSupportedDateFilterPresets = (allRelativeDateFilterPresets, sele
|
|
|
30
30
|
.filter(isDateFilterGranularity) // choose only chronological granularities compatible with SDK
|
|
31
31
|
.filter((granularity) => !missingGranularities.includes(granularity));
|
|
32
32
|
return {
|
|
33
|
-
supportedDateFilterPresets:
|
|
33
|
+
supportedDateFilterPresets: _omit(allRelativeDateFilterPresets, missingGranularities),
|
|
34
34
|
supportedChronologicalGranularities,
|
|
35
35
|
};
|
|
36
36
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../../../src/components/filterBar/dateFilter/presets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../../../src/components/filterBar/dateFilter/presets.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,yBAAyB,EAGjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAG9E,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAoZvF,eAAO,MAAM,4BAA4B,EAAE,6BAA8D,CAAC;AAE1G,eAAO,MAAM,4BAA4B,iBAAkB,OAAO,KAAG,6BAMpE,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAAW,iBAAiB,0CAgDjE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import { omit } from "lodash-es";
|
|
3
2
|
import { isLowerBound, isUpperBound, } from "@gooddata/sdk-model";
|
|
3
|
+
import { _omit } from "@gooddata/util";
|
|
4
4
|
const getRelativeDateFilterPresets = () => ({
|
|
5
5
|
"GDC.time.minute": [
|
|
6
6
|
{
|
|
@@ -408,7 +408,7 @@ export const findSupportedRelativePresets = (supportsTime) => {
|
|
|
408
408
|
if (!supportsTime) {
|
|
409
409
|
omittedGranularities.push("GDC.time.minute", "GDC.time.hour");
|
|
410
410
|
}
|
|
411
|
-
return
|
|
411
|
+
return _omit(getRelativeDateFilterPresets(), omittedGranularities);
|
|
412
412
|
};
|
|
413
413
|
export const findRelativePresetByValue = (value) => {
|
|
414
414
|
const presets = RELATIVE_DATE_FILTER_PRESETS[value.granularity];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightPickerDialog.d.ts","sourceRoot":"","sources":["../../../src/components/header/InsightPickerDialog.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"InsightPickerDialog.d.ts","sourceRoot":"","sources":["../../../src/components/header/InsightPickerDialog.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAqB7F;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAChC,SAAS,EACT,KAAK,EACL,UAAU,EACV,iBAAiB,EAAE,aAAa,EAChC,WAAW,EACX,WAAW,EACX,wBAAwB,EACxB,uBAAuB,EACvB,aAAa,GAChB,EAAE,4BAA4B,2CA4H9B"}
|
|
@@ -13,6 +13,7 @@ import { descriptionTooltipOpened } from "../../sagas/description_tooltip/descri
|
|
|
13
13
|
import { isOwnershipSupported, supportsObjectUris } from "../../selectors/backend_capabilities_selector.js";
|
|
14
14
|
import { getUserLoginMD5, getUserUri } from "../../selectors/bootstrap_selector.js";
|
|
15
15
|
import { getMetadataTimeZone } from "../../selectors/feature_flag_selector.js";
|
|
16
|
+
import { canDeleteListedInsight, shouldLoadListedInsightPermissions, } from "../../selectors/insight_delete_selector.js";
|
|
16
17
|
import { getIsReadOnlyMode } from "../../store/embedding/embedding_selectors.js";
|
|
17
18
|
const authorSelector = createSelector(supportsObjectUris, getUserUri, getUserLoginMD5, (isObjectUriSupported, userUri, userLoginMd5) => {
|
|
18
19
|
return isObjectUriSupported ? userUri : userLoginMd5;
|
|
@@ -25,6 +26,8 @@ export function InsightPickerDialog({ workspace, label, isDisabled, selectedInsi
|
|
|
25
26
|
const hasOwnershipSupport = useSelector(isOwnershipSupported);
|
|
26
27
|
const metadataTimeZone = useSelector(getMetadataTimeZone);
|
|
27
28
|
const isReadOnly = useSelector(getIsReadOnlyMode);
|
|
29
|
+
const canDeleteInsight = useSelector(canDeleteListedInsight);
|
|
30
|
+
const includePermissions = useSelector(shouldLoadListedInsightPermissions);
|
|
28
31
|
const dispatch = useDispatch();
|
|
29
32
|
const onDeleteInsight = useCallback((insightRef, insightTitle) => {
|
|
30
33
|
dispatch(deleteReport(insightRef, false, { title: insightTitle }));
|
|
@@ -77,11 +80,12 @@ export function InsightPickerDialog({ workspace, label, isDisabled, selectedInsi
|
|
|
77
80
|
title: intl.formatMessage({ id: "openReport.menu.delete" }),
|
|
78
81
|
isDestructive: true,
|
|
79
82
|
hasSeparator: true,
|
|
83
|
+
isAvailable: canDeleteInsight,
|
|
80
84
|
onClick: (item) => {
|
|
81
85
|
setIsDialogOpen(false);
|
|
82
86
|
onDeleteInsight(toRef(item), item.title);
|
|
83
87
|
},
|
|
84
88
|
},
|
|
85
89
|
];
|
|
86
|
-
return (_jsxs("div", { className: "s-report_select report-select editor-header-item", children: [_jsx(Button, { className: "gd-button-secondary type-metric customizable", value: label, disabled: isDisabled, onClick: () => setIsDialogOpen(true) }), isDialogOpen ? (_jsx(Dialog, { className: "open-visualizations-dialog", containerClassName: "open-visualizations-dialog-container", isModal: false, shouldCloseOnClick: () => true, onClose: () => setIsDialogOpen(false), children: _jsx("div", { className: "open-visualizations s-open-visualizations", children: _jsx(InsightPicker, { workspace: workspace, author: hasOwnershipSupport ? author : undefined, includeTags: includeTags, excludeTags: excludeTags, enabledVisualizationClassesUrls: enabledVisualizationUrls, selectedInsightId: openInsightId, metadataTimeZone: metadataTimeZone, enableSemanticSearch: isSemanticSearchEnabled, width: 740, ...pickerState, onSelect: handleSelect, onDescriptionPanelOpen: onDescriptionTooltipOpened, menuActions: menuActions }) }) })) : null] }));
|
|
90
|
+
return (_jsxs("div", { className: "s-report_select report-select editor-header-item", children: [_jsx(Button, { className: "gd-button-secondary type-metric customizable", value: label, disabled: isDisabled, onClick: () => setIsDialogOpen(true) }), isDialogOpen ? (_jsx(Dialog, { className: "open-visualizations-dialog", containerClassName: "open-visualizations-dialog-container", isModal: false, shouldCloseOnClick: () => true, onClose: () => setIsDialogOpen(false), children: _jsx("div", { className: "adi-open-visualizations s-open-visualizations", children: _jsx(InsightPicker, { workspace: workspace, author: hasOwnershipSupport ? author : undefined, includeTags: includeTags, excludeTags: excludeTags, enabledVisualizationClassesUrls: enabledVisualizationUrls, selectedInsightId: openInsightId, metadataTimeZone: metadataTimeZone, enableSemanticSearch: isSemanticSearchEnabled, includePermissions: includePermissions, width: 740, ...pickerState, onSelect: handleSelect, onDescriptionPanelOpen: onDescriptionTooltipOpened, menuActions: menuActions }) }) })) : null] }));
|
|
87
91
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisualizationsDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/header/VisualizationsDropdown.tsx"],"names":[],"mappings":"AA0CA,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"VisualizationsDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/header/VisualizationsDropdown.tsx"],"names":[],"mappings":"AA0CA,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAwD7F;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,EACnC,SAAS,EAAE,WAAW,EACtB,KAAK,EAAE,UAAU,EACjB,UAAU,EACV,iBAAiB,EAAE,aAAa,EAChC,WAAW,EAAE,IAAI,EACjB,WAAW,EACX,wBAAwB,EAAE,+BAA+B,EACzD,uBAAuB,EAAE,2BAA2B,EACpD,aAAa,GAChB,EAAE,4BAA4B,2CAkR9B"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useEffect, useMemo } from "react";
|
|
4
|
-
import { isEmpty } from "lodash-es";
|
|
5
4
|
import { defineMessage, useIntl } from "react-intl";
|
|
6
5
|
import { useDispatch, useSelector } from "react-redux";
|
|
7
6
|
import { createSelector, createStructuredSelector } from "reselect";
|
|
@@ -10,12 +9,13 @@ import { useBackend } from "@gooddata/sdk-ui";
|
|
|
10
9
|
import { useInsightPagedList } from "@gooddata/sdk-ui-ext";
|
|
11
10
|
import { Dropdown, DropdownButton, DropdownList, InsightListItem, NoData, UiIcon, UiSkeleton, } from "@gooddata/sdk-ui-kit";
|
|
12
11
|
import { customMatcher, useHybridSearch, } from "@gooddata/sdk-ui-semantic-search";
|
|
12
|
+
import { _isEmpty } from "@gooddata/util";
|
|
13
13
|
import { deleteReport } from "../../actions/delete_actions.js";
|
|
14
14
|
import { descriptionTooltipOpened } from "../../sagas/description_tooltip/description_tooltip_ui_actions.js";
|
|
15
15
|
import { isOwnershipSupported, supportsObjectUris } from "../../selectors/backend_capabilities_selector.js";
|
|
16
16
|
import { getUserLoginMD5, getUserUri } from "../../selectors/bootstrap_selector.js";
|
|
17
17
|
import { getMetadataTimeZone } from "../../selectors/feature_flag_selector.js";
|
|
18
|
-
import {
|
|
18
|
+
import { canDeleteListedInsight, shouldLoadListedInsightPermissions, } from "../../selectors/insight_delete_selector.js";
|
|
19
19
|
const INSIGHT_DROPDOWN_MY_TAB_ID = defineMessage({ id: "gs.visualizationsList.tabs.my" }).id;
|
|
20
20
|
const INSIGHT_DROPDOWN_ALL_TAB_ID = defineMessage({ id: "gs.visualizationsList.tabs.all" }).id;
|
|
21
21
|
const dropdownTabsTranslationIds = [{ id: INSIGHT_DROPDOWN_MY_TAB_ID }, { id: INSIGHT_DROPDOWN_ALL_TAB_ID }];
|
|
@@ -49,7 +49,8 @@ export function VisualizationsDropdown({ workspace: workspaceId, label: buttonTe
|
|
|
49
49
|
const author = useSelector(authorSelector);
|
|
50
50
|
const hasOwnershipSupport = useSelector(isOwnershipSupported);
|
|
51
51
|
const metadataTimeZone = useSelector(getMetadataTimeZone);
|
|
52
|
-
const
|
|
52
|
+
const canDeleteInsight = useSelector(canDeleteListedInsight);
|
|
53
|
+
const includePermissions = useSelector(shouldLoadListedInsightPermissions);
|
|
53
54
|
const onDeleteInsight = useCallback((insightRef, title) => {
|
|
54
55
|
dispatch(deleteReport(insightRef, false, { title }));
|
|
55
56
|
}, [dispatch]);
|
|
@@ -64,6 +65,7 @@ export function VisualizationsDropdown({ workspace: workspaceId, label: buttonTe
|
|
|
64
65
|
tabsIds,
|
|
65
66
|
tags,
|
|
66
67
|
excludeTags,
|
|
68
|
+
includePermissions,
|
|
67
69
|
});
|
|
68
70
|
const matcher = useMemo(() => customMatcher(["title", "summary", "identifier"]), []);
|
|
69
71
|
const { search: hybridSearch, onSearchQueryChange: setHybridSearchQuery } = useHybridSearch({
|
|
@@ -88,7 +90,7 @@ export function VisualizationsDropdown({ workspace: workspaceId, label: buttonTe
|
|
|
88
90
|
? [divider]
|
|
89
91
|
: [
|
|
90
92
|
...(searchRelatedItems.length ? [divider] : []),
|
|
91
|
-
...searchRelatedItems.map((insight) => ({ insight })),
|
|
93
|
+
...searchRelatedItems.map((insight) => ({ insight, isRelated: true })),
|
|
92
94
|
]),
|
|
93
95
|
], [items, searchRelatedItems, isRelatedLoading]);
|
|
94
96
|
const shouldLoadNextPage = useCallback((lastItemIndex, itemsCount) => lastItemIndex >= itemsCount - 5, []);
|
|
@@ -106,7 +108,7 @@ export function VisualizationsDropdown({ workspace: workspaceId, label: buttonTe
|
|
|
106
108
|
align: "br tr",
|
|
107
109
|
},
|
|
108
110
|
], onOpenStateChanged: handleOpenStateChanged, renderButton: ({ isOpen, toggleDropdown }) => (_jsx(DropdownButton, { className: "type-metric customizable", value: buttonText, disabled: isDisabled, onClick: toggleDropdown, isOpen: isOpen, isSmall: false })), renderBody: ({ closeDropdown, isMobile }) => {
|
|
109
|
-
return (_jsx("div", { className: "open-visualizations s-open-visualizations", children: _jsx(DropdownList, { width: 350, isMobile: isMobile, isLoading: isLoading ? items.length === 0 : null, showSearch: initialLoadCompleted, searchString: search, searchFieldSize: "small", searchPlaceholder: intl.formatMessage({ id: "search_insights" }), onSearch: onSearch, showTabs: hasOwnershipSupport && initialLoadCompleted ? !search : null, tabs: dropdownTabsTranslationIds, selectedTabId:
|
|
111
|
+
return (_jsx("div", { className: "adi-open-visualizations s-open-visualizations", children: _jsx(DropdownList, { width: 350, isMobile: isMobile, isLoading: isLoading ? items.length === 0 : null, showSearch: initialLoadCompleted, searchString: search, searchFieldSize: "small", searchPlaceholder: intl.formatMessage({ id: "search_insights" }), onSearch: onSearch, showTabs: hasOwnershipSupport && initialLoadCompleted ? !search : null, tabs: dropdownTabsTranslationIds, selectedTabId: _isEmpty(search) ? selectedTabId : INSIGHT_DROPDOWN_ALL_TAB_ID, onTabSelect: onTabSelect, itemHeight: 40, items: insights, itemsCount: totalItems, maxHeight: 200, loadNextPage: loadNextPage, hasNextPage: hasNextPage || isRelatedLoading, skeletonItemsCount: loadingItemsCount, isNextPageLoading: isNextPageLoading, shouldLoadNextPage: shouldLoadNextPage, SkeletonItem: () => (_jsx(UiSkeleton, { itemWidth: ["100%"], direction: "row", itemPadding: 15, itemHeight: 30, itemsCount: 1, itemsGap: 0 })), body: () => {
|
|
110
112
|
if (!isLoading && items.length === 0 && searchRelatedItems.length > 0) {
|
|
111
113
|
return (_jsx(NoData, { notFoundLabel: intl.formatMessage({
|
|
112
114
|
id: "visualizationsList.noVisualizationsFound",
|
|
@@ -135,16 +137,16 @@ export function VisualizationsDropdown({ workspace: workspaceId, label: buttonTe
|
|
|
135
137
|
"unknown";
|
|
136
138
|
const isSelected = identifier === openInsightId;
|
|
137
139
|
const insightUriRef = uriRef(uri);
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
return (_jsx(InsightListItem, { title: title, description: description?.trim(), showDescriptionPanel: true, type: type, width: width, updated: updated ?? created, isLocked: isLocked, isSelected: isSelected, onDelete:
|
|
143
|
-
|
|
144
|
-
(() => {
|
|
140
|
+
const canDelete = canDeleteInsight({
|
|
141
|
+
...insight.insight,
|
|
142
|
+
isRelated: insight.isRelated,
|
|
143
|
+
});
|
|
144
|
+
return (_jsx(InsightListItem, { title: title, description: description?.trim(), showDescriptionPanel: true, type: type, width: width, updated: updated ?? created, isLocked: isLocked, isSelected: isSelected, onDelete: canDelete
|
|
145
|
+
? () => {
|
|
145
146
|
closeDropdown();
|
|
146
147
|
onDeleteInsight(insightUriRef, title);
|
|
147
|
-
}
|
|
148
|
+
}
|
|
149
|
+
: undefined, onClick: () => {
|
|
148
150
|
closeDropdown();
|
|
149
151
|
onOpenInsight(insightUriRef);
|
|
150
152
|
}, onDescriptionPanelOpen: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportVisualization.d.ts","sourceRoot":"","sources":["../../../src/components/report/ReportVisualization.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ReportVisualization.d.ts","sourceRoot":"","sources":["../../../src/components/report/ReportVisualization.tsx"],"names":[],"mappings":"AAqEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAiBrE,MAAM,WAAW,yBAAyB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,6BAA6B,CAAC,EAAE,OAAO,sBAAsB,CAAC;CACjE;AAID,wBAAgB,mBAAmB,CAAC,EAChC,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,6BAAsD,GACzD,EAAE,yBAAyB,0DA0T3B"}
|
|
@@ -2,11 +2,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useRef, useState, } from "react";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import { isEmpty } from "lodash-es";
|
|
6
5
|
import { defineMessage } from "react-intl";
|
|
7
6
|
// NodeNext types react-measure's default as the module namespace; cast restores the component type.
|
|
8
7
|
import MeasureRaw from "react-measure";
|
|
9
8
|
import { useDispatch } from "react-redux";
|
|
9
|
+
import { _isEmpty } from "@gooddata/util";
|
|
10
10
|
const Measure = MeasureRaw;
|
|
11
11
|
import { v4 as uuid } from "uuid";
|
|
12
12
|
import { visClassUrl } from "@gooddata/sdk-model";
|
|
@@ -202,7 +202,7 @@ export function ReportVisualization({ projectId, appSessionId, messages, visuali
|
|
|
202
202
|
// Mounting it before the active locale's messages arrive would therefore freeze raw i18n
|
|
203
203
|
// keys (e.g. "dashboard.bucket.measures_title.column") into the bucket panel. Wait for the
|
|
204
204
|
// messages to be available so the very first reference point is computed with real strings.
|
|
205
|
-
if (
|
|
205
|
+
if (_isEmpty(messages)) {
|
|
206
206
|
return null;
|
|
207
207
|
}
|
|
208
208
|
return (_jsx("div", { className: className, children: _jsx(Measure, { onResize: onResize, bounds: true, children: ({ measureRef }) => (_jsx("div", { className: containerClassNames, ref: measureRef, children: _jsx(VisualizationGeneric, { appSessionId: appSessionId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceEmpty.d.ts","sourceRoot":"","sources":["../../../src/components/report/WorkspaceEmpty.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WorkspaceEmpty.d.ts","sourceRoot":"","sources":["../../../src/components/report/WorkspaceEmpty.tsx"],"names":[],"mappings":"AAUA,wBAAgB,cAAc,4CAmB7B"}
|
|
@@ -2,18 +2,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
3
|
import { FormattedMessage, defineMessage } from "react-intl";
|
|
4
4
|
import { useSelector } from "react-redux";
|
|
5
|
-
import { getLinkToLoadDataPage } from "../../selectors/data_page_selector.js";
|
|
6
|
-
import { isFreemiumEdition } from "../../selectors/feature_flag_selector.js";
|
|
7
5
|
import { canManageProject } from "../../selectors/permissions_selector.js";
|
|
8
6
|
import { ReportMessage } from "./ReportMessage.js";
|
|
9
|
-
function FreemiumMessage({ linkToLoadDataPage, isFreemiumEdition }) {
|
|
10
|
-
return isFreemiumEdition ? (_jsx("span", { className: "s-workspace-empty-data-load-link", children: _jsx(FormattedMessage, { id: "dashboard.message.workspace_empty.description_link", values: {
|
|
11
|
-
dataLoadLink: (chunks) => (_jsx("a", { href: linkToLoadDataPage, rel: "noopener noreferrer", target: "_blank", children: chunks })),
|
|
12
|
-
} }) })) : (_jsx("span", { className: "s-workspace-empty-data-load", children: _jsx(FormattedMessage, { id: "dashboard.message.workspace_empty.description_question" }) }));
|
|
13
|
-
}
|
|
14
7
|
export function WorkspaceEmpty() {
|
|
15
|
-
const linkToLoadDataPage = useSelector((state) => getLinkToLoadDataPage(state));
|
|
16
|
-
const isFreemium = useSelector((state) => isFreemiumEdition(state));
|
|
17
8
|
const canManage = useSelector((state) => canManageProject(state));
|
|
18
|
-
return (_jsx(ReportMessage, { headerMessageId: defineMessage({ id: "dashboard.message.workspace_empty.header" }).id, className: "adi-canvas-message-workspace-empty-result s-error-workspace-empty-result s-report-message-type-workspace_empty", children: canManage ? (_jsx(
|
|
9
|
+
return (_jsx(ReportMessage, { headerMessageId: defineMessage({ id: "dashboard.message.workspace_empty.header" }).id, className: "adi-canvas-message-workspace-empty-result s-error-workspace-empty-result s-report-message-type-workspace_empty", children: canManage ? (_jsx("span", { className: "s-workspace-empty-data-load", children: _jsx(FormattedMessage, { id: "dashboard.message.workspace_empty.description_question" }) })) : (_jsx("span", { className: "s-workspace-empty", children: _jsx(FormattedMessage, { id: "dashboard.message.workspace_empty.description" }) })) }));
|
|
19
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reportUtils.d.ts","sourceRoot":"","sources":["../../../src/components/report/reportUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reportUtils.d.ts","sourceRoot":"","sources":["../../../src/components/report/reportUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AA0C7D,eAAO,MAAM,6BAA6B,iBAAkB,aAAa,KAAG,MAE3E,CAAC;AAEF,eAAO,MAAM,wBAAwB,UAAW,OAAO;;;;QA0BtD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
3
2
|
import { isGoodDataSdkError } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _isEmpty } from "@gooddata/util";
|
|
4
4
|
const RECURSIVE_PARSER_LIMIT = 3;
|
|
5
5
|
const TAB = "\t";
|
|
6
6
|
const BREAK_LINE = "\n";
|
|
@@ -23,7 +23,7 @@ const parseArrayToTextareaContent = (arr, level) => {
|
|
|
23
23
|
const parsedValue = parseValueToTextareaContent(value, level);
|
|
24
24
|
return `${BREAK_LINE}${tabs}${TAB}${parsedValue}`;
|
|
25
25
|
});
|
|
26
|
-
return
|
|
26
|
+
return _isEmpty(data) ? "[]" : `[${tabs}${data}${BREAK_LINE}${tabs}]`;
|
|
27
27
|
};
|
|
28
28
|
const parseObjectTextareaContent = (obj, level) => {
|
|
29
29
|
const tabs = TAB.repeat(level);
|
|
@@ -31,7 +31,7 @@ const parseObjectTextareaContent = (obj, level) => {
|
|
|
31
31
|
const parsedValue = parseValueToTextareaContent(value, level);
|
|
32
32
|
return `${BREAK_LINE}${tabs}${TAB}"${key}": ${parsedValue}`;
|
|
33
33
|
});
|
|
34
|
-
return
|
|
34
|
+
return _isEmpty(data) ? "{}" : `{${data.join(",")}${BREAK_LINE}${tabs}}`;
|
|
35
35
|
};
|
|
36
36
|
export const parseRawDataToTextareaContent = (errorRawData) => {
|
|
37
37
|
return parseObjectTextareaContent(errorRawData, 0);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type IInsightUsageInDocumentItem } from "../../store/insight_usage/insight_usage_state.js";
|
|
2
|
+
export interface IDocumentItemProps {
|
|
3
|
+
item: IInsightUsageInDocumentItem;
|
|
4
|
+
}
|
|
5
|
+
export declare function DocumentItem({ item }: IDocumentItemProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=DocumentItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentItem.d.ts","sourceRoot":"","sources":["../../../src/components/saveReportFromKD/DocumentItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,kDAAkD,CAAC;AAEpG,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,2BAA2B,CAAC;CACrC;AAED,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,EAAE,kBAAkB,2CAqBxD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { useSelector } from "react-redux";
|
|
4
|
+
import { isAllowedDashboardLinks } from "../../selectors/route_selector.js";
|
|
5
|
+
import { documentUriFactorySelector } from "../../selectors/uri_selector.js";
|
|
6
|
+
export function DocumentItem({ item }) {
|
|
7
|
+
const isLinkable = useSelector(isAllowedDashboardLinks);
|
|
8
|
+
const documentUriFactory = useSelector(documentUriFactorySelector);
|
|
9
|
+
const { id, title } = item;
|
|
10
|
+
return (_jsx("li", { className: "s-insight-usage-document-item", children: isLinkable ? (_jsx("a", { className: "dashboard-item", href: documentUriFactory(id), rel: "noopener noreferrer", target: "_blank", children: _jsx("span", { children: title }) })) : (_jsx("span", { children: title })) }));
|
|
11
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { type IInsightUsageOnDashboard } from "../../store/insight_usage/insight_usage_state.js";
|
|
1
|
+
import { type IInsightUsageInDocumentItem, type IInsightUsageOnDashboard } from "../../store/insight_usage/insight_usage_state.js";
|
|
2
2
|
export type InsightUsageOnDashboardsProps = {
|
|
3
3
|
insightUsedOnDashboards: IInsightUsageOnDashboard;
|
|
4
|
+
insightUsedInDocuments: IInsightUsageInDocumentItem[];
|
|
4
5
|
};
|
|
5
|
-
export declare function Component({ insightUsedOnDashboards }: InsightUsageOnDashboardsProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function Component({ insightUsedOnDashboards, insightUsedInDocuments, }: InsightUsageOnDashboardsProps): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export declare const InsightUsageOnDashboardsList: typeof Component;
|
|
7
8
|
//# sourceMappingURL=InsightUsageOnDashboardsList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightUsageOnDashboardsList.d.ts","sourceRoot":"","sources":["../../../src/components/saveReportFromKD/InsightUsageOnDashboardsList.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,wBAAwB,EAEhC,MAAM,kDAAkD,CAAC;
|
|
1
|
+
{"version":3,"file":"InsightUsageOnDashboardsList.d.ts","sourceRoot":"","sources":["../../../src/components/saveReportFromKD/InsightUsageOnDashboardsList.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAEhC,MAAM,kDAAkD,CAAC;AA2B1D,MAAM,MAAM,6BAA6B,GAAG;IACxC,uBAAuB,EAAE,wBAAwB,CAAC;IAClD,sBAAsB,EAAE,2BAA2B,EAAE,CAAC;CACzD,CAAC;AAEF,wBAAgB,SAAS,CAAC,EACtB,uBAAuB,EACvB,sBAAsB,GACzB,EAAE,6BAA6B,2CAuD/B;AAED,eAAO,MAAM,4BAA4B,kBAAY,CAAC"}
|
|
@@ -2,18 +2,19 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2020-2026 GoodData Corporation
|
|
3
3
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
4
4
|
import { DashboardItem } from "./DashboardItem.js";
|
|
5
|
+
import { DocumentItem } from "./DocumentItem.js";
|
|
5
6
|
function InaccessibleDashboardsMessage({ count }) {
|
|
6
7
|
return (_jsx("div", { className: "gd-kd-save-report-dialog-usage-inaccessible s-kd-save-dialog-usage-inaccessible", children: _jsx(FormattedMessage, { id: "dialogs.deleteReportConfirmation.usage.inaccessibleDashboards", values: { count, b: (chunks) => _jsx("b", { children: chunks }) } }) }));
|
|
7
8
|
}
|
|
8
9
|
function OnlyInaccessibleDashboardsMessage({ count }) {
|
|
9
10
|
return (_jsx("div", { className: "gd-kd-save-report-dialog-usage-inaccessible s-kd-save-dialog-usage-inaccessible", children: _jsx(FormattedMessage, { id: "dialogs.deleteReportConfirmation.usage.inaccessibleDashboardsOnly", values: { count } }) }));
|
|
10
11
|
}
|
|
11
|
-
export function Component({ insightUsedOnDashboards }) {
|
|
12
|
+
export function Component({ insightUsedOnDashboards, insightUsedInDocuments, }) {
|
|
12
13
|
const intl = useIntl();
|
|
13
14
|
const { accessibleDashboards, inaccessibleDashboardsCount, allDashboardsCount } = insightUsedOnDashboards;
|
|
14
15
|
const renderListOfAccessible = accessibleDashboards.length > 0;
|
|
15
16
|
const renderInaccessibleOnly = accessibleDashboards.length === 0 && inaccessibleDashboardsCount > 0;
|
|
16
17
|
const renderAlsoInaccessible = accessibleDashboards.length > 0 && inaccessibleDashboardsCount > 0;
|
|
17
|
-
return (
|
|
18
|
+
return (_jsxs("div", { className: "view-usage-wrapper s-view-usage", children: [allDashboardsCount > 0 ? (_jsxs("details", { className: "gd-collapsible-section s-view-usage-dashboards", children: [_jsx("summary", { children: intl.formatMessage({ id: "dialogs.saveReportFromKD.usage.dashboards" }, { count: allDashboardsCount }) }), _jsxs("div", { className: "gd-collapsible-content gd-state-text", children: [renderListOfAccessible ? (_jsx("ul", { children: accessibleDashboards.map((dash) => (_jsx(DashboardItem, { dashboard: dash }, dash.id))) })) : null, renderAlsoInaccessible ? (_jsx(InaccessibleDashboardsMessage, { count: inaccessibleDashboardsCount })) : null, renderInaccessibleOnly ? (_jsx(OnlyInaccessibleDashboardsMessage, { count: inaccessibleDashboardsCount })) : null] })] })) : null, insightUsedInDocuments.length > 0 ? (_jsxs("details", { className: "gd-collapsible-section s-view-usage-documents", children: [_jsx("summary", { children: intl.formatMessage({ id: "dialogs.saveReportFromKD.usage.documents" }, { count: insightUsedInDocuments.length }) }), _jsx("div", { className: "gd-collapsible-content gd-state-text", children: _jsx("ul", { children: insightUsedInDocuments.map((item) => (_jsx(DocumentItem, { item: item }, item.id))) }) })] })) : null] }));
|
|
18
19
|
}
|
|
19
20
|
export const InsightUsageOnDashboardsList = Component;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttributeBubbleContent.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AttributeBubbleContent.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,wCAAwC,EAAE,MAAM,0BAA0B,CAAC;AAEzF,wBAAgB,mBAAmB,CAAC,EAChC,YAAY,EACZ,sBAAsB,EACtB,wBAAwB,EACxB,UAAU,GACb,EAAE,wCAAwC,
|
|
1
|
+
{"version":3,"file":"AttributeBubbleContent.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AttributeBubbleContent.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,wCAAwC,EAAE,MAAM,0BAA0B,CAAC;AAEzF,wBAAgB,mBAAmB,CAAC,EAChC,YAAY,EACZ,sBAAsB,EACtB,wBAAwB,EACxB,UAAU,GACb,EAAE,wCAAwC,2CA6B1C;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,wCAAwC,2CAanF;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,wCAAwC,2CAkBrF"}
|
|
@@ -5,10 +5,12 @@ import { createNumberFormatter, formatAttributeValue } from "@gooddata/sdk-ui";
|
|
|
5
5
|
export function TooltipAttrElements({ attrElements, attrElementsTotalCount, attrElementsNumberFormat, separators, }) {
|
|
6
6
|
const intl = useIntl();
|
|
7
7
|
const remainingElementsCount = attrElementsTotalCount - attrElements.length;
|
|
8
|
-
// the values
|
|
8
|
+
// the values are displayed formatted, like the filter displays them: date values come formatted,
|
|
9
|
+
// the values of a numeric computed attribute are formatted by their number format; raw otherwise
|
|
9
10
|
const formatter = createNumberFormatter(separators);
|
|
10
|
-
const displayTitle = (
|
|
11
|
-
|
|
11
|
+
const displayTitle = ({ title, formattedTitle }) => formattedTitle ||
|
|
12
|
+
(attrElementsNumberFormat ? formatAttributeValue(title, attrElementsNumberFormat, formatter) : title);
|
|
13
|
+
return (_jsxs(_Fragment, { children: [attrElements.map((element, idx) => (_jsxs("span", { className: "s-attribute-element", children: [displayTitle(element) || `(${intl.formatMessage({ id: "empty_value" })})`, _jsx("br", {})] }, idx))), remainingElementsCount > 0 && (_jsx("span", { className: "adi-tooltip-elements-more", children: _jsx(FormattedMessage, { id: "dashboard.catalog_item.shortening_decoration", values: { count: remainingElementsCount } }) }, attrElements.length))] }));
|
|
12
14
|
}
|
|
13
15
|
export function TooltipValuesSection(props) {
|
|
14
16
|
const { attrElements } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComputedAttributeBubbleContent.d.ts","sourceRoot":"","sources":["../../../src/components/shared/ComputedAttributeBubbleContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,wCAAwC,EAC7C,KAAK,sCAAsC,EAC9C,MAAM,0BAA0B,CAAC;AAKlC,MAAM,MAAM,oCAAoC,GAAG,wCAAwC,GACvF,sCAAsC,CAAC;AAE3C;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,oCAAoC,
|
|
1
|
+
{"version":3,"file":"ComputedAttributeBubbleContent.d.ts","sourceRoot":"","sources":["../../../src/components/shared/ComputedAttributeBubbleContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,wCAAwC,EAC7C,KAAK,sCAAsC,EAC9C,MAAM,0BAA0B,CAAC;AAKlC,MAAM,MAAM,oCAAoC,GAAG,wCAAwC,GACvF,sCAAsC,CAAC;AAE3C;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,oCAAoC,2CASzF"}
|
|
@@ -6,6 +6,6 @@ import { MeasureBubbleContent } from "./MeasureBubbleContent.js";
|
|
|
6
6
|
* both: the values first (like an attribute), the definition after (like a metric).
|
|
7
7
|
*/
|
|
8
8
|
export function ComputedAttributeBubbleContent(props) {
|
|
9
|
-
const { metricMaql
|
|
10
|
-
return (_jsxs("span", { children: [_jsx(TooltipValuesSection, { ...props }), _jsx(MeasureBubbleContent, { metricMaql: metricMaql
|
|
9
|
+
const { metricMaql } = props;
|
|
10
|
+
return (_jsxs("span", { children: [_jsx(TooltipValuesSection, { ...props }), _jsx(MeasureBubbleContent, { metricMaql: metricMaql })] }));
|
|
11
11
|
}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export
|
|
3
|
-
}
|
|
4
|
-
interface IMaqlSegmentOwnProps {
|
|
5
|
-
projectId: string;
|
|
6
|
-
isRedirectAllowed: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare function MeasureBubbleContent({ metricMaql, projectId, isRedirectAllowed, }: IOrganizedCatalogTooltipDetailsMeasure): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
1
|
+
import { type IOrganizedCatalogTooltipDetailsMeasure } from "../../typings/catalog.js";
|
|
2
|
+
export declare function MeasureBubbleContent({ metricMaql }: IOrganizedCatalogTooltipDetailsMeasure): import("react/jsx-runtime").JSX.Element;
|
|
10
3
|
//# sourceMappingURL=MeasureBubbleContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MeasureBubbleContent.d.ts","sourceRoot":"","sources":["../../../src/components/shared/MeasureBubbleContent.tsx"],"names":[],"mappings":"AAWA,OAAO,
|
|
1
|
+
{"version":3,"file":"MeasureBubbleContent.d.ts","sourceRoot":"","sources":["../../../src/components/shared/MeasureBubbleContent.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAyB,KAAK,sCAAsC,EAAE,MAAM,0BAA0B,CAAC;AAgE9G,wBAAgB,oBAAoB,CAAC,EAAE,UAAU,EAAE,EAAE,sCAAsC,2CAW1F"}
|