dhx-suite 7.3.3 → 7.3.6

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.
@@ -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?: "monday" | "sunday";
7
+ weekStart?: "saturday" | "sunday" | "monday";
8
8
  weekNumbers?: boolean;
9
9
  mode?: ViewMode;
10
10
  timePicker?: boolean;
@@ -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;
@@ -25,6 +25,7 @@ export declare class DateHelper {
25
25
  static mergeHoursAndMinutes(source: Date, target: Date): Date;
26
26
  static isWeekEnd(d: Date): boolean;
27
27
  static getTwelweYears(d: Date): number[];
28
+ static getDayOrdinal(d: Date): number;
28
29
  static getWeekNumber(d: Date): number;
29
30
  static isSameDay(d1: Date, d2: Date): boolean;
30
31
  static toDateObject(date: Date | string, dateFormat: string): Date;
@@ -16,7 +16,9 @@ export interface IDataViewConfig extends IListConfig {
16
16
  multiselection?: boolean | MultiselectionMode;
17
17
  editable?: boolean;
18
18
  eventHandlers?: {
19
- [key: string]: any;
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;
@@ -34,4 +34,5 @@ export declare class Combo extends Label implements ICombo {
34
34
  protected _getRootView(): any;
35
35
  protected _draw(): any;
36
36
  private _exsistData;
37
+ private _getItemText;
37
38
  }
@@ -1,3 +1,5 @@
1
- import { ICol, IRow } from "./../types";
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
- [key: string]: any;
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 {};
@@ -3,14 +3,14 @@ declare type mouseEvents = GridEvents.cellClick | GridEvents.cellMouseOver | Gri
3
3
  declare type touchEvents = GridSystemEvents.cellTouchEnd | GridSystemEvents.cellTouchMove;
4
4
  declare function handleMouse(rowStart: number, colStart: number, conf: IRendererConfig, type: mouseEvents & touchEvents, e: any): void;
5
5
  export declare function getHandlers(row: number, column: number, conf: IRendererConfig): {
6
- onclick: (number | IRendererConfig | GridEvents | typeof handleMouse)[];
7
- onmouseover: (number | IRendererConfig | GridEvents | typeof handleMouse)[];
8
- onmousedown: (number | IRendererConfig | GridEvents | typeof handleMouse)[];
9
- ondblclick: (number | IRendererConfig | GridEvents | typeof handleMouse)[];
10
- oncontextmenu: (number | IRendererConfig | GridEvents | typeof handleMouse)[];
11
- ontouchstart: (number | IRendererConfig | GridEvents | typeof handleMouse)[];
12
- ontouchmove: (number | IRendererConfig | GridSystemEvents | typeof handleMouse)[];
13
- ontouchend: (number | IRendererConfig | GridSystemEvents | typeof handleMouse)[];
6
+ onclick: (number | GridEvents | IRendererConfig | typeof handleMouse)[];
7
+ onmouseover: (number | GridEvents | IRendererConfig | typeof handleMouse)[];
8
+ onmousedown: (number | GridEvents | IRendererConfig | typeof handleMouse)[];
9
+ ondblclick: (number | GridEvents | IRendererConfig | typeof handleMouse)[];
10
+ oncontextmenu: (number | GridEvents | IRendererConfig | typeof handleMouse)[];
11
+ ontouchstart: (number | GridEvents | IRendererConfig | typeof handleMouse)[];
12
+ ontouchmove: (number | GridSystemEvents | IRendererConfig | typeof handleMouse)[];
13
+ ontouchend: (number | GridSystemEvents | IRendererConfig | typeof handleMouse)[];
14
14
  };
15
15
  export declare function getTreeCell(content: any, row: any, col: ICol, conf: IRendererConfig): any;
16
16
  export declare function getCells(conf: IRendererConfig): 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
+ private _isLastFlexCell;
18
+ private _afterWindowResized;
17
19
  constructor(parent: string | HTMLElement | ILayout, config: ICellConfig);
18
20
  paint(): void;
19
21
  isVisible(): boolean;
@@ -36,8 +38,9 @@ export declare class Cell extends View implements ICell {
36
38
  protected _getCollapseIcon(): "dxi dxi-chevron-right" | "dxi dxi-chevron-left" | "dxi dxi-chevron-up" | "dxi dxi-chevron-down";
37
39
  protected _isLastCell(): boolean;
38
40
  protected _getNextCell(): any;
39
- protected _getAnyFlexCell(): any;
41
+ protected _getAnyFlexCell(selfInclude?: boolean): any;
40
42
  protected _getResizerView(): any;
41
43
  protected _isXDirection(): any;
42
44
  protected _calculateStyle(): any;
45
+ private _resizedWindow;
43
46
  }
@@ -17,7 +17,9 @@ export interface IListConfig extends IDragConfig {
17
17
  editable?: boolean;
18
18
  hotkeys?: IHandlers;
19
19
  eventHandlers?: {
20
- [key: string]: any;
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]: (events: Event, item: ITree) => void;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dhx-suite",
3
- "version": "7.3.3",
3
+ "version": "7.3.6",
4
4
  "description": "dhtmlxSuite widget",
5
5
  "homepage":"https://docs.dhtmlx.com",
6
6
  "license":"GPL",
package/readme.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
3
 
4
- dhtmlxSuite v.7.3.3 Standard
4
+ dhtmlxSuite v.7.3.6 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,58 @@
1
+ # Version 7.3.6 (August 8, 2022)
2
+
3
+ ### Fixes
4
+
5
+ - Calendar. Now it is possible to set "saturday" as the starting day of the week
6
+ - Data. Fix the issue which caused extra requests to be sent to the server when making several changes to one item
7
+ - 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
8
+ - DataView, List, Tree. Now you can block bubbling of the events specified via the "eventHandlers" property by using "stopPropagation()"
9
+ - Form inside Popup. Fix the issue which caused the Popup to close after clicking on a popup of a Form control
10
+ - Grid. Fix the issue which caused the eventHandlers template to return an empty row object when the row ID was an integer
11
+ - Grid. Fix the issue with calculation of the correct number of columns which should be rendered on the screen (in some cases)
12
+ - 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)
13
+ - Grid. Fixed location of zones for a resize handle. Now it is possible to resize each column under the spanned header
14
+ - 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
15
+ - Popup. Fix the issue with display of tooltips for items of a component (for example, Toolbar) which is attached to a popup
16
+ - 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
17
+
18
+ # Version 7.3.5 (July 7, 2022)
19
+
20
+ ### Fixes
21
+
22
+ - Form. Fix the issue with internal paddings of Form elements when using the "setProperties()" method
23
+ - Form. Now it is possible to set a new value for the disabled Combobox control via API
24
+ - Grid. Fix the incorrect work of formatting of numbers in some cases
25
+ - Grid. Fix the incorrect display of dates when the date format includes milliseconds
26
+ - Grid. Fix the incorrect work of editing of spanned cells
27
+ - Grid. Fix the issue which caused "fixed" columns to hide horizontal scrollbar
28
+ - Grid. Fix the issue which caused sorting icons not to show the correct direction of the future sorting order
29
+ - Grid. Fix the issue which caused the hidden rows to become visible after filtering of data was reset
30
+ - Grid. Fix the issue which prevented spans from being stylized via the "addCellCss()" method
31
+ - Grid. Now it is possible to reset filtering in the read-only mode of comboFilter by choosing an empty option in the dropdown list
32
+ - 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"
33
+ - TreeGrid. Fix the incorrect work of the "getLength()" method which returned null instead of "0" for empty TreeGrid in some cases
34
+ - TreeGrid. Fix the issue which caused the height of the treegrid not to be recalculated after changing the data set
35
+ - Window. Fix the incorrect display of modal window (it was displayed behind the non-modal one)
36
+ - Window. Fix the issue with positioning of the window if the values of the width and height were incorrect
37
+
38
+ # Version 7.3.4 (June 7, 2022)
39
+
40
+ ### Fixes
41
+
42
+ - Calendar. Fix the issue with a miscalculation of number of the last week of year
43
+ - Combobox. Fix the issue with setting values if the widget is disabled
44
+ - Form. Fix the issue with validation of the combo component. The ID is validated instead of value
45
+ - Form. Fix the issue with sending the html form (if *dhx.Form* is included into the *form* tag) when pressing the "enter" key, if any input field is in focus
46
+ - Form. Fix the issue with activating/displaying the initially hidden control (`hidden: true`) of the "container" form using the `show()` method
47
+ - Form. Fix the issue with including a toolbar into the "container" form (errors in console)
48
+ - Grid. Fix the issue with selection when adding spans into the grid component
49
+ - Grid. Fix the issue with reselection a cell after calling the `grid.selection.removeCell()` metod
50
+ - Layout. Fix the issue with the initially collapsed cell which includes the `min-width` and `min-height` settings. Instead of being collapsed, the cell takes the specified min sizes
51
+ - Layout. Fix the issue with dynamic resizing a cell when resizing a viewport (in some cases)
52
+ - Layout. Fix the issue with resizing cells which contain the iframe element
53
+ - Tree. Fix the issue with dynamic loading of the child elements, if the url for autoloading includes "?"
54
+ - Custom scroll. Fix the issue with custom scrolling on MacOS
55
+
1
56
  # Version 7.3.3 (April 25, 2022)
2
57
 
3
58
  ### Fixes