dhx-chart 8.3.14 → 8.4.1

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.
@@ -78,6 +78,7 @@ export interface ISeriaConfig {
78
78
  showText?: boolean;
79
79
  showTextRotate?: number | string;
80
80
  showTextTemplate?: (points: any) => string;
81
+ valueTemplate?: (value: number) => string;
81
82
  tooltip?: boolean;
82
83
  tooltipType?: TooltipType;
83
84
  tooltipTemplate?: (points: any[]) => string;
@@ -24,6 +24,11 @@ export interface IComboboxConfig {
24
24
  value?: Id | Id[];
25
25
  newOptions?: boolean;
26
26
  htmlEnable?: boolean;
27
+ eventHandlers?: {
28
+ [eventName: string]: {
29
+ [className: string]: (event: Event, id: Id) => void | boolean;
30
+ };
31
+ };
27
32
  /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
28
33
  cellHeight?: number;
29
34
  /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
@@ -1,4 +1,5 @@
1
- import { ICellCss, ICol, IFooter, IGridConfig, IHeader, IRow, ISpan } from "../types";
1
+ import { ICellCss, ICol, IFooter, IGridConfig, IGridTooltipConfig, IHeader, IRow, ISpan } from "../types";
2
+ import { ITooltipConfig } from "../../../ts-message";
2
3
  export declare function transpose(arr: any[][], transform?: any): any[][];
3
4
  export declare function getStyleByClass(cssClass: string, targetClass: string, def: ICellCss, container?: HTMLElement): ICellCss;
4
5
  export declare function removeHTMLTags(str: string): string;
@@ -6,13 +7,10 @@ export declare function isCssSupport(property: string, value: string): boolean;
6
7
  export declare function isRowEmpty(row: IRow): boolean;
7
8
  export declare function isSortable(config: IGridConfig, col: ICol): boolean;
8
9
  export declare function isAutoWidth(config: IGridConfig, col?: ICol): boolean;
9
- export declare function showTooltip({ node, value, htmlEnable }: {
10
- node: any;
11
- value: any;
12
- htmlEnable?: boolean;
13
- }): void;
10
+ export declare function showTooltip(value: any, config: ITooltipConfig): void;
14
11
  export declare function isContentTooltip(config: IGridConfig, col: ICol, cell: any, type: "footer" | "header"): boolean;
15
- export declare function isTooltip(config: IGridConfig, element: ICol | ISpan): boolean;
12
+ export declare function getTooltipConfig(config: IGridConfig, col?: ICol, cell?: IHeader | IFooter | ISpan, type?: "footer" | "header"): IGridTooltipConfig;
13
+ export declare function isTooltip(config: IGridConfig, element: ICol | ISpan): boolean | IGridTooltipConfig;
16
14
  export declare function isHtmlEnable(config: IGridConfig, col: ICol, content?: IHeader | IFooter): boolean;
17
15
  export declare function getTotalWidth(columns: ICol[]): number;
18
16
  export declare function getTotalHeight(rows: IRow[]): number;
@@ -1,6 +1,7 @@
1
1
  import { IEventSystem } from "../../ts-common/events";
2
2
  import { IKeyManager } from "../../ts-common/KeyManager";
3
3
  import { IAlign } from "../../ts-common/html";
4
+ import { Position } from "../../ts-message";
4
5
  import { IDataCollection, IDragConfig, ICsvDriverConfig, IDataItem, IDragInfo, DataCollection } from "../../ts-data";
5
6
  import { Exporter } from "./Exporter";
6
7
  import { Combobox } from "../../ts-combobox";
@@ -31,9 +32,9 @@ export interface IGridConfig extends IDragConfig {
31
32
  autoEmptyRow?: boolean;
32
33
  resizable?: boolean;
33
34
  htmlEnable?: boolean;
34
- tooltip?: boolean;
35
- headerTooltip?: boolean;
36
- footerTooltip?: boolean;
35
+ tooltip?: boolean | IGridTooltipConfig;
36
+ headerTooltip?: boolean | IGridTooltipConfig;
37
+ footerTooltip?: boolean | IGridTooltipConfig;
37
38
  rowHeight?: number;
38
39
  headerRowHeight?: number;
39
40
  footerRowHeight?: number;
@@ -82,6 +83,14 @@ export interface IGridConfig extends IDragConfig {
82
83
  /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
83
84
  splitAt?: number;
84
85
  }
86
+ export interface IGridTooltipConfig {
87
+ force?: boolean;
88
+ showDelay?: number;
89
+ hideDelay?: number;
90
+ margin?: number;
91
+ position?: Position;
92
+ css?: string;
93
+ }
85
94
  export interface IScrollBarWidth {
86
95
  x: number;
87
96
  y: number;
@@ -244,7 +253,7 @@ export interface ICol {
244
253
  adjust?: IAdjustBy;
245
254
  autoWidth?: boolean;
246
255
  align?: IAlign;
247
- tooltip?: boolean;
256
+ tooltip?: boolean | IGridTooltipConfig;
248
257
  tooltipTemplate?: (cellValue: any, row: IRow, col: ICol) => string;
249
258
  gravity?: number;
250
259
  $cellCss?: {
@@ -253,7 +262,7 @@ export interface ICol {
253
262
  $uniqueData?: any[];
254
263
  $activeFilterData?: any[];
255
264
  $width?: number;
256
- $fixed?: boolean;
265
+ $fixedWidth?: boolean;
257
266
  $customOptions?: any;
258
267
  /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
259
268
  dateFormat?: string;
@@ -275,7 +284,7 @@ export interface IContent {
275
284
  rowspan?: number;
276
285
  css?: string;
277
286
  align?: IAlign;
278
- tooltip?: boolean;
287
+ tooltip?: boolean | IGridTooltipConfig;
279
288
  htmlEnable?: boolean;
280
289
  }
281
290
  export interface IHeader extends IContent {
@@ -306,7 +315,7 @@ export interface ISpan {
306
315
  colspan?: number;
307
316
  text?: string | number;
308
317
  css?: string;
309
- tooltip?: boolean;
318
+ tooltip?: boolean | IGridTooltipConfig;
310
319
  tooltipTemplate?: (spanValue: any, span: ISpan) => string;
311
320
  $rowsVisibility?: number[];
312
321
  $colsVisibility?: number[];
@@ -27,7 +27,7 @@ export declare function normalizeSpan(span: ISpan, config: IGridConfig, data: ID
27
27
  colspan?: number;
28
28
  text?: string | number;
29
29
  css?: string;
30
- tooltip?: boolean;
30
+ tooltip?: boolean | import("../types").IGridTooltipConfig;
31
31
  tooltipTemplate?: (spanValue: any, span: ISpan) => string;
32
32
  };
33
33
  export {};
@@ -1,4 +1,4 @@
1
- import { Combobox } from "../../../../ts-combobox";
1
+ import { ProCombobox } from "../../../../ts-combobox";
2
2
  import { IEventSystem } from "../../../../ts-common/events";
3
3
  import { IHeaderFilter, HeaderFilterEvent, ICol, IRendererConfig, IComboFilterConfig } from "../../types";
4
4
  export declare class ComboFilter implements IHeaderFilter {
@@ -14,7 +14,7 @@ export declare class ComboFilter implements IHeaderFilter {
14
14
  constructor(column: any, config?: any, data?: any, value?: any, conf?: any);
15
15
  protected initFilter(): void;
16
16
  protected initHandlers(): void;
17
- getFilter(): Combobox;
17
+ getFilter(): ProCombobox;
18
18
  setValue(value: string | string[], silent?: boolean): void;
19
19
  clear(silent?: boolean): void;
20
20
  focus(): void;
@@ -1,5 +1,5 @@
1
1
  import { ICol, IRendererConfig, IEditor, IRow } from "../../types";
2
- import { Combobox } from "../../../../ts-combobox";
2
+ import { ProCombobox } from "../../../../ts-combobox";
3
3
  export declare class ComboboxEditor implements IEditor {
4
4
  protected _handlers: {
5
5
  [key: string]: (...args: any[]) => void;
@@ -9,7 +9,7 @@ export declare class ComboboxEditor implements IEditor {
9
9
  col: ICol;
10
10
  };
11
11
  protected _config: IRendererConfig;
12
- protected _input: Combobox;
12
+ protected _input: ProCombobox;
13
13
  constructor(row: any, col: ICol, config: IRendererConfig);
14
14
  endEdit(withoutSave?: boolean): void;
15
15
  toHTML(): any;
@@ -1,15 +1,15 @@
1
- import { IGrid, IGridConfig, IProGrid, IRendererConfig, IRow, Split, IScrollBarWidth } from "../types";
1
+ import { IGrid, IGridConfig, IProGrid, IRendererConfig, IRow, Split, IScrollBarWidth, ICol } from "../types";
2
2
  export declare const BORDERS = 2;
3
3
  export declare function calcScrollBarWidth(config: IGridConfig | IRendererConfig, customScroll?: boolean, sizes?: {
4
4
  width: number;
5
5
  height: number;
6
6
  }): IScrollBarWidth;
7
- export declare function getCurrFixedCols(config: IGridConfig, split: Split.left | Split.right): import("../types").ICol[];
7
+ export declare function getCurrFixedCols(config: IGridConfig, split: Split.left | Split.right): ICol[];
8
8
  export declare function getRenderConfig(obj: any, data: IRow[], wrapperSizes: any): IRendererConfig;
9
9
  export declare function getElementSizes(element: HTMLElement | any): {
10
10
  width: number;
11
11
  height: number;
12
12
  };
13
- export declare function applyAutoWidth(config: IGridConfig, wrapperSizes: any, firstApply?: boolean, resizer?: boolean, scrollViewConfig?: boolean): void;
13
+ export declare function applyAutoWidth(config: IGridConfig, wrapperSizes: any, scrollViewConfig?: boolean): void;
14
14
  export declare function render(vm: any, obj: IGrid, htmlEvents: any, selection: any, uid: string): any;
15
15
  export declare function proRender(vm: any, obj: IProGrid, htmlEvents: any, selection: any, uid: string): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dhx-chart",
3
- "version": "8.3.14",
3
+ "version": "8.4.1",
4
4
  "description": "dhtmlxChart widget",
5
5
  "homepage":"https://docs.dhtmlx.com/chart",
6
6
  "license":"GPL",
package/readme.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
3
 
4
- dhtmlxChart v.8.3.14 Standard
4
+ dhtmlxChart v.8.4.1 Standard
5
5
  This software is covered by GPL-2.0 License. Usage without proper license is prohibited.
6
6
 
7
7
  (c) XB Software.
package/whatsnew.txt CHANGED
@@ -1,60 +1,70 @@
1
- Version 8.3.14 (July 8, 2024)
2
- ----------------------------
3
-
4
- Version 8.3.13 (June 24, 2024)
5
- ----------------------------
6
-
7
- Version 8.3.12 (May 17, 2024)
8
- ----------------------------
9
-
10
- Version 8.3.11 (May 8, 2024)
11
- ----------------------------
12
-
13
- Version 8.3.10 (April 3, 2024)
14
- ----------------------------
15
-
16
- Version 8.3.9 (March 18, 2024)
17
- ----------------------------
18
-
19
- Version 8.3.8 (February 26, 2024)
20
- ----------------------------
21
-
22
- Version 8.3.7 (February 13, 2024)
23
- ----------------------------
24
-
25
- Version 8.3.6 (January 24, 2024)
26
- ----------------------------
27
-
28
- Version 8.3.5 (January 11, 2024)
29
- ----------------------------
30
-
31
- Version 8.3.4 (January 4, 2024)
32
- ----------------------------
33
-
34
- Version 8.3.3 (December 7, 2023)
35
- ----------------------------
36
-
37
- Version 8.3.2 (December 4, 2023)
38
- ----------------------------
39
-
40
- Version 8.3.1 (November 14, 2023)
41
- ----------------------------
42
-
43
- Version 8.3.0 (October 23, 2023)
44
- ----------------------------
45
-
46
- Version 8.2.7 (October 19, 2023)
47
- ----------------------------
48
-
49
- Version 8.2.6 (October 12, 2023)
50
- ----------------------------
51
-
52
- Version 8.2.5 (October 12, 2023)
53
- ----------------------------
54
-
55
- Version 8.2.4 (October 4, 2023)
1
+ Version 8.4.1 (July 25, 2024)
56
2
  ----------------------------
57
3
 
4
+ # Version 8.4 (July 16, 2024)
5
+
6
+ ### New functionality
7
+
8
+ - The ability to specify a template for showing percent values for data items on the Pie, Pie3D and Donut charts
9
+ - The ability to add the header/footer for an exported PNG/PDF file
10
+
11
+ Version 8.3.14 (July 8, 2024)
12
+ ----------------------------
13
+
14
+ Version 8.3.13 (June 24, 2024)
15
+ ----------------------------
16
+
17
+ Version 8.3.12 (May 17, 2024)
18
+ ----------------------------
19
+
20
+ Version 8.3.11 (May 8, 2024)
21
+ ----------------------------
22
+
23
+ Version 8.3.10 (April 3, 2024)
24
+ ----------------------------
25
+
26
+ Version 8.3.9 (March 18, 2024)
27
+ ----------------------------
28
+
29
+ Version 8.3.8 (February 26, 2024)
30
+ ----------------------------
31
+
32
+ Version 8.3.7 (February 13, 2024)
33
+ ----------------------------
34
+
35
+ Version 8.3.6 (January 24, 2024)
36
+ ----------------------------
37
+
38
+ Version 8.3.5 (January 11, 2024)
39
+ ----------------------------
40
+
41
+ Version 8.3.4 (January 4, 2024)
42
+ ----------------------------
43
+
44
+ Version 8.3.3 (December 7, 2023)
45
+ ----------------------------
46
+
47
+ Version 8.3.2 (December 4, 2023)
48
+ ----------------------------
49
+
50
+ Version 8.3.1 (November 14, 2023)
51
+ ----------------------------
52
+
53
+ Version 8.3.0 (October 23, 2023)
54
+ ----------------------------
55
+
56
+ Version 8.2.7 (October 19, 2023)
57
+ ----------------------------
58
+
59
+ Version 8.2.6 (October 12, 2023)
60
+ ----------------------------
61
+
62
+ Version 8.2.5 (October 12, 2023)
63
+ ----------------------------
64
+
65
+ Version 8.2.4 (October 4, 2023)
66
+ ----------------------------
67
+
58
68
  # Version 8.2.3 (September 26, 2023)
59
69
 
60
70
  ### Fixes