@dhtmlx/chart 9.3.11 → 9.4.0

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.
Files changed (53) hide show
  1. package/README.md +1 -1
  2. package/codebase/chart.min.css +1 -1
  3. package/codebase/chart.min.js +3 -3
  4. package/codebase/chart.min.js.map +1 -1
  5. package/codebase/types/ts-calendar/sources/Calendar.d.ts +6 -0
  6. package/codebase/types/ts-calendar/sources/helper.d.ts +1 -0
  7. package/codebase/types/ts-calendar/sources/types.d.ts +3 -0
  8. package/codebase/types/ts-chart/sources/AxisCreator.d.ts +10 -0
  9. package/codebase/types/ts-chart/sources/Chart.d.ts +26 -1
  10. package/codebase/types/ts-chart/sources/helpers/common.d.ts +12 -1
  11. package/codebase/types/ts-chart/sources/helpers/constants.d.ts +2 -0
  12. package/codebase/types/ts-chart/sources/scales/Scale.d.ts +3 -0
  13. package/codebase/types/ts-chart/sources/scales/SvgScales.d.ts +1 -1
  14. package/codebase/types/ts-chart/sources/series/Bar.d.ts +11 -1
  15. package/codebase/types/ts-chart/sources/series/BarX.d.ts +4 -1
  16. package/codebase/types/ts-chart/sources/series/BaseSeria.d.ts +1 -0
  17. package/codebase/types/ts-chart/sources/series/NoScaleSeria.d.ts +1 -1
  18. package/codebase/types/ts-chart/sources/series/ScaleSeria.d.ts +0 -1
  19. package/codebase/types/ts-chart/sources/series/Stacker.d.ts +9 -0
  20. package/codebase/types/ts-chart/sources/types.d.ts +16 -3
  21. package/codebase/types/ts-common/date.d.ts +2 -0
  22. package/codebase/types/ts-data/sources/datacollection/group.d.ts +11 -0
  23. package/codebase/types/ts-data/sources/datacollection.d.ts +84 -3
  24. package/codebase/types/ts-data/sources/methods.d.ts +8 -3
  25. package/codebase/types/ts-data/sources/treecollection.d.ts +99 -0
  26. package/codebase/types/ts-data/sources/types.d.ts +12 -2
  27. package/codebase/types/ts-grid/sources/ExtendedGrid.d.ts +3 -1
  28. package/codebase/types/ts-grid/sources/Grid.d.ts +12 -2
  29. package/codebase/types/ts-grid/sources/helpers/cells.d.ts +7 -1
  30. package/codebase/types/ts-grid/sources/helpers/data.d.ts +16 -1
  31. package/codebase/types/ts-grid/sources/helpers/default.d.ts +1 -0
  32. package/codebase/types/ts-grid/sources/helpers/dom.d.ts +3 -0
  33. package/codebase/types/ts-grid/sources/helpers/zoneFocus.d.ts +25 -4
  34. package/codebase/types/ts-grid/sources/locales/en.d.ts +0 -2
  35. package/codebase/types/ts-grid/sources/modules/ActiveCell.d.ts +26 -0
  36. package/codebase/types/ts-grid/sources/modules/History.d.ts +4 -0
  37. package/codebase/types/ts-grid/sources/modules/Selection.d.ts +5 -6
  38. package/codebase/types/ts-grid/sources/types.d.ts +82 -5
  39. package/codebase/types/ts-grid/sources/ui/cells.d.ts +28 -1
  40. package/codebase/types/ts-grid/sources/ui/content/ComboFilter.d.ts +1 -0
  41. package/codebase/types/ts-grid/sources/ui/content/SelectFilter.d.ts +1 -0
  42. package/codebase/types/ts-grid/sources/ui/content.d.ts +6 -2
  43. package/codebase/types/ts-grid/sources/ui/editors/DateEditor.d.ts +1 -0
  44. package/codebase/types/ts-grid/sources/ui/proContent.d.ts +3 -16
  45. package/codebase/types/ts-layout/sources/Cell.d.ts +10 -0
  46. package/codebase/types/ts-layout/sources/helpers/constants.d.ts +2 -0
  47. package/codebase/types/ts-layout/sources/{helpers.d.ts → helpers/helpers.d.ts} +1 -1
  48. package/codebase/types/ts-layout/sources/types.d.ts +2 -1
  49. package/codebase/types/ts-message/sources/locales/en.d.ts +4 -0
  50. package/codebase/types/ts-treegrid/sources/TreeGrid.d.ts +0 -2
  51. package/codebase/types/ts-treegrid/sources/TreeGridCollection.d.ts +2 -1
  52. package/package.json +1 -1
  53. package/whatsnew.txt +74 -33
@@ -11,15 +11,32 @@ import { IGroupOrder, TDisplayMode } from "../../ts-data/sources/datacollection/
11
11
  import { IGroupItem } from "./ui/components/groupPanel";
12
12
  import { ITreeGrid, ITreeGridConfig } from "../../ts-treegrid";
13
13
  import { ISelection } from "./modules/Selection";
14
+ import { IActiveCell } from "./modules/ActiveCell";
14
15
  import { IProCell, IViewConstructor } from "../../ts-layout";
15
16
  import { IRange, IRangeConfig } from "./modules/Range";
16
17
  import { PrefixSums } from "./helpers/PrefixSums";
17
18
  import { IBlockSelection, IBlockSelectionConfig } from "./modules/BlockSelection";
18
19
  import { IClipboard, IClipboardConfig } from "./modules/Clipboard";
19
20
  import { IHistory, IHistoryConfig } from "./modules/History";
20
- import { IComboFilterConfig, IContentList, IHeaderFilter, IInputFilterConfig } from "./ui/content";
21
+ import { IComboFilterConfig, IContentList, IHeaderFilter, IInputFilterConfig, ISelectFilterConfig } from "./ui/content";
21
22
  import { ExportType, ICsvExportConfig, IXlsxExportConfig } from "./modules/Exporter";
22
23
  import { IDateFilterConfig, IProContentList, IProHeaderFilter } from "./ui/proContent";
24
+ /**
25
+ * @internal The active-cell contract shared by the selection module and the service active-cell
26
+ * module, so that the key handlers read one position whichever module owns it.
27
+ */
28
+ export interface ICellSource {
29
+ getCell(): ICell | void;
30
+ setCell(row?: IRow | Id, col?: ICol | Id, ctrlUp?: boolean, shiftUp?: boolean): void;
31
+ restoreFocus(): void;
32
+ }
33
+ /**
34
+ * @internal Anything that holds the active cell: the grid itself, or a renderer config.
35
+ */
36
+ export interface ICellSourceHolder {
37
+ selection: ICellSource;
38
+ $activeCell?: IActiveCell;
39
+ }
23
40
  export interface IGrid {
24
41
  data: IDataCollection;
25
42
  name: "grid" | string;
@@ -29,6 +46,8 @@ export interface IGrid {
29
46
  content: IContentList | IProContentList;
30
47
  keyManager: IKeyManager;
31
48
  export: any;
49
+ /** @internal Service module: present only when no selection module is initialized. */
50
+ $activeCell?: IActiveCell;
32
51
  paint(): void;
33
52
  announce(message: string): void;
34
53
  destructor(): void;
@@ -91,8 +110,8 @@ export interface IGridConfig extends IDragConfig {
91
110
  height?: number | "auto";
92
111
  autoWidth?: boolean;
93
112
  rowHeight?: number;
94
- headerRowHeight?: number;
95
- footerRowHeight?: number;
113
+ headerRowHeight?: TFixedRowHeight;
114
+ footerRowHeight?: TFixedRowHeight;
96
115
  footerPosition?: IFooterPosition;
97
116
  leftSplit?: number;
98
117
  topSplit?: number;
@@ -107,6 +126,7 @@ export interface IGridConfig extends IDragConfig {
107
126
  css?: string;
108
127
  rowCss?: (row: IRow) => string;
109
128
  exportStyles?: boolean | string[];
129
+ ariaLabel?: string;
110
130
  selection?: ISelectionType;
111
131
  multiselection?: boolean;
112
132
  rangeSelection?: boolean | IRangeConfig;
@@ -148,6 +168,8 @@ export interface IGridConfig extends IDragConfig {
148
168
  $footerHeight?: number;
149
169
  $headerHeightMap?: number[];
150
170
  $footerHeightMap?: number[];
171
+ $headerAutoHeightMap?: boolean[];
172
+ $footerAutoHeightMap?: boolean[];
151
173
  $totalWidth?: number;
152
174
  $totalHeight?: number;
153
175
  $rowHeights?: PrefixSums;
@@ -168,6 +190,7 @@ export interface IGridConfig extends IDragConfig {
168
190
  $data?: any[];
169
191
  $grouped?: IGroupItem[];
170
192
  $subRowCells?: Map<Id, ISubRowCell>;
193
+ $cellState?: ICellState;
171
194
  }
172
195
  export type IProGridConfig = IExtendedGridConfig & ITreeGridConfig;
173
196
  export interface IExtendedGridConfig extends IGridConfig {
@@ -208,6 +231,7 @@ export interface IRendererConfig extends Required<IProGridConfig> {
208
231
  footerHeight?: number;
209
232
  events?: IEventSystem<GridEvents, IEventHandlersMap>;
210
233
  selection: any;
234
+ $activeCell?: IActiveCell;
211
235
  dropManager: any;
212
236
  blockSelection: any;
213
237
  range?: IRange;
@@ -222,6 +246,8 @@ export interface IRendererConfig extends Required<IProGridConfig> {
222
246
  $renderFrom?: RenderFrom;
223
247
  $isDragging?: boolean;
224
248
  $rowIndexShift?: number;
249
+ /** @internal only for {@link ICellState.hideSpans} in a grid with rendered spans */
250
+ $spanAreas?: ISpanArea[];
225
251
  _events?: IEventSystem<GridSystemEvents>;
226
252
  }
227
253
  export declare enum GridEvents {
@@ -426,10 +452,12 @@ export interface ICol {
426
452
  };
427
453
  $uniqueData?: any[];
428
454
  $activeFilterData?: any[];
455
+ $filterOptions?: IOption[];
429
456
  $index?: number;
430
457
  $width?: number;
431
458
  $fixedWidth?: boolean;
432
459
  $customOptions?: any;
460
+ $rowHeader?: boolean;
433
461
  }
434
462
  export interface IRow {
435
463
  id?: Id;
@@ -441,6 +469,8 @@ export interface IRow {
441
469
  $opened?: boolean;
442
470
  $subRowHeight?: number;
443
471
  $draggable?: boolean;
472
+ $count?: number;
473
+ $totalCount?: number;
444
474
  }
445
475
  export interface ISpan {
446
476
  row: Id;
@@ -478,7 +508,7 @@ export interface IContent {
478
508
  export type TContentFilter = "inputFilter" | "selectFilter" | "comboFilter" | "dateFilter";
479
509
  export interface IHeader extends IContent {
480
510
  content?: TContentFilter;
481
- filterConfig?: IComboFilterConfig | IInputFilterConfig | IDateFilterConfig;
511
+ filterConfig?: IComboFilterConfig | IInputFilterConfig | IDateFilterConfig | ISelectFilterConfig;
482
512
  customFilter?: (item: string | number | Date | Date[], match: string | string[] | Date | Date[]) => boolean;
483
513
  headerSort?: boolean;
484
514
  sortAs?: SortFunction;
@@ -523,6 +553,8 @@ export interface IGroup {
523
553
  panelHeight: number;
524
554
  hideableColumns?: boolean;
525
555
  showMissed?: boolean | string;
556
+ showEmptyGroups?: boolean;
557
+ counter?: boolean | ((row: IRow) => string);
526
558
  fields?: {
527
559
  [colId: string]: Omit<IGroupOrder, "by">;
528
560
  };
@@ -603,6 +635,7 @@ export interface IOption {
603
635
  value: string;
604
636
  }
605
637
  export type TOption = IOption | string;
638
+ export type TFilterOptions = TOption[] | ((uniqueData: IOption[], col: ICol) => TOption[]);
606
639
  export type SortFunction = (cellValue: any) => string | number;
607
640
  type MarkFunction = (cell: any, columnCells: any[], row: IRow, column: ICol) => string;
608
641
  export interface IMark {
@@ -629,7 +662,7 @@ export interface ILayoutState {
629
662
  footerAtBottom: boolean;
630
663
  }
631
664
  export interface IFixedRowsConfig extends ILayoutState {
632
- name: "header" | "footer";
665
+ name: TFixedRowsName;
633
666
  position: "top" | "bottom";
634
667
  }
635
668
  export interface ICoords {
@@ -654,6 +687,12 @@ export type IDragType = "row" | "column" | "both";
654
687
  export type AdjustTargetType = "data" | "header" | "footer";
655
688
  export type IAdjustBy = AdjustTargetType | boolean;
656
689
  export type IFooterPosition = "bottom" | "relative";
690
+ export type TFixedRowsName = "header" | "footer";
691
+ export type TFixedRowHeight = number | (number | "auto")[];
692
+ export interface IFixedRowLevel {
693
+ height: number;
694
+ auto: boolean;
695
+ }
657
696
  export interface IAdjustColumns {
658
697
  rows: IRow[];
659
698
  cols: ICol[];
@@ -676,4 +715,42 @@ export interface IExportGridCell {
676
715
  v: string | number;
677
716
  s: number;
678
717
  }
718
+ /**
719
+ * @internal
720
+ * Cell state supplied by a host product that manages selection and editing itself.
721
+ * When it is set, it is the source of truth for the roving tabindex, `aria-selected`,
722
+ * `aria-readonly` and `aria-multiselectable`, and the grid's own selection module is not
723
+ * consulted. When it is not set, the grid behaves exactly as before.
724
+ *
725
+ * A range is a set of row ids by a set of column ids, so that a cell can be tested with two
726
+ * hash lookups: `getCells` runs per visible cell and again per frozen zone, and the column
727
+ * index of a cell is not recoverable there because the fixed-column zones replace
728
+ * `filteredColumns` and reset `$positions.xStart`.
729
+ */
730
+ export interface ICellState {
731
+ active?: {
732
+ row: Id;
733
+ col: Id;
734
+ };
735
+ ranges?: Array<{
736
+ rows: Set<Id>;
737
+ cols: Set<Id>;
738
+ }>;
739
+ editable?: boolean;
740
+ multiselectable?: boolean;
741
+ /** Read-only cells in an editable grid: a row id and a set of column ids. */
742
+ readonlyCells?: Map<Id, Set<Id>>;
743
+ /** The first cell of a span shows its content, so the span element and the cells under it are hidden. */
744
+ hideSpans?: boolean;
745
+ }
746
+ /** @internal the cells of a rendered span */
747
+ export interface ISpanArea {
748
+ /** the column id of the first cell */
749
+ column: Id;
750
+ /** the data index range of the rows */
751
+ rowStart: number;
752
+ rowEnd: number;
753
+ /** the column ids */
754
+ columns: Set<string>;
755
+ }
679
756
  export {};
@@ -1,4 +1,4 @@
1
- import { GridEvents, GridSystemEvents, ICoords, IGridConfig, IRendererConfig, ISpan, Split } from "../types";
1
+ import { GridEvents, GridSystemEvents, ICellState, ICoords, IGridConfig, IRendererConfig, ISpan, Split } from "../types";
2
2
  import { IDataCollection } from "../../../ts-data";
3
3
  import { Id } from "../../../ts-common/types";
4
4
  type mouseEvents = GridEvents.cellClick | GridEvents.cellMouseOver | GridEvents.cellMouseDown | GridEvents.cellDblClick | GridEvents.cellRightClick;
@@ -14,6 +14,33 @@ export declare function getHandlers(row: number, column: number, conf: IRenderer
14
14
  ontouchmove: (number | GridSystemEvents | IRendererConfig | typeof handleMouse)[];
15
15
  ontouchend: (number | GridSystemEvents | IRendererConfig | typeof handleMouse)[];
16
16
  };
17
+ export interface ISpanExtent {
18
+ column: Id;
19
+ colspan: number;
20
+ rowspan: number;
21
+ }
22
+ /** @internal the per-render-pass answer of {@link resolveCellState} */
23
+ export interface IResolvedCellState {
24
+ /** the row and the column of the only cell that carries `tabindex="0"` */
25
+ tabRow: Id;
26
+ tabCol: Id;
27
+ readonly: "true" | "false";
28
+ /** the cells a host reports as read-only in an editable grid */
29
+ readonlyCells: ICellState["readonlyCells"];
30
+ /** whether `aria-selected` belongs on a cell at all — it does not in row selection mode */
31
+ exposeSelected: boolean;
32
+ isSelected: (rowId: Id, colId: Id) => boolean;
33
+ }
34
+ /**
35
+ * Resolves everything the cell renderers need to know about selection, focus and editability,
36
+ * once per render pass. This is the hottest path in the product — `getCells` runs per visible
37
+ * cell and again for every frozen zone — so the per-cell work left afterwards is two identity
38
+ * comparisons for the tabindex and one call for `aria-selected`.
39
+ *
40
+ * The state comes from `$cellState` when a host product supplies it, and from the grid's own
41
+ * selection module otherwise.
42
+ */
43
+ export declare function resolveCellState(conf: IRendererConfig): IResolvedCellState;
17
44
  export declare function getCells(conf: IRendererConfig): any[];
18
45
  export declare function getSpans(config: IRendererConfig, mode?: Split): any[];
19
46
  export declare function getShifts(conf: IRendererConfig): ICoords;
@@ -31,5 +31,6 @@ export declare class ComboFilter implements IHeaderFilter {
31
31
  blur(): void;
32
32
  destructor(): void;
33
33
  private _setData;
34
+ private _getFilterValue;
34
35
  private _checkValue;
35
36
  }
@@ -24,5 +24,6 @@ export declare class SelectFilter implements IHeaderFilter {
24
24
  clear(silent?: boolean): void;
25
25
  focus(): void;
26
26
  blur(): void;
27
+ private _getOptions;
27
28
  private initHandlers;
28
29
  }
@@ -1,5 +1,5 @@
1
1
  import { VNode } from "../../../ts-common/dom";
2
- import { ICol, IExtendedGrid, IGrid, IProGrid, IRendererConfig } from "../types";
2
+ import { ICol, IExtendedGrid, IGrid, IProGrid, IRendererConfig, TFilterOptions } from "../types";
3
3
  import { DataCollection, IDataItem } from "../../../ts-data";
4
4
  import { Combobox } from "../../../ts-combobox";
5
5
  import { IEventSystem } from "../../../ts-common/events";
@@ -12,11 +12,15 @@ export interface IComboFilterConfig {
12
12
  readonly?: boolean;
13
13
  virtual?: boolean;
14
14
  multiselection?: boolean;
15
+ options?: TFilterOptions;
15
16
  }
16
17
  export interface IInputFilterConfig {
17
18
  placeholder?: string;
18
19
  icon?: string;
19
20
  }
21
+ export interface ISelectFilterConfig {
22
+ options?: TFilterOptions;
23
+ }
20
24
  export declare enum HeaderFilterEvent {
21
25
  change = "change"
22
26
  }
@@ -27,7 +31,7 @@ export interface IHeaderFilter {
27
31
  events: IEventSystem<HeaderFilterEvent>;
28
32
  data?: string[] | IDataItem[];
29
33
  id?: Id;
30
- filterConfig?: IComboFilterConfig | IInputFilterConfig;
34
+ filterConfig?: IComboFilterConfig | IInputFilterConfig | ISelectFilterConfig;
31
35
  getFilter(): VNode | Combobox;
32
36
  setValue(value: string | string[], silent?: boolean): void;
33
37
  clear(silent?: boolean): void;
@@ -29,6 +29,7 @@ export declare class DateEditor implements IEditor {
29
29
  thisMonthOnly?: boolean;
30
30
  width?: string | number;
31
31
  $rangeMark?: (a: Date) => string;
32
+ controls?: boolean | import("../../../../ts-calendar").TCalendarControlsInput[];
32
33
  block?: (a: Date) => boolean;
33
34
  view?: import("../../../../ts-calendar").ViewMode;
34
35
  };
@@ -1,22 +1,9 @@
1
1
  import { IExtendedGrid, IProGrid } from "../types";
2
- import { ICellContent, IHeaderFilter } from "./content";
2
+ import { ICellContent, IComboFilterConfig, IHeaderFilter, IInputFilterConfig, ISelectFilterConfig } from "./content";
3
3
  import { VNode } from "../../../ts-common/dom";
4
- import { DataCollection, IDataItem } from "../../../ts-data";
5
4
  import { Calendar, ICalendarConfig } from "../../../ts-calendar";
6
5
  import { Combobox } from "../../../ts-combobox";
7
- export interface IComboFilterConfig {
8
- template?: (item: IDataItem) => string;
9
- filter?: (item: IDataItem, input: string) => boolean;
10
- data?: DataCollection<IDataItem> | IDataItem[];
11
- placeholder?: string;
12
- readonly?: boolean;
13
- virtual?: boolean;
14
- multiselection?: boolean;
15
- }
16
- export interface IInputFilterConfig {
17
- placeholder?: string;
18
- icon?: string;
19
- }
6
+ export { IComboFilterConfig, IInputFilterConfig, ISelectFilterConfig } from "./content";
20
7
  export interface IDateFilterConfig extends Omit<ICalendarConfig, "value" | "css" | "$rangeMark"> {
21
8
  icon?: string;
22
9
  placeholder?: string;
@@ -24,7 +11,7 @@ export interface IDateFilterConfig extends Omit<ICalendarConfig, "value" | "css"
24
11
  }
25
12
  export interface IProHeaderFilter extends Omit<IHeaderFilter, "value" | "filterConfig"> {
26
13
  value: string | string[] | Date | Date[];
27
- filterConfig?: IComboFilterConfig | IDateFilterConfig | IInputFilterConfig;
14
+ filterConfig?: IComboFilterConfig | IDateFilterConfig | IInputFilterConfig | ISelectFilterConfig;
28
15
  getFilter(): VNode | Combobox | Calendar;
29
16
  setValue(value: string | string[] | Date | Date[], silent?: boolean): void;
30
17
  }
@@ -19,6 +19,7 @@ export declare class Cell extends View implements ICell {
19
19
  protected _theme: string;
20
20
  private _isLastFlexCell;
21
21
  private _afterWindowResized;
22
+ private _headerSize;
22
23
  constructor(parent: string | HTMLElement | ILayout, config: ICellConfig);
23
24
  paint(): void;
24
25
  isVisible(): boolean;
@@ -39,11 +40,20 @@ export declare class Cell extends View implements ICell {
39
40
  progressHide(): void;
40
41
  isVisibleProgress(): boolean;
41
42
  toVDOM(nodes?: any[]): any;
43
+ protected _renderHeader(): any;
44
+ protected _isRotatedHeader(): boolean;
45
+ protected _getHeaderStyle(): {
46
+ height?: number;
47
+ minWidth?: number;
48
+ };
49
+ protected _saveHeaderSize(): void;
50
+ protected _renderCellHeaderContent(): any;
42
51
  protected _saveTheme(): void;
43
52
  protected _getProgressBar(): any;
44
53
  protected _getCss(_content?: boolean): string;
45
54
  protected _initHandlers(): void;
46
55
  protected _getCollapsedSize(cell: ICell, nextCell: ICell): number;
56
+ protected _getCellSize(cell: any): number;
47
57
  protected _getCollapseIcon(): "dxi dxi-chevron-right" | "dxi dxi-chevron-left" | "dxi dxi-chevron-up" | "dxi dxi-chevron-down";
48
58
  protected _isLastCell(): boolean;
49
59
  protected _getNextCell(): any;
@@ -0,0 +1,2 @@
1
+ export declare const DEFAULT_CELL_HEADER_HEIGHT = 37;
2
+ export declare const DEFAULT_CELL_HEADER_WIDTH = 45;
@@ -1,4 +1,4 @@
1
- import { ICellConfig } from "./types";
1
+ import { ICellConfig } from "../types";
2
2
  export declare function getBlockRange(block1: ClientRect, block2: ClientRect, isXLayout?: boolean): {
3
3
  min: number;
4
4
  max: number;
@@ -4,11 +4,12 @@ import { IEventSystem } from "../../ts-common/events";
4
4
  import { FlexDirection } from "../../ts-common/html";
5
5
  import { ScrollView } from "../../ts-common/ScrollView";
6
6
  import { TLabelAlignment } from "../../ts-common/types";
7
+ export type TCellHeaderTemplate = (cell: ICellConfig) => string | IView;
7
8
  export interface ICellConfig {
8
9
  id?: string;
9
10
  html?: string;
10
11
  hidden?: boolean;
11
- header?: string;
12
+ header?: string | TCellHeaderTemplate;
12
13
  headerIcon?: string;
13
14
  headerImage?: string;
14
15
  headerHeight?: number;
@@ -1,5 +1,9 @@
1
1
  declare const locale: {
2
2
  apply: string;
3
3
  reject: string;
4
+ aria_alert: string;
5
+ aria_confirm: string;
6
+ aria_reject: string;
7
+ aria_apply: string;
4
8
  };
5
9
  export default locale;
@@ -19,8 +19,6 @@ export declare class TreeGrid extends ExtendedGrid implements ITreeGrid {
19
19
  getSpan(rowId: Id, colId: Id): ISpan;
20
20
  protected _adjustColumnsWidth({ rows, cols, totalCols, adjust, }: IAdjustColumns): IColumnsWidth;
21
21
  protected _createCollection(): void;
22
- protected _getRowIndex(rowId: Id): number;
23
22
  protected _applyLocalFilter(beforePrepareData?: boolean): void;
24
23
  protected _setEventHandlers(): void;
25
- private _serialize;
26
24
  }
@@ -16,6 +16,7 @@ export declare class TreeGridCollection extends TreeCollection {
16
16
  protected _addToOrder(_order: any, obj: any, index: number): void;
17
17
  protected _removeCore(id: Id): void;
18
18
  protected _setParent(item: IDataItem, parent: Id): void;
19
- private _checkItems;
19
+ protected _recalculateGroups(): void;
20
+ protected _checkItems(): void;
20
21
  protected _moveItem(id: any, targetId: any, index: any): void;
21
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhtmlx/chart",
3
- "version": "9.3.11",
3
+ "version": "9.4.0",
4
4
  "description": "DHTMLX Chart - JavaScript chart library. GPL v2 edition for GPL-compatible open-source projects; commercial licenses are available for proprietary and production use.",
5
5
  "keywords": ["dhtmlx","chart","charts","graph","visualization","javascript","typescript"],
6
6
  "homepage":"https://docs.dhtmlx.com/suite/chart/",
package/whatsnew.txt CHANGED
@@ -1,36 +1,77 @@
1
- Version 9.3.11 (September 14, 2026)
2
- ----------------------------
3
-
4
- Version 9.3.10 (August 19, 2026)
5
- ----------------------------
6
-
7
- Version 9.3.9 (August 13, 2026)
8
- ----------------------------
9
-
10
- Version 9.3.8 (August 3, 2026)
11
- ----------------------------
12
-
13
- Version 9.3.7 (July 29, 2026)
14
- ----------------------------
15
-
16
- Version 9.3.6 (July 24, 2026)
17
- ----------------------------
18
-
19
- Version 9.3.5 (July 1, 2026)
20
- ----------------------------
21
-
22
- Version 9.3.4 (June 2, 2026)
23
- ----------------------------
24
-
25
- Version 9.3.3 (June 2, 2026)
26
- ----------------------------
27
-
28
- Version 9.3.2 (May 12, 2026)
29
- ----------------------------
30
-
31
- Version 9.3.1 (March 26, 2026)
32
- ----------------------------
33
-
1
+ ## Version 9.4 (October 22, 2026)
2
+
3
+ ### New functionality
4
+
5
+ - The ability to use two value scales in one chart, each with its own dimension, and to bind a series to the scale its values are measured against
6
+ - new properties of the Chart `series` configuration object: `scale` and `scales`
7
+ - new property of the Chart `scales` configuration object: `alignTicks`
8
+ - The ability to build several independent stacks in one chart, one per value scale or several named groups drawn side by side
9
+ - updated property of the Chart `series` configuration object: `stacked`, which takes the name of a stack group besides a boolean
10
+ - The ability to display the total values of stacked bars at the end of each bar of a Bar or X-Bar chart and the total value of a Donut chart in its center
11
+ - new Chart configuration property: `total`
12
+ - The ability to set the color of each bar dynamically, based on its data item, in a Bar or X-Bar chart
13
+ - updated properties of the Chart `series` configuration object: `fill` and `color`, which take a callback function besides a string
14
+
15
+ ### Fixes
16
+
17
+ - Fixed the position of the tooltip and of the highlighted grid line for the first point of a Line/Spline/Area chart that has the `"right"` scale
18
+ - Fixed series being bound to the missing `"left"` scale in a chart that declares the `"right"` value scale instead
19
+ - Fixed the `targetValue` property of the `"top"` and `"right"` scales being ignored, and the target lines of the `"bottom"` and `"top"` scales being hidden when `grid: false` was set
20
+ - Fixed the `baseLine` property of a series being checked against the `min` value of another scale and being reset in the original series configuration
21
+
22
+ ### New samples
23
+
24
+ #### Chart
25
+
26
+ - [Chart. Dual axis. Stacked bars and a spline](https://snippet.dhtmlx.com/bsinbn1t)
27
+ - [Chart. Dual axis. Two line series](https://snippet.dhtmlx.com/6g8lka1v)
28
+ - [Chart. Dual axis. Grouped bars and a line](https://snippet.dhtmlx.com/alg54k2w)
29
+ - [Chart. Dual axis. Area and spline](https://snippet.dhtmlx.com/jmdubo1x)
30
+ - [Chart. Dual axis. Horizontal bars (X-Bar)](https://snippet.dhtmlx.com/gmetbkcl)
31
+ - [Chart. Dual axis. A stack on each axis](https://snippet.dhtmlx.com/e46fqamn)
32
+ - [Chart. Grouped stacks (plan vs fact)](https://snippet.dhtmlx.com/8pu8uthc)
33
+ - [Chart. Stacked bar chart. Show total](https://snippet.dhtmlx.com/t1j8t7pi)
34
+ - [Chart. Donut chart. Show total](https://snippet.dhtmlx.com/kx7zmnf9)
35
+ - [Chart. Dynamic colors. Conditional fill by value](https://snippet.dhtmlx.com/rj0zi16z)
36
+ - [Chart. Dynamic colors. Highlight highest and lowest](https://snippet.dhtmlx.com/fbinubou)
37
+ - [Chart. Dynamic colors. Gradient fill](https://snippet.dhtmlx.com/4p88y2mg)
38
+
39
+ Version 9.3.12 (September 24, 2026)
40
+ ----------------------------
41
+
42
+ Version 9.3.11 (September 14, 2026)
43
+ ----------------------------
44
+
45
+ Version 9.3.10 (August 19, 2026)
46
+ ----------------------------
47
+
48
+ Version 9.3.9 (August 13, 2026)
49
+ ----------------------------
50
+
51
+ Version 9.3.8 (August 3, 2026)
52
+ ----------------------------
53
+
54
+ Version 9.3.7 (July 29, 2026)
55
+ ----------------------------
56
+
57
+ Version 9.3.6 (July 24, 2026)
58
+ ----------------------------
59
+
60
+ Version 9.3.5 (July 1, 2026)
61
+ ----------------------------
62
+
63
+ Version 9.3.4 (June 2, 2026)
64
+ ----------------------------
65
+
66
+ Version 9.3.3 (June 2, 2026)
67
+ ----------------------------
68
+
69
+ Version 9.3.2 (May 12, 2026)
70
+ ----------------------------
71
+
72
+ Version 9.3.1 (March 26, 2026)
73
+ ----------------------------
74
+
34
75
  # Version 9.3 (February 17, 2026)
35
76
 
36
77
  ### Updates