@sisense/sdk-ui-angular 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 (31) hide show
  1. package/dist/esm2020/lib/component-wrapper-helpers/context-connectors.mjs +7 -3
  2. package/dist/esm2020/lib/components/charts/line-chart.component.mjs +1 -1
  3. package/dist/esm2020/lib/components/charts/pie-chart.component.mjs +1 -1
  4. package/dist/esm2020/lib/components/charts/polar-chart.component.mjs +1 -1
  5. package/dist/esm2020/lib/components/charts/scatter-chart.component.mjs +1 -1
  6. package/dist/esm2020/lib/components/dashboard/dashboard-by-id.component.mjs +4 -2
  7. package/dist/esm2020/lib/components/dashboard/dashboard.component.mjs +9 -4
  8. package/dist/esm2020/lib/components/widgets/dashboard-widget.component.mjs +1 -1
  9. package/dist/esm2020/lib/components/widgets/drilldown-widget.component.mjs +6 -1
  10. package/dist/esm2020/lib/decorators/trackable.decorator.mjs +3 -2
  11. package/dist/esm2020/lib/services/dashboard.service.mjs +3 -1
  12. package/dist/esm2020/lib/services/sisense-context.service.mjs +2 -3
  13. package/dist/esm2020/version.mjs +2 -2
  14. package/dist/fesm2015/sisense-sdk-ui-angular.mjs +31 -10
  15. package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
  16. package/dist/fesm2020/sisense-sdk-ui-angular.mjs +28 -10
  17. package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -1
  18. package/dist/lib/components/charts/line-chart.component.d.ts +1 -1
  19. package/dist/lib/components/charts/pie-chart.component.d.ts +1 -1
  20. package/dist/lib/components/charts/polar-chart.component.d.ts +1 -1
  21. package/dist/lib/components/charts/scatter-chart.component.d.ts +1 -1
  22. package/dist/lib/components/dashboard/dashboard-by-id.component.d.ts +3 -1
  23. package/dist/lib/components/dashboard/dashboard.component.d.ts +9 -3
  24. package/dist/lib/components/widgets/dashboard-widget.component.d.ts +41 -1
  25. package/dist/lib/components/widgets/drilldown-widget.component.d.ts +15 -0
  26. package/dist/lib/services/dashboard.service.d.ts +2 -0
  27. package/dist/lib/services/query.service.d.ts +1 -2
  28. package/dist/lib/services/theme.service.d.ts +27 -0
  29. package/dist/package.json +1 -1
  30. package/dist/version.d.ts +1 -1
  31. package/package.json +4 -4
@@ -64,7 +64,7 @@ export declare class LineChartComponent {
64
64
  */
65
65
  dataSet: LineChartProps['dataSet'];
66
66
  /**
67
- * {@inheritDoc @sisense/sdk-ui!LineChartProps.highlights}
67
+ * {@inheritDoc @sisense/sdk-ui!LineChartProps.dataOptions}
68
68
  *
69
69
  * @category Data
70
70
  */
@@ -66,7 +66,7 @@ export declare class PieChartComponent {
66
66
  */
67
67
  dataSet: PieChartProps['dataSet'];
68
68
  /**
69
- * {@inheritDoc @sisense/sdk-ui!PieChartProps.highlights}
69
+ * {@inheritDoc @sisense/sdk-ui!PieChartProps.dataOptions}
70
70
  *
71
71
  * @category Data
72
72
  */
@@ -65,7 +65,7 @@ export declare class PolarChartComponent {
65
65
  */
66
66
  dataSet: PolarChartProps['dataSet'];
67
67
  /**
68
- * {@inheritDoc @sisense/sdk-ui!PolarChartProps.highlights}
68
+ * {@inheritDoc @sisense/sdk-ui!PolarChartProps.dataOptions}
69
69
  *
70
70
  * @category Data
71
71
  */
@@ -68,7 +68,7 @@ export declare class ScatterChartComponent {
68
68
  */
69
69
  dataSet: ScatterChartProps['dataSet'];
70
70
  /**
71
- * {@inheritDoc @sisense/sdk-ui!ScatterChartProps.highlights}
71
+ * {@inheritDoc @sisense/sdk-ui!ScatterChartProps.dataOptions}
72
72
  *
73
73
  * @category Data
74
74
  */
@@ -6,6 +6,8 @@ import * as i0 from "@angular/core";
6
6
  /**
7
7
  * An Angular component used for easily rendering a dashboard by its ID created in a Sisense Fusion instance.
8
8
  *
9
+ * **Note:** Dashboard extensions based on JS scripts and add-ons in Fusion are not supported.
10
+ *
9
11
  * @example
10
12
  * ```html
11
13
  * <csdk-dashboard-by-id
@@ -26,7 +28,7 @@ import * as i0 from "@angular/core";
26
28
  * ```
27
29
  * @group Fusion Embed
28
30
  * @fusionEmbed
29
- * @internal
31
+ * @alpha
30
32
  */
31
33
  export declare class DashboardByIdComponent implements AfterViewInit, OnChanges, OnDestroy {
32
34
  /**
@@ -4,7 +4,9 @@ import { SisenseContextService } from '../../services/sisense-context.service';
4
4
  import { ThemeService } from '../../services/theme.service';
5
5
  import * as i0 from "@angular/core";
6
6
  /**
7
- * An Angular component used for easily rendering a dashboard.
7
+ * An Angular component used for easily rendering a dashboard created in Sisense Fusion.
8
+ *
9
+ * **Note:** Dashboard extensions based on JS scripts and add-ons in Fusion are not supported.
8
10
  *
9
11
  * @example
10
12
  * ```html
@@ -39,7 +41,7 @@ import * as i0 from "@angular/core";
39
41
  * ```
40
42
  * @group Fusion Embed
41
43
  * @fusionEmbed
42
- * @internal
44
+ * @alpha
43
45
  */
44
46
  export declare class DashboardComponent implements AfterViewInit, OnChanges, OnDestroy {
45
47
  /**
@@ -82,6 +84,10 @@ export declare class DashboardComponent implements AfterViewInit, OnChanges, OnD
82
84
  * {@inheritDoc @sisense/sdk-ui!DashboardProps.widgetFilterOptions}
83
85
  */
84
86
  widgetFilterOptions: DashboardProps['widgetFilterOptions'];
87
+ /**
88
+ * {@inheritDoc @sisense/sdk-ui!DashboardProps.styleOptions}
89
+ */
90
+ styleOptions: DashboardProps['styleOptions'];
85
91
  private componentAdapter;
86
92
  /**
87
93
  * Constructor for the `Dashboard` component.
@@ -116,5 +122,5 @@ export declare class DashboardComponent implements AfterViewInit, OnChanges, OnD
116
122
  */
117
123
  ngOnDestroy(): void;
118
124
  static ɵfac: i0.ɵɵFactoryDeclaration<DashboardComponent, never>;
119
- static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent, "csdk-dashboard", never, { "title": "title"; "layout": "layout"; "widgets": "widgets"; "filters": "filters"; "defaultDataSource": "defaultDataSource"; "widgetFilterOptions": "widgetFilterOptions"; }, {}, never, never, false, never>;
125
+ static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent, "csdk-dashboard", never, { "title": "title"; "layout": "layout"; "widgets": "widgets"; "filters": "filters"; "defaultDataSource": "defaultDataSource"; "widgetFilterOptions": "widgetFilterOptions"; "styleOptions": "styleOptions"; }, {}, never, never, false, never>;
120
126
  }
@@ -41,18 +41,53 @@ export declare class DashboardWidgetComponent implements AfterViewInit, OnChange
41
41
  private themeService;
42
42
  /** @internal */
43
43
  preactRef: ElementRef<HTMLDivElement>;
44
+ /**
45
+ * {@inheritDoc @sisense/sdk-ui!DashboardWidgetProps.widgetOid}
46
+ *
47
+ * @category Widget
48
+ */
44
49
  widgetOid: DashboardWidgetProps['widgetOid'];
50
+ /**
51
+ * {@inheritDoc @sisense/sdk-ui!DashboardWidgetProps.dashboardOid}
52
+ *
53
+ * @category Widget
54
+ */
45
55
  dashboardOid: DashboardWidgetProps['dashboardOid'];
46
56
  /**
47
- * {@inheritDoc @sisense/sdk-ui!ChartProps.filters}
57
+ * {@inheritDoc @sisense/sdk-ui!DashboardWidgetProps.filters}
48
58
  *
49
59
  * @category Data
50
60
  */
51
61
  filters: DashboardWidgetProps['filters'];
62
+ /**
63
+ * {@inheritDoc @sisense/sdk-ui!DashboardWidgetProps.highlights}
64
+ *
65
+ * @category Data
66
+ */
52
67
  highlights: DashboardWidgetProps['highlights'];
68
+ /**
69
+ * {@inheritDoc @sisense/sdk-ui!DashboardWidgetProps.filtersMergeStrategy}
70
+ *
71
+ * @category Data
72
+ */
53
73
  filtersMergeStrategy: DashboardWidgetProps['filtersMergeStrategy'];
74
+ /**
75
+ * {@inheritDoc @sisense/sdk-ui!DashboardWidgetProps.includeDashboardFilters}
76
+ *
77
+ * @category Data
78
+ */
54
79
  includeDashboardFilters: DashboardWidgetProps['includeDashboardFilters'];
80
+ /**
81
+ * {@inheritDoc @sisense/sdk-ui!DashboardWidgetProps.title}
82
+ *
83
+ * @category Widget
84
+ */
55
85
  title: DashboardWidgetProps['title'];
86
+ /**
87
+ * {@inheritDoc @sisense/sdk-ui!DashboardWidgetProps.description}
88
+ *
89
+ * @category Widget
90
+ */
56
91
  description: DashboardWidgetProps['description'];
57
92
  /**
58
93
  * {@inheritDoc @sisense/sdk-ui!DashboardWidgetProps.styleOptions}
@@ -60,6 +95,11 @@ export declare class DashboardWidgetComponent implements AfterViewInit, OnChange
60
95
  * @category Widget
61
96
  */
62
97
  styleOptions: DashboardWidgetProps['styleOptions'];
98
+ /**
99
+ * {@inheritDoc @sisense/sdk-ui!DashboardWidgetProps.highlightSelectionDisabled}
100
+ *
101
+ * @category Widget
102
+ */
63
103
  highlightSelectionDisabled: DashboardWidgetProps['highlightSelectionDisabled'];
64
104
  /** @internal */
65
105
  drilldownOptions: DashboardWidgetProps['drilldownOptions'];
@@ -100,16 +100,31 @@ export declare class DrilldownWidgetComponent implements AfterViewInit, OnChange
100
100
  preactContentRef: ElementRef<HTMLDivElement>;
101
101
  /**
102
102
  * {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.drilldownDimensions}
103
+ *
104
+ * @category Widget
105
+ *
103
106
  */
104
107
  drilldownDimensions: DrilldownWidgetProps['drilldownDimensions'];
105
108
  /**
106
109
  * {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.initialDimension}
110
+ *
111
+ * @category Widget
107
112
  */
108
113
  initialDimension: DrilldownWidgetProps['initialDimension'];
114
+ /**
115
+ * {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.config}
116
+ *
117
+ * @category Widget
118
+ */
109
119
  config?: Omit<DrilldownWidgetProps['config'], 'breadcrumbsComponent | contextMenuComponent'> & {
110
120
  breadcrumbsComponent?: (drilldownBreadcrumbsProps: DrilldownBreadcrumbsProps) => HTMLDivElement;
111
121
  contextMenuComponent?: (contextMenuProps: ContextMenuProps) => HTMLDivElement;
112
122
  };
123
+ /**
124
+ * Drilldown result change handler callback
125
+ *
126
+ * @category Callbacks
127
+ */
113
128
  drilldownResultChange: EventEmitter<CustomDrilldownResult>;
114
129
  private componentAdapter;
115
130
  /**
@@ -4,6 +4,8 @@ import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Service for working with Sisense Fusion dashboards.
6
6
  *
7
+ * **Note:** Dashboard extensions based on JS scripts and add-ons in Fusion are not supported.
8
+ *
7
9
  * @group Fusion Embed
8
10
  * @fusionEmbed
9
11
  */
@@ -40,8 +40,7 @@ export declare class QueryService {
40
40
  */
41
41
  executeQueryByWidgetId(params: ExecuteQueryByWidgetIdParams): Promise<{
42
42
  data: import("@sisense/sdk-data").QueryResultData;
43
- query: import("@sisense/sdk-ui/dist/query/execute-query").QueryDescription;
44
- }>;
43
+ } & import("@sisense/sdk-ui-preact").QueryByWidgetIdQueryParams>;
45
44
  static ɵfac: i0.ɵɵFactoryDeclaration<QueryService, never>;
46
45
  static ɵprov: i0.ɵɵInjectableDeclaration<QueryService>;
47
46
  }
@@ -59,6 +59,14 @@ export declare class ThemeService {
59
59
  secondaryTextColor: string;
60
60
  backgroundColor: string;
61
61
  panelBackgroundColor: string;
62
+ animation: {
63
+ init: {
64
+ duration: number | "auto";
65
+ };
66
+ redraw: {
67
+ duration: number | "auto";
68
+ };
69
+ };
62
70
  };
63
71
  palette: {
64
72
  variantColors: import("@sisense/sdk-ui-preact").Color[];
@@ -74,6 +82,25 @@ export declare class ThemeService {
74
82
  primaryButtonTextColor: string;
75
83
  primaryButtonHoverColor: string;
76
84
  };
85
+ widget: {
86
+ spaceAround: import("@sisense/sdk-ui-preact").SpaceSizes;
87
+ cornerRadius: import("@sisense/sdk-ui-preact").RadiusSizes;
88
+ shadow: import("@sisense/sdk-ui-preact").ShadowsTypes;
89
+ border: boolean;
90
+ borderColor: string;
91
+ header: {
92
+ titleTextColor: string;
93
+ titleAlignment: import("@sisense/sdk-ui-preact").AlignmentTypes;
94
+ dividerLine: boolean;
95
+ dividerLineColor: string;
96
+ backgroundColor: string;
97
+ };
98
+ };
99
+ dashboard: {
100
+ backgroundColor: string;
101
+ dividerLineWidth: number;
102
+ dividerLineColor: string;
103
+ };
77
104
  aiChat: {
78
105
  backgroundColor: string;
79
106
  primaryTextColor: string;
package/dist/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "Sisense",
12
12
  "Compose SDK"
13
13
  ],
14
- "version": "1.15.1",
14
+ "version": "1.17.0",
15
15
  "author": "Sisense",
16
16
  "license": "SEE LICENSE IN LICENSE.md",
17
17
  "main": "dist",
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "1.15.1";
1
+ declare const _default: "1.17.0";
2
2
  export default _default;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "Sisense",
12
12
  "Compose SDK"
13
13
  ],
14
- "version": "1.15.1",
14
+ "version": "1.17.0",
15
15
  "author": "Sisense",
16
16
  "license": "SEE LICENSE IN LICENSE.md",
17
17
  "main": "dist",
@@ -45,9 +45,9 @@
45
45
  "@angular/core": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0"
46
46
  },
47
47
  "dependencies": {
48
- "@sisense/sdk-data": "^1.15.1",
49
- "@sisense/sdk-tracking": "^1.15.1",
50
- "@sisense/sdk-ui-preact": "^1.15.1",
48
+ "@sisense/sdk-data": "^1.17.0",
49
+ "@sisense/sdk-tracking": "^1.17.0",
50
+ "@sisense/sdk-ui-preact": "^1.17.0",
51
51
  "rxjs": "^7.8.1",
52
52
  "ts-deepmerge": "^6.2.0",
53
53
  "tslib": "^2.3.0"