@sisense/sdk-ui 2.0.0 → 2.1.0

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 (27) hide show
  1. package/dist/ai.cjs +2 -2
  2. package/dist/ai.js +34 -34
  3. package/dist/analytics-composer.cjs +1 -1
  4. package/dist/analytics-composer.js +123 -123
  5. package/dist/{derive-chart-family-BLaI9-3r.js → derive-chart-family-BNMFblR9.js} +31081 -30183
  6. package/dist/{derive-chart-family-CxqjTyNt.cjs → derive-chart-family-DjbiaKLQ.cjs} +252 -252
  7. package/dist/{dimensions-C-VKss5V.cjs → dimensions-DcsEnPSY.cjs} +1 -1
  8. package/dist/{dimensions-Cfq9FexH.js → dimensions-DeTiL-EZ.js} +1 -1
  9. package/dist/index.cjs +18 -18
  10. package/dist/index.js +6721 -6405
  11. package/dist/packages/sdk-ui/src/app/client-application.d.ts +8 -7
  12. package/dist/packages/sdk-ui/src/chart-options-processor/translations/legend-section.d.ts +1 -0
  13. package/dist/packages/sdk-ui/src/emotion-cache-provider/emotion-cache-provider.d.ts +10 -0
  14. package/dist/packages/sdk-ui/src/emotion-cache-provider/index.d.ts +2 -0
  15. package/dist/packages/sdk-ui/src/emotion-cache-provider/utils.d.ts +4 -0
  16. package/dist/packages/sdk-ui/src/props.d.ts +6 -0
  17. package/dist/packages/sdk-ui/src/query-execution/use-query-cache.d.ts +4 -2
  18. package/dist/packages/sdk-ui/src/theme-provider/default-theme-settings.d.ts +1 -0
  19. package/dist/packages/sdk-ui/src/types.d.ts +2 -0
  20. package/dist/packages/sdk-ui/src/utils/get-scrollbar-width.d.ts +1 -0
  21. package/dist/packages/sdk-ui/src/widgets/constants.d.ts +1 -0
  22. package/dist/{use-common-filters-Cmyb86sc.js → use-common-filters-CJNwlbbh.js} +6628 -6282
  23. package/dist/use-common-filters-DcFu4qRs.cjs +271 -0
  24. package/dist/{widget-composer-C4rwNt4P.js → widget-composer-BEVCXjFv.js} +24 -24
  25. package/dist/{widget-composer-BJURHrVD.cjs → widget-composer-fYnr8SDo.cjs} +1 -1
  26. package/package.json +8 -7
  27. package/dist/use-common-filters-BGGGgJJ5.cjs +0 -271
@@ -28,13 +28,15 @@ export type AppConfig = {
28
28
  */
29
29
  loadingIndicatorConfig?: LoadingIndicatorConfig;
30
30
  /**
31
- * Query Cache Configurations
31
+ * Query Cache Configurations.
32
32
  *
33
- * This feature is in alpha.
33
+ * See [Client query caching guide](/guides/sdk/guides/client-query-caching.html) for more details.
34
+ *
35
+ * @alpha
34
36
  */
35
37
  queryCacheConfig?: {
36
38
  /**
37
- * Whether to enable query caching
39
+ * Whether to enable client-side query caching.
38
40
  *
39
41
  * If not specified, the default value is `false`
40
42
  */
@@ -66,15 +68,14 @@ export type AppConfig = {
66
68
  /**
67
69
  * Configuration of the tabber widget
68
70
  *
69
- * Set the `tabberConfig.enabled` property to `true` to enable the tabber widget support. Otherwise, the tabber widget will be treated as 'unkwon plugin type'.
70
- *
71
- * @internal
71
+ * Set the `tabberConfig.enabled` property to `true` to enable the tabber widget support. Otherwise, the tabber widget will be treated as 'unknown plugin type'.
72
+ * Only tabber widgets that are configured using the Fusion UI as documented [here](https://docs.sisense.com/main/SisenseLinux/tabber.htm#Creating) are supported.
72
73
  */
73
74
  tabberConfig?: {
74
75
  /**
75
76
  * Whether to enable tabber widget support
76
77
  *
77
- * If not specified, the default value is `false`
78
+ * If not specified, the default value is `true`
78
79
  */
79
80
  enabled?: boolean;
80
81
  };
@@ -16,6 +16,7 @@ export type LegendSettings = {
16
16
  backgroundColor?: string;
17
17
  itemMarginBottom?: number;
18
18
  itemMarginTop?: number;
19
+ margin?: number;
19
20
  title?: {
20
21
  style?: {
21
22
  [key: string]: string | number;
@@ -0,0 +1,10 @@
1
+ import React, { ReactNode } from 'react';
2
+ export interface EmotionCacheProviderProps {
3
+ children: ReactNode;
4
+ }
5
+ /**
6
+ * A provider component that uses the Emotion cache, but only creates one if a nonce is found in the DOM.
7
+ * This ensures that styles are injected in a way that is compliant with CSP if necessary.
8
+ * If no nonce is found, it simply renders the children without the CacheProvider.
9
+ */
10
+ export declare const EmotionCacheProvider: React.FC<EmotionCacheProviderProps>;
@@ -0,0 +1,2 @@
1
+ export * from './emotion-cache-provider';
2
+ export * from './utils';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Retrieves the nonce value from the <meta> tag in the document head.
3
+ */
4
+ export declare function getNonceFromMetaTag(): string | undefined;
@@ -827,6 +827,12 @@ export interface PivotTableProps {
827
827
  * @internal
828
828
  */
829
829
  refreshCounter?: number;
830
+ /**
831
+ * Callback function that is called when the height of the pivot table changes
832
+ *
833
+ * @internal
834
+ */
835
+ onHeightChange?: (height: number) => void;
830
836
  }
831
837
  /**
832
838
  * Props of the {@link ScatterChart} component.
@@ -1,7 +1,9 @@
1
1
  /**
2
- * React hook that returns the instance to manage query cache.
2
+ * React hook that returns the QueryCacheClient module instance to control query cache.
3
3
  *
4
- * @returns Query cache
4
+ * How to enable query cache see in [Query Caching guide](/guides/sdk/guides/client-query-caching.html)
5
+ *
6
+ * @returns QueryCacheClient instance
5
7
  * @group Queries
6
8
  * @alpha
7
9
  */
@@ -1,6 +1,7 @@
1
1
  import { CompleteThemeSettings } from '../types';
2
2
  export declare const DEFAULT_DIVIDER_COLOR = "#F2F2F2";
3
3
  export declare const DEFAULT_DIVIDER_WIDTH = 4;
4
+ export declare const DEFAULT_TITLE_FONT_SIZE = 15;
4
5
  /**
5
6
  * Returns default theme settings, which can be used as base for custom theme options.
6
7
  *
@@ -925,6 +925,8 @@ export type WidgetThemeSettings = {
925
925
  titleTextColor?: string;
926
926
  /** Header title alignment */
927
927
  titleAlignment?: AlignmentTypes;
928
+ /** Header title font size */
929
+ titleFontSize?: number;
928
930
  /** Toggle of the divider line between widget header and chart */
929
931
  dividerLine?: boolean;
930
932
  /** Divider line color */
@@ -0,0 +1 @@
1
+ export declare const getScrollbarWidth: () => number;
@@ -0,0 +1 @@
1
+ export declare const DEFAULT_WIDGET_HEADER_HEIGHT = 32;