dhx-chart 9.1.6 → 9.2.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.
- package/codebase/chart.min.js +3 -3
- package/codebase/chart.min.js.map +1 -1
- package/codebase/types/ts-common/date.d.ts +1 -0
- package/codebase/types/ts-data/sources/datacollection/group.d.ts +1 -0
- package/codebase/types/ts-grid/sources/ExtendedGrid.d.ts +11 -0
- package/codebase/types/ts-grid/sources/Grid.d.ts +6 -2
- package/codebase/types/ts-grid/sources/ProGrid.d.ts +9 -1
- package/codebase/types/ts-grid/sources/helpers/cells.d.ts +2 -0
- package/codebase/types/ts-grid/sources/helpers/data.d.ts +6 -2
- package/codebase/types/ts-grid/sources/helpers/default.d.ts +4 -1
- package/codebase/types/ts-grid/sources/helpers/keys.d.ts +19 -18
- package/codebase/types/ts-grid/sources/helpers/main.d.ts +6 -0
- package/codebase/types/ts-grid/sources/modules/BlockSelection.d.ts +120 -0
- package/codebase/types/ts-grid/sources/modules/Clipboard.d.ts +55 -0
- package/codebase/types/ts-grid/sources/modules/DropManager.d.ts +21 -0
- package/codebase/types/ts-grid/sources/{Exporter.d.ts → modules/Exporter.d.ts} +27 -14
- package/codebase/types/ts-grid/sources/modules/History.d.ts +72 -0
- package/codebase/types/ts-grid/sources/modules/Range.d.ts +71 -0
- package/codebase/types/ts-grid/sources/{columnsResizer.d.ts → modules/Resizer.d.ts} +1 -1
- package/codebase/types/ts-grid/sources/{Selection.d.ts → modules/Selection.d.ts} +8 -7
- package/codebase/types/ts-grid/sources/types.d.ts +44 -6
- package/codebase/types/ts-grid/sources/ui/FixedCols.d.ts +1 -1
- package/codebase/types/ts-grid/sources/ui/components/dragPanel.d.ts +3 -0
- package/codebase/types/ts-grid/sources/ui/{SubRows.d.ts → components/subRow.d.ts} +2 -2
- package/package.json +1 -1
- package/readme.txt +1 -1
- package/whatsnew.txt +6 -0
- /package/codebase/types/ts-grid/sources/ui/{group/panel.d.ts → components/groupPanel.d.ts} +0 -0
- /package/codebase/types/ts-grid/sources/ui/{Cells.d.ts → /321/201ells.d.ts"} +0 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { VNode } from "
|
|
2
|
-
import { IEventSystem } from "
|
|
3
|
-
import { ICell, IGrid, IRow, ICol, IProGrid } from "
|
|
4
|
-
import { Id } from "
|
|
1
|
+
import { VNode } from "../../../ts-common/dom";
|
|
2
|
+
import { IEventSystem } from "../../../ts-common/events";
|
|
3
|
+
import { ICell, IGrid, IRow, ICol, ISelectionType, IProGrid } from "../types";
|
|
4
|
+
import { Id } from "../../../ts-common/types";
|
|
5
5
|
export interface ISelectionConfig {
|
|
6
6
|
disabled?: boolean;
|
|
7
|
+
type?: ISelectionType;
|
|
8
|
+
multiSelection?: boolean;
|
|
7
9
|
}
|
|
8
10
|
export interface ISelection {
|
|
9
11
|
config?: ISelectionConfig;
|
|
@@ -13,6 +15,7 @@ export interface ISelection {
|
|
|
13
15
|
removeCell(rowId?: Id, colId?: Id): void;
|
|
14
16
|
disable(): void;
|
|
15
17
|
enable(): void;
|
|
18
|
+
isSelectedCell(row: IRow | Id, column?: ICol | Id): boolean;
|
|
16
19
|
toHTML(): VNode | VNode[];
|
|
17
20
|
}
|
|
18
21
|
export declare enum GridSelectionEvents {
|
|
@@ -35,8 +38,6 @@ export declare class Selection implements ISelection {
|
|
|
35
38
|
private _gridId;
|
|
36
39
|
private _selectedCell;
|
|
37
40
|
private _selectedCells;
|
|
38
|
-
private _type;
|
|
39
|
-
private _multiselection;
|
|
40
41
|
constructor(grid: IGrid | IProGrid, config?: ISelectionConfig, events?: IEventSystem<any>, gridId?: Id);
|
|
41
42
|
setCell(row?: IRow | Id, col?: ICol | Id, ctrlUp?: boolean, shiftUp?: boolean): void;
|
|
42
43
|
removeCell(rowId?: Id, colId?: Id): void;
|
|
@@ -45,6 +46,7 @@ export declare class Selection implements ISelection {
|
|
|
45
46
|
disable(): void;
|
|
46
47
|
enable(): void;
|
|
47
48
|
toHTML(): VNode | VNode[];
|
|
49
|
+
isSelectedCell(row: IRow | Id, column?: ICol | Id): boolean;
|
|
48
50
|
private _setCell;
|
|
49
51
|
private _removeCell;
|
|
50
52
|
private _removeCells;
|
|
@@ -53,5 +55,4 @@ export declare class Selection implements ISelection {
|
|
|
53
55
|
private _isUnselected;
|
|
54
56
|
private _findIndex;
|
|
55
57
|
private _setBrowserFocus;
|
|
56
|
-
private _getReverseScrollState;
|
|
57
58
|
}
|
|
@@ -10,10 +10,14 @@ import { ICalendarConfig } from "../../ts-calendar";
|
|
|
10
10
|
import { VNode } from "../../ts-common/dom";
|
|
11
11
|
import { INumberMask, IPatternMask } from "../../ts-common/input";
|
|
12
12
|
import { IGroupOrder, TDisplayMode } from "../../ts-data/sources/datacollection/group";
|
|
13
|
-
import { IGroupItem } from "./ui/
|
|
13
|
+
import { IGroupItem } from "./ui/components/groupPanel";
|
|
14
14
|
import { ITreeGrid, ITreeGridConfig } from "../../ts-treegrid";
|
|
15
|
-
import { ISelection } from "./Selection";
|
|
15
|
+
import { ISelection } from "./modules/Selection";
|
|
16
16
|
import { IProCell, IViewConstructor } from "../../ts-layout";
|
|
17
|
+
import { IRange, IRangeConfig } from "./modules/Range";
|
|
18
|
+
import { IBlockSelection, IBlockSelectionConfig } from "./modules/BlockSelection";
|
|
19
|
+
import { IClipboard, IClipboardConfig } from "./modules/Clipboard";
|
|
20
|
+
import { IHistory, IHistoryConfig } from "./modules/History";
|
|
17
21
|
export interface IGrid {
|
|
18
22
|
data: IDataCollection;
|
|
19
23
|
name: "grid" | string;
|
|
@@ -61,6 +65,10 @@ export interface IExtendedGrid extends IGrid {
|
|
|
61
65
|
name: "progrid" | string;
|
|
62
66
|
scrollView: ScrollView;
|
|
63
67
|
config: IExtendedGridConfig;
|
|
68
|
+
range: IRange;
|
|
69
|
+
block: IBlockSelection;
|
|
70
|
+
clipboard: IClipboard;
|
|
71
|
+
history: IHistory;
|
|
64
72
|
getSubRow(id: Id): ISubViewCell | null;
|
|
65
73
|
expand(rowId: Id): void;
|
|
66
74
|
collapse(rowId: Id): void;
|
|
@@ -95,7 +103,12 @@ export interface IGridConfig extends IDragConfig {
|
|
|
95
103
|
exportStyles?: boolean | string[];
|
|
96
104
|
selection?: ISelectionType;
|
|
97
105
|
multiselection?: boolean;
|
|
106
|
+
rangeSelection?: boolean | IRangeConfig;
|
|
107
|
+
blockSelection?: boolean | IBlockSelectionConfig;
|
|
108
|
+
clipboard?: boolean | IClipboardConfig;
|
|
109
|
+
history?: boolean | IHistoryConfig;
|
|
98
110
|
dragItem?: IDragType;
|
|
111
|
+
dragPanel?: boolean | IDragPanelConfig;
|
|
99
112
|
tooltip?: boolean | IGridTooltipConfig;
|
|
100
113
|
headerTooltip?: boolean | IGridTooltipConfig;
|
|
101
114
|
footerTooltip?: boolean | IGridTooltipConfig;
|
|
@@ -157,7 +170,12 @@ export interface IExtendedGridConfig extends IGridConfig {
|
|
|
157
170
|
footerAutoHeight?: boolean;
|
|
158
171
|
group?: boolean | IGroup;
|
|
159
172
|
dragItem?: IDragType;
|
|
173
|
+
dragPanel?: boolean | IDragPanelConfig;
|
|
160
174
|
multiSort?: boolean;
|
|
175
|
+
rangeSelection?: boolean | IRangeConfig;
|
|
176
|
+
blockSelection?: boolean | IBlockSelectionConfig;
|
|
177
|
+
clipboard?: boolean | IClipboardConfig;
|
|
178
|
+
history?: boolean | IHistoryConfig;
|
|
161
179
|
}
|
|
162
180
|
export interface IRendererConfig extends Required<IProGridConfig> {
|
|
163
181
|
scroll?: IScrollState;
|
|
@@ -173,6 +191,8 @@ export interface IRendererConfig extends Required<IProGridConfig> {
|
|
|
173
191
|
footerHeight?: number;
|
|
174
192
|
events?: IEventSystem<GridEvents, IEventHandlersMap>;
|
|
175
193
|
selection: any;
|
|
194
|
+
dropManager: any;
|
|
195
|
+
blockSelection: any;
|
|
176
196
|
sort: ISortingStates;
|
|
177
197
|
filterLocation?: string;
|
|
178
198
|
content?: IContentList;
|
|
@@ -248,7 +268,9 @@ export declare enum GridEvents {
|
|
|
248
268
|
beforeSort = "beforeSort",
|
|
249
269
|
afterSort = "afterSort",
|
|
250
270
|
groupPanelItemClick = "groupPanelItemClick",
|
|
251
|
-
groupPanelItemMouseDown = "groupPanelItemMouseDown"
|
|
271
|
+
groupPanelItemMouseDown = "groupPanelItemMouseDown",
|
|
272
|
+
dragPanelItemClick = "dragPanelItemClick",
|
|
273
|
+
dragPanelItemMouseDown = "dragPanelItemMouseDown"
|
|
252
274
|
}
|
|
253
275
|
export interface IEventHandlersMap {
|
|
254
276
|
[key: string]: (...args: any[]) => any;
|
|
@@ -315,6 +337,8 @@ export interface IEventHandlersMap {
|
|
|
315
337
|
[GridEvents.afterRowResize]: (row: IRow, event: Event, currentHeight: number) => void;
|
|
316
338
|
[GridEvents.groupPanelItemClick]: (id: string, event: MouseEvent | TouchEvent) => void;
|
|
317
339
|
[GridEvents.groupPanelItemMouseDown]: (id: string, event: MouseEvent | TouchEvent) => void;
|
|
340
|
+
[GridEvents.dragPanelItemClick]: (id: string, event: MouseEvent | TouchEvent) => void;
|
|
341
|
+
[GridEvents.dragPanelItemMouseDown]: (id: string, event: MouseEvent | TouchEvent) => void;
|
|
318
342
|
[GridEvents.expand]: (rowId: Id) => void;
|
|
319
343
|
}
|
|
320
344
|
export declare enum GridSystemEvents {
|
|
@@ -383,7 +407,6 @@ export interface ICol {
|
|
|
383
407
|
$width?: number;
|
|
384
408
|
$fixedWidth?: boolean;
|
|
385
409
|
$customOptions?: any;
|
|
386
|
-
$target?: "left" | "right";
|
|
387
410
|
}
|
|
388
411
|
export interface IRow {
|
|
389
412
|
id?: Id;
|
|
@@ -394,6 +417,7 @@ export interface IRow {
|
|
|
394
417
|
$height?: number;
|
|
395
418
|
$opened?: boolean;
|
|
396
419
|
$subRowHeight?: number;
|
|
420
|
+
$draggable?: boolean;
|
|
397
421
|
}
|
|
398
422
|
export interface ISpan {
|
|
399
423
|
row: Id;
|
|
@@ -487,6 +511,11 @@ export interface IScrollBarWidth {
|
|
|
487
511
|
xState: boolean;
|
|
488
512
|
yState: boolean;
|
|
489
513
|
}
|
|
514
|
+
export interface IDragPanelConfig {
|
|
515
|
+
css?: string;
|
|
516
|
+
icon?: string;
|
|
517
|
+
width?: number;
|
|
518
|
+
}
|
|
490
519
|
interface ICellObj {
|
|
491
520
|
col: ICol;
|
|
492
521
|
row: IRow;
|
|
@@ -498,7 +527,7 @@ export interface IScrollState {
|
|
|
498
527
|
left: number;
|
|
499
528
|
top: number;
|
|
500
529
|
}
|
|
501
|
-
export interface
|
|
530
|
+
export interface IVisibleRange {
|
|
502
531
|
xStart: number;
|
|
503
532
|
xEnd: number;
|
|
504
533
|
yStart: number;
|
|
@@ -635,6 +664,11 @@ export interface IFixedRowsConfig extends ILayoutState {
|
|
|
635
664
|
export interface IXlsxExportConfig {
|
|
636
665
|
url?: string;
|
|
637
666
|
name?: string;
|
|
667
|
+
tableName?: string;
|
|
668
|
+
dateFormatMask?: string;
|
|
669
|
+
mapToExcelFormulas?: {
|
|
670
|
+
[key: string]: string;
|
|
671
|
+
};
|
|
638
672
|
}
|
|
639
673
|
export interface ICsvExportConfig extends ICsvDriverConfig {
|
|
640
674
|
name?: string;
|
|
@@ -660,7 +694,7 @@ export interface IEditor {
|
|
|
660
694
|
endEdit(withoutSave?: boolean): void;
|
|
661
695
|
}
|
|
662
696
|
export type ISelectionType = "cell" | "row" | "complex";
|
|
663
|
-
export type IDirection = "horizontal" | "vertical";
|
|
697
|
+
export type IDirection = "horizontal" | "vertical" | "auto";
|
|
664
698
|
export type IDragType = "row" | "column" | "both";
|
|
665
699
|
export type AdjustTargetType = "data" | "header" | "footer";
|
|
666
700
|
export type IAdjustBy = AdjustTargetType | boolean;
|
|
@@ -682,4 +716,8 @@ export interface INormalizeColumnsParams {
|
|
|
682
716
|
columns: ICol[];
|
|
683
717
|
configChanged?: boolean;
|
|
684
718
|
}
|
|
719
|
+
export interface IExportGridCell {
|
|
720
|
+
v: string | number;
|
|
721
|
+
s: number;
|
|
722
|
+
}
|
|
685
723
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ILayoutState, IRendererConfig, Split } from "
|
|
1
|
+
import { ILayoutState, IRendererConfig, Split } from "../types";
|
|
2
2
|
export declare function getFixedColsHeader(renderConfig: IRendererConfig, layout: ILayoutState, mode: Split.left | Split.right): any;
|
|
3
3
|
export declare function getFixedCols(renderConfig: IRendererConfig, layout: ILayoutState, mode: Split.left | Split.right, source?: Split.top | Split.bottom): any[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VNode } from "
|
|
2
|
-
import { IProGrid, IRendererConfig, IRow } from "
|
|
1
|
+
import { VNode } from "../../../../ts-common/dom";
|
|
2
|
+
import { IProGrid, IRendererConfig, IRow } from "../../types";
|
|
3
3
|
export declare function getSubRowContent(config: IRendererConfig): VNode[];
|
|
4
4
|
export declare function setSubRowCell(grid: IProGrid, rows: IRow[]): void;
|
package/package.json
CHANGED
package/readme.txt
CHANGED
package/whatsnew.txt
CHANGED
|
File without changes
|
|
File without changes
|