@sisense/sdk-ui-angular 2.3.0 → 2.4.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 (55) hide show
  1. package/dist/esm2020/lib/component-wrapper-helpers/context-connectors.mjs +21 -13
  2. package/dist/esm2020/lib/components/dashboard/dashboard-by-id.component.mjs +9 -9
  3. package/dist/esm2020/lib/components/dashboard/dashboard.component.mjs +9 -9
  4. package/dist/esm2020/lib/components/filters/filters-panel.component.mjs +129 -0
  5. package/dist/esm2020/lib/components/filters/index.mjs +2 -1
  6. package/dist/esm2020/lib/components/widgets/widget.component.mjs +4 -4
  7. package/dist/esm2020/lib/helpers/widget-props-preact-translator.mjs +5 -2
  8. package/dist/esm2020/lib/sdk-ui-core-exports.mjs +2 -2
  9. package/dist/esm2020/lib/sdk-ui.module.mjs +6 -2
  10. package/dist/esm2020/lib/services/custom-widgets.service.mjs +53 -0
  11. package/dist/esm2020/lib/services/dashboard.service.mjs +2 -2
  12. package/dist/esm2020/lib/services/dynamic-renderer.service.mjs +45 -0
  13. package/dist/esm2020/lib/services/filter.service.mjs +75 -0
  14. package/dist/esm2020/lib/services/index.mjs +3 -2
  15. package/dist/esm2020/lib/services/query.service.mjs +37 -3
  16. package/dist/esm2020/lib/types/chart-event-props.mjs +1 -1
  17. package/dist/esm2020/lib/types/data-point.mjs +1 -1
  18. package/dist/esm2020/lib/types/filter-event-props.mjs +1 -1
  19. package/dist/esm2020/lib/types/index.mjs +2 -2
  20. package/dist/esm2020/lib/types/widget-event-props.mjs +2 -0
  21. package/dist/esm2020/lib/utilities/widget-model-translator.mjs +1 -1
  22. package/dist/esm2020/public-api.mjs +2 -2
  23. package/dist/esm2020/version.mjs +2 -2
  24. package/dist/fesm2015/sisense-sdk-ui-angular.mjs +368 -86
  25. package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
  26. package/dist/fesm2020/sisense-sdk-ui-angular.mjs +364 -86
  27. package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -1
  28. package/dist/lib/component-wrapper-helpers/context-connectors.d.ts +5 -5
  29. package/dist/lib/components/dashboard/dashboard-by-id.component.d.ts +7 -11
  30. package/dist/lib/components/dashboard/dashboard.component.d.ts +7 -11
  31. package/dist/lib/components/filters/filters-panel.component.d.ts +134 -0
  32. package/dist/lib/components/filters/index.d.ts +1 -0
  33. package/dist/lib/components/widgets/widget.component.d.ts +11 -5
  34. package/dist/lib/sdk-ui-core-exports.d.ts +2 -2
  35. package/dist/lib/sdk-ui.module.d.ts +5 -4
  36. package/dist/lib/services/custom-widgets.service.d.ts +41 -0
  37. package/dist/lib/services/dashboard.service.d.ts +1 -1
  38. package/dist/lib/services/dynamic-renderer.service.d.ts +27 -0
  39. package/dist/lib/services/filter.service.d.ts +46 -0
  40. package/dist/lib/services/index.d.ts +2 -1
  41. package/dist/lib/services/query.service.d.ts +21 -3
  42. package/dist/lib/types/chart-event-props.d.ts +8 -1
  43. package/dist/lib/types/data-point.d.ts +21 -2
  44. package/dist/lib/types/filter-event-props.d.ts +9 -1
  45. package/dist/lib/types/index.d.ts +1 -1
  46. package/dist/lib/types/widget-event-props.d.ts +13 -0
  47. package/dist/lib/utilities/widget-model-translator.d.ts +2 -2
  48. package/dist/package.json +1 -1
  49. package/dist/public-api.d.ts +2 -2
  50. package/dist/version.d.ts +1 -1
  51. package/package.json +4 -4
  52. package/dist/esm2020/lib/services/plugins.service.mjs +0 -55
  53. package/dist/esm2020/lib/types/dashboard-config.mjs +0 -2
  54. package/dist/lib/services/plugins.service.d.ts +0 -37
  55. package/dist/lib/types/dashboard-config.d.ts +0 -24
@@ -1,4 +1,4 @@
1
- import { Filter } from '@sisense/sdk-data';
1
+ import { Filter, FilterRelations } from '@sisense/sdk-data';
2
2
  export type FilterChangeEvent = {
3
3
  /** Filter that was changed */
4
4
  filter: Filter | null;
@@ -7,6 +7,10 @@ export type FilterEditEvent = {
7
7
  /** Index of the filter level that triggers the edit event (in the case of a cascading filter) */
8
8
  levelIndex?: number;
9
9
  };
10
+ export type FiltersPanelChangeEvent = {
11
+ /** The updated filters */
12
+ filters: Filter[] | FilterRelations;
13
+ };
10
14
  /**
11
15
  * Filter change event handler.
12
16
  */
@@ -19,6 +23,10 @@ export type FilterEditEventHandler = (event: FilterEditEvent) => void;
19
23
  * Filter delete event handler.
20
24
  */
21
25
  export type FilterDeleteEventHandler = () => void;
26
+ /**
27
+ * Filters panel change event handler.
28
+ */
29
+ export type FiltersPanelChangeEventHandler = (event: FiltersPanelChangeEvent) => void;
22
30
  export interface BaseFilterTileEventProps {
23
31
  /**
24
32
  * {@inheritDoc FilterChangeEventHandler}
@@ -1,5 +1,5 @@
1
1
  export * from './chart-event-props';
2
- export * from './dashboard-config';
3
2
  export * from './data-point';
4
3
  export * from './filter-event-props';
5
4
  export * from './utility-types';
5
+ export * from './widget-event-props';
@@ -0,0 +1,13 @@
1
+ import { TextWidgetDataPointEventHandler } from './data-point';
2
+ /**
3
+ * Event props for Text widget
4
+ */
5
+ export interface TextWidgetEventProps {
6
+ /**
7
+ * {@inheritDoc @sisense/sdk-ui!TextWidgetProps.onDataPointClick}
8
+ *
9
+ * @category Callbacks
10
+ * @internal
11
+ */
12
+ dataPointClick?: TextWidgetDataPointEventHandler;
13
+ }
@@ -1,5 +1,5 @@
1
- import { type TextWidgetProps, type WidgetModel } from '@sisense/sdk-ui-preact';
2
- import { ChartProps, ChartWidgetProps, PivotTableProps, PivotTableWidgetProps, TableProps } from '../components';
1
+ import { type WidgetModel } from '@sisense/sdk-ui-preact';
2
+ import { ChartProps, ChartWidgetProps, PivotTableProps, PivotTableWidgetProps, TableProps, type TextWidgetProps } from '../components';
3
3
  import { ExecutePivotQueryParams, ExecuteQueryParams } from '../services';
4
4
  /**
5
5
  * Translates a {@link WidgetModel} to the parameters for executing a query for the widget.
package/dist/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "Sisense",
12
12
  "Compose SDK"
13
13
  ],
14
- "version": "2.3.0",
14
+ "version": "2.4.0",
15
15
  "author": "Sisense",
16
16
  "license": "SEE LICENSE IN LICENSE.md",
17
17
  "main": "dist",
@@ -5,7 +5,7 @@ export * from './lib/components';
5
5
  export * from './lib/sdk-ui.module';
6
6
  export * from './lib/sdk-ui-core-exports';
7
7
  export * from './lib/services';
8
- export type { AreamapDataPointEvent, AreamapDataPointEventHandler, BoxplotDataPointEvent, BoxplotDataPointEventHandler, BoxplotDataPointsEvent, ChartDataPointClickEvent, ChartDataPointClickEventHandler, ChartDataPointContextMenuEvent, ChartDataPointContextMenuEventHandler, ChartDataPointsEvent, ChartDataPointsEventHandler, DashboardByIdConfig, DashboardConfig, DashboardFiltersPanelConfig, DataPointEvent, DataPointEventHandler, DataPointsEvent, DataPointsEventHandler, FilterChangeEvent, FilterChangeEventHandler, FilterDeleteEventHandler, FilterEditEvent, FilterEditEventHandler, ScatterDataPointEvent, ScatterDataPointEventHandler, ScatterDataPointsEvent, ScatterDataPointsEventHandler, ScattermapDataPointEvent, ScattermapDataPointEventHandler, } from './lib/types';
8
+ export type { AreamapDataPointEvent, AreamapDataPointEventHandler, BoxplotDataPointEvent, BoxplotDataPointEventHandler, BoxplotDataPointsEvent, ChartDataPointClickEvent, ChartDataPointClickEventHandler, ChartDataPointContextMenuEvent, ChartDataPointContextMenuEventHandler, ChartDataPointsEvent, ChartDataPointsEventHandler, DataPointEvent, DataPointEventHandler, DataPointsEvent, DataPointsEventHandler, FilterChangeEvent, FilterChangeEventHandler, FilterDeleteEventHandler, FilterEditEvent, FilterEditEventHandler, FiltersPanelChangeEvent, FiltersPanelChangeEventHandler, IndicatorDataPointEvent, IndicatorDataPointEventHandler, ScatterDataPointEvent, ScatterDataPointEventHandler, ScatterDataPointsEvent, ScatterDataPointsEventHandler, ScattermapDataPointEvent, ScattermapDataPointEventHandler, } from './lib/types';
9
9
  export * from './lib/utilities';
10
- export { createPluginsContextConnector, createSisenseContextConnector, createThemeContextConnector, } from './lib/component-wrapper-helpers';
10
+ export { createCustomWidgetsContextConnector, createSisenseContextConnector, createThemeContextConnector, } from './lib/component-wrapper-helpers';
11
11
  export { TrackableService } from './lib/decorators';
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.3.0";
1
+ declare const _default: "2.4.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": "2.3.0",
14
+ "version": "2.4.0",
15
15
  "author": "Sisense",
16
16
  "license": "SEE LICENSE IN LICENSE.md",
17
17
  "main": "dist",
@@ -76,9 +76,9 @@
76
76
  "@angular/core": "^17.0.0 || ^18.0.0 || ^19.0.0"
77
77
  },
78
78
  "dependencies": {
79
- "@sisense/sdk-data": "2.3.0",
80
- "@sisense/sdk-tracking": "2.3.0",
81
- "@sisense/sdk-ui-preact": "2.3.0",
79
+ "@sisense/sdk-data": "2.4.0",
80
+ "@sisense/sdk-tracking": "2.4.0",
81
+ "@sisense/sdk-ui-preact": "2.4.0",
82
82
  "rxjs": "^7.8.1",
83
83
  "ts-deepmerge": "^6.2.0",
84
84
  "tslib": "^2.3.0"
@@ -1,55 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import { BehaviorSubject } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Service for working with plugins fetched from an external environment.
6
- *
7
- * Provides methods for registering, retrieving, and interacting with plugins.
8
- *
9
- * @internal
10
- * @group Contexts
11
- */
12
- export class PluginsService {
13
- constructor() {
14
- this.pluginMap$ = new BehaviorSubject(new Map());
15
- }
16
- /**
17
- * Registers a new plugin into the plugin map.
18
- *
19
- * @param pluginType - The unique identifier for the plugin type.
20
- * @param plugin - The plugin instance to register.
21
- */
22
- registerPlugin(pluginType, plugin) {
23
- const pluginMap = this.pluginMap$.value;
24
- if (!pluginMap.has(pluginType)) {
25
- pluginMap.set(pluginType, plugin);
26
- this.pluginMap$.next(pluginMap);
27
- }
28
- }
29
- /**
30
- * Retrieves a plugin by its type.
31
- *
32
- * @param pluginType - The unique identifier for the plugin type.
33
- * @returns The plugin instance if found, otherwise undefined.
34
- */
35
- getPlugin(pluginType) {
36
- return this.pluginMap$.value.get(pluginType);
37
- }
38
- /**
39
- * Retrieves a complete plugin map.
40
- *
41
- * @returns A plugin map.
42
- */
43
- getPlugins() {
44
- return this.pluginMap$;
45
- }
46
- }
47
- PluginsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PluginsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
48
- PluginsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PluginsService, providedIn: 'root' });
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PluginsService, decorators: [{
50
- type: Injectable,
51
- args: [{
52
- providedIn: 'root',
53
- }]
54
- }], ctorParameters: function () { return []; } });
55
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGx1Z2lucy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2xpYi9zZXJ2aWNlcy9wbHVnaW5zLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUzQyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sTUFBTSxDQUFDOztBQUV2Qzs7Ozs7OztHQU9HO0FBSUgsTUFBTSxPQUFPLGNBQWM7SUFHekI7UUFDRSxJQUFJLENBQUMsVUFBVSxHQUFHLElBQUksZUFBZSxDQUFDLElBQUksR0FBRyxFQUEyQixDQUFDLENBQUM7SUFDNUUsQ0FBQztJQUVEOzs7OztPQUtHO0lBQ0gsY0FBYyxDQUFDLFVBQWtCLEVB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ufVxuIl19
@@ -1,37 +0,0 @@
1
- import { PluginComponent } from '@sisense/sdk-ui-preact';
2
- import { BehaviorSubject } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Service for working with plugins fetched from an external environment.
6
- *
7
- * Provides methods for registering, retrieving, and interacting with plugins.
8
- *
9
- * @internal
10
- * @group Contexts
11
- */
12
- export declare class PluginsService {
13
- private pluginMap$;
14
- constructor();
15
- /**
16
- * Registers a new plugin into the plugin map.
17
- *
18
- * @param pluginType - The unique identifier for the plugin type.
19
- * @param plugin - The plugin instance to register.
20
- */
21
- registerPlugin(pluginType: string, plugin: PluginComponent): void;
22
- /**
23
- * Retrieves a plugin by its type.
24
- *
25
- * @param pluginType - The unique identifier for the plugin type.
26
- * @returns The plugin instance if found, otherwise undefined.
27
- */
28
- getPlugin(pluginType: string): PluginComponent | undefined;
29
- /**
30
- * Retrieves a complete plugin map.
31
- *
32
- * @returns A plugin map.
33
- */
34
- getPlugins(): BehaviorSubject<Map<string, PluginComponent<import("@sisense/sdk-ui-preact").PluginComponentProps<import("@sisense/sdk-ui-preact").GenericDataOptions, any>>>>;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<PluginsService, never>;
36
- static ɵprov: i0.ɵɵInjectableDeclaration<PluginsService>;
37
- }
@@ -1,24 +0,0 @@
1
- import type { DashboardByIdConfig as DashboardByIdConfigPreact, DashboardConfig as DashboardConfigPreact, DashboardFiltersPanelConfig as DashboardFiltersPanelConfigPreact } from '@sisense/sdk-ui-preact';
2
- /**
3
- * {@inheritDoc @sisense/sdk-ui!DashboardFiltersPanelConfig}
4
- */
5
- export interface DashboardFiltersPanelConfig extends Omit<DashboardFiltersPanelConfigPreact, 'actions'> {
6
- }
7
- /**
8
- * {@inheritDoc @sisense/sdk-ui!DashboardConfig}
9
- */
10
- export interface DashboardConfig extends Omit<DashboardConfigPreact, 'filtersPanel'> {
11
- /**
12
- * {@inheritDoc @sisense/sdk-ui!DashboardConfig.filtersPanel}
13
- */
14
- filtersPanel?: DashboardFiltersPanelConfig;
15
- }
16
- /**
17
- * {@inheritDoc @sisense/sdk-ui!DashboardByIdConfig}
18
- */
19
- export interface DashboardByIdConfig extends Omit<DashboardByIdConfigPreact, 'filtersPanel'> {
20
- /**
21
- * {@inheritDoc @sisense/sdk-ui!DashboardByIdConfig.filtersPanel}
22
- */
23
- filtersPanel?: DashboardFiltersPanelConfig;
24
- }