dhx-chart 8.1.0 → 8.1.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.
@@ -4,7 +4,7 @@ import { Id, ITouchParam } from "../../ts-common/types";
4
4
  import { View } from "../../ts-common/view";
5
5
  import { DataEvents, DragEvents, IDataCollection, IDataEventsHandlersMap, IDataItem, IDragEventsHandlersMap } from "../../ts-data";
6
6
  import { Exporter } from "./Exporter";
7
- import { Dirs, EditorType, GridEvents, IAdjustBy, ICellRect, ICol, IContentList, ICoords, IEventHandlersMap, IGrid, IGridConfig, IRow, IScrollState, ISelection, ISpan, GridSystemEvents, ISystemEventHandlersMap, IColumnsWidth, ISortingState, SortFunction, IHeaderFilter } from "./types";
7
+ import { Dirs, EditorType, GridEvents, IAdjustBy, ICellRect, ICol, IContentList, ICoords, IEventHandlersMap, IGrid, IGridConfig, IRow, IScrollState, ISelection, ISpan, GridSystemEvents, ISystemEventHandlersMap, IColumnsWidth, ISortingState, SortFunction, IHeaderFilter, IAdjustColumns } from "./types";
8
8
  export declare class Grid extends View implements IGrid {
9
9
  version: string;
10
10
  data: IDataCollection;
@@ -64,7 +64,7 @@ export declare class Grid extends View implements IGrid {
64
64
  protected _checkFilters(): void;
65
65
  protected _adjustColumns(): void;
66
66
  protected _prepareData(data: IDataItem[] | IDataCollection): any[] | IDataItem[];
67
- protected _adjustColumnsWidth(rows: IRow[], cols: ICol[], adjust?: IAdjustBy): IColumnsWidth;
67
+ protected _adjustColumnsWidth({ rows, cols, adjust, }: IAdjustColumns): IColumnsWidth;
68
68
  protected _prepareColumnData(data: any, type: "header" | "footer"): IRow[];
69
69
  protected _dragStart(event: any): void;
70
70
  protected _getRowGhost(ids: Id[]): HTMLDivElement;
@@ -1,5 +1,3 @@
1
- import { Id } from "../../../ts-common/types";
2
- import { ICol, IRow, ISpan } from "./../types";
1
+ import { ICol, IRow } from "./../types";
3
2
  export declare function getWidth(columns: ICol[], colspan: number, index: number): number;
4
3
  export declare function getHeight(dataRows: IRow[], rowspan: number, index: number): number;
5
- export declare function getSpan(rowId: Id, colId: Id, conf: any): ISpan;
@@ -1,8 +1,8 @@
1
1
  import { IContainerConfig } from "../../../ts-common/core";
2
- import { ICol, IColumnsWidth, IGridConfig, IRendererConfig, IRow, colType, TOption } from "./../types";
2
+ import { ICol, IColumnsWidth, IGridConfig, IRow, colType, TOption } from "./../types";
3
3
  export declare function normalizeColumns({ columns, htmlEnable }: IGridConfig, configChanged?: boolean): void;
4
4
  export declare function countColumns(config: IGridConfig, columns: ICol[]): number;
5
- export declare function calculatePositions(width: number, height: number, scroll: any, conf: IRendererConfig, data: IRow[]): {
5
+ export declare function calculatePositions(width: number, height: number, scroll: any, conf: IGridConfig, data: IRow[]): {
6
6
  xStart: number;
7
7
  xEnd: number;
8
8
  yStart: number;
@@ -104,6 +104,8 @@ interface IFixedRows {
104
104
  export interface IRendererConfig extends IGridConfig {
105
105
  scroll?: IScrollState;
106
106
  datacollection: any;
107
+ columns?: ICol[];
108
+ filteredColumns?: ICol[];
107
109
  currentColumns?: ICol[];
108
110
  currentRows?: IRow[];
109
111
  fixedColumns?: IFixedColumns;
@@ -515,6 +517,12 @@ export declare type IDirection = "horizontal" | "vertical";
515
517
  export declare type IDragType = "row" | "column" | "both";
516
518
  export declare type AdjustTargetType = "data" | "header" | "footer";
517
519
  export declare type IAdjustBy = AdjustTargetType | boolean;
520
+ export interface IAdjustColumns {
521
+ rows: IRow[];
522
+ cols: ICol[];
523
+ totalCols?: ICol[];
524
+ adjust?: IAdjustBy;
525
+ }
518
526
  export interface ISelectionConfig {
519
527
  disabled?: boolean;
520
528
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dhx-chart",
3
- "version": "8.1.0",
3
+ "version": "8.1.1",
4
4
  "description": "dhtmlxChart widget",
5
5
  "homepage":"https://docs.dhtmlx.com/chart",
6
6
  "license":"GPL",
package/readme.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
3
 
4
- dhtmlxChart v.8.1.0 Standard
4
+ dhtmlxChart v.8.1.1 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,6 @@
1
+ Version 8.1.1 (May 18, 2023)
2
+ ----------------------------
3
+
1
4
  # Version 8.1 (April 18, 2023)
2
5
 
3
6
  ### New functionality