@sisense/sdk-ui-angular 2.10.0 → 2.12.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/dist/esm2020/lib/components/charts/calendar-heatmap-chart.component.mjs +133 -0
- package/dist/esm2020/lib/components/charts/index.mjs +2 -1
- package/dist/esm2020/lib/components/dashboard/dashboard-by-id.component.mjs +1 -1
- package/dist/esm2020/lib/components/dashboard/dashboard.component.mjs +1 -1
- package/dist/esm2020/lib/components/filters/filters-panel.component.mjs +1 -1
- package/dist/esm2020/lib/sdk-ui-core-exports.mjs +1 -1
- package/dist/esm2020/lib/sdk-ui.module.mjs +6 -2
- package/dist/esm2020/lib/types/chart-event-props.mjs +1 -1
- package/dist/esm2020/lib/types/data-point.mjs +1 -1
- package/dist/esm2020/public-api.mjs +1 -1
- package/dist/esm2020/version.mjs +2 -2
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs +136 -2
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs +136 -2
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/lib/components/charts/calendar-heatmap-chart.component.d.ts +125 -0
- package/dist/lib/components/charts/index.d.ts +1 -0
- package/dist/lib/sdk-ui-core-exports.d.ts +1 -1
- package/dist/lib/sdk-ui.module.d.ts +32 -31
- package/dist/lib/types/chart-event-props.d.ts +25 -1
- package/dist/lib/types/data-point.d.ts +24 -4
- package/dist/package.json +1 -1
- package/dist/public-api.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -287,7 +287,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
287
287
|
}] }];
|
|
288
288
|
} });
|
|
289
289
|
|
|
290
|
-
var packageVersion = '2.
|
|
290
|
+
var packageVersion = '2.12.0';
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
293
|
* Service for rendering components dynamically.
|
|
@@ -1835,6 +1835,136 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1835
1835
|
type: Output
|
|
1836
1836
|
}] } });
|
|
1837
1837
|
|
|
1838
|
+
/**
|
|
1839
|
+
* A component that visualizes values over days in a calendar-like view,
|
|
1840
|
+
* making it easy to identify daily patterns or anomalies
|
|
1841
|
+
*
|
|
1842
|
+
* @example
|
|
1843
|
+
* ```html
|
|
1844
|
+
* <csdk-calendar-heatmap-chart
|
|
1845
|
+
* [dataSet]="chart.dataSet"
|
|
1846
|
+
* [dataOptions]="chart.dataOptions"
|
|
1847
|
+
* [highlights]="chart.highlights"
|
|
1848
|
+
* [styleOptions]="chart.styleOptions"
|
|
1849
|
+
* />
|
|
1850
|
+
* ```
|
|
1851
|
+
* ```ts
|
|
1852
|
+
import { Component } from '@angular/core';
|
|
1853
|
+
import { measureFactory, filterFactory } from '@sisense/sdk-data';
|
|
1854
|
+
import * as DM from '../../assets/sample-ecommerce';
|
|
1855
|
+
import type { CalendarHeatmapChartProps } from '@sisense/sdk-ui-angular';
|
|
1856
|
+
|
|
1857
|
+
@Component({
|
|
1858
|
+
selector: 'app-analytics',
|
|
1859
|
+
templateUrl: './analytics.component.html',
|
|
1860
|
+
styleUrls: ['./analytics.component.scss'],
|
|
1861
|
+
})
|
|
1862
|
+
export class AnalyticsComponent {
|
|
1863
|
+
DM = DM;
|
|
1864
|
+
chart = {
|
|
1865
|
+
dataSet: DM.DataSource,
|
|
1866
|
+
dataOptions: {
|
|
1867
|
+
date: DM.Commerce.Date.Days,
|
|
1868
|
+
value: measureFactory.sum(DM.Commerce.Cost),
|
|
1869
|
+
},
|
|
1870
|
+
highlights: [
|
|
1871
|
+
filterFactory.dateRange(
|
|
1872
|
+
DM.Commerce.Date.Days,
|
|
1873
|
+
'2009-11-29',
|
|
1874
|
+
'2009-12-15'
|
|
1875
|
+
),
|
|
1876
|
+
],
|
|
1877
|
+
styleOptions: {
|
|
1878
|
+
viewType: 'quarter',
|
|
1879
|
+
},
|
|
1880
|
+
};
|
|
1881
|
+
}
|
|
1882
|
+
* ```
|
|
1883
|
+
* <img src="media://angular-calendar-heatmap-chart-example.png" width="800px" />
|
|
1884
|
+
* @group Charts
|
|
1885
|
+
*/
|
|
1886
|
+
class CalendarHeatmapChartComponent {
|
|
1887
|
+
constructor() {
|
|
1888
|
+
/**
|
|
1889
|
+
* {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.onDataPointClick}
|
|
1890
|
+
*
|
|
1891
|
+
* @category Callbacks
|
|
1892
|
+
*/
|
|
1893
|
+
this.dataPointClick = new EventEmitter();
|
|
1894
|
+
/**
|
|
1895
|
+
* {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.onDataPointContextMenu}
|
|
1896
|
+
*
|
|
1897
|
+
* @category Callbacks
|
|
1898
|
+
*/
|
|
1899
|
+
this.dataPointContextMenu = new EventEmitter();
|
|
1900
|
+
/**
|
|
1901
|
+
* {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.onDataPointsSelected}
|
|
1902
|
+
*
|
|
1903
|
+
* @category Callbacks
|
|
1904
|
+
*/
|
|
1905
|
+
this.dataPointsSelect = new EventEmitter();
|
|
1906
|
+
/** @internal */
|
|
1907
|
+
this.chartType = 'calendar-heatmap';
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
CalendarHeatmapChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarHeatmapChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1911
|
+
CalendarHeatmapChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CalendarHeatmapChartComponent, selector: "csdk-calendar-heatmap-chart", inputs: { dataSet: "dataSet", dataOptions: "dataOptions", filters: "filters", highlights: "highlights", styleOptions: "styleOptions", beforeRender: "beforeRender", dataReady: "dataReady" }, outputs: { dataPointClick: "dataPointClick", dataPointContextMenu: "dataPointContextMenu", dataPointsSelect: "dataPointsSelect" }, ngImport: i0, template: `
|
|
1912
|
+
<csdk-chart
|
|
1913
|
+
[chartType]="chartType"
|
|
1914
|
+
[dataSet]="dataSet"
|
|
1915
|
+
[dataOptions]="dataOptions"
|
|
1916
|
+
[filters]="filters"
|
|
1917
|
+
[highlights]="highlights"
|
|
1918
|
+
[styleOptions]="styleOptions"
|
|
1919
|
+
[beforeRender]="beforeRender"
|
|
1920
|
+
[dataReady]="dataReady"
|
|
1921
|
+
(dataPointClick)="dataPointClick.emit($any($event))"
|
|
1922
|
+
(dataPointContextMenu)="dataPointContextMenu.emit($any($event))"
|
|
1923
|
+
(dataPointsSelect)="dataPointsSelect.emit($any($event))"
|
|
1924
|
+
/>
|
|
1925
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ChartComponent, selector: "csdk-chart", inputs: ["chartType", "dataSet", "dataOptions", "filters", "highlights", "styleOptions", "beforeRender", "dataReady"], outputs: ["dataPointClick", "dataPointContextMenu", "dataPointsSelect"] }] });
|
|
1926
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarHeatmapChartComponent, decorators: [{
|
|
1927
|
+
type: Component,
|
|
1928
|
+
args: [{
|
|
1929
|
+
selector: 'csdk-calendar-heatmap-chart',
|
|
1930
|
+
template: `
|
|
1931
|
+
<csdk-chart
|
|
1932
|
+
[chartType]="chartType"
|
|
1933
|
+
[dataSet]="dataSet"
|
|
1934
|
+
[dataOptions]="dataOptions"
|
|
1935
|
+
[filters]="filters"
|
|
1936
|
+
[highlights]="highlights"
|
|
1937
|
+
[styleOptions]="styleOptions"
|
|
1938
|
+
[beforeRender]="beforeRender"
|
|
1939
|
+
[dataReady]="dataReady"
|
|
1940
|
+
(dataPointClick)="dataPointClick.emit($any($event))"
|
|
1941
|
+
(dataPointContextMenu)="dataPointContextMenu.emit($any($event))"
|
|
1942
|
+
(dataPointsSelect)="dataPointsSelect.emit($any($event))"
|
|
1943
|
+
/>
|
|
1944
|
+
`,
|
|
1945
|
+
}]
|
|
1946
|
+
}], propDecorators: { dataSet: [{
|
|
1947
|
+
type: Input
|
|
1948
|
+
}], dataOptions: [{
|
|
1949
|
+
type: Input
|
|
1950
|
+
}], filters: [{
|
|
1951
|
+
type: Input
|
|
1952
|
+
}], highlights: [{
|
|
1953
|
+
type: Input
|
|
1954
|
+
}], styleOptions: [{
|
|
1955
|
+
type: Input
|
|
1956
|
+
}], beforeRender: [{
|
|
1957
|
+
type: Input
|
|
1958
|
+
}], dataReady: [{
|
|
1959
|
+
type: Input
|
|
1960
|
+
}], dataPointClick: [{
|
|
1961
|
+
type: Output
|
|
1962
|
+
}], dataPointContextMenu: [{
|
|
1963
|
+
type: Output
|
|
1964
|
+
}], dataPointsSelect: [{
|
|
1965
|
+
type: Output
|
|
1966
|
+
}] } });
|
|
1967
|
+
|
|
1838
1968
|
/**
|
|
1839
1969
|
* A component representing categorical data with vertical rectangular bars
|
|
1840
1970
|
* whose heights are proportional to the values that they represent.
|
|
@@ -5358,6 +5488,7 @@ SdkUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
5358
5488
|
ColumnChartComponent,
|
|
5359
5489
|
BarChartComponent,
|
|
5360
5490
|
AreaChartComponent,
|
|
5491
|
+
CalendarHeatmapChartComponent,
|
|
5361
5492
|
AreaRangeChartComponent,
|
|
5362
5493
|
LineChartComponent,
|
|
5363
5494
|
IndicatorChartComponent,
|
|
@@ -5391,6 +5522,7 @@ SdkUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
5391
5522
|
ColumnChartComponent,
|
|
5392
5523
|
BarChartComponent,
|
|
5393
5524
|
AreaChartComponent,
|
|
5525
|
+
CalendarHeatmapChartComponent,
|
|
5394
5526
|
AreaRangeChartComponent,
|
|
5395
5527
|
LineChartComponent,
|
|
5396
5528
|
IndicatorChartComponent,
|
|
@@ -5430,6 +5562,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5430
5562
|
ColumnChartComponent,
|
|
5431
5563
|
BarChartComponent,
|
|
5432
5564
|
AreaChartComponent,
|
|
5565
|
+
CalendarHeatmapChartComponent,
|
|
5433
5566
|
AreaRangeChartComponent,
|
|
5434
5567
|
LineChartComponent,
|
|
5435
5568
|
IndicatorChartComponent,
|
|
@@ -5467,6 +5600,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5467
5600
|
ColumnChartComponent,
|
|
5468
5601
|
BarChartComponent,
|
|
5469
5602
|
AreaChartComponent,
|
|
5603
|
+
CalendarHeatmapChartComponent,
|
|
5470
5604
|
AreaRangeChartComponent,
|
|
5471
5605
|
LineChartComponent,
|
|
5472
5606
|
IndicatorChartComponent,
|
|
@@ -5994,5 +6128,5 @@ var widgetModelTranslator = /*#__PURE__*/Object.freeze({
|
|
|
5994
6128
|
* Generated bundle index. Do not edit.
|
|
5995
6129
|
*/
|
|
5996
6130
|
|
|
5997
|
-
export { AreaChartComponent, AreaRangeChartComponent, AreamapChartComponent, BarChartComponent, BoxplotChartComponent, ChartComponent, ChartWidgetComponent, ColumnChartComponent, ContextMenuComponent, CriteriaFilterTileComponent, CustomWidgetsService, DashboardByIdComponent, DashboardComponent, DashboardService, DateRangeFilterTileComponent, DrilldownBreadcrumbsComponent, DrilldownWidgetComponent, FilterService, FilterTileComponent, FiltersPanelComponent, FunnelChartComponent, HierarchyService, IndicatorChartComponent, LineChartComponent, MemberFilterTileComponent, PieChartComponent, PivotTableComponent, PivotTableWidgetComponent, PolarChartComponent, QueryService, RelativeDateFilterTileComponent, SISENSE_CONTEXT_CONFIG_TOKEN, ScatterChartComponent, ScattermapChartComponent, SdkUiModule, SisenseContextService, SunburstChartComponent, THEME_CONFIG_TOKEN, TableComponent, TableWidgetComponent, ThemeService, TrackableService, TreemapChartComponent, WidgetByIdComponent, WidgetComponent, WidgetService, createCustomWidgetsContextConnector, createSisenseContextConnector, createThemeContextConnector, dashboardHelpers, dashboardModelTranslator, widgetModelTranslator };
|
|
6131
|
+
export { AreaChartComponent, AreaRangeChartComponent, AreamapChartComponent, BarChartComponent, BoxplotChartComponent, CalendarHeatmapChartComponent, ChartComponent, ChartWidgetComponent, ColumnChartComponent, ContextMenuComponent, CriteriaFilterTileComponent, CustomWidgetsService, DashboardByIdComponent, DashboardComponent, DashboardService, DateRangeFilterTileComponent, DrilldownBreadcrumbsComponent, DrilldownWidgetComponent, FilterService, FilterTileComponent, FiltersPanelComponent, FunnelChartComponent, HierarchyService, IndicatorChartComponent, LineChartComponent, MemberFilterTileComponent, PieChartComponent, PivotTableComponent, PivotTableWidgetComponent, PolarChartComponent, QueryService, RelativeDateFilterTileComponent, SISENSE_CONTEXT_CONFIG_TOKEN, ScatterChartComponent, ScattermapChartComponent, SdkUiModule, SisenseContextService, SunburstChartComponent, THEME_CONFIG_TOKEN, TableComponent, TableWidgetComponent, ThemeService, TrackableService, TreemapChartComponent, WidgetByIdComponent, WidgetComponent, WidgetService, createCustomWidgetsContextConnector, createSisenseContextConnector, createThemeContextConnector, dashboardHelpers, dashboardModelTranslator, widgetModelTranslator };
|
|
5998
6132
|
//# sourceMappingURL=sisense-sdk-ui-angular.mjs.map
|