dhx-chart 8.1.10 → 8.2.0
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-chart/sources/types.d.ts +10 -10
- package/codebase/types/ts-combobox/sources/Combobox.d.ts +1 -1
- package/codebase/types/ts-common/core.d.ts +3 -2
- package/codebase/types/ts-common/types.d.ts +1 -0
- package/codebase/types/ts-data/sources/datacollection.d.ts +15 -5
- package/codebase/types/ts-data/sources/helpers.d.ts +2 -1
- package/codebase/types/ts-data/sources/treecollection.d.ts +4 -6
- package/codebase/types/ts-data/sources/types.d.ts +26 -2
- package/codebase/types/ts-grid/sources/Grid.d.ts +4 -1
- package/codebase/types/ts-grid/sources/helpers/main.d.ts +6 -0
- package/codebase/types/ts-grid/sources/types.d.ts +19 -4
- package/codebase/types/ts-grid/sources/ui/content/ComboFilter.d.ts +5 -2
- package/codebase/types/ts-grid/sources/ui/content/InputFilter.d.ts +2 -2
- package/codebase/types/ts-grid/sources/ui/content/SelectFilter.d.ts +2 -2
- package/codebase/types/ts-layout/sources/types.d.ts +5 -0
- package/codebase/types/ts-list/sources/List.d.ts +2 -1
- package/codebase/types/ts-list/sources/ProList.d.ts +1 -1
- package/codebase/types/ts-list/sources/Selection.d.ts +1 -1
- package/codebase/types/ts-list/sources/types.d.ts +2 -2
- package/codebase/types/ts-slider/sources/types.d.ts +3 -3
- package/package.json +1 -1
- package/readme.txt +1 -1
- package/whatsnew.txt +36 -30
|
@@ -58,33 +58,33 @@ export declare type TreeDirectionType = "asc" | "desc";
|
|
|
58
58
|
export interface ISeriaConfig {
|
|
59
59
|
id?: string;
|
|
60
60
|
type?: TChartType;
|
|
61
|
+
value?: string;
|
|
62
|
+
valueY?: string;
|
|
63
|
+
label?: ((item: ISeriaConfig) => string) | string;
|
|
64
|
+
pointType?: PointType;
|
|
65
|
+
legendType?: LegendType;
|
|
66
|
+
scales?: ScaleType[];
|
|
61
67
|
active?: boolean;
|
|
62
68
|
pointColor?: string;
|
|
63
69
|
dashed?: boolean;
|
|
64
|
-
scales?: ScaleType[];
|
|
65
70
|
stroke?: string;
|
|
66
71
|
strokeWidth?: number;
|
|
67
|
-
value?: string;
|
|
68
|
-
name?: string;
|
|
69
|
-
valueY?: string;
|
|
70
|
-
pointType?: PointType;
|
|
71
72
|
barWidth?: number;
|
|
72
73
|
css?: string;
|
|
73
74
|
fill?: string;
|
|
74
75
|
color?: string;
|
|
75
76
|
alpha?: number;
|
|
77
|
+
gradient?: Gradient;
|
|
76
78
|
showText?: boolean;
|
|
77
79
|
showTextRotate?: number | string;
|
|
78
80
|
showTextTemplate?: (points: any) => string;
|
|
79
81
|
tooltip?: boolean;
|
|
80
|
-
tooltipTemplate?: (points: any[]) => string;
|
|
81
|
-
gradient?: Gradient;
|
|
82
|
-
baseLine?: number;
|
|
83
82
|
tooltipType?: TooltipType;
|
|
84
|
-
|
|
83
|
+
tooltipTemplate?: (points: any[]) => string;
|
|
85
84
|
direction?: TreeDirectionType;
|
|
86
85
|
treeSeries?: ITreeSeries[];
|
|
87
|
-
|
|
86
|
+
baseLine?: number;
|
|
87
|
+
stacked?: boolean;
|
|
88
88
|
}
|
|
89
89
|
export declare type SeriaConfig = ISeriaConfig | INoScaleConfig;
|
|
90
90
|
export interface IScale extends IComposable {
|
|
@@ -28,7 +28,7 @@ export declare class Combobox extends View implements ICombobox {
|
|
|
28
28
|
isDisabled(): boolean;
|
|
29
29
|
clear(): void | boolean;
|
|
30
30
|
getValue<T extends boolean = false>(asArray?: T): T extends true ? Id[] : Id;
|
|
31
|
-
setValue(ids: Id[] | Id): void | boolean;
|
|
31
|
+
setValue(ids: Id[] | Id, silent?: boolean): void | boolean;
|
|
32
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/ */
|
|
@@ -22,8 +22,8 @@ export declare function debounce(func: anyFunction, wait: number, immediate?: bo
|
|
|
22
22
|
export declare function compare(obj1: any, obj2: any): boolean;
|
|
23
23
|
export declare const isType: (value: any) => string;
|
|
24
24
|
export declare const isEmptyObj: (obj: any) => boolean;
|
|
25
|
-
export declare const
|
|
26
|
-
export declare const
|
|
25
|
+
export declare const getMaxArrayNumber: (array: number[]) => number;
|
|
26
|
+
export declare const getMinArrayNumber: (array: number[]) => number;
|
|
27
27
|
export interface IContainerConfig {
|
|
28
28
|
lineHeight?: number;
|
|
29
29
|
font?: string;
|
|
@@ -31,4 +31,5 @@ export interface IContainerConfig {
|
|
|
31
31
|
export declare const getStringWidth: (value: string, config?: IContainerConfig) => number;
|
|
32
32
|
export declare const rgbToHex: (color: string) => string;
|
|
33
33
|
export declare function getCloneObject(obj: any): any;
|
|
34
|
+
export declare function getTextLines(ctx: any, text: string, maxWidth: number): string[];
|
|
34
35
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IEventSystem } from "../../ts-common/events";
|
|
2
2
|
import { Id } from "../../ts-common/types";
|
|
3
3
|
import { Sort } from "./datacollection/sort";
|
|
4
|
-
import { DataCallback, DataEvents, IDataCollection, IDataItem, IDataProxy, IFilterCallback, IFilterConfig, IFilterMode, ISortMode, ITreeCollection, IUpdateObject, ReduceCallBack, Statuses, IDataEventsHandlersMap, DataDriver, IDataConfig, ISortConfig, IDataDriver } from "./types";
|
|
4
|
+
import { DataCallback, DataEvents, IDataCollection, IDataItem, IDataProxy, IFilterCallback, IFilterConfig, IFilterMode, ISortMode, ITreeCollection, IUpdateObject, ReduceCallBack, Statuses, IDataEventsHandlersMap, DataDriver, IDataConfig, ISortConfig, IDataDriver, IFilterComplexMode, IFilter, IResetFilterConfig } from "./types";
|
|
5
5
|
import { TreeCollection } from "./treecollection";
|
|
6
6
|
export declare class DataCollection<T extends IDataItem = IDataItem> implements IDataCollection<T> {
|
|
7
7
|
loadData: Promise<any>;
|
|
@@ -14,12 +14,12 @@ export declare class DataCollection<T extends IDataItem = IDataItem> implements
|
|
|
14
14
|
[id: string]: T;
|
|
15
15
|
};
|
|
16
16
|
protected _sort: Sort;
|
|
17
|
-
protected _filter: any;
|
|
18
17
|
protected _sorter: ISortMode;
|
|
19
18
|
protected _meta: any;
|
|
20
19
|
protected _range: [number, number];
|
|
21
20
|
protected _loaded: boolean;
|
|
22
21
|
protected _initOrder: T[];
|
|
22
|
+
protected _filters: IFilter;
|
|
23
23
|
private _changes;
|
|
24
24
|
private _loader;
|
|
25
25
|
constructor(config?: any, events?: IEventSystem<any>);
|
|
@@ -36,7 +36,14 @@ export declare class DataCollection<T extends IDataItem = IDataItem> implements
|
|
|
36
36
|
getId(index: number): Id;
|
|
37
37
|
getLength(): number;
|
|
38
38
|
isDataLoaded(from?: number, to?: number): boolean;
|
|
39
|
-
filter(rule?: IFilterMode | IFilterCallback, config?: IFilterConfig):
|
|
39
|
+
filter(rule?: IFilterMode | IFilterComplexMode | IFilterCallback, config?: IFilterConfig, silent?: boolean): string;
|
|
40
|
+
resetFilter(config?: IResetFilterConfig, silent?: boolean): boolean;
|
|
41
|
+
getFilters(config?: {
|
|
42
|
+
permanent?: boolean;
|
|
43
|
+
}): IFilter;
|
|
44
|
+
getRawFilters(config?: {
|
|
45
|
+
permanent?: boolean;
|
|
46
|
+
}): IFilter;
|
|
40
47
|
find(conf: IFilterMode | DataCallback<T>): any;
|
|
41
48
|
findAll(conf: IFilterMode | DataCallback<T>): any[];
|
|
42
49
|
sort(rule?: ISortMode, config?: ISortConfig): void;
|
|
@@ -69,7 +76,10 @@ export declare class DataCollection<T extends IDataItem = IDataItem> implements
|
|
|
69
76
|
protected _approximate(data: any[], values: string[], maxNum: number): any[];
|
|
70
77
|
protected _onChange(status: Statuses, id: Id, obj: any): void;
|
|
71
78
|
protected _addToOrder(array: any[], obj: any, index?: number): void;
|
|
72
|
-
protected _applySmart(): void;
|
|
73
79
|
protected _applySorters(by?: ISortMode): void;
|
|
74
|
-
protected _applyFilters(rule?: IFilterCallback): void;
|
|
80
|
+
protected _applyFilters(rule?: IFilterMode | IFilterCallback): void;
|
|
81
|
+
protected _reapplyFilters(sort?: boolean): void;
|
|
82
|
+
protected _getRuleCallback(rule: IFilterMode): IFilterCallback;
|
|
83
|
+
protected _getPureFilters(filters: IFilter): IFilter;
|
|
84
|
+
protected _normalizeFilters(filters: any): any;
|
|
75
85
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IAnyObj } from "../../ts-common/types";
|
|
2
2
|
import { DataProxy } from "./dataproxy";
|
|
3
|
-
import { IFilterCallback, IFilterMode, IDataCollection, IDataItem, ITreeCollection, DataDriver, IDataDriver } from "./types";
|
|
3
|
+
import { IFilterCallback, IFilterMode, IDataCollection, IDataItem, ITreeCollection, DataDriver, IDataDriver, IFilter } from "./types";
|
|
4
4
|
export declare function isEqualObj(a: any, b: any): boolean;
|
|
5
5
|
export declare function naturalCompare(a: any, b: any): any;
|
|
6
6
|
export declare function findByConf(item: any, conf: IFilterMode | IFilterCallback): any;
|
|
@@ -12,3 +12,4 @@ export declare function toDataDriver(driver: DataDriver | IDataDriver): IDataDri
|
|
|
12
12
|
export declare function copyWithoutInner(obj: IAnyObj, forbidden?: IAnyObj): IAnyObj;
|
|
13
13
|
export declare function isTreeCollection(obj: IDataCollection<any> | ITreeCollection<any> | IDataItem[]): obj is ITreeCollection<any>;
|
|
14
14
|
export declare function hasJsonOrArrayStructure(str: any): boolean;
|
|
15
|
+
export declare function isOnlyPermanentFilters(filters: IFilter): boolean;
|
|
@@ -7,10 +7,6 @@ export declare class TreeCollection<T extends IDataItem = IDataItem> extends Dat
|
|
|
7
7
|
[id: string]: T[];
|
|
8
8
|
};
|
|
9
9
|
protected _root: Id;
|
|
10
|
-
protected _filters: {
|
|
11
|
-
filters: IFilterComplexMode | IFilterCallback;
|
|
12
|
-
config: ITreeFilterConfig;
|
|
13
|
-
};
|
|
14
10
|
private _initChilds;
|
|
15
11
|
constructor(config?: any, events?: IEventSystem<DataEvents>);
|
|
16
12
|
add(newItem: IDataItem, index?: number, parent?: Id): Id;
|
|
@@ -22,7 +18,7 @@ export declare class TreeCollection<T extends IDataItem = IDataItem> extends Dat
|
|
|
22
18
|
removeAll(id?: Id): void;
|
|
23
19
|
getIndex(id: Id): number;
|
|
24
20
|
sort(rule?: ISortMode): void;
|
|
25
|
-
filter(rule?: IFilterMode | IFilterComplexMode | IFilterCallback, config?: ITreeFilterConfig):
|
|
21
|
+
filter(rule?: IFilterMode | IFilterComplexMode | IFilterCallback, config?: ITreeFilterConfig, silent?: boolean): string;
|
|
26
22
|
restoreOrder(): void;
|
|
27
23
|
copy(id: Id, index: number, target?: IDataCollection | ITreeCollection, targetId?: Id): Id;
|
|
28
24
|
copy(id: Id[], index: number, target?: IDataCollection | ITreeCollection, targetId?: Id): Id[];
|
|
@@ -42,14 +38,16 @@ export declare class TreeCollection<T extends IDataItem = IDataItem> extends Dat
|
|
|
42
38
|
getRawData(from: number, to: number, order?: T[], mode?: number, parent?: Id): T[];
|
|
43
39
|
protected flatten(input: T[]): T[];
|
|
44
40
|
protected _add(newItem: IDataItem, index?: number, parent?: Id, key?: number): Id;
|
|
41
|
+
protected _setParent(item: IDataItem, parent: Id): void;
|
|
45
42
|
protected _copy(id: Id, index: number, target?: IDataCollection | ITreeCollection, targetId?: Id, key?: number): Id;
|
|
46
43
|
protected _move(id: Id, index: number, target?: ITreeCollection | IDataCollection, targetId?: Id, key?: number): Id;
|
|
47
44
|
protected _reset(id?: Id): void;
|
|
48
45
|
protected _removeCore(id: any): void;
|
|
49
46
|
protected _addToOrder(_order: any, obj: any, index: number): void;
|
|
50
47
|
protected _parse_data(data: any, parent?: Id): void;
|
|
51
|
-
protected _applySmart(): void;
|
|
52
48
|
private _fastDeleteChilds;
|
|
53
49
|
private _recursiveFilter;
|
|
54
50
|
private _serialize;
|
|
51
|
+
private _applyFilter;
|
|
52
|
+
protected _normalizeFilters(filters: any): any;
|
|
55
53
|
}
|
|
@@ -34,9 +34,24 @@ export interface IFilterMode {
|
|
|
34
34
|
export interface IFilterComplexMode {
|
|
35
35
|
[key: string]: IFilterMode;
|
|
36
36
|
}
|
|
37
|
+
export interface IFilter {
|
|
38
|
+
[key: string]: IFilterParams;
|
|
39
|
+
}
|
|
40
|
+
export interface IFilterParams {
|
|
41
|
+
rule: IFilterMode | IFilterComplexMode | IFilterCallback;
|
|
42
|
+
config: IFilterConfig | ITreeFilterConfig;
|
|
43
|
+
}
|
|
37
44
|
export interface IFilterConfig {
|
|
45
|
+
id?: string;
|
|
38
46
|
add?: boolean;
|
|
39
47
|
smartFilter?: boolean;
|
|
48
|
+
permanent?: boolean;
|
|
49
|
+
$restore?: boolean;
|
|
50
|
+
$local?: boolean;
|
|
51
|
+
}
|
|
52
|
+
export interface IResetFilterConfig {
|
|
53
|
+
id?: string;
|
|
54
|
+
permanent?: boolean;
|
|
40
55
|
}
|
|
41
56
|
export interface ISortConfig {
|
|
42
57
|
smartSorting?: boolean;
|
|
@@ -81,7 +96,14 @@ export interface IDataCollection<T extends IDataItem = IDataItem> {
|
|
|
81
96
|
getLength(): number;
|
|
82
97
|
isDataLoaded(from?: number, to?: number): boolean;
|
|
83
98
|
getId(index: number): Id;
|
|
84
|
-
filter(rule?: IFilterMode | IFilterCallback, config?: IFilterConfig):
|
|
99
|
+
filter(rule?: IFilterMode | IFilterCallback, config?: IFilterConfig, silent?: boolean): string;
|
|
100
|
+
resetFilter(config?: IResetFilterConfig, silent?: boolean): boolean;
|
|
101
|
+
getFilters(config?: {
|
|
102
|
+
permanent?: boolean;
|
|
103
|
+
}): IFilter;
|
|
104
|
+
getRawFilters(config?: {
|
|
105
|
+
permanent?: boolean;
|
|
106
|
+
}): IFilter;
|
|
85
107
|
find(rule: IFilterMode): T;
|
|
86
108
|
reduce<A>(callback: ReduceCallBack<T, A>, acc: A): A;
|
|
87
109
|
findAll(rule: IFilterMode): T[];
|
|
@@ -150,7 +172,7 @@ export interface ITreeCollection<T extends IDataItem = IDataItem> extends IDataC
|
|
|
150
172
|
getItems(id: Id): T[];
|
|
151
173
|
sort(rule?: ISortMode): void;
|
|
152
174
|
map(callback: DataCallback<T>, parent?: Id, direct?: boolean): any;
|
|
153
|
-
filter(rule?: IFilterMode | IFilterCallback, config?: ITreeFilterConfig):
|
|
175
|
+
filter(rule?: IFilterMode | IFilterCallback, config?: ITreeFilterConfig, silent?: boolean): string;
|
|
154
176
|
restoreOrder(): void;
|
|
155
177
|
copy(id: Id, index: number, target?: IDataCollection | ITreeCollection, targetId?: Id): Id;
|
|
156
178
|
copy(id: Id[], index: number, target?: IDataCollection | ITreeCollection, targetId?: Id): Id[];
|
|
@@ -210,6 +232,7 @@ export declare enum DataEvents {
|
|
|
210
232
|
beforeRemove = "beforeremove",
|
|
211
233
|
afterRemove = "afterremove",
|
|
212
234
|
change = "change",
|
|
235
|
+
filter = "filter",
|
|
213
236
|
dataRequest = "dataRequest",
|
|
214
237
|
load = "load",
|
|
215
238
|
loadError = "loaderror",
|
|
@@ -221,6 +244,7 @@ export declare enum DataEvents {
|
|
|
221
244
|
export interface IDataEventsHandlersMap {
|
|
222
245
|
[key: string]: (...args: any[]) => any;
|
|
223
246
|
[DataEvents.change]: (id?: Id, status?: Statuses, updatedItem?: any) => void;
|
|
247
|
+
[DataEvents.filter]: (filter?: IFilter) => void;
|
|
224
248
|
[DataEvents.afterAdd]: (newItem: any) => void;
|
|
225
249
|
[DataEvents.afterRemove]: (removedItem: any) => void;
|
|
226
250
|
[DataEvents.beforeAdd]: (newItem: any) => boolean | void;
|
|
@@ -62,7 +62,10 @@ export declare class Grid extends View implements IGrid {
|
|
|
62
62
|
protected _addEmptyRow(): void;
|
|
63
63
|
protected _sort(by: Id, dir?: Dirs, sortAs?: SortFunction): void;
|
|
64
64
|
protected _clearTouchTimer(): void;
|
|
65
|
-
protected _checkFilters(): void;
|
|
65
|
+
protected _checkFilters(reset?: boolean): void;
|
|
66
|
+
protected _setUniqueData(sync?: boolean): void;
|
|
67
|
+
protected _checkSelectFilterValue(): void;
|
|
68
|
+
protected _clearFilterValue(allCols?: boolean): void;
|
|
66
69
|
protected _adjustColumns(): void;
|
|
67
70
|
protected _prepareData(data: IDataItem[] | IDataCollection): any[] | IDataItem[];
|
|
68
71
|
protected _adjustColumnsWidth({ rows, cols, adjust, }: IAdjustColumns): IColumnsWidth;
|
|
@@ -6,6 +6,12 @@ export declare function isCssSupport(property: string, value: string): boolean;
|
|
|
6
6
|
export declare function isRowEmpty(row: IRow): boolean;
|
|
7
7
|
export declare function isSortable(config: IGridConfig, col: ICol): boolean;
|
|
8
8
|
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;
|
|
14
|
+
export declare function isContentTooltip(config: IGridConfig, col: ICol, cell: any, type: "footer" | "header"): boolean;
|
|
9
15
|
export declare function isTooltip(config: IGridConfig, element: ICol | ISpan): boolean;
|
|
10
16
|
export declare function isHtmlEnable(config: IGridConfig, col: ICol): boolean;
|
|
11
17
|
export declare function getTotalWidth(columns: ICol[]): number;
|
|
@@ -32,6 +32,8 @@ export interface IGridConfig extends IDragConfig {
|
|
|
32
32
|
resizable?: boolean;
|
|
33
33
|
htmlEnable?: boolean;
|
|
34
34
|
tooltip?: boolean;
|
|
35
|
+
headerTooltip?: boolean;
|
|
36
|
+
footerTooltip?: boolean;
|
|
35
37
|
headerRowHeight?: number;
|
|
36
38
|
footerRowHeight?: number;
|
|
37
39
|
rowHeight?: number;
|
|
@@ -188,8 +190,8 @@ export interface IHeaderFilter {
|
|
|
188
190
|
id?: Id;
|
|
189
191
|
filterConfig?: IComboFilterConfig;
|
|
190
192
|
getFilter(): HTMLElement | Combobox;
|
|
191
|
-
setValue(value: string | string[]): void;
|
|
192
|
-
clear(): void;
|
|
193
|
+
setValue(value: string | string[], silent?: boolean): void;
|
|
194
|
+
clear(silent?: boolean): void;
|
|
193
195
|
focus(): void;
|
|
194
196
|
blur(): void;
|
|
195
197
|
}
|
|
@@ -249,11 +251,13 @@ export interface ICol {
|
|
|
249
251
|
export declare type fixedRowContent = "inputFilter" | "selectFilter" | "comboFilter";
|
|
250
252
|
export declare type footerMethods = "avg" | "sum" | "max" | "min" | "count";
|
|
251
253
|
export interface IContent {
|
|
254
|
+
id?: string;
|
|
252
255
|
text?: string;
|
|
253
256
|
colspan?: number;
|
|
254
257
|
rowspan?: number;
|
|
255
258
|
css?: string;
|
|
256
259
|
align?: IAlign;
|
|
260
|
+
tooltip?: boolean;
|
|
257
261
|
}
|
|
258
262
|
export interface IHeader extends IContent {
|
|
259
263
|
content?: fixedRowContent | footerMethods;
|
|
@@ -261,9 +265,11 @@ export interface IHeader extends IContent {
|
|
|
261
265
|
customFilter?: (item: any, input: string) => boolean;
|
|
262
266
|
headerSort?: boolean;
|
|
263
267
|
sortAs?: SortFunction;
|
|
268
|
+
tooltipTemplate?: (value: string | undefined, header: IHeader, col: ICol) => string | boolean;
|
|
264
269
|
}
|
|
265
270
|
export interface IFooter extends IContent {
|
|
266
271
|
content?: footerMethods;
|
|
272
|
+
tooltipTemplate?: (value: string | undefined, header: IFooter, col: ICol) => string | boolean;
|
|
267
273
|
}
|
|
268
274
|
export interface IComboFilterConfig {
|
|
269
275
|
data?: DataCollection<any> | any[];
|
|
@@ -274,7 +280,6 @@ export interface IComboFilterConfig {
|
|
|
274
280
|
virtual?: boolean;
|
|
275
281
|
multiselection?: boolean;
|
|
276
282
|
}
|
|
277
|
-
export declare type SortFunction = (cellValue: any) => string | number;
|
|
278
283
|
export interface ISpan {
|
|
279
284
|
row: Id;
|
|
280
285
|
column: Id;
|
|
@@ -287,6 +292,16 @@ export interface ISpan {
|
|
|
287
292
|
$markCss?: string;
|
|
288
293
|
$type?: colType;
|
|
289
294
|
}
|
|
295
|
+
export interface IComboFilterConfig {
|
|
296
|
+
data?: DataCollection<any> | any[];
|
|
297
|
+
readonly?: boolean;
|
|
298
|
+
template?: (item: any) => string;
|
|
299
|
+
filter?: (item: any, input: string) => boolean;
|
|
300
|
+
placeholder?: string;
|
|
301
|
+
virtual?: boolean;
|
|
302
|
+
multiselection?: boolean;
|
|
303
|
+
}
|
|
304
|
+
export declare type SortFunction = (cellValue: any) => string | number;
|
|
290
305
|
declare type MarkFunction = (cell: any, columnCells: any[], row: IRow, column: ICol) => string;
|
|
291
306
|
export interface IMark {
|
|
292
307
|
min?: string;
|
|
@@ -381,7 +396,7 @@ export interface IEventHandlersMap {
|
|
|
381
396
|
[GridEvents.scroll]: (scrollState: ICoords) => void;
|
|
382
397
|
[GridEvents.beforeSort]: (col: ICol, dir: Dirs) => void | boolean;
|
|
383
398
|
[GridEvents.afterSort]: (col: ICol, dir: Dirs) => void;
|
|
384
|
-
[GridEvents.filterChange]: (value: string | string[], colId: Id, filterId: fixedRowContent) => void;
|
|
399
|
+
[GridEvents.filterChange]: (value: string | string[], colId: Id, filterId: fixedRowContent, silent?: boolean) => void;
|
|
385
400
|
[GridEvents.beforeFilter]: (value: string, colId: Id) => void | boolean;
|
|
386
401
|
[GridEvents.beforeResizeStart]: (col: ICol, e: MouseEvent) => boolean | void;
|
|
387
402
|
[GridEvents.resize]: (col: ICol, e: MouseEvent) => void;
|
|
@@ -10,12 +10,15 @@ export declare class ComboFilter implements IHeaderFilter {
|
|
|
10
10
|
events: IEventSystem<HeaderFilterEvent>;
|
|
11
11
|
private _filter;
|
|
12
12
|
private _isFocused;
|
|
13
|
+
private _silentMode;
|
|
13
14
|
constructor(column: any, config?: any, data?: any, value?: any, conf?: any);
|
|
14
15
|
protected initFilter(): void;
|
|
15
16
|
protected initHandlers(): void;
|
|
16
17
|
getFilter(): Combobox;
|
|
17
|
-
setValue(value
|
|
18
|
-
clear(): void;
|
|
18
|
+
setValue(value: string | string[], silent?: boolean): void;
|
|
19
|
+
clear(silent?: boolean): void;
|
|
19
20
|
focus(): void;
|
|
20
21
|
blur(): void;
|
|
22
|
+
private _setData;
|
|
23
|
+
private _checkValue;
|
|
21
24
|
}
|
|
@@ -15,8 +15,8 @@ export declare class InputFilter implements IHeaderFilter {
|
|
|
15
15
|
protected initHandlers(): void;
|
|
16
16
|
protected initFilter(): void;
|
|
17
17
|
getFilter(): HTMLElement;
|
|
18
|
-
setValue(value: string): void;
|
|
19
|
-
clear(): void;
|
|
18
|
+
setValue(value: string, silent?: boolean): void;
|
|
19
|
+
clear(silent?: boolean): void;
|
|
20
20
|
focus(): void;
|
|
21
21
|
blur(): void;
|
|
22
22
|
}
|
|
@@ -13,8 +13,8 @@ export declare class SelectFilter implements IHeaderFilter {
|
|
|
13
13
|
protected initHandlers(): void;
|
|
14
14
|
protected initFilter(): void;
|
|
15
15
|
getFilter(): HTMLElement;
|
|
16
|
-
setValue(value: string): void;
|
|
17
|
-
clear(): void;
|
|
16
|
+
setValue(value: string, silent?: boolean): void;
|
|
17
|
+
clear(silent?: boolean): void;
|
|
18
18
|
focus(): void;
|
|
19
19
|
blur(): void;
|
|
20
20
|
}
|
|
@@ -3,6 +3,7 @@ import { VNode } from "../../ts-common/dom";
|
|
|
3
3
|
import { IEventSystem } from "../../ts-common/events";
|
|
4
4
|
import { FlexDirection } from "../../ts-common/html";
|
|
5
5
|
import { ScrollView } from "../../ts-common/ScrollView";
|
|
6
|
+
import { TLabelAlignment } from "../../ts-common/types";
|
|
6
7
|
export interface ICellConfig {
|
|
7
8
|
id?: string;
|
|
8
9
|
html?: string;
|
|
@@ -36,6 +37,10 @@ export interface ICellConfig {
|
|
|
36
37
|
$fixed?: boolean;
|
|
37
38
|
$autoWidth?: boolean;
|
|
38
39
|
$autoHeight?: boolean;
|
|
40
|
+
$fieldset?: boolean;
|
|
41
|
+
$disabled?: boolean;
|
|
42
|
+
label?: string;
|
|
43
|
+
labelAlignment?: TLabelAlignment;
|
|
39
44
|
}
|
|
40
45
|
export interface ILayoutConfig extends ICellConfig {
|
|
41
46
|
rows?: ICellConfig[] | ILayoutConfig[];
|
|
@@ -36,7 +36,8 @@ export declare class List extends View implements IList {
|
|
|
36
36
|
setFocus(id: Id): void;
|
|
37
37
|
getFocus(): Id;
|
|
38
38
|
destructor(): void;
|
|
39
|
-
|
|
39
|
+
scrollTo(id: Id): void;
|
|
40
|
+
protected _scrollTo(id: Id, el: HTMLElement): void;
|
|
40
41
|
protected _renderItem(item: IListItem, index: number): VNode;
|
|
41
42
|
protected _renderList(): VNode;
|
|
42
43
|
moveFocus(mode: number, step?: number): void;
|
|
@@ -6,6 +6,6 @@ export declare class ProList extends List implements IProList {
|
|
|
6
6
|
scrollView: ScrollView;
|
|
7
7
|
constructor(container: HTMLElement | string, config?: IListConfig);
|
|
8
8
|
destructor(): void;
|
|
9
|
-
|
|
9
|
+
scrollTo(id: string): void;
|
|
10
10
|
protected _renderList(): VNode;
|
|
11
11
|
}
|
|
@@ -14,7 +14,7 @@ export declare class Selection implements ISelection {
|
|
|
14
14
|
getId(): Id | Id[] | undefined;
|
|
15
15
|
getItem(): IDataItem | IDataItem[];
|
|
16
16
|
contains(id?: Id): boolean;
|
|
17
|
-
remove(id?: Id): void;
|
|
17
|
+
remove(id?: Id, silent?: boolean): void;
|
|
18
18
|
add(id?: Id, isCtrl?: boolean, isShift?: boolean, silent?: boolean): void;
|
|
19
19
|
destructor(): void;
|
|
20
20
|
private _addMulti;
|
|
@@ -71,7 +71,7 @@ export interface IList<T = any> {
|
|
|
71
71
|
getFocusItem(): T;
|
|
72
72
|
setFocus(id: Id): void;
|
|
73
73
|
getFocus(): Id;
|
|
74
|
-
|
|
74
|
+
scrollTo(id: Id): void;
|
|
75
75
|
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
76
76
|
disableSelection(): void;
|
|
77
77
|
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
@@ -86,7 +86,7 @@ export interface ISelection<T = any> {
|
|
|
86
86
|
getId(): Id | Id[] | undefined;
|
|
87
87
|
getItem(): T;
|
|
88
88
|
contains(id?: Id): boolean;
|
|
89
|
-
remove(id?: Id): void;
|
|
89
|
+
remove(id?: Id, silent?: boolean): void;
|
|
90
90
|
add(id?: Id, isShift?: boolean, isCtrl?: boolean, silent?: boolean): void;
|
|
91
91
|
enable(): void;
|
|
92
92
|
disable(): void;
|
|
@@ -33,9 +33,9 @@ export interface ISliderEventHandlersMap {
|
|
|
33
33
|
}
|
|
34
34
|
export declare type ILabelPosition = "left" | "top";
|
|
35
35
|
export interface ISliderConfig {
|
|
36
|
-
min
|
|
37
|
-
max
|
|
38
|
-
step
|
|
36
|
+
min?: number;
|
|
37
|
+
max?: number;
|
|
38
|
+
step?: number;
|
|
39
39
|
mode?: Direction;
|
|
40
40
|
range?: boolean;
|
|
41
41
|
value?: number[] | number | string;
|
package/package.json
CHANGED
package/readme.txt
CHANGED
package/whatsnew.txt
CHANGED
|
@@ -1,33 +1,39 @@
|
|
|
1
|
-
Version 8.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Version 8.1.
|
|
8
|
-
----------------------------
|
|
9
|
-
|
|
10
|
-
Version 8.1.
|
|
11
|
-
----------------------------
|
|
12
|
-
|
|
13
|
-
Version 8.1.
|
|
14
|
-
----------------------------
|
|
15
|
-
|
|
16
|
-
Version 8.1.
|
|
17
|
-
----------------------------
|
|
18
|
-
|
|
19
|
-
Version 8.1.
|
|
20
|
-
----------------------------
|
|
21
|
-
|
|
22
|
-
Version 8.1.
|
|
23
|
-
----------------------------
|
|
24
|
-
|
|
25
|
-
Version 8.1.
|
|
26
|
-
----------------------------
|
|
27
|
-
|
|
28
|
-
Version 8.1.
|
|
29
|
-
----------------------------
|
|
30
|
-
|
|
1
|
+
Version 8.2.0 (August 29, 2023)
|
|
2
|
+
|
|
3
|
+
### Updates
|
|
4
|
+
|
|
5
|
+
- The series configuration property is extended with the **label** option for setting the text of the legend for a series (for the "line", "spline", "bar", "x-bar", "area", "splineArea", "radar", "scatter" chart types)
|
|
6
|
+
|
|
7
|
+
Version 8.1.10 (August 21, 2023)
|
|
8
|
+
----------------------------
|
|
9
|
+
|
|
10
|
+
Version 8.1.9 (August 14, 2023)
|
|
11
|
+
----------------------------
|
|
12
|
+
|
|
13
|
+
Version 8.1.8 (August 8, 2023)
|
|
14
|
+
----------------------------
|
|
15
|
+
|
|
16
|
+
Version 8.1.7 (July 26, 2023)
|
|
17
|
+
----------------------------
|
|
18
|
+
|
|
19
|
+
Version 8.1.6 (July 11, 2023)
|
|
20
|
+
----------------------------
|
|
21
|
+
|
|
22
|
+
Version 8.1.5 (June 19, 2023)
|
|
23
|
+
----------------------------
|
|
24
|
+
|
|
25
|
+
Version 8.1.4 (June 15, 2023)
|
|
26
|
+
----------------------------
|
|
27
|
+
|
|
28
|
+
Version 8.1.3 (June 12, 2023)
|
|
29
|
+
----------------------------
|
|
30
|
+
|
|
31
|
+
Version 8.1.2 (May 29, 2023)
|
|
32
|
+
----------------------------
|
|
33
|
+
|
|
34
|
+
Version 8.1.1 (May 18, 2023)
|
|
35
|
+
----------------------------
|
|
36
|
+
|
|
31
37
|
# Version 8.1 (April 18, 2023)
|
|
32
38
|
|
|
33
39
|
### New functionality
|