handsontable 0.0.0-next-92e91fa-20231219 → 0.0.0-next-7518be3-20231219
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of handsontable might be problematic. Click here for more details.
- package/3rdparty/walkontable/src/cell/coords.d.ts +1 -1
- package/3rdparty/walkontable/src/cell/range.d.ts +1 -1
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +5 -6
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +4 -4
- package/dist/handsontable.js +5 -6
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +4 -4
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/plugins/autoColumnSize/autoColumnSize.d.ts +2 -2
- package/plugins/autoRowSize/autoRowSize.d.ts +3 -3
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.d.ts +1 -1
- package/plugins/columnSummary/columnSummary.d.ts +9 -9
- package/plugins/columnSummary/endpoints.js +0 -1
- package/plugins/columnSummary/endpoints.mjs +0 -1
- package/plugins/exportFile/exportFile.d.ts +18 -3
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.d.ts +8 -1
- package/plugins/persistentState/persistentState.d.ts +5 -2
- package/plugins/undoRedo/undoRedo.d.ts +3 -0
- package/settings.d.ts +24 -12
package/helpers/mixed.js
CHANGED
@@ -134,7 +134,7 @@ const domMessages = {
|
|
134
134
|
function _injectProductInfo(key, element) {
|
135
135
|
const hasValidType = !isEmpty(key);
|
136
136
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
137
|
-
const hotVersion = "0.0.0-next-
|
137
|
+
const hotVersion = "0.0.0-next-7518be3-20231219";
|
138
138
|
let keyValidityDate;
|
139
139
|
let consoleMessageState = 'invalid';
|
140
140
|
let domMessageState = 'invalid';
|
package/helpers/mixed.mjs
CHANGED
@@ -124,7 +124,7 @@ const domMessages = {
|
|
124
124
|
export function _injectProductInfo(key, element) {
|
125
125
|
const hasValidType = !isEmpty(key);
|
126
126
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
127
|
-
const hotVersion = "0.0.0-next-
|
127
|
+
const hotVersion = "0.0.0-next-7518be3-20231219";
|
128
128
|
let keyValidityDate;
|
129
129
|
let consoleMessageState = 'invalid';
|
130
130
|
let domMessageState = 'invalid';
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"url": "https://github.com/handsontable/handsontable/issues"
|
11
11
|
},
|
12
12
|
"author": "Handsoncode <hello@handsontable.com>",
|
13
|
-
"version": "0.0.0-next-
|
13
|
+
"version": "0.0.0-next-7518be3-20231219",
|
14
14
|
"main": "index",
|
15
15
|
"module": "index.mjs",
|
16
16
|
"jsnext:main": "index.mjs",
|
@@ -17,8 +17,8 @@ export class AutoColumnSize extends BasePlugin {
|
|
17
17
|
|
18
18
|
isEnabled(): boolean;
|
19
19
|
calculateVisibleColumnsWidth(): void;
|
20
|
-
calculateColumnsWidth(colRange?: number |
|
21
|
-
calculateAllColumnsWidth(rowRange?: number |
|
20
|
+
calculateColumnsWidth(colRange?: number | { from: number, to: number }, rowRange?: number | { from: number, to: number }, force?: boolean): void;
|
21
|
+
calculateAllColumnsWidth(rowRange?: number | { from: number, to: number }): void;
|
22
22
|
recalculateAllColumnsWidth(): void;
|
23
23
|
getSyncCalculationLimit(): number;
|
24
24
|
getColumnWidth(column: number, defaultWidth?: number, keepMinimum?: boolean): number;
|
@@ -15,8 +15,8 @@ export class AutoRowSize extends BasePlugin {
|
|
15
15
|
measuredRows: number;
|
16
16
|
|
17
17
|
isEnabled(): boolean;
|
18
|
-
calculateRowsHeight(rowRange?: number |
|
19
|
-
calculateAllRowsHeight(colRange?: number |
|
18
|
+
calculateRowsHeight(rowRange?: number | { from: number, to: number }, colRange?: number | { from: number, to: number }, force?: boolean): void;
|
19
|
+
calculateAllRowsHeight(colRange?: number | { from: number, to: number }): void;
|
20
20
|
recalculateAllRowsHeight(): void;
|
21
21
|
getSyncCalculationLimit(): number;
|
22
22
|
getRowHeight(row: number, defaultHeight?: number): number;
|
@@ -24,6 +24,6 @@ export class AutoRowSize extends BasePlugin {
|
|
24
24
|
getFirstVisibleRow(): number;
|
25
25
|
getLastVisibleRow(): number;
|
26
26
|
clearCache(): void;
|
27
|
-
clearCacheByRange(range: number |
|
27
|
+
clearCacheByRange(range: number | { from: number, to: number }): void;
|
28
28
|
isNeedRecalculate(): boolean;
|
29
29
|
}
|
@@ -60,13 +60,13 @@ export class ColumnSummary extends BasePlugin {
|
|
60
60
|
endpoints: Endpoints | undefined;
|
61
61
|
|
62
62
|
isEnabled(): boolean;
|
63
|
-
calculate(endpoint:
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
countEmpty(rowRange:
|
68
|
-
countEntries(endpoint:
|
69
|
-
getCellValue(row: number,
|
70
|
-
getPartialMinMax(rowRange:
|
71
|
-
getPartialSum(rowRange:
|
63
|
+
calculate(endpoint: Endpoint): void;
|
64
|
+
calculateSum(endpoint: Endpoint): number;
|
65
|
+
calculateAverage(endpoint: Endpoint): number;
|
66
|
+
calculateMinMax(endpoint: Endpoint, type: 'min' | 'max'): number | string;
|
67
|
+
countEmpty(rowRange: number[][], column: number): number;
|
68
|
+
countEntries(endpoint: Endpoint): number;
|
69
|
+
getCellValue(row: number, column: number): any;
|
70
|
+
getPartialMinMax(rowRange: number[][], column: number, type: 'min' | 'max'): number;
|
71
|
+
getPartialSum(rowRange: number[][], column: number): number;
|
72
72
|
}
|
@@ -133,7 +133,6 @@ class Endpoints {
|
|
133
133
|
this.assignSetting(val, newEndpoint, 'type', 'sum');
|
134
134
|
this.assignSetting(val, newEndpoint, 'forceNumeric', false);
|
135
135
|
this.assignSetting(val, newEndpoint, 'suppressDataTypeErrors', true);
|
136
|
-
this.assignSetting(val, newEndpoint, 'suppressDataTypeErrors', true);
|
137
136
|
this.assignSetting(val, newEndpoint, 'customFunction', null);
|
138
137
|
this.assignSetting(val, newEndpoint, 'readOnly', true);
|
139
138
|
this.assignSetting(val, newEndpoint, 'roundFloat', false);
|
@@ -130,7 +130,6 @@ class Endpoints {
|
|
130
130
|
this.assignSetting(val, newEndpoint, 'type', 'sum');
|
131
131
|
this.assignSetting(val, newEndpoint, 'forceNumeric', false);
|
132
132
|
this.assignSetting(val, newEndpoint, 'suppressDataTypeErrors', true);
|
133
|
-
this.assignSetting(val, newEndpoint, 'suppressDataTypeErrors', true);
|
134
133
|
this.assignSetting(val, newEndpoint, 'customFunction', null);
|
135
134
|
this.assignSetting(val, newEndpoint, 'readOnly', true);
|
136
135
|
this.assignSetting(val, newEndpoint, 'roundFloat', false);
|
@@ -1,12 +1,27 @@
|
|
1
1
|
import Core from '../../core';
|
2
2
|
import { BasePlugin } from '../base';
|
3
3
|
|
4
|
+
export type Formats = 'csv';
|
5
|
+
export interface ExportOptions {
|
6
|
+
mimeType?: string;
|
7
|
+
fileExtension?: string;
|
8
|
+
filename?: string;
|
9
|
+
encoding?: string;
|
10
|
+
bom?: boolean;
|
11
|
+
columnDelimiter?: string;
|
12
|
+
rowDelimiter?: string;
|
13
|
+
columnHeaders?: boolean;
|
14
|
+
rowHeaders?: boolean;
|
15
|
+
exportHiddenColumns?: boolean;
|
16
|
+
exportHiddenRows?: boolean;
|
17
|
+
range?: number[];
|
18
|
+
}
|
4
19
|
export type Settings = boolean;
|
5
20
|
|
6
21
|
export class ExportFile extends BasePlugin {
|
7
22
|
constructor(hotInstance: Core);
|
8
23
|
isEnabled(): boolean;
|
9
|
-
exportAsString(format:
|
10
|
-
exportAsBlob(format:
|
11
|
-
downloadFile(format:
|
24
|
+
exportAsString(format: Formats, options?: ExportOptions): string;
|
25
|
+
exportAsBlob(format: Formats, options?: ExportOptions): Blob;
|
26
|
+
downloadFile(format: Formats, options?: ExportOptions): void;
|
12
27
|
}
|
@@ -2,6 +2,7 @@ import Core from '../../core';
|
|
2
2
|
import { BasePlugin } from '../base';
|
3
3
|
import EventManager from '../../eventManager';
|
4
4
|
import CellRange from '../../3rdparty/walkontable/src/cell/range';
|
5
|
+
import CellCoords from '../../3rdparty/walkontable/src/cell/coords';
|
5
6
|
|
6
7
|
export type Settings = boolean;
|
7
8
|
|
@@ -13,7 +14,13 @@ export class MultipleSelectionHandles extends BasePlugin {
|
|
13
14
|
lastSetCell: HTMLElement | undefined;
|
14
15
|
|
15
16
|
isEnabled(): boolean;
|
16
|
-
getCurrentRangeCoords(
|
17
|
+
getCurrentRangeCoords(
|
18
|
+
selectedRange: CellRange,
|
19
|
+
currentTouch: CellCoords,
|
20
|
+
touchStartDirection: 'NE-SW' | 'NW-SE' | 'SW-NE' | 'SE-NW',
|
21
|
+
currentDirection: 'NE-SW' | 'NW-SE' | 'SW-NE' | 'SE-NW',
|
22
|
+
draggedHandle: 'top' | 'bottom',
|
23
|
+
): {
|
17
24
|
start: number;
|
18
25
|
end: number;
|
19
26
|
};
|
@@ -2,12 +2,15 @@ import Core from '../../core';
|
|
2
2
|
import { CellValue } from '../../common';
|
3
3
|
import { BasePlugin } from '../base';
|
4
4
|
|
5
|
+
export interface ValueHolder {
|
6
|
+
value: any;
|
7
|
+
}
|
5
8
|
export type Settings = boolean;
|
6
9
|
|
7
10
|
export class PersistentState extends BasePlugin {
|
8
11
|
constructor(hotInstance: Core);
|
9
12
|
isEnabled(): boolean;
|
10
|
-
loadValue(key: string, saveTo:
|
13
|
+
loadValue(key: string, saveTo: ValueHolder): void;
|
11
14
|
saveValue(key: string, value: CellValue): void;
|
12
|
-
resetValue(key
|
15
|
+
resetValue(key?: string): void;
|
13
16
|
}
|
package/settings.d.ts
CHANGED
@@ -14,6 +14,7 @@ import CellCoords from './3rdparty/walkontable/src/cell/coords';
|
|
14
14
|
import { Settings as AutoColumnSizeSettings } from './plugins/autoColumnSize';
|
15
15
|
import { Settings as AutofillSettings } from './plugins/autofill';
|
16
16
|
import { Settings as AutoRowSizeSettings } from './plugins/autoRowSize';
|
17
|
+
import { Settings as BindRowsWithHeadersSettings } from './plugins/bindRowsWithHeaders';
|
17
18
|
import { Settings as CollapsibleColumnsSettings } from './plugins/collapsibleColumns';
|
18
19
|
import { Settings as ColumnSortingSettings } from './plugins/columnSorting';
|
19
20
|
import { Settings as ColumnSummarySettings } from './plugins/columnSummary';
|
@@ -21,14 +22,25 @@ import { Settings as CommentsSettings, CommentObject } from './plugins/comments'
|
|
21
22
|
import { Settings as ContextMenuSettings } from './plugins/contextMenu';
|
22
23
|
import { Settings as CopyPasteSettings } from './plugins/copyPaste';
|
23
24
|
import { Settings as CustomBordersSettings } from './plugins/customBorders';
|
25
|
+
import { Settings as DragToScrollSettings } from './plugins/dragToScroll';
|
24
26
|
import { Settings as DropdownMenuSettings } from './plugins/dropdownMenu';
|
27
|
+
import { Settings as FiltersSettings } from './plugins/filters';
|
25
28
|
import { Settings as FormulasSettings } from './plugins/formulas';
|
26
29
|
import { Settings as HiddenColumnsSettings } from './plugins/hiddenColumns';
|
27
30
|
import { Settings as HiddenRowsSettings } from './plugins/hiddenRows';
|
31
|
+
import { Settings as manualColumnFreezeSettings } from './plugins/manualColumnFreeze';
|
32
|
+
import { Settings as manualColumnMoveSettings } from './plugins/manualColumnMove';
|
33
|
+
import { Settings as manualColumnResizeSettings } from './plugins/manualColumnResize';
|
34
|
+
import { Settings as manualRowMoveSettings } from './plugins/manualRowMove';
|
35
|
+
import { Settings as manualRowResizeSettings } from './plugins/manualRowResize';
|
28
36
|
import { Settings as MergeCellsSettings } from './plugins/mergeCells';
|
29
37
|
import { Settings as MultiColumnSortingSettings } from './plugins/multiColumnSorting';
|
30
38
|
import { Settings as NestedHeadersSettings } from './plugins/nestedHeaders';
|
39
|
+
import { Settings as NestedRowsSettings } from './plugins/nestedRows';
|
40
|
+
import { Settings as PersistentStateSettings } from './plugins/persistentState';
|
31
41
|
import { Settings as SearchSettings } from './plugins/search';
|
42
|
+
import { Settings as TrimRowsSettings } from './plugins/trimRows';
|
43
|
+
import { Settings as UndoRedoSettings } from './plugins/undoRedo';
|
32
44
|
import { EditorType, BaseEditor } from './editors';
|
33
45
|
import { RendererType } from './renderers';
|
34
46
|
import { BaseRenderer } from './renderers/base';
|
@@ -98,7 +110,7 @@ export interface GridSettings extends Events {
|
|
98
110
|
autoRowSize?: AutoRowSizeSettings;
|
99
111
|
autoWrapCol?: boolean;
|
100
112
|
autoWrapRow?: boolean;
|
101
|
-
bindRowsWithHeaders?:
|
113
|
+
bindRowsWithHeaders?: BindRowsWithHeadersSettings;
|
102
114
|
cell?: CellSettings[];
|
103
115
|
cells?: (this: CellProperties, row: number, column: number, prop: string | number) => CellMeta;
|
104
116
|
checkedTemplate?: boolean | string | number;
|
@@ -127,7 +139,7 @@ export interface GridSettings extends Events {
|
|
127
139
|
defaultDate?: string;
|
128
140
|
tabNavigation?: boolean;
|
129
141
|
disableVisualSelection?: boolean | 'current' | 'area' | 'header' | Array<'current' | 'area' | 'header'>;
|
130
|
-
dragToScroll?:
|
142
|
+
dragToScroll?: DragToScrollSettings;
|
131
143
|
dropdownMenu?: DropdownMenuSettings;
|
132
144
|
editor?: EditorType | typeof BaseEditor | boolean | string;
|
133
145
|
enterBeginsEditing?: boolean;
|
@@ -135,7 +147,7 @@ export interface GridSettings extends Events {
|
|
135
147
|
fillHandle?: AutofillSettings;
|
136
148
|
filter?: boolean;
|
137
149
|
filteringCaseSensitive?: boolean;
|
138
|
-
filters?:
|
150
|
+
filters?: FiltersSettings;
|
139
151
|
fixedColumnsLeft?: number;
|
140
152
|
fixedColumnsStart?: number;
|
141
153
|
fixedRowsBottom?: number;
|
@@ -154,11 +166,11 @@ export interface GridSettings extends Events {
|
|
154
166
|
locale?: string;
|
155
167
|
layoutDirection?: 'ltr' | 'rtl' | 'inherit';
|
156
168
|
licenseKey?: string | 'non-commercial-and-evaluation';
|
157
|
-
manualColumnFreeze?:
|
158
|
-
manualColumnMove?:
|
159
|
-
manualColumnResize?:
|
160
|
-
manualRowMove?:
|
161
|
-
manualRowResize?:
|
169
|
+
manualColumnFreeze?: manualColumnFreezeSettings;
|
170
|
+
manualColumnMove?: manualColumnMoveSettings;
|
171
|
+
manualColumnResize?: manualColumnResizeSettings;
|
172
|
+
manualRowMove?: manualRowMoveSettings;
|
173
|
+
manualRowResize?: manualRowResizeSettings;
|
162
174
|
maxCols?: number;
|
163
175
|
maxRows?: number;
|
164
176
|
mergeCells?: MergeCellsSettings;
|
@@ -169,12 +181,12 @@ export interface GridSettings extends Events {
|
|
169
181
|
multiColumnSorting?: MultiColumnSortingSettings;
|
170
182
|
navigableHeaders?: boolean;
|
171
183
|
nestedHeaders?: NestedHeadersSettings;
|
172
|
-
nestedRows?:
|
184
|
+
nestedRows?: NestedRowsSettings;
|
173
185
|
noWordWrapClassName?: string;
|
174
186
|
numericFormat?: NumericFormatOptions;
|
175
187
|
observeDOMVisibility?: boolean;
|
176
188
|
outsideClickDeselects?: boolean | ((target: HTMLElement) => boolean);
|
177
|
-
persistentState?:
|
189
|
+
persistentState?: PersistentStateSettings;
|
178
190
|
placeholder?: string;
|
179
191
|
placeholderCellClassName?: string;
|
180
192
|
preventOverflow?: boolean | 'vertical' | 'horizontal';
|
@@ -202,11 +214,11 @@ export interface GridSettings extends Events {
|
|
202
214
|
tabMoves?: CellCoords | SimpleCellCoords | ((event: KeyboardEvent) => CellCoords | SimpleCellCoords);
|
203
215
|
title?: string;
|
204
216
|
trimDropdown?: boolean;
|
205
|
-
trimRows?:
|
217
|
+
trimRows?: TrimRowsSettings;
|
206
218
|
trimWhitespace?: boolean;
|
207
219
|
type?: CellType | string;
|
208
220
|
uncheckedTemplate?: boolean | string | number;
|
209
|
-
undo?:
|
221
|
+
undo?: UndoRedoSettings;
|
210
222
|
validator?: BaseValidator | RegExp | ValidatorType | string;
|
211
223
|
viewportColumnRenderingOffset?: number | 'auto';
|
212
224
|
viewportRowRenderingOffset?: number | 'auto';
|