dhx-chart 8.1.4 → 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.
- package/codebase/chart.min.css +1 -1
- package/codebase/chart.min.js +3 -3
- package/codebase/types/ts-combobox/sources/Combobox.d.ts +2 -2
- package/codebase/types/ts-combobox/sources/types.d.ts +2 -2
- package/codebase/types/ts-grid/sources/Grid.d.ts +1 -0
- package/codebase/types/ts-grid/sources/types.d.ts +10 -10
- package/package.json +1 -1
- package/readme.txt +1 -1
- package/whatsnew.txt +3 -0
|
@@ -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
|
}
|
|
@@ -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
|
|
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?:
|
|
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
package/readme.txt
CHANGED