dhx-chart 8.1.3 → 8.1.5

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.
@@ -1,7 +1,7 @@
1
1
  import { VNode } from "../../ts-common/dom";
2
2
  import { IEventSystem } from "../../ts-common/events";
3
3
  import { View } from "../../ts-common/view";
4
- import { DataCollection, DataEvents, IDataEventsHandlersMap } from "../../ts-data";
4
+ import { DataCollection, DataEvents, IDataEventsHandlersMap, IDataItem } from "../../ts-data";
5
5
  import { Layout } from "../../ts-layout";
6
6
  import { List } from "../../ts-list";
7
7
  import { Popup } from "../../ts-popup";
@@ -29,7 +29,7 @@ export declare class Combobox extends View implements ICombobox {
29
29
  clear(): void | boolean;
30
30
  getValue<T extends boolean = false>(asArray?: T): T extends true ? Id[] : Id;
31
31
  setValue(ids: Id[] | Id): void | boolean;
32
- addOption(value: string, join?: boolean): void;
32
+ addOption<T extends IDataItem>(value: T | string, join?: boolean): void;
33
33
  destructor(): void;
34
34
  /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
35
35
  setState(state: State): void;
@@ -1,5 +1,5 @@
1
1
  import { Id } from "../../ts-common/types";
2
- import { DataCollection } from "../../ts-data";
2
+ import { DataCollection, IDataItem } from "../../ts-data";
3
3
  export declare type ILabelPosition = "left" | "top";
4
4
  export interface IComboboxConfig {
5
5
  data?: DataCollection<any> | any[];
@@ -77,7 +77,7 @@ export interface ICombobox {
77
77
  blur(): void;
78
78
  getValue(asArray?: boolean): Id[] | Id;
79
79
  setValue(ids: Id[] | Id): void;
80
- addOption(value: string, join?: boolean): void;
80
+ addOption<T extends IDataItem>(value: T | string, join?: boolean): void;
81
81
  /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
82
82
  setState(state: State): void;
83
83
  }
@@ -78,5 +78,6 @@ export declare class Grid extends View implements IGrid {
78
78
  private _render;
79
79
  private _initHotKey;
80
80
  private _normalizeConfig;
81
+ private _normalizeSpans;
81
82
  private _autoScroll;
82
83
  }
@@ -216,7 +216,7 @@ export interface ICol {
216
216
  editable?: boolean;
217
217
  resizable?: boolean;
218
218
  sortable?: boolean;
219
- options?: (col: ICol, row?: IRow) => TOption[] | TOption[];
219
+ options?: ((col: ICol, row?: IRow) => TOption[]) | TOption[];
220
220
  draggable?: boolean;
221
221
  htmlEnable?: boolean;
222
222
  template?: (cellValue: any, row: IRow, col: ICol) => string;
@@ -247,19 +247,24 @@ export interface ICol {
247
247
  fitToContainer?: boolean;
248
248
  }
249
249
  export declare type fixedRowContent = "inputFilter" | "selectFilter" | "comboFilter";
250
- export declare type footerMethods = "avg" | "sum" | "max" | "min";
251
- export interface IHeader {
250
+ export declare type footerMethods = "avg" | "sum" | "max" | "min" | "count";
251
+ export interface IContent {
252
252
  text?: string;
253
253
  colspan?: number;
254
254
  rowspan?: number;
255
- css?: any;
255
+ css?: string;
256
+ align?: IAlign;
257
+ }
258
+ export interface IHeader extends IContent {
256
259
  content?: fixedRowContent | footerMethods;
257
260
  filterConfig?: IComboFilterConfig;
258
261
  customFilter?: (item: any, input: string) => boolean;
259
- align?: IAlign;
260
262
  headerSort?: boolean;
261
263
  sortAs?: SortFunction;
262
264
  }
265
+ export interface IFooter extends IContent {
266
+ content?: footerMethods;
267
+ }
263
268
  export interface IComboFilterConfig {
264
269
  data?: DataCollection<any> | any[];
265
270
  readonly?: boolean;
@@ -270,11 +275,6 @@ export interface IComboFilterConfig {
270
275
  multiselection?: boolean;
271
276
  }
272
277
  export declare type SortFunction = (cellValue: any) => string | number;
273
- export interface IFooter {
274
- text?: string | number;
275
- css?: any;
276
- content?: fixedRowContent | footerMethods;
277
- }
278
278
  export interface ISpan {
279
279
  row: Id;
280
280
  column: Id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dhx-chart",
3
- "version": "8.1.3",
3
+ "version": "8.1.5",
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.1.3 Standard
4
+ dhtmlxChart v.8.1.5 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,3 +1,9 @@
1
+ Version 8.1.5 (June 19, 2023)
2
+ ----------------------------
3
+
4
+ Version 8.1.4 (June 15, 2023)
5
+ ----------------------------
6
+
1
7
  Version 8.1.3 (June 12, 2023)
2
8
  ----------------------------
3
9