@sisense/sdk-ui-angular 0.13.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.
- package/LICENSE.md +35 -0
- package/README.md +2 -0
- package/dist/README.md +2 -0
- package/dist/esm2020/lib/component-wrapper-helpers/context-connectors.mjs +29 -0
- package/dist/esm2020/lib/component-wrapper-helpers/index.mjs +2 -0
- package/dist/esm2020/lib/component-wrapper-helpers/template.mjs +3 -0
- package/dist/esm2020/lib/components/area-chart.component.mjs +82 -0
- package/dist/esm2020/lib/components/bar-chart.component.mjs +82 -0
- package/dist/esm2020/lib/components/basic-member-filter-tile.component.mjs +62 -0
- package/dist/esm2020/lib/components/chart-widget.component.mjs +112 -0
- package/dist/esm2020/lib/components/chart.component.mjs +169 -0
- package/dist/esm2020/lib/components/column-chart.component.mjs +82 -0
- package/dist/esm2020/lib/components/dashboard-widget.component.mjs +83 -0
- package/dist/esm2020/lib/components/funnel-chart.component.mjs +82 -0
- package/dist/esm2020/lib/components/index.mjs +17 -0
- package/dist/esm2020/lib/components/indicator-chart.component.mjs +48 -0
- package/dist/esm2020/lib/components/line-chart.component.mjs +82 -0
- package/dist/esm2020/lib/components/pie-chart.component.mjs +82 -0
- package/dist/esm2020/lib/components/polar-chart.component.mjs +82 -0
- package/dist/esm2020/lib/components/scatter-chart.component.mjs +82 -0
- package/dist/esm2020/lib/components/table-widget.component.mjs +72 -0
- package/dist/esm2020/lib/components/table.component.mjs +64 -0
- package/dist/esm2020/lib/components/treemap-chart.component.mjs +82 -0
- package/dist/esm2020/lib/sdk-ui.module.mjs +110 -0
- package/dist/esm2020/lib/services/index.mjs +4 -0
- package/dist/esm2020/lib/services/query.service.mjs +31 -0
- package/dist/esm2020/lib/services/sisense-context.service.mjs +59 -0
- package/dist/esm2020/lib/services/theme.service.mjs +90 -0
- package/dist/esm2020/lib/utility-types.mjs +2 -0
- package/dist/esm2020/public-api.mjs +7 -0
- package/dist/esm2020/sisense-sdk-ui-angular.mjs +5 -0
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs +1610 -0
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -0
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs +1598 -0
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/lib/component-wrapper-helpers/context-connectors.d.ts +5 -0
- package/dist/lib/component-wrapper-helpers/index.d.ts +1 -0
- package/dist/lib/component-wrapper-helpers/template.d.ts +2 -0
- package/dist/lib/components/area-chart.component.d.ts +67 -0
- package/dist/lib/components/bar-chart.component.d.ts +67 -0
- package/dist/lib/components/basic-member-filter-tile.component.d.ts +31 -0
- package/dist/lib/components/chart-widget.component.d.ts +75 -0
- package/dist/lib/components/chart.component.d.ts +167 -0
- package/dist/lib/components/column-chart.component.d.ts +62 -0
- package/dist/lib/components/dashboard-widget.component.d.ts +46 -0
- package/dist/lib/components/funnel-chart.component.d.ts +67 -0
- package/dist/lib/components/index.d.ts +16 -0
- package/dist/lib/components/indicator-chart.component.d.ts +41 -0
- package/dist/lib/components/line-chart.component.d.ts +67 -0
- package/dist/lib/components/pie-chart.component.d.ts +67 -0
- package/dist/lib/components/polar-chart.component.d.ts +67 -0
- package/dist/lib/components/scatter-chart.component.d.ts +67 -0
- package/dist/lib/components/table-widget.component.d.ts +40 -0
- package/dist/lib/components/table.component.d.ts +49 -0
- package/dist/lib/components/treemap-chart.component.d.ts +67 -0
- package/dist/lib/sdk-ui.module.d.ts +49 -0
- package/dist/lib/services/index.d.ts +3 -0
- package/dist/lib/services/query.service.d.ts +16 -0
- package/dist/lib/services/sisense-context.service.d.ts +41 -0
- package/dist/lib/services/theme.service.d.ts +71 -0
- package/dist/lib/utility-types.d.ts +11 -0
- package/dist/package.json +46 -0
- package/dist/public-api.d.ts +3 -0
- package/package.json +53 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { type TableWidgetProps } from '@sisense/sdk-ui-preact';
|
|
3
|
+
import { SisenseContextService } from '../services/sisense-context.service';
|
|
4
|
+
import { ThemeService } from '../services/theme.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Table Widget Component
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare class TableWidgetComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
12
|
+
private sisenseContextService;
|
|
13
|
+
private themeService;
|
|
14
|
+
preactRef: ElementRef<HTMLDivElement>;
|
|
15
|
+
dataSource: TableWidgetProps['dataSource'];
|
|
16
|
+
dataOptions: TableWidgetProps['dataOptions'];
|
|
17
|
+
/**
|
|
18
|
+
* {@inheritDoc @sisense/sdk-ui!ChartProps.filters}
|
|
19
|
+
*
|
|
20
|
+
* @category Data
|
|
21
|
+
*/
|
|
22
|
+
filters: TableWidgetProps['filters'];
|
|
23
|
+
/**
|
|
24
|
+
* {@inheritDoc @sisense/sdk-ui!ChartProps.styleOptions}
|
|
25
|
+
*
|
|
26
|
+
* @category Representation
|
|
27
|
+
*/
|
|
28
|
+
styleOptions: TableWidgetProps['styleOptions'];
|
|
29
|
+
widgetStyleOptions: TableWidgetProps['widgetStyleOptions'];
|
|
30
|
+
title: TableWidgetProps['title'];
|
|
31
|
+
description: TableWidgetProps['description'];
|
|
32
|
+
private componentAdapter;
|
|
33
|
+
constructor(sisenseContextService: SisenseContextService, themeService: ThemeService);
|
|
34
|
+
ngAfterViewInit(): void;
|
|
35
|
+
ngOnChanges(): void;
|
|
36
|
+
private createPreactComponent;
|
|
37
|
+
ngOnDestroy(): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableWidgetComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableWidgetComponent, "csdk-table-widget", never, { "dataSource": "dataSource"; "dataOptions": "dataOptions"; "filters": "filters"; "styleOptions": "styleOptions"; "widgetStyleOptions": "widgetStyleOptions"; "title": "title"; "description": "description"; }, {}, never, never, false, never>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { type TableProps } from '@sisense/sdk-ui-preact';
|
|
3
|
+
import { SisenseContextService } from '../services/sisense-context.service';
|
|
4
|
+
import { ThemeService } from '../services/theme.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Table Component
|
|
8
|
+
*/
|
|
9
|
+
export declare class TableComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
10
|
+
private sisenseContextService;
|
|
11
|
+
private themeService;
|
|
12
|
+
/** @internal */
|
|
13
|
+
preactRef: ElementRef<HTMLDivElement>;
|
|
14
|
+
/**
|
|
15
|
+
* {@inheritDoc @sisense/sdk-ui!ChartProps.dataSet}
|
|
16
|
+
*
|
|
17
|
+
* @category Data
|
|
18
|
+
*/
|
|
19
|
+
dataSet: TableProps['dataSet'];
|
|
20
|
+
/**
|
|
21
|
+
* {@inheritDoc @sisense/sdk-ui!ChartProps.highlights}
|
|
22
|
+
*
|
|
23
|
+
* @category Data
|
|
24
|
+
*/
|
|
25
|
+
dataOptions: TableProps['dataOptions'];
|
|
26
|
+
/**
|
|
27
|
+
* {@inheritDoc @sisense/sdk-ui!ChartProps.filters}
|
|
28
|
+
*
|
|
29
|
+
* @category Data
|
|
30
|
+
*/
|
|
31
|
+
filters: TableProps['filters'];
|
|
32
|
+
/**
|
|
33
|
+
* {@inheritDoc @sisense/sdk-ui!ChartProps.styleOptions}
|
|
34
|
+
*
|
|
35
|
+
* @category Representation
|
|
36
|
+
*/
|
|
37
|
+
styleOptions: TableProps['styleOptions'];
|
|
38
|
+
private componentAdapter;
|
|
39
|
+
constructor(sisenseContextService: SisenseContextService, themeService: ThemeService);
|
|
40
|
+
/** @internal */
|
|
41
|
+
ngAfterViewInit(): void;
|
|
42
|
+
/** @internal */
|
|
43
|
+
ngOnChanges(): void;
|
|
44
|
+
private createPreactComponent;
|
|
45
|
+
/** @internal */
|
|
46
|
+
ngOnDestroy(): void;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "csdk-table", never, { "dataSet": "dataSet"; "dataOptions": "dataOptions"; "filters": "filters"; "styleOptions": "styleOptions"; }, {}, never, never, false, never>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { type ChartType, type TreemapChartProps } from '@sisense/sdk-ui-preact';
|
|
3
|
+
import { type ArgumentsAsObject } from '../utility-types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Treemap Chart Component
|
|
7
|
+
*/
|
|
8
|
+
export declare class TreemapChartComponent {
|
|
9
|
+
/**
|
|
10
|
+
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.dataSet}
|
|
11
|
+
*
|
|
12
|
+
* @category Data
|
|
13
|
+
*/
|
|
14
|
+
dataSet: TreemapChartProps['dataSet'];
|
|
15
|
+
/**
|
|
16
|
+
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.dataOptions}
|
|
17
|
+
*
|
|
18
|
+
* @category Chart
|
|
19
|
+
*/
|
|
20
|
+
dataOptions: TreemapChartProps['dataOptions'];
|
|
21
|
+
/**
|
|
22
|
+
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.filters}
|
|
23
|
+
*
|
|
24
|
+
* @category Data
|
|
25
|
+
*/
|
|
26
|
+
filters: TreemapChartProps['filters'];
|
|
27
|
+
/**
|
|
28
|
+
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.highlights}
|
|
29
|
+
*
|
|
30
|
+
* @category Data
|
|
31
|
+
*/
|
|
32
|
+
highlights: TreemapChartProps['highlights'];
|
|
33
|
+
/**
|
|
34
|
+
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.styleOptions}
|
|
35
|
+
*
|
|
36
|
+
* @category Chart
|
|
37
|
+
*/
|
|
38
|
+
styleOptions: TreemapChartProps['styleOptions'];
|
|
39
|
+
/**
|
|
40
|
+
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.onBeforeRender}
|
|
41
|
+
*
|
|
42
|
+
* @category Callbacks
|
|
43
|
+
*/
|
|
44
|
+
beforeRender: TreemapChartProps['onBeforeRender'];
|
|
45
|
+
/**
|
|
46
|
+
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.onDataPointClick}
|
|
47
|
+
*
|
|
48
|
+
* @category Callbacks
|
|
49
|
+
*/
|
|
50
|
+
dataPointClick: EventEmitter<ArgumentsAsObject<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined, ["point", "nativeEvent"]>>;
|
|
51
|
+
/**
|
|
52
|
+
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.onDataPointContextMenu}
|
|
53
|
+
*
|
|
54
|
+
* @category Callbacks
|
|
55
|
+
*/
|
|
56
|
+
dataPointContextMenu: EventEmitter<ArgumentsAsObject<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined, ["point", "nativeEvent"]>>;
|
|
57
|
+
/**
|
|
58
|
+
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.onDataPointsSelected}
|
|
59
|
+
*
|
|
60
|
+
* @category Callbacks
|
|
61
|
+
*/
|
|
62
|
+
dataPointsSelect: EventEmitter<ArgumentsAsObject<import("@sisense/sdk-ui-preact").DataPointsEventHandler | undefined, ["points", "nativeEvent"]>>;
|
|
63
|
+
/** @internal */
|
|
64
|
+
chartType: ChartType;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TreemapChartComponent, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreemapChartComponent, "csdk-treemap-chart", never, { "dataSet": "dataSet"; "dataOptions": "dataOptions"; "filters": "filters"; "highlights": "highlights"; "styleOptions": "styleOptions"; "beforeRender": "beforeRender"; }, { "dataPointClick": "dataPointClick"; "dataPointContextMenu": "dataPointContextMenu"; "dataPointsSelect": "dataPointsSelect"; }, never, never, false, never>;
|
|
67
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/basic-member-filter-tile.component";
|
|
3
|
+
import * as i2 from "./components/chart.component";
|
|
4
|
+
import * as i3 from "./components/table.component";
|
|
5
|
+
import * as i4 from "./components/chart-widget.component";
|
|
6
|
+
import * as i5 from "./components/column-chart.component";
|
|
7
|
+
import * as i6 from "./components/bar-chart.component";
|
|
8
|
+
import * as i7 from "./components/area-chart.component";
|
|
9
|
+
import * as i8 from "./components/line-chart.component";
|
|
10
|
+
import * as i9 from "./components/indicator-chart.component";
|
|
11
|
+
import * as i10 from "./components/scatter-chart.component";
|
|
12
|
+
import * as i11 from "./components/pie-chart.component";
|
|
13
|
+
import * as i12 from "./components/funnel-chart.component";
|
|
14
|
+
import * as i13 from "./components/polar-chart.component";
|
|
15
|
+
import * as i14 from "./components/treemap-chart.component";
|
|
16
|
+
import * as i15 from "./components/table-widget.component";
|
|
17
|
+
import * as i16 from "./components/dashboard-widget.component";
|
|
18
|
+
import * as i17 from "@angular/common";
|
|
19
|
+
/**
|
|
20
|
+
* SDK UI Module, which is a container for components.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* Example of importing `SdkUiModule` and injecting {@link SisenseContextConfig} into your application:
|
|
24
|
+
*
|
|
25
|
+
* ```ts
|
|
26
|
+
* export const SISENSE_CONTEXT_CONFIG: SisenseContextConfig = {
|
|
27
|
+
* url="<instance url>" // replace with the URL of your Sisense instance
|
|
28
|
+
* token="<api token>" // replace with the API token of your user account
|
|
29
|
+
* defaultDataSource: DM.DataSource,
|
|
30
|
+
* };
|
|
31
|
+
*
|
|
32
|
+
* @NgModule({
|
|
33
|
+
* imports: [
|
|
34
|
+
* BrowserModule,
|
|
35
|
+
* SdkUiModule,
|
|
36
|
+
* ],
|
|
37
|
+
* declarations: [AppComponent],
|
|
38
|
+
* providers: [
|
|
39
|
+
* { provide: SISENSE_CONTEXT_CONFIG_TOKEN, useValue: SISENSE_CONTEXT_CONFIG },
|
|
40
|
+
* ],
|
|
41
|
+
* bootstrap: [AppComponent],
|
|
42
|
+
* })
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare class SdkUiModule {
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdkUiModule, never>;
|
|
47
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SdkUiModule, [typeof i1.BasicMemberFilterTileComponent, typeof i2.ChartComponent, typeof i3.TableComponent, typeof i4.ChartWidgetComponent, typeof i5.ColumnChartComponent, typeof i6.BarChartComponent, typeof i7.AreaChartComponent, typeof i8.LineChartComponent, typeof i9.IndicatorChartComponent, typeof i10.ScatterChartComponent, typeof i11.PieChartComponent, typeof i12.FunnelChartComponent, typeof i13.PolarChartComponent, typeof i14.TreemapChartComponent, typeof i15.TableWidgetComponent, typeof i16.DashboardWidgetComponent], [typeof i17.CommonModule], [typeof i1.BasicMemberFilterTileComponent, typeof i2.ChartComponent, typeof i3.TableComponent, typeof i4.ChartWidgetComponent, typeof i5.ColumnChartComponent, typeof i6.BarChartComponent, typeof i7.AreaChartComponent, typeof i8.LineChartComponent, typeof i9.IndicatorChartComponent, typeof i10.ScatterChartComponent, typeof i11.PieChartComponent, typeof i12.FunnelChartComponent, typeof i13.PolarChartComponent, typeof i14.TreemapChartComponent, typeof i15.TableWidgetComponent, typeof i16.DashboardWidgetComponent]>;
|
|
48
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SdkUiModule>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ExecuteQueryParams, type ExecuteQueryByWidgetIdParams } from '@sisense/sdk-ui-preact';
|
|
2
|
+
import { SisenseContextService } from './sisense-context.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class QueryService {
|
|
5
|
+
private sisenseContextService;
|
|
6
|
+
constructor(sisenseContextService: SisenseContextService);
|
|
7
|
+
executeQuery(params: ExecuteQueryParams): Promise<{
|
|
8
|
+
data: import("@sisense/sdk-data").QueryResultData;
|
|
9
|
+
}>;
|
|
10
|
+
executeQueryByWidgetId(params: ExecuteQueryByWidgetIdParams): Promise<{
|
|
11
|
+
data: import("@sisense/sdk-data").QueryResultData;
|
|
12
|
+
query: ExecuteQueryParams;
|
|
13
|
+
}>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QueryService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QueryService>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { ClientApplication } from '@sisense/sdk-ui-preact';
|
|
3
|
+
import type { SisenseContextProviderProps as SisenseContextConfig } from '@sisense/sdk-ui-preact';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export { type SisenseContextConfig };
|
|
6
|
+
/**
|
|
7
|
+
* Token used to inject {@link SisenseContextConfig} into your application
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* Example of importing {@link SdkUiModule} and injecting {@link SisenseContextConfig} into your application:
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* export const SISENSE_CONTEXT_CONFIG: SisenseContextConfig = {
|
|
14
|
+
* url="<instance url>" // replace with the URL of your Sisense instance
|
|
15
|
+
* token="<api token>" // replace with the API token of your user account
|
|
16
|
+
* defaultDataSource: DM.DataSource,
|
|
17
|
+
* };
|
|
18
|
+
*
|
|
19
|
+
* @NgModule({
|
|
20
|
+
* imports: [
|
|
21
|
+
* BrowserModule,
|
|
22
|
+
* SdkUiModule,
|
|
23
|
+
* ],
|
|
24
|
+
* declarations: [AppComponent],
|
|
25
|
+
* providers: [
|
|
26
|
+
* { provide: SISENSE_CONTEXT_CONFIG_TOKEN, useValue: SISENSE_CONTEXT_CONFIG },
|
|
27
|
+
* ],
|
|
28
|
+
* bootstrap: [AppComponent],
|
|
29
|
+
* })
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare const SISENSE_CONTEXT_CONFIG_TOKEN: InjectionToken<SisenseContextConfig>;
|
|
33
|
+
export declare class SisenseContextService {
|
|
34
|
+
private appPromise;
|
|
35
|
+
private config;
|
|
36
|
+
constructor(sisenseContextConfig: SisenseContextConfig);
|
|
37
|
+
getApp(): Promise<ClientApplication>;
|
|
38
|
+
getConfig(): SisenseContextConfig;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SisenseContextService, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SisenseContextService>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { type ThemeProviderProps as ThemeConfig, type ThemeSettings } from '@sisense/sdk-ui-preact';
|
|
3
|
+
import { SisenseContextService } from './sisense-context.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export { type ThemeConfig };
|
|
6
|
+
/**
|
|
7
|
+
* Token used to inject {@link ThemeConfig} into your application
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* Example of injecting both {@link SisenseContextConfig} and {@link ThemeConfig} into your application:
|
|
12
|
+
*
|
|
13
|
+
* ```ts
|
|
14
|
+
* export const SISENSE_CONTEXT_CONFIG: SisenseContextConfig = {
|
|
15
|
+
* url="<instance url>" // replace with the URL of your Sisense instance
|
|
16
|
+
* token="<api token>" // replace with the API token of your user account
|
|
17
|
+
* defaultDataSource: DM.DataSource,
|
|
18
|
+
* };
|
|
19
|
+
*
|
|
20
|
+
* @NgModule({
|
|
21
|
+
* imports: [
|
|
22
|
+
* BrowserModule,
|
|
23
|
+
* SdkUiModule,
|
|
24
|
+
* ],
|
|
25
|
+
* declarations: [AppComponent],
|
|
26
|
+
* providers: [
|
|
27
|
+
* { provide: SISENSE_CONTEXT_CONFIG_TOKEN, useValue: SISENSE_CONTEXT_CONFIG },
|
|
28
|
+
* {
|
|
29
|
+
* provide: THEME_CONFIG_TOKEN,
|
|
30
|
+
* useValue: {
|
|
31
|
+
* // initial theme settings
|
|
32
|
+
* } as ThemeConfig,
|
|
33
|
+
* },
|
|
34
|
+
* ],
|
|
35
|
+
* bootstrap: [AppComponent],
|
|
36
|
+
* })
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare const THEME_CONFIG_TOKEN: InjectionToken<ThemeConfig>;
|
|
40
|
+
export declare class ThemeService {
|
|
41
|
+
private sisenseContextService;
|
|
42
|
+
private themeSettings$;
|
|
43
|
+
constructor(sisenseContextService: SisenseContextService, themeConfig?: ThemeConfig);
|
|
44
|
+
private initThemeSettings;
|
|
45
|
+
private applyThemeSettings;
|
|
46
|
+
getThemeSettings(): import("rxjs").Observable<{
|
|
47
|
+
chart: {
|
|
48
|
+
textColor: string;
|
|
49
|
+
secondaryTextColor: string;
|
|
50
|
+
backgroundColor: string;
|
|
51
|
+
panelBackgroundColor: string;
|
|
52
|
+
};
|
|
53
|
+
palette: {
|
|
54
|
+
variantColors: import("@sisense/sdk-ui-preact").Color[];
|
|
55
|
+
};
|
|
56
|
+
typography: {
|
|
57
|
+
fontFamily: string;
|
|
58
|
+
primaryTextColor: string;
|
|
59
|
+
secondaryTextColor: string;
|
|
60
|
+
};
|
|
61
|
+
general: {
|
|
62
|
+
brandColor: string;
|
|
63
|
+
backgroundColor: string;
|
|
64
|
+
primaryButtonTextColor: string;
|
|
65
|
+
primaryButtonHoverColor: string;
|
|
66
|
+
};
|
|
67
|
+
}>;
|
|
68
|
+
updateThemeSettings(theme: string | ThemeSettings): Promise<void>;
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, [null, { optional: true; }]>;
|
|
70
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
|
|
71
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type ZipTuples<Keys extends readonly any[], Values extends readonly any[]> = {
|
|
2
|
+
[K in keyof Keys]: [Keys[K], K extends keyof Values ? Values[K] : never];
|
|
3
|
+
};
|
|
4
|
+
type ZipTuplesAsObject<Keys extends readonly PropertyKey[], Values extends readonly any[]> = {
|
|
5
|
+
[T in ZipTuples<Keys, Values>[number] as T[0]]: T[1];
|
|
6
|
+
};
|
|
7
|
+
/** @internal */
|
|
8
|
+
export type ArgumentsAsObject<Fn extends ((...params: readonly any[]) => any) | undefined, Keys extends readonly PropertyKey[]> = ZipTuplesAsObject<Keys, Parameters<NonNullable<Fn>>>;
|
|
9
|
+
/** @internal */
|
|
10
|
+
export type Arguments<T extends ((...args: any[]) => void) | undefined> = Parameters<NonNullable<T>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sisense/sdk-ui-angular",
|
|
3
|
+
"version": "0.13.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist",
|
|
6
|
+
"module": "fesm2015/sisense-sdk-ui-angular.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"author": "Sisense",
|
|
9
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist/**/*"
|
|
12
|
+
],
|
|
13
|
+
"peerDependencies": {
|
|
14
|
+
"@angular/common": "^15.0.0 || ^16.0.0",
|
|
15
|
+
"@angular/compiler": "^15.0.0 || ^16.0.0",
|
|
16
|
+
"@angular/core": "^15.0.0 || ^16.0.0"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@sisense/sdk-ui-preact": "workspace:^",
|
|
20
|
+
"rxjs": "^7.8.1",
|
|
21
|
+
"ts-deepmerge": "^6.2.0",
|
|
22
|
+
"tslib": "^2.3.0"
|
|
23
|
+
},
|
|
24
|
+
"volta": {
|
|
25
|
+
"extends": "../../package.json"
|
|
26
|
+
},
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"es2020": "fesm2020/sisense-sdk-ui-angular.mjs",
|
|
29
|
+
"esm2020": "esm2020/sisense-sdk-ui-angular.mjs",
|
|
30
|
+
"fesm2020": "fesm2020/sisense-sdk-ui-angular.mjs",
|
|
31
|
+
"fesm2015": "fesm2015/sisense-sdk-ui-angular.mjs",
|
|
32
|
+
"typings": "index.d.ts",
|
|
33
|
+
"exports": {
|
|
34
|
+
"./package.json": {
|
|
35
|
+
"default": "./package.json"
|
|
36
|
+
},
|
|
37
|
+
".": {
|
|
38
|
+
"types": "./index.d.ts",
|
|
39
|
+
"esm2020": "./esm2020/sisense-sdk-ui-angular.mjs",
|
|
40
|
+
"es2020": "./fesm2020/sisense-sdk-ui-angular.mjs",
|
|
41
|
+
"es2015": "./fesm2015/sisense-sdk-ui-angular.mjs",
|
|
42
|
+
"node": "./fesm2015/sisense-sdk-ui-angular.mjs",
|
|
43
|
+
"default": "./fesm2020/sisense-sdk-ui-angular.mjs"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sisense/sdk-ui-angular",
|
|
3
|
+
"version": "0.13.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist",
|
|
6
|
+
"module": "./dist",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"author": "Sisense",
|
|
9
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist/**/*"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"ng": "ng",
|
|
15
|
+
"build": "ng build",
|
|
16
|
+
"build:prod": "ng build",
|
|
17
|
+
"watch": "ng build --watch --configuration development",
|
|
18
|
+
"lint": "eslint .",
|
|
19
|
+
"lint:fix": "eslint . --fix",
|
|
20
|
+
"format": "prettier --write .",
|
|
21
|
+
"format:check": "prettier --check .",
|
|
22
|
+
"test": "echo 'Tests disabled for now.'",
|
|
23
|
+
"test:coverage": "echo 'Tests disabled for now.'"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"@angular/common": "^15.0.0 || ^16.0.0",
|
|
27
|
+
"@angular/compiler": "^15.0.0 || ^16.0.0",
|
|
28
|
+
"@angular/core": "^15.0.0 || ^16.0.0"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@sisense/sdk-ui-preact": "^0.13.0",
|
|
32
|
+
"rxjs": "^7.8.1",
|
|
33
|
+
"ts-deepmerge": "^6.2.0",
|
|
34
|
+
"tslib": "^2.3.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@angular-devkit/build-angular": "^15.2.4",
|
|
38
|
+
"@angular/cli": "~15.2.4",
|
|
39
|
+
"@angular/common": "^15.2.0",
|
|
40
|
+
"@angular/compiler": "^15.2.0",
|
|
41
|
+
"@angular/compiler-cli": "^15.2.0",
|
|
42
|
+
"@angular/core": "^15.2.0",
|
|
43
|
+
"@sisense/sdk-data": "^0.13.0",
|
|
44
|
+
"eslint": "^8.40.0",
|
|
45
|
+
"ng-packagr": "^15.2.2",
|
|
46
|
+
"prettier": "2.8.4",
|
|
47
|
+
"typescript": "~4.9.4"
|
|
48
|
+
},
|
|
49
|
+
"volta": {
|
|
50
|
+
"extends": "../../package.json"
|
|
51
|
+
},
|
|
52
|
+
"sideEffects": false
|
|
53
|
+
}
|