@gooddata/sdk-ui-dashboard 11.58.0-alpha.1 → 11.58.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/NOTICE +4 -4
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/_staging/sharedHooks/useFiltersNamings.d.ts.map +1 -1
  5. package/esm/_staging/sharedHooks/useFiltersNamings.js +5 -3
  6. package/esm/index.d.ts +1 -1
  7. package/esm/index.d.ts.map +1 -1
  8. package/esm/index.js +1 -1
  9. package/esm/model/react/useIsWidgetRestricted.d.ts.map +1 -1
  10. package/esm/model/react/useIsWidgetRestricted.js +14 -7
  11. package/esm/model/store/tabs/layout/layoutSelectors.d.ts +10 -0
  12. package/esm/model/store/tabs/layout/layoutSelectors.d.ts.map +1 -1
  13. package/esm/model/store/tabs/layout/layoutSelectors.js +55 -26
  14. package/esm/presentation/automations/shared/hooks/useFiltersNamings.d.ts.map +1 -1
  15. package/esm/presentation/automations/shared/hooks/useFiltersNamings.js +5 -3
  16. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts.map +1 -1
  17. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js +35 -13
  18. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +12 -0
  19. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
  20. package/esm/presentation/localization/bundles/en-US.localization-bundle.js +12 -0
  21. package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.d.ts.map +1 -1
  22. package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.js +30 -12
  23. package/esm/presentation/widget/richText/EditModeDashboardRichText.d.ts.map +1 -1
  24. package/esm/presentation/widget/richText/EditModeDashboardRichText.js +18 -6
  25. package/esm/presentation/widget/richText/RestrictedReferencesDialog.d.ts +22 -0
  26. package/esm/presentation/widget/richText/RestrictedReferencesDialog.d.ts.map +1 -0
  27. package/esm/presentation/widget/richText/RestrictedReferencesDialog.js +42 -0
  28. package/esm/presentation/widget/richText/useEditableRichTextMenu.d.ts.map +1 -1
  29. package/esm/presentation/widget/richText/useEditableRichTextMenu.js +6 -2
  30. package/esm/sdk-ui-dashboard.d.ts +31 -0
  31. package/package.json +23 -23
  32. package/styles/css/main.css +20 -9
  33. package/styles/css/main.css.map +1 -1
@@ -24070,6 +24070,17 @@ export declare interface IWidgetHeader {
24070
24070
  title?: string;
24071
24071
  }
24072
24072
 
24073
+ /**
24074
+ * Per-tab widget contexts. Each entry pairs a widget with its owning tab; nested layout widgets
24075
+ * and visualization switcher children are flattened in. Used by cross-tab widget lookups.
24076
+ *
24077
+ * @internal
24078
+ */
24079
+ export declare interface IWidgetTabContext {
24080
+ tab: ITabState;
24081
+ widget: ExtendedDashboardWidget;
24082
+ }
24083
+
24073
24084
  /**
24074
24085
  * @internal
24075
24086
  */
@@ -27037,6 +27048,17 @@ export declare const selectAllCatalogMeasuresMap: DashboardSelector<ObjRefMap<IC
27037
27048
  */
27038
27049
  export declare const selectAllCustomWidgets: DashboardSelector<ExtendedDashboardWidget[]>;
27039
27050
 
27051
+ /**
27052
+ * Selects all filters from filter context converted to filters specific for a widget specified by a ref,
27053
+ * even if the widget is not on the active tab.
27054
+ *
27055
+ * @remarks
27056
+ * This does NOT resolve things like ignored filters for a widget, etc.
27057
+ *
27058
+ * @internal
27059
+ */
27060
+ export declare const selectAllFiltersForWidgetByRefAcrossTabs: (ref: ObjRef) => DashboardSelector<[IDashboardFilter[], IDashboardFilter[]]>;
27061
+
27040
27062
  /**
27041
27063
  * Selects all insight widgets in the layout.
27042
27064
  *
@@ -27072,6 +27094,15 @@ export declare const selectAllowMultipleInteractionsPerAttributeAndMeasure: Dash
27072
27094
  */
27073
27095
  export declare const selectAllowUnfinishedFeatures: DashboardSelector<boolean>;
27074
27096
 
27097
+ /**
27098
+ * Cross-tab widget contexts. Walks every tab's layout (including nested layouts and visualization
27099
+ * switcher children) once and pairs each widget with its owning tab. Consumers needing to resolve
27100
+ * a widget's owning tab by ref or identifier should `.find()` against this array.
27101
+ *
27102
+ * @internal
27103
+ */
27104
+ export declare const selectAllTabsWidgetContexts: DashboardSelector<IWidgetTabContext[]>;
27105
+
27075
27106
  /**
27076
27107
  * Selects analytical widget by its ref. This selector will return undefined if the provided
27077
27108
  * widget ref is not analytical widget, eg. custom widget or nested layout.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-dashboard",
3
- "version": "11.58.0-alpha.1",
3
+ "version": "11.58.0-alpha.2",
4
4
  "description": "GoodData SDK - Dashboard Component",
5
5
  "license": "LicenseRef-LICENSE",
6
6
  "author": "GoodData Corporation",
@@ -60,20 +60,20 @@
60
60
  "ts-invariant": "0.10.3",
61
61
  "tslib": "2.8.1",
62
62
  "uuid": "11.1.1",
63
- "@gooddata/sdk-backend-base": "11.58.0-alpha.1",
64
- "@gooddata/sdk-backend-spi": "11.58.0-alpha.1",
65
- "@gooddata/sdk-model": "11.58.0-alpha.1",
66
- "@gooddata/sdk-ui": "11.58.0-alpha.1",
67
- "@gooddata/sdk-ui-charts": "11.58.0-alpha.1",
68
- "@gooddata/sdk-ui-ext": "11.58.0-alpha.1",
69
- "@gooddata/sdk-ui-filters": "11.58.0-alpha.1",
70
- "@gooddata/sdk-ui-pivot": "11.58.0-alpha.1",
71
- "@gooddata/sdk-ui-geo": "11.58.0-alpha.1",
72
- "@gooddata/sdk-ui-vis-commons": "11.58.0-alpha.1",
73
- "@gooddata/sdk-ui-semantic-search": "11.58.0-alpha.1",
74
- "@gooddata/sdk-ui-theme-provider": "11.58.0-alpha.1",
75
- "@gooddata/util": "11.58.0-alpha.1",
76
- "@gooddata/sdk-ui-kit": "11.58.0-alpha.1"
63
+ "@gooddata/sdk-backend-base": "11.58.0-alpha.2",
64
+ "@gooddata/sdk-model": "11.58.0-alpha.2",
65
+ "@gooddata/sdk-backend-spi": "11.58.0-alpha.2",
66
+ "@gooddata/sdk-ui-charts": "11.58.0-alpha.2",
67
+ "@gooddata/sdk-ui": "11.58.0-alpha.2",
68
+ "@gooddata/sdk-ui-ext": "11.58.0-alpha.2",
69
+ "@gooddata/sdk-ui-filters": "11.58.0-alpha.2",
70
+ "@gooddata/sdk-ui-geo": "11.58.0-alpha.2",
71
+ "@gooddata/sdk-ui-kit": "11.58.0-alpha.2",
72
+ "@gooddata/sdk-ui-pivot": "11.58.0-alpha.2",
73
+ "@gooddata/sdk-ui-semantic-search": "11.58.0-alpha.2",
74
+ "@gooddata/sdk-ui-theme-provider": "11.58.0-alpha.2",
75
+ "@gooddata/sdk-ui-vis-commons": "11.58.0-alpha.2",
76
+ "@gooddata/util": "11.58.0-alpha.2"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@microsoft/api-documenter": "7.30.10",
@@ -111,16 +111,16 @@
111
111
  "react-dom": "19.1.1",
112
112
  "sass": "1.104.1",
113
113
  "stylelint": "16.26.1",
114
- "svgo": "2.8.3",
114
+ "svgo": "2.8.4",
115
115
  "typescript": "7.0.2",
116
- "vitest": "4.1.8",
116
+ "vitest": "4.1.11",
117
117
  "vitest-dom": "0.1.1",
118
- "@gooddata/eslint-config": "11.58.0-alpha.1",
119
- "@gooddata/i18n-toolkit": "11.58.0-alpha.1",
120
- "@gooddata/oxlint-config": "11.58.0-alpha.1",
121
- "@gooddata/sdk-backend-mockingbird": "11.58.0-alpha.1",
122
- "@gooddata/stylelint-config": "11.58.0-alpha.1",
123
- "@gooddata/reference-workspace": "11.58.0-alpha.1"
118
+ "@gooddata/eslint-config": "11.58.0-alpha.2",
119
+ "@gooddata/oxlint-config": "11.58.0-alpha.2",
120
+ "@gooddata/reference-workspace": "11.58.0-alpha.2",
121
+ "@gooddata/i18n-toolkit": "11.58.0-alpha.2",
122
+ "@gooddata/sdk-backend-mockingbird": "11.58.0-alpha.2",
123
+ "@gooddata/stylelint-config": "11.58.0-alpha.2"
124
124
  },
125
125
  "peerDependencies": {
126
126
  "react": "^18.0.0 || ^19.0.0",
@@ -12468,9 +12468,11 @@ a.gd-button-link:hover .gd-button-text, a.gd-button-link-dimmed:hover .gd-button
12468
12468
  }
12469
12469
 
12470
12470
  .gd-period-range-picker .rc-picker-input > input {
12471
+ box-sizing: border-box;
12471
12472
  width: 100%;
12473
+ min-width: 0;
12472
12474
  height: 28px;
12473
- padding: 0;
12475
+ padding: 0 0 0 20px;
12474
12476
  border: 0;
12475
12477
  outline: none;
12476
12478
  background: transparent;
@@ -12485,21 +12487,22 @@ a.gd-button-link:hover .gd-button-text, a.gd-button-link-dimmed:hover .gd-button
12485
12487
  color: var(--gd-palette-complementary-6, #94a1ad);
12486
12488
  }
12487
12489
 
12488
- .gd-period-range-picker .rc-picker-range-separator {
12489
- display: none;
12490
- }
12491
-
12492
- .gd-period-range-picker .rc-picker-prefix,
12493
- .gd-period-range-picker .rc-picker-suffix {
12490
+ .gd-period-range-picker .rc-picker-input .gd-icon-calendar {
12491
+ position: absolute;
12492
+ top: 0;
12493
+ left: 10px;
12494
12494
  display: flex;
12495
- flex: none;
12496
12495
  align-items: center;
12497
- margin-left: 6px;
12496
+ height: 100%;
12498
12497
  color: var(--gd-palette-primary-base, #14b2e2);
12499
12498
  font-size: 14px;
12500
12499
  pointer-events: none;
12501
12500
  }
12502
12501
 
12502
+ .gd-period-range-picker .rc-picker-range-separator {
12503
+ display: none;
12504
+ }
12505
+
12503
12506
  .gd-period-range-picker .rc-picker-active-bar {
12504
12507
  position: absolute;
12505
12508
  bottom: -1px;
@@ -12767,6 +12770,14 @@ a.gd-button-link:hover .gd-button-text, a.gd-button-link-dimmed:hover .gd-button
12767
12770
  padding-top: 10px;
12768
12771
  }
12769
12772
 
12773
+ .gd-period-range-picker__preview {
12774
+ margin-top: 10px;
12775
+ padding-top: 10px;
12776
+ border-top: 1px solid var(--gd-palette-complementary-3, #dde4eb);
12777
+ color: var(--gd-palette-complementary-7-from-theme, #687581);
12778
+ font-size: 12px;
12779
+ }
12780
+
12770
12781
  .gd-period-range-picker.gd-period-range-picker-mobile .rc-picker-input > input {
12771
12782
  font-size: 16px;
12772
12783
  }