@sisense/sdk-ui 1.15.1 → 1.17.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 (113) hide show
  1. package/dist/ai.cjs +50 -50
  2. package/dist/ai.js +133 -132
  3. package/dist/analytics-composer/index.d.ts +1 -0
  4. package/dist/analytics-composer/translators/code-templates.d.ts +11 -0
  5. package/dist/analytics-composer/translators/generate-code.d.ts +18 -0
  6. package/dist/analytics-composer/translators/index.d.ts +3 -0
  7. package/dist/analytics-composer/translators/model-translator.d.ts +48 -0
  8. package/dist/analytics-composer/translators/query-templates.d.ts +1 -0
  9. package/dist/analytics-composer/translators/query-translator.d.ts +134 -0
  10. package/dist/analytics-composer/translators/translate-filters-to-code.d.ts +2 -0
  11. package/dist/analytics-composer/translators/translate-props-to-code.d.ts +8 -0
  12. package/dist/analytics-composer/translators/types.d.ts +95 -0
  13. package/dist/analytics-composer/translators/utils.d.ts +13 -0
  14. package/dist/analytics-composer.cjs +239 -0
  15. package/dist/analytics-composer.d.ts +1 -0
  16. package/dist/analytics-composer.js +5435 -0
  17. package/dist/api/rest-api.d.ts +5 -0
  18. package/dist/api/types/dashboard-dto.d.ts +8 -0
  19. package/dist/api/types/palette-dto.d.ts +9 -0
  20. package/dist/app/client-application.d.ts +22 -2
  21. package/dist/app/settings/settings.d.ts +5 -0
  22. package/dist/app/settings/types/features.d.ts +6 -0
  23. package/dist/chart/advanced-chart.d.ts +7 -0
  24. package/dist/chart-data/advanced-analytics-data.d.ts +50 -0
  25. package/dist/chart-data/types.d.ts +2 -1
  26. package/dist/chart-data-options/types.d.ts +35 -4
  27. package/dist/chart-data-processor/table-processor.d.ts +1 -1
  28. package/dist/chart-options-processor/advanced-chart-options.d.ts +24 -0
  29. package/dist/chart-options-processor/cartesian-chart-options.d.ts +2 -1
  30. package/dist/chart-options-processor/chart-options-service.d.ts +5 -0
  31. package/dist/chart-options-processor/common-highcharts-option-service.d.ts +2 -1
  32. package/dist/chart-options-processor/translations/axis-section.d.ts +2 -2
  33. package/dist/chart-options-processor/translations/legend-section.d.ts +2 -0
  34. package/dist/chart-options-processor/translations/tooltip-utils.d.ts +1 -0
  35. package/dist/chart-options-processor/translations/tooltip.d.ts +4 -2
  36. package/dist/charts/map-charts/scattermap/utils/map.d.ts +6 -2
  37. package/dist/charts/map-charts/scattermap/utils/markers.d.ts +1 -1
  38. package/dist/charts/table/data-table-wrapper.d.ts +1 -1
  39. package/dist/charts/table/helpers/calc-column-widths.d.ts +1 -1
  40. package/dist/charts/table/types.d.ts +0 -1
  41. package/dist/common/components/loading-indicator.d.ts +27 -0
  42. package/dist/common/hooks/use-has-changed.d.ts +1 -1
  43. package/dist/common/hooks/use-tracking.d.ts +7 -0
  44. package/dist/common-filters/cascading-utils.d.ts +30 -0
  45. package/dist/common-filters/common-filters-connector.d.ts +7 -1
  46. package/dist/common-filters/selection-utils.d.ts +1 -1
  47. package/dist/common-filters/types.d.ts +17 -6
  48. package/dist/common-filters/utils.d.ts +2 -5
  49. package/dist/dashboard/dashboard-by-id.d.ts +8 -3
  50. package/dist/dashboard/dashboard.d.ts +8 -4
  51. package/dist/dashboard/index.d.ts +1 -1
  52. package/dist/dashboard/types.d.ts +13 -7
  53. package/dist/dashboard-widget/dashboard-widget.d.ts +2 -0
  54. package/dist/dashboard-widget/translate-widget-data-options.d.ts +1 -1
  55. package/dist/dashboard-widget/translate-widget-drilldown-options.d.ts +2 -2
  56. package/dist/dashboard-widget/translate-widget-style-options.d.ts +11 -2
  57. package/dist/dashboard-widget/types.d.ts +29 -8
  58. package/dist/dashboard-widget/utils.d.ts +8 -0
  59. package/dist/decorators/component-decorators/with-tracking/error-tracker.d.ts +3 -0
  60. package/dist/filters/components/date-filter/date-filter/date-filter.d.ts +1 -0
  61. package/dist/filters/components/filters-panel/filters-panel.d.ts +2 -1
  62. package/dist/get-widget-options-D4UHj7o5.cjs +198 -0
  63. package/dist/get-widget-options-D88MkBTJ.js +37924 -0
  64. package/dist/index.cjs +183 -208
  65. package/dist/index.d.ts +3 -3
  66. package/dist/index.js +20621 -24251
  67. package/dist/models/dashboard/dashboard-model.d.ts +10 -2
  68. package/dist/models/dashboard/get-dashboard-model.d.ts +13 -2
  69. package/dist/models/dashboard/types.d.ts +21 -2
  70. package/dist/models/dashboard/use-get-dashboard-model.d.ts +2 -0
  71. package/dist/models/dashboard/use-get-dashboard-models.d.ts +2 -0
  72. package/dist/models/widget/get-widget-model.d.ts +13 -2
  73. package/dist/models/widget/translate-widget.d.ts +10 -1
  74. package/dist/models/widget/use-get-widget-model.d.ts +2 -0
  75. package/dist/models/widget/widget-model.d.ts +5 -3
  76. package/dist/pivot-table/helpers/prepare-pivot-styling-props.d.ts +16 -15
  77. package/dist/pivot-table/{use-apply-pivot-table-formatting.d.ts → hooks/use-apply-pivot-table-formatting.d.ts} +1 -1
  78. package/dist/pivot-table/{use-get-pivot-table-query.d.ts → hooks/use-get-pivot-table-query.d.ts} +4 -8
  79. package/dist/pivot-table/hooks/use-pivot-data-loading.d.ts +15 -0
  80. package/dist/pivot-table/hooks/use-pivot-data-service.d.ts +10 -0
  81. package/dist/pivot-table/{use-pivot-table-data-options-internal.d.ts → hooks/use-pivot-table-data-options-internal.d.ts} +2 -2
  82. package/dist/pivot-table/hooks/use-render-pivot.d.ts +24 -0
  83. package/dist/pivot-table/pivot-table.d.ts +2 -2
  84. package/dist/props.d.ts +45 -10
  85. package/dist/query-execution/execute-query-by-widget-id.d.ts +2 -0
  86. package/dist/query-execution/index.d.ts +1 -1
  87. package/dist/query-execution/types.d.ts +11 -2
  88. package/dist/query-execution/use-execute-query-by-widget-id.d.ts +5 -5
  89. package/dist/sisense-context/sisense-context.d.ts +2 -0
  90. package/dist/theme-provider/default-theme-settings.d.ts +2 -0
  91. package/dist/themes/legacy-design-settings.d.ts +14 -0
  92. package/dist/translation/resources/en.d.ts +9 -0
  93. package/dist/translation/resources/index.d.ts +18 -0
  94. package/dist/types.d.ts +89 -9
  95. package/dist/useQuery-C6PPvTP0.js +43462 -0
  96. package/dist/useQuery-ChZNmTT3.cjs +433 -0
  97. package/dist/utils/color/color-interpolation.d.ts +9 -0
  98. package/dist/utils/combine-handlers.d.ts +3 -0
  99. package/dist/utils/filters.d.ts +14 -0
  100. package/dist/widgets/common/drilldown-connector.d.ts +19 -0
  101. package/dist/widgets/common/{custom-drilldown.d.ts → use-drilldown.d.ts} +7 -3
  102. package/dist/widgets/common/widget-container.d.ts +2 -2
  103. package/dist/widgets/common/widget-header-info-button.d.ts +2 -2
  104. package/dist/widgets/common/widget-header.d.ts +2 -2
  105. package/dist/widgets/common/widget-style-utils.d.ts +5 -4
  106. package/dist/widgets/use-highlight-selection.d.ts +10 -0
  107. package/package.json +18 -9
  108. package/dist/filters/utils.d.ts +0 -7
  109. package/dist/useQuery-B-49RH93.js +0 -76791
  110. package/dist/useQuery-C2MQvc4S.cjs +0 -603
  111. package/dist/widgets/chart-widget-deprecated.d.ts +0 -30
  112. package/dist/widgets/common/drilldown.d.ts +0 -25
  113. package/dist/widgets/common/use-widget-drilldown.d.ts +0 -2
package/dist/types.d.ts CHANGED
@@ -634,6 +634,25 @@ export interface ChartThemeSettings {
634
634
  backgroundColor?: string;
635
635
  /** Toolbar Background color, can be used as a secondary background color */
636
636
  panelBackgroundColor?: string;
637
+ /** Animation options */
638
+ animation?: {
639
+ /** Chart initialization animation options */
640
+ init?: {
641
+ /**
642
+ * Animation duration in milliseconds.
643
+ * If not specified, the default value, `auto`, will be used with a different default value applied per chart type.
644
+ */
645
+ duration?: number | 'auto';
646
+ };
647
+ /** Chart redraw animation options */
648
+ redraw?: {
649
+ /**
650
+ * Animation duration in milliseconds.
651
+ * If not specified, the default value, `auto`, will be used with a different default value applied per chart type.
652
+ */
653
+ duration?: number | 'auto';
654
+ };
655
+ };
637
656
  }
638
657
  /**
639
658
  * Theme settings specific to the AI Chatbot component
@@ -825,6 +844,57 @@ export interface GeneralThemeSettings {
825
844
  /** Hover color for primary buttons */
826
845
  primaryButtonHoverColor?: string;
827
846
  }
847
+ /** Possible sizes for spacing. */
848
+ export type SpaceSizes = 'None' | 'Large' | 'Medium' | 'Small';
849
+ /** Possible sizes for border radius. */
850
+ export type RadiusSizes = 'None' | 'Large' | 'Medium' | 'Small';
851
+ /** Possible types of shadows. */
852
+ export type ShadowsTypes = 'None' | 'Light' | 'Medium' | 'Dark';
853
+ /** Possible types of text alignment. */
854
+ export type AlignmentTypes = 'Left' | 'Center' | 'Right';
855
+ /** Widget theme settings */
856
+ export type WidgetThemeSettings = {
857
+ /** Space between widget container edge and the chart */
858
+ spaceAround?: SpaceSizes;
859
+ /** Corner radius of the widget container */
860
+ cornerRadius?: RadiusSizes;
861
+ /**
862
+ * Shadow level of the widget container
863
+ *
864
+ * Effective only when spaceAround is defined
865
+ */
866
+ shadow?: ShadowsTypes;
867
+ /** Widget container border toggle */
868
+ border?: boolean;
869
+ /** Widget container border color */
870
+ borderColor?: string;
871
+ /** Widget header styles */
872
+ header?: {
873
+ /** Header title text color */
874
+ titleTextColor?: string;
875
+ /** Header title alignment */
876
+ titleAlignment?: AlignmentTypes;
877
+ /** Toggle of the divider line between widget header and chart */
878
+ dividerLine?: boolean;
879
+ /** Divider line color */
880
+ dividerLineColor?: string;
881
+ /** Header background color */
882
+ backgroundColor?: string;
883
+ };
884
+ };
885
+ /**
886
+ * Dashboard theme settings
887
+ *
888
+ * @internal
889
+ */
890
+ export type DashboardThemeSettings = {
891
+ /** Background color */
892
+ backgroundColor?: string;
893
+ /** Width of the divider line between widgets */
894
+ dividerLineWidth?: number;
895
+ /** Divider line color */
896
+ dividerLineColor?: string;
897
+ };
828
898
  /** Theme settings defining the look and feel of components. */
829
899
  export interface ThemeSettings {
830
900
  /** Chart theme settings */
@@ -835,6 +905,14 @@ export interface ThemeSettings {
835
905
  typography?: TypographyThemeSettings;
836
906
  /** General theme settings */
837
907
  general?: GeneralThemeSettings;
908
+ /** Widget theme settings */
909
+ widget?: WidgetThemeSettings;
910
+ /**
911
+ * Dashboard theme settings
912
+ *
913
+ * @internal
914
+ */
915
+ dashboard?: DashboardThemeSettings;
838
916
  /**
839
917
  * Theme settings specific to the AI Chatbot component
840
918
  */
@@ -846,18 +924,20 @@ export interface ThemeSettings {
846
924
  * @internal
847
925
  */
848
926
  export type CompleteThemeSettings = DeepRequired<ThemeSettings>;
927
+ /** Complete set of configuration options that define functional style of the various elements of the charts as well as the look and feel of widget itself and widget header. */
928
+ export type WidgetStyleOptions = (ChartStyleOptions | TableStyleOptions) & WidgetContainerStyleOptions;
849
929
  /** Style settings defining the look and feel of widget itself and widget header */
850
- export interface WidgetStyleOptions {
930
+ export interface WidgetContainerStyleOptions {
851
931
  /** Space between widget container edge and the chart */
852
- spaceAround?: 'Large' | 'Medium' | 'Small';
932
+ spaceAround?: SpaceSizes;
853
933
  /** Corner radius of the widget container */
854
- cornerRadius?: 'Large' | 'Medium' | 'Small';
934
+ cornerRadius?: RadiusSizes;
855
935
  /**
856
936
  * Shadow level of the widget container
857
937
  *
858
938
  * Effective only when spaceAround is defined
859
939
  */
860
- shadow?: 'Light' | 'Medium' | 'Dark';
940
+ shadow?: ShadowsTypes;
861
941
  /** Widget container border toggle */
862
942
  border?: boolean;
863
943
  /** Widget container border color */
@@ -875,7 +955,7 @@ export interface WidgetStyleOptions {
875
955
  /** Header title text color */
876
956
  titleTextColor?: string;
877
957
  /** Header title alignment */
878
- titleAlignment?: 'Left' | 'Center' | undefined;
958
+ titleAlignment?: AlignmentTypes;
879
959
  /** Toggle of the divider line between widget header and chart */
880
960
  dividerLine?: boolean;
881
961
  /** Divider line color */
@@ -893,7 +973,7 @@ export interface WidgetStyleOptions {
893
973
  /** @internal */
894
974
  export type RenderToolbarHandler = (onRefresh: () => void, defaultToolbar: JSX.Element) => JSX.Element | null;
895
975
  /** Style settings defining the look and feel of DashboardWidget */
896
- export interface DashboardWidgetStyleOptions extends WidgetStyleOptions {
976
+ export interface DashboardWidgetStyleOptions extends WidgetContainerStyleOptions {
897
977
  /**
898
978
  * Total width of the component, which is considered in the following order of priority:
899
979
  *
@@ -913,19 +993,19 @@ export interface DashboardWidgetStyleOptions extends WidgetStyleOptions {
913
993
  height?: number;
914
994
  }
915
995
  /** Style settings defining the look and feel of ChartWidget */
916
- export type ChartWidgetStyleOptions = ChartStyleOptions & WidgetStyleOptions;
996
+ export type ChartWidgetStyleOptions = ChartStyleOptions & WidgetContainerStyleOptions;
917
997
  /**
918
998
  * Style settings defining the look and feel of TableWidget
919
999
  *
920
1000
  * @internal
921
1001
  */
922
- export type TableWidgetStyleOptions = TableStyleOptions & WidgetStyleOptions;
1002
+ export type TableWidgetStyleOptions = TableStyleOptions & WidgetContainerStyleOptions;
923
1003
  /**
924
1004
  * Style settings defining the look and feel of TableWidget
925
1005
  *
926
1006
  * @internal
927
1007
  */
928
- export type PivotTableWidgetStyleOptions = PivotTableStyleOptions & WidgetStyleOptions;
1008
+ export type PivotTableWidgetStyleOptions = PivotTableStyleOptions & WidgetContainerStyleOptions;
929
1009
  /**
930
1010
  * Runs type guard check for ThemeOid.
931
1011
  *