dhx-suite 7.3.4 → 7.3.7
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/suite.min.css +1 -1
- package/codebase/suite.min.js +3 -3
- package/codebase/types/ts-calendar/sources/types.d.ts +1 -1
- package/codebase/types/ts-common/KeyManager.d.ts +2 -0
- package/codebase/types/ts-common/date.d.ts +1 -1
- package/codebase/types/ts-data/sources/treecollection.d.ts +1 -0
- package/codebase/types/ts-dataview/sources/types.d.ts +3 -1
- package/codebase/types/ts-grid/sources/Grid.d.ts +1 -0
- package/codebase/types/ts-grid/sources/helpers/cells.d.ts +3 -1
- package/codebase/types/ts-grid/sources/types.d.ts +9 -1
- package/codebase/types/ts-list/sources/types.d.ts +3 -1
- package/codebase/types/ts-tree/sources/Tree.d.ts +2 -0
- package/codebase/types/ts-tree/sources/types.d.ts +10 -1
- package/package.json +1 -1
- package/readme.txt +1 -1
- package/whatsnew.txt +53 -0
|
@@ -4,7 +4,7 @@ export interface ICalendarConfig {
|
|
|
4
4
|
css?: string;
|
|
5
5
|
mark?: (a: Date) => string;
|
|
6
6
|
disabledDates?: (a: Date) => boolean;
|
|
7
|
-
weekStart?: "
|
|
7
|
+
weekStart?: "saturday" | "sunday" | "monday";
|
|
8
8
|
weekNumbers?: boolean;
|
|
9
9
|
mode?: ViewMode;
|
|
10
10
|
timePicker?: boolean;
|
|
@@ -4,6 +4,7 @@ export interface IKeyManager {
|
|
|
4
4
|
addHotKey(key: string, handler: any): void;
|
|
5
5
|
removeHotKey(key?: string, context?: any): void;
|
|
6
6
|
exist(key: string): boolean;
|
|
7
|
+
getKeyStorageLength(): number;
|
|
7
8
|
}
|
|
8
9
|
export declare class KeyManager implements IKeyManager {
|
|
9
10
|
private _keysStorage;
|
|
@@ -14,4 +15,5 @@ export declare class KeyManager implements IKeyManager {
|
|
|
14
15
|
addHotKey(key: string, handler: any): void;
|
|
15
16
|
removeHotKey(key?: string, handler?: anyFunction): void;
|
|
16
17
|
exist(key: string): boolean;
|
|
18
|
+
getKeyStorageLength(): number;
|
|
17
19
|
}
|
|
@@ -12,7 +12,7 @@ export declare class DateHelper {
|
|
|
12
12
|
static copy(d: Date): Date;
|
|
13
13
|
static fromYear(year: number): Date;
|
|
14
14
|
static fromYearAndMonth(year: number, month: number): Date;
|
|
15
|
-
static weekStart(d: Date, firstWeekday: 1 | 0): Date;
|
|
15
|
+
static weekStart(d: Date, firstWeekday: -1 | 0 | 1): Date;
|
|
16
16
|
static monthStart(d: Date): Date;
|
|
17
17
|
static yearStart(d: Date): Date;
|
|
18
18
|
static dayStart(d: Date): Date;
|
|
@@ -48,6 +48,7 @@ export declare class TreeCollection<T extends IDataItem = IDataItem> extends Dat
|
|
|
48
48
|
protected _removeCore(id: any): void;
|
|
49
49
|
protected _addToOrder(_order: any, obj: any, index: number): void;
|
|
50
50
|
protected _parse_data(data: any, parent?: string | number): void;
|
|
51
|
+
protected _applySmart(): void;
|
|
51
52
|
private _fastDeleteChilds;
|
|
52
53
|
private _recursiveFilter;
|
|
53
54
|
private _serialize;
|
|
@@ -16,7 +16,9 @@ export interface IDataViewConfig extends IListConfig {
|
|
|
16
16
|
multiselection?: boolean | MultiselectionMode;
|
|
17
17
|
editable?: boolean;
|
|
18
18
|
eventHandlers?: {
|
|
19
|
-
[
|
|
19
|
+
[eventName: string]: {
|
|
20
|
+
[className: string]: (event: Event, id: Id) => void;
|
|
21
|
+
};
|
|
20
22
|
};
|
|
21
23
|
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
22
24
|
editing?: boolean;
|
|
@@ -51,6 +51,7 @@ export declare class Grid extends View implements IGrid {
|
|
|
51
51
|
getHeaderFilter(colId: Id): HTMLElement | Combobox;
|
|
52
52
|
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
53
53
|
edit(rowId: Id, colId: Id, editorType?: EditorType): void;
|
|
54
|
+
paint(): void;
|
|
54
55
|
protected _createView(): any;
|
|
55
56
|
protected _parseColumns(configChanged?: boolean): void;
|
|
56
57
|
protected _parseData(): void;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Id } from "../../../ts-common/types";
|
|
2
|
+
import { ICol, IRow, ISpan } from "./../types";
|
|
2
3
|
export declare function getWidth(columns: ICol[], colspan: number, index: number): number;
|
|
3
4
|
export declare function getHeight(dataRows: IRow[], rowspan: number, index: number): number;
|
|
5
|
+
export declare function getSpan(rowId: Id, colId: Id, conf: any): ISpan;
|
|
@@ -35,7 +35,9 @@ export interface IGridConfig extends IDragConfig {
|
|
|
35
35
|
autoWidth?: boolean;
|
|
36
36
|
autoHeight?: boolean;
|
|
37
37
|
eventHandlers?: {
|
|
38
|
-
[
|
|
38
|
+
[eventName: string]: {
|
|
39
|
+
[className: string]: (event: Event, item: ICellObj) => void;
|
|
40
|
+
};
|
|
39
41
|
};
|
|
40
42
|
rootParent?: Id;
|
|
41
43
|
$headerLevel?: number;
|
|
@@ -64,6 +66,10 @@ export interface IGridConfig extends IDragConfig {
|
|
|
64
66
|
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
65
67
|
splitAt?: number;
|
|
66
68
|
}
|
|
69
|
+
interface ICellObj {
|
|
70
|
+
col: ICol;
|
|
71
|
+
row: IRow;
|
|
72
|
+
}
|
|
67
73
|
export interface IColumnsWidth {
|
|
68
74
|
[col: string]: number;
|
|
69
75
|
}
|
|
@@ -88,6 +94,7 @@ export interface IRendererConfig extends IGridConfig {
|
|
|
88
94
|
htmlEnable?: boolean;
|
|
89
95
|
content?: IContentList;
|
|
90
96
|
gridId?: string;
|
|
97
|
+
$renderFrom?: "fixedCols" | "fixedRows" | "render" | "both";
|
|
91
98
|
_events?: IEventSystem<GridSystemEvents>;
|
|
92
99
|
}
|
|
93
100
|
export interface ISortingState {
|
|
@@ -472,4 +479,5 @@ export interface IGridSelectionEventsHandlersMap {
|
|
|
472
479
|
[GridSelectionEvents.beforeSelect]: (row: IRow, col: ICol) => boolean | void;
|
|
473
480
|
[GridSelectionEvents.beforeUnSelect]: (row: IRow, col: ICol) => boolean | void;
|
|
474
481
|
}
|
|
482
|
+
export declare type TRowStatus = "firstFilledRow" | "firstEmptyRow";
|
|
475
483
|
export {};
|
|
@@ -17,7 +17,9 @@ export interface IListConfig extends IDragConfig {
|
|
|
17
17
|
editable?: boolean;
|
|
18
18
|
hotkeys?: IHandlers;
|
|
19
19
|
eventHandlers?: {
|
|
20
|
-
[
|
|
20
|
+
[eventName: string]: {
|
|
21
|
+
[className: string]: (event: Event, id: Id) => void | boolean;
|
|
22
|
+
};
|
|
21
23
|
};
|
|
22
24
|
htmlEnable?: boolean;
|
|
23
25
|
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
@@ -17,6 +17,7 @@ export declare class Tree<T extends object = object> extends View implements ITr
|
|
|
17
17
|
private _right;
|
|
18
18
|
private _keyManager;
|
|
19
19
|
private _touch;
|
|
20
|
+
private _scroll;
|
|
20
21
|
private _isDraget;
|
|
21
22
|
constructor(container: HTMLElement | string, config?: ITreeConfig);
|
|
22
23
|
focusItem(id: Id): void;
|
|
@@ -44,6 +45,7 @@ export declare class Tree<T extends object = object> extends View implements ITr
|
|
|
44
45
|
unCheckItem(id: Id): void;
|
|
45
46
|
private _draw;
|
|
46
47
|
private _initEvents;
|
|
48
|
+
private _autoScroll;
|
|
47
49
|
private _initHandlers;
|
|
48
50
|
private _dblClick;
|
|
49
51
|
private _clearTouchTimer;
|
|
@@ -43,7 +43,7 @@ export interface ITreeConfig extends IDragConfig {
|
|
|
43
43
|
template?: (item: ITreeItem, isFolder: boolean) => string;
|
|
44
44
|
eventHandlers?: {
|
|
45
45
|
[eventName: string]: {
|
|
46
|
-
[className: string]: (
|
|
46
|
+
[className: string]: (event: Event, item: ITree) => void | boolean;
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
$editable?: boolean;
|
|
@@ -116,3 +116,12 @@ export interface ITreeEventHandlersMap extends IDragEventsHandlersMap {
|
|
|
116
116
|
[TreeEvents.afterCheck]: (index: number, id: Id, value: boolean) => void;
|
|
117
117
|
[TreeEvents.itemContextMenu]: (id: Id, e: Event) => any;
|
|
118
118
|
}
|
|
119
|
+
export declare enum Direction {
|
|
120
|
+
up = "up",
|
|
121
|
+
down = "down"
|
|
122
|
+
}
|
|
123
|
+
export interface IScrollConfig {
|
|
124
|
+
elem: Element | HTMLElement | null;
|
|
125
|
+
step: number;
|
|
126
|
+
delay: number;
|
|
127
|
+
}
|
package/package.json
CHANGED
package/readme.txt
CHANGED
package/whatsnew.txt
CHANGED
|
@@ -1,3 +1,56 @@
|
|
|
1
|
+
# Version 7.3.7 (September 5, 2022)
|
|
2
|
+
|
|
3
|
+
### Fixes
|
|
4
|
+
|
|
5
|
+
- Grid. Fix the issue with disappearing of the comboFilter of a visible column after you hide any other column
|
|
6
|
+
- Grid. Fix the issue with display of the comboFilter for frozen columns when scrolling Grid horizontally
|
|
7
|
+
- Grid. Fix the issue with display of tooltips for columns with checkboxes
|
|
8
|
+
- Grid. Fix the issue with the "canRowDrop" event
|
|
9
|
+
- Grid. Fix the issue with work of key navigation for Grid initialized in a collapsed Layout cell
|
|
10
|
+
- Ribbon. Fix the issue with the "label" property of the Input control
|
|
11
|
+
- Suite. Fix the issue with work of the "promiz" webpack together with ES6 modules
|
|
12
|
+
- Tabbar. Fix the issue with work of Tabbar in IE11
|
|
13
|
+
- Toolbar. Fix the issue with the "label" property of the Datepicker control
|
|
14
|
+
- Toolbar. Fix the issue with the "label" property of the Input control
|
|
15
|
+
- TreeCollection. Fix work of the "add" and "smartFilter" properties of the "config" parameter of the "filter()" method
|
|
16
|
+
|
|
17
|
+
# Version 7.3.6 (August 8, 2022)
|
|
18
|
+
|
|
19
|
+
### Fixes
|
|
20
|
+
|
|
21
|
+
- Calendar. Now it is possible to set "saturday" as the starting day of the week
|
|
22
|
+
- Data. Fix the issue which caused extra requests to be sent to the server when making several changes to one item
|
|
23
|
+
- Data. Now it is possible to sort data by the value without use of the as attribute of the rule object if some of the values are null | undefined
|
|
24
|
+
- DataView, List, Tree. Now you can block bubbling of the events specified via the "eventHandlers" property by using "stopPropagation()"
|
|
25
|
+
- Form inside Popup. Fix the issue which caused the Popup to close after clicking on a popup of a Form control
|
|
26
|
+
- Grid. Fix the issue which caused the eventHandlers template to return an empty row object when the row ID was an integer
|
|
27
|
+
- Grid. Fix the issue with calculation of the correct number of columns which should be rendered on the screen (in some cases)
|
|
28
|
+
- Grid. Fix the issue with exporting Grid with the footer to Excel (the value for the footer in the exported file was different from the value in Grid)
|
|
29
|
+
- Grid. Fixed location of zones for a resize handle. Now it is possible to resize each column under the spanned header
|
|
30
|
+
- LazyDataProxy. Fix the issue with dynamic data loading which caused a part of the data to be loaded one more time. Now LazyDataProxy will load only the data which hasn't been loaded into the component before
|
|
31
|
+
- Popup. Fix the issue with display of tooltips for items of a component (for example, Toolbar) which is attached to a popup
|
|
32
|
+
- Tree with scrollbar. Now the content of the Tree will be auto scrolled if you drag an item of a Tree above or below its body
|
|
33
|
+
|
|
34
|
+
# Version 7.3.5 (July 7, 2022)
|
|
35
|
+
|
|
36
|
+
### Fixes
|
|
37
|
+
|
|
38
|
+
- Form. Fix the issue with internal paddings of Form elements when using the "setProperties()" method
|
|
39
|
+
- Form. Now it is possible to set a new value for the disabled Combobox control via API
|
|
40
|
+
- Grid. Fix the incorrect work of formatting of numbers in some cases
|
|
41
|
+
- Grid. Fix the incorrect display of dates when the date format includes milliseconds
|
|
42
|
+
- Grid. Fix the incorrect work of editing of spanned cells
|
|
43
|
+
- Grid. Fix the issue which caused "fixed" columns to hide horizontal scrollbar
|
|
44
|
+
- Grid. Fix the issue which caused sorting icons not to show the correct direction of the future sorting order
|
|
45
|
+
- Grid. Fix the issue which caused the hidden rows to become visible after filtering of data was reset
|
|
46
|
+
- Grid. Fix the issue which prevented spans from being stylized via the "addCellCss()" method
|
|
47
|
+
- Grid. Now it is possible to reset filtering in the read-only mode of comboFilter by choosing an empty option in the dropdown list
|
|
48
|
+
- List. Fix the issue which caused focus to set on an item when clicking on it even so selection functionality was disabled via "selection:false"
|
|
49
|
+
- TreeGrid. Fix the incorrect work of the "getLength()" method which returned null instead of "0" for empty TreeGrid in some cases
|
|
50
|
+
- TreeGrid. Fix the issue which caused the height of the treegrid not to be recalculated after changing the data set
|
|
51
|
+
- Window. Fix the incorrect display of modal window (it was displayed behind the non-modal one)
|
|
52
|
+
- Window. Fix the issue with positioning of the window if the values of the width and height were incorrect
|
|
53
|
+
|
|
1
54
|
# Version 7.3.4 (June 7, 2022)
|
|
2
55
|
|
|
3
56
|
### Fixes
|