@progress/kendo-angular-charts 16.0.0-develop.20 → 16.0.0-develop.22

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.
@@ -41,6 +41,8 @@ const template = () => `
41
41
  <div class="k-var--base"></div>
42
42
  <div class="k-var--background"></div>
43
43
 
44
+ <div class="k-var--kendo-color-subtle"></div>
45
+
44
46
  <div class="k-var--normal-background"></div>
45
47
  <div class="k-var--normal-text-color"></div>
46
48
  <div class="k-var--hover-background"></div>
@@ -171,7 +173,10 @@ export class ThemeService extends ConfigurationService {
171
173
  // Sankey diagram
172
174
  this.mapColor('labels.color', 'normal-text-color');
173
175
  this.mapColor('labels.stroke.color', 'background');
174
- this.mapColor('links.color', 'chart-major-lines');
176
+ // 'k-var--kendo-color-subtle' class does not contain the --kendo-color-subtle variable style
177
+ const element = this.element.querySelector('.k-var--kendo-color-subtle');
178
+ element.style.color = 'var(--kendo-color-subtle)';
179
+ this.mapColor('links.color', 'kendo-color-subtle', 'color');
175
180
  const opacity = parseFloat(this.queryStyle('chart-area-opacity').opacity);
176
181
  if (!isNaN(opacity)) {
177
182
  this.setStyle('seriesDefaults.area.opacity', opacity);
@@ -220,8 +225,8 @@ export class ThemeService extends ConfigurationService {
220
225
  );
221
226
  this.setStyle('seriesColors', seriesColors);
222
227
  }
223
- mapColor(key, varName) {
224
- this.setStyle(key, this.queryColor(varName));
228
+ mapColor(key, varName, styleKey = 'backgroundColor') {
229
+ this.setStyle(key, this.queryStyle(varName)[styleKey]);
225
230
  }
226
231
  queryColor(varName) {
227
232
  return this.queryStyle(varName).backgroundColor;
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-charts',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1715338822,
13
- version: '16.0.0-develop.20',
12
+ publishDate: 1715616192,
13
+ version: '16.0.0-develop.22',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -6,7 +6,7 @@ import { Directive, EventEmitter, Input, Output } from "@angular/core";
6
6
  import { isChanged } from "@progress/kendo-angular-common";
7
7
  import { getter } from "@progress/kendo-common";
8
8
  import { SankeyComponent } from "../../sankey.component";
9
- import { createSankeyData } from "./create-sankey-data";
9
+ import { createSankeyData } from "@progress/kendo-charts";
10
10
  import { SankeyFlatBindingDataBoundEvent } from "./flat-binding.event";
11
11
  import * as i0 from "@angular/core";
12
12
  import * as i1 from "../../sankey.component";
@@ -39,8 +39,8 @@ export class SankeyFlatBindingDirective {
39
39
  if (!this.valueField) {
40
40
  throw new Error('kendoSankeyFlatBinding: valueField is required');
41
41
  }
42
- const dimensions = this.dimensionFields.map(field => getter(field));
43
- const measure = getter(this.valueField);
42
+ const dimensions = this.dimensionFields.map(field => ({ value: getter(field) }));
43
+ const measure = { value: getter(this.valueField) };
44
44
  const data = createSankeyData(this.data, dimensions, measure);
45
45
  this.dataBound.emit(new SankeyFlatBindingDataBoundEvent(data));
46
46
  this.sankey.notifyChanges({ data });
@@ -8,7 +8,7 @@ import * as i9 from '@progress/kendo-angular-common';
8
8
  import { isDocumentAvailable, shouldShowValidationUI, ResizeSensorModule, WatermarkModule, PreventableEvent as PreventableEvent$1, isChanged } from '@progress/kendo-angular-common';
9
9
  import * as i4 from '@progress/kendo-angular-l10n';
10
10
  import { LocalizationService, L10N_PREFIX, ComponentMessages } from '@progress/kendo-angular-l10n';
11
- import { DateCategoryAxis, DateValueAxis, DomEventsBuilder as DomEventsBuilder$1, InstanceObserver, chartBaseTheme, Chart, StockChart, Sparkline, Sankey } from '@progress/kendo-charts';
11
+ import { DateCategoryAxis, DateValueAxis, DomEventsBuilder as DomEventsBuilder$1, InstanceObserver, chartBaseTheme, Chart, StockChart, Sparkline, Sankey, createSankeyData } from '@progress/kendo-charts';
12
12
  import { exportImage, exportSVG } from '@progress/kendo-drawing';
13
13
  import { validatePackage } from '@progress/kendo-licensing';
14
14
  import { Subject, BehaviorSubject, combineLatest, Subscription } from 'rxjs';
@@ -1876,8 +1876,8 @@ const packageMetadata = {
1876
1876
  name: '@progress/kendo-angular-charts',
1877
1877
  productName: 'Kendo UI for Angular',
1878
1878
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
1879
- publishDate: 1715338822,
1880
- version: '16.0.0-develop.20',
1879
+ publishDate: 1715616192,
1880
+ version: '16.0.0-develop.22',
1881
1881
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
1882
1882
  };
1883
1883
 
@@ -2185,6 +2185,8 @@ const template = () => `
2185
2185
  <div class="k-var--base"></div>
2186
2186
  <div class="k-var--background"></div>
2187
2187
 
2188
+ <div class="k-var--kendo-color-subtle"></div>
2189
+
2188
2190
  <div class="k-var--normal-background"></div>
2189
2191
  <div class="k-var--normal-text-color"></div>
2190
2192
  <div class="k-var--hover-background"></div>
@@ -2315,7 +2317,10 @@ class ThemeService extends ConfigurationService {
2315
2317
  // Sankey diagram
2316
2318
  this.mapColor('labels.color', 'normal-text-color');
2317
2319
  this.mapColor('labels.stroke.color', 'background');
2318
- this.mapColor('links.color', 'chart-major-lines');
2320
+ // 'k-var--kendo-color-subtle' class does not contain the --kendo-color-subtle variable style
2321
+ const element = this.element.querySelector('.k-var--kendo-color-subtle');
2322
+ element.style.color = 'var(--kendo-color-subtle)';
2323
+ this.mapColor('links.color', 'kendo-color-subtle', 'color');
2319
2324
  const opacity = parseFloat(this.queryStyle('chart-area-opacity').opacity);
2320
2325
  if (!isNaN(opacity)) {
2321
2326
  this.setStyle('seriesDefaults.area.opacity', opacity);
@@ -2364,8 +2369,8 @@ class ThemeService extends ConfigurationService {
2364
2369
  );
2365
2370
  this.setStyle('seriesColors', seriesColors);
2366
2371
  }
2367
- mapColor(key, varName) {
2368
- this.setStyle(key, this.queryColor(varName));
2372
+ mapColor(key, varName, styleKey = 'backgroundColor') {
2373
+ this.setStyle(key, this.queryStyle(varName)[styleKey]);
2369
2374
  }
2370
2375
  queryColor(varName) {
2371
2376
  return this.queryStyle(varName).backgroundColor;
@@ -8713,47 +8718,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
8713
8718
  args: ['instance', { static: true }]
8714
8719
  }] } });
8715
8720
 
8716
- /**
8717
- * @hidden
8718
- */
8719
- function createSankeyData(data, dimensions, measure) {
8720
- const nodes = new Set();
8721
- const links = new Map();
8722
- const linksMap = new Map();
8723
- data.forEach((row) => {
8724
- dimensions.forEach((dimension) => {
8725
- nodes.add(dimension(row));
8726
- });
8727
- for (let i = 0; i < dimensions.length - 1; i++) {
8728
- const source = dimensions[i](row);
8729
- const target = dimensions[i + 1](row);
8730
- const key = `${source}_${target}`;
8731
- const value = measure(row);
8732
- if (links.has(key)) {
8733
- links.set(key, links.get(key) + value);
8734
- }
8735
- else {
8736
- links.set(key, value);
8737
- linksMap.set(key, { source, target });
8738
- }
8739
- }
8740
- });
8741
- const nodesId = new Map();
8742
- const nodesArray = Array.from(nodes).map((node, index) => {
8743
- nodesId.set(node, index);
8744
- return { id: index, label: { text: String(node) } };
8745
- });
8746
- const linksArray = Array.from(links).map(([key, value]) => {
8747
- const { source, target } = linksMap.get(key);
8748
- return {
8749
- sourceId: nodesId.get(source),
8750
- targetId: nodesId.get(target),
8751
- value
8752
- };
8753
- });
8754
- return { nodes: nodesArray, links: linksArray };
8755
- }
8756
-
8757
8721
  /**
8758
8722
  * Arguments for the `dataBound` event of the [`[kendoSankeyFlatBinding]`]({% slug api_charts_sankeyflatbindingdirective %}) directive.
8759
8723
  */
@@ -8796,8 +8760,8 @@ class SankeyFlatBindingDirective {
8796
8760
  if (!this.valueField) {
8797
8761
  throw new Error('kendoSankeyFlatBinding: valueField is required');
8798
8762
  }
8799
- const dimensions = this.dimensionFields.map(field => getter(field));
8800
- const measure = getter(this.valueField);
8763
+ const dimensions = this.dimensionFields.map(field => ({ value: getter(field) }));
8764
+ const measure = { value: getter(this.valueField) };
8801
8765
  const data = createSankeyData(this.data, dimensions, measure);
8802
8766
  this.dataBound.emit(new SankeyFlatBindingDataBoundEvent(data));
8803
8767
  this.sankey.notifyChanges({ data });
@@ -9,7 +9,7 @@ import { isDocumentAvailable, shouldShowValidationUI, ResizeSensorModule, Waterm
9
9
  import * as i3 from '@progress/kendo-angular-intl';
10
10
  import * as i4 from '@progress/kendo-angular-l10n';
11
11
  import { LocalizationService, L10N_PREFIX, ComponentMessages } from '@progress/kendo-angular-l10n';
12
- import { DateCategoryAxis, DateValueAxis, DomEventsBuilder as DomEventsBuilder$1, InstanceObserver, chartBaseTheme, Chart, StockChart, Sparkline, Sankey } from '@progress/kendo-charts';
12
+ import { DateCategoryAxis, DateValueAxis, DomEventsBuilder as DomEventsBuilder$1, InstanceObserver, chartBaseTheme, Chart, StockChart, Sparkline, Sankey, createSankeyData } from '@progress/kendo-charts';
13
13
  import { exportImage, exportSVG } from '@progress/kendo-drawing';
14
14
  import { validatePackage } from '@progress/kendo-licensing';
15
15
  import { Subject, BehaviorSubject, combineLatest, Subscription } from 'rxjs';
@@ -1606,6 +1606,8 @@ const template = () => `
1606
1606
  <div class="k-var--base"></div>
1607
1607
  <div class="k-var--background"></div>
1608
1608
 
1609
+ <div class="k-var--kendo-color-subtle"></div>
1610
+
1609
1611
  <div class="k-var--normal-background"></div>
1610
1612
  <div class="k-var--normal-text-color"></div>
1611
1613
  <div class="k-var--hover-background"></div>
@@ -1736,7 +1738,10 @@ class ThemeService extends ConfigurationService {
1736
1738
  // Sankey diagram
1737
1739
  this.mapColor('labels.color', 'normal-text-color');
1738
1740
  this.mapColor('labels.stroke.color', 'background');
1739
- this.mapColor('links.color', 'chart-major-lines');
1741
+ // 'k-var--kendo-color-subtle' class does not contain the --kendo-color-subtle variable style
1742
+ const element = this.element.querySelector('.k-var--kendo-color-subtle');
1743
+ element.style.color = 'var(--kendo-color-subtle)';
1744
+ this.mapColor('links.color', 'kendo-color-subtle', 'color');
1740
1745
  const opacity = parseFloat(this.queryStyle('chart-area-opacity').opacity);
1741
1746
  if (!isNaN(opacity)) {
1742
1747
  this.setStyle('seriesDefaults.area.opacity', opacity);
@@ -1785,8 +1790,8 @@ class ThemeService extends ConfigurationService {
1785
1790
  );
1786
1791
  this.setStyle('seriesColors', seriesColors);
1787
1792
  }
1788
- mapColor(key, varName) {
1789
- this.setStyle(key, this.queryColor(varName));
1793
+ mapColor(key, varName, styleKey = 'backgroundColor') {
1794
+ this.setStyle(key, this.queryStyle(varName)[styleKey]);
1790
1795
  }
1791
1796
  queryColor(varName) {
1792
1797
  return this.queryStyle(varName).backgroundColor;
@@ -2257,8 +2262,8 @@ const packageMetadata = {
2257
2262
  name: '@progress/kendo-angular-charts',
2258
2263
  productName: 'Kendo UI for Angular',
2259
2264
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
2260
- publishDate: 1715338822,
2261
- version: '16.0.0-develop.20',
2265
+ publishDate: 1715616192,
2266
+ version: '16.0.0-develop.22',
2262
2267
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
2263
2268
  };
2264
2269
 
@@ -8696,47 +8701,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
8696
8701
  args: ['instance', { static: true }]
8697
8702
  }] } });
8698
8703
 
8699
- /**
8700
- * @hidden
8701
- */
8702
- function createSankeyData(data, dimensions, measure) {
8703
- const nodes = new Set();
8704
- const links = new Map();
8705
- const linksMap = new Map();
8706
- data.forEach((row) => {
8707
- dimensions.forEach((dimension) => {
8708
- nodes.add(dimension(row));
8709
- });
8710
- for (let i = 0; i < dimensions.length - 1; i++) {
8711
- const source = dimensions[i](row);
8712
- const target = dimensions[i + 1](row);
8713
- const key = `${source}_${target}`;
8714
- const value = measure(row);
8715
- if (links.has(key)) {
8716
- links.set(key, links.get(key) + value);
8717
- }
8718
- else {
8719
- links.set(key, value);
8720
- linksMap.set(key, { source, target });
8721
- }
8722
- }
8723
- });
8724
- const nodesId = new Map();
8725
- const nodesArray = Array.from(nodes).map((node, index) => {
8726
- nodesId.set(node, index);
8727
- return { id: index, label: { text: String(node) } };
8728
- });
8729
- const linksArray = Array.from(links).map(([key, value]) => {
8730
- const { source, target } = linksMap.get(key);
8731
- return {
8732
- sourceId: nodesId.get(source),
8733
- targetId: nodesId.get(target),
8734
- value
8735
- };
8736
- });
8737
- return { nodes: nodesArray, links: linksArray };
8738
- }
8739
-
8740
8704
  /**
8741
8705
  * Arguments for the `dataBound` event of the [`[kendoSankeyFlatBinding]`]({% slug api_charts_sankeyflatbindingdirective %}) directive.
8742
8706
  */
@@ -8778,8 +8742,8 @@ class SankeyFlatBindingDirective {
8778
8742
  if (!this.valueField) {
8779
8743
  throw new Error('kendoSankeyFlatBinding: valueField is required');
8780
8744
  }
8781
- const dimensions = this.dimensionFields.map(field => getter(field));
8782
- const measure = getter(this.valueField);
8745
+ const dimensions = this.dimensionFields.map(field => ({ value: getter(field) }));
8746
+ const measure = { value: getter(this.valueField) };
8783
8747
  const data = createSankeyData(this.data, dimensions, measure);
8784
8748
  this.dataBound.emit(new SankeyFlatBindingDataBoundEvent(data));
8785
8749
  this.sankey.notifyChanges({ data });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-charts",
3
- "version": "16.0.0-develop.20",
3
+ "version": "16.0.0-develop.22",
4
4
  "description": "Kendo UI Charts for Angular - A comprehensive package for creating beautiful and interactive data visualization. Every chart type, stock charts, and sparklines are included.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -47,18 +47,18 @@
47
47
  "@angular/platform-browser": "15 - 17",
48
48
  "@progress/kendo-drawing": "^1.19.0",
49
49
  "@progress/kendo-licensing": "^1.0.2",
50
- "@progress/kendo-angular-common": "16.0.0-develop.20",
51
- "@progress/kendo-angular-intl": "16.0.0-develop.20",
52
- "@progress/kendo-angular-icons": "16.0.0-develop.20",
53
- "@progress/kendo-angular-l10n": "16.0.0-develop.20",
54
- "@progress/kendo-angular-popup": "16.0.0-develop.20",
55
- "@progress/kendo-angular-navigation": "16.0.0-develop.20",
50
+ "@progress/kendo-angular-common": "16.0.0-develop.22",
51
+ "@progress/kendo-angular-intl": "16.0.0-develop.22",
52
+ "@progress/kendo-angular-icons": "16.0.0-develop.22",
53
+ "@progress/kendo-angular-l10n": "16.0.0-develop.22",
54
+ "@progress/kendo-angular-popup": "16.0.0-develop.22",
55
+ "@progress/kendo-angular-navigation": "16.0.0-develop.22",
56
56
  "hammerjs": "^2.0.0",
57
57
  "rxjs": "^6.5.3 || ^7.0.0"
58
58
  },
59
59
  "dependencies": {
60
60
  "tslib": "^2.3.1",
61
- "@progress/kendo-angular-schematics": "16.0.0-develop.20",
61
+ "@progress/kendo-angular-schematics": "16.0.0-develop.22",
62
62
  "@progress/kendo-charts": "2.3.0",
63
63
  "@progress/kendo-svg-icons": "^2.0.0"
64
64
  },
@@ -1,44 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export function createSankeyData(data, dimensions, measure) {
9
- const nodes = new Set();
10
- const links = new Map();
11
- const linksMap = new Map();
12
- data.forEach((row) => {
13
- dimensions.forEach((dimension) => {
14
- nodes.add(dimension(row));
15
- });
16
- for (let i = 0; i < dimensions.length - 1; i++) {
17
- const source = dimensions[i](row);
18
- const target = dimensions[i + 1](row);
19
- const key = `${source}_${target}`;
20
- const value = measure(row);
21
- if (links.has(key)) {
22
- links.set(key, links.get(key) + value);
23
- }
24
- else {
25
- links.set(key, value);
26
- linksMap.set(key, { source, target });
27
- }
28
- }
29
- });
30
- const nodesId = new Map();
31
- const nodesArray = Array.from(nodes).map((node, index) => {
32
- nodesId.set(node, index);
33
- return { id: index, label: { text: String(node) } };
34
- });
35
- const linksArray = Array.from(links).map(([key, value]) => {
36
- const { source, target } = linksMap.get(key);
37
- return {
38
- sourceId: nodesId.get(source),
39
- targetId: nodesId.get(target),
40
- value
41
- };
42
- });
43
- return { nodes: nodesArray, links: linksArray };
44
- }
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { SankeyData } from "../api-types";
6
- /**
7
- * @hidden
8
- */
9
- export declare function createSankeyData<T>(data: T[], dimensions: ((item: T) => any)[], measure: (item: T) => number): SankeyData;