dhx-suite 9.1.1 → 9.1.3

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.
@@ -16,7 +16,7 @@ export default class Bar extends ScaleSeria {
16
16
  class: string;
17
17
  transform: string;
18
18
  };
19
- protected _getForm(points: PointData[], css: string, _width: number, height: number, prev: PointData[]): object;
19
+ protected _getForm(points: PointData[], _width: number, height: number, prev: PointData[]): object;
20
20
  protected _getText(item: any): any;
21
21
  protected _setDefaults(config: ISeriaConfig): void;
22
22
  }
@@ -2,6 +2,6 @@ import { ISeriaConfig, PointData, SvgElement } from "../types";
2
2
  import ScaleSeria from "./ScaleSeria";
3
3
  export default class Line extends ScaleSeria {
4
4
  paint(width: number, height: number): SvgElement;
5
- protected _getForm(points: PointData[], config: any, css: string, width: number, height: number): object;
5
+ protected _getForm(points: PointData[], config: any, width: number, height: number): object;
6
6
  protected _setDefaults(config: ISeriaConfig): void;
7
7
  }
@@ -11,4 +11,5 @@ export default class ScaleSeria extends BaseSeria {
11
11
  dataReady(prev?: PointData[]): PointData[];
12
12
  protected _calckFinalPoints(width: number, height: number): void;
13
13
  protected _defaultLocator(v: any): any[];
14
+ protected _getCss(): string;
14
15
  }
@@ -1,5 +1,5 @@
1
1
  import { PointData } from "../types";
2
2
  import Line from "./Line";
3
3
  export default class Spline extends Line {
4
- protected _getForm(points: PointData[], config: any, css: string, width: number, height: number): object;
4
+ protected _getForm(points: PointData[], config: any, width: number, height: number): object;
5
5
  }
@@ -21,3 +21,4 @@ export declare function resizer(handler: any): any;
21
21
  export declare function resizeHandler(container: any, handler: any): any;
22
22
  export declare function awaitRedraw(): Promise<void>;
23
23
  export declare function setTheme(theme: TTheme, container: string | HTMLElement): void;
24
+ export declare function getViewHeight(view: VNode, width: number): number;
@@ -67,4 +67,8 @@ export declare function getLabelStyle(config: any): false | {
67
67
  export declare function getPageInlineCss(): string;
68
68
  export declare function getPageLinksCss(exportStyles?: string[]): string;
69
69
  export declare function getElementFromPoint(e: MouseEvent | TouchEvent): Element | null;
70
+ export declare function getNodeOffset(node1: HTMLElement, node2: HTMLElement): {
71
+ left: number;
72
+ top: number;
73
+ };
70
74
  export {};
@@ -1,4 +1,4 @@
1
- import { IAnyObj } from "../../ts-common/types";
1
+ import { IAnyObj, Id } from "../../ts-common/types";
2
2
  import { DataProxy } from "./dataproxy";
3
3
  import { IFilterCallback, IFilterMode, IDataCollection, IDataItem, ITreeCollection, DataDriver, IDataDriver, IFilter } from "./types";
4
4
  export declare function isEqualObj(a: any, b: any): boolean;
@@ -13,3 +13,5 @@ export declare function copyWithoutInner(obj: IAnyObj, forbidden?: IAnyObj): IAn
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
15
  export declare function isOnlyPermanentFilters(filters: IFilter): boolean;
16
+ export declare function throwMoveWarning(id: Id, exists?: boolean): null;
17
+ export declare function splitCsv(csv: string, delimiter: string): string[];
@@ -2,12 +2,15 @@ import { IEventSystem } from "../../ts-common/events";
2
2
  import { DataCollection } from "./datacollection";
3
3
  import { DataCallback, DataEvents, IDataCollection, IDataItem, ITreeCollection, IFilterCallback, IFilterMode, IFilterComplexMode, ITreeFilterConfig, DataDriver, ISortMode, IDataDriver, IUpdateObject, ISortConfig } from "./types";
4
4
  import { Id } from "../../ts-common/types";
5
+ export declare function addToOrder(store: any, obj: object, parent: Id, index: number): void;
5
6
  export declare class TreeCollection<T extends IDataItem = IDataItem> extends DataCollection<T> implements ITreeCollection<T> {
6
7
  protected _childs: {
7
8
  [id: string]: T[];
8
9
  };
9
10
  protected _root: Id;
10
- private _initChilds;
11
+ protected _initChilds: {
12
+ [id: string]: T[];
13
+ };
11
14
  constructor(config?: any, events?: IEventSystem<DataEvents>);
12
15
  add(newItem: IDataItem, index?: number, parent?: Id): Id;
13
16
  add(newItem: IDataItem[], index?: number, parent?: Id): Id[];
@@ -42,6 +45,7 @@ export declare class TreeCollection<T extends IDataItem = IDataItem> extends Dat
42
45
  protected _setParent(item: IDataItem, parent: Id): void;
43
46
  protected _copy(id: Id, index: number, target?: IDataCollection | ITreeCollection, targetId?: Id, key?: number): Id;
44
47
  protected _move(id: Id, index: number, target?: ITreeCollection | IDataCollection, targetId?: Id, key?: number): Id;
48
+ protected _moveItem(id: any, targetId: any, index: any): void;
45
49
  protected _reset(config: {
46
50
  id?: Id;
47
51
  grouping: any;
@@ -1,3 +1,4 @@
1
+ import { IBaseLayoutItem, TItemType } from "./types";
1
2
  import { Validation, ValidationInputFn, IInputConfig } from "./elements/input";
2
3
  export declare function getFormItemCss(item: any, validate?: boolean, focus?: boolean): string;
3
4
  export declare function getValidationMessage(item: any): any;
@@ -10,3 +11,4 @@ export declare function isVerify(config: any): boolean;
10
11
  export declare const baseProps: string[];
11
12
  export declare const widgetConfig: ({ width, type, id, name, hidden, editable, css, required, helpMessage, preMessage, successMessage, errorMessage, label, labelWidth, labelPosition, hiddenLabel, validation, icon, ...res }: any) => any;
12
13
  export declare function setAttacments(attachments: any, layout: any): void;
14
+ export declare function getCellWidth<T extends IBaseLayoutItem["width"]>(element: TItemType, width: T): T | undefined;
@@ -0,0 +1,3 @@
1
+ import { Id } from "../../../ts-common/types";
2
+ export declare function getRowNode(id: Id, root: HTMLElement, split?: "left" | "right"): HTMLElement;
3
+ export declare function getVisibleRowNode(row: HTMLElement, width: number, offset: number): HTMLElement;
@@ -17,4 +17,5 @@ export declare class TreeGridCollection extends TreeCollection {
17
17
  protected _removeCore(id: Id): void;
18
18
  protected _setParent(item: IDataItem, parent: Id): void;
19
19
  private _checkItems;
20
+ protected _moveItem(id: any, targetId: any, index: any): void;
20
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dhx-suite",
3
- "version": "9.1.1",
3
+ "version": "9.1.3",
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.9.1.1 Standard
4
+ dhtmlxSuite v.9.1.3 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,26 @@
1
+ # Version 9.1.3 (April 3, 2025)
2
+
3
+ ### Fixes
4
+
5
+ - DataCollection. The issue with XMLDriver failing with string parameters
6
+ - Form. Updating the input properties will set the default input width, if a different width value hasn't been specified
7
+ - Grid. Incorrect export of values containing CRLF, double quotes and commas to CSV
8
+ - Grid. Resizing of columns with the enabled `rightSplit` option hides the resized column
9
+ - Grid. A script error that occurs on hovering over a group element after going outside the component while dragging a group
10
+ - Grid. The column summary isn't calculated if the grid has been initialized in the collapsed mode
11
+
12
+ # Version 9.1.2 (March 17, 2025)
13
+
14
+ ### Fixes
15
+
16
+ - Chart. The default CSS classes aren't applied to the series of the `splineArea` chart type
17
+ - Combobox. Incorrect calculation of the popup position on filtering options
18
+ - Grid. Impossibility to set the left border for the first cells
19
+ - Grid. Incorrect displaying of a row dragged by the frozen part
20
+ - Grid. The script error that occurred while hovering over a span in the "tree" mode
21
+ - TreeCollection. The `move` method doesn't move child elements of an item between collections
22
+ - TreeCollection. After moving elements in `_order` there are duplicates of moved elements
23
+
1
24
  # Version 9.1.1. (February 24, 2025)
2
25
 
3
26
  ### Fixes