@progress/kendo-charts 2.3.0-dev.202404030834 → 2.3.0-dev.202404030928

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.
@@ -13,7 +13,7 @@ var isDefaultPrevented = function() {
13
13
  return this._defaultPrevented === true;
14
14
  };
15
15
 
16
- export var Observable = (function (Class) {
16
+ var Observable = (function (Class) {
17
17
  function Observable() {
18
18
  Class.call(this);
19
19
  this._events = {};
@@ -173,3 +173,5 @@ export var Observable = (function (Class) {
173
173
 
174
174
  return Observable;
175
175
  }(Class));
176
+
177
+ export default Observable;
package/dist/es/common.js CHANGED
@@ -41,3 +41,4 @@ export { default as hasOwnProperty } from './common/has-own-property';
41
41
  export { default as Matrix } from './common/matrix';
42
42
 
43
43
  export * from './drawing-utils';
44
+ export { default as Observable } from './common/observable';
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  addClass,
3
3
  defined,
4
+ Observable,
4
5
  valueOrDefault,
5
6
  deepExtend,
6
7
  setDefaultOptions
@@ -11,8 +12,6 @@ import {
11
12
  removeChildren
12
13
  } from './utils';
13
14
 
14
- import { Observable } from '../common/observable';
15
-
16
15
  export var Attribution = (function (Observable) {
17
16
  function Attribution(element, options) {
18
17
  Observable.call(this);
@@ -8,6 +8,7 @@ import {
8
8
  setDefaultOptions,
9
9
  valueOrDefault,
10
10
  defined,
11
+ Observable,
11
12
  mousewheelDelta,
12
13
  limitValue,
13
14
  deepExtend,
@@ -74,10 +75,6 @@ import {
74
75
  Scroller
75
76
  } from './scroller/scroller';
76
77
 
77
- import {
78
- Observable
79
- } from '../common/observable';
80
-
81
78
  import MapService from './../services/map-service';
82
79
 
83
80
  import { CENTER_CHANGE, INIT, ZOOM_CHANGE } from './constants';
@@ -1,15 +1,12 @@
1
1
  import {
2
2
  deepExtend,
3
3
  addClass,
4
+ Observable,
4
5
  keys,
5
6
  setDefaultOptions,
6
7
  renderIcon
7
8
  } from '../common';
8
9
 
9
- import {
10
- Observable
11
- } from '../common/observable';
12
-
13
10
  import {
14
11
  proxy,
15
12
  on,
@@ -1,12 +1,9 @@
1
1
  import {
2
2
  Class,
3
+ Observable,
3
4
  elementOffset
4
5
  } from '../../common';
5
6
 
6
- import {
7
- Observable
8
- } from '../../common/observable';
9
-
10
7
  import {
11
8
  getEventMap,
12
9
  proxy,
@@ -4,6 +4,7 @@ import {
4
4
  Class,
5
5
  deepExtend,
6
6
  addClass,
7
+ Observable,
7
8
  isFunction,
8
9
  setDefaultOptions
9
10
  } from '../../common';
@@ -37,10 +38,6 @@ import {
37
38
  UserEvents
38
39
  } from './user-events';
39
40
 
40
- import {
41
- Observable
42
- } from '../../common/observable';
43
-
44
41
  var
45
42
  extend = Object.assign,
46
43
  abs = Math.abs,
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  Class,
3
+ Observable,
3
4
  grep
4
5
  } from '../../common';
5
6
 
@@ -14,10 +15,6 @@ import {
14
15
  getSupportedFeatures
15
16
  } from '../utils';
16
17
 
17
- import {
18
- Observable
19
- } from '../../common/observable';
20
-
21
18
  var extend = Object.assign;
22
19
 
23
20
  var preventDefault = function (e) {
@@ -1,16 +1,13 @@
1
1
  import {
2
2
  deepExtend,
3
3
  addClass,
4
+ Observable,
4
5
  keys,
5
6
  hasClasses,
6
7
  setDefaultOptions,
7
8
  renderIcon
8
9
  } from '../common';
9
10
 
10
- import {
11
- Observable
12
- } from '../common/observable';
13
-
14
11
  import {
15
12
  on,
16
13
  off,
@@ -1,14 +1,12 @@
1
1
  import { geometry, drawing } from '@progress/kendo-drawing';
2
- import { deepExtend, addClass, setDefaultOptions } from '../common';
2
+ import { deepExtend, addClass, Observable, setDefaultOptions } from '../common';
3
3
  import { calculateSankey, crossesValue } from './calculation';
4
4
  import { Node, resolveNodeOptions } from './node';
5
5
  import { Link, resolveLinkOptions } from './link';
6
6
  import { Label, resolveLabelOptions } from './label';
7
7
  import { Title } from './title';
8
8
  import { BOTTOM, LEFT, RIGHT, TOP } from '../common/constants';
9
- import Box from '../core/box';
10
- import rectToBox from '../core/utils/rect-to-box';
11
- import { Observable } from '../common/observable';
9
+ import { Box, rectToBox } from '../core';
12
10
  import { Legend } from './legend';
13
11
  import { defined } from '../drawing-utils';
14
12
 
@@ -13,7 +13,7 @@ let isDefaultPrevented = function() {
13
13
  return this._defaultPrevented === true;
14
14
  };
15
15
 
16
- export class Observable extends Class {
16
+ export default class Observable extends Class {
17
17
  constructor() {
18
18
  super();
19
19
  this._events = {};
@@ -41,3 +41,4 @@ export { default as hasOwnProperty } from './common/has-own-property';
41
41
  export { default as Matrix } from './common/matrix';
42
42
 
43
43
  export * from './drawing-utils';
44
+ export { default as Observable } from './common/observable';
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  addClass,
3
3
  defined,
4
+ Observable,
4
5
  valueOrDefault,
5
6
  deepExtend,
6
7
  setDefaultOptions
@@ -11,8 +12,6 @@ import {
11
12
  removeChildren
12
13
  } from './utils';
13
14
 
14
- import { Observable } from '../common/observable';
15
-
16
15
  export class Attribution extends Observable {
17
16
  constructor(element, options) {
18
17
  super();
@@ -8,6 +8,7 @@ import {
8
8
  setDefaultOptions,
9
9
  valueOrDefault,
10
10
  defined,
11
+ Observable,
11
12
  mousewheelDelta,
12
13
  limitValue,
13
14
  deepExtend,
@@ -74,10 +75,6 @@ import {
74
75
  Scroller
75
76
  } from './scroller/scroller';
76
77
 
77
- import {
78
- Observable
79
- } from '../common/observable';
80
-
81
78
  import MapService from './../services/map-service';
82
79
 
83
80
  import { CENTER_CHANGE, INIT, ZOOM_CHANGE } from './constants';
@@ -1,15 +1,12 @@
1
1
  import {
2
2
  deepExtend,
3
3
  addClass,
4
+ Observable,
4
5
  keys,
5
6
  setDefaultOptions,
6
7
  renderIcon
7
8
  } from '../common';
8
9
 
9
- import {
10
- Observable
11
- } from '../common/observable';
12
-
13
10
  import {
14
11
  proxy,
15
12
  on,
@@ -1,12 +1,9 @@
1
1
  import {
2
2
  Class,
3
+ Observable,
3
4
  elementOffset
4
5
  } from '../../common';
5
6
 
6
- import {
7
- Observable
8
- } from '../../common/observable';
9
-
10
7
  import {
11
8
  getEventMap,
12
9
  proxy,
@@ -4,6 +4,7 @@ import {
4
4
  Class,
5
5
  deepExtend,
6
6
  addClass,
7
+ Observable,
7
8
  isFunction,
8
9
  setDefaultOptions
9
10
  } from '../../common';
@@ -37,10 +38,6 @@ import {
37
38
  UserEvents
38
39
  } from './user-events';
39
40
 
40
- import {
41
- Observable
42
- } from '../../common/observable';
43
-
44
41
  let
45
42
  extend = Object.assign,
46
43
  abs = Math.abs,
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  Class,
3
+ Observable,
3
4
  grep
4
5
  } from '../../common';
5
6
 
@@ -14,10 +15,6 @@ import {
14
15
  getSupportedFeatures
15
16
  } from '../utils';
16
17
 
17
- import {
18
- Observable
19
- } from '../../common/observable';
20
-
21
18
  const extend = Object.assign;
22
19
 
23
20
  const preventDefault = (e) => {
@@ -1,16 +1,13 @@
1
1
  import {
2
2
  deepExtend,
3
3
  addClass,
4
+ Observable,
4
5
  keys,
5
6
  hasClasses,
6
7
  setDefaultOptions,
7
8
  renderIcon
8
9
  } from '../common';
9
10
 
10
- import {
11
- Observable
12
- } from '../common/observable';
13
-
14
11
  import {
15
12
  on,
16
13
  off,
@@ -1,14 +1,12 @@
1
1
  import { geometry, drawing } from '@progress/kendo-drawing';
2
- import { deepExtend, addClass, setDefaultOptions } from '../common';
2
+ import { deepExtend, addClass, Observable, setDefaultOptions } from '../common';
3
3
  import { calculateSankey, crossesValue } from './calculation';
4
4
  import { Node, resolveNodeOptions } from './node';
5
5
  import { Link, resolveLinkOptions } from './link';
6
6
  import { Label, resolveLabelOptions } from './label';
7
7
  import { Title } from './title';
8
8
  import { BOTTOM, LEFT, RIGHT, TOP } from '../common/constants';
9
- import Box from '../core/box';
10
- import rectToBox from '../core/utils/rect-to-box';
11
- import { Observable } from '../common/observable';
9
+ import { Box, rectToBox } from '../core';
12
10
  import { Legend } from './legend';
13
11
  import { defined } from '../drawing-utils';
14
12