dhx-chart 7.3.5 → 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;
@@ -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 {};
@@ -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/ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dhx-chart",
3
- "version": "7.3.5",
3
+ "version": "7.3.6",
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.7.3.5 Standard
4
+ dhtmlxChart 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,6 @@
1
+ Version 7.3.6 (August 8, 2022)
2
+ ----------------------------
3
+
1
4
  Version 7.3.5 (July 7, 2022)
2
5
  ----------------------------
3
6