@gooddata/sdk-ui-analytical-designer 11.69.0-alpha.2 → 11.69.0-alpha.4
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 +47 -47
- 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/backend.d.ts +15 -1
- package/esm/backend.d.ts.map +1 -1
- package/esm/backend.js +26 -2
- package/esm/components/DeleteReportDialog.d.ts.map +1 -1
- package/esm/components/DeleteReportDialog.js +12 -8
- package/esm/components/DeleteReportDialogUsageList.d.ts +2 -4
- package/esm/components/DeleteReportDialogUsageList.d.ts.map +1 -1
- package/esm/components/DeleteReportDialogUsageList.js +10 -7
- package/esm/components/InsightUsageOnDashboards.d.ts.map +1 -1
- package/esm/components/InsightUsageOnDashboards.js +16 -8
- package/esm/components/Report.d.ts +3 -1
- package/esm/components/Report.d.ts.map +1 -1
- package/esm/components/Report.js +13 -4
- package/esm/components/SaveReportFromKDDialog.js +1 -1
- package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.d.ts +1 -0
- package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.js +1 -0
- package/esm/components/header/EditorActions.d.ts +1 -0
- package/esm/components/header/EditorActions.d.ts.map +1 -1
- package/esm/components/header/EditorActions.js +1 -0
- package/esm/components/header/OptionsMenu/useOptionsProps.d.ts +1 -0
- package/esm/components/header/OptionsMenu/useOptionsProps.d.ts.map +1 -1
- package/esm/components/header/OptionsMenu/useOptionsProps.js +1 -0
- package/esm/components/report/executionProgress/ExecutionProgressPanel.d.ts +12 -0
- package/esm/components/report/executionProgress/ExecutionProgressPanel.d.ts.map +1 -0
- package/esm/components/report/executionProgress/ExecutionProgressPanel.js +157 -0
- package/esm/components/report/executionProgress/ExecutionProgressSteps.d.ts +17 -0
- package/esm/components/report/executionProgress/ExecutionProgressSteps.d.ts.map +1 -0
- package/esm/components/report/executionProgress/ExecutionProgressSteps.js +122 -0
- package/esm/components/report/executionProgress/ExecutionStats.d.ts +10 -0
- package/esm/components/report/executionProgress/ExecutionStats.d.ts.map +1 -0
- package/esm/components/report/executionProgress/ExecutionStats.js +105 -0
- package/esm/components/report/executionProgress/timeline.d.ts +34 -0
- package/esm/components/report/executionProgress/timeline.d.ts.map +1 -0
- package/esm/components/report/executionProgress/timeline.js +51 -0
- package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.d.ts +2 -2
- package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.d.ts.map +1 -1
- package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.js +13 -6
- package/esm/models/metadata.d.ts +3 -0
- package/esm/models/metadata.d.ts.map +1 -1
- package/esm/models/metadata.js +3 -0
- package/esm/reducers/combined_root_reducer.d.ts +3 -0
- package/esm/reducers/combined_root_reducer.d.ts.map +1 -1
- package/esm/reducers/combined_root_reducer.js +2 -0
- package/esm/sagas/execute_report_sagas.d.ts +1 -0
- package/esm/sagas/execute_report_sagas.d.ts.map +1 -1
- package/esm/sagas/open_report_sagas.d.ts +3 -1
- package/esm/sagas/open_report_sagas.d.ts.map +1 -1
- package/esm/sagas/open_report_sagas.js +7 -2
- package/esm/sagas/sagas.d.ts.map +1 -1
- package/esm/sagas/sagas.js +4 -0
- package/esm/selectors/feature_flag_selector.d.ts +23 -2
- package/esm/selectors/feature_flag_selector.d.ts.map +1 -1
- package/esm/selectors/feature_flag_selector.js +2 -0
- package/esm/selectors/report_selector.js +1 -1
- package/esm/selectors/report_visualization_selector.d.ts +4 -0
- package/esm/selectors/report_visualization_selector.d.ts.map +1 -1
- package/esm/selectors/save_report_from_kd_dialog_selector.d.ts +10 -10
- package/esm/selectors/save_report_selector.d.ts +12 -12
- package/esm/selectors/save_report_selector.js +1 -1
- package/esm/services/buckets_service.d.ts +1 -0
- package/esm/services/buckets_service.d.ts.map +1 -1
- package/esm/store/execution_progress/execution_loading_view_model.d.ts +72 -0
- package/esm/store/execution_progress/execution_loading_view_model.d.ts.map +1 -0
- package/esm/store/execution_progress/execution_loading_view_model.js +122 -0
- package/esm/store/execution_progress/execution_progress_actions.d.ts +42 -0
- package/esm/store/execution_progress/execution_progress_actions.d.ts.map +1 -0
- package/esm/store/execution_progress/execution_progress_actions.js +19 -0
- package/esm/store/execution_progress/execution_progress_mock.d.ts +31 -0
- package/esm/store/execution_progress/execution_progress_mock.d.ts.map +1 -0
- package/esm/store/execution_progress/execution_progress_mock.js +458 -0
- package/esm/store/execution_progress/execution_progress_saga.d.ts +56 -0
- package/esm/store/execution_progress/execution_progress_saga.d.ts.map +1 -0
- package/esm/store/execution_progress/execution_progress_saga.js +226 -0
- package/esm/store/execution_progress/execution_progress_selectors.d.ts +66 -0
- package/esm/store/execution_progress/execution_progress_selectors.d.ts.map +1 -0
- package/esm/store/execution_progress/execution_progress_selectors.js +7 -0
- package/esm/store/execution_progress/execution_progress_slice.d.ts +4 -0
- package/esm/store/execution_progress/execution_progress_slice.d.ts.map +1 -0
- package/esm/store/execution_progress/execution_progress_slice.js +95 -0
- package/esm/store/execution_progress/execution_progress_state.d.ts +54 -0
- package/esm/store/execution_progress/execution_progress_state.d.ts.map +1 -0
- package/esm/store/execution_progress/execution_progress_state.js +12 -0
- package/esm/store/execution_progress/execution_progress_view_model.d.ts +136 -0
- package/esm/store/execution_progress/execution_progress_view_model.d.ts.map +1 -0
- package/esm/store/execution_progress/execution_progress_view_model.js +378 -0
- package/esm/store/execution_progress/execution_stats_view_model.d.ts +42 -0
- package/esm/store/execution_progress/execution_stats_view_model.d.ts.map +1 -0
- package/esm/store/execution_progress/execution_stats_view_model.js +51 -0
- package/esm/store/insight_usage/insight_usage_helpers.d.ts +13 -3
- package/esm/store/insight_usage/insight_usage_helpers.d.ts.map +1 -1
- package/esm/store/insight_usage/insight_usage_helpers.js +37 -1
- package/esm/store/insight_usage/insight_usage_selectors.d.ts +5 -6
- package/esm/store/insight_usage/insight_usage_selectors.d.ts.map +1 -1
- package/esm/store/insight_usage/insight_usage_selectors.js +5 -4
- 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 +8 -0
- package/esm/store/insight_usage/insight_usage_state.d.ts.map +1 -1
- package/esm/store/types.d.ts +3 -0
- package/esm/store/types.d.ts.map +1 -1
- package/esm/translations/en-US.json +196 -0
- package/esm/utils/api.d.ts +6 -1
- package/esm/utils/api.d.ts.map +1 -1
- package/esm/utils/api.js +28 -0
- package/package.json +21 -21
- package/styles/css/execution_progress.css +486 -0
- package/styles/css/execution_progress.css.map +1 -0
- package/styles/css/main.css +485 -0
- package/styles/css/main.css.map +1 -1
- package/styles/scss/_ad_partials.scss +1 -0
- package/styles/scss/execution_progress.scss +547 -0
package/NOTICE
CHANGED
|
@@ -3,11 +3,11 @@ Copyright (c) 2017-2026 GoodData Corporation
|
|
|
3
3
|
This product includes a number of subcomponents with separate copyright notices and license terms below. Your use of these subcomponents is subject to the terms and conditions of the subcomponent's license. This GoodData project does not necessarily use all the open source software referred to below and may also only use portions of a given package. With respect to the open source software listed in this document, if you (i) have any questions, (ii) wish to receive source code for packages under licenses that require their source code to be made available (such as the GNU Lesser Public License), or (iii) discover any errors or omissions in the licensing information provided, please contact us at legal@gooddata.com. Please identify in source code requests: (i) the packages for which you are requesting corresponding source, (ii) the GoodData product (including any available version) with which the package was provided; and (iii) an email address (if available) or postal address at which GoodData may contact you.
|
|
4
4
|
|
|
5
5
|
--------------------------------------------------------------------------------
|
|
6
|
-
Attribution Notice for @gooddata/sdk-ui-analytical-designer (11.69.0-alpha.
|
|
6
|
+
Attribution Notice for @gooddata/sdk-ui-analytical-designer (11.69.0-alpha.4)
|
|
7
7
|
Package License: LicenseRef-LICENSE
|
|
8
8
|
Own License File: LICENSE
|
|
9
|
-
Date generated: 2026-11-
|
|
10
|
-
Revision ID:
|
|
9
|
+
Date generated: 2026-11-16
|
|
10
|
+
Revision ID: 916dc843984d70f22c7ba476032676ba4f31a88b
|
|
11
11
|
|
|
12
12
|
This notice lists the components that @gooddata/sdk-ui-analytical-designer depends on, directly or through other
|
|
13
13
|
packages, with the license and copyright information reported for each of them.
|
|
@@ -19,28 +19,28 @@ change those terms.
|
|
|
19
19
|
Dependencies
|
|
20
20
|
|
|
21
21
|
Local GoodData SDK components
|
|
22
|
-
- @gooddata/api-client-tiger (11.69.0-alpha.
|
|
23
|
-
- @gooddata/sdk-backend-base (11.69.0-alpha.
|
|
24
|
-
- @gooddata/sdk-backend-spi (11.69.0-alpha.
|
|
25
|
-
- @gooddata/sdk-backend-tiger (11.69.0-alpha.
|
|
26
|
-
- @gooddata/sdk-code-convertors (11.69.0-alpha.
|
|
27
|
-
- @gooddata/sdk-code-schemas (11.69.0-alpha.
|
|
28
|
-
- @gooddata/sdk-embedding (11.69.0-alpha.
|
|
29
|
-
- @gooddata/sdk-maql-language-server (11.69.0-alpha.
|
|
30
|
-
- @gooddata/sdk-model (11.69.0-alpha.
|
|
31
|
-
- @gooddata/sdk-pluggable-application-model (11.69.0-alpha.
|
|
32
|
-
- @gooddata/sdk-ui (11.69.0-alpha.
|
|
33
|
-
- @gooddata/sdk-ui-charts (11.69.0-alpha.
|
|
34
|
-
- @gooddata/sdk-ui-ext (11.69.0-alpha.
|
|
35
|
-
- @gooddata/sdk-ui-filters (11.69.0-alpha.
|
|
36
|
-
- @gooddata/sdk-ui-geo (11.69.0-alpha.
|
|
37
|
-
- @gooddata/sdk-ui-kit (11.69.0-alpha.
|
|
38
|
-
- @gooddata/sdk-ui-metric-component (11.69.0-alpha.
|
|
39
|
-
- @gooddata/sdk-ui-pivot (11.69.0-alpha.
|
|
40
|
-
- @gooddata/sdk-ui-semantic-search (11.69.0-alpha.
|
|
41
|
-
- @gooddata/sdk-ui-theme-provider (11.69.0-alpha.
|
|
42
|
-
- @gooddata/sdk-ui-vis-commons (11.69.0-alpha.
|
|
43
|
-
- @gooddata/util (11.69.0-alpha.
|
|
22
|
+
- @gooddata/api-client-tiger (11.69.0-alpha.4) [MIT] — Transitive
|
|
23
|
+
- @gooddata/sdk-backend-base (11.69.0-alpha.4) [MIT] — Direct
|
|
24
|
+
- @gooddata/sdk-backend-spi (11.69.0-alpha.4) [MIT] — Direct
|
|
25
|
+
- @gooddata/sdk-backend-tiger (11.69.0-alpha.4) [MIT] — Direct
|
|
26
|
+
- @gooddata/sdk-code-convertors (11.69.0-alpha.4) [MIT] — Transitive
|
|
27
|
+
- @gooddata/sdk-code-schemas (11.69.0-alpha.4) [MIT] — Transitive
|
|
28
|
+
- @gooddata/sdk-embedding (11.69.0-alpha.4) [MIT] — Direct
|
|
29
|
+
- @gooddata/sdk-maql-language-server (11.69.0-alpha.4) [MIT] — Transitive
|
|
30
|
+
- @gooddata/sdk-model (11.69.0-alpha.4) [MIT] — Direct
|
|
31
|
+
- @gooddata/sdk-pluggable-application-model (11.69.0-alpha.4) [MIT] — Direct
|
|
32
|
+
- @gooddata/sdk-ui (11.69.0-alpha.4) [MIT] — Direct
|
|
33
|
+
- @gooddata/sdk-ui-charts (11.69.0-alpha.4) [LicenseRef-LICENSE] — Transitive
|
|
34
|
+
- @gooddata/sdk-ui-ext (11.69.0-alpha.4) [LicenseRef-LICENSE] — Direct
|
|
35
|
+
- @gooddata/sdk-ui-filters (11.69.0-alpha.4) [MIT] — Direct
|
|
36
|
+
- @gooddata/sdk-ui-geo (11.69.0-alpha.4) [LicenseRef-LICENSE] — Transitive
|
|
37
|
+
- @gooddata/sdk-ui-kit (11.69.0-alpha.4) [MIT] — Direct
|
|
38
|
+
- @gooddata/sdk-ui-metric-component (11.69.0-alpha.4) [LicenseRef-LICENSE] — Direct
|
|
39
|
+
- @gooddata/sdk-ui-pivot (11.69.0-alpha.4) [LicenseRef-LICENSE] — Direct
|
|
40
|
+
- @gooddata/sdk-ui-semantic-search (11.69.0-alpha.4) [MIT] — Direct
|
|
41
|
+
- @gooddata/sdk-ui-theme-provider (11.69.0-alpha.4) [MIT] — Direct
|
|
42
|
+
- @gooddata/sdk-ui-vis-commons (11.69.0-alpha.4) [MIT] — Transitive
|
|
43
|
+
- @gooddata/util (11.69.0-alpha.4) [MIT] — Direct
|
|
44
44
|
|
|
45
45
|
External components
|
|
46
46
|
- @aaronhayes/react-use-hubspot-form (2.1.2) [MIT] — Transitive
|
|
@@ -479,7 +479,7 @@ Local GoodData SDK components
|
|
|
479
479
|
================================================================================
|
|
480
480
|
|
|
481
481
|
--------------------------------------------------------------------------------
|
|
482
|
-
Package Title: @gooddata/api-client-tiger (11.69.0-alpha.
|
|
482
|
+
Package Title: @gooddata/api-client-tiger (11.69.0-alpha.4)
|
|
483
483
|
Package Source: Local workspace
|
|
484
484
|
Package Depth: Transitive
|
|
485
485
|
--------------------------------------------------------------------------------
|
|
@@ -497,7 +497,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
497
497
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
498
498
|
|
|
499
499
|
--------------------------------------------------------------------------------
|
|
500
|
-
Package Title: @gooddata/sdk-backend-base (11.69.0-alpha.
|
|
500
|
+
Package Title: @gooddata/sdk-backend-base (11.69.0-alpha.4)
|
|
501
501
|
Package Source: Local workspace
|
|
502
502
|
Package Depth: Direct
|
|
503
503
|
--------------------------------------------------------------------------------
|
|
@@ -515,7 +515,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
515
515
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
516
516
|
|
|
517
517
|
--------------------------------------------------------------------------------
|
|
518
|
-
Package Title: @gooddata/sdk-backend-spi (11.69.0-alpha.
|
|
518
|
+
Package Title: @gooddata/sdk-backend-spi (11.69.0-alpha.4)
|
|
519
519
|
Package Source: Local workspace
|
|
520
520
|
Package Depth: Direct
|
|
521
521
|
--------------------------------------------------------------------------------
|
|
@@ -533,7 +533,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
533
533
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
534
534
|
|
|
535
535
|
--------------------------------------------------------------------------------
|
|
536
|
-
Package Title: @gooddata/sdk-backend-tiger (11.69.0-alpha.
|
|
536
|
+
Package Title: @gooddata/sdk-backend-tiger (11.69.0-alpha.4)
|
|
537
537
|
Package Source: Local workspace
|
|
538
538
|
Package Depth: Direct
|
|
539
539
|
--------------------------------------------------------------------------------
|
|
@@ -551,7 +551,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
551
551
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
552
552
|
|
|
553
553
|
--------------------------------------------------------------------------------
|
|
554
|
-
Package Title: @gooddata/sdk-code-convertors (11.69.0-alpha.
|
|
554
|
+
Package Title: @gooddata/sdk-code-convertors (11.69.0-alpha.4)
|
|
555
555
|
Package Source: Local workspace
|
|
556
556
|
Package Depth: Transitive
|
|
557
557
|
--------------------------------------------------------------------------------
|
|
@@ -569,7 +569,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
569
569
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
570
570
|
|
|
571
571
|
--------------------------------------------------------------------------------
|
|
572
|
-
Package Title: @gooddata/sdk-code-schemas (11.69.0-alpha.
|
|
572
|
+
Package Title: @gooddata/sdk-code-schemas (11.69.0-alpha.4)
|
|
573
573
|
Package Source: Local workspace
|
|
574
574
|
Package Depth: Transitive
|
|
575
575
|
--------------------------------------------------------------------------------
|
|
@@ -599,7 +599,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
599
599
|
SOFTWARE.
|
|
600
600
|
|
|
601
601
|
--------------------------------------------------------------------------------
|
|
602
|
-
Package Title: @gooddata/sdk-embedding (11.69.0-alpha.
|
|
602
|
+
Package Title: @gooddata/sdk-embedding (11.69.0-alpha.4)
|
|
603
603
|
Package Source: Local workspace
|
|
604
604
|
Package Depth: Direct
|
|
605
605
|
--------------------------------------------------------------------------------
|
|
@@ -617,7 +617,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
617
617
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
618
618
|
|
|
619
619
|
--------------------------------------------------------------------------------
|
|
620
|
-
Package Title: @gooddata/sdk-maql-language-server (11.69.0-alpha.
|
|
620
|
+
Package Title: @gooddata/sdk-maql-language-server (11.69.0-alpha.4)
|
|
621
621
|
Package Source: Local workspace
|
|
622
622
|
Package Depth: Transitive
|
|
623
623
|
--------------------------------------------------------------------------------
|
|
@@ -635,7 +635,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
635
635
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
636
636
|
|
|
637
637
|
--------------------------------------------------------------------------------
|
|
638
|
-
Package Title: @gooddata/sdk-model (11.69.0-alpha.
|
|
638
|
+
Package Title: @gooddata/sdk-model (11.69.0-alpha.4)
|
|
639
639
|
Package Source: Local workspace
|
|
640
640
|
Package Depth: Direct
|
|
641
641
|
--------------------------------------------------------------------------------
|
|
@@ -653,7 +653,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
653
653
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
654
654
|
|
|
655
655
|
--------------------------------------------------------------------------------
|
|
656
|
-
Package Title: @gooddata/sdk-pluggable-application-model (11.69.0-alpha.
|
|
656
|
+
Package Title: @gooddata/sdk-pluggable-application-model (11.69.0-alpha.4)
|
|
657
657
|
Package Source: Local workspace
|
|
658
658
|
Package Depth: Direct
|
|
659
659
|
--------------------------------------------------------------------------------
|
|
@@ -683,7 +683,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
683
683
|
SOFTWARE.
|
|
684
684
|
|
|
685
685
|
--------------------------------------------------------------------------------
|
|
686
|
-
Package Title: @gooddata/sdk-ui (11.69.0-alpha.
|
|
686
|
+
Package Title: @gooddata/sdk-ui (11.69.0-alpha.4)
|
|
687
687
|
Package Source: Local workspace
|
|
688
688
|
Package Depth: Direct
|
|
689
689
|
--------------------------------------------------------------------------------
|
|
@@ -701,7 +701,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
701
701
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
702
702
|
|
|
703
703
|
--------------------------------------------------------------------------------
|
|
704
|
-
Package Title: @gooddata/sdk-ui-charts (11.69.0-alpha.
|
|
704
|
+
Package Title: @gooddata/sdk-ui-charts (11.69.0-alpha.4)
|
|
705
705
|
Package Source: Local workspace
|
|
706
706
|
Package Depth: Transitive
|
|
707
707
|
--------------------------------------------------------------------------------
|
|
@@ -741,7 +741,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
|
|
|
741
741
|
10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
|
|
742
742
|
|
|
743
743
|
--------------------------------------------------------------------------------
|
|
744
|
-
Package Title: @gooddata/sdk-ui-ext (11.69.0-alpha.
|
|
744
|
+
Package Title: @gooddata/sdk-ui-ext (11.69.0-alpha.4)
|
|
745
745
|
Package Source: Local workspace
|
|
746
746
|
Package Depth: Direct
|
|
747
747
|
--------------------------------------------------------------------------------
|
|
@@ -781,7 +781,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
|
|
|
781
781
|
10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
|
|
782
782
|
|
|
783
783
|
--------------------------------------------------------------------------------
|
|
784
|
-
Package Title: @gooddata/sdk-ui-filters (11.69.0-alpha.
|
|
784
|
+
Package Title: @gooddata/sdk-ui-filters (11.69.0-alpha.4)
|
|
785
785
|
Package Source: Local workspace
|
|
786
786
|
Package Depth: Direct
|
|
787
787
|
--------------------------------------------------------------------------------
|
|
@@ -799,7 +799,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
799
799
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
800
800
|
|
|
801
801
|
--------------------------------------------------------------------------------
|
|
802
|
-
Package Title: @gooddata/sdk-ui-geo (11.69.0-alpha.
|
|
802
|
+
Package Title: @gooddata/sdk-ui-geo (11.69.0-alpha.4)
|
|
803
803
|
Package Source: Local workspace
|
|
804
804
|
Package Depth: Transitive
|
|
805
805
|
--------------------------------------------------------------------------------
|
|
@@ -839,7 +839,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
|
|
|
839
839
|
10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
|
|
840
840
|
|
|
841
841
|
--------------------------------------------------------------------------------
|
|
842
|
-
Package Title: @gooddata/sdk-ui-kit (11.69.0-alpha.
|
|
842
|
+
Package Title: @gooddata/sdk-ui-kit (11.69.0-alpha.4)
|
|
843
843
|
Package Source: Local workspace
|
|
844
844
|
Package Depth: Direct
|
|
845
845
|
--------------------------------------------------------------------------------
|
|
@@ -857,7 +857,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
857
857
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
858
858
|
|
|
859
859
|
--------------------------------------------------------------------------------
|
|
860
|
-
Package Title: @gooddata/sdk-ui-metric-component (11.69.0-alpha.
|
|
860
|
+
Package Title: @gooddata/sdk-ui-metric-component (11.69.0-alpha.4)
|
|
861
861
|
Package Source: Local workspace
|
|
862
862
|
Package Depth: Direct
|
|
863
863
|
--------------------------------------------------------------------------------
|
|
@@ -897,7 +897,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
|
|
|
897
897
|
10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
|
|
898
898
|
|
|
899
899
|
--------------------------------------------------------------------------------
|
|
900
|
-
Package Title: @gooddata/sdk-ui-pivot (11.69.0-alpha.
|
|
900
|
+
Package Title: @gooddata/sdk-ui-pivot (11.69.0-alpha.4)
|
|
901
901
|
Package Source: Local workspace
|
|
902
902
|
Package Depth: Direct
|
|
903
903
|
--------------------------------------------------------------------------------
|
|
@@ -937,7 +937,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
|
|
|
937
937
|
10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
|
|
938
938
|
|
|
939
939
|
--------------------------------------------------------------------------------
|
|
940
|
-
Package Title: @gooddata/sdk-ui-semantic-search (11.69.0-alpha.
|
|
940
|
+
Package Title: @gooddata/sdk-ui-semantic-search (11.69.0-alpha.4)
|
|
941
941
|
Package Source: Local workspace
|
|
942
942
|
Package Depth: Direct
|
|
943
943
|
--------------------------------------------------------------------------------
|
|
@@ -955,7 +955,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
955
955
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
956
956
|
|
|
957
957
|
--------------------------------------------------------------------------------
|
|
958
|
-
Package Title: @gooddata/sdk-ui-theme-provider (11.69.0-alpha.
|
|
958
|
+
Package Title: @gooddata/sdk-ui-theme-provider (11.69.0-alpha.4)
|
|
959
959
|
Package Source: Local workspace
|
|
960
960
|
Package Depth: Direct
|
|
961
961
|
--------------------------------------------------------------------------------
|
|
@@ -973,7 +973,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
973
973
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
974
974
|
|
|
975
975
|
--------------------------------------------------------------------------------
|
|
976
|
-
Package Title: @gooddata/sdk-ui-vis-commons (11.69.0-alpha.
|
|
976
|
+
Package Title: @gooddata/sdk-ui-vis-commons (11.69.0-alpha.4)
|
|
977
977
|
Package Source: Local workspace
|
|
978
978
|
Package Depth: Transitive
|
|
979
979
|
--------------------------------------------------------------------------------
|
|
@@ -991,7 +991,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
991
991
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
992
992
|
|
|
993
993
|
--------------------------------------------------------------------------------
|
|
994
|
-
Package Title: @gooddata/util (11.69.0-alpha.
|
|
994
|
+
Package Title: @gooddata/util (11.69.0-alpha.4)
|
|
995
995
|
Package Source: Local workspace
|
|
996
996
|
Package Depth: Direct
|
|
997
997
|
--------------------------------------------------------------------------------
|
|
@@ -29,10 +29,11 @@ export declare const setDateDatasetsUpdating: import("@reduxjs/toolkit").ActionC
|
|
|
29
29
|
export declare const setDateDatasetsDropdownLoaded: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[isLoaded: boolean], {
|
|
30
30
|
isLoaded: boolean;
|
|
31
31
|
}, ActionTypeKeys.SET_DATE_DATASETS_DROPDOWN_LOADED, never, never>;
|
|
32
|
-
export declare const updateInsightUsageOnDashboards: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[usages: IMetadataObject[], dashboards: IListedDashboard[], documents?: IMetadataObject[] | undefined], {
|
|
32
|
+
export declare const updateInsightUsageOnDashboards: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[usages: IMetadataObject[], dashboards: IListedDashboard[], documents?: IMetadataObject[] | undefined, accessibleDocumentIds?: string[] | undefined], {
|
|
33
33
|
usages: IMetadataObject[];
|
|
34
34
|
dashboards: IListedDashboard[];
|
|
35
35
|
documents: IMetadataObject[];
|
|
36
|
+
accessibleDocumentIds: string[];
|
|
36
37
|
}, ActionTypeKeys.STORE_UPDATE_INSIGHT_USAGE_ON_DASHBOARDS, never, never>;
|
|
37
38
|
export declare const resetInsightUsageOnDashboards: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<ActionTypeKeys.RESET_INSIGHT_USAGE_ON_DASHBOARDS>;
|
|
38
39
|
//# sourceMappingURL=data_actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data_actions.d.ts","sourceRoot":"","sources":["../../src/actions/data_actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAElF,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D,eAAO,MAAM,mBAAmB;;mDAK/B,CAAC;AAEF,eAAO,MAAM,aAAa;;kDAEvB,CAAC;AAEJ,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpE,eAAO,MAAM,cAAc;;;qDAK1B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;uDAK/B,CAAC;AAEF,eAAO,MAAM,eAAe;;wDAK3B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;yDAKjC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;2DAKnC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;kEAKzC,CAAC;AAEF,eAAO,MAAM,8BAA8B
|
|
1
|
+
{"version":3,"file":"data_actions.d.ts","sourceRoot":"","sources":["../../src/actions/data_actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAElF,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D,eAAO,MAAM,mBAAmB;;mDAK/B,CAAC;AAEF,eAAO,MAAM,aAAa;;kDAEvB,CAAC;AAEJ,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpE,eAAO,MAAM,cAAc;;;qDAK1B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;uDAK/B,CAAC;AAEF,eAAO,MAAM,eAAe;;wDAK3B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;yDAKjC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;2DAKnC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;kEAKzC,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;yEAU1C,CAAC;AAEF,eAAO,MAAM,6BAA6B,0GAAiE,CAAC"}
|
|
@@ -25,7 +25,7 @@ export const setDateDatasetsUpdating = createAction(ActionTypeKeys.SET_DATE_DATA
|
|
|
25
25
|
export const setDateDatasetsDropdownLoaded = createAction(ActionTypeKeys.SET_DATE_DATASETS_DROPDOWN_LOADED, (isLoaded) => ({
|
|
26
26
|
payload: { isLoaded },
|
|
27
27
|
}));
|
|
28
|
-
export const updateInsightUsageOnDashboards = createAction(ActionTypeKeys.STORE_UPDATE_INSIGHT_USAGE_ON_DASHBOARDS, (usages, dashboards, documents = []) => ({
|
|
29
|
-
payload: { usages, dashboards, documents },
|
|
28
|
+
export const updateInsightUsageOnDashboards = createAction(ActionTypeKeys.STORE_UPDATE_INSIGHT_USAGE_ON_DASHBOARDS, (usages, dashboards, documents = [], accessibleDocumentIds = []) => ({
|
|
29
|
+
payload: { usages, dashboards, documents, accessibleDocumentIds },
|
|
30
30
|
}));
|
|
31
31
|
export const resetInsightUsageOnDashboards = createAction(ActionTypeKeys.RESET_INSIGHT_USAGE_ON_DASHBOARDS);
|
package/esm/backend.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
|
|
1
|
+
import { type IAnalyticalBackend, type IExecutionResult } from "@gooddata/sdk-backend-spi";
|
|
2
2
|
import { type IExecutionDefinition } from "@gooddata/sdk-model";
|
|
3
3
|
export type ApiTokenType = "gooddata" | "jwt";
|
|
4
4
|
export interface IApiToken {
|
|
@@ -12,6 +12,19 @@ export declare let setApiTokenHandler: IAdHostBackend["setApiToken"];
|
|
|
12
12
|
export declare let clearCache: () => void;
|
|
13
13
|
export declare let resetCatalogs: () => void;
|
|
14
14
|
export declare let explainExecDef: IExecutionDefinition;
|
|
15
|
+
/**
|
|
16
|
+
* A successful execute call of AD's backend: the execution result plus the client time it
|
|
17
|
+
* resolved. Feeds the live execution progress (store/execution_progress).
|
|
18
|
+
*/
|
|
19
|
+
export interface IExecutedResult {
|
|
20
|
+
result: IExecutionResult;
|
|
21
|
+
executedAt: number;
|
|
22
|
+
}
|
|
23
|
+
type ExecutedResultListener = (executed: IExecutedResult) => void;
|
|
24
|
+
/** Subscribes to the execute calls of AD's backend; returns the unsubscribe function. */
|
|
25
|
+
export declare const subscribeToExecutedResults: (listener: ExecutedResultListener) => (() => void);
|
|
26
|
+
/** The latest execute call, for a subscriber that may have subscribed just after it resolved. */
|
|
27
|
+
export declare const getLastExecutedResult: () => IExecutedResult | undefined;
|
|
15
28
|
export declare let backend: IAnalyticalBackend;
|
|
16
29
|
/**
|
|
17
30
|
* The backend of the host application AD runs against. See adoptHostBackend.
|
|
@@ -47,4 +60,5 @@ export interface IAdHostBackend {
|
|
|
47
60
|
export declare const adoptHostBackend: (host: IAdHostBackend) => void;
|
|
48
61
|
/** Drops the adopted host backend; the backend is uninitialized again until the next adoption. */
|
|
49
62
|
export declare const resetBackend: () => void;
|
|
63
|
+
export {};
|
|
50
64
|
//# sourceMappingURL=backend.d.ts.map
|
package/esm/backend.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../src/backend.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../src/backend.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE3F,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAgBhE,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,KAAK,CAAC;AAE9C,MAAM,WAAW,SAAS;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,0CAA0C,CAAC,EAAE,MAAM,CAAC;CACvD;AAED,eAAO,MAAM,mBAAmB,UAAW,YAAY,2CACQ,CAAC;AAIhE,eAAO,IAAI,aAAa,EAAE,cAAc,CAAC,QAAQ,CAAa,CAAC;AAI/D,eAAO,IAAI,kBAAkB,EAAE,cAAc,CAAC,aAAa,CAAa,CAAC;AAEzE,eAAO,IAAI,UAAU,EAAE,MAAM,IAAW,CAAC;AACzC,eAAO,IAAI,aAAa,EAAE,MAAM,IAAW,CAAC;AAC5C,eAAO,IAAI,cAAc,EAAE,oBAAoB,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B,MAAM,EAAE,gBAAgB,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,KAAK,sBAAsB,GAAG,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAC;AAKlE,yFAAyF;AACzF,eAAO,MAAM,0BAA0B,aAAc,sBAAsB,KAAG,CAAC,MAAM,IAAI,CAKxF,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,qBAAqB,QAAO,eAAe,GAAG,SAA+B,CAAC;AAmC3F,eAAO,IAAI,OAAO,EAAE,kBAAiD,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B;;;OAGG;IACH,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,mFAAmF;IACnF,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,6FAA6F;IAC7F,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,0CAA0C;IAC1C,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,0CAA0C,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACvF;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,SAAU,cAAc,KAAG,IAOvD,CAAC;AAEF,kGAAkG;AAClG,eAAO,MAAM,YAAY,QAAO,IAQ/B,CAAC"}
|
package/esm/backend.js
CHANGED
|
@@ -21,10 +21,31 @@ export let setApiTokenHandler = undefined;
|
|
|
21
21
|
export let clearCache = noop;
|
|
22
22
|
export let resetCatalogs = noop;
|
|
23
23
|
export let explainExecDef;
|
|
24
|
-
const
|
|
24
|
+
const executedResultListeners = new Set();
|
|
25
|
+
let lastExecutedResult;
|
|
26
|
+
/** Subscribes to the execute calls of AD's backend; returns the unsubscribe function. */
|
|
27
|
+
export const subscribeToExecutedResults = (listener) => {
|
|
28
|
+
executedResultListeners.add(listener);
|
|
29
|
+
return () => {
|
|
30
|
+
executedResultListeners.delete(listener);
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
/** The latest execute call, for a subscriber that may have subscribed just after it resolved. */
|
|
34
|
+
export const getLastExecutedResult = () => lastExecutedResult;
|
|
35
|
+
/** bumped on every adoption and reset, so a late execute of a previous backend is not reported */
|
|
36
|
+
let backendGeneration = 0;
|
|
37
|
+
const withExplainEventing = (backend, generation) => withEventing(backend, {
|
|
25
38
|
beforeExecute: (execDefinition) => {
|
|
26
39
|
explainExecDef = execDefinition;
|
|
27
40
|
},
|
|
41
|
+
successfulExecute: (result) => {
|
|
42
|
+
if (generation !== backendGeneration) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const executed = { result, executedAt: Date.now() };
|
|
46
|
+
lastExecutedResult = executed;
|
|
47
|
+
executedResultListeners.forEach((listener) => listener(executed));
|
|
48
|
+
},
|
|
28
49
|
});
|
|
29
50
|
/**
|
|
30
51
|
* The backend before a host backend is adopted. Only the capabilities are readable: they are
|
|
@@ -49,7 +70,8 @@ export let backend = createUninitializedBackend();
|
|
|
49
70
|
* instance. The token renewals AD receives (SetApiToken) go to the host's setters when given.
|
|
50
71
|
*/
|
|
51
72
|
export const adoptHostBackend = (host) => {
|
|
52
|
-
|
|
73
|
+
backendGeneration += 1;
|
|
74
|
+
backend = withExplainEventing(wrapWithSemanticCfSimulation(host.instance), backendGeneration);
|
|
53
75
|
clearCache = host.resetAllCaches ?? noop;
|
|
54
76
|
resetCatalogs = host.resetCatalogs ?? noop;
|
|
55
77
|
setApiTokenHandler = host.setApiToken;
|
|
@@ -57,7 +79,9 @@ export const adoptHostBackend = (host) => {
|
|
|
57
79
|
};
|
|
58
80
|
/** Drops the adopted host backend; the backend is uninitialized again until the next adoption. */
|
|
59
81
|
export const resetBackend = () => {
|
|
82
|
+
backendGeneration += 1;
|
|
60
83
|
backend = createUninitializedBackend();
|
|
84
|
+
lastExecutedResult = undefined;
|
|
61
85
|
clearCache = noop;
|
|
62
86
|
resetCatalogs = noop;
|
|
63
87
|
setApiTokenHandler = undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteReportDialog.d.ts","sourceRoot":"","sources":["../../src/components/DeleteReportDialog.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,IAAI,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"DeleteReportDialog.d.ts","sourceRoot":"","sources":["../../src/components/DeleteReportDialog.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,IAAI,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAuC/E,MAAM,WAAW,wBAAwB;IACrC,+CAA+C;IAC/C,aAAa,CAAC,EAAE,OAAO,sBAAsB,CAAC;CACjD;AAmCD,wBAAgB,kBAAkB,CAAC,EAAE,aAAsC,EAAE,EAAE,wBAAwB,kDA8FtG"}
|
|
@@ -5,12 +5,13 @@ import { FormattedMessage, defineMessages, useIntl } from "react-intl";
|
|
|
5
5
|
import { useDispatch, useSelector } from "react-redux";
|
|
6
6
|
import { useCancelablePromise } from "@gooddata/sdk-ui";
|
|
7
7
|
import { ConfirmDialog as ConfirmDialogComponent } from "@gooddata/sdk-ui-kit";
|
|
8
|
-
import { _sortBy } from "@gooddata/util";
|
|
9
8
|
import { deleteReport } from "../actions/delete_actions.js";
|
|
10
9
|
import { hideDialog } from "../actions/dialogs_actions.js";
|
|
10
|
+
import { getUserLoginMD5 } from "../selectors/bootstrap_selector.js";
|
|
11
11
|
import { deleteReportDialogSelector } from "../selectors/dialogs_selector.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { workspacePermissions } from "../selectors/permissions_selector.js";
|
|
13
|
+
import { EMPTY_INSIGHT_USAGE_IN_DOCUMENTS, EMPTY_INSIGHT_USAGE_ON_DASHBOARDS, getInsightUsageInDocuments, getInsightUsageOnDashboards, } from "../store/insight_usage/insight_usage_helpers.js";
|
|
14
|
+
import { getAnalyticalDashboards, getInsightReferences, loadAccessibleDocumentIds } from "../utils/api.js";
|
|
14
15
|
import { shortenText } from "../utils/base.js";
|
|
15
16
|
import { DeleteReportDialogUsageList } from "./DeleteReportDialogUsageList.js";
|
|
16
17
|
const MAX_TITLE_LENGTH = 28;
|
|
@@ -28,19 +29,22 @@ function getDeleteProhibitedMessage(isUsedOnDashboards, isUsedInDocuments) {
|
|
|
28
29
|
: deleteProhibitedMessages.documents;
|
|
29
30
|
}
|
|
30
31
|
const useReferencingObjects = (projectId, insightRef, isActive) => {
|
|
32
|
+
const permissions = useSelector(workspacePermissions);
|
|
33
|
+
const userLogin = useSelector(getUserLoginMD5);
|
|
31
34
|
return useCancelablePromise({
|
|
32
35
|
promise: async () => {
|
|
33
36
|
if (!insightRef || !isActive) {
|
|
34
37
|
return null;
|
|
35
38
|
}
|
|
36
|
-
const { analyticalDashboards, documents } = await getInsightReferences(projectId, insightRef);
|
|
39
|
+
const { analyticalDashboards, documents = [] } = await getInsightReferences(projectId, insightRef);
|
|
37
40
|
const userDashboards = await getAnalyticalDashboards(projectId);
|
|
41
|
+
const accessibleDocumentIds = await loadAccessibleDocumentIds(projectId, documents, userLogin, permissions);
|
|
38
42
|
return {
|
|
39
43
|
dashboards: getInsightUsageOnDashboards(analyticalDashboards || [], userDashboards),
|
|
40
|
-
documents:
|
|
44
|
+
documents: getInsightUsageInDocuments(documents, accessibleDocumentIds),
|
|
41
45
|
};
|
|
42
46
|
},
|
|
43
|
-
}, [projectId, insightRef, isActive]);
|
|
47
|
+
}, [projectId, insightRef, isActive, userLogin, permissions]);
|
|
44
48
|
};
|
|
45
49
|
export function DeleteReportDialog({ ConfirmDialog = ConfirmDialogComponent }) {
|
|
46
50
|
const intl = useIntl();
|
|
@@ -69,7 +73,7 @@ export function DeleteReportDialog({ ConfirmDialog = ConfirmDialogComponent }) {
|
|
|
69
73
|
// TODO it might make sense to unify this and use the tiger way also on bear
|
|
70
74
|
// on tiger we enable the delete once we are sure the insight is not used on any dashboard or in any document
|
|
71
75
|
const isUsedOnDashboards = (referencing?.dashboards.allDashboardsCount ?? 0) > 0;
|
|
72
|
-
const isUsedInDocuments = (referencing?.documents.
|
|
76
|
+
const isUsedInDocuments = (referencing?.documents.allDocumentsCount ?? 0) > 0;
|
|
73
77
|
const canDelete = !isLoadingUsages && !isUsedOnDashboards && !isUsedInDocuments;
|
|
74
78
|
const shouldDisableDelete = isDeleting || !canDelete;
|
|
75
79
|
if (deleteReportDialog.active) {
|
|
@@ -82,7 +86,7 @@ export function DeleteReportDialog({ ConfirmDialog = ConfirmDialogComponent }) {
|
|
|
82
86
|
} }) })) : null, !isLoadingUsages && !canDelete && (_jsx("p", { className: "s-delete-report-dialog-title", children: _jsx(FormattedMessage, { ...getDeleteProhibitedMessage(isUsedOnDashboards, isUsedInDocuments), values: {
|
|
83
87
|
deletedReportTitle: decoratedTitle,
|
|
84
88
|
strong: (chunks) => _jsx("strong", { children: chunks }),
|
|
85
|
-
} }) })), _jsx(DeleteReportDialogUsageList, { isLoading: isLoadingUsages, isEmbedded: isEmbedded, referencingDashboards: referencing?.dashboards ?? EMPTY_INSIGHT_USAGE_ON_DASHBOARDS, referencingDocuments: referencing?.documents ??
|
|
89
|
+
} }) })), _jsx(DeleteReportDialogUsageList, { isLoading: isLoadingUsages, isEmbedded: isEmbedded, referencingDashboards: referencing?.dashboards ?? EMPTY_INSIGHT_USAGE_ON_DASHBOARDS, referencingDocuments: referencing?.documents ?? EMPTY_INSIGHT_USAGE_IN_DOCUMENTS, analyticalDashboardUriFactory: analyticalDashboardUriFactory, documentUriFactory: documentUriFactory })] }));
|
|
86
90
|
}
|
|
87
91
|
return null;
|
|
88
92
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { type IMetadataObject } from "@gooddata/sdk-model";
|
|
2
1
|
import { type AnalyticalDashboardUriFactory, type DocumentUriFactory } from "../selectors/uri_selector.js";
|
|
3
|
-
import { type IInsightUsageOnDashboard } from "../store/insight_usage/insight_usage_state.js";
|
|
4
|
-
type ReferencingDocument = Pick<IMetadataObject, "id" | "title">;
|
|
2
|
+
import { type IInsightUsageInDocuments, type IInsightUsageOnDashboard } from "../store/insight_usage/insight_usage_state.js";
|
|
5
3
|
interface IDeleteReportDialogUsageListProps {
|
|
6
4
|
isLoading: boolean;
|
|
7
5
|
isEmbedded: boolean;
|
|
8
6
|
referencingDashboards: IInsightUsageOnDashboard;
|
|
9
|
-
referencingDocuments:
|
|
7
|
+
referencingDocuments: IInsightUsageInDocuments;
|
|
10
8
|
analyticalDashboardUriFactory: AnalyticalDashboardUriFactory;
|
|
11
9
|
documentUriFactory: DocumentUriFactory;
|
|
12
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteReportDialogUsageList.d.ts","sourceRoot":"","sources":["../../src/components/DeleteReportDialogUsageList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeleteReportDialogUsageList.d.ts","sourceRoot":"","sources":["../../src/components/DeleteReportDialogUsageList.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,6BAA6B,EAAE,KAAK,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC3G,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAChC,MAAM,+CAA+C,CAAC;AAuBvD,UAAU,iCAAiC;IACvC,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,qBAAqB,EAAE,wBAAwB,CAAC;IAChD,oBAAoB,EAAE,wBAAwB,CAAC;IAC/C,6BAA6B,EAAE,6BAA6B,CAAC;IAC7D,kBAAkB,EAAE,kBAAkB,CAAC;CAC1C;AA+JD,wBAAgB,2BAA2B,CAAC,EACxC,SAAS,EACT,UAAU,EACV,qBAAqB,EACrB,oBAAoB,EACpB,6BAA6B,EAC7B,kBAAkB,GACrB,EAAE,iCAAiC,2CAmCnC"}
|
|
@@ -17,6 +17,8 @@ const messages = defineMessages({
|
|
|
17
17
|
showLess: { id: "dialogs.deleteReportConfirmation.usage.showLess" },
|
|
18
18
|
inaccessibleDashboards: { id: "dialogs.deleteReportConfirmation.usage.inaccessibleDashboards" },
|
|
19
19
|
inaccessibleDashboardsOnly: { id: "dialogs.deleteReportConfirmation.usage.inaccessibleDashboardsOnly" },
|
|
20
|
+
inaccessibleDocuments: { id: "dialogs.deleteReportConfirmation.usage.inaccessibleDocuments" },
|
|
21
|
+
inaccessibleDocumentsOnly: { id: "dialogs.deleteReportConfirmation.usage.inaccessibleDocumentsOnly" },
|
|
20
22
|
});
|
|
21
23
|
const strong = (chunks) => _jsx("strong", { children: chunks });
|
|
22
24
|
function UsageMessage({ header, children }) {
|
|
@@ -32,23 +34,24 @@ function ReferencedDashboardsList({ referencingDashboards, isEmbedded, analytica
|
|
|
32
34
|
const renderListOfAccessible = accessibleDashboards.length > 0;
|
|
33
35
|
const renderInaccessibleOnly = accessibleDashboards.length === 0 && inaccessibleDashboardsCount > 0;
|
|
34
36
|
const renderAlsoInaccessible = accessibleDashboards.length > 0 && inaccessibleDashboardsCount > 0;
|
|
35
|
-
return (_jsxs(_Fragment, { children: [renderListOfAccessible ? (_jsx("ul", { className: "gd-delete-report-dialog-usage-list", children: accessibleDashboards.map(({ id, title }) => (_jsx(DeleteReportDialogUsageListItem, { id: id, title: title, isEmbedded: isEmbedded, uriFactory: analyticalDashboardUriFactory }, id))) })) : null, renderAlsoInaccessible ? (_jsx(
|
|
37
|
+
return (_jsxs(_Fragment, { children: [renderListOfAccessible ? (_jsx("ul", { className: "gd-delete-report-dialog-usage-list", children: accessibleDashboards.map(({ id, title }) => (_jsx(DeleteReportDialogUsageListItem, { id: id, title: title, isEmbedded: isEmbedded, uriFactory: analyticalDashboardUriFactory }, id))) })) : null, renderAlsoInaccessible ? (_jsx(InaccessibleMessage, { message: messages.inaccessibleDashboards, count: inaccessibleDashboardsCount })) : null, renderInaccessibleOnly ? (_jsx(OnlyInaccessibleMessage, { message: messages.inaccessibleDashboardsOnly, count: inaccessibleDashboardsCount })) : null] }));
|
|
36
38
|
}
|
|
37
|
-
function
|
|
38
|
-
return (_jsx("div", { className: "gd-delete-report-dialog-usage-inaccessible s-delete-report-dialog-usage-inaccessible", children: _jsx(FormattedMessage, { ...
|
|
39
|
+
function InaccessibleMessage({ message, count }) {
|
|
40
|
+
return (_jsx("div", { className: "gd-delete-report-dialog-usage-inaccessible s-delete-report-dialog-usage-inaccessible", children: _jsx(FormattedMessage, { ...message, values: { count, b: (chunks) => _jsx("b", { children: chunks }) } }) }));
|
|
39
41
|
}
|
|
40
|
-
function
|
|
41
|
-
return (_jsx("div", { className: "gd-delete-report-dialog-usage-inaccessible s-delete-report-dialog-usage-inaccessible", children: _jsx(FormattedMessage, { ...
|
|
42
|
+
function OnlyInaccessibleMessage({ message, count }) {
|
|
43
|
+
return (_jsx("div", { className: "gd-delete-report-dialog-usage-inaccessible s-delete-report-dialog-usage-inaccessible", children: _jsx(FormattedMessage, { ...message, values: { count } }) }));
|
|
42
44
|
}
|
|
43
45
|
function ReferencedDocumentsList({ isEmbedded, referencingDocuments, documentUriFactory, }) {
|
|
44
|
-
|
|
46
|
+
const { accessibleDocuments, inaccessibleDocumentsCount } = referencingDocuments;
|
|
47
|
+
return (_jsxs(_Fragment, { children: [accessibleDocuments.length > 0 ? (_jsx("ul", { className: "gd-delete-report-dialog-usage-list", children: accessibleDocuments.map(({ id, title }) => (_jsx(DeleteReportDialogUsageListItem, { id: id, title: title, isEmbedded: isEmbedded, uriFactory: documentUriFactory }, id))) })) : null, accessibleDocuments.length > 0 && inaccessibleDocumentsCount > 0 ? (_jsx(InaccessibleMessage, { message: messages.inaccessibleDocuments, count: inaccessibleDocumentsCount })) : null, accessibleDocuments.length === 0 ? (_jsx(OnlyInaccessibleMessage, { message: messages.inaccessibleDocumentsOnly, count: inaccessibleDocumentsCount })) : null] }));
|
|
45
48
|
}
|
|
46
49
|
export function DeleteReportDialogUsageList({ isLoading, isEmbedded, referencingDashboards, referencingDocuments, analyticalDashboardUriFactory, documentUriFactory, }) {
|
|
47
50
|
if (isLoading) {
|
|
48
51
|
return (_jsxs("div", { className: "gd-delete-report-dialog-usage-loading s-delete-report-dialog-usage-loading", children: [_jsx(Spinner, {}), _jsx("span", { className: "gd-delete-report-dialog-usage-loading-message", children: _jsx(FormattedMessage, { ...messages.checking }) })] }));
|
|
49
52
|
}
|
|
50
53
|
const dashboardsCount = referencingDashboards.allDashboardsCount;
|
|
51
|
-
const documentsCount = referencingDocuments.
|
|
54
|
+
const documentsCount = referencingDocuments.allDocumentsCount;
|
|
52
55
|
const dashboardsList = (_jsx(ReferencedDashboardsList, { isEmbedded: isEmbedded, referencingDashboards: referencingDashboards, analyticalDashboardUriFactory: analyticalDashboardUriFactory }));
|
|
53
56
|
const documentsList = (_jsx(ReferencedDocumentsList, { isEmbedded: isEmbedded, referencingDocuments: referencingDocuments, documentUriFactory: documentUriFactory }));
|
|
54
57
|
return (_jsx("div", { className: "gd-delete-report-dialog-usage s-delete-report-dialog-usage", children: renderUsage(dashboardsCount, documentsCount, dashboardsList, documentsList) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightUsageOnDashboards.d.ts","sourceRoot":"","sources":["../../src/components/InsightUsageOnDashboards.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InsightUsageOnDashboards.d.ts","sourceRoot":"","sources":["../../src/components/InsightUsageOnDashboards.tsx"],"names":[],"mappings":"AAmUA,wBAAgB,wBAAwB,4CA+CvC"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2020-2026 GoodData Corporation
|
|
3
3
|
import { useId, useState } from "react";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import { FormattedMessage, useIntl } from "react-intl";
|
|
5
|
+
import { FormattedMessage, defineMessages, useIntl, } from "react-intl";
|
|
6
6
|
import { useSelector } from "react-redux";
|
|
7
7
|
import { Overlay, UiButton, UiFocusManager, UiIcon, UiSubmenuHeader } from "@gooddata/sdk-ui-kit";
|
|
8
8
|
import { getIsEmbedded } from "../selectors/meta_selector.js";
|
|
@@ -28,11 +28,17 @@ function UsageGroup({ title, className, children }) {
|
|
|
28
28
|
const contentId = useId();
|
|
29
29
|
return (_jsxs("div", { className: classNames("gd-usages-group", className), children: [_jsx("h4", { className: "gd-usages-group-heading", children: _jsxs("button", { type: "button", className: "gd-usages-group-toggle", "aria-expanded": isExpanded, "aria-controls": isExpanded ? contentId : undefined, onClick: () => setExpanded((expanded) => !expanded), children: [_jsx(UiIcon, { type: isExpanded ? "navigateDown" : "navigateRight", size: 14, accessibilityConfig: { ariaHidden: true } }), _jsx("span", { children: title })] }) }), isExpanded ? _jsx("div", { id: contentId, children: children }) : null] }));
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
const inaccessibleMessages = defineMessages({
|
|
32
|
+
dashboards: { id: "dialogs.usage.inaccessibleDashboards" },
|
|
33
|
+
dashboardsOnly: { id: "dialogs.usage.inaccessibleDashboardsOnly" },
|
|
34
|
+
documents: { id: "dialogs.usage.inaccessibleDocuments" },
|
|
35
|
+
documentsOnly: { id: "dialogs.usage.inaccessibleDocumentsOnly" },
|
|
36
|
+
});
|
|
37
|
+
function InaccessibleMessage({ message, count, className }) {
|
|
38
|
+
return (_jsx("div", { className: classNames("gd-usages-inaccessible-dashboards", className), children: _jsx(FormattedMessage, { ...message, values: { count, b: (chunks) => _jsx("b", { children: chunks }) } }) }));
|
|
33
39
|
}
|
|
34
|
-
function
|
|
35
|
-
return (_jsx("div", { className: "gd-usages-inaccessible-dashboards-only
|
|
40
|
+
function OnlyInaccessibleMessage({ message, count, className }) {
|
|
41
|
+
return (_jsx("div", { className: classNames("gd-usages-inaccessible-dashboards-only", className), children: _jsx(FormattedMessage, { ...message, values: { count } }) }));
|
|
36
42
|
}
|
|
37
43
|
function DashboardItemsDialog({ onClose, insightUsageOnDashboard, documents, sourceDashboardIdentifier, isEmbedded, analyticalDashboardUriFactory, documentUriFactory, }) {
|
|
38
44
|
const intl = useIntl();
|
|
@@ -40,7 +46,8 @@ function DashboardItemsDialog({ onClose, insightUsageOnDashboard, documents, sou
|
|
|
40
46
|
const headerId = useId();
|
|
41
47
|
const renderInaccessibleOnly = accessibleDashboards.length === 0 && inaccessibleDashboardsCount > 0;
|
|
42
48
|
const renderAlsoInaccessible = accessibleDashboards.length > 0 && inaccessibleDashboardsCount > 0;
|
|
43
|
-
return (_jsx(Overlay, { alignTo: ".gd-insight-usage-on-dashboards", alignPoints: [{ align: "bl tl" }], closeOnMouseDrag: true, closeOnOutsideClick: true, closeOnEscape: true, onClose: onClose, className: "gd-insight-usages-overlay s-insight-usages-overlay", children: _jsx(UiFocusManager, { enableAutofocus: true, enableReturnFocusOnUnmount: true, children: _jsxs("div", { className: "gd-insight-usages-dialog", role: "dialog", "aria-labelledby": headerId, tabIndex: 0, children: [_jsx(UiSubmenuHeader, { title: intl.formatMessage({ id: "insight.usages.overlay.header" }), titleId: headerId, height: "medium" }), _jsxs("div", { className: "gd-usages-overlay-body s-usages-overlay-body", children: [allDashboardsCount > 0 ? (_jsxs(UsageGroup, { className: "s-usages-group-dashboards", title: _jsx(FormattedMessage, { id: "insight.usages.overlay.group.dashboards", values: { count: allDashboardsCount } }), children: [accessibleDashboards.length > 0 ? (_jsx("ul", { className: "gd-usages-group-items", role: "list", children: accessibleDashboards.map((dashboard) => (_jsx(DashboardItem, { dashboard: dashboard, isEmbedded: isEmbedded, sourceDashboardIdentifier: sourceDashboardIdentifier, analyticalDashboardUriFactory: analyticalDashboardUriFactory }, dashboard.id))) })) : null, renderAlsoInaccessible ? (_jsx(
|
|
49
|
+
return (_jsx(Overlay, { alignTo: ".gd-insight-usage-on-dashboards", alignPoints: [{ align: "bl tl" }], closeOnMouseDrag: true, closeOnOutsideClick: true, closeOnEscape: true, onClose: onClose, className: "gd-insight-usages-overlay s-insight-usages-overlay", children: _jsx(UiFocusManager, { enableAutofocus: true, enableReturnFocusOnUnmount: true, children: _jsxs("div", { className: "gd-insight-usages-dialog", role: "dialog", "aria-labelledby": headerId, tabIndex: 0, children: [_jsx(UiSubmenuHeader, { title: intl.formatMessage({ id: "insight.usages.overlay.header" }), titleId: headerId, height: "medium" }), _jsxs("div", { className: "gd-usages-overlay-body s-usages-overlay-body", children: [allDashboardsCount > 0 ? (_jsxs(UsageGroup, { className: "s-usages-group-dashboards", title: _jsx(FormattedMessage, { id: "insight.usages.overlay.group.dashboards", values: { count: allDashboardsCount } }), children: [accessibleDashboards.length > 0 ? (_jsx("ul", { className: "gd-usages-group-items", role: "list", children: accessibleDashboards.map((dashboard) => (_jsx(DashboardItem, { dashboard: dashboard, isEmbedded: isEmbedded, sourceDashboardIdentifier: sourceDashboardIdentifier, analyticalDashboardUriFactory: analyticalDashboardUriFactory }, dashboard.id))) })) : null, renderAlsoInaccessible ? (_jsx(InaccessibleMessage, { message: inaccessibleMessages.dashboards, count: inaccessibleDashboardsCount, className: "s-usages-inaccessible-dashboards" })) : null, renderInaccessibleOnly ? (_jsx(OnlyInaccessibleMessage, { message: inaccessibleMessages.dashboardsOnly, count: inaccessibleDashboardsCount, className: "s-usages-inaccessible-dashboards-only" })) : null] })) : null, documents.allDocumentsCount > 0 ? (_jsxs(UsageGroup, { className: "s-usages-group-documents", title: _jsx(FormattedMessage, { id: "insight.usages.overlay.group.documents", values: { count: documents.allDocumentsCount } }), children: [documents.accessibleDocuments.length > 0 ? (_jsx("ul", { className: "gd-usages-group-items", role: "list", children: documents.accessibleDocuments.map((item) => (_jsx(DocumentItem, { item: item, isEmbedded: isEmbedded, documentUriFactory: documentUriFactory }, item.id))) })) : null, documents.accessibleDocuments.length > 0 &&
|
|
50
|
+
documents.inaccessibleDocumentsCount > 0 ? (_jsx(InaccessibleMessage, { message: inaccessibleMessages.documents, count: documents.inaccessibleDocumentsCount, className: "s-usages-inaccessible-documents" })) : null, documents.accessibleDocuments.length === 0 ? (_jsx(OnlyInaccessibleMessage, { message: inaccessibleMessages.documentsOnly, count: documents.inaccessibleDocumentsCount, className: "s-usages-inaccessible-documents-only" })) : null] })) : null] })] }) }) }));
|
|
44
51
|
}
|
|
45
52
|
function getUsageLabel(intl, dashboardsCount, documentsCount) {
|
|
46
53
|
if (documentsCount === 0) {
|
|
@@ -62,8 +69,9 @@ export function InsightUsageOnDashboards() {
|
|
|
62
69
|
const [isOpen, setOpen] = useState(false);
|
|
63
70
|
const toggleOpen = () => setOpen((state) => !state);
|
|
64
71
|
const dashboardsCount = insightUsageOnDashboard.allDashboardsCount;
|
|
65
|
-
const
|
|
66
|
-
|
|
72
|
+
const documentsCount = documents.allDocumentsCount;
|
|
73
|
+
const usageLabel = getUsageLabel(intl, dashboardsCount, documentsCount);
|
|
74
|
+
return (_jsxs("div", { className: "gd-insight-usage-on-dashboards s-gd-insight-usage-on-dashboards", children: [_jsx(UiButton, { label: String(dashboardsCount + documentsCount), variant: "tertiary", size: "medium", iconBefore: "lineage", isSelected: isOpen, onClick: toggleOpen, tooltip: usageLabel, dataTestId: "s-insight-usages-of-dashboards-link", accessibilityConfig: {
|
|
67
75
|
ariaLabel: usageLabel,
|
|
68
76
|
ariaHaspopup: "dialog",
|
|
69
77
|
ariaExpanded: isOpen,
|