dhx-chart 7.3.14 → 8.0.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.
- package/codebase/chart.min.css +1 -1
- package/codebase/chart.min.js +3 -3
- package/codebase/types/ts-chart/sources/Chart.d.ts +8 -6
- package/codebase/types/ts-chart/sources/Export.d.ts +10 -0
- package/codebase/types/ts-chart/sources/Legend.d.ts +1 -0
- package/codebase/types/ts-chart/sources/entry.d.ts +2 -1
- package/codebase/types/ts-chart/sources/series/CalendarHeatMap.d.ts +20 -0
- package/codebase/types/ts-chart/sources/series/index.d.ts +2 -0
- package/codebase/types/ts-chart/sources/shapes/legend.d.ts +1 -0
- package/codebase/types/ts-chart/sources/types.d.ts +42 -10
- package/codebase/types/ts-combobox/sources/Combobox.d.ts +2 -0
- package/codebase/types/ts-combobox/sources/types.d.ts +2 -0
- package/codebase/types/ts-common/dom.d.ts +2 -0
- package/codebase/types/ts-common/html.d.ts +2 -0
- package/codebase/types/ts-common/types.d.ts +1 -0
- package/codebase/types/ts-data/sources/types.d.ts +10 -5
- package/codebase/types/ts-grid/sources/Grid.d.ts +4 -5
- package/codebase/types/ts-grid/sources/ProGrid.d.ts +1 -0
- package/codebase/types/ts-grid/sources/Selection.d.ts +20 -18
- package/codebase/types/ts-grid/sources/types.d.ts +57 -11
- package/codebase/types/ts-grid/sources/ui/Cells.d.ts +10 -10
- package/codebase/types/ts-grid/sources/ui/FixedCols.d.ts +3 -3
- package/codebase/types/ts-grid/sources/ui/FixedRows.d.ts +2 -2
- package/codebase/types/ts-grid/sources/ui/content/ComboFilter.d.ts +21 -0
- package/codebase/types/ts-grid/sources/ui/content/InputFilter.d.ts +22 -0
- package/codebase/types/ts-grid/sources/ui/content/SelectFilter.d.ts +20 -0
- package/codebase/types/ts-grid/sources/ui/editors/DateEditor.d.ts +16 -0
- package/codebase/types/ts-grid/sources/ui/render.d.ts +3 -2
- package/codebase/types/ts-layout/sources/Cell.d.ts +10 -0
- package/codebase/types/ts-layout/sources/Layout.d.ts +3 -0
- package/codebase/types/ts-layout/sources/types.d.ts +5 -0
- package/codebase/types/ts-list/sources/types.d.ts +2 -0
- package/codebase/types/ts-message/sources/message.d.ts +3 -1
- package/codebase/types/ts-popup/sources/Popup.d.ts +1 -0
- package/codebase/types/ts-popup/sources/types.d.ts +2 -0
- package/codebase/types/ts-slider/sources/types.d.ts +2 -0
- package/codebase/types/ts-timepicker/sources/Timepicker.d.ts +3 -1
- package/codebase/types/ts-timepicker/sources/types.d.ts +2 -0
- package/package.json +1 -1
- package/readme.txt +1 -1
- package/whatsnew.txt +50 -40
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Combobox } from "../../../../ts-combobox";
|
|
2
|
+
import { IEventSystem } from "../../../../ts-common/events";
|
|
3
|
+
import { IHeaderFilter, HeaderFilterEvent, ICol, IRendererConfig, IComboFilterConfig } from "../../types";
|
|
4
|
+
export declare class ComboFilter implements IHeaderFilter {
|
|
5
|
+
column: ICol;
|
|
6
|
+
config: IRendererConfig;
|
|
7
|
+
data: any[];
|
|
8
|
+
value: string | string[];
|
|
9
|
+
filterConfig: IComboFilterConfig;
|
|
10
|
+
events: IEventSystem<HeaderFilterEvent>;
|
|
11
|
+
private _filter;
|
|
12
|
+
private _isFocused;
|
|
13
|
+
constructor(column: any, config?: any, data?: any, value?: any, conf?: any);
|
|
14
|
+
protected initFilter(): void;
|
|
15
|
+
protected initHandlers(): void;
|
|
16
|
+
getFilter(): Combobox;
|
|
17
|
+
setValue(value: string | string[]): void;
|
|
18
|
+
clear(): void;
|
|
19
|
+
focus(): void;
|
|
20
|
+
blur(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IEventSystem } from "../../../../ts-common/events";
|
|
2
|
+
import { Id } from "../../../../ts-common/types";
|
|
3
|
+
import { IBaseHandlersMap, IHeaderFilter, HeaderFilterEvent, ICol, IRendererConfig } from "../../types";
|
|
4
|
+
export declare class InputFilter implements IHeaderFilter {
|
|
5
|
+
column: ICol;
|
|
6
|
+
config: IRendererConfig;
|
|
7
|
+
value: string;
|
|
8
|
+
id: Id;
|
|
9
|
+
events: IEventSystem<HeaderFilterEvent>;
|
|
10
|
+
private _filter;
|
|
11
|
+
private _isFocused;
|
|
12
|
+
protected _handlers: IBaseHandlersMap;
|
|
13
|
+
protected _inputDelay: any;
|
|
14
|
+
constructor(column: any, config: any, id: any, value: any);
|
|
15
|
+
protected initHandlers(): void;
|
|
16
|
+
protected initFilter(): void;
|
|
17
|
+
getFilter(): HTMLElement;
|
|
18
|
+
setValue(value: string): void;
|
|
19
|
+
clear(): void;
|
|
20
|
+
focus(): void;
|
|
21
|
+
blur(): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IEventSystem } from "../../../../ts-common/events";
|
|
2
|
+
import { IBaseHandlersMap, IHeaderFilter, HeaderFilterEvent, ICol, IRendererConfig } from "../../types";
|
|
3
|
+
export declare class SelectFilter implements IHeaderFilter {
|
|
4
|
+
column: ICol;
|
|
5
|
+
config: IRendererConfig;
|
|
6
|
+
data: any[];
|
|
7
|
+
value: string;
|
|
8
|
+
events: IEventSystem<HeaderFilterEvent>;
|
|
9
|
+
private _filter;
|
|
10
|
+
private _isFocused;
|
|
11
|
+
protected _handlers: IBaseHandlersMap;
|
|
12
|
+
constructor(column: any, config: any, uniqueData: any, value: any);
|
|
13
|
+
protected initHandlers(): void;
|
|
14
|
+
protected initFilter(): void;
|
|
15
|
+
getFilter(): HTMLElement;
|
|
16
|
+
setValue(value: string): void;
|
|
17
|
+
clear(): void;
|
|
18
|
+
focus(): void;
|
|
19
|
+
blur(): void;
|
|
20
|
+
}
|
|
@@ -15,5 +15,21 @@ export declare class DateEditor implements IEditor {
|
|
|
15
15
|
constructor(row: IRow, col: ICol, config: IRendererConfig);
|
|
16
16
|
endEdit(withoutSave?: boolean, calendarChange?: boolean): void;
|
|
17
17
|
toHTML(): any;
|
|
18
|
+
protected _cleanConfig(col: ICol): {
|
|
19
|
+
date?: string | Date;
|
|
20
|
+
css?: string;
|
|
21
|
+
mark?: (a: Date) => string;
|
|
22
|
+
disabledDates?: (a: Date) => boolean;
|
|
23
|
+
weekStart?: "saturday" | "sunday" | "monday";
|
|
24
|
+
weekNumbers?: boolean;
|
|
25
|
+
mode?: import("../../../../ts-calendar").ViewMode;
|
|
26
|
+
timePicker?: boolean;
|
|
27
|
+
timeFormat?: 12 | 24;
|
|
28
|
+
thisMonthOnly?: boolean;
|
|
29
|
+
width?: import("../../../../ts-common/types").Id;
|
|
30
|
+
$rangeMark?: (a: Date) => string;
|
|
31
|
+
block?: (a: Date) => boolean;
|
|
32
|
+
view?: import("../../../../ts-calendar").ViewMode;
|
|
33
|
+
};
|
|
18
34
|
protected _initHandlers(): void;
|
|
19
35
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { IGrid, IRendererConfig, IRow,
|
|
1
|
+
import { IGrid, IGridConfig, IProGrid, IRendererConfig, IRow, Split, IScrollBarWidth } from "../types";
|
|
2
2
|
export declare const BORDERS = 2;
|
|
3
|
+
export declare function calcScrollBarWidth(config: IGridConfig | IRendererConfig, customScroll?: boolean): IScrollBarWidth;
|
|
3
4
|
export declare function getRenderConfig(obj: any, data: IRow[], wrapperSizes: any): IRendererConfig;
|
|
4
|
-
export declare function getEvents(config: IRendererConfig, mode?:
|
|
5
|
+
export declare function getEvents(config: IRendererConfig, mode?: Split): {};
|
|
5
6
|
export declare function render(vm: any, obj: IGrid, htmlEvents: any, selection: any, uid: string): any;
|
|
6
7
|
export declare function proRender(vm: any, obj: IProGrid, htmlEvents: any, selection: any, uid: string): any;
|
|
@@ -14,6 +14,8 @@ export declare class Cell extends View implements ICell {
|
|
|
14
14
|
protected _parent: ILayout;
|
|
15
15
|
protected _ui: IViewLike;
|
|
16
16
|
protected _resizerHandlers: any;
|
|
17
|
+
protected _progress: boolean;
|
|
18
|
+
protected _stopProgressDefault: boolean;
|
|
17
19
|
private _isLastFlexCell;
|
|
18
20
|
private _afterWindowResized;
|
|
19
21
|
constructor(parent: string | HTMLElement | ILayout, config: ICellConfig);
|
|
@@ -31,7 +33,12 @@ export declare class Cell extends View implements ICell {
|
|
|
31
33
|
getCellView(): any;
|
|
32
34
|
attach(component: any, config?: any): IViewLike;
|
|
33
35
|
attachHTML(html: string): void;
|
|
36
|
+
detach(): void;
|
|
37
|
+
progressShow(): void;
|
|
38
|
+
progressHide(): void;
|
|
39
|
+
isVisibleProgress(): boolean;
|
|
34
40
|
toVDOM(nodes?: any[]): any;
|
|
41
|
+
protected _getProgressBar(): any;
|
|
35
42
|
protected _getCss(_content?: boolean): string;
|
|
36
43
|
protected _initHandlers(): void;
|
|
37
44
|
protected _getCollapsedSize(cell: ICell, nextCell: ICell): number;
|
|
@@ -41,6 +48,9 @@ export declare class Cell extends View implements ICell {
|
|
|
41
48
|
protected _getAnyFlexCell(selfInclude?: boolean): any;
|
|
42
49
|
protected _getResizerView(): any;
|
|
43
50
|
protected _isXDirection(): any;
|
|
51
|
+
protected _checkProgress(): boolean;
|
|
52
|
+
protected _checkAutoProgress(): boolean;
|
|
53
|
+
protected _calculateProgressState(): void;
|
|
44
54
|
protected _calculateStyle(): any;
|
|
45
55
|
private _resizedWindow;
|
|
46
56
|
private _resetCellsSize;
|
|
@@ -5,6 +5,7 @@ export declare class Layout extends Cell implements ILayout {
|
|
|
5
5
|
protected _all: any;
|
|
6
6
|
protected _cells: ICell[];
|
|
7
7
|
protected _root: ILayout;
|
|
8
|
+
protected _progress: boolean;
|
|
8
9
|
private _xLayout;
|
|
9
10
|
private _isViewLayout;
|
|
10
11
|
constructor(parent: any, config: ILayoutConfig);
|
|
@@ -18,6 +19,8 @@ export declare class Layout extends Cell implements ILayout {
|
|
|
18
19
|
forEach(callback: LayoutCallback, parent?: string, level?: number): void;
|
|
19
20
|
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
20
21
|
cell(id: string): any;
|
|
22
|
+
progressShow(): void;
|
|
23
|
+
progressHide(): void;
|
|
21
24
|
protected _getCss(content?: boolean): string;
|
|
22
25
|
private _parseConfig;
|
|
23
26
|
protected _createCell(cell: ILayoutConfig): ICell;
|
|
@@ -31,6 +31,7 @@ export interface ICellConfig {
|
|
|
31
31
|
tab?: string;
|
|
32
32
|
tabCss?: string;
|
|
33
33
|
full?: boolean;
|
|
34
|
+
progressDefault?: boolean;
|
|
34
35
|
init?: (c: ICell, cfg: ICellConfig | IView) => void;
|
|
35
36
|
$fixed?: boolean;
|
|
36
37
|
$autoWidth?: boolean;
|
|
@@ -65,6 +66,10 @@ export interface ICell extends IView {
|
|
|
65
66
|
collapse(): void;
|
|
66
67
|
expand(): void;
|
|
67
68
|
toggle(): void;
|
|
69
|
+
detach(): void;
|
|
70
|
+
progressShow(): void;
|
|
71
|
+
progressHide(): void;
|
|
72
|
+
isVisibleProgress(): boolean;
|
|
68
73
|
}
|
|
69
74
|
export interface IProCell extends ICell {
|
|
70
75
|
scrollView: ScrollView;
|
|
@@ -3,6 +3,7 @@ import { IEventSystem } from "../../ts-common/events";
|
|
|
3
3
|
import { IHandlers, SelectionEvents, ISelectionEventsHandlersMap, Id } from "../../ts-common/types";
|
|
4
4
|
import { IKeyManager } from "../../ts-common/KeyManager";
|
|
5
5
|
import { ScrollView } from "../../ts-common/ScrollView";
|
|
6
|
+
import { VNode } from "../../ts-common/dom";
|
|
6
7
|
export declare type MultiselectionMode = "click" | "ctrlClick";
|
|
7
8
|
export interface IListConfig extends IDragConfig {
|
|
8
9
|
template?: (obj: IDataItem) => string;
|
|
@@ -22,6 +23,7 @@ export interface IListConfig extends IDragConfig {
|
|
|
22
23
|
};
|
|
23
24
|
};
|
|
24
25
|
htmlEnable?: boolean;
|
|
26
|
+
$template?: (obj: IDataItem) => VNode;
|
|
25
27
|
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
26
28
|
editing?: boolean;
|
|
27
29
|
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
@@ -16,6 +16,7 @@ export interface IPopup {
|
|
|
16
16
|
export interface IPopupConfig {
|
|
17
17
|
css?: string;
|
|
18
18
|
events?: IEventSystem<any>;
|
|
19
|
+
theme?: HTMLElement | string;
|
|
19
20
|
}
|
|
20
21
|
export declare enum PopupEvents {
|
|
21
22
|
beforeHide = "beforeHide",
|
|
@@ -29,6 +30,7 @@ export interface IShowConfig {
|
|
|
29
30
|
auto?: boolean;
|
|
30
31
|
mode?: Position;
|
|
31
32
|
indent?: number | string;
|
|
33
|
+
theme?: string | HTMLElement;
|
|
32
34
|
}
|
|
33
35
|
export interface IPopupEventHandlersMap {
|
|
34
36
|
[key: string]: (...args: any[]) => any;
|
|
@@ -13,6 +13,7 @@ export interface ISlider {
|
|
|
13
13
|
blur(): void;
|
|
14
14
|
}
|
|
15
15
|
export declare enum SliderEvents {
|
|
16
|
+
beforeChange = "beforeChange",
|
|
16
17
|
change = "change",
|
|
17
18
|
focus = "focus",
|
|
18
19
|
blur = "blur",
|
|
@@ -22,6 +23,7 @@ export declare enum SliderEvents {
|
|
|
22
23
|
}
|
|
23
24
|
export interface ISliderEventHandlersMap {
|
|
24
25
|
[key: string]: (...args: any[]) => any;
|
|
26
|
+
[SliderEvents.beforeChange]: (value: number, oldValue: number, isRange: boolean) => void;
|
|
25
27
|
[SliderEvents.change]: (value: number, oldValue: number, isRange: boolean) => void;
|
|
26
28
|
[SliderEvents.focus]: () => void;
|
|
27
29
|
[SliderEvents.blur]: () => void;
|
|
@@ -13,14 +13,16 @@ export declare class Timepicker extends View implements ITimepicker {
|
|
|
13
13
|
private _handlers;
|
|
14
14
|
private _outerHandlers;
|
|
15
15
|
constructor(container: HTMLElement | string, config?: ITimepickerConfig);
|
|
16
|
-
getValue<T extends boolean = false>(
|
|
16
|
+
getValue<T extends boolean = false>(asObject?: T): T extends true ? ITimeObject : string;
|
|
17
17
|
setValue(value: Date | number | string | any[] | ITimeObject): void;
|
|
18
18
|
clear(): void;
|
|
19
19
|
destructor(): void;
|
|
20
20
|
getRootView(): any;
|
|
21
|
+
private _getValue;
|
|
21
22
|
private _setValue;
|
|
22
23
|
private _initUI;
|
|
23
24
|
private _initHandlers;
|
|
24
25
|
private _initEvents;
|
|
25
26
|
private _draw;
|
|
27
|
+
private _isTimeObj;
|
|
26
28
|
}
|
|
@@ -25,6 +25,7 @@ export interface ITimeObject {
|
|
|
25
25
|
AM?: boolean;
|
|
26
26
|
}
|
|
27
27
|
export declare enum TimepickerEvents {
|
|
28
|
+
beforeChange = "beforeChange",
|
|
28
29
|
change = "change",
|
|
29
30
|
beforeApply = "beforeApply",
|
|
30
31
|
afterApply = "afterApply",
|
|
@@ -39,6 +40,7 @@ export declare enum TimepickerEvents {
|
|
|
39
40
|
}
|
|
40
41
|
export interface ITimepickerHandlersMap {
|
|
41
42
|
[key: string]: (...args: any[]) => any;
|
|
43
|
+
[TimepickerEvents.beforeChange]: (value: string | ITimeObject) => boolean | void;
|
|
42
44
|
[TimepickerEvents.change]: (value: string | ITimeObject) => void;
|
|
43
45
|
[TimepickerEvents.beforeApply]: (value: string | ITimeObject) => boolean | void;
|
|
44
46
|
[TimepickerEvents.afterApply]: (value: string | ITimeObject) => void;
|
package/package.json
CHANGED
package/readme.txt
CHANGED
package/whatsnew.txt
CHANGED
|
@@ -1,45 +1,55 @@
|
|
|
1
|
-
Version
|
|
2
|
-
----------------------------
|
|
3
|
-
|
|
4
|
-
Version 7.3.13 (December 14, 2022)
|
|
5
|
-
----------------------------
|
|
6
|
-
|
|
7
|
-
Version 7.3.12 (November 17, 2022)
|
|
8
|
-
----------------------------
|
|
9
|
-
|
|
10
|
-
Version 7.3.11 (November 3, 2022)
|
|
11
|
-
----------------------------
|
|
12
|
-
|
|
13
|
-
Version 7.3.10 (October 18, 2022)
|
|
14
|
-
----------------------------
|
|
15
|
-
|
|
16
|
-
Version 7.3.9 (September 26, 2022)
|
|
17
|
-
----------------------------
|
|
18
|
-
|
|
19
|
-
Version 7.3.8 (September 19, 2022)
|
|
20
|
-
----------------------------
|
|
21
|
-
|
|
22
|
-
Version 7.3.7 (September 5, 2022)
|
|
23
|
-
----------------------------
|
|
24
|
-
|
|
25
|
-
Version 7.3.6 (August 8, 2022)
|
|
26
|
-
----------------------------
|
|
27
|
-
|
|
28
|
-
Version 7.3.5 (July 7, 2022)
|
|
29
|
-
----------------------------
|
|
30
|
-
|
|
31
|
-
Version 7.3.4 (June 7, 2022)
|
|
32
|
-
----------------------------
|
|
33
|
-
|
|
34
|
-
Version 7.3.3 (April 25, 2022)
|
|
35
|
-
----------------------------
|
|
36
|
-
|
|
37
|
-
Version 7.3.2 (April 4, 2022)
|
|
38
|
-
----------------------------
|
|
39
|
-
|
|
40
|
-
Version 7.3.1 (March 17, 2022)
|
|
1
|
+
Version 8.0.1 (March 13, 2023)
|
|
41
2
|
----------------------------
|
|
42
3
|
|
|
4
|
+
Version 8.0.0 (February 24, 2023)
|
|
5
|
+
|
|
6
|
+
### New functionality
|
|
7
|
+
|
|
8
|
+
- New Calendar heatmap chart (Pro version)
|
|
9
|
+
- The ability to export the Chart data to PDF and PNG
|
|
10
|
+
|
|
11
|
+
Version 7.3.14 (January 17, 2023)
|
|
12
|
+
----------------------------
|
|
13
|
+
|
|
14
|
+
Version 7.3.13 (December 14, 2022)
|
|
15
|
+
----------------------------
|
|
16
|
+
|
|
17
|
+
Version 7.3.12 (November 17, 2022)
|
|
18
|
+
----------------------------
|
|
19
|
+
|
|
20
|
+
Version 7.3.11 (November 3, 2022)
|
|
21
|
+
----------------------------
|
|
22
|
+
|
|
23
|
+
Version 7.3.10 (October 18, 2022)
|
|
24
|
+
----------------------------
|
|
25
|
+
|
|
26
|
+
Version 7.3.9 (September 26, 2022)
|
|
27
|
+
----------------------------
|
|
28
|
+
|
|
29
|
+
Version 7.3.8 (September 19, 2022)
|
|
30
|
+
----------------------------
|
|
31
|
+
|
|
32
|
+
Version 7.3.7 (September 5, 2022)
|
|
33
|
+
----------------------------
|
|
34
|
+
|
|
35
|
+
Version 7.3.6 (August 8, 2022)
|
|
36
|
+
----------------------------
|
|
37
|
+
|
|
38
|
+
Version 7.3.5 (July 7, 2022)
|
|
39
|
+
----------------------------
|
|
40
|
+
|
|
41
|
+
Version 7.3.4 (June 7, 2022)
|
|
42
|
+
----------------------------
|
|
43
|
+
|
|
44
|
+
Version 7.3.3 (April 25, 2022)
|
|
45
|
+
----------------------------
|
|
46
|
+
|
|
47
|
+
Version 7.3.2 (April 4, 2022)
|
|
48
|
+
----------------------------
|
|
49
|
+
|
|
50
|
+
Version 7.3.1 (March 17, 2022)
|
|
51
|
+
----------------------------
|
|
52
|
+
|
|
43
53
|
Version 7.3.0 (January 19, 2022)
|
|
44
54
|
----------------------------
|
|
45
55
|
|